@syncfusion/ej2-vue-grids 20.4.54 → 21.1.37

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 (66) hide show
  1. package/CHANGELOG.md +36 -147
  2. package/dist/ej2-vue-grids.umd.min.js +2 -2
  3. package/dist/ej2-vue-grids.umd.min.js.map +1 -1
  4. package/dist/es6/ej2-vue-grids.es2015.js +704 -881
  5. package/dist/es6/ej2-vue-grids.es2015.js.map +1 -1
  6. package/dist/es6/ej2-vue-grids.es5.js +751 -986
  7. package/dist/es6/ej2-vue-grids.es5.js.map +1 -1
  8. package/dist/global/ej2-vue-grids.min.js +2 -2
  9. package/package.json +11 -10
  10. package/src/grid/aggregate-columns.directive.d.ts +2 -12
  11. package/src/grid/aggregate-columns.directive.js +22 -71
  12. package/src/grid/aggregates.directive.d.ts +2 -12
  13. package/src/grid/aggregates.directive.js +22 -71
  14. package/src/grid/columns.directive.d.ts +2 -12
  15. package/src/grid/columns.directive.js +22 -71
  16. package/src/grid/grid.component.d.ts +3 -155
  17. package/src/grid/grid.component.js +513 -541
  18. package/src/grid/stacked-column.directive.d.ts +2 -12
  19. package/src/grid/stacked-column.directive.js +22 -71
  20. package/src/pager/pager.component.d.ts +3 -29
  21. package/src/pager/pager.component.js +131 -162
  22. package/styles/bootstrap-dark.css +33 -9
  23. package/styles/bootstrap.css +33 -9
  24. package/styles/bootstrap4.css +33 -9
  25. package/styles/bootstrap5-dark.css +34 -10
  26. package/styles/bootstrap5.css +34 -10
  27. package/styles/excel-filter/bootstrap-dark.css +9 -0
  28. package/styles/excel-filter/bootstrap.css +9 -0
  29. package/styles/excel-filter/bootstrap4.css +9 -0
  30. package/styles/excel-filter/bootstrap5-dark.css +9 -0
  31. package/styles/excel-filter/bootstrap5.css +9 -0
  32. package/styles/excel-filter/fabric-dark.css +9 -0
  33. package/styles/excel-filter/fabric.css +9 -0
  34. package/styles/excel-filter/fluent-dark.css +11 -2
  35. package/styles/excel-filter/fluent.css +11 -2
  36. package/styles/excel-filter/highcontrast-light.css +9 -0
  37. package/styles/excel-filter/highcontrast.css +9 -0
  38. package/styles/excel-filter/material-dark.css +9 -0
  39. package/styles/excel-filter/material.css +9 -0
  40. package/styles/excel-filter/tailwind-dark.css +9 -0
  41. package/styles/excel-filter/tailwind.css +9 -0
  42. package/styles/fabric-dark.css +33 -9
  43. package/styles/fabric.css +33 -9
  44. package/styles/fluent-dark.css +65 -18
  45. package/styles/fluent.css +65 -18
  46. package/styles/grid/bootstrap-dark.css +24 -9
  47. package/styles/grid/bootstrap.css +24 -9
  48. package/styles/grid/bootstrap4.css +24 -9
  49. package/styles/grid/bootstrap5-dark.css +25 -10
  50. package/styles/grid/bootstrap5.css +25 -10
  51. package/styles/grid/fabric-dark.css +24 -9
  52. package/styles/grid/fabric.css +24 -9
  53. package/styles/grid/fluent-dark.css +54 -16
  54. package/styles/grid/fluent.css +54 -16
  55. package/styles/grid/highcontrast-light.css +26 -11
  56. package/styles/grid/highcontrast.css +24 -9
  57. package/styles/grid/material-dark.css +24 -9
  58. package/styles/grid/material.css +24 -9
  59. package/styles/grid/tailwind-dark.css +24 -9
  60. package/styles/grid/tailwind.css +24 -9
  61. package/styles/highcontrast-light.css +35 -11
  62. package/styles/highcontrast.css +33 -9
  63. package/styles/material-dark.css +33 -9
  64. package/styles/material.css +33 -9
  65. package/styles/tailwind-dark.css +33 -9
  66. package/styles/tailwind.css +33 -9
@@ -1,37 +1,15 @@
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 { isUndefined } from '@syncfusion/ej2-base';
21
- import { ComponentBase, EJComponentDecorator, getProps, gh, isExecute } from '@syncfusion/ej2-vue-base';
1
+ import { ComponentBase, gh, getProps, isExecute, vueDefineComponent } from '@syncfusion/ej2-vue-base';
22
2
  import { isNullOrUndefined, getValue } from '@syncfusion/ej2-base';
3
+ import { isUndefined } from '@syncfusion/ej2-base';
23
4
  import { Grid } from '@syncfusion/ej2-grids';
24
5
  import { StackedColumnsDirective, StackedColumnDirective, StackedColumnsPlugin, StackedColumnPlugin } from './stacked-column.directive';
25
6
  import { ColumnsDirective, ColumnDirective, ColumnsPlugin, ColumnPlugin } from './columns.directive';
26
7
  import { AggregateColumnsDirective, AggregateColumnDirective, AggregateColumnsPlugin, AggregateColumnPlugin } from './aggregate-columns.directive';
27
8
  import { AggregatesDirective, AggregateDirective, AggregatesPlugin, AggregatePlugin } from './aggregates.directive';
28
- import { Options } from 'vue-class-component';
29
- export var properties = ['isLazyUpdate', 'plugins', 'aggregates', 'allowExcelExport', 'allowFiltering', 'allowGrouping', 'allowKeyboard', 'allowMultiSorting', 'allowPaging', 'allowPdfExport', 'allowReordering', 'allowResizing', 'allowRowDragAndDrop', 'allowSelection', 'allowSorting', 'allowTextWrap', 'childGrid', 'clipMode', 'columnChooserSettings', 'columnMenuItems', 'columnQueryMode', 'columns', 'contextMenuItems', 'cssClass', 'currencyCode', 'currentAction', 'dataSource', 'detailTemplate', 'editSettings', 'ej2StatePersistenceVersion', 'enableAdaptiveUI', 'enableAltRow', 'enableAutoFill', 'enableColumnVirtualization', 'enableHeaderFocus', 'enableHover', 'enableImmutableMode', 'enableInfiniteScrolling', 'enablePersistence', 'enableRtl', 'enableStickyHeader', 'enableVirtualMaskRow', 'enableVirtualization', 'filterSettings', 'frozenColumns', 'frozenRows', 'gridLines', 'groupSettings', 'height', 'hierarchyPrintMode', 'infiniteScrollSettings', 'loadingIndicator', 'locale', 'pageSettings', 'pagerTemplate', 'parentDetails', 'printMode', 'query', 'queryString', 'resizeSettings', 'rowDropSettings', 'rowHeight', 'rowRenderingMode', 'rowTemplate', 'searchSettings', 'selectedRowIndex', 'selectionSettings', 'showColumnChooser', 'showColumnMenu', 'sortSettings', 'textWrapSettings', 'toolbar', 'toolbarTemplate', 'width', 'actionBegin', 'actionComplete', 'actionFailure', 'batchAdd', 'batchCancel', 'batchDelete', 'beforeAutoFill', 'beforeBatchAdd', 'beforeBatchDelete', 'beforeBatchSave', 'beforeCopy', 'beforeDataBound', 'beforeExcelExport', 'beforeOpenAdaptiveDialog', 'beforeOpenColumnChooser', 'beforePaste', 'beforePdfExport', 'beforePrint', 'beginEdit', 'cellDeselected', 'cellDeselecting', 'cellEdit', 'cellSave', 'cellSaved', 'cellSelected', 'cellSelecting', 'checkBoxChange', 'columnDataStateChange', 'columnDeselected', 'columnDeselecting', 'columnDrag', 'columnDragStart', 'columnDrop', 'columnMenuClick', 'columnMenuOpen', 'columnSelected', 'columnSelecting', 'commandClick', 'contextMenuClick', 'contextMenuOpen', 'created', 'dataBound', 'dataSourceChanged', 'dataStateChange', 'destroyed', 'detailDataBound', 'excelAggregateQueryCellInfo', 'excelExportComplete', 'excelHeaderQueryCellInfo', 'excelQueryCellInfo', 'exportDetailDataBound', 'exportGroupCaption', 'headerCellInfo', 'keyPressed', 'lazyLoadGroupCollapse', 'lazyLoadGroupExpand', 'load', 'pdfAggregateQueryCellInfo', 'pdfExportComplete', 'pdfHeaderQueryCellInfo', 'pdfQueryCellInfo', 'printComplete', 'queryCellInfo', 'recordClick', 'recordDoubleClick', 'resizeStart', 'resizeStop', 'resizing', 'rowDataBound', 'rowDeselected', 'rowDeselecting', 'rowDrag', 'rowDragStart', 'rowDragStartHelper', 'rowDrop', 'rowSelected', 'rowSelecting', 'toolbarClick'];
9
+ export var properties = ['isLazyUpdate', 'plugins', 'aggregates', 'allowExcelExport', 'allowFiltering', 'allowGrouping', 'allowKeyboard', 'allowMultiSorting', 'allowPaging', 'allowPdfExport', 'allowReordering', 'allowResizing', 'allowRowDragAndDrop', 'allowSelection', 'allowSorting', 'allowTextWrap', 'autoFit', 'childGrid', 'clipMode', 'columnChooserSettings', 'columnMenuItems', 'columnQueryMode', 'columns', 'contextMenuItems', 'cssClass', 'currencyCode', 'currentAction', 'currentViewData', 'dataSource', 'detailTemplate', 'editSettings', 'ej2StatePersistenceVersion', 'enableAdaptiveUI', 'enableAltRow', 'enableAutoFill', 'enableColumnVirtualization', 'enableHeaderFocus', 'enableHover', 'enableHtmlSanitizer', 'enableImmutableMode', 'enableInfiniteScrolling', 'enablePersistence', 'enableRtl', 'enableStickyHeader', 'enableVirtualMaskRow', 'enableVirtualization', 'filterSettings', 'frozenColumns', 'frozenRows', 'gridLines', 'groupSettings', 'height', 'hierarchyPrintMode', 'infiniteScrollSettings', 'loadingIndicator', 'locale', 'pageSettings', 'pagerTemplate', 'parentDetails', 'printMode', 'query', 'queryString', 'resizeSettings', 'rowDropSettings', 'rowHeight', 'rowRenderingMode', 'rowTemplate', 'searchSettings', 'selectedRowIndex', 'selectionSettings', 'showColumnChooser', 'showColumnMenu', 'showHider', 'sortSettings', 'textWrapSettings', 'toolbar', 'toolbarTemplate', 'width', 'actionBegin', 'actionComplete', 'actionFailure', 'batchAdd', 'batchCancel', 'batchDelete', 'beforeAutoFill', 'beforeBatchAdd', 'beforeBatchDelete', 'beforeBatchSave', 'beforeCopy', 'beforeDataBound', 'beforeExcelExport', 'beforeOpenAdaptiveDialog', 'beforeOpenColumnChooser', 'beforePaste', 'beforePdfExport', 'beforePrint', 'beginEdit', 'cellDeselected', 'cellDeselecting', 'cellEdit', 'cellSave', 'cellSaved', 'cellSelected', 'cellSelecting', 'checkBoxChange', 'columnDataStateChange', 'columnDeselected', 'columnDeselecting', 'columnDrag', 'columnDragStart', 'columnDrop', 'columnMenuClick', 'columnMenuOpen', 'columnSelected', 'columnSelecting', 'commandClick', 'contextMenuClick', 'contextMenuOpen', 'created', 'dataBound', 'dataSourceChanged', 'dataStateChange', 'destroyed', 'detailDataBound', 'excelAggregateQueryCellInfo', 'excelExportComplete', 'excelHeaderQueryCellInfo', 'excelQueryCellInfo', 'exportDetailDataBound', 'exportGroupCaption', 'headerCellInfo', 'keyPressed', 'lazyLoadGroupCollapse', 'lazyLoadGroupExpand', 'load', 'pdfAggregateQueryCellInfo', 'pdfExportComplete', 'pdfHeaderQueryCellInfo', 'pdfQueryCellInfo', 'printComplete', 'queryCellInfo', 'recordClick', 'recordDoubleClick', 'resizeStart', 'resizeStop', 'resizing', 'rowDataBound', 'rowDeselected', 'rowDeselecting', 'rowDrag', 'rowDragStart', 'rowDragStartHelper', 'rowDrop', 'rowSelected', 'rowSelecting', 'toolbarClick'];
30
10
  export var modelProps = ['dataSource'];
31
11
  export var testProp = getProps({ props: properties });
32
- export var props = testProp[0];
33
- export var watch = testProp[1];
34
- export var emitProbs = Object.keys(watch);
12
+ export var props = testProp[0], watch = testProp[1], emitProbs = Object.keys(watch);
35
13
  emitProbs.push('modelchanged', 'update:modelValue');
36
14
  for (var _i = 0, modelProps_1 = modelProps; _i < modelProps_1.length; _i++) {
37
15
  var props_1 = modelProps_1[_i];
@@ -43,536 +21,530 @@ for (var _i = 0, modelProps_1 = modelProps; _i < modelProps_1.length; _i++) {
43
21
  * <ejs-grid :dataSource='data' allowPaging='true' allowSorting='true'></ejs-grid>
44
22
  * ```
45
23
  */
46
- var GridComponent = /** @class */ (function (_super) {
47
- __extends(GridComponent, _super);
48
- function GridComponent() {
49
- var _this = _super.call(this, arguments) || this;
50
- _this.propKeys = properties;
51
- _this.models = modelProps;
52
- _this.hasChildDirective = true;
53
- _this.hasInjectedModules = true;
54
- _this.tagMapper = { "e-columns": { "e-column": { "e-stacked-columns": "e-stacked-column" } }, "e-aggregates": { "e-aggregate": { "e-columns": "e-column" } } };
55
- _this.tagNameMapper = { "e-stacked-columns": "e-columns" };
56
- _this.isVue3 = !isExecute;
57
- _this.ej2Instances = new Grid({});
58
- _this.ej2Instances._trigger = _this.ej2Instances.trigger;
59
- _this.ej2Instances.trigger = _this.trigger;
60
- _this.bindProperties();
61
- _this.ej2Instances._setProperties = _this.ej2Instances.setProperties;
62
- _this.ej2Instances.setProperties = _this.setProperties;
63
- _this.ej2Instances.clearTemplate = _this.clearTemplate;
64
- _this.updated = _this.updated;
65
- return _this;
66
- }
67
- GridComponent.prototype.clearTemplate = function (templateNames) {
68
- if (!templateNames) {
69
- templateNames = Object.keys(this.templateCollection || {});
24
+ export var GridComponent = vueDefineComponent({
25
+ name: 'GridComponent',
26
+ mixins: [ComponentBase],
27
+ props: props,
28
+ watch: watch,
29
+ emits: emitProbs,
30
+ model: { event: 'modelchanged' },
31
+ provide: function () { return { custom: this.custom }; },
32
+ data: function () {
33
+ return {
34
+ ej2Instances: new Grid({}),
35
+ propKeys: properties,
36
+ models: modelProps,
37
+ hasChildDirective: true,
38
+ hasInjectedModules: true,
39
+ tagMapper: { "e-columns": { "e-column": { "e-stacked-columns": "e-stacked-column" } }, "e-aggregates": { "e-aggregate": { "e-columns": "e-column" } } },
40
+ tagNameMapper: { "e-stacked-columns": "e-columns" },
41
+ isVue3: !isExecute,
42
+ templateCollection: {},
43
+ };
44
+ },
45
+ created: function () {
46
+ this.ej2Instances._trigger = this.ej2Instances.trigger;
47
+ this.ej2Instances.trigger = this.trigger;
48
+ this.bindProperties();
49
+ this.ej2Instances._setProperties = this.ej2Instances.setProperties;
50
+ this.ej2Instances.setProperties = this.setProperties;
51
+ this.ej2Instances.clearTemplate = this.clearTemplate;
52
+ this.updated = this.updated;
53
+ },
54
+ render: function (createElement) {
55
+ var h = !isExecute ? gh : createElement;
56
+ var slots = null;
57
+ if (!isNullOrUndefined(this.$slots.default)) {
58
+ slots = !isExecute ? this.$slots.default() : this.$slots.default;
70
59
  }
71
- if (templateNames.length && this.templateCollection) {
72
- for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {
73
- var tempName = templateNames_1[_i];
74
- var elementCollection = this.templateCollection[tempName];
75
- if (elementCollection && elementCollection.length) {
76
- for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {
77
- var ele = elementCollection_1[_a];
78
- var destroy = getValue('__vue__.$destroy', ele);
79
- if (destroy) {
80
- ele.__vue__.$destroy();
81
- }
82
- if (ele.innerHTML) {
83
- ele.innerHTML = '';
60
+ return h('div', slots);
61
+ },
62
+ methods: {
63
+ clearTemplate: function (templateNames) {
64
+ if (!templateNames) {
65
+ templateNames = Object.keys(this.templateCollection || {});
66
+ }
67
+ if (templateNames.length && this.templateCollection) {
68
+ for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {
69
+ var tempName = templateNames_1[_i];
70
+ var elementCollection = this.templateCollection[tempName];
71
+ if (elementCollection && elementCollection.length) {
72
+ for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {
73
+ var ele = elementCollection_1[_a];
74
+ var destroy = getValue('__vue__.$destroy', ele);
75
+ if (destroy) {
76
+ ele.__vue__.$destroy();
77
+ }
78
+ if (ele.innerHTML) {
79
+ ele.innerHTML = '';
80
+ }
84
81
  }
82
+ delete this.templateCollection[tempName];
85
83
  }
86
- delete this.templateCollection[tempName];
87
84
  }
88
85
  }
89
- }
90
- };
91
- GridComponent.prototype.setProperties = function (prop, muteOnChange) {
92
- var _this = this;
93
- if (this.isVue3) {
94
- this.models = !this.models ? this.ej2Instances.referModels : this.models;
95
- }
96
- if (this.ej2Instances && this.ej2Instances._setProperties) {
97
- this.ej2Instances._setProperties(prop, muteOnChange);
98
- }
99
- if (prop && this.models && this.models.length) {
100
- Object.keys(prop).map(function (key) {
101
- _this.models.map(function (model) {
102
- if ((key === model) && !(/datasource/i.test(key))) {
103
- if (_this.isVue3) {
104
- _this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
86
+ },
87
+ setProperties: function (prop, muteOnChange) {
88
+ var _this = this;
89
+ if (this.isVue3) {
90
+ this.models = !this.models ? this.ej2Instances.referModels : this.models;
91
+ }
92
+ if (this.ej2Instances && this.ej2Instances._setProperties) {
93
+ this.ej2Instances._setProperties(prop, muteOnChange);
94
+ }
95
+ if (prop && this.models && this.models.length) {
96
+ Object.keys(prop).map(function (key) {
97
+ _this.models.map(function (model) {
98
+ if ((key === model) && !(/datasource/i.test(key))) {
99
+ if (_this.isVue3) {
100
+ _this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
101
+ }
102
+ else {
103
+ _this.$emit('update:' + key, prop[key]);
104
+ _this.$emit('modelchanged', prop[key]);
105
+ }
105
106
  }
106
- else {
107
- _this.$emit('update:' + key, prop[key]);
108
- _this.$emit('modelchanged', prop[key]);
107
+ });
108
+ });
109
+ }
110
+ },
111
+ trigger: function (eventName, eventProp, successHandler) {
112
+ if (!isExecute) {
113
+ this.models = !this.models ? this.ej2Instances.referModels : this.models;
114
+ }
115
+ if ((eventName === 'change' || eventName === 'input') && this.models && (this.models.length !== 0)) {
116
+ var key = this.models.toString().match(/checked|value/) || [];
117
+ var propKey = key[0];
118
+ if (eventProp && key && !isUndefined(eventProp[propKey])) {
119
+ if (!isExecute) {
120
+ this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
121
+ this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
122
+ this.ej2Instances.vueInstance.$emit('update:modelValue', eventProp[propKey]);
123
+ }
124
+ else {
125
+ if (eventName === 'change' || (this.$props && !this.$props.isLazyUpdate)) {
126
+ this.$emit('update:' + propKey, eventProp[propKey]);
127
+ this.$emit('modelchanged', eventProp[propKey]);
109
128
  }
110
129
  }
111
- });
112
- });
113
- }
114
- };
115
- GridComponent.prototype.trigger = function (eventName, eventProp, successHandler) {
116
- if (!isExecute) {
117
- this.models = !this.models ? this.ej2Instances.referModels : this.models;
118
- }
119
- if ((eventName === 'change' || eventName === 'input') && this.models && (this.models.length !== 0)) {
120
- var key = this.models.toString().match(/checked|value/) || [];
121
- var propKey = key[0];
122
- if (eventProp && key && !isUndefined(eventProp[propKey])) {
123
- if (!isExecute) {
124
- this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
125
- this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
126
- this.ej2Instances.vueInstance.$emit('update:modelValue', eventProp[propKey]);
127
130
  }
128
- else {
129
- if (eventName === 'change' || (this.$props && !this.$props.isLazyUpdate)) {
131
+ }
132
+ else if ((eventName === 'actionBegin' && eventProp.requestType === 'dateNavigate') && this.models && (this.models.length !== 0)) {
133
+ var key = this.models.toString().match(/currentView|selectedDate/) || [];
134
+ var propKey = key[0];
135
+ if (eventProp && key && !isUndefined(eventProp[propKey])) {
136
+ if (!isExecute) {
137
+ this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
138
+ this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
139
+ }
140
+ else {
130
141
  this.$emit('update:' + propKey, eventProp[propKey]);
131
142
  this.$emit('modelchanged', eventProp[propKey]);
132
143
  }
133
144
  }
134
145
  }
135
- }
136
- else if ((eventName === 'actionBegin' && eventProp.requestType === 'dateNavigate') && this.models && (this.models.length !== 0)) {
137
- var key = this.models.toString().match(/currentView|selectedDate/) || [];
138
- var propKey = key[0];
139
- if (eventProp && key && !isUndefined(eventProp[propKey])) {
140
- if (!isExecute) {
141
- this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
142
- this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
143
- }
144
- else {
145
- this.$emit('update:' + propKey, eventProp[propKey]);
146
- this.$emit('modelchanged', eventProp[propKey]);
147
- }
146
+ if ((this.ej2Instances && this.ej2Instances._trigger)) {
147
+ this.ej2Instances._trigger(eventName, eventProp, successHandler);
148
148
  }
149
- }
150
- if ((this.ej2Instances && this.ej2Instances._trigger)) {
151
- this.ej2Instances._trigger(eventName, eventProp, successHandler);
152
- }
153
- };
154
- GridComponent.prototype.render = function (createElement) {
155
- var h = !isExecute ? gh : createElement;
156
- var slots = null;
157
- if (!isNullOrUndefined(this.$slots.default)) {
158
- slots = !isExecute ? this.$slots.default() : this.$slots.default;
159
- }
160
- return h('div', slots);
161
- };
162
- GridComponent.prototype.custom = function () {
163
- this.updated();
164
- };
165
- GridComponent.prototype.addRecord = function (data, index) {
166
- return this.ej2Instances.addRecord(data, index);
167
- };
168
- GridComponent.prototype.addShimmerEffect = function () {
169
- return this.ej2Instances.addShimmerEffect();
170
- };
171
- GridComponent.prototype.autoFitColumns = function (fieldNames) {
172
- return this.ej2Instances.autoFitColumns(fieldNames);
173
- };
174
- GridComponent.prototype.batchAsyncUpdate = function (changes) {
175
- return this.ej2Instances.batchAsyncUpdate(changes);
176
- };
177
- GridComponent.prototype.batchUpdate = function (changes) {
178
- return this.ej2Instances.batchUpdate(changes);
179
- };
180
- GridComponent.prototype.calculatePageSizeByParentHeight = function (containerHeight) {
181
- return this.ej2Instances.calculatePageSizeByParentHeight(containerHeight);
182
- };
183
- GridComponent.prototype.clearCellSelection = function () {
184
- return this.ej2Instances.clearCellSelection();
185
- };
186
- GridComponent.prototype.clearFiltering = function (fields) {
187
- return this.ej2Instances.clearFiltering(fields);
188
- };
189
- GridComponent.prototype.clearGrouping = function () {
190
- return this.ej2Instances.clearGrouping();
191
- };
192
- GridComponent.prototype.clearRowSelection = function () {
193
- return this.ej2Instances.clearRowSelection();
194
- };
195
- GridComponent.prototype.clearSelection = function () {
196
- return this.ej2Instances.clearSelection();
197
- };
198
- GridComponent.prototype.clearSorting = function () {
199
- return this.ej2Instances.clearSorting();
200
- };
201
- GridComponent.prototype.closeEdit = function () {
202
- return this.ej2Instances.closeEdit();
203
- };
204
- GridComponent.prototype.copy = function (withHeader) {
205
- return this.ej2Instances.copy(withHeader);
206
- };
207
- GridComponent.prototype.csvExport = function (excelExportProperties, isMultipleExport, workbook, isBlob) {
208
- return this.ej2Instances.csvExport(excelExportProperties, isMultipleExport, workbook, isBlob);
209
- };
210
- GridComponent.prototype.dataReady = function () {
211
- return this.ej2Instances.dataReady();
212
- };
213
- GridComponent.prototype.deleteRecord = function (fieldname, data) {
214
- return this.ej2Instances.deleteRecord(fieldname, data);
215
- };
216
- GridComponent.prototype.deleteRow = function (tr) {
217
- return this.ej2Instances.deleteRow(tr);
218
- };
219
- GridComponent.prototype.destroyTemplate = function (propertyNames, index) {
220
- return this.ej2Instances.destroyTemplate(propertyNames, index);
221
- };
222
- GridComponent.prototype.detailCollapseAll = function () {
223
- return this.ej2Instances.detailCollapseAll();
224
- };
225
- GridComponent.prototype.detailExpandAll = function () {
226
- return this.ej2Instances.detailExpandAll();
227
- };
228
- GridComponent.prototype.editCell = function (index, field) {
229
- return this.ej2Instances.editCell(index, field);
230
- };
231
- GridComponent.prototype.enableToolbarItems = function (items, isEnable) {
232
- return this.ej2Instances.enableToolbarItems(items, isEnable);
233
- };
234
- GridComponent.prototype.endEdit = function () {
235
- return this.ej2Instances.endEdit();
236
- };
237
- GridComponent.prototype.excelExport = function (excelExportProperties, isMultipleExport, workbook, isBlob) {
238
- return this.ej2Instances.excelExport(excelExportProperties, isMultipleExport, workbook, isBlob);
239
- };
240
- GridComponent.prototype.extendRequiredModules = function (modules) {
241
- return this.ej2Instances.extendRequiredModules(modules);
242
- };
243
- GridComponent.prototype.filterByColumn = function (fieldName, filterOperator, filterValue, predicate, matchCase, ignoreAccent, actualFilterValue, actualOperator) {
244
- return this.ej2Instances.filterByColumn(fieldName, filterOperator, filterValue, predicate, matchCase, ignoreAccent, actualFilterValue, actualOperator);
245
- };
246
- GridComponent.prototype.getBatchChanges = function () {
247
- return this.ej2Instances.getBatchChanges();
248
- };
249
- GridComponent.prototype.getCellFromIndex = function (rowIndex, columnIndex) {
250
- return this.ej2Instances.getCellFromIndex(rowIndex, columnIndex);
251
- };
252
- GridComponent.prototype.getColumnByField = function (field) {
253
- return this.ej2Instances.getColumnByField(field);
254
- };
255
- GridComponent.prototype.getColumnByUid = function (uid) {
256
- return this.ej2Instances.getColumnByUid(uid);
257
- };
258
- GridComponent.prototype.getColumnFieldNames = function () {
259
- return this.ej2Instances.getColumnFieldNames();
260
- };
261
- GridComponent.prototype.getColumnHeaderByField = function (field) {
262
- return this.ej2Instances.getColumnHeaderByField(field);
263
- };
264
- GridComponent.prototype.getColumnHeaderByIndex = function (index) {
265
- return this.ej2Instances.getColumnHeaderByIndex(index);
266
- };
267
- GridComponent.prototype.getColumnHeaderByUid = function (uid) {
268
- return this.ej2Instances.getColumnHeaderByUid(uid);
269
- };
270
- GridComponent.prototype.getColumnIndexByField = function (field) {
271
- return this.ej2Instances.getColumnIndexByField(field);
272
- };
273
- GridComponent.prototype.getColumnIndexByUid = function (uid) {
274
- return this.ej2Instances.getColumnIndexByUid(uid);
275
- };
276
- GridComponent.prototype.getColumns = function (isRefresh) {
277
- return this.ej2Instances.getColumns(isRefresh);
278
- };
279
- GridComponent.prototype.getContent = function () {
280
- return this.ej2Instances.getContent();
281
- };
282
- GridComponent.prototype.getContentTable = function () {
283
- return this.ej2Instances.getContentTable();
284
- };
285
- GridComponent.prototype.getCurrentViewRecords = function () {
286
- return this.ej2Instances.getCurrentViewRecords();
287
- };
288
- GridComponent.prototype.getDataModule = function () {
289
- return this.ej2Instances.getDataModule();
290
- };
291
- GridComponent.prototype.getDataRows = function () {
292
- return this.ej2Instances.getDataRows();
293
- };
294
- GridComponent.prototype.getFilterUIInfo = function () {
295
- return this.ej2Instances.getFilterUIInfo();
296
- };
297
- GridComponent.prototype.getFilteredRecords = function () {
298
- return this.ej2Instances.getFilteredRecords();
299
- };
300
- GridComponent.prototype.getFooterContent = function () {
301
- return this.ej2Instances.getFooterContent();
302
- };
303
- GridComponent.prototype.getFooterContentTable = function () {
304
- return this.ej2Instances.getFooterContentTable();
305
- };
306
- GridComponent.prototype.getForeignKeyColumns = function () {
307
- return this.ej2Instances.getForeignKeyColumns();
308
- };
309
- GridComponent.prototype.getFrozenDataRows = function () {
310
- return this.ej2Instances.getFrozenDataRows();
311
- };
312
- GridComponent.prototype.getFrozenLeftColumnHeaderByIndex = function (index) {
313
- return this.ej2Instances.getFrozenLeftColumnHeaderByIndex(index);
314
- };
315
- GridComponent.prototype.getFrozenLeftCount = function () {
316
- return this.ej2Instances.getFrozenLeftCount();
317
- };
318
- GridComponent.prototype.getFrozenMode = function () {
319
- return this.ej2Instances.getFrozenMode();
320
- };
321
- GridComponent.prototype.getFrozenRightCellFromIndex = function (rowIndex, columnIndex) {
322
- return this.ej2Instances.getFrozenRightCellFromIndex(rowIndex, columnIndex);
323
- };
324
- GridComponent.prototype.getFrozenRightColumnHeaderByIndex = function (index) {
325
- return this.ej2Instances.getFrozenRightColumnHeaderByIndex(index);
326
- };
327
- GridComponent.prototype.getFrozenRightDataRows = function () {
328
- return this.ej2Instances.getFrozenRightDataRows();
329
- };
330
- GridComponent.prototype.getFrozenRightRowByIndex = function (index) {
331
- return this.ej2Instances.getFrozenRightRowByIndex(index);
332
- };
333
- GridComponent.prototype.getFrozenRightRows = function () {
334
- return this.ej2Instances.getFrozenRightRows();
335
- };
336
- GridComponent.prototype.getFrozenRowByIndex = function (index) {
337
- return this.ej2Instances.getFrozenRowByIndex(index);
338
- };
339
- GridComponent.prototype.getHeaderContent = function () {
340
- return this.ej2Instances.getHeaderContent();
341
- };
342
- GridComponent.prototype.getHeaderTable = function () {
343
- return this.ej2Instances.getHeaderTable();
344
- };
345
- GridComponent.prototype.getHiddenColumns = function () {
346
- return this.ej2Instances.getHiddenColumns();
347
- };
348
- GridComponent.prototype.getMediaColumns = function () {
349
- return this.ej2Instances.getMediaColumns();
350
- };
351
- GridComponent.prototype.getMovableCellFromIndex = function (rowIndex, columnIndex) {
352
- return this.ej2Instances.getMovableCellFromIndex(rowIndex, columnIndex);
353
- };
354
- GridComponent.prototype.getMovableColumnHeaderByIndex = function (index) {
355
- return this.ej2Instances.getMovableColumnHeaderByIndex(index);
356
- };
357
- GridComponent.prototype.getMovableDataRows = function () {
358
- return this.ej2Instances.getMovableDataRows();
359
- };
360
- GridComponent.prototype.getMovableRowByIndex = function (index) {
361
- return this.ej2Instances.getMovableRowByIndex(index);
362
- };
363
- GridComponent.prototype.getMovableRows = function () {
364
- return this.ej2Instances.getMovableRows();
365
- };
366
- GridComponent.prototype.getPager = function () {
367
- return this.ej2Instances.getPager();
368
- };
369
- GridComponent.prototype.getPrimaryKeyFieldNames = function () {
370
- return this.ej2Instances.getPrimaryKeyFieldNames();
371
- };
372
- GridComponent.prototype.getRowByIndex = function (index) {
373
- return this.ej2Instances.getRowByIndex(index);
374
- };
375
- GridComponent.prototype.getRowIndexByPrimaryKey = function (value) {
376
- return this.ej2Instances.getRowIndexByPrimaryKey(value);
377
- };
378
- GridComponent.prototype.getRowInfo = function (target) {
379
- return this.ej2Instances.getRowInfo(target);
380
- };
381
- GridComponent.prototype.getRows = function () {
382
- return this.ej2Instances.getRows();
383
- };
384
- GridComponent.prototype.getSelectedColumnsUid = function () {
385
- return this.ej2Instances.getSelectedColumnsUid();
386
- };
387
- GridComponent.prototype.getSelectedRecords = function () {
388
- return this.ej2Instances.getSelectedRecords();
389
- };
390
- GridComponent.prototype.getSelectedRowCellIndexes = function () {
391
- return this.ej2Instances.getSelectedRowCellIndexes();
392
- };
393
- GridComponent.prototype.getSelectedRowIndexes = function () {
394
- return this.ej2Instances.getSelectedRowIndexes();
395
- };
396
- GridComponent.prototype.getSelectedRows = function () {
397
- return this.ej2Instances.getSelectedRows();
398
- };
399
- GridComponent.prototype.getSummaryValues = function (summaryCol, summaryData) {
400
- return this.ej2Instances.getSummaryValues(summaryCol, summaryData);
401
- };
402
- GridComponent.prototype.getUidByColumnField = function (field) {
403
- return this.ej2Instances.getUidByColumnField(field);
404
- };
405
- GridComponent.prototype.getVisibleColumns = function () {
406
- return this.ej2Instances.getVisibleColumns();
407
- };
408
- GridComponent.prototype.goToPage = function (pageNo) {
409
- return this.ej2Instances.goToPage(pageNo);
410
- };
411
- GridComponent.prototype.groupCollapseAll = function () {
412
- return this.ej2Instances.groupCollapseAll();
413
- };
414
- GridComponent.prototype.groupColumn = function (columnName) {
415
- return this.ej2Instances.groupColumn(columnName);
416
- };
417
- GridComponent.prototype.groupExpandAll = function () {
418
- return this.ej2Instances.groupExpandAll();
419
- };
420
- GridComponent.prototype.hideColumns = function (keys, hideBy) {
421
- return this.ej2Instances.hideColumns(keys, hideBy);
422
- };
423
- GridComponent.prototype.hideScroll = function () {
424
- return this.ej2Instances.hideScroll();
425
- };
426
- GridComponent.prototype.hideSpinner = function () {
427
- return this.ej2Instances.hideSpinner();
428
- };
429
- GridComponent.prototype.isFrozenGrid = function () {
430
- return this.ej2Instances.isFrozenGrid();
431
- };
432
- GridComponent.prototype.openColumnChooser = function (x, y) {
433
- return this.ej2Instances.openColumnChooser(x, y);
434
- };
435
- GridComponent.prototype.pdfExport = function (pdfExportProperties, isMultipleExport, pdfDoc, isBlob) {
436
- return this.ej2Instances.pdfExport(pdfExportProperties, isMultipleExport, pdfDoc, isBlob);
437
- };
438
- GridComponent.prototype.print = function () {
439
- return this.ej2Instances.print();
440
- };
441
- GridComponent.prototype.refresh = function () {
442
- return this.ej2Instances.refresh();
443
- };
444
- GridComponent.prototype.refreshColumns = function () {
445
- return this.ej2Instances.refreshColumns();
446
- };
447
- GridComponent.prototype.refreshHeader = function () {
448
- return this.ej2Instances.refreshHeader();
449
- };
450
- GridComponent.prototype.removeMaskRow = function () {
451
- return this.ej2Instances.removeMaskRow();
452
- };
453
- GridComponent.prototype.reorderColumnByIndex = function (fromIndex, toIndex) {
454
- return this.ej2Instances.reorderColumnByIndex(fromIndex, toIndex);
455
- };
456
- GridComponent.prototype.reorderColumnByTargetIndex = function (fieldName, toIndex) {
457
- return this.ej2Instances.reorderColumnByTargetIndex(fieldName, toIndex);
458
- };
459
- GridComponent.prototype.reorderColumns = function (fromFName, toFName) {
460
- return this.ej2Instances.reorderColumns(fromFName, toFName);
461
- };
462
- GridComponent.prototype.reorderRows = function (fromIndexes, toIndex) {
463
- return this.ej2Instances.reorderRows(fromIndexes, toIndex);
464
- };
465
- GridComponent.prototype.saveCell = function () {
466
- return this.ej2Instances.saveCell();
467
- };
468
- GridComponent.prototype.search = function (searchString) {
469
- return this.ej2Instances.search(searchString);
470
- };
471
- GridComponent.prototype.selectCell = function (cellIndex, isToggle) {
472
- return this.ej2Instances.selectCell(cellIndex, isToggle);
473
- };
474
- GridComponent.prototype.selectCells = function (rowCellIndexes) {
475
- return this.ej2Instances.selectCells(rowCellIndexes);
476
- };
477
- GridComponent.prototype.selectCellsByRange = function (startIndex, endIndex) {
478
- return this.ej2Instances.selectCellsByRange(startIndex, endIndex);
479
- };
480
- GridComponent.prototype.selectRow = function (index, isToggle) {
481
- return this.ej2Instances.selectRow(index, isToggle);
482
- };
483
- GridComponent.prototype.selectRows = function (rowIndexes) {
484
- return this.ej2Instances.selectRows(rowIndexes);
485
- };
486
- GridComponent.prototype.selectRowsByRange = function (startIndex, endIndex) {
487
- return this.ej2Instances.selectRowsByRange(startIndex, endIndex);
488
- };
489
- GridComponent.prototype.serverCsvExport = function (url) {
490
- return this.ej2Instances.serverCsvExport(url);
491
- };
492
- GridComponent.prototype.serverExcelExport = function (url) {
493
- return this.ej2Instances.serverExcelExport(url);
494
- };
495
- GridComponent.prototype.serverPdfExport = function (url) {
496
- return this.ej2Instances.serverPdfExport(url);
497
- };
498
- GridComponent.prototype.setCellValue = function (key, field, value) {
499
- return this.ej2Instances.setCellValue(key, field, value);
500
- };
501
- GridComponent.prototype.setGridContent = function (element) {
502
- return this.ej2Instances.setGridContent(element);
503
- };
504
- GridComponent.prototype.setGridContentTable = function (element) {
505
- return this.ej2Instances.setGridContentTable(element);
506
- };
507
- GridComponent.prototype.setGridHeaderContent = function (element) {
508
- return this.ej2Instances.setGridHeaderContent(element);
509
- };
510
- GridComponent.prototype.setGridHeaderTable = function (element) {
511
- return this.ej2Instances.setGridHeaderTable(element);
512
- };
513
- GridComponent.prototype.setGridPager = function (element) {
514
- return this.ej2Instances.setGridPager(element);
515
- };
516
- GridComponent.prototype.setRowData = function (key, rowData) {
517
- return this.ej2Instances.setRowData(key, rowData);
518
- };
519
- GridComponent.prototype.showAdaptiveFilterDialog = function () {
520
- return this.ej2Instances.showAdaptiveFilterDialog();
521
- };
522
- GridComponent.prototype.showAdaptiveSortDialog = function () {
523
- return this.ej2Instances.showAdaptiveSortDialog();
524
- };
525
- GridComponent.prototype.showColumns = function (keys, showBy) {
526
- return this.ej2Instances.showColumns(keys, showBy);
527
- };
528
- GridComponent.prototype.showMaskRow = function (axisDirection, dialogElement) {
529
- return this.ej2Instances.showMaskRow(axisDirection, dialogElement);
530
- };
531
- GridComponent.prototype.showSpinner = function () {
532
- return this.ej2Instances.showSpinner();
533
- };
534
- GridComponent.prototype.sortColumn = function (columnName, direction, isMultiSort) {
535
- return this.ej2Instances.sortColumn(columnName, direction, isMultiSort);
536
- };
537
- GridComponent.prototype.startEdit = function () {
538
- return this.ej2Instances.startEdit();
539
- };
540
- GridComponent.prototype.ungroupColumn = function (columnName) {
541
- return this.ej2Instances.ungroupColumn(columnName);
542
- };
543
- GridComponent.prototype.updateCell = function (rowIndex, field, value) {
544
- return this.ej2Instances.updateCell(rowIndex, field, value);
545
- };
546
- GridComponent.prototype.updateExternalMessage = function (message) {
547
- return this.ej2Instances.updateExternalMessage(message);
548
- };
549
- GridComponent.prototype.updateRow = function (index, data) {
550
- return this.ej2Instances.updateRow(index, data);
551
- };
552
- GridComponent.prototype.updateRowValue = function (key, rowData) {
553
- return this.ej2Instances.updateRowValue(key, rowData);
554
- };
555
- GridComponent = __decorate([
556
- EJComponentDecorator({
557
- props: properties,
558
- model: {
559
- event: 'modelchanged'
560
- }
561
- }, isExecute)
562
- ,Options({
563
- props: props,
564
- watch: watch,
565
- emits: emitProbs,
566
- provide: function provide() {
567
- return {
568
- custom: this.custom
569
- };
570
- }
571
- })
572
- ], GridComponent);
573
- return GridComponent;
574
- }(ComponentBase));
575
- export { GridComponent };
149
+ },
150
+ custom: function () {
151
+ this.updated();
152
+ },
153
+ addRecord: function (data, index) {
154
+ return this.ej2Instances.addRecord(data, index);
155
+ },
156
+ addShimmerEffect: function () {
157
+ return this.ej2Instances.addShimmerEffect();
158
+ },
159
+ autoFitColumns: function (fieldNames) {
160
+ return this.ej2Instances.autoFitColumns(fieldNames);
161
+ },
162
+ batchAsyncUpdate: function (changes) {
163
+ return this.ej2Instances.batchAsyncUpdate(changes);
164
+ },
165
+ batchUpdate: function (changes) {
166
+ return this.ej2Instances.batchUpdate(changes);
167
+ },
168
+ calculatePageSizeByParentHeight: function (containerHeight) {
169
+ return this.ej2Instances.calculatePageSizeByParentHeight(containerHeight);
170
+ },
171
+ changeDataSource: function (dataSource, columns) {
172
+ return this.ej2Instances.changeDataSource(dataSource, columns);
173
+ },
174
+ clearCellSelection: function () {
175
+ return this.ej2Instances.clearCellSelection();
176
+ },
177
+ clearFiltering: function (fields) {
178
+ return this.ej2Instances.clearFiltering(fields);
179
+ },
180
+ clearGrouping: function () {
181
+ return this.ej2Instances.clearGrouping();
182
+ },
183
+ clearRowSelection: function () {
184
+ return this.ej2Instances.clearRowSelection();
185
+ },
186
+ clearSelection: function () {
187
+ return this.ej2Instances.clearSelection();
188
+ },
189
+ clearSorting: function () {
190
+ return this.ej2Instances.clearSorting();
191
+ },
192
+ closeEdit: function () {
193
+ return this.ej2Instances.closeEdit();
194
+ },
195
+ copy: function (withHeader) {
196
+ return this.ej2Instances.copy(withHeader);
197
+ },
198
+ csvExport: function (excelExportProperties, isMultipleExport, workbook, isBlob) {
199
+ return this.ej2Instances.csvExport(excelExportProperties, isMultipleExport, workbook, isBlob);
200
+ },
201
+ dataReady: function () {
202
+ return this.ej2Instances.dataReady();
203
+ },
204
+ deleteRecord: function (fieldname, data) {
205
+ return this.ej2Instances.deleteRecord(fieldname, data);
206
+ },
207
+ deleteRow: function (tr) {
208
+ return this.ej2Instances.deleteRow(tr);
209
+ },
210
+ destroyTemplate: function (propertyNames, index) {
211
+ return this.ej2Instances.destroyTemplate(propertyNames, index);
212
+ },
213
+ detailCollapseAll: function () {
214
+ return this.ej2Instances.detailCollapseAll();
215
+ },
216
+ detailExpandAll: function () {
217
+ return this.ej2Instances.detailExpandAll();
218
+ },
219
+ editCell: function (index, field) {
220
+ return this.ej2Instances.editCell(index, field);
221
+ },
222
+ enableToolbarItems: function (items, isEnable) {
223
+ return this.ej2Instances.enableToolbarItems(items, isEnable);
224
+ },
225
+ endEdit: function () {
226
+ return this.ej2Instances.endEdit();
227
+ },
228
+ excelExport: function (excelExportProperties, isMultipleExport, workbook, isBlob) {
229
+ return this.ej2Instances.excelExport(excelExportProperties, isMultipleExport, workbook, isBlob);
230
+ },
231
+ extendRequiredModules: function (modules) {
232
+ return this.ej2Instances.extendRequiredModules(modules);
233
+ },
234
+ filterByColumn: function (fieldName, filterOperator, filterValue, predicate, matchCase, ignoreAccent, actualFilterValue, actualOperator) {
235
+ return this.ej2Instances.filterByColumn(fieldName, filterOperator, filterValue, predicate, matchCase, ignoreAccent, actualFilterValue, actualOperator);
236
+ },
237
+ getBatchChanges: function () {
238
+ return this.ej2Instances.getBatchChanges();
239
+ },
240
+ getCellFromIndex: function (rowIndex, columnIndex) {
241
+ return this.ej2Instances.getCellFromIndex(rowIndex, columnIndex);
242
+ },
243
+ getColumnByField: function (field) {
244
+ return this.ej2Instances.getColumnByField(field);
245
+ },
246
+ getColumnByUid: function (uid) {
247
+ return this.ej2Instances.getColumnByUid(uid);
248
+ },
249
+ getColumnFieldNames: function () {
250
+ return this.ej2Instances.getColumnFieldNames();
251
+ },
252
+ getColumnHeaderByField: function (field) {
253
+ return this.ej2Instances.getColumnHeaderByField(field);
254
+ },
255
+ getColumnHeaderByIndex: function (index) {
256
+ return this.ej2Instances.getColumnHeaderByIndex(index);
257
+ },
258
+ getColumnHeaderByUid: function (uid) {
259
+ return this.ej2Instances.getColumnHeaderByUid(uid);
260
+ },
261
+ getColumnIndexByField: function (field) {
262
+ return this.ej2Instances.getColumnIndexByField(field);
263
+ },
264
+ getColumnIndexByUid: function (uid) {
265
+ return this.ej2Instances.getColumnIndexByUid(uid);
266
+ },
267
+ getColumns: function (isRefresh) {
268
+ return this.ej2Instances.getColumns(isRefresh);
269
+ },
270
+ getContent: function () {
271
+ return this.ej2Instances.getContent();
272
+ },
273
+ getContentTable: function () {
274
+ return this.ej2Instances.getContentTable();
275
+ },
276
+ getCurrentViewRecords: function () {
277
+ return this.ej2Instances.getCurrentViewRecords();
278
+ },
279
+ getDataModule: function () {
280
+ return this.ej2Instances.getDataModule();
281
+ },
282
+ getDataRows: function () {
283
+ return this.ej2Instances.getDataRows();
284
+ },
285
+ getFilterUIInfo: function () {
286
+ return this.ej2Instances.getFilterUIInfo();
287
+ },
288
+ getFilteredRecords: function () {
289
+ return this.ej2Instances.getFilteredRecords();
290
+ },
291
+ getFooterContent: function () {
292
+ return this.ej2Instances.getFooterContent();
293
+ },
294
+ getFooterContentTable: function () {
295
+ return this.ej2Instances.getFooterContentTable();
296
+ },
297
+ getForeignKeyColumns: function () {
298
+ return this.ej2Instances.getForeignKeyColumns();
299
+ },
300
+ getFrozenDataRows: function () {
301
+ return this.ej2Instances.getFrozenDataRows();
302
+ },
303
+ getFrozenLeftColumnHeaderByIndex: function (index) {
304
+ return this.ej2Instances.getFrozenLeftColumnHeaderByIndex(index);
305
+ },
306
+ getFrozenLeftCount: function () {
307
+ return this.ej2Instances.getFrozenLeftCount();
308
+ },
309
+ getFrozenMode: function () {
310
+ return this.ej2Instances.getFrozenMode();
311
+ },
312
+ getFrozenRightCellFromIndex: function (rowIndex, columnIndex) {
313
+ return this.ej2Instances.getFrozenRightCellFromIndex(rowIndex, columnIndex);
314
+ },
315
+ getFrozenRightColumnHeaderByIndex: function (index) {
316
+ return this.ej2Instances.getFrozenRightColumnHeaderByIndex(index);
317
+ },
318
+ getFrozenRightDataRows: function () {
319
+ return this.ej2Instances.getFrozenRightDataRows();
320
+ },
321
+ getFrozenRightRowByIndex: function (index) {
322
+ return this.ej2Instances.getFrozenRightRowByIndex(index);
323
+ },
324
+ getFrozenRightRows: function () {
325
+ return this.ej2Instances.getFrozenRightRows();
326
+ },
327
+ getFrozenRowByIndex: function (index) {
328
+ return this.ej2Instances.getFrozenRowByIndex(index);
329
+ },
330
+ getHeaderContent: function () {
331
+ return this.ej2Instances.getHeaderContent();
332
+ },
333
+ getHeaderTable: function () {
334
+ return this.ej2Instances.getHeaderTable();
335
+ },
336
+ getHiddenColumns: function () {
337
+ return this.ej2Instances.getHiddenColumns();
338
+ },
339
+ getMediaColumns: function () {
340
+ return this.ej2Instances.getMediaColumns();
341
+ },
342
+ getMovableCellFromIndex: function (rowIndex, columnIndex) {
343
+ return this.ej2Instances.getMovableCellFromIndex(rowIndex, columnIndex);
344
+ },
345
+ getMovableColumnHeaderByIndex: function (index) {
346
+ return this.ej2Instances.getMovableColumnHeaderByIndex(index);
347
+ },
348
+ getMovableDataRows: function () {
349
+ return this.ej2Instances.getMovableDataRows();
350
+ },
351
+ getMovableRowByIndex: function (index) {
352
+ return this.ej2Instances.getMovableRowByIndex(index);
353
+ },
354
+ getMovableRows: function () {
355
+ return this.ej2Instances.getMovableRows();
356
+ },
357
+ getPager: function () {
358
+ return this.ej2Instances.getPager();
359
+ },
360
+ getPrimaryKeyFieldNames: function () {
361
+ return this.ej2Instances.getPrimaryKeyFieldNames();
362
+ },
363
+ getRowByIndex: function (index) {
364
+ return this.ej2Instances.getRowByIndex(index);
365
+ },
366
+ getRowIndexByPrimaryKey: function (value) {
367
+ return this.ej2Instances.getRowIndexByPrimaryKey(value);
368
+ },
369
+ getRowInfo: function (target) {
370
+ return this.ej2Instances.getRowInfo(target);
371
+ },
372
+ getRows: function () {
373
+ return this.ej2Instances.getRows();
374
+ },
375
+ getSelectedColumnsUid: function () {
376
+ return this.ej2Instances.getSelectedColumnsUid();
377
+ },
378
+ getSelectedRecords: function () {
379
+ return this.ej2Instances.getSelectedRecords();
380
+ },
381
+ getSelectedRowCellIndexes: function () {
382
+ return this.ej2Instances.getSelectedRowCellIndexes();
383
+ },
384
+ getSelectedRowIndexes: function () {
385
+ return this.ej2Instances.getSelectedRowIndexes();
386
+ },
387
+ getSelectedRows: function () {
388
+ return this.ej2Instances.getSelectedRows();
389
+ },
390
+ getSummaryValues: function (summaryCol, summaryData) {
391
+ return this.ej2Instances.getSummaryValues(summaryCol, summaryData);
392
+ },
393
+ getUidByColumnField: function (field) {
394
+ return this.ej2Instances.getUidByColumnField(field);
395
+ },
396
+ getVisibleColumns: function () {
397
+ return this.ej2Instances.getVisibleColumns();
398
+ },
399
+ goToPage: function (pageNo) {
400
+ return this.ej2Instances.goToPage(pageNo);
401
+ },
402
+ groupCollapseAll: function () {
403
+ return this.ej2Instances.groupCollapseAll();
404
+ },
405
+ groupColumn: function (columnName) {
406
+ return this.ej2Instances.groupColumn(columnName);
407
+ },
408
+ groupExpandAll: function () {
409
+ return this.ej2Instances.groupExpandAll();
410
+ },
411
+ hideColumns: function (keys, hideBy) {
412
+ return this.ej2Instances.hideColumns(keys, hideBy);
413
+ },
414
+ hideScroll: function () {
415
+ return this.ej2Instances.hideScroll();
416
+ },
417
+ hideSpinner: function () {
418
+ return this.ej2Instances.hideSpinner();
419
+ },
420
+ isFrozenGrid: function () {
421
+ return this.ej2Instances.isFrozenGrid();
422
+ },
423
+ openColumnChooser: function (x, y) {
424
+ return this.ej2Instances.openColumnChooser(x, y);
425
+ },
426
+ pdfExport: function (pdfExportProperties, isMultipleExport, pdfDoc, isBlob) {
427
+ return this.ej2Instances.pdfExport(pdfExportProperties, isMultipleExport, pdfDoc, isBlob);
428
+ },
429
+ print: function () {
430
+ return this.ej2Instances.print();
431
+ },
432
+ refresh: function () {
433
+ return this.ej2Instances.refresh();
434
+ },
435
+ refreshColumns: function () {
436
+ return this.ej2Instances.refreshColumns();
437
+ },
438
+ refreshHeader: function () {
439
+ return this.ej2Instances.refreshHeader();
440
+ },
441
+ removeMaskRow: function () {
442
+ return this.ej2Instances.removeMaskRow();
443
+ },
444
+ reorderColumnByIndex: function (fromIndex, toIndex) {
445
+ return this.ej2Instances.reorderColumnByIndex(fromIndex, toIndex);
446
+ },
447
+ reorderColumnByTargetIndex: function (fieldName, toIndex) {
448
+ return this.ej2Instances.reorderColumnByTargetIndex(fieldName, toIndex);
449
+ },
450
+ reorderColumns: function (fromFName, toFName) {
451
+ return this.ej2Instances.reorderColumns(fromFName, toFName);
452
+ },
453
+ reorderRows: function (fromIndexes, toIndex) {
454
+ return this.ej2Instances.reorderRows(fromIndexes, toIndex);
455
+ },
456
+ saveCell: function () {
457
+ return this.ej2Instances.saveCell();
458
+ },
459
+ search: function (searchString) {
460
+ return this.ej2Instances.search(searchString);
461
+ },
462
+ selectCell: function (cellIndex, isToggle) {
463
+ return this.ej2Instances.selectCell(cellIndex, isToggle);
464
+ },
465
+ selectCells: function (rowCellIndexes) {
466
+ return this.ej2Instances.selectCells(rowCellIndexes);
467
+ },
468
+ selectCellsByRange: function (startIndex, endIndex) {
469
+ return this.ej2Instances.selectCellsByRange(startIndex, endIndex);
470
+ },
471
+ selectRow: function (index, isToggle) {
472
+ return this.ej2Instances.selectRow(index, isToggle);
473
+ },
474
+ selectRows: function (rowIndexes) {
475
+ return this.ej2Instances.selectRows(rowIndexes);
476
+ },
477
+ selectRowsByRange: function (startIndex, endIndex) {
478
+ return this.ej2Instances.selectRowsByRange(startIndex, endIndex);
479
+ },
480
+ serverCsvExport: function (url) {
481
+ return this.ej2Instances.serverCsvExport(url);
482
+ },
483
+ serverExcelExport: function (url) {
484
+ return this.ej2Instances.serverExcelExport(url);
485
+ },
486
+ serverPdfExport: function (url) {
487
+ return this.ej2Instances.serverPdfExport(url);
488
+ },
489
+ setCellValue: function (key, field, value) {
490
+ return this.ej2Instances.setCellValue(key, field, value);
491
+ },
492
+ setGridContent: function (element) {
493
+ return this.ej2Instances.setGridContent(element);
494
+ },
495
+ setGridContentTable: function (element) {
496
+ return this.ej2Instances.setGridContentTable(element);
497
+ },
498
+ setGridHeaderContent: function (element) {
499
+ return this.ej2Instances.setGridHeaderContent(element);
500
+ },
501
+ setGridHeaderTable: function (element) {
502
+ return this.ej2Instances.setGridHeaderTable(element);
503
+ },
504
+ setGridPager: function (element) {
505
+ return this.ej2Instances.setGridPager(element);
506
+ },
507
+ setRowData: function (key, rowData) {
508
+ return this.ej2Instances.setRowData(key, rowData);
509
+ },
510
+ showAdaptiveFilterDialog: function () {
511
+ return this.ej2Instances.showAdaptiveFilterDialog();
512
+ },
513
+ showAdaptiveSortDialog: function () {
514
+ return this.ej2Instances.showAdaptiveSortDialog();
515
+ },
516
+ showColumns: function (keys, showBy) {
517
+ return this.ej2Instances.showColumns(keys, showBy);
518
+ },
519
+ showMaskRow: function (axisDirection, dialogElement) {
520
+ return this.ej2Instances.showMaskRow(axisDirection, dialogElement);
521
+ },
522
+ showSpinner: function () {
523
+ return this.ej2Instances.showSpinner();
524
+ },
525
+ sortColumn: function (columnName, direction, isMultiSort) {
526
+ return this.ej2Instances.sortColumn(columnName, direction, isMultiSort);
527
+ },
528
+ startEdit: function () {
529
+ return this.ej2Instances.startEdit();
530
+ },
531
+ ungroupColumn: function (columnName) {
532
+ return this.ej2Instances.ungroupColumn(columnName);
533
+ },
534
+ updateCell: function (rowIndex, field, value) {
535
+ return this.ej2Instances.updateCell(rowIndex, field, value);
536
+ },
537
+ updateExternalMessage: function (message) {
538
+ return this.ej2Instances.updateExternalMessage(message);
539
+ },
540
+ updateRow: function (index, data) {
541
+ return this.ej2Instances.updateRow(index, data);
542
+ },
543
+ updateRowValue: function (key, rowData) {
544
+ return this.ej2Instances.updateRowValue(key, rowData);
545
+ },
546
+ }
547
+ });
576
548
  export var GridPlugin = {
577
549
  name: 'ejs-grid',
578
550
  install: function (Vue) {