@adyen/bento-vue2 0.8.1 → 0.8.2
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/dist/@types/components/date-picker/components/date-picker-calendar/components/date-picker-calendar-day/date-picker-calendar-day.types.d.ts +1 -0
- package/dist/@types/components/date-picker/components/date-picker-calendar-range/date-picker-calendar-range.types.d.ts +5 -0
- package/dist/@types/components/date-picker/components/date-picker-calendar-range/date-picker-calendar-range.vue.d.ts +23 -3
- package/dist/@types/components/date-picker/date-picker.types.d.ts +6 -13
- package/dist/@types/components/date-picker/date-picker.vue.d.ts +8 -2
- package/dist/@types/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.vue.d.ts +1 -1
- package/dist/@types/components/dropdown/components/dropdown-default-textbox/dropdown-default-textbox.vue.d.ts +1 -1
- package/dist/@types/components/dropdown/components/dropdown-options-container/dropdown-options-container.vue.d.ts +16 -1
- package/dist/@types/components/dropdown/components/dropdown-small-textbox/dropdown-small-textbox.vue.d.ts +2 -2
- package/dist/@types/components/dropdown/components/index.d.ts +1 -0
- package/dist/@types/components/dropdown/components/variants/dropdown-avatar/dropdown-avatar.vue.d.ts +20 -0
- package/dist/@types/components/dropdown/components/variants/dropdown-country/dropdown-country.vue.d.ts +20 -0
- package/dist/@types/components/dropdown/components/variants/dropdown-currency/dropdown-currency.vue.d.ts +20 -0
- package/dist/@types/components/dropdown/components/variants/dropdown-payment-method/dropdown-payment-method.vue.d.ts +20 -0
- package/dist/@types/components/dropdown/components/variants/dropdown-tag/dropdown-tag.vue.d.ts +20 -0
- package/dist/@types/components/dropdown/dropdown.types.d.ts +4 -0
- package/dist/@types/components/dropdown/dropdown.vue.d.ts +21 -0
- package/dist/@types/components/dropdown/index.d.ts +1 -0
- package/dist/@types/components/filter-bar/components/base-filter/base-filter.types.d.ts +7 -0
- package/dist/@types/components/filter-bar/components/base-filter/base-filter.vue.d.ts +24 -21
- package/dist/@types/components/filter-bar/components/base-filter/composables/use-base-filter.d.ts +2 -2
- package/dist/@types/components/filter-bar/components/boolean-filter/boolean-filter.vue.d.ts +12 -1
- package/dist/@types/components/filter-bar/components/date-filter/date-filter.vue.d.ts +12 -1
- package/dist/@types/components/filter-bar/components/date-range-filter/date-range-filter.vue.d.ts +18 -1
- package/dist/@types/components/filter-bar/components/input-filter/input-filter.vue.d.ts +12 -1
- package/dist/@types/components/filter-bar/components/range-filter/range-filter.vue.d.ts +12 -1
- package/dist/@types/components/filter-bar/components/select-filter/select-filter.vue.d.ts +12 -1
- package/dist/@types/components/filter-bar/components/select-filter/variants/select-avatar-filter/select-avatar-filter.vue.d.ts +9 -0
- package/dist/@types/components/filter-bar/components/select-filter/variants/select-country-filter/select-country-filter.vue.d.ts +16 -1
- package/dist/@types/components/filter-bar/components/select-filter/variants/select-currency-filter/select-currency-filter.vue.d.ts +9 -0
- package/dist/@types/components/filter-bar/components/select-filter/variants/select-payment-method-filter/select-payment-method-filter.vue.d.ts +9 -0
- package/dist/@types/components/filter-bar/components/select-filter/variants/select-tag-filter/select-tag-filter.vue.d.ts +16 -1
- package/dist/@types/components/filter-bar/filter-bar.types.d.ts +8 -1
- package/dist/@types/components/filter-bar/filter-bar.vue.d.ts +4 -0
- package/dist/@types/components/input-field/input-field.types.d.ts +18 -3
- package/dist/@types/components/input-field/input-field.vue.d.ts +33 -7
- package/dist/@types/components/internal/grid-layout/index.d.ts +1 -0
- package/dist/@types/components/internal/index.d.ts +1 -0
- package/dist/@types/components/internal/listbox/components/listbox-option/listbox-option.vue.d.ts +1 -1
- package/dist/@types/components/modal/components/base-modal/base-modal.vue.d.ts +35 -1
- package/dist/@types/components/modal/components/modal-default/modal-default.vue.d.ts +19 -1
- package/dist/@types/components/modal/modal.types.d.ts +5 -0
- package/dist/@types/components/modal/modal.vue.d.ts +21 -1
- package/dist/@types/components/popover/popover.vue.d.ts +1 -1
- package/dist/@types/components/search-bar/search-bar.vue.d.ts +61 -21
- package/dist/@types/components/summary-grid/summary-grid.types.d.ts +1 -1
- package/dist/@types/components/tag/tag.types.d.ts +2 -1
- package/dist/@types/types/date-format.d.ts +14 -0
- package/dist/@types/types/index.d.ts +1 -0
- package/dist/@types/utils/ts/truncate.d.ts +1 -0
- package/dist/index.js +4854 -4338
- package/dist/index.js.map +1 -1
- package/dist/web-types.json +244 -70
- package/package.json +2 -2
- /package/dist/@types/components/{summary-grid/components → internal}/grid-layout/grid-layout.types.d.ts +0 -0
- /package/dist/@types/components/{summary-grid/components → internal}/grid-layout/grid-layout.vue.d.ts +0 -0
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import { BentoButtonVariant } from '@/components/button';
|
|
3
|
+
import { BentoFilterBarValue } from '@/components/filter-bar/filter-bar.types';
|
|
4
|
+
import { BaseFilterEvent } from './base-filter.types';
|
|
3
5
|
declare const _default: import("vue").DefineComponent<{
|
|
4
6
|
appliedFiltersCount: {
|
|
5
7
|
type: NumberConstructor;
|
|
6
8
|
default: any;
|
|
7
9
|
};
|
|
8
|
-
|
|
9
|
-
type:
|
|
10
|
-
default:
|
|
10
|
+
buttonLabel: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
default: any;
|
|
13
|
+
};
|
|
14
|
+
defaultValue: {
|
|
15
|
+
type: PropType<BentoFilterBarValue>;
|
|
16
|
+
default: any;
|
|
11
17
|
};
|
|
12
18
|
controlled: {
|
|
13
19
|
type: BooleanConstructor;
|
|
@@ -17,7 +23,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
17
23
|
type: BooleanConstructor;
|
|
18
24
|
default: boolean;
|
|
19
25
|
};
|
|
20
|
-
|
|
26
|
+
disableSecondaryButton: {
|
|
21
27
|
type: BooleanConstructor;
|
|
22
28
|
default: boolean;
|
|
23
29
|
};
|
|
@@ -33,10 +39,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
33
39
|
type: BooleanConstructor;
|
|
34
40
|
default: boolean;
|
|
35
41
|
};
|
|
36
|
-
value: {
|
|
37
|
-
type: PropType<string | string[]>;
|
|
38
|
-
default: any;
|
|
39
|
-
};
|
|
40
42
|
}, {
|
|
41
43
|
actions: import("vue").ComputedRef<{
|
|
42
44
|
title: string;
|
|
@@ -44,6 +46,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
44
46
|
disabled: boolean;
|
|
45
47
|
}[]>;
|
|
46
48
|
isFilterOpen: import("vue").Ref<boolean>;
|
|
49
|
+
isPersistentFilter: import("vue").ComputedRef<boolean>;
|
|
47
50
|
BentoPopoverPositions: {
|
|
48
51
|
AUTO: import("../../../popper-container").PopperContainerPositionExtended.AUTO;
|
|
49
52
|
AUTO_START: import("../../../popper-container").PopperContainerPositionExtended.AUTO_START;
|
|
@@ -69,7 +72,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
69
72
|
};
|
|
70
73
|
onClickFilter: () => void;
|
|
71
74
|
onClickApply: () => void;
|
|
72
|
-
|
|
75
|
+
onClickSecondaryAction: () => void;
|
|
73
76
|
onClickOutside: () => void;
|
|
74
77
|
closePopover: () => void;
|
|
75
78
|
filterButtonRef: any;
|
|
@@ -81,14 +84,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
81
84
|
SPACE_BETWEEN: import("@/components/button").BentoButtonActionsLayoutBasic.SPACE_BETWEEN;
|
|
82
85
|
VERTICAL_STACK: import("@/components/button").BentoButtonActionsLayoutBasic.VERTICAL_STACK;
|
|
83
86
|
};
|
|
84
|
-
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin,
|
|
87
|
+
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, BaseFilterEvent[], string, Readonly<import("vue").ExtractPropTypes<{
|
|
85
88
|
appliedFiltersCount: {
|
|
86
89
|
type: NumberConstructor;
|
|
87
90
|
default: any;
|
|
88
91
|
};
|
|
89
|
-
|
|
90
|
-
type:
|
|
91
|
-
default:
|
|
92
|
+
buttonLabel: {
|
|
93
|
+
type: StringConstructor;
|
|
94
|
+
default: any;
|
|
95
|
+
};
|
|
96
|
+
defaultValue: {
|
|
97
|
+
type: PropType<BentoFilterBarValue>;
|
|
98
|
+
default: any;
|
|
92
99
|
};
|
|
93
100
|
controlled: {
|
|
94
101
|
type: BooleanConstructor;
|
|
@@ -98,7 +105,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
98
105
|
type: BooleanConstructor;
|
|
99
106
|
default: boolean;
|
|
100
107
|
};
|
|
101
|
-
|
|
108
|
+
disableSecondaryButton: {
|
|
102
109
|
type: BooleanConstructor;
|
|
103
110
|
default: boolean;
|
|
104
111
|
};
|
|
@@ -114,17 +121,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
114
121
|
type: BooleanConstructor;
|
|
115
122
|
default: boolean;
|
|
116
123
|
};
|
|
117
|
-
value: {
|
|
118
|
-
type: PropType<string | string[]>;
|
|
119
|
-
default: any;
|
|
120
|
-
};
|
|
121
124
|
}>>, {
|
|
122
|
-
value: string | string[];
|
|
123
|
-
buttonHasChevron: boolean;
|
|
124
125
|
fitContent: boolean;
|
|
125
126
|
appliedFiltersCount: number;
|
|
127
|
+
buttonLabel: string;
|
|
128
|
+
defaultValue: BentoFilterBarValue;
|
|
126
129
|
controlled: boolean;
|
|
127
130
|
disableApplyButton: boolean;
|
|
128
|
-
|
|
131
|
+
disableSecondaryButton: boolean;
|
|
129
132
|
}>;
|
|
130
133
|
export default _default;
|
package/dist/@types/components/filter-bar/components/base-filter/composables/use-base-filter.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Ref } from 'vue';
|
|
2
|
-
export declare const useBaseFilter: <T>(appliedFilter: Ref<T>) => {
|
|
2
|
+
export declare const useBaseFilter: <T>(appliedFilter: Ref<T>, defaultFilter: Ref<T>) => {
|
|
3
3
|
internalFilterValue: Ref<import("vue").UnwrapRef<T>>;
|
|
4
|
-
|
|
4
|
+
isSecondaryButtonDisabled: import("vue").ComputedRef<boolean>;
|
|
5
5
|
isApplyButtonDisabled: import("vue").ComputedRef<boolean>;
|
|
6
6
|
};
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
defaultValue: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
default: any;
|
|
5
|
+
};
|
|
2
6
|
field: {
|
|
3
7
|
type: StringConstructor;
|
|
4
8
|
required: true;
|
|
@@ -17,14 +21,20 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
17
21
|
label: string;
|
|
18
22
|
}[]>;
|
|
19
23
|
appliedFiltersCount: import("vue").ComputedRef<number>;
|
|
24
|
+
buttonLabel: import("vue").ComputedRef<string>;
|
|
20
25
|
internalFilterValue: import("vue").Ref<string>;
|
|
21
26
|
isApplyButtonDisabled: import("vue").ComputedRef<boolean>;
|
|
22
|
-
|
|
27
|
+
isSecondaryButtonDisabled: import("vue").ComputedRef<boolean>;
|
|
23
28
|
onInput: (event: any) => void;
|
|
24
29
|
updateFilter: () => void;
|
|
25
30
|
clearFilter: () => void;
|
|
26
31
|
openFilter: () => void;
|
|
32
|
+
resetFilter: () => void;
|
|
27
33
|
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, "update"[], string, Readonly<import("vue").ExtractPropTypes<{
|
|
34
|
+
defaultValue: {
|
|
35
|
+
type: StringConstructor;
|
|
36
|
+
default: any;
|
|
37
|
+
};
|
|
28
38
|
field: {
|
|
29
39
|
type: StringConstructor;
|
|
30
40
|
required: true;
|
|
@@ -39,5 +49,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
39
49
|
};
|
|
40
50
|
}>>, {
|
|
41
51
|
value: string;
|
|
52
|
+
defaultValue: string;
|
|
42
53
|
}>;
|
|
43
54
|
export default _default;
|
|
@@ -2,6 +2,10 @@ import { PropType } from 'vue';
|
|
|
2
2
|
import { BentoDateFilterOptions } from '../../filter-bar.types';
|
|
3
3
|
import { BentoDateFilterEvent } from './date-filter.types';
|
|
4
4
|
declare const _default: import("vue").DefineComponent<{
|
|
5
|
+
defaultValue: {
|
|
6
|
+
type: PropType<Date>;
|
|
7
|
+
default: any;
|
|
8
|
+
};
|
|
5
9
|
field: {
|
|
6
10
|
type: StringConstructor;
|
|
7
11
|
required: true;
|
|
@@ -85,12 +89,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
85
89
|
};
|
|
86
90
|
}>;
|
|
87
91
|
isApplyButtonDisabled: import("vue").ComputedRef<boolean>;
|
|
88
|
-
|
|
92
|
+
isSecondaryButtonDisabled: import("vue").ComputedRef<boolean>;
|
|
93
|
+
buttonLabel: import("vue").ComputedRef<string>;
|
|
89
94
|
clearFilter: () => void;
|
|
90
95
|
onDateSelected: (selectedDate: Date) => void;
|
|
91
96
|
openFilter: () => void;
|
|
92
97
|
updateFilter: () => void;
|
|
98
|
+
resetFilter: () => void;
|
|
93
99
|
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, BentoDateFilterEvent[], string, Readonly<import("vue").ExtractPropTypes<{
|
|
100
|
+
defaultValue: {
|
|
101
|
+
type: PropType<Date>;
|
|
102
|
+
default: any;
|
|
103
|
+
};
|
|
94
104
|
field: {
|
|
95
105
|
type: StringConstructor;
|
|
96
106
|
required: true;
|
|
@@ -110,5 +120,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
110
120
|
}>>, {
|
|
111
121
|
value: Date;
|
|
112
122
|
options: any;
|
|
123
|
+
defaultValue: Date;
|
|
113
124
|
}>;
|
|
114
125
|
export default _default;
|
package/dist/@types/components/filter-bar/components/date-range-filter/date-range-filter.vue.d.ts
CHANGED
|
@@ -5,6 +5,10 @@ import { BentoTypographyElement, BentoTypographyVariant } from '@/components/typ
|
|
|
5
5
|
import { BentoButtonActionsList } from '@/components/button/components/button-actions';
|
|
6
6
|
import { BentoDateRangeFilterEvent } from './date-range-filter.types';
|
|
7
7
|
declare const _default: import("vue").DefineComponent<{
|
|
8
|
+
defaultValue: {
|
|
9
|
+
type: PropType<BentoDatePickerRangeDate>;
|
|
10
|
+
default: any;
|
|
11
|
+
};
|
|
8
12
|
field: {
|
|
9
13
|
type: StringConstructor;
|
|
10
14
|
required: true;
|
|
@@ -28,6 +32,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
28
32
|
baseFilter: any;
|
|
29
33
|
actions: import("vue").ComputedRef<BentoButtonActionsList>;
|
|
30
34
|
appliedFiltersCount: import("vue").ComputedRef<number>;
|
|
35
|
+
formData: {
|
|
36
|
+
startDate: string;
|
|
37
|
+
endDate: string;
|
|
38
|
+
};
|
|
31
39
|
internalFilterValue: import("vue").Ref<{
|
|
32
40
|
startDate: {
|
|
33
41
|
toString: () => string;
|
|
@@ -159,7 +167,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
159
167
|
};
|
|
160
168
|
}>;
|
|
161
169
|
isApplyButtonDisabled: import("vue").ComputedRef<boolean>;
|
|
162
|
-
|
|
170
|
+
isSecondaryButtonDisabled: import("vue").ComputedRef<boolean>;
|
|
171
|
+
buttonLabel: import("vue").ComputedRef<string>;
|
|
163
172
|
BentoButtonActionsLayout: {
|
|
164
173
|
BUTTONS_START: import("@/components/button/components/button-actions").BentoButtonActionsLayoutExtended.BUTTONS_START;
|
|
165
174
|
BUTTONS_END: import("@/components/button/components/button-actions").BentoButtonActionsLayoutBasic.BUTTONS_END;
|
|
@@ -173,7 +182,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
173
182
|
onDateSelected: (selectedDate: BentoDatePickerRangeDate) => void;
|
|
174
183
|
openFilter: () => void;
|
|
175
184
|
updateFilter: () => void;
|
|
185
|
+
resetFilter: () => void;
|
|
186
|
+
onDatePickerRangeError: () => void;
|
|
187
|
+
onDatePickerRangeFormDateInputUpdate: () => void;
|
|
176
188
|
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, BentoDateRangeFilterEvent[], string, Readonly<import("vue").ExtractPropTypes<{
|
|
189
|
+
defaultValue: {
|
|
190
|
+
type: PropType<BentoDatePickerRangeDate>;
|
|
191
|
+
default: any;
|
|
192
|
+
};
|
|
177
193
|
field: {
|
|
178
194
|
type: StringConstructor;
|
|
179
195
|
required: true;
|
|
@@ -196,5 +212,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
196
212
|
}>>, {
|
|
197
213
|
value: BentoDatePickerRangeDate;
|
|
198
214
|
options: any;
|
|
215
|
+
defaultValue: BentoDatePickerRangeDate;
|
|
199
216
|
}>;
|
|
200
217
|
export default _default;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
defaultValue: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
default: any;
|
|
5
|
+
};
|
|
2
6
|
field: {
|
|
3
7
|
type: StringConstructor;
|
|
4
8
|
required: true;
|
|
@@ -13,14 +17,20 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
13
17
|
};
|
|
14
18
|
}, {
|
|
15
19
|
appliedFiltersCount: import("vue").ComputedRef<number>;
|
|
20
|
+
buttonLabel: import("vue").ComputedRef<string>;
|
|
16
21
|
internalFilterValue: import("vue").Ref<string>;
|
|
17
22
|
isApplyButtonDisabled: import("vue").ComputedRef<boolean>;
|
|
18
|
-
|
|
23
|
+
isSecondaryButtonDisabled: import("vue").ComputedRef<boolean>;
|
|
19
24
|
inputTextRef: any;
|
|
20
25
|
updateFilter: () => void;
|
|
21
26
|
clearFilter: () => void;
|
|
22
27
|
openFilter: () => void;
|
|
28
|
+
resetFilter: () => void;
|
|
23
29
|
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, "update"[], string, Readonly<import("vue").ExtractPropTypes<{
|
|
30
|
+
defaultValue: {
|
|
31
|
+
type: StringConstructor;
|
|
32
|
+
default: any;
|
|
33
|
+
};
|
|
24
34
|
field: {
|
|
25
35
|
type: StringConstructor;
|
|
26
36
|
required: true;
|
|
@@ -35,5 +45,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
35
45
|
};
|
|
36
46
|
}>>, {
|
|
37
47
|
value: string;
|
|
48
|
+
defaultValue: string;
|
|
38
49
|
}>;
|
|
39
50
|
export default _default;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import { BentoInputFieldType } from '@/components/input-field';
|
|
3
3
|
declare const _default: import("vue").DefineComponent<{
|
|
4
|
+
defaultValue: {
|
|
5
|
+
type: PropType<string[]>;
|
|
6
|
+
default: any;
|
|
7
|
+
};
|
|
4
8
|
field: {
|
|
5
9
|
type: StringConstructor;
|
|
6
10
|
required: true;
|
|
@@ -19,13 +23,19 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
19
23
|
appliedFiltersCount: import("vue").ComputedRef<number>;
|
|
20
24
|
internalFilterValue: import("vue").Ref<string[]>;
|
|
21
25
|
isApplyButtonDisabled: import("vue").ComputedRef<boolean>;
|
|
22
|
-
|
|
26
|
+
isSecondaryButtonDisabled: import("vue").ComputedRef<boolean>;
|
|
27
|
+
buttonLabel: import("vue").ComputedRef<string>;
|
|
23
28
|
updateFrom: (newValue: any) => void;
|
|
24
29
|
updateTo: (newValue: any) => void;
|
|
25
30
|
updateFilter: () => void;
|
|
26
31
|
clearFilter: () => void;
|
|
27
32
|
openFilter: () => void;
|
|
33
|
+
resetFilter: () => void;
|
|
28
34
|
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, "update"[], string, Readonly<import("vue").ExtractPropTypes<{
|
|
35
|
+
defaultValue: {
|
|
36
|
+
type: PropType<string[]>;
|
|
37
|
+
default: any;
|
|
38
|
+
};
|
|
29
39
|
field: {
|
|
30
40
|
type: StringConstructor;
|
|
31
41
|
required: true;
|
|
@@ -40,5 +50,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
40
50
|
};
|
|
41
51
|
}>>, {
|
|
42
52
|
value: string[];
|
|
53
|
+
defaultValue: string[];
|
|
43
54
|
}>;
|
|
44
55
|
export default _default;
|
|
@@ -2,6 +2,10 @@ import { PropType } from 'vue';
|
|
|
2
2
|
import { BentoListboxOptionItem, BentoListboxSelectedValue } from '@/types';
|
|
3
3
|
import { BentoSelectFilterOptions } from '../../filter-bar.types';
|
|
4
4
|
declare const _default: import("vue").DefineComponent<{
|
|
5
|
+
defaultValue: {
|
|
6
|
+
type: PropType<BentoListboxSelectedValue>;
|
|
7
|
+
default: any;
|
|
8
|
+
};
|
|
5
9
|
field: {
|
|
6
10
|
type: StringConstructor;
|
|
7
11
|
required: true;
|
|
@@ -23,15 +27,21 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
23
27
|
filteredItems: import("vue").ComputedRef<BentoListboxOptionItem[]>;
|
|
24
28
|
internalFilterValue: import("vue").Ref<import("@/types").BentoListboxValue | import("@/types").BentoListboxValue[]>;
|
|
25
29
|
isApplyButtonDisabled: import("vue").ComputedRef<boolean>;
|
|
26
|
-
|
|
30
|
+
isSecondaryButtonDisabled: import("vue").ComputedRef<boolean>;
|
|
27
31
|
listboxFilterId: import("vue").ComputedRef<string>;
|
|
32
|
+
buttonLabel: import("vue").ComputedRef<string>;
|
|
28
33
|
searchTerm: import("vue").Ref<string>;
|
|
29
34
|
clearFilter: () => void;
|
|
30
35
|
closeFilter: () => void;
|
|
31
36
|
onOptionSelected: (selectedValue: BentoListboxSelectedValue) => void;
|
|
32
37
|
openFilter: () => void;
|
|
33
38
|
updateFilter: () => void;
|
|
39
|
+
resetFilter: () => void;
|
|
34
40
|
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, "update"[], string, Readonly<import("vue").ExtractPropTypes<{
|
|
41
|
+
defaultValue: {
|
|
42
|
+
type: PropType<BentoListboxSelectedValue>;
|
|
43
|
+
default: any;
|
|
44
|
+
};
|
|
35
45
|
field: {
|
|
36
46
|
type: StringConstructor;
|
|
37
47
|
required: true;
|
|
@@ -51,5 +61,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
51
61
|
}>>, {
|
|
52
62
|
value: BentoListboxSelectedValue;
|
|
53
63
|
options: BentoSelectFilterOptions;
|
|
64
|
+
defaultValue: BentoListboxSelectedValue;
|
|
54
65
|
}>;
|
|
55
66
|
export default _default;
|
|
@@ -6,6 +6,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
6
6
|
type: PropType<BentoSelectAvatarFilterOptions>;
|
|
7
7
|
default: any;
|
|
8
8
|
};
|
|
9
|
+
defaultValue: {
|
|
10
|
+
type: PropType<BentoListboxSelectedValue>;
|
|
11
|
+
default: any;
|
|
12
|
+
};
|
|
9
13
|
field: {
|
|
10
14
|
type: StringConstructor;
|
|
11
15
|
required: true;
|
|
@@ -25,6 +29,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
25
29
|
type: PropType<BentoSelectAvatarFilterOptions>;
|
|
26
30
|
default: any;
|
|
27
31
|
};
|
|
32
|
+
defaultValue: {
|
|
33
|
+
type: PropType<BentoListboxSelectedValue>;
|
|
34
|
+
default: any;
|
|
35
|
+
};
|
|
28
36
|
field: {
|
|
29
37
|
type: StringConstructor;
|
|
30
38
|
required: true;
|
|
@@ -40,5 +48,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
40
48
|
}>>, {
|
|
41
49
|
value: BentoListboxSelectedValue;
|
|
42
50
|
options: BentoSelectAvatarFilterOptions;
|
|
51
|
+
defaultValue: BentoListboxSelectedValue;
|
|
43
52
|
}>;
|
|
44
53
|
export default _default;
|
|
@@ -7,6 +7,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
7
7
|
type: PropType<BentoSelectCountryFilterOptions>;
|
|
8
8
|
default: any;
|
|
9
9
|
};
|
|
10
|
+
defaultValue: {
|
|
11
|
+
type: PropType<BentoListboxSelectedValue>;
|
|
12
|
+
default: any;
|
|
13
|
+
};
|
|
10
14
|
field: {
|
|
11
15
|
type: StringConstructor;
|
|
12
16
|
required: true;
|
|
@@ -24,7 +28,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
24
28
|
listboxItems: import("@/types").BentoListboxOptions;
|
|
25
29
|
multiple?: boolean;
|
|
26
30
|
isOptionDisabled?: import("@/types").BentoListboxIsOptionDisabled;
|
|
27
|
-
|
|
31
|
+
messages?: {
|
|
32
|
+
[key: string]: {
|
|
33
|
+
[key: string]: string;
|
|
34
|
+
persistentButtonLabelPartiallySelected: string;
|
|
35
|
+
persistentButtonLabelAllSelected: string;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
28
38
|
variant: BentoCountryVariant;
|
|
29
39
|
}>;
|
|
30
40
|
onUpdate: (selectedValue: BentoListboxSelectedValue) => void;
|
|
@@ -34,6 +44,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
34
44
|
type: PropType<BentoSelectCountryFilterOptions>;
|
|
35
45
|
default: any;
|
|
36
46
|
};
|
|
47
|
+
defaultValue: {
|
|
48
|
+
type: PropType<BentoListboxSelectedValue>;
|
|
49
|
+
default: any;
|
|
50
|
+
};
|
|
37
51
|
field: {
|
|
38
52
|
type: StringConstructor;
|
|
39
53
|
required: true;
|
|
@@ -49,5 +63,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
49
63
|
}>>, {
|
|
50
64
|
value: BentoListboxSelectedValue;
|
|
51
65
|
options: BentoSelectCountryFilterOptions;
|
|
66
|
+
defaultValue: BentoListboxSelectedValue;
|
|
52
67
|
}>;
|
|
53
68
|
export default _default;
|
|
@@ -6,6 +6,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
6
6
|
type: PropType<BentoSelectCurrencyFilterOptions>;
|
|
7
7
|
default: any;
|
|
8
8
|
};
|
|
9
|
+
defaultValue: {
|
|
10
|
+
type: PropType<BentoListboxSelectedValue>;
|
|
11
|
+
default: any;
|
|
12
|
+
};
|
|
9
13
|
field: {
|
|
10
14
|
type: StringConstructor;
|
|
11
15
|
required: true;
|
|
@@ -25,6 +29,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
25
29
|
type: PropType<BentoSelectCurrencyFilterOptions>;
|
|
26
30
|
default: any;
|
|
27
31
|
};
|
|
32
|
+
defaultValue: {
|
|
33
|
+
type: PropType<BentoListboxSelectedValue>;
|
|
34
|
+
default: any;
|
|
35
|
+
};
|
|
28
36
|
field: {
|
|
29
37
|
type: StringConstructor;
|
|
30
38
|
required: true;
|
|
@@ -40,5 +48,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
40
48
|
}>>, {
|
|
41
49
|
value: BentoListboxSelectedValue;
|
|
42
50
|
options: BentoSelectCurrencyFilterOptions;
|
|
51
|
+
defaultValue: BentoListboxSelectedValue;
|
|
43
52
|
}>;
|
|
44
53
|
export default _default;
|
|
@@ -6,6 +6,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
6
6
|
type: PropType<BentoSelectPaymentMethodFilterOptions>;
|
|
7
7
|
default: any;
|
|
8
8
|
};
|
|
9
|
+
defaultValue: {
|
|
10
|
+
type: PropType<BentoListboxSelectedValue>;
|
|
11
|
+
default: any;
|
|
12
|
+
};
|
|
9
13
|
field: {
|
|
10
14
|
type: StringConstructor;
|
|
11
15
|
required: true;
|
|
@@ -25,6 +29,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
25
29
|
type: PropType<BentoSelectPaymentMethodFilterOptions>;
|
|
26
30
|
default: any;
|
|
27
31
|
};
|
|
32
|
+
defaultValue: {
|
|
33
|
+
type: PropType<BentoListboxSelectedValue>;
|
|
34
|
+
default: any;
|
|
35
|
+
};
|
|
28
36
|
field: {
|
|
29
37
|
type: StringConstructor;
|
|
30
38
|
required: true;
|
|
@@ -40,5 +48,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
40
48
|
}>>, {
|
|
41
49
|
value: BentoListboxSelectedValue;
|
|
42
50
|
options: BentoSelectPaymentMethodFilterOptions;
|
|
51
|
+
defaultValue: BentoListboxSelectedValue;
|
|
43
52
|
}>;
|
|
44
53
|
export default _default;
|
|
@@ -7,6 +7,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
7
7
|
type: PropType<BentoSelectTagFilterOptions>;
|
|
8
8
|
default: any;
|
|
9
9
|
};
|
|
10
|
+
defaultValue: {
|
|
11
|
+
type: PropType<BentoListboxSelectedValue>;
|
|
12
|
+
default: any;
|
|
13
|
+
};
|
|
10
14
|
field: {
|
|
11
15
|
type: StringConstructor;
|
|
12
16
|
required: true;
|
|
@@ -28,7 +32,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
28
32
|
}[];
|
|
29
33
|
multiple?: boolean;
|
|
30
34
|
isOptionDisabled?: import("@/types").BentoListboxIsOptionDisabled;
|
|
31
|
-
|
|
35
|
+
messages?: {
|
|
36
|
+
[key: string]: {
|
|
37
|
+
[key: string]: string;
|
|
38
|
+
persistentButtonLabelPartiallySelected: string;
|
|
39
|
+
persistentButtonLabelAllSelected: string;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
32
42
|
}>;
|
|
33
43
|
onUpdate: (selectedValue: BentoListboxSelectedValue) => void;
|
|
34
44
|
BentoCountryVariant: typeof BentoCountryVariant;
|
|
@@ -37,6 +47,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
37
47
|
type: PropType<BentoSelectTagFilterOptions>;
|
|
38
48
|
default: any;
|
|
39
49
|
};
|
|
50
|
+
defaultValue: {
|
|
51
|
+
type: PropType<BentoListboxSelectedValue>;
|
|
52
|
+
default: any;
|
|
53
|
+
};
|
|
40
54
|
field: {
|
|
41
55
|
type: StringConstructor;
|
|
42
56
|
required: true;
|
|
@@ -52,5 +66,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
52
66
|
}>>, {
|
|
53
67
|
value: BentoListboxSelectedValue;
|
|
54
68
|
options: BentoSelectTagFilterOptions;
|
|
69
|
+
defaultValue: BentoListboxSelectedValue;
|
|
55
70
|
}>;
|
|
56
71
|
export default _default;
|
|
@@ -7,9 +7,15 @@ import { BentoCurrencyListboxOptions } from '@/components/dropdown/components/va
|
|
|
7
7
|
import { BentoPaymentMethodListboxOptions } from '@/components/dropdown/components/variants/dropdown-payment-method/dropdown-payment-method.types';
|
|
8
8
|
import { BentoDatePickerFirstDayOfWeek, BentoDatePickerIsDateDisabled, BentoDatePickerRangeDate } from '../date-picker/date-picker.types';
|
|
9
9
|
export interface BentoSelectFilterOptions {
|
|
10
|
-
buttonHasChevron?: boolean;
|
|
11
10
|
listboxItems: BentoListboxOptions;
|
|
12
11
|
multiple?: boolean;
|
|
12
|
+
messages?: {
|
|
13
|
+
[key: string]: {
|
|
14
|
+
persistentButtonLabelPartiallySelected: string;
|
|
15
|
+
persistentButtonLabelAllSelected: string;
|
|
16
|
+
[key: string]: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
13
19
|
isOptionDisabled?: BentoListboxIsOptionDisabled;
|
|
14
20
|
}
|
|
15
21
|
export type BentoSelectAvatarFilterOptions = OmitStrict<BentoSelectFilterOptions, 'listboxItems'> & {
|
|
@@ -63,5 +69,6 @@ export interface BentoFilterModel {
|
|
|
63
69
|
type: BentoFilterItemType;
|
|
64
70
|
options?: BentoFilterOptions;
|
|
65
71
|
value?: BentoFilterBarValue;
|
|
72
|
+
defaultValue?: BentoFilterBarValue;
|
|
66
73
|
}
|
|
67
74
|
export type BentoFilterBarModel = Array<BentoFilterModel>;
|
|
@@ -14,11 +14,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
14
14
|
isClearAllVisible: import("vue").ComputedRef<boolean>;
|
|
15
15
|
isSearchBarEnabled: import("vue").ComputedRef<boolean>;
|
|
16
16
|
searchBarAriaLabel: string;
|
|
17
|
+
persistentFilters: import("vue").ComputedRef<BentoFilterModel[]>;
|
|
18
|
+
regularFilters: import("vue").ComputedRef<BentoFilterModel[]>;
|
|
19
|
+
isResetAllVisible: import("vue").ComputedRef<boolean>;
|
|
17
20
|
BentoButtonVariant: typeof BentoButtonVariant;
|
|
18
21
|
updateFilterHandler: (updatedFilter: BentoFilterModel) => void;
|
|
19
22
|
clearAllFilters: () => void;
|
|
20
23
|
onSearchbarClear: () => void;
|
|
21
24
|
onSearchbarInput: (newSearchTerm: string) => void;
|
|
25
|
+
resetAllFilters: () => void;
|
|
22
26
|
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, ("input" | "search-clear" | "search-input" | "update:search-term")[], string, Readonly<import("vue").ExtractPropTypes<{
|
|
23
27
|
searchTerm: {
|
|
24
28
|
type: StringConstructor;
|
|
@@ -1,18 +1,33 @@
|
|
|
1
|
+
import { BentoDropdown } from '@/components/dropdown/';
|
|
1
2
|
export declare enum BentoInputFieldVariant {
|
|
2
3
|
DEFAULT = "default",
|
|
3
4
|
PAYMENT_METHOD = "payment-method",
|
|
4
|
-
STATIC_VALUE = "static-value"
|
|
5
|
+
STATIC_VALUE = "static-value",
|
|
6
|
+
DROPDOWN = "dropdown"
|
|
5
7
|
}
|
|
6
|
-
export declare enum
|
|
8
|
+
export declare enum BentoInputFieldElementPosition {
|
|
7
9
|
START = "start",
|
|
8
10
|
END = "end"
|
|
9
11
|
}
|
|
10
12
|
export declare enum BentoInputFieldStateClass {
|
|
11
13
|
DISABLED = "disabled",
|
|
12
|
-
ERROR = "error"
|
|
14
|
+
ERROR = "error",
|
|
15
|
+
SMALL_PADDING_LEFT = "small-padding-left",
|
|
16
|
+
SMALL_PADDING_RIGHT = "small-padding-right"
|
|
13
17
|
}
|
|
14
18
|
export declare enum BentoInputFieldType {
|
|
15
19
|
SEARCH = "search",
|
|
16
20
|
TEXT = "text",
|
|
17
21
|
NUMBER = "number"
|
|
18
22
|
}
|
|
23
|
+
type DropdownProps = InstanceType<typeof BentoDropdown>['$props'];
|
|
24
|
+
export type BentoInputDropdownProps = {
|
|
25
|
+
items: DropdownProps['items'];
|
|
26
|
+
value: DropdownProps['value'];
|
|
27
|
+
};
|
|
28
|
+
export declare enum BentoInputFieldEvent {
|
|
29
|
+
INPUT = "input",
|
|
30
|
+
ESCAPE_PRESSED = "escape-pressed",
|
|
31
|
+
DROPDOWN_INPUT = "dropdown"
|
|
32
|
+
}
|
|
33
|
+
export {};
|