@orchidui/dashboard 1.1.31-2 → 1.1.31-21
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/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var qe = (n, I, r) =>
|
|
4
|
-
import { ref as m, computed as Fe, openBlock as v, createBlock as X, unref as C, normalizeClass as A, withCtx as G, createVNode as E, createCommentVNode as H, createSlots as
|
|
5
|
-
import { Q as q, a as yt } from "./QuillEditor-
|
|
6
|
-
import { BaseInput as
|
|
1
|
+
var ct = Object.defineProperty;
|
|
2
|
+
var pt = (n, I, r) => I in n ? ct(n, I, { enumerable: !0, configurable: !0, writable: !0, value: r }) : n[I] = r;
|
|
3
|
+
var qe = (n, I, r) => pt(n, typeof I != "symbol" ? I + "" : I, r);
|
|
4
|
+
import { ref as m, computed as Fe, openBlock as v, createBlock as X, unref as C, normalizeClass as A, withCtx as G, createVNode as E, createCommentVNode as H, createSlots as gt, renderSlot as Ye, createElementBlock as R, normalizeStyle as J, onMounted as je, createElementVNode as h, Fragment as ce, renderList as We, toDisplayString as Qe, createTextVNode as pe, watch as xe, withKeys as lt, inject as Le, reactive as Ke, provide as Ve, nextTick as vt, withDirectives as mt, vShow as ft, defineComponent as ht, defineAsyncComponent as at } from "vue";
|
|
5
|
+
import { Q as q, a as yt } from "./QuillEditor-CW7SIBVk.js";
|
|
6
|
+
import { BaseInput as nt, Dropdown as ot, Input as be, Icon as Q, Slider as Ae, Select as bt } from "@orchidui/core";
|
|
7
7
|
import { hslToRgb as Ze, hsl2Hex as Je, rgb2Hex as _e, rgbaToHex8 as xt, hexToRgb as Ge, rgbToHue as Me, rgbToHsl as et, hex8ToRgba as kt, parseRgba as $t, parseRgb as wt } from "./Dashboard/ColorPicker/components/converters.js";
|
|
8
8
|
import { PieChart as St } from "./Dashboard/Charts/PieChart/OcPieChart.js";
|
|
9
|
-
import { LineChart as
|
|
10
|
-
import { BarChart as
|
|
11
|
-
import { BarRaceChart as
|
|
12
|
-
import { _ as
|
|
9
|
+
import { LineChart as Ol } from "./Dashboard/Charts/LineChart/OcLineChart.js";
|
|
10
|
+
import { BarChart as Al } from "./Dashboard/Charts/BarChart/OcBarChart.js";
|
|
11
|
+
import { BarRaceChart as Fl } from "./Dashboard/Charts/BarRaceChart/OcBarRaceChart.js";
|
|
12
|
+
import { _ as Pl } from "./OcCard-w0EuBfr4.js";
|
|
13
13
|
const Ct = { key: 1 }, It = {
|
|
14
14
|
__name: "OcColorPicker",
|
|
15
15
|
props: {
|
|
@@ -60,7 +60,7 @@ const Ct = { key: 1 }, It = {
|
|
|
60
60
|
}, B = m(!1), j = (D) => {
|
|
61
61
|
f.value = D, y("update:model-value", D), u.value = !1;
|
|
62
62
|
};
|
|
63
|
-
return (D, F) => (v(), X(C(
|
|
63
|
+
return (D, F) => (v(), X(C(nt), {
|
|
64
64
|
class: A(n.hideInputColor ? "w-[40px]" : ""),
|
|
65
65
|
onClick: F[1] || (F[1] = () => {
|
|
66
66
|
var M;
|
|
@@ -68,7 +68,7 @@ const Ct = { key: 1 }, It = {
|
|
|
68
68
|
})
|
|
69
69
|
}, {
|
|
70
70
|
default: G(() => [
|
|
71
|
-
E(C(
|
|
71
|
+
E(C(ot), {
|
|
72
72
|
ref_key: "dropdownRef",
|
|
73
73
|
ref: a,
|
|
74
74
|
modelValue: u.value,
|
|
@@ -108,7 +108,7 @@ const Ct = { key: 1 }, It = {
|
|
|
108
108
|
"icon-props": c.value,
|
|
109
109
|
placeholder: "#FFFFFF",
|
|
110
110
|
"onUpdate:modelValue": w
|
|
111
|
-
},
|
|
111
|
+
}, gt({ _: 2 }, [
|
|
112
112
|
D.$slots.leading ? {
|
|
113
113
|
name: "leading",
|
|
114
114
|
fn: G(() => [
|
|
@@ -298,7 +298,7 @@ const Ct = { key: 1 }, It = {
|
|
|
298
298
|
const p = (i = window.getSelection()) == null ? void 0 : i.focusNode;
|
|
299
299
|
ue.value = p.innerHTML && p.innerHTML.includes("<img");
|
|
300
300
|
};
|
|
301
|
-
return (p, i) => (v(), X(C(
|
|
301
|
+
return (p, i) => (v(), X(C(nt), {
|
|
302
302
|
label: n.label,
|
|
303
303
|
hint: n.hint,
|
|
304
304
|
"error-message": n.errorMessage,
|
|
@@ -353,7 +353,7 @@ const Ct = { key: 1 }, It = {
|
|
|
353
353
|
i[12] || (i[12] = h("div", { class: "border-l border-oc-gray-200" }, null, -1))
|
|
354
354
|
], 64)) : H("", !0),
|
|
355
355
|
f.value.includes("font-size") ? (v(), R(ce, { key: 1 }, [
|
|
356
|
-
E(C(
|
|
356
|
+
E(C(ot), {
|
|
357
357
|
modelValue: T.value,
|
|
358
358
|
"onUpdate:modelValue": i[0] || (i[0] = (V) => T.value = V),
|
|
359
359
|
class: "px-5"
|
|
@@ -1289,8 +1289,8 @@ const Ct = { key: 1 }, It = {
|
|
|
1289
1289
|
const e = z.value.getContext("2d", { willReadFrequently: !0 }), l = z.value.width, o = z.value.height, s = e.getImageData(0, 0, l, o).data, d = t.r, b = t.g, S = t.b;
|
|
1290
1290
|
for (let x = 0; x < o; x++)
|
|
1291
1291
|
for (let g = 0; g < l; g++) {
|
|
1292
|
-
const $ = (x * l + g) * 4, oe = s[$],
|
|
1293
|
-
if (oe === d &&
|
|
1292
|
+
const $ = (x * l + g) * 4, oe = s[$], ut = s[$ + 1], dt = s[$ + 2];
|
|
1293
|
+
if (oe === d && ut === b && dt === S)
|
|
1294
1294
|
return !0;
|
|
1295
1295
|
}
|
|
1296
1296
|
return !1;
|
|
@@ -1429,7 +1429,7 @@ const Ct = { key: 1 }, It = {
|
|
|
1429
1429
|
const { r: l, g: o, b: s } = Ze(N.h, N.s / 100, N.l / 100);
|
|
1430
1430
|
e.hue = N.h, e.r = l, e.g = o, e.b = s, ue(e.r, e.g, e.b, e.hue, !0), i(), p();
|
|
1431
1431
|
}
|
|
1432
|
-
},
|
|
1432
|
+
}, it = () => {
|
|
1433
1433
|
if (j.value) {
|
|
1434
1434
|
const t = Ge(j.value);
|
|
1435
1435
|
if (t) {
|
|
@@ -1444,7 +1444,7 @@ const Ct = { key: 1 }, It = {
|
|
|
1444
1444
|
f("last-used-pick", t);
|
|
1445
1445
|
};
|
|
1446
1446
|
window.EyeDropper && (O.value = !0);
|
|
1447
|
-
const
|
|
1447
|
+
const st = (t = "") => {
|
|
1448
1448
|
if (y.value == "gradient") {
|
|
1449
1449
|
let e = t.includes("linear") ? "linear" : "radial", l = [];
|
|
1450
1450
|
if (L.value = e, e == "linear") {
|
|
@@ -1542,7 +1542,7 @@ const Ct = { key: 1 }, It = {
|
|
|
1542
1542
|
D.value = t;
|
|
1543
1543
|
}
|
|
1544
1544
|
}, Xe = (t) => {
|
|
1545
|
-
t &&
|
|
1545
|
+
t && st(t), Ce();
|
|
1546
1546
|
};
|
|
1547
1547
|
xe(
|
|
1548
1548
|
() => r.modelValue,
|
|
@@ -1553,7 +1553,7 @@ const Ct = { key: 1 }, It = {
|
|
|
1553
1553
|
}), Xe(t));
|
|
1554
1554
|
}
|
|
1555
1555
|
);
|
|
1556
|
-
const
|
|
1556
|
+
const rt = (t) => {
|
|
1557
1557
|
a.value.forEach((e) => {
|
|
1558
1558
|
const l = P == null ? void 0 : P.querySelector(`#clr-gb-${e.id}`);
|
|
1559
1559
|
l == null || l.remove();
|
|
@@ -1566,7 +1566,7 @@ const Ct = { key: 1 }, It = {
|
|
|
1566
1566
|
};
|
|
1567
1567
|
return je(() => {
|
|
1568
1568
|
var t;
|
|
1569
|
-
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")), Xe(r.modelValue), Oe(D.value),
|
|
1569
|
+
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")), Xe(r.modelValue), Oe(D.value), vt(() => {
|
|
1570
1570
|
F.value = !0;
|
|
1571
1571
|
});
|
|
1572
1572
|
}), (t, e) => (v(), R("div", {
|
|
@@ -1583,7 +1583,7 @@ const Ct = { key: 1 }, It = {
|
|
|
1583
1583
|
"model-value": n.modelValue,
|
|
1584
1584
|
iconClasses: n.iconClasses,
|
|
1585
1585
|
gradientType: L.value,
|
|
1586
|
-
onOnChangeMode:
|
|
1586
|
+
onOnChangeMode: rt
|
|
1587
1587
|
}, null, 8, ["variant", "mode", "model-value", "iconClasses", "gradientType"])
|
|
1588
1588
|
])) : H("", !0),
|
|
1589
1589
|
y.value == "gradient" && n.variant == "gradient" ? (v(), R("div", rl, [
|
|
@@ -1652,8 +1652,8 @@ const Ct = { key: 1 }, It = {
|
|
|
1652
1652
|
"onUpdate:modelValue": e[5] || (e[5] = (l) => le.value = l),
|
|
1653
1653
|
onOnInput: e[6] || (e[6] = (l) => Ee(l.target.value))
|
|
1654
1654
|
}, null, 8, ["modelValue"])) : H("", !0),
|
|
1655
|
-
|
|
1656
|
-
[
|
|
1655
|
+
mt(h("div", vl, null, 512), [
|
|
1656
|
+
[ft, !1]
|
|
1657
1657
|
]),
|
|
1658
1658
|
h("div", ml, [
|
|
1659
1659
|
E(qt, {
|
|
@@ -1666,7 +1666,7 @@ const Ct = { key: 1 }, It = {
|
|
|
1666
1666
|
modelValue: j.value,
|
|
1667
1667
|
"onUpdate:modelValue": [
|
|
1668
1668
|
e[7] || (e[7] = (l) => j.value = l),
|
|
1669
|
-
|
|
1669
|
+
it
|
|
1670
1670
|
]
|
|
1671
1671
|
}, null, 8, ["modelValue"])) : H("", !0),
|
|
1672
1672
|
D.value == "RGB" ? (v(), X(tt, {
|
|
@@ -1707,7 +1707,7 @@ const Ct = { key: 1 }, It = {
|
|
|
1707
1707
|
}, wl = {
|
|
1708
1708
|
key: 0,
|
|
1709
1709
|
class: "text-sm text-oc-text-400"
|
|
1710
|
-
}, Rl = /* @__PURE__ */
|
|
1710
|
+
}, Rl = /* @__PURE__ */ ht({
|
|
1711
1711
|
__name: "OcOnboardingProgressbar",
|
|
1712
1712
|
props: {
|
|
1713
1713
|
title: {
|
|
@@ -1771,17 +1771,20 @@ const Ct = { key: 1 }, It = {
|
|
|
1771
1771
|
])
|
|
1772
1772
|
]));
|
|
1773
1773
|
}
|
|
1774
|
-
}), El =
|
|
1774
|
+
}), El = at(
|
|
1775
1775
|
() => import("./OcCodeBlock-chTpuRDc.js")
|
|
1776
|
+
), Dl = at(
|
|
1777
|
+
() => import("./OcLottieAnimation-DrSbyZql.js")
|
|
1776
1778
|
);
|
|
1777
1779
|
export {
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1780
|
+
Al as BarChart,
|
|
1781
|
+
Fl as BarRaceChart,
|
|
1782
|
+
Pl as Card,
|
|
1781
1783
|
El as CodeBlock,
|
|
1782
1784
|
It as ColorPicker,
|
|
1783
1785
|
bl as ColorPickerPopup,
|
|
1784
|
-
|
|
1786
|
+
Ol as LineChart,
|
|
1787
|
+
Dl as LottieAnimation,
|
|
1785
1788
|
Rl as OnboardingProgressbar,
|
|
1786
1789
|
St as PieChart,
|
|
1787
1790
|
Bl as TextEditor
|