@bridge-ui/vue 0.7.0 → 0.9.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-components/SKILL.md +2 -1
- package/ai/skills/bridge-ui-forms/SKILL.md +1 -1
- package/dist/Components/Accordion/composables/useAccordion.d.ts +1 -1
- package/dist/Components/ActionFooter/ActionFooter.js +5 -0
- package/dist/Components/ActionFooter/ActionFooter.vue.d.ts +10 -0
- package/dist/Components/ActionFooter/ActionFooter.vue_vue_type_script_setup_true_lang.js +35 -0
- package/dist/Components/ActionFooter/actionFooter.types.d.ts +107 -0
- package/dist/Components/ActionFooter/composables/useActionFooter.d.ts +35 -0
- package/dist/Components/ActionFooter/composables/useActionFooter.js +53 -0
- package/dist/Components/ActionFooter/index.d.ts +3 -0
- package/dist/Components/ActionFooter/index.js +3 -0
- 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 +2 -1
- package/dist/Components/Alert/composables/useAlert.js +60 -57
- package/dist/Components/Autocomplete/Autocomplete.vue.d.ts +3 -3
- package/dist/Components/Autocomplete/Autocomplete.vue_vue_type_script_setup_true_lang.js +2 -1
- package/dist/Components/Autocomplete/autocomplete.types.d.ts +1 -1
- package/dist/Components/Autocomplete/composables/useAutocomplete.d.ts +5 -3
- package/dist/Components/Autocomplete/composables/useAutocomplete.js +1 -1
- package/dist/Components/Badge/composables/useBadge.d.ts +1 -1
- package/dist/Components/BaseField/BaseField.vue_vue_type_script_setup_true_lang.js +9 -9
- package/dist/Components/BaseField/baseField.types.d.ts +15 -4
- package/dist/Components/BaseField/composables/useBaseField.d.ts +6 -2
- package/dist/Components/BaseField/composables/useBaseField.js +67 -67
- package/dist/Components/BreadcrumbItem/composables/useBreadcrumbItem.d.ts +3 -3
- package/dist/Components/Button/Button.vue_vue_type_script_setup_true_lang.js +24 -25
- package/dist/Components/Button/composables/useButton.d.ts +4 -2
- package/dist/Components/Button/composables/useButton.js +46 -40
- package/dist/Components/ButtonGroup/composables/useButtonGroup.d.ts +1 -1
- 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/Card/composables/useCard.d.ts +1 -1
- package/dist/Components/Chip/Chip.vue.d.ts +1 -1
- package/dist/Components/Chip/composables/useChip.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 +2 -1
- package/dist/Components/ColorField/colorField.types.d.ts +1 -1
- package/dist/Components/ColorField/composables/useColorField.d.ts +5 -3
- package/dist/Components/ColorField/composables/useColorField.js +1 -1
- package/dist/Components/ColorPicker/ColorPicker.vue_vue_type_script_setup_true_lang.js +41 -40
- package/dist/Components/ColorPicker/composables/useColorPicker.d.ts +1 -3
- package/dist/Components/ColorPicker/composables/useColorPicker.js +0 -2
- package/dist/Components/DataTable/DataTable.vue_vue_type_script_setup_true_lang.js +8 -0
- package/dist/Components/DataTable/DataTableFilterMenu.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/Components/DataTable/composables/useDataTable.d.ts +1 -1
- package/dist/Components/DataTable/composables/useDataTable.js +86 -86
- package/dist/Components/DataTable/composables/useDataTablePagination.d.ts +1 -1
- package/dist/Components/DataTable/dataTable.types.d.ts +22 -4
- package/dist/Components/DateField/DateField.vue_vue_type_script_setup_true_lang.js +2 -1
- package/dist/Components/DateField/composables/useDateField.d.ts +5 -3
- package/dist/Components/DateField/composables/useDateField.js +1 -1
- package/dist/Components/DateField/dateField.types.d.ts +1 -1
- package/dist/Components/DatePicker/DatePicker.vue_vue_type_script_setup_true_lang.js +18 -17
- package/dist/Components/DatePicker/composables/useDatePicker.d.ts +1 -3
- package/dist/Components/DatePicker/composables/useDatePicker.js +45 -48
- package/dist/Components/DateRangeField/DateRangeField.vue_vue_type_script_setup_true_lang.js +2 -1
- package/dist/Components/DateRangeField/composables/useDateRangeField.d.ts +5 -3
- package/dist/Components/DateRangeField/composables/useDateRangeField.js +1 -1
- package/dist/Components/DateRangeField/dateRangeField.types.d.ts +1 -1
- package/dist/Components/DateRangePicker/DateRangePicker.vue_vue_type_script_setup_true_lang.js +18 -17
- package/dist/Components/DateRangePicker/composables/useDateRangePicker.d.ts +1 -3
- package/dist/Components/DateRangePicker/composables/useDateRangePicker.js +45 -48
- package/dist/Components/DateTimeField/DateTimeField.vue_vue_type_script_setup_true_lang.js +2 -1
- package/dist/Components/DateTimeField/composables/useDateTimeField.d.ts +5 -3
- package/dist/Components/DateTimeField/composables/useDateTimeField.js +1 -1
- package/dist/Components/DateTimeField/dateTimeField.types.d.ts +1 -1
- package/dist/Components/DateTimePicker/DateTimePicker.vue_vue_type_script_setup_true_lang.js +25 -24
- package/dist/Components/DateTimePicker/composables/useDateTimePicker.d.ts +1 -3
- package/dist/Components/DateTimePicker/composables/useDateTimePicker.js +75 -78
- package/dist/Components/DateTimeRangeField/DateTimeRangeField.vue_vue_type_script_setup_true_lang.js +2 -1
- package/dist/Components/DateTimeRangeField/composables/useDateTimeRangeField.d.ts +5 -3
- package/dist/Components/DateTimeRangeField/composables/useDateTimeRangeField.js +1 -1
- package/dist/Components/DateTimeRangeField/dateTimeRangeField.types.d.ts +1 -1
- package/dist/Components/DateTimeRangePicker/DateTimeRangePicker.vue_vue_type_script_setup_true_lang.js +29 -28
- package/dist/Components/DateTimeRangePicker/composables/useDateTimeRangePicker.d.ts +1 -3
- package/dist/Components/DateTimeRangePicker/composables/useDateTimeRangePicker.js +84 -87
- package/dist/Components/Drawer/composables/useDrawer.js +75 -72
- 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_vue_type_script_setup_true_lang.js +3 -3
- package/dist/Components/FormField/NotchedFormField.vue_vue_type_script_setup_true_lang.js +31 -31
- package/dist/Components/FormField/OutlinedFormField.vue_vue_type_script_setup_true_lang.js +3 -3
- package/dist/Components/FormField/StackedFormField.vue_vue_type_script_setup_true_lang.js +34 -34
- package/dist/Components/FormField/UnderlinedFormField.vue_vue_type_script_setup_true_lang.js +3 -3
- package/dist/Components/FormField/composables/useFormField.d.ts +7 -3
- package/dist/Components/FormField/composables/useFormField.js +148 -144
- package/dist/Components/FormField/formField.types.d.ts +14 -4
- package/dist/Components/ListItem/ListItem.vue.d.ts +1 -1
- package/dist/Components/ListItem/composables/useListItem.d.ts +1 -1
- package/dist/Components/Listbox/Listbox.vue.d.ts +4 -4
- package/dist/Components/Listbox/Listbox.vue_vue_type_script_setup_true_lang.js +69 -71
- package/dist/Components/Listbox/composables/useListbox.d.ts +0 -2
- package/dist/Components/Listbox/composables/useListbox.js +63 -66
- package/dist/Components/Menu/composables/useMenu.js +125 -121
- package/dist/Components/Modal/composables/useModal.js +117 -114
- package/dist/Components/NumberField/NumberField.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/Components/NumberField/composables/useNumberField.d.ts +4 -2
- 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 +3 -1
- package/dist/Components/Pagination/composables/usePagination.d.ts +1 -1
- package/dist/Components/PasswordField/PasswordField.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/Components/PasswordField/composables/usePasswordField.d.ts +4 -2
- package/dist/Components/Select/Select.vue.d.ts +2 -2
- package/dist/Components/Select/Select.vue_vue_type_script_setup_true_lang.js +2 -1
- package/dist/Components/Select/composables/useSelect.d.ts +5 -3
- package/dist/Components/Select/composables/useSelect.js +1 -1
- package/dist/Components/Select/select.types.d.ts +1 -1
- 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/Snackbar/Snackbar.vue_vue_type_script_setup_true_lang.js +31 -28
- package/dist/Components/Snackbar/composables/useSnackbar.d.ts +2 -1
- package/dist/Components/Snackbar/composables/useSnackbar.js +135 -128
- package/dist/Components/Step/composables/useStep.d.ts +1 -1
- package/dist/Components/TextField/TextField.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/Components/TextField/composables/useTextField.d.ts +4 -2
- package/dist/Components/Textarea/Textarea.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/Components/Textarea/composables/useTextarea.d.ts +4 -2
- package/dist/Components/TimeField/TimeField.vue_vue_type_script_setup_true_lang.js +2 -1
- package/dist/Components/TimeField/composables/useTimeField.d.ts +5 -3
- package/dist/Components/TimeField/composables/useTimeField.js +1 -1
- package/dist/Components/TimeField/timeField.types.d.ts +1 -1
- package/dist/Components/TimePanel/composables/useTimePanel.d.ts +1 -1
- package/dist/Components/TimePicker/TimePicker.vue_vue_type_script_setup_true_lang.js +38 -37
- package/dist/Components/TimePicker/composables/useTimePicker.d.ts +1 -3
- package/dist/Components/TimePicker/composables/useTimePicker.js +54 -57
- package/dist/Components/TimeRangeField/TimeRangeField.vue_vue_type_script_setup_true_lang.js +2 -1
- package/dist/Components/TimeRangeField/composables/useTimeRangeField.d.ts +5 -3
- package/dist/Components/TimeRangeField/composables/useTimeRangeField.js +1 -1
- package/dist/Components/TimeRangeField/timeRangeField.types.d.ts +1 -1
- package/dist/Components/TimeRangePicker/TimeRangePicker.vue_vue_type_script_setup_true_lang.js +61 -60
- package/dist/Components/TimeRangePicker/composables/useTimeRangePicker.d.ts +1 -3
- package/dist/Components/TimeRangePicker/composables/useTimeRangePicker.js +41 -43
- package/dist/Components/ToggleGroup/composables/useToggleGroup.d.ts +1 -1
- package/dist/Components/Tooltip/Tooltip.vue.d.ts +1 -1
- package/dist/Components/Tooltip/composables/useTooltip.d.ts +1 -1
- package/dist/Components/Tooltip/composables/useTooltip.js +6 -1
- package/dist/Utils/index.d.ts +11 -2
- package/dist/Utils/index.js +31 -27
- package/dist/augments.d.ts +13 -8
- package/dist/index.d.ts +2 -0
- package/dist/index.js +162 -160
- package/docs/README.md +1 -0
- package/docs/components/ActionFooter.md +85 -0
- package/docs/components/Alert.md +4 -2
- package/docs/components/Autocomplete.md +2 -2
- package/docs/components/BaseField.md +19 -18
- package/docs/components/BridgeUIProvider.md +30 -7
- package/docs/components/ColorField.md +1 -1
- package/docs/components/ColorPicker.md +1 -1
- package/docs/components/DataTable.md +16 -4
- package/docs/components/DateField.md +1 -1
- package/docs/components/DatePicker.md +1 -1
- package/docs/components/DateRangeField.md +1 -1
- package/docs/components/DateRangePicker.md +1 -1
- package/docs/components/DateTimeField.md +1 -1
- package/docs/components/DateTimePicker.md +1 -1
- package/docs/components/DateTimeRangeField.md +1 -1
- package/docs/components/DateTimeRangePicker.md +1 -1
- package/docs/components/FormControl.md +1 -1
- package/docs/components/FormField.md +28 -27
- package/docs/components/Select.md +2 -2
- package/docs/components/TimeField.md +1 -1
- package/docs/components/TimePicker.md +1 -1
- package/docs/components/TimeRangeField.md +1 -1
- package/docs/components/TimeRangePicker.md +1 -1
- package/package.json +2 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: bridge-ui-components
|
|
3
3
|
description: >-
|
|
4
|
-
Use Bridge UI Vue components — Button, ButtonGroup, Avatar, Card, Alert, Accordion, Badge, Icon,
|
|
4
|
+
Use Bridge UI Vue components — Button, ButtonGroup, Avatar, Card, Alert, Accordion, ActionFooter, Badge, Icon,
|
|
5
5
|
Link, List, Table, DataTable, Tabs, Spinner, Skeleton, EmptyState, Sidebar, Progress, Stepper, Pagination, TextField, Select,
|
|
6
6
|
Autocomplete, DateField, DatePicker, DateRangeField, DateRangePicker,
|
|
7
7
|
TimeField, TimePicker, DateTimeField, DateTimePicker, ColorField, ColorPicker,
|
|
@@ -24,6 +24,7 @@ In templates, use kebab-case attrs (`start-icon`, `custom-props`, `error-message
|
|
|
24
24
|
| Badge | `.ai/docs/components/Badge.md` |
|
|
25
25
|
| Alert | `.ai/docs/components/Alert.md` |
|
|
26
26
|
| Accordion | `.ai/docs/components/Accordion.md` |
|
|
27
|
+
| Action footer | `.ai/docs/components/ActionFooter.md` |
|
|
27
28
|
| Stepper | `.ai/docs/components/Stepper.md` |
|
|
28
29
|
| Icon | `.ai/docs/components/Icon.md` |
|
|
29
30
|
| Lists | `.ai/docs/components/List.md` |
|
|
@@ -45,4 +45,4 @@ Controlled fields: **`v-model` / `modelValue`**. Never React `value`/`onChange`.
|
|
|
45
45
|
1. Map validation to `error`, `error-message`, `description`, `disabled`, `readOnly`.
|
|
46
46
|
2. Native input attrs often go through `:custom-props` → `input` — see TextField docs.
|
|
47
47
|
3. Use only documented option shapes for Select/Autocomplete.
|
|
48
|
-
4. Prefer public fields/controls in apps. `FormField`, `FormControl`, and `BaseField` are exported building blocks for advanced composition
|
|
48
|
+
4. Prefer public fields/controls in apps. `FormField`, `FormControl`, and `BaseField` are exported building blocks for advanced composition. Theme shared chrome via `components.FormField` / `FormControl` / `BaseField` (a public entry such as `components.TextField` still overrides `defaultProps`). Chrome tokens live on those shared keys. Dropdown tokens live on `components.Listbox`. Time overlay chrome: `components.TimePanel` (`TimePicker` / `TimeRangePicker` override). Shared form density: `global.formDefaults: { size, rounded }` (Radio/Switch/BaseField/FormControl ignore `rounded`).
|
|
@@ -9,7 +9,7 @@ export declare function useAccordion(props: AccordionOwnProps, libDefaults: Acco
|
|
|
9
9
|
merged: import('vue').ComputedRef<AccordionMerged>;
|
|
10
10
|
rootBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<{
|
|
11
11
|
class: string;
|
|
12
|
-
}, "class", import('vue').HTMLAttributes | undefined, Omit<AccordionProps, "color" | "size" | "classes" | "customProps" | "
|
|
12
|
+
}, "class", import('vue').HTMLAttributes | undefined, Omit<AccordionProps, "color" | "size" | "classes" | "customProps" | "disabled" | "variant" | "multiple">>>;
|
|
13
13
|
contextValue: import('vue').ComputedRef<AccordionContextValue>;
|
|
14
14
|
};
|
|
15
15
|
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ActionFooterOwnProps } from './actionFooter.types';
|
|
2
|
+
declare const __VLS_export: import('vue').DefineComponent<ActionFooterOwnProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
3
|
+
apply: () => any;
|
|
4
|
+
cancel: () => any;
|
|
5
|
+
}, string, import('vue').PublicProps, Readonly<ActionFooterOwnProps> & Readonly<{
|
|
6
|
+
onApply?: (() => any) | undefined;
|
|
7
|
+
onCancel?: (() => any) | undefined;
|
|
8
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
declare const _default: typeof __VLS_export;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { useActionFooter as e } from "./composables/useActionFooter.js";
|
|
2
|
+
import t from "../Button/Button.js";
|
|
3
|
+
import { createElementBlock as n, createTextVNode as r, createVNode as i, defineComponent as a, guardReactiveProps as o, normalizeProps as s, openBlock as c, toDisplayString as l, unref as u, withCtx as d } from "vue";
|
|
4
|
+
//#region src/Components/ActionFooter/ActionFooter.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
+
var f = /*@__PURE__*/ a({
|
|
6
|
+
inheritAttrs: !1,
|
|
7
|
+
__name: "ActionFooter",
|
|
8
|
+
props: {
|
|
9
|
+
applyColor: {},
|
|
10
|
+
applyLabel: {},
|
|
11
|
+
applyVariant: {},
|
|
12
|
+
cancelColor: {},
|
|
13
|
+
cancelLabel: {},
|
|
14
|
+
cancelVariant: {},
|
|
15
|
+
classes: {},
|
|
16
|
+
customProps: {}
|
|
17
|
+
},
|
|
18
|
+
emits: ["apply", "cancel"],
|
|
19
|
+
setup(a, { emit: f }) {
|
|
20
|
+
let { rootBind: p, applyLabel: m, cancelLabel: h, applyButtonBind: g, cancelButtonBind: _ } = e(a, {
|
|
21
|
+
applyColor: "primary",
|
|
22
|
+
cancelVariant: "flat",
|
|
23
|
+
cancelColor: "secondary"
|
|
24
|
+
}, f);
|
|
25
|
+
return (e, a) => (c(), n("div", s(o(u(p))), [i(u(t), s(o(u(_))), {
|
|
26
|
+
default: d(() => [r(l(u(h)), 1)]),
|
|
27
|
+
_: 1
|
|
28
|
+
}, 16), i(u(t), s(o(u(g))), {
|
|
29
|
+
default: d(() => [r(l(u(m)), 1)]),
|
|
30
|
+
_: 1
|
|
31
|
+
}, 16)], 16));
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
//#endregion
|
|
35
|
+
export { f as default };
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'vue';
|
|
2
|
+
import { ButtonColor, ButtonVariant } from '@bridge-ui/core/Tokens';
|
|
3
|
+
import { MergeHtmlProps, MergeProps } from '@bridge-ui/core/Utils';
|
|
4
|
+
import { ButtonColorOverrides, ButtonProps, ButtonVariantOverrides } from '../Button/button.types';
|
|
5
|
+
/**
|
|
6
|
+
* Props accepted by the footer buttons.
|
|
7
|
+
*/
|
|
8
|
+
type ActionFooterButtonProps = Partial<ButtonProps>;
|
|
9
|
+
export interface ActionFooterClasses {
|
|
10
|
+
/**
|
|
11
|
+
* Classes merged onto the Apply button.
|
|
12
|
+
*/
|
|
13
|
+
applyButton?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Classes merged onto the Cancel button.
|
|
16
|
+
*/
|
|
17
|
+
cancelButton?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Classes merged onto the root.
|
|
20
|
+
*/
|
|
21
|
+
root?: string;
|
|
22
|
+
}
|
|
23
|
+
export interface ActionFooterCustomProps {
|
|
24
|
+
/**
|
|
25
|
+
* Props forwarded to the Apply button.
|
|
26
|
+
*
|
|
27
|
+
* @default undefined
|
|
28
|
+
*/
|
|
29
|
+
applyButton?: ActionFooterButtonProps;
|
|
30
|
+
/**
|
|
31
|
+
* Props forwarded to the Cancel button.
|
|
32
|
+
*
|
|
33
|
+
* @default undefined
|
|
34
|
+
*/
|
|
35
|
+
cancelButton?: ActionFooterButtonProps;
|
|
36
|
+
/**
|
|
37
|
+
* Props forwarded to the root element.
|
|
38
|
+
*
|
|
39
|
+
* @default undefined
|
|
40
|
+
*/
|
|
41
|
+
root?: HTMLAttributes;
|
|
42
|
+
}
|
|
43
|
+
export interface ActionFooterEmits {
|
|
44
|
+
/**
|
|
45
|
+
* Emitted when Apply is pressed.
|
|
46
|
+
*/
|
|
47
|
+
apply: [];
|
|
48
|
+
/**
|
|
49
|
+
* Emitted when Cancel is pressed.
|
|
50
|
+
*/
|
|
51
|
+
cancel: [];
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Cancel / Apply pair used as the default footer in pickers and listboxes.
|
|
55
|
+
*/
|
|
56
|
+
export interface ActionFooterOwnProps {
|
|
57
|
+
/**
|
|
58
|
+
* Color of the Apply button.
|
|
59
|
+
*
|
|
60
|
+
* @default "primary"
|
|
61
|
+
*/
|
|
62
|
+
applyColor?: MergeProps<ButtonColor, ButtonColorOverrides>;
|
|
63
|
+
/**
|
|
64
|
+
* Label of the Apply button. Falls back to the i18n string `Apply`.
|
|
65
|
+
*
|
|
66
|
+
* @default undefined
|
|
67
|
+
*/
|
|
68
|
+
applyLabel?: string;
|
|
69
|
+
/**
|
|
70
|
+
* Variant of the Apply button. Falls back to the `Button` default.
|
|
71
|
+
*
|
|
72
|
+
* @default undefined
|
|
73
|
+
*/
|
|
74
|
+
applyVariant?: MergeProps<ButtonVariant, ButtonVariantOverrides>;
|
|
75
|
+
/**
|
|
76
|
+
* Color of the Cancel button.
|
|
77
|
+
*
|
|
78
|
+
* @default "secondary"
|
|
79
|
+
*/
|
|
80
|
+
cancelColor?: MergeProps<ButtonColor, ButtonColorOverrides>;
|
|
81
|
+
/**
|
|
82
|
+
* Label of the Cancel button. Falls back to the i18n string `Cancel`.
|
|
83
|
+
*
|
|
84
|
+
* @default undefined
|
|
85
|
+
*/
|
|
86
|
+
cancelLabel?: string;
|
|
87
|
+
/**
|
|
88
|
+
* Variant of the Cancel button.
|
|
89
|
+
*
|
|
90
|
+
* @default "flat"
|
|
91
|
+
*/
|
|
92
|
+
cancelVariant?: MergeProps<ButtonVariant, ButtonVariantOverrides>;
|
|
93
|
+
/**
|
|
94
|
+
* The classes to apply to the footer.
|
|
95
|
+
*
|
|
96
|
+
* @default undefined
|
|
97
|
+
*/
|
|
98
|
+
classes?: ActionFooterClasses;
|
|
99
|
+
/**
|
|
100
|
+
* Extra props for internal parts (`root`, `applyButton`, `cancelButton`).
|
|
101
|
+
*
|
|
102
|
+
* @default undefined
|
|
103
|
+
*/
|
|
104
|
+
customProps?: ActionFooterCustomProps;
|
|
105
|
+
}
|
|
106
|
+
export type ActionFooterProps = MergeHtmlProps<ActionFooterOwnProps, HTMLAttributes>;
|
|
107
|
+
export {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { SetupContext } from 'vue';
|
|
2
|
+
import { LibDefaultsShape, MergeLibDefaults } from '@bridge-ui/core/Utils';
|
|
3
|
+
import { ActionFooterClasses, ActionFooterEmits, ActionFooterOwnProps, ActionFooterProps } from '../actionFooter.types';
|
|
4
|
+
type ActionFooterLibDefaults = LibDefaultsShape<ActionFooterOwnProps, "applyColor" | "cancelColor" | "cancelVariant">;
|
|
5
|
+
type ActionFooterMerged = MergeLibDefaults<ActionFooterOwnProps, ActionFooterLibDefaults>;
|
|
6
|
+
export declare function useActionFooter(props: ActionFooterOwnProps, libDefaults: ActionFooterLibDefaults, emit: SetupContext<ActionFooterEmits>["emit"]): {
|
|
7
|
+
merged: import('vue').ComputedRef<ActionFooterMerged>;
|
|
8
|
+
rootBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, Omit<ActionFooterProps, "classes" | "customProps" | "applyColor" | "applyLabel" | "applyVariant" | "cancelColor" | "cancelLabel" | "cancelVariant">>>;
|
|
9
|
+
applyLabel: import('vue').ComputedRef<string>;
|
|
10
|
+
cancelLabel: import('vue').ComputedRef<string>;
|
|
11
|
+
mergedClasses: import('vue').ComputedRef<Partial<ActionFooterClasses>>;
|
|
12
|
+
applyButtonBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", (Partial<import('@bridge-ui/core/Utils').MergeHtmlProps<import('../../Button').ButtonOwnProps & {
|
|
13
|
+
as: "span";
|
|
14
|
+
}, import('vue').HTMLAttributes>> | Partial<import('@bridge-ui/core/Utils').MergeHtmlProps<import('../../Button').ButtonOwnProps & {
|
|
15
|
+
as: "a";
|
|
16
|
+
}, import('vue').AnchorHTMLAttributes>> | Partial<import('@bridge-ui/core/Utils').MergeHtmlProps<import('../../Button').ButtonOwnProps & {
|
|
17
|
+
as?: "button";
|
|
18
|
+
}, import('vue').ButtonHTMLAttributes>>) | undefined, {
|
|
19
|
+
onClick: () => void;
|
|
20
|
+
color: NonNullable<keyof import('@bridge-ui/core/Tokens').ButtonColor | undefined>;
|
|
21
|
+
variant: keyof import('@bridge-ui/core/Tokens').ButtonVariant | undefined;
|
|
22
|
+
}>>;
|
|
23
|
+
cancelButtonBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", (Partial<import('@bridge-ui/core/Utils').MergeHtmlProps<import('../../Button').ButtonOwnProps & {
|
|
24
|
+
as: "span";
|
|
25
|
+
}, import('vue').HTMLAttributes>> | Partial<import('@bridge-ui/core/Utils').MergeHtmlProps<import('../../Button').ButtonOwnProps & {
|
|
26
|
+
as: "a";
|
|
27
|
+
}, import('vue').AnchorHTMLAttributes>> | Partial<import('@bridge-ui/core/Utils').MergeHtmlProps<import('../../Button').ButtonOwnProps & {
|
|
28
|
+
as?: "button";
|
|
29
|
+
}, import('vue').ButtonHTMLAttributes>>) | undefined, {
|
|
30
|
+
onClick: () => void;
|
|
31
|
+
color: NonNullable<keyof import('@bridge-ui/core/Tokens').ButtonColor | undefined>;
|
|
32
|
+
variant: NonNullable<keyof import('@bridge-ui/core/Tokens').ButtonVariant | undefined>;
|
|
33
|
+
}>>;
|
|
34
|
+
};
|
|
35
|
+
export {};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { useResolveMessage as e } from "../../../Adapters/I18n/useI18nAdapter.js";
|
|
2
|
+
import { mergePartBind as t, useBridgeUIComponent as n, useBridgeUIMergedRegistryClasses as r } from "../../../Utils/index.js";
|
|
3
|
+
import { computed as i, useAttrs as a } from "vue";
|
|
4
|
+
import { cn as o, splitComponentProps as s } from "@bridge-ui/core/Utils";
|
|
5
|
+
//#region src/Components/ActionFooter/composables/useActionFooter.ts
|
|
6
|
+
var c = [
|
|
7
|
+
"classes",
|
|
8
|
+
"applyColor",
|
|
9
|
+
"applyLabel",
|
|
10
|
+
"cancelColor",
|
|
11
|
+
"cancelLabel",
|
|
12
|
+
"customProps",
|
|
13
|
+
"applyVariant",
|
|
14
|
+
"cancelVariant"
|
|
15
|
+
];
|
|
16
|
+
function l(l, u, d) {
|
|
17
|
+
let f = a(), p = e(), m = i(() => s({
|
|
18
|
+
props: {
|
|
19
|
+
...f,
|
|
20
|
+
...l
|
|
21
|
+
},
|
|
22
|
+
bridgeKeys: c
|
|
23
|
+
})), { merged: h, entry: g } = n({
|
|
24
|
+
libDefaults: u,
|
|
25
|
+
componentName: "ActionFooter",
|
|
26
|
+
props: () => m.value.componentProps
|
|
27
|
+
}), _ = r({
|
|
28
|
+
entry: g,
|
|
29
|
+
props: () => m.value.componentProps
|
|
30
|
+
}), v = i(() => h.value.customProps), y = i(() => h.value.applyLabel ?? p("Apply")), b = i(() => h.value.cancelLabel ?? p("Cancel"));
|
|
31
|
+
return {
|
|
32
|
+
merged: h,
|
|
33
|
+
rootBind: i(() => t(v.value?.root, m.value.inheritedAttrs, o({
|
|
34
|
+
contents: !0,
|
|
35
|
+
[_.value.root ?? ""]: !0
|
|
36
|
+
}))),
|
|
37
|
+
applyLabel: y,
|
|
38
|
+
cancelLabel: b,
|
|
39
|
+
mergedClasses: _,
|
|
40
|
+
applyButtonBind: i(() => t(v.value?.applyButton, {
|
|
41
|
+
onClick: () => d("apply"),
|
|
42
|
+
color: h.value.applyColor,
|
|
43
|
+
variant: h.value.applyVariant
|
|
44
|
+
}, o({ [_.value.applyButton ?? ""]: !0 }))),
|
|
45
|
+
cancelButtonBind: i(() => t(v.value?.cancelButton, {
|
|
46
|
+
onClick: () => d("cancel"),
|
|
47
|
+
color: h.value.cancelColor,
|
|
48
|
+
variant: h.value.cancelVariant
|
|
49
|
+
}, o({ [_.value.cancelButton ?? ""]: !0 })))
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
//#endregion
|
|
53
|
+
export { l as useActionFooter };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export type { ActionFooterClasses, ActionFooterCustomProps, ActionFooterEmits, ActionFooterOwnProps, ActionFooterProps, } from './actionFooter.types';
|
|
2
|
+
export { default as ActionFooter } from './ActionFooter.vue';
|
|
3
|
+
export { useActionFooter } from './composables/useActionFooter';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { hasNamedSlot as e,
|
|
2
|
-
import
|
|
3
|
-
import { useAlert as
|
|
4
|
-
import { Fragment as
|
|
1
|
+
import { hasNamedSlot as e, isPropPresent as t } from "../../Utils/slotOrProp.js";
|
|
2
|
+
import n from "../Icon/Icon.js";
|
|
3
|
+
import { useAlert as r } from "./composables/useAlert.js";
|
|
4
|
+
import { Fragment as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createTextVNode as l, defineComponent as u, guardReactiveProps as d, mergeProps as f, normalizeProps as p, openBlock as m, renderSlot as h, toDisplayString as g, unref as _ } from "vue";
|
|
5
5
|
//#region src/Components/Alert/Alert.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
-
var
|
|
6
|
+
var v = {
|
|
7
7
|
key: 1,
|
|
8
8
|
class: "flex justify-between items-start"
|
|
9
|
-
},
|
|
9
|
+
}, y = { class: "flex items-start gap-x-3" }, b = /*@__PURE__*/ u({
|
|
10
10
|
inheritAttrs: !1,
|
|
11
11
|
__name: "Alert",
|
|
12
12
|
props: {
|
|
@@ -20,20 +20,20 @@ var y = {
|
|
|
20
20
|
title: {},
|
|
21
21
|
variant: {}
|
|
22
22
|
},
|
|
23
|
-
setup(
|
|
24
|
-
let { slots:
|
|
23
|
+
setup(u) {
|
|
24
|
+
let { slots: b, merged: x, bodyBind: S, iconBind: C, rootBind: w, hasTitle: T, titleBind: E, resolvedIcon: D, hasDefaultBody: O } = r(u, {
|
|
25
25
|
shadow: "sm",
|
|
26
26
|
rounded: "sm",
|
|
27
27
|
variant: "flat",
|
|
28
28
|
color: "primary",
|
|
29
29
|
padding: "medium"
|
|
30
30
|
});
|
|
31
|
-
return (
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
31
|
+
return (r, u) => (m(), s("div", p(d(_(w))), [
|
|
32
|
+
_(e)(_(b), "header") ? h(r.$slots, "header", {}, void 0, void 0, 0) : _(T) ? (m(), s("div", v, [c("div", y, [_(e)(_(b), "icon") ? h(r.$slots, "icon", {}, void 0, void 0, 0) : _(D) ? (m(), a(n, f({ key: 1 }, _(C), { icon: _(D) }), null, 16, ["icon"])) : o("", !0), c("div", p(d(_(E))), [_(e)(_(b), "title") ? h(r.$slots, "title", {}, void 0, void 0, 0) : _(t)(_(x).title) ? (m(), s(i, { key: 1 }, [l(g(_(x).title), 1)], 64)) : h(r.$slots, "default", {}, void 0, void 0, 2)], 16)]), h(r.$slots, "action")])) : o("", !0),
|
|
33
|
+
_(O) ? (m(), s("div", p(f({ key: 2 }, _(S))), [h(r.$slots, "default")], 16)) : o("", !0),
|
|
34
|
+
h(r.$slots, "footer")
|
|
35
35
|
], 16));
|
|
36
36
|
}
|
|
37
37
|
});
|
|
38
38
|
//#endregion
|
|
39
|
-
export {
|
|
39
|
+
export { b as default };
|
|
@@ -76,7 +76,7 @@ export interface AlertOwnProps {
|
|
|
76
76
|
*/
|
|
77
77
|
icon?: null | IconSource;
|
|
78
78
|
/**
|
|
79
|
-
*
|
|
79
|
+
* Root padding scale. Each token also sets body indent under the title row.
|
|
80
80
|
*
|
|
81
81
|
* @default "medium"
|
|
82
82
|
*/
|
|
@@ -94,7 +94,8 @@ export interface AlertOwnProps {
|
|
|
94
94
|
*/
|
|
95
95
|
shadow?: MergeProps<AlertShadow, AlertShadowOverrides>;
|
|
96
96
|
/**
|
|
97
|
-
*
|
|
97
|
+
* Title in the heading row. When omitted, the default slot is used as the
|
|
98
|
+
* title.
|
|
98
99
|
*
|
|
99
100
|
* @default undefined
|
|
100
101
|
*/
|
|
@@ -112,7 +113,8 @@ export interface AlertSlots {
|
|
|
112
113
|
*/
|
|
113
114
|
action?: Slot<undefined>;
|
|
114
115
|
/**
|
|
115
|
-
*
|
|
116
|
+
* Body below the title row. Used as the title when `title` and the `title`
|
|
117
|
+
* slot are omitted.
|
|
116
118
|
*/
|
|
117
119
|
default?: Slot<undefined>;
|
|
118
120
|
/**
|
|
@@ -128,7 +130,8 @@ export interface AlertSlots {
|
|
|
128
130
|
*/
|
|
129
131
|
icon?: Slot<undefined>;
|
|
130
132
|
/**
|
|
131
|
-
*
|
|
133
|
+
* Title in the heading row. Takes precedence over the `title` prop and the
|
|
134
|
+
* default slot.
|
|
132
135
|
*/
|
|
133
136
|
title?: Slot<undefined>;
|
|
134
137
|
}
|
|
@@ -10,7 +10,8 @@ export declare function useAlert(props: AlertOwnProps, libDefaults: AlertLibDefa
|
|
|
10
10
|
merged: import('vue').ComputedRef<AlertMerged>;
|
|
11
11
|
bodyBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {}>>;
|
|
12
12
|
iconBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", Partial<Omit<import('../../Icon').IconProps, "icon">> | undefined, {}>>;
|
|
13
|
-
rootBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, Omit<AlertProps, "color" | "icon" | "classes" | "customProps" | "title" | "
|
|
13
|
+
rootBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, Omit<AlertProps, "color" | "icon" | "classes" | "customProps" | "title" | "rounded" | "variant" | "padding" | "shadow">>>;
|
|
14
|
+
hasTitle: import('vue').ComputedRef<boolean>;
|
|
14
15
|
titleBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {}>>;
|
|
15
16
|
resolvedIcon: import('vue').ComputedRef<IconSource | null>;
|
|
16
17
|
hasDefaultBody: import('vue').ComputedRef<boolean>;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
1
|
+
import { hasNamedSlot as e, hasSlotOrProp as t } from "../../../Utils/slotOrProp.js";
|
|
2
|
+
import { mergePartBind as n, useBridgeUIComponent as r, useBridgeUIMergedRegistryClasses as i } from "../../../Utils/index.js";
|
|
3
|
+
import { alertDefaultIcons as a } from "../alertDefaultIcons.js";
|
|
4
|
+
import { computed as o, useAttrs as s, useSlots as c } from "vue";
|
|
5
|
+
import { get as l, isNull as u } from "es-toolkit/compat";
|
|
6
|
+
import { alertPaddingProps as d, alertRoundedProps as f, alertShadowProps as p, alertVariantProps as m } from "@bridge-ui/core/Tokens";
|
|
7
|
+
import { cn as h, mergeBridgeUILayeredClasses as g, splitComponentProps as _ } from "@bridge-ui/core/Utils";
|
|
7
8
|
//#region src/Components/Alert/composables/useAlert.ts
|
|
8
|
-
var
|
|
9
|
+
var v = [
|
|
9
10
|
"icon",
|
|
10
11
|
"color",
|
|
11
12
|
"title",
|
|
@@ -16,68 +17,70 @@ var g = [
|
|
|
16
17
|
"variant",
|
|
17
18
|
"customProps"
|
|
18
19
|
];
|
|
19
|
-
function
|
|
20
|
-
let
|
|
21
|
-
bridgeKeys:
|
|
20
|
+
function y(y, b) {
|
|
21
|
+
let x = s(), S = c(), C = o(() => _({
|
|
22
|
+
bridgeKeys: v,
|
|
22
23
|
props: {
|
|
23
|
-
...
|
|
24
|
-
...
|
|
24
|
+
...x,
|
|
25
|
+
...y
|
|
25
26
|
}
|
|
26
|
-
})), { merged:
|
|
27
|
-
libDefaults:
|
|
27
|
+
})), { merged: w, entry: T } = r({
|
|
28
|
+
libDefaults: b,
|
|
28
29
|
componentName: "Alert",
|
|
29
|
-
props: () =>
|
|
30
|
-
}),
|
|
31
|
-
entry:
|
|
32
|
-
props: () =>
|
|
33
|
-
}),
|
|
34
|
-
let e =
|
|
30
|
+
props: () => C.value.componentProps
|
|
31
|
+
}), E = o(() => w.value.customProps), D = i({
|
|
32
|
+
entry: T,
|
|
33
|
+
props: () => C.value.componentProps
|
|
34
|
+
}), O = o(() => t(S, "title", w.value.title)), k = o(() => {
|
|
35
|
+
let e = S.default?.();
|
|
35
36
|
return !!(e && e.length > 0);
|
|
36
|
-
}),
|
|
37
|
-
let e = m
|
|
38
|
-
return
|
|
39
|
-
}),
|
|
40
|
-
let e =
|
|
41
|
-
return
|
|
42
|
-
}),
|
|
43
|
-
let e =
|
|
44
|
-
return
|
|
45
|
-
}),
|
|
46
|
-
let e =
|
|
47
|
-
return
|
|
48
|
-
}),
|
|
37
|
+
}), A = o(() => !e(S, "header") && (k.value || O.value)), j = o(() => k.value && (O.value || e(S, "header"))), M = o(() => {
|
|
38
|
+
let e = g(m, T.value?.tokens?.variant);
|
|
39
|
+
return l(e, [w.value.variant, w.value.color]);
|
|
40
|
+
}), N = o(() => {
|
|
41
|
+
let e = g(p, T.value?.tokens?.shadow);
|
|
42
|
+
return l(e, w.value.shadow);
|
|
43
|
+
}), P = o(() => {
|
|
44
|
+
let e = g(d, T.value?.tokens?.padding);
|
|
45
|
+
return l(e, w.value.padding);
|
|
46
|
+
}), F = o(() => {
|
|
47
|
+
let e = g(f, T.value?.tokens?.rounded);
|
|
48
|
+
return l(e, w.value.rounded);
|
|
49
|
+
}), I = o(() => u(w.value.icon) ? null : w.value.icon ? w.value.icon : l(M.value, "icon") ?? l(a, w.value.color));
|
|
49
50
|
return {
|
|
50
|
-
slots:
|
|
51
|
-
merged:
|
|
52
|
-
bodyBind:
|
|
51
|
+
slots: S,
|
|
52
|
+
merged: w,
|
|
53
|
+
bodyBind: o(() => n(E.value?.body, {}, h({
|
|
53
54
|
"grow text-sm text-start": !0,
|
|
54
|
-
[
|
|
55
|
-
[
|
|
56
|
-
[
|
|
55
|
+
[l(P.value, "body") ?? ""]: !0,
|
|
56
|
+
[l(M.value, "text") ?? ""]: !0,
|
|
57
|
+
[l(D.value, "body") ?? ""]: !0
|
|
57
58
|
}))),
|
|
58
|
-
iconBind:
|
|
59
|
+
iconBind: o(() => n(E.value?.icon, {}, h({
|
|
59
60
|
"w-5 h-5 shrink-0": !0,
|
|
60
|
-
[
|
|
61
|
-
[
|
|
61
|
+
[l(M.value, "iconColor") ?? ""]: !0,
|
|
62
|
+
[l(D.value, "icon") ?? ""]: !0
|
|
62
63
|
}))),
|
|
63
|
-
rootBind:
|
|
64
|
-
"w-full flex flex-col
|
|
65
|
-
[
|
|
66
|
-
[
|
|
67
|
-
[
|
|
68
|
-
[
|
|
69
|
-
[
|
|
64
|
+
rootBind: o(() => n(E.value?.root, C.value.inheritedAttrs, h({
|
|
65
|
+
"w-full flex flex-col": !0,
|
|
66
|
+
[l(P.value, "root") ?? ""]: !0,
|
|
67
|
+
[N.value ?? ""]: !0,
|
|
68
|
+
[F.value ?? ""]: !0,
|
|
69
|
+
[l(M.value, "border") ?? ""]: !0,
|
|
70
|
+
[l(M.value, "background") ?? ""]: !0,
|
|
71
|
+
[l(D.value, "root") ?? ""]: !0
|
|
70
72
|
}))),
|
|
71
|
-
|
|
73
|
+
hasTitle: A,
|
|
74
|
+
titleBind: o(() => n(E.value?.title, {}, h({
|
|
72
75
|
"text-start text-sm whitespace-normal": !0,
|
|
73
|
-
"font-normal": !
|
|
74
|
-
"font-semibold":
|
|
75
|
-
[
|
|
76
|
-
[
|
|
76
|
+
"font-normal": !j.value,
|
|
77
|
+
"font-semibold": j.value,
|
|
78
|
+
[l(M.value, "text") ?? ""]: !0,
|
|
79
|
+
[l(D.value, "title") ?? ""]: !0
|
|
77
80
|
}))),
|
|
78
|
-
resolvedIcon:
|
|
79
|
-
hasDefaultBody:
|
|
81
|
+
resolvedIcon: I,
|
|
82
|
+
hasDefaultBody: j
|
|
80
83
|
};
|
|
81
84
|
}
|
|
82
85
|
//#endregion
|
|
83
|
-
export {
|
|
86
|
+
export { y as useAlert };
|
|
@@ -8,9 +8,9 @@ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
|
8
8
|
declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
9
9
|
clear: () => any;
|
|
10
10
|
search: (query: string) => any;
|
|
11
|
-
select: (option: import('@bridge-ui/core/Domain').ListboxOption) => any;
|
|
12
11
|
apply: () => any;
|
|
13
12
|
cancel: () => any;
|
|
13
|
+
select: (option: import('@bridge-ui/core/Domain').ListboxOption) => any;
|
|
14
14
|
change: (value: import('@bridge-ui/core/Domain').SelectModel) => any;
|
|
15
15
|
close: () => any;
|
|
16
16
|
deselect: (option: import('@bridge-ui/core/Domain').ListboxOption) => any;
|
|
@@ -19,9 +19,9 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {}, {
|
|
|
19
19
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
20
20
|
onClear?: (() => any) | undefined;
|
|
21
21
|
onSearch?: ((query: string) => any) | undefined;
|
|
22
|
-
onSelect?: ((option: import('@bridge-ui/core/Domain').ListboxOption) => any) | undefined;
|
|
23
22
|
onApply?: (() => any) | undefined;
|
|
24
23
|
onCancel?: (() => any) | undefined;
|
|
24
|
+
onSelect?: ((option: import('@bridge-ui/core/Domain').ListboxOption) => any) | undefined;
|
|
25
25
|
onChange?: ((value: import('@bridge-ui/core/Domain').SelectModel) => any) | undefined;
|
|
26
26
|
onClose?: (() => any) | undefined;
|
|
27
27
|
onDeselect?: ((option: import('@bridge-ui/core/Domain').ListboxOption) => any) | undefined;
|
|
@@ -31,9 +31,9 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {}, {
|
|
|
31
31
|
showFooter: boolean;
|
|
32
32
|
showErrorIcon: boolean;
|
|
33
33
|
clearable: boolean;
|
|
34
|
-
freeSolo: boolean;
|
|
35
34
|
minItemsForSearch: number;
|
|
36
35
|
searchable: boolean;
|
|
36
|
+
freeSolo: boolean;
|
|
37
37
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
38
38
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
39
39
|
declare const _default: typeof __VLS_export;
|
|
@@ -29,7 +29,7 @@ var N = {
|
|
|
29
29
|
asyncData: {},
|
|
30
30
|
clearable: {
|
|
31
31
|
type: Boolean,
|
|
32
|
-
default: !
|
|
32
|
+
default: !1
|
|
33
33
|
},
|
|
34
34
|
customProps: {},
|
|
35
35
|
defaultValue: {},
|
|
@@ -76,6 +76,7 @@ var N = {
|
|
|
76
76
|
readonly: { type: Boolean },
|
|
77
77
|
required: { type: Boolean },
|
|
78
78
|
rounded: {},
|
|
79
|
+
showDescriptionOnError: { type: Boolean },
|
|
79
80
|
showErrorIcon: {
|
|
80
81
|
type: Boolean,
|
|
81
82
|
default: !0
|