@syncfusion/ej2-vue-spreadsheet 20.4.54 → 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,40 +1,8 @@
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 { EJComponentDecorator, allVue, gh, isExecute } from '@syncfusion/ej2-vue-base';
21
- import * as Vue3 from 'vue-class-component';
1
+ import { gh, isExecute, vueDefineComponent } from '@syncfusion/ej2-vue-base';
22
2
  import { isNullOrUndefined } from '@syncfusion/ej2-base';
23
- import Vue from 'vue';
24
- import { Options } from 'vue-class-component';
25
- var vueImport;
26
- if (!isExecute || parseInt(allVue.version) < 3) {
27
- vueImport = Vue3.Vue;
28
- }
29
- else {
30
- vueImport = Vue;
31
- }
32
- var SheetsDirective = /** @class */ (function (_super) {
33
- __extends(SheetsDirective, _super);
34
- function SheetsDirective() {
35
- return _super.call(this, arguments) || this;
36
- }
37
- SheetsDirective.prototype.render = function (createElement) {
3
+ export var SheetsDirective = vueDefineComponent({
4
+ inject: { custom: { default: null } },
5
+ render: function (createElement) {
38
6
  if (!isExecute) {
39
7
  var h = !isExecute ? gh : createElement;
40
8
  var slots = null;
@@ -44,28 +12,18 @@ var SheetsDirective = /** @class */ (function (_super) {
44
12
  return h('div', { class: 'e-directive' }, slots);
45
13
  }
46
14
  return;
47
- };
48
- SheetsDirective.prototype.updated = function () {
15
+ },
16
+ updated: function () {
49
17
  if (!isExecute && this.custom) {
50
18
  this.custom();
51
19
  }
52
- };
53
- SheetsDirective.prototype.getTag = function () {
54
- return 'e-sheets';
55
- };
56
- SheetsDirective = __decorate([
57
- EJComponentDecorator({}, isExecute)
58
- ,Options({
59
- inject: {
60
- custom: {
61
- default: null
62
- }
63
- }
64
- })
65
- ], SheetsDirective);
66
- return SheetsDirective;
67
- }(vueImport));
68
- export { SheetsDirective };
20
+ },
21
+ methods: {
22
+ getTag: function () {
23
+ return 'e-sheets';
24
+ }
25
+ }
26
+ });
69
27
  export var SheetsPlugin = {
70
28
  name: 'e-sheets',
71
29
  install: function (Vue) {
@@ -84,23 +42,16 @@ export var SheetsPlugin = {
84
42
  * </ejs-spreadsheet>
85
43
  * ```
86
44
  */
87
- var SheetDirective = /** @class */ (function (_super) {
88
- __extends(SheetDirective, _super);
89
- function SheetDirective() {
90
- return _super !== null && _super.apply(this, arguments) || this;
91
- }
92
- SheetDirective.prototype.render = function () {
45
+ export var SheetDirective = vueDefineComponent({
46
+ render: function () {
93
47
  return;
94
- };
95
- SheetDirective.prototype.getTag = function () {
96
- return 'e-sheet';
97
- };
98
- SheetDirective = __decorate([
99
- EJComponentDecorator({}, isExecute)
100
- ], SheetDirective);
101
- return SheetDirective;
102
- }(vueImport));
103
- export { SheetDirective };
48
+ },
49
+ methods: {
50
+ getTag: function () {
51
+ return 'e-sheet';
52
+ }
53
+ }
54
+ });
104
55
  export var SheetPlugin = {
105
56
  name: 'e-sheet',
106
57
  install: function (Vue) {
@@ -1,122 +1,15 @@
1
- import { ComponentBase } from '@syncfusion/ej2-vue-base';
2
1
  export declare const properties: string[];
3
2
  export declare const modelProps: string[];
4
3
  export declare const testProp: any;
5
- export declare const props: any;
6
- export declare const watch: any;
7
- export declare const emitProbs: any;
4
+ export declare const props: any, watch: any, emitProbs: any;
8
5
  /**
9
6
  * `ejs-spreadsheet` represents the VueJS Spreadsheet Component.
10
7
  * ```vue
11
8
  * <ejs-spreadsheet></ejs-spreadsheet>
12
9
  * ```
13
10
  */
14
- export declare class SpreadsheetComponent extends ComponentBase {
15
- ej2Instances: any;
16
- propKeys: string[];
17
- models: string[];
18
- hasChildDirective: boolean;
19
- protected hasInjectedModules: boolean;
20
- tagMapper: {
21
- [key: string]: Object;
22
- };
23
- tagNameMapper: Object;
24
- isVue3: boolean;
25
- templateCollection: any;
26
- constructor();
27
- clearTemplate(templateNames?: string[]): any;
28
- setProperties(prop: any, muteOnChange: boolean): void;
29
- render(createElement: any): any;
30
- custom(): void;
31
- Unfreeze(sheet?: number | string): void;
32
- addContextMenuItems(items: Object[], text: string, insertAfter: boolean, isUniqueId?: boolean): void;
33
- addCustomFunction(functionHandler: string | Object, functionName?: string, formulaDescription?: string): void;
34
- addDataValidation(rules: Object, range?: string): void;
35
- addDefinedName(definedName: Object): boolean;
36
- addFileMenuItems(items: Object[], text: string, insertAfter: boolean, isUniqueId?: boolean): void;
37
- addHyperlink(hyperlink: string | Object, address: string, displayText?: string): void;
38
- addInvalidHighlight(range?: string): void;
39
- addRibbonTabs(items: Object[], insertBefore?: string): void;
40
- addToolbarItems(tab: string, items: Object[], index?: number): void;
41
- applyFilter(predicates?: Object[], range?: string): Object;
42
- autoFill(fillRange: string, dataRange?: string, direction?: Object, fillType?: Object): void;
43
- autoFit(range: string): void;
44
- cellFormat(style: Object, range?: string): void;
45
- clear(options: Object): void;
46
- clearConditionalFormat(range?: string): void;
47
- clearFilter(field?: string): void;
48
- closeEdit(): void;
49
- computeExpression(formula: string): string | number;
50
- conditionalFormat(conditionalFormat: Object): void;
51
- copy(address?: string): Object;
52
- cut(address?: string): Object;
53
- delete(startIndex?: number, endIndex?: number, model?: Object, sheet?: number | string): void;
54
- deleteChart(id?: string): void;
55
- deleteImage(id: string, range?: string): void;
56
- duplicateSheet(sheetIndex?: number): void;
57
- enableContextMenuItems(items: string[], enable: boolean, isUniqueId?: boolean): void;
58
- enableFileMenuItems(items: string[], enable: boolean, isUniqueId?: boolean): void;
59
- enableRibbonTabs(tabs: string[], enable: boolean): void;
60
- enableToolbarItems(tab: string, items?: number[] | string[], enable?: boolean): void;
61
- endEdit(): void;
62
- find(args: Object): void | string;
63
- findAll(value: string, mode?: string, isCSen?: boolean, isEMatch?: boolean, sheetIndex?: number): string[];
64
- freezePanes(row: number, column: number, sheet?: number | string): void;
65
- getData(address: string): Object;
66
- getDisplayText(cell: Object): string;
67
- getRowData(index?: number, sheetIndex?: number): Object[];
68
- getSelectAllContent(): Object;
69
- goTo(address: string): void;
70
- hideColumn(startIndex: number, endIndex: number, hide: boolean): void;
71
- hideFileMenuItems(items: string[], hide: boolean, isUniqueId?: boolean): void;
72
- hideRibbonTabs(tabs: string[], hide: boolean): void;
73
- hideRow(startIndex: number, endIndex: number, hide: boolean): void;
74
- hideSpinner(): void;
75
- hideToolbarItems(tab: string, indexes: number[], hide: boolean): void;
76
- insertChart(chart?: Object[]): void;
77
- insertColumn(startColumn?: number | Object[], endColumn?: number, sheet?: number | string): void;
78
- insertImage(images: Object[], range?: string): void;
79
- insertRow(startRow?: number | Object[], endRow?: number, sheet?: number | string): void;
80
- insertSheet(startSheet?: number | Object[], endSheet?: number): void;
81
- isValidCell(cellAddress?: string): boolean;
82
- lockCells(range?: string, isLocked?: boolean): void;
83
- merge(range?: string, type?: Object): void;
84
- moveSheet(position: number, sheetIndexes?: number[]): void;
85
- numberFormat(format: string, range?: string): void;
86
- open(options: Object): void;
87
- openFromJson(options: undefined): void;
88
- paste(address?: string, type?: Object): void;
89
- protectSheet(sheet?: number | string, protectSettings?: Object, password?: string): void;
90
- redo(): void;
91
- refresh(isNew?: boolean): void;
92
- removeContextMenuItems(items: string[], isUniqueId?: boolean): void;
93
- removeDataValidation(range?: string): void;
94
- removeDefinedName(definedName: string, scope: string): boolean;
95
- removeHyperlink(range: string): void;
96
- removeInvalidHighlight(range?: string): void;
97
- replace(args: Object): void;
98
- resize(): void;
99
- save(saveOptions: Object): void;
100
- saveAsJson(): Object;
101
- selectRange(address: string): void;
102
- setBorder(style: Object, range?: string, type?: Object): void;
103
- setColWidth(width: number | string, colIndex: number, sheetIndex?: number): void;
104
- setColumnsWidth(width: number, ranges?: string[]): void;
105
- setRowHeight(height: number | string, rowIndex: number, sheetIndex?: number, edited?: boolean): void;
106
- setRowsHeight(height: number, ranges?: string[]): void;
107
- showSpinner(): void;
108
- sort(sortOptions?: Object, range?: string): Object;
109
- startEdit(): void;
110
- unMerge(range?: string): void;
111
- undo(): void;
112
- unfreezePanes(sheet?: number | string): void;
113
- unprotectSheet(sheet?: number | string): void;
114
- updateAction(options: Object): void;
115
- updateCell(cell: Object, address?: string): void;
116
- updateRange(range: Object, sheetIdx?: number): void;
117
- updateUndoRedoCollection(args: undefined): void;
118
- wrap(address: string, wrap: boolean): void;
119
- }
11
+ export declare let SpreadsheetComponent: any;
12
+ export declare type SpreadsheetComponent = InstanceType<typeof SpreadsheetComponent>;
120
13
  export declare const SpreadsheetPlugin: {
121
14
  name: string;
122
15
  install(Vue: any): void;