@unovis/vue 1.3.0-alpha.0 → 1.3.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (243) hide show
  1. package/components/area/index.cjs +2 -0
  2. package/components/area/index.cjs.map +1 -0
  3. package/components/area/index.js +44 -0
  4. package/components/area/index.js.map +1 -0
  5. package/components/area/index2.cjs +2 -0
  6. package/components/area/index2.cjs.map +1 -0
  7. package/components/area/index2.js +5 -0
  8. package/components/area/index2.js.map +1 -0
  9. package/components/axis/index.cjs +2 -0
  10. package/components/axis/index.cjs.map +1 -0
  11. package/components/axis/index.js +62 -0
  12. package/components/axis/index.js.map +1 -0
  13. package/components/axis/index2.cjs +2 -0
  14. package/components/axis/index2.cjs.map +1 -0
  15. package/components/axis/index2.js +5 -0
  16. package/components/axis/index2.js.map +1 -0
  17. package/components/brush/index.cjs +2 -0
  18. package/components/brush/index.cjs.map +1 -0
  19. package/components/brush/index.js +48 -0
  20. package/components/brush/index.js.map +1 -0
  21. package/components/brush/index2.cjs +2 -0
  22. package/components/brush/index2.cjs.map +1 -0
  23. package/components/brush/index2.js +5 -0
  24. package/components/brush/index2.js.map +1 -0
  25. package/components/chord-diagram/index.cjs +2 -0
  26. package/components/chord-diagram/index.cjs.map +1 -0
  27. package/components/chord-diagram/index.js +46 -0
  28. package/components/chord-diagram/index.js.map +1 -0
  29. package/components/chord-diagram/index2.cjs +2 -0
  30. package/components/chord-diagram/index2.cjs.map +1 -0
  31. package/components/chord-diagram/index2.js +5 -0
  32. package/components/chord-diagram/index2.js.map +1 -0
  33. package/components/crosshair/index.cjs +2 -0
  34. package/components/crosshair/index.cjs.map +1 -0
  35. package/components/crosshair/index.js +47 -0
  36. package/components/crosshair/index.js.map +1 -0
  37. package/components/crosshair/index2.cjs +2 -0
  38. package/components/crosshair/index2.cjs.map +1 -0
  39. package/components/crosshair/index2.js +5 -0
  40. package/components/crosshair/index2.js.map +1 -0
  41. package/components/donut/index.cjs +2 -0
  42. package/components/donut/index.cjs.map +1 -0
  43. package/components/donut/index.js +48 -0
  44. package/components/donut/index.js.map +1 -0
  45. package/components/donut/index2.cjs +2 -0
  46. package/components/donut/index2.cjs.map +1 -0
  47. package/components/donut/index2.js +5 -0
  48. package/components/donut/index2.js.map +1 -0
  49. package/components/free-brush/index.cjs +2 -0
  50. package/components/free-brush/index.cjs.map +1 -0
  51. package/components/free-brush/index.js +48 -0
  52. package/components/free-brush/index.js.map +1 -0
  53. package/components/free-brush/index2.cjs +2 -0
  54. package/components/free-brush/index2.cjs.map +1 -0
  55. package/components/free-brush/index2.js +5 -0
  56. package/components/free-brush/index2.js.map +1 -0
  57. package/components/graph/index.cjs +2 -0
  58. package/components/graph/index.cjs.map +1 -0
  59. package/components/graph/index.js +93 -0
  60. package/components/graph/index.js.map +1 -0
  61. package/components/graph/index2.cjs +2 -0
  62. package/components/graph/index2.cjs.map +1 -0
  63. package/components/graph/index2.js +5 -0
  64. package/components/graph/index2.js.map +1 -0
  65. package/components/grouped-bar/index.cjs +2 -0
  66. package/components/grouped-bar/index.cjs.map +1 -0
  67. package/components/grouped-bar/index.js +48 -0
  68. package/components/grouped-bar/index.js.map +1 -0
  69. package/components/grouped-bar/index2.cjs +2 -0
  70. package/components/grouped-bar/index2.cjs.map +1 -0
  71. package/components/grouped-bar/index2.js +5 -0
  72. package/components/grouped-bar/index2.js.map +1 -0
  73. package/components/line/index.cjs +2 -0
  74. package/components/line/index.cjs.map +1 -0
  75. package/components/line/index.js +45 -0
  76. package/components/line/index.js.map +1 -0
  77. package/components/line/index2.cjs +2 -0
  78. package/components/line/index2.cjs.map +1 -0
  79. package/components/line/index2.js +5 -0
  80. package/components/line/index2.js.map +1 -0
  81. package/components/nested-donut/index.cjs +2 -0
  82. package/components/nested-donut/index.cjs.map +1 -0
  83. package/components/nested-donut/index.js +50 -0
  84. package/components/nested-donut/index.js.map +1 -0
  85. package/components/nested-donut/index2.cjs +2 -0
  86. package/components/nested-donut/index2.cjs.map +1 -0
  87. package/components/nested-donut/index2.js +5 -0
  88. package/components/nested-donut/index2.js.map +1 -0
  89. package/components/sankey/index.cjs +2 -0
  90. package/components/sankey/index.cjs.map +1 -0
  91. package/components/sankey/index.js +76 -0
  92. package/components/sankey/index.js.map +1 -0
  93. package/components/sankey/index2.cjs +2 -0
  94. package/components/sankey/index2.cjs.map +1 -0
  95. package/components/sankey/index2.js +5 -0
  96. package/components/sankey/index2.js.map +1 -0
  97. package/components/scatter/index.cjs +2 -0
  98. package/components/scatter/index.cjs.map +1 -0
  99. package/components/scatter/index.js +51 -0
  100. package/components/scatter/index.js.map +1 -0
  101. package/components/scatter/index2.cjs +2 -0
  102. package/components/scatter/index2.cjs.map +1 -0
  103. package/components/scatter/index2.js +5 -0
  104. package/components/scatter/index2.js.map +1 -0
  105. package/components/stacked-bar/index.cjs +2 -0
  106. package/components/stacked-bar/index.cjs.map +1 -0
  107. package/components/stacked-bar/index.js +48 -0
  108. package/components/stacked-bar/index.js.map +1 -0
  109. package/components/stacked-bar/index2.cjs +2 -0
  110. package/components/stacked-bar/index2.cjs.map +1 -0
  111. package/components/stacked-bar/index2.js +5 -0
  112. package/components/stacked-bar/index2.js.map +1 -0
  113. package/components/timeline/index.cjs +2 -0
  114. package/components/timeline/index.cjs.map +1 -0
  115. package/components/timeline/index.js +51 -0
  116. package/components/timeline/index.js.map +1 -0
  117. package/components/timeline/index2.cjs +2 -0
  118. package/components/timeline/index2.cjs.map +1 -0
  119. package/components/timeline/index2.js +5 -0
  120. package/components/timeline/index2.js.map +1 -0
  121. package/components/tooltip/index.cjs +2 -0
  122. package/components/tooltip/index.cjs.map +1 -0
  123. package/components/tooltip/index.js +36 -0
  124. package/components/tooltip/index.js.map +1 -0
  125. package/components/tooltip/index2.cjs +2 -0
  126. package/components/tooltip/index2.cjs.map +1 -0
  127. package/components/tooltip/index2.js +5 -0
  128. package/components/tooltip/index2.js.map +1 -0
  129. package/components/topojson-map/index.cjs +2 -0
  130. package/components/topojson-map/index.cjs.map +1 -0
  131. package/components/topojson-map/index.js +62 -0
  132. package/components/topojson-map/index.js.map +1 -0
  133. package/components/topojson-map/index2.cjs +2 -0
  134. package/components/topojson-map/index2.cjs.map +1 -0
  135. package/components/topojson-map/index2.js +5 -0
  136. package/components/topojson-map/index2.js.map +1 -0
  137. package/components/xy-labels/index.cjs +2 -0
  138. package/components/xy-labels/index.cjs.map +1 -0
  139. package/components/xy-labels/index.js +52 -0
  140. package/components/xy-labels/index.js.map +1 -0
  141. package/components/xy-labels/index2.cjs +2 -0
  142. package/components/xy-labels/index2.cjs.map +1 -0
  143. package/components/xy-labels/index2.js +5 -0
  144. package/components/xy-labels/index2.js.map +1 -0
  145. package/components.d.ts +21 -21
  146. package/containers/single-container/index.cjs +2 -0
  147. package/containers/single-container/index.cjs.map +1 -0
  148. package/containers/single-container/index.js +64 -0
  149. package/containers/single-container/index.js.map +1 -0
  150. package/containers/single-container/index2.cjs +2 -0
  151. package/containers/single-container/index2.cjs.map +1 -0
  152. package/containers/single-container/index2.js +5 -0
  153. package/containers/single-container/index2.js.map +1 -0
  154. package/containers/single-container/index3.cjs +2 -0
  155. package/containers/single-container/index3.cjs.map +1 -0
  156. package/containers/single-container/index3.js +6 -0
  157. package/containers/single-container/index3.js.map +1 -0
  158. package/containers/xy-container/index.cjs +2 -0
  159. package/containers/xy-container/index.cjs.map +1 -0
  160. package/containers/xy-container/index.js +103 -0
  161. package/containers/xy-container/index.js.map +1 -0
  162. package/containers/xy-container/index2.cjs +2 -0
  163. package/containers/xy-container/index2.cjs.map +1 -0
  164. package/containers/xy-container/index2.js +5 -0
  165. package/containers/xy-container/index2.js.map +1 -0
  166. package/containers/xy-container/index3.cjs +2 -0
  167. package/containers/xy-container/index3.cjs.map +1 -0
  168. package/containers/xy-container/index3.js +6 -0
  169. package/containers/xy-container/index3.js.map +1 -0
  170. package/containers.d.ts +2 -2
  171. package/html-components/bullet-legend/index.cjs +2 -0
  172. package/html-components/bullet-legend/index.cjs.map +1 -0
  173. package/html-components/bullet-legend/index.js +39 -0
  174. package/html-components/bullet-legend/index.js.map +1 -0
  175. package/html-components/bullet-legend/index2.cjs +2 -0
  176. package/html-components/bullet-legend/index2.cjs.map +1 -0
  177. package/html-components/bullet-legend/index2.js +5 -0
  178. package/html-components/bullet-legend/index2.js.map +1 -0
  179. package/html-components/bullet-legend/index3.cjs +2 -0
  180. package/html-components/bullet-legend/index3.cjs.map +1 -0
  181. package/html-components/bullet-legend/index3.js +6 -0
  182. package/html-components/bullet-legend/index3.js.map +1 -0
  183. package/html-components/leaflet-flow-map/index.cjs +2 -0
  184. package/html-components/leaflet-flow-map/index.cjs.map +1 -0
  185. package/html-components/leaflet-flow-map/index.js +93 -0
  186. package/html-components/leaflet-flow-map/index.js.map +1 -0
  187. package/html-components/leaflet-flow-map/index2.cjs +2 -0
  188. package/html-components/leaflet-flow-map/index2.cjs.map +1 -0
  189. package/html-components/leaflet-flow-map/index2.js +5 -0
  190. package/html-components/leaflet-flow-map/index2.js.map +1 -0
  191. package/html-components/leaflet-flow-map/index3.cjs +2 -0
  192. package/html-components/leaflet-flow-map/index3.cjs.map +1 -0
  193. package/html-components/leaflet-flow-map/index3.js +6 -0
  194. package/html-components/leaflet-flow-map/index3.js.map +1 -0
  195. package/html-components/leaflet-map/index.cjs +2 -0
  196. package/html-components/leaflet-map/index.cjs.map +1 -0
  197. package/html-components/leaflet-map/index.js +80 -0
  198. package/html-components/leaflet-map/index.js.map +1 -0
  199. package/html-components/leaflet-map/index2.cjs +2 -0
  200. package/html-components/leaflet-map/index2.cjs.map +1 -0
  201. package/html-components/leaflet-map/index2.js +5 -0
  202. package/html-components/leaflet-map/index2.js.map +1 -0
  203. package/html-components/leaflet-map/index3.cjs +2 -0
  204. package/html-components/leaflet-map/index3.cjs.map +1 -0
  205. package/html-components/leaflet-map/index3.js +6 -0
  206. package/html-components/leaflet-map/index3.js.map +1 -0
  207. package/index.cjs +3 -0
  208. package/index.cjs.map +1 -0
  209. package/index.js +53 -1171
  210. package/index.js.map +1 -0
  211. package/package.json +15 -9
  212. package/utils/context.cjs +2 -0
  213. package/utils/context.cjs.map +1 -0
  214. package/utils/context.js +8 -0
  215. package/utils/context.js.map +1 -0
  216. package/utils/props.cjs +2 -0
  217. package/utils/props.cjs.map +1 -0
  218. package/utils/props.js +15 -0
  219. package/utils/props.js.map +1 -0
  220. package/index.umd.cjs +0 -2
  221. /package/components/area/{area.d.ts → index.d.ts} +0 -0
  222. /package/components/axis/{axis.d.ts → index.d.ts} +0 -0
  223. /package/components/brush/{brush.d.ts → index.d.ts} +0 -0
  224. /package/components/chord-diagram/{chord-diagram.d.ts → index.d.ts} +0 -0
  225. /package/components/crosshair/{crosshair.d.ts → index.d.ts} +0 -0
  226. /package/components/donut/{donut.d.ts → index.d.ts} +0 -0
  227. /package/components/free-brush/{free-brush.d.ts → index.d.ts} +0 -0
  228. /package/components/graph/{graph.d.ts → index.d.ts} +0 -0
  229. /package/components/grouped-bar/{grouped-bar.d.ts → index.d.ts} +0 -0
  230. /package/components/line/{line.d.ts → index.d.ts} +0 -0
  231. /package/components/nested-donut/{nested-donut.d.ts → index.d.ts} +0 -0
  232. /package/components/sankey/{sankey.d.ts → index.d.ts} +0 -0
  233. /package/components/scatter/{scatter.d.ts → index.d.ts} +0 -0
  234. /package/components/stacked-bar/{stacked-bar.d.ts → index.d.ts} +0 -0
  235. /package/components/timeline/{timeline.d.ts → index.d.ts} +0 -0
  236. /package/components/tooltip/{tooltip.d.ts → index.d.ts} +0 -0
  237. /package/components/topojson-map/{topojson-map.d.ts → index.d.ts} +0 -0
  238. /package/components/xy-labels/{xy-labels.d.ts → index.d.ts} +0 -0
  239. /package/containers/single-container/{single-container.d.ts → index.d.ts} +0 -0
  240. /package/containers/xy-container/{xy-container.d.ts → index.d.ts} +0 -0
  241. /package/html-components/bullet-legend/{bullet-legend.d.ts → index.d.ts} +0 -0
  242. /package/html-components/leaflet-flow-map/{leaflet-flow-map.d.ts → index.d.ts} +0 -0
  243. /package/html-components/leaflet-map/{leaflet-map.d.ts → index.d.ts} +0 -0
@@ -0,0 +1,5 @@
1
+ import f from "./index.js";
2
+ export {
3
+ f as default
4
+ };
5
+ //# sourceMappingURL=index2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1,2 @@
1
+ "use strict";const n=require("vue"),y=require("@unovis/ts"),l=require("../../utils/props.cjs"),d=require("../../utils/context.cjs"),F={"data-vis-component":""},g=n.defineComponent({__name:"index",props:{y:{type:[Function,Number,null]},xPositioning:{type:[Function,null]},yPositioning:{type:[Function,null]},labelFontSize:{type:[Function,Number,null]},label:{type:[Function,String,null]},backgroundColor:{type:[Function,String,Array,null]},cursor:{type:[Function,String,null]},labelTextBrightnessRatio:{},clustering:{type:Boolean},clusterLabel:{type:[Function,String,null]},clusterFontSize:{type:[Function,Number,null]},clusterBackgroundColor:{type:[Function,String,Array,null]},clusterCursor:{type:[Function,String,null]},clusterLabelColor:{type:[Function,String,Array,null]},x:{type:[Function,Number,null]},id:{type:Function},color:{type:[Function,String,Array,null]},xScale:{type:[Object,Function]},yScale:{type:[Object,Function]},excludeFromDomainCalculation:{type:Boolean},duration:{},events:{},attributes:{},data:{}},setup(i){const a=i,o=n.inject(d.componentAccessorKey),s=n.computed(()=>o.data.value),p=n.getCurrentInstance(),u=n.computed(()=>l.parseProps(a,p)),e=n.ref();return n.onMounted(()=>{n.nextTick(()=>{var t;e.value=new y.XYLabels(u.value),(t=e.value)==null||t.setData(s.value),o.update(e.value)})}),n.onUnmounted(()=>{var t;(t=e.value)==null||t.destroy(),o.destroy()}),n.watch(u,(t,c)=>{var r;l.arePropsEqual(t,c)||((r=e.value)==null||r.setConfig(u.value),o.update(e.value))}),(t,c)=>(n.openBlock(),n.createElementBlock("div",F))}});module.exports=g;
2
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sources":["../../../src/components/xy-labels/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 { XYLabels, XYLabelsConfigInterface, NumericAccessor } from '@unovis/ts'\nimport { onMounted, onUnmounted, computed, ref, watch, getCurrentInstance, nextTick, inject } from 'vue'\nimport { arePropsEqual, parseProps } from '../../utils/props'\nimport { componentAccessorKey } from '../../utils/context'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'index',\n props: {\n y: { type: [Function, Number, null] },\n xPositioning: { type: [Function, null] },\n yPositioning: { type: [Function, null] },\n labelFontSize: { type: [Function, Number, null] },\n label: { type: [Function, String, null] },\n backgroundColor: { type: [Function, String, Array, null] },\n cursor: { type: [Function, String, null] },\n labelTextBrightnessRatio: {},\n clustering: { type: Boolean },\n clusterLabel: { type: [Function, String, null] },\n clusterFontSize: { type: [Function, Number, null] },\n clusterBackgroundColor: { type: [Function, String, Array, null] },\n clusterCursor: { type: [Function, String, null] },\n clusterLabelColor: { type: [Function, String, Array, null] },\n x: { type: [Function, Number, null] },\n id: { type: Function },\n color: { type: [Function, String, Array, null] },\n xScale: { type: [Object, Function] },\n yScale: { type: [Object, Function] },\n excludeFromDomainCalculation: { type: Boolean },\n duration: {},\n events: {},\n attributes: {},\n data: {}\n },\n setup(__props: any) {\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\nconst data = computed(() => accessor.data.value)\n// config\nconst instance = getCurrentInstance()\nconst config = computed(() => parseProps(props, instance))\n\n// component declaration\nconst component = ref<XYLabels<Datum>>()\n\n\nonMounted(() => {\n nextTick(() => {\n component.value = new XYLabels<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 accessor.update(component.value)\n }\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","props","accessor","inject","componentAccessorKey","data","computed","instance","getCurrentInstance","config","parseProps","component","ref","onMounted","nextTick","XYLabels","_a","onUnmounted","watch","curr","prev","arePropsEqual","_ctx","_cache","_openBlock","_createElementBlock"],"mappings":"oIAGMA,EAAa,CAAE,qBAAsB,IAQfC,EAAiBC,kBAAA,CAC3C,OAAQ,QACR,MAAO,CACL,EAAG,CAAE,KAAM,CAAC,SAAU,OAAQ,IAAI,CAAE,EACpC,aAAc,CAAE,KAAM,CAAC,SAAU,IAAI,CAAE,EACvC,aAAc,CAAE,KAAM,CAAC,SAAU,IAAI,CAAE,EACvC,cAAe,CAAE,KAAM,CAAC,SAAU,OAAQ,IAAI,CAAE,EAChD,MAAO,CAAE,KAAM,CAAC,SAAU,OAAQ,IAAI,CAAE,EACxC,gBAAiB,CAAE,KAAM,CAAC,SAAU,OAAQ,MAAO,IAAI,CAAE,EACzD,OAAQ,CAAE,KAAM,CAAC,SAAU,OAAQ,IAAI,CAAE,EACzC,yBAA0B,CAAC,EAC3B,WAAY,CAAE,KAAM,OAAQ,EAC5B,aAAc,CAAE,KAAM,CAAC,SAAU,OAAQ,IAAI,CAAE,EAC/C,gBAAiB,CAAE,KAAM,CAAC,SAAU,OAAQ,IAAI,CAAE,EAClD,uBAAwB,CAAE,KAAM,CAAC,SAAU,OAAQ,MAAO,IAAI,CAAE,EAChE,cAAe,CAAE,KAAM,CAAC,SAAU,OAAQ,IAAI,CAAE,EAChD,kBAAmB,CAAE,KAAM,CAAC,SAAU,OAAQ,MAAO,IAAI,CAAE,EAC3D,EAAG,CAAE,KAAM,CAAC,SAAU,OAAQ,IAAI,CAAE,EACpC,GAAI,CAAE,KAAM,QAAS,EACrB,MAAO,CAAE,KAAM,CAAC,SAAU,OAAQ,MAAO,IAAI,CAAE,EAC/C,OAAQ,CAAE,KAAM,CAAC,OAAQ,QAAQ,CAAE,EACnC,OAAQ,CAAE,KAAM,CAAC,OAAQ,QAAQ,CAAE,EACnC,6BAA8B,CAAE,KAAM,OAAQ,EAC9C,SAAU,CAAC,EACX,OAAQ,CAAC,EACT,WAAY,CAAC,EACb,KAAM,CAAC,CACT,EACA,MAAMC,EAAc,CAEtB,MAAMC,EAAQD,EAGRE,EAAWC,SAAOC,EAAAA,oBAAoB,EAItCC,EAAOC,EAAAA,SAAS,IAAMJ,EAAS,KAAK,KAAK,EAEzCK,EAAWC,EAAAA,qBACXC,EAASH,EAAAA,SAAS,IAAMI,EAAW,WAAAT,EAAOM,CAAQ,CAAC,EAGnDI,EAAYC,EAAAA,MAGlBC,OAAAA,EAAAA,UAAU,IAAM,CACdC,EAAAA,SAAS,IAAM,OACbH,EAAU,MAAQ,IAAII,EAAgB,SAAAN,EAAO,KAAK,GACxCO,EAAAL,EAAA,QAAA,MAAAK,EAAO,QAAQX,EAAK,OACrBH,EAAA,OAAOS,EAAU,KAAK,CAAA,CAChC,CAAA,CACF,EAEDM,EAAAA,YAAY,IAAM,QAChBD,EAAAL,EAAU,QAAV,MAAAK,EAAiB,UACjBd,EAAS,QAAQ,CAAA,CAClB,EAEKgB,EAAAA,MAAAT,EAAQ,CAACU,EAAMC,IAAS,OACvBC,EAAA,cAAcF,EAAMC,CAAI,KACjBJ,EAAAL,EAAA,QAAA,MAAAK,EAAO,UAAUP,EAAO,OACzBP,EAAA,OAAOS,EAAU,KAAK,EACjC,CACD,EAEM,CAACW,EAAUC,KACRC,EAAW,UAAA,EAAGC,EAAAA,mBAAoB,MAAO5B,CAAU,EAE7D,CAEA,CAAC"}
@@ -0,0 +1,52 @@
1
+ import { defineComponent as p, inject as y, computed as r, getCurrentInstance as m, ref as d, onMounted as F, nextTick as g, onUnmounted as b, watch as v, openBlock as S, createElementBlock as f } from "vue";
2
+ import { XYLabels as x } from "@unovis/ts";
3
+ import { parseProps as C, arePropsEqual as _ } from "../../utils/props.js";
4
+ import { componentAccessorKey as B } from "../../utils/context.js";
5
+ const k = { "data-vis-component": "" }, j = /* @__PURE__ */ p({
6
+ __name: "index",
7
+ props: {
8
+ y: { type: [Function, Number, null] },
9
+ xPositioning: { type: [Function, null] },
10
+ yPositioning: { type: [Function, null] },
11
+ labelFontSize: { type: [Function, Number, null] },
12
+ label: { type: [Function, String, null] },
13
+ backgroundColor: { type: [Function, String, Array, null] },
14
+ cursor: { type: [Function, String, null] },
15
+ labelTextBrightnessRatio: {},
16
+ clustering: { type: Boolean },
17
+ clusterLabel: { type: [Function, String, null] },
18
+ clusterFontSize: { type: [Function, Number, null] },
19
+ clusterBackgroundColor: { type: [Function, String, Array, null] },
20
+ clusterCursor: { type: [Function, String, null] },
21
+ clusterLabelColor: { type: [Function, String, Array, null] },
22
+ x: { type: [Function, Number, null] },
23
+ id: { type: Function },
24
+ color: { type: [Function, String, Array, null] },
25
+ xScale: { type: [Object, Function] },
26
+ yScale: { type: [Object, Function] },
27
+ excludeFromDomainCalculation: { type: Boolean },
28
+ duration: {},
29
+ events: {},
30
+ attributes: {},
31
+ data: {}
32
+ },
33
+ setup(c) {
34
+ const a = c, e = y(B), i = r(() => e.data.value), s = m(), o = r(() => C(a, s)), t = d();
35
+ return F(() => {
36
+ g(() => {
37
+ var n;
38
+ t.value = new x(o.value), (n = t.value) == null || n.setData(i.value), e.update(t.value);
39
+ });
40
+ }), b(() => {
41
+ var n;
42
+ (n = t.value) == null || n.destroy(), e.destroy();
43
+ }), v(o, (n, u) => {
44
+ var l;
45
+ _(n, u) || ((l = t.value) == null || l.setConfig(o.value), e.update(t.value));
46
+ }), (n, u) => (S(), f("div", k));
47
+ }
48
+ });
49
+ export {
50
+ j as default
51
+ };
52
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../src/components/xy-labels/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 { XYLabels, XYLabelsConfigInterface, NumericAccessor } from '@unovis/ts'\nimport { onMounted, onUnmounted, computed, ref, watch, getCurrentInstance, nextTick, inject } from 'vue'\nimport { arePropsEqual, parseProps } from '../../utils/props'\nimport { componentAccessorKey } from '../../utils/context'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'index',\n props: {\n y: { type: [Function, Number, null] },\n xPositioning: { type: [Function, null] },\n yPositioning: { type: [Function, null] },\n labelFontSize: { type: [Function, Number, null] },\n label: { type: [Function, String, null] },\n backgroundColor: { type: [Function, String, Array, null] },\n cursor: { type: [Function, String, null] },\n labelTextBrightnessRatio: {},\n clustering: { type: Boolean },\n clusterLabel: { type: [Function, String, null] },\n clusterFontSize: { type: [Function, Number, null] },\n clusterBackgroundColor: { type: [Function, String, Array, null] },\n clusterCursor: { type: [Function, String, null] },\n clusterLabelColor: { type: [Function, String, Array, null] },\n x: { type: [Function, Number, null] },\n id: { type: Function },\n color: { type: [Function, String, Array, null] },\n xScale: { type: [Object, Function] },\n yScale: { type: [Object, Function] },\n excludeFromDomainCalculation: { type: Boolean },\n duration: {},\n events: {},\n attributes: {},\n data: {}\n },\n setup(__props: any) {\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\nconst data = computed(() => accessor.data.value)\n// config\nconst instance = getCurrentInstance()\nconst config = computed(() => parseProps(props, instance))\n\n// component declaration\nconst component = ref<XYLabels<Datum>>()\n\n\nonMounted(() => {\n nextTick(() => {\n component.value = new XYLabels<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 accessor.update(component.value)\n }\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","props","accessor","inject","componentAccessorKey","data","computed","instance","getCurrentInstance","config","parseProps","component","ref","onMounted","nextTick","XYLabels","_a","onUnmounted","watch","curr","prev","arePropsEqual","_ctx","_cache","_openBlock","_createElementBlock"],"mappings":";;;;AAGA,MAAMA,IAAa,EAAE,sBAAsB,MAQfC,IAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,GAAG,EAAE,MAAM,CAAC,UAAU,QAAQ,IAAI,EAAE;AAAA,IACpC,cAAc,EAAE,MAAM,CAAC,UAAU,IAAI,EAAE;AAAA,IACvC,cAAc,EAAE,MAAM,CAAC,UAAU,IAAI,EAAE;AAAA,IACvC,eAAe,EAAE,MAAM,CAAC,UAAU,QAAQ,IAAI,EAAE;AAAA,IAChD,OAAO,EAAE,MAAM,CAAC,UAAU,QAAQ,IAAI,EAAE;AAAA,IACxC,iBAAiB,EAAE,MAAM,CAAC,UAAU,QAAQ,OAAO,IAAI,EAAE;AAAA,IACzD,QAAQ,EAAE,MAAM,CAAC,UAAU,QAAQ,IAAI,EAAE;AAAA,IACzC,0BAA0B,CAAC;AAAA,IAC3B,YAAY,EAAE,MAAM,QAAQ;AAAA,IAC5B,cAAc,EAAE,MAAM,CAAC,UAAU,QAAQ,IAAI,EAAE;AAAA,IAC/C,iBAAiB,EAAE,MAAM,CAAC,UAAU,QAAQ,IAAI,EAAE;AAAA,IAClD,wBAAwB,EAAE,MAAM,CAAC,UAAU,QAAQ,OAAO,IAAI,EAAE;AAAA,IAChE,eAAe,EAAE,MAAM,CAAC,UAAU,QAAQ,IAAI,EAAE;AAAA,IAChD,mBAAmB,EAAE,MAAM,CAAC,UAA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;AAAA,EAE7D;AAEA,CAAC;"}
@@ -0,0 +1,2 @@
1
+ "use strict";const e=require("./index.cjs");module.exports=e;
2
+ //# sourceMappingURL=index2.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index2.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ import f from "./index.js";
2
+ export {
3
+ f as default
4
+ };
5
+ //# sourceMappingURL=index2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
package/components.d.ts CHANGED
@@ -1,21 +1,21 @@
1
- export { default as VisLine } from "./components/line/line";
2
- export { default as VisArea } from "./components/area/area";
3
- export { default as VisAxis } from "./components/axis/axis";
4
- export { default as VisBrush } from "./components/brush/brush";
5
- export { default as VisFreeBrush } from "./components/free-brush/free-brush";
6
- export { default as VisCrosshair } from "./components/crosshair/crosshair";
7
- export { default as VisGroupedBar } from "./components/grouped-bar/grouped-bar";
8
- export { default as VisScatter } from "./components/scatter/scatter";
9
- export { default as VisStackedBar } from "./components/stacked-bar/stacked-bar";
10
- export { default as VisTimeline } from "./components/timeline/timeline";
11
- export { default as VisXYLabels } from "./components/xy-labels/xy-labels";
12
- export { default as VisDonut } from "./components/donut/donut";
13
- export { default as VisTopoJSONMap } from "./components/topojson-map/topojson-map";
14
- export { default as VisSankey } from "./components/sankey/sankey";
15
- export { default as VisGraph } from "./components/graph/graph";
16
- export { default as VisChordDiagram } from "./components/chord-diagram/chord-diagram";
17
- export { default as VisNestedDonut } from "./components/nested-donut/nested-donut";
18
- export { default as VisTooltip } from "./components/tooltip/tooltip";
19
- export { default as VisLeafletMap } from "./html-components/leaflet-map/leaflet-map";
20
- export { default as VisLeafletFlowMap } from "./html-components/leaflet-flow-map/leaflet-flow-map";
21
- export { default as VisBulletLegend } from "./html-components/bullet-legend/bullet-legend";
1
+ export { default as VisLine } from "./components/line/index";
2
+ export { default as VisArea } from "./components/area/index";
3
+ export { default as VisAxis } from "./components/axis/index";
4
+ export { default as VisBrush } from "./components/brush/index";
5
+ export { default as VisFreeBrush } from "./components/free-brush/index";
6
+ export { default as VisCrosshair } from "./components/crosshair/index";
7
+ export { default as VisGroupedBar } from "./components/grouped-bar/index";
8
+ export { default as VisScatter } from "./components/scatter/index";
9
+ export { default as VisStackedBar } from "./components/stacked-bar/index";
10
+ export { default as VisTimeline } from "./components/timeline/index";
11
+ export { default as VisXYLabels } from "./components/xy-labels/index";
12
+ export { default as VisDonut } from "./components/donut/index";
13
+ export { default as VisTopoJSONMap } from "./components/topojson-map/index";
14
+ export { default as VisSankey } from "./components/sankey/index";
15
+ export { default as VisGraph } from "./components/graph/index";
16
+ export { default as VisChordDiagram } from "./components/chord-diagram/index";
17
+ export { default as VisNestedDonut } from "./components/nested-donut/index";
18
+ export { default as VisTooltip } from "./components/tooltip/index";
19
+ export { default as VisLeafletMap } from "./html-components/leaflet-map/index";
20
+ export { default as VisLeafletFlowMap } from "./html-components/leaflet-flow-map/index";
21
+ export { default as VisBulletLegend } from "./html-components/bullet-legend/index";
@@ -0,0 +1,2 @@
1
+ "use strict";const e=require("vue"),v=require("@unovis/ts"),u=require("../../utils/context.cjs"),f=require("../../utils/props.cjs"),m=e.defineComponent({__name:"index",props:{component:{},tooltip:{},duration:{},margin:{},padding:{},sizing:{},width:{},height:{},svgDefs:{},ariaLabel:{},data:{}},setup(l){const i=l,{data:n}=e.toRefs(i),d=e.getCurrentInstance(),c=e.computed(()=>f.parseProps(i,d)),r=e.ref(),o={component:void 0,tooltip:void 0},a=e.ref(),s=()=>{var t;p(),(t=r.value)==null||t.updateContainer({...c.value,...o})},p=()=>{r.value||a.value&&o.component&&n.value&&(r.value=new v.SingleContainer(a.value,o,n.value))};return e.watch(n,()=>{r.value?(r.value.setData(n.value,!0),s()):p()}),e.watch(c,()=>{s()}),e.onUnmounted(()=>{var t;return(t=r.value)==null?void 0:t.destroy()}),e.provide(u.componentAccessorKey,{data:n,update:t=>{o.component=t,s()},destroy:()=>o.component=void 0}),e.provide(u.tooltipAccessorKey,{data:n,update:t=>{o.tooltip=t,s()},destroy:()=>{o.tooltip=void 0}}),(t,g)=>(e.openBlock(),e.createElementBlock("div",{"data-vis-single-container":"",ref_key:"elRef",ref:a,class:"unovis-single-container"},[e.renderSlot(t.$slots,"default")],512))}});module.exports=m;
2
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sources":["../../../src/containers/single-container/index.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { renderSlot as _renderSlot, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nimport { SingleContainer, ComponentCore, SingleContainerConfigInterface, Tooltip } from '@unovis/ts'\nimport { onUnmounted, ref, provide, watch, toRefs, getCurrentInstance, computed } from 'vue'\nimport { componentAccessorKey, tooltipAccessorKey } from \"../../utils/context\"\nimport { parseProps } from \"../../utils/props\"\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'index',\n props: {\n component: {},\n tooltip: {},\n duration: {},\n margin: {},\n padding: {},\n sizing: {},\n width: {},\n height: {},\n svgDefs: {},\n ariaLabel: {},\n data: {}\n },\n setup(__props: any) {\n\nconst props = __props;\n\n\nconst { data } = toRefs(props)\nconst instance = getCurrentInstance()\nconst parsedProps = computed(() => parseProps(props, instance))\n\nconst chart = ref<SingleContainer<T> | undefined>()\nconst config: SingleContainerConfigInterface<T> = {\n component: undefined,\n tooltip: undefined,\n}\nconst elRef = ref<HTMLDivElement>()\n\nconst updateContainer = () => {\n initChart()\n chart.value?.updateContainer({ ...parsedProps.value, ...config })\n}\n\nconst initChart = () => {\n if (chart.value) return\n if (elRef.value && config.component && data.value)\n chart.value = new SingleContainer(elRef.value, config, data.value)\n}\n\nwatch(data, () => {\n if (chart.value) {\n chart.value.setData(data.value, true)\n updateContainer()\n } else {\n initChart()\n }\n})\nwatch(parsedProps, () => {\n updateContainer()\n})\n\nonUnmounted(() => chart.value?.destroy())\n\nprovide(componentAccessorKey, {\n data,\n update: (c: ComponentCore<T>) => {\n config.component = c\n updateContainer()\n },\n destroy: () => config.component = undefined,\n})\n\nprovide(tooltipAccessorKey, {\n data,\n update: (t: Tooltip) => {\n config.tooltip = t\n updateContainer()\n },\n destroy: () => { config.tooltip = undefined },\n})\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n \"data-vis-single-container\": \"\",\n ref_key: \"elRef\",\n ref: elRef,\n class: \"unovis-single-container\"\n }, [\n _renderSlot(_ctx.$slots, \"default\")\n ], 512))\n}\n}\n\n})"],"names":["_sfc_main","_defineComponent","__props","props","data","toRefs","instance","getCurrentInstance","parsedProps","computed","parseProps","chart","ref","config","elRef","updateContainer","initChart","_a","SingleContainer","watch","onUnmounted","provide","componentAccessorKey","c","tooltipAccessorKey","_ctx","_cache","_openBlock","_createElementBlock","_renderSlot"],"mappings":"oIAS4BA,EAAiBC,kBAAA,CAC3C,OAAQ,QACR,MAAO,CACL,UAAW,CAAC,EACZ,QAAS,CAAC,EACV,SAAU,CAAC,EACX,OAAQ,CAAC,EACT,QAAS,CAAC,EACV,OAAQ,CAAC,EACT,MAAO,CAAC,EACR,OAAQ,CAAC,EACT,QAAS,CAAC,EACV,UAAW,CAAC,EACZ,KAAM,CAAC,CACT,EACA,MAAMC,EAAc,CAEtB,MAAMC,EAAQD,EAGR,CAAE,KAAAE,CAAA,EAASC,EAAA,OAAOF,CAAK,EACvBG,EAAWC,EAAAA,qBACXC,EAAcC,EAAAA,SAAS,IAAMC,EAAW,WAAAP,EAAOG,CAAQ,CAAC,EAExDK,EAAQC,EAAAA,MACRC,EAA4C,CAChD,UAAW,OACX,QAAS,MAAA,EAELC,EAAQF,EAAAA,MAERG,EAAkB,IAAM,OAClBC,KACJC,EAAAN,EAAA,QAAA,MAAAM,EAAO,gBAAgB,CAAE,GAAGT,EAAY,MAAO,GAAGK,GAAQ,EAG5DG,EAAY,IAAM,CAClBL,EAAM,OACNG,EAAM,OAASD,EAAO,WAAaT,EAAK,QAC1CO,EAAM,MAAQ,IAAIO,kBAAgBJ,EAAM,MAAOD,EAAQT,EAAK,KAAK,EAAA,EAGrEe,OAAAA,EAAA,MAAMf,EAAM,IAAM,CACZO,EAAM,OACRA,EAAM,MAAM,QAAQP,EAAK,MAAO,EAAI,EACpBW,KAENC,GACZ,CACD,EACDG,EAAA,MAAMX,EAAa,IAAM,CACPO,GAAA,CACjB,EAEDK,EAAAA,YAAY,IAAA,OAAM,OAAAH,EAAAN,EAAM,QAAN,YAAAM,EAAa,UAAS,EAExCI,EAAAA,QAAQC,EAAAA,qBAAsB,CAC5B,KAAAlB,EACA,OAASmB,GAAwB,CAC/BV,EAAO,UAAYU,EACHR,GAClB,EACA,QAAS,IAAMF,EAAO,UAAY,MAAA,CACnC,EAEDQ,EAAAA,QAAQG,EAAAA,mBAAoB,CAC1B,KAAApB,EACA,OAAS,GAAe,CACtBS,EAAO,QAAU,EACDE,GAClB,EACA,QAAS,IAAM,CAAEF,EAAO,QAAU,MAAU,CAAA,CAC7C,EAEM,CAACY,EAAUC,KACRC,EAAA,UAAA,EAAcC,EAAA,mBAAoB,MAAO,CAC/C,4BAA6B,GAC7B,QAAS,QACT,IAAKd,EACL,MAAO,yBAAA,EACN,CACDe,aAAYJ,EAAK,OAAQ,SAAS,GACjC,GAAG,EAER,CAEA,CAAC"}
@@ -0,0 +1,64 @@
1
+ import { defineComponent as v, toRefs as f, getCurrentInstance as g, computed as h, ref as p, watch as l, onUnmounted as y, provide as d, openBlock as C, createElementBlock as _, renderSlot as k } from "vue";
2
+ import { SingleContainer as w } from "@unovis/ts";
3
+ import { componentAccessorKey as R, tooltipAccessorKey as x } from "../../utils/context.js";
4
+ import { parseProps as A } from "../../utils/props.js";
5
+ const b = /* @__PURE__ */ v({
6
+ __name: "index",
7
+ props: {
8
+ component: {},
9
+ tooltip: {},
10
+ duration: {},
11
+ margin: {},
12
+ padding: {},
13
+ sizing: {},
14
+ width: {},
15
+ height: {},
16
+ svgDefs: {},
17
+ ariaLabel: {},
18
+ data: {}
19
+ },
20
+ setup(u) {
21
+ const i = u, { data: t } = f(i), m = g(), s = h(() => A(i, m)), n = p(), o = {
22
+ component: void 0,
23
+ tooltip: void 0
24
+ }, r = p(), a = () => {
25
+ var e;
26
+ c(), (e = n.value) == null || e.updateContainer({ ...s.value, ...o });
27
+ }, c = () => {
28
+ n.value || r.value && o.component && t.value && (n.value = new w(r.value, o, t.value));
29
+ };
30
+ return l(t, () => {
31
+ n.value ? (n.value.setData(t.value, !0), a()) : c();
32
+ }), l(s, () => {
33
+ a();
34
+ }), y(() => {
35
+ var e;
36
+ return (e = n.value) == null ? void 0 : e.destroy();
37
+ }), d(R, {
38
+ data: t,
39
+ update: (e) => {
40
+ o.component = e, a();
41
+ },
42
+ destroy: () => o.component = void 0
43
+ }), d(x, {
44
+ data: t,
45
+ update: (e) => {
46
+ o.tooltip = e, a();
47
+ },
48
+ destroy: () => {
49
+ o.tooltip = void 0;
50
+ }
51
+ }), (e, B) => (C(), _("div", {
52
+ "data-vis-single-container": "",
53
+ ref_key: "elRef",
54
+ ref: r,
55
+ class: "unovis-single-container"
56
+ }, [
57
+ k(e.$slots, "default")
58
+ ], 512));
59
+ }
60
+ });
61
+ export {
62
+ b as default
63
+ };
64
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../src/containers/single-container/index.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { renderSlot as _renderSlot, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nimport { SingleContainer, ComponentCore, SingleContainerConfigInterface, Tooltip } from '@unovis/ts'\nimport { onUnmounted, ref, provide, watch, toRefs, getCurrentInstance, computed } from 'vue'\nimport { componentAccessorKey, tooltipAccessorKey } from \"../../utils/context\"\nimport { parseProps } from \"../../utils/props\"\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'index',\n props: {\n component: {},\n tooltip: {},\n duration: {},\n margin: {},\n padding: {},\n sizing: {},\n width: {},\n height: {},\n svgDefs: {},\n ariaLabel: {},\n data: {}\n },\n setup(__props: any) {\n\nconst props = __props;\n\n\nconst { data } = toRefs(props)\nconst instance = getCurrentInstance()\nconst parsedProps = computed(() => parseProps(props, instance))\n\nconst chart = ref<SingleContainer<T> | undefined>()\nconst config: SingleContainerConfigInterface<T> = {\n component: undefined,\n tooltip: undefined,\n}\nconst elRef = ref<HTMLDivElement>()\n\nconst updateContainer = () => {\n initChart()\n chart.value?.updateContainer({ ...parsedProps.value, ...config })\n}\n\nconst initChart = () => {\n if (chart.value) return\n if (elRef.value && config.component && data.value)\n chart.value = new SingleContainer(elRef.value, config, data.value)\n}\n\nwatch(data, () => {\n if (chart.value) {\n chart.value.setData(data.value, true)\n updateContainer()\n } else {\n initChart()\n }\n})\nwatch(parsedProps, () => {\n updateContainer()\n})\n\nonUnmounted(() => chart.value?.destroy())\n\nprovide(componentAccessorKey, {\n data,\n update: (c: ComponentCore<T>) => {\n config.component = c\n updateContainer()\n },\n destroy: () => config.component = undefined,\n})\n\nprovide(tooltipAccessorKey, {\n data,\n update: (t: Tooltip) => {\n config.tooltip = t\n updateContainer()\n },\n destroy: () => { config.tooltip = undefined },\n})\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n \"data-vis-single-container\": \"\",\n ref_key: \"elRef\",\n ref: elRef,\n class: \"unovis-single-container\"\n }, [\n _renderSlot(_ctx.$slots, \"default\")\n ], 512))\n}\n}\n\n})"],"names":["_sfc_main","_defineComponent","__props","props","data","toRefs","instance","getCurrentInstance","parsedProps","computed","parseProps","chart","ref","config","elRef","updateContainer","initChart","_a","SingleContainer","watch","onUnmounted","provide","componentAccessorKey","c","tooltipAccessorKey","t","_ctx","_cache","_openBlock","_createElementBlock","_renderSlot"],"mappings":";;;;AASA,MAA4BA,I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AS,MAAMF,EAAO,YAAY;AAAA,IAAA,CACnC,GAEDQ,EAAQG,GAAoB;AAAA,MAC1B,MAAApB;AAAA,MACA,QAAQ,CAACqB,MAAe;AACtB,QAAAZ,EAAO,UAAUY,GACDV;MAClB;AAAA,MACA,SAAS,MAAM;AAAE,QAAAF,EAAO,UAAU;AAAA,MAAU;AAAA,IAAA,CAC7C,GAEM,CAACa,GAAUC,OACRC,EAAA,GAAcC,EAAoB,OAAO;AAAA,MAC/C,6BAA6B;AAAA,MAC7B,SAAS;AAAA,MACT,KAAKf;AAAA,MACL,OAAO;AAAA,IAAA,GACN;AAAA,MACDgB,EAAYJ,EAAK,QAAQ,SAAS;AAAA,OACjC,GAAG;AAAA,EAER;AAEA,CAAC;"}
@@ -0,0 +1,2 @@
1
+ "use strict";const e="";module.exports=e;
2
+ //# sourceMappingURL=index2.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index2.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ const e = "";
2
+ export {
3
+ e as default
4
+ };
5
+ //# sourceMappingURL=index2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1,2 @@
1
+ "use strict";const e=require("./index.cjs");require("./index2.cjs");module.exports=e;
2
+ //# sourceMappingURL=index3.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index3.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ import o from "./index.js";
2
+ import "./index2.js";
3
+ export {
4
+ o as default
5
+ };
6
+ //# sourceMappingURL=index3.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index3.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
@@ -0,0 +1,2 @@
1
+ "use strict";const o=require("vue"),y=require("@unovis/ts"),i=require("../../utils/context.cjs"),v=require("../../utils/props.cjs"),m=o.defineComponent({__name:"index",props:{components:{},xScale:{type:[Object,Function]},xDomain:{},xDomainMinConstraint:{},xDomainMaxConstraint:{},xRange:{},yScale:{type:[Object,Function]},yDomain:{},yDomainMinConstraint:{},yDomainMaxConstraint:{},yRange:{},yDirection:{},xAxis:{},yAxis:{},autoMargin:{type:Boolean},tooltip:{},crosshair:{},preventEmptyDomain:{type:[Boolean,null]},scaleByDomain:{type:Boolean},duration:{},margin:{},padding:{},sizing:{},width:{},height:{},svgDefs:{},ariaLabel:{},data:{}},setup(u){const c=u,{data:n}=o.toRefs(c),l=o.getCurrentInstance(),p=o.computed(()=>v.parseProps(c,l)),a=o.ref(),t={components:[],crosshair:void 0,tooltip:void 0,xAxis:void 0,yAxis:void 0},r=o.ref(),s=()=>{var e;(e=a.value)==null||e.updateContainer({...p.value,...t})};return o.watch(n,()=>{a.value&&(a.value.setData(n.value,!0),s())}),o.watch(p,()=>{s()}),o.onMounted(()=>{r.value&&(a.value=new y.XYContainer(r.value,t,n.value))}),o.onUnmounted(()=>{var e;return(e=a.value)==null?void 0:e.destroy()}),o.provide(i.componentAccessorKey,{data:n,update:e=>{t.components=[...t.components,e],s()},destroy:()=>{var e;return t.components=(e=t.components)==null?void 0:e.filter(d=>!d.isDestroyed())}}),o.provide(i.axisAccessorKey,{data:n,update:e=>{t[`${e.config.type}Axis`]=e,s()},destroy:e=>{t[`${e}Axis`]=void 0}}),o.provide(i.crosshairAccessorKey,{data:n,update:e=>{t.crosshair=e,s()},destroy:()=>{t.crosshair=void 0}}),o.provide(i.tooltipAccessorKey,{data:n,update:e=>{t.tooltip=e,s()},destroy:()=>{t.tooltip=void 0}}),(e,d)=>(o.openBlock(),o.createElementBlock("div",{"data-vis-xy-container":"",ref_key:"elRef",ref:r,class:"unovis-xy-container"},[o.renderSlot(e.$slots,"default")],512))}});module.exports=m;
2
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sources":["../../../src/containers/xy-container/index.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { renderSlot as _renderSlot, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nimport { XYContainer, XYComponentCore, XYContainerConfigInterface, Tooltip, Crosshair, Axis } from '@unovis/ts'\nimport { onMounted, onUnmounted, ref, provide, watch, toRefs, getCurrentInstance, computed } from 'vue'\nimport { componentAccessorKey, tooltipAccessorKey, axisAccessorKey, crosshairAccessorKey } from \"../../utils/context\"\nimport { parseProps } from \"../../utils/props\"\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'index',\n props: {\n components: {},\n xScale: { type: [Object, Function] },\n xDomain: {},\n xDomainMinConstraint: {},\n xDomainMaxConstraint: {},\n xRange: {},\n yScale: { type: [Object, Function] },\n yDomain: {},\n yDomainMinConstraint: {},\n yDomainMaxConstraint: {},\n yRange: {},\n yDirection: {},\n xAxis: {},\n yAxis: {},\n autoMargin: { type: Boolean },\n tooltip: {},\n crosshair: {},\n preventEmptyDomain: { type: [Boolean, null] },\n scaleByDomain: { type: Boolean },\n duration: {},\n margin: {},\n padding: {},\n sizing: {},\n width: {},\n height: {},\n svgDefs: {},\n ariaLabel: {},\n data: {}\n },\n setup(__props: any) {\n\nconst props = __props;\n\n\nconst { data } = toRefs(props)\nconst instance = getCurrentInstance()\nconst parsedProps = computed(() => parseProps(props, instance))\n\nconst chart = ref<XYContainer<T> | undefined>()\nconst config: XYContainerConfigInterface<T> = {\n components: [],\n crosshair: undefined,\n tooltip: undefined,\n xAxis: undefined,\n yAxis: undefined,\n}\nconst elRef = ref<HTMLDivElement>()\n\nconst updateContainer = () => {\n chart.value?.updateContainer({ ...parsedProps.value, ...config })\n}\n\nwatch(data, () => {\n if (chart.value) {\n chart.value.setData(data.value, true)\n updateContainer()\n }\n})\nwatch(parsedProps, () => {\n updateContainer()\n})\n\nonMounted(() => {\n if (elRef.value) chart.value = new XYContainer(elRef.value, config, data.value)\n})\nonUnmounted(() => chart.value?.destroy())\n\nprovide(componentAccessorKey, {\n data,\n update: (c: XYComponentCore<T>) => {\n config.components = [...config.components!, c]\n updateContainer()\n },\n destroy: () => config.components = config.components?.filter(c => !c.isDestroyed()),\n})\n\nprovide(axisAccessorKey, {\n data,\n update: (c: Axis<T>) => {\n config[`${c.config.type}Axis`] = c\n updateContainer()\n },\n destroy: (c) => { config[`${c}Axis`] = undefined },\n})\n\nprovide(crosshairAccessorKey, {\n data,\n update: (c: Crosshair<T>) => {\n config.crosshair = c\n updateContainer()\n },\n destroy: () => { config.crosshair = undefined },\n})\n\nprovide(tooltipAccessorKey, {\n data,\n update: (t: Tooltip) => {\n config.tooltip = t\n updateContainer()\n },\n destroy: () => { config.tooltip = undefined },\n})\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n \"data-vis-xy-container\": \"\",\n ref_key: \"elRef\",\n ref: elRef,\n class: \"unovis-xy-container\"\n }, [\n _renderSlot(_ctx.$slots, \"default\")\n ], 512))\n}\n}\n\n})"],"names":["_sfc_main","_defineComponent","__props","props","data","toRefs","instance","getCurrentInstance","parsedProps","computed","parseProps","chart","ref","config","elRef","updateContainer","_a","watch","onMounted","XYContainer","onUnmounted","provide","componentAccessorKey","c","axisAccessorKey","crosshairAccessorKey","tooltipAccessorKey","t","_ctx","_cache","_openBlock","_createElementBlock","_renderSlot"],"mappings":"oIAS4BA,EAAiBC,kBAAA,CAC3C,OAAQ,QACR,MAAO,CACL,WAAY,CAAC,EACb,OAAQ,CAAE,KAAM,CAAC,OAAQ,QAAQ,CAAE,EACnC,QAAS,CAAC,EACV,qBAAsB,CAAC,EACvB,qBAAsB,CAAC,EACvB,OAAQ,CAAC,EACT,OAAQ,CAAE,KAAM,CAAC,OAAQ,QAAQ,CAAE,EACnC,QAAS,CAAC,EACV,qBAAsB,CAAC,EACvB,qBAAsB,CAAC,EACvB,OAAQ,CAAC,EACT,WAAY,CAAC,EACb,MAAO,CAAC,EACR,MAAO,CAAC,EACR,W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,IAAM,OAAA,OAAAF,EAAO,YAAaG,EAAAH,EAAO,aAAP,YAAAG,EAAmB,OAAYO,GAAA,CAACA,EAAE,YAAA,GAAa,CACnF,EAEDF,EAAAA,QAAQG,EAAAA,gBAAiB,CACvB,KAAApB,EACA,OAASmB,GAAe,CACtBV,EAAO,GAAGU,EAAE,OAAO,IAAI,MAAM,EAAIA,EACjBR,GAClB,EACA,QAAUQ,GAAM,CAASV,EAAA,GAAGU,CAAC,MAAM,EAAI,MAAU,CAAA,CAClD,EAEDF,EAAAA,QAAQI,EAAAA,qBAAsB,CAC5B,KAAArB,EACA,OAASmB,GAAoB,CAC3BV,EAAO,UAAYU,EACHR,GAClB,EACA,QAAS,IAAM,CAAEF,EAAO,UAAY,MAAU,CAAA,CAC/C,EAEDQ,EAAAA,QAAQK,EAAAA,mBAAoB,CAC1B,KAAAtB,EACA,OAASuB,GAAe,CACtBd,EAAO,QAAUc,EACDZ,GAClB,EACA,QAAS,IAAM,CAAEF,EAAO,QAAU,MAAU,CAAA,CAC7C,EAEM,CAACe,EAAUC,KACRC,EAAA,UAAA,EAAcC,EAAA,mBAAoB,MAAO,CAC/C,wBAAyB,GACzB,QAAS,QACT,IAAKjB,EACL,MAAO,qBAAA,EACN,CACDkB,aAAYJ,EAAK,OAAQ,SAAS,GACjC,GAAG,EAER,CAEA,CAAC"}
@@ -0,0 +1,103 @@
1
+ import { defineComponent as y, toRefs as v, getCurrentInstance as f, computed as x, ref as d, watch as l, onMounted as D, onUnmounted as g, provide as i, openBlock as h, createElementBlock as A, renderSlot as C } from "vue";
2
+ import { XYContainer as B } from "@unovis/ts";
3
+ import { componentAccessorKey as M, axisAccessorKey as _, crosshairAccessorKey as R, tooltipAccessorKey as K } from "../../utils/context.js";
4
+ import { parseProps as b } from "../../utils/props.js";
5
+ const j = /* @__PURE__ */ y({
6
+ __name: "index",
7
+ props: {
8
+ components: {},
9
+ xScale: { type: [Object, Function] },
10
+ xDomain: {},
11
+ xDomainMinConstraint: {},
12
+ xDomainMaxConstraint: {},
13
+ xRange: {},
14
+ yScale: { type: [Object, Function] },
15
+ yDomain: {},
16
+ yDomainMinConstraint: {},
17
+ yDomainMaxConstraint: {},
18
+ yRange: {},
19
+ yDirection: {},
20
+ xAxis: {},
21
+ yAxis: {},
22
+ autoMargin: { type: Boolean },
23
+ tooltip: {},
24
+ crosshair: {},
25
+ preventEmptyDomain: { type: [Boolean, null] },
26
+ scaleByDomain: { type: Boolean },
27
+ duration: {},
28
+ margin: {},
29
+ padding: {},
30
+ sizing: {},
31
+ width: {},
32
+ height: {},
33
+ svgDefs: {},
34
+ ariaLabel: {},
35
+ data: {}
36
+ },
37
+ setup(u) {
38
+ const r = u, { data: t } = v(r), m = f(), c = x(() => b(r, m)), a = d(), e = {
39
+ components: [],
40
+ crosshair: void 0,
41
+ tooltip: void 0,
42
+ xAxis: void 0,
43
+ yAxis: void 0
44
+ }, s = d(), n = () => {
45
+ var o;
46
+ (o = a.value) == null || o.updateContainer({ ...c.value, ...e });
47
+ };
48
+ return l(t, () => {
49
+ a.value && (a.value.setData(t.value, !0), n());
50
+ }), l(c, () => {
51
+ n();
52
+ }), D(() => {
53
+ s.value && (a.value = new B(s.value, e, t.value));
54
+ }), g(() => {
55
+ var o;
56
+ return (o = a.value) == null ? void 0 : o.destroy();
57
+ }), i(M, {
58
+ data: t,
59
+ update: (o) => {
60
+ e.components = [...e.components, o], n();
61
+ },
62
+ destroy: () => {
63
+ var o;
64
+ return e.components = (o = e.components) == null ? void 0 : o.filter((p) => !p.isDestroyed());
65
+ }
66
+ }), i(_, {
67
+ data: t,
68
+ update: (o) => {
69
+ e[`${o.config.type}Axis`] = o, n();
70
+ },
71
+ destroy: (o) => {
72
+ e[`${o}Axis`] = void 0;
73
+ }
74
+ }), i(R, {
75
+ data: t,
76
+ update: (o) => {
77
+ e.crosshair = o, n();
78
+ },
79
+ destroy: () => {
80
+ e.crosshair = void 0;
81
+ }
82
+ }), i(K, {
83
+ data: t,
84
+ update: (o) => {
85
+ e.tooltip = o, n();
86
+ },
87
+ destroy: () => {
88
+ e.tooltip = void 0;
89
+ }
90
+ }), (o, p) => (h(), A("div", {
91
+ "data-vis-xy-container": "",
92
+ ref_key: "elRef",
93
+ ref: s,
94
+ class: "unovis-xy-container"
95
+ }, [
96
+ C(o.$slots, "default")
97
+ ], 512));
98
+ }
99
+ });
100
+ export {
101
+ j as default
102
+ };
103
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../src/containers/xy-container/index.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { renderSlot as _renderSlot, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nimport { XYContainer, XYComponentCore, XYContainerConfigInterface, Tooltip, Crosshair, Axis } from '@unovis/ts'\nimport { onMounted, onUnmounted, ref, provide, watch, toRefs, getCurrentInstance, computed } from 'vue'\nimport { componentAccessorKey, tooltipAccessorKey, axisAccessorKey, crosshairAccessorKey } from \"../../utils/context\"\nimport { parseProps } from \"../../utils/props\"\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'index',\n props: {\n components: {},\n xScale: { type: [Object, Function] },\n xDomain: {},\n xDomainMinConstraint: {},\n xDomainMaxConstraint: {},\n xRange: {},\n yScale: { type: [Object, Function] },\n yDomain: {},\n yDomainMinConstraint: {},\n yDomainMaxConstraint: {},\n yRange: {},\n yDirection: {},\n xAxis: {},\n yAxis: {},\n autoMargin: { type: Boolean },\n tooltip: {},\n crosshair: {},\n preventEmptyDomain: { type: [Boolean, null] },\n scaleByDomain: { type: Boolean },\n duration: {},\n margin: {},\n padding: {},\n sizing: {},\n width: {},\n height: {},\n svgDefs: {},\n ariaLabel: {},\n data: {}\n },\n setup(__props: any) {\n\nconst props = __props;\n\n\nconst { data } = toRefs(props)\nconst instance = getCurrentInstance()\nconst parsedProps = computed(() => parseProps(props, instance))\n\nconst chart = ref<XYContainer<T> | undefined>()\nconst config: XYContainerConfigInterface<T> = {\n components: [],\n crosshair: undefined,\n tooltip: undefined,\n xAxis: undefined,\n yAxis: undefined,\n}\nconst elRef = ref<HTMLDivElement>()\n\nconst updateContainer = () => {\n chart.value?.updateContainer({ ...parsedProps.value, ...config })\n}\n\nwatch(data, () => {\n if (chart.value) {\n chart.value.setData(data.value, true)\n updateContainer()\n }\n})\nwatch(parsedProps, () => {\n updateContainer()\n})\n\nonMounted(() => {\n if (elRef.value) chart.value = new XYContainer(elRef.value, config, data.value)\n})\nonUnmounted(() => chart.value?.destroy())\n\nprovide(componentAccessorKey, {\n data,\n update: (c: XYComponentCore<T>) => {\n config.components = [...config.components!, c]\n updateContainer()\n },\n destroy: () => config.components = config.components?.filter(c => !c.isDestroyed()),\n})\n\nprovide(axisAccessorKey, {\n data,\n update: (c: Axis<T>) => {\n config[`${c.config.type}Axis`] = c\n updateContainer()\n },\n destroy: (c) => { config[`${c}Axis`] = undefined },\n})\n\nprovide(crosshairAccessorKey, {\n data,\n update: (c: Crosshair<T>) => {\n config.crosshair = c\n updateContainer()\n },\n destroy: () => { config.crosshair = undefined },\n})\n\nprovide(tooltipAccessorKey, {\n data,\n update: (t: Tooltip) => {\n config.tooltip = t\n updateContainer()\n },\n destroy: () => { config.tooltip = undefined },\n})\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n \"data-vis-xy-container\": \"\",\n ref_key: \"elRef\",\n ref: elRef,\n class: \"unovis-xy-container\"\n }, [\n _renderSlot(_ctx.$slots, \"default\")\n ], 512))\n}\n}\n\n})"],"names":["_sfc_main","_defineComponent","__props","props","data","toRefs","instance","getCurrentInstance","parsedProps","computed","parseProps","chart","ref","config","elRef","updateContainer","_a","watch","onMounted","XYContainer","onUnmounted","provide","componentAccessorKey","c","axisAccessorKey","crosshairAccessorKey","tooltipAccessorKey","t","_ctx","_cache","_openBlock","_createElementBlock","_renderSlot"],"mappings":";;;;AASA,MAA4BA,IAAiBC,gBAA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,QAAAd,EAAO,UAAUc,GACDZ;MAClB;AAAA,MACA,SAAS,MAAM;AAAE,QAAAF,EAAO,UAAU;AAAA,MAAU;AAAA,IAAA,CAC7C,GAEM,CAACe,GAAUC,OACRC,EAAA,GAAcC,EAAoB,OAAO;AAAA,MAC/C,yBAAyB;AAAA,MACzB,SAAS;AAAA,MACT,KAAKjB;AAAA,MACL,OAAO;AAAA,IAAA,GACN;AAAA,MACDkB,EAAYJ,EAAK,QAAQ,SAAS;AAAA,OACjC,GAAG;AAAA,EAER;AAEA,CAAC;"}
@@ -0,0 +1,2 @@
1
+ "use strict";const e="";module.exports=e;
2
+ //# sourceMappingURL=index2.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index2.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ const e = "";
2
+ export {
3
+ e as default
4
+ };
5
+ //# sourceMappingURL=index2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1,2 @@
1
+ "use strict";const e=require("./index.cjs");require("./index2.cjs");module.exports=e;
2
+ //# sourceMappingURL=index3.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index3.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ import o from "./index.js";
2
+ import "./index2.js";
3
+ export {
4
+ o as default
5
+ };
6
+ //# sourceMappingURL=index3.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index3.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
package/containers.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export { default as VisXYContainer } from "./containers/xy-container/xy-container";
2
- export { default as VisSingleContainer } from "./containers/single-container/single-container";
1
+ export { default as VisXYContainer } from "./containers/xy-container/index";
2
+ export { default as VisSingleContainer } from "./containers/single-container/index";
@@ -0,0 +1,2 @@
1
+ "use strict";const e=require("vue"),p=require("@unovis/ts"),r=require("../../utils/props.cjs"),d=e.defineComponent({__name:"index",props:{items:{},labelClassName:{},onLegendItemClick:{type:Function},labelFontSize:{},labelMaxWidth:{},bulletSize:{},data:{}},setup(u){const l=u;e.computed(()=>l.data);const i=e.getCurrentInstance(),n=e.computed(()=>r.parseProps(l,i)),o=e.ref(),a=e.ref();return e.onMounted(()=>{e.nextTick(()=>{a.value&&(o.value=new p.BulletLegend(a.value,n.value))})}),e.onUnmounted(()=>{var t;(t=o.value)==null||t.destroy()}),e.watch(n,(t,s)=>{var c;r.arePropsEqual(t,s)||(c=o.value)==null||c.update(n.value)}),(t,s)=>(e.openBlock(),e.createElementBlock("div",{"data-vis-bullet-legend":"",ref_key:"elRef",ref:a},null,512))}});module.exports=d;
2
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sources":["../../../src/html-components/bullet-legend/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\nimport { BulletLegend, BulletLegendConfigInterface, BulletLegendItemInterface } from '@unovis/ts'\nimport { onMounted, onUnmounted, computed, ref, watch, getCurrentInstance, nextTick } from 'vue'\nimport { arePropsEqual, parseProps } from '../../utils/props'\n\n\n// data and required props\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'index',\n props: {\n items: {},\n labelClassName: {},\n onLegendItemClick: { type: Function },\n labelFontSize: {},\n labelMaxWidth: {},\n bulletSize: {},\n data: {}\n },\n setup(__props: any) {\n\nconst props = __props;\n\n// !!! This code was automatically generated. You should not change it !!!\n\nconst data = computed(() => props.data)\n// config\nconst instance = getCurrentInstance()\nconst config = computed(() => parseProps(props, instance))\n\n// component declaration\nconst component = ref<BulletLegend>()\nconst elRef = ref<HTMLDivElement>()\n\nonMounted(() => {\n nextTick(() => {\n if(elRef.value)\n component.value = new BulletLegend(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?.update(config.value)\n \n }\n})\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n \"data-vis-bullet-legend\": \"\",\n ref_key: \"elRef\",\n ref: elRef\n }, null, 512))\n}\n}\n\n})"],"names":["_sfc_main","_defineComponent","__props","props","computed","instance","getCurrentInstance","config","parseProps","component","ref","elRef","onMounted","nextTick","BulletLegend","onUnmounted","_a","watch","curr","prev","arePropsEqual","_ctx","_cache","_openBlock","_createElementBlock"],"mappings":"+FAU4BA,EAAiBC,kBAAA,CAC3C,OAAQ,QACR,MAAO,CACL,MAAO,CAAC,EACR,eAAgB,CAAC,EACjB,kBAAmB,CAAE,KAAM,QAAS,EACpC,cAAe,CAAC,EAChB,cAAe,CAAC,EAChB,WAAY,CAAC,EACb,KAAM,CAAC,CACT,EACA,MAAMC,EAAc,CAEtB,MAAMC,EAAQD,EAIDE,WAAS,IAAMD,EAAM,IAAI,EAEtC,MAAME,EAAWC,EAAAA,qBACXC,EAASH,EAAAA,SAAS,IAAMI,EAAW,WAAAL,EAAOE,CAAQ,CAAC,EAGnDI,EAAYC,EAAAA,MACZC,EAAQD,EAAAA,MAEdE,OAAAA,EAAAA,UAAU,IAAM,CACdC,EAAAA,SAAS,IAAM,CACVF,EAAM,QACTF,EAAU,MAAQ,IAAIK,EAAA,aAAaH,EAAM,MAAOJ,EAAO,KAAK,EAAA,CAG7D,CAAA,CACF,EAEDQ,EAAAA,YAAY,IAAM,QAChBC,EAAAP,EAAU,QAAV,MAAAO,EAAiB,SAAQ,CAE1B,EAEKC,EAAAA,MAAAV,EAAQ,CAACW,EAAMC,IAAS,OACvBC,EAAA,cAAcF,EAAMC,CAAI,IACjBH,EAAAP,EAAA,QAAA,MAAAO,EAAO,OAAOT,EAAO,MAEjC,CACD,EAEM,CAACc,EAAUC,KACRC,EAAA,UAAA,EAAcC,EAAA,mBAAoB,MAAO,CAC/C,yBAA0B,GAC1B,QAAS,QACT,IAAKb,CAAA,EACJ,KAAM,GAAG,EAEd,CAEA,CAAC"}
@@ -0,0 +1,39 @@
1
+ import { defineComponent as p, computed as c, getCurrentInstance as d, ref as u, onMounted as m, nextTick as f, onUnmounted as v, watch as _, openBlock as b, createElementBlock as g } from "vue";
2
+ import { BulletLegend as k } from "@unovis/ts";
3
+ import { parseProps as x, arePropsEqual as C } from "../../utils/props.js";
4
+ const w = /* @__PURE__ */ p({
5
+ __name: "index",
6
+ props: {
7
+ items: {},
8
+ labelClassName: {},
9
+ onLegendItemClick: { type: Function },
10
+ labelFontSize: {},
11
+ labelMaxWidth: {},
12
+ bulletSize: {},
13
+ data: {}
14
+ },
15
+ setup(s) {
16
+ const a = s;
17
+ c(() => a.data);
18
+ const i = d(), t = c(() => x(a, i)), n = u(), o = u();
19
+ return m(() => {
20
+ f(() => {
21
+ o.value && (n.value = new k(o.value, t.value));
22
+ });
23
+ }), v(() => {
24
+ var e;
25
+ (e = n.value) == null || e.destroy();
26
+ }), _(t, (e, l) => {
27
+ var r;
28
+ C(e, l) || (r = n.value) == null || r.update(t.value);
29
+ }), (e, l) => (b(), g("div", {
30
+ "data-vis-bullet-legend": "",
31
+ ref_key: "elRef",
32
+ ref: o
33
+ }, null, 512));
34
+ }
35
+ });
36
+ export {
37
+ w as default
38
+ };
39
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../src/html-components/bullet-legend/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\nimport { BulletLegend, BulletLegendConfigInterface, BulletLegendItemInterface } from '@unovis/ts'\nimport { onMounted, onUnmounted, computed, ref, watch, getCurrentInstance, nextTick } from 'vue'\nimport { arePropsEqual, parseProps } from '../../utils/props'\n\n\n// data and required props\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'index',\n props: {\n items: {},\n labelClassName: {},\n onLegendItemClick: { type: Function },\n labelFontSize: {},\n labelMaxWidth: {},\n bulletSize: {},\n data: {}\n },\n setup(__props: any) {\n\nconst props = __props;\n\n// !!! This code was automatically generated. You should not change it !!!\n\nconst data = computed(() => props.data)\n// config\nconst instance = getCurrentInstance()\nconst config = computed(() => parseProps(props, instance))\n\n// component declaration\nconst component = ref<BulletLegend>()\nconst elRef = ref<HTMLDivElement>()\n\nonMounted(() => {\n nextTick(() => {\n if(elRef.value)\n component.value = new BulletLegend(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?.update(config.value)\n \n }\n})\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n \"data-vis-bullet-legend\": \"\",\n ref_key: \"elRef\",\n ref: elRef\n }, null, 512))\n}\n}\n\n})"],"names":["_sfc_main","_defineComponent","__props","props","computed","instance","getCurrentInstance","config","parseProps","component","ref","elRef","onMounted","nextTick","BulletLegend","onUnmounted","_a","watch","curr","prev","arePropsEqual","_ctx","_cache","_openBlock","_createElementBlock"],"mappings":";;;AAUA,MAA4BA,IAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,OAAO,CAAC;AAAA,IACR,gBAAgB,CAAC;AAAA,IACjB,mBAAmB,EAAE,MAAM,SAAS;AAAA,IACpC,eAAe,CAAC;AAAA,IAChB,eAAe,CAAC;AAAA,IAChB,YAAY,CAAC;AAAA,IACb,MAAM,CAAC;AAAA,EACT;AAAA,EACA,MAAMC,GAAc;AAEtB,UAAMC,IAAQD;AAID,IAAAE,EAAS,MAAMD,EAAM,IAAI;AAEtC,UAAME,IAAWC,KACXC,IAASH,EAAS,MAAMI,EAAWL,GAAOE,CAAQ,CAAC,GAGnDI,IAAYC,KACZC,IAAQD;AAEd,WAAAE,EAAU,MAAM;AACd,MAAAC,EAAS,MAAM;AACb,QAAGF,EAAM,UACTF,EAAU,QAAQ,IAAIK,EAAaH,EAAM,OAAOJ,EAAO,KAAK;AAAA,MAAA,CAG7D;AAAA,IAAA,CACF,GAEDQ,EAAY,MAAM;;AAChB,OAAAC,IAAAP,EAAU,UAAV,QAAAO,EAAiB;AAAA,IAAQ,CAE1B,GAEKC,EAAAV,GAAQ,CAACW,GAAMC,MAAS;;AAC5B,MAAKC,EAAcF,GAAMC,CAAI,MACjBH,IAAAP,EAAA,UAAA,QAAAO,EAAO,OAAOT,EAAO;AAAA,IAEjC,CACD,GAEM,CAACc,GAAUC,OACRC,EAAA,GAAcC,EAAoB,OAAO;AAAA,MAC/C,0BAA0B;AAAA,MAC1B,SAAS;AAAA,MACT,KAAKb;AAAA,IAAA,GACJ,MAAM,GAAG;AAAA,EAEd;AAEA,CAAC;"}
@@ -0,0 +1,2 @@
1
+ "use strict";const e="";module.exports=e;
2
+ //# sourceMappingURL=index2.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index2.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ const e = "";
2
+ export {
3
+ e as default
4
+ };
5
+ //# sourceMappingURL=index2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1,2 @@
1
+ "use strict";const e=require("./index.cjs");require("./index2.cjs");module.exports=e;
2
+ //# sourceMappingURL=index3.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index3.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ import o from "./index.js";
2
+ import "./index2.js";
3
+ export {
4
+ o as default
5
+ };
6
+ //# sourceMappingURL=index3.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index3.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
@@ -0,0 +1,2 @@
1
+ "use strict";const t=require("vue"),y=require("@unovis/ts"),c=require("../../utils/props.cjs"),d=t.defineComponent({__name:"index",props:{sourceLongitude:{type:[Function,Number,null]},sourceLatitude:{type:[Function,Number,null]},targetLongitude:{type:[Function,Number,null]},targetLatitude:{type:[Function,Number,null]},sourcePointRadius:{type:[Function,Number,null]},sourcePointColor:{type:[Function,String,Array,null]},flowParticleColor:{type:[Function,String,Array,null]},flowParticleRadius:{type:[Function,Number,null]},flowParticleSpeed:{type:[Function,Number,null]},flowParticleDensity:{type:[Function,Number,null]},onSourcePointClick:{type:Function},onSourcePointMouseEnter:{type:Function},onSourcePointMouseLeave:{type:Function},width:{},height:{},flyToDuration:{},fitViewPadding:{},zoomDuration:{},initialBounds:{},fitBoundsOnUpdate:{},fitViewOnInit:{type:Boolean},fitViewOnUpdate:{type:Boolean},style:{},styleDarkTheme:{},accessToken:{},attribution:{},renderer:{},onMapInitialized:{type:Function},onMapMoveZoom:{type:Function},onMapMoveStart:{type:Function},onMapMoveEnd:{type:Function},onMapZoomStart:{type:Function},onMapZoomEnd:{type:Function},onMapClick:{type:Function},pointLongitude:{type:[Function,Number,null]},pointLatitude:{type:[Function,Number,null]},pointId:{type:[Function,String,null]},pointShape:{type:[Function,null]},pointColor:{type:[Function,String,Array,null]},pointRadius:{type:[Function,Number,null]},pointLabel:{type:[Function,String,null]},pointLabelColor:{type:[Function,String,null]},pointBottomLabel:{type:[Function,String,null]},pointCursor:{type:[Function,String,null]},pointRingWidth:{},selectedPointId:{},clusterColor:{type:[Function,String,Array,null]},clusterRadius:{type:[Function,Number,null]},clusterLabel:{type:[Function,String,null]},clusterLabelColor:{type:[Function,String,null]},clusterBottomLabel:{type:[Function,String,null]},clusterRingWidth:{},clusterBackground:{type:Boolean},clusterExpandOnClick:{type:Boolean},clusteringDistance:{},colorMap:{},topoJSONLayer:{},tooltip:{},ariaLabel:{},duration:{},events:{},attributes:{},data:{}},setup(a){const i=a,p=t.computed(()=>i.data),s=t.getCurrentInstance(),e=t.computed(()=>c.parseProps(i,s)),o=t.ref(),u=t.ref();return t.onMounted(()=>{t.nextTick(()=>{u.value&&(o.value=new y.LeafletFlowMap(u.value,e.value,p.value))})}),t.onUnmounted(()=>{var n;(n=o.value)==null||n.destroy()}),t.watch(e,(n,l)=>{var r;c.arePropsEqual(n,l)||(r=o.value)==null||r.setConfig(e.value)}),(n,l)=>(t.openBlock(),t.createElementBlock("div",{"data-vis-leaflet-flow-map":"",ref_key:"elRef",ref:u},null,512))}});module.exports=d;
2
+ //# sourceMappingURL=index.cjs.map