@syncfusion/ej2-vue-spreadsheet 20.4.53 → 21.1.35

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.
Files changed (134) hide show
  1. package/CHANGELOG.md +1 -56
  2. package/dist/ej2-vue-spreadsheet.umd.min.js +2 -2
  3. package/dist/ej2-vue-spreadsheet.umd.min.js.map +1 -1
  4. package/dist/es6/ej2-vue-spreadsheet.es2015.js +534 -854
  5. package/dist/es6/ej2-vue-spreadsheet.es2015.js.map +1 -1
  6. package/dist/es6/ej2-vue-spreadsheet.es5.js +591 -1024
  7. package/dist/es6/ej2-vue-spreadsheet.es5.js.map +1 -1
  8. package/dist/global/ej2-vue-spreadsheet.min.js +2 -2
  9. package/package.json +9 -9
  10. package/src/spreadsheet/cells.directive.d.ts +2 -12
  11. package/src/spreadsheet/cells.directive.js +22 -71
  12. package/src/spreadsheet/chart.directive.d.ts +2 -12
  13. package/src/spreadsheet/chart.directive.js +22 -71
  14. package/src/spreadsheet/columns.directive.d.ts +2 -12
  15. package/src/spreadsheet/columns.directive.js +22 -71
  16. package/src/spreadsheet/conditionalformats.directive.d.ts +2 -12
  17. package/src/spreadsheet/conditionalformats.directive.js +22 -71
  18. package/src/spreadsheet/definednames.directive.d.ts +2 -12
  19. package/src/spreadsheet/definednames.directive.js +22 -71
  20. package/src/spreadsheet/image.directive.d.ts +2 -12
  21. package/src/spreadsheet/image.directive.js +22 -71
  22. package/src/spreadsheet/ranges.directive.d.ts +2 -12
  23. package/src/spreadsheet/ranges.directive.js +22 -71
  24. package/src/spreadsheet/rows.directive.d.ts +2 -12
  25. package/src/spreadsheet/rows.directive.js +22 -71
  26. package/src/spreadsheet/sheets.directive.d.ts +2 -12
  27. package/src/spreadsheet/sheets.directive.js +22 -71
  28. package/src/spreadsheet/spreadsheet.component.d.ts +3 -110
  29. package/src/spreadsheet/spreadsheet.component.js +347 -376
  30. package/styles/bootstrap-dark.css +71 -73
  31. package/styles/bootstrap-dark.scss +1 -1
  32. package/styles/bootstrap.css +80 -82
  33. package/styles/bootstrap.scss +1 -1
  34. package/styles/bootstrap4.css +69 -71
  35. package/styles/bootstrap4.scss +1 -1
  36. package/styles/bootstrap5-dark.css +89 -91
  37. package/styles/bootstrap5-dark.scss +1 -1
  38. package/styles/bootstrap5.css +89 -91
  39. package/styles/bootstrap5.scss +1 -1
  40. package/styles/fabric-dark.css +70 -72
  41. package/styles/fabric-dark.scss +1 -1
  42. package/styles/fabric.css +74 -76
  43. package/styles/fabric.scss +1 -1
  44. package/styles/fluent-dark.css +82 -84
  45. package/styles/fluent-dark.scss +1 -1
  46. package/styles/fluent.css +82 -84
  47. package/styles/fluent.scss +1 -1
  48. package/styles/highcontrast-light.css +68 -70
  49. package/styles/highcontrast-light.scss +1 -1
  50. package/styles/highcontrast.css +75 -77
  51. package/styles/highcontrast.scss +1 -1
  52. package/styles/material-dark.css +71 -73
  53. package/styles/material-dark.scss +1 -1
  54. package/styles/material.css +76 -78
  55. package/styles/material.scss +1 -1
  56. package/styles/spreadsheet/bootstrap-dark.css +13 -18
  57. package/styles/spreadsheet/bootstrap.css +13 -18
  58. package/styles/spreadsheet/bootstrap4.css +13 -18
  59. package/styles/spreadsheet/bootstrap5-dark.css +18 -23
  60. package/styles/spreadsheet/bootstrap5.css +18 -23
  61. package/styles/spreadsheet/fabric-dark.css +13 -18
  62. package/styles/spreadsheet/fabric.css +13 -18
  63. package/styles/spreadsheet/fluent-dark.css +21 -26
  64. package/styles/spreadsheet/fluent.css +21 -26
  65. package/styles/spreadsheet/highcontrast-light.css +12 -17
  66. package/styles/spreadsheet/highcontrast.css +13 -18
  67. package/styles/spreadsheet/material-dark.css +13 -18
  68. package/styles/spreadsheet/material.css +13 -18
  69. package/styles/spreadsheet/tailwind-dark.css +18 -24
  70. package/styles/spreadsheet/tailwind.css +18 -24
  71. package/styles/spreadsheet-ribbon/bootstrap-dark.css +177 -0
  72. package/styles/spreadsheet-ribbon/bootstrap-dark.scss +1 -0
  73. package/styles/spreadsheet-ribbon/bootstrap.css +207 -0
  74. package/styles/spreadsheet-ribbon/bootstrap.scss +1 -0
  75. package/styles/spreadsheet-ribbon/bootstrap4.css +166 -0
  76. package/styles/spreadsheet-ribbon/bootstrap4.scss +1 -0
  77. package/styles/spreadsheet-ribbon/bootstrap5-dark.css +215 -0
  78. package/styles/spreadsheet-ribbon/bootstrap5-dark.scss +1 -0
  79. package/styles/spreadsheet-ribbon/bootstrap5.css +215 -0
  80. package/styles/spreadsheet-ribbon/bootstrap5.scss +1 -0
  81. package/styles/spreadsheet-ribbon/fabric-dark.css +175 -0
  82. package/styles/spreadsheet-ribbon/fabric-dark.scss +1 -0
  83. package/styles/spreadsheet-ribbon/fabric.css +186 -0
  84. package/styles/spreadsheet-ribbon/fabric.scss +1 -0
  85. package/styles/spreadsheet-ribbon/fluent-dark.css +187 -0
  86. package/styles/spreadsheet-ribbon/fluent-dark.scss +1 -0
  87. package/styles/spreadsheet-ribbon/fluent.css +187 -0
  88. package/styles/spreadsheet-ribbon/fluent.scss +1 -0
  89. package/styles/spreadsheet-ribbon/highcontrast-light.css +172 -0
  90. package/styles/spreadsheet-ribbon/highcontrast-light.scss +1 -0
  91. package/styles/spreadsheet-ribbon/highcontrast.css +190 -0
  92. package/styles/spreadsheet-ribbon/highcontrast.scss +1 -0
  93. package/styles/spreadsheet-ribbon/material-dark.css +178 -0
  94. package/styles/spreadsheet-ribbon/material-dark.scss +1 -0
  95. package/styles/spreadsheet-ribbon/material.css +190 -0
  96. package/styles/spreadsheet-ribbon/material.scss +1 -0
  97. package/styles/spreadsheet-ribbon/tailwind-dark.css +191 -0
  98. package/styles/spreadsheet-ribbon/tailwind-dark.scss +1 -0
  99. package/styles/spreadsheet-ribbon/tailwind.css +191 -0
  100. package/styles/spreadsheet-ribbon/tailwind.scss +1 -0
  101. package/styles/tailwind-dark.css +81 -86
  102. package/styles/tailwind-dark.scss +1 -1
  103. package/styles/tailwind.css +81 -86
  104. package/styles/tailwind.scss +1 -1
  105. package/styles/ribbon/bootstrap-dark.css +0 -174
  106. package/styles/ribbon/bootstrap-dark.scss +0 -1
  107. package/styles/ribbon/bootstrap.css +0 -204
  108. package/styles/ribbon/bootstrap.scss +0 -1
  109. package/styles/ribbon/bootstrap4.css +0 -163
  110. package/styles/ribbon/bootstrap4.scss +0 -1
  111. package/styles/ribbon/bootstrap5-dark.css +0 -212
  112. package/styles/ribbon/bootstrap5-dark.scss +0 -1
  113. package/styles/ribbon/bootstrap5.css +0 -212
  114. package/styles/ribbon/bootstrap5.scss +0 -1
  115. package/styles/ribbon/fabric-dark.css +0 -172
  116. package/styles/ribbon/fabric-dark.scss +0 -1
  117. package/styles/ribbon/fabric.css +0 -183
  118. package/styles/ribbon/fabric.scss +0 -1
  119. package/styles/ribbon/fluent-dark.css +0 -184
  120. package/styles/ribbon/fluent-dark.scss +0 -1
  121. package/styles/ribbon/fluent.css +0 -184
  122. package/styles/ribbon/fluent.scss +0 -1
  123. package/styles/ribbon/highcontrast-light.css +0 -169
  124. package/styles/ribbon/highcontrast-light.scss +0 -1
  125. package/styles/ribbon/highcontrast.css +0 -187
  126. package/styles/ribbon/highcontrast.scss +0 -1
  127. package/styles/ribbon/material-dark.css +0 -175
  128. package/styles/ribbon/material-dark.scss +0 -1
  129. package/styles/ribbon/material.css +0 -187
  130. package/styles/ribbon/material.scss +0 -1
  131. package/styles/ribbon/tailwind-dark.css +0 -190
  132. package/styles/ribbon/tailwind-dark.scss +0 -1
  133. package/styles/ribbon/tailwind.css +0 -190
  134. package/styles/ribbon/tailwind.scss +0 -1
@@ -1,23 +1,4 @@
1
- var __extends = (this && this.__extends) || (function () {
2
- var extendStatics = function (d, b) {
3
- extendStatics = Object.setPrototypeOf ||
4
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
- return extendStatics(d, b);
7
- };
8
- return function (d, b) {
9
- extendStatics(d, b);
10
- function __() { this.constructor = d; }
11
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12
- };
13
- })();
14
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
15
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
16
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
17
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
18
- return c > 3 && r && Object.defineProperty(target, key, r), r;
19
- };
20
- import { ComponentBase, EJComponentDecorator, getProps, gh, isExecute } from '@syncfusion/ej2-vue-base';
1
+ import { ComponentBase, gh, getProps, isExecute, vueDefineComponent } from '@syncfusion/ej2-vue-base';
21
2
  import { isNullOrUndefined, getValue } from '@syncfusion/ej2-base';
22
3
  import { Spreadsheet } from '@syncfusion/ej2-spreadsheet';
23
4
  import { ImagesDirective, ImageDirective, ImagesPlugin, ImagePlugin } from './image.directive';
@@ -29,13 +10,10 @@ import { RangesDirective, RangeDirective, RangesPlugin, RangePlugin } from './ra
29
10
  import { ConditionalFormatsDirective, ConditionalFormatDirective, ConditionalFormatsPlugin, ConditionalFormatPlugin } from './conditionalformats.directive';
30
11
  import { SheetsDirective, SheetDirective, SheetsPlugin, SheetPlugin } from './sheets.directive';
31
12
  import { DefinedNamesDirective, DefinedNameDirective, DefinedNamesPlugin, DefinedNamePlugin } from './definednames.directive';
32
- import { Options } from 'vue-class-component';
33
13
  export var properties = ['isLazyUpdate', 'plugins', 'activeSheetIndex', 'allowAutoFill', 'allowCellFormatting', 'allowChart', 'allowConditionalFormat', 'allowDataValidation', 'allowDelete', 'allowEditing', 'allowFiltering', 'allowFindAndReplace', 'allowFreezePane', 'allowHyperlink', 'allowImage', 'allowInsert', 'allowMerge', 'allowNumberFormatting', 'allowOpen', 'allowResizing', 'allowSave', 'allowScrolling', 'allowSorting', 'allowUndoRedo', 'allowWrap', 'autoFillSettings', 'cellStyle', 'cssClass', 'currencyCode', 'definedNames', 'enableClipboard', 'enableContextMenu', 'enableKeyboardNavigation', 'enableKeyboardShortcut', 'enablePersistence', 'enableRtl', 'height', 'isProtected', 'locale', 'openUrl', 'password', 'saveUrl', 'scrollSettings', 'selectionSettings', 'sheets', 'showAggregate', 'showFormulaBar', 'showRibbon', 'showSheetTabs', 'width', 'actionBegin', 'actionComplete', 'afterHyperlinkClick', 'afterHyperlinkCreate', 'beforeCellFormat', 'beforeCellRender', 'beforeCellSave', 'beforeCellUpdate', 'beforeConditionalFormat', 'beforeDataBound', 'beforeHyperlinkClick', 'beforeHyperlinkCreate', 'beforeOpen', 'beforeSave', 'beforeSelect', 'beforeSort', 'cellEdit', 'cellEditing', 'cellSave', 'contextMenuBeforeClose', 'contextMenuBeforeOpen', 'contextMenuItemSelect', 'created', 'dataBound', 'dataSourceChanged', 'dialogBeforeOpen', 'fileMenuBeforeClose', 'fileMenuBeforeOpen', 'fileMenuItemSelect', 'openComplete', 'openFailure', 'queryCellInfo', 'saveComplete', 'select', 'sortComplete'];
34
14
  export var modelProps = [];
35
15
  export var testProp = getProps({ props: properties });
36
- export var props = testProp[0];
37
- export var watch = testProp[1];
38
- export var emitProbs = Object.keys(watch);
16
+ export var props = testProp[0], watch = testProp[1], emitProbs = Object.keys(watch);
39
17
  emitProbs.push('modelchanged', 'update:modelValue');
40
18
  for (var _i = 0, modelProps_1 = modelProps; _i < modelProps_1.length; _i++) {
41
19
  var props_1 = modelProps_1[_i];
@@ -47,366 +25,359 @@ for (var _i = 0, modelProps_1 = modelProps; _i < modelProps_1.length; _i++) {
47
25
  * <ejs-spreadsheet></ejs-spreadsheet>
48
26
  * ```
49
27
  */
50
- var SpreadsheetComponent = /** @class */ (function (_super) {
51
- __extends(SpreadsheetComponent, _super);
52
- function SpreadsheetComponent() {
53
- var _this = _super.call(this, arguments) || this;
54
- _this.propKeys = properties;
55
- _this.models = modelProps;
56
- _this.hasChildDirective = true;
57
- _this.hasInjectedModules = true;
58
- _this.tagMapper = { "e-sheets": { "e-sheet": { "e-rows": { "e-row": { "e-cells": { "e-cell": { "e-images": "e-image", "e-charts": "e-chart" } } } }, "e-columns": "e-column", "e-ranges": "e-range", "e-conditionalformats": "e-conditionalformat" } }, "e-definednames": "e-definedname" };
59
- _this.tagNameMapper = { "e-images": "e-image", "e-charts": "e-chart", "e-conditionalformats": "e-conditionalFormats", "e-definednames": "e-definedNames" };
60
- _this.isVue3 = !isExecute;
61
- _this.ej2Instances = new Spreadsheet({});
62
- _this.bindProperties();
63
- _this.ej2Instances._setProperties = _this.ej2Instances.setProperties;
64
- _this.ej2Instances.setProperties = _this.setProperties;
65
- _this.ej2Instances.clearTemplate = _this.clearTemplate;
66
- _this.updated = _this.updated;
67
- return _this;
68
- }
69
- SpreadsheetComponent.prototype.clearTemplate = function (templateNames) {
70
- if (!templateNames) {
71
- templateNames = Object.keys(this.templateCollection || {});
28
+ export var SpreadsheetComponent = vueDefineComponent({
29
+ name: 'SpreadsheetComponent',
30
+ mixins: [ComponentBase],
31
+ props: props,
32
+ watch: watch,
33
+ emits: emitProbs,
34
+ provide: function () { return { custom: this.custom }; },
35
+ data: function () {
36
+ return {
37
+ ej2Instances: new Spreadsheet({}),
38
+ propKeys: properties,
39
+ models: modelProps,
40
+ hasChildDirective: true,
41
+ hasInjectedModules: true,
42
+ tagMapper: { "e-sheets": { "e-sheet": { "e-rows": { "e-row": { "e-cells": { "e-cell": { "e-images": "e-image", "e-charts": "e-chart" } } } }, "e-columns": "e-column", "e-ranges": "e-range", "e-conditionalformats": "e-conditionalformat" } }, "e-definednames": "e-definedname" },
43
+ tagNameMapper: { "e-images": "e-image", "e-charts": "e-chart", "e-conditionalformats": "e-conditionalFormats", "e-definednames": "e-definedNames" },
44
+ isVue3: !isExecute,
45
+ templateCollection: {},
46
+ };
47
+ },
48
+ created: function () {
49
+ this.bindProperties();
50
+ this.ej2Instances._setProperties = this.ej2Instances.setProperties;
51
+ this.ej2Instances.setProperties = this.setProperties;
52
+ this.ej2Instances.clearTemplate = this.clearTemplate;
53
+ this.updated = this.updated;
54
+ },
55
+ render: function (createElement) {
56
+ var h = !isExecute ? gh : createElement;
57
+ var slots = null;
58
+ if (!isNullOrUndefined(this.$slots.default)) {
59
+ slots = !isExecute ? this.$slots.default() : this.$slots.default;
72
60
  }
73
- if (templateNames.length && this.templateCollection) {
74
- for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {
75
- var tempName = templateNames_1[_i];
76
- var elementCollection = this.templateCollection[tempName];
77
- if (elementCollection && elementCollection.length) {
78
- for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {
79
- var ele = elementCollection_1[_a];
80
- var destroy = getValue('__vue__.$destroy', ele);
81
- if (destroy) {
82
- ele.__vue__.$destroy();
83
- }
84
- if (ele.innerHTML) {
85
- ele.innerHTML = '';
61
+ return h('div', slots);
62
+ },
63
+ methods: {
64
+ clearTemplate: function (templateNames) {
65
+ if (!templateNames) {
66
+ templateNames = Object.keys(this.templateCollection || {});
67
+ }
68
+ if (templateNames.length && this.templateCollection) {
69
+ for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {
70
+ var tempName = templateNames_1[_i];
71
+ var elementCollection = this.templateCollection[tempName];
72
+ if (elementCollection && elementCollection.length) {
73
+ for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {
74
+ var ele = elementCollection_1[_a];
75
+ var destroy = getValue('__vue__.$destroy', ele);
76
+ if (destroy) {
77
+ ele.__vue__.$destroy();
78
+ }
79
+ if (ele.innerHTML) {
80
+ ele.innerHTML = '';
81
+ }
86
82
  }
83
+ delete this.templateCollection[tempName];
87
84
  }
88
- delete this.templateCollection[tempName];
89
85
  }
90
86
  }
91
- }
92
- };
93
- SpreadsheetComponent.prototype.setProperties = function (prop, muteOnChange) {
94
- var _this = this;
95
- if (this.isVue3) {
96
- this.models = !this.models ? this.ej2Instances.referModels : this.models;
97
- }
98
- if (this.ej2Instances && this.ej2Instances._setProperties) {
99
- this.ej2Instances._setProperties(prop, muteOnChange);
100
- }
101
- if (prop && this.models && this.models.length) {
102
- Object.keys(prop).map(function (key) {
103
- _this.models.map(function (model) {
104
- if ((key === model) && !(/datasource/i.test(key))) {
105
- if (_this.isVue3) {
106
- _this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
107
- }
108
- else {
109
- _this.$emit('update:' + key, prop[key]);
110
- _this.$emit('modelchanged', prop[key]);
87
+ },
88
+ setProperties: function (prop, muteOnChange) {
89
+ var _this = this;
90
+ if (this.isVue3) {
91
+ this.models = !this.models ? this.ej2Instances.referModels : this.models;
92
+ }
93
+ if (this.ej2Instances && this.ej2Instances._setProperties) {
94
+ this.ej2Instances._setProperties(prop, muteOnChange);
95
+ }
96
+ if (prop && this.models && this.models.length) {
97
+ Object.keys(prop).map(function (key) {
98
+ _this.models.map(function (model) {
99
+ if ((key === model) && !(/datasource/i.test(key))) {
100
+ if (_this.isVue3) {
101
+ _this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
102
+ }
103
+ else {
104
+ _this.$emit('update:' + key, prop[key]);
105
+ _this.$emit('modelchanged', prop[key]);
106
+ }
111
107
  }
112
- }
108
+ });
113
109
  });
114
- });
115
- }
116
- };
117
- SpreadsheetComponent.prototype.render = function (createElement) {
118
- var h = !isExecute ? gh : createElement;
119
- var slots = null;
120
- if (!isNullOrUndefined(this.$slots.default)) {
121
- slots = !isExecute ? this.$slots.default() : this.$slots.default;
122
- }
123
- return h('div', slots);
124
- };
125
- SpreadsheetComponent.prototype.custom = function () {
126
- this.updated();
127
- };
128
- SpreadsheetComponent.prototype.Unfreeze = function (sheet) {
129
- return this.ej2Instances.Unfreeze(sheet);
130
- };
131
- SpreadsheetComponent.prototype.addContextMenuItems = function (items, text, insertAfter, isUniqueId) {
132
- return this.ej2Instances.addContextMenuItems(items, text, insertAfter, isUniqueId);
133
- };
134
- SpreadsheetComponent.prototype.addCustomFunction = function (functionHandler, functionName, formulaDescription) {
135
- return this.ej2Instances.addCustomFunction(functionHandler, functionName, formulaDescription);
136
- };
137
- SpreadsheetComponent.prototype.addDataValidation = function (rules, range) {
138
- return this.ej2Instances.addDataValidation(rules, range);
139
- };
140
- SpreadsheetComponent.prototype.addDefinedName = function (definedName) {
141
- return this.ej2Instances.addDefinedName(definedName);
142
- };
143
- SpreadsheetComponent.prototype.addFileMenuItems = function (items, text, insertAfter, isUniqueId) {
144
- return this.ej2Instances.addFileMenuItems(items, text, insertAfter, isUniqueId);
145
- };
146
- SpreadsheetComponent.prototype.addHyperlink = function (hyperlink, address, displayText) {
147
- return this.ej2Instances.addHyperlink(hyperlink, address, displayText);
148
- };
149
- SpreadsheetComponent.prototype.addInvalidHighlight = function (range) {
150
- return this.ej2Instances.addInvalidHighlight(range);
151
- };
152
- SpreadsheetComponent.prototype.addRibbonTabs = function (items, insertBefore) {
153
- return this.ej2Instances.addRibbonTabs(items, insertBefore);
154
- };
155
- SpreadsheetComponent.prototype.addToolbarItems = function (tab, items, index) {
156
- return this.ej2Instances.addToolbarItems(tab, items, index);
157
- };
158
- SpreadsheetComponent.prototype.applyFilter = function (predicates, range) {
159
- return this.ej2Instances.applyFilter(predicates, range);
160
- };
161
- SpreadsheetComponent.prototype.autoFill = function (fillRange, dataRange, direction, fillType) {
162
- return this.ej2Instances.autoFill(fillRange, dataRange, direction, fillType);
163
- };
164
- SpreadsheetComponent.prototype.autoFit = function (range) {
165
- return this.ej2Instances.autoFit(range);
166
- };
167
- SpreadsheetComponent.prototype.cellFormat = function (style, range) {
168
- return this.ej2Instances.cellFormat(style, range);
169
- };
170
- SpreadsheetComponent.prototype.clear = function (options) {
171
- return this.ej2Instances.clear(options);
172
- };
173
- SpreadsheetComponent.prototype.clearConditionalFormat = function (range) {
174
- return this.ej2Instances.clearConditionalFormat(range);
175
- };
176
- SpreadsheetComponent.prototype.clearFilter = function (field) {
177
- return this.ej2Instances.clearFilter(field);
178
- };
179
- SpreadsheetComponent.prototype.closeEdit = function () {
180
- return this.ej2Instances.closeEdit();
181
- };
182
- SpreadsheetComponent.prototype.computeExpression = function (formula) {
183
- return this.ej2Instances.computeExpression(formula);
184
- };
185
- SpreadsheetComponent.prototype.conditionalFormat = function (conditionalFormat) {
186
- return this.ej2Instances.conditionalFormat(conditionalFormat);
187
- };
188
- SpreadsheetComponent.prototype.copy = function (address) {
189
- return this.ej2Instances.copy(address);
190
- };
191
- SpreadsheetComponent.prototype.cut = function (address) {
192
- return this.ej2Instances.cut(address);
193
- };
194
- SpreadsheetComponent.prototype.delete = function (startIndex, endIndex, model, sheet) {
195
- return this.ej2Instances.delete(startIndex, endIndex, model, sheet);
196
- };
197
- SpreadsheetComponent.prototype.deleteChart = function (id) {
198
- return this.ej2Instances.deleteChart(id);
199
- };
200
- SpreadsheetComponent.prototype.deleteImage = function (id, range) {
201
- return this.ej2Instances.deleteImage(id, range);
202
- };
203
- SpreadsheetComponent.prototype.duplicateSheet = function (sheetIndex) {
204
- return this.ej2Instances.duplicateSheet(sheetIndex);
205
- };
206
- SpreadsheetComponent.prototype.enableContextMenuItems = function (items, enable, isUniqueId) {
207
- return this.ej2Instances.enableContextMenuItems(items, enable, isUniqueId);
208
- };
209
- SpreadsheetComponent.prototype.enableFileMenuItems = function (items, enable, isUniqueId) {
210
- return this.ej2Instances.enableFileMenuItems(items, enable, isUniqueId);
211
- };
212
- SpreadsheetComponent.prototype.enableRibbonTabs = function (tabs, enable) {
213
- return this.ej2Instances.enableRibbonTabs(tabs, enable);
214
- };
215
- SpreadsheetComponent.prototype.enableToolbarItems = function (tab, items, enable) {
216
- return this.ej2Instances.enableToolbarItems(tab, items, enable);
217
- };
218
- SpreadsheetComponent.prototype.endEdit = function () {
219
- return this.ej2Instances.endEdit();
220
- };
221
- SpreadsheetComponent.prototype.find = function (args) {
222
- return this.ej2Instances.find(args);
223
- };
224
- SpreadsheetComponent.prototype.findAll = function (value, mode, isCSen, isEMatch, sheetIndex) {
225
- return this.ej2Instances.findAll(value, mode, isCSen, isEMatch, sheetIndex);
226
- };
227
- SpreadsheetComponent.prototype.freezePanes = function (row, column, sheet) {
228
- return this.ej2Instances.freezePanes(row, column, sheet);
229
- };
230
- SpreadsheetComponent.prototype.getData = function (address) {
231
- return this.ej2Instances.getData(address);
232
- };
233
- SpreadsheetComponent.prototype.getDisplayText = function (cell) {
234
- return this.ej2Instances.getDisplayText(cell);
235
- };
236
- SpreadsheetComponent.prototype.getRowData = function (index, sheetIndex) {
237
- return this.ej2Instances.getRowData(index, sheetIndex);
238
- };
239
- SpreadsheetComponent.prototype.getSelectAllContent = function () {
240
- return this.ej2Instances.getSelectAllContent();
241
- };
242
- SpreadsheetComponent.prototype.goTo = function (address) {
243
- return this.ej2Instances.goTo(address);
244
- };
245
- SpreadsheetComponent.prototype.hideColumn = function (startIndex, endIndex, hide) {
246
- return this.ej2Instances.hideColumn(startIndex, endIndex, hide);
247
- };
248
- SpreadsheetComponent.prototype.hideFileMenuItems = function (items, hide, isUniqueId) {
249
- return this.ej2Instances.hideFileMenuItems(items, hide, isUniqueId);
250
- };
251
- SpreadsheetComponent.prototype.hideRibbonTabs = function (tabs, hide) {
252
- return this.ej2Instances.hideRibbonTabs(tabs, hide);
253
- };
254
- SpreadsheetComponent.prototype.hideRow = function (startIndex, endIndex, hide) {
255
- return this.ej2Instances.hideRow(startIndex, endIndex, hide);
256
- };
257
- SpreadsheetComponent.prototype.hideSpinner = function () {
258
- return this.ej2Instances.hideSpinner();
259
- };
260
- SpreadsheetComponent.prototype.hideToolbarItems = function (tab, indexes, hide) {
261
- return this.ej2Instances.hideToolbarItems(tab, indexes, hide);
262
- };
263
- SpreadsheetComponent.prototype.insertChart = function (chart) {
264
- return this.ej2Instances.insertChart(chart);
265
- };
266
- SpreadsheetComponent.prototype.insertColumn = function (startColumn, endColumn, sheet) {
267
- return this.ej2Instances.insertColumn(startColumn, endColumn, sheet);
268
- };
269
- SpreadsheetComponent.prototype.insertImage = function (images, range) {
270
- return this.ej2Instances.insertImage(images, range);
271
- };
272
- SpreadsheetComponent.prototype.insertRow = function (startRow, endRow, sheet) {
273
- return this.ej2Instances.insertRow(startRow, endRow, sheet);
274
- };
275
- SpreadsheetComponent.prototype.insertSheet = function (startSheet, endSheet) {
276
- return this.ej2Instances.insertSheet(startSheet, endSheet);
277
- };
278
- SpreadsheetComponent.prototype.isValidCell = function (cellAddress) {
279
- return this.ej2Instances.isValidCell(cellAddress);
280
- };
281
- SpreadsheetComponent.prototype.lockCells = function (range, isLocked) {
282
- return this.ej2Instances.lockCells(range, isLocked);
283
- };
284
- SpreadsheetComponent.prototype.merge = function (range, type) {
285
- return this.ej2Instances.merge(range, type);
286
- };
287
- SpreadsheetComponent.prototype.moveSheet = function (position, sheetIndexes) {
288
- return this.ej2Instances.moveSheet(position, sheetIndexes);
289
- };
290
- SpreadsheetComponent.prototype.numberFormat = function (format, range) {
291
- return this.ej2Instances.numberFormat(format, range);
292
- };
293
- SpreadsheetComponent.prototype.open = function (options) {
294
- return this.ej2Instances.open(options);
295
- };
296
- SpreadsheetComponent.prototype.openFromJson = function (options) {
297
- return this.ej2Instances.openFromJson(options);
298
- };
299
- SpreadsheetComponent.prototype.paste = function (address, type) {
300
- return this.ej2Instances.paste(address, type);
301
- };
302
- SpreadsheetComponent.prototype.protectSheet = function (sheet, protectSettings, password) {
303
- return this.ej2Instances.protectSheet(sheet, protectSettings, password);
304
- };
305
- SpreadsheetComponent.prototype.redo = function () {
306
- return this.ej2Instances.redo();
307
- };
308
- SpreadsheetComponent.prototype.refresh = function (isNew) {
309
- return this.ej2Instances.refresh(isNew);
310
- };
311
- SpreadsheetComponent.prototype.removeContextMenuItems = function (items, isUniqueId) {
312
- return this.ej2Instances.removeContextMenuItems(items, isUniqueId);
313
- };
314
- SpreadsheetComponent.prototype.removeDataValidation = function (range) {
315
- return this.ej2Instances.removeDataValidation(range);
316
- };
317
- SpreadsheetComponent.prototype.removeDefinedName = function (definedName, scope) {
318
- return this.ej2Instances.removeDefinedName(definedName, scope);
319
- };
320
- SpreadsheetComponent.prototype.removeHyperlink = function (range) {
321
- return this.ej2Instances.removeHyperlink(range);
322
- };
323
- SpreadsheetComponent.prototype.removeInvalidHighlight = function (range) {
324
- return this.ej2Instances.removeInvalidHighlight(range);
325
- };
326
- SpreadsheetComponent.prototype.replace = function (args) {
327
- return this.ej2Instances.replace(args);
328
- };
329
- SpreadsheetComponent.prototype.resize = function () {
330
- return this.ej2Instances.resize();
331
- };
332
- SpreadsheetComponent.prototype.save = function (saveOptions) {
333
- return this.ej2Instances.save(saveOptions);
334
- };
335
- SpreadsheetComponent.prototype.saveAsJson = function () {
336
- return this.ej2Instances.saveAsJson();
337
- };
338
- SpreadsheetComponent.prototype.selectRange = function (address) {
339
- return this.ej2Instances.selectRange(address);
340
- };
341
- SpreadsheetComponent.prototype.setBorder = function (style, range, type) {
342
- return this.ej2Instances.setBorder(style, range, type);
343
- };
344
- SpreadsheetComponent.prototype.setColWidth = function (width, colIndex, sheetIndex) {
345
- return this.ej2Instances.setColWidth(width, colIndex, sheetIndex);
346
- };
347
- SpreadsheetComponent.prototype.setColumnsWidth = function (width, ranges) {
348
- return this.ej2Instances.setColumnsWidth(width, ranges);
349
- };
350
- SpreadsheetComponent.prototype.setRowHeight = function (height, rowIndex, sheetIndex, edited) {
351
- return this.ej2Instances.setRowHeight(height, rowIndex, sheetIndex, edited);
352
- };
353
- SpreadsheetComponent.prototype.setRowsHeight = function (height, ranges) {
354
- return this.ej2Instances.setRowsHeight(height, ranges);
355
- };
356
- SpreadsheetComponent.prototype.showSpinner = function () {
357
- return this.ej2Instances.showSpinner();
358
- };
359
- SpreadsheetComponent.prototype.sort = function (sortOptions, range) {
360
- return this.ej2Instances.sort(sortOptions, range);
361
- };
362
- SpreadsheetComponent.prototype.startEdit = function () {
363
- return this.ej2Instances.startEdit();
364
- };
365
- SpreadsheetComponent.prototype.unMerge = function (range) {
366
- return this.ej2Instances.unMerge(range);
367
- };
368
- SpreadsheetComponent.prototype.undo = function () {
369
- return this.ej2Instances.undo();
370
- };
371
- SpreadsheetComponent.prototype.unfreezePanes = function (sheet) {
372
- return this.ej2Instances.unfreezePanes(sheet);
373
- };
374
- SpreadsheetComponent.prototype.unprotectSheet = function (sheet) {
375
- return this.ej2Instances.unprotectSheet(sheet);
376
- };
377
- SpreadsheetComponent.prototype.updateAction = function (options) {
378
- return this.ej2Instances.updateAction(options);
379
- };
380
- SpreadsheetComponent.prototype.updateCell = function (cell, address) {
381
- return this.ej2Instances.updateCell(cell, address);
382
- };
383
- SpreadsheetComponent.prototype.updateRange = function (range, sheetIdx) {
384
- return this.ej2Instances.updateRange(range, sheetIdx);
385
- };
386
- SpreadsheetComponent.prototype.updateUndoRedoCollection = function (args) {
387
- return this.ej2Instances.updateUndoRedoCollection(args);
388
- };
389
- SpreadsheetComponent.prototype.wrap = function (address, wrap) {
390
- return this.ej2Instances.wrap(address, wrap);
391
- };
392
- SpreadsheetComponent = __decorate([
393
- EJComponentDecorator({
394
- props: properties
395
- }, isExecute)
396
- ,Options({
397
- props: props,
398
- watch: watch,
399
- emits: emitProbs,
400
- provide: function provide() {
401
- return {
402
- custom: this.custom
403
- };
404
110
  }
405
- })
406
- ], SpreadsheetComponent);
407
- return SpreadsheetComponent;
408
- }(ComponentBase));
409
- export { SpreadsheetComponent };
111
+ },
112
+ custom: function () {
113
+ this.updated();
114
+ },
115
+ Unfreeze: function (sheet) {
116
+ return this.ej2Instances.Unfreeze(sheet);
117
+ },
118
+ addContextMenuItems: function (items, text, insertAfter, isUniqueId) {
119
+ return this.ej2Instances.addContextMenuItems(items, text, insertAfter, isUniqueId);
120
+ },
121
+ addCustomFunction: function (functionHandler, functionName, formulaDescription) {
122
+ return this.ej2Instances.addCustomFunction(functionHandler, functionName, formulaDescription);
123
+ },
124
+ addDataValidation: function (rules, range) {
125
+ return this.ej2Instances.addDataValidation(rules, range);
126
+ },
127
+ addDefinedName: function (definedName) {
128
+ return this.ej2Instances.addDefinedName(definedName);
129
+ },
130
+ addFileMenuItems: function (items, text, insertAfter, isUniqueId) {
131
+ return this.ej2Instances.addFileMenuItems(items, text, insertAfter, isUniqueId);
132
+ },
133
+ addHyperlink: function (hyperlink, address, displayText) {
134
+ return this.ej2Instances.addHyperlink(hyperlink, address, displayText);
135
+ },
136
+ addInvalidHighlight: function (range) {
137
+ return this.ej2Instances.addInvalidHighlight(range);
138
+ },
139
+ addRibbonTabs: function (items, insertBefore) {
140
+ return this.ej2Instances.addRibbonTabs(items, insertBefore);
141
+ },
142
+ addToolbarItems: function (tab, items, index) {
143
+ return this.ej2Instances.addToolbarItems(tab, items, index);
144
+ },
145
+ applyFilter: function (predicates, range) {
146
+ return this.ej2Instances.applyFilter(predicates, range);
147
+ },
148
+ autoFill: function (fillRange, dataRange, direction, fillType) {
149
+ return this.ej2Instances.autoFill(fillRange, dataRange, direction, fillType);
150
+ },
151
+ autoFit: function (range) {
152
+ return this.ej2Instances.autoFit(range);
153
+ },
154
+ cellFormat: function (style, range) {
155
+ return this.ej2Instances.cellFormat(style, range);
156
+ },
157
+ clear: function (options) {
158
+ return this.ej2Instances.clear(options);
159
+ },
160
+ clearConditionalFormat: function (range) {
161
+ return this.ej2Instances.clearConditionalFormat(range);
162
+ },
163
+ clearFilter: function (field) {
164
+ return this.ej2Instances.clearFilter(field);
165
+ },
166
+ closeEdit: function () {
167
+ return this.ej2Instances.closeEdit();
168
+ },
169
+ computeExpression: function (formula) {
170
+ return this.ej2Instances.computeExpression(formula);
171
+ },
172
+ conditionalFormat: function (conditionalFormat) {
173
+ return this.ej2Instances.conditionalFormat(conditionalFormat);
174
+ },
175
+ copy: function (address) {
176
+ return this.ej2Instances.copy(address);
177
+ },
178
+ cut: function (address) {
179
+ return this.ej2Instances.cut(address);
180
+ },
181
+ delete: function (startIndex, endIndex, model, sheet) {
182
+ return this.ej2Instances.delete(startIndex, endIndex, model, sheet);
183
+ },
184
+ deleteChart: function (id) {
185
+ return this.ej2Instances.deleteChart(id);
186
+ },
187
+ deleteImage: function (id, range) {
188
+ return this.ej2Instances.deleteImage(id, range);
189
+ },
190
+ duplicateSheet: function (sheetIndex) {
191
+ return this.ej2Instances.duplicateSheet(sheetIndex);
192
+ },
193
+ enableContextMenuItems: function (items, enable, isUniqueId) {
194
+ return this.ej2Instances.enableContextMenuItems(items, enable, isUniqueId);
195
+ },
196
+ enableFileMenuItems: function (items, enable, isUniqueId) {
197
+ return this.ej2Instances.enableFileMenuItems(items, enable, isUniqueId);
198
+ },
199
+ enableRibbonTabs: function (tabs, enable) {
200
+ return this.ej2Instances.enableRibbonTabs(tabs, enable);
201
+ },
202
+ enableToolbarItems: function (tab, items, enable) {
203
+ return this.ej2Instances.enableToolbarItems(tab, items, enable);
204
+ },
205
+ endEdit: function () {
206
+ return this.ej2Instances.endEdit();
207
+ },
208
+ find: function (args) {
209
+ return this.ej2Instances.find(args);
210
+ },
211
+ findAll: function (value, mode, isCSen, isEMatch, sheetIndex) {
212
+ return this.ej2Instances.findAll(value, mode, isCSen, isEMatch, sheetIndex);
213
+ },
214
+ freezePanes: function (row, column, sheet) {
215
+ return this.ej2Instances.freezePanes(row, column, sheet);
216
+ },
217
+ getData: function (address) {
218
+ return this.ej2Instances.getData(address);
219
+ },
220
+ getDisplayText: function (cell) {
221
+ return this.ej2Instances.getDisplayText(cell);
222
+ },
223
+ getRowData: function (index, sheetIndex) {
224
+ return this.ej2Instances.getRowData(index, sheetIndex);
225
+ },
226
+ getSelectAllContent: function () {
227
+ return this.ej2Instances.getSelectAllContent();
228
+ },
229
+ goTo: function (address) {
230
+ return this.ej2Instances.goTo(address);
231
+ },
232
+ hideColumn: function (startIndex, endIndex, hide) {
233
+ return this.ej2Instances.hideColumn(startIndex, endIndex, hide);
234
+ },
235
+ hideFileMenuItems: function (items, hide, isUniqueId) {
236
+ return this.ej2Instances.hideFileMenuItems(items, hide, isUniqueId);
237
+ },
238
+ hideRibbonTabs: function (tabs, hide) {
239
+ return this.ej2Instances.hideRibbonTabs(tabs, hide);
240
+ },
241
+ hideRow: function (startIndex, endIndex, hide) {
242
+ return this.ej2Instances.hideRow(startIndex, endIndex, hide);
243
+ },
244
+ hideSpinner: function () {
245
+ return this.ej2Instances.hideSpinner();
246
+ },
247
+ hideToolbarItems: function (tab, indexes, hide) {
248
+ return this.ej2Instances.hideToolbarItems(tab, indexes, hide);
249
+ },
250
+ insertChart: function (chart) {
251
+ return this.ej2Instances.insertChart(chart);
252
+ },
253
+ insertColumn: function (startColumn, endColumn, sheet) {
254
+ return this.ej2Instances.insertColumn(startColumn, endColumn, sheet);
255
+ },
256
+ insertImage: function (images, range) {
257
+ return this.ej2Instances.insertImage(images, range);
258
+ },
259
+ insertRow: function (startRow, endRow, sheet) {
260
+ return this.ej2Instances.insertRow(startRow, endRow, sheet);
261
+ },
262
+ insertSheet: function (startSheet, endSheet) {
263
+ return this.ej2Instances.insertSheet(startSheet, endSheet);
264
+ },
265
+ isValidCell: function (cellAddress) {
266
+ return this.ej2Instances.isValidCell(cellAddress);
267
+ },
268
+ lockCells: function (range, isLocked) {
269
+ return this.ej2Instances.lockCells(range, isLocked);
270
+ },
271
+ merge: function (range, type) {
272
+ return this.ej2Instances.merge(range, type);
273
+ },
274
+ moveSheet: function (position, sheetIndexes) {
275
+ return this.ej2Instances.moveSheet(position, sheetIndexes);
276
+ },
277
+ numberFormat: function (format, range) {
278
+ return this.ej2Instances.numberFormat(format, range);
279
+ },
280
+ open: function (options) {
281
+ return this.ej2Instances.open(options);
282
+ },
283
+ openFromJson: function (options) {
284
+ return this.ej2Instances.openFromJson(options);
285
+ },
286
+ paste: function (address, type) {
287
+ return this.ej2Instances.paste(address, type);
288
+ },
289
+ protectSheet: function (sheet, protectSettings, password) {
290
+ return this.ej2Instances.protectSheet(sheet, protectSettings, password);
291
+ },
292
+ redo: function () {
293
+ return this.ej2Instances.redo();
294
+ },
295
+ refresh: function (isNew) {
296
+ return this.ej2Instances.refresh(isNew);
297
+ },
298
+ removeContextMenuItems: function (items, isUniqueId) {
299
+ return this.ej2Instances.removeContextMenuItems(items, isUniqueId);
300
+ },
301
+ removeDataValidation: function (range) {
302
+ return this.ej2Instances.removeDataValidation(range);
303
+ },
304
+ removeDefinedName: function (definedName, scope) {
305
+ return this.ej2Instances.removeDefinedName(definedName, scope);
306
+ },
307
+ removeHyperlink: function (range) {
308
+ return this.ej2Instances.removeHyperlink(range);
309
+ },
310
+ removeInvalidHighlight: function (range) {
311
+ return this.ej2Instances.removeInvalidHighlight(range);
312
+ },
313
+ replace: function (args) {
314
+ return this.ej2Instances.replace(args);
315
+ },
316
+ resize: function () {
317
+ return this.ej2Instances.resize();
318
+ },
319
+ save: function (saveOptions) {
320
+ return this.ej2Instances.save(saveOptions);
321
+ },
322
+ saveAsJson: function () {
323
+ return this.ej2Instances.saveAsJson();
324
+ },
325
+ selectRange: function (address) {
326
+ return this.ej2Instances.selectRange(address);
327
+ },
328
+ setBorder: function (style, range, type) {
329
+ return this.ej2Instances.setBorder(style, range, type);
330
+ },
331
+ setColWidth: function (width, colIndex, sheetIndex) {
332
+ return this.ej2Instances.setColWidth(width, colIndex, sheetIndex);
333
+ },
334
+ setColumnsWidth: function (width, ranges) {
335
+ return this.ej2Instances.setColumnsWidth(width, ranges);
336
+ },
337
+ setRowHeight: function (height, rowIndex, sheetIndex, edited) {
338
+ return this.ej2Instances.setRowHeight(height, rowIndex, sheetIndex, edited);
339
+ },
340
+ setRowsHeight: function (height, ranges) {
341
+ return this.ej2Instances.setRowsHeight(height, ranges);
342
+ },
343
+ showSpinner: function () {
344
+ return this.ej2Instances.showSpinner();
345
+ },
346
+ sort: function (sortOptions, range) {
347
+ return this.ej2Instances.sort(sortOptions, range);
348
+ },
349
+ startEdit: function () {
350
+ return this.ej2Instances.startEdit();
351
+ },
352
+ unMerge: function (range) {
353
+ return this.ej2Instances.unMerge(range);
354
+ },
355
+ undo: function () {
356
+ return this.ej2Instances.undo();
357
+ },
358
+ unfreezePanes: function (sheet) {
359
+ return this.ej2Instances.unfreezePanes(sheet);
360
+ },
361
+ unprotectSheet: function (sheet) {
362
+ return this.ej2Instances.unprotectSheet(sheet);
363
+ },
364
+ updateAction: function (options) {
365
+ return this.ej2Instances.updateAction(options);
366
+ },
367
+ updateCell: function (cell, address) {
368
+ return this.ej2Instances.updateCell(cell, address);
369
+ },
370
+ updateRange: function (range, sheetIdx) {
371
+ return this.ej2Instances.updateRange(range, sheetIdx);
372
+ },
373
+ updateUndoRedoCollection: function (args) {
374
+ return this.ej2Instances.updateUndoRedoCollection(args);
375
+ },
376
+ wrap: function (address, wrap) {
377
+ return this.ej2Instances.wrap(address, wrap);
378
+ },
379
+ }
380
+ });
410
381
  export var SpreadsheetPlugin = {
411
382
  name: 'ejs-spreadsheet',
412
383
  install: function (Vue) {