@adyen/bento-vue2 1.24.0 → 1.25.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 (188) hide show
  1. package/dist/@types/index.d.ts +415 -528
  2. package/dist/accordion.js +2 -2
  3. package/dist/action-bar.js +6 -6
  4. package/dist/alert.js +69 -104
  5. package/dist/alert.js.map +1 -1
  6. package/dist/assets/base-modal.css +1 -1
  7. package/dist/assets/dialog-page.css +1 -1
  8. package/dist/assets/dropdown.css +1 -1
  9. package/dist/assets/index.css +1 -1
  10. package/dist/assets/index10.css +1 -1
  11. package/dist/assets/index11.css +1 -1
  12. package/dist/assets/index12.css +1 -1
  13. package/dist/assets/index13.css +1 -1
  14. package/dist/assets/index14.css +1 -1
  15. package/dist/assets/index15.css +1 -1
  16. package/dist/assets/index16.css +1 -1
  17. package/dist/assets/index17.css +1 -1
  18. package/dist/assets/index18.css +1 -1
  19. package/dist/assets/index19.css +1 -1
  20. package/dist/assets/index2.css +1 -1
  21. package/dist/assets/index20.css +1 -1
  22. package/dist/assets/index21.css +1 -1
  23. package/dist/assets/index22.css +1 -1
  24. package/dist/assets/index23.css +1 -1
  25. package/dist/assets/index24.css +1 -1
  26. package/dist/assets/index25.css +1 -1
  27. package/dist/assets/index26.css +1 -1
  28. package/dist/assets/index27.css +1 -1
  29. package/dist/assets/index28.css +1 -1
  30. package/dist/assets/index29.css +1 -1
  31. package/dist/assets/index3.css +1 -1
  32. package/dist/assets/index30.css +1 -1
  33. package/dist/assets/index31.css +1 -1
  34. package/dist/assets/index32.css +1 -1
  35. package/dist/assets/index33.css +1 -1
  36. package/dist/assets/index34.css +1 -1
  37. package/dist/assets/index35.css +1 -1
  38. package/dist/assets/index36.css +1 -1
  39. package/dist/assets/index37.css +1 -1
  40. package/dist/assets/index38.css +1 -1
  41. package/dist/assets/index39.css +1 -1
  42. package/dist/assets/index40.css +1 -1
  43. package/dist/assets/index41.css +1 -1
  44. package/dist/assets/index42.css +1 -1
  45. package/dist/assets/index43.css +1 -1
  46. package/dist/assets/index44.css +1 -1
  47. package/dist/assets/index45.css +1 -1
  48. package/dist/assets/index46.css +1 -1
  49. package/dist/assets/index47.css +1 -1
  50. package/dist/assets/index48.css +1 -1
  51. package/dist/assets/index5.css +1 -1
  52. package/dist/assets/index6.css +1 -1
  53. package/dist/assets/index7.css +1 -1
  54. package/dist/assets/index8.css +1 -1
  55. package/dist/assets/index9.css +1 -1
  56. package/dist/assets/{listbox.css → use-cached-selected-values.css} +1 -1
  57. package/dist/avatar-image.js +1 -1
  58. package/dist/badge.js +1 -1
  59. package/dist/button.js +5 -5
  60. package/dist/card.js +83 -180
  61. package/dist/card.js.map +1 -1
  62. package/dist/checkbox.js +5 -5
  63. package/dist/chunks/{base-button.090f511d.js → base-button.773343f6.js} +2 -2
  64. package/dist/chunks/{base-button.090f511d.js.map → base-button.773343f6.js.map} +1 -1
  65. package/dist/chunks/{base-modal.aa09a60c.js → base-modal.2d596e6f.js} +6 -6
  66. package/dist/chunks/{base-modal.aa09a60c.js.map → base-modal.2d596e6f.js.map} +1 -1
  67. package/dist/chunks/{button-actions-with-menu.879c4573.js → button-actions-with-menu.d08d2c51.js} +4 -4
  68. package/dist/chunks/{button-actions-with-menu.879c4573.js.map → button-actions-with-menu.d08d2c51.js.map} +1 -1
  69. package/dist/chunks/{button-actions.239456cb.js → button-actions.a03a672f.js} +3 -3
  70. package/dist/chunks/{button-actions.239456cb.js.map → button-actions.a03a672f.js.map} +1 -1
  71. package/dist/chunks/{button.6e6324f0.js → button.e5f5638f.js} +3 -3
  72. package/dist/chunks/{button.6e6324f0.js.map → button.e5f5638f.js.map} +1 -1
  73. package/dist/chunks/{calendar.1e416969.js → calendar.7d3e2db0.js} +4 -4
  74. package/dist/chunks/{calendar.1e416969.js.map → calendar.7d3e2db0.js.map} +1 -1
  75. package/dist/chunks/{checkbox.f38276e6.js → checkbox.28578383.js} +3 -3
  76. package/dist/chunks/{checkbox.f38276e6.js.map → checkbox.28578383.js.map} +1 -1
  77. package/dist/chunks/{controls-group.f1dfa419.js → controls-group.faa482b2.js} +3 -3
  78. package/dist/chunks/{controls-group.f1dfa419.js.map → controls-group.faa482b2.js.map} +1 -1
  79. package/dist/chunks/{copy.acc9f1b0.js → copy.3c50b447.js} +4 -4
  80. package/dist/chunks/{copy.acc9f1b0.js.map → copy.3c50b447.js.map} +1 -1
  81. package/dist/chunks/dialog-page.286ead53.js +133 -0
  82. package/dist/chunks/dialog-page.286ead53.js.map +1 -0
  83. package/dist/chunks/{dropdown-default-textbox.c1f8fe5f.js → dropdown-default-textbox.a1c0c0fb.js} +2 -2
  84. package/dist/chunks/{dropdown-default-textbox.c1f8fe5f.js.map → dropdown-default-textbox.a1c0c0fb.js.map} +1 -1
  85. package/dist/chunks/dropdown.7d4a8dfc.js +775 -0
  86. package/dist/chunks/dropdown.7d4a8dfc.js.map +1 -0
  87. package/dist/chunks/{error-message.8734e591.js → error-message.db315e68.js} +2 -2
  88. package/dist/chunks/{error-message.8734e591.js.map → error-message.db315e68.js.map} +1 -1
  89. package/dist/chunks/{fixed-scroller.772ad033.js → fixed-scroller.3135f86c.js} +2 -2
  90. package/dist/chunks/{fixed-scroller.772ad033.js.map → fixed-scroller.3135f86c.js.map} +1 -1
  91. package/dist/chunks/{footer-actions.11071f12.js → footer-actions.32891b25.js} +4 -4
  92. package/dist/chunks/{footer-actions.11071f12.js.map → footer-actions.32891b25.js.map} +1 -1
  93. package/dist/chunks/{index.87180cdd.js → index.30948302.js} +138 -119
  94. package/dist/chunks/index.30948302.js.map +1 -0
  95. package/dist/chunks/{index.8e6bc325.js → index.444d221f.js} +3 -3
  96. package/dist/chunks/{index.8e6bc325.js.map → index.444d221f.js.map} +1 -1
  97. package/dist/chunks/{index.73abb1a9.js → index.4b6211c7.js} +27 -27
  98. package/dist/chunks/{index.73abb1a9.js.map → index.4b6211c7.js.map} +1 -1
  99. package/dist/chunks/{index.94980f50.js → index.596c4d0a.js} +2 -2
  100. package/dist/chunks/{index.94980f50.js.map → index.596c4d0a.js.map} +1 -1
  101. package/dist/chunks/{index.ff09389c.js → index.81e509f3.js} +6 -6
  102. package/dist/chunks/{index.ff09389c.js.map → index.81e509f3.js.map} +1 -1
  103. package/dist/chunks/{index.f19887a1.js → index.939dd5cf.js} +2 -2
  104. package/dist/chunks/{index.f19887a1.js.map → index.939dd5cf.js.map} +1 -1
  105. package/dist/chunks/{index.51308a21.js → index.94acf214.js} +3 -3
  106. package/dist/chunks/{index.51308a21.js.map → index.94acf214.js.map} +1 -1
  107. package/dist/chunks/{index.49ce3f6a.js → index.9536a077.js} +3 -3
  108. package/dist/chunks/{index.49ce3f6a.js.map → index.9536a077.js.map} +1 -1
  109. package/dist/chunks/{index.03ae22b4.js → index.9e40ffeb.js} +2 -2
  110. package/dist/chunks/{index.03ae22b4.js.map → index.9e40ffeb.js.map} +1 -1
  111. package/dist/chunks/{index.ba6c1040.js → index.d97166c6.js} +2 -2
  112. package/dist/chunks/{index.ba6c1040.js.map → index.d97166c6.js.map} +1 -1
  113. package/dist/chunks/{index.5d5f2200.js → index.ec632d95.js} +6 -6
  114. package/dist/chunks/{index.5d5f2200.js.map → index.ec632d95.js.map} +1 -1
  115. package/dist/chunks/{listbox-option-tag.c0a56a95.js → listbox-option-tag.95a65534.js} +3 -3
  116. package/dist/chunks/{listbox-option-tag.c0a56a95.js.map → listbox-option-tag.95a65534.js.map} +1 -1
  117. package/dist/chunks/{loading-button.84a5529d.js → loading-button.e8060c04.js} +2 -2
  118. package/dist/chunks/{loading-button.84a5529d.js.map → loading-button.e8060c04.js.map} +1 -1
  119. package/dist/chunks/{payment-method.faa302de.js → payment-method.564ed43a.js} +2 -2
  120. package/dist/chunks/{payment-method.faa302de.js.map → payment-method.564ed43a.js.map} +1 -1
  121. package/dist/chunks/{tooltip.8e9d733c.js → tooltip.e5deb137.js} +3 -3
  122. package/dist/chunks/{tooltip.8e9d733c.js.map → tooltip.e5deb137.js.map} +1 -1
  123. package/dist/chunks/{use-bento-toast-controller.7d4436ad.js → use-bento-toast-controller.8414d283.js} +2 -2
  124. package/dist/chunks/{use-bento-toast-controller.7d4436ad.js.map → use-bento-toast-controller.8414d283.js.map} +1 -1
  125. package/dist/chunks/{listbox.e6e1bc90.js → use-cached-selected-values.3772a679.js} +510 -448
  126. package/dist/chunks/use-cached-selected-values.3772a679.js.map +1 -0
  127. package/dist/code-snippet.js +7 -7
  128. package/dist/code-snippet.js.map +1 -1
  129. package/dist/country.js +2 -2
  130. package/dist/currency.js +1 -1
  131. package/dist/data-grid-template.js +1 -1
  132. package/dist/data-grid.js +758 -725
  133. package/dist/data-grid.js.map +1 -1
  134. package/dist/date-picker.js +19 -19
  135. package/dist/date-range-picker.js +2 -2
  136. package/dist/date.js +1 -1
  137. package/dist/divider.js +1 -1
  138. package/dist/dropdown.js +7 -7
  139. package/dist/empty-state.js +2 -2
  140. package/dist/filter-bar.js +1115 -955
  141. package/dist/filter-bar.js.map +1 -1
  142. package/dist/focus-trap.js +1 -1
  143. package/dist/form-layout.js +2 -2
  144. package/dist/header.js +4 -4
  145. package/dist/index.js +177 -169
  146. package/dist/index.js.map +1 -1
  147. package/dist/info-icon.js +3 -3
  148. package/dist/input-field.js +31 -29
  149. package/dist/input-field.js.map +1 -1
  150. package/dist/internal.js +31 -78
  151. package/dist/internal.js.map +1 -1
  152. package/dist/link.js +1 -1
  153. package/dist/loading-indicator.js +1 -1
  154. package/dist/menu.js +1 -1
  155. package/dist/modal-fullscreen.js +6 -6
  156. package/dist/modal.js +6 -6
  157. package/dist/pagination.js +4 -4
  158. package/dist/payment-method.js +1 -1
  159. package/dist/popover.js +1 -1
  160. package/dist/popper-container.js +1 -1
  161. package/dist/radio-group.js +62 -62
  162. package/dist/radio-group.js.map +1 -1
  163. package/dist/search-bar.js +2 -2
  164. package/dist/secondary-nav.js +2 -2
  165. package/dist/segmented-control.js +3 -3
  166. package/dist/selection-card.js +4 -4
  167. package/dist/sidepanel.js +52 -50
  168. package/dist/sidepanel.js.map +1 -1
  169. package/dist/status.js +2 -2
  170. package/dist/stepper.js +3 -3
  171. package/dist/structured-list.js +1 -1
  172. package/dist/summary-grid.js +3 -3
  173. package/dist/tabs.js +3 -3
  174. package/dist/tag.js +3 -3
  175. package/dist/textarea.js +4 -4
  176. package/dist/timeline.js +7 -7
  177. package/dist/toast.js +4 -4
  178. package/dist/toggle.js +2 -2
  179. package/dist/tutorial.js +6 -6
  180. package/dist/typography.js +1 -1
  181. package/dist/web-types.json +532 -282
  182. package/package.json +3 -2
  183. package/dist/chunks/dialog-page.75b295b7.js +0 -133
  184. package/dist/chunks/dialog-page.75b295b7.js.map +0 -1
  185. package/dist/chunks/dropdown.669b858b.js +0 -797
  186. package/dist/chunks/dropdown.669b858b.js.map +0 -1
  187. package/dist/chunks/index.87180cdd.js.map +0 -1
  188. package/dist/chunks/listbox.e6e1bc90.js.map +0 -1
@@ -1,797 +0,0 @@
1
- import { ref as y, watch as ne, computed as c, defineComponent as I, useSlots as le, toRefs as se, nextTick as E, useAttrs as be, toRef as O, inject as ye } from "vue";
2
- import { d as X, B as ge } from "./index.ba6c1040.js";
3
- import { D as P, a as V, b as xe, c as we, B as he } from "./dropdown-default-textbox.c1f8fe5f.js";
4
- import { n as A } from "./_plugin-vue2_normalizer.71e2aa87.js";
5
- import { g as T } from "./unique-id.a2a2b458.js";
6
- import { u as Se } from "./aria-label.ac9651a5.js";
7
- import { u as W } from "./i18n.eb5b985b.js";
8
- import { u as Le } from "./use-form-layout-loading.d03e5d48.js";
9
- import { u as Ce } from "./use-has-slot.fbeb19ec.js";
10
- import { b as u, a as K, B as z, u as Oe } from "./listbox.e6e1bc90.js";
11
- import { B as $, a as $e } from "./keyboard-navigation.ca47dfa8.js";
12
- import { a as ee } from "./index.51308a21.js";
13
- import { a as Ee } from "./index.5d5f2200.js";
14
- import { E as De, F as Ie } from "./error-message.8734e591.js";
15
- import "../assets/dropdown.css";
16
- var L = /* @__PURE__ */ ((n) => (n.DEFAULT = "DropdownInputDefault", n.SMALL = "DropdownInputSmall", n))(L || {});
17
- const Be = {
18
- "en-US": {
19
- apply: "Apply",
20
- cancel: "Cancel",
21
- noOptionsMatchThisSearch: "No options match this search"
22
- }
23
- }, Re = (n, e, o, t) => {
24
- const l = y(n.value), { t: s } = W();
25
- ne(n, () => {
26
- l.value = n.value;
27
- });
28
- const a = c(
29
- () => JSON.stringify(l.value) === JSON.stringify(n.value)
30
- ), i = () => {
31
- t(u.SELECT, l.value), t(u.CLOSE_DROPDOWN);
32
- }, d = () => {
33
- l.value = n.value, t(u.CLOSE_DROPDOWN);
34
- }, f = () => {
35
- o.value && e.value && (l.value = n.value);
36
- }, v = c(() => [
37
- {
38
- title: s("apply"),
39
- event: i,
40
- disabled: a.value
41
- },
42
- {
43
- title: s("cancel"),
44
- event: d
45
- }
46
- ]), b = (r) => {
47
- l.value = r, e.value || t(u.SELECT, r);
48
- }, C = (r) => {
49
- b(r), t(u.TAB);
50
- }, g = (r) => {
51
- b(r), t(u.ENTER);
52
- }, w = (r) => {
53
- b(r), t(u.SPACE);
54
- }, x = () => {
55
- d(), t(u.ESCAPE);
56
- }, h = () => {
57
- t(u.SHOW_MORE);
58
- }, S = {
59
- [u.SELECT]: b,
60
- [u.SHOW_MORE]: h,
61
- [u.TAB]: C,
62
- [u.SPACE]: w,
63
- [u.ENTER]: g
64
- };
65
- return {
66
- // Values
67
- actions: v,
68
- internalSelectedValue: l,
69
- // Methods
70
- listeners: S,
71
- onEscapeKey: x,
72
- onOutsideDropdownClick: f
73
- };
74
- }, Te = I({
75
- i18n: { messages: Be },
76
- name: "bento-dropdown-options-container"
77
- }), Ae = /* @__PURE__ */ I({
78
- ...Te,
79
- props: {
80
- /**
81
- * Defines a string value that labels an interactive element.
82
- */
83
- ariaLabel: { type: String, default: null },
84
- /**
85
- * Empty state props used with the inner empty state component which is displayed when no search results are found.
86
- */
87
- emptyState: {
88
- type: Object,
89
- default: void 0
90
- },
91
- /**
92
- * Disables dropdown functionality
93
- */
94
- disabled: { type: Boolean, default: !1 },
95
- /**
96
- * Indicates whether there are more items to load
97
- */
98
- hasMoreItems: { type: Boolean, default: !1 },
99
- /**
100
- * Identifies the listbox whose contents are controlled by the the combobox on which the aria-controls attribute is set.
101
- */
102
- id: { type: String, required: !0 },
103
- /**
104
- * Dropdown input size
105
- */
106
- inputSize: {
107
- type: String,
108
- default: L.DEFAULT,
109
- validator: (n) => Object.values(L).includes(n)
110
- },
111
- /**
112
- * Function that allows the options to be disabled
113
- *
114
- * @type {BentoDropdownIsOptionDisabled}
115
- * @param {BentoDropdownOptionItem} option - Dropdown option object
116
- * @param {string} option.label - Option's label text
117
- * @param {string|number} option.value - Option's value
118
- * @param {unknown} option.data - Option's extra data to be passed to the default slot
119
- */
120
- isOptionDisabled: {
121
- type: Function,
122
- default: void 0
123
- },
124
- /**
125
- * The option elements to populate the dropdown with.
126
- * It must be an array of {@see BentoDropdownOptionItem }
127
- * * @property {string} value.label - Text to be displayed in the option
128
- * * @property {string,number} value.value - Value of the option
129
- */
130
- items: {
131
- type: Array,
132
- required: !0
133
- },
134
- /**
135
- * The type of `Lazy Load`.
136
- * Type "automatic" will enable infinite scrolling
137
- * Type "button" will enable lazy loading with "Show more" button
138
- */
139
- lazyLoadType: {
140
- type: String,
141
- default: K.AUTOMATIC,
142
- validator: (n) => Object.values(K).includes(n)
143
- },
144
- /**
145
- * Indicates if new options are loading.
146
- */
147
- loading: { type: Boolean, default: !1 },
148
- /**
149
- * If enabled, the user will be able to select multiple items.
150
- */
151
- multiple: { type: Boolean, default: !1 },
152
- /**
153
- * Indicates if the dropdown is open so that
154
- * the container can be displayed.
155
- */
156
- open: { type: Boolean, required: !0 },
157
- /**
158
- * The `input` value.
159
- * Providing an empty string or empty array will select no options.
160
- * Set to an empty string `''` if you don't want any of the available options to be selected for single select
161
- */
162
- selectedValue: {
163
- type: [String, Number, Array],
164
- default: null
165
- },
166
- /**
167
- * Flag that indicates that an external search it's being made
168
- * to filter out the items inside the the multi-select listbox
169
- *
170
- * If enabled, hides the "Select all" checkbox in "multiple" mode.
171
- */
172
- searching: z.props.searching,
173
- /**
174
- * If enabled, dropdown will display non-selectable, static categories
175
- */
176
- staticCategories: { type: Boolean, default: !1 },
177
- /**
178
- * Reference to the DOM element or Vue component for positioning
179
- * the Dropdown container.
180
- */
181
- targetElement: { type: ee.props.targetElement.type, required: !0 },
182
- /**
183
- * Enables virtual scrolling if set to true or by providing an object with itemHeight function.
184
- * The itemHeight function is used to calculate the height of rendered item given it's index.
185
- */
186
- virtualScroll: {
187
- type: [Boolean, Object],
188
- default: !1
189
- }
190
- },
191
- setup(n, { expose: e, emit: o }) {
192
- const t = n, l = le(), { selectedValue: s, multiple: a } = se(t), i = y(null), { t: d } = W(), f = c(() => t.open && !t.disabled), v = c(() => d("noOptionsMatchThisSearch")), b = c(() => ({
193
- "b-dropdown-options-container--single": !(t != null && t.multiple)
194
- })), C = c(() => ({
195
- "b-dropdown-options-container__listbox--small": t.inputSize === L.SMALL,
196
- "b-dropdown-options-container__listbox--single": !(t != null && t.multiple)
197
- })), { actions: g, internalSelectedValue: w, listeners: x, onEscapeKey: h, onOutsideDropdownClick: S } = Re(s, a, f, o), r = c(() => t != null && t.multiple ? Ee : ee), p = c(() => {
198
- var M;
199
- const _ = {
200
- "min-width": `${(M = t == null ? void 0 : t.targetElement) == null ? void 0 : M.clientWidth}px`,
201
- "max-width": "min(500px, 95%)"
202
- };
203
- return t != null && t.multiple ? {
204
- actionsLayout: "space-between",
205
- actions: g.value,
206
- divider: !0,
207
- fallbackPosition: ["top-start"],
208
- id: T(`dropdown-options-${t.id}`),
209
- open: t.open,
210
- position: "bottom-start",
211
- style: {
212
- width: "auto",
213
- ..._
214
- },
215
- targetElement: t.targetElement
216
- } : {
217
- fallbackPosition: ["top-start"],
218
- offset: [0, 8],
219
- position: "bottom-start",
220
- style: {
221
- display: f.value ? "block" : "none",
222
- ..._
223
- },
224
- targetElement: t.targetElement
225
- };
226
- });
227
- return e({
228
- onOutsideDropdownClick: S
229
- }), { __sfc: !0, slots: l, emit: o, props: t, selectedValue: s, multiple: a, dropdownOptionsListboxRef: i, t: d, isDropdownOpen: f, noResultsMessage: v, conditionalClasses: b, conditionalListboxClasses: C, actions: g, internalSelectedValue: w, listeners: x, onEscapeKey: h, onOutsideDropdownClick: S, popperContainerOrPopoverComponent: r, popperContainerOrPopoverProps: p, BentoListbox: z };
230
- }
231
- });
232
- var Me = function() {
233
- var e = this, o = e._self._c, t = e._self._setupProxy;
234
- return o(t.popperContainerOrPopoverComponent, e._b({ tag: "component", staticClass: "b-dropdown-options-container", class: t.conditionalClasses }, "component", t.popperContainerOrPopoverProps, !1), [o("div", { on: { keydown: function(l) {
235
- return !l.type.indexOf("key") && e._k(l.keyCode, "esc", 27, l.key, ["Esc", "Escape"]) ? null : t.onEscapeKey.apply(null, arguments);
236
- } } }, [o(t.BentoListbox, e._g({ ref: "dropdownOptionsListboxRef", staticClass: "b-dropdown-options-container__listbox", class: t.conditionalListboxClasses, attrs: { id: e.id, "aria-label": e.ariaLabel, "empty-state": e.emptyState, "is-option-disabled": e.isOptionDisabled, items: e.items, "selected-value": t.internalSelectedValue, multiple: t.multiple, "static-categories": e.staticCategories, "no-results-message": t.noResultsMessage, searching: e.searching, loading: e.loading, "lazy-load-type": e.lazyLoadType, "has-more-items": e.hasMoreItems, "virtual-scroll": e.virtualScroll }, scopedSlots: e._u([e._l(t.slots, function(l, s) {
237
- return { key: s, fn: function(a) {
238
- return [e._t(s, null, null, a)];
239
- } };
240
- })], null, !0) }, t.listeners))], 1)]);
241
- }, Ne = [], ke = /* @__PURE__ */ A(
242
- Ae,
243
- Me,
244
- Ne,
245
- !1,
246
- null,
247
- "1ccfc490",
248
- null,
249
- null
250
- );
251
- const Fe = ke.exports;
252
- let te = 0;
253
- const Pe = {
254
- beforeCreate() {
255
- this.uuid = te.toString(), te += 1;
256
- }
257
- };
258
- var Ke = function() {
259
- var e = this, o = e._self._c;
260
- return o("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? o("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), o("path", { attrs: { fill: "#00112C", d: "M5.00011 5.43922L8.00011 8.43922L11.0001 5.43922L12.0608 6.49988L8.00011 10.5605L3.93945 6.49988L5.00011 5.43922Z" } })]);
261
- }, ze = [], We = /* @__PURE__ */ A(
262
- Pe,
263
- Ke,
264
- ze,
265
- !1,
266
- null,
267
- null,
268
- null,
269
- null
270
- );
271
- const Ue = We.exports;
272
- let oe = 0;
273
- const je = {
274
- beforeCreate() {
275
- this.uuid = oe.toString(), oe += 1;
276
- }
277
- };
278
- var qe = function() {
279
- var e = this, o = e._self._c;
280
- return o("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? o("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), o("path", { attrs: { fill: "#00112C", d: "M10.9999 10.5608L7.9999 7.56077L4.9999 10.5608L3.93924 9.50011L7.9999 5.43945L12.0606 9.50011L10.9999 10.5608Z" } })]);
281
- }, He = [], Je = /* @__PURE__ */ A(
282
- je,
283
- qe,
284
- He,
285
- !1,
286
- null,
287
- null,
288
- null,
289
- null
290
- );
291
- const Ye = Je.exports, Ze = I({
292
- name: "dropdown-small-textbox",
293
- inheritAttrs: !1
294
- }), Ge = /* @__PURE__ */ I({
295
- ...Ze,
296
- props: {
297
- /**
298
- * The number of additional items that have been selected in the dropdown.
299
- */
300
- additionalItemsSelected: { type: [Number, String], default: 0 },
301
- /**
302
- * Sets the aria-controls attribute on the textbox. This should correspond to the popover's id that the textbox triggers.
303
- */
304
- ariaControls: { type: String, required: !0 },
305
- /**
306
- * Indicates whether the content the textbox triggers is visible or not. Needs to be set accordingly when the textbox is used and changed every time the popover is shown/hidden.
307
- */
308
- ariaExpanded: {
309
- type: [String, Boolean],
310
- required: !0
311
- },
312
- /**
313
- * If no label element is used then the aria-label is be set should be set.
314
- */
315
- ariaLabel: { type: String, default: null },
316
- /**
317
- * Corresponds to the label's id that labels the textbox element.
318
- */
319
- ariaLabelledby: { type: String, default: null },
320
- /**
321
- * Custom debounce time. Default: 300
322
- */
323
- debounceTime: { type: Number, default: 300 },
324
- /**
325
- * Disables any textbox functionality
326
- */
327
- disabled: { type: Boolean, default: !1 },
328
- /**
329
- * Selected option's label
330
- */
331
- displayValue: { type: String, default: null },
332
- /**
333
- * Sets the possibility to type into the textbox
334
- */
335
- dynamicFiltering: { type: Boolean, default: !1 },
336
- /**
337
- * Marks the textbox as invalid, rendering an error state
338
- */
339
- isInvalid: { type: Boolean, default: !1 },
340
- /**
341
- * Indicates if the dropdown is open so that
342
- * the respective event can be emitted
343
- */
344
- open: { type: Boolean, default: !1 },
345
- /**
346
- * Sets the dropdown to readonly state
347
- */
348
- readonly: { type: Boolean, default: !1 },
349
- /**
350
- * The input value
351
- */
352
- value: { type: String, default: "" }
353
- },
354
- emits: ["open", "close"],
355
- setup(n, { emit: e }) {
356
- const o = n, t = c(() => ({
357
- [`b-dropdown-small-textbox--${P.DISABLED}`]: o.disabled,
358
- [`b-dropdown-small-textbox--${P.READONLY}`]: o.readonly,
359
- [`b-dropdown-small-textbox--${P.OPENED}`]: o.open
360
- })), l = c(() => o.open && !o.disabled && !o.readonly), s = () => {
361
- e("open");
362
- }, a = () => {
363
- e("close");
364
- }, i = {
365
- [V.OPEN]: s,
366
- [V.CLOSE]: a
367
- };
368
- return { __sfc: !0, emit: e, props: o, conditionalClasses: t, isDropdownOpen: l, openDropdown: s, closeDropdown: a, listeners: i, DropdownBaseTextbox: xe, ChevronDownSmallIcon: Ue, ChevronUpSmallIcon: Ye };
369
- }
370
- });
371
- var Qe = function() {
372
- var e = this, o = e._self._c, t = e._self._setupProxy;
373
- return o("div", { staticClass: "b-dropdown-small-textbox", class: t.conditionalClasses }, [o(t.DropdownBaseTextbox, e._g(e._b({ staticClass: "b-dropdown-small-textbox__textbox", scopedSlots: e._u([{ key: "icon", fn: function() {
374
- return [o("div", { staticClass: "b-dropdown-small-textbox__chevron" }, [o(t.ChevronUpSmallIcon, { directives: [{ name: "show", rawName: "v-show", value: t.isDropdownOpen, expression: "isDropdownOpen" }], attrs: { "svg-title": "opened" } }), o(t.ChevronDownSmallIcon, { directives: [{ name: "show", rawName: "v-show", value: !t.isDropdownOpen, expression: "!isDropdownOpen" }], attrs: { "svg-title": "closed" } })], 1)];
375
- }, proxy: !0 }]) }, "dropdown-base-textbox", { ...e.$attrs, ...e.$props }, !1), t.listeners))], 1);
376
- }, Xe = [], Ve = /* @__PURE__ */ A(
377
- Ge,
378
- Qe,
379
- Xe,
380
- !1,
381
- null,
382
- "8dbfd5fb",
383
- null,
384
- null
385
- );
386
- const et = Ve.exports, tt = ({ items: n, placeholder: e, selectedValue: o, staticCategories: t }) => {
387
- if (o.value == null || o.value === "")
388
- return e.value || null;
389
- let l;
390
- if (t) {
391
- const s = n.value.find((a) => a.items.some((i) => i.value === o.value));
392
- l = s == null ? void 0 : s.items.find((a) => a.value === o.value);
393
- } else
394
- l = n.value.find(({ value: s }) => s === o.value);
395
- return l ? l.label : o.value.toString();
396
- }, ot = ({ selectedValues: n, items: e, placeholder: o }) => {
397
- var t;
398
- return !n.value || ((t = n.value) == null ? void 0 : t.length) === 0 ? o.value || null : n.value.map((l) => {
399
- const s = e.value.find(({ value: a }) => a === l);
400
- return s ? s.label : l;
401
- }).join(", ");
402
- }, nt = ({ selectedValues: n, items: e, placeholder: o }) => {
403
- var t;
404
- return !n.value || !((t = n.value) != null && t.length) ? o.value || null : e.value.reduce((l, s) => {
405
- if (s.items) {
406
- const a = s.items.filter(
407
- (d) => n.value.includes(d.value)
408
- );
409
- a.length === s.items.length ? l.push(s.label) : a.forEach(({ label: d }) => l.push(d));
410
- }
411
- return n.value.includes(s.value) && l.push(s.label), l;
412
- }, []).join(", ");
413
- }, lt = ({ items: n, placeholder: e, value: o, multiple: t, staticCategories: l }) => {
414
- const s = c(() => n.value.find((i) => {
415
- var d;
416
- return (d = i.items) == null ? void 0 : d.length;
417
- }));
418
- return c(() => t.value ? s.value ? nt({ selectedValues: o, placeholder: e, items: n }) : ot({ selectedValues: o, items: n, placeholder: e }) : tt({
419
- items: n,
420
- placeholder: e,
421
- selectedValue: o,
422
- staticCategories: l.value
423
- }));
424
- }, ae = (n) => {
425
- var e;
426
- (e = n.value.$children) == null || e[0].$refs.textbox.focus();
427
- }, st = ({
428
- inputContainerRef: n,
429
- optionsContainerRef: e,
430
- selectedValueIndex: o,
431
- isDropdownOpen: t,
432
- isDynamicFltering: l,
433
- items: s,
434
- isMultiple: a
435
- }, i, d, f) => {
436
- const v = ({ detail: r }) => {
437
- r.preventDefault(), t.value || (d(), E(() => {
438
- var p, _;
439
- a ? (p = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || p[0].$el.focus() : (_ = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || _[o.value].$el.focus();
440
- }));
441
- }, b = ({ detail: r }) => {
442
- r.preventDefault(), t.value || (d(), E(() => {
443
- var p;
444
- (p = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || p[0].$el.focus();
445
- }));
446
- }, C = () => {
447
- t.value || (d(), E(() => {
448
- var r, p;
449
- if (a) {
450
- const _ = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children;
451
- (r = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || r[_.length - 1].$children[s.length - 1].$el.focus();
452
- } else
453
- (p = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || p[s.length - 1].$el.focus();
454
- }));
455
- }, g = () => {
456
- t.value && (f(), ae(n));
457
- }, w = () => {
458
- t.value || d(), E(() => {
459
- var r;
460
- (r = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || r[0].$el.focus();
461
- });
462
- }, x = ({ detail: r }) => {
463
- r.preventDefault(), i(), t.value && E(() => {
464
- var p, _;
465
- a ? (p = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || p[0].$el.focus() : (_ = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || _[o.value].$el.focus();
466
- });
467
- }, h = () => {
468
- i(), t.value && E(() => {
469
- var r, p;
470
- a ? (r = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || r[0].$el.focus() : (p = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || p[o.value].$el.focus();
471
- });
472
- };
473
- return c(() => ({
474
- ...l.value ? {} : { [$.SPACE]: x },
475
- [$.ENTER]: h,
476
- [$.ARROW_DOWN]: v,
477
- [$.ARROW_UP]: b,
478
- [$.END]: C,
479
- [$.ESCAPE]: g,
480
- [$.HOME]: w
481
- }));
482
- }, at = ({ inputContainerRef: n, isDropdownOpen: e }, o) => {
483
- const t = () => {
484
- e.value && o(), E(() => {
485
- ae(n);
486
- });
487
- };
488
- return {
489
- [u.ENTER]: t,
490
- [u.ESCAPE]: t,
491
- [u.TAB]: t,
492
- [u.SPACE]: t
493
- };
494
- };
495
- function it(n, e, o) {
496
- const t = y(n), l = y(e), s = (i, d = []) => d.flatMap((f) => f.label.toLocaleLowerCase().includes(i) ? [f, ...s(i, f.items)] : f.items ? [...s(i, f.items)] : []);
497
- return ne(t, () => {
498
- o !== void 0 && o(t.value);
499
- }), c(() => {
500
- if (!t.value || o !== void 0)
501
- return l.value;
502
- const i = t.value.toLocaleLowerCase();
503
- return s(i, l.value);
504
- });
505
- }
506
- const rt = {
507
- "en-US": {
508
- all: "All",
509
- clearSearch: "Clear filter",
510
- ariaLabelFallback: "Dropdown"
511
- }
512
- }, dt = Symbol("input field component injection key"), ut = I({
513
- i18n: { messages: rt },
514
- name: "b-dropdown",
515
- components: {
516
- DropdownInputDefault: we,
517
- DropdownInputSmall: et
518
- }
519
- }), ct = /* @__PURE__ */ I({
520
- ...ut,
521
- props: {
522
- /**
523
- * @deprecated from version 2.0.0. Use the aria-label attribute instead.
524
- */
525
- /**
526
- * Defines a string value that labels an interactive element.
527
- */
528
- ariaLabel: { type: String, default: null },
529
- /**
530
- * Renders the dropdown with a condensed style.
531
- */
532
- condensed: { type: Boolean, default: !1 },
533
- /**
534
- * Empty state props used with the inner empty state component which is displayed when no search results are found.
535
- */
536
- emptyState: {
537
- type: Object,
538
- default: void 0
539
- },
540
- /**
541
- * Disables dropdown functionality.
542
- */
543
- disabled: { type: Boolean, default: !1 },
544
- /**
545
- * Sets the possibility to type into the textbox.
546
- */
547
- dynamicFiltering: {
548
- type: Boolean,
549
- default: !1
550
- },
551
- /**
552
- * Highlights the dropdown in an erroneous state.
553
- *
554
- * @deprecated Use "errorMessage" prop instead
555
- */
556
- error: { type: Boolean, default: !1 },
557
- /**
558
- * Highlights the dropdown in an erroneous state with an error message.
559
- */
560
- errorMessage: { type: String, default: null },
561
- /**
562
- * Descriptive supporting text visbile underneath the dropdown.
563
- */
564
- description: { type: String, default: null },
565
- /**
566
- * Indicates whether there are more items to load
567
- */
568
- hasMoreItems: { type: Boolean, default: !1 },
569
- /**
570
- * Function that dertermines which options are disabled from interaction.
571
- *
572
- * @type {BentoListboxIsOptionDisabled}
573
- * @param {BentoListboxOptionItem} option - Dropdown option object
574
- * @param {string} option.label - Option's label text
575
- * @param {string|number} option.value - Option's value
576
- * @param {unknown} option.data - Option's extra data to be passed to the default slot
577
- */
578
- isOptionDisabled: {
579
- type: Function,
580
- default: void 0
581
- },
582
- /**
583
- * The option elements to populate the dropdown with.
584
- * It must be an array of {@see BentoListboxOptionItem }
585
- * * @property {string} value.label - Text to be displayed in the option
586
- * * @property {string,number} value.value - Value of the option
587
- */
588
- items: {
589
- type: Array,
590
- default: () => []
591
- },
592
- /**
593
- * Text that is displayed as a label above the element.
594
- */
595
- label: { type: String, default: null },
596
- /**
597
- * Indicates if new options are loading.
598
- */
599
- loading: { type: Boolean, default: !1 },
600
- /**
601
- * The type of `Lazy Load`.
602
- * Type "automatic" will enable infinite scrolling
603
- * Type "button" will enable lazy loading with "Show more" button
604
- */
605
- lazyLoadType: {
606
- type: String,
607
- default: z.props.lazyLoadType.default,
608
- validator: (n) => Object.values(K).includes(n)
609
- },
610
- /*
611
- * If enabled, the user will be able to select multiple items.
612
- */
613
- multiple: { type: Boolean, default: !1 },
614
- /**
615
- * Highlights the dropdown is optional.
616
- */
617
- optional: { type: Boolean, default: !1 },
618
- /**
619
- * Text that appears in the form control when it has no value set
620
- */
621
- placeholder: { type: String, default: null },
622
- /**
623
- * Sets the dropdown to readonly state
624
- */
625
- readonly: { type: Boolean, default: !1 },
626
- /**
627
- * Highlights the dropdown is required.
628
- */
629
- required: { type: Boolean, default: !1 },
630
- /**
631
- * Dropdown search options and events.
632
- * @see BentoDropdownSearchOptions
633
- */
634
- search: {
635
- type: Object,
636
- default: void 0
637
- },
638
- /**
639
- * Toggles whether to use the slot content select items shown in the textbox in multiple mode.
640
- */
641
- showSlotContentInMultiple: { type: Boolean, default: !1 },
642
- /**
643
- * @deprecated Do not use. Only 'default' size should be used.
644
- */
645
- size: {
646
- type: String,
647
- default: null,
648
- validator: (n) => Object.values(L).includes(n)
649
- },
650
- /**
651
- * If enabled, dropdown will display non-selectable, static categories
652
- */
653
- staticCategories: { type: Boolean, default: !1 },
654
- /**
655
- * Adds a info icon next to the label to display the passed tooltip message.
656
- */
657
- tooltipText: { type: String, default: null },
658
- /**
659
- * The `input` value.
660
- * Providing an empty string will select no options.
661
- * Set to an empty string `''` if you don't want any of the available options to be selected.
662
- */
663
- value: {
664
- type: [String, Number, Array],
665
- default: null
666
- },
667
- /**
668
- * Enables virtual scrolling if set to true or by providing an object with itemHeight function.
669
- * The itemHeight function is used to calculate the height of rendered item given it's index.
670
- */
671
- virtualScroll: {
672
- type: [Boolean, Object],
673
- default: !1
674
- }
675
- },
676
- emits: ["input", "show-more"],
677
- setup(n, { emit: e }) {
678
- var Q;
679
- const o = n, t = be(), l = le(), s = Ce(l), { t: a } = W(), i = y(null), d = y(null), f = y(null), v = y(!1), b = T("bento-dropdown-options-container"), C = T("dropdown-label"), g = T("dropdown-description"), w = T("dropdown-error"), { isReadOnly: x } = Le(O(o, "readonly")), h = y(t["aria-label"]), { ariaLabel: S } = se(o), r = Se({
680
- ariaLabel: h.value,
681
- // TODO: take this line away when the aria-label props is removed
682
- label: S,
683
- defaultFallback: a("ariaLabelFallback")
684
- }), p = o.size === L.SMALL || ye(dt, !1), _ = c(() => p ? L.SMALL : L.DEFAULT), M = c(() => ({
685
- "b-dropdown--condensed": o.condensed
686
- })), ie = c(() => ({
687
- "b-dropdown__description--error": !!o.errorMessage
688
- })), D = y(""), B = O(o, "items"), re = it(D, B, (Q = o == null ? void 0 : o.search) == null ? void 0 : Q.searchEvent), F = c(() => o.dynamicFiltering && !!D.value), de = lt({
689
- items: B,
690
- staticCategories: O(o, "staticCategories"),
691
- multiple: O(o, "multiple"),
692
- placeholder: O(o, "placeholder"),
693
- value: O(o, "value")
694
- }), ue = c(() => {
695
- if (o != null && o.multiple)
696
- return o.items.filter(
697
- ({ value: m }) => (o == null ? void 0 : o.value) && (o == null ? void 0 : o.value).includes(m)
698
- );
699
- if (!o.multiple && o.staticCategories) {
700
- const m = o.items.find(
701
- (k) => k.items.some((_e) => _e.value === o.value)
702
- );
703
- return m ? m.items.find((k) => k.value === o.value) : null;
704
- }
705
- return o.items.find(({ value: m }) => m === (o == null ? void 0 : o.value));
706
- }), U = c(() => {
707
- const m = o.items.findIndex(({ value: R }) => o.value === R);
708
- return m > 0 ? m : 0;
709
- }), { isMultiLevelSelect: j, flattenedItemsList: q } = Oe(B), ce = c(() => {
710
- var m;
711
- if (o.multiple) {
712
- const R = (m = o == null ? void 0 : o.value) == null ? void 0 : m.length;
713
- return (j.value ? q.value.length : B.value.length) === R ? a("all") : R;
714
- }
715
- return null;
716
- }), pe = c(
717
- () => `${o.description ? g : ""} ${o.errorMessage ? w : ""}`.trim() || null
718
- ), H = () => {
719
- x.value || (v.value = !0);
720
- }, N = () => {
721
- v.value = !1;
722
- }, J = () => {
723
- x.value || (v.value = !v.value, F.value && (D.value = ""));
724
- }, fe = () => {
725
- F.value && (D.value = ""), v.value && (v.value = !1, f.value.onOutsideDropdownClick());
726
- }, Y = (m) => {
727
- o.multiple || (D.value = "", v.value = !1), e("input", m);
728
- }, Z = () => {
729
- e(u.SHOW_MORE);
730
- }, ve = st(
731
- {
732
- inputContainerRef: i,
733
- optionsContainerRef: f,
734
- selectedValueIndex: U,
735
- isDropdownOpen: v,
736
- isDynamicFltering: O(o, "dynamicFiltering"),
737
- items: o.items,
738
- isMultiple: o.multiple
739
- },
740
- J,
741
- H,
742
- N
743
- ), G = at(
744
- {
745
- inputContainerRef: i,
746
- isDropdownOpen: v
747
- },
748
- N
749
- ), me = {
750
- [u.CLOSE_DROPDOWN]: N,
751
- [u.SELECT]: Y,
752
- [u.SHOW_MORE]: Z,
753
- ...G
754
- };
755
- return o.error && X(
756
- 'BentoDropdown "error" property',
757
- `Use the BentoDropdown "errorMessage" property instead to indicate that there is a modifier error.
758
- Having the field as "undefined" will hide/remove the error.
759
- <bento-dropdown errorMessage="Error message text" />`,
760
- "2.0.0"
761
- ), o.size && X('BentoDropdown "size" property', "Do not use. Only 'default' size should be used.", "2.0.0"), { __sfc: !0, attrs: t, slots: l, hasSlot: s, props: o, emit: e, t: a, inputContainerRef: i, inputContainerRefWrapper: d, optionsContainerRef: f, isDropdownOpen: v, dropdownOptionsContainerId: b, labelId: C, descriptionId: g, errorId: w, isReadOnly: x, ariaLabelAttribute: h, ariaLabel: S, computedAriaLabel: r, isInputComponent: p, size: _, conditionalClasses: M, descriptionConditionalClasses: ie, searchTerm: D, items: B, filteredItems: re, isSearching: F, displayValue: de, selectedValueItem: ue, selectedValueIndex: U, isMultiLevelSelect: j, flattenedItemsList: q, additionalItemsSelected: ce, ariaDescribedBy: pe, openDropdown: H, closeDropdown: N, toggleDropdown: J, clickOutsideDropdown: fe, onOptionSelected: Y, emitShowMoreEvent: Z, textboxKeyboardNavigationListeners: ve, listboxKeyboardNavigationListeners: G, listboxListeners: me, BentoDropdownOptionsContainer: Fe, BentoTypography: ge, ErrorMessage: De, FieldLabel: Ie, vBentoClickOutsideDirective: he, vBentoKeyboardNavigationDirective: $e };
762
- }
763
- });
764
- var pt = function() {
765
- var l;
766
- var e = this, o = e._self._c, t = e._self._setupProxy;
767
- return o("div", { directives: [{ name: "bento-click-outside-directive", rawName: "v-bento-click-outside-directive", value: t.clickOutsideDropdown, expression: "clickOutsideDropdown" }], staticClass: "b-dropdown", class: t.conditionalClasses }, [e.label ? o(t.FieldLabel, { attrs: { id: t.labelId, condensed: e.condensed, label: e.label, "tooltip-text": e.tooltipText, optional: e.optional, required: e.required } }) : e._e(), o("div", e._g({ directives: [{ name: "bento-keyboard-navigation-directive", rawName: "v-bento-keyboard-navigation-directive" }], ref: "inputContainerRefWrapper" }, t.textboxKeyboardNavigationListeners), [o(t.size, { ref: "inputContainerRef", tag: "component", attrs: { condensed: e.condensed, value: t.searchTerm, "additional-items-selected": t.additionalItemsSelected, ariaControls: t.dropdownOptionsContainerId, ariaExpanded: t.isDropdownOpen, "aria-labelledby": e.label ? t.labelId : null, "aria-describedby": t.ariaDescribedBy, "aria-label": t.computedAriaLabel, "aria-readonly": t.isReadOnly, readonly: t.isReadOnly, disabled: e.disabled, "display-value": t.displayValue, "dynamic-filtering": e.dynamicFiltering, "is-invalid": !!e.errorMessage || e.error, multiple: e.multiple, open: t.isDropdownOpen, "selected-value-item": t.isInputComponent ? void 0 : t.selectedValueItem, "show-slot-content-in-multiple": e.showSlotContentInMultiple }, on: { input: function(s) {
768
- t.searchTerm = s;
769
- }, open: t.toggleDropdown, close: t.toggleDropdown }, scopedSlots: e._u([e._l(t.slots, function(s, a) {
770
- return { key: a, fn: function(i) {
771
- return [e._t(a, null, null, i)];
772
- } };
773
- })], null, !0) })], 1), t.inputContainerRef ? o(t.BentoDropdownOptionsContainer, e._g({ ref: "optionsContainerRef", attrs: { id: t.dropdownOptionsContainerId, "aria-label": t.computedAriaLabel, "empty-state": e.emptyState, "debounce-time": (l = e.search) == null ? void 0 : l.debounceTime, disabled: e.disabled, "input-size": t.size, "is-option-disabled": e.isOptionDisabled, items: t.filteredItems, multiple: e.multiple, "static-categories": e.staticCategories, open: t.isDropdownOpen, "selected-value": e.value, searching: t.isSearching, "target-element": t.inputContainerRefWrapper, loading: e.loading, "has-more-items": e.hasMoreItems, "lazy-load-type": e.lazyLoadType, "virtual-scroll": e.virtualScroll }, scopedSlots: e._u([e._l(t.slots, function(s, a) {
774
- return { key: a, fn: function(i) {
775
- return [e._t(a, null, null, i)];
776
- } };
777
- })], null, !0) }, t.listboxListeners)) : e._e(), e.errorMessage ? o(t.ErrorMessage, { staticClass: "b-dropdown__error-message", attrs: { id: t.errorId, "error-message": e.errorMessage } }) : e._e(), e.description || t.hasSlot("description") ? o(t.BentoTypography, { staticClass: "b-dropdown__description", class: t.descriptionConditionalClasses, attrs: { id: t.descriptionId, el: "span" } }, [e._t("description", function() {
778
- return [e._v(" " + e._s(e.description) + " ")];
779
- })], 2) : e._e()], 1);
780
- }, ft = [], vt = /* @__PURE__ */ A(
781
- ct,
782
- pt,
783
- ft,
784
- !1,
785
- null,
786
- "c2829fb3",
787
- null,
788
- null
789
- );
790
- const Dt = vt.exports;
791
- export {
792
- Dt as B,
793
- dt as I,
794
- L as a,
795
- it as u
796
- };
797
- //# sourceMappingURL=dropdown.669b858b.js.map