7304aafc83
Centralize label, error, help, required, and ARIA relationships across core field wrappers. Preserve WBS evidence and keep the item IN_PROGRESS pending predecessor acceptance evidence. Evidence: frontend pnpm typecheck; pnpm test (42/42); pnpm build.
97 lines
3.0 KiB
JavaScript
97 lines
3.0 KiB
JavaScript
import { useUiAdapter } from '../adapter/useUiAdapter';
|
|
import FieldShell from './FieldShell.vue';
|
|
const props = defineProps();
|
|
const emit = defineEmits();
|
|
const adapter = useUiAdapter();
|
|
const __VLS_ctx = {
|
|
...{},
|
|
...{},
|
|
...{},
|
|
...{},
|
|
...{},
|
|
};
|
|
let __VLS_components;
|
|
let __VLS_intrinsics;
|
|
let __VLS_directives;
|
|
const __VLS_0 = FieldShell || FieldShell;
|
|
// @ts-ignore
|
|
const __VLS_1 = __VLS_asFunctionalComponent1(__VLS_0, new __VLS_0({
|
|
label: (__VLS_ctx.label),
|
|
inputId: (__VLS_ctx.inputId),
|
|
required: (__VLS_ctx.required),
|
|
error: (__VLS_ctx.error),
|
|
help: (__VLS_ctx.help),
|
|
}));
|
|
const __VLS_2 = __VLS_1({
|
|
label: (__VLS_ctx.label),
|
|
inputId: (__VLS_ctx.inputId),
|
|
required: (__VLS_ctx.required),
|
|
error: (__VLS_ctx.error),
|
|
help: (__VLS_ctx.help),
|
|
}, ...__VLS_functionalComponentArgsRest(__VLS_1));
|
|
var __VLS_5;
|
|
{
|
|
const { default: __VLS_6 } = __VLS_3.slots;
|
|
const [field] = __VLS_vSlot(__VLS_6);
|
|
const __VLS_7 = (__VLS_ctx.adapter.components.NumberField);
|
|
// @ts-ignore
|
|
const __VLS_8 = __VLS_asFunctionalComponent1(__VLS_7, new __VLS_7({
|
|
...{ 'onUpdate:modelValue': {} },
|
|
...{ 'onBlur': {} },
|
|
inputId: (field.inputId),
|
|
modelValue: (__VLS_ctx.modelValue),
|
|
disabled: (__VLS_ctx.disabled),
|
|
invalid: (field.invalid),
|
|
min: (__VLS_ctx.min),
|
|
max: (__VLS_ctx.max),
|
|
minFractionDigits: (__VLS_ctx.minFractionDigits),
|
|
maxFractionDigits: (__VLS_ctx.maxFractionDigits),
|
|
'aria-describedby': (field.describedBy),
|
|
'aria-required': (field.required || undefined),
|
|
}));
|
|
const __VLS_9 = __VLS_8({
|
|
...{ 'onUpdate:modelValue': {} },
|
|
...{ 'onBlur': {} },
|
|
inputId: (field.inputId),
|
|
modelValue: (__VLS_ctx.modelValue),
|
|
disabled: (__VLS_ctx.disabled),
|
|
invalid: (field.invalid),
|
|
min: (__VLS_ctx.min),
|
|
max: (__VLS_ctx.max),
|
|
minFractionDigits: (__VLS_ctx.minFractionDigits),
|
|
maxFractionDigits: (__VLS_ctx.maxFractionDigits),
|
|
'aria-describedby': (field.describedBy),
|
|
'aria-required': (field.required || undefined),
|
|
}, ...__VLS_functionalComponentArgsRest(__VLS_8));
|
|
let __VLS_12;
|
|
const __VLS_13 = {
|
|
/** @type {typeof __VLS_12.'update:modelValue'} */
|
|
'onUpdate:modelValue': (...[$event]) => {
|
|
return (__VLS_ctx.emit('update:modelValue', $event));
|
|
// @ts-ignore
|
|
[label, inputId, required, error, help, adapter, modelValue, disabled, min, max, minFractionDigits, maxFractionDigits, emit,];
|
|
},
|
|
};
|
|
const __VLS_14 = {
|
|
/** @type {typeof __VLS_12.blur} */
|
|
onBlur: (...[$event]) => {
|
|
return (__VLS_ctx.emit('blur', $event));
|
|
// @ts-ignore
|
|
[emit,];
|
|
},
|
|
};
|
|
var __VLS_10;
|
|
var __VLS_11;
|
|
// @ts-ignore
|
|
[];
|
|
__VLS_3.slots['' /* empty slot name completion */];
|
|
}
|
|
var __VLS_3;
|
|
// @ts-ignore
|
|
[];
|
|
const __VLS_export = (await import('vue')).defineComponent({
|
|
__typeEmits: {},
|
|
__typeProps: {},
|
|
});
|
|
export default {};
|