@strands.gg/accui 2.17.39 → 2.17.41
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/{StrandsUIPlugin-CP1i9Kzp.cjs.js → StrandsUIPlugin-D6qvy6mu.cjs.js} +1 -1
- package/dist/{StrandsUIPlugin-aEnm6JAu.es.js → StrandsUIPlugin-DuI6-C0h.es.js} +141 -141
- package/dist/accui.css +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +2 -2
- package/dist/vite.cjs.js +1 -1
- package/dist/vite.es.js +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as ae, computed as
|
|
1
|
+
import { defineComponent as ae, computed as R, createElementBlock as E, openBlock as C, createElementVNode as $, normalizeClass as Q, createCommentVNode as W, toDisplayString as ee, renderSlot as T, createTextVNode as Ve, unref as L, normalizeStyle as Ne, useSlots as xn, createVNode as z, Fragment as be, withCtx as A, getCurrentInstance as Ns, createBlock as G, resolveDynamicComponent as In, resolveComponent as Hd, ref as _, onUnmounted as wn, mergeProps as Dn, Teleport as di, nextTick as Re, normalizeProps as jd, createSlots as je, useAttrs as qd, h as Kt, onMounted as er, withModifiers as cn, renderList as Ge, watch as ht, toRefs as Ud, withDirectives as Mo, vModelSelect as To, watchEffect as Wd, onBeforeUnmount as Is, shallowRef as Kd, markRaw as Jd, customRef as Gd, useCssVars as Yd } from "vue";
|
|
2
2
|
const Ae = (n, e) => {
|
|
3
3
|
const t = n.__vccOpts || n;
|
|
4
4
|
for (const [r, i] of e)
|
|
@@ -22,12 +22,12 @@ const Ae = (n, e) => {
|
|
|
22
22
|
},
|
|
23
23
|
emits: ["dismiss"],
|
|
24
24
|
setup(n) {
|
|
25
|
-
const e = n, t =
|
|
25
|
+
const e = n, t = R(() => ({
|
|
26
26
|
success: "alert alert-success",
|
|
27
27
|
error: "alert alert-error",
|
|
28
28
|
warning: "alert alert-warning",
|
|
29
29
|
info: "alert alert-info"
|
|
30
|
-
})[e.variant]), r =
|
|
30
|
+
})[e.variant]), r = R(() => "alert-title"), i = R(() => "alert-message"), s = R(() => ({
|
|
31
31
|
success: "M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",
|
|
32
32
|
error: "M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z",
|
|
33
33
|
warning: "M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z",
|
|
@@ -111,7 +111,7 @@ const Ae = (n, e) => {
|
|
|
111
111
|
md: 48,
|
|
112
112
|
lg: 64,
|
|
113
113
|
xl: 80
|
|
114
|
-
}, s =
|
|
114
|
+
}, s = R(() => typeof r.size == "number" ? r.size : i[r.size] || i.md);
|
|
115
115
|
return (o, l) => (C(), E("div", {
|
|
116
116
|
class: Q(["loader-container", [
|
|
117
117
|
{ "loader-centered": n.centered },
|
|
@@ -127,7 +127,7 @@ const Ae = (n, e) => {
|
|
|
127
127
|
$("defs", null, [
|
|
128
128
|
$("path", {
|
|
129
129
|
id: "logo-path",
|
|
130
|
-
d:
|
|
130
|
+
d: L(t),
|
|
131
131
|
transform: "translate(81, 13) scale(1.0)"
|
|
132
132
|
}, null, 8, lu)
|
|
133
133
|
]),
|
|
@@ -204,7 +204,7 @@ const Ae = (n, e) => {
|
|
|
204
204
|
textAlign: { default: "center" }
|
|
205
205
|
},
|
|
206
206
|
setup(n) {
|
|
207
|
-
const e = xn(), t =
|
|
207
|
+
const e = xn(), t = R(() => !!e["leading-icon"]), r = R(() => !!e["trailing-icon"]), i = n, s = R(() => {
|
|
208
208
|
switch (i.size) {
|
|
209
209
|
case "xs":
|
|
210
210
|
return 16;
|
|
@@ -224,7 +224,7 @@ const Ae = (n, e) => {
|
|
|
224
224
|
default:
|
|
225
225
|
return 20;
|
|
226
226
|
}
|
|
227
|
-
}), o =
|
|
227
|
+
}), o = R(() => i.size ? `button-content-${i.size}` : "button-content-md");
|
|
228
228
|
return (l, a) => n.loading ? (C(), E("span", hu, [
|
|
229
229
|
z(Ds, {
|
|
230
230
|
variant: "circle",
|
|
@@ -267,7 +267,7 @@ const Ae = (n, e) => {
|
|
|
267
267
|
},
|
|
268
268
|
emits: ["click"],
|
|
269
269
|
setup(n, { emit: e }) {
|
|
270
|
-
const t = n, r = e, i =
|
|
270
|
+
const t = n, r = e, i = R(() => {
|
|
271
271
|
if (t.href)
|
|
272
272
|
return t.href;
|
|
273
273
|
if (t.to) {
|
|
@@ -328,7 +328,7 @@ const Ae = (n, e) => {
|
|
|
328
328
|
},
|
|
329
329
|
emits: ["click"],
|
|
330
330
|
setup(n, { emit: e }) {
|
|
331
|
-
const t = Ns(), r =
|
|
331
|
+
const t = Ns(), r = R(() => t?.appContext.app.component("NuxtLink") ? "NuxtLink" : t?.appContext.app.component("RouterLink") ? "RouterLink" : "a"), i = n, s = e, o = (l) => {
|
|
332
332
|
if (i.disabled || i.loading) {
|
|
333
333
|
l.preventDefault();
|
|
334
334
|
return;
|
|
@@ -540,21 +540,21 @@ const Ae = (n, e) => {
|
|
|
540
540
|
},
|
|
541
541
|
emits: ["click"],
|
|
542
542
|
setup(n, { emit: e }) {
|
|
543
|
-
const t = n, r =
|
|
543
|
+
const t = n, r = R(() => t.title ? typeof t.title == "string" ? {
|
|
544
544
|
content: t.title,
|
|
545
545
|
position: "top",
|
|
546
546
|
disabled: t.disabled || t.loading
|
|
547
547
|
} : {
|
|
548
548
|
...t.title,
|
|
549
549
|
disabled: t.title.disabled ?? (t.disabled || t.loading)
|
|
550
|
-
} : null), i =
|
|
550
|
+
} : null), i = R(() => !!(typeof process < "u" && process.client !== void 0 || typeof window < "u" && (window.__NUXT__ || window.$nuxt))), s = R(() => {
|
|
551
551
|
try {
|
|
552
552
|
if (typeof window < "u" && window.Vue?.Router)
|
|
553
553
|
return !0;
|
|
554
554
|
} catch {
|
|
555
555
|
}
|
|
556
556
|
return !1;
|
|
557
|
-
}), o =
|
|
557
|
+
}), o = R(() => [
|
|
558
558
|
"ui-button",
|
|
559
559
|
`ui-button-${t.variant}`,
|
|
560
560
|
`ui-button-${t.size}`,
|
|
@@ -564,9 +564,9 @@ const Ae = (n, e) => {
|
|
|
564
564
|
t.fullWidth ? "ui-button-full-width" : "",
|
|
565
565
|
t.icon ? "ui-button-icon" : "",
|
|
566
566
|
t.squircle ? "ui-button-squircle" : ""
|
|
567
|
-
].filter(Boolean)), l =
|
|
567
|
+
].filter(Boolean)), l = R(() => o.value.join(" ")), a = R(() => ({
|
|
568
568
|
fontWeight: t.fontWeight
|
|
569
|
-
})), c =
|
|
569
|
+
})), c = R(() => t.disabled || t.loading ? -1 : t.tabindex ?? void 0);
|
|
570
570
|
return (d, u) => n.title ? (C(), G(wu, jd(Dn({ key: 0 }, r.value)), {
|
|
571
571
|
default: A(() => [
|
|
572
572
|
n.to ? i.value && n.to ? (C(), G(Ao, {
|
|
@@ -897,48 +897,48 @@ const Ae = (n, e) => {
|
|
|
897
897
|
to: {}
|
|
898
898
|
},
|
|
899
899
|
setup(n) {
|
|
900
|
-
const e = n, t = qd(), r = Ns(), i =
|
|
901
|
-
const
|
|
902
|
-
return
|
|
903
|
-
}),
|
|
900
|
+
const e = n, t = qd(), r = Ns(), i = R(() => e.to ? r?.appContext.app.component("NuxtLink") ? "NuxtLink" : r?.appContext.app.component("RouterLink") ? "RouterLink" : "a" : null), s = R(() => !e.to || typeof e.to != "string" ? !1 : /^(https?:\/\/|mailto:|tel:)/.test(e.to)), o = R(() => e.to ? s.value ? "a" : i.value || "a" : "div"), l = R(() => {
|
|
901
|
+
const d = o.value;
|
|
902
|
+
return d === "NuxtLink" || d === "RouterLink";
|
|
903
|
+
}), a = R(() => o.value === "a" && !!e.to), c = R(() => [
|
|
904
904
|
`ui-card-${e.variant}`,
|
|
905
905
|
`ui-card-padding-${e.padding}`,
|
|
906
906
|
`ui-card-shadow-${e.shadow}`,
|
|
907
907
|
`ui-card-color-${e.color}`,
|
|
908
908
|
t.class
|
|
909
909
|
]);
|
|
910
|
-
return (
|
|
911
|
-
to:
|
|
912
|
-
href:
|
|
913
|
-
class: Q(["ui-card", [
|
|
910
|
+
return (d, u) => (C(), G(In(o.value), {
|
|
911
|
+
to: l.value ? n.to : void 0,
|
|
912
|
+
href: a.value ? typeof n.to == "string" ? n.to : "" : void 0,
|
|
913
|
+
class: Q(["ui-card", [c.value, { "ui-card-linkable": !!n.to }]])
|
|
914
914
|
}, {
|
|
915
915
|
default: A(() => [
|
|
916
|
-
|
|
917
|
-
T(
|
|
918
|
-
T(
|
|
919
|
-
n.title ||
|
|
920
|
-
n.title ||
|
|
916
|
+
d.$slots.header || n.title || n.subtitle || d.$slots["leading-icon"] || d.$slots["trailing-icon"] ? (C(), E("div", Tu, [
|
|
917
|
+
T(d.$slots, "header", {}, () => [
|
|
918
|
+
T(d.$slots, "leading-icon", {}, void 0, !0),
|
|
919
|
+
n.title || d.$slots.title || n.subtitle || d.$slots.subtitle ? (C(), E("div", Eu, [
|
|
920
|
+
n.title || d.$slots.title ? T(d.$slots, "title", { key: 0 }, () => [
|
|
921
921
|
n.title ? (C(), E("h2", Au, ee(n.title), 1)) : W("", !0)
|
|
922
922
|
], !0) : W("", !0),
|
|
923
|
-
n.subtitle ||
|
|
923
|
+
n.subtitle || d.$slots.subtitle ? T(d.$slots, "subtitle", { key: 1 }, () => [
|
|
924
924
|
n.subtitle ? (C(), E("p", Ou, ee(n.subtitle), 1)) : W("", !0)
|
|
925
925
|
], !0) : W("", !0)
|
|
926
926
|
])) : W("", !0),
|
|
927
|
-
T(
|
|
928
|
-
T(
|
|
927
|
+
T(d.$slots, "trailing-icon", {}, void 0, !0),
|
|
928
|
+
T(d.$slots, "actions", {}, void 0, !0)
|
|
929
929
|
], !0)
|
|
930
930
|
])) : W("", !0),
|
|
931
|
-
|
|
932
|
-
T(
|
|
931
|
+
d.$slots.default ? (C(), E("div", Nu, [
|
|
932
|
+
T(d.$slots, "default", {}, void 0, !0)
|
|
933
933
|
])) : W("", !0),
|
|
934
|
-
|
|
935
|
-
T(
|
|
934
|
+
d.$slots.footer ? (C(), E("div", Iu, [
|
|
935
|
+
T(d.$slots, "footer", {}, void 0, !0)
|
|
936
936
|
])) : W("", !0)
|
|
937
937
|
]),
|
|
938
938
|
_: 3
|
|
939
939
|
}, 8, ["to", "href", "class"]));
|
|
940
940
|
}
|
|
941
|
-
}), na = /* @__PURE__ */ Ae(Du, [["__scopeId", "data-v-
|
|
941
|
+
}), na = /* @__PURE__ */ Ae(Du, [["__scopeId", "data-v-59655c42"]]);
|
|
942
942
|
const No = (n) => n.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), $u = (n) => n.replace(
|
|
943
943
|
/^([A-Z])|[\s-_]+(\w)/g,
|
|
944
944
|
(e, t, r) => r ? r.toUpperCase() : t.toLowerCase()
|
|
@@ -1201,13 +1201,13 @@ const Rs = oe("x", [
|
|
|
1201
1201
|
},
|
|
1202
1202
|
emits: ["update:modelValue", "blur", "focus", "keydown"],
|
|
1203
1203
|
setup(n, { emit: e }) {
|
|
1204
|
-
const t = n, r = e, i = _(!1), s =
|
|
1204
|
+
const t = n, r = e, i = _(!1), s = R(() => t.type === "password" ? i.value ? "text" : "password" : t.type), o = R(() => t.hasTrailingIcon || t.type === "password" || t.type === "search" && t.modelValue), l = R(() => {
|
|
1205
1205
|
if (t.tabindex !== void 0)
|
|
1206
1206
|
return t.tabindex + 1;
|
|
1207
|
-
}), a =
|
|
1207
|
+
}), a = R(() => {
|
|
1208
1208
|
const g = [];
|
|
1209
1209
|
return t.error && g.push("input-error"), t.disabled && g.push("input-disabled"), t.readonly && g.push("input-readonly"), g.push(`input-size-${t.size}`), g;
|
|
1210
|
-
}), c =
|
|
1210
|
+
}), c = R(() => {
|
|
1211
1211
|
const g = [];
|
|
1212
1212
|
return t.hasLeadingIcon ? g.push("input-padding-left-icon") : g.push("input-padding-left"), o.value ? g.push("input-padding-right-icon") : g.push("input-padding-right"), g;
|
|
1213
1213
|
}), d = (g) => {
|
|
@@ -1263,7 +1263,7 @@ const Rs = oe("x", [
|
|
|
1263
1263
|
onClick: p
|
|
1264
1264
|
}, {
|
|
1265
1265
|
icon: A(() => [
|
|
1266
|
-
i.value ? (C(), G(
|
|
1266
|
+
i.value ? (C(), G(L(Gu), { key: 0 })) : (C(), G(L(Yu), { key: 1 }))
|
|
1267
1267
|
]),
|
|
1268
1268
|
_: 1
|
|
1269
1269
|
}, 8, ["color", "variant", "tabindex", "aria-label"])
|
|
@@ -1279,7 +1279,7 @@ const Rs = oe("x", [
|
|
|
1279
1279
|
onClick: m
|
|
1280
1280
|
}, {
|
|
1281
1281
|
icon: A(() => [
|
|
1282
|
-
z(
|
|
1282
|
+
z(L(Rs))
|
|
1283
1283
|
]),
|
|
1284
1284
|
_: 1
|
|
1285
1285
|
}, 8, ["tabindex"])
|
|
@@ -1322,7 +1322,7 @@ const Rs = oe("x", [
|
|
|
1322
1322
|
},
|
|
1323
1323
|
emits: ["update:modelValue", "blur", "focus", "keydown"],
|
|
1324
1324
|
setup(n, { emit: e }) {
|
|
1325
|
-
const t = n, r = e, i = xn(), s =
|
|
1325
|
+
const t = n, r = e, i = xn(), s = R(() => !!i.default), o = _(null);
|
|
1326
1326
|
er(() => {
|
|
1327
1327
|
(t.modelValue === void 0 || t.modelValue === "") && s.value && setTimeout(() => {
|
|
1328
1328
|
if (o.value) {
|
|
@@ -1331,10 +1331,10 @@ const Rs = oe("x", [
|
|
|
1331
1331
|
}
|
|
1332
1332
|
}, 0);
|
|
1333
1333
|
});
|
|
1334
|
-
const l =
|
|
1334
|
+
const l = R(() => {
|
|
1335
1335
|
const h = [];
|
|
1336
1336
|
return t.error && h.push("input-error"), t.disabled && h.push("input-disabled"), t.readonly && h.push("input-readonly"), h.push(`input-size-${t.size}`), h;
|
|
1337
|
-
}), a =
|
|
1337
|
+
}), a = R(() => {
|
|
1338
1338
|
const h = [];
|
|
1339
1339
|
return t.hasLeadingIcon ? h.push("input-padding-left-icon") : h.push("input-padding-left"), t.hasTrailingIcon ? h.push("input-padding-right-icon") : h.push("input-padding-right"), h;
|
|
1340
1340
|
}), c = (h) => {
|
|
@@ -1565,7 +1565,7 @@ const Cf = {
|
|
|
1565
1565
|
},
|
|
1566
1566
|
emits: ["update:modelValue", "blur", "focus"],
|
|
1567
1567
|
setup(n, { emit: e }) {
|
|
1568
|
-
const t = n, r = e, i = _(), s = _(), o = _(), l =
|
|
1568
|
+
const t = n, r = e, i = _(), s = _(), o = _(), l = R(() => `dropdown-${t.inputId || Math.random().toString(36).substr(2, 9)}`), a = R(() => {
|
|
1569
1569
|
if (i.value) {
|
|
1570
1570
|
const I = i.value.closest('[role="dialog"][aria-modal="true"]');
|
|
1571
1571
|
if (I)
|
|
@@ -1595,13 +1595,13 @@ const Cf = {
|
|
|
1595
1595
|
w();
|
|
1596
1596
|
}
|
|
1597
1597
|
}
|
|
1598
|
-
}), h =
|
|
1598
|
+
}), h = R(() => t.multiple ? Array.isArray(t.modelValue) ? t.modelValue : [] : t.modelValue !== void 0 ? [t.modelValue] : []), p = R(() => {
|
|
1599
1599
|
if (t.multiple) {
|
|
1600
1600
|
const I = t.options.filter((V) => h.value.includes(V.value));
|
|
1601
1601
|
return I.length > 0 ? `${I.length} selected` : null;
|
|
1602
1602
|
} else
|
|
1603
1603
|
return t.options.find((V) => V.value === t.modelValue)?.label || null;
|
|
1604
|
-
}), m =
|
|
1604
|
+
}), m = R(() => {
|
|
1605
1605
|
let I = t.options;
|
|
1606
1606
|
if (t.searchable && c.value.searchQuery) {
|
|
1607
1607
|
const V = c.value.searchQuery.toLowerCase();
|
|
@@ -1620,13 +1620,13 @@ const Cf = {
|
|
|
1620
1620
|
]));
|
|
1621
1621
|
}
|
|
1622
1622
|
return I;
|
|
1623
|
-
}), g =
|
|
1623
|
+
}), g = R(() => t.searchPlaceholder && t.searchPlaceholder.trim() !== "" ? t.searchPlaceholder : t.allowInsert && t.multiple ? "Search or create..." : "Search..."), y = R(() => t.disabled ? -1 : t.tabindex ?? 0), S = R(() => {
|
|
1624
1624
|
if (t.tabindex !== void 0)
|
|
1625
1625
|
return t.tabindex + 1;
|
|
1626
|
-
}), v =
|
|
1626
|
+
}), v = R(() => {
|
|
1627
1627
|
const I = [];
|
|
1628
1628
|
return t.error && I.push("input-error"), t.disabled && I.push("input-disabled"), I.push(`input-size-${t.size}`), I;
|
|
1629
|
-
}), b =
|
|
1629
|
+
}), b = R(() => {
|
|
1630
1630
|
const I = [];
|
|
1631
1631
|
return t.hasLeadingIcon ? I.push("input-padding-left-icon") : I.push("input-padding-left"), t.hasTrailingIcon ? I.push("input-padding-right-icon") : I.push("input-padding-right"), I;
|
|
1632
1632
|
}), k = async () => {
|
|
@@ -1753,7 +1753,7 @@ const Cf = {
|
|
|
1753
1753
|
$("div", {
|
|
1754
1754
|
class: Q(["input-select-arrow", { "input-select-arrow-open": c.value.isOpen }])
|
|
1755
1755
|
}, [
|
|
1756
|
-
z(
|
|
1756
|
+
z(L($s))
|
|
1757
1757
|
], 2)
|
|
1758
1758
|
], 42, Sf),
|
|
1759
1759
|
t.hasTrailingIcon ? (C(), E("div", Af, [
|
|
@@ -1768,7 +1768,7 @@ const Cf = {
|
|
|
1768
1768
|
ref: s,
|
|
1769
1769
|
id: l.value,
|
|
1770
1770
|
class: Q(["input-dropdown", { "input-dropdown--multiple": n.multiple }]),
|
|
1771
|
-
style: Ne(
|
|
1771
|
+
style: Ne(L(d)),
|
|
1772
1772
|
role: "listbox",
|
|
1773
1773
|
"aria-multiselectable": n.multiple,
|
|
1774
1774
|
onMousedown: V[1] || (V[1] = cn(() => {
|
|
@@ -1787,7 +1787,7 @@ const Cf = {
|
|
|
1787
1787
|
onKeydown: te
|
|
1788
1788
|
}, {
|
|
1789
1789
|
"leading-icon": A(() => [
|
|
1790
|
-
z(
|
|
1790
|
+
z(L(lf))
|
|
1791
1791
|
]),
|
|
1792
1792
|
_: 1
|
|
1793
1793
|
}, 8, ["modelValue", "placeholder", "tabindex"])
|
|
@@ -1819,7 +1819,7 @@ const Cf = {
|
|
|
1819
1819
|
j.description ? (C(), E("div", Lf, ee(j.description), 1)) : W("", !0)
|
|
1820
1820
|
]),
|
|
1821
1821
|
n.multiple && M(j) ? (C(), E("div", Pf, [
|
|
1822
|
-
z(
|
|
1822
|
+
z(L(qu))
|
|
1823
1823
|
])) : W("", !0)
|
|
1824
1824
|
], 42, Df))), 128))
|
|
1825
1825
|
], 4)
|
|
@@ -1872,12 +1872,12 @@ const Cf = {
|
|
|
1872
1872
|
},
|
|
1873
1873
|
emits: ["update:modelValue", "file-error", "clear-preview", "blur", "focus"],
|
|
1874
1874
|
setup(n, { emit: e }) {
|
|
1875
|
-
const t = n, r = e, i = _(), s = _(!1), o = _(null), l = _([]), a =
|
|
1876
|
-
|
|
1877
|
-
const c =
|
|
1875
|
+
const t = n, r = e, i = _(), s = _(!1), o = _(null), l = _([]), a = R(() => t.preview ? t.preview : o.value);
|
|
1876
|
+
R(() => !!t.preview);
|
|
1877
|
+
const c = R(() => t.preview ? t.preview : null), d = R(() => {
|
|
1878
1878
|
const M = [];
|
|
1879
1879
|
return t.error && M.push("input-error"), t.disabled && M.push("input-disabled"), M.push(`input-size-${t.size}`), M;
|
|
1880
|
-
}), u =
|
|
1880
|
+
}), u = R(() => {
|
|
1881
1881
|
const M = [];
|
|
1882
1882
|
return M.push("input-padding-left-icon"), l.value.length > 0 || c.value || t.disabled ? M.push("input-padding-right-icon") : M.push("input-padding-right"), M;
|
|
1883
1883
|
}), f = (M) => {
|
|
@@ -1954,7 +1954,7 @@ const Cf = {
|
|
|
1954
1954
|
src: a.value,
|
|
1955
1955
|
alt: "Preview",
|
|
1956
1956
|
class: "input-file-preview"
|
|
1957
|
-
}, null, 8, Ff)) : t.hasLeadingIcon ? T(M.$slots, "leading-icon", { key: 1 }, void 0, !0) : (C(), G(
|
|
1957
|
+
}, null, 8, Ff)) : t.hasLeadingIcon ? T(M.$slots, "leading-icon", { key: 1 }, void 0, !0) : (C(), G(L(Qu), { key: 2 }))
|
|
1958
1958
|
]),
|
|
1959
1959
|
$("div", {
|
|
1960
1960
|
class: Q(["input-file-area", {
|
|
@@ -2012,7 +2012,7 @@ const Cf = {
|
|
|
2012
2012
|
onClick: cn(m, ["stop"]),
|
|
2013
2013
|
"aria-label": "Clear selected files"
|
|
2014
2014
|
}, [
|
|
2015
|
-
z(
|
|
2015
|
+
z(L(Rs))
|
|
2016
2016
|
])
|
|
2017
2017
|
])) : t.hasTrailingIcon ? (C(), E("div", nh, [
|
|
2018
2018
|
T(M.$slots, "trailing-icon", {}, void 0, !0)
|
|
@@ -2040,7 +2040,7 @@ const Cf = {
|
|
|
2040
2040
|
},
|
|
2041
2041
|
emits: ["update:modelValue"],
|
|
2042
2042
|
setup(n, { emit: e }) {
|
|
2043
|
-
const t = n, r = e, i = xn(), s =
|
|
2043
|
+
const t = n, r = e, i = xn(), s = R(() => !!i.content), o = R(
|
|
2044
2044
|
() => t.tabs.find((v) => v.value === t.modelValue)
|
|
2045
2045
|
), l = _([]), a = _(!1), c = _({
|
|
2046
2046
|
width: "0px",
|
|
@@ -2285,9 +2285,9 @@ const Cf = {
|
|
|
2285
2285
|
`tab-button--${n.size}`,
|
|
2286
2286
|
`tab-button--${n.variant}`,
|
|
2287
2287
|
`tab-button--${n.tabWidth}`,
|
|
2288
|
-
{ "tab-button-active":
|
|
2288
|
+
{ "tab-button-active": L(S) === k.value }
|
|
2289
2289
|
]]),
|
|
2290
|
-
"aria-selected":
|
|
2290
|
+
"aria-selected": L(S) === k.value,
|
|
2291
2291
|
"aria-controls": "tabpanel",
|
|
2292
2292
|
id: `tab-${k.value}`,
|
|
2293
2293
|
role: "tab",
|
|
@@ -2311,7 +2311,7 @@ const Cf = {
|
|
|
2311
2311
|
key: 0,
|
|
2312
2312
|
class: Q(["tabs-content", `tabs-content--${n.orientation}`]),
|
|
2313
2313
|
role: "tabpanel",
|
|
2314
|
-
"aria-labelledby": `tab-${
|
|
2314
|
+
"aria-labelledby": `tab-${L(S)}`,
|
|
2315
2315
|
id: "tabpanel"
|
|
2316
2316
|
}, [
|
|
2317
2317
|
T(v.$slots, "content", { activeTab: o.value }, void 0, !0)
|
|
@@ -2334,7 +2334,7 @@ const Cf = {
|
|
|
2334
2334
|
spacing: { default: "auto" }
|
|
2335
2335
|
},
|
|
2336
2336
|
setup(n) {
|
|
2337
|
-
const e = n, t = xn(), r =
|
|
2337
|
+
const e = n, t = xn(), r = R(() => !!(e.text || t.default)), i = R(() => {
|
|
2338
2338
|
const s = {};
|
|
2339
2339
|
return e.orientation === "horizontal" ? (s.width = e.spacing === "auto" ? "100%" : typeof e.spacing == "number" ? `${e.spacing}px` : e.spacing, s.marginTop = typeof e.margin == "number" ? `${e.margin}px` : e.margin, s.marginBottom = typeof e.margin == "number" ? `${e.margin}px` : e.margin, r.value || (s.height = typeof e.thickness == "number" ? `${e.thickness}px` : e.thickness), s["--divider-color"] = e.color === "#e5e7eb" ? "var(--accui-divider-color)" : e.color, s["--divider-thickness"] = typeof e.thickness == "number" ? `${e.thickness}px` : e.thickness) : (s.height = e.spacing === "auto" ? "100%" : typeof e.spacing == "number" ? `${e.spacing}px` : e.spacing, s.marginLeft = typeof e.margin == "number" ? `${e.margin}px` : e.margin, s.marginRight = typeof e.margin == "number" ? `${e.margin}px` : e.margin, r.value || (s.width = typeof e.thickness == "number" ? `${e.thickness}px` : e.thickness), s["--divider-color"] = e.color === "#e5e7eb" ? "var(--accui-divider-color)" : e.color, s["--divider-thickness"] = typeof e.thickness == "number" ? `${e.thickness}px` : e.thickness), s;
|
|
2340
2340
|
});
|
|
@@ -2431,7 +2431,7 @@ const Cf = {
|
|
|
2431
2431
|
"October",
|
|
2432
2432
|
"November",
|
|
2433
2433
|
"December"
|
|
2434
|
-
], b = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], k =
|
|
2434
|
+
], b = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], k = R(() => t.min ? t.min instanceof Date ? t.min : new Date(t.min) : null), w = R(() => t.max ? t.max instanceof Date ? t.max : new Date(t.max) : null), x = R(() => {
|
|
2435
2435
|
if (!t.modelValue) return null;
|
|
2436
2436
|
if (t.modelValue instanceof Date)
|
|
2437
2437
|
return t.modelValue;
|
|
@@ -2443,7 +2443,7 @@ const Cf = {
|
|
|
2443
2443
|
}
|
|
2444
2444
|
}
|
|
2445
2445
|
return new Date(t.modelValue);
|
|
2446
|
-
}), M =
|
|
2446
|
+
}), M = R(() => {
|
|
2447
2447
|
if (!x.value || isNaN(x.value.getTime())) return "";
|
|
2448
2448
|
const q = x.value;
|
|
2449
2449
|
if (t.type === "time") {
|
|
@@ -2477,28 +2477,28 @@ const Cf = {
|
|
|
2477
2477
|
tn = `${$t}:${String(q.getMinutes()).padStart(2, "0")} ${ve}`;
|
|
2478
2478
|
}
|
|
2479
2479
|
return `${Be} ${tn}`;
|
|
2480
|
-
}), D =
|
|
2480
|
+
}), D = R(() => {
|
|
2481
2481
|
const q = [];
|
|
2482
2482
|
return t.error && q.push("datetime-picker-error"), t.disabled && q.push("datetime-picker-disabled"), t.readonly && q.push("datetime-picker-readonly"), q.push(`datetime-picker-size-${t.size}`), q;
|
|
2483
|
-
}), H =
|
|
2483
|
+
}), H = R(() => t.type === "date" || t.type === "datetime" && h.value === "date"), te = R(() => t.type === "time" || t.type === "datetime" && h.value === "time"), Z = R(() => [
|
|
2484
2484
|
{ label: "Date", value: "date" },
|
|
2485
2485
|
{ label: "Time", value: "time" }
|
|
2486
|
-
]), ie =
|
|
2486
|
+
]), ie = R(() => {
|
|
2487
2487
|
const q = [], F = t.is24Hour ? 23 : 12, B = t.is24Hour ? 0 : 1;
|
|
2488
2488
|
for (let ne = B; ne <= F; ne++)
|
|
2489
2489
|
q.push(ne);
|
|
2490
2490
|
return q;
|
|
2491
|
-
}), I =
|
|
2491
|
+
}), I = R(() => {
|
|
2492
2492
|
const q = [];
|
|
2493
2493
|
for (let F = 0; F < 60; F += t.minuteStep)
|
|
2494
2494
|
q.push(F);
|
|
2495
2495
|
return q;
|
|
2496
|
-
}), V =
|
|
2496
|
+
}), V = R(() => {
|
|
2497
2497
|
const q = (/* @__PURE__ */ new Date()).getFullYear(), F = k.value?.getFullYear() || q - 100, B = w.value?.getFullYear() || q + 100, ne = [];
|
|
2498
2498
|
for (let Be = F; Be <= B; Be++)
|
|
2499
2499
|
ne.push(Be);
|
|
2500
2500
|
return ne;
|
|
2501
|
-
}), j =
|
|
2501
|
+
}), j = R(() => k.value ? new Date(m.value, p.value, 1) <= k.value : !1), $e = R(() => w.value ? new Date(m.value, p.value + 1, 0) >= w.value : !1), Ti = R(() => {
|
|
2502
2502
|
const q = [], F = m.value, B = p.value, ne = new Date(F, B, 1), Be = new Date(ne);
|
|
2503
2503
|
Be.setDate(Be.getDate() - ne.getDay());
|
|
2504
2504
|
const tn = /* @__PURE__ */ new Date();
|
|
@@ -2591,7 +2591,7 @@ const Cf = {
|
|
|
2591
2591
|
onClick: f
|
|
2592
2592
|
}, [
|
|
2593
2593
|
$("div", ph, [
|
|
2594
|
-
n.type === "date" ? (C(), G(
|
|
2594
|
+
n.type === "date" ? (C(), G(L(ju), { key: 0 })) : n.type === "time" ? (C(), G(L(Ku), { key: 1 })) : (C(), G(L(Hu), { key: 2 }))
|
|
2595
2595
|
]),
|
|
2596
2596
|
$("div", mh, [
|
|
2597
2597
|
M.value ? (C(), E("span", gh, ee(M.value), 1)) : (C(), E("span", yh, ee(n.placeholder || Dd()), 1))
|
|
@@ -2601,9 +2601,9 @@ const Cf = {
|
|
|
2601
2601
|
class: "datetime-picker-trailing-icon",
|
|
2602
2602
|
onClick: cn(So, ["stop"])
|
|
2603
2603
|
}, [
|
|
2604
|
-
z(
|
|
2604
|
+
z(L(Rs))
|
|
2605
2605
|
])) : (C(), E("div", bh, [
|
|
2606
|
-
z(
|
|
2606
|
+
z(L($s))
|
|
2607
2607
|
]))
|
|
2608
2608
|
], 2),
|
|
2609
2609
|
(C(), G(di, { to: "body" }, [
|
|
@@ -2612,7 +2612,7 @@ const Cf = {
|
|
|
2612
2612
|
ref_key: "floatingElement",
|
|
2613
2613
|
ref: s,
|
|
2614
2614
|
class: "datetime-picker-dropdown",
|
|
2615
|
-
style: Ne(
|
|
2615
|
+
style: Ne(L(l))
|
|
2616
2616
|
}, [
|
|
2617
2617
|
n.type === "datetime" ? (C(), G(Ps, {
|
|
2618
2618
|
key: 0,
|
|
@@ -2634,7 +2634,7 @@ const Cf = {
|
|
|
2634
2634
|
squircle: ""
|
|
2635
2635
|
}, {
|
|
2636
2636
|
icon: A(() => [
|
|
2637
|
-
z(
|
|
2637
|
+
z(L(Uu))
|
|
2638
2638
|
]),
|
|
2639
2639
|
_: 1
|
|
2640
2640
|
}, 8, ["disabled"]),
|
|
@@ -2671,7 +2671,7 @@ const Cf = {
|
|
|
2671
2671
|
squircle: ""
|
|
2672
2672
|
}, {
|
|
2673
2673
|
icon: A(() => [
|
|
2674
|
-
z(
|
|
2674
|
+
z(L(Wu))
|
|
2675
2675
|
]),
|
|
2676
2676
|
_: 1
|
|
2677
2677
|
}, 8, ["disabled"])
|
|
@@ -15925,7 +15925,7 @@ var Y0 = class extends V0 {
|
|
|
15925
15925
|
var i;
|
|
15926
15926
|
if (!e.value || !((i = r.view.dom) != null && i.parentNode))
|
|
15927
15927
|
return;
|
|
15928
|
-
const s =
|
|
15928
|
+
const s = L(e.value);
|
|
15929
15929
|
e.value.append(...r.view.dom.parentNode.childNodes), r.contentComponent = t.ctx._, t && (r.appContext = {
|
|
15930
15930
|
...t.appContext,
|
|
15931
15931
|
// Vue internally uses prototype chain to forward/shadow injects across the entire component chain
|
|
@@ -19465,7 +19465,7 @@ const zb = { class: "input-richtext-toolbar" }, Bb = { class: "input-richtext-gr
|
|
|
19465
19465
|
c4d6a996: k.minHeight,
|
|
19466
19466
|
v6f8994c7: k.maxHeight
|
|
19467
19467
|
}));
|
|
19468
|
-
const t = n, r = e, i = xn(), s =
|
|
19468
|
+
const t = n, r = e, i = xn(), s = R(() => !!i.default), o = _(null), l = _(typeof t.modelValue == "string" ? t.modelValue : "");
|
|
19469
19469
|
er(() => {
|
|
19470
19470
|
(t.modelValue === void 0 || t.modelValue === "") && s.value && setTimeout(() => {
|
|
19471
19471
|
if (o.value && b.value) {
|
|
@@ -19479,7 +19479,7 @@ const zb = { class: "input-richtext-toolbar" }, Bb = { class: "input-richtext-gr
|
|
|
19479
19479
|
updatePosition: f,
|
|
19480
19480
|
cleanup: h
|
|
19481
19481
|
} = Ls({
|
|
19482
|
-
trigger:
|
|
19482
|
+
trigger: R(() => a.value !== null ? c.value[a.value] : void 0),
|
|
19483
19483
|
floating: d,
|
|
19484
19484
|
placement: "bottom-start",
|
|
19485
19485
|
offset: 4,
|
|
@@ -19548,58 +19548,58 @@ const zb = { class: "input-richtext-toolbar" }, Bb = { class: "input-richtext-gr
|
|
|
19548
19548
|
$("div", zb, [
|
|
19549
19549
|
$("div", Bb, [
|
|
19550
19550
|
z(re, {
|
|
19551
|
-
color:
|
|
19551
|
+
color: L(b)?.isActive("bold") ? "primary" : "secondary",
|
|
19552
19552
|
size: "sm",
|
|
19553
19553
|
icon: "",
|
|
19554
19554
|
squircle: "",
|
|
19555
|
-
onClick: w[0] || (w[0] = (x) =>
|
|
19555
|
+
onClick: w[0] || (w[0] = (x) => L(b)?.chain().focus().toggleBold().run()),
|
|
19556
19556
|
disabled: n.disabled,
|
|
19557
19557
|
title: "Bold (Ctrl+B)"
|
|
19558
19558
|
}, {
|
|
19559
19559
|
icon: A(() => [
|
|
19560
|
-
z(
|
|
19560
|
+
z(L(Fu), { size: 16 })
|
|
19561
19561
|
]),
|
|
19562
19562
|
_: 1
|
|
19563
19563
|
}, 8, ["color", "disabled"]),
|
|
19564
19564
|
z(re, {
|
|
19565
|
-
color:
|
|
19565
|
+
color: L(b)?.isActive("italic") ? "primary" : "secondary",
|
|
19566
19566
|
size: "sm",
|
|
19567
19567
|
icon: "",
|
|
19568
19568
|
squircle: "",
|
|
19569
|
-
onClick: w[1] || (w[1] = (x) =>
|
|
19569
|
+
onClick: w[1] || (w[1] = (x) => L(b)?.chain().focus().toggleItalic().run()),
|
|
19570
19570
|
disabled: n.disabled,
|
|
19571
19571
|
title: "Italic (Ctrl+I)"
|
|
19572
19572
|
}, {
|
|
19573
19573
|
icon: A(() => [
|
|
19574
|
-
z(
|
|
19574
|
+
z(L(ef), { size: 16 })
|
|
19575
19575
|
]),
|
|
19576
19576
|
_: 1
|
|
19577
19577
|
}, 8, ["color", "disabled"]),
|
|
19578
19578
|
z(re, {
|
|
19579
|
-
color:
|
|
19579
|
+
color: L(b)?.isActive("underline") ? "primary" : "secondary",
|
|
19580
19580
|
size: "sm",
|
|
19581
19581
|
icon: "",
|
|
19582
19582
|
squircle: "",
|
|
19583
|
-
onClick: w[2] || (w[2] = (x) =>
|
|
19583
|
+
onClick: w[2] || (w[2] = (x) => L(b)?.chain().focus().toggleUnderline().run()),
|
|
19584
19584
|
disabled: n.disabled,
|
|
19585
19585
|
title: "Underline (Ctrl+U)"
|
|
19586
19586
|
}, {
|
|
19587
19587
|
icon: A(() => [
|
|
19588
|
-
z(
|
|
19588
|
+
z(L(cf), { size: 16 })
|
|
19589
19589
|
]),
|
|
19590
19590
|
_: 1
|
|
19591
19591
|
}, 8, ["color", "disabled"]),
|
|
19592
19592
|
z(re, {
|
|
19593
|
-
color:
|
|
19593
|
+
color: L(b)?.isActive("strike") ? "primary" : "secondary",
|
|
19594
19594
|
size: "sm",
|
|
19595
19595
|
icon: "",
|
|
19596
19596
|
squircle: "",
|
|
19597
|
-
onClick: w[3] || (w[3] = (x) =>
|
|
19597
|
+
onClick: w[3] || (w[3] = (x) => L(b)?.chain().focus().toggleStrike().run()),
|
|
19598
19598
|
disabled: n.disabled,
|
|
19599
19599
|
title: "Strikethrough"
|
|
19600
19600
|
}, {
|
|
19601
19601
|
icon: A(() => [
|
|
19602
|
-
z(
|
|
19602
|
+
z(L(af), { size: 16 })
|
|
19603
19603
|
]),
|
|
19604
19604
|
_: 1
|
|
19605
19605
|
}, 8, ["color", "disabled"])
|
|
@@ -19611,44 +19611,44 @@ const zb = { class: "input-richtext-toolbar" }, Bb = { class: "input-richtext-gr
|
|
|
19611
19611
|
}),
|
|
19612
19612
|
$("div", Vb, [
|
|
19613
19613
|
z(re, {
|
|
19614
|
-
color:
|
|
19614
|
+
color: L(b)?.isActive("heading", { level: 1 }) ? "primary" : "secondary",
|
|
19615
19615
|
size: "sm",
|
|
19616
19616
|
icon: "",
|
|
19617
19617
|
squircle: "",
|
|
19618
|
-
onClick: w[4] || (w[4] = (x) =>
|
|
19618
|
+
onClick: w[4] || (w[4] = (x) => L(b)?.chain().focus().toggleHeading({ level: 1 }).run()),
|
|
19619
19619
|
disabled: n.disabled,
|
|
19620
19620
|
title: "Heading 1"
|
|
19621
19621
|
}, {
|
|
19622
19622
|
icon: A(() => [
|
|
19623
|
-
z(
|
|
19623
|
+
z(L(Xu), { size: 16 })
|
|
19624
19624
|
]),
|
|
19625
19625
|
_: 1
|
|
19626
19626
|
}, 8, ["color", "disabled"]),
|
|
19627
19627
|
z(re, {
|
|
19628
|
-
color:
|
|
19628
|
+
color: L(b)?.isActive("heading", { level: 2 }) ? "primary" : "secondary",
|
|
19629
19629
|
size: "sm",
|
|
19630
19630
|
icon: "",
|
|
19631
19631
|
squircle: "",
|
|
19632
|
-
onClick: w[5] || (w[5] = (x) =>
|
|
19632
|
+
onClick: w[5] || (w[5] = (x) => L(b)?.chain().focus().toggleHeading({ level: 2 }).run()),
|
|
19633
19633
|
disabled: n.disabled,
|
|
19634
19634
|
title: "Heading 2"
|
|
19635
19635
|
}, {
|
|
19636
19636
|
icon: A(() => [
|
|
19637
|
-
z(
|
|
19637
|
+
z(L(Zu), { size: 16 })
|
|
19638
19638
|
]),
|
|
19639
19639
|
_: 1
|
|
19640
19640
|
}, 8, ["color", "disabled"]),
|
|
19641
19641
|
z(re, {
|
|
19642
|
-
color:
|
|
19642
|
+
color: L(b)?.isActive("heading", { level: 3 }) ? "primary" : "secondary",
|
|
19643
19643
|
size: "sm",
|
|
19644
19644
|
icon: "",
|
|
19645
19645
|
squircle: "",
|
|
19646
|
-
onClick: w[6] || (w[6] = (x) =>
|
|
19646
|
+
onClick: w[6] || (w[6] = (x) => L(b)?.chain().focus().toggleHeading({ level: 3 }).run()),
|
|
19647
19647
|
disabled: n.disabled,
|
|
19648
19648
|
title: "Heading 3"
|
|
19649
19649
|
}, {
|
|
19650
19650
|
icon: A(() => [
|
|
19651
|
-
z(
|
|
19651
|
+
z(L(_u), { size: 16 })
|
|
19652
19652
|
]),
|
|
19653
19653
|
_: 1
|
|
19654
19654
|
}, 8, ["color", "disabled"])
|
|
@@ -19660,44 +19660,44 @@ const zb = { class: "input-richtext-toolbar" }, Bb = { class: "input-richtext-gr
|
|
|
19660
19660
|
}),
|
|
19661
19661
|
$("div", Fb, [
|
|
19662
19662
|
z(re, {
|
|
19663
|
-
color:
|
|
19663
|
+
color: L(b)?.isActive({ textAlign: "left" }) ? "primary" : "secondary",
|
|
19664
19664
|
size: "sm",
|
|
19665
19665
|
icon: "",
|
|
19666
19666
|
squircle: "",
|
|
19667
|
-
onClick: w[7] || (w[7] = (x) =>
|
|
19667
|
+
onClick: w[7] || (w[7] = (x) => L(b)?.chain().focus().setTextAlign("left").run()),
|
|
19668
19668
|
disabled: n.disabled,
|
|
19669
19669
|
title: "Align Left"
|
|
19670
19670
|
}, {
|
|
19671
19671
|
icon: A(() => [
|
|
19672
|
-
z(
|
|
19672
|
+
z(L(Bu), { size: 16 })
|
|
19673
19673
|
]),
|
|
19674
19674
|
_: 1
|
|
19675
19675
|
}, 8, ["color", "disabled"]),
|
|
19676
19676
|
z(re, {
|
|
19677
|
-
color:
|
|
19677
|
+
color: L(b)?.isActive({ textAlign: "center" }) ? "primary" : "secondary",
|
|
19678
19678
|
size: "sm",
|
|
19679
19679
|
icon: "",
|
|
19680
19680
|
squircle: "",
|
|
19681
|
-
onClick: w[8] || (w[8] = (x) =>
|
|
19681
|
+
onClick: w[8] || (w[8] = (x) => L(b)?.chain().focus().setTextAlign("center").run()),
|
|
19682
19682
|
disabled: n.disabled,
|
|
19683
19683
|
title: "Align Center"
|
|
19684
19684
|
}, {
|
|
19685
19685
|
icon: A(() => [
|
|
19686
|
-
z(
|
|
19686
|
+
z(L(zu), { size: 16 })
|
|
19687
19687
|
]),
|
|
19688
19688
|
_: 1
|
|
19689
19689
|
}, 8, ["color", "disabled"]),
|
|
19690
19690
|
z(re, {
|
|
19691
|
-
color:
|
|
19691
|
+
color: L(b)?.isActive({ textAlign: "right" }) ? "primary" : "secondary",
|
|
19692
19692
|
size: "sm",
|
|
19693
19693
|
icon: "",
|
|
19694
19694
|
squircle: "",
|
|
19695
|
-
onClick: w[9] || (w[9] = (x) =>
|
|
19695
|
+
onClick: w[9] || (w[9] = (x) => L(b)?.chain().focus().setTextAlign("right").run()),
|
|
19696
19696
|
disabled: n.disabled,
|
|
19697
19697
|
title: "Align Right"
|
|
19698
19698
|
}, {
|
|
19699
19699
|
icon: A(() => [
|
|
19700
|
-
z(
|
|
19700
|
+
z(L(Vu), { size: 16 })
|
|
19701
19701
|
]),
|
|
19702
19702
|
_: 1
|
|
19703
19703
|
}, 8, ["color", "disabled"])
|
|
@@ -19709,58 +19709,58 @@ const zb = { class: "input-richtext-toolbar" }, Bb = { class: "input-richtext-gr
|
|
|
19709
19709
|
}),
|
|
19710
19710
|
$("div", Hb, [
|
|
19711
19711
|
z(re, {
|
|
19712
|
-
color:
|
|
19712
|
+
color: L(b)?.isActive("bulletList") ? "primary" : "secondary",
|
|
19713
19713
|
size: "sm",
|
|
19714
19714
|
icon: "",
|
|
19715
19715
|
squircle: "",
|
|
19716
|
-
onClick: w[10] || (w[10] = (x) =>
|
|
19716
|
+
onClick: w[10] || (w[10] = (x) => L(b)?.chain().focus().toggleBulletList().run()),
|
|
19717
19717
|
disabled: n.disabled,
|
|
19718
19718
|
title: "Bullet List"
|
|
19719
19719
|
}, {
|
|
19720
19720
|
icon: A(() => [
|
|
19721
|
-
z(
|
|
19721
|
+
z(L(nf), { size: 16 })
|
|
19722
19722
|
]),
|
|
19723
19723
|
_: 1
|
|
19724
19724
|
}, 8, ["color", "disabled"]),
|
|
19725
19725
|
z(re, {
|
|
19726
|
-
color:
|
|
19726
|
+
color: L(b)?.isActive("orderedList") ? "primary" : "secondary",
|
|
19727
19727
|
size: "sm",
|
|
19728
19728
|
icon: "",
|
|
19729
19729
|
squircle: "",
|
|
19730
|
-
onClick: w[11] || (w[11] = (x) =>
|
|
19730
|
+
onClick: w[11] || (w[11] = (x) => L(b)?.chain().focus().toggleOrderedList().run()),
|
|
19731
19731
|
disabled: n.disabled,
|
|
19732
19732
|
title: "Numbered List"
|
|
19733
19733
|
}, {
|
|
19734
19734
|
icon: A(() => [
|
|
19735
|
-
z(
|
|
19735
|
+
z(L(tf), { size: 16 })
|
|
19736
19736
|
]),
|
|
19737
19737
|
_: 1
|
|
19738
19738
|
}, 8, ["color", "disabled"]),
|
|
19739
19739
|
z(re, {
|
|
19740
|
-
color:
|
|
19740
|
+
color: L(b)?.isActive("blockquote") ? "primary" : "secondary",
|
|
19741
19741
|
size: "sm",
|
|
19742
19742
|
icon: "",
|
|
19743
19743
|
squircle: "",
|
|
19744
|
-
onClick: w[12] || (w[12] = (x) =>
|
|
19744
|
+
onClick: w[12] || (w[12] = (x) => L(b)?.chain().focus().toggleBlockquote().run()),
|
|
19745
19745
|
disabled: n.disabled,
|
|
19746
19746
|
title: "Quote"
|
|
19747
19747
|
}, {
|
|
19748
19748
|
icon: A(() => [
|
|
19749
|
-
z(
|
|
19749
|
+
z(L(sf), { size: 16 })
|
|
19750
19750
|
]),
|
|
19751
19751
|
_: 1
|
|
19752
19752
|
}, 8, ["color", "disabled"]),
|
|
19753
19753
|
z(re, {
|
|
19754
|
-
color:
|
|
19754
|
+
color: L(b)?.isActive("codeBlock") ? "primary" : "secondary",
|
|
19755
19755
|
size: "sm",
|
|
19756
19756
|
icon: "",
|
|
19757
19757
|
squircle: "",
|
|
19758
|
-
onClick: w[13] || (w[13] = (x) =>
|
|
19758
|
+
onClick: w[13] || (w[13] = (x) => L(b)?.chain().focus().toggleCodeBlock().run()),
|
|
19759
19759
|
disabled: n.disabled,
|
|
19760
19760
|
title: "Code Block"
|
|
19761
19761
|
}, {
|
|
19762
19762
|
icon: A(() => [
|
|
19763
|
-
z(
|
|
19763
|
+
z(L(Ju), { size: 16 })
|
|
19764
19764
|
]),
|
|
19765
19765
|
_: 1
|
|
19766
19766
|
}, 8, ["color", "disabled"])
|
|
@@ -19776,12 +19776,12 @@ const zb = { class: "input-richtext-toolbar" }, Bb = { class: "input-richtext-gr
|
|
|
19776
19776
|
size: "sm",
|
|
19777
19777
|
icon: "",
|
|
19778
19778
|
squircle: "",
|
|
19779
|
-
onClick: w[14] || (w[14] = (x) =>
|
|
19779
|
+
onClick: w[14] || (w[14] = (x) => L(b)?.chain().focus().setHorizontalRule().run()),
|
|
19780
19780
|
disabled: n.disabled,
|
|
19781
19781
|
title: "Horizontal Rule"
|
|
19782
19782
|
}, {
|
|
19783
19783
|
icon: A(() => [
|
|
19784
|
-
z(
|
|
19784
|
+
z(L(rf), { size: 16 })
|
|
19785
19785
|
]),
|
|
19786
19786
|
_: 1
|
|
19787
19787
|
}, 8, ["disabled"]),
|
|
@@ -19790,12 +19790,12 @@ const zb = { class: "input-richtext-toolbar" }, Bb = { class: "input-richtext-gr
|
|
|
19790
19790
|
size: "sm",
|
|
19791
19791
|
icon: "",
|
|
19792
19792
|
squircle: "",
|
|
19793
|
-
disabled: !
|
|
19794
|
-
onClick: w[15] || (w[15] = (x) =>
|
|
19793
|
+
disabled: !L(b)?.can().undo() || n.disabled,
|
|
19794
|
+
onClick: w[15] || (w[15] = (x) => L(b)?.chain().focus().undo().run()),
|
|
19795
19795
|
title: "Undo (Ctrl+Z)"
|
|
19796
19796
|
}, {
|
|
19797
19797
|
icon: A(() => [
|
|
19798
|
-
z(
|
|
19798
|
+
z(L(df), { size: 16 })
|
|
19799
19799
|
]),
|
|
19800
19800
|
_: 1
|
|
19801
19801
|
}, 8, ["disabled"]),
|
|
@@ -19804,12 +19804,12 @@ const zb = { class: "input-richtext-toolbar" }, Bb = { class: "input-richtext-gr
|
|
|
19804
19804
|
size: "sm",
|
|
19805
19805
|
icon: "",
|
|
19806
19806
|
squircle: "",
|
|
19807
|
-
disabled: !
|
|
19808
|
-
onClick: w[16] || (w[16] = (x) =>
|
|
19807
|
+
disabled: !L(b)?.can().redo() || n.disabled,
|
|
19808
|
+
onClick: w[16] || (w[16] = (x) => L(b)?.chain().focus().redo().run()),
|
|
19809
19809
|
title: "Redo (Ctrl+Y)"
|
|
19810
19810
|
}, {
|
|
19811
19811
|
icon: A(() => [
|
|
19812
|
-
z(
|
|
19812
|
+
z(L(of), { size: 16 })
|
|
19813
19813
|
]),
|
|
19814
19814
|
_: 1
|
|
19815
19815
|
}, 8, ["disabled"])
|
|
@@ -19859,7 +19859,7 @@ const zb = { class: "input-richtext-toolbar" }, Bb = { class: "input-richtext-gr
|
|
|
19859
19859
|
class: Q({ "input-richtext-dropdown-open": a.value === M })
|
|
19860
19860
|
}, je({
|
|
19861
19861
|
"trailing-icon": A(() => [
|
|
19862
|
-
z(
|
|
19862
|
+
z(L($s), {
|
|
19863
19863
|
size: 14,
|
|
19864
19864
|
class: "input-richtext-dropdown-arrow"
|
|
19865
19865
|
})
|
|
@@ -19888,7 +19888,7 @@ const zb = { class: "input-richtext-toolbar" }, Bb = { class: "input-richtext-gr
|
|
|
19888
19888
|
ref_key: "dropdownRef",
|
|
19889
19889
|
ref: d,
|
|
19890
19890
|
class: "input-richtext-dropdown",
|
|
19891
|
-
style: Ne(
|
|
19891
|
+
style: Ne(L(u))
|
|
19892
19892
|
}, [
|
|
19893
19893
|
(C(!0), E(be, null, Ge(n.customControls[a.value].list, (x, M) => (C(), E("button", {
|
|
19894
19894
|
key: M,
|
|
@@ -19906,8 +19906,8 @@ const zb = { class: "input-richtext-toolbar" }, Bb = { class: "input-richtext-gr
|
|
|
19906
19906
|
], 4)) : W("", !0)
|
|
19907
19907
|
])),
|
|
19908
19908
|
$("div", Yb, [
|
|
19909
|
-
z(
|
|
19910
|
-
editor:
|
|
19909
|
+
z(L(Q0), {
|
|
19910
|
+
editor: L(b),
|
|
19911
19911
|
class: "input-richtext-editor",
|
|
19912
19912
|
id: n.inputId
|
|
19913
19913
|
}, null, 8, ["editor", "id"])
|
|
@@ -19956,12 +19956,12 @@ const zb = { class: "input-richtext-toolbar" }, Bb = { class: "input-richtext-gr
|
|
|
19956
19956
|
},
|
|
19957
19957
|
emits: ["update:modelValue", "blur", "focus", "complete"],
|
|
19958
19958
|
setup(n, { emit: e }) {
|
|
19959
|
-
const t = n, r = e, i = _([]), s = _(-1), o =
|
|
19959
|
+
const t = n, r = e, i = _([]), s = _(-1), o = R(() => {
|
|
19960
19960
|
const v = (t.modelValue || "").split("");
|
|
19961
19961
|
for (; v.length < t.maxLength; )
|
|
19962
19962
|
v.push("");
|
|
19963
19963
|
return v.slice(0, t.maxLength);
|
|
19964
|
-
}), l =
|
|
19964
|
+
}), l = R(() => t.divider ? typeof t.divider == "number" ? t.divider : t.divider.count : 0), a = R(() => t.divider ? typeof t.divider == "number" ? "-" : typeof t.divider == "object" && "character" in t.divider && t.divider.character || "-" : ""), c = R(() => typeof t.divider == "object" && "component" in t.divider && t.divider.component === "divider"), d = R(() => c.value ? {
|
|
19965
19965
|
orientation: "vertical",
|
|
19966
19966
|
variant: "solid",
|
|
19967
19967
|
thickness: "1px",
|
|
@@ -20150,13 +20150,13 @@ const ok = ["for"], lk = {
|
|
|
20150
20150
|
},
|
|
20151
20151
|
emits: ["update:modelValue", "input", "change", "blur", "focus", "keydown", "file-error", "clear-preview", "complete"],
|
|
20152
20152
|
setup(n, { emit: e }) {
|
|
20153
|
-
const t = n, r = e, i = xn(), s = _(""), o =
|
|
20153
|
+
const t = n, r = e, i = xn(), s = _(""), o = R(() => t.modelValue !== void 0 ? t.modelValue : t.value !== void 0 ? t.value : s.value);
|
|
20154
20154
|
ht(() => t.value, (y) => {
|
|
20155
20155
|
y !== void 0 && (s.value = y);
|
|
20156
20156
|
}, { immediate: !0 }), ht(() => t.modelValue, (y) => {
|
|
20157
20157
|
y !== void 0 && (s.value = y);
|
|
20158
20158
|
}, { immediate: !0 });
|
|
20159
|
-
const l =
|
|
20159
|
+
const l = R(() => `input-${Math.random().toString(36).substring(2, 11)}`), a = (y) => sk(i, y), c = R(() => {
|
|
20160
20160
|
const y = ["text", "email", "password", "number", "tel", "url", "search"], S = t.type || "text";
|
|
20161
20161
|
return y.includes(S);
|
|
20162
20162
|
}), d = (y) => {
|
|
@@ -20478,7 +20478,7 @@ const ok = ["for"], lk = {
|
|
|
20478
20478
|
},
|
|
20479
20479
|
emits: ["click"],
|
|
20480
20480
|
setup(n, { emit: e }) {
|
|
20481
|
-
const t = n, r = e, i =
|
|
20481
|
+
const t = n, r = e, i = R(() => {
|
|
20482
20482
|
if (t.href)
|
|
20483
20483
|
return t.href;
|
|
20484
20484
|
if (t.to) {
|
|
@@ -20509,7 +20509,7 @@ const ok = ["for"], lk = {
|
|
|
20509
20509
|
}), l = (d) => {
|
|
20510
20510
|
const u = o();
|
|
20511
20511
|
return `color-mix(in srgb, ${u[d] || u.primary} 85%, black 15%)`;
|
|
20512
|
-
}, a =
|
|
20512
|
+
}, a = R(() => {
|
|
20513
20513
|
if (!t.color) return {};
|
|
20514
20514
|
const d = o(), u = d[t.color] || d.primary, f = l(t.color), h = {
|
|
20515
20515
|
"--link-color": u,
|