devexpress-aspnetcore-spreadsheet 19.1.14 → 19.1.16
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* DevExpress AspNetCore Spreadsheet (dx-aspnetcore-spreadsheet.js)
|
|
3
|
-
* Version: 19.1.
|
|
4
|
-
* Copyright (c) 2012 -
|
|
3
|
+
* Version: 19.1.16
|
|
4
|
+
* Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED
|
|
5
5
|
* License: https://www.devexpress.com/Support/EULAs
|
|
6
6
|
*/
|
|
7
7
|
/*# namespace DevExpress.Web.Scripts #*/
|
|
@@ -55854,4 +55854,4 @@ DevExpress.AspNetCore.Spreadsheet = DevExpress.AspNetCore.Spreadsheet = {};
|
|
|
55854
55854
|
});
|
|
55855
55855
|
})();
|
|
55856
55856
|
|
|
55857
|
-
var DevExpress="object"==typeof DevExpress?DevExpress:{};DevExpress.AspNetCore=DevExpress.AspNetCore||{},DevExpress.AspNetCore.Spreadsheet=DevExpress.AspNetCore.Spreadsheet||{},DevExpress.AspNetCore.Spreadsheet.dxribbon=function(o){var n={};function r(t){if(n[t])return n[t].exports;var e=n[t]={i:t,l:!1,exports:{}};return o[t].call(e.exports,e,e.exports,r),e.l=!0,e.exports}return r.m=o,r.c=n,r.d=function(t,e,o){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(r.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)r.d(o,n,function(t){return e[t]}.bind(null,n));return o},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=5)}([function(t,e,o){"use strict";var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)});Object.defineProperty(e,"__esModule",{value:!0});var i=(a.prototype.createTemplate=function(){return{location:"before",locateInMenu:"auto"}},a.prototype.getCssClass=function(){return"dx-ribbon-item"},a);function a(){}e.ToolbarItemTemplateCreator=i;var s,u=(r(p,s=i),p.prototype.getOnFocusOut=function(){return function(t){return t.component.close()}},p.prototype.getOnKeyDown=function(){return function(t){9===t.event.keyCode&&t.event.preventDefault()}},p);function p(){return null!==s&&s.apply(this,arguments)||this}e.ToolbarDropDownItemTemplateCreator=u},function(t,e,o){"use strict";var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)});Object.defineProperty(e,"__esModule",{value:!0});var i,a=o(3),s=(i=a.ToolbarItemBase,r(u,i),u.prototype.setEnabled=function(t){this.widget.option("disabled",!t)},u.prototype.setVisible=function(t){this.widget.option("visible",t)},u.prototype.getOnInitializedHandler=function(){var e=this;return function(t){return e.widget=t.component}},u);function u(t,e){var o=i.call(this)||this;return o.options=t,o.onCommandExecuted=e,o.name=t.name,o}e.ToolbarInteractiveItem=s},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=(r.correctIconName=function(t){return 0==t.indexOf("dx")?" "+t:t},r.correctItemsIcons=function(t){t&&t.forEach(function(t){t.icon=t.icon?r.correctIconName(t.icon):void 0,r.correctItemsIcons(t.items)})},r);function r(){}e.DxtUtils=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=(Object.defineProperty(r.prototype,"toolbarItemTemplateCreator",{get:function(){return this._toolbarItemTemplateCreator||(this._toolbarItemTemplateCreator=this.getBuildTemplateStrategy()),this._toolbarItemTemplateCreator},enumerable:!0,configurable:!0}),r.prototype.createToolbarItemTemplate=function(){return this.toolbarItemTemplateCreator.createTemplate()},r);function r(){}e.ToolbarItemBase=n},function(t,e,o){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),(n=e.DxtThemeCssClasses||(e.DxtThemeCssClasses={})).AccentAsBackgroundColor="dx-theme-accent-as-background-color",n.AccentAsBorderColor="dx-theme-accent-as-border-color",n.AccentAsTextColor="dx-theme-accent-as-text-color",n.BackgroundColor="dx-theme-background-color",n.BackgroundColorAsBorderColor="dx-theme-background-color-as-border-color",n.BackgroundColorAsTextColor="dx-theme-background-color-as-text-color",n.BorderColor="dx-theme-border-color",n.BorderColorAsBackgroundColor="dx-theme-border-color-as-background-color",n.BorderColorAsTextColor="dx-theme-border-color-as-text-color ",n.TextColor="dx-theme-text-color",n.TextColorAsBackgroundColor="dx-theme-text-color-as-background-color",n.TextColorAsBorderColor="dx-theme-text-color-as-border-color"},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(6);e.Ribbon=n.Ribbon;var r=o(4);e.DxtThemeCssClasses=r.DxtThemeCssClasses},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(7),i=o(8),r=o(9),a=o(10),s=o(12),u=o(14),p=o(16),l=o(19),c=o(21),m=o(23),d=(f.prototype.render=function(){var o=this;this.tabPanel=new n.default(this.options.element,{dataSource:this.getRibbonItems().map(function(t,e){return{title:t.title,visible:t.visible,template:function(){return o.createToolbar(t.items,e)}}}),deferRendering:!1,elementAttr:{class:"dx-ribbon "+r.currentTheme()},focusStateEnabled:!1,selectedIndex:this.options.activeTabIndex,loop:!1,animationEnabled:!1,swipeEnabled:!1,showNavButtons:!0,onTitleClick:this.options.onTitleClickHandler,onSelectionChanged:this.options.onSelectionChangedHandler})},f.prototype.getActiveTabIndex=function(){return this.tabPanel.option("selectedIndex")},f.prototype.setActiveTabIndex=function(t){this.tabPanel.option("selectedIndex",t)},f.prototype.setItemVisible=function(t,e){return this.tabPanel.option("items["+t+"].visible",e)},f.prototype.getItemVisible=function(t){return this.tabPanel.option("items["+t+"].visible")},f.prototype.setContextItemsCategoryVisible=function(t,e){var o=this,n=this.getContextItemsIndexes(t);if(n){var r=!1,i=this.getActiveTabIndex();n.forEach(function(t){o.getItemVisible(t)!==e&&(i!=t||e||(r=!0),o.setItemVisible(t,e))}),r&&this.setActiveTabIndex(this.options.activeTabIndex)}},f.prototype.getContextItemsCategoryVisible=function(t){var e=this.getContextItemsIndexes(t);return!(!e||!e.length)&&this.getItemVisible(e[0])},f.prototype.getContextItemsIndexes=function(t){return this.contextItemIndexesByCategoryName[t]},f.prototype.getTabPanel=function(){return this.tabPanel},f.prototype.getItems=function(t){return t&&this.toolBarItemsByName[t]?this.toolBarItemsByName[t]:null},f.prototype.adjustControl=function(){this.tabPanel._dimensionChanged(),this.toolbars.forEach(function(t){return t._dimensionChanged()})},f.prototype.getRibbonItems=function(){var n=this,r=[].concat(this.options.items);return this.options.contextItemsCategories&&this.options.contextItemsCategories.forEach(function(o){n.contextItemIndexesByCategoryName[o.name]||(n.contextItemIndexesByCategoryName[o.name]=[]),o.items.forEach(function(t,e){n.contextItemIndexesByCategoryName[o.name].push(e+r.length)}),r=r.concat(o.items.map(function(t){return{items:t.items,title:t.title,visible:!1}}))}),r},f.prototype.createToolbar=function(t,e){var o=this,n=document.createElement("div"),r={dataSource:this.getToolbarItemTemplates(t,e),onInitialized:function(t){return o.toolbars.push(t.component)},onItemRendered:function(t){t.itemData.dxIsSeparator&&m.ToolbarSeparatorItem.prepareElement(t.itemElement)}};return new i.default(n,r),n},f.prototype.getToolbarItemTemplates=function(t,e){var o=this,n=[];t.forEach(function(t){n=n.concat(o.getToolbarItems(t,e))});var r,i=[];return n.forEach(function(t){t instanceof m.ToolbarSeparatorItem&&(!r||r instanceof m.ToolbarSeparatorItem)||(i.push(t.createToolbarItemTemplate()),r=t)}),i},f.prototype.getToolbarItems=function(t,e){var o=[],n="ColorBox"===t.type||"NumberBox"===t.type||"SelectBox"===t.type;return(t.beginGroup||n)&&o.push(new m.ToolbarSeparatorItem),o.push(this.interactiveToolbarItemFactory(t,e)),n&&o.push(new m.ToolbarSeparatorItem),o},f.prototype.interactiveToolbarItemFactory=function(e,o){var t,n=this;switch(e.type){case"Button":t=new s.ToolbarButtonItem(e,this.options.onCommandExecuted);break;case"ButtonGroup":t=new a.ToolbarButtonGroupItem(e,this.options.onCommandExecuted);break;case"Menu":t=new p.ToolbarMenuItem(e,this.options.onCommandExecuted,function(t){n.addItemToCache(t.name,t),n.raiseOnOnToolbarItemCreated(e,t,o)});break;case"NumberBox":t=new l.ToolbarNumberBoxItem(e,this.options.onCommandExecuted);break;case"ColorBox":t=new u.ToolbarColorBoxItem(e,this.options.onCommandExecuted);break;default:t=new c.ToolbarSelectBoxItem(e,this.options.onCommandExecuted)}return this.addItemToCache(e.name,t),this.raiseOnOnToolbarItemCreated(e,t,o),t},f.prototype.addItemToCache=function(t,e){t&&(this.toolBarItemsByName[t]||(this.toolBarItemsByName[t]=[]),this.toolBarItemsByName[t].push(e))},f.prototype.raiseOnOnToolbarItemCreated=function(t,e,o){this.options.onOnToolbarItemCreated&&this.options.onOnToolbarItemCreated({options:t,item:e,tabIndex:o})},f);function f(t){this.options=t,this.toolbars=[],this.toolBarItemsByName={},this.contextItemIndexesByCategoryName={}}e.Ribbon=d},function(t,e){t.exports={default:DevExpress.ui.dxTabPanel}},function(t,e){t.exports={default:DevExpress.ui.dxToolbar}},function(t,e){t.exports=DevExpress.viz},function(t,e,o){"use strict";var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)});Object.defineProperty(e,"__esModule",{value:!0});var i,a=o(1),s=o(11),u=(i=a.ToolbarInteractiveItem,r(p,i),p.prototype.getBuildTemplateStrategy=function(){return new s.ButtonGroupToolbarItemTemplateCreator({itemOptions:this.options,onInitialized:this.getOnInitializedHandler(),onClick:this.getOnClickHandler()})},p.prototype.setValue=function(t){},p.prototype.getOnClickHandler=function(){var t=this;return this.onCommandExecuted?function(){t.onCommandExecuted({item:t,parameter:null})}:void 0},p.ToggleStateClassName="dx-r-toggle",p.ToggleButtonDataProperty="dx-ri-value",p);function p(){return null!==i&&i.apply(this,arguments)||this}e.ToolbarButtonGroupItem=u},function(t,e,o){"use strict";var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)});Object.defineProperty(e,"__esModule",{value:!0});var i,a=o(2),s=o(0),u=(i=s.ToolbarItemTemplateCreator,r(p,i),p.prototype.createTemplate=function(){var t=i.prototype.createTemplate.call(this);return t.widget="dxButtonGroup",t.showText=this.options.itemOptions.items[0]&&this.options.itemOptions.items[0].icon&&!this.options.itemOptions.alwaysShowText?"inMenu":"always",t.options=this.getButtonGroupOptions(),t},p.prototype.getButtonGroupOptions=function(){return{focusStateEnabled:!1,onInitialized:this.options.onInitialized,items:this.options.itemOptions.items.map(function(t){var e=t;return e.icon=e.icon?a.DxtUtils.correctIconName(e.icon):e.icon,e})}},p);function p(t){var e=i.call(this)||this;return e.options=t,e}e.ButtonGroupToolbarItemTemplateCreator=u},function(t,e,o){"use strict";var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)});Object.defineProperty(e,"__esModule",{value:!0});var i,a=o(1),s=o(13),u=(i=a.ToolbarInteractiveItem,r(p,i),p.prototype.getBuildTemplateStrategy=function(){return new s.ButtonToolbarItemTemplateCreator({itemOptions:this.options,onInitialized:this.getOnInitializedHandler(),onClick:this.getOnClickHandler()})},p.prototype.setValue=function(t){if(this.options.isToggleMode){var e=this.getElement();(e[p.ToggleButtonDataProperty]=t)?(e.classList.add(p.ToggleStateClassName),e.classList.add(p.ButtonGroupItemClassName),e.classList.add(p.ItemSelectedClassName)):(e.classList.remove(p.ToggleStateClassName),e.classList.remove(p.ButtonGroupItemClassName),e.classList.remove(p.ItemSelectedClassName))}},p.prototype.getValue=function(){return this.options.isToggleMode?this.getElement()[p.ToggleButtonDataProperty]:null},p.prototype.getElement=function(){return this.widget.element().classList?this.widget.element():this.widget.element()[0]},p.prototype.getOnClickHandler=function(){var t=this;return this.onCommandExecuted?function(){t.setValue(!t.getValue()),t.onCommandExecuted({item:t,parameter:t.getValue()})}:void 0},p.ToggleStateClassName="dx-r-toggle",p.ButtonGroupItemClassName="dx-buttongroup-item",p.ItemSelectedClassName="dx-item-selected",p.ToggleButtonDataProperty="dx-ri-value",p);function p(){return null!==i&&i.apply(this,arguments)||this}e.ToolbarButtonItem=u},function(t,e,o){"use strict";var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)});Object.defineProperty(e,"__esModule",{value:!0});var i,a=o(2),s=o(0),u=(i=s.ToolbarItemTemplateCreator,r(p,i),p.prototype.createTemplate=function(){var t=i.prototype.createTemplate.call(this);return t.widget="dxButton",t.showText=!this.options.itemOptions.icon||this.options.itemOptions.alwaysShowText?"always":"inMenu",t.options=this.getButtonOptions(),t},p.prototype.getButtonOptions=function(){return{text:this.options.itemOptions.text,icon:this.options.itemOptions.icon?a.DxtUtils.correctIconName(this.options.itemOptions.icon):void 0,hint:this.options.itemOptions.text,stylingMode:"text",focusStateEnabled:!1,onInitialized:this.options.onInitialized,onClick:this.options.onClick}},p);function p(t){var e=i.call(this)||this;return e.options=t,e}e.ButtonToolbarItemTemplateCreator=u},function(t,e,o){"use strict";var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)});Object.defineProperty(e,"__esModule",{value:!0});var i,a=o(1),s=o(15),u=(i=a.ToolbarInteractiveItem,r(p,i),p.prototype.getBuildTemplateStrategy=function(){return new s.ColorBoxToolbarItemTemplateCreator({itemOptions:this.options,onInitialized:this.getOnInitializedHandler(),onValueChanged:this.getOnValueChangedHandler()})},p.prototype.setValue=function(t){this.widget.option("value",t)},p.prototype.getOnValueChangedHandler=function(){var e=this;return this.onCommandExecuted?function(t){e.onCommandExecuted({item:e,parameter:t.value})}:void 0},p);function p(){return null!==i&&i.apply(this,arguments)||this}e.ToolbarColorBoxItem=u},function(t,e,o){"use strict";var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)});Object.defineProperty(e,"__esModule",{value:!0});var i,a=o(0),s=(i=a.ToolbarItemTemplateCreator,r(u,i),u.prototype.createTemplate=function(){var t=i.prototype.createTemplate.call(this);return t.widget="dxColorBox",t.options=this.getWidgetOptions(),t},u.prototype.getWidgetOptions=function(){var o=this;return{placeholder:"",focusStateEnabled:!1,mask:" ",stylingMode:"filled",hint:this.options.itemOptions.text,value:this.options.itemOptions.value,width:70,onValueChanged:this.options.onValueChanged,onInitialized:this.options.onInitialized,onContentReady:function(t){var e=t.element.querySelector?t.element:t.element[0];e.querySelector(".dx-colorbox-color-result-preview").addEventListener("click",function(){o.options.onValueChanged({component:t.component,element:e,model:t.model,value:t.component.option("value")})})},elementAttr:{class:this.getCssClass()}}},u);function u(t){var e=i.call(this)||this;return e.options=t,e}e.ColorBoxToolbarItemTemplateCreator=s},function(t,e,o){"use strict";var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)});Object.defineProperty(e,"__esModule",{value:!0});var i,a=o(1),s=o(17),u=o(18),p=(i=a.ToolbarInteractiveItem,r(l,i),l.prototype.getWidget=function(){return this.widget},l.prototype.getOptions=function(){return this.options},l.prototype.createSubMenuItems=function(t){var o=this;t&&t.forEach(function(t){var e=new u.ToolbarSubMenuItem(t.name,o);o.onSubMenuItemCreated(e),t.name&&(o.items[t.name]=e),o.createSubMenuItems(t.items)})},l.prototype.getBuildTemplateStrategy=function(){return new s.MenuToolbarItemTemplateCreator({itemOptions:this.options,onInitialized:this.getOnInitializedHandler(),onItemRendered:this.getOnItemRenderedHandler(),onItemClick:this.getOnItemClickHandler()})},l.prototype.setValue=function(t){throw new Error("the setValue method is not implemented for the ToolbarMenuItem item")},l.prototype.getOnItemClickHandler=function(){var o=this;return this.onCommandExecuted?function(t){o.closeSubMenuIfRequired(t.component,t.itemData,t.itemElement);var e=t.itemData.name?o.items[t.itemData.name]:void 0;e&&o.onCommandExecuted({item:e,parameter:null})}:void 0},l.prototype.closeSubMenuIfRequired=function(t,e,o){e.isRootElement&&t._visibleSubmenu&&window.setTimeout(function(){return t.unselectItem(o[0]||o)},0)},l.prototype.getOnItemRenderedHandler=function(){var r=this;return function(t){var e=t.itemData.name;if(e){var o=r.items[e],n=t.itemElement[0]?t.itemElement[0]:t.itemElement;o.setElement(n)}}},l);function l(t,e,o){var n=i.call(this,t,e)||this;return n.onSubMenuItemCreated=o,n.items={},n.createSubMenuItems(t.items),n}e.ToolbarMenuItem=p},function(t,e,o){"use strict";var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)});Object.defineProperty(e,"__esModule",{value:!0});var i,a=o(2),s=o(0),u=(i=s.ToolbarItemTemplateCreator,r(p,i),p.prototype.createTemplate=function(){var t=i.prototype.createTemplate.call(this);return t.widget="dxMenu",t.options=this.getMenuOptions(),t},p.prototype.getMenuOptions=function(){var e=this;return a.DxtUtils.correctItemsIcons(this.options.itemOptions.items),{hideSubmenuOnMouseLeave:!0,focusStateEnabled:!1,selectByClick:!1,hint:this.options.itemOptions.text,dataSource:[{icon:this.options.itemOptions.icon?a.DxtUtils.correctIconName(this.options.itemOptions.icon):void 0,text:this.options.itemOptions.text,isRootElement:!0,items:this.options.itemOptions.items.map(function(t){return{beginGroup:t.beginGroup,name:t.name,text:t.text,icon:t.icon,items:t.items}})}],onInitialized:this.options.onInitialized,onItemRendered:this.options.onItemRendered,onItemClick:this.options.onItemClick,elementAttr:{class:this.getCssClass()},onContentReady:function(t){e.options.itemOptions.icon&&!e.options.itemOptions.alwaysShowText&&(t.element.classList?t.element:t.element[0]).classList.add(p.ShowTextInMenuClassName)}}},p.ShowTextInMenuClassName="dx-showTextInMenu",p);function p(t){var e=i.call(this)||this;return e.options=t,e}e.MenuToolbarItemTemplateCreator=u},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=(r.prototype.setValue=function(t){"boolean"==typeof t&&(this.element?this.setValueCore(this.element,t):this.selected=t)},r.prototype.setElement=function(t){this.element=t,void 0!==this.selected&&(this.setValue(this.selected),this.selected=void 0)},r.prototype.setEnabled=function(t){this.setDataOption("disabled",!t)},r.prototype.setVisible=function(t){this.setDataOption("visible",t)},r.prototype.setValueCore=function(t,e){e?t.classList.add(r.SelectedItemClassName):t.classList.remove(r.SelectedItemClassName)},r.prototype.setDataOption=function(t,e){var o=this,n=this.getDataOptionName();n&&setTimeout(function(){return o.menuItem.getWidget().option(n+"."+t,e)},0)},r.prototype.getDataOptionName=function(){return void 0===this.dataOptionName&&(this.dataOptionName=this.getDataOptionNameCore(this.menuItem.getOptions().items,"items[0]")),this.dataOptionName},r.prototype.getDataOptionNameCore=function(t,e){var o=this;if(!t)return null;var n=t.filter(function(t){return t.name==o.name})[0];if(n)return e+".items["+t.indexOf(n)+"]";for(var r=0;r<t.length;r++){var i=this.getDataOptionNameCore(t[r].items,e+".items["+r+"]");if(i)return i}return null},r.SelectedItemClassName="dx-menu-item-selected",r);function r(t,e){this.name=t,this.menuItem=e}e.ToolbarSubMenuItem=n},function(t,e,o){"use strict";var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)});Object.defineProperty(e,"__esModule",{value:!0});var i,a=o(1),s=o(20),u=(i=a.ToolbarInteractiveItem,r(p,i),p.prototype.getBuildTemplateStrategy=function(){return new s.NumberBoxToolbarItemTemplateCreator({itemOptions:this.options,onInitialized:this.getOnInitializedHandler(),onValueChanged:this.getOnValueChangedHandler()})},p.prototype.setValue=function(t){this.widget.option("value",t)},p.prototype.getOnValueChangedHandler=function(){var e=this;return this.onCommandExecuted?function(t){t.event&&e.onCommandExecuted({item:e,parameter:t.value})}:void 0},p);function p(){return null!==i&&i.apply(this,arguments)||this}e.ToolbarNumberBoxItem=u},function(t,e,o){"use strict";var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)});Object.defineProperty(e,"__esModule",{value:!0});var i,a=o(0),s=(i=a.ToolbarItemTemplateCreator,r(u,i),u.prototype.createTemplate=function(){var t=i.prototype.createTemplate.call(this);return t.widget="dxNumberBox",t.options=this.getWidgetOptions(),t},u.prototype.getWidgetOptions=function(){return{placeholder:"",focusStateEnabled:!1,hint:this.options.itemOptions.text,stylingMode:"filled",format:this.options.itemOptions.text+": 0.#",width:this.options.itemOptions.width,showSpinButtons:!0,min:this.options.itemOptions.min,max:this.options.itemOptions.max,step:this.options.itemOptions.step,onValueChanged:this.options.onValueChanged,onInitialized:this.options.onInitialized,elementAttr:{class:this.getCssClass()}}},u);function u(t){var e=i.call(this)||this;return e.options=t,e}e.NumberBoxToolbarItemTemplateCreator=s},function(t,e,o){"use strict";var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)});Object.defineProperty(e,"__esModule",{value:!0});var i,a=o(1),s=o(22),u=(i=a.ToolbarInteractiveItem,r(p,i),p.prototype.getBuildTemplateStrategy=function(){return new s.SelectBoxToolbarItemTemplateCreator({itemOptions:this.options,onInitialized:this.getOnInitializedHandler(),onValueChanged:this.getOnValueChangedHandler()})},p.prototype.setValue=function(t){this.widget.option("value",t)},p.prototype.getOnValueChangedHandler=function(){var e=this;return this.onCommandExecuted?function(t){t.event&&e.onCommandExecuted({item:e,parameter:t.value})}:void 0},p);function p(){return null!==i&&i.apply(this,arguments)||this}e.ToolbarSelectBoxItem=u},function(t,e,o){"use strict";var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)});Object.defineProperty(e,"__esModule",{value:!0});var i,a=o(0),s=(i=a.ToolbarDropDownItemTemplateCreator,r(u,i),u.prototype.createTemplate=function(){var t=i.prototype.createTemplate.call(this);return t.widget="dxSelectBox",t.options=this.getWidgetOptions(),t},u.prototype.getWidgetOptions=function(){return{placeholder:"",stylingMode:"filled",searchEnabled:!0,dataSource:this.options.itemOptions.dataSource,width:this.options.itemOptions.width,displayExpr:this.options.itemOptions.displayExpr,valueExpr:this.options.itemOptions.valueExpr,onValueChanged:this.options.onValueChanged,onInitialized:this.options.onInitialized,onFocusOut:i.prototype.getOnFocusOut.call(this),onKeyDown:i.prototype.getOnKeyDown.call(this),elementAttr:{class:this.getCssClass()}}},u);function u(t){var e=i.call(this)||this;return e.options=t,e}e.SelectBoxToolbarItemTemplateCreator=s},function(t,e,o){"use strict";var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)});Object.defineProperty(e,"__esModule",{value:!0});var i,a=o(3),s=o(24),u=(i=a.ToolbarItemBase,r(p,i),p.prepareElement=function(t){var e=t.classList?t:t[0];if(e){var o=e.querySelector(".dx-toolbar-item-content");o&&o.classList.add(p.SeparatorContainerClassName)}},p.prototype.getBuildTemplateStrategy=function(){return new s.SeparatorToolbarItemTemplateCreator},p.SeparatorContainerClassName="dx-r-separator-container",p);function p(){return null!==i&&i.apply(this,arguments)||this}e.ToolbarSeparatorItem=u},function(t,e,o){"use strict";var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)});Object.defineProperty(e,"__esModule",{value:!0});var i,a=o(4),s=o(0),u=(i=s.ToolbarItemTemplateCreator,r(p,i),p.prototype.createTemplate=function(){var t=i.prototype.createTemplate.call(this);return t.disabled=!0,t.dxIsSeparator=!0,t.template=function(){var t=document.createElement("div");return t.classList.add(p.SeparatorClassName),t.classList.add(a.DxtThemeCssClasses.BorderColor),t},t},p.SeparatorClassName="dx-r-separator",p);function p(){return null!==i&&i.apply(this,arguments)||this}e.SeparatorToolbarItemTemplateCreator=u}]);
|
|
55857
|
+
var DevExpress="object"==typeof DevExpress?DevExpress:{};DevExpress.AspNetCore=DevExpress.AspNetCore||{},DevExpress.AspNetCore.Spreadsheet=DevExpress.AspNetCore.Spreadsheet||{},DevExpress.AspNetCore.Spreadsheet.dxribbon=function(o){var n={};function r(t){var e;return(n[t]||(e=n[t]={i:t,l:!1,exports:{}},o[t].call(e.exports,e,e.exports,r),e.l=!0,e)).exports}return r.m=o,r.c=n,r.d=function(t,e,o){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(r.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)r.d(o,n,function(t){return e[t]}.bind(null,n));return o},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=5)}([function(t,e,o){"use strict";var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])}))(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),i=(Object.defineProperty(e,"__esModule",{value:!0}),s.prototype.createTemplate=function(){return{location:"before",locateInMenu:"auto"}},s.prototype.getCssClass=function(){return"dx-ribbon-item"},s);function s(){}e.ToolbarItemTemplateCreator=i;r(p,a=i),p.prototype.getOnFocusOut=function(){return function(t){return t.component.close()}},p.prototype.getOnKeyDown=function(){return function(t){9===t.event.keyCode&&t.event.preventDefault()}};var a,r=p;function p(){return null!==a&&a.apply(this,arguments)||this}e.ToolbarDropDownItemTemplateCreator=r},function(t,e,o){"use strict";var n,r,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])}))(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),o=(Object.defineProperty(e,"__esModule",{value:!0}),o(3)),o=(r=o.ToolbarItemBase,i(s,r),s.prototype.setEnabled=function(t){this.widget.option("disabled",!t)},s.prototype.setVisible=function(t){this.widget.option("visible",t)},s.prototype.getOnInitializedHandler=function(){var e=this;return function(t){return e.widget=t.component}},s);function s(t,e){var o=r.call(this)||this;return o.options=t,o.onCommandExecuted=e,o.name=t.name,o}e.ToolbarInteractiveItem=o},function(t,e,o){"use strict";function n(){}Object.defineProperty(e,"__esModule",{value:!0}),n.correctIconName=function(t){return 0==t.indexOf("dx")?" "+t:t},n.correctItemsIcons=function(t){t&&t.forEach(function(t){t.icon=t.icon?n.correctIconName(t.icon):void 0,n.correctItemsIcons(t.items)})},e.DxtUtils=n},function(t,e,o){"use strict";function n(){}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(n.prototype,"toolbarItemTemplateCreator",{get:function(){return this._toolbarItemTemplateCreator||(this._toolbarItemTemplateCreator=this.getBuildTemplateStrategy()),this._toolbarItemTemplateCreator},enumerable:!0,configurable:!0}),n.prototype.createToolbarItemTemplate=function(){return this.toolbarItemTemplateCreator.createTemplate()},e.ToolbarItemBase=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),(e=e.DxtThemeCssClasses||(e.DxtThemeCssClasses={})).AccentAsBackgroundColor="dx-theme-accent-as-background-color",e.AccentAsBorderColor="dx-theme-accent-as-border-color",e.AccentAsTextColor="dx-theme-accent-as-text-color",e.BackgroundColor="dx-theme-background-color",e.BackgroundColorAsBorderColor="dx-theme-background-color-as-border-color",e.BackgroundColorAsTextColor="dx-theme-background-color-as-text-color",e.BorderColor="dx-theme-border-color",e.BorderColorAsBackgroundColor="dx-theme-border-color-as-background-color",e.BorderColorAsTextColor="dx-theme-border-color-as-text-color ",e.TextColor="dx-theme-text-color",e.TextColorAsBackgroundColor="dx-theme-text-color-as-background-color",e.TextColorAsBorderColor="dx-theme-text-color-as-border-color"},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(6),n=(e.Ribbon=n.Ribbon,o(4));e.DxtThemeCssClasses=n.DxtThemeCssClasses},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(7),r=o(8),i=o(9),s=o(10),a=o(12),p=o(14),u=o(16),l=o(19),c=o(21),m=o(23);function d(t){this.options=t,this.toolbars=[],this.toolBarItemsByName={},this.contextItemIndexesByCategoryName={}}d.prototype.render=function(){var o=this;this.tabPanel=new n.default(this.options.element,{dataSource:this.getRibbonItems().map(function(t,e){return{title:t.title,visible:t.visible,template:function(){return o.createToolbar(t.items,e)}}}),deferRendering:!1,elementAttr:{class:"dx-ribbon "+i.currentTheme()},focusStateEnabled:!1,selectedIndex:this.options.activeTabIndex,loop:!1,animationEnabled:!1,swipeEnabled:!1,showNavButtons:!0,onTitleClick:this.options.onTitleClickHandler,onSelectionChanged:this.options.onSelectionChangedHandler})},d.prototype.getActiveTabIndex=function(){return this.tabPanel.option("selectedIndex")},d.prototype.setActiveTabIndex=function(t){this.tabPanel.option("selectedIndex",t)},d.prototype.setItemVisible=function(t,e){return this.tabPanel.option("items["+t+"].visible",e)},d.prototype.getItemVisible=function(t){return this.tabPanel.option("items["+t+"].visible")},d.prototype.setContextItemsCategoryVisible=function(t,e){var o,n,r=this,t=this.getContextItemsIndexes(t);t&&(o=!1,n=this.getActiveTabIndex(),t.forEach(function(t){r.getItemVisible(t)!==e&&(n!=t||e||(o=!0),r.setItemVisible(t,e))}),o&&this.setActiveTabIndex(this.options.activeTabIndex))},d.prototype.getContextItemsCategoryVisible=function(t){t=this.getContextItemsIndexes(t);return!(!t||!t.length)&&this.getItemVisible(t[0])},d.prototype.getContextItemsIndexes=function(t){return this.contextItemIndexesByCategoryName[t]},d.prototype.getTabPanel=function(){return this.tabPanel},d.prototype.getItems=function(t){return t&&this.toolBarItemsByName[t]?this.toolBarItemsByName[t]:null},d.prototype.adjustControl=function(){this.tabPanel._dimensionChanged(),this.toolbars.forEach(function(t){return t._dimensionChanged()})},d.prototype.getRibbonItems=function(){var n=this,r=[].concat(this.options.items);return this.options.contextItemsCategories&&this.options.contextItemsCategories.forEach(function(o){n.contextItemIndexesByCategoryName[o.name]||(n.contextItemIndexesByCategoryName[o.name]=[]),o.items.forEach(function(t,e){n.contextItemIndexesByCategoryName[o.name].push(e+r.length)}),r=r.concat(o.items.map(function(t){return{items:t.items,title:t.title,visible:!1}}))}),r},d.prototype.createToolbar=function(t,e){var o=this,n=document.createElement("div"),t={dataSource:this.getToolbarItemTemplates(t,e),onInitialized:function(t){return o.toolbars.push(t.component)},onItemRendered:function(t){t.itemData.dxIsSeparator&&m.ToolbarSeparatorItem.prepareElement(t.itemElement)}};return new r.default(n,t),n},d.prototype.getToolbarItemTemplates=function(t,e){var o,n=this,r=[],i=(t.forEach(function(t){r=r.concat(n.getToolbarItems(t,e))}),[]);return r.forEach(function(t){t instanceof m.ToolbarSeparatorItem&&(!o||o instanceof m.ToolbarSeparatorItem)||(i.push(t.createToolbarItemTemplate()),o=t)}),i},d.prototype.getToolbarItems=function(t,e){var o=[],n="ColorBox"===t.type||"NumberBox"===t.type||"SelectBox"===t.type;return(t.beginGroup||n)&&o.push(new m.ToolbarSeparatorItem),o.push(this.interactiveToolbarItemFactory(t,e)),n&&o.push(new m.ToolbarSeparatorItem),o},d.prototype.interactiveToolbarItemFactory=function(e,o){var t,n=this;switch(e.type){case"Button":t=new a.ToolbarButtonItem(e,this.options.onCommandExecuted);break;case"ButtonGroup":t=new s.ToolbarButtonGroupItem(e,this.options.onCommandExecuted);break;case"Menu":t=new u.ToolbarMenuItem(e,this.options.onCommandExecuted,function(t){n.addItemToCache(t.name,t),n.raiseOnOnToolbarItemCreated(e,t,o)});break;case"NumberBox":t=new l.ToolbarNumberBoxItem(e,this.options.onCommandExecuted);break;case"ColorBox":t=new p.ToolbarColorBoxItem(e,this.options.onCommandExecuted);break;default:t=new c.ToolbarSelectBoxItem(e,this.options.onCommandExecuted)}return this.addItemToCache(e.name,t),this.raiseOnOnToolbarItemCreated(e,t,o),t},d.prototype.addItemToCache=function(t,e){t&&(this.toolBarItemsByName[t]||(this.toolBarItemsByName[t]=[]),this.toolBarItemsByName[t].push(e))},d.prototype.raiseOnOnToolbarItemCreated=function(t,e,o){this.options.onOnToolbarItemCreated&&this.options.onOnToolbarItemCreated({options:t,item:e,tabIndex:o})},e.Ribbon=d},function(t,e){t.exports={default:DevExpress.ui.dxTabPanel}},function(t,e){t.exports={default:DevExpress.ui.dxToolbar}},function(t,e){t.exports=DevExpress.viz},function(t,e,o){"use strict";var n,r,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])}))(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),s=(Object.defineProperty(e,"__esModule",{value:!0}),o(1)),a=o(11),o=(r=s.ToolbarInteractiveItem,i(p,r),p.prototype.getBuildTemplateStrategy=function(){return new a.ButtonGroupToolbarItemTemplateCreator({itemOptions:this.options,onInitialized:this.getOnInitializedHandler(),onClick:this.getOnClickHandler()})},p.prototype.setValue=function(t){},p.prototype.getOnClickHandler=function(){var t=this;return this.onCommandExecuted?function(){t.onCommandExecuted({item:t,parameter:null})}:void 0},p.ToggleStateClassName="dx-r-toggle",p.ToggleButtonDataProperty="dx-ri-value",p);function p(){return null!==r&&r.apply(this,arguments)||this}e.ToolbarButtonGroupItem=o},function(t,e,o){"use strict";var n,r,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])}))(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),s=(Object.defineProperty(e,"__esModule",{value:!0}),o(2)),o=o(0),o=(r=o.ToolbarItemTemplateCreator,i(a,r),a.prototype.createTemplate=function(){var t=r.prototype.createTemplate.call(this);return t.widget="dxButtonGroup",t.showText=this.options.itemOptions.items[0]&&this.options.itemOptions.items[0].icon&&!this.options.itemOptions.alwaysShowText?"inMenu":"always",t.options=this.getButtonGroupOptions(),t},a.prototype.getButtonGroupOptions=function(){return{focusStateEnabled:!1,onInitialized:this.options.onInitialized,items:this.options.itemOptions.items.map(function(t){return t.icon=t.icon&&s.DxtUtils.correctIconName(t.icon),t})}},a);function a(t){var e=r.call(this)||this;return e.options=t,e}e.ButtonGroupToolbarItemTemplateCreator=o},function(t,e,o){"use strict";var n,r,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])}))(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),s=(Object.defineProperty(e,"__esModule",{value:!0}),o(1)),a=o(13),o=(r=s.ToolbarInteractiveItem,i(p,r),p.prototype.getBuildTemplateStrategy=function(){return new a.ButtonToolbarItemTemplateCreator({itemOptions:this.options,onInitialized:this.getOnInitializedHandler(),onClick:this.getOnClickHandler()})},p.prototype.setValue=function(t){var e;this.options.isToggleMode&&(((e=this.getElement())[p.ToggleButtonDataProperty]=t)?(e.classList.add(p.ToggleStateClassName),e.classList.add(p.ButtonGroupItemClassName),e.classList.add(p.ItemSelectedClassName)):(e.classList.remove(p.ToggleStateClassName),e.classList.remove(p.ButtonGroupItemClassName),e.classList.remove(p.ItemSelectedClassName)))},p.prototype.getValue=function(){return this.options.isToggleMode?this.getElement()[p.ToggleButtonDataProperty]:null},p.prototype.getElement=function(){return this.widget.element().classList?this.widget.element():this.widget.element()[0]},p.prototype.getOnClickHandler=function(){var t=this;return this.onCommandExecuted?function(){t.setValue(!t.getValue()),t.onCommandExecuted({item:t,parameter:t.getValue()})}:void 0},p.ToggleStateClassName="dx-r-toggle",p.ButtonGroupItemClassName="dx-buttongroup-item",p.ItemSelectedClassName="dx-item-selected",p.ToggleButtonDataProperty="dx-ri-value",p);function p(){return null!==r&&r.apply(this,arguments)||this}e.ToolbarButtonItem=o},function(t,e,o){"use strict";var n,r,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])}))(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),s=(Object.defineProperty(e,"__esModule",{value:!0}),o(2)),o=o(0),o=(r=o.ToolbarItemTemplateCreator,i(a,r),a.prototype.createTemplate=function(){var t=r.prototype.createTemplate.call(this);return t.widget="dxButton",t.showText=!this.options.itemOptions.icon||this.options.itemOptions.alwaysShowText?"always":"inMenu",t.options=this.getButtonOptions(),t},a.prototype.getButtonOptions=function(){return{text:this.options.itemOptions.text,icon:this.options.itemOptions.icon?s.DxtUtils.correctIconName(this.options.itemOptions.icon):void 0,hint:this.options.itemOptions.text,stylingMode:"text",focusStateEnabled:!1,onInitialized:this.options.onInitialized,onClick:this.options.onClick}},a);function a(t){var e=r.call(this)||this;return e.options=t,e}e.ButtonToolbarItemTemplateCreator=o},function(t,e,o){"use strict";var n,r,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])}))(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),s=(Object.defineProperty(e,"__esModule",{value:!0}),o(1)),a=o(15),o=(r=s.ToolbarInteractiveItem,i(p,r),p.prototype.getBuildTemplateStrategy=function(){return new a.ColorBoxToolbarItemTemplateCreator({itemOptions:this.options,onInitialized:this.getOnInitializedHandler(),onValueChanged:this.getOnValueChangedHandler()})},p.prototype.setValue=function(t){this.widget.option("value",t)},p.prototype.getOnValueChangedHandler=function(){var e=this;return this.onCommandExecuted?function(t){e.onCommandExecuted({item:e,parameter:t.value})}:void 0},p);function p(){return null!==r&&r.apply(this,arguments)||this}e.ToolbarColorBoxItem=o},function(t,e,o){"use strict";var n,r,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])}))(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),o=(Object.defineProperty(e,"__esModule",{value:!0}),o(0)),o=(r=o.ToolbarItemTemplateCreator,i(s,r),s.prototype.createTemplate=function(){var t=r.prototype.createTemplate.call(this);return t.widget="dxColorBox",t.options=this.getWidgetOptions(),t},s.prototype.getWidgetOptions=function(){var o=this;return{placeholder:"",focusStateEnabled:!1,mask:" ",stylingMode:"filled",hint:this.options.itemOptions.text,value:this.options.itemOptions.value,width:70,onValueChanged:this.options.onValueChanged,onInitialized:this.options.onInitialized,onContentReady:function(t){var e=t.element.querySelector?t.element:t.element[0];e.querySelector(".dx-colorbox-color-result-preview").addEventListener("click",function(){o.options.onValueChanged({component:t.component,element:e,model:t.model,value:t.component.option("value")})})},elementAttr:{class:this.getCssClass()}}},s);function s(t){var e=r.call(this)||this;return e.options=t,e}e.ColorBoxToolbarItemTemplateCreator=o},function(t,e,o){"use strict";var n,r,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])}))(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),s=(Object.defineProperty(e,"__esModule",{value:!0}),o(1)),a=o(17),p=o(18),o=(r=s.ToolbarInteractiveItem,i(u,r),u.prototype.getWidget=function(){return this.widget},u.prototype.getOptions=function(){return this.options},u.prototype.createSubMenuItems=function(t){var o=this;t&&t.forEach(function(t){var e=new p.ToolbarSubMenuItem(t.name,o);o.onSubMenuItemCreated(e),t.name&&(o.items[t.name]=e),o.createSubMenuItems(t.items)})},u.prototype.getBuildTemplateStrategy=function(){return new a.MenuToolbarItemTemplateCreator({itemOptions:this.options,onInitialized:this.getOnInitializedHandler(),onItemRendered:this.getOnItemRenderedHandler(),onItemClick:this.getOnItemClickHandler()})},u.prototype.setValue=function(t){throw new Error("the setValue method is not implemented for the ToolbarMenuItem item")},u.prototype.getOnItemClickHandler=function(){var e=this;return this.onCommandExecuted?function(t){e.closeSubMenuIfRequired(t.component,t.itemData,t.itemElement);t=t.itemData.name?e.items[t.itemData.name]:void 0;t&&e.onCommandExecuted({item:t,parameter:null})}:void 0},u.prototype.closeSubMenuIfRequired=function(t,e,o){e.isRootElement&&t._visibleSubmenu&&window.setTimeout(function(){return t.unselectItem(o[0]||o)},0)},u.prototype.getOnItemRenderedHandler=function(){var o=this;return function(t){var e=t.itemData.name;e&&(e=o.items[e],t=t.itemElement[0]||t.itemElement,e.setElement(t))}},u);function u(t,e,o){e=r.call(this,t,e)||this;return e.onSubMenuItemCreated=o,e.items={},e.createSubMenuItems(t.items),e}e.ToolbarMenuItem=o},function(t,e,o){"use strict";var n,r,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])}))(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),s=(Object.defineProperty(e,"__esModule",{value:!0}),o(2)),o=o(0),o=(r=o.ToolbarItemTemplateCreator,i(a,r),a.prototype.createTemplate=function(){var t=r.prototype.createTemplate.call(this);return t.widget="dxMenu",t.options=this.getMenuOptions(),t},a.prototype.getMenuOptions=function(){var e=this;return s.DxtUtils.correctItemsIcons(this.options.itemOptions.items),{hideSubmenuOnMouseLeave:!0,focusStateEnabled:!1,selectByClick:!1,hint:this.options.itemOptions.text,dataSource:[{icon:this.options.itemOptions.icon?s.DxtUtils.correctIconName(this.options.itemOptions.icon):void 0,text:this.options.itemOptions.text,isRootElement:!0,items:this.options.itemOptions.items.map(function(t){return{beginGroup:t.beginGroup,name:t.name,text:t.text,icon:t.icon,items:t.items}})}],onInitialized:this.options.onInitialized,onItemRendered:this.options.onItemRendered,onItemClick:this.options.onItemClick,elementAttr:{class:this.getCssClass()},onContentReady:function(t){e.options.itemOptions.icon&&!e.options.itemOptions.alwaysShowText&&(t.element.classList?t.element:t.element[0]).classList.add(a.ShowTextInMenuClassName)}}},a.ShowTextInMenuClassName="dx-showTextInMenu",a);function a(t){var e=r.call(this)||this;return e.options=t,e}e.MenuToolbarItemTemplateCreator=o},function(t,e,o){"use strict";function n(t,e){this.name=t,this.menuItem=e}Object.defineProperty(e,"__esModule",{value:!0}),n.prototype.setValue=function(t){"boolean"==typeof t&&(this.element?this.setValueCore(this.element,t):this.selected=t)},n.prototype.setElement=function(t){this.element=t,void 0!==this.selected&&(this.setValue(this.selected),this.selected=void 0)},n.prototype.setEnabled=function(t){this.setDataOption("disabled",!t)},n.prototype.setVisible=function(t){this.setDataOption("visible",t)},n.prototype.setValueCore=function(t,e){e?t.classList.add(n.SelectedItemClassName):t.classList.remove(n.SelectedItemClassName)},n.prototype.setDataOption=function(t,e){var o=this,n=this.getDataOptionName();n&&setTimeout(function(){return o.menuItem.getWidget().option(n+"."+t,e)},0)},n.prototype.getDataOptionName=function(){return void 0===this.dataOptionName&&(this.dataOptionName=this.getDataOptionNameCore(this.menuItem.getOptions().items,"items[0]")),this.dataOptionName},n.prototype.getDataOptionNameCore=function(t,e){var o=this;if(t){var n=t.filter(function(t){return t.name==o.name})[0];if(n)return e+".items["+t.indexOf(n)+"]";for(var r=0;r<t.length;r++){var i=this.getDataOptionNameCore(t[r].items,e+".items["+r+"]");if(i)return i}}return null},n.SelectedItemClassName="dx-menu-item-selected",e.ToolbarSubMenuItem=n},function(t,e,o){"use strict";var n,r,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])}))(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),s=(Object.defineProperty(e,"__esModule",{value:!0}),o(1)),a=o(20),o=(r=s.ToolbarInteractiveItem,i(p,r),p.prototype.getBuildTemplateStrategy=function(){return new a.NumberBoxToolbarItemTemplateCreator({itemOptions:this.options,onInitialized:this.getOnInitializedHandler(),onValueChanged:this.getOnValueChangedHandler()})},p.prototype.setValue=function(t){this.widget.option("value",t)},p.prototype.getOnValueChangedHandler=function(){var e=this;return this.onCommandExecuted?function(t){t.event&&e.onCommandExecuted({item:e,parameter:t.value})}:void 0},p);function p(){return null!==r&&r.apply(this,arguments)||this}e.ToolbarNumberBoxItem=o},function(t,e,o){"use strict";var n,r,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])}))(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),o=(Object.defineProperty(e,"__esModule",{value:!0}),o(0)),o=(r=o.ToolbarItemTemplateCreator,i(s,r),s.prototype.createTemplate=function(){var t=r.prototype.createTemplate.call(this);return t.widget="dxNumberBox",t.options=this.getWidgetOptions(),t},s.prototype.getWidgetOptions=function(){return{placeholder:"",focusStateEnabled:!1,hint:this.options.itemOptions.text,stylingMode:"filled",format:this.options.itemOptions.text+": 0.#",width:this.options.itemOptions.width,showSpinButtons:!0,min:this.options.itemOptions.min,max:this.options.itemOptions.max,step:this.options.itemOptions.step,onValueChanged:this.options.onValueChanged,onInitialized:this.options.onInitialized,elementAttr:{class:this.getCssClass()}}},s);function s(t){var e=r.call(this)||this;return e.options=t,e}e.NumberBoxToolbarItemTemplateCreator=o},function(t,e,o){"use strict";var n,r,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])}))(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),s=(Object.defineProperty(e,"__esModule",{value:!0}),o(1)),a=o(22),o=(r=s.ToolbarInteractiveItem,i(p,r),p.prototype.getBuildTemplateStrategy=function(){return new a.SelectBoxToolbarItemTemplateCreator({itemOptions:this.options,onInitialized:this.getOnInitializedHandler(),onValueChanged:this.getOnValueChangedHandler()})},p.prototype.setValue=function(t){this.widget.option("value",t)},p.prototype.getOnValueChangedHandler=function(){var e=this;return this.onCommandExecuted?function(t){t.event&&e.onCommandExecuted({item:e,parameter:t.value})}:void 0},p);function p(){return null!==r&&r.apply(this,arguments)||this}e.ToolbarSelectBoxItem=o},function(t,e,o){"use strict";var n,r,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])}))(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),o=(Object.defineProperty(e,"__esModule",{value:!0}),o(0)),o=(r=o.ToolbarDropDownItemTemplateCreator,i(s,r),s.prototype.createTemplate=function(){var t=r.prototype.createTemplate.call(this);return t.widget="dxSelectBox",t.options=this.getWidgetOptions(),t},s.prototype.getWidgetOptions=function(){return{placeholder:"",stylingMode:"filled",searchEnabled:!0,dataSource:this.options.itemOptions.dataSource,width:this.options.itemOptions.width,displayExpr:this.options.itemOptions.displayExpr,valueExpr:this.options.itemOptions.valueExpr,onValueChanged:this.options.onValueChanged,onInitialized:this.options.onInitialized,onFocusOut:r.prototype.getOnFocusOut.call(this),onKeyDown:r.prototype.getOnKeyDown.call(this),elementAttr:{class:this.getCssClass()}}},s);function s(t){var e=r.call(this)||this;return e.options=t,e}e.SelectBoxToolbarItemTemplateCreator=o},function(t,e,o){"use strict";var n,r,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])}))(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),s=(Object.defineProperty(e,"__esModule",{value:!0}),o(3)),a=o(24),o=(r=s.ToolbarItemBase,i(p,r),p.prepareElement=function(t){var t=t.classList?t:t[0];!t||(t=t.querySelector(".dx-toolbar-item-content"))&&t.classList.add(p.SeparatorContainerClassName)},p.prototype.getBuildTemplateStrategy=function(){return new a.SeparatorToolbarItemTemplateCreator},p.SeparatorContainerClassName="dx-r-separator-container",p);function p(){return null!==r&&r.apply(this,arguments)||this}e.ToolbarSeparatorItem=o},function(t,e,o){"use strict";var n,r,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])}))(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),s=(Object.defineProperty(e,"__esModule",{value:!0}),o(4)),o=o(0),o=(r=o.ToolbarItemTemplateCreator,i(a,r),a.prototype.createTemplate=function(){var t=r.prototype.createTemplate.call(this);return t.disabled=!0,t.dxIsSeparator=!0,t.template=function(){var t=document.createElement("div");return t.classList.add(a.SeparatorClassName),t.classList.add(s.DxtThemeCssClasses.BorderColor),t},t},a.SeparatorClassName="dx-r-separator",a);function a(){return null!==r&&r.apply(this,arguments)||this}e.SeparatorToolbarItemTemplateCreator=o}]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "devexpress-aspnetcore-spreadsheet",
|
|
3
|
-
"version": "19.1.
|
|
3
|
+
"version": "19.1.16",
|
|
4
4
|
"homepage": "https://www.devexpress.com/",
|
|
5
5
|
"bugs": "https://www.devexpress.com/support/",
|
|
6
6
|
"author": "Developer Express Inc.",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"localization": "node bin/localization-builder.js localization-source localization"
|
|
12
12
|
},
|
|
13
13
|
"peerDependencies": {
|
|
14
|
-
"devextreme": "19.1.
|
|
14
|
+
"devextreme": "19.1.16"
|
|
15
15
|
},
|
|
16
16
|
"keywords": [
|
|
17
17
|
"spreadsheet",
|