@progress/kendo-vue-charts 5.1.0 → 5.2.0-dev.202406141341
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/package-metadata.js +1 -1
- package/dist/es/sankey/Sankey.d.ts +1 -0
- package/dist/es/sankey/Sankey.js +23 -3
- package/dist/es/sankey/tooltip.js +27 -14
- package/dist/es/sankey/types.d.ts +18 -2
- package/dist/esm/package-metadata.js +1 -1
- package/dist/esm/sankey/Sankey.d.ts +1 -0
- package/dist/esm/sankey/Sankey.js +23 -3
- package/dist/esm/sankey/tooltip.js +27 -14
- package/dist/esm/sankey/types.d.ts +18 -2
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/sankey/Sankey.d.ts +1 -0
- package/dist/npm/sankey/Sankey.js +22 -2
- package/dist/npm/sankey/tooltip.js +26 -13
- package/dist/npm/sankey/types.d.ts +18 -2
- package/package.json +7 -7
|
@@ -5,7 +5,7 @@ export var packageMetadata = {
|
|
|
5
5
|
name: '@progress/kendo-vue-charts',
|
|
6
6
|
productName: 'Kendo UI for Vue',
|
|
7
7
|
productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
|
|
8
|
-
publishDate:
|
|
8
|
+
publishDate: 1718371727,
|
|
9
9
|
version: '',
|
|
10
10
|
licensingDocsUrl: 'https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning'
|
|
11
11
|
};
|
package/dist/es/sankey/Sankey.js
CHANGED
|
@@ -15,7 +15,7 @@ import * as Vue from 'vue';
|
|
|
15
15
|
var allVue = Vue;
|
|
16
16
|
var gh = allVue.h;
|
|
17
17
|
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
18
|
-
import { validatePackage, getRef, setRef, templateRendering, getListeners } from '@progress/kendo-vue-common';
|
|
18
|
+
import { validatePackage, getRef, setRef, templateRendering, getListeners, getDir } from '@progress/kendo-vue-common';
|
|
19
19
|
import { packageMetadata } from './../package-metadata';
|
|
20
20
|
import { loadTheme } from './theme-service';
|
|
21
21
|
import { Sankey as SankeyWidget } from '@progress/kendo-charts';
|
|
@@ -49,6 +49,8 @@ var SankeyVue2 = {
|
|
|
49
49
|
required: true
|
|
50
50
|
},
|
|
51
51
|
disableAutoLayout: Boolean,
|
|
52
|
+
disableKeyboardNavigation: Boolean,
|
|
53
|
+
dir: String,
|
|
52
54
|
labels: Object,
|
|
53
55
|
legend: Object,
|
|
54
56
|
links: Object,
|
|
@@ -62,7 +64,8 @@ var SankeyVue2 = {
|
|
|
62
64
|
},
|
|
63
65
|
data: function data() {
|
|
64
66
|
return {
|
|
65
|
-
currentTooltip: null
|
|
67
|
+
currentTooltip: null,
|
|
68
|
+
currentDir: undefined
|
|
66
69
|
};
|
|
67
70
|
},
|
|
68
71
|
watch: {
|
|
@@ -90,6 +93,12 @@ var SankeyVue2 = {
|
|
|
90
93
|
disableAutoLayout: function disableAutoLayout() {
|
|
91
94
|
this.update(this);
|
|
92
95
|
},
|
|
96
|
+
disableKeyboardNavigation: function disableKeyboardNavigation() {
|
|
97
|
+
this.update(this);
|
|
98
|
+
},
|
|
99
|
+
dir: function dir() {
|
|
100
|
+
this.update(this);
|
|
101
|
+
},
|
|
93
102
|
tooltip: function tooltip() {
|
|
94
103
|
this.update(this);
|
|
95
104
|
}
|
|
@@ -103,6 +112,7 @@ var SankeyVue2 = {
|
|
|
103
112
|
},
|
|
104
113
|
mounted: function mounted() {
|
|
105
114
|
this.element = getRef(this, 'element');
|
|
115
|
+
this.currentDir = getDir(this.element, this.$props.dir);
|
|
106
116
|
this.createSankey(this);
|
|
107
117
|
},
|
|
108
118
|
destroyed: !!isV3 ? undefined : function () {
|
|
@@ -165,6 +175,7 @@ var SankeyVue2 = {
|
|
|
165
175
|
title = _a.title,
|
|
166
176
|
legend = _a.legend,
|
|
167
177
|
disableAutoLayout = _a.disableAutoLayout,
|
|
178
|
+
disableKeyboardNavigation = _a.disableKeyboardNavigation,
|
|
168
179
|
tooltip = _a.tooltip;
|
|
169
180
|
var data = {
|
|
170
181
|
nodes: dataNodes,
|
|
@@ -178,6 +189,8 @@ var SankeyVue2 = {
|
|
|
178
189
|
title: title,
|
|
179
190
|
legend: legend,
|
|
180
191
|
disableAutoLayout: disableAutoLayout,
|
|
192
|
+
disableKeyboardNavigation: disableKeyboardNavigation,
|
|
193
|
+
rtl: this.currentDir === 'rtl',
|
|
181
194
|
tooltip: __assign(__assign({}, defaultTooltipProps), tooltip)
|
|
182
195
|
};
|
|
183
196
|
},
|
|
@@ -215,20 +228,27 @@ var SankeyVue2 = {
|
|
|
215
228
|
offset = _a.offset;
|
|
216
229
|
var toolTipNode = templateRendering.call(this, nodeContent, getListeners.call(this));
|
|
217
230
|
var toolTipLink = templateRendering.call(this, linkContent, getListeners.call(this));
|
|
231
|
+
var dir = this.$props.dir || this.currentDir;
|
|
218
232
|
var rendering = [h("div", {
|
|
219
233
|
ref: setRef(this, 'element'),
|
|
220
234
|
"class": this.sankeyClasses,
|
|
221
|
-
style: this.$attrs.style
|
|
235
|
+
style: this.$attrs.style,
|
|
236
|
+
dir: dir,
|
|
237
|
+
attrs: this.v3 ? undefined : {
|
|
238
|
+
dir: dir
|
|
239
|
+
}
|
|
222
240
|
}), this.currentTooltip && h(Tooltip, {
|
|
223
241
|
tooltipData: this.currentTooltip.tooltipData,
|
|
224
242
|
attrs: this.v3 ? undefined : {
|
|
225
243
|
tooltipData: this.currentTooltip.tooltipData,
|
|
226
244
|
eventData: this.currentTooltip.eventData,
|
|
245
|
+
dir: dir,
|
|
227
246
|
offset: offset || 12,
|
|
228
247
|
nodeContent: toolTipNode,
|
|
229
248
|
linkContent: toolTipLink
|
|
230
249
|
},
|
|
231
250
|
eventData: this.currentTooltip.eventData,
|
|
251
|
+
dir: dir,
|
|
232
252
|
offset: offset || 12,
|
|
233
253
|
nodeContent: toolTipNode,
|
|
234
254
|
linkContent: toolTipLink
|
|
@@ -16,7 +16,7 @@ var allVue = Vue;
|
|
|
16
16
|
var gh = allVue.h;
|
|
17
17
|
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
18
18
|
import { getRef, setRef, Icon, getTemplate } from '@progress/kendo-vue-common';
|
|
19
|
-
import { arrowRightIcon } from '@progress/kendo-svg-icons';
|
|
19
|
+
import { arrowLeftIcon, arrowRightIcon } from '@progress/kendo-svg-icons';
|
|
20
20
|
import { provideLocalizationService, IntlService } from '@progress/kendo-vue-intl';
|
|
21
21
|
import { messages, tooltipUnitFormat } from './messages';
|
|
22
22
|
var space = 3;
|
|
@@ -105,7 +105,8 @@ var NodeTooltipContent = {
|
|
|
105
105
|
name: 'NodeTooltipContent',
|
|
106
106
|
props: {
|
|
107
107
|
dataItem: Object,
|
|
108
|
-
nodeValue: Number
|
|
108
|
+
nodeValue: Number,
|
|
109
|
+
dir: String
|
|
109
110
|
},
|
|
110
111
|
// @ts-ignore
|
|
111
112
|
setup: !isV3 ? undefined : function () {
|
|
@@ -143,7 +144,8 @@ var NodeTooltipContent = {
|
|
|
143
144
|
var LinkTooltipContent = {
|
|
144
145
|
name: 'LinkTooltipContent',
|
|
145
146
|
props: {
|
|
146
|
-
dataItem: Object
|
|
147
|
+
dataItem: Object,
|
|
148
|
+
dir: String
|
|
147
149
|
},
|
|
148
150
|
// @ts-ignore
|
|
149
151
|
setup: !isV3 ? undefined : function () {
|
|
@@ -154,10 +156,13 @@ var LinkTooltipContent = {
|
|
|
154
156
|
},
|
|
155
157
|
render: function render(createElement) {
|
|
156
158
|
var h = gh || createElement;
|
|
157
|
-
var _a = this.$props
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
159
|
+
var _a = this.$props,
|
|
160
|
+
dir = _a.dir,
|
|
161
|
+
dataItem = _a.dataItem;
|
|
162
|
+
var source = dataItem.source,
|
|
163
|
+
target = dataItem.target,
|
|
164
|
+
value = dataItem.value;
|
|
165
|
+
var arrow = dir === 'rtl' ? arrowLeftIcon : arrowRightIcon;
|
|
161
166
|
return h("div", {
|
|
162
167
|
style: tooltipStyles
|
|
163
168
|
}, [h(Square, {
|
|
@@ -171,12 +176,12 @@ var LinkTooltipContent = {
|
|
|
171
176
|
value: source.label.text
|
|
172
177
|
}
|
|
173
178
|
}), h(Icon, {
|
|
174
|
-
icon:
|
|
179
|
+
icon: arrow,
|
|
175
180
|
attrs: this.v3 ? undefined : {
|
|
176
|
-
icon:
|
|
177
|
-
name:
|
|
181
|
+
icon: arrow,
|
|
182
|
+
name: arrow.name
|
|
178
183
|
},
|
|
179
|
-
name:
|
|
184
|
+
name: arrow.name
|
|
180
185
|
}), h(Square, {
|
|
181
186
|
color: target.color,
|
|
182
187
|
attrs: this.v3 ? undefined : {
|
|
@@ -205,6 +210,7 @@ var TooltipVue2 = {
|
|
|
205
210
|
tooltipData: Object,
|
|
206
211
|
nodeContent: [String, Object, Function],
|
|
207
212
|
linkContent: [String, Object, Function],
|
|
213
|
+
dir: String,
|
|
208
214
|
offset: Number
|
|
209
215
|
},
|
|
210
216
|
data: function data() {
|
|
@@ -273,6 +279,7 @@ var TooltipVue2 = {
|
|
|
273
279
|
var _a = this.$props,
|
|
274
280
|
nodeContent = _a.nodeContent,
|
|
275
281
|
linkContent = _a.linkContent,
|
|
282
|
+
dir = _a.dir,
|
|
276
283
|
_b = _a.eventData,
|
|
277
284
|
dataItem = _b.dataItem,
|
|
278
285
|
nodeValue = _b.nodeValue,
|
|
@@ -286,9 +293,11 @@ var TooltipVue2 = {
|
|
|
286
293
|
dataItem: dataItem,
|
|
287
294
|
attrs: this.v3 ? undefined : {
|
|
288
295
|
dataItem: dataItem,
|
|
289
|
-
nodeValue: nodeValue
|
|
296
|
+
nodeValue: nodeValue,
|
|
297
|
+
dir: dir
|
|
290
298
|
},
|
|
291
|
-
nodeValue: nodeValue
|
|
299
|
+
nodeValue: nodeValue,
|
|
300
|
+
dir: dir
|
|
292
301
|
})
|
|
293
302
|
});
|
|
294
303
|
return h("div", {
|
|
@@ -298,7 +307,11 @@ var TooltipVue2 = {
|
|
|
298
307
|
left: this.left,
|
|
299
308
|
visibility: this.visibility
|
|
300
309
|
},
|
|
301
|
-
"class": "k-tooltip k-sankey-tooltip k-chart-tooltip k-chart-shared-tooltip"
|
|
310
|
+
"class": "k-tooltip k-sankey-tooltip k-chart-tooltip k-chart-shared-tooltip",
|
|
311
|
+
dir: dir,
|
|
312
|
+
attrs: this.v3 ? undefined : {
|
|
313
|
+
dir: dir
|
|
314
|
+
}
|
|
302
315
|
}, [h("div", {
|
|
303
316
|
"class": "k-tooltip-content"
|
|
304
317
|
}, [content])]);
|
|
@@ -1,6 +1,6 @@
|
|
|
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';
|
|
1
|
+
import { SankeyData, SankeyExportVisualOptions, SankeyHorizontalMargin, SankeyLabel, SankeyLabelDefaults, SankeyLabelStroke, SankeyLegendItem, SankeyLink, SankeyLinkDataItem, SankeyLinkDefaults, SankeyLinkHighlight, SankeyNode, SankeyNodeDataItem, SankeyNodeDefaults, SankeyFocusHighlight, SankeyNodeLabel, SankeyLinkLabel, SankeyOptions, SankeyTooltipEvent, SankeyTooltip as SankeyTooltipInterface, SankeyEvent as SankeyWidgetEvent } from '@progress/kendo-charts';
|
|
2
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 };
|
|
3
|
+
export { SankeyData, SankeyExportVisualOptions, SankeyHorizontalMargin, SankeyLabel, SankeyLabelDefaults, SankeyLabelStroke, SankeyLegendItem, SankeyLink, SankeyLinkDataItem, SankeyLinkDefaults, SankeyLinkHighlight, SankeyNode, SankeyNodeDataItem, SankeyNodeDefaults, SankeyFocusHighlight, SankeyNodeLabel, SankeyLinkLabel, SankeyOptions };
|
|
4
4
|
import { Sankey } from './Sankey';
|
|
5
5
|
/**
|
|
6
6
|
* The KendoReact Sankey event object.
|
|
@@ -38,6 +38,10 @@ export interface TooltipContentProps {
|
|
|
38
38
|
* The value is available only when the hovered element is a node.
|
|
39
39
|
*/
|
|
40
40
|
nodeValue?: number;
|
|
41
|
+
/**
|
|
42
|
+
* The `dir` attribute of the Sankey tooltip content component.
|
|
43
|
+
*/
|
|
44
|
+
dir?: string;
|
|
41
45
|
}
|
|
42
46
|
/**
|
|
43
47
|
* Represents the props of the Sankey tooltip component.
|
|
@@ -53,6 +57,10 @@ export interface SankeyTooltipProps {
|
|
|
53
57
|
* The distance between the tooltip and the mouse pointer in pixels.
|
|
54
58
|
*/
|
|
55
59
|
offset: number;
|
|
60
|
+
/**
|
|
61
|
+
* The `dir` attribute of the Sankey tooltip.
|
|
62
|
+
*/
|
|
63
|
+
dir?: string;
|
|
56
64
|
/**
|
|
57
65
|
* The tooltip data of the Sankey component.
|
|
58
66
|
*/
|
|
@@ -132,6 +140,14 @@ export interface SankeyProps {
|
|
|
132
140
|
* If set to `true`, the Sankey component will not perform automatic layout.
|
|
133
141
|
*/
|
|
134
142
|
disableAutoLayout?: boolean;
|
|
143
|
+
/**
|
|
144
|
+
* If set to `true`, the Sankey keyboard navigation will be disabled.
|
|
145
|
+
*/
|
|
146
|
+
disableKeyboardNavigation?: boolean;
|
|
147
|
+
/**
|
|
148
|
+
* Represents the `dir` HTML attribute.
|
|
149
|
+
*/
|
|
150
|
+
dir?: string;
|
|
135
151
|
/**
|
|
136
152
|
* Fires when the mouse pointer enters a node. Similar to the `mouseenter` event.
|
|
137
153
|
*/
|
|
@@ -5,7 +5,7 @@ export var packageMetadata = {
|
|
|
5
5
|
name: '@progress/kendo-vue-charts',
|
|
6
6
|
productName: 'Kendo UI for Vue',
|
|
7
7
|
productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
|
|
8
|
-
publishDate:
|
|
8
|
+
publishDate: 1718371727,
|
|
9
9
|
version: '',
|
|
10
10
|
licensingDocsUrl: 'https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning'
|
|
11
11
|
};
|
|
@@ -15,7 +15,7 @@ import * as Vue from 'vue';
|
|
|
15
15
|
var allVue = Vue;
|
|
16
16
|
var gh = allVue.h;
|
|
17
17
|
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
18
|
-
import { validatePackage, getRef, setRef, templateRendering, getListeners } from '@progress/kendo-vue-common';
|
|
18
|
+
import { validatePackage, getRef, setRef, templateRendering, getListeners, getDir } from '@progress/kendo-vue-common';
|
|
19
19
|
import { packageMetadata } from './../package-metadata.js';
|
|
20
20
|
import { loadTheme } from './theme-service.js';
|
|
21
21
|
import { Sankey as SankeyWidget } from '@progress/kendo-charts';
|
|
@@ -49,6 +49,8 @@ var SankeyVue2 = {
|
|
|
49
49
|
required: true
|
|
50
50
|
},
|
|
51
51
|
disableAutoLayout: Boolean,
|
|
52
|
+
disableKeyboardNavigation: Boolean,
|
|
53
|
+
dir: String,
|
|
52
54
|
labels: Object,
|
|
53
55
|
legend: Object,
|
|
54
56
|
links: Object,
|
|
@@ -62,7 +64,8 @@ var SankeyVue2 = {
|
|
|
62
64
|
},
|
|
63
65
|
data: function data() {
|
|
64
66
|
return {
|
|
65
|
-
currentTooltip: null
|
|
67
|
+
currentTooltip: null,
|
|
68
|
+
currentDir: undefined
|
|
66
69
|
};
|
|
67
70
|
},
|
|
68
71
|
watch: {
|
|
@@ -90,6 +93,12 @@ var SankeyVue2 = {
|
|
|
90
93
|
disableAutoLayout: function disableAutoLayout() {
|
|
91
94
|
this.update(this);
|
|
92
95
|
},
|
|
96
|
+
disableKeyboardNavigation: function disableKeyboardNavigation() {
|
|
97
|
+
this.update(this);
|
|
98
|
+
},
|
|
99
|
+
dir: function dir() {
|
|
100
|
+
this.update(this);
|
|
101
|
+
},
|
|
93
102
|
tooltip: function tooltip() {
|
|
94
103
|
this.update(this);
|
|
95
104
|
}
|
|
@@ -103,6 +112,7 @@ var SankeyVue2 = {
|
|
|
103
112
|
},
|
|
104
113
|
mounted: function mounted() {
|
|
105
114
|
this.element = getRef(this, 'element');
|
|
115
|
+
this.currentDir = getDir(this.element, this.$props.dir);
|
|
106
116
|
this.createSankey(this);
|
|
107
117
|
},
|
|
108
118
|
destroyed: !!isV3 ? undefined : function () {
|
|
@@ -165,6 +175,7 @@ var SankeyVue2 = {
|
|
|
165
175
|
title = _a.title,
|
|
166
176
|
legend = _a.legend,
|
|
167
177
|
disableAutoLayout = _a.disableAutoLayout,
|
|
178
|
+
disableKeyboardNavigation = _a.disableKeyboardNavigation,
|
|
168
179
|
tooltip = _a.tooltip;
|
|
169
180
|
var data = {
|
|
170
181
|
nodes: dataNodes,
|
|
@@ -178,6 +189,8 @@ var SankeyVue2 = {
|
|
|
178
189
|
title: title,
|
|
179
190
|
legend: legend,
|
|
180
191
|
disableAutoLayout: disableAutoLayout,
|
|
192
|
+
disableKeyboardNavigation: disableKeyboardNavigation,
|
|
193
|
+
rtl: this.currentDir === 'rtl',
|
|
181
194
|
tooltip: __assign(__assign({}, defaultTooltipProps), tooltip)
|
|
182
195
|
};
|
|
183
196
|
},
|
|
@@ -215,20 +228,27 @@ var SankeyVue2 = {
|
|
|
215
228
|
offset = _a.offset;
|
|
216
229
|
var toolTipNode = templateRendering.call(this, nodeContent, getListeners.call(this));
|
|
217
230
|
var toolTipLink = templateRendering.call(this, linkContent, getListeners.call(this));
|
|
231
|
+
var dir = this.$props.dir || this.currentDir;
|
|
218
232
|
var rendering = [h("div", {
|
|
219
233
|
ref: setRef(this, 'element'),
|
|
220
234
|
"class": this.sankeyClasses,
|
|
221
|
-
style: this.$attrs.style
|
|
235
|
+
style: this.$attrs.style,
|
|
236
|
+
dir: dir,
|
|
237
|
+
attrs: this.v3 ? undefined : {
|
|
238
|
+
dir: dir
|
|
239
|
+
}
|
|
222
240
|
}), this.currentTooltip && h(Tooltip, {
|
|
223
241
|
tooltipData: this.currentTooltip.tooltipData,
|
|
224
242
|
attrs: this.v3 ? undefined : {
|
|
225
243
|
tooltipData: this.currentTooltip.tooltipData,
|
|
226
244
|
eventData: this.currentTooltip.eventData,
|
|
245
|
+
dir: dir,
|
|
227
246
|
offset: offset || 12,
|
|
228
247
|
nodeContent: toolTipNode,
|
|
229
248
|
linkContent: toolTipLink
|
|
230
249
|
},
|
|
231
250
|
eventData: this.currentTooltip.eventData,
|
|
251
|
+
dir: dir,
|
|
232
252
|
offset: offset || 12,
|
|
233
253
|
nodeContent: toolTipNode,
|
|
234
254
|
linkContent: toolTipLink
|
|
@@ -16,7 +16,7 @@ var allVue = Vue;
|
|
|
16
16
|
var gh = allVue.h;
|
|
17
17
|
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
18
18
|
import { getRef, setRef, Icon, getTemplate } from '@progress/kendo-vue-common';
|
|
19
|
-
import { arrowRightIcon } from '@progress/kendo-svg-icons';
|
|
19
|
+
import { arrowLeftIcon, arrowRightIcon } from '@progress/kendo-svg-icons';
|
|
20
20
|
import { provideLocalizationService, IntlService } from '@progress/kendo-vue-intl';
|
|
21
21
|
import { messages, tooltipUnitFormat } from './messages.js';
|
|
22
22
|
var space = 3;
|
|
@@ -105,7 +105,8 @@ var NodeTooltipContent = {
|
|
|
105
105
|
name: 'NodeTooltipContent',
|
|
106
106
|
props: {
|
|
107
107
|
dataItem: Object,
|
|
108
|
-
nodeValue: Number
|
|
108
|
+
nodeValue: Number,
|
|
109
|
+
dir: String
|
|
109
110
|
},
|
|
110
111
|
// @ts-ignore
|
|
111
112
|
setup: !isV3 ? undefined : function () {
|
|
@@ -143,7 +144,8 @@ var NodeTooltipContent = {
|
|
|
143
144
|
var LinkTooltipContent = {
|
|
144
145
|
name: 'LinkTooltipContent',
|
|
145
146
|
props: {
|
|
146
|
-
dataItem: Object
|
|
147
|
+
dataItem: Object,
|
|
148
|
+
dir: String
|
|
147
149
|
},
|
|
148
150
|
// @ts-ignore
|
|
149
151
|
setup: !isV3 ? undefined : function () {
|
|
@@ -154,10 +156,13 @@ var LinkTooltipContent = {
|
|
|
154
156
|
},
|
|
155
157
|
render: function render(createElement) {
|
|
156
158
|
var h = gh || createElement;
|
|
157
|
-
var _a = this.$props
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
159
|
+
var _a = this.$props,
|
|
160
|
+
dir = _a.dir,
|
|
161
|
+
dataItem = _a.dataItem;
|
|
162
|
+
var source = dataItem.source,
|
|
163
|
+
target = dataItem.target,
|
|
164
|
+
value = dataItem.value;
|
|
165
|
+
var arrow = dir === 'rtl' ? arrowLeftIcon : arrowRightIcon;
|
|
161
166
|
return h("div", {
|
|
162
167
|
style: tooltipStyles
|
|
163
168
|
}, [h(Square, {
|
|
@@ -171,12 +176,12 @@ var LinkTooltipContent = {
|
|
|
171
176
|
value: source.label.text
|
|
172
177
|
}
|
|
173
178
|
}), h(Icon, {
|
|
174
|
-
icon:
|
|
179
|
+
icon: arrow,
|
|
175
180
|
attrs: this.v3 ? undefined : {
|
|
176
|
-
icon:
|
|
177
|
-
name:
|
|
181
|
+
icon: arrow,
|
|
182
|
+
name: arrow.name
|
|
178
183
|
},
|
|
179
|
-
name:
|
|
184
|
+
name: arrow.name
|
|
180
185
|
}), h(Square, {
|
|
181
186
|
color: target.color,
|
|
182
187
|
attrs: this.v3 ? undefined : {
|
|
@@ -205,6 +210,7 @@ var TooltipVue2 = {
|
|
|
205
210
|
tooltipData: Object,
|
|
206
211
|
nodeContent: [String, Object, Function],
|
|
207
212
|
linkContent: [String, Object, Function],
|
|
213
|
+
dir: String,
|
|
208
214
|
offset: Number
|
|
209
215
|
},
|
|
210
216
|
data: function data() {
|
|
@@ -273,6 +279,7 @@ var TooltipVue2 = {
|
|
|
273
279
|
var _a = this.$props,
|
|
274
280
|
nodeContent = _a.nodeContent,
|
|
275
281
|
linkContent = _a.linkContent,
|
|
282
|
+
dir = _a.dir,
|
|
276
283
|
_b = _a.eventData,
|
|
277
284
|
dataItem = _b.dataItem,
|
|
278
285
|
nodeValue = _b.nodeValue,
|
|
@@ -286,9 +293,11 @@ var TooltipVue2 = {
|
|
|
286
293
|
dataItem: dataItem,
|
|
287
294
|
attrs: this.v3 ? undefined : {
|
|
288
295
|
dataItem: dataItem,
|
|
289
|
-
nodeValue: nodeValue
|
|
296
|
+
nodeValue: nodeValue,
|
|
297
|
+
dir: dir
|
|
290
298
|
},
|
|
291
|
-
nodeValue: nodeValue
|
|
299
|
+
nodeValue: nodeValue,
|
|
300
|
+
dir: dir
|
|
292
301
|
})
|
|
293
302
|
});
|
|
294
303
|
return h("div", {
|
|
@@ -298,7 +307,11 @@ var TooltipVue2 = {
|
|
|
298
307
|
left: this.left,
|
|
299
308
|
visibility: this.visibility
|
|
300
309
|
},
|
|
301
|
-
"class": "k-tooltip k-sankey-tooltip k-chart-tooltip k-chart-shared-tooltip"
|
|
310
|
+
"class": "k-tooltip k-sankey-tooltip k-chart-tooltip k-chart-shared-tooltip",
|
|
311
|
+
dir: dir,
|
|
312
|
+
attrs: this.v3 ? undefined : {
|
|
313
|
+
dir: dir
|
|
314
|
+
}
|
|
302
315
|
}, [h("div", {
|
|
303
316
|
"class": "k-tooltip-content"
|
|
304
317
|
}, [content])]);
|
|
@@ -1,6 +1,6 @@
|
|
|
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';
|
|
1
|
+
import { SankeyData, SankeyExportVisualOptions, SankeyHorizontalMargin, SankeyLabel, SankeyLabelDefaults, SankeyLabelStroke, SankeyLegendItem, SankeyLink, SankeyLinkDataItem, SankeyLinkDefaults, SankeyLinkHighlight, SankeyNode, SankeyNodeDataItem, SankeyNodeDefaults, SankeyFocusHighlight, SankeyNodeLabel, SankeyLinkLabel, SankeyOptions, SankeyTooltipEvent, SankeyTooltip as SankeyTooltipInterface, SankeyEvent as SankeyWidgetEvent } from '@progress/kendo-charts';
|
|
2
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 };
|
|
3
|
+
export { SankeyData, SankeyExportVisualOptions, SankeyHorizontalMargin, SankeyLabel, SankeyLabelDefaults, SankeyLabelStroke, SankeyLegendItem, SankeyLink, SankeyLinkDataItem, SankeyLinkDefaults, SankeyLinkHighlight, SankeyNode, SankeyNodeDataItem, SankeyNodeDefaults, SankeyFocusHighlight, SankeyNodeLabel, SankeyLinkLabel, SankeyOptions };
|
|
4
4
|
import { Sankey } from './Sankey';
|
|
5
5
|
/**
|
|
6
6
|
* The KendoReact Sankey event object.
|
|
@@ -38,6 +38,10 @@ export interface TooltipContentProps {
|
|
|
38
38
|
* The value is available only when the hovered element is a node.
|
|
39
39
|
*/
|
|
40
40
|
nodeValue?: number;
|
|
41
|
+
/**
|
|
42
|
+
* The `dir` attribute of the Sankey tooltip content component.
|
|
43
|
+
*/
|
|
44
|
+
dir?: string;
|
|
41
45
|
}
|
|
42
46
|
/**
|
|
43
47
|
* Represents the props of the Sankey tooltip component.
|
|
@@ -53,6 +57,10 @@ export interface SankeyTooltipProps {
|
|
|
53
57
|
* The distance between the tooltip and the mouse pointer in pixels.
|
|
54
58
|
*/
|
|
55
59
|
offset: number;
|
|
60
|
+
/**
|
|
61
|
+
* The `dir` attribute of the Sankey tooltip.
|
|
62
|
+
*/
|
|
63
|
+
dir?: string;
|
|
56
64
|
/**
|
|
57
65
|
* The tooltip data of the Sankey component.
|
|
58
66
|
*/
|
|
@@ -132,6 +140,14 @@ export interface SankeyProps {
|
|
|
132
140
|
* If set to `true`, the Sankey component will not perform automatic layout.
|
|
133
141
|
*/
|
|
134
142
|
disableAutoLayout?: boolean;
|
|
143
|
+
/**
|
|
144
|
+
* If set to `true`, the Sankey keyboard navigation will be disabled.
|
|
145
|
+
*/
|
|
146
|
+
disableKeyboardNavigation?: boolean;
|
|
147
|
+
/**
|
|
148
|
+
* Represents the `dir` HTML attribute.
|
|
149
|
+
*/
|
|
150
|
+
dir?: string;
|
|
135
151
|
/**
|
|
136
152
|
* Fires when the mouse pointer enters a node. Similar to the `mouseenter` event.
|
|
137
153
|
*/
|
|
@@ -8,7 +8,7 @@ exports.packageMetadata = {
|
|
|
8
8
|
name: '@progress/kendo-vue-charts',
|
|
9
9
|
productName: 'Kendo UI for Vue',
|
|
10
10
|
productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
|
|
11
|
-
publishDate:
|
|
11
|
+
publishDate: 1718371727,
|
|
12
12
|
version: '',
|
|
13
13
|
licensingDocsUrl: 'https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning'
|
|
14
14
|
};
|
|
@@ -55,6 +55,8 @@ var SankeyVue2 = {
|
|
|
55
55
|
required: true
|
|
56
56
|
},
|
|
57
57
|
disableAutoLayout: Boolean,
|
|
58
|
+
disableKeyboardNavigation: Boolean,
|
|
59
|
+
dir: String,
|
|
58
60
|
labels: Object,
|
|
59
61
|
legend: Object,
|
|
60
62
|
links: Object,
|
|
@@ -68,7 +70,8 @@ var SankeyVue2 = {
|
|
|
68
70
|
},
|
|
69
71
|
data: function data() {
|
|
70
72
|
return {
|
|
71
|
-
currentTooltip: null
|
|
73
|
+
currentTooltip: null,
|
|
74
|
+
currentDir: undefined
|
|
72
75
|
};
|
|
73
76
|
},
|
|
74
77
|
watch: {
|
|
@@ -96,6 +99,12 @@ var SankeyVue2 = {
|
|
|
96
99
|
disableAutoLayout: function disableAutoLayout() {
|
|
97
100
|
this.update(this);
|
|
98
101
|
},
|
|
102
|
+
disableKeyboardNavigation: function disableKeyboardNavigation() {
|
|
103
|
+
this.update(this);
|
|
104
|
+
},
|
|
105
|
+
dir: function dir() {
|
|
106
|
+
this.update(this);
|
|
107
|
+
},
|
|
99
108
|
tooltip: function tooltip() {
|
|
100
109
|
this.update(this);
|
|
101
110
|
}
|
|
@@ -109,6 +118,7 @@ var SankeyVue2 = {
|
|
|
109
118
|
},
|
|
110
119
|
mounted: function mounted() {
|
|
111
120
|
this.element = (0, kendo_vue_common_1.getRef)(this, 'element');
|
|
121
|
+
this.currentDir = (0, kendo_vue_common_1.getDir)(this.element, this.$props.dir);
|
|
112
122
|
this.createSankey(this);
|
|
113
123
|
},
|
|
114
124
|
destroyed: !!isV3 ? undefined : function () {
|
|
@@ -171,6 +181,7 @@ var SankeyVue2 = {
|
|
|
171
181
|
title = _a.title,
|
|
172
182
|
legend = _a.legend,
|
|
173
183
|
disableAutoLayout = _a.disableAutoLayout,
|
|
184
|
+
disableKeyboardNavigation = _a.disableKeyboardNavigation,
|
|
174
185
|
tooltip = _a.tooltip;
|
|
175
186
|
var data = {
|
|
176
187
|
nodes: dataNodes,
|
|
@@ -184,6 +195,8 @@ var SankeyVue2 = {
|
|
|
184
195
|
title: title,
|
|
185
196
|
legend: legend,
|
|
186
197
|
disableAutoLayout: disableAutoLayout,
|
|
198
|
+
disableKeyboardNavigation: disableKeyboardNavigation,
|
|
199
|
+
rtl: this.currentDir === 'rtl',
|
|
187
200
|
tooltip: __assign(__assign({}, defaultTooltipProps), tooltip)
|
|
188
201
|
};
|
|
189
202
|
},
|
|
@@ -221,20 +234,27 @@ var SankeyVue2 = {
|
|
|
221
234
|
offset = _a.offset;
|
|
222
235
|
var toolTipNode = kendo_vue_common_1.templateRendering.call(this, nodeContent, kendo_vue_common_1.getListeners.call(this));
|
|
223
236
|
var toolTipLink = kendo_vue_common_1.templateRendering.call(this, linkContent, kendo_vue_common_1.getListeners.call(this));
|
|
237
|
+
var dir = this.$props.dir || this.currentDir;
|
|
224
238
|
var rendering = [h("div", {
|
|
225
239
|
ref: (0, kendo_vue_common_1.setRef)(this, 'element'),
|
|
226
240
|
"class": this.sankeyClasses,
|
|
227
|
-
style: this.$attrs.style
|
|
241
|
+
style: this.$attrs.style,
|
|
242
|
+
dir: dir,
|
|
243
|
+
attrs: this.v3 ? undefined : {
|
|
244
|
+
dir: dir
|
|
245
|
+
}
|
|
228
246
|
}), this.currentTooltip && h(tooltip_1.Tooltip, {
|
|
229
247
|
tooltipData: this.currentTooltip.tooltipData,
|
|
230
248
|
attrs: this.v3 ? undefined : {
|
|
231
249
|
tooltipData: this.currentTooltip.tooltipData,
|
|
232
250
|
eventData: this.currentTooltip.eventData,
|
|
251
|
+
dir: dir,
|
|
233
252
|
offset: offset || 12,
|
|
234
253
|
nodeContent: toolTipNode,
|
|
235
254
|
linkContent: toolTipLink
|
|
236
255
|
},
|
|
237
256
|
eventData: this.currentTooltip.eventData,
|
|
257
|
+
dir: dir,
|
|
238
258
|
offset: offset || 12,
|
|
239
259
|
nodeContent: toolTipNode,
|
|
240
260
|
linkContent: toolTipLink
|