Declare range field input parts

active-uix
dev 5 months ago
parent fe3defc7ea
commit 3c7984c239

@ -43,6 +43,17 @@ export const dateRangeFieldMorfo = {
{ attr: 'data-disabled', severity: 'optional' } { attr: 'data-disabled', severity: 'optional' }
], ],
aria: [] aria: []
},
{
name: 'Input',
kebab: 'input',
archetype: 'input',
kind: 'public',
defaultElement: 'div',
role: 'group',
optional: false,
data: [{ attr: 'data-endpoint', values: ['start', 'end'] }],
aria: []
} }
] ]
} as const satisfies Morfo; } as const satisfies Morfo;

@ -43,6 +43,17 @@ export const timeRangeFieldMorfo = {
{ attr: 'data-disabled', severity: 'optional' } { attr: 'data-disabled', severity: 'optional' }
], ],
aria: [] aria: []
},
{
name: 'Input',
kebab: 'input',
archetype: 'input',
kind: 'public',
defaultElement: 'div',
role: 'group',
optional: false,
data: [{ attr: 'data-endpoint', values: ['start', 'end'] }],
aria: []
} }
] ]
} as const satisfies Morfo; } as const satisfies Morfo;

@ -93,7 +93,7 @@
// `data-date-field-input` attribute. // `data-date-field-input` attribute.
const mergedProps = $derived( const mergedProps = $derived(
mergeProps(restProps, state.props, { mergeProps(restProps, state.props, {
[dateRangeFieldAttrs.provider + '-input']: '', [dateRangeFieldAttrs.input]: '',
'data-endpoint': type 'data-endpoint': type
} as Record<string, unknown>) } as Record<string, unknown>)
); );

@ -96,7 +96,7 @@
// `data-time-field-input` attribute. // `data-time-field-input` attribute.
const mergedProps = $derived( const mergedProps = $derived(
mergeProps(restProps, state.props, { mergeProps(restProps, state.props, {
[timeRangeFieldAttrs.provider + '-input']: '', [timeRangeFieldAttrs.input]: '',
'data-endpoint': type 'data-endpoint': type
} as Record<string, unknown>) } as Record<string, unknown>)
); );

Loading…
Cancel
Save

Powered by TurnKey Linux.