@unovis/vue 1.5.0-beta.3 → 1.5.0
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/components/annotations/index.cjs +1 -1
- package/components/annotations/index.cjs.map +1 -1
- package/components/annotations/index.d.ts +5 -5
- package/components/annotations/index.js +14 -14
- package/components/annotations/index.js.map +1 -1
- package/components/area/index.cjs +1 -1
- package/components/area/index.cjs.map +1 -1
- package/components/area/index.d.ts +1 -1
- package/components/area/index.js +23 -23
- package/components/area/index.js.map +1 -1
- package/components/axis/index.cjs +1 -1
- package/components/axis/index.cjs.map +1 -1
- package/components/axis/index.d.ts +1 -1
- package/components/axis/index.js +16 -16
- package/components/axis/index.js.map +1 -1
- package/components/brush/index.cjs +1 -1
- package/components/brush/index.cjs.map +1 -1
- package/components/brush/index.d.ts +1 -1
- package/components/brush/index.js +17 -17
- package/components/brush/index.js.map +1 -1
- package/components/chord-diagram/index.cjs +1 -1
- package/components/chord-diagram/index.cjs.map +1 -1
- package/components/chord-diagram/index.d.ts +1 -1
- package/components/chord-diagram/index.js +27 -27
- package/components/chord-diagram/index.js.map +1 -1
- package/components/crosshair/index.cjs +1 -1
- package/components/crosshair/index.cjs.map +1 -1
- package/components/crosshair/index.d.ts +1 -1
- package/components/crosshair/index.js +1 -1
- package/components/crosshair/index.js.map +1 -1
- package/components/donut/index.cjs +1 -1
- package/components/donut/index.cjs.map +1 -1
- package/components/donut/index.d.ts +2 -2
- package/components/donut/index.js +14 -14
- package/components/donut/index.js.map +1 -1
- package/components/free-brush/index.cjs +1 -1
- package/components/free-brush/index.cjs.map +1 -1
- package/components/free-brush/index.d.ts +1 -1
- package/components/free-brush/index.js +18 -18
- package/components/free-brush/index.js.map +1 -1
- package/components/graph/index.cjs +1 -1
- package/components/graph/index.cjs.map +1 -1
- package/components/graph/index.d.ts +1 -1
- package/components/graph/index.js +59 -59
- package/components/graph/index.js.map +1 -1
- package/components/grouped-bar/index.cjs +1 -1
- package/components/grouped-bar/index.cjs.map +1 -1
- package/components/grouped-bar/index.d.ts +1 -1
- package/components/grouped-bar/index.js +25 -25
- package/components/grouped-bar/index.js.map +1 -1
- package/components/line/index.cjs +1 -1
- package/components/line/index.cjs.map +1 -1
- package/components/line/index.d.ts +1 -1
- package/components/line/index.js +23 -23
- package/components/line/index.js.map +1 -1
- package/components/nested-donut/index.cjs +1 -1
- package/components/nested-donut/index.cjs.map +1 -1
- package/components/nested-donut/index.d.ts +2 -2
- package/components/nested-donut/index.js +22 -22
- package/components/nested-donut/index.js.map +1 -1
- package/components/sankey/index.cjs +1 -1
- package/components/sankey/index.cjs.map +1 -1
- package/components/sankey/index.d.ts +1 -1
- package/components/sankey/index.js +35 -35
- package/components/sankey/index.js.map +1 -1
- package/components/scatter/index.cjs +1 -1
- package/components/scatter/index.cjs.map +1 -1
- package/components/scatter/index.d.ts +1 -1
- package/components/scatter/index.js +27 -27
- package/components/scatter/index.js.map +1 -1
- package/components/stacked-bar/index.cjs +1 -1
- package/components/stacked-bar/index.cjs.map +1 -1
- package/components/stacked-bar/index.d.ts +1 -1
- package/components/stacked-bar/index.js +22 -22
- package/components/stacked-bar/index.js.map +1 -1
- package/components/timeline/index.cjs +1 -1
- package/components/timeline/index.cjs.map +1 -1
- package/components/timeline/index.d.ts +2 -2
- package/components/timeline/index.js +1 -1
- package/components/timeline/index.js.map +1 -1
- package/components/tooltip/index.cjs +1 -1
- package/components/tooltip/index.cjs.map +1 -1
- package/components/tooltip/index.d.ts +5 -5
- package/components/tooltip/index.js +15 -15
- package/components/tooltip/index.js.map +1 -1
- package/components/topojson-map/index.cjs +1 -1
- package/components/topojson-map/index.cjs.map +1 -1
- package/components/topojson-map/index.d.ts +1 -1
- package/components/topojson-map/index.js +39 -39
- package/components/topojson-map/index.js.map +1 -1
- package/components/xy-labels/index.cjs +1 -1
- package/components/xy-labels/index.cjs.map +1 -1
- package/components/xy-labels/index.d.ts +1 -1
- package/components/xy-labels/index.js +38 -38
- package/components/xy-labels/index.js.map +1 -1
- package/containers/single-container/index.cjs.map +1 -1
- package/containers/single-container/index.d.ts +1 -1
- package/containers/single-container/index.js.map +1 -1
- package/containers/single-container/index3.cjs +1 -1
- package/containers/single-container/index3.js +1 -1
- package/containers/xy-container/index.cjs.map +1 -1
- package/containers/xy-container/index.d.ts +1 -1
- package/containers/xy-container/index.js.map +1 -1
- package/containers/xy-container/index3.cjs +1 -1
- package/containers/xy-container/index3.js +1 -1
- package/html-components/bullet-legend/index.cjs +1 -1
- package/html-components/bullet-legend/index.cjs.map +1 -1
- package/html-components/bullet-legend/index.d.ts +5 -5
- package/html-components/bullet-legend/index.js +11 -11
- package/html-components/bullet-legend/index.js.map +1 -1
- package/html-components/bullet-legend/index3.cjs +1 -1
- package/html-components/bullet-legend/index3.js +1 -1
- package/html-components/leaflet-flow-map/index.cjs +1 -1
- package/html-components/leaflet-flow-map/index.cjs.map +1 -1
- package/html-components/leaflet-flow-map/index.d.ts +1 -1
- package/html-components/leaflet-flow-map/index.js +43 -43
- package/html-components/leaflet-flow-map/index.js.map +1 -1
- package/html-components/leaflet-flow-map/index3.cjs +1 -1
- package/html-components/leaflet-flow-map/index3.js +1 -1
- package/html-components/leaflet-map/index.cjs +1 -1
- package/html-components/leaflet-map/index.cjs.map +1 -1
- package/html-components/leaflet-map/index.d.ts +1 -1
- package/html-components/leaflet-map/index.js +32 -32
- package/html-components/leaflet-map/index.js.map +1 -1
- package/html-components/leaflet-map/index3.cjs +1 -1
- package/html-components/leaflet-map/index3.js +1 -1
- package/index.cjs +2 -2
- package/index.js +6 -6
- package/package.json +6 -6
- package/utils/props.cjs.map +1 -1
- package/utils/props.js.map +1 -1
- package/containers/single-container/index2.cjs +0 -2
- package/containers/single-container/index2.cjs.map +0 -1
- package/containers/single-container/index2.js +0 -5
- package/containers/single-container/index2.js.map +0 -1
- package/containers/xy-container/index2.cjs +0 -2
- package/containers/xy-container/index2.cjs.map +0 -1
- package/containers/xy-container/index2.js +0 -5
- package/containers/xy-container/index2.js.map +0 -1
- package/html-components/bullet-legend/index2.cjs +0 -2
- package/html-components/bullet-legend/index2.cjs.map +0 -1
- package/html-components/bullet-legend/index2.js +0 -5
- package/html-components/bullet-legend/index2.js.map +0 -1
- package/html-components/leaflet-flow-map/index2.cjs +0 -2
- package/html-components/leaflet-flow-map/index2.cjs.map +0 -1
- package/html-components/leaflet-flow-map/index2.js +0 -5
- package/html-components/leaflet-flow-map/index2.js.map +0 -1
- package/html-components/leaflet-map/index2.cjs +0 -2
- package/html-components/leaflet-map/index2.cjs.map +0 -1
- package/html-components/leaflet-map/index2.js +0 -5
- package/html-components/leaflet-map/index2.js.map +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Graph as
|
|
3
|
-
import { useForwardProps as
|
|
4
|
-
import { componentAccessorKey as
|
|
5
|
-
const
|
|
1
|
+
import { defineComponent as p, inject as y, computed as m, ref as S, onMounted as F, nextTick as b, onUnmounted as k, watch as r, openBlock as g, createElementBlock as h } from "vue";
|
|
2
|
+
import { Graph as u } from "@unovis/ts";
|
|
3
|
+
import { useForwardProps as L, arePropsEqual as v } from "../../utils/props.js";
|
|
4
|
+
import { componentAccessorKey as f } from "../../utils/context.js";
|
|
5
|
+
const C = { "data-vis-component": "" }, G = u.selectors, D = /* @__PURE__ */ p({
|
|
6
6
|
__name: "index",
|
|
7
7
|
props: {
|
|
8
8
|
zoomScaleExtent: {},
|
|
@@ -15,57 +15,57 @@ const v = { "data-vis-component": "" }, G = c.selectors, A = /* @__PURE__ */ y({
|
|
|
15
15
|
layoutAutofit: { type: Boolean },
|
|
16
16
|
layoutAutofitTolerance: {},
|
|
17
17
|
layoutNonConnectedAside: { type: Boolean },
|
|
18
|
-
layoutNodeGroup: {
|
|
18
|
+
layoutNodeGroup: {},
|
|
19
19
|
layoutGroupOrder: {},
|
|
20
20
|
layoutParallelNodesPerColumn: {},
|
|
21
|
-
layoutParallelNodeSubGroup: {
|
|
21
|
+
layoutParallelNodeSubGroup: {},
|
|
22
22
|
layoutParallelSubGroupsPerRow: {},
|
|
23
23
|
layoutParallelGroupSpacing: {},
|
|
24
24
|
layoutParallelSortConnectionsByGroup: {},
|
|
25
25
|
forceLayoutSettings: {},
|
|
26
26
|
dagreLayoutSettings: {},
|
|
27
|
-
layoutElkSettings: {
|
|
27
|
+
layoutElkSettings: {},
|
|
28
28
|
layoutElkNodeGroups: {},
|
|
29
|
-
linkWidth: {
|
|
30
|
-
linkStyle: {
|
|
31
|
-
linkBandWidth: {
|
|
32
|
-
linkArrow: {
|
|
33
|
-
linkStroke: {
|
|
34
|
-
linkDisabled: {
|
|
35
|
-
linkFlow: {
|
|
29
|
+
linkWidth: {},
|
|
30
|
+
linkStyle: {},
|
|
31
|
+
linkBandWidth: {},
|
|
32
|
+
linkArrow: {},
|
|
33
|
+
linkStroke: {},
|
|
34
|
+
linkDisabled: {},
|
|
35
|
+
linkFlow: {},
|
|
36
36
|
linkFlowAnimDuration: {},
|
|
37
37
|
linkFlowParticleSize: {},
|
|
38
|
-
linkLabel: {
|
|
39
|
-
linkLabelShiftFromCenter: {
|
|
38
|
+
linkLabel: {},
|
|
39
|
+
linkLabelShiftFromCenter: {},
|
|
40
40
|
linkNeighborSpacing: {},
|
|
41
|
-
linkCurvature: {
|
|
41
|
+
linkCurvature: {},
|
|
42
42
|
selectedLinkId: {},
|
|
43
|
-
nodeSize: {
|
|
44
|
-
nodeStrokeWidth: {
|
|
45
|
-
nodeShape: {
|
|
46
|
-
nodeGaugeValue: {
|
|
47
|
-
nodeGaugeFill: {
|
|
43
|
+
nodeSize: {},
|
|
44
|
+
nodeStrokeWidth: {},
|
|
45
|
+
nodeShape: {},
|
|
46
|
+
nodeGaugeValue: {},
|
|
47
|
+
nodeGaugeFill: {},
|
|
48
48
|
nodeGaugeAnimDuration: {},
|
|
49
|
-
nodeIcon: {
|
|
50
|
-
nodeIconSize: {
|
|
51
|
-
nodeLabel: {
|
|
52
|
-
nodeLabelTrim: {
|
|
53
|
-
nodeLabelTrimMode: {
|
|
54
|
-
nodeLabelTrimLength: {
|
|
55
|
-
nodeSubLabel: {
|
|
56
|
-
nodeSubLabelTrim: {
|
|
57
|
-
nodeSubLabelTrimMode: {
|
|
58
|
-
nodeSubLabelTrimLength: {
|
|
59
|
-
nodeSideLabels: {
|
|
60
|
-
nodeBottomIcon: {
|
|
61
|
-
nodeDisabled: {
|
|
62
|
-
nodeFill: {
|
|
63
|
-
nodeStroke: {
|
|
49
|
+
nodeIcon: {},
|
|
50
|
+
nodeIconSize: {},
|
|
51
|
+
nodeLabel: {},
|
|
52
|
+
nodeLabelTrim: {},
|
|
53
|
+
nodeLabelTrimMode: {},
|
|
54
|
+
nodeLabelTrimLength: {},
|
|
55
|
+
nodeSubLabel: {},
|
|
56
|
+
nodeSubLabelTrim: {},
|
|
57
|
+
nodeSubLabelTrimMode: {},
|
|
58
|
+
nodeSubLabelTrimLength: {},
|
|
59
|
+
nodeSideLabels: {},
|
|
60
|
+
nodeBottomIcon: {},
|
|
61
|
+
nodeDisabled: {},
|
|
62
|
+
nodeFill: {},
|
|
63
|
+
nodeStroke: {},
|
|
64
64
|
nodeSort: { type: Function },
|
|
65
|
-
nodeEnterPosition: {
|
|
66
|
-
nodeEnterScale: {
|
|
67
|
-
nodeExitPosition: {
|
|
68
|
-
nodeExitScale: {
|
|
65
|
+
nodeEnterPosition: {},
|
|
66
|
+
nodeEnterScale: {},
|
|
67
|
+
nodeExitPosition: {},
|
|
68
|
+
nodeExitScale: {},
|
|
69
69
|
nodeEnterCustomRenderFunction: { type: Function },
|
|
70
70
|
nodeUpdateCustomRenderFunction: { type: Function },
|
|
71
71
|
nodePartialUpdateCustomRenderFunction: { type: Function },
|
|
@@ -90,29 +90,29 @@ const v = { "data-vis-component": "" }, G = c.selectors, A = /* @__PURE__ */ y({
|
|
|
90
90
|
attributes: {},
|
|
91
91
|
data: {}
|
|
92
92
|
},
|
|
93
|
-
setup(
|
|
94
|
-
const
|
|
95
|
-
return
|
|
93
|
+
setup(c, { expose: s }) {
|
|
94
|
+
const n = y(f), l = c, t = m(() => n.data.value ?? l.data), a = L(l), o = S();
|
|
95
|
+
return F(() => {
|
|
96
96
|
b(() => {
|
|
97
|
-
var
|
|
98
|
-
|
|
97
|
+
var e;
|
|
98
|
+
o.value = new u(a.value), (e = o.value) == null || e.setData(t.value), n.update(o.value);
|
|
99
99
|
});
|
|
100
|
-
}),
|
|
101
|
-
var
|
|
102
|
-
(
|
|
103
|
-
}), r(
|
|
104
|
-
var
|
|
105
|
-
|
|
100
|
+
}), k(() => {
|
|
101
|
+
var e;
|
|
102
|
+
(e = o.value) == null || e.destroy(), n.destroy();
|
|
103
|
+
}), r(a, (e, i) => {
|
|
104
|
+
var d;
|
|
105
|
+
v(e, i) || (d = o.value) == null || d.setConfig(a.value);
|
|
106
106
|
}), r(t, () => {
|
|
107
|
-
var
|
|
108
|
-
(
|
|
109
|
-
}),
|
|
110
|
-
component:
|
|
111
|
-
}), (
|
|
107
|
+
var e;
|
|
108
|
+
(e = o.value) == null || e.setData(t.value);
|
|
109
|
+
}), s({
|
|
110
|
+
component: o
|
|
111
|
+
}), (e, i) => (g(), h("div", C));
|
|
112
112
|
}
|
|
113
113
|
});
|
|
114
114
|
export {
|
|
115
115
|
G as VisGraphSelectors,
|
|
116
|
-
|
|
116
|
+
D as default
|
|
117
117
|
};
|
|
118
118
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/components/graph/index.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = { \"data-vis-component\": \"\" }\n\nimport { Graph, GraphConfigInterface, GraphInputNode, GraphInputLink } from '@unovis/ts'\nimport { onMounted, onUnmounted, computed, ref, watch, nextTick, inject } from 'vue'\nimport { arePropsEqual, useForwardProps } from '../../utils/props'\nimport { componentAccessorKey } from '../../utils/context'\n\n\nexport const VisGraphSelectors = Graph.selectors\n\ntype Props = GraphConfigInterface<N, L>\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'index',\n props: {\n zoomScaleExtent: {},\n disableZoom: { type: Boolean },\n zoomEventFilter: { type: Function },\n disableDrag: { type: Boolean },\n disableBrush: { type: Boolean },\n zoomThrottledUpdateNodeThreshold: {},\n layoutType: {},\n layoutAutofit: { type: Boolean },\n layoutAutofitTolerance: {},\n layoutNonConnectedAside: { type: Boolean },\n layoutNodeGroup: { type: [Function, String, null] },\n layoutGroupOrder: {},\n layoutParallelNodesPerColumn: {},\n layoutParallelNodeSubGroup: { type: [Function, String, null] },\n layoutParallelSubGroupsPerRow: {},\n layoutParallelGroupSpacing: {},\n layoutParallelSortConnectionsByGroup: {},\n forceLayoutSettings: {},\n dagreLayoutSettings: {},\n layoutElkSettings: { type: [Function, null] },\n layoutElkNodeGroups: {},\n linkWidth: { type: [Function, Number, null] },\n linkStyle: { type: [Function, null] },\n linkBandWidth: { type: [Function, Number, null] },\n linkArrow: { type: [Function, null] },\n linkStroke: { type: [Function, String, Array, null] },\n linkDisabled: { type: [Function, Boolean, null] },\n linkFlow: { type: [Function, Boolean, null] },\n linkFlowAnimDuration: {},\n linkFlowParticleSize: {},\n linkLabel: { type: [Function, null] },\n linkLabelShiftFromCenter: { type: [Function, Boolean, null] },\n linkNeighborSpacing: {},\n linkCurvature: { type: [Function, Number, null] },\n selectedLinkId: {},\n nodeSize: { type: [Function, Number, null] },\n nodeStrokeWidth: { type: [Function, Number, null] },\n nodeShape: { type: [Function, null] },\n nodeGaugeValue: { type: [Function, Number, null] },\n nodeGaugeFill: { type: [Function, String, Array, null] },\n nodeGaugeAnimDuration: {},\n nodeIcon: { type: [Function, String, null] },\n nodeIconSize: { type: [Function, Number, null] },\n nodeLabel: { type: [Function, String, null] },\n nodeLabelTrim: { type: [Function, Boolean, null] },\n nodeLabelTrimMode: { type: [Function, null] },\n nodeLabelTrimLength: { type: [Function, Number, null] },\n nodeSubLabel: { type: [Function, String, null] },\n nodeSubLabelTrim: { type: [Function, Boolean, null] },\n nodeSubLabelTrimMode: { type: [Function, null] },\n nodeSubLabelTrimLength: { type: [Function, Number, null] },\n nodeSideLabels: { type: [Function, null] },\n nodeBottomIcon: { type: [Function, String, null] },\n nodeDisabled: { type: [Function, Boolean, null] },\n nodeFill: { type: [Function, String, Array, null] },\n nodeStroke: { type: [Function, String, Array, null] },\n nodeSort: { type: Function },\n nodeEnterPosition: { type: [Function, null] },\n nodeEnterScale: { type: [Function, Number, null] },\n nodeExitPosition: { type: [Function, null] },\n nodeExitScale: { type: [Function, Number, null] },\n nodeEnterCustomRenderFunction: { type: Function },\n nodeUpdateCustomRenderFunction: { type: Function },\n nodePartialUpdateCustomRenderFunction: { type: Function },\n nodeExitCustomRenderFunction: { type: Function },\n nodeOnZoomCustomRenderFunction: { type: Function },\n nodeSelectionHighlightMode: {},\n selectedNodeId: {},\n selectedNodeIds: {},\n panels: {},\n onNodeDragStart: { type: Function },\n onNodeDrag: { type: Function },\n onNodeDragEnd: { type: Function },\n onZoom: { type: Function },\n onZoomStart: { type: Function },\n onZoomEnd: { type: Function },\n onLayoutCalculated: { type: Function },\n onNodeSelectionBrush: { type: Function },\n onNodeSelectionDrag: { type: Function },\n onRenderComplete: { type: Function },\n duration: {},\n events: {},\n attributes: {},\n data: {}\n },\n setup(__props: any, { expose: __expose }) {\n\nconst props = __props;\n\n// !!! This code was automatically generated. You should not change it !!!\nconst accessor = inject(componentAccessorKey)\n\n// data and required props \n\n\nconst data = computed(() => accessor.data.value ?? props.data)\n// config\nconst config = useForwardProps(props)\n\n// component declaration\nconst component = ref<Graph<N, L>>()\n\n\nonMounted(() => {\n nextTick(() => {\n component.value = new Graph<N, L>(config.value)\n component.value?.setData(data.value)\n accessor.update(component.value)\n })\n})\n\nonUnmounted(() => {\n component.value?.destroy()\n accessor.destroy()\n})\n\nwatch(config, (curr, prev) => {\n if (!arePropsEqual(curr, prev)) {\n component.value?.setConfig(config.value)\n }\n})\n\nwatch(data, () => {\n component.value?.setData(data.value)\n})\n\n__expose({\n component\n})\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1))\n}\n}\n\n})"],"names":["_hoisted_1","VisGraphSelectors","Graph","_sfc_main","_defineComponent","__props","__expose","props","accessor","inject","componentAccessorKey","data","computed","config","useForwardProps","component","ref","onMounted","nextTick","_a","onUnmounted","watch","curr","prev","arePropsEqual","_ctx","_cache","_openBlock","_createElementBlock"],"mappings":";;;;AAGA,MAAMA,IAAa,EAAE,sBAAsB,MAQ9BC,IAAoBC,EAAM,WAIXC,IAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,iBAAiB,CAAC;AAAA,IAClB,aAAa,EAAE,MAAM,QAAQ;AAAA,IAC7B,iBAAiB,EAAE,MAAM,SAAS;AAAA,IAClC,aAAa,EAAE,MAAM,QAAQ;AAAA,IAC7B,cAAc,EAAE,MAAM,QAAQ;AAAA,IAC9B,kCAAkC,CAAC;AAAA,IACnC,YAAY,CAAC;AAAA,IACb,eAAe,EAAE,MAAM,QAAQ;AAAA,IAC/B,wBAAwB,CAAC;AAAA,IACzB,yBAAyB,EAAE,MAAM,QAAQ;AAAA,IACzC,iBAAiB,EAAE,MAAM,CAAC,UAAU,QAAQ,IAAI,EAAE;AAAA,IAClD,kBAAkB,CAAC;AAAA,IACnB,8BAA8B,CAAC;AAAA,IAC/B,4BAA4B,EAAE,MAAM,CAAC,UAAU,QAAQ,IAAI,EAAE;AAAA,IAC7D,+BAA+B,CAAC;AAAA,IAChC,4BAA4B,CAAC;AAAA,IAC7B,sCAAsC,CAAC;AAAA,IACvC,qBAAqB,CAAC;AAAA,IACtB,qBAAqB,CAAC;AAAA,IACtB,mBAAmB,EAAE,MAAM,CAAC,UAAU,IAAI,EAAE;AAAA,IAC5C,qBAAqB,CAA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AAO;AAAA,IACpC,CACD,GAEDQ,EAAMV,GAAM,MAAM;;AACN,OAAAQ,IAAAJ,EAAA,UAAA,QAAAI,EAAO,QAAQR,EAAK;AAAA,IAAK,CACpC,GAEQL,EAAA;AAAA,MACP,WAAAS;AAAA,IAAA,CACD,GAEM,CAACU,GAAUC,OACRC,EAAW,GAAGC,EAAoB,OAAO5B,CAAU;AAAA,EAE7D;AAEA,CAAC;"}
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/graph/index.vue"],"sourcesContent":["<script setup lang=\"ts\" generic=\"N extends GraphInputNode,L extends GraphInputLink\">\n// !!! This code was automatically generated. You should not change it !!!\nimport { Graph, GraphConfigInterface, GraphInputNode, GraphInputLink } from '@unovis/ts'\nimport { onMounted, onUnmounted, computed, ref, watch, nextTick, inject } from 'vue'\nimport { arePropsEqual, useForwardProps } from '../../utils/props'\nimport { componentAccessorKey } from '../../utils/context'\n\nconst accessor = inject(componentAccessorKey)\n\n// data and required props \ntype Props = GraphConfigInterface<N, L>\nconst props = defineProps<Props & { data?: { nodes: N[]; links?: L[] } }>()\n\nconst data = computed(() => accessor.data.value ?? props.data)\n// config\nconst config = useForwardProps(props)\n\n// component declaration\nconst component = ref<Graph<N, L>>()\n\n\nonMounted(() => {\n nextTick(() => {\n component.value = new Graph<N, L>(config.value)\n component.value?.setData(data.value)\n accessor.update(component.value)\n })\n})\n\nonUnmounted(() => {\n component.value?.destroy()\n accessor.destroy()\n})\n\nwatch(config, (curr, prev) => {\n if (!arePropsEqual(curr, prev)) {\n component.value?.setConfig(config.value)\n }\n})\n\nwatch(data, () => {\n component.value?.setData(data.value)\n})\n\ndefineExpose({\n component\n})\n</script>\n\n<script lang=\"ts\">\nexport const VisGraphSelectors = Graph.selectors\n</script>\n\n<template>\n <div data-vis-component />\n</template>\n\n\n"],"names":["VisGraphSelectors","Graph","accessor","inject","componentAccessorKey","props","__props","data","computed","config","useForwardProps","component","ref","onMounted","nextTick","_a","onUnmounted","watch","curr","prev","arePropsEqual","__expose"],"mappings":";;;;wCAkDaA,IAAoBC,EAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA3CjC,UAAAC,IAAWC,EAAOC,CAAoB,GAItCC,IAAQC,GAERC,IAAOC,EAAS,MAAMN,EAAS,KAAK,SAASG,EAAM,IAAI,GAEvDI,IAASC,EAAgBL,CAAK,GAG9BM,IAAYC,EAAiB;AAGnC,WAAAC,EAAU,MAAM;AACd,MAAAC,EAAS,MAAM;;AACb,QAAAH,EAAU,QAAQ,IAAIV,EAAYQ,EAAO,KAAK,IACpCM,IAAAJ,EAAA,UAAA,QAAAI,EAAO,QAAQR,EAAK,QACrBL,EAAA,OAAOS,EAAU,KAAK;AAAA,MAAA,CAChC;AAAA,IAAA,CACF,GAEDK,EAAY,MAAM;;AAChB,OAAAD,IAAAJ,EAAU,UAAV,QAAAI,EAAiB,WACjBb,EAAS,QAAQ;AAAA,IAAA,CAClB,GAEKe,EAAAR,GAAQ,CAACS,GAAMC,MAAS;;AAC5B,MAAKC,EAAcF,GAAMC,CAAI,MACjBJ,IAAAJ,EAAA,UAAA,QAAAI,EAAO,UAAUN,EAAO;AAAA,IACpC,CACD,GAEDQ,EAAMV,GAAM,MAAM;;AACN,OAAAQ,IAAAJ,EAAA,UAAA,QAAAI,EAAO,QAAQR,EAAK;AAAA,IAAK,CACpC,GAEYc,EAAA;AAAA,MACX,WAAAV;AAAA,IAAA,CACD;;;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),d=require("@unovis/ts"),i=require("../../utils/props.cjs"),v=require("../../utils/context.cjs"),m={"data-vis-component":""},y=d.GroupedBar.selectors,g=t.defineComponent({__name:"index",props:{color:{},groupWidth:{},groupMaxWidth:{},dataStep:{},groupPadding:{},barPadding:{},roundedCorners:{type:[Number,Boolean]},barMinHeight:{},cursor:{},orientation:{},x:{},y:{},id:{type:Function},xScale:{type:[Object,Function]},yScale:{type:[Object,Function]},excludeFromDomainCalculation:{type:Boolean},duration:{},events:{},attributes:{},data:{}},setup(l,{expose:p}){const a=t.inject(v.componentAccessorKey),c=l,n=t.computed(()=>a.data.value??c.data),r=i.useForwardProps(c),o=t.ref();return t.onMounted(()=>{t.nextTick(()=>{var e;o.value=new d.GroupedBar(r.value),(e=o.value)==null||e.setData(n.value),a.update(o.value)})}),t.onUnmounted(()=>{var e;(e=o.value)==null||e.destroy(),a.destroy()}),t.watch(r,(e,u)=>{var s;i.arePropsEqual(e,u)||(s=o.value)==null||s.setConfig(r.value)}),t.watch(n,()=>{var e;(e=o.value)==null||e.setData(n.value)}),p({component:o}),(e,u)=>(t.openBlock(),t.createElementBlock("div",m))}});exports.VisGroupedBarSelectors=y;exports.default=g;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../../../src/components/grouped-bar/index.vue
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../src/components/grouped-bar/index.vue"],"sourcesContent":["<script setup lang=\"ts\" generic=\"Datum\">\n// !!! This code was automatically generated. You should not change it !!!\nimport { GroupedBar, GroupedBarConfigInterface, NumericAccessor } from '@unovis/ts'\nimport { onMounted, onUnmounted, computed, ref, watch, nextTick, inject } from 'vue'\nimport { arePropsEqual, useForwardProps } from '../../utils/props'\nimport { componentAccessorKey } from '../../utils/context'\n\nconst accessor = inject(componentAccessorKey)\n\n// data and required props \ntype Props = GroupedBarConfigInterface<Datum>\nconst props = defineProps<Props & { data?: Datum[] }>()\n\nconst data = computed(() => accessor.data.value ?? props.data)\n// config\nconst config = useForwardProps(props)\n\n// component declaration\nconst component = ref<GroupedBar<Datum>>()\n\n\nonMounted(() => {\n nextTick(() => {\n component.value = new GroupedBar<Datum>(config.value)\n component.value?.setData(data.value)\n accessor.update(component.value)\n })\n})\n\nonUnmounted(() => {\n component.value?.destroy()\n accessor.destroy()\n})\n\nwatch(config, (curr, prev) => {\n if (!arePropsEqual(curr, prev)) {\n component.value?.setConfig(config.value)\n }\n})\n\nwatch(data, () => {\n component.value?.setData(data.value)\n})\n\ndefineExpose({\n component\n})\n</script>\n\n<script lang=\"ts\">\nexport const VisGroupedBarSelectors = GroupedBar.selectors\n</script>\n\n<template>\n <div data-vis-component />\n</template>\n\n\n"],"names":["VisGroupedBarSelectors","GroupedBar","accessor","inject","componentAccessorKey","props","__props","data","computed","config","useForwardProps","component","ref","onMounted","nextTick","_a","onUnmounted","watch","curr","prev","arePropsEqual","__expose"],"mappings":"+PAkDaA,EAAyBC,EAAAA,WAAW,iaA3C3C,MAAAC,EAAWC,SAAOC,sBAAoB,EAItCC,EAAQC,EAERC,EAAOC,EAAAA,SAAS,IAAMN,EAAS,KAAK,OAASG,EAAM,IAAI,EAEvDI,EAASC,kBAAgBL,CAAK,EAG9BM,EAAYC,EAAAA,IAAuB,EAGzCC,OAAAA,EAAAA,UAAU,IAAM,CACdC,EAAAA,SAAS,IAAM,OACbH,EAAU,MAAQ,IAAIV,aAAkBQ,EAAO,KAAK,GAC1CM,EAAAJ,EAAA,QAAA,MAAAI,EAAO,QAAQR,EAAK,OACrBL,EAAA,OAAOS,EAAU,KAAK,CAAA,CAChC,CAAA,CACF,EAEDK,EAAAA,YAAY,IAAM,QAChBD,EAAAJ,EAAU,QAAV,MAAAI,EAAiB,UACjBb,EAAS,QAAQ,CAAA,CAClB,EAEKe,EAAAA,MAAAR,EAAQ,CAACS,EAAMC,IAAS,OACvBC,EAAA,cAAcF,EAAMC,CAAI,IACjBJ,EAAAJ,EAAA,QAAA,MAAAI,EAAO,UAAUN,EAAO,MACpC,CACD,EAEDQ,EAAA,MAAMV,EAAM,IAAM,QACNQ,EAAAJ,EAAA,QAAA,MAAAI,EAAO,QAAQR,EAAK,MAAK,CACpC,EAEYc,EAAA,CACX,UAAAV,CAAA,CACD"}
|
|
@@ -56,7 +56,7 @@ declare const _default: <Datum>(__VLS_props: any, __VLS_ctx?: {
|
|
|
56
56
|
orientation?: string;
|
|
57
57
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
58
58
|
expose(exposed: import("vue").ShallowUnwrapRef<{
|
|
59
|
-
component: import("vue").Ref<GroupedBar<Datum>>;
|
|
59
|
+
component: import("vue").Ref<GroupedBar<Datum>, GroupedBar<Datum>>;
|
|
60
60
|
}>): void;
|
|
61
61
|
attrs: any;
|
|
62
62
|
slots: {};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { GroupedBar as
|
|
3
|
-
import { useForwardProps as
|
|
4
|
-
import { componentAccessorKey as
|
|
5
|
-
const
|
|
1
|
+
import { defineComponent as l, inject as m, computed as v, ref as f, onMounted as y, nextTick as x, onUnmounted as g, watch as u, openBlock as _, createElementBlock as b } from "vue";
|
|
2
|
+
import { GroupedBar as i } from "@unovis/ts";
|
|
3
|
+
import { useForwardProps as h, arePropsEqual as B } from "../../utils/props.js";
|
|
4
|
+
import { componentAccessorKey as F } from "../../utils/context.js";
|
|
5
|
+
const C = { "data-vis-component": "" }, w = i.selectors, D = /* @__PURE__ */ l({
|
|
6
6
|
__name: "index",
|
|
7
7
|
props: {
|
|
8
|
-
color: {
|
|
8
|
+
color: {},
|
|
9
9
|
groupWidth: {},
|
|
10
10
|
groupMaxWidth: {},
|
|
11
11
|
dataStep: {},
|
|
@@ -13,10 +13,10 @@ const S = { "data-vis-component": "" }, w = s.selectors, A = /* @__PURE__ */ d({
|
|
|
13
13
|
barPadding: {},
|
|
14
14
|
roundedCorners: { type: [Number, Boolean] },
|
|
15
15
|
barMinHeight: {},
|
|
16
|
-
cursor: {
|
|
16
|
+
cursor: {},
|
|
17
17
|
orientation: {},
|
|
18
|
-
x: {
|
|
19
|
-
y: {
|
|
18
|
+
x: {},
|
|
19
|
+
y: {},
|
|
20
20
|
id: { type: Function },
|
|
21
21
|
xScale: { type: [Object, Function] },
|
|
22
22
|
yScale: { type: [Object, Function] },
|
|
@@ -26,29 +26,29 @@ const S = { "data-vis-component": "" }, w = s.selectors, A = /* @__PURE__ */ d({
|
|
|
26
26
|
attributes: {},
|
|
27
27
|
data: {}
|
|
28
28
|
},
|
|
29
|
-
setup(
|
|
30
|
-
const
|
|
31
|
-
return
|
|
32
|
-
|
|
29
|
+
setup(d, { expose: p }) {
|
|
30
|
+
const t = m(F), r = d, a = v(() => t.data.value ?? r.data), n = h(r), o = f();
|
|
31
|
+
return y(() => {
|
|
32
|
+
x(() => {
|
|
33
33
|
var e;
|
|
34
|
-
|
|
34
|
+
o.value = new i(n.value), (e = o.value) == null || e.setData(a.value), t.update(o.value);
|
|
35
35
|
});
|
|
36
|
-
}),
|
|
36
|
+
}), g(() => {
|
|
37
37
|
var e;
|
|
38
|
-
(e =
|
|
39
|
-
}),
|
|
40
|
-
var
|
|
41
|
-
|
|
42
|
-
}),
|
|
38
|
+
(e = o.value) == null || e.destroy(), t.destroy();
|
|
39
|
+
}), u(n, (e, c) => {
|
|
40
|
+
var s;
|
|
41
|
+
B(e, c) || (s = o.value) == null || s.setConfig(n.value);
|
|
42
|
+
}), u(a, () => {
|
|
43
43
|
var e;
|
|
44
|
-
(e =
|
|
45
|
-
}),
|
|
46
|
-
component:
|
|
47
|
-
}), (e,
|
|
44
|
+
(e = o.value) == null || e.setData(a.value);
|
|
45
|
+
}), p({
|
|
46
|
+
component: o
|
|
47
|
+
}), (e, c) => (_(), b("div", C));
|
|
48
48
|
}
|
|
49
49
|
});
|
|
50
50
|
export {
|
|
51
51
|
w as VisGroupedBarSelectors,
|
|
52
|
-
|
|
52
|
+
D as default
|
|
53
53
|
};
|
|
54
54
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/components/grouped-bar/index.vue
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/grouped-bar/index.vue"],"sourcesContent":["<script setup lang=\"ts\" generic=\"Datum\">\n// !!! This code was automatically generated. You should not change it !!!\nimport { GroupedBar, GroupedBarConfigInterface, NumericAccessor } from '@unovis/ts'\nimport { onMounted, onUnmounted, computed, ref, watch, nextTick, inject } from 'vue'\nimport { arePropsEqual, useForwardProps } from '../../utils/props'\nimport { componentAccessorKey } from '../../utils/context'\n\nconst accessor = inject(componentAccessorKey)\n\n// data and required props \ntype Props = GroupedBarConfigInterface<Datum>\nconst props = defineProps<Props & { data?: Datum[] }>()\n\nconst data = computed(() => accessor.data.value ?? props.data)\n// config\nconst config = useForwardProps(props)\n\n// component declaration\nconst component = ref<GroupedBar<Datum>>()\n\n\nonMounted(() => {\n nextTick(() => {\n component.value = new GroupedBar<Datum>(config.value)\n component.value?.setData(data.value)\n accessor.update(component.value)\n })\n})\n\nonUnmounted(() => {\n component.value?.destroy()\n accessor.destroy()\n})\n\nwatch(config, (curr, prev) => {\n if (!arePropsEqual(curr, prev)) {\n component.value?.setConfig(config.value)\n }\n})\n\nwatch(data, () => {\n component.value?.setData(data.value)\n})\n\ndefineExpose({\n component\n})\n</script>\n\n<script lang=\"ts\">\nexport const VisGroupedBarSelectors = GroupedBar.selectors\n</script>\n\n<template>\n <div data-vis-component />\n</template>\n\n\n"],"names":["VisGroupedBarSelectors","GroupedBar","accessor","inject","componentAccessorKey","props","__props","data","computed","config","useForwardProps","component","ref","onMounted","nextTick","_a","onUnmounted","watch","curr","prev","arePropsEqual","__expose"],"mappings":";;;;wCAkDaA,IAAyBC,EAAW;;;;;;;;;;;;;;;;;;;;;;;;;AA3C3C,UAAAC,IAAWC,EAAOC,CAAoB,GAItCC,IAAQC,GAERC,IAAOC,EAAS,MAAMN,EAAS,KAAK,SAASG,EAAM,IAAI,GAEvDI,IAASC,EAAgBL,CAAK,GAG9BM,IAAYC,EAAuB;AAGzC,WAAAC,EAAU,MAAM;AACd,MAAAC,EAAS,MAAM;;AACb,QAAAH,EAAU,QAAQ,IAAIV,EAAkBQ,EAAO,KAAK,IAC1CM,IAAAJ,EAAA,UAAA,QAAAI,EAAO,QAAQR,EAAK,QACrBL,EAAA,OAAOS,EAAU,KAAK;AAAA,MAAA,CAChC;AAAA,IAAA,CACF,GAEDK,EAAY,MAAM;;AAChB,OAAAD,IAAAJ,EAAU,UAAV,QAAAI,EAAiB,WACjBb,EAAS,QAAQ;AAAA,IAAA,CAClB,GAEKe,EAAAR,GAAQ,CAACS,GAAMC,MAAS;;AAC5B,MAAKC,EAAcF,GAAMC,CAAI,MACjBJ,IAAAJ,EAAA,UAAA,QAAAI,EAAO,UAAUN,EAAO;AAAA,IACpC,CACD,GAEDQ,EAAMV,GAAM,MAAM;;AACN,OAAAQ,IAAAJ,EAAA,UAAA,QAAAI,EAAO,QAAQR,EAAK;AAAA,IAAK,CACpC,GAEYc,EAAA;AAAA,MACX,WAAAV;AAAA,IAAA,CACD;;;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),l=require("@unovis/ts"),i=require("../../utils/props.cjs"),v=require("../../utils/context.cjs"),y={"data-vis-component":""},m=l.Line.selectors,_=t.defineComponent({__name:"index",props:{color:{},curveType:{},lineWidth:{},lineDashArray:{},fallbackValue:{},highlightOnHover:{type:Boolean},cursor:{},x:{},y:{},id:{type:Function},xScale:{type:[Object,Function]},yScale:{type:[Object,Function]},excludeFromDomainCalculation:{type:Boolean},duration:{},events:{},attributes:{},data:{}},setup(d,{expose:p}){const n=t.inject(v.componentAccessorKey),s=d,a=t.computed(()=>n.data.value??s.data),c=i.useForwardProps(s),o=t.ref();return t.onMounted(()=>{t.nextTick(()=>{var e;o.value=new l.Line(c.value),(e=o.value)==null||e.setData(a.value),n.update(o.value)})}),t.onUnmounted(()=>{var e;(e=o.value)==null||e.destroy(),n.destroy()}),t.watch(c,(e,r)=>{var u;i.arePropsEqual(e,r)||(u=o.value)==null||u.setConfig(c.value)}),t.watch(a,()=>{var e;(e=o.value)==null||e.setData(a.value)}),p({component:o}),(e,r)=>(t.openBlock(),t.createElementBlock("div",y))}});exports.VisLineSelectors=m;exports.default=_;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../../../src/components/line/index.vue
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../src/components/line/index.vue"],"sourcesContent":["<script setup lang=\"ts\" generic=\"Datum\">\n// !!! This code was automatically generated. You should not change it !!!\nimport { Line, LineConfigInterface, NumericAccessor } from '@unovis/ts'\nimport { onMounted, onUnmounted, computed, ref, watch, nextTick, inject } from 'vue'\nimport { arePropsEqual, useForwardProps } from '../../utils/props'\nimport { componentAccessorKey } from '../../utils/context'\n\nconst accessor = inject(componentAccessorKey)\n\n// data and required props \ntype Props = LineConfigInterface<Datum>\nconst props = defineProps<Props & { data?: Datum[] }>()\n\nconst data = computed(() => accessor.data.value ?? props.data)\n// config\nconst config = useForwardProps(props)\n\n// component declaration\nconst component = ref<Line<Datum>>()\n\n\nonMounted(() => {\n nextTick(() => {\n component.value = new Line<Datum>(config.value)\n component.value?.setData(data.value)\n accessor.update(component.value)\n })\n})\n\nonUnmounted(() => {\n component.value?.destroy()\n accessor.destroy()\n})\n\nwatch(config, (curr, prev) => {\n if (!arePropsEqual(curr, prev)) {\n component.value?.setConfig(config.value)\n }\n})\n\nwatch(data, () => {\n component.value?.setData(data.value)\n})\n\ndefineExpose({\n component\n})\n</script>\n\n<script lang=\"ts\">\nexport const VisLineSelectors = Line.selectors\n</script>\n\n<template>\n <div data-vis-component />\n</template>\n\n\n"],"names":["VisLineSelectors","Line","accessor","inject","componentAccessorKey","props","__props","data","computed","config","useForwardProps","component","ref","onMounted","nextTick","_a","onUnmounted","watch","curr","prev","arePropsEqual","__expose"],"mappings":"+PAkDaA,EAAmBC,EAAAA,KAAK,8WA3C/B,MAAAC,EAAWC,SAAOC,sBAAoB,EAItCC,EAAQC,EAERC,EAAOC,EAAAA,SAAS,IAAMN,EAAS,KAAK,OAASG,EAAM,IAAI,EAEvDI,EAASC,kBAAgBL,CAAK,EAG9BM,EAAYC,EAAAA,IAAiB,EAGnCC,OAAAA,EAAAA,UAAU,IAAM,CACdC,EAAAA,SAAS,IAAM,OACbH,EAAU,MAAQ,IAAIV,OAAYQ,EAAO,KAAK,GACpCM,EAAAJ,EAAA,QAAA,MAAAI,EAAO,QAAQR,EAAK,OACrBL,EAAA,OAAOS,EAAU,KAAK,CAAA,CAChC,CAAA,CACF,EAEDK,EAAAA,YAAY,IAAM,QAChBD,EAAAJ,EAAU,QAAV,MAAAI,EAAiB,UACjBb,EAAS,QAAQ,CAAA,CAClB,EAEKe,EAAAA,MAAAR,EAAQ,CAACS,EAAMC,IAAS,OACvBC,EAAA,cAAcF,EAAMC,CAAI,IACjBJ,EAAAJ,EAAA,QAAA,MAAAI,EAAO,UAAUN,EAAO,MACpC,CACD,EAEDQ,EAAA,MAAMV,EAAM,IAAM,QACNQ,EAAAJ,EAAA,QAAA,MAAAI,EAAO,QAAQR,EAAK,MAAK,CACpC,EAEYc,EAAA,CACX,UAAAV,CAAA,CACD"}
|
|
@@ -53,7 +53,7 @@ declare const _default: <Datum>(__VLS_props: any, __VLS_ctx?: {
|
|
|
53
53
|
highlightOnHover?: boolean;
|
|
54
54
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
55
55
|
expose(exposed: import("vue").ShallowUnwrapRef<{
|
|
56
|
-
component: import("vue").Ref<Line<Datum>>;
|
|
56
|
+
component: import("vue").Ref<Line<Datum>, Line<Datum>>;
|
|
57
57
|
}>): void;
|
|
58
58
|
attrs: any;
|
|
59
59
|
slots: {};
|
package/components/line/index.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { defineComponent as d, inject as m, computed as
|
|
1
|
+
import { defineComponent as d, inject as m, computed as v, ref as f, onMounted as y, nextTick as h, onUnmounted as x, watch as l, openBlock as _, createElementBlock as F } from "vue";
|
|
2
2
|
import { Line as i } from "@unovis/ts";
|
|
3
3
|
import { useForwardProps as b, arePropsEqual as g } from "../../utils/props.js";
|
|
4
|
-
import { componentAccessorKey as
|
|
5
|
-
const
|
|
4
|
+
import { componentAccessorKey as k } from "../../utils/context.js";
|
|
5
|
+
const B = { "data-vis-component": "" }, O = i.selectors, S = /* @__PURE__ */ d({
|
|
6
6
|
__name: "index",
|
|
7
7
|
props: {
|
|
8
|
-
color: {
|
|
8
|
+
color: {},
|
|
9
9
|
curveType: {},
|
|
10
10
|
lineWidth: {},
|
|
11
|
-
lineDashArray: {
|
|
11
|
+
lineDashArray: {},
|
|
12
12
|
fallbackValue: {},
|
|
13
13
|
highlightOnHover: { type: Boolean },
|
|
14
|
-
cursor: {
|
|
15
|
-
x: {
|
|
16
|
-
y: {
|
|
14
|
+
cursor: {},
|
|
15
|
+
x: {},
|
|
16
|
+
y: {},
|
|
17
17
|
id: { type: Function },
|
|
18
18
|
xScale: { type: [Object, Function] },
|
|
19
19
|
yScale: { type: [Object, Function] },
|
|
@@ -23,29 +23,29 @@ const k = { "data-vis-component": "" }, w = i.selectors, C = /* @__PURE__ */ d({
|
|
|
23
23
|
attributes: {},
|
|
24
24
|
data: {}
|
|
25
25
|
},
|
|
26
|
-
setup(
|
|
27
|
-
const
|
|
28
|
-
return
|
|
29
|
-
|
|
26
|
+
setup(u, { expose: p }) {
|
|
27
|
+
const o = m(k), c = u, a = v(() => o.data.value ?? c.data), n = b(c), t = f();
|
|
28
|
+
return y(() => {
|
|
29
|
+
h(() => {
|
|
30
30
|
var e;
|
|
31
|
-
t.value = new i(
|
|
31
|
+
t.value = new i(n.value), (e = t.value) == null || e.setData(a.value), o.update(t.value);
|
|
32
32
|
});
|
|
33
|
-
}),
|
|
33
|
+
}), x(() => {
|
|
34
34
|
var e;
|
|
35
|
-
(e = t.value) == null || e.destroy(),
|
|
36
|
-
}), l(
|
|
37
|
-
var
|
|
38
|
-
g(e, r) || (
|
|
39
|
-
}), l(
|
|
35
|
+
(e = t.value) == null || e.destroy(), o.destroy();
|
|
36
|
+
}), l(n, (e, r) => {
|
|
37
|
+
var s;
|
|
38
|
+
g(e, r) || (s = t.value) == null || s.setConfig(n.value);
|
|
39
|
+
}), l(a, () => {
|
|
40
40
|
var e;
|
|
41
|
-
(e = t.value) == null || e.setData(
|
|
41
|
+
(e = t.value) == null || e.setData(a.value);
|
|
42
42
|
}), p({
|
|
43
43
|
component: t
|
|
44
|
-
}), (e, r) => (
|
|
44
|
+
}), (e, r) => (_(), F("div", B));
|
|
45
45
|
}
|
|
46
46
|
});
|
|
47
47
|
export {
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
O as VisLineSelectors,
|
|
49
|
+
S as default
|
|
50
50
|
};
|
|
51
51
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/components/line/index.vue
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/line/index.vue"],"sourcesContent":["<script setup lang=\"ts\" generic=\"Datum\">\n// !!! This code was automatically generated. You should not change it !!!\nimport { Line, LineConfigInterface, NumericAccessor } from '@unovis/ts'\nimport { onMounted, onUnmounted, computed, ref, watch, nextTick, inject } from 'vue'\nimport { arePropsEqual, useForwardProps } from '../../utils/props'\nimport { componentAccessorKey } from '../../utils/context'\n\nconst accessor = inject(componentAccessorKey)\n\n// data and required props \ntype Props = LineConfigInterface<Datum>\nconst props = defineProps<Props & { data?: Datum[] }>()\n\nconst data = computed(() => accessor.data.value ?? props.data)\n// config\nconst config = useForwardProps(props)\n\n// component declaration\nconst component = ref<Line<Datum>>()\n\n\nonMounted(() => {\n nextTick(() => {\n component.value = new Line<Datum>(config.value)\n component.value?.setData(data.value)\n accessor.update(component.value)\n })\n})\n\nonUnmounted(() => {\n component.value?.destroy()\n accessor.destroy()\n})\n\nwatch(config, (curr, prev) => {\n if (!arePropsEqual(curr, prev)) {\n component.value?.setConfig(config.value)\n }\n})\n\nwatch(data, () => {\n component.value?.setData(data.value)\n})\n\ndefineExpose({\n component\n})\n</script>\n\n<script lang=\"ts\">\nexport const VisLineSelectors = Line.selectors\n</script>\n\n<template>\n <div data-vis-component />\n</template>\n\n\n"],"names":["VisLineSelectors","Line","accessor","inject","componentAccessorKey","props","__props","data","computed","config","useForwardProps","component","ref","onMounted","nextTick","_a","onUnmounted","watch","curr","prev","arePropsEqual","__expose"],"mappings":";;;;wCAkDaA,IAAmBC,EAAK;;;;;;;;;;;;;;;;;;;;;;AA3C/B,UAAAC,IAAWC,EAAOC,CAAoB,GAItCC,IAAQC,GAERC,IAAOC,EAAS,MAAMN,EAAS,KAAK,SAASG,EAAM,IAAI,GAEvDI,IAASC,EAAgBL,CAAK,GAG9BM,IAAYC,EAAiB;AAGnC,WAAAC,EAAU,MAAM;AACd,MAAAC,EAAS,MAAM;;AACb,QAAAH,EAAU,QAAQ,IAAIV,EAAYQ,EAAO,KAAK,IACpCM,IAAAJ,EAAA,UAAA,QAAAI,EAAO,QAAQR,EAAK,QACrBL,EAAA,OAAOS,EAAU,KAAK;AAAA,MAAA,CAChC;AAAA,IAAA,CACF,GAEDK,EAAY,MAAM;;AAChB,OAAAD,IAAAJ,EAAU,UAAV,QAAAI,EAAiB,WACjBb,EAAS,QAAQ;AAAA,IAAA,CAClB,GAEKe,EAAAR,GAAQ,CAACS,GAAMC,MAAS;;AAC5B,MAAKC,EAAcF,GAAMC,CAAI,MACjBJ,IAAAJ,EAAA,UAAA,QAAAI,EAAO,UAAUN,EAAO;AAAA,IACpC,CACD,GAEDQ,EAAMV,GAAM,MAAM;;AACN,OAAAQ,IAAAJ,EAAA,UAAA,QAAAI,EAAO,QAAQR,EAAK;AAAA,IAAK,CACpC,GAEYc,EAAA;AAAA,MACX,WAAAV;AAAA,IAAA,CACD;;;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),d=require("@unovis/ts"),u=require("../../utils/props.cjs"),m=require("../../utils/context.cjs"),v={"data-vis-component":""},g=d.NestedDonut.selectors,y=t.defineComponent({__name:"index",props:{angleRange:{},direction:{},value:{},centralLabel:{},centralSubLabel:{},centralSubLabelWrap:{type:Boolean},showBackground:{type:Boolean},sort:{type:Function},layers:{},layerSettings:{},layerPadding:{},cornerRadius:{},emptySegmentAngle:{},hideOverflowingSegmentLabels:{type:Boolean},segmentColor:{},segmentLabel:{},segmentLabelColor:{},showEmptySegments:{type:Boolean},showSegmentLabels:{type:Boolean},duration:{},events:{},attributes:{},data:{}},setup(i,{expose:p}){const n=t.inject(m.componentAccessorKey),r=i,a=t.computed(()=>n.data.value??r.data),s=u.useForwardProps(r),o=t.ref();return t.onMounted(()=>{t.nextTick(()=>{var e;o.value=new d.NestedDonut(s.value),(e=o.value)==null||e.setData(a.value),n.update(o.value)})}),t.onUnmounted(()=>{var e;(e=o.value)==null||e.destroy(),n.destroy()}),t.watch(s,(e,l)=>{var c;u.arePropsEqual(e,l)||(c=o.value)==null||c.setConfig(s.value)}),t.watch(a,()=>{var e;(e=o.value)==null||e.setData(a.value)}),p({component:o}),(e,l)=>(t.openBlock(),t.createElementBlock("div",v))}});exports.VisNestedDonutSelectors=g;exports.default=y;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../../../src/components/nested-donut/index.vue
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../src/components/nested-donut/index.vue"],"sourcesContent":["<script setup lang=\"ts\" generic=\"Datum\">\n// !!! This code was automatically generated. You should not change it !!!\nimport { NestedDonut, NestedDonutConfigInterface, StringAccessor } from '@unovis/ts'\nimport { onMounted, onUnmounted, computed, ref, watch, nextTick, inject } from 'vue'\nimport { arePropsEqual, useForwardProps } from '../../utils/props'\nimport { componentAccessorKey } from '../../utils/context'\n\nconst accessor = inject(componentAccessorKey)\n\n// data and required props \ntype Props = NestedDonutConfigInterface<Datum>\nconst props = defineProps<Props & { data?: Datum[] }>()\n\nconst data = computed(() => accessor.data.value ?? props.data)\n// config\nconst config = useForwardProps(props)\n\n// component declaration\nconst component = ref<NestedDonut<Datum>>()\n\n\nonMounted(() => {\n nextTick(() => {\n component.value = new NestedDonut<Datum>(config.value)\n component.value?.setData(data.value)\n accessor.update(component.value)\n })\n})\n\nonUnmounted(() => {\n component.value?.destroy()\n accessor.destroy()\n})\n\nwatch(config, (curr, prev) => {\n if (!arePropsEqual(curr, prev)) {\n component.value?.setConfig(config.value)\n }\n})\n\nwatch(data, () => {\n component.value?.setData(data.value)\n})\n\ndefineExpose({\n component\n})\n</script>\n\n<script lang=\"ts\">\nexport const VisNestedDonutSelectors = NestedDonut.selectors\n</script>\n\n<template>\n <div data-vis-component />\n</template>\n\n\n"],"names":["VisNestedDonutSelectors","NestedDonut","accessor","inject","componentAccessorKey","props","__props","data","computed","config","useForwardProps","component","ref","onMounted","nextTick","_a","onUnmounted","watch","curr","prev","arePropsEqual","__expose"],"mappings":"+PAkDaA,EAA0BC,EAAAA,YAAY,sgBA3C7C,MAAAC,EAAWC,SAAOC,sBAAoB,EAItCC,EAAQC,EAERC,EAAOC,EAAAA,SAAS,IAAMN,EAAS,KAAK,OAASG,EAAM,IAAI,EAEvDI,EAASC,kBAAgBL,CAAK,EAG9BM,EAAYC,EAAAA,IAAwB,EAG1CC,OAAAA,EAAAA,UAAU,IAAM,CACdC,EAAAA,SAAS,IAAM,OACbH,EAAU,MAAQ,IAAIV,cAAmBQ,EAAO,KAAK,GAC3CM,EAAAJ,EAAA,QAAA,MAAAI,EAAO,QAAQR,EAAK,OACrBL,EAAA,OAAOS,EAAU,KAAK,CAAA,CAChC,CAAA,CACF,EAEDK,EAAAA,YAAY,IAAM,QAChBD,EAAAJ,EAAU,QAAV,MAAAI,EAAiB,UACjBb,EAAS,QAAQ,CAAA,CAClB,EAEKe,EAAAA,MAAAR,EAAQ,CAACS,EAAMC,IAAS,OACvBC,EAAA,cAAcF,EAAMC,CAAI,IACjBJ,EAAAJ,EAAA,QAAA,MAAAI,EAAO,UAAUN,EAAO,MACpC,CACD,EAEDQ,EAAA,MAAMV,EAAM,IAAM,QACNQ,EAAAJ,EAAA,QAAA,MAAAI,EAAO,QAAQR,EAAK,MAAK,CACpC,EAEYc,EAAA,CACX,UAAAV,CAAA,CACD"}
|
|
@@ -38,9 +38,9 @@ declare const _default: <Datum>(__VLS_props: any, __VLS_ctx?: {
|
|
|
38
38
|
};
|
|
39
39
|
};
|
|
40
40
|
data?: Datum[];
|
|
41
|
-
value?: import("@unovis/ts").NumericAccessor<Datum>;
|
|
42
41
|
angleRange?: [number, number];
|
|
43
42
|
cornerRadius?: number;
|
|
43
|
+
value?: import("@unovis/ts").NumericAccessor<Datum>;
|
|
44
44
|
centralLabel?: string;
|
|
45
45
|
centralSubLabel?: string;
|
|
46
46
|
centralSubLabelWrap?: boolean;
|
|
@@ -59,7 +59,7 @@ declare const _default: <Datum>(__VLS_props: any, __VLS_ctx?: {
|
|
|
59
59
|
showSegmentLabels?: boolean;
|
|
60
60
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
61
61
|
expose(exposed: import("vue").ShallowUnwrapRef<{
|
|
62
|
-
component: import("vue").Ref<NestedDonut<Datum>>;
|
|
62
|
+
component: import("vue").Ref<NestedDonut<Datum>, NestedDonut<Datum>>;
|
|
63
63
|
}>): void;
|
|
64
64
|
attrs: any;
|
|
65
65
|
slots: {};
|