@adyen/bento-vue2 0.1.5 → 0.3.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.
Files changed (97) hide show
  1. package/dist/@types/components/button/button.vue.d.ts +4 -1
  2. package/dist/@types/components/checkbox/checkbox.vue.d.ts +2 -2
  3. package/dist/@types/components/country/country.types.d.ts +2 -1
  4. package/dist/@types/components/country/country.vue.d.ts +10 -1
  5. package/dist/@types/components/country/index.d.ts +1 -0
  6. package/dist/@types/components/data-grid/composables/useCalculateColumnWidth/useCalculateColumnWidth.d.ts +1 -0
  7. package/dist/@types/components/data-grid/data-grid.types.d.ts +15 -0
  8. package/dist/@types/components/data-grid/data-grid.vue.d.ts +26 -2
  9. package/dist/@types/components/date/date.types.d.ts +4 -4
  10. package/dist/@types/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.types.d.ts +4 -0
  11. package/dist/@types/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.vue.d.ts +31 -3
  12. package/dist/@types/components/dropdown/components/dropdown-default-textbox/dropdown-default-textbox.vue.d.ts +28 -0
  13. package/dist/@types/components/dropdown/components/dropdown-options-container/dropdown-options-container.vue.d.ts +13 -13
  14. package/dist/@types/components/dropdown/components/variants/dropdown-avatar/dropdown-avatar.types.d.ts +5 -0
  15. package/dist/@types/components/dropdown/components/variants/dropdown-avatar/dropdown-avatar.vue.d.ts +123 -0
  16. package/dist/@types/components/dropdown/components/variants/dropdown-country/composables/useCountryItems.d.ts +5 -0
  17. package/dist/@types/components/dropdown/components/variants/dropdown-country/dropdown-country.types.d.ts +7 -0
  18. package/dist/@types/components/dropdown/components/variants/dropdown-country/dropdown-country.vue.d.ts +132 -0
  19. package/dist/@types/components/dropdown/components/variants/dropdown-currency/dropdown-currency.types.d.ts +6 -0
  20. package/dist/@types/components/dropdown/components/variants/dropdown-currency/dropdown-currency.vue.d.ts +118 -0
  21. package/dist/@types/components/dropdown/components/variants/dropdown-payment-method/dropdown-payment-method.types.d.ts +6 -0
  22. package/dist/@types/components/dropdown/components/variants/dropdown-payment-method/dropdown-payment-method.vue.d.ts +118 -0
  23. package/dist/@types/components/dropdown/components/variants/dropdown-tag/dropdown-tag.types.d.ts +6 -0
  24. package/dist/@types/components/dropdown/components/variants/dropdown-tag/dropdown-tag.vue.d.ts +123 -0
  25. package/dist/@types/components/dropdown/dropdown.vue.d.ts +22 -12
  26. package/dist/@types/components/dropdown/index.d.ts +4 -1
  27. package/dist/@types/components/filter-bar/components/base-filter/base-filter.vue.d.ts +64 -15
  28. package/dist/@types/components/filter-bar/components/base-filter/composables/use-base-filter.d.ts +6 -0
  29. package/dist/@types/components/filter-bar/components/base-filter/index.d.ts +1 -0
  30. package/dist/@types/components/filter-bar/components/boolean-filter/boolean-filter.vue.d.ts +43 -0
  31. package/dist/@types/components/filter-bar/components/boolean-filter/index.d.ts +1 -0
  32. package/dist/@types/components/filter-bar/components/range-filter/range-filter.vue.d.ts +42 -0
  33. package/dist/@types/components/filter-bar/components/select-filter/index.d.ts +1 -0
  34. package/dist/@types/components/filter-bar/components/select-filter/select-filter.vue.d.ts +55 -0
  35. package/dist/@types/components/filter-bar/components/text-filter/text-filter.vue.d.ts +4 -5
  36. package/dist/@types/components/filter-bar/filter-bar.types.d.ts +15 -4
  37. package/dist/@types/components/filter-bar/filter-bar.vue.d.ts +14 -3
  38. package/dist/@types/components/info-icon/index.d.ts +1 -0
  39. package/dist/@types/components/info-icon/info-icon.vue.d.ts +12 -0
  40. package/dist/@types/components/input-field/input-field.types.d.ts +2 -1
  41. package/dist/@types/components/input-field/input-field.vue.d.ts +1 -0
  42. package/dist/@types/components/internal/index.d.ts +1 -0
  43. package/dist/@types/components/internal/listbox/components/listbox-multi-select/index.d.ts +1 -0
  44. 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} +22 -13
  45. package/dist/@types/components/internal/listbox/components/listbox-option/index.d.ts +1 -0
  46. 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
  47. package/dist/@types/components/internal/listbox/components/listbox-option-tag/index.d.ts +1 -0
  48. package/dist/@types/components/internal/listbox/components/listbox-option-tag/listbox-option-tag.vue.d.ts +19 -0
  49. package/dist/@types/components/internal/listbox/components/listbox-single-select-option/index.d.ts +1 -0
  50. 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
  51. package/dist/@types/components/internal/listbox/index.d.ts +2 -0
  52. package/dist/@types/components/internal/listbox/listbox.vue.d.ts +70 -0
  53. package/dist/@types/components/page-header/components/title-item/title-item.vue.d.ts +11 -1
  54. package/dist/@types/components/page-header/page-header.vue.d.ts +11 -1
  55. package/dist/@types/components/pagination/components/pagination-context/pagination-context.vue.d.ts +2 -2
  56. package/dist/@types/components/payment-method/composables/index.d.ts +1 -0
  57. package/dist/@types/components/payment-method/composables/usePaymentIcon.d.ts +3 -0
  58. package/dist/@types/components/payment-method/index.d.ts +2 -0
  59. package/dist/@types/components/payment-method/payment-method.types.d.ts +1079 -0
  60. package/dist/@types/components/payment-method/payment-method.vue.d.ts +28 -0
  61. package/dist/@types/components/popover/popover.vue.d.ts +1 -1
  62. package/dist/@types/components/radio-group/components/radio-button/radio-button.vue.d.ts +2 -3
  63. package/dist/@types/components/radio-group/radio-group.vue.d.ts +9 -0
  64. package/dist/@types/components/search-bar/search-bar.vue.d.ts +3 -2
  65. package/dist/@types/components/tabs/components/tab.types.d.ts +5 -0
  66. package/dist/@types/components/tabs/components/tab.vue.d.ts +3 -37
  67. package/dist/@types/components/tabs/index.d.ts +2 -3
  68. package/dist/@types/components/tabs/tabs.keys.d.ts +2 -1
  69. package/dist/@types/components/tabs/tabs.types.d.ts +4 -9
  70. package/dist/@types/components/tabs/tabs.utils.d.ts +3 -0
  71. package/dist/@types/components/tabs/tabs.vue.d.ts +13 -16
  72. package/dist/@types/components/toast/components/toast-item/index.d.ts +2 -0
  73. package/dist/@types/components/toast/components/toast-item/toast-item.types.d.ts +9 -0
  74. package/dist/@types/components/toast/components/toast-item/toast-item.vue.d.ts +33 -0
  75. package/dist/@types/components/toast/index.d.ts +2 -0
  76. package/dist/@types/components/toast/toast.vue.d.ts +13 -0
  77. package/dist/@types/components/toggle/toggle.vue.d.ts +2 -2
  78. package/dist/@types/components.d.ts +16 -0
  79. package/dist/@types/composables/index.d.ts +1 -0
  80. package/dist/@types/composables/use-checkbox-select-all/use-checkbox-select-all.d.ts +2 -2
  81. package/dist/@types/composables/use-default-slot-validator.d.ts +1 -0
  82. package/dist/@types/composables/useDynamicImport.d.ts +2 -0
  83. package/dist/@types/index.d.ts +4 -0
  84. package/dist/@types/install.d.ts +1 -0
  85. package/dist/@types/plugins/toastController.d.ts +12 -0
  86. package/dist/@types/types/index.d.ts +2 -0
  87. package/dist/@types/types/listbox.d.ts +11 -0
  88. package/dist/@types/types/omit-strict.d.ts +1 -0
  89. package/dist/@types/utils/ts/toastController.d.ts +3 -0
  90. package/dist/@types/utils/ts/use-slot-text.d.ts +2 -0
  91. package/dist/index.js +5940 -4828
  92. package/dist/index.js.map +1 -1
  93. package/package.json +4 -3
  94. package/dist/@types/components/dropdown/components/dropdown-options-container/components/dropdown-multi-select/index.d.ts +0 -1
  95. package/dist/@types/components/dropdown/components/dropdown-options-container/components/dropdown-option/index.d.ts +0 -1
  96. package/dist/@types/components/dropdown/components/dropdown-options-container/components/dropdown-single-select-option/index.d.ts +0 -1
  97. package/dist/@types/components/dropdown/dropdown.types.d.ts +0 -10
@@ -1,8 +1,16 @@
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
- deafault: boolean;
9
+ default: boolean;
10
+ };
11
+ disableClearButton: {
12
+ type: BooleanConstructor;
13
+ default: boolean;
6
14
  };
7
15
  field: {
8
16
  type: StringConstructor;
@@ -12,16 +20,30 @@ 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
- type: StringConstructor;
24
+ type: (StringConstructor | {
25
+ (arrayLength: number): string[];
26
+ (...items: string[]): string[];
27
+ new (arrayLength: number): string[];
28
+ new (...items: string[]): string[];
29
+ isArray(arg: any): arg is any[];
30
+ readonly prototype: any[];
31
+ from<T>(arrayLike: ArrayLike<T>): T[];
32
+ from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
33
+ from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
34
+ from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
35
+ of<T_4>(...items: T_4[]): T_4[];
36
+ readonly [Symbol.species]: ArrayConstructor;
37
+ })[];
21
38
  default: any;
22
39
  };
23
40
  }, {
24
- activeAppliedFilterCount: import("vue").ComputedRef<number>;
41
+ actions: import("vue").ComputedRef<{
42
+ title: string;
43
+ event: () => void;
44
+ disabled: boolean;
45
+ }[]>;
46
+ isFilterOpen: import("vue").Ref<boolean>;
25
47
  BentoPopoverPositions: {
26
48
  AUTO: import("../../../popper-container").PopperContainerPositionExtended.AUTO;
27
49
  AUTO_START: import("../../../popper-container").PopperContainerPositionExtended.AUTO_START;
@@ -49,12 +71,28 @@ declare const _default: import("vue").DefineComponent<{
49
71
  onClickApply: () => void;
50
72
  onClickClear: () => void;
51
73
  onClickOutside: () => void;
74
+ closePopover: () => void;
52
75
  filterButtonRef: any;
53
76
  BentoButtonVariant: typeof BentoButtonVariant;
54
- }, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, ("open" | "clear" | "close" | "dismiss" | "apply")[], string, Readonly<import("vue").ExtractPropTypes<{
77
+ BentoButtonActionsLayout: {
78
+ BUTTONS_START: import("@/components/button").BentoButtonActionsLayoutExtended.BUTTONS_START;
79
+ BUTTONS_END: import("@/components/button").BentoButtonActionsLayoutBasic.BUTTONS_END;
80
+ FILL_CONTAINER: import("@/components/button").BentoButtonActionsLayoutBasic.FILL_CONTAINER;
81
+ SPACE_BETWEEN: import("@/components/button").BentoButtonActionsLayoutBasic.SPACE_BETWEEN;
82
+ VERTICAL_STACK: import("@/components/button").BentoButtonActionsLayoutBasic.VERTICAL_STACK;
83
+ };
84
+ }, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, ("open" | "clear" | "close" | "apply")[], string, Readonly<import("vue").ExtractPropTypes<{
85
+ appliedFiltersCount: {
86
+ type: NumberConstructor;
87
+ default: any;
88
+ };
55
89
  disableApplyButton: {
56
90
  type: BooleanConstructor;
57
- deafault: boolean;
91
+ default: boolean;
92
+ };
93
+ disableClearButton: {
94
+ type: BooleanConstructor;
95
+ default: boolean;
58
96
  };
59
97
  field: {
60
98
  type: StringConstructor;
@@ -64,16 +102,27 @@ declare const _default: import("vue").DefineComponent<{
64
102
  type: StringConstructor;
65
103
  required: true;
66
104
  };
67
- isOpen: {
68
- type: BooleanConstructor;
69
- required: true;
70
- };
71
105
  value: {
72
- type: StringConstructor;
106
+ type: (StringConstructor | {
107
+ (arrayLength: number): string[];
108
+ (...items: string[]): string[];
109
+ new (arrayLength: number): string[];
110
+ new (...items: string[]): string[];
111
+ isArray(arg: any): arg is any[];
112
+ readonly prototype: any[];
113
+ from<T>(arrayLike: ArrayLike<T>): T[];
114
+ from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
115
+ from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
116
+ from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
117
+ of<T_4>(...items: T_4[]): T_4[];
118
+ readonly [Symbol.species]: ArrayConstructor;
119
+ })[];
73
120
  default: any;
74
121
  };
75
122
  }>>, {
76
- value: string;
123
+ value: string | string[];
124
+ appliedFiltersCount: number;
77
125
  disableApplyButton: boolean;
126
+ disableClearButton: boolean;
78
127
  }>;
79
128
  export default _default;
@@ -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
+ };
@@ -1 +1,2 @@
1
1
  export { default as BentoBaseFilter } from './base-filter.vue';
2
+ export * from './composables/use-base-filter';
@@ -0,0 +1,43 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ field: {
3
+ type: StringConstructor;
4
+ required: true;
5
+ };
6
+ label: {
7
+ type: StringConstructor;
8
+ required: true;
9
+ };
10
+ value: {
11
+ type: StringConstructor;
12
+ default: any;
13
+ };
14
+ }, {
15
+ items: import("vue").Ref<{
16
+ value: string;
17
+ label: string;
18
+ }[]>;
19
+ appliedFiltersCount: import("vue").ComputedRef<number>;
20
+ internalFilterValue: import("vue").Ref<string>;
21
+ isApplyButtonDisabled: import("vue").ComputedRef<boolean>;
22
+ isClearButtonDisabled: import("vue").ComputedRef<boolean>;
23
+ onInput: (event: any) => void;
24
+ updateFilter: () => void;
25
+ clearFilter: () => void;
26
+ openFilter: () => void;
27
+ }, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, "update"[], string, Readonly<import("vue").ExtractPropTypes<{
28
+ field: {
29
+ type: StringConstructor;
30
+ required: true;
31
+ };
32
+ label: {
33
+ type: StringConstructor;
34
+ required: true;
35
+ };
36
+ value: {
37
+ type: StringConstructor;
38
+ default: any;
39
+ };
40
+ }>>, {
41
+ value: string;
42
+ }>;
43
+ export default _default;
@@ -0,0 +1 @@
1
+ export { default as BentoBooleanFilter } from './boolean-filter.vue';
@@ -0,0 +1,42 @@
1
+ import { PropType } from 'vue';
2
+ import { BentoInputFieldType } from '@/components/input-field';
3
+ declare const _default: import("vue").DefineComponent<{
4
+ field: {
5
+ type: StringConstructor;
6
+ required: true;
7
+ };
8
+ label: {
9
+ type: StringConstructor;
10
+ required: true;
11
+ };
12
+ value: {
13
+ type: PropType<string[]>;
14
+ required: true;
15
+ };
16
+ }, {
17
+ BentoInputFieldType: typeof BentoInputFieldType;
18
+ inputTextRef: any;
19
+ appliedFiltersCount: import("vue").ComputedRef<number>;
20
+ internalFilterValue: import("vue").Ref<string[]>;
21
+ isApplyButtonDisabled: import("vue").ComputedRef<boolean>;
22
+ isClearButtonDisabled: import("vue").ComputedRef<boolean>;
23
+ updateFrom: (newValue: any) => void;
24
+ updateTo: (newValue: any) => void;
25
+ updateFilter: () => void;
26
+ clearFilter: () => void;
27
+ openFilter: () => void;
28
+ }, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, "update"[], string, Readonly<import("vue").ExtractPropTypes<{
29
+ field: {
30
+ type: StringConstructor;
31
+ required: true;
32
+ };
33
+ label: {
34
+ type: StringConstructor;
35
+ required: true;
36
+ };
37
+ value: {
38
+ type: PropType<string[]>;
39
+ required: true;
40
+ };
41
+ }>>, {}>;
42
+ export default _default;
@@ -0,0 +1 @@
1
+ export { default as BentoSelectFilter } from './select-filter.vue';
@@ -0,0 +1,55 @@
1
+ import { PropType } from 'vue';
2
+ import { BentoListboxOptionItem, BentoListboxSelectedValue } from '@/types';
3
+ import { BentoSelectFilterOptions } 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<BentoSelectFilterOptions>;
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<BentoListboxOptionItem[]>;
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
+ searchTerm: import("vue").Ref<string>;
29
+ clearFilter: () => void;
30
+ closeFilter: () => void;
31
+ onOptionSelected: (selectedValue: BentoListboxSelectedValue) => void;
32
+ openFilter: () => void;
33
+ updateFilter: () => void;
34
+ }, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, "update"[], string, Readonly<import("vue").ExtractPropTypes<{
35
+ field: {
36
+ type: StringConstructor;
37
+ required: true;
38
+ };
39
+ label: {
40
+ type: StringConstructor;
41
+ required: true;
42
+ };
43
+ options: {
44
+ type: PropType<BentoSelectFilterOptions>;
45
+ default: any;
46
+ };
47
+ value: {
48
+ type: PropType<BentoListboxSelectedValue>;
49
+ default: any;
50
+ };
51
+ }>>, {
52
+ value: BentoListboxSelectedValue;
53
+ options: BentoSelectFilterOptions;
54
+ }>;
55
+ export default _default;
@@ -12,16 +12,15 @@ declare const _default: import("vue").DefineComponent<{
12
12
  default: any;
13
13
  };
14
14
  }, {
15
- internalValue: import("vue").Ref<string>;
16
- isFilterOpen: import("vue").Ref<boolean>;
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
- closeFilter: () => void;
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,25 @@
1
- export interface BentoFilterOptions {
2
- values: Array<unknown>;
1
+ import { BentoListboxIsOptionDisabled, BentoListboxOptions, BentoListboxSelectedValue } from '../../types';
2
+ export interface BentoSelectFilterOptions {
3
+ listboxItems: BentoListboxOptions;
4
+ multiple?: boolean;
5
+ isOptionDisabled?: BentoListboxIsOptionDisabled;
3
6
  }
7
+ export type BentoTextFilterValue = string | null;
8
+ export type BentoSelectFilterValue = BentoListboxSelectedValue;
9
+ export type BentoBooleanFilterValue = string | null;
10
+ export type BentoFilterBarValue = BentoTextFilterValue | BentoSelectFilterValue | BentoBooleanFilterValue;
11
+ export type BentoFilterOptions = BentoSelectFilterOptions | undefined;
4
12
  export declare enum BentoFilterItemType {
5
- TEXT = "BentoTextFilter"
13
+ TEXT = "BentoTextFilter",
14
+ SELECT = "BentoSelectFilter",
15
+ BOOLEAN = "BentoBooleanFilter",
16
+ RANGE = "BentoRangeFilter"
6
17
  }
7
18
  export interface BentoFilterModel {
8
19
  field: string;
9
20
  label: string;
10
21
  type: BentoFilterItemType;
11
22
  options?: BentoFilterOptions;
12
- value?: string | null;
23
+ value?: BentoFilterBarValue;
13
24
  }
14
25
  export type BentoFilterBarModel = Array<BentoFilterModel>;
@@ -2,22 +2,33 @@ import { PropType } from 'vue';
2
2
  import { BentoFilterBarModel, BentoFilterModel } from './filter-bar.types';
3
3
  import { BentoButtonVariant } from '@/components/button';
4
4
  declare const _default: import("vue").DefineComponent<{
5
+ searchTerm: {
6
+ type: StringConstructor;
7
+ default: string;
8
+ };
5
9
  value: {
6
10
  type: PropType<BentoFilterBarModel>;
7
11
  default: () => any[];
8
12
  };
9
13
  }, {
10
- isClearAllDisabled: import("vue").ComputedRef<boolean>;
14
+ isClearAllVisible: import("vue").ComputedRef<boolean>;
15
+ searchBarAriaLabel: string;
11
16
  BentoButtonVariant: typeof BentoButtonVariant;
12
- dismissFilterHandler: (dismissedFilter: BentoFilterModel) => void;
13
17
  updateFilterHandler: (updatedFilter: BentoFilterModel) => void;
14
18
  clearAllFilters: () => void;
15
- }, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, "input"[], string, Readonly<import("vue").ExtractPropTypes<{
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
+ };
16
26
  value: {
17
27
  type: PropType<BentoFilterBarModel>;
18
28
  default: () => any[];
19
29
  };
20
30
  }>>, {
21
31
  value: BentoFilterBarModel;
32
+ searchTerm: string;
22
33
  }>;
23
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;
@@ -13,5 +13,6 @@ export declare enum BentoInputFieldStateClass {
13
13
  }
14
14
  export declare enum BentoInputFieldType {
15
15
  SEARCH = "search",
16
- TEXT = "text"
16
+ TEXT = "text",
17
+ NUMBER = "number"
17
18
  }
@@ -49,6 +49,7 @@ declare const _default: import("vue").DefineComponent<{
49
49
  [x: string]: boolean;
50
50
  }>;
51
51
  inputFieldElement: any;
52
+ inputFieldId: string;
52
53
  shouldDisplayStaticValueAtStart: import("vue").ComputedRef<boolean>;
53
54
  shouldDisplayStaticValueAtEnd: import("vue").ComputedRef<boolean>;
54
55
  }, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, ("input" | "escape-pressed")[], string, Readonly<import("vue").ExtractPropTypes<{
@@ -0,0 +1 @@
1
+ export * from './listbox';
@@ -0,0 +1 @@
1
+ export { default as BentoListboxMultiSelect } from './listbox-multi-select.vue';
@@ -1,42 +1,51 @@
1
1
  import { PropType } from 'vue';
2
2
  import { BentoTypographyElement } from '@/components/typography';
3
- import type { BentoDropdownIsOptionDisabled, BentoDropdownOptions, BentoDropdownSelectedValue, BentoDropdownValue } from '../../../../dropdown.types';
3
+ import { BentoListboxIsOptionDisabled, BentoListboxOptions, BentoListboxSelectedValue, BentoListboxValue } from '@/types';
4
4
  declare const _default: import("vue").DefineComponent<{
5
5
  isOptionDisabled: {
6
- type: PropType<BentoDropdownIsOptionDisabled>;
6
+ type: PropType<BentoListboxIsOptionDisabled>;
7
7
  default: () => false;
8
8
  };
9
9
  items: {
10
- type: PropType<BentoDropdownOptions>;
10
+ type: PropType<BentoListboxOptions>;
11
11
  required: true;
12
12
  };
13
+ searching: {
14
+ type: BooleanConstructor;
15
+ default: boolean;
16
+ };
13
17
  selectedValues: {
14
- type: PropType<BentoDropdownSelectedValue>;
15
- default: BentoDropdownSelectedValue;
18
+ type: PropType<BentoListboxSelectedValue>;
19
+ default: () => BentoListboxSelectedValue;
16
20
  };
17
21
  }, {
18
22
  isAllSelected: import("vue").ComputedRef<boolean>;
19
23
  isIndeterminate: import("vue").ComputedRef<boolean>;
20
- selectedItemsList: import("vue").Ref<BentoDropdownValue[]>;
24
+ selectedItemsList: import("vue").Ref<BentoListboxValue[]>;
21
25
  selectAllCheckboxText: import("vue").ComputedRef<import("vue-i18n").default.TranslateResult>;
22
26
  BentoTypographyElement: typeof BentoTypographyElement;
23
- toggleCheckboxSelection: (value: BentoDropdownValue) => void;
27
+ toggleCheckboxSelection: (value: BentoListboxValue) => void;
24
28
  toggleSelectAll: (selectedValue: boolean) => void;
25
29
  }, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, "select"[], string, Readonly<import("vue").ExtractPropTypes<{
26
30
  isOptionDisabled: {
27
- type: PropType<BentoDropdownIsOptionDisabled>;
31
+ type: PropType<BentoListboxIsOptionDisabled>;
28
32
  default: () => false;
29
33
  };
30
34
  items: {
31
- type: PropType<BentoDropdownOptions>;
35
+ type: PropType<BentoListboxOptions>;
32
36
  required: true;
33
37
  };
38
+ searching: {
39
+ type: BooleanConstructor;
40
+ default: boolean;
41
+ };
34
42
  selectedValues: {
35
- type: PropType<BentoDropdownSelectedValue>;
36
- default: BentoDropdownSelectedValue;
43
+ type: PropType<BentoListboxSelectedValue>;
44
+ default: () => BentoListboxSelectedValue;
37
45
  };
38
46
  }>>, {
39
- isOptionDisabled: BentoDropdownIsOptionDisabled;
40
- selectedValues: BentoDropdownSelectedValue;
47
+ isOptionDisabled: BentoListboxIsOptionDisabled;
48
+ searching: boolean;
49
+ selectedValues: BentoListboxSelectedValue;
41
50
  }>;
42
51
  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-dropdown-option--disabled': boolean;
13
- 'b-dropdown-option--selected': boolean;
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 ListboxOptionTag } from './listbox-option-tag.vue';
@@ -0,0 +1,19 @@
1
+ import { PropType } from 'vue';
2
+ import type { BentoListboxOptionItem } from '@/types';
3
+ import { BentoTagVariant } from '../../../../tag';
4
+ import { BentoTypographyElement } from '../../../../typography';
5
+ declare const _default: import("vue").DefineComponent<{
6
+ option: {
7
+ type: PropType<BentoListboxOptionItem>;
8
+ required: true;
9
+ };
10
+ }, {
11
+ variant: import("vue").ComputedRef<BentoTagVariant>;
12
+ BentoTypographyElement: typeof BentoTypographyElement;
13
+ }, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
14
+ option: {
15
+ type: PropType<BentoListboxOptionItem>;
16
+ required: true;
17
+ };
18
+ }>>, {}>;
19
+ export default _default;
@@ -0,0 +1 @@
1
+ export { default as BentoListboxSingleSelectOption } from './listbox-single-select-option.vue';
@@ -1,27 +1,19 @@
1
1
  import { PropType } from 'vue';
2
2
  import { BentoTypographyElement } from '@/components/typography';
3
- import type { BentoDropdownValue } from '@/components/dropdown/dropdown.types';
3
+ import type { BentoListboxOptionItem } from '@/types';
4
4
  declare const _default: import("vue").DefineComponent<{
5
5
  disabled: {
6
6
  type: BooleanConstructor;
7
7
  default: boolean;
8
8
  };
9
- description: {
10
- type: StringConstructor;
11
- default: any;
12
- };
13
- label: {
14
- type: StringConstructor;
9
+ option: {
10
+ type: PropType<BentoListboxOptionItem>;
15
11
  required: true;
16
12
  };
17
13
  selected: {
18
14
  type: BooleanConstructor;
19
15
  default: boolean;
20
16
  };
21
- value: {
22
- type: PropType<BentoDropdownValue>;
23
- required: true;
24
- };
25
17
  }, {
26
18
  ariaDisabled: import("vue").ComputedRef<boolean>;
27
19
  ariaSelected: import("vue").ComputedRef<boolean>;
@@ -33,25 +25,16 @@ declare const _default: import("vue").DefineComponent<{
33
25
  type: BooleanConstructor;
34
26
  default: boolean;
35
27
  };
36
- description: {
37
- type: StringConstructor;
38
- default: any;
39
- };
40
- label: {
41
- type: StringConstructor;
28
+ option: {
29
+ type: PropType<BentoListboxOptionItem>;
42
30
  required: true;
43
31
  };
44
32
  selected: {
45
33
  type: BooleanConstructor;
46
34
  default: boolean;
47
35
  };
48
- value: {
49
- type: PropType<BentoDropdownValue>;
50
- required: true;
51
- };
52
36
  }>>, {
53
37
  disabled: boolean;
54
- description: string;
55
38
  selected: boolean;
56
39
  }>;
57
40
  export default _default;
@@ -0,0 +1,2 @@
1
+ export { default as BentoListbox } from './listbox.vue';
2
+ export { ListboxOptionTag } from './components/listbox-option-tag';
@@ -0,0 +1,70 @@
1
+ import { PropType } from 'vue';
2
+ import { BentoListboxIsOptionDisabled, BentoListboxOptions, BentoListboxSelectedValue } from '@/types';
3
+ declare const _default: import("vue").DefineComponent<{
4
+ ariaLabel: {
5
+ type: StringConstructor;
6
+ default: any;
7
+ };
8
+ id: {
9
+ type: StringConstructor;
10
+ required: true;
11
+ };
12
+ isOptionDisabled: {
13
+ type: PropType<BentoListboxIsOptionDisabled>;
14
+ default: any;
15
+ };
16
+ items: {
17
+ type: PropType<BentoListboxOptions>;
18
+ required: true;
19
+ };
20
+ multiple: {
21
+ type: BooleanConstructor;
22
+ default: boolean;
23
+ };
24
+ searching: {
25
+ type: BooleanConstructor;
26
+ default: boolean;
27
+ };
28
+ selectedValue: {
29
+ type: PropType<BentoListboxSelectedValue>;
30
+ default: any;
31
+ };
32
+ }, {
33
+ onOptionSelected: (selectedValue: BentoListboxSelectedValue) => void;
34
+ }, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, "select"[], string, Readonly<import("vue").ExtractPropTypes<{
35
+ ariaLabel: {
36
+ type: StringConstructor;
37
+ default: any;
38
+ };
39
+ id: {
40
+ type: StringConstructor;
41
+ required: true;
42
+ };
43
+ isOptionDisabled: {
44
+ type: PropType<BentoListboxIsOptionDisabled>;
45
+ default: any;
46
+ };
47
+ items: {
48
+ type: PropType<BentoListboxOptions>;
49
+ required: true;
50
+ };
51
+ multiple: {
52
+ type: BooleanConstructor;
53
+ default: boolean;
54
+ };
55
+ searching: {
56
+ type: BooleanConstructor;
57
+ default: boolean;
58
+ };
59
+ selectedValue: {
60
+ type: PropType<BentoListboxSelectedValue>;
61
+ default: any;
62
+ };
63
+ }>>, {
64
+ ariaLabel: string;
65
+ multiple: boolean;
66
+ isOptionDisabled: BentoListboxIsOptionDisabled;
67
+ searching: boolean;
68
+ selectedValue: BentoListboxSelectedValue;
69
+ }>;
70
+ export default _default;