@adyen/bento-vue3 1.67.0 → 1.68.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 (177) hide show
  1. package/dist/@types/index.d.ts +1956 -2181
  2. package/dist/action-bar.js +1 -1
  3. package/dist/assets/accordion-item.css +1 -1
  4. package/dist/assets/action-bar.css +1 -1
  5. package/dist/assets/base-modal.css +1 -1
  6. package/dist/assets/button-actions.css +1 -1
  7. package/dist/assets/card.css +1 -1
  8. package/dist/assets/checkbox.css +1 -1
  9. package/dist/assets/data-grid.css +1 -1
  10. package/dist/assets/dialog-page.css +1 -1
  11. package/dist/assets/dropdown.css +1 -1
  12. package/dist/assets/file-uploader.css +1 -1
  13. package/dist/assets/filter-bar.css +1 -1
  14. package/dist/assets/header-meta.css +1 -0
  15. package/dist/assets/header-with-views.css +1 -1
  16. package/dist/assets/header.css +1 -1
  17. package/dist/assets/input-field-phone-number.css +1 -1
  18. package/dist/assets/input-field.css +1 -1
  19. package/dist/assets/inspector.css +1 -1
  20. package/dist/assets/menu.css +1 -1
  21. package/dist/assets/modal-fullscreen.css +1 -1
  22. package/dist/assets/popover.css +1 -1
  23. package/dist/assets/sidepanel.css +1 -1
  24. package/dist/assets/summary-grid.css +1 -1
  25. package/dist/assets/textarea.css +1 -1
  26. package/dist/assets/use-cached-selected-values.css +1 -1
  27. package/dist/button.js +1 -1
  28. package/dist/card.js +1 -1
  29. package/dist/checkbox.js +2 -2
  30. package/dist/chunks/{action-bar.ComuZPet.js → action-bar.C93kgr7l.js} +4 -4
  31. package/dist/chunks/{action-bar.ComuZPet.js.map → action-bar.C93kgr7l.js.map} +1 -1
  32. package/dist/chunks/{base-modal.DzJrvis_.js → base-modal.C3_r3rmc.js} +120 -183
  33. package/dist/chunks/base-modal.C3_r3rmc.js.map +1 -0
  34. package/dist/chunks/{button-actions-with-menu.B0nWCTwZ.js → button-actions-with-menu.DUccmaB2.js} +3 -3
  35. package/dist/chunks/{button-actions-with-menu.B0nWCTwZ.js.map → button-actions-with-menu.DUccmaB2.js.map} +1 -1
  36. package/dist/chunks/{button-actions.BwpznQ6c.js → button-actions.CZdO9YOk.js} +7 -7
  37. package/dist/chunks/button-actions.CZdO9YOk.js.map +1 -0
  38. package/dist/chunks/{card.JBOvn2BO.js → card.CS34Mi_G.js} +2 -2
  39. package/dist/chunks/{card.JBOvn2BO.js.map → card.CS34Mi_G.js.map} +1 -1
  40. package/dist/chunks/{checkbox-group.Dc5Olq0c.js → checkbox-group.JRo6xNpe.js} +2 -2
  41. package/dist/chunks/{checkbox-group.Dc5Olq0c.js.map → checkbox-group.JRo6xNpe.js.map} +1 -1
  42. package/dist/chunks/{checkbox.fkPJvdUo.js → checkbox.DGrG3GN1.js} +70 -67
  43. package/dist/chunks/checkbox.DGrG3GN1.js.map +1 -0
  44. package/dist/chunks/{code-snippet.vrlSqi9k.js → code-snippet.aucmPbLw.js} +3 -3
  45. package/dist/chunks/{code-snippet.vrlSqi9k.js.map → code-snippet.aucmPbLw.js.map} +1 -1
  46. package/dist/chunks/{country.BhAcCmRx.js → country.Q95voxeL.js} +2 -2
  47. package/dist/chunks/{country.BhAcCmRx.js.map → country.Q95voxeL.js.map} +1 -1
  48. package/dist/chunks/{dashboard-section.Bg0dfNs-.js → dashboard-section.CUcq2ahu.js} +2 -2
  49. package/dist/chunks/{dashboard-section.Bg0dfNs-.js.map → dashboard-section.CUcq2ahu.js.map} +1 -1
  50. package/dist/chunks/{dashed-underline.DgE-UB-x.js → dashed-underline.DkzQkpaf.js} +2 -2
  51. package/dist/chunks/{dashed-underline.DgE-UB-x.js.map → dashed-underline.DkzQkpaf.js.map} +1 -1
  52. package/dist/chunks/{data-grid-template.Df7j2oxe.js → data-grid-template.CDsV2GFG.js} +2 -2
  53. package/dist/chunks/{data-grid-template.Df7j2oxe.js.map → data-grid-template.CDsV2GFG.js.map} +1 -1
  54. package/dist/chunks/data-grid.BJHcfrTG.js +3861 -0
  55. package/dist/chunks/data-grid.BJHcfrTG.js.map +1 -0
  56. package/dist/chunks/{date-picker.CZ6zU-NJ.js → date-picker.DgpMAGYp.js} +15 -15
  57. package/dist/chunks/{date-picker.CZ6zU-NJ.js.map → date-picker.DgpMAGYp.js.map} +1 -1
  58. package/dist/chunks/{date-range-picker.Dw4R9bIs.js → date-range-picker.Bxa_f6Q0.js} +24 -24
  59. package/dist/chunks/{date-range-picker.Dw4R9bIs.js.map → date-range-picker.Bxa_f6Q0.js.map} +1 -1
  60. package/dist/chunks/dropdown-default-textbox.Ce5D3ipi.js.map +1 -1
  61. package/dist/chunks/dropdown-tag.AV8Pi1SS.js +230 -0
  62. package/dist/chunks/dropdown-tag.AV8Pi1SS.js.map +1 -0
  63. package/dist/chunks/dropdown.CJBk1euy.js +814 -0
  64. package/dist/chunks/dropdown.CJBk1euy.js.map +1 -0
  65. package/dist/chunks/es6.n1ewaW31.js.map +1 -1
  66. package/dist/chunks/{filter-bar.XonJn7ao.js → filter-bar.6D-9UEng.js} +848 -833
  67. package/dist/chunks/filter-bar.6D-9UEng.js.map +1 -0
  68. package/dist/chunks/{footer-actions.CdJLLWNR.js → footer-actions.Bje-DDqw.js} +2 -2
  69. package/dist/chunks/{footer-actions.CdJLLWNR.js.map → footer-actions.Bje-DDqw.js.map} +1 -1
  70. package/dist/chunks/header-meta.Yt43-cUI.js +234 -0
  71. package/dist/chunks/header-meta.Yt43-cUI.js.map +1 -0
  72. package/dist/chunks/{header-with-views.CHbH1_1V.js → header-with-views.DbBUHvvE.js} +697 -678
  73. package/dist/chunks/header-with-views.DbBUHvvE.js.map +1 -0
  74. package/dist/chunks/header.wiq0wlgm.js +141 -0
  75. package/dist/chunks/header.wiq0wlgm.js.map +1 -0
  76. package/dist/chunks/{input-field-password.DWZAf1Oh.js → input-field-password.Cr3A_4n0.js} +4 -4
  77. package/dist/chunks/{input-field-password.DWZAf1Oh.js.map → input-field-password.Cr3A_4n0.js.map} +1 -1
  78. package/dist/chunks/{input-field-phone-number.CbpRItYf.js → input-field-phone-number.DZp5IzU3.js} +548 -532
  79. package/dist/chunks/{input-field-phone-number.CbpRItYf.js.map → input-field-phone-number.DZp5IzU3.js.map} +1 -1
  80. package/dist/chunks/{input-field.DExw_Cow.js → input-field.CmV2d_Zc.js} +30 -29
  81. package/dist/chunks/input-field.CmV2d_Zc.js.map +1 -0
  82. package/dist/chunks/{menu.CeLJ1gIz.js → menu.C-3obPGl.js} +182 -180
  83. package/dist/chunks/{menu.CeLJ1gIz.js.map → menu.C-3obPGl.js.map} +1 -1
  84. package/dist/chunks/{modal-fullscreen.CZnLS-fQ.js → modal-fullscreen.DBTnoSX9.js} +90 -77
  85. package/dist/chunks/modal-fullscreen.DBTnoSX9.js.map +1 -0
  86. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.CP7dV1Yy.js → modal.vue_vue_type_script_setup_true_lang.Cd-mQUJ8.js} +10 -10
  87. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.CP7dV1Yy.js.map → modal.vue_vue_type_script_setup_true_lang.Cd-mQUJ8.js.map} +1 -1
  88. package/dist/chunks/{pagination.DL9LmFMJ.js → pagination.DLYrWpKr.js} +2 -2
  89. package/dist/chunks/{pagination.DL9LmFMJ.js.map → pagination.DLYrWpKr.js.map} +1 -1
  90. package/dist/chunks/popover.DYgCCUCJ.js +200 -0
  91. package/dist/chunks/popover.DYgCCUCJ.js.map +1 -0
  92. package/dist/chunks/popover.types.V8old-GW.js +6 -0
  93. package/dist/chunks/popover.types.V8old-GW.js.map +1 -0
  94. package/dist/chunks/{rich-text-editor.Dl9PsYbk.js → rich-text-editor.Dx78coVL.js} +2 -2
  95. package/dist/chunks/{rich-text-editor.Dl9PsYbk.js.map → rich-text-editor.Dx78coVL.js.map} +1 -1
  96. package/dist/chunks/{search-bar.a-jzP1UA.js → search-bar.CpQ_MEVj.js} +3 -3
  97. package/dist/chunks/{search-bar.a-jzP1UA.js.map → search-bar.CpQ_MEVj.js.map} +1 -1
  98. package/dist/chunks/{secondary-nav.UrmIAVGD.js → secondary-nav.RTBLEukC.js} +2 -2
  99. package/dist/chunks/{secondary-nav.UrmIAVGD.js.map → secondary-nav.RTBLEukC.js.map} +1 -1
  100. package/dist/chunks/{sidepanel.BuNmgmpj.js → sidepanel.DPN__L3Q.js} +2 -2
  101. package/dist/chunks/{sidepanel.BuNmgmpj.js.map → sidepanel.DPN__L3Q.js.map} +1 -1
  102. package/dist/chunks/{summary-grid.types.CoSCUI1V.js → summary-grid.types.CjbbSZBJ.js} +4 -4
  103. package/dist/chunks/summary-grid.types.CjbbSZBJ.js.map +1 -0
  104. package/dist/chunks/{textarea.DXSe9MHH.js → textarea.BBhN67-I.js} +41 -40
  105. package/dist/chunks/textarea.BBhN67-I.js.map +1 -0
  106. package/dist/chunks/{timeline-item.BRHwCA1F.js → timeline-item.CuCII37W.js} +3 -3
  107. package/dist/chunks/{timeline-item.BRHwCA1F.js.map → timeline-item.CuCII37W.js.map} +1 -1
  108. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.CAf69UYO.js → tutorial.vue_vue_type_script_setup_true_lang.nYHtTHqy.js} +28 -27
  109. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.CAf69UYO.js.map → tutorial.vue_vue_type_script_setup_true_lang.nYHtTHqy.js.map} +1 -1
  110. package/dist/chunks/{use-cached-selected-values.D7dOPJSO.js → use-cached-selected-values.Dyoz6cUK.js} +579 -563
  111. package/dist/chunks/use-cached-selected-values.Dyoz6cUK.js.map +1 -0
  112. package/dist/chunks/{use-country-items.4kZgVg_l.js → use-country-items.Duh4bMqW.js} +2 -2
  113. package/dist/chunks/{use-country-items.4kZgVg_l.js.map → use-country-items.Duh4bMqW.js.map} +1 -1
  114. package/dist/chunks/{use-country-phon-code.DVgE19zT.js → use-country-phon-code.BOaJ9PDl.js} +507 -498
  115. package/dist/chunks/{use-country-phon-code.DVgE19zT.js.map → use-country-phon-code.BOaJ9PDl.js.map} +1 -1
  116. package/dist/code-snippet.js +1 -1
  117. package/dist/country.js +2 -2
  118. package/dist/dashboard-template.js +1 -1
  119. package/dist/dashed-underline.js +1 -1
  120. package/dist/data-grid-template.js +1 -1
  121. package/dist/data-grid.js +1 -1
  122. package/dist/date-picker.js +1 -1
  123. package/dist/date-range-picker.js +1 -1
  124. package/dist/dropdown.js +3 -3
  125. package/dist/filter-bar.js +1 -1
  126. package/dist/header-with-views.js +1 -1
  127. package/dist/header.js +1 -1
  128. package/dist/index.js +156 -155
  129. package/dist/index.js.map +1 -1
  130. package/dist/input-field-password.js +1 -1
  131. package/dist/input-field-phone-number.js +1 -1
  132. package/dist/input-field.js +1 -1
  133. package/dist/internal.js +15 -14
  134. package/dist/menu.js +1 -1
  135. package/dist/modal-fullscreen.js +1 -1
  136. package/dist/modal.js +11 -11
  137. package/dist/pagination.js +1 -1
  138. package/dist/popover.js +3 -2
  139. package/dist/popover.js.map +1 -1
  140. package/dist/rich-text-editor.js +1 -1
  141. package/dist/search-bar.js +2 -2
  142. package/dist/secondary-nav.js +1 -1
  143. package/dist/sidepanel.js +1 -1
  144. package/dist/styles/bento-dark.css +10 -2
  145. package/dist/styles/bento-light.css +10 -2
  146. package/dist/styles/bento.css +10 -2
  147. package/dist/styles/legacy.css +10 -2
  148. package/dist/styles/styleguide.css +10 -2
  149. package/dist/summary-grid.js +1 -1
  150. package/dist/textarea.js +1 -1
  151. package/dist/timeline.js +1 -1
  152. package/dist/tutorial.js +1 -1
  153. package/dist/web-types.json +1 -1
  154. package/package.json +24 -7
  155. package/dist/assets/info-icon-with-popover.css +0 -1
  156. package/dist/chunks/base-modal.DzJrvis_.js.map +0 -1
  157. package/dist/chunks/button-actions.BwpznQ6c.js.map +0 -1
  158. package/dist/chunks/checkbox.fkPJvdUo.js.map +0 -1
  159. package/dist/chunks/data-grid.rDZadZwc.js +0 -3781
  160. package/dist/chunks/data-grid.rDZadZwc.js.map +0 -1
  161. package/dist/chunks/dropdown-tag.BlHovDol.js +0 -202
  162. package/dist/chunks/dropdown-tag.BlHovDol.js.map +0 -1
  163. package/dist/chunks/dropdown.B5ZaFDn_.js +0 -957
  164. package/dist/chunks/dropdown.B5ZaFDn_.js.map +0 -1
  165. package/dist/chunks/filter-bar.XonJn7ao.js.map +0 -1
  166. package/dist/chunks/header-with-views.CHbH1_1V.js.map +0 -1
  167. package/dist/chunks/header.CJJWPB5Z.js +0 -254
  168. package/dist/chunks/header.CJJWPB5Z.js.map +0 -1
  169. package/dist/chunks/info-icon-with-popover.DVH46dPy.js +0 -97
  170. package/dist/chunks/info-icon-with-popover.DVH46dPy.js.map +0 -1
  171. package/dist/chunks/input-field.DExw_Cow.js.map +0 -1
  172. package/dist/chunks/modal-fullscreen.CZnLS-fQ.js.map +0 -1
  173. package/dist/chunks/popover.VI3TrUkL.js +0 -350
  174. package/dist/chunks/popover.VI3TrUkL.js.map +0 -1
  175. package/dist/chunks/summary-grid.types.CoSCUI1V.js.map +0 -1
  176. package/dist/chunks/textarea.DXSe9MHH.js.map +0 -1
  177. package/dist/chunks/use-cached-selected-values.D7dOPJSO.js.map +0 -1
@@ -1,957 +0,0 @@
1
- import { ref as C, watch as Te, computed as r, defineComponent as j, useSlots as Ie, toRefs as Ne, createBlock as K, openBlock as L, resolveDynamicComponent as Ae, mergeProps as R, withCtx as z, createElementVNode as te, withKeys as tt, unref as n, createVNode as Q, toHandlers as G, createSlots as de, renderList as ue, renderSlot as X, normalizeProps as ce, guardReactiveProps as pe, createElementBlock as P, createCommentVNode as F, toDisplayString as ye, normalizeClass as fe, withDirectives as ee, vShow as Ce, nextTick as w, useAttrs as at, toRef as x, inject as ot, createTextVNode as lt } from "vue";
2
- import { d as Oe, B as nt } from "./typography.DN5eC5ch.js";
3
- import { a as ie, b as V, c as st, B as J, D as it } from "./dropdown-default-textbox.Ce5D3ipi.js";
4
- /* empty css */
5
- import { _ as Y } from "./_plugin-vue_export-helper.CHgC5LLL.js";
6
- import { s as re } from "./events.FNmSWp_P.js";
7
- import { g as _ } from "./generate-uid.NJ8tVoha.js";
8
- import { u as rt } from "./aria-label.CaUURpnB.js";
9
- import { u as be } from "./i18n.B6g5VX0q.js";
10
- import { a as m, b as me, B as ve, c as dt, u as ut, d as ct } from "./use-cached-selected-values.D7dOPJSO.js";
11
- import { u as pt } from "./use-form-layout-loading.D3lALhtC.js";
12
- import { B as ft } from "./directive.Cbdox5VL.js";
13
- import { B as I, a as mt } from "./keyboard-navigation.CqgGzfZQ.js";
14
- import { u as vt } from "./use-has-slot.B7eQSabc.js";
15
- import { F as yt, E as bt } from "./error-message.DHMHq9bR.js";
16
- import { P as xe } from "./popper-container.b5h4zYgT.js";
17
- import "./popper-container.types.BCZMbVFD.js";
18
- import { B as gt } from "./popover.VI3TrUkL.js";
19
- import "../assets/dropdown.css";
20
- const ge = {
21
- "en-US": {
22
- apply: "Apply",
23
- cancel: "Cancel",
24
- noOptionsMatchThisSearch: "No options match this search"
25
- },
26
- "ja-JP": {
27
- apply: "適用",
28
- cancel: "キャンセル"
29
- },
30
- "pt-BR": {
31
- apply: "Aplicar",
32
- cancel: "Cancelar"
33
- }
34
- }, ht = (e, i, s, a) => {
35
- const l = C(e.value), { t: o } = be({ messages: ge });
36
- Te(e, () => {
37
- l.value = e.value;
38
- });
39
- const t = r(
40
- () => JSON.stringify(l.value) === JSON.stringify(e.value)
41
- ), c = () => {
42
- a(m.SELECT, l.value), a(m.CLOSE_DROPDOWN);
43
- }, v = () => {
44
- l.value = e.value, a(m.CLOSE_DROPDOWN);
45
- }, g = () => {
46
- s.value && i.value && (l.value = e.value);
47
- }, d = r(() => [
48
- {
49
- title: o("apply"),
50
- event: c,
51
- disabled: t.value
52
- },
53
- {
54
- title: o("cancel"),
55
- event: v
56
- }
57
- ]), b = (S) => {
58
- l.value = S, i.value || a(m.SELECT, S);
59
- }, u = (S) => {
60
- b(S), a(m.TAB);
61
- }, O = (S) => {
62
- b(S), a(m.ENTER);
63
- }, B = (S) => {
64
- b(S), a(m.SPACE);
65
- }, y = () => {
66
- v(), a(m.ESCAPE);
67
- }, D = () => {
68
- a(m.SHOW_MORE);
69
- }, E = {
70
- [m.SELECT]: b,
71
- [m.SHOW_MORE]: D,
72
- [m.TAB]: u,
73
- [m.SPACE]: B,
74
- [m.ENTER]: O
75
- };
76
- return {
77
- // Values
78
- actions: d,
79
- internalSelectedValue: l,
80
- // Methods
81
- listeners: E,
82
- onEscapeKey: y,
83
- onOutsideDropdownClick: g
84
- };
85
- }, St = j({
86
- i18n: { messages: ge },
87
- name: "bento-dropdown-options-container"
88
- }), Lt = /* @__PURE__ */ j({
89
- ...St,
90
- props: {
91
- /**
92
- * Defines a string value that labels an interactive element.
93
- */
94
- ariaLabel: { type: String, default: null },
95
- /**
96
- * Indicates that dropdown items are loading
97
- */
98
- componentLoading: { type: Boolean, default: !1 },
99
- /**
100
- * Empty state props used with the inner empty state component which is displayed when no search results are found.
101
- */
102
- emptyState: {
103
- type: Object,
104
- default: void 0
105
- },
106
- /**
107
- * Disables dropdown functionality
108
- */
109
- disabled: { type: Boolean, default: !1 },
110
- /**
111
- * Indicates whether there are more items to load
112
- */
113
- hasMoreItems: { type: Boolean, default: !1 },
114
- /**
115
- * Identifies the listbox whose contents are controlled by the the combobox on which the aria-controls attribute is set.
116
- */
117
- id: { type: String, required: !0 },
118
- /**
119
- * Function that allows the options to be disabled
120
- *
121
- * @type {BentoDropdownIsOptionDisabled}
122
- * @param {BentoDropdownOptionItem} option - Dropdown option object
123
- * @param {string} option.label - Option's label text
124
- * @param {string|number} option.value - Option's value
125
- * @param {unknown} option.data - Option's extra data to be passed to the default slot
126
- */
127
- isOptionDisabled: {
128
- type: Function,
129
- default: void 0
130
- },
131
- /**
132
- * The option elements to populate the dropdown with.
133
- * It must be an array of {@see BentoDropdownOptionItem }
134
- * * @property {string} value.label - Text to be displayed in the option
135
- * * @property {string,number} value.value - Value of the option
136
- */
137
- items: {
138
- type: Array,
139
- required: !0
140
- },
141
- /**
142
- * The type of `Lazy Load`.
143
- * Type "automatic" will enable infinite scrolling
144
- * Type "button" will enable lazy loading with "Show more" button
145
- */
146
- lazyLoadType: {
147
- type: String,
148
- default: ve.AUTOMATIC,
149
- validator: (e) => Object.values(ve).includes(e)
150
- },
151
- /**
152
- * Indicates if new options are lazy loading.
153
- */
154
- loading: { type: Boolean, default: !1 },
155
- /**
156
- * If enabled, the user will be able to select multiple items.
157
- */
158
- multiple: { type: Boolean, default: !1 },
159
- /**
160
- * Indicates if the dropdown is open so that
161
- * the container can be displayed.
162
- */
163
- open: { type: Boolean, required: !0 },
164
- /**
165
- * The `input` value.
166
- * Providing an empty string or empty array will select no options.
167
- * Set to an empty string `''` if you don't want any of the available options to be selected for single select
168
- */
169
- selectedValue: {
170
- type: Array,
171
- default: null
172
- },
173
- /**
174
- * Flag that indicates that an external search it's being made
175
- * to filter out the items inside the the multi-select listbox
176
- *
177
- * If enabled, hides the "Select all" checkbox in "multiple" mode.
178
- */
179
- searching: me.props.searching,
180
- /**
181
- * If enabled, dropdown will display non-selectable, static categories
182
- */
183
- staticCategories: { type: Boolean, default: !1 },
184
- /**
185
- * Reference to the DOM element or Vue component for positioning
186
- * the Dropdown container.
187
- */
188
- targetElement: { type: xe.props.targetElement.type, required: !0 },
189
- /**
190
- * Enables virtual scrolling if set to true or by providing an object with itemHeight function.
191
- * The itemHeight function is used to calculate the height of rendered item given it's index.
192
- */
193
- virtualScroll: {
194
- type: [Boolean, Object],
195
- default: !1
196
- }
197
- },
198
- setup(e, { expose: i, emit: s }) {
199
- const a = Ie(), l = s, o = e, { selectedValue: t, multiple: c } = Ne(o), v = C(null), { t: g } = be({ messages: ge }), d = r(() => o.open && !o.disabled), b = r(() => g("noOptionsMatchThisSearch")), u = r(() => ({
200
- "b-dropdown-options-container--single": !(o != null && o.multiple)
201
- })), O = r(() => ({
202
- "b-dropdown-options-container__listbox--single": !(o != null && o.multiple)
203
- })), { actions: B, internalSelectedValue: y, listeners: D, onEscapeKey: E, onOutsideDropdownClick: S } = ht(t, c, d, l), W = r(() => o != null && o.multiple ? gt : xe), U = r(() => {
204
- var p;
205
- const N = {
206
- "min-width": `${(p = o == null ? void 0 : o.targetElement) == null ? void 0 : p.clientWidth}px`,
207
- "max-width": "min(500px, 95%)"
208
- };
209
- return o != null && o.multiple ? {
210
- actionsLayout: "space-between",
211
- ariaLabel: o.ariaLabel,
212
- actions: B.value,
213
- divider: !0,
214
- fallbackPosition: ["top-start"],
215
- id: _(`dropdown-options-${o.id}`),
216
- open: o.open,
217
- position: "bottom-start",
218
- style: {
219
- width: "auto",
220
- ...N
221
- },
222
- targetElement: o.targetElement
223
- } : {
224
- fallbackPosition: ["top-start"],
225
- offset: [0, 8],
226
- position: "bottom-start",
227
- style: {
228
- display: d.value ? "block" : "none",
229
- ...N
230
- },
231
- targetElement: o.targetElement
232
- };
233
- });
234
- return i({
235
- onOutsideDropdownClick: S
236
- }), (N, p) => (L(), K(Ae(W.value), R({
237
- class: ["b-dropdown-options-container", u.value]
238
- }, U.value), {
239
- default: z(() => [
240
- te("div", {
241
- onKeydown: p[0] || (p[0] = tt(
242
- //@ts-ignore
243
- (...h) => n(E) && n(E)(...h),
244
- ["esc"]
245
- ))
246
- }, [
247
- Q(n(me), R({
248
- id: e.id,
249
- ref_key: "dropdownOptionsListboxRef",
250
- ref: v,
251
- "aria-label": e.ariaLabel,
252
- class: ["b-dropdown-options-container__listbox", O.value],
253
- "component-loading": e.componentLoading,
254
- "empty-state": e.emptyState,
255
- "is-option-disabled": e.isOptionDisabled,
256
- items: e.items,
257
- "selected-value": n(y),
258
- multiple: n(c),
259
- "static-categories": e.staticCategories,
260
- "no-results-message": b.value,
261
- searching: e.searching,
262
- loading: e.loading,
263
- "lazy-load-type": e.lazyLoadType,
264
- "has-more-items": e.hasMoreItems,
265
- "virtual-scroll": e.virtualScroll
266
- }, G(n(D))), de({ _: 2 }, [
267
- ue(n(a), (h, A) => ({
268
- name: A,
269
- fn: z(($) => [
270
- X(N.$slots, A, ce(pe($)), void 0, !0)
271
- ])
272
- }))
273
- ]), 1040, ["id", "aria-label", "class", "component-loading", "empty-state", "is-option-disabled", "items", "selected-value", "multiple", "static-categories", "no-results-message", "searching", "loading", "lazy-load-type", "has-more-items", "virtual-scroll"])
274
- ], 32)
275
- ]),
276
- _: 3
277
- }, 16, ["class"]));
278
- }
279
- }), Et = /* @__PURE__ */ Y(Lt, [["__scopeId", "data-v-aa806d62"]]);
280
- let Be = 0;
281
- const wt = {
282
- beforeCreate() {
283
- this.uuid = Be.toString(), Be += 1;
284
- }
285
- }, Ct = { key: 0 };
286
- function Ot(e, i, s, a, l, o) {
287
- return L(), P("svg", R({ role: "img" }, e.$attrs, {
288
- class: "ui-assets-icons-16",
289
- xmlns: "http://www.w3.org/2000/svg",
290
- width: "16",
291
- height: "16",
292
- fill: "none"
293
- }), [
294
- e.$attrs["svg-title"] ? (L(), P("title", Ct, ye(e.$attrs["svg-title"]), 1)) : F("", !0),
295
- i[0] || (i[0] = te("path", {
296
- fill: "#001222",
297
- d: "M5.00011 5.43922L8.00011 8.43922L11.0001 5.43922L12.0608 6.49988L8.00011 10.5605L3.93945 6.49988L5.00011 5.43922Z"
298
- }, null, -1))
299
- ], 16);
300
- }
301
- const xt = /* @__PURE__ */ Y(wt, [["render", Ot]]);
302
- let De = 0;
303
- const Bt = {
304
- beforeCreate() {
305
- this.uuid = De.toString(), De += 1;
306
- }
307
- }, Dt = { key: 0 };
308
- function Tt(e, i, s, a, l, o) {
309
- return L(), P("svg", R({ role: "img" }, e.$attrs, {
310
- class: "ui-assets-icons-16",
311
- xmlns: "http://www.w3.org/2000/svg",
312
- width: "16",
313
- height: "16",
314
- fill: "none"
315
- }), [
316
- e.$attrs["svg-title"] ? (L(), P("title", Dt, ye(e.$attrs["svg-title"]), 1)) : F("", !0),
317
- i[0] || (i[0] = te("path", {
318
- fill: "#001222",
319
- d: "M10.9999 10.5608L7.9999 7.56077L4.9999 10.5608L3.93924 9.50011L7.9999 5.43945L12.0606 9.50011L10.9999 10.5608Z"
320
- }, null, -1))
321
- ], 16);
322
- }
323
- const It = /* @__PURE__ */ Y(Bt, [["render", Tt]]), Nt = { class: "b-dropdown-small-textbox__chevron" }, At = j({
324
- name: "dropdown-small-textbox",
325
- inheritAttrs: !1
326
- }), $t = /* @__PURE__ */ j({
327
- ...At,
328
- props: {
329
- /**
330
- * The number of additional items that have been selected in the dropdown.
331
- */
332
- additionalItemsSelected: { type: [Number, String], default: 0 },
333
- /**
334
- * Sets the aria-controls attribute on the textbox. This should correspond to the popover's id that the textbox triggers.
335
- */
336
- ariaControls: { type: String, required: !0 },
337
- /**
338
- * 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.
339
- */
340
- ariaExpanded: {
341
- type: [String, Boolean],
342
- required: !0
343
- },
344
- /**
345
- * If no label element is used then the aria-label is be set should be set.
346
- */
347
- ariaLabel: { type: String, default: null },
348
- /**
349
- * Corresponds to the label's id that labels the textbox element.
350
- */
351
- ariaLabelledby: { type: String, default: null },
352
- /**
353
- * Custom debounce time. Default: 300
354
- */
355
- debounceTime: { type: Number, default: 300 },
356
- /**
357
- * Disables any textbox functionality
358
- */
359
- disabled: { type: Boolean, default: !1 },
360
- /**
361
- * Selected option's label
362
- */
363
- displayValue: { type: String, default: null },
364
- /**
365
- * Sets the possibility to type into the textbox
366
- */
367
- dynamicFiltering: { type: Boolean, default: !1 },
368
- /**
369
- * Marks the textbox as invalid, rendering an error state
370
- */
371
- isInvalid: { type: Boolean, default: !1 },
372
- /**
373
- * Indicates if the dropdown is open so that
374
- * the respective event can be emitted
375
- */
376
- open: { type: Boolean, default: !1 },
377
- /**
378
- * Sets the dropdown to readonly state
379
- */
380
- readonly: { type: Boolean, default: !1 },
381
- /**
382
- * The input value
383
- */
384
- value: { type: String, default: "" }
385
- },
386
- emits: ["clear", "close", "input", "keydown", "open"],
387
- setup(e, { expose: i, emit: s }) {
388
- const a = s, l = e, o = C(null), t = r(() => ({
389
- [`b-dropdown-small-textbox--${ie.DISABLED}`]: l.disabled,
390
- [`b-dropdown-small-textbox--${ie.READONLY}`]: l.readonly,
391
- [`b-dropdown-small-textbox--${ie.OPENED}`]: l.open
392
- })), c = r(() => l.open && !l.disabled && !l.readonly), v = (y) => {
393
- a("input", y);
394
- }, g = (y) => {
395
- a("keydown", y);
396
- }, d = (y) => {
397
- re(y), a("open");
398
- }, b = (y) => {
399
- re(y), a("close");
400
- }, u = (y) => {
401
- re(y), a("clear");
402
- }, O = {
403
- [V.INPUT]: v,
404
- [V.OPEN]: d,
405
- [V.CLOSE]: b,
406
- [V.CLEAR]: u,
407
- [V.KEYDOWN]: g
408
- };
409
- return i({
410
- focus: () => {
411
- o.value.focus();
412
- }
413
- }), (y, D) => (L(), P("div", {
414
- class: fe(["b-dropdown-small-textbox", t.value])
415
- }, [
416
- Q(st, R({
417
- ref_key: "baseTextbox",
418
- ref: o
419
- }, { ...y.$attrs, ...y.$props }, {
420
- class: "b-dropdown-small-textbox__textbox",
421
- size: n(J).SMALL
422
- }, G(O)), {
423
- icon: z(() => [
424
- te("div", Nt, [
425
- ee(Q(n(It), { "svg-title": "opened" }, null, 512), [
426
- [Ce, c.value]
427
- ]),
428
- ee(Q(n(xt), { "svg-title": "closed" }, null, 512), [
429
- [Ce, !c.value]
430
- ])
431
- ])
432
- ]),
433
- _: 1
434
- }, 16, ["size"])
435
- ], 2));
436
- }
437
- }), Mt = /* @__PURE__ */ Y($t, [["__scopeId", "data-v-66b5eaa5"]]), Rt = (e, i) => i.value.reduce((s, a) => {
438
- if (a.items) {
439
- const l = a.items.filter(
440
- (t) => e.value.find((c) => c.value === t.value)
441
- );
442
- l.length === a.items.length ? s.push(a.displayValue ?? a.label) : l.forEach(({ label: t, displayValue: c }) => s.push(c ?? t));
443
- }
444
- return e.value.find((l) => l.value === a.value) && s.push(a.displayValue ?? a.label), s;
445
- }, []).join(", "), Pt = ({ items: e, placeholder: i, selectedValues: s, isMultiSelect: a }) => {
446
- const l = r(
447
- () => a.value && e.value.find((t) => {
448
- var c;
449
- return (c = t.items) == null ? void 0 : c.length;
450
- })
451
- );
452
- return r(() => s.value.length ? l.value ? Rt(s, e) : s.value.map(({ label: t, displayValue: c }) => c ?? t).join(", ") : i.value || null);
453
- }, $e = (e) => {
454
- var i;
455
- (i = e.value.$children) == null || i[0].$refs.textbox.focus();
456
- }, kt = ({
457
- inputContainerRef: e,
458
- optionsContainerRef: i,
459
- selectedValueIndex: s,
460
- isDropdownOpen: a,
461
- isDynamicFltering: l,
462
- items: o,
463
- isMultiple: t
464
- }, c, v, g) => {
465
- const d = async (p) => {
466
- var h;
467
- l.value && await w(), (h = o.value[p]) == null || h.focus();
468
- }, b = async (p) => {
469
- var A, $;
470
- l.value && await w();
471
- const h = (A = i.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef) == null ? void 0 : A.$el.querySelectorAll(
472
- "button"
473
- );
474
- h.length ? ($ = h[p]) == null || $.focus() : d(p);
475
- }, u = (p) => {
476
- var h;
477
- return (h = i.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef) == null ? void 0 : h.setListboxFocusedIndex(
478
- p
479
- );
480
- }, O = ({ detail: p }) => {
481
- p.preventDefault(), a.value || v(), w(() => {
482
- t ? b(0) : (u(s.value), d(s.value));
483
- });
484
- }, B = ({ detail: p }) => {
485
- p.preventDefault(), a.value || v(), w(() => {
486
- t ? b(0) : (u(s.value), d(s.value));
487
- });
488
- }, y = () => {
489
- a.value || (v(), w(() => {
490
- u(o.value.length - 1), d(o.value.length - 1);
491
- }));
492
- }, D = () => {
493
- a.value && (g(), $e(e));
494
- }, E = () => {
495
- a.value && g();
496
- }, S = () => {
497
- a.value || v(), w(() => {
498
- d(0);
499
- });
500
- }, W = ({ detail: p }) => {
501
- p.preventDefault(), c(), a.value && w(() => {
502
- t ? b(0) : (u(s.value), d(s.value));
503
- });
504
- }, U = ({ detail: p }) => {
505
- p.preventDefault(), c(), a.value && w(() => {
506
- t ? b(0) : (u(s.value), d(s.value));
507
- });
508
- };
509
- return r(() => ({
510
- ...l.value ? {} : { [I.SPACE]: W },
511
- [I.ENTER]: U,
512
- [I.ARROW_DOWN]: O,
513
- [I.ARROW_UP]: B,
514
- [I.END]: y,
515
- [I.ESCAPE]: D,
516
- [I.HOME]: S,
517
- [I.TAB]: E
518
- }));
519
- }, Kt = ({ inputContainerRef: e, isDropdownOpen: i }, s) => {
520
- const a = () => {
521
- i.value && s(), w(() => {
522
- $e(e);
523
- });
524
- };
525
- return {
526
- [m.ENTER]: a,
527
- [m.ESCAPE]: a,
528
- [m.TAB]: a,
529
- [m.SPACE]: a
530
- };
531
- };
532
- function Ft(e, i, s, a) {
533
- const l = C(e), o = C(i), t = (v, g = []) => g.flatMap((d) => d.label.toLocaleLowerCase().includes(v) ? a != null && a.value && d.items ? [...t(v, d.items)] : [d, ...t(v, d.items)] : d.items ? [...t(v, d.items)] : []);
534
- return Te(l, () => {
535
- s !== void 0 && s(l.value);
536
- }), r(() => {
537
- if (!l.value || s !== void 0)
538
- return o.value;
539
- const v = l.value.toLocaleLowerCase();
540
- return t(v, o.value);
541
- });
542
- }
543
- const Me = {
544
- "en-US": {
545
- all: "All",
546
- ariaLabelFallback: "Dropdown",
547
- clearSearch: "Clear filter"
548
- },
549
- "ja-JP": {
550
- all: "すべて",
551
- clearFilter: "フィルターをクリア"
552
- },
553
- "pt-BR": {
554
- all: "Todos",
555
- clearFilter: "Limpar filtro"
556
- }
557
- }, zt = Symbol("input field component injection key"), ra = Symbol("input field hint injection key"), da = Symbol("input field parent component injection key"), jt = j({
558
- i18n: { messages: Me },
559
- name: "b-dropdown",
560
- components: {
561
- DropdownInputDefault: it,
562
- DropdownInputSmall: Mt
563
- }
564
- }), Wt = /* @__PURE__ */ j({
565
- ...jt,
566
- props: {
567
- /**
568
- * @deprecated from version 2.0.0. Use the aria-label attribute instead.
569
- */
570
- /**
571
- * Defines a string value that labels an interactive element.
572
- */
573
- ariaLabel: { type: String, default: null },
574
- /**
575
- * Renders the dropdown with a condensed style.
576
- */
577
- condensed: { type: Boolean, default: !1 },
578
- /**
579
- * Empty state props used with the inner empty state component which is displayed when no search results are found.
580
- */
581
- emptyState: {
582
- type: Object,
583
- default: void 0
584
- },
585
- /**
586
- * Disables dropdown functionality.
587
- */
588
- disabled: { type: Boolean, default: !1 },
589
- /**
590
- * Sets the possibility to type into the textbox.
591
- */
592
- dynamicFiltering: {
593
- type: Boolean,
594
- default: !1
595
- },
596
- /**
597
- * Highlights the dropdown in an erroneous state.
598
- *
599
- * @deprecated Use "errorMessage" prop instead
600
- */
601
- error: { type: Boolean, default: !1 },
602
- /**
603
- * Highlights the dropdown in an erroneous state with an error message.
604
- */
605
- errorMessage: { type: String, default: null },
606
- /**
607
- * Descriptive supporting text visbile underneath the dropdown.
608
- */
609
- description: { type: String, default: null },
610
- /**
611
- * Indicates whether there are more items to load
612
- */
613
- hasMoreItems: { type: Boolean, default: !1 },
614
- /**
615
- * Function that dertermines which options are disabled from interaction.
616
- *
617
- * @type {BentoListboxIsOptionDisabled}
618
- * @param {BentoListboxOptionItem} option - Dropdown option object
619
- * @param {string} option.label - Option's label text
620
- * @param {string|number} option.value - Option's value
621
- * @param {unknown} option.data - Option's extra data to be passed to the default slot
622
- */
623
- isOptionDisabled: {
624
- type: Function,
625
- default: void 0
626
- },
627
- /**
628
- * The option elements to populate the dropdown with.
629
- * It must be an array of {@see BentoListboxOptionItem }
630
- * * @property {string} value.label - Text to be displayed in the option
631
- * * @property {string,number} value.value - Value of the option
632
- */
633
- items: {
634
- type: Array,
635
- default: () => []
636
- },
637
- /**
638
- * Text that is displayed as a label above the element.
639
- */
640
- label: { type: String, default: null },
641
- /**
642
- * Indicates if new options are lazy loading.
643
- */
644
- loading: { type: Boolean, default: !1 },
645
- /**
646
- * Indicates that dropdown items are loading
647
- */
648
- componentLoading: { type: Boolean, default: !1 },
649
- /**
650
- * The type of `Lazy Load`.
651
- * Type "automatic" will enable infinite scrolling
652
- * Type "button" will enable lazy loading with "Show more" button
653
- */
654
- lazyLoadType: {
655
- type: String,
656
- default: me.props.lazyLoadType.default,
657
- validator: (e) => Object.values(ve).includes(e)
658
- },
659
- /*
660
- * If enabled, the user will be able to select multiple items.
661
- */
662
- multiple: { type: Boolean, default: !1 },
663
- /**
664
- * Highlights the dropdown is optional.
665
- */
666
- optional: { type: Boolean, default: !1 },
667
- /**
668
- * Text that appears in the form control when it has no value set
669
- */
670
- placeholder: { type: String, default: null },
671
- /**
672
- * Sets the dropdown to readonly state
673
- */
674
- readonly: { type: Boolean, default: !1 },
675
- /**
676
- * Highlights the dropdown is required.
677
- */
678
- required: { type: Boolean, default: !1 },
679
- /**
680
- * Dropdown search options and events.
681
- * @see BentoDropdownSearchOptions
682
- */
683
- search: {
684
- type: Object,
685
- default: void 0
686
- },
687
- /**
688
- * Toggles whether to use the slot content select items shown in the textbox in multiple mode.
689
- */
690
- showSlotContentInMultiple: { type: Boolean, default: !1 },
691
- /**
692
- * @deprecated Do not use. Only 'default' size should be used.
693
- */
694
- size: {
695
- type: String,
696
- default: null,
697
- validator: (e) => Object.values(J).includes(e)
698
- },
699
- /**
700
- * If enabled, dropdown will display non-selectable, static categories
701
- */
702
- staticCategories: { type: Boolean, default: !1 },
703
- /**
704
- * Adds a info icon next to the label to display the passed tooltip message.
705
- */
706
- tooltipText: { type: String, default: null },
707
- /**
708
- * The `input` value.
709
- * Providing an empty string will select no options.
710
- * Set to an empty string `''` if you don't want any of the available options to be selected.
711
- */
712
- value: {
713
- type: [String, Number, Array, Object],
714
- default: null
715
- },
716
- /**
717
- * Enables virtual scrolling if set to true or by providing an object with itemHeight function.
718
- * The itemHeight function is used to calculate the height of rendered item given it's index.
719
- */
720
- virtualScroll: {
721
- type: [Boolean, Object],
722
- default: !1
723
- },
724
- /**
725
- * Enables value/label value handling. When `true`, the component expects and emits value/label
726
- * pair objects instead of primitive values.
727
- *
728
- * This affects both the `value` prop and the `input` event payload.
729
- *
730
- * - **Input (`value` prop):** Expects a `{ value: string | number, label: string }` object (or an array of them for multi-select).
731
- * - **Output (`input` event):** Emits a `{ value: string | number, label: string }` object (or an array of them) upon selection.
732
- *
733
- * This is particularly useful when a selected item's label is not available in the `items` prop,
734
- * allowing the component to display the correct label for values loaded from external sources.
735
- * @default false
736
- */
737
- enableValueLabelPair: { type: Boolean, default: !1 }
738
- },
739
- emits: ["input", "show-more"],
740
- setup(e, { expose: i, emit: s }) {
741
- var we;
742
- const a = at(), l = Ie(), o = vt(l), t = e, c = s, { t: v } = be({ messages: Me }), g = C(null), d = C(null), b = C(null), u = C(!1), O = _("bento-dropdown-options-container"), B = _("dropdown-label"), y = _("dropdown-description"), D = _("dropdown-error"), { isReadOnly: E } = pt(x(t, "readonly")), { cachedSelectedListboxOptions: S, cachedListboxSelectedValues: W, setCachedValues: U } = dt(
743
- x(t, "items"),
744
- x(t, "value"),
745
- x(t, "multiple"),
746
- x(t, "enableValueLabelPair")
747
- ), N = C(a["aria-label"]), { ariaLabel: p, label: h } = Ne(t), A = r(() => v("ariaLabelFallback")), $ = rt({
748
- // TODO: take ariaLabel ref away when aria-label prop is removed
749
- ariaLabel: p.value || N,
750
- label: h,
751
- defaultFallback: A
752
- }), he = t.size === J.SMALL || ot(zt, !1), Re = r(() => he ? J.SMALL : J.DEFAULT), Pe = r(() => ({
753
- "b-dropdown--condensed": t.condensed
754
- })), ke = r(() => ({
755
- "b-dropdown__description--error": !!t.errorMessage
756
- })), M = C(""), Z = x(t, "items"), Se = x(t, "staticCategories"), ae = Ft(M, Z, (we = t == null ? void 0 : t.search) == null ? void 0 : we.searchEvent, Se), oe = r(() => t.dynamicFiltering && !!M.value), Ke = Pt({
757
- items: Z,
758
- placeholder: x(t, "placeholder"),
759
- isMultiSelect: x(t, "multiple"),
760
- selectedValues: S
761
- }), Fe = r(() => {
762
- if (t != null && t.multiple && Array.isArray(t.value))
763
- return t.items.filter(
764
- ({ value: f }) => (t == null ? void 0 : t.value) && (t == null ? void 0 : t.value).includes(f)
765
- );
766
- if (!t.multiple && t.staticCategories) {
767
- const f = t.items.find(
768
- (k) => k.items.some((q) => q.value === t.value)
769
- );
770
- return f ? f.items.find((k) => k.value === t.value) : null;
771
- }
772
- return t.items.find(({ value: f }) => f === (t == null ? void 0 : t.value));
773
- }), ze = r(() => {
774
- const f = ae.value.findIndex(({ value: T }) => t.value === T);
775
- return f > -1 ? f : 0;
776
- }), { isMultiLevelSelect: Le, flattenedItemsList: je } = ut(Z), We = r(() => Le.value && !t.staticCategories), Ue = r(() => We.value ? "treeitem" : "option"), qe = r(() => {
777
- if (t.multiple) {
778
- const f = Array.isArray(t.value) ? t.value.length : 0, T = Le.value ? je.value.length : Z.value.length;
779
- return f === 0 ? null : !t.hasMoreItems && T > 0 && T === f ? v("all") : f;
780
- }
781
- return null;
782
- }), He = r(
783
- () => `${t.description ? y : ""} ${t.errorMessage ? D : ""}`.trim() || null
784
- ), Ve = r(() => {
785
- var f;
786
- return (f = b.value) == null ? void 0 : f.$el;
787
- }), { visibleDomOptions: Je, updateVisibleDomOptions: Ee } = ct(
788
- Ve,
789
- ae,
790
- Ue
791
- ), _e = () => {
792
- E.value || (u.value = !0, w(() => {
793
- Ee();
794
- }));
795
- }, le = () => {
796
- u.value = !1;
797
- }, ne = () => {
798
- E.value || (u.value = !u.value, w(() => {
799
- Ee();
800
- }), oe.value && (M.value = ""));
801
- }, Ye = () => {
802
- oe.value && (M.value = ""), u.value && (u.value = !1, b.value.onOutsideDropdownClick());
803
- }, Ze = (f) => {
804
- t.multiple || (M.value = "", u.value = !1), U(f), c("input", W.value);
805
- }, Qe = () => {
806
- c(m.SHOW_MORE);
807
- }, Xe = kt(
808
- {
809
- inputContainerRef: g,
810
- optionsContainerRef: b,
811
- selectedValueIndex: ze,
812
- isDropdownOpen: u,
813
- isDynamicFltering: x(t, "dynamicFiltering"),
814
- items: Je,
815
- isMultiple: t.multiple
816
- },
817
- ne,
818
- _e,
819
- le
820
- ), Ge = Kt(
821
- {
822
- inputContainerRef: g,
823
- isDropdownOpen: u
824
- },
825
- le
826
- ), et = {
827
- [m.CLOSE_DROPDOWN]: le,
828
- [m.SELECT]: Ze,
829
- [m.SHOW_MORE]: Qe,
830
- ...Ge
831
- };
832
- return t.error && Oe(
833
- 'BentoDropdown "error" property',
834
- `Use the BentoDropdown "errorMessage" property instead to indicate that there is a modifier error.
835
- Having the field as "undefined" will hide/remove the error.
836
- <bento-dropdown errorMessage="Error message text" />`,
837
- "2.0.0"
838
- ), t.size && Oe('BentoDropdown "size" property', "Do not use. Only 'default' size should be used.", "2.0.0"), i({
839
- focus: () => {
840
- g.value.focus();
841
- }
842
- }), (f, T) => {
843
- var k;
844
- return ee((L(), P("div", {
845
- class: fe(["b-dropdown", Pe.value])
846
- }, [
847
- n(h) ? (L(), K(n(yt), {
848
- key: 0,
849
- id: n(B),
850
- condensed: e.condensed,
851
- label: n(h),
852
- "tooltip-text": e.tooltipText,
853
- optional: e.optional,
854
- required: e.required
855
- }, null, 8, ["id", "condensed", "label", "tooltip-text", "optional", "required"])) : F("", !0),
856
- ee((L(), P("div", R({
857
- ref_key: "inputContainerRefWrapper",
858
- ref: d
859
- }, G(n(Xe), !0)), [
860
- (L(), K(Ae(Re.value), {
861
- ref_key: "inputContainerRef",
862
- ref: g,
863
- condensed: e.condensed,
864
- value: M.value,
865
- "additional-items-selected": qe.value,
866
- "aria-controls": n(O),
867
- ariaExpanded: u.value,
868
- "aria-labelledby": n(h) ? n(B) : null,
869
- "aria-describedby": He.value,
870
- "aria-label": n($),
871
- "aria-readonly": n(E),
872
- readonly: n(E),
873
- disabled: e.disabled,
874
- "display-value": n(Ke),
875
- "dynamic-filtering": e.dynamicFiltering,
876
- "is-invalid": !!e.errorMessage || e.error,
877
- multiple: e.multiple,
878
- open: u.value,
879
- "selected-value-item": n(he) ? void 0 : Fe.value,
880
- "show-slot-content-in-multiple": e.showSlotContentInMultiple,
881
- onInput: T[0] || (T[0] = (q) => M.value = q),
882
- onOpen: ne,
883
- onClose: ne
884
- }, de({ _: 2 }, [
885
- ue(n(l), (q, H) => ({
886
- name: H,
887
- fn: z((se) => [
888
- X(f.$slots, H, ce(pe(se)), void 0, !0)
889
- ])
890
- }))
891
- ]), 1064, ["condensed", "value", "additional-items-selected", "aria-controls", "ariaExpanded", "aria-labelledby", "aria-describedby", "aria-label", "aria-readonly", "readonly", "disabled", "display-value", "dynamic-filtering", "is-invalid", "multiple", "open", "selected-value-item", "show-slot-content-in-multiple"]))
892
- ], 16)), [
893
- [n(mt)]
894
- ]),
895
- g.value ? (L(), K(n(Et), R({
896
- key: 1,
897
- id: n(O),
898
- ref_key: "optionsContainerRef",
899
- ref: b,
900
- "aria-label": n($),
901
- "component-loading": e.componentLoading,
902
- "empty-state": e.emptyState,
903
- "debounce-time": (k = e.search) == null ? void 0 : k.debounceTime,
904
- disabled: e.disabled,
905
- "is-option-disabled": e.isOptionDisabled,
906
- items: n(ae),
907
- multiple: e.multiple,
908
- "static-categories": Se.value,
909
- open: u.value,
910
- "selected-value": n(S),
911
- searching: oe.value,
912
- "target-element": d.value,
913
- loading: e.loading,
914
- "has-more-items": e.hasMoreItems,
915
- "lazy-load-type": e.lazyLoadType,
916
- "virtual-scroll": e.virtualScroll
917
- }, G(et)), de({ _: 2 }, [
918
- ue(n(l), (q, H) => ({
919
- name: H,
920
- fn: z((se) => [
921
- X(f.$slots, H, ce(pe(se)), void 0, !0)
922
- ])
923
- }))
924
- ]), 1040, ["id", "aria-label", "component-loading", "empty-state", "debounce-time", "disabled", "is-option-disabled", "items", "multiple", "static-categories", "open", "selected-value", "searching", "target-element", "loading", "has-more-items", "lazy-load-type", "virtual-scroll"])) : F("", !0),
925
- e.errorMessage ? (L(), K(n(bt), {
926
- key: 2,
927
- id: n(D),
928
- "error-message": e.errorMessage,
929
- class: "b-dropdown__error-message"
930
- }, null, 8, ["id", "error-message"])) : F("", !0),
931
- e.description || n(o)("description") ? (L(), K(n(nt), {
932
- key: 3,
933
- id: n(y),
934
- class: fe(["b-dropdown__description", ke.value]),
935
- el: "span"
936
- }, {
937
- default: z(() => [
938
- X(f.$slots, "description", {}, () => [
939
- lt(ye(e.description), 1)
940
- ], !0)
941
- ]),
942
- _: 3
943
- }, 8, ["id", "class"])) : F("", !0)
944
- ], 2)), [
945
- [n(ft), Ye]
946
- ]);
947
- };
948
- }
949
- }), ua = /* @__PURE__ */ Y(Wt, [["__scopeId", "data-v-288c1407"]]);
950
- export {
951
- ua as B,
952
- ra as I,
953
- zt as a,
954
- da as b,
955
- Ft as u
956
- };
957
- //# sourceMappingURL=dropdown.B5ZaFDn_.js.map