@adyen/bento-vue2 1.72.0 → 1.73.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 (91) hide show
  1. package/dist/@types/index.d.ts +25 -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-template.css +1 -1
  8. package/dist/assets/data-grid.css +1 -1
  9. package/dist/assets/date-range-picker.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/form-layout-title.css +1 -1
  14. package/dist/assets/input-field-phone-number.css +1 -1
  15. package/dist/assets/inspector.css +1 -1
  16. package/dist/assets/modal-fullscreen.css +1 -1
  17. package/dist/assets/radio-group.css +1 -1
  18. package/dist/assets/radio-input.css +1 -1
  19. package/dist/assets/segmented-control.css +1 -1
  20. package/dist/assets/sidepanel.css +1 -1
  21. package/dist/checkbox.js +2 -2
  22. package/dist/chunks/{checkbox-group.Cr3WdkDM.js → checkbox-group.B85s9nzq.js} +2 -2
  23. package/dist/chunks/{checkbox-group.Cr3WdkDM.js.map → checkbox-group.B85s9nzq.js.map} +1 -1
  24. package/dist/chunks/{checkbox.D7-f9Y6w.js → checkbox.BOIfb1fc.js} +18 -18
  25. package/dist/chunks/{checkbox.D7-f9Y6w.js.map → checkbox.BOIfb1fc.js.map} +1 -1
  26. package/dist/chunks/{code-snippet.BGrwAxWy.js → code-snippet.Dsc6Zuas.js} +2 -2
  27. package/dist/chunks/{code-snippet.BGrwAxWy.js.map → code-snippet.Dsc6Zuas.js.map} +1 -1
  28. package/dist/chunks/{data-grid.B_Ha2vma.js → data-grid.BeClbIY3.js} +1247 -1188
  29. package/dist/chunks/data-grid.BeClbIY3.js.map +1 -0
  30. package/dist/chunks/{date-range-picker.ChGfJUPq.js → date-range-picker.DR2nDLqc.js} +125 -122
  31. package/dist/chunks/date-range-picker.DR2nDLqc.js.map +1 -0
  32. package/dist/chunks/{dropdown-tag.Bwl0fY7o.js → dropdown-tag.CUwoeCwu.js} +2 -2
  33. package/dist/chunks/{dropdown-tag.Bwl0fY7o.js.map → dropdown-tag.CUwoeCwu.js.map} +1 -1
  34. package/dist/chunks/{dropdown.DQbTuKc5.js → dropdown.B4urOhfH.js} +158 -154
  35. package/dist/chunks/{dropdown.DQbTuKc5.js.map → dropdown.B4urOhfH.js.map} +1 -1
  36. package/dist/chunks/es6.MoTTyETW.js.map +1 -1
  37. package/dist/chunks/{filter-bar.Dnnv0rpV.js → filter-bar.B0Dl_8-M.js} +6 -6
  38. package/dist/chunks/{filter-bar.Dnnv0rpV.js.map → filter-bar.B0Dl_8-M.js.map} +1 -1
  39. package/dist/chunks/{form-layout-title.aXVuAWiG.js → form-layout-title.vQNmD6vk.js} +21 -14
  40. package/dist/chunks/form-layout-title.vQNmD6vk.js.map +1 -0
  41. package/dist/chunks/{header-with-views.DjZa4Wob.js → header-with-views.BWwSFABv.js} +3 -3
  42. package/dist/chunks/{header-with-views.DjZa4Wob.js.map → header-with-views.BWwSFABv.js.map} +1 -1
  43. package/dist/chunks/{input-field-password.BPujvbx8.js → input-field-password.BdZrUcJy.js} +3 -3
  44. package/dist/chunks/{input-field-password.BPujvbx8.js.map → input-field-password.BdZrUcJy.js.map} +1 -1
  45. package/dist/chunks/{input-field-phone-number.bqUe_CVf.js → input-field-phone-number.Bm0n9ycw.js} +8 -5
  46. package/dist/chunks/{input-field-phone-number.bqUe_CVf.js.map → input-field-phone-number.Bm0n9ycw.js.map} +1 -1
  47. package/dist/chunks/{input-field.CwF6ldRY.js → input-field.DYVXuVxT.js} +2 -2
  48. package/dist/chunks/{input-field.CwF6ldRY.js.map → input-field.DYVXuVxT.js.map} +1 -1
  49. package/dist/chunks/{pagination.BWTyXMRW.js → pagination.CcH5IWXH.js} +2 -2
  50. package/dist/chunks/{pagination.BWTyXMRW.js.map → pagination.CcH5IWXH.js.map} +1 -1
  51. package/dist/chunks/{radio-group.DHUa6baR.js → radio-group.BuDqrwGq.js} +9 -9
  52. package/dist/chunks/radio-group.BuDqrwGq.js.map +1 -0
  53. package/dist/chunks/{radio-input.D8mv2EYC.js → radio-input.kzb4gxLW.js} +17 -17
  54. package/dist/chunks/radio-input.kzb4gxLW.js.map +1 -0
  55. package/dist/chunks/{rich-text-editor.C905JEDW.js → rich-text-editor.EU6Dltjl.js} +2 -2
  56. package/dist/chunks/{rich-text-editor.C905JEDW.js.map → rich-text-editor.EU6Dltjl.js.map} +1 -1
  57. package/dist/chunks/{search-bar.CKt_-tZH.js → search-bar.PC1n90UR.js} +3 -3
  58. package/dist/chunks/{search-bar.CKt_-tZH.js.map → search-bar.PC1n90UR.js.map} +1 -1
  59. package/dist/chunks/{secondary-nav.B5L2bLmm.js → secondary-nav.BXGVjZJX.js} +2 -2
  60. package/dist/chunks/{secondary-nav.B5L2bLmm.js.map → secondary-nav.BXGVjZJX.js.map} +1 -1
  61. package/dist/chunks/{selection-card-group.CBVKMu6b.js → selection-card-group.VAJ3ifoH.js} +8 -8
  62. package/dist/chunks/{selection-card-group.CBVKMu6b.js.map → selection-card-group.VAJ3ifoH.js.map} +1 -1
  63. package/dist/code-snippet.js +1 -1
  64. package/dist/data-grid.js +1 -1
  65. package/dist/date-range-picker.js +1 -1
  66. package/dist/dropdown.js +2 -2
  67. package/dist/filter-bar.js +1 -1
  68. package/dist/form-layout.js +1 -1
  69. package/dist/header-with-views.js +1 -1
  70. package/dist/index.js +20 -20
  71. package/dist/input-field-password.js +1 -1
  72. package/dist/input-field-phone-number.js +1 -1
  73. package/dist/input-field.js +1 -1
  74. package/dist/pagination.js +1 -1
  75. package/dist/radio-group.js +2 -2
  76. package/dist/rich-text-editor.js +1 -1
  77. package/dist/search-bar.js +2 -2
  78. package/dist/secondary-nav.js +1 -1
  79. package/dist/selection-card.js +1 -1
  80. package/dist/styles/bento-dark.css +20 -13
  81. package/dist/styles/bento-light.css +4 -1
  82. package/dist/styles/bento.css +4 -1
  83. package/dist/styles/legacy.css +4 -1
  84. package/dist/styles/styleguide.css +4 -1
  85. package/dist/web-types.json +29 -10
  86. package/package.json +2 -2
  87. package/dist/chunks/data-grid.B_Ha2vma.js.map +0 -1
  88. package/dist/chunks/date-range-picker.ChGfJUPq.js.map +0 -1
  89. package/dist/chunks/form-layout-title.aXVuAWiG.js.map +0 -1
  90. package/dist/chunks/radio-group.DHUa6baR.js.map +0 -1
  91. package/dist/chunks/radio-input.D8mv2EYC.js.map +0 -1
@@ -1,22 +1,22 @@
1
- import { ref as C, watch as _e, computed as r, defineComponent as R, useSlots as ge, toRefs as he, nextTick as S, useAttrs as Te, toRef as w, inject as Ne } from "vue";
2
- import { d as fe, B as Re } from "./typography.hlOAxsEn.js";
3
- import { a as Y, b as M, c as Ae, B as W, D as Me } from "./dropdown-default-textbox.CDm-PQfc.js";
1
+ import { ref as h, watch as _e, computed as r, defineComponent as R, useSlots as ge, toRefs as he, nextTick as S, useAttrs as Ne, toRef as w, inject as Re } from "vue";
2
+ import { d as fe, B as Ae } from "./typography.hlOAxsEn.js";
3
+ import { a as Y, b as P, c as Me, B as W, D as Pe } from "./dropdown-default-textbox.CDm-PQfc.js";
4
4
  /* empty css */
5
- import { n as $ } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
5
+ import { n as k } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
6
6
  import { s as Z } from "./events.CMzGybJJ.js";
7
- import { g as P } from "./generate-uid.NJ8tVoha.js";
8
- import { u as Pe } from "./aria-label.CaUURpnB.js";
7
+ import { g as $ } from "./generate-uid.NJ8tVoha.js";
8
+ import { u as $e } from "./aria-label.CaUURpnB.js";
9
9
  import { u as X } from "./i18n.BQkEbtPM.js";
10
- import { a as p, b as Q, B as ve, c as $e, u as ke, d as Fe } from "./use-cached-selected-values.C7j6YhuC.js";
11
- import { u as Ke } from "./use-form-layout-loading.D3lALhtC.js";
12
- import { u as ze } from "./use-has-slot.C9lQZ6nz.js";
13
- import { B as E, a as We } from "./keyboard-navigation.pB8weElW.js";
14
- import { B as Ue } from "./directive.Cbdox5VL.js";
15
- import { F as Ve, E as qe } from "./field-label.BKzuCnXr.js";
10
+ import { a as p, b as Q, B as ve, c as ke, u as Fe, d as Ke } from "./use-cached-selected-values.C7j6YhuC.js";
11
+ import { u as ze } from "./use-form-layout-loading.D3lALhtC.js";
12
+ import { u as We } from "./use-has-slot.C9lQZ6nz.js";
13
+ import { B as E, a as Ue } from "./keyboard-navigation.pB8weElW.js";
14
+ import { B as Ve } from "./directive.Cbdox5VL.js";
15
+ import { F as je, E as qe } from "./field-label.BKzuCnXr.js";
16
16
  import { P as me } from "./popper-container.C9KCAJxI.js";
17
- import { h as je } from "./button-actions.55vIvDsX.js";
17
+ import { h as He } from "./button-actions.55vIvDsX.js";
18
18
  import "../assets/dropdown.css";
19
- const He = {
19
+ const Je = {
20
20
  "en-US": {
21
21
  apply: "Apply",
22
22
  cancel: "Cancel",
@@ -30,8 +30,8 @@ const He = {
30
30
  apply: "Aplicar",
31
31
  cancel: "Cancelar"
32
32
  }
33
- }, Je = (a, t, o, e) => {
34
- const n = C(a.value), { t: l } = X();
33
+ }, Ye = (a, t, o, e) => {
34
+ const n = h(a.value), { t: l } = X();
35
35
  _e(a, () => {
36
36
  n.value = a.value;
37
37
  });
@@ -39,9 +39,9 @@ const He = {
39
39
  () => JSON.stringify(n.value) === JSON.stringify(a.value)
40
40
  ), i = () => {
41
41
  e(p.SELECT, n.value), e(p.CLOSE_DROPDOWN);
42
- }, c = () => {
42
+ }, u = () => {
43
43
  n.value = a.value, e(p.CLOSE_DROPDOWN);
44
- }, m = () => {
44
+ }, b = () => {
45
45
  o.value && t.value && (n.value = a.value);
46
46
  }, d = r(() => [
47
47
  {
@@ -51,22 +51,22 @@ const He = {
51
51
  },
52
52
  {
53
53
  title: l("cancel"),
54
- event: c
54
+ event: u
55
55
  }
56
- ]), u = (y) => {
56
+ ]), c = (y) => {
57
57
  n.value = y, t.value || e(p.SELECT, y);
58
58
  }, _ = (y) => {
59
- u(y), e(p.TAB);
59
+ c(y), e(p.TAB);
60
60
  }, g = (y) => {
61
- u(y), e(p.ENTER);
61
+ c(y), e(p.ENTER);
62
62
  }, f = (y) => {
63
- u(y), e(p.SPACE);
63
+ c(y), e(p.SPACE);
64
64
  }, O = () => {
65
- c(), e(p.ESCAPE);
65
+ u(), e(p.ESCAPE);
66
66
  }, L = () => {
67
67
  e(p.SHOW_MORE);
68
68
  }, x = {
69
- [p.SELECT]: u,
69
+ [p.SELECT]: c,
70
70
  [p.SHOW_MORE]: L,
71
71
  [p.TAB]: _,
72
72
  [p.SPACE]: f,
@@ -79,13 +79,13 @@ const He = {
79
79
  // Methods
80
80
  listeners: x,
81
81
  onEscapeKey: O,
82
- onOutsideDropdownClick: m
82
+ onOutsideDropdownClick: b
83
83
  };
84
- }, Ye = R({
85
- i18n: { messages: He },
84
+ }, Ze = R({
85
+ i18n: { messages: Je },
86
86
  name: "bento-dropdown-options-container"
87
- }), Ze = /* @__PURE__ */ R({
88
- ...Ye,
87
+ }), Qe = /* @__PURE__ */ R({
88
+ ...Ze,
89
89
  props: {
90
90
  /**
91
91
  * Defines a string value that labels an interactive element.
@@ -196,11 +196,11 @@ const He = {
196
196
  },
197
197
  emits: [],
198
198
  setup(a, { expose: t, emit: o }) {
199
- const e = a, n = ge(), { selectedValue: l, multiple: s } = he(e), i = C(null), { t: c } = X(), m = r(() => e.open && !e.disabled), d = r(() => c("noOptionsMatchThisSearch")), u = r(() => ({
199
+ const e = a, n = ge(), { selectedValue: l, multiple: s } = he(e), i = h(null), { t: u } = X(), b = r(() => e.open && !e.disabled), d = r(() => u("noOptionsMatchThisSearch")), c = r(() => ({
200
200
  "b-dropdown-options-container--single": !(e != null && e.multiple)
201
201
  })), _ = r(() => ({
202
202
  "b-dropdown-options-container__listbox--single": !(e != null && e.multiple)
203
- })), { actions: g, internalSelectedValue: f, listeners: O, onEscapeKey: L, onOutsideDropdownClick: x } = Je(l, s, m, o), y = r(() => e != null && e.multiple ? je : me), I = r(() => {
203
+ })), { actions: g, internalSelectedValue: f, listeners: O, onEscapeKey: L, onOutsideDropdownClick: x } = Ye(l, s, b, o), y = r(() => e != null && e.multiple ? He : me), I = r(() => {
204
204
  var B;
205
205
  const D = {
206
206
  "min-width": `${(B = e == null ? void 0 : e.targetElement) == null ? void 0 : B.clientWidth}px`,
@@ -212,7 +212,7 @@ const He = {
212
212
  actions: g.value,
213
213
  divider: !0,
214
214
  fallbackPosition: ["top-start"],
215
- id: P(`dropdown-options-${e.id}`),
215
+ id: $(`dropdown-options-${e.id}`),
216
216
  open: e.open,
217
217
  position: "bottom-start",
218
218
  style: {
@@ -225,7 +225,7 @@ const He = {
225
225
  offset: [0, 8],
226
226
  position: "bottom-start",
227
227
  style: {
228
- display: m.value ? "block" : "none",
228
+ display: b.value ? "block" : "none",
229
229
  ...D
230
230
  },
231
231
  targetElement: e.targetElement
@@ -233,10 +233,10 @@ const He = {
233
233
  });
234
234
  return t({
235
235
  onOutsideDropdownClick: x
236
- }), { __sfc: !0, slots: n, emit: o, props: e, selectedValue: l, multiple: s, dropdownOptionsListboxRef: i, t: c, isDropdownOpen: m, noResultsMessage: d, conditionalClasses: u, conditionalListboxClasses: _, actions: g, internalSelectedValue: f, listeners: O, onEscapeKey: L, onOutsideDropdownClick: x, popperContainerOrPopoverComponent: y, popperContainerOrPopoverProps: I, BentoListbox: Q };
236
+ }), { __sfc: !0, slots: n, emit: o, props: e, selectedValue: l, multiple: s, dropdownOptionsListboxRef: i, t: u, isDropdownOpen: b, noResultsMessage: d, conditionalClasses: c, conditionalListboxClasses: _, actions: g, internalSelectedValue: f, listeners: O, onEscapeKey: L, onOutsideDropdownClick: x, popperContainerOrPopoverComponent: y, popperContainerOrPopoverProps: I, BentoListbox: Q };
237
237
  }
238
238
  });
239
- var Qe = function() {
239
+ var Xe = function() {
240
240
  var t = this, o = t._self._c, e = t._self._setupProxy;
241
241
  return o(e.popperContainerOrPopoverComponent, t._b({ tag: "component", staticClass: "b-dropdown-options-container", class: e.conditionalClasses }, "component", e.popperContainerOrPopoverProps, !1), [o("div", { on: { keydown: function(n) {
242
242
  return !n.type.indexOf("key") && t._k(n.keyCode, "esc", 27, n.key, ["Esc", "Escape"]) ? null : e.onEscapeKey.apply(null, arguments);
@@ -245,55 +245,55 @@ var Qe = function() {
245
245
  return [t._t(l, null, null, s)];
246
246
  } };
247
247
  })], null, !0) }, e.listeners))], 1)]);
248
- }, Xe = [], Ge = /* @__PURE__ */ $(
249
- Ze,
248
+ }, Ge = [], et = /* @__PURE__ */ k(
250
249
  Qe,
251
250
  Xe,
251
+ Ge,
252
252
  !1,
253
253
  null,
254
254
  "30d60112"
255
255
  );
256
- const et = Ge.exports;
256
+ const tt = et.exports;
257
257
  let be = 0;
258
- const tt = {
258
+ const ot = {
259
259
  beforeCreate() {
260
260
  this.uuid = be.toString(), be += 1;
261
261
  }
262
262
  };
263
- var ot = function() {
263
+ var nt = function() {
264
264
  var t = this, o = t._self._c;
265
265
  return o("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? o("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), o("path", { attrs: { fill: "#001222", d: "M5.00011 5.43922L8.00011 8.43922L11.0001 5.43922L12.0608 6.49988L8.00011 10.5605L3.93945 6.49988L5.00011 5.43922Z" } })]);
266
- }, nt = [], at = /* @__PURE__ */ $(
267
- tt,
266
+ }, at = [], st = /* @__PURE__ */ k(
268
267
  ot,
269
268
  nt,
269
+ at,
270
270
  !1,
271
271
  null,
272
272
  null
273
273
  );
274
- const st = at.exports;
274
+ const lt = st.exports;
275
275
  let ye = 0;
276
- const lt = {
276
+ const it = {
277
277
  beforeCreate() {
278
278
  this.uuid = ye.toString(), ye += 1;
279
279
  }
280
280
  };
281
- var it = function() {
281
+ var rt = function() {
282
282
  var t = this, o = t._self._c;
283
283
  return o("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? o("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), o("path", { attrs: { fill: "#001222", d: "M10.9999 10.5608L7.9999 7.56077L4.9999 10.5608L3.93924 9.50011L7.9999 5.43945L12.0606 9.50011L10.9999 10.5608Z" } })]);
284
- }, rt = [], dt = /* @__PURE__ */ $(
285
- lt,
284
+ }, dt = [], ut = /* @__PURE__ */ k(
286
285
  it,
287
286
  rt,
287
+ dt,
288
288
  !1,
289
289
  null,
290
290
  null
291
291
  );
292
- const ct = dt.exports, ut = R({
292
+ const ct = ut.exports, pt = R({
293
293
  name: "dropdown-small-textbox",
294
294
  inheritAttrs: !1
295
- }), pt = /* @__PURE__ */ R({
296
- ...ut,
295
+ }), ft = /* @__PURE__ */ R({
296
+ ...pt,
297
297
  props: {
298
298
  /**
299
299
  * The number of additional items that have been selected in the dropdown.
@@ -354,48 +354,48 @@ const ct = dt.exports, ut = R({
354
354
  },
355
355
  emits: ["clear", "close", "input", "keydown", "open"],
356
356
  setup(a, { expose: t, emit: o }) {
357
- const e = a, n = C(null), l = r(() => ({
357
+ const e = a, n = h(null), l = r(() => ({
358
358
  [`b-dropdown-small-textbox--${Y.DISABLED}`]: e.disabled,
359
359
  [`b-dropdown-small-textbox--${Y.READONLY}`]: e.readonly,
360
360
  [`b-dropdown-small-textbox--${Y.OPENED}`]: e.open
361
361
  })), s = r(() => e.open && !e.disabled && !e.readonly), i = (f) => {
362
362
  o("input", f);
363
- }, c = (f) => {
363
+ }, u = (f) => {
364
364
  o("keydown", f);
365
- }, m = (f) => {
365
+ }, b = (f) => {
366
366
  Z(f), o("open");
367
367
  }, d = (f) => {
368
368
  Z(f), o("close");
369
- }, u = (f) => {
369
+ }, c = (f) => {
370
370
  Z(f), o("clear");
371
371
  }, _ = {
372
- [M.INPUT]: i,
373
- [M.OPEN]: m,
374
- [M.CLOSE]: d,
375
- [M.CLEAR]: u,
376
- [M.KEYDOWN]: c
372
+ [P.INPUT]: i,
373
+ [P.OPEN]: b,
374
+ [P.CLOSE]: d,
375
+ [P.CLEAR]: c,
376
+ [P.KEYDOWN]: u
377
377
  }, g = () => {
378
378
  n.value.focus();
379
379
  };
380
380
  return t({
381
381
  focus: g
382
- }), { __sfc: !0, emit: o, props: e, baseTextbox: n, conditionalClasses: l, isDropdownOpen: s, onInput: i, onKeyDown: c, openDropdown: m, closeDropdown: d, clearValue: u, listeners: _, focus: g, BentoDropdownSize: W, DropdownBaseTextbox: Ae, ChevronDownSmallIcon: st, ChevronUpSmallIcon: ct };
382
+ }), { __sfc: !0, emit: o, props: e, baseTextbox: n, conditionalClasses: l, isDropdownOpen: s, onInput: i, onKeyDown: u, openDropdown: b, closeDropdown: d, clearValue: c, listeners: _, focus: g, BentoDropdownSize: W, DropdownBaseTextbox: Me, ChevronDownSmallIcon: lt, ChevronUpSmallIcon: ct };
383
383
  }
384
384
  });
385
- var ft = function() {
385
+ var vt = function() {
386
386
  var t = this, o = t._self._c, e = t._self._setupProxy;
387
387
  return o("div", { staticClass: "b-dropdown-small-textbox", class: e.conditionalClasses }, [o(e.DropdownBaseTextbox, t._g(t._b({ ref: "baseTextbox", staticClass: "b-dropdown-small-textbox__textbox", attrs: { size: e.BentoDropdownSize.SMALL }, scopedSlots: t._u([{ key: "icon", fn: function() {
388
388
  return [o("div", { staticClass: "b-dropdown-small-textbox__chevron" }, [o(e.ChevronUpSmallIcon, { directives: [{ name: "show", rawName: "v-show", value: e.isDropdownOpen, expression: "isDropdownOpen" }], attrs: { "svg-title": "opened" } }), o(e.ChevronDownSmallIcon, { directives: [{ name: "show", rawName: "v-show", value: !e.isDropdownOpen, expression: "!isDropdownOpen" }], attrs: { "svg-title": "closed" } })], 1)];
389
389
  }, proxy: !0 }]) }, "dropdown-base-textbox", { ...t.$attrs, ...t.$props }, !1), e.listeners))], 1);
390
- }, vt = [], mt = /* @__PURE__ */ $(
391
- pt,
390
+ }, mt = [], bt = /* @__PURE__ */ k(
392
391
  ft,
393
392
  vt,
393
+ mt,
394
394
  !1,
395
395
  null,
396
396
  "5e83538c"
397
397
  );
398
- const bt = mt.exports, yt = (a, t) => t.value.reduce((o, e) => {
398
+ const yt = bt.exports, _t = (a, t) => t.value.reduce((o, e) => {
399
399
  if (e.items) {
400
400
  const n = e.items.filter(
401
401
  (s) => a.value.find((i) => i.value === s.value)
@@ -403,18 +403,18 @@ const bt = mt.exports, yt = (a, t) => t.value.reduce((o, e) => {
403
403
  n.length === e.items.length ? o.push(e.displayValue ?? e.label) : n.forEach(({ label: s, displayValue: i }) => o.push(i ?? s));
404
404
  }
405
405
  return a.value.find((n) => n.value === e.value) && o.push(e.displayValue ?? e.label), o;
406
- }, []).join(", "), _t = ({ items: a, placeholder: t, selectedValues: o, isMultiSelect: e }) => {
406
+ }, []).join(", "), gt = ({ items: a, placeholder: t, selectedValues: o, isMultiSelect: e }) => {
407
407
  const n = r(
408
408
  () => e.value && a.value.find((s) => {
409
409
  var i;
410
410
  return (i = s.items) == null ? void 0 : i.length;
411
411
  })
412
412
  );
413
- return r(() => o.value.length ? n.value ? yt(o, a) : o.value.map(({ label: s, displayValue: i }) => i ?? s).join(", ") : t.value || null);
413
+ return r(() => o.value.length ? n.value ? _t(o, a) : o.value.map(({ label: s, displayValue: i }) => i ?? s).join(", ") : t.value || null);
414
414
  }, Ce = (a) => {
415
415
  var t;
416
416
  (t = a.value.$children) == null || t[0].$refs.textbox.focus();
417
- }, gt = ({
417
+ }, ht = ({
418
418
  inputContainerRef: a,
419
419
  optionsContainerRef: t,
420
420
  selectedValueIndex: o,
@@ -422,50 +422,50 @@ const bt = mt.exports, yt = (a, t) => t.value.reduce((o, e) => {
422
422
  isDynamicFltering: n,
423
423
  items: l,
424
424
  isMultiple: s
425
- }, i, c, m) => {
426
- const d = async (b) => {
427
- var h;
428
- n.value && await S(), (h = l.value[b]) == null || h.focus();
429
- }, u = async (b) => {
430
- var F, K;
425
+ }, i, u, b) => {
426
+ const d = async (m) => {
427
+ var C;
428
+ n.value && await S(), (C = l.value[m]) == null || C.focus();
429
+ }, c = async (m) => {
430
+ var A, K;
431
431
  n.value && await S();
432
- const h = (F = t.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef) == null ? void 0 : F.$el.querySelectorAll(
432
+ const C = (A = t.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef) == null ? void 0 : A.$el.querySelectorAll(
433
433
  "button"
434
434
  );
435
- h.length ? (K = h[b]) == null || K.focus() : d(b);
436
- }, _ = (b) => {
437
- var h;
438
- return (h = t.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef) == null ? void 0 : h.setListboxFocusedIndex(
439
- b
435
+ C.length ? (K = C[m]) == null || K.focus() : d(m);
436
+ }, _ = (m) => {
437
+ var C;
438
+ return (C = t.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef) == null ? void 0 : C.setListboxFocusedIndex(
439
+ m
440
440
  );
441
441
  }, g = () => {
442
- e.value || c(), S(() => {
442
+ e.value || u(), S(() => {
443
443
  _(0), d(0);
444
444
  });
445
445
  }, f = () => {
446
- e.value || c(), S(() => {
446
+ e.value || u(), S(() => {
447
447
  _(l.value.length - 1), d(l.value.length - 1);
448
448
  });
449
- }, O = ({ detail: b }) => {
450
- b.preventDefault(), g();
451
- }, L = ({ detail: b }) => {
452
- b.preventDefault(), f();
449
+ }, O = ({ detail: m }) => {
450
+ m.preventDefault(), g();
451
+ }, L = ({ detail: m }) => {
452
+ m.preventDefault(), f();
453
453
  }, x = () => {
454
454
  g();
455
455
  }, y = () => {
456
456
  f();
457
- }, I = ({ detail: b }) => {
458
- b.preventDefault(), i(), e.value && S(() => {
459
- s ? u(0) : (_(o.value), d(o.value));
457
+ }, I = ({ detail: m }) => {
458
+ m.preventDefault(), i(), e.value && S(() => {
459
+ s ? c(0) : (_(o.value), d(o.value));
460
460
  });
461
- }, D = ({ detail: b }) => {
462
- b.preventDefault(), i(), e.value && S(() => {
463
- s ? u(0) : (_(o.value), d(o.value));
461
+ }, D = ({ detail: m }) => {
462
+ m.preventDefault(), i(), e.value && S(() => {
463
+ s ? c(0) : (_(o.value), d(o.value));
464
464
  });
465
465
  }, B = () => {
466
- e.value && m();
467
- }, k = () => {
468
- e.value && (m(), Ce(a));
466
+ e.value && b();
467
+ }, F = () => {
468
+ e.value && (b(), Ce(a));
469
469
  };
470
470
  return r(() => ({
471
471
  [E.ARROW_DOWN]: O,
@@ -475,9 +475,9 @@ const bt = mt.exports, yt = (a, t) => t.value.reduce((o, e) => {
475
475
  ...n.value ? {} : { [E.SPACE]: I },
476
476
  [E.ENTER]: D,
477
477
  [E.TAB]: B,
478
- [E.ESCAPE]: k
478
+ [E.ESCAPE]: F
479
479
  }));
480
- }, ht = ({ inputContainerRef: a, isDropdownOpen: t }, o) => {
480
+ }, Ct = ({ inputContainerRef: a, isDropdownOpen: t }, o) => {
481
481
  const e = () => {
482
482
  t.value && o(), S(() => {
483
483
  Ce(a);
@@ -490,18 +490,18 @@ const bt = mt.exports, yt = (a, t) => t.value.reduce((o, e) => {
490
490
  [p.SPACE]: e
491
491
  };
492
492
  };
493
- function Ct(a, t, o, e) {
494
- const n = C(a), l = C(t), s = (c, m = []) => m.flatMap((d) => d.label.toLocaleLowerCase().includes(c) ? e != null && e.value && d.items ? [...s(c, d.items)] : [d, ...s(c, d.items)] : d.items ? [...s(c, d.items)] : []);
493
+ function wt(a, t, o, e) {
494
+ const n = h(a), l = h(t), s = (u, b = []) => b.flatMap((d) => d.label.toLocaleLowerCase().includes(u) ? e != null && e.value && d.items ? [...s(u, d.items)] : [d, ...s(u, d.items)] : d.items ? [...s(u, d.items)] : []);
495
495
  return _e(n, () => {
496
496
  o !== void 0 && o(n.value);
497
497
  }), r(() => {
498
498
  if (!n.value || o !== void 0)
499
499
  return l.value;
500
- const c = n.value.toLocaleLowerCase();
501
- return s(c, l.value);
500
+ const u = n.value.toLocaleLowerCase();
501
+ return s(u, l.value);
502
502
  });
503
503
  }
504
- const wt = {
504
+ const Lt = {
505
505
  "en-US": {
506
506
  all: "All",
507
507
  ariaLabelFallback: "Dropdown",
@@ -515,15 +515,15 @@ const wt = {
515
515
  all: "Todos",
516
516
  clearFilter: "Limpar filtro"
517
517
  }
518
- }, Lt = Symbol("input field component injection key"), jt = Symbol("input field hint injection key"), Ht = Symbol("input field parent component injection key"), xt = R({
519
- i18n: { messages: wt },
518
+ }, xt = Symbol("input field component injection key"), Ht = Symbol("input field hint injection key"), Jt = Symbol("input field parent component injection key"), St = R({
519
+ i18n: { messages: Lt },
520
520
  name: "b-dropdown",
521
521
  components: {
522
- DropdownInputDefault: Me,
523
- DropdownInputSmall: bt
522
+ DropdownInputDefault: Pe,
523
+ DropdownInputSmall: yt
524
524
  }
525
- }), St = /* @__PURE__ */ R({
526
- ...xt,
525
+ }), Ot = /* @__PURE__ */ R({
526
+ ...St,
527
527
  props: {
528
528
  ariaLabel: { default: null },
529
529
  condensed: { type: Boolean, default: !1 },
@@ -557,33 +557,33 @@ const wt = {
557
557
  emits: ["input", "show-more"],
558
558
  setup(a, { expose: t, emit: o }) {
559
559
  var pe;
560
- const e = a, n = Te(), l = ge(), s = ze(l), { t: i } = X(), c = C(null), m = C(null), d = C(null), u = C(!1), _ = P("bento-dropdown-options-container"), g = P("dropdown-label"), f = P("dropdown-description"), O = P("dropdown-error"), { isReadOnly: L } = Ke(w(e, "readonly")), { cachedSelectedListboxOptions: x, cachedListboxSelectedValues: y, setCachedValues: I } = $e(
560
+ const e = a, n = Ne(), l = ge(), s = We(l), { t: i } = X(), u = h(null), b = h(null), d = h(null), c = h(!1), _ = $("bento-dropdown-options-container"), g = $("dropdown-label"), f = $("dropdown-description"), O = $("dropdown-error"), { isReadOnly: L } = ze(w(e, "readonly")), { cachedSelectedListboxOptions: x, cachedListboxSelectedValues: y, setCachedValues: I } = ke(
561
561
  w(e, "items"),
562
562
  w(e, "value"),
563
563
  w(e, "multiple"),
564
564
  w(e, "enableValueLabelPair")
565
- ), D = C(n["aria-label"]), { ariaLabel: B, label: k } = he(e), U = r(() => i("ariaLabelFallback")), b = Pe({
565
+ ), D = h(n["aria-label"]), B = h(n["aria-describedby"]), { ariaLabel: F, label: U } = he(e), m = r(() => i("ariaLabelFallback")), C = $e({
566
566
  // TODO: take ariaLabel ref away when aria-label prop is removed
567
- ariaLabel: B.value || D,
568
- label: k,
569
- defaultFallback: U
570
- }), h = e.size === W.SMALL || Ne(Lt, !1), F = r(() => h ? W.SMALL : W.DEFAULT), K = r(() => ({
567
+ ariaLabel: F.value || D,
568
+ label: U,
569
+ defaultFallback: m
570
+ }), A = e.size === W.SMALL || Re(xt, !1), K = r(() => A ? W.SMALL : W.DEFAULT), we = r(() => ({
571
571
  "b-dropdown--condensed": e.condensed
572
- })), we = r(() => ({
572
+ })), Le = r(() => ({
573
573
  "b-dropdown__description--error": !!e.errorMessage
574
- })), T = C(""), A = w(e, "items"), G = w(e, "staticCategories"), V = Ct(T, A, (pe = e == null ? void 0 : e.search) == null ? void 0 : pe.searchEvent, G), q = r(() => e.dynamicFiltering && !!T.value), Le = _t({
575
- items: A,
574
+ })), T = h(""), M = w(e, "items"), G = w(e, "staticCategories"), V = wt(T, M, (pe = e == null ? void 0 : e.search) == null ? void 0 : pe.searchEvent, G), j = r(() => e.dynamicFiltering && !!T.value), xe = gt({
575
+ items: M,
576
576
  placeholder: w(e, "placeholder"),
577
577
  isMultiSelect: w(e, "multiple"),
578
578
  selectedValues: x
579
- }), xe = r(() => {
579
+ }), Se = r(() => {
580
580
  if (e != null && e.multiple && Array.isArray(e.value))
581
581
  return e.items.filter(
582
582
  ({ value: v }) => (e == null ? void 0 : e.value) && (e == null ? void 0 : e.value).includes(v)
583
583
  );
584
584
  if (!e.multiple && e.staticCategories) {
585
585
  const v = e.items.find(
586
- (J) => J.items.some((Ie) => Ie.value === e.value)
586
+ (J) => J.items.some((Te) => Te.value === e.value)
587
587
  );
588
588
  return v ? v.items.find((J) => J.value === e.value) : null;
589
589
  }
@@ -591,43 +591,47 @@ const wt = {
591
591
  }), ee = r(() => {
592
592
  const v = V.value.findIndex(({ value: N }) => e.enableValueLabelPair ? e.value.value === N : e.value === N);
593
593
  return v > -1 ? v : 0;
594
- }), { isMultiLevelSelect: j, flattenedItemsList: te } = ke(A), oe = r(() => j.value && !e.staticCategories), ne = r(() => oe.value ? "treeitem" : "option"), Se = r(() => {
594
+ }), { isMultiLevelSelect: q, flattenedItemsList: te } = Fe(M), oe = r(() => q.value && !e.staticCategories), ne = r(() => oe.value ? "treeitem" : "option"), Oe = r(() => {
595
595
  if (e.multiple) {
596
- const v = Array.isArray(e.value) ? e.value.length : 0, N = j.value ? te.value.length : A.value.length;
596
+ const v = Array.isArray(e.value) ? e.value.length : 0, N = q.value ? te.value.length : M.value.length;
597
597
  return v === 0 ? null : !e.hasMoreItems && N > 0 && N === v ? i("all") : v;
598
598
  }
599
599
  return null;
600
- }), Oe = r(
601
- () => `${e.description ? f : ""} ${e.errorMessage ? O : ""}`.trim() || null
600
+ }), Ee = r(
601
+ () => [
602
+ e.description ? f : null,
603
+ B.value,
604
+ e.errorMessage ? O : null
605
+ ].filter(Boolean).join(" ") || null
602
606
  ), ae = r(() => {
603
607
  var v;
604
608
  return (v = d.value) == null ? void 0 : v.$el;
605
- }), { visibleDomOptions: se, updateVisibleDomOptions: H } = Fe(
609
+ }), { visibleDomOptions: se, updateVisibleDomOptions: H } = Ke(
606
610
  ae,
607
611
  V,
608
612
  ne
609
613
  ), le = () => {
610
- L.value || (u.value = !0, S(() => {
614
+ L.value || (c.value = !0, S(() => {
611
615
  H();
612
616
  }));
613
617
  }, z = () => {
614
- u.value = !1;
618
+ c.value = !1;
615
619
  }, ie = () => {
616
- L.value || (u.value = !u.value, S(() => {
620
+ L.value || (c.value = !c.value, S(() => {
617
621
  H();
618
- }), q.value && (T.value = ""));
619
- }, Ee = () => {
620
- q.value && (T.value = ""), u.value && (u.value = !1, d.value.onOutsideDropdownClick());
622
+ }), j.value && (T.value = ""));
623
+ }, De = () => {
624
+ j.value && (T.value = ""), c.value && (c.value = !1, d.value.onOutsideDropdownClick());
621
625
  }, re = (v) => {
622
- e.multiple || (T.value = "", u.value = !1), I(v), o("input", y.value);
626
+ e.multiple || (T.value = "", c.value = !1), I(v), o("input", y.value);
623
627
  }, de = () => {
624
628
  o(p.SHOW_MORE);
625
- }, De = gt(
629
+ }, Be = ht(
626
630
  {
627
- inputContainerRef: c,
631
+ inputContainerRef: u,
628
632
  optionsContainerRef: d,
629
633
  selectedValueIndex: ee,
630
- isDropdownOpen: u,
634
+ isDropdownOpen: c,
631
635
  isDynamicFltering: w(e, "dynamicFiltering"),
632
636
  items: se,
633
637
  isMultiple: e.multiple
@@ -635,17 +639,17 @@ const wt = {
635
639
  ie,
636
640
  le,
637
641
  z
638
- ), ce = ht(
642
+ ), ue = Ct(
639
643
  {
640
- inputContainerRef: c,
641
- isDropdownOpen: u
644
+ inputContainerRef: u,
645
+ isDropdownOpen: c
642
646
  },
643
647
  z
644
- ), Be = {
648
+ ), Ie = {
645
649
  [p.CLOSE_DROPDOWN]: z,
646
650
  [p.SELECT]: re,
647
651
  [p.SHOW_MORE]: de,
648
- ...ce
652
+ ...ue
649
653
  };
650
654
  e.error && fe(
651
655
  'BentoDropdown "error" property',
@@ -654,15 +658,15 @@ const wt = {
654
658
  <bento-dropdown errorMessage="Error message text" />`,
655
659
  "2.0.0"
656
660
  ), e.size && fe('BentoDropdown "size" property', "Do not use. Only 'default' size should be used.", "2.0.0");
657
- const ue = () => {
658
- c.value.focus();
661
+ const ce = () => {
662
+ u.value.focus();
659
663
  };
660
664
  return t({
661
- focus: ue
662
- }), { __sfc: !0, attrs: n, slots: l, hasSlot: s, props: e, emit: o, t: i, inputContainerRef: c, inputContainerRefWrapper: m, optionsContainerRef: d, isDropdownOpen: u, dropdownOptionsContainerId: _, labelId: g, descriptionId: f, errorId: O, isReadOnly: L, cachedSelectedListboxOptions: x, cachedListboxSelectedValues: y, setCachedValues: I, ariaLabelAttribute: D, ariaLabel: B, label: k, computedAriaLabelFallbackMessage: U, computedAriaLabel: b, isInputComponent: h, computedSize: F, conditionalClasses: K, descriptionConditionalClasses: we, searchTerm: T, items: A, staticCategories: G, filteredItems: V, isSearching: q, displayValue: Le, selectedValueItem: xe, selectedValueIndex: ee, isMultiLevelSelect: j, flattenedItemsList: te, isTreePattern: oe, computedOptionRole: ne, additionalItemsSelected: Se, ariaDescribedBy: Oe, listboxRef: ae, visibleDomOptions: se, updateVisibleDomOptions: H, openDropdown: le, closeDropdown: z, toggleDropdown: ie, clickOutsideDropdown: Ee, onOptionSelected: re, emitShowMoreEvent: de, textboxKeyboardNavigationListeners: De, listboxKeyboardNavigationListeners: ce, listboxListeners: Be, focus: ue, BentoDropdownOptionsContainer: et, BentoTypography: Re, ErrorMessage: qe, FieldLabel: Ve, vBentoClickOutsideDirective: Ue, vBentoKeyboardNavigationDirective: We };
665
+ focus: ce
666
+ }), { __sfc: !0, attrs: n, slots: l, hasSlot: s, props: e, emit: o, t: i, inputContainerRef: u, inputContainerRefWrapper: b, optionsContainerRef: d, isDropdownOpen: c, dropdownOptionsContainerId: _, labelId: g, descriptionId: f, errorId: O, isReadOnly: L, cachedSelectedListboxOptions: x, cachedListboxSelectedValues: y, setCachedValues: I, ariaLabelAttribute: D, ariaDescribedByAttribute: B, ariaLabel: F, label: U, computedAriaLabelFallbackMessage: m, computedAriaLabel: C, isInputComponent: A, computedSize: K, conditionalClasses: we, descriptionConditionalClasses: Le, searchTerm: T, items: M, staticCategories: G, filteredItems: V, isSearching: j, displayValue: xe, selectedValueItem: Se, selectedValueIndex: ee, isMultiLevelSelect: q, flattenedItemsList: te, isTreePattern: oe, computedOptionRole: ne, additionalItemsSelected: Oe, ariaDescribedBy: Ee, listboxRef: ae, visibleDomOptions: se, updateVisibleDomOptions: H, openDropdown: le, closeDropdown: z, toggleDropdown: ie, clickOutsideDropdown: De, onOptionSelected: re, emitShowMoreEvent: de, textboxKeyboardNavigationListeners: Be, listboxKeyboardNavigationListeners: ue, listboxListeners: Ie, focus: ce, BentoDropdownOptionsContainer: tt, BentoTypography: Ae, ErrorMessage: qe, FieldLabel: je, vBentoClickOutsideDirective: Ve, vBentoKeyboardNavigationDirective: Ue };
663
667
  }
664
668
  });
665
- var Ot = function() {
669
+ var Et = function() {
666
670
  var n;
667
671
  var t = this, o = t._self._c, e = t._self._setupProxy;
668
672
  return o("div", { directives: [{ name: "bento-click-outside-directive", rawName: "v-bento-click-outside-directive", value: e.clickOutsideDropdown, expression: "clickOutsideDropdown" }], staticClass: "b-dropdown", class: e.conditionalClasses }, [e.label ? o(e.FieldLabel, { attrs: { id: e.labelId, condensed: t.condensed, label: e.label, "tooltip-text": t.tooltipText, optional: t.optional, required: t.required } }) : t._e(), o("div", t._g({ directives: [{ name: "bento-keyboard-navigation-directive", rawName: "v-bento-keyboard-navigation-directive" }], ref: "inputContainerRefWrapper" }, e.textboxKeyboardNavigationListeners), [o(e.computedSize, { ref: "inputContainerRef", tag: "component", attrs: { condensed: t.condensed, value: e.searchTerm, "additional-items-selected": e.additionalItemsSelected, "aria-controls": e.dropdownOptionsContainerId, ariaExpanded: e.isDropdownOpen, "aria-labelledby": e.label ? e.labelId : null, "aria-describedby": e.ariaDescribedBy, "aria-label": e.computedAriaLabel, "aria-readonly": e.isReadOnly, readonly: e.isReadOnly, required: t.required, disabled: t.disabled, "display-value": e.displayValue, "dynamic-filtering": t.dynamicFiltering, "is-invalid": !!t.errorMessage || t.error, multiple: t.multiple, open: e.isDropdownOpen, "selected-value-item": e.isInputComponent ? void 0 : e.selectedValueItem, "show-slot-content-in-multiple": t.showSlotContentInMultiple }, on: { input: function(l) {
@@ -678,20 +682,20 @@ var Ot = function() {
678
682
  })], null, !0) }, e.listboxListeners)) : t._e(), t.errorMessage ? o(e.ErrorMessage, { staticClass: "b-dropdown__error-message", attrs: { id: e.errorId, "error-message": t.errorMessage } }) : t._e(), t.description || e.hasSlot("description") ? o(e.BentoTypography, { staticClass: "b-dropdown__description", class: e.descriptionConditionalClasses, attrs: { id: e.descriptionId, el: "span" } }, [t._t("description", function() {
679
683
  return [t._v(" " + t._s(t.description) + " ")];
680
684
  })], 2) : t._e()], 1);
681
- }, Et = [], Dt = /* @__PURE__ */ $(
682
- St,
685
+ }, Dt = [], Bt = /* @__PURE__ */ k(
683
686
  Ot,
684
687
  Et,
688
+ Dt,
685
689
  !1,
686
690
  null,
687
- "1c4a9144"
691
+ "f5d69bb1"
688
692
  );
689
- const Jt = Dt.exports;
693
+ const Yt = Bt.exports;
690
694
  export {
691
- Jt as B,
692
- jt as I,
693
- Lt as a,
694
- Ht as b,
695
- Ct as u
695
+ Yt as B,
696
+ Ht as I,
697
+ xt as a,
698
+ Jt as b,
699
+ wt as u
696
700
  };
697
- //# sourceMappingURL=dropdown.DQbTuKc5.js.map
701
+ //# sourceMappingURL=dropdown.B4urOhfH.js.map