@unovis/vue 1.5.1-ql.2 → 1.5.2
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/README.md +1 -1
- package/components/annotations/index.d.ts +1 -1
- package/components/annotations/index.js +2 -2
- package/components/area/index.cjs +1 -1
- package/components/area/index.cjs.map +1 -1
- package/components/area/index.d.ts +2 -1
- package/components/area/index.js +12 -11
- package/components/area/index.js.map +1 -1
- package/components/axis/index.d.ts +1 -1
- package/components/axis/index.js +2 -2
- package/components/brush/index.d.ts +1 -1
- package/components/brush/index.js +2 -2
- package/components/chord-diagram/index.d.ts +1 -1
- package/components/chord-diagram/index.js +2 -2
- package/components/crosshair/index.d.ts +1 -1
- package/components/crosshair/index.js +2 -2
- package/components/donut/index.cjs +1 -1
- package/components/donut/index.cjs.map +1 -1
- package/components/donut/index.d.ts +3 -1
- package/components/donut/index.js +16 -14
- package/components/donut/index.js.map +1 -1
- package/components/free-brush/index.d.ts +1 -1
- package/components/free-brush/index.js +2 -2
- package/components/graph/index.cjs +1 -1
- package/components/graph/index.cjs.map +1 -1
- package/components/graph/index.d.ts +11 -2
- package/components/graph/index.js +18 -10
- package/components/graph/index.js.map +1 -1
- package/components/grouped-bar/index.d.ts +1 -1
- package/components/grouped-bar/index.js +2 -2
- package/components/line/index.cjs +1 -1
- package/components/line/index.cjs.map +1 -1
- package/components/line/index.d.ts +2 -1
- package/components/line/index.js +13 -12
- package/components/line/index.js.map +1 -1
- package/components/nested-donut/index.d.ts +1 -1
- package/components/nested-donut/index.js +2 -2
- package/components/sankey/index.d.ts +1 -1
- package/components/sankey/index.js +2 -2
- package/components/scatter/index.d.ts +1 -1
- package/components/scatter/index.js +2 -2
- package/components/stacked-bar/index.d.ts +1 -1
- package/components/stacked-bar/index.js +2 -2
- package/components/timeline/index.d.ts +1 -1
- package/components/timeline/index.js +2 -2
- package/components/tooltip/index.cjs +1 -1
- package/components/tooltip/index.cjs.map +1 -1
- package/components/tooltip/index.d.ts +13 -1
- package/components/tooltip/index.js +13 -11
- package/components/tooltip/index.js.map +1 -1
- package/components/topojson-map/index.d.ts +1 -1
- package/components/topojson-map/index.js +2 -2
- package/components/xy-labels/index.d.ts +1 -1
- package/components/xy-labels/index.js +2 -2
- package/containers/single-container/index.js +2 -2
- package/containers/xy-container/index.js +2 -2
- package/html-components/bullet-legend/index.d.ts +1 -1
- package/html-components/bullet-legend/index.js +2 -2
- package/html-components/leaflet-flow-map/index.d.ts +2 -2
- package/html-components/leaflet-flow-map/index.js +2 -2
- package/html-components/leaflet-map/index.d.ts +2 -2
- package/html-components/leaflet-map/index.js +2 -2
- package/package.json +8 -7
package/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Annotations, AnnotationItem } from '@unovis/ts';
|
|
2
|
-
export declare const VisAnnotationsSelectors: typeof import("@unovis/ts/
|
|
2
|
+
export declare const VisAnnotationsSelectors: typeof import("@unovis/ts/dist/components/annotations/style");
|
|
3
3
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
4
|
items: {
|
|
5
5
|
type: import("vue").PropType<AnnotationItem[]>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as p, inject as u, ref as m, onMounted as d, nextTick as l, onUnmounted as f, watch as v,
|
|
1
|
+
import { defineComponent as p, inject as u, ref as m, onMounted as d, nextTick as l, onUnmounted as f, watch as v, createElementBlock as _, openBlock as x } from "vue";
|
|
2
2
|
import { Annotations as a } from "@unovis/ts";
|
|
3
3
|
import { useForwardProps as h, arePropsEqual as k } from "../../utils/props.js";
|
|
4
4
|
import { annotationsAccessorKey as w } from "../../utils/context.js";
|
|
@@ -25,7 +25,7 @@ const y = { "data-vis-annotations": "" }, P = a.selectors, b = /* @__PURE__ */ p
|
|
|
25
25
|
k(e, s) || (r = o.value) == null || r.setConfig(t.value);
|
|
26
26
|
}), i({
|
|
27
27
|
component: o
|
|
28
|
-
}), (e, s) => (
|
|
28
|
+
}), (e, s) => (x(), _("div", y));
|
|
29
29
|
}
|
|
30
30
|
});
|
|
31
31
|
export {
|
|
@@ -1,2 +1,2 @@
|
|
|
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"),m={"data-vis-component":""},y=l.Area.selectors,_=t.defineComponent({__name:"index",props:{color:{},curveType:{},baseline:{},opacity:{},cursor:{},minHeight1Px:{type:Boolean},x:{},y:{},id:{type:Function},xScale:{type:[Object,Function]},yScale:{type:[Object,Function]},excludeFromDomainCalculation:{type:Boolean},duration:{},events:{},attributes:{},data:{}},setup(p,{expose:d}){const
|
|
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"),m={"data-vis-component":""},y=l.Area.selectors,_=t.defineComponent({__name:"index",props:{color:{},curveType:{},baseline:{},opacity:{},cursor:{},minHeight1Px:{type:Boolean},minHeight:{},x:{},y:{},id:{type:Function},xScale:{type:[Object,Function]},yScale:{type:[Object,Function]},excludeFromDomainCalculation:{type:Boolean},duration:{},events:{},attributes:{},data:{}},setup(p,{expose:d}){const n=t.inject(v.componentAccessorKey),s=p,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.Area(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)}),d({component:o}),(e,r)=>(t.openBlock(),t.createElementBlock("div",m))}});exports.VisAreaSelectors=y;exports.default=_;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../../../src/components/area/index.vue"],"sourcesContent":["<script setup lang=\"ts\" generic=\"Datum\">\n// !!! This code was automatically generated. You should not change it !!!\nimport { Area, AreaConfigInterface, 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 = AreaConfigInterface<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<Area<Datum>>()\n\n\nonMounted(() => {\n nextTick(() => {\n component.value = new Area<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 VisAreaSelectors = Area.selectors\n</script>\n\n<template>\n <div data-vis-component />\n</template>\n\n\n"],"names":["VisAreaSelectors","Area","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
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../src/components/area/index.vue"],"sourcesContent":["<script setup lang=\"ts\" generic=\"Datum\">\n// !!! This code was automatically generated. You should not change it !!!\nimport { Area, AreaConfigInterface, 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 = AreaConfigInterface<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<Area<Datum>>()\n\n\nonMounted(() => {\n nextTick(() => {\n component.value = new Area<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 VisAreaSelectors = Area.selectors\n</script>\n\n<template>\n <div data-vis-component />\n</template>\n\n\n"],"names":["VisAreaSelectors","Area","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,+VA3C/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"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Area, NumericAccessor } from '@unovis/ts';
|
|
2
|
-
export declare const VisAreaSelectors: typeof import("@unovis/ts/
|
|
2
|
+
export declare const VisAreaSelectors: typeof import("@unovis/ts/dist/components/area/style");
|
|
3
3
|
declare const _default: <Datum>(__VLS_props: any, __VLS_ctx?: {
|
|
4
4
|
attrs: any;
|
|
5
5
|
emit: any;
|
|
@@ -46,6 +46,7 @@ declare const _default: <Datum>(__VLS_props: any, __VLS_ctx?: {
|
|
|
46
46
|
opacity?: NumericAccessor<Datum[]>;
|
|
47
47
|
cursor?: import("@unovis/ts").StringAccessor<Datum[]>;
|
|
48
48
|
minHeight1Px?: boolean;
|
|
49
|
+
minHeight?: number;
|
|
49
50
|
id?: (d: Datum, i: number, ...any: any[]) => string;
|
|
50
51
|
xScale?: import("@unovis/ts").ContinuousScale;
|
|
51
52
|
yScale?: import("@unovis/ts").ContinuousScale;
|
package/components/area/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Area as
|
|
3
|
-
import { useForwardProps as
|
|
4
|
-
import { componentAccessorKey as
|
|
5
|
-
const j = { "data-vis-component": "" }, D =
|
|
1
|
+
import { defineComponent as m, inject as d, computed as v, ref as y, onMounted as f, nextTick as x, onUnmounted as _, watch as i, createElementBlock as h, openBlock as F } from "vue";
|
|
2
|
+
import { Area as u } from "@unovis/ts";
|
|
3
|
+
import { useForwardProps as b, arePropsEqual as g } from "../../utils/props.js";
|
|
4
|
+
import { componentAccessorKey as B } from "../../utils/context.js";
|
|
5
|
+
const j = { "data-vis-component": "" }, D = u.selectors, P = /* @__PURE__ */ m({
|
|
6
6
|
__name: "index",
|
|
7
7
|
props: {
|
|
8
8
|
color: {},
|
|
@@ -11,6 +11,7 @@ const j = { "data-vis-component": "" }, D = i.selectors, P = /* @__PURE__ */ d({
|
|
|
11
11
|
opacity: {},
|
|
12
12
|
cursor: {},
|
|
13
13
|
minHeight1Px: { type: Boolean },
|
|
14
|
+
minHeight: {},
|
|
14
15
|
x: {},
|
|
15
16
|
y: {},
|
|
16
17
|
id: { type: Function },
|
|
@@ -23,24 +24,24 @@ const j = { "data-vis-component": "" }, D = i.selectors, P = /* @__PURE__ */ d({
|
|
|
23
24
|
data: {}
|
|
24
25
|
},
|
|
25
26
|
setup(l, { expose: p }) {
|
|
26
|
-
const o =
|
|
27
|
+
const o = d(B), c = l, a = v(() => o.data.value ?? c.data), n = b(c), t = y();
|
|
27
28
|
return f(() => {
|
|
28
29
|
x(() => {
|
|
29
30
|
var e;
|
|
30
|
-
t.value = new
|
|
31
|
+
t.value = new u(n.value), (e = t.value) == null || e.setData(a.value), o.update(t.value);
|
|
31
32
|
});
|
|
32
33
|
}), _(() => {
|
|
33
34
|
var e;
|
|
34
35
|
(e = t.value) == null || e.destroy(), o.destroy();
|
|
35
|
-
}),
|
|
36
|
+
}), i(n, (e, r) => {
|
|
36
37
|
var s;
|
|
37
|
-
|
|
38
|
-
}),
|
|
38
|
+
g(e, r) || (s = t.value) == null || s.setConfig(n.value);
|
|
39
|
+
}), i(a, () => {
|
|
39
40
|
var e;
|
|
40
41
|
(e = t.value) == null || e.setData(a.value);
|
|
41
42
|
}), p({
|
|
42
43
|
component: t
|
|
43
|
-
}), (e, r) => (F(),
|
|
44
|
+
}), (e, r) => (F(), h("div", j));
|
|
44
45
|
}
|
|
45
46
|
});
|
|
46
47
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/components/area/index.vue"],"sourcesContent":["<script setup lang=\"ts\" generic=\"Datum\">\n// !!! This code was automatically generated. You should not change it !!!\nimport { Area, AreaConfigInterface, 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 = AreaConfigInterface<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<Area<Datum>>()\n\n\nonMounted(() => {\n nextTick(() => {\n component.value = new Area<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 VisAreaSelectors = Area.selectors\n</script>\n\n<template>\n <div data-vis-component />\n</template>\n\n\n"],"names":["VisAreaSelectors","Area","accessor","inject","componentAccessorKey","props","__props","data","computed","config","useForwardProps","component","ref","onMounted","nextTick","_a","onUnmounted","watch","curr","prev","arePropsEqual","__expose"],"mappings":";;;;wCAkDaA,IAAmBC,EAAK
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/area/index.vue"],"sourcesContent":["<script setup lang=\"ts\" generic=\"Datum\">\n// !!! This code was automatically generated. You should not change it !!!\nimport { Area, AreaConfigInterface, 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 = AreaConfigInterface<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<Area<Datum>>()\n\n\nonMounted(() => {\n nextTick(() => {\n component.value = new Area<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 VisAreaSelectors = Area.selectors\n</script>\n\n<template>\n <div data-vis-component />\n</template>\n\n\n"],"names":["VisAreaSelectors","Area","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,5 +1,5 @@
|
|
|
1
1
|
import { Axis } from '@unovis/ts';
|
|
2
|
-
export declare const VisAxisSelectors: typeof import("@unovis/ts/
|
|
2
|
+
export declare const VisAxisSelectors: typeof import("@unovis/ts/dist/components/axis/style");
|
|
3
3
|
declare const _default: <Datum>(__VLS_props: any, __VLS_ctx?: {
|
|
4
4
|
attrs: any;
|
|
5
5
|
emit: any;
|
package/components/axis/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as d, inject as x, computed as m, ref as y, onMounted as k, nextTick as T, onUnmounted as v, watch as s,
|
|
1
|
+
import { defineComponent as d, inject as x, computed as m, ref as y, onMounted as k, nextTick as T, onUnmounted as v, watch as s, createElementBlock as f, openBlock as B } from "vue";
|
|
2
2
|
import { Axis as r } from "@unovis/ts";
|
|
3
3
|
import { useForwardProps as F, arePropsEqual as g } from "../../utils/props.js";
|
|
4
4
|
import { axisAccessorKey as _ } from "../../utils/context.js";
|
|
@@ -61,7 +61,7 @@ const b = { "data-vis-axis": "" }, M = r.selectors, O = /* @__PURE__ */ d({
|
|
|
61
61
|
(e = t.value) == null || e.setData(n.value);
|
|
62
62
|
}), u({
|
|
63
63
|
component: t
|
|
64
|
-
}), (e, c) => (
|
|
64
|
+
}), (e, c) => (B(), f("div", b));
|
|
65
65
|
}
|
|
66
66
|
});
|
|
67
67
|
export {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Brush } from '@unovis/ts';
|
|
2
|
-
export declare const VisBrushSelectors: typeof import("@unovis/ts/
|
|
2
|
+
export declare const VisBrushSelectors: typeof import("@unovis/ts/dist/components/brush/style");
|
|
3
3
|
declare const _default: <Datum>(__VLS_props: any, __VLS_ctx?: {
|
|
4
4
|
attrs: any;
|
|
5
5
|
emit: any;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as d, inject as m, computed as v, ref as y, onMounted as h, nextTick as f, onUnmounted as B, watch as u,
|
|
1
|
+
import { defineComponent as d, inject as m, computed as v, ref as y, onMounted as h, nextTick as f, onUnmounted as B, watch as u, createElementBlock as F, openBlock as x } from "vue";
|
|
2
2
|
import { Brush as i } from "@unovis/ts";
|
|
3
3
|
import { useForwardProps as _, arePropsEqual as g } from "../../utils/props.js";
|
|
4
4
|
import { componentAccessorKey as b } from "../../utils/context.js";
|
|
@@ -44,7 +44,7 @@ const S = { "data-vis-component": "" }, D = i.selectors, E = /* @__PURE__ */ d({
|
|
|
44
44
|
(e = t.value) == null || e.setData(n.value);
|
|
45
45
|
}), p({
|
|
46
46
|
component: t
|
|
47
|
-
}), (e, s) => (
|
|
47
|
+
}), (e, s) => (x(), F("div", S));
|
|
48
48
|
}
|
|
49
49
|
});
|
|
50
50
|
export {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChordDiagram, ChordInputNode, ChordInputLink } from '@unovis/ts';
|
|
2
|
-
export declare const VisChordDiagramSelectors: typeof import("@unovis/ts/
|
|
2
|
+
export declare const VisChordDiagramSelectors: typeof import("@unovis/ts/dist/components/chord-diagram/style");
|
|
3
3
|
declare const _default: <N extends ChordInputNode, L extends ChordInputLink>(__VLS_props: any, __VLS_ctx?: {
|
|
4
4
|
attrs: any;
|
|
5
5
|
emit: any;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as p, inject as m, computed as v, ref as g, onMounted as h, nextTick as f, onUnmounted as _, watch as l,
|
|
1
|
+
import { defineComponent as p, inject as m, computed as v, ref as g, onMounted as h, nextTick as f, onUnmounted as _, watch as l, createElementBlock as C, openBlock as k } from "vue";
|
|
2
2
|
import { ChordDiagram as c } from "@unovis/ts";
|
|
3
3
|
import { useForwardProps as x, arePropsEqual as L } from "../../utils/props.js";
|
|
4
4
|
import { componentAccessorKey as b } from "../../utils/context.js";
|
|
@@ -42,7 +42,7 @@ const D = { "data-vis-component": "" }, B = c.selectors, I = /* @__PURE__ */ p({
|
|
|
42
42
|
(e = o.value) == null || e.setData(a.value);
|
|
43
43
|
}), u({
|
|
44
44
|
component: o
|
|
45
|
-
}), (e, s) => (
|
|
45
|
+
}), (e, s) => (k(), C("div", D));
|
|
46
46
|
}
|
|
47
47
|
});
|
|
48
48
|
export {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Crosshair, NumericAccessor } from '@unovis/ts';
|
|
2
|
-
export declare const VisCrosshairSelectors: typeof import("@unovis/ts/
|
|
2
|
+
export declare const VisCrosshairSelectors: typeof import("@unovis/ts/dist/components/crosshair/style");
|
|
3
3
|
declare const _default: <Datum>(__VLS_props: any, __VLS_ctx?: {
|
|
4
4
|
attrs: any;
|
|
5
5
|
emit: any;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as d, inject as m, computed as v, ref as f, onMounted as _, nextTick as h, onUnmounted as x, watch as u,
|
|
1
|
+
import { defineComponent as d, inject as m, computed as v, ref as f, onMounted as _, nextTick as h, onUnmounted as x, watch as u, createElementBlock as C, openBlock as k } from "vue";
|
|
2
2
|
import { Crosshair as i } from "@unovis/ts";
|
|
3
3
|
import { useForwardProps as w, arePropsEqual as y } from "../../utils/props.js";
|
|
4
4
|
import { crosshairAccessorKey as g } from "../../utils/context.js";
|
|
@@ -25,7 +25,7 @@ const B = { "data-vis-crosshair": "" }, q = i.selectors, A = /* @__PURE__ */ d({
|
|
|
25
25
|
(e = o.value) == null || e.setData(a.value);
|
|
26
26
|
}), p({
|
|
27
27
|
component: o
|
|
28
|
-
}), (e, n) => (
|
|
28
|
+
}), (e, n) => (k(), C("div", B));
|
|
29
29
|
}
|
|
30
30
|
});
|
|
31
31
|
export {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),i=require("@unovis/ts"),l=require("../../utils/props.cjs"),v=require("../../utils/context.cjs"),g={"data-vis-component":""},m=i.Donut.selectors,
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),i=require("@unovis/ts"),l=require("../../utils/props.cjs"),v=require("../../utils/context.cjs"),g={"data-vis-component":""},m=i.Donut.selectors,f=t.defineComponent({__name:"index",props:{id:{type:Function},value:{},angleRange:{},padAngle:{},sortFunction:{type:Function},cornerRadius:{},color:{},radius:{},arcWidth:{},centralLabel:{},centralSubLabel:{},centralSubLabelWrap:{type:Boolean},showEmptySegments:{type:Boolean},emptySegmentAngle:{},showBackground:{type:Boolean},backgroundAngleRange:{},centralLabelOffsetX:{},centralLabelOffsetY:{},duration:{},events:{},attributes:{},data:{}},setup(d,{expose:p}){const n=t.inject(v.componentAccessorKey),c=d,a=t.computed(()=>n.data.value??c.data),s=l.useForwardProps(c),o=t.ref();return t.onMounted(()=>{t.nextTick(()=>{var e;o.value=new i.Donut(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,r)=>{var u;l.arePropsEqual(e,r)||(u=o.value)==null||u.setConfig(s.value)}),t.watch(a,()=>{var e;(e=o.value)==null||e.setData(a.value)}),p({component:o}),(e,r)=>(t.openBlock(),t.createElementBlock("div",g))}});exports.VisDonutSelectors=m;exports.default=f;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../../../src/components/donut/index.vue"],"sourcesContent":["<script setup lang=\"ts\" generic=\"Datum\">\n// !!! This code was automatically generated. You should not change it !!!\nimport { Donut, DonutConfigInterface, 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 = DonutConfigInterface<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<Donut<Datum>>()\n\n\nonMounted(() => {\n nextTick(() => {\n component.value = new Donut<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 VisDonutSelectors = Donut.selectors\n</script>\n\n<template>\n <div data-vis-component />\n</template>\n\n\n"],"names":["VisDonutSelectors","Donut","accessor","inject","componentAccessorKey","props","__props","data","computed","config","useForwardProps","component","ref","onMounted","nextTick","_a","onUnmounted","watch","curr","prev","arePropsEqual","__expose"],"mappings":"+PAkDaA,EAAoBC,EAAAA,MAAM,
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../src/components/donut/index.vue"],"sourcesContent":["<script setup lang=\"ts\" generic=\"Datum\">\n// !!! This code was automatically generated. You should not change it !!!\nimport { Donut, DonutConfigInterface, 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 = DonutConfigInterface<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<Donut<Datum>>()\n\n\nonMounted(() => {\n nextTick(() => {\n component.value = new Donut<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 VisDonutSelectors = Donut.selectors\n</script>\n\n<template>\n <div data-vis-component />\n</template>\n\n\n"],"names":["VisDonutSelectors","Donut","accessor","inject","componentAccessorKey","props","__props","data","computed","config","useForwardProps","component","ref","onMounted","nextTick","_a","onUnmounted","watch","curr","prev","arePropsEqual","__expose"],"mappings":"+PAkDaA,EAAoBC,EAAAA,MAAM,wdA3CjC,MAAAC,EAAWC,SAAOC,sBAAoB,EAItCC,EAAQC,EAERC,EAAOC,EAAAA,SAAS,IAAMN,EAAS,KAAK,OAASG,EAAM,IAAI,EAEvDI,EAASC,kBAAgBL,CAAK,EAG9BM,EAAYC,EAAAA,IAAkB,EAGpCC,OAAAA,EAAAA,UAAU,IAAM,CACdC,EAAAA,SAAS,IAAM,OACbH,EAAU,MAAQ,IAAIV,QAAaQ,EAAO,KAAK,GACrCM,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"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Donut, NumericAccessor } from '@unovis/ts';
|
|
2
|
-
export declare const VisDonutSelectors: typeof import("@unovis/ts/
|
|
2
|
+
export declare const VisDonutSelectors: typeof import("@unovis/ts/dist/components/donut/style");
|
|
3
3
|
declare const _default: <Datum>(__VLS_props: any, __VLS_ctx?: {
|
|
4
4
|
attrs: any;
|
|
5
5
|
emit: any;
|
|
@@ -54,6 +54,8 @@ declare const _default: <Datum>(__VLS_props: any, __VLS_ctx?: {
|
|
|
54
54
|
emptySegmentAngle?: number;
|
|
55
55
|
showBackground?: boolean;
|
|
56
56
|
backgroundAngleRange?: [number, number];
|
|
57
|
+
centralLabelOffsetX?: number;
|
|
58
|
+
centralLabelOffsetY?: number;
|
|
57
59
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
58
60
|
expose(exposed: import("vue").ShallowUnwrapRef<{
|
|
59
61
|
component: import("vue").Ref<Donut<Datum>, Donut<Datum>>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as i, inject as m, computed as
|
|
2
|
-
import { Donut as
|
|
1
|
+
import { defineComponent as i, inject as m, computed as f, ref as v, onMounted as g, nextTick as y, onUnmounted as b, watch as l, createElementBlock as _, openBlock as h } from "vue";
|
|
2
|
+
import { Donut as u } from "@unovis/ts";
|
|
3
3
|
import { useForwardProps as B, arePropsEqual as k } from "../../utils/props.js";
|
|
4
4
|
import { componentAccessorKey as w } from "../../utils/context.js";
|
|
5
|
-
const x = { "data-vis-component": "" },
|
|
5
|
+
const x = { "data-vis-component": "" }, F = u.selectors, E = /* @__PURE__ */ i({
|
|
6
6
|
__name: "index",
|
|
7
7
|
props: {
|
|
8
8
|
id: { type: Function },
|
|
@@ -21,34 +21,36 @@ const x = { "data-vis-component": "" }, E = l.selectors, L = /* @__PURE__ */ i({
|
|
|
21
21
|
emptySegmentAngle: {},
|
|
22
22
|
showBackground: { type: Boolean },
|
|
23
23
|
backgroundAngleRange: {},
|
|
24
|
+
centralLabelOffsetX: {},
|
|
25
|
+
centralLabelOffsetY: {},
|
|
24
26
|
duration: {},
|
|
25
27
|
events: {},
|
|
26
28
|
attributes: {},
|
|
27
29
|
data: {}
|
|
28
30
|
},
|
|
29
31
|
setup(p, { expose: d }) {
|
|
30
|
-
const o = m(w), r = p,
|
|
31
|
-
return
|
|
32
|
+
const o = m(w), r = p, a = f(() => o.data.value ?? r.data), n = B(r), t = v();
|
|
33
|
+
return g(() => {
|
|
32
34
|
y(() => {
|
|
33
35
|
var e;
|
|
34
|
-
t.value = new
|
|
36
|
+
t.value = new u(n.value), (e = t.value) == null || e.setData(a.value), o.update(t.value);
|
|
35
37
|
});
|
|
36
|
-
}),
|
|
38
|
+
}), b(() => {
|
|
37
39
|
var e;
|
|
38
40
|
(e = t.value) == null || e.destroy(), o.destroy();
|
|
39
|
-
}),
|
|
41
|
+
}), l(n, (e, c) => {
|
|
40
42
|
var s;
|
|
41
|
-
k(e, c) || (s = t.value) == null || s.setConfig(
|
|
42
|
-
}),
|
|
43
|
+
k(e, c) || (s = t.value) == null || s.setConfig(n.value);
|
|
44
|
+
}), l(a, () => {
|
|
43
45
|
var e;
|
|
44
|
-
(e = t.value) == null || e.setData(
|
|
46
|
+
(e = t.value) == null || e.setData(a.value);
|
|
45
47
|
}), d({
|
|
46
48
|
component: t
|
|
47
|
-
}), (e, c) => (
|
|
49
|
+
}), (e, c) => (h(), _("div", x));
|
|
48
50
|
}
|
|
49
51
|
});
|
|
50
52
|
export {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
+
F as VisDonutSelectors,
|
|
54
|
+
E as default
|
|
53
55
|
};
|
|
54
56
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/components/donut/index.vue"],"sourcesContent":["<script setup lang=\"ts\" generic=\"Datum\">\n// !!! This code was automatically generated. You should not change it !!!\nimport { Donut, DonutConfigInterface, 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 = DonutConfigInterface<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<Donut<Datum>>()\n\n\nonMounted(() => {\n nextTick(() => {\n component.value = new Donut<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 VisDonutSelectors = Donut.selectors\n</script>\n\n<template>\n <div data-vis-component />\n</template>\n\n\n"],"names":["VisDonutSelectors","Donut","accessor","inject","componentAccessorKey","props","__props","data","computed","config","useForwardProps","component","ref","onMounted","nextTick","_a","onUnmounted","watch","curr","prev","arePropsEqual","__expose"],"mappings":";;;;wCAkDaA,IAAoBC,EAAM
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/donut/index.vue"],"sourcesContent":["<script setup lang=\"ts\" generic=\"Datum\">\n// !!! This code was automatically generated. You should not change it !!!\nimport { Donut, DonutConfigInterface, 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 = DonutConfigInterface<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<Donut<Datum>>()\n\n\nonMounted(() => {\n nextTick(() => {\n component.value = new Donut<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 VisDonutSelectors = Donut.selectors\n</script>\n\n<template>\n <div data-vis-component />\n</template>\n\n\n"],"names":["VisDonutSelectors","Donut","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,EAAkB;AAGpC,WAAAC,EAAU,MAAM;AACd,MAAAC,EAAS,MAAM;;AACb,QAAAH,EAAU,QAAQ,IAAIV,EAAaQ,EAAO,KAAK,IACrCM,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,5 +1,5 @@
|
|
|
1
1
|
import { FreeBrush } from '@unovis/ts';
|
|
2
|
-
export declare const VisFreeBrushSelectors: typeof import("@unovis/ts/
|
|
2
|
+
export declare const VisFreeBrushSelectors: typeof import("@unovis/ts/dist/components/free-brush/style");
|
|
3
3
|
declare const _default: <Datum>(__VLS_props: any, __VLS_ctx?: {
|
|
4
4
|
attrs: any;
|
|
5
5
|
emit: any;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as d, inject as m, computed as v, ref as y, onMounted as h, nextTick as f, onUnmounted as F, watch as u,
|
|
1
|
+
import { defineComponent as d, inject as m, computed as v, ref as y, onMounted as h, nextTick as f, onUnmounted as F, watch as u, createElementBlock as B, openBlock as x } from "vue";
|
|
2
2
|
import { FreeBrush as i } from "@unovis/ts";
|
|
3
3
|
import { useForwardProps as _, arePropsEqual as S } from "../../utils/props.js";
|
|
4
4
|
import { componentAccessorKey as b } from "../../utils/context.js";
|
|
@@ -44,7 +44,7 @@ const g = { "data-vis-component": "" }, D = i.selectors, E = /* @__PURE__ */ d({
|
|
|
44
44
|
(e = t.value) == null || e.setData(n.value);
|
|
45
45
|
}), p({
|
|
46
46
|
component: t
|
|
47
|
-
}), (e, s) => (
|
|
47
|
+
}), (e, s) => (x(), B("div", g));
|
|
48
48
|
}
|
|
49
49
|
});
|
|
50
50
|
export {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("vue"),c=require("@unovis/ts"),r=require("../../utils/props.cjs"),y=require("../../utils/context.cjs"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("vue"),c=require("@unovis/ts"),r=require("../../utils/props.cjs"),y=require("../../utils/context.cjs"),S={"data-vis-component":""},m=c.Graph.selectors,F=o.defineComponent({__name:"index",props:{zoomScaleExtent:{},disableZoom:{type:Boolean},zoomEventFilter:{type:Function},disableDrag:{type:Boolean},disableBrush:{type:Boolean},zoomThrottledUpdateNodeThreshold:{},fitViewPadding:{},fitViewAlign:{},layoutType:{},layoutAutofit:{type:Boolean},layoutAutofitTolerance:{},layoutNonConnectedAside:{type:Boolean},layoutNodeGroup:{},layoutGroupOrder:{},layoutParallelNodesPerColumn:{},layoutParallelNodeSubGroup:{},layoutParallelSubGroupsPerRow:{},layoutParallelGroupSpacing:{},layoutParallelSortConnectionsByGroup:{},forceLayoutSettings:{},dagreLayoutSettings:{},layoutElkSettings:{},layoutElkNodeGroups:{},layoutElkGetNodeShape:{type:Function},linkWidth:{},linkStyle:{},linkBandWidth:{},linkArrow:{},linkStroke:{},linkDisabled:{},linkFlow:{},linkFlowAnimDuration:{},linkFlowParticleSize:{},linkFlowParticleSpeed:{},linkLabel:{},linkLabelShiftFromCenter:{},linkNeighborSpacing:{},linkCurvature:{},linkHighlightOnHover:{type:Boolean},linkSourcePointOffset:{},linkTargetPointOffset:{},selectedLinkId:{},nodeSize:{},nodeStrokeWidth:{},nodeShape:{},nodeGaugeValue:{},nodeGaugeFill:{},nodeGaugeAnimDuration:{},nodeIcon:{},nodeIconSize:{},nodeLabel:{},nodeLabelTrim:{},nodeLabelTrimMode:{},nodeLabelTrimLength:{},nodeSubLabel:{},nodeSubLabelTrim:{},nodeSubLabelTrimMode:{},nodeSubLabelTrimLength:{},nodeSideLabels:{},nodeBottomIcon:{},nodeDisabled:{},nodeFill:{},nodeStroke:{},nodeSort:{type:Function},nodeEnterPosition:{},nodeEnterScale:{},nodeExitPosition:{},nodeExitScale:{},nodeEnterCustomRenderFunction:{type:Function},nodeUpdateCustomRenderFunction:{type:Function},nodePartialUpdateCustomRenderFunction:{type:Function},nodeExitCustomRenderFunction:{type:Function},nodeOnZoomCustomRenderFunction:{type:Function},nodeSelectionHighlightMode:{},selectedNodeId:{},selectedNodeIds:{},panels:{},onNodeDragStart:{type:Function},onNodeDrag:{type:Function},onNodeDragEnd:{type:Function},onZoom:{type:Function},onZoomStart:{type:Function},onZoomEnd:{type:Function},onLayoutCalculated:{type:Function},onNodeSelectionBrush:{type:Function},onNodeSelectionDrag:{type:Function},onRenderComplete:{type:Function},shouldDataUpdate:{type:Function},duration:{},events:{},attributes:{},data:{}},setup(s,{expose:p}){const n=o.inject(y.componentAccessorKey),i=s,a=o.computed(()=>n.data.value??i.data),l=r.useForwardProps(i),t=o.ref();return o.onMounted(()=>{o.nextTick(()=>{var e;t.value=new c.Graph(l.value),(e=t.value)==null||e.setData(a.value),n.update(t.value)})}),o.onUnmounted(()=>{var e;(e=t.value)==null||e.destroy(),n.destroy()}),o.watch(l,(e,u)=>{var d;r.arePropsEqual(e,u)||(d=t.value)==null||d.setConfig(l.value)}),o.watch(a,()=>{var e;(e=t.value)==null||e.setData(a.value)}),p({component:t}),(e,u)=>(o.openBlock(),o.createElementBlock("div",S))}});exports.VisGraphSelectors=m;exports.default=F;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","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":"+PAkDaA,EAAoBC,EAAAA,MAAM,
|
|
1
|
+
{"version":3,"file":"index.cjs","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":"+PAkDaA,EAAoBC,EAAAA,MAAM,osEA3CjC,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,QAAYQ,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"}
|
|
@@ -11,6 +11,7 @@ export declare const VisGraphSelectors: {
|
|
|
11
11
|
dimmedNode: string;
|
|
12
12
|
link: string;
|
|
13
13
|
linkLine: string;
|
|
14
|
+
linkLabel: string;
|
|
14
15
|
dimmedLink: string;
|
|
15
16
|
panel: string;
|
|
16
17
|
panelRect: string;
|
|
@@ -69,6 +70,8 @@ declare const _default: <N extends GraphInputNode, L extends GraphInputLink>(__V
|
|
|
69
70
|
disableDrag?: boolean;
|
|
70
71
|
disableBrush?: boolean;
|
|
71
72
|
zoomThrottledUpdateNodeThreshold?: number;
|
|
73
|
+
fitViewPadding?: number | import("@unovis/ts").Spacing;
|
|
74
|
+
fitViewAlign?: import("@unovis/ts").GraphFitViewAlignment;
|
|
72
75
|
layoutType?: string;
|
|
73
76
|
layoutAutofit?: boolean;
|
|
74
77
|
layoutAutofitTolerance?: number;
|
|
@@ -84,6 +87,7 @@ declare const _default: <N extends GraphInputNode, L extends GraphInputLink>(__V
|
|
|
84
87
|
dagreLayoutSettings?: import("@unovis/ts").GraphDagreLayoutSetting;
|
|
85
88
|
layoutElkSettings?: import("@unovis/ts").GenericAccessor<import("@unovis/ts").GraphElkLayoutSettings, string>;
|
|
86
89
|
layoutElkNodeGroups?: import("@unovis/ts").StringAccessor<N>[];
|
|
90
|
+
layoutElkGetNodeShape?: (d: import("@unovis/ts").GraphNode<N, L>, i: number) => import("elkjs").ElkShape;
|
|
87
91
|
linkWidth?: import("@unovis/ts").NumericAccessor<L>;
|
|
88
92
|
linkStyle?: import("@unovis/ts").GenericAccessor<import("@unovis/ts").GraphLinkStyle, L>;
|
|
89
93
|
linkBandWidth?: import("@unovis/ts").NumericAccessor<L>;
|
|
@@ -91,12 +95,16 @@ declare const _default: <N extends GraphInputNode, L extends GraphInputLink>(__V
|
|
|
91
95
|
linkStroke?: import("@unovis/ts").ColorAccessor<L>;
|
|
92
96
|
linkDisabled?: import("@unovis/ts").BooleanAccessor<L>;
|
|
93
97
|
linkFlow?: import("@unovis/ts").BooleanAccessor<L>;
|
|
94
|
-
linkFlowAnimDuration?:
|
|
95
|
-
linkFlowParticleSize?:
|
|
98
|
+
linkFlowAnimDuration?: import("@unovis/ts").NumericAccessor<L>;
|
|
99
|
+
linkFlowParticleSize?: import("@unovis/ts").NumericAccessor<L>;
|
|
100
|
+
linkFlowParticleSpeed?: import("@unovis/ts").NumericAccessor<L>;
|
|
96
101
|
linkLabel?: import("@unovis/ts").GenericAccessor<import("@unovis/ts").GraphCircleLabel | import("@unovis/ts").GraphCircleLabel[], L>;
|
|
97
102
|
linkLabelShiftFromCenter?: import("@unovis/ts").BooleanAccessor<L>;
|
|
98
103
|
linkNeighborSpacing?: number;
|
|
99
104
|
linkCurvature?: import("@unovis/ts").NumericAccessor<L>;
|
|
105
|
+
linkHighlightOnHover?: boolean;
|
|
106
|
+
linkSourcePointOffset?: import("@unovis/ts").GenericAccessor<[number, number], import("@unovis/ts").GraphLink<N, L>>;
|
|
107
|
+
linkTargetPointOffset?: import("@unovis/ts").GenericAccessor<[number, number], import("@unovis/ts").GraphLink<N, L>>;
|
|
100
108
|
selectedLinkId?: string | number;
|
|
101
109
|
nodeSize?: import("@unovis/ts").NumericAccessor<N>;
|
|
102
110
|
nodeStrokeWidth?: import("@unovis/ts").NumericAccessor<N>;
|
|
@@ -142,6 +150,7 @@ declare const _default: <N extends GraphInputNode, L extends GraphInputLink>(__V
|
|
|
142
150
|
onNodeSelectionBrush?: (selectedNodes: import("@unovis/ts").GraphNode<N, L>[], event: import("d3-brush").D3BrushEvent<SVGGElement>) => void;
|
|
143
151
|
onNodeSelectionDrag?: (selectedNodes: import("@unovis/ts").GraphNode<N, L>[], event: import("d3-drag").D3DragEvent<SVGGElement, import("@unovis/ts").GraphNode<N, L>, unknown>) => void;
|
|
144
152
|
onRenderComplete?: (g: import("d3-selection").Selection<SVGGElement, unknown, null, undefined>, nodes: import("@unovis/ts").GraphNode<N, L>[], links: import("@unovis/ts").GraphLink<N, L>[], config: GraphConfigInterface<N, L>, duration: number, zoomLevel: number, width: number, height: number) => void;
|
|
153
|
+
shouldDataUpdate?: (prevData: import("@unovis/ts").GraphInputData<N, L>, nextData: import("@unovis/ts").GraphInputData<N, L>, datamodel: import("@unovis/ts").GraphDataModel<N, L, import("@unovis/ts").GraphNode<N, L>, import("@unovis/ts").GraphLink<N, L>>) => boolean;
|
|
145
154
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
146
155
|
expose(exposed: import("vue").ShallowUnwrapRef<{
|
|
147
156
|
component: import("vue").Ref<Graph<N, L>, Graph<N, L>>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as s, inject as y, computed as m, ref as S, onMounted as F, nextTick as k, onUnmounted as g, watch as r, createElementBlock as b, openBlock as h } from "vue";
|
|
2
2
|
import { Graph as u } from "@unovis/ts";
|
|
3
|
-
import { useForwardProps as
|
|
4
|
-
import { componentAccessorKey as
|
|
5
|
-
const
|
|
3
|
+
import { useForwardProps as f, arePropsEqual as v } from "../../utils/props.js";
|
|
4
|
+
import { componentAccessorKey as L } from "../../utils/context.js";
|
|
5
|
+
const P = { "data-vis-component": "" }, G = u.selectors, D = /* @__PURE__ */ s({
|
|
6
6
|
__name: "index",
|
|
7
7
|
props: {
|
|
8
8
|
zoomScaleExtent: {},
|
|
@@ -11,6 +11,8 @@ const C = { "data-vis-component": "" }, G = u.selectors, D = /* @__PURE__ */ p({
|
|
|
11
11
|
disableDrag: { type: Boolean },
|
|
12
12
|
disableBrush: { type: Boolean },
|
|
13
13
|
zoomThrottledUpdateNodeThreshold: {},
|
|
14
|
+
fitViewPadding: {},
|
|
15
|
+
fitViewAlign: {},
|
|
14
16
|
layoutType: {},
|
|
15
17
|
layoutAutofit: { type: Boolean },
|
|
16
18
|
layoutAutofitTolerance: {},
|
|
@@ -26,6 +28,7 @@ const C = { "data-vis-component": "" }, G = u.selectors, D = /* @__PURE__ */ p({
|
|
|
26
28
|
dagreLayoutSettings: {},
|
|
27
29
|
layoutElkSettings: {},
|
|
28
30
|
layoutElkNodeGroups: {},
|
|
31
|
+
layoutElkGetNodeShape: { type: Function },
|
|
29
32
|
linkWidth: {},
|
|
30
33
|
linkStyle: {},
|
|
31
34
|
linkBandWidth: {},
|
|
@@ -35,10 +38,14 @@ const C = { "data-vis-component": "" }, G = u.selectors, D = /* @__PURE__ */ p({
|
|
|
35
38
|
linkFlow: {},
|
|
36
39
|
linkFlowAnimDuration: {},
|
|
37
40
|
linkFlowParticleSize: {},
|
|
41
|
+
linkFlowParticleSpeed: {},
|
|
38
42
|
linkLabel: {},
|
|
39
43
|
linkLabelShiftFromCenter: {},
|
|
40
44
|
linkNeighborSpacing: {},
|
|
41
45
|
linkCurvature: {},
|
|
46
|
+
linkHighlightOnHover: { type: Boolean },
|
|
47
|
+
linkSourcePointOffset: {},
|
|
48
|
+
linkTargetPointOffset: {},
|
|
42
49
|
selectedLinkId: {},
|
|
43
50
|
nodeSize: {},
|
|
44
51
|
nodeStrokeWidth: {},
|
|
@@ -85,19 +92,20 @@ const C = { "data-vis-component": "" }, G = u.selectors, D = /* @__PURE__ */ p({
|
|
|
85
92
|
onNodeSelectionBrush: { type: Function },
|
|
86
93
|
onNodeSelectionDrag: { type: Function },
|
|
87
94
|
onRenderComplete: { type: Function },
|
|
95
|
+
shouldDataUpdate: { type: Function },
|
|
88
96
|
duration: {},
|
|
89
97
|
events: {},
|
|
90
98
|
attributes: {},
|
|
91
99
|
data: {}
|
|
92
100
|
},
|
|
93
|
-
setup(c, { expose:
|
|
94
|
-
const n = y(
|
|
101
|
+
setup(c, { expose: p }) {
|
|
102
|
+
const n = y(L), l = c, t = m(() => n.data.value ?? l.data), a = f(l), o = S();
|
|
95
103
|
return F(() => {
|
|
96
|
-
|
|
104
|
+
k(() => {
|
|
97
105
|
var e;
|
|
98
106
|
o.value = new u(a.value), (e = o.value) == null || e.setData(t.value), n.update(o.value);
|
|
99
107
|
});
|
|
100
|
-
}),
|
|
108
|
+
}), g(() => {
|
|
101
109
|
var e;
|
|
102
110
|
(e = o.value) == null || e.destroy(), n.destroy();
|
|
103
111
|
}), r(a, (e, i) => {
|
|
@@ -106,9 +114,9 @@ const C = { "data-vis-component": "" }, G = u.selectors, D = /* @__PURE__ */ p({
|
|
|
106
114
|
}), r(t, () => {
|
|
107
115
|
var e;
|
|
108
116
|
(e = o.value) == null || e.setData(t.value);
|
|
109
|
-
}),
|
|
117
|
+
}), p({
|
|
110
118
|
component: o
|
|
111
|
-
}), (e, i) => (
|
|
119
|
+
}), (e, i) => (h(), b("div", P));
|
|
112
120
|
}
|
|
113
121
|
});
|
|
114
122
|
export {
|
|
@@ -1 +1 @@
|
|
|
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
|
|
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,5 +1,5 @@
|
|
|
1
1
|
import { GroupedBar, NumericAccessor } from '@unovis/ts';
|
|
2
|
-
export declare const VisGroupedBarSelectors: typeof import("@unovis/ts/
|
|
2
|
+
export declare const VisGroupedBarSelectors: typeof import("@unovis/ts/dist/components/grouped-bar/style");
|
|
3
3
|
declare const _default: <Datum>(__VLS_props: any, __VLS_ctx?: {
|
|
4
4
|
attrs: any;
|
|
5
5
|
emit: any;
|
|
@@ -1,4 +1,4 @@
|
|
|
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,
|
|
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, createElementBlock as _, openBlock as b } from "vue";
|
|
2
2
|
import { GroupedBar as i } from "@unovis/ts";
|
|
3
3
|
import { useForwardProps as h, arePropsEqual as B } from "../../utils/props.js";
|
|
4
4
|
import { componentAccessorKey as F } from "../../utils/context.js";
|
|
@@ -44,7 +44,7 @@ const C = { "data-vis-component": "" }, w = i.selectors, D = /* @__PURE__ */ l({
|
|
|
44
44
|
(e = o.value) == null || e.setData(a.value);
|
|
45
45
|
}), p({
|
|
46
46
|
component: o
|
|
47
|
-
}), (e, c) => (
|
|
47
|
+
}), (e, c) => (b(), _("div", C));
|
|
48
48
|
}
|
|
49
49
|
});
|
|
50
50
|
export {
|