@poveste/controls 0.19.1 → 0.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{useKbd-DQM4Oqri.es.js → FieldRoot-BOFK7006.es.js} +13 -3
- package/dist/{HstColor-DHgxKTkm.es.js → HstColor-BnPyFVL_.es.js} +54 -54
- package/dist/{HstDate-Ct5Jp_ZD.es.js → HstDate-CFGLzzai.es.js} +1401 -1235
- package/dist/{HstJson-D83KEa9o.es.js → HstJson-CClJDodg.es.js} +2310 -2298
- package/dist/{HstWrapper-Bm5H3_to.es.js → HstWrapper-CpSNPVQJ.es.js} +487 -471
- package/dist/{PopoverTrigger-BVAfE9fE.es.js → PopoverTrigger-Cu3v0RQ6.es.js} +158 -144
- package/dist/THIRD_PARTY_NOTICES.md +3 -3
- package/dist/{VisuallyHiddenInput-0it-_FH2.es.js → VisuallyHiddenInput-o7pCu1YG.es.js} +11 -11
- package/dist/components/HstCopyIcon.vue.d.ts +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.es.css +1 -1
- package/dist/index.es.js +721 -608
- package/dist/style-standalone.css +36 -262
- package/dist/{useLocale-Dr4PRYn1.es.js → useLocale-Cgl4bY7N.es.js} +3 -3
- package/package.json +16 -16
package/dist/index.es.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { C as e,
|
|
2
|
-
import { a as
|
|
3
|
-
import { n as
|
|
4
|
-
import { t as
|
|
5
|
-
import { Fragment as
|
|
6
|
-
import { createEventHook as
|
|
7
|
-
import { Icon as
|
|
1
|
+
import { C as e, O as t, _ as n, a as r, b as i, k as a, m as o, n as s, r as c, t as l, u, v as d } from "./HstWrapper-CpSNPVQJ.es.js";
|
|
2
|
+
import { a as f, i as p, n as m, o as h, r as g, s as _, t as v } from "./PopoverTrigger-Cu3v0RQ6.es.js";
|
|
3
|
+
import { n as y, r as ee, t as te } from "./FieldRoot-BOFK7006.es.js";
|
|
4
|
+
import { n as b, r as x, t as S } from "./VisuallyHiddenInput-o7pCu1YG.es.js";
|
|
5
|
+
import { Fragment as C, computed as w, createBlock as T, createCommentVNode as E, createElementBlock as D, createElementVNode as O, createTextVNode as k, createVNode as A, defineAsyncComponent as j, defineComponent as M, getCurrentInstance as ne, guardReactiveProps as N, mergeProps as P, nextTick as F, normalizeClass as I, normalizeProps as re, normalizeStyle as L, onBeforeMount as ie, onBeforeUnmount as ae, onMounted as R, onUnmounted as z, openBlock as B, ref as V, renderList as H, renderSlot as U, resolveDynamicComponent as oe, shallowRef as se, toDisplayString as W, toRefs as G, unref as K, useAttrs as ce, vModelText as le, watch as q, withCtx as J, withDirectives as Y, withKeys as ue, withMemo as de, withModifiers as X } from "@poveste/vendors/vue";
|
|
6
|
+
import { createEventHook as fe, useClipboard as pe, useEventListener as me, useLiveAnnouncer as he, useTimeoutFn as ge, useVModel as Z } from "@poveste/vendors/vue-use";
|
|
7
|
+
import { Icon as _e } from "@poveste/vendors/iconify";
|
|
8
8
|
//#region src/components/button/HstButton.vue?vue&type=script&setup=true&lang.ts
|
|
9
|
-
var
|
|
9
|
+
var ve = ["data-color"], ye = /* @__PURE__ */ M({
|
|
10
10
|
name: "HstButton",
|
|
11
11
|
props: { color: {} },
|
|
12
12
|
setup(e) {
|
|
13
|
-
return (t, n) => (
|
|
13
|
+
return (t, n) => (B(), D("button", {
|
|
14
14
|
class: "poveste-button",
|
|
15
15
|
"data-slot": "button",
|
|
16
16
|
"data-color": e.color ?? "default"
|
|
17
|
-
}, [
|
|
17
|
+
}, [U(t.$slots, "default")], 8, ve));
|
|
18
18
|
}
|
|
19
19
|
});
|
|
20
20
|
//#endregion
|
|
21
21
|
//#region ../../node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/shared/ohash.D__AXeF1.mjs
|
|
22
|
-
function
|
|
23
|
-
return typeof e == "string" ? `'${e}'` : new
|
|
22
|
+
function be(e) {
|
|
23
|
+
return typeof e == "string" ? `'${e}'` : new xe().serialize(e);
|
|
24
24
|
}
|
|
25
|
-
var
|
|
25
|
+
var xe = /*@__PURE__*/ function() {
|
|
26
26
|
class e {
|
|
27
27
|
#e = /* @__PURE__ */ new Map();
|
|
28
28
|
compare(e, t) {
|
|
@@ -120,40 +120,40 @@ var ye = /*@__PURE__*/ function() {
|
|
|
120
120
|
return e;
|
|
121
121
|
}();
|
|
122
122
|
function Q(e, t) {
|
|
123
|
-
return e === t ||
|
|
123
|
+
return e === t || be(e) === be(t);
|
|
124
124
|
}
|
|
125
125
|
//#endregion
|
|
126
|
-
//#region ../../node_modules/.pnpm/reka-ui@2.
|
|
127
|
-
function
|
|
126
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.11.0_vue@3.5.44_typescript@6.0.3_/node_modules/reka-ui/dist/shared/arrays.js
|
|
127
|
+
function Se(e, t, n) {
|
|
128
128
|
let r = e.findIndex((e) => Q(e, t)), i = e.findIndex((e) => Q(e, n));
|
|
129
129
|
if (r === -1 || i === -1) return [];
|
|
130
130
|
let [a, o] = [r, i].sort((e, t) => e - t);
|
|
131
131
|
return e.slice(a, o + 1);
|
|
132
132
|
}
|
|
133
133
|
//#endregion
|
|
134
|
-
//#region ../../node_modules/.pnpm/reka-ui@2.
|
|
135
|
-
function
|
|
136
|
-
return
|
|
134
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.11.0_vue@3.5.44_typescript@6.0.3_/node_modules/reka-ui/dist/shared/isValueEqualOrExist.js
|
|
135
|
+
function Ce(e, t) {
|
|
136
|
+
return ee(e) ? !1 : Array.isArray(e) ? e.some((e) => Q(e, t)) : Q(e, t);
|
|
137
137
|
}
|
|
138
138
|
//#endregion
|
|
139
|
-
//#region ../../node_modules/.pnpm/reka-ui@2.
|
|
140
|
-
function
|
|
139
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.11.0_vue@3.5.44_typescript@6.0.3_/node_modules/reka-ui/dist/shared/useForwardScopeId.js
|
|
140
|
+
function we() {
|
|
141
141
|
let e = ne()?.vnode?.scopeId;
|
|
142
142
|
return e ? { [e]: "" } : {};
|
|
143
143
|
}
|
|
144
144
|
//#endregion
|
|
145
|
-
//#region ../../node_modules/.pnpm/reka-ui@2.
|
|
146
|
-
function
|
|
145
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.11.0_vue@3.5.44_typescript@6.0.3_/node_modules/reka-ui/dist/shared/useTypeahead.js
|
|
146
|
+
function Te(t) {
|
|
147
147
|
let n = e("", 1e3);
|
|
148
148
|
return {
|
|
149
149
|
search: n,
|
|
150
150
|
handleTypeaheadSearch: (e, r) => {
|
|
151
151
|
if (n.value += e, t) t(e);
|
|
152
152
|
else {
|
|
153
|
-
let e =
|
|
153
|
+
let e = _(), t = r.map((e) => ({
|
|
154
154
|
...e,
|
|
155
155
|
textValue: e.value?.textValue ?? e.ref.textContent?.trim() ?? ""
|
|
156
|
-
})), i = t.find((t) => t.ref === e), a =
|
|
156
|
+
})), i = t.find((t) => t.ref === e), a = De(t.map((e) => e.textValue), n.value, i?.textValue), o = t.find((e) => e.textValue === a);
|
|
157
157
|
return o && o.ref.focus(), o?.ref;
|
|
158
158
|
}
|
|
159
159
|
},
|
|
@@ -162,34 +162,34 @@ function Ce(t) {
|
|
|
162
162
|
}
|
|
163
163
|
};
|
|
164
164
|
}
|
|
165
|
-
function
|
|
165
|
+
function Ee(e, t) {
|
|
166
166
|
return e.map((n, r) => e[(t + r) % e.length]);
|
|
167
167
|
}
|
|
168
|
-
function
|
|
169
|
-
let r = t.length > 1 && Array.from(t).every((e) => e === t[0]) ? t[0] : t, i = n ? e.indexOf(n) : -1, a =
|
|
168
|
+
function De(e, t, n) {
|
|
169
|
+
let r = t.length > 1 && Array.from(t).every((e) => e === t[0]) ? t[0] : t, i = n ? e.indexOf(n) : -1, a = Ee(e, Math.max(i, 0));
|
|
170
170
|
r.length === 1 && (a = a.filter((e) => e !== n));
|
|
171
171
|
let o = a.find((e) => e.toLowerCase().startsWith(r.toLowerCase()));
|
|
172
172
|
return o === n ? void 0 : o;
|
|
173
173
|
}
|
|
174
174
|
//#endregion
|
|
175
|
-
//#region ../../node_modules/.pnpm/reka-ui@2.
|
|
176
|
-
function
|
|
175
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.11.0_vue@3.5.44_typescript@6.0.3_/node_modules/reka-ui/dist/shared/useSingleOrMultipleValue.js
|
|
176
|
+
function Oe({ type: e, defaultValue: t, modelValue: n }) {
|
|
177
177
|
let r = n || t;
|
|
178
178
|
return n !== void 0 || t !== void 0 ? Array.isArray(r) ? "multiple" : "single" : e ?? "single";
|
|
179
179
|
}
|
|
180
|
-
function
|
|
181
|
-
return e ||
|
|
180
|
+
function ke({ type: e, defaultValue: t, modelValue: n }) {
|
|
181
|
+
return e || Oe({
|
|
182
182
|
type: e,
|
|
183
183
|
defaultValue: t,
|
|
184
184
|
modelValue: n
|
|
185
185
|
});
|
|
186
186
|
}
|
|
187
|
-
function
|
|
187
|
+
function Ae({ type: e, defaultValue: t }) {
|
|
188
188
|
return t === void 0 ? e === "single" ? void 0 : [] : t;
|
|
189
189
|
}
|
|
190
|
-
function
|
|
191
|
-
let n =
|
|
192
|
-
defaultValue:
|
|
190
|
+
function je(e, t) {
|
|
191
|
+
let n = w(() => ke(e)), r = Z(e, "modelValue", t, {
|
|
192
|
+
defaultValue: Ae(e),
|
|
193
193
|
passive: e.modelValue === void 0,
|
|
194
194
|
deep: !0
|
|
195
195
|
});
|
|
@@ -197,7 +197,7 @@ function ke(e, t) {
|
|
|
197
197
|
if (n.value === "single") r.value = Q(e, r.value) ? void 0 : e;
|
|
198
198
|
else {
|
|
199
199
|
let t = Array.isArray(r.value) ? [...r.value || []] : [r.value].filter(Boolean);
|
|
200
|
-
if (
|
|
200
|
+
if (Ce(t, e)) {
|
|
201
201
|
let n = t.findIndex((t) => Q(t, e));
|
|
202
202
|
t.splice(n, 1);
|
|
203
203
|
} else t.push(e);
|
|
@@ -207,23 +207,23 @@ function ke(e, t) {
|
|
|
207
207
|
return {
|
|
208
208
|
modelValue: r,
|
|
209
209
|
changeModelValue: i,
|
|
210
|
-
isSingle:
|
|
210
|
+
isSingle: w(() => n.value === "single")
|
|
211
211
|
};
|
|
212
212
|
}
|
|
213
213
|
//#endregion
|
|
214
|
-
//#region ../../node_modules/.pnpm/reka-ui@2.
|
|
215
|
-
function
|
|
216
|
-
return e === void 0 ? !1 : Array.isArray(e) ? e.some((e) =>
|
|
214
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.11.0_vue@3.5.44_typescript@6.0.3_/node_modules/reka-ui/dist/Listbox/utils.js
|
|
215
|
+
function Me(e, t, n) {
|
|
216
|
+
return e === void 0 ? !1 : Array.isArray(e) ? e.some((e) => Ne(e, t, n)) : Ne(e, t, n);
|
|
217
217
|
}
|
|
218
|
-
function
|
|
218
|
+
function Ne(e, t, n) {
|
|
219
219
|
return e === void 0 || t === void 0 ? !1 : typeof e == "string" ? e === t : typeof n == "function" ? n(e, t) : typeof n == "string" ? e?.[n] === t?.[n] : Q(e, t);
|
|
220
220
|
}
|
|
221
221
|
//#endregion
|
|
222
|
-
//#region ../../node_modules/.pnpm/reka-ui@2.
|
|
223
|
-
var
|
|
222
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.11.0_vue@3.5.44_typescript@6.0.3_/node_modules/reka-ui/dist/RovingFocus/utils.js
|
|
223
|
+
var Pe = "rovingFocusGroup.onEntryFocus", Fe = {
|
|
224
224
|
bubbles: !1,
|
|
225
225
|
cancelable: !0
|
|
226
|
-
},
|
|
226
|
+
}, Ie = {
|
|
227
227
|
ArrowLeft: "prev",
|
|
228
228
|
ArrowUp: "prev",
|
|
229
229
|
ArrowRight: "next",
|
|
@@ -233,23 +233,23 @@ var Me = "rovingFocusGroup.onEntryFocus", Ne = {
|
|
|
233
233
|
PageDown: "last",
|
|
234
234
|
End: "last"
|
|
235
235
|
};
|
|
236
|
-
function
|
|
236
|
+
function Le(e, t) {
|
|
237
237
|
return t === "rtl" ? e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e : e;
|
|
238
238
|
}
|
|
239
|
-
function
|
|
240
|
-
let r =
|
|
241
|
-
if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(r)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(r))) return
|
|
239
|
+
function Re(e, t, n) {
|
|
240
|
+
let r = Le(e.key, n);
|
|
241
|
+
if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(r)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(r))) return Ie[r];
|
|
242
242
|
}
|
|
243
|
-
function
|
|
244
|
-
let n =
|
|
245
|
-
for (let r of e) if (r === n || (r.focus({ preventScroll: t }),
|
|
243
|
+
function ze(e, t = !1) {
|
|
244
|
+
let n = _();
|
|
245
|
+
for (let r of e) if (r === n || (r.focus({ preventScroll: t }), _() !== n)) return;
|
|
246
246
|
}
|
|
247
|
-
function
|
|
247
|
+
function Be(e, t) {
|
|
248
248
|
return e.map((n, r) => e[(t + r) % e.length]);
|
|
249
249
|
}
|
|
250
250
|
//#endregion
|
|
251
|
-
//#region ../../node_modules/.pnpm/reka-ui@2.
|
|
252
|
-
var [
|
|
251
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.11.0_vue@3.5.44_typescript@6.0.3_/node_modules/reka-ui/dist/Listbox/ListboxRoot.js
|
|
252
|
+
var [Ve, He] = /*#__PURE__*/ a("ListboxRoot"), [Ue, We] = /*#__PURE__*/ a("ListboxHighlightScroll"), Ge = /* @__PURE__ */ M({
|
|
253
253
|
__name: "ListboxRoot",
|
|
254
254
|
props: {
|
|
255
255
|
modelValue: {
|
|
@@ -286,6 +286,10 @@ var [ze, Be] = /*#__PURE__*/ o("ListboxRoot"), [Ve, He] = /*#__PURE__*/ o("Listb
|
|
|
286
286
|
type: Boolean,
|
|
287
287
|
required: !1
|
|
288
288
|
},
|
|
289
|
+
loop: {
|
|
290
|
+
type: Boolean,
|
|
291
|
+
required: !1
|
|
292
|
+
},
|
|
289
293
|
by: {
|
|
290
294
|
type: [String, Function],
|
|
291
295
|
required: !1
|
|
@@ -314,210 +318,226 @@ var [ze, Be] = /*#__PURE__*/ o("ListboxRoot"), [Ve, He] = /*#__PURE__*/ o("Listb
|
|
|
314
318
|
"leave"
|
|
315
319
|
],
|
|
316
320
|
setup(e, { expose: t, emit: n }) {
|
|
317
|
-
let r = e,
|
|
318
|
-
|
|
319
|
-
suppressHighlightScroll:
|
|
321
|
+
let r = e, a = n, { multiple: o, highlightOnHover: s, loop: c, orientation: l, disabled: f, selectionBehavior: p, dir: m } = G(r), { getItems: g, getItem: _ } = b({ isProvider: !0 }), { handleTypeaheadSearch: v } = Te(), { primitiveElement: ee, currentElement: te } = h(), C = y(), w = d(m), D = Ue(null);
|
|
322
|
+
We({
|
|
323
|
+
suppressHighlightScroll: V(!1),
|
|
320
324
|
onHighlightScrollRequest: () => {}
|
|
321
325
|
});
|
|
322
|
-
let
|
|
326
|
+
let O = x(te), k = V(), A = V(!1), j = V(!0), M = Z(r, "modelValue", a, {
|
|
323
327
|
defaultValue: r.defaultValue ?? (o.value ? [] : void 0),
|
|
324
328
|
passive: r.modelValue === void 0,
|
|
325
329
|
deep: !0
|
|
326
330
|
});
|
|
327
331
|
function ne(e) {
|
|
328
|
-
if (
|
|
329
|
-
let t = Array.isArray(
|
|
330
|
-
r.selectionBehavior === "toggle" ? (n === -1 ? t.push(e) : t.splice(n, 1),
|
|
331
|
-
} else r.selectionBehavior === "toggle" &&
|
|
332
|
+
if (A.value = !0, r.multiple) {
|
|
333
|
+
let t = Array.isArray(M.value) ? [...M.value] : [], n = t.findIndex((t) => Ne(t, e, r.by));
|
|
334
|
+
r.selectionBehavior === "toggle" ? (n === -1 ? t.push(e) : t.splice(n, 1), M.value = t) : (M.value = [e], k.value = e);
|
|
335
|
+
} else r.selectionBehavior === "toggle" && Ne(M.value, e, r.by) ? M.value = void 0 : M.value = e;
|
|
332
336
|
setTimeout(() => {
|
|
333
|
-
|
|
337
|
+
A.value = !1;
|
|
334
338
|
}, 1);
|
|
335
339
|
}
|
|
336
|
-
let
|
|
340
|
+
let N = V(null), P = V(null), I = V(!1), re = V(!1), L = fe(), ie = fe(), ae = fe();
|
|
337
341
|
function R() {
|
|
338
|
-
return
|
|
342
|
+
return g().map((e) => e.ref).filter((e) => e.dataset.disabled !== "");
|
|
339
343
|
}
|
|
340
|
-
function
|
|
344
|
+
function z(e, t = !0, n) {
|
|
341
345
|
if (!e) return;
|
|
342
|
-
|
|
343
|
-
let r =
|
|
344
|
-
(n ??
|
|
345
|
-
let e =
|
|
346
|
+
N.value = e;
|
|
347
|
+
let r = D?.suppressHighlightScroll.value ?? !1;
|
|
348
|
+
(n ?? j.value) && (r ? N.value.focus({ preventScroll: !0 }) : N.value.focus()), r ? D?.onHighlightScrollRequest(t ? () => {
|
|
349
|
+
let e = N.value;
|
|
346
350
|
e?.isConnected && e.scrollIntoView({ block: "nearest" });
|
|
347
|
-
} : void 0) : t &&
|
|
348
|
-
let
|
|
349
|
-
|
|
351
|
+
} : void 0) : t && N.value.scrollIntoView({ block: "nearest" });
|
|
352
|
+
let i = _(e);
|
|
353
|
+
a("highlight", i);
|
|
350
354
|
}
|
|
351
|
-
function
|
|
352
|
-
if (
|
|
355
|
+
function H(e) {
|
|
356
|
+
if (I.value) ae.trigger(e);
|
|
353
357
|
else {
|
|
354
|
-
let t =
|
|
355
|
-
t && (
|
|
358
|
+
let t = g().find((t) => Ne(t.value, e, r.by));
|
|
359
|
+
t && (N.value = t.ref, z(t.ref));
|
|
356
360
|
}
|
|
357
361
|
}
|
|
358
|
-
function
|
|
359
|
-
if (
|
|
362
|
+
function oe(e) {
|
|
363
|
+
if (N.value && N.value.isConnected) {
|
|
360
364
|
if (e.ctrlKey || e.metaKey || e.altKey) return;
|
|
361
|
-
e.preventDefault(), e.stopPropagation(),
|
|
365
|
+
e.preventDefault(), e.stopPropagation(), re.value || N.value.click();
|
|
362
366
|
}
|
|
363
367
|
}
|
|
364
|
-
function
|
|
365
|
-
if (
|
|
366
|
-
if (
|
|
368
|
+
function se(e) {
|
|
369
|
+
if (j.value) {
|
|
370
|
+
if (A.value = !0, I.value) ie.trigger(e);
|
|
367
371
|
else {
|
|
368
372
|
let t = e.altKey || e.ctrlKey || e.metaKey;
|
|
369
373
|
if (t && e.key === "a" && o.value) {
|
|
370
|
-
let t =
|
|
371
|
-
|
|
374
|
+
let t = g(), n = t.map((e) => e.value);
|
|
375
|
+
M.value = [...n], e.preventDefault();
|
|
372
376
|
let r = t.at(-1);
|
|
373
|
-
r &&
|
|
377
|
+
r && z(r.ref);
|
|
374
378
|
} else if (!t) {
|
|
375
|
-
let t =
|
|
376
|
-
t &&
|
|
379
|
+
let t = v(e.key, g());
|
|
380
|
+
t && z(t);
|
|
377
381
|
}
|
|
378
382
|
}
|
|
379
383
|
setTimeout(() => {
|
|
380
|
-
|
|
384
|
+
A.value = !1;
|
|
381
385
|
}, 1);
|
|
382
386
|
}
|
|
383
387
|
}
|
|
384
|
-
function
|
|
385
|
-
|
|
388
|
+
function W() {
|
|
389
|
+
re.value = !0;
|
|
386
390
|
}
|
|
387
|
-
function
|
|
388
|
-
|
|
389
|
-
|
|
391
|
+
function ce() {
|
|
392
|
+
F(() => {
|
|
393
|
+
re.value = !1;
|
|
390
394
|
});
|
|
391
395
|
}
|
|
392
|
-
function
|
|
393
|
-
|
|
396
|
+
function le() {
|
|
397
|
+
F(() => {
|
|
394
398
|
X(new KeyboardEvent("keydown", { key: "PageUp" }));
|
|
395
399
|
});
|
|
396
400
|
}
|
|
397
401
|
function Y(e) {
|
|
398
|
-
let t =
|
|
399
|
-
t?.isConnected && (
|
|
402
|
+
let t = N.value;
|
|
403
|
+
t?.isConnected && (P.value = t), N.value = null, a("leave", e);
|
|
400
404
|
}
|
|
401
|
-
function
|
|
405
|
+
function ue(e) {
|
|
402
406
|
let t = new CustomEvent("listbox.entryFocus", {
|
|
403
407
|
bubbles: !1,
|
|
404
408
|
cancelable: !0
|
|
405
409
|
});
|
|
406
|
-
if (e.currentTarget?.dispatchEvent(t),
|
|
407
|
-
if (
|
|
410
|
+
if (e.currentTarget?.dispatchEvent(t), a("entryFocus", t), !t.defaultPrevented) {
|
|
411
|
+
if (P.value) z(P.value);
|
|
408
412
|
else {
|
|
409
413
|
let e = R()?.[0];
|
|
410
|
-
|
|
414
|
+
z(e);
|
|
411
415
|
}
|
|
412
416
|
}
|
|
413
417
|
}
|
|
418
|
+
function de(e) {
|
|
419
|
+
let t = g(!0).map((e) => e.ref), n = e === "next" ? t.at(-1) : t[0];
|
|
420
|
+
if (!n) return !1;
|
|
421
|
+
let r = Number(n.getAttribute("aria-posinset")), i = Number(n.getAttribute("aria-setsize"));
|
|
422
|
+
return e === "next" ? r === i : r === 1;
|
|
423
|
+
}
|
|
414
424
|
function X(e) {
|
|
415
|
-
let t =
|
|
425
|
+
let t = Re(e, l.value, w.value);
|
|
416
426
|
if (!t) return;
|
|
417
427
|
let n = R();
|
|
418
|
-
if (
|
|
428
|
+
if (N.value) {
|
|
419
429
|
if (t === "last") n.reverse();
|
|
420
430
|
else if (t === "prev" || t === "next") {
|
|
421
431
|
t === "prev" && n.reverse();
|
|
422
|
-
let
|
|
423
|
-
|
|
432
|
+
let r = n.indexOf(N.value), i = c.value && r === n.length - 1;
|
|
433
|
+
if (i && I.value) {
|
|
434
|
+
if (de(t)) {
|
|
435
|
+
let n = t === "next" ? C.HOME : C.END;
|
|
436
|
+
return ie.trigger(new KeyboardEvent("keydown", {
|
|
437
|
+
key: n,
|
|
438
|
+
shiftKey: e.shiftKey
|
|
439
|
+
}));
|
|
440
|
+
}
|
|
441
|
+
n = [];
|
|
442
|
+
} else n = i ? n.slice(0, 1) : n.slice(r + 1);
|
|
424
443
|
}
|
|
425
|
-
|
|
444
|
+
pe(e, n[0]);
|
|
426
445
|
}
|
|
427
446
|
if (n.length) {
|
|
428
|
-
let e = !
|
|
429
|
-
|
|
447
|
+
let e = !N.value && t === "prev" ? n.length - 1 : 0;
|
|
448
|
+
z(n[e]);
|
|
430
449
|
}
|
|
431
|
-
if (
|
|
432
|
-
}
|
|
433
|
-
function
|
|
434
|
-
if (!
|
|
435
|
-
let n =
|
|
436
|
-
if (e.key ===
|
|
437
|
-
let i =
|
|
438
|
-
|
|
450
|
+
if (I.value) return ie.trigger(e);
|
|
451
|
+
}
|
|
452
|
+
function pe(e, t) {
|
|
453
|
+
if (!I.value && r.selectionBehavior === "replace" && o.value && Array.isArray(M.value) && (!e.altKey && !e.ctrlKey && !e.metaKey || e.shiftKey) && e.shiftKey) {
|
|
454
|
+
let n = g().filter((e) => e.ref.dataset.disabled !== ""), r = n.find((e) => e.ref === t)?.value;
|
|
455
|
+
if (e.key === C.END ? r = n.at(-1)?.value : e.key === C.HOME && (r = n[0]?.value), !r || !k.value) return;
|
|
456
|
+
let i = Se(n.map((e) => e.value), k.value, r);
|
|
457
|
+
M.value = i;
|
|
439
458
|
}
|
|
440
459
|
}
|
|
441
|
-
async function
|
|
442
|
-
if (
|
|
443
|
-
if (await
|
|
460
|
+
async function me(e, t = !0) {
|
|
461
|
+
if (i) {
|
|
462
|
+
if (await F(), I.value) L.trigger({
|
|
444
463
|
event: e,
|
|
445
464
|
scroll: t
|
|
446
465
|
});
|
|
447
466
|
else {
|
|
448
467
|
let e = R(), n = e.find((e) => e.dataset.state === "checked"), r = t ? void 0 : !1;
|
|
449
|
-
n ?
|
|
468
|
+
n ? z(n, t, r) : e.length && z(e[0], t, r);
|
|
450
469
|
}
|
|
451
470
|
}
|
|
452
471
|
}
|
|
453
|
-
let
|
|
454
|
-
return
|
|
455
|
-
if (!
|
|
456
|
-
let e =
|
|
457
|
-
|
|
458
|
-
|
|
472
|
+
let he = !1;
|
|
473
|
+
return q(M, () => {
|
|
474
|
+
if (!A.value) {
|
|
475
|
+
let e = he;
|
|
476
|
+
he = !0, F(() => {
|
|
477
|
+
me(void 0, e);
|
|
459
478
|
});
|
|
460
479
|
}
|
|
461
480
|
}, {
|
|
462
481
|
immediate: !0,
|
|
463
482
|
deep: !0
|
|
464
483
|
}), t({
|
|
465
|
-
highlightedElement:
|
|
466
|
-
highlightItem:
|
|
467
|
-
highlightFirstItem:
|
|
468
|
-
highlightSelected:
|
|
469
|
-
getItems:
|
|
470
|
-
}),
|
|
471
|
-
modelValue:
|
|
484
|
+
highlightedElement: N,
|
|
485
|
+
highlightItem: H,
|
|
486
|
+
highlightFirstItem: le,
|
|
487
|
+
highlightSelected: me,
|
|
488
|
+
getItems: g
|
|
489
|
+
}), He({
|
|
490
|
+
modelValue: M,
|
|
472
491
|
onValueChange: ne,
|
|
473
492
|
multiple: o,
|
|
474
|
-
orientation:
|
|
475
|
-
dir:
|
|
476
|
-
disabled:
|
|
493
|
+
orientation: l,
|
|
494
|
+
dir: w,
|
|
495
|
+
disabled: f,
|
|
477
496
|
highlightOnHover: s,
|
|
478
|
-
|
|
479
|
-
|
|
497
|
+
loop: c,
|
|
498
|
+
highlightedElement: N,
|
|
499
|
+
isVirtual: I,
|
|
480
500
|
virtualFocusHook: L,
|
|
481
|
-
virtualKeydownHook:
|
|
482
|
-
virtualHighlightHook:
|
|
501
|
+
virtualKeydownHook: ie,
|
|
502
|
+
virtualHighlightHook: ae,
|
|
483
503
|
by: r.by,
|
|
484
|
-
firstValue:
|
|
485
|
-
selectionBehavior:
|
|
486
|
-
focusable:
|
|
504
|
+
firstValue: k,
|
|
505
|
+
selectionBehavior: p,
|
|
506
|
+
focusable: j,
|
|
487
507
|
onLeave: Y,
|
|
488
|
-
onEnter:
|
|
489
|
-
changeHighlight:
|
|
490
|
-
onKeydownEnter:
|
|
508
|
+
onEnter: ue,
|
|
509
|
+
changeHighlight: z,
|
|
510
|
+
onKeydownEnter: oe,
|
|
491
511
|
onKeydownNavigation: X,
|
|
492
|
-
onKeydownTypeAhead:
|
|
493
|
-
onCompositionStart:
|
|
494
|
-
onCompositionEnd:
|
|
495
|
-
highlightFirstItem:
|
|
496
|
-
}), (
|
|
512
|
+
onKeydownTypeAhead: se,
|
|
513
|
+
onCompositionStart: W,
|
|
514
|
+
onCompositionEnd: ce,
|
|
515
|
+
highlightFirstItem: le
|
|
516
|
+
}), (t, n) => (B(), T(K(u), {
|
|
497
517
|
ref_key: "primitiveElement",
|
|
498
|
-
ref:
|
|
518
|
+
ref: ee,
|
|
499
519
|
as: e.as,
|
|
500
520
|
"as-child": e.asChild,
|
|
501
|
-
dir: K(
|
|
502
|
-
"data-disabled": K(
|
|
521
|
+
dir: K(w),
|
|
522
|
+
"data-disabled": K(f) ? "" : void 0,
|
|
503
523
|
onPointerleave: Y,
|
|
504
|
-
onFocusout:
|
|
524
|
+
onFocusout: n[0] ||= async (e) => {
|
|
505
525
|
let t = e.relatedTarget || e.target;
|
|
506
|
-
await
|
|
526
|
+
await F(), N.value && K(te) && !K(te).contains(t) && Y(e);
|
|
507
527
|
}
|
|
508
528
|
}, {
|
|
509
|
-
default:
|
|
529
|
+
default: J(() => [U(t.$slots, "default", { modelValue: K(M) }), K(O) && e.name ? (B(), T(K(S), {
|
|
510
530
|
key: 0,
|
|
511
531
|
name: e.name,
|
|
512
|
-
value: K(
|
|
513
|
-
disabled: K(
|
|
532
|
+
value: K(M),
|
|
533
|
+
disabled: K(f),
|
|
514
534
|
required: e.required
|
|
515
535
|
}, null, 8, [
|
|
516
536
|
"name",
|
|
517
537
|
"value",
|
|
518
538
|
"disabled",
|
|
519
539
|
"required"
|
|
520
|
-
])) :
|
|
540
|
+
])) : E("v-if", !0)]),
|
|
521
541
|
_: 3
|
|
522
542
|
}, 8, [
|
|
523
543
|
"as",
|
|
@@ -526,7 +546,7 @@ var [ze, Be] = /*#__PURE__*/ o("ListboxRoot"), [Ve, He] = /*#__PURE__*/ o("Listb
|
|
|
526
546
|
"data-disabled"
|
|
527
547
|
]));
|
|
528
548
|
}
|
|
529
|
-
}),
|
|
549
|
+
}), Ke = /* @__PURE__ */ M({
|
|
530
550
|
__name: "ListboxContent",
|
|
531
551
|
props: {
|
|
532
552
|
asChild: {
|
|
@@ -539,22 +559,22 @@ var [ze, Be] = /*#__PURE__*/ o("ListboxRoot"), [Ve, He] = /*#__PURE__*/ o("Listb
|
|
|
539
559
|
}
|
|
540
560
|
},
|
|
541
561
|
setup(t) {
|
|
542
|
-
let { CollectionSlot: n } =
|
|
543
|
-
return (e,
|
|
544
|
-
default:
|
|
562
|
+
let { CollectionSlot: n } = b(), r = Ve(), i = e(!1, 10);
|
|
563
|
+
return (e, a) => (B(), T(K(n), null, {
|
|
564
|
+
default: J(() => [A(K(u), {
|
|
545
565
|
role: "listbox",
|
|
546
|
-
as:
|
|
547
|
-
"as-child":
|
|
566
|
+
as: t.as,
|
|
567
|
+
"as-child": t.asChild,
|
|
548
568
|
tabindex: K(r).focusable.value ? K(r).highlightedElement.value ? "-1" : "0" : "-1",
|
|
549
569
|
"aria-orientation": K(r).orientation.value,
|
|
550
570
|
"aria-multiselectable": !!K(r).multiple.value,
|
|
551
571
|
"data-orientation": K(r).orientation.value,
|
|
552
|
-
onMousedown:
|
|
553
|
-
onFocus:
|
|
572
|
+
onMousedown: a[0] ||= X((e) => i.value = !0, ["left"]),
|
|
573
|
+
onFocus: a[1] ||= (e) => {
|
|
554
574
|
K(i) || K(r).onEnter(e);
|
|
555
575
|
},
|
|
556
576
|
onKeydown: [
|
|
557
|
-
|
|
577
|
+
a[2] ||= ue((e) => {
|
|
558
578
|
(K(r).orientation.value !== "vertical" || e.key !== "ArrowLeft" && e.key !== "ArrowRight") && (K(r).orientation.value !== "horizontal" || e.key !== "ArrowUp" && e.key !== "ArrowDown") && (e.preventDefault(), K(r).focusable.value && K(r).onKeydownNavigation(e));
|
|
559
579
|
}, [
|
|
560
580
|
"down",
|
|
@@ -564,11 +584,11 @@ var [ze, Be] = /*#__PURE__*/ o("ListboxRoot"), [Ve, He] = /*#__PURE__*/ o("Listb
|
|
|
564
584
|
"home",
|
|
565
585
|
"end"
|
|
566
586
|
]),
|
|
567
|
-
|
|
587
|
+
ue(K(r).onKeydownEnter, ["enter"]),
|
|
568
588
|
K(r).onKeydownTypeAhead
|
|
569
589
|
]
|
|
570
590
|
}, {
|
|
571
|
-
default:
|
|
591
|
+
default: J(() => [U(e.$slots, "default")]),
|
|
572
592
|
_: 3
|
|
573
593
|
}, 8, [
|
|
574
594
|
"as",
|
|
@@ -582,7 +602,7 @@ var [ze, Be] = /*#__PURE__*/ o("ListboxRoot"), [Ve, He] = /*#__PURE__*/ o("Listb
|
|
|
582
602
|
_: 3
|
|
583
603
|
}));
|
|
584
604
|
}
|
|
585
|
-
}),
|
|
605
|
+
}), qe = "listbox.select", [Je, Ye] = /*#__PURE__*/ a("ListboxItem"), Xe = /* @__PURE__ */ M({
|
|
586
606
|
__name: "ListboxItem",
|
|
587
607
|
props: {
|
|
588
608
|
value: {
|
|
@@ -604,26 +624,26 @@ var [ze, Be] = /*#__PURE__*/ o("ListboxRoot"), [Ve, He] = /*#__PURE__*/ o("Listb
|
|
|
604
624
|
}
|
|
605
625
|
},
|
|
606
626
|
emits: ["select"],
|
|
607
|
-
setup(e, { emit:
|
|
608
|
-
let i = e, a =
|
|
627
|
+
setup(e, { emit: r }) {
|
|
628
|
+
let i = e, a = r, s = o(void 0, "reka-listbox-item"), { CollectionItem: c } = b(), { forwardRef: l, currentElement: d } = n(), f = Ve(), p = w(() => d.value != null && d.value === f.highlightedElement.value), m = w(() => Me(f.modelValue.value, i.value, f.by)), h = w(() => f.disabled.value || i.disabled);
|
|
609
629
|
async function g(e) {
|
|
610
|
-
a("select", e), !e?.defaultPrevented && !h.value && e && (f.onValueChange(i.value), f.changeHighlight(
|
|
630
|
+
a("select", e), !e?.defaultPrevented && !h.value && e && (f.onValueChange(i.value), f.changeHighlight(d.value));
|
|
611
631
|
}
|
|
612
632
|
function _(e) {
|
|
613
|
-
let
|
|
633
|
+
let n = {
|
|
614
634
|
originalEvent: e,
|
|
615
635
|
value: i.value
|
|
616
636
|
};
|
|
617
|
-
|
|
637
|
+
t(qe, g, n);
|
|
618
638
|
}
|
|
619
|
-
return
|
|
620
|
-
default:
|
|
639
|
+
return Ye({ isSelected: m }), (t, n) => (B(), T(K(c), { value: e.value }, {
|
|
640
|
+
default: J(() => [de([
|
|
621
641
|
p.value,
|
|
622
642
|
m.value,
|
|
623
643
|
h.value,
|
|
624
644
|
K(f).focusable.value,
|
|
625
|
-
...Object.entries(
|
|
626
|
-
], () =>
|
|
645
|
+
...Object.entries(t.$attrs).flat()
|
|
646
|
+
], () => A(K(u), P({ id: K(s) }, t.$attrs, {
|
|
627
647
|
ref: K(l),
|
|
628
648
|
role: "option",
|
|
629
649
|
tabindex: K(f).focusable.value ? p.value ? "0" : "-1" : -1,
|
|
@@ -635,12 +655,12 @@ var [ze, Be] = /*#__PURE__*/ o("ListboxRoot"), [Ve, He] = /*#__PURE__*/ o("Listb
|
|
|
635
655
|
"data-highlighted": p.value ? "" : void 0,
|
|
636
656
|
"data-state": m.value ? "checked" : "unchecked",
|
|
637
657
|
onClick: _,
|
|
638
|
-
onKeydown:
|
|
639
|
-
onPointermove:
|
|
640
|
-
K(f).highlightedElement.value !== K(
|
|
658
|
+
onKeydown: ue(X(_, ["prevent"]), ["space"]),
|
|
659
|
+
onPointermove: n[0] ||= () => {
|
|
660
|
+
K(f).highlightedElement.value !== K(d) && K(f).highlightOnHover.value && K(f).changeHighlight(K(d), !1, !1);
|
|
641
661
|
}
|
|
642
662
|
}), {
|
|
643
|
-
default:
|
|
663
|
+
default: J(() => [U(t.$slots, "default", { selected: m.value })]),
|
|
644
664
|
_: 3
|
|
645
665
|
}, 16, [
|
|
646
666
|
"id",
|
|
@@ -653,11 +673,11 @@ var [ze, Be] = /*#__PURE__*/ o("ListboxRoot"), [Ve, He] = /*#__PURE__*/ o("Listb
|
|
|
653
673
|
"data-highlighted",
|
|
654
674
|
"data-state",
|
|
655
675
|
"onKeydown"
|
|
656
|
-
]),
|
|
676
|
+
]), n, 1)]),
|
|
657
677
|
_: 3
|
|
658
678
|
}, 8, ["value"]));
|
|
659
679
|
}
|
|
660
|
-
}), [
|
|
680
|
+
}), [Ze, Qe] = /*#__PURE__*/ a("RovingFocusGroup"), $e = /* @__PURE__ */ M({
|
|
661
681
|
__name: "RovingFocusGroup",
|
|
662
682
|
props: {
|
|
663
683
|
orientation: {
|
|
@@ -698,17 +718,17 @@ var [ze, Be] = /*#__PURE__*/ o("ListboxRoot"), [Ve, He] = /*#__PURE__*/ o("Listb
|
|
|
698
718
|
},
|
|
699
719
|
emits: ["entryFocus", "update:currentTabStopId"],
|
|
700
720
|
setup(e, { expose: t, emit: n }) {
|
|
701
|
-
let r = e, i = n, { loop: a, orientation: o, dir: s } = G(r), c =
|
|
721
|
+
let r = e, i = n, { loop: a, orientation: o, dir: s } = G(r), c = d(s), l = Z(r, "currentTabStopId", i, {
|
|
702
722
|
defaultValue: r.defaultCurrentTabStopId,
|
|
703
723
|
passive: r.currentTabStopId === void 0
|
|
704
|
-
}),
|
|
724
|
+
}), f = V(!1), p = V(!1), m = V(0), { getItems: h, CollectionSlot: g } = b({ isProvider: !0 });
|
|
705
725
|
function _(e) {
|
|
706
726
|
let t = !p.value;
|
|
707
|
-
if (e.currentTarget && e.target === e.currentTarget && t && !
|
|
708
|
-
let t = new CustomEvent(
|
|
727
|
+
if (e.currentTarget && e.target === e.currentTarget && t && !f.value) {
|
|
728
|
+
let t = new CustomEvent(Pe, Fe);
|
|
709
729
|
if (e.currentTarget.dispatchEvent(t), i("entryFocus", t), !t.defaultPrevented) {
|
|
710
730
|
let e = h().map((e) => e.ref).filter((e) => e.dataset.disabled !== "");
|
|
711
|
-
|
|
731
|
+
ze([
|
|
712
732
|
e.find((e) => e.getAttribute("data-active") === ""),
|
|
713
733
|
e.find((e) => e.getAttribute("data-highlighted") === ""),
|
|
714
734
|
e.find((e) => e.id === l.value),
|
|
@@ -723,7 +743,7 @@ var [ze, Be] = /*#__PURE__*/ o("ListboxRoot"), [Ve, He] = /*#__PURE__*/ o("Listb
|
|
|
723
743
|
p.value = !1;
|
|
724
744
|
}, 1);
|
|
725
745
|
}
|
|
726
|
-
return t({ getItems: h }),
|
|
746
|
+
return t({ getItems: h }), Qe({
|
|
727
747
|
loop: a,
|
|
728
748
|
dir: c,
|
|
729
749
|
orientation: o,
|
|
@@ -732,7 +752,7 @@ var [ze, Be] = /*#__PURE__*/ o("ListboxRoot"), [Ve, He] = /*#__PURE__*/ o("Listb
|
|
|
732
752
|
l.value = e;
|
|
733
753
|
},
|
|
734
754
|
onItemShiftTab: () => {
|
|
735
|
-
|
|
755
|
+
f.value = !0;
|
|
736
756
|
},
|
|
737
757
|
onFocusableItemAdd: () => {
|
|
738
758
|
m.value++;
|
|
@@ -740,20 +760,20 @@ var [ze, Be] = /*#__PURE__*/ o("ListboxRoot"), [Ve, He] = /*#__PURE__*/ o("Listb
|
|
|
740
760
|
onFocusableItemRemove: () => {
|
|
741
761
|
m.value--;
|
|
742
762
|
}
|
|
743
|
-
}), (
|
|
744
|
-
default:
|
|
745
|
-
tabindex:
|
|
763
|
+
}), (t, n) => (B(), T(K(g), null, {
|
|
764
|
+
default: J(() => [A(K(u), {
|
|
765
|
+
tabindex: f.value || m.value === 0 ? -1 : 0,
|
|
746
766
|
"data-orientation": K(o),
|
|
747
767
|
as: e.as,
|
|
748
768
|
"as-child": e.asChild,
|
|
749
769
|
dir: K(c),
|
|
750
770
|
style: { outline: "none" },
|
|
751
|
-
onMousedown:
|
|
771
|
+
onMousedown: n[0] ||= (e) => p.value = !0,
|
|
752
772
|
onMouseup: v,
|
|
753
773
|
onFocus: _,
|
|
754
|
-
onBlur:
|
|
774
|
+
onBlur: n[1] ||= (e) => f.value = !1
|
|
755
775
|
}, {
|
|
756
|
-
default:
|
|
776
|
+
default: J(() => [U(t.$slots, "default")]),
|
|
757
777
|
_: 3
|
|
758
778
|
}, 8, [
|
|
759
779
|
"tabindex",
|
|
@@ -765,7 +785,7 @@ var [ze, Be] = /*#__PURE__*/ o("ListboxRoot"), [Ve, He] = /*#__PURE__*/ o("Listb
|
|
|
765
785
|
_: 3
|
|
766
786
|
}));
|
|
767
787
|
}
|
|
768
|
-
}),
|
|
788
|
+
}), et = /* @__PURE__ */ M({
|
|
769
789
|
__name: "RovingFocusItem",
|
|
770
790
|
props: {
|
|
771
791
|
tabStopId: {
|
|
@@ -796,49 +816,61 @@ var [ze, Be] = /*#__PURE__*/ o("ListboxRoot"), [Ve, He] = /*#__PURE__*/ o("Listb
|
|
|
796
816
|
}
|
|
797
817
|
},
|
|
798
818
|
setup(e) {
|
|
799
|
-
let t = e,
|
|
800
|
-
|
|
801
|
-
t.focusable &&
|
|
802
|
-
}),
|
|
803
|
-
t.focusable &&
|
|
804
|
-
}),
|
|
805
|
-
e !== t && (e ?
|
|
819
|
+
let t = e, r = Ze(), i = o(), a = w(() => t.tabStopId || i), s = w(() => r.currentTabStopId.value === a.value), { getItems: c, CollectionItem: l } = b();
|
|
820
|
+
R(() => {
|
|
821
|
+
t.focusable && r.onFocusableItemAdd();
|
|
822
|
+
}), z(() => {
|
|
823
|
+
t.focusable && r.onFocusableItemRemove();
|
|
824
|
+
}), q(() => t.focusable, (e, t) => {
|
|
825
|
+
e !== t && (e ? r.onFocusableItemAdd() : r.onFocusableItemRemove());
|
|
806
826
|
});
|
|
807
|
-
function
|
|
827
|
+
function d(e) {
|
|
828
|
+
if (e.defaultPrevented) return;
|
|
808
829
|
if (e.key === "Tab" && e.shiftKey) {
|
|
809
|
-
|
|
830
|
+
r.onItemShiftTab();
|
|
810
831
|
return;
|
|
811
832
|
}
|
|
812
833
|
if (e.target !== e.currentTarget) return;
|
|
813
|
-
let
|
|
814
|
-
if (
|
|
834
|
+
let n = Re(e, r.orientation.value, r.dir.value);
|
|
835
|
+
if (n !== void 0) {
|
|
815
836
|
if (e.metaKey || e.ctrlKey || e.altKey || !t.allowShiftKey && e.shiftKey) return;
|
|
816
837
|
e.preventDefault();
|
|
817
|
-
let i = [...
|
|
818
|
-
if (
|
|
819
|
-
else if (
|
|
820
|
-
|
|
838
|
+
let i = [...c().map((e) => e.ref).filter((e) => e.dataset.disabled !== "")];
|
|
839
|
+
if (n === "last") i.reverse();
|
|
840
|
+
else if (n === "prev" || n === "next") {
|
|
841
|
+
n === "prev" && i.reverse();
|
|
821
842
|
let t = i.indexOf(e.currentTarget);
|
|
822
|
-
i =
|
|
843
|
+
i = r.loop.value ? Be(i, t + 1) : i.slice(t + 1);
|
|
823
844
|
}
|
|
824
|
-
|
|
845
|
+
F(() => ze(i));
|
|
825
846
|
}
|
|
826
847
|
}
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
848
|
+
let { forwardRef: f, currentElement: p } = n(), m = se();
|
|
849
|
+
q(p, (e) => {
|
|
850
|
+
m.value = e;
|
|
851
|
+
}, {
|
|
852
|
+
immediate: !0,
|
|
853
|
+
flush: "post"
|
|
854
|
+
}), me(m, "keydown", d);
|
|
855
|
+
function h(e) {
|
|
856
|
+
m.value = e.currentTarget;
|
|
857
|
+
}
|
|
858
|
+
return (t, n) => (B(), T(K(l), null, {
|
|
859
|
+
default: J(() => [A(K(u), {
|
|
860
|
+
ref: K(f),
|
|
861
|
+
tabindex: s.value ? 0 : -1,
|
|
862
|
+
"data-orientation": K(r).orientation.value,
|
|
831
863
|
"data-active": e.active ? "" : void 0,
|
|
832
864
|
"data-disabled": e.focusable ? void 0 : "",
|
|
833
865
|
as: e.as,
|
|
834
866
|
"as-child": e.asChild,
|
|
835
|
-
onMousedown:
|
|
836
|
-
e.focusable ? K(
|
|
867
|
+
onMousedown: n[0] ||= (t) => {
|
|
868
|
+
e.focusable ? K(r).onItemFocus(a.value) : t.preventDefault();
|
|
837
869
|
},
|
|
838
|
-
onFocus:
|
|
839
|
-
|
|
870
|
+
onFocus: n[1] ||= (e) => K(r).onItemFocus(a.value),
|
|
871
|
+
onFocusin: h
|
|
840
872
|
}, {
|
|
841
|
-
default:
|
|
873
|
+
default: J(() => [U(t.$slots, "default")]),
|
|
842
874
|
_: 3
|
|
843
875
|
}, 8, [
|
|
844
876
|
"tabindex",
|
|
@@ -851,7 +883,7 @@ var [ze, Be] = /*#__PURE__*/ o("ListboxRoot"), [Ve, He] = /*#__PURE__*/ o("Listb
|
|
|
851
883
|
_: 3
|
|
852
884
|
}));
|
|
853
885
|
}
|
|
854
|
-
}), [
|
|
886
|
+
}), [tt, nt] = /*#__PURE__*/ a("CheckboxGroupRoot"), rt = /* @__PURE__ */ M({
|
|
855
887
|
__name: "CheckboxGroupRoot",
|
|
856
888
|
props: {
|
|
857
889
|
defaultValue: {
|
|
@@ -871,6 +903,10 @@ var [ze, Be] = /*#__PURE__*/ o("ListboxRoot"), [Ve, He] = /*#__PURE__*/ o("Listb
|
|
|
871
903
|
type: Boolean,
|
|
872
904
|
required: !1
|
|
873
905
|
},
|
|
906
|
+
max: {
|
|
907
|
+
type: [Number, null],
|
|
908
|
+
required: !1
|
|
909
|
+
},
|
|
874
910
|
as: {
|
|
875
911
|
type: null,
|
|
876
912
|
required: !1
|
|
@@ -902,49 +938,76 @@ var [ze, Be] = /*#__PURE__*/ o("ListboxRoot"), [Ve, He] = /*#__PURE__*/ o("Listb
|
|
|
902
938
|
},
|
|
903
939
|
emits: ["update:modelValue"],
|
|
904
940
|
setup(e, { emit: t }) {
|
|
905
|
-
let n = e, r = t, { disabled: i,
|
|
941
|
+
let n = e, r = t, { disabled: i, max: a, rovingFocus: o, dir: s } = G(n), c = d(s), { primitiveElement: l, currentElement: f } = h(), p = x(f), m = Z(n, "modelValue", r, {
|
|
906
942
|
defaultValue: n.defaultValue ?? [],
|
|
907
943
|
passive: n.modelValue === void 0
|
|
908
|
-
}),
|
|
944
|
+
}), g = w(() => o.value ? {
|
|
909
945
|
loop: n.loop,
|
|
910
|
-
dir:
|
|
946
|
+
dir: c.value,
|
|
911
947
|
orientation: n.orientation
|
|
912
948
|
} : {});
|
|
913
|
-
return
|
|
914
|
-
modelValue:
|
|
915
|
-
rovingFocus:
|
|
916
|
-
disabled: i
|
|
917
|
-
|
|
949
|
+
return nt({
|
|
950
|
+
modelValue: m,
|
|
951
|
+
rovingFocus: o,
|
|
952
|
+
disabled: i,
|
|
953
|
+
max: a
|
|
954
|
+
}), (t, n) => (B(), T(oe(K(o) ? K($e) : K(u)), P({
|
|
918
955
|
ref_key: "primitiveElement",
|
|
919
|
-
ref:
|
|
956
|
+
ref: l,
|
|
920
957
|
as: e.as,
|
|
921
958
|
"as-child": e.asChild
|
|
922
|
-
},
|
|
923
|
-
default:
|
|
959
|
+
}, g.value), {
|
|
960
|
+
default: J(() => [U(t.$slots, "default"), K(p) && e.name ? (B(), T(K(S), {
|
|
924
961
|
key: 0,
|
|
925
962
|
name: e.name,
|
|
926
|
-
value: K(
|
|
963
|
+
value: K(m),
|
|
927
964
|
required: e.required
|
|
928
965
|
}, null, 8, [
|
|
929
966
|
"name",
|
|
930
967
|
"value",
|
|
931
968
|
"required"
|
|
932
|
-
])) :
|
|
969
|
+
])) : E("v-if", !0)]),
|
|
933
970
|
_: 3
|
|
934
971
|
}, 16, ["as", "as-child"]));
|
|
935
972
|
}
|
|
973
|
+
}), it = /* @__PURE__ */ M({
|
|
974
|
+
__name: "Label",
|
|
975
|
+
props: {
|
|
976
|
+
for: {
|
|
977
|
+
type: String,
|
|
978
|
+
required: !1
|
|
979
|
+
},
|
|
980
|
+
asChild: {
|
|
981
|
+
type: Boolean,
|
|
982
|
+
required: !1
|
|
983
|
+
},
|
|
984
|
+
as: {
|
|
985
|
+
type: null,
|
|
986
|
+
required: !1,
|
|
987
|
+
default: "label"
|
|
988
|
+
}
|
|
989
|
+
},
|
|
990
|
+
setup(e) {
|
|
991
|
+
let t = e;
|
|
992
|
+
return n(), (e, n) => (B(), T(K(u), P(t, { onMousedown: n[0] ||= (e) => {
|
|
993
|
+
!e.defaultPrevented && e.detail > 1 && e.preventDefault();
|
|
994
|
+
} }), {
|
|
995
|
+
default: J(() => [U(e.$slots, "default")]),
|
|
996
|
+
_: 3
|
|
997
|
+
}, 16));
|
|
998
|
+
}
|
|
936
999
|
});
|
|
937
1000
|
//#endregion
|
|
938
|
-
//#region ../../node_modules/.pnpm/reka-ui@2.
|
|
939
|
-
function
|
|
1001
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.11.0_vue@3.5.44_typescript@6.0.3_/node_modules/reka-ui/dist/Checkbox/utils.js
|
|
1002
|
+
function at(e) {
|
|
940
1003
|
return e === "indeterminate";
|
|
941
1004
|
}
|
|
942
|
-
function
|
|
943
|
-
return
|
|
1005
|
+
function ot(e) {
|
|
1006
|
+
return at(e) ? "indeterminate" : e ? "checked" : "unchecked";
|
|
944
1007
|
}
|
|
945
1008
|
//#endregion
|
|
946
|
-
//#region ../../node_modules/.pnpm/reka-ui@2.
|
|
947
|
-
var [
|
|
1009
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.11.0_vue@3.5.44_typescript@6.0.3_/node_modules/reka-ui/dist/Checkbox/CheckboxRoot.js
|
|
1010
|
+
var [st, ct] = /*#__PURE__*/ a("CheckboxRoot"), lt = /* @__PURE__ */ M({
|
|
948
1011
|
inheritAttrs: !1,
|
|
949
1012
|
__name: "CheckboxRoot",
|
|
950
1013
|
props: {
|
|
@@ -999,51 +1062,93 @@ var [it, at] = /*#__PURE__*/ o("CheckboxRoot"), ot = /* @__PURE__ */ j({
|
|
|
999
1062
|
}
|
|
1000
1063
|
},
|
|
1001
1064
|
emits: ["update:modelValue"],
|
|
1002
|
-
setup(e, { emit:
|
|
1003
|
-
let
|
|
1004
|
-
defaultValue:
|
|
1005
|
-
passive:
|
|
1006
|
-
}),
|
|
1007
|
-
|
|
1008
|
-
if (
|
|
1065
|
+
setup(e, { emit: t }) {
|
|
1066
|
+
let r = e, i = t, { forwardRef: a, currentElement: o } = n(), s = tt(null), c = te(null), l = Z(r, "modelValue", i, {
|
|
1067
|
+
defaultValue: r.defaultValue ?? r.falseValue,
|
|
1068
|
+
passive: r.modelValue === void 0
|
|
1069
|
+
}), d = w(() => {
|
|
1070
|
+
let e = s?.max.value;
|
|
1071
|
+
if (ee(e)) return !1;
|
|
1072
|
+
let t = s.modelValue.value ?? [];
|
|
1073
|
+
return !Ce(t, r.value) && t.length >= e;
|
|
1074
|
+
}), f = w(() => !!(s?.disabled.value || r.disabled || c?.disabled.value)), p = w(() => f.value || d.value), m = w(() => !!c && !s), h = w(() => r.id ?? (m.value ? c?.fieldId.value : void 0)), g = w(() => r.name ?? c?.name.value), _ = w(() => c ? r.required || c.required.value : r.required), v = w(() => Q(l.value, r.trueValue)), y = w(() => ee(s?.modelValue.value) ? l.value === "indeterminate" ? "indeterminate" : v.value : Ce(s.modelValue.value, r.value));
|
|
1075
|
+
function b() {
|
|
1076
|
+
if (p.value) return;
|
|
1077
|
+
let e = y.value !== !0;
|
|
1078
|
+
if (ee(s?.modelValue.value)) l.value === "indeterminate" ? l.value = r.trueValue : l.value = v.value ? r.falseValue : r.trueValue;
|
|
1009
1079
|
else {
|
|
1010
|
-
let e = [...
|
|
1011
|
-
if (
|
|
1012
|
-
let t = e.findIndex((e) => Q(e,
|
|
1080
|
+
let e = [...s.modelValue.value || []];
|
|
1081
|
+
if (Ce(e, r.value)) {
|
|
1082
|
+
let t = e.findIndex((e) => Q(e, r.value));
|
|
1013
1083
|
e.splice(t, 1);
|
|
1014
|
-
} else e.push(
|
|
1015
|
-
|
|
1084
|
+
} else e.push(r.value);
|
|
1085
|
+
s.modelValue.value = e;
|
|
1016
1086
|
}
|
|
1087
|
+
m.value && c?.handleControlInput({ value: e });
|
|
1017
1088
|
}
|
|
1018
|
-
|
|
1019
|
-
|
|
1089
|
+
q(y, (e) => {
|
|
1090
|
+
m.value && c?.reportControlState({ filled: e === !0 });
|
|
1091
|
+
});
|
|
1092
|
+
let O = x(o), k = we(), A = ce(), j = w(() => {
|
|
1093
|
+
if (!A["aria-label"]) return h.value && o.value ? document.querySelector(`[for="${h.value}"]`)?.innerText : void 0;
|
|
1020
1094
|
});
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1095
|
+
function M() {
|
|
1096
|
+
let e = (e, t) => [e, t].filter(Boolean).join(" ") || void 0;
|
|
1097
|
+
return {
|
|
1098
|
+
"aria-labelledby": e(A["aria-labelledby"], m.value ? c?.labelId.value : void 0),
|
|
1099
|
+
"aria-describedby": e(A["aria-describedby"], c?.describedBy.value),
|
|
1100
|
+
"aria-invalid": A["aria-invalid"] ?? (c?.invalid.value || void 0)
|
|
1101
|
+
};
|
|
1102
|
+
}
|
|
1103
|
+
function ne() {
|
|
1104
|
+
c?.handleControlFocus();
|
|
1105
|
+
}
|
|
1106
|
+
function N() {
|
|
1107
|
+
m.value ? c?.handleControlBlur() : c?.reportControlState({
|
|
1108
|
+
focused: !1,
|
|
1109
|
+
touched: !0
|
|
1110
|
+
});
|
|
1111
|
+
}
|
|
1112
|
+
let F;
|
|
1113
|
+
return R(() => {
|
|
1114
|
+
m.value && (F = c?.registerControl({
|
|
1115
|
+
id: () => h.value,
|
|
1116
|
+
element: () => o.value,
|
|
1117
|
+
getValue: () => y.value,
|
|
1118
|
+
required: () => r.required,
|
|
1119
|
+
isFilled: (e) => e === !0
|
|
1120
|
+
}));
|
|
1121
|
+
}), ae(() => F?.()), ct({
|
|
1122
|
+
disabled: f,
|
|
1123
|
+
state: y
|
|
1124
|
+
}), (t, n) => (B(), D(C, null, [(B(), T(oe(K(s)?.rovingFocus.value ? K(et) : K(u)), P({
|
|
1125
|
+
...K(c)?.dataAttributes.value,
|
|
1126
|
+
...t.$attrs,
|
|
1127
|
+
...K(k),
|
|
1128
|
+
...M()
|
|
1027
1129
|
}, {
|
|
1028
|
-
id:
|
|
1029
|
-
ref: K(
|
|
1130
|
+
id: h.value,
|
|
1131
|
+
ref: K(a),
|
|
1030
1132
|
role: "checkbox",
|
|
1031
1133
|
"as-child": e.asChild,
|
|
1032
1134
|
as: e.as,
|
|
1033
1135
|
type: e.as === "button" ? "button" : void 0,
|
|
1034
|
-
"aria-checked": K(
|
|
1035
|
-
"aria-required":
|
|
1036
|
-
"aria-label":
|
|
1037
|
-
"data-state": K(
|
|
1038
|
-
"
|
|
1039
|
-
disabled:
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1136
|
+
"aria-checked": K(at)(y.value) ? "mixed" : y.value,
|
|
1137
|
+
"aria-required": _.value,
|
|
1138
|
+
"aria-label": t.$attrs["aria-label"] || j.value,
|
|
1139
|
+
"data-state": K(ot)(y.value),
|
|
1140
|
+
"aria-disabled": p.value ? "true" : void 0,
|
|
1141
|
+
"data-disabled": f.value ? "" : void 0,
|
|
1142
|
+
disabled: f.value,
|
|
1143
|
+
focusable: K(s)?.rovingFocus.value ? !f.value : void 0,
|
|
1144
|
+
onKeydown: ue(X(() => {}, ["prevent"]), ["enter"]),
|
|
1145
|
+
onClick: b,
|
|
1146
|
+
onFocus: ne,
|
|
1147
|
+
onBlur: N
|
|
1043
1148
|
}), {
|
|
1044
|
-
default:
|
|
1149
|
+
default: J(() => [U(t.$slots, "default", {
|
|
1045
1150
|
modelValue: K(l),
|
|
1046
|
-
state:
|
|
1151
|
+
state: y.value
|
|
1047
1152
|
})]),
|
|
1048
1153
|
_: 3
|
|
1049
1154
|
}, 16, [
|
|
@@ -1055,27 +1160,28 @@ var [it, at] = /*#__PURE__*/ o("CheckboxRoot"), ot = /* @__PURE__ */ j({
|
|
|
1055
1160
|
"aria-required",
|
|
1056
1161
|
"aria-label",
|
|
1057
1162
|
"data-state",
|
|
1163
|
+
"aria-disabled",
|
|
1058
1164
|
"data-disabled",
|
|
1059
1165
|
"disabled",
|
|
1060
1166
|
"focusable",
|
|
1061
1167
|
"onKeydown"
|
|
1062
|
-
])), K(
|
|
1168
|
+
])), K(O) && g.value && !K(s) ? (B(), T(K(S), P({
|
|
1063
1169
|
key: 0,
|
|
1064
1170
|
type: "checkbox",
|
|
1065
|
-
checked: !!
|
|
1066
|
-
name:
|
|
1171
|
+
checked: !!y.value,
|
|
1172
|
+
name: g.value,
|
|
1067
1173
|
value: e.value,
|
|
1068
|
-
disabled:
|
|
1069
|
-
required:
|
|
1070
|
-
}, K(
|
|
1174
|
+
disabled: f.value,
|
|
1175
|
+
required: _.value
|
|
1176
|
+
}, K(k)), null, 16, [
|
|
1071
1177
|
"checked",
|
|
1072
1178
|
"name",
|
|
1073
1179
|
"value",
|
|
1074
1180
|
"disabled",
|
|
1075
1181
|
"required"
|
|
1076
|
-
])) :
|
|
1182
|
+
])) : E("v-if", !0)], 64));
|
|
1077
1183
|
}
|
|
1078
|
-
}),
|
|
1184
|
+
}), ut = /* @__PURE__ */ M({
|
|
1079
1185
|
__name: "PopoverAnchor",
|
|
1080
1186
|
props: {
|
|
1081
1187
|
reference: {
|
|
@@ -1093,53 +1199,27 @@ var [it, at] = /*#__PURE__*/ o("CheckboxRoot"), ot = /* @__PURE__ */ j({
|
|
|
1093
1199
|
},
|
|
1094
1200
|
setup(e) {
|
|
1095
1201
|
let t = e;
|
|
1096
|
-
|
|
1097
|
-
let
|
|
1098
|
-
return
|
|
1099
|
-
|
|
1100
|
-
}),
|
|
1101
|
-
|
|
1102
|
-
}), (e, n) => (
|
|
1103
|
-
default:
|
|
1104
|
-
_: 3
|
|
1105
|
-
}, 16));
|
|
1106
|
-
}
|
|
1107
|
-
}), ct = /* @__PURE__ */ j({
|
|
1108
|
-
__name: "Label",
|
|
1109
|
-
props: {
|
|
1110
|
-
for: {
|
|
1111
|
-
type: String,
|
|
1112
|
-
required: !1
|
|
1113
|
-
},
|
|
1114
|
-
asChild: {
|
|
1115
|
-
type: Boolean,
|
|
1116
|
-
required: !1
|
|
1117
|
-
},
|
|
1118
|
-
as: {
|
|
1119
|
-
type: null,
|
|
1120
|
-
required: !1,
|
|
1121
|
-
default: "label"
|
|
1122
|
-
}
|
|
1123
|
-
},
|
|
1124
|
-
setup(e) {
|
|
1125
|
-
let t = e;
|
|
1126
|
-
return r(), (e, n) => (z(), w(K(d), N(t, { onMousedown: n[0] ||= (e) => {
|
|
1127
|
-
!e.defaultPrevented && e.detail > 1 && e.preventDefault();
|
|
1128
|
-
} }), {
|
|
1129
|
-
default: q(() => [H(e.$slots, "default")]),
|
|
1202
|
+
n();
|
|
1203
|
+
let i = f();
|
|
1204
|
+
return ie(() => {
|
|
1205
|
+
i.hasCustomAnchor.value = !0;
|
|
1206
|
+
}), z(() => {
|
|
1207
|
+
i.hasCustomAnchor.value = !1;
|
|
1208
|
+
}), (e, n) => (B(), T(K(r), re(N(t)), {
|
|
1209
|
+
default: J(() => [U(e.$slots, "default")]),
|
|
1130
1210
|
_: 3
|
|
1131
1211
|
}, 16));
|
|
1132
1212
|
}
|
|
1133
|
-
}),
|
|
1134
|
-
function
|
|
1135
|
-
|
|
1213
|
+
}), dt = "radio.select";
|
|
1214
|
+
function ft(e, n, r) {
|
|
1215
|
+
t(dt, r, {
|
|
1136
1216
|
originalEvent: e,
|
|
1137
|
-
value:
|
|
1217
|
+
value: n
|
|
1138
1218
|
});
|
|
1139
1219
|
}
|
|
1140
1220
|
//#endregion
|
|
1141
|
-
//#region ../../node_modules/.pnpm/reka-ui@2.
|
|
1142
|
-
var
|
|
1221
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.11.0_vue@3.5.44_typescript@6.0.3_/node_modules/reka-ui/dist/RadioGroup/Radio.js
|
|
1222
|
+
var pt = /* @__PURE__ */ M({
|
|
1143
1223
|
inheritAttrs: !1,
|
|
1144
1224
|
__name: "Radio",
|
|
1145
1225
|
props: {
|
|
@@ -1181,13 +1261,13 @@ var dt = /* @__PURE__ */ j({
|
|
|
1181
1261
|
},
|
|
1182
1262
|
emits: ["update:checked", "select"],
|
|
1183
1263
|
setup(e, { emit: t }) {
|
|
1184
|
-
let
|
|
1264
|
+
let r = e, i = t, a = Z(r, "checked", i, { passive: r.checked === void 0 }), { value: o } = G(r), { forwardRef: s, currentElement: c } = n(), l = x(c), d = we(), f = w(() => r.id && c.value ? document.querySelector(`[for="${r.id}"]`)?.innerText : void 0);
|
|
1185
1265
|
function p(e) {
|
|
1186
|
-
|
|
1266
|
+
r.disabled || ft(e, r.value, (e) => {
|
|
1187
1267
|
i("select", e), !e?.defaultPrevented && (a.value = !0, l.value && e.stopPropagation());
|
|
1188
1268
|
});
|
|
1189
1269
|
}
|
|
1190
|
-
return (
|
|
1270
|
+
return (t, n) => (B(), D(C, null, [A(K(u), P({
|
|
1191
1271
|
id: e.id,
|
|
1192
1272
|
ref: K(s),
|
|
1193
1273
|
role: "radio",
|
|
@@ -1203,10 +1283,10 @@ var dt = /* @__PURE__ */ j({
|
|
|
1203
1283
|
required: e.required,
|
|
1204
1284
|
name: e.name
|
|
1205
1285
|
}, {
|
|
1206
|
-
...K(
|
|
1207
|
-
...
|
|
1286
|
+
...K(d),
|
|
1287
|
+
...t.$attrs
|
|
1208
1288
|
}, { onClick: X(p, ["stop"]) }), {
|
|
1209
|
-
default:
|
|
1289
|
+
default: J(() => [U(t.$slots, "default", { checked: K(a) })]),
|
|
1210
1290
|
_: 3
|
|
1211
1291
|
}, 16, [
|
|
1212
1292
|
"id",
|
|
@@ -1221,7 +1301,7 @@ var dt = /* @__PURE__ */ j({
|
|
|
1221
1301
|
"value",
|
|
1222
1302
|
"required",
|
|
1223
1303
|
"name"
|
|
1224
|
-
]), K(l) && e.name ? (
|
|
1304
|
+
]), K(l) && e.name ? (B(), T(K(S), P({
|
|
1225
1305
|
key: 0,
|
|
1226
1306
|
type: "radio",
|
|
1227
1307
|
tabindex: "-1",
|
|
@@ -1230,15 +1310,15 @@ var dt = /* @__PURE__ */ j({
|
|
|
1230
1310
|
name: e.name,
|
|
1231
1311
|
disabled: e.disabled,
|
|
1232
1312
|
required: e.required
|
|
1233
|
-
}, K(
|
|
1313
|
+
}, K(d)), null, 16, [
|
|
1234
1314
|
"value",
|
|
1235
1315
|
"checked",
|
|
1236
1316
|
"name",
|
|
1237
1317
|
"disabled",
|
|
1238
1318
|
"required"
|
|
1239
|
-
])) :
|
|
1319
|
+
])) : E("v-if", !0)], 64));
|
|
1240
1320
|
}
|
|
1241
|
-
}), [
|
|
1321
|
+
}), [mt, ht] = /*#__PURE__*/ a("RadioGroupRoot"), gt = /* @__PURE__ */ M({
|
|
1242
1322
|
__name: "RadioGroupRoot",
|
|
1243
1323
|
props: {
|
|
1244
1324
|
modelValue: {
|
|
@@ -1288,37 +1368,37 @@ var dt = /* @__PURE__ */ j({
|
|
|
1288
1368
|
},
|
|
1289
1369
|
emits: ["update:modelValue"],
|
|
1290
1370
|
setup(e, { emit: t }) {
|
|
1291
|
-
let
|
|
1292
|
-
defaultValue:
|
|
1293
|
-
passive:
|
|
1294
|
-
}), { disabled: c, loop: l, orientation:
|
|
1295
|
-
return
|
|
1371
|
+
let r = e, i = t, { forwardRef: a, currentElement: o } = n(), s = Z(r, "modelValue", i, {
|
|
1372
|
+
defaultValue: r.defaultValue,
|
|
1373
|
+
passive: r.modelValue === void 0
|
|
1374
|
+
}), { disabled: c, loop: l, orientation: f, name: p, required: m, dir: h } = G(r), g = d(h), _ = x(o);
|
|
1375
|
+
return ht({
|
|
1296
1376
|
modelValue: s,
|
|
1297
1377
|
changeModelValue: (e) => {
|
|
1298
1378
|
s.value = e;
|
|
1299
1379
|
},
|
|
1300
1380
|
disabled: c,
|
|
1301
1381
|
loop: l,
|
|
1302
|
-
orientation:
|
|
1382
|
+
orientation: f,
|
|
1303
1383
|
name: p?.value,
|
|
1304
1384
|
required: m
|
|
1305
|
-
}), (
|
|
1385
|
+
}), (t, n) => (B(), T(K($e), {
|
|
1306
1386
|
"as-child": "",
|
|
1307
|
-
orientation: K(
|
|
1387
|
+
orientation: K(f),
|
|
1308
1388
|
dir: K(g),
|
|
1309
1389
|
loop: K(l)
|
|
1310
1390
|
}, {
|
|
1311
|
-
default:
|
|
1391
|
+
default: J(() => [A(K(u), {
|
|
1312
1392
|
ref: K(a),
|
|
1313
1393
|
role: "radiogroup",
|
|
1314
1394
|
"data-disabled": K(c) ? "" : void 0,
|
|
1315
1395
|
"as-child": e.asChild,
|
|
1316
1396
|
as: e.as,
|
|
1317
|
-
"aria-orientation": K(
|
|
1397
|
+
"aria-orientation": K(f),
|
|
1318
1398
|
"aria-required": K(m),
|
|
1319
1399
|
dir: K(g)
|
|
1320
1400
|
}, {
|
|
1321
|
-
default:
|
|
1401
|
+
default: J(() => [U(t.$slots, "default", { modelValue: K(s) }), K(_) && K(p) ? (B(), T(K(S), {
|
|
1322
1402
|
key: 0,
|
|
1323
1403
|
required: K(m),
|
|
1324
1404
|
disabled: K(c),
|
|
@@ -1329,7 +1409,7 @@ var dt = /* @__PURE__ */ j({
|
|
|
1329
1409
|
"disabled",
|
|
1330
1410
|
"value",
|
|
1331
1411
|
"name"
|
|
1332
|
-
])) :
|
|
1412
|
+
])) : E("v-if", !0)]),
|
|
1333
1413
|
_: 3
|
|
1334
1414
|
}, 8, [
|
|
1335
1415
|
"data-disabled",
|
|
@@ -1346,7 +1426,7 @@ var dt = /* @__PURE__ */ j({
|
|
|
1346
1426
|
"loop"
|
|
1347
1427
|
]));
|
|
1348
1428
|
}
|
|
1349
|
-
}), [
|
|
1429
|
+
}), [_t, vt] = /*#__PURE__*/ a("RadioGroupItem"), yt = /* @__PURE__ */ M({
|
|
1350
1430
|
inheritAttrs: !1,
|
|
1351
1431
|
__name: "RadioGroupItem",
|
|
1352
1432
|
props: {
|
|
@@ -1383,20 +1463,20 @@ var dt = /* @__PURE__ */ j({
|
|
|
1383
1463
|
},
|
|
1384
1464
|
emits: ["select"],
|
|
1385
1465
|
setup(e, { emit: t }) {
|
|
1386
|
-
let
|
|
1387
|
-
|
|
1466
|
+
let r = e, i = t, { forwardRef: a, currentElement: o } = n(), s = mt(), c = w(() => s.disabled.value || r.disabled), l = w(() => s.required.value || r.required), u = w(() => Q(s.modelValue?.value, r.value));
|
|
1467
|
+
vt({
|
|
1388
1468
|
disabled: c,
|
|
1389
1469
|
checked: u
|
|
1390
1470
|
});
|
|
1391
|
-
let d =
|
|
1471
|
+
let d = V(!1), f = [
|
|
1392
1472
|
"ArrowUp",
|
|
1393
1473
|
"ArrowDown",
|
|
1394
1474
|
"ArrowLeft",
|
|
1395
1475
|
"ArrowRight"
|
|
1396
1476
|
];
|
|
1397
|
-
|
|
1477
|
+
me("keydown", (e) => {
|
|
1398
1478
|
f.includes(e.key) && (d.value = !0);
|
|
1399
|
-
}),
|
|
1479
|
+
}), me("keyup", () => {
|
|
1400
1480
|
d.value = !1;
|
|
1401
1481
|
});
|
|
1402
1482
|
function p() {
|
|
@@ -1404,29 +1484,29 @@ var dt = /* @__PURE__ */ j({
|
|
|
1404
1484
|
d.value && o.value?.click();
|
|
1405
1485
|
}, 0);
|
|
1406
1486
|
}
|
|
1407
|
-
let m =
|
|
1408
|
-
return (
|
|
1487
|
+
let m = we();
|
|
1488
|
+
return (t, n) => (B(), T(K(et), {
|
|
1409
1489
|
checked: u.value,
|
|
1410
1490
|
disabled: c.value,
|
|
1411
1491
|
"as-child": "",
|
|
1412
1492
|
focusable: !c.value,
|
|
1413
1493
|
active: u.value
|
|
1414
1494
|
}, {
|
|
1415
|
-
default:
|
|
1495
|
+
default: J(() => [A(pt, P({
|
|
1416
1496
|
...K(m),
|
|
1417
|
-
...
|
|
1418
|
-
...
|
|
1497
|
+
...t.$attrs,
|
|
1498
|
+
...r
|
|
1419
1499
|
}, {
|
|
1420
1500
|
ref: K(a),
|
|
1421
1501
|
checked: u.value,
|
|
1422
1502
|
required: l.value,
|
|
1423
1503
|
disabled: c.value,
|
|
1424
|
-
"onUpdate:checked":
|
|
1425
|
-
onSelect:
|
|
1426
|
-
onKeydown:
|
|
1504
|
+
"onUpdate:checked": n[0] ||= (t) => K(s).changeModelValue(e.value),
|
|
1505
|
+
onSelect: n[1] ||= (e) => i("select", e),
|
|
1506
|
+
onKeydown: n[2] ||= ue(X(() => {}, ["prevent"]), ["enter"]),
|
|
1427
1507
|
onFocus: p
|
|
1428
1508
|
}), {
|
|
1429
|
-
default:
|
|
1509
|
+
default: J(() => [U(t.$slots, "default", {
|
|
1430
1510
|
checked: u.value,
|
|
1431
1511
|
required: l.value,
|
|
1432
1512
|
disabled: c.value
|
|
@@ -1445,7 +1525,7 @@ var dt = /* @__PURE__ */ j({
|
|
|
1445
1525
|
"active"
|
|
1446
1526
|
]));
|
|
1447
1527
|
}
|
|
1448
|
-
}), [
|
|
1528
|
+
}), [bt, xt] = /*#__PURE__*/ a("ToggleGroupRoot"), St = /* @__PURE__ */ M({
|
|
1449
1529
|
__name: "ToggleGroupRoot",
|
|
1450
1530
|
props: {
|
|
1451
1531
|
rovingFocus: {
|
|
@@ -1502,29 +1582,29 @@ var dt = /* @__PURE__ */ j({
|
|
|
1502
1582
|
},
|
|
1503
1583
|
emits: ["update:modelValue"],
|
|
1504
1584
|
setup(e, { emit: t }) {
|
|
1505
|
-
let
|
|
1506
|
-
return
|
|
1585
|
+
let r = e, i = t, { loop: a, rovingFocus: o, disabled: s, dir: c } = G(r), l = d(c), { forwardRef: f, currentElement: p } = n(), { modelValue: m, changeModelValue: h, isSingle: g } = je(r, i), _ = x(p);
|
|
1586
|
+
return xt({
|
|
1507
1587
|
isSingle: g,
|
|
1508
1588
|
modelValue: m,
|
|
1509
1589
|
changeModelValue: h,
|
|
1510
1590
|
dir: l,
|
|
1511
|
-
orientation:
|
|
1591
|
+
orientation: r.orientation,
|
|
1512
1592
|
loop: a,
|
|
1513
1593
|
rovingFocus: o,
|
|
1514
1594
|
disabled: s
|
|
1515
|
-
}), (
|
|
1595
|
+
}), (t, n) => (B(), T(oe(K(o) ? K($e) : K(u)), {
|
|
1516
1596
|
"as-child": "",
|
|
1517
1597
|
orientation: K(o) ? e.orientation : void 0,
|
|
1518
1598
|
dir: K(l),
|
|
1519
1599
|
loop: K(o) ? K(a) : void 0
|
|
1520
1600
|
}, {
|
|
1521
|
-
default:
|
|
1522
|
-
ref: K(
|
|
1601
|
+
default: J(() => [A(K(u), {
|
|
1602
|
+
ref: K(f),
|
|
1523
1603
|
role: "group",
|
|
1524
1604
|
"as-child": e.asChild,
|
|
1525
1605
|
as: e.as
|
|
1526
1606
|
}, {
|
|
1527
|
-
default:
|
|
1607
|
+
default: J(() => [U(t.$slots, "default", { modelValue: K(m) }), K(_) && e.name ? (B(), T(S, {
|
|
1528
1608
|
key: 0,
|
|
1529
1609
|
name: e.name,
|
|
1530
1610
|
required: e.required,
|
|
@@ -1533,7 +1613,7 @@ var dt = /* @__PURE__ */ j({
|
|
|
1533
1613
|
"name",
|
|
1534
1614
|
"required",
|
|
1535
1615
|
"value"
|
|
1536
|
-
])) :
|
|
1616
|
+
])) : E("v-if", !0)]),
|
|
1537
1617
|
_: 3
|
|
1538
1618
|
}, 8, ["as-child", "as"])]),
|
|
1539
1619
|
_: 3
|
|
@@ -1543,7 +1623,7 @@ var dt = /* @__PURE__ */ j({
|
|
|
1543
1623
|
"loop"
|
|
1544
1624
|
]));
|
|
1545
1625
|
}
|
|
1546
|
-
}),
|
|
1626
|
+
}), Ct = /* @__PURE__ */ M({
|
|
1547
1627
|
inheritAttrs: !1,
|
|
1548
1628
|
__name: "Toggle",
|
|
1549
1629
|
props: {
|
|
@@ -1581,18 +1661,18 @@ var dt = /* @__PURE__ */ j({
|
|
|
1581
1661
|
},
|
|
1582
1662
|
emits: ["update:modelValue"],
|
|
1583
1663
|
setup(e, { emit: t }) {
|
|
1584
|
-
let
|
|
1585
|
-
defaultValue:
|
|
1586
|
-
passive:
|
|
1664
|
+
let r = e, i = t, { forwardRef: a, currentElement: o } = n(), s = we(), c = bt(null), l = Z(r, "modelValue", i, {
|
|
1665
|
+
defaultValue: r.defaultValue,
|
|
1666
|
+
passive: r.modelValue === void 0
|
|
1587
1667
|
});
|
|
1588
|
-
function
|
|
1668
|
+
function d() {
|
|
1589
1669
|
l.value = !l.value;
|
|
1590
1670
|
}
|
|
1591
|
-
let f =
|
|
1592
|
-
return (
|
|
1671
|
+
let f = w(() => l.value ? "on" : "off"), p = x(o);
|
|
1672
|
+
return (t, n) => (B(), D(C, null, [A(K(u), P({
|
|
1593
1673
|
ref: K(a),
|
|
1594
1674
|
type: e.as === "button" ? "button" : void 0,
|
|
1595
|
-
"as-child":
|
|
1675
|
+
"as-child": r.asChild,
|
|
1596
1676
|
as: e.as,
|
|
1597
1677
|
"aria-pressed": K(l),
|
|
1598
1678
|
"data-state": f.value,
|
|
@@ -1600,9 +1680,9 @@ var dt = /* @__PURE__ */ j({
|
|
|
1600
1680
|
disabled: e.disabled
|
|
1601
1681
|
}, {
|
|
1602
1682
|
...K(s),
|
|
1603
|
-
...
|
|
1604
|
-
}, { onClick:
|
|
1605
|
-
default:
|
|
1683
|
+
...t.$attrs
|
|
1684
|
+
}, { onClick: d }), {
|
|
1685
|
+
default: J(() => [U(t.$slots, "default", {
|
|
1606
1686
|
modelValue: K(l),
|
|
1607
1687
|
disabled: e.disabled,
|
|
1608
1688
|
pressed: K(l),
|
|
@@ -1617,7 +1697,7 @@ var dt = /* @__PURE__ */ j({
|
|
|
1617
1697
|
"data-state",
|
|
1618
1698
|
"data-disabled",
|
|
1619
1699
|
"disabled"
|
|
1620
|
-
]), K(p) && e.name && !K(c) ? (
|
|
1700
|
+
]), K(p) && e.name && !K(c) ? (B(), T(S, P({
|
|
1621
1701
|
key: 0,
|
|
1622
1702
|
type: "checkbox",
|
|
1623
1703
|
name: e.name,
|
|
@@ -1627,9 +1707,9 @@ var dt = /* @__PURE__ */ j({
|
|
|
1627
1707
|
"name",
|
|
1628
1708
|
"value",
|
|
1629
1709
|
"required"
|
|
1630
|
-
])) :
|
|
1710
|
+
])) : E("v-if", !0)], 64));
|
|
1631
1711
|
}
|
|
1632
|
-
}),
|
|
1712
|
+
}), wt = /* @__PURE__ */ M({
|
|
1633
1713
|
__name: "ToggleGroupItem",
|
|
1634
1714
|
props: {
|
|
1635
1715
|
value: {
|
|
@@ -1651,27 +1731,27 @@ var dt = /* @__PURE__ */ j({
|
|
|
1651
1731
|
}
|
|
1652
1732
|
},
|
|
1653
1733
|
setup(e) {
|
|
1654
|
-
let t = e,
|
|
1655
|
-
return (
|
|
1734
|
+
let t = e, r = bt(), i = w(() => r.disabled?.value || t.disabled), a = w(() => Ce(r.modelValue.value, t.value)), { forwardRef: o } = n(), s = we();
|
|
1735
|
+
return (n, c) => (B(), T(oe(K(r).rovingFocus.value ? K(et) : K(u)), P({ "as-child": "" }, K(r).rovingFocus.value ? {
|
|
1656
1736
|
focusable: !i.value,
|
|
1657
1737
|
active: a.value
|
|
1658
1738
|
} : {}), {
|
|
1659
|
-
default:
|
|
1739
|
+
default: J(() => [A(K(Ct), P({
|
|
1660
1740
|
...K(s),
|
|
1661
1741
|
...t
|
|
1662
1742
|
}, {
|
|
1663
1743
|
ref: K(o),
|
|
1664
1744
|
disabled: i.value,
|
|
1665
1745
|
"model-value": a.value,
|
|
1666
|
-
"onUpdate:modelValue":
|
|
1746
|
+
"onUpdate:modelValue": c[0] ||= (t) => K(r).changeModelValue(e.value)
|
|
1667
1747
|
}), {
|
|
1668
|
-
default:
|
|
1748
|
+
default: J((e) => [U(n.$slots, "default", re(N(e)))]),
|
|
1669
1749
|
_: 3
|
|
1670
1750
|
}, 16, ["disabled", "model-value"])]),
|
|
1671
1751
|
_: 3
|
|
1672
1752
|
}, 16));
|
|
1673
1753
|
}
|
|
1674
|
-
}),
|
|
1754
|
+
}), Tt = /* @__PURE__ */ M({
|
|
1675
1755
|
name: "HstButtonGroup",
|
|
1676
1756
|
props: {
|
|
1677
1757
|
title: {},
|
|
@@ -1680,7 +1760,7 @@ var dt = /* @__PURE__ */ j({
|
|
|
1680
1760
|
},
|
|
1681
1761
|
emits: ["update:modelValue"],
|
|
1682
1762
|
setup(e, { emit: t }) {
|
|
1683
|
-
let n = e, r = t, i =
|
|
1763
|
+
let n = e, r = t, i = w(() => Array.isArray(n.options) ? n.options.map((e) => typeof e == "string" || typeof e == "number" ? {
|
|
1684
1764
|
value: e,
|
|
1685
1765
|
label: String(e)
|
|
1686
1766
|
} : e) : Object.entries(n.options).map(([e, t]) => ({
|
|
@@ -1690,29 +1770,29 @@ var dt = /* @__PURE__ */ j({
|
|
|
1690
1770
|
function a(e) {
|
|
1691
1771
|
e != null && r("update:modelValue", e);
|
|
1692
1772
|
}
|
|
1693
|
-
return (t, n) => (
|
|
1773
|
+
return (t, n) => (B(), T(l, {
|
|
1694
1774
|
tag: "div",
|
|
1695
1775
|
title: e.title,
|
|
1696
1776
|
class: "poveste-button-group"
|
|
1697
1777
|
}, {
|
|
1698
|
-
actions:
|
|
1699
|
-
default:
|
|
1778
|
+
actions: J(() => [U(t.$slots, "actions")]),
|
|
1779
|
+
default: J(() => [A(K(St), {
|
|
1700
1780
|
type: "single",
|
|
1701
1781
|
class: "poveste-button-group-options",
|
|
1702
1782
|
"data-slot": "options",
|
|
1703
1783
|
"model-value": e.modelValue ?? null,
|
|
1704
1784
|
"onUpdate:modelValue": a
|
|
1705
1785
|
}, {
|
|
1706
|
-
default:
|
|
1786
|
+
default: J(() => [(B(!0), D(C, null, H(i.value, ({ label: e, value: t }) => (B(), T(K(wt), {
|
|
1707
1787
|
key: t,
|
|
1708
1788
|
"as-child": "",
|
|
1709
1789
|
value: t
|
|
1710
1790
|
}, {
|
|
1711
|
-
default:
|
|
1791
|
+
default: J(() => [A(ye, {
|
|
1712
1792
|
class: "poveste-button-group-option",
|
|
1713
1793
|
"data-slot": "option"
|
|
1714
1794
|
}, {
|
|
1715
|
-
default:
|
|
1795
|
+
default: J(() => [k(W(e), 1)]),
|
|
1716
1796
|
_: 2
|
|
1717
1797
|
}, 1024)]),
|
|
1718
1798
|
_: 2
|
|
@@ -1722,38 +1802,38 @@ var dt = /* @__PURE__ */ j({
|
|
|
1722
1802
|
_: 3
|
|
1723
1803
|
}, 8, ["title"]));
|
|
1724
1804
|
}
|
|
1725
|
-
}),
|
|
1805
|
+
}), Et = {
|
|
1726
1806
|
class: "poveste-checkbox-visual",
|
|
1727
1807
|
"data-slot": "visual"
|
|
1728
|
-
},
|
|
1808
|
+
}, Dt = {
|
|
1729
1809
|
width: "16",
|
|
1730
1810
|
height: "16",
|
|
1731
1811
|
viewBox: "0 0 24 24",
|
|
1732
1812
|
class: "poveste-checkbox-visual-check",
|
|
1733
1813
|
"data-slot": "visual-check"
|
|
1734
|
-
},
|
|
1814
|
+
}, Ot = ["stroke-dasharray", "stroke-dashoffset"], kt = /* @__PURE__ */ M({
|
|
1735
1815
|
name: "CheckboxVisual",
|
|
1736
1816
|
props: { modelValue: { type: Boolean } },
|
|
1737
1817
|
setup(e) {
|
|
1738
|
-
let t = e, n =
|
|
1739
|
-
return
|
|
1818
|
+
let t = e, n = V(), r = V(0), i = w(() => +!!t.modelValue), a = w(() => (1 - i.value) * r.value), o = V(!1);
|
|
1819
|
+
return q(() => t.modelValue, () => {
|
|
1740
1820
|
o.value = !0;
|
|
1741
|
-
}),
|
|
1821
|
+
}), q(n, () => {
|
|
1742
1822
|
r.value = n.value?.getTotalLength?.() ?? 21.21;
|
|
1743
|
-
}), (e, t) => (
|
|
1823
|
+
}), (e, t) => (B(), D("span", Et, [t[0] ||= O("span", {
|
|
1744
1824
|
class: "poveste-checkbox-visual-box",
|
|
1745
1825
|
"data-slot": "visual-box"
|
|
1746
|
-
}, null, -1), (
|
|
1826
|
+
}, null, -1), (B(), D("svg", Dt, [O("path", {
|
|
1747
1827
|
ref_key: "path",
|
|
1748
1828
|
ref: n,
|
|
1749
1829
|
d: "m 4 12 l 5 5 l 10 -10",
|
|
1750
1830
|
fill: "none",
|
|
1751
|
-
class:
|
|
1831
|
+
class: I(o.value ? "poveste-checkbox-visual-animated" : void 0),
|
|
1752
1832
|
"stroke-dasharray": r.value,
|
|
1753
1833
|
"stroke-dashoffset": a.value
|
|
1754
|
-
}, null, 10,
|
|
1834
|
+
}, null, 10, Ot)]))]));
|
|
1755
1835
|
}
|
|
1756
|
-
}),
|
|
1836
|
+
}), At = ["data-checked"], jt = /* @__PURE__ */ M({
|
|
1757
1837
|
name: "HstSimpleCheckbox",
|
|
1758
1838
|
props: {
|
|
1759
1839
|
modelValue: { type: Boolean },
|
|
@@ -1762,7 +1842,7 @@ var dt = /* @__PURE__ */ j({
|
|
|
1762
1842
|
emits: { "update:modelValue": (e) => !0 },
|
|
1763
1843
|
setup(e, { emit: t }) {
|
|
1764
1844
|
let n = t;
|
|
1765
|
-
return (t, r) => e.withToggle ? (
|
|
1845
|
+
return (t, r) => e.withToggle ? (B(), T(K(lt), {
|
|
1766
1846
|
key: 0,
|
|
1767
1847
|
"model-value": e.modelValue ?? !1,
|
|
1768
1848
|
class: "poveste-simple-checkbox poveste-simple-checkbox-interactive",
|
|
@@ -1770,16 +1850,16 @@ var dt = /* @__PURE__ */ j({
|
|
|
1770
1850
|
"data-checked": e.modelValue ? "" : void 0,
|
|
1771
1851
|
"onUpdate:modelValue": r[0] ||= (e) => n("update:modelValue", e === !0)
|
|
1772
1852
|
}, {
|
|
1773
|
-
default:
|
|
1853
|
+
default: J(() => [A(kt, { "model-value": e.modelValue }, null, 8, ["model-value"])]),
|
|
1774
1854
|
_: 1
|
|
1775
|
-
}, 8, ["model-value", "data-checked"])) : (
|
|
1855
|
+
}, 8, ["model-value", "data-checked"])) : (B(), D("span", {
|
|
1776
1856
|
key: 1,
|
|
1777
1857
|
class: "poveste-simple-checkbox",
|
|
1778
1858
|
"data-slot": "box",
|
|
1779
1859
|
"data-checked": e.modelValue ? "" : void 0
|
|
1780
|
-
}, [
|
|
1860
|
+
}, [A(kt, { "model-value": e.modelValue }, null, 8, ["model-value"])], 8, At));
|
|
1781
1861
|
}
|
|
1782
|
-
}),
|
|
1862
|
+
}), Mt = /* @__PURE__ */ M({
|
|
1783
1863
|
name: "HstCheckbox",
|
|
1784
1864
|
props: {
|
|
1785
1865
|
modelValue: { type: [
|
|
@@ -1791,21 +1871,27 @@ var dt = /* @__PURE__ */ j({
|
|
|
1791
1871
|
},
|
|
1792
1872
|
emits: { "update:modelValue": (e) => !0 },
|
|
1793
1873
|
setup(e, { emit: t }) {
|
|
1794
|
-
let n = e, r = t, i =
|
|
1795
|
-
|
|
1874
|
+
let n = e, r = t, i = w(() => typeof n.modelValue == "string"), a = w(() => typeof n.modelValue == "string" ? n.modelValue !== "false" : n.modelValue ?? void 0);
|
|
1875
|
+
function o(e) {
|
|
1876
|
+
return e === !0 || e === !1 || e === "true" || e === "false";
|
|
1877
|
+
}
|
|
1878
|
+
function s(e) {
|
|
1879
|
+
o(e) && r("update:modelValue", e);
|
|
1880
|
+
}
|
|
1881
|
+
return (t, n) => (B(), T(l, {
|
|
1796
1882
|
class: "poveste-checkbox",
|
|
1797
1883
|
title: e.title
|
|
1798
1884
|
}, {
|
|
1799
|
-
actions:
|
|
1800
|
-
default:
|
|
1885
|
+
actions: J(() => [U(t.$slots, "actions")]),
|
|
1886
|
+
default: J(() => [A(K(lt), {
|
|
1801
1887
|
"model-value": i.value ? String(a.value) : a.value,
|
|
1802
1888
|
"true-value": !i.value || "true",
|
|
1803
1889
|
"false-value": i.value ? "false" : !1,
|
|
1804
1890
|
class: "poveste-checkbox-box",
|
|
1805
1891
|
"data-slot": "control",
|
|
1806
|
-
"onUpdate:modelValue":
|
|
1892
|
+
"onUpdate:modelValue": s
|
|
1807
1893
|
}, {
|
|
1808
|
-
default:
|
|
1894
|
+
default: J(() => [A(jt, { "model-value": a.value }, null, 8, ["model-value"])]),
|
|
1809
1895
|
_: 1
|
|
1810
1896
|
}, 8, [
|
|
1811
1897
|
"model-value",
|
|
@@ -1815,7 +1901,7 @@ var dt = /* @__PURE__ */ j({
|
|
|
1815
1901
|
_: 3
|
|
1816
1902
|
}, 8, ["title"]));
|
|
1817
1903
|
}
|
|
1818
|
-
}),
|
|
1904
|
+
}), Nt = /* @__PURE__ */ M({
|
|
1819
1905
|
name: "HstCheckboxList",
|
|
1820
1906
|
props: {
|
|
1821
1907
|
title: {},
|
|
@@ -1824,33 +1910,33 @@ var dt = /* @__PURE__ */ j({
|
|
|
1824
1910
|
},
|
|
1825
1911
|
emits: ["update:modelValue"],
|
|
1826
1912
|
setup(e, { emit: t }) {
|
|
1827
|
-
let n = e, r = t, i =
|
|
1828
|
-
return (t, n) => (
|
|
1913
|
+
let n = e, r = t, i = w(() => Array.isArray(n.options) ? Object.fromEntries(n.options.map((e) => typeof e == "string" ? [e, e] : [e.value, e.label])) : n.options);
|
|
1914
|
+
return (t, n) => (B(), T(l, {
|
|
1829
1915
|
tag: "div",
|
|
1830
1916
|
title: e.title,
|
|
1831
|
-
class:
|
|
1917
|
+
class: I(["poveste-checkbox-list", t.$attrs.class]),
|
|
1832
1918
|
style: L(t.$attrs.style)
|
|
1833
1919
|
}, {
|
|
1834
|
-
actions:
|
|
1835
|
-
default:
|
|
1920
|
+
actions: J(() => [U(t.$slots, "actions")]),
|
|
1921
|
+
default: J(() => [A(K(rt), {
|
|
1836
1922
|
"model-value": e.modelValue,
|
|
1837
1923
|
class: "poveste-checkbox-list-options",
|
|
1838
1924
|
"data-slot": "options",
|
|
1839
1925
|
"onUpdate:modelValue": n[0] ||= (e) => r("update:modelValue", e)
|
|
1840
1926
|
}, {
|
|
1841
|
-
default:
|
|
1927
|
+
default: J(() => [(B(!0), D(C, null, H(i.value, (t, n) => (B(), T(K(it), {
|
|
1842
1928
|
key: n,
|
|
1843
1929
|
class: "poveste-checkbox-list-option",
|
|
1844
1930
|
"data-slot": "option"
|
|
1845
1931
|
}, {
|
|
1846
|
-
default:
|
|
1932
|
+
default: J(() => [A(K(lt), {
|
|
1847
1933
|
value: n,
|
|
1848
1934
|
class: "poveste-checkbox-list-box",
|
|
1849
1935
|
"data-slot": "control"
|
|
1850
1936
|
}, {
|
|
1851
|
-
default:
|
|
1937
|
+
default: J(() => [A(jt, { "model-value": e.modelValue.includes(n) }, null, 8, ["model-value"])]),
|
|
1852
1938
|
_: 2
|
|
1853
|
-
}, 1032, ["value"]),
|
|
1939
|
+
}, 1032, ["value"]), k(" " + W(t), 1)]),
|
|
1854
1940
|
_: 2
|
|
1855
1941
|
}, 1024))), 128))]),
|
|
1856
1942
|
_: 1
|
|
@@ -1862,7 +1948,7 @@ var dt = /* @__PURE__ */ j({
|
|
|
1862
1948
|
"style"
|
|
1863
1949
|
]));
|
|
1864
1950
|
}
|
|
1865
|
-
}),
|
|
1951
|
+
}), Pt = { class: "poveste-color-select-fields" }, Ft = ["value"], It = /* @__PURE__ */ M({
|
|
1866
1952
|
name: "HstColorSelect",
|
|
1867
1953
|
inheritAttrs: !1,
|
|
1868
1954
|
props: {
|
|
@@ -1871,7 +1957,7 @@ var dt = /* @__PURE__ */ j({
|
|
|
1871
1957
|
},
|
|
1872
1958
|
emits: { "update:modelValue": (e) => !0 },
|
|
1873
1959
|
setup(e, { emit: t }) {
|
|
1874
|
-
let n = e, r = t, i =
|
|
1960
|
+
let n = e, r = t, i = w({
|
|
1875
1961
|
get: () => n.modelValue,
|
|
1876
1962
|
set: (e) => {
|
|
1877
1963
|
r("update:modelValue", e);
|
|
@@ -1882,11 +1968,7 @@ var dt = /* @__PURE__ */ j({
|
|
|
1882
1968
|
r == null ? n = !1 : (e(...r), r = null, setTimeout(i, t));
|
|
1883
1969
|
};
|
|
1884
1970
|
return (...a) => {
|
|
1885
|
-
|
|
1886
|
-
r = a;
|
|
1887
|
-
return;
|
|
1888
|
-
}
|
|
1889
|
-
e(...a), n = !0, setTimeout(i, t);
|
|
1971
|
+
n ? r = a : (e(...a), n = !0, setTimeout(i, t));
|
|
1890
1972
|
};
|
|
1891
1973
|
}
|
|
1892
1974
|
let o = a((e) => {
|
|
@@ -1895,25 +1977,27 @@ var dt = /* @__PURE__ */ j({
|
|
|
1895
1977
|
function s(e) {
|
|
1896
1978
|
o(e);
|
|
1897
1979
|
}
|
|
1898
|
-
return (t, n) => (
|
|
1980
|
+
return (t, n) => (B(), T(l, {
|
|
1899
1981
|
title: e.title,
|
|
1900
|
-
class:
|
|
1982
|
+
class: I(["poveste-select poveste-color-select", t.$attrs.class]),
|
|
1901
1983
|
style: L(t.$attrs.style)
|
|
1902
1984
|
}, {
|
|
1903
|
-
actions:
|
|
1904
|
-
default:
|
|
1985
|
+
actions: J(() => [U(t.$slots, "actions")]),
|
|
1986
|
+
default: J(() => [O("div", Pt, [Y(O("input", P({
|
|
1905
1987
|
...t.$attrs,
|
|
1906
1988
|
class: null,
|
|
1907
1989
|
style: null
|
|
1908
1990
|
}, {
|
|
1909
1991
|
"onUpdate:modelValue": n[0] ||= (e) => i.value = e,
|
|
1910
1992
|
type: "text",
|
|
1911
|
-
class: "
|
|
1912
|
-
|
|
1993
|
+
class: "poveste-color-select-input",
|
|
1994
|
+
"data-slot": "input"
|
|
1995
|
+
}), null, 16), [[le, i.value]]), O("input", {
|
|
1913
1996
|
type: "color",
|
|
1997
|
+
"data-slot": "picker",
|
|
1914
1998
|
value: e.modelValue,
|
|
1915
1999
|
onInput: n[1] ||= ((e) => s(e.target.value))
|
|
1916
|
-
}, null, 40,
|
|
2000
|
+
}, null, 40, Ft)])]),
|
|
1917
2001
|
_: 3
|
|
1918
2002
|
}, 8, [
|
|
1919
2003
|
"title",
|
|
@@ -1921,42 +2005,56 @@ var dt = /* @__PURE__ */ j({
|
|
|
1921
2005
|
"style"
|
|
1922
2006
|
]));
|
|
1923
2007
|
}
|
|
1924
|
-
}), $ = /* @__PURE__ */
|
|
2008
|
+
}), $ = /* @__PURE__ */ M({
|
|
1925
2009
|
name: "HstCopyIcon",
|
|
1926
|
-
props: {
|
|
2010
|
+
props: {
|
|
2011
|
+
content: { type: [String, Function] },
|
|
2012
|
+
loading: { type: Boolean }
|
|
2013
|
+
},
|
|
1927
2014
|
setup(e) {
|
|
1928
|
-
let t = e, { copy: n, copied: r } =
|
|
1929
|
-
a.value =
|
|
2015
|
+
let t = e, { copy: n, copied: r } = pe(), { polite: i } = he(), a = V(), { start: o } = ge(() => {
|
|
2016
|
+
a.value = void 0;
|
|
1930
2017
|
}, 1500, { immediate: !1 });
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
2018
|
+
function c(e) {
|
|
2019
|
+
a.value = e, o(), i(e);
|
|
2020
|
+
}
|
|
2021
|
+
async function l() {
|
|
2022
|
+
if (t.loading) {
|
|
2023
|
+
c("Still loading");
|
|
1935
2024
|
return;
|
|
1936
2025
|
}
|
|
1937
|
-
|
|
2026
|
+
let e = typeof t.content == "function" ? await t.content() : t.content;
|
|
2027
|
+
e ? (a.value = void 0, await n(e), r.value && i("Copied")) : c("Nothing to copy");
|
|
1938
2028
|
}
|
|
1939
|
-
return (e, t) => (
|
|
1940
|
-
content: a.value
|
|
1941
|
-
open: K(r) || a.value,
|
|
2029
|
+
return (e, t) => (B(), T(s, {
|
|
2030
|
+
content: a.value ?? "Copied!",
|
|
2031
|
+
open: K(r) || !!a.value,
|
|
1942
2032
|
offset: 12
|
|
1943
2033
|
}, {
|
|
1944
|
-
default:
|
|
2034
|
+
default: J(() => [O("button", {
|
|
1945
2035
|
type: "button",
|
|
1946
2036
|
"aria-label": "Copy",
|
|
1947
|
-
class: "
|
|
1948
|
-
|
|
1949
|
-
|
|
2037
|
+
class: "poveste-copy-icon",
|
|
2038
|
+
"data-slot": "copy",
|
|
2039
|
+
onClick: t[0] ||= (e) => l()
|
|
2040
|
+
}, [A(K(_e), {
|
|
1950
2041
|
icon: "carbon:copy-file",
|
|
1951
|
-
class: "
|
|
2042
|
+
class: "poveste-copy-icon-glyph"
|
|
1952
2043
|
})])]),
|
|
1953
2044
|
_: 1
|
|
1954
2045
|
}, 8, ["content", "open"]));
|
|
1955
2046
|
}
|
|
1956
|
-
}),
|
|
2047
|
+
}), Lt = {
|
|
1957
2048
|
key: 0,
|
|
1958
|
-
class: "poveste-color-shades
|
|
1959
|
-
|
|
2049
|
+
class: "poveste-color-shades",
|
|
2050
|
+
"data-slot": "shades"
|
|
2051
|
+
}, Rt = ["onMouseenter"], zt = { class: "poveste-token-row" }, Bt = {
|
|
2052
|
+
class: "poveste-token-text",
|
|
2053
|
+
"data-slot": "name"
|
|
2054
|
+
}, Vt = { class: "poveste-token-row" }, Ht = {
|
|
2055
|
+
class: "poveste-token-text",
|
|
2056
|
+
"data-slot": "value"
|
|
2057
|
+
}, Ut = /* @__PURE__ */ M({
|
|
1960
2058
|
name: "HstColorShades",
|
|
1961
2059
|
props: {
|
|
1962
2060
|
shades: {},
|
|
@@ -1974,46 +2072,53 @@ var dt = /* @__PURE__ */ j({
|
|
|
1974
2072
|
};
|
|
1975
2073
|
}, {});
|
|
1976
2074
|
}
|
|
1977
|
-
let r =
|
|
2075
|
+
let r = w(() => {
|
|
1978
2076
|
let e = t.shades, r = t.getName, i = n(e);
|
|
1979
2077
|
return Object.entries(i).map(([e, t]) => ({
|
|
1980
2078
|
key: e,
|
|
1981
2079
|
color: t,
|
|
1982
2080
|
name: r ? r(e, t) : e
|
|
1983
2081
|
}));
|
|
1984
|
-
}), i =
|
|
2082
|
+
}), i = w(() => {
|
|
1985
2083
|
let e = r.value;
|
|
1986
2084
|
if (t.search) {
|
|
1987
2085
|
let n = new RegExp(t.search, "i");
|
|
1988
2086
|
e = e.filter(({ name: e }) => n.test(e));
|
|
1989
2087
|
}
|
|
1990
2088
|
return e;
|
|
1991
|
-
}), a =
|
|
1992
|
-
return (e, t) => i.value.length ? (
|
|
2089
|
+
}), a = V(null);
|
|
2090
|
+
return (e, t) => i.value.length ? (B(), D("div", Lt, [(B(!0), D(C, null, H(i.value, (n) => (B(), D("div", {
|
|
1993
2091
|
key: n.key,
|
|
1994
|
-
class: "
|
|
2092
|
+
class: "poveste-token-item",
|
|
1995
2093
|
onMouseenter: (e) => a.value = n.key,
|
|
1996
2094
|
onMouseleave: t[0] ||= (e) => a.value = null
|
|
1997
|
-
}, [
|
|
1998
|
-
class: "
|
|
2095
|
+
}, [U(e.$slots, "default", { color: n.color }, () => [O("div", {
|
|
2096
|
+
class: "poveste-color-shades-swatch",
|
|
2097
|
+
"data-slot": "swatch",
|
|
1999
2098
|
style: L({ backgroundColor: n.color })
|
|
2000
|
-
}, null, 4)]),
|
|
2001
|
-
default:
|
|
2099
|
+
}, null, 4)]), O("div", null, [O("div", zt, [A(s, { content: n.name.length > 23 ? n.name : "" }, {
|
|
2100
|
+
default: J(() => [O("pre", Bt, W(n.name), 1)]),
|
|
2002
2101
|
_: 2
|
|
2003
|
-
}, 1032, ["content"]), a.value === n.key ? (
|
|
2102
|
+
}, 1032, ["content"]), a.value === n.key ? (B(), T($, {
|
|
2004
2103
|
key: 0,
|
|
2005
2104
|
content: n.name,
|
|
2006
|
-
class: "
|
|
2007
|
-
}, null, 8, ["content"])) :
|
|
2008
|
-
default:
|
|
2105
|
+
class: "poveste-token-copy"
|
|
2106
|
+
}, null, 8, ["content"])) : E("", !0)]), O("div", Vt, [A(s, { content: n.color.length > 23 ? n.color : "" }, {
|
|
2107
|
+
default: J(() => [O("pre", Ht, W(n.color), 1)]),
|
|
2009
2108
|
_: 2
|
|
2010
|
-
}, 1032, ["content"]), a.value === n.key ? (
|
|
2109
|
+
}, 1032, ["content"]), a.value === n.key ? (B(), T($, {
|
|
2011
2110
|
key: 0,
|
|
2012
2111
|
content: n.color,
|
|
2013
|
-
class: "
|
|
2014
|
-
}, null, 8, ["content"])) :
|
|
2112
|
+
class: "poveste-token-copy"
|
|
2113
|
+
}, null, 8, ["content"])) : E("", !0)])])], 40, Rt))), 128))])) : E("", !0);
|
|
2015
2114
|
}
|
|
2016
|
-
}),
|
|
2115
|
+
}), Wt = ["onMouseenter"], Gt = { class: "poveste-token-row" }, Kt = {
|
|
2116
|
+
class: "poveste-token-text",
|
|
2117
|
+
"data-slot": "name"
|
|
2118
|
+
}, qt = { class: "poveste-token-row" }, Jt = {
|
|
2119
|
+
class: "poveste-token-text",
|
|
2120
|
+
"data-slot": "value"
|
|
2121
|
+
}, Yt = /* @__PURE__ */ M({
|
|
2017
2122
|
name: "HstTokenGrid",
|
|
2018
2123
|
props: {
|
|
2019
2124
|
tokens: {},
|
|
@@ -2021,72 +2126,80 @@ var dt = /* @__PURE__ */ j({
|
|
|
2021
2126
|
getName: {}
|
|
2022
2127
|
},
|
|
2023
2128
|
setup(e) {
|
|
2024
|
-
let t = e, n =
|
|
2129
|
+
let t = e, n = w(() => {
|
|
2025
2130
|
let e = t.tokens, n = t.getName;
|
|
2026
2131
|
return Object.entries(e).map(([e, t]) => ({
|
|
2027
2132
|
key: e,
|
|
2028
2133
|
name: n ? n(e, t) : e,
|
|
2029
2134
|
value: typeof t == "number" ? t.toString() : t
|
|
2030
2135
|
}));
|
|
2031
|
-
}), r =
|
|
2136
|
+
}), r = w(() => `${t.colSize}px`), i = V(null);
|
|
2032
2137
|
function a(e, t) {
|
|
2033
2138
|
return typeof e != "string" && !Array.isArray(e) ? "" : e.length > t ? String(e) : "";
|
|
2034
2139
|
}
|
|
2035
|
-
return (t, o) => (
|
|
2036
|
-
class: "poveste-token-grid bind-col-size
|
|
2140
|
+
return (t, o) => (B(), D("div", {
|
|
2141
|
+
class: "poveste-token-grid bind-col-size",
|
|
2142
|
+
"data-slot": "grid",
|
|
2037
2143
|
style: L({ "--poveste-col-size": r.value })
|
|
2038
|
-
}, [(
|
|
2144
|
+
}, [(B(!0), D(C, null, H(n.value, (n) => (B(), D("div", {
|
|
2039
2145
|
key: n.key,
|
|
2040
|
-
class: "
|
|
2146
|
+
class: "poveste-token-item",
|
|
2041
2147
|
onMouseenter: (e) => i.value = n.key,
|
|
2042
2148
|
onMouseleave: o[0] ||= (e) => i.value = null
|
|
2043
|
-
}, [
|
|
2044
|
-
default:
|
|
2149
|
+
}, [U(t.$slots, "default", { token: n }), O("div", null, [O("div", Gt, [A(s, { content: n.name.length > e.colSize / 8 ? n.name : "" }, {
|
|
2150
|
+
default: J(() => [O("pre", Kt, W(n.name), 1)]),
|
|
2045
2151
|
_: 2
|
|
2046
|
-
}, 1032, ["content"]), i.value === n.key ? (
|
|
2152
|
+
}, 1032, ["content"]), i.value === n.key ? (B(), T($, {
|
|
2047
2153
|
key: 0,
|
|
2048
2154
|
content: n.name,
|
|
2049
|
-
class: "
|
|
2050
|
-
}, null, 8, ["content"])) :
|
|
2051
|
-
default:
|
|
2155
|
+
class: "poveste-token-copy"
|
|
2156
|
+
}, null, 8, ["content"])) : E("", !0)]), O("div", qt, [A(s, { content: a(n.value, e.colSize / 8) }, {
|
|
2157
|
+
default: J(() => [O("pre", Jt, W(n.value), 1)]),
|
|
2052
2158
|
_: 2
|
|
2053
|
-
}, 1032, ["content"]), i.value === n.key ? (
|
|
2159
|
+
}, 1032, ["content"]), i.value === n.key ? (B(), T($, {
|
|
2054
2160
|
key: 0,
|
|
2055
2161
|
content: typeof n.value == "string" ? n.value : JSON.stringify(n.value),
|
|
2056
|
-
class: "
|
|
2057
|
-
}, null, 8, ["content"])) :
|
|
2162
|
+
class: "poveste-token-copy"
|
|
2163
|
+
}, null, 8, ["content"])) : E("", !0)])])], 40, Wt))), 128))], 4));
|
|
2058
2164
|
}
|
|
2059
|
-
}),
|
|
2165
|
+
}), Xt = ["onMouseenter"], Zt = { class: "poveste-token-list-labels" }, Qt = { class: "poveste-token-row" }, $t = {
|
|
2166
|
+
class: "poveste-token-text",
|
|
2167
|
+
"data-slot": "name"
|
|
2168
|
+
}, en = { class: "poveste-token-row" }, tn = {
|
|
2169
|
+
class: "poveste-token-text",
|
|
2170
|
+
"data-slot": "value"
|
|
2171
|
+
}, nn = /* @__PURE__ */ M({
|
|
2060
2172
|
name: "HstTokenList",
|
|
2061
2173
|
props: {
|
|
2062
2174
|
tokens: {},
|
|
2063
2175
|
getName: { type: Function }
|
|
2064
2176
|
},
|
|
2065
2177
|
setup(e) {
|
|
2066
|
-
let t = e, n =
|
|
2178
|
+
let t = e, n = w(() => {
|
|
2067
2179
|
let e = t.tokens, n = t.getName;
|
|
2068
2180
|
return Object.entries(e).map(([e, t]) => ({
|
|
2069
2181
|
key: e,
|
|
2070
2182
|
name: n ? n(e, t) : e,
|
|
2071
2183
|
value: typeof t == "number" ? t.toString() : t
|
|
2072
2184
|
}));
|
|
2073
|
-
}), r =
|
|
2074
|
-
return (e, t) => (
|
|
2185
|
+
}), r = V(null);
|
|
2186
|
+
return (e, t) => (B(!0), D(C, null, H(n.value, (n) => (B(), D("div", {
|
|
2075
2187
|
key: n.key,
|
|
2076
|
-
class: "poveste-token-list
|
|
2188
|
+
class: "poveste-token-list",
|
|
2189
|
+
"data-slot": "token",
|
|
2077
2190
|
onMouseenter: (e) => r.value = n.key,
|
|
2078
2191
|
onMouseleave: t[0] ||= (e) => r.value = null
|
|
2079
|
-
}, [
|
|
2192
|
+
}, [U(e.$slots, "default", { token: n }), O("div", Zt, [O("div", Qt, [O("pre", $t, W(n.name), 1), r.value === n.key ? (B(), T($, {
|
|
2080
2193
|
key: 0,
|
|
2081
2194
|
content: n.name,
|
|
2082
|
-
class: "
|
|
2083
|
-
}, null, 8, ["content"])) :
|
|
2195
|
+
class: "poveste-token-copy"
|
|
2196
|
+
}, null, 8, ["content"])) : E("", !0)]), O("div", en, [O("pre", tn, W(n.value), 1), r.value === n.key ? (B(), T($, {
|
|
2084
2197
|
key: 0,
|
|
2085
2198
|
content: typeof n.value == "string" ? n.value : JSON.stringify(n.value),
|
|
2086
|
-
class: "
|
|
2087
|
-
}, null, 8, ["content"])) :
|
|
2199
|
+
class: "poveste-token-copy"
|
|
2200
|
+
}, null, 8, ["content"])) : E("", !0)])])], 40, Xt))), 128));
|
|
2088
2201
|
}
|
|
2089
|
-
}),
|
|
2202
|
+
}), rn = /* @__PURE__ */ M({
|
|
2090
2203
|
name: "HstNumber",
|
|
2091
2204
|
inheritAttrs: !1,
|
|
2092
2205
|
props: {
|
|
@@ -2095,38 +2208,38 @@ var dt = /* @__PURE__ */ j({
|
|
|
2095
2208
|
},
|
|
2096
2209
|
emits: { "update:modelValue": (e) => !0 },
|
|
2097
2210
|
setup(e, { emit: t }) {
|
|
2098
|
-
let n = e, r = t, i =
|
|
2211
|
+
let n = e, r = t, i = w({
|
|
2099
2212
|
get: () => n.modelValue,
|
|
2100
2213
|
set: (e) => {
|
|
2101
2214
|
r("update:modelValue", e);
|
|
2102
2215
|
}
|
|
2103
|
-
}), a =
|
|
2216
|
+
}), a = V();
|
|
2104
2217
|
function o() {
|
|
2105
2218
|
a.value?.focus(), a.value?.select();
|
|
2106
2219
|
}
|
|
2107
|
-
let s =
|
|
2220
|
+
let s = V(!1), c, u;
|
|
2108
2221
|
function d(e) {
|
|
2109
|
-
s.value = !0, c = e.clientX,
|
|
2222
|
+
s.value = !0, c = e.clientX, u = i.value ?? 0, window.addEventListener("mousemove", f), window.addEventListener("mouseup", p);
|
|
2110
2223
|
}
|
|
2111
2224
|
function f(e) {
|
|
2112
2225
|
let t = Number.parseFloat(a.value?.step ?? "");
|
|
2113
|
-
Number.isNaN(t) && (t = 1), i.value =
|
|
2226
|
+
Number.isNaN(t) && (t = 1), i.value = u + Math.round((e.clientX - c) / 10 / t) * t;
|
|
2114
2227
|
}
|
|
2115
2228
|
function p() {
|
|
2116
2229
|
s.value = !1, window.removeEventListener("mousemove", f), window.removeEventListener("mouseup", p);
|
|
2117
2230
|
}
|
|
2118
|
-
return
|
|
2231
|
+
return z(() => {
|
|
2119
2232
|
p();
|
|
2120
|
-
}), (t, n) => (
|
|
2121
|
-
class:
|
|
2233
|
+
}), (t, n) => (B(), T(l, {
|
|
2234
|
+
class: I(["poveste-number", t.$attrs.class]),
|
|
2122
2235
|
title: e.title,
|
|
2123
2236
|
style: L(t.$attrs.style),
|
|
2124
2237
|
"data-dragging": s.value ? "" : void 0,
|
|
2125
2238
|
onClick: o,
|
|
2126
2239
|
onMousedown: d
|
|
2127
2240
|
}, {
|
|
2128
|
-
actions:
|
|
2129
|
-
default:
|
|
2241
|
+
actions: J(() => [U(t.$slots, "actions")]),
|
|
2242
|
+
default: J(() => [Y(O("input", P({
|
|
2130
2243
|
ref_key: "input",
|
|
2131
2244
|
ref: a
|
|
2132
2245
|
}, {
|
|
@@ -2139,7 +2252,7 @@ var dt = /* @__PURE__ */ j({
|
|
|
2139
2252
|
class: "poveste-number-input",
|
|
2140
2253
|
"data-slot": "control"
|
|
2141
2254
|
}), null, 16), [[
|
|
2142
|
-
|
|
2255
|
+
le,
|
|
2143
2256
|
i.value,
|
|
2144
2257
|
void 0,
|
|
2145
2258
|
{ number: !0 }
|
|
@@ -2152,7 +2265,7 @@ var dt = /* @__PURE__ */ j({
|
|
|
2152
2265
|
"data-dragging"
|
|
2153
2266
|
]));
|
|
2154
2267
|
}
|
|
2155
|
-
}),
|
|
2268
|
+
}), an = /* @__PURE__ */ M({
|
|
2156
2269
|
name: "HstRadio",
|
|
2157
2270
|
props: {
|
|
2158
2271
|
title: {},
|
|
@@ -2161,36 +2274,36 @@ var dt = /* @__PURE__ */ j({
|
|
|
2161
2274
|
},
|
|
2162
2275
|
emits: ["update:modelValue"],
|
|
2163
2276
|
setup(e, { emit: t }) {
|
|
2164
|
-
let n = e, r = t, i =
|
|
2165
|
-
return (t, n) => (
|
|
2277
|
+
let n = e, r = t, i = w(() => Array.isArray(n.options) ? Object.fromEntries(n.options.map((e) => typeof e == "string" ? [e, e] : [e.value, e.label])) : n.options);
|
|
2278
|
+
return (t, n) => (B(), T(l, {
|
|
2166
2279
|
tag: "div",
|
|
2167
2280
|
title: e.title,
|
|
2168
|
-
class:
|
|
2281
|
+
class: I(["poveste-radio", t.$attrs.class]),
|
|
2169
2282
|
style: L(t.$attrs.style)
|
|
2170
2283
|
}, {
|
|
2171
|
-
actions:
|
|
2172
|
-
default:
|
|
2284
|
+
actions: J(() => [U(t.$slots, "actions")]),
|
|
2285
|
+
default: J(() => [A(K(gt), {
|
|
2173
2286
|
"model-value": e.modelValue ?? null,
|
|
2174
2287
|
class: "poveste-radio-options",
|
|
2175
2288
|
"data-slot": "options",
|
|
2176
2289
|
"onUpdate:modelValue": n[0] ||= (e) => r("update:modelValue", e)
|
|
2177
2290
|
}, {
|
|
2178
|
-
default:
|
|
2291
|
+
default: J(() => [(B(!0), D(C, null, H(i.value, (e, t) => (B(), T(K(it), {
|
|
2179
2292
|
key: t,
|
|
2180
2293
|
class: "poveste-radio-option",
|
|
2181
2294
|
"data-slot": "option"
|
|
2182
2295
|
}, {
|
|
2183
|
-
default:
|
|
2296
|
+
default: J(() => [A(K(yt), {
|
|
2184
2297
|
value: t,
|
|
2185
2298
|
class: "poveste-radio-box",
|
|
2186
2299
|
"data-slot": "control"
|
|
2187
2300
|
}, {
|
|
2188
|
-
default:
|
|
2301
|
+
default: J(() => [...n[1] ||= [O("span", {
|
|
2189
2302
|
class: "poveste-radio-dot",
|
|
2190
2303
|
"data-slot": "dot"
|
|
2191
2304
|
}, null, -1)]]),
|
|
2192
2305
|
_: 1
|
|
2193
|
-
}, 8, ["value"]),
|
|
2306
|
+
}, 8, ["value"]), k(" " + W(e), 1)]),
|
|
2194
2307
|
_: 2
|
|
2195
2308
|
}, 1024))), 128))]),
|
|
2196
2309
|
_: 1
|
|
@@ -2202,14 +2315,14 @@ var dt = /* @__PURE__ */ j({
|
|
|
2202
2315
|
"style"
|
|
2203
2316
|
]));
|
|
2204
2317
|
}
|
|
2205
|
-
}),
|
|
2318
|
+
}), on = {
|
|
2206
2319
|
type: "button",
|
|
2207
2320
|
class: "poveste-select-trigger",
|
|
2208
2321
|
"data-slot": "trigger"
|
|
2209
|
-
},
|
|
2322
|
+
}, sn = {
|
|
2210
2323
|
class: "poveste-select-label",
|
|
2211
2324
|
"data-slot": "value"
|
|
2212
|
-
},
|
|
2325
|
+
}, cn = /* @__PURE__ */ M({
|
|
2213
2326
|
name: "CustomSelect",
|
|
2214
2327
|
props: {
|
|
2215
2328
|
modelValue: {},
|
|
@@ -2217,53 +2330,53 @@ var dt = /* @__PURE__ */ j({
|
|
|
2217
2330
|
},
|
|
2218
2331
|
emits: ["update:modelValue"],
|
|
2219
2332
|
setup(e, { emit: t }) {
|
|
2220
|
-
let n = e, r = t, i =
|
|
2221
|
-
|
|
2222
|
-
a.value =
|
|
2333
|
+
let n = e, r = t, i = V(!1), a = se();
|
|
2334
|
+
R(() => {
|
|
2335
|
+
a.value = c();
|
|
2223
2336
|
});
|
|
2224
|
-
let o =
|
|
2225
|
-
function
|
|
2337
|
+
let o = w(() => Array.isArray(n.options) ? n.options.map((e) => typeof e == "string" || typeof e == "number" ? [e, String(e)] : [e.value, e.label]) : Object.entries(n.options)), s = w(() => o.value.find(([e]) => e === n.modelValue)?.[1]);
|
|
2338
|
+
function l(e) {
|
|
2226
2339
|
e != null && (r("update:modelValue", e), i.value = !1);
|
|
2227
2340
|
}
|
|
2228
|
-
return (t, n) => (
|
|
2341
|
+
return (t, n) => (B(), T(K(p), {
|
|
2229
2342
|
open: i.value,
|
|
2230
2343
|
"onUpdate:open": n[0] ||= (e) => i.value = e
|
|
2231
2344
|
}, {
|
|
2232
|
-
default:
|
|
2233
|
-
default:
|
|
2345
|
+
default: J(() => [A(K(v), { "as-child": "" }, {
|
|
2346
|
+
default: J(() => [O("button", on, [O("span", sn, [U(t.$slots, "default", { label: s.value }, () => [k(W(s.value), 1)])]), A(K(_e), {
|
|
2234
2347
|
icon: "carbon:chevron-sort",
|
|
2235
2348
|
class: "poveste-select-chevron"
|
|
2236
2349
|
})])]),
|
|
2237
2350
|
_: 3
|
|
2238
|
-
}), a.value ? (
|
|
2351
|
+
}), a.value ? (B(), T(K(m), {
|
|
2239
2352
|
key: 0,
|
|
2240
2353
|
to: a.value
|
|
2241
2354
|
}, {
|
|
2242
|
-
default:
|
|
2355
|
+
default: J(() => [A(K(g), {
|
|
2243
2356
|
class: "poveste-select-popper",
|
|
2244
2357
|
align: "start",
|
|
2245
2358
|
"side-offset": 6,
|
|
2246
2359
|
"collision-padding": 8
|
|
2247
2360
|
}, {
|
|
2248
|
-
default:
|
|
2361
|
+
default: J(() => [A(K(Ge), {
|
|
2249
2362
|
class: "poveste-select-options",
|
|
2250
2363
|
"data-slot": "options",
|
|
2251
2364
|
"selection-behavior": "replace",
|
|
2252
2365
|
"highlight-on-hover": "",
|
|
2253
2366
|
"model-value": e.modelValue,
|
|
2254
|
-
"onUpdate:modelValue":
|
|
2367
|
+
"onUpdate:modelValue": l
|
|
2255
2368
|
}, {
|
|
2256
|
-
default:
|
|
2369
|
+
default: J(() => [A(K(Ke), {
|
|
2257
2370
|
class: "poveste-select-list",
|
|
2258
2371
|
"data-slot": "listbox"
|
|
2259
2372
|
}, {
|
|
2260
|
-
default:
|
|
2373
|
+
default: J(() => [(B(!0), D(C, null, H(o.value, ([e, t]) => (B(), T(K(Xe), {
|
|
2261
2374
|
key: t,
|
|
2262
2375
|
class: "poveste-select-option",
|
|
2263
2376
|
"data-slot": "option",
|
|
2264
2377
|
value: e
|
|
2265
2378
|
}, {
|
|
2266
|
-
default:
|
|
2379
|
+
default: J(() => [k(W(t), 1)]),
|
|
2267
2380
|
_: 2
|
|
2268
2381
|
}, 1032, ["value"]))), 128))]),
|
|
2269
2382
|
_: 1
|
|
@@ -2273,11 +2386,11 @@ var dt = /* @__PURE__ */ j({
|
|
|
2273
2386
|
_: 1
|
|
2274
2387
|
})]),
|
|
2275
2388
|
_: 1
|
|
2276
|
-
}, 8, ["to"])) :
|
|
2389
|
+
}, 8, ["to"])) : E("", !0)]),
|
|
2277
2390
|
_: 3
|
|
2278
2391
|
}, 8, ["open"]));
|
|
2279
2392
|
}
|
|
2280
|
-
}),
|
|
2393
|
+
}), ln = /* @__PURE__ */ M({
|
|
2281
2394
|
name: "HstSelect",
|
|
2282
2395
|
props: {
|
|
2283
2396
|
title: {},
|
|
@@ -2287,14 +2400,14 @@ var dt = /* @__PURE__ */ j({
|
|
|
2287
2400
|
emits: ["update:modelValue"],
|
|
2288
2401
|
setup(e, { emit: t }) {
|
|
2289
2402
|
let n = t;
|
|
2290
|
-
return (t, r) => (
|
|
2403
|
+
return (t, r) => (B(), T(l, {
|
|
2291
2404
|
title: e.title,
|
|
2292
|
-
class:
|
|
2405
|
+
class: I(["poveste-select", t.$attrs.class]),
|
|
2293
2406
|
"data-slot": "control",
|
|
2294
2407
|
style: L(t.$attrs.style)
|
|
2295
2408
|
}, {
|
|
2296
|
-
actions:
|
|
2297
|
-
default:
|
|
2409
|
+
actions: J(() => [U(t.$slots, "actions")]),
|
|
2410
|
+
default: J(() => [A(cn, {
|
|
2298
2411
|
options: e.options,
|
|
2299
2412
|
"model-value": e.modelValue,
|
|
2300
2413
|
"onUpdate:modelValue": r[0] ||= (e) => n("update:modelValue", e)
|
|
@@ -2306,10 +2419,10 @@ var dt = /* @__PURE__ */ j({
|
|
|
2306
2419
|
"style"
|
|
2307
2420
|
]));
|
|
2308
2421
|
}
|
|
2309
|
-
}),
|
|
2422
|
+
}), un = {
|
|
2310
2423
|
class: "poveste-slider-field",
|
|
2311
2424
|
"data-slot": "field"
|
|
2312
|
-
},
|
|
2425
|
+
}, dn = /* @__PURE__ */ M({
|
|
2313
2426
|
name: "HstSlider",
|
|
2314
2427
|
inheritAttrs: !1,
|
|
2315
2428
|
props: {
|
|
@@ -2320,23 +2433,23 @@ var dt = /* @__PURE__ */ j({
|
|
|
2320
2433
|
},
|
|
2321
2434
|
emits: { "update:modelValue": (e) => !0 },
|
|
2322
2435
|
setup(e, { emit: t }) {
|
|
2323
|
-
let n = e, r = t, i =
|
|
2436
|
+
let n = e, r = t, i = V(!1), a = w({
|
|
2324
2437
|
get: () => n.modelValue,
|
|
2325
2438
|
set: (e) => {
|
|
2326
2439
|
r("update:modelValue", e);
|
|
2327
2440
|
}
|
|
2328
|
-
}), o =
|
|
2329
|
-
return (t, n) => (
|
|
2330
|
-
class:
|
|
2441
|
+
}), o = w(() => ((n.modelValue ?? n.min) - n.min) / (n.max - n.min)), c = w(() => ({ "--_poveste-slider-fraction": String(o.value) }));
|
|
2442
|
+
return (t, n) => (B(), T(l, {
|
|
2443
|
+
class: I(["poveste-slider", t.$attrs.class]),
|
|
2331
2444
|
title: e.title,
|
|
2332
2445
|
style: L(t.$attrs.style)
|
|
2333
2446
|
}, {
|
|
2334
|
-
default:
|
|
2335
|
-
n[3] ||=
|
|
2447
|
+
default: J(() => [O("div", un, [
|
|
2448
|
+
n[3] ||= O("div", { class: "poveste-slider-track-area" }, [O("div", {
|
|
2336
2449
|
class: "poveste-slider-track",
|
|
2337
2450
|
"data-slot": "track"
|
|
2338
2451
|
})], -1),
|
|
2339
|
-
|
|
2452
|
+
Y(O("input", P({
|
|
2340
2453
|
"onUpdate:modelValue": n[0] ||= (e) => a.value = e,
|
|
2341
2454
|
class: "poveste-slider-input",
|
|
2342
2455
|
"data-slot": "control",
|
|
@@ -2351,23 +2464,23 @@ var dt = /* @__PURE__ */ j({
|
|
|
2351
2464
|
onMouseover: n[1] ||= (e) => i.value = !0,
|
|
2352
2465
|
onMouseleave: n[2] ||= (e) => i.value = !1
|
|
2353
2466
|
}), null, 16), [[
|
|
2354
|
-
|
|
2467
|
+
le,
|
|
2355
2468
|
a.value,
|
|
2356
2469
|
void 0,
|
|
2357
2470
|
{ number: !0 }
|
|
2358
2471
|
]]),
|
|
2359
|
-
i.value ? (
|
|
2472
|
+
i.value ? (B(), T(s, {
|
|
2360
2473
|
key: 0,
|
|
2361
2474
|
content: String(e.modelValue ?? ""),
|
|
2362
2475
|
open: !0,
|
|
2363
2476
|
offset: 16
|
|
2364
2477
|
}, {
|
|
2365
|
-
default:
|
|
2478
|
+
default: J(() => [O("div", {
|
|
2366
2479
|
class: "poveste-slider-tooltip-anchor",
|
|
2367
|
-
style: L(
|
|
2480
|
+
style: L(c.value)
|
|
2368
2481
|
}, null, 4)]),
|
|
2369
2482
|
_: 1
|
|
2370
|
-
}, 8, ["content"])) :
|
|
2483
|
+
}, 8, ["content"])) : E("", !0)
|
|
2371
2484
|
])]),
|
|
2372
2485
|
_: 1
|
|
2373
2486
|
}, 8, [
|
|
@@ -2376,7 +2489,7 @@ var dt = /* @__PURE__ */ j({
|
|
|
2376
2489
|
"style"
|
|
2377
2490
|
]));
|
|
2378
2491
|
}
|
|
2379
|
-
}),
|
|
2492
|
+
}), fn = ["value"], pn = /* @__PURE__ */ M({
|
|
2380
2493
|
name: "HstText",
|
|
2381
2494
|
inheritAttrs: !1,
|
|
2382
2495
|
props: {
|
|
@@ -2385,15 +2498,15 @@ var dt = /* @__PURE__ */ j({
|
|
|
2385
2498
|
},
|
|
2386
2499
|
emits: { "update:modelValue": (e) => !0 },
|
|
2387
2500
|
setup(e, { emit: t }) {
|
|
2388
|
-
let n = t, r =
|
|
2389
|
-
return (t, i) => (
|
|
2501
|
+
let n = t, r = V();
|
|
2502
|
+
return (t, i) => (B(), T(l, {
|
|
2390
2503
|
title: e.title,
|
|
2391
|
-
class:
|
|
2504
|
+
class: I(["poveste-text", t.$attrs.class]),
|
|
2392
2505
|
style: L(t.$attrs.style),
|
|
2393
2506
|
onClick: i[1] ||= (e) => r.value?.focus()
|
|
2394
2507
|
}, {
|
|
2395
|
-
actions:
|
|
2396
|
-
default:
|
|
2508
|
+
actions: J(() => [U(t.$slots, "actions")]),
|
|
2509
|
+
default: J(() => [O("input", P({
|
|
2397
2510
|
ref_key: "input",
|
|
2398
2511
|
ref: r
|
|
2399
2512
|
}, {
|
|
@@ -2406,7 +2519,7 @@ var dt = /* @__PURE__ */ j({
|
|
|
2406
2519
|
"data-slot": "control",
|
|
2407
2520
|
value: e.modelValue,
|
|
2408
2521
|
onInput: i[0] ||= (e) => n("update:modelValue", e.target.value)
|
|
2409
|
-
}), null, 16,
|
|
2522
|
+
}), null, 16, fn)]),
|
|
2410
2523
|
_: 3
|
|
2411
2524
|
}, 8, [
|
|
2412
2525
|
"title",
|
|
@@ -2414,7 +2527,7 @@ var dt = /* @__PURE__ */ j({
|
|
|
2414
2527
|
"style"
|
|
2415
2528
|
]));
|
|
2416
2529
|
}
|
|
2417
|
-
}),
|
|
2530
|
+
}), mn = ["value"], hn = /* @__PURE__ */ M({
|
|
2418
2531
|
name: "HstTextarea",
|
|
2419
2532
|
inheritAttrs: !1,
|
|
2420
2533
|
props: {
|
|
@@ -2423,15 +2536,15 @@ var dt = /* @__PURE__ */ j({
|
|
|
2423
2536
|
},
|
|
2424
2537
|
emits: { "update:modelValue": (e) => !0 },
|
|
2425
2538
|
setup(e, { emit: t }) {
|
|
2426
|
-
let n = t, r =
|
|
2427
|
-
return (t, i) => (
|
|
2539
|
+
let n = t, r = V();
|
|
2540
|
+
return (t, i) => (B(), T(l, {
|
|
2428
2541
|
title: e.title,
|
|
2429
|
-
class:
|
|
2542
|
+
class: I(["poveste-textarea", t.$attrs.class]),
|
|
2430
2543
|
style: L(t.$attrs.style),
|
|
2431
2544
|
onClick: i[1] ||= (e) => r.value?.focus()
|
|
2432
2545
|
}, {
|
|
2433
|
-
actions:
|
|
2434
|
-
default:
|
|
2546
|
+
actions: J(() => [U(t.$slots, "actions")]),
|
|
2547
|
+
default: J(() => [O("textarea", P({
|
|
2435
2548
|
ref_key: "input",
|
|
2436
2549
|
ref: r
|
|
2437
2550
|
}, {
|
|
@@ -2443,7 +2556,7 @@ var dt = /* @__PURE__ */ j({
|
|
|
2443
2556
|
"data-slot": "control",
|
|
2444
2557
|
value: e.modelValue,
|
|
2445
2558
|
onInput: i[0] ||= (e) => n("update:modelValue", e.target.value)
|
|
2446
|
-
}), null, 16,
|
|
2559
|
+
}), null, 16, mn)]),
|
|
2447
2560
|
_: 3
|
|
2448
2561
|
}, 8, [
|
|
2449
2562
|
"title",
|
|
@@ -2451,34 +2564,34 @@ var dt = /* @__PURE__ */ j({
|
|
|
2451
2564
|
"style"
|
|
2452
2565
|
]));
|
|
2453
2566
|
}
|
|
2454
|
-
}),
|
|
2567
|
+
}), gn = ye, _n = Tt, vn = Mt, yn = Nt, bn = pn, xn = rn, Sn = dn, Cn = hn, wn = ln, Tn = Ut, En = nn, Dn = Yt, On = $, kn = s, An = an, jn = Object.assign(j(() => import("./HstJson-CClJDodg.es.js")), {
|
|
2455
2568
|
name: "HstJson",
|
|
2456
2569
|
emits: ["update:modelValue"]
|
|
2457
|
-
}),
|
|
2570
|
+
}), Mn = Object.assign(j(() => import("./HstDate-CFGLzzai.es.js")), {
|
|
2458
2571
|
name: "HstDate",
|
|
2459
2572
|
emits: ["update:modelValue"]
|
|
2460
|
-
}),
|
|
2573
|
+
}), Nn = Object.assign(j(() => import("./HstColor-BnPyFVL_.es.js")), {
|
|
2461
2574
|
name: "HstColor",
|
|
2462
2575
|
emits: ["update:modelValue"]
|
|
2463
|
-
}),
|
|
2464
|
-
HstButton:
|
|
2465
|
-
HstButtonGroup:
|
|
2466
|
-
HstCheckbox:
|
|
2467
|
-
HstCheckboxList:
|
|
2468
|
-
HstText:
|
|
2469
|
-
HstNumber:
|
|
2470
|
-
HstSlider:
|
|
2471
|
-
HstTextarea:
|
|
2472
|
-
HstSelect:
|
|
2473
|
-
HstRadio:
|
|
2474
|
-
HstColor:
|
|
2475
|
-
HstDate:
|
|
2476
|
-
HstJson:
|
|
2477
|
-
HstColorShades:
|
|
2478
|
-
HstTokenList:
|
|
2479
|
-
HstTokenGrid:
|
|
2480
|
-
HstCopyIcon:
|
|
2481
|
-
HstColorSelect:
|
|
2576
|
+
}), Pn = It, Fn = {
|
|
2577
|
+
HstButton: gn,
|
|
2578
|
+
HstButtonGroup: _n,
|
|
2579
|
+
HstCheckbox: vn,
|
|
2580
|
+
HstCheckboxList: yn,
|
|
2581
|
+
HstText: bn,
|
|
2582
|
+
HstNumber: xn,
|
|
2583
|
+
HstSlider: Sn,
|
|
2584
|
+
HstTextarea: Cn,
|
|
2585
|
+
HstSelect: wn,
|
|
2586
|
+
HstRadio: An,
|
|
2587
|
+
HstColor: Nn,
|
|
2588
|
+
HstDate: Mn,
|
|
2589
|
+
HstJson: jn,
|
|
2590
|
+
HstColorShades: Tn,
|
|
2591
|
+
HstTokenList: En,
|
|
2592
|
+
HstTokenGrid: Dn,
|
|
2593
|
+
HstCopyIcon: On,
|
|
2594
|
+
HstColorSelect: Pn
|
|
2482
2595
|
};
|
|
2483
2596
|
//#endregion
|
|
2484
|
-
export {
|
|
2597
|
+
export { gn as HstButton, _n as HstButtonGroup, vn as HstCheckbox, yn as HstCheckboxList, Nn as HstColor, Pn as HstColorSelect, Tn as HstColorShades, On as HstCopyIcon, Mn as HstDate, jn as HstJson, xn as HstNumber, An as HstRadio, wn as HstSelect, Sn as HstSlider, bn as HstText, Cn as HstTextarea, Dn as HstTokenGrid, En as HstTokenList, kn as HstTooltip, ut as PopoverAnchor, g as PopoverContent, m as PopoverPortal, p as PopoverRoot, v as PopoverTrigger, Fn as components, c as portalTarget };
|