@wow-two-beta/fe 0.0.32 → 0.0.34
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/chunks/Alert.vue_vue_type_script_setup_true_lang-CoLxB2dM.js +155 -0
- package/dist/chunks/Alert.vue_vue_type_script_setup_true_lang-CoLxB2dM.js.map +1 -0
- package/dist/chunks/{BackToTopButton.vue_vue_type_script_setup_true_lang-dmN5MH2T.js → BackToTopButton.vue_vue_type_script_setup_true_lang-DHSpEajG.js} +74 -31
- package/dist/chunks/BackToTopButton.vue_vue_type_script_setup_true_lang-DHSpEajG.js.map +1 -0
- package/dist/chunks/{FieldHelperText.vue_vue_type_script_setup_true_lang-B-G5rNMG.js → ColorSwatchPreview.vue_vue_type_script_setup_true_lang-Btd7KUEw.js} +70 -230
- package/dist/chunks/ColorSwatchPreview.vue_vue_type_script_setup_true_lang-Btd7KUEw.js.map +1 -0
- package/dist/chunks/{ErrorBoundary.vue_vue_type_script_setup_true_lang-Dv9wOZmk.js → ErrorBoundary.vue_vue_type_script_setup_true_lang-E72RRrNG.js} +87 -233
- package/dist/chunks/ErrorBoundary.vue_vue_type_script_setup_true_lang-E72RRrNG.js.map +1 -0
- package/dist/chunks/FieldHelperText.vue_vue_type_script_setup_true_lang-2IDI_JgQ.js +216 -0
- package/dist/chunks/FieldHelperText.vue_vue_type_script_setup_true_lang-2IDI_JgQ.js.map +1 -0
- package/dist/chunks/{KanbanCard.vue_vue_type_script_setup_true_lang-DKgIhFwh.js → KanbanCard.vue_vue_type_script_setup_true_lang-akNFA0JK.js} +390 -203
- package/dist/chunks/KanbanCard.vue_vue_type_script_setup_true_lang-akNFA0JK.js.map +1 -0
- package/dist/chunks/MasonryLayout.vue_vue_type_script_setup_true_lang-BmWwoZrv.js.map +1 -1
- package/dist/chunks/{MentionInput.vue_vue_type_script_setup_true_lang-D8Ja7QjX.js → RowsField.vue_vue_type_script_setup_true_lang-C0L-DjCW.js} +939 -1063
- package/dist/chunks/RowsField.vue_vue_type_script_setup_true_lang-C0L-DjCW.js.map +1 -0
- package/dist/chunks/TypedConfirmField.vue_vue_type_script_setup_true_lang-DXCZlnlM.js +447 -0
- package/dist/chunks/TypedConfirmField.vue_vue_type_script_setup_true_lang-DXCZlnlM.js.map +1 -0
- package/dist/chunks/{LightboxModal.vue_vue_type_script_setup_true_lang-CP7Or4sf.js → TypedConfirmModal.vue_vue_type_script_setup_true_lang-3Sdgh0cV.js} +313 -109
- package/dist/chunks/TypedConfirmModal.vue_vue_type_script_setup_true_lang-3Sdgh0cV.js.map +1 -0
- package/dist/foundation/device/hooks/UseBreakpointRange.d.ts +21 -0
- package/dist/foundation/device/index.d.ts +1 -0
- package/dist/foundation/device/index.js +13 -0
- package/dist/foundation/device/index.js.map +1 -1
- package/dist/foundation/http/ApiDecoderExtensions.d.ts +22 -0
- package/dist/foundation/http/ApiFailureExtensions.d.ts +22 -0
- package/dist/foundation/http/ProblemDetailsExtensions.d.ts +31 -0
- package/dist/foundation/http/index.d.ts +3 -0
- package/dist/foundation/http/index.js +93 -2
- package/dist/foundation/http/index.js.map +1 -1
- package/dist/index.js +642 -633
- package/dist/index.js.map +1 -1
- package/dist/presentation/actions/index.d.ts +1 -0
- package/dist/presentation/actions/index.js +12 -11
- package/dist/presentation/actions/refreshButton/RefreshButton.vue.d.ts +26 -0
- package/dist/presentation/actions/refreshButton/index.d.ts +1 -0
- package/dist/presentation/display/badge/Badge.variants.d.ts +77 -10
- package/dist/presentation/display/badge/Badge.vue.d.ts +18 -1
- package/dist/presentation/display/badge/index.d.ts +1 -1
- package/dist/presentation/display/card/CardLink.vue.d.ts +19 -0
- package/dist/presentation/display/card/index.d.ts +1 -0
- package/dist/presentation/display/index.js +63 -60
- package/dist/presentation/display/index.js.map +1 -1
- package/dist/presentation/display/listGroup/ListGroupItem.vue.d.ts +17 -0
- package/dist/presentation/display/sparkline/Sparkline.vue.d.ts +32 -2
- package/dist/presentation/display/sparkline/index.d.ts +1 -1
- package/dist/presentation/feedback/dataRegion/DataRegion.vue.d.ts +1 -1
- package/dist/presentation/feedback/index.js +43 -42
- package/dist/presentation/feedback/index.js.map +1 -1
- package/dist/presentation/forms/index.d.ts +2 -0
- package/dist/presentation/forms/index.js +140 -137
- package/dist/presentation/forms/rowsField/RowsField.vue.d.ts +56 -0
- package/dist/presentation/forms/rowsField/index.d.ts +1 -0
- package/dist/presentation/forms/tagsInput/TagsInput.vue.d.ts +1 -1
- package/dist/presentation/forms/typedConfirmField/TypedConfirmField.vue.d.ts +61 -0
- package/dist/presentation/forms/typedConfirmField/UseTypedConfirmation.d.ts +32 -0
- package/dist/presentation/forms/typedConfirmField/index.d.ts +2 -0
- package/dist/presentation/overlays/index.d.ts +1 -0
- package/dist/presentation/overlays/index.js +6 -5
- package/dist/presentation/overlays/typedConfirmModal/TypedConfirmModal.vue.d.ts +80 -0
- package/dist/presentation/overlays/typedConfirmModal/index.d.ts +1 -0
- package/dist/router/adapters/vueRouter/hooks/UseListDetailRoute.d.ts +28 -0
- package/dist/router/adapters/vueRouter/index.d.ts +1 -0
- package/dist/router/index.js +34 -0
- package/dist/router/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunks/BackToTopButton.vue_vue_type_script_setup_true_lang-dmN5MH2T.js.map +0 -1
- package/dist/chunks/ErrorBoundary.vue_vue_type_script_setup_true_lang-Dv9wOZmk.js.map +0 -1
- package/dist/chunks/FieldHelperText.vue_vue_type_script_setup_true_lang-B-G5rNMG.js.map +0 -1
- package/dist/chunks/KanbanCard.vue_vue_type_script_setup_true_lang-DKgIhFwh.js.map +0 -1
- package/dist/chunks/LightboxModal.vue_vue_type_script_setup_true_lang-CP7Or4sf.js.map +0 -1
- package/dist/chunks/ListboxPicker.variants-hiMcl66_.js +0 -44
- package/dist/chunks/ListboxPicker.variants-hiMcl66_.js.map +0 -1
- package/dist/chunks/MentionInput.vue_vue_type_script_setup_true_lang-D8Ja7QjX.js.map +0 -1
|
@@ -1,21 +1,20 @@
|
|
|
1
|
-
import { defineComponent, useAttrs, useTemplateRef, computed, openBlock, createElementBlock, mergeProps, renderSlot, getCurrentInstance, unref, createVNode, createCommentVNode, inject, provide, createBlock, withCtx, createElementVNode, normalizeClass, createTextVNode, toDisplayString,
|
|
1
|
+
import { defineComponent, useAttrs, useTemplateRef, computed, openBlock, createElementBlock, mergeProps, renderSlot, getCurrentInstance, unref, createVNode, createCommentVNode, inject, provide, createBlock, withCtx, createElementVNode, normalizeClass, createTextVNode, toDisplayString, watch, normalizeStyle, nextTick } from "vue";
|
|
2
2
|
import { c as cn } from "./Cn-C7De6POU.js";
|
|
3
3
|
import { u as useLocaleDefaults } from "./UseLocaleDefaults-DnL2Ctbe.js";
|
|
4
4
|
import { X, ChevronRight, Minus, Check } from "lucide-vue-next";
|
|
5
5
|
import { tv } from "tailwind-variants";
|
|
6
|
-
import { _ as _sfc_main$
|
|
6
|
+
import { _ as _sfc_main$a } from "./Icon.vue_vue_type_script_setup_true_lang-Ca4wsJw9.js";
|
|
7
7
|
import { u as useControlled } from "./UseControlled-BQneb7BW.js";
|
|
8
|
-
import { _ as _sfc_main$
|
|
8
|
+
import { _ as _sfc_main$b, b as useRovingFocusItem } from "./RovingFocusGroup.vue_vue_type_script_setup_true_lang-DVRYYua_.js";
|
|
9
9
|
import { P as Presence } from "./Presence-DDk0ZtAr.js";
|
|
10
10
|
import { d as dataAttr } from "./DataAttr-7BR67dTj.js";
|
|
11
|
+
import { u as useNativeFormReset } from "./FieldHelperText.vue_vue_type_script_setup_true_lang-2IDI_JgQ.js";
|
|
11
12
|
import { C as CssExtensions } from "./Tones-BU9yaXKf.js";
|
|
12
13
|
import { a as ColorTone, C as ColorExtensions } from "./ColorExtensions-DiCSaVbJ.js";
|
|
13
14
|
import { u as useSkeletonState } from "./SkeletonStateContext-tVYMa6xt.js";
|
|
14
|
-
import { u as useFormControl
|
|
15
|
+
import { u as useFormControl } from "./FormControlContext-B71MFW26.js";
|
|
15
16
|
import { Temporal } from "temporal-polyfill";
|
|
16
|
-
|
|
17
|
-
import { S as SkeletonStateLine } from "./SkeletonStateLine-anGWn2Vm.js";
|
|
18
|
-
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
17
|
+
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
19
18
|
...{ name: "KbdText", inheritAttrs: false },
|
|
20
19
|
__name: "KbdText",
|
|
21
20
|
setup(__props, { expose: __expose }) {
|
|
@@ -73,8 +72,8 @@ const tagVariants = tv({
|
|
|
73
72
|
variant: "neutral"
|
|
74
73
|
}
|
|
75
74
|
});
|
|
76
|
-
const _hoisted_1$
|
|
77
|
-
const _sfc_main$
|
|
75
|
+
const _hoisted_1$5 = ["aria-label"];
|
|
76
|
+
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
78
77
|
...{ name: "Tag", inheritAttrs: false },
|
|
79
78
|
__name: "Tag",
|
|
80
79
|
props: {
|
|
@@ -110,11 +109,11 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
110
109
|
class: "-mr-1 inline-flex h-4 w-4 items-center justify-center rounded-sm text-muted-foreground hover:bg-muted hover:text-foreground focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring",
|
|
111
110
|
onClick: _cache[0] || (_cache[0] = ($event) => emit("close"))
|
|
112
111
|
}, [
|
|
113
|
-
createVNode(unref(_sfc_main$
|
|
112
|
+
createVNode(unref(_sfc_main$a), {
|
|
114
113
|
icon: unref(CloseIcon),
|
|
115
114
|
size: 12
|
|
116
115
|
}, null, 8, ["icon"])
|
|
117
|
-
], 8, _hoisted_1$
|
|
116
|
+
], 8, _hoisted_1$5)) : createCommentVNode("", true)
|
|
118
117
|
], 16);
|
|
119
118
|
};
|
|
120
119
|
}
|
|
@@ -129,7 +128,7 @@ const TreeViewerLevelKey = Symbol("wow-two.tree.level");
|
|
|
129
128
|
function useTreeLevel() {
|
|
130
129
|
return inject(TreeViewerLevelKey, { level: 1 });
|
|
131
130
|
}
|
|
132
|
-
const _sfc_main$
|
|
131
|
+
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
133
132
|
...{ name: "TreeViewer", inheritAttrs: false },
|
|
134
133
|
__name: "TreeViewer",
|
|
135
134
|
props: {
|
|
@@ -184,7 +183,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
184
183
|
});
|
|
185
184
|
__expose({ el: rootElement });
|
|
186
185
|
return (_ctx, _cache) => {
|
|
187
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
186
|
+
return openBlock(), createBlock(unref(_sfc_main$b), mergeProps({
|
|
188
187
|
ref_key: "el",
|
|
189
188
|
ref: el,
|
|
190
189
|
orientation: "vertical",
|
|
@@ -199,12 +198,12 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
199
198
|
};
|
|
200
199
|
}
|
|
201
200
|
});
|
|
202
|
-
const _hoisted_1$
|
|
201
|
+
const _hoisted_1$4 = { class: "min-h-0 overflow-hidden" };
|
|
203
202
|
const _hoisted_2$2 = {
|
|
204
203
|
role: "group",
|
|
205
204
|
class: "flex flex-col"
|
|
206
205
|
};
|
|
207
|
-
const _sfc_main$
|
|
206
|
+
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
208
207
|
...{ name: "TreeViewerGroupContent", inheritAttrs: false },
|
|
209
208
|
__name: "TreeViewerGroupContent",
|
|
210
209
|
props: {
|
|
@@ -237,7 +236,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
237
236
|
ref_key: "el",
|
|
238
237
|
ref: el
|
|
239
238
|
}, rest.value, { class: classes.value }), [
|
|
240
|
-
createElementVNode("div", _hoisted_1$
|
|
239
|
+
createElementVNode("div", _hoisted_1$4, [
|
|
241
240
|
createElementVNode("ul", _hoisted_2$2, [
|
|
242
241
|
renderSlot(_ctx.$slots, "default")
|
|
243
242
|
])
|
|
@@ -246,7 +245,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
246
245
|
};
|
|
247
246
|
}
|
|
248
247
|
});
|
|
249
|
-
const _hoisted_1$
|
|
248
|
+
const _hoisted_1$3 = ["aria-level", "aria-selected", "aria-expanded", "aria-disabled", "data-selected", "data-disabled"];
|
|
250
249
|
const _hoisted_2$1 = {
|
|
251
250
|
key: 1,
|
|
252
251
|
class: "w-4 shrink-0"
|
|
@@ -258,7 +257,7 @@ function focusFirstChildRow(row) {
|
|
|
258
257
|
function findParentRow(row) {
|
|
259
258
|
return row.closest('[role="group"]')?.closest("li")?.querySelector(':scope > [role="treeitem"]') ?? null;
|
|
260
259
|
}
|
|
261
|
-
const _sfc_main$
|
|
260
|
+
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
262
261
|
...{ name: "TreeViewerNodeRow" },
|
|
263
262
|
__name: "TreeViewerNodeRow",
|
|
264
263
|
props: {
|
|
@@ -336,12 +335,12 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
336
335
|
createElementVNode("span", _hoisted_3, [
|
|
337
336
|
renderSlot(_ctx.$slots, "default")
|
|
338
337
|
])
|
|
339
|
-
], 16, _hoisted_1$
|
|
338
|
+
], 16, _hoisted_1$3);
|
|
340
339
|
};
|
|
341
340
|
}
|
|
342
341
|
});
|
|
343
|
-
const _hoisted_1$
|
|
344
|
-
const _sfc_main$
|
|
342
|
+
const _hoisted_1$2 = ["data-state"];
|
|
343
|
+
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
345
344
|
...{ name: "TreeViewerGroup", inheritAttrs: false },
|
|
346
345
|
__name: "TreeViewerGroup",
|
|
347
346
|
props: {
|
|
@@ -372,7 +371,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
372
371
|
role: "presentation",
|
|
373
372
|
"data-state": isExpanded.value ? "open" : "closed"
|
|
374
373
|
}, rest.value, { class: classes.value }), [
|
|
375
|
-
createVNode(_sfc_main$
|
|
374
|
+
createVNode(_sfc_main$5, {
|
|
376
375
|
level: unref(treeLevel).level,
|
|
377
376
|
"is-selected": false,
|
|
378
377
|
"is-expanded": isExpanded.value,
|
|
@@ -389,7 +388,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
389
388
|
}, 8, ["level", "is-expanded", "is-disabled"]),
|
|
390
389
|
createVNode(unref(Presence), { "is-present": isExpanded.value }, {
|
|
391
390
|
default: withCtx(() => [
|
|
392
|
-
createVNode(_sfc_main$
|
|
391
|
+
createVNode(_sfc_main$6, {
|
|
393
392
|
level: unref(treeLevel).level + 1
|
|
394
393
|
}, {
|
|
395
394
|
default: withCtx(() => [
|
|
@@ -400,11 +399,11 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
400
399
|
]),
|
|
401
400
|
_: 3
|
|
402
401
|
}, 8, ["is-present"])
|
|
403
|
-
], 16, _hoisted_1$
|
|
402
|
+
], 16, _hoisted_1$2);
|
|
404
403
|
};
|
|
405
404
|
}
|
|
406
405
|
});
|
|
407
|
-
const _sfc_main$
|
|
406
|
+
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
408
407
|
...{ name: "TreeViewerItem", inheritAttrs: false },
|
|
409
408
|
__name: "TreeViewerItem",
|
|
410
409
|
props: {
|
|
@@ -433,7 +432,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
433
432
|
ref: el,
|
|
434
433
|
role: "presentation"
|
|
435
434
|
}, rest.value, { class: classes.value }), [
|
|
436
|
-
createVNode(_sfc_main$
|
|
435
|
+
createVNode(_sfc_main$5, {
|
|
437
436
|
level: unref(treeLevel).level,
|
|
438
437
|
"is-selected": isSelected.value,
|
|
439
438
|
"has-children": false,
|
|
@@ -449,56 +448,6 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
449
448
|
};
|
|
450
449
|
}
|
|
451
450
|
});
|
|
452
|
-
const FormResetKey = Symbol("presentation.formReset");
|
|
453
|
-
function useNativeFormReset(element, reset, restore = () => {
|
|
454
|
-
}) {
|
|
455
|
-
const parent = inject(FormResetKey, null);
|
|
456
|
-
const revision = shallowRef(0);
|
|
457
|
-
const scope = {
|
|
458
|
-
form: () => {
|
|
459
|
-
return element.value?.form ?? null;
|
|
460
|
-
}
|
|
461
|
-
};
|
|
462
|
-
provide(FormResetKey, scope);
|
|
463
|
-
let document;
|
|
464
|
-
function onReset(event) {
|
|
465
|
-
const form = scope.form();
|
|
466
|
-
if (!form || event.target !== form) return;
|
|
467
|
-
const active = document?.activeElement;
|
|
468
|
-
const root = element.value?.parentElement;
|
|
469
|
-
const hadFocus = Boolean(root && active && root.contains(active));
|
|
470
|
-
const focusAttributes = ["type", "name", "role", "aria-label"];
|
|
471
|
-
const matchingControls = (container) => active ? [container, ...container.querySelectorAll(active.tagName)].filter(
|
|
472
|
-
(node) => node.tagName === active.tagName && focusAttributes.every((key) => node.getAttribute(key) === active.getAttribute(key))
|
|
473
|
-
) : [];
|
|
474
|
-
const ordinal = root && active ? matchingControls(root).indexOf(active) : -1;
|
|
475
|
-
queueMicrotask(() => {
|
|
476
|
-
if (event.defaultPrevented || !element.value || scope.form() !== form) return;
|
|
477
|
-
if (parent?.form() !== form) {
|
|
478
|
-
reset();
|
|
479
|
-
revision.value += 1;
|
|
480
|
-
}
|
|
481
|
-
void nextTick(() => {
|
|
482
|
-
if (!element.value || scope.form() !== form) return;
|
|
483
|
-
restore();
|
|
484
|
-
if (!active || active.isConnected || !hadFocus) return;
|
|
485
|
-
const currentRoot = element.value.parentElement;
|
|
486
|
-
const candidates = currentRoot ? matchingControls(currentRoot) : [];
|
|
487
|
-
const target = (active.id ? candidates.find((node) => node.id === active.id) : void 0) ?? candidates[ordinal];
|
|
488
|
-
const elementType = target?.ownerDocument.defaultView?.HTMLElement;
|
|
489
|
-
if (elementType && target instanceof elementType) {
|
|
490
|
-
target.focus({ preventScroll: true });
|
|
491
|
-
}
|
|
492
|
-
});
|
|
493
|
-
});
|
|
494
|
-
}
|
|
495
|
-
onMounted(() => {
|
|
496
|
-
document = element.value?.ownerDocument;
|
|
497
|
-
document?.addEventListener("reset", onReset, true);
|
|
498
|
-
});
|
|
499
|
-
onBeforeUnmount(() => document?.removeEventListener("reset", onReset, true));
|
|
500
|
-
return revision;
|
|
501
|
-
}
|
|
502
451
|
const CheckboxInputVariant = {
|
|
503
452
|
/** Refers to an opaque, filled surface. */
|
|
504
453
|
Solid: "solid",
|
|
@@ -636,7 +585,7 @@ const checkboxVariants = tv({
|
|
|
636
585
|
tone: "primary"
|
|
637
586
|
}
|
|
638
587
|
});
|
|
639
|
-
const _hoisted_1$
|
|
588
|
+
const _hoisted_1$1 = ["data-skeleton", "inert"];
|
|
640
589
|
const _hoisted_2 = ["id", "disabled", "required", "checked", "aria-checked", "aria-invalid", "aria-describedby", "aria-readonly"];
|
|
641
590
|
const ComponentName = "CheckboxInput";
|
|
642
591
|
const BoxSizeClass = {
|
|
@@ -705,7 +654,7 @@ const IndeterminateCheckedClass = {
|
|
|
705
654
|
warning: "text-white border-white/80"
|
|
706
655
|
}
|
|
707
656
|
};
|
|
708
|
-
const _sfc_main$
|
|
657
|
+
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
709
658
|
...{ name: ComponentName, inheritAttrs: false },
|
|
710
659
|
__name: "CheckboxInput",
|
|
711
660
|
props: {
|
|
@@ -835,7 +784,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
835
784
|
class: normalizeClass(iconClass.value)
|
|
836
785
|
}, null, 8, ["class"]))
|
|
837
786
|
], 2)
|
|
838
|
-
], 14, _hoisted_1$
|
|
787
|
+
], 14, _hoisted_1$1);
|
|
839
788
|
};
|
|
840
789
|
}
|
|
841
790
|
});
|
|
@@ -965,7 +914,7 @@ function clampDateTime(value, min, max) {
|
|
|
965
914
|
if (max && Temporal.PlainDateTime.compare(value, max) > 0) return max;
|
|
966
915
|
return value;
|
|
967
916
|
}
|
|
968
|
-
const _sfc_main$
|
|
917
|
+
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
969
918
|
...{ name: "LegendText", inheritAttrs: false },
|
|
970
919
|
__name: "LegendText",
|
|
971
920
|
setup(__props, { expose: __expose }) {
|
|
@@ -988,71 +937,6 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
988
937
|
};
|
|
989
938
|
}
|
|
990
939
|
});
|
|
991
|
-
const _hoisted_1$2 = ["for", "id", "data-skeleton"];
|
|
992
|
-
const SizeClass = {
|
|
993
|
-
xs: "text-xs",
|
|
994
|
-
sm: "text-sm",
|
|
995
|
-
md: "text-sm"
|
|
996
|
-
};
|
|
997
|
-
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
998
|
-
...{ name: "LabelText", inheritAttrs: false },
|
|
999
|
-
__name: "LabelText",
|
|
1000
|
-
props: {
|
|
1001
|
-
isRequired: { type: Boolean, default: void 0 },
|
|
1002
|
-
size: { default: Size.Md },
|
|
1003
|
-
htmlFor: {},
|
|
1004
|
-
for: {},
|
|
1005
|
-
id: {}
|
|
1006
|
-
},
|
|
1007
|
-
setup(__props, { expose: __expose }) {
|
|
1008
|
-
const props = __props;
|
|
1009
|
-
const attrs = useAttrs();
|
|
1010
|
-
const ctx = useFormControl();
|
|
1011
|
-
useFormControlChrome("label", () => props.id == null);
|
|
1012
|
-
const skeleton = useSkeletonState();
|
|
1013
|
-
const isRequired = computed(() => props.isRequired ?? ctx?.isRequired ?? false);
|
|
1014
|
-
const labelFor = computed(() => props.for ?? props.htmlFor ?? ctx?.id);
|
|
1015
|
-
const labelId = computed(() => props.id ?? ctx?.labelId);
|
|
1016
|
-
const OwnedAttributes = /* @__PURE__ */ new Set(["class"]);
|
|
1017
|
-
const passthroughAttrs = computed(
|
|
1018
|
-
() => Object.fromEntries(Object.entries(attrs).filter(([key]) => !OwnedAttributes.has(key)))
|
|
1019
|
-
);
|
|
1020
|
-
const rootClass = computed(
|
|
1021
|
-
() => cn(
|
|
1022
|
-
SizeClass[props.size] ?? SizeClass.md,
|
|
1023
|
-
"font-medium text-foreground",
|
|
1024
|
-
ctx?.isDisabled && "opacity-60",
|
|
1025
|
-
attrs.class
|
|
1026
|
-
)
|
|
1027
|
-
);
|
|
1028
|
-
const root = useTemplateRef("root");
|
|
1029
|
-
__expose({ el: root });
|
|
1030
|
-
return (_ctx, _cache) => {
|
|
1031
|
-
return openBlock(), createElementBlock("label", mergeProps({
|
|
1032
|
-
ref_key: "root",
|
|
1033
|
-
ref: root,
|
|
1034
|
-
for: labelFor.value,
|
|
1035
|
-
id: labelId.value,
|
|
1036
|
-
"data-skeleton": unref(skeleton).isSkeleton.value || void 0,
|
|
1037
|
-
class: rootClass.value
|
|
1038
|
-
}, passthroughAttrs.value), [
|
|
1039
|
-
createVNode(unref(SkeletonStateLine), {
|
|
1040
|
-
"is-skeleton": unref(skeleton).isSkeleton.value
|
|
1041
|
-
}, {
|
|
1042
|
-
default: withCtx(() => [
|
|
1043
|
-
renderSlot(_ctx.$slots, "default")
|
|
1044
|
-
]),
|
|
1045
|
-
_: 3
|
|
1046
|
-
}, 8, ["is-skeleton"]),
|
|
1047
|
-
isRequired.value ? (openBlock(), createElementBlock("span", {
|
|
1048
|
-
key: 0,
|
|
1049
|
-
class: normalizeClass(unref(cn)("ml-0.5 text-destructive-soft-foreground", unref(skeleton).isSkeleton.value && "invisible")),
|
|
1050
|
-
"aria-hidden": "true"
|
|
1051
|
-
}, "*", 2)) : createCommentVNode("", true)
|
|
1052
|
-
], 16, _hoisted_1$2);
|
|
1053
|
-
};
|
|
1054
|
-
}
|
|
1055
|
-
});
|
|
1056
940
|
const SwatchShape = {
|
|
1057
941
|
/** Refers to a rounded-square swatch. */
|
|
1058
942
|
Square: "square",
|
|
@@ -1103,8 +987,8 @@ const colorSwatchVariants = tv({
|
|
|
1103
987
|
isDisabled: false
|
|
1104
988
|
}
|
|
1105
989
|
});
|
|
1106
|
-
const _hoisted_1
|
|
1107
|
-
const _sfc_main
|
|
990
|
+
const _hoisted_1 = ["disabled"];
|
|
991
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
1108
992
|
...{ name: "ColorSwatchPreview", inheritAttrs: false },
|
|
1109
993
|
__name: "ColorSwatchPreview",
|
|
1110
994
|
props: {
|
|
@@ -1149,7 +1033,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
1149
1033
|
disabled: __props.isDisabled,
|
|
1150
1034
|
class: rootClass.value,
|
|
1151
1035
|
style: rootStyle.value
|
|
1152
|
-
}, passthroughAttrs.value), null, 16, _hoisted_1
|
|
1036
|
+
}, passthroughAttrs.value), null, 16, _hoisted_1)) : (openBlock(), createElementBlock("div", mergeProps({
|
|
1153
1037
|
key: 1,
|
|
1154
1038
|
ref_key: "root",
|
|
1155
1039
|
ref: root,
|
|
@@ -1159,95 +1043,51 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
1159
1043
|
};
|
|
1160
1044
|
}
|
|
1161
1045
|
});
|
|
1162
|
-
const _hoisted_1 = ["id", "data-skeleton"];
|
|
1163
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
1164
|
-
...{ name: "FieldHelperText", inheritAttrs: false },
|
|
1165
|
-
__name: "FieldHelperText",
|
|
1166
|
-
props: {
|
|
1167
|
-
id: {}
|
|
1168
|
-
},
|
|
1169
|
-
setup(__props, { expose: __expose }) {
|
|
1170
|
-
const props = __props;
|
|
1171
|
-
const attrs = useAttrs();
|
|
1172
|
-
const ctx = useFormControl();
|
|
1173
|
-
useFormControlChrome("helper", () => props.id == null);
|
|
1174
|
-
const helperId = computed(() => props.id ?? ctx?.helperId);
|
|
1175
|
-
const skeleton = useSkeletonState();
|
|
1176
|
-
const OwnedAttributes = /* @__PURE__ */ new Set(["class"]);
|
|
1177
|
-
const passthroughAttrs = computed(
|
|
1178
|
-
() => Object.fromEntries(Object.entries(attrs).filter(([key]) => !OwnedAttributes.has(key)))
|
|
1179
|
-
);
|
|
1180
|
-
const rootClass = computed(() => cn("text-sm text-muted-foreground", attrs.class));
|
|
1181
|
-
const root = useTemplateRef("root");
|
|
1182
|
-
__expose({ el: root });
|
|
1183
|
-
return (_ctx, _cache) => {
|
|
1184
|
-
return openBlock(), createElementBlock("p", mergeProps({
|
|
1185
|
-
ref_key: "root",
|
|
1186
|
-
ref: root,
|
|
1187
|
-
id: helperId.value,
|
|
1188
|
-
"data-skeleton": unref(skeleton).isSkeleton.value || void 0,
|
|
1189
|
-
class: rootClass.value
|
|
1190
|
-
}, passthroughAttrs.value), [
|
|
1191
|
-
createVNode(unref(SkeletonStateLine), {
|
|
1192
|
-
"is-skeleton": unref(skeleton).isSkeleton.value
|
|
1193
|
-
}, {
|
|
1194
|
-
default: withCtx(() => [
|
|
1195
|
-
renderSlot(_ctx.$slots, "default")
|
|
1196
|
-
]),
|
|
1197
|
-
_: 3
|
|
1198
|
-
}, 8, ["is-skeleton"])
|
|
1199
|
-
], 16, _hoisted_1);
|
|
1200
|
-
};
|
|
1201
|
-
}
|
|
1202
|
-
});
|
|
1203
1046
|
export {
|
|
1204
|
-
|
|
1205
|
-
|
|
1047
|
+
startOfMonth as A,
|
|
1048
|
+
isDateDisabled as B,
|
|
1206
1049
|
CheckboxInputVariant as C,
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
formatISOTime as Q,
|
|
1221
|
-
isInRange as R,
|
|
1050
|
+
formatISODate as D,
|
|
1051
|
+
parseISODate as E,
|
|
1052
|
+
normalizeMinuteStep as F,
|
|
1053
|
+
isTimeInBounds as G,
|
|
1054
|
+
clampTime as H,
|
|
1055
|
+
formatISODateTime as I,
|
|
1056
|
+
clampDate as J,
|
|
1057
|
+
parseISODateTime as K,
|
|
1058
|
+
clampDateTime as L,
|
|
1059
|
+
isDateTimeInBounds as M,
|
|
1060
|
+
formatISOTime as N,
|
|
1061
|
+
isInRange as O,
|
|
1062
|
+
daysInMonth as P,
|
|
1222
1063
|
SwatchShape as S,
|
|
1223
1064
|
TagVariant as T,
|
|
1224
|
-
|
|
1225
|
-
_sfc_main
|
|
1226
|
-
_sfc_main$1 as a,
|
|
1065
|
+
_sfc_main$2 as _,
|
|
1066
|
+
_sfc_main as a,
|
|
1227
1067
|
ColorSwatchPreviewSize as b,
|
|
1228
|
-
_sfc_main as c,
|
|
1229
|
-
_sfc_main$
|
|
1230
|
-
_sfc_main$
|
|
1231
|
-
_sfc_main$
|
|
1232
|
-
_sfc_main$
|
|
1233
|
-
_sfc_main$
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1068
|
+
_sfc_main$9 as c,
|
|
1069
|
+
_sfc_main$1 as d,
|
|
1070
|
+
_sfc_main$8 as e,
|
|
1071
|
+
_sfc_main$7 as f,
|
|
1072
|
+
_sfc_main$4 as g,
|
|
1073
|
+
_sfc_main$3 as h,
|
|
1074
|
+
colorSwatchVariants as i,
|
|
1075
|
+
useTreeLevel as j,
|
|
1076
|
+
formatZonedTime as k,
|
|
1077
|
+
today as l,
|
|
1078
|
+
minutesBetween as m,
|
|
1239
1079
|
nowZoned as n,
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1080
|
+
daysBetween as o,
|
|
1081
|
+
isWeekend as p,
|
|
1082
|
+
addDays as q,
|
|
1083
|
+
isToday as r,
|
|
1084
|
+
maxZoned as s,
|
|
1245
1085
|
tagVariants as t,
|
|
1246
1086
|
useTreeContext as u,
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1087
|
+
buildMonthGrid as v,
|
|
1088
|
+
sundayIndex as w,
|
|
1089
|
+
addMonths as x,
|
|
1090
|
+
isSameDay as y,
|
|
1251
1091
|
zonedAtHour as z
|
|
1252
1092
|
};
|
|
1253
|
-
//# sourceMappingURL=
|
|
1093
|
+
//# sourceMappingURL=ColorSwatchPreview.vue_vue_type_script_setup_true_lang-Btd7KUEw.js.map
|