@syncfusion/ej2-splitbuttons 26.1.35 → 26.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ej2-splitbuttons.min.js +2 -2
- package/dist/ej2-splitbuttons.umd.min.js +1 -1
- package/dist/global/ej2-splitbuttons.min.js +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +7 -7
- package/styles/button-group/fluent2.css +34 -34
- package/styles/drop-down-button/fluent2.css +34 -34
- package/styles/fluent2.css +42 -46
- package/styles/progress-button/_bds-definition.scss +0 -5
- package/styles/progress-button/_fluent2-definition.scss +0 -5
- package/styles/progress-button/fluent2.css +30 -34
- package/styles/split-button/fluent2.css +34 -34
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: ej2-splitbuttons.min.js
|
|
3
|
-
* version : 26.
|
|
3
|
+
* version : 26.2.4
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2023. All rights reserved.
|
|
5
5
|
* Use of this code is subject to the terms of our license.
|
|
6
6
|
* A copy of the current license can be obtained at any time by e-mailing
|
|
7
7
|
* licensing@syncfusion.com. Any infringement will be prosecuted under
|
|
8
8
|
* applicable laws.
|
|
9
9
|
*/
|
|
10
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("SyncfusionBase"),require("SyncfusionButtons"),require("SyncfusionPopups")):"function"==typeof define&&define.amd?define(["SyncfusionBase","SyncfusionButtons","SyncfusionPopups"],t):"object"==typeof exports?exports.SyncfusionSplitbuttons=t(require("SyncfusionBase"),require("SyncfusionButtons"),require("SyncfusionPopups")):e.SyncfusionSplitbuttons=t(e.SyncfusionBase,e.SyncfusionButtons,e.SyncfusionPopups)}(self,((e,t,s)=>(()=>{"use strict";var i={766:t=>{t.exports=e},741:e=>{e.exports=t},197:e=>{e.exports=s}},n={};function o(e){var t=n[e];if(void 0!==t)return t.exports;var s=n[e]={exports:{}};return i[e](s,s.exports,o),s.exports}o.d=(e,t)=>{for(var s in t)o.o(t,s)&&!o.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{o.r(r),o.d(r,{AnimationSettings:()=>U,Deferred:()=>S,DropDownButton:()=>C,Item:()=>c,ProgressButton:()=>R,SpinSettings:()=>D,SplitButton:()=>O,createButtonGroup:()=>L,getModel:()=>n,setBlankIconStyle:()=>l,upDownKeyHandler:()=>a});var e,t=o(766),s=(e=function(t,s){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var s in t)t.hasOwnProperty(s)&&(e[s]=t[s])},e(t,s)},function(t,s){function i(){this.constructor=t}e(t,s),t.prototype=null===s?Object.create(s):(i.prototype=s.prototype,new i)}),i=function(e,t,s,i){var n,o=arguments.length,r=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,s,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(r=(o<3?n(r):o>3?n(t,s,r):n(t,s))||r);return o>3&&r&&Object.defineProperty(t,s,r),r};function n(e,s){for(var i=(0,t.extend)({},e),n=0,o=Object.keys(i);n<o.length;n++){var r=o[n];s.indexOf(r)<0&&(0,t.deleteObject)(i,r)}return i}function a(e,s){var i=40===s?0:e.childElementCount-1,n=i,o=e.querySelector(".e-selected");o&&o.classList.remove("e-selected");for(var r=0,a=e.children.length;r<a;r++)e.children[r].classList.contains("e-focused")&&(n=r,e.children[r].classList.remove("e-focused"),40===s?n++:n--,n===(40===s?e.childElementCount:-1)&&(n=i));-1!==(n=p(e,e.children[n],n,s))&&((0,t.addClass)([e.children[n]],"e-focused"),e.children[n].focus())}function p(e,t,s,i,n){if(void 0===n&&(n=0),(t.classList.contains("e-separator")||t.classList.contains("e-disabled"))&&(s===(40===i?e.childElementCount-1:0)?s=40===i?0:e.childElementCount-1:40===i?s++:s--),(t=e.children[s]).classList.contains("e-separator")||t.classList.contains("e-disabled")){if(++n===e.childElementCount)return-1;s=p(e,t,s,i,n)}return s}function l(e,s){var i=[].slice.call(e.getElementsByClassName("e-blank-icon"));s&&[].slice.call(e.getElementsByClassName("e-item")).forEach((function(e){(e.style.paddingLeft||e.style.paddingRight)&&e.removeAttribute("style")}));if(i.length){var n=e.querySelector(".e-item:not(.e-blank-icon):not(.e-separator)");if(!(0,t.isNullOrUndefined)(n)){n.classList.contains("e-url")&&(n=n.querySelector(".e-menu-url"));var o,r=n.querySelector(".e-menu-icon"),a=e.classList.contains("e-rtl");o=a?{padding:"paddingRight",margin:"marginLeft"}:{padding:"paddingLeft",margin:"marginRight"};var p=parseInt(getComputedStyle(r).fontSize,10)+parseInt(getComputedStyle(r)[o.margin],10)+parseInt(getComputedStyle(n).paddingLeft,10)+"px";i.forEach((function(e){e.classList.contains("e-url")?e.querySelector(".e-menu-url").style[o.padding]=p:e.style[o.padding]=p}))}}}var c=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return s(n,e),i([(0,t.Property)("")],n.prototype,"iconCss",void 0),i([(0,t.Property)("")],n.prototype,"id",void 0),i([(0,t.Property)(!1)],n.prototype,"separator",void 0),i([(0,t.Property)("")],n.prototype,"text",void 0),i([(0,t.Property)("")],n.prototype,"url",void 0),i([(0,t.Property)(!1)],n.prototype,"disabled",void 0),n}(t.ChildProperty),d=o(741),h=o(197),u=function(){var e=function(t,s){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var s in t)t.hasOwnProperty(s)&&(e[s]=t[s])},e(t,s)};return function(t,s){function i(){this.constructor=t}e(t,s),t.prototype=null===s?Object.create(s):(i.prototype=s.prototype,new i)}}(),m=function(e,t,s,i){var n,o=arguments.length,r=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,s,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(r=(o<3?n(r):o>3?n(t,s,r):n(t,s))||r);return o>3&&r&&Object.defineProperty(t,s,r),r},y="e-menu-icon",f="e-item",v="e-dropdown-popup",g="e-separator",b="e-vertical",C=function(e){function s(t,s){var i=e.call(this,t,s)||this;return i.isPopupCreated=!0,i}return u(s,e),s.prototype.preRender=function(){},s.prototype.getPersistData=function(){return this.addOnPersist([])},s.prototype.toggle=function(){this.canOpen()?this.openPopUp():this.createPopupOnClick&&!this.isPopupCreated?(this.createPopup(),this.openPopUp()):this.closePopup()},s.prototype.render=function(){this.initialize(),this.disabled||this.wireEvents(),this.renderComplete()},s.prototype.addItems=function(e,t){for(var s,i=this.items.length,n=0,o=this.items.length;n<o;n++)if(t===this.items[n].text){i=n;break}for(var r=e.length-1;r>=0;r--)s=new c(this,"items",e[r],!0),this.items.splice(i,0,s);this.canOpen()||this.createItems()},s.prototype.removeItems=function(e,t){for(var s=!1,i=0,n=e.length;i<n;i++)for(var o=0,r=this.items.length;o<r;o++)if(e[i]===(t?this.items[o].id:this.items[o].text)){this.items.splice(o,1),s=!0;break}s&&this.getULElement()&&this.createItems()},s.prototype.createPopup=function(){var e,s=this.createElement("div",{className:v,id:this.element.id+"-popup"});document.body.appendChild(s),this.dropDown=new h.Popup(s,{relateTo:this.element,collision:{X:"fit",Y:"flip"},position:{X:"left",Y:"bottom"},targetType:"relative",content:this.target?this.getTargetElement():"",enableRtl:this.enableRtl}),this.dropDown.element.setAttribute("role","dialog"),this.dropDown.element.setAttribute("aria-label","dropdown menu"),(0,t.isNullOrUndefined)(this.popupContent)||(this.popupContent.style.display=""),"fixed"===this.dropDown.element.style.position&&this.dropDown.refreshPosition(this.element),this.dropDown.hide(),(0,t.attributes)(this.element,((e={})["aria-haspopup"]=this.items.length||this.target?"true":"false",e["aria-expanded"]="false",e.type="button",e)),this.cssClass&&(0,t.addClass)([s],this.cssClass.replace(/\s+/g," ").trim().split(" ")),this.isPopupCreated=!0},s.prototype.getTargetElement=function(){return!this.createPopupOnClick||this.isColorPicker()||(0,t.isNullOrUndefined)(this.popupContent)?"string"==typeof this.target?(0,t.select)(this.target):this.target:this.popupContent},s.prototype.createItems=function(e){var s,i,n,o,r=this.items,a=this.hasIcon(this.items,"iconCss"),p=this.getULElement();p?p.innerHTML="":p=this.createElement("ul",{attrs:{role:"menu",tabindex:"0"}});for(var c=0;c<r.length;c++){var d=(i=r[c]).text;n=this.createElement("li",{innerHTML:i.url?"":d,className:i.separator?f+" "+g:f,attrs:i.separator?{role:"separator",tabindex:"-1","aria-label":"separator","aria-hidden":"true"}:{role:"menuitem",tabindex:"-1","aria-label":d},id:i.id?i.id:(0,t.getUniqueID)("e-"+this.getModuleName()+"-item")}),this.enableHtmlSanitizer?n.textContent=i.url?"":d:n.innerHTML=i.url?"":d,i.url&&(n.appendChild(this.createAnchor(i)),n.classList.add("e-url")),i.iconCss?(s=this.createElement("span",{className:y+" "+i.iconCss}),i.url?n.childNodes[0].appendChild(s):n.insertBefore(s,n.childNodes[0])):a&&!i.separator&&n.classList.add("e-blank-icon");var h=i.disabled;i.disabled&&n.classList.add("e-disabled"),o={item:i,element:n},this.trigger("beforeItemRender",o),h!==o.item.disabled&&(o.item.disabled?n.classList.add("e-disabled"):n.classList.remove("e-disabled")),p.appendChild(n)}e&&this.getPopUpElement().appendChild(p),a&&l(this.getPopUpElement())},s.prototype.hasIcon=function(e,t){for(var s=0,i=e.length;s<i;s++)if(e[s][""+t])return!0;return!1},s.prototype.createAnchor=function(e){var s=this.enableHtmlSanitizer?t.SanitizeHtmlHelper.sanitize(e.text):e.text;return this.createElement("a",{className:"e-menu-text e-menu-url",innerHTML:s,attrs:{href:e.url}})},s.prototype.initialize=function(){this.button=new d.Button({iconCss:this.iconCss,iconPosition:this.iconPosition,cssClass:this.cssClass,content:this.content,disabled:this.disabled,enableRtl:this.enableRtl,enablePersistence:this.enablePersistence}),this.button.createElement=this.createElement,this.button.appendTo(this.element),this.element.id||(this.element.id=(0,t.getUniqueID)("e-"+this.getModuleName())),this.appendArrowSpan(),this.setActiveElem([this.element]),this.element.setAttribute("tabindex","0"),this.element.setAttribute("aria-label",this.element.textContent?this.element.textContent:"dropdownbutton"),this.target&&!this.isColorPicker()&&!this.createPopupOnClick||!this.createPopupOnClick?this.createPopup():(this.isPopupCreated=!1,this.target&&!this.isColorPicker()&&this.createPopupOnClick&&(this.popupContent=this.getTargetElement(),this.popupContent.style.display="none"))},s.prototype.isColorPicker=function(){if(!this.element)return!1;var e=this.element.previousSibling;return!!(e&&e.classList&&e.classList.contains("e-split-colorpicker"))},s.prototype.appendArrowSpan=function(){this.cssClass=(0,t.isNullOrUndefined)(this.cssClass)?"":this.cssClass,this.element.appendChild(this.createElement("span",{className:"e-btn-icon e-icons e-icon-"+(this.cssClass.indexOf(b)>-1?"bottom":"right")+" e-caret"}))},s.prototype.setActiveElem=function(e){this.activeElem=e},s.prototype.getModuleName=function(){return"dropdown-btn"},s.prototype.canOpen=function(){var e=!1;return this.isPopupCreated&&(e=this.getPopUpElement().classList.contains("e-popup-close")),e},s.prototype.destroy=function(){var s,i=this;(e.prototype.destroy.call(this),"dropdown-btn"===this.getModuleName())&&(this.element.querySelector("span.e-caret")&&(0,t.detach)(this.element.querySelector("span.e-caret")),this.cssClass&&(s=this.cssClass.split(" ")),this.button.destroy(),s&&(0,t.removeClass)([this.element],s),(0,t.removeClass)(this.activeElem,["e-active"]),(this.element.getAttribute("class")?["aria-haspopup","aria-expanded","aria-owns","type"]:["aria-haspopup","aria-expanded","aria-owns","type","class"]).forEach((function(e){i.element.removeAttribute(e)})),this.popupUnWireEvents(),this.destroyPopup(),this.isPopupCreated=!1,this.disabled||this.unWireEvents())},s.prototype.destroyPopup=function(){if(this.isPopupCreated){if(this.dropDown.destroy(),this.getPopUpElement()){var e=document.getElementById(this.getPopUpElement().id);e&&((0,t.removeClass)([e],["e-popup-open","e-popup-close"]),(0,t.detach)(e))}t.EventHandler.remove(this.getPopUpElement(),"click",this.clickHandler),t.EventHandler.remove(this.getPopUpElement(),"keydown",this.keyBoardHandler),this.isPopupCreated&&this.dropDown&&(this.dropDown.element=null,this.dropDown=void 0)}this.isPopupCreated=!1},s.prototype.getPopUpElement=function(){var e=null;if(!this.dropDown&&this.activeElem[0].classList.contains("e-split-btn")){var s=(0,t.getComponent)(this.activeElem[1],"dropdown-btn");s&&(this.dropDown=s.dropDown)}return this.dropDown&&(e=this.dropDown.element),e},s.prototype.getULElement=function(){var e=null;return this.getPopUpElement()&&(e=this.getPopUpElement().children[0]),e},s.prototype.wireEvents=function(){this.delegateMousedownHandler=this.mousedownHandler.bind(this),this.createPopupOnClick||t.EventHandler.add(document,"mousedown touchstart",this.delegateMousedownHandler,this),t.EventHandler.add(this.element,"click",this.clickHandler,this),t.EventHandler.add(this.element,"keydown",this.keyBoardHandler,this),t.EventHandler.add(window,"resize",this.windowResize,this)},s.prototype.windowResize=function(){!this.canOpen()&&this.dropDown&&this.dropDown.refreshPosition(this.element)},s.prototype.popupWireEvents=function(){this.delegateMousedownHandler||(this.delegateMousedownHandler=this.mousedownHandler.bind(this));var e=this.getPopUpElement();this.createPopupOnClick&&t.EventHandler.add(document,"mousedown touchstart",this.delegateMousedownHandler,this),e&&(t.EventHandler.add(e,"click",this.clickHandler,this),t.EventHandler.add(e,"keydown",this.keyBoardHandler,this),this.closeActionEvents&&t.EventHandler.add(e,this.closeActionEvents,this.focusoutHandler,this)),this.rippleFn=(0,t.rippleEffect)(e,{selector:"."+f})},s.prototype.popupUnWireEvents=function(){var e=this.getPopUpElement();this.createPopupOnClick&&t.EventHandler.remove(document,"mousedown touchstart",this.delegateMousedownHandler),e&&e.parentElement&&(t.EventHandler.remove(e,"click",this.clickHandler),t.EventHandler.remove(e,"keydown",this.keyBoardHandler),this.closeActionEvents&&t.EventHandler.remove(e,this.closeActionEvents,this.focusoutHandler)),t.isRippleEnabled&&this.rippleFn&&this.rippleFn()},s.prototype.keyBoardHandler=function(e){if(e.target!==this.element||9!==e.keyCode&&(e.altKey||40!==e.keyCode)&&38!==e.keyCode)switch(e.keyCode){case 38:case 40:!e.altKey||38!==e.keyCode&&40!==e.keyCode?this.upDownKeyHandler(e):this.keyEventHandler(e);break;case 9:case 13:case 27:case 32:this.keyEventHandler(e)}},s.prototype.upDownKeyHandler=function(e){(!this.target||38!==e.keyCode&&40!==e.keyCode)&&(e.preventDefault(),a(this.getULElement(),e.keyCode))},s.prototype.keyEventHandler=function(e){if(!this.target||13!==e.keyCode&&9!==e.keyCode)return 13===e.keyCode&&this.activeElem[0].classList.contains("e-split-btn")?(this.triggerSelect(e),void this.activeElem[0].focus()):void(e.target&&e.target.className.indexOf("e-edit-template")>-1&&32===e.keyCode||(9!==e.keyCode&&e.preventDefault(),27===e.keyCode||38===e.keyCode||9===e.keyCode?this.canOpen()||this.closePopup(e,this.element):this.clickHandler(e)))},s.prototype.getLI=function(e){return"LI"===e.tagName?e:(0,t.closest)(e,"li")},s.prototype.mousedownHandler=function(e){var s=e.target;!this.dropDown||this.canOpen()||(0,t.closest)(s,'[id="'+this.getPopUpElement().id+'"]')||(0,t.closest)(s,'[id="'+this.element.id+'"]')||this.closePopup(e)},s.prototype.focusoutHandler=function(e){if(this.isPopupCreated&&!this.canOpen()){var t=e.relatedTarget;if(t&&t.className.indexOf("e-item")>-1){var s=this.getLI(t);if(s){var i=Array.prototype.indexOf.call(this.getULElement().children,s),n=this.items[i];if(n){var o={element:s,item:n,event:e};this.trigger("select",o)}}}this.closePopup(e)}},s.prototype.clickHandler=function(e){var s=e.target;(0,t.closest)(s,'[id="'+this.element.id+'"]')?!this.createPopupOnClick||this.target&&""!==this.target&&!this.isColorPicker()&&!this.createPopupOnClick?this.getPopUpElement().classList.contains("e-popup-close")?this.openPopUp(e):this.closePopup(e):this.isPopupCreated?this.closePopup(e,this.activeElem[0]):(this.createPopup(),this.openPopUp(e)):(0,t.closest)(s,'[id="'+this.getPopUpElement().id+'"]')&&this.getLI(e.target)&&(this.triggerSelect(e),this.closePopup(e,this.activeElem[0]))},s.prototype.triggerSelect=function(e){var t,s,i,n=this.getLI(e.target);n&&(s=Array.prototype.indexOf.call(this.getULElement().children,n),(i=this.items[s])&&(t={element:n,item:i,event:e},this.trigger("select",t)))},s.prototype.openPopUp=function(e){var s=this;void 0===e&&(e=null);var i=this.getPopUpElement();if(this.target)if(this.activeElem.length>1){var n=(0,t.getComponent)(this.activeElem[0],"split-btn");n.isReact&&i.childNodes.length<1&&(!0,n.appendReactElement(this.getTargetElement(),this.getPopUpElement()),this.renderReactTemplates())}else this.isReact&&i.childNodes.length<1&&(!0,this.appendReactElement(this.getTargetElement(),this.getPopUpElement()),this.renderReactTemplates());else this.createItems(!0);var o=this.getULElement();this.popupWireEvents();var r={element:o,items:this.items,event:e,cancel:!1};this.trigger("beforeOpen",r,(function(e){if(!e.cancel){var i=s.getULElement();if(s.dropDown.show(null,s.element),(0,t.addClass)([s.element],"e-active"),s.element.setAttribute("aria-expanded","true"),s.element.setAttribute("aria-owns",s.getPopUpElement().id),i&&i.focus(),s.enableRtl&&"0px"!==i.parentElement.style.left){var n=void 0;n=s.element.parentElement&&s.element.parentElement.classList.contains("e-split-btn-wrapper")?s.element.parentElement.offsetWidth:s.element.offsetWidth;var o=i.parentElement.offsetWidth-n,r=parseFloat(i.parentElement.style.left)-o;r<0&&(r=0),i.parentElement.style.left=r+"px"}var a={element:i,items:s.items};s.trigger("open",a)}}))},s.prototype.closePopup=function(e,s){var i=this;void 0===e&&(e=null);var n=this.getULElement(),o={element:n,items:this.items,event:e,cancel:!1};this.trigger("beforeClose",o,(function(e){if(e.cancel)n&&n.focus();else{var o=i.getPopUpElement();o&&t.EventHandler.remove(o,"keydown",i.keyBoardHandler),i.popupUnWireEvents();var r=i.getULElement(),a=void 0;r&&(a=r.querySelector(".e-selected")),a&&a.classList.remove("e-selected"),i.dropDown.hide(),(0,t.removeClass)(i.activeElem,"e-active"),i.element.setAttribute("aria-expanded","false"),i.element.removeAttribute("aria-owns"),s&&s.focus();var p={element:r,items:i.items};i.trigger("close",p),!i.target&&r&&(0,t.detach)(r),(!i.target||i.isColorPicker()||i.target&&!i.isColorPicker())&&i.createPopupOnClick&&i.destroyPopup()}}))},s.prototype.unWireEvents=function(){this.createPopupOnClick||t.EventHandler.remove(document,"mousedown touchstart",this.delegateMousedownHandler),t.EventHandler.remove(this.element,"click",this.clickHandler),t.EventHandler.remove(this.element,"keydown",this.keyBoardHandler),this.isPopupCreated&&(t.EventHandler.remove(this.getPopUpElement(),"click",this.clickHandler),t.EventHandler.remove(this.getPopUpElement(),"keydown",this.keyBoardHandler)),t.EventHandler.remove(window,"resize",this.windowResize)},s.prototype.onPropertyChanged=function(e,s){var i;this.button.setProperties(n(e,["content","cssClass","iconCss","iconPosition","disabled","enableRtl"])),this.isPopupCreated&&(i=this.getPopUpElement(),this.dropDown.setProperties(n(e,["enableRtl"])));for(var o=0,r=Object.keys(e);o<r.length;o++){switch(r[o]){case"content":this.element.querySelector("span.e-caret")||this.appendArrowSpan();break;case"disabled":e.disabled?(this.unWireEvents(),this.isPopupCreated&&!this.canOpen()&&this.closePopup()):this.wireEvents();break;case"cssClass":if(e.cssClass.indexOf(b)>-1||s.cssClass.indexOf(b)>-1){this.element.querySelector("span.e-caret")||this.appendArrowSpan();var a=this.element.querySelector("span.e-caret");e.cssClass.indexOf(b)>-1?(0,t.classList)(a,["e-icon-bottom"],["e-icon-right"]):(0,t.classList)(a,["e-icon-right"],["e-icon-bottom"])}this.isPopupCreated&&(s.cssClass&&(0,t.removeClass)([i],s.cssClass.split(" ")),e.cssClass&&(0,t.addClass)([i],e.cssClass.replace(/\s+/g," ").trim().split(" ")));break;case"target":this.dropDown.content=this.getTargetElement(),this.dropDown.dataBind();break;case"items":this.isPopupCreated&&this.getULElement()&&this.createItems();break;case"createPopupOnClick":e.createPopupOnClick?this.destroyPopup():this.createPopup()}}},s.prototype.focusIn=function(){this.element.focus()},m([(0,t.Property)("")],s.prototype,"content",void 0),m([(0,t.Property)("")],s.prototype,"cssClass",void 0),m([(0,t.Property)(!1)],s.prototype,"disabled",void 0),m([(0,t.Property)("")],s.prototype,"iconCss",void 0),m([(0,t.Property)("Left")],s.prototype,"iconPosition",void 0),m([(0,t.Property)(!0)],s.prototype,"enableHtmlSanitizer",void 0),m([(0,t.Collection)([],c)],s.prototype,"items",void 0),m([(0,t.Property)(!1)],s.prototype,"createPopupOnClick",void 0),m([(0,t.Property)("")],s.prototype,"target",void 0),m([(0,t.Property)("")],s.prototype,"closeActionEvents",void 0),m([(0,t.Event)()],s.prototype,"beforeItemRender",void 0),m([(0,t.Event)()],s.prototype,"beforeOpen",void 0),m([(0,t.Event)()],s.prototype,"beforeClose",void 0),m([(0,t.Event)()],s.prototype,"close",void 0),m([(0,t.Event)()],s.prototype,"open",void 0),m([(0,t.Event)()],s.prototype,"select",void 0),m([(0,t.Event)()],s.prototype,"created",void 0),s=m([t.NotifyPropertyChanges],s)}(t.Component),P=function(){var e=function(t,s){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var s in t)t.hasOwnProperty(s)&&(e[s]=t[s])},e(t,s)};return function(t,s){function i(){this.constructor=t}e(t,s),t.prototype=null===s?Object.create(s):(i.prototype=s.prototype,new i)}}(),E=function(e,t,s,i){var n,o=arguments.length,r=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,s,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(r=(o<3?n(r):o>3?n(t,s,r):n(t,s))||r);return o>3&&r&&Object.defineProperty(t,s,r),r},w="e-rtl",k="EJS-SPLITBUTTON",O=function(e){function s(t,s){return e.call(this,t,s)||this}return P(s,e),s.prototype.preRender=function(){var e=this.element;if(e.tagName===k){for(var s=(0,t.getValue)("ej2_instances",e),i=this.createElement("button",{attrs:{type:"button"}}),n=this.createElement(k,{className:"e-"+this.getModuleName()+"-wrapper"}),o=0,r=e.attributes.length;o<r;o++)i.setAttribute(e.attributes[o].nodeName,e.attributes[o].nodeValue);e.parentNode.insertBefore(n,e),(0,t.detach)(e),e=i,n.appendChild(e),(0,t.setValue)("ej2_instances",s,e),this.wrapper=n,this.element=e}this.element.id||(this.element.id=(0,t.getUniqueID)("e-"+this.getModuleName()))},s.prototype.render=function(){this.initWrapper(),this.createPrimaryButton(),this.renderControl()},s.prototype.renderControl=function(){this.createSecondaryButton(),this.setActiveElem([this.element,this.secondaryBtnObj.element]),this.setAria(),this.wireEvents(),this.renderComplete()},s.prototype.addItems=function(t,s){e.prototype.addItems.call(this,t,s),this.secondaryBtnObj.items=this.items},s.prototype.removeItems=function(t,s){e.prototype.removeItems.call(this,t,s),this.secondaryBtnObj.items=this.items},s.prototype.initWrapper=function(){this.wrapper||(this.wrapper=this.createElement("div",{className:"e-"+this.getModuleName()+"-wrapper"}),this.element.parentNode.insertBefore(this.wrapper,this.element)),this.element.classList.remove("e-"+this.getModuleName()),this.enableRtl&&this.wrapper.classList.add(w),this.cssClass&&(0,t.addClass)([this.wrapper],this.cssClass.replace(/\s+/g," ").trim().split(" "))},s.prototype.createPrimaryButton=function(){var e={cssClass:this.cssClass,enableRtl:this.enableRtl,iconCss:this.iconCss,iconPosition:this.iconPosition,content:this.content,disabled:this.disabled};this.primaryBtnObj=new d.Button(e),this.primaryBtnObj.createElement=this.createElement,this.primaryBtnObj.appendTo(this.element),this.element.classList.add("e-"+this.getModuleName()),this.element.type="button",this.wrapper.appendChild(this.element)},s.prototype.createSecondaryButton=function(){var e=this,t=this.createElement("button",{className:"e-icon-btn",attrs:{tabindex:"-1"},id:this.element.id+"_dropdownbtn"});this.wrapper.appendChild(t);var s={cssClass:this.cssClass,disabled:this.disabled,enableRtl:this.enableRtl,items:this.items,target:this.target,createPopupOnClick:this.createPopupOnClick,beforeItemRender:function(t){e.createPopupOnClick&&(e.secondaryBtnObj.dropDown.relateTo=e.wrapper,e.dropDown=e.secondaryBtnObj.dropDown),e.trigger("beforeItemRender",t)},open:function(t){e.trigger("open",t)},close:function(t){e.trigger("close",t)},select:function(t){e.trigger("select",t)},beforeOpen:function(t){e.createPopupOnClick&&0===e.items.length&&(e.secondaryBtnObj.dropDown.relateTo=e.wrapper,e.dropDown=e.secondaryBtnObj.dropDown);var s=new S;return e.trigger("beforeOpen",t,(function(e){s.resolve(e)})),s},beforeClose:function(t){var s=new S;return e.trigger("beforeClose",t,(function(e){s.resolve(e)})),s}};this.secondaryBtnObj=new C(s),this.secondaryBtnObj.createElement=this.createElement,this.secondaryBtnObj.appendTo(t),this.createPopupOnClick||(this.secondaryBtnObj.dropDown.relateTo=this.wrapper,this.dropDown=this.secondaryBtnObj.dropDown),this.isPopupCreated=this.secondaryBtnObj.isPopupCreated,this.secondaryBtnObj.activeElem=[this.element,this.secondaryBtnObj.element],this.secondaryBtnObj.element.querySelector(".e-btn-icon").classList.remove("e-icon-right"),this.disabled&&this.wrapper.classList.add("e-splitbtn-disabled")},s.prototype.setAria=function(){(0,t.attributes)(this.element,{"aria-expanded":"false","aria-haspopup":"true","aria-label":this.element.textContent?this.element.textContent+" splitbutton":"splitbutton","aria-owns":this.element.id+"_dropdownbtn-popup"})},s.prototype.getModuleName=function(){return"split-btn"},s.prototype.toggle=function(){this.secondaryBtnObj.toggle()},s.prototype.destroy=function(){var s=this,i=[w];if(this.cssClass&&(i=i.concat(this.cssClass.split(" "))),this.element){var n=document.getElementById(this.element.id);n&&n.parentElement===this.wrapper&&(this.wrapper.tagName===k?(this.wrapper.innerHTML="",(0,t.removeClass)([this.wrapper],["e-rtl","e-"+this.getModuleName()+"-wrapper"]),(0,t.removeClass)([this.wrapper],this.cssClass.split(" "))):((0,t.removeClass)([this.element],i),["aria-label","aria-haspopup","aria-expanded","aria-owns","type"].forEach((function(e){s.element.removeAttribute(e)})),this.wrapper.parentNode.insertBefore(this.element,this.wrapper),(0,t.remove)(this.wrapper)),this.unWireEvents())}this.primaryBtnObj.destroy(),this.secondaryBtnObj.destroy(),e.prototype.destroy.call(this),this.element&&!this.element.getAttribute("class")&&this.element.removeAttribute("class"),this.refreshing&&this.isAngular&&(this.element=this.wrapper,["e-control","e-split-btn","e-lib"].forEach((function(e){s.element.classList.add(e)})),(0,t.setValue)("ej2_instances",[this],this.element)),this.wrapper=null},s.prototype.wireEvents=function(){t.EventHandler.add(this.element,"click",this.primaryBtnClickHandler,this),new t.KeyboardEvents(this.element,{keyAction:this.btnKeyBoardHandler.bind(this),keyConfigs:{altdownarrow:"alt+downarrow",enter:"enter"}})},s.prototype.unWireEvents=function(){t.EventHandler.remove(this.element,"click",this.primaryBtnClickHandler),(0,t.getInstance)(this.element,t.KeyboardEvents).destroy()},s.prototype.primaryBtnClickHandler=function(){this.trigger("click",{element:this.element})},s.prototype.btnKeyBoardHandler=function(e){switch(e.action){case"altdownarrow":this.clickHandler(e);break;case"enter":this.clickHandler(e),this.getPopUpElement()&&!this.getPopUpElement().classList.contains("e-popup-close")?(this.element.classList.remove("e-active"),this.secondaryBtnObj.element.classList.add("e-active")):this.secondaryBtnObj.element.classList.remove("e-active")}},s.prototype.onPropertyChanged=function(e,s){var i=["content","iconCss","iconPosition","cssClass","disabled","enableRtl"];this.primaryBtnObj.setProperties(n(e,i)),i=["beforeOpen","beforeItemRender","select","open","close","cssClass","disabled","enableRtl","createPopupOnClick"],Object.keys(e).indexOf("items")>-1&&(this.secondaryBtnObj.items=e.items,this.secondaryBtnObj.dataBind()),this.secondaryBtnObj.setProperties(n(e,i));for(var o=0,r=Object.keys(e);o<r.length;o++){switch(r[o]){case"cssClass":s.cssClass&&(0,t.removeClass)([this.wrapper],s.cssClass.split(" ")),(0,t.addClass)([this.wrapper],e.cssClass.replace(/\s+/g," ").trim().split(" "));break;case"enableRtl":e.enableRtl?(0,t.addClass)([this.wrapper],w):(0,t.removeClass)([this.wrapper],w);break;case"disabled":e.disabled?(0,t.addClass)([this.wrapper],"e-splitbtn-disabled"):(0,t.removeClass)([this.wrapper],"e-splitbtn-disabled")}}},s.prototype.focusIn=function(){this.element.focus()},E([(0,t.Property)("")],s.prototype,"content",void 0),E([(0,t.Property)("")],s.prototype,"cssClass",void 0),E([(0,t.Property)(!1)],s.prototype,"disabled",void 0),E([(0,t.Property)("")],s.prototype,"iconCss",void 0),E([(0,t.Property)("Left")],s.prototype,"iconPosition",void 0),E([(0,t.Property)(!1)],s.prototype,"createPopupOnClick",void 0),E([(0,t.Collection)([],c)],s.prototype,"items",void 0),E([(0,t.Property)("")],s.prototype,"target",void 0),E([(0,t.Event)()],s.prototype,"beforeItemRender",void 0),E([(0,t.Event)()],s.prototype,"beforeOpen",void 0),E([(0,t.Event)()],s.prototype,"beforeClose",void 0),E([(0,t.Event)()],s.prototype,"click",void 0),E([(0,t.Event)()],s.prototype,"close",void 0),E([(0,t.Event)()],s.prototype,"open",void 0),E([(0,t.Event)()],s.prototype,"select",void 0),E([(0,t.Event)()],s.prototype,"created",void 0),s=E([t.NotifyPropertyChanges],s)}(C),S=function(){var e=this;this.promise=new Promise((function(t,s){e.resolve=t,e.reject=s})),this.catch=this.promise.catch.bind(this.promise),this.then=this.promise.then.bind(this.promise)};function L(e,s,i){var n,o,r,a;void 0===s&&(s={}),(0,t.isNullOrUndefined)(i)&&(i=t.createElement);var p=document.querySelector(e);(0,t.addClass)([p],["e-btn-group","e-css"]),p.setAttribute("role","group");var l=p.children;s.buttons=s.buttons||[];for(var c=0,h=0;h<l.length;c++,h++)n=l[h],null!==(a=s.buttons[c])&&("BUTTON"===n.tagName?o=n:(o=i("label"),(r=l[h+1])?p.insertBefore(o,r):p.appendChild(o),n.id&&o.setAttribute("for",n.id),a&&a.disabled&&(n.disabled=!0),h++),s.cssClass&&a&&!a.cssClass&&(a.cssClass=s.cssClass),new d.Button(a||{},o));return p}var H=function(){var e=function(t,s){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var s in t)t.hasOwnProperty(s)&&(e[s]=t[s])},e(t,s)};return function(t,s){function i(){this.constructor=t}e(t,s),t.prototype=null===s?Object.create(s):(i.prototype=s.prototype,new i)}}(),B=function(e,t,s,i){var n,o=arguments.length,r=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,s,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(r=(o<3?n(r):o>3?n(t,s,r):n(t,s))||r);return o>3&&r&&Object.defineProperty(t,s,r),r},N="e-hide-spinner",j="e-progress",x="e-progress-active",A="e-btn-content",D=function(e){function s(){return null!==e&&e.apply(this,arguments)||this}return H(s,e),B([(0,t.Property)(null)],s.prototype,"template",void 0),B([(0,t.Property)(16)],s.prototype,"width",void 0),B([(0,t.Property)("Left")],s.prototype,"position",void 0),s}(t.ChildProperty),U=function(e){function s(){return null!==e&&e.apply(this,arguments)||this}return H(s,e),B([(0,t.Property)(400)],s.prototype,"duration",void 0),B([(0,t.Property)("None")],s.prototype,"effect",void 0),B([(0,t.Property)("ease")],s.prototype,"easing",void 0),s}(t.ChildProperty),R=function(e){function s(t,s){var i=e.call(this,t,s)||this;return i.step=1,i}return H(s,e),s.prototype.preRender=function(){e.prototype.preRender.call(this)},s.prototype.render=function(){e.prototype.render.call(this),this.init(),this.wireEvents(),this.setAria(),this.renderComplete()},s.prototype.start=function(e){this.isPaused=!1,this.startProgress(e||this.percent,this.progressTime)},s.prototype.stop=function(){this.isPaused=!0,cancelAnimationFrame(this.timerId)},s.prototype.progressComplete=function(){this.isPaused=!1,this.finishProgress()},s.prototype.getModuleName=function(){return"progress-btn"},s.prototype.destroy=function(){var s=this,i=[N,x,"e-round-corner","e-"+e.prototype.getModuleName.call(this),"e-spin-"+this.spinSettings.position.toLowerCase()];e.prototype.destroy.call(this),this.unWireEvents(),this.element.innerHTML="",this.cssClass&&(i=i.concat(this.cssClass.split(" "))),(0,t.removeClass)([this.element],i),(this.element.getAttribute("class")?["aria-label","aria-valuemin","aria-valuemax","aria-valuenow"]:["aria-label","aria-valuemin","aria-valuemax","aria-valuenow","class"]).forEach((function(e){s.element.removeAttribute(e)})),this.disabled&&this.element.removeAttribute("disabled")},s.prototype.init=function(){this.element.classList.add("e-"+e.prototype.getModuleName.call(this)),this.setContent(),this.createSpinner(),this.enableProgress&&this.createProgress()},s.prototype.createSpinner=function(){var e=this.createElement("span",{className:"e-spinner"});this.setSpinPosition(e),(0,h.createSpinner)({target:e,width:this.spinSettings.width||16,template:this.spinSettings.template},this.createElement)},s.prototype.getSpinner=function(){return this.element.getElementsByClassName("e-spinner")[0]},s.prototype.getProgress=function(){return this.element.getElementsByClassName(j)[0]},s.prototype.setSpinPosition=function(e){var t=this.spinSettings.position||"Left";"Left"===t||"Top"===t?this.element.insertBefore(e,this.element.getElementsByClassName(A)[0]):this.element.appendChild(e),this.element.classList.add("e-spin-"+t.toLowerCase())},s.prototype.createProgress=function(){this.element.appendChild(this.createElement("span",{className:j}))},s.prototype.setContent=function(){var e;e=this.element.innerHTML,this.enableHtmlSanitizer&&(e=t.SanitizeHtmlHelper.sanitize(this.element.innerHTML)),this.element.innerHTML="",this.element.appendChild(this.createElement("span",{className:A,innerHTML:e}))},s.prototype.setContentIcon=function(e){var t=this.createElement("span",{className:A,innerHTML:e});if(this.iconCss){var s=this.createElement("span",{className:"e-btn-icon "+this.iconCss});this.element.textContent.trim()?(s.classList.add("e-icon-"+this.iconPosition.toLowerCase()),"Top"!==this.iconPosition&&"Bottom"!==this.iconPosition||this.element.classList.add("e-"+this.iconPosition.toLowerCase()+"-icon-btn")):this.element.classList.add("e-icon-btn");var i=t.childNodes[0];!i||"Left"!==this.iconPosition&&"Top"!==this.iconPosition?t.appendChild(s):t.insertBefore(s,i)}this.element.appendChild(t)},s.prototype.clickHandler=function(){this.element.classList.contains(x)||this.startProgress()},s.prototype.startProgress=function(e,t){var s=this.element.classList,i=s.contains("e-vertical");s.add(x),s.contains(N)||(0,h.showSpinner)(this.element.querySelector(".e-spinner")),this.startAnimate(Date.now(),t||0,t?Date.now()-1*this.duration/100:Date.now(),e||0,0,this.step,0,i),this.startContAnimate()},s.prototype.startAnimate=function(e,t,s,i,n,o,r,a){var p=this;try{var l=e-s,c=this.duration*o/100,d=l?l<c?l-c:l%c:0;this.progressTime=t=t+l-d,s=e-d,i+=(l-d)/this.duration*100;var h={percent:n=(t-r)%c==0||100===i?i:n,currentDuration:t,step:o};this.eIsVertical=a,0===i?this.trigger("begin",h,(function(e){p.successCallback(e,i,n,t,r,d,s)})):100===i||t===this.duration?this.trigger("end",h,(function(e){p.successCallback(e,i,n,t,r,d,s)})):this.trigger("progress",h,(function(e){p.successCallback(e,i,n,t,r,d,s)}))}catch(e){cancelAnimationFrame(this.timerId),this.trigger("fail",e)}},s.prototype.successCallback=function(e,t,s,i,n,o,r){var a=this,p=t,l=s,c=o,d=i,h=n,u=r,m=this.eIsVertical;p!==e.percent&&e.percent!==l&&(p=e.percent),this.percent=p,this.step=e.step,(d-h)%(this.duration*e.step/100)!=0&&100!==p||(this.timerId=requestAnimationFrame((function(){a.enableProgress&&a.getProgress()&&(a.getProgress().style[m?"height":"width"]=p+"%"),a.element.setAttribute("aria-valuenow",p.toString())})),l=p,h=d),this.isPaused||(d<this.duration&&p<100?this.interval=window.setTimeout((function(){a.startAnimate(Date.now(),d,u,p,l,e.step,h,m)}),this.duration/100-c):this.interval=window.setTimeout((function(){a.progressTime=a.percent=0,a.enableProgress&&a.getProgress()&&(a.getProgress().style[m?"height":"width"]="0%"),a.element.setAttribute("aria-valuenow","0"),a.hideSpin()}),100))},s.prototype.startContAnimate=function(){var e=this,s=this.element.getElementsByClassName(A)[0];"None"!==this.animationSettings.effect?new t.Animation({}).animate(s,{duration:0===this.animationSettings.duration&&"Enable"===t.animationMode?400:this.animationSettings.duration,name:"Progress"+this.animationSettings.effect,timingFunction:this.animationSettings.easing,begin:function(){"Center"===e.spinSettings.position&&e.setSpinnerSize()},end:function(){s.classList.add("e-animate-end")}}):"Center"===this.spinSettings.position&&this.setSpinnerSize()},s.prototype.finishProgress=function(){var e=this.element.classList,t=e.contains("e-vertical");e.add(x);for(var s=this.percent;s<100;s++)(s+=10)>100&&(s=100),this.enableProgress&&this.getProgress()&&(this.getProgress().style[t?"height":"width"]=this.percent<100?s+"%":"100%");this.element.setAttribute("aria-valuenow","0"),this.hideSpin();var i={step:this.step,currentDuration:this.progressTime,percent:100};clearTimeout(this.interval),this.trigger("end",i),this.progressTime=this.percent=0},s.prototype.setSpinnerSize=function(){var e=this.element.getElementsByClassName(A)[0],t=this.getSpinner();t.style.width=Math.max(t.offsetWidth,e.offsetWidth)+"px",t.style.height=Math.max(t.offsetHeight,e.offsetHeight)+"px",e.classList.add("e-cont-animate")},s.prototype.hideSpin=function(){var e=this.element.getElementsByClassName(A)[0];if(this.element.classList.contains(N)||(0,h.hideSpinner)(this.element.querySelector(".e-spinner")),this.element.classList.remove(x),"None"!==this.animationSettings.effect&&e.classList.remove("e-animate-end"),"Center"===this.spinSettings.position){var t=this.getSpinner();e.classList.remove("e-cont-animate"),t.style.width="auto",t.style.height="auto"}},s.prototype.setIconSpan=function(){var e=this.element.getElementsByClassName(A)[0],t=this.element.getElementsByClassName("e-btn-icon")[0];!e.childNodes[0]||"Left"!==this.iconPosition&&"Top"!==this.iconPosition?e.appendChild(t):e.insertBefore(t,e.childNodes[0])},s.prototype.setAria=function(){(0,t.attributes)(this.element,{"aria-label":this.element.textContent+" progress"})},s.prototype.wireEvents=function(){t.EventHandler.add(this.element,"click",this.clickHandler,this)},s.prototype.unWireEvents=function(){t.EventHandler.remove(this.element,"click",this.clickHandler)},s.prototype.onPropertyChanged=function(s,i){var n=this.element,o=!1;this.element.querySelector(".e-spinner-pane").classList.contains("e-spin-show")&&(o=!0),e.prototype.onPropertyChanged.call(this,s,i);for(var r=0,a=Object.keys(s);r<a.length;r++){switch(a[r]){case"content":this.setContent(),this.createSpinner(),o&&((0,h.showSpinner)(this.element.querySelector(".e-spinner")),o=!1),this.enableProgress&&this.createProgress(),n.setAttribute("aria-label",n.textContent+" progress");break;case"iconCss":i.iconCss||this.setIconSpan();break;case"iconPosition":this.setIconSpan();break;case"enableProgress":s.enableProgress?this.createProgress():(0,t.remove)(this.getProgress());break;case"spinSettings":s.spinSettings.position&&(n.classList.remove("e-spin-"+i.spinSettings.position.toLowerCase()),this.setSpinPosition(this.getSpinner())),(s.spinSettings.template||s.spinSettings.width)&&(n.removeChild(this.getSpinner()),this.createSpinner())}}},s.prototype.focusIn=function(){this.element.focus()},B([(0,t.Property)(!1)],s.prototype,"enableProgress",void 0),B([(0,t.Property)(2e3)],s.prototype,"duration",void 0),B([(0,t.Property)("Left")],s.prototype,"iconPosition",void 0),B([(0,t.Property)("")],s.prototype,"iconCss",void 0),B([(0,t.Property)(!1)],s.prototype,"disabled",void 0),B([(0,t.Property)(!1)],s.prototype,"isPrimary",void 0),B([(0,t.Property)("")],s.prototype,"cssClass",void 0),B([(0,t.Property)("")],s.prototype,"content",void 0),B([(0,t.Property)(!1)],s.prototype,"isToggle",void 0),B([(0,t.Property)(!0)],s.prototype,"enableHtmlSanitizer",void 0),B([(0,t.Complex)({},D)],s.prototype,"spinSettings",void 0),B([(0,t.Complex)({},U)],s.prototype,"animationSettings",void 0),B([(0,t.Event)()],s.prototype,"created",void 0),B([(0,t.Event)()],s.prototype,"begin",void 0),B([(0,t.Event)()],s.prototype,"progress",void 0),B([(0,t.Event)()],s.prototype,"end",void 0),B([(0,t.Event)()],s.prototype,"fail",void 0),s=B([t.NotifyPropertyChanges],s)}(d.Button)})(),r})()));
|
|
10
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("SyncfusionBase"),require("SyncfusionButtons"),require("SyncfusionPopups")):"function"==typeof define&&define.amd?define(["SyncfusionBase","SyncfusionButtons","SyncfusionPopups"],t):"object"==typeof exports?exports.SyncfusionSplitbuttons=t(require("SyncfusionBase"),require("SyncfusionButtons"),require("SyncfusionPopups")):e.SyncfusionSplitbuttons=t(e.SyncfusionBase,e.SyncfusionButtons,e.SyncfusionPopups)}(self,((e,t,s)=>(()=>{"use strict";var i={766:t=>{t.exports=e},741:e=>{e.exports=t},197:e=>{e.exports=s}},n={};function o(e){var t=n[e];if(void 0!==t)return t.exports;var s=n[e]={exports:{}};return i[e](s,s.exports,o),s.exports}o.d=(e,t)=>{for(var s in t)o.o(t,s)&&!o.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{o.r(r),o.d(r,{AnimationSettings:()=>U,Deferred:()=>S,DropDownButton:()=>C,Item:()=>c,ProgressButton:()=>R,SpinSettings:()=>D,SplitButton:()=>O,createButtonGroup:()=>L,getModel:()=>n,setBlankIconStyle:()=>l,upDownKeyHandler:()=>a});var e,t=o(766),s=(e=function(t,s){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var s in t)t.hasOwnProperty(s)&&(e[s]=t[s])},e(t,s)},function(t,s){function i(){this.constructor=t}e(t,s),t.prototype=null===s?Object.create(s):(i.prototype=s.prototype,new i)}),i=function(e,t,s,i){var n,o=arguments.length,r=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,s,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(r=(o<3?n(r):o>3?n(t,s,r):n(t,s))||r);return o>3&&r&&Object.defineProperty(t,s,r),r};function n(e,s){for(var i=(0,t.extend)({},e),n=0,o=Object.keys(i);n<o.length;n++){var r=o[n];s.indexOf(r)<0&&(0,t.deleteObject)(i,r)}return i}function a(e,s){var i=40===s?0:e.childElementCount-1,n=i,o=e.querySelector(".e-selected");o&&o.classList.remove("e-selected");for(var r=0,a=e.children.length;r<a;r++)e.children[r].classList.contains("e-focused")&&(n=r,e.children[r].classList.remove("e-focused"),40===s?n++:n--,n===(40===s?e.childElementCount:-1)&&(n=i));-1!==(n=p(e,e.children[n],n,s))&&((0,t.addClass)([e.children[n]],"e-focused"),e.children[n].focus())}function p(e,t,s,i,n){if(void 0===n&&(n=0),(t.classList.contains("e-separator")||t.classList.contains("e-disabled"))&&(s===(40===i?e.childElementCount-1:0)?s=40===i?0:e.childElementCount-1:40===i?s++:s--),(t=e.children[s]).classList.contains("e-separator")||t.classList.contains("e-disabled")){if(++n===e.childElementCount)return-1;s=p(e,t,s,i,n)}return s}function l(e,s){var i=[].slice.call(e.getElementsByClassName("e-blank-icon"));s&&[].slice.call(e.getElementsByClassName("e-item")).forEach((function(e){(e.style.paddingLeft||e.style.paddingRight)&&e.removeAttribute("style")}));if(i.length){var n=e.querySelector(".e-item:not(.e-blank-icon):not(.e-separator)");if(!(0,t.isNullOrUndefined)(n)){n.classList.contains("e-url")&&(n=n.querySelector(".e-menu-url"));var o,r=n.querySelector(".e-menu-icon"),a=e.classList.contains("e-rtl");o=a?{padding:"paddingRight",margin:"marginLeft"}:{padding:"paddingLeft",margin:"marginRight"};var p=parseInt(getComputedStyle(r).fontSize,10)+parseInt(getComputedStyle(r)[o.margin],10)+parseInt(getComputedStyle(n).paddingLeft,10)+"px";i.forEach((function(e){e.classList.contains("e-url")?e.querySelector(".e-menu-url").style[o.padding]=p:e.style[o.padding]=p}))}}}var c=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return s(n,e),i([(0,t.Property)("")],n.prototype,"iconCss",void 0),i([(0,t.Property)("")],n.prototype,"id",void 0),i([(0,t.Property)(!1)],n.prototype,"separator",void 0),i([(0,t.Property)("")],n.prototype,"text",void 0),i([(0,t.Property)("")],n.prototype,"url",void 0),i([(0,t.Property)(!1)],n.prototype,"disabled",void 0),n}(t.ChildProperty),d=o(741),h=o(197),u=function(){var e=function(t,s){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var s in t)t.hasOwnProperty(s)&&(e[s]=t[s])},e(t,s)};return function(t,s){function i(){this.constructor=t}e(t,s),t.prototype=null===s?Object.create(s):(i.prototype=s.prototype,new i)}}(),m=function(e,t,s,i){var n,o=arguments.length,r=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,s,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(r=(o<3?n(r):o>3?n(t,s,r):n(t,s))||r);return o>3&&r&&Object.defineProperty(t,s,r),r},y="e-menu-icon",f="e-item",v="e-dropdown-popup",g="e-separator",b="e-vertical",C=function(e){function s(t,s){var i=e.call(this,t,s)||this;return i.isPopupCreated=!0,i}return u(s,e),s.prototype.preRender=function(){},s.prototype.getPersistData=function(){return this.addOnPersist([])},s.prototype.toggle=function(){this.canOpen()?this.openPopUp():this.createPopupOnClick&&!this.isPopupCreated?(this.createPopup(),this.openPopUp()):this.closePopup()},s.prototype.render=function(){this.initialize(),this.disabled||this.wireEvents(),this.renderComplete()},s.prototype.addItems=function(e,t){for(var s,i=this.items.length,n=0,o=this.items.length;n<o;n++)if(t===this.items[n].text){i=n;break}for(var r=e.length-1;r>=0;r--)s=new c(this,"items",e[r],!0),this.items.splice(i,0,s);this.canOpen()||this.createItems()},s.prototype.removeItems=function(e,t){for(var s=!1,i=0,n=e.length;i<n;i++)for(var o=0,r=this.items.length;o<r;o++)if(e[i]===(t?this.items[o].id:this.items[o].text)){this.items.splice(o,1),s=!0;break}s&&this.getULElement()&&this.createItems()},s.prototype.createPopup=function(){var e,s=this.createElement("div",{className:v,id:this.element.id+"-popup"});document.body.appendChild(s),this.dropDown=new h.Popup(s,{relateTo:this.element,collision:{X:"fit",Y:"flip"},position:{X:"left",Y:"bottom"},targetType:"relative",content:this.target?this.getTargetElement():"",enableRtl:this.enableRtl}),this.dropDown.element.setAttribute("role","dialog"),this.dropDown.element.setAttribute("aria-label","dropdown menu"),(0,t.isNullOrUndefined)(this.popupContent)||(this.popupContent.style.display=""),"fixed"===this.dropDown.element.style.position&&this.dropDown.refreshPosition(this.element),this.dropDown.hide(),(0,t.attributes)(this.element,((e={})["aria-haspopup"]=this.items.length||this.target?"true":"false",e["aria-expanded"]="false",e.type="button",e)),this.cssClass&&(0,t.addClass)([s],this.cssClass.replace(/\s+/g," ").trim().split(" ")),this.isPopupCreated=!0},s.prototype.getTargetElement=function(){return!this.createPopupOnClick||this.isColorPicker()||(0,t.isNullOrUndefined)(this.popupContent)?"string"==typeof this.target?(0,t.select)(this.target):this.target:this.popupContent},s.prototype.createItems=function(e){var s,i,n,o,r=this.items,a=this.hasIcon(this.items,"iconCss"),p=this.getULElement();p?p.innerHTML="":p=this.createElement("ul",{attrs:{role:"menu",tabindex:"0"}});for(var c=0;c<r.length;c++){var d=(i=r[c]).text;n=this.createElement("li",{innerHTML:i.url?"":d,className:i.separator?f+" "+g:f,attrs:i.separator?{role:"separator",tabindex:"-1","aria-label":"separator","aria-hidden":"true"}:{role:"menuitem",tabindex:"-1","aria-label":d},id:i.id?i.id:(0,t.getUniqueID)("e-"+this.getModuleName()+"-item")}),this.enableHtmlSanitizer?n.textContent=i.url?"":d:n.innerHTML=i.url?"":d,i.url&&(n.appendChild(this.createAnchor(i)),n.classList.add("e-url")),i.iconCss?(s=this.createElement("span",{className:y+" "+i.iconCss}),i.url?n.childNodes[0].appendChild(s):n.insertBefore(s,n.childNodes[0])):a&&!i.separator&&n.classList.add("e-blank-icon");var h=i.disabled;i.disabled&&n.classList.add("e-disabled"),o={item:i,element:n},this.trigger("beforeItemRender",o),h!==o.item.disabled&&(o.item.disabled?n.classList.add("e-disabled"):n.classList.remove("e-disabled")),p.appendChild(n)}e&&this.getPopUpElement().appendChild(p),a&&l(this.getPopUpElement())},s.prototype.hasIcon=function(e,t){for(var s=0,i=e.length;s<i;s++)if(e[s][""+t])return!0;return!1},s.prototype.createAnchor=function(e){var s=this.enableHtmlSanitizer?t.SanitizeHtmlHelper.sanitize(e.text):e.text;return this.createElement("a",{className:"e-menu-text e-menu-url",innerHTML:s,attrs:{href:e.url}})},s.prototype.initialize=function(){this.button=new d.Button({iconCss:this.iconCss,iconPosition:this.iconPosition,cssClass:this.cssClass,content:this.content,disabled:this.disabled,enableRtl:this.enableRtl,enablePersistence:this.enablePersistence}),this.button.createElement=this.createElement,this.button.appendTo(this.element),this.element.id||(this.element.id=(0,t.getUniqueID)("e-"+this.getModuleName())),this.appendArrowSpan(),this.setActiveElem([this.element]),this.element.setAttribute("tabindex","0"),this.element.setAttribute("aria-label",this.element.textContent?this.element.textContent:"dropdownbutton"),this.target&&!this.isColorPicker()&&!this.createPopupOnClick||!this.createPopupOnClick?this.createPopup():(this.isPopupCreated=!1,this.target&&!this.isColorPicker()&&this.createPopupOnClick&&(this.popupContent=this.getTargetElement(),this.popupContent.style.display="none"))},s.prototype.isColorPicker=function(){if(!this.element)return!1;var e=this.element.previousSibling;return!!(e&&e.classList&&e.classList.contains("e-split-colorpicker"))},s.prototype.appendArrowSpan=function(){this.cssClass=(0,t.isNullOrUndefined)(this.cssClass)?"":this.cssClass,this.element.appendChild(this.createElement("span",{className:"e-btn-icon e-icons e-icon-"+(this.cssClass.indexOf(b)>-1?"bottom":"right")+" e-caret"}))},s.prototype.setActiveElem=function(e){this.activeElem=e},s.prototype.getModuleName=function(){return"dropdown-btn"},s.prototype.canOpen=function(){var e=!1;return this.isPopupCreated&&(e=this.getPopUpElement().classList.contains("e-popup-close")),e},s.prototype.destroy=function(){var s,i=this;(e.prototype.destroy.call(this),"dropdown-btn"===this.getModuleName())&&(this.element.querySelector("span.e-caret")&&(0,t.detach)(this.element.querySelector("span.e-caret")),this.cssClass&&(s=this.cssClass.split(" ")),this.button.destroy(),s&&(0,t.removeClass)([this.element],s),(0,t.removeClass)(this.activeElem,["e-active"]),(this.element.getAttribute("class")?["aria-haspopup","aria-expanded","aria-owns","type"]:["aria-haspopup","aria-expanded","aria-owns","type","class"]).forEach((function(e){i.element.removeAttribute(e)})),this.popupUnWireEvents(),this.destroyPopup(),this.isPopupCreated=!1,this.disabled||this.unWireEvents())},s.prototype.destroyPopup=function(){if(this.isPopupCreated){if(this.dropDown.destroy(),this.getPopUpElement()){var e=document.getElementById(this.getPopUpElement().id);e&&((0,t.removeClass)([e],["e-popup-open","e-popup-close"]),(0,t.detach)(e))}t.EventHandler.remove(this.getPopUpElement(),"click",this.clickHandler),t.EventHandler.remove(this.getPopUpElement(),"keydown",this.keyBoardHandler),this.isPopupCreated&&this.dropDown&&(this.dropDown.element=null,this.dropDown=void 0)}this.isPopupCreated=!1},s.prototype.getPopUpElement=function(){var e=null;if(!this.dropDown&&this.activeElem[0].classList.contains("e-split-btn")){var s=(0,t.getComponent)(this.activeElem[1],"dropdown-btn");s&&(this.dropDown=s.dropDown)}return this.dropDown&&(e=this.dropDown.element),e},s.prototype.getULElement=function(){var e=null;return this.getPopUpElement()&&(e=this.getPopUpElement().children[0]),e},s.prototype.wireEvents=function(){this.delegateMousedownHandler=this.mousedownHandler.bind(this),this.createPopupOnClick||t.EventHandler.add(document,"mousedown touchstart",this.delegateMousedownHandler,this),t.EventHandler.add(this.element,"click",this.clickHandler,this),t.EventHandler.add(this.element,"keydown",this.keyBoardHandler,this),t.EventHandler.add(window,"resize",this.windowResize,this)},s.prototype.windowResize=function(){!this.canOpen()&&this.dropDown&&this.dropDown.refreshPosition(this.element)},s.prototype.popupWireEvents=function(){this.delegateMousedownHandler||(this.delegateMousedownHandler=this.mousedownHandler.bind(this));var e=this.getPopUpElement();this.createPopupOnClick&&t.EventHandler.add(document,"mousedown touchstart",this.delegateMousedownHandler,this),e&&(t.EventHandler.add(e,"click",this.clickHandler,this),t.EventHandler.add(e,"keydown",this.keyBoardHandler,this),this.closeActionEvents&&t.EventHandler.add(e,this.closeActionEvents,this.focusoutHandler,this)),this.rippleFn=(0,t.rippleEffect)(e,{selector:"."+f})},s.prototype.popupUnWireEvents=function(){var e=this.getPopUpElement();this.createPopupOnClick&&t.EventHandler.remove(document,"mousedown touchstart",this.delegateMousedownHandler),e&&e.parentElement&&(t.EventHandler.remove(e,"click",this.clickHandler),t.EventHandler.remove(e,"keydown",this.keyBoardHandler),this.closeActionEvents&&t.EventHandler.remove(e,this.closeActionEvents,this.focusoutHandler)),t.isRippleEnabled&&this.rippleFn&&this.rippleFn()},s.prototype.keyBoardHandler=function(e){if(e.target!==this.element||9!==e.keyCode&&(e.altKey||40!==e.keyCode)&&38!==e.keyCode)switch(e.keyCode){case 38:case 40:!e.altKey||38!==e.keyCode&&40!==e.keyCode?this.upDownKeyHandler(e):this.keyEventHandler(e);break;case 9:case 13:case 27:case 32:this.keyEventHandler(e)}},s.prototype.upDownKeyHandler=function(e){(!this.target||38!==e.keyCode&&40!==e.keyCode)&&(e.preventDefault(),a(this.getULElement(),e.keyCode))},s.prototype.keyEventHandler=function(e){if(!this.target||13!==e.keyCode&&9!==e.keyCode)return 13===e.keyCode&&this.activeElem[0].classList.contains("e-split-btn")?(this.triggerSelect(e),void this.activeElem[0].focus()):void(e.target&&e.target.className.indexOf("e-edit-template")>-1&&32===e.keyCode||(9!==e.keyCode&&e.preventDefault(),27===e.keyCode||38===e.keyCode||9===e.keyCode?this.canOpen()||this.closePopup(e,this.element):this.clickHandler(e)))},s.prototype.getLI=function(e){return"LI"===e.tagName?e:(0,t.closest)(e,"li")},s.prototype.mousedownHandler=function(e){var s=e.target;!this.dropDown||this.canOpen()||(0,t.closest)(s,'[id="'+this.getPopUpElement().id+'"]')||(0,t.closest)(s,'[id="'+this.element.id+'"]')||this.closePopup(e)},s.prototype.focusoutHandler=function(e){if(this.isPopupCreated&&!this.canOpen()){var t=e.relatedTarget;if(t&&t.className.indexOf("e-item")>-1){var s=this.getLI(t);if(s){var i=Array.prototype.indexOf.call(this.getULElement().children,s),n=this.items[i];if(n){var o={element:s,item:n,event:e};this.trigger("select",o)}}}this.closePopup(e)}},s.prototype.clickHandler=function(e){var s=e.target;(0,t.closest)(s,'[id="'+this.element.id+'"]')?!this.createPopupOnClick||this.target&&""!==this.target&&!this.isColorPicker()&&!this.createPopupOnClick?this.getPopUpElement().classList.contains("e-popup-close")?this.openPopUp(e):this.closePopup(e):this.isPopupCreated?this.closePopup(e,this.activeElem[0]):(this.createPopup(),this.openPopUp(e)):(0,t.closest)(s,'[id="'+this.getPopUpElement().id+'"]')&&this.getLI(e.target)&&(this.triggerSelect(e),this.closePopup(e,this.activeElem[0]))},s.prototype.triggerSelect=function(e){var t,s,i,n=this.getLI(e.target);n&&(s=Array.prototype.indexOf.call(this.getULElement().children,n),(i=this.items[s])&&(t={element:n,item:i,event:e},this.trigger("select",t)))},s.prototype.openPopUp=function(e){var s=this;void 0===e&&(e=null);var i=this.getPopUpElement();if(this.target)if(this.activeElem.length>1){var n=(0,t.getComponent)(this.activeElem[0],"split-btn");n.isReact&&i.childNodes.length<1&&(n.appendReactElement(this.getTargetElement(),this.getPopUpElement()),this.renderReactTemplates())}else this.isReact&&i.childNodes.length<1&&(this.appendReactElement(this.getTargetElement(),this.getPopUpElement()),this.renderReactTemplates());else this.createItems(!0);var o=this.getULElement();this.popupWireEvents();var r={element:o,items:this.items,event:e,cancel:!1};this.trigger("beforeOpen",r,(function(e){if(!e.cancel){var i=s.getULElement();if(s.dropDown.show(null,s.element),(0,t.addClass)([s.element],"e-active"),s.element.setAttribute("aria-expanded","true"),s.element.setAttribute("aria-owns",s.getPopUpElement().id),i&&i.focus(),s.enableRtl&&"0px"!==i.parentElement.style.left){var n=void 0;n=s.element.parentElement&&s.element.parentElement.classList.contains("e-split-btn-wrapper")?s.element.parentElement.offsetWidth:s.element.offsetWidth;var o=i.parentElement.offsetWidth-n,r=parseFloat(i.parentElement.style.left)-o;r<0&&(r=0),i.parentElement.style.left=r+"px"}var a={element:i,items:s.items};s.trigger("open",a)}}))},s.prototype.closePopup=function(e,s){var i=this;void 0===e&&(e=null);var n=this.getULElement(),o={element:n,items:this.items,event:e,cancel:!1};this.trigger("beforeClose",o,(function(e){if(e.cancel)n&&n.focus();else{var o=i.getPopUpElement();o&&t.EventHandler.remove(o,"keydown",i.keyBoardHandler),i.popupUnWireEvents();var r=i.getULElement(),a=void 0;r&&(a=r.querySelector(".e-selected")),a&&a.classList.remove("e-selected"),i.dropDown.hide(),(0,t.removeClass)(i.activeElem,"e-active"),i.element.setAttribute("aria-expanded","false"),i.element.removeAttribute("aria-owns"),s&&s.focus();var p={element:r,items:i.items};i.trigger("close",p),!i.target&&r&&(0,t.detach)(r),(!i.target||i.isColorPicker()||i.target&&!i.isColorPicker())&&i.createPopupOnClick&&i.destroyPopup()}}))},s.prototype.unWireEvents=function(){this.createPopupOnClick||t.EventHandler.remove(document,"mousedown touchstart",this.delegateMousedownHandler),t.EventHandler.remove(this.element,"click",this.clickHandler),t.EventHandler.remove(this.element,"keydown",this.keyBoardHandler),this.isPopupCreated&&(t.EventHandler.remove(this.getPopUpElement(),"click",this.clickHandler),t.EventHandler.remove(this.getPopUpElement(),"keydown",this.keyBoardHandler)),t.EventHandler.remove(window,"resize",this.windowResize)},s.prototype.onPropertyChanged=function(e,s){var i;this.button.setProperties(n(e,["content","cssClass","iconCss","iconPosition","disabled","enableRtl"])),this.isPopupCreated&&(i=this.getPopUpElement(),this.dropDown.setProperties(n(e,["enableRtl"])));for(var o=0,r=Object.keys(e);o<r.length;o++){switch(r[o]){case"content":this.element.querySelector("span.e-caret")||this.appendArrowSpan();break;case"disabled":e.disabled?(this.unWireEvents(),this.isPopupCreated&&!this.canOpen()&&this.closePopup()):this.wireEvents();break;case"cssClass":if(e.cssClass.indexOf(b)>-1||s.cssClass.indexOf(b)>-1){this.element.querySelector("span.e-caret")||this.appendArrowSpan();var a=this.element.querySelector("span.e-caret");e.cssClass.indexOf(b)>-1?(0,t.classList)(a,["e-icon-bottom"],["e-icon-right"]):(0,t.classList)(a,["e-icon-right"],["e-icon-bottom"])}this.isPopupCreated&&(s.cssClass&&(0,t.removeClass)([i],s.cssClass.split(" ")),e.cssClass&&(0,t.addClass)([i],e.cssClass.replace(/\s+/g," ").trim().split(" ")));break;case"target":this.dropDown.content=this.getTargetElement(),this.dropDown.dataBind();break;case"items":this.isPopupCreated&&this.getULElement()&&this.createItems();break;case"createPopupOnClick":e.createPopupOnClick?this.destroyPopup():this.createPopup()}}},s.prototype.focusIn=function(){this.element.focus()},m([(0,t.Property)("")],s.prototype,"content",void 0),m([(0,t.Property)("")],s.prototype,"cssClass",void 0),m([(0,t.Property)(!1)],s.prototype,"disabled",void 0),m([(0,t.Property)("")],s.prototype,"iconCss",void 0),m([(0,t.Property)("Left")],s.prototype,"iconPosition",void 0),m([(0,t.Property)(!0)],s.prototype,"enableHtmlSanitizer",void 0),m([(0,t.Collection)([],c)],s.prototype,"items",void 0),m([(0,t.Property)(!1)],s.prototype,"createPopupOnClick",void 0),m([(0,t.Property)("")],s.prototype,"target",void 0),m([(0,t.Property)("")],s.prototype,"closeActionEvents",void 0),m([(0,t.Event)()],s.prototype,"beforeItemRender",void 0),m([(0,t.Event)()],s.prototype,"beforeOpen",void 0),m([(0,t.Event)()],s.prototype,"beforeClose",void 0),m([(0,t.Event)()],s.prototype,"close",void 0),m([(0,t.Event)()],s.prototype,"open",void 0),m([(0,t.Event)()],s.prototype,"select",void 0),m([(0,t.Event)()],s.prototype,"created",void 0),s=m([t.NotifyPropertyChanges],s)}(t.Component),P=function(){var e=function(t,s){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var s in t)t.hasOwnProperty(s)&&(e[s]=t[s])},e(t,s)};return function(t,s){function i(){this.constructor=t}e(t,s),t.prototype=null===s?Object.create(s):(i.prototype=s.prototype,new i)}}(),E=function(e,t,s,i){var n,o=arguments.length,r=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,s,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(r=(o<3?n(r):o>3?n(t,s,r):n(t,s))||r);return o>3&&r&&Object.defineProperty(t,s,r),r},w="e-rtl",k="EJS-SPLITBUTTON",O=function(e){function s(t,s){return e.call(this,t,s)||this}return P(s,e),s.prototype.preRender=function(){var e=this.element;if(e.tagName===k){for(var s=(0,t.getValue)("ej2_instances",e),i=this.createElement("button",{attrs:{type:"button"}}),n=this.createElement(k,{className:"e-"+this.getModuleName()+"-wrapper"}),o=0,r=e.attributes.length;o<r;o++)i.setAttribute(e.attributes[o].nodeName,e.attributes[o].nodeValue);e.parentNode.insertBefore(n,e),(0,t.detach)(e),e=i,n.appendChild(e),(0,t.setValue)("ej2_instances",s,e),this.wrapper=n,this.element=e}this.element.id||(this.element.id=(0,t.getUniqueID)("e-"+this.getModuleName()))},s.prototype.render=function(){this.initWrapper(),this.createPrimaryButton(),this.renderControl()},s.prototype.renderControl=function(){this.createSecondaryButton(),this.setActiveElem([this.element,this.secondaryBtnObj.element]),this.setAria(),this.wireEvents(),this.renderComplete()},s.prototype.addItems=function(t,s){e.prototype.addItems.call(this,t,s),this.secondaryBtnObj.items=this.items},s.prototype.removeItems=function(t,s){e.prototype.removeItems.call(this,t,s),this.secondaryBtnObj.items=this.items},s.prototype.initWrapper=function(){this.wrapper||(this.wrapper=this.createElement("div",{className:"e-"+this.getModuleName()+"-wrapper"}),this.element.parentNode.insertBefore(this.wrapper,this.element)),this.element.classList.remove("e-"+this.getModuleName()),this.enableRtl&&this.wrapper.classList.add(w),this.cssClass&&(0,t.addClass)([this.wrapper],this.cssClass.replace(/\s+/g," ").trim().split(" "))},s.prototype.createPrimaryButton=function(){var e={cssClass:this.cssClass,enableRtl:this.enableRtl,iconCss:this.iconCss,iconPosition:this.iconPosition,content:this.content,disabled:this.disabled};this.primaryBtnObj=new d.Button(e),this.primaryBtnObj.createElement=this.createElement,this.primaryBtnObj.appendTo(this.element),this.element.classList.add("e-"+this.getModuleName()),this.element.type="button",this.wrapper.appendChild(this.element)},s.prototype.createSecondaryButton=function(){var e=this,t=this.createElement("button",{className:"e-icon-btn",attrs:{tabindex:"-1"},id:this.element.id+"_dropdownbtn"});this.wrapper.appendChild(t);var s={cssClass:this.cssClass,disabled:this.disabled,enableRtl:this.enableRtl,items:this.items,target:this.target,createPopupOnClick:this.createPopupOnClick,beforeItemRender:function(t){e.createPopupOnClick&&(e.secondaryBtnObj.dropDown.relateTo=e.wrapper,e.dropDown=e.secondaryBtnObj.dropDown),e.trigger("beforeItemRender",t)},open:function(t){e.trigger("open",t)},close:function(t){e.trigger("close",t)},select:function(t){e.trigger("select",t)},beforeOpen:function(t){e.createPopupOnClick&&0===e.items.length&&(e.secondaryBtnObj.dropDown.relateTo=e.wrapper,e.dropDown=e.secondaryBtnObj.dropDown);var s=new S;return e.trigger("beforeOpen",t,(function(e){s.resolve(e)})),s},beforeClose:function(t){var s=new S;return e.trigger("beforeClose",t,(function(e){s.resolve(e)})),s}};this.secondaryBtnObj=new C(s),this.secondaryBtnObj.createElement=this.createElement,this.secondaryBtnObj.appendTo(t),this.createPopupOnClick||(this.secondaryBtnObj.dropDown.relateTo=this.wrapper,this.dropDown=this.secondaryBtnObj.dropDown),this.isPopupCreated=this.secondaryBtnObj.isPopupCreated,this.secondaryBtnObj.activeElem=[this.element,this.secondaryBtnObj.element],this.secondaryBtnObj.element.querySelector(".e-btn-icon").classList.remove("e-icon-right"),this.disabled&&this.wrapper.classList.add("e-splitbtn-disabled")},s.prototype.setAria=function(){(0,t.attributes)(this.element,{"aria-expanded":"false","aria-haspopup":"true","aria-label":this.element.textContent?this.element.textContent+" splitbutton":"splitbutton","aria-owns":this.element.id+"_dropdownbtn-popup"})},s.prototype.getModuleName=function(){return"split-btn"},s.prototype.toggle=function(){this.secondaryBtnObj.toggle()},s.prototype.destroy=function(){var s=this,i=[w];if(this.cssClass&&(i=i.concat(this.cssClass.split(" "))),this.element){var n=document.getElementById(this.element.id);n&&n.parentElement===this.wrapper&&(this.wrapper.tagName===k?(this.wrapper.innerHTML="",(0,t.removeClass)([this.wrapper],["e-rtl","e-"+this.getModuleName()+"-wrapper"]),(0,t.removeClass)([this.wrapper],this.cssClass.split(" "))):((0,t.removeClass)([this.element],i),["aria-label","aria-haspopup","aria-expanded","aria-owns","type"].forEach((function(e){s.element.removeAttribute(e)})),this.wrapper.parentNode.insertBefore(this.element,this.wrapper),(0,t.remove)(this.wrapper)),this.unWireEvents())}this.primaryBtnObj.destroy(),this.secondaryBtnObj.destroy(),e.prototype.destroy.call(this),this.element&&!this.element.getAttribute("class")&&this.element.removeAttribute("class"),this.refreshing&&this.isAngular&&(this.element=this.wrapper,["e-control","e-split-btn","e-lib"].forEach((function(e){s.element.classList.add(e)})),(0,t.setValue)("ej2_instances",[this],this.element)),this.wrapper=null},s.prototype.wireEvents=function(){t.EventHandler.add(this.element,"click",this.primaryBtnClickHandler,this),new t.KeyboardEvents(this.element,{keyAction:this.btnKeyBoardHandler.bind(this),keyConfigs:{altdownarrow:"alt+downarrow",enter:"enter"}})},s.prototype.unWireEvents=function(){t.EventHandler.remove(this.element,"click",this.primaryBtnClickHandler),(0,t.getInstance)(this.element,t.KeyboardEvents).destroy()},s.prototype.primaryBtnClickHandler=function(){this.trigger("click",{element:this.element})},s.prototype.btnKeyBoardHandler=function(e){switch(e.action){case"altdownarrow":this.clickHandler(e);break;case"enter":this.clickHandler(e),this.getPopUpElement()&&!this.getPopUpElement().classList.contains("e-popup-close")?(this.element.classList.remove("e-active"),this.secondaryBtnObj.element.classList.add("e-active")):this.secondaryBtnObj.element.classList.remove("e-active")}},s.prototype.onPropertyChanged=function(e,s){var i=["content","iconCss","iconPosition","cssClass","disabled","enableRtl"];this.primaryBtnObj.setProperties(n(e,i)),i=["beforeOpen","beforeItemRender","select","open","close","cssClass","disabled","enableRtl","createPopupOnClick"],Object.keys(e).indexOf("items")>-1&&(this.secondaryBtnObj.items=e.items,this.secondaryBtnObj.dataBind()),this.secondaryBtnObj.setProperties(n(e,i));for(var o=0,r=Object.keys(e);o<r.length;o++){switch(r[o]){case"cssClass":s.cssClass&&(0,t.removeClass)([this.wrapper],s.cssClass.split(" ")),(0,t.addClass)([this.wrapper],e.cssClass.replace(/\s+/g," ").trim().split(" "));break;case"enableRtl":e.enableRtl?(0,t.addClass)([this.wrapper],w):(0,t.removeClass)([this.wrapper],w);break;case"disabled":e.disabled?(0,t.addClass)([this.wrapper],"e-splitbtn-disabled"):(0,t.removeClass)([this.wrapper],"e-splitbtn-disabled")}}},s.prototype.focusIn=function(){this.element.focus()},E([(0,t.Property)("")],s.prototype,"content",void 0),E([(0,t.Property)("")],s.prototype,"cssClass",void 0),E([(0,t.Property)(!1)],s.prototype,"disabled",void 0),E([(0,t.Property)("")],s.prototype,"iconCss",void 0),E([(0,t.Property)("Left")],s.prototype,"iconPosition",void 0),E([(0,t.Property)(!1)],s.prototype,"createPopupOnClick",void 0),E([(0,t.Collection)([],c)],s.prototype,"items",void 0),E([(0,t.Property)("")],s.prototype,"target",void 0),E([(0,t.Event)()],s.prototype,"beforeItemRender",void 0),E([(0,t.Event)()],s.prototype,"beforeOpen",void 0),E([(0,t.Event)()],s.prototype,"beforeClose",void 0),E([(0,t.Event)()],s.prototype,"click",void 0),E([(0,t.Event)()],s.prototype,"close",void 0),E([(0,t.Event)()],s.prototype,"open",void 0),E([(0,t.Event)()],s.prototype,"select",void 0),E([(0,t.Event)()],s.prototype,"created",void 0),s=E([t.NotifyPropertyChanges],s)}(C),S=function(){var e=this;this.promise=new Promise((function(t,s){e.resolve=t,e.reject=s})),this.catch=this.promise.catch.bind(this.promise),this.then=this.promise.then.bind(this.promise)};function L(e,s,i){var n,o,r,a;void 0===s&&(s={}),(0,t.isNullOrUndefined)(i)&&(i=t.createElement);var p=document.querySelector(e);(0,t.addClass)([p],["e-btn-group","e-css"]),p.setAttribute("role","group");var l=p.children;s.buttons=s.buttons||[];for(var c=0,h=0;h<l.length;c++,h++)n=l[h],null!==(a=s.buttons[c])&&("BUTTON"===n.tagName?o=n:(o=i("label"),(r=l[h+1])?p.insertBefore(o,r):p.appendChild(o),n.id&&o.setAttribute("for",n.id),a&&a.disabled&&(n.disabled=!0),h++),s.cssClass&&a&&!a.cssClass&&(a.cssClass=s.cssClass),new d.Button(a||{},o));return p}var H=function(){var e=function(t,s){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var s in t)t.hasOwnProperty(s)&&(e[s]=t[s])},e(t,s)};return function(t,s){function i(){this.constructor=t}e(t,s),t.prototype=null===s?Object.create(s):(i.prototype=s.prototype,new i)}}(),B=function(e,t,s,i){var n,o=arguments.length,r=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,s,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(r=(o<3?n(r):o>3?n(t,s,r):n(t,s))||r);return o>3&&r&&Object.defineProperty(t,s,r),r},N="e-hide-spinner",j="e-progress",x="e-progress-active",A="e-btn-content",D=function(e){function s(){return null!==e&&e.apply(this,arguments)||this}return H(s,e),B([(0,t.Property)(null)],s.prototype,"template",void 0),B([(0,t.Property)(16)],s.prototype,"width",void 0),B([(0,t.Property)("Left")],s.prototype,"position",void 0),s}(t.ChildProperty),U=function(e){function s(){return null!==e&&e.apply(this,arguments)||this}return H(s,e),B([(0,t.Property)(400)],s.prototype,"duration",void 0),B([(0,t.Property)("None")],s.prototype,"effect",void 0),B([(0,t.Property)("ease")],s.prototype,"easing",void 0),s}(t.ChildProperty),R=function(e){function s(t,s){var i=e.call(this,t,s)||this;return i.step=1,i}return H(s,e),s.prototype.preRender=function(){e.prototype.preRender.call(this)},s.prototype.render=function(){e.prototype.render.call(this),this.init(),this.wireEvents(),this.setAria(),this.renderComplete()},s.prototype.start=function(e){this.isPaused=!1,this.startProgress(e||this.percent,this.progressTime)},s.prototype.stop=function(){this.isPaused=!0,cancelAnimationFrame(this.timerId)},s.prototype.progressComplete=function(){this.isPaused=!1,this.finishProgress()},s.prototype.getModuleName=function(){return"progress-btn"},s.prototype.destroy=function(){var s=this,i=[N,x,"e-round-corner","e-"+e.prototype.getModuleName.call(this),"e-spin-"+this.spinSettings.position.toLowerCase()];e.prototype.destroy.call(this),this.unWireEvents(),this.element.innerHTML="",this.cssClass&&(i=i.concat(this.cssClass.split(" "))),(0,t.removeClass)([this.element],i),(this.element.getAttribute("class")?["aria-label","aria-valuemin","aria-valuemax","aria-valuenow"]:["aria-label","aria-valuemin","aria-valuemax","aria-valuenow","class"]).forEach((function(e){s.element.removeAttribute(e)})),this.disabled&&this.element.removeAttribute("disabled")},s.prototype.init=function(){this.element.classList.add("e-"+e.prototype.getModuleName.call(this)),this.setContent(),this.createSpinner(),this.enableProgress&&this.createProgress()},s.prototype.createSpinner=function(){var e=this.createElement("span",{className:"e-spinner"});this.setSpinPosition(e),(0,h.createSpinner)({target:e,width:this.spinSettings.width||16,template:this.spinSettings.template},this.createElement)},s.prototype.getSpinner=function(){return this.element.getElementsByClassName("e-spinner")[0]},s.prototype.getProgress=function(){return this.element.getElementsByClassName(j)[0]},s.prototype.setSpinPosition=function(e){var t=this.spinSettings.position||"Left";"Left"===t||"Top"===t?this.element.insertBefore(e,this.element.getElementsByClassName(A)[0]):this.element.appendChild(e),this.element.classList.add("e-spin-"+t.toLowerCase())},s.prototype.createProgress=function(){this.element.appendChild(this.createElement("span",{className:j}))},s.prototype.setContent=function(){var e;e=this.element.innerHTML,this.enableHtmlSanitizer&&(e=t.SanitizeHtmlHelper.sanitize(this.element.innerHTML)),this.element.innerHTML="",this.element.appendChild(this.createElement("span",{className:A,innerHTML:e}))},s.prototype.setContentIcon=function(e){var t=this.createElement("span",{className:A,innerHTML:e});if(this.iconCss){var s=this.createElement("span",{className:"e-btn-icon "+this.iconCss});this.element.textContent.trim()?(s.classList.add("e-icon-"+this.iconPosition.toLowerCase()),"Top"!==this.iconPosition&&"Bottom"!==this.iconPosition||this.element.classList.add("e-"+this.iconPosition.toLowerCase()+"-icon-btn")):this.element.classList.add("e-icon-btn");var i=t.childNodes[0];!i||"Left"!==this.iconPosition&&"Top"!==this.iconPosition?t.appendChild(s):t.insertBefore(s,i)}this.element.appendChild(t)},s.prototype.clickHandler=function(){this.element.classList.contains(x)||this.startProgress()},s.prototype.startProgress=function(e,t){var s=this.element.classList,i=s.contains("e-vertical");s.add(x),s.contains(N)||(0,h.showSpinner)(this.element.querySelector(".e-spinner")),this.startAnimate(Date.now(),t||0,t?Date.now()-1*this.duration/100:Date.now(),e||0,0,this.step,0,i),this.startContAnimate()},s.prototype.startAnimate=function(e,t,s,i,n,o,r,a){var p=this;try{var l=e-s,c=this.duration*o/100,d=l?l<c?l-c:l%c:0;this.progressTime=t=t+l-d,s=e-d,i+=(l-d)/this.duration*100;var h={percent:n=(t-r)%c==0||100===i?i:n,currentDuration:t,step:o};this.eIsVertical=a,0===i?this.trigger("begin",h,(function(e){p.successCallback(e,i,n,t,r,d,s)})):100===i||t===this.duration?this.trigger("end",h,(function(e){p.successCallback(e,i,n,t,r,d,s)})):this.trigger("progress",h,(function(e){p.successCallback(e,i,n,t,r,d,s)}))}catch(e){cancelAnimationFrame(this.timerId),this.trigger("fail",e)}},s.prototype.successCallback=function(e,t,s,i,n,o,r){var a=this,p=t,l=s,c=o,d=i,h=n,u=r,m=this.eIsVertical;p!==e.percent&&e.percent!==l&&(p=e.percent),this.percent=p,this.step=e.step,(d-h)%(this.duration*e.step/100)!=0&&100!==p||(this.timerId=requestAnimationFrame((function(){a.enableProgress&&a.getProgress()&&(a.getProgress().style[m?"height":"width"]=p+"%"),a.element.setAttribute("aria-valuenow",p.toString())})),l=p,h=d),this.isPaused||(d<this.duration&&p<100?this.interval=window.setTimeout((function(){a.startAnimate(Date.now(),d,u,p,l,e.step,h,m)}),this.duration/100-c):this.interval=window.setTimeout((function(){a.progressTime=a.percent=0,a.enableProgress&&a.getProgress()&&(a.getProgress().style[m?"height":"width"]="0%"),a.element.setAttribute("aria-valuenow","0"),a.hideSpin()}),100))},s.prototype.startContAnimate=function(){var e=this,s=this.element.getElementsByClassName(A)[0];"None"!==this.animationSettings.effect?new t.Animation({}).animate(s,{duration:0===this.animationSettings.duration&&"Enable"===t.animationMode?400:this.animationSettings.duration,name:"Progress"+this.animationSettings.effect,timingFunction:this.animationSettings.easing,begin:function(){"Center"===e.spinSettings.position&&e.setSpinnerSize()},end:function(){s.classList.add("e-animate-end")}}):"Center"===this.spinSettings.position&&this.setSpinnerSize()},s.prototype.finishProgress=function(){var e=this.element.classList,t=e.contains("e-vertical");e.add(x);for(var s=this.percent;s<100;s++)(s+=10)>100&&(s=100),this.enableProgress&&this.getProgress()&&(this.getProgress().style[t?"height":"width"]=this.percent<100?s+"%":"100%");this.element.setAttribute("aria-valuenow","0"),this.hideSpin();var i={step:this.step,currentDuration:this.progressTime,percent:100};clearTimeout(this.interval),this.trigger("end",i),this.progressTime=this.percent=0},s.prototype.setSpinnerSize=function(){var e=this.element.getElementsByClassName(A)[0],t=this.getSpinner();t.style.width=Math.max(t.offsetWidth,e.offsetWidth)+"px",t.style.height=Math.max(t.offsetHeight,e.offsetHeight)+"px",e.classList.add("e-cont-animate")},s.prototype.hideSpin=function(){var e=this.element.getElementsByClassName(A)[0];if(this.element.classList.contains(N)||(0,h.hideSpinner)(this.element.querySelector(".e-spinner")),this.element.classList.remove(x),"None"!==this.animationSettings.effect&&e.classList.remove("e-animate-end"),"Center"===this.spinSettings.position){var t=this.getSpinner();e.classList.remove("e-cont-animate"),t.style.width="auto",t.style.height="auto"}},s.prototype.setIconSpan=function(){var e=this.element.getElementsByClassName(A)[0],t=this.element.getElementsByClassName("e-btn-icon")[0];!e.childNodes[0]||"Left"!==this.iconPosition&&"Top"!==this.iconPosition?e.appendChild(t):e.insertBefore(t,e.childNodes[0])},s.prototype.setAria=function(){(0,t.attributes)(this.element,{"aria-label":this.element.textContent+" progress"})},s.prototype.wireEvents=function(){t.EventHandler.add(this.element,"click",this.clickHandler,this)},s.prototype.unWireEvents=function(){t.EventHandler.remove(this.element,"click",this.clickHandler)},s.prototype.onPropertyChanged=function(s,i){var n=this.element,o=!1;this.element.querySelector(".e-spinner-pane").classList.contains("e-spin-show")&&(o=!0),e.prototype.onPropertyChanged.call(this,s,i);for(var r=0,a=Object.keys(s);r<a.length;r++){switch(a[r]){case"content":this.setContent(),this.createSpinner(),o&&((0,h.showSpinner)(this.element.querySelector(".e-spinner")),o=!1),this.enableProgress&&this.createProgress(),n.setAttribute("aria-label",n.textContent+" progress");break;case"iconCss":i.iconCss||this.setIconSpan();break;case"iconPosition":this.setIconSpan();break;case"enableProgress":s.enableProgress?this.createProgress():(0,t.remove)(this.getProgress());break;case"spinSettings":s.spinSettings.position&&(n.classList.remove("e-spin-"+i.spinSettings.position.toLowerCase()),this.setSpinPosition(this.getSpinner())),(s.spinSettings.template||s.spinSettings.width)&&(n.removeChild(this.getSpinner()),this.createSpinner())}}},s.prototype.focusIn=function(){this.element.focus()},B([(0,t.Property)(!1)],s.prototype,"enableProgress",void 0),B([(0,t.Property)(2e3)],s.prototype,"duration",void 0),B([(0,t.Property)("Left")],s.prototype,"iconPosition",void 0),B([(0,t.Property)("")],s.prototype,"iconCss",void 0),B([(0,t.Property)(!1)],s.prototype,"disabled",void 0),B([(0,t.Property)(!1)],s.prototype,"isPrimary",void 0),B([(0,t.Property)("")],s.prototype,"cssClass",void 0),B([(0,t.Property)("")],s.prototype,"content",void 0),B([(0,t.Property)(!1)],s.prototype,"isToggle",void 0),B([(0,t.Property)(!0)],s.prototype,"enableHtmlSanitizer",void 0),B([(0,t.Complex)({},D)],s.prototype,"spinSettings",void 0),B([(0,t.Complex)({},U)],s.prototype,"animationSettings",void 0),B([(0,t.Event)()],s.prototype,"created",void 0),B([(0,t.Event)()],s.prototype,"begin",void 0),B([(0,t.Event)()],s.prototype,"progress",void 0),B([(0,t.Event)()],s.prototype,"end",void 0),B([(0,t.Event)()],s.prototype,"fail",void 0),s=B([t.NotifyPropertyChanges],s)}(d.Button)})(),r})()));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: ej2-splitbuttons.umd.min.js
|
|
3
|
-
* version : 26.
|
|
3
|
+
* version : 26.2.4
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2023. All rights reserved.
|
|
5
5
|
* Use of this code is subject to the terms of our license.
|
|
6
6
|
* A copy of the current license can be obtained at any time by e-mailing
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: ej2-splitbuttons.min.js
|
|
3
|
-
* version : 26.
|
|
3
|
+
* version : 26.2.4
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2023. All rights reserved.
|
|
5
5
|
* Use of this code is subject to the terms of our license.
|
|
6
6
|
* A copy of the current license can be obtained at any time by e-mailing
|
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 26.
|
|
3
|
+
* version : 26.2.4
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2023. All rights reserved.
|
|
5
5
|
* Use of this code is subject to the terms of our license.
|
|
6
6
|
* A copy of the current license can be obtained at any time by e-mailing
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_from": "@syncfusion/ej2-splitbuttons@*",
|
|
3
|
-
"_id": "@syncfusion/ej2-splitbuttons@
|
|
3
|
+
"_id": "@syncfusion/ej2-splitbuttons@26.1.35",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-3wxdvZ26iMwLNEq2ALI9QZmaDXHOTSb1d5oJ/K6sskC3xtL2Qa19Nu+jGQcdrW4CWHbZKdV/MfdKjOXu2XWRXQ==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-splitbuttons",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
"/@syncfusion/ej2-richtexteditor",
|
|
34
34
|
"/@syncfusion/ej2-vue-splitbuttons"
|
|
35
35
|
],
|
|
36
|
-
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-
|
|
37
|
-
"_shasum": "
|
|
36
|
+
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-splitbuttons/-/ej2-splitbuttons-26.1.35.tgz",
|
|
37
|
+
"_shasum": "8ecd769d4c8490e7aa19dbbb2201e7d27b66b264",
|
|
38
38
|
"_spec": "@syncfusion/ej2-splitbuttons@*",
|
|
39
39
|
"_where": "/jenkins/workspace/elease-automation_release_26.1.1/packages/included",
|
|
40
40
|
"author": {
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
},
|
|
46
46
|
"bundleDependencies": false,
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@syncfusion/ej2-base": "~26.
|
|
49
|
-
"@syncfusion/ej2-popups": "~26.
|
|
48
|
+
"@syncfusion/ej2-base": "~26.2.4",
|
|
49
|
+
"@syncfusion/ej2-popups": "~26.2.4"
|
|
50
50
|
},
|
|
51
51
|
"deprecated": false,
|
|
52
52
|
"description": "A package of feature-rich Essential JS 2 components such as DropDownButton, SplitButton, ProgressButton and ButtonGroup.",
|
|
@@ -89,6 +89,6 @@
|
|
|
89
89
|
"url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
|
|
90
90
|
},
|
|
91
91
|
"typings": "index.d.ts",
|
|
92
|
-
"version": "26.
|
|
92
|
+
"version": "26.2.4",
|
|
93
93
|
"sideEffects": false
|
|
94
94
|
}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
--color-sf-success: #0e700e;
|
|
11
11
|
--color-sf-info: #008aa9;
|
|
12
12
|
--color-sf-warning: #bc4b09;
|
|
13
|
-
--color-sf-danger: #
|
|
13
|
+
--color-sf-danger: #d13438;
|
|
14
14
|
--color-sf-success-light: #54b054;
|
|
15
15
|
--color-sf-info-light: #56bfd7;
|
|
16
16
|
--color-sf-warning-light: #fee5d7;
|
|
@@ -221,7 +221,7 @@
|
|
|
221
221
|
--color-sf-diagram-palette-background: var(--color-sf-content-bg-color-alt1);
|
|
222
222
|
--color-sf-diagram-palette-hover-background: var(--color-sf-content-bg-color-hover);
|
|
223
223
|
--color-sf-diagram-palette-selected-background: var(--color-sf-content-bg-color-selected);
|
|
224
|
-
--color-sf-rating-selected-color:
|
|
224
|
+
--color-sf-rating-selected-color: #242424;
|
|
225
225
|
--color-sf-rating-unrated-color: var(--color-sf-content-text-color);
|
|
226
226
|
--color-sf-rating-selected-disabled-color: #b3b3b3;
|
|
227
227
|
--color-sf-rating-unrated-disabled-color: #b3b3b3;
|
|
@@ -246,7 +246,7 @@
|
|
|
246
246
|
--color-sf-msg-success-color: var(--color-sf-content-text-color);
|
|
247
247
|
--color-sf-msg-success-bg-color: #f1faf1;
|
|
248
248
|
--color-sf-msg-success-border-color: #9fd89f;
|
|
249
|
-
--color-sf-msg-success-color-alt1:
|
|
249
|
+
--color-sf-msg-success-color-alt1: #0e700e;
|
|
250
250
|
--color-sf-msg-success-bg-color-alt1: transparent;
|
|
251
251
|
--color-sf-msg-success-border-color-alt1: var(--color-sf-msg-success-border-color);
|
|
252
252
|
--color-sf-msg-success-color-alt2: #fff;
|
|
@@ -261,7 +261,7 @@
|
|
|
261
261
|
--color-sf-msg-danger-color: var(--color-sf-content-text-color);
|
|
262
262
|
--color-sf-msg-danger-bg-color: #fdf3f4;
|
|
263
263
|
--color-sf-msg-danger-border-color: #eeacb2;
|
|
264
|
-
--color-sf-msg-danger-color-alt1:
|
|
264
|
+
--color-sf-msg-danger-color-alt1: #b10e1c;
|
|
265
265
|
--color-sf-msg-danger-bg-color-alt1: transparent;
|
|
266
266
|
--color-sf-msg-danger-border-color-alt1: var(--color-sf-msg-danger-border-color);
|
|
267
267
|
--color-sf-msg-danger-color-alt2: #fff;
|
|
@@ -276,7 +276,7 @@
|
|
|
276
276
|
--color-sf-msg-info-color: var(--color-sf-content-text-color);
|
|
277
277
|
--color-sf-msg-info-bg-color: #f2fafc;
|
|
278
278
|
--color-sf-msg-info-border-color: #a4deeb;
|
|
279
|
-
--color-sf-msg-info-color-alt1:
|
|
279
|
+
--color-sf-msg-info-color-alt1: #00748f;
|
|
280
280
|
--color-sf-msg-info-bg-color-alt1: transparent;
|
|
281
281
|
--color-sf-msg-info-border-color-alt1: var(--color-sf-msg-info-border-color);
|
|
282
282
|
--color-sf-msg-info-color-alt2: #fff;
|
|
@@ -291,7 +291,7 @@
|
|
|
291
291
|
--color-sf-msg-warning-color: var(--color-sf-content-text-color);
|
|
292
292
|
--color-sf-msg-warning-bg-color: #fdf6f3;
|
|
293
293
|
--color-sf-msg-warning-border-color: #f4bfab;
|
|
294
|
-
--color-sf-msg-warning-color-alt1:
|
|
294
|
+
--color-sf-msg-warning-color-alt1: #c43501;
|
|
295
295
|
--color-sf-msg-warning-bg-color-alt1: transparent;
|
|
296
296
|
--color-sf-msg-warning-border-color-alt1: var(--color-sf-msg-warning-border-color);
|
|
297
297
|
--color-sf-msg-warning-color-alt2: #fff;
|
|
@@ -317,7 +317,7 @@
|
|
|
317
317
|
--color-sf-link-button-focus: #0f6cbd;
|
|
318
318
|
--color-sf-link-button-border-focus: #242424;
|
|
319
319
|
--color-sf-chip-bg-color: #f5f5f5;
|
|
320
|
-
--color-sf-chip-border-color:
|
|
320
|
+
--color-sf-chip-border-color: #f5f5f5;
|
|
321
321
|
--color-sf-chip-bg-disabled: #f0f0f0;
|
|
322
322
|
--color-sf-chip-border-disabled: #fff;
|
|
323
323
|
--color-sf-secondary-outline-button-text-color-hover: #242424;
|
|
@@ -406,7 +406,7 @@
|
|
|
406
406
|
--color-sf-border-focus: var(--color-sf-border);
|
|
407
407
|
--color-sf-border-selected: #6b6b6b;
|
|
408
408
|
--color-sf-border-dragged: var(--color-sf-primary);
|
|
409
|
-
--color-sf-border-disabled: #
|
|
409
|
+
--color-sf-border-disabled: #424242;
|
|
410
410
|
--color-sf-border-warning: #bc4b09;
|
|
411
411
|
--color-sf-border-error: #dc626d;
|
|
412
412
|
--color-sf-border-success: #9fd89f;
|
|
@@ -569,7 +569,7 @@
|
|
|
569
569
|
--color-sf-diagram-palette-background: #e0e0e0;
|
|
570
570
|
--color-sf-diagram-palette-hover-background: #bdbdbd;
|
|
571
571
|
--color-sf-diagram-palette-selected-background: var(--color-sf-diagram-palette-hover-background);
|
|
572
|
-
--color-sf-rating-selected-color:
|
|
572
|
+
--color-sf-rating-selected-color: #fff;
|
|
573
573
|
--color-sf-rating-unrated-color: var(--color-sf-content-text-color);
|
|
574
574
|
--color-sf-rating-selected-disabled-color: #575757;
|
|
575
575
|
--color-sf-rating-unrated-disabled-color: #4d4d4d;
|
|
@@ -581,9 +581,9 @@
|
|
|
581
581
|
--color-sf-msg-border-color: var(--color-sf-border);
|
|
582
582
|
--color-sf-msg-color-alt1: var(--color-sf-content-text-color);
|
|
583
583
|
--color-sf-msg-bg-color-alt1: transparent;
|
|
584
|
-
--color-sf-msg-border-color-alt1:
|
|
584
|
+
--color-sf-msg-border-color-alt1: #666666;
|
|
585
585
|
--color-sf-msg-color-alt2: #242424;
|
|
586
|
-
--color-sf-msg-bg-color-alt2: #
|
|
586
|
+
--color-sf-msg-bg-color-alt2: #c2c2c2;
|
|
587
587
|
--color-sf-msg-border-color-alt2: var(--color-sf-msg-bg-color-alt2);
|
|
588
588
|
--color-sf-msg-icon-color: var(--color-sf-msg-bg-color-alt2);
|
|
589
589
|
--color-sf-msg-icon-color-alt1: var(--color-sf-msg-icon-color);
|
|
@@ -594,9 +594,9 @@
|
|
|
594
594
|
--color-sf-msg-success-color: var(--color-sf-content-text-color);
|
|
595
595
|
--color-sf-msg-success-bg-color: #052505;
|
|
596
596
|
--color-sf-msg-success-border-color: #107c10;
|
|
597
|
-
--color-sf-msg-success-color-alt1:
|
|
597
|
+
--color-sf-msg-success-color-alt1: #54b054;
|
|
598
598
|
--color-sf-msg-success-bg-color-alt1: transparent;
|
|
599
|
-
--color-sf-msg-success-border-color-alt1:
|
|
599
|
+
--color-sf-msg-success-border-color-alt1: #218c21;
|
|
600
600
|
--color-sf-msg-success-color-alt2: #fff;
|
|
601
601
|
--color-sf-msg-success-bg-color-alt2: #107c10;
|
|
602
602
|
--color-sf-msg-success-border-color-alt2: var(--color-sf-msg-success-bg-color-alt2);
|
|
@@ -609,9 +609,9 @@
|
|
|
609
609
|
--color-sf-msg-danger-color: var(--color-sf-content-text-color);
|
|
610
610
|
--color-sf-msg-danger-bg-color: #3b0509;
|
|
611
611
|
--color-sf-msg-danger-border-color: #c50f1f;
|
|
612
|
-
--color-sf-msg-danger-color-alt1:
|
|
612
|
+
--color-sf-msg-danger-color-alt1: #dc626d;
|
|
613
613
|
--color-sf-msg-danger-bg-color-alt1: transparent;
|
|
614
|
-
--color-sf-msg-danger-border-color-alt1:
|
|
614
|
+
--color-sf-msg-danger-border-color-alt1: #d33f4c;
|
|
615
615
|
--color-sf-msg-danger-color-alt2: #fff;
|
|
616
616
|
--color-sf-msg-danger-bg-color-alt2: #c50f1f;
|
|
617
617
|
--color-sf-msg-danger-border-color-alt2: var(--color-sf-msg-danger-bg-color-alt2);
|
|
@@ -624,9 +624,9 @@
|
|
|
624
624
|
--color-sf-msg-info-color: var(--color-sf-content-text-color);
|
|
625
625
|
--color-sf-msg-info-bg-color: #002e38;
|
|
626
626
|
--color-sf-msg-info-border-color: #0099bc;
|
|
627
|
-
--color-sf-msg-info-color-alt1:
|
|
627
|
+
--color-sf-msg-info-color-alt1: #56bfd7;
|
|
628
628
|
--color-sf-msg-info-bg-color-alt1: transparent;
|
|
629
|
-
--color-sf-msg-info-border-color-alt1:
|
|
629
|
+
--color-sf-msg-info-border-color-alt1: #31afdd;
|
|
630
630
|
--color-sf-msg-info-color-alt2: #fff;
|
|
631
631
|
--color-sf-msg-info-bg-color-alt2: #0099bc;
|
|
632
632
|
--color-sf-msg-info-border-color-alt2: var(--color-sf-msg-info-bg-color-alt2);
|
|
@@ -639,9 +639,9 @@
|
|
|
639
639
|
--color-sf-msg-warning-color: var(--color-sf-content-text-color);
|
|
640
640
|
--color-sf-msg-warning-bg-color: #411200;
|
|
641
641
|
--color-sf-msg-warning-border-color: #da3b01;
|
|
642
|
-
--color-sf-msg-warning-color-alt1:
|
|
642
|
+
--color-sf-msg-warning-color-alt1: #e9835e;
|
|
643
643
|
--color-sf-msg-warning-bg-color-alt1: transparent;
|
|
644
|
-
--color-sf-msg-warning-border-color-alt1:
|
|
644
|
+
--color-sf-msg-warning-border-color-alt1: #e36537;
|
|
645
645
|
--color-sf-msg-warning-color-alt2: #fff;
|
|
646
646
|
--color-sf-msg-warning-bg-color-alt2: #da3b01;
|
|
647
647
|
--color-sf-msg-warning-border-color-alt2: var(--color-sf-msg-warning-bg-color-alt2);
|
|
@@ -659,7 +659,7 @@
|
|
|
659
659
|
--color-sf-link-button-focus: #115ea3;
|
|
660
660
|
--color-sf-link-button-border-focus: #fff;
|
|
661
661
|
--color-sf-chip-bg-color: #141414;
|
|
662
|
-
--color-sf-chip-border-color:
|
|
662
|
+
--color-sf-chip-border-color: #141414;
|
|
663
663
|
--color-sf-chip-bg-disabled: #141414;
|
|
664
664
|
--color-sf-chip-border-disabled: rgba(0, 0, 0, 0);
|
|
665
665
|
--color-sf-secondary-outline-button-text-color-hover: #fff;
|
|
@@ -714,7 +714,7 @@
|
|
|
714
714
|
--color-sf-overlay-bg-color: rgba($black, .4);
|
|
715
715
|
--color-sf-table-bg-color-hover: var(--color-sf-black);
|
|
716
716
|
--color-sf-table-bg-color-pressed: var(--color-sf-black);
|
|
717
|
-
--color-sf-table-bg-color-selected:
|
|
717
|
+
--color-sf-table-bg-color-selected: #1a3bff;
|
|
718
718
|
--color-sf-content-text-color: #fff;
|
|
719
719
|
--color-sf-content-text-color-alt1: var(--color-sf-content-text-color);
|
|
720
720
|
--color-sf-content-text-color-alt2: var(--color-sf-content-text-color);
|
|
@@ -724,7 +724,7 @@
|
|
|
724
724
|
--color-sf-content-text-color-focus: var(--color-sf-content-text-color-hover);
|
|
725
725
|
--color-sf-content-text-color-selected: var(--color-sf-content-text-color-hover);
|
|
726
726
|
--color-sf-content-text-color-dragged: #000;
|
|
727
|
-
--color-sf-content-text-color-disabled:
|
|
727
|
+
--color-sf-content-text-color-disabled: #3ff23f;
|
|
728
728
|
--color-sf-placeholder-text-color: var(--color-sf-content-text-color);
|
|
729
729
|
--color-sf-flyout-text-color: var(--color-sf-content-text-color);
|
|
730
730
|
--color-sf-flyout-text-color-hover: var(--color-sf-content-text-color-hover);
|
|
@@ -748,12 +748,12 @@
|
|
|
748
748
|
--color-sf-border-focus: var(--color-sf-border-hover);
|
|
749
749
|
--color-sf-border-selected: var(--color-sf-border-hover);
|
|
750
750
|
--color-sf-border-dragged: var(--color-sf-border-light);
|
|
751
|
-
--color-sf-border-disabled: #
|
|
751
|
+
--color-sf-border-disabled: #3ff23f;
|
|
752
752
|
--color-sf-border-warning: #f7630c;
|
|
753
753
|
--color-sf-border-error: #c50f1f;
|
|
754
754
|
--color-sf-border-success: #107c10;
|
|
755
755
|
--color-sf-border-info: #0099bc;
|
|
756
|
-
--color-sf-spreadsheet-gridline:
|
|
756
|
+
--color-sf-spreadsheet-gridline: #e6e6e6;
|
|
757
757
|
--color-sf-flyout-border: var(--color-sf-border-light);
|
|
758
758
|
--color-sf-primary: #1aebff;
|
|
759
759
|
--color-sf-primary-text-color: #000;
|
|
@@ -911,7 +911,7 @@
|
|
|
911
911
|
--color-sf-diagram-palette-background: #000;
|
|
912
912
|
--color-sf-diagram-palette-hover-background: var(--color-sf-content-bg-color-hover);
|
|
913
913
|
--color-sf-diagram-palette-selected-background: var(--color-sf-diagram-palette-hover-background);
|
|
914
|
-
--color-sf-rating-selected-color:
|
|
914
|
+
--color-sf-rating-selected-color: #fff;
|
|
915
915
|
--color-sf-rating-unrated-color: var(--color-sf-content-text-color);
|
|
916
916
|
--color-sf-rating-selected-disabled-color: var(--color-sf-content-text-color-disabled);
|
|
917
917
|
--color-sf-rating-unrated-disabled-color: var(--color-sf-content-text-color-disabled);
|
|
@@ -936,7 +936,7 @@
|
|
|
936
936
|
--color-sf-msg-success-color: #107c10;
|
|
937
937
|
--color-sf-msg-success-bg-color: #000;
|
|
938
938
|
--color-sf-msg-success-border-color: var(--color-sf-msg-success-color);
|
|
939
|
-
--color-sf-msg-success-color-alt1:
|
|
939
|
+
--color-sf-msg-success-color-alt1: #107c10;
|
|
940
940
|
--color-sf-msg-success-bg-color-alt1: var(--color-sf-msg-success-bg-color);
|
|
941
941
|
--color-sf-msg-success-border-color-alt1: #fff;
|
|
942
942
|
--color-sf-msg-success-color-alt2: var(--color-sf-msg-success-bg-color);
|
|
@@ -951,7 +951,7 @@
|
|
|
951
951
|
--color-sf-msg-danger-color: #c50f1f;
|
|
952
952
|
--color-sf-msg-danger-bg-color: #000;
|
|
953
953
|
--color-sf-msg-danger-border-color: var(--color-sf-msg-danger-color);
|
|
954
|
-
--color-sf-msg-danger-color-alt1:
|
|
954
|
+
--color-sf-msg-danger-color-alt1: #c50f1f;
|
|
955
955
|
--color-sf-msg-danger-bg-color-alt1: var(--color-sf-msg-danger-bg-color);
|
|
956
956
|
--color-sf-msg-danger-border-color-alt1: #fff;
|
|
957
957
|
--color-sf-msg-danger-color-alt2: var(--color-sf-msg-danger-bg-color);
|
|
@@ -966,7 +966,7 @@
|
|
|
966
966
|
--color-sf-msg-info-color: #0099bc;
|
|
967
967
|
--color-sf-msg-info-bg-color: #000;
|
|
968
968
|
--color-sf-msg-info-border-color: var(--color-sf-msg-info-color);
|
|
969
|
-
--color-sf-msg-info-color-alt1:
|
|
969
|
+
--color-sf-msg-info-color-alt1: #0099bc;
|
|
970
970
|
--color-sf-msg-info-bg-color-alt1: var(--color-sf-msg-info-bg-color);
|
|
971
971
|
--color-sf-msg-info-border-color-alt1: #fff;
|
|
972
972
|
--color-sf-msg-info-color-alt2: var(--color-sf-msg-info-bg-color);
|
|
@@ -981,7 +981,7 @@
|
|
|
981
981
|
--color-sf-msg-warning-color: #f7630c;
|
|
982
982
|
--color-sf-msg-warning-bg-color: #000;
|
|
983
983
|
--color-sf-msg-warning-border-color: #da3b01;
|
|
984
|
-
--color-sf-msg-warning-color-alt1:
|
|
984
|
+
--color-sf-msg-warning-color-alt1: #f7630c;
|
|
985
985
|
--color-sf-msg-warning-bg-color-alt1: var(--color-sf-msg-warning-bg-color);
|
|
986
986
|
--color-sf-msg-warning-border-color-alt1: #fff;
|
|
987
987
|
--color-sf-msg-warning-color-alt2: var(--color-sf-msg-warning-bg-color);
|
|
@@ -1022,7 +1022,7 @@
|
|
|
1022
1022
|
--color-sf-secondary-badge-border-color: #fff;
|
|
1023
1023
|
--color-sf-secondary-badge-bg-color: #000;
|
|
1024
1024
|
--color-sf-secondary-badge-bg-color-focus: #fff;
|
|
1025
|
-
--color-sf-skeleton-bg-color: #
|
|
1025
|
+
--color-sf-skeleton-bg-color: #fff;
|
|
1026
1026
|
--color-sf-tab-selected-bg-color-disabled: #000;
|
|
1027
1027
|
--color-sf-tab-selected-text-color-disabled: #3ff23f;
|
|
1028
1028
|
--color-sf-ribbon-border-color: #fff;
|
|
@@ -1277,8 +1277,8 @@
|
|
|
1277
1277
|
.e-btn-group input:focus-visible + label.e-btn,
|
|
1278
1278
|
.e-css.e-btn-group .e-btn:focus-visible,
|
|
1279
1279
|
.e-css.e-btn-group input:focus-visible + label.e-btn {
|
|
1280
|
-
-webkit-box-shadow: inset 0 0 0 1px var(--color-sf-shadow-color), inset 0 0 0 2px
|
|
1281
|
-
box-shadow: inset 0 0 0 1px var(--color-sf-shadow-color), inset 0 0 0 2px
|
|
1280
|
+
-webkit-box-shadow: inset 0 0 0 1px var(--color-sf-shadow-color), inset 0 0 0 2px var(--color-sf-shadow-color1) !important;
|
|
1281
|
+
box-shadow: inset 0 0 0 1px var(--color-sf-shadow-color), inset 0 0 0 2px var(--color-sf-shadow-color1) !important;
|
|
1282
1282
|
}
|
|
1283
1283
|
.e-btn-group .e-btn:focus,
|
|
1284
1284
|
.e-btn-group input:focus-visible + label.e-btn,
|
|
@@ -1493,7 +1493,7 @@
|
|
|
1493
1493
|
.e-css.e-btn-group input:active + label.e-btn.e-warning,
|
|
1494
1494
|
.e-css.e-btn-group input:checked + label.e-btn.e-warning {
|
|
1495
1495
|
background: var(--color-sf-warning-bg-color-pressed);
|
|
1496
|
-
border-color: var(--color-sf-warning-border-color-
|
|
1496
|
+
border-color: var(--color-sf-warning-border-color-pressed);
|
|
1497
1497
|
color: var(--color-sf-warning-text-pressed);
|
|
1498
1498
|
-webkit-box-shadow: none;
|
|
1499
1499
|
box-shadow: none;
|
|
@@ -1565,7 +1565,7 @@
|
|
|
1565
1565
|
.e-css.e-btn-group input:active + label.e-btn.e-outline.e-warning,
|
|
1566
1566
|
.e-css.e-btn-group input:checked + label.e-btn.e-outline.e-warning {
|
|
1567
1567
|
background: var(--color-sf-warning-bg-color-pressed);
|
|
1568
|
-
border-color: var(--color-sf-warning-border-color-
|
|
1568
|
+
border-color: var(--color-sf-warning-border-color-pressed);
|
|
1569
1569
|
-webkit-box-shadow: none;
|
|
1570
1570
|
box-shadow: none;
|
|
1571
1571
|
color: var(--color-sf-warning-text-pressed);
|