@adyen/bento-vue3 1.95.0 → 1.96.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 (104) hide show
  1. package/dist/@types/index.d.ts +77 -0
  2. package/dist/assets/accordion-item.css +1 -1
  3. package/dist/assets/action-bar.css +1 -1
  4. package/dist/assets/base-modal.css +1 -1
  5. package/dist/assets/button-actions.css +1 -1
  6. package/dist/assets/card.css +1 -1
  7. package/dist/assets/data-grid.css +1 -1
  8. package/dist/assets/date-picker.css +1 -1
  9. package/dist/assets/dialog-page.css +1 -1
  10. package/dist/assets/draggable-handle.css +1 -1
  11. package/dist/assets/dropdown.css +1 -1
  12. package/dist/assets/field-label.css +1 -1
  13. package/dist/assets/file-uploader.css +1 -1
  14. package/dist/assets/filter-bar.css +1 -1
  15. package/dist/assets/input-field-password.css +1 -1
  16. package/dist/assets/inspector.css +1 -1
  17. package/dist/assets/modal-fullscreen.css +1 -1
  18. package/dist/assets/navigation-menu-group.css +1 -1
  19. package/dist/assets/secondary-nav.css +1 -1
  20. package/dist/assets/sidepanel.css +1 -1
  21. package/dist/checkbox.js +2 -2
  22. package/dist/chunks/{calendar.74nP7Nu6.js → calendar.iQyNwQBL.js} +64 -58
  23. package/dist/chunks/calendar.iQyNwQBL.js.map +1 -0
  24. package/dist/chunks/{checkbox-group.BWx4wn0F.js → checkbox-group.BcDIXL27.js} +2 -2
  25. package/dist/chunks/{checkbox-group.BWx4wn0F.js.map → checkbox-group.BcDIXL27.js.map} +1 -1
  26. package/dist/chunks/{checkbox.DwfrmbwI.js → checkbox.LTRqb-pE.js} +18 -18
  27. package/dist/chunks/{checkbox.DwfrmbwI.js.map → checkbox.LTRqb-pE.js.map} +1 -1
  28. package/dist/chunks/{code-snippet.B9QFjFXf.js → code-snippet.DHzB-8JJ.js} +2 -2
  29. package/dist/chunks/{code-snippet.B9QFjFXf.js.map → code-snippet.DHzB-8JJ.js.map} +1 -1
  30. package/dist/chunks/{dashboard-section.C4plNql-.js → dashboard-section.Da6ZFGtm.js} +2 -2
  31. package/dist/chunks/{dashboard-section.C4plNql-.js.map → dashboard-section.Da6ZFGtm.js.map} +1 -1
  32. package/dist/chunks/{data-grid-template.Bwxo0AII.js → data-grid-template.-MuGcJp1.js} +2 -2
  33. package/dist/chunks/{data-grid-template.Bwxo0AII.js.map → data-grid-template.-MuGcJp1.js.map} +1 -1
  34. package/dist/chunks/{data-grid.Bx3Xy1tb.js → data-grid.CNIXkdCJ.js} +8 -8
  35. package/dist/chunks/{data-grid.Bx3Xy1tb.js.map → data-grid.CNIXkdCJ.js.map} +1 -1
  36. package/dist/chunks/{date-picker.89J8PGKn.js → date-picker.DyImOUH4.js} +61 -61
  37. package/dist/chunks/date-picker.DyImOUH4.js.map +1 -0
  38. package/dist/chunks/{date-range-picker.iaXigXuW.js → date-range-picker.BigC6wm2.js} +67 -67
  39. package/dist/chunks/{date-range-picker.iaXigXuW.js.map → date-range-picker.BigC6wm2.js.map} +1 -1
  40. package/dist/chunks/draggable-handle.C1dudqKz.js +1649 -0
  41. package/dist/chunks/{draggable-handle.CKuHzAzS.js.map → draggable-handle.C1dudqKz.js.map} +1 -1
  42. package/dist/chunks/{dropdown-tag.DNWUbf7x.js → dropdown-tag.C1ei1SyR.js} +2 -2
  43. package/dist/chunks/{dropdown-tag.DNWUbf7x.js.map → dropdown-tag.C1ei1SyR.js.map} +1 -1
  44. package/dist/chunks/{dropdown.CK8cdMyV.js → dropdown.C5um1anU.js} +292 -278
  45. package/dist/chunks/dropdown.C5um1anU.js.map +1 -0
  46. package/dist/chunks/{filter-bar.CqbdRCQD.js → filter-bar.CvZnM3hM.js} +279 -276
  47. package/dist/chunks/{filter-bar.CqbdRCQD.js.map → filter-bar.CvZnM3hM.js.map} +1 -1
  48. package/dist/chunks/{header-with-views.CB8M1Udi.js → header-with-views.ubPTyW9A.js} +4 -4
  49. package/dist/chunks/{header-with-views.CB8M1Udi.js.map → header-with-views.ubPTyW9A.js.map} +1 -1
  50. package/dist/chunks/{input-field-password.DJKloBB3.js → input-field-password.CZ-NTpZF.js} +5 -3
  51. package/dist/chunks/input-field-password.CZ-NTpZF.js.map +1 -0
  52. package/dist/chunks/{input-field-phone-number.C3fQypln.js → input-field-phone-number.DOHk6gSp.js} +2 -2
  53. package/dist/chunks/{input-field-phone-number.C3fQypln.js.map → input-field-phone-number.DOHk6gSp.js.map} +1 -1
  54. package/dist/chunks/{input-field.HgrRdDec.js → input-field.DBlTGgAD.js} +2 -2
  55. package/dist/chunks/{input-field.HgrRdDec.js.map → input-field.DBlTGgAD.js.map} +1 -1
  56. package/dist/chunks/{input-time.DxCYIHSf.js → input-time.CHIjCO74.js} +3 -3
  57. package/dist/chunks/{input-time.DxCYIHSf.js.map → input-time.CHIjCO74.js.map} +1 -1
  58. package/dist/chunks/{pagination.vqSlDmeK.js → pagination.DbpHH_53.js} +2 -2
  59. package/dist/chunks/{pagination.vqSlDmeK.js.map → pagination.DbpHH_53.js.map} +1 -1
  60. package/dist/chunks/{rich-text-editor.u_fKHVgZ.js → rich-text-editor.u-V4fNWK.js} +2 -2
  61. package/dist/chunks/{rich-text-editor.u_fKHVgZ.js.map → rich-text-editor.u-V4fNWK.js.map} +1 -1
  62. package/dist/chunks/{search-bar.CgSUD89l.js → search-bar.TKgi1KLs.js} +3 -3
  63. package/dist/chunks/{search-bar.CgSUD89l.js.map → search-bar.TKgi1KLs.js.map} +1 -1
  64. package/dist/chunks/secondary-nav.0OsJiAWI.js +315 -0
  65. package/dist/chunks/{secondary-nav.BqqNrHZE.js.map → secondary-nav.0OsJiAWI.js.map} +1 -1
  66. package/dist/chunks/{selection-card-group.C2Av3uyz.js → selection-card-group.C59ZIrVm.js} +9 -9
  67. package/dist/chunks/{selection-card-group.C2Av3uyz.js.map → selection-card-group.C59ZIrVm.js.map} +1 -1
  68. package/dist/chunks/{tab.DWoYKpTv.js → tab.ByjWuWQz.js} +107 -98
  69. package/dist/chunks/{tab.DWoYKpTv.js.map → tab.ByjWuWQz.js.map} +1 -1
  70. package/dist/chunks/{use-cached-selected-values.CtWNiy-e.js → use-cached-selected-values.DOw5IKdU.js} +2 -2
  71. package/dist/chunks/{use-cached-selected-values.CtWNiy-e.js.map → use-cached-selected-values.DOw5IKdU.js.map} +1 -1
  72. package/dist/chunks/{use-date-input-formatter.BshboCF9.js → use-date-input-formatter.x285YiSd.js} +2 -2
  73. package/dist/chunks/{use-date-input-formatter.BshboCF9.js.map → use-date-input-formatter.x285YiSd.js.map} +1 -1
  74. package/dist/code-snippet.js +1 -1
  75. package/dist/dashboard-template.js +1 -1
  76. package/dist/data-grid-template.js +1 -1
  77. package/dist/data-grid.js +1 -1
  78. package/dist/date-picker.js +2 -2
  79. package/dist/date-range-picker.js +2 -2
  80. package/dist/date-time-picker.js +4 -4
  81. package/dist/draggable.js +1 -1
  82. package/dist/dropdown.js +3 -3
  83. package/dist/filter-bar.js +1 -1
  84. package/dist/header-with-views.js +1 -1
  85. package/dist/index.js +25 -25
  86. package/dist/input-field-password.js +1 -1
  87. package/dist/input-field-phone-number.js +1 -1
  88. package/dist/input-field.js +1 -1
  89. package/dist/input-time.js +1 -1
  90. package/dist/internal.js +2 -2
  91. package/dist/pagination.js +1 -1
  92. package/dist/rich-text-editor.js +1 -1
  93. package/dist/search-bar.js +2 -2
  94. package/dist/secondary-nav.js +1 -1
  95. package/dist/selection-card.js +1 -1
  96. package/dist/tabs.js +1 -1
  97. package/dist/web-types.json +1 -1
  98. package/package.json +3 -3
  99. package/dist/chunks/calendar.74nP7Nu6.js.map +0 -1
  100. package/dist/chunks/date-picker.89J8PGKn.js.map +0 -1
  101. package/dist/chunks/draggable-handle.CKuHzAzS.js +0 -1639
  102. package/dist/chunks/dropdown.CK8cdMyV.js.map +0 -1
  103. package/dist/chunks/input-field-password.DJKloBB3.js.map +0 -1
  104. package/dist/chunks/secondary-nav.BqqNrHZE.js +0 -306
@@ -1,25 +1,25 @@
1
- import { ref as D, watch as ve, computed as d, defineComponent as _, useSlots as he, toRefs as _e, openBlock as b, createBlock as H, resolveDynamicComponent as Pe, mergeProps as A, withCtx as W, createElementVNode as ie, withKeys as re, unref as o, createVNode as Y, toHandlers as de, createSlots as be, renderList as ue, renderSlot as U, normalizeProps as oe, guardReactiveProps as ye, createCommentVNode as R, useAttrs as Ve, inject as Ie, nextTick as F, createElementBlock as C, normalizeClass as ne, Fragment as Ee, createTextVNode as fe, toDisplayString as Q, withModifiers as $e, withDirectives as se, vShow as me, toRef as z } from "vue";
2
- import { B as Ke, d as xe } from "./typography.B3J6_tYk.js";
1
+ import { ref as D, watch as ve, computed as d, defineComponent as _, useSlots as he, toRefs as _e, openBlock as b, createBlock as Y, resolveDynamicComponent as Ve, mergeProps as A, withCtx as R, createElementVNode as ie, withKeys as re, unref as o, createVNode as j, toHandlers as de, createSlots as be, renderList as ue, renderSlot as W, normalizeProps as oe, guardReactiveProps as ye, createCommentVNode as F, useAttrs as Ke, inject as Ie, nextTick as P, createElementBlock as C, normalizeClass as ne, Fragment as Ee, createTextVNode as fe, toDisplayString as Q, withModifiers as Me, withDirectives as se, vShow as me, toRef as U } from "vue";
2
+ import { B as qe, d as xe } from "./typography.B3J6_tYk.js";
3
3
  import { g as te } from "./generate-uid.DBWe4g6T.js";
4
- import { u as bt } from "./aria-label.CaUURpnB.js";
5
4
  import { u as ge } from "./index.B875RXHM.js";
6
- import { u as yt } from "./form-field.D_2g7vaP.js";
7
- import { B as S, b as Oe, a as Me, d as mt, u as vt, c as ht, e as gt } from "./use-cached-selected-values.CtWNiy-e.js";
8
- import { u as St } from "./use-form-layout-loading.CWbjZiwP.js";
9
- import { u as qe } from "./use-has-slot.CyMiImRQ.js";
10
- import { B as wt } from "./directive.D1-d-C2K.js";
11
- import { B as j, a as Lt } from "./keyboard-navigation.DWmhelVv.js";
12
- import { F as Ct } from "./field-label.CLV3nSzz.js";
13
- import { P as Ne } from "./popper-container.BH4WxeUj.js";
14
- import { h as Et } from "./button-actions.CxTxPprd.js";
5
+ import { u as ze } from "./use-has-slot.CyMiImRQ.js";
6
+ import { C as yt } from "./cross-circle-fill.BWCKKn0E.js";
7
+ import { C as mt } from "./cross-circle-fill-small.H1wH-vcZ.js";
15
8
  import { _ as ee } from "./_plugin-vue_export-helper.CHgC5LLL.js";
16
- import { E as xt } from "./error-message.Dyvrw6ZB.js";
17
- import { C as Ot } from "./cross-circle-fill.BWCKKn0E.js";
18
- import { C as It } from "./cross-circle-fill-small.H1wH-vcZ.js";
19
- /* empty css */
20
9
  import { s as ae } from "./events.BQOQSSb7.js";
21
- import { C as Dt } from "./chevron-down.XeE-LBV_.js";
22
- import { C as Bt } from "./chevron-up.Cmgl2a3x.js";
10
+ import { C as vt } from "./chevron-down.XeE-LBV_.js";
11
+ import { C as ht } from "./chevron-up.Cmgl2a3x.js";
12
+ /* empty css */
13
+ import { u as gt } from "./aria-label.CaUURpnB.js";
14
+ import { u as St } from "./form-field.D_2g7vaP.js";
15
+ import { B as S, b as Oe, a as Ne, d as wt, u as Lt, c as Ct, e as Et } from "./use-cached-selected-values.DOw5IKdU.js";
16
+ import { u as xt } from "./use-form-layout-loading.CWbjZiwP.js";
17
+ import { B as Ot } from "./directive.D1-d-C2K.js";
18
+ import { B as H, a as It } from "./keyboard-navigation.DWmhelVv.js";
19
+ import { F as Dt } from "./field-label.CLV3nSzz.js";
20
+ import { h as Bt, e as At } from "./button-actions.CxTxPprd.js";
21
+ import { P as Re } from "./popper-container.BH4WxeUj.js";
22
+ import { E as kt } from "./error-message.Dyvrw6ZB.js";
23
23
  import "../assets/dropdown.css";
24
24
  var le = /* @__PURE__ */ ((e) => (e.DEFAULT = "DropdownInputDefault", e.SMALL = "DropdownInputSmall", e))(le || {});
25
25
  const De = {
@@ -33,8 +33,8 @@ const De = {
33
33
  "ja-JP": { apply: "適用", cancel: "キャンセル", noOptionsMatchThisSearch: "この検索に一致するオプションはありません" },
34
34
  "pt-BR": { apply: "Aplicar", cancel: "Cancelar", noOptionsMatchThisSearch: "Nenhuma opção corresponde a esta busca" },
35
35
  "zh-CN": { apply: "应用", cancel: "取消", noOptionsMatchThisSearch: "没有符合此搜索条件的选项" }
36
- }, At = (e, c, u, l) => {
37
- const i = D(e.value), { t: n } = ge({ messages: De });
36
+ }, Tt = (e, c, u, l) => {
37
+ const i = D(e.value), { t: s } = ge({ messages: De });
38
38
  ve(e, () => {
39
39
  i.value = e.value;
40
40
  });
@@ -48,12 +48,12 @@ const De = {
48
48
  u.value && c.value && (i.value = e.value);
49
49
  }, p = d(() => [
50
50
  {
51
- title: n("apply"),
51
+ title: s("apply"),
52
52
  event: a,
53
53
  disabled: t.value
54
54
  },
55
55
  {
56
- title: n("cancel"),
56
+ title: s("cancel"),
57
57
  event: m
58
58
  }
59
59
  ]), g = (h) => {
@@ -84,11 +84,11 @@ const De = {
84
84
  onEscapeKey: B,
85
85
  onOutsideDropdownClick: w
86
86
  };
87
- }, kt = _({
87
+ }, $t = _({
88
88
  i18n: { messages: De },
89
89
  name: "bento-dropdown-options-container"
90
- }), Tt = /* @__PURE__ */ _({
91
- ...kt,
90
+ }), Mt = /* @__PURE__ */ _({
91
+ ...$t,
92
92
  props: {
93
93
  /**
94
94
  * Defines a string value that labels an interactive element.
@@ -147,8 +147,8 @@ const De = {
147
147
  */
148
148
  lazyLoadType: {
149
149
  type: String,
150
- default: Me.AUTOMATIC,
151
- validator: (e) => Object.values(Me).includes(e)
150
+ default: Ne.AUTOMATIC,
151
+ validator: (e) => Object.values(Ne).includes(e)
152
152
  },
153
153
  /**
154
154
  * Indicates if new options are lazy loading.
@@ -187,7 +187,7 @@ const De = {
187
187
  * Reference to the DOM element or Vue component for positioning
188
188
  * the Dropdown container.
189
189
  */
190
- targetElement: { type: Ne.props.targetElement.type, required: !0 },
190
+ targetElement: { type: Re.props.targetElement.type, required: !0 },
191
191
  /**
192
192
  * Enables virtual scrolling if set to true or by providing an object with itemHeight function.
193
193
  * The itemHeight function is used to calculate the height of rendered item given it's index.
@@ -198,29 +198,29 @@ const De = {
198
198
  }
199
199
  },
200
200
  setup(e, { expose: c, emit: u }) {
201
- const l = he(), i = u, n = e, { selectedValue: t, multiple: a } = _e(n), m = D(null), { t: w } = ge({ messages: De }), p = d(() => n.open && !n.disabled), g = d(() => w("noOptionsMatchThisSearch")), v = d(() => ({
202
- "b-dropdown-options-container--single": !n?.multiple
201
+ const l = he(), i = u, s = e, { selectedValue: t, multiple: a } = _e(s), m = D(null), { t: w } = ge({ messages: De }), p = d(() => s.open && !s.disabled), g = d(() => w("noOptionsMatchThisSearch")), v = d(() => ({
202
+ "b-dropdown-options-container--single": !s?.multiple
203
203
  })), y = d(() => ({
204
- "b-dropdown-options-container__listbox--single": !n?.multiple
205
- })), { actions: I, internalSelectedValue: B, listeners: r, onEscapeKey: x, onOutsideDropdownClick: h } = At(t, a, p, i), L = d(() => n?.multiple ? Et : Ne), T = d(() => {
204
+ "b-dropdown-options-container__listbox--single": !s?.multiple
205
+ })), { actions: I, internalSelectedValue: B, listeners: r, onEscapeKey: x, onOutsideDropdownClick: h } = Tt(t, a, p, i), L = d(() => s?.multiple ? Bt : Re), T = d(() => {
206
206
  const $ = {
207
- "min-width": `${n?.targetElement?.clientWidth}px`,
207
+ "min-width": `${s?.targetElement?.clientWidth}px`,
208
208
  "max-width": "min(500px, 95%)"
209
209
  };
210
- return n?.multiple ? {
210
+ return s?.multiple ? {
211
211
  actionsLayout: "space-between",
212
- ariaLabel: n.ariaLabel,
212
+ ariaLabel: s.ariaLabel,
213
213
  actions: I.value,
214
214
  divider: !0,
215
215
  fallbackPosition: ["top-start"],
216
- id: te(`dropdown-options-${n.id}`),
217
- open: n.open,
216
+ id: te(`dropdown-options-${s.id}`),
217
+ open: s.open,
218
218
  position: "bottom-start",
219
219
  style: {
220
220
  width: "auto",
221
221
  ...$
222
222
  },
223
- targetElement: n.targetElement
223
+ targetElement: s.targetElement
224
224
  } : {
225
225
  fallbackPosition: ["top-start"],
226
226
  offset: [0, 8],
@@ -229,24 +229,24 @@ const De = {
229
229
  display: p.value ? "block" : "none",
230
230
  ...$
231
231
  },
232
- targetElement: n.targetElement
232
+ targetElement: s.targetElement
233
233
  };
234
234
  });
235
235
  return c({
236
236
  onOutsideDropdownClick: h
237
- }), ($, P) => p.value ? (b(), H(Pe(L.value), A({
237
+ }), ($, V) => p.value ? (b(), Y(Ve(L.value), A({
238
238
  key: 0,
239
239
  class: ["b-dropdown-options-container", v.value]
240
240
  }, T.value), {
241
- default: W(() => [
241
+ default: R(() => [
242
242
  ie("div", {
243
- onKeydown: P[0] || (P[0] = re(
243
+ onKeydown: V[0] || (V[0] = re(
244
244
  //@ts-ignore
245
- (...V) => o(x) && o(x)(...V),
245
+ (...K) => o(x) && o(x)(...K),
246
246
  ["esc"]
247
247
  ))
248
248
  }, [
249
- Y(o(Oe), A({
249
+ j(o(Oe), A({
250
250
  id: e.id,
251
251
  ref_key: "dropdownOptionsListboxRef",
252
252
  ref: m,
@@ -266,21 +266,21 @@ const De = {
266
266
  "has-more-items": e.hasMoreItems,
267
267
  "virtual-scroll": e.virtualScroll
268
268
  }, de(o(r))), be({ _: 2 }, [
269
- ue(o(l), (V, M) => ({
269
+ ue(o(l), (K, M) => ({
270
270
  name: M,
271
- fn: W((J) => [
272
- U($.$slots, M, oe(ye(J)), void 0, !0)
271
+ fn: R((J) => [
272
+ W($.$slots, M, oe(ye(J)), void 0, !0)
273
273
  ])
274
274
  }))
275
275
  ]), 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"])
276
276
  ], 32)
277
277
  ]),
278
278
  _: 3
279
- }, 16, ["class"])) : R("", !0);
279
+ }, 16, ["class"])) : F("", !0);
280
280
  }
281
- }), $t = /* @__PURE__ */ ee(Tt, [["__scopeId", "data-v-abf92e14"]]);
281
+ }), Nt = /* @__PURE__ */ ee(Mt, [["__scopeId", "data-v-abf92e14"]]);
282
282
  var k = /* @__PURE__ */ ((e) => (e.DISABLED = "disabled", e.READONLY = "readonly", e.HAS_ITEMS = "has-items", e.OPENED = "opened", e.ERROR = "error", e))(k || {}), E = /* @__PURE__ */ ((e) => (e.OPEN = "dropdown-base-open", e.KEYDOWN = "dropdown-base-keydown", e.CLOSE = "dropdown-base-close", e.INPUT = "dropdown-base-input", e.CLEAR = "dropdown-base-clear", e))(E || {});
283
- const Mt = /* @__PURE__ */ Symbol("dropdown small size injection key"), ze = /* @__PURE__ */ Symbol("dropdown underline style injection key"), Ue = {
283
+ const Rt = /* @__PURE__ */ Symbol("dropdown small size injection key"), Ue = /* @__PURE__ */ Symbol("dropdown underline style injection key"), We = {
284
284
  "de-DE": { clearSearch: "Suche löschen" },
285
285
  "en-GB": { clearSearch: "Clear search" },
286
286
  "en-US": { clearSearch: "Clear search" },
@@ -291,22 +291,22 @@ const Mt = /* @__PURE__ */ Symbol("dropdown small size injection key"), ze = /*
291
291
  "ja-JP": { clearSearch: "検索をクリア" },
292
292
  "pt-BR": { clearSearch: "Limpar busca" },
293
293
  "zh-CN": { clearSearch: "清除搜索" }
294
- }, Nt = ["id", "value", "disabled", "readonly", "required"], Rt = ["id", "aria-readonly", "tabindex"], Ft = {
294
+ }, Ft = ["id", "value", "disabled", "readonly", "required"], Pt = ["id", "aria-readonly", "tabindex"], _t = {
295
295
  key: 1,
296
296
  class: "b-dropdown-base-textbox__input-multiple-selected"
297
- }, _t = { class: "b-dropdown-base-textbox__input-selected-element" }, Pt = {
297
+ }, Vt = { class: "b-dropdown-base-textbox__input-selected-element" }, Kt = {
298
298
  key: 2,
299
299
  class: "b-dropdown-base-textbox__additional-items"
300
- }, Vt = {
300
+ }, qt = {
301
301
  key: 3,
302
302
  class: "b-dropdown-base-textbox__icon",
303
303
  "aria-hidden": "true"
304
- }, Kt = ["tabindex", "onKeydown"], qt = _({
305
- i18n: { messages: Ue },
304
+ }, zt = ["tabindex", "onKeydown"], Ut = _({
305
+ i18n: { messages: We },
306
306
  name: "dropdown-base-textbox",
307
307
  inheritAttrs: !1
308
- }), zt = /* @__PURE__ */ _({
309
- ...qt,
308
+ }), Wt = /* @__PURE__ */ _({
309
+ ...Ut,
310
310
  props: {
311
311
  /**
312
312
  * The number of additional items that have been selected in the dropdown.
@@ -391,7 +391,7 @@ const Mt = /* @__PURE__ */ Symbol("dropdown small size injection key"), ze = /*
391
391
  }
392
392
  },
393
393
  setup(e, { expose: c, emit: u }) {
394
- const { t: l } = ge({ messages: Ue }), i = Ve(), n = he(), t = qe(n), a = e, m = u, w = D(null), p = te("textbox"), g = Ie(ze, !1), v = d(() => ({
394
+ const { t: l } = ge({ messages: We }), i = Ke(), s = he(), t = ze(s), a = e, m = u, w = D(null), p = te("textbox"), g = Ie(Ue, !1), v = d(() => ({
395
395
  [`b-dropdown-base-textbox--${k.DISABLED}`]: a.disabled,
396
396
  [`b-dropdown-base-textbox--${k.READONLY}`]: a.readonly,
397
397
  [`b-dropdown-base-textbox--${k.HAS_ITEMS}`]: !!a.additionalItemsSelected,
@@ -420,16 +420,16 @@ const Mt = /* @__PURE__ */ Symbol("dropdown small size injection key"), ze = /*
420
420
  ve(
421
421
  () => h.value,
422
422
  () => {
423
- h.value && !a.alwaysComboboxIsInput && F(() => {
423
+ h.value && !a.alwaysComboboxIsInput && P(() => {
424
424
  w.value.focus();
425
425
  });
426
426
  }
427
427
  );
428
428
  const $ = async () => {
429
- !a.disabled && !a.readonly && (m(E.OPEN), await F(), w.value.focus());
430
- }, P = () => {
429
+ !a.disabled && !a.readonly && (m(E.OPEN), await P(), w.value.focus());
430
+ }, V = () => {
431
431
  a.open && (w.value.focus(), m(E.CLOSE));
432
- }, V = (O) => a.open && O.target.tagName === "INPUT" ? null : a.open ? P() : $(), M = () => {
432
+ }, K = (O) => a.open && O.target.tagName === "INPUT" ? null : a.open ? V() : $(), M = () => {
433
433
  m(E.CLEAR), m(E.INPUT, ""), w.value.focus();
434
434
  }, J = (O) => {
435
435
  !a.readonly && !a.disabled ? m(E.INPUT, O.target.value) : (O.preventDefault(), O.stopPropagation());
@@ -441,16 +441,16 @@ const Mt = /* @__PURE__ */ Symbol("dropdown small size injection key"), ze = /*
441
441
  }), (O, f) => (b(), C("div", {
442
442
  class: ne(O.$attrs.class),
443
443
  "data-testid": "textbox-wrapper",
444
- onClick: V,
445
- onKeydown: re(P, ["escape"])
444
+ onClick: K,
445
+ onKeydown: re(V, ["escape"])
446
446
  }, [
447
- Y(o(Ke), {
447
+ j(o(qe), {
448
448
  class: ne(["b-dropdown-base-textbox", v.value]),
449
449
  variant: o(g) ? "title" : "body",
450
450
  el: "div",
451
451
  "data-testid": "base-textbox"
452
452
  }, {
453
- default: W(() => [
453
+ default: R(() => [
454
454
  h.value ? (b(), C("input", A({ key: 0 }, r.value, {
455
455
  id: o(p),
456
456
  ref_key: "textbox",
@@ -466,10 +466,10 @@ const Mt = /* @__PURE__ */ Symbol("dropdown small size injection key"), ze = /*
466
466
  required: y.value,
467
467
  onKeydown: [
468
468
  f[0] || (f[0] = (N) => O.$emit(o(E).KEYDOWN, N)),
469
- re(V, ["enter"])
469
+ re(K, ["enter"])
470
470
  ],
471
471
  onInput: J
472
- }), null, 16, Nt)) : (b(), C("div", A({
472
+ }), null, 16, Ft)) : (b(), C("div", A({
473
473
  key: 1,
474
474
  id: o(p)
475
475
  }, r.value, {
@@ -481,15 +481,15 @@ const Mt = /* @__PURE__ */ Symbol("dropdown small size injection key"), ze = /*
481
481
  tabindex: e.disabled ? -1 : 0
482
482
  }), [
483
483
  L.value ? (b(), C(Ee, { key: 0 }, [
484
- o(t)("display-value") ? U(O.$slots, "display-value", oe(A({ key: 0 }, e.selectedValueItem)), void 0, !0) : U(O.$slots, "default", oe(A({ key: 1 }, e.selectedValueItem)), () => [
484
+ o(t)("display-value") ? W(O.$slots, "display-value", oe(A({ key: 0 }, e.selectedValueItem)), void 0, !0) : W(O.$slots, "default", oe(A({ key: 1 }, e.selectedValueItem)), () => [
485
485
  fe(Q(e.displayValue), 1)
486
486
  ], !0)
487
- ], 64)) : T.value ? (b(), C("div", Ft, [
487
+ ], 64)) : T.value ? (b(), C("div", _t, [
488
488
  (b(!0), C(Ee, null, ue(x.value, (N) => (b(), C("div", {
489
489
  key: N.value
490
490
  }, [
491
- ie("div", _t, [
492
- U(O.$slots, "default", A({ ref_for: !0 }, N), () => [
491
+ ie("div", Vt, [
492
+ W(O.$slots, "default", A({ ref_for: !0 }, N), () => [
493
493
  fe(Q(e.displayValue), 1)
494
494
  ], !0)
495
495
  ])
@@ -497,38 +497,38 @@ const Mt = /* @__PURE__ */ Symbol("dropdown small size injection key"), ze = /*
497
497
  ])) : (b(), C(Ee, { key: 2 }, [
498
498
  fe(Q(e.displayValue), 1)
499
499
  ], 64))
500
- ], 16, Rt)),
501
- e.additionalItemsSelected ? (b(), C("span", Pt, Q(e.additionalItemsSelected), 1)) : R("", !0),
502
- o(t)("icon") && !B.value ? (b(), C("span", Vt, [
503
- U(O.$slots, "icon", {}, void 0, !0)
504
- ])) : R("", !0),
500
+ ], 16, Pt)),
501
+ e.additionalItemsSelected ? (b(), C("span", Kt, Q(e.additionalItemsSelected), 1)) : F("", !0),
502
+ o(t)("icon") && !B.value ? (b(), C("span", qt, [
503
+ W(O.$slots, "icon", {}, void 0, !0)
504
+ ])) : F("", !0),
505
505
  B.value ? (b(), C("span", {
506
506
  key: 4,
507
507
  class: "b-dropdown-base-textbox__clear-search",
508
508
  tabindex: e.disabled ? -1 : 0,
509
509
  "data-testid": "clear-search-button",
510
- onClick: $e(M, ["stop"]),
511
- onKeydown: re($e(M, ["stop"]), ["enter"]),
510
+ onClick: Me(M, ["stop"]),
511
+ onKeydown: re(Me(M, ["stop"]), ["enter"]),
512
512
  onKeyup: re(M, ["space"])
513
513
  }, [
514
- e.size === o(le).SMALL ? (b(), H(o(It), {
514
+ e.size === o(le).SMALL ? (b(), Y(o(mt), {
515
515
  key: 0,
516
516
  "svg-title": o(l)("clearSearch")
517
- }, null, 8, ["svg-title"])) : (b(), H(o(Ot), {
517
+ }, null, 8, ["svg-title"])) : (b(), Y(o(yt), {
518
518
  key: 1,
519
519
  "svg-title": o(l)("clearSearch")
520
520
  }, null, 8, ["svg-title"]))
521
- ], 40, Kt)) : R("", !0)
521
+ ], 40, zt)) : F("", !0)
522
522
  ]),
523
523
  _: 3
524
524
  }, 8, ["class", "variant"])
525
525
  ], 34));
526
526
  }
527
- }), We = /* @__PURE__ */ ee(zt, [["__scopeId", "data-v-d9e852a4"]]), Ut = { class: "b-dropdown-default-textbox__chevron" }, Wt = _({
527
+ }), je = /* @__PURE__ */ ee(Wt, [["__scopeId", "data-v-d9e852a4"]]), jt = { class: "b-dropdown-default-textbox__chevron" }, Ht = _({
528
528
  name: "dropdown-default-textbox",
529
529
  inheritAttrs: !1
530
- }), jt = /* @__PURE__ */ _({
531
- ...Wt,
530
+ }), Yt = /* @__PURE__ */ _({
531
+ ...Ht,
532
532
  props: {
533
533
  /**
534
534
  * The number of additional items that have been selected in the dropdown.
@@ -616,13 +616,13 @@ const Mt = /* @__PURE__ */ Symbol("dropdown small size injection key"), ze = /*
616
616
  },
617
617
  emits: ["clear", "close", "input", "keydown", "open"],
618
618
  setup(e, { expose: c, emit: u }) {
619
- const l = u, i = he(), n = e, t = D(null), a = d(() => ({
620
- [`b-dropdown-default-textbox--${k.ERROR}`]: !n.disabled && !n.readonly && n.isInvalid,
621
- [`b-dropdown-default-textbox--${k.DISABLED}`]: n.disabled,
622
- [`b-dropdown-default-textbox--${k.READONLY}`]: n.readonly,
623
- [`b-dropdown-default-textbox--${k.OPENED}`]: n.open,
624
- "b-dropdown-default-textbox--condensed": n.condensed
625
- })), m = d(() => n.open && !n.disabled && !n.readonly), w = (r) => {
619
+ const l = u, i = he(), s = e, t = D(null), a = d(() => ({
620
+ [`b-dropdown-default-textbox--${k.ERROR}`]: !s.disabled && !s.readonly && s.isInvalid,
621
+ [`b-dropdown-default-textbox--${k.DISABLED}`]: s.disabled,
622
+ [`b-dropdown-default-textbox--${k.READONLY}`]: s.readonly,
623
+ [`b-dropdown-default-textbox--${k.OPENED}`]: s.open,
624
+ "b-dropdown-default-textbox--condensed": s.condensed
625
+ })), m = d(() => s.open && !s.disabled && !s.readonly), w = (r) => {
626
626
  l("input", r);
627
627
  }, p = (r) => {
628
628
  l("keydown", r);
@@ -647,19 +647,19 @@ const Mt = /* @__PURE__ */ Symbol("dropdown small size injection key"), ze = /*
647
647
  class: ne(["b-dropdown-default-textbox", a.value]),
648
648
  "data-testid": "default-textbox"
649
649
  }, [
650
- Y(We, A({
650
+ j(je, A({
651
651
  ref_key: "baseTextbox",
652
652
  ref: t
653
653
  }, { ...r.$attrs, ...r.$props }, {
654
654
  class: "b-dropdown-default-textbox__textbox",
655
655
  value: e.value
656
656
  }, de(I)), be({
657
- icon: W(() => [
658
- ie("div", Ut, [
659
- se(Y(o(Bt), { "svg-title": "opened" }, null, 512), [
657
+ icon: R(() => [
658
+ ie("div", jt, [
659
+ se(j(o(ht), { "svg-title": "opened" }, null, 512), [
660
660
  [me, m.value]
661
661
  ]),
662
- se(Y(o(Dt), { "svg-title": "closed" }, null, 512), [
662
+ se(j(o(vt), { "svg-title": "closed" }, null, 512), [
663
663
  [me, !m.value]
664
664
  ])
665
665
  ])
@@ -668,21 +668,21 @@ const Mt = /* @__PURE__ */ Symbol("dropdown small size injection key"), ze = /*
668
668
  }, [
669
669
  ue(o(i), (h, L) => ({
670
670
  name: L,
671
- fn: W((T) => [
672
- U(r.$slots, L, oe(ye(T ?? {})), void 0, !0)
671
+ fn: R((T) => [
672
+ W(r.$slots, L, oe(ye(T ?? {})), void 0, !0)
673
673
  ])
674
674
  }))
675
675
  ]), 1040, ["value"])
676
676
  ], 2));
677
677
  }
678
- }), Ht = /* @__PURE__ */ ee(jt, [["__scopeId", "data-v-c3e3ce21"]]);
679
- let Re = 0;
680
- const Yt = {
678
+ }), Jt = /* @__PURE__ */ ee(Yt, [["__scopeId", "data-v-c3e3ce21"]]);
679
+ let Fe = 0;
680
+ const Gt = {
681
681
  beforeCreate() {
682
- this.uuid = Re.toString(), Re += 1;
682
+ this.uuid = Fe.toString(), Fe += 1;
683
683
  }
684
- }, Jt = { key: 0 };
685
- function Gt(e, c, u, l, i, n) {
684
+ }, Xt = { key: 0 };
685
+ function Zt(e, c, u, l, i, s) {
686
686
  return b(), C("svg", A({ role: "img" }, e.$attrs, {
687
687
  class: "ui-assets-icons-16",
688
688
  xmlns: "http://www.w3.org/2000/svg",
@@ -690,21 +690,21 @@ function Gt(e, c, u, l, i, n) {
690
690
  height: "16",
691
691
  fill: "none"
692
692
  }), [
693
- e.$attrs["svg-title"] ? (b(), C("title", Jt, Q(e.$attrs["svg-title"]), 1)) : R("", !0),
693
+ e.$attrs["svg-title"] ? (b(), C("title", Xt, Q(e.$attrs["svg-title"]), 1)) : F("", !0),
694
694
  c[0] || (c[0] = ie("path", {
695
695
  fill: "#001222",
696
696
  d: "M5.00011 5.43922L8.00011 8.43922L11.0001 5.43922L12.0608 6.49988L8.00011 10.5605L3.93945 6.49988L5.00011 5.43922Z"
697
697
  }, null, -1))
698
698
  ], 16);
699
699
  }
700
- const Xt = /* @__PURE__ */ ee(Yt, [["render", Gt]]);
701
- let Fe = 0;
702
- const Zt = {
700
+ const Qt = /* @__PURE__ */ ee(Gt, [["render", Zt]]);
701
+ let Pe = 0;
702
+ const ea = {
703
703
  beforeCreate() {
704
- this.uuid = Fe.toString(), Fe += 1;
704
+ this.uuid = Pe.toString(), Pe += 1;
705
705
  }
706
- }, Qt = { key: 0 };
707
- function ea(e, c, u, l, i, n) {
706
+ }, ta = { key: 0 };
707
+ function aa(e, c, u, l, i, s) {
708
708
  return b(), C("svg", A({ role: "img" }, e.$attrs, {
709
709
  class: "ui-assets-icons-16",
710
710
  xmlns: "http://www.w3.org/2000/svg",
@@ -712,18 +712,18 @@ function ea(e, c, u, l, i, n) {
712
712
  height: "16",
713
713
  fill: "none"
714
714
  }), [
715
- e.$attrs["svg-title"] ? (b(), C("title", Qt, Q(e.$attrs["svg-title"]), 1)) : R("", !0),
715
+ e.$attrs["svg-title"] ? (b(), C("title", ta, Q(e.$attrs["svg-title"]), 1)) : F("", !0),
716
716
  c[0] || (c[0] = ie("path", {
717
717
  fill: "#001222",
718
718
  d: "M10.9999 10.5608L7.9999 7.56077L4.9999 10.5608L3.93924 9.50011L7.9999 5.43945L12.0606 9.50011L10.9999 10.5608Z"
719
719
  }, null, -1))
720
720
  ], 16);
721
721
  }
722
- const ta = /* @__PURE__ */ ee(Zt, [["render", ea]]), aa = { class: "b-dropdown-small-textbox__chevron" }, la = _({
722
+ const la = /* @__PURE__ */ ee(ea, [["render", aa]]), oa = { class: "b-dropdown-small-textbox__chevron" }, na = _({
723
723
  name: "dropdown-small-textbox",
724
724
  inheritAttrs: !1
725
- }), oa = /* @__PURE__ */ _({
726
- ...la,
725
+ }), sa = /* @__PURE__ */ _({
726
+ ...na,
727
727
  props: {
728
728
  /**
729
729
  * The number of additional items that have been selected in the dropdown.
@@ -780,7 +780,7 @@ const ta = /* @__PURE__ */ ee(Zt, [["render", ea]]), aa = { class: "b-dropdown-s
780
780
  },
781
781
  emits: ["clear", "close", "input", "keydown", "open"],
782
782
  setup(e, { expose: c, emit: u }) {
783
- const l = u, i = e, n = D(null), t = Ie(ze, !1), a = d(() => ({
783
+ const l = u, i = e, s = D(null), t = Ie(Ue, !1), a = d(() => ({
784
784
  [`b-dropdown-small-textbox--${k.DISABLED}`]: i.disabled,
785
785
  [`b-dropdown-small-textbox--${k.READONLY}`]: i.readonly,
786
786
  [`b-dropdown-small-textbox--${k.OPENED}`]: i.open,
@@ -804,24 +804,24 @@ const ta = /* @__PURE__ */ ee(Zt, [["render", ea]]), aa = { class: "b-dropdown-s
804
804
  };
805
805
  return c({
806
806
  focus: () => {
807
- n.value.focus();
807
+ s.value.focus();
808
808
  }
809
809
  }), (r, x) => (b(), C("div", {
810
810
  class: ne(["b-dropdown-small-textbox", a.value])
811
811
  }, [
812
- Y(We, A({
812
+ j(je, A({
813
813
  ref_key: "baseTextbox",
814
- ref: n
814
+ ref: s
815
815
  }, { ...r.$attrs, ...r.$props }, {
816
816
  class: "b-dropdown-small-textbox__textbox",
817
817
  size: o(le).SMALL
818
818
  }, de(I)), {
819
- icon: W(() => [
820
- ie("div", aa, [
821
- se(Y(o(ta), { "svg-title": "opened" }, null, 512), [
819
+ icon: R(() => [
820
+ ie("div", oa, [
821
+ se(j(o(la), { "svg-title": "opened" }, null, 512), [
822
822
  [me, m.value]
823
823
  ]),
824
- se(Y(o(Xt), { "svg-title": "closed" }, null, 512), [
824
+ se(j(o(Qt), { "svg-title": "closed" }, null, 512), [
825
825
  [me, !m.value]
826
826
  ])
827
827
  ])
@@ -830,7 +830,7 @@ const ta = /* @__PURE__ */ ee(Zt, [["render", ea]]), aa = { class: "b-dropdown-s
830
830
  }, 16, ["size"])
831
831
  ], 2));
832
832
  }
833
- }), na = /* @__PURE__ */ ee(oa, [["__scopeId", "data-v-5fe55c74"]]), sa = (e, c) => c.value.reduce((u, l) => {
833
+ }), ia = /* @__PURE__ */ ee(sa, [["__scopeId", "data-v-5fe55c74"]]), ra = (e, c) => c.value.reduce((u, l) => {
834
834
  if (l.items) {
835
835
  const i = l.items.filter(
836
836
  (t) => e.value.find((a) => a.value === t.value)
@@ -838,28 +838,28 @@ const ta = /* @__PURE__ */ ee(Zt, [["render", ea]]), aa = { class: "b-dropdown-s
838
838
  i.length === l.items.length ? u.push(l.displayValue ?? l.label) : i.forEach(({ label: t, displayValue: a }) => u.push(a ?? t));
839
839
  }
840
840
  return e.value.find((i) => i.value === l.value) && u.push(l.displayValue ?? l.label), u;
841
- }, []).join(", "), ia = ({ items: e, placeholder: c, selectedValues: u, isMultiSelect: l }) => {
841
+ }, []).join(", "), da = ({ items: e, placeholder: c, selectedValues: u, isMultiSelect: l }) => {
842
842
  const i = d(
843
843
  () => l.value && e.value.find((t) => t.items?.length)
844
844
  );
845
- return d(() => u.value.length ? i.value ? sa(u, e) : u.value.map(({ label: t, displayValue: a }) => a ?? t).join(", ") : c.value || null);
846
- }, je = (e) => {
845
+ return d(() => u.value.length ? i.value ? ra(u, e) : u.value.map(({ label: t, displayValue: a }) => a ?? t).join(", ") : c.value || null);
846
+ }, He = (e) => {
847
847
  e.value.$children?.[0].$refs.textbox.focus();
848
- }, ra = ({
848
+ }, ua = ({
849
849
  inputContainerRef: e,
850
850
  optionsContainerRef: c,
851
851
  selectedValueIndex: u,
852
852
  isDropdownOpen: l,
853
853
  isDynamicFltering: i,
854
- items: n,
854
+ items: s,
855
855
  isMultiple: t,
856
856
  totalItemCount: a,
857
857
  isVirtualScroll: m
858
858
  }, w, p, g) => {
859
859
  const v = async (f) => {
860
- i.value && await F(), n.value[f]?.focus();
860
+ i.value && await P(), s.value[f]?.focus();
861
861
  }, y = async (f) => {
862
- i.value && await F();
862
+ i.value && await P();
863
863
  const N = c.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef?.$el.querySelectorAll(
864
864
  "button"
865
865
  );
@@ -869,14 +869,14 @@ const ta = /* @__PURE__ */ ee(Zt, [["render", ea]]), aa = { class: "b-dropdown-s
869
869
  ), B = async (f) => {
870
870
  await c.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef?.navigateToItem(f);
871
871
  }, r = (f) => {
872
- F(() => {
872
+ P(() => {
873
873
  m ? B(f) : (I(f), v(f));
874
874
  });
875
875
  }, x = () => {
876
876
  l.value || p(), r(0);
877
877
  }, h = () => {
878
- l.value || p(), F(() => {
879
- r(m ? a.value - 1 : n.value.length - 1);
878
+ l.value || p(), P(() => {
879
+ r(m ? a.value - 1 : s.value.length - 1);
880
880
  });
881
881
  }, L = ({ detail: f }) => {
882
882
  f.preventDefault(), x();
@@ -884,31 +884,31 @@ const ta = /* @__PURE__ */ ee(Zt, [["render", ea]]), aa = { class: "b-dropdown-s
884
884
  f.preventDefault(), h();
885
885
  }, $ = () => {
886
886
  x();
887
- }, P = () => {
887
+ }, V = () => {
888
888
  h();
889
- }, V = ({ detail: f }) => {
889
+ }, K = ({ detail: f }) => {
890
890
  f.preventDefault(), w(), l.value && (t ? y(0) : r(u.value));
891
891
  }, M = ({ detail: f }) => {
892
892
  f.preventDefault(), w(), l.value && (t ? y(0) : r(u.value));
893
893
  }, J = () => {
894
894
  l.value && g();
895
895
  }, G = () => {
896
- l.value && (g(), je(e));
896
+ l.value && (g(), He(e));
897
897
  };
898
898
  return d(() => ({
899
- [j.ARROW_DOWN]: L,
900
- [j.ARROW_UP]: T,
901
- [j.HOME]: $,
902
- [j.END]: P,
903
- ...i.value ? {} : { [j.SPACE]: V },
904
- [j.ENTER]: M,
905
- ...i.value ? {} : { [j.TAB]: J },
906
- [j.ESCAPE]: G
899
+ [H.ARROW_DOWN]: L,
900
+ [H.ARROW_UP]: T,
901
+ [H.HOME]: $,
902
+ [H.END]: V,
903
+ ...i.value ? {} : { [H.SPACE]: K },
904
+ [H.ENTER]: M,
905
+ ...i.value ? {} : { [H.TAB]: J },
906
+ [H.ESCAPE]: G
907
907
  }));
908
- }, da = ({ inputContainerRef: e, isDropdownOpen: c }, u) => {
908
+ }, ca = ({ inputContainerRef: e, isDropdownOpen: c }, u) => {
909
909
  const l = () => {
910
- c.value && u(), F(() => {
911
- je(e);
910
+ c.value && u(), P(() => {
911
+ He(e);
912
912
  });
913
913
  };
914
914
  return {
@@ -918,18 +918,18 @@ const ta = /* @__PURE__ */ ee(Zt, [["render", ea]]), aa = { class: "b-dropdown-s
918
918
  [S.SPACE]: l
919
919
  };
920
920
  };
921
- function ua(e, c, u, l, i) {
922
- const n = D(e), t = D(c), a = (p, g = []) => g.flatMap((v) => v.label.toLocaleLowerCase().includes(p) ? l?.value && v.items ? [...a(p, v.items)] : [v, ...a(p, v.items)] : v.items ? [...a(p, v.items)] : []), m = u !== void 0 ? mt(() => u(n.value), i ?? 300) : void 0;
923
- return ve(n, () => {
921
+ function pa(e, c, u, l, i) {
922
+ const s = D(e), t = D(c), a = (p, g = []) => g.flatMap((v) => v.label.toLocaleLowerCase().includes(p) ? l?.value && v.items ? [...a(p, v.items)] : [v, ...a(p, v.items)] : v.items ? [...a(p, v.items)] : []), m = u !== void 0 ? wt(() => u(s.value), i ?? 300) : void 0;
923
+ return ve(s, () => {
924
924
  m !== void 0 && m();
925
925
  }), d(() => {
926
- if (!n.value || u !== void 0)
926
+ if (!s.value || u !== void 0)
927
927
  return t.value;
928
- const p = n.value.toLocaleLowerCase();
928
+ const p = s.value.toLocaleLowerCase();
929
929
  return a(p, t.value);
930
930
  });
931
931
  }
932
- const He = {
932
+ const Ye = {
933
933
  "de-DE": { all: "Alle", ariaLabelFallback: "Dropdown", clearSearch: "Filter löschen" },
934
934
  "en-GB": { all: "All", ariaLabelFallback: "Dropdown", clearSearch: "Clear filter" },
935
935
  "en-US": { all: "All", ariaLabelFallback: "Dropdown", clearSearch: "Clear filter" },
@@ -940,16 +940,16 @@ const He = {
940
940
  "ja-JP": { all: "すべて", ariaLabelFallback: "ドロップダウン", clearSearch: "フィルターをクリア" },
941
941
  "pt-BR": { all: "Todos", ariaLabelFallback: "Menu suspenso", clearSearch: "Limpar filtro" },
942
942
  "zh-CN": { all: "全部", ariaLabelFallback: "下拉菜单", clearSearch: "清除筛选器" }
943
- }, ca = _({
944
- i18n: { messages: He },
943
+ }, fa = _({
944
+ i18n: { messages: Ye },
945
945
  name: "b-dropdown",
946
946
  components: {
947
- DropdownInputDefault: Ht,
948
- DropdownInputSmall: na
947
+ DropdownInputDefault: Jt,
948
+ DropdownInputSmall: ia
949
949
  },
950
950
  model: { prop: "modelValue" }
951
- }), pa = /* @__PURE__ */ _({
952
- ...ca,
951
+ }), ba = /* @__PURE__ */ _({
952
+ ...fa,
953
953
  props: {
954
954
  ariaLabel: { default: null },
955
955
  condensed: { type: Boolean, default: !1 },
@@ -967,6 +967,7 @@ const He = {
967
967
  showSlotContentInMultiple: { type: Boolean, default: !1 },
968
968
  size: { default: null },
969
969
  staticCategories: { type: Boolean, default: !1 },
970
+ teleport: { default: () => ({ disabled: !0 }) },
970
971
  value: { default: null },
971
972
  modelValue: { default: null },
972
973
  virtualScroll: { type: [Boolean, Object], default: !1 },
@@ -983,85 +984,90 @@ const He = {
983
984
  },
984
985
  emits: ["input", "update:model-value", "show-more", "open"],
985
986
  setup(e, { expose: c, emit: u }) {
986
- const l = Ve(), i = he(), n = qe(i), t = e, a = u, { t: m } = ge({ messages: He }), { emitValue: w } = yt(a), p = D(null), g = D(null), v = D(null), y = D(!1), I = te("bento-dropdown-options-container"), B = te("dropdown-label"), r = te("dropdown-description"), x = te("dropdown-error"), { isReadOnly: h } = St(z(t, "readonly")), L = d(() => t.modelValue ?? t.value), { cachedSelectedListboxOptions: T, cachedListboxSelectedValues: $, setCachedValues: P } = vt(
987
- z(t, "items"),
987
+ const l = Ke(), i = he(), s = ze(i), t = e, a = u, { t: m } = ge({ messages: Ye }), { emitValue: w } = St(a), p = D(null), g = D(null), v = D(null), y = D(!1), I = te("bento-dropdown-options-container"), B = te("dropdown-label"), r = te("dropdown-description"), x = te("dropdown-error"), { isReadOnly: h } = xt(U(t, "readonly")), L = d(() => t.modelValue ?? t.value), { cachedSelectedListboxOptions: T, cachedListboxSelectedValues: $, setCachedValues: V } = Lt(
988
+ U(t, "items"),
988
989
  L,
989
- z(t, "multiple"),
990
- z(t, "enableValueLabelPair")
991
- ), V = D(l["aria-label"]), M = D(l["aria-describedby"]), { ariaLabel: J, label: G } = _e(t), O = d(() => m("ariaLabelFallback")), f = bt({
990
+ U(t, "multiple"),
991
+ U(t, "enableValueLabelPair")
992
+ ), K = D(l["aria-label"]), M = D(l["aria-describedby"]), { ariaLabel: J, label: G } = _e(t), O = d(() => m("ariaLabelFallback")), f = gt({
992
993
  // TODO: take ariaLabel ref away when aria-label prop is removed
993
- ariaLabel: J.value || V,
994
+ ariaLabel: J.value || K,
994
995
  label: G,
995
996
  defaultFallback: O
996
- }), N = t.size === le.SMALL || Ie(Mt, !1), Ye = d(() => N ? le.SMALL : le.DEFAULT), Je = d(() => ({
997
+ }), N = t.size === le.SMALL || Ie(Rt, !1), Je = d(() => N ? le.SMALL : le.DEFAULT), Ge = d(() => ({
997
998
  "b-dropdown--condensed": t.condensed
998
- })), Ge = d(() => ({
999
+ })), Xe = d(() => ({
999
1000
  "b-dropdown__description--error": !!t.errorMessage
1000
- })), X = D(""), ce = z(t, "items"), Be = z(t, "staticCategories"), pe = ua(
1001
+ })), X = D(""), ce = U(t, "items"), Be = U(t, "staticCategories"), pe = pa(
1001
1002
  X,
1002
1003
  ce,
1003
1004
  t?.search?.searchEvent,
1004
1005
  Be,
1005
1006
  t?.search?.debounceTime
1006
- ), Se = d(() => t.dynamicFiltering && !!X.value), Xe = ia({
1007
+ ), Se = d(() => t.dynamicFiltering && !!X.value), Ze = da({
1007
1008
  items: ce,
1008
- placeholder: z(t, "placeholder"),
1009
- isMultiSelect: z(t, "multiple"),
1009
+ placeholder: U(t, "placeholder"),
1010
+ isMultiSelect: U(t, "multiple"),
1010
1011
  selectedValues: T
1011
- }), Ze = d(() => {
1012
+ }), Qe = d(() => {
1012
1013
  if (t?.multiple && Array.isArray(L.value))
1013
1014
  return t.items.filter(
1014
- ({ value: s }) => t?.value && (t?.value).includes(s)
1015
+ ({ value: n }) => t?.value && (t?.value).includes(n)
1015
1016
  );
1016
1017
  if (!t.multiple && t.staticCategories) {
1017
- const s = t.items.find(
1018
- (q) => q.items?.some((Z) => Z.value === L.value)
1018
+ const n = t.items.find(
1019
+ (z) => z.items?.some((Z) => Z.value === L.value)
1019
1020
  );
1020
- return (s ? s.items.find((q) => q.value === L.value) : t.items.find(({ value: q }) => q === L.value)) ?? null;
1021
+ return (n ? n.items.find((z) => z.value === L.value) : t.items.find(({ value: z }) => z === L.value)) ?? null;
1021
1022
  }
1022
- return t.items.find(({ value: s }) => s === L.value);
1023
- }), Qe = d(() => {
1024
- const s = pe.value.findIndex(({ value: K }) => t.enableValueLabelPair ? L.value.value === K : L.value === K);
1025
- return s > -1 ? s : 0;
1026
- }), { isMultiLevelSelect: Ae, flattenedItemsList: et } = ht(ce), tt = d(() => Ae.value && !t.staticCategories), at = d(() => tt.value ? "treeitem" : "option"), lt = d(() => {
1023
+ return t.items.find(({ value: n }) => n === L.value);
1024
+ }), et = d(() => {
1025
+ const n = pe.value.findIndex(({ value: q }) => t.enableValueLabelPair ? L.value.value === q : L.value === q);
1026
+ return n > -1 ? n : 0;
1027
+ }), { isMultiLevelSelect: Ae, flattenedItemsList: tt } = Ct(ce), at = d(() => Ae.value && !t.staticCategories), lt = d(() => at.value ? "treeitem" : "option"), ot = d(() => {
1027
1028
  if (t.multiple) {
1028
- const s = Array.isArray(L.value) ? L.value.length : 0, K = Ae.value ? et.value.length : ce.value.length;
1029
- return s === 0 ? null : !t.hasMoreItems && K > 0 && K === s ? m("all") : s;
1029
+ const n = Array.isArray(L.value) ? L.value.length : 0, q = Ae.value ? tt.value.length : ce.value.length;
1030
+ return n === 0 ? null : !t.hasMoreItems && q > 0 && q === n ? m("all") : n;
1030
1031
  }
1031
1032
  return null;
1032
- }), ot = d(
1033
+ }), nt = d(
1033
1034
  () => [
1034
1035
  t.description ? r : null,
1035
1036
  M.value,
1036
1037
  t.errorMessage ? x : null
1037
1038
  ].filter(Boolean).join(" ") || null
1038
- ), nt = d(() => v.value?.$el), { visibleDomOptions: st, updateVisibleDomOptions: ke } = gt(
1039
- nt,
1039
+ ), ke = d(() => v.value?.$el), { visibleDomOptions: st, updateVisibleDomOptions: Te } = Et(
1040
+ ke,
1040
1041
  pe,
1041
- at
1042
+ lt
1042
1043
  ), it = () => {
1043
- h.value || (y.value = !0, F(() => {
1044
- ke();
1044
+ h.value || (y.value = !0, P(() => {
1045
+ Te();
1045
1046
  }));
1046
1047
  }, we = () => {
1047
1048
  y.value = !1;
1048
1049
  }, Le = () => {
1049
- h.value || (y.value = !y.value, F(() => {
1050
- ke();
1050
+ h.value || (y.value = !y.value, P(() => {
1051
+ Te();
1051
1052
  }), Se.value && (X.value = ""));
1052
1053
  }, rt = () => {
1053
1054
  Se.value && (X.value = ""), y.value && (y.value = !1, v.value.onOutsideDropdownClick());
1054
- }, dt = async (s) => {
1055
- t.multiple || (X.value = "", y.value = !1), P(s), w($.value), t.multiple || (await F(), Te());
1056
- }, ut = () => {
1055
+ }, dt = d(() => [
1056
+ rt,
1057
+ {
1058
+ ignore: [ke]
1059
+ }
1060
+ ]), ut = async (n) => {
1061
+ t.multiple || (X.value = "", y.value = !1), V(n), w($.value), t.multiple || (await P(), $e());
1062
+ }, ct = () => {
1057
1063
  a(S.SHOW_MORE);
1058
- }, ct = ra(
1064
+ }, pt = ua(
1059
1065
  {
1060
1066
  inputContainerRef: p,
1061
1067
  optionsContainerRef: v,
1062
- selectedValueIndex: Qe,
1068
+ selectedValueIndex: et,
1063
1069
  isDropdownOpen: y,
1064
- isDynamicFltering: z(t, "dynamicFiltering"),
1070
+ isDynamicFltering: U(t, "dynamicFiltering"),
1065
1071
  items: st,
1066
1072
  isMultiple: t.multiple,
1067
1073
  totalItemCount: d(() => pe.value.length),
@@ -1070,17 +1076,17 @@ const He = {
1070
1076
  Le,
1071
1077
  it,
1072
1078
  we
1073
- ), pt = da(
1079
+ ), ft = ca(
1074
1080
  {
1075
1081
  inputContainerRef: p,
1076
1082
  isDropdownOpen: y
1077
1083
  },
1078
1084
  we
1079
- ), ft = {
1085
+ ), bt = {
1080
1086
  [S.CLOSE_DROPDOWN]: we,
1081
- [S.SELECT]: dt,
1082
- [S.SHOW_MORE]: ut,
1083
- ...pt
1087
+ [S.SELECT]: ut,
1088
+ [S.SHOW_MORE]: ct,
1089
+ ...ft
1084
1090
  };
1085
1091
  t.error && xe(
1086
1092
  'BentoDropdown "error" property',
@@ -1094,126 +1100,134 @@ const He = {
1094
1100
  Use the "v-model" or "model-value" property instead.`,
1095
1101
  "2.0.0"
1096
1102
  );
1097
- const Te = () => {
1103
+ const $e = () => {
1098
1104
  p.value.focus();
1099
1105
  };
1100
1106
  return ve(
1101
1107
  () => y.value,
1102
- (s) => {
1103
- s && a("open");
1108
+ (n) => {
1109
+ n && a("open");
1104
1110
  }
1105
1111
  ), c({
1106
- focus: Te
1107
- }), (s, K) => se((b(), C("div", {
1108
- class: ne(["b-dropdown", Je.value])
1112
+ focus: $e
1113
+ }), (n, q) => se((b(), C("div", {
1114
+ class: ne(["b-dropdown", Ge.value])
1109
1115
  }, [
1110
- o(G) ? (b(), H(o(Ct), {
1116
+ o(G) ? (b(), Y(o(Dt), {
1111
1117
  key: 0,
1112
1118
  id: o(B),
1113
- condensed: s.condensed,
1119
+ condensed: n.condensed,
1114
1120
  label: o(G),
1115
- "tooltip-text": s.tooltipText,
1116
- optional: s.optional,
1117
- required: s.required
1118
- }, null, 8, ["id", "condensed", "label", "tooltip-text", "optional", "required"])) : R("", !0),
1121
+ "tooltip-text": n.tooltipText,
1122
+ optional: n.optional,
1123
+ required: n.required
1124
+ }, null, 8, ["id", "condensed", "label", "tooltip-text", "optional", "required"])) : F("", !0),
1119
1125
  se((b(), C("div", A({
1120
1126
  ref_key: "inputContainerRefWrapper",
1121
1127
  ref: g
1122
- }, de(o(ct), !0)), [
1123
- (b(), H(Pe(Ye.value), {
1128
+ }, de(o(pt), !0)), [
1129
+ (b(), Y(Ve(Je.value), {
1124
1130
  ref_key: "inputContainerRef",
1125
1131
  ref: p,
1126
- condensed: s.condensed,
1132
+ condensed: n.condensed,
1127
1133
  value: X.value,
1128
- "additional-items-selected": lt.value,
1134
+ "additional-items-selected": ot.value,
1129
1135
  "aria-controls": o(I),
1130
1136
  ariaExpanded: y.value,
1131
1137
  "aria-labelledby": o(G) ? o(B) : null,
1132
- "aria-describedby": ot.value,
1138
+ "aria-describedby": nt.value,
1133
1139
  "aria-label": o(f),
1134
1140
  "aria-readonly": o(h),
1135
- "aria-required": s.required,
1141
+ "aria-required": n.required,
1136
1142
  readonly: o(h),
1137
- disabled: s.disabled,
1138
- "display-value": o(Xe),
1139
- "dynamic-filtering": s.dynamicFiltering,
1140
- "is-invalid": !!s.errorMessage || s.error,
1141
- multiple: s.multiple,
1143
+ disabled: n.disabled,
1144
+ "display-value": o(Ze),
1145
+ "dynamic-filtering": n.dynamicFiltering,
1146
+ "is-invalid": !!n.errorMessage || n.error,
1147
+ multiple: n.multiple,
1142
1148
  open: y.value,
1143
- "selected-value-item": o(N) ? void 0 : Ze.value,
1144
- "show-slot-content-in-multiple": s.showSlotContentInMultiple,
1145
- onInput: K[0] || (K[0] = (q) => X.value = q),
1149
+ "selected-value-item": o(N) ? void 0 : Qe.value,
1150
+ "show-slot-content-in-multiple": n.showSlotContentInMultiple,
1151
+ onInput: q[0] || (q[0] = (z) => X.value = z),
1146
1152
  onOpen: Le,
1147
1153
  onClose: Le
1148
1154
  }, be({ _: 2 }, [
1149
- ue(o(i), (q, Z) => ({
1155
+ ue(o(i), (z, Z) => ({
1150
1156
  name: Z,
1151
- fn: W((Ce) => [
1152
- U(s.$slots, Z, oe(ye(Ce)), void 0, !0)
1157
+ fn: R((Ce) => [
1158
+ W(n.$slots, Z, oe(ye(Ce)), void 0, !0)
1153
1159
  ])
1154
1160
  }))
1155
1161
  ]), 1064, ["condensed", "value", "additional-items-selected", "aria-controls", "ariaExpanded", "aria-labelledby", "aria-describedby", "aria-label", "aria-readonly", "aria-required", "readonly", "disabled", "display-value", "dynamic-filtering", "is-invalid", "multiple", "open", "selected-value-item", "show-slot-content-in-multiple"]))
1156
1162
  ], 16)), [
1157
- [o(Lt)]
1163
+ [o(It)]
1158
1164
  ]),
1159
- p.value ? (b(), H(o($t), A({
1165
+ p.value ? (b(), Y(o(At), {
1160
1166
  key: 1,
1161
- id: o(I),
1162
- ref_key: "optionsContainerRef",
1163
- ref: v,
1164
- "aria-label": o(f),
1165
- "component-loading": s.componentLoading,
1166
- "empty-state": s.emptyState,
1167
- disabled: s.disabled,
1168
- "is-option-disabled": s.isOptionDisabled,
1169
- items: o(pe),
1170
- multiple: s.multiple,
1171
- "static-categories": Be.value,
1172
- open: y.value,
1173
- "selected-value": o(T),
1174
- searching: Se.value,
1175
- "target-element": g.value,
1176
- loading: s.loading,
1177
- "has-more-items": s.hasMoreItems,
1178
- "lazy-load-type": s.lazyLoadType,
1179
- "virtual-scroll": s.virtualScroll
1180
- }, de(ft)), be({ _: 2 }, [
1181
- ue(o(i), (q, Z) => ({
1182
- name: Z,
1183
- fn: W((Ce) => [
1184
- U(s.$slots, Z, oe(ye(Ce)), void 0, !0)
1185
- ])
1186
- }))
1187
- ]), 1040, ["id", "aria-label", "component-loading", "empty-state", "disabled", "is-option-disabled", "items", "multiple", "static-categories", "open", "selected-value", "searching", "target-element", "loading", "has-more-items", "lazy-load-type", "virtual-scroll"])) : R("", !0),
1188
- s.errorMessage ? (b(), H(o(xt), {
1167
+ disabled: n.teleport?.disabled,
1168
+ to: n.teleport?.to
1169
+ }, {
1170
+ default: R(() => [
1171
+ j(o(Nt), A({
1172
+ id: o(I),
1173
+ ref_key: "optionsContainerRef",
1174
+ ref: v,
1175
+ "aria-label": o(f),
1176
+ "component-loading": n.componentLoading,
1177
+ "empty-state": n.emptyState,
1178
+ disabled: n.disabled,
1179
+ "is-option-disabled": n.isOptionDisabled,
1180
+ items: o(pe),
1181
+ multiple: n.multiple,
1182
+ "static-categories": Be.value,
1183
+ open: y.value,
1184
+ "selected-value": o(T),
1185
+ searching: Se.value,
1186
+ "target-element": g.value,
1187
+ loading: n.loading,
1188
+ "has-more-items": n.hasMoreItems,
1189
+ "lazy-load-type": n.lazyLoadType,
1190
+ "virtual-scroll": n.virtualScroll
1191
+ }, de(bt)), be({ _: 2 }, [
1192
+ ue(o(i), (z, Z) => ({
1193
+ name: Z,
1194
+ fn: R((Ce) => [
1195
+ W(n.$slots, Z, oe(ye(Ce)), void 0, !0)
1196
+ ])
1197
+ }))
1198
+ ]), 1040, ["id", "aria-label", "component-loading", "empty-state", "disabled", "is-option-disabled", "items", "multiple", "static-categories", "open", "selected-value", "searching", "target-element", "loading", "has-more-items", "lazy-load-type", "virtual-scroll"])
1199
+ ]),
1200
+ _: 3
1201
+ }, 8, ["disabled", "to"])) : F("", !0),
1202
+ n.errorMessage ? (b(), Y(o(kt), {
1189
1203
  key: 2,
1190
1204
  id: o(x),
1191
- "error-message": s.errorMessage,
1205
+ "error-message": n.errorMessage,
1192
1206
  class: "b-dropdown__error-message"
1193
- }, null, 8, ["id", "error-message"])) : R("", !0),
1194
- s.description || o(n)("description") ? (b(), H(o(Ke), {
1207
+ }, null, 8, ["id", "error-message"])) : F("", !0),
1208
+ n.description || o(s)("description") ? (b(), Y(o(qe), {
1195
1209
  key: 3,
1196
1210
  id: o(r),
1197
- class: ne(["b-dropdown__description", Ge.value]),
1211
+ class: ne(["b-dropdown__description", Xe.value]),
1198
1212
  el: "span"
1199
1213
  }, {
1200
- default: W(() => [
1201
- U(s.$slots, "description", {}, () => [
1202
- fe(Q(s.description), 1)
1214
+ default: R(() => [
1215
+ W(n.$slots, "description", {}, () => [
1216
+ fe(Q(n.description), 1)
1203
1217
  ], !0)
1204
1218
  ]),
1205
1219
  _: 3
1206
- }, 8, ["id", "class"])) : R("", !0)
1220
+ }, 8, ["id", "class"])) : F("", !0)
1207
1221
  ], 2)), [
1208
- [o(wt), rt]
1222
+ [o(Ot), dt.value]
1209
1223
  ]);
1210
1224
  }
1211
- }), Na = /* @__PURE__ */ ee(pa, [["__scopeId", "data-v-0e85a425"]]);
1225
+ }), Fa = /* @__PURE__ */ ee(ba, [["__scopeId", "data-v-3dc67619"]]);
1212
1226
  export {
1213
- Na as B,
1214
- Ht as D,
1227
+ Fa as B,
1228
+ Jt as D,
1215
1229
  le as a,
1216
- Mt as b,
1217
- ua as u
1230
+ Rt as b,
1231
+ pa as u
1218
1232
  };
1219
- //# sourceMappingURL=dropdown.CK8cdMyV.js.map
1233
+ //# sourceMappingURL=dropdown.C5um1anU.js.map