vue-data-ui 2.4.4 → 2.4.6

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 (149) hide show
  1. package/dist/{Arrow-W6XO2WVI.cjs → Arrow-CLZKAoZX.cjs} +1 -1
  2. package/dist/{Arrow-AxsI-FAh.js → Arrow-FPrXmABn.js} +1 -1
  3. package/dist/{BaseIcon-BX3x6oa7.js → BaseIcon-D90GFGqy.js} +1 -1
  4. package/dist/{BaseIcon-BTn_oML7.cjs → BaseIcon-NmXFeTkE.cjs} +1 -1
  5. package/dist/{DataTable-RUQ1G_6L.cjs → DataTable-lNwyPkUV.cjs} +1 -1
  6. package/dist/{DataTable-BI1tjiA_.js → DataTable-sGuRDRal.js} +2 -2
  7. package/dist/{Legend-B86sMXn7.cjs → Legend-Bdl_1DJO.cjs} +1 -1
  8. package/dist/{Legend-CRMHjbGw.js → Legend-DOn6UaCZ.js} +1 -1
  9. package/dist/{PackageVersion-CowXQ4IM.cjs → PackageVersion-VHviFq0W.cjs} +1 -1
  10. package/dist/{PackageVersion-Clrfvyd8.js → PackageVersion-ldwwWp9S.js} +1 -1
  11. package/dist/PenAndPaper-D-dkYPgf.cjs +1 -0
  12. package/dist/PenAndPaper-DSz98f49.js +299 -0
  13. package/dist/{Shape-DYNtRer6.js → Shape-CL9-IFMq.js} +1 -1
  14. package/dist/{Shape-qK3MNdTg.cjs → Shape-CR3-qftC.cjs} +1 -1
  15. package/dist/{Slicer-DFPDip5U.js → Slicer-BcsAfmLx.js} +75 -73
  16. package/dist/Slicer-DvUS1T9M.cjs +1 -0
  17. package/dist/{Title-710895ks.js → Title-Bsbq2v6j.js} +1 -1
  18. package/dist/{Title-CUN1T6KC.cjs → Title-Doa_KqSJ.cjs} +1 -1
  19. package/dist/{Tooltip-BapDtYOM.cjs → Tooltip-BfjsUhFm.cjs} +1 -1
  20. package/dist/{Tooltip-CPlG_yQU.js → Tooltip-DV_iWmTl.js} +1 -1
  21. package/dist/{index-DCsPHn9C.js → index-49zKC_pb.js} +1 -1
  22. package/dist/{index-CcykRspI.cjs → index-BIGzKAQq.cjs} +1 -1
  23. package/dist/style.css +1 -1
  24. package/dist/{useNestedProp-DdSlLeTW.js → useNestedProp-D1a8xzOZ.js} +1 -1
  25. package/dist/{useNestedProp-XtPlFP9O.cjs → useNestedProp-zN3-B_1z.cjs} +1 -1
  26. package/dist/{usePrinter-BcE45wW6.cjs → usePrinter-CuZzu5vy.cjs} +1 -1
  27. package/dist/{usePrinter-siG3sKWo.js → usePrinter-fXMN7kAV.js} +1 -1
  28. package/dist/{vue-data-ui-D_MTGc8j.js → vue-data-ui-Bn5_gi1g.js} +58 -58
  29. package/dist/{vue-data-ui-C0o1kZzC.cjs → vue-data-ui-mpBjz9RX.cjs} +1 -1
  30. package/dist/vue-data-ui.cjs +1 -1
  31. package/dist/vue-data-ui.js +1 -1
  32. package/dist/{vue-ui-3d-bar-C298Bf3V.cjs → vue-ui-3d-bar-BAPatZXD.cjs} +1 -1
  33. package/dist/{vue-ui-3d-bar-BdzWvy4d.js → vue-ui-3d-bar-BJSorf8P.js} +9 -9
  34. package/dist/{vue-ui-accordion-B7PTyFVk.cjs → vue-ui-accordion-Dao-6A6Q.cjs} +1 -1
  35. package/dist/{vue-ui-accordion-D4Er5Dy5.js → vue-ui-accordion-RGtr28JI.js} +3 -3
  36. package/dist/{vue-ui-age-pyramid-CHEdFQb7.js → vue-ui-age-pyramid--LgXr3QI.js} +10 -10
  37. package/dist/{vue-ui-age-pyramid-BIcB5vtU.cjs → vue-ui-age-pyramid-DS8bW0qo.cjs} +1 -1
  38. package/dist/{vue-ui-annotator-CqM_1HlB.js → vue-ui-annotator-DDp3s2Pq.js} +1 -1
  39. package/dist/{vue-ui-annotator-eGtZcHeb.cjs → vue-ui-annotator-fMW4he5T.cjs} +1 -1
  40. package/dist/{vue-ui-bullet-DBk50kIe.js → vue-ui-bullet-BhdTa7u3.js} +8 -8
  41. package/dist/{vue-ui-bullet-DURgZGgp.cjs → vue-ui-bullet-Ciw0R5nc.cjs} +1 -1
  42. package/dist/{vue-ui-candlestick-CP4Z-29b.cjs → vue-ui-candlestick-B1l0aBq_.cjs} +1 -1
  43. package/dist/{vue-ui-candlestick-Bo41qkGe.js → vue-ui-candlestick-Bf-YTcON.js} +11 -11
  44. package/dist/{vue-ui-carousel-table-CkNOqa9q.js → vue-ui-carousel-table-CYCpVrOn.js} +4 -4
  45. package/dist/{vue-ui-carousel-table-lMqx64wd.cjs → vue-ui-carousel-table-DXwE1huQ.cjs} +1 -1
  46. package/dist/{vue-ui-chestnut-CNWq-epB.js → vue-ui-chestnut-BsMLyk2U.js} +8 -8
  47. package/dist/{vue-ui-chestnut-qxzF2ND7.cjs → vue-ui-chestnut-D3uy5gQJ.cjs} +1 -1
  48. package/dist/{vue-ui-cursor-BEv39HVY.cjs → vue-ui-cursor-DKTzq5Rn.cjs} +1 -1
  49. package/dist/{vue-ui-cursor-B4m30Gqz.js → vue-ui-cursor-O0E8FmMB.js} +2 -2
  50. package/dist/{vue-ui-dashboard-DnoXstlp.cjs → vue-ui-dashboard-Cif9KLNp.cjs} +1 -1
  51. package/dist/{vue-ui-dashboard-BL9IgDDx.js → vue-ui-dashboard-DTQ6jkKX.js} +2 -2
  52. package/dist/{vue-ui-digits-CVPDJ6tl.js → vue-ui-digits-B6kqi621.js} +2 -2
  53. package/dist/{vue-ui-digits-D1RaU4V-.cjs → vue-ui-digits-Dd_-F0NM.cjs} +1 -1
  54. package/dist/{vue-ui-donut-CMC92CXL.cjs → vue-ui-donut-BjzOSsXF.cjs} +1 -1
  55. package/dist/{vue-ui-donut-C65SAJKb.js → vue-ui-donut-C8vdLwIN.js} +11 -11
  56. package/dist/{vue-ui-donut-evolution-7gIM4bVk.cjs → vue-ui-donut-evolution-B0HSRlIg.cjs} +1 -1
  57. package/dist/{vue-ui-donut-evolution-BFbBlmBx.js → vue-ui-donut-evolution-CmdF6deB.js} +11 -11
  58. package/dist/{vue-ui-dumbbell-OCo67ZKp.cjs → vue-ui-dumbbell-CEE76a-m.cjs} +1 -1
  59. package/dist/{vue-ui-dumbbell-BnxRfvv0.js → vue-ui-dumbbell-DUca_lht.js} +10 -10
  60. package/dist/{vue-ui-flow-Cra_F-tK.js → vue-ui-flow-Cvu1EVCF.js} +9 -9
  61. package/dist/{vue-ui-flow-BPnpYrzb.cjs → vue-ui-flow-DmhIaigU.cjs} +1 -1
  62. package/dist/{vue-ui-galaxy-DlJ7v0aD.js → vue-ui-galaxy-C3OsM7sZ.js} +11 -11
  63. package/dist/{vue-ui-galaxy-3zTk9Pr1.cjs → vue-ui-galaxy-Cu6CWFDj.cjs} +1 -1
  64. package/dist/{vue-ui-gauge-DcUNJZI1.cjs → vue-ui-gauge-BzjbsaR8.cjs} +1 -1
  65. package/dist/{vue-ui-gauge-CsqVvNxE.js → vue-ui-gauge-DbKQTx3Q.js} +7 -7
  66. package/dist/{vue-ui-gizmo-Peyy8li7.js → vue-ui-gizmo-CwcCktOd.js} +3 -3
  67. package/dist/{vue-ui-gizmo-BkkLoCyx.cjs → vue-ui-gizmo-D6kY6rq2.cjs} +1 -1
  68. package/dist/{vue-ui-heatmap-DYb831An.cjs → vue-ui-heatmap-DoJeKoTE.cjs} +1 -1
  69. package/dist/{vue-ui-heatmap-i4HFM04D.js → vue-ui-heatmap-z23AgiZJ.js} +10 -10
  70. package/dist/{vue-ui-kpi-gSKVVqZg.js → vue-ui-kpi-CkAs4UNa.js} +3 -3
  71. package/dist/{vue-ui-kpi-CCrdcv3r.cjs → vue-ui-kpi-CwrOzJTf.cjs} +1 -1
  72. package/dist/{vue-ui-mini-loader-CqutMcQI.cjs → vue-ui-mini-loader-BG5f652Q.cjs} +1 -1
  73. package/dist/{vue-ui-mini-loader-D7Jk1LJb.js → vue-ui-mini-loader-BL1hWVCl.js} +2 -2
  74. package/dist/{vue-ui-molecule-CwUObXAx.cjs → vue-ui-molecule-DZ5t0b99.cjs} +1 -1
  75. package/dist/{vue-ui-molecule-CgdepnhM.js → vue-ui-molecule-DwjLYP7w.js} +11 -11
  76. package/dist/{vue-ui-mood-radar-Bxro4962.js → vue-ui-mood-radar-DMyIiep_.js} +11 -11
  77. package/dist/{vue-ui-mood-radar-RQFKS7Br.cjs → vue-ui-mood-radar-DhoBjfBA.cjs} +1 -1
  78. package/dist/{vue-ui-nested-donuts-B7dXBejH.js → vue-ui-nested-donuts-BSraS34g.js} +11 -11
  79. package/dist/{vue-ui-nested-donuts-D8ZGqIGC.cjs → vue-ui-nested-donuts-DU3mpzzN.cjs} +1 -1
  80. package/dist/{vue-ui-onion-Dtt0kw8E.cjs → vue-ui-onion-B2evf74Q.cjs} +1 -1
  81. package/dist/{vue-ui-onion-i52wztm0.js → vue-ui-onion-BGK7q1Zm.js} +11 -11
  82. package/dist/{vue-ui-parallel-coordinate-plot-DNK0BrBy.cjs → vue-ui-parallel-coordinate-plot-CoZ2NNT-.cjs} +1 -1
  83. package/dist/{vue-ui-parallel-coordinate-plot-DUssrm08.js → vue-ui-parallel-coordinate-plot-CtbHbaMU.js} +12 -12
  84. package/dist/{vue-ui-quadrant-a_I5E71f.cjs → vue-ui-quadrant-1zd4EcHN.cjs} +1 -1
  85. package/dist/{vue-ui-quadrant-BORPtgQO.js → vue-ui-quadrant-b00dtEbu.js} +12 -12
  86. package/dist/{vue-ui-quick-chart-BpPDfK78.cjs → vue-ui-quick-chart-C2tGQ9jZ.cjs} +1 -1
  87. package/dist/{vue-ui-quick-chart-yb1FzVdt.js → vue-ui-quick-chart-C_aOAlYK.js} +9 -9
  88. package/dist/{vue-ui-radar-CoCbl19A.js → vue-ui-radar-CEmwdc5R.js} +12 -12
  89. package/dist/{vue-ui-radar-DZMngiqq.cjs → vue-ui-radar-CzPDR57N.cjs} +1 -1
  90. package/dist/{vue-ui-rating-D-zwuvLK.js → vue-ui-rating-Bcw4NMqy.js} +2 -2
  91. package/dist/{vue-ui-rating-nTJ8DDhG.cjs → vue-ui-rating-DC9ED1T9.cjs} +1 -1
  92. package/dist/{vue-ui-relation-circle-CW9qozhJ.js → vue-ui-relation-circle-CtoP92Nm.js} +7 -7
  93. package/dist/{vue-ui-relation-circle-Wj_yrVJc.cjs → vue-ui-relation-circle-S0rcVtyt.cjs} +1 -1
  94. package/dist/{vue-ui-rings-Bx2GEh6d.js → vue-ui-rings-CkWZ736Y.js} +11 -11
  95. package/dist/{vue-ui-rings-BZaZIGEz.cjs → vue-ui-rings-OZVey4XI.cjs} +1 -1
  96. package/dist/{vue-ui-scatter-C-i1NZgz.cjs → vue-ui-scatter-BJlIxqvN.cjs} +1 -1
  97. package/dist/{vue-ui-scatter-BARiPzro.js → vue-ui-scatter-D5revDjR.js} +12 -12
  98. package/dist/{vue-ui-screenshot-CuiJqlfo.js → vue-ui-screenshot-BnxlJEDM.js} +1 -1
  99. package/dist/{vue-ui-screenshot-CwOoftGV.cjs → vue-ui-screenshot-CBqgcSp4.cjs} +1 -1
  100. package/dist/{vue-ui-skeleton-DNuwx6_y.js → vue-ui-skeleton-CWI6cZZA.js} +3 -3
  101. package/dist/{vue-ui-skeleton-DpfJbsNA.cjs → vue-ui-skeleton-CoPAETjt.cjs} +1 -1
  102. package/dist/{vue-ui-smiley-BnX27B0k.js → vue-ui-smiley-E5BtjNd0.js} +2 -2
  103. package/dist/{vue-ui-smiley-DGE9NFBY.cjs → vue-ui-smiley-Zgsb3QsJ.cjs} +1 -1
  104. package/dist/{vue-ui-spark-trend-aW-de-rX.cjs → vue-ui-spark-trend-E_r6XBda.cjs} +1 -1
  105. package/dist/{vue-ui-spark-trend-CgCLrMox.js → vue-ui-spark-trend-_fM0ASpS.js} +5 -5
  106. package/dist/{vue-ui-sparkbar-BXku33sq.js → vue-ui-sparkbar-CzLduXwD.js} +4 -4
  107. package/dist/{vue-ui-sparkbar-BLUXUlTY.cjs → vue-ui-sparkbar-DrDGzkxU.cjs} +1 -1
  108. package/dist/{vue-ui-sparkgauge-Doi0iu0L.js → vue-ui-sparkgauge-CQEUdjHu.js} +4 -4
  109. package/dist/{vue-ui-sparkgauge-RTiKvSMp.cjs → vue-ui-sparkgauge-DnlFkJht.cjs} +1 -1
  110. package/dist/{vue-ui-sparkhistogram-BnMvXlAP.js → vue-ui-sparkhistogram-WU0X44HO.js} +5 -5
  111. package/dist/{vue-ui-sparkhistogram-C6AgJH1C.cjs → vue-ui-sparkhistogram-nfep88pb.cjs} +1 -1
  112. package/dist/{vue-ui-sparkline-DI7fq_MR.js → vue-ui-sparkline-C5pHShn8.js} +4 -4
  113. package/dist/{vue-ui-sparkline-DpVCQ6W9.cjs → vue-ui-sparkline-CTlY68K-.cjs} +1 -1
  114. package/dist/{vue-ui-sparkstackbar-oNnE5z1C.js → vue-ui-sparkstackbar-CD1igCtu.js} +4 -4
  115. package/dist/{vue-ui-sparkstackbar-Bvuq2sLW.cjs → vue-ui-sparkstackbar-DVNWhfXJ.cjs} +1 -1
  116. package/dist/{vue-ui-stackbar-6g7b3yyu.js → vue-ui-stackbar-B3PJuAxR.js} +12 -12
  117. package/dist/{vue-ui-stackbar-aWJDGIKV.cjs → vue-ui-stackbar-B8XzJVfQ.cjs} +1 -1
  118. package/dist/{vue-ui-strip-plot-GdjjVxMN.cjs → vue-ui-strip-plot-BU0Ze6mB.cjs} +1 -1
  119. package/dist/{vue-ui-strip-plot-BFM8HIM8.js → vue-ui-strip-plot-D6NvVi8T.js} +11 -11
  120. package/dist/{vue-ui-table-XOPmDCOB.cjs → vue-ui-table-BQD6a_aJ.cjs} +1 -1
  121. package/dist/{vue-ui-table-Cw4Yz-IE.js → vue-ui-table-BltUTp7w.js} +1 -1
  122. package/dist/{vue-ui-table-heatmap-DeRCR8l6.js → vue-ui-table-heatmap-Ci0x1CNV.js} +4 -4
  123. package/dist/{vue-ui-table-heatmap-Bh48bMuU.cjs → vue-ui-table-heatmap-DNQX2ssm.cjs} +1 -1
  124. package/dist/{vue-ui-table-sparkline-C25qj1w_.cjs → vue-ui-table-sparkline-BBmpe-6D.cjs} +1 -1
  125. package/dist/{vue-ui-table-sparkline-w3H-od91.js → vue-ui-table-sparkline-BnWCkMFe.js} +5 -5
  126. package/dist/{vue-ui-thermometer-BySEVhT8.js → vue-ui-thermometer-39qz-oq4.js} +7 -7
  127. package/dist/{vue-ui-thermometer-DZrusaGY.cjs → vue-ui-thermometer-BENJ73Pb.cjs} +1 -1
  128. package/dist/{vue-ui-timer-1p6J6hTn.cjs → vue-ui-timer-8_HQQdrC.cjs} +1 -1
  129. package/dist/{vue-ui-timer-BN-9a2lj.js → vue-ui-timer-CSo9NnGB.js} +5 -5
  130. package/dist/{vue-ui-tiremarks-EzYdOMyf.js → vue-ui-tiremarks-CkfxWhpz.js} +7 -7
  131. package/dist/{vue-ui-tiremarks-CvIJeWKE.cjs → vue-ui-tiremarks-Co5YUDDA.cjs} +1 -1
  132. package/dist/{vue-ui-treemap-CzNOr1iR.cjs → vue-ui-treemap-DZkCQEk5.cjs} +1 -1
  133. package/dist/{vue-ui-treemap-Da0f6vaF.js → vue-ui-treemap-I2YafkrE.js} +11 -11
  134. package/dist/{vue-ui-vertical-bar-D1cBfu5p.js → vue-ui-vertical-bar-Dz3M8sEI.js} +11 -11
  135. package/dist/{vue-ui-vertical-bar-B9shdfqo.cjs → vue-ui-vertical-bar-ul14mUdW.cjs} +1 -1
  136. package/dist/{vue-ui-waffle-DM2LsEP7.js → vue-ui-waffle-C5faN9Gl.js} +11 -11
  137. package/dist/{vue-ui-waffle-Cg-7Fazv.cjs → vue-ui-waffle-CL5knSlv.cjs} +1 -1
  138. package/dist/{vue-ui-wheel-B9cmixxi.js → vue-ui-wheel-BsEaNHzC.js} +7 -7
  139. package/dist/{vue-ui-wheel-C-JukdTy.cjs → vue-ui-wheel-Ct_1Npyv.cjs} +1 -1
  140. package/dist/{vue-ui-word-cloud-BLMWYOPy.cjs → vue-ui-word-cloud-81r_XQl3.cjs} +1 -1
  141. package/dist/{vue-ui-word-cloud-Baz7RXN2.js → vue-ui-word-cloud-Bf6l5rNU.js} +10 -10
  142. package/dist/{vue-ui-xy-BHeSkJQ3.cjs → vue-ui-xy-BaFVUMY0.cjs} +1 -1
  143. package/dist/{vue-ui-xy-DVnzVSqE.js → vue-ui-xy-CASWydww.js} +14 -14
  144. package/dist/{vue-ui-xy-canvas-DAd-B98z.cjs → vue-ui-xy-canvas-D3xs7lt5.cjs} +1 -1
  145. package/dist/{vue-ui-xy-canvas-A7PKnWBs.js → vue-ui-xy-canvas-DfO47Q2y.js} +11 -11
  146. package/package.json +1 -1
  147. package/dist/PenAndPaper-BQzgk5kO.js +0 -269
  148. package/dist/PenAndPaper-DBSxk9Xk.cjs +0 -1
  149. package/dist/Slicer-NlxLkUso.cjs +0 -1
@@ -1,269 +0,0 @@
1
- import { computed as P, ref as s, watch as z, openBlock as i, createElementBlock as d, normalizeStyle as y, createElementVNode as v, createVNode as h, onMounted as V, nextTick as U, onBeforeUnmount as Y, Fragment as T, normalizeClass as g, createCommentVNode as R, unref as A, withModifiers as _, renderList as H } from "vue";
2
- import { F as O, l as j, X as q } from "./index-DCsPHn9C.js";
3
- import w from "./BaseIcon-BX3x6oa7.js";
4
- import { _ as D } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
- const G = ["value"], J = { class: "icon" }, K = {
6
- __name: "ColorPicker",
7
- props: {
8
- value: {
9
- type: String,
10
- default: "#ffffff"
11
- },
12
- size: {
13
- type: String,
14
- default: "50px"
15
- }
16
- },
17
- emits: ["update:value"],
18
- setup(n, { emit: B }) {
19
- const a = n, l = P(() => ({
20
- backgroundColor: a.value,
21
- width: "100%",
22
- height: "100%",
23
- cursor: "pointer"
24
- })), u = s(null), x = () => {
25
- var r;
26
- (r = u.value) == null || r.click();
27
- }, p = (r) => {
28
- const c = r.target.value;
29
- B("update:value", c);
30
- }, f = P(() => O(a.value));
31
- return z(
32
- () => a.value,
33
- (r) => {
34
- u.value.value = r;
35
- }
36
- ), (r, c) => (i(), d("div", {
37
- style: y(l.value),
38
- class: "color-picker-wrapper",
39
- onClick: x
40
- }, [
41
- v("input", {
42
- ref_key: "colorInput",
43
- ref: u,
44
- type: "color",
45
- value: n.value,
46
- class: "hidden-input",
47
- onInput: p
48
- }, null, 40, G),
49
- v("div", J, [
50
- h(w, {
51
- name: "palette",
52
- stroke: f.value,
53
- size: 22
54
- }, null, 8, ["stroke"])
55
- ])
56
- ], 4));
57
- }
58
- }, Q = /* @__PURE__ */ D(K, [["__scopeId", "data-v-d3f01240"]]), W = {
59
- class: /* @__PURE__ */ g({
60
- "vue-ui-pen-and-paper-action": !0
61
- }),
62
- style: { padding: "0 !important" }
63
- }, Z = ["disabled"], ee = ["xmlns", "viewBox", "onTouchstart", "onTouchmove"], te = ["d", "stroke"], oe = ["d", "stroke"], ne = {
64
- __name: "PenAndPaper",
65
- props: {
66
- parent: {
67
- type: HTMLElement
68
- },
69
- backgroundColor: {
70
- type: String,
71
- default: "#FFFFFF"
72
- },
73
- color: {
74
- type: String,
75
- default: "#2D353C"
76
- },
77
- active: {
78
- type: Boolean,
79
- default: !1
80
- }
81
- },
82
- emits: ["close"],
83
- setup(n, { emit: B }) {
84
- const a = n, l = s([]), u = s([]), x = s("0 0 0 0"), p = s(a.color), f = P(() => j(a.color, 0.6));
85
- function r({ width: e, height: t }) {
86
- x.value = `0 0 ${e} ${t}`;
87
- }
88
- const c = s(null);
89
- V(() => {
90
- U(() => {
91
- if (a.parent) {
92
- c.value = new ResizeObserver((o) => {
93
- for (const b of o) {
94
- const { width: L, height: N } = b.contentRect;
95
- r({ width: L, height: N });
96
- }
97
- }), c.value.observe(a.parent);
98
- const { width: e, height: t } = a.parent.getBoundingClientRect();
99
- r({ width: e, height: t });
100
- }
101
- });
102
- }), Y(() => {
103
- c.value && c.value.disconnect();
104
- }), z(
105
- () => a.parent,
106
- (e) => {
107
- if (!e) return;
108
- const { width: t, height: o } = a.parent.getBoundingClientRect();
109
- r({ width: t, height: o });
110
- },
111
- { immediate: !0 }
112
- );
113
- const k = s(!1), m = s(""), C = s(null);
114
- function M(e) {
115
- if (!C.value) return;
116
- k.value = !0;
117
- const { x: t, y: o } = S(e);
118
- m.value = `M ${t} ${o}`;
119
- }
120
- function F(e) {
121
- if (!k.value || !C.value) return;
122
- const { x: t, y: o } = S(e);
123
- m.value += ` ${t} ${o}`;
124
- }
125
- function $() {
126
- k.value && (l.value.push(m.value), u.value = [], m.value = ""), k.value = !1;
127
- }
128
- function S(e) {
129
- if (!C.value) return { x: 0, y: 0 };
130
- const t = C.value.getBoundingClientRect();
131
- let o, b;
132
- return e.touches && e.touches.length ? (o = e.touches[0].clientX, b = e.touches[0].clientY) : (o = e.clientX, b = e.clientY), {
133
- x: o - t.left,
134
- y: b - t.top
135
- };
136
- }
137
- s(!1);
138
- function I() {
139
- if (l.value.length > 0) {
140
- const e = l.value.pop();
141
- u.value.push(e);
142
- }
143
- }
144
- function X() {
145
- if (u.value.length > 0) {
146
- const e = u.value.pop();
147
- l.value.push(e);
148
- }
149
- }
150
- function E() {
151
- l.value = [], u.value = [];
152
- }
153
- return (e, t) => (i(), d(T, null, [
154
- n.active ? (i(), d("div", {
155
- key: 0,
156
- "data-html2canvas-ignore": "",
157
- class: g({
158
- "vue-ui-pen-and-paper-actions": !0,
159
- visible: n.active
160
- })
161
- }, [
162
- v("button", {
163
- class: "vue-ui-pen-and-paper-action",
164
- style: y({
165
- backgroundColor: n.backgroundColor,
166
- border: `1px solid ${f.value}`
167
- }),
168
- onClick: t[0] || (t[0] = (o) => B("close"))
169
- }, [
170
- h(w, {
171
- name: "close",
172
- stroke: n.color
173
- }, null, 8, ["stroke"])
174
- ], 4),
175
- v("button", W, [
176
- h(Q, {
177
- value: p.value,
178
- "onUpdate:value": t[1] || (t[1] = (o) => p.value = o)
179
- }, null, 8, ["value"])
180
- ]),
181
- v("button", {
182
- class: g({
183
- "vue-ui-pen-and-paper-action": !0,
184
- "vue-ui-pen-and-paper-action-disabled": !l.value.length
185
- }),
186
- disabled: !l.value.length,
187
- style: y({
188
- backgroundColor: n.backgroundColor,
189
- border: `1px solid ${f.value}`
190
- }),
191
- onClick: I
192
- }, [
193
- h(w, {
194
- name: "restart",
195
- stroke: n.color
196
- }, null, 8, ["stroke"])
197
- ], 14, Z),
198
- v("button", {
199
- class: g({
200
- "vue-ui-pen-and-paper-action": !0,
201
- "vue-ui-pen-and-paper-action-disabled": !u.value.length
202
- }),
203
- style: y({
204
- backgroundColor: n.backgroundColor,
205
- border: `1px solid ${f.value}`
206
- }),
207
- onClick: X
208
- }, [
209
- h(w, {
210
- name: "restart",
211
- stroke: n.color,
212
- style: { transform: "scaleX(-1)" }
213
- }, null, 8, ["stroke"])
214
- ], 6),
215
- v("button", {
216
- class: g([{
217
- "vue-ui-pen-and-paper-action": !0,
218
- "vue-ui-pen-and-paper-action-disabled": !l.value.length
219
- }, "vue-ui-pen-and-paper-action"]),
220
- style: y({
221
- backgroundColor: n.backgroundColor,
222
- border: `1px solid ${f.value}`
223
- }),
224
- onClick: E
225
- }, [
226
- h(w, {
227
- name: "trash",
228
- stroke: n.color
229
- }, null, 8, ["stroke"])
230
- ], 6)
231
- ], 2)) : R("", !0),
232
- (i(), d("svg", {
233
- ref_key: "svgElement",
234
- ref: C,
235
- xmlns: A(q),
236
- viewBox: x.value,
237
- class: g({
238
- "vue-ui-pen-and-paper": !0,
239
- inactive: !n.active
240
- }),
241
- onMousedown: M,
242
- onMousemove: F,
243
- onMouseup: $,
244
- onMouseleave: $,
245
- onTouchstart: _(M, ["prevent"]),
246
- onTouchmove: _(F, ["prevent"]),
247
- onTouchend: $
248
- }, [
249
- (i(!0), d(T, null, H(l.value, (o) => (i(), d("path", {
250
- class: "vue-ui-pen-and-paper-path",
251
- key: o,
252
- d: o,
253
- stroke: p.value,
254
- fill: "none"
255
- }, null, 8, te))), 128)),
256
- k.value ? (i(), d("path", {
257
- key: 0,
258
- class: "vue-ui-pen-and-paper-path vue-ui-pen-and-paper-path-drawing",
259
- d: m.value,
260
- stroke: p.value,
261
- fill: "none"
262
- }, null, 8, oe)) : R("", !0)
263
- ], 42, ee))
264
- ], 64));
265
- }
266
- }, se = /* @__PURE__ */ D(ne, [["__scopeId", "data-v-634187a1"]]);
267
- export {
268
- se as P
269
- };
@@ -1 +0,0 @@
1
- "use strict";const e=require("vue"),y=require("./index-CcykRspI.cjs"),k=require("./BaseIcon-BTn_oML7.cjs"),x=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),$=["value"],S={class:"icon"},M={__name:"ColorPicker",props:{value:{type:String,default:"#ffffff"},size:{type:String,default:"50px"}},emits:["update:value"],setup(l,{emit:g}){const a=l,r=e.computed(()=>({backgroundColor:a.value,width:"100%",height:"100%",cursor:"pointer"})),c=e.ref(null),h=()=>{var u;(u=c.value)==null||u.click()},i=u=>{const s=u.target.value;g("update:value",s)},d=e.computed(()=>y.adaptColorToBackground(a.value));return e.watch(()=>a.value,u=>{c.value.value=u}),(u,s)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle(r.value),class:"color-picker-wrapper",onClick:h},[e.createElementVNode("input",{ref_key:"colorInput",ref:c,type:"color",value:l.value,class:"hidden-input",onInput:i},null,40,$),e.createElementVNode("div",S,[e.createVNode(k.default,{name:"palette",stroke:d.value,size:22},null,8,["stroke"])])],4))}},_=x._export_sfc(M,[["__scopeId","data-v-d3f01240"]]),F={class:e.normalizeClass({"vue-ui-pen-and-paper-action":!0}),style:{padding:"0 !important"}},T=["disabled"],R=["xmlns","viewBox","onTouchstart","onTouchmove"],D=["d","stroke"],I=["d","stroke"],L={__name:"PenAndPaper",props:{parent:{type:HTMLElement},backgroundColor:{type:String,default:"#FFFFFF"},color:{type:String,default:"#2D353C"},active:{type:Boolean,default:!1}},emits:["close"],setup(l,{emit:g}){const a=l,r=e.ref([]),c=e.ref([]),h=e.ref("0 0 0 0"),i=e.ref(a.color),d=e.computed(()=>y.lightenHexColor(a.color,.6));function u({width:t,height:o}){h.value=`0 0 ${t} ${o}`}const s=e.ref(null);e.onMounted(()=>{e.nextTick(()=>{if(a.parent){s.value=new ResizeObserver(n=>{for(const m of n){const{width:z,height:P}=m.contentRect;u({width:z,height:P})}}),s.value.observe(a.parent);const{width:t,height:o}=a.parent.getBoundingClientRect();u({width:t,height:o})}})}),e.onBeforeUnmount(()=>{s.value&&s.value.disconnect()}),e.watch(()=>a.parent,t=>{if(!t)return;const{width:o,height:n}=a.parent.getBoundingClientRect();u({width:o,height:n})},{immediate:!0});const v=e.ref(!1),p=e.ref(""),f=e.ref(null);function b(t){if(!f.value)return;v.value=!0;const{x:o,y:n}=w(t);p.value=`M ${o} ${n}`}function B(t){if(!v.value||!f.value)return;const{x:o,y:n}=w(t);p.value+=` ${o} ${n}`}function C(){v.value&&(r.value.push(p.value),c.value=[],p.value=""),v.value=!1}function w(t){if(!f.value)return{x:0,y:0};const o=f.value.getBoundingClientRect();let n,m;return t.touches&&t.touches.length?(n=t.touches[0].clientX,m=t.touches[0].clientY):(n=t.clientX,m=t.clientY),{x:n-o.left,y:m-o.top}}e.ref(!1);function E(){if(r.value.length>0){const t=r.value.pop();c.value.push(t)}}function V(){if(c.value.length>0){const t=c.value.pop();r.value.push(t)}}function N(){r.value=[],c.value=[]}return(t,o)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[l.active?(e.openBlock(),e.createElementBlock("div",{key:0,"data-html2canvas-ignore":"",class:e.normalizeClass({"vue-ui-pen-and-paper-actions":!0,visible:l.active})},[e.createElementVNode("button",{class:"vue-ui-pen-and-paper-action",style:e.normalizeStyle({backgroundColor:l.backgroundColor,border:`1px solid ${d.value}`}),onClick:o[0]||(o[0]=n=>g("close"))},[e.createVNode(k.default,{name:"close",stroke:l.color},null,8,["stroke"])],4),e.createElementVNode("button",F,[e.createVNode(_,{value:i.value,"onUpdate:value":o[1]||(o[1]=n=>i.value=n)},null,8,["value"])]),e.createElementVNode("button",{class:e.normalizeClass({"vue-ui-pen-and-paper-action":!0,"vue-ui-pen-and-paper-action-disabled":!r.value.length}),disabled:!r.value.length,style:e.normalizeStyle({backgroundColor:l.backgroundColor,border:`1px solid ${d.value}`}),onClick:E},[e.createVNode(k.default,{name:"restart",stroke:l.color},null,8,["stroke"])],14,T),e.createElementVNode("button",{class:e.normalizeClass({"vue-ui-pen-and-paper-action":!0,"vue-ui-pen-and-paper-action-disabled":!c.value.length}),style:e.normalizeStyle({backgroundColor:l.backgroundColor,border:`1px solid ${d.value}`}),onClick:V},[e.createVNode(k.default,{name:"restart",stroke:l.color,style:{transform:"scaleX(-1)"}},null,8,["stroke"])],6),e.createElementVNode("button",{class:e.normalizeClass([{"vue-ui-pen-and-paper-action":!0,"vue-ui-pen-and-paper-action-disabled":!r.value.length},"vue-ui-pen-and-paper-action"]),style:e.normalizeStyle({backgroundColor:l.backgroundColor,border:`1px solid ${d.value}`}),onClick:N},[e.createVNode(k.default,{name:"trash",stroke:l.color},null,8,["stroke"])],6)],2)):e.createCommentVNode("",!0),(e.openBlock(),e.createElementBlock("svg",{ref_key:"svgElement",ref:f,xmlns:e.unref(y.XMLNS),viewBox:h.value,class:e.normalizeClass({"vue-ui-pen-and-paper":!0,inactive:!l.active}),onMousedown:b,onMousemove:B,onMouseup:C,onMouseleave:C,onTouchstart:e.withModifiers(b,["prevent"]),onTouchmove:e.withModifiers(B,["prevent"]),onTouchend:C},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,n=>(e.openBlock(),e.createElementBlock("path",{class:"vue-ui-pen-and-paper-path",key:n,d:n,stroke:i.value,fill:"none"},null,8,D))),128)),v.value?(e.openBlock(),e.createElementBlock("path",{key:0,class:"vue-ui-pen-and-paper-path vue-ui-pen-and-paper-path-drawing",d:p.value,stroke:i.value,fill:"none"},null,8,I)):e.createCommentVNode("",!0)],42,R))],64))}},X=x._export_sfc(L,[["__scopeId","data-v-634187a1"]]);exports.PenAndPaper=X;
@@ -1 +0,0 @@
1
- "use strict";const e=require("vue"),_=require("./BaseIcon-BTn_oML7.cjs"),C=require("./useResponsive-BJ7DTGpm.cjs"),v=require("./index-CcykRspI.cjs"),O=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),w=a=>(e.pushScopeId("data-v-54291cff"),a=a(),e.popScopeId(),a),T={"data-html2canvas-ignore":"",style:{padding:"0 24px"}},U={class:"vue-data-ui-slicer-labels",style:{position:"relative","z-index":"1","pointer-events":"none"}},W={key:0,style:{width:"100%",position:"relative"}},j={key:0,class:"minimap",style:{width:"100%"}},X=["xmlns","viewBox"],Z=["id"],G=["stop-color"],H=w(()=>e.createElementVNode("stop",{offset:"100%","stop-color":"transparent"},null,-1)),J=["d","stroke"],K=["x","width","height","fill","rx"],Q=["d","fill"],Y=["x","width","height","fill"],ee=["x","width","height","fill"],te=["d","fill"],le=["d","stroke"],ae=["cx","cy","stroke","fill"],ne=["cx","cy","stroke","fill"],oe=["x1","x2","y2","stroke"],ie=["x","height","width","onMouseenter"],re=w(()=>e.createElementVNode("div",{class:"slider-track"},null,-1)),ue=["min","max"],se=["min","max"],ce={__name:"Slicer",props:{background:{type:String,default:"#FFFFFF"},borderColor:{type:String,default:"#FFFFFF"},fontSize:{type:Number,default:14},labelLeft:{type:String,default:""},labelRight:{type:String,default:""},textColor:{type:String,default:"#1A1A1A"},inputColor:{type:String,default:"#1A1A1A"},max:{type:Number,default:0},min:{type:Number,default:0},selectColor:{type:String,default:"#4A4A4A"},useResetSlot:{type:Boolean,default:!1},valueStart:{type:[Number,String],default:0},valueEnd:{type:[Number,String],default:0},minimap:{type:Array,default:[]},smoothMinimap:{type:Boolean,default:!1},minimapSelectedColor:{type:String,default:"#1f77b4"},minimapSelectionRadius:{type:Number,default:12},minimapLineColor:{type:String,default:"#2D353C"},minimapSelectedColorOpacity:{type:Number,default:.2},minimapSelectedIndex:{type:Number,default:null},minimapIndicatorColor:{type:String,default:"#2D353C"}},emits:["update:start","update:end","reset","trapMouse"],setup(a,{emit:h}){const t=a;e.useCssVars(l=>({e0176a96:$.value,"27e9d329":f.value,"22b19dda":z.value,"081f1459":a.selectColor,"12e0ab32":B.value}));const r=e.ref(t.min),u=e.ref(t.max),p=e.computed(()=>!!t.minimap.length),g=e.ref(v.createUid()),V=e.computed(()=>{const l=t.max-t.min,o=(r.value-t.min)/l*100,i=(u.value-t.min)/l*100;return{left:`${o}%`,width:`${i-o}%`,background:t.selectColor}}),$=e.computed(()=>t.inputColor),B=e.computed(()=>t.background),z=e.computed(()=>`${t.selectColor}33`),f=e.computed(()=>t.borderColor),k=e.computed(()=>{let l=[];for(let o=0;o<t.minimap.length;o+=1)l.push(o);return l});function N(){h("reset")}function L(){Number(r.value)>Number(u.value)-1&&(r.value=Number(u.value)-1),h("update:start",Number(r.value))}function M(){Number(u.value)<Number(r.value)+1&&(u.value=Number(r.value)+1),h("update:end",Number(u.value))}e.watch(()=>t.min,l=>{Number(r.value)<Number(l)&&(r.value=Number(l)),Number(u.value)<Number(l)&&(u.value=Number(l))}),e.watch(()=>t.max,l=>{Number(r.value)>Number(l)&&(r.value=Number(l)),Number(u.value)>Number(l)&&(u.value=Number(l))});const x=e.ref(null),n=e.ref({width:1,height:1}),E=e.ref(null);e.onMounted(()=>{if(p.value){const l=C.throttle(()=>{const{width:o,height:i}=C.useResponsive({chart:x.value});n.value.width=o,n.value.height=i-47});E.value=new ResizeObserver(l),E.value.observe(x.value)}});const s=e.computed(()=>t.minimap.length?n.value.width/t.minimap.length:0),c=e.computed(()=>{if(!t.minimap.length)return[];const l=Math.max(...t.minimap),o=Math.min(...t.minimap)-10,i=l-(o>0?0:o),d=t.minimap.map((A,q)=>{const D=A-o;return{x:n.value.width/t.minimap.length*q+s.value/2,y:n.value.height-D/i*(n.value.height*.9)}}),S=t.smoothMinimap?v.createSmoothPath(d):v.createStraightPath(d),b=[...d].slice(t.valueStart,t.valueEnd),R=t.smoothMinimap?v.createSmoothPath(b):v.createStraightPath(b);return{fullSet:S,selectionSet:R,sliced:b,firstPlot:d[t.valueStart],lastPlot:d[t.valueEnd-1]}}),m=e.computed(()=>({x:s.value*r.value+s.value/2,width:n.value.width*((u.value-r.value)/t.max)-s.value})),F=e.computed(()=>({left:0,color:t.textColor,fontSize:`${t.fontSize}px`,top:p.value?"28px":"-28px",pointerEvents:"none"})),I=e.computed(()=>({right:0,color:t.textColor,fontSize:`${t.fontSize}px`,top:p.value?"28px":"-28px",direction:"rtl",pointerEvents:"none"})),y=e.ref(t.minimapSelectedIndex);e.watch(()=>t.minimapSelectedIndex,l=>{y.value=l+t.valueStart},{immediate:!0});function P(l){y.value=l,l>=t.valueStart&&l<t.valueEnd&&h("trapMouse",l-t.valueStart)}return(l,o)=>(e.openBlock(),e.createElementBlock("div",T,[e.createElementVNode("div",U,[a.valueStart>0||a.valueEnd<a.max?(e.openBlock(),e.createElementBlock("div",W,[a.useResetSlot?e.renderSlot(l.$slots,"reset-action",{key:1,reset:N},void 0,!0):(e.openBlock(),e.createElementBlock("button",{key:0,"data-cy-reset":"",tabindex:"0",role:"button",class:"vue-data-ui-refresh-button",style:e.normalizeStyle({top:p.value?"36px":"-16px",pointerEvents:"all !important"}),onClick:N},[e.createVNode(_.default,{name:"refresh",stroke:a.textColor},null,8,["stroke"])],4))])):e.createCommentVNode("",!0)]),e.createElementVNode("div",{class:"double-range-slider",ref_key:"minimapWrapper",ref:x,style:{"z-index":"0"}},[p.value?(e.openBlock(),e.createElementBlock("div",j,[(e.openBlock(),e.createElementBlock("svg",{xmlns:e.unref(v.XMLNS),viewBox:`0 0 ${n.value.width<0?0:n.value.width} ${n.value.height<0?0:n.value.height}`},[e.createElementVNode("defs",null,[e.createElementVNode("linearGradient",{id:g.value,x1:"0%",y1:"0%",x2:"0%",y2:"100%"},[e.createElementVNode("stop",{offset:"0%","stop-color":`${a.minimapLineColor}50`},null,8,G),H],8,Z)]),e.createElementVNode("path",{d:`M${c.value.fullSet}`,stroke:`${a.minimapLineColor}`,fill:"none","stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round",style:{opacity:"1"}},null,8,J),e.createElementVNode("rect",{x:m.value.x,width:m.value.width<0?0:m.value.width,height:n.value.height,y:0,fill:f.value,rx:a.minimapSelectionRadius,stroke:"none"},null,8,K),e.createElementVNode("path",{d:`M${s.value/2},${n.value.height} ${c.value.fullSet} L${n.value.width-s.value/2},${n.value.height}Z`,fill:`url(#${g.value})`,stroke:"none",style:{opacity:"1"}},null,8,Q),e.createElementVNode("rect",{x:m.value.x,width:m.value.width<0?0:m.value.width,height:n.value.height,y:0,fill:f.value},null,8,Y),e.createElementVNode("rect",{x:m.value.x,width:m.value.width<0?0:m.value.width,height:n.value.height,y:0,fill:a.minimapSelectedColor,style:e.normalizeStyle({opacity:a.minimapSelectedColorOpacity})},null,12,ee),e.createElementVNode("path",{d:`M${c.value.sliced[0].x},${n.value.height} ${c.value.selectionSet} L${c.value.sliced.at(-1).x},${n.value.height}Z`,fill:`url(#${g.value})`,stroke:"none",style:{opacity:"1"}},null,8,te),e.createElementVNode("path",{d:`M ${c.value.selectionSet}`,stroke:`${a.minimapLineColor}`,fill:"transparent","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,le),e.createElementVNode("circle",{cx:c.value.firstPlot.x,cy:c.value.firstPlot.y,"stroke-width":"0.5",stroke:f.value,r:"3",fill:a.minimapLineColor},null,8,ae),e.createElementVNode("circle",{cx:c.value.lastPlot.x,cy:c.value.lastPlot.y,"stroke-width":"0.5",stroke:f.value,r:"3",fill:a.minimapLineColor},null,8,ne),y.value!==null?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(k.value,(i,d)=>(e.openBlock(),e.createElementBlock("g",null,[y.value===i&&i>=a.valueStart&&i<a.valueEnd?(e.openBlock(),e.createElementBlock("line",{key:0,x1:s.value*d+s.value/2,x2:s.value*d+s.value/2,y1:0,y2:n.value.height,stroke:a.minimapIndicatorColor,"stroke-linecap":"round","stroke-dasharray":"2","stroke-width":"1"},null,8,oe)):e.createCommentVNode("",!0)]))),256)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.value,(i,d)=>(e.openBlock(),e.createElementBlock("rect",{x:s.value*d,y:0,height:n.value.height,width:s.value,fill:"transparent",style:{"pointer-events":"all !important"},onMouseenter:S=>P(i),onMouseleave:o[0]||(o[0]=S=>{y.value=null,h("trapMouse",null)})},null,40,ie))),256))],8,X))])):e.createCommentVNode("",!0),re,e.createElementVNode("div",{class:"range-highlight",style:e.normalizeStyle(V.value)},null,4),e.withDirectives(e.createElementVNode("input",{type:"range",class:"range-left",min:a.min,max:a.max,"onUpdate:modelValue":o[1]||(o[1]=i=>r.value=i),onInput:L},null,40,ue),[[e.vModelText,r.value]]),e.createElementVNode("div",{class:"thumb-label thumb-label-left",style:e.normalizeStyle(F.value)},e.toDisplayString(a.labelLeft),5),e.withDirectives(e.createElementVNode("input",{type:"range",class:"range-right",min:a.min,max:a.max,"onUpdate:modelValue":o[2]||(o[2]=i=>u.value=i),onInput:M},null,40,se),[[e.vModelText,u.value]]),e.createElementVNode("div",{class:"thumb-label thumb-label-right",style:e.normalizeStyle(I.value)},e.toDisplayString(a.labelRight),5)],512)]))}},de=O._export_sfc(ce,[["__scopeId","data-v-54291cff"]]);exports.Slicer=de;