@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.
- package/CHANGELOG.md +23 -1
- package/dist/ej2-vue-charts.umd.min.js +2 -2
- package/dist/ej2-vue-charts.umd.min.js.map +1 -1
- package/dist/es6/ej2-vue-charts.es2015.js +1413 -2496
- package/dist/es6/ej2-vue-charts.es2015.js.map +1 -1
- package/dist/es6/ej2-vue-charts.es5.js +1639 -3093
- package/dist/es6/ej2-vue-charts.es5.js.map +1 -1
- package/dist/global/ej2-vue-charts.min.js +2 -2
- package/package.json +9 -9
- package/src/accumulation-chart/accumulationchart.component.d.ts +3 -29
- package/src/accumulation-chart/accumulationchart.component.js +132 -163
- package/src/accumulation-chart/annotations.directive.d.ts +2 -12
- package/src/accumulation-chart/annotations.directive.js +22 -71
- package/src/accumulation-chart/series.directive.d.ts +2 -12
- package/src/accumulation-chart/series.directive.js +22 -71
- package/src/bullet-chart/bulletchart.component.d.ts +3 -29
- package/src/bullet-chart/bulletchart.component.js +131 -162
- package/src/bullet-chart/ranges.directive.d.ts +2 -12
- package/src/bullet-chart/ranges.directive.js +22 -71
- package/src/chart/annotations.directive.d.ts +2 -12
- package/src/chart/annotations.directive.js +22 -71
- package/src/chart/axes.directive.d.ts +2 -12
- package/src/chart/axes.directive.js +22 -71
- package/src/chart/categories.directive.d.ts +2 -12
- package/src/chart/categories.directive.js +22 -71
- package/src/chart/chart.component.d.ts +3 -38
- package/src/chart/chart.component.js +158 -189
- package/src/chart/columns.directive.d.ts +2 -12
- package/src/chart/columns.directive.js +22 -71
- package/src/chart/indicators.directive.d.ts +2 -12
- package/src/chart/indicators.directive.js +22 -71
- package/src/chart/multilevellabels.directive.d.ts +2 -12
- package/src/chart/multilevellabels.directive.js +22 -71
- package/src/chart/rangecolorsettings.directive.d.ts +2 -12
- package/src/chart/rangecolorsettings.directive.js +22 -71
- package/src/chart/rows.directive.d.ts +2 -12
- package/src/chart/rows.directive.js +22 -71
- package/src/chart/segments.directive.d.ts +2 -12
- package/src/chart/segments.directive.js +22 -71
- package/src/chart/selecteddataindexes.directive.d.ts +2 -12
- package/src/chart/selecteddataindexes.directive.js +22 -71
- package/src/chart/series.directive.d.ts +2 -12
- package/src/chart/series.directive.js +22 -71
- package/src/chart/striplines.directive.d.ts +2 -12
- package/src/chart/striplines.directive.js +22 -71
- package/src/chart/trendlines.directive.d.ts +2 -12
- package/src/chart/trendlines.directive.js +22 -71
- package/src/range-navigator/rangenavigator.component.d.ts +3 -29
- package/src/range-navigator/rangenavigator.component.js +131 -162
- package/src/range-navigator/series.directive.d.ts +2 -12
- package/src/range-navigator/series.directive.js +22 -71
- package/src/smithchart/series.directive.d.ts +2 -12
- package/src/smithchart/series.directive.js +22 -71
- package/src/smithchart/smithchart.component.d.ts +3 -28
- package/src/smithchart/smithchart.component.js +101 -130
- package/src/sparkline/rangebandsettings.directive.d.ts +2 -12
- package/src/sparkline/rangebandsettings.directive.js +22 -71
- package/src/sparkline/sparkline.component.d.ts +3 -23
- package/src/sparkline/sparkline.component.js +86 -115
- package/src/stock-chart/annotations.directive.d.ts +2 -12
- package/src/stock-chart/annotations.directive.js +22 -71
- package/src/stock-chart/axes.directive.d.ts +2 -12
- package/src/stock-chart/axes.directive.js +22 -71
- package/src/stock-chart/indicators.directive.d.ts +2 -12
- package/src/stock-chart/indicators.directive.js +22 -71
- package/src/stock-chart/periods.directive.d.ts +2 -12
- package/src/stock-chart/periods.directive.js +22 -71
- package/src/stock-chart/rows.directive.d.ts +2 -12
- package/src/stock-chart/rows.directive.js +22 -71
- package/src/stock-chart/selecteddataindexes.directive.d.ts +2 -12
- package/src/stock-chart/selecteddataindexes.directive.js +22 -71
- package/src/stock-chart/series.directive.d.ts +2 -12
- package/src/stock-chart/series.directive.js +22 -71
- package/src/stock-chart/stockchart.component.d.ts +3 -30
- package/src/stock-chart/stockchart.component.js +134 -165
- package/src/stock-chart/stockevents.directive.d.ts +2 -12
- package/src/stock-chart/stockevents.directive.js +22 -71
- package/src/stock-chart/trendlines.directive.d.ts +2 -12
- package/src/stock-chart/trendlines.directive.js +22 -71
|
@@ -1,25 +1,6 @@
|
|
|
1
|
-
|
|
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 =
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
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
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
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
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
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
|
-
|
|
116
|
-
|
|
117
|
-
|
|
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
|
-
|
|
138
|
-
|
|
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
|
-
|
|
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
|
-
|
|
160
|
-
this.
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
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
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
24
|
-
|
|
25
|
-
|
|
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
|
-
|
|
15
|
+
},
|
|
16
|
+
updated: function () {
|
|
49
17
|
if (!isExecute && this.custom) {
|
|
50
18
|
this.custom();
|
|
51
19
|
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
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 =
|
|
76
|
-
|
|
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
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
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
|
|
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
|
|
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 {};
|