@adyen/bento-vue2 0.1.4 → 0.2.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/dist/@types/components/button/components/button-actions/button-actions.types.d.ts +1 -0
- package/dist/@types/components/checkbox/checkbox.vue.d.ts +2 -2
- package/dist/@types/components/country/country.types.d.ts +2 -1
- package/dist/@types/components/country/country.vue.d.ts +10 -1
- package/dist/@types/components/country/index.d.ts +1 -0
- package/dist/@types/components/data-grid/composables/useCalculateColumnWidth/useCalculateColumnWidth.d.ts +1 -0
- package/dist/@types/components/data-grid/data-grid.types.d.ts +1 -0
- package/dist/@types/components/data-grid/data-grid.vue.d.ts +13 -1
- package/dist/@types/components/date/date.types.d.ts +17 -0
- package/dist/@types/components/date/date.vue.d.ts +30 -0
- package/dist/@types/components/date/index.d.ts +2 -0
- package/dist/@types/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.vue.d.ts +19 -1
- package/dist/@types/components/dropdown/components/dropdown-default-textbox/dropdown-default-textbox.vue.d.ts +19 -0
- package/dist/@types/components/dropdown/components/dropdown-options-container/dropdown-options-container.vue.d.ts +13 -13
- package/dist/@types/components/dropdown/components/variants/dropdown-avatar/dropdown-avatar.types.d.ts +5 -0
- package/dist/@types/components/dropdown/components/variants/dropdown-avatar/dropdown-avatar.vue.d.ts +114 -0
- package/dist/@types/components/dropdown/components/variants/dropdown-country/composables/useCountryItems.d.ts +5 -0
- package/dist/@types/components/dropdown/components/variants/dropdown-country/dropdown-country.types.d.ts +7 -0
- package/dist/@types/components/dropdown/components/variants/dropdown-country/dropdown-country.vue.d.ts +123 -0
- package/dist/@types/components/dropdown/components/variants/dropdown-currency/dropdown-currency.types.d.ts +6 -0
- package/dist/@types/components/dropdown/components/variants/dropdown-currency/dropdown-currency.vue.d.ts +109 -0
- package/dist/@types/components/dropdown/components/variants/dropdown-payment-method/dropdown-payment-method.types.d.ts +6 -0
- package/dist/@types/components/dropdown/components/variants/dropdown-payment-method/dropdown-payment-method.vue.d.ts +109 -0
- package/dist/@types/components/dropdown/dropdown.vue.d.ts +13 -12
- package/dist/@types/components/dropdown/index.d.ts +4 -1
- package/dist/@types/components/filter-bar/components/base-filter/base-filter.vue.d.ts +33 -10
- package/dist/@types/components/filter-bar/components/base-filter/composables/use-base-filter.d.ts +6 -0
- package/dist/@types/components/filter-bar/components/base-filter/index.d.ts +1 -0
- package/dist/@types/components/filter-bar/components/listbox-filter/index.d.ts +1 -0
- package/dist/@types/components/filter-bar/components/listbox-filter/listbox-filter.vue.d.ts +53 -0
- package/dist/@types/components/filter-bar/components/text-filter/text-filter.vue.d.ts +4 -5
- package/dist/@types/components/filter-bar/filter-bar.types.d.ts +12 -4
- package/dist/@types/components/filter-bar/filter-bar.vue.d.ts +19 -4
- package/dist/@types/components/info-icon/index.d.ts +1 -0
- package/dist/@types/components/info-icon/info-icon.vue.d.ts +12 -0
- package/dist/@types/components/internal/index.d.ts +1 -0
- package/dist/@types/components/internal/listbox/components/listbox-multi-select/index.d.ts +1 -0
- package/dist/@types/components/{dropdown/components/dropdown-options-container/components/dropdown-multi-select/dropdown-multi-select.vue.d.ts → internal/listbox/components/listbox-multi-select/listbox-multi-select.vue.d.ts} +13 -13
- package/dist/@types/components/internal/listbox/components/listbox-option/index.d.ts +1 -0
- package/dist/@types/components/{dropdown/components/dropdown-options-container/components/dropdown-option/dropdown-option.vue.d.ts → internal/listbox/components/listbox-option/listbox-option.vue.d.ts} +2 -2
- package/dist/@types/components/internal/listbox/components/listbox-option-currency/index.d.ts +1 -0
- package/dist/@types/components/internal/listbox/components/listbox-option-currency/listbox-option-currency.vue.d.ts +17 -0
- package/dist/@types/components/internal/listbox/components/listbox-single-select-option/index.d.ts +1 -0
- package/dist/@types/components/{dropdown/components/dropdown-options-container/components/dropdown-single-select-option/dropdown-single-select-option.vue.d.ts → internal/listbox/components/listbox-single-select-option/listbox-single-select-option.vue.d.ts} +5 -22
- package/dist/@types/components/internal/listbox/index.d.ts +2 -0
- package/dist/@types/components/internal/listbox/listbox.vue.d.ts +61 -0
- package/dist/@types/components/page-header/components/title-item/title-item.vue.d.ts +11 -1
- package/dist/@types/components/page-header/page-header.vue.d.ts +11 -1
- package/dist/@types/components/pagination/components/pagination-context/pagination-context.vue.d.ts +2 -2
- package/dist/@types/components/payment-method/composables/index.d.ts +1 -0
- package/dist/@types/components/payment-method/composables/usePaymentIcon.d.ts +3 -0
- package/dist/@types/components/payment-method/index.d.ts +2 -0
- package/dist/@types/components/payment-method/payment-method.types.d.ts +1079 -0
- package/dist/@types/components/payment-method/payment-method.vue.d.ts +28 -0
- package/dist/@types/components/popover/popover.vue.d.ts +1 -1
- package/dist/@types/components/radio-group/components/radio-button/radio-button.vue.d.ts +2 -3
- package/dist/@types/components/search-bar/search-bar.vue.d.ts +2 -2
- package/dist/@types/components/toast/components/toast-item/index.d.ts +2 -0
- package/dist/@types/components/toast/components/toast-item/toast-item.types.d.ts +9 -0
- package/dist/@types/components/toast/components/toast-item/toast-item.vue.d.ts +32 -0
- package/dist/@types/components/toast/index.d.ts +2 -0
- package/dist/@types/components/toast/toast.vue.d.ts +13 -0
- package/dist/@types/components/toggle/toggle.vue.d.ts +2 -2
- package/dist/@types/components.d.ts +16 -0
- package/dist/@types/composables/index.d.ts +1 -0
- package/dist/@types/composables/use-checkbox-select-all/use-checkbox-select-all.d.ts +2 -2
- package/dist/@types/composables/use-default-slot-validator.d.ts +1 -0
- package/dist/@types/composables/useDynamicImport.d.ts +2 -0
- package/dist/@types/index.d.ts +4 -0
- package/dist/@types/install.d.ts +1 -0
- package/dist/@types/plugins/toastController.d.ts +12 -0
- package/dist/@types/types/index.d.ts +2 -0
- package/dist/@types/types/listbox.d.ts +11 -0
- package/dist/@types/types/omit-strict.d.ts +1 -0
- package/dist/@types/utils/ts/toastController.d.ts +3 -0
- package/dist/@types/utils/ts/use-slot-text.d.ts +2 -0
- package/dist/index.js +7111 -4317
- package/dist/index.js.map +1 -1
- package/package.json +9 -7
- package/dist/@types/components/dropdown/components/dropdown-options-container/components/dropdown-multi-select/index.d.ts +0 -1
- package/dist/@types/components/dropdown/components/dropdown-options-container/components/dropdown-option/index.d.ts +0 -1
- package/dist/@types/components/dropdown/components/dropdown-options-container/components/dropdown-single-select-option/index.d.ts +0 -1
- package/dist/@types/components/dropdown/dropdown.types.d.ts +0 -10
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import type { BentoCurrencyListboxOptions } from './dropdown-currency.types';
|
|
3
|
+
import type { BentoListboxSelectedValue } from '../../../../../types';
|
|
4
|
+
declare const _default: import("vue").DefineComponent<{
|
|
5
|
+
items: {
|
|
6
|
+
type: PropType<BentoCurrencyListboxOptions>;
|
|
7
|
+
default: () => any[];
|
|
8
|
+
};
|
|
9
|
+
ariaLabel: {
|
|
10
|
+
type: StringConstructor;
|
|
11
|
+
default: any;
|
|
12
|
+
};
|
|
13
|
+
disabled: {
|
|
14
|
+
type: BooleanConstructor;
|
|
15
|
+
default: boolean;
|
|
16
|
+
};
|
|
17
|
+
dynamicFiltering: {
|
|
18
|
+
type: BooleanConstructor;
|
|
19
|
+
default: boolean;
|
|
20
|
+
};
|
|
21
|
+
label: {
|
|
22
|
+
type: StringConstructor;
|
|
23
|
+
default: any;
|
|
24
|
+
};
|
|
25
|
+
description: {
|
|
26
|
+
type: StringConstructor;
|
|
27
|
+
default: any;
|
|
28
|
+
};
|
|
29
|
+
isOptionDisabled: {
|
|
30
|
+
type: PropType<import("../../../../../types").BentoListboxIsOptionDisabled>;
|
|
31
|
+
default: any;
|
|
32
|
+
};
|
|
33
|
+
multiple: {
|
|
34
|
+
type: BooleanConstructor;
|
|
35
|
+
default: boolean;
|
|
36
|
+
};
|
|
37
|
+
optional: {
|
|
38
|
+
type: BooleanConstructor;
|
|
39
|
+
default: boolean;
|
|
40
|
+
};
|
|
41
|
+
required: {
|
|
42
|
+
type: BooleanConstructor;
|
|
43
|
+
default: boolean;
|
|
44
|
+
};
|
|
45
|
+
value: {
|
|
46
|
+
type: PropType<BentoListboxSelectedValue>;
|
|
47
|
+
default: any;
|
|
48
|
+
};
|
|
49
|
+
}, {
|
|
50
|
+
onInput: (selectedValue: BentoListboxSelectedValue) => void;
|
|
51
|
+
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, "input"[], string, Readonly<import("vue").ExtractPropTypes<{
|
|
52
|
+
items: {
|
|
53
|
+
type: PropType<BentoCurrencyListboxOptions>;
|
|
54
|
+
default: () => any[];
|
|
55
|
+
};
|
|
56
|
+
ariaLabel: {
|
|
57
|
+
type: StringConstructor;
|
|
58
|
+
default: any;
|
|
59
|
+
};
|
|
60
|
+
disabled: {
|
|
61
|
+
type: BooleanConstructor;
|
|
62
|
+
default: boolean;
|
|
63
|
+
};
|
|
64
|
+
dynamicFiltering: {
|
|
65
|
+
type: BooleanConstructor;
|
|
66
|
+
default: boolean;
|
|
67
|
+
};
|
|
68
|
+
label: {
|
|
69
|
+
type: StringConstructor;
|
|
70
|
+
default: any;
|
|
71
|
+
};
|
|
72
|
+
description: {
|
|
73
|
+
type: StringConstructor;
|
|
74
|
+
default: any;
|
|
75
|
+
};
|
|
76
|
+
isOptionDisabled: {
|
|
77
|
+
type: PropType<import("../../../../../types").BentoListboxIsOptionDisabled>;
|
|
78
|
+
default: any;
|
|
79
|
+
};
|
|
80
|
+
multiple: {
|
|
81
|
+
type: BooleanConstructor;
|
|
82
|
+
default: boolean;
|
|
83
|
+
};
|
|
84
|
+
optional: {
|
|
85
|
+
type: BooleanConstructor;
|
|
86
|
+
default: boolean;
|
|
87
|
+
};
|
|
88
|
+
required: {
|
|
89
|
+
type: BooleanConstructor;
|
|
90
|
+
default: boolean;
|
|
91
|
+
};
|
|
92
|
+
value: {
|
|
93
|
+
type: PropType<BentoListboxSelectedValue>;
|
|
94
|
+
default: any;
|
|
95
|
+
};
|
|
96
|
+
}>>, {
|
|
97
|
+
required: boolean;
|
|
98
|
+
optional: boolean;
|
|
99
|
+
value: BentoListboxSelectedValue;
|
|
100
|
+
label: string;
|
|
101
|
+
ariaLabel: string;
|
|
102
|
+
disabled: boolean;
|
|
103
|
+
multiple: boolean;
|
|
104
|
+
description: string;
|
|
105
|
+
items: BentoCurrencyListboxOptions;
|
|
106
|
+
isOptionDisabled: import("../../../../../types").BentoListboxIsOptionDisabled;
|
|
107
|
+
dynamicFiltering: boolean;
|
|
108
|
+
}>;
|
|
109
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { BentoListboxOptionItem, OmitStrict } from '../../../../../types';
|
|
2
|
+
import { BentoPaymentMethodType } from '../../../../payment-method';
|
|
3
|
+
export type BentoPaymentMethodListboxOptionItem = OmitStrict<BentoListboxOptionItem, 'value'> & {
|
|
4
|
+
value: BentoPaymentMethodType;
|
|
5
|
+
};
|
|
6
|
+
export type BentoPaymentMethodListboxOptions = BentoPaymentMethodListboxOptionItem[];
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { BentoPaymentMethodListboxOptions } from './dropdown-payment-method.types';
|
|
3
|
+
import { BentoListboxSelectedValue } from '../../../../../types';
|
|
4
|
+
declare const _default: import("vue").DefineComponent<{
|
|
5
|
+
items: {
|
|
6
|
+
type: PropType<BentoPaymentMethodListboxOptions>;
|
|
7
|
+
default: () => any[];
|
|
8
|
+
};
|
|
9
|
+
ariaLabel: {
|
|
10
|
+
type: StringConstructor;
|
|
11
|
+
default: any;
|
|
12
|
+
};
|
|
13
|
+
disabled: {
|
|
14
|
+
type: BooleanConstructor;
|
|
15
|
+
default: boolean;
|
|
16
|
+
};
|
|
17
|
+
dynamicFiltering: {
|
|
18
|
+
type: BooleanConstructor;
|
|
19
|
+
default: boolean;
|
|
20
|
+
};
|
|
21
|
+
label: {
|
|
22
|
+
type: StringConstructor;
|
|
23
|
+
default: any;
|
|
24
|
+
};
|
|
25
|
+
description: {
|
|
26
|
+
type: StringConstructor;
|
|
27
|
+
default: any;
|
|
28
|
+
};
|
|
29
|
+
isOptionDisabled: {
|
|
30
|
+
type: PropType<import("../../../../../types").BentoListboxIsOptionDisabled>;
|
|
31
|
+
default: any;
|
|
32
|
+
};
|
|
33
|
+
multiple: {
|
|
34
|
+
type: BooleanConstructor;
|
|
35
|
+
default: boolean;
|
|
36
|
+
};
|
|
37
|
+
optional: {
|
|
38
|
+
type: BooleanConstructor;
|
|
39
|
+
default: boolean;
|
|
40
|
+
};
|
|
41
|
+
required: {
|
|
42
|
+
type: BooleanConstructor;
|
|
43
|
+
default: boolean;
|
|
44
|
+
};
|
|
45
|
+
value: {
|
|
46
|
+
type: PropType<BentoListboxSelectedValue>;
|
|
47
|
+
default: any;
|
|
48
|
+
};
|
|
49
|
+
}, {
|
|
50
|
+
onInput: (selectedValue: BentoListboxSelectedValue) => void;
|
|
51
|
+
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, "input"[], string, Readonly<import("vue").ExtractPropTypes<{
|
|
52
|
+
items: {
|
|
53
|
+
type: PropType<BentoPaymentMethodListboxOptions>;
|
|
54
|
+
default: () => any[];
|
|
55
|
+
};
|
|
56
|
+
ariaLabel: {
|
|
57
|
+
type: StringConstructor;
|
|
58
|
+
default: any;
|
|
59
|
+
};
|
|
60
|
+
disabled: {
|
|
61
|
+
type: BooleanConstructor;
|
|
62
|
+
default: boolean;
|
|
63
|
+
};
|
|
64
|
+
dynamicFiltering: {
|
|
65
|
+
type: BooleanConstructor;
|
|
66
|
+
default: boolean;
|
|
67
|
+
};
|
|
68
|
+
label: {
|
|
69
|
+
type: StringConstructor;
|
|
70
|
+
default: any;
|
|
71
|
+
};
|
|
72
|
+
description: {
|
|
73
|
+
type: StringConstructor;
|
|
74
|
+
default: any;
|
|
75
|
+
};
|
|
76
|
+
isOptionDisabled: {
|
|
77
|
+
type: PropType<import("../../../../../types").BentoListboxIsOptionDisabled>;
|
|
78
|
+
default: any;
|
|
79
|
+
};
|
|
80
|
+
multiple: {
|
|
81
|
+
type: BooleanConstructor;
|
|
82
|
+
default: boolean;
|
|
83
|
+
};
|
|
84
|
+
optional: {
|
|
85
|
+
type: BooleanConstructor;
|
|
86
|
+
default: boolean;
|
|
87
|
+
};
|
|
88
|
+
required: {
|
|
89
|
+
type: BooleanConstructor;
|
|
90
|
+
default: boolean;
|
|
91
|
+
};
|
|
92
|
+
value: {
|
|
93
|
+
type: PropType<BentoListboxSelectedValue>;
|
|
94
|
+
default: any;
|
|
95
|
+
};
|
|
96
|
+
}>>, {
|
|
97
|
+
required: boolean;
|
|
98
|
+
optional: boolean;
|
|
99
|
+
value: BentoListboxSelectedValue;
|
|
100
|
+
label: string;
|
|
101
|
+
ariaLabel: string;
|
|
102
|
+
disabled: boolean;
|
|
103
|
+
multiple: boolean;
|
|
104
|
+
description: string;
|
|
105
|
+
items: BentoPaymentMethodListboxOptions;
|
|
106
|
+
isOptionDisabled: import("../../../../../types").BentoListboxIsOptionDisabled;
|
|
107
|
+
dynamicFiltering: boolean;
|
|
108
|
+
}>;
|
|
109
|
+
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
-
import type {
|
|
2
|
+
import type { BentoListboxIsOptionDisabled, BentoListboxOptionItem, BentoListboxOptions, BentoListboxSelectedValue } from '@/types';
|
|
3
3
|
import { BentoTypographyElement } from '../typography';
|
|
4
4
|
declare const _default: import("vue").DefineComponent<{
|
|
5
5
|
ariaLabel: {
|
|
@@ -23,11 +23,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
23
23
|
default: any;
|
|
24
24
|
};
|
|
25
25
|
isOptionDisabled: {
|
|
26
|
-
type: PropType<
|
|
26
|
+
type: PropType<BentoListboxIsOptionDisabled>;
|
|
27
27
|
default: any;
|
|
28
28
|
};
|
|
29
29
|
items: {
|
|
30
|
-
type: PropType<
|
|
30
|
+
type: PropType<BentoListboxOptions>;
|
|
31
31
|
default: () => any[];
|
|
32
32
|
};
|
|
33
33
|
multiple: {
|
|
@@ -43,7 +43,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
43
43
|
default: boolean;
|
|
44
44
|
};
|
|
45
45
|
value: {
|
|
46
|
-
type: PropType<
|
|
46
|
+
type: PropType<BentoListboxSelectedValue>;
|
|
47
47
|
default: any;
|
|
48
48
|
};
|
|
49
49
|
}, {
|
|
@@ -51,13 +51,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
51
51
|
isDropdownOpen: import("vue").Ref<boolean>;
|
|
52
52
|
displayValue: import("vue").ComputedRef<string>;
|
|
53
53
|
dropdownOptionsContainerId: string;
|
|
54
|
-
filteredItems: import("vue").ComputedRef<
|
|
54
|
+
filteredItems: import("vue").ComputedRef<BentoListboxOptionItem[]>;
|
|
55
55
|
searchTerm: import("vue").Ref<string>;
|
|
56
56
|
labelId: string;
|
|
57
|
+
selectedValueItem: import("vue").ComputedRef<BentoListboxOptionItem>;
|
|
57
58
|
inputContainerRef: any;
|
|
58
59
|
closeOpenedDropdown: () => void;
|
|
59
60
|
toggleDropdown: () => void;
|
|
60
|
-
onOptionSelected: (selectedValue:
|
|
61
|
+
onOptionSelected: (selectedValue: BentoListboxSelectedValue) => void;
|
|
61
62
|
BentoTypographyElement: typeof BentoTypographyElement;
|
|
62
63
|
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, "input"[], string, Readonly<import("vue").ExtractPropTypes<{
|
|
63
64
|
ariaLabel: {
|
|
@@ -81,11 +82,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
81
82
|
default: any;
|
|
82
83
|
};
|
|
83
84
|
isOptionDisabled: {
|
|
84
|
-
type: PropType<
|
|
85
|
+
type: PropType<BentoListboxIsOptionDisabled>;
|
|
85
86
|
default: any;
|
|
86
87
|
};
|
|
87
88
|
items: {
|
|
88
|
-
type: PropType<
|
|
89
|
+
type: PropType<BentoListboxOptions>;
|
|
89
90
|
default: () => any[];
|
|
90
91
|
};
|
|
91
92
|
multiple: {
|
|
@@ -101,20 +102,20 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
101
102
|
default: boolean;
|
|
102
103
|
};
|
|
103
104
|
value: {
|
|
104
|
-
type: PropType<
|
|
105
|
+
type: PropType<BentoListboxSelectedValue>;
|
|
105
106
|
default: any;
|
|
106
107
|
};
|
|
107
108
|
}>>, {
|
|
108
109
|
required: boolean;
|
|
109
110
|
optional: boolean;
|
|
110
|
-
value:
|
|
111
|
+
value: BentoListboxSelectedValue;
|
|
111
112
|
label: string;
|
|
112
113
|
ariaLabel: string;
|
|
113
114
|
disabled: boolean;
|
|
114
115
|
multiple: boolean;
|
|
115
116
|
description: string;
|
|
116
|
-
items:
|
|
117
|
-
isOptionDisabled:
|
|
117
|
+
items: BentoListboxOptions;
|
|
118
|
+
isOptionDisabled: BentoListboxIsOptionDisabled;
|
|
118
119
|
dynamicFiltering: boolean;
|
|
119
120
|
}>;
|
|
120
121
|
export default _default;
|
|
@@ -1,2 +1,5 @@
|
|
|
1
1
|
export { default as BentoDropdown } from './dropdown.vue';
|
|
2
|
-
export
|
|
2
|
+
export { default as BentoDropdownAvatar } from './components/variants/dropdown-avatar/dropdown-avatar.vue';
|
|
3
|
+
export { default as BentoDropdownCountry } from './components/variants/dropdown-country/dropdown-country.vue';
|
|
4
|
+
export { default as BentoDropdownCurrency } from './components/variants/dropdown-currency/dropdown-currency.vue';
|
|
5
|
+
export { default as BentoDropdownPaymentMethod } from './components/variants/dropdown-payment-method/dropdown-payment-method.vue';
|
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
import { BentoButtonVariant } from '@/components/button';
|
|
2
2
|
declare const _default: import("vue").DefineComponent<{
|
|
3
|
+
appliedFiltersCount: {
|
|
4
|
+
type: NumberConstructor;
|
|
5
|
+
default: any;
|
|
6
|
+
};
|
|
3
7
|
disableApplyButton: {
|
|
4
8
|
type: BooleanConstructor;
|
|
5
9
|
deafault: boolean;
|
|
6
10
|
};
|
|
11
|
+
disableClearButton: {
|
|
12
|
+
type: BooleanConstructor;
|
|
13
|
+
deafault: boolean;
|
|
14
|
+
};
|
|
7
15
|
field: {
|
|
8
16
|
type: StringConstructor;
|
|
9
17
|
required: true;
|
|
@@ -12,16 +20,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
12
20
|
type: StringConstructor;
|
|
13
21
|
required: true;
|
|
14
22
|
};
|
|
15
|
-
isOpen: {
|
|
16
|
-
type: BooleanConstructor;
|
|
17
|
-
required: true;
|
|
18
|
-
};
|
|
19
23
|
value: {
|
|
20
24
|
type: StringConstructor;
|
|
21
25
|
default: any;
|
|
22
26
|
};
|
|
23
27
|
}, {
|
|
24
|
-
|
|
28
|
+
actions: import("vue").ComputedRef<{
|
|
29
|
+
title: string;
|
|
30
|
+
event: () => void;
|
|
31
|
+
disabled: boolean;
|
|
32
|
+
}[]>;
|
|
33
|
+
isFilterOpen: import("vue").Ref<boolean>;
|
|
25
34
|
BentoPopoverPositions: {
|
|
26
35
|
AUTO: import("../../../popper-container").PopperContainerPositionExtended.AUTO;
|
|
27
36
|
AUTO_START: import("../../../popper-container").PopperContainerPositionExtended.AUTO_START;
|
|
@@ -49,13 +58,29 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
49
58
|
onClickApply: () => void;
|
|
50
59
|
onClickClear: () => void;
|
|
51
60
|
onClickOutside: () => void;
|
|
61
|
+
closePopover: () => void;
|
|
52
62
|
filterButtonRef: any;
|
|
53
63
|
BentoButtonVariant: typeof BentoButtonVariant;
|
|
54
|
-
|
|
64
|
+
BentoButtonActionsLayout: {
|
|
65
|
+
BUTTONS_START: import("@/components/button").BentoButtonActionsLayoutExtended.BUTTONS_START;
|
|
66
|
+
BUTTONS_END: import("@/components/button").BentoButtonActionsLayoutBasic.BUTTONS_END;
|
|
67
|
+
FILL_CONTAINER: import("@/components/button").BentoButtonActionsLayoutBasic.FILL_CONTAINER;
|
|
68
|
+
SPACE_BETWEEN: import("@/components/button").BentoButtonActionsLayoutBasic.SPACE_BETWEEN;
|
|
69
|
+
VERTICAL_STACK: import("@/components/button").BentoButtonActionsLayoutBasic.VERTICAL_STACK;
|
|
70
|
+
};
|
|
71
|
+
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, ("open" | "clear" | "close" | "apply")[], string, Readonly<import("vue").ExtractPropTypes<{
|
|
72
|
+
appliedFiltersCount: {
|
|
73
|
+
type: NumberConstructor;
|
|
74
|
+
default: any;
|
|
75
|
+
};
|
|
55
76
|
disableApplyButton: {
|
|
56
77
|
type: BooleanConstructor;
|
|
57
78
|
deafault: boolean;
|
|
58
79
|
};
|
|
80
|
+
disableClearButton: {
|
|
81
|
+
type: BooleanConstructor;
|
|
82
|
+
deafault: boolean;
|
|
83
|
+
};
|
|
59
84
|
field: {
|
|
60
85
|
type: StringConstructor;
|
|
61
86
|
required: true;
|
|
@@ -64,16 +89,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
64
89
|
type: StringConstructor;
|
|
65
90
|
required: true;
|
|
66
91
|
};
|
|
67
|
-
isOpen: {
|
|
68
|
-
type: BooleanConstructor;
|
|
69
|
-
required: true;
|
|
70
|
-
};
|
|
71
92
|
value: {
|
|
72
93
|
type: StringConstructor;
|
|
73
94
|
default: any;
|
|
74
95
|
};
|
|
75
96
|
}>>, {
|
|
76
97
|
value: string;
|
|
98
|
+
appliedFiltersCount: number;
|
|
77
99
|
disableApplyButton: boolean;
|
|
100
|
+
disableClearButton: boolean;
|
|
78
101
|
}>;
|
|
79
102
|
export default _default;
|
package/dist/@types/components/filter-bar/components/base-filter/composables/use-base-filter.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Ref } from 'vue';
|
|
2
|
+
export declare const useBaseFilter: <T>(appliedFilter: Ref<T>) => {
|
|
3
|
+
internalFilterValue: Ref<import("vue").UnwrapRef<T>>;
|
|
4
|
+
isClearButtonDisabled: import("vue").ComputedRef<boolean>;
|
|
5
|
+
isApplyButtonDisabled: import("vue").ComputedRef<boolean>;
|
|
6
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as BentoListboxFilter } from './listbox-filter.vue';
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { BentoListboxSelectedValue } from '@/types';
|
|
3
|
+
import { BentoListboxFilterOptions } from '../../filter-bar.types';
|
|
4
|
+
declare const _default: import("vue").DefineComponent<{
|
|
5
|
+
field: {
|
|
6
|
+
type: StringConstructor;
|
|
7
|
+
required: true;
|
|
8
|
+
};
|
|
9
|
+
label: {
|
|
10
|
+
type: StringConstructor;
|
|
11
|
+
required: true;
|
|
12
|
+
};
|
|
13
|
+
options: {
|
|
14
|
+
type: PropType<BentoListboxFilterOptions>;
|
|
15
|
+
default: any;
|
|
16
|
+
};
|
|
17
|
+
value: {
|
|
18
|
+
type: PropType<BentoListboxSelectedValue>;
|
|
19
|
+
default: any;
|
|
20
|
+
};
|
|
21
|
+
}, {
|
|
22
|
+
appliedFiltersCount: import("vue").ComputedRef<number>;
|
|
23
|
+
filteredItems: import("vue").ComputedRef<import("@/types").BentoListboxOptions>;
|
|
24
|
+
internalFilterValue: import("vue").Ref<import("@/types").BentoListboxValue | import("@/types").BentoListboxValue[]>;
|
|
25
|
+
isApplyButtonDisabled: import("vue").ComputedRef<boolean>;
|
|
26
|
+
isClearButtonDisabled: import("vue").ComputedRef<boolean>;
|
|
27
|
+
listboxFilterId: import("vue").ComputedRef<string>;
|
|
28
|
+
clearFilter: () => void;
|
|
29
|
+
onOptionSelected: (selectedValue: BentoListboxSelectedValue) => void;
|
|
30
|
+
openFilter: () => void;
|
|
31
|
+
updateFilter: () => void;
|
|
32
|
+
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
33
|
+
field: {
|
|
34
|
+
type: StringConstructor;
|
|
35
|
+
required: true;
|
|
36
|
+
};
|
|
37
|
+
label: {
|
|
38
|
+
type: StringConstructor;
|
|
39
|
+
required: true;
|
|
40
|
+
};
|
|
41
|
+
options: {
|
|
42
|
+
type: PropType<BentoListboxFilterOptions>;
|
|
43
|
+
default: any;
|
|
44
|
+
};
|
|
45
|
+
value: {
|
|
46
|
+
type: PropType<BentoListboxSelectedValue>;
|
|
47
|
+
default: any;
|
|
48
|
+
};
|
|
49
|
+
}>>, {
|
|
50
|
+
value: BentoListboxSelectedValue;
|
|
51
|
+
options: BentoListboxFilterOptions;
|
|
52
|
+
}>;
|
|
53
|
+
export default _default;
|
|
@@ -12,16 +12,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
12
12
|
default: any;
|
|
13
13
|
};
|
|
14
14
|
}, {
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
appliedFiltersCount: import("vue").ComputedRef<number>;
|
|
16
|
+
internalFilterValue: import("vue").Ref<string>;
|
|
17
17
|
isApplyButtonDisabled: import("vue").ComputedRef<boolean>;
|
|
18
|
+
isClearButtonDisabled: import("vue").ComputedRef<boolean>;
|
|
18
19
|
inputTextRef: any;
|
|
19
20
|
updateFilter: () => void;
|
|
20
21
|
clearFilter: () => void;
|
|
21
22
|
openFilter: () => void;
|
|
22
|
-
|
|
23
|
-
dismissFilter: () => void;
|
|
24
|
-
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, ("update" | "dismiss")[], string, Readonly<import("vue").ExtractPropTypes<{
|
|
23
|
+
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, "update"[], string, Readonly<import("vue").ExtractPropTypes<{
|
|
25
24
|
field: {
|
|
26
25
|
type: StringConstructor;
|
|
27
26
|
required: true;
|
|
@@ -1,14 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { BentoListboxIsOptionDisabled, BentoListboxOptions, BentoListboxSelectedValue } from '../../types';
|
|
2
|
+
export interface BentoListboxFilterOptions {
|
|
3
|
+
listboxItems: BentoListboxOptions;
|
|
4
|
+
multiple?: boolean;
|
|
5
|
+
isOptionDisabled?: BentoListboxIsOptionDisabled;
|
|
3
6
|
}
|
|
7
|
+
export type BentoTextFilterValue = string | null;
|
|
8
|
+
export type BentoListboxFilterValue = BentoListboxSelectedValue;
|
|
9
|
+
export type BentoFilterBarValue = BentoTextFilterValue | BentoListboxFilterValue;
|
|
10
|
+
export type BentoFilterOptions = BentoListboxFilterOptions | undefined;
|
|
4
11
|
export declare enum BentoFilterItemType {
|
|
5
|
-
TEXT = "BentoTextFilter"
|
|
12
|
+
TEXT = "BentoTextFilter",
|
|
13
|
+
LISTBOX = "BentoListboxFilter"
|
|
6
14
|
}
|
|
7
15
|
export interface BentoFilterModel {
|
|
8
16
|
field: string;
|
|
9
17
|
label: string;
|
|
10
18
|
type: BentoFilterItemType;
|
|
11
19
|
options?: BentoFilterOptions;
|
|
12
|
-
value?:
|
|
20
|
+
value?: BentoFilterBarValue;
|
|
13
21
|
}
|
|
14
22
|
export type BentoFilterBarModel = Array<BentoFilterModel>;
|
|
@@ -1,19 +1,34 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import { BentoFilterBarModel, BentoFilterModel } from './filter-bar.types';
|
|
3
|
+
import { BentoButtonVariant } from '@/components/button';
|
|
3
4
|
declare const _default: import("vue").DefineComponent<{
|
|
5
|
+
searchTerm: {
|
|
6
|
+
type: StringConstructor;
|
|
7
|
+
default: string;
|
|
8
|
+
};
|
|
4
9
|
value: {
|
|
5
10
|
type: PropType<BentoFilterBarModel>;
|
|
6
|
-
default: any;
|
|
11
|
+
default: () => any[];
|
|
7
12
|
};
|
|
8
13
|
}, {
|
|
9
|
-
|
|
14
|
+
isClearAllVisible: import("vue").ComputedRef<boolean>;
|
|
15
|
+
searchBarAriaLabel: string;
|
|
16
|
+
BentoButtonVariant: typeof BentoButtonVariant;
|
|
10
17
|
updateFilterHandler: (updatedFilter: BentoFilterModel) => void;
|
|
11
|
-
|
|
18
|
+
clearAllFilters: () => void;
|
|
19
|
+
onSearchbarClear: () => void;
|
|
20
|
+
onSearchbarInput: (newSearchTerm: string) => void;
|
|
21
|
+
}, {}, {}, {}, 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<{
|
|
22
|
+
searchTerm: {
|
|
23
|
+
type: StringConstructor;
|
|
24
|
+
default: string;
|
|
25
|
+
};
|
|
12
26
|
value: {
|
|
13
27
|
type: PropType<BentoFilterBarModel>;
|
|
14
|
-
default: any;
|
|
28
|
+
default: () => any[];
|
|
15
29
|
};
|
|
16
30
|
}>>, {
|
|
17
31
|
value: BentoFilterBarModel;
|
|
32
|
+
searchTerm: string;
|
|
18
33
|
}>;
|
|
19
34
|
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as BentoInfoIcon } from './info-icon.vue';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
tooltipText: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
required: true;
|
|
5
|
+
};
|
|
6
|
+
}, {}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
7
|
+
tooltipText: {
|
|
8
|
+
type: StringConstructor;
|
|
9
|
+
required: true;
|
|
10
|
+
};
|
|
11
|
+
}>>, {}>;
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './listbox';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as BentoListboxMultiSelect } from './listbox-multi-select.vue';
|
|
@@ -1,42 +1,42 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import { BentoTypographyElement } from '@/components/typography';
|
|
3
|
-
import
|
|
3
|
+
import { BentoListboxIsOptionDisabled, BentoListboxOptions, BentoListboxSelectedValue, BentoListboxValue } from '@/types';
|
|
4
4
|
declare const _default: import("vue").DefineComponent<{
|
|
5
5
|
isOptionDisabled: {
|
|
6
|
-
type: PropType<
|
|
6
|
+
type: PropType<BentoListboxIsOptionDisabled>;
|
|
7
7
|
default: () => false;
|
|
8
8
|
};
|
|
9
9
|
items: {
|
|
10
|
-
type: PropType<
|
|
10
|
+
type: PropType<BentoListboxOptions>;
|
|
11
11
|
required: true;
|
|
12
12
|
};
|
|
13
13
|
selectedValues: {
|
|
14
|
-
type: PropType<
|
|
15
|
-
default:
|
|
14
|
+
type: PropType<BentoListboxSelectedValue>;
|
|
15
|
+
default: () => BentoListboxSelectedValue;
|
|
16
16
|
};
|
|
17
17
|
}, {
|
|
18
18
|
isAllSelected: import("vue").ComputedRef<boolean>;
|
|
19
19
|
isIndeterminate: import("vue").ComputedRef<boolean>;
|
|
20
|
-
selectedItemsList: import("vue").Ref<
|
|
20
|
+
selectedItemsList: import("vue").Ref<BentoListboxValue[]>;
|
|
21
21
|
selectAllCheckboxText: import("vue").ComputedRef<import("vue-i18n").default.TranslateResult>;
|
|
22
22
|
BentoTypographyElement: typeof BentoTypographyElement;
|
|
23
|
-
toggleCheckboxSelection: (value:
|
|
23
|
+
toggleCheckboxSelection: (value: BentoListboxValue) => void;
|
|
24
24
|
toggleSelectAll: (selectedValue: boolean) => void;
|
|
25
25
|
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, "select"[], string, Readonly<import("vue").ExtractPropTypes<{
|
|
26
26
|
isOptionDisabled: {
|
|
27
|
-
type: PropType<
|
|
27
|
+
type: PropType<BentoListboxIsOptionDisabled>;
|
|
28
28
|
default: () => false;
|
|
29
29
|
};
|
|
30
30
|
items: {
|
|
31
|
-
type: PropType<
|
|
31
|
+
type: PropType<BentoListboxOptions>;
|
|
32
32
|
required: true;
|
|
33
33
|
};
|
|
34
34
|
selectedValues: {
|
|
35
|
-
type: PropType<
|
|
36
|
-
default:
|
|
35
|
+
type: PropType<BentoListboxSelectedValue>;
|
|
36
|
+
default: () => BentoListboxSelectedValue;
|
|
37
37
|
};
|
|
38
38
|
}>>, {
|
|
39
|
-
isOptionDisabled:
|
|
40
|
-
selectedValues:
|
|
39
|
+
isOptionDisabled: BentoListboxIsOptionDisabled;
|
|
40
|
+
selectedValues: BentoListboxSelectedValue;
|
|
41
41
|
}>;
|
|
42
42
|
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as BentoListboxOption } from './listbox-option.vue';
|
|
@@ -9,8 +9,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
9
9
|
};
|
|
10
10
|
}, {
|
|
11
11
|
conditionalClasses: import("vue").ComputedRef<{
|
|
12
|
-
'b-
|
|
13
|
-
'b-
|
|
12
|
+
'b-listbox-option--disabled': boolean;
|
|
13
|
+
'b-listbox-option--selected': boolean;
|
|
14
14
|
}>;
|
|
15
15
|
onClick: (e: Event) => void;
|
|
16
16
|
}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, ("click" | "escape-pressed" | "enter-pressed")[], string, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as ListboxOptionCurrency } from './listbox-option-currency.vue';
|