@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
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { Ref, SetupContext } from 'vue';
|
|
2
|
+
import { IconSize } from '@bridge-ui/core/Tokens';
|
|
3
|
+
import { LibDefaultsShape, MergeLibDefaults } from '@bridge-ui/core/Utils';
|
|
4
|
+
import { DataTablePaginationEmits, DataTablePaginationOwnProps, DataTablePaginationProps } from '../dataTablePagination.types';
|
|
5
|
+
type DataTablePaginationLibDefaults = LibDefaultsShape<DataTablePaginationOwnProps, "size" | "rounded" | "disabled">;
|
|
6
|
+
type DataTablePaginationMerged = MergeLibDefaults<DataTablePaginationOwnProps, DataTablePaginationLibDefaults>;
|
|
7
|
+
export declare function useDataTablePagination(props: DataTablePaginationOwnProps, libDefaults: DataTablePaginationLibDefaults, model: Ref<number | undefined>, emit: SetupContext<DataTablePaginationEmits>["emit"]): {
|
|
8
|
+
page: import('vue').ComputedRef<number>;
|
|
9
|
+
slots: Readonly<{
|
|
10
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
11
|
+
}>;
|
|
12
|
+
merged: import('vue').ComputedRef<DataTablePaginationMerged>;
|
|
13
|
+
rootBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<{
|
|
14
|
+
"aria-label": string;
|
|
15
|
+
class: string;
|
|
16
|
+
}, "class", import('vue').HTMLAttributes | undefined, Omit<DataTablePaginationProps, "size" | "classes" | "customProps" | "rounded" | "disabled" | "modelValue" | "count">>>;
|
|
17
|
+
listBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<{
|
|
18
|
+
class: string;
|
|
19
|
+
}, "class", import('vue').HTMLAttributes | undefined, {}>>;
|
|
20
|
+
prevBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<{
|
|
21
|
+
onClick: () => void;
|
|
22
|
+
type: "button";
|
|
23
|
+
disabled: boolean;
|
|
24
|
+
"aria-label": string;
|
|
25
|
+
class: string;
|
|
26
|
+
}, "class", import('vue').ButtonHTMLAttributes | undefined, {}>>;
|
|
27
|
+
nextBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<{
|
|
28
|
+
onClick: () => void;
|
|
29
|
+
type: "button";
|
|
30
|
+
disabled: boolean;
|
|
31
|
+
"aria-label": string;
|
|
32
|
+
class: string;
|
|
33
|
+
}, "class", import('vue').ButtonHTMLAttributes | undefined, {}>>;
|
|
34
|
+
lastBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<{
|
|
35
|
+
onClick: () => void;
|
|
36
|
+
type: "button";
|
|
37
|
+
disabled: boolean;
|
|
38
|
+
"aria-label": string;
|
|
39
|
+
class: string;
|
|
40
|
+
}, "class", import('vue').ButtonHTMLAttributes | undefined, {}>>;
|
|
41
|
+
firstBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<{
|
|
42
|
+
onClick: () => void;
|
|
43
|
+
type: "button";
|
|
44
|
+
disabled: boolean;
|
|
45
|
+
"aria-label": string;
|
|
46
|
+
class: string;
|
|
47
|
+
}, "class", import('vue').ButtonHTMLAttributes | undefined, {}>>;
|
|
48
|
+
prevIconBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<{
|
|
49
|
+
"aria-hidden": boolean;
|
|
50
|
+
size: keyof IconSize;
|
|
51
|
+
class: string;
|
|
52
|
+
}, "class", Partial<Omit<import('../../Icon').IconProps, "icon">> | undefined, {}>>;
|
|
53
|
+
nextIconBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<{
|
|
54
|
+
"aria-hidden": boolean;
|
|
55
|
+
size: keyof IconSize;
|
|
56
|
+
class: string;
|
|
57
|
+
}, "class", Partial<Omit<import('../../Icon').IconProps, "icon">> | undefined, {}>>;
|
|
58
|
+
lastIconBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<{
|
|
59
|
+
"aria-hidden": boolean;
|
|
60
|
+
size: keyof IconSize;
|
|
61
|
+
class: string;
|
|
62
|
+
}, "class", Partial<Omit<import('../../Icon').IconProps, "icon">> | undefined, {}>>;
|
|
63
|
+
firstIconBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<{
|
|
64
|
+
"aria-hidden": boolean;
|
|
65
|
+
size: keyof IconSize;
|
|
66
|
+
class: string;
|
|
67
|
+
}, "class", Partial<Omit<import('../../Icon').IconProps, "icon">> | undefined, {}>>;
|
|
68
|
+
};
|
|
69
|
+
export {};
|
|
@@ -0,0 +1,130 @@
|
|
|
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, useSlots as o } from "vue";
|
|
4
|
+
import { get as s } from "es-toolkit/compat";
|
|
5
|
+
import { DATATABLE_PAGINATION_ITEM_CLASS as c, DATATABLE_PAGINATION_LIST_CLASS as l } from "@bridge-ui/core/Domain";
|
|
6
|
+
import { paginationRoundedProps as u, paginationSizeProps as d } from "@bridge-ui/core/Tokens";
|
|
7
|
+
import { cn as f, splitComponentProps as p } from "@bridge-ui/core/Utils";
|
|
8
|
+
//#region src/Components/DataTable/composables/useDataTablePagination.ts
|
|
9
|
+
var m = [
|
|
10
|
+
"size",
|
|
11
|
+
"count",
|
|
12
|
+
"classes",
|
|
13
|
+
"rounded",
|
|
14
|
+
"disabled",
|
|
15
|
+
"modelValue",
|
|
16
|
+
"customProps"
|
|
17
|
+
];
|
|
18
|
+
function h(h, g, _, v) {
|
|
19
|
+
let y = a(), b = o(), x = e(), S = i(() => p({
|
|
20
|
+
props: {
|
|
21
|
+
...y,
|
|
22
|
+
...h
|
|
23
|
+
},
|
|
24
|
+
bridgeKeys: m
|
|
25
|
+
})), { merged: C } = n({
|
|
26
|
+
libDefaults: g,
|
|
27
|
+
props: () => S.value.componentProps
|
|
28
|
+
}), w = i(() => C.value.customProps), T = i(() => _.value ?? 1), E = r({
|
|
29
|
+
props: () => S.value.componentProps,
|
|
30
|
+
entry: i(() => {})
|
|
31
|
+
}), D = i(() => s(d, C.value.size)), O = i(() => s(u, C.value.rounded)), k = (e) => {
|
|
32
|
+
if (C.value.disabled) return;
|
|
33
|
+
let t = C.value.count ?? 0, n = Math.min(Math.max(1, e), Math.max(t, 1));
|
|
34
|
+
_.value = n, v("change", n), v("update:modelValue", n);
|
|
35
|
+
}, A = () => {
|
|
36
|
+
k(T.value - 1);
|
|
37
|
+
}, j = () => {
|
|
38
|
+
k(T.value + 1);
|
|
39
|
+
}, M = () => {
|
|
40
|
+
k(1);
|
|
41
|
+
}, N = () => {
|
|
42
|
+
k(C.value.count ?? 1);
|
|
43
|
+
}, P = i(() => C.value.disabled || T.value <= 1), F = i(() => C.value.disabled || T.value >= (C.value.count ?? 0)), I = i(() => f({
|
|
44
|
+
[s(D.value, "itemIcon") ?? ""]: !0,
|
|
45
|
+
[c]: !0,
|
|
46
|
+
[s(O.value, "item") ?? ""]: !0
|
|
47
|
+
})), L = i(() => s(D.value, "icon") ?? "xs"), R = i(() => {
|
|
48
|
+
let e = S.value.inheritedAttrs;
|
|
49
|
+
return t(w.value?.root, e, {
|
|
50
|
+
"aria-label": e["aria-label"] ?? x("Pagination"),
|
|
51
|
+
class: f({
|
|
52
|
+
[s(D.value, "root") ?? ""]: !0,
|
|
53
|
+
[s(E.value, "root") ?? ""]: !0
|
|
54
|
+
})
|
|
55
|
+
});
|
|
56
|
+
}), z = i(() => t(w.value?.list, {}, { class: f({
|
|
57
|
+
[s(D.value, "list") ?? ""]: !0,
|
|
58
|
+
[l]: !0,
|
|
59
|
+
[s(E.value, "list") ?? ""]: !0
|
|
60
|
+
}) })), B = i(() => t(w.value?.prev, {}, {
|
|
61
|
+
onClick: A,
|
|
62
|
+
type: "button",
|
|
63
|
+
disabled: P.value,
|
|
64
|
+
"aria-label": x("Previous"),
|
|
65
|
+
class: f({
|
|
66
|
+
[I.value]: !0,
|
|
67
|
+
[s(E.value, "prev") ?? ""]: !0
|
|
68
|
+
})
|
|
69
|
+
})), V = i(() => t(w.value?.next, {}, {
|
|
70
|
+
onClick: j,
|
|
71
|
+
type: "button",
|
|
72
|
+
disabled: F.value,
|
|
73
|
+
"aria-label": x("Next"),
|
|
74
|
+
class: f({
|
|
75
|
+
[I.value]: !0,
|
|
76
|
+
[s(E.value, "next") ?? ""]: !0
|
|
77
|
+
})
|
|
78
|
+
})), H = i(() => t(w.value?.first, {}, {
|
|
79
|
+
onClick: M,
|
|
80
|
+
type: "button",
|
|
81
|
+
disabled: P.value,
|
|
82
|
+
"aria-label": x("First page"),
|
|
83
|
+
class: f({
|
|
84
|
+
[I.value]: !0,
|
|
85
|
+
[s(E.value, "first") ?? ""]: !0
|
|
86
|
+
})
|
|
87
|
+
})), U = i(() => t(w.value?.last, {}, {
|
|
88
|
+
onClick: N,
|
|
89
|
+
type: "button",
|
|
90
|
+
disabled: F.value,
|
|
91
|
+
"aria-label": x("Last page"),
|
|
92
|
+
class: f({
|
|
93
|
+
[I.value]: !0,
|
|
94
|
+
[s(E.value, "last") ?? ""]: !0
|
|
95
|
+
})
|
|
96
|
+
})), W = i(() => t(w.value?.prevIcon, {}, {
|
|
97
|
+
"aria-hidden": !0,
|
|
98
|
+
size: L.value,
|
|
99
|
+
class: "shrink-0 pointer-events-none"
|
|
100
|
+
})), G = i(() => t(w.value?.nextIcon, {}, {
|
|
101
|
+
"aria-hidden": !0,
|
|
102
|
+
size: L.value,
|
|
103
|
+
class: "shrink-0 pointer-events-none"
|
|
104
|
+
})), K = i(() => t(w.value?.firstIcon, {}, {
|
|
105
|
+
"aria-hidden": !0,
|
|
106
|
+
size: L.value,
|
|
107
|
+
class: "shrink-0 pointer-events-none"
|
|
108
|
+
}));
|
|
109
|
+
return {
|
|
110
|
+
page: T,
|
|
111
|
+
slots: b,
|
|
112
|
+
merged: C,
|
|
113
|
+
rootBind: R,
|
|
114
|
+
listBind: z,
|
|
115
|
+
prevBind: B,
|
|
116
|
+
nextBind: V,
|
|
117
|
+
lastBind: U,
|
|
118
|
+
firstBind: H,
|
|
119
|
+
prevIconBind: W,
|
|
120
|
+
nextIconBind: G,
|
|
121
|
+
lastIconBind: i(() => t(w.value?.lastIcon, {}, {
|
|
122
|
+
"aria-hidden": !0,
|
|
123
|
+
size: L.value,
|
|
124
|
+
class: "shrink-0 pointer-events-none"
|
|
125
|
+
})),
|
|
126
|
+
firstIconBind: K
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
//#endregion
|
|
130
|
+
export { h as useDataTablePagination };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { HTMLAttributes, Slot, VNodeChild } from 'vue';
|
|
2
|
-
import { DataTableColumnBase, DataTableColumnClasses, DataTableColumnSearch, DataTableFilterOption, DataTableFilters, DataTableItemSlotProps, DataTableLoadingVariant, DataTablePaginationSlotProps, DataTablePerPageSlotProps, DataTableSelectionMode, DataTableSorting, DataTableStickyEdge, DataTableStickyHeader, FieldOverlayMode } from '@bridge-ui/core/Domain';
|
|
2
|
+
import { DataTableColumnBase, DataTableColumnClasses, DataTableColumnSearch, DataTableFilterOption, DataTableFilters, DataTableItemSlotProps, DataTableLoadingVariant, DataTablePaginationSlotProps, DataTablePerPageSlotProps, DataTableSelectedSlotProps, DataTableSelectionMode, DataTableSorting, DataTableStickyEdge, DataTableStickyHeader, FieldOverlayMode } from '@bridge-ui/core/Domain';
|
|
3
3
|
import { TableAlign, TableRounded, TableSize, TableVariant } from '@bridge-ui/core/Tokens';
|
|
4
4
|
import { MergeHtmlProps, MergeProps } from '@bridge-ui/core/Utils';
|
|
5
5
|
import { CheckboxProps } from '../Checkbox/checkbox.types';
|
|
6
|
-
import {
|
|
6
|
+
import { DataTablePaginationOwnProps } from './dataTablePagination.types';
|
|
7
7
|
import { ProgressOwnProps } from '../Progress/progress.types';
|
|
8
8
|
import { RadioProps } from '../Radio/radio.types';
|
|
9
9
|
import { SelectOwnProps } from '../Select/select.types';
|
|
10
10
|
import { TableAlignOverrides, TableRoundedOverrides, TableSizeOverrides, TableVariantOverrides } from '../Table/table.types';
|
|
11
11
|
import { TextFieldOwnProps } from '../TextField/textField.types';
|
|
12
|
-
export type { DataTableColumnBase, DataTableColumnClasses, DataTableColumnSearch, DataTableFilterOption, DataTableFilters, DataTableItemSlotProps, DataTableLoadingVariant, DataTablePaginationSlotProps, DataTablePerPageSlotProps, DataTableSelectionMode, DataTableSorting, DataTableStickyEdge, DataTableStickyHeader, };
|
|
12
|
+
export type { DataTableColumnBase, DataTableColumnClasses, DataTableColumnSearch, DataTableFilterOption, DataTableFilters, DataTableItemSlotProps, DataTableLoadingVariant, DataTablePaginationSlotProps, DataTablePerPageSlotProps, DataTableSelectedSlotProps, DataTableSelectionMode, DataTableSorting, DataTableStickyEdge, DataTableStickyHeader, };
|
|
13
13
|
/**
|
|
14
14
|
* Column definition with Vue renderers.
|
|
15
15
|
*/
|
|
@@ -66,7 +66,7 @@ export interface DataTableClasses {
|
|
|
66
66
|
*/
|
|
67
67
|
loading?: string;
|
|
68
68
|
/**
|
|
69
|
-
* Classes merged onto the
|
|
69
|
+
* Classes merged onto the chrome footer (selection, per-page, pager).
|
|
70
70
|
*/
|
|
71
71
|
pagination?: string;
|
|
72
72
|
/**
|
|
@@ -85,6 +85,10 @@ export interface DataTableClasses {
|
|
|
85
85
|
* Classes merged onto the toolbar search field.
|
|
86
86
|
*/
|
|
87
87
|
search?: string;
|
|
88
|
+
/**
|
|
89
|
+
* Classes merged onto the selection summary in the chrome footer.
|
|
90
|
+
*/
|
|
91
|
+
selected?: string;
|
|
88
92
|
/**
|
|
89
93
|
* Classes merged onto the `<table>` element.
|
|
90
94
|
*/
|
|
@@ -148,11 +152,11 @@ export interface DataTableCustomProps {
|
|
|
148
152
|
*/
|
|
149
153
|
loading?: HTMLAttributes;
|
|
150
154
|
/**
|
|
151
|
-
* Extra props for the built-in
|
|
155
|
+
* Extra props for the built-in chrome pager (first / previous / next / last).
|
|
152
156
|
*
|
|
153
157
|
* @default undefined
|
|
154
158
|
*/
|
|
155
|
-
pagination?: Partial<Omit<
|
|
159
|
+
pagination?: Partial<Omit<DataTablePaginationOwnProps, "count" | "modelValue">>;
|
|
156
160
|
/**
|
|
157
161
|
* Extra props for the built-in per-page `Select`.
|
|
158
162
|
*
|
|
@@ -189,6 +193,12 @@ export interface DataTableCustomProps {
|
|
|
189
193
|
* @default undefined
|
|
190
194
|
*/
|
|
191
195
|
search?: Partial<Omit<TextFieldOwnProps, "modelValue">>;
|
|
196
|
+
/**
|
|
197
|
+
* Props forwarded to the selection summary in the chrome footer.
|
|
198
|
+
*
|
|
199
|
+
* @default undefined
|
|
200
|
+
*/
|
|
201
|
+
selected?: HTMLAttributes;
|
|
192
202
|
/**
|
|
193
203
|
* Props forwarded to the `<table>` element.
|
|
194
204
|
*
|
|
@@ -349,13 +359,13 @@ export interface DataTableOwnProps<T> {
|
|
|
349
359
|
*/
|
|
350
360
|
loadingVariant?: DataTableLoadingVariant;
|
|
351
361
|
/**
|
|
352
|
-
* Controlled page for built-in
|
|
362
|
+
* Controlled page for the built-in chrome pager (1-based).
|
|
353
363
|
*
|
|
354
364
|
* @default undefined
|
|
355
365
|
*/
|
|
356
366
|
page?: number;
|
|
357
367
|
/**
|
|
358
|
-
* Total pages for built-in
|
|
368
|
+
* Total pages for the built-in chrome pager. Use this or `totalCount`.
|
|
359
369
|
*
|
|
360
370
|
* @default undefined
|
|
361
371
|
*/
|
|
@@ -437,7 +447,7 @@ export interface DataTableOwnProps<T> {
|
|
|
437
447
|
*/
|
|
438
448
|
totalCount?: number;
|
|
439
449
|
/**
|
|
440
|
-
* Chrome treatment
|
|
450
|
+
* Chrome treatment (`plain` / `ghost` / `bordered`).
|
|
441
451
|
*
|
|
442
452
|
* @default "plain"
|
|
443
453
|
*/
|
|
@@ -459,7 +469,7 @@ export interface DataTableSlots<T = unknown> {
|
|
|
459
469
|
row: T;
|
|
460
470
|
}>;
|
|
461
471
|
/**
|
|
462
|
-
* Region below the table, above
|
|
472
|
+
* Region below the table, above the chrome footer.
|
|
463
473
|
*/
|
|
464
474
|
footer?: Slot<undefined>;
|
|
465
475
|
/**
|
|
@@ -472,8 +482,8 @@ export interface DataTableSlots<T = unknown> {
|
|
|
472
482
|
*/
|
|
473
483
|
loading?: Slot<undefined>;
|
|
474
484
|
/**
|
|
475
|
-
* Replaces the built-in
|
|
476
|
-
* `
|
|
485
|
+
* Replaces the built-in chrome pager. Receives `page`, `count`, and
|
|
486
|
+
* `onPageChange`.
|
|
477
487
|
*/
|
|
478
488
|
pagination?: Slot<DataTablePaginationSlotProps>;
|
|
479
489
|
/**
|
|
@@ -485,6 +495,11 @@ export interface DataTableSlots<T = unknown> {
|
|
|
485
495
|
* Replaces the toolbar search field.
|
|
486
496
|
*/
|
|
487
497
|
search?: Slot<undefined>;
|
|
498
|
+
/**
|
|
499
|
+
* Replaces the selection summary (`selected of total`). Receives
|
|
500
|
+
* `selectedCount` / `totalCount`.
|
|
501
|
+
*/
|
|
502
|
+
selected?: Slot<DataTableSelectedSlotProps>;
|
|
488
503
|
/**
|
|
489
504
|
* Leading toolbar region (left of Columns / Search).
|
|
490
505
|
*/
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
import { ButtonHTMLAttributes, HTMLAttributes, Slot } from 'vue';
|
|
2
|
+
import { PaginationRounded, PaginationSize } from '@bridge-ui/core/Tokens';
|
|
3
|
+
import { MergeHtmlProps, MergeProps } from '@bridge-ui/core/Utils';
|
|
4
|
+
import { IconProps } from '../Icon';
|
|
5
|
+
import { PaginationRoundedOverrides, PaginationSizeOverrides } from '../Pagination/pagination.types';
|
|
6
|
+
export interface DataTablePaginationClasses {
|
|
7
|
+
/**
|
|
8
|
+
* Classes merged onto the first-page control.
|
|
9
|
+
*/
|
|
10
|
+
first?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Classes merged onto the last-page control.
|
|
13
|
+
*/
|
|
14
|
+
last?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Classes merged onto the unordered list.
|
|
17
|
+
*/
|
|
18
|
+
list?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Classes merged onto the next control.
|
|
21
|
+
*/
|
|
22
|
+
next?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Classes merged onto the previous control.
|
|
25
|
+
*/
|
|
26
|
+
prev?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Classes merged onto the nav root.
|
|
29
|
+
*/
|
|
30
|
+
root?: string;
|
|
31
|
+
}
|
|
32
|
+
export interface DataTablePaginationCustomProps {
|
|
33
|
+
/**
|
|
34
|
+
* Props forwarded to the first-page button.
|
|
35
|
+
*
|
|
36
|
+
* @default undefined
|
|
37
|
+
*/
|
|
38
|
+
first?: ButtonHTMLAttributes;
|
|
39
|
+
/**
|
|
40
|
+
* Props forwarded to the first-page `Icon`.
|
|
41
|
+
*
|
|
42
|
+
* @default undefined
|
|
43
|
+
*/
|
|
44
|
+
firstIcon?: Partial<Omit<IconProps, "icon">>;
|
|
45
|
+
/**
|
|
46
|
+
* Props forwarded to the last-page button.
|
|
47
|
+
*
|
|
48
|
+
* @default undefined
|
|
49
|
+
*/
|
|
50
|
+
last?: ButtonHTMLAttributes;
|
|
51
|
+
/**
|
|
52
|
+
* Props forwarded to the last-page `Icon`.
|
|
53
|
+
*
|
|
54
|
+
* @default undefined
|
|
55
|
+
*/
|
|
56
|
+
lastIcon?: Partial<Omit<IconProps, "icon">>;
|
|
57
|
+
/**
|
|
58
|
+
* Props forwarded to the unordered list.
|
|
59
|
+
*
|
|
60
|
+
* @default undefined
|
|
61
|
+
*/
|
|
62
|
+
list?: HTMLAttributes;
|
|
63
|
+
/**
|
|
64
|
+
* Props forwarded to the next button.
|
|
65
|
+
*
|
|
66
|
+
* @default undefined
|
|
67
|
+
*/
|
|
68
|
+
next?: ButtonHTMLAttributes;
|
|
69
|
+
/**
|
|
70
|
+
* Props forwarded to the next `Icon`.
|
|
71
|
+
*
|
|
72
|
+
* @default undefined
|
|
73
|
+
*/
|
|
74
|
+
nextIcon?: Partial<Omit<IconProps, "icon">>;
|
|
75
|
+
/**
|
|
76
|
+
* Props forwarded to the previous button.
|
|
77
|
+
*
|
|
78
|
+
* @default undefined
|
|
79
|
+
*/
|
|
80
|
+
prev?: ButtonHTMLAttributes;
|
|
81
|
+
/**
|
|
82
|
+
* Props forwarded to the previous `Icon`.
|
|
83
|
+
*
|
|
84
|
+
* @default undefined
|
|
85
|
+
*/
|
|
86
|
+
prevIcon?: Partial<Omit<IconProps, "icon">>;
|
|
87
|
+
/**
|
|
88
|
+
* Props forwarded to the nav root.
|
|
89
|
+
*
|
|
90
|
+
* @default undefined
|
|
91
|
+
*/
|
|
92
|
+
root?: HTMLAttributes;
|
|
93
|
+
}
|
|
94
|
+
export interface DataTablePaginationEmits {
|
|
95
|
+
/**
|
|
96
|
+
* Emitted when the page changes.
|
|
97
|
+
*/
|
|
98
|
+
change: [page: number];
|
|
99
|
+
/**
|
|
100
|
+
* Emitted when `v-model` should update.
|
|
101
|
+
*/
|
|
102
|
+
"update:modelValue": [page: number];
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* First / previous / next / last pager used by the DataTable chrome footer.
|
|
106
|
+
*/
|
|
107
|
+
export interface DataTablePaginationOwnProps {
|
|
108
|
+
/**
|
|
109
|
+
* Classes for pagination parts.
|
|
110
|
+
*
|
|
111
|
+
* @default undefined
|
|
112
|
+
*/
|
|
113
|
+
classes?: DataTablePaginationClasses;
|
|
114
|
+
/**
|
|
115
|
+
* Total number of pages.
|
|
116
|
+
*
|
|
117
|
+
* @default undefined
|
|
118
|
+
*/
|
|
119
|
+
count?: number;
|
|
120
|
+
/**
|
|
121
|
+
* Extra props for internal parts.
|
|
122
|
+
*
|
|
123
|
+
* @default undefined
|
|
124
|
+
*/
|
|
125
|
+
customProps?: DataTablePaginationCustomProps;
|
|
126
|
+
/**
|
|
127
|
+
* Disable all controls.
|
|
128
|
+
*
|
|
129
|
+
* @default false
|
|
130
|
+
*/
|
|
131
|
+
disabled?: boolean;
|
|
132
|
+
/**
|
|
133
|
+
* Bound page with `v-model` (1-based).
|
|
134
|
+
*
|
|
135
|
+
* @default 1
|
|
136
|
+
*/
|
|
137
|
+
modelValue?: number;
|
|
138
|
+
/**
|
|
139
|
+
* Control corner radius.
|
|
140
|
+
*
|
|
141
|
+
* @default "md"
|
|
142
|
+
*/
|
|
143
|
+
rounded?: MergeProps<PaginationRounded, PaginationRoundedOverrides>;
|
|
144
|
+
/**
|
|
145
|
+
* Control size.
|
|
146
|
+
*
|
|
147
|
+
* @default "sm"
|
|
148
|
+
*/
|
|
149
|
+
size?: MergeProps<PaginationSize, PaginationSizeOverrides>;
|
|
150
|
+
}
|
|
151
|
+
export interface DataTablePaginationSlots {
|
|
152
|
+
/**
|
|
153
|
+
* Custom first-page control content (default double-chevron icon).
|
|
154
|
+
*/
|
|
155
|
+
first?: Slot;
|
|
156
|
+
/**
|
|
157
|
+
* Custom last-page control content (default double-chevron icon).
|
|
158
|
+
*/
|
|
159
|
+
last?: Slot;
|
|
160
|
+
/**
|
|
161
|
+
* Custom next control content (default chevron icon).
|
|
162
|
+
*/
|
|
163
|
+
next?: Slot;
|
|
164
|
+
/**
|
|
165
|
+
* Custom previous control content (default chevron icon).
|
|
166
|
+
*/
|
|
167
|
+
prev?: Slot;
|
|
168
|
+
}
|
|
169
|
+
export type DataTablePaginationProps = MergeHtmlProps<DataTablePaginationOwnProps, HTMLAttributes>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export { useDataTable } from './composables/useDataTable';
|
|
2
|
-
export type { DataTableClasses, DataTableColumn, DataTableColumnBase, DataTableColumnClasses, DataTableColumnSearch, DataTableCustomProps, DataTableEmits, DataTableFilterOption, DataTableFilters, DataTableItemSlotProps, DataTableLoadingVariant, DataTableOwnProps, DataTablePaginationSlotProps, DataTablePerPageSlotProps, DataTableProps, DataTableSelectionMode, DataTableSlots, DataTableSorting, DataTableStickyEdge, DataTableStickyHeader, } from './dataTable.types';
|
|
2
|
+
export type { DataTableClasses, DataTableColumn, DataTableColumnBase, DataTableColumnClasses, DataTableColumnSearch, DataTableCustomProps, DataTableEmits, DataTableFilterOption, DataTableFilters, DataTableItemSlotProps, DataTableLoadingVariant, DataTableOwnProps, DataTablePaginationSlotProps, DataTablePerPageSlotProps, DataTableProps, DataTableSelectedSlotProps, DataTableSelectionMode, DataTableSlots, DataTableSorting, DataTableStickyEdge, DataTableStickyHeader, } from './dataTable.types';
|
|
3
3
|
export { default as DataTable } from './DataTable.vue';
|
|
4
|
+
export type { DataTablePaginationClasses, DataTablePaginationCustomProps, DataTablePaginationEmits, DataTablePaginationOwnProps, DataTablePaginationProps, DataTablePaginationSlots, } from './dataTablePagination.types';
|
|
@@ -8,7 +8,7 @@ export declare function useDateField(props: DateFieldOwnProps, model: Ref<null |
|
|
|
8
8
|
fill: import('vue').ComputedRef<boolean>;
|
|
9
9
|
overlay: import('vue').ComputedRef<import('@bridge-ui/core/Domain').FieldOverlayMode | undefined>;
|
|
10
10
|
hasValue: import('vue').ComputedRef<boolean>;
|
|
11
|
-
dateOnly: import('vue').ComputedRef<Pick<DateFieldOwnProps & Record<string, unknown>, "fill" | "classes" | "overlay" | "showFooter" | "customProps" | "
|
|
11
|
+
dateOnly: import('vue').ComputedRef<Pick<DateFieldOwnProps & Record<string, unknown>, "fill" | "classes" | "overlay" | "showFooter" | "customProps" | "editable" | "hideMonths" | "hideOutsideDays" | "hideWeekdays" | "hideYears" | "multiple" | "range" | "startOfWeek" | "timeZone" | "defaultValue" | "clearable" | "disableDates" | "disableMonths" | "disableYears" | "maxDate" | "minDate" | "defaultView">>;
|
|
12
12
|
formField: {
|
|
13
13
|
slots: Readonly<{
|
|
14
14
|
[name: string]: import('vue').Slot<any> | undefined;
|
|
@@ -436,11 +436,10 @@ 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" | "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 useDateField(props: DateFieldOwnProps, model: Ref<null |
|
|
|
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 useDateField(props: DateFieldOwnProps, model: Ref<null |
|
|
|
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;
|
|
@@ -6,7 +6,7 @@ type DatePickerLibDefaults = LibDefaultsShape<DatePickerOwnProps, "color" | "rou
|
|
|
6
6
|
type DatePickerMerged = MergeLibDefaults<DatePickerOwnProps, DatePickerLibDefaults>;
|
|
7
7
|
export declare function useDatePicker(props: MaybeRefOrGetter<DatePickerOwnProps>, libDefaults: DatePickerLibDefaults, emit: SetupContext<DatePickerEmits>["emit"]): {
|
|
8
8
|
merged: import('vue').ComputedRef<DatePickerMerged>;
|
|
9
|
-
rootBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, Partial<Omit<DatePickerOwnProps, "error" | "color" | "fill" | "value" | "classes" | "showFooter" | "customProps" | "rounded" | "disabled" | "
|
|
9
|
+
rootBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, Partial<Omit<DatePickerOwnProps, "error" | "color" | "fill" | "value" | "classes" | "showFooter" | "customProps" | "rounded" | "disabled" | "hideMonths" | "hideOutsideDays" | "hideWeekdays" | "hideYears" | "multiple" | "range" | "startOfWeek" | "timeZone" | "defaultValue" | "readOnly" | "disableDates" | "disableMonths" | "disableYears" | "maxDate" | "minDate" | "defaultView">>>>;
|
|
10
10
|
footerBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {}>>;
|
|
11
11
|
showFooter: import('vue').ComputedRef<boolean>;
|
|
12
12
|
handleApply: () => void;
|
|
@@ -7,7 +7,7 @@ export declare function useDateRangeField(props: DateRangeFieldOwnProps, model:
|
|
|
7
7
|
fill: import('vue').ComputedRef<boolean>;
|
|
8
8
|
overlay: import('vue').ComputedRef<import('@bridge-ui/core/Domain').FieldOverlayMode | undefined>;
|
|
9
9
|
hasValue: import('vue').ComputedRef<boolean>;
|
|
10
|
-
dateOnly: import('vue').ComputedRef<Pick<DateRangeFieldOwnProps & Record<string, unknown>, "fill" | "orientation" | "classes" | "overlay" | "showFooter" | "customProps" | "
|
|
10
|
+
dateOnly: import('vue').ComputedRef<Pick<DateRangeFieldOwnProps & Record<string, unknown>, "fill" | "orientation" | "classes" | "overlay" | "showFooter" | "customProps" | "editable" | "hideMonths" | "hideOutsideDays" | "hideWeekdays" | "hideYears" | "startOfWeek" | "timeZone" | "defaultValue" | "clearable" | "disableDates" | "disableMonths" | "disableYears" | "maxDate" | "minDate">>;
|
|
11
11
|
formField: {
|
|
12
12
|
slots: Readonly<{
|
|
13
13
|
[name: string]: import('vue').Slot<any> | undefined;
|
|
@@ -435,11 +435,10 @@ 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" | "rounded" | "variant" | "label" | "disabled" | "required" | "corner" | "description" | "errorMessage" | "start" | "endIcon" | "errorIcon" | "hideErrorMessage" | "readonly" | "showErrorIcon" | "startIcon">>>>;
|
|
438
|
+
}, 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">>>>;
|
|
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, {}>>;
|
|
442
|
-
cornerBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {}>>;
|
|
443
442
|
headerBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {}>>;
|
|
444
443
|
isDisabled: import('vue').ComputedRef<boolean>;
|
|
445
444
|
isReadonly: import('vue').ComputedRef<boolean>;
|
|
@@ -457,9 +456,12 @@ export declare function useDateRangeField(props: DateRangeFieldOwnProps, model:
|
|
|
457
456
|
ariaDescribedBy: import('vue').ComputedRef<string | undefined>;
|
|
458
457
|
descriptionBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {}>>;
|
|
459
458
|
stackedBodyBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", {}, {}>>;
|
|
459
|
+
fieldCornerProps: import('vue').ComputedRef<import('../../Label').LabelProps>;
|
|
460
460
|
hasInsetLabelRow: import('vue').ComputedRef<boolean>;
|
|
461
461
|
insetLabelRowBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {}>>;
|
|
462
462
|
stackedInputRowBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", {}, {}>>;
|
|
463
|
+
showErrorMessageRow: import('vue').ComputedRef<boolean>;
|
|
464
|
+
showDescriptionContent: import('vue').ComputedRef<boolean>;
|
|
463
465
|
showErrorMessageContent: import('vue').ComputedRef<boolean>;
|
|
464
466
|
reservesErrorMessageSpace: import('vue').ComputedRef<boolean>;
|
|
465
467
|
};
|
|
@@ -684,7 +686,7 @@ export declare function useDateRangeField(props: DateRangeFieldOwnProps, model:
|
|
|
684
686
|
onTransitionend?: ((payload: TransitionEvent) => void) | undefined;
|
|
685
687
|
onTransitionrun?: ((payload: TransitionEvent) => void) | undefined;
|
|
686
688
|
onTransitionstart?: ((payload: TransitionEvent) => void) | undefined;
|
|
687
|
-
}, 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", {
|
|
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" | "showDescriptionOnError" | "showErrorIcon" | "startIcon">>>, "class", {
|
|
688
690
|
value: string;
|
|
689
691
|
readonly: boolean;
|
|
690
692
|
onFocus: (event: FocusEvent) => void;
|
|
@@ -6,7 +6,7 @@ type DateRangePickerLibDefaults = LibDefaultsShape<DateRangePickerOwnProps, "col
|
|
|
6
6
|
type DateRangePickerMerged = MergeLibDefaults<DateRangePickerOwnProps, DateRangePickerLibDefaults>;
|
|
7
7
|
export declare function useDateRangePicker(props: MaybeRefOrGetter<DateRangePickerOwnProps>, libDefaults: DateRangePickerLibDefaults, emit: SetupContext<DateRangePickerEmits>["emit"]): {
|
|
8
8
|
merged: import('vue').ComputedRef<DateRangePickerMerged>;
|
|
9
|
-
rootBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, Partial<Omit<DateRangePickerOwnProps, "error" | "color" | "fill" | "orientation" | "value" | "classes" | "showFooter" | "customProps" | "rounded" | "disabled" | "
|
|
9
|
+
rootBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, Partial<Omit<DateRangePickerOwnProps, "error" | "color" | "fill" | "orientation" | "value" | "classes" | "showFooter" | "customProps" | "rounded" | "disabled" | "hideMonths" | "hideOutsideDays" | "hideWeekdays" | "hideYears" | "startOfWeek" | "timeZone" | "defaultValue" | "readOnly" | "disableDates" | "disableMonths" | "disableYears" | "maxDate" | "minDate">>>>;
|
|
10
10
|
footerBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {}>>;
|
|
11
11
|
showFooter: import('vue').ComputedRef<boolean>;
|
|
12
12
|
handleApply: () => void;
|