@orchidui/dashboard 1.18.0 → 1.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Dashboard/Card/OcCard.js +1 -1
- package/dist/Dashboard/Charts/BarChart/OcBarChart.js +1 -1
- package/dist/Dashboard/Charts/BarRaceChart/OcBarRaceChart.js +1 -1
- package/dist/Dashboard/Charts/LineChart/OcLineChart.js +1 -1
- package/dist/Dashboard/Charts/PieChart/OcPieChart.js +1 -1
- package/dist/Dashboard/TextEditor/QuillEditor.js +1 -1
- package/dist/{OcBarChart-CgKo9rAM.js → OcBarChart-DFnF2-u0.js} +2 -2
- package/dist/{OcBarRaceChart-D_XrqdiO.js → OcBarRaceChart-B6S4Rrlq.js} +3 -3
- package/dist/{OcCard-BpqC7suH.js → OcCard-D3be6IMj.js} +1 -1
- package/dist/OcCodeBlock-uFQyGnLq.js +37 -0
- package/dist/{OcLineChart-dAL6sRiP.js → OcLineChart-CTDLgo1v.js} +2 -2
- package/dist/OcLottieAnimation-BjY3rCjS.js +7747 -0
- package/dist/{OcPieChart-Kn-CkXip.js → OcPieChart-NSv6CW-L.js} +4 -4
- package/dist/QuillEditor-DwCbpq2d.js +9569 -0
- package/dist/index.js +587 -556
- package/package.json +1 -1
- package/dist/OcCodeBlock-chTpuRDc.js +0 -63
- package/dist/OcLottieAnimation-EBkAB8-y.js +0 -7741
- package/dist/QuillEditor-BHWfmp5D.js +0 -9544
- /package/dist/{style.css → dashboard.css} +0 -0
package/dist/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
var pt = Object.defineProperty;
|
|
2
2
|
var gt = (n, V, r) => V in n ? pt(n, V, { enumerable: !0, configurable: !0, writable: !0, value: r }) : n[V] = r;
|
|
3
|
-
var
|
|
4
|
-
import { ref as v, computed as
|
|
5
|
-
import { Q as
|
|
6
|
-
import { BaseInput as
|
|
7
|
-
import {
|
|
3
|
+
var ze = (n, V, r) => gt(n, typeof V != "symbol" ? V + "" : V, r);
|
|
4
|
+
import { ref as v, computed as be, createBlock as F, openBlock as m, unref as w, normalizeClass as Q, withCtx as Y, createVNode as T, createElementBlock as E, createSlots as vt, renderSlot as Ke, normalizeStyle as ee, createCommentVNode as H, onMounted as _e, watch as ye, createElementVNode as b, Fragment as pe, createTextVNode as ge, toDisplayString as Pe, renderList as Ze, withKeys as it, inject as Be, reactive as et, provide as Te, nextTick as mt, withDirectives as ft, vShow as ht, defineComponent as bt, defineAsyncComponent as st } from "vue";
|
|
5
|
+
import { Q as G, a as yt } from "./QuillEditor-DwCbpq2d.js";
|
|
6
|
+
import { BaseInput as rt, Dropdown as ut, Input as $e, Icon as A, Modal as xt, Select as Je, Slider as Ne } from "@orchidui/core";
|
|
7
|
+
import { rgbToHsl as tt, rgb2Hex as lt, rgbaToHex8 as kt, hsl2Hex as at, hexToRgb as je, rgbToHue as Ae, hslToRgb as nt, hex8ToRgba as $t, parseRgba as wt, parseRgb as St } from "./Dashboard/ColorPicker/components/converters.js";
|
|
8
8
|
import { PieChart as Ct } from "./Dashboard/Charts/PieChart/OcPieChart.js";
|
|
9
|
-
import { LineChart as
|
|
9
|
+
import { LineChart as Ml } from "./Dashboard/Charts/LineChart/OcLineChart.js";
|
|
10
10
|
import { BarChart as Al } from "./Dashboard/Charts/BarChart/OcBarChart.js";
|
|
11
|
-
import { BarRaceChart as
|
|
12
|
-
import { _ as
|
|
11
|
+
import { BarRaceChart as Pl } from "./Dashboard/Charts/BarRaceChart/OcBarRaceChart.js";
|
|
12
|
+
import { _ as ql } from "./OcCard-D3be6IMj.js";
|
|
13
13
|
const It = { key: 1 }, Vt = {
|
|
14
14
|
__name: "OcColorPicker",
|
|
15
15
|
props: {
|
|
@@ -33,9 +33,9 @@ const It = { key: 1 }, Vt = {
|
|
|
33
33
|
},
|
|
34
34
|
emits: ["update:model-value"],
|
|
35
35
|
setup(n, { emit: V }) {
|
|
36
|
-
const r = n,
|
|
37
|
-
|
|
38
|
-
}, p =
|
|
36
|
+
const r = n, y = V, u = v(!1), f = v(r.modelValue), C = (U) => {
|
|
37
|
+
U && (f.value = U, y("update:model-value", U));
|
|
38
|
+
}, p = be(() => r.variant === "gradient" ? {
|
|
39
39
|
class: "w-[20px] h-[20px] hide-svg-icon",
|
|
40
40
|
style: {
|
|
41
41
|
background: f.value
|
|
@@ -44,40 +44,40 @@ const It = { key: 1 }, Vt = {
|
|
|
44
44
|
style: {
|
|
45
45
|
color: f.value
|
|
46
46
|
}
|
|
47
|
-
}), a = v(),
|
|
48
|
-
|
|
47
|
+
}), a = v(), O = v([]), j = () => {
|
|
48
|
+
O.value.length > 8 && (O.value = O.value.filter((U, N) => N < 8)), localStorage.setItem("ck-cp-local-color-list", JSON.stringify(O.value));
|
|
49
49
|
};
|
|
50
|
-
let
|
|
51
|
-
|
|
52
|
-
const L = (
|
|
53
|
-
if (!
|
|
54
|
-
if (
|
|
55
|
-
|
|
50
|
+
let M = localStorage.getItem("ck-cp-local-color-list");
|
|
51
|
+
M && (O.value = [...new Set(JSON.parse(M))], j());
|
|
52
|
+
const L = (U) => {
|
|
53
|
+
if (!U && f.value)
|
|
54
|
+
if (O.value.find((D) => D === f.value))
|
|
55
|
+
O.value = [
|
|
56
56
|
f.value,
|
|
57
|
-
...
|
|
58
|
-
],
|
|
57
|
+
...O.value.filter((D) => D !== f.value)
|
|
58
|
+
], j();
|
|
59
59
|
else {
|
|
60
|
-
|
|
61
|
-
let
|
|
62
|
-
|
|
60
|
+
O.value.length >= 9 && O.value.pop();
|
|
61
|
+
let D = f.value;
|
|
62
|
+
O.value.unshift(D), j();
|
|
63
63
|
}
|
|
64
|
-
}, B = v(!1),
|
|
65
|
-
f.value =
|
|
64
|
+
}, B = v(!1), W = (U) => {
|
|
65
|
+
f.value = U, y("update:model-value", U), u.value = !1;
|
|
66
66
|
};
|
|
67
|
-
return (
|
|
67
|
+
return (U, N) => (m(), F(w(rt), {
|
|
68
68
|
class: Q(n.hideInputColor ? "w-[40px]" : ""),
|
|
69
|
-
onClick:
|
|
70
|
-
var
|
|
71
|
-
return (
|
|
69
|
+
onClick: N[1] || (N[1] = () => {
|
|
70
|
+
var D;
|
|
71
|
+
return (D = a.value) == null ? void 0 : D.toggleDropdown();
|
|
72
72
|
})
|
|
73
73
|
}, {
|
|
74
|
-
default:
|
|
75
|
-
T(w(
|
|
74
|
+
default: Y(() => [
|
|
75
|
+
T(w(ut), {
|
|
76
76
|
ref_key: "dropdownRef",
|
|
77
77
|
ref: a,
|
|
78
78
|
modelValue: u.value,
|
|
79
79
|
"onUpdate:modelValue": [
|
|
80
|
-
|
|
80
|
+
N[0] || (N[0] = (D) => u.value = D),
|
|
81
81
|
L
|
|
82
82
|
],
|
|
83
83
|
"max-menu-height": 800,
|
|
@@ -86,40 +86,40 @@ const It = { key: 1 }, Vt = {
|
|
|
86
86
|
strategy: "fixed"
|
|
87
87
|
}
|
|
88
88
|
}, {
|
|
89
|
-
menu:
|
|
90
|
-
B.value ?
|
|
89
|
+
menu: Y(() => [
|
|
90
|
+
B.value ? H("", !0) : (m(), F(w(xl), {
|
|
91
91
|
key: 0,
|
|
92
92
|
variant: n.variant,
|
|
93
93
|
"show-alpha": !n.hideOpacity,
|
|
94
94
|
type: n.hideOpacity ? "HEX" : "HEX8",
|
|
95
95
|
"model-value": n.modelValue,
|
|
96
|
-
"last-used-colors":
|
|
96
|
+
"last-used-colors": O.value,
|
|
97
97
|
"preset-colors": n.presetColors,
|
|
98
98
|
"onUpdate:modelValue": C,
|
|
99
|
-
onLastUsedPick:
|
|
99
|
+
onLastUsedPick: W
|
|
100
100
|
}, null, 8, ["variant", "show-alpha", "type", "model-value", "last-used-colors", "preset-colors"]))
|
|
101
101
|
]),
|
|
102
|
-
default:
|
|
102
|
+
default: Y(() => [
|
|
103
103
|
n.hideInputColor ? (m(), E("div", It, [
|
|
104
|
-
|
|
104
|
+
Ke(U.$slots, "picker-icon", {}, () => [
|
|
105
105
|
T(w(A), {
|
|
106
106
|
class: "cursor-pointer",
|
|
107
|
-
style:
|
|
107
|
+
style: ee(`color: ${f.value}`),
|
|
108
108
|
name: "drop"
|
|
109
109
|
}, null, 8, ["style"])
|
|
110
110
|
])
|
|
111
|
-
])) : (m(),
|
|
111
|
+
])) : (m(), F(w($e), {
|
|
112
112
|
key: 0,
|
|
113
113
|
"model-value": f.value,
|
|
114
114
|
icon: "drop",
|
|
115
115
|
"icon-props": p.value,
|
|
116
|
-
placeholder: "
|
|
116
|
+
placeholder: "",
|
|
117
117
|
"onUpdate:modelValue": C
|
|
118
118
|
}, vt({ _: 2 }, [
|
|
119
|
-
|
|
119
|
+
U.$slots.leading ? {
|
|
120
120
|
name: "leading",
|
|
121
|
-
fn:
|
|
122
|
-
|
|
121
|
+
fn: Y(() => [
|
|
122
|
+
Ke(U.$slots, "leading")
|
|
123
123
|
]),
|
|
124
124
|
key: "0"
|
|
125
125
|
} : void 0
|
|
@@ -131,10 +131,10 @@ const It = { key: 1 }, Vt = {
|
|
|
131
131
|
_: 3
|
|
132
132
|
}, 8, ["class"]));
|
|
133
133
|
}
|
|
134
|
-
}, Lt = ["id"], Tt = { class: "flex items-center gap-x-3 px-5" }, Bt = { class: "flex items-center gap-x-5 cursor-pointer" }, Rt = { class: "flex flex-col py-2 overflow-hidden" }, Et = ["onClick"],
|
|
134
|
+
}, Lt = ["id"], Tt = { class: "flex items-center gap-x-3 px-5" }, Bt = { class: "flex items-center gap-x-5 cursor-pointer" }, Rt = { class: "flex flex-col py-2 overflow-hidden" }, Et = ["onClick"], Ut = { class: "flex gap-x-3 items-center px-5" }, Dt = { class: "flex items-center gap-x-3 px-5" }, Ht = { class: "flex gap-x-3 items-center px-5" }, Ot = { class: "flex gap-x-3 items-center px-5" }, Mt = { class: "flex items-center" }, Qt = { class: "grid cursor-pointer px-5" }, At = {
|
|
135
135
|
key: 5,
|
|
136
136
|
class: "flex gap-x-3 items-center px-5"
|
|
137
|
-
},
|
|
137
|
+
}, Nt = { class: "flex" }, Pt = { class: "mt-1 mx-2 cursor-pointer" }, Rl = {
|
|
138
138
|
__name: "OcTextEditor",
|
|
139
139
|
props: {
|
|
140
140
|
/**
|
|
@@ -187,7 +187,7 @@ const It = { key: 1 }, Vt = {
|
|
|
187
187
|
},
|
|
188
188
|
emits: ["update:modelValue", "update:image"],
|
|
189
189
|
setup(n, { emit: V }) {
|
|
190
|
-
const r = n,
|
|
190
|
+
const r = n, y = V, u = {
|
|
191
191
|
default: [
|
|
192
192
|
"changes",
|
|
193
193
|
"font-size",
|
|
@@ -200,111 +200,136 @@ const It = { key: 1 }, Vt = {
|
|
|
200
200
|
"alignment"
|
|
201
201
|
],
|
|
202
202
|
"text-only": ["changes", "font-size", "font-style", "link", "quote", "list", "alignment"]
|
|
203
|
-
}, f =
|
|
204
|
-
C.whitelist = r.fontSizes.map((c) => c.value),
|
|
205
|
-
const p =
|
|
206
|
-
|
|
207
|
-
const a =
|
|
208
|
-
|
|
209
|
-
const
|
|
210
|
-
|
|
211
|
-
const
|
|
212
|
-
|
|
213
|
-
const
|
|
214
|
-
|
|
215
|
-
const L =
|
|
203
|
+
}, f = be(() => u[r.variant]), C = G.import("attributors/style/size");
|
|
204
|
+
C.whitelist = r.fontSizes.map((c) => c.value), G.register(C, !0);
|
|
205
|
+
const p = G.import("attributors/style/align");
|
|
206
|
+
G.register(p, !0);
|
|
207
|
+
const a = G.import("attributors/style/background");
|
|
208
|
+
G.register(a, !0);
|
|
209
|
+
const O = G.import("attributors/style/color");
|
|
210
|
+
G.register(O, !0);
|
|
211
|
+
const j = G.import("attributors/style/direction");
|
|
212
|
+
G.register(j, !0);
|
|
213
|
+
const M = G.import("attributors/style/font");
|
|
214
|
+
G.register(M, !0);
|
|
215
|
+
const L = G.import("blots/block/embed");
|
|
216
216
|
class B extends L {
|
|
217
217
|
}
|
|
218
|
-
|
|
219
|
-
const
|
|
218
|
+
ze(B, "blotName", "divider"), ze(B, "tagName", "hr"), G.register(B);
|
|
219
|
+
const W = v(
|
|
220
220
|
Math.random().toString(36).replace(/[^a-zA-Z]+/g, "")
|
|
221
|
-
),
|
|
222
|
-
|
|
221
|
+
), U = v(!1), N = v(!1), D = v(!1), te = v(!1), K = v(!1), z = v(!1), R = v(!1), q = v(""), le = v(""), _ = v(""), x = v(), we = v(!1), ue = v(r.image), ve = be(() => {
|
|
222
|
+
const c = [
|
|
223
|
+
"background",
|
|
224
|
+
"bold",
|
|
225
|
+
"color",
|
|
226
|
+
"font",
|
|
227
|
+
"code",
|
|
228
|
+
"italic",
|
|
229
|
+
"link",
|
|
230
|
+
"size",
|
|
231
|
+
"strike",
|
|
232
|
+
"script",
|
|
233
|
+
"underline",
|
|
234
|
+
"blockquote",
|
|
235
|
+
"header",
|
|
236
|
+
"indent",
|
|
237
|
+
"list",
|
|
238
|
+
"align",
|
|
239
|
+
"direction",
|
|
240
|
+
"code-block",
|
|
241
|
+
"formula"
|
|
242
|
+
];
|
|
243
|
+
return f.value.includes("image") && c.push("image"), f.value.includes("media") && c.push("video"), {
|
|
244
|
+
formats: c
|
|
245
|
+
};
|
|
246
|
+
}), Se = (c) => {
|
|
247
|
+
U.value = x.value.getQuill().history.stack.undo.length > 0, N.value = x.value.getQuill().history.stack.redo.length > 0, D.value = x.value.getQuill().getFormat().bold, te.value = x.value.getQuill().getFormat().italic, K.value = x.value.getQuill().getFormat().underline, R.value = x.value.getQuill().getFormat().blockquote, le.value = x.value.getQuill().getFormat().list, _.value = x.value.getQuill().getFormat().align;
|
|
223
248
|
let o = document.createElement("div");
|
|
224
|
-
o.innerHTML = c,
|
|
225
|
-
},
|
|
226
|
-
if (
|
|
227
|
-
const o =
|
|
228
|
-
|
|
229
|
-
`,
|
|
249
|
+
o.innerHTML = c, we.value && (o.innerText ? y("update:modelValue", c || "") : y("update:modelValue", ""), o.remove());
|
|
250
|
+
}, Re = () => {
|
|
251
|
+
if (x.value.getQuill().getSelection(!0)) {
|
|
252
|
+
const o = x.value.getQuill().getSelection(!0);
|
|
253
|
+
x.value.getQuill().insertText(o.index, `
|
|
254
|
+
`, G.sources.USER), x.value.getQuill().insertEmbed(o.index + 1, "divider", !0, G.sources.USER), x.value.getQuill().setSelection(o.index + 2, G.sources.SILENT);
|
|
230
255
|
}
|
|
231
256
|
}, Ee = () => {
|
|
232
|
-
|
|
233
|
-
}, Me = () => {
|
|
234
|
-
y.value.getQuill().history.redo(), ie(r.modelValue);
|
|
257
|
+
x.value.getQuill().history.undo(), Se(r.modelValue);
|
|
235
258
|
}, Ce = () => {
|
|
259
|
+
x.value.getQuill().history.redo(), Se(r.modelValue);
|
|
260
|
+
}, ae = () => {
|
|
236
261
|
var c;
|
|
237
|
-
|
|
238
|
-
}, ne = () => {
|
|
239
|
-
var c;
|
|
240
|
-
y.value.getQuill().format("italic", !le.value), (c = y.value.getQuill().getSelection()) != null && c.length || (le.value = !le.value);
|
|
262
|
+
x.value.getQuill().format("bold", !D.value), (c = x.value.getQuill().getSelection()) != null && c.length || (D.value = !D.value);
|
|
241
263
|
}, Ie = () => {
|
|
242
264
|
var c;
|
|
243
|
-
|
|
265
|
+
x.value.getQuill().format("italic", !te.value), (c = x.value.getQuill().getSelection()) != null && c.length || (te.value = !te.value);
|
|
266
|
+
}, Xe = () => {
|
|
267
|
+
var c;
|
|
268
|
+
x.value.getQuill().format("underline", !K.value), (c = x.value.getQuill().getSelection()) != null && c.length || (K.value = !K.value);
|
|
269
|
+
}, de = (c) => {
|
|
270
|
+
x.value.getQuill().format("size", c), q.value = c, z.value = !1;
|
|
271
|
+
}, qe = () => {
|
|
272
|
+
const c = x.value.getQuill().getSelection();
|
|
273
|
+
c && c.length > 0 && x.value.getQuill().theme.tooltip.edit();
|
|
274
|
+
}, ne = () => {
|
|
275
|
+
x.value.getQuill().format("blockquote", !R.value);
|
|
244
276
|
}, Ue = (c) => {
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
}, Pe = () => {
|
|
250
|
-
y.value.getQuill().format("blockquote", !R.value);
|
|
251
|
-
}, oe = (c) => {
|
|
252
|
-
const o = y.value.getQuill().getSelection();
|
|
253
|
-
o && (y.value.getQuill().clipboard.dangerouslyPasteHTML(o.index, `<img src="${c}" />`), ue.value = c, b("update:image", ue.value));
|
|
254
|
-
}, De = () => {
|
|
255
|
-
y.value.getQuill().getSelection() || y.value.getQuill().setSelection(y.value.getQuill().getLength() - 1);
|
|
277
|
+
const o = x.value.getQuill().getSelection();
|
|
278
|
+
o && (x.value.getQuill().clipboard.dangerouslyPasteHTML(o.index, `<img src="${c}" />`), ue.value = c, y("update:image", ue.value));
|
|
279
|
+
}, Fe = () => {
|
|
280
|
+
x.value.getQuill().getSelection() || x.value.getQuill().setSelection(x.value.getQuill().getLength() - 1);
|
|
256
281
|
const c = document.createElement("input");
|
|
257
282
|
c.type = "file", c.accept = "jpg,.jpeg,.png,.webp,.gif", c.onchange = () => {
|
|
258
|
-
const o = c.files[0],
|
|
259
|
-
|
|
283
|
+
const o = c.files[0], h = new FileReader();
|
|
284
|
+
h.onload = () => Ue(h.result), h.readAsDataURL(o);
|
|
260
285
|
}, c.click();
|
|
261
|
-
},
|
|
286
|
+
}, P = (c) => /^data:image\/(png|jpg|jpeg|gif);base64,/.test(c), Z = (c) => {
|
|
262
287
|
setTimeout(() => {
|
|
263
|
-
var
|
|
288
|
+
var h;
|
|
264
289
|
if (c) {
|
|
265
|
-
const
|
|
266
|
-
|
|
267
|
-
let
|
|
268
|
-
if (
|
|
269
|
-
for (let
|
|
270
|
-
const
|
|
271
|
-
|
|
290
|
+
const J = x.value.getHTML(), ce = document.createElement("div");
|
|
291
|
+
ce.innerHTML = J;
|
|
292
|
+
let se = ce.getElementsByTagName("img");
|
|
293
|
+
if (se && se.length > 0)
|
|
294
|
+
for (let he = 0; he < se.length; he++) {
|
|
295
|
+
const Qe = (h = se[he]) == null ? void 0 : h.getAttribute("src");
|
|
296
|
+
P(Qe) && y("update:image", Qe);
|
|
272
297
|
}
|
|
273
298
|
}
|
|
274
299
|
}, 100);
|
|
275
300
|
const { items: o } = c.clipboardData;
|
|
276
|
-
o.length && o[0].getAsString((
|
|
277
|
-
|
|
301
|
+
o.length && o[0].getAsString((h) => {
|
|
302
|
+
P(h) && (x.value.getQuill().getSelection() || x.value.getQuill().setSelection(x.value.getQuill().getLength() - 1));
|
|
278
303
|
});
|
|
279
|
-
},
|
|
280
|
-
|
|
281
|
-
},
|
|
282
|
-
|
|
283
|
-
},
|
|
284
|
-
|
|
285
|
-
},
|
|
286
|
-
|
|
304
|
+
}, De = () => {
|
|
305
|
+
x.value.getQuill().theme.tooltip.edit("video");
|
|
306
|
+
}, He = (c) => {
|
|
307
|
+
x.value.getQuill().format("list", c), le.value = c;
|
|
308
|
+
}, me = (c = void 0) => {
|
|
309
|
+
x.value.getQuill().format("align", c), _.value = c;
|
|
310
|
+
}, fe = v(""), Oe = () => {
|
|
311
|
+
x.value.getQuill().format("color", fe.value);
|
|
287
312
|
};
|
|
288
|
-
|
|
289
|
-
|
|
313
|
+
_e(() => {
|
|
314
|
+
de(r.initialFontSize || r.fontSizes[0].value), we.value = !0;
|
|
290
315
|
});
|
|
291
|
-
const
|
|
292
|
-
var
|
|
293
|
-
|
|
294
|
-
const o = (
|
|
295
|
-
o && o.nodeName !== "#text" && (
|
|
296
|
-
},
|
|
297
|
-
var
|
|
298
|
-
const o = (
|
|
316
|
+
const ie = v(100), xe = v(!1), Me = (c) => {
|
|
317
|
+
var h, J;
|
|
318
|
+
ie.value = c;
|
|
319
|
+
const o = (h = window.getSelection()) == null ? void 0 : h.focusNode;
|
|
320
|
+
o && o.nodeName !== "#text" && (x.value.getQuill().format("width", `${ie.value}%`), (J = o == null ? void 0 : o.querySelector("img")) == null || J.setAttribute("style", "margin:auto;display:block;"));
|
|
321
|
+
}, ke = (c = "left") => {
|
|
322
|
+
var h, J;
|
|
323
|
+
const o = (h = window.getSelection()) == null ? void 0 : h.focusNode;
|
|
299
324
|
if (o && o.nodeName !== "#text") {
|
|
300
|
-
let
|
|
301
|
-
c == "center" ?
|
|
325
|
+
let ce = "float:left";
|
|
326
|
+
c == "center" ? ce = "" : c == "right" && (ce = "float:right"), (J = o == null ? void 0 : o.querySelector("img")) == null || J.setAttribute("style", `margin:auto;display:block;${ce}`);
|
|
302
327
|
}
|
|
303
|
-
},
|
|
328
|
+
}, oe = () => {
|
|
304
329
|
var o;
|
|
305
330
|
const c = (o = window.getSelection()) == null ? void 0 : o.focusNode;
|
|
306
|
-
|
|
307
|
-
},
|
|
331
|
+
xe.value = c.innerHTML && c.innerHTML.includes("<img");
|
|
332
|
+
}, X = v(!1), Ve = v(3), Le = v(3), Ge = be(() => {
|
|
308
333
|
let c = [];
|
|
309
334
|
for (let o = 1; o < 30; o++)
|
|
310
335
|
c.push({
|
|
@@ -312,7 +337,7 @@ const It = { key: 1 }, Vt = {
|
|
|
312
337
|
value: o.toString()
|
|
313
338
|
});
|
|
314
339
|
return c;
|
|
315
|
-
}),
|
|
340
|
+
}), Ye = be(() => {
|
|
316
341
|
let c = [];
|
|
317
342
|
for (let o = 1; o < 12; o++)
|
|
318
343
|
c.push({
|
|
@@ -320,12 +345,16 @@ const It = { key: 1 }, Vt = {
|
|
|
320
345
|
value: o.toString()
|
|
321
346
|
});
|
|
322
347
|
return c;
|
|
323
|
-
}),
|
|
324
|
-
|
|
348
|
+
}), We = () => {
|
|
349
|
+
let c = x.value.getQuill().getModule("better-table");
|
|
350
|
+
c == null || c.insertTable(parseInt(Ve.value), parseInt(Le.value)), X.value = !1;
|
|
325
351
|
};
|
|
326
|
-
return
|
|
327
|
-
|
|
328
|
-
|
|
352
|
+
return ye(
|
|
353
|
+
() => r.modelValue,
|
|
354
|
+
(c) => {
|
|
355
|
+
c || x.value.getQuill().setContents([], "silent");
|
|
356
|
+
}
|
|
357
|
+
), (c, o) => (m(), F(w(rt), {
|
|
329
358
|
label: n.label,
|
|
330
359
|
hint: n.hint,
|
|
331
360
|
"error-message": n.errorMessage,
|
|
@@ -334,98 +363,100 @@ const It = { key: 1 }, Vt = {
|
|
|
334
363
|
"tooltip-text": n.tooltipText,
|
|
335
364
|
"tooltip-options": n.tooltipOptions
|
|
336
365
|
}, {
|
|
337
|
-
default:
|
|
366
|
+
default: Y(() => [
|
|
338
367
|
T(w(xt), {
|
|
339
368
|
title: "Insert table",
|
|
340
|
-
modelValue:
|
|
341
|
-
"onUpdate:modelValue": o[2] || (o[2] = (
|
|
369
|
+
modelValue: X.value,
|
|
370
|
+
"onUpdate:modelValue": o[2] || (o[2] = (h) => X.value = h),
|
|
342
371
|
class: "!w-full !h-full",
|
|
343
372
|
confirmButtonProps: {
|
|
344
373
|
label: "Save",
|
|
345
|
-
onClick: () =>
|
|
374
|
+
onClick: () => We()
|
|
346
375
|
}
|
|
347
376
|
}, {
|
|
348
|
-
default:
|
|
349
|
-
T(w(
|
|
350
|
-
modelValue:
|
|
351
|
-
"onUpdate:modelValue": o[0] || (o[0] = (
|
|
352
|
-
options:
|
|
377
|
+
default: Y(() => [
|
|
378
|
+
T(w(Je), {
|
|
379
|
+
modelValue: Le.value,
|
|
380
|
+
"onUpdate:modelValue": o[0] || (o[0] = (h) => Le.value = h),
|
|
381
|
+
options: Ye.value,
|
|
353
382
|
label: "Table cell",
|
|
354
383
|
class: "mb-3"
|
|
355
384
|
}, null, 8, ["modelValue", "options"]),
|
|
356
|
-
T(w(
|
|
357
|
-
modelValue:
|
|
358
|
-
"onUpdate:modelValue": o[1] || (o[1] = (
|
|
359
|
-
options:
|
|
385
|
+
T(w(Je), {
|
|
386
|
+
modelValue: Ve.value,
|
|
387
|
+
"onUpdate:modelValue": o[1] || (o[1] = (h) => Ve.value = h),
|
|
388
|
+
options: Ge.value,
|
|
360
389
|
label: "Table rows"
|
|
361
390
|
}, null, 8, ["modelValue", "options"])
|
|
362
391
|
]),
|
|
363
392
|
_: 1
|
|
364
393
|
}, 8, ["modelValue", "confirmButtonProps"]),
|
|
365
|
-
|
|
394
|
+
b("div", {
|
|
366
395
|
class: Q(["grid", { "has-error": n.errorMessage }]),
|
|
367
|
-
onClick:
|
|
396
|
+
onClick: oe
|
|
368
397
|
}, [
|
|
369
|
-
|
|
398
|
+
W.value ? (m(), F(w(yt), {
|
|
370
399
|
key: 0,
|
|
371
|
-
id: `#${
|
|
400
|
+
id: `#${W.value}`,
|
|
372
401
|
ref_key: "quill",
|
|
373
|
-
ref:
|
|
402
|
+
ref: x,
|
|
374
403
|
content: n.modelValue,
|
|
375
404
|
options: {
|
|
376
|
-
bounds: `#${
|
|
405
|
+
bounds: `#${W.value}`
|
|
377
406
|
},
|
|
407
|
+
"is-text-only": "",
|
|
378
408
|
theme: "snow",
|
|
379
409
|
"content-type": "html",
|
|
410
|
+
"global-options": ve.value,
|
|
380
411
|
class: "min-h-[200px]",
|
|
381
412
|
placeholder: n.placeholder,
|
|
382
|
-
"onUpdate:content":
|
|
383
|
-
onPaste:
|
|
413
|
+
"onUpdate:content": Se,
|
|
414
|
+
onPaste: Z
|
|
384
415
|
}, {
|
|
385
|
-
toolbar:
|
|
386
|
-
|
|
387
|
-
id:
|
|
416
|
+
toolbar: Y(() => [
|
|
417
|
+
b("div", {
|
|
418
|
+
id: W.value,
|
|
388
419
|
class: "flex min-h-[36px] flex-wrap !py-2 !px-3 gap-y-2 rounded-t"
|
|
389
420
|
}, [
|
|
390
|
-
f.value.includes("changes") ? (m(), E(
|
|
391
|
-
|
|
421
|
+
f.value.includes("changes") ? (m(), E(pe, { key: 0 }, [
|
|
422
|
+
b("div", Tt, [
|
|
392
423
|
T(w(A), {
|
|
393
|
-
class: Q(
|
|
424
|
+
class: Q(U.value ? "text-oc-text cursor-pointer" : "text-oc-text-300"),
|
|
394
425
|
width: "20",
|
|
395
426
|
height: "20",
|
|
396
427
|
name: "text-editor/undo",
|
|
397
428
|
onClick: Ee
|
|
398
429
|
}, null, 8, ["class"]),
|
|
399
430
|
T(w(A), {
|
|
400
|
-
class: Q(
|
|
431
|
+
class: Q(N.value ? "text-oc-text cursor-pointer" : "text-oc-text-300"),
|
|
401
432
|
width: "20",
|
|
402
433
|
height: "20",
|
|
403
434
|
name: "text-editor/redo",
|
|
404
|
-
onClick:
|
|
435
|
+
onClick: Ce
|
|
405
436
|
}, null, 8, ["class"])
|
|
406
437
|
]),
|
|
407
|
-
o[16] || (o[16] =
|
|
408
|
-
], 64)) :
|
|
409
|
-
f.value.includes("font-size") ? (m(), E(
|
|
410
|
-
T(w(
|
|
438
|
+
o[16] || (o[16] = b("div", { class: "border-l border-oc-gray-200" }, null, -1))
|
|
439
|
+
], 64)) : H("", !0),
|
|
440
|
+
f.value.includes("font-size") ? (m(), E(pe, { key: 1 }, [
|
|
441
|
+
T(w(ut), {
|
|
411
442
|
modelValue: z.value,
|
|
412
|
-
"onUpdate:modelValue": o[3] || (o[3] = (
|
|
443
|
+
"onUpdate:modelValue": o[3] || (o[3] = (h) => z.value = h),
|
|
413
444
|
class: "px-5"
|
|
414
445
|
}, {
|
|
415
|
-
menu:
|
|
416
|
-
|
|
417
|
-
(m(!0), E(
|
|
418
|
-
key:
|
|
419
|
-
class: Q(["min-w-[120px] cursor-pointer py-2 px-3 hover:bg-oc-gray-50",
|
|
420
|
-
onClick: (
|
|
421
|
-
},
|
|
446
|
+
menu: Y(() => [
|
|
447
|
+
b("div", Rt, [
|
|
448
|
+
(m(!0), E(pe, null, Ze(n.fontSizes, (h) => (m(), E("div", {
|
|
449
|
+
key: h.value,
|
|
450
|
+
class: Q(["min-w-[120px] cursor-pointer py-2 px-3 hover:bg-oc-gray-50", q.value === h.value ? "font-medium" : ""]),
|
|
451
|
+
onClick: (J) => de(h.value)
|
|
452
|
+
}, Pe(h.label), 11, Et))), 128))
|
|
422
453
|
])
|
|
423
454
|
]),
|
|
424
|
-
default:
|
|
425
|
-
var
|
|
455
|
+
default: Y(() => {
|
|
456
|
+
var h;
|
|
426
457
|
return [
|
|
427
|
-
|
|
428
|
-
|
|
458
|
+
b("div", Bt, [
|
|
459
|
+
ge(Pe((h = n.fontSizes.find((J) => J.value === q.value)) == null ? void 0 : h.label) + " ", 1),
|
|
429
460
|
T(w(A), {
|
|
430
461
|
width: "20",
|
|
431
462
|
height: "20",
|
|
@@ -437,195 +468,195 @@ const It = { key: 1 }, Vt = {
|
|
|
437
468
|
}),
|
|
438
469
|
_: 1
|
|
439
470
|
}, 8, ["modelValue"]),
|
|
440
|
-
o[17] || (o[17] =
|
|
441
|
-
], 64)) :
|
|
442
|
-
f.value.includes("font-style") ? (m(), E(
|
|
443
|
-
|
|
471
|
+
o[17] || (o[17] = b("div", { class: "border-l border-oc-gray-200" }, null, -1))
|
|
472
|
+
], 64)) : H("", !0),
|
|
473
|
+
f.value.includes("font-style") ? (m(), E(pe, { key: 2 }, [
|
|
474
|
+
b("div", Ut, [
|
|
444
475
|
T(w(A), {
|
|
445
|
-
class: Q(["cursor-pointer",
|
|
476
|
+
class: Q(["cursor-pointer", D.value ? "text-oc-text" : "text-oc-text-300"]),
|
|
446
477
|
width: "20",
|
|
447
478
|
height: "20",
|
|
448
479
|
name: "text-editor/bold",
|
|
449
|
-
onClick:
|
|
480
|
+
onClick: ae
|
|
450
481
|
}, null, 8, ["class"]),
|
|
451
482
|
T(w(A), {
|
|
452
|
-
class: Q(["cursor-pointer",
|
|
483
|
+
class: Q(["cursor-pointer", te.value ? "text-oc-text" : "text-oc-text-300"]),
|
|
453
484
|
width: "20",
|
|
454
485
|
height: "20",
|
|
455
486
|
name: "text-editor/italic",
|
|
456
|
-
onClick:
|
|
487
|
+
onClick: Ie
|
|
457
488
|
}, null, 8, ["class"]),
|
|
458
489
|
T(w(A), {
|
|
459
|
-
class: Q(["cursor-pointer",
|
|
490
|
+
class: Q(["cursor-pointer", K.value ? "text-oc-text" : "text-oc-text-300"]),
|
|
460
491
|
width: "20",
|
|
461
492
|
height: "20",
|
|
462
493
|
name: "text-editor/underline",
|
|
463
|
-
onClick:
|
|
494
|
+
onClick: Xe
|
|
464
495
|
}, null, 8, ["class"])
|
|
465
496
|
]),
|
|
466
|
-
o[18] || (o[18] =
|
|
467
|
-
], 64)) :
|
|
468
|
-
|
|
469
|
-
f.value.includes("link") ? (m(),
|
|
497
|
+
o[18] || (o[18] = b("div", { class: "border-l border-oc-gray-200" }, null, -1))
|
|
498
|
+
], 64)) : H("", !0),
|
|
499
|
+
b("div", Dt, [
|
|
500
|
+
f.value.includes("link") ? (m(), F(w(A), {
|
|
470
501
|
key: 0,
|
|
471
502
|
class: "cursor-pointer",
|
|
472
503
|
width: "20",
|
|
473
504
|
height: "20",
|
|
474
505
|
name: "text-editor/link",
|
|
475
|
-
onClick:
|
|
476
|
-
})) :
|
|
477
|
-
f.value.includes("image") ? (m(),
|
|
506
|
+
onClick: qe
|
|
507
|
+
})) : H("", !0),
|
|
508
|
+
f.value.includes("image") ? (m(), F(w(A), {
|
|
478
509
|
key: 1,
|
|
479
510
|
class: "cursor-pointer",
|
|
480
511
|
width: "20",
|
|
481
512
|
height: "20",
|
|
482
513
|
name: "text-editor/image",
|
|
483
|
-
onClick:
|
|
484
|
-
})) :
|
|
485
|
-
f.value.includes("quote") ? (m(),
|
|
514
|
+
onClick: Fe
|
|
515
|
+
})) : H("", !0),
|
|
516
|
+
f.value.includes("quote") ? (m(), F(w(A), {
|
|
486
517
|
key: 2,
|
|
487
518
|
class: Q(["cursor-pointer", R.value ? "text-oc-text" : "text-oc-text-300"]),
|
|
488
519
|
width: "20",
|
|
489
520
|
height: "20",
|
|
490
521
|
name: "text-editor/quote",
|
|
491
|
-
onClick:
|
|
492
|
-
}, null, 8, ["class"])) :
|
|
493
|
-
f.value.includes("media") ? (m(),
|
|
522
|
+
onClick: ne
|
|
523
|
+
}, null, 8, ["class"])) : H("", !0),
|
|
524
|
+
f.value.includes("media") ? (m(), F(w(A), {
|
|
494
525
|
key: 3,
|
|
495
526
|
class: "cursor-pointer",
|
|
496
527
|
width: "20",
|
|
497
528
|
height: "20",
|
|
498
529
|
name: "text-editor/media",
|
|
499
|
-
onClick:
|
|
500
|
-
})) :
|
|
530
|
+
onClick: De
|
|
531
|
+
})) : H("", !0),
|
|
501
532
|
T(w(A), {
|
|
502
533
|
class: "cursor-pointer",
|
|
503
534
|
width: "20",
|
|
504
535
|
height: "20",
|
|
505
536
|
name: "table",
|
|
506
|
-
onClick: o[4] || (o[4] = (
|
|
537
|
+
onClick: o[4] || (o[4] = (h) => X.value = !X.value)
|
|
507
538
|
})
|
|
508
539
|
]),
|
|
509
|
-
f.value.includes("list") ? (m(), E(
|
|
510
|
-
o[19] || (o[19] =
|
|
511
|
-
|
|
540
|
+
f.value.includes("list") ? (m(), E(pe, { key: 3 }, [
|
|
541
|
+
o[19] || (o[19] = b("div", { class: "border-l border-oc-gray-200" }, null, -1)),
|
|
542
|
+
b("div", Ht, [
|
|
512
543
|
T(w(A), {
|
|
513
|
-
class: Q(["cursor-pointer",
|
|
544
|
+
class: Q(["cursor-pointer", le.value === "bullet" ? "text-oc-text" : "text-oc-text-300"]),
|
|
514
545
|
width: "20",
|
|
515
546
|
height: "20",
|
|
516
547
|
name: "text-editor/bullet",
|
|
517
|
-
onClick: o[5] || (o[5] = (
|
|
548
|
+
onClick: o[5] || (o[5] = (h) => He("bullet"))
|
|
518
549
|
}, null, 8, ["class"]),
|
|
519
550
|
T(w(A), {
|
|
520
|
-
class: Q(["cursor-pointer",
|
|
551
|
+
class: Q(["cursor-pointer", le.value === "ordered" ? "text-oc-text" : "text-oc-text-300"]),
|
|
521
552
|
width: "20",
|
|
522
553
|
height: "20",
|
|
523
554
|
name: "text-editor/number",
|
|
524
|
-
onClick: o[6] || (o[6] = (
|
|
555
|
+
onClick: o[6] || (o[6] = (h) => He("ordered"))
|
|
525
556
|
}, null, 8, ["class"])
|
|
526
557
|
])
|
|
527
|
-
], 64)) :
|
|
528
|
-
f.value.includes("alignment") ? (m(), E(
|
|
529
|
-
o[20] || (o[20] =
|
|
530
|
-
|
|
558
|
+
], 64)) : H("", !0),
|
|
559
|
+
f.value.includes("alignment") ? (m(), E(pe, { key: 4 }, [
|
|
560
|
+
o[20] || (o[20] = b("div", { class: "border-l border-oc-gray-200" }, null, -1)),
|
|
561
|
+
b("div", Ot, [
|
|
531
562
|
T(w(A), {
|
|
532
|
-
class: Q(["cursor-pointer",
|
|
563
|
+
class: Q(["cursor-pointer", _.value ? "text-oc-text-300" : "text-oc-text"]),
|
|
533
564
|
width: "20",
|
|
534
565
|
height: "20",
|
|
535
566
|
name: "text-editor/left",
|
|
536
|
-
onClick: o[7] || (o[7] = (
|
|
567
|
+
onClick: o[7] || (o[7] = (h) => me())
|
|
537
568
|
}, null, 8, ["class"]),
|
|
538
569
|
T(w(A), {
|
|
539
|
-
class: Q(["cursor-pointer",
|
|
570
|
+
class: Q(["cursor-pointer", _.value === "center" ? "text-oc-text" : "text-oc-text-300"]),
|
|
540
571
|
width: "20",
|
|
541
572
|
height: "20",
|
|
542
573
|
name: "text-editor/center",
|
|
543
|
-
onClick: o[8] || (o[8] = (
|
|
574
|
+
onClick: o[8] || (o[8] = (h) => me("center"))
|
|
544
575
|
}, null, 8, ["class"]),
|
|
545
576
|
T(w(A), {
|
|
546
|
-
class: Q(["cursor-pointer",
|
|
577
|
+
class: Q(["cursor-pointer", _.value === "right" ? "text-oc-text" : "text-oc-text-300"]),
|
|
547
578
|
width: "20",
|
|
548
579
|
height: "20",
|
|
549
580
|
name: "text-editor/right",
|
|
550
|
-
onClick: o[9] || (o[9] = (
|
|
581
|
+
onClick: o[9] || (o[9] = (h) => me("right"))
|
|
551
582
|
}, null, 8, ["class"]),
|
|
552
583
|
T(w(A), {
|
|
553
|
-
class: Q(["cursor-pointer",
|
|
584
|
+
class: Q(["cursor-pointer", _.value === "justify" ? "text-oc-text" : "text-oc-text-300"]),
|
|
554
585
|
width: "20",
|
|
555
586
|
height: "20",
|
|
556
587
|
name: "text-editor/justify",
|
|
557
|
-
onClick: o[10] || (o[10] = (
|
|
588
|
+
onClick: o[10] || (o[10] = (h) => me("justify"))
|
|
558
589
|
}, null, 8, ["class"])
|
|
559
590
|
])
|
|
560
|
-
], 64)) :
|
|
561
|
-
o[22] || (o[22] =
|
|
562
|
-
|
|
591
|
+
], 64)) : H("", !0),
|
|
592
|
+
o[22] || (o[22] = b("div", { class: "border-l border-oc-gray-200" }, null, -1)),
|
|
593
|
+
b("div", Mt, [
|
|
563
594
|
T(w(Vt), {
|
|
564
|
-
modelValue:
|
|
595
|
+
modelValue: fe.value,
|
|
565
596
|
"onUpdate:modelValue": [
|
|
566
|
-
o[11] || (o[11] = (
|
|
567
|
-
|
|
597
|
+
o[11] || (o[11] = (h) => fe.value = h),
|
|
598
|
+
Oe
|
|
568
599
|
],
|
|
569
600
|
"hide-input-color": ""
|
|
570
601
|
}, {
|
|
571
|
-
"picker-icon":
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
style:
|
|
602
|
+
"picker-icon": Y(() => [
|
|
603
|
+
b("div", Qt, [
|
|
604
|
+
b("div", {
|
|
605
|
+
style: ee(`color:${fe.value}`)
|
|
575
606
|
}, "A", 4),
|
|
576
|
-
|
|
607
|
+
b("div", {
|
|
577
608
|
class: "h-[5px] w-full rounded border",
|
|
578
|
-
style:
|
|
609
|
+
style: ee(`background:${fe.value}`)
|
|
579
610
|
}, null, 4)
|
|
580
611
|
])
|
|
581
612
|
]),
|
|
582
613
|
_: 1
|
|
583
614
|
}, 8, ["modelValue"])
|
|
584
615
|
]),
|
|
585
|
-
o[23] || (o[23] =
|
|
586
|
-
|
|
587
|
-
T(w(
|
|
616
|
+
o[23] || (o[23] = b("div", { class: "border-l border-oc-gray-200" }, null, -1)),
|
|
617
|
+
xe.value ? (m(), E("div", At, [
|
|
618
|
+
T(w(Ne), {
|
|
588
619
|
label: "Image width",
|
|
589
620
|
class: "w-[120px]",
|
|
590
|
-
"model-value":
|
|
621
|
+
"model-value": ie.value,
|
|
591
622
|
"min-limit": 0,
|
|
592
623
|
"max-limit": 100,
|
|
593
|
-
"onUpdate:modelValue":
|
|
624
|
+
"onUpdate:modelValue": Me
|
|
594
625
|
}, null, 8, ["model-value"]),
|
|
595
|
-
|
|
626
|
+
b("div", Nt, [
|
|
596
627
|
T(w(A), {
|
|
597
628
|
class: "cursor-pointer",
|
|
598
629
|
width: "20",
|
|
599
630
|
height: "20",
|
|
600
631
|
name: "text-editor/left",
|
|
601
|
-
onClick: o[12] || (o[12] = (
|
|
632
|
+
onClick: o[12] || (o[12] = (h) => ke())
|
|
602
633
|
}),
|
|
603
634
|
T(w(A), {
|
|
604
635
|
class: "cursor-pointer",
|
|
605
636
|
width: "20",
|
|
606
637
|
height: "20",
|
|
607
638
|
name: "text-editor/center",
|
|
608
|
-
onClick: o[13] || (o[13] = (
|
|
639
|
+
onClick: o[13] || (o[13] = (h) => ke("center"))
|
|
609
640
|
}),
|
|
610
641
|
T(w(A), {
|
|
611
642
|
class: "cursor-pointer",
|
|
612
643
|
width: "20",
|
|
613
644
|
height: "20",
|
|
614
645
|
name: "text-editor/right",
|
|
615
|
-
onClick: o[14] || (o[14] = (
|
|
646
|
+
onClick: o[14] || (o[14] = (h) => ke("right"))
|
|
616
647
|
})
|
|
617
648
|
])
|
|
618
|
-
])) :
|
|
619
|
-
|
|
649
|
+
])) : H("", !0),
|
|
650
|
+
b("div", Pt, [
|
|
620
651
|
(m(), E("svg", {
|
|
621
652
|
width: "20",
|
|
622
653
|
height: "20",
|
|
623
654
|
viewBox: "0 0 15 15",
|
|
624
655
|
fill: "none",
|
|
625
656
|
xmlns: "http://www.w3.org/2000/svg",
|
|
626
|
-
onClick: o[15] || (o[15] = (
|
|
657
|
+
onClick: o[15] || (o[15] = (h) => Re())
|
|
627
658
|
}, o[21] || (o[21] = [
|
|
628
|
-
|
|
659
|
+
b("path", {
|
|
629
660
|
"fill-rule": "evenodd",
|
|
630
661
|
"clip-rule": "evenodd",
|
|
631
662
|
d: "M2 7.5C2 7.22386 2.22386 7 2.5 7H12.5C12.7761 7 13 7.22386 13 7.5C13 7.77614 12.7761 8 12.5 8H2.5C2.22386 8 2 7.77614 2 7.5Z",
|
|
@@ -636,13 +667,13 @@ const It = { key: 1 }, Vt = {
|
|
|
636
667
|
], 8, Lt)
|
|
637
668
|
]),
|
|
638
669
|
_: 1
|
|
639
|
-
}, 8, ["id", "content", "options", "placeholder"])) :
|
|
670
|
+
}, 8, ["id", "content", "options", "global-options", "placeholder"])) : H("", !0)
|
|
640
671
|
], 2)
|
|
641
672
|
]),
|
|
642
673
|
_: 1
|
|
643
674
|
}, 8, ["label", "hint", "error-message", "is-required", "label-icon", "tooltip-text", "tooltip-options"]));
|
|
644
675
|
}
|
|
645
|
-
},
|
|
676
|
+
}, Xt = {
|
|
646
677
|
__name: "InputHex",
|
|
647
678
|
props: {
|
|
648
679
|
modelValue: {
|
|
@@ -653,7 +684,7 @@ const It = { key: 1 }, Vt = {
|
|
|
653
684
|
"update:modelValue": []
|
|
654
685
|
},
|
|
655
686
|
setup(n, { emit: V }) {
|
|
656
|
-
const r = n,
|
|
687
|
+
const r = n, y = V, u = v(""), f = (p) => {
|
|
657
688
|
u.value = p, u.value = `#${p.replace(/#/g, "")}`;
|
|
658
689
|
}, C = () => {
|
|
659
690
|
let p = u.value;
|
|
@@ -681,24 +712,24 @@ const It = { key: 1 }, Vt = {
|
|
|
681
712
|
default:
|
|
682
713
|
a = a.slice(0, 6);
|
|
683
714
|
}
|
|
684
|
-
u.value = `#${a.toUpperCase()}`,
|
|
715
|
+
u.value = `#${a.toUpperCase()}`, y("update:modelValue", u.value);
|
|
685
716
|
};
|
|
686
|
-
return
|
|
717
|
+
return ye(
|
|
687
718
|
() => r.modelValue,
|
|
688
719
|
(p, a) => {
|
|
689
720
|
p !== a && (u.value = p);
|
|
690
721
|
},
|
|
691
722
|
{ immediate: !0 }
|
|
692
|
-
), (p, a) => (m(),
|
|
723
|
+
), (p, a) => (m(), F(w($e), {
|
|
693
724
|
class: "w-[158px]",
|
|
694
725
|
placeholder: "#FFFFFF",
|
|
695
726
|
"model-value": u.value,
|
|
696
727
|
"onUpdate:modelValue": f,
|
|
697
728
|
onBlur: C,
|
|
698
|
-
onKeyup:
|
|
729
|
+
onKeyup: it(C, ["enter"])
|
|
699
730
|
}, null, 8, ["model-value"]));
|
|
700
731
|
}
|
|
701
|
-
},
|
|
732
|
+
}, qt = { class: "grid grid-cols-3 gap-3" }, ot = {
|
|
702
733
|
__name: "InputRgbHsl",
|
|
703
734
|
props: {
|
|
704
735
|
inputType: {
|
|
@@ -717,73 +748,73 @@ const It = { key: 1 }, Vt = {
|
|
|
717
748
|
"update-hsl-value": []
|
|
718
749
|
},
|
|
719
750
|
setup(n, { emit: V }) {
|
|
720
|
-
const r = n,
|
|
751
|
+
const r = n, y = V, u = v({
|
|
721
752
|
r: 0,
|
|
722
753
|
g: 0,
|
|
723
754
|
b: 0
|
|
724
|
-
}), f = v(), C = v(), p = v(), a = (
|
|
725
|
-
var
|
|
755
|
+
}), f = v(), C = v(), p = v(), a = (M, L) => {
|
|
756
|
+
var W, U, N;
|
|
726
757
|
let B = 255;
|
|
727
|
-
if (r.inputType == "HSL" && (B = 100,
|
|
728
|
-
if (
|
|
729
|
-
let
|
|
730
|
-
|
|
731
|
-
} else if (
|
|
732
|
-
let
|
|
733
|
-
|
|
734
|
-
} else if (
|
|
735
|
-
let
|
|
736
|
-
|
|
758
|
+
if (r.inputType == "HSL" && (B = 100, M == "r" && (B = 360)), !isNaN(parseInt(L))) {
|
|
759
|
+
if (M == "r") {
|
|
760
|
+
let D = parseInt(L);
|
|
761
|
+
D <= B && (u.value.r = D, r.inputType == "RGB" ? O("r") : j()), (W = f.value) == null || W.focus();
|
|
762
|
+
} else if (M == "g") {
|
|
763
|
+
let D = parseInt(L);
|
|
764
|
+
D <= B && (u.value.g = D, r.inputType == "RGB" ? O("g") : j()), (U = C.value) == null || U.focus();
|
|
765
|
+
} else if (M == "b") {
|
|
766
|
+
let D = parseInt(L);
|
|
767
|
+
D <= B && (u.value.b = D, r.inputType == "RGB" ? O("b") : j()), (N = p.value) == null || N.focus();
|
|
737
768
|
}
|
|
738
769
|
}
|
|
739
|
-
},
|
|
740
|
-
|
|
741
|
-
type:
|
|
770
|
+
}, O = (M) => {
|
|
771
|
+
y("update-rgb-value", {
|
|
772
|
+
type: M,
|
|
742
773
|
value: {
|
|
743
774
|
r: parseInt(u.value.r),
|
|
744
775
|
g: parseInt(u.value.g),
|
|
745
776
|
b: parseInt(u.value.b)
|
|
746
777
|
}
|
|
747
778
|
});
|
|
748
|
-
},
|
|
749
|
-
|
|
779
|
+
}, j = () => {
|
|
780
|
+
y("update-hsl-value", {
|
|
750
781
|
h: parseInt(u.value.r),
|
|
751
782
|
s: parseInt(u.value.g),
|
|
752
783
|
l: parseInt(u.value.b)
|
|
753
784
|
});
|
|
754
785
|
};
|
|
755
|
-
return r.inputType === "RGB" ?
|
|
786
|
+
return r.inputType === "RGB" ? ye(
|
|
756
787
|
() => r.rgbValue,
|
|
757
|
-
(
|
|
758
|
-
|
|
788
|
+
(M, L) => {
|
|
789
|
+
M !== L && (u.value = M);
|
|
759
790
|
},
|
|
760
791
|
{ immediate: !0, deep: !0 }
|
|
761
|
-
) :
|
|
792
|
+
) : ye(
|
|
762
793
|
() => r.hslValue,
|
|
763
|
-
(
|
|
794
|
+
(M) => {
|
|
764
795
|
u.value = {
|
|
765
|
-
r:
|
|
766
|
-
g:
|
|
767
|
-
b:
|
|
796
|
+
r: M.h,
|
|
797
|
+
g: M.s,
|
|
798
|
+
b: M.l
|
|
768
799
|
};
|
|
769
800
|
},
|
|
770
801
|
{ immediate: !0, deep: !0 }
|
|
771
|
-
), (
|
|
772
|
-
T(w(
|
|
802
|
+
), (M, L) => (m(), E("div", qt, [
|
|
803
|
+
T(w($e), {
|
|
773
804
|
ref_key: "rInputEl",
|
|
774
805
|
ref: f,
|
|
775
806
|
"model-value": u.value.r,
|
|
776
807
|
placeholder: "100",
|
|
777
808
|
"onUpdate:modelValue": L[0] || (L[0] = (B) => a("r", B))
|
|
778
809
|
}, null, 8, ["model-value"]),
|
|
779
|
-
T(w(
|
|
810
|
+
T(w($e), {
|
|
780
811
|
ref_key: "gInputEl",
|
|
781
812
|
ref: C,
|
|
782
813
|
"model-value": u.value.g,
|
|
783
814
|
placeholder: "100",
|
|
784
815
|
"onUpdate:modelValue": L[1] || (L[1] = (B) => a("g", B))
|
|
785
816
|
}, null, 8, ["model-value"]),
|
|
786
|
-
T(w(
|
|
817
|
+
T(w($e), {
|
|
787
818
|
ref_key: "bInputEl",
|
|
788
819
|
ref: p,
|
|
789
820
|
"model-value": u.value.b,
|
|
@@ -792,7 +823,7 @@ const It = { key: 1 }, Vt = {
|
|
|
792
823
|
}, null, 8, ["model-value"])
|
|
793
824
|
]));
|
|
794
825
|
}
|
|
795
|
-
},
|
|
826
|
+
}, Ft = {
|
|
796
827
|
__name: "InputOpacity",
|
|
797
828
|
props: {
|
|
798
829
|
modelValue: {
|
|
@@ -803,28 +834,28 @@ const It = { key: 1 }, Vt = {
|
|
|
803
834
|
"update:modelValue": []
|
|
804
835
|
},
|
|
805
836
|
setup(n, { emit: V }) {
|
|
806
|
-
const r = n,
|
|
837
|
+
const r = n, y = V, u = v(""), f = (p) => {
|
|
807
838
|
u.value = p;
|
|
808
839
|
}, C = () => {
|
|
809
840
|
let p = parseInt(u.value);
|
|
810
|
-
p && p <= 100 ?
|
|
841
|
+
p && p <= 100 ? y("update:modelValue", p) : u.value = r.modelValue;
|
|
811
842
|
};
|
|
812
|
-
return
|
|
843
|
+
return ye(
|
|
813
844
|
() => r.modelValue,
|
|
814
845
|
(p, a) => {
|
|
815
846
|
p !== a && (u.value = p);
|
|
816
847
|
},
|
|
817
848
|
{ immediate: !0 }
|
|
818
|
-
), (p, a) => (m(),
|
|
849
|
+
), (p, a) => (m(), F(w($e), {
|
|
819
850
|
class: "w-[75px]",
|
|
820
851
|
placeholder: "100",
|
|
821
852
|
"model-value": u.value,
|
|
822
853
|
"onUpdate:modelValue": f,
|
|
823
854
|
onBlur: C,
|
|
824
|
-
onKeyup:
|
|
855
|
+
onKeyup: it(C, ["enter"])
|
|
825
856
|
}, {
|
|
826
|
-
leading:
|
|
827
|
-
|
|
857
|
+
leading: Y(() => a[0] || (a[0] = [
|
|
858
|
+
ge("%")
|
|
828
859
|
])),
|
|
829
860
|
_: 1
|
|
830
861
|
}, 8, ["model-value"]));
|
|
@@ -836,12 +867,12 @@ const It = { key: 1 }, Vt = {
|
|
|
836
867
|
},
|
|
837
868
|
emits: ["update:model-value"],
|
|
838
869
|
setup(n, { emit: V }) {
|
|
839
|
-
const
|
|
840
|
-
|
|
870
|
+
const y = v(n.modelValue), u = V, f = (C) => {
|
|
871
|
+
y.value = C, u("update:model-value", C);
|
|
841
872
|
};
|
|
842
|
-
return (C, p) => (m(),
|
|
873
|
+
return (C, p) => (m(), F(w(Je), {
|
|
843
874
|
class: "!w-[80px]",
|
|
844
|
-
"model-value":
|
|
875
|
+
"model-value": y.value,
|
|
845
876
|
options: [
|
|
846
877
|
{
|
|
847
878
|
label: "HEX",
|
|
@@ -859,19 +890,19 @@ const It = { key: 1 }, Vt = {
|
|
|
859
890
|
"onUpdate:modelValue": f
|
|
860
891
|
}, null, 8, ["model-value"]));
|
|
861
892
|
}
|
|
862
|
-
}, Yt = { class: "opacity-bar" }, Wt = { class: "picker-opacity-slider opacity-bar-background" },
|
|
893
|
+
}, Yt = { class: "opacity-bar" }, Wt = { class: "picker-opacity-slider opacity-bar-background" }, zt = ["value"], jt = {
|
|
863
894
|
__name: "SliderOpacity",
|
|
864
895
|
props: {
|
|
865
896
|
modelValue: { default: 0, type: Number }
|
|
866
897
|
},
|
|
867
898
|
emits: ["update:modelValue", "onInput"],
|
|
868
899
|
setup(n, { emit: V }) {
|
|
869
|
-
const r =
|
|
870
|
-
|
|
900
|
+
const r = Be("opacitySlider"), y = V, u = (f) => {
|
|
901
|
+
y("update:modelValue", parseInt(f.target.value)), y("onInput", f);
|
|
871
902
|
};
|
|
872
903
|
return (f, C) => (m(), E("div", Yt, [
|
|
873
|
-
|
|
874
|
-
|
|
904
|
+
b("div", Wt, [
|
|
905
|
+
b("input", {
|
|
875
906
|
ref_key: "opacitySlider",
|
|
876
907
|
ref: r,
|
|
877
908
|
value: n.modelValue,
|
|
@@ -880,7 +911,7 @@ const It = { key: 1 }, Vt = {
|
|
|
880
911
|
min: "0",
|
|
881
912
|
max: "100",
|
|
882
913
|
onInput: u
|
|
883
|
-
}, null, 40,
|
|
914
|
+
}, null, 40, zt)
|
|
884
915
|
])
|
|
885
916
|
]));
|
|
886
917
|
}
|
|
@@ -891,30 +922,30 @@ const It = { key: 1 }, Vt = {
|
|
|
891
922
|
},
|
|
892
923
|
emits: ["onAddColor", "onMouseDown", "onDeleteColor"],
|
|
893
924
|
setup(n, { emit: V }) {
|
|
894
|
-
const r =
|
|
925
|
+
const r = Be("gradientBar"), y = v(), u = V, f = (L) => {
|
|
895
926
|
L.preventDefault();
|
|
896
927
|
}, C = v("left:0"), p = v(!1), a = (L) => {
|
|
897
928
|
u("onMouseDown", L);
|
|
898
|
-
},
|
|
899
|
-
let L =
|
|
929
|
+
}, O = () => {
|
|
930
|
+
let L = y.value.querySelector(".select");
|
|
900
931
|
C.value = L == null ? void 0 : L.getAttribute("style");
|
|
901
|
-
},
|
|
932
|
+
}, j = () => {
|
|
902
933
|
var B;
|
|
903
|
-
|
|
904
|
-
},
|
|
934
|
+
O(), (((B = y.value.querySelectorAll(".gradient-handle")) == null ? void 0 : B.length) ?? 2) > 2 ? p.value = !0 : p.value = !1;
|
|
935
|
+
}, M = (L) => {
|
|
905
936
|
p.value = !1, u("onAddColor", L);
|
|
906
937
|
};
|
|
907
938
|
return (L, B) => (m(), E("div", {
|
|
908
939
|
ref_key: "gradientSlider",
|
|
909
|
-
ref:
|
|
940
|
+
ref: y,
|
|
910
941
|
class: "relative h-[40px]",
|
|
911
|
-
onClick:
|
|
942
|
+
onClick: j
|
|
912
943
|
}, [
|
|
913
|
-
|
|
944
|
+
b("button", {
|
|
914
945
|
type: "button",
|
|
915
946
|
class: Q(["absolute top-[-18px] text-oc-accent-3 rounded-[4px] border-2 border-oc-gray-200 p-2 bg-oc-bg-light", p.value ? "" : "!hidden"]),
|
|
916
|
-
style:
|
|
917
|
-
onClick: B[0] || (B[0] = (
|
|
947
|
+
style: ee(C.value),
|
|
948
|
+
onClick: B[0] || (B[0] = (W) => L.$emit("onDeleteColor"))
|
|
918
949
|
}, [
|
|
919
950
|
T(w(A), {
|
|
920
951
|
name: "bin",
|
|
@@ -922,7 +953,7 @@ const It = { key: 1 }, Vt = {
|
|
|
922
953
|
height: "14"
|
|
923
954
|
})
|
|
924
955
|
], 6),
|
|
925
|
-
|
|
956
|
+
b("div", {
|
|
926
957
|
class: Q(["gradient-bar", {
|
|
927
958
|
"mt-[20px]": n.gradientType === "linear",
|
|
928
959
|
"mt-[12px]": n.gradientType === "radial"
|
|
@@ -930,11 +961,11 @@ const It = { key: 1 }, Vt = {
|
|
|
930
961
|
onMousedown: a,
|
|
931
962
|
onDragstart: f
|
|
932
963
|
}, [
|
|
933
|
-
|
|
964
|
+
b("div", {
|
|
934
965
|
ref_key: "gradientBar",
|
|
935
966
|
ref: r,
|
|
936
967
|
class: "gradient-container",
|
|
937
|
-
onDblclick:
|
|
968
|
+
onDblclick: M
|
|
938
969
|
}, null, 544)
|
|
939
970
|
], 34)
|
|
940
971
|
], 512));
|
|
@@ -946,18 +977,18 @@ const It = { key: 1 }, Vt = {
|
|
|
946
977
|
},
|
|
947
978
|
emits: ["update:modelValue", "onInput", "onChange"],
|
|
948
979
|
setup(n, { emit: V }) {
|
|
949
|
-
const r = V,
|
|
980
|
+
const r = V, y = (u) => {
|
|
950
981
|
r("update:modelValue", parseFloat(u.target.value)), r("onInput", u);
|
|
951
982
|
};
|
|
952
983
|
return (u, f) => (m(), E("div", Zt, [
|
|
953
|
-
|
|
984
|
+
b("input", {
|
|
954
985
|
value: n.modelValue,
|
|
955
986
|
class: "picker-hue-range-slider",
|
|
956
987
|
type: "range",
|
|
957
988
|
min: "0",
|
|
958
989
|
max: "360",
|
|
959
990
|
step: "0.1",
|
|
960
|
-
onInput:
|
|
991
|
+
onInput: y,
|
|
961
992
|
onChange: f[0] || (f[0] = (C) => u.$emit("onChange", C))
|
|
962
993
|
}, null, 40, Jt)
|
|
963
994
|
]));
|
|
@@ -979,9 +1010,9 @@ const It = { key: 1 }, Vt = {
|
|
|
979
1010
|
},
|
|
980
1011
|
emits: ["update:angle", "update:percentageX", "update:percentageY", "onInput"],
|
|
981
1012
|
setup(n, { emit: V }) {
|
|
982
|
-
const r = v(!1),
|
|
983
|
-
|
|
984
|
-
r.value = !0,
|
|
1013
|
+
const r = v(!1), y = v(!1);
|
|
1014
|
+
_e(() => {
|
|
1015
|
+
r.value = !0, y.value = !0;
|
|
985
1016
|
});
|
|
986
1017
|
const u = V, f = (C, p) => {
|
|
987
1018
|
let a = parseInt(C);
|
|
@@ -998,7 +1029,7 @@ const It = { key: 1 }, Vt = {
|
|
|
998
1029
|
}
|
|
999
1030
|
};
|
|
1000
1031
|
return (C, p) => (m(), E("div", el, [
|
|
1001
|
-
n.gradientType == "linear" && r.value ? (m(),
|
|
1032
|
+
n.gradientType == "linear" && r.value ? (m(), F(w(Ne), {
|
|
1002
1033
|
key: 0,
|
|
1003
1034
|
label: "Angle",
|
|
1004
1035
|
"model-value": n.angle,
|
|
@@ -1006,54 +1037,54 @@ const It = { key: 1 }, Vt = {
|
|
|
1006
1037
|
"max-limit": 360,
|
|
1007
1038
|
"onUpdate:modelValue": p[0] || (p[0] = (a) => f(a, "angle"))
|
|
1008
1039
|
}, {
|
|
1009
|
-
"min-limit-label":
|
|
1010
|
-
|
|
1040
|
+
"min-limit-label": Y(() => p[3] || (p[3] = [
|
|
1041
|
+
ge("0 ")
|
|
1011
1042
|
])),
|
|
1012
|
-
"max-limit-label":
|
|
1013
|
-
|
|
1014
|
-
|
|
1043
|
+
"max-limit-label": Y(() => p[4] || (p[4] = [
|
|
1044
|
+
ge("360"),
|
|
1045
|
+
b("span", null, "°", -1)
|
|
1015
1046
|
])),
|
|
1016
1047
|
_: 1
|
|
1017
|
-
}, 8, ["model-value"])) :
|
|
1018
|
-
n.gradientType == "radial" &&
|
|
1019
|
-
T(w(
|
|
1048
|
+
}, 8, ["model-value"])) : H("", !0),
|
|
1049
|
+
n.gradientType == "radial" && y.value ? (m(), E("div", tl, [
|
|
1050
|
+
T(w(Ne), {
|
|
1020
1051
|
label: "Position X",
|
|
1021
1052
|
"model-value": n.percentageX,
|
|
1022
1053
|
"min-limit": 0,
|
|
1023
1054
|
"max-limit": 100,
|
|
1024
1055
|
"onUpdate:modelValue": p[1] || (p[1] = (a) => f(a, "percentageX"))
|
|
1025
1056
|
}, {
|
|
1026
|
-
"min-limit-label":
|
|
1027
|
-
|
|
1057
|
+
"min-limit-label": Y(() => p[5] || (p[5] = [
|
|
1058
|
+
ge("0")
|
|
1028
1059
|
])),
|
|
1029
|
-
"max-limit-label":
|
|
1030
|
-
|
|
1060
|
+
"max-limit-label": Y(() => p[6] || (p[6] = [
|
|
1061
|
+
ge("100%")
|
|
1031
1062
|
])),
|
|
1032
1063
|
_: 1
|
|
1033
1064
|
}, 8, ["model-value"]),
|
|
1034
|
-
T(w(
|
|
1065
|
+
T(w(Ne), {
|
|
1035
1066
|
label: "Position Y",
|
|
1036
1067
|
"model-value": n.percentageY,
|
|
1037
1068
|
"min-limit": 0,
|
|
1038
1069
|
"max-limit": 100,
|
|
1039
1070
|
"onUpdate:modelValue": p[2] || (p[2] = (a) => f(a, "percentageY"))
|
|
1040
1071
|
}, {
|
|
1041
|
-
"min-limit-label":
|
|
1042
|
-
|
|
1072
|
+
"min-limit-label": Y(() => p[7] || (p[7] = [
|
|
1073
|
+
ge("0")
|
|
1043
1074
|
])),
|
|
1044
|
-
"max-limit-label":
|
|
1045
|
-
|
|
1075
|
+
"max-limit-label": Y(() => p[8] || (p[8] = [
|
|
1076
|
+
ge("100%")
|
|
1046
1077
|
])),
|
|
1047
1078
|
_: 1
|
|
1048
1079
|
}, 8, ["model-value"])
|
|
1049
|
-
])) :
|
|
1080
|
+
])) : H("", !0)
|
|
1050
1081
|
]));
|
|
1051
1082
|
}
|
|
1052
1083
|
}, al = {
|
|
1053
1084
|
__name: "PickerWrap",
|
|
1054
1085
|
emits: ["onMouseDown"],
|
|
1055
1086
|
setup(n) {
|
|
1056
|
-
const V =
|
|
1087
|
+
const V = Be("canvas"), r = Be("pickerWrap"), y = Be("pickerPointer"), u = (f) => {
|
|
1057
1088
|
f.preventDefault();
|
|
1058
1089
|
};
|
|
1059
1090
|
return (f, C) => (m(), E("div", {
|
|
@@ -1063,15 +1094,15 @@ const It = { key: 1 }, Vt = {
|
|
|
1063
1094
|
onMousedown: C[0] || (C[0] = (p) => f.$emit("onMouseDown", p)),
|
|
1064
1095
|
onDragstart: u
|
|
1065
1096
|
}, [
|
|
1066
|
-
|
|
1097
|
+
b("canvas", {
|
|
1067
1098
|
ref_key: "canvas",
|
|
1068
1099
|
ref: V,
|
|
1069
1100
|
class: "colour-area"
|
|
1070
1101
|
}, null, 512),
|
|
1071
|
-
C[1] || (C[1] =
|
|
1072
|
-
|
|
1102
|
+
C[1] || (C[1] = b("div", { class: "colour-area-mask" }, null, -1)),
|
|
1103
|
+
b("div", {
|
|
1073
1104
|
ref_key: "pickerPointer",
|
|
1074
|
-
ref:
|
|
1105
|
+
ref: y,
|
|
1075
1106
|
class: "colour-area-point-circle"
|
|
1076
1107
|
}, null, 512)
|
|
1077
1108
|
], 544));
|
|
@@ -1104,34 +1135,34 @@ const It = { key: 1 }, Vt = {
|
|
|
1104
1135
|
emits: ["onChangeMode"],
|
|
1105
1136
|
setup(n) {
|
|
1106
1137
|
return (V, r) => (m(), E("div", nl, [
|
|
1107
|
-
|
|
1138
|
+
b("button", {
|
|
1108
1139
|
type: "button",
|
|
1109
1140
|
class: Q(n.mode == "solid" ? "active" : ""),
|
|
1110
1141
|
style: { padding: "7px" },
|
|
1111
|
-
onClick: r[0] || (r[0] = (
|
|
1142
|
+
onClick: r[0] || (r[0] = (y) => V.$emit("onChangeMode", "solid"))
|
|
1112
1143
|
}, [
|
|
1113
1144
|
n.modelValue && n.mode == "solid" ? (m(), E("div", {
|
|
1114
1145
|
key: 0,
|
|
1115
1146
|
class: "w-[28px] h-[28px] rounded-full border",
|
|
1116
|
-
style:
|
|
1147
|
+
style: ee(`background:${n.modelValue}`)
|
|
1117
1148
|
}, null, 4)) : (m(), E("svg", ol, r[3] || (r[3] = [
|
|
1118
|
-
|
|
1119
|
-
|
|
1149
|
+
b("g", { opacity: "0.5" }, [
|
|
1150
|
+
b("path", {
|
|
1120
1151
|
d: "M0 14C0 6.26801 6.26801 0 14 0C21.732 0 28 6.26801 28 14C28 21.732 21.732 28 14 28C6.26801 28 0 21.732 0 14Z",
|
|
1121
1152
|
fill: "#03102F"
|
|
1122
1153
|
})
|
|
1123
1154
|
], -1)
|
|
1124
1155
|
])))
|
|
1125
1156
|
], 2),
|
|
1126
|
-
|
|
1157
|
+
b("button", {
|
|
1127
1158
|
type: "button",
|
|
1128
1159
|
class: Q(n.gradientType == "linear" && n.mode != "solid" ? "active" : ""),
|
|
1129
|
-
style:
|
|
1130
|
-
onClick: r[1] || (r[1] = (
|
|
1160
|
+
style: ee(`${n.iconClasses.linear ? "" : "padding: 7px;"}`),
|
|
1161
|
+
onClick: r[1] || (r[1] = (y) => V.$emit("onChangeMode", "linear"))
|
|
1131
1162
|
}, [
|
|
1132
|
-
|
|
1163
|
+
b("div", {
|
|
1133
1164
|
class: "w-[28px] h-[28px] rounded-full border",
|
|
1134
|
-
style:
|
|
1165
|
+
style: ee(
|
|
1135
1166
|
n.modelValue && n.gradientType == "linear" && n.mode != "solid" ? `background:${n.modelValue}` : `
|
|
1136
1167
|
background: linear-gradient(
|
|
1137
1168
|
180deg,
|
|
@@ -1142,15 +1173,15 @@ const It = { key: 1 }, Vt = {
|
|
|
1142
1173
|
)
|
|
1143
1174
|
}, null, 4)
|
|
1144
1175
|
], 6),
|
|
1145
|
-
|
|
1176
|
+
b("button", {
|
|
1146
1177
|
type: "button",
|
|
1147
1178
|
class: Q(n.gradientType == "radial" && n.mode != "solid" ? "active" : ""),
|
|
1148
|
-
style:
|
|
1149
|
-
onClick: r[2] || (r[2] = (
|
|
1179
|
+
style: ee(`${n.iconClasses.radial ? "" : "padding: 6px;"}`),
|
|
1180
|
+
onClick: r[2] || (r[2] = (y) => V.$emit("onChangeMode", "radial"))
|
|
1150
1181
|
}, [
|
|
1151
|
-
|
|
1182
|
+
b("div", {
|
|
1152
1183
|
class: "w-[28px] h-[28px] rounded-full border",
|
|
1153
|
-
style:
|
|
1184
|
+
style: ee(
|
|
1154
1185
|
n.modelValue && n.gradientType == "radial" && n.mode != "solid" ? `background:${n.modelValue}` : "background: radial-gradient(circle at 50% 50%, rgb(255, 255, 255) 0%, rgb(3, 16, 47) 100%);"
|
|
1155
1186
|
)
|
|
1156
1187
|
}, null, 4)
|
|
@@ -1206,64 +1237,64 @@ const It = { key: 1 }, Vt = {
|
|
|
1206
1237
|
},
|
|
1207
1238
|
emits: ["update:modelValue", "last-used-pick"],
|
|
1208
1239
|
setup(n, { emit: V }) {
|
|
1209
|
-
const r = n,
|
|
1210
|
-
C.value = t,
|
|
1240
|
+
const r = n, y = v(r.variant == "gradient" ? "gradient" : "solid"), u = v(null), f = V, C = v(r.modelValue), p = (t) => {
|
|
1241
|
+
C.value = t, N.value && f("update:modelValue", t);
|
|
1211
1242
|
}, a = v([
|
|
1212
1243
|
{ id: 1, r: 68, g: 71, b: 119, a: 100, percent: 0, hue: 0, select: !0 },
|
|
1213
1244
|
{ id: 2, r: 0, g: 0, b: 255, a: 100, percent: 100, hue: 0, select: !1 }
|
|
1214
|
-
]),
|
|
1215
|
-
|
|
1245
|
+
]), O = v(r.lastUsedColors);
|
|
1246
|
+
ye(
|
|
1216
1247
|
() => r.lastUsedColors,
|
|
1217
1248
|
() => {
|
|
1218
|
-
|
|
1249
|
+
O.value = r.lastUsedColors;
|
|
1219
1250
|
},
|
|
1220
1251
|
{
|
|
1221
1252
|
deep: !0
|
|
1222
1253
|
}
|
|
1223
1254
|
);
|
|
1224
|
-
const
|
|
1255
|
+
const j = be(() => r.variant !== "gradient" ? O.value.filter((t) => !t.includes("linear") && !t.includes("radial")) : O.value), M = v(!1), L = v("linear"), B = et({
|
|
1225
1256
|
angle: 90,
|
|
1226
1257
|
percentageX: 50,
|
|
1227
1258
|
percentageY: 50
|
|
1228
|
-
}),
|
|
1259
|
+
}), W = v(""), U = v(r.inputType), N = v(!1), D = v(), te = v(), K = v(), z = v(), R = v(), q = et({
|
|
1229
1260
|
h: 0,
|
|
1230
1261
|
s: 0,
|
|
1231
1262
|
l: 0
|
|
1232
1263
|
});
|
|
1233
|
-
|
|
1234
|
-
let
|
|
1235
|
-
const
|
|
1236
|
-
!z.value || !R.value || (ue = z.value.offsetHeight - R.value.offsetHeight,
|
|
1237
|
-
},
|
|
1264
|
+
Te("gradientBar", te), Te("canvas", K), Te("pickerWrap", z), Te("pickerPointer", R), Te("opacitySlider", D);
|
|
1265
|
+
let le = 0, _ = 0, x = 0, we = 0, ue = 0, ve = 0;
|
|
1266
|
+
const Se = (t) => {
|
|
1267
|
+
!z.value || !R.value || (ue = z.value.offsetHeight - R.value.offsetHeight, ve = z.value.offsetWidth - R.value.offsetWidth, x = t.clientX - t.target.getBoundingClientRect().left, we = t.clientY - t.target.getBoundingClientRect().top, le = x - R.value.offsetWidth / 2, _ = we - R.value.offsetHeight / 2, R.value.style.left = `${le}px`, R.value.style.top = `${_}px`, Ce(!1), h(), window.addEventListener("mousemove", Re), window.addEventListener("mouseup", Ee));
|
|
1268
|
+
}, Re = (t) => {
|
|
1238
1269
|
t.preventDefault();
|
|
1239
1270
|
const e = z.value.getBoundingClientRect(), l = t.clientX - e.left - R.value.offsetWidth / 2, i = t.clientY - e.top - R.value.offsetHeight / 2;
|
|
1240
|
-
l >= 0 && l <=
|
|
1241
|
-
},
|
|
1242
|
-
window.removeEventListener("mousemove",
|
|
1271
|
+
l >= 0 && l <= ve ? (le = l, R.value.style.left = `${l}px`) : 0 > l ? (le = 0, R.value.style.left = "0px") : l > ve && (le = ve, R.value.style.left = `${ve}px`), i >= 0 && i <= ue ? (_ = i, R.value.style.top = `${i}px`) : 0 > i ? (_ = 0, R.value.style.top = "0px") : i > ue && (_ = ue, R.value.style.top = `${ue}px`), Ce(!1), h();
|
|
1272
|
+
}, Ee = () => {
|
|
1273
|
+
window.removeEventListener("mousemove", Re), window.removeEventListener("mouseup", Ee);
|
|
1243
1274
|
}, Ce = (t) => {
|
|
1244
1275
|
if (!t) {
|
|
1245
|
-
let e =
|
|
1246
|
-
const l =
|
|
1276
|
+
let e = Xe();
|
|
1277
|
+
const l = nt(ae.value, e.s, e.l);
|
|
1247
1278
|
if (l) {
|
|
1248
|
-
if (
|
|
1279
|
+
if (N.value) {
|
|
1249
1280
|
let i = a.value.find((s) => s.select == !0);
|
|
1250
1281
|
i && (i.r = l.r, i.g = l.g, i.b = l.b);
|
|
1251
1282
|
}
|
|
1252
|
-
|
|
1283
|
+
oe(), X();
|
|
1253
1284
|
}
|
|
1254
1285
|
}
|
|
1255
|
-
},
|
|
1256
|
-
const { rgb: e } =
|
|
1257
|
-
|
|
1258
|
-
Ce(t),
|
|
1286
|
+
}, ae = v(0), Ie = async (t) => {
|
|
1287
|
+
const { rgb: e } = at(ae.value, 100, 50);
|
|
1288
|
+
ke(e), setTimeout(() => {
|
|
1289
|
+
Ce(t), h();
|
|
1259
1290
|
}, 0);
|
|
1260
|
-
},
|
|
1291
|
+
}, Xe = () => {
|
|
1261
1292
|
let t = { s: 0, l: 0 }, e = z.value.offsetWidth - R.value.offsetWidth, l = z.value.offsetHeight - R.value.offsetHeight, i = parseInt(R.value.style.left), d = 1 - parseInt(R.value.style.top) / l, k = i / e;
|
|
1262
1293
|
return t.l = d / 2 * (2 - k), t.s = d * k / (1 - Math.abs(2 * t.l - 1)), Number.isNaN(t.s) && (t.s = t.l), t.l = t.l > 1 ? 1 : t.l, t.s = t.s > 1 ? 1 : t.s, t;
|
|
1263
|
-
},
|
|
1294
|
+
}, de = () => {
|
|
1264
1295
|
const t = a.value.find((e) => e.select == !0);
|
|
1265
1296
|
if (t) {
|
|
1266
|
-
const { l: e, s: l } =
|
|
1297
|
+
const { l: e, s: l } = tt(t.r, t.g, t.b);
|
|
1267
1298
|
let i = e, s = l;
|
|
1268
1299
|
Number.isNaN(s) && (s = i);
|
|
1269
1300
|
let d = { x: 0, y: 0 }, k = z.value.offsetWidth - R.value.offsetWidth, I = z.value.offsetHeight - R.value.offsetHeight;
|
|
@@ -1277,26 +1308,26 @@ const It = { key: 1 }, Vt = {
|
|
|
1277
1308
|
return d.x = $, d.y = g, d;
|
|
1278
1309
|
} else
|
|
1279
1310
|
return null;
|
|
1280
|
-
},
|
|
1311
|
+
}, qe = () => {
|
|
1281
1312
|
const t = a.value.find((e) => e.select == !0);
|
|
1282
|
-
t && (t.hue =
|
|
1283
|
-
},
|
|
1313
|
+
t && (t.hue = ae.value);
|
|
1314
|
+
}, ne = v(100), Ue = (t) => {
|
|
1284
1315
|
if (r.showAlpha) {
|
|
1285
1316
|
const e = a.value.find((l) => l.select == !0);
|
|
1286
|
-
e && (e.a = parseInt(t),
|
|
1317
|
+
e && (e.a = parseInt(t), X());
|
|
1287
1318
|
}
|
|
1288
|
-
},
|
|
1319
|
+
}, Fe = (t) => {
|
|
1289
1320
|
var l, i, s, d;
|
|
1290
1321
|
const e = (i = (l = u.value) == null ? void 0 : l.querySelector(".gradient-handle-content")) == null ? void 0 : i.getBoundingClientRect();
|
|
1291
|
-
return t === 0 ? "0px" : t === 100 && e ? `${(((s =
|
|
1322
|
+
return t === 0 ? "0px" : t === 100 && e ? `${(((s = te.value) == null ? void 0 : s.offsetWidth) || 0) - (e.width || 0)}px` : `${(((d = te.value) == null ? void 0 : d.offsetWidth) || 0) * (t / 100) - ((e == null ? void 0 : e.width) || 0) / 2}px`;
|
|
1292
1323
|
};
|
|
1293
|
-
let P = null,
|
|
1294
|
-
const
|
|
1324
|
+
let P = null, Z = null;
|
|
1325
|
+
const De = (t) => {
|
|
1295
1326
|
var i, s;
|
|
1296
1327
|
const l = t.target.offsetParent;
|
|
1297
1328
|
if ((i = l == null ? void 0 : l.id) != null && i.includes("clr-gb-")) {
|
|
1298
1329
|
const d = l.id.replace("clr-gb-", "");
|
|
1299
|
-
|
|
1330
|
+
Z = l;
|
|
1300
1331
|
const k = a.value.find((I) => I.select == !0);
|
|
1301
1332
|
if (k && k.id != d) {
|
|
1302
1333
|
const I = (s = u.value) == null ? void 0 : s.querySelector(".gradient-handle.select");
|
|
@@ -1305,28 +1336,28 @@ const It = { key: 1 }, Vt = {
|
|
|
1305
1336
|
for (let g = 0; g < a.value.length; g++) {
|
|
1306
1337
|
const S = a.value[g];
|
|
1307
1338
|
if (S.id == d) {
|
|
1308
|
-
$ != -1 && (a.value[$].select = !1), a.value[g].select = !0,
|
|
1339
|
+
$ != -1 && (a.value[$].select = !1), a.value[g].select = !0, ne.value = S.a, ie(S.r, S.g, S.b, S.hue, !0), oe(), h();
|
|
1309
1340
|
break;
|
|
1310
1341
|
}
|
|
1311
1342
|
}
|
|
1312
1343
|
}
|
|
1313
|
-
window.addEventListener("mousemove",
|
|
1344
|
+
window.addEventListener("mousemove", me), window.addEventListener("mouseup", He);
|
|
1314
1345
|
}
|
|
1315
|
-
},
|
|
1316
|
-
window.removeEventListener("mousemove",
|
|
1317
|
-
},
|
|
1346
|
+
}, He = () => {
|
|
1347
|
+
window.removeEventListener("mousemove", me), window.removeEventListener("mouseup", De);
|
|
1348
|
+
}, me = (t) => {
|
|
1318
1349
|
var d, k;
|
|
1319
1350
|
t.preventDefault();
|
|
1320
1351
|
const e = (k = (d = u.value) == null ? void 0 : d.querySelector(".gradient-handle-content")) == null ? void 0 : k.getBoundingClientRect(), l = P == null ? void 0 : P.getBoundingClientRect(), i = l.width - (e == null ? void 0 : e.width);
|
|
1321
1352
|
let s = t.clientX - (l.left || 0) - ((e == null ? void 0 : e.width) || 0) / 2;
|
|
1322
|
-
if (s < 0 ? s = 0 : s > i && (s = i),
|
|
1323
|
-
|
|
1353
|
+
if (s < 0 ? s = 0 : s > i && (s = i), Z) {
|
|
1354
|
+
Z.style.left = `${s}px`;
|
|
1324
1355
|
const I = parseFloat((s / ((l == null ? void 0 : l.width) - (e == null ? void 0 : e.width)) * 100).toFixed(0)), $ = a.value.find(
|
|
1325
|
-
(g) => g.id == (
|
|
1356
|
+
(g) => g.id == (Z == null ? void 0 : Z.id.replace("clr-gb-", ""))
|
|
1326
1357
|
);
|
|
1327
|
-
$ && ($.percent = I),
|
|
1358
|
+
$ && ($.percent = I), X();
|
|
1328
1359
|
}
|
|
1329
|
-
},
|
|
1360
|
+
}, fe = (t) => {
|
|
1330
1361
|
var I, $;
|
|
1331
1362
|
const e = P == null ? void 0 : P.getBoundingClientRect(), l = Math.round((t.clientX - ((e == null ? void 0 : e.left) || 0)) / ((e == null ? void 0 : e.width) || 1) * 100), i = a.value.findIndex((g) => g.select == !0), s = a.value[i], d = {
|
|
1332
1363
|
id: Date.now(),
|
|
@@ -1340,14 +1371,14 @@ const It = { key: 1 }, Vt = {
|
|
|
1340
1371
|
};
|
|
1341
1372
|
a.value[i].select = !1;
|
|
1342
1373
|
const k = (I = u.value) == null ? void 0 : I.querySelector(".gradient-handle.select");
|
|
1343
|
-
k == null || k.classList.remove("select"), a.value = [...a.value, d],
|
|
1344
|
-
},
|
|
1374
|
+
k == null || k.classList.remove("select"), a.value = [...a.value, d], Me(d), Z = ($ = u.value) == null ? void 0 : $.querySelector(`#clr-gb-${d.id}`), X();
|
|
1375
|
+
}, Oe = (t) => {
|
|
1345
1376
|
if (t.r == 0 && t.g == 0 && t.b == 0)
|
|
1346
1377
|
return !0;
|
|
1347
1378
|
if (t.r == 255 && t.g == 255 && t.b == 255)
|
|
1348
1379
|
return !0;
|
|
1349
1380
|
{
|
|
1350
|
-
const e =
|
|
1381
|
+
const e = K.value.getContext("2d", { willReadFrequently: !0 }), l = K.value.width, i = K.value.height, s = e.getImageData(0, 0, l, i).data, d = t.r, k = t.g, I = t.b;
|
|
1351
1382
|
for (let $ = 0; $ < i; $++)
|
|
1352
1383
|
for (let g = 0; g < l; g++) {
|
|
1353
1384
|
const S = ($ * l + g) * 4, re = s[S], dt = s[S + 1], ct = s[S + 2];
|
|
@@ -1356,44 +1387,44 @@ const It = { key: 1 }, Vt = {
|
|
|
1356
1387
|
}
|
|
1357
1388
|
return !1;
|
|
1358
1389
|
}
|
|
1359
|
-
},
|
|
1390
|
+
}, ie = (t, e, l, i, s) => {
|
|
1360
1391
|
setTimeout(() => {
|
|
1361
|
-
if (
|
|
1362
|
-
let d =
|
|
1392
|
+
if (Oe({ r: t, g: e, b: l })) {
|
|
1393
|
+
let d = de();
|
|
1363
1394
|
d && (R.value.style.left = `${d.x}px`, R.value.style.top = `${d.y}px`);
|
|
1364
1395
|
} else {
|
|
1365
|
-
let d =
|
|
1366
|
-
d && (R.value.style.left = `${d.x}px`, R.value.style.top = `${d.y}px`),
|
|
1396
|
+
let d = de();
|
|
1397
|
+
d && (R.value.style.left = `${d.x}px`, R.value.style.top = `${d.y}px`), ae.value = i, Ie(s);
|
|
1367
1398
|
}
|
|
1368
1399
|
}, 0);
|
|
1369
|
-
},
|
|
1370
|
-
a.value.forEach((l) =>
|
|
1400
|
+
}, xe = () => {
|
|
1401
|
+
a.value.forEach((l) => Me(l)), Ve();
|
|
1371
1402
|
const t = a.value[0];
|
|
1372
|
-
|
|
1373
|
-
let e =
|
|
1374
|
-
e && (R.value.style.left = `${e.x}px`, R.value.style.top = `${e.y}px`),
|
|
1375
|
-
},
|
|
1376
|
-
if (
|
|
1403
|
+
ae.value = t.hue, Ie(!0);
|
|
1404
|
+
let e = de();
|
|
1405
|
+
e && (R.value.style.left = `${e.x}px`, R.value.style.top = `${e.y}px`), oe(), X();
|
|
1406
|
+
}, Me = (t) => {
|
|
1407
|
+
if (y.value == "gradient") {
|
|
1377
1408
|
let e = document.createElement("div");
|
|
1378
|
-
e.id = `clr-gb-${t.id}`, e.classList.add("gradient-handle"), e.style.left =
|
|
1409
|
+
e.id = `clr-gb-${t.id}`, e.classList.add("gradient-handle"), e.style.left = Fe(t.percent);
|
|
1379
1410
|
let l = document.createElement("div");
|
|
1380
1411
|
l.classList.add("gradient-handle-content"), t.select == !0 && e.classList.add("select"), e.appendChild(l), P && P.appendChild(e);
|
|
1381
1412
|
}
|
|
1382
|
-
},
|
|
1383
|
-
const e =
|
|
1413
|
+
}, ke = (t) => {
|
|
1414
|
+
const e = K.value.getContext("2d", { willReadFrequently: !0 }), l = K.value.width, i = K.value.height;
|
|
1384
1415
|
e.fillStyle = `rgb(${t[0]},${t[1]},${t[2]})`, e.fillRect(0, 0, l, i);
|
|
1385
1416
|
let s = e.createLinearGradient(0, 0, l - 12, 0);
|
|
1386
1417
|
s.addColorStop(0, "rgb(255,255,255)"), s.addColorStop(1, "rgba(255,255,255,0)"), e.fillStyle = s, e.fillRect(0, 0, l, i);
|
|
1387
1418
|
let d = e.createLinearGradient(0, 0, 0, i);
|
|
1388
1419
|
d.addColorStop(0, "rgba(0,0,0,0)"), d.addColorStop(1, "rgb(0,0,0)"), e.fillStyle = d, e.fillRect(0, 0, l, i);
|
|
1389
|
-
},
|
|
1420
|
+
}, oe = () => {
|
|
1390
1421
|
if (r.showAlpha) {
|
|
1391
1422
|
let t = a.value.find((e) => e.select == !0);
|
|
1392
|
-
t && (
|
|
1423
|
+
t && (D.value.style.background = ` linear-gradient(90deg,rgba(255, 255, 255, 0) 0%, rgba(${t.r}, ${t.g}, ${t.b}, 100) 97%)`);
|
|
1393
1424
|
}
|
|
1394
|
-
},
|
|
1425
|
+
}, X = () => {
|
|
1395
1426
|
var t;
|
|
1396
|
-
if (
|
|
1427
|
+
if (y.value == "gradient") {
|
|
1397
1428
|
a.value.sort((s, d) => s.percent - d.percent);
|
|
1398
1429
|
let e = "linear-gradient(90deg, ", l;
|
|
1399
1430
|
if (L.value == "linear") {
|
|
@@ -1409,9 +1440,9 @@ const It = { key: 1 }, Vt = {
|
|
|
1409
1440
|
a.value.length - 1 == s ? (e = e + `rgba(${d},${k},${I},${$ / 100}) ${g}%)`, l = l + `rgba(${d},${k},${I},${$ / 100}) ${g}%)`) : (e = e + `rgba(${d},${k},${I},${$ / 100}) ${g}%, `, l = l + `rgba(${d},${k},${I},${$ / 100}) ${g}%, `);
|
|
1410
1441
|
}
|
|
1411
1442
|
}
|
|
1412
|
-
|
|
1443
|
+
te.value.style.backgroundImage = e;
|
|
1413
1444
|
let i = (t = u.value) == null ? void 0 : t.querySelector("#ck-cp-target-background");
|
|
1414
|
-
i && (i.style.backgroundImage = l,
|
|
1445
|
+
i && (i.style.backgroundImage = l, N.value && p(i.style.backgroundImage));
|
|
1415
1446
|
} else {
|
|
1416
1447
|
const { r: e, g: l, b: i, a: s } = a.value[0];
|
|
1417
1448
|
let d = "";
|
|
@@ -1431,12 +1462,12 @@ const It = { key: 1 }, Vt = {
|
|
|
1431
1462
|
}
|
|
1432
1463
|
p(d);
|
|
1433
1464
|
}
|
|
1434
|
-
},
|
|
1465
|
+
}, Ve = () => {
|
|
1435
1466
|
a.value.forEach((t) => {
|
|
1436
|
-
t.hue =
|
|
1467
|
+
t.hue = Ae(t.r, t.g, t.b);
|
|
1437
1468
|
});
|
|
1438
|
-
},
|
|
1439
|
-
L.value = t,
|
|
1469
|
+
}, Le = (t) => {
|
|
1470
|
+
L.value = t, X();
|
|
1440
1471
|
}, Ge = () => {
|
|
1441
1472
|
var t, e;
|
|
1442
1473
|
if (a.value.length > 2) {
|
|
@@ -1447,7 +1478,7 @@ const It = { key: 1 }, Vt = {
|
|
|
1447
1478
|
const s = (t = u.value) == null ? void 0 : t.querySelector(`#clr-gb-${i}`);
|
|
1448
1479
|
s == null || s.remove();
|
|
1449
1480
|
const d = a.value[0];
|
|
1450
|
-
d && (d.select = !0,
|
|
1481
|
+
d && (d.select = !0, Z = (e = u.value) == null ? void 0 : e.querySelector(`#clr-gb-${d.id}`), Z == null || Z.classList.add("select"), ie(d.r, d.g, d.b, d.hue, !1), h(), X());
|
|
1451
1482
|
}
|
|
1452
1483
|
}
|
|
1453
1484
|
}, Ye = () => {
|
|
@@ -1456,57 +1487,57 @@ const It = { key: 1 }, Vt = {
|
|
|
1456
1487
|
t == null || t.classList.add("active"), new EyeDropper().open().then((i) => {
|
|
1457
1488
|
const { sRGBHex: s } = i, d = a.value.find((I) => I.select == !0), k = je(s);
|
|
1458
1489
|
if (k) {
|
|
1459
|
-
const I =
|
|
1460
|
-
if (d && (d.hue = I, d.r = k.r, d.g = k.g, d.b = k.b),
|
|
1461
|
-
const $ =
|
|
1490
|
+
const I = Ae(k.r, k.g, k.b);
|
|
1491
|
+
if (d && (d.hue = I, d.r = k.r, d.g = k.g, d.b = k.b), Oe(k)) {
|
|
1492
|
+
const $ = de();
|
|
1462
1493
|
$ && (R.value.style.left = `${$.x}px`, R.value.style.top = `${$.y}px`);
|
|
1463
1494
|
} else {
|
|
1464
|
-
|
|
1465
|
-
const { rgb: $ } =
|
|
1466
|
-
|
|
1467
|
-
const g =
|
|
1495
|
+
ae.value = I;
|
|
1496
|
+
const { rgb: $ } = at(I, 100, 50);
|
|
1497
|
+
ke($);
|
|
1498
|
+
const g = de();
|
|
1468
1499
|
g && (R.value.style.left = `${g.x}px`, R.value.style.top = `${g.y}px`);
|
|
1469
1500
|
}
|
|
1470
|
-
|
|
1501
|
+
h(), oe(), X(), t == null || t.classList.remove("active");
|
|
1471
1502
|
}
|
|
1472
1503
|
}).catch(() => {
|
|
1473
1504
|
t == null || t.classList.remove("active");
|
|
1474
1505
|
});
|
|
1475
|
-
},
|
|
1506
|
+
}, We = (t) => {
|
|
1476
1507
|
const { value: e, type: l } = t;
|
|
1477
1508
|
if (l != "a") {
|
|
1478
1509
|
const i = a.value.find((s) => s.select == !0);
|
|
1479
1510
|
if (i) {
|
|
1480
1511
|
i.r = parseInt(e.r), i.g = parseInt(e.g), i.b = parseInt(e.b);
|
|
1481
|
-
const s =
|
|
1482
|
-
i.hue = s,
|
|
1512
|
+
const s = Ae(i.r, i.g, i.b);
|
|
1513
|
+
i.hue = s, ie(i.r, i.g, i.b, i.hue, !0), X(), oe();
|
|
1483
1514
|
}
|
|
1484
1515
|
} else
|
|
1485
|
-
|
|
1486
|
-
},
|
|
1487
|
-
|
|
1516
|
+
ne.value = e, X(), oe();
|
|
1517
|
+
}, c = (t) => {
|
|
1518
|
+
q.h = t.h, q.s = t.s, q.l = t.l;
|
|
1488
1519
|
const e = a.value.find((l) => l.select == !0);
|
|
1489
|
-
if (e && !Number.isNaN(
|
|
1490
|
-
const { r: l, g: i, b: s } =
|
|
1491
|
-
e.hue =
|
|
1520
|
+
if (e && !Number.isNaN(q.h) && !Number.isNaN(q.s) && !Number.isNaN(q.l)) {
|
|
1521
|
+
const { r: l, g: i, b: s } = nt(q.h, q.s / 100, q.l / 100);
|
|
1522
|
+
e.hue = q.h, e.r = l, e.g = i, e.b = s, ie(e.r, e.g, e.b, e.hue, !0), X(), oe();
|
|
1492
1523
|
}
|
|
1493
|
-
},
|
|
1494
|
-
if (
|
|
1495
|
-
const t = je(
|
|
1524
|
+
}, o = () => {
|
|
1525
|
+
if (W.value) {
|
|
1526
|
+
const t = je(W.value);
|
|
1496
1527
|
if (t) {
|
|
1497
|
-
const e =
|
|
1498
|
-
l && (l.r = t.r, l.g = t.g, l.b = t.b, l.hue = e,
|
|
1528
|
+
const e = Ae(t.r, t.g, t.b), l = a.value.find((i) => i.select == !0);
|
|
1529
|
+
l && (l.r = t.r, l.g = t.g, l.b = t.b, l.hue = e, ie(t.r, t.g, t.b, l.hue, !0), X(), oe(), se(U.value));
|
|
1499
1530
|
}
|
|
1500
1531
|
}
|
|
1501
|
-
},
|
|
1532
|
+
}, h = () => {
|
|
1502
1533
|
const t = a.value.find((e) => e.select == !0);
|
|
1503
|
-
t && (
|
|
1504
|
-
},
|
|
1534
|
+
t && (W.value = lt(t.r, t.g, t.b).toUpperCase()), se(U.value);
|
|
1535
|
+
}, J = (t) => {
|
|
1505
1536
|
f("last-used-pick", t);
|
|
1506
1537
|
};
|
|
1507
|
-
window.EyeDropper && (
|
|
1508
|
-
const
|
|
1509
|
-
if (
|
|
1538
|
+
window.EyeDropper && (M.value = !0);
|
|
1539
|
+
const ce = (t = "") => {
|
|
1540
|
+
if (y.value == "gradient") {
|
|
1510
1541
|
let e = t.includes("linear") ? "linear" : "radial", l = [];
|
|
1511
1542
|
if (L.value = e, e == "linear") {
|
|
1512
1543
|
let i = /^linear-gradient\((.*)\)$/, s = t.replace(";", "").trim().match(i), d = /,\s*(?![^()]*\))/;
|
|
@@ -1564,7 +1595,7 @@ const It = { key: 1 }, Vt = {
|
|
|
1564
1595
|
}
|
|
1565
1596
|
}
|
|
1566
1597
|
}
|
|
1567
|
-
l.length > 1 && (a.value = l, a.value[0].select = !0,
|
|
1598
|
+
l.length > 1 && (a.value = l, a.value[0].select = !0, ne.value = a.value[0].a);
|
|
1568
1599
|
} else if (t) {
|
|
1569
1600
|
let e = {
|
|
1570
1601
|
r: 0,
|
|
@@ -1586,49 +1617,49 @@ const It = { key: 1 }, Vt = {
|
|
|
1586
1617
|
let l = St(t);
|
|
1587
1618
|
l ? (e.a = 1, e.r = l.r, e.g = l.g, e.b = l.b) : e = null;
|
|
1588
1619
|
}
|
|
1589
|
-
e && (a.value[0].r = e.r, a.value[0].b = e.b, a.value[0].g = e.g, a.value[0].a = parseInt((e.a * 100).toFixed(0)),
|
|
1620
|
+
e && (a.value[0].r = e.r, a.value[0].b = e.b, a.value[0].g = e.g, a.value[0].a = parseInt((e.a * 100).toFixed(0)), ne.value = a.value[0].a, a.value[0].hue = 0);
|
|
1590
1621
|
}
|
|
1591
|
-
},
|
|
1622
|
+
}, se = (t) => {
|
|
1592
1623
|
const e = a.value.find((l) => l.select == !0);
|
|
1593
1624
|
if (e) {
|
|
1594
1625
|
switch (t) {
|
|
1595
1626
|
case "RGB":
|
|
1596
1627
|
break;
|
|
1597
1628
|
case "HSL": {
|
|
1598
|
-
const { h: l, s: i, l: s } =
|
|
1599
|
-
|
|
1629
|
+
const { h: l, s: i, l: s } = tt(e.r, e.g, e.b);
|
|
1630
|
+
q.h = Math.round(l), q.s = Math.round(i * 100), q.l = Math.round(s * 100);
|
|
1600
1631
|
break;
|
|
1601
1632
|
}
|
|
1602
1633
|
}
|
|
1603
|
-
|
|
1634
|
+
U.value = t;
|
|
1604
1635
|
}
|
|
1605
|
-
},
|
|
1606
|
-
t &&
|
|
1636
|
+
}, he = (t) => {
|
|
1637
|
+
t && ce(t), xe();
|
|
1607
1638
|
};
|
|
1608
|
-
|
|
1639
|
+
ye(
|
|
1609
1640
|
() => r.modelValue,
|
|
1610
1641
|
(t, e) => {
|
|
1611
1642
|
t !== e && t !== C.value && (a.value.forEach((l) => {
|
|
1612
1643
|
const i = P == null ? void 0 : P.querySelector(`#clr-gb-${l.id}`);
|
|
1613
1644
|
i == null || i.remove();
|
|
1614
|
-
}),
|
|
1645
|
+
}), he(t));
|
|
1615
1646
|
}
|
|
1616
1647
|
);
|
|
1617
|
-
const
|
|
1648
|
+
const Qe = (t) => {
|
|
1618
1649
|
a.value.forEach((e) => {
|
|
1619
1650
|
const l = P == null ? void 0 : P.querySelector(`#clr-gb-${e.id}`);
|
|
1620
1651
|
l == null || l.remove();
|
|
1621
|
-
}), t !== "solid" ? (
|
|
1652
|
+
}), t !== "solid" ? (y.value = "gradient", setTimeout(() => {
|
|
1622
1653
|
var e;
|
|
1623
|
-
P = (e = u.value) == null ? void 0 : e.querySelector(".gradient-bar"),
|
|
1624
|
-
}, 200)) : t === "solid" && (
|
|
1625
|
-
|
|
1654
|
+
P = (e = u.value) == null ? void 0 : e.querySelector(".gradient-bar"), Le(t), xe();
|
|
1655
|
+
}, 200)) : t === "solid" && (y.value = "solid", a.value = a.value.map((e) => (e.select = !1, e)), a.value[0].select = !0, setTimeout(() => {
|
|
1656
|
+
he(r.modelValue);
|
|
1626
1657
|
}, 200));
|
|
1627
1658
|
};
|
|
1628
|
-
return
|
|
1659
|
+
return _e(() => {
|
|
1629
1660
|
var t;
|
|
1630
|
-
|
|
1631
|
-
|
|
1661
|
+
y.value = r.modelValue.includes("linear") || r.modelValue.includes("radial") ? "gradient" : "solid", y.value == "gradient" && (P = (t = u.value) == null ? void 0 : t.querySelector(".gradient-bar")), he(r.modelValue), se(U.value), mt(() => {
|
|
1662
|
+
N.value = !0;
|
|
1632
1663
|
});
|
|
1633
1664
|
}), (t, e) => (m(), E("div", {
|
|
1634
1665
|
ref_key: "pickerTemplateRef",
|
|
@@ -1640,18 +1671,18 @@ const It = { key: 1 }, Vt = {
|
|
|
1640
1671
|
T(il, {
|
|
1641
1672
|
class: "mr-auto",
|
|
1642
1673
|
variant: n.variant,
|
|
1643
|
-
mode:
|
|
1674
|
+
mode: y.value,
|
|
1644
1675
|
"model-value": n.modelValue,
|
|
1645
1676
|
iconClasses: n.iconClasses,
|
|
1646
1677
|
gradientType: L.value,
|
|
1647
|
-
onOnChangeMode:
|
|
1678
|
+
onOnChangeMode: Qe
|
|
1648
1679
|
}, null, 8, ["variant", "mode", "model-value", "iconClasses", "gradientType"])
|
|
1649
|
-
])) :
|
|
1650
|
-
|
|
1680
|
+
])) : H("", !0),
|
|
1681
|
+
y.value == "gradient" && n.variant == "gradient" ? (m(), E("div", ul, [
|
|
1651
1682
|
T(Kt, {
|
|
1652
1683
|
gradientType: L.value,
|
|
1653
|
-
onOnAddColor:
|
|
1654
|
-
onOnMouseDown:
|
|
1684
|
+
onOnAddColor: fe,
|
|
1685
|
+
onOnMouseDown: De,
|
|
1655
1686
|
onOnDeleteColor: Ge
|
|
1656
1687
|
}, null, 8, ["gradientType"]),
|
|
1657
1688
|
T(ll, {
|
|
@@ -1661,34 +1692,34 @@ const It = { key: 1 }, Vt = {
|
|
|
1661
1692
|
"onUpdate:angle": e[1] || (e[1] = (l) => B.angle = l),
|
|
1662
1693
|
percentageX: B.percentageX,
|
|
1663
1694
|
"onUpdate:percentageX": e[2] || (e[2] = (l) => B.percentageX = l),
|
|
1664
|
-
inputType:
|
|
1665
|
-
mode:
|
|
1695
|
+
inputType: U.value,
|
|
1696
|
+
mode: y.value,
|
|
1666
1697
|
gradientType: L.value,
|
|
1667
|
-
onOnInput:
|
|
1698
|
+
onOnInput: X
|
|
1668
1699
|
}, null, 8, ["percentageY", "angle", "percentageX", "inputType", "mode", "gradientType"])
|
|
1669
1700
|
])) : (m(), E("div", dl, [
|
|
1670
1701
|
n.presetColors ? (m(), E("div", cl, [
|
|
1671
|
-
e[10] || (e[10] =
|
|
1672
|
-
|
|
1673
|
-
(m(!0), E(
|
|
1702
|
+
e[10] || (e[10] = b("div", { class: "text-oc-text-400 text-sm my-3 font-medium" }, "Choose color", -1)),
|
|
1703
|
+
b("div", pl, [
|
|
1704
|
+
(m(!0), E(pe, null, Ze(n.presetColors, (l) => (m(), E("div", {
|
|
1674
1705
|
key: `color-${l}`,
|
|
1675
1706
|
class: "ck-cp-color-item !w-[32px] !h-[32px]",
|
|
1676
|
-
style:
|
|
1677
|
-
onClick: (i) =>
|
|
1707
|
+
style: ee(`background:${l}`),
|
|
1708
|
+
onClick: (i) => J(l)
|
|
1678
1709
|
}, null, 12, gl))), 128))
|
|
1679
1710
|
])
|
|
1680
|
-
])) :
|
|
1711
|
+
])) : H("", !0)
|
|
1681
1712
|
])),
|
|
1682
|
-
T(al, { onOnMouseDown:
|
|
1683
|
-
|
|
1713
|
+
T(al, { onOnMouseDown: Se }),
|
|
1714
|
+
b("div", vl, [
|
|
1684
1715
|
T(_t, {
|
|
1685
|
-
class: Q(
|
|
1686
|
-
modelValue:
|
|
1687
|
-
"onUpdate:modelValue": e[3] || (e[3] = (l) =>
|
|
1716
|
+
class: Q(M.value ? "max-w-[90%]" : ""),
|
|
1717
|
+
modelValue: ae.value,
|
|
1718
|
+
"onUpdate:modelValue": e[3] || (e[3] = (l) => ae.value = l),
|
|
1688
1719
|
onOnInput: e[4] || (e[4] = (l) => Ie(!1)),
|
|
1689
|
-
onOnChange:
|
|
1720
|
+
onOnChange: qe
|
|
1690
1721
|
}, null, 8, ["class", "modelValue"]),
|
|
1691
|
-
|
|
1722
|
+
M.value ? (m(), E("button", {
|
|
1692
1723
|
key: 0,
|
|
1693
1724
|
id: "cp-btn-eyedropper",
|
|
1694
1725
|
type: "button",
|
|
@@ -1696,70 +1727,70 @@ const It = { key: 1 }, Vt = {
|
|
|
1696
1727
|
style: { padding: "7px" },
|
|
1697
1728
|
onClick: Ye
|
|
1698
1729
|
}, e[11] || (e[11] = [
|
|
1699
|
-
|
|
1730
|
+
b("svg", {
|
|
1700
1731
|
version: "1.1",
|
|
1701
1732
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1702
1733
|
width: "32",
|
|
1703
1734
|
height: "32",
|
|
1704
1735
|
viewBox: "0 0 32 32"
|
|
1705
1736
|
}, [
|
|
1706
|
-
|
|
1737
|
+
b("path", { d: "M21.35 1.825l-6.344 6.35-0.588-0.588c-0.781-0.781-2.050-0.781-2.831 0s-0.781 2.050 0 2.831l10 10c0.781 0.781 2.050 0.781 2.831 0s0.781-2.050 0-2.831l-0.587-0.587 6.344-6.35c2.438-2.438 2.438-6.388 0-8.819s-6.387-2.438-8.819 0zM3.462 20.206c-0.938 0.938-1.462 2.212-1.462 3.538v2.65l-1.663 2.494c-0.531 0.794-0.425 1.85 0.25 2.525s1.731 0.781 2.525 0.25l2.494-1.663h2.65c1.325 0 2.6-0.525 3.537-1.462l7.544-7.544-2.831-2.831-7.544 7.544c-0.188 0.188-0.444 0.294-0.706 0.294h-2.256v-2.256c0-0.262 0.106-0.519 0.294-0.706l7.544-7.544-2.831-2.831-7.544 7.544z" })
|
|
1707
1738
|
], -1)
|
|
1708
|
-
]))) :
|
|
1739
|
+
]))) : H("", !0)
|
|
1709
1740
|
]),
|
|
1710
|
-
n.showAlpha ? (m(),
|
|
1741
|
+
n.showAlpha ? (m(), F(jt, {
|
|
1711
1742
|
key: 3,
|
|
1712
|
-
modelValue:
|
|
1713
|
-
"onUpdate:modelValue": e[5] || (e[5] = (l) =>
|
|
1714
|
-
onOnInput: e[6] || (e[6] = (l) =>
|
|
1715
|
-
}, null, 8, ["modelValue"])) :
|
|
1716
|
-
ft(
|
|
1743
|
+
modelValue: ne.value,
|
|
1744
|
+
"onUpdate:modelValue": e[5] || (e[5] = (l) => ne.value = l),
|
|
1745
|
+
onOnInput: e[6] || (e[6] = (l) => Ue(l.target.value))
|
|
1746
|
+
}, null, 8, ["modelValue"])) : H("", !0),
|
|
1747
|
+
ft(b("div", ml, null, 512), [
|
|
1717
1748
|
[ht, !1]
|
|
1718
1749
|
]),
|
|
1719
|
-
|
|
1750
|
+
b("div", fl, [
|
|
1720
1751
|
T(Gt, {
|
|
1721
|
-
"model-value":
|
|
1722
|
-
"onUpdate:modelValue":
|
|
1752
|
+
"model-value": U.value,
|
|
1753
|
+
"onUpdate:modelValue": se
|
|
1723
1754
|
}, null, 8, ["model-value"]),
|
|
1724
|
-
|
|
1725
|
-
|
|
1755
|
+
N.value && n.showInputSet ? (m(), E("div", hl, [
|
|
1756
|
+
U.value == "HEX" ? (m(), F(Xt, {
|
|
1726
1757
|
key: 0,
|
|
1727
|
-
modelValue:
|
|
1758
|
+
modelValue: W.value,
|
|
1728
1759
|
"onUpdate:modelValue": [
|
|
1729
|
-
e[7] || (e[7] = (l) =>
|
|
1730
|
-
|
|
1760
|
+
e[7] || (e[7] = (l) => W.value = l),
|
|
1761
|
+
o
|
|
1731
1762
|
]
|
|
1732
|
-
}, null, 8, ["modelValue"])) :
|
|
1733
|
-
|
|
1763
|
+
}, null, 8, ["modelValue"])) : H("", !0),
|
|
1764
|
+
U.value == "RGB" ? (m(), F(ot, {
|
|
1734
1765
|
key: 1,
|
|
1735
1766
|
"rgb-value": a.value.find((l) => l.select == !0),
|
|
1736
|
-
onUpdateRgbValue:
|
|
1737
|
-
}, null, 8, ["rgb-value"])) :
|
|
1738
|
-
|
|
1767
|
+
onUpdateRgbValue: We
|
|
1768
|
+
}, null, 8, ["rgb-value"])) : H("", !0),
|
|
1769
|
+
U.value == "HSL" ? (m(), F(ot, {
|
|
1739
1770
|
key: 2,
|
|
1740
1771
|
"input-type": "HSL",
|
|
1741
|
-
"hsl-value":
|
|
1742
|
-
onUpdateHslValue:
|
|
1743
|
-
}, null, 8, ["hsl-value"])) :
|
|
1744
|
-
n.showAlpha ? (m(),
|
|
1772
|
+
"hsl-value": q,
|
|
1773
|
+
onUpdateHslValue: c
|
|
1774
|
+
}, null, 8, ["hsl-value"])) : H("", !0),
|
|
1775
|
+
n.showAlpha ? (m(), F(Ft, {
|
|
1745
1776
|
key: 3,
|
|
1746
|
-
modelValue:
|
|
1777
|
+
modelValue: ne.value,
|
|
1747
1778
|
"onUpdate:modelValue": [
|
|
1748
|
-
e[8] || (e[8] = (l) =>
|
|
1749
|
-
e[9] || (e[9] = (l) =>
|
|
1779
|
+
e[8] || (e[8] = (l) => ne.value = l),
|
|
1780
|
+
e[9] || (e[9] = (l) => Ue(l))
|
|
1750
1781
|
]
|
|
1751
|
-
}, null, 8, ["modelValue"])) :
|
|
1752
|
-
])) :
|
|
1782
|
+
}, null, 8, ["modelValue"])) : H("", !0)
|
|
1783
|
+
])) : H("", !0)
|
|
1753
1784
|
]),
|
|
1754
|
-
e[12] || (e[12] =
|
|
1755
|
-
|
|
1756
|
-
(m(!0), E(
|
|
1785
|
+
e[12] || (e[12] = b("div", { class: "text-oc-text-400 text-sm my-3 font-medium font-inter" }, "Last used", -1)),
|
|
1786
|
+
O.value.length > 0 && n.showColorList ? (m(), E("div", bl, [
|
|
1787
|
+
(m(!0), E(pe, null, Ze(j.value, (l) => (m(), E("div", {
|
|
1757
1788
|
key: `color-${l}`,
|
|
1758
1789
|
class: "ck-cp-color-item !w-[32px] !h-[32px]",
|
|
1759
|
-
style:
|
|
1760
|
-
onClick: (i) =>
|
|
1790
|
+
style: ee(`background:${l}`),
|
|
1791
|
+
onClick: (i) => J(l)
|
|
1761
1792
|
}, null, 12, yl))), 128))
|
|
1762
|
-
])) :
|
|
1793
|
+
])) : H("", !0)
|
|
1763
1794
|
], 10, sl));
|
|
1764
1795
|
}
|
|
1765
1796
|
}, kl = { class: "flex flex-col pt-10 px-7 gap-y-7 items-center" }, $l = { class: "flex flex-col gap-y-4 text-center items-center" }, wl = {
|
|
@@ -1789,7 +1820,7 @@ const It = { key: 1 }, Vt = {
|
|
|
1789
1820
|
}
|
|
1790
1821
|
},
|
|
1791
1822
|
setup(n) {
|
|
1792
|
-
const V = n, r =
|
|
1823
|
+
const V = n, r = be(() => ({
|
|
1793
1824
|
grid: {
|
|
1794
1825
|
containLabel: !1
|
|
1795
1826
|
},
|
|
@@ -1817,35 +1848,35 @@ const It = { key: 1 }, Vt = {
|
|
|
1817
1848
|
}
|
|
1818
1849
|
]
|
|
1819
1850
|
}));
|
|
1820
|
-
return (
|
|
1851
|
+
return (y, u) => (m(), E("div", kl, [
|
|
1821
1852
|
T(w(Ct), {
|
|
1822
1853
|
class: "w-[140px] bg-white rounded-full h-[140px]",
|
|
1823
1854
|
"additional-options": r.value,
|
|
1824
1855
|
"tooltip-formatter": () => null,
|
|
1825
1856
|
"tooltip-value-formatter": () => null
|
|
1826
1857
|
}, null, 8, ["additional-options"]),
|
|
1827
|
-
|
|
1828
|
-
n.title ? (m(), E("span", wl,
|
|
1829
|
-
|
|
1830
|
-
n.description ? (m(), E("span", Sl,
|
|
1858
|
+
b("div", $l, [
|
|
1859
|
+
n.title ? (m(), E("span", wl, Pe(n.title), 1)) : H("", !0),
|
|
1860
|
+
Ke(y.$slots, "description", {}, () => [
|
|
1861
|
+
n.description ? (m(), E("span", Sl, Pe(n.description), 1)) : H("", !0)
|
|
1831
1862
|
])
|
|
1832
1863
|
])
|
|
1833
1864
|
]));
|
|
1834
1865
|
}
|
|
1835
|
-
}),
|
|
1836
|
-
() => import("./OcCodeBlock-
|
|
1837
|
-
),
|
|
1838
|
-
() => import("./OcLottieAnimation-
|
|
1866
|
+
}), Ul = st(
|
|
1867
|
+
() => import("./OcCodeBlock-uFQyGnLq.js")
|
|
1868
|
+
), Dl = st(
|
|
1869
|
+
() => import("./OcLottieAnimation-BjY3rCjS.js")
|
|
1839
1870
|
);
|
|
1840
1871
|
export {
|
|
1841
1872
|
Al as BarChart,
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1873
|
+
Pl as BarRaceChart,
|
|
1874
|
+
ql as Card,
|
|
1875
|
+
Ul as CodeBlock,
|
|
1845
1876
|
Vt as ColorPicker,
|
|
1846
1877
|
xl as ColorPickerPopup,
|
|
1847
|
-
|
|
1848
|
-
|
|
1878
|
+
Ml as LineChart,
|
|
1879
|
+
Dl as LottieAnimation,
|
|
1849
1880
|
El as OnboardingProgressbar,
|
|
1850
1881
|
Ct as PieChart,
|
|
1851
1882
|
Rl as TextEditor
|