@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,447 @@
|
|
|
1
|
+
import { tv } from "tailwind-variants";
|
|
2
|
+
import { defineComponent, useAttrs, computed, useTemplateRef, openBlock, createElementBlock, mergeProps, unref, useSlots, createBlock, withCtx, createElementVNode, renderSlot, createTextVNode, toDisplayString, createCommentVNode, createSlots, shallowRef, watch, normalizeClass, createVNode, Fragment, renderList } from "vue";
|
|
3
|
+
import { c as cn } from "./Cn-C7De6POU.js";
|
|
4
|
+
import { u as useLocaleDefaults } from "./UseLocaleDefaults-DnL2Ctbe.js";
|
|
5
|
+
import { u as useControlled } from "./UseControlled-BQneb7BW.js";
|
|
6
|
+
import { u as useNativeFormReset, b as _sfc_main$4, a as _sfc_main$6, _ as _sfc_main$8 } from "./FieldHelperText.vue_vue_type_script_setup_true_lang-2IDI_JgQ.js";
|
|
7
|
+
import { _ as _sfc_main$5 } from "./FieldErrorCallout.vue_vue_type_script_setup_true_lang-BRcaaXCd.js";
|
|
8
|
+
import { u as useSkeletonState, p as provideSkeletonState } from "./SkeletonStateContext-tVYMa6xt.js";
|
|
9
|
+
import { u as useFormControl } from "./FormControlContext-B71MFW26.js";
|
|
10
|
+
import { _ as _sfc_main$3 } from "./FormControlProvider.vue_vue_type_script_setup_true_lang-D_yikT2o.js";
|
|
11
|
+
import { _ as _sfc_main$7 } from "./Announce.vue_vue_type_script_setup_true_lang-DbqODft3.js";
|
|
12
|
+
const inputBaseVariants = tv({
|
|
13
|
+
base: "flex w-full rounded-md bg-field text-foreground placeholder:text-subtle-foreground transition-colors focus-visible:outline-hidden focus-visible:ring-ring disabled:cursor-not-allowed disabled:bg-muted disabled:opacity-60 readonly:cursor-default readonly:bg-muted readonly:text-muted-foreground readonly:focus-visible:ring-1",
|
|
14
|
+
variants: {
|
|
15
|
+
size: {
|
|
16
|
+
xs: "h-7 px-2 text-xs",
|
|
17
|
+
sm: "h-8 px-2.5 text-sm",
|
|
18
|
+
md: "h-10 px-3 text-sm",
|
|
19
|
+
lg: "h-12 px-4 text-base"
|
|
20
|
+
},
|
|
21
|
+
state: {
|
|
22
|
+
default: "border-input hover:border-border-strong readonly:hover:border-input readonly:focus-visible:ring-muted-foreground",
|
|
23
|
+
invalid: "border-destructive-soft-foreground focus-visible:ring-destructive-soft-foreground"
|
|
24
|
+
},
|
|
25
|
+
/* Border weight — scale like `size`/`radius`; default `sm` (1px). */
|
|
26
|
+
border: {
|
|
27
|
+
none: "border-0",
|
|
28
|
+
xs: "border-[0.5px]",
|
|
29
|
+
sm: "border",
|
|
30
|
+
md: "border-2",
|
|
31
|
+
lg: "border-4",
|
|
32
|
+
xl: "border-8"
|
|
33
|
+
},
|
|
34
|
+
/* Focus-ring weight — default `md` (2px); `sm` for a hairline focus. */
|
|
35
|
+
ring: {
|
|
36
|
+
none: "focus-visible:ring-0",
|
|
37
|
+
sm: "focus-visible:ring-1",
|
|
38
|
+
md: "focus-visible:ring-2",
|
|
39
|
+
lg: "focus-visible:ring-4"
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
/* A caller that turned the focus ring off keeps it off while the control is read-only. */
|
|
43
|
+
compoundVariants: [{ ring: "none", class: "readonly:focus-visible:ring-0" }],
|
|
44
|
+
defaultVariants: {
|
|
45
|
+
size: "md",
|
|
46
|
+
state: "default",
|
|
47
|
+
border: "sm",
|
|
48
|
+
ring: "md"
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
const ReadOnlyLook = "readonly:cursor-default readonly:bg-muted readonly:text-muted-foreground readonly:hover:bg-muted readonly:focus-visible:ring-1 readonly:focus-visible:ring-muted-foreground";
|
|
52
|
+
const InputSize = {
|
|
53
|
+
/** Refers to the extra-small step (h-7). */
|
|
54
|
+
Xs: "xs",
|
|
55
|
+
/** Refers to the small step (h-8). */
|
|
56
|
+
Sm: "sm",
|
|
57
|
+
/** Refers to the medium (default) step (h-10). */
|
|
58
|
+
Md: "md",
|
|
59
|
+
/** Refers to the large step (h-12). */
|
|
60
|
+
Lg: "lg"
|
|
61
|
+
};
|
|
62
|
+
const InputState = {
|
|
63
|
+
/** Refers to the default (valid / untouched) surface. */
|
|
64
|
+
Default: "default",
|
|
65
|
+
/** Refers to the invalid surface (destructive border + ring). */
|
|
66
|
+
Invalid: "invalid"
|
|
67
|
+
};
|
|
68
|
+
const InputBorder = {
|
|
69
|
+
/** Refers to no border. */
|
|
70
|
+
None: "none",
|
|
71
|
+
/** Refers to a 0.5px hairline border. */
|
|
72
|
+
Xs: "xs",
|
|
73
|
+
/** Refers to a 1px border (default). */
|
|
74
|
+
Sm: "sm",
|
|
75
|
+
/** Refers to a 2px border. */
|
|
76
|
+
Md: "md",
|
|
77
|
+
/** Refers to a 4px border. */
|
|
78
|
+
Lg: "lg",
|
|
79
|
+
/** Refers to an 8px border. */
|
|
80
|
+
Xl: "xl"
|
|
81
|
+
};
|
|
82
|
+
const InputRing = {
|
|
83
|
+
/** Refers to no focus ring. */
|
|
84
|
+
None: "none",
|
|
85
|
+
/** Refers to a 1px focus ring. */
|
|
86
|
+
Sm: "sm",
|
|
87
|
+
/** Refers to a 2px focus ring (default). */
|
|
88
|
+
Md: "md",
|
|
89
|
+
/** Refers to a 4px focus ring. */
|
|
90
|
+
Lg: "lg"
|
|
91
|
+
};
|
|
92
|
+
const _hoisted_1$1 = ["id", "value", "disabled", "required", "readonly", "aria-invalid", "aria-describedby", "data-skeleton", "inert"];
|
|
93
|
+
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
94
|
+
...{ name: "TextInput", inheritAttrs: false },
|
|
95
|
+
__name: "TextInput",
|
|
96
|
+
props: {
|
|
97
|
+
size: {},
|
|
98
|
+
state: {},
|
|
99
|
+
border: {},
|
|
100
|
+
ring: {},
|
|
101
|
+
modelValue: {},
|
|
102
|
+
defaultValue: {},
|
|
103
|
+
id: {},
|
|
104
|
+
isDisabled: { type: Boolean, default: void 0 },
|
|
105
|
+
disabled: { type: Boolean, default: void 0 },
|
|
106
|
+
isRequired: { type: Boolean, default: void 0 },
|
|
107
|
+
required: { type: Boolean, default: void 0 },
|
|
108
|
+
isReadOnly: { type: Boolean, default: void 0 },
|
|
109
|
+
readOnly: { type: Boolean, default: void 0 },
|
|
110
|
+
readonly: { type: Boolean, default: void 0 },
|
|
111
|
+
isSkeleton: { type: Boolean, default: void 0 }
|
|
112
|
+
},
|
|
113
|
+
emits: ["update:modelValue"],
|
|
114
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
115
|
+
const props = __props;
|
|
116
|
+
const emit = __emit;
|
|
117
|
+
const attrs = useAttrs();
|
|
118
|
+
const ctx = useFormControl();
|
|
119
|
+
const controlled = useControlled({
|
|
120
|
+
controlled: () => props.modelValue,
|
|
121
|
+
default: () => props.defaultValue ?? "",
|
|
122
|
+
onChange: (next) => {
|
|
123
|
+
emit("update:modelValue", String(next));
|
|
124
|
+
}
|
|
125
|
+
});
|
|
126
|
+
const currentValue = controlled.value;
|
|
127
|
+
function onInput(event) {
|
|
128
|
+
if (event.isComposing) return;
|
|
129
|
+
controlled.setValue(event.target.value);
|
|
130
|
+
}
|
|
131
|
+
const finalState = computed(() => props.state ?? (ctx?.isInvalid ? InputState.Invalid : InputState.Default));
|
|
132
|
+
const inputId = computed(() => props.id ?? ctx?.id);
|
|
133
|
+
const finalDisabled = computed(() => props.isDisabled ?? props.disabled ?? ctx?.isDisabled);
|
|
134
|
+
const finalRequired = computed(() => props.isRequired ?? props.required ?? ctx?.isRequired);
|
|
135
|
+
const finalReadOnly = computed(() => props.isReadOnly ?? props.readonly ?? props.readOnly ?? ctx?.isReadOnly);
|
|
136
|
+
const isInvalid = computed(() => ctx?.isInvalid || void 0);
|
|
137
|
+
const describedBy = computed(() => ctx?.describedBy);
|
|
138
|
+
const OwnedAttributes = /* @__PURE__ */ new Set(["class", "value"]);
|
|
139
|
+
const passthroughAttrs = computed(
|
|
140
|
+
() => Object.fromEntries(Object.entries(attrs).filter(([key]) => !OwnedAttributes.has(key)))
|
|
141
|
+
);
|
|
142
|
+
const skeleton = useSkeletonState(() => props.isSkeleton);
|
|
143
|
+
const rootClass = computed(
|
|
144
|
+
() => cn(
|
|
145
|
+
inputBaseVariants({
|
|
146
|
+
size: props.size,
|
|
147
|
+
state: finalState.value,
|
|
148
|
+
border: props.border,
|
|
149
|
+
ring: props.ring
|
|
150
|
+
}),
|
|
151
|
+
attrs.class,
|
|
152
|
+
skeleton.boxClass.value
|
|
153
|
+
)
|
|
154
|
+
);
|
|
155
|
+
const root = useTemplateRef("root");
|
|
156
|
+
useNativeFormReset(root, controlled.reset, () => {
|
|
157
|
+
if (root.value) root.value.value = String(currentValue.value ?? "");
|
|
158
|
+
});
|
|
159
|
+
__expose({ el: root });
|
|
160
|
+
return (_ctx, _cache) => {
|
|
161
|
+
return openBlock(), createElementBlock("input", mergeProps({
|
|
162
|
+
ref_key: "root",
|
|
163
|
+
ref: root,
|
|
164
|
+
type: "text",
|
|
165
|
+
id: inputId.value,
|
|
166
|
+
value: unref(currentValue),
|
|
167
|
+
disabled: finalDisabled.value,
|
|
168
|
+
required: finalRequired.value,
|
|
169
|
+
readonly: finalReadOnly.value,
|
|
170
|
+
"aria-invalid": isInvalid.value,
|
|
171
|
+
"aria-describedby": describedBy.value,
|
|
172
|
+
"data-skeleton": unref(skeleton).isSkeleton.value || void 0,
|
|
173
|
+
inert: unref(skeleton).isSkeleton.value || void 0,
|
|
174
|
+
class: rootClass.value
|
|
175
|
+
}, passthroughAttrs.value, {
|
|
176
|
+
onInput,
|
|
177
|
+
onCompositionend: onInput
|
|
178
|
+
}), null, 16, _hoisted_1$1);
|
|
179
|
+
};
|
|
180
|
+
}
|
|
181
|
+
});
|
|
182
|
+
const _hoisted_1 = ["data-skeleton", "aria-busy"];
|
|
183
|
+
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
184
|
+
...{ name: "Field", inheritAttrs: false },
|
|
185
|
+
__name: "Field",
|
|
186
|
+
props: {
|
|
187
|
+
label: {},
|
|
188
|
+
helper: {},
|
|
189
|
+
error: {},
|
|
190
|
+
isRequired: { type: Boolean, default: void 0 },
|
|
191
|
+
isDisabled: { type: Boolean, default: void 0 },
|
|
192
|
+
isReadOnly: { type: Boolean, default: void 0 },
|
|
193
|
+
isSkeleton: { type: Boolean, default: void 0 }
|
|
194
|
+
},
|
|
195
|
+
setup(__props, { expose: __expose }) {
|
|
196
|
+
const props = __props;
|
|
197
|
+
const skeleton = useSkeletonState(() => props.isSkeleton);
|
|
198
|
+
provideSkeletonState(skeleton);
|
|
199
|
+
const attrs = useAttrs();
|
|
200
|
+
const slots = useSlots();
|
|
201
|
+
const parent = useFormControl();
|
|
202
|
+
const hasLabel = computed(() => Boolean(props.label) || Boolean(slots.label));
|
|
203
|
+
const hasHelper = computed(() => Boolean(props.helper) || Boolean(slots.helper));
|
|
204
|
+
const hasOwnError = computed(() => Boolean(props.error) || Boolean(slots.error));
|
|
205
|
+
const showError = computed(
|
|
206
|
+
() => hasOwnError.value || (parent?.errors?.length ?? 0) > 0 && (parent?.isInvalid ?? false)
|
|
207
|
+
);
|
|
208
|
+
const parentId = computed(() => parent?.id);
|
|
209
|
+
const parentErrors = computed(() => parent?.errors);
|
|
210
|
+
const isInvalid = computed(() => hasOwnError.value || (parent?.isInvalid ?? false));
|
|
211
|
+
const isRequired = computed(() => props.isRequired ?? parent?.isRequired);
|
|
212
|
+
const isDisabled = computed(() => props.isDisabled ?? parent?.isDisabled);
|
|
213
|
+
const isReadOnly = computed(() => props.isReadOnly ?? parent?.isReadOnly);
|
|
214
|
+
const OwnedAttributes = /* @__PURE__ */ new Set(["class"]);
|
|
215
|
+
const passthroughAttrs = computed(
|
|
216
|
+
() => Object.fromEntries(Object.entries(attrs).filter(([key]) => !OwnedAttributes.has(key)))
|
|
217
|
+
);
|
|
218
|
+
const rootClass = computed(() => cn("flex flex-col gap-1.5", attrs.class));
|
|
219
|
+
const root = useTemplateRef("root");
|
|
220
|
+
__expose({ el: root });
|
|
221
|
+
return (_ctx, _cache) => {
|
|
222
|
+
return openBlock(), createBlock(unref(_sfc_main$3), {
|
|
223
|
+
id: parentId.value,
|
|
224
|
+
errors: parentErrors.value,
|
|
225
|
+
"is-invalid": isInvalid.value,
|
|
226
|
+
"is-required": isRequired.value,
|
|
227
|
+
"is-disabled": isDisabled.value,
|
|
228
|
+
"is-read-only": isReadOnly.value
|
|
229
|
+
}, {
|
|
230
|
+
default: withCtx(() => [
|
|
231
|
+
createElementVNode("div", mergeProps({
|
|
232
|
+
ref_key: "root",
|
|
233
|
+
ref: root,
|
|
234
|
+
"data-skeleton": unref(skeleton).isSkeleton.value || void 0,
|
|
235
|
+
"aria-busy": props.isSkeleton || void 0,
|
|
236
|
+
class: rootClass.value
|
|
237
|
+
}, passthroughAttrs.value), [
|
|
238
|
+
hasLabel.value ? (openBlock(), createBlock(_sfc_main$4, { key: 0 }, {
|
|
239
|
+
default: withCtx(() => [
|
|
240
|
+
renderSlot(_ctx.$slots, "label", {}, () => [
|
|
241
|
+
createTextVNode(toDisplayString(__props.label), 1)
|
|
242
|
+
])
|
|
243
|
+
]),
|
|
244
|
+
_: 3
|
|
245
|
+
})) : createCommentVNode("", true),
|
|
246
|
+
renderSlot(_ctx.$slots, "default"),
|
|
247
|
+
showError.value ? (openBlock(), createBlock(_sfc_main$5, {
|
|
248
|
+
key: 1,
|
|
249
|
+
message: hasOwnError.value ? __props.error : void 0
|
|
250
|
+
}, createSlots({ _: 2 }, [
|
|
251
|
+
hasOwnError.value && _ctx.$slots.error ? {
|
|
252
|
+
name: "default",
|
|
253
|
+
fn: withCtx(() => [
|
|
254
|
+
renderSlot(_ctx.$slots, "error")
|
|
255
|
+
]),
|
|
256
|
+
key: "0"
|
|
257
|
+
} : void 0
|
|
258
|
+
]), 1032, ["message"])) : hasHelper.value ? (openBlock(), createBlock(_sfc_main$6, { key: 2 }, {
|
|
259
|
+
default: withCtx(() => [
|
|
260
|
+
renderSlot(_ctx.$slots, "helper", {}, () => [
|
|
261
|
+
createTextVNode(toDisplayString(__props.helper), 1)
|
|
262
|
+
])
|
|
263
|
+
]),
|
|
264
|
+
_: 3
|
|
265
|
+
})) : createCommentVNode("", true)
|
|
266
|
+
], 16, _hoisted_1)
|
|
267
|
+
]),
|
|
268
|
+
_: 3
|
|
269
|
+
}, 8, ["id", "errors", "is-invalid", "is-required", "is-disabled", "is-read-only"]);
|
|
270
|
+
};
|
|
271
|
+
}
|
|
272
|
+
});
|
|
273
|
+
const ListboxPickerItemState = {
|
|
274
|
+
/** Refers to the resting item. */
|
|
275
|
+
Default: "default",
|
|
276
|
+
/** Refers to the active (roving-focused) item. */
|
|
277
|
+
Active: "active",
|
|
278
|
+
/** Refers to a selected item. */
|
|
279
|
+
Selected: "selected",
|
|
280
|
+
/** Refers to a disabled item. */
|
|
281
|
+
Disabled: "disabled"
|
|
282
|
+
};
|
|
283
|
+
const listboxVariants = tv({
|
|
284
|
+
base: "flex max-h-72 flex-col gap-0.5 overflow-y-auto text-sm outline-hidden"
|
|
285
|
+
});
|
|
286
|
+
const listboxItemVariants = tv({
|
|
287
|
+
base: "relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden",
|
|
288
|
+
variants: {
|
|
289
|
+
state: {
|
|
290
|
+
default: "text-popover-foreground",
|
|
291
|
+
active: "bg-muted text-foreground",
|
|
292
|
+
selected: "bg-primary-soft text-primary-soft-foreground",
|
|
293
|
+
disabled: "pointer-events-none opacity-50"
|
|
294
|
+
}
|
|
295
|
+
},
|
|
296
|
+
defaultVariants: { state: "default" }
|
|
297
|
+
});
|
|
298
|
+
const listboxGroupLabelVariants = tv({
|
|
299
|
+
base: "px-2 py-1.5 text-xs font-semibold text-muted-foreground"
|
|
300
|
+
});
|
|
301
|
+
const listboxSeparatorVariants = tv({
|
|
302
|
+
base: "-mx-1 my-1 h-px bg-border"
|
|
303
|
+
});
|
|
304
|
+
const listboxEmptyVariants = tv({
|
|
305
|
+
base: "px-2 py-6 text-center text-sm text-muted-foreground"
|
|
306
|
+
});
|
|
307
|
+
const ExpectedToken = "{expected}";
|
|
308
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
309
|
+
...{ name: "TypedConfirmField", inheritAttrs: false },
|
|
310
|
+
__name: "TypedConfirmField",
|
|
311
|
+
props: {
|
|
312
|
+
expected: {},
|
|
313
|
+
modelValue: { default: void 0 },
|
|
314
|
+
defaultValue: { default: "" },
|
|
315
|
+
label: { default: void 0 },
|
|
316
|
+
helper: { default: void 0 },
|
|
317
|
+
mismatchError: { default: void 0 },
|
|
318
|
+
error: { default: void 0 },
|
|
319
|
+
matchedLabel: { default: void 0 },
|
|
320
|
+
isRequired: { type: Boolean, default: true },
|
|
321
|
+
isDisabled: { type: Boolean, default: void 0 },
|
|
322
|
+
isReadOnly: { type: Boolean, default: void 0 }
|
|
323
|
+
},
|
|
324
|
+
emits: ["update:modelValue"],
|
|
325
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
326
|
+
const componentProps = __props;
|
|
327
|
+
const props = useLocaleDefaults(componentProps, "TypedConfirmField", {
|
|
328
|
+
label: "Type {expected} to confirm",
|
|
329
|
+
mismatchError: "Type {expected} exactly as shown.",
|
|
330
|
+
matchedLabel: "The text matches."
|
|
331
|
+
});
|
|
332
|
+
const emit = __emit;
|
|
333
|
+
const attrs = useAttrs();
|
|
334
|
+
const slots = useSlots();
|
|
335
|
+
const controlled = useControlled({
|
|
336
|
+
controlled: () => props.modelValue,
|
|
337
|
+
default: () => props.defaultValue,
|
|
338
|
+
onChange: (value) => {
|
|
339
|
+
emit("update:modelValue", value);
|
|
340
|
+
}
|
|
341
|
+
});
|
|
342
|
+
const typed = controlled.value;
|
|
343
|
+
const isConfirmed = computed(() => props.expected.length > 0 && typed.value === props.expected);
|
|
344
|
+
const hasLeft = shallowRef(false);
|
|
345
|
+
watch(
|
|
346
|
+
() => props.expected,
|
|
347
|
+
() => {
|
|
348
|
+
hasLeft.value = false;
|
|
349
|
+
if (!controlled.isControlled) controlled.reset();
|
|
350
|
+
}
|
|
351
|
+
);
|
|
352
|
+
const labelParts = computed(() => props.label.split(ExpectedToken));
|
|
353
|
+
const errorText = computed(() => {
|
|
354
|
+
if (props.error) return props.error;
|
|
355
|
+
if (!hasLeft.value || typed.value === "" || isConfirmed.value) return void 0;
|
|
356
|
+
return props.mismatchError.split(ExpectedToken).join(props.expected);
|
|
357
|
+
});
|
|
358
|
+
const hasHelper = computed(() => Boolean(props.helper) || Boolean(slots.helper));
|
|
359
|
+
const rootClass = computed(() => cn(attrs.class));
|
|
360
|
+
const inputAttrs = computed(() => {
|
|
361
|
+
const { class: _class, ...others } = attrs;
|
|
362
|
+
return others;
|
|
363
|
+
});
|
|
364
|
+
function handleBlur() {
|
|
365
|
+
hasLeft.value = true;
|
|
366
|
+
}
|
|
367
|
+
const inner = useTemplateRef("inner");
|
|
368
|
+
__expose({ el: computed(() => inner.value?.el ?? null), isConfirmed });
|
|
369
|
+
return (_ctx, _cache) => {
|
|
370
|
+
return openBlock(), createBlock(_sfc_main$1, {
|
|
371
|
+
class: normalizeClass(rootClass.value),
|
|
372
|
+
error: errorText.value,
|
|
373
|
+
helper: unref(props).helper,
|
|
374
|
+
"is-required": unref(props).isRequired,
|
|
375
|
+
"is-disabled": unref(props).isDisabled,
|
|
376
|
+
"is-read-only": unref(props).isReadOnly,
|
|
377
|
+
"data-confirmed": isConfirmed.value || void 0
|
|
378
|
+
}, createSlots({
|
|
379
|
+
label: withCtx(() => [
|
|
380
|
+
renderSlot(_ctx.$slots, "label", {}, () => [
|
|
381
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(labelParts.value, (part, index) => {
|
|
382
|
+
return openBlock(), createElementBlock(Fragment, { key: index }, [
|
|
383
|
+
index > 0 ? (openBlock(), createBlock(_sfc_main$8, {
|
|
384
|
+
key: 0,
|
|
385
|
+
class: "select-all"
|
|
386
|
+
}, {
|
|
387
|
+
default: withCtx(() => [
|
|
388
|
+
createTextVNode(toDisplayString(unref(props).expected), 1)
|
|
389
|
+
]),
|
|
390
|
+
_: 1
|
|
391
|
+
})) : createCommentVNode("", true),
|
|
392
|
+
createTextVNode(toDisplayString(part), 1)
|
|
393
|
+
], 64);
|
|
394
|
+
}), 128))
|
|
395
|
+
])
|
|
396
|
+
]),
|
|
397
|
+
default: withCtx(() => [
|
|
398
|
+
createVNode(_sfc_main$2, mergeProps({
|
|
399
|
+
ref_key: "inner",
|
|
400
|
+
ref: inner,
|
|
401
|
+
"model-value": unref(typed),
|
|
402
|
+
autocomplete: "off",
|
|
403
|
+
autocapitalize: "none",
|
|
404
|
+
autocorrect: "off",
|
|
405
|
+
spellcheck: "false"
|
|
406
|
+
}, inputAttrs.value, {
|
|
407
|
+
"onUpdate:modelValue": unref(controlled).setValue,
|
|
408
|
+
onBlur: handleBlur
|
|
409
|
+
}), null, 16, ["model-value", "onUpdate:modelValue"]),
|
|
410
|
+
createVNode(unref(_sfc_main$7), null, {
|
|
411
|
+
default: withCtx(() => [
|
|
412
|
+
createTextVNode(toDisplayString(isConfirmed.value ? unref(props).matchedLabel : ""), 1)
|
|
413
|
+
]),
|
|
414
|
+
_: 1
|
|
415
|
+
})
|
|
416
|
+
]),
|
|
417
|
+
_: 2
|
|
418
|
+
}, [
|
|
419
|
+
hasHelper.value && _ctx.$slots.helper ? {
|
|
420
|
+
name: "helper",
|
|
421
|
+
fn: withCtx(() => [
|
|
422
|
+
renderSlot(_ctx.$slots, "helper")
|
|
423
|
+
]),
|
|
424
|
+
key: "0"
|
|
425
|
+
} : void 0
|
|
426
|
+
]), 1032, ["class", "error", "helper", "is-required", "is-disabled", "is-read-only", "data-confirmed"]);
|
|
427
|
+
};
|
|
428
|
+
}
|
|
429
|
+
});
|
|
430
|
+
export {
|
|
431
|
+
InputBorder as I,
|
|
432
|
+
ListboxPickerItemState as L,
|
|
433
|
+
ReadOnlyLook as R,
|
|
434
|
+
_sfc_main$1 as _,
|
|
435
|
+
InputRing as a,
|
|
436
|
+
InputSize as b,
|
|
437
|
+
InputState as c,
|
|
438
|
+
_sfc_main$2 as d,
|
|
439
|
+
_sfc_main as e,
|
|
440
|
+
listboxItemVariants as f,
|
|
441
|
+
listboxEmptyVariants as g,
|
|
442
|
+
listboxSeparatorVariants as h,
|
|
443
|
+
inputBaseVariants as i,
|
|
444
|
+
listboxVariants as j,
|
|
445
|
+
listboxGroupLabelVariants as l
|
|
446
|
+
};
|
|
447
|
+
//# sourceMappingURL=TypedConfirmField.vue_vue_type_script_setup_true_lang-DXCZlnlM.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TypedConfirmField.vue_vue_type_script_setup_true_lang-DXCZlnlM.js","sources":["../../src/presentation/forms/InputStyles.ts","../../src/presentation/forms/textInput/TextInput.vue","../../src/presentation/forms/field/Field.vue","../../src/presentation/forms/listboxPicker/ListboxPicker.variants.ts","../../src/presentation/forms/typedConfirmField/TypedConfirmField.vue"],"sourcesContent":["// Shared visual primitives for form atoms. Co-located in `forms/` so imports\n// stay within-domain (ESLint boundaries allow same-domain imports).\n\nimport { tv, type VariantProps } from '../../foundation/styles';\n\n/*\n * A read-only control takes the disabled look without the disabled semantics: the muted surface and text, a default\n * cursor, no hover border and a 1px neutral focus ring in place of the brand ring — it stays focusable and its\n * value stays selectable. The `readonly:` variant (index.css) reads the native `readonly` attribute, or\n * `aria-readonly` / `data-readonly` on a trigger or a composite's frame. A disabled control keeps the muted\n * surface it had under `:read-only`, which also matched every `<button>` trigger; triggers now rest on the field.\n */\nexport const inputBaseVariants = tv({\n base: 'flex w-full rounded-md bg-field text-foreground placeholder:text-subtle-foreground transition-colors focus-visible:outline-hidden focus-visible:ring-ring disabled:cursor-not-allowed disabled:bg-muted disabled:opacity-60 readonly:cursor-default readonly:bg-muted readonly:text-muted-foreground readonly:focus-visible:ring-1',\n variants: {\n size: {\n xs: 'h-7 px-2 text-xs',\n sm: 'h-8 px-2.5 text-sm',\n md: 'h-10 px-3 text-sm',\n lg: 'h-12 px-4 text-base',\n },\n state: {\n default:\n 'border-input hover:border-border-strong readonly:hover:border-input readonly:focus-visible:ring-muted-foreground',\n invalid: 'border-destructive-soft-foreground focus-visible:ring-destructive-soft-foreground',\n },\n /* Border weight — scale like `size`/`radius`; default `sm` (1px). */\n border: {\n none: 'border-0',\n xs: 'border-[0.5px]',\n sm: 'border',\n md: 'border-2',\n lg: 'border-4',\n xl: 'border-8',\n },\n /* Focus-ring weight — default `md` (2px); `sm` for a hairline focus. */\n ring: {\n none: 'focus-visible:ring-0',\n sm: 'focus-visible:ring-1',\n md: 'focus-visible:ring-2',\n lg: 'focus-visible:ring-4',\n },\n },\n /* A caller that turned the focus ring off keeps it off while the control is read-only. */\n compoundVariants: [{ ring: 'none', class: 'readonly:focus-visible:ring-0' }],\n defaultVariants: {\n size: 'md',\n state: 'default',\n border: 'sm',\n ring: 'md',\n },\n});\n\nexport type InputBaseVariants = VariantProps<typeof inputBaseVariants>;\n\n/**\n * The read-only look for a control that does not extend `inputBaseVariants` (a custom trigger, a drop zone): the muted\n * surface and text, a default cursor, no hover fill and the 1px neutral focus ring. It reads the same `readonly:`\n * variant, so the control carries `data-readonly` while read-only. The control adds `readonly:hover:border-*` for its\n * own resting border, which the hover would otherwise replace.\n */\nexport const ReadOnlyLook =\n 'readonly:cursor-default readonly:bg-muted readonly:text-muted-foreground readonly:hover:bg-muted readonly:focus-visible:ring-1 readonly:focus-visible:ring-muted-foreground';\n\n/** Defines the size step of a form input control. */\nexport const InputSize = {\n /** Refers to the extra-small step (h-7). */\n Xs: 'xs',\n /** Refers to the small step (h-8). */\n Sm: 'sm',\n /** Refers to the medium (default) step (h-10). */\n Md: 'md',\n /** Refers to the large step (h-12). */\n Lg: 'lg',\n} as const;\n\nexport type InputSize = (typeof InputSize)[keyof typeof InputSize];\n\n/** Defines the validity surface of a form input control. */\nexport const InputState = {\n /** Refers to the default (valid / untouched) surface. */\n Default: 'default',\n /** Refers to the invalid surface (destructive border + ring). */\n Invalid: 'invalid',\n} as const;\n\nexport type InputState = (typeof InputState)[keyof typeof InputState];\n\n/** Defines the border-weight step of a form input control. */\nexport const InputBorder = {\n /** Refers to no border. */\n None: 'none',\n /** Refers to a 0.5px hairline border. */\n Xs: 'xs',\n /** Refers to a 1px border (default). */\n Sm: 'sm',\n /** Refers to a 2px border. */\n Md: 'md',\n /** Refers to a 4px border. */\n Lg: 'lg',\n /** Refers to an 8px border. */\n Xl: 'xl',\n} as const;\n\nexport type InputBorder = (typeof InputBorder)[keyof typeof InputBorder];\n\n/** Defines the focus-ring-weight step of a form input control. */\nexport const InputRing = {\n /** Refers to no focus ring. */\n None: 'none',\n /** Refers to a 1px focus ring. */\n Sm: 'sm',\n /** Refers to a 2px focus ring (default). */\n Md: 'md',\n /** Refers to a 4px focus ring. */\n Lg: 'lg',\n} as const;\n\nexport type InputRing = (typeof InputRing)[keyof typeof InputRing];\n\n/* Compile-time lock: enum values ≡ tv axis keys (drift = type error). */\ntype AssertExact<A, B> = [A] extends [B] ? ([B] extends [A] ? true : never) : never;\nconst _assertInputSize: AssertExact<InputSize, NonNullable<VariantProps<typeof inputBaseVariants>['size']>> = true;\nconst _assertInputState: AssertExact<InputState, NonNullable<VariantProps<typeof inputBaseVariants>['state']>> = true;\nconst _assertInputBorder: AssertExact<\n InputBorder,\n NonNullable<VariantProps<typeof inputBaseVariants>['border']>\n> = true;\nconst _assertInputRing: AssertExact<InputRing, NonNullable<VariantProps<typeof inputBaseVariants>['ring']>> = true;\nvoid _assertInputSize;\nvoid _assertInputState;\nvoid _assertInputBorder;\nvoid _assertInputRing;\n","<script lang=\"ts\">\nimport type { NativeInputAttributes } from '../NativeControlAttributes';\nimport type { InputSize, InputState, InputBorder, InputRing } from '../InputStyles';\n\nexport interface TextInputProps extends /* @vue-ignore */ NativeInputAttributes {\n /** The control size. */\n readonly size?: InputSize;\n /** The validity surface. */\n readonly state?: InputState;\n /** The border weight. */\n readonly border?: InputBorder;\n /** The focus-ring weight. */\n readonly ring?: InputRing;\n\n /** The value, controlled. The `v-model` binding target. */\n readonly modelValue?: string | number;\n\n /** The initial value when uncontrolled. */\n readonly defaultValue?: string | number;\n\n /** The control's id. Auto-filled from `FormControl` context when omitted. */\n readonly id?: string;\n\n /** The disabled state. Falls back to the surrounding field's `isDisabled`. */\n readonly isDisabled?: boolean;\n\n /** @deprecated Use `isDisabled`; this alias is removed next release. */\n readonly disabled?: boolean;\n\n /** The required state. Falls back to the surrounding field's `isRequired`. */\n readonly isRequired?: boolean;\n\n /** @deprecated Use `isRequired`; this alias is removed next release. */\n readonly required?: boolean;\n\n /** Keeps the value but blocks changes. Falls back to the surrounding field's `isReadOnly`. */\n readonly isReadOnly?: boolean;\n\n /** @deprecated Use `isReadOnly`; this alias is removed next release. */\n readonly readOnly?: boolean;\n\n /** @deprecated Use `isReadOnly`; this alias is removed next release. */\n readonly readonly?: boolean;\n\n /** Draws the control as its own placeholder, inert; defaults to the nearest `DataRegion` first load. */\n readonly isSkeleton?: boolean;\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { useNativeFormReset } from '../UseNativeFormReset';\nimport { computed, useAttrs, useTemplateRef } from 'vue';\nimport type { ClassValue } from 'clsx';\nimport { cn } from '../../../foundation/styles';\nimport { useControlled } from '../../../foundation/state';\nimport { useFormControl } from '../../../foundation/primitives';\nimport { useSkeletonState } from '../../feedback/skeletonState/SkeletonStateContext';\nimport { inputBaseVariants, InputState as InputStateValue } from '../InputStyles';\n\n/** Renders a single-line text input; email, tel, url, number, password and search have dedicated components. */\n/* `inheritAttrs: false` so `class` folds into the component's own `cn()` call — plain fallthrough\n appends outside it and loses tailwind-merge conflict resolution. */\ndefineOptions({ name: 'TextInput', inheritAttrs: false });\n\nconst props = withDefaults(defineProps<TextInputProps>(), {\n /* Explicit `undefined` defaults are load-bearing: each flag falls back to the form\n control context, and Vue casts an absent `boolean` prop to `false` — which would\n shadow the context with a hard \"not disabled / not required / not read-only\". */\n isDisabled: undefined,\n disabled: undefined,\n isRequired: undefined,\n required: undefined,\n readOnly: undefined,\n isReadOnly: undefined,\n readonly: undefined,\n isSkeleton: undefined,\n});\n\nconst emit = defineEmits<{\n /** Fires when the typed text changes — the `v-model` half. */\n 'update:modelValue': [value: string];\n}>();\n\nconst attrs = useAttrs();\n\n/* `ctx` is a live-getter object — read fields off it, never destructure. */\nconst ctx = useFormControl();\n\nconst controlled = useControlled<string | number>({\n controlled: () => props.modelValue,\n default: () => props.defaultValue ?? '',\n onChange: (next) => {\n emit('update:modelValue', String(next));\n },\n});\n\nconst currentValue = controlled.value;\n\nfunction onInput(event: Event): void {\n if ((event as InputEvent).isComposing) return;\n controlled.setValue((event.target as HTMLInputElement).value);\n}\n\nconst finalState = computed(() => props.state ?? (ctx?.isInvalid ? InputStateValue.Invalid : InputStateValue.Default));\n\nconst inputId = computed(() => props.id ?? ctx?.id);\nconst finalDisabled = computed(() => props.isDisabled ?? props.disabled ?? ctx?.isDisabled);\nconst finalRequired = computed(() => props.isRequired ?? props.required ?? ctx?.isRequired);\nconst finalReadOnly = computed(() => props.isReadOnly ?? props.readonly ?? props.readOnly ?? ctx?.isReadOnly);\nconst isInvalid = computed(() => ctx?.isInvalid || undefined);\nconst describedBy = computed(() => ctx?.describedBy);\n\nconst OwnedAttributes: ReadonlySet<string> = new Set(['class', 'value']);\nconst passthroughAttrs = computed(() =>\n Object.fromEntries(Object.entries(attrs).filter(([key]) => !OwnedAttributes.has(key))),\n);\n\n/* The control keeps its height, radius and border width; its fill, border colour, value and placeholder are masked. */\nconst skeleton = useSkeletonState(() => props.isSkeleton);\n\nconst rootClass = computed(() =>\n cn(\n inputBaseVariants({\n size: props.size,\n state: finalState.value,\n border: props.border,\n ring: props.ring,\n }),\n attrs.class as ClassValue,\n skeleton.boxClass.value,\n ),\n);\n\nconst root = useTemplateRef<HTMLInputElement>('root');\n\n/** The rendered element — the Vue stand-in for the React original's forwarded ref. */\nuseNativeFormReset(root, controlled.reset, () => {\n if (root.value) root.value.value = String(currentValue.value ?? '');\n});\n\ndefineExpose({ el: root });\n</script>\n\n<template>\n <input\n ref=\"root\"\n type=\"text\"\n :id=\"inputId\"\n :value=\"currentValue\"\n :disabled=\"finalDisabled\"\n :required=\"finalRequired\"\n :readonly=\"finalReadOnly\"\n :aria-invalid=\"isInvalid\"\n :aria-describedby=\"describedBy\"\n :data-skeleton=\"skeleton.isSkeleton.value || undefined\"\n :inert=\"skeleton.isSkeleton.value || undefined\"\n :class=\"rootClass\"\n v-bind=\"passthroughAttrs\"\n @input=\"onInput\"\n @compositionend=\"onInput\"\n />\n</template>\n","<script lang=\"ts\">\nexport interface FieldProps {\n /** The label text. Fill the `label` slot instead for richer content (e.g. label + tooltip). */\n readonly label?: string | number;\n\n /** The helper / hint shown beneath the control. Hidden while errors show. */\n readonly helper?: string | number;\n\n /**\n * The error text — renders only when truthy. Sets `isInvalid` on the form context.\n * Inside a forms-engine `Field` this is an OVERRIDE: leave it unset and the\n * field's own errors (client + server, all of them) render automatically.\n */\n readonly error?: string | number;\n\n /** The required state (also exposes `isRequired` to the control via context). */\n readonly isRequired?: boolean;\n\n /** The disabled state (also exposes `isDisabled` to the control). */\n readonly isDisabled?: boolean;\n\n /** The read-only state (also exposes `isReadOnly` to the control). */\n readonly isReadOnly?: boolean;\n\n /** Keeps the layout and draws the label, control and helper as skeletons; defaults to the nearest `DataRegion`. */\n readonly isSkeleton?: boolean;\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, useAttrs, useSlots, useTemplateRef } from 'vue';\nimport type { ClassValue } from 'clsx';\nimport { cn } from '../../../foundation/styles';\nimport { FormControlProvider, useFormControl } from '../../../foundation/primitives';\nimport LabelText from '../../display/labelText/LabelText.vue';\nimport FieldHelperText from '../../display/fieldHelperText/FieldHelperText.vue';\nimport FieldErrorCallout from '../../feedback/fieldErrorCallout/FieldErrorCallout.vue';\nimport { provideSkeletonState, useSkeletonState } from '../../feedback/skeletonState/SkeletonStateContext';\n\n/**\n * Renders label, control, helper and error as one block, wiring the control through form-control context.\n *\n * Wraps the default slot in a `FormControlProvider` so the inner control auto-wires `id`,\n * `aria-describedby`, `aria-invalid`, `disabled`, `required`, `readOnly`.\n *\n * Form-aware: composed inside a forms-engine `Field` it ADOPTS the glue's context\n * instead of shadowing it — same ids, inherited `isInvalid`/flags, and the field's\n * errors render without hand-wiring (`error` stays as an override). Standalone (no\n * surrounding provider) it behaves exactly as before.\n *\n * Each of React's three `ReactNode` props keeps its scalar form and gains a\n * same-named slot for richer content; the prop stays the discriminator.\n */\n/* `inheritAttrs: false` so `class` folds into the component's own `cn()` call — plain fallthrough\n appends outside it and loses tailwind-merge conflict resolution. */\ndefineOptions({ name: 'Field', inheritAttrs: false });\n\nconst props = withDefaults(defineProps<FieldProps>(), {\n /* Explicit `undefined` defaults are load-bearing: each flag falls back to the PARENT\n context's value, and Vue's Boolean casting would turn an absent prop into an explicit\n `false` that shadows the parent instead of deferring to it. */\n isRequired: undefined,\n isDisabled: undefined,\n isReadOnly: undefined,\n isSkeleton: undefined,\n});\n\n/* One flag switches the label, the control and the helper; each draws its own skeleton in its own box. */\nconst skeleton = useSkeletonState(() => props.isSkeleton);\nprovideSkeletonState(skeleton);\n\n/** The single form control (TextInput, SelectPicker, …) — receives wired id/aria via context. */\ndefineSlots<{\n default(): unknown;\n label?(): unknown;\n helper?(): unknown;\n error?(): unknown;\n}>();\n\nconst attrs = useAttrs();\nconst slots = useSlots();\n\n/* `parent` is a live-getter object — read fields off it, never destructure. */\nconst parent = useFormControl();\n\nconst hasLabel = computed(() => Boolean(props.label) || Boolean(slots.label));\nconst hasHelper = computed(() => Boolean(props.helper) || Boolean(slots.helper));\nconst hasOwnError = computed(() => Boolean(props.error) || Boolean(slots.error));\n\n/* Mirrors FieldErrorCallout's visibility so the helper never hides behind an error\n that won't render. */\nconst showError = computed(\n () => hasOwnError.value || ((parent?.errors?.length ?? 0) > 0 && (parent?.isInvalid ?? false)),\n);\n\nconst parentId = computed(() => parent?.id);\nconst parentErrors = computed(() => parent?.errors);\nconst isInvalid = computed(() => hasOwnError.value || (parent?.isInvalid ?? false));\nconst isRequired = computed(() => props.isRequired ?? parent?.isRequired);\nconst isDisabled = computed(() => props.isDisabled ?? parent?.isDisabled);\nconst isReadOnly = computed(() => props.isReadOnly ?? parent?.isReadOnly);\n\nconst OwnedAttributes: ReadonlySet<string> = new Set(['class']);\nconst passthroughAttrs = computed(() =>\n Object.fromEntries(Object.entries(attrs).filter(([key]) => !OwnedAttributes.has(key))),\n);\n\nconst rootClass = computed(() => cn('flex flex-col gap-1.5', attrs.class as ClassValue));\n\nconst root = useTemplateRef<HTMLDivElement>('root');\n\n/** The rendered element — the Vue stand-in for the React original's forwarded ref. */\ndefineExpose({ el: root });\n</script>\n\n<template>\n <FormControlProvider\n :id=\"parentId\"\n :errors=\"parentErrors\"\n :is-invalid=\"isInvalid\"\n :is-required=\"isRequired\"\n :is-disabled=\"isDisabled\"\n :is-read-only=\"isReadOnly\"\n >\n <div\n ref=\"root\"\n :data-skeleton=\"skeleton.isSkeleton.value || undefined\"\n :aria-busy=\"props.isSkeleton || undefined\"\n :class=\"rootClass\"\n v-bind=\"passthroughAttrs\"\n >\n <LabelText v-if=\"hasLabel\">\n <slot name=\"label\">{{ label }}</slot>\n </LabelText>\n\n <slot />\n\n <FieldErrorCallout v-if=\"showError\" :message=\"hasOwnError ? error : undefined\">\n <!-- Passed only when this Field owns the error: an always-present default slot\n would read as an override and suppress the context's own `errors`. -->\n <template v-if=\"hasOwnError && $slots.error\" #default>\n <slot name=\"error\" />\n </template>\n </FieldErrorCallout>\n <FieldHelperText v-else-if=\"hasHelper\">\n <slot name=\"helper\">{{ helper }}</slot>\n </FieldHelperText>\n </div>\n </FormControlProvider>\n</template>\n","import { tv, type VariantProps } from '../../../foundation/styles';\n\n/** Defines the visual state of a listbox item. */\nexport const ListboxPickerItemState = {\n /** Refers to the resting item. */\n Default: 'default',\n /** Refers to the active (roving-focused) item. */\n Active: 'active',\n /** Refers to a selected item. */\n Selected: 'selected',\n /** Refers to a disabled item. */\n Disabled: 'disabled',\n} as const;\n\nexport type ListboxPickerItemState = (typeof ListboxPickerItemState)[keyof typeof ListboxPickerItemState];\n\n/* ListboxPicker container — STRUCTURAL only. SurfaceLayout chrome (bg, border, shadow,\n rounded, padding) is composed from `surfaceVariants` in `ListboxPicker.tsx`. */\nexport const listboxVariants = tv({\n base: 'flex max-h-72 flex-col gap-0.5 overflow-y-auto text-sm outline-hidden',\n});\n\nexport const listboxItemVariants = tv({\n base: 'relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden',\n variants: {\n state: {\n default: 'text-popover-foreground',\n active: 'bg-muted text-foreground',\n selected: 'bg-primary-soft text-primary-soft-foreground',\n disabled: 'pointer-events-none opacity-50',\n },\n },\n defaultVariants: { state: 'default' },\n});\n\nexport const listboxGroupLabelVariants = tv({\n base: 'px-2 py-1.5 text-xs font-semibold text-muted-foreground',\n});\n\nexport const listboxSeparatorVariants = tv({\n base: '-mx-1 my-1 h-px bg-border',\n});\n\nexport const listboxEmptyVariants = tv({\n base: 'px-2 py-6 text-center text-sm text-muted-foreground',\n});\n\nexport type ListboxPickerVariants = VariantProps<typeof listboxVariants>;\nexport type ListboxPickerItemVariants = VariantProps<typeof listboxItemVariants>;\n\n/* Compile-time lock: enum values ≡ tv axis keys (drift = type error). */\ntype AssertExact<A, B> = [A] extends [B] ? ([B] extends [A] ? true : never) : never;\nconst _assertListboxItemState: AssertExact<\n ListboxPickerItemState,\n NonNullable<VariantProps<typeof listboxItemVariants>['state']>\n> = true;\nvoid _assertListboxItemState;\n","<script lang=\"ts\">\n/** Defines props for the field where a reader types a target's ID to enable a dangerous action. */\nexport interface TypedConfirmFieldProps {\n /** The exact text the reader types — the target's ID or name. Case and whitespace count. */\n readonly expected: string;\n\n /** The typed text, controlled. The `v-model` binding target; send it as the API's `confirm`. */\n readonly modelValue?: string;\n\n /** The initial typed text when uncontrolled. Default `''`. */\n readonly defaultValue?: string;\n\n /**\n * The label template; `{expected}` marks where the expected text shows as code. Default\n * `\"Type {expected} to confirm\"`, localized. The `label` slot is the rich override.\n */\n readonly label?: string;\n\n /** The helper beneath the input, hidden while an error shows. The `helper` slot is the rich override. */\n readonly helper?: string;\n\n /**\n * The error once the reader leaves the input holding other text; `{expected}` marks the expected text. Default\n * `\"Type {expected} exactly as shown.\"`, localized.\n */\n readonly mismatchError?: string;\n\n /** The error that replaces the mismatch error — a refusal the API sent back, say. */\n readonly error?: string;\n\n /** The announcement once the typed text matches. Default `\"The text matches.\"`, localized. */\n readonly matchedLabel?: string;\n\n /** The required state. Default `true`. */\n readonly isRequired?: boolean;\n\n /** The disabled state. */\n readonly isDisabled?: boolean;\n\n /** Keeps the typed text and focus but blocks changes — set it while the confirmed action runs. */\n readonly isReadOnly?: boolean;\n}\n\n/** @internal The token a label or error template marks the expected text with. */\nconst ExpectedToken = '{expected}';\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, shallowRef, useAttrs, useSlots, useTemplateRef, watch } from 'vue';\nimport type { ClassValue } from 'clsx';\nimport { cn } from '../../../foundation/styles';\nimport { useLocaleDefaults } from '../../../foundation/i18n';\nimport { useControlled } from '../../../foundation/state';\nimport { Announce } from '../../../foundation/primitives';\nimport CodeText from '../../display/codeText/CodeText.vue';\nimport Field from '../field/Field.vue';\nimport TextInput from '../textInput/TextInput.vue';\n\n/**\n * Renders a label naming the expected text, a text input, a helper and an error as one field; the reader types the\n * expected text exactly before a dangerous action runs.\n */\n/* `inheritAttrs: false`: `class` lands on the field root through `cn()`; every other attribute reaches the input. */\ndefineOptions({ name: 'TypedConfirmField', inheritAttrs: false });\n\ndefineSlots<{\n /** The rich override for the `label` prop. */\n label?(): unknown;\n\n /** The rich override for the `helper` prop. */\n helper?(): unknown;\n}>();\n\nconst componentProps = withDefaults(defineProps<TypedConfirmFieldProps>(), {\n modelValue: undefined,\n defaultValue: '',\n label: undefined,\n helper: undefined,\n mismatchError: undefined,\n error: undefined,\n matchedLabel: undefined,\n isRequired: true,\n isDisabled: undefined,\n isReadOnly: undefined,\n});\nconst props = useLocaleDefaults(componentProps, 'TypedConfirmField', {\n label: 'Type {expected} to confirm',\n mismatchError: 'Type {expected} exactly as shown.',\n matchedLabel: 'The text matches.',\n});\n\nconst emit = defineEmits<{\n /** Fires when the typed text changes — the `v-model` half. */\n 'update:modelValue': [value: string];\n}>();\n\nconst attrs = useAttrs();\nconst slots = useSlots();\n\nconst controlled = useControlled<string>({\n controlled: () => props.modelValue,\n default: () => props.defaultValue,\n onChange: (value) => {\n emit('update:modelValue', value);\n },\n});\n\nconst typed = controlled.value;\n\n/** Whether the typed text equals the expected text exactly; an empty expected text never matches. */\nconst isConfirmed = computed(() => props.expected.length > 0 && typed.value === props.expected);\n\n/** Whether the reader has left the input once — the mismatch error waits for it. */\nconst hasLeft = shallowRef(false);\n\n/* A new target starts a new confirmation: the uncontrolled text clears and the mismatch error waits again. */\nwatch(\n () => props.expected,\n () => {\n hasLeft.value = false;\n if (!controlled.isControlled) controlled.reset();\n },\n);\n\nconst labelParts = computed(() => props.label.split(ExpectedToken));\n\nconst errorText = computed(() => {\n if (props.error) return props.error;\n if (!hasLeft.value || typed.value === '' || isConfirmed.value) return undefined;\n return props.mismatchError.split(ExpectedToken).join(props.expected);\n});\n\nconst hasHelper = computed(() => Boolean(props.helper) || Boolean(slots.helper));\n\nconst rootClass = computed(() => cn(attrs.class as ClassValue));\n\n/** Everything but `class`, which stays on the root. */\nconst inputAttrs = computed(() => {\n const { class: _class, ...others } = attrs;\n return others;\n});\n\nfunction handleBlur(): void {\n hasLeft.value = true;\n}\n\nconst inner = useTemplateRef<{ el: HTMLInputElement | null }>('inner');\n\n/** The rendered `<input>`, and whether the typed text matches. */\ndefineExpose({ el: computed(() => inner.value?.el ?? null), isConfirmed });\n</script>\n\n<template>\n <Field\n :class=\"rootClass\"\n :error=\"errorText\"\n :helper=\"props.helper\"\n :is-required=\"props.isRequired\"\n :is-disabled=\"props.isDisabled\"\n :is-read-only=\"props.isReadOnly\"\n :data-confirmed=\"isConfirmed || undefined\"\n >\n <template #label>\n <slot name=\"label\">\n <template v-for=\"(part, index) in labelParts\" :key=\"index\">\n <CodeText v-if=\"index > 0\" class=\"select-all\">{{ props.expected }}</CodeText\n >{{ part }}\n </template>\n </slot>\n </template>\n <template v-if=\"hasHelper && $slots.helper\" #helper>\n <slot name=\"helper\" />\n </template>\n <TextInput\n ref=\"inner\"\n :model-value=\"typed\"\n autocomplete=\"off\"\n autocapitalize=\"none\"\n autocorrect=\"off\"\n spellcheck=\"false\"\n v-bind=\"inputAttrs\"\n @update:model-value=\"controlled.setValue\"\n @blur=\"handleBlur\"\n />\n <Announce>{{ isConfirmed ? props.matchedLabel : '' }}</Announce>\n </Field>\n</template>\n"],"names":["InputStateValue","_openBlock","_createElementBlock","_mergeProps","_unref","_createBlock","FormControlProvider","_createElementVNode","LabelText","_renderSlot","FieldErrorCallout","$slots","FieldHelperText","Field","_Fragment","_renderList","CodeText","_createTextVNode","_toDisplayString","_createVNode","TextInput","Announce"],"mappings":";;;;;;;;;;;AAYO,MAAM,oBAAoB,GAAG;AAAA,EAClC,MAAM;AAAA,EACN,UAAU;AAAA,IACR,MAAM;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,IAAA;AAAA,IAEN,OAAO;AAAA,MACL,SACE;AAAA,MACF,SAAS;AAAA,IAAA;AAAA;AAAA,IAGX,QAAQ;AAAA,MACN,MAAM;AAAA,MACN,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,IAAA;AAAA;AAAA,IAGN,MAAM;AAAA,MACJ,MAAM;AAAA,MACN,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,IAAA;AAAA,EACN;AAAA;AAAA,EAGF,kBAAkB,CAAC,EAAE,MAAM,QAAQ,OAAO,iCAAiC;AAAA,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