vue-data-ui 2.4.15 → 2.4.17
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-ChrPMCIE.js → Arrow-BgooI-wc.js} +1 -1
- package/dist/{Arrow-BCKnYufb.cjs → Arrow-BiEdEdKA.cjs} +1 -1
- package/dist/{BaseIcon-CSptCx3b.js → BaseIcon-CEx6ctvt.js} +4 -3
- package/dist/{BaseIcon-rMg8xfhX.cjs → BaseIcon-CQHXoBmk.cjs} +1 -1
- package/dist/{DataTable-CRmILZBX.cjs → DataTable-C74ri0a_.cjs} +1 -1
- package/dist/{DataTable-Cccy3rvu.js → DataTable-DJmlLvjT.js} +2 -2
- package/dist/{Legend-CfcLlhaP.js → Legend-0dYtOzjh.js} +1 -1
- package/dist/{Legend-Dx7YB-Bt.cjs → Legend-CUAzd-58.cjs} +1 -1
- package/dist/{PackageVersion-CiFF5PGi.js → PackageVersion-7ZWPzzBh.js} +1 -1
- package/dist/{PackageVersion-B34JcKhO.cjs → PackageVersion-PUrYDB1r.cjs} +1 -1
- package/dist/PenAndPaper-BsJfhJzx.js +415 -0
- package/dist/PenAndPaper-DtXID4bK.cjs +1 -0
- package/dist/{Shape-HKyyToSG.js → Shape-ChZqBrYp.js} +1 -1
- package/dist/{Shape-JdI6ZCm8.cjs → Shape-hk-jLUhF.cjs} +1 -1
- package/dist/Slicer-BaAgNYLm.cjs +1 -0
- package/dist/{Slicer-Dgnj8x-K.js → Slicer-brJjwFit.js} +32 -31
- package/dist/{Title-CExB31p9.cjs → Title-BNQkXAzp.cjs} +1 -1
- package/dist/{Title-BYSs_RNw.js → Title-Z9WyiszR.js} +1 -1
- package/dist/{Tooltip-CLsCXPX_.cjs → Tooltip-Ba-UwAPn.cjs} +1 -1
- package/dist/{Tooltip-CZd_cGTh.js → Tooltip-CrQVdepY.js} +1 -1
- package/dist/{index-XO811G4S.js → index-CsO-G1pF.js} +1 -1
- package/dist/{index-kr_QwGDL.cjs → index-JhKFCmMY.cjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +1 -1
- package/dist/types/vue-data-ui.d.ts +1 -1
- package/dist/{useNestedProp-LP4oR6kx.js → useNestedProp-25bpPEIJ.js} +1 -1
- package/dist/{useNestedProp-DCTYscDQ.cjs → useNestedProp-DMCwXhe0.cjs} +1 -1
- package/dist/{usePrinter-DnY533x9.cjs → usePrinter-CnFnzxGv.cjs} +1 -1
- package/dist/{usePrinter-CsX9yzzX.js → usePrinter-CtEmFGMi.js} +3 -2
- package/dist/{vue-data-ui-DxuS01kK.js → vue-data-ui-DDgRwcAN.js} +58 -58
- package/dist/{vue-data-ui-DuqyXh3Z.cjs → vue-data-ui-DF-QMzBK.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-BcY_qYRY.js → vue-ui-3d-bar-B3KrSswQ.js} +9 -9
- package/dist/{vue-ui-3d-bar-46IqOg67.cjs → vue-ui-3d-bar-_bO04BXS.cjs} +1 -1
- package/dist/{vue-ui-accordion-DvWhOtea.js → vue-ui-accordion-BtZB8yRU.js} +3 -3
- package/dist/{vue-ui-accordion-Cc1lCYCG.cjs → vue-ui-accordion-BzagHU05.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-iHGxmPqt.js → vue-ui-age-pyramid-DMH90WOX.js} +10 -10
- package/dist/{vue-ui-age-pyramid-CfCFWXzM.cjs → vue-ui-age-pyramid-DZE_Luus.cjs} +1 -1
- package/dist/{vue-ui-annotator-BUiIefjR.cjs → vue-ui-annotator-CBRuEmOr.cjs} +1 -1
- package/dist/{vue-ui-annotator-CS09PEb4.js → vue-ui-annotator-CM4DLW56.js} +1 -1
- package/dist/{vue-ui-bullet-DifOvgtE.js → vue-ui-bullet-BMzsVdyl.js} +8 -8
- package/dist/{vue-ui-bullet-EzXv2sWS.cjs → vue-ui-bullet-DwikQ6ju.cjs} +1 -1
- package/dist/{vue-ui-candlestick-DByuzyzO.js → vue-ui-candlestick-C4KIT4W6.js} +11 -11
- package/dist/{vue-ui-candlestick-CUGe6R39.cjs → vue-ui-candlestick-ZRDcdb9z.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-DDRFUlqH.js → vue-ui-carousel-table-CapfJdG3.js} +4 -4
- package/dist/{vue-ui-carousel-table-DPLphRGv.cjs → vue-ui-carousel-table-D1rgIysD.cjs} +1 -1
- package/dist/{vue-ui-chestnut-0ZG6Eg8o.js → vue-ui-chestnut-BctCM0TL.js} +8 -8
- package/dist/{vue-ui-chestnut-_pU4PH9Y.cjs → vue-ui-chestnut-Rf6rE0bl.cjs} +1 -1
- package/dist/{vue-ui-cursor-Ci3pOLTZ.cjs → vue-ui-cursor-DusyAVsS.cjs} +1 -1
- package/dist/{vue-ui-cursor-BL-euH7c.js → vue-ui-cursor-kBcjSphL.js} +2 -2
- package/dist/{vue-ui-dashboard-ZJ8u97Qf.js → vue-ui-dashboard-BB3sVDvV.js} +2 -2
- package/dist/{vue-ui-dashboard-1--C3XNW.cjs → vue-ui-dashboard-Cjb73tir.cjs} +1 -1
- package/dist/{vue-ui-digits-C5O9vZxI.cjs → vue-ui-digits-B6yFqYC9.cjs} +1 -1
- package/dist/{vue-ui-digits-CMskyA7T.js → vue-ui-digits-CPJa5ClB.js} +2 -2
- package/dist/{vue-ui-donut-CX41zowC.js → vue-ui-donut-DpuLbPWE.js} +11 -11
- package/dist/{vue-ui-donut-BNiP18Il.cjs → vue-ui-donut-WgY1gAoH.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-QV1JE3Fo.js → vue-ui-donut-evolution-B1bmT1Hn.js} +11 -11
- package/dist/{vue-ui-donut-evolution-vqZF9YJJ.cjs → vue-ui-donut-evolution-Be1DcKCD.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-DxhJJy_r.js → vue-ui-dumbbell-BJlCo1Uu.js} +10 -10
- package/dist/{vue-ui-dumbbell-BY4NAOG1.cjs → vue-ui-dumbbell-DS694H2W.cjs} +1 -1
- package/dist/{vue-ui-flow-DBBfBgUK.cjs → vue-ui-flow-DNkEPzD8.cjs} +1 -1
- package/dist/{vue-ui-flow-DjydJgwR.js → vue-ui-flow-YQQjRjZJ.js} +9 -9
- package/dist/{vue-ui-galaxy-CtcRy5Ij.js → vue-ui-galaxy-CWBoQCBu.js} +11 -11
- package/dist/{vue-ui-galaxy-VSr_DAmu.cjs → vue-ui-galaxy-wXWBDBN3.cjs} +1 -1
- package/dist/{vue-ui-gauge-BjmS4qFe.js → vue-ui-gauge-BpMaui2R.js} +7 -7
- package/dist/{vue-ui-gauge-IvNa_DR8.cjs → vue-ui-gauge-CkLScLiT.cjs} +1 -1
- package/dist/{vue-ui-gizmo-BzLy3mWD.js → vue-ui-gizmo-CW3i7sGH.js} +3 -3
- package/dist/{vue-ui-gizmo-DgANbqmC.cjs → vue-ui-gizmo-CW42uCmT.cjs} +1 -1
- package/dist/{vue-ui-heatmap-Bvej9oTA.js → vue-ui-heatmap-CmYLqA2_.js} +10 -10
- package/dist/{vue-ui-heatmap-yQSNz-vk.cjs → vue-ui-heatmap-CsmYL0Gt.cjs} +1 -1
- package/dist/{vue-ui-kpi-9eMhWuJa.cjs → vue-ui-kpi-CDgSrb5w.cjs} +1 -1
- package/dist/{vue-ui-kpi-B08Q3iHK.js → vue-ui-kpi-rbngmyhG.js} +3 -3
- package/dist/{vue-ui-mini-loader-BdW1vPkj.cjs → vue-ui-mini-loader-CPT6mWRI.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-CA8Jh2xW.js → vue-ui-mini-loader-Xs2haGP9.js} +2 -2
- package/dist/{vue-ui-molecule-oCNTo9qq.cjs → vue-ui-molecule--p_0nckO.cjs} +1 -1
- package/dist/{vue-ui-molecule-JzIu9Xhu.js → vue-ui-molecule-CaQBNkoU.js} +11 -11
- package/dist/{vue-ui-mood-radar-D4MmvJeX.cjs → vue-ui-mood-radar-BrPCZMj9.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-BlUEjpq1.js → vue-ui-mood-radar-Bxhit8iq.js} +11 -11
- package/dist/{vue-ui-nested-donuts-Di7bDbya.js → vue-ui-nested-donuts-CKtSdQxL.js} +11 -11
- package/dist/{vue-ui-nested-donuts-D1vpqiqh.cjs → vue-ui-nested-donuts-Db2PRZa7.cjs} +1 -1
- package/dist/{vue-ui-onion-BuxtifKO.js → vue-ui-onion-BcOvRLKd.js} +11 -11
- package/dist/{vue-ui-onion-D73_4ozI.cjs → vue-ui-onion-BiUueMU9.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-B5gOiDmN.cjs → vue-ui-parallel-coordinate-plot-BHCgCkBU.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-D984zizH.js → vue-ui-parallel-coordinate-plot-DbHskdgm.js} +12 -12
- package/dist/{vue-ui-quadrant-qXlDTKps.cjs → vue-ui-quadrant-Cnq1XIho.cjs} +1 -1
- package/dist/{vue-ui-quadrant-1lD2dgpm.js → vue-ui-quadrant-CtuAUQHm.js} +12 -12
- package/dist/{vue-ui-quick-chart-A78wO49s.js → vue-ui-quick-chart-BCMuGPxx.js} +9 -9
- package/dist/{vue-ui-quick-chart-BYL-VfNK.cjs → vue-ui-quick-chart-XjXvGQNl.cjs} +1 -1
- package/dist/{vue-ui-radar-D3KbMPY7.js → vue-ui-radar-CR5lnsBF.js} +12 -12
- package/dist/{vue-ui-radar-DXcRNCAa.cjs → vue-ui-radar-vd7jmG3_.cjs} +1 -1
- package/dist/{vue-ui-rating-rjjSmIEJ.cjs → vue-ui-rating-BdrnxDIT.cjs} +1 -1
- package/dist/{vue-ui-rating-CnkBBFHV.js → vue-ui-rating-CQUodqSb.js} +2 -2
- package/dist/{vue-ui-relation-circle-CZ_FS4Hd.js → vue-ui-relation-circle-BdEcYARl.js} +7 -7
- package/dist/{vue-ui-relation-circle-DtPwUZGn.cjs → vue-ui-relation-circle-DF32fFox.cjs} +1 -1
- package/dist/{vue-ui-rings-BMwEdEke.cjs → vue-ui-rings-BBLgEk93.cjs} +1 -1
- package/dist/{vue-ui-rings-ByRA0qd4.js → vue-ui-rings-DCBGDVf5.js} +11 -11
- package/dist/{vue-ui-scatter-BXpXY86w.js → vue-ui-scatter-BZLWG9bi.js} +12 -12
- package/dist/{vue-ui-scatter-Cpjy_MXZ.cjs → vue-ui-scatter-D_Khm-rp.cjs} +1 -1
- package/dist/{vue-ui-screenshot-CLTmzBUl.js → vue-ui-screenshot-Cgc1JoWv.js} +1 -1
- package/dist/{vue-ui-screenshot-BjEmpeGQ.cjs → vue-ui-screenshot-D_2j2r97.cjs} +1 -1
- package/dist/{vue-ui-skeleton-B-eJiyiK.js → vue-ui-skeleton-3YuwK-KB.js} +3 -3
- package/dist/{vue-ui-skeleton-BFwKDNWk.cjs → vue-ui-skeleton-a45Gy93x.cjs} +1 -1
- package/dist/{vue-ui-smiley-DPT05g_d.js → vue-ui-smiley-BJR30dUE.js} +2 -2
- package/dist/{vue-ui-smiley-B0aRXyCK.cjs → vue-ui-smiley-BMV3HTk4.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-ciVsjAVV.js → vue-ui-spark-trend-DY_173Pe.js} +5 -5
- package/dist/{vue-ui-spark-trend-DFhBUPgA.cjs → vue-ui-spark-trend-o0BwOR35.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-DXwlMAdA.cjs → vue-ui-sparkbar-DdXGpzCX.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-7G6NJ6jC.js → vue-ui-sparkbar-f7BFoFY-.js} +4 -4
- package/dist/{vue-ui-sparkgauge-DtL-EHgS.js → vue-ui-sparkgauge-BqHNW_iR.js} +4 -4
- package/dist/{vue-ui-sparkgauge-RLpXQQdL.cjs → vue-ui-sparkgauge-C2f4RdUr.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-CBabO6KY.js → vue-ui-sparkhistogram-CI27O9Z5.js} +5 -5
- package/dist/{vue-ui-sparkhistogram-C05pVLX4.cjs → vue-ui-sparkhistogram-Dpk9kLuE.cjs} +1 -1
- package/dist/{vue-ui-sparkline-CGpCbxYp.js → vue-ui-sparkline-QF5hPJRY.js} +4 -4
- package/dist/{vue-ui-sparkline-Dzx9vneB.cjs → vue-ui-sparkline-QGxTg9Wu.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-BvvoP0Hr.cjs → vue-ui-sparkstackbar-DiTAymYt.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-0XJ1y_hw.js → vue-ui-sparkstackbar-Fv27es3Y.js} +5 -5
- package/dist/{vue-ui-stackbar-S4ZxRQNf.cjs → vue-ui-stackbar-CmwredTQ.cjs} +1 -1
- package/dist/{vue-ui-stackbar-RxoRAQV1.js → vue-ui-stackbar-DXRdE9gQ.js} +12 -12
- package/dist/{vue-ui-strip-plot-6Zxs0p_t.cjs → vue-ui-strip-plot-Cv8hjBqK.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-Dd7unCwX.js → vue-ui-strip-plot-CwZ074tx.js} +11 -11
- package/dist/{vue-ui-table-DZLcx9jA.js → vue-ui-table-BX0aQnsN.js} +1 -1
- package/dist/{vue-ui-table-CSEZc0DF.cjs → vue-ui-table-CMx4FAti.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-BA9KsnPZ.cjs → vue-ui-table-heatmap-B5pfuZ06.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-DE6RTOjN.js → vue-ui-table-heatmap-DVTqo0gR.js} +4 -4
- package/dist/{vue-ui-table-sparkline-BQZylioG.cjs → vue-ui-table-sparkline-Dpwv04QK.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-ChmFLAEt.js → vue-ui-table-sparkline-HoC10pK0.js} +5 -5
- package/dist/{vue-ui-thermometer-Bj8e-yG-.js → vue-ui-thermometer-46rBoQUT.js} +7 -7
- package/dist/{vue-ui-thermometer-BgMnwVpw.cjs → vue-ui-thermometer-QNAbTkmc.cjs} +1 -1
- package/dist/{vue-ui-timer-Dql8XcMQ.cjs → vue-ui-timer-CEl8k7G2.cjs} +1 -1
- package/dist/{vue-ui-timer-CcUwIcM7.js → vue-ui-timer-DeSsZrLI.js} +5 -5
- package/dist/{vue-ui-tiremarks-CfNXN9nv.cjs → vue-ui-tiremarks-BFrqRTKT.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-ZWxDYt63.js → vue-ui-tiremarks-Bkv2WZBg.js} +7 -7
- package/dist/{vue-ui-treemap-BQUkiRrP.cjs → vue-ui-treemap-keCkHtK4.cjs} +1 -1
- package/dist/{vue-ui-treemap-DJlHYN6o.js → vue-ui-treemap-yuPjtcVK.js} +11 -11
- package/dist/{vue-ui-vertical-bar-DfMOQWhA.js → vue-ui-vertical-bar-BbDzEQl_.js} +11 -11
- package/dist/{vue-ui-vertical-bar-DLFK5GLD.cjs → vue-ui-vertical-bar-Bu6-T3E0.cjs} +1 -1
- package/dist/{vue-ui-waffle-BzqYPHzr.cjs → vue-ui-waffle-B5jH5mbu.cjs} +1 -1
- package/dist/{vue-ui-waffle-CVmVbugH.js → vue-ui-waffle-Bal7gIMa.js} +11 -11
- package/dist/{vue-ui-wheel-B7jyz4v1.cjs → vue-ui-wheel-BxlqXii5.cjs} +1 -1
- package/dist/{vue-ui-wheel-DPgJtWnl.js → vue-ui-wheel-D9vfr7y3.js} +7 -7
- package/dist/{vue-ui-word-cloud-YBQ8Tptq.cjs → vue-ui-word-cloud-CDMrIRV8.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-D_aYLkHs.js → vue-ui-word-cloud-Dw5BJoNZ.js} +12 -12
- package/dist/{vue-ui-xy-CnXzhDb7.cjs → vue-ui-xy-BtUaFSLQ.cjs} +1 -1
- package/dist/{vue-ui-xy-DIvGE5ZZ.js → vue-ui-xy-DrQy_X9V.js} +14 -14
- package/dist/{vue-ui-xy-canvas-Kf-kmYwM.js → vue-ui-xy-canvas-74elrp82.js} +11 -11
- package/dist/{vue-ui-xy-canvas-Dy7oda3-.cjs → vue-ui-xy-canvas-CZMRdBM5.cjs} +1 -1
- package/package.json +1 -1
- package/dist/PenAndPaper-BpIqWG4P.js +0 -347
- package/dist/PenAndPaper-DrCIS0Eh.cjs +0 -1
- package/dist/Slicer-t7C4_beF.cjs +0 -1
|
@@ -0,0 +1,415 @@
|
|
|
1
|
+
import { computed as O, ref as c, watch as q, withDirectives as A, openBlock as p, createElementBlock as f, createElementVNode as C, normalizeStyle as b, createVNode as P, Fragment as R, renderList as H, createCommentVNode as V, unref as j, onMounted as oe, nextTick as ne, onBeforeUnmount as le, normalizeClass as T, vModelText as re, withModifiers as Q } from "vue";
|
|
2
|
+
import { F as ae, l as se, X as ue } from "./index-CsO-G1pF.js";
|
|
3
|
+
import D from "./BaseIcon-CEx6ctvt.js";
|
|
4
|
+
import { v as ce } from "./usePrinter-CtEmFGMi.js";
|
|
5
|
+
import { _ as G } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
+
const ie = { style: { height: "100%", width: "100%", position: "relative" } }, de = { class: "icon" }, ve = ["onClick"], pe = { style: { position: "absolute", top: "50%", left: "50%", transform: "translate(-50%, -46%)" } }, fe = ["value"], he = {
|
|
7
|
+
__name: "ColorPicker",
|
|
8
|
+
props: {
|
|
9
|
+
value: {
|
|
10
|
+
type: String,
|
|
11
|
+
default: "#ffffff"
|
|
12
|
+
},
|
|
13
|
+
size: {
|
|
14
|
+
type: String,
|
|
15
|
+
default: "50px"
|
|
16
|
+
},
|
|
17
|
+
backgroundColor: {
|
|
18
|
+
type: String,
|
|
19
|
+
default: "#FFFFFF"
|
|
20
|
+
},
|
|
21
|
+
buttonBorderColor: {
|
|
22
|
+
type: String,
|
|
23
|
+
default: "#FFFFFF"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
emits: ["update:value"],
|
|
27
|
+
setup(r, { emit: I }) {
|
|
28
|
+
const h = r, k = O(() => ({
|
|
29
|
+
backgroundColor: h.value,
|
|
30
|
+
width: "100%",
|
|
31
|
+
height: "100%",
|
|
32
|
+
cursor: "pointer"
|
|
33
|
+
})), y = c(null), $ = c(!1), M = () => {
|
|
34
|
+
var u;
|
|
35
|
+
(u = y.value) == null || u.click();
|
|
36
|
+
};
|
|
37
|
+
function S(u) {
|
|
38
|
+
I("update:value", u), $.value = !1;
|
|
39
|
+
}
|
|
40
|
+
function x() {
|
|
41
|
+
$.value = !1;
|
|
42
|
+
}
|
|
43
|
+
function L() {
|
|
44
|
+
$.value && x();
|
|
45
|
+
}
|
|
46
|
+
const X = (u) => {
|
|
47
|
+
const B = u.target.value;
|
|
48
|
+
I("update:value", B);
|
|
49
|
+
}, F = O(() => ae(h.value));
|
|
50
|
+
q(
|
|
51
|
+
() => h.value,
|
|
52
|
+
(u) => {
|
|
53
|
+
y.value.value = u;
|
|
54
|
+
}
|
|
55
|
+
);
|
|
56
|
+
const w = c([
|
|
57
|
+
"#000000",
|
|
58
|
+
"#FFFFFF",
|
|
59
|
+
"#FF5733",
|
|
60
|
+
"#33FF57",
|
|
61
|
+
"#3357FF",
|
|
62
|
+
"#FFC300",
|
|
63
|
+
"#800080",
|
|
64
|
+
"#FF1493",
|
|
65
|
+
"#00CED1"
|
|
66
|
+
]);
|
|
67
|
+
return (u, B) => A((p(), f("div", ie, [
|
|
68
|
+
C("div", {
|
|
69
|
+
onClick: B[0] || (B[0] = (z) => $.value = !$.value),
|
|
70
|
+
style: b(k.value)
|
|
71
|
+
}, [
|
|
72
|
+
C("div", de, [
|
|
73
|
+
P(D, {
|
|
74
|
+
name: "palette",
|
|
75
|
+
stroke: F.value,
|
|
76
|
+
size: 22
|
|
77
|
+
}, null, 8, ["stroke"])
|
|
78
|
+
])
|
|
79
|
+
], 4),
|
|
80
|
+
$.value ? (p(), f("div", {
|
|
81
|
+
key: 0,
|
|
82
|
+
class: "vue-ui-color-picker",
|
|
83
|
+
style: b({
|
|
84
|
+
backgroundColor: r.backgroundColor
|
|
85
|
+
})
|
|
86
|
+
}, [
|
|
87
|
+
(p(!0), f(R, null, H(w.value, (z) => (p(), f("div", {
|
|
88
|
+
class: "vue-ui-color-picker-option",
|
|
89
|
+
style: b({
|
|
90
|
+
backgroundColor: z,
|
|
91
|
+
outline: `1px solid ${r.buttonBorderColor}`
|
|
92
|
+
}),
|
|
93
|
+
onClick: () => S(z)
|
|
94
|
+
}, null, 12, ve))), 256)),
|
|
95
|
+
C("div", {
|
|
96
|
+
class: "vue-ui-color-picker-option",
|
|
97
|
+
onClick: M,
|
|
98
|
+
style: b({
|
|
99
|
+
backgroundColor: r.value,
|
|
100
|
+
outline: `1px solid ${r.buttonBorderColor}`
|
|
101
|
+
})
|
|
102
|
+
}, [
|
|
103
|
+
C("div", pe, [
|
|
104
|
+
P(D, {
|
|
105
|
+
name: "colorPicker",
|
|
106
|
+
stroke: F.value,
|
|
107
|
+
size: 22
|
|
108
|
+
}, null, 8, ["stroke"])
|
|
109
|
+
]),
|
|
110
|
+
C("input", {
|
|
111
|
+
ref_key: "colorInput",
|
|
112
|
+
ref: y,
|
|
113
|
+
type: "color",
|
|
114
|
+
value: r.value,
|
|
115
|
+
class: "hidden-input",
|
|
116
|
+
onInput: X
|
|
117
|
+
}, null, 40, fe)
|
|
118
|
+
], 4)
|
|
119
|
+
], 4)) : V("", !0)
|
|
120
|
+
])), [
|
|
121
|
+
[j(ce), L]
|
|
122
|
+
]);
|
|
123
|
+
}
|
|
124
|
+
}, ke = /* @__PURE__ */ G(he, [["__scopeId", "data-v-84e6c062"]]), ge = {
|
|
125
|
+
class: /* @__PURE__ */ T({
|
|
126
|
+
"vue-ui-pen-and-paper-action": !0
|
|
127
|
+
}),
|
|
128
|
+
style: { padding: "0 !important" }
|
|
129
|
+
}, me = ["disabled"], Ce = ["xmlns", "viewBox", "onTouchstart", "onTouchmove"], ye = ["cx", "cy", "r", "fill"], $e = ["d", "stroke", "stroke-width"], be = ["d", "stroke", "stroke-width"], Fe = {
|
|
130
|
+
__name: "PenAndPaper",
|
|
131
|
+
props: {
|
|
132
|
+
parent: {
|
|
133
|
+
type: HTMLElement
|
|
134
|
+
},
|
|
135
|
+
backgroundColor: {
|
|
136
|
+
type: String,
|
|
137
|
+
default: "#FFFFFF"
|
|
138
|
+
},
|
|
139
|
+
color: {
|
|
140
|
+
type: String,
|
|
141
|
+
default: "#2D353C"
|
|
142
|
+
},
|
|
143
|
+
active: {
|
|
144
|
+
type: Boolean,
|
|
145
|
+
default: !1
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
emits: ["close"],
|
|
149
|
+
setup(r, { emit: I }) {
|
|
150
|
+
const h = r, k = c([]), y = c([]), $ = c("0 0 0 0"), M = c(h.color), S = c(1), x = O(() => se(h.color, 0.6));
|
|
151
|
+
function L({ width: o, height: t }) {
|
|
152
|
+
$.value = `0 0 ${o} ${t}`;
|
|
153
|
+
}
|
|
154
|
+
const X = c(null);
|
|
155
|
+
oe(() => {
|
|
156
|
+
ne(() => {
|
|
157
|
+
if (h.parent) {
|
|
158
|
+
X.value = new ResizeObserver((e) => {
|
|
159
|
+
for (const n of e) {
|
|
160
|
+
const { width: l, height: a } = n.contentRect;
|
|
161
|
+
L({ width: l, height: a });
|
|
162
|
+
}
|
|
163
|
+
}), X.value.observe(h.parent);
|
|
164
|
+
const { width: o, height: t } = h.parent.getBoundingClientRect();
|
|
165
|
+
L({ width: o, height: t });
|
|
166
|
+
}
|
|
167
|
+
});
|
|
168
|
+
}), le(() => {
|
|
169
|
+
X.value && X.value.disconnect();
|
|
170
|
+
}), q(
|
|
171
|
+
() => h.parent,
|
|
172
|
+
(o) => {
|
|
173
|
+
if (!o) return;
|
|
174
|
+
const { width: t, height: e } = h.parent.getBoundingClientRect();
|
|
175
|
+
L({ width: t, height: e });
|
|
176
|
+
},
|
|
177
|
+
{ immediate: !0 }
|
|
178
|
+
);
|
|
179
|
+
const F = c(!1), w = c(""), u = c(null);
|
|
180
|
+
function B(o) {
|
|
181
|
+
if (!u.value) return;
|
|
182
|
+
F.value = !0;
|
|
183
|
+
const { x: t, y: e } = W(o);
|
|
184
|
+
w.value = `M ${t} ${e}`;
|
|
185
|
+
}
|
|
186
|
+
function z(o) {
|
|
187
|
+
if (!F.value || !u.value) return;
|
|
188
|
+
const { x: t, y: e } = W(o);
|
|
189
|
+
w.value += ` ${t} ${e}`;
|
|
190
|
+
}
|
|
191
|
+
function U(o) {
|
|
192
|
+
const t = o.trim().split(/\s+/);
|
|
193
|
+
if (t.length < 4)
|
|
194
|
+
return o;
|
|
195
|
+
const e = t.slice(1).map(Number);
|
|
196
|
+
if (e.length % 2 !== 0)
|
|
197
|
+
return o;
|
|
198
|
+
const n = J(e), l = [`M ${n[0]} ${n[1]}`];
|
|
199
|
+
for (let i = 2; i < n.length - 2; i += 2) {
|
|
200
|
+
const g = n[i - 2], m = n[i - 1], d = n[i], v = n[i + 1], N = (g + d) / 2, Y = (m + v) / 2;
|
|
201
|
+
l.push(`Q ${g} ${m} ${N} ${Y}`);
|
|
202
|
+
}
|
|
203
|
+
const a = n[n.length - 2], s = n[n.length - 1];
|
|
204
|
+
return l.push(`L ${a} ${s}`), l.join(" ");
|
|
205
|
+
}
|
|
206
|
+
function J(o, t = 1) {
|
|
207
|
+
const e = [...o];
|
|
208
|
+
for (let n = 2; n < o.length - 2; n += 2) {
|
|
209
|
+
const l = o[n], a = o[n + 1], s = o[n - 2], i = o[n - 1], g = o[n + 2], m = o[n + 3];
|
|
210
|
+
e[n] = l + t * ((s + g) / 2 - l), e[n + 1] = a + t * ((i + m) / 2 - a);
|
|
211
|
+
}
|
|
212
|
+
return e;
|
|
213
|
+
}
|
|
214
|
+
function K(o) {
|
|
215
|
+
const t = o.trim().split(/\s+/);
|
|
216
|
+
let e = "", n = "", l = null, a = null;
|
|
217
|
+
for (let s = 0; s < t.length; s += 1) {
|
|
218
|
+
const i = t[s];
|
|
219
|
+
if (isNaN(i)) {
|
|
220
|
+
if (n = i, n === "M" || n === "L")
|
|
221
|
+
l = parseFloat(t[++s]), a = parseFloat(t[++s]), e += `${n}${l} ${a}`;
|
|
222
|
+
else if (n === "Q") {
|
|
223
|
+
const g = parseFloat(t[++s]), m = parseFloat(t[++s]), d = parseFloat(t[++s]), v = parseFloat(t[++s]);
|
|
224
|
+
g === l && m === a ? e += `t${d - l} ${v - a}` : e += `q${g - l} ${m - a} ${d - l} ${v - a}`, l = d, a = v;
|
|
225
|
+
}
|
|
226
|
+
} else {
|
|
227
|
+
const g = parseFloat(i), m = parseFloat(t[++s]);
|
|
228
|
+
if (n === "L") {
|
|
229
|
+
const d = g - l, v = m - a;
|
|
230
|
+
d === 0 ? e += `v${v}` : v === 0 ? e += `h${d}` : e += `l${d} ${v}`, l = g, a = m;
|
|
231
|
+
} else if (n === "Q") {
|
|
232
|
+
const d = g, v = m, N = parseFloat(t[++s]), Y = parseFloat(t[++s]);
|
|
233
|
+
d === l && v === a ? e += `t${N - l} ${Y - a}` : e += `q${d - l} ${v - a} ${N - l} ${Y - a}`, l = N, a = Y;
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
return e;
|
|
238
|
+
}
|
|
239
|
+
function E() {
|
|
240
|
+
F.value && (k.value.push({
|
|
241
|
+
strokeWidth: S.value,
|
|
242
|
+
path: K(U(w.value)),
|
|
243
|
+
color: M.value
|
|
244
|
+
}), y.value = [], w.value = ""), F.value = !1;
|
|
245
|
+
}
|
|
246
|
+
function W(o) {
|
|
247
|
+
if (!u.value) return { x: 0, y: 0 };
|
|
248
|
+
const t = u.value.getBoundingClientRect();
|
|
249
|
+
let e, n;
|
|
250
|
+
return o.touches && o.touches.length ? (e = o.touches[0].clientX, n = o.touches[0].clientY) : (e = o.clientX, n = o.clientY), {
|
|
251
|
+
x: e - t.left,
|
|
252
|
+
y: n - t.top
|
|
253
|
+
};
|
|
254
|
+
}
|
|
255
|
+
c(!1);
|
|
256
|
+
function Z() {
|
|
257
|
+
if (k.value.length > 0) {
|
|
258
|
+
const o = k.value.pop();
|
|
259
|
+
y.value.push(o);
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
function _() {
|
|
263
|
+
if (y.value.length > 0) {
|
|
264
|
+
const o = y.value.pop();
|
|
265
|
+
k.value.push(o);
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
function ee() {
|
|
269
|
+
k.value = [], y.value = [];
|
|
270
|
+
}
|
|
271
|
+
const te = c(null);
|
|
272
|
+
return (o, t) => (p(), f(R, null, [
|
|
273
|
+
r.active ? (p(), f("div", {
|
|
274
|
+
key: 0,
|
|
275
|
+
"data-html2canvas-ignore": "",
|
|
276
|
+
class: T({
|
|
277
|
+
"vue-ui-pen-and-paper-actions": !0,
|
|
278
|
+
visible: r.active
|
|
279
|
+
})
|
|
280
|
+
}, [
|
|
281
|
+
C("button", {
|
|
282
|
+
class: "vue-ui-pen-and-paper-action",
|
|
283
|
+
style: b({
|
|
284
|
+
backgroundColor: r.backgroundColor,
|
|
285
|
+
border: `1px solid ${x.value}`
|
|
286
|
+
}),
|
|
287
|
+
onClick: t[0] || (t[0] = (e) => I("close"))
|
|
288
|
+
}, [
|
|
289
|
+
P(D, {
|
|
290
|
+
name: "close",
|
|
291
|
+
stroke: r.color
|
|
292
|
+
}, null, 8, ["stroke"])
|
|
293
|
+
], 4),
|
|
294
|
+
C("button", ge, [
|
|
295
|
+
P(ke, {
|
|
296
|
+
value: M.value,
|
|
297
|
+
"onUpdate:value": t[1] || (t[1] = (e) => M.value = e),
|
|
298
|
+
backgroundColor: r.backgroundColor,
|
|
299
|
+
buttonBorderColor: x.value
|
|
300
|
+
}, null, 8, ["value", "backgroundColor", "buttonBorderColor"])
|
|
301
|
+
]),
|
|
302
|
+
C("button", {
|
|
303
|
+
class: T({
|
|
304
|
+
"vue-ui-pen-and-paper-action": !0,
|
|
305
|
+
"vue-ui-pen-and-paper-action-disabled": !k.value.length
|
|
306
|
+
}),
|
|
307
|
+
disabled: !k.value.length,
|
|
308
|
+
style: b({
|
|
309
|
+
backgroundColor: r.backgroundColor,
|
|
310
|
+
border: `1px solid ${x.value}`
|
|
311
|
+
}),
|
|
312
|
+
onClick: Z
|
|
313
|
+
}, [
|
|
314
|
+
P(D, {
|
|
315
|
+
name: "restart",
|
|
316
|
+
stroke: r.color
|
|
317
|
+
}, null, 8, ["stroke"])
|
|
318
|
+
], 14, me),
|
|
319
|
+
C("button", {
|
|
320
|
+
class: T({
|
|
321
|
+
"vue-ui-pen-and-paper-action": !0,
|
|
322
|
+
"vue-ui-pen-and-paper-action-disabled": !y.value.length
|
|
323
|
+
}),
|
|
324
|
+
style: b({
|
|
325
|
+
backgroundColor: r.backgroundColor,
|
|
326
|
+
border: `1px solid ${x.value}`
|
|
327
|
+
}),
|
|
328
|
+
onClick: _
|
|
329
|
+
}, [
|
|
330
|
+
P(D, {
|
|
331
|
+
name: "restart",
|
|
332
|
+
stroke: r.color,
|
|
333
|
+
style: { transform: "scaleX(-1)" }
|
|
334
|
+
}, null, 8, ["stroke"])
|
|
335
|
+
], 6),
|
|
336
|
+
C("button", {
|
|
337
|
+
class: T([{
|
|
338
|
+
"vue-ui-pen-and-paper-action": !0,
|
|
339
|
+
"vue-ui-pen-and-paper-action-disabled": !k.value.length
|
|
340
|
+
}, "vue-ui-pen-and-paper-action"]),
|
|
341
|
+
style: b({
|
|
342
|
+
backgroundColor: r.backgroundColor,
|
|
343
|
+
border: `1px solid ${x.value}`
|
|
344
|
+
}),
|
|
345
|
+
onClick: ee
|
|
346
|
+
}, [
|
|
347
|
+
P(D, {
|
|
348
|
+
name: "trash",
|
|
349
|
+
stroke: r.color
|
|
350
|
+
}, null, 8, ["stroke"])
|
|
351
|
+
], 6),
|
|
352
|
+
A(C("input", {
|
|
353
|
+
ref_key: "range",
|
|
354
|
+
ref: te,
|
|
355
|
+
type: "range",
|
|
356
|
+
class: "vertical-range",
|
|
357
|
+
min: 0.5,
|
|
358
|
+
max: 12,
|
|
359
|
+
step: 0.1,
|
|
360
|
+
"onUpdate:modelValue": t[2] || (t[2] = (e) => S.value = e),
|
|
361
|
+
style: b({
|
|
362
|
+
accentColor: r.color
|
|
363
|
+
})
|
|
364
|
+
}, null, 4), [
|
|
365
|
+
[re, S.value]
|
|
366
|
+
])
|
|
367
|
+
], 2)) : V("", !0),
|
|
368
|
+
(p(), f("svg", {
|
|
369
|
+
ref_key: "svgElement",
|
|
370
|
+
ref: u,
|
|
371
|
+
xmlns: j(ue),
|
|
372
|
+
viewBox: $.value,
|
|
373
|
+
class: T({
|
|
374
|
+
"vue-ui-pen-and-paper": !0,
|
|
375
|
+
inactive: !r.active
|
|
376
|
+
}),
|
|
377
|
+
onMousedown: B,
|
|
378
|
+
onMousemove: z,
|
|
379
|
+
onMouseup: E,
|
|
380
|
+
onMouseleave: E,
|
|
381
|
+
onTouchstart: Q(B, ["prevent"]),
|
|
382
|
+
onTouchmove: Q(z, ["prevent"]),
|
|
383
|
+
onTouchend: E
|
|
384
|
+
}, [
|
|
385
|
+
(p(!0), f(R, null, H(k.value, (e) => (p(), f(R, { key: e }, [
|
|
386
|
+
e.path.replace("M", "").split(" ").length === 2 ? (p(), f("circle", {
|
|
387
|
+
key: 0,
|
|
388
|
+
cx: e.path.replace("M", "").split(" ")[0],
|
|
389
|
+
cy: e.path.replace("M", "").split(" ")[1],
|
|
390
|
+
r: e.strokeWidth / 2,
|
|
391
|
+
fill: e.color
|
|
392
|
+
}, null, 8, ye)) : (p(), f("path", {
|
|
393
|
+
key: 1,
|
|
394
|
+
class: "vue-ui-pen-and-paper-path",
|
|
395
|
+
d: e.path,
|
|
396
|
+
stroke: e.color,
|
|
397
|
+
"stroke-width": e.strokeWidth,
|
|
398
|
+
fill: "none"
|
|
399
|
+
}, null, 8, $e))
|
|
400
|
+
], 64))), 128)),
|
|
401
|
+
F.value ? (p(), f("path", {
|
|
402
|
+
key: 0,
|
|
403
|
+
class: "vue-ui-pen-and-paper-path vue-ui-pen-and-paper-path-drawing",
|
|
404
|
+
d: U(w.value),
|
|
405
|
+
stroke: M.value,
|
|
406
|
+
"stroke-width": S.value * 1.1,
|
|
407
|
+
fill: "none"
|
|
408
|
+
}, null, 8, be)) : V("", !0)
|
|
409
|
+
], 42, Ce))
|
|
410
|
+
], 64));
|
|
411
|
+
}
|
|
412
|
+
}, Se = /* @__PURE__ */ G(Fe, [["__scopeId", "data-v-a932b1ac"]]);
|
|
413
|
+
export {
|
|
414
|
+
Se as P
|
|
415
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),M=require("./index-JhKFCmMY.cjs"),E=require("./BaseIcon-CQHXoBmk.cjs"),U=require("./usePrinter-CnFnzxGv.cjs"),L=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),W={style:{height:"100%",width:"100%",position:"relative"}},A={class:"icon"},H=["onClick"],Q={style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -46%)"}},_=["value"],j={__name:"ColorPicker",props:{value:{type:String,default:"#ffffff"},size:{type:String,default:"50px"},backgroundColor:{type:String,default:"#FFFFFF"},buttonBorderColor:{type:String,default:"#FFFFFF"}},emits:["update:value"],setup(a,{emit:P}){const p=a,f=e.computed(()=>({backgroundColor:p.value,width:"100%",height:"100%",cursor:"pointer"})),h=e.ref(null),g=e.ref(!1),b=()=>{var u;(u=h.value)==null||u.click()};function B(u){P("update:value",u),g.value=!1}function y(){g.value=!1}function N(){g.value&&y()}const x=u=>{const $=u.target.value;P("update:value",$)},C=e.computed(()=>M.adaptColorToBackground(p.value));e.watch(()=>p.value,u=>{h.value.value=u});const F=e.ref(["#000000","#FFFFFF","#FF5733","#33FF57","#3357FF","#FFC300","#800080","#FF1493","#00CED1"]);return(u,$)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",W,[e.createElementVNode("div",{onClick:$[0]||($[0]=w=>g.value=!g.value),style:e.normalizeStyle(f.value)},[e.createElementVNode("div",A,[e.createVNode(E.default,{name:"palette",stroke:C.value,size:22},null,8,["stroke"])])],4),g.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"vue-ui-color-picker",style:e.normalizeStyle({backgroundColor:a.backgroundColor})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(F.value,w=>(e.openBlock(),e.createElementBlock("div",{class:"vue-ui-color-picker-option",style:e.normalizeStyle({backgroundColor:w,outline:`1px solid ${a.buttonBorderColor}`}),onClick:()=>B(w)},null,12,H))),256)),e.createElementVNode("div",{class:"vue-ui-color-picker-option",onClick:b,style:e.normalizeStyle({backgroundColor:a.value,outline:`1px solid ${a.buttonBorderColor}`})},[e.createElementVNode("div",Q,[e.createVNode(E.default,{name:"colorPicker",stroke:C.value,size:22},null,8,["stroke"])]),e.createElementVNode("input",{ref_key:"colorInput",ref:h,type:"color",value:a.value,class:"hidden-input",onInput:x},null,40,_)],4)],4)):e.createCommentVNode("",!0)])),[[e.unref(U.vClickOutside),N]])}},G=L._export_sfc(j,[["__scopeId","data-v-84e6c062"]]),J={class:e.normalizeClass({"vue-ui-pen-and-paper-action":!0}),style:{padding:"0 !important"}},K=["disabled"],Z=["xmlns","viewBox","onTouchstart","onTouchmove"],ee=["cx","cy","r","fill"],te=["d","stroke","stroke-width"],oe=["d","stroke","stroke-width"],ne={__name:"PenAndPaper",props:{parent:{type:HTMLElement},backgroundColor:{type:String,default:"#FFFFFF"},color:{type:String,default:"#2D353C"},active:{type:Boolean,default:!1}},emits:["close"],setup(a,{emit:P}){const p=a,f=e.ref([]),h=e.ref([]),g=e.ref("0 0 0 0"),b=e.ref(p.color),B=e.ref(1),y=e.computed(()=>M.lightenHexColor(p.color,.6));function N({width:n,height:o}){g.value=`0 0 ${n} ${o}`}const x=e.ref(null);e.onMounted(()=>{e.nextTick(()=>{if(p.parent){x.value=new ResizeObserver(t=>{for(const l of t){const{width:r,height:c}=l.contentRect;N({width:r,height:c})}}),x.value.observe(p.parent);const{width:n,height:o}=p.parent.getBoundingClientRect();N({width:n,height:o})}})}),e.onBeforeUnmount(()=>{x.value&&x.value.disconnect()}),e.watch(()=>p.parent,n=>{if(!n)return;const{width:o,height:t}=p.parent.getBoundingClientRect();N({width:o,height:t})},{immediate:!0});const C=e.ref(!1),F=e.ref(""),u=e.ref(null);function $(n){if(!u.value)return;C.value=!0;const{x:o,y:t}=D(n);F.value=`M ${o} ${t}`}function w(n){if(!C.value||!u.value)return;const{x:o,y:t}=D(n);F.value+=` ${o} ${t}`}function X(n){const o=n.trim().split(/\s+/);if(o.length<4)return n;const t=o.slice(1).map(Number);if(t.length%2!==0)return n;const l=T(t),r=[`M ${l[0]} ${l[1]}`];for(let i=2;i<l.length-2;i+=2){const k=l[i-2],m=l[i-1],d=l[i],v=l[i+1],V=(k+d)/2,z=(m+v)/2;r.push(`Q ${k} ${m} ${V} ${z}`)}const c=l[l.length-2],s=l[l.length-1];return r.push(`L ${c} ${s}`),r.join(" ")}function T(n,o=1){const t=[...n];for(let l=2;l<n.length-2;l+=2){const r=n[l],c=n[l+1],s=n[l-2],i=n[l-1],k=n[l+2],m=n[l+3];t[l]=r+o*((s+k)/2-r),t[l+1]=c+o*((i+m)/2-c)}return t}function Y(n){const o=n.trim().split(/\s+/);let t="",l="",r=null,c=null;for(let s=0;s<o.length;s+=1){const i=o[s];if(isNaN(i)){if(l=i,l==="M"||l==="L")r=parseFloat(o[++s]),c=parseFloat(o[++s]),t+=`${l}${r} ${c}`;else if(l==="Q"){const k=parseFloat(o[++s]),m=parseFloat(o[++s]),d=parseFloat(o[++s]),v=parseFloat(o[++s]);k===r&&m===c?t+=`t${d-r} ${v-c}`:t+=`q${k-r} ${m-c} ${d-r} ${v-c}`,r=d,c=v}}else{const k=parseFloat(i),m=parseFloat(o[++s]);if(l==="L"){const d=k-r,v=m-c;d===0?t+=`v${v}`:v===0?t+=`h${d}`:t+=`l${d} ${v}`,r=k,c=m}else if(l==="Q"){const d=k,v=m,V=parseFloat(o[++s]),z=parseFloat(o[++s]);d===r&&v===c?t+=`t${V-r} ${z-c}`:t+=`q${d-r} ${v-c} ${V-r} ${z-c}`,r=V,c=z}}}return t}function S(){C.value&&(f.value.push({strokeWidth:B.value,path:Y(X(F.value)),color:b.value}),h.value=[],F.value=""),C.value=!1}function D(n){if(!u.value)return{x:0,y:0};const o=u.value.getBoundingClientRect();let t,l;return n.touches&&n.touches.length?(t=n.touches[0].clientX,l=n.touches[0].clientY):(t=n.clientX,l=n.clientY),{x:t-o.left,y:l-o.top}}e.ref(!1);function q(){if(f.value.length>0){const n=f.value.pop();h.value.push(n)}}function I(){if(h.value.length>0){const n=h.value.pop();f.value.push(n)}}function R(){f.value=[],h.value=[]}const O=e.ref(null);return(n,o)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[a.active?(e.openBlock(),e.createElementBlock("div",{key:0,"data-html2canvas-ignore":"",class:e.normalizeClass({"vue-ui-pen-and-paper-actions":!0,visible:a.active})},[e.createElementVNode("button",{class:"vue-ui-pen-and-paper-action",style:e.normalizeStyle({backgroundColor:a.backgroundColor,border:`1px solid ${y.value}`}),onClick:o[0]||(o[0]=t=>P("close"))},[e.createVNode(E.default,{name:"close",stroke:a.color},null,8,["stroke"])],4),e.createElementVNode("button",J,[e.createVNode(G,{value:b.value,"onUpdate:value":o[1]||(o[1]=t=>b.value=t),backgroundColor:a.backgroundColor,buttonBorderColor:y.value},null,8,["value","backgroundColor","buttonBorderColor"])]),e.createElementVNode("button",{class:e.normalizeClass({"vue-ui-pen-and-paper-action":!0,"vue-ui-pen-and-paper-action-disabled":!f.value.length}),disabled:!f.value.length,style:e.normalizeStyle({backgroundColor:a.backgroundColor,border:`1px solid ${y.value}`}),onClick:q},[e.createVNode(E.default,{name:"restart",stroke:a.color},null,8,["stroke"])],14,K),e.createElementVNode("button",{class:e.normalizeClass({"vue-ui-pen-and-paper-action":!0,"vue-ui-pen-and-paper-action-disabled":!h.value.length}),style:e.normalizeStyle({backgroundColor:a.backgroundColor,border:`1px solid ${y.value}`}),onClick:I},[e.createVNode(E.default,{name:"restart",stroke:a.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":!f.value.length},"vue-ui-pen-and-paper-action"]),style:e.normalizeStyle({backgroundColor:a.backgroundColor,border:`1px solid ${y.value}`}),onClick:R},[e.createVNode(E.default,{name:"trash",stroke:a.color},null,8,["stroke"])],6),e.withDirectives(e.createElementVNode("input",{ref_key:"range",ref:O,type:"range",class:"vertical-range",min:.5,max:12,step:.1,"onUpdate:modelValue":o[2]||(o[2]=t=>B.value=t),style:e.normalizeStyle({accentColor:a.color})},null,4),[[e.vModelText,B.value]])],2)):e.createCommentVNode("",!0),(e.openBlock(),e.createElementBlock("svg",{ref_key:"svgElement",ref:u,xmlns:e.unref(M.XMLNS),viewBox:g.value,class:e.normalizeClass({"vue-ui-pen-and-paper":!0,inactive:!a.active}),onMousedown:$,onMousemove:w,onMouseup:S,onMouseleave:S,onTouchstart:e.withModifiers($,["prevent"]),onTouchmove:e.withModifiers(w,["prevent"]),onTouchend:S},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,t=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:t},[t.path.replace("M","").split(" ").length===2?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:t.path.replace("M","").split(" ")[0],cy:t.path.replace("M","").split(" ")[1],r:t.strokeWidth/2,fill:t.color},null,8,ee)):(e.openBlock(),e.createElementBlock("path",{key:1,class:"vue-ui-pen-and-paper-path",d:t.path,stroke:t.color,"stroke-width":t.strokeWidth,fill:"none"},null,8,te))],64))),128)),C.value?(e.openBlock(),e.createElementBlock("path",{key:0,class:"vue-ui-pen-and-paper-path vue-ui-pen-and-paper-path-drawing",d:X(F.value),stroke:b.value,"stroke-width":B.value*1.1,fill:"none"},null,8,oe)):e.createCommentVNode("",!0)],42,Z))],64))}},le=L._export_sfc(ne,[["__scopeId","data-v-a932b1ac"]]);exports.PenAndPaper=le;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { computed as u, openBlock as l, createElementBlock as i, createCommentVNode as a } from "vue";
|
|
2
|
-
import { V as p, O as f } from "./index-
|
|
2
|
+
import { V as p, O as f } from "./index-CsO-G1pF.js";
|
|
3
3
|
const y = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], c = ["d", "fill", "stroke", "stroke-width"], g = ["points", "fill", "stroke", "stroke-width"], $ = {
|
|
4
4
|
__name: "Shape",
|
|
5
5
|
props: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),a=require("./index-
|
|
1
|
+
"use strict";const e=require("vue"),a=require("./index-JhKFCmMY.cjs"),c=["cx","cy","r","fill","stroke","stroke-width"],m=["d","fill","stroke","stroke-width"],v=["points","fill","stroke","stroke-width"],p={__name:"Shape",props:{color:String,isSelected:{type:Boolean,default:!1},limit:{type:Number,default:3},plot:Object,radius:Number,shape:String,stroke:String,strokeWidth:Number,zoom:{type:Number,default:1.3}},emits:["mouseover","mouseout","click"],setup(n,{emit:r}){const t=n;function d(u){return{circle:{points:1,rotation:0},line:{points:2,rotation:0},triangle:{points:3,rotation:.52},square:{points:4,rotation:.783},diamond:{points:4,rotation:0},pentagon:{points:5,rotation:.95},hexagon:{points:6,rotation:0}}[u]}const s=e.computed(()=>d(t.shape)),i=e.computed(()=>t.shape!=="star"?null:a.createStar({plot:{x:t.plot.x,y:t.plot.y},radius:t.radius*(t.isSelected?t.zoom:1)})),k=e.computed(()=>a.createPolygonPath({plot:{x:t.plot.x,y:t.plot.y},radius:t.radius*(t.isSelected?t.zoom:1),sides:s.value.points,rotation:s.value.rotation}).path);return(u,o)=>(e.openBlock(),e.createElementBlock("g",null,[s.value&&s.value.points===1?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:n.plot.x,cy:n.plot.y,r:t.radius*(t.isSelected?t.zoom:1),fill:n.color,stroke:n.stroke,"stroke-width":n.strokeWidth,onMouseover:o[0]||(o[0]=l=>r("mouseover")),onMouseout:o[1]||(o[1]=l=>r("mouseout")),onClick:o[2]||(o[2]=l=>r("click"))},null,40,c)):e.createCommentVNode("",!0),s.value&&s.value.points>=n.limit?(e.openBlock(),e.createElementBlock("path",{key:1,d:k.value,fill:n.color,stroke:n.stroke,"stroke-width":n.strokeWidth,onMouseover:o[3]||(o[3]=l=>r("mouseover")),onMouseout:o[4]||(o[4]=l=>r("mouseout")),onClick:o[5]||(o[5]=l=>r("click"))},null,40,m)):e.createCommentVNode("",!0),i.value?(e.openBlock(),e.createElementBlock("polygon",{key:2,points:i.value,fill:n.color,stroke:n.stroke,"stroke-width":n.strokeWidth,onMouseover:o[6]||(o[6]=l=>r("mouseover")),onMouseout:o[7]||(o[7]=l=>r("mouseout")),onClick:o[8]||(o[8]=l=>r("click"))},null,40,v)):e.createCommentVNode("",!0)]))}};exports._sfc_main=p;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),O=require("./BaseIcon-CQHXoBmk.cjs"),C=require("./useResponsive-BJ7DTGpm.cjs"),v=require("./index-JhKFCmMY.cjs"),T=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),w=l=>(e.pushScopeId("data-v-c810061a"),l=l(),e.popScopeId(),l),U={"data-html2canvas-ignore":"",style:{padding:"0 24px"},class:"vue-data-ui-zoom"},W={class:"vue-data-ui-slicer-labels",style:{position:"relative","z-index":"1","pointer-events":"none"}},j={key:0,style:{width:"100%",position:"relative"}},X={key:0,class:"minimap",style:{width:"100%"}},Z=["xmlns","viewBox"],_=["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","rx","fill"],ee=["x","width","height","fill","rx"],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(l,{emit:h}){const t=l;e.useCssVars(a=>({"7ac36b7a":$.value,"5a93d2b7":f.value,c1558a30:z.value,"3ac913e7":l.selectColor,"84199a16":B.value}));const r=e.ref(t.min),u=e.ref(t.max),p=e.computed(()=>!!t.minimap.length),S=e.ref(v.createUid()),V=e.computed(()=>{const a=t.max-t.min,o=(r.value-t.min)/a*100,i=(u.value-t.min)/a*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),N=e.computed(()=>{let a=[];for(let o=0;o<t.minimap.length;o+=1)a.push(o);return a});function E(){h("reset")}function M(){Number(r.value)>Number(u.value)-1&&(r.value=Number(u.value)-1),h("update:start",Number(r.value))}function L(){Number(u.value)<Number(r.value)+1&&(u.value=Number(r.value)+1),h("update:end",Number(u.value))}e.watch(()=>t.min,a=>{Number(r.value)<Number(a)&&(r.value=Number(a)),Number(u.value)<Number(a)&&(u.value=Number(a))}),e.watch(()=>t.max,a=>{Number(r.value)>Number(a)&&(r.value=Number(a)),Number(u.value)>Number(a)&&(u.value=Number(a))});const g=e.ref(null),n=e.ref({width:1,height:1}),x=e.ref(null);e.onMounted(()=>{if(p.value&&g.value){const a=C.throttle(()=>{requestAnimationFrame(()=>{const{width:o,height:i}=C.useResponsive({chart:g.value});n.value.width=o,n.value.height=Math.max(0,i-47)})});x.value=new ResizeObserver(a),x.value.observe(g.value)}}),e.onBeforeUnmount(()=>{x.value&&x.value.disconnect()});const s=e.computed(()=>t.minimap.length?n.value.width/t.minimap.length:0),c=e.computed(()=>{if(!t.minimap.length)return[];const a=Math.max(...t.minimap),o=Math.min(...t.minimap)-10,i=a-(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)}}),b=t.smoothMinimap?v.createSmoothPath(d):v.createStraightPath(d),k=[...d].slice(t.valueStart,t.valueEnd),R=t.smoothMinimap?v.createSmoothPath(k):v.createStraightPath(k);return{fullSet:b,selectionSet:R,sliced:k,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,a=>{y.value=a+t.valueStart},{immediate:!0});function P(a){y.value=a,a>=t.valueStart&&a<t.valueEnd&&h("trapMouse",a-t.valueStart)}return(a,o)=>(e.openBlock(),e.createElementBlock("div",U,[e.createElementVNode("div",W,[l.valueStart>0||l.valueEnd<l.max?(e.openBlock(),e.createElementBlock("div",j,[l.useResetSlot?e.renderSlot(a.$slots,"reset-action",{key:1,reset:E},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:E},[e.createVNode(O.default,{name:"refresh",stroke:l.textColor},null,8,["stroke"])],4))])):e.createCommentVNode("",!0)]),e.createElementVNode("div",{class:"double-range-slider",ref_key:"minimapWrapper",ref:g,style:{"z-index":"0"}},[p.value?(e.openBlock(),e.createElementBlock("div",X,[(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:S.value,x1:"0%",y1:"0%",x2:"0%",y2:"100%"},[e.createElementVNode("stop",{offset:"0%","stop-color":`${l.minimapLineColor}50`},null,8,G),H],8,_)]),e.createElementVNode("path",{d:`M${c.value.fullSet}`,stroke:`${l.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:l.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(#${S.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,rx:l.minimapSelectionRadius,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:l.minimapSelectedColor,rx:l.minimapSelectionRadius,style:e.normalizeStyle({opacity:l.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(#${S.value})`,stroke:"none",style:{opacity:"1"}},null,8,te),e.createElementVNode("path",{d:`M ${c.value.selectionSet}`,stroke:`${l.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:l.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:l.minimapLineColor},null,8,ne),y.value!==null?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(N.value,(i,d)=>(e.openBlock(),e.createElementBlock("g",null,[y.value===i&&i>=l.valueStart&&i<l.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:l.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(N.value,(i,d)=>(e.openBlock(),e.createElementBlock("rect",{x:s.value*d,y:0,height:n.value.height,width:s.value<0?0:s.value,fill:"transparent",style:{"pointer-events":"all !important"},onMouseenter:b=>P(i),onMouseleave:o[0]||(o[0]=b=>{y.value=null,h("trapMouse",null)})},null,40,ie))),256))],8,Z))])):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:l.min,max:l.max,"onUpdate:modelValue":o[1]||(o[1]=i=>r.value=i),onInput:M},null,40,ue),[[e.vModelText,r.value]]),e.createElementVNode("div",{class:"thumb-label thumb-label-left",style:e.normalizeStyle(F.value)},e.toDisplayString(l.labelLeft),5),e.withDirectives(e.createElementVNode("input",{type:"range",class:"range-right",min:l.min,max:l.max,"onUpdate:modelValue":o[2]||(o[2]=i=>u.value=i),onInput:L},null,40,se),[[e.vModelText,u.value]]),e.createElementVNode("div",{class:"thumb-label thumb-label-right",style:e.normalizeStyle(I.value)},e.toDisplayString(l.labelRight),5)],512)]))}},de=T._export_sfc(ce,[["__scopeId","data-v-c810061a"]]);exports.Slicer=de;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { useCssVars as K, ref as f, computed as d, watch as L, onMounted as Y, onBeforeUnmount as ee, openBlock as
|
|
2
|
-
import oe from "./BaseIcon-
|
|
1
|
+
import { useCssVars as K, ref as f, computed as d, watch as L, onMounted as Y, onBeforeUnmount as ee, openBlock as v, createElementBlock as h, createElementVNode as i, normalizeStyle as S, createVNode as te, renderSlot as le, createCommentVNode as w, unref as ae, Fragment as z, renderList as R, withDirectives as E, vModelText as P, toDisplayString as A, pushScopeId as ie, popScopeId as ne } from "vue";
|
|
2
|
+
import oe from "./BaseIcon-CEx6ctvt.js";
|
|
3
3
|
import { t as ue, u as re } from "./useResponsive-CoxXLe23.js";
|
|
4
|
-
import { c as se, R as V, Q as B, X as de } from "./index-
|
|
4
|
+
import { c as se, R as V, Q as B, X as de } from "./index-CsO-G1pF.js";
|
|
5
5
|
import { _ as me } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
-
const O = (t) => (ie("data-v-
|
|
6
|
+
const O = (t) => (ie("data-v-c810061a"), t = t(), ne(), t), ce = {
|
|
7
7
|
"data-html2canvas-ignore": "",
|
|
8
|
-
style: { padding: "0 24px" }
|
|
9
|
-
|
|
8
|
+
style: { padding: "0 24px" },
|
|
9
|
+
class: "vue-data-ui-zoom"
|
|
10
|
+
}, ve = {
|
|
10
11
|
class: "vue-data-ui-slicer-labels",
|
|
11
12
|
style: { position: "relative", "z-index": "1", "pointer-events": "none" }
|
|
12
13
|
}, he = {
|
|
@@ -19,7 +20,7 @@ const O = (t) => (ie("data-v-35870043"), t = t(), ne(), t), ve = {
|
|
|
19
20
|
}, fe = ["xmlns", "viewBox"], xe = ["id"], ye = ["stop-color"], ge = /* @__PURE__ */ O(() => /* @__PURE__ */ i("stop", {
|
|
20
21
|
offset: "100%",
|
|
21
22
|
"stop-color": "transparent"
|
|
22
|
-
}, null, -1)), be = ["d", "stroke"], Se = ["x", "width", "height", "fill", "rx"], ke = ["d", "fill"], Ce = ["x", "width", "height", "rx", "fill"], we = ["x", "width", "height", "fill", "rx"], Ne = ["d", "fill"], $e = ["d", "stroke"], Me = ["cx", "cy", "stroke", "fill"], Le = ["cx", "cy", "stroke", "fill"], Fe = ["x1", "x2", "y2", "stroke"], Ie = ["x", "height", "width", "onMouseenter"],
|
|
23
|
+
}, null, -1)), be = ["d", "stroke"], Se = ["x", "width", "height", "fill", "rx"], ke = ["d", "fill"], Ce = ["x", "width", "height", "rx", "fill"], we = ["x", "width", "height", "fill", "rx"], Ne = ["d", "fill"], $e = ["d", "stroke"], Me = ["cx", "cy", "stroke", "fill"], Le = ["cx", "cy", "stroke", "fill"], Fe = ["x1", "x2", "y2", "stroke"], Ie = ["x", "height", "width", "onMouseenter"], ze = /* @__PURE__ */ O(() => /* @__PURE__ */ i("div", { class: "slider-track" }, null, -1)), Re = ["min", "max"], Ee = ["min", "max"], Pe = {
|
|
23
24
|
__name: "Slicer",
|
|
24
25
|
props: {
|
|
25
26
|
background: {
|
|
@@ -111,11 +112,11 @@ const O = (t) => (ie("data-v-35870043"), t = t(), ne(), t), ve = {
|
|
|
111
112
|
setup(t, { emit: x }) {
|
|
112
113
|
const e = t;
|
|
113
114
|
K((l) => ({
|
|
114
|
-
"
|
|
115
|
-
"
|
|
116
|
-
|
|
117
|
-
"
|
|
118
|
-
"
|
|
115
|
+
"7ac36b7a": U.value,
|
|
116
|
+
"5a93d2b7": g.value,
|
|
117
|
+
c1558a30: W.value,
|
|
118
|
+
"3ac913e7": t.selectColor,
|
|
119
|
+
"84199a16": T.value
|
|
119
120
|
}));
|
|
120
121
|
const u = f(e.min), r = f(e.max), y = d(() => !!e.minimap.length), N = f(se()), D = d(() => {
|
|
121
122
|
const l = e.max - e.min, n = (u.value - e.min) / l * 100, o = (r.value - e.min) / l * 100;
|
|
@@ -171,19 +172,19 @@ const O = (t) => (ie("data-v-35870043"), t = t(), ne(), t), ve = {
|
|
|
171
172
|
});
|
|
172
173
|
const s = d(() => e.minimap.length ? a.value.width / e.minimap.length : 0), m = d(() => {
|
|
173
174
|
if (!e.minimap.length) return [];
|
|
174
|
-
const l = Math.max(...e.minimap), n = Math.min(...e.minimap) - 10, o = l - (n > 0 ? 0 : n),
|
|
175
|
+
const l = Math.max(...e.minimap), n = Math.min(...e.minimap) - 10, o = l - (n > 0 ? 0 : n), c = e.minimap.map((_, H) => {
|
|
175
176
|
const J = _ - n;
|
|
176
177
|
return {
|
|
177
178
|
x: a.value.width / e.minimap.length * H + s.value / 2,
|
|
178
179
|
y: a.value.height - J / o * (a.value.height * 0.9)
|
|
179
180
|
};
|
|
180
|
-
}), $ = e.smoothMinimap ? V(
|
|
181
|
+
}), $ = e.smoothMinimap ? V(c) : B(c), M = [...c].slice(e.valueStart, e.valueEnd), Q = e.smoothMinimap ? V(M) : B(M);
|
|
181
182
|
return {
|
|
182
183
|
fullSet: $,
|
|
183
184
|
selectionSet: Q,
|
|
184
185
|
sliced: M,
|
|
185
|
-
firstPlot:
|
|
186
|
-
lastPlot:
|
|
186
|
+
firstPlot: c[e.valueStart],
|
|
187
|
+
lastPlot: c[e.valueEnd - 1]
|
|
187
188
|
};
|
|
188
189
|
}), p = d(() => ({
|
|
189
190
|
x: s.value * u.value + s.value / 2,
|
|
@@ -208,13 +209,13 @@ const O = (t) => (ie("data-v-35870043"), t = t(), ne(), t), ve = {
|
|
|
208
209
|
function G(l) {
|
|
209
210
|
b.value = l, l >= e.valueStart && l < e.valueEnd && x("trapMouse", l - e.valueStart);
|
|
210
211
|
}
|
|
211
|
-
return (l, n) => (
|
|
212
|
-
i("div",
|
|
213
|
-
t.valueStart > 0 || t.valueEnd < t.max ? (
|
|
212
|
+
return (l, n) => (v(), h("div", ce, [
|
|
213
|
+
i("div", ve, [
|
|
214
|
+
t.valueStart > 0 || t.valueEnd < t.max ? (v(), h("div", he, [
|
|
214
215
|
t.useResetSlot ? le(l.$slots, "reset-action", {
|
|
215
216
|
key: 1,
|
|
216
217
|
reset: I
|
|
217
|
-
}, void 0, !0) : (
|
|
218
|
+
}, void 0, !0) : (v(), h("button", {
|
|
218
219
|
key: 0,
|
|
219
220
|
"data-cy-reset": "",
|
|
220
221
|
tabindex: "0",
|
|
@@ -239,8 +240,8 @@ const O = (t) => (ie("data-v-35870043"), t = t(), ne(), t), ve = {
|
|
|
239
240
|
ref: k,
|
|
240
241
|
style: { "z-index": "0" }
|
|
241
242
|
}, [
|
|
242
|
-
y.value ? (
|
|
243
|
-
(
|
|
243
|
+
y.value ? (v(), h("div", pe, [
|
|
244
|
+
(v(), h("svg", {
|
|
244
245
|
xmlns: ae(de),
|
|
245
246
|
viewBox: `0 0 ${a.value.width < 0 ? 0 : a.value.width} ${a.value.height < 0 ? 0 : a.value.height}`
|
|
246
247
|
}, [
|
|
@@ -332,11 +333,11 @@ const O = (t) => (ie("data-v-35870043"), t = t(), ne(), t), ve = {
|
|
|
332
333
|
r: "3",
|
|
333
334
|
fill: t.minimapLineColor
|
|
334
335
|
}, null, 8, Le),
|
|
335
|
-
b.value !== null ? (
|
|
336
|
-
b.value === o && o >= t.valueStart && o < t.valueEnd ? (
|
|
336
|
+
b.value !== null ? (v(!0), h(z, { key: 0 }, R(F.value, (o, c) => (v(), h("g", null, [
|
|
337
|
+
b.value === o && o >= t.valueStart && o < t.valueEnd ? (v(), h("line", {
|
|
337
338
|
key: 0,
|
|
338
|
-
x1: s.value *
|
|
339
|
-
x2: s.value *
|
|
339
|
+
x1: s.value * c + s.value / 2,
|
|
340
|
+
x2: s.value * c + s.value / 2,
|
|
340
341
|
y1: 0,
|
|
341
342
|
y2: a.value.height,
|
|
342
343
|
stroke: t.minimapIndicatorColor,
|
|
@@ -345,8 +346,8 @@ const O = (t) => (ie("data-v-35870043"), t = t(), ne(), t), ve = {
|
|
|
345
346
|
"stroke-width": "1"
|
|
346
347
|
}, null, 8, Fe)) : w("", !0)
|
|
347
348
|
]))), 256)) : w("", !0),
|
|
348
|
-
(
|
|
349
|
-
x: s.value *
|
|
349
|
+
(v(!0), h(z, null, R(F.value, (o, c) => (v(), h("rect", {
|
|
350
|
+
x: s.value * c,
|
|
350
351
|
y: 0,
|
|
351
352
|
height: a.value.height,
|
|
352
353
|
width: s.value < 0 ? 0 : s.value,
|
|
@@ -359,7 +360,7 @@ const O = (t) => (ie("data-v-35870043"), t = t(), ne(), t), ve = {
|
|
|
359
360
|
}, null, 40, Ie))), 256))
|
|
360
361
|
], 8, fe))
|
|
361
362
|
])) : w("", !0),
|
|
362
|
-
|
|
363
|
+
ze,
|
|
363
364
|
i("div", {
|
|
364
365
|
class: "range-highlight",
|
|
365
366
|
style: S(D.value)
|
|
@@ -371,7 +372,7 @@ const O = (t) => (ie("data-v-35870043"), t = t(), ne(), t), ve = {
|
|
|
371
372
|
max: t.max,
|
|
372
373
|
"onUpdate:modelValue": n[1] || (n[1] = (o) => u.value = o),
|
|
373
374
|
onInput: X
|
|
374
|
-
}, null, 40,
|
|
375
|
+
}, null, 40, Re), [
|
|
375
376
|
[P, u.value]
|
|
376
377
|
]),
|
|
377
378
|
i("div", {
|
|
@@ -395,7 +396,7 @@ const O = (t) => (ie("data-v-35870043"), t = t(), ne(), t), ve = {
|
|
|
395
396
|
], 512)
|
|
396
397
|
]));
|
|
397
398
|
}
|
|
398
|
-
}, Ue = /* @__PURE__ */ me(Pe, [["__scopeId", "data-v-
|
|
399
|
+
}, Ue = /* @__PURE__ */ me(Pe, [["__scopeId", "data-v-c810061a"]]);
|
|
399
400
|
export {
|
|
400
401
|
Ue as S
|
|
401
402
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),r=require("./useNestedProp-
|
|
1
|
+
"use strict";const e=require("vue"),r=require("./useNestedProp-DMCwXhe0.cjs"),o={__name:"Title",props:{config:{type:Object,default(){return{}}},lineHeight:{type:[String,Boolean],default:!1}},setup(i){const n=i,t=r.useNestedProp({userConfig:n.config,defaultConfig:{title:{cy:"",text:"",color:"",fontSize:20,bold:!0,textAlign:"center",paddingLeft:0,paddingRight:0},subtitle:{cy:"",text:"",color:"",fontSize:14,bold:!1}}});return(l,d)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{style:e.normalizeStyle(`width: calc(100% - ${e.unref(t).title.paddingLeft+e.unref(t).title.paddingRight}px); text-align:${e.unref(t).title.textAlign};color:${e.unref(t).title.color};font-size:${e.unref(t).title.fontSize}px;font-weight:${e.unref(t).title.bold?"bold":""};padding-left:${e.unref(t).title.paddingLeft}px;padding-right:${e.unref(t).title.paddingRight}px;${i.lineHeight?`line-height:${i.lineHeight}`:""}`)},e.toDisplayString(e.unref(t).title.text),5),e.unref(t).subtitle.text?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`width: calc(100% - ${e.unref(t).title.paddingLeft+e.unref(t).title.paddingRight}px); text-align:${e.unref(t).title.textAlign};color:${e.unref(t).subtitle.color};font-size:${e.unref(t).subtitle.fontSize}px;font-weight:${e.unref(t).subtitle.bold?"bold":""};padding-left:${e.unref(t).title.paddingLeft}px;padding-right:${e.unref(t).title.paddingRight}px;${i.lineHeight?`line-height:${i.lineHeight}`:""}`)},e.toDisplayString(e.unref(t).subtitle.text),5)):e.createCommentVNode("",!0),e.unref(t).subtitle.text?(e.openBlock(),e.createElementBlock("div",{key:1,style:e.normalizeStyle(`width: calc(100% - ${e.unref(t).title.paddingLeft+e.unref(t).title.paddingRight}px); text-align:${e.unref(t).title.textAlign};color:${e.unref(t).subtitle.color};font-size:${e.unref(t).subtitle.fontSize}px;font-weight:${e.unref(t).subtitle.bold?"bold":""};padding-left:${e.unref(t).title.paddingLeft}px;padding-right:${e.unref(t).title.paddingRight}px;${i.lineHeight?`line-height:${i.lineHeight}`:""}`)},[e.renderSlot(l.$slots,"default")],4)):e.createCommentVNode("",!0)],64))}};exports._sfc_main=o;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { openBlock as l, createElementBlock as n, Fragment as f, createElementVNode as p, normalizeStyle as d, unref as e, toDisplayString as g, createCommentVNode as o, renderSlot as r } from "vue";
|
|
2
|
-
import { u as c } from "./useNestedProp-
|
|
2
|
+
import { u as c } from "./useNestedProp-25bpPEIJ.js";
|
|
3
3
|
const x = {
|
|
4
4
|
__name: "Title",
|
|
5
5
|
props: {
|