@adyen/bento-vue3 1.87.1 → 1.88.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 (74) hide show
  1. package/dist/@types/index.d.ts +127 -66
  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/data-grid.css +1 -1
  9. package/dist/assets/dialog-page.css +1 -1
  10. package/dist/assets/dropdown.css +1 -1
  11. package/dist/assets/file-uploader.css +1 -1
  12. package/dist/assets/inspector.css +1 -1
  13. package/dist/assets/modal-fullscreen.css +1 -1
  14. package/dist/assets/radio-input.css +1 -1
  15. package/dist/assets/sidepanel.css +1 -1
  16. package/dist/chunks/action-bar.BS2cJzG_.js +355 -0
  17. package/dist/chunks/action-bar.BS2cJzG_.js.map +1 -0
  18. package/dist/chunks/{code-snippet.Dl1MEedz.js → code-snippet.CJDFfbit.js} +2 -2
  19. package/dist/chunks/{code-snippet.Dl1MEedz.js.map → code-snippet.CJDFfbit.js.map} +1 -1
  20. package/dist/chunks/{data-grid.DKys-Nai.js → data-grid.CWop1cFU.js} +412 -405
  21. package/dist/chunks/data-grid.CWop1cFU.js.map +1 -0
  22. package/dist/chunks/{date-picker.D5B_SECc.js → date-picker.BtNEBZfS.js} +11 -11
  23. package/dist/chunks/{date-picker.D5B_SECc.js.map → date-picker.BtNEBZfS.js.map} +1 -1
  24. package/dist/chunks/{date-range-picker.CHq6WwCb.js → date-range-picker.DVpgkLuA.js} +21 -21
  25. package/dist/chunks/{date-range-picker.CHq6WwCb.js.map → date-range-picker.DVpgkLuA.js.map} +1 -1
  26. package/dist/chunks/{dropdown-tag.CwSzUwa7.js → dropdown-tag.DyKf9OvB.js} +2 -2
  27. package/dist/chunks/{dropdown-tag.CwSzUwa7.js.map → dropdown-tag.DyKf9OvB.js.map} +1 -1
  28. package/dist/chunks/{dropdown.Bdw2B-Cw.js → dropdown.BXbfqIpi.js} +179 -178
  29. package/dist/chunks/dropdown.BXbfqIpi.js.map +1 -0
  30. package/dist/chunks/{filter-bar.CuN1cxZZ.js → filter-bar.l5_cF2g4.js} +7 -7
  31. package/dist/chunks/{filter-bar.CuN1cxZZ.js.map → filter-bar.l5_cF2g4.js.map} +1 -1
  32. package/dist/chunks/{header-with-views.BwhK4MPe.js → header-with-views.RTgwVY-Y.js} +2 -2
  33. package/dist/chunks/{header-with-views.BwhK4MPe.js.map → header-with-views.RTgwVY-Y.js.map} +1 -1
  34. package/dist/chunks/{input-field-password.CKhqGBVB.js → input-field-password.DEWVmJBO.js} +3 -3
  35. package/dist/chunks/{input-field-password.CKhqGBVB.js.map → input-field-password.DEWVmJBO.js.map} +1 -1
  36. package/dist/chunks/{input-field-phone-number.Cailj_71.js → input-field-phone-number.CnCDyXmY.js} +3 -3
  37. package/dist/chunks/{input-field-phone-number.Cailj_71.js.map → input-field-phone-number.CnCDyXmY.js.map} +1 -1
  38. package/dist/chunks/{input-field.DqXVoKpy.js → input-field.BHdMoXK2.js} +2 -2
  39. package/dist/chunks/{input-field.DqXVoKpy.js.map → input-field.BHdMoXK2.js.map} +1 -1
  40. package/dist/chunks/{pagination.CqCd5JCe.js → pagination.DWbONyCn.js} +2 -2
  41. package/dist/chunks/{pagination.CqCd5JCe.js.map → pagination.DWbONyCn.js.map} +1 -1
  42. package/dist/chunks/{radio-group.v8mDVZ-o.js → radio-group.DEYzF6o7.js} +2 -2
  43. package/dist/chunks/{radio-group.v8mDVZ-o.js.map → radio-group.DEYzF6o7.js.map} +1 -1
  44. package/dist/chunks/{radio-input.DektLjN4.js → radio-input.FC4PVCHr.js} +36 -34
  45. package/dist/chunks/radio-input.FC4PVCHr.js.map +1 -0
  46. package/dist/chunks/{search-bar.DGpLNVng.js → search-bar.Dzrc_qhy.js} +3 -3
  47. package/dist/chunks/{search-bar.DGpLNVng.js.map → search-bar.Dzrc_qhy.js.map} +1 -1
  48. package/dist/chunks/{secondary-nav.l_60nnXA.js → secondary-nav.D2Llqw3y.js} +2 -2
  49. package/dist/chunks/{secondary-nav.l_60nnXA.js.map → secondary-nav.D2Llqw3y.js.map} +1 -1
  50. package/dist/chunks/{selection-card-group.BuA6CLom.js → selection-card-group.B3LCxON_.js} +2 -2
  51. package/dist/chunks/{selection-card-group.BuA6CLom.js.map → selection-card-group.B3LCxON_.js.map} +1 -1
  52. package/dist/code-snippet.js +1 -1
  53. package/dist/data-grid.js +1 -1
  54. package/dist/date-picker.js +1 -1
  55. package/dist/date-range-picker.js +1 -1
  56. package/dist/dropdown.js +2 -2
  57. package/dist/filter-bar.js +1 -1
  58. package/dist/header-with-views.js +1 -1
  59. package/dist/index.js +18 -18
  60. package/dist/input-field-password.js +1 -1
  61. package/dist/input-field-phone-number.js +1 -1
  62. package/dist/input-field.js +1 -1
  63. package/dist/pagination.js +1 -1
  64. package/dist/radio-group.js +2 -2
  65. package/dist/search-bar.js +2 -2
  66. package/dist/secondary-nav.js +1 -1
  67. package/dist/selection-card.js +1 -1
  68. package/dist/web-types.json +1 -1
  69. package/package.json +5 -5
  70. package/dist/chunks/action-bar.Ho_fXeXK.js +0 -209
  71. package/dist/chunks/action-bar.Ho_fXeXK.js.map +0 -1
  72. package/dist/chunks/data-grid.DKys-Nai.js.map +0 -1
  73. package/dist/chunks/dropdown.Bdw2B-Cw.js.map +0 -1
  74. package/dist/chunks/radio-input.DektLjN4.js.map +0 -1
@@ -1,22 +1,22 @@
1
- import { ref as E, watch as be, computed as u, defineComponent as q, useSlots as $e, toRefs as Re, openBlock as S, createBlock as z, resolveDynamicComponent as ke, mergeProps as _, withCtx as W, createElementVNode as oe, withKeys as nt, unref as n, createVNode as Q, toHandlers as ee, createSlots as ce, renderList as pe, renderSlot as X, normalizeProps as fe, guardReactiveProps as me, createElementBlock as F, toDisplayString as ge, createCommentVNode as V, normalizeClass as ve, withDirectives as te, vShow as xe, nextTick as A, useAttrs as st, toRef as I, inject as it, createTextVNode as rt } from "vue";
1
+ import { ref as E, watch as be, computed as u, defineComponent as q, useSlots as $e, toRefs as Re, openBlock as S, createBlock as V, resolveDynamicComponent as ke, mergeProps as F, withCtx as W, createElementVNode as ae, withKeys as nt, unref as n, createVNode as Q, toHandlers as ee, createSlots as ce, renderList as pe, renderSlot as X, normalizeProps as fe, guardReactiveProps as me, createCommentVNode as _, createElementBlock as K, toDisplayString as ge, normalizeClass as ve, withDirectives as te, vShow as xe, nextTick as B, useAttrs as st, toRef as A, inject as it, createTextVNode as rt } from "vue";
2
2
  import { d as re, B as dt } from "./typography.B3J6_tYk.js";
3
- import { a as de, b as j, c as ut, B as G, D as ct } from "./dropdown-default-textbox.CskseEho.js";
4
- /* empty css */
5
- import { _ as J } from "./_plugin-vue_export-helper.CHgC5LLL.js";
6
- import { s as ue } from "./events.BQOQSSb7.js";
7
3
  import { g as H } from "./generate-uid.NJ8tVoha.js";
8
- import { u as pt } from "./aria-label.CaUURpnB.js";
4
+ import { u as ut } from "./aria-label.CaUURpnB.js";
9
5
  import { u as he } from "./index.B875RXHM.js";
10
- import { u as ft } from "./form-field.D_2g7vaP.js";
11
- import { B as m, b as ye, a as Ie, u as mt, c as vt, d as yt } from "./use-cached-selected-values.C4_X3vVj.js";
12
- import { u as bt } from "./use-form-layout-loading.CWbjZiwP.js";
13
- import { d as gt } from "./debounce.DUTu11PS.js";
14
- import { B as ht } from "./directive.rXUeDb8p.js";
15
- import { B as M, a as Lt } from "./keyboard-navigation.DWmhelVv.js";
6
+ import { u as ct } from "./form-field.D_2g7vaP.js";
7
+ import { B as m, b as ye, a as Ie, u as pt, c as ft, d as mt } from "./use-cached-selected-values.C4_X3vVj.js";
8
+ import { u as vt } from "./use-form-layout-loading.CWbjZiwP.js";
9
+ import { d as yt } from "./debounce.DUTu11PS.js";
10
+ import { B as bt } from "./directive.rXUeDb8p.js";
11
+ import { B as M, a as gt } from "./keyboard-navigation.DWmhelVv.js";
12
+ import { a as de, b as j, c as ht, B as G, D as Lt } from "./dropdown-default-textbox.CskseEho.js";
16
13
  import { u as St } from "./use-has-slot.B7eQSabc.js";
17
14
  import { F as wt, E as Et } from "./error-message.oGiefI2-.js";
18
15
  import { P as Ae } from "./popper-container.DAK7c9uS.js";
19
16
  import { h as Ct } from "./button-actions.BYBpjNqy.js";
17
+ import { _ as J } from "./_plugin-vue_export-helper.CHgC5LLL.js";
18
+ /* empty css */
19
+ import { s as ue } from "./events.BQOQSSb7.js";
20
20
  import "../assets/dropdown.css";
21
21
  const Le = {
22
22
  "en-US": {
@@ -34,19 +34,19 @@ const Le = {
34
34
  cancel: "Cancelar",
35
35
  noOptionsMatchThisSearch: "A busca não retornou nenhuma opção"
36
36
  }
37
- }, Ot = (a, r, i, t) => {
38
- const s = E(a.value), { t: l } = he({ messages: Le });
39
- be(a, () => {
40
- s.value = a.value;
37
+ }, Ot = (o, r, i, t) => {
38
+ const s = E(o.value), { t: l } = he({ messages: Le });
39
+ be(o, () => {
40
+ s.value = o.value;
41
41
  });
42
42
  const e = u(
43
- () => JSON.stringify(s.value) === JSON.stringify(a.value)
43
+ () => JSON.stringify(s.value) === JSON.stringify(o.value)
44
44
  ), d = () => {
45
45
  t(m.SELECT, s.value), t(m.CLOSE_DROPDOWN);
46
46
  }, h = () => {
47
- s.value = a.value, t(m.CLOSE_DROPDOWN);
47
+ s.value = o.value, t(m.CLOSE_DROPDOWN);
48
48
  }, C = () => {
49
- i.value && r.value && (s.value = a.value);
49
+ i.value && r.value && (s.value = o.value);
50
50
  }, c = u(() => [
51
51
  {
52
52
  title: l("apply"),
@@ -67,11 +67,11 @@ const Le = {
67
67
  b(g), t(m.SPACE);
68
68
  }, v = () => {
69
69
  h(), t(m.ESCAPE);
70
- }, B = () => {
70
+ }, D = () => {
71
71
  t(m.SHOW_MORE);
72
- }, D = {
72
+ }, T = {
73
73
  [m.SELECT]: b,
74
- [m.SHOW_MORE]: B,
74
+ [m.SHOW_MORE]: D,
75
75
  [m.TAB]: p,
76
76
  [m.SPACE]: O,
77
77
  [m.ENTER]: f
@@ -81,7 +81,7 @@ const Le = {
81
81
  actions: c,
82
82
  internalSelectedValue: s,
83
83
  // Methods
84
- listeners: D,
84
+ listeners: T,
85
85
  onEscapeKey: v,
86
86
  onOutsideDropdownClick: C
87
87
  };
@@ -149,7 +149,7 @@ const Le = {
149
149
  lazyLoadType: {
150
150
  type: String,
151
151
  default: Ie.AUTOMATIC,
152
- validator: (a) => Object.values(Ie).includes(a)
152
+ validator: (o) => Object.values(Ie).includes(o)
153
153
  },
154
154
  /**
155
155
  * Indicates if new options are lazy loading.
@@ -198,15 +198,15 @@ const Le = {
198
198
  default: !1
199
199
  }
200
200
  },
201
- setup(a, { expose: r, emit: i }) {
202
- const t = $e(), s = i, l = a, { selectedValue: e, multiple: d } = Re(l), h = E(null), { t: C } = he({ messages: Le }), c = u(() => l.open && !l.disabled), b = u(() => C("noOptionsMatchThisSearch")), p = u(() => ({
201
+ setup(o, { expose: r, emit: i }) {
202
+ const t = $e(), s = i, l = o, { selectedValue: e, multiple: d } = Re(l), h = E(null), { t: C } = he({ messages: Le }), c = u(() => l.open && !l.disabled), b = u(() => C("noOptionsMatchThisSearch")), p = u(() => ({
203
203
  "b-dropdown-options-container--single": !(l != null && l.multiple)
204
204
  })), f = u(() => ({
205
205
  "b-dropdown-options-container__listbox--single": !(l != null && l.multiple)
206
- })), { actions: O, internalSelectedValue: v, listeners: B, onEscapeKey: D, onOutsideDropdownClick: g } = Ot(e, d, c, s), L = u(() => l != null && l.multiple ? Ct : Ae), K = u(() => {
207
- var T;
206
+ })), { actions: O, internalSelectedValue: v, listeners: D, onEscapeKey: T, onOutsideDropdownClick: g } = Ot(e, d, c, s), L = u(() => l != null && l.multiple ? Ct : Ae), z = u(() => {
207
+ var x;
208
208
  const N = {
209
- "min-width": `${(T = l == null ? void 0 : l.targetElement) == null ? void 0 : T.clientWidth}px`,
209
+ "min-width": `${(x = l == null ? void 0 : l.targetElement) == null ? void 0 : x.clientWidth}px`,
210
210
  "max-width": "min(500px, 95%)"
211
211
  };
212
212
  return l != null && l.multiple ? {
@@ -236,37 +236,38 @@ const Le = {
236
236
  });
237
237
  return r({
238
238
  onOutsideDropdownClick: g
239
- }), (N, T) => (S(), z(ke(L.value), _({
239
+ }), (N, x) => c.value ? (S(), V(ke(L.value), F({
240
+ key: 0,
240
241
  class: ["b-dropdown-options-container", p.value]
241
- }, K.value), {
242
+ }, z.value), {
242
243
  default: W(() => [
243
- oe("div", {
244
- onKeydown: T[0] || (T[0] = nt(
244
+ ae("div", {
245
+ onKeydown: x[0] || (x[0] = nt(
245
246
  //@ts-ignore
246
- (...U) => n(D) && n(D)(...U),
247
+ (...U) => n(T) && n(T)(...U),
247
248
  ["esc"]
248
249
  ))
249
250
  }, [
250
- Q(n(ye), _({
251
- id: a.id,
251
+ Q(n(ye), F({
252
+ id: o.id,
252
253
  ref_key: "dropdownOptionsListboxRef",
253
254
  ref: h,
254
- "aria-label": a.ariaLabel,
255
+ "aria-label": o.ariaLabel,
255
256
  class: ["b-dropdown-options-container__listbox", f.value],
256
- "component-loading": a.componentLoading,
257
- "empty-state": a.emptyState,
258
- "is-option-disabled": a.isOptionDisabled,
259
- items: a.items,
257
+ "component-loading": o.componentLoading,
258
+ "empty-state": o.emptyState,
259
+ "is-option-disabled": o.isOptionDisabled,
260
+ items: o.items,
260
261
  "selected-value": n(v),
261
262
  multiple: n(d),
262
- "static-categories": a.staticCategories,
263
+ "static-categories": o.staticCategories,
263
264
  "no-results-message": b.value,
264
- searching: a.searching,
265
- loading: a.loading,
266
- "lazy-load-type": a.lazyLoadType,
267
- "has-more-items": a.hasMoreItems,
268
- "virtual-scroll": a.virtualScroll
269
- }, ee(n(B))), ce({ _: 2 }, [
265
+ searching: o.searching,
266
+ loading: o.loading,
267
+ "lazy-load-type": o.lazyLoadType,
268
+ "has-more-items": o.hasMoreItems,
269
+ "virtual-scroll": o.virtualScroll
270
+ }, ee(n(D))), ce({ _: 2 }, [
270
271
  pe(n(t), (U, y) => ({
271
272
  name: y,
272
273
  fn: W((w) => [
@@ -277,25 +278,25 @@ const Le = {
277
278
  ], 32)
278
279
  ]),
279
280
  _: 3
280
- }, 16, ["class"]));
281
+ }, 16, ["class"])) : _("", !0);
281
282
  }
282
- }), Tt = /* @__PURE__ */ J(Dt, [["__scopeId", "data-v-d87d28cd"]]);
283
+ }), Tt = /* @__PURE__ */ J(Dt, [["__scopeId", "data-v-abf92e14"]]);
283
284
  let Ne = 0;
284
285
  const xt = {
285
286
  beforeCreate() {
286
287
  this.uuid = Ne.toString(), Ne += 1;
287
288
  }
288
289
  }, It = { key: 0 };
289
- function At(a, r, i, t, s, l) {
290
- return S(), F("svg", _({ role: "img" }, a.$attrs, {
290
+ function At(o, r, i, t, s, l) {
291
+ return S(), K("svg", F({ role: "img" }, o.$attrs, {
291
292
  class: "ui-assets-icons-16",
292
293
  xmlns: "http://www.w3.org/2000/svg",
293
294
  width: "16",
294
295
  height: "16",
295
296
  fill: "none"
296
297
  }), [
297
- a.$attrs["svg-title"] ? (S(), F("title", It, ge(a.$attrs["svg-title"]), 1)) : V("", !0),
298
- r[0] || (r[0] = oe("path", {
298
+ o.$attrs["svg-title"] ? (S(), K("title", It, ge(o.$attrs["svg-title"]), 1)) : _("", !0),
299
+ r[0] || (r[0] = ae("path", {
299
300
  fill: "#001222",
300
301
  d: "M5.00011 5.43922L8.00011 8.43922L11.0001 5.43922L12.0608 6.49988L8.00011 10.5605L3.93945 6.49988L5.00011 5.43922Z"
301
302
  }, null, -1))
@@ -308,16 +309,16 @@ const Mt = {
308
309
  this.uuid = Me.toString(), Me += 1;
309
310
  }
310
311
  }, $t = { key: 0 };
311
- function Rt(a, r, i, t, s, l) {
312
- return S(), F("svg", _({ role: "img" }, a.$attrs, {
312
+ function Rt(o, r, i, t, s, l) {
313
+ return S(), K("svg", F({ role: "img" }, o.$attrs, {
313
314
  class: "ui-assets-icons-16",
314
315
  xmlns: "http://www.w3.org/2000/svg",
315
316
  width: "16",
316
317
  height: "16",
317
318
  fill: "none"
318
319
  }), [
319
- a.$attrs["svg-title"] ? (S(), F("title", $t, ge(a.$attrs["svg-title"]), 1)) : V("", !0),
320
- r[0] || (r[0] = oe("path", {
320
+ o.$attrs["svg-title"] ? (S(), K("title", $t, ge(o.$attrs["svg-title"]), 1)) : _("", !0),
321
+ r[0] || (r[0] = ae("path", {
321
322
  fill: "#001222",
322
323
  d: "M10.9999 10.5608L7.9999 7.56077L4.9999 10.5608L3.93924 9.50011L7.9999 5.43945L12.0606 9.50011L10.9999 10.5608Z"
323
324
  }, null, -1))
@@ -383,8 +384,8 @@ const kt = /* @__PURE__ */ J(Mt, [["render", Rt]]), Pt = { class: "b-dropdown-sm
383
384
  value: { type: String, default: "" }
384
385
  },
385
386
  emits: ["clear", "close", "input", "keydown", "open"],
386
- setup(a, { expose: r, emit: i }) {
387
- const t = i, s = a, l = E(null), e = u(() => ({
387
+ setup(o, { expose: r, emit: i }) {
388
+ const t = i, s = o, l = E(null), e = u(() => ({
388
389
  [`b-dropdown-small-textbox--${de.DISABLED}`]: s.disabled,
389
390
  [`b-dropdown-small-textbox--${de.READONLY}`]: s.readonly,
390
391
  [`b-dropdown-small-textbox--${de.OPENED}`]: s.open
@@ -409,10 +410,10 @@ const kt = /* @__PURE__ */ J(Mt, [["render", Rt]]), Pt = { class: "b-dropdown-sm
409
410
  focus: () => {
410
411
  l.value.focus();
411
412
  }
412
- }), (v, B) => (S(), F("div", {
413
+ }), (v, D) => (S(), K("div", {
413
414
  class: ve(["b-dropdown-small-textbox", e.value])
414
415
  }, [
415
- Q(ut, _({
416
+ Q(ht, F({
416
417
  ref_key: "baseTextbox",
417
418
  ref: l
418
419
  }, { ...v.$attrs, ...v.$props }, {
@@ -420,7 +421,7 @@ const kt = /* @__PURE__ */ J(Mt, [["render", Rt]]), Pt = { class: "b-dropdown-sm
420
421
  size: n(G).SMALL
421
422
  }, ee(f)), {
422
423
  icon: W(() => [
423
- oe("div", Pt, [
424
+ ae("div", Pt, [
424
425
  te(Q(n(kt), { "svg-title": "opened" }, null, 512), [
425
426
  [xe, d.value]
426
427
  ]),
@@ -433,27 +434,27 @@ const kt = /* @__PURE__ */ J(Mt, [["render", Rt]]), Pt = { class: "b-dropdown-sm
433
434
  }, 16, ["size"])
434
435
  ], 2));
435
436
  }
436
- }), Kt = /* @__PURE__ */ J(Ft, [["__scopeId", "data-v-39ce3ec8"]]), zt = (a, r) => r.value.reduce((i, t) => {
437
+ }), Kt = /* @__PURE__ */ J(Ft, [["__scopeId", "data-v-39ce3ec8"]]), zt = (o, r) => r.value.reduce((i, t) => {
437
438
  if (t.items) {
438
439
  const s = t.items.filter(
439
- (e) => a.value.find((d) => d.value === e.value)
440
+ (e) => o.value.find((d) => d.value === e.value)
440
441
  );
441
442
  s.length === t.items.length ? i.push(t.displayValue ?? t.label) : s.forEach(({ label: e, displayValue: d }) => i.push(d ?? e));
442
443
  }
443
- return a.value.find((s) => s.value === t.value) && i.push(t.displayValue ?? t.label), i;
444
- }, []).join(", "), Vt = ({ items: a, placeholder: r, selectedValues: i, isMultiSelect: t }) => {
444
+ return o.value.find((s) => s.value === t.value) && i.push(t.displayValue ?? t.label), i;
445
+ }, []).join(", "), Vt = ({ items: o, placeholder: r, selectedValues: i, isMultiSelect: t }) => {
445
446
  const s = u(
446
- () => t.value && a.value.find((e) => {
447
+ () => t.value && o.value.find((e) => {
447
448
  var d;
448
449
  return (d = e.items) == null ? void 0 : d.length;
449
450
  })
450
451
  );
451
- return u(() => i.value.length ? s.value ? zt(i, a) : i.value.map(({ label: e, displayValue: d }) => d ?? e).join(", ") : r.value || null);
452
- }, Pe = (a) => {
452
+ return u(() => i.value.length ? s.value ? zt(i, o) : i.value.map(({ label: e, displayValue: d }) => d ?? e).join(", ") : r.value || null);
453
+ }, Pe = (o) => {
453
454
  var r;
454
- (r = a.value.$children) == null || r[0].$refs.textbox.focus();
455
+ (r = o.value.$children) == null || r[0].$refs.textbox.focus();
455
456
  }, Wt = ({
456
- inputContainerRef: a,
457
+ inputContainerRef: o,
457
458
  optionsContainerRef: r,
458
459
  selectedValueIndex: i,
459
460
  isDropdownOpen: t,
@@ -463,10 +464,10 @@ const kt = /* @__PURE__ */ J(Mt, [["render", Rt]]), Pt = { class: "b-dropdown-sm
463
464
  }, d, h, C) => {
464
465
  const c = async (y) => {
465
466
  var w;
466
- s.value && await A(), (w = l.value[y]) == null || w.focus();
467
+ s.value && await B(), (w = l.value[y]) == null || w.focus();
467
468
  }, b = async (y) => {
468
469
  var $, Y;
469
- s.value && await A();
470
+ s.value && await B();
470
471
  const w = ($ = r.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef) == null ? void 0 : $.$el.querySelectorAll(
471
472
  "button"
472
473
  );
@@ -477,48 +478,48 @@ const kt = /* @__PURE__ */ J(Mt, [["render", Rt]]), Pt = { class: "b-dropdown-sm
477
478
  y
478
479
  );
479
480
  }, f = () => {
480
- t.value || h(), A(() => {
481
+ t.value || h(), B(() => {
481
482
  p(0), c(0);
482
483
  });
483
484
  }, O = () => {
484
- t.value || h(), A(() => {
485
+ t.value || h(), B(() => {
485
486
  p(l.value.length - 1), c(l.value.length - 1);
486
487
  });
487
488
  }, v = ({ detail: y }) => {
488
489
  y.preventDefault(), f();
489
- }, B = ({ detail: y }) => {
490
+ }, D = ({ detail: y }) => {
490
491
  y.preventDefault(), O();
491
- }, D = () => {
492
+ }, T = () => {
492
493
  f();
493
494
  }, g = () => {
494
495
  O();
495
496
  }, L = ({ detail: y }) => {
496
- y.preventDefault(), d(), t.value && A(() => {
497
+ y.preventDefault(), d(), t.value && B(() => {
497
498
  e ? b(0) : (p(i.value), c(i.value));
498
499
  });
499
- }, K = ({ detail: y }) => {
500
- y.preventDefault(), d(), t.value && A(() => {
500
+ }, z = ({ detail: y }) => {
501
+ y.preventDefault(), d(), t.value && B(() => {
501
502
  e ? b(0) : (p(i.value), c(i.value));
502
503
  });
503
504
  }, N = () => {
504
505
  t.value && C();
505
- }, T = () => {
506
- t.value && (C(), Pe(a));
506
+ }, x = () => {
507
+ t.value && (C(), Pe(o));
507
508
  };
508
509
  return u(() => ({
509
510
  [M.ARROW_DOWN]: v,
510
- [M.ARROW_UP]: B,
511
- [M.HOME]: D,
511
+ [M.ARROW_UP]: D,
512
+ [M.HOME]: T,
512
513
  [M.END]: g,
513
514
  ...s.value ? {} : { [M.SPACE]: L },
514
- [M.ENTER]: K,
515
+ [M.ENTER]: z,
515
516
  [M.TAB]: N,
516
- [M.ESCAPE]: T
517
+ [M.ESCAPE]: x
517
518
  }));
518
- }, qt = ({ inputContainerRef: a, isDropdownOpen: r }, i) => {
519
+ }, qt = ({ inputContainerRef: o, isDropdownOpen: r }, i) => {
519
520
  const t = () => {
520
- r.value && i(), A(() => {
521
- Pe(a);
521
+ r.value && i(), B(() => {
522
+ Pe(o);
522
523
  });
523
524
  };
524
525
  return {
@@ -528,8 +529,8 @@ const kt = /* @__PURE__ */ J(Mt, [["render", Rt]]), Pt = { class: "b-dropdown-sm
528
529
  [m.SPACE]: t
529
530
  };
530
531
  };
531
- function Ut(a, r, i, t, s) {
532
- const l = E(a), e = E(r), d = (c, b = []) => b.flatMap((p) => p.label.toLocaleLowerCase().includes(c) ? t != null && t.value && p.items ? [...d(c, p.items)] : [p, ...d(c, p.items)] : p.items ? [...d(c, p.items)] : []), h = i !== void 0 ? gt(() => i(l.value), s ?? 300) : void 0;
532
+ function Ut(o, r, i, t, s) {
533
+ const l = E(o), e = E(r), d = (c, b = []) => b.flatMap((p) => p.label.toLocaleLowerCase().includes(c) ? t != null && t.value && p.items ? [...d(c, p.items)] : [p, ...d(c, p.items)] : p.items ? [...d(c, p.items)] : []), h = i !== void 0 ? yt(() => i(l.value), s ?? 300) : void 0;
533
534
  return be(l, () => {
534
535
  h !== void 0 && h();
535
536
  }), u(() => {
@@ -555,11 +556,11 @@ const _e = {
555
556
  ariaLabelFallback: "Menu suspenso",
556
557
  clearSearch: "Limpar filtro"
557
558
  }
558
- }, jt = /* @__PURE__ */ Symbol("input field component injection key"), vo = /* @__PURE__ */ Symbol("input field hint injection key"), yo = /* @__PURE__ */ Symbol("input field parent component injection key"), Ht = q({
559
+ }, jt = /* @__PURE__ */ Symbol("input field component injection key"), ma = /* @__PURE__ */ Symbol("input field hint injection key"), va = /* @__PURE__ */ Symbol("input field parent component injection key"), Ht = q({
559
560
  i18n: { messages: _e },
560
561
  name: "b-dropdown",
561
562
  components: {
562
- DropdownInputDefault: ct,
563
+ DropdownInputDefault: Lt,
563
564
  DropdownInputSmall: Kt
564
565
  },
565
566
  model: { prop: "modelValue" }
@@ -597,14 +598,14 @@ const _e = {
597
598
  tooltipText: { default: null }
598
599
  },
599
600
  emits: ["input", "update:model-value", "show-more", "open"],
600
- setup(a, { expose: r, emit: i }) {
601
+ setup(o, { expose: r, emit: i }) {
601
602
  var De, Te;
602
- const t = st(), s = $e(), l = St(s), e = a, d = i, { t: h } = he({ messages: _e }), { emitValue: C } = ft(d), c = E(null), b = E(null), p = E(null), f = E(!1), O = H("bento-dropdown-options-container"), v = H("dropdown-label"), B = H("dropdown-description"), D = H("dropdown-error"), { isReadOnly: g } = bt(I(e, "readonly")), L = u(() => e.modelValue ?? e.value), { cachedSelectedListboxOptions: K, cachedListboxSelectedValues: N, setCachedValues: T } = mt(
603
- I(e, "items"),
603
+ const t = st(), s = $e(), l = St(s), e = o, d = i, { t: h } = he({ messages: _e }), { emitValue: C } = ct(d), c = E(null), b = E(null), p = E(null), f = E(!1), O = H("bento-dropdown-options-container"), v = H("dropdown-label"), D = H("dropdown-description"), T = H("dropdown-error"), { isReadOnly: g } = vt(A(e, "readonly")), L = u(() => e.modelValue ?? e.value), { cachedSelectedListboxOptions: z, cachedListboxSelectedValues: N, setCachedValues: x } = pt(
604
+ A(e, "items"),
604
605
  L,
605
- I(e, "multiple"),
606
- I(e, "enableValueLabelPair")
607
- ), U = E(t["aria-label"]), y = E(t["aria-describedby"]), { ariaLabel: w, label: $ } = Re(e), Y = u(() => h("ariaLabelFallback")), Se = pt({
606
+ A(e, "multiple"),
607
+ A(e, "enableValueLabelPair")
608
+ ), U = E(t["aria-label"]), y = E(t["aria-describedby"]), { ariaLabel: w, label: $ } = Re(e), Y = u(() => h("ariaLabelFallback")), Se = ut({
608
609
  // TODO: take ariaLabel ref away when aria-label prop is removed
609
610
  ariaLabel: w.value || U,
610
611
  label: $,
@@ -613,7 +614,7 @@ const _e = {
613
614
  "b-dropdown--condensed": e.condensed
614
615
  })), ze = u(() => ({
615
616
  "b-dropdown__description--error": !!e.errorMessage
616
- })), R = E(""), Z = I(e, "items"), Ee = I(e, "staticCategories"), ae = Ut(
617
+ })), R = E(""), Z = A(e, "items"), Ee = A(e, "staticCategories"), oe = Ut(
617
618
  R,
618
619
  Z,
619
620
  (De = e == null ? void 0 : e.search) == null ? void 0 : De.searchEvent,
@@ -621,73 +622,73 @@ const _e = {
621
622
  (Te = e == null ? void 0 : e.search) == null ? void 0 : Te.debounceTime
622
623
  ), le = u(() => e.dynamicFiltering && !!R.value), Ve = Vt({
623
624
  items: Z,
624
- placeholder: I(e, "placeholder"),
625
- isMultiSelect: I(e, "multiple"),
626
- selectedValues: K
625
+ placeholder: A(e, "placeholder"),
626
+ isMultiSelect: A(e, "multiple"),
627
+ selectedValues: z
627
628
  }), We = u(() => {
628
629
  if (e != null && e.multiple && Array.isArray(L.value))
629
630
  return e.items.filter(
630
- ({ value: o }) => (e == null ? void 0 : e.value) && (e == null ? void 0 : e.value).includes(o)
631
+ ({ value: a }) => (e == null ? void 0 : e.value) && (e == null ? void 0 : e.value).includes(a)
631
632
  );
632
633
  if (!e.multiple && e.staticCategories) {
633
- const o = e.items.find(
634
+ const a = e.items.find(
634
635
  (k) => k.items.some((P) => P.value === L.value)
635
636
  );
636
- return o ? o.items.find((k) => k.value === L.value) : null;
637
+ return a ? a.items.find((k) => k.value === L.value) : null;
637
638
  }
638
- return e.items.find(({ value: o }) => o === L.value);
639
+ return e.items.find(({ value: a }) => a === L.value);
639
640
  }), qe = u(() => {
640
- const o = ae.value.findIndex(({ value: x }) => e.enableValueLabelPair ? L.value.value === x : L.value === x);
641
- return o > -1 ? o : 0;
642
- }), { isMultiLevelSelect: Ce, flattenedItemsList: Ue } = vt(Z), je = u(() => Ce.value && !e.staticCategories), He = u(() => je.value ? "treeitem" : "option"), Je = u(() => {
641
+ const a = oe.value.findIndex(({ value: I }) => e.enableValueLabelPair ? L.value.value === I : L.value === I);
642
+ return a > -1 ? a : 0;
643
+ }), { isMultiLevelSelect: Ce, flattenedItemsList: Ue } = ft(Z), je = u(() => Ce.value && !e.staticCategories), He = u(() => je.value ? "treeitem" : "option"), Je = u(() => {
643
644
  if (e.multiple) {
644
- const o = Array.isArray(L.value) ? L.value.length : 0, x = Ce.value ? Ue.value.length : Z.value.length;
645
- return o === 0 ? null : !e.hasMoreItems && x > 0 && x === o ? h("all") : o;
645
+ const a = Array.isArray(L.value) ? L.value.length : 0, I = Ce.value ? Ue.value.length : Z.value.length;
646
+ return a === 0 ? null : !e.hasMoreItems && I > 0 && I === a ? h("all") : a;
646
647
  }
647
648
  return null;
648
649
  }), Ye = u(
649
650
  () => [
650
- e.description ? B : null,
651
+ e.description ? D : null,
651
652
  y.value,
652
- e.errorMessage ? D : null
653
+ e.errorMessage ? T : null
653
654
  ].filter(Boolean).join(" ") || null
654
655
  ), Ze = u(() => {
655
- var o;
656
- return (o = p.value) == null ? void 0 : o.$el;
657
- }), { visibleDomOptions: Qe, updateVisibleDomOptions: Oe } = yt(
656
+ var a;
657
+ return (a = p.value) == null ? void 0 : a.$el;
658
+ }), { visibleDomOptions: Qe, updateVisibleDomOptions: Oe } = mt(
658
659
  Ze,
659
- ae,
660
+ oe,
660
661
  He
661
662
  ), Xe = () => {
662
- g.value || (f.value = !0, A(() => {
663
+ g.value || (f.value = !0, B(() => {
663
664
  Oe();
664
665
  }));
665
666
  }, ne = () => {
666
667
  f.value = !1;
667
668
  }, se = () => {
668
- g.value || (f.value = !f.value, A(() => {
669
+ g.value || (f.value = !f.value, B(() => {
669
670
  Oe();
670
671
  }), le.value && (R.value = ""));
671
672
  }, Ge = () => {
672
673
  le.value && (R.value = ""), f.value && (f.value = !1, p.value.onOutsideDropdownClick());
673
- }, et = (o) => {
674
- e.multiple || (R.value = "", f.value = !1, Be()), T(o), C(N.value);
674
+ }, et = async (a) => {
675
+ e.multiple || (R.value = "", f.value = !1), x(a), C(N.value), e.multiple || (await B(), Be());
675
676
  }, tt = () => {
676
677
  d(m.SHOW_MORE);
677
- }, ot = Wt(
678
+ }, at = Wt(
678
679
  {
679
680
  inputContainerRef: c,
680
681
  optionsContainerRef: p,
681
682
  selectedValueIndex: qe,
682
683
  isDropdownOpen: f,
683
- isDynamicFltering: I(e, "dynamicFiltering"),
684
+ isDynamicFltering: A(e, "dynamicFiltering"),
684
685
  items: Qe,
685
686
  isMultiple: e.multiple
686
687
  },
687
688
  se,
688
689
  Xe,
689
690
  ne
690
- ), at = qt(
691
+ ), ot = qt(
691
692
  {
692
693
  inputContainerRef: c,
693
694
  isDropdownOpen: f
@@ -697,7 +698,7 @@ const _e = {
697
698
  [m.CLOSE_DROPDOWN]: ne,
698
699
  [m.SELECT]: et,
699
700
  [m.SHOW_MORE]: tt,
700
- ...at
701
+ ...ot
701
702
  };
702
703
  e.error && re(
703
704
  'BentoDropdown "error" property',
@@ -716,31 +717,31 @@ const _e = {
716
717
  };
717
718
  return be(
718
719
  () => f.value,
719
- (o) => {
720
- o && d("open");
720
+ (a) => {
721
+ a && d("open");
721
722
  }
722
723
  ), r({
723
724
  focus: Be
724
- }), (o, x) => te((S(), F("div", {
725
+ }), (a, I) => te((S(), K("div", {
725
726
  class: ve(["b-dropdown", Ke.value])
726
727
  }, [
727
- n($) ? (S(), z(n(wt), {
728
+ n($) ? (S(), V(n(wt), {
728
729
  key: 0,
729
730
  id: n(v),
730
- condensed: o.condensed,
731
+ condensed: a.condensed,
731
732
  label: n($),
732
- "tooltip-text": o.tooltipText,
733
- optional: o.optional,
734
- required: o.required
735
- }, null, 8, ["id", "condensed", "label", "tooltip-text", "optional", "required"])) : V("", !0),
736
- te((S(), F("div", _({
733
+ "tooltip-text": a.tooltipText,
734
+ optional: a.optional,
735
+ required: a.required
736
+ }, null, 8, ["id", "condensed", "label", "tooltip-text", "optional", "required"])) : _("", !0),
737
+ te((S(), K("div", F({
737
738
  ref_key: "inputContainerRefWrapper",
738
739
  ref: b
739
- }, ee(n(ot), !0)), [
740
- (S(), z(ke(Fe.value), {
740
+ }, ee(n(at), !0)), [
741
+ (S(), V(ke(Fe.value), {
741
742
  ref_key: "inputContainerRef",
742
743
  ref: c,
743
- condensed: o.condensed,
744
+ condensed: a.condensed,
744
745
  value: R.value,
745
746
  "additional-items-selected": Je.value,
746
747
  "aria-controls": n(O),
@@ -749,88 +750,88 @@ const _e = {
749
750
  "aria-describedby": Ye.value,
750
751
  "aria-label": n(Se),
751
752
  "aria-readonly": n(g),
752
- "aria-required": o.required,
753
+ "aria-required": a.required,
753
754
  readonly: n(g),
754
- disabled: o.disabled,
755
+ disabled: a.disabled,
755
756
  "display-value": n(Ve),
756
- "dynamic-filtering": o.dynamicFiltering,
757
- "is-invalid": !!o.errorMessage || o.error,
758
- multiple: o.multiple,
757
+ "dynamic-filtering": a.dynamicFiltering,
758
+ "is-invalid": !!a.errorMessage || a.error,
759
+ multiple: a.multiple,
759
760
  open: f.value,
760
761
  "selected-value-item": n(we) ? void 0 : We.value,
761
- "show-slot-content-in-multiple": o.showSlotContentInMultiple,
762
- onInput: x[0] || (x[0] = (k) => R.value = k),
762
+ "show-slot-content-in-multiple": a.showSlotContentInMultiple,
763
+ onInput: I[0] || (I[0] = (k) => R.value = k),
763
764
  onOpen: se,
764
765
  onClose: se
765
766
  }, ce({ _: 2 }, [
766
767
  pe(n(s), (k, P) => ({
767
768
  name: P,
768
769
  fn: W((ie) => [
769
- X(o.$slots, P, fe(me(ie)), void 0, !0)
770
+ X(a.$slots, P, fe(me(ie)), void 0, !0)
770
771
  ])
771
772
  }))
772
773
  ]), 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"]))
773
774
  ], 16)), [
774
- [n(Lt)]
775
+ [n(gt)]
775
776
  ]),
776
- c.value ? (S(), z(n(Tt), _({
777
+ c.value ? (S(), V(n(Tt), F({
777
778
  key: 1,
778
779
  id: n(O),
779
780
  ref_key: "optionsContainerRef",
780
781
  ref: p,
781
782
  "aria-label": n(Se),
782
- "component-loading": o.componentLoading,
783
- "empty-state": o.emptyState,
784
- disabled: o.disabled,
785
- "is-option-disabled": o.isOptionDisabled,
786
- items: n(ae),
787
- multiple: o.multiple,
783
+ "component-loading": a.componentLoading,
784
+ "empty-state": a.emptyState,
785
+ disabled: a.disabled,
786
+ "is-option-disabled": a.isOptionDisabled,
787
+ items: n(oe),
788
+ multiple: a.multiple,
788
789
  "static-categories": Ee.value,
789
790
  open: f.value,
790
- "selected-value": n(K),
791
+ "selected-value": n(z),
791
792
  searching: le.value,
792
793
  "target-element": b.value,
793
- loading: o.loading,
794
- "has-more-items": o.hasMoreItems,
795
- "lazy-load-type": o.lazyLoadType,
796
- "virtual-scroll": o.virtualScroll
794
+ loading: a.loading,
795
+ "has-more-items": a.hasMoreItems,
796
+ "lazy-load-type": a.lazyLoadType,
797
+ "virtual-scroll": a.virtualScroll
797
798
  }, ee(lt)), ce({ _: 2 }, [
798
799
  pe(n(s), (k, P) => ({
799
800
  name: P,
800
801
  fn: W((ie) => [
801
- X(o.$slots, P, fe(me(ie)), void 0, !0)
802
+ X(a.$slots, P, fe(me(ie)), void 0, !0)
802
803
  ])
803
804
  }))
804
- ]), 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"])) : V("", !0),
805
- o.errorMessage ? (S(), z(n(Et), {
805
+ ]), 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"])) : _("", !0),
806
+ a.errorMessage ? (S(), V(n(Et), {
806
807
  key: 2,
807
- id: n(D),
808
- "error-message": o.errorMessage,
808
+ id: n(T),
809
+ "error-message": a.errorMessage,
809
810
  class: "b-dropdown__error-message"
810
- }, null, 8, ["id", "error-message"])) : V("", !0),
811
- o.description || n(l)("description") ? (S(), z(n(dt), {
811
+ }, null, 8, ["id", "error-message"])) : _("", !0),
812
+ a.description || n(l)("description") ? (S(), V(n(dt), {
812
813
  key: 3,
813
- id: n(B),
814
+ id: n(D),
814
815
  class: ve(["b-dropdown__description", ze.value]),
815
816
  el: "span"
816
817
  }, {
817
818
  default: W(() => [
818
- X(o.$slots, "description", {}, () => [
819
- rt(ge(o.description), 1)
819
+ X(a.$slots, "description", {}, () => [
820
+ rt(ge(a.description), 1)
820
821
  ], !0)
821
822
  ]),
822
823
  _: 3
823
- }, 8, ["id", "class"])) : V("", !0)
824
+ }, 8, ["id", "class"])) : _("", !0)
824
825
  ], 2)), [
825
- [n(ht), Ge]
826
+ [n(bt), Ge]
826
827
  ]);
827
828
  }
828
- }), bo = /* @__PURE__ */ J(Jt, [["__scopeId", "data-v-5d0bf95e"]]);
829
+ }), ya = /* @__PURE__ */ J(Jt, [["__scopeId", "data-v-06d3531c"]]);
829
830
  export {
830
- bo as B,
831
- vo as I,
831
+ ya as B,
832
+ ma as I,
832
833
  jt as a,
833
- yo as b,
834
+ va as b,
834
835
  Ut as u
835
836
  };
836
- //# sourceMappingURL=dropdown.Bdw2B-Cw.js.map
837
+ //# sourceMappingURL=dropdown.BXbfqIpi.js.map