@unovis/vue 1.4.0-beta.6 → 1.4.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/area/index.cjs +1 -1
- package/components/area/index.cjs.map +1 -1
- package/components/area/index.d.ts +1 -0
- package/components/area/index.js +20 -19
- package/components/area/index.js.map +1 -1
- package/components/area/index2.cjs +1 -1
- package/components/area/index2.js +4 -2
- package/components/area/index2.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 -0
- package/components/axis/index.js +12 -11
- package/components/axis/index.js.map +1 -1
- package/components/axis/index2.cjs +1 -1
- package/components/axis/index2.js +4 -2
- package/components/axis/index2.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 -0
- package/components/brush/index.js +19 -18
- package/components/brush/index.js.map +1 -1
- package/components/brush/index2.cjs +1 -1
- package/components/brush/index2.js +4 -2
- package/components/brush/index2.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 -0
- package/components/chord-diagram/index.js +16 -15
- package/components/chord-diagram/index.js.map +1 -1
- package/components/chord-diagram/index2.cjs +1 -1
- package/components/chord-diagram/index2.js +4 -2
- package/components/chord-diagram/index2.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 +3 -0
- package/components/crosshair/index.js +14 -13
- package/components/crosshair/index.js.map +1 -1
- package/components/crosshair/index2.cjs +1 -1
- package/components/crosshair/index2.js +4 -2
- package/components/crosshair/index2.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 +1 -0
- package/components/donut/index.js +20 -19
- package/components/donut/index.js.map +1 -1
- package/components/donut/index2.cjs +1 -1
- package/components/donut/index2.js +4 -2
- package/components/donut/index2.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 -0
- package/components/free-brush/index.js +17 -16
- package/components/free-brush/index.js.map +1 -1
- package/components/free-brush/index2.cjs +1 -1
- package/components/free-brush/index2.js +4 -2
- package/components/free-brush/index2.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 +30 -8
- package/components/graph/index.js +22 -16
- package/components/graph/index.js.map +1 -1
- package/components/graph/index2.cjs +1 -1
- package/components/graph/index2.js +4 -2
- package/components/graph/index2.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 -0
- package/components/grouped-bar/index.js +11 -10
- package/components/grouped-bar/index.js.map +1 -1
- package/components/grouped-bar/index2.cjs +1 -1
- package/components/grouped-bar/index2.js +4 -2
- package/components/grouped-bar/index2.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 -0
- package/components/line/index.js +13 -12
- package/components/line/index.js.map +1 -1
- package/components/line/index2.cjs +1 -1
- package/components/line/index2.js +4 -2
- package/components/line/index2.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 +1 -0
- package/components/nested-donut/index.js +12 -11
- package/components/nested-donut/index.js.map +1 -1
- package/components/nested-donut/index2.cjs +1 -1
- package/components/nested-donut/index2.js +4 -2
- package/components/nested-donut/index2.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 -0
- package/components/sankey/index.js +16 -15
- package/components/sankey/index.js.map +1 -1
- package/components/sankey/index2.cjs +1 -1
- package/components/sankey/index2.js +4 -2
- package/components/sankey/index2.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 +3 -2
- package/components/scatter/index.js +15 -14
- package/components/scatter/index.js.map +1 -1
- package/components/scatter/index2.cjs +1 -1
- package/components/scatter/index2.js +4 -2
- package/components/scatter/index2.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 -0
- package/components/stacked-bar/index.js +15 -14
- package/components/stacked-bar/index.js.map +1 -1
- package/components/stacked-bar/index2.cjs +1 -1
- package/components/stacked-bar/index2.js +4 -2
- package/components/stacked-bar/index2.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 +1 -0
- package/components/timeline/index.js +16 -15
- package/components/timeline/index.js.map +1 -1
- package/components/timeline/index2.cjs +1 -1
- package/components/timeline/index2.js +4 -2
- package/components/timeline/index2.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 +1 -0
- package/components/tooltip/index.js +15 -14
- package/components/tooltip/index.js.map +1 -1
- package/components/tooltip/index2.cjs +1 -1
- package/components/tooltip/index2.js +4 -2
- package/components/tooltip/index2.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 -0
- package/components/topojson-map/index.js +16 -15
- package/components/topojson-map/index.js.map +1 -1
- package/components/topojson-map/index2.cjs +1 -1
- package/components/topojson-map/index2.js +4 -2
- package/components/topojson-map/index2.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 -0
- package/components/xy-labels/index.js +19 -18
- package/components/xy-labels/index.js.map +1 -1
- package/components/xy-labels/index2.cjs +1 -1
- package/components/xy-labels/index2.js +4 -2
- package/components/xy-labels/index2.js.map +1 -1
- package/components.d.ts +21 -22
- package/containers/single-container/index.cjs +1 -1
- package/containers/single-container/index.cjs.map +1 -1
- package/containers/single-container/index2.cjs +1 -1
- package/containers/single-container/index3.cjs +1 -1
- package/containers/xy-container/index.cjs +1 -1
- package/containers/xy-container/index.cjs.map +1 -1
- package/containers/xy-container/index2.cjs +1 -1
- package/containers/xy-container/index3.cjs +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 +1 -0
- package/html-components/bullet-legend/index.js +18 -17
- package/html-components/bullet-legend/index.js.map +1 -1
- package/html-components/bullet-legend/index2.cjs +1 -1
- package/html-components/bullet-legend/index3.cjs +1 -1
- package/html-components/bullet-legend/index3.js +2 -0
- package/html-components/bullet-legend/index3.js.map +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 -0
- package/html-components/leaflet-flow-map/index.js +15 -14
- package/html-components/leaflet-flow-map/index.js.map +1 -1
- package/html-components/leaflet-flow-map/index2.cjs +1 -1
- package/html-components/leaflet-flow-map/index3.cjs +1 -1
- package/html-components/leaflet-flow-map/index3.js +4 -2
- package/html-components/leaflet-flow-map/index3.js.map +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 -0
- package/html-components/leaflet-map/index.js +15 -14
- package/html-components/leaflet-map/index.js.map +1 -1
- package/html-components/leaflet-map/index2.cjs +1 -1
- package/html-components/leaflet-map/index3.cjs +1 -1
- package/html-components/leaflet-map/index3.js +2 -0
- package/html-components/leaflet-map/index3.js.map +1 -1
- package/index.cjs +1 -1
- package/index.js +65 -46
- package/index.js.map +1 -1
- package/package.json +3 -3
- package/components/annotations/index.cjs +0 -2
- package/components/annotations/index.cjs.map +0 -1
- package/components/annotations/index.d.ts +0 -95
- package/components/annotations/index.js +0 -34
- package/components/annotations/index.js.map +0 -1
- package/components/annotations/index2.cjs +0 -2
- package/components/annotations/index2.cjs.map +0 -1
- package/components/annotations/index2.js +0 -5
- package/components/annotations/index2.js.map +0 -1
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Graph as
|
|
3
|
-
import { useForwardProps as L, arePropsEqual as
|
|
4
|
-
import { componentAccessorKey as
|
|
5
|
-
const
|
|
1
|
+
import { defineComponent as y, inject as s, computed as F, ref as m, onMounted as S, nextTick as b, onUnmounted as g, watch as r, openBlock as k, createElementBlock as N } from "vue";
|
|
2
|
+
import { Graph as c } from "@unovis/ts";
|
|
3
|
+
import { useForwardProps as L, arePropsEqual as h } from "../../utils/props.js";
|
|
4
|
+
import { componentAccessorKey as f } from "../../utils/context.js";
|
|
5
|
+
const v = { "data-vis-component": "" }, T = c.selectors, D = /* @__PURE__ */ y({
|
|
6
6
|
__name: "index",
|
|
7
7
|
props: {
|
|
8
8
|
zoomScaleExtent: {},
|
|
9
9
|
disableZoom: { type: Boolean },
|
|
10
10
|
disableDrag: { type: Boolean },
|
|
11
11
|
zoomThrottledUpdateNodeThreshold: {},
|
|
12
|
-
onZoom: { type: Function },
|
|
13
12
|
layoutType: {},
|
|
14
13
|
layoutAutofit: { type: Boolean },
|
|
15
14
|
layoutAutofitTolerance: {},
|
|
@@ -37,6 +36,7 @@ const B = { "data-vis-component": "" }, T = /* @__PURE__ */ d({
|
|
|
37
36
|
linkLabel: { type: [Function, null] },
|
|
38
37
|
linkLabelShiftFromCenter: { type: [Function, Boolean, null] },
|
|
39
38
|
linkNeighborSpacing: {},
|
|
39
|
+
linkCurvature: { type: [Function, Number, null] },
|
|
40
40
|
selectedLinkId: {},
|
|
41
41
|
nodeSize: { type: [Function, Number, null] },
|
|
42
42
|
nodeStrokeWidth: { type: [Function, Number, null] },
|
|
@@ -66,33 +66,39 @@ const B = { "data-vis-component": "" }, T = /* @__PURE__ */ d({
|
|
|
66
66
|
nodeExitScale: { type: [Function, Number, null] },
|
|
67
67
|
selectedNodeId: {},
|
|
68
68
|
panels: {},
|
|
69
|
+
onNodeDragStart: { type: Function },
|
|
70
|
+
onNodeDrag: { type: Function },
|
|
71
|
+
onNodeDragEnd: { type: Function },
|
|
72
|
+
onZoom: { type: Function },
|
|
73
|
+
onLayoutCalculated: { type: Function },
|
|
69
74
|
duration: {},
|
|
70
75
|
events: {},
|
|
71
76
|
attributes: {},
|
|
72
77
|
data: {}
|
|
73
78
|
},
|
|
74
|
-
setup(
|
|
75
|
-
const u =
|
|
76
|
-
return
|
|
77
|
-
|
|
79
|
+
setup(p, { expose: d }) {
|
|
80
|
+
const u = p, o = s(f), t = F(() => o.data.value ?? u.data), l = L(u), e = m();
|
|
81
|
+
return S(() => {
|
|
82
|
+
b(() => {
|
|
78
83
|
var n;
|
|
79
|
-
e.value = new
|
|
84
|
+
e.value = new c(l.value), (n = e.value) == null || n.setData(t.value), o.update(e.value);
|
|
80
85
|
});
|
|
81
|
-
}),
|
|
86
|
+
}), g(() => {
|
|
82
87
|
var n;
|
|
83
88
|
(n = e.value) == null || n.destroy(), o.destroy();
|
|
84
89
|
}), r(l, (n, i) => {
|
|
85
90
|
var a;
|
|
86
|
-
|
|
91
|
+
h(n, i) || (a = e.value) == null || a.setConfig(l.value);
|
|
87
92
|
}), r(t, () => {
|
|
88
93
|
var n;
|
|
89
94
|
(n = e.value) == null || n.setData(t.value);
|
|
90
|
-
}),
|
|
95
|
+
}), d({
|
|
91
96
|
component: e
|
|
92
|
-
}), (n, i) => (
|
|
97
|
+
}), (n, i) => (k(), N("div", v));
|
|
93
98
|
}
|
|
94
99
|
});
|
|
95
100
|
export {
|
|
96
|
-
T as
|
|
101
|
+
T as VisGraphSelectors,
|
|
102
|
+
D as default
|
|
97
103
|
};
|
|
98
104
|
//# 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\
|
|
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 disableDrag: { 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 selectedNodeId: {},\n panels: {},\n onNodeDragStart: { type: Function },\n onNodeDrag: { type: Function },\n onNodeDragEnd: { type: Function },\n onZoom: { type: Function },\n onLayoutCalculated: { 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,aAAa,EAAE,MAAM,QAAQ;AAAA,IAC7B,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,EA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M,CAACU,GAAUC,OACRC,EAAW,GAAGC,EAAoB,OAAO5B,CAAU;AAAA,EAE7D;AAEA,CAAC;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const e=require("./index.cjs");
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.cjs");exports.VisGraphSelectors=e.VisGraphSelectors;exports.default=e.default;
|
|
2
2
|
//# sourceMappingURL=index2.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index2.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";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.GroupedBar.selectors,g=t.defineComponent({__name:"index",props:{color:{type:[Function,String,Array,null]},groupWidth:{},groupMaxWidth:{},dataStep:{},groupPadding:{},barPadding:{},roundedCorners:{type:[Number,Boolean]},barMinHeight:{},cursor:{type:[Function,String,null]},orientation:{},x:{type:[Function,Number,null]},y:{type:[Function,Number,null,Array]},id:{type:Function},xScale:{type:[Object,Function]},yScale:{type:[Object,Function]},excludeFromDomainCalculation:{type:Boolean},duration:{},events:{},attributes:{},data:{}},setup(d,{expose:p}){const u=d,n=t.inject(v.componentAccessorKey),r=t.computed(()=>n.data.value??u.data),a=i.useForwardProps(u),o=t.ref();return t.onMounted(()=>{t.nextTick(()=>{var e;o.value=new l.GroupedBar(a.value),(e=o.value)==null||e.setData(r.value),n.update(o.value)})}),t.onUnmounted(()=>{var e;(e=o.value)==null||e.destroy(),n.destroy()}),t.watch(a,(e,c)=>{var s;i.arePropsEqual(e,c)||(s=o.value)==null||s.setConfig(a.value)}),t.watch(r,()=>{var e;(e=o.value)==null||e.setData(r.value)}),p({component:o}),(e,c)=>(t.openBlock(),t.createElementBlock("div",y))}});exports.VisGroupedBarSelectors=m;exports.default=g;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../../../src/components/grouped-bar/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 { 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\
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../src/components/grouped-bar/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 { 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\n\nexport const VisGroupedBarSelectors = GroupedBar.selectors\n\ntype Props = GroupedBarConfigInterface<Datum>\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'index',\n props: {\n color: { type: [Function, String, Array, null] },\n groupWidth: {},\n groupMaxWidth: {},\n dataStep: {},\n groupPadding: {},\n barPadding: {},\n roundedCorners: { type: [Number, Boolean] },\n barMinHeight: {},\n cursor: { type: [Function, String, null] },\n orientation: {},\n x: { type: [Function, Number, null] },\n y: { type: [Function, Number, null, Array] },\n id: { type: Function },\n xScale: { type: [Object, Function] },\n yScale: { type: [Object, Function] },\n excludeFromDomainCalculation: { type: Boolean },\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<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\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","VisGroupedBarSelectors","GroupedBar","_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":"mOAGMA,EAAa,CAAE,qBAAsB,IAQ9BC,EAAyBC,EAAW,WAAA,UAIrBC,EAAiBC,kBAAA,CAC3C,OAAQ,QACR,MAAO,CACL,MAAO,CAAE,KAAM,CAAC,SAAU,OAAQ,MAAO,IAAI,CAAE,EAC/C,WAAY,CAAC,EACb,cAAe,CAAC,EAChB,SAAU,CAAC,EACX,aAAc,CAAC,EACf,WAAY,CAAC,EACb,eAAgB,CAAE,KAAM,CAAC,OAAQ,OAAO,CAAE,EAC1C,aAAc,CAAC,EACf,OAAQ,CAAE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AAA,CACD,EAEM,CAACU,EAAUC,KACRC,EAAW,UAAA,EAAGC,EAAAA,mBAAoB,MAAO5B,CAAU,EAE7D,CAEA,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { GroupedBar as
|
|
1
|
+
import { defineComponent as d, inject as m, computed as y, ref as v, onMounted as f, nextTick as g, onUnmounted as x, watch as i, openBlock as F, createElementBlock as b } from "vue";
|
|
2
|
+
import { GroupedBar as s } from "@unovis/ts";
|
|
3
3
|
import { useForwardProps as _, arePropsEqual as h } from "../../utils/props.js";
|
|
4
4
|
import { componentAccessorKey as B } from "../../utils/context.js";
|
|
5
|
-
const S = { "data-vis-component": "" }, w = /* @__PURE__ */
|
|
5
|
+
const S = { "data-vis-component": "" }, w = s.selectors, A = /* @__PURE__ */ d({
|
|
6
6
|
__name: "index",
|
|
7
7
|
props: {
|
|
8
8
|
color: { type: [Function, String, Array, null] },
|
|
@@ -27,13 +27,13 @@ const S = { "data-vis-component": "" }, w = /* @__PURE__ */ s({
|
|
|
27
27
|
data: {}
|
|
28
28
|
},
|
|
29
29
|
setup(p, { expose: l }) {
|
|
30
|
-
const r = p, o =
|
|
31
|
-
return
|
|
32
|
-
|
|
30
|
+
const r = p, o = m(B), n = y(() => o.data.value ?? r.data), a = _(r), t = v();
|
|
31
|
+
return f(() => {
|
|
32
|
+
g(() => {
|
|
33
33
|
var e;
|
|
34
|
-
t.value = new
|
|
34
|
+
t.value = new s(a.value), (e = t.value) == null || e.setData(n.value), o.update(t.value);
|
|
35
35
|
});
|
|
36
|
-
}),
|
|
36
|
+
}), x(() => {
|
|
37
37
|
var e;
|
|
38
38
|
(e = t.value) == null || e.destroy(), o.destroy();
|
|
39
39
|
}), i(a, (e, u) => {
|
|
@@ -44,10 +44,11 @@ const S = { "data-vis-component": "" }, w = /* @__PURE__ */ s({
|
|
|
44
44
|
(e = t.value) == null || e.setData(n.value);
|
|
45
45
|
}), l({
|
|
46
46
|
component: t
|
|
47
|
-
}), (e, u) => (
|
|
47
|
+
}), (e, u) => (F(), b("div", S));
|
|
48
48
|
}
|
|
49
49
|
});
|
|
50
50
|
export {
|
|
51
|
-
w as
|
|
51
|
+
w as VisGroupedBarSelectors,
|
|
52
|
+
A as default
|
|
52
53
|
};
|
|
53
54
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/components/grouped-bar/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 { 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\
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/grouped-bar/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 { 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\n\nexport const VisGroupedBarSelectors = GroupedBar.selectors\n\ntype Props = GroupedBarConfigInterface<Datum>\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'index',\n props: {\n color: { type: [Function, String, Array, null] },\n groupWidth: {},\n groupMaxWidth: {},\n dataStep: {},\n groupPadding: {},\n barPadding: {},\n roundedCorners: { type: [Number, Boolean] },\n barMinHeight: {},\n cursor: { type: [Function, String, null] },\n orientation: {},\n x: { type: [Function, Number, null] },\n y: { type: [Function, Number, null, Array] },\n id: { type: Function },\n xScale: { type: [Object, Function] },\n yScale: { type: [Object, Function] },\n excludeFromDomainCalculation: { type: Boolean },\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<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\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","VisGroupedBarSelectors","GroupedBar","_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,IAAyBC,EAAW,WAIrBC,IAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,OAAO,EAAE,MAAM,CAAC,UAAU,QAAQ,OAAO,IAAI,EAAE;AAAA,IAC/C,YAAY,CAAC;AAAA,IACb,eAAe,CAAC;AAAA,IAChB,UAAU,CAAC;AAAA,IACX,cAAc,CAAC;AAAA,IACf,YAAY,CAAC;AAAA,IACb,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AO,UAAUN,EAAO;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,2 +1,2 @@
|
|
|
1
|
-
"use strict";const e=require("./index.cjs");
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.cjs");exports.VisGroupedBarSelectors=e.VisGroupedBarSelectors;exports.default=e.default;
|
|
2
2
|
//# sourceMappingURL=index2.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index2.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const t=require("vue"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),i=require("@unovis/ts"),s=require("../../utils/props.cjs"),y=require("../../utils/context.cjs"),v={"data-vis-component":""},m=i.Line.selectors,F=t.defineComponent({__name:"index",props:{color:{type:[Function,String,Array,null]},curveType:{},lineWidth:{},lineDashArray:{type:[Function,null]},fallbackValue:{},highlightOnHover:{type:Boolean},cursor:{type:[Function,String,null]},x:{type:[Function,Number,null]},y:{type:[Function,Number,null,Array]},id:{type:Function},xScale:{type:[Object,Function]},yScale:{type:[Object,Function]},excludeFromDomainCalculation:{type:Boolean},duration:{},events:{},attributes:{},data:{}},setup(p,{expose:d}){const u=p,o=t.inject(y.componentAccessorKey),a=t.computed(()=>o.data.value??u.data),c=s.useForwardProps(u),n=t.ref();return t.onMounted(()=>{t.nextTick(()=>{var e;n.value=new i.Line(c.value),(e=n.value)==null||e.setData(a.value),o.update(n.value)})}),t.onUnmounted(()=>{var e;(e=n.value)==null||e.destroy(),o.destroy()}),t.watch(c,(e,r)=>{var l;s.arePropsEqual(e,r)||(l=n.value)==null||l.setConfig(c.value)}),t.watch(a,()=>{var e;(e=n.value)==null||e.setData(a.value)}),d({component:n}),(e,r)=>(t.openBlock(),t.createElementBlock("div",v))}});exports.VisLineSelectors=m;exports.default=F;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../../../src/components/line/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 { 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\
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../src/components/line/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 { 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\n\nexport const VisLineSelectors = Line.selectors\n\ntype Props = LineConfigInterface<Datum>\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'index',\n props: {\n color: { type: [Function, String, Array, null] },\n curveType: {},\n lineWidth: {},\n lineDashArray: { type: [Function, null] },\n fallbackValue: {},\n highlightOnHover: { type: Boolean },\n cursor: { type: [Function, String, null] },\n x: { type: [Function, Number, null] },\n y: { type: [Function, Number, null, Array] },\n id: { type: Function },\n xScale: { type: [Object, Function] },\n yScale: { type: [Object, Function] },\n excludeFromDomainCalculation: { type: Boolean },\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<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\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","VisLineSelectors","Line","_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":"mOAGMA,EAAa,CAAE,qBAAsB,IAQ9BC,EAAmBC,EAAK,KAAA,UAITC,EAAiBC,kBAAA,CAC3C,OAAQ,QACR,MAAO,CACL,MAAO,CAAE,KAAM,CAAC,SAAU,OAAQ,MAAO,IAAI,CAAE,EAC/C,UAAW,CAAC,EACZ,UAAW,CAAC,EACZ,cAAe,CAAE,KAAM,CAAC,SAAU,IAAI,CAAE,EACxC,cAAe,CAAC,EAChB,i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AEQL,EAAA,CACP,UAAAS,CAAA,CACD,EAEM,CAACU,EAAUC,KACRC,EAAW,UAAA,EAAGC,EAAAA,mBAAoB,MAAO5B,CAAU,EAE7D,CAEA,CAAC"}
|
package/components/line/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Line as
|
|
1
|
+
import { defineComponent as d, inject as m, computed as y, ref as v, onMounted as f, nextTick as F, onUnmounted as h, watch as l, openBlock as x, createElementBlock as _ } from "vue";
|
|
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 S } from "../../utils/context.js";
|
|
5
|
+
const k = { "data-vis-component": "" }, w = i.selectors, C = /* @__PURE__ */ d({
|
|
6
6
|
__name: "index",
|
|
7
7
|
props: {
|
|
8
8
|
color: { type: [Function, String, Array, null] },
|
|
@@ -23,14 +23,14 @@ const A = { "data-vis-component": "" }, w = /* @__PURE__ */ s({
|
|
|
23
23
|
attributes: {},
|
|
24
24
|
data: {}
|
|
25
25
|
},
|
|
26
|
-
setup(
|
|
27
|
-
const c =
|
|
28
|
-
return
|
|
29
|
-
|
|
26
|
+
setup(s, { expose: p }) {
|
|
27
|
+
const c = s, n = m(S), o = y(() => n.data.value ?? c.data), a = b(c), t = v();
|
|
28
|
+
return f(() => {
|
|
29
|
+
F(() => {
|
|
30
30
|
var e;
|
|
31
|
-
t.value = new
|
|
31
|
+
t.value = new i(a.value), (e = t.value) == null || e.setData(o.value), n.update(t.value);
|
|
32
32
|
});
|
|
33
|
-
}),
|
|
33
|
+
}), h(() => {
|
|
34
34
|
var e;
|
|
35
35
|
(e = t.value) == null || e.destroy(), n.destroy();
|
|
36
36
|
}), l(a, (e, r) => {
|
|
@@ -41,10 +41,11 @@ const A = { "data-vis-component": "" }, w = /* @__PURE__ */ s({
|
|
|
41
41
|
(e = t.value) == null || e.setData(o.value);
|
|
42
42
|
}), p({
|
|
43
43
|
component: t
|
|
44
|
-
}), (e, r) => (
|
|
44
|
+
}), (e, r) => (x(), _("div", k));
|
|
45
45
|
}
|
|
46
46
|
});
|
|
47
47
|
export {
|
|
48
|
-
w as
|
|
48
|
+
w as VisLineSelectors,
|
|
49
|
+
C as default
|
|
49
50
|
};
|
|
50
51
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/components/line/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 { 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\
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/line/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 { 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\n\nexport const VisLineSelectors = Line.selectors\n\ntype Props = LineConfigInterface<Datum>\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'index',\n props: {\n color: { type: [Function, String, Array, null] },\n curveType: {},\n lineWidth: {},\n lineDashArray: { type: [Function, null] },\n fallbackValue: {},\n highlightOnHover: { type: Boolean },\n cursor: { type: [Function, String, null] },\n x: { type: [Function, Number, null] },\n y: { type: [Function, Number, null, Array] },\n id: { type: Function },\n xScale: { type: [Object, Function] },\n yScale: { type: [Object, Function] },\n excludeFromDomainCalculation: { type: Boolean },\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<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\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","VisLineSelectors","Line","_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,IAAmBC,EAAK,WAITC,IAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,OAAO,EAAE,MAAM,CAAC,UAAU,QAAQ,OAAO,IAAI,EAAE;AAAA,IAC/C,WAAW,CAAC;AAAA,IACZ,WAAW,CAAC;AAAA,IACZ,eAAe,EAAE,MAAM,CAAC,UAAU,IAAI,EAAE;AAAA,IACxC,eAAe,CAAC;AAAA,IAChB,kBAAkB,EAAE,MAAM,QAAQ;AA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AAAI,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,2 +1,2 @@
|
|
|
1
|
-
"use strict";const e=require("./index.cjs");
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.cjs");exports.VisLineSelectors=e.VisLineSelectors;exports.default=e.default;
|
|
2
2
|
//# sourceMappingURL=index2.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index2.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const t=require("vue"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),i=require("@unovis/ts"),c=require("../../utils/props.cjs"),y=require("../../utils/context.cjs"),g={"data-vis-component":""},m=i.NestedDonut.selectors,v=t.defineComponent({__name:"index",props:{angleRange:{},direction:{},value:{type:[Function,Number,null]},centralLabel:{},centralSubLabel:{},centralSubLabelWrap:{type:Boolean},showBackground:{type:Boolean},sort:{type:Function},layers:{},layerSettings:{type:[Function,null]},layerPadding:{},cornerRadius:{},emptySegmentAngle:{},hideOverflowingSegmentLabels:{type:Boolean},segmentColor:{type:[Function,String,Array,null]},segmentLabel:{type:[Function,String,null]},segmentLabelColor:{type:[Function,String,Array,null]},showEmptySegments:{type:Boolean},showSegmentLabels:{type:Boolean},duration:{},events:{},attributes:{},data:{}},setup(p,{expose:d}){const r=p,o=t.inject(y.componentAccessorKey),a=t.computed(()=>o.data.value??r.data),s=c.useForwardProps(r),n=t.ref();return t.onMounted(()=>{t.nextTick(()=>{var e;n.value=new i.NestedDonut(s.value),(e=n.value)==null||e.setData(a.value),o.update(n.value)})}),t.onUnmounted(()=>{var e;(e=n.value)==null||e.destroy(),o.destroy()}),t.watch(s,(e,l)=>{var u;c.arePropsEqual(e,l)||(u=n.value)==null||u.setConfig(s.value)}),t.watch(a,()=>{var e;(e=n.value)==null||e.setData(a.value)}),d({component:n}),(e,l)=>(t.openBlock(),t.createElementBlock("div",g))}});exports.VisNestedDonutSelectors=m;exports.default=v;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../../../src/components/nested-donut/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 { 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\
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../src/components/nested-donut/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 { 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\n\nexport const VisNestedDonutSelectors = NestedDonut.selectors\n\ntype Props = NestedDonutConfigInterface<Datum>\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'index',\n props: {\n angleRange: {},\n direction: {},\n value: { type: [Function, Number, null] },\n centralLabel: {},\n centralSubLabel: {},\n centralSubLabelWrap: { type: Boolean },\n showBackground: { type: Boolean },\n sort: { type: Function },\n layers: {},\n layerSettings: { type: [Function, null] },\n layerPadding: {},\n cornerRadius: {},\n emptySegmentAngle: {},\n hideOverflowingSegmentLabels: { type: Boolean },\n segmentColor: { type: [Function, String, Array, null] },\n segmentLabel: { type: [Function, String, null] },\n segmentLabelColor: { type: [Function, String, Array, null] },\n showEmptySegments: { type: Boolean },\n showSegmentLabels: { type: Boolean },\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<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\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","VisNestedDonutSelectors","NestedDonut","_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":"mOAGMA,EAAa,CAAE,qBAAsB,IAQ9BC,EAA0BC,EAAY,YAAA,UAIvBC,EAAiBC,kBAAA,CAC3C,OAAQ,QACR,MAAO,CACL,W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CAClB,EAEKa,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,EAEQL,EAAA,CACP,UAAAS,CAAA,CACD,EAEM,CAACU,EAAUC,KACRC,EAAW,UAAA,EAAGC,EAAAA,mBAAoB,MAAO5B,CAAU,EAE7D,CAEA,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { NestedDonut as
|
|
1
|
+
import { defineComponent as m, inject as d, computed as y, ref as g, onMounted as v, nextTick as f, onUnmounted as b, watch as u, openBlock as S, createElementBlock as B } from "vue";
|
|
2
|
+
import { NestedDonut as c } from "@unovis/ts";
|
|
3
3
|
import { useForwardProps as _, arePropsEqual as h } from "../../utils/props.js";
|
|
4
4
|
import { componentAccessorKey as w } from "../../utils/context.js";
|
|
5
|
-
const F = { "data-vis-component": "" }, C = /* @__PURE__ */
|
|
5
|
+
const F = { "data-vis-component": "" }, C = c.selectors, D = /* @__PURE__ */ m({
|
|
6
6
|
__name: "index",
|
|
7
7
|
props: {
|
|
8
8
|
angleRange: {},
|
|
@@ -29,14 +29,14 @@ const F = { "data-vis-component": "" }, C = /* @__PURE__ */ i({
|
|
|
29
29
|
attributes: {},
|
|
30
30
|
data: {}
|
|
31
31
|
},
|
|
32
|
-
setup(
|
|
33
|
-
const r =
|
|
34
|
-
return
|
|
35
|
-
|
|
32
|
+
setup(i, { expose: p }) {
|
|
33
|
+
const r = i, n = d(w), o = y(() => n.data.value ?? r.data), a = _(r), t = g();
|
|
34
|
+
return v(() => {
|
|
35
|
+
f(() => {
|
|
36
36
|
var e;
|
|
37
|
-
t.value = new
|
|
37
|
+
t.value = new c(a.value), (e = t.value) == null || e.setData(o.value), n.update(t.value);
|
|
38
38
|
});
|
|
39
|
-
}),
|
|
39
|
+
}), b(() => {
|
|
40
40
|
var e;
|
|
41
41
|
(e = t.value) == null || e.destroy(), n.destroy();
|
|
42
42
|
}), u(a, (e, l) => {
|
|
@@ -47,10 +47,11 @@ const F = { "data-vis-component": "" }, C = /* @__PURE__ */ i({
|
|
|
47
47
|
(e = t.value) == null || e.setData(o.value);
|
|
48
48
|
}), p({
|
|
49
49
|
component: t
|
|
50
|
-
}), (e, l) => (
|
|
50
|
+
}), (e, l) => (S(), B("div", F));
|
|
51
51
|
}
|
|
52
52
|
});
|
|
53
53
|
export {
|
|
54
|
-
C as
|
|
54
|
+
C as VisNestedDonutSelectors,
|
|
55
|
+
D as default
|
|
55
56
|
};
|
|
56
57
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/components/nested-donut/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 { 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\
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/nested-donut/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 { 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\n\nexport const VisNestedDonutSelectors = NestedDonut.selectors\n\ntype Props = NestedDonutConfigInterface<Datum>\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'index',\n props: {\n angleRange: {},\n direction: {},\n value: { type: [Function, Number, null] },\n centralLabel: {},\n centralSubLabel: {},\n centralSubLabelWrap: { type: Boolean },\n showBackground: { type: Boolean },\n sort: { type: Function },\n layers: {},\n layerSettings: { type: [Function, null] },\n layerPadding: {},\n cornerRadius: {},\n emptySegmentAngle: {},\n hideOverflowingSegmentLabels: { type: Boolean },\n segmentColor: { type: [Function, String, Array, null] },\n segmentLabel: { type: [Function, String, null] },\n segmentLabelColor: { type: [Function, String, Array, null] },\n showEmptySegments: { type: Boolean },\n showSegmentLabels: { type: Boolean },\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<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\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","VisNestedDonutSelectors","NestedDonut","_sfc_main","_defineComponent","__props","__expose","props","accessor","inject","componentAccessorKey","data","computed","config","useForwardProps","component","ref","onMounted","nextTick","_a","onUnmounted","watch","curr","prev","ar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AAC,EAAU,MAAM;AACd,MAAAC,EAAS,MAAM;;AACb,QAAAH,EAAU,QAAQ,IAAIb,EAAmBW,EAAO,KAAK,IAC3CM,IAAAJ,EAAA,UAAA,QAAAI,EAAO,QAAQR,EAAK,QACrBH,EAAA,OAAOO,EAAU,KAAK;AAAA,MAAA,CAChC;AAAA,IAAA,CACF,GAEDK,EAAY,MAAM;;AAChB,OAAAD,IAAAJ,EAAU,UAAV,QAAAI,EAAiB,WACjBX,EAAS,QAAQ;AAAA,IAAA,CAClB,GAEKa,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,GAEQL,EAAA;AAAA,MACP,WAAAS;AAAA,IAAA,CACD,GAEM,CAACU,GAAUC,OACRC,EAAW,GAAGC,EAAoB,OAAO5B,CAAU;AAAA,EAE7D;AAEA,CAAC;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const e=require("./index.cjs");
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.cjs");exports.VisNestedDonutSelectors=e.VisNestedDonutSelectors;exports.default=e.default;
|
|
2
2
|
//# sourceMappingURL=index2.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index2.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const n=require("vue"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("vue"),s=require("@unovis/ts"),c=require("../../utils/props.cjs"),y=require("../../utils/context.cjs"),b={"data-vis-component":""},g=s.Sankey.selectors,S=n.defineComponent({__name:"index",props:{id:{type:Function},heightNormalizationCoeff:{},exitTransitionType:{},enterTransitionType:{},highlightSubtreeOnHover:{type:Boolean},highlightDuration:{},highlightDelay:{},iterations:{},nodeSort:{type:[Function,null]},linkSort:{type:[Function,null]},nodeWidth:{},nodeAlign:{},nodeHorizontalSpacing:{},nodeMinHeight:{},nodeMaxHeight:{},nodePadding:{},showSingleNode:{type:Boolean},nodeCursor:{type:[Function,String,null]},nodeIcon:{type:[Function,String,null]},nodeColor:{type:[Function,String,Array,null]},nodeFixedValue:{type:[Function,Number,null]},nodeIconColor:{type:[Function,String,Array,null]},linkColor:{type:[Function,String,null]},linkValue:{type:[Function,Number,null]},linkCursor:{type:[Function,String,null]},label:{type:[Function,String,null]},subLabel:{type:[Function,String,null]},labelPosition:{type:[Function,null]},labelVerticalAlign:{},labelBackground:{type:Boolean},labelFit:{},labelMaxWidth:{},labelExpandTrimmedOnHover:{type:Boolean},labelTrimMode:{},labelFontSize:{},labelTextSeparator:{},labelForceWordBreak:{type:Boolean},labelColor:{type:[Function,String,Array,null]},labelCursor:{type:[Function,String,null]},labelVisibility:{type:Function},subLabelFontSize:{},subLabelColor:{type:[Function,String,Array,null]},subLabelPlacement:{},subLabelToLabelInlineWidthRatio:{},duration:{},events:{},attributes:{},data:{}},setup(d,{expose:p}){const a=d,o=n.inject(y.componentAccessorKey),l=n.computed(()=>o.data.value??a.data),i=c.useForwardProps(a),t=n.ref();return n.onMounted(()=>{n.nextTick(()=>{var e;t.value=new s.Sankey(i.value),(e=t.value)==null||e.setData(l.value),o.update(t.value)})}),n.onUnmounted(()=>{var e;(e=t.value)==null||e.destroy(),o.destroy()}),n.watch(i,(e,r)=>{var u;c.arePropsEqual(e,r)||(u=t.value)==null||u.setConfig(i.value)}),n.watch(l,()=>{var e;(e=t.value)==null||e.setData(l.value)}),p({component:t}),(e,r)=>(n.openBlock(),n.createElementBlock("div",b))}});exports.VisSankeySelectors=g;exports.default=S;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|