@unovis/vue 1.5.0-beta.3 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/annotations/index.cjs +1 -1
- package/components/annotations/index.cjs.map +1 -1
- package/components/annotations/index.d.ts +5 -5
- package/components/annotations/index.js +14 -14
- package/components/annotations/index.js.map +1 -1
- package/components/area/index.cjs +1 -1
- package/components/area/index.cjs.map +1 -1
- package/components/area/index.d.ts +1 -1
- package/components/area/index.js +23 -23
- package/components/area/index.js.map +1 -1
- package/components/axis/index.cjs +1 -1
- package/components/axis/index.cjs.map +1 -1
- package/components/axis/index.d.ts +1 -1
- package/components/axis/index.js +16 -16
- package/components/axis/index.js.map +1 -1
- package/components/brush/index.cjs +1 -1
- package/components/brush/index.cjs.map +1 -1
- package/components/brush/index.d.ts +1 -1
- package/components/brush/index.js +17 -17
- package/components/brush/index.js.map +1 -1
- package/components/chord-diagram/index.cjs +1 -1
- package/components/chord-diagram/index.cjs.map +1 -1
- package/components/chord-diagram/index.d.ts +1 -1
- package/components/chord-diagram/index.js +27 -27
- package/components/chord-diagram/index.js.map +1 -1
- package/components/crosshair/index.cjs +1 -1
- package/components/crosshair/index.cjs.map +1 -1
- package/components/crosshair/index.d.ts +1 -1
- package/components/crosshair/index.js +1 -1
- package/components/crosshair/index.js.map +1 -1
- package/components/donut/index.cjs +1 -1
- package/components/donut/index.cjs.map +1 -1
- package/components/donut/index.d.ts +2 -2
- package/components/donut/index.js +14 -14
- package/components/donut/index.js.map +1 -1
- package/components/free-brush/index.cjs +1 -1
- package/components/free-brush/index.cjs.map +1 -1
- package/components/free-brush/index.d.ts +1 -1
- package/components/free-brush/index.js +18 -18
- package/components/free-brush/index.js.map +1 -1
- package/components/graph/index.cjs +1 -1
- package/components/graph/index.cjs.map +1 -1
- package/components/graph/index.d.ts +1 -1
- package/components/graph/index.js +59 -59
- package/components/graph/index.js.map +1 -1
- package/components/grouped-bar/index.cjs +1 -1
- package/components/grouped-bar/index.cjs.map +1 -1
- package/components/grouped-bar/index.d.ts +1 -1
- package/components/grouped-bar/index.js +25 -25
- package/components/grouped-bar/index.js.map +1 -1
- package/components/line/index.cjs +1 -1
- package/components/line/index.cjs.map +1 -1
- package/components/line/index.d.ts +1 -1
- package/components/line/index.js +23 -23
- package/components/line/index.js.map +1 -1
- package/components/nested-donut/index.cjs +1 -1
- package/components/nested-donut/index.cjs.map +1 -1
- package/components/nested-donut/index.d.ts +2 -2
- package/components/nested-donut/index.js +22 -22
- package/components/nested-donut/index.js.map +1 -1
- package/components/sankey/index.cjs +1 -1
- package/components/sankey/index.cjs.map +1 -1
- package/components/sankey/index.d.ts +1 -1
- package/components/sankey/index.js +35 -35
- package/components/sankey/index.js.map +1 -1
- package/components/scatter/index.cjs +1 -1
- package/components/scatter/index.cjs.map +1 -1
- package/components/scatter/index.d.ts +1 -1
- package/components/scatter/index.js +27 -27
- package/components/scatter/index.js.map +1 -1
- package/components/stacked-bar/index.cjs +1 -1
- package/components/stacked-bar/index.cjs.map +1 -1
- package/components/stacked-bar/index.d.ts +1 -1
- package/components/stacked-bar/index.js +22 -22
- package/components/stacked-bar/index.js.map +1 -1
- package/components/timeline/index.cjs +1 -1
- package/components/timeline/index.cjs.map +1 -1
- package/components/timeline/index.d.ts +2 -2
- package/components/timeline/index.js +1 -1
- package/components/timeline/index.js.map +1 -1
- package/components/tooltip/index.cjs +1 -1
- package/components/tooltip/index.cjs.map +1 -1
- package/components/tooltip/index.d.ts +5 -5
- package/components/tooltip/index.js +15 -15
- package/components/tooltip/index.js.map +1 -1
- package/components/topojson-map/index.cjs +1 -1
- package/components/topojson-map/index.cjs.map +1 -1
- package/components/topojson-map/index.d.ts +1 -1
- package/components/topojson-map/index.js +39 -39
- package/components/topojson-map/index.js.map +1 -1
- package/components/xy-labels/index.cjs +1 -1
- package/components/xy-labels/index.cjs.map +1 -1
- package/components/xy-labels/index.d.ts +1 -1
- package/components/xy-labels/index.js +38 -38
- package/components/xy-labels/index.js.map +1 -1
- package/containers/single-container/index.cjs.map +1 -1
- package/containers/single-container/index.d.ts +1 -1
- package/containers/single-container/index.js.map +1 -1
- package/containers/single-container/index3.cjs +1 -1
- package/containers/single-container/index3.js +1 -1
- package/containers/xy-container/index.cjs.map +1 -1
- package/containers/xy-container/index.d.ts +1 -1
- package/containers/xy-container/index.js.map +1 -1
- package/containers/xy-container/index3.cjs +1 -1
- package/containers/xy-container/index3.js +1 -1
- package/html-components/bullet-legend/index.cjs +1 -1
- package/html-components/bullet-legend/index.cjs.map +1 -1
- package/html-components/bullet-legend/index.d.ts +5 -5
- package/html-components/bullet-legend/index.js +11 -11
- package/html-components/bullet-legend/index.js.map +1 -1
- package/html-components/bullet-legend/index3.cjs +1 -1
- package/html-components/bullet-legend/index3.js +1 -1
- package/html-components/leaflet-flow-map/index.cjs +1 -1
- package/html-components/leaflet-flow-map/index.cjs.map +1 -1
- package/html-components/leaflet-flow-map/index.d.ts +1 -1
- package/html-components/leaflet-flow-map/index.js +43 -43
- package/html-components/leaflet-flow-map/index.js.map +1 -1
- package/html-components/leaflet-flow-map/index3.cjs +1 -1
- package/html-components/leaflet-flow-map/index3.js +1 -1
- package/html-components/leaflet-map/index.cjs +1 -1
- package/html-components/leaflet-map/index.cjs.map +1 -1
- package/html-components/leaflet-map/index.d.ts +1 -1
- package/html-components/leaflet-map/index.js +32 -32
- package/html-components/leaflet-map/index.js.map +1 -1
- package/html-components/leaflet-map/index3.cjs +1 -1
- package/html-components/leaflet-map/index3.js +1 -1
- package/index.cjs +2 -2
- package/index.js +6 -6
- package/package.json +6 -6
- package/utils/props.cjs.map +1 -1
- package/utils/props.js.map +1 -1
- package/containers/single-container/index2.cjs +0 -2
- package/containers/single-container/index2.cjs.map +0 -1
- package/containers/single-container/index2.js +0 -5
- package/containers/single-container/index2.js.map +0 -1
- package/containers/xy-container/index2.cjs +0 -2
- package/containers/xy-container/index2.cjs.map +0 -1
- package/containers/xy-container/index2.js +0 -5
- package/containers/xy-container/index2.js.map +0 -1
- package/html-components/bullet-legend/index2.cjs +0 -2
- package/html-components/bullet-legend/index2.cjs.map +0 -1
- package/html-components/bullet-legend/index2.js +0 -5
- package/html-components/bullet-legend/index2.js.map +0 -1
- package/html-components/leaflet-flow-map/index2.cjs +0 -2
- package/html-components/leaflet-flow-map/index2.cjs.map +0 -1
- package/html-components/leaflet-flow-map/index2.js +0 -5
- package/html-components/leaflet-flow-map/index2.js.map +0 -1
- package/html-components/leaflet-map/index2.cjs +0 -2
- package/html-components/leaflet-map/index2.cjs.map +0 -1
- package/html-components/leaflet-map/index2.js +0 -5
- package/html-components/leaflet-map/index2.js.map +0 -1
|
@@ -93,7 +93,7 @@ declare const _default: <Datum extends GenericDataRecord>(__VLS_props: any, __VL
|
|
|
93
93
|
};
|
|
94
94
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
95
95
|
expose(exposed: import("vue").ShallowUnwrapRef<{
|
|
96
|
-
component: import("vue").Ref<LeafletMap<Datum>>;
|
|
96
|
+
component: import("vue").Ref<LeafletMap<Datum>, LeafletMap<Datum>>;
|
|
97
97
|
}>): void;
|
|
98
98
|
attrs: any;
|
|
99
99
|
slots: {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as d, computed as
|
|
1
|
+
import { defineComponent as d, computed as f, ref as p, onMounted as m, nextTick as y, onUnmounted as v, watch as M, openBlock as L, createElementBlock as B } from "vue";
|
|
2
2
|
import { LeafletMap as r } from "@unovis/ts";
|
|
3
|
-
import { useForwardProps as
|
|
4
|
-
const
|
|
3
|
+
import { useForwardProps as b, arePropsEqual as g } from "../../utils/props.js";
|
|
4
|
+
const F = r.selectors, w = /* @__PURE__ */ d({
|
|
5
5
|
__name: "index",
|
|
6
6
|
props: {
|
|
7
7
|
width: {},
|
|
@@ -25,23 +25,23 @@ const k = r.selectors, C = /* @__PURE__ */ d({
|
|
|
25
25
|
onMapZoomStart: { type: Function },
|
|
26
26
|
onMapZoomEnd: { type: Function },
|
|
27
27
|
onMapClick: { type: Function },
|
|
28
|
-
pointLongitude: {
|
|
29
|
-
pointLatitude: {
|
|
30
|
-
pointId: {
|
|
31
|
-
pointShape: {
|
|
32
|
-
pointColor: {
|
|
33
|
-
pointRadius: {
|
|
34
|
-
pointLabel: {
|
|
35
|
-
pointLabelColor: {
|
|
36
|
-
pointBottomLabel: {
|
|
37
|
-
pointCursor: {
|
|
28
|
+
pointLongitude: {},
|
|
29
|
+
pointLatitude: {},
|
|
30
|
+
pointId: {},
|
|
31
|
+
pointShape: {},
|
|
32
|
+
pointColor: {},
|
|
33
|
+
pointRadius: {},
|
|
34
|
+
pointLabel: {},
|
|
35
|
+
pointLabelColor: {},
|
|
36
|
+
pointBottomLabel: {},
|
|
37
|
+
pointCursor: {},
|
|
38
38
|
pointRingWidth: {},
|
|
39
39
|
selectedPointId: {},
|
|
40
|
-
clusterColor: {
|
|
41
|
-
clusterRadius: {
|
|
42
|
-
clusterLabel: {
|
|
43
|
-
clusterLabelColor: {
|
|
44
|
-
clusterBottomLabel: {
|
|
40
|
+
clusterColor: {},
|
|
41
|
+
clusterRadius: {},
|
|
42
|
+
clusterLabel: {},
|
|
43
|
+
clusterLabelColor: {},
|
|
44
|
+
clusterBottomLabel: {},
|
|
45
45
|
clusterRingWidth: {},
|
|
46
46
|
clusterBackground: { type: Boolean },
|
|
47
47
|
clusterExpandOnClick: { type: Boolean },
|
|
@@ -55,29 +55,29 @@ const k = r.selectors, C = /* @__PURE__ */ d({
|
|
|
55
55
|
attributes: {},
|
|
56
56
|
data: {}
|
|
57
57
|
},
|
|
58
|
-
setup(
|
|
59
|
-
const
|
|
58
|
+
setup(u, { expose: c }) {
|
|
59
|
+
const a = u, s = f(() => a.data), o = b(a), e = p(), n = p();
|
|
60
60
|
return m(() => {
|
|
61
|
-
|
|
62
|
-
|
|
61
|
+
y(() => {
|
|
62
|
+
n.value && (e.value = new r(n.value, o.value, s.value));
|
|
63
63
|
});
|
|
64
|
-
}),
|
|
64
|
+
}), v(() => {
|
|
65
65
|
var t;
|
|
66
|
-
(t =
|
|
67
|
-
}),
|
|
68
|
-
var
|
|
69
|
-
|
|
66
|
+
(t = e.value) == null || t.destroy();
|
|
67
|
+
}), M(o, (t, i) => {
|
|
68
|
+
var l;
|
|
69
|
+
g(t, i) || (l = e.value) == null || l.setConfig(o.value);
|
|
70
70
|
}), c({
|
|
71
|
-
component:
|
|
72
|
-
}), (t,
|
|
71
|
+
component: e
|
|
72
|
+
}), (t, i) => (L(), B("div", {
|
|
73
73
|
"data-vis-leaflet-map": "",
|
|
74
74
|
ref_key: "elRef",
|
|
75
|
-
ref:
|
|
75
|
+
ref: n
|
|
76
76
|
}, null, 512));
|
|
77
77
|
}
|
|
78
78
|
});
|
|
79
79
|
export {
|
|
80
|
-
|
|
81
|
-
|
|
80
|
+
F as VisLeafletMapSelectors,
|
|
81
|
+
w as default
|
|
82
82
|
};
|
|
83
83
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/html-components/leaflet-map/index.vue
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/html-components/leaflet-map/index.vue"],"sourcesContent":["<script setup lang=\"ts\" generic=\"Datum extends GenericDataRecord\">\n// !!! This code was automatically generated. You should not change it !!!\nimport { LeafletMap, LeafletMapConfigInterface, GenericDataRecord, MapLibreStyleSpecs } from '@unovis/ts'\nimport { onMounted, onUnmounted, computed, ref, watch, nextTick } from 'vue'\nimport { arePropsEqual, useForwardProps } from '../../utils/props'\n\n\n// data and required props \ntype Props = LeafletMapConfigInterface<Datum>\nconst props = defineProps<Props & { data?: Datum[] }>()\n\nconst data = computed(() => props.data)\n// config\nconst config = useForwardProps(props)\n\n// component declaration\nconst component = ref<LeafletMap<Datum>>()\nconst elRef = ref<HTMLDivElement>()\n\nonMounted(() => {\n nextTick(() => {\n if(elRef.value)\n component.value = new LeafletMap<Datum>(elRef.value, config.value, data.value)\n \n \n })\n})\n\nonUnmounted(() => {\n component.value?.destroy()\n \n})\n\nwatch(config, (curr, prev) => {\n if (!arePropsEqual(curr, prev)) {\n component.value?.setConfig(config.value)\n }\n})\n\n\ndefineExpose({\n component\n})\n</script>\n\n<script lang=\"ts\">\nexport const VisLeafletMapSelectors = LeafletMap.selectors\n</script>\n\n<template>\n <div data-vis-leaflet-map ref=\"elRef\"/>\n</template>\n\n\n<style>\n [data-vis-leaflet-map] {\n display:block;\n position:relative;\n }\n</style>\n"],"names":["VisLeafletMapSelectors","LeafletMap","props","__props","data","computed","config","useForwardProps","component","ref","elRef","onMounted","nextTick","onUnmounted","_a","watch","curr","prev","arePropsEqual","__expose"],"mappings":";;;AA8CO,MAAMA,IAAyBC,EAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AArCjD,UAAMC,IAAQC,GAERC,IAAOC,EAAS,MAAMH,EAAM,IAAI,GAEhCI,IAASC,EAAgBL,CAAK,GAG9BM,IAAYC,EAAuB,GACnCC,IAAQD,EAAoB;AAElC,WAAAE,EAAU,MAAM;AACd,MAAAC,EAAS,MAAM;AACb,QAAGF,EAAM,UACCF,EAAA,QAAQ,IAAIP,EAAkBS,EAAM,OAAOJ,EAAO,OAAOF,EAAK,KAAK;AAAA,MAAA,CAG9E;AAAA,IAAA,CACF,GAEDS,EAAY,MAAM;;AAChB,OAAAC,IAAAN,EAAU,UAAV,QAAAM,EAAiB;AAAA,IAAQ,CAE1B,GAEKC,EAAAT,GAAQ,CAACU,GAAMC,MAAS;;AAC5B,MAAKC,EAAcF,GAAMC,CAAI,MACjBH,IAAAN,EAAA,UAAA,QAAAM,EAAO,UAAUR,EAAO;AAAA,IACpC,CACD,GAGYa,EAAA;AAAA,MACX,WAAAX;AAAA,IAAA,CACD;;;;;;;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.cjs")
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.cjs");;/* empty css */exports.VisLeafletMapSelectors=e.VisLeafletMapSelectors;exports.default=e.default;
|
|
2
2
|
//# sourceMappingURL=index3.cjs.map
|
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("
|
|
2
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const $=require("./containers/xy-container/index.cjs")
|
|
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
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const $=require("./containers/xy-container/index.cjs");;exports.VisXYContainer=$.default;exports.VisSingleContainer=h.default;exports.VisArea=e.default;exports.VisAreaSelectors=e.VisAreaSelectors;exports.VisAxis=t.default;exports.VisAxisSelectors=t.VisAxisSelectors;exports.VisBrush=s.default;exports.VisBrushSelectors=s.VisBrushSelectors;exports.VisCrosshair=r.default;exports.VisCrosshairSelectors=r.VisCrosshairSelectors;exports.VisFreeBrush=i.default;exports.VisFreeBrushSelectors=i.VisFreeBrushSelectors;exports.VisGroupedBar=u.default;exports.VisGroupedBarSelectors=u.VisGroupedBarSelectors;exports.VisLine=_.default;exports.VisLineSelectors=_.VisLineSelectors;exports.VisScatter=l.default;exports.VisScatterSelectors=l.VisScatterSelectors;exports.VisStackedBar=o.default;exports.VisStackedBarSelectors=o.VisStackedBarSelectors;exports.VisTimeline=n.default;exports.VisTimelineSelectors=n.VisTimelineSelectors;exports.VisXYLabels=a.default;exports.VisXYLabelsSelectors=a.VisXYLabelsSelectors;exports.VisChordDiagram=c.default;exports.VisChordDiagramSelectors=c.VisChordDiagramSelectors;exports.VisDonut=p.default;exports.VisDonutSelectors=p.VisDonutSelectors;exports.VisGraph=V.default;exports.VisGraphSelectors=V.VisGraphSelectors;exports.VisNestedDonut=d.default;exports.VisNestedDonutSelectors=d.VisNestedDonutSelectors;exports.VisSankey=S.default;exports.VisSankeySelectors=S.VisSankeySelectors;exports.VisTopoJSONMap=v.default;exports.VisTopoJSONMapSelectors=v.VisTopoJSONMapSelectors;exports.VisTooltip=g.default;exports.VisTooltipSelectors=g.VisTooltipSelectors;exports.VisAnnotations=f.default;exports.VisAnnotationsSelectors=f.VisAnnotationsSelectors;exports.VisLeafletMap=q.default;exports.VisLeafletMapSelectors=q.VisLeafletMapSelectors;exports.VisLeafletFlowMap=y.default;exports.VisLeafletFlowMapSelectors=y.VisLeafletFlowMapSelectors;exports.VisBulletLegend=x.default;exports.VisBulletLegendSelectors=x.VisBulletLegendSelectors;
|
|
3
3
|
//# sourceMappingURL=index.cjs.map
|
package/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode("
|
|
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 l } from "./containers/xy-container/index.js";
|
|
3
|
-
|
|
3
|
+
|
|
4
4
|
import { default as V } from "./containers/single-container/index.js";
|
|
5
|
-
|
|
5
|
+
/* empty css */
|
|
6
6
|
import { default as u, VisAreaSelectors as d } from "./components/area/index.js";
|
|
7
7
|
import { default as S, VisAxisSelectors as c } from "./components/axis/index.js";
|
|
8
8
|
import { default as n, VisBrushSelectors as h } from "./components/brush/index.js";
|
|
@@ -23,11 +23,11 @@ import { default as ae, VisTopoJSONMapSelectors as ie } from "./components/topoj
|
|
|
23
23
|
import { default as fe, VisTooltipSelectors as Ve } from "./components/tooltip/index.js";
|
|
24
24
|
import { default as ue, VisAnnotationsSelectors as de } from "./components/annotations/index.js";
|
|
25
25
|
import { default as Se, VisLeafletMapSelectors as ce } from "./html-components/leaflet-map/index.js";
|
|
26
|
-
|
|
26
|
+
/* empty css */
|
|
27
27
|
import { default as ne, VisLeafletFlowMapSelectors as he } from "./html-components/leaflet-flow-map/index.js";
|
|
28
|
-
|
|
28
|
+
/* empty css */
|
|
29
29
|
import { default as Le, VisBulletLegendSelectors as Ae } from "./html-components/bullet-legend/index.js";
|
|
30
|
-
|
|
30
|
+
/* empty css */
|
|
31
31
|
export {
|
|
32
32
|
ue as VisAnnotations,
|
|
33
33
|
de as VisAnnotationsSelectors,
|
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.5.0
|
|
4
|
+
"version": "1.5.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/f5/unovis.git",
|
|
@@ -51,13 +51,13 @@
|
|
|
51
51
|
"gallery": "vite"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
|
-
"@unovis/ts": "1.5.0
|
|
54
|
+
"@unovis/ts": "1.5.0",
|
|
55
55
|
"vue": "^3"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"@antfu/eslint-config": "^
|
|
58
|
+
"@antfu/eslint-config": "^3.9.1",
|
|
59
59
|
"@rollup/plugin-node-resolve": "^13.0.4",
|
|
60
|
-
"@vitejs/plugin-vue": "^
|
|
60
|
+
"@vitejs/plugin-vue": "^5.2.0",
|
|
61
61
|
"@vue/tsconfig": "^0.4.0",
|
|
62
62
|
"de-indent": "^1.0.2",
|
|
63
63
|
"jju": "^1.4.0",
|
|
@@ -66,10 +66,10 @@
|
|
|
66
66
|
"rollup-plugin-typescript2": "^0.31.1",
|
|
67
67
|
"tslib": "^2.3.1",
|
|
68
68
|
"typescript": "~4.2.4",
|
|
69
|
-
"vite": "^4.
|
|
69
|
+
"vite": "^5.4.11",
|
|
70
70
|
"vite-plugin-css-injected-by-js": "^3.3.0",
|
|
71
71
|
"vite-plugin-dts": "^3.5.3",
|
|
72
|
-
"vue": "^3.
|
|
72
|
+
"vue": "^3.5.13",
|
|
73
73
|
"vue-tsc": "^1.8.10"
|
|
74
74
|
}
|
|
75
75
|
}
|
package/utils/props.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.cjs","sources":["../../src/utils/props.ts"],"sourcesContent":["import { isEqual } from '@unovis/ts'\nimport { ComponentInternalInstance, camelize, computed, getCurrentInstance } from 'vue'\n\nexport function arePropsEqual<PropTypes> (prevProps: PropTypes, nextProps: PropTypes): boolean {\n return isEqual(prevProps, nextProps)\n}\n\n// source: https://www.radix-vue.com/utilities/use-forward-props.html\n// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/explicit-function-return-type\nexport function useForwardProps<T extends Record<string, any>> (props: T) {\n const vm = getCurrentInstance()\n const attrs = vm.attrs\n\n return computed(() => {\n const preservedProps = {} as T\n const assignedProps = vm?.vnode.props ?? {}\n\n Object.keys(assignedProps).forEach((key) => {\n preservedProps[camelize(key) as keyof T] = props[camelize(key)]\n })\n return { ...preservedProps, ...attrs }\n })\n}\n\n// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/explicit-function-return-type\nexport function parseProps <T extends object> (props: T, instance: ComponentInternalInstance | null) {\n const preservedProps = {} as T\n const assignedProps = instance?.vnode.props ?? {}\n\n Object.keys(assignedProps).forEach(key => {\n preservedProps[camelize(key)] = assignedProps[key]\n })\n return preservedProps\n}\n\n"],"names":["arePropsEqual","prevProps","nextProps","isEqual","useForwardProps","props","vm","getCurrentInstance","attrs","computed","preservedProps","assignedProps","key","camelize"],"mappings":"+HAGgB,SAAAA,EAA0BC,EAAsBC,EAA+B,CACtF,OAAAC,EAAA,QAAQF,EAAWC,CAAS,CACrC,CAIO,SAASE,EAAgDC,EAAU,CACxE,MAAMC,EAAKC,EAAAA,
|
|
1
|
+
{"version":3,"file":"props.cjs","sources":["../../src/utils/props.ts"],"sourcesContent":["import { isEqual } from '@unovis/ts'\nimport { ComponentInternalInstance, camelize, computed, getCurrentInstance } from 'vue'\n\nexport function arePropsEqual<PropTypes> (prevProps: PropTypes, nextProps: PropTypes): boolean {\n return isEqual(prevProps, nextProps)\n}\n\n// source: https://www.radix-vue.com/utilities/use-forward-props.html\n// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/explicit-function-return-type\nexport function useForwardProps<T extends Record<string, any>> (props: T) {\n const vm = getCurrentInstance()\n const attrs = vm.attrs\n\n return computed(() => {\n const preservedProps = {} as T\n const assignedProps = vm?.vnode.props ?? {}\n\n Object.keys(assignedProps).forEach((key) => {\n preservedProps[camelize(key) as keyof T] = props[camelize(key)]\n })\n return { ...preservedProps, ...attrs }\n })\n}\n\n// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/explicit-function-return-type\nexport function parseProps <T extends object> (props: T, instance: ComponentInternalInstance | null) {\n const preservedProps = {} as T\n const assignedProps = instance?.vnode.props ?? {}\n\n Object.keys(assignedProps).forEach(key => {\n preservedProps[camelize(key)] = assignedProps[key]\n })\n return preservedProps\n}\n\n"],"names":["arePropsEqual","prevProps","nextProps","isEqual","useForwardProps","props","vm","getCurrentInstance","attrs","computed","preservedProps","assignedProps","key","camelize"],"mappings":"+HAGgB,SAAAA,EAA0BC,EAAsBC,EAA+B,CACtF,OAAAC,EAAA,QAAQF,EAAWC,CAAS,CACrC,CAIO,SAASE,EAAgDC,EAAU,CACxE,MAAMC,EAAKC,EAAAA,mBAAmB,EACxBC,EAAQF,EAAG,MAEjB,OAAOG,WAAS,IAAM,CACpB,MAAMC,EAAiB,CAAC,EAClBC,GAAgBL,GAAA,YAAAA,EAAI,MAAM,QAAS,CAAC,EAE1C,cAAO,KAAKK,CAAa,EAAE,QAASC,GAAQ,CAC1CF,EAAeG,WAASD,CAAG,CAAY,EAAIP,EAAMQ,EAAAA,SAASD,CAAG,CAAC,CAAA,CAC/D,EACM,CAAE,GAAGF,EAAgB,GAAGF,CAAM,CAAA,CACtC,CACH"}
|
package/utils/props.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.js","sources":["../../src/utils/props.ts"],"sourcesContent":["import { isEqual } from '@unovis/ts'\nimport { ComponentInternalInstance, camelize, computed, getCurrentInstance } from 'vue'\n\nexport function arePropsEqual<PropTypes> (prevProps: PropTypes, nextProps: PropTypes): boolean {\n return isEqual(prevProps, nextProps)\n}\n\n// source: https://www.radix-vue.com/utilities/use-forward-props.html\n// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/explicit-function-return-type\nexport function useForwardProps<T extends Record<string, any>> (props: T) {\n const vm = getCurrentInstance()\n const attrs = vm.attrs\n\n return computed(() => {\n const preservedProps = {} as T\n const assignedProps = vm?.vnode.props ?? {}\n\n Object.keys(assignedProps).forEach((key) => {\n preservedProps[camelize(key) as keyof T] = props[camelize(key)]\n })\n return { ...preservedProps, ...attrs }\n })\n}\n\n// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/explicit-function-return-type\nexport function parseProps <T extends object> (props: T, instance: ComponentInternalInstance | null) {\n const preservedProps = {} as T\n const assignedProps = instance?.vnode.props ?? {}\n\n Object.keys(assignedProps).forEach(key => {\n preservedProps[camelize(key)] = assignedProps[key]\n })\n return preservedProps\n}\n\n"],"names":["arePropsEqual","prevProps","nextProps","isEqual","useForwardProps","props","vm","getCurrentInstance","attrs","computed","preservedProps","assignedProps","key","camelize"],"mappings":";;AAGgB,SAAAA,EAA0BC,GAAsBC,GAA+B;AACtF,SAAAC,EAAQF,GAAWC,CAAS;AACrC;AAIO,SAASE,EAAgDC,GAAU;AACxE,QAAMC,IAAKC,
|
|
1
|
+
{"version":3,"file":"props.js","sources":["../../src/utils/props.ts"],"sourcesContent":["import { isEqual } from '@unovis/ts'\nimport { ComponentInternalInstance, camelize, computed, getCurrentInstance } from 'vue'\n\nexport function arePropsEqual<PropTypes> (prevProps: PropTypes, nextProps: PropTypes): boolean {\n return isEqual(prevProps, nextProps)\n}\n\n// source: https://www.radix-vue.com/utilities/use-forward-props.html\n// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/explicit-function-return-type\nexport function useForwardProps<T extends Record<string, any>> (props: T) {\n const vm = getCurrentInstance()\n const attrs = vm.attrs\n\n return computed(() => {\n const preservedProps = {} as T\n const assignedProps = vm?.vnode.props ?? {}\n\n Object.keys(assignedProps).forEach((key) => {\n preservedProps[camelize(key) as keyof T] = props[camelize(key)]\n })\n return { ...preservedProps, ...attrs }\n })\n}\n\n// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/explicit-function-return-type\nexport function parseProps <T extends object> (props: T, instance: ComponentInternalInstance | null) {\n const preservedProps = {} as T\n const assignedProps = instance?.vnode.props ?? {}\n\n Object.keys(assignedProps).forEach(key => {\n preservedProps[camelize(key)] = assignedProps[key]\n })\n return preservedProps\n}\n\n"],"names":["arePropsEqual","prevProps","nextProps","isEqual","useForwardProps","props","vm","getCurrentInstance","attrs","computed","preservedProps","assignedProps","key","camelize"],"mappings":";;AAGgB,SAAAA,EAA0BC,GAAsBC,GAA+B;AACtF,SAAAC,EAAQF,GAAWC,CAAS;AACrC;AAIO,SAASE,EAAgDC,GAAU;AACxE,QAAMC,IAAKC,EAAmB,GACxBC,IAAQF,EAAG;AAEjB,SAAOG,EAAS,MAAM;AACpB,UAAMC,IAAiB,CAAC,GAClBC,KAAgBL,KAAA,gBAAAA,EAAI,MAAM,UAAS,CAAC;AAE1C,kBAAO,KAAKK,CAAa,EAAE,QAAQ,CAACC,MAAQ;AAC1C,MAAAF,EAAeG,EAASD,CAAG,CAAY,IAAIP,EAAMQ,EAASD,CAAG,CAAC;AAAA,IAAA,CAC/D,GACM,EAAE,GAAGF,GAAgB,GAAGF,EAAM;AAAA,EAAA,CACtC;AACH;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index2.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index2.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index2.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index2.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index2.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|