@bridge-ui/vue 0.6.0 → 0.8.0
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/ai/skills/bridge-ui-forms/SKILL.md +1 -1
- package/dist/Adapters/I18n/useI18nAdapter.d.ts +1 -1
- package/dist/Adapters/I18n/useI18nAdapter.js +4 -1
- package/dist/Components/Accordion/Accordion.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/Components/Accordion/accordion.types.d.ts +2 -2
- package/dist/Components/Alert/Alert.vue_vue_type_script_setup_true_lang.js +13 -13
- package/dist/Components/Alert/alert.types.d.ts +7 -4
- package/dist/Components/Alert/composables/useAlert.d.ts +1 -0
- package/dist/Components/Alert/composables/useAlert.js +60 -57
- package/dist/Components/Autocomplete/Autocomplete.vue.d.ts +1 -1
- package/dist/Components/Autocomplete/Autocomplete.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/Components/Autocomplete/composables/useAutocomplete.d.ts +5 -3
- package/dist/Components/BaseField/BaseField.vue_vue_type_script_setup_true_lang.js +33 -28
- package/dist/Components/BaseField/BaseFieldCorner.js +5 -0
- package/dist/Components/BaseField/BaseFieldCorner.vue.d.ts +17 -0
- package/dist/Components/BaseField/BaseFieldCorner.vue_vue_type_script_setup_true_lang.js +17 -0
- package/dist/Components/BaseField/baseField.types.d.ts +19 -6
- package/dist/Components/BaseField/composables/useBaseField.d.ts +7 -3
- package/dist/Components/BaseField/composables/useBaseField.js +71 -68
- package/dist/Components/Button/Button.vue_vue_type_script_setup_true_lang.js +24 -25
- package/dist/Components/Button/composables/useButton.d.ts +3 -1
- package/dist/Components/Button/composables/useButton.js +46 -40
- package/dist/Components/Calendar/composables/useCalendar.d.ts +1 -1
- package/dist/Components/CalendarDate/composables/useCalendarDate.d.ts +1 -1
- package/dist/Components/CalendarMonth/composables/useCalendarMonth.d.ts +1 -1
- package/dist/Components/CalendarRange/composables/useCalendarRange.d.ts +1 -1
- package/dist/Components/CalendarYear/composables/useCalendarYear.d.ts +1 -1
- package/dist/Components/ColorField/ColorField.vue.d.ts +1 -1
- package/dist/Components/ColorField/ColorField.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/Components/ColorField/composables/useColorField.d.ts +6 -4
- package/dist/Components/ColorPicker/composables/useColorPicker.d.ts +1 -1
- package/dist/Components/DataTable/DataTable.vue_vue_type_script_setup_true_lang.js +154 -131
- package/dist/Components/DataTable/DataTablePagination.js +5 -0
- package/dist/Components/DataTable/DataTablePagination.vue.d.ts +24 -0
- package/dist/Components/DataTable/DataTablePagination.vue_vue_type_script_setup_true_lang.js +40 -0
- package/dist/Components/DataTable/composables/useDataTable.d.ts +9 -4
- package/dist/Components/DataTable/composables/useDataTable.js +299 -280
- package/dist/Components/DataTable/composables/useDataTablePagination.d.ts +69 -0
- package/dist/Components/DataTable/composables/useDataTablePagination.js +130 -0
- package/dist/Components/DataTable/dataTable.types.d.ts +27 -12
- package/dist/Components/DataTable/dataTablePagination.types.d.ts +169 -0
- package/dist/Components/DataTable/index.d.ts +2 -1
- package/dist/Components/DateField/DateField.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/Components/DateField/composables/useDateField.d.ts +6 -4
- package/dist/Components/DatePicker/composables/useDatePicker.d.ts +1 -1
- package/dist/Components/DateRangeField/DateRangeField.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/Components/DateRangeField/composables/useDateRangeField.d.ts +6 -4
- package/dist/Components/DateRangePicker/composables/useDateRangePicker.d.ts +1 -1
- package/dist/Components/DateTimeField/DateTimeField.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/Components/DateTimeField/composables/useDateTimeField.d.ts +6 -4
- package/dist/Components/DateTimePicker/composables/useDateTimePicker.d.ts +1 -1
- package/dist/Components/DateTimeRangeField/DateTimeRangeField.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/Components/DateTimeRangeField/composables/useDateTimeRangeField.d.ts +6 -4
- package/dist/Components/DateTimeRangePicker/composables/useDateTimeRangePicker.d.ts +1 -1
- package/dist/Components/FormControl/composables/useFormControl.d.ts +3 -1
- package/dist/Components/FormControl/composables/useFormControl.js +39 -38
- package/dist/Components/FormField/FilledFormField.vue.d.ts +7 -7
- package/dist/Components/FormField/FilledFormField.vue_vue_type_script_setup_true_lang.js +32 -27
- package/dist/Components/FormField/FormFieldCorner.js +5 -0
- package/dist/Components/FormField/FormFieldCorner.vue.d.ts +17 -0
- package/dist/Components/FormField/FormFieldCorner.vue_vue_type_script_setup_true_lang.js +17 -0
- package/dist/Components/FormField/NotchedFormField.vue.d.ts +7 -7
- package/dist/Components/FormField/NotchedFormField.vue_vue_type_script_setup_true_lang.js +14 -9
- package/dist/Components/FormField/OutlinedFormField.vue.d.ts +7 -7
- package/dist/Components/FormField/OutlinedFormField.vue_vue_type_script_setup_true_lang.js +32 -27
- package/dist/Components/FormField/StackedFormField.vue.d.ts +6 -6
- package/dist/Components/FormField/StackedFormField.vue_vue_type_script_setup_true_lang.js +14 -9
- package/dist/Components/FormField/UnderlinedFormField.vue.d.ts +7 -7
- package/dist/Components/FormField/UnderlinedFormField.vue_vue_type_script_setup_true_lang.js +32 -27
- package/dist/Components/FormField/composables/useFormField.d.ts +8 -4
- package/dist/Components/FormField/composables/useFormField.js +153 -143
- package/dist/Components/FormField/formField.types.d.ts +18 -6
- package/dist/Components/Listbox/Listbox.vue.d.ts +1 -1
- package/dist/Components/NumberField/NumberField.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/Components/NumberField/composables/useNumberField.d.ts +5 -3
- package/dist/Components/OtpField/OtpField.vue.d.ts +1 -8
- package/dist/Components/OtpField/OtpField.vue_vue_type_script_setup_true_lang.js +7 -6
- package/dist/Components/OtpField/composables/useOtpField.d.ts +4 -2
- package/dist/Components/Pagination/Pagination.vue_vue_type_script_setup_true_lang.js +6 -6
- package/dist/Components/Pagination/composables/usePagination.d.ts +4 -2
- package/dist/Components/Pagination/composables/usePagination.js +125 -127
- package/dist/Components/Pagination/pagination.types.d.ts +5 -5
- package/dist/Components/PasswordField/PasswordField.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/Components/PasswordField/composables/usePasswordField.d.ts +5 -3
- package/dist/Components/Select/Select.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/Components/Select/composables/useSelect.d.ts +5 -3
- package/dist/Components/Sidebar/composables/useSidebarList.js +1 -1
- package/dist/Components/Sidebar/composables/useSidebarShell.js +1 -1
- package/dist/Components/Slider/Slider.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/Components/Slider/composables/useSlider.d.ts +5 -3
- package/dist/Components/Tabs/Tabs.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/Components/Tabs/composables/useTabs.js +16 -10
- package/dist/Components/Tabs/tabs.types.d.ts +3 -3
- package/dist/Components/TextField/TextField.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/Components/TextField/composables/useTextField.d.ts +5 -3
- package/dist/Components/Textarea/Textarea.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/Components/Textarea/composables/useTextarea.d.ts +5 -3
- package/dist/Components/TimeField/TimeField.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/Components/TimeField/composables/useTimeField.d.ts +6 -4
- package/dist/Components/TimePanel/composables/useTimePanel.d.ts +1 -1
- package/dist/Components/TimePicker/composables/useTimePicker.d.ts +1 -1
- package/dist/Components/TimeRangeField/TimeRangeField.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/Components/TimeRangeField/composables/useTimeRangeField.d.ts +6 -4
- package/dist/Components/TimeRangePicker/composables/useTimeRangePicker.d.ts +1 -1
- package/dist/Components/Tooltip/composables/useTooltip.d.ts +1 -1
- package/dist/Utils/index.d.ts +11 -2
- package/dist/Utils/index.js +31 -27
- package/dist/augments.d.ts +8 -8
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4 -4
- package/docs/components/Accordion.md +1 -1
- package/docs/components/Alert.md +4 -2
- package/docs/components/BaseField.md +19 -18
- package/docs/components/BridgeUIProvider.md +14 -7
- package/docs/components/DataTable.md +5 -11
- package/docs/components/FormControl.md +1 -1
- package/docs/components/FormField.md +28 -27
- package/docs/components/I18n.md +65 -24
- package/docs/components/Pagination.md +5 -3
- package/docs/components/Table.md +2 -2
- package/docs/components/Tabs.md +24 -6
- package/docs/examples/i18n-dictionary.ts +28 -10
- package/docs/examples/i18n-vue-i18n.ts +7 -6
- package/docs/examples/icon-fontawesome.ts +4 -0
- package/docs/examples/icon-heroicons.ts +5 -1
- package/docs/examples/icon-lucide.ts +4 -0
- package/docs/examples/icon-phosphor.ts +4 -0
- package/docs/examples/icon-tabler.ts +4 -0
- package/package.json +2 -2
|
@@ -436,11 +436,10 @@ export declare function useDateTimeField(props: DateTimeFieldOwnProps, model: Re
|
|
|
436
436
|
onTransitionend?: ((payload: TransitionEvent) => void) | undefined;
|
|
437
437
|
onTransitionrun?: ((payload: TransitionEvent) => void) | undefined;
|
|
438
438
|
onTransitionstart?: ((payload: TransitionEvent) => void) | undefined;
|
|
439
|
-
}, Partial<Omit<Omit<FormFieldOwnProps, "field">, "error" | "color" | "end" | "size" | "classes" | "customProps" | "rounded" | "variant" | "label" | "disabled" | "required" | "corner" | "description" | "errorMessage" | "start" | "endIcon" | "errorIcon" | "hideErrorMessage" | "readonly" | "showErrorIcon" | "startIcon">>>>;
|
|
439
|
+
}, Partial<Omit<Omit<FormFieldOwnProps, "field">, "error" | "color" | "end" | "size" | "classes" | "customProps" | "rounded" | "variant" | "label" | "disabled" | "required" | "corner" | "description" | "errorMessage" | "start" | "endIcon" | "errorIcon" | "hideErrorMessage" | "readonly" | "showDescriptionOnError" | "showErrorIcon" | "startIcon">>>>;
|
|
440
440
|
isNotched: import('vue').ComputedRef<boolean>;
|
|
441
441
|
isStacked: import('vue').ComputedRef<boolean>;
|
|
442
442
|
startBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {}>>;
|
|
443
|
-
cornerBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {}>>;
|
|
444
443
|
headerBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {}>>;
|
|
445
444
|
isDisabled: import('vue').ComputedRef<boolean>;
|
|
446
445
|
isReadonly: import('vue').ComputedRef<boolean>;
|
|
@@ -458,9 +457,12 @@ export declare function useDateTimeField(props: DateTimeFieldOwnProps, model: Re
|
|
|
458
457
|
ariaDescribedBy: import('vue').ComputedRef<string | undefined>;
|
|
459
458
|
descriptionBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {}>>;
|
|
460
459
|
stackedBodyBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", {}, {}>>;
|
|
460
|
+
fieldCornerProps: import('vue').ComputedRef<import('../../Label').LabelProps>;
|
|
461
461
|
hasInsetLabelRow: import('vue').ComputedRef<boolean>;
|
|
462
462
|
insetLabelRowBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {}>>;
|
|
463
463
|
stackedInputRowBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", {}, {}>>;
|
|
464
|
+
showErrorMessageRow: import('vue').ComputedRef<boolean>;
|
|
465
|
+
showDescriptionContent: import('vue').ComputedRef<boolean>;
|
|
464
466
|
showErrorMessageContent: import('vue').ComputedRef<boolean>;
|
|
465
467
|
reservesErrorMessageSpace: import('vue').ComputedRef<boolean>;
|
|
466
468
|
};
|
|
@@ -685,7 +687,7 @@ export declare function useDateTimeField(props: DateTimeFieldOwnProps, model: Re
|
|
|
685
687
|
onTransitionend?: ((payload: TransitionEvent) => void) | undefined;
|
|
686
688
|
onTransitionrun?: ((payload: TransitionEvent) => void) | undefined;
|
|
687
689
|
onTransitionstart?: ((payload: TransitionEvent) => void) | undefined;
|
|
688
|
-
}, Partial<Omit<Omit<FormFieldOwnProps, "field">, "error" | "color" | "end" | "size" | "classes" | "customProps" | "rounded" | "variant" | "label" | "disabled" | "required" | "corner" | "description" | "errorMessage" | "start" | "endIcon" | "errorIcon" | "hideErrorMessage" | "readonly" | "showErrorIcon" | "startIcon">>>, "class", {
|
|
690
|
+
}, Partial<Omit<Omit<FormFieldOwnProps, "field">, "error" | "color" | "end" | "size" | "classes" | "customProps" | "rounded" | "variant" | "label" | "disabled" | "required" | "corner" | "description" | "errorMessage" | "start" | "endIcon" | "errorIcon" | "hideErrorMessage" | "readonly" | "showDescriptionOnError" | "showErrorIcon" | "startIcon">>>, "class", {
|
|
689
691
|
value: string;
|
|
690
692
|
readonly: boolean;
|
|
691
693
|
onFocus: (event: FocusEvent) => void;
|
|
@@ -703,7 +705,7 @@ export declare function useDateTimeField(props: DateTimeFieldOwnProps, model: Re
|
|
|
703
705
|
modelValue: import('vue').ComputedRef<Date | null>;
|
|
704
706
|
showFooter: import('vue').ComputedRef<boolean>;
|
|
705
707
|
pickerClass: import('vue').ComputedRef<string | undefined>;
|
|
706
|
-
dateTimeOnly: import('vue').ComputedRef<Pick<DateTimeFieldOwnProps & Record<string, unknown>, "fill" | "classes" | "overlay" | "showFooter" | "customProps" | "
|
|
708
|
+
dateTimeOnly: import('vue').ComputedRef<Pick<DateTimeFieldOwnProps & Record<string, unknown>, "fill" | "classes" | "overlay" | "showFooter" | "customProps" | "editable" | "hideMonths" | "hideOutsideDays" | "hideWeekdays" | "hideYears" | "startOfWeek" | "timeZone" | "ampm" | "interval" | "showSeconds" | "defaultValue" | "clearable" | "disableDates" | "disableMonths" | "disableYears" | "maxDate" | "minDate" | "defaultView" | "disableTimes" | "maxTime" | "minTime">>;
|
|
707
709
|
containerRef: Ref<HTMLElement | null, HTMLElement | null>;
|
|
708
710
|
clearIconSize: import('vue').ComputedRef<keyof import('@bridge-ui/core/Tokens').IconSize>;
|
|
709
711
|
showClearIcon: import('vue').ComputedRef<boolean>;
|
|
@@ -9,7 +9,7 @@ type DateTimePickerMerged = MergeLibDefaults<DateTimePickerOwnProps, DateTimePic
|
|
|
9
9
|
*/
|
|
10
10
|
export declare function useDateTimePicker(props: MaybeRefOrGetter<DateTimePickerOwnProps>, libDefaults: DateTimePickerLibDefaults, emit: SetupContext<DateTimePickerEmits>["emit"]): {
|
|
11
11
|
merged: import('vue').ComputedRef<DateTimePickerMerged>;
|
|
12
|
-
rootBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, Partial<Omit<DateTimePickerOwnProps, "error" | "color" | "fill" | "value" | "classes" | "showFooter" | "customProps" | "rounded" | "disabled" | "
|
|
12
|
+
rootBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, Partial<Omit<DateTimePickerOwnProps, "error" | "color" | "fill" | "value" | "classes" | "showFooter" | "customProps" | "rounded" | "disabled" | "hideMonths" | "hideOutsideDays" | "hideWeekdays" | "hideYears" | "startOfWeek" | "timeZone" | "ampm" | "interval" | "showSeconds" | "defaultValue" | "readOnly" | "disableDates" | "disableMonths" | "disableYears" | "maxDate" | "minDate" | "defaultView" | "disableTimes" | "maxTime" | "minTime">>>>;
|
|
13
13
|
footerBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {}>>;
|
|
14
14
|
showFooter: import('vue').ComputedRef<boolean>;
|
|
15
15
|
handleApply: () => void;
|
|
@@ -437,11 +437,10 @@ export declare function useDateTimeRangeField(props: DateTimeRangeFieldOwnProps,
|
|
|
437
437
|
onTransitionend?: ((payload: TransitionEvent) => void) | undefined;
|
|
438
438
|
onTransitionrun?: ((payload: TransitionEvent) => void) | undefined;
|
|
439
439
|
onTransitionstart?: ((payload: TransitionEvent) => void) | undefined;
|
|
440
|
-
}, Partial<Omit<Omit<FormFieldOwnProps, "field">, "error" | "color" | "end" | "size" | "classes" | "customProps" | "rounded" | "variant" | "label" | "disabled" | "required" | "corner" | "description" | "errorMessage" | "start" | "endIcon" | "errorIcon" | "hideErrorMessage" | "readonly" | "showErrorIcon" | "startIcon">>>>;
|
|
440
|
+
}, Partial<Omit<Omit<FormFieldOwnProps, "field">, "error" | "color" | "end" | "size" | "classes" | "customProps" | "rounded" | "variant" | "label" | "disabled" | "required" | "corner" | "description" | "errorMessage" | "start" | "endIcon" | "errorIcon" | "hideErrorMessage" | "readonly" | "showDescriptionOnError" | "showErrorIcon" | "startIcon">>>>;
|
|
441
441
|
isNotched: import('vue').ComputedRef<boolean>;
|
|
442
442
|
isStacked: import('vue').ComputedRef<boolean>;
|
|
443
443
|
startBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {}>>;
|
|
444
|
-
cornerBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {}>>;
|
|
445
444
|
headerBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {}>>;
|
|
446
445
|
isDisabled: import('vue').ComputedRef<boolean>;
|
|
447
446
|
isReadonly: import('vue').ComputedRef<boolean>;
|
|
@@ -459,9 +458,12 @@ export declare function useDateTimeRangeField(props: DateTimeRangeFieldOwnProps,
|
|
|
459
458
|
ariaDescribedBy: import('vue').ComputedRef<string | undefined>;
|
|
460
459
|
descriptionBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {}>>;
|
|
461
460
|
stackedBodyBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", {}, {}>>;
|
|
461
|
+
fieldCornerProps: import('vue').ComputedRef<import('../../Label').LabelProps>;
|
|
462
462
|
hasInsetLabelRow: import('vue').ComputedRef<boolean>;
|
|
463
463
|
insetLabelRowBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {}>>;
|
|
464
464
|
stackedInputRowBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", {}, {}>>;
|
|
465
|
+
showErrorMessageRow: import('vue').ComputedRef<boolean>;
|
|
466
|
+
showDescriptionContent: import('vue').ComputedRef<boolean>;
|
|
465
467
|
showErrorMessageContent: import('vue').ComputedRef<boolean>;
|
|
466
468
|
reservesErrorMessageSpace: import('vue').ComputedRef<boolean>;
|
|
467
469
|
};
|
|
@@ -686,7 +688,7 @@ export declare function useDateTimeRangeField(props: DateTimeRangeFieldOwnProps,
|
|
|
686
688
|
onTransitionend?: ((payload: TransitionEvent) => void) | undefined;
|
|
687
689
|
onTransitionrun?: ((payload: TransitionEvent) => void) | undefined;
|
|
688
690
|
onTransitionstart?: ((payload: TransitionEvent) => void) | undefined;
|
|
689
|
-
}, Partial<Omit<Omit<FormFieldOwnProps, "field">, "error" | "color" | "end" | "size" | "classes" | "customProps" | "rounded" | "variant" | "label" | "disabled" | "required" | "corner" | "description" | "errorMessage" | "start" | "endIcon" | "errorIcon" | "hideErrorMessage" | "readonly" | "showErrorIcon" | "startIcon">>>, "class", {
|
|
691
|
+
}, Partial<Omit<Omit<FormFieldOwnProps, "field">, "error" | "color" | "end" | "size" | "classes" | "customProps" | "rounded" | "variant" | "label" | "disabled" | "required" | "corner" | "description" | "errorMessage" | "start" | "endIcon" | "errorIcon" | "hideErrorMessage" | "readonly" | "showDescriptionOnError" | "showErrorIcon" | "startIcon">>>, "class", {
|
|
690
692
|
value: string;
|
|
691
693
|
readonly: boolean;
|
|
692
694
|
onFocus: (event: FocusEvent) => void;
|
|
@@ -705,7 +707,7 @@ export declare function useDateTimeRangeField(props: DateTimeRangeFieldOwnProps,
|
|
|
705
707
|
showFooter: import('vue').ComputedRef<boolean>;
|
|
706
708
|
orientation: import('vue').ComputedRef<import('@bridge-ui/core/Domain').RangePickerOrientation>;
|
|
707
709
|
pickerClass: import('vue').ComputedRef<string | undefined>;
|
|
708
|
-
dateTimeOnly: import('vue').ComputedRef<Pick<DateTimeRangeFieldOwnProps & Record<string, unknown>, "fill" | "orientation" | "classes" | "overlay" | "showFooter" | "customProps" | "
|
|
710
|
+
dateTimeOnly: import('vue').ComputedRef<Pick<DateTimeRangeFieldOwnProps & Record<string, unknown>, "fill" | "orientation" | "classes" | "overlay" | "showFooter" | "customProps" | "editable" | "hideMonths" | "hideOutsideDays" | "hideWeekdays" | "hideYears" | "startOfWeek" | "timeZone" | "ampm" | "interval" | "showSeconds" | "defaultValue" | "clearable" | "disableDates" | "disableMonths" | "disableYears" | "maxDate" | "minDate" | "disableTimes" | "maxTime" | "minTime">>;
|
|
709
711
|
containerRef: Ref<HTMLElement | null, HTMLElement | null>;
|
|
710
712
|
clearIconSize: import('vue').ComputedRef<keyof import('@bridge-ui/core/Tokens').IconSize>;
|
|
711
713
|
showClearIcon: import('vue').ComputedRef<boolean>;
|
|
@@ -9,7 +9,7 @@ type DateTimeRangePickerMerged = MergeLibDefaults<DateTimeRangePickerOwnProps, D
|
|
|
9
9
|
*/
|
|
10
10
|
export declare function useDateTimeRangePicker(props: MaybeRefOrGetter<DateTimeRangePickerOwnProps>, libDefaults: DateTimeRangePickerLibDefaults, emit: SetupContext<DateTimeRangePickerEmits>["emit"]): {
|
|
11
11
|
merged: import('vue').ComputedRef<DateTimeRangePickerMerged>;
|
|
12
|
-
rootBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, Partial<Omit<DateTimeRangePickerOwnProps, "error" | "color" | "fill" | "orientation" | "value" | "classes" | "showFooter" | "customProps" | "rounded" | "disabled" | "
|
|
12
|
+
rootBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, Partial<Omit<DateTimeRangePickerOwnProps, "error" | "color" | "fill" | "orientation" | "value" | "classes" | "showFooter" | "customProps" | "rounded" | "disabled" | "hideMonths" | "hideOutsideDays" | "hideWeekdays" | "hideYears" | "startOfWeek" | "timeZone" | "ampm" | "interval" | "showSeconds" | "defaultValue" | "readOnly" | "disableDates" | "disableMonths" | "disableYears" | "maxDate" | "minDate" | "disableTimes" | "maxTime" | "minTime">>>>;
|
|
13
13
|
timeBind: import('vue').ComputedRef<string>;
|
|
14
14
|
footerBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {}>>;
|
|
15
15
|
showFooter: import('vue').ComputedRef<boolean>;
|
|
@@ -11,8 +11,10 @@ type FormControlMerged = MergeLibDefaults<FormControlOwnProps, FormControlLibDef
|
|
|
11
11
|
export type FormControlOptions = {
|
|
12
12
|
/**
|
|
13
13
|
* Public registry key that owns FormControl chrome defaults/tokens.
|
|
14
|
+
* Defaults to `FormControl`; Checkbox / Radio / Switch pass their own key
|
|
15
|
+
* so chrome cascades (`FormControl` → parent).
|
|
14
16
|
*/
|
|
15
|
-
componentName?: "Radio" | "Switch" | "Checkbox";
|
|
17
|
+
componentName?: "Radio" | "Switch" | "Checkbox" | "FormControl";
|
|
16
18
|
};
|
|
17
19
|
export declare function useFormControl(props: MaybeRefOrGetter<Omit<FormControlOwnProps, "field">>, libDefaults: FormControlLibDefaults, options?: FormControlOptions): {
|
|
18
20
|
slots: Readonly<{
|
|
@@ -27,76 +27,77 @@ function g(g, _, v = {}) {
|
|
|
27
27
|
...x,
|
|
28
28
|
...o(g)
|
|
29
29
|
}
|
|
30
|
-
})), { merged: C, entry: w } = r({
|
|
30
|
+
})), { merged: C, entry: w, chromeEntry: T } = r({
|
|
31
31
|
libDefaults: _,
|
|
32
|
-
componentName: v.componentName,
|
|
32
|
+
componentName: v.componentName ?? "FormControl",
|
|
33
33
|
props: () => S.value.componentProps
|
|
34
|
-
}),
|
|
34
|
+
}), E = a(() => C.value.customProps), D = i({
|
|
35
35
|
entry: w,
|
|
36
|
+
chromeEntry: T,
|
|
36
37
|
props: () => S.value.componentProps
|
|
37
|
-
}),
|
|
38
|
+
}), O = a(() => C.value.error === !0), k = a(() => !!C.value.disabled), A = a(() => !!C.value.readonly), j = a(() => {
|
|
38
39
|
let e = S.value.inheritedAttrs.id;
|
|
39
40
|
return C.value.controlId ?? e ?? y;
|
|
40
|
-
}),
|
|
41
|
+
}), M = a(() => !C.value.hideErrorMessage), N = a(() => O.value && e(b, "errorMessage", C.value.errorMessage)), P = a(() => {
|
|
41
42
|
let t = [];
|
|
42
|
-
return !
|
|
43
|
-
}),
|
|
43
|
+
return !O.value && e(b, "description", C.value.description) && t.push(`${j.value}-description`), O.value && M.value && e(b, "errorMessage", C.value.errorMessage) && t.push(`${j.value}-error`), t.length > 0 ? t.join(" ") : void 0;
|
|
44
|
+
}), F = a(() => u(f, C.value.size ?? "md")), I = a(() => n(E.value?.root, d(S.value.inheritedAttrs, ["class"]), p({
|
|
44
45
|
"group/form-control relative w-full": !0,
|
|
45
46
|
"aria-disabled:pointer-events-none aria-disabled:select-none aria-disabled:opacity-60 aria-disabled:cursor-not-allowed": !0,
|
|
46
47
|
"aria-readonly:pointer-events-none aria-readonly:select-none": !0,
|
|
47
|
-
[
|
|
48
|
+
[D.value.root ?? ""]: !0,
|
|
48
49
|
[x.class]: !!x.class
|
|
49
|
-
}))),
|
|
50
|
+
}))), L = a(() => n(E.value?.row, {}, p({
|
|
50
51
|
"flex flex-row items-center gap-x-2": !0,
|
|
51
|
-
[
|
|
52
|
-
}))),
|
|
53
|
-
let e = (e) => t(
|
|
54
|
-
for:
|
|
52
|
+
[D.value.row ?? ""]: !0
|
|
53
|
+
}))), R = a(() => {
|
|
54
|
+
let e = (e) => t(E.value?.[e], {
|
|
55
|
+
for: j.value,
|
|
55
56
|
size: C.value.size,
|
|
56
|
-
error:
|
|
57
|
+
error: O.value,
|
|
57
58
|
required: C.value.required,
|
|
58
59
|
classes: { root: p({
|
|
59
60
|
"cursor-pointer": !0,
|
|
60
|
-
[
|
|
61
|
+
[D.value[e] ?? ""]: !0
|
|
61
62
|
}) }
|
|
62
63
|
});
|
|
63
64
|
return {
|
|
64
65
|
endLabel: e("endLabel"),
|
|
65
66
|
startLabel: e("startLabel")
|
|
66
67
|
};
|
|
67
|
-
}),
|
|
68
|
+
}), z = a(() => n(E.value?.description, { id: `${j.value}-description` }, p({
|
|
68
69
|
"mt-2 text-dark-500 dark:text-dark-400": !0,
|
|
69
|
-
[
|
|
70
|
-
[
|
|
71
|
-
}))),
|
|
70
|
+
[F.value ?? ""]: !0,
|
|
71
|
+
[D.value.description ?? ""]: !0
|
|
72
|
+
}))), B = a(() => n(E.value?.errorMessage, { id: `${j.value}-error` }, p({
|
|
72
73
|
"mt-2": !0,
|
|
73
|
-
"min-h-[1lh]":
|
|
74
|
+
"min-h-[1lh]": M.value,
|
|
74
75
|
"text-error-600 dark:text-error-400": !0,
|
|
75
|
-
[
|
|
76
|
-
[
|
|
76
|
+
[F.value ?? ""]: !0,
|
|
77
|
+
[D.value.errorMessage ?? ""]: !0
|
|
77
78
|
})));
|
|
78
79
|
return {
|
|
79
80
|
slots: b,
|
|
80
81
|
merged: C,
|
|
81
|
-
rowBind:
|
|
82
|
-
rootBind:
|
|
83
|
-
controlId:
|
|
84
|
-
isDisabled:
|
|
85
|
-
isReadonly:
|
|
82
|
+
rowBind: L,
|
|
83
|
+
rootBind: I,
|
|
84
|
+
controlId: j,
|
|
85
|
+
isDisabled: k,
|
|
86
|
+
isReadonly: A,
|
|
86
87
|
controlBind: a(() => ({
|
|
87
|
-
id:
|
|
88
|
-
disabled:
|
|
89
|
-
readonly:
|
|
90
|
-
"aria-describedby":
|
|
88
|
+
id: j.value,
|
|
89
|
+
disabled: k.value,
|
|
90
|
+
readonly: A.value,
|
|
91
|
+
"aria-describedby": P.value,
|
|
91
92
|
required: C.value.required || void 0,
|
|
92
|
-
"aria-invalid":
|
|
93
|
+
"aria-invalid": O.value || void 0
|
|
93
94
|
})),
|
|
94
|
-
invalidated:
|
|
95
|
-
fieldLabelProps:
|
|
96
|
-
descriptionBind:
|
|
97
|
-
errorMessageBind:
|
|
98
|
-
showErrorMessageContent:
|
|
99
|
-
reservesErrorMessageSpace:
|
|
95
|
+
invalidated: O,
|
|
96
|
+
fieldLabelProps: R,
|
|
97
|
+
descriptionBind: z,
|
|
98
|
+
errorMessageBind: B,
|
|
99
|
+
showErrorMessageContent: N,
|
|
100
|
+
reservesErrorMessageSpace: M
|
|
100
101
|
};
|
|
101
102
|
}
|
|
102
103
|
//#endregion
|
|
@@ -2,21 +2,21 @@ import { UseFormFieldReturn } from './composables/useFormField';
|
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
api: UseFormFieldReturn;
|
|
4
4
|
};
|
|
5
|
-
declare var __VLS_8: {},
|
|
5
|
+
declare var __VLS_8: {}, __VLS_17: {}, __VLS_19: {}, __VLS_26: {}, __VLS_28: {}, __VLS_40: {}, __VLS_42: {};
|
|
6
6
|
type __VLS_Slots = {} & {
|
|
7
7
|
label?: (props: typeof __VLS_8) => any;
|
|
8
8
|
} & {
|
|
9
|
-
corner?: (props: typeof
|
|
9
|
+
corner?: (props: typeof __VLS_17) => any;
|
|
10
10
|
} & {
|
|
11
|
-
start?: (props: typeof
|
|
11
|
+
start?: (props: typeof __VLS_19) => any;
|
|
12
12
|
} & {
|
|
13
|
-
default?: (props: typeof
|
|
13
|
+
default?: (props: typeof __VLS_26) => any;
|
|
14
14
|
} & {
|
|
15
|
-
end?: (props: typeof
|
|
15
|
+
end?: (props: typeof __VLS_28) => any;
|
|
16
16
|
} & {
|
|
17
|
-
description?: (props: typeof
|
|
17
|
+
description?: (props: typeof __VLS_40) => any;
|
|
18
18
|
} & {
|
|
19
|
-
errorMessage?: (props: typeof
|
|
19
|
+
errorMessage?: (props: typeof __VLS_42) => any;
|
|
20
20
|
};
|
|
21
21
|
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
22
22
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -1,42 +1,47 @@
|
|
|
1
1
|
import { hasNamedSlot as e, hasSlotOrProp as t, isPropPresent as n } from "../../Utils/slotOrProp.js";
|
|
2
2
|
import r from "../Icon/Icon.js";
|
|
3
|
-
import i from "./
|
|
4
|
-
import
|
|
3
|
+
import i from "./FormFieldCorner.js";
|
|
4
|
+
import a from "./FormFieldLabel.js";
|
|
5
|
+
import { Fragment as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createSlots as u, createTextVNode as d, createVNode as f, defineComponent as p, guardReactiveProps as m, mergeProps as h, normalizeProps as g, openBlock as _, renderSlot as v, toDisplayString as y, unref as b, useSlots as x, withCtx as S } from "vue";
|
|
5
6
|
//#region src/Components/FormField/FilledFormField.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
-
var
|
|
7
|
+
var C = [
|
|
7
8
|
"data-invalid",
|
|
8
9
|
"aria-disabled",
|
|
9
10
|
"aria-readonly"
|
|
10
|
-
],
|
|
11
|
+
], w = ["id"], T = ["id", "aria-hidden"], E = /*@__PURE__*/ p({
|
|
11
12
|
__name: "FilledFormField",
|
|
12
13
|
props: { api: {} },
|
|
13
|
-
setup(
|
|
14
|
-
let
|
|
15
|
-
return (
|
|
16
|
-
"data-invalid":
|
|
17
|
-
"aria-disabled":
|
|
18
|
-
"aria-readonly":
|
|
14
|
+
setup(p) {
|
|
15
|
+
let E = x();
|
|
16
|
+
return (x, D) => (_(), c("div", h(p.api.rootBind.value, {
|
|
17
|
+
"data-invalid": p.api.invalidated.value || void 0,
|
|
18
|
+
"aria-disabled": p.api.isDisabled.value || void 0,
|
|
19
|
+
"aria-readonly": p.api.isReadonly.value || void 0
|
|
19
20
|
}), [
|
|
20
|
-
|
|
21
|
+
b(t)(b(E), "label", p.api.merged.value.label) || b(t)(b(E), "corner", p.api.merged.value.corner) ? (_(), c("div", g(h({ key: 0 }, p.api.headerBind.value)), [f(a, { api: p.api }, u({ _: 2 }, [b(e)(b(E), "label") ? {
|
|
21
22
|
name: "label",
|
|
22
|
-
fn:
|
|
23
|
+
fn: S(() => [v(x.$slots, "label")]),
|
|
23
24
|
key: "0"
|
|
24
|
-
} : void 0]), 1032, ["api"]),
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
25
|
+
} : void 0]), 1032, ["api"]), f(i, { api: p.api }, u({ _: 2 }, [b(e)(b(E), "corner") ? {
|
|
26
|
+
name: "corner",
|
|
27
|
+
fn: S(() => [v(x.$slots, "corner")]),
|
|
28
|
+
key: "0"
|
|
29
|
+
} : void 0]), 1032, ["api"])], 16)) : s("", !0),
|
|
30
|
+
l("div", g(m(p.api.containerBind.value)), [
|
|
31
|
+
b(e)(b(E), "start") ? (_(), c("div", g(h({ key: 0 }, p.api.startSlotBind.value)), [v(x.$slots, "start")], 16)) : b(n)(p.api.merged.value.start) ? (_(), c("div", g(h({ key: 1 }, p.api.startBind.value)), y(p.api.merged.value.start), 17)) : p.api.merged.value.startIcon ? (_(), c("div", g(h({ key: 2 }, p.api.startBind.value)), [f(b(r), h({ size: p.api.merged.value.size }, p.api.startIconBind.value, { icon: p.api.merged.value.startIcon }), null, 16, ["size", "icon"])], 16)) : s("", !0),
|
|
32
|
+
v(x.$slots, "default"),
|
|
33
|
+
b(e)(b(E), "end") ? (_(), c("div", g(h({ key: 3 }, p.api.endSlotBind.value)), [v(x.$slots, "end")], 16)) : b(n)(p.api.merged.value.end) ? (_(), c("div", g(h({ key: 4 }, p.api.endBind.value)), y(p.api.merged.value.end), 17)) : p.api.invalidated.value && p.api.merged.value.showErrorIcon !== !1 ? (_(), c("div", g(h({ key: 5 }, p.api.endBind.value)), [f(b(r), h({
|
|
34
|
+
icon: p.api.errorIcon.value,
|
|
35
|
+
size: p.api.merged.value.size
|
|
36
|
+
}, p.api.endIconBind.value), null, 16, ["icon", "size"])], 16)) : p.api.merged.value.endIcon ? (_(), c("div", g(h({ key: 6 }, p.api.endBind.value)), [f(b(r), h({ size: p.api.merged.value.size }, p.api.endIconBind.value, { icon: p.api.merged.value.endIcon }), null, 16, ["size", "icon"])], 16)) : s("", !0)
|
|
32
37
|
], 16),
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
id: `${
|
|
36
|
-
"aria-hidden": !
|
|
37
|
-
}), [
|
|
38
|
-
], 16,
|
|
38
|
+
p.api.showDescriptionContent.value ? (_(), c("p", h({ key: 1 }, p.api.descriptionBind.value, { id: `${p.api.controlId.value}-description` }), [b(e)(b(E), "description") ? v(x.$slots, "description", {}, void 0, void 0, 0) : b(n)(p.api.merged.value.description) ? (_(), c(o, { key: 1 }, [d(y(p.api.merged.value.description), 1)], 64)) : s("", !0)], 16, w)) : s("", !0),
|
|
39
|
+
p.api.showErrorMessageRow.value ? (_(), c("p", h({ key: 2 }, p.api.errorBind.value, {
|
|
40
|
+
id: `${p.api.controlId.value}-error`,
|
|
41
|
+
"aria-hidden": !p.api.showErrorMessageContent.value || void 0
|
|
42
|
+
}), [p.api.showErrorMessageContent.value ? (_(), c(o, { key: 0 }, [b(e)(b(E), "errorMessage") ? v(x.$slots, "errorMessage", {}, void 0, void 0, 0) : b(n)(p.api.merged.value.errorMessage) ? (_(), c(o, { key: 1 }, [d(y(p.api.merged.value.errorMessage), 1)], 64)) : s("", !0)], 64)) : s("", !0)], 16, T)) : s("", !0)
|
|
43
|
+
], 16, C));
|
|
39
44
|
}
|
|
40
45
|
});
|
|
41
46
|
//#endregion
|
|
42
|
-
export {
|
|
47
|
+
export { E as default };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { UseFormFieldReturn } from './composables/useFormField';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
api: UseFormFieldReturn;
|
|
4
|
+
};
|
|
5
|
+
declare var __VLS_8: {};
|
|
6
|
+
type __VLS_Slots = {} & {
|
|
7
|
+
corner?: (props: typeof __VLS_8) => any;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
12
|
+
export default _default;
|
|
13
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
14
|
+
new (): {
|
|
15
|
+
$slots: S;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { hasNamedSlot as e, hasSlotOrProp as t } from "../../Utils/slotOrProp.js";
|
|
2
|
+
import n from "../Label/Label.js";
|
|
3
|
+
import { Fragment as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createTextVNode as s, defineComponent as c, mergeProps as l, normalizeProps as u, openBlock as d, renderSlot as f, toDisplayString as p, unref as m, useSlots as h, withCtx as g } from "vue";
|
|
4
|
+
//#region src/Components/FormField/FormFieldCorner.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
+
var _ = /*@__PURE__*/ c({
|
|
6
|
+
__name: "FormFieldCorner",
|
|
7
|
+
props: { api: {} },
|
|
8
|
+
setup(c) {
|
|
9
|
+
let _ = h();
|
|
10
|
+
return (h, v) => m(t)(m(_), "corner", c.api.merged.value.corner) ? (d(), i(m(n), u(l({ key: 0 }, c.api.fieldCornerProps.value)), {
|
|
11
|
+
default: g(() => [m(e)(m(_), "corner") ? f(h.$slots, "corner", {}, void 0, void 0, 0) : (d(), o(r, { key: 1 }, [s(p(c.api.merged.value.corner), 1)], 64))]),
|
|
12
|
+
_: 3
|
|
13
|
+
}, 16)) : a("", !0);
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
//#endregion
|
|
17
|
+
export { _ as default };
|
|
@@ -2,21 +2,21 @@ import { UseFormFieldReturn } from './composables/useFormField';
|
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
api: UseFormFieldReturn;
|
|
4
4
|
};
|
|
5
|
-
declare var __VLS_8: {},
|
|
5
|
+
declare var __VLS_8: {}, __VLS_17: {}, __VLS_19: {}, __VLS_26: {}, __VLS_28: {}, __VLS_40: {}, __VLS_42: {};
|
|
6
6
|
type __VLS_Slots = {} & {
|
|
7
7
|
label?: (props: typeof __VLS_8) => any;
|
|
8
8
|
} & {
|
|
9
|
-
corner?: (props: typeof
|
|
9
|
+
corner?: (props: typeof __VLS_17) => any;
|
|
10
10
|
} & {
|
|
11
|
-
start?: (props: typeof
|
|
11
|
+
start?: (props: typeof __VLS_19) => any;
|
|
12
12
|
} & {
|
|
13
|
-
default?: (props: typeof
|
|
13
|
+
default?: (props: typeof __VLS_26) => any;
|
|
14
14
|
} & {
|
|
15
|
-
end?: (props: typeof
|
|
15
|
+
end?: (props: typeof __VLS_28) => any;
|
|
16
16
|
} & {
|
|
17
|
-
description?: (props: typeof
|
|
17
|
+
description?: (props: typeof __VLS_40) => any;
|
|
18
18
|
} & {
|
|
19
|
-
errorMessage?: (props: typeof
|
|
19
|
+
errorMessage?: (props: typeof __VLS_42) => any;
|
|
20
20
|
};
|
|
21
21
|
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
22
22
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { hasNamedSlot as e,
|
|
2
|
-
import
|
|
1
|
+
import { hasNamedSlot as e, isPropPresent as t } from "../../Utils/slotOrProp.js";
|
|
2
|
+
import n from "../Icon/Icon.js";
|
|
3
|
+
import r from "./FormFieldCorner.js";
|
|
3
4
|
import i from "./FormFieldLabel.js";
|
|
4
5
|
import { Fragment as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createSlots as l, createTextVNode as u, createVNode as d, defineComponent as f, guardReactiveProps as p, mergeProps as m, normalizeProps as h, openBlock as g, renderSlot as _, toDisplayString as v, unref as y, useSlots as b, withCtx as x } from "vue";
|
|
5
6
|
//#region src/Components/FormField/NotchedFormField.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -21,19 +22,23 @@ var S = [
|
|
|
21
22
|
name: "label",
|
|
22
23
|
fn: x(() => [_(b.$slots, "label")]),
|
|
23
24
|
key: "0"
|
|
24
|
-
} : void 0]), 1032, ["api"]),
|
|
25
|
-
|
|
25
|
+
} : void 0]), 1032, ["api"]), d(r, { api: f.api }, l({ _: 2 }, [y(e)(y(E), "corner") ? {
|
|
26
|
+
name: "corner",
|
|
27
|
+
fn: x(() => [_(b.$slots, "corner")]),
|
|
28
|
+
key: "0"
|
|
29
|
+
} : void 0]), 1032, ["api"])], 16)) : o("", !0), c("div", C, [
|
|
30
|
+
y(e)(y(E), "start") ? (g(), s("div", h(m({ key: 0 }, f.api.startSlotBind.value)), [_(b.$slots, "start")], 16)) : y(t)(f.api.merged.value.start) ? (g(), s("div", h(m({ key: 1 }, f.api.startBind.value)), v(f.api.merged.value.start), 17)) : f.api.merged.value.startIcon ? (g(), s("div", h(m({ key: 2 }, f.api.startBind.value)), [d(y(n), m({ size: f.api.merged.value.size }, f.api.startIconBind.value, { icon: f.api.merged.value.startIcon }), null, 16, ["size", "icon"])], 16)) : o("", !0),
|
|
26
31
|
_(b.$slots, "default"),
|
|
27
|
-
y(e)(y(E), "end") ? (g(), s("div", h(m({ key: 3 }, f.api.endSlotBind.value)), [_(b.$slots, "end")], 16)) : y(
|
|
32
|
+
y(e)(y(E), "end") ? (g(), s("div", h(m({ key: 3 }, f.api.endSlotBind.value)), [_(b.$slots, "end")], 16)) : y(t)(f.api.merged.value.end) ? (g(), s("div", h(m({ key: 4 }, f.api.endBind.value)), v(f.api.merged.value.end), 17)) : f.api.invalidated.value && f.api.merged.value.showErrorIcon !== !1 ? (g(), s("div", h(m({ key: 5 }, f.api.endBind.value)), [d(y(n), m({
|
|
28
33
|
icon: f.api.errorIcon.value,
|
|
29
34
|
size: f.api.merged.value.size
|
|
30
|
-
}, f.api.endIconBind.value), null, 16, ["icon", "size"])], 16)) : f.api.merged.value.endIcon ? (g(), s("div", h(m({ key: 6 }, f.api.endBind.value)), [d(y(
|
|
35
|
+
}, f.api.endIconBind.value), null, 16, ["icon", "size"])], 16)) : f.api.merged.value.endIcon ? (g(), s("div", h(m({ key: 6 }, f.api.endBind.value)), [d(y(n), m({ size: f.api.merged.value.size }, f.api.endIconBind.value, { icon: f.api.merged.value.endIcon }), null, 16, ["size", "icon"])], 16)) : o("", !0)
|
|
31
36
|
])], 16),
|
|
32
|
-
|
|
33
|
-
f.api.
|
|
37
|
+
f.api.showDescriptionContent.value ? (g(), s("p", m({ key: 0 }, f.api.descriptionBind.value, { id: `${f.api.controlId.value}-description` }), [y(e)(y(E), "description") ? _(b.$slots, "description", {}, void 0, void 0, 0) : y(t)(f.api.merged.value.description) ? (g(), s(a, { key: 1 }, [u(v(f.api.merged.value.description), 1)], 64)) : o("", !0)], 16, w)) : o("", !0),
|
|
38
|
+
f.api.showErrorMessageRow.value ? (g(), s("p", m({ key: 1 }, f.api.errorBind.value, {
|
|
34
39
|
id: `${f.api.controlId.value}-error`,
|
|
35
40
|
"aria-hidden": !f.api.showErrorMessageContent.value || void 0
|
|
36
|
-
}), [f.api.showErrorMessageContent.value ? (g(), s(a, { key: 0 }, [y(e)(y(E), "errorMessage") ? _(b.$slots, "errorMessage", {}, void 0, void 0, 0) : y(
|
|
41
|
+
}), [f.api.showErrorMessageContent.value ? (g(), s(a, { key: 0 }, [y(e)(y(E), "errorMessage") ? _(b.$slots, "errorMessage", {}, void 0, void 0, 0) : y(t)(f.api.merged.value.errorMessage) ? (g(), s(a, { key: 1 }, [u(v(f.api.merged.value.errorMessage), 1)], 64)) : o("", !0)], 64)) : o("", !0)], 16, T)) : o("", !0)
|
|
37
42
|
], 16, S));
|
|
38
43
|
}
|
|
39
44
|
});
|
|
@@ -2,21 +2,21 @@ import { UseFormFieldReturn } from './composables/useFormField';
|
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
api: UseFormFieldReturn;
|
|
4
4
|
};
|
|
5
|
-
declare var __VLS_8: {},
|
|
5
|
+
declare var __VLS_8: {}, __VLS_17: {}, __VLS_19: {}, __VLS_26: {}, __VLS_28: {}, __VLS_40: {}, __VLS_42: {};
|
|
6
6
|
type __VLS_Slots = {} & {
|
|
7
7
|
label?: (props: typeof __VLS_8) => any;
|
|
8
8
|
} & {
|
|
9
|
-
corner?: (props: typeof
|
|
9
|
+
corner?: (props: typeof __VLS_17) => any;
|
|
10
10
|
} & {
|
|
11
|
-
start?: (props: typeof
|
|
11
|
+
start?: (props: typeof __VLS_19) => any;
|
|
12
12
|
} & {
|
|
13
|
-
default?: (props: typeof
|
|
13
|
+
default?: (props: typeof __VLS_26) => any;
|
|
14
14
|
} & {
|
|
15
|
-
end?: (props: typeof
|
|
15
|
+
end?: (props: typeof __VLS_28) => any;
|
|
16
16
|
} & {
|
|
17
|
-
description?: (props: typeof
|
|
17
|
+
description?: (props: typeof __VLS_40) => any;
|
|
18
18
|
} & {
|
|
19
|
-
errorMessage?: (props: typeof
|
|
19
|
+
errorMessage?: (props: typeof __VLS_42) => any;
|
|
20
20
|
};
|
|
21
21
|
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
22
22
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|