@syncfusion/ej2-vue-charts 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 (79) hide show
  1. package/CHANGELOG.md +15 -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
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "_from": "@syncfusion/ej2-vue-charts@*",
3
- "_id": "@syncfusion/ej2-vue-charts@20.4.53",
3
+ "_id": "@syncfusion/ej2-vue-charts@20.9.12",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-muqqFsyGn+TeRSUlDaoCoAQcjom/pj7YcDbHZ9J5V97TUtw87KfZTa4Jt4R4AqvHKNdVQ/yQ7t78ZKlv8/kFRw==",
5
+ "_integrity": "sha512-pI9o1LHe1RGrvzGvc9ViFZRLqWNT6+xkOogT+RmtBFz2tndhVbdJAem5B8+vx20FJjVbIHB7tfuR7Exlz6AMZQ==",
6
6
  "_location": "/@syncfusion/ej2-vue-charts",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -19,10 +19,10 @@
19
19
  "_requiredBy": [
20
20
  "/"
21
21
  ],
22
- "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-vue-charts/-/ej2-vue-charts-20.4.53.tgz",
23
- "_shasum": "af7e49e1de05118bcbc2f0eb31003a9be8860387",
22
+ "_resolved": "https://nexus.syncfusion.com/repository/ej2-release/@syncfusion/ej2-vue-charts/-/ej2-vue-charts-20.9.12.tgz",
23
+ "_shasum": "70ec4a3c141f6fe236ad1e03a4790e22fff5b793",
24
24
  "_spec": "@syncfusion/ej2-vue-charts@*",
25
- "_where": "/jenkins/workspace/ease-automation_release_19.1.0.1/packages/included",
25
+ "_where": "/jenkins/workspace/elease-automation_release_21.1.1/packages/included",
26
26
  "author": {
27
27
  "name": "Syncfusion Inc."
28
28
  },
@@ -31,9 +31,9 @@
31
31
  },
32
32
  "bundleDependencies": false,
33
33
  "dependencies": {
34
- "@syncfusion/ej2-base": "~20.4.51",
35
- "@syncfusion/ej2-charts": "20.4.54",
36
- "@syncfusion/ej2-vue-base": "~20.4.51"
34
+ "@syncfusion/ej2-base": "~21.1.35",
35
+ "@syncfusion/ej2-charts": "21.1.35",
36
+ "@syncfusion/ej2-vue-base": "~21.1.35"
37
37
  },
38
38
  "deprecated": false,
39
39
  "description": "Feature-rich chart control with built-in support for over 25 chart types, technical indictors, trendline, zooming, tooltip, selection, crosshair and trackball. for Vue",
@@ -66,6 +66,6 @@
66
66
  "scripts": {
67
67
  "postinstall": "node ../ej2-vue-base/postinstall.js"
68
68
  },
69
- "version": "20.4.54",
69
+ "version": "21.1.35",
70
70
  "sideEffects": false
71
71
  }
@@ -1,41 +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
  * Represents Vuejs AccumulationChart Component
10
7
  * ```vue
11
8
  * <ejs-accumulationchart></ejs-accumulationchart>
12
9
  * ```
13
10
  */
14
- export declare class AccumulationChartComponent 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
- trigger(eventName: string, eventProp: {
30
- [key: string]: Object;
31
- }, successHandler?: Function): void;
32
- render(createElement: any): any;
33
- custom(): void;
34
- export(type: Object, fileName: string): void;
35
- print(id?: string[] | string | Object): void;
36
- setAnnotationValue(annotationIndex: number, content: string): void;
37
- titleTooltip(event: Object, x: number, y: number, isTouch?: boolean): void;
38
- }
11
+ export declare let AccumulationChartComponent: any;
12
+ export declare type AccumulationChartComponent = InstanceType<typeof AccumulationChartComponent>;
39
13
  export declare const AccumulationChartPlugin: {
40
14
  name: string;
41
15
  install(Vue: any): void;
@@ -1,35 +1,13 @@
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 { AccumulationChart } from '@syncfusion/ej2-charts';
24
5
  import { AccumulationSeriesCollectionDirective, AccumulationSeriesDirective, AccumulationSeriesCollectionPlugin, AccumulationSeriesPlugin } from './series.directive';
25
6
  import { AccumulationAnnotationsDirective, AccumulationAnnotationDirective, AccumulationAnnotationsPlugin, AccumulationAnnotationPlugin } from './annotations.directive';
26
- import { Options } from 'vue-class-component';
27
- export var properties = ['isLazyUpdate', 'plugins', 'allowExport', 'annotations', 'background', 'backgroundImage', 'border', 'center', 'currencyCode', 'dataSource', 'enableAnimation', 'enableBorderOnMouseMove', 'enableExport', 'enablePersistence', 'enableRtl', 'enableSmartLabels', 'height', 'highlightColor', 'highlightMode', 'highlightPattern', 'isMultiSelect', 'legendSettings', 'locale', 'margin', 'selectedDataIndexes', 'selectionMode', 'selectionPattern', 'series', 'subTitle', 'subTitleStyle', 'theme', 'title', 'titleStyle', 'tooltip', 'useGroupingSeparator', 'width', 'afterExport', 'animationComplete', 'annotationRender', 'beforePrint', 'beforeResize', 'chartDoubleClick', 'chartMouseClick', 'chartMouseDown', 'chartMouseLeave', 'chartMouseMove', 'chartMouseUp', 'legendClick', 'legendRender', 'load', 'loaded', 'pointClick', 'pointMove', 'pointRender', 'resized', 'selectionComplete', 'seriesRender', 'textRender', 'tooltipRender'];
7
+ export var properties = ['isLazyUpdate', 'plugins', 'allowExport', 'annotations', 'background', 'backgroundImage', 'border', 'center', 'centerLabel', 'currencyCode', 'dataSource', 'enableAnimation', 'enableBorderOnMouseMove', 'enableExport', 'enablePersistence', 'enableRtl', 'enableSmartLabels', 'height', 'highlightColor', 'highlightMode', 'highlightPattern', 'isMultiSelect', 'legendSettings', 'locale', 'margin', 'selectedDataIndexes', 'selectionMode', 'selectionPattern', 'series', 'subTitle', 'subTitleStyle', 'theme', 'title', 'titleStyle', 'tooltip', 'useGroupingSeparator', 'width', 'afterExport', 'animationComplete', 'annotationRender', 'beforePrint', 'beforeResize', 'chartDoubleClick', 'chartMouseClick', 'chartMouseDown', 'chartMouseLeave', 'chartMouseMove', 'chartMouseUp', 'legendClick', 'legendRender', 'load', 'loaded', 'pointClick', 'pointMove', 'pointRender', 'resized', 'selectionComplete', 'seriesRender', 'textRender', 'tooltipRender'];
28
8
  export var modelProps = ['dataSource'];
29
9
  export var testProp = getProps({ props: properties });
30
- export var props = testProp[0];
31
- export var watch = testProp[1];
32
- export var emitProbs = Object.keys(watch);
10
+ export var props = testProp[0], watch = testProp[1], emitProbs = Object.keys(watch);
33
11
  emitProbs.push('modelchanged', 'update:modelValue');
34
12
  for (var _i = 0, modelProps_1 = modelProps; _i < modelProps_1.length; _i++) {
35
13
  var props_1 = modelProps_1[_i];
@@ -41,158 +19,149 @@ for (var _i = 0, modelProps_1 = modelProps; _i < modelProps_1.length; _i++) {
41
19
  * <ejs-accumulationchart></ejs-accumulationchart>
42
20
  * ```
43
21
  */
44
- var AccumulationChartComponent = /** @class */ (function (_super) {
45
- __extends(AccumulationChartComponent, _super);
46
- function AccumulationChartComponent() {
47
- var _this = _super.call(this, arguments) || this;
48
- _this.propKeys = properties;
49
- _this.models = modelProps;
50
- _this.hasChildDirective = true;
51
- _this.hasInjectedModules = true;
52
- _this.tagMapper = { "e-accumulation-series-collection": "e-accumulation-series", "e-accumulation-annotations": "e-accumulation-annotation" };
53
- _this.tagNameMapper = { "e-accumulation-series-collection": "e-series", "e-accumulation-annotations": "e-annotations" };
54
- _this.isVue3 = !isExecute;
55
- _this.ej2Instances = new AccumulationChart({});
56
- _this.ej2Instances._trigger = _this.ej2Instances.trigger;
57
- _this.ej2Instances.trigger = _this.trigger;
58
- _this.bindProperties();
59
- _this.ej2Instances._setProperties = _this.ej2Instances.setProperties;
60
- _this.ej2Instances.setProperties = _this.setProperties;
61
- _this.ej2Instances.clearTemplate = _this.clearTemplate;
62
- _this.updated = _this.updated;
63
- return _this;
64
- }
65
- AccumulationChartComponent.prototype.clearTemplate = function (templateNames) {
66
- if (!templateNames) {
67
- templateNames = Object.keys(this.templateCollection || {});
22
+ export var AccumulationChartComponent = vueDefineComponent({
23
+ name: 'AccumulationChartComponent',
24
+ mixins: [ComponentBase],
25
+ props: props,
26
+ watch: watch,
27
+ emits: emitProbs,
28
+ model: { event: 'modelchanged' },
29
+ provide: function () { return { custom: this.custom }; },
30
+ data: function () {
31
+ return {
32
+ ej2Instances: new AccumulationChart({}),
33
+ propKeys: properties,
34
+ models: modelProps,
35
+ hasChildDirective: true,
36
+ hasInjectedModules: true,
37
+ tagMapper: { "e-accumulation-series-collection": "e-accumulation-series", "e-accumulation-annotations": "e-accumulation-annotation" },
38
+ tagNameMapper: { "e-accumulation-series-collection": "e-series", "e-accumulation-annotations": "e-annotations" },
39
+ isVue3: !isExecute,
40
+ templateCollection: {},
41
+ };
42
+ },
43
+ created: function () {
44
+ this.ej2Instances._trigger = this.ej2Instances.trigger;
45
+ this.ej2Instances.trigger = this.trigger;
46
+ this.bindProperties();
47
+ this.ej2Instances._setProperties = this.ej2Instances.setProperties;
48
+ this.ej2Instances.setProperties = this.setProperties;
49
+ this.ej2Instances.clearTemplate = this.clearTemplate;
50
+ this.updated = this.updated;
51
+ },
52
+ render: function (createElement) {
53
+ var h = !isExecute ? gh : createElement;
54
+ var slots = null;
55
+ if (!isNullOrUndefined(this.$slots.default)) {
56
+ slots = !isExecute ? this.$slots.default() : this.$slots.default;
68
57
  }
69
- if (templateNames.length && this.templateCollection) {
70
- for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {
71
- var tempName = templateNames_1[_i];
72
- var elementCollection = this.templateCollection[tempName];
73
- if (elementCollection && elementCollection.length) {
74
- for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {
75
- var ele = elementCollection_1[_a];
76
- var destroy = getValue('__vue__.$destroy', ele);
77
- if (destroy) {
78
- ele.__vue__.$destroy();
79
- }
80
- if (ele.innerHTML) {
81
- ele.innerHTML = '';
58
+ return h('div', slots);
59
+ },
60
+ methods: {
61
+ clearTemplate: function (templateNames) {
62
+ if (!templateNames) {
63
+ templateNames = Object.keys(this.templateCollection || {});
64
+ }
65
+ if (templateNames.length && this.templateCollection) {
66
+ for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {
67
+ var tempName = templateNames_1[_i];
68
+ var elementCollection = this.templateCollection[tempName];
69
+ if (elementCollection && elementCollection.length) {
70
+ for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {
71
+ var ele = elementCollection_1[_a];
72
+ var destroy = getValue('__vue__.$destroy', ele);
73
+ if (destroy) {
74
+ ele.__vue__.$destroy();
75
+ }
76
+ if (ele.innerHTML) {
77
+ ele.innerHTML = '';
78
+ }
82
79
  }
80
+ delete this.templateCollection[tempName];
83
81
  }
84
- delete this.templateCollection[tempName];
85
82
  }
86
83
  }
87
- }
88
- };
89
- AccumulationChartComponent.prototype.setProperties = function (prop, muteOnChange) {
90
- var _this = this;
91
- if (this.isVue3) {
92
- this.models = !this.models ? this.ej2Instances.referModels : this.models;
93
- }
94
- if (this.ej2Instances && this.ej2Instances._setProperties) {
95
- this.ej2Instances._setProperties(prop, muteOnChange);
96
- }
97
- if (prop && this.models && this.models.length) {
98
- Object.keys(prop).map(function (key) {
99
- _this.models.map(function (model) {
100
- if ((key === model) && !(/datasource/i.test(key))) {
101
- if (_this.isVue3) {
102
- _this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
84
+ },
85
+ setProperties: function (prop, muteOnChange) {
86
+ var _this = this;
87
+ if (this.isVue3) {
88
+ this.models = !this.models ? this.ej2Instances.referModels : this.models;
89
+ }
90
+ if (this.ej2Instances && this.ej2Instances._setProperties) {
91
+ this.ej2Instances._setProperties(prop, muteOnChange);
92
+ }
93
+ if (prop && this.models && this.models.length) {
94
+ Object.keys(prop).map(function (key) {
95
+ _this.models.map(function (model) {
96
+ if ((key === model) && !(/datasource/i.test(key))) {
97
+ if (_this.isVue3) {
98
+ _this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
99
+ }
100
+ else {
101
+ _this.$emit('update:' + key, prop[key]);
102
+ _this.$emit('modelchanged', prop[key]);
103
+ }
103
104
  }
104
- else {
105
- _this.$emit('update:' + key, prop[key]);
106
- _this.$emit('modelchanged', prop[key]);
105
+ });
106
+ });
107
+ }
108
+ },
109
+ trigger: function (eventName, eventProp, successHandler) {
110
+ if (!isExecute) {
111
+ this.models = !this.models ? this.ej2Instances.referModels : this.models;
112
+ }
113
+ if ((eventName === 'change' || eventName === 'input') && this.models && (this.models.length !== 0)) {
114
+ var key = this.models.toString().match(/checked|value/) || [];
115
+ var propKey = key[0];
116
+ if (eventProp && key && !isUndefined(eventProp[propKey])) {
117
+ if (!isExecute) {
118
+ this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
119
+ this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
120
+ this.ej2Instances.vueInstance.$emit('update:modelValue', eventProp[propKey]);
121
+ }
122
+ else {
123
+ if (eventName === 'change' || (this.$props && !this.$props.isLazyUpdate)) {
124
+ this.$emit('update:' + propKey, eventProp[propKey]);
125
+ this.$emit('modelchanged', eventProp[propKey]);
107
126
  }
108
127
  }
109
- });
110
- });
111
- }
112
- };
113
- AccumulationChartComponent.prototype.trigger = function (eventName, eventProp, successHandler) {
114
- if (!isExecute) {
115
- this.models = !this.models ? this.ej2Instances.referModels : this.models;
116
- }
117
- if ((eventName === 'change' || eventName === 'input') && this.models && (this.models.length !== 0)) {
118
- var key = this.models.toString().match(/checked|value/) || [];
119
- var propKey = key[0];
120
- if (eventProp && key && !isUndefined(eventProp[propKey])) {
121
- if (!isExecute) {
122
- this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
123
- this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
124
- this.ej2Instances.vueInstance.$emit('update:modelValue', eventProp[propKey]);
125
128
  }
126
- else {
127
- if (eventName === 'change' || (this.$props && !this.$props.isLazyUpdate)) {
129
+ }
130
+ else if ((eventName === 'actionBegin' && eventProp.requestType === 'dateNavigate') && this.models && (this.models.length !== 0)) {
131
+ var key = this.models.toString().match(/currentView|selectedDate/) || [];
132
+ var propKey = key[0];
133
+ if (eventProp && key && !isUndefined(eventProp[propKey])) {
134
+ if (!isExecute) {
135
+ this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
136
+ this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
137
+ }
138
+ else {
128
139
  this.$emit('update:' + propKey, eventProp[propKey]);
129
140
  this.$emit('modelchanged', eventProp[propKey]);
130
141
  }
131
142
  }
132
143
  }
133
- }
134
- else if ((eventName === 'actionBegin' && eventProp.requestType === 'dateNavigate') && this.models && (this.models.length !== 0)) {
135
- var key = this.models.toString().match(/currentView|selectedDate/) || [];
136
- var propKey = key[0];
137
- if (eventProp && key && !isUndefined(eventProp[propKey])) {
138
- if (!isExecute) {
139
- this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
140
- this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
141
- }
142
- else {
143
- this.$emit('update:' + propKey, eventProp[propKey]);
144
- this.$emit('modelchanged', eventProp[propKey]);
145
- }
144
+ if ((this.ej2Instances && this.ej2Instances._trigger)) {
145
+ this.ej2Instances._trigger(eventName, eventProp, successHandler);
146
146
  }
147
- }
148
- if ((this.ej2Instances && this.ej2Instances._trigger)) {
149
- this.ej2Instances._trigger(eventName, eventProp, successHandler);
150
- }
151
- };
152
- AccumulationChartComponent.prototype.render = function (createElement) {
153
- var h = !isExecute ? gh : createElement;
154
- var slots = null;
155
- if (!isNullOrUndefined(this.$slots.default)) {
156
- slots = !isExecute ? this.$slots.default() : this.$slots.default;
157
- }
158
- return h('div', slots);
159
- };
160
- AccumulationChartComponent.prototype.custom = function () {
161
- this.updated();
162
- };
163
- AccumulationChartComponent.prototype.export = function (type, fileName) {
164
- return this.ej2Instances.export(type, fileName);
165
- };
166
- AccumulationChartComponent.prototype.print = function (id) {
167
- return this.ej2Instances.print(id);
168
- };
169
- AccumulationChartComponent.prototype.setAnnotationValue = function (annotationIndex, content) {
170
- return this.ej2Instances.setAnnotationValue(annotationIndex, content);
171
- };
172
- AccumulationChartComponent.prototype.titleTooltip = function (event, x, y, isTouch) {
173
- return this.ej2Instances.titleTooltip(event, x, y, isTouch);
174
- };
175
- AccumulationChartComponent = __decorate([
176
- EJComponentDecorator({
177
- props: properties,
178
- model: {
179
- event: 'modelchanged'
180
- }
181
- }, isExecute)
182
- ,Options({
183
- props: props,
184
- watch: watch,
185
- emits: emitProbs,
186
- provide: function provide() {
187
- return {
188
- custom: this.custom
189
- };
190
- }
191
- })
192
- ], AccumulationChartComponent);
193
- return AccumulationChartComponent;
194
- }(ComponentBase));
195
- export { AccumulationChartComponent };
147
+ },
148
+ custom: function () {
149
+ this.updated();
150
+ },
151
+ export: function (type, fileName) {
152
+ return this.ej2Instances.export(type, fileName);
153
+ },
154
+ print: function (id) {
155
+ return this.ej2Instances.print(id);
156
+ },
157
+ setAnnotationValue: function (annotationIndex, content) {
158
+ return this.ej2Instances.setAnnotationValue(annotationIndex, content);
159
+ },
160
+ titleTooltip: function (event, x, y, isTouch) {
161
+ return this.ej2Instances.titleTooltip(event, x, y, isTouch);
162
+ },
163
+ }
164
+ });
196
165
  export var AccumulationChartPlugin = {
197
166
  name: 'ejs-accumulationchart',
198
167
  install: function (Vue) {
@@ -1,20 +1,10 @@
1
- declare let vueImport: any;
2
- export declare class AccumulationAnnotationsDirective extends vueImport {
3
- constructor();
4
- render(createElement: any): void;
5
- updated(): void;
6
- getTag(): string;
7
- }
1
+ export declare let AccumulationAnnotationsDirective: any;
8
2
  export declare const AccumulationAnnotationsPlugin: {
9
3
  name: string;
10
4
  install(Vue: any): void;
11
5
  };
12
- export declare class AccumulationAnnotationDirective extends vueImport {
13
- render(): void;
14
- getTag(): string;
15
- }
6
+ export declare let AccumulationAnnotationDirective: any;
16
7
  export declare const AccumulationAnnotationPlugin: {
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 AccumulationAnnotationsDirective = /** @class */ (function (_super) {
33
- __extends(AccumulationAnnotationsDirective, _super);
34
- function AccumulationAnnotationsDirective() {
35
- return _super.call(this, arguments) || this;
36
- }
37
- AccumulationAnnotationsDirective.prototype.render = function (createElement) {
3
+ export var AccumulationAnnotationsDirective = 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 AccumulationAnnotationsDirective = /** @class */ (function (_super) {
44
12
  return h('div', { class: 'e-directive' }, slots);
45
13
  }
46
14
  return;
47
- };
48
- AccumulationAnnotationsDirective.prototype.updated = function () {
15
+ },
16
+ updated: function () {
49
17
  if (!isExecute && this.custom) {
50
18
  this.custom();
51
19
  }
52
- };
53
- AccumulationAnnotationsDirective.prototype.getTag = function () {
54
- return 'e-accumulation-annotations';
55
- };
56
- AccumulationAnnotationsDirective = __decorate([
57
- EJComponentDecorator({}, isExecute)
58
- ,Options({
59
- inject: {
60
- custom: {
61
- default: null
62
- }
63
- }
64
- })
65
- ], AccumulationAnnotationsDirective);
66
- return AccumulationAnnotationsDirective;
67
- }(vueImport));
68
- export { AccumulationAnnotationsDirective };
20
+ },
21
+ methods: {
22
+ getTag: function () {
23
+ return 'e-accumulation-annotations';
24
+ }
25
+ }
26
+ });
69
27
  export var AccumulationAnnotationsPlugin = {
70
28
  name: 'e-accumulation-annotations',
71
29
  install: function (Vue) {
72
30
  Vue.component(AccumulationAnnotationsPlugin.name, AccumulationAnnotationsDirective);
73
31
  }
74
32
  };
75
- var AccumulationAnnotationDirective = /** @class */ (function (_super) {
76
- __extends(AccumulationAnnotationDirective, _super);
77
- function AccumulationAnnotationDirective() {
78
- return _super !== null && _super.apply(this, arguments) || this;
79
- }
80
- AccumulationAnnotationDirective.prototype.render = function () {
33
+ export var AccumulationAnnotationDirective = vueDefineComponent({
34
+ render: function () {
81
35
  return;
82
- };
83
- AccumulationAnnotationDirective.prototype.getTag = function () {
84
- return 'e-accumulation-annotation';
85
- };
86
- AccumulationAnnotationDirective = __decorate([
87
- EJComponentDecorator({}, isExecute)
88
- ], AccumulationAnnotationDirective);
89
- return AccumulationAnnotationDirective;
90
- }(vueImport));
91
- export { AccumulationAnnotationDirective };
36
+ },
37
+ methods: {
38
+ getTag: function () {
39
+ return 'e-accumulation-annotation';
40
+ }
41
+ }
42
+ });
92
43
  export var AccumulationAnnotationPlugin = {
93
44
  name: 'e-accumulation-annotation',
94
45
  install: function (Vue) {
@@ -1,20 +1,10 @@
1
- declare let vueImport: any;
2
- export declare class AccumulationSeriesCollectionDirective extends vueImport {
3
- constructor();
4
- render(createElement: any): void;
5
- updated(): void;
6
- getTag(): string;
7
- }
1
+ export declare let AccumulationSeriesCollectionDirective: any;
8
2
  export declare const AccumulationSeriesCollectionPlugin: {
9
3
  name: string;
10
4
  install(Vue: any): void;
11
5
  };
12
- export declare class AccumulationSeriesDirective extends vueImport {
13
- render(): void;
14
- getTag(): string;
15
- }
6
+ export declare let AccumulationSeriesDirective: any;
16
7
  export declare const AccumulationSeriesPlugin: {
17
8
  name: string;
18
9
  install(Vue: any): void;
19
10
  };
20
- export {};