@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,33 +1,11 @@
1
- var __extends = (this && this.__extends) || (function () {
2
- var extendStatics = function (d, b) {
3
- extendStatics = Object.setPrototypeOf ||
4
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
- return extendStatics(d, b);
7
- };
8
- return function (d, b) {
9
- extendStatics(d, b);
10
- function __() { this.constructor = d; }
11
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12
- };
13
- })();
14
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
15
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
16
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
17
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
18
- return c > 3 && r && Object.defineProperty(target, key, r), r;
19
- };
20
- import { ComponentBase, EJComponentDecorator, getProps, gh, isExecute } from '@syncfusion/ej2-vue-base';
1
+ import { ComponentBase, gh, getProps, isExecute, vueDefineComponent } from '@syncfusion/ej2-vue-base';
21
2
  import { isNullOrUndefined, getValue } from '@syncfusion/ej2-base';
22
3
  import { Sparkline } from '@syncfusion/ej2-charts';
23
4
  import { RangeBandSettingsDirective, RangeBandSettingDirective, RangeBandSettingsPlugin, RangeBandSettingPlugin } from './rangebandsettings.directive';
24
- import { Options } from 'vue-class-component';
25
5
  export var properties = ['isLazyUpdate', 'plugins', 'axisSettings', 'border', 'containerArea', 'dataLabelSettings', 'dataSource', 'enablePersistence', 'enableRtl', 'endPointColor', 'fill', 'format', 'height', 'highPointColor', 'lineWidth', 'locale', 'lowPointColor', 'markerSettings', 'negativePointColor', 'opacity', 'padding', 'palette', 'query', 'rangeBandSettings', 'rangePadding', 'startPointColor', 'theme', 'tiePointColor', 'tooltipSettings', 'type', 'useGroupingSeparator', 'valueType', 'width', 'xName', 'yName', 'axisRendering', 'dataLabelRendering', 'load', 'loaded', 'markerRendering', 'pointRegionMouseClick', 'pointRegionMouseMove', 'pointRendering', 'resize', 'seriesRendering', 'sparklineMouseClick', 'sparklineMouseMove', 'tooltipInitialize'];
26
6
  export var modelProps = [];
27
7
  export var testProp = getProps({ props: properties });
28
- export var props = testProp[0];
29
- export var watch = testProp[1];
30
- export var emitProbs = Object.keys(watch);
8
+ export var props = testProp[0], watch = testProp[1], emitProbs = Object.keys(watch);
31
9
  emitProbs.push('modelchanged', 'update:modelValue');
32
10
  for (var _i = 0, modelProps_1 = modelProps; _i < modelProps_1.length; _i++) {
33
11
  var props_1 = modelProps_1[_i];
@@ -39,105 +17,98 @@ for (var _i = 0, modelProps_1 = modelProps; _i < modelProps_1.length; _i++) {
39
17
  * <ejs-sparkline></ejs-sparkline>
40
18
  * ```
41
19
  */
42
- var SparklineComponent = /** @class */ (function (_super) {
43
- __extends(SparklineComponent, _super);
44
- function SparklineComponent() {
45
- var _this = _super.call(this, arguments) || this;
46
- _this.propKeys = properties;
47
- _this.models = modelProps;
48
- _this.hasChildDirective = true;
49
- _this.hasInjectedModules = true;
50
- _this.tagMapper = { "e-rangeBandSettings": "e-rangeBandSetting" };
51
- _this.tagNameMapper = {};
52
- _this.isVue3 = !isExecute;
53
- _this.ej2Instances = new Sparkline({});
54
- _this.bindProperties();
55
- _this.ej2Instances._setProperties = _this.ej2Instances.setProperties;
56
- _this.ej2Instances.setProperties = _this.setProperties;
57
- _this.ej2Instances.clearTemplate = _this.clearTemplate;
58
- _this.updated = _this.updated;
59
- return _this;
60
- }
61
- SparklineComponent.prototype.clearTemplate = function (templateNames) {
62
- if (!templateNames) {
63
- templateNames = Object.keys(this.templateCollection || {});
20
+ export var SparklineComponent = vueDefineComponent({
21
+ name: 'SparklineComponent',
22
+ mixins: [ComponentBase],
23
+ props: props,
24
+ watch: watch,
25
+ emits: emitProbs,
26
+ provide: function () { return { custom: this.custom }; },
27
+ data: function () {
28
+ return {
29
+ ej2Instances: new Sparkline({}),
30
+ propKeys: properties,
31
+ models: modelProps,
32
+ hasChildDirective: true,
33
+ hasInjectedModules: true,
34
+ tagMapper: { "e-rangeBandSettings": "e-rangeBandSetting" },
35
+ tagNameMapper: {},
36
+ isVue3: !isExecute,
37
+ templateCollection: {},
38
+ };
39
+ },
40
+ created: function () {
41
+ this.bindProperties();
42
+ this.ej2Instances._setProperties = this.ej2Instances.setProperties;
43
+ this.ej2Instances.setProperties = this.setProperties;
44
+ this.ej2Instances.clearTemplate = this.clearTemplate;
45
+ this.updated = this.updated;
46
+ },
47
+ render: function (createElement) {
48
+ var h = !isExecute ? gh : createElement;
49
+ var slots = null;
50
+ if (!isNullOrUndefined(this.$slots.default)) {
51
+ slots = !isExecute ? this.$slots.default() : this.$slots.default;
64
52
  }
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 = '';
53
+ return h('div', slots);
54
+ },
55
+ methods: {
56
+ clearTemplate: function (templateNames) {
57
+ if (!templateNames) {
58
+ templateNames = Object.keys(this.templateCollection || {});
59
+ }
60
+ if (templateNames.length && this.templateCollection) {
61
+ for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {
62
+ var tempName = templateNames_1[_i];
63
+ var elementCollection = this.templateCollection[tempName];
64
+ if (elementCollection && elementCollection.length) {
65
+ for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {
66
+ var ele = elementCollection_1[_a];
67
+ var destroy = getValue('__vue__.$destroy', ele);
68
+ if (destroy) {
69
+ ele.__vue__.$destroy();
70
+ }
71
+ if (ele.innerHTML) {
72
+ ele.innerHTML = '';
73
+ }
78
74
  }
75
+ delete this.templateCollection[tempName];
79
76
  }
80
- delete this.templateCollection[tempName];
81
77
  }
82
78
  }
83
- }
84
- };
85
- SparklineComponent.prototype.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]);
79
+ },
80
+ setProperties: function (prop, muteOnChange) {
81
+ var _this = this;
82
+ if (this.isVue3) {
83
+ this.models = !this.models ? this.ej2Instances.referModels : this.models;
84
+ }
85
+ if (this.ej2Instances && this.ej2Instances._setProperties) {
86
+ this.ej2Instances._setProperties(prop, muteOnChange);
87
+ }
88
+ if (prop && this.models && this.models.length) {
89
+ Object.keys(prop).map(function (key) {
90
+ _this.models.map(function (model) {
91
+ if ((key === model) && !(/datasource/i.test(key))) {
92
+ if (_this.isVue3) {
93
+ _this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
94
+ }
95
+ else {
96
+ _this.$emit('update:' + key, prop[key]);
97
+ _this.$emit('modelchanged', prop[key]);
98
+ }
103
99
  }
104
- }
100
+ });
105
101
  });
106
- });
107
- }
108
- };
109
- SparklineComponent.prototype.render = function (createElement) {
110
- var h = !isExecute ? gh : createElement;
111
- var slots = null;
112
- if (!isNullOrUndefined(this.$slots.default)) {
113
- slots = !isExecute ? this.$slots.default() : this.$slots.default;
114
- }
115
- return h('div', slots);
116
- };
117
- SparklineComponent.prototype.custom = function () {
118
- this.updated();
119
- };
120
- SparklineComponent.prototype.renderSparkline = function () {
121
- return this.ej2Instances.renderSparkline();
122
- };
123
- SparklineComponent = __decorate([
124
- EJComponentDecorator({
125
- props: properties
126
- }, isExecute)
127
- ,Options({
128
- props: props,
129
- watch: watch,
130
- emits: emitProbs,
131
- provide: function provide() {
132
- return {
133
- custom: this.custom
134
- };
135
102
  }
136
- })
137
- ], SparklineComponent);
138
- return SparklineComponent;
139
- }(ComponentBase));
140
- export { SparklineComponent };
103
+ },
104
+ custom: function () {
105
+ this.updated();
106
+ },
107
+ renderSparkline: function () {
108
+ return this.ej2Instances.renderSparkline();
109
+ },
110
+ }
111
+ });
141
112
  export var SparklinePlugin = {
142
113
  name: 'ejs-sparkline',
143
114
  install: function (Vue) {
@@ -1,10 +1,4 @@
1
- declare let vueImport: any;
2
- export declare class StockChartAnnotationsDirective extends vueImport {
3
- constructor();
4
- render(createElement: any): void;
5
- updated(): void;
6
- getTag(): string;
7
- }
1
+ export declare let StockChartAnnotationsDirective: any;
8
2
  export declare const StockChartAnnotationsPlugin: {
9
3
  name: string;
10
4
  install(Vue: any): void;
@@ -21,12 +15,8 @@ export declare const StockChartAnnotationsPlugin: {
21
15
  * </ejs-chart>
22
16
  * ```
23
17
  */
24
- export declare class StockChartAnnotationDirective extends vueImport {
25
- render(): void;
26
- getTag(): string;
27
- }
18
+ export declare let StockChartAnnotationDirective: any;
28
19
  export declare const StockChartAnnotationPlugin: {
29
20
  name: string;
30
21
  install(Vue: any): void;
31
22
  };
32
- 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 StockChartAnnotationsDirective = /** @class */ (function (_super) {
33
- __extends(StockChartAnnotationsDirective, _super);
34
- function StockChartAnnotationsDirective() {
35
- return _super.call(this, arguments) || this;
36
- }
37
- StockChartAnnotationsDirective.prototype.render = function (createElement) {
3
+ export var StockChartAnnotationsDirective = vueDefineComponent({
4
+ inject: { custom: { default: null } },
5
+ render: function (createElement) {
38
6
  if (!isExecute) {
39
7
  var h = !isExecute ? gh : createElement;
40
8
  var slots = null;
@@ -44,28 +12,18 @@ var StockChartAnnotationsDirective = /** @class */ (function (_super) {
44
12
  return h('div', { class: 'e-directive' }, slots);
45
13
  }
46
14
  return;
47
- };
48
- StockChartAnnotationsDirective.prototype.updated = function () {
15
+ },
16
+ updated: function () {
49
17
  if (!isExecute && this.custom) {
50
18
  this.custom();
51
19
  }
52
- };
53
- StockChartAnnotationsDirective.prototype.getTag = function () {
54
- return 'e-stockchart-annotations';
55
- };
56
- StockChartAnnotationsDirective = __decorate([
57
- EJComponentDecorator({}, isExecute)
58
- ,Options({
59
- inject: {
60
- custom: {
61
- default: null
62
- }
63
- }
64
- })
65
- ], StockChartAnnotationsDirective);
66
- return StockChartAnnotationsDirective;
67
- }(vueImport));
68
- export { StockChartAnnotationsDirective };
20
+ },
21
+ methods: {
22
+ getTag: function () {
23
+ return 'e-stockchart-annotations';
24
+ }
25
+ }
26
+ });
69
27
  export var StockChartAnnotationsPlugin = {
70
28
  name: 'e-stockchart-annotations',
71
29
  install: function (Vue) {
@@ -84,23 +42,16 @@ export var StockChartAnnotationsPlugin = {
84
42
  * </ejs-chart>
85
43
  * ```
86
44
  */
87
- var StockChartAnnotationDirective = /** @class */ (function (_super) {
88
- __extends(StockChartAnnotationDirective, _super);
89
- function StockChartAnnotationDirective() {
90
- return _super !== null && _super.apply(this, arguments) || this;
91
- }
92
- StockChartAnnotationDirective.prototype.render = function () {
45
+ export var StockChartAnnotationDirective = vueDefineComponent({
46
+ render: function () {
93
47
  return;
94
- };
95
- StockChartAnnotationDirective.prototype.getTag = function () {
96
- return 'e-stockchart-annotation';
97
- };
98
- StockChartAnnotationDirective = __decorate([
99
- EJComponentDecorator({}, isExecute)
100
- ], StockChartAnnotationDirective);
101
- return StockChartAnnotationDirective;
102
- }(vueImport));
103
- export { StockChartAnnotationDirective };
48
+ },
49
+ methods: {
50
+ getTag: function () {
51
+ return 'e-stockchart-annotation';
52
+ }
53
+ }
54
+ });
104
55
  export var StockChartAnnotationPlugin = {
105
56
  name: 'e-stockchart-annotation',
106
57
  install: function (Vue) {
@@ -1,20 +1,10 @@
1
- declare let vueImport: any;
2
- export declare class StockChartAxesDirective extends vueImport {
3
- constructor();
4
- render(createElement: any): void;
5
- updated(): void;
6
- getTag(): string;
7
- }
1
+ export declare let StockChartAxesDirective: any;
8
2
  export declare const StockChartAxesPlugin: {
9
3
  name: string;
10
4
  install(Vue: any): void;
11
5
  };
12
- export declare class StockChartAxisDirective extends vueImport {
13
- render(): void;
14
- getTag(): string;
15
- }
6
+ export declare let StockChartAxisDirective: any;
16
7
  export declare const StockChartAxisPlugin: {
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 StockChartAxesDirective = /** @class */ (function (_super) {
33
- __extends(StockChartAxesDirective, _super);
34
- function StockChartAxesDirective() {
35
- return _super.call(this, arguments) || this;
36
- }
37
- StockChartAxesDirective.prototype.render = function (createElement) {
3
+ export var StockChartAxesDirective = 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 StockChartAxesDirective = /** @class */ (function (_super) {
44
12
  return h('div', { class: 'e-directive' }, slots);
45
13
  }
46
14
  return;
47
- };
48
- StockChartAxesDirective.prototype.updated = function () {
15
+ },
16
+ updated: function () {
49
17
  if (!isExecute && this.custom) {
50
18
  this.custom();
51
19
  }
52
- };
53
- StockChartAxesDirective.prototype.getTag = function () {
54
- return 'e-stockchart-axes';
55
- };
56
- StockChartAxesDirective = __decorate([
57
- EJComponentDecorator({}, isExecute)
58
- ,Options({
59
- inject: {
60
- custom: {
61
- default: null
62
- }
63
- }
64
- })
65
- ], StockChartAxesDirective);
66
- return StockChartAxesDirective;
67
- }(vueImport));
68
- export { StockChartAxesDirective };
20
+ },
21
+ methods: {
22
+ getTag: function () {
23
+ return 'e-stockchart-axes';
24
+ }
25
+ }
26
+ });
69
27
  export var StockChartAxesPlugin = {
70
28
  name: 'e-stockchart-axes',
71
29
  install: function (Vue) {
72
30
  Vue.component(StockChartAxesPlugin.name, StockChartAxesDirective);
73
31
  }
74
32
  };
75
- var StockChartAxisDirective = /** @class */ (function (_super) {
76
- __extends(StockChartAxisDirective, _super);
77
- function StockChartAxisDirective() {
78
- return _super !== null && _super.apply(this, arguments) || this;
79
- }
80
- StockChartAxisDirective.prototype.render = function () {
33
+ export var StockChartAxisDirective = vueDefineComponent({
34
+ render: function () {
81
35
  return;
82
- };
83
- StockChartAxisDirective.prototype.getTag = function () {
84
- return 'e-stockchart-axis';
85
- };
86
- StockChartAxisDirective = __decorate([
87
- EJComponentDecorator({}, isExecute)
88
- ], StockChartAxisDirective);
89
- return StockChartAxisDirective;
90
- }(vueImport));
91
- export { StockChartAxisDirective };
36
+ },
37
+ methods: {
38
+ getTag: function () {
39
+ return 'e-stockchart-axis';
40
+ }
41
+ }
42
+ });
92
43
  export var StockChartAxisPlugin = {
93
44
  name: 'e-stockchart-axis',
94
45
  install: function (Vue) {
@@ -1,20 +1,10 @@
1
- declare let vueImport: any;
2
- export declare class StockChartIndicatorsDirective extends vueImport {
3
- constructor();
4
- render(createElement: any): void;
5
- updated(): void;
6
- getTag(): string;
7
- }
1
+ export declare let StockChartIndicatorsDirective: any;
8
2
  export declare const StockChartIndicatorsPlugin: {
9
3
  name: string;
10
4
  install(Vue: any): void;
11
5
  };
12
- export declare class StockChartIndicatorDirective extends vueImport {
13
- render(): void;
14
- getTag(): string;
15
- }
6
+ export declare let StockChartIndicatorDirective: any;
16
7
  export declare const StockChartIndicatorPlugin: {
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 StockChartIndicatorsDirective = /** @class */ (function (_super) {
33
- __extends(StockChartIndicatorsDirective, _super);
34
- function StockChartIndicatorsDirective() {
35
- return _super.call(this, arguments) || this;
36
- }
37
- StockChartIndicatorsDirective.prototype.render = function (createElement) {
3
+ export var StockChartIndicatorsDirective = 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 StockChartIndicatorsDirective = /** @class */ (function (_super) {
44
12
  return h('div', { class: 'e-directive' }, slots);
45
13
  }
46
14
  return;
47
- };
48
- StockChartIndicatorsDirective.prototype.updated = function () {
15
+ },
16
+ updated: function () {
49
17
  if (!isExecute && this.custom) {
50
18
  this.custom();
51
19
  }
52
- };
53
- StockChartIndicatorsDirective.prototype.getTag = function () {
54
- return 'e-stockchart-indicators';
55
- };
56
- StockChartIndicatorsDirective = __decorate([
57
- EJComponentDecorator({}, isExecute)
58
- ,Options({
59
- inject: {
60
- custom: {
61
- default: null
62
- }
63
- }
64
- })
65
- ], StockChartIndicatorsDirective);
66
- return StockChartIndicatorsDirective;
67
- }(vueImport));
68
- export { StockChartIndicatorsDirective };
20
+ },
21
+ methods: {
22
+ getTag: function () {
23
+ return 'e-stockchart-indicators';
24
+ }
25
+ }
26
+ });
69
27
  export var StockChartIndicatorsPlugin = {
70
28
  name: 'e-stockchart-indicators',
71
29
  install: function (Vue) {
72
30
  Vue.component(StockChartIndicatorsPlugin.name, StockChartIndicatorsDirective);
73
31
  }
74
32
  };
75
- var StockChartIndicatorDirective = /** @class */ (function (_super) {
76
- __extends(StockChartIndicatorDirective, _super);
77
- function StockChartIndicatorDirective() {
78
- return _super !== null && _super.apply(this, arguments) || this;
79
- }
80
- StockChartIndicatorDirective.prototype.render = function () {
33
+ export var StockChartIndicatorDirective = vueDefineComponent({
34
+ render: function () {
81
35
  return;
82
- };
83
- StockChartIndicatorDirective.prototype.getTag = function () {
84
- return 'e-stockchart-indicator';
85
- };
86
- StockChartIndicatorDirective = __decorate([
87
- EJComponentDecorator({}, isExecute)
88
- ], StockChartIndicatorDirective);
89
- return StockChartIndicatorDirective;
90
- }(vueImport));
91
- export { StockChartIndicatorDirective };
36
+ },
37
+ methods: {
38
+ getTag: function () {
39
+ return 'e-stockchart-indicator';
40
+ }
41
+ }
42
+ });
92
43
  export var StockChartIndicatorPlugin = {
93
44
  name: 'e-stockchart-indicator',
94
45
  install: function (Vue) {