@poveste/controls 0.17.0 → 0.17.1
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/components/HstCopyIcon.vue.d.ts +2 -2
- package/dist/index.d.ts +4 -4
- package/dist/index.es.js +202 -196
- package/package.json +3 -3
|
@@ -2,7 +2,7 @@ import type { Awaitable } from '@poveste/shared';
|
|
|
2
2
|
declare const _default: typeof __VLS_export;
|
|
3
3
|
export default _default;
|
|
4
4
|
declare const __VLS_export: import("vue").DefineComponent<{
|
|
5
|
-
content: string | (() => Awaitable<string>);
|
|
5
|
+
content: string | undefined | (() => Awaitable<string | undefined>);
|
|
6
6
|
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
7
|
-
content: string | (() => Awaitable<string>);
|
|
7
|
+
content: string | undefined | (() => Awaitable<string | undefined>);
|
|
8
8
|
}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
package/dist/index.d.ts
CHANGED
|
@@ -402,9 +402,9 @@ export declare const HstTokenGrid: {
|
|
|
402
402
|
};
|
|
403
403
|
});
|
|
404
404
|
export declare const HstCopyIcon: import("vue").DefineComponent<{
|
|
405
|
-
content: string | (() => import("@poveste/shared").Awaitable<string>);
|
|
405
|
+
content: string | undefined | (() => import("@poveste/shared").Awaitable<string | undefined>);
|
|
406
406
|
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
407
|
-
content: string | (() => import("@poveste/shared").Awaitable<string>);
|
|
407
|
+
content: string | undefined | (() => import("@poveste/shared").Awaitable<string | undefined>);
|
|
408
408
|
}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
409
409
|
/**
|
|
410
410
|
* Public because `@poveste/app` uses it too: one wrapper for the whole chrome
|
|
@@ -1285,9 +1285,9 @@ export declare const components: {
|
|
|
1285
1285
|
};
|
|
1286
1286
|
});
|
|
1287
1287
|
HstCopyIcon: import("vue").DefineComponent<{
|
|
1288
|
-
content: string | (() => import("@poveste/shared").Awaitable<string>);
|
|
1288
|
+
content: string | undefined | (() => import("@poveste/shared").Awaitable<string | undefined>);
|
|
1289
1289
|
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
1290
|
-
content: string | (() => import("@poveste/shared").Awaitable<string>);
|
|
1290
|
+
content: string | undefined | (() => import("@poveste/shared").Awaitable<string | undefined>);
|
|
1291
1291
|
}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
1292
1292
|
HstColorSelect: {
|
|
1293
1293
|
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
|
package/dist/index.es.js
CHANGED
|
@@ -3,10 +3,10 @@ import { a as p, i as m, n as h, o as g, r as _, s as v, t as y } from "./Popove
|
|
|
3
3
|
import { n as ee, r as b, t as x } from "./VisuallyHiddenInput-0it-_FH2.es.js";
|
|
4
4
|
import { t as te } from "./useKbd-DQM4Oqri.es.js";
|
|
5
5
|
import { Fragment as S, computed as C, createBlock as w, createCommentVNode as T, createElementBlock as E, createElementVNode as D, createTextVNode as O, createVNode as k, defineAsyncComponent as A, defineComponent as j, getCurrentInstance as ne, guardReactiveProps as M, mergeProps as N, nextTick as P, normalizeClass as F, normalizeProps as I, normalizeStyle as L, onBeforeMount as re, onMounted as ie, onUnmounted as R, openBlock as z, ref as B, renderList as V, renderSlot as H, resolveDynamicComponent as U, shallowRef as ae, toDisplayString as W, toRefs as G, unref as K, useAttrs as oe, vModelText as se, watch as ce, withCtx as q, withDirectives as J, withKeys as Y, withMemo as le, withModifiers as X } from "@poveste/vendors/vue";
|
|
6
|
-
import { createEventHook as ue, useClipboard as de, useEventListener as fe, useLiveAnnouncer as pe, useVModel as Z } from "@poveste/vendors/vue-use";
|
|
7
|
-
import { Icon as
|
|
6
|
+
import { createEventHook as ue, useClipboard as de, useEventListener as fe, useLiveAnnouncer as pe, useTimeoutFn as me, useVModel as Z } from "@poveste/vendors/vue-use";
|
|
7
|
+
import { Icon as he } from "@poveste/vendors/iconify";
|
|
8
8
|
//#region src/components/button/HstButton.vue?vue&type=script&setup=true&lang.ts
|
|
9
|
-
var
|
|
9
|
+
var ge = ["data-color"], _e = /* @__PURE__ */ j({
|
|
10
10
|
name: "HstButton",
|
|
11
11
|
props: { color: {} },
|
|
12
12
|
setup(e) {
|
|
@@ -14,15 +14,15 @@ var he = ["data-color"], ge = /* @__PURE__ */ j({
|
|
|
14
14
|
class: "poveste-button",
|
|
15
15
|
"data-slot": "button",
|
|
16
16
|
"data-color": e.color ?? "default"
|
|
17
|
-
}, [H(t.$slots, "default")], 8,
|
|
17
|
+
}, [H(t.$slots, "default")], 8, ge));
|
|
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 ve(e) {
|
|
23
|
+
return typeof e == "string" ? `'${e}'` : new ye().serialize(e);
|
|
24
24
|
}
|
|
25
|
-
var
|
|
25
|
+
var ye = /*@__PURE__*/ function() {
|
|
26
26
|
class e {
|
|
27
27
|
#e = /* @__PURE__ */ new Map();
|
|
28
28
|
compare(e, t) {
|
|
@@ -120,11 +120,11 @@ var ve = /*@__PURE__*/ function() {
|
|
|
120
120
|
return e;
|
|
121
121
|
}();
|
|
122
122
|
function Q(e, t) {
|
|
123
|
-
return e === t ||
|
|
123
|
+
return e === t || ve(e) === ve(t);
|
|
124
124
|
}
|
|
125
125
|
//#endregion
|
|
126
126
|
//#region ../../node_modules/.pnpm/reka-ui@2.10.5_vue@3.5.43_typescript@6.0.3_/node_modules/reka-ui/dist/shared/arrays.js
|
|
127
|
-
function
|
|
127
|
+
function be(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);
|
|
@@ -132,18 +132,18 @@ function ye(e, t, n) {
|
|
|
132
132
|
}
|
|
133
133
|
//#endregion
|
|
134
134
|
//#region ../../node_modules/.pnpm/reka-ui@2.10.5_vue@3.5.43_typescript@6.0.3_/node_modules/reka-ui/dist/shared/isValueEqualOrExist.js
|
|
135
|
-
function
|
|
135
|
+
function xe(e, n) {
|
|
136
136
|
return t(e) ? !1 : Array.isArray(e) ? e.some((e) => Q(e, n)) : Q(e, n);
|
|
137
137
|
}
|
|
138
138
|
//#endregion
|
|
139
139
|
//#region ../../node_modules/.pnpm/reka-ui@2.10.5_vue@3.5.43_typescript@6.0.3_/node_modules/reka-ui/dist/shared/useForwardScopeId.js
|
|
140
|
-
function
|
|
140
|
+
function Se() {
|
|
141
141
|
let e = ne()?.vnode?.scopeId;
|
|
142
142
|
return e ? { [e]: "" } : {};
|
|
143
143
|
}
|
|
144
144
|
//#endregion
|
|
145
145
|
//#region ../../node_modules/.pnpm/reka-ui@2.10.5_vue@3.5.43_typescript@6.0.3_/node_modules/reka-ui/dist/shared/useTypeahead.js
|
|
146
|
-
function
|
|
146
|
+
function Ce(t) {
|
|
147
147
|
let n = e("", 1e3);
|
|
148
148
|
return {
|
|
149
149
|
search: n,
|
|
@@ -153,7 +153,7 @@ function Se(t) {
|
|
|
153
153
|
let e = v(), 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 = Te(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 Se(t) {
|
|
|
162
162
|
}
|
|
163
163
|
};
|
|
164
164
|
}
|
|
165
|
-
function
|
|
165
|
+
function we(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 Te(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 = we(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
175
|
//#region ../../node_modules/.pnpm/reka-ui@2.10.5_vue@3.5.43_typescript@6.0.3_/node_modules/reka-ui/dist/shared/useSingleOrMultipleValue.js
|
|
176
|
-
function
|
|
176
|
+
function Ee({ 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 De({ type: e, defaultValue: t, modelValue: n }) {
|
|
181
|
+
return e || Ee({
|
|
182
182
|
type: e,
|
|
183
183
|
defaultValue: t,
|
|
184
184
|
modelValue: n
|
|
185
185
|
});
|
|
186
186
|
}
|
|
187
|
-
function
|
|
187
|
+
function Oe({ type: e, defaultValue: t }) {
|
|
188
188
|
return t === void 0 ? e === "single" ? void 0 : [] : t;
|
|
189
189
|
}
|
|
190
|
-
function
|
|
191
|
-
let n = C(() =>
|
|
192
|
-
defaultValue:
|
|
190
|
+
function ke(e, t) {
|
|
191
|
+
let n = C(() => De(e)), r = Z(e, "modelValue", t, {
|
|
192
|
+
defaultValue: Oe(e),
|
|
193
193
|
passive: e.modelValue === void 0,
|
|
194
194
|
deep: !0
|
|
195
195
|
});
|
|
@@ -197,7 +197,7 @@ function Oe(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 (xe(t, e)) {
|
|
201
201
|
let n = t.findIndex((t) => Q(t, e));
|
|
202
202
|
t.splice(n, 1);
|
|
203
203
|
} else t.push(e);
|
|
@@ -212,18 +212,18 @@ function Oe(e, t) {
|
|
|
212
212
|
}
|
|
213
213
|
//#endregion
|
|
214
214
|
//#region ../../node_modules/.pnpm/reka-ui@2.10.5_vue@3.5.43_typescript@6.0.3_/node_modules/reka-ui/dist/Listbox/utils.js
|
|
215
|
-
function ke(e, t, n) {
|
|
216
|
-
return e === void 0 ? !1 : Array.isArray(e) ? e.some((e) => Ae(e, t, n)) : Ae(e, t, n);
|
|
217
|
-
}
|
|
218
215
|
function Ae(e, t, n) {
|
|
216
|
+
return e === void 0 ? !1 : Array.isArray(e) ? e.some((e) => je(e, t, n)) : je(e, t, n);
|
|
217
|
+
}
|
|
218
|
+
function je(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
222
|
//#region ../../node_modules/.pnpm/reka-ui@2.10.5_vue@3.5.43_typescript@6.0.3_/node_modules/reka-ui/dist/RovingFocus/utils.js
|
|
223
|
-
var
|
|
223
|
+
var Me = "rovingFocusGroup.onEntryFocus", Ne = {
|
|
224
224
|
bubbles: !1,
|
|
225
225
|
cancelable: !0
|
|
226
|
-
},
|
|
226
|
+
}, Pe = {
|
|
227
227
|
ArrowLeft: "prev",
|
|
228
228
|
ArrowUp: "prev",
|
|
229
229
|
ArrowRight: "next",
|
|
@@ -233,23 +233,23 @@ var je = "rovingFocusGroup.onEntryFocus", Me = {
|
|
|
233
233
|
PageDown: "last",
|
|
234
234
|
End: "last"
|
|
235
235
|
};
|
|
236
|
-
function
|
|
236
|
+
function Fe(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 Ie(e, t, n) {
|
|
240
|
+
let r = Fe(e.key, n);
|
|
241
|
+
if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(r)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(r))) return Pe[r];
|
|
242
242
|
}
|
|
243
|
-
function
|
|
243
|
+
function Le(e, t = !1) {
|
|
244
244
|
let n = v();
|
|
245
245
|
for (let r of e) if (r === n || (r.focus({ preventScroll: t }), v() !== n)) return;
|
|
246
246
|
}
|
|
247
|
-
function
|
|
247
|
+
function Re(e, t) {
|
|
248
248
|
return e.map((n, r) => e[(t + r) % e.length]);
|
|
249
249
|
}
|
|
250
250
|
//#endregion
|
|
251
251
|
//#region ../../node_modules/.pnpm/reka-ui@2.10.5_vue@3.5.43_typescript@6.0.3_/node_modules/reka-ui/dist/Listbox/ListboxRoot.js
|
|
252
|
-
var [
|
|
252
|
+
var [ze, Be] = /*#__PURE__*/ o("ListboxRoot"), [Ve, He] = /*#__PURE__*/ o("ListboxHighlightScroll"), Ue = /* @__PURE__ */ j({
|
|
253
253
|
__name: "ListboxRoot",
|
|
254
254
|
props: {
|
|
255
255
|
modelValue: {
|
|
@@ -314,8 +314,8 @@ var [Re, ze] = /*#__PURE__*/ o("ListboxRoot"), [Be, Ve] = /*#__PURE__*/ o("Listb
|
|
|
314
314
|
"leave"
|
|
315
315
|
],
|
|
316
316
|
setup(e, { expose: t, emit: n }) {
|
|
317
|
-
let r = e, i = n, { multiple: o, highlightOnHover: s, orientation: c, disabled: l, selectionBehavior: u, dir: p } = G(r), { getItems: m, getItem: h } = ee({ isProvider: !0 }), { handleTypeaheadSearch: _ } =
|
|
318
|
-
|
|
317
|
+
let r = e, i = n, { multiple: o, highlightOnHover: s, orientation: c, disabled: l, selectionBehavior: u, dir: p } = G(r), { getItems: m, getItem: h } = ee({ isProvider: !0 }), { handleTypeaheadSearch: _ } = Ce(), { primitiveElement: v, currentElement: y } = g(), S = te(), C = f(p), E = Ve(null);
|
|
318
|
+
He({
|
|
319
319
|
suppressHighlightScroll: B(!1),
|
|
320
320
|
onHighlightScrollRequest: () => {}
|
|
321
321
|
});
|
|
@@ -326,9 +326,9 @@ var [Re, ze] = /*#__PURE__*/ o("ListboxRoot"), [Be, Ve] = /*#__PURE__*/ o("Listb
|
|
|
326
326
|
});
|
|
327
327
|
function ne(e) {
|
|
328
328
|
if (k.value = !0, r.multiple) {
|
|
329
|
-
let t = Array.isArray(j.value) ? [...j.value] : [], n = t.findIndex((t) =>
|
|
329
|
+
let t = Array.isArray(j.value) ? [...j.value] : [], n = t.findIndex((t) => je(t, e, r.by));
|
|
330
330
|
r.selectionBehavior === "toggle" ? (n === -1 ? t.push(e) : t.splice(n, 1), j.value = t) : (j.value = [e], O.value = e);
|
|
331
|
-
} else r.selectionBehavior === "toggle" &&
|
|
331
|
+
} else r.selectionBehavior === "toggle" && je(j.value, e, r.by) ? j.value = void 0 : j.value = e;
|
|
332
332
|
setTimeout(() => {
|
|
333
333
|
k.value = !1;
|
|
334
334
|
}, 1);
|
|
@@ -351,7 +351,7 @@ var [Re, ze] = /*#__PURE__*/ o("ListboxRoot"), [Be, Ve] = /*#__PURE__*/ o("Listb
|
|
|
351
351
|
function U(e) {
|
|
352
352
|
if (F.value) ie.trigger(e);
|
|
353
353
|
else {
|
|
354
|
-
let t = m().find((t) =>
|
|
354
|
+
let t = m().find((t) => je(t.value, e, r.by));
|
|
355
355
|
t && (M.value = t.ref, V(t.ref));
|
|
356
356
|
}
|
|
357
357
|
}
|
|
@@ -412,7 +412,7 @@ var [Re, ze] = /*#__PURE__*/ o("ListboxRoot"), [Be, Ve] = /*#__PURE__*/ o("Listb
|
|
|
412
412
|
}
|
|
413
413
|
}
|
|
414
414
|
function X(e) {
|
|
415
|
-
let t =
|
|
415
|
+
let t = Ie(e, c.value, C.value);
|
|
416
416
|
if (!t) return;
|
|
417
417
|
let n = R();
|
|
418
418
|
if (M.value) {
|
|
@@ -434,7 +434,7 @@ var [Re, ze] = /*#__PURE__*/ o("ListboxRoot"), [Be, Ve] = /*#__PURE__*/ o("Listb
|
|
|
434
434
|
if (!F.value && r.selectionBehavior === "replace" && o.value && Array.isArray(j.value) && (!e.altKey && !e.ctrlKey && !e.metaKey || e.shiftKey) && e.shiftKey) {
|
|
435
435
|
let n = m().filter((e) => e.ref.dataset.disabled !== ""), r = n.find((e) => e.ref === t)?.value;
|
|
436
436
|
if (e.key === S.END ? r = n.at(-1)?.value : e.key === S.HOME && (r = n[0]?.value), !r || !O.value) return;
|
|
437
|
-
let i =
|
|
437
|
+
let i = be(n.map((e) => e.value), O.value, r);
|
|
438
438
|
j.value = i;
|
|
439
439
|
}
|
|
440
440
|
}
|
|
@@ -467,7 +467,7 @@ var [Re, ze] = /*#__PURE__*/ o("ListboxRoot"), [Be, Ve] = /*#__PURE__*/ o("Listb
|
|
|
467
467
|
highlightFirstItem: J,
|
|
468
468
|
highlightSelected: fe,
|
|
469
469
|
getItems: m
|
|
470
|
-
}),
|
|
470
|
+
}), Be({
|
|
471
471
|
modelValue: j,
|
|
472
472
|
onValueChange: ne,
|
|
473
473
|
multiple: o,
|
|
@@ -526,7 +526,7 @@ var [Re, ze] = /*#__PURE__*/ o("ListboxRoot"), [Be, Ve] = /*#__PURE__*/ o("Listb
|
|
|
526
526
|
"data-disabled"
|
|
527
527
|
]));
|
|
528
528
|
}
|
|
529
|
-
}),
|
|
529
|
+
}), We = /* @__PURE__ */ j({
|
|
530
530
|
__name: "ListboxContent",
|
|
531
531
|
props: {
|
|
532
532
|
asChild: {
|
|
@@ -539,7 +539,7 @@ var [Re, ze] = /*#__PURE__*/ o("ListboxRoot"), [Be, Ve] = /*#__PURE__*/ o("Listb
|
|
|
539
539
|
}
|
|
540
540
|
},
|
|
541
541
|
setup(t) {
|
|
542
|
-
let { CollectionSlot: n } = ee(), r =
|
|
542
|
+
let { CollectionSlot: n } = ee(), r = ze(), i = e(!1, 10);
|
|
543
543
|
return (e, t) => (z(), w(K(n), null, {
|
|
544
544
|
default: q(() => [k(K(d), {
|
|
545
545
|
role: "listbox",
|
|
@@ -582,7 +582,7 @@ var [Re, ze] = /*#__PURE__*/ o("ListboxRoot"), [Be, Ve] = /*#__PURE__*/ o("Listb
|
|
|
582
582
|
_: 3
|
|
583
583
|
}));
|
|
584
584
|
}
|
|
585
|
-
}),
|
|
585
|
+
}), Ge = "listbox.select", [Ke, qe] = /*#__PURE__*/ o("ListboxItem"), Je = /* @__PURE__ */ j({
|
|
586
586
|
__name: "ListboxItem",
|
|
587
587
|
props: {
|
|
588
588
|
value: {
|
|
@@ -605,7 +605,7 @@ var [Re, ze] = /*#__PURE__*/ o("ListboxRoot"), [Be, Ve] = /*#__PURE__*/ o("Listb
|
|
|
605
605
|
},
|
|
606
606
|
emits: ["select"],
|
|
607
607
|
setup(e, { emit: t }) {
|
|
608
|
-
let i = e, a = t, o = s(void 0, "reka-listbox-item"), { CollectionItem: c } = ee(), { forwardRef: l, currentElement: u } = r(), f =
|
|
608
|
+
let i = e, a = t, o = s(void 0, "reka-listbox-item"), { CollectionItem: c } = ee(), { forwardRef: l, currentElement: u } = r(), f = ze(), p = C(() => u.value != null && u.value === f.highlightedElement.value), m = C(() => Ae(f.modelValue.value, i.value, f.by)), h = C(() => f.disabled.value || i.disabled);
|
|
609
609
|
async function g(e) {
|
|
610
610
|
a("select", e), !e?.defaultPrevented && !h.value && e && (f.onValueChange(i.value), f.changeHighlight(u.value));
|
|
611
611
|
}
|
|
@@ -614,9 +614,9 @@ var [Re, ze] = /*#__PURE__*/ o("ListboxRoot"), [Be, Ve] = /*#__PURE__*/ o("Listb
|
|
|
614
614
|
originalEvent: e,
|
|
615
615
|
value: i.value
|
|
616
616
|
};
|
|
617
|
-
n(
|
|
617
|
+
n(Ge, g, t);
|
|
618
618
|
}
|
|
619
|
-
return
|
|
619
|
+
return qe({ isSelected: m }), (e, t) => (z(), w(K(c), { value: e.value }, {
|
|
620
620
|
default: q(() => [le([
|
|
621
621
|
p.value,
|
|
622
622
|
m.value,
|
|
@@ -657,7 +657,7 @@ var [Re, ze] = /*#__PURE__*/ o("ListboxRoot"), [Be, Ve] = /*#__PURE__*/ o("Listb
|
|
|
657
657
|
_: 3
|
|
658
658
|
}, 8, ["value"]));
|
|
659
659
|
}
|
|
660
|
-
}), [
|
|
660
|
+
}), [Ye, Xe] = /*#__PURE__*/ o("RovingFocusGroup"), Ze = /* @__PURE__ */ j({
|
|
661
661
|
__name: "RovingFocusGroup",
|
|
662
662
|
props: {
|
|
663
663
|
orientation: {
|
|
@@ -705,10 +705,10 @@ var [Re, ze] = /*#__PURE__*/ o("ListboxRoot"), [Be, Ve] = /*#__PURE__*/ o("Listb
|
|
|
705
705
|
function _(e) {
|
|
706
706
|
let t = !p.value;
|
|
707
707
|
if (e.currentTarget && e.target === e.currentTarget && t && !u.value) {
|
|
708
|
-
let t = new CustomEvent(
|
|
708
|
+
let t = new CustomEvent(Me, Ne);
|
|
709
709
|
if (e.currentTarget.dispatchEvent(t), i("entryFocus", t), !t.defaultPrevented) {
|
|
710
710
|
let e = h().map((e) => e.ref).filter((e) => e.dataset.disabled !== "");
|
|
711
|
-
|
|
711
|
+
Le([
|
|
712
712
|
e.find((e) => e.getAttribute("data-active") === ""),
|
|
713
713
|
e.find((e) => e.getAttribute("data-highlighted") === ""),
|
|
714
714
|
e.find((e) => e.id === l.value),
|
|
@@ -723,7 +723,7 @@ var [Re, ze] = /*#__PURE__*/ o("ListboxRoot"), [Be, Ve] = /*#__PURE__*/ o("Listb
|
|
|
723
723
|
p.value = !1;
|
|
724
724
|
}, 1);
|
|
725
725
|
}
|
|
726
|
-
return t({ getItems: h }),
|
|
726
|
+
return t({ getItems: h }), Xe({
|
|
727
727
|
loop: a,
|
|
728
728
|
dir: c,
|
|
729
729
|
orientation: o,
|
|
@@ -765,7 +765,7 @@ var [Re, ze] = /*#__PURE__*/ o("ListboxRoot"), [Be, Ve] = /*#__PURE__*/ o("Listb
|
|
|
765
765
|
_: 3
|
|
766
766
|
}));
|
|
767
767
|
}
|
|
768
|
-
}),
|
|
768
|
+
}), Qe = /* @__PURE__ */ j({
|
|
769
769
|
__name: "RovingFocusItem",
|
|
770
770
|
props: {
|
|
771
771
|
tabStopId: {
|
|
@@ -796,7 +796,7 @@ var [Re, ze] = /*#__PURE__*/ o("ListboxRoot"), [Be, Ve] = /*#__PURE__*/ o("Listb
|
|
|
796
796
|
}
|
|
797
797
|
},
|
|
798
798
|
setup(e) {
|
|
799
|
-
let t = e, n =
|
|
799
|
+
let t = e, n = Ye(), r = s(), i = C(() => t.tabStopId || r), a = C(() => n.currentTabStopId.value === i.value), { getItems: o, CollectionItem: c } = ee();
|
|
800
800
|
ie(() => {
|
|
801
801
|
t.focusable && n.onFocusableItemAdd();
|
|
802
802
|
}), R(() => {
|
|
@@ -810,7 +810,7 @@ var [Re, ze] = /*#__PURE__*/ o("ListboxRoot"), [Be, Ve] = /*#__PURE__*/ o("Listb
|
|
|
810
810
|
return;
|
|
811
811
|
}
|
|
812
812
|
if (e.target !== e.currentTarget) return;
|
|
813
|
-
let r =
|
|
813
|
+
let r = Ie(e, n.orientation.value, n.dir.value);
|
|
814
814
|
if (r !== void 0) {
|
|
815
815
|
if (e.metaKey || e.ctrlKey || e.altKey || !t.allowShiftKey && e.shiftKey) return;
|
|
816
816
|
e.preventDefault();
|
|
@@ -819,9 +819,9 @@ var [Re, ze] = /*#__PURE__*/ o("ListboxRoot"), [Be, Ve] = /*#__PURE__*/ o("Listb
|
|
|
819
819
|
else if (r === "prev" || r === "next") {
|
|
820
820
|
r === "prev" && i.reverse();
|
|
821
821
|
let t = i.indexOf(e.currentTarget);
|
|
822
|
-
i = n.loop.value ?
|
|
822
|
+
i = n.loop.value ? Re(i, t + 1) : i.slice(t + 1);
|
|
823
823
|
}
|
|
824
|
-
P(() =>
|
|
824
|
+
P(() => Le(i));
|
|
825
825
|
}
|
|
826
826
|
}
|
|
827
827
|
return (e, t) => (z(), w(K(c), null, {
|
|
@@ -851,7 +851,7 @@ var [Re, ze] = /*#__PURE__*/ o("ListboxRoot"), [Be, Ve] = /*#__PURE__*/ o("Listb
|
|
|
851
851
|
_: 3
|
|
852
852
|
}));
|
|
853
853
|
}
|
|
854
|
-
}), [
|
|
854
|
+
}), [$e, et] = /*#__PURE__*/ o("CheckboxGroupRoot"), tt = /* @__PURE__ */ j({
|
|
855
855
|
__name: "CheckboxGroupRoot",
|
|
856
856
|
props: {
|
|
857
857
|
defaultValue: {
|
|
@@ -910,11 +910,11 @@ var [Re, ze] = /*#__PURE__*/ o("ListboxRoot"), [Be, Ve] = /*#__PURE__*/ o("Listb
|
|
|
910
910
|
dir: s.value,
|
|
911
911
|
orientation: n.orientation
|
|
912
912
|
} : {});
|
|
913
|
-
return
|
|
913
|
+
return et({
|
|
914
914
|
modelValue: p,
|
|
915
915
|
rovingFocus: a,
|
|
916
916
|
disabled: i
|
|
917
|
-
}), (e, t) => (z(), w(U(K(a) ? K(
|
|
917
|
+
}), (e, t) => (z(), w(U(K(a) ? K(Ze) : K(d)), N({
|
|
918
918
|
ref_key: "primitiveElement",
|
|
919
919
|
ref: c,
|
|
920
920
|
as: e.as,
|
|
@@ -936,15 +936,15 @@ var [Re, ze] = /*#__PURE__*/ o("ListboxRoot"), [Be, Ve] = /*#__PURE__*/ o("Listb
|
|
|
936
936
|
});
|
|
937
937
|
//#endregion
|
|
938
938
|
//#region ../../node_modules/.pnpm/reka-ui@2.10.5_vue@3.5.43_typescript@6.0.3_/node_modules/reka-ui/dist/Checkbox/utils.js
|
|
939
|
-
function
|
|
939
|
+
function nt(e) {
|
|
940
940
|
return e === "indeterminate";
|
|
941
941
|
}
|
|
942
|
-
function
|
|
943
|
-
return
|
|
942
|
+
function rt(e) {
|
|
943
|
+
return nt(e) ? "indeterminate" : e ? "checked" : "unchecked";
|
|
944
944
|
}
|
|
945
945
|
//#endregion
|
|
946
946
|
//#region ../../node_modules/.pnpm/reka-ui@2.10.5_vue@3.5.43_typescript@6.0.3_/node_modules/reka-ui/dist/Checkbox/CheckboxRoot.js
|
|
947
|
-
var [
|
|
947
|
+
var [it, at] = /*#__PURE__*/ o("CheckboxRoot"), ot = /* @__PURE__ */ j({
|
|
948
948
|
inheritAttrs: !1,
|
|
949
949
|
__name: "CheckboxRoot",
|
|
950
950
|
props: {
|
|
@@ -1000,28 +1000,28 @@ var [rt, it] = /*#__PURE__*/ o("CheckboxRoot"), at = /* @__PURE__ */ j({
|
|
|
1000
1000
|
},
|
|
1001
1001
|
emits: ["update:modelValue"],
|
|
1002
1002
|
setup(e, { emit: n }) {
|
|
1003
|
-
let i = e, a = n, { forwardRef: o, currentElement: s } = r(), c =
|
|
1003
|
+
let i = e, a = n, { forwardRef: o, currentElement: s } = r(), c = $e(null), l = Z(i, "modelValue", a, {
|
|
1004
1004
|
defaultValue: i.defaultValue ?? i.falseValue,
|
|
1005
1005
|
passive: i.modelValue === void 0
|
|
1006
|
-
}), u = C(() => c?.disabled.value || i.disabled), f = C(() => Q(l.value, i.trueValue)), p = C(() => t(c?.modelValue.value) ? l.value === "indeterminate" ? "indeterminate" : f.value :
|
|
1006
|
+
}), u = C(() => c?.disabled.value || i.disabled), f = C(() => Q(l.value, i.trueValue)), p = C(() => t(c?.modelValue.value) ? l.value === "indeterminate" ? "indeterminate" : f.value : xe(c.modelValue.value, i.value));
|
|
1007
1007
|
function m() {
|
|
1008
1008
|
if (t(c?.modelValue.value)) l.value === "indeterminate" ? l.value = i.trueValue : l.value = f.value ? i.falseValue : i.trueValue;
|
|
1009
1009
|
else {
|
|
1010
1010
|
let e = [...c.modelValue.value || []];
|
|
1011
|
-
if (
|
|
1011
|
+
if (xe(e, i.value)) {
|
|
1012
1012
|
let t = e.findIndex((e) => Q(e, i.value));
|
|
1013
1013
|
e.splice(t, 1);
|
|
1014
1014
|
} else e.push(i.value);
|
|
1015
1015
|
c.modelValue.value = e;
|
|
1016
1016
|
}
|
|
1017
1017
|
}
|
|
1018
|
-
let h = b(s), g =
|
|
1018
|
+
let h = b(s), g = Se(), _ = oe(), v = C(() => {
|
|
1019
1019
|
if (!_["aria-label"]) return i.id && s.value ? document.querySelector(`[for="${i.id}"]`)?.innerText : void 0;
|
|
1020
1020
|
});
|
|
1021
|
-
return
|
|
1021
|
+
return at({
|
|
1022
1022
|
disabled: u,
|
|
1023
1023
|
state: p
|
|
1024
|
-
}), (e, t) => (z(), E(S, null, [(z(), w(U(K(c)?.rovingFocus.value ? K(
|
|
1024
|
+
}), (e, t) => (z(), E(S, null, [(z(), w(U(K(c)?.rovingFocus.value ? K(Qe) : K(d)), N({
|
|
1025
1025
|
...e.$attrs,
|
|
1026
1026
|
...K(g)
|
|
1027
1027
|
}, {
|
|
@@ -1031,10 +1031,10 @@ var [rt, it] = /*#__PURE__*/ o("CheckboxRoot"), at = /* @__PURE__ */ j({
|
|
|
1031
1031
|
"as-child": e.asChild,
|
|
1032
1032
|
as: e.as,
|
|
1033
1033
|
type: e.as === "button" ? "button" : void 0,
|
|
1034
|
-
"aria-checked": K(
|
|
1034
|
+
"aria-checked": K(nt)(p.value) ? "mixed" : p.value,
|
|
1035
1035
|
"aria-required": e.required,
|
|
1036
1036
|
"aria-label": e.$attrs["aria-label"] || v.value,
|
|
1037
|
-
"data-state": K(
|
|
1037
|
+
"data-state": K(rt)(p.value),
|
|
1038
1038
|
"data-disabled": u.value ? "" : void 0,
|
|
1039
1039
|
disabled: u.value,
|
|
1040
1040
|
focusable: K(c)?.rovingFocus.value ? !u.value : void 0,
|
|
@@ -1075,7 +1075,7 @@ var [rt, it] = /*#__PURE__*/ o("CheckboxRoot"), at = /* @__PURE__ */ j({
|
|
|
1075
1075
|
"required"
|
|
1076
1076
|
])) : T("v-if", !0)], 64));
|
|
1077
1077
|
}
|
|
1078
|
-
}),
|
|
1078
|
+
}), st = /* @__PURE__ */ j({
|
|
1079
1079
|
__name: "PopoverAnchor",
|
|
1080
1080
|
props: {
|
|
1081
1081
|
reference: {
|
|
@@ -1104,7 +1104,7 @@ var [rt, it] = /*#__PURE__*/ o("CheckboxRoot"), at = /* @__PURE__ */ j({
|
|
|
1104
1104
|
_: 3
|
|
1105
1105
|
}, 16));
|
|
1106
1106
|
}
|
|
1107
|
-
}),
|
|
1107
|
+
}), ct = /* @__PURE__ */ j({
|
|
1108
1108
|
__name: "Label",
|
|
1109
1109
|
props: {
|
|
1110
1110
|
for: {
|
|
@@ -1130,16 +1130,16 @@ var [rt, it] = /*#__PURE__*/ o("CheckboxRoot"), at = /* @__PURE__ */ j({
|
|
|
1130
1130
|
_: 3
|
|
1131
1131
|
}, 16));
|
|
1132
1132
|
}
|
|
1133
|
-
}),
|
|
1134
|
-
function
|
|
1135
|
-
n(
|
|
1133
|
+
}), lt = "radio.select";
|
|
1134
|
+
function ut(e, t, r) {
|
|
1135
|
+
n(lt, r, {
|
|
1136
1136
|
originalEvent: e,
|
|
1137
1137
|
value: t
|
|
1138
1138
|
});
|
|
1139
1139
|
}
|
|
1140
1140
|
//#endregion
|
|
1141
1141
|
//#region ../../node_modules/.pnpm/reka-ui@2.10.5_vue@3.5.43_typescript@6.0.3_/node_modules/reka-ui/dist/RadioGroup/Radio.js
|
|
1142
|
-
var
|
|
1142
|
+
var dt = /* @__PURE__ */ j({
|
|
1143
1143
|
inheritAttrs: !1,
|
|
1144
1144
|
__name: "Radio",
|
|
1145
1145
|
props: {
|
|
@@ -1181,9 +1181,9 @@ var ut = /* @__PURE__ */ j({
|
|
|
1181
1181
|
},
|
|
1182
1182
|
emits: ["update:checked", "select"],
|
|
1183
1183
|
setup(e, { emit: t }) {
|
|
1184
|
-
let n = e, i = t, a = Z(n, "checked", i, { passive: n.checked === void 0 }), { value: o } = G(n), { forwardRef: s, currentElement: c } = r(), l = b(c), u =
|
|
1184
|
+
let n = e, i = t, a = Z(n, "checked", i, { passive: n.checked === void 0 }), { value: o } = G(n), { forwardRef: s, currentElement: c } = r(), l = b(c), u = Se(), f = C(() => n.id && c.value ? document.querySelector(`[for="${n.id}"]`)?.innerText : void 0);
|
|
1185
1185
|
function p(e) {
|
|
1186
|
-
n.disabled ||
|
|
1186
|
+
n.disabled || ut(e, n.value, (e) => {
|
|
1187
1187
|
i("select", e), !e?.defaultPrevented && (a.value = !0, l.value && e.stopPropagation());
|
|
1188
1188
|
});
|
|
1189
1189
|
}
|
|
@@ -1238,7 +1238,7 @@ var ut = /* @__PURE__ */ j({
|
|
|
1238
1238
|
"required"
|
|
1239
1239
|
])) : T("v-if", !0)], 64));
|
|
1240
1240
|
}
|
|
1241
|
-
}), [
|
|
1241
|
+
}), [ft, pt] = /*#__PURE__*/ o("RadioGroupRoot"), mt = /* @__PURE__ */ j({
|
|
1242
1242
|
__name: "RadioGroupRoot",
|
|
1243
1243
|
props: {
|
|
1244
1244
|
modelValue: {
|
|
@@ -1292,7 +1292,7 @@ var ut = /* @__PURE__ */ j({
|
|
|
1292
1292
|
defaultValue: n.defaultValue,
|
|
1293
1293
|
passive: n.modelValue === void 0
|
|
1294
1294
|
}), { disabled: c, loop: l, orientation: u, name: p, required: m, dir: h } = G(n), g = f(h), _ = b(o);
|
|
1295
|
-
return
|
|
1295
|
+
return pt({
|
|
1296
1296
|
modelValue: s,
|
|
1297
1297
|
changeModelValue: (e) => {
|
|
1298
1298
|
s.value = e;
|
|
@@ -1302,7 +1302,7 @@ var ut = /* @__PURE__ */ j({
|
|
|
1302
1302
|
orientation: u,
|
|
1303
1303
|
name: p?.value,
|
|
1304
1304
|
required: m
|
|
1305
|
-
}), (e, t) => (z(), w(K(
|
|
1305
|
+
}), (e, t) => (z(), w(K(Ze), {
|
|
1306
1306
|
"as-child": "",
|
|
1307
1307
|
orientation: K(u),
|
|
1308
1308
|
dir: K(g),
|
|
@@ -1346,7 +1346,7 @@ var ut = /* @__PURE__ */ j({
|
|
|
1346
1346
|
"loop"
|
|
1347
1347
|
]));
|
|
1348
1348
|
}
|
|
1349
|
-
}), [
|
|
1349
|
+
}), [ht, gt] = /*#__PURE__*/ o("RadioGroupItem"), _t = /* @__PURE__ */ j({
|
|
1350
1350
|
inheritAttrs: !1,
|
|
1351
1351
|
__name: "RadioGroupItem",
|
|
1352
1352
|
props: {
|
|
@@ -1383,8 +1383,8 @@ var ut = /* @__PURE__ */ j({
|
|
|
1383
1383
|
},
|
|
1384
1384
|
emits: ["select"],
|
|
1385
1385
|
setup(e, { emit: t }) {
|
|
1386
|
-
let n = e, i = t, { forwardRef: a, currentElement: o } = r(), s =
|
|
1387
|
-
|
|
1386
|
+
let n = e, i = t, { forwardRef: a, currentElement: o } = r(), s = ft(), c = C(() => s.disabled.value || n.disabled), l = C(() => s.required.value || n.required), u = C(() => Q(s.modelValue?.value, n.value));
|
|
1387
|
+
gt({
|
|
1388
1388
|
disabled: c,
|
|
1389
1389
|
checked: u
|
|
1390
1390
|
});
|
|
@@ -1404,15 +1404,15 @@ var ut = /* @__PURE__ */ j({
|
|
|
1404
1404
|
d.value && o.value?.click();
|
|
1405
1405
|
}, 0);
|
|
1406
1406
|
}
|
|
1407
|
-
let m =
|
|
1408
|
-
return (e, t) => (z(), w(K(
|
|
1407
|
+
let m = Se();
|
|
1408
|
+
return (e, t) => (z(), w(K(Qe), {
|
|
1409
1409
|
checked: u.value,
|
|
1410
1410
|
disabled: c.value,
|
|
1411
1411
|
"as-child": "",
|
|
1412
1412
|
focusable: !c.value,
|
|
1413
1413
|
active: u.value
|
|
1414
1414
|
}, {
|
|
1415
|
-
default: q(() => [k(
|
|
1415
|
+
default: q(() => [k(dt, N({
|
|
1416
1416
|
...K(m),
|
|
1417
1417
|
...e.$attrs,
|
|
1418
1418
|
...n
|
|
@@ -1445,7 +1445,7 @@ var ut = /* @__PURE__ */ j({
|
|
|
1445
1445
|
"active"
|
|
1446
1446
|
]));
|
|
1447
1447
|
}
|
|
1448
|
-
}), [
|
|
1448
|
+
}), [vt, yt] = /*#__PURE__*/ o("ToggleGroupRoot"), bt = /* @__PURE__ */ j({
|
|
1449
1449
|
__name: "ToggleGroupRoot",
|
|
1450
1450
|
props: {
|
|
1451
1451
|
rovingFocus: {
|
|
@@ -1502,8 +1502,8 @@ var ut = /* @__PURE__ */ j({
|
|
|
1502
1502
|
},
|
|
1503
1503
|
emits: ["update:modelValue"],
|
|
1504
1504
|
setup(e, { emit: t }) {
|
|
1505
|
-
let n = e, i = t, { loop: a, rovingFocus: o, disabled: s, dir: c } = G(n), l = f(c), { forwardRef: u, currentElement: p } = r(), { modelValue: m, changeModelValue: h, isSingle: g } =
|
|
1506
|
-
return
|
|
1505
|
+
let n = e, i = t, { loop: a, rovingFocus: o, disabled: s, dir: c } = G(n), l = f(c), { forwardRef: u, currentElement: p } = r(), { modelValue: m, changeModelValue: h, isSingle: g } = ke(n, i), _ = b(p);
|
|
1506
|
+
return yt({
|
|
1507
1507
|
isSingle: g,
|
|
1508
1508
|
modelValue: m,
|
|
1509
1509
|
changeModelValue: h,
|
|
@@ -1512,7 +1512,7 @@ var ut = /* @__PURE__ */ j({
|
|
|
1512
1512
|
loop: a,
|
|
1513
1513
|
rovingFocus: o,
|
|
1514
1514
|
disabled: s
|
|
1515
|
-
}), (e, t) => (z(), w(U(K(o) ? K(
|
|
1515
|
+
}), (e, t) => (z(), w(U(K(o) ? K(Ze) : K(d)), {
|
|
1516
1516
|
"as-child": "",
|
|
1517
1517
|
orientation: K(o) ? e.orientation : void 0,
|
|
1518
1518
|
dir: K(l),
|
|
@@ -1543,7 +1543,7 @@ var ut = /* @__PURE__ */ j({
|
|
|
1543
1543
|
"loop"
|
|
1544
1544
|
]));
|
|
1545
1545
|
}
|
|
1546
|
-
}),
|
|
1546
|
+
}), xt = /* @__PURE__ */ j({
|
|
1547
1547
|
inheritAttrs: !1,
|
|
1548
1548
|
__name: "Toggle",
|
|
1549
1549
|
props: {
|
|
@@ -1581,7 +1581,7 @@ var ut = /* @__PURE__ */ j({
|
|
|
1581
1581
|
},
|
|
1582
1582
|
emits: ["update:modelValue"],
|
|
1583
1583
|
setup(e, { emit: t }) {
|
|
1584
|
-
let n = e, i = t, { forwardRef: a, currentElement: o } = r(), s =
|
|
1584
|
+
let n = e, i = t, { forwardRef: a, currentElement: o } = r(), s = Se(), c = vt(null), l = Z(n, "modelValue", i, {
|
|
1585
1585
|
defaultValue: n.defaultValue,
|
|
1586
1586
|
passive: n.modelValue === void 0
|
|
1587
1587
|
});
|
|
@@ -1629,7 +1629,7 @@ var ut = /* @__PURE__ */ j({
|
|
|
1629
1629
|
"required"
|
|
1630
1630
|
])) : T("v-if", !0)], 64));
|
|
1631
1631
|
}
|
|
1632
|
-
}),
|
|
1632
|
+
}), St = /* @__PURE__ */ j({
|
|
1633
1633
|
__name: "ToggleGroupItem",
|
|
1634
1634
|
props: {
|
|
1635
1635
|
value: {
|
|
@@ -1651,12 +1651,12 @@ var ut = /* @__PURE__ */ j({
|
|
|
1651
1651
|
}
|
|
1652
1652
|
},
|
|
1653
1653
|
setup(e) {
|
|
1654
|
-
let t = e, n =
|
|
1655
|
-
return (e, r) => (z(), w(U(K(n).rovingFocus.value ? K(
|
|
1654
|
+
let t = e, n = vt(), i = C(() => n.disabled?.value || t.disabled), a = C(() => xe(n.modelValue.value, t.value)), { forwardRef: o } = r(), s = Se();
|
|
1655
|
+
return (e, r) => (z(), w(U(K(n).rovingFocus.value ? K(Qe) : K(d)), N({ "as-child": "" }, K(n).rovingFocus.value ? {
|
|
1656
1656
|
focusable: !i.value,
|
|
1657
1657
|
active: a.value
|
|
1658
1658
|
} : {}), {
|
|
1659
|
-
default: q(() => [k(K(
|
|
1659
|
+
default: q(() => [k(K(xt), N({
|
|
1660
1660
|
...K(s),
|
|
1661
1661
|
...t
|
|
1662
1662
|
}, {
|
|
@@ -1671,7 +1671,7 @@ var ut = /* @__PURE__ */ j({
|
|
|
1671
1671
|
_: 3
|
|
1672
1672
|
}, 16));
|
|
1673
1673
|
}
|
|
1674
|
-
}),
|
|
1674
|
+
}), Ct = /* @__PURE__ */ j({
|
|
1675
1675
|
name: "HstButtonGroup",
|
|
1676
1676
|
props: {
|
|
1677
1677
|
title: {},
|
|
@@ -1696,19 +1696,19 @@ var ut = /* @__PURE__ */ j({
|
|
|
1696
1696
|
class: "poveste-button-group"
|
|
1697
1697
|
}, {
|
|
1698
1698
|
actions: q(() => [H(t.$slots, "actions")]),
|
|
1699
|
-
default: q(() => [k(K(
|
|
1699
|
+
default: q(() => [k(K(bt), {
|
|
1700
1700
|
type: "single",
|
|
1701
1701
|
class: "poveste-button-group-options",
|
|
1702
1702
|
"data-slot": "options",
|
|
1703
1703
|
"model-value": e.modelValue ?? null,
|
|
1704
1704
|
"onUpdate:modelValue": a
|
|
1705
1705
|
}, {
|
|
1706
|
-
default: q(() => [(z(!0), E(S, null, V(i.value, ({ label: e, value: t }) => (z(), w(K(
|
|
1706
|
+
default: q(() => [(z(!0), E(S, null, V(i.value, ({ label: e, value: t }) => (z(), w(K(St), {
|
|
1707
1707
|
key: t,
|
|
1708
1708
|
"as-child": "",
|
|
1709
1709
|
value: t
|
|
1710
1710
|
}, {
|
|
1711
|
-
default: q(() => [k(
|
|
1711
|
+
default: q(() => [k(_e, {
|
|
1712
1712
|
class: "poveste-button-group-option",
|
|
1713
1713
|
"data-slot": "option"
|
|
1714
1714
|
}, {
|
|
@@ -1722,16 +1722,16 @@ var ut = /* @__PURE__ */ j({
|
|
|
1722
1722
|
_: 3
|
|
1723
1723
|
}, 8, ["title"]));
|
|
1724
1724
|
}
|
|
1725
|
-
}),
|
|
1725
|
+
}), wt = {
|
|
1726
1726
|
class: "poveste-checkbox-visual",
|
|
1727
1727
|
"data-slot": "visual"
|
|
1728
|
-
},
|
|
1728
|
+
}, Tt = {
|
|
1729
1729
|
width: "16",
|
|
1730
1730
|
height: "16",
|
|
1731
1731
|
viewBox: "0 0 24 24",
|
|
1732
1732
|
class: "poveste-checkbox-visual-check",
|
|
1733
1733
|
"data-slot": "visual-check"
|
|
1734
|
-
},
|
|
1734
|
+
}, Et = ["stroke-dasharray", "stroke-dashoffset"], Dt = /* @__PURE__ */ j({
|
|
1735
1735
|
name: "CheckboxVisual",
|
|
1736
1736
|
props: { modelValue: { type: Boolean } },
|
|
1737
1737
|
setup(e) {
|
|
@@ -1740,10 +1740,10 @@ var ut = /* @__PURE__ */ j({
|
|
|
1740
1740
|
o.value = !0;
|
|
1741
1741
|
}), ce(n, () => {
|
|
1742
1742
|
r.value = n.value?.getTotalLength?.() ?? 21.21;
|
|
1743
|
-
}), (e, t) => (z(), E("span",
|
|
1743
|
+
}), (e, t) => (z(), E("span", wt, [t[0] ||= D("span", {
|
|
1744
1744
|
class: "poveste-checkbox-visual-box",
|
|
1745
1745
|
"data-slot": "visual-box"
|
|
1746
|
-
}, null, -1), (z(), E("svg",
|
|
1746
|
+
}, null, -1), (z(), E("svg", Tt, [D("path", {
|
|
1747
1747
|
ref_key: "path",
|
|
1748
1748
|
ref: n,
|
|
1749
1749
|
d: "m 4 12 l 5 5 l 10 -10",
|
|
@@ -1751,9 +1751,9 @@ var ut = /* @__PURE__ */ j({
|
|
|
1751
1751
|
class: F(o.value ? "poveste-checkbox-visual-animated" : void 0),
|
|
1752
1752
|
"stroke-dasharray": r.value,
|
|
1753
1753
|
"stroke-dashoffset": a.value
|
|
1754
|
-
}, null, 10,
|
|
1754
|
+
}, null, 10, Et)]))]));
|
|
1755
1755
|
}
|
|
1756
|
-
}),
|
|
1756
|
+
}), Ot = ["data-checked"], kt = /* @__PURE__ */ j({
|
|
1757
1757
|
name: "HstSimpleCheckbox",
|
|
1758
1758
|
props: {
|
|
1759
1759
|
modelValue: { type: Boolean },
|
|
@@ -1762,7 +1762,7 @@ var ut = /* @__PURE__ */ j({
|
|
|
1762
1762
|
emits: { "update:modelValue": (e) => !0 },
|
|
1763
1763
|
setup(e, { emit: t }) {
|
|
1764
1764
|
let n = t;
|
|
1765
|
-
return (t, r) => e.withToggle ? (z(), w(K(
|
|
1765
|
+
return (t, r) => e.withToggle ? (z(), w(K(ot), {
|
|
1766
1766
|
key: 0,
|
|
1767
1767
|
"model-value": e.modelValue ?? !1,
|
|
1768
1768
|
class: "poveste-simple-checkbox poveste-simple-checkbox-interactive",
|
|
@@ -1770,16 +1770,16 @@ var ut = /* @__PURE__ */ j({
|
|
|
1770
1770
|
"data-checked": e.modelValue ? "" : void 0,
|
|
1771
1771
|
"onUpdate:modelValue": r[0] ||= (e) => n("update:modelValue", e === !0)
|
|
1772
1772
|
}, {
|
|
1773
|
-
default: q(() => [k(
|
|
1773
|
+
default: q(() => [k(Dt, { "model-value": e.modelValue }, null, 8, ["model-value"])]),
|
|
1774
1774
|
_: 1
|
|
1775
1775
|
}, 8, ["model-value", "data-checked"])) : (z(), E("span", {
|
|
1776
1776
|
key: 1,
|
|
1777
1777
|
class: "poveste-simple-checkbox",
|
|
1778
1778
|
"data-slot": "box",
|
|
1779
1779
|
"data-checked": e.modelValue ? "" : void 0
|
|
1780
|
-
}, [k(
|
|
1780
|
+
}, [k(Dt, { "model-value": e.modelValue }, null, 8, ["model-value"])], 8, Ot));
|
|
1781
1781
|
}
|
|
1782
|
-
}),
|
|
1782
|
+
}), At = /* @__PURE__ */ j({
|
|
1783
1783
|
name: "HstCheckbox",
|
|
1784
1784
|
props: {
|
|
1785
1785
|
modelValue: { type: [
|
|
@@ -1797,7 +1797,7 @@ var ut = /* @__PURE__ */ j({
|
|
|
1797
1797
|
title: e.title
|
|
1798
1798
|
}, {
|
|
1799
1799
|
actions: q(() => [H(t.$slots, "actions")]),
|
|
1800
|
-
default: q(() => [k(K(
|
|
1800
|
+
default: q(() => [k(K(ot), {
|
|
1801
1801
|
"model-value": i.value ? String(a.value) : a.value,
|
|
1802
1802
|
"true-value": !i.value || "true",
|
|
1803
1803
|
"false-value": i.value ? "false" : !1,
|
|
@@ -1805,7 +1805,7 @@ var ut = /* @__PURE__ */ j({
|
|
|
1805
1805
|
"data-slot": "control",
|
|
1806
1806
|
"onUpdate:modelValue": n[0] ||= (e) => r("update:modelValue", e)
|
|
1807
1807
|
}, {
|
|
1808
|
-
default: q(() => [k(
|
|
1808
|
+
default: q(() => [k(kt, { "model-value": a.value }, null, 8, ["model-value"])]),
|
|
1809
1809
|
_: 1
|
|
1810
1810
|
}, 8, [
|
|
1811
1811
|
"model-value",
|
|
@@ -1815,7 +1815,7 @@ var ut = /* @__PURE__ */ j({
|
|
|
1815
1815
|
_: 3
|
|
1816
1816
|
}, 8, ["title"]));
|
|
1817
1817
|
}
|
|
1818
|
-
}),
|
|
1818
|
+
}), jt = /* @__PURE__ */ j({
|
|
1819
1819
|
name: "HstCheckboxList",
|
|
1820
1820
|
props: {
|
|
1821
1821
|
title: {},
|
|
@@ -1832,23 +1832,23 @@ var ut = /* @__PURE__ */ j({
|
|
|
1832
1832
|
style: L(t.$attrs.style)
|
|
1833
1833
|
}, {
|
|
1834
1834
|
actions: q(() => [H(t.$slots, "actions")]),
|
|
1835
|
-
default: q(() => [k(K(
|
|
1835
|
+
default: q(() => [k(K(tt), {
|
|
1836
1836
|
"model-value": e.modelValue,
|
|
1837
1837
|
class: "poveste-checkbox-list-options",
|
|
1838
1838
|
"data-slot": "options",
|
|
1839
1839
|
"onUpdate:modelValue": n[0] ||= (e) => r("update:modelValue", e)
|
|
1840
1840
|
}, {
|
|
1841
|
-
default: q(() => [(z(!0), E(S, null, V(i.value, (t, n) => (z(), w(K(
|
|
1841
|
+
default: q(() => [(z(!0), E(S, null, V(i.value, (t, n) => (z(), w(K(ct), {
|
|
1842
1842
|
key: n,
|
|
1843
1843
|
class: "poveste-checkbox-list-option",
|
|
1844
1844
|
"data-slot": "option"
|
|
1845
1845
|
}, {
|
|
1846
|
-
default: q(() => [k(K(
|
|
1846
|
+
default: q(() => [k(K(ot), {
|
|
1847
1847
|
value: n,
|
|
1848
1848
|
class: "poveste-checkbox-list-box",
|
|
1849
1849
|
"data-slot": "control"
|
|
1850
1850
|
}, {
|
|
1851
|
-
default: q(() => [k(
|
|
1851
|
+
default: q(() => [k(kt, { "model-value": e.modelValue.includes(n) }, null, 8, ["model-value"])]),
|
|
1852
1852
|
_: 2
|
|
1853
1853
|
}, 1032, ["value"]), O(" " + W(t), 1)]),
|
|
1854
1854
|
_: 2
|
|
@@ -1862,7 +1862,7 @@ var ut = /* @__PURE__ */ j({
|
|
|
1862
1862
|
"style"
|
|
1863
1863
|
]));
|
|
1864
1864
|
}
|
|
1865
|
-
}),
|
|
1865
|
+
}), Mt = { class: "flex flex-row gap-1" }, Nt = ["value"], Pt = /* @__PURE__ */ j({
|
|
1866
1866
|
name: "HstColorSelect",
|
|
1867
1867
|
inheritAttrs: !1,
|
|
1868
1868
|
props: {
|
|
@@ -1901,7 +1901,7 @@ var ut = /* @__PURE__ */ j({
|
|
|
1901
1901
|
style: L(t.$attrs.style)
|
|
1902
1902
|
}, {
|
|
1903
1903
|
actions: q(() => [H(t.$slots, "actions")]),
|
|
1904
|
-
default: q(() => [D("div",
|
|
1904
|
+
default: q(() => [D("div", Mt, [J(D("input", N({
|
|
1905
1905
|
...t.$attrs,
|
|
1906
1906
|
class: null,
|
|
1907
1907
|
style: null
|
|
@@ -1913,7 +1913,7 @@ var ut = /* @__PURE__ */ j({
|
|
|
1913
1913
|
type: "color",
|
|
1914
1914
|
value: e.modelValue,
|
|
1915
1915
|
onInput: n[1] ||= ((e) => s(e.target.value))
|
|
1916
|
-
}, null, 40,
|
|
1916
|
+
}, null, 40, Nt)])]),
|
|
1917
1917
|
_: 3
|
|
1918
1918
|
}, 8, [
|
|
1919
1919
|
"title",
|
|
@@ -1925,32 +1925,38 @@ var ut = /* @__PURE__ */ j({
|
|
|
1925
1925
|
name: "HstCopyIcon",
|
|
1926
1926
|
props: { content: { type: [String, Function] } },
|
|
1927
1927
|
setup(e) {
|
|
1928
|
-
let t = e, { copy: n, copied: r } = de(), { polite: i } = pe()
|
|
1929
|
-
|
|
1928
|
+
let t = e, { copy: n, copied: r } = de(), { polite: i } = pe(), a = B(!1), { start: o } = me(() => {
|
|
1929
|
+
a.value = !1;
|
|
1930
|
+
}, 1500, { immediate: !1 });
|
|
1931
|
+
async function s() {
|
|
1930
1932
|
let e = typeof t.content == "function" ? await t.content() : t.content;
|
|
1931
|
-
|
|
1933
|
+
if (!e) {
|
|
1934
|
+
a.value = !0, o(), i("Nothing to copy");
|
|
1935
|
+
return;
|
|
1936
|
+
}
|
|
1937
|
+
a.value = !1, await n(e), r.value && i("Copied");
|
|
1932
1938
|
}
|
|
1933
1939
|
return (e, t) => (z(), w(c, {
|
|
1934
|
-
content: "Copied!",
|
|
1935
|
-
open: K(r),
|
|
1940
|
+
content: a.value ? "Nothing to copy" : "Copied!",
|
|
1941
|
+
open: K(r) || a.value,
|
|
1936
1942
|
offset: 12
|
|
1937
1943
|
}, {
|
|
1938
1944
|
default: q(() => [D("button", {
|
|
1939
1945
|
type: "button",
|
|
1940
1946
|
"aria-label": "Copy",
|
|
1941
1947
|
class: "flex p-0 bg-transparent border-0 text-inherit opacity-50 hover:opacity-100 focus-visible:opacity-100 hover:text-primary-500 cursor-pointer",
|
|
1942
|
-
onClick: t[0] ||= (e) =>
|
|
1943
|
-
}, [k(K(
|
|
1948
|
+
onClick: t[0] ||= (e) => s()
|
|
1949
|
+
}, [k(K(he), {
|
|
1944
1950
|
icon: "carbon:copy-file",
|
|
1945
1951
|
class: "w-4 h-4"
|
|
1946
1952
|
})])]),
|
|
1947
1953
|
_: 1
|
|
1948
|
-
}, 8, ["open"]));
|
|
1954
|
+
}, 8, ["content", "open"]));
|
|
1949
1955
|
}
|
|
1950
|
-
}),
|
|
1956
|
+
}), Ft = {
|
|
1951
1957
|
key: 0,
|
|
1952
1958
|
class: "poveste-color-shades grid gap-4 grid-cols-[repeat(auto-fill,minmax(200px,1fr))] m-4"
|
|
1953
|
-
},
|
|
1959
|
+
}, It = ["onMouseenter"], Lt = { class: "flex gap-1" }, Rt = { class: "my-0 truncate shrink" }, zt = { class: "flex gap-1" }, Bt = { class: "my-0 opacity-50 truncate shrink" }, Vt = /* @__PURE__ */ j({
|
|
1954
1960
|
name: "HstColorShades",
|
|
1955
1961
|
props: {
|
|
1956
1962
|
shades: {},
|
|
@@ -1983,7 +1989,7 @@ var ut = /* @__PURE__ */ j({
|
|
|
1983
1989
|
}
|
|
1984
1990
|
return e;
|
|
1985
1991
|
}), a = B(null);
|
|
1986
|
-
return (e, t) => i.value.length ? (z(), E("div",
|
|
1992
|
+
return (e, t) => i.value.length ? (z(), E("div", Ft, [(z(!0), E(S, null, V(i.value, (n) => (z(), E("div", {
|
|
1987
1993
|
key: n.key,
|
|
1988
1994
|
class: "flex flex-col gap-2",
|
|
1989
1995
|
onMouseenter: (e) => a.value = n.key,
|
|
@@ -1991,23 +1997,23 @@ var ut = /* @__PURE__ */ j({
|
|
|
1991
1997
|
}, [H(e.$slots, "default", { color: n.color }, () => [D("div", {
|
|
1992
1998
|
class: "rounded-full w-16 h-16",
|
|
1993
1999
|
style: L({ backgroundColor: n.color })
|
|
1994
|
-
}, null, 4)]), D("div", null, [D("div",
|
|
1995
|
-
default: q(() => [D("pre",
|
|
2000
|
+
}, null, 4)]), D("div", null, [D("div", Lt, [k(c, { content: n.name.length > 23 ? n.name : "" }, {
|
|
2001
|
+
default: q(() => [D("pre", Rt, W(n.name), 1)]),
|
|
1996
2002
|
_: 2
|
|
1997
2003
|
}, 1032, ["content"]), a.value === n.key ? (z(), w($, {
|
|
1998
2004
|
key: 0,
|
|
1999
2005
|
content: n.name,
|
|
2000
2006
|
class: "flex-none"
|
|
2001
|
-
}, null, 8, ["content"])) : T("", !0)]), D("div",
|
|
2002
|
-
default: q(() => [D("pre",
|
|
2007
|
+
}, null, 8, ["content"])) : T("", !0)]), D("div", zt, [k(c, { content: n.color.length > 23 ? n.color : "" }, {
|
|
2008
|
+
default: q(() => [D("pre", Bt, W(n.color), 1)]),
|
|
2003
2009
|
_: 2
|
|
2004
2010
|
}, 1032, ["content"]), a.value === n.key ? (z(), w($, {
|
|
2005
2011
|
key: 0,
|
|
2006
2012
|
content: n.color,
|
|
2007
2013
|
class: "flex-none"
|
|
2008
|
-
}, null, 8, ["content"])) : T("", !0)])])], 40,
|
|
2014
|
+
}, null, 8, ["content"])) : T("", !0)])])], 40, It))), 128))])) : T("", !0);
|
|
2009
2015
|
}
|
|
2010
|
-
}),
|
|
2016
|
+
}), Ht = ["onMouseenter"], Ut = { class: "flex gap-1" }, Wt = { class: "my-0 truncate shrink" }, Gt = { class: "flex gap-1" }, Kt = { class: "my-0 opacity-50 truncate shrink" }, qt = /* @__PURE__ */ j({
|
|
2011
2017
|
name: "HstTokenGrid",
|
|
2012
2018
|
props: {
|
|
2013
2019
|
tokens: {},
|
|
@@ -2034,23 +2040,23 @@ var ut = /* @__PURE__ */ j({
|
|
|
2034
2040
|
class: "flex flex-col gap-2",
|
|
2035
2041
|
onMouseenter: (e) => i.value = n.key,
|
|
2036
2042
|
onMouseleave: o[0] ||= (e) => i.value = null
|
|
2037
|
-
}, [H(t.$slots, "default", { token: n }), D("div", null, [D("div",
|
|
2038
|
-
default: q(() => [D("pre",
|
|
2043
|
+
}, [H(t.$slots, "default", { token: n }), D("div", null, [D("div", Ut, [k(c, { content: n.name.length > e.colSize / 8 ? n.name : "" }, {
|
|
2044
|
+
default: q(() => [D("pre", Wt, W(n.name), 1)]),
|
|
2039
2045
|
_: 2
|
|
2040
2046
|
}, 1032, ["content"]), i.value === n.key ? (z(), w($, {
|
|
2041
2047
|
key: 0,
|
|
2042
2048
|
content: n.name,
|
|
2043
2049
|
class: "flex-none"
|
|
2044
|
-
}, null, 8, ["content"])) : T("", !0)]), D("div",
|
|
2045
|
-
default: q(() => [D("pre",
|
|
2050
|
+
}, null, 8, ["content"])) : T("", !0)]), D("div", Gt, [k(c, { content: a(n.value, e.colSize / 8) }, {
|
|
2051
|
+
default: q(() => [D("pre", Kt, W(n.value), 1)]),
|
|
2046
2052
|
_: 2
|
|
2047
2053
|
}, 1032, ["content"]), i.value === n.key ? (z(), w($, {
|
|
2048
2054
|
key: 0,
|
|
2049
2055
|
content: typeof n.value == "string" ? n.value : JSON.stringify(n.value),
|
|
2050
2056
|
class: "flex-none"
|
|
2051
|
-
}, null, 8, ["content"])) : T("", !0)])])], 40,
|
|
2057
|
+
}, null, 8, ["content"])) : T("", !0)])])], 40, Ht))), 128))], 4));
|
|
2052
2058
|
}
|
|
2053
|
-
}),
|
|
2059
|
+
}), Jt = ["onMouseenter"], Yt = { class: "mx-4" }, Xt = { class: "flex gap-1" }, Zt = { class: "my-0 truncate shrink" }, Qt = { class: "flex gap-1" }, $t = { class: "my-0 opacity-50 truncate shrink" }, en = /* @__PURE__ */ j({
|
|
2054
2060
|
name: "HstTokenList",
|
|
2055
2061
|
props: {
|
|
2056
2062
|
tokens: {},
|
|
@@ -2070,17 +2076,17 @@ var ut = /* @__PURE__ */ j({
|
|
|
2070
2076
|
class: "poveste-token-list flex flex-col gap-2 my-8",
|
|
2071
2077
|
onMouseenter: (e) => r.value = n.key,
|
|
2072
2078
|
onMouseleave: t[0] ||= (e) => r.value = null
|
|
2073
|
-
}, [H(e.$slots, "default", { token: n }), D("div",
|
|
2079
|
+
}, [H(e.$slots, "default", { token: n }), D("div", Yt, [D("div", Xt, [D("pre", Zt, W(n.name), 1), r.value === n.key ? (z(), w($, {
|
|
2074
2080
|
key: 0,
|
|
2075
2081
|
content: n.name,
|
|
2076
2082
|
class: "flex-none"
|
|
2077
|
-
}, null, 8, ["content"])) : T("", !0)]), D("div",
|
|
2083
|
+
}, null, 8, ["content"])) : T("", !0)]), D("div", Qt, [D("pre", $t, W(n.value), 1), r.value === n.key ? (z(), w($, {
|
|
2078
2084
|
key: 0,
|
|
2079
2085
|
content: typeof n.value == "string" ? n.value : JSON.stringify(n.value),
|
|
2080
2086
|
class: "flex-none"
|
|
2081
|
-
}, null, 8, ["content"])) : T("", !0)])])], 40,
|
|
2087
|
+
}, null, 8, ["content"])) : T("", !0)])])], 40, Jt))), 128));
|
|
2082
2088
|
}
|
|
2083
|
-
}),
|
|
2089
|
+
}), tn = /* @__PURE__ */ j({
|
|
2084
2090
|
name: "HstNumber",
|
|
2085
2091
|
inheritAttrs: !1,
|
|
2086
2092
|
props: {
|
|
@@ -2146,7 +2152,7 @@ var ut = /* @__PURE__ */ j({
|
|
|
2146
2152
|
"data-dragging"
|
|
2147
2153
|
]));
|
|
2148
2154
|
}
|
|
2149
|
-
}),
|
|
2155
|
+
}), nn = /* @__PURE__ */ j({
|
|
2150
2156
|
name: "HstRadio",
|
|
2151
2157
|
props: {
|
|
2152
2158
|
title: {},
|
|
@@ -2163,18 +2169,18 @@ var ut = /* @__PURE__ */ j({
|
|
|
2163
2169
|
style: L(t.$attrs.style)
|
|
2164
2170
|
}, {
|
|
2165
2171
|
actions: q(() => [H(t.$slots, "actions")]),
|
|
2166
|
-
default: q(() => [k(K(
|
|
2172
|
+
default: q(() => [k(K(mt), {
|
|
2167
2173
|
"model-value": e.modelValue ?? null,
|
|
2168
2174
|
class: "poveste-radio-options",
|
|
2169
2175
|
"data-slot": "options",
|
|
2170
2176
|
"onUpdate:modelValue": n[0] ||= (e) => r("update:modelValue", e)
|
|
2171
2177
|
}, {
|
|
2172
|
-
default: q(() => [(z(!0), E(S, null, V(i.value, (e, t) => (z(), w(K(
|
|
2178
|
+
default: q(() => [(z(!0), E(S, null, V(i.value, (e, t) => (z(), w(K(ct), {
|
|
2173
2179
|
key: t,
|
|
2174
2180
|
class: "poveste-radio-option",
|
|
2175
2181
|
"data-slot": "option"
|
|
2176
2182
|
}, {
|
|
2177
|
-
default: q(() => [k(K(
|
|
2183
|
+
default: q(() => [k(K(_t), {
|
|
2178
2184
|
value: t,
|
|
2179
2185
|
class: "poveste-radio-box",
|
|
2180
2186
|
"data-slot": "control"
|
|
@@ -2196,14 +2202,14 @@ var ut = /* @__PURE__ */ j({
|
|
|
2196
2202
|
"style"
|
|
2197
2203
|
]));
|
|
2198
2204
|
}
|
|
2199
|
-
}),
|
|
2205
|
+
}), rn = {
|
|
2200
2206
|
type: "button",
|
|
2201
2207
|
class: "poveste-select-trigger",
|
|
2202
2208
|
"data-slot": "trigger"
|
|
2203
|
-
},
|
|
2209
|
+
}, an = {
|
|
2204
2210
|
class: "poveste-select-label",
|
|
2205
2211
|
"data-slot": "value"
|
|
2206
|
-
},
|
|
2212
|
+
}, on = /* @__PURE__ */ j({
|
|
2207
2213
|
name: "CustomSelect",
|
|
2208
2214
|
props: {
|
|
2209
2215
|
modelValue: {},
|
|
@@ -2224,7 +2230,7 @@ var ut = /* @__PURE__ */ j({
|
|
|
2224
2230
|
"onUpdate:open": n[0] ||= (e) => i.value = e
|
|
2225
2231
|
}, {
|
|
2226
2232
|
default: q(() => [k(K(y), { "as-child": "" }, {
|
|
2227
|
-
default: q(() => [D("button",
|
|
2233
|
+
default: q(() => [D("button", rn, [D("span", an, [H(t.$slots, "default", { label: s.value }, () => [O(W(s.value), 1)])]), k(K(he), {
|
|
2228
2234
|
icon: "carbon:chevron-sort",
|
|
2229
2235
|
class: "poveste-select-chevron"
|
|
2230
2236
|
})])]),
|
|
@@ -2239,7 +2245,7 @@ var ut = /* @__PURE__ */ j({
|
|
|
2239
2245
|
"side-offset": 6,
|
|
2240
2246
|
"collision-padding": 8
|
|
2241
2247
|
}, {
|
|
2242
|
-
default: q(() => [k(K(
|
|
2248
|
+
default: q(() => [k(K(Ue), {
|
|
2243
2249
|
class: "poveste-select-options",
|
|
2244
2250
|
"data-slot": "options",
|
|
2245
2251
|
"selection-behavior": "replace",
|
|
@@ -2247,11 +2253,11 @@ var ut = /* @__PURE__ */ j({
|
|
|
2247
2253
|
"model-value": e.modelValue,
|
|
2248
2254
|
"onUpdate:modelValue": c
|
|
2249
2255
|
}, {
|
|
2250
|
-
default: q(() => [k(K(
|
|
2256
|
+
default: q(() => [k(K(We), {
|
|
2251
2257
|
class: "poveste-select-list",
|
|
2252
2258
|
"data-slot": "listbox"
|
|
2253
2259
|
}, {
|
|
2254
|
-
default: q(() => [(z(!0), E(S, null, V(o.value, ([e, t]) => (z(), w(K(
|
|
2260
|
+
default: q(() => [(z(!0), E(S, null, V(o.value, ([e, t]) => (z(), w(K(Je), {
|
|
2255
2261
|
key: t,
|
|
2256
2262
|
class: "poveste-select-option",
|
|
2257
2263
|
"data-slot": "option",
|
|
@@ -2271,7 +2277,7 @@ var ut = /* @__PURE__ */ j({
|
|
|
2271
2277
|
_: 3
|
|
2272
2278
|
}, 8, ["open"]));
|
|
2273
2279
|
}
|
|
2274
|
-
}),
|
|
2280
|
+
}), sn = /* @__PURE__ */ j({
|
|
2275
2281
|
name: "HstSelect",
|
|
2276
2282
|
props: {
|
|
2277
2283
|
title: {},
|
|
@@ -2288,7 +2294,7 @@ var ut = /* @__PURE__ */ j({
|
|
|
2288
2294
|
style: L(t.$attrs.style)
|
|
2289
2295
|
}, {
|
|
2290
2296
|
actions: q(() => [H(t.$slots, "actions")]),
|
|
2291
|
-
default: q(() => [k(
|
|
2297
|
+
default: q(() => [k(on, {
|
|
2292
2298
|
options: e.options,
|
|
2293
2299
|
"model-value": e.modelValue,
|
|
2294
2300
|
"onUpdate:modelValue": r[0] ||= (e) => n("update:modelValue", e)
|
|
@@ -2300,10 +2306,10 @@ var ut = /* @__PURE__ */ j({
|
|
|
2300
2306
|
"style"
|
|
2301
2307
|
]));
|
|
2302
2308
|
}
|
|
2303
|
-
}),
|
|
2309
|
+
}), cn = {
|
|
2304
2310
|
class: "poveste-slider-field",
|
|
2305
2311
|
"data-slot": "field"
|
|
2306
|
-
},
|
|
2312
|
+
}, ln = /* @__PURE__ */ j({
|
|
2307
2313
|
name: "HstSlider",
|
|
2308
2314
|
inheritAttrs: !1,
|
|
2309
2315
|
props: {
|
|
@@ -2325,7 +2331,7 @@ var ut = /* @__PURE__ */ j({
|
|
|
2325
2331
|
title: e.title,
|
|
2326
2332
|
style: L(t.$attrs.style)
|
|
2327
2333
|
}, {
|
|
2328
|
-
default: q(() => [D("div",
|
|
2334
|
+
default: q(() => [D("div", cn, [
|
|
2329
2335
|
n[3] ||= D("div", { class: "poveste-slider-track-area" }, [D("div", {
|
|
2330
2336
|
class: "poveste-slider-track",
|
|
2331
2337
|
"data-slot": "track"
|
|
@@ -2370,7 +2376,7 @@ var ut = /* @__PURE__ */ j({
|
|
|
2370
2376
|
"style"
|
|
2371
2377
|
]));
|
|
2372
2378
|
}
|
|
2373
|
-
}),
|
|
2379
|
+
}), un = ["value"], dn = /* @__PURE__ */ j({
|
|
2374
2380
|
name: "HstText",
|
|
2375
2381
|
inheritAttrs: !1,
|
|
2376
2382
|
props: {
|
|
@@ -2400,7 +2406,7 @@ var ut = /* @__PURE__ */ j({
|
|
|
2400
2406
|
"data-slot": "control",
|
|
2401
2407
|
value: e.modelValue,
|
|
2402
2408
|
onInput: i[0] ||= (e) => n("update:modelValue", e.target.value)
|
|
2403
|
-
}), null, 16,
|
|
2409
|
+
}), null, 16, un)]),
|
|
2404
2410
|
_: 3
|
|
2405
2411
|
}, 8, [
|
|
2406
2412
|
"title",
|
|
@@ -2408,7 +2414,7 @@ var ut = /* @__PURE__ */ j({
|
|
|
2408
2414
|
"style"
|
|
2409
2415
|
]));
|
|
2410
2416
|
}
|
|
2411
|
-
}),
|
|
2417
|
+
}), fn = ["value"], pn = /* @__PURE__ */ j({
|
|
2412
2418
|
name: "HstTextarea",
|
|
2413
2419
|
inheritAttrs: !1,
|
|
2414
2420
|
props: {
|
|
@@ -2437,7 +2443,7 @@ var ut = /* @__PURE__ */ j({
|
|
|
2437
2443
|
"data-slot": "control",
|
|
2438
2444
|
value: e.modelValue,
|
|
2439
2445
|
onInput: i[0] ||= (e) => n("update:modelValue", e.target.value)
|
|
2440
|
-
}), null, 16,
|
|
2446
|
+
}), null, 16, fn)]),
|
|
2441
2447
|
_: 3
|
|
2442
2448
|
}, 8, [
|
|
2443
2449
|
"title",
|
|
@@ -2445,34 +2451,34 @@ var ut = /* @__PURE__ */ j({
|
|
|
2445
2451
|
"style"
|
|
2446
2452
|
]));
|
|
2447
2453
|
}
|
|
2448
|
-
}),
|
|
2454
|
+
}), mn = _e, hn = Ct, gn = At, _n = jt, vn = dn, yn = tn, bn = ln, xn = pn, Sn = sn, Cn = Vt, wn = en, Tn = qt, En = $, Dn = c, On = nn, kn = Object.assign(A(() => import("./HstJson-D83KEa9o.es.js")), {
|
|
2449
2455
|
name: "HstJson",
|
|
2450
2456
|
emits: ["update:modelValue"]
|
|
2451
|
-
}),
|
|
2457
|
+
}), An = Object.assign(A(() => import("./HstDate-Ct5Jp_ZD.es.js")), {
|
|
2452
2458
|
name: "HstDate",
|
|
2453
2459
|
emits: ["update:modelValue"]
|
|
2454
|
-
}),
|
|
2460
|
+
}), jn = Object.assign(A(() => import("./HstColor-DHgxKTkm.es.js")), {
|
|
2455
2461
|
name: "HstColor",
|
|
2456
2462
|
emits: ["update:modelValue"]
|
|
2457
|
-
}),
|
|
2458
|
-
HstButton:
|
|
2459
|
-
HstButtonGroup:
|
|
2460
|
-
HstCheckbox:
|
|
2461
|
-
HstCheckboxList:
|
|
2462
|
-
HstText:
|
|
2463
|
-
HstNumber:
|
|
2464
|
-
HstSlider:
|
|
2465
|
-
HstTextarea:
|
|
2466
|
-
HstSelect:
|
|
2467
|
-
HstRadio:
|
|
2468
|
-
HstColor:
|
|
2469
|
-
HstDate:
|
|
2470
|
-
HstJson:
|
|
2471
|
-
HstColorShades:
|
|
2472
|
-
HstTokenList:
|
|
2473
|
-
HstTokenGrid:
|
|
2474
|
-
HstCopyIcon:
|
|
2475
|
-
HstColorSelect:
|
|
2463
|
+
}), Mn = Pt, Nn = {
|
|
2464
|
+
HstButton: mn,
|
|
2465
|
+
HstButtonGroup: hn,
|
|
2466
|
+
HstCheckbox: gn,
|
|
2467
|
+
HstCheckboxList: _n,
|
|
2468
|
+
HstText: vn,
|
|
2469
|
+
HstNumber: yn,
|
|
2470
|
+
HstSlider: bn,
|
|
2471
|
+
HstTextarea: xn,
|
|
2472
|
+
HstSelect: Sn,
|
|
2473
|
+
HstRadio: On,
|
|
2474
|
+
HstColor: jn,
|
|
2475
|
+
HstDate: An,
|
|
2476
|
+
HstJson: kn,
|
|
2477
|
+
HstColorShades: Cn,
|
|
2478
|
+
HstTokenList: wn,
|
|
2479
|
+
HstTokenGrid: Tn,
|
|
2480
|
+
HstCopyIcon: En,
|
|
2481
|
+
HstColorSelect: Mn
|
|
2476
2482
|
};
|
|
2477
2483
|
//#endregion
|
|
2478
|
-
export {
|
|
2484
|
+
export { mn as HstButton, hn as HstButtonGroup, gn as HstCheckbox, _n as HstCheckboxList, jn as HstColor, Mn as HstColorSelect, Cn as HstColorShades, En as HstCopyIcon, An as HstDate, kn as HstJson, yn as HstNumber, On as HstRadio, Sn as HstSelect, bn as HstSlider, vn as HstText, xn as HstTextarea, Tn as HstTokenGrid, wn as HstTokenList, Dn as HstTooltip, st as PopoverAnchor, _ as PopoverContent, h as PopoverPortal, m as PopoverRoot, y as PopoverTrigger, Nn as components, l as portalTarget };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@poveste/controls",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.17.
|
|
4
|
+
"version": "0.17.1",
|
|
5
5
|
"description": "Prebuilt controls components",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Sorin Gitlan",
|
|
@@ -52,8 +52,8 @@
|
|
|
52
52
|
"@codemirror/state": "^6.7.6",
|
|
53
53
|
"@codemirror/theme-one-dark": "^6.1.2",
|
|
54
54
|
"@codemirror/view": "^6.43.13",
|
|
55
|
-
"@poveste/shared": "^0.17.
|
|
56
|
-
"@poveste/vendors": "^0.17.
|
|
55
|
+
"@poveste/shared": "^0.17.1",
|
|
56
|
+
"@poveste/vendors": "^0.17.1"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@iconify/vue": "^5.0.3",
|