@unovis/vue 1.7.0-pre.1 → 1.7.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.
Files changed (188) hide show
  1. package/README.md +4 -0
  2. package/components/annotations/index.cjs +1 -1
  3. package/components/annotations/index.cjs.map +1 -1
  4. package/components/annotations/index.d.ts +18 -100
  5. package/components/annotations/index.js +18 -20
  6. package/components/annotations/index.js.map +1 -1
  7. package/components/area/index.cjs +1 -1
  8. package/components/area/index.cjs.map +1 -1
  9. package/components/area/index.d.ts +12 -64
  10. package/components/area/index.js +31 -32
  11. package/components/area/index.js.map +1 -1
  12. package/components/axis/index.cjs +1 -1
  13. package/components/axis/index.cjs.map +1 -1
  14. package/components/axis/index.d.ts +12 -82
  15. package/components/axis/index.js +29 -28
  16. package/components/axis/index.js.map +1 -1
  17. package/components/boxplot/index.cjs +2 -0
  18. package/components/boxplot/index.cjs.map +1 -0
  19. package/components/boxplot/index.d.ts +19 -0
  20. package/components/boxplot/index.js +31 -0
  21. package/components/boxplot/index.js.map +1 -0
  22. package/components/boxplot/index2.cjs +2 -0
  23. package/components/boxplot/index2.cjs.map +1 -0
  24. package/components/boxplot/index2.js +7 -0
  25. package/components/boxplot/index2.js.map +1 -0
  26. package/components/brush/index.cjs +1 -1
  27. package/components/brush/index.cjs.map +1 -1
  28. package/components/brush/index.d.ts +12 -62
  29. package/components/brush/index.js +26 -28
  30. package/components/brush/index.js.map +1 -1
  31. package/components/chord-diagram/index.cjs +1 -1
  32. package/components/chord-diagram/index.cjs.map +1 -1
  33. package/components/chord-diagram/index.d.ts +12 -60
  34. package/components/chord-diagram/index.js +30 -32
  35. package/components/chord-diagram/index.js.map +1 -1
  36. package/components/crosshair/index.cjs +1 -1
  37. package/components/crosshair/index.cjs.map +1 -1
  38. package/components/crosshair/index.d.ts +12 -66
  39. package/components/crosshair/index.js +20 -24
  40. package/components/crosshair/index.js.map +1 -1
  41. package/components/donut/index.cjs +1 -1
  42. package/components/donut/index.cjs.map +1 -1
  43. package/components/donut/index.d.ts +12 -64
  44. package/components/donut/index.js +24 -26
  45. package/components/donut/index.js.map +1 -1
  46. package/components/free-brush/index.cjs +1 -1
  47. package/components/free-brush/index.cjs.map +1 -1
  48. package/components/free-brush/index.d.ts +12 -62
  49. package/components/free-brush/index.js +25 -28
  50. package/components/free-brush/index.js.map +1 -1
  51. package/components/graph/index.cjs +1 -1
  52. package/components/graph/index.cjs.map +1 -1
  53. package/components/graph/index.d.ts +11 -135
  54. package/components/graph/index.js +70 -66
  55. package/components/graph/index.js.map +1 -1
  56. package/components/grouped-bar/index.cjs +1 -1
  57. package/components/grouped-bar/index.cjs.map +1 -1
  58. package/components/grouped-bar/index.d.ts +12 -62
  59. package/components/grouped-bar/index.js +27 -28
  60. package/components/grouped-bar/index.js.map +1 -1
  61. package/components/heatmap/index.cjs +2 -0
  62. package/components/heatmap/index.cjs.map +1 -0
  63. package/components/heatmap/index.d.ts +19 -0
  64. package/components/heatmap/index.js +49 -0
  65. package/components/heatmap/index.js.map +1 -0
  66. package/components/heatmap/index2.cjs +2 -0
  67. package/components/heatmap/index2.cjs.map +1 -0
  68. package/components/heatmap/index2.js +7 -0
  69. package/components/heatmap/index2.js.map +1 -0
  70. package/components/line/index.cjs +1 -1
  71. package/components/line/index.cjs.map +1 -1
  72. package/components/line/index.d.ts +12 -60
  73. package/components/line/index.js +28 -30
  74. package/components/line/index.js.map +1 -1
  75. package/components/nested-donut/index.cjs +1 -1
  76. package/components/nested-donut/index.cjs.map +1 -1
  77. package/components/nested-donut/index.d.ts +12 -65
  78. package/components/nested-donut/index.js +26 -29
  79. package/components/nested-donut/index.js.map +1 -1
  80. package/components/plotband/index.cjs +1 -1
  81. package/components/plotband/index.cjs.map +1 -1
  82. package/components/plotband/index.d.ts +12 -63
  83. package/components/plotband/index.js +17 -18
  84. package/components/plotband/index.js.map +1 -1
  85. package/components/plotline/index.cjs +1 -1
  86. package/components/plotline/index.cjs.map +1 -1
  87. package/components/plotline/index.d.ts +12 -64
  88. package/components/plotline/index.js +18 -19
  89. package/components/plotline/index.js.map +1 -1
  90. package/components/radial-bar/index.cjs +2 -0
  91. package/components/radial-bar/index.cjs.map +1 -0
  92. package/components/radial-bar/index.d.ts +19 -0
  93. package/components/radial-bar/index.js +54 -0
  94. package/components/radial-bar/index.js.map +1 -0
  95. package/components/radial-bar/index2.cjs +2 -0
  96. package/components/radial-bar/index2.cjs.map +1 -0
  97. package/components/radial-bar/index2.js +7 -0
  98. package/components/radial-bar/index2.js.map +1 -0
  99. package/components/sankey/index.cjs +1 -1
  100. package/components/sankey/index.cjs.map +1 -1
  101. package/components/sankey/index.d.ts +12 -106
  102. package/components/sankey/index.js +42 -41
  103. package/components/sankey/index.js.map +1 -1
  104. package/components/scatter/index.cjs +1 -1
  105. package/components/scatter/index.cjs.map +1 -1
  106. package/components/scatter/index.d.ts +12 -65
  107. package/components/scatter/index.js +33 -35
  108. package/components/scatter/index.js.map +1 -1
  109. package/components/stacked-bar/index.cjs +1 -1
  110. package/components/stacked-bar/index.cjs.map +1 -1
  111. package/components/stacked-bar/index.d.ts +12 -62
  112. package/components/stacked-bar/index.js +29 -29
  113. package/components/stacked-bar/index.js.map +1 -1
  114. package/components/timeline/index.cjs +1 -1
  115. package/components/timeline/index.cjs.map +1 -1
  116. package/components/timeline/index.d.ts +12 -88
  117. package/components/timeline/index.js +20 -24
  118. package/components/timeline/index.js.map +1 -1
  119. package/components/tooltip/index.cjs +1 -1
  120. package/components/tooltip/index.cjs.map +1 -1
  121. package/components/tooltip/index.d.ts +19 -99
  122. package/components/tooltip/index.js +15 -17
  123. package/components/tooltip/index.js.map +1 -1
  124. package/components/topojson-map/index.cjs +1 -1
  125. package/components/topojson-map/index.cjs.map +1 -1
  126. package/components/topojson-map/index.d.ts +12 -78
  127. package/components/topojson-map/index.js +66 -39
  128. package/components/topojson-map/index.js.map +1 -1
  129. package/components/treemap/index.cjs +1 -1
  130. package/components/treemap/index.cjs.map +1 -1
  131. package/components/treemap/index.d.ts +12 -69
  132. package/components/treemap/index.js +25 -26
  133. package/components/treemap/index.js.map +1 -1
  134. package/components/xy-labels/index.cjs +1 -1
  135. package/components/xy-labels/index.cjs.map +1 -1
  136. package/components/xy-labels/index.d.ts +12 -66
  137. package/components/xy-labels/index.js +36 -39
  138. package/components/xy-labels/index.js.map +1 -1
  139. package/components.d.ts +30 -27
  140. package/containers/single-container/index.cjs +1 -1
  141. package/containers/single-container/index.cjs.map +1 -1
  142. package/containers/single-container/index.d.ts +11 -26
  143. package/containers/single-container/index.js +26 -26
  144. package/containers/single-container/index.js.map +1 -1
  145. package/containers/xy-container/index.cjs +1 -1
  146. package/containers/xy-container/index.cjs.map +1 -1
  147. package/containers/xy-container/index.d.ts +12 -45
  148. package/containers/xy-container/index.js +25 -30
  149. package/containers/xy-container/index.js.map +1 -1
  150. package/containers.d.ts +2 -2
  151. package/html-components/bullet-legend/index.cjs +1 -1
  152. package/html-components/bullet-legend/index.cjs.map +1 -1
  153. package/html-components/bullet-legend/index.d.ts +18 -74
  154. package/html-components/bullet-legend/index.js +24 -25
  155. package/html-components/bullet-legend/index.js.map +1 -1
  156. package/html-components/flow-legend/index.cjs +1 -1
  157. package/html-components/flow-legend/index.cjs.map +1 -1
  158. package/html-components/flow-legend/index.d.ts +19 -85
  159. package/html-components/flow-legend/index.js +21 -23
  160. package/html-components/flow-legend/index.js.map +1 -1
  161. package/html-components/leaflet-flow-map/index.cjs +1 -1
  162. package/html-components/leaflet-flow-map/index.cjs.map +1 -1
  163. package/html-components/leaflet-flow-map/index.d.ts +12 -112
  164. package/html-components/leaflet-flow-map/index.js +46 -48
  165. package/html-components/leaflet-flow-map/index.js.map +1 -1
  166. package/html-components/leaflet-map/index.cjs +1 -1
  167. package/html-components/leaflet-map/index.cjs.map +1 -1
  168. package/html-components/leaflet-map/index.d.ts +12 -99
  169. package/html-components/leaflet-map/index.js +37 -39
  170. package/html-components/leaflet-map/index.js.map +1 -1
  171. package/html-components/rolling-pin-legend/index.cjs +1 -1
  172. package/html-components/rolling-pin-legend/index.cjs.map +1 -1
  173. package/html-components/rolling-pin-legend/index.d.ts +18 -50
  174. package/html-components/rolling-pin-legend/index.js +22 -24
  175. package/html-components/rolling-pin-legend/index.js.map +1 -1
  176. package/index.cjs +2 -2
  177. package/index.js +101 -92
  178. package/index.js.map +1 -1
  179. package/package.json +14 -13
  180. package/utils/context.cjs.map +1 -1
  181. package/utils/context.d.ts +1 -0
  182. package/utils/context.js +1 -1
  183. package/utils/context.js.map +1 -1
  184. package/utils/props.cjs +1 -1
  185. package/utils/props.cjs.map +1 -1
  186. package/utils/props.d.ts +2 -4
  187. package/utils/props.js +9 -9
  188. package/utils/props.js.map +1 -1
@@ -1,7 +1,7 @@
1
- import { defineComponent as f, computed as m, ref as r, onMounted as y, nextTick as v, onUnmounted as M, watch as u, createElementBlock as L, openBlock as B } from "vue";
2
- import { LeafletMap as s } from "@unovis/ts";
3
- import { useForwardProps as b, arePropsEqual as g } from "../../utils/props.js";
4
- const F = s.selectors, w = /* @__PURE__ */ f({
1
+ import { defineComponent as d, computed as y, ref as a, onMounted as f, nextTick as m, onUnmounted as F, watch as r, openBlock as g, createElementBlock as v } from "vue";
2
+ import { LeafletMap as p } from "@unovis/ts";
3
+ import { useForwardProps as S, arePropsEqual as M } from "../../utils/props.js";
4
+ const h = p.selectors, k = /* @__PURE__ */ d({
5
5
  __name: "index",
6
6
  props: {
7
7
  width: {},
@@ -18,6 +18,7 @@ const F = s.selectors, w = /* @__PURE__ */ f({
18
18
  accessToken: {},
19
19
  attribution: {},
20
20
  renderer: {},
21
+ preserveDrawingBuffer: { type: Boolean },
21
22
  onMapInitialized: { type: Function },
22
23
  onMapMoveZoom: { type: Function },
23
24
  onMapMoveStart: { type: Function },
@@ -25,23 +26,23 @@ const F = s.selectors, w = /* @__PURE__ */ f({
25
26
  onMapZoomStart: { type: Function },
26
27
  onMapZoomEnd: { type: Function },
27
28
  onMapClick: { type: Function },
28
- pointLongitude: {},
29
- pointLatitude: {},
30
- pointId: {},
31
- pointShape: {},
32
- pointColor: {},
33
- pointRadius: {},
34
- pointLabel: {},
35
- pointLabelColor: {},
36
- pointBottomLabel: {},
37
- pointCursor: {},
29
+ pointLongitude: { type: [Function, Number, null] },
30
+ pointLatitude: { type: [Function, Number, null] },
31
+ pointId: { type: [Function, String, null] },
32
+ pointShape: { type: [Function, String, null] },
33
+ pointColor: { type: [Function, String, Array, null] },
34
+ pointRadius: { type: [Function, Number, null] },
35
+ pointLabel: { type: [Function, String, null] },
36
+ pointLabelColor: { type: [Function, String, null] },
37
+ pointBottomLabel: { type: [Function, String, null] },
38
+ pointCursor: { type: [Function, String, null] },
38
39
  pointRingWidth: {},
39
40
  selectedPointId: {},
40
- clusterColor: {},
41
- clusterRadius: {},
42
- clusterLabel: {},
43
- clusterLabelColor: {},
44
- clusterBottomLabel: {},
41
+ clusterColor: { type: [Function, String, Array, null] },
42
+ clusterRadius: { type: [Function, Number, null] },
43
+ clusterLabel: { type: [Function, String, null] },
44
+ clusterLabelColor: { type: [Function, String, null] },
45
+ clusterBottomLabel: { type: [Function, String, null] },
45
46
  clusterRingWidth: {},
46
47
  clusterBackground: { type: Boolean },
47
48
  clusterExpandOnClick: { type: Boolean },
@@ -55,32 +56,29 @@ const F = s.selectors, w = /* @__PURE__ */ f({
55
56
  attributes: {},
56
57
  data: {}
57
58
  },
58
- setup(c, { expose: d }) {
59
- const i = c, o = m(() => i.data), n = b(i), t = r(), a = r();
60
- return y(() => {
61
- v(() => {
62
- a.value && (t.value = new s(a.value, n.value, o.value));
59
+ setup(c, { expose: s }) {
60
+ const i = c, n = y(() => i.data), e = S(i), t = a(), o = a();
61
+ return f(() => {
62
+ m(() => {
63
+ o.value && (t.value = new p(o.value, e.value, n.value));
63
64
  });
64
- }), M(() => {
65
- var e;
66
- (e = t.value) == null || e.destroy();
67
- }), u(n, (e, l) => {
68
- var p;
69
- g(e, l) || (p = t.value) == null || p.setConfig(n.value);
70
- }), u(o, () => {
71
- var e;
72
- (e = t.value) == null || e.setData(o.value);
73
- }), d({
65
+ }), F(() => {
66
+ t.value?.destroy();
67
+ }), r(e, (l, u) => {
68
+ M(l, u) || (t.value?.setConfig(e.value), t.value?.render());
69
+ }), r(n, () => {
70
+ t.value?.setData(n.value);
71
+ }), s({
74
72
  component: t
75
- }), (e, l) => (B(), L("div", {
76
- "data-vis-leaflet-map": "",
73
+ }), (l, u) => (g(), v("div", {
77
74
  ref_key: "elRef",
78
- ref: a
75
+ ref: o,
76
+ "data-vis-leaflet-map": ""
79
77
  }, null, 512));
80
78
  }
81
79
  });
82
80
  export {
83
- F as VisLeafletMapSelectors,
84
- w as default
81
+ h as VisLeafletMapSelectors,
82
+ k as default
85
83
  };
86
84
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
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\nwatch(data, () => {\n component.value?.setData(data.value)\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":";;;AAiDO,MAAMA,IAAyBC,EAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAxCjD,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,GAEDS,EAAMX,GAAM,MAAM;;AACN,OAAAU,IAAAN,EAAA,UAAA,QAAAM,EAAO,QAAQV,EAAK;AAAA,IAAK,CACpC,GAEYe,EAAA;AAAA,MACX,WAAAX;AAAA,IAAA,CACD;;;;;;;"}
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 type { GenericDataRecord, LeafletMapConfigInterface } from '@unovis/ts'\nimport { LeafletMap } from '@unovis/ts'\nimport { computed, nextTick, onMounted, onUnmounted, ref, watch } from 'vue'\nimport { arePropsEqual, useForwardProps } from '../../utils/props'\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\nonUnmounted(() => {\n component.value?.destroy()\n})\n\nwatch(config, (curr, prev) => {\n if (!arePropsEqual(curr, prev)) {\n component.value?.setConfig(config.value)\n component.value?.render()\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 VisLeafletMapSelectors = LeafletMap.selectors\n</script>\n\n<template>\n <div ref=\"elRef\" data-vis-leaflet-map />\n</template>\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","watch","curr","prev","arePropsEqual","__expose","_createElementBlock"],"mappings":";;;AA+CO,MAAMA,IAAyBC,EAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAtCjD,UAAMC,IAAQC,GAERC,IAAOC,EAAS,MAAMH,EAAM,IAAI,GAEhCI,IAASC,EAAgBL,CAAK,GAG9BM,IAAYC,EAAA,GACZC,IAAQD,EAAA;AAEd,WAAAE,EAAU,MAAM;AACd,MAAAC,EAAS,MAAM;AACb,QAAIF,EAAM,UACRF,EAAU,QAAQ,IAAIP,EAAkBS,EAAM,OAAOJ,EAAO,OAAOF,EAAK,KAAK;AAAA,MACjF,CAAC;AAAA,IACH,CAAC,GAEDS,EAAY,MAAM;AAChB,MAAAL,EAAU,OAAO,QAAA;AAAA,IACnB,CAAC,GAEDM,EAAMR,GAAQ,CAACS,GAAMC,MAAS;AAC5B,MAAKC,EAAcF,GAAMC,CAAI,MAC3BR,EAAU,OAAO,UAAUF,EAAO,KAAK,GACvCE,EAAU,OAAO,OAAA;AAAA,IAErB,CAAC,GAEDM,EAAMV,GAAM,MAAM;AAChB,MAAAI,EAAU,OAAO,QAAQJ,EAAK,KAAK;AAAA,IACrC,CAAC,GAEDc,EAAa;AAAA,MACX,WAAAV;AAAA,IAAA,CACD,mBAQCW,EAAwC,OAAA;AAAA,eAA/B;AAAA,MAAJ,KAAIT;AAAA,MAAQ,wBAAA;AAAA,IAAA;;;"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("@unovis/ts"),i=require("../../utils/props.cjs"),p=c.RollingPinLegend.selectors,f=e.defineComponent({__name:"index",props:{rects:{},leftLabelText:{},rightLabelText:{},labelClassName:{},labelFontSize:{},renderIntoProvidedDomNode:{type:Boolean},data:{}},setup(u,{expose:d}){const r=u;e.computed(()=>r.data);const t=i.useForwardProps(r),o=e.ref(),l=e.ref();return e.onMounted(()=>{e.nextTick(()=>{l.value&&(o.value=new c.RollingPinLegend(l.value,t.value))})}),e.onUnmounted(()=>{var n;(n=o.value)==null||n.destroy()}),e.watch(t,(n,s)=>{var a;i.arePropsEqual(n,s)||(a=o.value)==null||a.setConfig(t.value)}),d({component:o}),(n,s)=>(e.openBlock(),e.createElementBlock("div",{"data-vis-rolling-pin-legend":"",ref_key:"elRef",ref:l},null,512))}});exports.VisRollingPinLegendSelectors=p;exports.default=f;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=require("@unovis/ts"),a=require("../../utils/props.cjs"),d=i.RollingPinLegend.selectors,p=e.defineComponent({__name:"index",props:{rects:{},leftLabelText:{},rightLabelText:{},labelClassName:{},labelFontSize:{},renderIntoProvidedDomNode:{type:Boolean},data:{}},setup(u,{expose:c}){const l=u;e.computed(()=>l.data);const o=a.useForwardProps(l),n=e.ref(),t=e.ref();return e.onMounted(()=>{e.nextTick(()=>{t.value&&(n.value=new i.RollingPinLegend(t.value,o.value))})}),e.onUnmounted(()=>{n.value?.destroy()}),e.watch(o,(r,s)=>{a.arePropsEqual(r,s)||(n.value?.setConfig(o.value),n.value?.render())}),c({component:n}),(r,s)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"elRef",ref:t,"data-vis-rolling-pin-legend":""},null,512))}});exports.VisRollingPinLegendSelectors=d;exports.default=p;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sources":["../../../src/html-components/rolling-pin-legend/index.vue"],"sourcesContent":["<script setup lang=\"ts\" >\n// !!! This code was automatically generated. You should not change it !!!\nimport { RollingPinLegend, RollingPinLegendConfigInterface, RollingPinLegendItem } 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 = RollingPinLegendConfigInterface\nconst props = defineProps<Props & { data?: null }>()\n\nconst data = computed(() => props.data)\n// config\nconst config = useForwardProps(props)\n\n// component declaration\nconst component = ref<RollingPinLegend>()\nconst elRef = ref<HTMLDivElement>()\n\nonMounted(() => {\n nextTick(() => {\n if(elRef.value)\n component.value = new RollingPinLegend(elRef.value, config.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 VisRollingPinLegendSelectors = RollingPinLegend.selectors\n</script>\n\n<template>\n <div data-vis-rolling-pin-legend ref=\"elRef\"/>\n</template>\n\n\n<style>\n [data-vis-rolling-pin-legend] {\n display:block;\n }\n</style>\n"],"names":["VisRollingPinLegendSelectors","RollingPinLegend","props","__props","computed","config","useForwardProps","component","ref","elRef","onMounted","nextTick","onUnmounted","_a","watch","curr","prev","arePropsEqual","__expose"],"mappings":"8LA8CaA,EAA+BC,EAAAA,iBAAiB,0MArC7D,MAAMC,EAAQC,EAEDC,EAAA,SAAS,IAAMF,EAAM,IAAI,EAEhC,MAAAG,EAASC,kBAAgBJ,CAAK,EAG9BK,EAAYC,EAAAA,IAAsB,EAClCC,EAAQD,EAAAA,IAAoB,EAElCE,OAAAA,EAAAA,UAAU,IAAM,CACdC,EAAAA,SAAS,IAAM,CACVF,EAAM,QACTF,EAAU,MAAQ,IAAIN,EAAA,iBAAiBQ,EAAM,MAAOJ,EAAO,KAAK,EAAA,CAGjE,CAAA,CACF,EAEDO,EAAAA,YAAY,IAAM,QAChBC,EAAAN,EAAU,QAAV,MAAAM,EAAiB,SAAQ,CAE1B,EAEKC,EAAAA,MAAAT,EAAQ,CAACU,EAAMC,IAAS,OACvBC,EAAA,cAAcF,EAAMC,CAAI,IACjBH,EAAAN,EAAA,QAAA,MAAAM,EAAO,UAAUR,EAAO,MACpC,CACD,EAGYa,EAAA,CACX,UAAAX,CAAA,CACD"}
1
+ {"version":3,"file":"index.cjs","sources":["../../../src/html-components/rolling-pin-legend/index.vue"],"sourcesContent":["<script setup lang=\"ts\">\n// !!! This code was automatically generated. You should not change it !!!\nimport type { RollingPinLegendConfigInterface } from '@unovis/ts'\nimport { RollingPinLegend } from '@unovis/ts'\nimport { computed, nextTick, onMounted, onUnmounted, ref, watch } from 'vue'\nimport { arePropsEqual, useForwardProps } from '../../utils/props'\n\n// data and required props\ntype Props = RollingPinLegendConfigInterface\nconst props = defineProps<Props & { data?: null }>()\n\nconst data = computed(() => props.data)\n// config\nconst config = useForwardProps(props)\n\n// component declaration\nconst component = ref<RollingPinLegend>()\nconst elRef = ref<HTMLDivElement>()\n\nonMounted(() => {\n nextTick(() => {\n if (elRef.value)\n component.value = new RollingPinLegend(elRef.value, config.value)\n })\n})\n\nonUnmounted(() => {\n component.value?.destroy()\n})\n\nwatch(config, (curr, prev) => {\n if (!arePropsEqual(curr, prev)) {\n component.value?.setConfig(config.value)\n component.value?.render()\n }\n})\n\ndefineExpose({\n component,\n})\n</script>\n\n<script lang=\"ts\">\nexport const VisRollingPinLegendSelectors = RollingPinLegend.selectors\n</script>\n\n<template>\n <div ref=\"elRef\" data-vis-rolling-pin-legend />\n</template>\n\n<style>\n [data-vis-rolling-pin-legend] {\n display:block;\n }\n</style>\n"],"names":["VisRollingPinLegendSelectors","RollingPinLegend","props","__props","computed","config","useForwardProps","component","ref","elRef","onMounted","nextTick","onUnmounted","watch","curr","prev","arePropsEqual","__expose","_createElementBlock"],"mappings":"8LA2CaA,EAA+BC,EAAAA,iBAAiB,0MAlC7D,MAAMC,EAAQC,EAEDC,EAAAA,SAAS,IAAMF,EAAM,IAAI,EAEtC,MAAMG,EAASC,EAAAA,gBAAgBJ,CAAK,EAG9BK,EAAYC,EAAAA,IAAA,EACZC,EAAQD,EAAAA,IAAA,EAEdE,OAAAA,EAAAA,UAAU,IAAM,CACdC,EAAAA,SAAS,IAAM,CACTF,EAAM,QACRF,EAAU,MAAQ,IAAIN,EAAAA,iBAAiBQ,EAAM,MAAOJ,EAAO,KAAK,EACpE,CAAC,CACH,CAAC,EAEDO,EAAAA,YAAY,IAAM,CAChBL,EAAU,OAAO,QAAA,CACnB,CAAC,EAEDM,EAAAA,MAAMR,EAAQ,CAACS,EAAMC,IAAS,CACvBC,EAAAA,cAAcF,EAAMC,CAAI,IAC3BR,EAAU,OAAO,UAAUF,EAAO,KAAK,EACvCE,EAAU,OAAO,OAAA,EAErB,CAAC,EAEDU,EAAa,CACX,UAAAV,CAAA,CACD,wBAQCW,EAAAA,mBAA+C,MAAA,SAAtC,QAAJ,IAAIT,EAAQ,8BAAA,EAAA"}
@@ -1,52 +1,20 @@
1
- import { RollingPinLegend } from '@unovis/ts';
2
- export declare const VisRollingPinLegendSelectors: typeof import("@unovis/ts/dist/components/rolling-pin-legend/style");
3
- declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
- rects: {
5
- type: import("vue").PropType<string[]>;
6
- required: true;
7
- };
8
- leftLabelText: {
9
- type: import("vue").PropType<string>;
10
- };
11
- rightLabelText: {
12
- type: import("vue").PropType<string>;
13
- };
14
- labelClassName: {
15
- type: import("vue").PropType<string>;
16
- };
17
- labelFontSize: {
18
- type: import("vue").PropType<string>;
19
- };
20
- renderIntoProvidedDomNode: {
21
- type: import("vue").PropType<boolean>;
22
- };
23
- data: {
24
- type: import("vue").PropType<never>;
25
- };
26
- }>, {
27
- component: import("vue").Ref<RollingPinLegend, RollingPinLegend>;
28
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
29
- rects: {
30
- type: import("vue").PropType<string[]>;
1
+ import { RollingPinLegendConfigInterface, RollingPinLegend } from '@unovis/ts';
2
+
3
+ export declare const VisRollingPinLegendSelectors: typeof import("@unovis/ts/components/rolling-pin-legend/style");
4
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<RollingPinLegendConfigInterface & {
5
+ data?: null;
6
+ }>>, {
7
+ component: import('vue').Ref<RollingPinLegend, RollingPinLegend>;
8
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<RollingPinLegendConfigInterface & {
9
+ data?: null;
10
+ }>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
11
+ export default _default;
12
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
13
+ type __VLS_TypePropsToRuntimeProps<T> = {
14
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
15
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
16
+ } : {
17
+ type: import('vue').PropType<T[K]>;
31
18
  required: true;
32
19
  };
33
- leftLabelText: {
34
- type: import("vue").PropType<string>;
35
- };
36
- rightLabelText: {
37
- type: import("vue").PropType<string>;
38
- };
39
- labelClassName: {
40
- type: import("vue").PropType<string>;
41
- };
42
- labelFontSize: {
43
- type: import("vue").PropType<string>;
44
- };
45
- renderIntoProvidedDomNode: {
46
- type: import("vue").PropType<boolean>;
47
- };
48
- data: {
49
- type: import("vue").PropType<never>;
50
- };
51
- }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
52
- export default _default;
20
+ };
@@ -1,7 +1,7 @@
1
- import { defineComponent as p, computed as u, ref as s, onMounted as f, nextTick as m, onUnmounted as v, watch as g, createElementBlock as x, openBlock as _ } from "vue";
2
- import { RollingPinLegend as i } from "@unovis/ts";
3
- import { useForwardProps as P, arePropsEqual as b } from "../../utils/props.js";
4
- const h = i.selectors, w = /* @__PURE__ */ p({
1
+ import { defineComponent as d, computed as p, ref as a, onMounted as u, nextTick as f, onUnmounted as m, watch as v, openBlock as g, createElementBlock as x } from "vue";
2
+ import { RollingPinLegend as s } from "@unovis/ts";
3
+ import { useForwardProps as _, arePropsEqual as P } from "../../utils/props.js";
4
+ const R = s.selectors, h = /* @__PURE__ */ d({
5
5
  __name: "index",
6
6
  props: {
7
7
  rects: {},
@@ -12,31 +12,29 @@ const h = i.selectors, w = /* @__PURE__ */ p({
12
12
  renderIntoProvidedDomNode: { type: Boolean },
13
13
  data: {}
14
14
  },
15
- setup(c, { expose: d }) {
16
- const l = c;
17
- u(() => l.data);
18
- const n = P(l), o = s(), t = s();
19
- return f(() => {
20
- m(() => {
21
- t.value && (o.value = new i(t.value, n.value));
15
+ setup(i, { expose: c }) {
16
+ const t = i;
17
+ p(() => t.data);
18
+ const o = _(t), e = a(), n = a();
19
+ return u(() => {
20
+ f(() => {
21
+ n.value && (e.value = new s(n.value, o.value));
22
22
  });
23
- }), v(() => {
24
- var e;
25
- (e = o.value) == null || e.destroy();
26
- }), g(n, (e, r) => {
27
- var a;
28
- b(e, r) || (a = o.value) == null || a.setConfig(n.value);
29
- }), d({
30
- component: o
31
- }), (e, r) => (_(), x("div", {
32
- "data-vis-rolling-pin-legend": "",
23
+ }), m(() => {
24
+ e.value?.destroy();
25
+ }), v(o, (l, r) => {
26
+ P(l, r) || (e.value?.setConfig(o.value), e.value?.render());
27
+ }), c({
28
+ component: e
29
+ }), (l, r) => (g(), x("div", {
33
30
  ref_key: "elRef",
34
- ref: t
31
+ ref: n,
32
+ "data-vis-rolling-pin-legend": ""
35
33
  }, null, 512));
36
34
  }
37
35
  });
38
36
  export {
39
- h as VisRollingPinLegendSelectors,
40
- w as default
37
+ R as VisRollingPinLegendSelectors,
38
+ h as default
41
39
  };
42
40
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../src/html-components/rolling-pin-legend/index.vue"],"sourcesContent":["<script setup lang=\"ts\" >\n// !!! This code was automatically generated. You should not change it !!!\nimport { RollingPinLegend, RollingPinLegendConfigInterface, RollingPinLegendItem } 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 = RollingPinLegendConfigInterface\nconst props = defineProps<Props & { data?: null }>()\n\nconst data = computed(() => props.data)\n// config\nconst config = useForwardProps(props)\n\n// component declaration\nconst component = ref<RollingPinLegend>()\nconst elRef = ref<HTMLDivElement>()\n\nonMounted(() => {\n nextTick(() => {\n if(elRef.value)\n component.value = new RollingPinLegend(elRef.value, config.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 VisRollingPinLegendSelectors = RollingPinLegend.selectors\n</script>\n\n<template>\n <div data-vis-rolling-pin-legend ref=\"elRef\"/>\n</template>\n\n\n<style>\n [data-vis-rolling-pin-legend] {\n display:block;\n }\n</style>\n"],"names":["VisRollingPinLegendSelectors","RollingPinLegend","props","__props","computed","config","useForwardProps","component","ref","elRef","onMounted","nextTick","onUnmounted","_a","watch","curr","prev","arePropsEqual","__expose"],"mappings":";;;AA8CO,MAAMA,IAA+BC,EAAiB;;;;;;;;;;;;AArC7D,UAAMC,IAAQC;AAED,IAAAC,EAAS,MAAMF,EAAM,IAAI;AAEhC,UAAAG,IAASC,EAAgBJ,CAAK,GAG9BK,IAAYC,EAAsB,GAClCC,IAAQD,EAAoB;AAElC,WAAAE,EAAU,MAAM;AACd,MAAAC,EAAS,MAAM;AACb,QAAGF,EAAM,UACTF,EAAU,QAAQ,IAAIN,EAAiBQ,EAAM,OAAOJ,EAAO,KAAK;AAAA,MAAA,CAGjE;AAAA,IAAA,CACF,GAEDO,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
+ {"version":3,"file":"index.js","sources":["../../../src/html-components/rolling-pin-legend/index.vue"],"sourcesContent":["<script setup lang=\"ts\">\n// !!! This code was automatically generated. You should not change it !!!\nimport type { RollingPinLegendConfigInterface } from '@unovis/ts'\nimport { RollingPinLegend } from '@unovis/ts'\nimport { computed, nextTick, onMounted, onUnmounted, ref, watch } from 'vue'\nimport { arePropsEqual, useForwardProps } from '../../utils/props'\n\n// data and required props\ntype Props = RollingPinLegendConfigInterface\nconst props = defineProps<Props & { data?: null }>()\n\nconst data = computed(() => props.data)\n// config\nconst config = useForwardProps(props)\n\n// component declaration\nconst component = ref<RollingPinLegend>()\nconst elRef = ref<HTMLDivElement>()\n\nonMounted(() => {\n nextTick(() => {\n if (elRef.value)\n component.value = new RollingPinLegend(elRef.value, config.value)\n })\n})\n\nonUnmounted(() => {\n component.value?.destroy()\n})\n\nwatch(config, (curr, prev) => {\n if (!arePropsEqual(curr, prev)) {\n component.value?.setConfig(config.value)\n component.value?.render()\n }\n})\n\ndefineExpose({\n component,\n})\n</script>\n\n<script lang=\"ts\">\nexport const VisRollingPinLegendSelectors = RollingPinLegend.selectors\n</script>\n\n<template>\n <div ref=\"elRef\" data-vis-rolling-pin-legend />\n</template>\n\n<style>\n [data-vis-rolling-pin-legend] {\n display:block;\n }\n</style>\n"],"names":["VisRollingPinLegendSelectors","RollingPinLegend","props","__props","computed","config","useForwardProps","component","ref","elRef","onMounted","nextTick","onUnmounted","watch","curr","prev","arePropsEqual","__expose","_createElementBlock"],"mappings":";;;AA2CO,MAAMA,IAA+BC,EAAiB;;;;;;;;;;;;AAlC7D,UAAMC,IAAQC;AAED,IAAAC,EAAS,MAAMF,EAAM,IAAI;AAEtC,UAAMG,IAASC,EAAgBJ,CAAK,GAG9BK,IAAYC,EAAA,GACZC,IAAQD,EAAA;AAEd,WAAAE,EAAU,MAAM;AACd,MAAAC,EAAS,MAAM;AACb,QAAIF,EAAM,UACRF,EAAU,QAAQ,IAAIN,EAAiBQ,EAAM,OAAOJ,EAAO,KAAK;AAAA,MACpE,CAAC;AAAA,IACH,CAAC,GAEDO,EAAY,MAAM;AAChB,MAAAL,EAAU,OAAO,QAAA;AAAA,IACnB,CAAC,GAEDM,EAAMR,GAAQ,CAACS,GAAMC,MAAS;AAC5B,MAAKC,EAAcF,GAAMC,CAAI,MAC3BR,EAAU,OAAO,UAAUF,EAAO,KAAK,GACvCE,EAAU,OAAO,OAAA;AAAA,IAErB,CAAC,GAEDU,EAAa;AAAA,MACX,WAAAV;AAAA,IAAA,CACD,mBAQCW,EAA+C,OAAA;AAAA,eAAtC;AAAA,MAAJ,KAAIT;AAAA,MAAQ,+BAAA;AAAA,IAAA;;;"}
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(".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],[data-vis-flow-legend],[data-vis-rolling-pin-legend]{display:block}")),document.head.appendChild(e)}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}})();
2
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("./containers/xy-container/index.cjs");;exports.VisXYContainer=m.default;exports.VisSingleContainer=M.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=_.default;exports.VisGroupedBarSelectors=_.VisGroupedBarSelectors;exports.VisLine=u.default;exports.VisLineSelectors=u.VisLineSelectors;exports.VisScatter=l.default;exports.VisScatterSelectors=l.VisScatterSelectors;exports.VisStackedBar=n.default;exports.VisStackedBarSelectors=n.VisStackedBarSelectors;exports.VisTimeline=o.default;exports.VisTimelineSelectors=o.VisTimelineSelectors;exports.VisXYLabels=c.default;exports.VisXYLabelsSelectors=c.VisXYLabelsSelectors;exports.VisPlotband=a.default;exports.VisPlotbandSelectors=a.VisPlotbandSelectors;exports.VisPlotline=p.default;exports.VisPlotlineSelectors=p.VisPlotlineSelectors;exports.VisChordDiagram=d.default;exports.VisChordDiagramSelectors=d.VisChordDiagramSelectors;exports.VisDonut=V.default;exports.VisDonutSelectors=V.VisDonutSelectors;exports.VisGraph=S.default;exports.VisGraphSelectors=S.VisGraphSelectors;exports.VisNestedDonut=v.default;exports.VisNestedDonutSelectors=v.VisNestedDonutSelectors;exports.VisSankey=g.default;exports.VisSankeySelectors=g.VisSankeySelectors;exports.VisTopoJSONMap=f.default;exports.VisTopoJSONMapSelectors=f.VisTopoJSONMapSelectors;exports.VisTreemap=q.default;exports.VisTreemapSelectors=q.VisTreemapSelectors;exports.VisTooltip=y.default;exports.VisTooltipSelectors=y.VisTooltipSelectors;exports.VisAnnotations=x.default;exports.VisAnnotationsSelectors=x.VisAnnotationsSelectors;exports.VisLeafletMap=$.default;exports.VisLeafletMapSelectors=$.VisLeafletMapSelectors;exports.VisLeafletFlowMap=L.default;exports.VisLeafletFlowMapSelectors=L.VisLeafletFlowMapSelectors;exports.VisBulletLegend=h.default;exports.VisBulletLegendSelectors=h.VisBulletLegendSelectors;exports.VisFlowLegend=B.default;exports.VisFlowLegendSelectors=B.VisFlowLegendSelectors;exports.VisRollingPinLegend=T.default;exports.VisRollingPinLegendSelectors=T.VisRollingPinLegendSelectors;
1
+ (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode("[data-vis-bullet-legend],[data-vis-flow-legend]{display:block}[data-vis-leaflet-flow-map],[data-vis-leaflet-map]{display:block;position:relative}[data-vis-rolling-pin-legend]{display:block}.unovis-single-container,.unovis-xy-container{display:block;position:relative;width:100%}")),document.head.appendChild(e)}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}})();
2
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./components/annotations/index.cjs"),t=require("./components/area/index.cjs"),s=require("./components/axis/index.cjs"),r=require("./components/boxplot/index.cjs"),i=require("./components/brush/index.cjs"),_=require("./html-components/bullet-legend/index.cjs");;const u=require("./components/chord-diagram/index.cjs"),l=require("./components/crosshair/index.cjs"),o=require("./components/donut/index.cjs"),n=require("./html-components/flow-legend/index.cjs");;const a=require("./components/free-brush/index.cjs"),c=require("./components/graph/index.cjs"),p=require("./components/grouped-bar/index.cjs"),d=require("./components/heatmap/index.cjs"),V=require("./html-components/leaflet-flow-map/index.cjs");;const S=require("./html-components/leaflet-map/index.cjs");;const v=require("./components/line/index.cjs"),g=require("./components/nested-donut/index.cjs"),f=require("./components/plotband/index.cjs"),q=require("./components/plotline/index.cjs"),x=require("./components/radial-bar/index.cjs"),y=require("./html-components/rolling-pin-legend/index.cjs");;const $=require("./components/sankey/index.cjs"),B=require("./components/scatter/index.cjs"),b=require("./containers/single-container/index.cjs");;const L=require("./components/stacked-bar/index.cjs"),h=require("./components/timeline/index.cjs"),m=require("./components/tooltip/index.cjs"),T=require("./components/topojson-map/index.cjs"),M=require("./components/treemap/index.cjs"),A=require("./containers/xy-container/index.cjs");;const P=require("./components/xy-labels/index.cjs");exports.VisAnnotations=e.default;exports.VisAnnotationsSelectors=e.VisAnnotationsSelectors;exports.VisArea=t.default;exports.VisAreaSelectors=t.VisAreaSelectors;exports.VisAxis=s.default;exports.VisAxisSelectors=s.VisAxisSelectors;exports.VisBoxplot=r.default;exports.VisBoxplotSelectors=r.VisBoxplotSelectors;exports.VisBrush=i.default;exports.VisBrushSelectors=i.VisBrushSelectors;exports.VisBulletLegend=_.default;exports.VisBulletLegendSelectors=_.VisBulletLegendSelectors;exports.VisChordDiagram=u.default;exports.VisChordDiagramSelectors=u.VisChordDiagramSelectors;exports.VisCrosshair=l.default;exports.VisCrosshairSelectors=l.VisCrosshairSelectors;exports.VisDonut=o.default;exports.VisDonutSelectors=o.VisDonutSelectors;exports.VisFlowLegend=n.default;exports.VisFlowLegendSelectors=n.VisFlowLegendSelectors;exports.VisFreeBrush=a.default;exports.VisFreeBrushSelectors=a.VisFreeBrushSelectors;exports.VisGraph=c.default;exports.VisGraphSelectors=c.VisGraphSelectors;exports.VisGroupedBar=p.default;exports.VisGroupedBarSelectors=p.VisGroupedBarSelectors;exports.VisHeatmap=d.default;exports.VisHeatmapSelectors=d.VisHeatmapSelectors;exports.VisLeafletFlowMap=V.default;exports.VisLeafletFlowMapSelectors=V.VisLeafletFlowMapSelectors;exports.VisLeafletMap=S.default;exports.VisLeafletMapSelectors=S.VisLeafletMapSelectors;exports.VisLine=v.default;exports.VisLineSelectors=v.VisLineSelectors;exports.VisNestedDonut=g.default;exports.VisNestedDonutSelectors=g.VisNestedDonutSelectors;exports.VisPlotband=f.default;exports.VisPlotbandSelectors=f.VisPlotbandSelectors;exports.VisPlotline=q.default;exports.VisPlotlineSelectors=q.VisPlotlineSelectors;exports.VisRadialBar=x.default;exports.VisRadialBarSelectors=x.VisRadialBarSelectors;exports.VisRollingPinLegend=y.default;exports.VisRollingPinLegendSelectors=y.VisRollingPinLegendSelectors;exports.VisSankey=$.default;exports.VisSankeySelectors=$.VisSankeySelectors;exports.VisScatter=B.default;exports.VisScatterSelectors=B.VisScatterSelectors;exports.VisSingleContainer=b.default;exports.VisStackedBar=L.default;exports.VisStackedBarSelectors=L.VisStackedBarSelectors;exports.VisTimeline=h.default;exports.VisTimelineSelectors=h.VisTimelineSelectors;exports.VisTooltip=m.default;exports.VisTooltipSelectors=m.VisTooltipSelectors;exports.VisTopoJSONMap=T.default;exports.VisTopoJSONMapSelectors=T.VisTopoJSONMapSelectors;exports.VisTreemap=M.default;exports.VisTreemapSelectors=M.VisTreemapSelectors;exports.VisXYContainer=A.default;exports.VisXYLabels=P.default;exports.VisXYLabelsSelectors=P.VisXYLabelsSelectors;
3
3
  //# sourceMappingURL=index.cjs.map
package/index.js CHANGED
@@ -1,96 +1,105 @@
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],[data-vis-flow-legend],[data-vis-rolling-pin-legend]{display:block}")),document.head.appendChild(e)}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}})();
2
- import { default as V } from "./containers/xy-container/index.js";
1
+ (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode("[data-vis-bullet-legend],[data-vis-flow-legend]{display:block}[data-vis-leaflet-flow-map],[data-vis-leaflet-map]{display:block;position:relative}[data-vis-rolling-pin-legend]{display:block}.unovis-single-container,.unovis-xy-container{display:block;position:relative;width:100%}")),document.head.appendChild(e)}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}})();
2
+ import { default as V, VisAnnotationsSelectors as p } from "./components/annotations/index.js";
3
+ import { default as m, VisAreaSelectors as u } from "./components/area/index.js";
4
+ import { default as x, VisAxisSelectors as n } from "./components/axis/index.js";
5
+ import { default as B, VisBoxplotSelectors as L } from "./components/boxplot/index.js";
6
+ import { default as h, VisBrushSelectors as T } from "./components/brush/index.js";
7
+ import { default as C, VisBulletLegendSelectors as D } from "./html-components/bullet-legend/index.js";
3
8
 
4
- import { default as d } from "./containers/single-container/index.js";
5
- /* empty css */
6
- import { default as u, VisAreaSelectors as S } from "./components/area/index.js";
7
- import { default as c, VisAxisSelectors as x } from "./components/axis/index.js";
8
- import { default as g, VisBrushSelectors as h } from "./components/brush/index.js";
9
- import { default as T, VisCrosshairSelectors as A } from "./components/crosshair/index.js";
10
- import { default as D, VisFreeBrushSelectors as F } from "./components/free-brush/index.js";
11
- import { default as P, VisGroupedBarSelectors as b } from "./components/grouped-bar/index.js";
12
- import { default as w, VisLineSelectors as G } from "./components/line/index.js";
13
- import { default as X, VisScatterSelectors as Y } from "./components/scatter/index.js";
14
- import { default as J, VisStackedBarSelectors as O } from "./components/stacked-bar/index.js";
15
- import { default as j, VisTimelineSelectors as q } from "./components/timeline/index.js";
16
- import { default as z, VisXYLabelsSelectors as E } from "./components/xy-labels/index.js";
17
- import { default as I, VisPlotbandSelectors as K } from "./components/plotband/index.js";
18
- import { default as U, VisPlotlineSelectors as W } from "./components/plotline/index.js";
19
- import { default as _, VisChordDiagramSelectors as $ } from "./components/chord-diagram/index.js";
20
- import { default as se, VisDonutSelectors as oe } from "./components/donut/index.js";
21
- import { default as te, VisGraphSelectors as ae } from "./components/graph/index.js";
22
- import { default as le, VisNestedDonutSelectors as fe } from "./components/nested-donut/index.js";
23
- import { default as pe, VisSankeySelectors as de } from "./components/sankey/index.js";
24
- import { default as ue, VisTopoJSONMapSelectors as Se } from "./components/topojson-map/index.js";
25
- import { default as ce, VisTreemapSelectors as xe } from "./components/treemap/index.js";
26
- import { default as ge, VisTooltipSelectors as he } from "./components/tooltip/index.js";
27
- import { default as Te, VisAnnotationsSelectors as Ae } from "./components/annotations/index.js";
28
- import { default as De, VisLeafletMapSelectors as Fe } from "./html-components/leaflet-map/index.js";
29
- /* empty css */
30
- import { default as Pe, VisLeafletFlowMapSelectors as be } from "./html-components/leaflet-flow-map/index.js";
31
- /* empty css */
32
- import { default as we, VisBulletLegendSelectors as Ge } from "./html-components/bullet-legend/index.js";
33
- /* empty css */
34
- import { default as Xe, VisFlowLegendSelectors as Ye } from "./html-components/flow-legend/index.js";
35
- /* empty css */
36
- import { default as Je, VisRollingPinLegendSelectors as Oe } from "./html-components/rolling-pin-legend/index.js";
37
- /* empty css */
9
+ import { default as M, VisChordDiagramSelectors as P } from "./components/chord-diagram/index.js";
10
+ import { default as k, VisCrosshairSelectors as w } from "./components/crosshair/index.js";
11
+ import { default as N, VisDonutSelectors as R } from "./components/donut/index.js";
12
+ import { default as Y, VisFlowLegendSelectors as y } from "./html-components/flow-legend/index.js";
13
+
14
+ import { default as J, VisFreeBrushSelectors as O } from "./components/free-brush/index.js";
15
+ import { default as q, VisGraphSelectors as v } from "./components/graph/index.js";
16
+ import { default as E, VisGroupedBarSelectors as I } from "./components/grouped-bar/index.js";
17
+ import { default as Q, VisHeatmapSelectors as U } from "./components/heatmap/index.js";
18
+ import { default as Z, VisLeafletFlowMapSelectors as _ } from "./html-components/leaflet-flow-map/index.js";
19
+
20
+ import { default as ee, VisLeafletMapSelectors as se } from "./html-components/leaflet-map/index.js";
21
+
22
+ import { default as te, VisLineSelectors as re } from "./components/line/index.js";
23
+ import { default as ie, VisNestedDonutSelectors as le } from "./components/nested-donut/index.js";
24
+ import { default as Ve, VisPlotbandSelectors as pe } from "./components/plotband/index.js";
25
+ import { default as me, VisPlotlineSelectors as ue } from "./components/plotline/index.js";
26
+ import { default as xe, VisRadialBarSelectors as ne } from "./components/radial-bar/index.js";
27
+ import { default as Be, VisRollingPinLegendSelectors as Le } from "./html-components/rolling-pin-legend/index.js";
28
+
29
+ import { default as he, VisSankeySelectors as Te } from "./components/sankey/index.js";
30
+ import { default as Ce, VisScatterSelectors as De } from "./components/scatter/index.js";
31
+ import { default as Me } from "./containers/single-container/index.js";
32
+
33
+ import { default as be, VisStackedBarSelectors as ke } from "./components/stacked-bar/index.js";
34
+ import { default as Ge, VisTimelineSelectors as Ne } from "./components/timeline/index.js";
35
+ import { default as Xe, VisTooltipSelectors as Ye } from "./components/tooltip/index.js";
36
+ import { default as He, VisTopoJSONMapSelectors as Je } from "./components/topojson-map/index.js";
37
+ import { default as je, VisTreemapSelectors as qe } from "./components/treemap/index.js";
38
+ import { default as ze } from "./containers/xy-container/index.js";
39
+
40
+ import { default as Ie, VisXYLabelsSelectors as Ke } from "./components/xy-labels/index.js";
38
41
  export {
39
- Te as VisAnnotations,
40
- Ae as VisAnnotationsSelectors,
41
- u as VisArea,
42
- S as VisAreaSelectors,
43
- c as VisAxis,
44
- x as VisAxisSelectors,
45
- g as VisBrush,
46
- h as VisBrushSelectors,
47
- we as VisBulletLegend,
48
- Ge as VisBulletLegendSelectors,
49
- _ as VisChordDiagram,
50
- $ as VisChordDiagramSelectors,
51
- T as VisCrosshair,
52
- A as VisCrosshairSelectors,
53
- se as VisDonut,
54
- oe as VisDonutSelectors,
55
- Xe as VisFlowLegend,
56
- Ye as VisFlowLegendSelectors,
57
- D as VisFreeBrush,
58
- F as VisFreeBrushSelectors,
59
- te as VisGraph,
60
- ae as VisGraphSelectors,
61
- P as VisGroupedBar,
62
- b as VisGroupedBarSelectors,
63
- Pe as VisLeafletFlowMap,
64
- be as VisLeafletFlowMapSelectors,
65
- De as VisLeafletMap,
66
- Fe as VisLeafletMapSelectors,
67
- w as VisLine,
68
- G as VisLineSelectors,
69
- le as VisNestedDonut,
70
- fe as VisNestedDonutSelectors,
71
- I as VisPlotband,
72
- K as VisPlotbandSelectors,
73
- U as VisPlotline,
74
- W as VisPlotlineSelectors,
75
- Je as VisRollingPinLegend,
76
- Oe as VisRollingPinLegendSelectors,
77
- pe as VisSankey,
78
- de as VisSankeySelectors,
79
- X as VisScatter,
80
- Y as VisScatterSelectors,
81
- d as VisSingleContainer,
82
- J as VisStackedBar,
83
- O as VisStackedBarSelectors,
84
- j as VisTimeline,
85
- q as VisTimelineSelectors,
86
- ge as VisTooltip,
87
- he as VisTooltipSelectors,
88
- ue as VisTopoJSONMap,
89
- Se as VisTopoJSONMapSelectors,
90
- ce as VisTreemap,
91
- xe as VisTreemapSelectors,
92
- V as VisXYContainer,
93
- z as VisXYLabels,
94
- E as VisXYLabelsSelectors
42
+ V as VisAnnotations,
43
+ p as VisAnnotationsSelectors,
44
+ m as VisArea,
45
+ u as VisAreaSelectors,
46
+ x as VisAxis,
47
+ n as VisAxisSelectors,
48
+ B as VisBoxplot,
49
+ L as VisBoxplotSelectors,
50
+ h as VisBrush,
51
+ T as VisBrushSelectors,
52
+ C as VisBulletLegend,
53
+ D as VisBulletLegendSelectors,
54
+ M as VisChordDiagram,
55
+ P as VisChordDiagramSelectors,
56
+ k as VisCrosshair,
57
+ w as VisCrosshairSelectors,
58
+ N as VisDonut,
59
+ R as VisDonutSelectors,
60
+ Y as VisFlowLegend,
61
+ y as VisFlowLegendSelectors,
62
+ J as VisFreeBrush,
63
+ O as VisFreeBrushSelectors,
64
+ q as VisGraph,
65
+ v as VisGraphSelectors,
66
+ E as VisGroupedBar,
67
+ I as VisGroupedBarSelectors,
68
+ Q as VisHeatmap,
69
+ U as VisHeatmapSelectors,
70
+ Z as VisLeafletFlowMap,
71
+ _ as VisLeafletFlowMapSelectors,
72
+ ee as VisLeafletMap,
73
+ se as VisLeafletMapSelectors,
74
+ te as VisLine,
75
+ re as VisLineSelectors,
76
+ ie as VisNestedDonut,
77
+ le as VisNestedDonutSelectors,
78
+ Ve as VisPlotband,
79
+ pe as VisPlotbandSelectors,
80
+ me as VisPlotline,
81
+ ue as VisPlotlineSelectors,
82
+ xe as VisRadialBar,
83
+ ne as VisRadialBarSelectors,
84
+ Be as VisRollingPinLegend,
85
+ Le as VisRollingPinLegendSelectors,
86
+ he as VisSankey,
87
+ Te as VisSankeySelectors,
88
+ Ce as VisScatter,
89
+ De as VisScatterSelectors,
90
+ Me as VisSingleContainer,
91
+ be as VisStackedBar,
92
+ ke as VisStackedBarSelectors,
93
+ Ge as VisTimeline,
94
+ Ne as VisTimelineSelectors,
95
+ Xe as VisTooltip,
96
+ Ye as VisTooltipSelectors,
97
+ He as VisTopoJSONMap,
98
+ Je as VisTopoJSONMapSelectors,
99
+ je as VisTreemap,
100
+ qe as VisTreemapSelectors,
101
+ ze as VisXYContainer,
102
+ Ie as VisXYLabels,
103
+ Ke as VisXYLabelsSelectors
95
104
  };
96
105
  //# sourceMappingURL=index.js.map
package/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/package.json CHANGED
@@ -1,8 +1,8 @@
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.7.0-pre.1",
5
- "packageManager": "npm@10.9.1",
4
+ "version": "1.7.0",
5
+ "packageManager": "pnpm@10.23.0",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "https://github.com/f5/unovis.git",
@@ -45,33 +45,34 @@
45
45
  "type": "module",
46
46
  "sideEffects": false,
47
47
  "scripts": {
48
- "build": "vite build; rm -rf dist/.cache; cp LICENSE README.md package.json ./dist",
48
+ "build": "pnpm check && vite build && rm -rf dist/.cache && cp LICENSE README.md package.json ./dist",
49
49
  "check": "vue-tsc --noEmit",
50
- "generate": "rollup -c ./autogen/rollup.config.js; node .autogen.cjs; rm .autogen.cjs",
50
+ "generate": "tsx ./autogen/index.ts",
51
51
  "publish:dist": "cd ./dist; npm publish",
52
52
  "build:gallery": "vite build --mode gallery",
53
- "gallery": "vite"
53
+ "gallery": "vite",
54
+ "license:check": "pnpm license-report --config=../../lic-report-config.json > licences.md"
54
55
  },
55
56
  "peerDependencies": {
56
- "@unovis/ts": "1.7.0-pre.1",
57
+ "@unovis/ts": "1.7.0",
57
58
  "vue": "^3"
58
59
  },
59
60
  "devDependencies": {
61
+ "@unovis/ts": "workspace:*",
62
+ "@unovis/shared": "workspace:*",
60
63
  "@antfu/eslint-config": "^3.9.1",
61
- "@rollup/plugin-node-resolve": "^13.0.4",
62
64
  "@vitejs/plugin-vue": "^5.2.3",
63
65
  "@vue/tsconfig": "^0.4.0",
66
+ "buffer-from": "^1.1.2",
64
67
  "de-indent": "^1.0.2",
65
68
  "jju": "^1.4.0",
66
- "rollup": "^2.61.1",
67
- "rollup-plugin-commonjs": "^10.1.0",
68
- "rollup-plugin-typescript2": "^0.31.1",
69
+ "tsx": "^4.19.1",
69
70
  "tslib": "^2.3.1",
70
- "typescript": "~4.2.4",
71
- "vite": "^6.2.4",
71
+ "typescript": "catalog:",
72
+ "vite": "catalog:",
72
73
  "vite-plugin-css-injected-by-js": "^3.3.0",
73
74
  "vite-plugin-dts": "^3.5.3",
74
75
  "vue": "^3.5.13",
75
- "vue-tsc": "^1.8.10"
76
+ "vue-tsc": "^2.1.0"
76
77
  }
77
78
  }
@@ -1 +1 @@
1
- {"version":3,"file":"context.cjs","sources":["../../src/utils/context.ts"],"sourcesContent":["import { XYComponentCore, ComponentCore, Tooltip, Crosshair, Axis, Annotations } from '@unovis/ts'\nimport { InjectionKey, Ref } from 'vue'\n\nexport const componentAccessorKey = Symbol('componentAccessorKey') as InjectionKey<{\n data: Ref<any>;\n update: (c: XYComponentCore<any> | ComponentCore<any>) => void;\n destroy: () => void;\n}>\n\nexport const tooltipAccessorKey = Symbol('tooltipAccessorKey') as InjectionKey<{\n data: Ref<any>;\n update: (c: Tooltip) => void;\n destroy: () => void;\n}>\n\nexport const crosshairAccessorKey = Symbol('crosshairAccessorKey') as InjectionKey<{\n data: Ref<any>;\n update: (c: Crosshair<any>) => void;\n destroy: () => void;\n}>\n\nexport const axisAccessorKey = Symbol('axisAccessorKey') as InjectionKey< {\n data: Ref<any>;\n update: (c: Axis<any>) => void;\n destroy: (c: string) => void;\n}>\n\nexport const annotationsAccessorKey = Symbol('annotationsAccessorKey') as InjectionKey<{\n data: Ref<any>;\n update: (c: Annotations) => void;\n destroy: () => void;\n}>\n"],"names":["componentAccessorKey","tooltipAccessorKey","crosshairAccessorKey","axisAccessorKey","annotationsAccessorKey"],"mappings":"gFAGa,MAAAA,EAAuB,OAAO,sBAAsB,EAMpDC,EAAqB,OAAO,oBAAoB,EAMhDC,EAAuB,OAAO,sBAAsB,EAMpDC,EAAkB,OAAO,iBAAiB,EAM1CC,EAAyB,OAAO,wBAAwB"}
1
+ {"version":3,"file":"context.cjs","sources":["../../src/utils/context.ts"],"sourcesContent":["import { XYComponentCore, ComponentCore, Tooltip, Crosshair, Axis, Annotations } from '@unovis/ts'\nimport { InjectionKey, Ref } from 'vue'\n\nexport const componentAccessorKey = Symbol('componentAccessorKey') as InjectionKey<{\n data: Ref<any>;\n update: (c: XYComponentCore<any> | ComponentCore<any>) => void;\n destroy: () => void;\n}>\n\nexport const tooltipAccessorKey = Symbol('tooltipAccessorKey') as InjectionKey<{\n data: Ref<any>;\n update: (c: Tooltip) => void;\n destroy: () => void;\n}>\n\nexport const crosshairAccessorKey = Symbol('crosshairAccessorKey') as InjectionKey<{\n data: Ref<any>;\n update: (c: Crosshair<any>) => void;\n destroy: () => void;\n}>\n\nexport const axisAccessorKey = Symbol('axisAccessorKey') as InjectionKey< {\n data: Ref<any>;\n update: (c: Axis<any>) => void;\n destroy: (c: string) => void;\n}>\n\nexport const annotationsAccessorKey = Symbol('annotationsAccessorKey') as InjectionKey<{\n data: Ref<any>;\n update: (c: Annotations) => void;\n destroy: () => void;\n}>\n"],"names":["componentAccessorKey","tooltipAccessorKey","crosshairAccessorKey","axisAccessorKey","annotationsAccessorKey"],"mappings":"gFAGO,MAAMA,SAA8B,sBAAsB,EAMpDC,SAA4B,oBAAoB,EAMhDC,SAA8B,sBAAsB,EAMpDC,SAAyB,iBAAiB,EAM1CC,SAAgC,wBAAwB"}