src/myams/resources/js/ext/tinymce/dev/classes/ui/PanelButton.min.js
changeset 5 c9c69b13d884
parent 0 f05d7aea098a
--- a/src/myams/resources/js/ext/tinymce/dev/classes/ui/PanelButton.min.js	Wed Jul 15 15:04:38 2020 +0200
+++ b/src/myams/resources/js/ext/tinymce/dev/classes/ui/PanelButton.min.js	Wed Jul 15 15:39:56 2020 +0200
@@ -1,1 +1,1 @@
-define("tinymce/ui/PanelButton",["tinymce/ui/Button","tinymce/ui/FloatPanel"],function(a,b){return a.extend({showPanel:function(){var c=this,d=c.settings;c.active(true);if(!c.panel){var e=d.panel;if(e.type){e={layout:"grid",items:e}}e.role=e.role||"dialog";e.popover=true;e.autohide=true;e.ariaRoot=true;c.panel=new b(e).on("hide",function(){c.active(false)}).on("cancel",function(f){f.stopPropagation();c.focus();c.hidePanel()}).parent(c).renderTo(c.getContainerElm());c.panel.fire("show");c.panel.reflow()}else{c.panel.show()}c.panel.moveRel(c.getEl(),d.popoverAlign||(c.isRtl()?["bc-tr","bc-tc"]:["bc-tl","bc-tc"]))},hidePanel:function(){var c=this;if(c.panel){c.panel.hide()}},postRender:function(){var c=this;c.aria("haspopup",true);c.on("click",function(d){if(d.control===c){if(c.panel&&c.panel.visible()){c.hidePanel()}else{c.showPanel();c.panel.focus(!!d.aria)}}});return c._super()},remove:function(){if(this.panel){this.panel.remove();this.panel=null}return this._super()}})});
\ No newline at end of file
+define("tinymce/ui/PanelButton",["tinymce/ui/Button","tinymce/ui/FloatPanel"],(function(e,n){"use strict";return e.extend({showPanel:function(){var e=this,t=e.settings;if(e.active(!0),e.panel)e.panel.show();else{var i=t.panel;i.type&&(i={layout:"grid",items:i}),i.role=i.role||"dialog",i.popover=!0,i.autohide=!0,i.ariaRoot=!0,e.panel=new n(i).on("hide",(function(){e.active(!1)})).on("cancel",(function(n){n.stopPropagation(),e.focus(),e.hidePanel()})).parent(e).renderTo(e.getContainerElm()),e.panel.fire("show"),e.panel.reflow()}e.panel.moveRel(e.getEl(),t.popoverAlign||(e.isRtl()?["bc-tr","bc-tc"]:["bc-tl","bc-tc"]))},hidePanel:function(){this.panel&&this.panel.hide()},postRender:function(){var e=this;return e.aria("haspopup",!0),e.on("click",(function(n){n.control===e&&(e.panel&&e.panel.visible()?e.hidePanel():(e.showPanel(),e.panel.focus(!!n.aria)))})),e._super()},remove:function(){return this.panel&&(this.panel.remove(),this.panel=null),this._super()}})}));