@wow-two-beta/fe 0.0.32 → 0.0.33
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/{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-BrQFyOiU.js} +177 -223
- package/dist/chunks/KanbanCard.vue_vue_type_script_setup_true_lang-BrQFyOiU.js.map +1 -0
- package/dist/chunks/MasonryLayout.vue_vue_type_script_setup_true_lang-BmWwoZrv.js.map +1 -1
- 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-CoIaH_xx.js} +299 -108
- package/dist/chunks/TypedConfirmModal.vue_vue_type_script_setup_true_lang-CoIaH_xx.js.map +1 -0
- package/dist/chunks/{MentionInput.vue_vue_type_script_setup_true_lang-D8Ja7QjX.js → UseTypedConfirmation-CvY2T4Up.js} +331 -582
- package/dist/chunks/UseTypedConfirmation-CvY2T4Up.js.map +1 -0
- 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 +632 -627
- package/dist/index.js.map +1 -1
- package/dist/presentation/display/index.js +158 -157
- package/dist/presentation/display/index.js.map +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 +1 -0
- package/dist/presentation/forms/index.js +139 -137
- 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 +64 -0
- package/dist/presentation/overlays/typedConfirmModal/index.d.ts +1 -0
- package/package.json +1 -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
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import { defineComponent, useAttrs, useTemplateRef, computed, openBlock, createElementBlock, mergeProps, renderSlot, useSlots, getCurrentInstance, createBlock, unref, withCtx, createTextVNode, toDisplayString, createCommentVNode, createElementVNode, normalizeClass, createVNode } from "vue";
|
|
2
|
+
import { u as useLocaleDefaults } from "./UseLocaleDefaults-DnL2Ctbe.js";
|
|
3
|
+
import { X } from "lucide-vue-next";
|
|
4
|
+
import { c as cn } from "./Cn-C7De6POU.js";
|
|
5
|
+
import { tv } from "tailwind-variants";
|
|
6
|
+
import { _ as _sfc_main$2 } from "./Icon.vue_vue_type_script_setup_true_lang-Ca4wsJw9.js";
|
|
7
|
+
const alertSimpleVariants = tv({
|
|
8
|
+
base: "rounded-md border px-4 py-3 text-sm",
|
|
9
|
+
variants: {
|
|
10
|
+
severity: {
|
|
11
|
+
info: "border-info-soft bg-info-soft text-info-soft-foreground",
|
|
12
|
+
success: "border-success-soft bg-success-soft text-success-soft-foreground",
|
|
13
|
+
warning: "border-warning-soft bg-warning-soft text-warning-soft-foreground",
|
|
14
|
+
danger: "border-destructive-soft bg-destructive-soft text-destructive-soft-foreground",
|
|
15
|
+
neutral: "border-border bg-muted text-foreground"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
defaultVariants: {
|
|
19
|
+
severity: "info"
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
23
|
+
...{ name: "AlertSimple", inheritAttrs: false },
|
|
24
|
+
__name: "AlertSimple",
|
|
25
|
+
props: {
|
|
26
|
+
severity: {}
|
|
27
|
+
},
|
|
28
|
+
setup(__props, { expose: __expose }) {
|
|
29
|
+
const props = __props;
|
|
30
|
+
const attrs = useAttrs();
|
|
31
|
+
const el = useTemplateRef("el");
|
|
32
|
+
const classes = computed(
|
|
33
|
+
() => cn(alertSimpleVariants({ severity: props.severity }), attrs.class)
|
|
34
|
+
);
|
|
35
|
+
const rest = computed(() => {
|
|
36
|
+
const { class: _class, ...others } = attrs;
|
|
37
|
+
return others;
|
|
38
|
+
});
|
|
39
|
+
__expose({ el });
|
|
40
|
+
return (_ctx, _cache) => {
|
|
41
|
+
return openBlock(), createElementBlock("div", mergeProps({
|
|
42
|
+
ref_key: "el",
|
|
43
|
+
ref: el,
|
|
44
|
+
role: "status"
|
|
45
|
+
}, rest.value, { class: classes.value }), [
|
|
46
|
+
renderSlot(_ctx.$slots, "default")
|
|
47
|
+
], 16);
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
const _hoisted_1 = {
|
|
52
|
+
key: 0,
|
|
53
|
+
class: "mt-0.5 shrink-0"
|
|
54
|
+
};
|
|
55
|
+
const _hoisted_2 = { class: "min-w-0 flex-1" };
|
|
56
|
+
const _hoisted_3 = {
|
|
57
|
+
key: 0,
|
|
58
|
+
class: "font-medium"
|
|
59
|
+
};
|
|
60
|
+
const _hoisted_4 = {
|
|
61
|
+
key: 2,
|
|
62
|
+
class: "mt-2 flex flex-wrap items-center gap-2"
|
|
63
|
+
};
|
|
64
|
+
const _hoisted_5 = ["aria-label"];
|
|
65
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
66
|
+
...{ name: "Alert", inheritAttrs: false },
|
|
67
|
+
__name: "Alert",
|
|
68
|
+
props: {
|
|
69
|
+
severity: {},
|
|
70
|
+
icon: {},
|
|
71
|
+
title: {},
|
|
72
|
+
description: {},
|
|
73
|
+
actions: {},
|
|
74
|
+
closeLabel: {}
|
|
75
|
+
},
|
|
76
|
+
emits: ["close"],
|
|
77
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
78
|
+
const CloseIcon = X;
|
|
79
|
+
const componentProps = __props;
|
|
80
|
+
const props = useLocaleDefaults(componentProps, "Alert", { closeLabel: "Dismiss" });
|
|
81
|
+
const emit = __emit;
|
|
82
|
+
const attrs = useAttrs();
|
|
83
|
+
const slots = useSlots();
|
|
84
|
+
const instance = getCurrentInstance();
|
|
85
|
+
const inner = useTemplateRef("inner");
|
|
86
|
+
const hasClose = () => Boolean(instance?.vnode.props?.onClose);
|
|
87
|
+
const hasIcon = computed(() => Boolean(props.icon) || Boolean(slots.icon));
|
|
88
|
+
const hasTitle = computed(() => Boolean(props.title) || Boolean(slots.title));
|
|
89
|
+
const hasDescription = computed(() => Boolean(props.description) || Boolean(slots.description));
|
|
90
|
+
const hasActions = computed(() => Boolean(props.actions) || Boolean(slots.actions));
|
|
91
|
+
const classes = computed(() => cn("flex items-start gap-3", attrs.class));
|
|
92
|
+
const descriptionClasses = computed(() => cn("text-sm", hasTitle.value && "mt-0.5 opacity-90"));
|
|
93
|
+
const rest = computed(() => {
|
|
94
|
+
const { class: _class, ...others } = attrs;
|
|
95
|
+
return others;
|
|
96
|
+
});
|
|
97
|
+
const el = computed(() => inner.value?.el ?? null);
|
|
98
|
+
__expose({ el });
|
|
99
|
+
return (_ctx, _cache) => {
|
|
100
|
+
return openBlock(), createBlock(_sfc_main$1, mergeProps({
|
|
101
|
+
ref_key: "inner",
|
|
102
|
+
ref: inner,
|
|
103
|
+
severity: unref(props).severity
|
|
104
|
+
}, rest.value, { class: classes.value }), {
|
|
105
|
+
default: withCtx(() => [
|
|
106
|
+
hasIcon.value ? (openBlock(), createElementBlock("span", _hoisted_1, [
|
|
107
|
+
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
108
|
+
createTextVNode(toDisplayString(unref(props).icon), 1)
|
|
109
|
+
])
|
|
110
|
+
])) : createCommentVNode("", true),
|
|
111
|
+
createElementVNode("div", _hoisted_2, [
|
|
112
|
+
hasTitle.value ? (openBlock(), createElementBlock("div", _hoisted_3, [
|
|
113
|
+
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
114
|
+
createTextVNode(toDisplayString(unref(props).title), 1)
|
|
115
|
+
])
|
|
116
|
+
])) : createCommentVNode("", true),
|
|
117
|
+
hasDescription.value ? (openBlock(), createElementBlock("div", {
|
|
118
|
+
key: 1,
|
|
119
|
+
class: normalizeClass(descriptionClasses.value)
|
|
120
|
+
}, [
|
|
121
|
+
renderSlot(_ctx.$slots, "description", {}, () => [
|
|
122
|
+
createTextVNode(toDisplayString(unref(props).description), 1)
|
|
123
|
+
])
|
|
124
|
+
], 2)) : createCommentVNode("", true),
|
|
125
|
+
hasActions.value ? (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
126
|
+
renderSlot(_ctx.$slots, "actions", {}, () => [
|
|
127
|
+
createTextVNode(toDisplayString(unref(props).actions), 1)
|
|
128
|
+
])
|
|
129
|
+
])) : createCommentVNode("", true),
|
|
130
|
+
renderSlot(_ctx.$slots, "default")
|
|
131
|
+
]),
|
|
132
|
+
hasClose() ? (openBlock(), createElementBlock("button", {
|
|
133
|
+
key: 1,
|
|
134
|
+
type: "button",
|
|
135
|
+
"aria-label": unref(props).closeLabel,
|
|
136
|
+
class: "-mr-1 grid h-6 w-6 shrink-0 place-items-center rounded text-current opacity-60 transition-opacity hover:opacity-100 focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-current",
|
|
137
|
+
onClick: _cache[0] || (_cache[0] = ($event) => emit("close"))
|
|
138
|
+
}, [
|
|
139
|
+
createVNode(unref(_sfc_main$2), {
|
|
140
|
+
icon: unref(CloseIcon),
|
|
141
|
+
size: 14
|
|
142
|
+
}, null, 8, ["icon"])
|
|
143
|
+
], 8, _hoisted_5)) : createCommentVNode("", true)
|
|
144
|
+
]),
|
|
145
|
+
_: 3
|
|
146
|
+
}, 16, ["severity", "class"]);
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
});
|
|
150
|
+
export {
|
|
151
|
+
_sfc_main as _,
|
|
152
|
+
_sfc_main$1 as a,
|
|
153
|
+
alertSimpleVariants as b
|
|
154
|
+
};
|
|
155
|
+
//# sourceMappingURL=Alert.vue_vue_type_script_setup_true_lang-CoLxB2dM.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Alert.vue_vue_type_script_setup_true_lang-CoLxB2dM.js","sources":["../../src/presentation/feedback/alertSimple/AlertSimple.variants.ts","../../src/presentation/feedback/alertSimple/AlertSimple.vue","../../src/presentation/feedback/alert/Alert.vue"],"sourcesContent":["import { Severity, tv, type VariantProps } from '../../../foundation/styles';\n\nexport const alertSimpleVariants = tv({\n base: 'rounded-md border px-4 py-3 text-sm',\n variants: {\n severity: {\n info: 'border-info-soft bg-info-soft text-info-soft-foreground',\n success: 'border-success-soft bg-success-soft text-success-soft-foreground',\n warning: 'border-warning-soft bg-warning-soft text-warning-soft-foreground',\n danger: 'border-destructive-soft bg-destructive-soft text-destructive-soft-foreground',\n neutral: 'border-border bg-muted text-foreground',\n },\n },\n defaultVariants: {\n severity: 'info',\n },\n});\n\nexport type AlertSimpleVariants = VariantProps<typeof alertSimpleVariants>;\n\n/* Compile-time lock: Severity values ≡ tv severity keys (drift = type error). */\ntype AssertExact<A, B> = [A] extends [B] ? ([B] extends [A] ? true : never) : never;\nconst _assertSeverity: AssertExact<Severity, NonNullable<VariantProps<typeof alertSimpleVariants>['severity']>> = true;\nvoid _assertSeverity;\n","<script lang=\"ts\">\nimport type { Severity } from '../../../foundation/styles';\n\nexport interface AlertSimpleProps {\n /** The semantic severity palette. */\n readonly severity?: Severity;\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, useAttrs, useTemplateRef } from 'vue';\nimport { cn } from '../../../foundation/styles';\nimport { alertSimpleVariants } from './AlertSimple.variants';\n\n/**\n * Renders a severity-tinted alert container around free-form children.\n * No internal slots; consumer composes title/description/actions inline.\n *\n * For the structured Icon + Title + Description + Actions composition use\n * the `Alert` molecule (L4).\n *\n * `role=\"status\"` is the live-region contract; bound before `v-bind=\"rest\"`\n * so a caller-supplied `role` (e.g. `\"alert\"`) still wins.\n */\ndefineOptions({ name: 'AlertSimple', inheritAttrs: false });\n\nconst props = defineProps<AlertSimpleProps>();\n\ndefineSlots<{\n /** The alert content. */\n default?(): unknown;\n}>();\n\nconst attrs = useAttrs();\nconst el = useTemplateRef<HTMLDivElement>('el');\n\nconst classes = computed(() =>\n cn(alertSimpleVariants({ severity: props.severity }), attrs.class as string | undefined),\n);\n\n/** Everything but `class`, which is re-applied through `cn` above. */\nconst rest = computed(() => {\n const { class: _class, ...others } = attrs;\n return others;\n});\n\ndefineExpose({ el });\n</script>\n\n<template>\n <div ref=\"el\" role=\"status\" v-bind=\"rest\" :class=\"classes\"><slot /></div>\n</template>\n","<script lang=\"ts\">\nimport type { Severity } from '../../../foundation/styles';\n\nexport interface AlertProps {\n /** The semantic severity palette. */\n readonly severity?: Severity;\n /** The optional leading icon. Rich content → the `icon` slot. */\n readonly icon?: string;\n /** The bold heading line. Rich content → the `title` slot. */\n readonly title?: string;\n /** The body text below the title. Rich content → the `description` slot. */\n readonly description?: string;\n /** The right-side action slot (typically Button(s)). Rich content → the `actions` slot. */\n readonly actions?: string;\n /** The accessible label for the close button. Default `\"Dismiss\"`. */\n readonly closeLabel?: string;\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { useLocaleDefaults } from '../../../foundation/i18n';\nimport { computed, getCurrentInstance, useAttrs, useSlots, useTemplateRef } from 'vue';\nimport { X } from 'lucide-vue-next';\nimport { cn } from '../../../foundation/styles';\nimport { Icon } from '../../../foundation/icons';\nimport AlertSimple from '../alertSimple/AlertSimple.vue';\n\nconst CloseIcon = X;\n\n/**\n * Renders an icon, title, description, and actions laid over the `AlertSimple` atom.\n * Pair: `AlertSimple` (atom, free-form children) + `Alert` (this molecule).\n *\n * Each of React's four `ReactNode` props keeps its string form and gains a\n * same-named slot for rich content; the slot wins when both are supplied.\n */\ndefineOptions({ name: 'Alert', inheritAttrs: false });\n\nconst componentProps = withDefaults(defineProps<AlertProps>(), {});\nconst props = useLocaleDefaults(componentProps, 'Alert', { closeLabel: 'Dismiss' });\n\n/** Replaces React's `onClose`; omitting `@close` omits the close button. */\nconst emit = defineEmits<{\n /** Fires when the close button is activated. */\n close: [];\n}>();\n\ndefineSlots<{\n /** The extra content below the description. */\n default?(): unknown;\n /** The leading icon. Falls back to the `icon` prop. */\n icon?(): unknown;\n /** The heading line. Falls back to the `title` prop. */\n title?(): unknown;\n /** The body text below the title. Falls back to the `description` prop. */\n description?(): unknown;\n /** The action row. Falls back to the `actions` prop. */\n actions?(): unknown;\n}>();\n\nconst attrs = useAttrs();\nconst slots = useSlots();\nconst instance = getCurrentInstance();\nconst inner = useTemplateRef<InstanceType<typeof AlertSimple>>('inner');\n\n/**\n * Mirrors React's `onClose && <button/>` guard — the close button renders only\n * when the consumer bound `@close`. Read through a call, not a cached computed:\n * `instance.vnode` is replaced on every re-render.\n */\nconst hasClose = () => Boolean(instance?.vnode.props?.onClose);\n\nconst hasIcon = computed(() => Boolean(props.icon) || Boolean(slots.icon));\nconst hasTitle = computed(() => Boolean(props.title) || Boolean(slots.title));\nconst hasDescription = computed(() => Boolean(props.description) || Boolean(slots.description));\nconst hasActions = computed(() => Boolean(props.actions) || Boolean(slots.actions));\n\nconst classes = computed(() => cn('flex items-start gap-3', attrs.class as string | undefined));\n\nconst descriptionClasses = computed(() => cn('text-sm', hasTitle.value && 'mt-0.5 opacity-90'));\n\n/** Everything but `class`, which is re-applied through `cn` above. */\nconst rest = computed(() => {\n const { class: _class, ...others } = attrs;\n return others;\n});\n\n/** Re-exposes the underlying `AlertSimple` root element, matching React's forwarded ref. */\nconst el = computed(() => inner.value?.el ?? null);\n\ndefineExpose({ el });\n</script>\n\n<template>\n <AlertSimple ref=\"inner\" :severity=\"props.severity\" v-bind=\"rest\" :class=\"classes\">\n <span v-if=\"hasIcon\" class=\"mt-0.5 shrink-0\">\n <slot name=\"icon\">{{ props.icon }}</slot>\n </span>\n <div class=\"min-w-0 flex-1\">\n <div v-if=\"hasTitle\" class=\"font-medium\">\n <slot name=\"title\">{{ props.title }}</slot>\n </div>\n <div v-if=\"hasDescription\" :class=\"descriptionClasses\">\n <slot name=\"description\">{{ props.description }}</slot>\n </div>\n <div v-if=\"hasActions\" class=\"mt-2 flex flex-wrap items-center gap-2\">\n <slot name=\"actions\">{{ props.actions }}</slot>\n </div>\n <slot />\n </div>\n <button\n v-if=\"hasClose()\"\n type=\"button\"\n :aria-label=\"props.closeLabel\"\n class=\"-mr-1 grid h-6 w-6 shrink-0 place-items-center rounded text-current opacity-60 transition-opacity hover:opacity-100 focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-current\"\n @click=\"emit('close')\"\n >\n <Icon :icon=\"CloseIcon\" :size=\"14\" />\n </button>\n </AlertSimple>\n</template>\n"],"names":["_openBlock","_createElementBlock","_mergeProps","_renderSlot","_createBlock","AlertSimple","_unref","_createTextVNode","_toDisplayString","_createElementVNode","_createVNode","Icon"],"mappings":"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"}
|
|
@@ -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
|