@adyen/bento-vue2 0.3.0 → 0.4.1
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/alert/alert.vue.d.ts +1 -1
- package/dist/@types/components/button/button.vue.d.ts +1 -1
- package/dist/@types/components/button/components/button-actions/button-actions.types.d.ts +1 -1
- package/dist/@types/components/card/card.vue.d.ts +21 -1
- package/dist/@types/components/country/composables/useCountryCapital/useCountryCapital.d.ts +1 -1
- package/dist/@types/components/country/composables/useCountryName/useCountryName.d.ts +1 -1
- package/dist/@types/components/country/composables/useCountryPhoneCode/useCountryPhoneCode.d.ts +1 -1
- package/dist/@types/components/country/country.vue.d.ts +1 -1
- package/dist/@types/components/data-grid/components/data-grid-columns/data-grid-columns-types.d.ts +15 -0
- package/dist/@types/components/data-grid/components/data-grid-columns/data-grid-columns.vue.d.ts +55 -11
- package/dist/@types/components/data-grid/components/data-grid-config-settings/components/data-grid-config-settings-column-row/data-grid-config-settings-column-row.vue.d.ts +39 -0
- package/dist/@types/components/data-grid/components/data-grid-config-settings/data-grid-config-settings.vue.d.ts +9 -8
- package/dist/@types/components/data-grid/components/index.d.ts +1 -1
- package/dist/@types/components/data-grid/composables/index.d.ts +2 -1
- package/dist/@types/components/data-grid/composables/useCalculateColumnWidth/useCalculateColumnWidth.d.ts +2 -1
- package/dist/@types/components/data-grid/composables/useColumnReorderer/useColumnReorderer.d.ts +63 -0
- package/dist/@types/components/data-grid/composables/useConfigSettings/useConfigSettings.d.ts +8 -0
- package/dist/@types/components/data-grid/composables/useResizer.d.ts +3 -1
- package/dist/@types/components/data-grid/composables/useSorter.d.ts +2 -1
- package/dist/@types/components/data-grid/data-grid.types.d.ts +4 -2
- package/dist/@types/components/data-grid/data-grid.vue.d.ts +143 -10
- package/dist/@types/components/date/date.vue.d.ts +3 -3
- package/dist/@types/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.types.d.ts +4 -2
- package/dist/@types/components/dropdown/components/dropdown-default-textbox/dropdown-default-textbox.vue.d.ts +2 -4
- package/dist/@types/components/dropdown/components/dropdown-options-container/dropdown-options-container.vue.d.ts +9 -0
- package/dist/@types/components/dropdown/components/dropdown-small-textbox/dropdown-small-textbox.vue.d.ts +2 -3
- package/dist/@types/components/dropdown/components/index.d.ts +1 -0
- package/dist/@types/components/dropdown/components/variants/dropdown-avatar/dropdown-avatar.types.d.ts +1 -1
- package/dist/@types/components/dropdown/components/variants/dropdown-avatar/dropdown-avatar.vue.d.ts +14 -5
- package/dist/@types/components/dropdown/components/variants/dropdown-country/composables/useCountryItems.d.ts +2 -2
- package/dist/@types/components/dropdown/components/variants/dropdown-country/dropdown-country.types.d.ts +2 -2
- package/dist/@types/components/dropdown/components/variants/dropdown-country/dropdown-country.vue.d.ts +15 -6
- package/dist/@types/components/dropdown/components/variants/dropdown-currency/dropdown-currency.vue.d.ts +13 -4
- package/dist/@types/components/dropdown/components/variants/dropdown-payment-method/dropdown-payment-method.types.d.ts +2 -2
- package/dist/@types/components/dropdown/components/variants/dropdown-payment-method/dropdown-payment-method.vue.d.ts +13 -4
- package/dist/@types/components/dropdown/components/variants/dropdown-tag/dropdown-tag.vue.d.ts +9 -0
- package/dist/@types/components/dropdown/dropdown.vue.d.ts +14 -1
- package/dist/@types/components/filter-bar/components/input-filter/index.d.ts +1 -0
- package/dist/@types/components/filter-bar/components/range-filter/range-filter.vue.d.ts +5 -3
- package/dist/@types/components/filter-bar/components/select-filter/variants/select-avatar-filter/index.d.ts +1 -0
- package/dist/@types/components/filter-bar/components/select-filter/variants/select-avatar-filter/select-avatar-filter.vue.d.ts +44 -0
- package/dist/@types/components/filter-bar/components/select-filter/variants/select-country-filter/index.d.ts +1 -0
- package/dist/@types/components/filter-bar/components/select-filter/variants/select-country-filter/select-country-filter.vue.d.ts +52 -0
- package/dist/@types/components/filter-bar/components/select-filter/variants/select-currency-filter/index.d.ts +1 -0
- package/dist/@types/components/filter-bar/components/select-filter/variants/select-currency-filter/select-currency-filter.vue.d.ts +44 -0
- package/dist/@types/components/filter-bar/components/select-filter/variants/select-payment-method-filter/index.d.ts +1 -0
- package/dist/@types/components/filter-bar/components/select-filter/variants/select-payment-method-filter/select-payment-method-filter.vue.d.ts +44 -0
- package/dist/@types/components/filter-bar/components/select-filter/variants/select-tag-filter/index.d.ts +1 -0
- package/dist/@types/components/filter-bar/components/select-filter/variants/select-tag-filter/select-tag-filter.vue.d.ts +55 -0
- package/dist/@types/components/filter-bar/filter-bar.types.d.ts +34 -7
- package/dist/@types/components/filter-bar/filter-bar.vue.d.ts +3 -2
- package/dist/@types/components/internal/index.d.ts +1 -0
- package/dist/@types/components/internal/listbox/components/listbox-multi-select/components/listbox-multi-select-options.vue.d.ts +37 -0
- package/dist/@types/components/internal/listbox/components/listbox-multi-select/listbox-multi-select.vue.d.ts +4 -1
- package/dist/@types/components/internal/listbox/components/listbox-option-tag/listbox-option-tag.vue.d.ts +3 -3
- package/dist/@types/components/internal/listbox/listbox.vue.d.ts +3 -0
- package/dist/@types/components/link/link.vue.d.ts +5 -3
- package/dist/@types/components/payment-method/payment-method.vue.d.ts +1 -1
- package/dist/@types/components/popper-container/popper-container.utils.d.ts +1 -1
- package/dist/@types/components.d.ts +0 -2
- package/dist/@types/composables/initials.d.ts +1 -1
- package/dist/@types/composables/use-checkbox-select-all/use-checkbox-select-all.d.ts +4 -4
- package/dist/@types/composables/useDynamicImport.d.ts +1 -1
- package/dist/@types/directives/click-outside/on-click-outside.d.ts +1 -1
- package/dist/@types/directives/click-outside/useEventListener/index.d.ts +1 -1
- package/dist/@types/directives/click-outside/utils.d.ts +1 -1
- package/dist/@types/directives/tooltip/tooltip.types.d.ts +1 -1
- package/dist/@types/index.d.ts +0 -1
- package/dist/@types/plugins/toastController.d.ts +1 -1
- package/dist/@types/types/listbox.d.ts +1 -1
- package/dist/@types/utils/ts/aria-label.d.ts +1 -1
- package/dist/@types/utils/ts/events.d.ts +1 -1
- package/dist/index.js +3938 -3304
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
- package/dist/@types/components/data-grid/composables/useConfigSettings.d.ts +0 -7
- package/dist/@types/components/filter-bar/components/text-filter/index.d.ts +0 -1
- /package/dist/@types/components/filter-bar/components/{text-filter/text-filter.vue.d.ts → input-filter/input-filter.vue.d.ts} +0 -0
- /package/dist/@types/components/{avatar → internal/avatar}/avatar.vue.d.ts +0 -0
- /package/dist/@types/components/{avatar → internal/avatar}/index.d.ts +0 -0
package/dist/@types/components/dropdown/components/variants/dropdown-tag/dropdown-tag.vue.d.ts
CHANGED
|
@@ -18,6 +18,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
18
18
|
type: BooleanConstructor;
|
|
19
19
|
default: boolean;
|
|
20
20
|
};
|
|
21
|
+
error: {
|
|
22
|
+
type: BooleanConstructor;
|
|
23
|
+
default: boolean;
|
|
24
|
+
};
|
|
21
25
|
label: {
|
|
22
26
|
type: StringConstructor;
|
|
23
27
|
default: any;
|
|
@@ -74,6 +78,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
74
78
|
type: BooleanConstructor;
|
|
75
79
|
default: boolean;
|
|
76
80
|
};
|
|
81
|
+
error: {
|
|
82
|
+
type: BooleanConstructor;
|
|
83
|
+
default: boolean;
|
|
84
|
+
};
|
|
77
85
|
label: {
|
|
78
86
|
type: StringConstructor;
|
|
79
87
|
default: any;
|
|
@@ -109,6 +117,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
109
117
|
}>>, {
|
|
110
118
|
required: boolean;
|
|
111
119
|
optional: boolean;
|
|
120
|
+
error: boolean;
|
|
112
121
|
value: BentoListboxSelectedValue;
|
|
113
122
|
label: string;
|
|
114
123
|
ariaLabel: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import type { BentoListboxIsOptionDisabled, BentoListboxOptions, BentoListboxSelectedValue } from '@/types';
|
|
3
|
-
import { BentoTypographyElement } from '
|
|
3
|
+
import { BentoTypographyElement } from '@/components/typography';
|
|
4
4
|
declare const _default: import("vue").DefineComponent<{
|
|
5
5
|
ariaLabel: {
|
|
6
6
|
type: StringConstructor;
|
|
@@ -14,6 +14,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
14
14
|
type: BooleanConstructor;
|
|
15
15
|
default: boolean;
|
|
16
16
|
};
|
|
17
|
+
error: {
|
|
18
|
+
type: BooleanConstructor;
|
|
19
|
+
default: boolean;
|
|
20
|
+
};
|
|
17
21
|
label: {
|
|
18
22
|
type: StringConstructor;
|
|
19
23
|
default: any;
|
|
@@ -56,9 +60,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
56
60
|
displayValue: import("vue").ComputedRef<string>;
|
|
57
61
|
dropdownOptionsContainerId: string;
|
|
58
62
|
filteredItems: import("vue").ComputedRef<import("@/types").BentoListboxOptionItem[]>;
|
|
63
|
+
isSearching: import("vue").ComputedRef<boolean>;
|
|
59
64
|
searchTerm: import("vue").Ref<string>;
|
|
60
65
|
labelId: string;
|
|
61
66
|
selectedValueItem: import("vue").ComputedRef<import("@/types").BentoListboxOptionItem | import("@/types").BentoListboxOptionItem[]>;
|
|
67
|
+
descriptionConditionalClasses: import("vue").ComputedRef<{
|
|
68
|
+
'b-dropdown__description--error': boolean;
|
|
69
|
+
}>;
|
|
62
70
|
inputContainerRef: any;
|
|
63
71
|
closeOpenedDropdown: () => void;
|
|
64
72
|
toggleDropdown: () => void;
|
|
@@ -77,6 +85,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
77
85
|
type: BooleanConstructor;
|
|
78
86
|
default: boolean;
|
|
79
87
|
};
|
|
88
|
+
error: {
|
|
89
|
+
type: BooleanConstructor;
|
|
90
|
+
default: boolean;
|
|
91
|
+
};
|
|
80
92
|
label: {
|
|
81
93
|
type: StringConstructor;
|
|
82
94
|
default: any;
|
|
@@ -116,6 +128,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
116
128
|
}>>, {
|
|
117
129
|
required: boolean;
|
|
118
130
|
optional: boolean;
|
|
131
|
+
error: boolean;
|
|
119
132
|
value: BentoListboxSelectedValue;
|
|
120
133
|
label: string;
|
|
121
134
|
ariaLabel: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as BentoInputFilter } from './input-filter.vue';
|
|
@@ -11,7 +11,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
11
11
|
};
|
|
12
12
|
value: {
|
|
13
13
|
type: PropType<string[]>;
|
|
14
|
-
|
|
14
|
+
default: () => string[];
|
|
15
15
|
};
|
|
16
16
|
}, {
|
|
17
17
|
BentoInputFieldType: typeof BentoInputFieldType;
|
|
@@ -36,7 +36,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
36
36
|
};
|
|
37
37
|
value: {
|
|
38
38
|
type: PropType<string[]>;
|
|
39
|
-
|
|
39
|
+
default: () => string[];
|
|
40
40
|
};
|
|
41
|
-
}>>, {
|
|
41
|
+
}>>, {
|
|
42
|
+
value: string[];
|
|
43
|
+
}>;
|
|
42
44
|
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as BentoSelectAvatarFilter } from './select-avatar-filter.vue';
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { BentoListboxSelectedValue } from '@/types';
|
|
3
|
+
import { BentoSelectAvatarFilterOptions } from '@/components/filter-bar';
|
|
4
|
+
declare const _default: import("vue").DefineComponent<{
|
|
5
|
+
options: {
|
|
6
|
+
type: PropType<BentoSelectAvatarFilterOptions>;
|
|
7
|
+
default: any;
|
|
8
|
+
};
|
|
9
|
+
field: {
|
|
10
|
+
type: StringConstructor;
|
|
11
|
+
required: true;
|
|
12
|
+
};
|
|
13
|
+
label: {
|
|
14
|
+
type: StringConstructor;
|
|
15
|
+
required: true;
|
|
16
|
+
};
|
|
17
|
+
value: {
|
|
18
|
+
type: PropType<BentoListboxSelectedValue>;
|
|
19
|
+
default: any;
|
|
20
|
+
};
|
|
21
|
+
}, {
|
|
22
|
+
onUpdate: (selectedValue: BentoListboxSelectedValue) => void;
|
|
23
|
+
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, "update"[], string, Readonly<import("vue").ExtractPropTypes<{
|
|
24
|
+
options: {
|
|
25
|
+
type: PropType<BentoSelectAvatarFilterOptions>;
|
|
26
|
+
default: any;
|
|
27
|
+
};
|
|
28
|
+
field: {
|
|
29
|
+
type: StringConstructor;
|
|
30
|
+
required: true;
|
|
31
|
+
};
|
|
32
|
+
label: {
|
|
33
|
+
type: StringConstructor;
|
|
34
|
+
required: true;
|
|
35
|
+
};
|
|
36
|
+
value: {
|
|
37
|
+
type: PropType<BentoListboxSelectedValue>;
|
|
38
|
+
default: any;
|
|
39
|
+
};
|
|
40
|
+
}>>, {
|
|
41
|
+
value: BentoListboxSelectedValue;
|
|
42
|
+
options: BentoSelectAvatarFilterOptions;
|
|
43
|
+
}>;
|
|
44
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as BentoSelectCountryFilter } from './select-country-filter.vue';
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { BentoCountryVariant } from '@/components/country';
|
|
3
|
+
import { BentoListboxSelectedValue } from '@/types';
|
|
4
|
+
import { BentoSelectCountryFilterOptions } from '@/components/filter-bar';
|
|
5
|
+
declare const _default: import("vue").DefineComponent<{
|
|
6
|
+
options: {
|
|
7
|
+
type: PropType<BentoSelectCountryFilterOptions>;
|
|
8
|
+
default: any;
|
|
9
|
+
};
|
|
10
|
+
field: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
required: true;
|
|
13
|
+
};
|
|
14
|
+
label: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
required: true;
|
|
17
|
+
};
|
|
18
|
+
value: {
|
|
19
|
+
type: PropType<BentoListboxSelectedValue>;
|
|
20
|
+
default: any;
|
|
21
|
+
};
|
|
22
|
+
}, {
|
|
23
|
+
countryOptions: import("vue").ComputedRef<{
|
|
24
|
+
listboxItems: import("@/types").BentoListboxOptions;
|
|
25
|
+
multiple?: boolean;
|
|
26
|
+
isOptionDisabled?: import("@/types").BentoListboxIsOptionDisabled;
|
|
27
|
+
variant: BentoCountryVariant;
|
|
28
|
+
}>;
|
|
29
|
+
onUpdate: (selectedValue: BentoListboxSelectedValue) => void;
|
|
30
|
+
BentoCountryVariant: typeof BentoCountryVariant;
|
|
31
|
+
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, "update"[], string, Readonly<import("vue").ExtractPropTypes<{
|
|
32
|
+
options: {
|
|
33
|
+
type: PropType<BentoSelectCountryFilterOptions>;
|
|
34
|
+
default: any;
|
|
35
|
+
};
|
|
36
|
+
field: {
|
|
37
|
+
type: StringConstructor;
|
|
38
|
+
required: true;
|
|
39
|
+
};
|
|
40
|
+
label: {
|
|
41
|
+
type: StringConstructor;
|
|
42
|
+
required: true;
|
|
43
|
+
};
|
|
44
|
+
value: {
|
|
45
|
+
type: PropType<BentoListboxSelectedValue>;
|
|
46
|
+
default: any;
|
|
47
|
+
};
|
|
48
|
+
}>>, {
|
|
49
|
+
value: BentoListboxSelectedValue;
|
|
50
|
+
options: BentoSelectCountryFilterOptions;
|
|
51
|
+
}>;
|
|
52
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as BentoSelectCurrencyFilter } from './select-currency-filter.vue';
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { BentoListboxSelectedValue } from '@/types';
|
|
3
|
+
import { BentoSelectCurrencyFilterOptions } from '@/components/filter-bar';
|
|
4
|
+
declare const _default: import("vue").DefineComponent<{
|
|
5
|
+
options: {
|
|
6
|
+
type: PropType<BentoSelectCurrencyFilterOptions>;
|
|
7
|
+
default: any;
|
|
8
|
+
};
|
|
9
|
+
field: {
|
|
10
|
+
type: StringConstructor;
|
|
11
|
+
required: true;
|
|
12
|
+
};
|
|
13
|
+
label: {
|
|
14
|
+
type: StringConstructor;
|
|
15
|
+
required: true;
|
|
16
|
+
};
|
|
17
|
+
value: {
|
|
18
|
+
type: PropType<BentoListboxSelectedValue>;
|
|
19
|
+
default: any;
|
|
20
|
+
};
|
|
21
|
+
}, {
|
|
22
|
+
onUpdate: (selectedValue: BentoListboxSelectedValue) => void;
|
|
23
|
+
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, "update"[], string, Readonly<import("vue").ExtractPropTypes<{
|
|
24
|
+
options: {
|
|
25
|
+
type: PropType<BentoSelectCurrencyFilterOptions>;
|
|
26
|
+
default: any;
|
|
27
|
+
};
|
|
28
|
+
field: {
|
|
29
|
+
type: StringConstructor;
|
|
30
|
+
required: true;
|
|
31
|
+
};
|
|
32
|
+
label: {
|
|
33
|
+
type: StringConstructor;
|
|
34
|
+
required: true;
|
|
35
|
+
};
|
|
36
|
+
value: {
|
|
37
|
+
type: PropType<BentoListboxSelectedValue>;
|
|
38
|
+
default: any;
|
|
39
|
+
};
|
|
40
|
+
}>>, {
|
|
41
|
+
value: BentoListboxSelectedValue;
|
|
42
|
+
options: BentoSelectCurrencyFilterOptions;
|
|
43
|
+
}>;
|
|
44
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as BentoSelectPaymentMethodFilter } from './select-payment-method-filter.vue';
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { BentoListboxSelectedValue } from '@/types';
|
|
3
|
+
import { BentoSelectPaymentMethodFilterOptions } from '@/components/filter-bar';
|
|
4
|
+
declare const _default: import("vue").DefineComponent<{
|
|
5
|
+
options: {
|
|
6
|
+
type: PropType<BentoSelectPaymentMethodFilterOptions>;
|
|
7
|
+
default: any;
|
|
8
|
+
};
|
|
9
|
+
field: {
|
|
10
|
+
type: StringConstructor;
|
|
11
|
+
required: true;
|
|
12
|
+
};
|
|
13
|
+
label: {
|
|
14
|
+
type: StringConstructor;
|
|
15
|
+
required: true;
|
|
16
|
+
};
|
|
17
|
+
value: {
|
|
18
|
+
type: PropType<BentoListboxSelectedValue>;
|
|
19
|
+
default: any;
|
|
20
|
+
};
|
|
21
|
+
}, {
|
|
22
|
+
onUpdate: (selectedValue: BentoListboxSelectedValue) => void;
|
|
23
|
+
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, "update"[], string, Readonly<import("vue").ExtractPropTypes<{
|
|
24
|
+
options: {
|
|
25
|
+
type: PropType<BentoSelectPaymentMethodFilterOptions>;
|
|
26
|
+
default: any;
|
|
27
|
+
};
|
|
28
|
+
field: {
|
|
29
|
+
type: StringConstructor;
|
|
30
|
+
required: true;
|
|
31
|
+
};
|
|
32
|
+
label: {
|
|
33
|
+
type: StringConstructor;
|
|
34
|
+
required: true;
|
|
35
|
+
};
|
|
36
|
+
value: {
|
|
37
|
+
type: PropType<BentoListboxSelectedValue>;
|
|
38
|
+
default: any;
|
|
39
|
+
};
|
|
40
|
+
}>>, {
|
|
41
|
+
value: BentoListboxSelectedValue;
|
|
42
|
+
options: BentoSelectPaymentMethodFilterOptions;
|
|
43
|
+
}>;
|
|
44
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as BentoSelectTagFilter } from './select-tag-filter.vue';
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { BentoCountryVariant } from '@/components/country';
|
|
3
|
+
import { BentoListboxSelectedValue } from '@/types';
|
|
4
|
+
import { BentoSelectTagFilterOptions } from '@/components/filter-bar';
|
|
5
|
+
declare const _default: import("vue").DefineComponent<{
|
|
6
|
+
options: {
|
|
7
|
+
type: PropType<BentoSelectTagFilterOptions>;
|
|
8
|
+
default: any;
|
|
9
|
+
};
|
|
10
|
+
field: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
required: true;
|
|
13
|
+
};
|
|
14
|
+
label: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
required: true;
|
|
17
|
+
};
|
|
18
|
+
value: {
|
|
19
|
+
type: PropType<BentoListboxSelectedValue>;
|
|
20
|
+
default: any;
|
|
21
|
+
};
|
|
22
|
+
}, {
|
|
23
|
+
countryOptions: import("vue").ComputedRef<{
|
|
24
|
+
listboxItems: {
|
|
25
|
+
label: string;
|
|
26
|
+
value: import("@/types").BentoListboxValue;
|
|
27
|
+
data: import("../../../../../tag").BentoTagVariant;
|
|
28
|
+
}[];
|
|
29
|
+
multiple?: boolean;
|
|
30
|
+
isOptionDisabled?: import("@/types").BentoListboxIsOptionDisabled;
|
|
31
|
+
}>;
|
|
32
|
+
onUpdate: (selectedValue: BentoListboxSelectedValue) => void;
|
|
33
|
+
BentoCountryVariant: typeof BentoCountryVariant;
|
|
34
|
+
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, "update"[], string, Readonly<import("vue").ExtractPropTypes<{
|
|
35
|
+
options: {
|
|
36
|
+
type: PropType<BentoSelectTagFilterOptions>;
|
|
37
|
+
default: any;
|
|
38
|
+
};
|
|
39
|
+
field: {
|
|
40
|
+
type: StringConstructor;
|
|
41
|
+
required: true;
|
|
42
|
+
};
|
|
43
|
+
label: {
|
|
44
|
+
type: StringConstructor;
|
|
45
|
+
required: true;
|
|
46
|
+
};
|
|
47
|
+
value: {
|
|
48
|
+
type: PropType<BentoListboxSelectedValue>;
|
|
49
|
+
default: any;
|
|
50
|
+
};
|
|
51
|
+
}>>, {
|
|
52
|
+
value: BentoListboxSelectedValue;
|
|
53
|
+
options: BentoSelectTagFilterOptions;
|
|
54
|
+
}>;
|
|
55
|
+
export default _default;
|
|
@@ -1,19 +1,46 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BentoAvatarListboxOptions } from '@/components/dropdown/components/variants/dropdown-avatar/dropdown-avatar.types';
|
|
2
|
+
import { BentoListboxIsOptionDisabled, BentoListboxOptions, BentoListboxSelectedValue, OmitStrict } from '@/types';
|
|
3
|
+
import { BentoCountryListboxOptions } from '@/components/dropdown/components/variants/dropdown-country/dropdown-country.types';
|
|
4
|
+
import { BentoTagListboxOptions } from '@/components/dropdown/components/variants/dropdown-tag/dropdown-tag.types';
|
|
5
|
+
import { BentoCountryVariant } from '@/components/country';
|
|
6
|
+
import { BentoCurrencyListboxOptions } from '@/components/dropdown/components/variants/dropdown-currency/dropdown-currency.types';
|
|
7
|
+
import { BentoPaymentMethodListboxOptions } from '@/components/dropdown/components/variants/dropdown-payment-method/dropdown-payment-method.types';
|
|
2
8
|
export interface BentoSelectFilterOptions {
|
|
3
9
|
listboxItems: BentoListboxOptions;
|
|
4
10
|
multiple?: boolean;
|
|
5
11
|
isOptionDisabled?: BentoListboxIsOptionDisabled;
|
|
6
12
|
}
|
|
7
|
-
export type
|
|
13
|
+
export type BentoSelectAvatarFilterOptions = OmitStrict<BentoSelectFilterOptions, 'listboxItems'> & {
|
|
14
|
+
listboxItems: BentoAvatarListboxOptions;
|
|
15
|
+
};
|
|
16
|
+
export type BentoSelectCountryFilterOptions = OmitStrict<BentoSelectFilterOptions, 'listboxItems'> & {
|
|
17
|
+
listboxItems: BentoCountryListboxOptions;
|
|
18
|
+
variant: BentoCountryVariant;
|
|
19
|
+
};
|
|
20
|
+
export type BentoSelectCurrencyFilterOptions = OmitStrict<BentoSelectFilterOptions, 'listboxItems'> & {
|
|
21
|
+
listboxItems: BentoCurrencyListboxOptions;
|
|
22
|
+
};
|
|
23
|
+
export type BentoSelectTagFilterOptions = OmitStrict<BentoSelectFilterOptions, 'listboxItems'> & {
|
|
24
|
+
listboxItems: BentoTagListboxOptions;
|
|
25
|
+
};
|
|
26
|
+
export type BentoSelectPaymentMethodFilterOptions = OmitStrict<BentoSelectFilterOptions, 'listboxItems'> & {
|
|
27
|
+
listboxItems: BentoPaymentMethodListboxOptions;
|
|
28
|
+
};
|
|
29
|
+
export type BentoInputFilterValue = string | null;
|
|
8
30
|
export type BentoSelectFilterValue = BentoListboxSelectedValue;
|
|
9
31
|
export type BentoBooleanFilterValue = string | null;
|
|
10
|
-
export type BentoFilterBarValue =
|
|
11
|
-
export type BentoFilterOptions = BentoSelectFilterOptions | undefined;
|
|
32
|
+
export type BentoFilterBarValue = BentoInputFilterValue | BentoSelectFilterValue | BentoBooleanFilterValue;
|
|
33
|
+
export type BentoFilterOptions = BentoSelectFilterOptions | BentoSelectAvatarFilterOptions | BentoSelectCountryFilterOptions | BentoSelectCurrencyFilterOptions | BentoSelectPaymentMethodFilterOptions | BentoSelectTagFilterOptions | undefined;
|
|
12
34
|
export declare enum BentoFilterItemType {
|
|
13
|
-
|
|
14
|
-
SELECT = "BentoSelectFilter",
|
|
35
|
+
INPUT = "BentoInputFilter",
|
|
15
36
|
BOOLEAN = "BentoBooleanFilter",
|
|
16
|
-
RANGE = "BentoRangeFilter"
|
|
37
|
+
RANGE = "BentoRangeFilter",
|
|
38
|
+
SELECT = "BentoSelectFilter",
|
|
39
|
+
SELECT_AVATAR = "BentoSelectAvatarFilter",
|
|
40
|
+
SELECT_COUNTRY = "BentoSelectCountryFilter",
|
|
41
|
+
SELECT_CURRENCY = "BentoSelectCurrencyFilter",
|
|
42
|
+
SELECT_PAYMENT_METHOD = "BentoSelectPaymentMethodFilter",
|
|
43
|
+
SELECT_TAG = "BentoSelectTagFilter"
|
|
17
44
|
}
|
|
18
45
|
export interface BentoFilterModel {
|
|
19
46
|
field: string;
|
|
@@ -4,7 +4,7 @@ import { BentoButtonVariant } from '@/components/button';
|
|
|
4
4
|
declare const _default: import("vue").DefineComponent<{
|
|
5
5
|
searchTerm: {
|
|
6
6
|
type: StringConstructor;
|
|
7
|
-
default:
|
|
7
|
+
default: any;
|
|
8
8
|
};
|
|
9
9
|
value: {
|
|
10
10
|
type: PropType<BentoFilterBarModel>;
|
|
@@ -12,6 +12,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
12
12
|
};
|
|
13
13
|
}, {
|
|
14
14
|
isClearAllVisible: import("vue").ComputedRef<boolean>;
|
|
15
|
+
isSearchBarEnabled: import("vue").ComputedRef<boolean>;
|
|
15
16
|
searchBarAriaLabel: string;
|
|
16
17
|
BentoButtonVariant: typeof BentoButtonVariant;
|
|
17
18
|
updateFilterHandler: (updatedFilter: BentoFilterModel) => void;
|
|
@@ -21,7 +22,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
21
22
|
}, {}, {}, {}, 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
23
|
searchTerm: {
|
|
23
24
|
type: StringConstructor;
|
|
24
|
-
default:
|
|
25
|
+
default: any;
|
|
25
26
|
};
|
|
26
27
|
value: {
|
|
27
28
|
type: PropType<BentoFilterBarModel>;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { BentoTypographyElement } from '@/components/typography';
|
|
3
|
+
import { BentoListboxIsOptionDisabled, BentoListboxOptions, BentoListboxValue } from '@/types';
|
|
4
|
+
declare const _default: import("vue").DefineComponent<{
|
|
5
|
+
isOptionDisabled: {
|
|
6
|
+
type: PropType<BentoListboxIsOptionDisabled>;
|
|
7
|
+
default: () => false;
|
|
8
|
+
};
|
|
9
|
+
items: {
|
|
10
|
+
type: PropType<BentoListboxOptions>;
|
|
11
|
+
required: true;
|
|
12
|
+
};
|
|
13
|
+
selectedItemsList: {
|
|
14
|
+
type: PropType<BentoListboxValue[]>;
|
|
15
|
+
default: () => any[];
|
|
16
|
+
};
|
|
17
|
+
}, {
|
|
18
|
+
toggleCheckboxSelection: (value: BentoListboxValue) => void;
|
|
19
|
+
BentoTypographyElement: typeof BentoTypographyElement;
|
|
20
|
+
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, ("select" | "toggle-checkbox-selection")[], string, Readonly<import("vue").ExtractPropTypes<{
|
|
21
|
+
isOptionDisabled: {
|
|
22
|
+
type: PropType<BentoListboxIsOptionDisabled>;
|
|
23
|
+
default: () => false;
|
|
24
|
+
};
|
|
25
|
+
items: {
|
|
26
|
+
type: PropType<BentoListboxOptions>;
|
|
27
|
+
required: true;
|
|
28
|
+
};
|
|
29
|
+
selectedItemsList: {
|
|
30
|
+
type: PropType<BentoListboxValue[]>;
|
|
31
|
+
default: () => any[];
|
|
32
|
+
};
|
|
33
|
+
}>>, {
|
|
34
|
+
isOptionDisabled: BentoListboxIsOptionDisabled;
|
|
35
|
+
selectedItemsList: BentoListboxValue[];
|
|
36
|
+
}>;
|
|
37
|
+
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import { BentoTypographyElement } from '@/components/typography';
|
|
3
|
-
import { BentoListboxIsOptionDisabled, BentoListboxOptions, BentoListboxSelectedValue, BentoListboxValue } from '@/types';
|
|
3
|
+
import { BentoListboxIsOptionDisabled, BentoListboxOptionItem, BentoListboxOptions, BentoListboxSelectedValue, BentoListboxValue } from '@/types';
|
|
4
4
|
declare const _default: import("vue").DefineComponent<{
|
|
5
5
|
isOptionDisabled: {
|
|
6
6
|
type: PropType<BentoListboxIsOptionDisabled>;
|
|
@@ -20,9 +20,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
20
20
|
};
|
|
21
21
|
}, {
|
|
22
22
|
isAllSelected: import("vue").ComputedRef<boolean>;
|
|
23
|
+
isAllItemsIncludingDisabled: import("vue").ComputedRef<boolean>;
|
|
24
|
+
isAnOptionSelected: import("vue").ComputedRef<boolean>;
|
|
23
25
|
isIndeterminate: import("vue").ComputedRef<boolean>;
|
|
24
26
|
selectedItemsList: import("vue").Ref<BentoListboxValue[]>;
|
|
25
27
|
selectAllCheckboxText: import("vue").ComputedRef<import("vue-i18n").default.TranslateResult>;
|
|
28
|
+
selectedOptions: import("vue").ComputedRef<BentoListboxOptionItem[]>;
|
|
26
29
|
BentoTypographyElement: typeof BentoTypographyElement;
|
|
27
30
|
toggleCheckboxSelection: (value: BentoListboxValue) => void;
|
|
28
31
|
toggleSelectAll: (selectedValue: boolean) => void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import type { BentoListboxOptionItem } from '@/types';
|
|
3
|
-
import { BentoTagVariant } from '
|
|
4
|
-
import { BentoTypographyElement } from '
|
|
3
|
+
import { BentoTagVariant } from '@/components/tag';
|
|
4
|
+
import { BentoTypographyElement } from '@/components/typography';
|
|
5
5
|
declare const _default: import("vue").DefineComponent<{
|
|
6
6
|
option: {
|
|
7
7
|
type: PropType<BentoListboxOptionItem>;
|
|
@@ -10,7 +10,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
10
10
|
}, {
|
|
11
11
|
variant: import("vue").ComputedRef<BentoTagVariant>;
|
|
12
12
|
BentoTypographyElement: typeof BentoTypographyElement;
|
|
13
|
-
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
13
|
+
}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
14
14
|
option: {
|
|
15
15
|
type: PropType<BentoListboxOptionItem>;
|
|
16
16
|
required: true;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import { BentoListboxIsOptionDisabled, BentoListboxOptions, BentoListboxSelectedValue } from '@/types';
|
|
3
|
+
import { BentoTypographyElement } from '@/components/typography';
|
|
3
4
|
declare const _default: import("vue").DefineComponent<{
|
|
4
5
|
ariaLabel: {
|
|
5
6
|
type: StringConstructor;
|
|
@@ -30,7 +31,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
30
31
|
default: any;
|
|
31
32
|
};
|
|
32
33
|
}, {
|
|
34
|
+
isSearchResultEmpty: import("vue").ComputedRef<boolean>;
|
|
33
35
|
onOptionSelected: (selectedValue: BentoListboxSelectedValue) => void;
|
|
36
|
+
BentoTypographyElement: typeof BentoTypographyElement;
|
|
34
37
|
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, "select"[], string, Readonly<import("vue").ExtractPropTypes<{
|
|
35
38
|
ariaLabel: {
|
|
36
39
|
type: StringConstructor;
|
|
@@ -6,16 +6,18 @@ export interface Props extends RouterLinkProps, AnchorHTMLAttributes {
|
|
|
6
6
|
variant?: BentoLinkVariant;
|
|
7
7
|
}
|
|
8
8
|
import { BentoLinkVariant } from './link.types';
|
|
9
|
-
import type { RouterLinkProps } from 'vue-router/types/router';
|
|
9
|
+
import type { RouterLinkProps, RouterLinkSlotArgument } from 'vue-router/types/router';
|
|
10
10
|
import type { AnchorHTMLAttributes } from 'vue/types/jsx';
|
|
11
11
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
12
12
|
variant: BentoLinkVariant;
|
|
13
|
-
}>, {}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {
|
|
13
|
+
}>, {}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {
|
|
14
|
+
click: (clickEvent: MouseEvent) => void;
|
|
15
|
+
}, string, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
14
16
|
variant: BentoLinkVariant;
|
|
15
17
|
}>>>, {
|
|
16
18
|
variant: BentoLinkVariant;
|
|
17
19
|
}>, {
|
|
18
|
-
default: (_:
|
|
20
|
+
default: (_: RouterLinkSlotArgument) => any;
|
|
19
21
|
}>;
|
|
20
22
|
export default _default;
|
|
21
23
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
-
import { BentoTypographyElement } from '
|
|
2
|
+
import { BentoTypographyElement } from '@/components/typography';
|
|
3
3
|
import { BentoPaymentMethodType } from './payment-method.types';
|
|
4
4
|
declare const _default: import("vue").DefineComponent<{
|
|
5
5
|
type: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { VueNodeElement } from '
|
|
1
|
+
import type { VueNodeElement } from '@/types';
|
|
2
2
|
import { ExtendedModifiers, FallbackPositionProp, PopperContainerArrowProp } from './popper-container.types';
|
|
3
3
|
export declare const getArrowModifier: (arrow: VueNodeElement, arrowProps: PopperContainerArrowProp) => {
|
|
4
4
|
name: string;
|
|
@@ -12,7 +12,6 @@ import {
|
|
|
12
12
|
|
|
13
13
|
// Bento
|
|
14
14
|
BentoAlert,
|
|
15
|
-
BentoAvatar,
|
|
16
15
|
BentoButton,
|
|
17
16
|
BentoButtonActions,
|
|
18
17
|
BentoButtonGroup,
|
|
@@ -62,7 +61,6 @@ declare module 'vue' {
|
|
|
62
61
|
|
|
63
62
|
// Bento
|
|
64
63
|
BentoAlert: typeof BentoAlert;
|
|
65
|
-
BentoAvatar: typeof BentoAvatar;
|
|
66
64
|
BentoButton: typeof BentoButton;
|
|
67
65
|
BentoButtonGroup: typeof BentoButtonGroup;
|
|
68
66
|
BentoButtonActions: typeof BentoButtonActions;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { ComputedRef
|
|
2
|
-
import type { Fn } from '
|
|
3
|
-
import {
|
|
4
|
-
export declare const useCheckboxSelectAll: (selectedItemsList:
|
|
1
|
+
import type { ComputedRef } from 'vue';
|
|
2
|
+
import type { BentoListboxMultiSelectValue, Fn } from '@/types';
|
|
3
|
+
import { BentoListboxOptions } from '@/types';
|
|
4
|
+
export declare const useCheckboxSelectAll: (selectedItemsList: ComputedRef<BentoListboxMultiSelectValue>, items: ComputedRef<BentoListboxOptions>, selectAll: Fn, unselectAll: Fn) => {
|
|
5
5
|
isAllSelected: ComputedRef<boolean>;
|
|
6
6
|
isIndeterminate: ComputedRef<boolean>;
|
|
7
7
|
toggleSelectAll: (selectedValue: boolean) => void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { MaybeRef } from '
|
|
1
|
+
import { MaybeRef } from '@/types';
|
|
2
2
|
export declare const useDynamicIconImport: (packageName: string, suffixSvgSrc: MaybeRef<string>, fallBackSrc: string) => import("vue").Ref<string>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { MaybeElementRef } from '
|
|
1
|
+
import type { MaybeElementRef } from '@/types';
|
|
2
2
|
import type { OnClickOutsideHandler, OnClickOutsideOptions } from './types';
|
|
3
3
|
export declare function onClickOutside<T extends OnClickOutsideOptions>(target: MaybeElementRef, handler: OnClickOutsideHandler, options?: T): () => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Fn, MaybeComputedRef } from '
|
|
1
|
+
import type { Fn, MaybeComputedRef } from '@/types';
|
|
2
2
|
import type { Arrayable, GeneralEventListener } from './types';
|
|
3
3
|
export declare function useEventListener<E extends keyof WindowEventMap>(event: Arrayable<E>, listener: Arrayable<(this: Window, ev: WindowEventMap[E]) => unknown>, options?: MaybeComputedRef<boolean | AddEventListenerOptions>): Fn;
|
|
4
4
|
export declare function useEventListener<E extends keyof WindowEventMap>(target: Window, event: Arrayable<E>, listener: Arrayable<(this: Window, ev: WindowEventMap[E]) => unknown>, options?: MaybeComputedRef<boolean | AddEventListenerOptions>): Fn;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { MaybeComputedElementRef, MaybeElement } from '
|
|
1
|
+
import type { MaybeComputedElementRef, MaybeElement } from '@/types';
|
|
2
2
|
export declare const defaultWindow: Window & typeof globalThis;
|
|
3
3
|
export declare const isIOS: boolean;
|
|
4
4
|
export declare function resolveUnref<T>(r: any): T;
|