@bridge-ui/vue 0.14.0 → 0.15.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/AGENTS.md +1 -1
- package/ai/README.md +1 -1
- package/ai/llms.txt +4 -3
- package/ai/skills/bridge-ui-setup/SKILL.md +9 -8
- package/dist/Adapters/I18n/useI18nAdapter.d.ts +1 -1
- package/dist/Adapters/Icon/mockIconAdapter.d.ts +5 -0
- package/dist/Adapters/Icon/useIconAdapter.d.ts +1 -1
- package/dist/Adapters/RichText/useRichTextAdapter.d.ts +1 -1
- package/dist/Components/ActionFooter/ActionFooter.vue_vue_type_script_setup_true_lang.js +3 -5
- package/dist/Components/ActionFooter/actionFooter.types.d.ts +7 -12
- package/dist/Components/ActionFooter/composables/useActionFooter.d.ts +4 -4
- package/dist/Components/ActionFooter/composables/useActionFooter.js +3 -4
- package/dist/Components/Autocomplete/Autocomplete.vue.d.ts +2 -2
- package/dist/Components/Autocomplete/composables/useAutocomplete.d.ts +3 -3
- package/dist/Components/Autocomplete/composables/useAutocomplete.js +2 -0
- package/dist/Components/BaseField/composables/useBaseField.js +1 -0
- package/dist/Components/Checkbox/composables/useCheckbox.js +1 -0
- package/dist/Components/ColorField/ColorField.vue.d.ts +2 -2
- package/dist/Components/ColorField/ColorField.vue_vue_type_script_setup_true_lang.js +2 -0
- package/dist/Components/ColorField/composables/useColorField.d.ts +2 -2
- package/dist/Components/ColorField/composables/useColorField.js +2 -0
- package/dist/Components/ColorPicker/ColorPicker.vue_vue_type_script_setup_true_lang.js +5 -1
- package/dist/Components/ColorPicker/colorPicker.types.d.ts +8 -2
- package/dist/Components/ColorPicker/composables/useColorPicker.d.ts +2 -2
- package/dist/Components/ColorPicker/composables/useColorPicker.js +1 -0
- package/dist/Components/DateField/DateField.vue.d.ts +2 -2
- package/dist/Components/DateField/composables/useDateField.d.ts +2 -2
- package/dist/Components/DateField/composables/useDateField.js +2 -0
- package/dist/Components/DatePicker/DatePicker.vue_vue_type_script_setup_true_lang.js +2 -0
- package/dist/Components/DateRangeField/DateRangeField.vue.d.ts +2 -2
- package/dist/Components/DateRangeField/composables/useDateRangeField.d.ts +2 -2
- package/dist/Components/DateRangeField/composables/useDateRangeField.js +2 -0
- package/dist/Components/DateRangePicker/DateRangePicker.vue_vue_type_script_setup_true_lang.js +2 -0
- package/dist/Components/DateTimeField/DateTimeField.vue.d.ts +2 -2
- package/dist/Components/DateTimeField/composables/useDateTimeField.d.ts +2 -2
- package/dist/Components/DateTimeField/composables/useDateTimeField.js +2 -0
- package/dist/Components/DateTimePicker/DateTimePicker.vue_vue_type_script_setup_true_lang.js +2 -0
- package/dist/Components/DateTimeRangeField/DateTimeRangeField.vue.d.ts +2 -2
- package/dist/Components/DateTimeRangeField/composables/useDateTimeRangeField.d.ts +2 -2
- package/dist/Components/DateTimeRangeField/composables/useDateTimeRangeField.js +2 -0
- package/dist/Components/DateTimeRangePicker/DateTimeRangePicker.vue_vue_type_script_setup_true_lang.js +2 -0
- package/dist/Components/Drawer/Drawer.vue.d.ts +1 -1
- package/dist/Components/Drawer/composables/useDrawer.d.ts +1 -1
- package/dist/Components/FileUpload/FileUpload.vue.d.ts +2 -2
- package/dist/Components/FormControl/composables/useFormControl.js +46 -45
- package/dist/Components/FormField/composables/useFormField.d.ts +1 -1
- package/dist/Components/FormField/composables/useFormField.js +144 -143
- package/dist/Components/ListItem/composables/useListItem.d.ts +1 -1
- package/dist/Components/Listbox/Listbox.vue.d.ts +0 -1
- package/dist/Components/Listbox/Listbox.vue_vue_type_script_setup_true_lang.js +3 -2
- package/dist/Components/Modal/Modal.vue.d.ts +1 -1
- package/dist/Components/Modal/composables/useModal.d.ts +1 -1
- package/dist/Components/NumberField/composables/useNumberField.d.ts +2 -2
- package/dist/Components/NumberField/composables/useNumberField.js +1 -0
- package/dist/Components/OtpField/composables/useOtpField.js +1 -0
- package/dist/Components/PasswordField/composables/usePasswordField.d.ts +2 -2
- package/dist/Components/PasswordField/composables/usePasswordField.js +1 -0
- package/dist/Components/Radio/composables/useRadio.js +1 -0
- package/dist/Components/Rating/composables/useRating.js +1 -0
- package/dist/Components/RichTextEditor/RichTextEditor.vue_vue_type_script_setup_true_lang.js +36 -32
- package/dist/Components/RichTextEditor/composables/useRichTextEditor.d.ts +2 -1
- package/dist/Components/RichTextEditor/composables/useRichTextEditor.js +143 -141
- package/dist/Components/Select/Select.vue.d.ts +2 -2
- package/dist/Components/Select/composables/useSelect.d.ts +3 -3
- package/dist/Components/Select/composables/useSelect.js +2 -0
- package/dist/Components/Slider/composables/useSlider.js +1 -0
- package/dist/Components/Switch/composables/useSwitch.js +1 -0
- package/dist/Components/Tabs/composables/useTabs.d.ts +0 -156
- package/dist/Components/TextField/composables/useTextField.d.ts +2 -2
- package/dist/Components/Textarea/composables/useTextarea.d.ts +2 -2
- package/dist/Components/Textarea/composables/useTextarea.js +1 -0
- package/dist/Components/TimeField/TimeField.vue.d.ts +2 -2
- package/dist/Components/TimeField/composables/useTimeField.d.ts +2 -2
- package/dist/Components/TimeField/composables/useTimeField.js +2 -0
- package/dist/Components/TimePicker/TimePicker.vue_vue_type_script_setup_true_lang.js +2 -0
- package/dist/Components/TimePicker/composables/useTimePicker.js +1 -0
- package/dist/Components/TimeRangeField/TimeRangeField.vue.d.ts +2 -2
- package/dist/Components/TimeRangeField/composables/useTimeRangeField.d.ts +2 -2
- package/dist/Components/TimeRangeField/composables/useTimeRangeField.js +2 -0
- package/dist/Components/TimeRangePicker/TimeRangePicker.vue_vue_type_script_setup_true_lang.js +2 -0
- package/dist/Components/TimeRangePicker/composables/useTimeRangePicker.js +1 -0
- package/dist/Components/Tooltip/Tooltip.vue.d.ts +0 -1
- package/dist/Components/Tooltip/Tooltip.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/Utils/index.d.ts +16 -6
- package/dist/Utils/index.js +39 -35
- package/dist/augments.d.ts +1 -1
- package/dist/theme.css +10 -1
- package/docs/README.md +27 -13
- package/docs/components/ActionFooter.md +16 -14
- package/docs/components/BridgeUIProvider.md +108 -16
- package/docs/components/ColorPicker.md +14 -13
- package/docs/components/I18n.md +6 -6
- package/docs/components/Icon.md +10 -10
- package/docs/components/RichTextEditor.md +4 -4
- package/package.json +3 -92
- package/dist/Adapters/Examples/date-date-fns.d.ts +0 -9
- package/dist/Adapters/Examples/date-date-fns.js +0 -151
- package/dist/Adapters/Examples/date-dayjs.d.ts +0 -19
- package/dist/Adapters/Examples/date-dayjs.js +0 -174
- package/dist/Adapters/Examples/date-luxon.d.ts +0 -7
- package/dist/Adapters/Examples/date-luxon.js +0 -164
- package/dist/Adapters/Examples/date-moment.d.ts +0 -19
- package/dist/Adapters/Examples/date-moment.js +0 -172
- package/dist/Adapters/Examples/i18n-dictionary.d.ts +0 -15
- package/dist/Adapters/Examples/i18n-dictionary.js +0 -97
- package/dist/Adapters/Examples/i18n-vue-i18n.d.ts +0 -7
- package/dist/Adapters/Examples/i18n-vue-i18n.js +0 -14
- package/dist/Adapters/Examples/icon-fontawesome.d.ts +0 -19
- package/dist/Adapters/Examples/icon-fontawesome.js +0 -82
- package/dist/Adapters/Examples/icon-heroicons.d.ts +0 -5
- package/dist/Adapters/Examples/icon-heroicons.js +0 -56
- package/dist/Adapters/Examples/icon-lucide.d.ts +0 -5
- package/dist/Adapters/Examples/icon-lucide.js +0 -56
- package/dist/Adapters/Examples/icon-phosphor.d.ts +0 -5
- package/dist/Adapters/Examples/icon-phosphor.js +0 -56
- package/dist/Adapters/Examples/icon-tabler.d.ts +0 -5
- package/dist/Adapters/Examples/icon-tabler.js +0 -56
- package/dist/Adapters/Examples/rich-text-tiptap.d.ts +0 -5
- package/dist/Adapters/Examples/rich-text-tiptap.js +0 -131
package/ai/AGENTS.md
CHANGED
|
@@ -13,7 +13,7 @@ npx bridge-ui-vue-ai install
|
|
|
13
13
|
|
|
14
14
|
- Guidelines: `.ai/guidelines/core.md`
|
|
15
15
|
- Component docs: `.ai/docs/components/` (index: `.ai/docs/README.md`)
|
|
16
|
-
- Adapter factories: `@bridge-ui/vue/
|
|
16
|
+
- Adapter factories: `@bridge-ui/adapters/vue/{date,icon,i18n,rich-text}-*`
|
|
17
17
|
- Skills (on demand) under `.cursor/skills/`:
|
|
18
18
|
- `bridge-ui-setup`
|
|
19
19
|
- `bridge-ui-components`
|
package/ai/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Consumer guidelines and Agent Skills for `@bridge-ui/vue`.
|
|
4
4
|
|
|
5
|
-
Component **examples live in** [`../docs/components/`](../docs/components/). Adapter factories: `@bridge-ui/vue/
|
|
5
|
+
Component **examples live in** [`../docs/components/`](../docs/components/). Adapter factories: `@bridge-ui/adapters/vue/{date,icon,i18n,rich-text}-*`. Skills only route agents to those pages.
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
8
|
npx bridge-ui-vue-ai install
|
package/ai/llms.txt
CHANGED
|
@@ -34,7 +34,8 @@ After install:
|
|
|
34
34
|
- `@bridge-ui/vue/Provider`
|
|
35
35
|
- `@bridge-ui/vue/Actions`
|
|
36
36
|
- `@bridge-ui/vue/theme.css`
|
|
37
|
-
- `@bridge-ui/vue/
|
|
38
|
-
- `@bridge-ui/vue/
|
|
39
|
-
- `@bridge-ui/vue/
|
|
37
|
+
- `@bridge-ui/adapters/vue/{date-date-fns,date-dayjs,date-luxon,date-moment}`
|
|
38
|
+
- `@bridge-ui/adapters/vue/{icon-lucide,icon-heroicons,icon-tabler,icon-phosphor,icon-fontawesome}`
|
|
39
|
+
- `@bridge-ui/adapters/vue/{i18n-dictionary,i18n-vue-i18n}`
|
|
40
|
+
- `@bridge-ui/adapters/vue/rich-text-tiptap`
|
|
40
41
|
- `@bridge-ui/vue/docs/components/{Name}.md`
|
|
@@ -20,19 +20,20 @@ npx bridge-ui-vue-ai install
|
|
|
20
20
|
|
|
21
21
|
## Required reading
|
|
22
22
|
|
|
23
|
-
| Topic
|
|
24
|
-
|
|
|
25
|
-
| Provider / plugin, `global`, `components`, icons, i18n, dates | `.ai/docs/components/BridgeUIProvider.md`
|
|
26
|
-
| Icon adapter usage
|
|
27
|
-
| i18n adapter
|
|
28
|
-
| Breakpoints
|
|
29
|
-
| Adapter factories
|
|
23
|
+
| Topic | Doc |
|
|
24
|
+
| -------------------------------------------------------------------------------- | ------------------------------------------------------ |
|
|
25
|
+
| Provider / plugin, `global`, `components`, icons, i18n, dates, custom components | `.ai/docs/components/BridgeUIProvider.md` |
|
|
26
|
+
| Icon adapter usage | `.ai/docs/components/Icon.md` |
|
|
27
|
+
| i18n adapter | `.ai/docs/components/I18n.md` |
|
|
28
|
+
| Breakpoints | `.ai/docs/components/useBreakpoint.md` |
|
|
29
|
+
| Adapter factories | `@bridge-ui/adapters/vue/{date,icon,i18n,rich-text}-*` |
|
|
30
30
|
|
|
31
31
|
## Hard rules
|
|
32
32
|
|
|
33
33
|
1. Tailwind CSS **v4** + `@import "@bridge-ui/vue/theme.css"`.
|
|
34
34
|
2. Use `app.use(createBridgeUI({ ... }))` and/or `<BridgeUIProvider>`.
|
|
35
35
|
3. Mount `BridgeUIHosts` when using action hooks (`useDialogAction`, `useModalAction`, `useDrawerAction`, `useSnackbarAction`).
|
|
36
|
-
4. Semantic icon names, chrome strings, and date libs need `global.icons` / `global.i18n` / `global.dates` — import factories from `@bridge-ui/vue/
|
|
36
|
+
4. Semantic icon names, chrome strings, and date libs need `global.icons` / `global.i18n` / `global.dates` — install `@bridge-ui/adapters`, import factories from `@bridge-ui/adapters/vue/{date,icon,i18n,rich-text}-*`, and install the matching optional peer.
|
|
37
37
|
5. Prefer deep imports: `@bridge-ui/vue/Components/{Name}`.
|
|
38
38
|
6. Do not destructure `useBreakpoint()` helpers — keep the reactive object.
|
|
39
|
+
7. App-wide default color (e.g. monochrome `"black"`): set `global.defaultColor` once — do not repeat `color` in every `components.{Name}.defaultProps`. Rebrand `primary` in theme CSS instead.
|
|
@@ -7,7 +7,7 @@ export declare function setI18nAdapterForTests(adapter: undefined | I18nAdapter)
|
|
|
7
7
|
/**
|
|
8
8
|
* Returns the active i18n adapter from {@link BridgeUIProvider}.
|
|
9
9
|
* When unset, {@link useResolveMessage} returns the English source string.
|
|
10
|
-
* Ready adapters: `@bridge-ui/vue/
|
|
10
|
+
* Ready adapters: `@bridge-ui/adapters/vue/i18n-*`.
|
|
11
11
|
*/
|
|
12
12
|
export declare function useI18nAdapter(): ComputedRef<undefined | I18nAdapter>;
|
|
13
13
|
/**
|
|
@@ -6,6 +6,6 @@ import { IconAdapter } from '@bridge-ui/core/Adapters';
|
|
|
6
6
|
export declare function setIconAdapterForTests(adapter: undefined | IconAdapter): void;
|
|
7
7
|
/**
|
|
8
8
|
* Returns the active icon adapter from {@link BridgeUIProvider}.
|
|
9
|
-
* Semantic icon names require `global.icons` (e.g. `@bridge-ui/vue/
|
|
9
|
+
* Semantic icon names require `global.icons` (e.g. `@bridge-ui/adapters/vue/icon-lucide`).
|
|
10
10
|
*/
|
|
11
11
|
export declare function useIconAdapter(): ComputedRef<undefined | IconAdapter>;
|
|
@@ -7,6 +7,6 @@ export declare function setRichTextAdapterForTests(adapter: undefined | RichText
|
|
|
7
7
|
/**
|
|
8
8
|
* Returns the active rich-text adapter from {@link BridgeUIProvider}.
|
|
9
9
|
* `RichTextEditor` requires `global.richText` (e.g.
|
|
10
|
-
* `@bridge-ui/vue/
|
|
10
|
+
* `@bridge-ui/adapters/vue/rich-text-tiptap`).
|
|
11
11
|
*/
|
|
12
12
|
export declare function useRichTextAdapter(): ComputedRef<undefined | RichTextEditorAdapter>;
|
|
@@ -6,21 +6,19 @@ var f = /*@__PURE__*/ a({
|
|
|
6
6
|
inheritAttrs: !1,
|
|
7
7
|
__name: "ActionFooter",
|
|
8
8
|
props: {
|
|
9
|
-
applyColor: {},
|
|
10
9
|
applyLabel: {},
|
|
11
10
|
applyVariant: {},
|
|
12
|
-
cancelColor: {},
|
|
13
11
|
cancelLabel: {},
|
|
14
12
|
cancelVariant: {},
|
|
15
13
|
classes: {},
|
|
14
|
+
color: {},
|
|
16
15
|
customProps: {}
|
|
17
16
|
},
|
|
18
17
|
emits: ["apply", "cancel"],
|
|
19
18
|
setup(a, { emit: f }) {
|
|
20
19
|
let { rootBind: p, applyLabel: m, cancelLabel: h, applyButtonBind: g, cancelButtonBind: _ } = e(a, {
|
|
21
|
-
|
|
22
|
-
cancelVariant: "flat"
|
|
23
|
-
cancelColor: "secondary"
|
|
20
|
+
color: "primary",
|
|
21
|
+
cancelVariant: "flat"
|
|
24
22
|
}, f);
|
|
25
23
|
return (e, a) => (c(), n("div", s(o(u(p))), [i(u(t), s(o(u(_))), {
|
|
26
24
|
default: d(() => [r(l(u(h)), 1)]),
|
|
@@ -54,12 +54,6 @@ export interface ActionFooterEmits {
|
|
|
54
54
|
* Cancel / Apply pair used as the default footer in pickers and listboxes.
|
|
55
55
|
*/
|
|
56
56
|
export interface ActionFooterOwnProps {
|
|
57
|
-
/**
|
|
58
|
-
* Color of the Apply button.
|
|
59
|
-
*
|
|
60
|
-
* @default "primary"
|
|
61
|
-
*/
|
|
62
|
-
applyColor?: MergeProps<ButtonColor, ButtonColorOverrides>;
|
|
63
57
|
/**
|
|
64
58
|
* Label of the Apply button. Falls back to the i18n string `Apply`.
|
|
65
59
|
*
|
|
@@ -72,12 +66,6 @@ export interface ActionFooterOwnProps {
|
|
|
72
66
|
* @default undefined
|
|
73
67
|
*/
|
|
74
68
|
applyVariant?: MergeProps<ButtonVariant, ButtonVariantOverrides>;
|
|
75
|
-
/**
|
|
76
|
-
* Color of the Cancel button.
|
|
77
|
-
*
|
|
78
|
-
* @default "secondary"
|
|
79
|
-
*/
|
|
80
|
-
cancelColor?: MergeProps<ButtonColor, ButtonColorOverrides>;
|
|
81
69
|
/**
|
|
82
70
|
* Label of the Cancel button. Falls back to the i18n string `Cancel`.
|
|
83
71
|
*
|
|
@@ -96,6 +84,13 @@ export interface ActionFooterOwnProps {
|
|
|
96
84
|
* @default undefined
|
|
97
85
|
*/
|
|
98
86
|
classes?: ActionFooterClasses;
|
|
87
|
+
/**
|
|
88
|
+
* Color shared by both buttons; `applyVariant` / `cancelVariant` set their
|
|
89
|
+
* hierarchy.
|
|
90
|
+
*
|
|
91
|
+
* @default "primary"
|
|
92
|
+
*/
|
|
93
|
+
color?: MergeProps<ButtonColor, ButtonColorOverrides>;
|
|
99
94
|
/**
|
|
100
95
|
* Extra props for internal parts (`root`, `applyButton`, `cancelButton`).
|
|
101
96
|
*
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { SetupContext } from 'vue';
|
|
2
2
|
import { LibDefaultsShape, MergeLibDefaults } from '@bridge-ui/core/Utils';
|
|
3
3
|
import { ActionFooterClasses, ActionFooterEmits, ActionFooterOwnProps, ActionFooterProps } from '../actionFooter.types';
|
|
4
|
-
type ActionFooterLibDefaults = LibDefaultsShape<ActionFooterOwnProps, "
|
|
4
|
+
type ActionFooterLibDefaults = LibDefaultsShape<ActionFooterOwnProps, "color" | "cancelVariant">;
|
|
5
5
|
type ActionFooterMerged = MergeLibDefaults<ActionFooterOwnProps, ActionFooterLibDefaults>;
|
|
6
6
|
export declare function useActionFooter(props: ActionFooterOwnProps, libDefaults: ActionFooterLibDefaults, emit: SetupContext<ActionFooterEmits>["emit"]): {
|
|
7
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, "
|
|
8
|
+
rootBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, Omit<ActionFooterProps, "color" | "classes" | "customProps" | "applyLabel" | "applyVariant" | "cancelLabel" | "cancelVariant">>>;
|
|
9
9
|
applyLabel: import('vue').ComputedRef<string>;
|
|
10
10
|
cancelLabel: import('vue').ComputedRef<string>;
|
|
11
11
|
mergedClasses: import('vue').ComputedRef<Partial<ActionFooterClasses>>;
|
|
@@ -16,8 +16,8 @@ export declare function useActionFooter(props: ActionFooterOwnProps, libDefaults
|
|
|
16
16
|
}, import('vue').AnchorHTMLAttributes>> | Partial<import('@bridge-ui/core/Utils').MergeHtmlProps<import('../../Button').ButtonOwnProps<"button"> & {
|
|
17
17
|
as?: "button";
|
|
18
18
|
}, import('vue').ButtonHTMLAttributes>>) | undefined, {
|
|
19
|
-
onClick: () => void;
|
|
20
19
|
color: NonNullable<keyof import('@bridge-ui/core/Tokens').ButtonColor | undefined>;
|
|
20
|
+
onClick: () => void;
|
|
21
21
|
variant: keyof import('@bridge-ui/core/Tokens').ButtonVariant | undefined;
|
|
22
22
|
}>>;
|
|
23
23
|
cancelButtonBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", (Partial<import('@bridge-ui/core/Utils').MergeHtmlProps<import('../../Button').ButtonOwnProps<"button"> & {
|
|
@@ -27,8 +27,8 @@ export declare function useActionFooter(props: ActionFooterOwnProps, libDefaults
|
|
|
27
27
|
}, import('vue').AnchorHTMLAttributes>> | Partial<import('@bridge-ui/core/Utils').MergeHtmlProps<import('../../Button').ButtonOwnProps<"button"> & {
|
|
28
28
|
as?: "button";
|
|
29
29
|
}, import('vue').ButtonHTMLAttributes>>) | undefined, {
|
|
30
|
-
onClick: () => void;
|
|
31
30
|
color: NonNullable<keyof import('@bridge-ui/core/Tokens').ButtonColor | undefined>;
|
|
31
|
+
onClick: () => void;
|
|
32
32
|
variant: NonNullable<keyof import('@bridge-ui/core/Tokens').ButtonVariant | undefined>;
|
|
33
33
|
}>>;
|
|
34
34
|
};
|
|
@@ -4,10 +4,9 @@ import { computed as i, useAttrs as a } from "vue";
|
|
|
4
4
|
import { cn as o, splitComponentProps as s } from "@bridge-ui/core/Utils";
|
|
5
5
|
//#region src/Components/ActionFooter/composables/useActionFooter.ts
|
|
6
6
|
var c = [
|
|
7
|
+
"color",
|
|
7
8
|
"classes",
|
|
8
|
-
"applyColor",
|
|
9
9
|
"applyLabel",
|
|
10
|
-
"cancelColor",
|
|
11
10
|
"cancelLabel",
|
|
12
11
|
"customProps",
|
|
13
12
|
"applyVariant",
|
|
@@ -38,13 +37,13 @@ function l(l, u, d) {
|
|
|
38
37
|
cancelLabel: b,
|
|
39
38
|
mergedClasses: _,
|
|
40
39
|
applyButtonBind: i(() => t(v.value?.applyButton, {
|
|
40
|
+
color: h.value.color,
|
|
41
41
|
onClick: () => d("apply"),
|
|
42
|
-
color: h.value.applyColor,
|
|
43
42
|
variant: h.value.applyVariant
|
|
44
43
|
}, o({ [_.value.applyButton ?? ""]: !0 }))),
|
|
45
44
|
cancelButtonBind: i(() => t(v.value?.cancelButton, {
|
|
45
|
+
color: h.value.color,
|
|
46
46
|
onClick: () => d("cancel"),
|
|
47
|
-
color: h.value.cancelColor,
|
|
48
47
|
variant: h.value.cancelVariant
|
|
49
48
|
}, o({ [_.value.cancelButton ?? ""]: !0 })))
|
|
50
49
|
};
|
|
@@ -11,8 +11,8 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {}, {
|
|
|
11
11
|
apply: () => any;
|
|
12
12
|
cancel: () => any;
|
|
13
13
|
select: (option: import('@bridge-ui/core/Domain').ListboxOption) => any;
|
|
14
|
-
close: () => any;
|
|
15
14
|
change: (value: import('@bridge-ui/core/Domain').SelectModel) => any;
|
|
15
|
+
close: () => any;
|
|
16
16
|
deselect: (option: import('@bridge-ui/core/Domain').ListboxOption) => any;
|
|
17
17
|
open: () => any;
|
|
18
18
|
"update:modelValue": (...args: unknown[]) => any;
|
|
@@ -22,8 +22,8 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {}, {
|
|
|
22
22
|
onApply?: (() => any) | undefined;
|
|
23
23
|
onCancel?: (() => any) | undefined;
|
|
24
24
|
onSelect?: ((option: import('@bridge-ui/core/Domain').ListboxOption) => any) | undefined;
|
|
25
|
-
onClose?: (() => any) | undefined;
|
|
26
25
|
onChange?: ((value: import('@bridge-ui/core/Domain').SelectModel) => any) | undefined;
|
|
26
|
+
onClose?: (() => any) | undefined;
|
|
27
27
|
onDeselect?: ((option: import('@bridge-ui/core/Domain').ListboxOption) => any) | undefined;
|
|
28
28
|
onOpen?: (() => any) | undefined;
|
|
29
29
|
"onUpdate:modelValue"?: ((...args: unknown[]) => any) | undefined;
|
|
@@ -436,7 +436,7 @@ export declare function useAutocomplete(props: AutocompleteOwnProps, model: Ref<
|
|
|
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" | "disabled" | "endIcon" | "rounded" | "startIcon" | "variant" | "label" | "start" | "
|
|
439
|
+
}, Partial<Omit<Omit<FormFieldOwnProps, "field">, "error" | "color" | "end" | "size" | "classes" | "customProps" | "disabled" | "endIcon" | "rounded" | "startIcon" | "variant" | "label" | "start" | "required" | "corner" | "description" | "errorMessage" | "errorIcon" | "hideErrorMessage" | "readonly" | "showDescriptionOnError" | "showErrorIcon">>>>;
|
|
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, {}>>;
|
|
@@ -722,7 +722,7 @@ export declare function useAutocomplete(props: AutocompleteOwnProps, model: Ref<
|
|
|
722
722
|
onTransitionend?: ((payload: TransitionEvent) => void) | undefined;
|
|
723
723
|
onTransitionrun?: ((payload: TransitionEvent) => void) | undefined;
|
|
724
724
|
onTransitionstart?: ((payload: TransitionEvent) => void) | undefined;
|
|
725
|
-
}, Partial<Omit<Omit<FormFieldOwnProps, "field">, "error" | "color" | "end" | "size" | "classes" | "customProps" | "disabled" | "endIcon" | "rounded" | "startIcon" | "variant" | "label" | "start" | "
|
|
725
|
+
}, Partial<Omit<Omit<FormFieldOwnProps, "field">, "error" | "color" | "end" | "size" | "classes" | "customProps" | "disabled" | "endIcon" | "rounded" | "startIcon" | "variant" | "label" | "start" | "required" | "corner" | "description" | "errorMessage" | "errorIcon" | "hideErrorMessage" | "readonly" | "showDescriptionOnError" | "showErrorIcon">>>>>;
|
|
726
726
|
handleApply: () => void;
|
|
727
727
|
selectOption: (option: SelectOption) => void;
|
|
728
728
|
handleCancel: () => void;
|
|
@@ -730,7 +730,7 @@ export declare function useAutocomplete(props: AutocompleteOwnProps, model: Ref<
|
|
|
730
730
|
listboxProps: import('vue').ComputedRef<{
|
|
731
731
|
anchorEl?: null | HTMLElement;
|
|
732
732
|
classes?: import('../../Listbox').ListboxClasses;
|
|
733
|
-
color: "info" | "error" | "success" | "warning" | "
|
|
733
|
+
color: "info" | "error" | "success" | "warning" | "dark" | "black" | "primary" | "secondary";
|
|
734
734
|
customProps?: import('../../Listbox').ListboxCustomProps;
|
|
735
735
|
disableAutoFocus: boolean;
|
|
736
736
|
disableMaxHeight: boolean;
|
|
@@ -43,6 +43,7 @@ function m(m, h, g, _, Me) {
|
|
|
43
43
|
},
|
|
44
44
|
bridgeKeys: je
|
|
45
45
|
})), k = a(() => Ie.value.componentProps), A = a(() => ({ classes: k.value.classes })), { components: Le, entry: Re } = te({
|
|
46
|
+
chrome: "FormField",
|
|
46
47
|
componentName: "Autocomplete",
|
|
47
48
|
props: () => A.value
|
|
48
49
|
}), j = i({
|
|
@@ -84,6 +85,7 @@ function m(m, h, g, _, Me) {
|
|
|
84
85
|
let e = h.value;
|
|
85
86
|
return M.value ? Array.isArray(e) ? e : [] : !he(e) && e !== "" ? [e] : [];
|
|
86
87
|
}), We = a(() => Ce(k.value.overlay, Pe.mobile)), z = ne({
|
|
88
|
+
chrome: "FormField",
|
|
87
89
|
overlay: We,
|
|
88
90
|
componentName: "Autocomplete",
|
|
89
91
|
showFooter: () => k.value.showFooter
|
|
@@ -33,6 +33,7 @@ function _(_, v = {
|
|
|
33
33
|
...o(_)
|
|
34
34
|
}
|
|
35
35
|
})), w = y.componentName ?? "BaseField", { merged: T, entry: E, chromeEntry: D } = r({
|
|
36
|
+
chrome: w === "BaseField" || w === "FileUpload" ? void 0 : "BaseField",
|
|
36
37
|
libDefaults: v,
|
|
37
38
|
componentName: w,
|
|
38
39
|
props: () => C.value.componentProps
|
|
@@ -9,16 +9,16 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {}, {
|
|
|
9
9
|
clear: () => any;
|
|
10
10
|
apply: () => any;
|
|
11
11
|
cancel: () => any;
|
|
12
|
-
close: () => any;
|
|
13
12
|
change: (value: string | null) => any;
|
|
13
|
+
close: () => any;
|
|
14
14
|
open: () => any;
|
|
15
15
|
"update:modelValue": (value: string | null | undefined) => any;
|
|
16
16
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
17
17
|
onClear?: (() => any) | undefined;
|
|
18
18
|
onApply?: (() => any) | undefined;
|
|
19
19
|
onCancel?: (() => any) | undefined;
|
|
20
|
-
onClose?: (() => any) | undefined;
|
|
21
20
|
onChange?: ((value: string | null) => any) | undefined;
|
|
21
|
+
onClose?: (() => any) | undefined;
|
|
22
22
|
onOpen?: (() => any) | undefined;
|
|
23
23
|
"onUpdate:modelValue"?: ((value: string | null | undefined) => any) | undefined;
|
|
24
24
|
}>, {
|
|
@@ -110,6 +110,7 @@ var A = { class: "flex min-w-0 flex-1 items-center gap-2" }, j = ["aria-label"],
|
|
|
110
110
|
swatches: T(V).swatches,
|
|
111
111
|
onChange: T(ne),
|
|
112
112
|
onCancel: T(re),
|
|
113
|
+
color: T(H).merged.value.color,
|
|
113
114
|
"custom-props": T(ae),
|
|
114
115
|
disabled: T(H).isDisabled.value,
|
|
115
116
|
rounded: T(H).merged.value.rounded
|
|
@@ -128,6 +129,7 @@ var A = { class: "flex min-w-0 flex-1 items-center gap-2" }, j = ["aria-label"],
|
|
|
128
129
|
"swatches",
|
|
129
130
|
"onChange",
|
|
130
131
|
"onCancel",
|
|
132
|
+
"color",
|
|
131
133
|
"custom-props",
|
|
132
134
|
"disabled",
|
|
133
135
|
"rounded"
|
|
@@ -438,7 +438,7 @@ export declare function useColorField(props: ColorFieldOwnProps, model: Ref<null
|
|
|
438
438
|
onTransitionend?: ((payload: TransitionEvent) => void) | undefined;
|
|
439
439
|
onTransitionrun?: ((payload: TransitionEvent) => void) | undefined;
|
|
440
440
|
onTransitionstart?: ((payload: TransitionEvent) => void) | undefined;
|
|
441
|
-
}, Partial<Omit<Omit<FormFieldOwnProps, "field">, "error" | "color" | "end" | "size" | "classes" | "customProps" | "disabled" | "endIcon" | "rounded" | "startIcon" | "variant" | "label" | "start" | "
|
|
441
|
+
}, Partial<Omit<Omit<FormFieldOwnProps, "field">, "error" | "color" | "end" | "size" | "classes" | "customProps" | "disabled" | "endIcon" | "rounded" | "startIcon" | "variant" | "label" | "start" | "required" | "corner" | "description" | "errorMessage" | "errorIcon" | "hideErrorMessage" | "readonly" | "showDescriptionOnError" | "showErrorIcon">>>>;
|
|
442
442
|
isNotched: import('vue').ComputedRef<boolean>;
|
|
443
443
|
isStacked: import('vue').ComputedRef<boolean>;
|
|
444
444
|
startBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {}>>;
|
|
@@ -689,7 +689,7 @@ export declare function useColorField(props: ColorFieldOwnProps, model: Ref<null
|
|
|
689
689
|
onTransitionend?: ((payload: TransitionEvent) => void) | undefined;
|
|
690
690
|
onTransitionrun?: ((payload: TransitionEvent) => void) | undefined;
|
|
691
691
|
onTransitionstart?: ((payload: TransitionEvent) => void) | undefined;
|
|
692
|
-
}, Partial<Omit<Omit<FormFieldOwnProps, "field">, "error" | "color" | "end" | "size" | "classes" | "customProps" | "disabled" | "endIcon" | "rounded" | "startIcon" | "variant" | "label" | "start" | "
|
|
692
|
+
}, Partial<Omit<Omit<FormFieldOwnProps, "field">, "error" | "color" | "end" | "size" | "classes" | "customProps" | "disabled" | "endIcon" | "rounded" | "startIcon" | "variant" | "label" | "start" | "required" | "corner" | "description" | "errorMessage" | "errorIcon" | "hideErrorMessage" | "readonly" | "showDescriptionOnError" | "showErrorIcon">>>, "class", {
|
|
693
693
|
value: string;
|
|
694
694
|
readonly: boolean;
|
|
695
695
|
onFocus: (event: FocusEvent) => void;
|
|
@@ -35,6 +35,7 @@ function w(p, w, T) {
|
|
|
35
35
|
},
|
|
36
36
|
bridgeKeys: re
|
|
37
37
|
})), M = o(() => j.value.componentProps), N = o(() => w.value ?? null), P = o(() => M.value.format ?? f), F = o(() => M.value.clearable === !0), I = o(() => M.value.showSwatch !== !1), L = o(() => !u(N.value) && N.value.length > 0), R = o(() => g(M.value.overlay, D.mobile)), z = a({
|
|
38
|
+
chrome: "FormField",
|
|
38
39
|
overlay: R,
|
|
39
40
|
componentName: "ColorField",
|
|
40
41
|
fill: () => M.value.fill
|
|
@@ -88,6 +89,7 @@ function w(p, w, T) {
|
|
|
88
89
|
X(n);
|
|
89
90
|
}
|
|
90
91
|
let Q = i({
|
|
92
|
+
chrome: "FormField",
|
|
91
93
|
overlay: R,
|
|
92
94
|
componentName: "ColorField",
|
|
93
95
|
showFooter: () => M.value.showFooter
|
|
@@ -15,6 +15,7 @@ var C = { class: "min-w-0 truncate text-sm text-dark-700 dark:text-dark-100" },
|
|
|
15
15
|
props: /*@__PURE__*/ u({
|
|
16
16
|
alpha: { type: Boolean },
|
|
17
17
|
classes: {},
|
|
18
|
+
color: {},
|
|
18
19
|
customProps: {},
|
|
19
20
|
defaultValue: {},
|
|
20
21
|
disabled: { type: Boolean },
|
|
@@ -40,7 +41,8 @@ var C = { class: "min-w-0 truncate text-sm text-dark-700 dark:text-dark-100" },
|
|
|
40
41
|
setup(c, { emit: u }) {
|
|
41
42
|
let T = x(c, "modelValue"), E = u, D = c, O = g(D.defaultValue ?? null), k = e(T, O), { merged: A, hueBind: j, rootBind: M, areaBind: N, alphaBind: P, showAlpha: F, swatchCss: I, footerBind: ee, showFooter: L, previewBind: R, contentBind: z, handleApply: B, swatchesBind: V, handleCancel: H, hueThumbBind: U, areaThumbBind: W, alphaFillBind: G, formattedValue: K, alphaThumbBind: q, presetSwatches: J, applyButtonProps: Y, isSwatchSelected: X, previewSwatchBind: Z, handleSwatchClick: Q, swatchButtonClass: $, cancelButtonProps: te, swatchSelectedClass: ne, previewSwatchFillBind: re } = n(D, {
|
|
42
43
|
rounded: "md",
|
|
43
|
-
format: "hex"
|
|
44
|
+
format: "hex",
|
|
45
|
+
color: "primary"
|
|
44
46
|
}, k, E);
|
|
45
47
|
return (e, n) => (h(), a("div", p(l(b(M))), [o("div", { class: f(b(z)) }, [
|
|
46
48
|
o("div", p(l(b(N))), [
|
|
@@ -79,6 +81,7 @@ var C = { class: "min-w-0 truncate text-sm text-dark-700 dark:text-dark-100" },
|
|
|
79
81
|
apply: b(B),
|
|
80
82
|
cancel: b(H)
|
|
81
83
|
}, () => [s(b(t), {
|
|
84
|
+
color: b(A).color,
|
|
82
85
|
onApply: b(B),
|
|
83
86
|
onCancel: b(H),
|
|
84
87
|
"custom-props": {
|
|
@@ -86,6 +89,7 @@ var C = { class: "min-w-0 truncate text-sm text-dark-700 dark:text-dark-100" },
|
|
|
86
89
|
cancelButton: b(te)
|
|
87
90
|
}
|
|
88
91
|
}, null, 8, [
|
|
92
|
+
"color",
|
|
89
93
|
"onApply",
|
|
90
94
|
"onCancel",
|
|
91
95
|
"custom-props"
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { HTMLAttributes, Slot } from 'vue';
|
|
2
2
|
import { ColorFormat, FieldOverlayFooterSlotProps } from '@bridge-ui/core/Domain';
|
|
3
|
-
import { ColorPickerRounded } from '@bridge-ui/core/Tokens';
|
|
3
|
+
import { ButtonColor, ColorPickerRounded } from '@bridge-ui/core/Tokens';
|
|
4
4
|
import { MergeHtmlProps, MergeProps } from '@bridge-ui/core/Utils';
|
|
5
|
-
import { ButtonProps } from '../Button/button.types';
|
|
5
|
+
import { ButtonColorOverrides, ButtonProps } from '../Button/button.types';
|
|
6
6
|
export interface ColorPickerRoundedOverrides {}
|
|
7
7
|
export interface ColorPickerClasses {
|
|
8
8
|
/**
|
|
@@ -122,6 +122,12 @@ export interface ColorPickerOwnProps {
|
|
|
122
122
|
* @default undefined
|
|
123
123
|
*/
|
|
124
124
|
classes?: ColorPickerClasses;
|
|
125
|
+
/**
|
|
126
|
+
* Color of the Cancel / Apply footer actions.
|
|
127
|
+
*
|
|
128
|
+
* @default "primary"
|
|
129
|
+
*/
|
|
130
|
+
color?: MergeProps<ButtonColor, ButtonColorOverrides>;
|
|
125
131
|
/**
|
|
126
132
|
* Extra props for internal parts.
|
|
127
133
|
*
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MaybeRefOrGetter, Ref, SetupContext } from 'vue';
|
|
2
2
|
import { LibDefaultsShape, MergeLibDefaults } from '@bridge-ui/core/Utils';
|
|
3
3
|
import { ColorPickerEmits, ColorPickerOwnProps } from '../colorPicker.types';
|
|
4
|
-
type ColorPickerLibDefaults = LibDefaultsShape<ColorPickerOwnProps, "format" | "rounded">;
|
|
4
|
+
type ColorPickerLibDefaults = LibDefaultsShape<ColorPickerOwnProps, "color" | "format" | "rounded">;
|
|
5
5
|
type ColorPickerMerged = MergeLibDefaults<ColorPickerOwnProps, ColorPickerLibDefaults>;
|
|
6
6
|
/**
|
|
7
7
|
* Owns controlled/uncontrolled value, optional footer draft, and panel binds.
|
|
@@ -22,7 +22,7 @@ export declare function useColorPicker(props: MaybeRefOrGetter<ColorPickerOwnPro
|
|
|
22
22
|
onPointerdown: (event: PointerEvent) => void;
|
|
23
23
|
onPointermove: (event: PointerEvent) => void;
|
|
24
24
|
}>>;
|
|
25
|
-
rootBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, Partial<Omit<ColorPickerOwnProps, "fill" | "format" | "classes" | "showFooter" | "customProps" | "disabled" | "rounded" | "alpha" | "defaultValue" | "readOnly" | "swatches">>>>;
|
|
25
|
+
rootBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, Partial<Omit<ColorPickerOwnProps, "color" | "fill" | "format" | "classes" | "showFooter" | "customProps" | "disabled" | "rounded" | "alpha" | "defaultValue" | "readOnly" | "swatches">>>>;
|
|
26
26
|
areaBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {
|
|
27
27
|
role: string;
|
|
28
28
|
onKeydown: (event: KeyboardEvent) => void;
|
|
@@ -10,16 +10,16 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {}, {
|
|
|
10
10
|
clear: () => any;
|
|
11
11
|
apply: () => any;
|
|
12
12
|
cancel: () => any;
|
|
13
|
-
close: () => any;
|
|
14
13
|
change: (value: DatePickerModel) => any;
|
|
14
|
+
close: () => any;
|
|
15
15
|
open: () => any;
|
|
16
16
|
"update:modelValue": (value: DatePickerModel | undefined) => any;
|
|
17
17
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
18
18
|
onClear?: (() => any) | undefined;
|
|
19
19
|
onApply?: (() => any) | undefined;
|
|
20
20
|
onCancel?: (() => any) | undefined;
|
|
21
|
-
onClose?: (() => any) | undefined;
|
|
22
21
|
onChange?: ((value: DatePickerModel) => any) | undefined;
|
|
22
|
+
onClose?: (() => any) | undefined;
|
|
23
23
|
onOpen?: (() => any) | undefined;
|
|
24
24
|
"onUpdate:modelValue"?: ((value: DatePickerModel | undefined) => any) | undefined;
|
|
25
25
|
}>, {
|
|
@@ -436,7 +436,7 @@ export declare function useDateField(props: DateFieldOwnProps, model: Ref<null |
|
|
|
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" | "disabled" | "endIcon" | "rounded" | "startIcon" | "variant" | "label" | "start" | "
|
|
439
|
+
}, Partial<Omit<Omit<FormFieldOwnProps, "field">, "error" | "color" | "end" | "size" | "classes" | "customProps" | "disabled" | "endIcon" | "rounded" | "startIcon" | "variant" | "label" | "start" | "required" | "corner" | "description" | "errorMessage" | "errorIcon" | "hideErrorMessage" | "readonly" | "showDescriptionOnError" | "showErrorIcon">>>>;
|
|
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, {}>>;
|
|
@@ -687,7 +687,7 @@ export declare function useDateField(props: DateFieldOwnProps, model: Ref<null |
|
|
|
687
687
|
onTransitionend?: ((payload: TransitionEvent) => void) | undefined;
|
|
688
688
|
onTransitionrun?: ((payload: TransitionEvent) => void) | undefined;
|
|
689
689
|
onTransitionstart?: ((payload: TransitionEvent) => void) | undefined;
|
|
690
|
-
}, Partial<Omit<Omit<FormFieldOwnProps, "field">, "error" | "color" | "end" | "size" | "classes" | "customProps" | "disabled" | "endIcon" | "rounded" | "startIcon" | "variant" | "label" | "start" | "
|
|
690
|
+
}, Partial<Omit<Omit<FormFieldOwnProps, "field">, "error" | "color" | "end" | "size" | "classes" | "customProps" | "disabled" | "endIcon" | "rounded" | "startIcon" | "variant" | "label" | "start" | "required" | "corner" | "description" | "errorMessage" | "errorIcon" | "hideErrorMessage" | "readonly" | "showDescriptionOnError" | "showErrorIcon">>>, "class", {
|
|
691
691
|
value: string;
|
|
692
692
|
readonly: boolean;
|
|
693
693
|
onFocus: (event: FocusEvent) => void;
|
|
@@ -48,10 +48,12 @@ function T(p, m, T) {
|
|
|
48
48
|
range: N.value.range,
|
|
49
49
|
multiple: N.value.multiple
|
|
50
50
|
})), I = c(() => v(N.value.overlay, k.mobile)), L = ee({
|
|
51
|
+
chrome: "FormField",
|
|
51
52
|
overlay: I,
|
|
52
53
|
componentName: "DateField",
|
|
53
54
|
showFooter: () => N.value.showFooter
|
|
54
55
|
}), R = c(() => m.value ?? null), z = c(() => N.value.clearable === !0), B = c(() => w(R.value)), V = a({
|
|
56
|
+
chrome: "FormField",
|
|
55
57
|
overlay: I,
|
|
56
58
|
componentName: "DateField",
|
|
57
59
|
fill: () => N.value.fill
|
|
@@ -107,6 +107,7 @@ var b = /*@__PURE__*/ c({
|
|
|
107
107
|
apply: _(k),
|
|
108
108
|
cancel: _(j)
|
|
109
109
|
}, () => [s(_(t), {
|
|
110
|
+
color: _(T).color,
|
|
110
111
|
onApply: _(k),
|
|
111
112
|
onCancel: _(j),
|
|
112
113
|
"custom-props": {
|
|
@@ -114,6 +115,7 @@ var b = /*@__PURE__*/ c({
|
|
|
114
115
|
cancelButton: _(N)
|
|
115
116
|
}
|
|
116
117
|
}, null, 8, [
|
|
118
|
+
"color",
|
|
117
119
|
"onApply",
|
|
118
120
|
"onCancel",
|
|
119
121
|
"custom-props"
|
|
@@ -10,16 +10,16 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {}, {
|
|
|
10
10
|
clear: () => any;
|
|
11
11
|
apply: () => any;
|
|
12
12
|
cancel: () => any;
|
|
13
|
-
close: () => any;
|
|
14
13
|
change: (value: DateRangeValue | null) => any;
|
|
14
|
+
close: () => any;
|
|
15
15
|
open: () => any;
|
|
16
16
|
"update:modelValue": (value: DateRangeValue | null | undefined) => any;
|
|
17
17
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
18
18
|
onClear?: (() => any) | undefined;
|
|
19
19
|
onApply?: (() => any) | undefined;
|
|
20
20
|
onCancel?: (() => any) | undefined;
|
|
21
|
-
onClose?: (() => any) | undefined;
|
|
22
21
|
onChange?: ((value: DateRangeValue | null) => any) | undefined;
|
|
22
|
+
onClose?: (() => any) | undefined;
|
|
23
23
|
onOpen?: (() => any) | undefined;
|
|
24
24
|
"onUpdate:modelValue"?: ((value: DateRangeValue | null | undefined) => any) | undefined;
|
|
25
25
|
}>, {
|
|
@@ -435,7 +435,7 @@ export declare function useDateRangeField(props: DateRangeFieldOwnProps, model:
|
|
|
435
435
|
onTransitionend?: ((payload: TransitionEvent) => void) | undefined;
|
|
436
436
|
onTransitionrun?: ((payload: TransitionEvent) => void) | undefined;
|
|
437
437
|
onTransitionstart?: ((payload: TransitionEvent) => void) | undefined;
|
|
438
|
-
}, Partial<Omit<Omit<FormFieldOwnProps, "field">, "error" | "color" | "end" | "size" | "classes" | "customProps" | "disabled" | "endIcon" | "rounded" | "startIcon" | "variant" | "label" | "start" | "
|
|
438
|
+
}, Partial<Omit<Omit<FormFieldOwnProps, "field">, "error" | "color" | "end" | "size" | "classes" | "customProps" | "disabled" | "endIcon" | "rounded" | "startIcon" | "variant" | "label" | "start" | "required" | "corner" | "description" | "errorMessage" | "errorIcon" | "hideErrorMessage" | "readonly" | "showDescriptionOnError" | "showErrorIcon">>>>;
|
|
439
439
|
isNotched: import('vue').ComputedRef<boolean>;
|
|
440
440
|
isStacked: import('vue').ComputedRef<boolean>;
|
|
441
441
|
startBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {}>>;
|
|
@@ -686,7 +686,7 @@ export declare function useDateRangeField(props: DateRangeFieldOwnProps, model:
|
|
|
686
686
|
onTransitionend?: ((payload: TransitionEvent) => void) | undefined;
|
|
687
687
|
onTransitionrun?: ((payload: TransitionEvent) => void) | undefined;
|
|
688
688
|
onTransitionstart?: ((payload: TransitionEvent) => void) | undefined;
|
|
689
|
-
}, Partial<Omit<Omit<FormFieldOwnProps, "field">, "error" | "color" | "end" | "size" | "classes" | "customProps" | "disabled" | "endIcon" | "rounded" | "startIcon" | "variant" | "label" | "start" | "
|
|
689
|
+
}, Partial<Omit<Omit<FormFieldOwnProps, "field">, "error" | "color" | "end" | "size" | "classes" | "customProps" | "disabled" | "endIcon" | "rounded" | "startIcon" | "variant" | "label" | "start" | "required" | "corner" | "description" | "errorMessage" | "errorIcon" | "hideErrorMessage" | "readonly" | "showDescriptionOnError" | "showErrorIcon">>>, "class", {
|
|
690
690
|
value: string;
|
|
691
691
|
readonly: boolean;
|
|
692
692
|
onFocus: (event: FocusEvent) => void;
|
|
@@ -77,6 +77,7 @@ function S(S, C, w) {
|
|
|
77
77
|
C.value = e, w("change", e);
|
|
78
78
|
}
|
|
79
79
|
let W = s(() => h(M.value.overlay, O.mobile)), G = s(() => _(M.value.orientation, W.value, O.mobile)), K = i({
|
|
80
|
+
chrome: "FormField",
|
|
80
81
|
overlay: W,
|
|
81
82
|
componentName: "DateRangeField",
|
|
82
83
|
showFooter: () => M.value.showFooter
|
|
@@ -111,6 +112,7 @@ function S(S, C, w) {
|
|
|
111
112
|
...M.value.customProps?.menu
|
|
112
113
|
}
|
|
113
114
|
})), ie = s(() => M.value.customProps?.dateRangePicker), $ = te({
|
|
115
|
+
chrome: "FormField",
|
|
114
116
|
overlay: W,
|
|
115
117
|
componentName: "DateRangeField",
|
|
116
118
|
fill: () => M.value.fill
|