@wpic/ui 0.9.4 → 0.9.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/COMPONENTS.md +2 -0
- package/dist/components/WSelect.vue.d.ts +4 -0
- package/dist/wpic-ui.cjs +11 -11
- package/dist/wpic-ui.js +190 -185
- package/package.json +1 -1
package/dist/wpic-ui.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as X, openBlock as e, createBlock as K, resolveDynamicComponent as B1, normalizeClass as b, withCtx as r1, createElementVNode as i, createCommentVNode as h, renderSlot as Q, createElementBlock as t, createVNode as V, unref as v, Fragment as E, renderList as i1, toDisplayString as m, useModel as G1, useSlots as q2, computed as x, ref as
|
|
2
|
-
import { Loader2 as a2, Calendar as z0, DollarSign as i3, X as $1, Check as U1, Search as P2, ChevronUp as C0, ChevronDown as D1, ChevronsUpDown as J2, ChevronRight as j1, ChevronLeft as z2, Download as l3, Minimize as a3, Expand as o3, CalendarDays as T2, FolderSymlink as s3, Minimize2 as r3, Maximize2 as p3, Plus as y2, Trash2 as d3, Folder as w0, MoreHorizontal as w3, Bot as u3, Paperclip as O2, ThumbsUp as h3, ThumbsDown as v3, Copy as m3, Pencil as f3, MessageSquarePlus as b3, Square as g3, ArrowUp as z3, CircleAlert as C3, CircleCheck as k3, ShieldAlert as x3, Lightbulb as y3, PanelLeftOpen as M3, PanelLeftClose as V3, AlertTriangle as L3, Tag as
|
|
1
|
+
import { defineComponent as X, openBlock as e, createBlock as K, resolveDynamicComponent as B1, normalizeClass as b, withCtx as r1, createElementVNode as i, createCommentVNode as h, renderSlot as Q, createElementBlock as t, createVNode as V, unref as v, Fragment as E, renderList as i1, toDisplayString as m, useModel as G1, useSlots as q2, computed as x, ref as H, watch as M1, onBeforeUnmount as s2, mergeProps as X1, createTextVNode as v1, withDirectives as T1, normalizeStyle as h1, vModelDynamic as b0, mergeModels as _1, vModelCheckbox as J0, withModifiers as f1, onMounted as F2, withKeys as M2, inject as Q2, provide as g2, isRef as X0, nextTick as F1, Teleport as O1, vShow as G0, Transition as w2, getCurrentInstance as g0, vModelText as l2, useAttrs as _0, TransitionGroup as n3, useCssVars as e3, vModelSelect as c3, onUnmounted as t3, createStaticVNode as A1 } from "vue";
|
|
2
|
+
import { Loader2 as a2, Calendar as z0, DollarSign as i3, X as $1, Check as U1, Search as P2, ChevronUp as C0, ChevronDown as D1, ChevronsUpDown as J2, ChevronRight as j1, ChevronLeft as z2, Download as l3, Minimize as a3, Expand as o3, CalendarDays as T2, FolderSymlink as s3, Minimize2 as r3, Maximize2 as p3, Plus as y2, Trash2 as d3, Folder as w0, MoreHorizontal as w3, Bot as u3, Paperclip as O2, ThumbsUp as h3, ThumbsDown as v3, Copy as m3, Pencil as f3, MessageSquarePlus as b3, Square as g3, ArrowUp as z3, CircleAlert as C3, CircleCheck as k3, ShieldAlert as x3, Lightbulb as y3, PanelLeftOpen as M3, PanelLeftClose as V3, AlertTriangle as L3, Tag as H2, Clock as B3, RefreshCw as $3 } from "lucide-vue-next";
|
|
3
3
|
import { offset as u2, autoPlacement as A3, flip as h2, shift as v2, size as X2, useFloating as m2, autoUpdate as f2 } from "@floating-ui/vue";
|
|
4
4
|
import { defineStore as S3 } from "pinia";
|
|
5
|
-
const
|
|
5
|
+
const H3 = {
|
|
6
6
|
key: 0,
|
|
7
7
|
class: "wpic:absolute wpic:inset-0 wpic:flex wpic:items-center wpic:justify-center wpic:rounded-[inherit]",
|
|
8
8
|
"aria-hidden": "true"
|
|
@@ -58,7 +58,7 @@ const F3 = {
|
|
|
58
58
|
}, null, 8, ["size"])) : h("", !0),
|
|
59
59
|
Q(d.$slots, "default")
|
|
60
60
|
], 2),
|
|
61
|
-
n.loading ? (e(), t("span",
|
|
61
|
+
n.loading ? (e(), t("span", H3, [
|
|
62
62
|
V(v(a2), {
|
|
63
63
|
size: (c.size ?? "md") === "xs" ? 10 : (c.size ?? "md") === "sm" ? 13 : (c.size ?? "md") === "lg" ? 17 : 15,
|
|
64
64
|
class: "wpic:animate-spin"
|
|
@@ -68,10 +68,10 @@ const F3 = {
|
|
|
68
68
|
_: 3
|
|
69
69
|
}, 8, ["href", "disabled", "data-variant", "data-size", "data-active", "class"]));
|
|
70
70
|
}
|
|
71
|
-
}),
|
|
71
|
+
}), F3 = { class: "wpic-button-group wpic:inline-flex" }, P3 = /* @__PURE__ */ X({
|
|
72
72
|
__name: "WButtonGroup",
|
|
73
73
|
setup(n) {
|
|
74
|
-
return (w, c) => (e(), t("div",
|
|
74
|
+
return (w, c) => (e(), t("div", F3, [
|
|
75
75
|
Q(w.$slots, "default")
|
|
76
76
|
]));
|
|
77
77
|
}
|
|
@@ -139,7 +139,7 @@ const F3 = {
|
|
|
139
139
|
if (c.icon) return c.icon;
|
|
140
140
|
if (c.type === "date") return z0;
|
|
141
141
|
if (c.type === "money") return i3;
|
|
142
|
-
}), f = x(() => ({ sm: 12, md: 13, lg: 14, xl: 16 })[c.size ?? "md"]), k = x(() => c.type === "money" ? "number" : c.type ?? "text"), g =
|
|
142
|
+
}), f = x(() => ({ sm: 12, md: 13, lg: 14, xl: 16 })[c.size ?? "md"]), k = x(() => c.type === "money" ? "number" : c.type ?? "text"), g = H(), a = H(), T = H(0);
|
|
143
143
|
let S;
|
|
144
144
|
M1(a, (B) => {
|
|
145
145
|
S?.disconnect(), T.value = B?.getBoundingClientRect().width ?? 0, B && (S = new ResizeObserver(() => {
|
|
@@ -351,15 +351,15 @@ const F3 = {
|
|
|
351
351
|
},
|
|
352
352
|
emits: ["row-click", "update:selectedKeys", "row-select", "update:serverPage"],
|
|
353
353
|
setup(n, { expose: w, emit: c }) {
|
|
354
|
-
const o = n, d = c, l =
|
|
354
|
+
const o = n, d = c, l = H(/* @__PURE__ */ new Set());
|
|
355
355
|
function s(j) {
|
|
356
356
|
l.value.has(j) ? l.value.delete(j) : l.value.add(j);
|
|
357
357
|
}
|
|
358
|
-
const f = q2(), k = x(() => o.pageSize ?? 25), g =
|
|
358
|
+
const f = q2(), k = x(() => o.pageSize ?? 25), g = H(null), a = H("asc");
|
|
359
359
|
function T(j) {
|
|
360
360
|
g.value === j ? a.value = a.value === "asc" ? "desc" : "asc" : (g.value = j, a.value = "asc");
|
|
361
361
|
}
|
|
362
|
-
const S =
|
|
362
|
+
const S = H(""), D = x(() => o.columns.some((j) => j.searchable)), B = x(() => {
|
|
363
363
|
let j = o.data ?? [];
|
|
364
364
|
const d1 = S.value.trim().toLowerCase();
|
|
365
365
|
if (d1) {
|
|
@@ -374,7 +374,7 @@ const F3 = {
|
|
|
374
374
|
});
|
|
375
375
|
}
|
|
376
376
|
return j;
|
|
377
|
-
}), y =
|
|
377
|
+
}), y = H(1), z = x(() => o.serverTotal !== void 0), Z = x({
|
|
378
378
|
get: () => z.value ? o.serverPage ?? 1 : y.value,
|
|
379
379
|
set: (j) => {
|
|
380
380
|
z.value ? d("update:serverPage", j) : y.value = j;
|
|
@@ -395,7 +395,7 @@ const F3 = {
|
|
|
395
395
|
const P = x(() => new Set(o.selectedKeys ?? [])), O = x(() => q.value.map(e1)), I = x(
|
|
396
396
|
() => o.selectable && O.value.length > 0 && O.value.every((j) => P.value.has(j))
|
|
397
397
|
);
|
|
398
|
-
function
|
|
398
|
+
function F(j, d1, L) {
|
|
399
399
|
const R = e1(j, d1), t1 = new Set(o.selectedKeys ?? []), m1 = L === !0;
|
|
400
400
|
m1 ? t1.add(R) : t1.delete(R), d("update:selectedKeys", [...t1]), d("row-select", j, m1);
|
|
401
401
|
}
|
|
@@ -545,7 +545,7 @@ const F3 = {
|
|
|
545
545
|
}, [
|
|
546
546
|
V(u0, {
|
|
547
547
|
"model-value": P.value.has(e1(L, R)),
|
|
548
|
-
"onUpdate:modelValue": (t1) =>
|
|
548
|
+
"onUpdate:modelValue": (t1) => F(L, R, t1)
|
|
549
549
|
}, null, 8, ["model-value", "onUpdate:modelValue"])
|
|
550
550
|
], 2)) : h("", !0),
|
|
551
551
|
n.expandable ? (e(), t("td", {
|
|
@@ -690,7 +690,7 @@ const F3 = {
|
|
|
690
690
|
},
|
|
691
691
|
emits: ["update:expanded", "cell-change"],
|
|
692
692
|
setup(n, { expose: w, emit: c }) {
|
|
693
|
-
const o = n, d = c, l = x(() => o.showAxes && o.showColumnLetters), s = x(() => o.showAxes && o.showRowNumbers), f = x(() => o.columns.some((A) => A.sticky)), k =
|
|
693
|
+
const o = n, d = c, l = x(() => o.showAxes && o.showColumnLetters), s = x(() => o.showAxes && o.showRowNumbers), f = x(() => o.columns.some((A) => A.sticky)), k = H(null), g = H("asc"), a = H(o.expanded ?? !1), T = H(null), S = H(null), D = H(null), B = H(null), y = H(null);
|
|
694
694
|
function z() {
|
|
695
695
|
if (!o.downloadable) return;
|
|
696
696
|
const A = (W) => `"${String(W ?? "").replace(/"/g, '""')}"`, U = P.value.map((W) => o.columns.map((Y) => A(q(W, Y.key))).join(",")).join(`\r
|
|
@@ -729,7 +729,7 @@ const F3 = {
|
|
|
729
729
|
const w1 = document.activeElement;
|
|
730
730
|
w1 && T.value?.contains(w1) && w1.blur();
|
|
731
731
|
}
|
|
732
|
-
|
|
732
|
+
F2(() => {
|
|
733
733
|
document.addEventListener("keydown", o1), document.addEventListener("pointerdown", b1);
|
|
734
734
|
}), s2(() => {
|
|
735
735
|
document.removeEventListener("keydown", o1), document.removeEventListener("pointerdown", b1), window.removeEventListener("pointerup", R);
|
|
@@ -759,18 +759,18 @@ const F3 = {
|
|
|
759
759
|
function I(A) {
|
|
760
760
|
O(A) && (k.value === A.key ? g.value = g.value === "asc" ? "desc" : "asc" : (k.value = A.key, g.value = "asc"));
|
|
761
761
|
}
|
|
762
|
-
function
|
|
762
|
+
function F(A, U) {
|
|
763
763
|
return A.cells.slice(0, U).reduce((N, w1) => N + (w1.colspan || 1), 0);
|
|
764
764
|
}
|
|
765
765
|
function c1(A, U) {
|
|
766
|
-
return !!o.columns[
|
|
766
|
+
return !!o.columns[F(A, U)]?.sticky;
|
|
767
767
|
}
|
|
768
768
|
function l1(A, U) {
|
|
769
|
-
const N =
|
|
769
|
+
const N = F(A, U);
|
|
770
770
|
return !!(o.columns[N]?.sticky && !o.columns.slice(0, N).some((w1) => w1.sticky));
|
|
771
771
|
}
|
|
772
772
|
function y1(A, U) {
|
|
773
|
-
const N =
|
|
773
|
+
const N = F(A, U);
|
|
774
774
|
if (!o.columns[N]?.sticky) return;
|
|
775
775
|
const w1 = o.columns.slice(0, N).map((s1) => s1.width || "0px");
|
|
776
776
|
return { left: w1.length ? `calc(${w1.join(" + ")})` : "0px" };
|
|
@@ -1028,7 +1028,7 @@ const h0 = /* @__PURE__ */ Y1(B5, [["render", A5]]), S5 = ["disabled"], d2 = /*
|
|
|
1028
1028
|
Q(o.$slots, "default")
|
|
1029
1029
|
], 10, S5));
|
|
1030
1030
|
}
|
|
1031
|
-
}),
|
|
1031
|
+
}), H5 = {
|
|
1032
1032
|
light: {
|
|
1033
1033
|
trendPositive: "#15803D",
|
|
1034
1034
|
trendNegative: "#DB2777",
|
|
@@ -1093,8 +1093,8 @@ const h0 = /* @__PURE__ */ Y1(B5, [["render", A5]]), S5 = ["disabled"], d2 = /*
|
|
|
1093
1093
|
light: ["#3B73E1", "#0891A6", "#8B5CD6", "#C58A16", "#D64D79", "#527FA8"],
|
|
1094
1094
|
dark: ["#7C9FE0", "#5FB8C4", "#AF94D5", "#D8B26A", "#D88FA5", "#94A8BD"]
|
|
1095
1095
|
};
|
|
1096
|
-
function
|
|
1097
|
-
const c = { ...
|
|
1096
|
+
function F5(n, w = {}) {
|
|
1097
|
+
const c = { ...H5[n], ...w }, o = {};
|
|
1098
1098
|
for (const [d, l] of Object.entries(c))
|
|
1099
1099
|
o[`--wpic-${d.replace(/[A-Z]/g, (s) => `-${s.toLowerCase()}`)}`] = l;
|
|
1100
1100
|
Object.assign(o, {
|
|
@@ -1150,19 +1150,19 @@ const P5 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
|
|
|
1150
1150
|
setup(n, { emit: w }) {
|
|
1151
1151
|
const c = n, o = V2(), d = w, l = /* @__PURE__ */ Symbol.for("wpic-ui-popover-descendants"), s = Q2(l, null), f = /* @__PURE__ */ new Set();
|
|
1152
1152
|
g2(l, {
|
|
1153
|
-
add(
|
|
1154
|
-
f.add(
|
|
1153
|
+
add(F) {
|
|
1154
|
+
f.add(F), s?.add(F);
|
|
1155
1155
|
},
|
|
1156
|
-
remove(
|
|
1157
|
-
f.delete(
|
|
1156
|
+
remove(F) {
|
|
1157
|
+
f.delete(F), s?.remove(F);
|
|
1158
1158
|
}
|
|
1159
1159
|
});
|
|
1160
1160
|
const k = x(() => {
|
|
1161
|
-
const
|
|
1162
|
-
return
|
|
1163
|
-
}), g =
|
|
1164
|
-
const
|
|
1165
|
-
return a.value || (c.autoPlacement ?
|
|
1161
|
+
const F = c.anchor;
|
|
1162
|
+
return F ? X0(F) ? F.value : F : null;
|
|
1163
|
+
}), g = H(null), a = H(null), T = x(() => a.value ?? c.placement ?? "bottom-start"), S = x(() => {
|
|
1164
|
+
const F = [u2(c.offset ?? 6)];
|
|
1165
|
+
return a.value || (c.autoPlacement ? F.push(A3({ alignment: "start" })) : c.flip && F.push(h2({ crossAxis: !c.shiftCrossAxis }))), F.push(v2({ padding: c.autoPlacement ? 8 : 4, crossAxis: c.autoPlacement || c.shiftCrossAxis })), F.push(
|
|
1166
1166
|
X2({
|
|
1167
1167
|
padding: 8,
|
|
1168
1168
|
apply({ availableHeight: c1, rects: l1, elements: y1 }) {
|
|
@@ -1174,7 +1174,7 @@ const P5 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
|
|
|
1174
1174
|
Object.assign(y1.floating.style, G);
|
|
1175
1175
|
}
|
|
1176
1176
|
})
|
|
1177
|
-
),
|
|
1177
|
+
), F;
|
|
1178
1178
|
}), { floatingStyles: D, placement: B, update: y, isPositioned: z } = m2(k, g, {
|
|
1179
1179
|
placement: T,
|
|
1180
1180
|
strategy: "fixed",
|
|
@@ -1182,14 +1182,14 @@ const P5 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
|
|
|
1182
1182
|
whileElementsMounted: f2,
|
|
1183
1183
|
middleware: S
|
|
1184
1184
|
}), Z = x(() => {
|
|
1185
|
-
const
|
|
1186
|
-
return
|
|
1187
|
-
}), o1 = (
|
|
1188
|
-
const c1 =
|
|
1185
|
+
const F = B.value;
|
|
1186
|
+
return F.startsWith("top") ? "bottom" : F.startsWith("bottom") ? "top" : F.startsWith("left") ? "right" : F.startsWith("right") ? "left" : "top";
|
|
1187
|
+
}), o1 = (F) => {
|
|
1188
|
+
const c1 = F.target, l1 = k.value, y1 = g.value;
|
|
1189
1189
|
y1 && y1.contains(c1) || [...f].some((J) => J.contains(c1)) || l1 && l1.contains(c1) || c.extraPanels?.some((J) => J?.contains(c1)) || d("close");
|
|
1190
|
-
}, b1 = (
|
|
1191
|
-
if (
|
|
1192
|
-
|
|
1190
|
+
}, b1 = (F) => {
|
|
1191
|
+
if (F.key !== "Escape" || !c.open || [...f].some((l1) => l1.isConnected && l1.style.display !== "none")) return;
|
|
1192
|
+
F.preventDefault(), F.stopImmediatePropagation(), d("close");
|
|
1193
1193
|
const c1 = k.value;
|
|
1194
1194
|
c1?.matches("button, input, [tabindex]") ? c1.focus() : c1?.querySelector("button, input, [tabindex]")?.focus();
|
|
1195
1195
|
};
|
|
@@ -1200,14 +1200,14 @@ const P5 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
|
|
|
1200
1200
|
function O() {
|
|
1201
1201
|
e1 && (document.removeEventListener("pointerdown", o1, !0), document.removeEventListener("keydown", b1, !0), e1 = !1);
|
|
1202
1202
|
}
|
|
1203
|
-
M1(() => c.open, (
|
|
1204
|
-
|
|
1203
|
+
M1(() => c.open, (F) => {
|
|
1204
|
+
F ? F1(() => {
|
|
1205
1205
|
q || !c.open || (c.autoPlacement && g.value && (g.value.style.maxHeight = ""), y(), P());
|
|
1206
1206
|
}) : (a.value = null, O());
|
|
1207
|
-
}, { immediate: !0 }), M1(g, (
|
|
1208
|
-
c1 && s?.remove(c1),
|
|
1209
|
-
}), M1(z, (
|
|
1210
|
-
|
|
1207
|
+
}, { immediate: !0 }), M1(g, (F, c1) => {
|
|
1208
|
+
c1 && s?.remove(c1), F && s?.add(F);
|
|
1209
|
+
}), M1(z, (F) => {
|
|
1210
|
+
F && c.open && c.freezePositionOnOpen && !a.value && (a.value = B.value);
|
|
1211
1211
|
}), s2(() => {
|
|
1212
1212
|
q = !0, O(), g.value && s?.remove(g.value);
|
|
1213
1213
|
});
|
|
@@ -1220,7 +1220,7 @@ const P5 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
|
|
|
1220
1220
|
transformOrigin: Z.value,
|
|
1221
1221
|
zIndex: c.zIndex
|
|
1222
1222
|
}));
|
|
1223
|
-
return (
|
|
1223
|
+
return (F, c1) => (e(), K(O1, {
|
|
1224
1224
|
to: "body",
|
|
1225
1225
|
class: "wpic-popover"
|
|
1226
1226
|
}, [
|
|
@@ -1231,7 +1231,7 @@ const P5 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
|
|
|
1231
1231
|
class: b([{ "wpic-theme": v(o), dark: v(o)?.mode === "dark" }, "wpic-popover-panel wpic:flex wpic:flex-col wpic:bg-white wpic:dark:bg-zinc-900 wpic:border wpic:border-zinc-200 wpic:dark:border-zinc-800 wpic:rounded-xl wpic:shadow-xl wpic:dark:shadow-black/40 wpic:overflow-hidden"]),
|
|
1232
1232
|
style: h1([v(o)?.variables, v(D), I.value])
|
|
1233
1233
|
}, [
|
|
1234
|
-
Q(
|
|
1234
|
+
Q(F.$slots, "default")
|
|
1235
1235
|
], 14, P5), [
|
|
1236
1236
|
[G0, n.open]
|
|
1237
1237
|
])
|
|
@@ -1267,7 +1267,7 @@ const P5 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
|
|
|
1267
1267
|
}, A4 = {
|
|
1268
1268
|
key: 2,
|
|
1269
1269
|
class: "wpic:space-y-4"
|
|
1270
|
-
}, S4 = { class: "wpic:max-w-[82%]" },
|
|
1270
|
+
}, S4 = { class: "wpic:max-w-[82%]" }, H4 = ["src", "alt"], F4 = { class: "wpic:max-w-40 wpic:truncate" }, P4 = {
|
|
1271
1271
|
key: 0,
|
|
1272
1272
|
class: "wpic:shrink-0 wpic:text-zinc-400"
|
|
1273
1273
|
}, T4 = {
|
|
@@ -1362,18 +1362,18 @@ const P5 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
|
|
|
1362
1362
|
},
|
|
1363
1363
|
emits: ["close", "send", "clear", "new", "new-project", "new-conversation", "select-project", "select-session", "rename-project", "rename-session", "delete-project", "delete-session", "move-session", "edit-message", "new-chat-from-message", "message-feedback", "apply-message-proposal", "navigate", "cancel", "attach", "files-selected", "remove-attachment", "update:modelValue", "update:docked", "update:maximized", "update:width", "update:height", "update:x", "update:y"],
|
|
1364
1364
|
setup(n, { emit: w }) {
|
|
1365
|
-
const c = n, o = w, d = q2(), l =
|
|
1365
|
+
const c = n, o = w, d = q2(), l = H(null), s = H(null), f = H(null), k = H(null), g = H(null), a = H(null), T = H(0), S = H(0), D = H(!1), B = H(null), y = H(null);
|
|
1366
1366
|
let z = null;
|
|
1367
|
-
const Z =
|
|
1368
|
-
|
|
1369
|
-
const q =
|
|
1370
|
-
let I = null,
|
|
1367
|
+
const Z = H(!1), o1 = H(!1), b1 = H(!1);
|
|
1368
|
+
H(/* @__PURE__ */ new Set());
|
|
1369
|
+
const q = H(null), e1 = H(null), P = H({}), O = H(null);
|
|
1370
|
+
let I = null, F = null;
|
|
1371
1371
|
function c1() {
|
|
1372
|
-
|
|
1372
|
+
F?.disconnect(), F = null;
|
|
1373
1373
|
const r = s.value, p = g.value;
|
|
1374
1374
|
if (!r || !p || typeof ResizeObserver > "u") return;
|
|
1375
1375
|
const u = () => p.style.setProperty("--wpic-chat-footer-height", `${r.getBoundingClientRect().height}px`);
|
|
1376
|
-
u(),
|
|
1376
|
+
u(), F = new ResizeObserver(u), F.observe(r);
|
|
1377
1377
|
}
|
|
1378
1378
|
const l1 = x(() => O.value ? [] : c.messages.filter((r) => r.role !== "system")), y1 = x(() => c.loading || O.value !== null), J = x(() => c.modelValue.trim().length > 0 && !c.loading), p1 = x(() => c.attachments.length > 0), G = x(() => {
|
|
1379
1379
|
const r = c.modelValue.slice(0, S.value), p = r.match(/(?:^|\s)@([^\s@]*)$/);
|
|
@@ -1700,7 +1700,7 @@ const P5 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
|
|
|
1700
1700
|
function c0(r) {
|
|
1701
1701
|
return /(current settings|current model|currently|réglages? actuels?|paramètres? actuels?|mod[eè]le actuel)/i.test(r);
|
|
1702
1702
|
}
|
|
1703
|
-
function
|
|
1703
|
+
function H0(r, p, u) {
|
|
1704
1704
|
let M = p;
|
|
1705
1705
|
for (const C of E2(u)) {
|
|
1706
1706
|
if (C.type === "apply_prompt" && N(u.content)) continue;
|
|
@@ -1711,8 +1711,8 @@ const P5 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
|
|
|
1711
1711
|
}
|
|
1712
1712
|
return M;
|
|
1713
1713
|
}
|
|
1714
|
-
function
|
|
1715
|
-
const M =
|
|
1714
|
+
function F0(r, p, u) {
|
|
1715
|
+
const M = H0(r, p, u);
|
|
1716
1716
|
if (M !== p) return M;
|
|
1717
1717
|
const C = Q1(u), $ = m1(r);
|
|
1718
1718
|
if (!C && !$.length) return p;
|
|
@@ -1739,7 +1739,7 @@ const P5 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
|
|
|
1739
1739
|
function k2(r, p) {
|
|
1740
1740
|
const u = q1(r);
|
|
1741
1741
|
let M = I1(u);
|
|
1742
|
-
return p?.role === "assistant" && !p.streaming && !p.error && (M =
|
|
1742
|
+
return p?.role === "assistant" && !p.streaming && !p.error && (M = F0(u, M, p)), M = M.replace(/`([^`]+)`/g, "<code>$1</code>").replace(/\*\*([^*]+)\*\*/g, "<strong>$1</strong>").replace(/__([^_]+)__/g, "<strong>$1</strong>").replace(/\*([^*]+)\*/g, "<em>$1</em>").replace(/_([^_]+)_/g, "<em>$1</em>").replace(/\[([^\]]+)\]\(((?:https?:\/\/|\/(?!\/))[^)\s]+)\)/g, (C, $, n1) => {
|
|
1743
1743
|
const u1 = /^https?:\/\//.test(n1) ? ' target="_blank" rel="noopener noreferrer"' : "";
|
|
1744
1744
|
return `<a href="${n1}"${u1}>${$}</a>`;
|
|
1745
1745
|
}).replace(/\b([A-ZÀ-ÖØ-Þ][\p{L}\p{N} _-]{1,40})\s+\(((?:\/(?!\/)[A-Za-z0-9._~:/?#[\]@!$&'*+,;=%-]+))\)/gu, (C, $, n1) => `<a href="${n1}">${$.trim()}</a>`).replace(/(^|[\s(])((?:\/(?!\/)[A-Za-z0-9._~:/?#[\]@!$&'*+,;=%-]+))/g, (C, $, n1) => C.includes("<a ") ? C : `${$}<a href="${n1}">${n1}</a>`), M;
|
|
@@ -1747,11 +1747,11 @@ const P5 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
|
|
|
1747
1747
|
function P0(r) {
|
|
1748
1748
|
if (r.role === "assistant" && r.streaming && W(r.content))
|
|
1749
1749
|
return "<p>Preparing image...</p>";
|
|
1750
|
-
const p = [], u = r.content.replace(/\[PROMPT\]([\s\S]*?)\[\/PROMPT\]/gi, (L1,
|
|
1751
|
-
const S1 = e2(
|
|
1752
|
-
if (!S1) return
|
|
1750
|
+
const p = [], u = r.content.replace(/\[PROMPT\]([\s\S]*?)\[\/PROMPT\]/gi, (L1, H1) => {
|
|
1751
|
+
const S1 = e2(H1).trim();
|
|
1752
|
+
if (!S1) return H1;
|
|
1753
1753
|
const S2 = p.push(S1) - 1;
|
|
1754
|
-
return `${
|
|
1754
|
+
return `${H1}
|
|
1755
1755
|
|
|
1756
1756
|
[[WPIC_CHAT_APPLY_PROMPT_${S2}]]`;
|
|
1757
1757
|
}), M = q1(u).replace(/\r\n/g, `
|
|
@@ -1766,20 +1766,20 @@ const P5 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
|
|
|
1766
1766
|
$ && (C.push(`<pre><code>${I1(n1.join(`
|
|
1767
1767
|
`))}</code></pre>`), n1 = [], $ = !1);
|
|
1768
1768
|
}, J1 = (L1) => {
|
|
1769
|
-
const
|
|
1770
|
-
return
|
|
1771
|
-
}, Z1 = (L1) => L1.trim().replace(/^\|/, "").replace(/\|$/, "").split("|").map((
|
|
1769
|
+
const H1 = L1.trim().replace(/^\|/, "").replace(/\|$/, "").split("|").map((S1) => S1.trim());
|
|
1770
|
+
return H1.length > 1 && H1.every((S1) => /^:?-{3,}:?$/.test(S1));
|
|
1771
|
+
}, Z1 = (L1) => L1.trim().replace(/^\|/, "").replace(/\|$/, "").split("|").map((H1) => H1.trim());
|
|
1772
1772
|
for (let L1 = 0; L1 < M.length; L1 += 1) {
|
|
1773
|
-
const
|
|
1774
|
-
if (
|
|
1773
|
+
const H1 = M[L1];
|
|
1774
|
+
if (H1.trim().startsWith("```")) {
|
|
1775
1775
|
$ ? W1() : (k1(), C1(), $ = !0, n1 = []);
|
|
1776
1776
|
continue;
|
|
1777
1777
|
}
|
|
1778
1778
|
if ($) {
|
|
1779
|
-
n1.push(
|
|
1779
|
+
n1.push(H1);
|
|
1780
1780
|
continue;
|
|
1781
1781
|
}
|
|
1782
|
-
const S1 =
|
|
1782
|
+
const S1 = H1.trim(), S2 = S1.match(/^\[\[WPIC_CHAT_APPLY_PROMPT_(\d+)\]\]$/);
|
|
1783
1783
|
if (S2) {
|
|
1784
1784
|
k1(), C1();
|
|
1785
1785
|
const K1 = p[Number(S2[1])];
|
|
@@ -1876,19 +1876,19 @@ const P5 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
|
|
|
1876
1876
|
o("move-session", r, p), t2();
|
|
1877
1877
|
}
|
|
1878
1878
|
function a0(r = j.value) {
|
|
1879
|
-
o("new-conversation", r), D.value = !1, t2(),
|
|
1879
|
+
o("new-conversation", r), D.value = !1, t2(), F1(() => f.value?.focus());
|
|
1880
1880
|
}
|
|
1881
1881
|
function D2(r) {
|
|
1882
1882
|
r !== c.selectedSessionId && (O.value = r);
|
|
1883
1883
|
}
|
|
1884
1884
|
function o0(r) {
|
|
1885
|
-
D2(r), o("select-session", r), D.value = !1, t2(),
|
|
1885
|
+
D2(r), o("select-session", r), D.value = !1, t2(), F1(() => f.value?.focus());
|
|
1886
1886
|
}
|
|
1887
1887
|
function W0(r) {
|
|
1888
1888
|
o("delete-session", r), t2();
|
|
1889
1889
|
}
|
|
1890
1890
|
function D0(r) {
|
|
1891
|
-
o("update:modelValue", r.content), o("edit-message", r),
|
|
1891
|
+
o("update:modelValue", r.content), o("edit-message", r), F1(() => f.value?.focus());
|
|
1892
1892
|
}
|
|
1893
1893
|
function B2(r, p) {
|
|
1894
1894
|
o("apply-message-proposal", r, p);
|
|
@@ -1933,7 +1933,7 @@ const P5 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
|
|
|
1933
1933
|
}
|
|
1934
1934
|
function I2() {
|
|
1935
1935
|
const r = c.modelValue.trim();
|
|
1936
|
-
!r || c.loading || (o("send", r),
|
|
1936
|
+
!r || c.loading || (o("send", r), F1(() => f.value?.focus()));
|
|
1937
1937
|
}
|
|
1938
1938
|
function $2() {
|
|
1939
1939
|
S.value = f.value?.selectionStart ?? c.modelValue.length;
|
|
@@ -1942,13 +1942,13 @@ const P5 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
|
|
|
1942
1942
|
const p = G.value;
|
|
1943
1943
|
if (!p) return;
|
|
1944
1944
|
const u = c.modelValue.slice(0, p.start), M = c.modelValue.slice(S.value), C = `${u}@${r.label} ${M.replace(/^\s+/, "")}`;
|
|
1945
|
-
o("update:modelValue", C), T.value = 0,
|
|
1945
|
+
o("update:modelValue", C), T.value = 0, F1(() => {
|
|
1946
1946
|
const $ = `${u}@${r.label} `.length;
|
|
1947
1947
|
f.value?.focus(), f.value?.setSelectionRange($, $), $2(), x2();
|
|
1948
1948
|
});
|
|
1949
1949
|
}
|
|
1950
1950
|
function x2() {
|
|
1951
|
-
|
|
1951
|
+
F1(() => {
|
|
1952
1952
|
const r = f.value;
|
|
1953
1953
|
if (!r) return;
|
|
1954
1954
|
r.style.height = "auto";
|
|
@@ -2051,15 +2051,15 @@ const P5 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
|
|
|
2051
2051
|
o1.value = !0;
|
|
2052
2052
|
const M = r.clientX, C = r.clientY, $ = u.width, n1 = u.height, a1 = u.left, u1 = u.top, C1 = (W1) => {
|
|
2053
2053
|
const J1 = W1.clientX - M, Z1 = W1.clientY - C;
|
|
2054
|
-
let i2 = $, N1 = n1, L1 = a1,
|
|
2055
|
-
p.includes("e") && (i2 = Math.max(c.minWidth, $ + J1)), p.includes("s") && (N1 = Math.max(c.minHeight, n1 + Z1)), p.includes("w") && (i2 = Math.max(c.minWidth, $ - J1), L1 = a1 + ($ - i2)), p.includes("n") && (N1 = Math.max(c.minHeight, n1 - Z1),
|
|
2054
|
+
let i2 = $, N1 = n1, L1 = a1, H1 = u1;
|
|
2055
|
+
p.includes("e") && (i2 = Math.max(c.minWidth, $ + J1)), p.includes("s") && (N1 = Math.max(c.minHeight, n1 + Z1)), p.includes("w") && (i2 = Math.max(c.minWidth, $ - J1), L1 = a1 + ($ - i2)), p.includes("n") && (N1 = Math.max(c.minHeight, n1 - Z1), H1 = Math.max(c.topOffset, u1 + (n1 - N1))), o("update:width", Math.min(i2, window.innerWidth)), o("update:height", Math.min(N1, window.innerHeight - c.topOffset)), c.docked || (o("update:x", Math.max(0, L1)), o("update:y", Math.max(c.topOffset, H1)));
|
|
2056
2056
|
}, k1 = () => {
|
|
2057
2057
|
o1.value = !1, document.removeEventListener("mousemove", C1), document.removeEventListener("mouseup", k1);
|
|
2058
2058
|
};
|
|
2059
2059
|
document.addEventListener("mousemove", C1), document.addEventListener("mouseup", k1);
|
|
2060
2060
|
}
|
|
2061
2061
|
function p0() {
|
|
2062
|
-
|
|
2062
|
+
F1(() => {
|
|
2063
2063
|
const r = l.value;
|
|
2064
2064
|
r && (r.scrollTop = r.scrollHeight);
|
|
2065
2065
|
});
|
|
@@ -2068,13 +2068,13 @@ const P5 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
|
|
|
2068
2068
|
`), p0), M1([() => c.selectedSessionId, () => c.loading, () => c.messages.length], () => {
|
|
2069
2069
|
O.value && c.selectedSessionId === O.value && !c.loading && (O.value = null);
|
|
2070
2070
|
}), M1(() => c.modelValue, x2), M1(() => c.open, (r) => {
|
|
2071
|
-
r && (p0(), x2(),
|
|
2071
|
+
r && (p0(), x2(), F1(() => {
|
|
2072
2072
|
f.value?.focus(), c1();
|
|
2073
2073
|
}));
|
|
2074
|
-
}),
|
|
2075
|
-
x2(),
|
|
2074
|
+
}), F2(() => {
|
|
2075
|
+
x2(), F1(c1), document.addEventListener("pointerdown", i0, !0);
|
|
2076
2076
|
}), s2(() => {
|
|
2077
|
-
|
|
2077
|
+
F?.disconnect(), z && window.clearTimeout(z), r2(), document.removeEventListener("pointerdown", i0, !0);
|
|
2078
2078
|
}), (r, p) => (e(), K(O1, { to: "body" }, [
|
|
2079
2079
|
V(w2, {
|
|
2080
2080
|
"enter-active-class": "wpic:transition-opacity wpic:duration-150",
|
|
@@ -2491,12 +2491,12 @@ const P5 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
|
|
|
2491
2491
|
alt: C.name,
|
|
2492
2492
|
class: "wpic:h-full wpic:w-full wpic:object-cover",
|
|
2493
2493
|
loading: "lazy"
|
|
2494
|
-
}, null, 8,
|
|
2494
|
+
}, null, 8, H4)) : (e(), t(E, { key: 1 }, [
|
|
2495
2495
|
V(v(O2), {
|
|
2496
2496
|
size: 12,
|
|
2497
2497
|
class: "wpic:shrink-0"
|
|
2498
2498
|
}),
|
|
2499
|
-
i("span",
|
|
2499
|
+
i("span", F4, m(C.name), 1),
|
|
2500
2500
|
A2(C.bytes) ? (e(), t("span", P4, m(A2(C.bytes)), 1)) : h("", !0)
|
|
2501
2501
|
], 64))
|
|
2502
2502
|
], 2))), 128))
|
|
@@ -2802,7 +2802,7 @@ const P5 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
|
|
|
2802
2802
|
const B = Math.min(g(), f.value);
|
|
2803
2803
|
B !== c.modelValue && o("update:modelValue", B);
|
|
2804
2804
|
}
|
|
2805
|
-
|
|
2805
|
+
F2(() => {
|
|
2806
2806
|
l = window.location.pathname, T(), window.addEventListener("popstate", T);
|
|
2807
2807
|
}), s2(() => window.removeEventListener("popstate", T)), M1(
|
|
2808
2808
|
() => c.modelValue,
|
|
@@ -2892,10 +2892,10 @@ const P5 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
|
|
|
2892
2892
|
class: "wpic:shrink-0 wpic:text-zinc-400 wpic:dark:text-zinc-500"
|
|
2893
2893
|
}, z6 = { style: { overflow: "hidden", "text-overflow": "ellipsis", "white-space": "nowrap" } }, C6 = {
|
|
2894
2894
|
key: 0,
|
|
2895
|
-
class: "wpic:flex wpic:items-center wpic:gap-2 wpic:px-2.5 wpic:py-1.5 wpic:border-b wpic:border-zinc-100 wpic:dark:border-zinc-800"
|
|
2895
|
+
class: "wpic:shrink-0 wpic:flex wpic:items-center wpic:gap-2 wpic:px-2.5 wpic:py-1.5 wpic:border-b wpic:border-zinc-100 wpic:dark:border-zinc-800"
|
|
2896
2896
|
}, k6 = ["placeholder"], x6 = {
|
|
2897
2897
|
key: 1,
|
|
2898
|
-
class: "wpic:flex wpic:items-center wpic:justify-between wpic:px-2.5 wpic:py-1 wpic:border-b wpic:border-zinc-100 wpic:dark:border-zinc-800"
|
|
2898
|
+
class: "wpic:shrink-0 wpic:flex wpic:items-center wpic:justify-between wpic:px-2.5 wpic:py-1 wpic:border-b wpic:border-zinc-100 wpic:dark:border-zinc-800"
|
|
2899
2899
|
}, y6 = { class: "wpic:p-1 wpic:flex-1 wpic:overflow-y-auto wpic:min-h-0" }, M6 = { class: "wpic:min-w-0 wpic:flex-1" }, V6 = { class: "wpic:block wpic:truncate wpic:text-zinc-900 wpic:dark:text-zinc-100" }, L6 = {
|
|
2900
2900
|
key: 0,
|
|
2901
2901
|
class: "wpic:mt-0.5 wpic:block wpic:text-sm wpic:font-normal wpic:text-zinc-500 wpic:dark:text-zinc-400"
|
|
@@ -2929,15 +2929,17 @@ const P5 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
|
|
|
2929
2929
|
popoverWidth: {},
|
|
2930
2930
|
popoverPlacement: {},
|
|
2931
2931
|
popoverFlip: { type: Boolean, default: !0 },
|
|
2932
|
+
popoverAutoPlacement: { type: Boolean },
|
|
2933
|
+
popoverMinHeight: {},
|
|
2932
2934
|
popoverMaxHeight: {}
|
|
2933
2935
|
},
|
|
2934
2936
|
emits: ["update:modelValue", "open-change"],
|
|
2935
2937
|
setup(n, { emit: w }) {
|
|
2936
|
-
const c = n, o = w, d = (P) => typeof P == "object" && P !== null ? P : { value: P, label: String(P), icon: void 0, iconKey: void 0, meta: void 0, metaVariant: void 0 }, l =
|
|
2938
|
+
const c = n, o = w, d = (P) => typeof P == "object" && P !== null ? P : { value: P, label: String(P), icon: void 0, iconKey: void 0, meta: void 0, metaVariant: void 0 }, l = H(!1), s = H(null), f = `wpic-select-${g0().uid}`, k = H(null), g = H(""), a = H(c.multiple ? [...c.modelValue ?? []] : []);
|
|
2937
2939
|
M1(() => c.modelValue, (P) => {
|
|
2938
2940
|
c.multiple && (a.value = [...P ?? []]);
|
|
2939
2941
|
}, { deep: !0 }), M1(l, (P) => {
|
|
2940
|
-
o("open-change", P), P && c.searchable &&
|
|
2942
|
+
o("open-change", P), P && c.searchable && F1(() => k.value?.focus()), P || (g.value = "");
|
|
2941
2943
|
});
|
|
2942
2944
|
const T = x(() => (c.options ?? []).map(d)), S = x(() => {
|
|
2943
2945
|
if (!c.searchable || !g.value) return T.value;
|
|
@@ -2947,7 +2949,7 @@ const P5 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
|
|
|
2947
2949
|
O || (o("update:modelValue", P), l.value = !1);
|
|
2948
2950
|
}, B = (P, O = !1) => {
|
|
2949
2951
|
if (O) return;
|
|
2950
|
-
const I = a.value.includes(P) ? a.value.filter((
|
|
2952
|
+
const I = a.value.includes(P) ? a.value.filter((F) => F !== P) : [...a.value, P];
|
|
2951
2953
|
a.value = I, o("update:modelValue", [...I]);
|
|
2952
2954
|
}, y = x(() => {
|
|
2953
2955
|
if (!c.creatable || !g.value.trim()) return !1;
|
|
@@ -2972,8 +2974,8 @@ const P5 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
|
|
|
2972
2974
|
(y1) => T.value.some((J) => String(J.value) === String(y1))
|
|
2973
2975
|
), I = O.length;
|
|
2974
2976
|
if (I === 0) return c.placeholder ?? "Select…";
|
|
2975
|
-
const
|
|
2976
|
-
if (I === P) return `${
|
|
2977
|
+
const F = c.allLabel ?? c.placeholder ?? "All";
|
|
2978
|
+
if (I === P) return `${F} · ${P}`;
|
|
2977
2979
|
const c1 = c.maxLabels ?? 3, l1 = O.map((y1) => {
|
|
2978
2980
|
const J = T.value.find((p1) => String(p1.value) === String(y1));
|
|
2979
2981
|
return J ? J.label : null;
|
|
@@ -3052,6 +3054,9 @@ const P5 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
|
|
|
3052
3054
|
width: n.popoverWidth,
|
|
3053
3055
|
placement: n.popoverPlacement,
|
|
3054
3056
|
flip: n.popoverFlip,
|
|
3057
|
+
"auto-placement": n.popoverAutoPlacement,
|
|
3058
|
+
"min-height": n.popoverMinHeight,
|
|
3059
|
+
"panel-scroll": !1,
|
|
3055
3060
|
"freeze-position-on-open": !1,
|
|
3056
3061
|
"z-index": n.popoverZIndex,
|
|
3057
3062
|
"max-height": n.popoverMaxHeight ?? "50vh",
|
|
@@ -3080,7 +3085,7 @@ const P5 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
|
|
|
3080
3085
|
i("button", {
|
|
3081
3086
|
type: "button",
|
|
3082
3087
|
onClick: O[4] || (O[4] = f1((I) => {
|
|
3083
|
-
a.value = T.value.filter((
|
|
3088
|
+
a.value = T.value.filter((F) => !F.disabled).map((F) => F.value), o("update:modelValue", [...a.value]);
|
|
3084
3089
|
}, ["stop"])),
|
|
3085
3090
|
class: "wpic:bg-transparent wpic:border-none wpic:cursor-pointer wpic:text-base wpic:text-zinc-500 wpic:dark:text-zinc-400 wpic:hover:text-zinc-700 wpic:dark:hover:text-zinc-200 wpic:transition wpic:p-0.5"
|
|
3086
3091
|
}, m(n.selectAllLabel), 1),
|
|
@@ -3105,7 +3110,7 @@ const P5 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
|
|
|
3105
3110
|
selected: Z(I.value),
|
|
3106
3111
|
"separator-before": !!(I.separatorBefore && !I.groupLabel),
|
|
3107
3112
|
title: I.description,
|
|
3108
|
-
onClick: (
|
|
3113
|
+
onClick: (F) => n.multiple ? B(I.value, I.disabled) : D(I.value, I.disabled)
|
|
3109
3114
|
}, {
|
|
3110
3115
|
default: r1(() => [
|
|
3111
3116
|
Q(P.$slots, "option", {
|
|
@@ -3161,7 +3166,7 @@ const P5 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
|
|
|
3161
3166
|
])
|
|
3162
3167
|
]),
|
|
3163
3168
|
_: 3
|
|
3164
|
-
}, 8, ["open", "anchor", "match-anchor-width", "width", "placement", "flip", "z-index", "max-height"])
|
|
3169
|
+
}, 8, ["open", "anchor", "match-anchor-width", "width", "placement", "flip", "auto-placement", "min-height", "z-index", "max-height"])
|
|
3165
3170
|
], 4));
|
|
3166
3171
|
}
|
|
3167
3172
|
}), $6 = { class: "wpic:font-normal wpic:text-zinc-400 wpic:dark:text-zinc-500" }, Ot = /* @__PURE__ */ X({
|
|
@@ -3218,7 +3223,7 @@ const P5 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
|
|
|
3218
3223
|
]
|
|
3219
3224
|
]);
|
|
3220
3225
|
}
|
|
3221
|
-
}), S6 = { class: "wpic:py-1" },
|
|
3226
|
+
}), S6 = { class: "wpic:py-1" }, H6 = ["onClick"], F6 = { class: "wpic:flex-1 wpic:text-zinc-700 wpic:dark:text-zinc-300" }, P6 = /* @__PURE__ */ X({
|
|
3222
3227
|
__name: "WOptionPopover",
|
|
3223
3228
|
props: {
|
|
3224
3229
|
modelValue: {},
|
|
@@ -3255,13 +3260,13 @@ const P5 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
|
|
|
3255
3260
|
size: 13,
|
|
3256
3261
|
class: "wpic:shrink-0 wpic:text-zinc-400"
|
|
3257
3262
|
})) : h("", !0),
|
|
3258
|
-
i("span",
|
|
3263
|
+
i("span", F6, m(s.label), 1),
|
|
3259
3264
|
n.modelValue === s.value ? (e(), K(v(U1), {
|
|
3260
3265
|
key: 2,
|
|
3261
3266
|
size: 13,
|
|
3262
3267
|
class: "wpic:shrink-0 wpic:text-indigo-500"
|
|
3263
3268
|
})) : h("", !0)
|
|
3264
|
-
], 8,
|
|
3269
|
+
], 8, H6))), 128))
|
|
3265
3270
|
])
|
|
3266
3271
|
]),
|
|
3267
3272
|
_: 1
|
|
@@ -3336,7 +3341,7 @@ const T6 = {
|
|
|
3336
3341
|
},
|
|
3337
3342
|
emits: ["update:modelValue", "update:checked", "remove"],
|
|
3338
3343
|
setup(n, { emit: w }) {
|
|
3339
|
-
const c = n, o = w, d = _0(), l =
|
|
3344
|
+
const c = n, o = w, d = _0(), l = H(null), s = x(() => l.value?.$el ?? l.value ?? null), f = H(!1), k = x(() => c.checkable || c.editable), g = x(() => k.value && c.removable), a = x(() => {
|
|
3340
3345
|
const B = { ...d };
|
|
3341
3346
|
return delete B.class, B;
|
|
3342
3347
|
}), T = x(() => ({
|
|
@@ -3655,7 +3660,7 @@ const T6 = {
|
|
|
3655
3660
|
},
|
|
3656
3661
|
emits: ["close"],
|
|
3657
3662
|
setup(n, { emit: w }) {
|
|
3658
|
-
const c = V2(), o = w, d =
|
|
3663
|
+
const c = V2(), o = w, d = H(!1);
|
|
3659
3664
|
return g2("wpic-pagination-url-sync", !1), (l, s) => (e(), K(O1, { to: "body" }, [
|
|
3660
3665
|
i("div", {
|
|
3661
3666
|
style: h1(v(c)?.variables),
|
|
@@ -3765,7 +3770,7 @@ const T6 = {
|
|
|
3765
3770
|
]));
|
|
3766
3771
|
}
|
|
3767
3772
|
}), g9 = S3("wpic-toast", () => {
|
|
3768
|
-
const n =
|
|
3773
|
+
const n = H([]), w = (s, f = "error", k = 5e3, g = null, a = null) => {
|
|
3769
3774
|
const T = Date.now(), S = typeof s == "object" ? s.title : s, D = typeof s == "object" ? s.description ?? null : a;
|
|
3770
3775
|
n.value.push({ id: T, message: S, title: S, description: D, type: f, action: g }), k > 0 && setTimeout(() => c(T), k);
|
|
3771
3776
|
}, c = (s) => {
|
|
@@ -3901,7 +3906,7 @@ const T6 = {
|
|
|
3901
3906
|
])
|
|
3902
3907
|
]));
|
|
3903
3908
|
}
|
|
3904
|
-
}), S9 = { class: "w-tabs" },
|
|
3909
|
+
}), S9 = { class: "w-tabs" }, H9 = ["disabled", "onClick"], F9 = { class: "tab-label" }, P9 = {
|
|
3905
3910
|
key: 1,
|
|
3906
3911
|
class: "tab-badge"
|
|
3907
3912
|
}, T9 = {
|
|
@@ -3943,9 +3948,9 @@ const T6 = {
|
|
|
3943
3948
|
key: 0,
|
|
3944
3949
|
class: b(["tab-icon", `size-${n.size}`])
|
|
3945
3950
|
}, null, 8, ["class"])) : h("", !0),
|
|
3946
|
-
i("span",
|
|
3951
|
+
i("span", F9, m(k.label), 1),
|
|
3947
3952
|
k.badge ? (e(), t("span", P9, m(k.badge), 1)) : h("", !0)
|
|
3948
|
-
], 10,
|
|
3953
|
+
], 10, H9))), 128))
|
|
3949
3954
|
]),
|
|
3950
3955
|
s.$slots.actions ? (e(), t("div", T9, [
|
|
3951
3956
|
Q(s.$slots, "actions", {}, void 0, !0)
|
|
@@ -4156,11 +4161,11 @@ const ii = /* @__PURE__ */ Y1(X9, [["render", _9]]), n7 = ["placeholder", "rows"
|
|
|
4156
4161
|
},
|
|
4157
4162
|
emits: ["update:modelValue"],
|
|
4158
4163
|
setup(n, { emit: w }) {
|
|
4159
|
-
const c = n, o = w, d = x(() => c.mode === "range"), l =
|
|
4164
|
+
const c = n, o = w, d = x(() => c.mode === "range"), l = H(!1), s = H(null), f = H(null), { floatingStyles: k } = m2(s, f, {
|
|
4160
4165
|
placement: "bottom-start",
|
|
4161
4166
|
middleware: [u2(4), h2({ padding: 8 }), v2({ padding: 8 })],
|
|
4162
4167
|
whileElementsMounted: f2
|
|
4163
|
-
}), g = /* @__PURE__ */ new Date(), a =
|
|
4168
|
+
}), g = /* @__PURE__ */ new Date(), a = H(g.getFullYear()), T = H(g.getMonth()), S = x(() => T.value === 11 ? a.value + 1 : a.value), D = x(() => T.value === 11 ? 0 : T.value + 1), B = H(null), y = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], z = ["Mo", "Tu", "We", "Th", "Fr", "Sa", "Su"], Z = (L, R) => {
|
|
4164
4169
|
const m1 = (new Date(L, R, 1).getDay() + 6) % 7, x1 = new Date(L, R + 1, 0).getDate(), P1 = new Date(L, R, 0).getDate(), A = [];
|
|
4165
4170
|
for (let N = m1 - 1; N >= 0; N--)
|
|
4166
4171
|
A.push({ day: P1 - N, month: R - 1, year: L, outside: !0 });
|
|
@@ -4173,13 +4178,13 @@ const ii = /* @__PURE__ */ Y1(X9, [["render", _9]]), n7 = ["placeholder", "rows"
|
|
|
4173
4178
|
}, o1 = x(() => Z(a.value, T.value)), b1 = x(() => Z(S.value, D.value)), q = (L) => {
|
|
4174
4179
|
const R = L.month < 0 ? L.year - 1 : L.month > 11 ? L.year + 1 : L.year, t1 = (L.month % 12 + 12) % 12;
|
|
4175
4180
|
return `${R}-${String(t1 + 1).padStart(2, "0")}-${String(L.day).padStart(2, "0")}`;
|
|
4176
|
-
}, e1 = `${g.getFullYear()}-${String(g.getMonth() + 1).padStart(2, "0")}-${String(g.getDate()).padStart(2, "0")}`, P = x(() => d.value ? c.modelValue?.start ?? null : c.modelValue ?? null), O = x(() => d.value ? c.modelValue?.end ?? null : null), I = x(() => !!(P.value && O.value)),
|
|
4181
|
+
}, e1 = `${g.getFullYear()}-${String(g.getMonth() + 1).padStart(2, "0")}-${String(g.getDate()).padStart(2, "0")}`, P = x(() => d.value ? c.modelValue?.start ?? null : c.modelValue ?? null), O = x(() => d.value ? c.modelValue?.end ?? null : null), I = x(() => !!(P.value && O.value)), F = H(null), c1 = (L) => {
|
|
4177
4182
|
if (!d.value) return !1;
|
|
4178
4183
|
const R = q(L);
|
|
4179
4184
|
return I.value && !B.value ? R > P.value && R < O.value : !1;
|
|
4180
4185
|
}, l1 = (L) => {
|
|
4181
|
-
if (!d.value || !B.value || !
|
|
4182
|
-
const R = q(L), [t1, m1] = [B.value,
|
|
4186
|
+
if (!d.value || !B.value || !F.value) return !1;
|
|
4187
|
+
const R = q(L), [t1, m1] = [B.value, F.value].sort();
|
|
4183
4188
|
return R > t1 && R < m1;
|
|
4184
4189
|
}, y1 = (L) => {
|
|
4185
4190
|
if (!d.value) return !1;
|
|
@@ -4290,8 +4295,8 @@ const ii = /* @__PURE__ */ Y1(X9, [["render", _9]]), n7 = ["placeholder", "rows"
|
|
|
4290
4295
|
(e(!0), t(E, null, i1(o1.value, (t1, m1) => (e(), t("button", {
|
|
4291
4296
|
key: m1,
|
|
4292
4297
|
onClick: (x1) => J(t1),
|
|
4293
|
-
onMouseenter: (x1) =>
|
|
4294
|
-
onMouseleave: R[1] || (R[1] = (x1) =>
|
|
4298
|
+
onMouseenter: (x1) => F.value = q(t1),
|
|
4299
|
+
onMouseleave: R[1] || (R[1] = (x1) => F.value = null),
|
|
4295
4300
|
type: "button",
|
|
4296
4301
|
class: b(["wpic:h-8 wpic:w-full wpic:flex wpic:items-center wpic:justify-center wpic:rounded-lg wpic:transition wpic:cursor-pointer", d1(t1)])
|
|
4297
4302
|
}, m(t1.day), 43, u7))), 128))
|
|
@@ -4321,8 +4326,8 @@ const ii = /* @__PURE__ */ Y1(X9, [["render", _9]]), n7 = ["placeholder", "rows"
|
|
|
4321
4326
|
(e(!0), t(E, null, i1(b1.value, (t1, m1) => (e(), t("button", {
|
|
4322
4327
|
key: m1,
|
|
4323
4328
|
onClick: (x1) => J(t1),
|
|
4324
|
-
onMouseenter: (x1) =>
|
|
4325
|
-
onMouseleave: R[2] || (R[2] = (x1) =>
|
|
4329
|
+
onMouseenter: (x1) => F.value = q(t1),
|
|
4330
|
+
onMouseleave: R[2] || (R[2] = (x1) => F.value = null),
|
|
4326
4331
|
type: "button",
|
|
4327
4332
|
class: b(["wpic:h-8 wpic:w-full wpic:flex wpic:items-center wpic:justify-center wpic:rounded-lg wpic:transition wpic:cursor-pointer", d1(t1)])
|
|
4328
4333
|
}, m(t1.day), 43, g7))), 128))
|
|
@@ -4420,7 +4425,7 @@ const di = /* @__PURE__ */ Y1(B7, [["render", $7]]), wi = /* @__PURE__ */ X({
|
|
|
4420
4425
|
}, null, 8, ["size"]))
|
|
4421
4426
|
], 8, A7));
|
|
4422
4427
|
}
|
|
4423
|
-
}), S7 = { class: "wpic:bg-white wpic:dark:bg-zinc-900 wpic:border wpic:border-zinc-200 wpic:dark:border-zinc-800 wpic:rounded-2xl wpic:p-6 wpic:w-[360px] wpic:mx-4 wpic:shadow-[0_25px_50px_rgba(0,0,0,0.4)]" },
|
|
4428
|
+
}), S7 = { class: "wpic:bg-white wpic:dark:bg-zinc-900 wpic:border wpic:border-zinc-200 wpic:dark:border-zinc-800 wpic:rounded-2xl wpic:p-6 wpic:w-[360px] wpic:mx-4 wpic:shadow-[0_25px_50px_rgba(0,0,0,0.4)]" }, H7 = { class: "wpic:flex wpic:gap-4 wpic:mb-5" }, F7 = { class: "wpic:text-base wpic:text-zinc-900 wpic:dark:text-zinc-100 wpic:font-semibold wpic:leading-tight" }, P7 = { class: "wpic:text-base wpic:text-zinc-400 wpic:dark:text-zinc-500 wpic:mt-1.5 wpic:leading-relaxed" }, T7 = { class: "wpic:flex wpic:gap-2 wpic:justify-end" }, vi = /* @__PURE__ */ X({
|
|
4424
4429
|
__name: "ConfirmModal",
|
|
4425
4430
|
props: {
|
|
4426
4431
|
title: {},
|
|
@@ -4440,7 +4445,7 @@ const di = /* @__PURE__ */ Y1(B7, [["render", $7]]), wi = /* @__PURE__ */ X({
|
|
|
4440
4445
|
onClick: d[2] || (d[2] = f1((l) => c("cancel"), ["self"]))
|
|
4441
4446
|
}, [
|
|
4442
4447
|
i("div", S7, [
|
|
4443
|
-
i("div",
|
|
4448
|
+
i("div", H7, [
|
|
4444
4449
|
i("div", {
|
|
4445
4450
|
class: b([
|
|
4446
4451
|
"wpic:w-11 wpic:h-11 wpic:rounded-full wpic:flex wpic:items-center wpic:justify-center wpic:shrink-0",
|
|
@@ -4453,7 +4458,7 @@ const di = /* @__PURE__ */ Y1(B7, [["render", $7]]), wi = /* @__PURE__ */ X({
|
|
|
4453
4458
|
}, null, 8, ["class"])
|
|
4454
4459
|
], 2),
|
|
4455
4460
|
i("div", null, [
|
|
4456
|
-
i("h3",
|
|
4461
|
+
i("h3", F7, m(n.title ?? "Confirm"), 1),
|
|
4457
4462
|
i("p", P7, m(n.message ?? "Are you sure?"), 1)
|
|
4458
4463
|
])
|
|
4459
4464
|
]),
|
|
@@ -4678,7 +4683,7 @@ const N7 = { class: "wpic-tag-input" }, K7 = {
|
|
|
4678
4683
|
},
|
|
4679
4684
|
emits: ["update:modelValue", "update:simpleValue"],
|
|
4680
4685
|
setup(n, { emit: w }) {
|
|
4681
|
-
const c = n, o = w, d = x(() => c.simpleValue ?? []), l =
|
|
4686
|
+
const c = n, o = w, d = x(() => c.simpleValue ?? []), l = H(""), s = H(!1), f = x(() => {
|
|
4682
4687
|
const W = l.value.trim().toLowerCase(), Y = new Set(d.value), _ = c.options ?? [];
|
|
4683
4688
|
return W ? _.filter((z1) => z1.toLowerCase().includes(W) && !Y.has(z1)) : _.filter((z1) => !Y.has(z1)).slice(0, 8);
|
|
4684
4689
|
}), k = x(() => {
|
|
@@ -4701,8 +4706,8 @@ const N7 = { class: "wpic-tag-input" }, K7 = {
|
|
|
4701
4706
|
s.value = !1;
|
|
4702
4707
|
}, 150);
|
|
4703
4708
|
}
|
|
4704
|
-
const D =
|
|
4705
|
-
let
|
|
4709
|
+
const D = H(""), B = H("idle"), y = H(null), z = H(null), Z = H(null), o1 = H(""), b1 = H(null), q = H(null), e1 = H(null), P = H(!1), O = H([]), I = H(!1);
|
|
4710
|
+
let F = null;
|
|
4706
4711
|
const { getRecent: c1, addRecent: l1 } = Z7(c.recentKey, 10), { floatingStyles: y1 } = m2(q, e1, {
|
|
4707
4712
|
placement: "bottom-start",
|
|
4708
4713
|
middleware: [
|
|
@@ -4742,11 +4747,11 @@ const N7 = { class: "wpic-tag-input" }, K7 = {
|
|
|
4742
4747
|
}, 150);
|
|
4743
4748
|
};
|
|
4744
4749
|
function R() {
|
|
4745
|
-
if (
|
|
4750
|
+
if (F && clearTimeout(F), y.value && (y.value = null), z.value = null, !D.value.trim()) {
|
|
4746
4751
|
O.value = [];
|
|
4747
4752
|
return;
|
|
4748
4753
|
}
|
|
4749
|
-
|
|
4754
|
+
F = setTimeout(t1, 250);
|
|
4750
4755
|
}
|
|
4751
4756
|
async function t1() {
|
|
4752
4757
|
const W = D.value.trim();
|
|
@@ -4764,7 +4769,7 @@ const N7 = { class: "wpic-tag-input" }, K7 = {
|
|
|
4764
4769
|
}
|
|
4765
4770
|
}
|
|
4766
4771
|
function m1(W) {
|
|
4767
|
-
W.key === "Enter" && (
|
|
4772
|
+
W.key === "Enter" && (F && clearTimeout(F), P1()), W.key === "Escape" && (U(), P.value = !1);
|
|
4768
4773
|
}
|
|
4769
4774
|
async function x1(W) {
|
|
4770
4775
|
if (G(W)) return;
|
|
@@ -4827,7 +4832,7 @@ const N7 = { class: "wpic-tag-input" }, K7 = {
|
|
|
4827
4832
|
}
|
|
4828
4833
|
}
|
|
4829
4834
|
function w1(W) {
|
|
4830
|
-
Z.value = W, o1.value = y.value?.translations?.[W]?.value || "",
|
|
4835
|
+
Z.value = W, o1.value = y.value?.translations?.[W]?.value || "", F1(() => b1.value?.focus());
|
|
4831
4836
|
}
|
|
4832
4837
|
function s1(W) {
|
|
4833
4838
|
const Y = o1.value.trim();
|
|
@@ -4842,7 +4847,7 @@ const N7 = { class: "wpic-tag-input" }, K7 = {
|
|
|
4842
4847
|
class: "wpic:cursor-default"
|
|
4843
4848
|
}, {
|
|
4844
4849
|
default: r1(() => [
|
|
4845
|
-
V(v(
|
|
4850
|
+
V(v(H2), {
|
|
4846
4851
|
size: 9,
|
|
4847
4852
|
class: "wpic:shrink-0 wpic:mr-0.5"
|
|
4848
4853
|
}),
|
|
@@ -4875,7 +4880,7 @@ const N7 = { class: "wpic-tag-input" }, K7 = {
|
|
|
4875
4880
|
class: "wpic:flex wpic:w-full wpic:items-center wpic:gap-2 wpic:px-3 wpic:py-2 wpic:text-left wpic:text-sm wpic:text-zinc-700 wpic:hover:bg-zinc-50 wpic:dark:text-zinc-200 wpic:dark:hover:bg-zinc-800 wpic:transition-colors",
|
|
4876
4881
|
onMousedown: f1((z1) => g(_), ["prevent"])
|
|
4877
4882
|
}, [
|
|
4878
|
-
V(v(
|
|
4883
|
+
V(v(H2), {
|
|
4879
4884
|
size: 12,
|
|
4880
4885
|
class: "wpic:shrink-0 wpic:text-zinc-400"
|
|
4881
4886
|
}),
|
|
@@ -4903,7 +4908,7 @@ const N7 = { class: "wpic-tag-input" }, K7 = {
|
|
|
4903
4908
|
class: "wpic:cursor-default"
|
|
4904
4909
|
}, {
|
|
4905
4910
|
default: r1(() => [
|
|
4906
|
-
V(v(
|
|
4911
|
+
V(v(H2), {
|
|
4907
4912
|
size: 9,
|
|
4908
4913
|
class: "wpic:shrink-0 wpic:mr-0.5"
|
|
4909
4914
|
}),
|
|
@@ -4959,7 +4964,7 @@ const N7 = { class: "wpic-tag-input" }, K7 = {
|
|
|
4959
4964
|
class: b(["wpic:w-full wpic:text-left wpic:px-3 wpic:py-2 wpic:hover:bg-black/5 wpic:dark:hover:bg-white/5 wpic:cursor-pointer wpic:transition wpic:flex wpic:items-center wpic:gap-2", G(_) ? "wpic:opacity-40 wpic:cursor-default" : "wpic:text-zinc-600 wpic:dark:text-zinc-400"]),
|
|
4960
4965
|
onMousedown: f1((z1) => !G(_) && x1(_), ["prevent"])
|
|
4961
4966
|
}, [
|
|
4962
|
-
V(v(
|
|
4967
|
+
V(v(H2), {
|
|
4963
4968
|
size: 11,
|
|
4964
4969
|
class: "wpic:shrink-0 wpic:text-zinc-400 wpic:dark:text-zinc-500"
|
|
4965
4970
|
}),
|
|
@@ -5133,14 +5138,14 @@ const N7 = { class: "wpic-tag-input" }, K7 = {
|
|
|
5133
5138
|
},
|
|
5134
5139
|
emits: ["update:modelValue", "update:subValue"],
|
|
5135
5140
|
setup(n, { emit: w }) {
|
|
5136
|
-
const c = n, o = w, d =
|
|
5141
|
+
const c = n, o = w, d = H(!1), l = H(""), s = H(null), f = H(null), k = H(null), g = H(null), a = H(null), T = H(null), { floatingStyles: S } = m2(f, k, {
|
|
5137
5142
|
placement: "bottom-start",
|
|
5138
5143
|
middleware: [
|
|
5139
5144
|
u2(4),
|
|
5140
5145
|
h2({ padding: 8 }),
|
|
5141
5146
|
v2({ padding: 8 }),
|
|
5142
|
-
X2({ padding: 8, apply({ availableHeight:
|
|
5143
|
-
Object.assign(c1.floating.style, { maxHeight: `${Math.min(360,
|
|
5147
|
+
X2({ padding: 8, apply({ availableHeight: F, elements: c1 }) {
|
|
5148
|
+
Object.assign(c1.floating.style, { maxHeight: `${Math.min(360, F)}px` });
|
|
5144
5149
|
} })
|
|
5145
5150
|
],
|
|
5146
5151
|
whileElementsMounted: f2
|
|
@@ -5153,27 +5158,27 @@ const N7 = { class: "wpic-tag-input" }, K7 = {
|
|
|
5153
5158
|
],
|
|
5154
5159
|
whileElementsMounted: f2
|
|
5155
5160
|
});
|
|
5156
|
-
M1(d, (
|
|
5157
|
-
|
|
5161
|
+
M1(d, (F) => {
|
|
5162
|
+
F ? F1(() => g.value?.focus()) : s.value = null;
|
|
5158
5163
|
});
|
|
5159
5164
|
const B = x(() => {
|
|
5160
|
-
const
|
|
5161
|
-
return
|
|
5165
|
+
const F = l.value.toLowerCase();
|
|
5166
|
+
return F ? c.items.filter((c1) => c1.name.toLowerCase().includes(F) ? !0 : (c.subItems[c1.id] ?? []).some((l1) => l1.name.toLowerCase().includes(F))) : c.items;
|
|
5162
5167
|
}), y = x(() => {
|
|
5163
5168
|
if (!c.modelValue) return "";
|
|
5164
|
-
const
|
|
5165
|
-
if (!
|
|
5169
|
+
const F = c.items.find((c1) => c1.id === c.modelValue);
|
|
5170
|
+
if (!F) return "";
|
|
5166
5171
|
if (c.subValue) {
|
|
5167
5172
|
const c1 = (c.subItems[c.modelValue] ?? []).find((l1) => l1.id === c.subValue);
|
|
5168
|
-
return c1 ? `${
|
|
5173
|
+
return c1 ? `${F.name} › ${c1.name}` : F.name;
|
|
5169
5174
|
}
|
|
5170
|
-
return
|
|
5175
|
+
return F.name;
|
|
5171
5176
|
}), z = x(
|
|
5172
5177
|
() => s.value !== null ? c.subItems[s.value] ?? [] : []
|
|
5173
5178
|
);
|
|
5174
5179
|
let Z = null;
|
|
5175
|
-
const o1 = (
|
|
5176
|
-
Z && clearTimeout(Z), s.value =
|
|
5180
|
+
const o1 = (F, c1) => {
|
|
5181
|
+
Z && clearTimeout(Z), s.value = F, a.value = c1.currentTarget;
|
|
5177
5182
|
}, b1 = () => {
|
|
5178
5183
|
Z = setTimeout(() => {
|
|
5179
5184
|
s.value = null;
|
|
@@ -5184,14 +5189,14 @@ const N7 = { class: "wpic-tag-input" }, K7 = {
|
|
|
5184
5189
|
Z = setTimeout(() => {
|
|
5185
5190
|
s.value = null;
|
|
5186
5191
|
}, 150);
|
|
5187
|
-
}, P = (
|
|
5188
|
-
o("update:modelValue",
|
|
5189
|
-
}, O = (
|
|
5190
|
-
o("update:modelValue",
|
|
5192
|
+
}, P = (F) => {
|
|
5193
|
+
o("update:modelValue", F.id), o("update:subValue", ""), d.value = !1, l.value = "";
|
|
5194
|
+
}, O = (F, c1) => {
|
|
5195
|
+
o("update:modelValue", F), o("update:subValue", c1.id), d.value = !1, l.value = "";
|
|
5191
5196
|
}, I = () => {
|
|
5192
5197
|
o("update:modelValue", ""), o("update:subValue", ""), d.value = !1, l.value = "";
|
|
5193
5198
|
};
|
|
5194
|
-
return (
|
|
5199
|
+
return (F, c1) => (e(), t("div", null, [
|
|
5195
5200
|
i("button", {
|
|
5196
5201
|
ref_key: "triggerRef",
|
|
5197
5202
|
ref: f,
|
|
@@ -5366,7 +5371,7 @@ const N7 = { class: "wpic-tag-input" }, K7 = {
|
|
|
5366
5371
|
]))
|
|
5367
5372
|
]));
|
|
5368
5373
|
}
|
|
5369
|
-
}),
|
|
5374
|
+
}), H8 = ["data-wpic-theme"], F8 = /* @__PURE__ */ X({
|
|
5370
5375
|
__name: "WTooltip",
|
|
5371
5376
|
props: {
|
|
5372
5377
|
content: {},
|
|
@@ -5376,7 +5381,7 @@ const N7 = { class: "wpic-tag-input" }, K7 = {
|
|
|
5376
5381
|
inline: { type: Boolean }
|
|
5377
5382
|
},
|
|
5378
5383
|
setup(n) {
|
|
5379
|
-
const w = n, c = V2(), o =
|
|
5384
|
+
const w = n, c = V2(), o = H(null), d = H(null), l = H(!1);
|
|
5380
5385
|
let s = null;
|
|
5381
5386
|
const { floatingStyles: f } = m2(o, d, {
|
|
5382
5387
|
placement: w.placement ?? "top",
|
|
@@ -5425,7 +5430,7 @@ const N7 = { class: "wpic-tag-input" }, K7 = {
|
|
|
5425
5430
|
class: b([{ "wpic-theme": v(c), dark: v(c)?.mode === "dark" }, "wpic-tooltip-panel wpic:pointer-events-none wpic:z-[9999] wpic:max-w-[200px] wpic:whitespace-pre-line wpic:break-words wpic:text-base wpic:font-medium"]),
|
|
5426
5431
|
"data-wpic-theme": v(c)?.mode,
|
|
5427
5432
|
role: "tooltip"
|
|
5428
|
-
}, m(n.content), 15,
|
|
5433
|
+
}, m(n.content), 15, H8)) : h("", !0)
|
|
5429
5434
|
]),
|
|
5430
5435
|
_: 1
|
|
5431
5436
|
})
|
|
@@ -5445,7 +5450,7 @@ const N7 = { class: "wpic-tag-input" }, K7 = {
|
|
|
5445
5450
|
},
|
|
5446
5451
|
setup(n) {
|
|
5447
5452
|
const w = n, c = x(() => w.value != null && Number.isFinite(w.value)), o = x(() => !c.value || w.value === 0 ? "neutral" : w.value > 0 != !!w.inverse ? "positive" : "negative");
|
|
5448
|
-
return (d, l) => (e(), K(
|
|
5453
|
+
return (d, l) => (e(), K(F8, {
|
|
5449
5454
|
content: n.description || "",
|
|
5450
5455
|
disabled: !n.description
|
|
5451
5456
|
}, {
|
|
@@ -5836,7 +5841,7 @@ const N7 = { class: "wpic-tag-input" }, K7 = {
|
|
|
5836
5841
|
size: {}
|
|
5837
5842
|
},
|
|
5838
5843
|
setup(n) {
|
|
5839
|
-
const w = n, c =
|
|
5844
|
+
const w = n, c = H(!1);
|
|
5840
5845
|
M1(() => w.src, () => {
|
|
5841
5846
|
c.value = !1;
|
|
5842
5847
|
});
|
|
@@ -5935,7 +5940,7 @@ const N7 = { class: "wpic-tag-input" }, K7 = {
|
|
|
5935
5940
|
},
|
|
5936
5941
|
emits: ["update:modelValue", "change"],
|
|
5937
5942
|
setup(n, { emit: w }) {
|
|
5938
|
-
const c = n, o = w, d =
|
|
5943
|
+
const c = n, o = w, d = H(!1), l = H(null), s = /* @__PURE__ */ new Date(), f = H(new Date(s.getFullYear(), s.getMonth(), 1));
|
|
5939
5944
|
function k(q) {
|
|
5940
5945
|
if (!q || !/^\d{4}-\d{2}-\d{2}$/.test(q)) return null;
|
|
5941
5946
|
const [e1, P, O] = q.split("-").map(Number), I = new Date(e1, P - 1, O);
|
|
@@ -5955,7 +5960,7 @@ const N7 = { class: "wpic-tag-input" }, K7 = {
|
|
|
5955
5960
|
});
|
|
5956
5961
|
}), B = x(() => {
|
|
5957
5962
|
const q = f.value.getFullYear(), e1 = f.value.getMonth(), P = new Date(q, e1, 1), O = c.weekStartsOn === 1 ? (P.getDay() + 6) % 7 : P.getDay(), I = new Date(q, e1, 1 - O);
|
|
5958
|
-
return Array.from({ length: 42 }, (
|
|
5963
|
+
return Array.from({ length: 42 }, (F, c1) => {
|
|
5959
5964
|
const l1 = new Date(I);
|
|
5960
5965
|
return l1.setDate(I.getDate() + c1), { iso: g(l1), day: l1.getDate(), inMonth: l1.getMonth() === e1 };
|
|
5961
5966
|
});
|
|
@@ -6086,7 +6091,7 @@ const N7 = { class: "wpic-tag-input" }, K7 = {
|
|
|
6086
6091
|
},
|
|
6087
6092
|
emits: ["update:modelValue", "change", "refresh"],
|
|
6088
6093
|
setup(n, { emit: w }) {
|
|
6089
|
-
const c = n, o = w, d =
|
|
6094
|
+
const c = n, o = w, d = H(!1), l = x(() => c.filters.length ? Array.isArray(c.filters[0]) ? c.filters : [c.filters] : []);
|
|
6090
6095
|
function s(S) {
|
|
6091
6096
|
return c.modelValue[S];
|
|
6092
6097
|
}
|
|
@@ -6100,7 +6105,7 @@ const N7 = { class: "wpic-tag-input" }, K7 = {
|
|
|
6100
6105
|
}, 300);
|
|
6101
6106
|
}
|
|
6102
6107
|
function a(S, D) {
|
|
6103
|
-
f(S, D),
|
|
6108
|
+
f(S, D), F1(() => o("change"));
|
|
6104
6109
|
}
|
|
6105
6110
|
function T() {
|
|
6106
6111
|
d.value = !0, o("refresh"), o("change"), setTimeout(() => {
|
|
@@ -6194,7 +6199,7 @@ const N7 = { class: "wpic-tag-input" }, K7 = {
|
|
|
6194
6199
|
},
|
|
6195
6200
|
emits: ["click", "select"],
|
|
6196
6201
|
setup(n, { emit: w }) {
|
|
6197
|
-
const c = w, o =
|
|
6202
|
+
const c = w, o = H(!1), d = H(null), l = x(() => d.value?.$el ?? null);
|
|
6198
6203
|
function s(f) {
|
|
6199
6204
|
f.disabled || (o.value = !1, c("select", f.value));
|
|
6200
6205
|
}
|
|
@@ -6268,7 +6273,7 @@ const N7 = { class: "wpic-tag-input" }, K7 = {
|
|
|
6268
6273
|
}), An = { class: "wpic:inline-flex wpic:items-center wpic:gap-2" }, Sn = {
|
|
6269
6274
|
key: 0,
|
|
6270
6275
|
class: "wpic:text-sm wpic:text-zinc-500 wpic:dark:text-zinc-400"
|
|
6271
|
-
},
|
|
6276
|
+
}, Hn = { class: "wpic:font-mono" }, Fn = { class: "wpic:p-3" }, Pn = { class: "wpic:grid wpic:grid-cols-[88px_repeat(11,minmax(0,1fr))] wpic:gap-1" }, Tn = { class: "wpic:flex wpic:h-7 wpic:items-center wpic:pr-2 wpic:text-sm wpic:text-zinc-500 wpic:dark:text-zinc-400" }, jn = ["title", "onClick"], Si = /* @__PURE__ */ X({
|
|
6272
6277
|
__name: "WTailwindColorPicker",
|
|
6273
6278
|
props: {
|
|
6274
6279
|
modelValue: {},
|
|
@@ -6278,7 +6283,7 @@ const N7 = { class: "wpic-tag-input" }, K7 = {
|
|
|
6278
6283
|
},
|
|
6279
6284
|
emits: ["update:modelValue"],
|
|
6280
6285
|
setup(n, { emit: w }) {
|
|
6281
|
-
const c = n, o = w, d =
|
|
6286
|
+
const c = n, o = w, d = H(null), l = H(!1), s = [
|
|
6282
6287
|
"wpic:bg-white",
|
|
6283
6288
|
"wpic:bg-slate-50",
|
|
6284
6289
|
"wpic:bg-slate-100",
|
|
@@ -6767,7 +6772,7 @@ const N7 = { class: "wpic-tag-input" }, K7 = {
|
|
|
6767
6772
|
i("span", {
|
|
6768
6773
|
class: b(["wpic:h-4 wpic:w-4 wpic:rounded wpic:border wpic:border-black/10 wpic:dark:border-white/10", k.value ? `wpic:${k.value.class}` : void 0])
|
|
6769
6774
|
}, null, 2),
|
|
6770
|
-
i("span",
|
|
6775
|
+
i("span", Hn, m(k.value ? k.value.shade ? `${k.value.name}-${k.value.shade}` : k.value.name : n.modelValue), 1)
|
|
6771
6776
|
], 512),
|
|
6772
6777
|
V(n2, {
|
|
6773
6778
|
open: l.value,
|
|
@@ -6778,7 +6783,7 @@ const N7 = { class: "wpic-tag-input" }, K7 = {
|
|
|
6778
6783
|
onClose: T[2] || (T[2] = (S) => l.value = !1)
|
|
6779
6784
|
}, {
|
|
6780
6785
|
default: r1(() => [
|
|
6781
|
-
i("div",
|
|
6786
|
+
i("div", Fn, [
|
|
6782
6787
|
i("button", {
|
|
6783
6788
|
type: "button",
|
|
6784
6789
|
class: b(["wpic:mb-3 wpic:flex wpic:h-8 wpic:w-full wpic:items-center wpic:gap-2 wpic:rounded-md wpic:border wpic:px-2 wpic:text-sm wpic:transition wpic:hover:bg-zinc-50 wpic:dark:hover:bg-zinc-800", n.modelValue === "bg-white" ? "wpic:border-indigo-500 wpic:ring-2 wpic:ring-indigo-500/40" : "wpic:border-zinc-200 wpic:dark:border-zinc-700"]),
|
|
@@ -6828,7 +6833,7 @@ const N7 = { class: "wpic-tag-input" }, K7 = {
|
|
|
6828
6833
|
}, Nn = { class: "wpic:w-44 wpic:border-r wpic:border-zinc-100 wpic:py-2 wpic:dark:border-zinc-800" }, Kn = ["aria-pressed", "onClick"], On = {
|
|
6829
6834
|
key: 0,
|
|
6830
6835
|
class: "wpic:p-4"
|
|
6831
|
-
}, Un = { class: "wpic:mb-3 wpic:flex wpic:items-center wpic:justify-between" }, Yn = ["aria-label"], qn = { class: "wpic:font-medium wpic:text-zinc-900 wpic:dark:text-zinc-100" }, Qn = ["aria-label"], Jn = { class: "wpic:mb-1 wpic:grid wpic:grid-cols-7 wpic:text-center" }, Xn = { class: "wpic:grid wpic:grid-cols-7 wpic:gap-y-1" }, Gn = ["aria-label", "aria-pressed", "data-in-range", "data-today", "onClick"], _n = { class: "wpic:mt-3 wpic:border-t wpic:border-zinc-100 wpic:pt-3 wpic:dark:border-zinc-800" }, ne = { class: "wpic:mb-2 wpic:flex wpic:items-center wpic:gap-2 wpic:text-sm wpic:text-zinc-500" }, ee = { class: "wpic:rounded wpic:bg-zinc-100 wpic:px-2 wpic:py-0.5 wpic:dark:bg-zinc-800" }, ce = { class: "wpic:rounded wpic:bg-zinc-100 wpic:px-2 wpic:py-0.5 wpic:dark:bg-zinc-800" }, te = ["disabled"],
|
|
6836
|
+
}, Un = { class: "wpic:mb-3 wpic:flex wpic:items-center wpic:justify-between" }, Yn = ["aria-label"], qn = { class: "wpic:font-medium wpic:text-zinc-900 wpic:dark:text-zinc-100" }, Qn = ["aria-label"], Jn = { class: "wpic:mb-1 wpic:grid wpic:grid-cols-7 wpic:text-center" }, Xn = { class: "wpic:grid wpic:grid-cols-7 wpic:gap-y-1" }, Gn = ["aria-label", "aria-pressed", "data-in-range", "data-today", "onClick"], _n = { class: "wpic:mt-3 wpic:border-t wpic:border-zinc-100 wpic:pt-3 wpic:dark:border-zinc-800" }, ne = { class: "wpic:mb-2 wpic:flex wpic:items-center wpic:gap-2 wpic:text-sm wpic:text-zinc-500" }, ee = { class: "wpic:rounded wpic:bg-zinc-100 wpic:px-2 wpic:py-0.5 wpic:dark:bg-zinc-800" }, ce = { class: "wpic:rounded wpic:bg-zinc-100 wpic:px-2 wpic:py-0.5 wpic:dark:bg-zinc-800" }, te = ["disabled"], Hi = /* @__PURE__ */ X({
|
|
6832
6837
|
__name: "WDateRangePicker",
|
|
6833
6838
|
props: {
|
|
6834
6839
|
locale: {},
|
|
@@ -6855,7 +6860,7 @@ const N7 = { class: "wpic-tag-input" }, K7 = {
|
|
|
6855
6860
|
},
|
|
6856
6861
|
emits: ["update:modelValue"],
|
|
6857
6862
|
setup(n, { emit: w }) {
|
|
6858
|
-
const c = n, o = w, d =
|
|
6863
|
+
const c = n, o = w, d = H(!1), l = H(null), s = H(c.modelValue?.preset ?? null), f = H(c.modelValue?.since ?? ""), k = H(c.modelValue?.until ?? ""), g = /* @__PURE__ */ new Date(), a = H(new Date(g.getFullYear(), g.getMonth(), 1)), T = H("from");
|
|
6859
6864
|
function S(J) {
|
|
6860
6865
|
return `${J.getFullYear()}-${String(J.getMonth() + 1).padStart(2, "0")}-${String(J.getDate()).padStart(2, "0")}`;
|
|
6861
6866
|
}
|
|
@@ -6930,7 +6935,7 @@ const N7 = { class: "wpic-tag-input" }, K7 = {
|
|
|
6930
6935
|
function I(J) {
|
|
6931
6936
|
return !f.value || !k.value ? !1 : J > f.value && J < k.value;
|
|
6932
6937
|
}
|
|
6933
|
-
function
|
|
6938
|
+
function F(J) {
|
|
6934
6939
|
return J === S(g);
|
|
6935
6940
|
}
|
|
6936
6941
|
function c1(J) {
|
|
@@ -7037,7 +7042,7 @@ const N7 = { class: "wpic-tag-input" }, K7 = {
|
|
|
7037
7042
|
"aria-label": G.date,
|
|
7038
7043
|
"aria-pressed": O(G.date),
|
|
7039
7044
|
"data-in-range": I(G.date) || void 0,
|
|
7040
|
-
"data-today":
|
|
7045
|
+
"data-today": F(G.date) || void 0,
|
|
7041
7046
|
type: "button",
|
|
7042
7047
|
onClick: (g1) => c1(G.date),
|
|
7043
7048
|
class: b([
|
|
@@ -7046,7 +7051,7 @@ const N7 = { class: "wpic-tag-input" }, K7 = {
|
|
|
7046
7051
|
G.inMonth && !O(G.date) && !I(G.date) && "wpic:hover:bg-zinc-100 wpic:dark:hover:bg-zinc-700 wpic:text-zinc-900 wpic:dark:text-zinc-100",
|
|
7047
7052
|
O(G.date) && "wpic:bg-[#85C531] wpic:text-white wpic:font-semibold",
|
|
7048
7053
|
I(G.date) && "wpic:bg-[#85C531]/15 wpic:text-zinc-900 wpic:dark:text-zinc-100 wpic:rounded-none",
|
|
7049
|
-
|
|
7054
|
+
F(G.date) && !O(G.date) && "wpic:ring-1 wpic:ring-[#85C531]"
|
|
7050
7055
|
])
|
|
7051
7056
|
}, m(G.day), 11, Gn))), 128))
|
|
7052
7057
|
]),
|
|
@@ -7070,7 +7075,7 @@ const N7 = { class: "wpic-tag-input" }, K7 = {
|
|
|
7070
7075
|
}, 8, ["open", "anchor"])
|
|
7071
7076
|
]));
|
|
7072
7077
|
}
|
|
7073
|
-
}), ie = { class: "wpic:inline-flex wpic:w-full wpic:min-w-0" }, le = ["disabled", "aria-label", "aria-expanded"], ae = { class: "wpic:min-w-0 wpic:flex-1 wpic:truncate wpic:text-left wpic:capitalize" }, oe = { class: "wpic:p-3" }, se = { class: "wpic:mb-3 wpic:flex wpic:items-center wpic:justify-between" }, re = { class: "wpic:font-semibold wpic:text-zinc-900 wpic:dark:text-zinc-100" }, pe = { class: "wpic:grid wpic:grid-cols-3 wpic:gap-1" }, de = ["disabled", "onClick"],
|
|
7078
|
+
}), ie = { class: "wpic:inline-flex wpic:w-full wpic:min-w-0" }, le = ["disabled", "aria-label", "aria-expanded"], ae = { class: "wpic:min-w-0 wpic:flex-1 wpic:truncate wpic:text-left wpic:capitalize" }, oe = { class: "wpic:p-3" }, se = { class: "wpic:mb-3 wpic:flex wpic:items-center wpic:justify-between" }, re = { class: "wpic:font-semibold wpic:text-zinc-900 wpic:dark:text-zinc-100" }, pe = { class: "wpic:grid wpic:grid-cols-3 wpic:gap-1" }, de = ["disabled", "onClick"], Fi = /* @__PURE__ */ X({
|
|
7074
7079
|
__name: "WMonthPicker",
|
|
7075
7080
|
props: {
|
|
7076
7081
|
modelValue: { default: null },
|
|
@@ -7083,7 +7088,7 @@ const N7 = { class: "wpic-tag-input" }, K7 = {
|
|
|
7083
7088
|
},
|
|
7084
7089
|
emits: ["update:modelValue", "change"],
|
|
7085
7090
|
setup(n, { emit: w }) {
|
|
7086
|
-
const c = n, o = w, d =
|
|
7091
|
+
const c = n, o = w, d = H(!1), l = H(null), s = /* @__PURE__ */ new Date(), f = H(s.getFullYear());
|
|
7087
7092
|
function k(y) {
|
|
7088
7093
|
if (!y || !/^\d{4}-\d{2}$/.test(y)) return null;
|
|
7089
7094
|
const [z, Z] = y.split("-").map(Number);
|
|
@@ -7251,7 +7256,7 @@ const N7 = { class: "wpic-tag-input" }, K7 = {
|
|
|
7251
7256
|
}, m(f.label), 11, ve))), 128))
|
|
7252
7257
|
], 2));
|
|
7253
7258
|
}
|
|
7254
|
-
}), me = ["width", "height", "fill"], fe = ["width", "height", "fill"], be = ["width", "height"], ge = ["width", "height", "fill"], ze = ["width", "height", "fill"], Ce = ["width", "height", "fill"], ke = ["width", "height", "fill"], xe = ["width", "height", "fill"], ye = ["width", "height", "fill"], Me = ["width", "height"], Ve = ["width", "height"], Le = ["width", "height", "fill"], Be = ["width", "height"], $e = ["width", "height"], Ae = ["width", "height", "fill"], Se = ["width", "height", "fill"],
|
|
7259
|
+
}), me = ["width", "height", "fill"], fe = ["width", "height", "fill"], be = ["width", "height"], ge = ["width", "height", "fill"], ze = ["width", "height", "fill"], Ce = ["width", "height", "fill"], ke = ["width", "height", "fill"], xe = ["width", "height", "fill"], ye = ["width", "height", "fill"], Me = ["width", "height"], Ve = ["width", "height"], Le = ["width", "height", "fill"], Be = ["width", "height"], $e = ["width", "height"], Ae = ["width", "height", "fill"], Se = ["width", "height", "fill"], He = ["width", "height"], Fe = ["width", "height"], Pe = ["width", "height"], Te = ["width", "height"], je = ["width", "height"], Ee = { key: 0 }, We = ["width", "height"], De = { key: 0 }, Ie = ["width", "height"], Re = ["width", "height"], Ze = ["width", "height"], Ne = ["width", "height"], Ke = {
|
|
7255
7260
|
key: 0,
|
|
7256
7261
|
transform: "translate(1180,0) translate(0,130) scale(0.1,-0.1)",
|
|
7257
7262
|
stroke: "none"
|
|
@@ -7259,7 +7264,7 @@ const N7 = { class: "wpic-tag-input" }, K7 = {
|
|
|
7259
7264
|
key: 1,
|
|
7260
7265
|
transform: "translate(0,1104) scale(0.1,-0.1)",
|
|
7261
7266
|
stroke: "none"
|
|
7262
|
-
}, Je = ["width", "height", "fill"], Xe = { transform: "translate(-13.602659,303.010650) scale(0.1,-0.1)" }, Ge = { key: 0 }, _e = ["width", "height"], nc = ["fill"], ec = ["fill"], cc = ["fill"], tc = ["fill"], ic = ["width", "height"], lc = ["width", "height"], ac = ["width", "height", "fill"], oc = ["width", "height", "fill"], sc = ["width", "height", "fill"], rc = ["width", "height", "fill"], pc = ["width", "height", "fill"], dc = ["width", "height"], wc = ["width", "height"], uc = ["width", "height"], hc = ["width", "height"], vc = ["width", "height"], mc = ["width", "height"], fc = ["width", "height"], bc = ["width", "height"], gc = ["width", "height"], zc = ["width", "height"], Cc = ["width", "height"], kc = ["width", "height"], xc = ["width", "height"], yc = ["width", "height"], Mc = ["width", "height"], Vc = ["width", "height"], Lc = ["width", "height"], Bc = ["width", "height"], $c = ["width", "height"], Ac = ["width", "height"], Sc = ["width", "height"],
|
|
7267
|
+
}, Je = ["width", "height", "fill"], Xe = { transform: "translate(-13.602659,303.010650) scale(0.1,-0.1)" }, Ge = { key: 0 }, _e = ["width", "height"], nc = ["fill"], ec = ["fill"], cc = ["fill"], tc = ["fill"], ic = ["width", "height"], lc = ["width", "height"], ac = ["width", "height", "fill"], oc = ["width", "height", "fill"], sc = ["width", "height", "fill"], rc = ["width", "height", "fill"], pc = ["width", "height", "fill"], dc = ["width", "height"], wc = ["width", "height"], uc = ["width", "height"], hc = ["width", "height"], vc = ["width", "height"], mc = ["width", "height"], fc = ["width", "height"], bc = ["width", "height"], gc = ["width", "height"], zc = ["width", "height"], Cc = ["width", "height"], kc = ["width", "height"], xc = ["width", "height"], yc = ["width", "height"], Mc = ["width", "height"], Vc = ["width", "height"], Lc = ["width", "height"], Bc = ["width", "height"], $c = ["width", "height"], Ac = ["width", "height"], Sc = ["width", "height"], Hc = ["width", "height"], Fc = ["width", "height"], Pc = ["width", "height"], Tc = ["width", "height"], jc = ["width", "height"], Ec = ["width", "height"], Wc = ["width", "height"], Dc = ["width", "height"], Ic = ["width", "height"], Rc = ["width", "height"], Zc = ["width", "height"], Nc = ["width", "height"], Kc = ["width", "height"], Oc = ["width", "height"], Uc = ["width", "height"], Yc = ["width", "height"], qc = ["width", "height"], Qc = ["width", "height"], Jc = ["width", "height"], Xc = ["width", "height"], Gc = ["width", "height"], _c = ["width", "height"], nt = ["width", "height"], et = ["width", "height"], ct = ["width", "height"], tt = ["width", "height"], it = ["src", "width", "height"], lt = ["src", "width", "height"], at = ["width", "height"], ot = ["width", "height"], st = ["width", "height"], rt = ["width", "height"], pt = {
|
|
7263
7268
|
key: 91,
|
|
7264
7269
|
class: "wpic:text-[10px] wpic:font-bold wpic:leading-none wpic:shrink-0 wpic:opacity-60 wpic:uppercase"
|
|
7265
7270
|
}, dt = /* @__PURE__ */ X({
|
|
@@ -7578,7 +7583,7 @@ c249 -370 357 -505 565 -708 194 -189 303 -279 360 -296 67 -20 174 -18 231 4
|
|
|
7578
7583
|
d: "M80.4952 0.697644L62.9016 61.0506C90.4517 13.6362 119.339 55.4766 42.0364 115C145.208 61.8194 111.985 -11.0978 76.7881 37.0045L80.4952 0.697644Z",
|
|
7579
7584
|
fill: "#0B2240"
|
|
7580
7585
|
}, null, -1)
|
|
7581
|
-
])], 8,
|
|
7586
|
+
])], 8, He)) : s.value === "designforhealth" && n.mono ? (e(), t("svg", {
|
|
7582
7587
|
key: 17,
|
|
7583
7588
|
width: l.value,
|
|
7584
7589
|
height: l.value,
|
|
@@ -7588,7 +7593,7 @@ c249 -370 357 -505 565 -708 194 -189 303 -279 360 -296 67 -20 174 -18 231 4
|
|
|
7588
7593
|
}, [...a[17] || (a[17] = [
|
|
7589
7594
|
i("path", { d: "M74.4786 0L63.8232 37.0049C16.7753 42.1843 3.46613 94.6062 48.8428 89.012C-15.0694 106.584 -20.0021 30.5305 56.409 32.3717L74.4786 0Z" }, null, -1),
|
|
7590
7595
|
i("path", { d: "M80.4952 0.697644L62.9016 61.0506C90.4517 13.6362 119.339 55.4766 42.0364 115C145.208 61.8194 111.985 -11.0978 76.7881 37.0045L80.4952 0.697644Z" }, null, -1)
|
|
7591
|
-
])], 8,
|
|
7596
|
+
])], 8, Fe)) : s.value === "topologie" && !n.mono ? (e(), t("svg", {
|
|
7592
7597
|
key: 18,
|
|
7593
7598
|
width: l.value,
|
|
7594
7599
|
height: l.value * (224 / 464),
|
|
@@ -11776,7 +11781,7 @@ c-27 -5 -68 -14 -90 -20 -42 -12 -156 -65 -165 -77 -11 -16 -84 -60 -92 -55
|
|
|
11776
11781
|
62 108 88 0 9 5 16 10 16 7 0 10 178 10 514 0 514 0 514 -22 556 -31 58 -84
|
|
11777
11782
|
90 -148 90 -27 0 -50 -4 -50 -10z` })
|
|
11778
11783
|
], -1)
|
|
11779
|
-
])], 8,
|
|
11784
|
+
])], 8, Hc)) : s.value === "renzos" && n.mono ? (e(), t("svg", {
|
|
11780
11785
|
key: 60,
|
|
11781
11786
|
width: l.value * (2400 / 1200),
|
|
11782
11787
|
height: l.value,
|
|
@@ -12470,7 +12475,7 @@ c-27 -5 -68 -14 -90 -20 -42 -12 -156 -65 -165 -77 -11 -16 -84 -60 -92 -55
|
|
|
12470
12475
|
62 108 88 0 9 5 16 10 16 7 0 10 178 10 514 0 514 0 514 -22 556 -31 58 -84
|
|
12471
12476
|
90 -148 90 -27 0 -50 -4 -50 -10z` })
|
|
12472
12477
|
], -1)
|
|
12473
|
-
])], 8,
|
|
12478
|
+
])], 8, Fc)) : s.value === "goodr" && !n.mono ? (e(), t("svg", {
|
|
12474
12479
|
key: 61,
|
|
12475
12480
|
width: l.value * (2400 / 868),
|
|
12476
12481
|
height: l.value,
|
|
@@ -17909,9 +17914,9 @@ c36 -78 76 -117 152 -146 53 -20 76 -23 190 -22 137 2 262 27 295 59 10 11 17
|
|
|
17909
17914
|
colors: {}
|
|
17910
17915
|
},
|
|
17911
17916
|
setup(n) {
|
|
17912
|
-
const w = n, c = V2(), o =
|
|
17917
|
+
const w = n, c = V2(), o = H("light");
|
|
17913
17918
|
let d;
|
|
17914
|
-
|
|
17919
|
+
F2(() => {
|
|
17915
17920
|
const f = () => {
|
|
17916
17921
|
o.value = document.documentElement.classList.contains("dark") ? "dark" : "light";
|
|
17917
17922
|
};
|
|
@@ -17919,7 +17924,7 @@ c36 -78 76 -117 152 -146 53 -20 76 -23 190 -22 137 2 262 27 295 59 10 11 17
|
|
|
17919
17924
|
}), s2(() => d?.disconnect());
|
|
17920
17925
|
const l = x(() => w.mode === "auto" ? c.value?.mode ?? o.value : w.mode), s = x(() => ({
|
|
17921
17926
|
mode: l.value,
|
|
17922
|
-
variables:
|
|
17927
|
+
variables: F5(l.value, w.colors?.[l.value])
|
|
17923
17928
|
}));
|
|
17924
17929
|
return g2(y0, s), (f, k) => (e(), t("div", {
|
|
17925
17930
|
class: b({ "wpic-theme": s.value, dark: s.value?.mode === "dark" }),
|
|
@@ -17932,10 +17937,10 @@ c36 -78 76 -117 152 -146 53 -20 76 -23 190 -22 137 2 262 27 295 59 10 11 17
|
|
|
17932
17937
|
}), Bt = { class: "wpic-page-header wpic:min-w-0 wpic:text-[var(--wpic-legacy-text-main)]" }, $t = { class: "wpic:flex wpic:flex-wrap wpic:items-start wpic:justify-between wpic:gap-x-6 wpic:gap-y-4" }, At = { class: "wpic:min-w-0 wpic:flex-1 wpic:basis-64" }, St = {
|
|
17933
17938
|
key: 0,
|
|
17934
17939
|
class: "wpic:mt-2 wpic:max-w-3xl wpic:text-sm wpic:leading-6 wpic:text-[var(--wpic-legacy-text-muted)]"
|
|
17935
|
-
},
|
|
17940
|
+
}, Ht = {
|
|
17936
17941
|
key: 1,
|
|
17937
17942
|
class: "wpic:mt-2 wpic:text-xs wpic:text-[var(--wpic-legacy-text-muted)]"
|
|
17938
|
-
},
|
|
17943
|
+
}, Ft = {
|
|
17939
17944
|
key: 0,
|
|
17940
17945
|
class: "wpic:flex wpic:max-w-full wpic:flex-wrap wpic:items-center wpic:gap-2 wpic:[&>*]:max-w-full"
|
|
17941
17946
|
}, Pt = {
|
|
@@ -17959,11 +17964,11 @@ c36 -78 76 -117 152 -146 53 -20 76 -23 190 -22 137 2 262 27 295 59 10 11 17
|
|
|
17959
17964
|
_: 1
|
|
17960
17965
|
})),
|
|
17961
17966
|
n.description ? (e(), t("p", St, m(n.description), 1)) : h("", !0),
|
|
17962
|
-
w.$slots.metadata ? (e(), t("div",
|
|
17967
|
+
w.$slots.metadata ? (e(), t("div", Ht, [
|
|
17963
17968
|
Q(w.$slots, "metadata")
|
|
17964
17969
|
])) : h("", !0)
|
|
17965
17970
|
]),
|
|
17966
|
-
w.$slots.actions ? (e(), t("div",
|
|
17971
|
+
w.$slots.actions ? (e(), t("div", Ft, [
|
|
17967
17972
|
Q(w.$slots, "actions")
|
|
17968
17973
|
])) : h("", !0)
|
|
17969
17974
|
]),
|
|
@@ -18006,7 +18011,7 @@ export {
|
|
|
18006
18011
|
Nt as WChatPanel,
|
|
18007
18012
|
u0 as WCheckbox,
|
|
18008
18013
|
yn as WDatePicker,
|
|
18009
|
-
|
|
18014
|
+
Hi as WDateRangePicker,
|
|
18010
18015
|
ki as WEmptyState,
|
|
18011
18016
|
Ot as WEmptyValue,
|
|
18012
18017
|
zi as WFileList,
|
|
@@ -18018,7 +18023,7 @@ export {
|
|
|
18018
18023
|
x0 as WInput,
|
|
18019
18024
|
Qt as WLoader,
|
|
18020
18025
|
Xt as WModal,
|
|
18021
|
-
|
|
18026
|
+
Fi as WMonthPicker,
|
|
18022
18027
|
P6 as WOptionPopover,
|
|
18023
18028
|
Di as WPageHeader,
|
|
18024
18029
|
Kt as WPagination,
|
|
@@ -18044,13 +18049,13 @@ export {
|
|
|
18044
18049
|
Mi as WTextarea,
|
|
18045
18050
|
Wi as WThemeProvider,
|
|
18046
18051
|
Jt as WToggle,
|
|
18047
|
-
|
|
18052
|
+
F8 as WTooltip,
|
|
18048
18053
|
j8 as WTrendBadge,
|
|
18049
18054
|
ti as WTwoColumnFormSection,
|
|
18050
18055
|
ei as WWorkflowNav,
|
|
18051
18056
|
Zt as chartPalettes,
|
|
18052
|
-
|
|
18053
|
-
|
|
18057
|
+
F5 as themeVariables,
|
|
18058
|
+
H5 as ui5Theme,
|
|
18054
18059
|
Z7 as useRecentItems,
|
|
18055
18060
|
g9 as useToastStore,
|
|
18056
18061
|
V2 as useWTheme
|