devexpress-aspnetcore-spreadsheet 21.1.6 → 21.2.2-beta

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,6 +1,6 @@
1
1
  /**
2
2
  * DevExpress AspNetCore Spreadsheet (dx-localization-builder.js)
3
- * Version: 21.1.6
3
+ * Version: 21.2.2
4
4
  * Copyright (c) 2012 - 2021 Developer Express Inc. ALL RIGHTS RESERVED
5
5
  * License: https://www.devexpress.com/Support/EULAs
6
6
  */
@@ -1864,6 +1864,9 @@ div[class*='material-'] .dxss-insertHyperlinkDialog.dxss-mv
1864
1864
  text-transform: uppercase;
1865
1865
  font-weight: 500;
1866
1866
  }
1867
+ .dx-ribbon[class*=material] .dx-dropdowneditor.dx-editor-filled::after {
1868
+ border-bottom-color: transparent;
1869
+ }
1867
1870
 
1868
1871
  .dx-ribbon .dx-menu-base.dx-ribbon-item.dx-showTextInMenu :not(.dx-submenu) .dx-menu-item .dx-menu-item-content .dx-menu-item-text, .dx-ribbon .dx-menu-base.dx-ribbon-item.dx-showTextInMenu :not(.dx-submenu) .dx-menu-item .dx-menu-item-content .dx-menu-item-popout:before {
1869
1872
  display: none;
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * DevExpress AspNetCore Spreadsheet (dx-aspnetcore-spreadsheet.js)
3
- * Version: 21.1.6
3
+ * Version: 21.2.2
4
4
  * Copyright (c) 2012 - 2021 Developer Express Inc. ALL RIGHTS RESERVED
5
5
  * License: https://www.devexpress.com/Support/EULAs
6
6
  */
@@ -891,6 +891,11 @@ Str.Trim = function(str) {
891
891
  Str.EscapeForRegEx = function(str) {
892
892
  return str.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
893
893
  };
894
+ Str.GetContentFromString = function(str, startSubstr, endSubstr) {
895
+ var startIndex = str.indexOf(startSubstr),
896
+ endIndex = str.lastIndexOf(endSubstr);
897
+ return str.substring(startIndex + 1, endIndex);
898
+ };
894
899
  var whiteSpaces = {
895
900
  0x0009: 1, 0x000a: 1, 0x000b: 1, 0x000c: 1, 0x000d: 1, 0x0020: 1, 0x0085: 1,
896
901
  0x00a0: 1, 0x1680: 1, 0x180e: 1, 0x2000: 1, 0x2001: 1, 0x2002: 1, 0x2003: 1,
@@ -2138,11 +2143,12 @@ ASPx.Color = Color;
2138
2143
  var Url = { };
2139
2144
  Url.Navigate = function(url, target) {
2140
2145
  var javascriptPrefix = "javascript:";
2141
- if(!url || url === "")
2146
+ if(!url || url === "") {
2142
2147
  return;
2143
- else if(url.indexOf(javascriptPrefix) != -1)
2144
- eval(url.substr(javascriptPrefix.length));
2145
- else {
2148
+ } else if(url.indexOf(javascriptPrefix) != -1) {
2149
+ var code = url.substr(javascriptPrefix.length);
2150
+ if(!ASPx.Nonce) eval(code);
2151
+ } else {
2146
2152
  try{
2147
2153
  if(target != "")
2148
2154
  navigateTo(url, target);
@@ -2314,10 +2320,14 @@ function isValid(JsonString) {
2314
2320
  return !(/[^,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t]/.test(JsonString.replace(/"(\\.|[^"\\])*"/g, '')));
2315
2321
  }
2316
2322
  Json.Eval = function(jsonString, controlName) {
2317
- if(isValid(jsonString))
2318
- return eval("(" + jsonString + ")");
2319
- else
2323
+ if(isValid(jsonString)) {
2324
+ if(ASPx.Nonce)
2325
+ return JSON.parse(jsonString);
2326
+ else
2327
+ return eval("(" + jsonString + ")");
2328
+ } else {
2320
2329
  throw new Error(controlName + " received incorrect JSON-data: " + jsonString);
2330
+ }
2321
2331
  };
2322
2332
  Json.ToJson = function(param, skipEncodeHtml){
2323
2333
  var paramType = typeof(param);
@@ -3263,6 +3273,12 @@ ASPx.AddClassNameToElement = function (element, className) {
3263
3273
  ASPx.SetClassName(element, (oldClassName === "") ? className : oldClassName + " " + className);
3264
3274
  }
3265
3275
  };
3276
+ ASPx.AddClassNamesToElement = function(element, classNames) {
3277
+ Data.ForEach(classNames, function(className) { ASPx.AddClassNameToElement(element, className); });
3278
+ };
3279
+ ASPx.CombineCssClasses = function() {
3280
+ return Array.prototype.slice.call(arguments).join(" ");
3281
+ };
3266
3282
  ASPx.RemoveClassNameFromElement = function(element, className) {
3267
3283
  if(!element) return;
3268
3284
  var elementClassName = ASPx.GetClassName(element);
@@ -6163,6 +6179,8 @@ ASPx.GetEditorValueByControl = function(control, needSerialize) {
6163
6179
  }
6164
6180
  if(ASPx.IsDropDownEdit(control))
6165
6181
  result = control.GetKeyValue();
6182
+ if(ASPx.IsHtmlEditor(control))
6183
+ result = control.GetHtml();
6166
6184
  return result || control.GetValue();
6167
6185
  };
6168
6186
 
@@ -6190,7 +6208,9 @@ ASPx.IsGridLookup = function(control) {
6190
6208
  ASPx.IsSpinEdit = function(control) {
6191
6209
  return control && typeof(ASPxClientSpinEdit) != "undefined" && control instanceof ASPxClientSpinEdit;
6192
6210
  };
6193
-
6211
+ ASPx.IsHtmlEditor = function(control) {
6212
+ return control && typeof (ASPxClientHtmlEditor) != "undefined" && control instanceof ASPxClientHtmlEditor;
6213
+ };
6194
6214
  ASPx.DatePickerType = {
6195
6215
  Days: 0,
6196
6216
  Months: 1,
@@ -6500,6 +6520,7 @@ ASPx.Security = Security;
6500
6520
 
6501
6521
 
6502
6522
  /// <reference path="Utils.js"/>
6523
+ /*jshint loopfunc:true */
6503
6524
  /*# namespace DevExpress.Web.Scripts #*/
6504
6525
 
6505
6526
  (function module(ASPx, options) {
@@ -7484,10 +7505,11 @@ function _aspxProcessScripts(ownerName, isCallback) {
7484
7505
  var onlyNewScripts = ResourceManager.GetNewResourcesElementString(script, "src", "DXScript", getOnlyNewResources);
7485
7506
  if (onlyNewScripts == "")
7486
7507
  continue;
7487
-
7488
- var createdScript = document.createElement("script");
7489
7508
 
7509
+ var createdScript = document.createElement("script");
7490
7510
  ASPx.Attr.AppendScriptType(createdScript);
7511
+ //if(ASPx.Nonce)
7512
+ // createdScript.setAttribute("nonce", createdScript.nonce);
7491
7513
  createdScript.src = onlyNewScripts;
7492
7514
  createdScript.id = script.id;
7493
7515
  if(ASPx.Data.ArrayIndexOf(createdIncludeScripts, createdScript, _aspxAreScriptsEqual) >= 0)
@@ -7496,11 +7518,15 @@ function _aspxProcessScripts(ownerName, isCallback) {
7496
7518
  createdIncludeScripts.push(createdScript);
7497
7519
  ASPx.RemoveElement(script);
7498
7520
 
7499
- if(ASPx.Browser.IE && ASPx.Browser.Version < 9) {
7500
- createdScript.onreadystatechange = new Function("ASPx.OnScriptReadyStateChangedCallback(this, " + isCallback + ");");
7501
- } else if(ASPx.Browser.Edge || ASPx.Browser.WebKitFamily || (ASPx.Browser.Firefox && ASPx.Browser.Version >= 4) || ASPx.Browser.IE && ASPx.Browser.Version >= 9) {
7521
+ //if(ASPx.Browser.IE && ASPx.Browser.Version < 9) {
7522
+ // createdScript.onreadystatechange = new Function(ASPx.OnScriptReadyStateChangedCallback(this, " + isCallback + ");");
7523
+ //} else
7524
+ if (ASPx.Browser.Edge || ASPx.Browser.WebKitFamily || (ASPx.Browser.Firefox && ASPx.Browser.Version >= 4) || ASPx.Browser.IE && ASPx.Browser.Version >= 9) {
7502
7525
  // Organizing scripts into a linked list to perform their loading and execution sequentially
7503
- createdScript.onload = new Function("ASPx.OnScriptLoadCallback(this, " + isCallback + ");");
7526
+ if(ASPx.Nonce)
7527
+ createdScript.onload = function() { ASPx.OnScriptLoadCallback(this, isCallback); };
7528
+ else
7529
+ createdScript.onload = new Function("ASPx.OnScriptLoadCallback(this, " + isCallback + ");");
7504
7530
  if(firstCreatedScript == null)
7505
7531
  firstCreatedScript = createdScript;
7506
7532
  createdScript.nextCreatedScript = null;
@@ -7509,7 +7535,10 @@ function _aspxProcessScripts(ownerName, isCallback) {
7509
7535
  previousCreatedScript = createdScript;
7510
7536
  } else {
7511
7537
  // Immediate script loading
7512
- createdScript.onload = new Function("ASPx.OnScriptLoadCallback(this);");
7538
+ if(ASPx.Nonce)
7539
+ createdScript.onload = function() { ASPx.OnScriptLoadCallback(this); };
7540
+ else
7541
+ createdScript.onload = new Function("ASPx.OnScriptLoadCallback(this);");
7513
7542
  ASPx.AppendScript(createdScript);
7514
7543
  _aspxCacheIncludeScript(createdScript);
7515
7544
  }
@@ -7579,9 +7608,23 @@ function _aspxRunStartupScriptsCore(container) {
7579
7608
  var script = scripts[i];
7580
7609
  if(!isScriptExecuted(script)) {
7581
7610
  _aspxEnsureStartupScriptIsUnique(script.id); //T454370
7582
- code = ASPx.GetScriptCode(script);
7583
- eval(code);
7584
- markScriptAsExecuted(script);
7611
+ if (ASPx.Nonce) {
7612
+ var createdScript = document.createElement("script");
7613
+
7614
+ ASPx.Attr.AppendScriptType(createdScript);
7615
+ createdScript.setAttribute("nonce", script.nonce); //allow loading by known nonce
7616
+ createdScript.innerHTML = script.innerHTML;
7617
+ createdScript.id = script.id;
7618
+
7619
+ ASPx.InsertElementAfter(createdScript, script.previousSibling || script.parentNode);
7620
+ ASPx.RemoveElement(script);
7621
+
7622
+ markScriptAsExecuted(createdScript);
7623
+ } else {
7624
+ code = ASPx.GetScriptCode(script);
7625
+ eval(code);
7626
+ markScriptAsExecuted(script);
7627
+ }
7585
7628
  }
7586
7629
  }
7587
7630
  }
@@ -12266,7 +12309,8 @@ var ASPxClientControlBase = ASPx.CreateClass(null, {
12266
12309
  this.ClearPostBackEventInput("__EVENTTARGET");
12267
12310
  this.ClearPostBackEventInput("__EVENTARGUMENT");
12268
12311
  WebForm_InitCallback();
12269
- this.savedFormPostData = __theFormPostData;
12312
+ if(ASPx.Nonce) __theFormPostData += "DXCspNonce=" + ASPx.Nonce + "&";
12313
+ this.savedFormPostData = __theFormPostData;
12270
12314
  this.savedFormPostCollection = __theFormPostCollection;
12271
12315
  }
12272
12316
  },
@@ -12405,8 +12449,13 @@ var ASPxClientControlBase = ASPx.CreateClass(null, {
12405
12449
  ShouldHideExistingLoadingElements: function() {
12406
12450
  return true;
12407
12451
  },
12408
- EvalCallbackResult: function(resultString){
12409
- return eval(resultString);
12452
+ EvalCallbackResult: function(resultString) {
12453
+ if(ASPx.Nonce) {
12454
+ var resultWithoutPrefix = resultString.substring(resultString.indexOf(ASPx.CallbackResultPrefix) + ASPx.CallbackResultPrefix.length);
12455
+ return JSON.parse(resultWithoutPrefix);
12456
+ } else {
12457
+ return eval(resultString);
12458
+ }
12410
12459
  },
12411
12460
  ParseJSProperties: function(resultObj) {
12412
12461
  if(resultObj.cp) {
@@ -23910,7 +23959,7 @@ var ASPxClientSpreadsheet = ASPx.CreateClass(ASPxClientControl, {
23910
23959
  onResponseReceivedCore: function(jsonResponse) {
23911
23960
  var response = null;
23912
23961
  try {
23913
- response = eval("(" + jsonResponse + ")");
23962
+ response = JSON.parse(jsonResponse);
23914
23963
  } catch(e) {
23915
23964
  response = null;
23916
23965
  if(!window.eval) //T334508
@@ -36292,10 +36341,10 @@ ASPxClientSpreadsheet.ServerCommands = (function() {
36292
36341
  connectionLineElement = ASPxClientSpreadsheet.RenderHelper.PlacementHelper.getChildElementById(parentContainer, connectionLineElementId),
36293
36342
  commentElementId = spreadsheetControl.getRenderHelper().getCommentElementId(rowIndex, columnIndex, paneType),
36294
36343
  commentElement = ASPxClientSpreadsheet.RenderHelper.PlacementHelper.getChildElementById(parentContainer, commentElementId);
36295
- if(connectionLineElement || commentElement) {
36296
- ASPx.SetStyles(commentElement, { display: display });
36344
+ if (connectionLineElement)
36297
36345
  ASPx.SetStyles(connectionLineElement, { display: display });
36298
- }
36346
+ if (commentElement)
36347
+ ASPx.SetStyles(commentElement, { display: display });
36299
36348
  }
36300
36349
  }
36301
36350
  function captureOnCommentCell(paneType, columnIndex, rowIndex) {
@@ -62343,7 +62392,8 @@ Object.defineProperty(ASPxClientSpreadsheet, 'Functions', {
62343
62392
  var popoverContainer = document.createElement('div');
62344
62393
  popoverContainer.className = 'dxss-cell-pos-hint';
62345
62394
  this.popover = new DevExpress.ui.dxPopover(popoverContainer, {
62346
- position: 'left'
62395
+ position: 'left',
62396
+ copyRootClassesToWrapper: true
62347
62397
  });
62348
62398
  this.spreadsheet.GetMainElement().appendChild(popoverContainer);
62349
62399
  },
@@ -62373,4 +62423,4 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
62373
62423
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
62374
62424
  PERFORMANCE OF THIS SOFTWARE.
62375
62425
  ***************************************************************************** */
62376
- var 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)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)};function r(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}var i=function(){return(i=Object.assign||function(t){for(var e,o=1,n=arguments.length;o<n;o++)for(var r in e=arguments[o])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};function a(t,e){var o={};for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(o[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,r=Object.getOwnPropertySymbols(t);n<r.length;n++)e.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(t,r[n])&&(o[r[n]]=t[r[n]]);return o}function s(t,e,o,n){var r,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;0<=s;s--)(r=t[s])&&(a=(i<3?r(a):3<i?r(e,o,a):r(e,o))||a);return 3<i&&a&&Object.defineProperty(e,o,a),a}function l(o,n){return function(t,e){n(t,e,o)}}function u(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function c(t,a,s,l){return new(s=s||Promise)(function(o,e){function n(t){try{i(l.next(t))}catch(t){e(t)}}function r(t){try{i(l.throw(t))}catch(t){e(t)}}function i(t){var e;t.done?o(t.value):((e=t.value)instanceof s?e:new s(function(t){t(e)})).then(n,r)}i((l=l.apply(t,a||[])).next())})}function p(o,n){var r,i,a,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},t={next:e(0),throw:e(1),return:e(2)};return"function"==typeof Symbol&&(t[Symbol.iterator]=function(){return this}),t;function e(e){return function(t){return function(e){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,i&&(a=2&e[0]?i.return:e[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,e[1])).done)return a;switch(i=0,(e=a?[2&e[0],a.value]:e)[0]){case 0:case 1:a=e;break;case 4:return s.label++,{value:e[1],done:!1};case 5:s.label++,i=e[1],e=[0];continue;case 7:e=s.ops.pop(),s.trys.pop();continue;default:if(!(a=0<(a=s.trys).length&&a[a.length-1])&&(6===e[0]||2===e[0])){s=0;continue}if(3===e[0]&&(!a||e[1]>a[0]&&e[1]<a[3])){s.label=e[1];break}if(6===e[0]&&s.label<a[1]){s.label=a[1],a=e;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(e);break}a[2]&&s.ops.pop(),s.trys.pop();continue}e=n.call(o,s)}catch(t){e=[6,t],i=0}finally{r=a=0}if(5&e[0])throw e[1];return{value:e[0]?e[1]:void 0,done:!0}}([e,t])}}}var d=Object.create?function(t,e,o,n){void 0===n&&(n=o),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[o]}})}:function(t,e,o,n){t[n=void 0===n?o:n]=e[o]};function m(t,e){for(var o in t)"default"===o||Object.prototype.hasOwnProperty.call(e,o)||d(e,t,o)}function f(t){var e="function"==typeof Symbol&&Symbol.iterator,o=e&&t[e],n=0;if(o)return o.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function h(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var n,r,i=o.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)a.push(n.value)}catch(t){r={error:t}}finally{try{n&&!n.done&&(o=i.return)&&o.call(i)}finally{if(r)throw r.error}}return a}function b(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(h(arguments[e]));return t}function y(){for(var t=0,e=0,o=arguments.length;e<o;e++)t+=arguments[e].length;for(var n=Array(t),r=0,e=0;e<o;e++)for(var i=arguments[e],a=0,s=i.length;a<s;a++,r++)n[r]=i[a];return n}function v(t){return this instanceof v?(this.v=t,this):new v(t)}function g(t,e,o){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=o.apply(t,e||[]),i=[],a={};return n("next"),n("throw"),n("return"),a[Symbol.asyncIterator]=function(){return this},a;function n(n){r[n]&&(a[n]=function(o){return new Promise(function(t,e){1<i.push([n,o,t,e])||s(n,o)})})}function s(t,e){try{(o=r[t](e)).value instanceof v?Promise.resolve(o.value.v).then(l,u):c(i[0][2],o)}catch(t){c(i[0][3],t)}var o}function l(t){s("next",t)}function u(t){s("throw",t)}function c(t,e){t(e),i.shift(),i.length&&s(i[0][0],i[0][1])}}function x(n){var r,t={};return e("next"),e("throw",function(t){throw t}),e("return"),t[Symbol.iterator]=function(){return this},t;function e(e,o){t[e]=n[e]?function(t){return(r=!r)?{value:v(n[e](t)),done:"return"===e}:o?o(t):t}:o}}function I(a){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,e=a[Symbol.asyncIterator];return e?e.call(a):(a=f(a),t={},o("next"),o("throw"),o("return"),t[Symbol.asyncIterator]=function(){return this},t);function o(i){t[i]=a[i]&&function(r){return new Promise(function(t,e){var o,n;r=a[i](r),o=t,t=e,n=r.done,e=r.value,Promise.resolve(e).then(function(t){o({value:t,done:n})},t)})}}}function C(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}var T=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e};function O(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)"default"!==o&&Object.prototype.hasOwnProperty.call(t,o)&&d(e,t,o);return T(e,t),e}function _(t){return t&&t.__esModule?t:{default:t}}function w(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function S(t,e,o){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,o),o}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(0),o=(r.prototype.createTemplate=function(){return{location:"before",locateInMenu:"auto"}},r.prototype.getCssClass=function(){return"dx-ribbon-item"},r.prototype.shouldCreateTextContentTemplate=function(t){return t&&t.text&&""!=t.text},r.prototype.createTextContentTemplate=function(a,s,l){return function(t,e,o){var n=document.createElement("div"),r=document.createElement("div");r.style.display="inline-block";var i=document.createElement("div");return i.style.display="inline-block",i.textContent=a.text,a.displayAfterEditor||n.appendChild(i),n.appendChild(r),a.displayAfterEditor&&n.appendChild(i),new l(r,s),n}},r);function r(){}e.ToolbarItemTemplateCreator=o;var i,n=(i=o,n.__extends(a,i),a.prototype.getOnFocusOut=function(){return function(t){return t.component.close()}},a.prototype.getOnKeyDown=function(){return function(t){9===t.event.keyCode&&t.event.preventDefault()}},a);function a(){return null!==i&&i.apply(this,arguments)||this}e.ToolbarDropDownItemTemplateCreator=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,r=o(0),o=o(4),r=(n=o.ToolbarItemBase,r.__extends(i,n),i.prototype.setEnabled=function(t){this.widget.option("disabled",!t)},i.prototype.setVisible=function(t){this.widget.option("visible",t)},i.prototype.getOnInitializedHandler=function(){var e=this;return function(t){return e.applyWidget(t)}},i.prototype.applyWidget=function(t){this.widget=t.component},i);function i(t,e){var o=n.call(this)||this;return o.options=t,o.onCommandExecuted=e,o.name=t.name,o}e.ToolbarInteractiveItem=r},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";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(7);e.Ribbon=n.Ribbon;o=o(5);e.DxtThemeCssClasses=o.DxtThemeCssClasses},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(8),n=o(9),r=o(10),a=o(11),s=o(12),l=o(14),u=o(16),c=o(19),p=o(22),d=o(24),m=o(27),o=(Object.defineProperty(f.prototype,"element",{get:function(){return this.options.element},enumerable:!0,configurable:!0}),f.prototype.dispose=function(){this.tabPanel.dispose(),this.toolbars.forEach(function(t){return t.dispose()}),f.hideNode(this.options.element)},f.hideNode=function(t){var e;!t||(e=t.parentNode)&&e.removeChild(t)},f.prototype.shouldApplyLocalization=function(t,e){return!t&&!!e},f.prototype.applyLocalizationId=function(){var e=this;this.options.items.forEach(function(t){e.applyLocalizationIdToRibbonItem(t)}),this.options.contextItemsCategories.forEach(function(t){t.items.forEach(function(t){e.applyLocalizationIdToRibbonItem(t)})})},f.prototype.applyLocalizationIdToRibbonItem=function(t){this.shouldApplyLocalization(t.title,t.localizationId)&&(t.title=i.formatMessage(t.localizationId)),this.applyLocalizationIdToRibbonItems(t.items)},f.prototype.applyLocalizationIdToRibbonItems=function(t){var r=this;t.forEach(function(t){switch(t.type){case"Button":var e=t;r.shouldApplyLocalization(e.text,e.localizationId)&&(e.text=i.formatMessage(e.localizationId));break;case"Menu":var o=t;r.shouldApplyLocalization(o.text,o.localizationId)&&(o.text=i.formatMessage(o.localizationId)),r.applyLocalizationIdToSubMenuItemOptions(o.items);break;case"ButtonGroup":break;case"NumberBox":o=t;r.shouldApplyLocalization(o.text,o.localizationId)&&(o.text=i.formatMessage(o.localizationId));break;case"ColorBox":var n=t;r.shouldApplyLocalization(n.text,n.localizationId)&&(n.text=i.formatMessage(n.localizationId));break;case"SelectBox":n=t;n._localizeDataSourceItems&&n.dataSource.forEach(function(t){var e;t.localizationId&&(e=i.formatMessage(t.localizationId),t.text=t.text?t.text+e:e)})}})},f.prototype.applyLocalizationIdToSubMenuItemOptions=function(t){var e=this;t.forEach(function(t){e.shouldApplyLocalization(t.text,t.localizationId)&&(t.text=i.formatMessage(t.localizationId)),t.items&&e.applyLocalizationIdToSubMenuItemOptions(t.items)})},f.prototype.render=function(){var o=this;this.applyLocalizationId(),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 "+a.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,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))},f.prototype.getContextItemsCategoryVisible=function(t){t=this.getContextItemsIndexes(t);return!(!t||!t.length)&&this.getItemVisible(t[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"),e={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,e),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=[];return t.beginGroup&&o.push(new m.ToolbarSeparatorItem),o.push(this.interactiveToolbarItemFactory(t,e)),o},f.prototype.interactiveToolbarItemFactory=function(e,o){var t,n=this;switch(e.type){case"Button":t=new l.ToolbarButtonItem(e,this.options.onCommandExecuted);break;case"ButtonGroup":t=new s.ToolbarButtonGroupItem(e,this.options.onCommandExecuted);break;case"Menu":t=new c.ToolbarMenuItem(e,this.options.onCommandExecuted,function(t){n.addItemToCache(t.name,t),n.raiseOnOnToolbarItemCreated(e,t,o)});break;case"NumberBox":t=new p.ToolbarNumberBoxItem(e,this.options.onCommandExecuted);break;case"ColorBox":t=new u.ToolbarColorBoxItem(e,this.options.onCommandExecuted,this.options.onOpened,this.options.onClosed);break;default:t=new d.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=o},function(t,e){t.exports=DevExpress.localization},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";Object.defineProperty(e,"__esModule",{value:!0});var n,r=o(0),i=o(2),a=o(13),r=(n=i.ToolbarInteractiveItem,r.__extends(s,n),s.prototype.getBuildTemplateStrategy=function(){return new a.ButtonGroupToolbarItemTemplateCreator({itemOptions:this.options,onInitialized:this.getOnInitializedHandler(),onClick:this.getOnClickHandler()})},s.prototype.setValue=function(t){},s.prototype.getOnClickHandler=function(){var t=this;return this.onCommandExecuted?function(){t.onCommandExecuted({item:t,parameter:null})}:void 0},s.ToggleStateClassName="dx-r-toggle",s.ToggleButtonDataProperty="dx-ri-value",s);function s(){return null!==n&&n.apply(this,arguments)||this}e.ToolbarButtonGroupItem=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,r=o(0),i=o(3),o=o(1),r=(n=o.ToolbarItemTemplateCreator,r.__extends(a,n),a.prototype.createTemplate=function(){var t=n.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&&i.DxtUtils.correctIconName(t.icon),t})}},a);function a(t){var e=n.call(this)||this;return e.options=t,e}e.ButtonGroupToolbarItemTemplateCreator=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,r=o(0),i=o(2),a=o(15),r=(n=i.ToolbarInteractiveItem,r.__extends(s,n),s.prototype.getBuildTemplateStrategy=function(){var e=this;return new a.ButtonToolbarItemTemplateCreator({itemOptions:this.options,onInitialized:function(t){e.applyWidget(t),e.setValue(e.options.isToggleMode&&e.options.selected)},onClick:this.getOnClickHandler()})},s.prototype.setValue=function(t){var e;this.options.isToggleMode&&(((e=this.getElement())[s.ToggleButtonDataProperty]=t)?(e.classList.add(s.ToggleStateClassName),e.classList.add(s.ButtonGroupItemClassName),e.classList.add(s.ItemSelectedClassName)):(e.classList.remove(s.ToggleStateClassName),e.classList.remove(s.ButtonGroupItemClassName),e.classList.remove(s.ItemSelectedClassName)))},s.prototype.getValue=function(){return this.options.isToggleMode?this.getElement()[s.ToggleButtonDataProperty]:null},s.prototype.getElement=function(){return this.widget.element().classList?this.widget.element():this.widget.element()[0]},s.prototype.getOnClickHandler=function(){var t=this;return this.onCommandExecuted?function(){t.setValue(!t.getValue()),t.onCommandExecuted({item:t,parameter:t.getValue()})}:void 0},s.ToggleStateClassName="dx-r-toggle",s.ButtonGroupItemClassName="dx-buttongroup-item",s.ItemSelectedClassName="dx-item-selected",s.ToggleButtonDataProperty="dx-ri-value",s);function s(){return null!==n&&n.apply(this,arguments)||this}e.ToolbarButtonItem=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,r=o(0),i=o(3),o=o(1),r=(n=o.ToolbarItemTemplateCreator,r.__extends(a,n),a.prototype.createTemplate=function(){var t=n.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?i.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=n.call(this)||this;return e.options=t,e}e.ButtonToolbarItemTemplateCreator=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,n=o(0),i=o(2),a=o(17),n=(r=i.ToolbarInteractiveItem,n.__extends(s,r),s.prototype.getBuildTemplateStrategy=function(){return new a.ColorBoxToolbarItemTemplateCreator({itemOptions:this.options,onInitialized:this.getOnInitializedHandler(),onValueChanged:this.getOnValueChangedHandler(),onOpened:this.getOnOpenedHandler(),onClosed:this.getOnClosedHandler()})},s.prototype.setValue=function(t){this.widget.option("value",t)},s.prototype.getOnOpenedHandler=function(){var t=this;return this.onOpened?function(){t.onOpened({item:t})}:void 0},s.prototype.getOnClosedHandler=function(){var t=this;return this.onClosed?function(){t.onClosed({item:t})}:void 0},s.prototype.getOnValueChangedHandler=function(){var e=this;return this.onCommandExecuted?function(t){e.onCommandExecuted({item:e,parameter:t.value})}:void 0},s);function s(t,e,o,n){e=r.call(this,t,e)||this;return e.onOpened=o,e.onClosed=n,e}e.ToolbarColorBoxItem=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,r=o(0),i=o(18),o=o(1),r=(n=o.ToolbarItemTemplateCreator,r.__extends(a,n),a.prototype.createTemplate=function(){var t=n.prototype.createTemplate.call(this);t.widget="dxColorBox";var e=this.getWidgetOptions();return this.shouldCreateTextContentTemplate(this.options.itemOptions.textOptions)?t.template=this.createTextContentTemplate(this.options.itemOptions.textOptions,e,i.default):t.options=e,t},a.prototype.getWidgetOptions=function(){var o=this;return{placeholder:"",focusStateEnabled:!1,acceptCustomValue:!1,mask:" ",stylingMode:"filled",hint:this.options.itemOptions.text,value:this.options.itemOptions.value,width:75,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")})})},onOpened:this.options.onOpened,onClosed:this.options.onClosed,elementAttr:{class:this.getCssClass()}}},a);function a(t){var e=n.call(this)||this;return e.options=t,e}e.ColorBoxToolbarItemTemplateCreator=r},function(t,e){t.exports={default:DevExpress.ui.dxColorBox}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,r=o(0),i=o(2),a=o(20),s=o(21),r=(n=i.ToolbarInteractiveItem,r.__extends(l,n),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 s.ToolbarSubMenuItem(t.name,o);o.onSubMenuItemCreated(e),t.name&&(o.items[t.name]=e),o.createSubMenuItems(t.items)})},l.prototype.getBuildTemplateStrategy=function(){return new a.MenuToolbarItemTemplateCreator({itemOptions:this.options,onInitialized:this.getOnInitializedHandler(),onItemRendered:this.getOnItemRenderedHandler(),onItemClick:this.getOnItemClickHandler()})},l.prototype.setValue=function(t){},l.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},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 o=this;return function(t){var e=t.itemData.name;e&&(e=o.items[e],t=t.itemElement[0]||t.itemElement,e.setElement(t))}},l);function l(t,e,o){e=n.call(this,t,e)||this;return e.onSubMenuItemCreated=o,e.items={},e.createSubMenuItems(t.items),e}e.ToolbarMenuItem=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,r=o(0),i=o(3),o=o(1),r=(n=o.ToolbarItemTemplateCreator,r.__extends(a,n),a.prototype.createTemplate=function(){var t=n.prototype.createTemplate.call(this);return t.widget="dxMenu",t.options=this.getMenuOptions(),t},a.prototype.getMenuOptions=function(){var e=this;return i.DxtUtils.correctItemsIcons(this.options.itemOptions.items),{hideSubmenuOnMouseLeave:!0,focusStateEnabled:!1,selectByClick:!1,hint:this.options.itemOptions.text,dataSource:[{icon:this.options.itemOptions.icon?i.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}})}],onSubmenuShowing:function(e){setTimeout(function(){var t=e.component;!t._visibleSubmenu||600<(t=t._visibleSubmenu._overlay.$content()).height()&&t.find(".dx-submenu").height(400).dxScrollView({})})},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=n.call(this)||this;return e.options=t,e}e.MenuToolbarItemTemplateCreator=r},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";Object.defineProperty(e,"__esModule",{value:!0});var n,r=o(0),i=o(2),a=o(23),r=(n=i.ToolbarInteractiveItem,r.__extends(s,n),s.prototype.getBuildTemplateStrategy=function(){return new a.NumberBoxToolbarItemTemplateCreator({itemOptions:this.options,onInitialized:this.getOnInitializedHandler(),onValueChanged:this.getOnValueChangedHandler()})},s.prototype.setValue=function(t){this.widget.option("value",t)},s.prototype.getOnValueChangedHandler=function(){var e=this;return this.onCommandExecuted?function(t){t.event&&e.onCommandExecuted({item:e,parameter:t.value})}:void 0},s);function s(){return null!==n&&n.apply(this,arguments)||this}e.ToolbarNumberBoxItem=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,r=o(0),o=o(1),r=(n=o.ToolbarItemTemplateCreator,r.__extends(i,n),i.prototype.createTemplate=function(){var t=n.prototype.createTemplate.call(this);return t.widget="dxNumberBox",t.options=this.getWidgetOptions(),t},i.prototype.getWidgetOptions=function(){var t=this.options.itemOptions.format,t=null==t?this.options.itemOptions.text+" #0.#":t;return{placeholder:"",focusStateEnabled:!1,hint:this.options.itemOptions.text,stylingMode:"filled",format:t,value:this.options.itemOptions.value,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()}}},i);function i(t){var e=n.call(this)||this;return e.options=t,e}e.NumberBoxToolbarItemTemplateCreator=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,r=o(0),i=o(2),a=o(25),r=(n=i.ToolbarInteractiveItem,r.__extends(s,n),s.prototype.getBuildTemplateStrategy=function(){return new a.SelectBoxToolbarItemTemplateCreator({itemOptions:this.options,onInitialized:this.getOnInitializedHandler(),onValueChanged:this.getOnValueChangedHandler()})},s.prototype.setValue=function(t){this.widget.option("value",t)},s.prototype.getOnValueChangedHandler=function(){var e=this;return this.onCommandExecuted?function(t){t.event&&e.onCommandExecuted({item:e,parameter:t.value})}:void 0},s);function s(){return null!==n&&n.apply(this,arguments)||this}e.ToolbarSelectBoxItem=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,r=o(0),i=o(26),o=o(1),r=(n=o.ToolbarDropDownItemTemplateCreator,r.__extends(a,n),a.prototype.createTemplate=function(){var t=n.prototype.createTemplate.call(this);t.widget="dxSelectBox";var e=this.getWidgetOptions();return this.shouldCreateTextContentTemplate(this.options.itemOptions.textOptions)?t.template=this.createTextContentTemplate(this.options.itemOptions.textOptions,e,i.default):t.options=e,t},a.prototype.getOnCustomItemCreating=function(t){return t.acceptCustomValue&&t.onCustomItemCreating?t.onCustomItemCreating:function(t){t.customItem||(t.customItem=t.text)}},a.prototype.getWidgetOptions=function(){var t=this.options.itemOptions;return{placeholder:t.placeholder,stylingMode:"filled",searchEnabled:!0,acceptCustomValue:t.acceptCustomValue,dataSource:t.dataSource,width:t.width,displayExpr:t.displayExpr,valueExpr:t.valueExpr,value:t.value,showClearButton:t.showClearButton,onValueChanged:this.options.onValueChanged,onInitialized:this.options.onInitialized,onFocusOut:n.prototype.getOnFocusOut.call(this),onKeyDown:n.prototype.getOnKeyDown.call(this),onCustomItemCreating:this.getOnCustomItemCreating(t),elementAttr:{class:this.getCssClass()}}},a);function a(t){var e=n.call(this)||this;return e.options=t,e}e.SelectBoxToolbarItemTemplateCreator=r},function(t,e){t.exports={default:DevExpress.ui.dxSelectBox}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,r=o(0),i=o(4),a=o(28),r=(n=i.ToolbarItemBase,r.__extends(s,n),s.prepareElement=function(t){t=t.classList?t:t[0];!t||(t=t.querySelector(".dx-toolbar-item-content"))&&t.classList.add(s.SeparatorContainerClassName)},s.prototype.getBuildTemplateStrategy=function(){return new a.SeparatorToolbarItemTemplateCreator},s.SeparatorContainerClassName="dx-r-separator-container",s);function s(){return null!==n&&n.apply(this,arguments)||this}e.ToolbarSeparatorItem=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,r=o(0),i=o(5),o=o(1),r=(n=o.ToolbarItemTemplateCreator,r.__extends(a,n),a.prototype.createTemplate=function(){var t=n.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(i.DxtThemeCssClasses.BorderColor),t},t},a.SeparatorClassName="dx-r-separator",a);function a(){return null!==n&&n.apply(this,arguments)||this}e.SeparatorToolbarItemTemplateCreator=r}]);
62426
+ var 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)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)};function r(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}var i=function(){return(i=Object.assign||function(t){for(var e,o=1,n=arguments.length;o<n;o++)for(var r in e=arguments[o])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};function a(t,e){var o={};for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(o[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,r=Object.getOwnPropertySymbols(t);n<r.length;n++)e.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(t,r[n])&&(o[r[n]]=t[r[n]]);return o}function s(t,e,o,n){var r,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;0<=s;s--)(r=t[s])&&(a=(i<3?r(a):3<i?r(e,o,a):r(e,o))||a);return 3<i&&a&&Object.defineProperty(e,o,a),a}function l(o,n){return function(t,e){n(t,e,o)}}function u(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function c(t,a,s,l){return new(s=s||Promise)(function(o,e){function n(t){try{i(l.next(t))}catch(t){e(t)}}function r(t){try{i(l.throw(t))}catch(t){e(t)}}function i(t){var e;t.done?o(t.value):((e=t.value)instanceof s?e:new s(function(t){t(e)})).then(n,r)}i((l=l.apply(t,a||[])).next())})}function p(o,n){var r,i,a,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},t={next:e(0),throw:e(1),return:e(2)};return"function"==typeof Symbol&&(t[Symbol.iterator]=function(){return this}),t;function e(e){return function(t){return function(e){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,i&&(a=2&e[0]?i.return:e[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,e[1])).done)return a;switch(i=0,(e=a?[2&e[0],a.value]:e)[0]){case 0:case 1:a=e;break;case 4:return s.label++,{value:e[1],done:!1};case 5:s.label++,i=e[1],e=[0];continue;case 7:e=s.ops.pop(),s.trys.pop();continue;default:if(!(a=0<(a=s.trys).length&&a[a.length-1])&&(6===e[0]||2===e[0])){s=0;continue}if(3===e[0]&&(!a||e[1]>a[0]&&e[1]<a[3])){s.label=e[1];break}if(6===e[0]&&s.label<a[1]){s.label=a[1],a=e;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(e);break}a[2]&&s.ops.pop(),s.trys.pop();continue}e=n.call(o,s)}catch(t){e=[6,t],i=0}finally{r=a=0}if(5&e[0])throw e[1];return{value:e[0]?e[1]:void 0,done:!0}}([e,t])}}}var d=Object.create?function(t,e,o,n){void 0===n&&(n=o),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[o]}})}:function(t,e,o,n){t[n=void 0===n?o:n]=e[o]};function m(t,e){for(var o in t)"default"===o||Object.prototype.hasOwnProperty.call(e,o)||d(e,t,o)}function f(t){var e="function"==typeof Symbol&&Symbol.iterator,o=e&&t[e],n=0;if(o)return o.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function h(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var n,r,i=o.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)a.push(n.value)}catch(t){r={error:t}}finally{try{n&&!n.done&&(o=i.return)&&o.call(i)}finally{if(r)throw r.error}}return a}function b(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(h(arguments[e]));return t}function y(){for(var t=0,e=0,o=arguments.length;e<o;e++)t+=arguments[e].length;for(var n=Array(t),r=0,e=0;e<o;e++)for(var i=arguments[e],a=0,s=i.length;a<s;a++,r++)n[r]=i[a];return n}function v(t){return this instanceof v?(this.v=t,this):new v(t)}function g(t,e,o){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=o.apply(t,e||[]),i=[],a={};return n("next"),n("throw"),n("return"),a[Symbol.asyncIterator]=function(){return this},a;function n(n){r[n]&&(a[n]=function(o){return new Promise(function(t,e){1<i.push([n,o,t,e])||s(n,o)})})}function s(t,e){try{(o=r[t](e)).value instanceof v?Promise.resolve(o.value.v).then(l,u):c(i[0][2],o)}catch(t){c(i[0][3],t)}var o}function l(t){s("next",t)}function u(t){s("throw",t)}function c(t,e){t(e),i.shift(),i.length&&s(i[0][0],i[0][1])}}function x(n){var r,t={};return e("next"),e("throw",function(t){throw t}),e("return"),t[Symbol.iterator]=function(){return this},t;function e(e,o){t[e]=n[e]?function(t){return(r=!r)?{value:v(n[e](t)),done:"return"===e}:o?o(t):t}:o}}function I(a){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,e=a[Symbol.asyncIterator];return e?e.call(a):(a=f(a),t={},o("next"),o("throw"),o("return"),t[Symbol.asyncIterator]=function(){return this},t);function o(i){t[i]=a[i]&&function(r){return new Promise(function(t,e){var o,n;r=a[i](r),o=t,t=e,n=r.done,e=r.value,Promise.resolve(e).then(function(t){o({value:t,done:n})},t)})}}}function C(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}var T=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e};function O(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)"default"!==o&&Object.prototype.hasOwnProperty.call(t,o)&&d(e,t,o);return T(e,t),e}function _(t){return t&&t.__esModule?t:{default:t}}function w(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function S(t,e,o){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,o),o}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(0),o=(r.prototype.createTemplate=function(){return{location:"before",locateInMenu:"auto"}},r.prototype.getCssClass=function(){return"dx-ribbon-item"},r.prototype.shouldCreateTextContentTemplate=function(t){return t&&t.text&&""!=t.text},r.prototype.createTextContentTemplate=function(a,s,l){return function(t,e,o){var n=document.createElement("div"),r=document.createElement("div");r.style.display="inline-block";var i=document.createElement("div");return i.style.display="inline-block",i.textContent=a.text,a.displayAfterEditor||n.appendChild(i),n.appendChild(r),a.displayAfterEditor&&n.appendChild(i),new l(r,s),n}},r);function r(){}e.ToolbarItemTemplateCreator=o;var i,n=(i=o,n.__extends(a,i),a.prototype.getOnFocusOut=function(){return function(t){return t.component.close()}},a.prototype.getOnKeyDown=function(){return function(t){9===t.event.keyCode&&t.event.preventDefault()}},a);function a(){return null!==i&&i.apply(this,arguments)||this}e.ToolbarDropDownItemTemplateCreator=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,r=o(0),o=o(4),r=(n=o.ToolbarItemBase,r.__extends(i,n),i.prototype.setEnabled=function(t){this.widget.option("disabled",!t)},i.prototype.setVisible=function(t){this.widget.option("visible",t)},i.prototype.getOnInitializedHandler=function(){var e=this;return function(t){return e.applyWidget(t)}},i.prototype.applyWidget=function(t){this.widget=t.component},i);function i(t,e){var o=n.call(this)||this;return o.options=t,o.onCommandExecuted=e,o.name=t.name,o}e.ToolbarInteractiveItem=r},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";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(7);e.Ribbon=n.Ribbon;o=o(5);e.DxtThemeCssClasses=o.DxtThemeCssClasses},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(8),n=o(9),r=o(10),a=o(11),s=o(12),l=o(14),u=o(16),c=o(19),p=o(23),d=o(25),m=o(28),o=(Object.defineProperty(f.prototype,"element",{get:function(){return this.options.element},enumerable:!0,configurable:!0}),f.prototype.dispose=function(){this.tabPanel.dispose(),this.toolbars.forEach(function(t){return t.dispose()}),f.hideNode(this.options.element)},f.hideNode=function(t){var e;!t||(e=t.parentNode)&&e.removeChild(t)},f.prototype.shouldApplyLocalization=function(t,e){return!t&&!!e},f.prototype.applyLocalizationId=function(){var e=this;this.options.items.forEach(function(t){e.applyLocalizationIdToRibbonItem(t)}),this.options.contextItemsCategories.forEach(function(t){t.items.forEach(function(t){e.applyLocalizationIdToRibbonItem(t)})})},f.prototype.applyLocalizationIdToRibbonItem=function(t){this.shouldApplyLocalization(t.title,t.localizationId)&&(t.title=i.formatMessage(t.localizationId)),this.applyLocalizationIdToRibbonItems(t.items)},f.prototype.applyLocalizationIdToRibbonItems=function(t){var r=this;t.forEach(function(t){switch(t.type){case"Button":var e=t;r.shouldApplyLocalization(e.text,e.localizationId)&&(e.text=i.formatMessage(e.localizationId));break;case"Menu":var o=t;r.shouldApplyLocalization(o.text,o.localizationId)&&(o.text=i.formatMessage(o.localizationId)),r.applyLocalizationIdToSubMenuItemOptions(o.items);break;case"ButtonGroup":break;case"NumberBox":o=t;r.shouldApplyLocalization(o.text,o.localizationId)&&(o.text=i.formatMessage(o.localizationId));break;case"ColorBox":var n=t;r.shouldApplyLocalization(n.text,n.localizationId)&&(n.text=i.formatMessage(n.localizationId));break;case"SelectBox":n=t;n._localizeDataSourceItems&&n.dataSource.forEach(function(t){var e;t.localizationId&&(e=i.formatMessage(t.localizationId),t.text=t.text?t.text+e:e)})}})},f.prototype.applyLocalizationIdToSubMenuItemOptions=function(t){var e=this;t.forEach(function(t){e.shouldApplyLocalization(t.text,t.localizationId)&&(t.text=i.formatMessage(t.localizationId)),t.items&&e.applyLocalizationIdToSubMenuItemOptions(t.items)})},f.prototype.render=function(){var o=this;this.applyLocalizationId(),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 "+a.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,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))},f.prototype.getContextItemsCategoryVisible=function(t){t=this.getContextItemsIndexes(t);return!(!t||!t.length)&&this.getItemVisible(t[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"),e={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,e),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=[];return t.beginGroup&&o.push(new m.ToolbarSeparatorItem),o.push(this.interactiveToolbarItemFactory(t,e)),o},f.prototype.interactiveToolbarItemFactory=function(e,o){var t,n=this;switch(e.type){case"Button":t=new l.ToolbarButtonItem(e,this.options.onCommandExecuted);break;case"ButtonGroup":t=new s.ToolbarButtonGroupItem(e,this.options.onCommandExecuted);break;case"Menu":t=new c.ToolbarMenuItem(e,this.options.onCommandExecuted,function(t){n.addItemToCache(t.name,t),n.raiseOnOnToolbarItemCreated(e,t,o)});break;case"NumberBox":t=new p.ToolbarNumberBoxItem(e,this.options.onCommandExecuted);break;case"ColorBox":t=new u.ToolbarColorBoxItem(e,this.options.onCommandExecuted,this.options.onOpened,this.options.onClosed);break;default:t=new d.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=o},function(t,e){t.exports=DevExpress.localization},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";Object.defineProperty(e,"__esModule",{value:!0});var n,r=o(0),i=o(2),a=o(13),r=(n=i.ToolbarInteractiveItem,r.__extends(s,n),s.prototype.getBuildTemplateStrategy=function(){return new a.ButtonGroupToolbarItemTemplateCreator({itemOptions:this.options,onInitialized:this.getOnInitializedHandler(),onClick:this.getOnClickHandler()})},s.prototype.setValue=function(t){},s.prototype.getOnClickHandler=function(){var t=this;return this.onCommandExecuted?function(){t.onCommandExecuted({item:t,parameter:null})}:void 0},s.ToggleStateClassName="dx-r-toggle",s.ToggleButtonDataProperty="dx-ri-value",s);function s(){return null!==n&&n.apply(this,arguments)||this}e.ToolbarButtonGroupItem=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,r=o(0),i=o(3),o=o(1),r=(n=o.ToolbarItemTemplateCreator,r.__extends(a,n),a.prototype.createTemplate=function(){var t=n.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&&i.DxtUtils.correctIconName(t.icon),t})}},a);function a(t){var e=n.call(this)||this;return e.options=t,e}e.ButtonGroupToolbarItemTemplateCreator=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,r=o(0),i=o(2),a=o(15),r=(n=i.ToolbarInteractiveItem,r.__extends(s,n),s.prototype.getBuildTemplateStrategy=function(){var e=this;return new a.ButtonToolbarItemTemplateCreator({itemOptions:this.options,onInitialized:function(t){e.applyWidget(t),e.setValue(e.options.isToggleMode&&e.options.selected)},onClick:this.getOnClickHandler()})},s.prototype.setValue=function(t){var e;this.options.isToggleMode&&(((e=this.getElement())[s.ToggleButtonDataProperty]=t)?(e.classList.add(s.ToggleStateClassName),e.classList.add(s.ButtonGroupItemClassName),e.classList.add(s.ItemSelectedClassName)):(e.classList.remove(s.ToggleStateClassName),e.classList.remove(s.ButtonGroupItemClassName),e.classList.remove(s.ItemSelectedClassName)))},s.prototype.getValue=function(){return this.options.isToggleMode?this.getElement()[s.ToggleButtonDataProperty]:null},s.prototype.getElement=function(){return this.widget.element().classList?this.widget.element():this.widget.element()[0]},s.prototype.getOnClickHandler=function(){var t=this;return this.onCommandExecuted?function(){t.setValue(!t.getValue()),t.onCommandExecuted({item:t,parameter:t.getValue()})}:void 0},s.ToggleStateClassName="dx-r-toggle",s.ButtonGroupItemClassName="dx-buttongroup-item",s.ItemSelectedClassName="dx-item-selected",s.ToggleButtonDataProperty="dx-ri-value",s);function s(){return null!==n&&n.apply(this,arguments)||this}e.ToolbarButtonItem=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,r=o(0),i=o(3),o=o(1),r=(n=o.ToolbarItemTemplateCreator,r.__extends(a,n),a.prototype.createTemplate=function(){var t=n.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?i.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=n.call(this)||this;return e.options=t,e}e.ButtonToolbarItemTemplateCreator=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,n=o(0),i=o(2),a=o(17),n=(r=i.ToolbarInteractiveItem,n.__extends(s,r),s.prototype.getBuildTemplateStrategy=function(){return new a.ColorBoxToolbarItemTemplateCreator({itemOptions:this.options,onInitialized:this.getOnInitializedHandler(),onValueChanged:this.getOnValueChangedHandler(),onOpened:this.getOnOpenedHandler(),onClosed:this.getOnClosedHandler()})},s.prototype.setValue=function(t){this.widget.option("value",t)},s.prototype.getOnOpenedHandler=function(){var t=this;return this.onOpened?function(){t.onOpened({item:t})}:void 0},s.prototype.getOnClosedHandler=function(){var t=this;return this.onClosed?function(){t.onClosed({item:t})}:void 0},s.prototype.getOnValueChangedHandler=function(){var e=this;return this.onCommandExecuted?function(t){e.onCommandExecuted({item:e,parameter:t.value})}:void 0},s);function s(t,e,o,n){e=r.call(this,t,e)||this;return e.onOpened=o,e.onClosed=n,e}e.ToolbarColorBoxItem=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,r=o(0),i=o(18),o=o(1),r=(n=o.ToolbarItemTemplateCreator,r.__extends(a,n),a.prototype.createTemplate=function(){var t=n.prototype.createTemplate.call(this);t.widget="dxColorBox";var e=this.getWidgetOptions();return this.shouldCreateTextContentTemplate(this.options.itemOptions.textOptions)?t.template=this.createTextContentTemplate(this.options.itemOptions.textOptions,e,i.default):t.options=e,t},a.prototype.getWidgetOptions=function(){var o=this;return{placeholder:"",focusStateEnabled:!1,acceptCustomValue:!1,mask:" ",stylingMode:"filled",hint:this.options.itemOptions.text,value:this.options.itemOptions.value,width:75,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")})})},onOpened:this.options.onOpened,onClosed:this.options.onClosed,elementAttr:{class:this.getCssClass()}}},a);function a(t){var e=n.call(this)||this;return e.options=t,e}e.ColorBoxToolbarItemTemplateCreator=r},function(t,e){t.exports={default:DevExpress.ui.dxColorBox}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,r=o(0),i=o(2),a=o(20),s=o(22),r=(n=i.ToolbarInteractiveItem,r.__extends(l,n),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 s.ToolbarSubMenuItem(t.name,o);o.onSubMenuItemCreated(e),t.name&&(o.items[t.name]=e),o.createSubMenuItems(t.items)})},l.prototype.getBuildTemplateStrategy=function(){return new a.MenuToolbarItemTemplateCreator({itemOptions:this.options,onInitialized:this.getOnInitializedHandler(),onItemRendered:this.getOnItemRenderedHandler(),onItemClick:this.getOnItemClickHandler()})},l.prototype.setValue=function(t){},l.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},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 o=this;return function(t){var e=t.itemData.name;e&&(e=o.items[e],t=t.itemElement[0]||t.itemElement,e.setElement(t))}},l);function l(t,e,o){e=n.call(this,t,e)||this;return e.onSubMenuItemCreated=o,e.items={},e.createSubMenuItems(t.items),e}e.ToolbarMenuItem=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,r=o(0),i=o(21),a=o(3),o=o(1),r=(n=o.ToolbarItemTemplateCreator,r.__extends(s,n),s.prototype.createTemplate=function(){var t=n.prototype.createTemplate.call(this);return t.widget="dxMenu",t.options=this.getMenuOptions(),t},s.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,items:this.options.itemOptions.items.map(function(t){return{beginGroup:t.beginGroup,name:t.name,text:t.text,icon:t.icon,items:t.items}})}],onSubmenuShowing:function(e){setTimeout(function(){var t=e.component;t._visibleSubmenu&&(t=t._visibleSubmenu._overlay.$content(),600<i.getHeight(t)&&i.setHeight(t.find(".dx-submenu"),400),t.find(".dx-submenu").dxScrollView({}))})},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(s.ShowTextInMenuClassName)}}},s.ShowTextInMenuClassName="dx-showTextInMenu",s);function s(t){var e=n.call(this)||this;return e.options=t,e}e.MenuToolbarItemTemplateCreator=r},function(t,e){t.exports=DevExpress},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";Object.defineProperty(e,"__esModule",{value:!0});var n,r=o(0),i=o(2),a=o(24),r=(n=i.ToolbarInteractiveItem,r.__extends(s,n),s.prototype.getBuildTemplateStrategy=function(){return new a.NumberBoxToolbarItemTemplateCreator({itemOptions:this.options,onInitialized:this.getOnInitializedHandler(),onValueChanged:this.getOnValueChangedHandler()})},s.prototype.setValue=function(t){this.widget.option("value",t)},s.prototype.getOnValueChangedHandler=function(){var e=this;return this.onCommandExecuted?function(t){t.event&&e.onCommandExecuted({item:e,parameter:t.value})}:void 0},s);function s(){return null!==n&&n.apply(this,arguments)||this}e.ToolbarNumberBoxItem=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,r=o(0),o=o(1),r=(n=o.ToolbarItemTemplateCreator,r.__extends(i,n),i.prototype.createTemplate=function(){var t=n.prototype.createTemplate.call(this);return t.widget="dxNumberBox",t.options=this.getWidgetOptions(),t},i.prototype.getWidgetOptions=function(){var t=this.options.itemOptions.format,t=null==t?this.options.itemOptions.text+" #0.#":t;return{placeholder:"",focusStateEnabled:!1,hint:this.options.itemOptions.text,stylingMode:"filled",format:t,value:this.options.itemOptions.value,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()}}},i);function i(t){var e=n.call(this)||this;return e.options=t,e}e.NumberBoxToolbarItemTemplateCreator=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,r=o(0),i=o(2),a=o(26),r=(n=i.ToolbarInteractiveItem,r.__extends(s,n),s.prototype.getBuildTemplateStrategy=function(){return new a.SelectBoxToolbarItemTemplateCreator({itemOptions:this.options,onInitialized:this.getOnInitializedHandler(),onValueChanged:this.getOnValueChangedHandler()})},s.prototype.setValue=function(t){this.widget.option("value",t)},s.prototype.getOnValueChangedHandler=function(){var e=this;return this.onCommandExecuted?function(t){t.event&&e.onCommandExecuted({item:e,parameter:t.value})}:void 0},s);function s(){return null!==n&&n.apply(this,arguments)||this}e.ToolbarSelectBoxItem=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,r=o(0),i=o(27),o=o(1),r=(n=o.ToolbarDropDownItemTemplateCreator,r.__extends(a,n),a.prototype.createTemplate=function(){var t=n.prototype.createTemplate.call(this);t.widget="dxSelectBox";var e=this.getWidgetOptions();return this.shouldCreateTextContentTemplate(this.options.itemOptions.textOptions)?t.template=this.createTextContentTemplate(this.options.itemOptions.textOptions,e,i.default):t.options=e,t},a.prototype.getOnCustomItemCreating=function(t){return t.acceptCustomValue&&t.onCustomItemCreating?t.onCustomItemCreating:function(t){t.customItem||(t.customItem=t.text)}},a.prototype.getWidgetOptions=function(){var t=this.options.itemOptions;return{placeholder:t.placeholder,stylingMode:"filled",searchEnabled:!0,acceptCustomValue:t.acceptCustomValue,dataSource:t.dataSource,width:t.width,displayExpr:t.displayExpr,valueExpr:t.valueExpr,value:t.value,showClearButton:t.showClearButton,onValueChanged:this.options.onValueChanged,onInitialized:this.options.onInitialized,onFocusOut:n.prototype.getOnFocusOut.call(this),onKeyDown:n.prototype.getOnKeyDown.call(this),onCustomItemCreating:this.getOnCustomItemCreating(t),elementAttr:{class:this.getCssClass()}}},a);function a(t){var e=n.call(this)||this;return e.options=t,e}e.SelectBoxToolbarItemTemplateCreator=r},function(t,e){t.exports={default:DevExpress.ui.dxSelectBox}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,r=o(0),i=o(4),a=o(29),r=(n=i.ToolbarItemBase,r.__extends(s,n),s.prepareElement=function(t){t=t.classList?t:t[0];!t||(t=t.querySelector(".dx-toolbar-item-content"))&&t.classList.add(s.SeparatorContainerClassName)},s.prototype.getBuildTemplateStrategy=function(){return new a.SeparatorToolbarItemTemplateCreator},s.SeparatorContainerClassName="dx-r-separator-container",s);function s(){return null!==n&&n.apply(this,arguments)||this}e.ToolbarSeparatorItem=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,r=o(0),i=o(5),o=o(1),r=(n=o.ToolbarItemTemplateCreator,r.__extends(a,n),a.prototype.createTemplate=function(){var t=n.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(i.DxtThemeCssClasses.BorderColor),t},t},a.SeparatorClassName="dx-r-separator",a);function a(){return null!==n&&n.apply(this,arguments)||this}e.SeparatorToolbarItemTemplateCreator=r}]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devexpress-aspnetcore-spreadsheet",
3
- "version": "21.1.6",
3
+ "version": "21.2.2-beta",
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": "21.1.6"
14
+ "devextreme": "21.2.2-beta"
15
15
  },
16
16
  "keywords": [
17
17
  "spreadsheet",