@unovis/vue 1.3.4 → 1.3.5
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/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/index.cjs +1 -1
- package/index.js +1 -1
- package/package.json +2 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const t=require("vue"),d=require("@unovis/ts"),c=require("../../utils/props.cjs"),y=require("../../utils/context.cjs"),g={"data-vis-component":""},m=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},duration:{},events:{},attributes:{},data:{}},setup(i,{expose:p}){const s=i,o=t.inject(y.componentAccessorKey),a=t.computed(()=>o.data.value??s.data),r=c.useForwardProps(s),n=t.ref();return t.onMounted(()=>{t.nextTick(()=>{var e;n.value=new d.NestedDonut(r.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(r,(e,l)=>{var u;c.arePropsEqual(e,l)||(u=n.value)==null||u.setConfig(r.value)}),t.watch(a,()=>{var e;(e=n.value)==null||e.setData(a.value)}),p({component:n}),(e,l)=>(t.openBlock(),t.createElementBlock("div",g))}});module.exports=m;
|
|
1
|
+
"use strict";const t=require("vue"),d=require("@unovis/ts"),c=require("../../utils/props.cjs"),y=require("../../utils/context.cjs"),g={"data-vis-component":""},m=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(i,{expose:p}){const s=i,o=t.inject(y.componentAccessorKey),a=t.computed(()=>o.data.value??s.data),r=c.useForwardProps(s),n=t.ref();return t.onMounted(()=>{t.nextTick(()=>{var e;n.value=new d.NestedDonut(r.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(r,(e,l)=>{var u;c.arePropsEqual(e,l)||(u=n.value)==null||u.setConfig(r.value)}),t.watch(a,()=>{var e;(e=n.value)==null||e.setData(a.value)}),p({component:n}),(e,l)=>(t.openBlock(),t.createElementBlock("div",g))}});module.exports=m;
|
|
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\ninterface Props extends 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 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","_sfc_main","_defineComponent","__props","__expose","props","accessor","inject","componentAccessorKey","data","computed","config","useForwardProps","component","ref","onMounted","nextTick","NestedDonut","_a","onUnmounted","watch","curr","prev","arePropsEqual","_ctx","_cache","_openBlock","_createElementBlock"],"mappings":"oIAGMA,EAAa,CAAE,qBAAsB,IASfC,EAAiBC,kBAAA,CAC3C,OAAQ,QACR,MAAO,CACL,WAAY,CAAC,EACb,UAAW,CAAC,EACZ,MAAO,C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AMC,CAAI,IACjBJ,EAAAL,EAAA,QAAA,MAAAK,EAAO,UAAUP,EAAO,MACpC,CACD,EAEDS,EAAA,MAAMX,EAAM,IAAM,QACNS,EAAAL,EAAA,QAAA,MAAAK,EAAO,QAAQT,EAAK,MAAK,CACpC,EAEQL,EAAA,CACP,UAAAS,CAAA,CACD,EAEM,CAACW,EAAUC,KACRC,EAAW,UAAA,EAAGC,EAAAA,mBAAoB,MAAO3B,CAAU,EAE7D,CAEA,CAAC"}
|
|
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\ninterface Props extends 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","_sfc_main","_defineComponent","__props","__expose","props","accessor","inject","componentAccessorKey","data","computed","config","useForwardProps","component","ref","onMounted","nextTick","NestedDonut","_a","onUnmounted","watch","curr","prev","arePropsEqual","_ctx","_cache","_openBlock","_createElementBlock"],"mappings":"oIAGMA,EAAa,CAAE,qBAAsB,IASfC,EAAiBC,kBAAA,CAC3C,OAAQ,QACR,MAAO,CACL,WAAY,CAAC,EACb,UAAW,CAAC,EACZ,MAAO,CAAE,KAAM,CAAC,SAAU,OAAQ,IAAI,CAAE,EACxC,aAAc,CAAC,EACf,gBAAiB,CAAC,EAClB,oBAAqB,CAAE,KAAM,OAAQ,EACrC,eAAgB,CAAE,KAAM,OAAQ,EAChC,KAAM,CAAE,KAAM,QAAS,EACvB,OAAQ,CAAC,EACT,cAAe,CAAE,KAAM,CAAC,SAAU,IAAI,CAAE,EACxC,aAAc,CAAC,EACf,aAAc,CAAC,EACf,kBAAmB,CAAC,EACpB,6BAA8B,CAAE,KAAM,OAAQ,EAC9C,aAAc,CAAE,KAAM,CAAC,SAAU,OAAQ,MAAO,IAAI,CAAE,EACtD,aAAc,CAAE,KAAM,CAAC,SAAU,OAAQ,IAAI,CAAE,EAC/C,kBAAmB,CAAE,KAAM,CAAC,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|
56
56
|
segmentLabel?: StringAccessor<import("@unovis/ts").NestedDonutSegment<Datum>>;
|
|
57
57
|
segmentLabelColor?: import("@unovis/ts").ColorAccessor<import("@unovis/ts").NestedDonutSegment<Datum>>;
|
|
58
|
+
showSegmentLabels?: boolean;
|
|
58
59
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
59
60
|
expose(exposed: import("vue").ShallowUnwrapRef<{
|
|
60
61
|
component: import("vue").Ref<NestedDonut<Datum>>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { NestedDonut as
|
|
3
|
-
import { useForwardProps as
|
|
4
|
-
import { componentAccessorKey as
|
|
5
|
-
const
|
|
1
|
+
import { defineComponent as i, inject as m, computed as d, ref as y, onMounted as g, nextTick as v, onUnmounted as f, watch as u, openBlock as b, createElementBlock as S } from "vue";
|
|
2
|
+
import { NestedDonut as B } from "@unovis/ts";
|
|
3
|
+
import { useForwardProps as _, arePropsEqual as h } from "../../utils/props.js";
|
|
4
|
+
import { componentAccessorKey as w } from "../../utils/context.js";
|
|
5
|
+
const F = { "data-vis-component": "" }, C = /* @__PURE__ */ i({
|
|
6
6
|
__name: "index",
|
|
7
7
|
props: {
|
|
8
8
|
angleRange: {},
|
|
@@ -23,30 +23,31 @@ const w = { "data-vis-component": "" }, C = /* @__PURE__ */ p({
|
|
|
23
23
|
segmentLabel: { type: [Function, String, null] },
|
|
24
24
|
segmentLabelColor: { type: [Function, String, Array, null] },
|
|
25
25
|
showEmptySegments: { type: Boolean },
|
|
26
|
+
showSegmentLabels: { type: Boolean },
|
|
26
27
|
duration: {},
|
|
27
28
|
events: {},
|
|
28
29
|
attributes: {},
|
|
29
30
|
data: {}
|
|
30
31
|
},
|
|
31
|
-
setup(c, { expose:
|
|
32
|
-
const r = c, n = m(
|
|
32
|
+
setup(c, { expose: p }) {
|
|
33
|
+
const r = c, n = m(w), o = d(() => n.data.value ?? r.data), a = _(r), t = y();
|
|
33
34
|
return g(() => {
|
|
34
35
|
v(() => {
|
|
35
36
|
var e;
|
|
36
|
-
t.value = new
|
|
37
|
+
t.value = new B(a.value), (e = t.value) == null || e.setData(o.value), n.update(t.value);
|
|
37
38
|
});
|
|
38
39
|
}), f(() => {
|
|
39
40
|
var e;
|
|
40
41
|
(e = t.value) == null || e.destroy(), n.destroy();
|
|
41
42
|
}), u(a, (e, l) => {
|
|
42
43
|
var s;
|
|
43
|
-
|
|
44
|
+
h(e, l) || (s = t.value) == null || s.setConfig(a.value);
|
|
44
45
|
}), u(o, () => {
|
|
45
46
|
var e;
|
|
46
47
|
(e = t.value) == null || e.setData(o.value);
|
|
47
|
-
}),
|
|
48
|
+
}), p({
|
|
48
49
|
component: t
|
|
49
|
-
}), (e, l) => (b(), S("div",
|
|
50
|
+
}), (e, l) => (b(), S("div", F));
|
|
50
51
|
}
|
|
51
52
|
});
|
|
52
53
|
export {
|
|
@@ -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\ninterface Props extends 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 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","_sfc_main","_defineComponent","__props","__expose","props","accessor","inject","componentAccessorKey","data","computed","config","useForwardProps","component","ref","onMounted","nextTick","NestedDonut","_a","onUnmounted","watch","curr","prev","arePropsEqual","_ctx","_cache","_openBlock","_createElementBlock"],"mappings":";;;;AAGA,MAAMA,IAAa,EAAE,sBAAsB,MASfC,IAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,YAAY,CAAC;AAAA,IACb,WAAW,CAAC;AAAA,IACZ,OAAO,EAAE,MAAM,CAAC,UAAU,QAAQ,IAAI,EAAE;AAAA,IACxC,cAAc,CAAC;AAAA,IACf,iBAAiB,CAAC;AAAA,IAClB,qBAAqB,EAAE,MAAM,QAAQ;AAAA,IACrC,gBAAgB,EAAE,MAAM,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AUP,EAAO;AAAA,IACpC,CACD,GAEDS,EAAMX,GAAM,MAAM;;AACN,OAAAS,IAAAL,EAAA,UAAA,QAAAK,EAAO,QAAQT,EAAK;AAAA,IAAK,CACpC,GAEQL,EAAA;AAAA,MACP,WAAAS;AAAA,IAAA,CACD,GAEM,CAACW,GAAUC,OACRC,EAAW,GAAGC,EAAoB,OAAO3B,CAAU;AAAA,EAE7D;AAEA,CAAC;"}
|
|
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\ninterface Props extends 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","_sfc_main","_defineComponent","__props","__expose","props","accessor","inject","componentAccessorKey","data","computed","config","useForwardProps","component","ref","onMounted","nextTick","NestedDonut","_a","onUnmounted","watch","curr","prev","arePropsEqual","_ctx","_cache","_openBlock","_createElementBlock"],"mappings":";;;;AAGA,MAAMA,IAAa,EAAE,sBAAsB,MASfC,IAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,YAAY,CAAC;AAAA,IACb,WAAW,CAAC;AAAA,IACZ,OAAO,EAAE,MAAM,CAAC,UAAU,QAAQ,IAAI,EAAE;AAAA,IACxC,cAAc,CAAC;AAAA,IACf,iBAAiB,CAAC;AAAA,IAClB,qBAAqB,EAAE,MAAM,QAAQ;AAAA,IACrC,gBAAgB,EAAE,MAAM,QAAQ;AAAA,IAChC,MAAM,EAAE,MAAM,SAAS;AAAA,IACvB,QAAQ,CAAC;AAAA,IACT,eAAe,EAAE,MAAM,CAAC,UAAU,IAAI,EAAE;AAAA,IACxC,cAAc,CAAC;AAAA,IACf,cAAc,CAAC;AAAA,IACf,mBAAmB,CAAC;AAAA,IACpB,8BAA8B,EAAE,MAAM,QAAQ;AAAA,IAC9C,cAAc,EAAE,MAAM,CAAC,UAAU,QAAQ,OAAO,IAAI,EAAE;AAAA,IAC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package/index.cjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode("[data-vis-leaflet-
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".unovis-xy-container,.unovis-single-container{display:block;position:relative;width:100%}[data-vis-leaflet-map],[data-vis-leaflet-flow-map]{display:block;position:relative}[data-vis-bullet-legend]{display:block}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
|
|
2
2
|
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./containers/xy-container/index.cjs");require("./containers/xy-container/index2.cjs");const _=require("./containers/single-container/index.cjs");require("./containers/single-container/index2.cjs");const t=require("./components/line/index.cjs"),u=require("./components/area/index.cjs"),r=require("./components/axis/index.cjs"),i=require("./components/brush/index.cjs"),s=require("./components/free-brush/index.cjs"),n=require("./components/crosshair/index.cjs"),p=require("./components/grouped-bar/index.cjs"),c=require("./components/scatter/index.cjs"),v=require("./components/stacked-bar/index.cjs"),a=require("./components/timeline/index.cjs"),o=require("./components/xy-labels/index.cjs"),l=require("./components/donut/index.cjs"),d=require("./components/topojson-map/index.cjs"),g=require("./components/sankey/index.cjs"),q=require("./components/graph/index.cjs"),y=require("./components/chord-diagram/index.cjs"),x=require("./components/nested-donut/index.cjs"),V=require("./components/tooltip/index.cjs"),$=require("./html-components/leaflet-map/index.cjs");require("./html-components/leaflet-map/index2.cjs");const S=require("./html-components/leaflet-flow-map/index.cjs");require("./html-components/leaflet-flow-map/index2.cjs");const h=require("./html-components/bullet-legend/index.cjs");require("./html-components/bullet-legend/index2.cjs");exports.VisXYContainer=e;exports.VisSingleContainer=_;exports.VisLine=t;exports.VisArea=u;exports.VisAxis=r;exports.VisBrush=i;exports.VisFreeBrush=s;exports.VisCrosshair=n;exports.VisGroupedBar=p;exports.VisScatter=c;exports.VisStackedBar=v;exports.VisTimeline=a;exports.VisXYLabels=o;exports.VisDonut=l;exports.VisTopoJSONMap=d;exports.VisSankey=g;exports.VisGraph=q;exports.VisChordDiagram=y;exports.VisNestedDonut=x;exports.VisTooltip=V;exports.VisLeafletMap=$;exports.VisLeafletFlowMap=S;exports.VisBulletLegend=h;
|
|
3
3
|
//# sourceMappingURL=index.cjs.map
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode("[data-vis-leaflet-
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".unovis-xy-container,.unovis-single-container{display:block;position:relative;width:100%}[data-vis-leaflet-map],[data-vis-leaflet-flow-map]{display:block;position:relative}[data-vis-bullet-legend]{display:block}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
|
|
2
2
|
import { default as i } from "./containers/xy-container/index.js";
|
|
3
3
|
import "./containers/xy-container/index2.js";
|
|
4
4
|
import { default as l } from "./containers/single-container/index.js";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unovis/vue",
|
|
3
3
|
"description": "Modular data visualization framework for React, Angular, Svelte, Vue, and vanilla TypeScript or JavaScript",
|
|
4
|
-
"version": "1.3.
|
|
4
|
+
"version": "1.3.5",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/f5/unovis.git",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"gallery": "vite"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
|
-
"@unovis/ts": "1.3.
|
|
54
|
+
"@unovis/ts": "1.3.5",
|
|
55
55
|
"vue": "^3"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|