@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,6 +1,7 @@
1
1
  import { PropType } from 'vue';
2
2
  import { BentoButtonVariant } from './button.types';
3
3
  import { BentoTypographyElement, BentoTypographyVariant } from '@/components/typography';
4
+ import { Booleanish } from '../../types';
4
5
  declare const _default: import("vue").DefineComponent<{
5
6
  disabled: {
6
7
  type: BooleanConstructor;
@@ -26,7 +27,9 @@ declare const _default: import("vue").DefineComponent<{
26
27
  }, {
27
28
  BentoTypographyElement: typeof BentoTypographyElement;
28
29
  BentoTypographyVariant: typeof BentoTypographyVariant;
29
- ariaLabel: import("vue").ComputedRef<string>;
30
+ ariaAttributes: import("vue").ComputedRef<{
31
+ 'aria-expanded': Booleanish;
32
+ }>;
30
33
  conditionalClasses: import("vue").ComputedRef<{
31
34
  [x: string]: boolean;
32
35
  }>;
@@ -31,8 +31,8 @@ declare const _default: import("vue").DefineComponent<{
31
31
  conditionalClassOutline: import("vue").ComputedRef<{
32
32
  'b-checkbox__outline--unchecked': boolean;
33
33
  }>;
34
- defaultSlot: import("vue").ComputedRef<string>;
35
- descriptionSlot: import("vue").ComputedRef<string>;
34
+ defaultSlotValue: string;
35
+ descriptionSlotValue: string;
36
36
  isCheckboxGroup: import("vue").ComputedRef<boolean>;
37
37
  isChecked: import("vue").ComputedRef<boolean>;
38
38
  isIndeterminate: import("vue").ComputedRef<boolean>;
@@ -2,7 +2,8 @@ export declare enum BentoCountryVariant {
2
2
  ISO = "iso",
3
3
  NAME = "name",
4
4
  PHONE_CODE = "phone_code",
5
- CAPITAL = "capital"
5
+ CAPITAL = "capital",
6
+ CUSTOM = "custom"
6
7
  }
7
8
  export declare enum BentoCountryCode {
8
9
  BD = "BD",
@@ -6,6 +6,10 @@ declare const _default: import("vue").DefineComponent<{
6
6
  type: PropType<BentoCountryCode>;
7
7
  default: BentoCountryCode;
8
8
  };
9
+ label: {
10
+ type: StringConstructor;
11
+ default: any;
12
+ };
9
13
  variant: {
10
14
  type: PropType<BentoCountryVariant>;
11
15
  default: BentoCountryVariant;
@@ -14,13 +18,17 @@ declare const _default: import("vue").DefineComponent<{
14
18
  }, {
15
19
  flagIconSrc: import("vue").Ref<string>;
16
20
  countryName: import("vue").ComputedRef<string>;
17
- label: import("vue").Ref<any>;
21
+ countryLabel: import("vue").Ref<any>;
18
22
  BentoTypographyElement: typeof BentoTypographyElement;
19
23
  }, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
20
24
  code: {
21
25
  type: PropType<BentoCountryCode>;
22
26
  default: BentoCountryCode;
23
27
  };
28
+ label: {
29
+ type: StringConstructor;
30
+ default: any;
31
+ };
24
32
  variant: {
25
33
  type: PropType<BentoCountryVariant>;
26
34
  default: BentoCountryVariant;
@@ -28,6 +36,7 @@ declare const _default: import("vue").DefineComponent<{
28
36
  };
29
37
  }>>, {
30
38
  code: BentoCountryCode;
39
+ label: string;
31
40
  variant: BentoCountryVariant;
32
41
  }>;
33
42
  export default _default;
@@ -1,2 +1,3 @@
1
1
  export { default as BentoCountry } from './country.vue';
2
2
  export * from './country.types';
3
+ export * from './composables';
@@ -13,6 +13,7 @@ export declare const useCalculateColumnWidth: (newColumns: MaybeRef<BentoColumn[
13
13
  flex?: number;
14
14
  sortable?: boolean;
15
15
  numeric?: boolean;
16
+ infoIconTooltip?: string;
16
17
  padding?: {
17
18
  left?: boolean;
18
19
  right?: boolean;
@@ -11,6 +11,7 @@ export interface BentoColumn {
11
11
  flex?: number;
12
12
  sortable?: boolean;
13
13
  numeric?: boolean;
14
+ infoIconTooltip?: string;
14
15
  padding?: {
15
16
  left?: boolean;
16
17
  right?: boolean;
@@ -49,3 +50,17 @@ export interface BentoDatagridAllItemsSelectedState {
49
50
  allItemsSelected: boolean;
50
51
  isIndeterminate: boolean;
51
52
  }
53
+ export declare enum BentoDatagridEvent {
54
+ COLUMN_RESIZE = "column-resize",
55
+ SORT = "sort",
56
+ SELECT = "select",
57
+ NAVIGATE = "navigate",
58
+ UPDATE_FILERS = "update:filters",
59
+ ITEMS_PAGE = "items-page",
60
+ UPDATE_FILTER_SEARCH_TERM = "update:filter-search-term",
61
+ FILTER_SEARCH_INPUT = "filter-search-input",
62
+ FILTER_SEARCH_CLEAR = "filter-search-clear",
63
+ COLUMNS = "columns",
64
+ UPDATE_COLUMNS = "update:columns",
65
+ ROW_CLICK = "row-click"
66
+ }
@@ -1,7 +1,11 @@
1
1
  import { PropType } from 'vue';
2
- import { BentoColumn, BentoColumnOverflow, BentoDatagridData, BentoDatagridDataItem, BentoDatagridDataItemId, BentoDatagridGetDataItemIdFn, BentoDatagridIsDataItemDisabledFn, BentoDatagridSortByColumn, BentoDatagridSortDirection } from './data-grid.types';
2
+ import { BentoColumn, BentoColumnOverflow, BentoDatagridData, BentoDatagridDataItem, BentoDatagridDataItemId, BentoDatagridEvent, BentoDatagridGetDataItemIdFn, BentoDatagridIsDataItemDisabledFn, BentoDatagridSortByColumn, BentoDatagridSortDirection } from './data-grid.types';
3
3
  import { BentoTypographyElement, BentoTypographyVariant } from '@/components/typography';
4
4
  declare const _default: import("vue").DefineComponent<{
5
+ allowRowClicks: {
6
+ type: BooleanConstructor;
7
+ default: boolean;
8
+ };
5
9
  condensed: {
6
10
  type: BooleanConstructor;
7
11
  default: boolean;
@@ -22,6 +26,10 @@ declare const _default: import("vue").DefineComponent<{
22
26
  type: PropType<import("../filter-bar").BentoFilterBarModel>;
23
27
  default: any;
24
28
  };
29
+ filterSearchTerm: {
30
+ type: StringConstructor;
31
+ default: any;
32
+ };
25
33
  getDataItemId: {
26
34
  type: PropType<BentoDatagridGetDataItemIdFn>;
27
35
  default: (item: BentoDatagridDataItem) => string;
@@ -133,6 +141,7 @@ declare const _default: import("vue").DefineComponent<{
133
141
  flex?: number;
134
142
  sortable?: boolean;
135
143
  numeric?: boolean;
144
+ infoIconTooltip?: string;
136
145
  padding?: {
137
146
  left?: boolean;
138
147
  right?: boolean;
@@ -154,6 +163,7 @@ declare const _default: import("vue").DefineComponent<{
154
163
  }>;
155
164
  conditionalRowClasses: (row: BentoDatagridDataItem) => {
156
165
  'b-data-grid__row--disabled': boolean;
166
+ 'b-data-grid__row--row-clicks-enabled': boolean;
157
167
  };
158
168
  conditionalRowCellClasses: (column: BentoColumn) => {
159
169
  [x: string]: boolean;
@@ -181,15 +191,23 @@ declare const _default: import("vue").DefineComponent<{
181
191
  onAllRowSelect: (allItemsSelected: boolean) => void;
182
192
  onRowSelect: () => void;
183
193
  DATAGRID_SELECT_FIELD_NAME: string;
194
+ onRowClick: (row: BentoDatagridDataItem, event: MouseEvent) => void;
184
195
  compactView: import("vue").Ref<boolean>;
185
196
  onConfigSettingsUpdate: (isCompactView: boolean) => boolean;
186
197
  onColumnVisibiltyChange: (columnIndexes: string[]) => void;
187
198
  BentoDatagridSortDirection: typeof BentoDatagridSortDirection;
188
199
  BentoTypographyElement: typeof BentoTypographyElement;
189
200
  BentoTypographyVariant: typeof BentoTypographyVariant;
201
+ BentoDatagridEvent: typeof BentoDatagridEvent;
190
202
  onPaginationNavigate: (page: number) => void;
191
203
  onItemsPerPageChange: (itemsPerPage: number) => void;
192
- }, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, ("sort" | "navigate" | "select" | "items-page" | "column-resize" | "update:filters")[], string, Readonly<import("vue").ExtractPropTypes<{
204
+ onSearchTermCleared: () => void;
205
+ onSearchTermInput: (newSearchTerm: any) => void;
206
+ }, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, BentoDatagridEvent[], string, Readonly<import("vue").ExtractPropTypes<{
207
+ allowRowClicks: {
208
+ type: BooleanConstructor;
209
+ default: boolean;
210
+ };
193
211
  condensed: {
194
212
  type: BooleanConstructor;
195
213
  default: boolean;
@@ -210,6 +228,10 @@ declare const _default: import("vue").DefineComponent<{
210
228
  type: PropType<import("../filter-bar").BentoFilterBarModel>;
211
229
  default: any;
212
230
  };
231
+ filterSearchTerm: {
232
+ type: StringConstructor;
233
+ default: any;
234
+ };
213
235
  getDataItemId: {
214
236
  type: PropType<BentoDatagridGetDataItemIdFn>;
215
237
  default: (item: BentoDatagridDataItem) => string;
@@ -318,7 +340,9 @@ declare const _default: import("vue").DefineComponent<{
318
340
  filters: import("../filter-bar").BentoFilterBarModel;
319
341
  hasResizableColumns: boolean;
320
342
  sortBy: BentoDatagridSortByColumn[];
343
+ allowRowClicks: boolean;
321
344
  columnPanel: boolean;
345
+ filterSearchTerm: string;
322
346
  getDataItemId: BentoDatagridGetDataItemIdFn;
323
347
  isDataItemDisabled: BentoDatagridIsDataItemDisabledFn;
324
348
  pagination: any;
@@ -6,10 +6,10 @@ export declare enum BentoDateFormat {
6
6
  EXACT_TIME_WITHOUT_PERIOD = "H:mm:ss",
7
7
  LONG_DATE = "LLLL dd, yyyy",
8
8
  SHORT_DATE = "LLL dd, yyyy",
9
- FULL_DATE_EXACT_TIME_WITH_PERIOD = "LLLL dd, yyyy, h:mm:ss aa",
10
- FULL_DATE_EXACT_TIME_WITHOUT_PERIOD = "LLLL dd, yyyy, H:mm:ss",
11
- FULL_DATE_EXACT_TIME_WITH_TIMEZONE_AND_PERIOD = "LLLL dd, yyyy, h:mm:ss aa O",
12
- FULL_DATE_EXACT_TIME_WITH_TIMEZONE_AND_WITHOUT_PERIOD = "LLLL dd, yyyy, H:mm:ss O",
9
+ FULL_DATE_EXACT_TIME_WITH_PERIOD = "LLL dd, yyyy, h:mm:ss aa",
10
+ FULL_DATE_EXACT_TIME_WITHOUT_PERIOD = "LLL dd, yyyy, H:mm:ss",
11
+ FULL_DATE_EXACT_TIME_WITH_TIMEZONE_AND_PERIOD = "LLL dd, yyyy, h:mm:ss aa O",
12
+ FULL_DATE_EXACT_TIME_WITH_TIMEZONE_AND_WITHOUT_PERIOD = "LLL dd, yyyy, H:mm:ss O",
13
13
  FULL_DATE_TIME_WITH_PERIOD = "LLL dd, yyyy, h:mm aa",
14
14
  FULL_DATE_TIME_WITH_TIMEZONE_AND_PERIOD = "LLL dd, yyyy, h:mm aa O",
15
15
  FULL_DATE_TIME_WITHOUT_PERIOD = "LLL dd, yyyy, H:mm",
@@ -46,4 +46,8 @@ export declare const DropdownBaseTextboxProps: {
46
46
  default: number;
47
47
  };
48
48
  };
49
+ export declare enum DropdownBaseTextboxState {
50
+ DISABLED = "disabled",
51
+ HAS_ITEMS = "has-items"
52
+ }
49
53
  export default DropdownBaseTextboxProps;
@@ -1,6 +1,6 @@
1
1
  import { PropType } from 'vue';
2
2
  import { BentoTypographyElement, BentoTypographyVariant } from '@/components/typography';
3
- import { Booleanish } from '@/types';
3
+ import { BentoListboxOptionItem, Booleanish } from '@/types';
4
4
  import type { HTMLAttributes } from 'vue/types/jsx';
5
5
  declare const _default: import("vue").DefineComponent<{
6
6
  additionalItemsSelected: {
@@ -51,23 +51,36 @@ declare const _default: import("vue").DefineComponent<{
51
51
  type: StringConstructor;
52
52
  default: string;
53
53
  };
54
+ selectedValueItem: {
55
+ type: PropType<BentoListboxOptionItem | BentoListboxOptionItem[]>;
56
+ default: any;
57
+ };
58
+ showSlotContentInMultiple: {
59
+ type: BooleanConstructor;
60
+ default: boolean;
61
+ };
62
+ multiple: {
63
+ type: BooleanConstructor;
64
+ default: boolean;
65
+ };
54
66
  }, {
55
67
  BentoTypographyElement: typeof BentoTypographyElement;
56
68
  BentoTypographyVariant: typeof BentoTypographyVariant;
57
69
  conditionalClasses: import("vue").ComputedRef<{
58
- 'b-dropdown-base-textbox--disabled': boolean;
70
+ [x: string]: boolean;
59
71
  }>;
60
72
  textboxId: string;
61
73
  textbox: any;
62
74
  isFiltering: import("vue").ComputedRef<boolean>;
63
75
  ariaAttributes: import("vue").ComputedRef<HTMLAttributes>;
76
+ selectedValueItems: import("vue").ComputedRef<BentoListboxOptionItem[]>;
64
77
  onCloseDropdown: () => void;
65
78
  onToggleDropdown: () => void;
66
79
  onClearSearch: () => void;
67
80
  onInputEvent: (event: Event) => void;
68
81
  onSpaceBar: () => void;
69
82
  hasSlot: (name: string) => boolean;
70
- }, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, ("input" | "open" | "clear" | "close")[], string, Readonly<import("vue").ExtractPropTypes<{
83
+ }, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, ("input" | "open" | "clear" | "close")[], string, Readonly<import("vue").ExtractPropTypes<{
71
84
  additionalItemsSelected: {
72
85
  type: NumberConstructor;
73
86
  default: number;
@@ -116,16 +129,31 @@ declare const _default: import("vue").DefineComponent<{
116
129
  type: StringConstructor;
117
130
  default: string;
118
131
  };
132
+ selectedValueItem: {
133
+ type: PropType<BentoListboxOptionItem | BentoListboxOptionItem[]>;
134
+ default: any;
135
+ };
136
+ showSlotContentInMultiple: {
137
+ type: BooleanConstructor;
138
+ default: boolean;
139
+ };
140
+ multiple: {
141
+ type: BooleanConstructor;
142
+ default: boolean;
143
+ };
119
144
  }>>, {
120
145
  open: boolean;
121
146
  value: string;
122
147
  ariaLabel: string;
123
148
  disabled: boolean;
149
+ multiple: boolean;
124
150
  debounceTime: number;
125
151
  additionalItemsSelected: number;
126
152
  ariaLabelledby: string;
127
153
  displayValue: string;
128
154
  dynamicFiltering: boolean;
129
155
  isInvalid: boolean;
156
+ selectedValueItem: BentoListboxOptionItem | BentoListboxOptionItem[];
157
+ showSlotContentInMultiple: boolean;
130
158
  }>;
131
159
  export default _default;
@@ -1,4 +1,5 @@
1
1
  import { PropType } from 'vue';
2
+ import type { BentoListboxOptionItem } from '@/types';
2
3
  import { Booleanish } from '../../../../types';
3
4
  declare const _default: import("vue").DefineComponent<{
4
5
  additionalItemsSelected: {
@@ -45,10 +46,22 @@ declare const _default: import("vue").DefineComponent<{
45
46
  type: BooleanConstructor;
46
47
  default: boolean;
47
48
  };
49
+ selectedValueItem: {
50
+ type: PropType<BentoListboxOptionItem | BentoListboxOptionItem[]>;
51
+ default: any;
52
+ };
53
+ showSlotContentInMultiple: {
54
+ type: BooleanConstructor;
55
+ default: boolean;
56
+ };
48
57
  value: {
49
58
  type: StringConstructor;
50
59
  default: string;
51
60
  };
61
+ multiple: {
62
+ type: BooleanConstructor;
63
+ default: boolean;
64
+ };
52
65
  }, {
53
66
  conditionalClasses: import("vue").ComputedRef<{
54
67
  'b-dropdown-default-textbox--error': boolean;
@@ -101,20 +114,35 @@ declare const _default: import("vue").DefineComponent<{
101
114
  type: BooleanConstructor;
102
115
  default: boolean;
103
116
  };
117
+ selectedValueItem: {
118
+ type: PropType<BentoListboxOptionItem | BentoListboxOptionItem[]>;
119
+ default: any;
120
+ };
121
+ showSlotContentInMultiple: {
122
+ type: BooleanConstructor;
123
+ default: boolean;
124
+ };
104
125
  value: {
105
126
  type: StringConstructor;
106
127
  default: string;
107
128
  };
129
+ multiple: {
130
+ type: BooleanConstructor;
131
+ default: boolean;
132
+ };
108
133
  }>>, {
109
134
  open: boolean;
110
135
  value: string;
111
136
  ariaLabel: string;
112
137
  disabled: boolean;
138
+ multiple: boolean;
113
139
  debounceTime: number;
114
140
  additionalItemsSelected: number;
115
141
  ariaLabelledby: string;
116
142
  displayValue: string;
117
143
  dynamicFiltering: boolean;
118
144
  isInvalid: boolean;
145
+ selectedValueItem: BentoListboxOptionItem | BentoListboxOptionItem[];
146
+ showSlotContentInMultiple: boolean;
119
147
  }>;
120
148
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import { PropType } from 'vue';
2
- import type { BentoDropdownIsOptionDisabled, BentoDropdownOptions, BentoDropdownSelectedValue } from '../../dropdown.types';
2
+ import { BentoListboxIsOptionDisabled, BentoListboxOptions, BentoListboxSelectedValue } from '@/types';
3
3
  declare const _default: import("vue").DefineComponent<{
4
4
  ariaLabel: {
5
5
  type: StringConstructor;
@@ -14,11 +14,11 @@ declare const _default: import("vue").DefineComponent<{
14
14
  required: true;
15
15
  };
16
16
  isOptionDisabled: {
17
- type: PropType<BentoDropdownIsOptionDisabled>;
17
+ type: PropType<BentoListboxIsOptionDisabled>;
18
18
  default: any;
19
19
  };
20
20
  items: {
21
- type: PropType<BentoDropdownOptions>;
21
+ type: PropType<BentoListboxOptions>;
22
22
  required: true;
23
23
  };
24
24
  multiple: {
@@ -30,11 +30,11 @@ declare const _default: import("vue").DefineComponent<{
30
30
  required: true;
31
31
  };
32
32
  selectedValue: {
33
- type: PropType<BentoDropdownSelectedValue>;
33
+ type: PropType<BentoListboxSelectedValue>;
34
34
  default: any;
35
35
  };
36
36
  targetElement: {
37
- type: PropType<import("../../../..").VueNodeElement>;
37
+ type: PropType<import("@/types").VueNodeElement>;
38
38
  required: true;
39
39
  };
40
40
  }, {
@@ -56,8 +56,8 @@ declare const _default: import("vue").DefineComponent<{
56
56
  BOTTOM: import("@/components/popper-container").PopperContainerPositionBasic.BOTTOM;
57
57
  LEFT: import("@/components/popper-container").PopperContainerPositionBasic.LEFT;
58
58
  };
59
- onOptionSelected: (selectedValue: BentoDropdownSelectedValue) => void;
60
- }, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, "select"[], string, Readonly<import("vue").ExtractPropTypes<{
59
+ onOptionSelected: (selectedValue: BentoListboxSelectedValue) => void;
60
+ }, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, "select"[], string, Readonly<import("vue").ExtractPropTypes<{
61
61
  ariaLabel: {
62
62
  type: StringConstructor;
63
63
  default: any;
@@ -71,11 +71,11 @@ declare const _default: import("vue").DefineComponent<{
71
71
  required: true;
72
72
  };
73
73
  isOptionDisabled: {
74
- type: PropType<BentoDropdownIsOptionDisabled>;
74
+ type: PropType<BentoListboxIsOptionDisabled>;
75
75
  default: any;
76
76
  };
77
77
  items: {
78
- type: PropType<BentoDropdownOptions>;
78
+ type: PropType<BentoListboxOptions>;
79
79
  required: true;
80
80
  };
81
81
  multiple: {
@@ -87,18 +87,18 @@ declare const _default: import("vue").DefineComponent<{
87
87
  required: true;
88
88
  };
89
89
  selectedValue: {
90
- type: PropType<BentoDropdownSelectedValue>;
90
+ type: PropType<BentoListboxSelectedValue>;
91
91
  default: any;
92
92
  };
93
93
  targetElement: {
94
- type: PropType<import("../../../..").VueNodeElement>;
94
+ type: PropType<import("@/types").VueNodeElement>;
95
95
  required: true;
96
96
  };
97
97
  }>>, {
98
98
  ariaLabel: string;
99
99
  disabled: boolean;
100
100
  multiple: boolean;
101
- isOptionDisabled: BentoDropdownIsOptionDisabled;
102
- selectedValue: BentoDropdownSelectedValue;
101
+ isOptionDisabled: BentoListboxIsOptionDisabled;
102
+ selectedValue: BentoListboxSelectedValue;
103
103
  }>;
104
104
  export default _default;
@@ -0,0 +1,5 @@
1
+ import { BentoListboxOptionItem } from '../../../../../types';
2
+ export type BentoAvatarListboxOptionItem = Omit<BentoListboxOptionItem, 'data'> & {
3
+ src?: string;
4
+ };
5
+ export type BentoAvatarListboxOptions = BentoAvatarListboxOptionItem[];
@@ -0,0 +1,123 @@
1
+ import { PropType } from 'vue';
2
+ import { BentoListboxSelectedValue } from '../../../../../types';
3
+ import { BentoAvatarListboxOptions } from './dropdown-avatar.types';
4
+ declare const _default: import("vue").DefineComponent<{
5
+ items: {
6
+ type: PropType<BentoAvatarListboxOptions>;
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
+ showSlotContentInMultiple: {
46
+ type: BooleanConstructor;
47
+ default: boolean;
48
+ };
49
+ value: {
50
+ type: PropType<BentoListboxSelectedValue>;
51
+ default: any;
52
+ };
53
+ }, {
54
+ dropdownItems: import("vue").ComputedRef<{
55
+ value: import("../../../../../types").BentoListboxValue;
56
+ label: string;
57
+ data: string;
58
+ }[]>;
59
+ onInput: (selectedValue: BentoListboxSelectedValue) => void;
60
+ }, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, "input"[], string, Readonly<import("vue").ExtractPropTypes<{
61
+ items: {
62
+ type: PropType<BentoAvatarListboxOptions>;
63
+ default: () => any[];
64
+ };
65
+ ariaLabel: {
66
+ type: StringConstructor;
67
+ default: any;
68
+ };
69
+ disabled: {
70
+ type: BooleanConstructor;
71
+ default: boolean;
72
+ };
73
+ dynamicFiltering: {
74
+ type: BooleanConstructor;
75
+ default: boolean;
76
+ };
77
+ label: {
78
+ type: StringConstructor;
79
+ default: any;
80
+ };
81
+ description: {
82
+ type: StringConstructor;
83
+ default: any;
84
+ };
85
+ isOptionDisabled: {
86
+ type: PropType<import("../../../../../types").BentoListboxIsOptionDisabled>;
87
+ default: any;
88
+ };
89
+ multiple: {
90
+ type: BooleanConstructor;
91
+ default: boolean;
92
+ };
93
+ optional: {
94
+ type: BooleanConstructor;
95
+ default: boolean;
96
+ };
97
+ required: {
98
+ type: BooleanConstructor;
99
+ default: boolean;
100
+ };
101
+ showSlotContentInMultiple: {
102
+ type: BooleanConstructor;
103
+ default: boolean;
104
+ };
105
+ value: {
106
+ type: PropType<BentoListboxSelectedValue>;
107
+ default: any;
108
+ };
109
+ }>>, {
110
+ required: boolean;
111
+ optional: boolean;
112
+ value: BentoListboxSelectedValue;
113
+ label: string;
114
+ ariaLabel: string;
115
+ disabled: boolean;
116
+ multiple: boolean;
117
+ description: string;
118
+ items: BentoAvatarListboxOptions;
119
+ isOptionDisabled: import("../../../../../types").BentoListboxIsOptionDisabled;
120
+ dynamicFiltering: boolean;
121
+ showSlotContentInMultiple: boolean;
122
+ }>;
123
+ export default _default;
@@ -0,0 +1,5 @@
1
+ import { ComputedRef, Ref } from 'vue';
2
+ import { BentoCountryVariant } from '../../../../../country';
3
+ import { BentoCountryListboxOptions } from '../dropdown-country.types';
4
+ import { BentoListboxOptions } from '../../../../../../types';
5
+ export declare const useCountryItems: (variant: Ref<BentoCountryVariant>, items: Ref<BentoCountryListboxOptions>) => ComputedRef<BentoListboxOptions>;
@@ -0,0 +1,7 @@
1
+ import { BentoListboxOptionItem, OmitStrict } from '../../../../../types';
2
+ import { BentoCountryCode } from '../../../../country';
3
+ export type BentoCountryListboxOptionItem = OmitStrict<BentoListboxOptionItem, 'value' | 'label'> & {
4
+ value: BentoCountryCode;
5
+ label?: string;
6
+ };
7
+ export type BentoCountryListboxOptions = BentoCountryListboxOptionItem[];