devexpress-aspnetcore-spreadsheet 21.2.7 → 22.1.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.
- package/bin/localization-builder.js +1 -1
- package/dist/dx-aspnetcore-spreadsheet.js +130 -112
- package/package.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* DevExpress AspNetCore Spreadsheet (dx-aspnetcore-spreadsheet.js)
|
|
3
|
-
* Version:
|
|
3
|
+
* Version: 22.1.2
|
|
4
4
|
* Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED
|
|
5
5
|
* License: https://www.devexpress.com/Support/EULAs
|
|
6
6
|
*/
|
|
@@ -555,6 +555,10 @@ ASPx.Browser = Browser;
|
|
|
555
555
|
|
|
556
556
|
ASPx.BlankUrl = Browser.IE ? ASPx.SSLSecureBlankUrl : (Browser.Opera ? "about:blank" : "");
|
|
557
557
|
|
|
558
|
+
ASPx.FillDocumentElementDXThemeCssClassName = function(dxThemeName) {
|
|
559
|
+
document.documentElement.className += " dxTheme-" + dxThemeName;
|
|
560
|
+
};
|
|
561
|
+
|
|
558
562
|
var Data = { };
|
|
559
563
|
Data.ArrayInsert = function(array, element, position){
|
|
560
564
|
if(0 <= position && position < array.length){
|
|
@@ -7943,21 +7947,38 @@ var KbdHelper = ASPx.CreateClass(null, {
|
|
|
7943
7947
|
|
|
7944
7948
|
constructor: function(control) {
|
|
7945
7949
|
this.control = control;
|
|
7950
|
+
this.ready = false;
|
|
7951
|
+
this.clickHandler = this.HandleClick.bind(this);
|
|
7952
|
+
this.focusHandler = this.onElementFocus.bind(this);
|
|
7953
|
+
this.blurHandler = this.onBlur.bind(this);
|
|
7946
7954
|
},
|
|
7947
7955
|
|
|
7948
7956
|
Init: function() {
|
|
7949
|
-
|
|
7950
|
-
|
|
7951
|
-
|
|
7952
|
-
var
|
|
7953
|
-
|
|
7954
|
-
|
|
7955
|
-
|
|
7956
|
-
|
|
7957
|
-
|
|
7958
|
-
}
|
|
7959
|
-
|
|
7960
|
-
}
|
|
7957
|
+
if(!this.ready){
|
|
7958
|
+
KbdHelper.GlobalInit();
|
|
7959
|
+
var elements = this.getFocusableElements();
|
|
7960
|
+
for(var i = 0; i < elements.length; i++) {
|
|
7961
|
+
var element = elements[i];
|
|
7962
|
+
element.tabIndex = Math.max(element.tabIndex, 0);
|
|
7963
|
+
ASPx.Evt.AttachEventToElement(element, "click", this.clickHandler);
|
|
7964
|
+
ASPx.Evt.AttachEventToElement(element, "focus", this.focusHandler);
|
|
7965
|
+
ASPx.Evt.AttachEventToElement(element, "blur", this.blurHandler);
|
|
7966
|
+
}
|
|
7967
|
+
this.ready = true;
|
|
7968
|
+
}
|
|
7969
|
+
},
|
|
7970
|
+
Dispose: function() {
|
|
7971
|
+
if(this.ready) {
|
|
7972
|
+
var elements = this.getFocusableElements();
|
|
7973
|
+
for(var i = 0; i < elements.length; i++) {
|
|
7974
|
+
var element = elements[i];
|
|
7975
|
+
element.tabIndex = -1;
|
|
7976
|
+
ASPx.Evt.DetachEventFromElement(element, "click", this.clickHandler);
|
|
7977
|
+
ASPx.Evt.DetachEventFromElement(element, "focus", this.focusHandler);
|
|
7978
|
+
ASPx.Evt.DetachEventFromElement(element, "blur", this.blurHandler);
|
|
7979
|
+
}
|
|
7980
|
+
this.ready = false;
|
|
7981
|
+
}
|
|
7961
7982
|
},
|
|
7962
7983
|
onElementFocus: function(e) {
|
|
7963
7984
|
if(!this.CanFocus(e))
|
|
@@ -44183,7 +44204,7 @@ ASPx.SpreadsheetKeyboardManager = SpreadsheetKeyboardManager;
|
|
|
44183
44204
|
var dropDownCommands = this.getDropDownRibbonCommands(),
|
|
44184
44205
|
len = dropDownCommands.length;
|
|
44185
44206
|
while(len--) {
|
|
44186
|
-
var item =
|
|
44207
|
+
var item = this.spreadsheetControl.getRibbonManager().getRibbonItemById(dropDownCommands[len]);
|
|
44187
44208
|
if(item) {
|
|
44188
44209
|
var comboBox = item.getEditor();
|
|
44189
44210
|
if(comboBox) {
|
|
@@ -44201,7 +44222,7 @@ ASPx.SpreadsheetKeyboardManager = SpreadsheetKeyboardManager;
|
|
|
44201
44222
|
var dropDownCommands = this.getDropDownRibbonCommands(),
|
|
44202
44223
|
len = dropDownCommands.length;
|
|
44203
44224
|
while(len--) {
|
|
44204
|
-
var item =
|
|
44225
|
+
var item = this.spreadsheetControl.getRibbonManager().getRibbonItemById(dropDownCommands[len]);
|
|
44205
44226
|
if(item) {
|
|
44206
44227
|
var comboBox = item.getEditor();
|
|
44207
44228
|
if(comboBox) {
|
|
@@ -46141,34 +46162,35 @@ ASPx.SpreadsheetKeyboardManager = SpreadsheetKeyboardManager;
|
|
|
46141
46162
|
}
|
|
46142
46163
|
function applyCellContextToRibbon() {
|
|
46143
46164
|
var ribbon = getRibbonControl(),
|
|
46165
|
+
ribbonManager = spreadsheetControl.getRibbonManager();
|
|
46144
46166
|
currentCellContext = getCellFormatContext();
|
|
46145
46167
|
|
|
46146
|
-
if(ribbon) {
|
|
46147
|
-
var item =
|
|
46168
|
+
if (ribbon) {
|
|
46169
|
+
var item = ribbonManager.getRibbonItemByName("FormatFontBold");
|
|
46148
46170
|
if(item)
|
|
46149
46171
|
item.SetValue(currentCellContext.isTextBold);
|
|
46150
46172
|
|
|
46151
|
-
item =
|
|
46173
|
+
item = ribbonManager.getRibbonItemByName("FormatFontItalic");
|
|
46152
46174
|
if(item)
|
|
46153
46175
|
item.SetValue(currentCellContext.isTextItalic);
|
|
46154
46176
|
|
|
46155
|
-
item =
|
|
46177
|
+
item = ribbonManager.getRibbonItemByName("FormatFontUnderline");
|
|
46156
46178
|
if(item)
|
|
46157
46179
|
item.SetValue(currentCellContext.isTextUnderlined);
|
|
46158
46180
|
|
|
46159
|
-
item =
|
|
46181
|
+
item = ribbonManager.getRibbonItemByName("FormatFontStrikeout");
|
|
46160
46182
|
if(item)
|
|
46161
46183
|
item.SetValue(currentCellContext.isTextStriked);
|
|
46162
46184
|
|
|
46163
|
-
item =
|
|
46185
|
+
item = ribbonManager.getRibbonItemByName("FormatFontSize");
|
|
46164
46186
|
if(item)
|
|
46165
46187
|
item.SetValue(currentCellContext.fontSize);
|
|
46166
46188
|
|
|
46167
|
-
item =
|
|
46189
|
+
item = ribbonManager.getRibbonItemByName("FormatFontName");
|
|
46168
46190
|
if(item)
|
|
46169
46191
|
item.SetValue(currentCellContext.fontName);
|
|
46170
46192
|
|
|
46171
|
-
item =
|
|
46193
|
+
item = ribbonManager.getRibbonItemByName("FormatWrapText");
|
|
46172
46194
|
if(item)
|
|
46173
46195
|
item.SetValue(currentCellContext.isTextWrapped);
|
|
46174
46196
|
|
|
@@ -46181,9 +46203,10 @@ ASPx.SpreadsheetKeyboardManager = SpreadsheetKeyboardManager;
|
|
|
46181
46203
|
}
|
|
46182
46204
|
}
|
|
46183
46205
|
function applyVerticalAlignContext(ribbon, verticalAlign) {
|
|
46184
|
-
var
|
|
46185
|
-
|
|
46186
|
-
|
|
46206
|
+
var ribbonManager = spreadsheetControl.getRibbonManager(),
|
|
46207
|
+
itemTop = ribbonManager.getRibbonItemByName("FormatAlignmentTop"),
|
|
46208
|
+
itemBottom = ribbonManager.getRibbonItemByName("FormatAlignmentBottom"),
|
|
46209
|
+
itemMiddle = ribbonManager.getRibbonItemByName("FormatAlignmentMiddle");
|
|
46187
46210
|
|
|
46188
46211
|
uncheckButtons(itemTop, itemMiddle, itemBottom);
|
|
46189
46212
|
switch(verticalAlign) {
|
|
@@ -46204,9 +46227,10 @@ ASPx.SpreadsheetKeyboardManager = SpreadsheetKeyboardManager;
|
|
|
46204
46227
|
}
|
|
46205
46228
|
}
|
|
46206
46229
|
function applyHorizontalAlignContext(ribbon, horizontalAlign) {
|
|
46207
|
-
var
|
|
46208
|
-
|
|
46209
|
-
|
|
46230
|
+
var ribbonManager = spreadsheetControl.getRibbonManager(),
|
|
46231
|
+
itemLeft = ribbonManager.getRibbonItemByName("FormatAlignmentLeft"),
|
|
46232
|
+
itemRight = ribbonManager.getRibbonItemByName("FormatAlignmentRight"),
|
|
46233
|
+
itemCenter = ribbonManager.getRibbonItemByName("FormatAlignmentCenter");
|
|
46210
46234
|
|
|
46211
46235
|
uncheckButtons(itemLeft, itemCenter, itemRight);
|
|
46212
46236
|
switch(horizontalAlign) {
|
|
@@ -46225,17 +46249,18 @@ ASPx.SpreadsheetKeyboardManager = SpreadsheetKeyboardManager;
|
|
|
46225
46249
|
}
|
|
46226
46250
|
}
|
|
46227
46251
|
function applyLinkContext(ribbon, isCellContainsLink) {
|
|
46228
|
-
var readOnlyMode =
|
|
46229
|
-
var
|
|
46252
|
+
var readOnlyMode = spreadsheetControl.isReadOnly();
|
|
46253
|
+
var ribbonManager = spreadsheetControl.getRibbonManager(),
|
|
46254
|
+
item = ribbonManager.getRibbonItemByName("FormatClearHyperlinks");
|
|
46230
46255
|
if(item)
|
|
46231
46256
|
item.SetEnabled(isCellContainsLink && !readOnlyMode);
|
|
46232
46257
|
|
|
46233
|
-
item =
|
|
46258
|
+
item = ribbonManager.getRibbonItemByName("FormatRemoveHyperlinks");
|
|
46234
46259
|
if(item)
|
|
46235
46260
|
item.SetEnabled(isCellContainsLink && !readOnlyMode);
|
|
46236
46261
|
|
|
46237
46262
|
var commandId = ASPxClientSpreadsheet.ServerCommands.getCommandIDByName("InsertHyperlink").id;
|
|
46238
|
-
item =
|
|
46263
|
+
item = ribbonManager.getRibbonItemById(commandId);
|
|
46239
46264
|
if(item) {
|
|
46240
46265
|
var pivotTableContext = getCellPivotTableContext();
|
|
46241
46266
|
if(spreadsheetControl.isSheetLocked()) {
|
|
@@ -46247,26 +46272,26 @@ ASPx.SpreadsheetKeyboardManager = SpreadsheetKeyboardManager;
|
|
|
46247
46272
|
}
|
|
46248
46273
|
}
|
|
46249
46274
|
function applyComment() {
|
|
46250
|
-
var
|
|
46251
|
-
cellModelPosition = spreadsheetControl.getActiveCellModelPosition(),
|
|
46275
|
+
var cellModelPosition = spreadsheetControl.getActiveCellModelPosition(),
|
|
46252
46276
|
commentValue = spreadsheetControl.GetCellComment(cellModelPosition.colIndex, cellModelPosition.rowIndex),
|
|
46253
46277
|
isCommentExist = commentValue !== null,
|
|
46254
46278
|
baseCommandId = ASPxClientSpreadsheet.ServerCommands.getCommandIDByName("CommentInsert").id,
|
|
46255
46279
|
commentApiEnabled = getCommandHelper().GetEnabled(baseCommandId);
|
|
46256
46280
|
|
|
46257
|
-
var
|
|
46281
|
+
var ribbonManager = spreadsheetControl.getRibbonManager(),
|
|
46282
|
+
item = ribbonManager.getRibbonItemById(baseCommandId);
|
|
46258
46283
|
if(item)
|
|
46259
46284
|
item.SetEnabled(!isCommentExist && commentApiEnabled);
|
|
46260
46285
|
|
|
46261
|
-
item =
|
|
46286
|
+
item = ribbonManager.getRibbonItemByName("ReviewEditComment");
|
|
46262
46287
|
if(item)
|
|
46263
46288
|
item.SetEnabled(isCommentExist && commentApiEnabled);
|
|
46264
46289
|
|
|
46265
|
-
item =
|
|
46290
|
+
item = ribbonManager.getRibbonItemByName("ReviewDeleteComment");
|
|
46266
46291
|
if(item)
|
|
46267
46292
|
item.SetEnabled(isCommentExist && commentApiEnabled);
|
|
46268
46293
|
|
|
46269
|
-
item =
|
|
46294
|
+
item = ribbonManager.getRibbonItemByName("ReviewShowHideComment");
|
|
46270
46295
|
if(item)
|
|
46271
46296
|
item.SetEnabled(isCommentExist && commentApiEnabled);
|
|
46272
46297
|
}
|
|
@@ -46283,7 +46308,7 @@ ASPx.SpreadsheetKeyboardManager = SpreadsheetKeyboardManager;
|
|
|
46283
46308
|
var ribbon = getRibbonControl();
|
|
46284
46309
|
if(ribbon) {
|
|
46285
46310
|
var cellFontContext = getCellFontContext(),
|
|
46286
|
-
item =
|
|
46311
|
+
item = spreadsheetControl.getRibbonManager().getRibbonItemByName("FormatFontSize");
|
|
46287
46312
|
if(item)
|
|
46288
46313
|
item.SetValue(cellFontContext.fontSize);
|
|
46289
46314
|
}
|
|
@@ -46292,7 +46317,7 @@ ASPx.SpreadsheetKeyboardManager = SpreadsheetKeyboardManager;
|
|
|
46292
46317
|
var ribbon = getRibbonControl();
|
|
46293
46318
|
if(ribbon) {
|
|
46294
46319
|
var cellFontContext = getCellFontContext(),
|
|
46295
|
-
item =
|
|
46320
|
+
item = spreadsheetControl.getRibbonManager().getRibbonItemByName("FormatFontName");
|
|
46296
46321
|
if(item)
|
|
46297
46322
|
item.SetValue(cellFontContext.fontName);
|
|
46298
46323
|
}
|
|
@@ -46443,13 +46468,12 @@ ASPx.SpreadsheetKeyboardManager = SpreadsheetKeyboardManager;
|
|
|
46443
46468
|
|
|
46444
46469
|
this.applyViewMode = function(viewMode) {
|
|
46445
46470
|
if(!this.isRibbonExist()) return;
|
|
46446
|
-
var
|
|
46447
|
-
item = ribbon.GetItemByName(ASPxClientSpreadsheet.ServerCommands.getCommandIDByName("EditingView").id),
|
|
46471
|
+
var item = spreadsheetControl.getRibbonManager().getRibbonItemByName("EditingView"),
|
|
46448
46472
|
isInReadingView = viewMode == ASPxClientSpreadsheetViewMode.Reading;
|
|
46449
46473
|
if(item)
|
|
46450
46474
|
item.SetValue(!isInReadingView);
|
|
46451
46475
|
|
|
46452
|
-
item =
|
|
46476
|
+
item = spreadsheetControl.getRibbonManager().getRibbonItemByName("ReadingView");
|
|
46453
46477
|
if(item)
|
|
46454
46478
|
item.SetValue(isInReadingView);
|
|
46455
46479
|
};
|
|
@@ -46542,39 +46566,33 @@ ASPx.SpreadsheetKeyboardManager = SpreadsheetKeyboardManager;
|
|
|
46542
46566
|
insertPivotTableCommandId = ASPxClientSpreadsheet.ServerCommands.getCommandIDByName("InsertPivotTable").id,
|
|
46543
46567
|
enabled = isCommandAvailable(spreadsheetControl, insertPivotTableCommandId) && !ribbonManager.containingPivotTable;
|
|
46544
46568
|
|
|
46545
|
-
var item =
|
|
46569
|
+
var item = ribbonManager.getRibbonItemById(insertPivotTableCommandId);
|
|
46546
46570
|
if(item)
|
|
46547
46571
|
item.SetEnabled(enabled);
|
|
46548
46572
|
if(ribbonManager.containingPivotTable) {
|
|
46549
46573
|
var pivotTable = spreadsheetControl.getActivePivotTable();
|
|
46550
46574
|
if(pivotTable) {
|
|
46551
|
-
|
|
46552
|
-
item = ribbon.GetItemByName(commandId);
|
|
46575
|
+
item = ribbonManager.getRibbonItemByName("ShowPivotTableFieldHeaders");
|
|
46553
46576
|
if(item)
|
|
46554
46577
|
item.SetValue(pivotTable.ShowRowHeaders);
|
|
46555
46578
|
|
|
46556
|
-
|
|
46557
|
-
item = ribbon.GetItemByName(commandId);
|
|
46579
|
+
item = ribbonManager.getRibbonItemByName("PivotTableToggleRowHeaders");
|
|
46558
46580
|
if(item)
|
|
46559
46581
|
item.SetValue(pivotTable.ShowRowHeaders);
|
|
46560
46582
|
|
|
46561
|
-
|
|
46562
|
-
item = ribbon.GetItemByName(commandId);
|
|
46583
|
+
item = ribbonManager.getRibbonItemByName("PivotTableToggleColumnHeaders");
|
|
46563
46584
|
if(item)
|
|
46564
46585
|
item.SetValue(pivotTable.ShowColumnHeaders);
|
|
46565
46586
|
|
|
46566
|
-
|
|
46567
|
-
item = ribbon.GetItemByName(commandId);
|
|
46587
|
+
item = ribbonManager.getRibbonItemByName("PivotTableToggleBandedRows");
|
|
46568
46588
|
if(item)
|
|
46569
46589
|
item.SetValue(pivotTable.ShowRowStripes);
|
|
46570
46590
|
|
|
46571
|
-
|
|
46572
|
-
item = ribbon.GetItemByName(commandId);
|
|
46591
|
+
item = ribbonManager.getRibbonItemByName("PivotTableToggleBandedColumns");
|
|
46573
46592
|
if(item)
|
|
46574
46593
|
item.SetValue(pivotTable.ShowColumnStripes);
|
|
46575
46594
|
|
|
46576
|
-
|
|
46577
|
-
item = ribbon.GetItemByName(commandId);
|
|
46595
|
+
item = ribbonManager.getRibbonItemByName("FieldListPanelPivotTable");
|
|
46578
46596
|
if(item) {
|
|
46579
46597
|
var currentDialog = spreadsheetControl.getCurrentDialog(),
|
|
46580
46598
|
isDialogOpened = currentDialog && currentDialog.commandId === ASPxClientSpreadsheet.ServerCommands.internalCommands.FieldListPanelPivotTable.id;
|
|
@@ -46589,8 +46607,7 @@ ASPx.SpreadsheetKeyboardManager = SpreadsheetKeyboardManager;
|
|
|
46589
46607
|
if(ribbon) {
|
|
46590
46608
|
var pivotTable = spreadsheetControl.getActivePivotTable();
|
|
46591
46609
|
if(pivotTable) {
|
|
46592
|
-
var
|
|
46593
|
-
item = ribbon.GetItemByName(commandId);
|
|
46610
|
+
var item = spreadsheetControl.getRibbonManager().getRibbonItemByName("FieldListPanelPivotTable");
|
|
46594
46611
|
if(item) {
|
|
46595
46612
|
var currentDialog = spreadsheetControl.getCurrentDialog(),
|
|
46596
46613
|
isDialogOpened = currentDialog && currentDialog.commandId === ASPxClientSpreadsheet.ServerCommands.internalCommands.FieldListPanelPivotTable.id;
|
|
@@ -46767,23 +46784,27 @@ ASPx.SpreadsheetKeyboardManager = SpreadsheetKeyboardManager;
|
|
|
46767
46784
|
}
|
|
46768
46785
|
return true;
|
|
46769
46786
|
}
|
|
46770
|
-
|
|
46771
|
-
|
|
46772
|
-
return ASPxClientSpreadsheet.ServerCommands.getCommandIDByName(commandName).id
|
|
46773
|
-
}
|
|
46787
|
+
|
|
46788
|
+
this.getRibbonItemByName = function(commandName) {
|
|
46789
|
+
return this.getRibbonItemById(ASPxClientSpreadsheet.ServerCommands.getCommandIDByName(commandName).id);
|
|
46790
|
+
};
|
|
46791
|
+
|
|
46792
|
+
this.getRibbonItemById = function(id) {
|
|
46793
|
+
return getRibbonControl().GetItemByName(id.toString());
|
|
46794
|
+
};
|
|
46774
46795
|
|
|
46775
46796
|
function updateRibbonItemEnabledState(ribbon, commandName, enabled) {
|
|
46776
|
-
var item =
|
|
46797
|
+
var item = spreadsheetControl.getRibbonManager().getRibbonItemByName(commandName);
|
|
46777
46798
|
if(item && item.GetEnabled() !== enabled)
|
|
46778
46799
|
item.SetEnabled(enabled);
|
|
46779
46800
|
}
|
|
46780
46801
|
function updateRibbonItemCheckedState(ribbon, commandName, checked) {
|
|
46781
|
-
var item =
|
|
46802
|
+
var item = spreadsheetControl.getRibbonManager().getRibbonItemByName(commandName);
|
|
46782
46803
|
if(item && item.GetValue() !== checked)
|
|
46783
46804
|
item.SetValue(checked);
|
|
46784
46805
|
}
|
|
46785
46806
|
function updateTableNameTextBox(ribbon, tableName) {
|
|
46786
|
-
var item =
|
|
46807
|
+
var item = spreadsheetControl.getRibbonManager().getRibbonItemByName("TableToolsRenameTable");
|
|
46787
46808
|
if(item)
|
|
46788
46809
|
item.SetValue(tableName);
|
|
46789
46810
|
}
|
|
@@ -46838,7 +46859,7 @@ ASPx.SpreadsheetKeyboardManager = SpreadsheetKeyboardManager;
|
|
|
46838
46859
|
var disabledCommands = ASPxClientSpreadsheet.ServerCommands.getEditModeDisabledCommandsIDs();
|
|
46839
46860
|
for(var commandID in disabledCommands) {
|
|
46840
46861
|
if(!disabledCommands.hasOwnProperty(commandID)) continue;
|
|
46841
|
-
var item =
|
|
46862
|
+
var item = spreadsheetControl.getRibbonManager().getRibbonItemById(commandID);
|
|
46842
46863
|
itemEnabled = enabled && isCommandAvailable(spreadsheetControl, commandID);
|
|
46843
46864
|
|
|
46844
46865
|
if(item)
|
|
@@ -46856,80 +46877,80 @@ ASPx.SpreadsheetKeyboardManager = SpreadsheetKeyboardManager;
|
|
|
46856
46877
|
}
|
|
46857
46878
|
}
|
|
46858
46879
|
function applyCalculationMode(calculationMode) {
|
|
46859
|
-
var
|
|
46860
|
-
item =
|
|
46880
|
+
var ribbonManager = spreadsheetControl.getRibbonManager(),
|
|
46881
|
+
item = ribbonManager.getRibbonItemByName("FormulasCalculationModeAutomatic");
|
|
46861
46882
|
if(item)
|
|
46862
46883
|
item.SetValue(calculationMode == ASPxClientSpreadsheet.DocumentModel.CalculationMode.Automatic);
|
|
46863
46884
|
|
|
46864
|
-
item =
|
|
46885
|
+
item = ribbonManager.getRibbonItemByName("FormulasCalculationModeManual");
|
|
46865
46886
|
if(item)
|
|
46866
46887
|
item.SetValue(calculationMode === ASPxClientSpreadsheet.DocumentModel.CalculationMode.Manual);
|
|
46867
46888
|
}
|
|
46868
46889
|
function applyPageOrientation(pageOrientation) {
|
|
46869
|
-
var
|
|
46870
|
-
item =
|
|
46890
|
+
var ribbonManager = spreadsheetControl.getRibbonManager(),
|
|
46891
|
+
item = ribbonManager.getRibbonItemByName("PageSetupOrientationPortrait");
|
|
46871
46892
|
if(item)
|
|
46872
46893
|
item.SetValue(pageOrientation === ASPxClientSpreadsheet.DocumentModel.PageOrientation.Portrait);
|
|
46873
46894
|
|
|
46874
|
-
item =
|
|
46895
|
+
item = ribbonManager.getRibbonItemByName("PageSetupOrientationLandscape");
|
|
46875
46896
|
if(item)
|
|
46876
46897
|
item.SetValue(pageOrientation === ASPxClientSpreadsheet.DocumentModel.PageOrientation.Landscape);
|
|
46877
46898
|
}
|
|
46878
46899
|
function applyPageMargins(pageMargins) {
|
|
46879
|
-
var
|
|
46880
|
-
item =
|
|
46900
|
+
var ribbonManager = spreadsheetControl.getRibbonManager(),
|
|
46901
|
+
item = ribbonManager.getRibbonItemByName("PageSetupMarginsNormal");
|
|
46881
46902
|
if(item)
|
|
46882
46903
|
item.SetValue(pageMargins === ASPxClientSpreadsheet.DocumentModel.PageMargin.Normal);
|
|
46883
46904
|
|
|
46884
|
-
item =
|
|
46905
|
+
item = ribbonManager.getRibbonItemByName("PageSetupMarginsNarrow");
|
|
46885
46906
|
if(item)
|
|
46886
46907
|
item.SetValue(pageMargins === ASPxClientSpreadsheet.DocumentModel.PageMargin.Narrow);
|
|
46887
46908
|
|
|
46888
|
-
item =
|
|
46909
|
+
item = ribbonManager.getRibbonItemByName("PageSetupMarginsWide");
|
|
46889
46910
|
if(item)
|
|
46890
46911
|
item.SetValue(pageMargins === ASPxClientSpreadsheet.DocumentModel.PageMargin.Wide);
|
|
46891
46912
|
}
|
|
46892
46913
|
function applyPaperKind(paperKind) {
|
|
46893
|
-
var
|
|
46914
|
+
var ribbonManager = spreadsheetControl.getRibbonManager(),
|
|
46894
46915
|
baseCommandId = ASPxClientSpreadsheet.ServerCommands.getCommandIDByName("PageSetupPaperKindCommandGroup").id,
|
|
46895
|
-
baseCommnadItem =
|
|
46916
|
+
baseCommnadItem = ribbonManager.getRibbonItemById(baseCommandId);
|
|
46896
46917
|
|
|
46897
46918
|
if(baseCommnadItem) {
|
|
46898
46919
|
resetToggleSubItems(baseCommnadItem);
|
|
46899
46920
|
|
|
46900
46921
|
var itemId = ASPxClientSpreadsheet.ServerCommands.getCommandIDByName("SetPaperKind").id + ";#" + paperKind,
|
|
46901
|
-
item =
|
|
46922
|
+
item = ribbonManager.getRibbonItemById(itemId);
|
|
46902
46923
|
if(item)
|
|
46903
46924
|
item.SetValue(true);
|
|
46904
46925
|
}
|
|
46905
46926
|
}
|
|
46906
46927
|
function applyTabParams() {
|
|
46907
|
-
var
|
|
46908
|
-
documentModel = spreadsheetControl.getDocumentModel();
|
|
46928
|
+
var documentModel = spreadsheetControl.getDocumentModel();
|
|
46909
46929
|
|
|
46910
46930
|
var isHideCommandEnable = documentModel.getVisibleSheets().length > 1;
|
|
46911
46931
|
var isUnhideCommandEnable = documentModel.getHiddenSheets().length > 0;
|
|
46912
46932
|
|
|
46913
|
-
var
|
|
46933
|
+
var ribbonManager = spreadsheetControl.getRibbonManager(),
|
|
46934
|
+
item = ribbonManager.getRibbonItemByName("UnhideSheet");
|
|
46914
46935
|
if(item)
|
|
46915
46936
|
item.SetEnabled(isUnhideCommandEnable);
|
|
46916
46937
|
|
|
46917
|
-
item =
|
|
46938
|
+
item = ribbonManager.getRibbonItemByName("HideSheet");
|
|
46918
46939
|
if(item)
|
|
46919
46940
|
item.SetEnabled(isHideCommandEnable);
|
|
46920
46941
|
|
|
46921
|
-
item =
|
|
46942
|
+
item = ribbonManager.getRibbonItemByName("RemoveSheet");
|
|
46922
46943
|
if(item)
|
|
46923
46944
|
item.SetEnabled(isHideCommandEnable);
|
|
46924
46945
|
}
|
|
46925
46946
|
function applyHistoryNavigation(history) {
|
|
46926
|
-
var ribbon = getRibbonControl();
|
|
46927
46947
|
if(history) {
|
|
46928
|
-
var
|
|
46948
|
+
var ribbonManager = spreadsheetControl.getRibbonManager(),
|
|
46949
|
+
item = ribbonManager.getRibbonItemByName("FileUndo");
|
|
46929
46950
|
if(item)
|
|
46930
46951
|
item.SetEnabled(history.canUndo);
|
|
46931
46952
|
|
|
46932
|
-
item =
|
|
46953
|
+
item = ribbonManager.getRibbonItemByName("FileRedo");
|
|
46933
46954
|
if(item)
|
|
46934
46955
|
item.SetEnabled(history.canRedo);
|
|
46935
46956
|
}
|
|
@@ -46937,12 +46958,12 @@ ASPx.SpreadsheetKeyboardManager = SpreadsheetKeyboardManager;
|
|
|
46937
46958
|
|
|
46938
46959
|
// Fill items
|
|
46939
46960
|
function updateFillGroup(fillDownDisabled, fillRightDisabled) {
|
|
46940
|
-
var
|
|
46941
|
-
|
|
46961
|
+
var ribbonManager = spreadsheetControl.getRibbonManager(),
|
|
46962
|
+
item = ribbonManager.getRibbonItemByName("EditingFillDown");
|
|
46942
46963
|
if(item)
|
|
46943
46964
|
item.SetEnabled(fillDownDisabled);
|
|
46944
46965
|
|
|
46945
|
-
item =
|
|
46966
|
+
item = ribbonManager.getRibbonItemByName("EditingFillRight");
|
|
46946
46967
|
if(item)
|
|
46947
46968
|
item.SetEnabled(fillRightDisabled);
|
|
46948
46969
|
}
|
|
@@ -46972,41 +46993,40 @@ ASPx.SpreadsheetKeyboardManager = SpreadsheetKeyboardManager;
|
|
|
46972
46993
|
applyPageMargins(pageMargins);
|
|
46973
46994
|
}
|
|
46974
46995
|
function updatePageLayoutPrintOptions(printOptions) {
|
|
46975
|
-
var
|
|
46976
|
-
showGridLines = printOptions[ASPxClientSpreadsheet.DocumentModel.PrintOptions.GridLines] === 1,
|
|
46996
|
+
var showGridLines = printOptions[ASPxClientSpreadsheet.DocumentModel.PrintOptions.GridLines] === 1,
|
|
46977
46997
|
showHeading = printOptions[ASPxClientSpreadsheet.DocumentModel.PrintOptions.Headings] === 1,
|
|
46978
|
-
|
|
46998
|
+
ribbonManager = spreadsheetControl.getRibbonManager(),
|
|
46999
|
+
item = ribbonManager.getRibbonItemByName("PageSetupPrintGridlines");
|
|
46979
47000
|
|
|
46980
47001
|
if(item)
|
|
46981
47002
|
item.SetValue(showGridLines);
|
|
46982
47003
|
|
|
46983
|
-
item =
|
|
47004
|
+
item = ribbonManager.getRibbonItemByName("PageSetupPrintHeadings");
|
|
46984
47005
|
if(item)
|
|
46985
47006
|
item.SetValue(showHeading);
|
|
46986
47007
|
}
|
|
46987
47008
|
function updateShowOptions(showGridLines, showHeadings) {
|
|
46988
|
-
var
|
|
46989
|
-
|
|
47009
|
+
var ribbonManager = spreadsheetControl.getRibbonManager(),
|
|
47010
|
+
item = ribbonManager.getRibbonItemByName("ViewShowGridlines");
|
|
46990
47011
|
if(item)
|
|
46991
47012
|
item.SetValue(showGridLines);
|
|
46992
47013
|
|
|
46993
|
-
item =
|
|
47014
|
+
item = ribbonManager.getRibbonItemByName("ViewShowHeadings");
|
|
46994
47015
|
if(item)
|
|
46995
47016
|
item.SetValue(showHeadings);
|
|
46996
47017
|
}
|
|
46997
47018
|
function updateFreezePanes(isFrozen) {
|
|
46998
|
-
var
|
|
46999
|
-
|
|
47019
|
+
var ribbonManager = spreadsheetControl.getRibbonManager(),
|
|
47020
|
+
item = ribbonManager.getRibbonItemByName("FreezePanes");
|
|
47000
47021
|
if(item)
|
|
47001
47022
|
item.SetEnabled(!isFrozen);
|
|
47002
47023
|
|
|
47003
|
-
item =
|
|
47024
|
+
item = ribbonManager.getRibbonItemByName("ViewUnfreezePanes");
|
|
47004
47025
|
if(item)
|
|
47005
47026
|
item.SetEnabled(isFrozen);
|
|
47006
47027
|
}
|
|
47007
47028
|
function updateSaveButtonState(modified) {
|
|
47008
|
-
var
|
|
47009
|
-
item = ribbon.GetItemByName(ASPxClientSpreadsheet.ServerCommands.getCommandIDByName("FileSave").id);
|
|
47029
|
+
var item = spreadsheetControl.getRibbonManager().getRibbonItemByName("FileSave");
|
|
47010
47030
|
if(item) {
|
|
47011
47031
|
var commandName = item.name,
|
|
47012
47032
|
isCommandEnable = modified && spreadsheetControl.getDocumentSettings().isCommandEnabled(commandName);
|
|
@@ -47014,12 +47034,12 @@ ASPx.SpreadsheetKeyboardManager = SpreadsheetKeyboardManager;
|
|
|
47014
47034
|
}
|
|
47015
47035
|
}
|
|
47016
47036
|
function updateActulaBorderStyle(borderLineStyle) {
|
|
47017
|
-
var
|
|
47018
|
-
borderLineStyleItem =
|
|
47037
|
+
var ribbonManager = spreadsheetControl.getRibbonManager(),
|
|
47038
|
+
borderLineStyleItem = ribbonManager.getRibbonItemByName("FormatBorderLineStyle");
|
|
47019
47039
|
if(borderLineStyleItem) {
|
|
47020
47040
|
resetToggleSubItems(borderLineStyleItem);
|
|
47021
47041
|
var itemId = ASPxClientSpreadsheet.ServerCommands.getCommandIDByName("FormatBorderLineStyle").id + ";#" + borderLineStyle,
|
|
47022
|
-
item =
|
|
47042
|
+
item = ribbonManager.getRibbonItemById(itemId);
|
|
47023
47043
|
if(item)
|
|
47024
47044
|
item.SetValue(true);
|
|
47025
47045
|
}
|
|
@@ -47268,8 +47288,7 @@ ASPx.SpreadsheetKeyboardManager = SpreadsheetKeyboardManager;
|
|
|
47268
47288
|
spreadsheetControl.getDocumentSettings().forEach(applyControlOptionToRibbonButton);
|
|
47269
47289
|
}
|
|
47270
47290
|
function applyControlOptionToRibbonButton(command, isVisible, isEnable) {
|
|
47271
|
-
var
|
|
47272
|
-
item = ribbon.GetItemByName(command);
|
|
47291
|
+
var item = spreadsheetControl.getRibbonManager().getRibbonItemById(command);
|
|
47273
47292
|
if(item) {
|
|
47274
47293
|
if(!isEnable)
|
|
47275
47294
|
item.SetEnabled(isEnable);
|
|
@@ -47286,8 +47305,7 @@ ASPx.SpreadsheetKeyboardManager = SpreadsheetKeyboardManager;
|
|
|
47286
47305
|
|
|
47287
47306
|
// Update Client Command State
|
|
47288
47307
|
this.onFullScreenCommandExecuted = function(commandId) {
|
|
47289
|
-
var
|
|
47290
|
-
var item = ribbon.GetItemByName(commandId);
|
|
47308
|
+
var item = spreadsheetControl.getRibbonManager().getRibbonItemById(commandId);
|
|
47291
47309
|
if(item)
|
|
47292
47310
|
item.SetValue(!spreadsheetControl.isInFullScreen());
|
|
47293
47311
|
};
|
|
@@ -62426,7 +62444,7 @@ Object.defineProperty(ASPxClientSpreadsheet, 'Functions', {
|
|
|
62426
62444
|
});
|
|
62427
62445
|
})();
|
|
62428
62446
|
|
|
62429
|
-
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=6)}([function(t,e,o){"use strict";o.r(e),o.d(e,"__extends",function(){return r}),o.d(e,"__assign",function(){return i}),o.d(e,"__rest",function(){return a}),o.d(e,"__decorate",function(){return s}),o.d(e,"__param",function(){return l}),o.d(e,"__metadata",function(){return u}),o.d(e,"__awaiter",function(){return c}),o.d(e,"__generator",function(){return p}),o.d(e,"__createBinding",function(){return d}),o.d(e,"__exportStar",function(){return m}),o.d(e,"__values",function(){return f}),o.d(e,"__read",function(){return h}),o.d(e,"__spread",function(){return b}),o.d(e,"__spreadArrays",function(){return y}),o.d(e,"__await",function(){return g}),o.d(e,"__asyncGenerator",function(){return
|
|
62447
|
+
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=6)}([function(t,e,o){"use strict";o.r(e),o.d(e,"__extends",function(){return r}),o.d(e,"__assign",function(){return i}),o.d(e,"__rest",function(){return a}),o.d(e,"__decorate",function(){return s}),o.d(e,"__param",function(){return l}),o.d(e,"__metadata",function(){return u}),o.d(e,"__awaiter",function(){return c}),o.d(e,"__generator",function(){return p}),o.d(e,"__createBinding",function(){return d}),o.d(e,"__exportStar",function(){return m}),o.d(e,"__values",function(){return f}),o.d(e,"__read",function(){return h}),o.d(e,"__spread",function(){return b}),o.d(e,"__spreadArrays",function(){return y}),o.d(e,"__spreadArray",function(){return v}),o.d(e,"__await",function(){return g}),o.d(e,"__asyncGenerator",function(){return I}),o.d(e,"__asyncDelegator",function(){return x}),o.d(e,"__asyncValues",function(){return C}),o.d(e,"__makeTemplateObject",function(){return T}),o.d(e,"__importStar",function(){return _}),o.d(e,"__importDefault",function(){return w}),o.d(e,"__classPrivateFieldGet",function(){return S}),o.d(e,"__classPrivateFieldSet",function(){return B});
|
|
62430
62448
|
/*! *****************************************************************************
|
|
62431
62449
|
Copyright (c) Microsoft Corporation.
|
|
62432
62450
|
|
|
@@ -62441,4 +62459,4 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
62441
62459
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
62442
62460
|
PERFORMANCE OF THIS SOFTWARE.
|
|
62443
62461
|
***************************************************************************** */
|
|
62444
|
-
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(n,r){var i,a,s,l={label:0,sent:function(){if(1&s[0])throw s[1];return s[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(o){return function(t){var e=[o,t];if(i)throw new TypeError("Generator is already executing.");for(;l;)try{if(i=1,a&&(s=2&e[0]?a.return:e[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,e[1])).done)return s;switch(a=0,(e=s?[2&e[0],s.value]:e)[0]){case 0:case 1:s=e;break;case 4:return l.label++,{value:e[1],done:!1};case 5:l.label++,a=e[1],e=[0];continue;case 7:e=l.ops.pop(),l.trys.pop();continue;default:if(!(s=0<(s=l.trys).length&&s[s.length-1])&&(6===e[0]||2===e[0])){l=0;continue}if(3===e[0]&&(!s||e[1]>s[0]&&e[1]<s[3])){l.label=e[1];break}if(6===e[0]&&l.label<s[1]){l.label=s[1],s=e;break}if(s&&l.label<s[2]){l.label=s[2],l.ops.push(e);break}s[2]&&l.ops.pop(),l.trys.pop();continue}e=r.call(n,l)}catch(t){e=[6,t],a=0}finally{i=s=0}if(5&e[0])throw e[1];return{value:e[0]?e[1]:void 0,done:!0}}}}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 g(t){return this instanceof g?(this.v=t,this):new g(t)}function v(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 g?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:g(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))return e.get(t);throw new TypeError("attempted to get private field on non-instance")}function S(t,e,o){if(e.has(t))return e.set(t,o),o;throw new TypeError("attempted to set private field on non-instance")}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=o(0),n=(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"),i=(r.style.display="inline-block",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=n;i=n,o.__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()}};var i,n=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),o=(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=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(7),n=(e.Ribbon=n.Ribbon,o(5));e.DxtThemeCssClasses=n.DxtThemeCssClasses},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(8),r=o(9),i=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);function f(t){this.options=t,this.toolbars=[],this.toolBarItemsByName={},this.contextItemIndexesByCategoryName={}}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=n.formatMessage(t.localizationId)),this.applyLocalizationIdToRibbonItems(t.items)},f.prototype.applyLocalizationIdToRibbonItems=function(t){var o=this;t.forEach(function(t){switch(t.type){case"Button":var e=t;o.shouldApplyLocalization(e.text,e.localizationId)&&(e.text=n.formatMessage(e.localizationId));break;case"Menu":e=t;o.shouldApplyLocalization(e.text,e.localizationId)&&(e.text=n.formatMessage(e.localizationId)),o.applyLocalizationIdToSubMenuItemOptions(e.items);break;case"ButtonGroup":break;case"NumberBox":e=t;o.shouldApplyLocalization(e.text,e.localizationId)&&(e.text=n.formatMessage(e.localizationId));break;case"ColorBox":e=t;o.shouldApplyLocalization(e.text,e.localizationId)&&(e.text=n.formatMessage(e.localizationId));break;case"SelectBox":e=t;e._localizeDataSourceItems&&e.dataSource.forEach(function(t){var e;t.localizationId&&(e=n.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=n.formatMessage(t.localizationId)),t.items&&e.applyLocalizationIdToSubMenuItemOptions(t.items)})},f.prototype.render=function(){var o=this;this.applyLocalizationId(),this.tabPanel=new r.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"),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 i.default(n,t),n},f.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},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})},e.Ribbon=f},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),o=(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=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,r=o(0),i=o(3),o=o(1),o=(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=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,r=o(0),i=o(2),a=o(15),o=(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=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,r=o(0),i=o(3),o=o(1),o=(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=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,n=o(0),i=o(2),a=o(17),o=(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){t=r.call(this,t,e)||this;return t.onOpened=o,t.onClosed=n,t}e.ToolbarColorBoxItem=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,r=o(0),i=o(18),o=o(1),o=(n=o.ToolbarItemTemplateCreator,r.__extends(a,n),a.prototype.createTemplate=function(){var t=n.prototype.createTemplate.call(this),e=(t.widget="dxColorBox",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=o},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),o=(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=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,r=o(0),i=o(3),o=o(1),o=(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,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<s(t)&&(t=t.find(".dx-submenu"),l(t,400),t.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=o;var s=function(t){return 1===t.length?(null==(t=t[0].getBoundingClientRect())?void 0:t.height)||0:void 0},l=function(t,e){for(var o=0;o<t.length;o++){var n=t[0],r=(null==(r=n.ownerDocument)?void 0:r.defaultView)||window,r=r.getComputedStyle&&r.getComputedStyle(n);if(!r)return;"content-box"===r.boxSizing&&(e-=(parseFloat(r.borderTopWidth)||0)+(parseFloat(r.borderBottomWidth)||0)+((parseFloat(r.paddingTop)||0)+(parseFloat(r.paddingBottom)||0))),n.style.height=e.toString()+"px"}}},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)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},n.SelectedItemClassName="dx-menu-item-selected",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),o=(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=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,r=o(0),o=o(1),o=(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=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,r=o(0),i=o(2),a=o(25),o=(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=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,r=o(0),i=o(26),o=o(1),o=(n=o.ToolbarDropDownItemTemplateCreator,r.__extends(a,n),a.prototype.createTemplate=function(){var t=n.prototype.createTemplate.call(this),e=(t.widget="dxSelectBox",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=o},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),o=(n=i.ToolbarItemBase,r.__extends(s,n),s.prepareElement=function(t){var 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=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,r=o(0),i=o(5),o=o(1),o=(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=o}]);
|
|
62462
|
+
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){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");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(n,r){var i,a,s,l={label:0,sent:function(){if(1&s[0])throw s[1];return s[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(o){return function(t){var e=[o,t];if(i)throw new TypeError("Generator is already executing.");for(;l;)try{if(i=1,a&&(s=2&e[0]?a.return:e[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,e[1])).done)return s;switch(a=0,(e=s?[2&e[0],s.value]:e)[0]){case 0:case 1:s=e;break;case 4:return l.label++,{value:e[1],done:!1};case 5:l.label++,a=e[1],e=[0];continue;case 7:e=l.ops.pop(),l.trys.pop();continue;default:if(!(s=0<(s=l.trys).length&&s[s.length-1])&&(6===e[0]||2===e[0])){l=0;continue}if(3===e[0]&&(!s||e[1]>s[0]&&e[1]<s[3])){l.label=e[1];break}if(6===e[0]&&l.label<s[1]){l.label=s[1],s=e;break}if(s&&l.label<s[2]){l.label=s[2],l.ops.push(e);break}s[2]&&l.ops.pop(),l.trys.pop();continue}e=r.call(n,l)}catch(t){e=[6,t],a=0}finally{i=s=0}if(5&e[0])throw e[1];return{value:e[0]?e[1]:void 0,done:!0}}}}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,e,o){if(o||2===arguments.length)for(var n,r=0,i=e.length;r<i;r++)!n&&r in e||((n=n||Array.prototype.slice.call(e,0,r))[r]=e[r]);return t.concat(n||Array.prototype.slice.call(e))}function g(t){return this instanceof g?(this.v=t,this):new g(t)}function I(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 g?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:g(n[e](t)),done:"return"===e}:o?o(t):t}:o}}function C(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 T(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}var O=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e};function _(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 O(e,t),e}function w(t){return t&&t.__esModule?t:{default:t}}function S(t,e,o,n){if("a"===o&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t===e&&n:e.has(t))return"m"===o?n:"a"===o?n.call(t):n?n.value:e.get(t);throw new TypeError("Cannot read private member from an object whose class did not declare it")}function B(t,e,o,n,r){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t===e&&r:e.has(t))return"a"===n?r.call(t,o):r?r.value=o:e.set(t,o),o;throw new TypeError("Cannot write private member to an object whose class did not declare it")}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ToolbarDropDownItemTemplateCreator=e.ToolbarItemTemplateCreator=void 0;var o=o(0),n=(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"),i=(r.style.display="inline-block",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=n;i=n,o.__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()}};var i,n=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}),e.ToolbarInteractiveItem=void 0;var n,r=o(0),o=o(4),o=(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=o},function(t,e,o){"use strict";function n(){}Object.defineProperty(e,"__esModule",{value:!0}),e.DxtUtils=void 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}),e.ToolbarItemBase=void 0,Object.defineProperty(n.prototype,"toolbarItemTemplateCreator",{get:function(){return this._toolbarItemTemplateCreator||(this._toolbarItemTemplateCreator=this.getBuildTemplateStrategy()),this._toolbarItemTemplateCreator},enumerable:!1,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.DxtThemeCssClasses=void 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}),e.DxtThemeCssClasses=e.Ribbon=void 0;var n=o(7),r=(Object.defineProperty(e,"Ribbon",{enumerable:!0,get:function(){return n.Ribbon}}),o(5));Object.defineProperty(e,"DxtThemeCssClasses",{enumerable:!0,get:function(){return r.DxtThemeCssClasses}})},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Ribbon=void 0;var n=o(8),r=o(9),i=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);function f(t){this.options=t,this.toolbars=[],this.toolBarItemsByName={},this.contextItemIndexesByCategoryName={}}Object.defineProperty(f.prototype,"element",{get:function(){return this.options.element},enumerable:!1,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=n.formatMessage(t.localizationId)),this.applyLocalizationIdToRibbonItems(t.items)},f.prototype.applyLocalizationIdToRibbonItems=function(t){var o=this;t.forEach(function(t){switch(t.type){case"Button":var e=t;o.shouldApplyLocalization(e.text,e.localizationId)&&(e.text=n.formatMessage(e.localizationId));break;case"Menu":e=t;o.shouldApplyLocalization(e.text,e.localizationId)&&(e.text=n.formatMessage(e.localizationId)),o.applyLocalizationIdToSubMenuItemOptions(e.items);break;case"ButtonGroup":break;case"NumberBox":e=t;o.shouldApplyLocalization(e.text,e.localizationId)&&(e.text=n.formatMessage(e.localizationId));break;case"ColorBox":e=t;o.shouldApplyLocalization(e.text,e.localizationId)&&(e.text=n.formatMessage(e.localizationId));break;case"SelectBox":e=t;e._localizeDataSourceItems&&e.dataSource.forEach(function(t){var e;t.localizationId&&(e=n.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=n.formatMessage(t.localizationId)),t.items&&e.applyLocalizationIdToSubMenuItemOptions(t.items)})},f.prototype.render=function(){var o=this;this.applyLocalizationId(),this.tabPanel=new r.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"),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 i.default(n,t),n},f.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},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})},e.Ribbon=f},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}),e.ToolbarButtonGroupItem=void 0;var n,r=o(0),i=o(2),a=o(13),o=(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=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ButtonGroupToolbarItemTemplateCreator=void 0;var n,r=o(0),i=o(3),o=o(1),o=(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=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ToolbarButtonItem=void 0;var n,r=o(0),i=o(2),a=o(15),o=(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=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ButtonToolbarItemTemplateCreator=void 0;var n,r=o(0),i=o(3),o=o(1),o=(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=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ToolbarColorBoxItem=void 0;var r,n=o(0),i=o(2),a=o(17),o=(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){t=r.call(this,t,e)||this;return t.onOpened=o,t.onClosed=n,t}e.ToolbarColorBoxItem=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ColorBoxToolbarItemTemplateCreator=void 0;var n,r=o(0),i=o(18),o=o(1),o=(n=o.ToolbarItemTemplateCreator,r.__extends(a,n),a.prototype.createTemplate=function(){var t=n.prototype.createTemplate.call(this),e=(t.widget="dxColorBox",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=o},function(t,e){t.exports={default:DevExpress.ui.dxColorBox}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ToolbarMenuItem=void 0;var n,r=o(0),i=o(2),a=o(20),s=o(21),o=(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=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MenuToolbarItemTemplateCreator=void 0;var n,r=o(0),i=o(3),o=o(1),o=(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,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<s(t)&&(t=t.find(".dx-submenu"),l(t,400),t.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=o;var s=function(t){return 1===t.length?(null==(t=t[0].getBoundingClientRect())?void 0:t.height)||0:void 0},l=function(t,e){for(var o=0;o<t.length;o++){var n=t[0],r=(null==(r=n.ownerDocument)?void 0:r.defaultView)||window,r=r.getComputedStyle&&r.getComputedStyle(n);if(!r)return;"content-box"===r.boxSizing&&(e-=(parseFloat(r.borderTopWidth)||0)+(parseFloat(r.borderBottomWidth)||0)+((parseFloat(r.paddingTop)||0)+(parseFloat(r.paddingBottom)||0))),n.style.height=e.toString()+"px"}}},function(t,e,o){"use strict";function n(t,e){this.name=t,this.menuItem=e}Object.defineProperty(e,"__esModule",{value:!0}),e.ToolbarSubMenuItem=void 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)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},n.SelectedItemClassName="dx-menu-item-selected",e.ToolbarSubMenuItem=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ToolbarNumberBoxItem=void 0;var n,r=o(0),i=o(2),a=o(23),o=(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=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NumberBoxToolbarItemTemplateCreator=void 0;var n,r=o(0),o=o(1),o=(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=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ToolbarSelectBoxItem=void 0;var n,r=o(0),i=o(2),a=o(25),o=(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=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SelectBoxToolbarItemTemplateCreator=void 0;var n,r=o(0),i=o(26),o=o(1),o=(n=o.ToolbarDropDownItemTemplateCreator,r.__extends(a,n),a.prototype.createTemplate=function(){var t=n.prototype.createTemplate.call(this),e=(t.widget="dxSelectBox",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=o},function(t,e){t.exports={default:DevExpress.ui.dxSelectBox}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ToolbarSeparatorItem=void 0;var n,r=o(0),i=o(4),a=o(28),o=(n=i.ToolbarItemBase,r.__extends(s,n),s.prepareElement=function(t){var 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=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SeparatorToolbarItemTemplateCreator=void 0;var n,r=o(0),i=o(5),o=o(1),o=(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=o}]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "devexpress-aspnetcore-spreadsheet",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "22.1.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": "
|
|
14
|
+
"devextreme": "22.1.2-beta"
|
|
15
15
|
},
|
|
16
16
|
"keywords": [
|
|
17
17
|
"spreadsheet",
|