@bluerobotics/bluevue 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +113 -0
- package/dist/bluevue.js +1176 -0
- package/dist/components/BlueButtonGroup.vue.d.ts +101 -0
- package/dist/components/BlueExpansiblePanel.vue.d.ts +38 -0
- package/dist/components/BlueInput.vue.d.ts +70 -0
- package/dist/components/BlueLoadingDialog.vue.d.ts +27 -0
- package/dist/components/BlueMenu.vue.d.ts +57 -0
- package/dist/components/BluePromptDialog.vue.d.ts +37 -0
- package/dist/components/BlueSelect.vue.d.ts +76 -0
- package/dist/components/BlueSlider.vue.d.ts +51 -0
- package/dist/components/BlueSwitch.vue.d.ts +39 -0
- package/dist/composables/useBluePopover.d.ts +38 -0
- package/dist/index.d.ts +10 -0
- package/dist/style.css +2 -0
- package/package.json +64 -0
- package/src/assets/br-logo-white.svg +1 -0
- package/src/components/BlueButtonGroup.vue +382 -0
- package/src/components/BlueExpansiblePanel.vue +72 -0
- package/src/components/BlueInput.vue +247 -0
- package/src/components/BlueLoadingDialog.vue +76 -0
- package/src/components/BlueMenu.vue +119 -0
- package/src/components/BluePromptDialog.vue +151 -0
- package/src/components/BlueSelect.vue +236 -0
- package/src/components/BlueSlider.vue +464 -0
- package/src/components/BlueSwitch.vue +117 -0
- package/src/composables/useBluePopover.ts +153 -0
- package/src/index.ts +11 -0
- package/src/styles/bluevue.css +124 -0
- package/src/styles/bundled.css +9 -0
package/dist/bluevue.js
ADDED
|
@@ -0,0 +1,1176 @@
|
|
|
1
|
+
import { ref as h, computed as T, nextTick as r2, defineComponent as Y, onMounted as s2, onBeforeUnmount as k2, watch as U, openBlock as i, createElementBlock as c, createElementVNode as t, normalizeClass as m, toDisplayString as g, renderSlot as l2, createCommentVNode as C, normalizeStyle as W, Fragment as X, renderList as t2, withModifiers as u2, mergeProps as $2, unref as I, createVNode as M2, Transition as I2, withCtx as R2, withDirectives as c2, vShow as P2, withKeys as e2, createBlock as L2, createTextVNode as D2, vModelText as y2 } from "vue";
|
|
2
|
+
import { useFloating as E2, autoUpdate as A2, offset as z2, flip as j2, shift as N2, size as O2 } from "@floating-ui/vue";
|
|
3
|
+
let W2 = 0, d2 = !1, g2 = !1;
|
|
4
|
+
const U2 = () => {
|
|
5
|
+
if (g2 || typeof document > "u") return;
|
|
6
|
+
g2 = !0;
|
|
7
|
+
const M = () => {
|
|
8
|
+
d2 = !1;
|
|
9
|
+
};
|
|
10
|
+
document.addEventListener("pointerdown", () => {
|
|
11
|
+
d2 = !0;
|
|
12
|
+
}, !0), document.addEventListener("pointerup", M, !0), document.addEventListener("pointercancel", M, !0);
|
|
13
|
+
}, K2 = () => new Promise((M) => {
|
|
14
|
+
const F = () => {
|
|
15
|
+
document.removeEventListener("pointerup", F), document.removeEventListener("pointercancel", F), setTimeout(M);
|
|
16
|
+
};
|
|
17
|
+
document.addEventListener("pointerup", F), document.addEventListener("pointercancel", F);
|
|
18
|
+
});
|
|
19
|
+
function m2(M = {}) {
|
|
20
|
+
U2();
|
|
21
|
+
const F = h(null), e = h(null), b = h(!1), s = `bluevue-popover-${++W2}`, r = h(null), f = T(() => {
|
|
22
|
+
if (!r.value) return null;
|
|
23
|
+
const [$, w] = r.value;
|
|
24
|
+
return { getBoundingClientRect: () => new DOMRect($, w, 0, 0) };
|
|
25
|
+
}), a = T(() => b.value ? f.value ?? F.value : null), { floatingStyles: x, isPositioned: p } = E2(a, e, {
|
|
26
|
+
// Stated so isPositioned drops back to false on close, and a second open is held invisible
|
|
27
|
+
// until it has been placed rather than showing for a frame at wherever it last was.
|
|
28
|
+
open: b,
|
|
29
|
+
placement: M.placement ?? "bottom-end",
|
|
30
|
+
strategy: "fixed",
|
|
31
|
+
whileElementsMounted: A2,
|
|
32
|
+
middleware: [
|
|
33
|
+
z2(4),
|
|
34
|
+
j2({ padding: 8 }),
|
|
35
|
+
N2({ padding: 8 }),
|
|
36
|
+
...M.matchAnchorWidth ? [O2({
|
|
37
|
+
apply: ({ rects: $, elements: w }) => {
|
|
38
|
+
w.floating.style.minWidth = `${$.reference.width}px`;
|
|
39
|
+
}
|
|
40
|
+
})] : []
|
|
41
|
+
]
|
|
42
|
+
});
|
|
43
|
+
let d = 0;
|
|
44
|
+
return {
|
|
45
|
+
anchorRef: F,
|
|
46
|
+
popoverRef: e,
|
|
47
|
+
popoverId: s,
|
|
48
|
+
activatorProps: { popovertarget: s },
|
|
49
|
+
isOpen: b,
|
|
50
|
+
isPositioned: p,
|
|
51
|
+
floatingStyles: x,
|
|
52
|
+
show: async ($) => {
|
|
53
|
+
const w = ++d;
|
|
54
|
+
if (r.value = $ ?? null, await r2(), d2 && await K2(), w !== d) return;
|
|
55
|
+
const S = e.value;
|
|
56
|
+
!S || S.matches(":popover-open") || S.showPopover();
|
|
57
|
+
},
|
|
58
|
+
hide: () => {
|
|
59
|
+
d += 1;
|
|
60
|
+
const $ = e.value;
|
|
61
|
+
$ != null && $.matches(":popover-open") ? $.hidePopover() : b.value = !1;
|
|
62
|
+
},
|
|
63
|
+
onToggle: ($) => {
|
|
64
|
+
b.value = $.newState === "open", b.value || (r.value = null);
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
const G2 = {
|
|
69
|
+
key: 0,
|
|
70
|
+
class: "min-w-0 max-w-[45%] shrink-0"
|
|
71
|
+
}, Y2 = ["title"], H2 = { key: 1 }, X2 = { class: "flex items-center min-w-0 shrink-[1000]" }, J2 = {
|
|
72
|
+
key: 0,
|
|
73
|
+
class: "relative group inline-flex items-center shrink-0 mr-2"
|
|
74
|
+
}, Q2 = { class: "absolute bottom-full mb-1 right-0 hidden group-hover:block w-max max-w-[280px] px-2 py-1 text-xs rounded bg-gray-700 text-white z-[1000]" }, Z2 = /* @__PURE__ */ t("div", {
|
|
75
|
+
id: "border-releif",
|
|
76
|
+
class: "absolute left-[-20px] top-0 h-full w-[6px] bg-[#6699cc] z-[20] pointer-events-none"
|
|
77
|
+
}, null, -1), e0 = ["disabled", "title", "onClick", "onContextmenu", "onPointerdown"], t0 = { class: "relative group inline-block min-w-0" }, l0 = {
|
|
78
|
+
key: 0,
|
|
79
|
+
class: "absolute bottom-full mb-1 left-1/2 -translate-x-1/2 hidden group-hover:block whitespace-no-wrap px-2 py-1 text-xs rounded bg-gray-700 text-white"
|
|
80
|
+
}, n0 = {
|
|
81
|
+
key: 0,
|
|
82
|
+
class: "w-[1px] shrink-0 bg-[#FFFFFF22] my-2"
|
|
83
|
+
}, o0 = {
|
|
84
|
+
key: 0,
|
|
85
|
+
class: "w-[1px] shrink-0 bg-[#FFFFFF22] my-2 mr-[3px]"
|
|
86
|
+
}, s0 = /* @__PURE__ */ t("span", { class: "self-center mdi mdi-menu-right text-[20px] mr-[2px] opacity-80" }, null, -1), a0 = [
|
|
87
|
+
s0
|
|
88
|
+
], i0 = ["id"], r0 = ["disabled", "onClick"], u0 = 500, c0 = 850, d0 = 24, we = /* @__PURE__ */ Y({
|
|
89
|
+
__name: "BlueButtonGroup",
|
|
90
|
+
props: {
|
|
91
|
+
buttonItems: {},
|
|
92
|
+
buttonsMenu: {},
|
|
93
|
+
disabled: { type: Boolean },
|
|
94
|
+
theme: {},
|
|
95
|
+
type: {},
|
|
96
|
+
height: {},
|
|
97
|
+
label: {},
|
|
98
|
+
infoTooltip: {},
|
|
99
|
+
density: {}
|
|
100
|
+
},
|
|
101
|
+
emits: ["update:selected", "context-menu"],
|
|
102
|
+
setup(M, { emit: F }) {
|
|
103
|
+
const e = M, b = F, s = h([]), {
|
|
104
|
+
anchorRef: r,
|
|
105
|
+
popoverRef: f,
|
|
106
|
+
popoverId: a,
|
|
107
|
+
activatorProps: x,
|
|
108
|
+
isPositioned: p,
|
|
109
|
+
floatingStyles: d,
|
|
110
|
+
hide: _,
|
|
111
|
+
onToggle: P
|
|
112
|
+
} = m2();
|
|
113
|
+
let E = null, $ = !1;
|
|
114
|
+
const w = {
|
|
115
|
+
compact: { class: "px-2", total: 16 },
|
|
116
|
+
regular: { class: "px-3", total: 24 },
|
|
117
|
+
comfortable: { class: "px-4", total: 32 }
|
|
118
|
+
}, S = h(null), B = h(null), o = h(null), y = h(!1), A = h(!1);
|
|
119
|
+
let u = null;
|
|
120
|
+
const R = () => {
|
|
121
|
+
const n = o.value, q = S.value;
|
|
122
|
+
if (!n || !q) return;
|
|
123
|
+
const L = n.querySelectorAll("[data-bbg-label]"), j = w[e.density || "comfortable"].total;
|
|
124
|
+
let k = 0;
|
|
125
|
+
L.forEach((O) => {
|
|
126
|
+
k += O.scrollWidth + j;
|
|
127
|
+
}), k += Math.max(0, L.length - 1), y.value = k > c0;
|
|
128
|
+
let D = B.value ? B.value.scrollWidth + d0 : 0;
|
|
129
|
+
for (const O of Array.from(q.children))
|
|
130
|
+
O.contains(n) && (D += O.clientWidth - n.clientWidth);
|
|
131
|
+
A.value = k > q.clientWidth - D;
|
|
132
|
+
}, z = () => {
|
|
133
|
+
const n = e.buttonItems;
|
|
134
|
+
if (e.type === "switch") {
|
|
135
|
+
const q = n.findIndex((j) => j.preSelected), L = q >= 0 ? q : 0;
|
|
136
|
+
s.value = n.map((j, k) => k === L);
|
|
137
|
+
} else
|
|
138
|
+
s.value = n.map((q) => !!q.preSelected);
|
|
139
|
+
b("update:selected", s.value);
|
|
140
|
+
}, N = (n) => {
|
|
141
|
+
var L, j;
|
|
142
|
+
if (e.disabled || e.buttonItems[n].disabled) return;
|
|
143
|
+
const q = e.buttonItems[n];
|
|
144
|
+
e.type === "switch" ? s.value[n] || (s.value = s.value.map((k, D) => D === n), (L = q.onSelected) == null || L.call(q)) : (s.value[n] = !s.value[n], s.value[n] && ((j = q.onSelected) == null || j.call(q))), b("update:selected", s.value);
|
|
145
|
+
}, Q = (n, q) => {
|
|
146
|
+
e.disabled || e.buttonItems[n].disabled || b("context-menu", { item: e.buttonItems[n], index: n, x: q.clientX, y: q.clientY });
|
|
147
|
+
}, G = () => {
|
|
148
|
+
E !== null && (clearTimeout(E), E = null);
|
|
149
|
+
}, n2 = (n, q) => {
|
|
150
|
+
if (e.disabled || e.buttonItems[n].disabled) return;
|
|
151
|
+
G(), $ = !1;
|
|
152
|
+
const { clientX: L, clientY: j } = q;
|
|
153
|
+
E = window.setTimeout(() => {
|
|
154
|
+
E = null, $ = !0, b("context-menu", { item: e.buttonItems[n], index: n, x: L, y: j });
|
|
155
|
+
}, u0);
|
|
156
|
+
}, a2 = (n) => {
|
|
157
|
+
if ($) {
|
|
158
|
+
$ = !1;
|
|
159
|
+
return;
|
|
160
|
+
}
|
|
161
|
+
e.buttonItems[n].disabled || N(n);
|
|
162
|
+
}, J = (n) => {
|
|
163
|
+
n.action(), _();
|
|
164
|
+
};
|
|
165
|
+
return s2(() => {
|
|
166
|
+
var n;
|
|
167
|
+
z(), r2(R), (n = document.fonts) == null || n.ready.then(R), typeof ResizeObserver < "u" && o.value && (u = new ResizeObserver(() => R()), u.observe(o.value));
|
|
168
|
+
}), k2(() => {
|
|
169
|
+
u == null || u.disconnect(), G();
|
|
170
|
+
}), U(
|
|
171
|
+
() => e.buttonItems.length,
|
|
172
|
+
z,
|
|
173
|
+
{ deep: !0, immediate: !0 }
|
|
174
|
+
), U(
|
|
175
|
+
() => e.buttonItems.map((n) => n.name).join("|"),
|
|
176
|
+
() => r2(R)
|
|
177
|
+
), (n, q) => {
|
|
178
|
+
var L, j;
|
|
179
|
+
return i(), c("div", {
|
|
180
|
+
ref_key: "rowRef",
|
|
181
|
+
ref: S,
|
|
182
|
+
class: "flex w-full justify-between items-center"
|
|
183
|
+
}, [
|
|
184
|
+
n.label ? (i(), c("div", G2, [
|
|
185
|
+
t("label", {
|
|
186
|
+
ref_key: "labelRef",
|
|
187
|
+
ref: B,
|
|
188
|
+
class: m(["block truncate text-start mr-6", n.theme === "dark" ? "text-white" : "text-black"]),
|
|
189
|
+
title: n.label
|
|
190
|
+
}, g(n.label), 11, Y2)
|
|
191
|
+
])) : (i(), c("div", H2)),
|
|
192
|
+
l2(n.$slots, "insetElement"),
|
|
193
|
+
t("div", X2, [
|
|
194
|
+
n.infoTooltip ? (i(), c("div", J2, [
|
|
195
|
+
t("span", {
|
|
196
|
+
class: m(["mdi mdi-information-outline text-[16px] opacity-60 cursor-help", n.theme === "dark" ? "text-white" : "text-black"])
|
|
197
|
+
}, null, 2),
|
|
198
|
+
t("div", Q2, g(n.infoTooltip), 1)
|
|
199
|
+
])) : C("", !0),
|
|
200
|
+
t("div", {
|
|
201
|
+
ref_key: "trackRef",
|
|
202
|
+
ref: o,
|
|
203
|
+
class: m(["relative flex min-w-0 justify-end overflow-hidden rounded-[6px] bluevue-elevation-1 z-[666]", [n.theme === "dark" ? "bg-[#464646AA]" : "bg-[#00000011]", n.disabled ? "opacity-30 pointer-events-none" : ""]]),
|
|
204
|
+
style: W({ height: n.height || (n.density === "compact" ? "24px" : "30px") })
|
|
205
|
+
}, [
|
|
206
|
+
Z2,
|
|
207
|
+
(i(!0), c(X, null, t2(n.buttonItems, (k, D) => (i(), c(X, {
|
|
208
|
+
key: k.name
|
|
209
|
+
}, [
|
|
210
|
+
t("button", {
|
|
211
|
+
disabled: n.disabled || k.disabled,
|
|
212
|
+
title: k.name,
|
|
213
|
+
class: m(["flex min-w-0 items-center justify-center text-sm font-medium transition-colors duration-200", [
|
|
214
|
+
// A group with no room left falls back to the tightest inset whatever the
|
|
215
|
+
// density asks for, since the alternative is cutting into the names.
|
|
216
|
+
A.value ? w.compact.class : w[n.density || "comfortable"].class,
|
|
217
|
+
// The active choice is the one worth reading at a glance, so it keeps its full
|
|
218
|
+
// name and the rest give up the room a crowded group needs.
|
|
219
|
+
s.value[D] ? "shrink-0" : "",
|
|
220
|
+
s.value[D] ? "text-white" : n.theme === "dark" ? "text-[#ffffff99]" : "text-[#00000066]",
|
|
221
|
+
s.value[D] && n.type === "switch" ? "bluevue-elevation-5" : "",
|
|
222
|
+
n.disabled || k.disabled ? "cursor-not-allowed" : "cursor-pointer",
|
|
223
|
+
// Only the button's own state fades it: a disabled group is faded whole by the
|
|
224
|
+
// track below, and dimming twice over would leave the names unreadable.
|
|
225
|
+
k.disabled ? "opacity-30" : ""
|
|
226
|
+
]]),
|
|
227
|
+
style: W({ backgroundColor: s.value[D] ? k.activeColor || "var(--bluevue-primary)" : void 0 }),
|
|
228
|
+
onClick: (O) => a2(D),
|
|
229
|
+
onContextmenu: u2((O) => Q(D, O), ["prevent"]),
|
|
230
|
+
onPointerdown: (O) => n2(D, O),
|
|
231
|
+
onPointerup: G,
|
|
232
|
+
onPointerleave: G,
|
|
233
|
+
onPointercancel: G
|
|
234
|
+
}, [
|
|
235
|
+
t("div", t0, [
|
|
236
|
+
t("p", {
|
|
237
|
+
"data-bbg-label": "",
|
|
238
|
+
class: m(["truncate", [n.density === "compact" ? "text-[10px]" : "text-xs", y.value ? "max-w-[150px]" : ""]])
|
|
239
|
+
}, g(k.name), 3),
|
|
240
|
+
k.tooltip ? (i(), c("div", l0, g(k.tooltip), 1)) : C("", !0)
|
|
241
|
+
])
|
|
242
|
+
], 46, e0),
|
|
243
|
+
D < n.buttonItems.length - 1 ? (i(), c("div", n0)) : C("", !0)
|
|
244
|
+
], 64))), 128)),
|
|
245
|
+
(L = n.buttonsMenu) != null && L.length ? (i(), c("div", o0)) : C("", !0),
|
|
246
|
+
(j = n.buttonsMenu) != null && j.length ? (i(), c(X, { key: 1 }, [
|
|
247
|
+
t("button", $2({
|
|
248
|
+
ref_key: "menuAnchorRef",
|
|
249
|
+
ref: r
|
|
250
|
+
}, I(x), {
|
|
251
|
+
type: "button",
|
|
252
|
+
title: "More options",
|
|
253
|
+
class: ["shrink-0 px-0 flex items-center justify-center h-full cursor-pointer", n.theme === "dark" ? "text-white" : "text-black"]
|
|
254
|
+
}), a0, 16),
|
|
255
|
+
t("div", {
|
|
256
|
+
id: I(a),
|
|
257
|
+
ref_key: "menuPopoverRef",
|
|
258
|
+
ref: f,
|
|
259
|
+
popover: "",
|
|
260
|
+
class: "bluevue-popover",
|
|
261
|
+
style: W(I(d)),
|
|
262
|
+
onToggle: q[0] || (q[0] = //@ts-ignore
|
|
263
|
+
(...k) => I(P) && I(P)(...k))
|
|
264
|
+
}, [
|
|
265
|
+
t("ul", {
|
|
266
|
+
class: m(["bluevue-elevation-5 max-h-[60vh] overflow-y-auto border-[1px] rounded-[4px] border-[#FFFFFF22]", [
|
|
267
|
+
n.theme === "dark" ? "text-[#FFFFFF99] bg-[var(--bluevue-surface)]" : "text-black bg-white",
|
|
268
|
+
I(p) ? "opacity-100" : "opacity-0"
|
|
269
|
+
]])
|
|
270
|
+
}, [
|
|
271
|
+
(i(!0), c(X, null, t2(n.buttonsMenu, (k, D) => (i(), c("li", {
|
|
272
|
+
key: k.name
|
|
273
|
+
}, [
|
|
274
|
+
t("button", {
|
|
275
|
+
disabled: k.menuItemDisabled,
|
|
276
|
+
type: "button",
|
|
277
|
+
class: m(["block w-full text-left whitespace-nowrap px-4 py-2 text-[14px]", [
|
|
278
|
+
D < n.buttonsMenu.length - 1 ? "border-b border-white" : "",
|
|
279
|
+
n.theme === "dark" ? "hover:bg-[#333333]" : "hover:bg-gray-100",
|
|
280
|
+
k.menuItemDisabled ? "opacity-30 cursor-not-allowed" : "cursor-pointer"
|
|
281
|
+
]]),
|
|
282
|
+
onClick: (O) => J(k)
|
|
283
|
+
}, g(k.name), 11, r0)
|
|
284
|
+
]))), 128))
|
|
285
|
+
], 2)
|
|
286
|
+
], 44, i0)
|
|
287
|
+
], 64)) : C("", !0)
|
|
288
|
+
], 6)
|
|
289
|
+
])
|
|
290
|
+
], 512);
|
|
291
|
+
};
|
|
292
|
+
}
|
|
293
|
+
}), m0 = { class: "rounded-lg overflow-hidden" }, p0 = { class: "flex-1 flex items-center" }, f0 = ["title"], ke = /* @__PURE__ */ Y({
|
|
294
|
+
__name: "BlueExpansiblePanel",
|
|
295
|
+
props: {
|
|
296
|
+
title: {},
|
|
297
|
+
expanded: { type: Boolean },
|
|
298
|
+
theme: {}
|
|
299
|
+
},
|
|
300
|
+
emits: ["update:expanded"],
|
|
301
|
+
setup(M, { emit: F }) {
|
|
302
|
+
const e = M, b = F, s = h(e.expanded ?? !0), r = () => {
|
|
303
|
+
s.value = !s.value, b("update:expanded", s.value);
|
|
304
|
+
};
|
|
305
|
+
return U(
|
|
306
|
+
() => e.expanded,
|
|
307
|
+
(f) => {
|
|
308
|
+
f !== void 0 && (s.value = f);
|
|
309
|
+
},
|
|
310
|
+
{ immediate: !0 }
|
|
311
|
+
), (f, a) => (i(), c("div", m0, [
|
|
312
|
+
t("div", {
|
|
313
|
+
class: "flex items-center justify-between bg-transparent cursor-pointer select-none px-3 my-2",
|
|
314
|
+
onClick: r
|
|
315
|
+
}, [
|
|
316
|
+
t("div", p0, [
|
|
317
|
+
t("div", {
|
|
318
|
+
class: m(["flex-1 h-px", e.theme === "dark" ? "bg-[#ffffff22]" : "bg-[#00000033]"])
|
|
319
|
+
}, null, 2),
|
|
320
|
+
t("span", {
|
|
321
|
+
class: m(["mx-3 min-w-0 truncate text-sm font-medium opacity-60", e.theme === "dark" ? "text-white" : "text-black"]),
|
|
322
|
+
title: f.title
|
|
323
|
+
}, g(f.title), 11, f0),
|
|
324
|
+
t("div", {
|
|
325
|
+
class: m(["flex-1 h-px", e.theme === "dark" ? "bg-[#ffffff11]" : "bg-[#00000033]"])
|
|
326
|
+
}, null, 2)
|
|
327
|
+
]),
|
|
328
|
+
t("span", {
|
|
329
|
+
class: m(["mdi ml-3 text-[24px] leading-none opacity-40", [
|
|
330
|
+
s.value ? "mdi-menu-up" : "mdi-menu-down",
|
|
331
|
+
e.theme === "dark" ? "text-white" : "text-black"
|
|
332
|
+
]])
|
|
333
|
+
}, null, 2)
|
|
334
|
+
]),
|
|
335
|
+
M2(I2, { name: "bluevue-expand" }, {
|
|
336
|
+
default: R2(() => [
|
|
337
|
+
c2(t("div", {
|
|
338
|
+
class: m(["px-13 my-6 pb-2", e.theme === "dark" ? "border-[#555555]" : "border-[#dddddd]"])
|
|
339
|
+
}, [
|
|
340
|
+
l2(f.$slots, "default")
|
|
341
|
+
], 2), [
|
|
342
|
+
[P2, s.value]
|
|
343
|
+
])
|
|
344
|
+
]),
|
|
345
|
+
_: 3
|
|
346
|
+
})
|
|
347
|
+
]));
|
|
348
|
+
}
|
|
349
|
+
}), q0 = { class: "flex w-full justify-between items-center" }, v0 = {
|
|
350
|
+
key: 0,
|
|
351
|
+
class: "min-w-0 max-w-[45%] shrink-0"
|
|
352
|
+
}, h0 = ["for", "title"], b0 = { key: 1 }, x0 = {
|
|
353
|
+
key: 2,
|
|
354
|
+
class: "relative group inline-flex items-center shrink-0 mr-2 ml-auto"
|
|
355
|
+
}, y0 = { class: "absolute bottom-full mb-1 right-0 hidden group-hover:block w-max max-w-[280px] px-2 py-1 text-xs rounded bg-gray-700 text-white z-[1000]" }, g0 = { class: "flex flex-col items-end min-w-0 shrink-[1000]" }, w0 = ["id", "name", "value", "placeholder", "disabled", "autofocus", "inputmode"], k0 = {
|
|
356
|
+
key: 0,
|
|
357
|
+
class: "text-[14px] text-[var(--bluevue-error)]"
|
|
358
|
+
}, w2 = /* @__PURE__ */ Y({
|
|
359
|
+
__name: "BlueInput",
|
|
360
|
+
props: {
|
|
361
|
+
modelValue: {},
|
|
362
|
+
label: {},
|
|
363
|
+
name: {},
|
|
364
|
+
type: {},
|
|
365
|
+
suffix: {},
|
|
366
|
+
placeholder: {},
|
|
367
|
+
autofocus: { type: Boolean },
|
|
368
|
+
disabled: { type: Boolean },
|
|
369
|
+
theme: {},
|
|
370
|
+
height: {},
|
|
371
|
+
width: {},
|
|
372
|
+
infoTooltip: {},
|
|
373
|
+
min: {},
|
|
374
|
+
max: {},
|
|
375
|
+
step: {},
|
|
376
|
+
errorMessages: {}
|
|
377
|
+
},
|
|
378
|
+
emits: ["update:modelValue"],
|
|
379
|
+
setup(M, { emit: F }) {
|
|
380
|
+
const e = M, b = F, s = T(() => e.errorMessages && e.errorMessages.length > 0), r = T(() => /^[°′″'"]+$/.test(e.suffix ?? "")), f = T(() => e.theme === "dark" ? "#FFFFFF11" : "#00000011"), a = /^-?\d*\.?\d*$/, x = (o) => o == null ? "" : String(o), p = h(x(e.modelValue)), d = h(null), _ = h(!1);
|
|
381
|
+
s2(() => {
|
|
382
|
+
var o;
|
|
383
|
+
e.autofocus && ((o = d.value) == null || o.focus());
|
|
384
|
+
});
|
|
385
|
+
const P = (o) => {
|
|
386
|
+
if (e.type !== "number") return o;
|
|
387
|
+
if (o.trim() === "") return null;
|
|
388
|
+
const y = Number(o);
|
|
389
|
+
return Number.isFinite(y) ? y : null;
|
|
390
|
+
}, E = (o) => {
|
|
391
|
+
const y = e.min !== void 0 ? Math.max(o, e.min) : o;
|
|
392
|
+
return e.max !== void 0 ? Math.min(y, e.max) : y;
|
|
393
|
+
}, $ = (o) => {
|
|
394
|
+
const y = o.target;
|
|
395
|
+
if (e.type === "number" && !a.test(y.value)) {
|
|
396
|
+
y.value = p.value;
|
|
397
|
+
return;
|
|
398
|
+
}
|
|
399
|
+
p.value = y.value;
|
|
400
|
+
const A = P(p.value);
|
|
401
|
+
A === null && e.type === "number" || b("update:modelValue", A);
|
|
402
|
+
}, w = (o) => {
|
|
403
|
+
if (e.type !== "number" || e.disabled) return;
|
|
404
|
+
const y = e.step ?? 1, A = typeof e.modelValue == "number" ? e.modelValue : Number(p.value) || 0, u = (String(y).split(".")[1] ?? "").length, R = E(Number((A + o * y).toFixed(u)));
|
|
405
|
+
p.value = String(R), b("update:modelValue", R);
|
|
406
|
+
}, S = () => {
|
|
407
|
+
if (e.type === "number" && typeof e.modelValue == "number") {
|
|
408
|
+
const o = E(e.modelValue);
|
|
409
|
+
if (o !== e.modelValue) {
|
|
410
|
+
b("update:modelValue", o), p.value = String(o);
|
|
411
|
+
return;
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
p.value = x(e.modelValue);
|
|
415
|
+
}, B = () => {
|
|
416
|
+
_.value = !1, S();
|
|
417
|
+
};
|
|
418
|
+
return U(
|
|
419
|
+
() => e.modelValue,
|
|
420
|
+
(o) => {
|
|
421
|
+
P(p.value) !== o && (p.value = x(o));
|
|
422
|
+
}
|
|
423
|
+
), (o, y) => {
|
|
424
|
+
var A;
|
|
425
|
+
return i(), c("div", q0, [
|
|
426
|
+
o.label ? (i(), c("div", v0, [
|
|
427
|
+
t("label", {
|
|
428
|
+
for: o.name,
|
|
429
|
+
class: m(["block truncate text-start mr-6", o.theme === "dark" ? "text-white" : "text-black"]),
|
|
430
|
+
title: o.label
|
|
431
|
+
}, g(o.label), 11, h0)
|
|
432
|
+
])) : (i(), c("div", b0)),
|
|
433
|
+
l2(o.$slots, "insetElement"),
|
|
434
|
+
o.infoTooltip ? (i(), c("div", x0, [
|
|
435
|
+
t("span", {
|
|
436
|
+
class: m(["mdi mdi-information-outline text-[16px] opacity-60 cursor-help", o.theme === "dark" ? "text-white" : "text-black"])
|
|
437
|
+
}, null, 2),
|
|
438
|
+
t("div", y0, g(o.infoTooltip), 1)
|
|
439
|
+
])) : C("", !0),
|
|
440
|
+
t("div", g0, [
|
|
441
|
+
t("div", {
|
|
442
|
+
class: m(["relative flex items-center rounded-[6px] bluevue-inset-1 min-w-[90px] max-w-full", [
|
|
443
|
+
o.disabled ? "opacity-30 pointer-events-none" : "",
|
|
444
|
+
s.value ? "border-2 border-solid border-[var(--bluevue-error)]" : ""
|
|
445
|
+
]]),
|
|
446
|
+
style: W({
|
|
447
|
+
height: o.height || "30px",
|
|
448
|
+
width: o.width || "auto",
|
|
449
|
+
backgroundColor: f.value,
|
|
450
|
+
paddingTop: "2px"
|
|
451
|
+
})
|
|
452
|
+
}, [
|
|
453
|
+
t("input", {
|
|
454
|
+
id: o.name,
|
|
455
|
+
ref_key: "inputRef",
|
|
456
|
+
ref: d,
|
|
457
|
+
name: o.name,
|
|
458
|
+
type: "text",
|
|
459
|
+
value: p.value,
|
|
460
|
+
placeholder: o.placeholder,
|
|
461
|
+
disabled: o.disabled,
|
|
462
|
+
autofocus: o.autofocus,
|
|
463
|
+
inputmode: o.type === "number" ? "decimal" : void 0,
|
|
464
|
+
class: m(["w-full min-w-0 bg-transparent pl-4 text-sm font-medium outline-none", [
|
|
465
|
+
o.suffix ? "pr-1" : "pr-4",
|
|
466
|
+
o.theme === "dark" ? "text-white placeholder:text-[#ffffff44]" : "text-black placeholder:text-[#00000055]"
|
|
467
|
+
]]),
|
|
468
|
+
onInput: $,
|
|
469
|
+
onKeydown: [
|
|
470
|
+
y[0] || (y[0] = e2(u2((u) => w(1), ["prevent"]), ["up"])),
|
|
471
|
+
y[1] || (y[1] = e2(u2((u) => w(-1), ["prevent"]), ["down"])),
|
|
472
|
+
e2(S, ["enter"])
|
|
473
|
+
],
|
|
474
|
+
onFocus: y[2] || (y[2] = (u) => _.value = !0),
|
|
475
|
+
onBlur: B
|
|
476
|
+
}, null, 42, w0),
|
|
477
|
+
o.suffix ? (i(), c("span", {
|
|
478
|
+
key: 0,
|
|
479
|
+
class: m(["shrink-0 pr-4 pl-1 text-sm select-none", [
|
|
480
|
+
o.theme === "dark" ? "text-[#ffffff66]" : "text-[#00000066]",
|
|
481
|
+
r.value ? "translate-y-[0.22em]" : ""
|
|
482
|
+
]])
|
|
483
|
+
}, g(o.suffix), 3)) : C("", !0),
|
|
484
|
+
t("div", {
|
|
485
|
+
class: "pointer-events-none absolute inset-0 rounded-[6px]",
|
|
486
|
+
style: W({ border: `1px solid ${_.value ? "var(--bluevue-accent)" : "transparent"}` })
|
|
487
|
+
}, null, 4)
|
|
488
|
+
], 6),
|
|
489
|
+
s.value ? (i(), c("div", k0, g(((A = o.errorMessages) == null ? void 0 : A[0]) || ""), 1)) : C("", !0)
|
|
490
|
+
])
|
|
491
|
+
]);
|
|
492
|
+
};
|
|
493
|
+
}
|
|
494
|
+
}), $0 = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='400'%20height='400'%20viewBox='0%200%20400%20400'%3e%3cg%20fill='%23fff'%20fill-rule='evenodd'%3e%3cpath%20d='M185.5.4c0%20.2-1%20.3-2%20.2a7%207%200%200%200-2.4.1q-.3.4-1.3.2c-.5%200-1.3%200-1.6.4q-.7.5-.3%200%20.1-.5-.1-.5-.5%200-.5.4-.1.3-1.4.2-1.5-.3-2.5.5l-1%20.8%201%20.3q1.4.2.2.6-1%20.3.1.3.8%200%201.1.5t-.2.1q-.5-.1.1.3t.7%201q0%20.3%201.5%201.6%201.3%201.2.9%201-.6-.3%200%20.5.3.8.7.9t.4.6.8.5.7.3c-.1.6.5%201.7.9%201.5q.3-.1.3.2.1.4.7%201.1.7.6.1.3-.4-.2%201%201.1t1%201.2q-.5-.3-.3.1t1%20.5q.5%200%20.3.2c-.3.4.9%202.5%201.5%202.5q.5%200%201.2.9l.8.9-1-.8q-1-.9-.7-.2.2.6%201%201l1.4%201q.4.4-.3%200-1-1-.3.2.5.9%201%201t1.2.8.2.4q-.7-.6-.6.1%200%20.8%201%20.6.4%200%20.3.5%200%20.4.4.5l.7.1-.2.6q-.7.9.9.7.3%200%200%20.3%200%20.3.3.4.6%200%200%20.3t.4.8q1%20.6.5%200t.3%200q.6.5.5.9t.7%201.3.6%201%20.6.7q.9.7%201%201.3t.5%201q.4.2.1-.3-.2-.5.1-.2.5.3.5.8t.9%201.2q.7.5.3.4-.4-.2.5.7%201.1%201%201.3%201.7t1%201.5.8%201.3q0%20.4.6%201%20.9.6.3.6t.3.5q.7.5.8%201c0%201%20.2%201.2%201%201.5q.6.2.5.5-.2.4.4.7.6.4.6.6c0%201%20.9%202.7%201.2%202.2q.3-.6.4%200c.1%201.5%201%203.1%201.9%203.6q.8.4.6%201-.1.5.5%201.2.7.5.6%201.1-.1.5.7%201.1.7.5.6%201.2-.2.5.6.8%201%20.1.3.8t.2.6q.5%200%20.4.4-.2.3.1.4c.3%200%201%202.1%201%202.8q-.1.3.5.3t.4.3.4.6.1.9.3.5.2.4q-.7.2.3%201%201%20.6.4.6t.3.7c.5.3%201%201.2%201%201.8.2%201.5.9%203.2%201.4%203.5q.5.3%200%201-.8.7.2.3.7-.3.4.5-.1.7.2.8.3%200%20.4.7%200%20.8.5%201.2.6.6%200%20.3t-.5%200q0%20.4.6.7t.4%201c-.2%201%20.1%202%20.6%201.7q.2%200%200%20.6%200%20.8.3.8t.2.6.2.6.2.6.4.6%201.2.6.6.1.6%200%201.1.3q.6-.1.6.1.1.3.8.2t.8.2.6.2q.6-.2.6.4%200%20.5.6.6c.8%200%20.8%200%202%20.6q1%20.5%201.4.2.5-.3%201.2%200%201.2.5%200%20.2h-1c0%20.5%201.8.8%202.1.4q.3-.5.3.3t.9.6q2-.2%201.6.4c-.3.5%201.7%201.3%202.6%201q.8-.2.5.3-.2.7.6.5.7-.1%201%20.4.3.7%201%20.4.8%200%20.5.2-.1.4.3.3t1.2.5q.6.7%201.4.8.9%200%201%20.4%200%20.2.5.4t.3-.2c-.3-.6%201.1.5%201.6%201.2q.3.3.8.2t.8.3q.3.5-.1.2t-.5%200%20.8.7q.7%200%20.6-.2-.2-.3.4-.1.5.3.4.5c-.2.3.5.8%201%20.7q.4%200%20.8.6t1.1.7q.7%200%20.8.4%200%20.3.6.4.5%200%201%20.8.4.7.7.5t.4.2.4.2q.4%200%20.6.3.3.4-.1.2t-.5%200c0%20.5%201.5%201.1%202%201q.4%200%20.2.2c-.2.3.6%201%201.4%201l.6.4q.2.4-.2%200-.5%200-.5.2%200%20.4.6.4t.8.6.9.8.2-.3q-.2-.4.4.2.5.7.6.4l.7%201c.5%201.1%201.8%202%202.6%201.7q.3%200%20.1.2a39%2039%200%200%200%208%207.7c-.2.7.4%201.8.8%201.6q.3-.2%200%20.4-.2.9.5.4.8-.3.3.3-.7.8%201.2%201.2c.3%200%20.9.6.9%201q.1.4%201.1%201.4%201.1.9.5.6-.7-.6-.6%200%200%20.4%201%20.8.9.3%201%20.6h-.5q-.3-.2-.4.1.1.3%201.1%201%201%20.4%201%201t1%201.9%201%201.4q-.2.2.4.4.5.3.4.6-.2.4.4.6.5.2.4.6t.3.6q.6.3.6.7.3%201.7%201.1%201.8.6%200%20.4.6t.4%201q.6.2.3.3t.6%201q1%201%20.5.8t-.3.4q.4.5.7.6.4%200-.1.4-.7.4%200%20.3.7%200%20.7.3c-.2.5%201%202.9%201.3%202.9q.3%200%20.3.3-.2%201.3.4%201%20.4%200%20.4.2t-.4.4q-.4.1.5.8t.4.8q-.6%200%200%20.8.4.6.8.5.3-.2.2.4-.2.5%200%20.6.4%200%20.2.7t.1.4c.5-.3%201%20.9.8%202.3q-.2.9.3%201t.8.6q.4.8-.5%200-.4-.3.3.6c.8%201%20.9%201.2.4%201.5q-.7.4.2.4.7%200%20.4.6-.1.6.4%201.4t.3%201.4.2.3.3.6.3%201.2%200%20.3-.3.6q.2.8.6.1.4-.4.1.7t.2.8.2.8.2.7.3.6.2%201.7q.5.9%200%201-.3.1-.2.7.2.8.6%200%20.4-.4.1.7-.1%201%20.2%201.6.5.5.2.6t.3.6q.6.8%200%20.4t-.3.2.3%201.6.3.9.4.2-.5.4q-.6%200%200%20.3.4.4.3%201.1l.1%201q.3%200%20.3%201.8l.1%202.2q.6%201.2%200%202.1-.6.7%200%20.3.6-.5-.1%203.2-.1.9.2.6c.5-.2.3%204.5-.2%206.4l.1.9c.5%200%20.5%201.7%200%202q-.5.3%200%20.3c.3%200%20.4%201.1%200%201.8q-.2.5-.1%202.2%200%202-.6%201.9-.5%200-.2.3c.4.3.7%202.8.2%202.7q-.6-.1-.2%201%20.2.7-.3%201.3-.6.9.1.4t.1.1q-.3.6-.2%201%200%20.6-.2.6-.4.1-.6.8t.2.5%200%20.6l-.5%201.6q0%20.7-.4.8-.4%200%200%20.6.6.5-.2%201.2-.6.8-.2.9t.4.5-.4.1-.1.8-.3.8-.2.3v.7q-.4%200-.2%201%20.2%201.2-.3.7-.6-.3-.3.3.1.8-.5%202-.6%201.3-.3%201.2.5-.2%200%20.3l-.4%201q0%20.6-.5%201-.4.2-.2.6.1.5-.2.5t-.2.5-.1.6q-.4%200-.6.7l-.3%201.3q.4-.6.4-.1t-.7.9-.6.8-.3.3%200%20.4q.8.4.1.4-.4%200-.3.6t-.1.6q-.4%200-.2.4.1.3-.3.8t-.4%201.1v.3c-.5-.3-1.6%201.2-1.3%201.7q.2.3-.1.4-.5%200-.2.4%200%20.3-.2.4-.4%200-.3.3.2.4-.3.6t-.6.6.5.2q.4-.1-.2.3-.6.6-.7%201.3%200%20.5-.4.4-.6-.2-.4%201%200%20.5-.6%201.2-.6.9-.6.3%200-.4-.4.4c-.5%201-.6%201.4-.7%202.3q0%20.5-.3.3c-.3-.3-1.4.8-1.1%201.3q.2.3-.4.6-.5.1-.4.6.3.3-.4.4-.5%200-.5.5.2.4-.4%201-.8.8%200%20.3.4-.3-.5.6-1%201-.8%201.2.1.3-.3.3-.3%200-.2.3%200%20.4-.5.9-.8.8-.3%200t-.3%200q-.8.4-.2.8.6.3-.1.3c-.6%200-1.3%201-1.2%201.7q0%20.2-.5.3a1%201%200%200%200-.8.4q-.3.5.2.2t-.3.5q-.7.6-.6%201%20.1.2-.3.2c-.8%200-2.8%202.3-2.5%202.8q0%20.3-.9.9c-1%20.5-5.7%205-5.3%205l-.3.7q-.4.7-1%20.5-.4%200-.7.6-.4.8-.7.7-.4%200-1%201-.4.8-.5.6t-.8.6-.5.4-.4-.3q-.5.3-.3.9t-.3.3c-.4-.3-1.6.6-1.6%201.3q0%20.3-.5.2a1%201%200%200%200-.9.3q-.3.4.3.1t0%20.3-.9.5-.3.2-.3.3-1.2.8q-.8%201-.6.4.5-.7-.3%200-.5.6-1.2.8-.6.1-1.3%201-.6.7-.8.7c-.4-.2-1.3.4-1.1.7s-1.2%201-2.6%201.1q-.3%200-.2.4c.3.5-1%201-2.5%201.2q-.3%200-.2.5.2.5-.3.2-.7-.3-1%20.5-.5.7-1%20.5-.7-.2-.7.3%200%20.3-.3.2-.4-.2-.4.2%200%20.3-.4.2-.3-.2-.4.2%200%20.4-.4.1-.3%200-.4.2%200%20.4-.3.4-1.3-.2-1%20.5.1.3-.3.2-.6-.1-1%20.4-.6.4-1%20.3-.2-.1-.3.2t-.6.1q-.5%200-.6.3t-.3.2c-.4-.2-.4%203.3%200%203.9q.2.5%200%201.6%200%201.3.4%201.3.3%200%20.1%201.2t.2%201.2.2%201%20.2%201%20.1.5q0%20.6.3%201.2.5.6%200%20.6-.3%200%20.3%201l.6%201.2v.4l-.1%201q0%20.7.3.5.6-.3.2.7-.2%201%20.3%201t0%20.4q-.7.4%200%20.4c.8%200%201%201%20.2%201.3q-.3.2.2.2.7%200%20.5.7t.1.4.2.6.4.5%200%20.3q-.8%201%20.4.7.7.2-.2%201.1-.6.7.3.3t.2.3q-.6.9.4.7.3%200%20.1.7t.2.8q.2%200%20.4.9%200%20.7.4%201%20.3.1.2.7-.3.6.2.4.3-.2.4%200%200%20.5-.4.6-.2.1.4%201%20.9.8.3%201.2-.5.4.2.4c.7%200%201.3%201.2.6%201.2q-.4%200%20.2.5.8.6.2%201-.6.6.3.2.7-.3.5.2c-.4.6%200%201.7.6%201.4q.4-.2%200%20.2%200%20.5.3.9.7.3%200%20.3-.8%200%200%20.5c.7.5.8.7.8%201.7q0%20.5.4.3t.2.1c-.3.6.1%201.8.6%201.5.3-.2.5.6.4%201.5q0%20.2.3.3t.2.5.4.8.4.8q0%20.5.2.6t.4.8q0%20.7.4.8.3%200%20.2.4-.2.3.1.3t.2.6.3%201q.5.6.5%201.2c0%20.7.7%201.5%201%201.3s.8%201%20.6%201.4q-.2.3.2.4.3%200%20.2.4-.2.4.1.4.5.1%201.3%201.6.6%201.5.4%201.3-.5-.2-.2.4.3.5.5.4.3-.2.6.4.1.5-.2.4-.4-.2-.1.3.2.6.6.7t0%20.3q-.9.5%200%20.4.6%200%20.5.4t.5%201.1q.8.9.6%201-.2.3.2.3t.3.3.6%201q.6.8.5%201.4-.2.8.6%201.2.6.5.5%201t.1.4q.5%200%201%20.6.5.8%200%20.5c-.7-.4.2%201.3%201.3%202.5q.6.7.4.8-.2%200%20.4.6.8.6.3.4c-.7-.4-.6.4.3%201.5.8%201%202%201.5%201.4.7q-.1-.3.7-.2.9%200%201.4-.6.6-.6%201-.5.6%200%20.6-.3t.4-.2.4-.1q0-.4.6-.6t.3.1q0%20.3%201.2-.2t1.1-1q0-.3.2-.4.4.1.6.5t.2-.3q0-.9.4-.1.4.7%201.1-.2%201-1.2%200-.2-1.1.8-.3-.1.5-.6.9-.5c.4.3%202.7-1%202.7-1.4q0-.3.3-.2.4.1.4-.1%200-.5.6-.2.6%200%201.7-.9%201.3-1%201.3-.5t.3-.3%201.4-.7.8-.4q-.2-.6.5-.3.6.1.3-.2-.2-.8%201.9-1%20.7-.2%201.3-.9.5-.7%201-.8c1%200%201.8-.6%201.6-1q-.2-.4.4-.2t.9-.3q.1-.5.5-.4.3.2.5-.4.4-.6%201-.5.9.3%201-.5.3-.7.5-.6c.3.4%201.7-.5%201.5-1q-.2-.2.3%200%20.7%200%201.2-.8.8-1%201.2-.8.6%200%201.1-.7.7-.9.7-.3%200%20.5.5-.4c.5-1%202.5-2.5%202-1.6q-.1.4.8-.6t1.4-1%20.4-.4.3-.2q.4.3.4-.4t.6-.4%201-.6q.3-.8.4-.5%200%20.3.6-.5.6-1%201.2-.5t.3-.1.4-.7q.5%200%20.6-.6t.4-.4q.5.2%201.7-1l1.7-1.4q.3-.2.2-.6t.5.1q.7.8.5%200%200-.5.5-.4t.3-.2.7-1%201-1.3q0-.5.2-.5.4%200%201.5-1%201.3-1.4.4-.3-.4.7%202-1.7c1.4-1.5%202.8-2.7%203-2.7l.4-.6c.3-.8%203.5-4%204.1-4q.4%200%20.4-.2a16%2016%200%200%201%202.6-3q2.4-2.4%201.7-2-1%20.8.2-.4%201.2-1%201.1-1.5%200-.2.5-.3c.7%200%203-2.9%202.6-3.3q-.1-.2.1-.1.4%200%20.5-.2l1.5-1.6q1.3-1.4%201.1-1.8-.1-.3.4-.4.6%200%20.6-.6t.7-.4.4%200q-.2-.4.2-.9.6-.7-.1-.3-.4.2.2-.3t.4-.6q-.3%200%20.5-.4t.6-1%20.4-.6q.7%200%20.4-.4%200-.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.3-.4-2.4.8-2.4%201.3q0%20.4-.3.2t-1.2.6-.7.4q.3-.6-.7%200-1%20.4-.8.8t-.2.1q-.4-.2-.9.3l-1.1.6q-.6.1-1%20.8l-1%20.7c-1%200-1.9.6-1.7%201q.1.1-.4.4t-.4-.2q.3-.4-.4.3-.5.6-.6.4t-.6.4-.5.4-.8.6q-.8.7-1.2.5t-.6.4-.8.4-.5.4-.4.4-.7.3q-.1.6-.7.4t-.6.5q0%20.6-.2.4-.3%200-1%20.7t-1.2.8c-.9%200-3%201.5-3.3%202.3q-.4.8-.8.8-.5-.1-.5.3t-.4.1q-.4-.1-.3.1%200%20.3-.2.3l-.9.8q-.5.6-.3.2t-1%20.4q-1%201-1.2%201.4%200%20.4-.7.4t-1%20.8q-.6.8-.8.7c-.3-.4-1.8%201-1.8%201.7q0%20.4-.4.3-.3-.2-.5.4-.4.5-.7.5-.5%200-1%20.8t-.5.6-.8.5q-.7.9-1%20.8t-1.3%201.2q-.7%201.2-.8%201c0-.2-.8.5-1.6%201.4q-1.5%201.6-1.4%201.2.3-.6-.5.1l-.7%201q0%20.5-1.8%202.2l-2%202%201.9-2.1c1-1.1%201.8-2%201.5-2-.2%200-1.4%201.2-2.7%202.6q-2%202.3-1.7%202.2t-1%201.2c-.9.8-1.5%201.7-1.5%201.9q.1.2-.3%200-.3%200-.4.2%200%20.3-.5.4-.6%200-.6.4t.4.2.2.2q-.3.3-.6.2-.4-.1-1.2%201-.8%201-.5%201.2.3%200-.7.5-.8.5-.8%201%200%20.3-.5.7-.6.1-.4.5.1.3-.3.4-.7%200-1.1.7-.7.8%200%20.3t0%20.2q-.6.7-.5.9.2.2-.4.2c-.7%200-1.6%201.3-1.2%201.7q.2.3-.3.3c-.5%200-1.7%201.4-1.7%202q-.1.5-.8.7-.8.3-.2.4.7%200-.2.7-.7.7-.8%201-.1.5-.8.8c-.8.4-2%202.3-2.1%203.2%200%20.6-1.2%201.7-1.9%201.7q-.7-.1%200%20.4t-.2.4q-.7%200-.5.6.3.6-.1.4t-.4.2q.1.9-.9%201.5a3%203%200%200%200-.9%201.6q0%20.9-.6%201.3-.4.5-.1-.3.4-1-.2-.1-.4.7-.3%201%20.3.4-.4.6-.5.3-.4.5.3.2-.4.8-.6.5-.2.3.5-.2.2.4-.1.5-.5.4c-.3-.2-1%201-.8%201.6q0%20.4-1%201.1-.8.7-.8%201.2.2.5-.4.7-.5.3-.4.9.2.5%200%20.4-.4-.1-.8.8-.6%201%200%20.7.3-.2-.5.7l-.7%201q.3.1-.7%201.1-.8%201-.8%201.5.2.5-.4.8-.6.2-.3%201%20.2.7-.3.7t-.4.5-.3.5c-.4-.2-.8%201-.6%201.4q.2.4-.1.4-.5%200-.5.6t-.4.6%200%20.3q.8.5-.1.4t-.2.4q.6.4%200%20.4-.4.1-.4%201t-.4.8q-.5-.5-.6%201%200%20.5-.7%201.2-.6.8-.7%201.2%200%20.5.4-.1t.4-.1-.8.9-.5.8q0%20.3-.2.3-.3.1-.3%201t-.2%201q-.3%200-.1.4%200%20.4-.3.4t-.2.6-.4%201.1-.5%201.1q.2%201.5-.4%201.3-.3-.2-.1.4%200%20.5-.3.6-.5%200-.3.7.2.8-.2.6-.3-.2-.2.4.3.5-.1.6-.3%200-.2.4.3.4-.4%201.3t-.2.5-.1.5-.2.6-.2.5-.5%201.5q.1.5-.1.6t-.2.5q.2.6-.2.6t-.3.8-.2.5-.2.4%200%20.7q-.5%200-.3.8%200%20.7-.3.7-.5%200-.5%201.4T7%20147t-.1.5q.1.6-.2.9t-.2.8-.2.5-.1.6-.2.8-.2.6q.1.3-.2%201-.5.6-.3%201v.9q-.5.1-.6%201-.1.7.1.5.8-.4-.2%201.5c-.7%201.4-1.4%204.7-1.1%205.7q.2.8-.3%201.5l-.2.5q.3.1-.1.5-.4.6-.3%201.3c0%20.4-.1%201.4-.4%202q-.4%201.2-.1%201.1.3-.2.3.4%200%20.5-.3.7-.3.4-.2%201.8.1%201.6-.4%201.5c-.4%200-.5%200%200%201.8q.2%201-.2%201t-.4.5.5%200%200%20.4-.4%201.6q.1%201-.2%201.3c-.2.1-.2%201.2-.1%202.3q0%202-.2%202.1a300%20300%200%200%200%200%2029.6q-.7.7-.1.4t.5.3-.4.4q-.6-.3-.1.5.3.8.2%201.2-.1.6.3%201.1t.1.4-.4.3.4.3.1.5q-.1.7.3%201.3.5.8%200%20.3-.5-.1-.5.1%200%20.5.4.5t.1%201.3q-.1%201.3.2%202%20.5.5.3%201.4%200%20.9.3%201.6.5.7-.1%201t.2.8.2%201q-.5.9.3%201.3l.2.3q-.4%200-.4%201.2%200%201.3.6%201.3t.2%201q0%201%20.1.9c.3-.2.4.4.5%203.3q0%20.6.4.7t.2.8.2.8q.3%200%20.1%201t.2%201%20.5.3-.4.2q-.3%200-.1.6t.6.8q.5%200%200%20.4c-.6.6-.2%201.6.4%201.2q.4-.2%200%20.4-.7.6%200%20.8t.4.9q-.1.5.2.6.5%200%20.2.8t.2.6c.6-.4.5.6%200%201.2q-.6.5.1.5t.4.6q-.2.7.3.4.6-.5.3.7l.1%201q.3%200%20.3.5%200%202%20.5%201.7c.5-.4.5.3%200%20.9q-.7.4.1.4t.5.6q-.1.5.2.6t.2.6.3.7-.1.8q-.8.8.2.4.7-.3.4.3-.1.7.3.9t0%20.2q-.6%200-.2.7.3.8.1%201-.2.4.4.1.8-.3.5.7-.2%201%20.4%201.2.9.1.1.9-.7.8.2.4.6-.3.7.1%200%20.3-.4.4-.2.1.4%201.3l1%202.4c.1%201.2.9%202.5%201.4%202.5q.3%200%20.1.4-.2.6.5%201.5t.6%201.6q0%20.4.3.4t.2.4.4.6.6%201.2.4%201%20.1.4q0%20.3.2.3t.2.7q-.3.6.2.4.3-.3.2.2-.2.6.4%201.2.5.6.3.8-.1.3.3.3.3%200%20.2.3t.2.5.5%201.2q0%201%20.4%201%20.3.1%200%20.5t.4.2.4.2q0%20.5.9%201.6t.6%201q-.5-.2-.5%200%20.1.5.5.7.5.3.6%201%200%20.9.7%201.4.5.4.2%200l-.4-.8c0-.5%201%201%201%201.5l.1%201q0%20.3.4.2.4-.2.6.4t-.2.3%200%20.6.8.6.5.3v1.1q.1.5.6.5.6-.1.4.4-.2.7%201.1%202t1.1%201.9q-.3.4.2.1t.4.6.6%201q.5.2.4.6c-.3.4.5%201.6%201%201.3l1%201q.8%201%200%20.5-.6-.6-.8-.1-.2.3%200%20.4c.8%200%203.4%202.6%203.2%203.2q-.1.5.3.8.5.2.6.6c0%20.6%201.4%202%201.8%201.7q.1-.2%200%20.2t.7%201.4q.8.9.7%201.2t.4.2q.5%200%20.9.4.2.4-.5.2-.5-.2.8.8c1.4%201%202%201.7%201%201.2q-.4-.2.2.3t.3.7.8%201.1a3%203%200%200%200%201.6%201q.4-.3.2%200t.8%201.3q.8.8.3.4-1-.8-.3.3.6.8%201.1.6.6-.1.4.2-.2.5.4%201t.8.9q0%20.3.4.4.3%200%20.7.3.3.4-.1.1-1-.5%200%20.7.4.4.9.4.4-.1.7.3.4.4-.2.1-.3-.1.2.8t1%20.8s.9.6%201.7%201.5q1.5%201.5.4.6-1-1%20.6%201%201.7%201.9%202%201.6.5-.5.4.7%200%20.2.5.2t.3.4.3.3c.5-.3%201.7%201.2%201.4%201.8q-.3.5%200%20.2.4-.2%201.1.4t.5.1q-.4-.6.1-.2t.3.8c-.2.5.5%201.3%201%201.3q.3%200%200-.5%200-.3.2-.1.3.3.3.8.1.4.5.4.6.1%201.1%201t.6.4.3.4%201%201%201%20.7q0%20.8.4.2t.4%200c0%20.9%201.8%202.5%202%201.9q.3-.4.3.2t.4.5.6.2q.3.5-.1.2t-.5%200%201.2%201%201%20.2l.3.2q.5.7.9.4.2-.2%200%20.4-.1.6.2.7%201-.2%201.2.6.3.5.8.3.3-.1.2.1-.1.4.7%201.3.9.7%201%20.4t1%20.7q.8.9.9.5.1-.3%201.6%201%201.4%201.6%202.2%201.6.7%200%20.6.4t.7.5.6.3q-.1.2%201%20.7t1.2.9.5.2q.5-.2.5.5t.7.7%201.2.6q.4.4.9.3.3-.2.4.3%200%20.5.3.6%201.7.1%202.1%201%20.4.5.9.3.5-.1.7.7.3.9%201%20.5.8-.3%201.5.8.6.9%201%201t1.2.6.7.3-.5-.7q-.5-.1%200-.2.4%200%201%201t1.4.8.7.3q0%20.3.8.4.8%200%20.6.6t.2.2q.6-.1%201%20.2.7.4%201%20.2.6-.3.2.2t.3.3.4.4.8.4%201.4.5%201.2.5.8.2.6.2.8.3-.2.2-.4.1%201%20.3h.8c-.3.3%201%201.3%201.7%201.3q.8.1%200-.4-.6-.4%200-.4.3%200%20.7.6.2.6.6.5%201.6-.1%201.3.4c-.3.5%201%201.2%202%201.2q.9.1-.2-.4-1.8-.9.3-.3%201%20.4%201.2.8%200%20.3.6%200t.4.3q-.2.3.3.2.5-.2%201.1.4.8.6%201.8.7a4%204%200%200%201%201.8.6q.5.4.7.2.3-.1.3.3t.8.2.5.3.6.2q.8-.2.6%200c-.1.3%201%201%201.9%201l.5.3q.4.2.9-.2.7-.6.3%200t.3.4h.6q.1.3%201.3.4%201%20.1%201.5.5.3.5%201.5.5t1.2.4.5.2c1.4-.1%202.7.1%202.4.5q-.3.5.8.2%201-.2.8.1-.3.5.8.2t.8.2.8.2.7.2.5.3%201%20.4q.3.5.9.5t.3-.5q-.2-.4.4%200%20.6.6%201.2.4t.8.4.7.2c.5-.6%201.6-.7%201.3-.1q-.2.3.8.2%201-.3.7.2t.3.3q.5-.2%201%200c.5.6%203%201%202.6.5q-.1-.4.2-.4t.4.4q0%20.4%201.1.2t1.4.1.6.3.6.2.6%200q.3-.8%201.1.1t1.3.3c.8-.6%201.9-.4%201.6.3q-.3.6.5.3%202.4-.9%202.5-.3%200%20.4.4.4t.2-.5q-.4-.5.2%200t1.6.3q.8%200%201.4.3c.2.1%201.4.2%202.6.1a272%20272%200%200%200%2030.5.1q.6.5.8.2t1-.2q2%20.6-1.3-2.4-1.8-1.7-1-1.2l1%20.8-1-1q-1-1.1-1.4-1.2a1%201%200%200%201-.8-.4q-.3-.5.2-.2t-.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.5c.6%200%202.1-2%201.8-2.3q-.2-.3.2%200%20.4%200%201-.8.8-.9%201.2-.7t-.2-.5-.1-.5a41%2041%200%200%200%208.6-8.5q.6.1%202.2-1.4l2-1.8q.4%200%20.4-.6%200-.4.5-.5t.8-.5l.7-.6q.3%200%20.3-.4-.1-.3.4%200%20.7%200%201-.6.5-.7%201-.8.5%200%201.2-1t1.1-.8q.6%200%201.4-.6.9-.7.4-.5t.2-.4%201.4-.6%201-.6q.4-.6.7-.6%201.2.2.8-.4-.1-.3.2-.3.9%200%201.5-.8t.2%200%20.4%200q.6-.5.7-.2t.4-.5%201-.8c.4%200%20.6-.4.7-2.7.1-1.6%200-2.9-.2-2.9q-.2-.1-.2-2%200-1.7-.2-1.9t-.2-1.3q.1-1.3-.2-1.4t-.1-1q.1-1-.1-.9-.4.2-.4-1.2l-.2-2q0-.8-.3-.8-.3-.1-.4-.8c0-1.8-.2-2.5-.5-3q-.3-.4-.1-.8%200-.4-.2-.4t-.2-.6q.2-.5-.1-.6t-.4-1.2-.3-1.5q-.7-.5-.7-2%200-.8-.3-.8t-.1-.6q.1-.5-.2-.5t-.2-.6-.2-.6-.2-.6-.2-.6q-.5%200-.2-.4.1-.4-.4-1t-.5-1.2-.1-.5-.1-.7-.3-.3q-.6.3-.2-.6t-.2-.6-.4-1.1c0-.6-.9-2.7-1.5-3.2q-.5-.5-.6-1.5l-.2-1.5q0-.3-.4%200-.3%200-.5-.6c0-1.9-.7-3.3-1.2-3q-.4.2-.2-.3.1-.6-.3-1t-.3-.9-.3-.3-.2-.4-.2-.4-.2-.4c.3-.4-.5-2.4-1-2.4q-.3%200-.1-.4.1-.3-.2-.3t-.3-.3c.2-.6-1-2.9-1.3-2.6q-.3%200-.1-.4.2-.6-.4-.9a1%201%200%200%201-.7-1%201%201%200%200%200-.6-.9q-.5-.1-.3-.6c.3-.5-.9-2.7-1.5-2.7q-.3%200-.2-.3c.4-.3-.7-2.3-1.4-2.6a1%201%200%200%201-.4-.8q.2-.6-.4-.8-.5-.4-.8-1.4-.2-1-.6-1-.4.3-.4-.4c0-.9-1-2.2-1.3-1.8q-.2.1-.5-1t-.8-1.5q-.5-.2-.3-.6t-.4-.6q-.5-.1-.4-.5%200-.3-.4-1c-.6-.9-1-1-2.6-.6m6.7%2099-1.5%201.5-1.4%201.3%201.3-1.5q1.8-1.8%201.6-1.3M281%20280.8q-1.7%201.6-2%201.7%200-.2%201.6-1.7l1.9-1.8z'/%3e%3cpath%20d='M308%2031.8q.8.6%201.1.6.2%200-.3-.6l-1.2-.5q-.2%200%20.4.5m30.9%2024.5%201.7%201.5-1.3-1.5q-1.5-1.6-1.8-1.6%200%20.2%201.4%201.5M58.4%2058.8l-2%202%202.1-1.9c1.9-1.8%202.2-2.2%202-2.2zM343.6%2061q1.4%201.5%201.7%201.6l-1.4-1.6-1.7-1.5q0%20.2%201.4%201.5m21%2026q.6%201%201%20.8%200-.3-.7-1l-1-1zm2.1%202.8q.1.6.8%201.6t.8.8l-.8-1.6q-.7-1-.8-.8M135%20106.1q-1.2.9-.4.6c.7-.4%202-1.6%201.7-1.6q-.3%200-1.3%201m-16%2013.3-1.3%201.5%201.4-1.3%201.5-1.5q.2-.5-1.6%201.3m266.1%205.6q.5%201.1.6%201c.2-.1-.5-2.2-.8-2.2zm.8%201.8q0%20.4.5%201.3t.6.6l-.6-1.4q-.5-.8-.5-.5m-280.2%208.5q-1%201.3-.2.7c.7-.6%201.6-2%201.3-2zm293.9%2056.1q0%201.2.2.7v-1.4q-.2-.5-.2.7m-85.9%208.4q0%202.3.2%201.3v-2.8q-.2-.9-.2%201.5m85.9%208.8q0%201.1.2.7v-1.4q-.2-.5-.2.7m-8.4%2049.3q-.3%201-.1%201.4l.4-1.1q.2-1.1%200-1.4zm-110.8%2022.9-1.6%201.7%202-1.7q1.6-1.7%201.5-1.8zm-249.1%2027%20.5%201q.6.7.6.4%200-.4-.6-1.1-.5-.6-.5-.4m131.7%201.2q0%20.7.3%201.6c.4%201%20.4%200%200-1.4q-.4-1.2-.3-.2m5%2016.8.8%202q.6%201.2.5.5c-.3-1-1.3-3.1-1.3-2.5M55.5%20338.4l1.2%201.3%201.3%201.1-1.1-1.2q-1.5-1.7-1.4-1.2m285.7%203.1-1.6%201.7%201.7-1.6c1.6-1.4%201.8-1.8%201.6-1.8zm-280.5%202.3%201.8%201.5-1.4-1.6-1.7-1.5zm123.9%2014q.6%201.1.8%201.2l-.4-1.2-.8-1.2q-.2.2.4%201.2m79.9%207q.6%201.5%201%201.6l-.7-1.6q-.6-1.4-1-1.5zm-177.9%200q.8%201%201.1.8%200-.3-.9-1l-1-.6zm104.4%202.6%201%201.3c.4%200-.6-1.5-1.2-2q-.7-.5.2.7m-100.6%200%201.6.9q.3-.1-.8-.8l-1.6-.8q-.2.1.8.8m33.4%2017.4c0%20.3%202%201%202.3.8l-1-.6zm3.5%201.5%201.4.6q.3%200-.6-.6t-1.3-.5q-.3%200%20.5.5m63.4%2013.4h1.4q.5-.2-.7-.2t-.7.2m17.2%200h1.4q.5-.2-.7-.2t-.7.2'/%3e%3c/g%3e%3c/svg%3e", M0 = { class: "bluevue-panel relative flex w-[320px] flex-col items-center justify-center rounded-lg px-6 pt-7 pb-5" }, F0 = /* @__PURE__ */ t("span", { class: "mdi mdi-close text-[20px] leading-none" }, null, -1), _0 = [
|
|
495
|
+
F0
|
|
496
|
+
], V0 = ["src"], S0 = {
|
|
497
|
+
key: 1,
|
|
498
|
+
class: "mt-[15px] text-center text-base text-white"
|
|
499
|
+
}, $e = /* @__PURE__ */ Y({
|
|
500
|
+
__name: "BlueLoadingDialog",
|
|
501
|
+
props: {
|
|
502
|
+
modelValue: { type: Boolean },
|
|
503
|
+
message: {},
|
|
504
|
+
dismissible: { type: Boolean }
|
|
505
|
+
},
|
|
506
|
+
emits: ["update:modelValue"],
|
|
507
|
+
setup(M, { emit: F }) {
|
|
508
|
+
const e = M, b = F, s = h(null), r = (x) => {
|
|
509
|
+
const p = s.value;
|
|
510
|
+
p && (x && !p.open && p.showModal(), !x && p.open && p.close());
|
|
511
|
+
}, f = () => b("update:modelValue", !1), a = (x) => {
|
|
512
|
+
x.preventDefault(), e.dismissible && f();
|
|
513
|
+
};
|
|
514
|
+
return s2(() => r(e.modelValue)), U(() => e.modelValue, r), (x, p) => (i(), c("dialog", {
|
|
515
|
+
ref_key: "dialogRef",
|
|
516
|
+
ref: s,
|
|
517
|
+
class: "bluevue-dialog",
|
|
518
|
+
onCancel: a
|
|
519
|
+
}, [
|
|
520
|
+
t("div", M0, [
|
|
521
|
+
x.dismissible ? (i(), c("button", {
|
|
522
|
+
key: 0,
|
|
523
|
+
type: "button",
|
|
524
|
+
class: "absolute right-3 top-3 cursor-pointer text-[#ffffffaa] transition-colors hover:text-white",
|
|
525
|
+
title: "Close",
|
|
526
|
+
onClick: f
|
|
527
|
+
}, _0)) : C("", !0),
|
|
528
|
+
t("img", {
|
|
529
|
+
src: I($0),
|
|
530
|
+
alt: "",
|
|
531
|
+
class: "bluevue-loading__icon mb-6 h-[100px] w-[100px]"
|
|
532
|
+
}, null, 8, V0),
|
|
533
|
+
x.message ? (i(), c("span", S0, g(x.message), 1)) : C("", !0)
|
|
534
|
+
])
|
|
535
|
+
], 544));
|
|
536
|
+
}
|
|
537
|
+
}), B0 = ["id"], T0 = {
|
|
538
|
+
key: 0,
|
|
539
|
+
class: "h-px bg-[#ffffff0d]"
|
|
540
|
+
}, C0 = ["disabled", "onClick"], I0 = { class: "min-w-0" }, R0 = { class: "block text-[13px] leading-snug" }, P0 = {
|
|
541
|
+
key: 0,
|
|
542
|
+
class: "block text-[10px] text-[#ffffff66]"
|
|
543
|
+
}, Me = /* @__PURE__ */ Y({
|
|
544
|
+
__name: "BlueMenu",
|
|
545
|
+
props: {
|
|
546
|
+
modelValue: { type: Boolean },
|
|
547
|
+
items: {},
|
|
548
|
+
target: {}
|
|
549
|
+
},
|
|
550
|
+
emits: ["update:modelValue"],
|
|
551
|
+
setup(M, { emit: F }) {
|
|
552
|
+
const e = M, b = F, {
|
|
553
|
+
anchorRef: s,
|
|
554
|
+
popoverRef: r,
|
|
555
|
+
popoverId: f,
|
|
556
|
+
activatorProps: a,
|
|
557
|
+
isOpen: x,
|
|
558
|
+
isPositioned: p,
|
|
559
|
+
floatingStyles: d,
|
|
560
|
+
show: _,
|
|
561
|
+
hide: P,
|
|
562
|
+
onToggle: E
|
|
563
|
+
} = m2();
|
|
564
|
+
U(x, (w) => b("update:modelValue", w)), U(
|
|
565
|
+
() => [e.modelValue, e.target],
|
|
566
|
+
([w, S]) => {
|
|
567
|
+
w ? _(S) : P();
|
|
568
|
+
},
|
|
569
|
+
{ immediate: !0 }
|
|
570
|
+
);
|
|
571
|
+
function $(w) {
|
|
572
|
+
P(), w.action();
|
|
573
|
+
}
|
|
574
|
+
return (w, S) => (i(), c(X, null, [
|
|
575
|
+
w.target ? C("", !0) : (i(), c("span", {
|
|
576
|
+
key: 0,
|
|
577
|
+
ref_key: "anchorRef",
|
|
578
|
+
ref: s,
|
|
579
|
+
class: "inline-flex"
|
|
580
|
+
}, [
|
|
581
|
+
l2(w.$slots, "activator", { props: I(a) })
|
|
582
|
+
], 512)),
|
|
583
|
+
t("div", {
|
|
584
|
+
id: I(f),
|
|
585
|
+
ref_key: "popoverRef",
|
|
586
|
+
ref: r,
|
|
587
|
+
popover: "",
|
|
588
|
+
class: "bluevue-popover",
|
|
589
|
+
style: W(I(d)),
|
|
590
|
+
onToggle: S[0] || (S[0] = //@ts-ignore
|
|
591
|
+
(...B) => I(E) && I(E)(...B))
|
|
592
|
+
}, [
|
|
593
|
+
t("ul", {
|
|
594
|
+
class: m(["bluevue-elevation-5 min-w-[220px] max-h-[60vh] overflow-y-auto rounded-[4px] border border-[#ffffff1a] bg-[#2d2d2d]", I(p) ? "opacity-100" : "opacity-0"])
|
|
595
|
+
}, [
|
|
596
|
+
(i(!0), c(X, null, t2(w.items, (B, o) => (i(), c("li", {
|
|
597
|
+
key: B.title
|
|
598
|
+
}, [
|
|
599
|
+
o ? (i(), c("div", T0)) : C("", !0),
|
|
600
|
+
t("button", {
|
|
601
|
+
type: "button",
|
|
602
|
+
disabled: B.disabled,
|
|
603
|
+
class: m(["flex w-full items-start gap-3 px-4 py-2 text-left", [
|
|
604
|
+
B.danger ? "text-[#ff6b6b]" : "text-white",
|
|
605
|
+
B.disabled ? "cursor-not-allowed opacity-30" : "cursor-pointer hover:bg-[#ffffff11]"
|
|
606
|
+
]]),
|
|
607
|
+
onClick: (y) => $(B)
|
|
608
|
+
}, [
|
|
609
|
+
t("span", {
|
|
610
|
+
class: m(["mdi shrink-0 mt-[2px] text-[18px] leading-none", B.icon])
|
|
611
|
+
}, null, 2),
|
|
612
|
+
t("span", I0, [
|
|
613
|
+
t("span", R0, g(B.title), 1),
|
|
614
|
+
B.hint ? (i(), c("span", P0, g(B.hint), 1)) : C("", !0)
|
|
615
|
+
])
|
|
616
|
+
], 10, C0)
|
|
617
|
+
]))), 128))
|
|
618
|
+
], 2)
|
|
619
|
+
], 44, B0)
|
|
620
|
+
], 64));
|
|
621
|
+
}
|
|
622
|
+
}), L0 = { class: "bluevue-panel w-[624px] max-w-full rounded-lg text-white" }, D0 = { class: "flex items-start gap-3 px-5 pt-4 pb-3" }, E0 = { class: "flex-1 min-w-0" }, A0 = { class: "text-base leading-tight truncate" }, z0 = {
|
|
623
|
+
key: 0,
|
|
624
|
+
class: "text-xs text-[#ffffff88] mt-1 leading-relaxed"
|
|
625
|
+
}, j0 = /* @__PURE__ */ t("span", { class: "mdi mdi-close text-[20px] leading-none" }, null, -1), N0 = [
|
|
626
|
+
j0
|
|
627
|
+
], O0 = { class: "flex flex-col gap-3 border-t border-[#ffffff0d] px-5 py-4" }, W0 = { class: "flex items-center justify-between gap-3 border-t border-[#ffffff0d] px-5 py-3" }, U0 = { class: "flex-1 text-center text-xs text-[#ffffff88]" }, K0 = ["disabled"], Fe = /* @__PURE__ */ Y({
|
|
628
|
+
__name: "BluePromptDialog",
|
|
629
|
+
props: {
|
|
630
|
+
modelValue: { type: Boolean },
|
|
631
|
+
title: {},
|
|
632
|
+
label: {},
|
|
633
|
+
icon: {},
|
|
634
|
+
subtitle: {},
|
|
635
|
+
initial: {},
|
|
636
|
+
notesLabel: {},
|
|
637
|
+
notesInitial: {},
|
|
638
|
+
confirmLabel: {},
|
|
639
|
+
hint: {}
|
|
640
|
+
},
|
|
641
|
+
emits: ["update:modelValue", "confirm"],
|
|
642
|
+
setup(M, { emit: F }) {
|
|
643
|
+
const e = M, b = F, s = h(e.initial ?? ""), r = h(e.notesInitial ?? ""), f = h(null);
|
|
644
|
+
U(
|
|
645
|
+
() => e.modelValue,
|
|
646
|
+
(d) => {
|
|
647
|
+
d && (s.value = e.initial ?? "", r.value = e.notesInitial ?? "");
|
|
648
|
+
const _ = f.value;
|
|
649
|
+
_ && (d && !_.open && _.showModal(), !d && _.open && _.close());
|
|
650
|
+
}
|
|
651
|
+
), s2(() => {
|
|
652
|
+
var d;
|
|
653
|
+
e.modelValue && ((d = f.value) == null || d.showModal());
|
|
654
|
+
});
|
|
655
|
+
function a() {
|
|
656
|
+
var d;
|
|
657
|
+
(d = f.value) == null || d.close();
|
|
658
|
+
}
|
|
659
|
+
function x() {
|
|
660
|
+
const d = s.value.trim();
|
|
661
|
+
d && (a(), b("confirm", d, r.value.trim()));
|
|
662
|
+
}
|
|
663
|
+
function p(d) {
|
|
664
|
+
d.target === f.value && a();
|
|
665
|
+
}
|
|
666
|
+
return (d, _) => (i(), c("dialog", {
|
|
667
|
+
ref_key: "dialogRef",
|
|
668
|
+
ref: f,
|
|
669
|
+
class: "bluevue-dialog",
|
|
670
|
+
onClose: _[2] || (_[2] = (P) => b("update:modelValue", !1)),
|
|
671
|
+
onClick: p
|
|
672
|
+
}, [
|
|
673
|
+
t("div", L0, [
|
|
674
|
+
t("div", D0, [
|
|
675
|
+
t("span", {
|
|
676
|
+
class: m(["mdi mt-[2px] shrink-0 text-[22px] leading-none text-[#42A5F5]", d.icon || "mdi-content-save-outline"])
|
|
677
|
+
}, null, 2),
|
|
678
|
+
t("div", E0, [
|
|
679
|
+
t("div", A0, g(d.title), 1),
|
|
680
|
+
d.subtitle ? (i(), c("div", z0, g(d.subtitle), 1)) : C("", !0)
|
|
681
|
+
]),
|
|
682
|
+
t("button", {
|
|
683
|
+
type: "button",
|
|
684
|
+
class: "cursor-pointer text-[#ffffffaa] transition-colors hover:text-white",
|
|
685
|
+
title: "Close",
|
|
686
|
+
onClick: a
|
|
687
|
+
}, N0)
|
|
688
|
+
]),
|
|
689
|
+
t("div", O0, [
|
|
690
|
+
M2(w2, {
|
|
691
|
+
modelValue: s.value,
|
|
692
|
+
"onUpdate:modelValue": _[0] || (_[0] = (P) => s.value = P),
|
|
693
|
+
name: "bluevue-prompt-name",
|
|
694
|
+
label: d.label,
|
|
695
|
+
theme: "dark",
|
|
696
|
+
width: "380px",
|
|
697
|
+
autofocus: "",
|
|
698
|
+
onKeydown: e2(x, ["enter"])
|
|
699
|
+
}, null, 8, ["modelValue", "label"]),
|
|
700
|
+
d.notesLabel ? (i(), L2(w2, {
|
|
701
|
+
key: 0,
|
|
702
|
+
modelValue: r.value,
|
|
703
|
+
"onUpdate:modelValue": _[1] || (_[1] = (P) => r.value = P),
|
|
704
|
+
name: "bluevue-prompt-notes",
|
|
705
|
+
label: d.notesLabel,
|
|
706
|
+
theme: "dark",
|
|
707
|
+
width: "380px",
|
|
708
|
+
onKeydown: e2(x, ["enter"])
|
|
709
|
+
}, null, 8, ["modelValue", "label"])) : C("", !0)
|
|
710
|
+
]),
|
|
711
|
+
t("div", W0, [
|
|
712
|
+
t("button", {
|
|
713
|
+
type: "button",
|
|
714
|
+
class: "h-7 shrink-0 cursor-pointer rounded-[4px] bg-[#ffffff11] px-3 text-[13px] font-medium uppercase tracking-wide transition-colors hover:bg-[#ffffff22]",
|
|
715
|
+
onClick: a
|
|
716
|
+
}, " Cancel "),
|
|
717
|
+
t("span", U0, g(d.hint), 1),
|
|
718
|
+
t("button", {
|
|
719
|
+
type: "button",
|
|
720
|
+
disabled: !s.value.trim(),
|
|
721
|
+
class: m(["h-7 shrink-0 rounded-[4px] bg-[var(--bluevue-primary)] px-3 text-[13px] font-medium uppercase tracking-wide transition-colors hover:brightness-125 disabled:cursor-not-allowed disabled:bg-[#9e9e9e80] disabled:text-[#afafaf] disabled:opacity-30 disabled:hover:brightness-100", s.value.trim() ? "cursor-pointer" : ""]),
|
|
722
|
+
onClick: x
|
|
723
|
+
}, g(d.confirmLabel || "Save"), 11, K0)
|
|
724
|
+
])
|
|
725
|
+
])
|
|
726
|
+
], 544));
|
|
727
|
+
}
|
|
728
|
+
}), G0 = { class: "flex w-full justify-between items-center" }, Y0 = {
|
|
729
|
+
key: 0,
|
|
730
|
+
class: "min-w-0 max-w-[45%] shrink-0"
|
|
731
|
+
}, H0 = ["title"], X0 = { key: 1 }, J0 = {
|
|
732
|
+
key: 2,
|
|
733
|
+
class: "relative group inline-flex items-center shrink-0 mr-2 ml-auto"
|
|
734
|
+
}, Q0 = { class: "absolute bottom-full mb-1 right-0 hidden group-hover:block w-max max-w-[280px] px-2 py-1 text-xs rounded bg-gray-700 text-white z-[1000]" }, Z0 = { class: "flex flex-col items-end min-w-0 shrink-[1000]" }, ee = ["disabled"], te = {
|
|
735
|
+
key: 0,
|
|
736
|
+
class: "text-[14px] text-[var(--bluevue-error)]"
|
|
737
|
+
}, le = ["id"], ne = ["disabled", "onClick"], _e = /* @__PURE__ */ Y({
|
|
738
|
+
__name: "BlueSelect",
|
|
739
|
+
props: {
|
|
740
|
+
items: {},
|
|
741
|
+
disabled: { type: Boolean },
|
|
742
|
+
theme: {},
|
|
743
|
+
label: {},
|
|
744
|
+
infoTooltip: {},
|
|
745
|
+
height: {},
|
|
746
|
+
width: {},
|
|
747
|
+
multiSelect: { type: Boolean },
|
|
748
|
+
modelValue: {},
|
|
749
|
+
errorMessages: {}
|
|
750
|
+
},
|
|
751
|
+
emits: ["update:modelValue"],
|
|
752
|
+
setup(M, { emit: F }) {
|
|
753
|
+
const e = M, b = F, s = h([]), r = h({ name: "Select..." }), {
|
|
754
|
+
anchorRef: f,
|
|
755
|
+
popoverRef: a,
|
|
756
|
+
popoverId: x,
|
|
757
|
+
activatorProps: p,
|
|
758
|
+
isOpen: d,
|
|
759
|
+
isPositioned: _,
|
|
760
|
+
floatingStyles: P,
|
|
761
|
+
hide: E,
|
|
762
|
+
onToggle: $
|
|
763
|
+
} = m2({ matchAnchorWidth: !0 }), w = T(
|
|
764
|
+
() => e.errorMessages && e.errorMessages.length > 0
|
|
765
|
+
), S = T(() => e.theme === "dark" ? "#FFFFFF05" : "#00000011"), B = (u) => {
|
|
766
|
+
if (e.multiSelect) {
|
|
767
|
+
const R = e.items[u].value || e.items[u].name, z = s.value.indexOf(R);
|
|
768
|
+
z > -1 ? s.value.splice(z, 1) : s.value.push(R), b("update:modelValue", s.value);
|
|
769
|
+
} else {
|
|
770
|
+
const R = e.items[u].value || e.items[u].name;
|
|
771
|
+
r.value = e.items[u], b("update:modelValue", R), E();
|
|
772
|
+
}
|
|
773
|
+
}, o = T(() => e.theme === "dark" ? "text-white" : "text-black"), y = T(() => e.theme === "dark" ? "text-white" : "text-black");
|
|
774
|
+
function A(u) {
|
|
775
|
+
return u.disabled || e.disabled ? "text-gray-500" : e.theme === "dark" ? "text-white" : "text-black";
|
|
776
|
+
}
|
|
777
|
+
return U(
|
|
778
|
+
() => e.modelValue,
|
|
779
|
+
(u) => {
|
|
780
|
+
if (e.multiSelect)
|
|
781
|
+
Array.isArray(u) && (s.value = u);
|
|
782
|
+
else {
|
|
783
|
+
const R = e.items.find(
|
|
784
|
+
(z) => z.value !== void 0 ? z.value === u : z.name === u
|
|
785
|
+
);
|
|
786
|
+
r.value = R ?? { name: "Select..." };
|
|
787
|
+
}
|
|
788
|
+
},
|
|
789
|
+
{ immediate: !0 }
|
|
790
|
+
), (u, R) => {
|
|
791
|
+
var z;
|
|
792
|
+
return i(), c("div", G0, [
|
|
793
|
+
u.label ? (i(), c("div", Y0, [
|
|
794
|
+
t("label", {
|
|
795
|
+
class: m(["block truncate text-start mr-6", [u.theme === "dark" ? "text-white" : "text-black", u.disabled ? "opacity-30" : ""]]),
|
|
796
|
+
title: u.label
|
|
797
|
+
}, g(u.label), 11, H0)
|
|
798
|
+
])) : (i(), c("div", X0)),
|
|
799
|
+
l2(u.$slots, "insetElement"),
|
|
800
|
+
u.infoTooltip ? (i(), c("div", J0, [
|
|
801
|
+
t("span", {
|
|
802
|
+
class: m(["mdi mdi-information-outline text-[16px] opacity-60 cursor-help", u.theme === "dark" ? "text-white" : "text-black"])
|
|
803
|
+
}, null, 2),
|
|
804
|
+
t("div", Q0, g(u.infoTooltip), 1)
|
|
805
|
+
])) : C("", !0),
|
|
806
|
+
t("div", Z0, [
|
|
807
|
+
t("button", $2({
|
|
808
|
+
ref_key: "anchorRef",
|
|
809
|
+
ref: f
|
|
810
|
+
}, I(p), {
|
|
811
|
+
type: "button",
|
|
812
|
+
disabled: u.disabled,
|
|
813
|
+
class: ["relative inline-flex items-center justify-between pl-4 rounded-[6px] bluevue-elevation-1 min-w-[90px] max-w-full", [
|
|
814
|
+
u.disabled ? "opacity-30" : "cursor-pointer",
|
|
815
|
+
w.value ? "border-2 border-solid border-[var(--bluevue-error)]" : ""
|
|
816
|
+
]],
|
|
817
|
+
style: { height: u.height || "30px", width: u.width || "auto", backgroundColor: S.value }
|
|
818
|
+
}), [
|
|
819
|
+
t("span", {
|
|
820
|
+
class: m(["text-sm font-medium truncate min-w-0 mr-1 -mb-[1px]", y.value])
|
|
821
|
+
}, g(u.multiSelect ? s.value.length > 0 ? s.value.join(", ") : "Select..." : r.value.name), 3),
|
|
822
|
+
t("span", {
|
|
823
|
+
class: m(["mdi mdi-menu-down text-[24px] leading-none shrink-0 transition-transform", [o.value, I(d) ? "rotate-180" : ""]])
|
|
824
|
+
}, null, 2)
|
|
825
|
+
], 16, ee),
|
|
826
|
+
w.value ? (i(), c("div", te, g(((z = u.errorMessages) == null ? void 0 : z[0]) || ""), 1)) : C("", !0)
|
|
827
|
+
]),
|
|
828
|
+
t("div", {
|
|
829
|
+
id: I(x),
|
|
830
|
+
ref_key: "popoverRef",
|
|
831
|
+
ref: a,
|
|
832
|
+
popover: "",
|
|
833
|
+
class: "bluevue-popover",
|
|
834
|
+
style: W(I(P)),
|
|
835
|
+
onToggle: R[0] || (R[0] = //@ts-ignore
|
|
836
|
+
(...N) => I($) && I($)(...N))
|
|
837
|
+
}, [
|
|
838
|
+
t("ul", {
|
|
839
|
+
class: m(["bluevue-elevation-5 max-h-[60vh] overflow-y-auto rounded-[4px] border border-[#FFFFFF22]", [
|
|
840
|
+
u.theme === "dark" ? "bg-[var(--bluevue-surface)]" : "bg-white",
|
|
841
|
+
I(_) ? "opacity-100" : "opacity-0"
|
|
842
|
+
]])
|
|
843
|
+
}, [
|
|
844
|
+
(i(!0), c(X, null, t2(u.items, (N, Q) => (i(), c("li", {
|
|
845
|
+
key: N.name
|
|
846
|
+
}, [
|
|
847
|
+
t("button", {
|
|
848
|
+
type: "button",
|
|
849
|
+
disabled: u.disabled || N.disabled,
|
|
850
|
+
class: m(["flex w-full items-center justify-between gap-2 whitespace-nowrap px-4 py-2 text-left text-sm", [
|
|
851
|
+
A(N),
|
|
852
|
+
u.disabled || N.disabled ? "cursor-not-allowed" : u.theme === "dark" ? "cursor-pointer hover:bg-[#ffffff11]" : "cursor-pointer hover:bg-gray-100"
|
|
853
|
+
]]),
|
|
854
|
+
onClick: (G) => B(Q)
|
|
855
|
+
}, [
|
|
856
|
+
t("span", {
|
|
857
|
+
class: m(["mdi mdi-check text-[16px] leading-none", s.value.includes(N.value || N.name) ? "" : "invisible"])
|
|
858
|
+
}, null, 2),
|
|
859
|
+
D2(" " + g(N.name), 1)
|
|
860
|
+
], 10, ne)
|
|
861
|
+
]))), 128))
|
|
862
|
+
], 2)
|
|
863
|
+
], 44, le)
|
|
864
|
+
]);
|
|
865
|
+
};
|
|
866
|
+
}
|
|
867
|
+
}), oe = { class: "flex w-full justify-between items-center" }, se = {
|
|
868
|
+
key: 0,
|
|
869
|
+
class: "min-w-0 max-w-[45%] shrink-0"
|
|
870
|
+
}, ae = ["title"], ie = { class: "flex justify-between items-center min-w-0 shrink-[1000]" }, re = { class: "absolute inset-x-[18%] top-1/2 -translate-y-1/2 flex justify-between pointer-events-none" }, ue = { key: 0 }, ce = {
|
|
871
|
+
class: "font-bold leading-none select-none",
|
|
872
|
+
draggable: "false"
|
|
873
|
+
}, de = { key: 1 }, me = ["min", "max", "step"], pe = ["min", "max", "step", "disabled"], Ve = /* @__PURE__ */ Y({
|
|
874
|
+
__name: "BlueSlider",
|
|
875
|
+
props: {
|
|
876
|
+
color: {},
|
|
877
|
+
disabled: { type: Boolean },
|
|
878
|
+
height: {},
|
|
879
|
+
label: {},
|
|
880
|
+
labelMax: {},
|
|
881
|
+
labelMin: {},
|
|
882
|
+
max: {},
|
|
883
|
+
min: {},
|
|
884
|
+
name: {},
|
|
885
|
+
step: {},
|
|
886
|
+
keyboardStepMultiplierLimit: {},
|
|
887
|
+
theme: {},
|
|
888
|
+
width: {},
|
|
889
|
+
modelValue: {},
|
|
890
|
+
scaleFn: { type: Function },
|
|
891
|
+
unscaleFn: { type: Function },
|
|
892
|
+
formatDisplay: { type: Function }
|
|
893
|
+
},
|
|
894
|
+
emits: ["update:modelValue"],
|
|
895
|
+
setup(M, { emit: F }) {
|
|
896
|
+
const e = M, b = F, s = (l) => {
|
|
897
|
+
if (!Number.isFinite(l) || l <= 0) return 0;
|
|
898
|
+
const v = l.toString();
|
|
899
|
+
if (v.includes("e-")) {
|
|
900
|
+
const o2 = parseInt(v.split("e-")[1] ?? "0", 10);
|
|
901
|
+
return Math.min(6, Math.max(0, o2));
|
|
902
|
+
}
|
|
903
|
+
const [, V = ""] = v.split(".");
|
|
904
|
+
return Math.min(6, V.length);
|
|
905
|
+
}, r = h(e.modelValue ?? e.min), f = h(r.value), a = h(!1), x = h(!1), p = h(0), d = T(
|
|
906
|
+
() => e.scaleFn ? e.scaleFn(r.value) : r.value
|
|
907
|
+
), _ = T(
|
|
908
|
+
() => e.labelMin ? e.labelMin : e.formatDisplay ? e.formatDisplay(e.scaleFn ? e.scaleFn(e.min) : e.min) : e.min
|
|
909
|
+
), P = T(
|
|
910
|
+
() => e.labelMax ? e.labelMax : e.formatDisplay ? e.formatDisplay(e.scaleFn ? e.scaleFn(e.max) : e.max) : e.max
|
|
911
|
+
), E = T(() => {
|
|
912
|
+
const l = r.value;
|
|
913
|
+
return e.scaleFn ? e.scaleFn(l) : l;
|
|
914
|
+
}), $ = T(() => e.scaleFn ? e.scaleFn(e.min) : e.min), w = T(() => e.scaleFn ? e.scaleFn(e.max) : e.max), S = T(() => e.step ?? 0.1), B = T(() => {
|
|
915
|
+
const l = e.keyboardStepMultiplierLimit ?? 3;
|
|
916
|
+
return Number.isFinite(l) && l >= 1 ? l : 3;
|
|
917
|
+
}), o = h(0), y = h(0), A = h(0), u = () => {
|
|
918
|
+
o.value = 0, y.value = 0, A.value = 0;
|
|
919
|
+
}, R = (l) => {
|
|
920
|
+
const v = Date.now(), V = B.value;
|
|
921
|
+
A.value === l && v - o.value <= 250 || (y.value = 0), y.value += 1, o.value = v, A.value = l;
|
|
922
|
+
const i2 = Math.min(1, (y.value - 1) / 6);
|
|
923
|
+
return 1 + (1 - Math.pow(1 - i2, 2)) * (V - 1);
|
|
924
|
+
}, z = T(() => {
|
|
925
|
+
if (!e.scaleFn) return S.value;
|
|
926
|
+
const l = e.scaleFn(e.min), v = e.scaleFn(e.min + S.value), V = Math.abs(v - l);
|
|
927
|
+
return V > 0 ? V : S.value;
|
|
928
|
+
}), N = T(() => s(z.value)), Q = (l, v) => {
|
|
929
|
+
const V = Math.max(S.value / 10, 1e-4);
|
|
930
|
+
return Math.abs(l - v) <= V;
|
|
931
|
+
}, G = T(() => (r.value - e.min) / (e.max - e.min) * 100), n2 = h(0), a2 = T(
|
|
932
|
+
() => `calc((100% - 70px) * ${(a.value ? n2.value : G.value) / 100})`
|
|
933
|
+
), J = (l) => {
|
|
934
|
+
l !== f.value && (f.value = l, b("update:modelValue", l));
|
|
935
|
+
}, n = h(null);
|
|
936
|
+
let q = null;
|
|
937
|
+
const L = h(0), j = () => {
|
|
938
|
+
n.value = null, L.value = 0, q && (clearTimeout(q), q = null);
|
|
939
|
+
}, k = (l) => {
|
|
940
|
+
n.value = l, L.value = Date.now() + 2e3, q && clearTimeout(q), q = window.setTimeout(() => {
|
|
941
|
+
q = null, n.value = null, L.value = 0;
|
|
942
|
+
}, 2e3);
|
|
943
|
+
}, D = () => {
|
|
944
|
+
const l = Math.min(Math.max(r.value, e.min), e.max);
|
|
945
|
+
r.value = l, p2(l);
|
|
946
|
+
}, O = () => {
|
|
947
|
+
Z();
|
|
948
|
+
}, F2 = () => {
|
|
949
|
+
p.value = Math.min(Math.max(p.value, $.value), w.value);
|
|
950
|
+
};
|
|
951
|
+
let H = null, K = null;
|
|
952
|
+
const p2 = (l) => {
|
|
953
|
+
if (K = l, H) return;
|
|
954
|
+
const v = K;
|
|
955
|
+
K = null, J(v), H = window.setTimeout(() => {
|
|
956
|
+
if (H = null, K === null) return;
|
|
957
|
+
const V = K;
|
|
958
|
+
K = null, J(V);
|
|
959
|
+
}, 500);
|
|
960
|
+
}, _2 = () => {
|
|
961
|
+
if (H && (clearTimeout(H), H = null), K === null) return;
|
|
962
|
+
const l = K;
|
|
963
|
+
K = null, J(l);
|
|
964
|
+
}, Z = () => {
|
|
965
|
+
x.value = !1;
|
|
966
|
+
const l = Math.min(Math.max(r.value, e.min), e.max);
|
|
967
|
+
r.value = l, K = l, _2(), J(l), k(l);
|
|
968
|
+
}, f2 = () => Z(), q2 = () => Z(), V2 = () => {
|
|
969
|
+
e.disabled || a.value || (x.value = !0, j(), window.addEventListener("pointerup", f2, { once: !0 }), window.addEventListener("pointercancel", q2, { once: !0 }));
|
|
970
|
+
}, v2 = (l) => l === "ArrowLeft" || l === "ArrowRight" || l === "ArrowUp" || l === "ArrowDown", S2 = (l) => {
|
|
971
|
+
if (e.disabled || a.value || !v2(l.key)) return;
|
|
972
|
+
l.preventDefault();
|
|
973
|
+
const v = l.key === "ArrowRight" || l.key === "ArrowUp" ? 1 : -1, V = S.value;
|
|
974
|
+
if (!Number.isFinite(V) || V <= 0) return;
|
|
975
|
+
const o2 = R(v), h2 = V * o2, i2 = r.value + v * h2, b2 = Math.min(Math.max(i2, e.min), e.max), C2 = Math.round((b2 - e.min) / V), x2 = Math.min(
|
|
976
|
+
Math.max(e.min + C2 * V, e.min),
|
|
977
|
+
e.max
|
|
978
|
+
);
|
|
979
|
+
r.value = x2, p2(x2), x.value || (x.value = !0, j());
|
|
980
|
+
}, B2 = (l) => {
|
|
981
|
+
v2(l.key) && (u(), Z());
|
|
982
|
+
}, T2 = (l) => {
|
|
983
|
+
l.key === "Escape" ? (a.value = !1, p.value = e.scaleFn ? e.scaleFn(f.value) : f.value, r.value = f.value) : l.key === "Enter" && (a.value = !1);
|
|
984
|
+
};
|
|
985
|
+
return U(
|
|
986
|
+
() => e.modelValue,
|
|
987
|
+
(l) => {
|
|
988
|
+
const v = l ?? e.min;
|
|
989
|
+
a.value || x.value || n.value !== null && Date.now() < L.value && !Q(v, n.value) || (r.value = v);
|
|
990
|
+
},
|
|
991
|
+
{ immediate: !0 }
|
|
992
|
+
), U(a, (l) => {
|
|
993
|
+
if (l)
|
|
994
|
+
p.value = E.value, n2.value = G.value;
|
|
995
|
+
else {
|
|
996
|
+
const v = e.unscaleFn ? e.unscaleFn(p.value) : p.value;
|
|
997
|
+
r.value = Math.min(Math.max(v, e.min), e.max), J(r.value), k(r.value);
|
|
998
|
+
}
|
|
999
|
+
}), k2(() => {
|
|
1000
|
+
H && clearTimeout(H), q && clearTimeout(q), window.removeEventListener("pointerup", f2), window.removeEventListener("pointercancel", q2);
|
|
1001
|
+
}), (l, v) => (i(), c("div", oe, [
|
|
1002
|
+
l.label ? (i(), c("div", se, [
|
|
1003
|
+
t("label", {
|
|
1004
|
+
class: m(["block truncate text-start mr-6", [l.theme === "dark" ? "text-white" : "text-black", l.disabled ? "opacity-30" : ""]]),
|
|
1005
|
+
title: l.label
|
|
1006
|
+
}, g(l.label), 11, ae)
|
|
1007
|
+
])) : C("", !0),
|
|
1008
|
+
t("div", ie, [
|
|
1009
|
+
t("div", {
|
|
1010
|
+
name: "slider-track",
|
|
1011
|
+
class: m(["relative overflow-visible rounded-[6px] bluevue-elevation-1 min-w-[140px] max-w-full", [l.theme === "dark" ? "bg-[#464646AA]" : "bg-[#00000011]", l.disabled ? "opacity-30" : ""]]),
|
|
1012
|
+
style: W({ width: l.width || "100%", height: l.height || "30px", cursor: l.disabled ? "not-allowed" : "pointer" })
|
|
1013
|
+
}, [
|
|
1014
|
+
t("div", re, [
|
|
1015
|
+
(i(), c(X, null, t2(6, (V) => t("div", {
|
|
1016
|
+
key: V,
|
|
1017
|
+
class: "mdi mdi-circle w-2 h-2",
|
|
1018
|
+
style: W({
|
|
1019
|
+
fontSize: "6px",
|
|
1020
|
+
color: l.theme === "dark" ? "#ffffff11" : "#00000011"
|
|
1021
|
+
})
|
|
1022
|
+
}, null, 4)), 64))
|
|
1023
|
+
]),
|
|
1024
|
+
t("div", {
|
|
1025
|
+
class: m(["absolute translate-y-1/2 bottom-1/2 flex items-center justify-center text-white text-center text-[14px] whitespace-nowrap min-w-[60px] rounded-[6px] bluevue-elevation-1 z-50 h-3/4", a.value ? "pointer-events-auto" : "pointer-events-none select-none"]),
|
|
1026
|
+
style: W({
|
|
1027
|
+
left: a2.value,
|
|
1028
|
+
marginLeft: "5px",
|
|
1029
|
+
backgroundColor: l.color || "var(--bluevue-primary)"
|
|
1030
|
+
})
|
|
1031
|
+
}, [
|
|
1032
|
+
a.value ? (i(), c("div", de, [
|
|
1033
|
+
c2(t("input", {
|
|
1034
|
+
ref: "editInput",
|
|
1035
|
+
"onUpdate:modelValue": v[0] || (v[0] = (V) => p.value = V),
|
|
1036
|
+
type: "number",
|
|
1037
|
+
min: $.value,
|
|
1038
|
+
max: w.value,
|
|
1039
|
+
step: z.value,
|
|
1040
|
+
autofocus: "",
|
|
1041
|
+
class: "bg-white border border-gray-300 rounded px-1 py-0.5",
|
|
1042
|
+
onInput: F2,
|
|
1043
|
+
onKeydown: T2,
|
|
1044
|
+
onBlur: v[1] || (v[1] = (V) => a.value = !1)
|
|
1045
|
+
}, null, 40, me), [
|
|
1046
|
+
[
|
|
1047
|
+
y2,
|
|
1048
|
+
p.value,
|
|
1049
|
+
void 0,
|
|
1050
|
+
{ number: !0 }
|
|
1051
|
+
]
|
|
1052
|
+
])
|
|
1053
|
+
])) : (i(), c("div", ue, [
|
|
1054
|
+
t("p", ce, g(l.formatDisplay ? l.formatDisplay(d.value) : d.value.toFixed(N.value)), 1)
|
|
1055
|
+
]))
|
|
1056
|
+
], 6),
|
|
1057
|
+
c2(t("input", {
|
|
1058
|
+
"onUpdate:modelValue": v[2] || (v[2] = (V) => r.value = V),
|
|
1059
|
+
type: "range",
|
|
1060
|
+
class: m(["absolute inset-0 w-full h-full opacity-0", l.disabled ? "cursor-not-allowed" : "cursor-pointer"]),
|
|
1061
|
+
style: { width: "95%", left: "2.5%" },
|
|
1062
|
+
min: l.min,
|
|
1063
|
+
max: l.max,
|
|
1064
|
+
step: S.value,
|
|
1065
|
+
disabled: l.disabled || a.value,
|
|
1066
|
+
onInput: D,
|
|
1067
|
+
onChange: O,
|
|
1068
|
+
onPointerdown: V2,
|
|
1069
|
+
onKeydown: S2,
|
|
1070
|
+
onKeyup: B2,
|
|
1071
|
+
onBlur: Z,
|
|
1072
|
+
onDblclick: v[3] || (v[3] = (V) => a.value = !0)
|
|
1073
|
+
}, null, 42, pe), [
|
|
1074
|
+
[
|
|
1075
|
+
y2,
|
|
1076
|
+
r.value,
|
|
1077
|
+
void 0,
|
|
1078
|
+
{ number: !0 }
|
|
1079
|
+
]
|
|
1080
|
+
]),
|
|
1081
|
+
t("p", {
|
|
1082
|
+
class: m(["absolute left-[5px] top-1/2 -translate-y-1/2 min-w-[30px] text-[12px] font-medium text-center whitespace-nowrap z-10 pointer-events-none", l.theme === "dark" ? "text-[#ffffff44]" : "text-[#00000066]"])
|
|
1083
|
+
}, g(_.value), 3),
|
|
1084
|
+
t("p", {
|
|
1085
|
+
class: m(["absolute right-[5px] top-1/2 -translate-y-1/2 min-w-[30px] text-[12px] font-medium text-center whitespace-nowrap z-10 pointer-events-none", l.theme === "dark" ? "text-[#ffffff44]" : "text-[#00000066]"])
|
|
1086
|
+
}, g(P.value), 3),
|
|
1087
|
+
a.value ? (i(), c("div", {
|
|
1088
|
+
key: 0,
|
|
1089
|
+
class: "absolute mdi mdi-check mdi-24px",
|
|
1090
|
+
style: { right: "-30px", top: "50%", transform: "translateY(-50%)", cursor: "pointer", color: "green" },
|
|
1091
|
+
onClick: v[4] || (v[4] = (V) => a.value = !1)
|
|
1092
|
+
})) : C("", !0)
|
|
1093
|
+
], 6)
|
|
1094
|
+
])
|
|
1095
|
+
]));
|
|
1096
|
+
}
|
|
1097
|
+
}), fe = { class: "flex w-full justify-between items-center" }, qe = {
|
|
1098
|
+
key: 0,
|
|
1099
|
+
class: "min-w-0 max-w-[45%] shrink-0"
|
|
1100
|
+
}, ve = ["title"], he = { class: "flex items-center min-w-0 shrink-[1000]" }, be = {
|
|
1101
|
+
key: 0,
|
|
1102
|
+
class: "relative group inline-flex items-center shrink-0 mr-2"
|
|
1103
|
+
}, xe = { class: "absolute bottom-full mb-1 right-0 hidden group-hover:block w-max max-w-[280px] px-2 py-1 text-xs rounded bg-gray-700 text-white z-[1000]" }, Se = /* @__PURE__ */ Y({
|
|
1104
|
+
__name: "BlueSwitch",
|
|
1105
|
+
props: {
|
|
1106
|
+
color: {},
|
|
1107
|
+
modelValue: { type: [Boolean, null] },
|
|
1108
|
+
disabled: { type: Boolean },
|
|
1109
|
+
height: {},
|
|
1110
|
+
label: {},
|
|
1111
|
+
infoTooltip: {},
|
|
1112
|
+
labelOn: {},
|
|
1113
|
+
labelOff: {},
|
|
1114
|
+
name: {},
|
|
1115
|
+
theme: {},
|
|
1116
|
+
width: {}
|
|
1117
|
+
},
|
|
1118
|
+
emits: ["update:modelValue"],
|
|
1119
|
+
setup(M, { emit: F }) {
|
|
1120
|
+
const e = M, b = F, s = h(e.modelValue || !1), r = (a) => a ? ["text-white"] : ["opacity-20", e.theme === "dark" ? "text-white" : "text-black"], f = () => {
|
|
1121
|
+
e.disabled || (s.value = !s.value, b("update:modelValue", s.value));
|
|
1122
|
+
};
|
|
1123
|
+
return U(
|
|
1124
|
+
() => e.modelValue,
|
|
1125
|
+
(a) => s.value = a ?? !1,
|
|
1126
|
+
{ immediate: !0 }
|
|
1127
|
+
), (a, x) => (i(), c("div", fe, [
|
|
1128
|
+
a.label ? (i(), c("div", qe, [
|
|
1129
|
+
t("label", {
|
|
1130
|
+
class: m(["block truncate text-start mr-6", a.theme === "dark" ? "text-white" : "text-black"]),
|
|
1131
|
+
title: a.label
|
|
1132
|
+
}, g(a.label), 11, ve)
|
|
1133
|
+
])) : C("", !0),
|
|
1134
|
+
t("div", he, [
|
|
1135
|
+
a.infoTooltip ? (i(), c("div", be, [
|
|
1136
|
+
t("span", {
|
|
1137
|
+
class: m(["mdi mdi-information-outline text-[16px] opacity-60 cursor-help", a.theme === "dark" ? "text-white" : "text-black"])
|
|
1138
|
+
}, null, 2),
|
|
1139
|
+
t("div", xe, g(a.infoTooltip), 1)
|
|
1140
|
+
])) : C("", !0),
|
|
1141
|
+
t("div", {
|
|
1142
|
+
name: "switch-track",
|
|
1143
|
+
class: m(["relative grid grid-cols-2 rounded-[8px] bluevue-elevation-1 cursor-pointer overflow-hidden", [a.theme === "dark" ? "bg-[#464646AA]" : "bg-[#00000011]", a.disabled ? "opacity-30 cursor-not-allowed" : ""]]),
|
|
1144
|
+
style: W({ minWidth: a.width || "75px", height: a.height || "30px" }),
|
|
1145
|
+
onClick: f
|
|
1146
|
+
}, [
|
|
1147
|
+
t("div", {
|
|
1148
|
+
class: "absolute top-[4px] bottom-[4px] w-[calc(50%-4px)] rounded-[8px] bluevue-elevation-1 transition-all duration-300",
|
|
1149
|
+
style: W({
|
|
1150
|
+
left: s.value ? "calc(50% + 2px)" : "2px",
|
|
1151
|
+
backgroundColor: s.value ? a.color || "var(--bluevue-primary)" : "#777777"
|
|
1152
|
+
})
|
|
1153
|
+
}, null, 4),
|
|
1154
|
+
t("span", {
|
|
1155
|
+
class: m(["relative flex items-center justify-center px-[6px] text-[14px] whitespace-nowrap pointer-events-none transition-opacity duration-300", r(!s.value)])
|
|
1156
|
+
}, g(a.labelOff || "Off"), 3),
|
|
1157
|
+
t("span", {
|
|
1158
|
+
class: m(["relative flex items-center justify-center px-[6px] text-[14px] whitespace-nowrap pointer-events-none transition-opacity duration-300", r(s.value)])
|
|
1159
|
+
}, g(a.labelOn || "On"), 3)
|
|
1160
|
+
], 6)
|
|
1161
|
+
])
|
|
1162
|
+
]));
|
|
1163
|
+
}
|
|
1164
|
+
});
|
|
1165
|
+
export {
|
|
1166
|
+
we as BlueButtonGroup,
|
|
1167
|
+
ke as BlueExpansiblePanel,
|
|
1168
|
+
w2 as BlueInput,
|
|
1169
|
+
$e as BlueLoadingDialog,
|
|
1170
|
+
Me as BlueMenu,
|
|
1171
|
+
Fe as BluePromptDialog,
|
|
1172
|
+
_e as BlueSelect,
|
|
1173
|
+
Ve as BlueSlider,
|
|
1174
|
+
Se as BlueSwitch,
|
|
1175
|
+
m2 as useBluePopover
|
|
1176
|
+
};
|