vue-data-ui 2.4.4 → 2.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-W6XO2WVI.cjs → Arrow-BeQLfJqp.cjs} +1 -1
- package/dist/{Arrow-AxsI-FAh.js → Arrow-Dvaq-qLp.js} +1 -1
- package/dist/{BaseIcon-BTn_oML7.cjs → BaseIcon-BQM6PtJu.cjs} +1 -1
- package/dist/{BaseIcon-BX3x6oa7.js → BaseIcon-D9DRVW03.js} +1 -1
- package/dist/{DataTable-RUQ1G_6L.cjs → DataTable-DO2GAcBm.cjs} +1 -1
- package/dist/{DataTable-BI1tjiA_.js → DataTable-rs_YrvMR.js} +2 -2
- package/dist/{Legend-B86sMXn7.cjs → Legend-BoBvZGqQ.cjs} +1 -1
- package/dist/{Legend-CRMHjbGw.js → Legend-DrmUpnIK.js} +1 -1
- package/dist/{PackageVersion-Clrfvyd8.js → PackageVersion-D9rYHrFZ.js} +1 -1
- package/dist/{PackageVersion-CowXQ4IM.cjs → PackageVersion-DdLmDkTt.cjs} +1 -1
- package/dist/PenAndPaper-C-KjtyNA.js +308 -0
- package/dist/PenAndPaper-DyMNuRla.cjs +1 -0
- package/dist/{Shape-qK3MNdTg.cjs → Shape-BGqIhzPX.cjs} +1 -1
- package/dist/{Shape-DYNtRer6.js → Shape-CBrmBvYy.js} +1 -1
- package/dist/{Slicer-DFPDip5U.js → Slicer-4R6np1wa.js} +2 -2
- package/dist/{Slicer-NlxLkUso.cjs → Slicer-BLkkkNUl.cjs} +1 -1
- package/dist/{Title-CUN1T6KC.cjs → Title-Dn00hErp.cjs} +1 -1
- package/dist/{Title-710895ks.js → Title-W7iJGPjg.js} +1 -1
- package/dist/{Tooltip-BapDtYOM.cjs → Tooltip-DJiwKA4y.cjs} +1 -1
- package/dist/{Tooltip-CPlG_yQU.js → Tooltip-Pv3Bhir5.js} +1 -1
- package/dist/{index-DCsPHn9C.js → index-C1GB0E49.js} +1 -1
- package/dist/{index-CcykRspI.cjs → index-C9HllqQA.cjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-DdSlLeTW.js → useNestedProp-CNAPgW6E.js} +1 -1
- package/dist/{useNestedProp-XtPlFP9O.cjs → useNestedProp-DOr0hj4s.cjs} +1 -1
- package/dist/{usePrinter-BcE45wW6.cjs → usePrinter-FSAw5pod.cjs} +1 -1
- package/dist/{usePrinter-siG3sKWo.js → usePrinter-y5uHyknw.js} +1 -1
- package/dist/{vue-data-ui-D_MTGc8j.js → vue-data-ui-Bg5KOKEX.js} +58 -58
- package/dist/{vue-data-ui-C0o1kZzC.cjs → vue-data-ui-Bnkz3Xmu.cjs} +1 -1
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-BdzWvy4d.js → vue-ui-3d-bar-mUrcbG6J.js} +9 -9
- package/dist/{vue-ui-3d-bar-C298Bf3V.cjs → vue-ui-3d-bar-sjkBzHFn.cjs} +1 -1
- package/dist/{vue-ui-accordion-B7PTyFVk.cjs → vue-ui-accordion-BkUGNe2H.cjs} +1 -1
- package/dist/{vue-ui-accordion-D4Er5Dy5.js → vue-ui-accordion-DWyRC3-h.js} +3 -3
- package/dist/{vue-ui-age-pyramid-BIcB5vtU.cjs → vue-ui-age-pyramid-CKQ8OHuS.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-CHEdFQb7.js → vue-ui-age-pyramid-CVktvXpY.js} +10 -10
- package/dist/{vue-ui-annotator-CqM_1HlB.js → vue-ui-annotator-Cp8KDkuP.js} +1 -1
- package/dist/{vue-ui-annotator-eGtZcHeb.cjs → vue-ui-annotator-DSJ25l4s.cjs} +1 -1
- package/dist/{vue-ui-bullet-DURgZGgp.cjs → vue-ui-bullet-Bg3TPFgV.cjs} +1 -1
- package/dist/{vue-ui-bullet-DBk50kIe.js → vue-ui-bullet-D4atsFQx.js} +8 -8
- package/dist/{vue-ui-candlestick-CP4Z-29b.cjs → vue-ui-candlestick-BhdG9CY1.cjs} +1 -1
- package/dist/{vue-ui-candlestick-Bo41qkGe.js → vue-ui-candlestick-DUNyCQ6Z.js} +11 -11
- package/dist/{vue-ui-carousel-table-CkNOqa9q.js → vue-ui-carousel-table-BRrYpr-2.js} +4 -4
- package/dist/{vue-ui-carousel-table-lMqx64wd.cjs → vue-ui-carousel-table-DF4FhrBd.cjs} +1 -1
- package/dist/{vue-ui-chestnut-qxzF2ND7.cjs → vue-ui-chestnut-BLBS9QO2.cjs} +1 -1
- package/dist/{vue-ui-chestnut-CNWq-epB.js → vue-ui-chestnut-CjS4qC_J.js} +8 -8
- package/dist/{vue-ui-cursor-B4m30Gqz.js → vue-ui-cursor-C3SpabMF.js} +2 -2
- package/dist/{vue-ui-cursor-BEv39HVY.cjs → vue-ui-cursor-DzVt5_py.cjs} +1 -1
- package/dist/{vue-ui-dashboard-BL9IgDDx.js → vue-ui-dashboard-BCOKtsyJ.js} +2 -2
- package/dist/{vue-ui-dashboard-DnoXstlp.cjs → vue-ui-dashboard-CIv7W8Yn.cjs} +1 -1
- package/dist/{vue-ui-digits-CVPDJ6tl.js → vue-ui-digits-DaMKAZkt.js} +2 -2
- package/dist/{vue-ui-digits-D1RaU4V-.cjs → vue-ui-digits-yNfQgOLZ.cjs} +1 -1
- package/dist/{vue-ui-donut-C65SAJKb.js → vue-ui-donut-B_-VAqBw.js} +11 -11
- package/dist/{vue-ui-donut-CMC92CXL.cjs → vue-ui-donut-Bo4SbdEe.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-BFbBlmBx.js → vue-ui-donut-evolution-C9TXFzCm.js} +11 -11
- package/dist/{vue-ui-donut-evolution-7gIM4bVk.cjs → vue-ui-donut-evolution-DOPY3I3Q.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-BnxRfvv0.js → vue-ui-dumbbell-BP_Vf_u2.js} +10 -10
- package/dist/{vue-ui-dumbbell-OCo67ZKp.cjs → vue-ui-dumbbell-Cgwng71s.cjs} +1 -1
- package/dist/{vue-ui-flow-BPnpYrzb.cjs → vue-ui-flow-BiQj4v8i.cjs} +1 -1
- package/dist/{vue-ui-flow-Cra_F-tK.js → vue-ui-flow-DHoxK4t1.js} +9 -9
- package/dist/{vue-ui-galaxy-3zTk9Pr1.cjs → vue-ui-galaxy-C5ZaT8pw.cjs} +1 -1
- package/dist/{vue-ui-galaxy-DlJ7v0aD.js → vue-ui-galaxy-DuLPsC4Q.js} +11 -11
- package/dist/{vue-ui-gauge-DcUNJZI1.cjs → vue-ui-gauge-26eHgOjR.cjs} +1 -1
- package/dist/{vue-ui-gauge-CsqVvNxE.js → vue-ui-gauge-BhrXiD4S.js} +7 -7
- package/dist/{vue-ui-gizmo-BkkLoCyx.cjs → vue-ui-gizmo-Bb_SWCsE.cjs} +1 -1
- package/dist/{vue-ui-gizmo-Peyy8li7.js → vue-ui-gizmo-D3kBYI1G.js} +3 -3
- package/dist/{vue-ui-heatmap-DYb831An.cjs → vue-ui-heatmap-Bc4HvgMk.cjs} +1 -1
- package/dist/{vue-ui-heatmap-i4HFM04D.js → vue-ui-heatmap-wjsvn1_e.js} +10 -10
- package/dist/{vue-ui-kpi-CCrdcv3r.cjs → vue-ui-kpi-BbvfVZn0.cjs} +1 -1
- package/dist/{vue-ui-kpi-gSKVVqZg.js → vue-ui-kpi-DLJuo47I.js} +3 -3
- package/dist/{vue-ui-mini-loader-CqutMcQI.cjs → vue-ui-mini-loader-BaxwhF7o.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-D7Jk1LJb.js → vue-ui-mini-loader-D4aLvv-D.js} +2 -2
- package/dist/{vue-ui-molecule-CgdepnhM.js → vue-ui-molecule-DXpMMgdW.js} +11 -11
- package/dist/{vue-ui-molecule-CwUObXAx.cjs → vue-ui-molecule-ZqAJHh6x.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-Bxro4962.js → vue-ui-mood-radar-B_uWY92C.js} +11 -11
- package/dist/{vue-ui-mood-radar-RQFKS7Br.cjs → vue-ui-mood-radar-BhteAPWH.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-B7dXBejH.js → vue-ui-nested-donuts-By32x0Y7.js} +11 -11
- package/dist/{vue-ui-nested-donuts-D8ZGqIGC.cjs → vue-ui-nested-donuts-ClgkX1-p.cjs} +1 -1
- package/dist/{vue-ui-onion-Dtt0kw8E.cjs → vue-ui-onion-BdIxJpfA.cjs} +1 -1
- package/dist/{vue-ui-onion-i52wztm0.js → vue-ui-onion-dQTXKNju.js} +11 -11
- package/dist/{vue-ui-parallel-coordinate-plot-DUssrm08.js → vue-ui-parallel-coordinate-plot-CTF9Ujab.js} +12 -12
- package/dist/{vue-ui-parallel-coordinate-plot-DNK0BrBy.cjs → vue-ui-parallel-coordinate-plot-D6MUp-5W.cjs} +1 -1
- package/dist/{vue-ui-quadrant-a_I5E71f.cjs → vue-ui-quadrant-CArA4Vmm.cjs} +1 -1
- package/dist/{vue-ui-quadrant-BORPtgQO.js → vue-ui-quadrant-Coqh0pYO.js} +12 -12
- package/dist/{vue-ui-quick-chart-BpPDfK78.cjs → vue-ui-quick-chart-6Av74TTC.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-yb1FzVdt.js → vue-ui-quick-chart-Bfdddr_B.js} +9 -9
- package/dist/{vue-ui-radar-CoCbl19A.js → vue-ui-radar-BpdGMVHw.js} +12 -12
- package/dist/{vue-ui-radar-DZMngiqq.cjs → vue-ui-radar-CLr-gu1X.cjs} +1 -1
- package/dist/{vue-ui-rating-D-zwuvLK.js → vue-ui-rating-B-YedcK0.js} +2 -2
- package/dist/{vue-ui-rating-nTJ8DDhG.cjs → vue-ui-rating-KFJoH-JV.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-CW9qozhJ.js → vue-ui-relation-circle-BLVThOqT.js} +7 -7
- package/dist/{vue-ui-relation-circle-Wj_yrVJc.cjs → vue-ui-relation-circle-DuGQKFor.cjs} +1 -1
- package/dist/{vue-ui-rings-Bx2GEh6d.js → vue-ui-rings-BGeYkj-O.js} +11 -11
- package/dist/{vue-ui-rings-BZaZIGEz.cjs → vue-ui-rings-DzgehQZ5.cjs} +1 -1
- package/dist/{vue-ui-scatter-BARiPzro.js → vue-ui-scatter-CsBPCCco.js} +12 -12
- package/dist/{vue-ui-scatter-C-i1NZgz.cjs → vue-ui-scatter-jPnr8qI0.cjs} +1 -1
- package/dist/{vue-ui-screenshot-CwOoftGV.cjs → vue-ui-screenshot-1nXVH-hp.cjs} +1 -1
- package/dist/{vue-ui-screenshot-CuiJqlfo.js → vue-ui-screenshot-B2FTnuxH.js} +1 -1
- package/dist/{vue-ui-skeleton-DNuwx6_y.js → vue-ui-skeleton-CE6ibl1T.js} +3 -3
- package/dist/{vue-ui-skeleton-DpfJbsNA.cjs → vue-ui-skeleton-CPwED1As.cjs} +1 -1
- package/dist/{vue-ui-smiley-BnX27B0k.js → vue-ui-smiley-2H9hMFZ_.js} +2 -2
- package/dist/{vue-ui-smiley-DGE9NFBY.cjs → vue-ui-smiley-DqOZwhT4.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-aW-de-rX.cjs → vue-ui-spark-trend-CLW85O32.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-CgCLrMox.js → vue-ui-spark-trend-Dx9xVq9a.js} +5 -5
- package/dist/{vue-ui-sparkbar-BLUXUlTY.cjs → vue-ui-sparkbar-DJDXrRyp.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-BXku33sq.js → vue-ui-sparkbar-zafUIv1n.js} +4 -4
- package/dist/{vue-ui-sparkgauge-Doi0iu0L.js → vue-ui-sparkgauge-CFAdhTLk.js} +4 -4
- package/dist/{vue-ui-sparkgauge-RTiKvSMp.cjs → vue-ui-sparkgauge-CPNAXUyl.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-BnMvXlAP.js → vue-ui-sparkhistogram-B3DIjpaE.js} +5 -5
- package/dist/{vue-ui-sparkhistogram-C6AgJH1C.cjs → vue-ui-sparkhistogram-CHc3_xRE.cjs} +1 -1
- package/dist/{vue-ui-sparkline-DI7fq_MR.js → vue-ui-sparkline-C-LE7J9H.js} +4 -4
- package/dist/{vue-ui-sparkline-DpVCQ6W9.cjs → vue-ui-sparkline-U22Yhwy7.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-oNnE5z1C.js → vue-ui-sparkstackbar-BzLoGC-y.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-Bvuq2sLW.cjs → vue-ui-sparkstackbar-nx-Lt8sX.cjs} +1 -1
- package/dist/{vue-ui-stackbar-aWJDGIKV.cjs → vue-ui-stackbar-BwgHLhj2.cjs} +1 -1
- package/dist/{vue-ui-stackbar-6g7b3yyu.js → vue-ui-stackbar-C5xNRXnW.js} +12 -12
- package/dist/{vue-ui-strip-plot-BFM8HIM8.js → vue-ui-strip-plot-6khUDDeA.js} +11 -11
- package/dist/{vue-ui-strip-plot-GdjjVxMN.cjs → vue-ui-strip-plot-BFUtZW4b.cjs} +1 -1
- package/dist/{vue-ui-table-XOPmDCOB.cjs → vue-ui-table-B3Eng0fH.cjs} +1 -1
- package/dist/{vue-ui-table-Cw4Yz-IE.js → vue-ui-table-DsBM7Osw.js} +1 -1
- package/dist/{vue-ui-table-heatmap-Bh48bMuU.cjs → vue-ui-table-heatmap-DwCdS68z.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-DeRCR8l6.js → vue-ui-table-heatmap-ccQKInFD.js} +4 -4
- package/dist/{vue-ui-table-sparkline-w3H-od91.js → vue-ui-table-sparkline-BU-hOCZ7.js} +5 -5
- package/dist/{vue-ui-table-sparkline-C25qj1w_.cjs → vue-ui-table-sparkline-CDmrQFKv.cjs} +1 -1
- package/dist/{vue-ui-thermometer-DZrusaGY.cjs → vue-ui-thermometer-BhHYcxmT.cjs} +1 -1
- package/dist/{vue-ui-thermometer-BySEVhT8.js → vue-ui-thermometer-DuI3uDCZ.js} +7 -7
- package/dist/{vue-ui-timer-1p6J6hTn.cjs → vue-ui-timer-D7EKaAqa.cjs} +1 -1
- package/dist/{vue-ui-timer-BN-9a2lj.js → vue-ui-timer-Gk3bl_em.js} +5 -5
- package/dist/{vue-ui-tiremarks-EzYdOMyf.js → vue-ui-tiremarks-AcEjMpJH.js} +7 -7
- package/dist/{vue-ui-tiremarks-CvIJeWKE.cjs → vue-ui-tiremarks-UX2FbnyG.cjs} +1 -1
- package/dist/{vue-ui-treemap-Da0f6vaF.js → vue-ui-treemap-CFTpzgX5.js} +11 -11
- package/dist/{vue-ui-treemap-CzNOr1iR.cjs → vue-ui-treemap-D6CTMfsm.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-B9shdfqo.cjs → vue-ui-vertical-bar-BzY2H3UC.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-D1cBfu5p.js → vue-ui-vertical-bar-CuBJx5l1.js} +11 -11
- package/dist/{vue-ui-waffle-Cg-7Fazv.cjs → vue-ui-waffle-CZxR13EG.cjs} +1 -1
- package/dist/{vue-ui-waffle-DM2LsEP7.js → vue-ui-waffle-rDfZLxvH.js} +11 -11
- package/dist/{vue-ui-wheel-B9cmixxi.js → vue-ui-wheel-BFt2o4yO.js} +7 -7
- package/dist/{vue-ui-wheel-C-JukdTy.cjs → vue-ui-wheel-BM-St3xT.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-BLMWYOPy.cjs → vue-ui-word-cloud-DjKyKUbA.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-Baz7RXN2.js → vue-ui-word-cloud-pNPIrJ-g.js} +10 -10
- package/dist/{vue-ui-xy-BHeSkJQ3.cjs → vue-ui-xy-CBZUMMlP.cjs} +1 -1
- package/dist/{vue-ui-xy-DVnzVSqE.js → vue-ui-xy-DwkEc4Np.js} +14 -14
- package/dist/{vue-ui-xy-canvas-A7PKnWBs.js → vue-ui-xy-canvas-CW90CROL.js} +11 -11
- package/dist/{vue-ui-xy-canvas-DAd-B98z.cjs → vue-ui-xy-canvas-DWGGLom_.cjs} +1 -1
- package/package.json +1 -1
- package/dist/PenAndPaper-BQzgk5kO.js +0 -269
- package/dist/PenAndPaper-DBSxk9Xk.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;
|