@syncfusion/ej2-vue-charts 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 (79) hide show
  1. package/CHANGELOG.md +23 -1
  2. package/dist/ej2-vue-charts.umd.min.js +2 -2
  3. package/dist/ej2-vue-charts.umd.min.js.map +1 -1
  4. package/dist/es6/ej2-vue-charts.es2015.js +1413 -2496
  5. package/dist/es6/ej2-vue-charts.es2015.js.map +1 -1
  6. package/dist/es6/ej2-vue-charts.es5.js +1639 -3093
  7. package/dist/es6/ej2-vue-charts.es5.js.map +1 -1
  8. package/dist/global/ej2-vue-charts.min.js +2 -2
  9. package/package.json +9 -9
  10. package/src/accumulation-chart/accumulationchart.component.d.ts +3 -29
  11. package/src/accumulation-chart/accumulationchart.component.js +132 -163
  12. package/src/accumulation-chart/annotations.directive.d.ts +2 -12
  13. package/src/accumulation-chart/annotations.directive.js +22 -71
  14. package/src/accumulation-chart/series.directive.d.ts +2 -12
  15. package/src/accumulation-chart/series.directive.js +22 -71
  16. package/src/bullet-chart/bulletchart.component.d.ts +3 -29
  17. package/src/bullet-chart/bulletchart.component.js +131 -162
  18. package/src/bullet-chart/ranges.directive.d.ts +2 -12
  19. package/src/bullet-chart/ranges.directive.js +22 -71
  20. package/src/chart/annotations.directive.d.ts +2 -12
  21. package/src/chart/annotations.directive.js +22 -71
  22. package/src/chart/axes.directive.d.ts +2 -12
  23. package/src/chart/axes.directive.js +22 -71
  24. package/src/chart/categories.directive.d.ts +2 -12
  25. package/src/chart/categories.directive.js +22 -71
  26. package/src/chart/chart.component.d.ts +3 -38
  27. package/src/chart/chart.component.js +158 -189
  28. package/src/chart/columns.directive.d.ts +2 -12
  29. package/src/chart/columns.directive.js +22 -71
  30. package/src/chart/indicators.directive.d.ts +2 -12
  31. package/src/chart/indicators.directive.js +22 -71
  32. package/src/chart/multilevellabels.directive.d.ts +2 -12
  33. package/src/chart/multilevellabels.directive.js +22 -71
  34. package/src/chart/rangecolorsettings.directive.d.ts +2 -12
  35. package/src/chart/rangecolorsettings.directive.js +22 -71
  36. package/src/chart/rows.directive.d.ts +2 -12
  37. package/src/chart/rows.directive.js +22 -71
  38. package/src/chart/segments.directive.d.ts +2 -12
  39. package/src/chart/segments.directive.js +22 -71
  40. package/src/chart/selecteddataindexes.directive.d.ts +2 -12
  41. package/src/chart/selecteddataindexes.directive.js +22 -71
  42. package/src/chart/series.directive.d.ts +2 -12
  43. package/src/chart/series.directive.js +22 -71
  44. package/src/chart/striplines.directive.d.ts +2 -12
  45. package/src/chart/striplines.directive.js +22 -71
  46. package/src/chart/trendlines.directive.d.ts +2 -12
  47. package/src/chart/trendlines.directive.js +22 -71
  48. package/src/range-navigator/rangenavigator.component.d.ts +3 -29
  49. package/src/range-navigator/rangenavigator.component.js +131 -162
  50. package/src/range-navigator/series.directive.d.ts +2 -12
  51. package/src/range-navigator/series.directive.js +22 -71
  52. package/src/smithchart/series.directive.d.ts +2 -12
  53. package/src/smithchart/series.directive.js +22 -71
  54. package/src/smithchart/smithchart.component.d.ts +3 -28
  55. package/src/smithchart/smithchart.component.js +101 -130
  56. package/src/sparkline/rangebandsettings.directive.d.ts +2 -12
  57. package/src/sparkline/rangebandsettings.directive.js +22 -71
  58. package/src/sparkline/sparkline.component.d.ts +3 -23
  59. package/src/sparkline/sparkline.component.js +86 -115
  60. package/src/stock-chart/annotations.directive.d.ts +2 -12
  61. package/src/stock-chart/annotations.directive.js +22 -71
  62. package/src/stock-chart/axes.directive.d.ts +2 -12
  63. package/src/stock-chart/axes.directive.js +22 -71
  64. package/src/stock-chart/indicators.directive.d.ts +2 -12
  65. package/src/stock-chart/indicators.directive.js +22 -71
  66. package/src/stock-chart/periods.directive.d.ts +2 -12
  67. package/src/stock-chart/periods.directive.js +22 -71
  68. package/src/stock-chart/rows.directive.d.ts +2 -12
  69. package/src/stock-chart/rows.directive.js +22 -71
  70. package/src/stock-chart/selecteddataindexes.directive.d.ts +2 -12
  71. package/src/stock-chart/selecteddataindexes.directive.js +22 -71
  72. package/src/stock-chart/series.directive.d.ts +2 -12
  73. package/src/stock-chart/series.directive.js +22 -71
  74. package/src/stock-chart/stockchart.component.d.ts +3 -30
  75. package/src/stock-chart/stockchart.component.js +134 -165
  76. package/src/stock-chart/stockevents.directive.d.ts +2 -12
  77. package/src/stock-chart/stockevents.directive.js +22 -71
  78. package/src/stock-chart/trendlines.directive.d.ts +2 -12
  79. package/src/stock-chart/trendlines.directive.js +22 -71
@@ -1,25 +1,6 @@
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 { Chart } from '@syncfusion/ej2-charts';
24
5
  import { TrendlinesDirective, TrendlineDirective, TrendlinesPlugin, TrendlinePlugin } from './trendlines.directive';
25
6
  import { SegmentsDirective, SegmentDirective, SegmentsPlugin, SegmentPlugin } from './segments.directive';
@@ -34,13 +15,10 @@ import { RangeColorSettingsDirective, RangeColorSettingDirective, RangeColorSett
34
15
  import { AnnotationsDirective, AnnotationDirective, AnnotationsPlugin, AnnotationPlugin } from './annotations.directive';
35
16
  import { SelectedDataIndexesDirective, SelectedDataIndexDirective, SelectedDataIndexesPlugin, SelectedDataIndexPlugin } from './selecteddataindexes.directive';
36
17
  import { IndicatorsDirective, IndicatorDirective, IndicatorsPlugin, IndicatorPlugin } from './indicators.directive';
37
- import { Options } from 'vue-class-component';
38
18
  export var properties = ['isLazyUpdate', 'plugins', 'allowExport', 'allowMultiSelection', 'annotations', 'axes', 'background', 'backgroundImage', 'border', 'chartArea', 'columns', 'crosshair', 'currencyCode', 'dataSource', 'description', 'enableAnimation', 'enableAutoIntervalOnBothAxis', 'enableCanvas', 'enableExport', 'enablePersistence', 'enableRtl', 'enableSideBySidePlacement', 'height', 'highlightColor', 'highlightMode', 'highlightPattern', 'indicators', 'isMultiSelect', 'isTransposed', 'legendSettings', 'locale', 'margin', 'palettes', 'primaryXAxis', 'primaryYAxis', 'rangeColorSettings', 'rows', 'selectedDataIndexes', 'selectionMode', 'selectionPattern', 'series', 'subTitle', 'subTitleStyle', 'tabIndex', 'theme', 'title', 'titleStyle', 'tooltip', 'useGroupingSeparator', 'width', 'zoomSettings', 'afterExport', 'animationComplete', 'annotationRender', 'axisLabelClick', 'axisLabelRender', 'axisMultiLabelRender', 'axisRangeCalculated', 'beforeExport', 'beforePrint', 'beforeResize', 'chartDoubleClick', 'chartMouseClick', 'chartMouseDown', 'chartMouseLeave', 'chartMouseMove', 'chartMouseUp', 'drag', 'dragComplete', 'dragEnd', 'dragStart', 'legendClick', 'legendRender', 'load', 'loaded', 'multiLevelLabelClick', 'onZooming', 'pointClick', 'pointDoubleClick', 'pointMove', 'pointRender', 'resized', 'scrollChanged', 'scrollEnd', 'scrollStart', 'selectionComplete', 'seriesRender', 'sharedTooltipRender', 'textRender', 'tooltipRender', 'zoomComplete'];
39
19
  export var modelProps = ['dataSource'];
40
20
  export var testProp = getProps({ props: properties });
41
- export var props = testProp[0];
42
- export var watch = testProp[1];
43
- export var emitProbs = Object.keys(watch);
21
+ export var props = testProp[0], watch = testProp[1], emitProbs = Object.keys(watch);
44
22
  emitProbs.push('modelchanged', 'update:modelValue');
45
23
  for (var _i = 0, modelProps_1 = modelProps; _i < modelProps_1.length; _i++) {
46
24
  var props_1 = modelProps_1[_i];
@@ -52,185 +30,176 @@ for (var _i = 0, modelProps_1 = modelProps; _i < modelProps_1.length; _i++) {
52
30
  * <ejs-chart></ejs-chart>
53
31
  * ```
54
32
  */
55
- var ChartComponent = /** @class */ (function (_super) {
56
- __extends(ChartComponent, _super);
57
- function ChartComponent() {
58
- var _this = _super.call(this, arguments) || this;
59
- _this.propKeys = properties;
60
- _this.models = modelProps;
61
- _this.hasChildDirective = true;
62
- _this.hasInjectedModules = true;
63
- _this.tagMapper = { "e-series-collection": { "e-series": { "e-trendlines": "e-trendline", "e-segments": "e-segment" } }, "e-axes": { "e-axis": { "e-striplines": "e-stripline", "e-multilevellabels": { "e-multilevellabel": { "e-categories": "e-category" } } } }, "e-rows": "e-row", "e-columns": "e-column", "e-rangecolorsettings": "e-rangecolorsetting", "e-annotations": "e-annotation", "e-selecteddataindexes": "e-selecteddataindex", "e-indicators": "e-indicator" };
64
- _this.tagNameMapper = { "e-series-collection": "e-series", "e-striplines": "e-stripLines", "e-multilevellabels": "e-multiLevelLabels", "e-rangecolorsettings": "e-rangeColorSettings", "e-selecteddataindexes": "e-selectedDataIndexes" };
65
- _this.isVue3 = !isExecute;
66
- _this.ej2Instances = new Chart({});
67
- _this.ej2Instances._trigger = _this.ej2Instances.trigger;
68
- _this.ej2Instances.trigger = _this.trigger;
69
- _this.bindProperties();
70
- _this.ej2Instances._setProperties = _this.ej2Instances.setProperties;
71
- _this.ej2Instances.setProperties = _this.setProperties;
72
- _this.ej2Instances.clearTemplate = _this.clearTemplate;
73
- _this.updated = _this.updated;
74
- return _this;
75
- }
76
- ChartComponent.prototype.clearTemplate = function (templateNames) {
77
- if (!templateNames) {
78
- templateNames = Object.keys(this.templateCollection || {});
33
+ export var ChartComponent = vueDefineComponent({
34
+ name: 'ChartComponent',
35
+ mixins: [ComponentBase],
36
+ props: props,
37
+ watch: watch,
38
+ emits: emitProbs,
39
+ model: { event: 'modelchanged' },
40
+ provide: function () { return { custom: this.custom }; },
41
+ data: function () {
42
+ return {
43
+ ej2Instances: new Chart({}),
44
+ propKeys: properties,
45
+ models: modelProps,
46
+ hasChildDirective: true,
47
+ hasInjectedModules: true,
48
+ tagMapper: { "e-series-collection": { "e-series": { "e-trendlines": "e-trendline", "e-segments": "e-segment" } }, "e-axes": { "e-axis": { "e-striplines": "e-stripline", "e-multilevellabels": { "e-multilevellabel": { "e-categories": "e-category" } } } }, "e-rows": "e-row", "e-columns": "e-column", "e-rangecolorsettings": "e-rangecolorsetting", "e-annotations": "e-annotation", "e-selecteddataindexes": "e-selecteddataindex", "e-indicators": "e-indicator" },
49
+ tagNameMapper: { "e-series-collection": "e-series", "e-striplines": "e-stripLines", "e-multilevellabels": "e-multiLevelLabels", "e-rangecolorsettings": "e-rangeColorSettings", "e-selecteddataindexes": "e-selectedDataIndexes" },
50
+ isVue3: !isExecute,
51
+ templateCollection: {},
52
+ };
53
+ },
54
+ created: function () {
55
+ this.ej2Instances._trigger = this.ej2Instances.trigger;
56
+ this.ej2Instances.trigger = this.trigger;
57
+ this.bindProperties();
58
+ this.ej2Instances._setProperties = this.ej2Instances.setProperties;
59
+ this.ej2Instances.setProperties = this.setProperties;
60
+ this.ej2Instances.clearTemplate = this.clearTemplate;
61
+ this.updated = this.updated;
62
+ },
63
+ render: function (createElement) {
64
+ var h = !isExecute ? gh : createElement;
65
+ var slots = null;
66
+ if (!isNullOrUndefined(this.$slots.default)) {
67
+ slots = !isExecute ? this.$slots.default() : this.$slots.default;
79
68
  }
80
- if (templateNames.length && this.templateCollection) {
81
- for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {
82
- var tempName = templateNames_1[_i];
83
- var elementCollection = this.templateCollection[tempName];
84
- if (elementCollection && elementCollection.length) {
85
- for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {
86
- var ele = elementCollection_1[_a];
87
- var destroy = getValue('__vue__.$destroy', ele);
88
- if (destroy) {
89
- ele.__vue__.$destroy();
90
- }
91
- if (ele.innerHTML) {
92
- ele.innerHTML = '';
69
+ return h('div', slots);
70
+ },
71
+ methods: {
72
+ clearTemplate: function (templateNames) {
73
+ if (!templateNames) {
74
+ templateNames = Object.keys(this.templateCollection || {});
75
+ }
76
+ if (templateNames.length && this.templateCollection) {
77
+ for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {
78
+ var tempName = templateNames_1[_i];
79
+ var elementCollection = this.templateCollection[tempName];
80
+ if (elementCollection && elementCollection.length) {
81
+ for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {
82
+ var ele = elementCollection_1[_a];
83
+ var destroy = getValue('__vue__.$destroy', ele);
84
+ if (destroy) {
85
+ ele.__vue__.$destroy();
86
+ }
87
+ if (ele.innerHTML) {
88
+ ele.innerHTML = '';
89
+ }
93
90
  }
91
+ delete this.templateCollection[tempName];
94
92
  }
95
- delete this.templateCollection[tempName];
96
93
  }
97
94
  }
98
- }
99
- };
100
- ChartComponent.prototype.setProperties = function (prop, muteOnChange) {
101
- var _this = this;
102
- if (this.isVue3) {
103
- this.models = !this.models ? this.ej2Instances.referModels : this.models;
104
- }
105
- if (this.ej2Instances && this.ej2Instances._setProperties) {
106
- this.ej2Instances._setProperties(prop, muteOnChange);
107
- }
108
- if (prop && this.models && this.models.length) {
109
- Object.keys(prop).map(function (key) {
110
- _this.models.map(function (model) {
111
- if ((key === model) && !(/datasource/i.test(key))) {
112
- if (_this.isVue3) {
113
- _this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
95
+ },
96
+ setProperties: function (prop, muteOnChange) {
97
+ var _this = this;
98
+ if (this.isVue3) {
99
+ this.models = !this.models ? this.ej2Instances.referModels : this.models;
100
+ }
101
+ if (this.ej2Instances && this.ej2Instances._setProperties) {
102
+ this.ej2Instances._setProperties(prop, muteOnChange);
103
+ }
104
+ if (prop && this.models && this.models.length) {
105
+ Object.keys(prop).map(function (key) {
106
+ _this.models.map(function (model) {
107
+ if ((key === model) && !(/datasource/i.test(key))) {
108
+ if (_this.isVue3) {
109
+ _this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
110
+ }
111
+ else {
112
+ _this.$emit('update:' + key, prop[key]);
113
+ _this.$emit('modelchanged', prop[key]);
114
+ }
114
115
  }
115
- else {
116
- _this.$emit('update:' + key, prop[key]);
117
- _this.$emit('modelchanged', prop[key]);
116
+ });
117
+ });
118
+ }
119
+ },
120
+ trigger: function (eventName, eventProp, successHandler) {
121
+ if (!isExecute) {
122
+ this.models = !this.models ? this.ej2Instances.referModels : this.models;
123
+ }
124
+ if ((eventName === 'change' || eventName === 'input') && this.models && (this.models.length !== 0)) {
125
+ var key = this.models.toString().match(/checked|value/) || [];
126
+ var propKey = key[0];
127
+ if (eventProp && key && !isUndefined(eventProp[propKey])) {
128
+ if (!isExecute) {
129
+ this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
130
+ this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
131
+ this.ej2Instances.vueInstance.$emit('update:modelValue', eventProp[propKey]);
132
+ }
133
+ else {
134
+ if (eventName === 'change' || (this.$props && !this.$props.isLazyUpdate)) {
135
+ this.$emit('update:' + propKey, eventProp[propKey]);
136
+ this.$emit('modelchanged', eventProp[propKey]);
118
137
  }
119
138
  }
120
- });
121
- });
122
- }
123
- };
124
- ChartComponent.prototype.trigger = function (eventName, eventProp, successHandler) {
125
- if (!isExecute) {
126
- this.models = !this.models ? this.ej2Instances.referModels : this.models;
127
- }
128
- if ((eventName === 'change' || eventName === 'input') && this.models && (this.models.length !== 0)) {
129
- var key = this.models.toString().match(/checked|value/) || [];
130
- var propKey = key[0];
131
- if (eventProp && key && !isUndefined(eventProp[propKey])) {
132
- if (!isExecute) {
133
- this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
134
- this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
135
- this.ej2Instances.vueInstance.$emit('update:modelValue', eventProp[propKey]);
136
139
  }
137
- else {
138
- if (eventName === 'change' || (this.$props && !this.$props.isLazyUpdate)) {
140
+ }
141
+ else if ((eventName === 'actionBegin' && eventProp.requestType === 'dateNavigate') && this.models && (this.models.length !== 0)) {
142
+ var key = this.models.toString().match(/currentView|selectedDate/) || [];
143
+ var propKey = key[0];
144
+ if (eventProp && key && !isUndefined(eventProp[propKey])) {
145
+ if (!isExecute) {
146
+ this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
147
+ this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
148
+ }
149
+ else {
139
150
  this.$emit('update:' + propKey, eventProp[propKey]);
140
151
  this.$emit('modelchanged', eventProp[propKey]);
141
152
  }
142
153
  }
143
154
  }
144
- }
145
- else if ((eventName === 'actionBegin' && eventProp.requestType === 'dateNavigate') && this.models && (this.models.length !== 0)) {
146
- var key = this.models.toString().match(/currentView|selectedDate/) || [];
147
- var propKey = key[0];
148
- if (eventProp && key && !isUndefined(eventProp[propKey])) {
149
- if (!isExecute) {
150
- this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
151
- this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
152
- }
153
- else {
154
- this.$emit('update:' + propKey, eventProp[propKey]);
155
- this.$emit('modelchanged', eventProp[propKey]);
156
- }
155
+ if ((this.ej2Instances && this.ej2Instances._trigger)) {
156
+ this.ej2Instances._trigger(eventName, eventProp, successHandler);
157
157
  }
158
- }
159
- if ((this.ej2Instances && this.ej2Instances._trigger)) {
160
- this.ej2Instances._trigger(eventName, eventProp, successHandler);
161
- }
162
- };
163
- ChartComponent.prototype.render = function (createElement) {
164
- var h = !isExecute ? gh : createElement;
165
- var slots = null;
166
- if (!isNullOrUndefined(this.$slots.default)) {
167
- slots = !isExecute ? this.$slots.default() : this.$slots.default;
168
- }
169
- return h('div', slots);
170
- };
171
- ChartComponent.prototype.custom = function () {
172
- this.updated();
173
- };
174
- ChartComponent.prototype.addAxes = function (axisCollection) {
175
- return this.ej2Instances.addAxes(axisCollection);
176
- };
177
- ChartComponent.prototype.addSeries = function (seriesCollection) {
178
- return this.ej2Instances.addSeries(seriesCollection);
179
- };
180
- ChartComponent.prototype.clearSeries = function () {
181
- return this.ej2Instances.clearSeries();
182
- };
183
- ChartComponent.prototype.createChartSvg = function () {
184
- return this.ej2Instances.createChartSvg();
185
- };
186
- ChartComponent.prototype.export = function (type, fileName) {
187
- return this.ej2Instances.export(type, fileName);
188
- };
189
- ChartComponent.prototype.getLocalizedLabel = function (key) {
190
- return this.ej2Instances.getLocalizedLabel(key);
191
- };
192
- ChartComponent.prototype.isSecondaryAxis = function (axis) {
193
- return this.ej2Instances.isSecondaryAxis(axis);
194
- };
195
- ChartComponent.prototype.print = function (id) {
196
- return this.ej2Instances.print(id);
197
- };
198
- ChartComponent.prototype.processData = function (render) {
199
- return this.ej2Instances.processData(render);
200
- };
201
- ChartComponent.prototype.refreshLiveData = function () {
202
- return this.ej2Instances.refreshLiveData();
203
- };
204
- ChartComponent.prototype.removeAxis = function (index) {
205
- return this.ej2Instances.removeAxis(index);
206
- };
207
- ChartComponent.prototype.removeSeries = function (index) {
208
- return this.ej2Instances.removeSeries(index);
209
- };
210
- ChartComponent.prototype.setAnnotationValue = function (annotationIndex, content) {
211
- return this.ej2Instances.setAnnotationValue(annotationIndex, content);
212
- };
213
- ChartComponent = __decorate([
214
- EJComponentDecorator({
215
- props: properties,
216
- model: {
217
- event: 'modelchanged'
218
- }
219
- }, isExecute)
220
- ,Options({
221
- props: props,
222
- watch: watch,
223
- emits: emitProbs,
224
- provide: function provide() {
225
- return {
226
- custom: this.custom
227
- };
228
- }
229
- })
230
- ], ChartComponent);
231
- return ChartComponent;
232
- }(ComponentBase));
233
- export { ChartComponent };
158
+ },
159
+ custom: function () {
160
+ this.updated();
161
+ },
162
+ addAxes: function (axisCollection) {
163
+ return this.ej2Instances.addAxes(axisCollection);
164
+ },
165
+ addSeries: function (seriesCollection) {
166
+ return this.ej2Instances.addSeries(seriesCollection);
167
+ },
168
+ clearSeries: function () {
169
+ return this.ej2Instances.clearSeries();
170
+ },
171
+ createChartSvg: function () {
172
+ return this.ej2Instances.createChartSvg();
173
+ },
174
+ export: function (type, fileName) {
175
+ return this.ej2Instances.export(type, fileName);
176
+ },
177
+ getLocalizedLabel: function (key) {
178
+ return this.ej2Instances.getLocalizedLabel(key);
179
+ },
180
+ isSecondaryAxis: function (axis) {
181
+ return this.ej2Instances.isSecondaryAxis(axis);
182
+ },
183
+ print: function (id) {
184
+ return this.ej2Instances.print(id);
185
+ },
186
+ processData: function (render) {
187
+ return this.ej2Instances.processData(render);
188
+ },
189
+ refreshLiveData: function () {
190
+ return this.ej2Instances.refreshLiveData();
191
+ },
192
+ removeAxis: function (index) {
193
+ return this.ej2Instances.removeAxis(index);
194
+ },
195
+ removeSeries: function (index) {
196
+ return this.ej2Instances.removeSeries(index);
197
+ },
198
+ setAnnotationValue: function (annotationIndex, content) {
199
+ return this.ej2Instances.setAnnotationValue(annotationIndex, content);
200
+ },
201
+ }
202
+ });
234
203
  export var ChartPlugin = {
235
204
  name: 'ejs-chart',
236
205
  install: function (Vue) {
@@ -1,20 +1,10 @@
1
- declare let vueImport: any;
2
- export declare class ColumnsDirective extends vueImport {
3
- constructor();
4
- render(createElement: any): void;
5
- updated(): void;
6
- getTag(): string;
7
- }
1
+ export declare let ColumnsDirective: any;
8
2
  export declare const ColumnsPlugin: {
9
3
  name: string;
10
4
  install(Vue: any): void;
11
5
  };
12
- export declare class ColumnDirective extends vueImport {
13
- render(): void;
14
- getTag(): string;
15
- }
6
+ export declare let ColumnDirective: any;
16
7
  export declare const ColumnPlugin: {
17
8
  name: string;
18
9
  install(Vue: any): void;
19
10
  };
20
- export {};
@@ -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 ColumnsDirective = /** @class */ (function (_super) {
33
- __extends(ColumnsDirective, _super);
34
- function ColumnsDirective() {
35
- return _super.call(this, arguments) || this;
36
- }
37
- ColumnsDirective.prototype.render = function (createElement) {
3
+ export var ColumnsDirective = 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,51 +12,34 @@ var ColumnsDirective = /** @class */ (function (_super) {
44
12
  return h('div', { class: 'e-directive' }, slots);
45
13
  }
46
14
  return;
47
- };
48
- ColumnsDirective.prototype.updated = function () {
15
+ },
16
+ updated: function () {
49
17
  if (!isExecute && this.custom) {
50
18
  this.custom();
51
19
  }
52
- };
53
- ColumnsDirective.prototype.getTag = function () {
54
- return 'e-columns';
55
- };
56
- ColumnsDirective = __decorate([
57
- EJComponentDecorator({}, isExecute)
58
- ,Options({
59
- inject: {
60
- custom: {
61
- default: null
62
- }
63
- }
64
- })
65
- ], ColumnsDirective);
66
- return ColumnsDirective;
67
- }(vueImport));
68
- export { ColumnsDirective };
20
+ },
21
+ methods: {
22
+ getTag: function () {
23
+ return 'e-columns';
24
+ }
25
+ }
26
+ });
69
27
  export var ColumnsPlugin = {
70
28
  name: 'e-columns',
71
29
  install: function (Vue) {
72
30
  Vue.component(ColumnsPlugin.name, ColumnsDirective);
73
31
  }
74
32
  };
75
- var ColumnDirective = /** @class */ (function (_super) {
76
- __extends(ColumnDirective, _super);
77
- function ColumnDirective() {
78
- return _super !== null && _super.apply(this, arguments) || this;
79
- }
80
- ColumnDirective.prototype.render = function () {
33
+ export var ColumnDirective = vueDefineComponent({
34
+ render: function () {
81
35
  return;
82
- };
83
- ColumnDirective.prototype.getTag = function () {
84
- return 'e-column';
85
- };
86
- ColumnDirective = __decorate([
87
- EJComponentDecorator({}, isExecute)
88
- ], ColumnDirective);
89
- return ColumnDirective;
90
- }(vueImport));
91
- export { ColumnDirective };
36
+ },
37
+ methods: {
38
+ getTag: function () {
39
+ return 'e-column';
40
+ }
41
+ }
42
+ });
92
43
  export var ColumnPlugin = {
93
44
  name: 'e-column',
94
45
  install: function (Vue) {
@@ -1,20 +1,10 @@
1
- declare let vueImport: any;
2
- export declare class IndicatorsDirective extends vueImport {
3
- constructor();
4
- render(createElement: any): void;
5
- updated(): void;
6
- getTag(): string;
7
- }
1
+ export declare let IndicatorsDirective: any;
8
2
  export declare const IndicatorsPlugin: {
9
3
  name: string;
10
4
  install(Vue: any): void;
11
5
  };
12
- export declare class IndicatorDirective extends vueImport {
13
- render(): void;
14
- getTag(): string;
15
- }
6
+ export declare let IndicatorDirective: any;
16
7
  export declare const IndicatorPlugin: {
17
8
  name: string;
18
9
  install(Vue: any): void;
19
10
  };
20
- export {};