@progress/kendo-vue-charts 4.3.3 → 4.4.0-dev.202405071452
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/dist/cdn/js/kendo-vue-charts.js +1 -1
- package/dist/es/main.d.ts +1 -0
- package/dist/es/main.js +1 -0
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/sankey/Sankey.d.ts +61 -0
- package/dist/es/sankey/Sankey.js +243 -0
- package/dist/es/sankey/main.d.ts +4 -0
- package/dist/es/sankey/main.js +3 -0
- package/dist/es/sankey/messages.d.ts +10 -0
- package/dist/es/sankey/messages.js +11 -0
- package/dist/es/sankey/theme-service.d.ts +5 -0
- package/dist/es/sankey/theme-service.js +101 -0
- package/dist/es/sankey/tooltip.d.ts +61 -0
- package/dist/es/sankey/tooltip.js +311 -0
- package/dist/es/sankey/types.d.ts +159 -0
- package/dist/es/sankey/types.js +1 -0
- package/dist/es/sankey/utils.d.ts +5 -0
- package/dist/es/sankey/utils.js +5 -0
- package/dist/esm/main.d.ts +1 -0
- package/dist/esm/main.js +1 -0
- package/dist/esm/package-metadata.js +1 -1
- package/dist/esm/sankey/Sankey.d.ts +61 -0
- package/dist/esm/sankey/Sankey.js +243 -0
- package/dist/esm/sankey/main.d.ts +4 -0
- package/dist/esm/sankey/main.js +3 -0
- package/dist/esm/sankey/messages.d.ts +10 -0
- package/dist/esm/sankey/messages.js +11 -0
- package/dist/esm/sankey/theme-service.d.ts +5 -0
- package/dist/esm/sankey/theme-service.js +101 -0
- package/dist/esm/sankey/tooltip.d.ts +61 -0
- package/dist/esm/sankey/tooltip.js +311 -0
- package/dist/esm/sankey/types.d.ts +159 -0
- package/dist/esm/sankey/types.js +1 -0
- package/dist/esm/sankey/utils.d.ts +5 -0
- package/dist/esm/sankey/utils.js +5 -0
- package/dist/npm/main.d.ts +1 -0
- package/dist/npm/main.js +1 -0
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/sankey/Sankey.d.ts +61 -0
- package/dist/npm/sankey/Sankey.js +250 -0
- package/dist/npm/sankey/main.d.ts +4 -0
- package/dist/npm/sankey/main.js +7 -0
- package/dist/npm/sankey/messages.d.ts +10 -0
- package/dist/npm/sankey/messages.js +14 -0
- package/dist/npm/sankey/theme-service.d.ts +5 -0
- package/dist/npm/sankey/theme-service.js +105 -0
- package/dist/npm/sankey/tooltip.d.ts +61 -0
- package/dist/npm/sankey/tooltip.js +318 -0
- package/dist/npm/sankey/types.d.ts +159 -0
- package/dist/npm/sankey/types.js +2 -0
- package/dist/npm/sankey/utils.d.ts +5 -0
- package/dist/npm/sankey/utils.js +8 -0
- package/package.json +9 -7
|
@@ -0,0 +1,318 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var __assign = undefined && undefined.__assign || function () {
|
|
4
|
+
__assign = Object.assign || function (t) {
|
|
5
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
6
|
+
s = arguments[i];
|
|
7
|
+
for (var p in s) {
|
|
8
|
+
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
return __assign.apply(this, arguments);
|
|
14
|
+
};
|
|
15
|
+
Object.defineProperty(exports, "__esModule", {
|
|
16
|
+
value: true
|
|
17
|
+
});
|
|
18
|
+
exports.TooltipVue2 = exports.Tooltip = void 0;
|
|
19
|
+
// @ts-ignore
|
|
20
|
+
var Vue = require("vue");
|
|
21
|
+
var allVue = Vue;
|
|
22
|
+
var gh = allVue.h;
|
|
23
|
+
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
24
|
+
var kendo_vue_common_1 = require("@progress/kendo-vue-common");
|
|
25
|
+
var kendo_svg_icons_1 = require("@progress/kendo-svg-icons");
|
|
26
|
+
var kendo_vue_intl_1 = require("@progress/kendo-vue-intl");
|
|
27
|
+
var messages_1 = require("./messages");
|
|
28
|
+
var space = 3;
|
|
29
|
+
var textMargin = "0 ".concat(space, "px");
|
|
30
|
+
var tooltipStyles = {
|
|
31
|
+
display: 'flex',
|
|
32
|
+
alignItems: 'center'
|
|
33
|
+
};
|
|
34
|
+
var Square = {
|
|
35
|
+
name: 'Square',
|
|
36
|
+
props: {
|
|
37
|
+
color: String
|
|
38
|
+
},
|
|
39
|
+
// @ts-ignore
|
|
40
|
+
setup: !isV3 ? undefined : function () {
|
|
41
|
+
var v3 = !!isV3;
|
|
42
|
+
return {
|
|
43
|
+
v3: v3
|
|
44
|
+
};
|
|
45
|
+
},
|
|
46
|
+
render: function render(createElement) {
|
|
47
|
+
var h = gh || createElement;
|
|
48
|
+
return h("div", {
|
|
49
|
+
style: {
|
|
50
|
+
width: '15px',
|
|
51
|
+
height: '15px',
|
|
52
|
+
'background-color': this.$props.color,
|
|
53
|
+
display: 'inline-flex',
|
|
54
|
+
marginLeft: space
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
var Text = {
|
|
60
|
+
name: 'Text',
|
|
61
|
+
props: {
|
|
62
|
+
value: String
|
|
63
|
+
},
|
|
64
|
+
// @ts-ignore
|
|
65
|
+
setup: !isV3 ? undefined : function () {
|
|
66
|
+
var v3 = !!isV3;
|
|
67
|
+
return {
|
|
68
|
+
v3: v3
|
|
69
|
+
};
|
|
70
|
+
},
|
|
71
|
+
render: function render(createElement) {
|
|
72
|
+
var h = gh || createElement;
|
|
73
|
+
return h("span", {
|
|
74
|
+
style: {
|
|
75
|
+
margin: textMargin
|
|
76
|
+
}
|
|
77
|
+
}, [this.$props.value]);
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
var Units = {
|
|
81
|
+
name: 'Units',
|
|
82
|
+
props: {
|
|
83
|
+
value: Number
|
|
84
|
+
},
|
|
85
|
+
inject: {
|
|
86
|
+
kendoLocalizationService: {
|
|
87
|
+
default: null
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
// @ts-ignore
|
|
91
|
+
setup: !isV3 ? undefined : function () {
|
|
92
|
+
var v3 = !!isV3;
|
|
93
|
+
return {
|
|
94
|
+
v3: v3
|
|
95
|
+
};
|
|
96
|
+
},
|
|
97
|
+
render: function render(createElement) {
|
|
98
|
+
var h = gh || createElement;
|
|
99
|
+
var loc = (0, kendo_vue_intl_1.provideLocalizationService)(this);
|
|
100
|
+
var message = loc.toLanguageString(messages_1.tooltipUnitFormat, messages_1.messages[messages_1.tooltipUnitFormat]);
|
|
101
|
+
var formatted = new kendo_vue_intl_1.IntlService('en').format(message, [this.$props.value || 0]);
|
|
102
|
+
return h(Text, {
|
|
103
|
+
value: formatted,
|
|
104
|
+
attrs: this.v3 ? undefined : {
|
|
105
|
+
value: formatted
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
};
|
|
110
|
+
var NodeTooltipContent = {
|
|
111
|
+
name: 'NodeTooltipContent',
|
|
112
|
+
props: {
|
|
113
|
+
dataItem: Object,
|
|
114
|
+
nodeValue: Number
|
|
115
|
+
},
|
|
116
|
+
// @ts-ignore
|
|
117
|
+
setup: !isV3 ? undefined : function () {
|
|
118
|
+
var v3 = !!isV3;
|
|
119
|
+
return {
|
|
120
|
+
v3: v3
|
|
121
|
+
};
|
|
122
|
+
},
|
|
123
|
+
render: function render(createElement) {
|
|
124
|
+
var h = gh || createElement;
|
|
125
|
+
var _a = this.$props.dataItem,
|
|
126
|
+
color = _a.color,
|
|
127
|
+
label = _a.label;
|
|
128
|
+
return h("div", {
|
|
129
|
+
style: tooltipStyles,
|
|
130
|
+
"class": "k-tooltip-content"
|
|
131
|
+
}, [h(Square, {
|
|
132
|
+
color: color,
|
|
133
|
+
attrs: this.v3 ? undefined : {
|
|
134
|
+
color: color
|
|
135
|
+
}
|
|
136
|
+
}), h(Text, {
|
|
137
|
+
value: label.text,
|
|
138
|
+
attrs: this.v3 ? undefined : {
|
|
139
|
+
value: label.text
|
|
140
|
+
}
|
|
141
|
+
}), h(Units, {
|
|
142
|
+
value: this.$props.nodeValue,
|
|
143
|
+
attrs: this.v3 ? undefined : {
|
|
144
|
+
value: this.$props.nodeValue
|
|
145
|
+
}
|
|
146
|
+
})]);
|
|
147
|
+
}
|
|
148
|
+
};
|
|
149
|
+
var LinkTooltipContent = {
|
|
150
|
+
name: 'LinkTooltipContent',
|
|
151
|
+
props: {
|
|
152
|
+
dataItem: Object
|
|
153
|
+
},
|
|
154
|
+
// @ts-ignore
|
|
155
|
+
setup: !isV3 ? undefined : function () {
|
|
156
|
+
var v3 = !!isV3;
|
|
157
|
+
return {
|
|
158
|
+
v3: v3
|
|
159
|
+
};
|
|
160
|
+
},
|
|
161
|
+
render: function render(createElement) {
|
|
162
|
+
var h = gh || createElement;
|
|
163
|
+
var _a = this.$props.dataItem,
|
|
164
|
+
source = _a.source,
|
|
165
|
+
target = _a.target,
|
|
166
|
+
value = _a.value;
|
|
167
|
+
return h("div", {
|
|
168
|
+
style: tooltipStyles
|
|
169
|
+
}, [h(Square, {
|
|
170
|
+
color: source.color,
|
|
171
|
+
attrs: this.v3 ? undefined : {
|
|
172
|
+
color: source.color
|
|
173
|
+
}
|
|
174
|
+
}), h(Text, {
|
|
175
|
+
value: source.label.text,
|
|
176
|
+
attrs: this.v3 ? undefined : {
|
|
177
|
+
value: source.label.text
|
|
178
|
+
}
|
|
179
|
+
}), h(kendo_vue_common_1.Icon, {
|
|
180
|
+
icon: kendo_svg_icons_1.arrowRightIcon,
|
|
181
|
+
attrs: this.v3 ? undefined : {
|
|
182
|
+
icon: kendo_svg_icons_1.arrowRightIcon,
|
|
183
|
+
name: "arrow-right"
|
|
184
|
+
},
|
|
185
|
+
name: "arrow-right"
|
|
186
|
+
}), h(Square, {
|
|
187
|
+
color: target.color,
|
|
188
|
+
attrs: this.v3 ? undefined : {
|
|
189
|
+
color: target.color
|
|
190
|
+
}
|
|
191
|
+
}), h(Text, {
|
|
192
|
+
value: target.label.text,
|
|
193
|
+
attrs: this.v3 ? undefined : {
|
|
194
|
+
value: target.label.text
|
|
195
|
+
}
|
|
196
|
+
}), h(Units, {
|
|
197
|
+
value: value,
|
|
198
|
+
attrs: this.v3 ? undefined : {
|
|
199
|
+
value: value
|
|
200
|
+
}
|
|
201
|
+
})]);
|
|
202
|
+
}
|
|
203
|
+
};
|
|
204
|
+
/**
|
|
205
|
+
* @hidden
|
|
206
|
+
*/
|
|
207
|
+
var TooltipVue2 = {
|
|
208
|
+
name: 'SankeyTooltip',
|
|
209
|
+
props: {
|
|
210
|
+
eventData: Object,
|
|
211
|
+
tooltipData: Object,
|
|
212
|
+
nodeContent: [String, Object, Function],
|
|
213
|
+
linkContent: [String, Object, Function],
|
|
214
|
+
offset: Number
|
|
215
|
+
},
|
|
216
|
+
data: function data() {
|
|
217
|
+
return {
|
|
218
|
+
top: '',
|
|
219
|
+
left: '',
|
|
220
|
+
visibility: 'hidden'
|
|
221
|
+
};
|
|
222
|
+
},
|
|
223
|
+
mounted: function mounted() {
|
|
224
|
+
this.element = (0, kendo_vue_common_1.getRef)(this, 'element');
|
|
225
|
+
this.showTooltip();
|
|
226
|
+
},
|
|
227
|
+
updated: function updated() {
|
|
228
|
+
this.showTooltip();
|
|
229
|
+
},
|
|
230
|
+
destroyed: !!isV3 ? undefined : function () {
|
|
231
|
+
this.destroyTooltip();
|
|
232
|
+
},
|
|
233
|
+
// @ts-ignore
|
|
234
|
+
unmounted: function unmounted() {
|
|
235
|
+
this.destroyTooltip();
|
|
236
|
+
},
|
|
237
|
+
methods: {
|
|
238
|
+
destroyTooltip: function destroyTooltip() {
|
|
239
|
+
// no need to destroy anything
|
|
240
|
+
},
|
|
241
|
+
showTooltip: function showTooltip() {
|
|
242
|
+
var _a = this.$props,
|
|
243
|
+
offsetOption = _a.offset,
|
|
244
|
+
tooltipData = _a.tooltipData;
|
|
245
|
+
var element = this.element;
|
|
246
|
+
if (!tooltipData || !element) {
|
|
247
|
+
return;
|
|
248
|
+
}
|
|
249
|
+
var size = {
|
|
250
|
+
width: element.offsetWidth,
|
|
251
|
+
height: element.offsetHeight
|
|
252
|
+
};
|
|
253
|
+
var offset = __assign({}, tooltipData.popupOffset);
|
|
254
|
+
var popupAlign = tooltipData.popupAlign;
|
|
255
|
+
offset.left += popupAlign.horizontal === 'left' ? offsetOption : -1 * offsetOption;
|
|
256
|
+
if (popupAlign.horizontal === 'right') {
|
|
257
|
+
offset.left -= size.width;
|
|
258
|
+
}
|
|
259
|
+
if (popupAlign.vertical === 'bottom') {
|
|
260
|
+
offset.top -= size.height + offsetOption;
|
|
261
|
+
} else {
|
|
262
|
+
offset.top += offsetOption;
|
|
263
|
+
}
|
|
264
|
+
this.$data.top = offset.top + 'px';
|
|
265
|
+
this.$data.left = offset.left + 'px';
|
|
266
|
+
this.$data.visibility = '';
|
|
267
|
+
}
|
|
268
|
+
},
|
|
269
|
+
// @ts-ignore
|
|
270
|
+
setup: !isV3 ? undefined : function () {
|
|
271
|
+
var v3 = !!isV3;
|
|
272
|
+
return {
|
|
273
|
+
v3: v3
|
|
274
|
+
};
|
|
275
|
+
},
|
|
276
|
+
// @ts-ignore
|
|
277
|
+
render: function render(createElement) {
|
|
278
|
+
var h = gh || createElement;
|
|
279
|
+
var _a = this.$props,
|
|
280
|
+
nodeContent = _a.nodeContent,
|
|
281
|
+
linkContent = _a.linkContent,
|
|
282
|
+
_b = _a.eventData,
|
|
283
|
+
dataItem = _b.dataItem,
|
|
284
|
+
nodeValue = _b.nodeValue,
|
|
285
|
+
targetType = _b.targetType;
|
|
286
|
+
var template = targetType === 'node' ? nodeContent : linkContent;
|
|
287
|
+
var ContentComponent = targetType === 'node' ? NodeTooltipContent : LinkTooltipContent;
|
|
288
|
+
var content = kendo_vue_common_1.getTemplate.call(this, {
|
|
289
|
+
h: h,
|
|
290
|
+
template: template,
|
|
291
|
+
defaultRendering: h(ContentComponent, {
|
|
292
|
+
dataItem: dataItem,
|
|
293
|
+
attrs: this.v3 ? undefined : {
|
|
294
|
+
dataItem: dataItem,
|
|
295
|
+
nodeValue: nodeValue
|
|
296
|
+
},
|
|
297
|
+
nodeValue: nodeValue
|
|
298
|
+
})
|
|
299
|
+
});
|
|
300
|
+
return h("div", {
|
|
301
|
+
ref: (0, kendo_vue_common_1.setRef)(this, 'element'),
|
|
302
|
+
style: {
|
|
303
|
+
top: this.top,
|
|
304
|
+
left: this.left,
|
|
305
|
+
visibility: this.visibility
|
|
306
|
+
},
|
|
307
|
+
"class": "k-tooltip k-sankey-tooltip k-chart-tooltip k-chart-shared-tooltip"
|
|
308
|
+
}, [h("div", {
|
|
309
|
+
"class": "k-tooltip-content"
|
|
310
|
+
}, [content])]);
|
|
311
|
+
}
|
|
312
|
+
};
|
|
313
|
+
exports.TooltipVue2 = TooltipVue2;
|
|
314
|
+
/**
|
|
315
|
+
* @hidden
|
|
316
|
+
*/
|
|
317
|
+
var Tooltip = TooltipVue2;
|
|
318
|
+
exports.Tooltip = Tooltip;
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
import { SankeyData, SankeyExportVisualOptions, SankeyHorizontalMargin, SankeyLabel, SankeyLabelDefaults, SankeyLabelStroke, SankeyLegendItem, SankeyLink, SankeyLinkDataItem, SankeyLinkDefaults, SankeyLinkHighlight, SankeyNode, SankeyNodeDataItem, SankeyNodeDefaults, SankeyOptions, SankeyTooltipEvent, SankeyTooltip as SankeyTooltipInterface, SankeyEvent as SankeyWidgetEvent } from '@progress/kendo-charts';
|
|
2
|
+
import { Legend, Title } from '../common/property-types';
|
|
3
|
+
export { SankeyData, SankeyExportVisualOptions, SankeyHorizontalMargin, SankeyLabel, SankeyLabelDefaults, SankeyLabelStroke, SankeyLegendItem, SankeyLink, SankeyLinkDataItem, SankeyLinkDefaults, SankeyLinkHighlight, SankeyNode, SankeyNodeDataItem, SankeyNodeDefaults, SankeyOptions };
|
|
4
|
+
import { Sankey } from './Sankey';
|
|
5
|
+
/**
|
|
6
|
+
* The KendoReact Sankey event object.
|
|
7
|
+
*/
|
|
8
|
+
export interface SankeyEvent extends SankeyWidgetEvent {
|
|
9
|
+
/**
|
|
10
|
+
* The `Sankey` component that triggered the event.
|
|
11
|
+
*/
|
|
12
|
+
target: typeof Sankey;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Represents the Sankey title options.
|
|
16
|
+
*/
|
|
17
|
+
export interface SankeyTitle extends Title {
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Represents the Sankey legend options.
|
|
21
|
+
*/
|
|
22
|
+
export interface SankeyLegend extends Omit<Legend, 'inactiveItems' | 'item'> {
|
|
23
|
+
/**
|
|
24
|
+
* The configuration of the legend items.
|
|
25
|
+
*/
|
|
26
|
+
item?: SankeyLegendItem;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Represents the props of the Sankey tooltip content component.
|
|
30
|
+
*/
|
|
31
|
+
export interface TooltipContentProps {
|
|
32
|
+
/**
|
|
33
|
+
* Represents the dataItem object of the hovered node or link element.
|
|
34
|
+
*/
|
|
35
|
+
dataItem: SankeyNodeDataItem | SankeyLinkDataItem;
|
|
36
|
+
/**
|
|
37
|
+
* The value of the hovered node element.
|
|
38
|
+
* The value is available only when the hovered element is a node.
|
|
39
|
+
*/
|
|
40
|
+
nodeValue?: number;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Represents the props of the Sankey tooltip component.
|
|
44
|
+
*
|
|
45
|
+
* @hidden
|
|
46
|
+
*/
|
|
47
|
+
export interface SankeyTooltipProps {
|
|
48
|
+
/**
|
|
49
|
+
* The event object of the Sankey tooltip.
|
|
50
|
+
*/
|
|
51
|
+
eventData: Pick<SankeyTooltipEvent, 'dataItem' | 'nodeValue' | 'targetType'>;
|
|
52
|
+
/**
|
|
53
|
+
* The distance between the tooltip and the mouse pointer in pixels.
|
|
54
|
+
*/
|
|
55
|
+
offset: number;
|
|
56
|
+
/**
|
|
57
|
+
* The tooltip data of the Sankey component.
|
|
58
|
+
*/
|
|
59
|
+
tooltipData: SankeyTooltipEvent['tooltipData'];
|
|
60
|
+
/**
|
|
61
|
+
* The content component of the Sankey node tooltip. Can be string that is pointing to a namedSlot or a render function;
|
|
62
|
+
*/
|
|
63
|
+
nodeContent?: any;
|
|
64
|
+
/**
|
|
65
|
+
* The content component of the Sankey link tooltip. Can be string that is pointing to a namedSlot or a render function;
|
|
66
|
+
*/
|
|
67
|
+
linkContent?: any;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Represents the Sankey tooltip configuration.
|
|
71
|
+
*/
|
|
72
|
+
export interface SankeyTooltip extends SankeyTooltipInterface {
|
|
73
|
+
/**
|
|
74
|
+
* Indicates whether the Sankey tooltips will be rendered.
|
|
75
|
+
*/
|
|
76
|
+
visible?: boolean;
|
|
77
|
+
/**
|
|
78
|
+
* The distance between the tooltip and the mouse pointer in pixels.
|
|
79
|
+
*
|
|
80
|
+
* @default 12
|
|
81
|
+
*/
|
|
82
|
+
offset?: number;
|
|
83
|
+
/**
|
|
84
|
+
* The content component of the Sankey node tooltip. Can be string that is pointing to a namedSlot or a render function;
|
|
85
|
+
*/
|
|
86
|
+
nodeContent?: any;
|
|
87
|
+
/**
|
|
88
|
+
* The content component of the Sankey link tooltip. Can be string that is pointing to a namedSlot or a render function;
|
|
89
|
+
*/
|
|
90
|
+
linkContent?: any;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Represents the props of the KendoReact [Sankey]({% slug api_charts_sankey %}) component.
|
|
94
|
+
*/
|
|
95
|
+
export interface SankeyProps {
|
|
96
|
+
/**
|
|
97
|
+
* The data of the Sankey component containing the `nodes` props.
|
|
98
|
+
*/
|
|
99
|
+
dataNodes?: SankeyNode[];
|
|
100
|
+
/**
|
|
101
|
+
* The data of the Sankey component containing the `links` props.
|
|
102
|
+
*/
|
|
103
|
+
dataLinks?: SankeyLink[];
|
|
104
|
+
/**
|
|
105
|
+
* The `links` default props of the Sankey component.
|
|
106
|
+
* The value will be applied to all links unless overridden by the `links` prop of the `data` prop.
|
|
107
|
+
*/
|
|
108
|
+
links?: SankeyLinkDefaults;
|
|
109
|
+
/**
|
|
110
|
+
* The `nodes` default props of the Sankey component.
|
|
111
|
+
* The value will be applied to all nodes unless overridden by the `nodes` prop of the `data` prop.
|
|
112
|
+
*/
|
|
113
|
+
nodes?: SankeyNodeDefaults;
|
|
114
|
+
/**
|
|
115
|
+
* The `labels` default props of the Sankey component.
|
|
116
|
+
* The value will be applied to all labels unless overridden by the `nodes` label prop of the `data` prop.
|
|
117
|
+
*/
|
|
118
|
+
labels?: SankeyLabelDefaults;
|
|
119
|
+
/**
|
|
120
|
+
* The title configuration of the Sankey component.
|
|
121
|
+
*/
|
|
122
|
+
title?: SankeyTitle;
|
|
123
|
+
/**
|
|
124
|
+
* The legend configuration of the Sankey component.
|
|
125
|
+
*/
|
|
126
|
+
legend?: SankeyLegend;
|
|
127
|
+
/**
|
|
128
|
+
* The configuration of the Sankey tooltips.
|
|
129
|
+
*/
|
|
130
|
+
tooltip?: SankeyTooltip;
|
|
131
|
+
/**
|
|
132
|
+
* If set to `true`, the Sankey component will not perform automatic layout.
|
|
133
|
+
*/
|
|
134
|
+
disableAutoLayout?: boolean;
|
|
135
|
+
/**
|
|
136
|
+
* Fires when the mouse pointer enters a node. Similar to the `mouseenter` event.
|
|
137
|
+
*/
|
|
138
|
+
onNodeenter?: (event: SankeyEvent) => void;
|
|
139
|
+
/**
|
|
140
|
+
* Fires when the mouse pointer leaves a node. Similar to the `mouseleave` event.
|
|
141
|
+
*/
|
|
142
|
+
onNodeleave?: (event: SankeyEvent) => void;
|
|
143
|
+
/**
|
|
144
|
+
* Fires when the mouse pointer enters a link. Similar to the `mouseenter` event,
|
|
145
|
+
*/
|
|
146
|
+
onLinkenter?: (event: SankeyEvent) => void;
|
|
147
|
+
/**
|
|
148
|
+
* Fires when the mouse pointer leaves a link. Similar to the `mouseleave` event.
|
|
149
|
+
*/
|
|
150
|
+
onLinkleave?: (event: SankeyEvent) => void;
|
|
151
|
+
/**
|
|
152
|
+
* Fires when a node is clicked.
|
|
153
|
+
*/
|
|
154
|
+
onNodeclick?: (event: SankeyEvent) => void;
|
|
155
|
+
/**
|
|
156
|
+
* Fires when a link is clicked.
|
|
157
|
+
*/
|
|
158
|
+
onLinkclick?: (event: SankeyEvent) => void;
|
|
159
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createSankeyData = void 0;
|
|
4
|
+
var kendo_charts_1 = require("@progress/kendo-charts");
|
|
5
|
+
/**
|
|
6
|
+
* Converts data objects to Sankey data.
|
|
7
|
+
*/
|
|
8
|
+
exports.createSankeyData = kendo_charts_1.createSankeyData;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-vue-charts",
|
|
3
3
|
"description": "Kendo UI for Vue Charts package",
|
|
4
|
-
"version": "4.
|
|
4
|
+
"version": "4.4.0-dev.202405071452",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/telerik/kendo-vue.git"
|
|
@@ -19,7 +19,8 @@
|
|
|
19
19
|
"scripts": {
|
|
20
20
|
"test": "cd ../../ && npm run test -- --testPathPattern=/packages/charts/.*",
|
|
21
21
|
"start": "gulp start --notsc",
|
|
22
|
-
"build-package": "gulp build-package"
|
|
22
|
+
"build-package": "gulp build-package",
|
|
23
|
+
"e2e": "cd ../../ && npx jest --maxWorkers=4 --config jest.config.e2e.js packages/charts"
|
|
23
24
|
},
|
|
24
25
|
"homepage": "https://www.telerik.com/kendo-vue-ui/",
|
|
25
26
|
"keywords": [
|
|
@@ -44,17 +45,18 @@
|
|
|
44
45
|
},
|
|
45
46
|
"dependencies": {
|
|
46
47
|
"@progress/kendo-charts": "2.3.0",
|
|
47
|
-
"@progress/kendo-vue-common": "4.
|
|
48
|
-
"@progress/kendo-vue-popup": "4.
|
|
48
|
+
"@progress/kendo-vue-common": "4.4.0-dev.202405071452",
|
|
49
|
+
"@progress/kendo-vue-popup": "4.4.0-dev.202405071452"
|
|
49
50
|
},
|
|
50
51
|
"devDependencies": {
|
|
51
52
|
"@progress/kendo-data-query": "^1.0.0",
|
|
52
53
|
"@progress/kendo-drawing": "^1.20.1",
|
|
53
54
|
"@progress/kendo-file-saver": "^1.0.1",
|
|
54
55
|
"@progress/kendo-licensing": "^1.3.0",
|
|
55
|
-
"@progress/kendo-vue-
|
|
56
|
-
"@progress/kendo-vue-
|
|
57
|
-
"@progress/kendo-vue-
|
|
56
|
+
"@progress/kendo-vue-buttons": "4.4.0-dev.202405071452",
|
|
57
|
+
"@progress/kendo-vue-dropdowns": "4.4.0-dev.202405071452",
|
|
58
|
+
"@progress/kendo-vue-inputs": "4.4.0-dev.202405071452",
|
|
59
|
+
"@progress/kendo-vue-intl": "4.4.0-dev.202405071452",
|
|
58
60
|
"cldr-core": "^41.0.0",
|
|
59
61
|
"cldr-dates-full": "^41.0.0",
|
|
60
62
|
"cldr-numbers-full": "^41.0.0",
|