@adyen/bento-vue3 1.48.0 → 1.50.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.
- package/dist/@types/index.d.ts +107 -944
- package/dist/action-bar.js +1 -1
- package/dist/alert.js +1 -1
- package/dist/assets/accordion-item.css +1 -1
- package/dist/assets/action-bar.css +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/filter-bar.css +1 -1
- package/dist/assets/header.css +1 -1
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/link.css +1 -1
- package/dist/assets/menu.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/payment-method.css +1 -1
- package/dist/assets/popover.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/toggle-button.css +1 -1
- package/dist/button.js +3 -3
- package/dist/card.js +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/chunks/{action-bar.DWekSxPr.js → action-bar.DkGjsKiy.js} +6 -6
- package/dist/chunks/{action-bar.DWekSxPr.js.map → action-bar.DkGjsKiy.js.map} +1 -1
- package/dist/chunks/{alert.Dd2DYCZ1.js → alert.DGewBB2a.js} +2 -2
- package/dist/chunks/{alert.Dd2DYCZ1.js.map → alert.DGewBB2a.js.map} +1 -1
- package/dist/chunks/{base-modal.DOrcARK1.js → base-modal.gW2mkOwf.js} +5 -5
- package/dist/chunks/{base-modal.DOrcARK1.js.map → base-modal.gW2mkOwf.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.BRdRrr4J.js → button-actions-with-menu.BXRKkFiw.js} +4 -4
- package/dist/chunks/{button-actions-with-menu.BRdRrr4J.js.map → button-actions-with-menu.BXRKkFiw.js.map} +1 -1
- package/dist/chunks/{button-actions.ncthaz2m.js → button-actions.BZEKcCbe.js} +2 -2
- package/dist/chunks/{button-actions.ncthaz2m.js.map → button-actions.BZEKcCbe.js.map} +1 -1
- package/dist/chunks/{button.Cneb6rPP.js → button.BXVKUuum.js} +2 -2
- package/dist/chunks/{button.Cneb6rPP.js.map → button.BXVKUuum.js.map} +1 -1
- package/dist/chunks/{calendar.BdLQOioy.js → calendar.DNQlLbkK.js} +2 -2
- package/dist/chunks/{calendar.BdLQOioy.js.map → calendar.DNQlLbkK.js.map} +1 -1
- package/dist/chunks/{card.BAg7yMMT.js → card.Ec-SR2qG.js} +2 -2
- package/dist/chunks/{card.BAg7yMMT.js.map → card.Ec-SR2qG.js.map} +1 -1
- package/dist/chunks/{checkbox-group.C-EmVp5t.js → checkbox-group.KeIRO8lx.js} +4 -4
- package/dist/chunks/{checkbox-group.C-EmVp5t.js.map → checkbox-group.KeIRO8lx.js.map} +1 -1
- package/dist/chunks/{checkbox.BOtqaTUl.js → checkbox.BllRk82F.js} +17 -17
- package/dist/chunks/{checkbox.BOtqaTUl.js.map → checkbox.BllRk82F.js.map} +1 -1
- package/dist/chunks/{code-snippet.C9fCiM5V.js → code-snippet.DfTfz3vU.js} +6 -6
- package/dist/chunks/{code-snippet.C9fCiM5V.js.map → code-snippet.DfTfz3vU.js.map} +1 -1
- package/dist/chunks/{controls-group.BeK9igGT.js → controls-group.BnbQO34k.js} +2 -2
- package/dist/chunks/{controls-group.BeK9igGT.js.map → controls-group.BnbQO34k.js.map} +1 -1
- package/dist/chunks/{copy.HpUjy6OL.js → copy.DAu8GrR9.js} +3 -3
- package/dist/chunks/{copy.HpUjy6OL.js.map → copy.DAu8GrR9.js.map} +1 -1
- package/dist/chunks/currency.DagWnTry.js.map +1 -1
- package/dist/chunks/{dashboard-section.DoGuJKz_.js → dashboard-section.pyg05_v_.js} +4 -4
- package/dist/chunks/{dashboard-section.DoGuJKz_.js.map → dashboard-section.pyg05_v_.js.map} +1 -1
- package/dist/chunks/{dashed-underline.DZuyR-N7.js → dashed-underline.DTZGLrPu.js} +3 -3
- package/dist/chunks/{dashed-underline.DZuyR-N7.js.map → dashed-underline.DTZGLrPu.js.map} +1 -1
- package/dist/chunks/{data-grid-template.BpJbblNT.js → data-grid-template.sUNqCvbt.js} +3 -3
- package/dist/chunks/{data-grid-template.BpJbblNT.js.map → data-grid-template.sUNqCvbt.js.map} +1 -1
- package/dist/chunks/{data-grid.CdTcZ3DP.js → data-grid.BNXoMZf9.js} +1028 -1022
- package/dist/chunks/data-grid.BNXoMZf9.js.map +1 -0
- package/dist/chunks/{date-picker.CjbhJWGH.js → date-picker.DgpHNnu_.js} +17 -17
- package/dist/chunks/{date-picker.CjbhJWGH.js.map → date-picker.DgpHNnu_.js.map} +1 -1
- package/dist/chunks/{date-range-picker.CoonfpYT.js → date-range-picker.CUIOfxjB.js} +26 -26
- package/dist/chunks/{date-range-picker.CoonfpYT.js.map → date-range-picker.CUIOfxjB.js.map} +1 -1
- package/dist/chunks/{dialog-page.D_r_CbyD.js → dialog-page.DK2UKGH8.js} +2 -2
- package/dist/chunks/{dialog-page.D_r_CbyD.js.map → dialog-page.DK2UKGH8.js.map} +1 -1
- package/dist/chunks/{dropdown-tag.B5QFkTl_.js → dropdown-tag.DqfoOcUU.js} +4 -4
- package/dist/chunks/{dropdown-tag.B5QFkTl_.js.map → dropdown-tag.DqfoOcUU.js.map} +1 -1
- package/dist/chunks/{dropdown.BN6DALZa.js → dropdown.a8OeeVAZ.js} +344 -344
- package/dist/chunks/dropdown.a8OeeVAZ.js.map +1 -0
- package/dist/chunks/{empty-state.C2ancCe6.js → empty-state.DkYtiTHG.js} +2 -2
- package/dist/chunks/{empty-state.C2ancCe6.js.map → empty-state.DkYtiTHG.js.map} +1 -1
- package/dist/chunks/{error-message.X-gxnQcx.js → error-message.B3z5WkLF.js} +2 -2
- package/dist/chunks/{error-message.X-gxnQcx.js.map → error-message.B3z5WkLF.js.map} +1 -1
- package/dist/chunks/es6.BtaxuP0b.js.map +1 -1
- package/dist/chunks/{file-uploader.CLZ1rPz0.js → file-uploader.DV4I5Lvf.js} +475 -470
- package/dist/chunks/file-uploader.DV4I5Lvf.js.map +1 -0
- package/dist/chunks/{filter-bar.zvHeHs9B.js → filter-bar.BZkXUVLH.js} +20 -19
- package/dist/chunks/{filter-bar.zvHeHs9B.js.map → filter-bar.BZkXUVLH.js.map} +1 -1
- package/dist/chunks/{fixed-scroller.BZwgM5Io.js → fixed-scroller.B4Eag_Sd.js} +2 -2
- package/dist/chunks/{fixed-scroller.BZwgM5Io.js.map → fixed-scroller.B4Eag_Sd.js.map} +1 -1
- package/dist/chunks/{focus-trap.CnKbO3b1.js → focus-trap.DPJj05sV.js} +6 -3
- package/dist/chunks/{focus-trap.CnKbO3b1.js.map → focus-trap.DPJj05sV.js.map} +1 -1
- package/dist/chunks/{footer-actions.X_RokrtM.js → footer-actions.WvWwFKM8.js} +3 -3
- package/dist/chunks/{footer-actions.X_RokrtM.js.map → footer-actions.WvWwFKM8.js.map} +1 -1
- package/dist/chunks/{form-layout-title.xkALokzl.js → form-layout-title.BHL_MDqT.js} +2 -2
- package/dist/chunks/{form-layout-title.xkALokzl.js.map → form-layout-title.BHL_MDqT.js.map} +1 -1
- package/dist/chunks/{header.CUhyy9NL.js → header.CRC9X7v2.js} +20 -20
- package/dist/chunks/{header.CUhyy9NL.js.map → header.CRC9X7v2.js.map} +1 -1
- package/dist/chunks/{index.BMkVmbZj.js → index.BS3BeXQJ.js} +8 -7
- package/dist/chunks/{index.BMkVmbZj.js.map → index.BS3BeXQJ.js.map} +1 -1
- package/dist/chunks/{info-icon-with-popover.NzQciGvf.js → info-icon-with-popover.BM0esxKN.js} +2 -2
- package/dist/chunks/{info-icon-with-popover.NzQciGvf.js.map → info-icon-with-popover.BM0esxKN.js.map} +1 -1
- package/dist/chunks/{info-icon.BCSBCH-5.js → info-icon.DQn8-VSp.js} +2 -2
- package/dist/chunks/{info-icon.BCSBCH-5.js.map → info-icon.DQn8-VSp.js.map} +1 -1
- package/dist/chunks/{input-field-password.B4HgGilX.js → input-field-password.Bo7FiAOq.js} +6 -6
- package/dist/chunks/{input-field-password.B4HgGilX.js.map → input-field-password.Bo7FiAOq.js.map} +1 -1
- package/dist/chunks/{input-field-phone-number.CpY2BLfO.js → input-field-phone-number.DO2uU2XW.js} +2 -2
- package/dist/chunks/{input-field-phone-number.CpY2BLfO.js.map → input-field-phone-number.DO2uU2XW.js.map} +1 -1
- package/dist/chunks/{input-field.DQKiMtZo.js → input-field.rgA0t2sp.js} +3 -3
- package/dist/chunks/{input-field.DQKiMtZo.js.map → input-field.rgA0t2sp.js.map} +1 -1
- package/dist/chunks/inspector.types.Io6ONte7.js +184 -0
- package/dist/chunks/inspector.types.Io6ONte7.js.map +1 -0
- package/dist/chunks/{layout-row.9G7yVMVt.js → layout-row.BAz7JrXo.js} +2 -2
- package/dist/chunks/{layout-row.9G7yVMVt.js.map → layout-row.BAz7JrXo.js.map} +1 -1
- package/dist/chunks/{link.ClFi8uSm.js → link.CyGCtpse.js} +9 -9
- package/dist/chunks/link.CyGCtpse.js.map +1 -0
- package/dist/chunks/{listbox-option-tag.CFNRfAtf.js → listbox-option-tag.DIk4F59J.js} +2 -2
- package/dist/chunks/{listbox-option-tag.CFNRfAtf.js.map → listbox-option-tag.DIk4F59J.js.map} +1 -1
- package/dist/chunks/{menu.DIKy_Pyt.js → menu.DKluB_Dn.js} +45 -44
- package/dist/chunks/menu.DKluB_Dn.js.map +1 -0
- package/dist/chunks/{modal-fullscreen.Fqcd3B6-.js → modal-fullscreen.D1gvJFag.js} +5 -5
- package/dist/chunks/{modal-fullscreen.Fqcd3B6-.js.map → modal-fullscreen.D1gvJFag.js.map} +1 -1
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.PEGJemgc.js → modal.vue_vue_type_script_setup_true_lang.91_wyIIq.js} +5 -5
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.PEGJemgc.js.map → modal.vue_vue_type_script_setup_true_lang.91_wyIIq.js.map} +1 -1
- package/dist/chunks/{pagination.DogGVwa2.js → pagination.CGS6fGUm.js} +3 -3
- package/dist/chunks/{pagination.DogGVwa2.js.map → pagination.CGS6fGUm.js.map} +1 -1
- package/dist/chunks/payment-method.CGNHCiy1.js +73 -0
- package/dist/chunks/payment-method.CGNHCiy1.js.map +1 -0
- package/dist/chunks/payment-method.types.CJKfZQN5.js.map +1 -1
- package/dist/chunks/{popover.NEP6wuPa.js → popover.BNOfWuSb.js} +94 -93
- package/dist/chunks/popover.BNOfWuSb.js.map +1 -0
- package/dist/chunks/{popper-container.DKDjRvdv.js → popper-container.BvGYgqiE.js} +2 -2
- package/dist/chunks/{popper-container.DKDjRvdv.js.map → popper-container.BvGYgqiE.js.map} +1 -1
- package/dist/chunks/{promo-banner.DTH4CZ_2.js → promo-banner.BUtq-2iR.js} +3 -3
- package/dist/chunks/{promo-banner.DTH4CZ_2.js.map → promo-banner.BUtq-2iR.js.map} +1 -1
- package/dist/chunks/{radio-group.BLHcC22p.js → radio-group.CivaJaaQ.js} +4 -4
- package/dist/chunks/{radio-group.BLHcC22p.js.map → radio-group.CivaJaaQ.js.map} +1 -1
- package/dist/chunks/{search-bar.CatznIEM.js → search-bar.Zdai5UhB.js} +3 -3
- package/dist/chunks/{search-bar.CatznIEM.js.map → search-bar.Zdai5UhB.js.map} +1 -1
- package/dist/chunks/{secondary-nav.LIzkbQY1.js → secondary-nav.C6D6dcs6.js} +3 -3
- package/dist/chunks/{secondary-nav.LIzkbQY1.js.map → secondary-nav.C6D6dcs6.js.map} +1 -1
- package/dist/chunks/{segmented-control.DOxyrdMz.js → segmented-control.DKWpxDho.js} +2 -2
- package/dist/chunks/{segmented-control.DOxyrdMz.js.map → segmented-control.DKWpxDho.js.map} +1 -1
- package/dist/chunks/{selection-card-group.BKatprYB.js → selection-card-group.DzwIeKQC.js} +12 -12
- package/dist/chunks/{selection-card-group.BKatprYB.js.map → selection-card-group.DzwIeKQC.js.map} +1 -1
- package/dist/chunks/{sidepanel.Be3uyOVd.js → sidepanel.DzF1iCZM.js} +5 -5
- package/dist/chunks/{sidepanel.Be3uyOVd.js.map → sidepanel.DzF1iCZM.js.map} +1 -1
- package/dist/chunks/{structured-list-item.BwgEJywb.js → structured-list-item.DQHvIbQo.js} +5 -5
- package/dist/chunks/{structured-list-item.BwgEJywb.js.map → structured-list-item.DQHvIbQo.js.map} +1 -1
- package/dist/chunks/{summary-grid-item-custom.Vx_YxH7S.js → summary-grid-item-custom.D6s8sw36.js} +4 -4
- package/dist/chunks/{summary-grid-item-custom.Vx_YxH7S.js.map → summary-grid-item-custom.D6s8sw36.js.map} +1 -1
- package/dist/chunks/{tabs.CR2tWuz3.js → tabs.CiTn85aw.js} +2 -2
- package/dist/chunks/{tabs.CR2tWuz3.js.map → tabs.CiTn85aw.js.map} +1 -1
- package/dist/chunks/{tag.Chr4TP7d.js → tag.Bmw9RaOG.js} +2 -2
- package/dist/chunks/{tag.Chr4TP7d.js.map → tag.Bmw9RaOG.js.map} +1 -1
- package/dist/chunks/{textarea.BLhKC_iw.js → textarea.CzuRg2pM.js} +3 -3
- package/dist/chunks/{textarea.BLhKC_iw.js.map → textarea.CzuRg2pM.js.map} +1 -1
- package/dist/chunks/{timeline-item.BVm2YscV.js → timeline-item.CjltBKy0.js} +7 -7
- package/dist/chunks/{timeline-item.BVm2YscV.js.map → timeline-item.CjltBKy0.js.map} +1 -1
- package/dist/chunks/{toast.A5f1_NqV.js → toast.BWxPbCOy.js} +2 -2
- package/dist/chunks/{toast.A5f1_NqV.js.map → toast.BWxPbCOy.js.map} +1 -1
- package/dist/chunks/{toggle-button.CCgvi7TQ.js → toggle-button.B9LWddx9.js} +23 -22
- package/dist/chunks/toggle-button.B9LWddx9.js.map +1 -0
- package/dist/chunks/{tooltip.2MOlGHD9.js → tooltip.DS1ok8gh.js} +2 -2
- package/dist/chunks/{tooltip.2MOlGHD9.js.map → tooltip.DS1ok8gh.js.map} +1 -1
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.D4ifiOTn.js → tutorial.vue_vue_type_script_setup_true_lang.CxTHd8yr.js} +5 -5
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.D4ifiOTn.js.map → tutorial.vue_vue_type_script_setup_true_lang.CxTHd8yr.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.CoelUIEy.js → use-cached-selected-values.CxAhnNa6.js} +483 -479
- package/dist/chunks/use-cached-selected-values.CxAhnNa6.js.map +1 -0
- package/dist/code-snippet.js +1 -1
- package/dist/dashboard-template.js +1 -1
- package/dist/dashed-underline.js +1 -1
- package/dist/data-grid-template.js +1 -1
- package/dist/data-grid.js +1 -1
- package/dist/date-picker.js +2 -2
- package/dist/date-range-picker.js +2 -2
- package/dist/dropdown.js +3 -3
- package/dist/empty-state.js +1 -1
- package/dist/file-uploader.js +1 -1
- package/dist/filter-bar.js +1 -1
- package/dist/focus-trap.js +1 -1
- package/dist/form-layout.js +1 -1
- package/dist/header.js +1 -1
- package/dist/index.js +54 -54
- package/dist/info-icon.js +1 -1
- package/dist/input-field-password.js +1 -1
- package/dist/input-field-phone-number.js +1 -1
- package/dist/input-field.js +1 -1
- package/dist/inspector.js +1 -1
- package/dist/internal.js +12 -12
- package/dist/layout.js +1 -1
- package/dist/link.js +1 -1
- package/dist/menu.js +1 -1
- package/dist/modal-fullscreen.js +1 -1
- package/dist/modal.js +2 -2
- package/dist/pagination.js +1 -1
- package/dist/payment-method.js +1 -1
- package/dist/popover.js +1 -1
- package/dist/popper-container.js +1 -1
- package/dist/promo-banner.js +1 -1
- package/dist/radio-group.js +1 -1
- package/dist/search-bar.js +2 -2
- package/dist/secondary-nav.js +1 -1
- package/dist/segmented-control.js +1 -1
- package/dist/selection-card.js +1 -1
- package/dist/sidepanel.js +1 -1
- package/dist/structured-list.js +1 -1
- package/dist/styles/bento-dark.css +2 -1
- package/dist/styles/bento-light.css +2 -1
- package/dist/styles/bento.css +2 -1
- package/dist/styles/legacy.css +3 -0
- package/dist/styles/styleguide.css +2 -1
- package/dist/summary-grid.js +1 -1
- package/dist/tabs.js +1 -1
- package/dist/tag.js +1 -1
- package/dist/textarea.js +1 -1
- package/dist/timeline.js +1 -1
- package/dist/toast.js +1 -1
- package/dist/tutorial.js +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +4 -4
- package/dist/chunks/data-grid.CdTcZ3DP.js.map +0 -1
- package/dist/chunks/dropdown.BN6DALZa.js.map +0 -1
- package/dist/chunks/file-uploader.CLZ1rPz0.js.map +0 -1
- package/dist/chunks/inspector.types.C-Qos3dV.js +0 -124
- package/dist/chunks/inspector.types.C-Qos3dV.js.map +0 -1
- package/dist/chunks/link.ClFi8uSm.js.map +0 -1
- package/dist/chunks/menu.DIKy_Pyt.js.map +0 -1
- package/dist/chunks/payment-method.NguqkTwG.js +0 -103
- package/dist/chunks/payment-method.NguqkTwG.js.map +0 -1
- package/dist/chunks/popover.NEP6wuPa.js.map +0 -1
- package/dist/chunks/toggle-button.CCgvi7TQ.js.map +0 -1
- package/dist/chunks/use-cached-selected-values.CoelUIEy.js.map +0 -1
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { d as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { B as
|
|
12
|
-
import { a as d, b as pe, B as me, c as nt, u as it } from "./use-cached-selected-values.CoelUIEy.js";
|
|
1
|
+
import { ref as C, watch as Oe, computed as c, defineComponent as F, useSlots as Be, toRefs as De, createBlock as k, openBlock as L, resolveDynamicComponent as $e, mergeProps as M, withCtx as K, createElementVNode as te, withKeys as _e, unref as n, createVNode as Q, toHandlers as G, createSlots as re, renderList as de, renderSlot as X, normalizeProps as ue, guardReactiveProps as ce, createElementBlock as R, createCommentVNode as P, toDisplayString as ve, normalizeClass as pe, withDirectives as ee, vShow as Le, nextTick as A, useAttrs as Ze, toRef as D, inject as Qe, createTextVNode as Xe } from "vue";
|
|
2
|
+
import { d as we, B as Ge } from "./typography.DN5eC5ch.js";
|
|
3
|
+
import { g as H } from "./generate-uid.NJ8tVoha.js";
|
|
4
|
+
import { u as et } from "./aria-label.CaUURpnB.js";
|
|
5
|
+
import { u as ye } from "./i18n.D9azDLPe.js";
|
|
6
|
+
import { u as tt } from "./use-form-layout-loading.D3lALhtC.js";
|
|
7
|
+
import { B as at } from "./directive.O3yEdalv.js";
|
|
8
|
+
import { s as se } from "./events.FNmSWp_P.js";
|
|
9
|
+
import { B as I, a as lt } from "./keyboard-navigation.CqgGzfZQ.js";
|
|
10
|
+
import { a as ie, b as U, c as ot, B as J, D as nt } from "./dropdown-default-textbox.BpvVMlcX.js";
|
|
11
|
+
import { a as u, b as fe, B as me, c as st, u as it } from "./use-cached-selected-values.CxAhnNa6.js";
|
|
13
12
|
import { u as rt } from "./use-has-slot.B7eQSabc.js";
|
|
14
|
-
import { F as dt, E as ut } from "./error-message.
|
|
15
|
-
import { P as
|
|
13
|
+
import { F as dt, E as ut } from "./error-message.B3z5WkLF.js";
|
|
14
|
+
import { P as Ce } from "./popper-container.BvGYgqiE.js";
|
|
16
15
|
import "./popper-container.types.BCZMbVFD.js";
|
|
17
|
-
import { B as ct } from "./popover.
|
|
16
|
+
import { B as ct } from "./popover.BNOfWuSb.js";
|
|
17
|
+
import { _ as V } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
18
18
|
import "../assets/dropdown.css";
|
|
19
|
-
const
|
|
19
|
+
const be = {
|
|
20
20
|
"en-US": {
|
|
21
21
|
apply: "Apply",
|
|
22
22
|
cancel: "Cancel",
|
|
@@ -30,62 +30,62 @@ const ye = {
|
|
|
30
30
|
apply: "Aplicar",
|
|
31
31
|
cancel: "Cancelar"
|
|
32
32
|
}
|
|
33
|
-
},
|
|
34
|
-
const
|
|
35
|
-
|
|
36
|
-
|
|
33
|
+
}, pt = (e, i, s, a) => {
|
|
34
|
+
const o = C(e.value), { t: l } = ye({ messages: be });
|
|
35
|
+
Oe(e, () => {
|
|
36
|
+
o.value = e.value;
|
|
37
37
|
});
|
|
38
|
-
const t =
|
|
39
|
-
() => JSON.stringify(
|
|
40
|
-
),
|
|
41
|
-
|
|
42
|
-
},
|
|
43
|
-
|
|
44
|
-
},
|
|
45
|
-
|
|
46
|
-
},
|
|
38
|
+
const t = c(
|
|
39
|
+
() => JSON.stringify(o.value) === JSON.stringify(e.value)
|
|
40
|
+
), d = () => {
|
|
41
|
+
a(u.SELECT, o.value), a(u.CLOSE_DROPDOWN);
|
|
42
|
+
}, p = () => {
|
|
43
|
+
o.value = e.value, a(u.CLOSE_DROPDOWN);
|
|
44
|
+
}, h = () => {
|
|
45
|
+
s.value && i.value && (o.value = e.value);
|
|
46
|
+
}, r = c(() => [
|
|
47
47
|
{
|
|
48
|
-
title:
|
|
49
|
-
event:
|
|
48
|
+
title: l("apply"),
|
|
49
|
+
event: d,
|
|
50
50
|
disabled: t.value
|
|
51
51
|
},
|
|
52
52
|
{
|
|
53
|
-
title:
|
|
54
|
-
event:
|
|
53
|
+
title: l("cancel"),
|
|
54
|
+
event: p
|
|
55
55
|
}
|
|
56
|
-
]),
|
|
57
|
-
|
|
58
|
-
},
|
|
59
|
-
|
|
60
|
-
}, E = (
|
|
61
|
-
|
|
62
|
-
}, O = (
|
|
63
|
-
|
|
56
|
+
]), y = (S) => {
|
|
57
|
+
o.value = S, i.value || a(u.SELECT, S);
|
|
58
|
+
}, m = (S) => {
|
|
59
|
+
y(S), a(u.TAB);
|
|
60
|
+
}, E = (S) => {
|
|
61
|
+
y(S), a(u.ENTER);
|
|
62
|
+
}, O = (S) => {
|
|
63
|
+
y(S), a(u.SPACE);
|
|
64
64
|
}, f = () => {
|
|
65
|
-
|
|
66
|
-
},
|
|
67
|
-
|
|
68
|
-
},
|
|
69
|
-
[
|
|
70
|
-
[
|
|
71
|
-
[
|
|
72
|
-
[
|
|
73
|
-
[
|
|
65
|
+
p(), a(u.ESCAPE);
|
|
66
|
+
}, B = () => {
|
|
67
|
+
a(u.SHOW_MORE);
|
|
68
|
+
}, w = {
|
|
69
|
+
[u.SELECT]: y,
|
|
70
|
+
[u.SHOW_MORE]: B,
|
|
71
|
+
[u.TAB]: m,
|
|
72
|
+
[u.SPACE]: O,
|
|
73
|
+
[u.ENTER]: E
|
|
74
74
|
};
|
|
75
75
|
return {
|
|
76
76
|
// Values
|
|
77
|
-
actions:
|
|
78
|
-
internalSelectedValue:
|
|
77
|
+
actions: r,
|
|
78
|
+
internalSelectedValue: o,
|
|
79
79
|
// Methods
|
|
80
|
-
listeners:
|
|
80
|
+
listeners: w,
|
|
81
81
|
onEscapeKey: f,
|
|
82
|
-
onOutsideDropdownClick:
|
|
82
|
+
onOutsideDropdownClick: h
|
|
83
83
|
};
|
|
84
|
-
},
|
|
85
|
-
i18n: { messages:
|
|
84
|
+
}, ft = F({
|
|
85
|
+
i18n: { messages: be },
|
|
86
86
|
name: "bento-dropdown-options-container"
|
|
87
|
-
}), mt = /* @__PURE__ */
|
|
88
|
-
...
|
|
87
|
+
}), mt = /* @__PURE__ */ F({
|
|
88
|
+
...ft,
|
|
89
89
|
props: {
|
|
90
90
|
/**
|
|
91
91
|
* Defines a string value that labels an interactive element.
|
|
@@ -171,7 +171,7 @@ const ye = {
|
|
|
171
171
|
*
|
|
172
172
|
* If enabled, hides the "Select all" checkbox in "multiple" mode.
|
|
173
173
|
*/
|
|
174
|
-
searching:
|
|
174
|
+
searching: fe.props.searching,
|
|
175
175
|
/**
|
|
176
176
|
* If enabled, dropdown will display non-selectable, static categories
|
|
177
177
|
*/
|
|
@@ -180,7 +180,7 @@ const ye = {
|
|
|
180
180
|
* Reference to the DOM element or Vue component for positioning
|
|
181
181
|
* the Dropdown container.
|
|
182
182
|
*/
|
|
183
|
-
targetElement: { type:
|
|
183
|
+
targetElement: { type: Ce.props.targetElement.type, required: !0 },
|
|
184
184
|
/**
|
|
185
185
|
* Enables virtual scrolling if set to true or by providing an object with itemHeight function.
|
|
186
186
|
* The itemHeight function is used to calculate the height of rendered item given it's index.
|
|
@@ -190,78 +190,78 @@ const ye = {
|
|
|
190
190
|
default: !1
|
|
191
191
|
}
|
|
192
192
|
},
|
|
193
|
-
setup(e, { expose:
|
|
194
|
-
const
|
|
195
|
-
"b-dropdown-options-container--single": !(
|
|
196
|
-
})), E =
|
|
197
|
-
"b-dropdown-options-container__listbox--single": !(
|
|
198
|
-
})), { actions: O, internalSelectedValue: f, listeners:
|
|
199
|
-
var
|
|
200
|
-
const
|
|
201
|
-
"min-width": `${(
|
|
193
|
+
setup(e, { expose: i, emit: s }) {
|
|
194
|
+
const a = Be(), o = s, l = e, { selectedValue: t, multiple: d } = De(l), p = C(null), { t: h } = ye({ messages: be }), r = c(() => l.open && !l.disabled), y = c(() => h("noOptionsMatchThisSearch")), m = c(() => ({
|
|
195
|
+
"b-dropdown-options-container--single": !(l != null && l.multiple)
|
|
196
|
+
})), E = c(() => ({
|
|
197
|
+
"b-dropdown-options-container__listbox--single": !(l != null && l.multiple)
|
|
198
|
+
})), { actions: O, internalSelectedValue: f, listeners: B, onEscapeKey: w, onOutsideDropdownClick: S } = pt(t, d, r, o), z = c(() => l != null && l.multiple ? ct : Ce), Y = c(() => {
|
|
199
|
+
var b;
|
|
200
|
+
const v = {
|
|
201
|
+
"min-width": `${(b = l == null ? void 0 : l.targetElement) == null ? void 0 : b.clientWidth}px`,
|
|
202
202
|
"max-width": "min(500px, 95%)"
|
|
203
203
|
};
|
|
204
|
-
return
|
|
204
|
+
return l != null && l.multiple ? {
|
|
205
205
|
actionsLayout: "space-between",
|
|
206
206
|
actions: O.value,
|
|
207
207
|
divider: !0,
|
|
208
208
|
fallbackPosition: ["top-start"],
|
|
209
|
-
id:
|
|
210
|
-
open:
|
|
209
|
+
id: H(`dropdown-options-${l.id}`),
|
|
210
|
+
open: l.open,
|
|
211
211
|
position: "bottom-start",
|
|
212
212
|
style: {
|
|
213
213
|
width: "auto",
|
|
214
|
-
...
|
|
214
|
+
...v
|
|
215
215
|
},
|
|
216
|
-
targetElement:
|
|
216
|
+
targetElement: l.targetElement
|
|
217
217
|
} : {
|
|
218
218
|
fallbackPosition: ["top-start"],
|
|
219
219
|
offset: [0, 8],
|
|
220
220
|
position: "bottom-start",
|
|
221
221
|
style: {
|
|
222
|
-
display:
|
|
223
|
-
...
|
|
222
|
+
display: r.value ? "block" : "none",
|
|
223
|
+
...v
|
|
224
224
|
},
|
|
225
|
-
targetElement:
|
|
225
|
+
targetElement: l.targetElement
|
|
226
226
|
};
|
|
227
227
|
});
|
|
228
|
-
return
|
|
229
|
-
onOutsideDropdownClick:
|
|
230
|
-
}), (
|
|
231
|
-
class: ["b-dropdown-options-container",
|
|
228
|
+
return i({
|
|
229
|
+
onOutsideDropdownClick: S
|
|
230
|
+
}), (v, b) => (L(), k($e(z.value), M({
|
|
231
|
+
class: ["b-dropdown-options-container", m.value],
|
|
232
232
|
"aria-label": e.ariaLabel
|
|
233
|
-
},
|
|
234
|
-
default:
|
|
233
|
+
}, Y.value), {
|
|
234
|
+
default: K(() => [
|
|
235
235
|
te("div", {
|
|
236
|
-
onKeydown:
|
|
236
|
+
onKeydown: b[0] || (b[0] = _e(
|
|
237
237
|
//@ts-ignore
|
|
238
|
-
(...
|
|
238
|
+
(...x) => n(w) && n(w)(...x),
|
|
239
239
|
["esc"]
|
|
240
240
|
))
|
|
241
241
|
}, [
|
|
242
|
-
Q(n(
|
|
242
|
+
Q(n(fe), M({
|
|
243
243
|
id: e.id,
|
|
244
244
|
ref_key: "dropdownOptionsListboxRef",
|
|
245
|
-
ref:
|
|
245
|
+
ref: p,
|
|
246
246
|
"aria-label": e.ariaLabel,
|
|
247
247
|
class: ["b-dropdown-options-container__listbox", E.value],
|
|
248
248
|
"empty-state": e.emptyState,
|
|
249
249
|
"is-option-disabled": e.isOptionDisabled,
|
|
250
250
|
items: e.items,
|
|
251
251
|
"selected-value": n(f),
|
|
252
|
-
multiple: n(
|
|
252
|
+
multiple: n(d),
|
|
253
253
|
"static-categories": e.staticCategories,
|
|
254
|
-
"no-results-message":
|
|
254
|
+
"no-results-message": y.value,
|
|
255
255
|
searching: e.searching,
|
|
256
256
|
loading: e.loading,
|
|
257
257
|
"lazy-load-type": e.lazyLoadType,
|
|
258
258
|
"has-more-items": e.hasMoreItems,
|
|
259
259
|
"virtual-scroll": e.virtualScroll
|
|
260
|
-
}, G(n(
|
|
261
|
-
de(n(
|
|
262
|
-
name:
|
|
263
|
-
fn:
|
|
264
|
-
X(
|
|
260
|
+
}, G(n(B))), re({ _: 2 }, [
|
|
261
|
+
de(n(a), (x, j) => ({
|
|
262
|
+
name: j,
|
|
263
|
+
fn: K((_) => [
|
|
264
|
+
X(v.$slots, j, ue(ce(_)), void 0, !0)
|
|
265
265
|
])
|
|
266
266
|
}))
|
|
267
267
|
]), 1040, ["id", "aria-label", "class", "empty-state", "is-option-disabled", "items", "selected-value", "multiple", "static-categories", "no-results-message", "searching", "loading", "lazy-load-type", "has-more-items", "virtual-scroll"])
|
|
@@ -270,55 +270,55 @@ const ye = {
|
|
|
270
270
|
_: 3
|
|
271
271
|
}, 16, ["aria-label", "class"]));
|
|
272
272
|
}
|
|
273
|
-
}), vt = /* @__PURE__ */
|
|
274
|
-
let
|
|
275
|
-
const
|
|
273
|
+
}), vt = /* @__PURE__ */ V(mt, [["__scopeId", "data-v-9390dd46"]]);
|
|
274
|
+
let Ee = 0;
|
|
275
|
+
const yt = {
|
|
276
276
|
beforeCreate() {
|
|
277
|
-
this.uuid =
|
|
277
|
+
this.uuid = Ee.toString(), Ee += 1;
|
|
278
278
|
}
|
|
279
|
-
},
|
|
280
|
-
function gt(e,
|
|
281
|
-
return L(),
|
|
279
|
+
}, bt = { key: 0 };
|
|
280
|
+
function gt(e, i, s, a, o, l) {
|
|
281
|
+
return L(), R("svg", M({ role: "img" }, e.$attrs, {
|
|
282
282
|
class: "ui-assets-icons-16",
|
|
283
283
|
xmlns: "http://www.w3.org/2000/svg",
|
|
284
284
|
width: "16",
|
|
285
285
|
height: "16",
|
|
286
286
|
fill: "none"
|
|
287
287
|
}), [
|
|
288
|
-
e.$attrs["svg-title"] ? (L(),
|
|
289
|
-
|
|
288
|
+
e.$attrs["svg-title"] ? (L(), R("title", bt, ve(e.$attrs["svg-title"]), 1)) : P("", !0),
|
|
289
|
+
i[0] || (i[0] = te("path", {
|
|
290
290
|
fill: "#00112C",
|
|
291
291
|
d: "M5.00011 5.43922L8.00011 8.43922L11.0001 5.43922L12.0608 6.49988L8.00011 10.5605L3.93945 6.49988L5.00011 5.43922Z"
|
|
292
292
|
}, null, -1))
|
|
293
293
|
], 16);
|
|
294
294
|
}
|
|
295
|
-
const ht = /* @__PURE__ */
|
|
296
|
-
let
|
|
297
|
-
const
|
|
295
|
+
const ht = /* @__PURE__ */ V(yt, [["render", gt]]);
|
|
296
|
+
let xe = 0;
|
|
297
|
+
const St = {
|
|
298
298
|
beforeCreate() {
|
|
299
|
-
this.uuid =
|
|
299
|
+
this.uuid = xe.toString(), xe += 1;
|
|
300
300
|
}
|
|
301
301
|
}, Lt = { key: 0 };
|
|
302
|
-
function
|
|
303
|
-
return L(),
|
|
302
|
+
function wt(e, i, s, a, o, l) {
|
|
303
|
+
return L(), R("svg", M({ role: "img" }, e.$attrs, {
|
|
304
304
|
class: "ui-assets-icons-16",
|
|
305
305
|
xmlns: "http://www.w3.org/2000/svg",
|
|
306
306
|
width: "16",
|
|
307
307
|
height: "16",
|
|
308
308
|
fill: "none"
|
|
309
309
|
}), [
|
|
310
|
-
e.$attrs["svg-title"] ? (L(),
|
|
311
|
-
|
|
310
|
+
e.$attrs["svg-title"] ? (L(), R("title", Lt, ve(e.$attrs["svg-title"]), 1)) : P("", !0),
|
|
311
|
+
i[0] || (i[0] = te("path", {
|
|
312
312
|
fill: "#00112C",
|
|
313
313
|
d: "M10.9999 10.5608L7.9999 7.56077L4.9999 10.5608L3.93924 9.50011L7.9999 5.43945L12.0606 9.50011L10.9999 10.5608Z"
|
|
314
314
|
}, null, -1))
|
|
315
315
|
], 16);
|
|
316
316
|
}
|
|
317
|
-
const
|
|
317
|
+
const Ct = /* @__PURE__ */ V(St, [["render", wt]]), Et = { class: "b-dropdown-small-textbox__chevron" }, xt = F({
|
|
318
318
|
name: "dropdown-small-textbox",
|
|
319
319
|
inheritAttrs: !1
|
|
320
|
-
}), Ot = /* @__PURE__ */
|
|
321
|
-
...
|
|
320
|
+
}), Ot = /* @__PURE__ */ F({
|
|
321
|
+
...xt,
|
|
322
322
|
props: {
|
|
323
323
|
/**
|
|
324
324
|
* The number of additional items that have been selected in the dropdown.
|
|
@@ -378,49 +378,49 @@ const wt = /* @__PURE__ */ Y(xt, [["render", St]]), $t = { class: "b-dropdown-sm
|
|
|
378
378
|
value: { type: String, default: "" }
|
|
379
379
|
},
|
|
380
380
|
emits: ["clear", "close", "input", "keydown", "open"],
|
|
381
|
-
setup(e, { expose:
|
|
382
|
-
const
|
|
383
|
-
[`b-dropdown-small-textbox--${
|
|
384
|
-
[`b-dropdown-small-textbox--${
|
|
385
|
-
[`b-dropdown-small-textbox--${
|
|
386
|
-
})),
|
|
387
|
-
|
|
381
|
+
setup(e, { expose: i, emit: s }) {
|
|
382
|
+
const a = s, o = e, l = C(null), t = c(() => ({
|
|
383
|
+
[`b-dropdown-small-textbox--${ie.DISABLED}`]: o.disabled,
|
|
384
|
+
[`b-dropdown-small-textbox--${ie.READONLY}`]: o.readonly,
|
|
385
|
+
[`b-dropdown-small-textbox--${ie.OPENED}`]: o.open
|
|
386
|
+
})), d = c(() => o.open && !o.disabled && !o.readonly), p = (f) => {
|
|
387
|
+
a("input", f);
|
|
388
|
+
}, h = (f) => {
|
|
389
|
+
a("keydown", f);
|
|
390
|
+
}, r = (f) => {
|
|
391
|
+
se(f), a("open");
|
|
388
392
|
}, y = (f) => {
|
|
389
|
-
|
|
393
|
+
se(f), a("close");
|
|
390
394
|
}, m = (f) => {
|
|
391
|
-
|
|
392
|
-
}, h = (f) => {
|
|
393
|
-
ie(f), l("close");
|
|
394
|
-
}, p = (f) => {
|
|
395
|
-
ie(f), l("clear");
|
|
395
|
+
se(f), a("clear");
|
|
396
396
|
}, E = {
|
|
397
|
-
[
|
|
398
|
-
[
|
|
399
|
-
[
|
|
400
|
-
[
|
|
401
|
-
[
|
|
397
|
+
[U.INPUT]: p,
|
|
398
|
+
[U.OPEN]: r,
|
|
399
|
+
[U.CLOSE]: y,
|
|
400
|
+
[U.CLEAR]: m,
|
|
401
|
+
[U.KEYDOWN]: h
|
|
402
402
|
};
|
|
403
|
-
return
|
|
403
|
+
return i({
|
|
404
404
|
focus: () => {
|
|
405
|
-
|
|
405
|
+
l.value.focus();
|
|
406
406
|
}
|
|
407
|
-
}), (f,
|
|
408
|
-
class:
|
|
407
|
+
}), (f, B) => (L(), R("div", {
|
|
408
|
+
class: pe(["b-dropdown-small-textbox", t.value])
|
|
409
409
|
}, [
|
|
410
|
-
Q(
|
|
410
|
+
Q(ot, M({
|
|
411
411
|
ref_key: "baseTextbox",
|
|
412
|
-
ref:
|
|
412
|
+
ref: l
|
|
413
413
|
}, { ...f.$attrs, ...f.$props }, {
|
|
414
414
|
class: "b-dropdown-small-textbox__textbox",
|
|
415
|
-
size: n(
|
|
415
|
+
size: n(J).SMALL
|
|
416
416
|
}, G(E)), {
|
|
417
|
-
icon:
|
|
418
|
-
te("div",
|
|
419
|
-
ee(Q(n(
|
|
420
|
-
[
|
|
417
|
+
icon: K(() => [
|
|
418
|
+
te("div", Et, [
|
|
419
|
+
ee(Q(n(Ct), { "svg-title": "opened" }, null, 512), [
|
|
420
|
+
[Le, d.value]
|
|
421
421
|
]),
|
|
422
422
|
ee(Q(n(ht), { "svg-title": "closed" }, null, 512), [
|
|
423
|
-
[
|
|
423
|
+
[Le, !d.value]
|
|
424
424
|
])
|
|
425
425
|
])
|
|
426
426
|
]),
|
|
@@ -428,111 +428,111 @@ const wt = /* @__PURE__ */ Y(xt, [["render", St]]), $t = { class: "b-dropdown-sm
|
|
|
428
428
|
}, 16, ["size"])
|
|
429
429
|
], 2));
|
|
430
430
|
}
|
|
431
|
-
}),
|
|
432
|
-
if (
|
|
433
|
-
const
|
|
434
|
-
(t) => e.value.find((
|
|
431
|
+
}), Bt = /* @__PURE__ */ V(Ot, [["__scopeId", "data-v-66b5eaa5"]]), Dt = (e, i) => i.value.reduce((s, a) => {
|
|
432
|
+
if (a.items) {
|
|
433
|
+
const o = a.items.filter(
|
|
434
|
+
(t) => e.value.find((d) => d.value === t.value)
|
|
435
435
|
);
|
|
436
|
-
|
|
436
|
+
o.length === a.items.length ? s.push(a.displayValue ?? a.label) : o.forEach(({ label: t, displayValue: d }) => s.push(d ?? t));
|
|
437
437
|
}
|
|
438
|
-
return e.value.find((
|
|
439
|
-
}, []).join(", "),
|
|
440
|
-
const
|
|
441
|
-
() =>
|
|
442
|
-
var
|
|
443
|
-
return (
|
|
438
|
+
return e.value.find((o) => o.value === a.value) && s.push(a.displayValue ?? a.label), s;
|
|
439
|
+
}, []).join(", "), $t = ({ items: e, placeholder: i, selectedValues: s, isMultiSelect: a }) => {
|
|
440
|
+
const o = c(
|
|
441
|
+
() => a.value && e.value.find((t) => {
|
|
442
|
+
var d;
|
|
443
|
+
return (d = t.items) == null ? void 0 : d.length;
|
|
444
444
|
})
|
|
445
445
|
);
|
|
446
|
-
return
|
|
447
|
-
},
|
|
448
|
-
var
|
|
449
|
-
(
|
|
450
|
-
},
|
|
446
|
+
return c(() => s.value.length ? o.value ? Dt(s, e) : s.value.map(({ label: t, displayValue: d }) => d ?? t).join(", ") : i.value || null);
|
|
447
|
+
}, Te = (e) => {
|
|
448
|
+
var i;
|
|
449
|
+
(i = e.value.$children) == null || i[0].$refs.textbox.focus();
|
|
450
|
+
}, Tt = ({
|
|
451
451
|
inputContainerRef: e,
|
|
452
|
-
optionsContainerRef:
|
|
453
|
-
selectedValueIndex:
|
|
454
|
-
isDropdownOpen:
|
|
455
|
-
isDynamicFltering:
|
|
456
|
-
items:
|
|
452
|
+
optionsContainerRef: i,
|
|
453
|
+
selectedValueIndex: s,
|
|
454
|
+
isDropdownOpen: a,
|
|
455
|
+
isDynamicFltering: o,
|
|
456
|
+
items: l,
|
|
457
457
|
isMultiple: t
|
|
458
|
-
},
|
|
459
|
-
const
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
458
|
+
}, d, p, h) => {
|
|
459
|
+
const r = async (v) => {
|
|
460
|
+
var b, x;
|
|
461
|
+
o.value && await A(), (x = (b = i.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef) == null ? void 0 : b.$el.querySelectorAll('[role="option"]')[v]) == null || x.focus();
|
|
462
|
+
}, y = (v) => {
|
|
463
|
+
var b;
|
|
464
|
+
return (b = i.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef) == null ? void 0 : b.setListboxFocusedIndex(
|
|
465
|
+
v
|
|
466
|
+
);
|
|
467
|
+
}, m = ({ detail: v }) => {
|
|
468
|
+
v.preventDefault(), a.value || p(), A(() => {
|
|
469
|
+
t ? r(0) : (y(s.value), r(s.value));
|
|
465
470
|
});
|
|
466
|
-
},
|
|
467
|
-
v.preventDefault(),
|
|
468
|
-
|
|
469
|
-
i.value
|
|
470
|
-
), o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.listboxItemRef[i.value].$el.focus();
|
|
471
|
+
}, E = ({ detail: v }) => {
|
|
472
|
+
v.preventDefault(), a.value || p(), A(() => {
|
|
473
|
+
y(s.value), r(s.value);
|
|
471
474
|
});
|
|
472
|
-
},
|
|
473
|
-
|
|
474
|
-
var v
|
|
475
|
+
}, O = () => {
|
|
476
|
+
a.value || (p(), A(() => {
|
|
477
|
+
var v;
|
|
475
478
|
if (t) {
|
|
476
|
-
const
|
|
477
|
-
(v =
|
|
479
|
+
const b = i.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children;
|
|
480
|
+
(v = b == null ? void 0 : b[b.length - 1].$el.querySelectorAll('[role="option"]')[l.length - 1]) == null || v.focus();
|
|
478
481
|
} else
|
|
479
|
-
(
|
|
482
|
+
y(l.length - 1), r(l.length - 1);
|
|
480
483
|
}));
|
|
481
|
-
}, E = () => {
|
|
482
|
-
l.value && (y(), Ie(e));
|
|
483
|
-
}, O = () => {
|
|
484
|
-
l.value && y();
|
|
485
484
|
}, f = () => {
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
485
|
+
a.value && (h(), Te(e));
|
|
486
|
+
}, B = () => {
|
|
487
|
+
a.value && h();
|
|
488
|
+
}, w = () => {
|
|
489
|
+
a.value || p(), A(() => {
|
|
490
|
+
r(0);
|
|
489
491
|
});
|
|
490
|
-
},
|
|
491
|
-
v.preventDefault(),
|
|
492
|
-
|
|
493
|
-
t ? (g = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || g[0].$el.focus() : (w = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || w[i.value].$el.focus();
|
|
492
|
+
}, S = ({ detail: v }) => {
|
|
493
|
+
v.preventDefault(), d(), a.value && A(() => {
|
|
494
|
+
t ? r(0) : (y(s.value), r(s.value));
|
|
494
495
|
});
|
|
495
|
-
},
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
t ? (v = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || v[0].$el.focus() : (g = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || g[i.value].$el.focus();
|
|
496
|
+
}, z = () => {
|
|
497
|
+
d(), a.value && A(() => {
|
|
498
|
+
t ? r(0) : (y(s.value), r(s.value));
|
|
499
499
|
});
|
|
500
500
|
};
|
|
501
|
-
return
|
|
502
|
-
...
|
|
503
|
-
[
|
|
504
|
-
[
|
|
505
|
-
[
|
|
506
|
-
[
|
|
507
|
-
[
|
|
508
|
-
[
|
|
509
|
-
[
|
|
501
|
+
return c(() => ({
|
|
502
|
+
...o.value ? {} : { [I.SPACE]: S },
|
|
503
|
+
[I.ENTER]: z,
|
|
504
|
+
[I.ARROW_DOWN]: m,
|
|
505
|
+
[I.ARROW_UP]: E,
|
|
506
|
+
[I.END]: O,
|
|
507
|
+
[I.ESCAPE]: f,
|
|
508
|
+
[I.HOME]: w,
|
|
509
|
+
[I.TAB]: B
|
|
510
510
|
}));
|
|
511
|
-
},
|
|
512
|
-
const
|
|
513
|
-
|
|
514
|
-
|
|
511
|
+
}, It = ({ inputContainerRef: e, isDropdownOpen: i }, s) => {
|
|
512
|
+
const a = () => {
|
|
513
|
+
i.value && s(), A(() => {
|
|
514
|
+
Te(e);
|
|
515
515
|
});
|
|
516
516
|
};
|
|
517
517
|
return {
|
|
518
|
-
[
|
|
519
|
-
[
|
|
520
|
-
[
|
|
521
|
-
[
|
|
518
|
+
[u.ENTER]: a,
|
|
519
|
+
[u.ESCAPE]: a,
|
|
520
|
+
[u.TAB]: a,
|
|
521
|
+
[u.SPACE]: a
|
|
522
522
|
};
|
|
523
523
|
};
|
|
524
|
-
function
|
|
525
|
-
const
|
|
526
|
-
return
|
|
527
|
-
|
|
528
|
-
}),
|
|
529
|
-
if (!
|
|
530
|
-
return
|
|
531
|
-
const
|
|
532
|
-
return t(
|
|
524
|
+
function At(e, i, s, a) {
|
|
525
|
+
const o = C(e), l = C(i), t = (p, h = []) => h.flatMap((r) => r.label.toLocaleLowerCase().includes(p) ? a != null && a.value && r.items ? [...t(p, r.items)] : [r, ...t(p, r.items)] : r.items ? [...t(p, r.items)] : []);
|
|
526
|
+
return Oe(o, () => {
|
|
527
|
+
s !== void 0 && s(o.value);
|
|
528
|
+
}), c(() => {
|
|
529
|
+
if (!o.value || s !== void 0)
|
|
530
|
+
return l.value;
|
|
531
|
+
const p = o.value.toLocaleLowerCase();
|
|
532
|
+
return t(p, l.value);
|
|
533
533
|
});
|
|
534
534
|
}
|
|
535
|
-
const
|
|
535
|
+
const Ie = {
|
|
536
536
|
"en-US": {
|
|
537
537
|
all: "All",
|
|
538
538
|
ariaLabelFallback: "Dropdown",
|
|
@@ -546,15 +546,15 @@ const De = {
|
|
|
546
546
|
all: "Todos",
|
|
547
547
|
clearFilter: "Limpar filtro"
|
|
548
548
|
}
|
|
549
|
-
}, Nt = Symbol("input field component injection key"),
|
|
550
|
-
i18n: { messages:
|
|
549
|
+
}, Nt = Symbol("input field component injection key"), ea = Symbol("input field hint injection key"), Mt = F({
|
|
550
|
+
i18n: { messages: Ie },
|
|
551
551
|
name: "b-dropdown",
|
|
552
552
|
components: {
|
|
553
|
-
DropdownInputDefault:
|
|
554
|
-
DropdownInputSmall:
|
|
553
|
+
DropdownInputDefault: nt,
|
|
554
|
+
DropdownInputSmall: Bt
|
|
555
555
|
}
|
|
556
|
-
}),
|
|
557
|
-
...
|
|
556
|
+
}), Rt = /* @__PURE__ */ F({
|
|
557
|
+
...Mt,
|
|
558
558
|
props: {
|
|
559
559
|
/**
|
|
560
560
|
* @deprecated from version 2.0.0. Use the aria-label attribute instead.
|
|
@@ -641,7 +641,7 @@ const De = {
|
|
|
641
641
|
*/
|
|
642
642
|
lazyLoadType: {
|
|
643
643
|
type: String,
|
|
644
|
-
default:
|
|
644
|
+
default: fe.props.lazyLoadType.default,
|
|
645
645
|
validator: (e) => Object.values(me).includes(e)
|
|
646
646
|
},
|
|
647
647
|
/*
|
|
@@ -682,7 +682,7 @@ const De = {
|
|
|
682
682
|
size: {
|
|
683
683
|
type: String,
|
|
684
684
|
default: null,
|
|
685
|
-
validator: (e) => Object.values(
|
|
685
|
+
validator: (e) => Object.values(J).includes(e)
|
|
686
686
|
},
|
|
687
687
|
/**
|
|
688
688
|
* If enabled, dropdown will display non-selectable, static categories
|
|
@@ -711,208 +711,208 @@ const De = {
|
|
|
711
711
|
}
|
|
712
712
|
},
|
|
713
713
|
emits: ["input", "show-more"],
|
|
714
|
-
setup(e, { expose:
|
|
715
|
-
var
|
|
716
|
-
const
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
),
|
|
714
|
+
setup(e, { expose: i, emit: s }) {
|
|
715
|
+
var Se;
|
|
716
|
+
const a = Ze(), o = Be(), l = rt(o), t = e, d = s, { t: p } = ye({ messages: Ie }), h = C(null), r = C(null), y = C(null), m = C(!1), E = H("bento-dropdown-options-container"), O = H("dropdown-label"), f = H("dropdown-description"), B = H("dropdown-error"), { isReadOnly: w } = tt(D(t, "readonly")), { cachedSelectedListboxOptions: S, cachedListboxSelectedValues: z, setCachedValues: Y } = st(
|
|
717
|
+
D(t, "items"),
|
|
718
|
+
D(t, "value"),
|
|
719
|
+
D(t, "multiple")
|
|
720
|
+
), v = C(a["aria-label"]), { ariaLabel: b, label: x } = De(t), j = et({
|
|
721
721
|
// TODO: take ariaLabel ref away when aria-label prop is removed
|
|
722
|
-
ariaLabel:
|
|
723
|
-
label:
|
|
724
|
-
defaultFallback:
|
|
725
|
-
}), _ = t.size ===
|
|
722
|
+
ariaLabel: b || v,
|
|
723
|
+
label: x,
|
|
724
|
+
defaultFallback: p("ariaLabelFallback")
|
|
725
|
+
}), _ = t.size === J.SMALL || Qe(Nt, !1), Ae = c(() => _ ? J.SMALL : J.DEFAULT), Ne = c(() => ({
|
|
726
726
|
"b-dropdown--condensed": t.condensed
|
|
727
|
-
})),
|
|
727
|
+
})), Me = c(() => ({
|
|
728
728
|
"b-dropdown__description--error": !!t.errorMessage
|
|
729
|
-
})),
|
|
729
|
+
})), N = C(""), Z = D(t, "items"), ge = D(t, "staticCategories"), he = At(N, Z, (Se = t == null ? void 0 : t.search) == null ? void 0 : Se.searchEvent, ge), ae = c(() => t.dynamicFiltering && !!N.value), Re = $t({
|
|
730
730
|
items: Z,
|
|
731
|
-
placeholder:
|
|
732
|
-
isMultiSelect:
|
|
733
|
-
selectedValues:
|
|
734
|
-
}), ke =
|
|
731
|
+
placeholder: D(t, "placeholder"),
|
|
732
|
+
isMultiSelect: D(t, "multiple"),
|
|
733
|
+
selectedValues: S
|
|
734
|
+
}), ke = c(() => {
|
|
735
735
|
if (t != null && t.multiple && Array.isArray(t.value))
|
|
736
736
|
return t.items.filter(
|
|
737
|
-
({ value:
|
|
737
|
+
({ value: g }) => (t == null ? void 0 : t.value) && (t == null ? void 0 : t.value).includes(g)
|
|
738
738
|
);
|
|
739
739
|
if (!t.multiple && t.staticCategories) {
|
|
740
|
-
const
|
|
741
|
-
(
|
|
740
|
+
const g = t.items.find(
|
|
741
|
+
(T) => T.items.some((W) => W.value === t.value)
|
|
742
742
|
);
|
|
743
|
-
return
|
|
743
|
+
return g ? g.items.find((T) => T.value === t.value) : null;
|
|
744
744
|
}
|
|
745
|
-
return t.items.find(({ value:
|
|
746
|
-
}), Pe =
|
|
747
|
-
const
|
|
748
|
-
return
|
|
749
|
-
}), { isMultiLevelSelect: Ke, flattenedItemsList: Fe } = it(Z), ze =
|
|
750
|
-
var
|
|
745
|
+
return t.items.find(({ value: g }) => g === (t == null ? void 0 : t.value));
|
|
746
|
+
}), Pe = c(() => {
|
|
747
|
+
const g = he.value.findIndex(({ value: $ }) => t.value === $);
|
|
748
|
+
return g > 0 ? g : 0;
|
|
749
|
+
}), { isMultiLevelSelect: Ke, flattenedItemsList: Fe } = it(Z), ze = c(() => {
|
|
750
|
+
var g;
|
|
751
751
|
if (t.multiple) {
|
|
752
|
-
const
|
|
753
|
-
return !t.hasMoreItems &&
|
|
752
|
+
const $ = (g = t == null ? void 0 : t.value) == null ? void 0 : g.length, T = Ke.value ? Fe.value.length : Z.value.length;
|
|
753
|
+
return !t.hasMoreItems && T === $ ? p("all") : $;
|
|
754
754
|
}
|
|
755
755
|
return null;
|
|
756
|
-
}), je =
|
|
757
|
-
() => `${t.description ? f : ""} ${t.errorMessage ?
|
|
756
|
+
}), je = c(
|
|
757
|
+
() => `${t.description ? f : ""} ${t.errorMessage ? B : ""}`.trim() || null
|
|
758
758
|
), We = () => {
|
|
759
|
-
|
|
760
|
-
},
|
|
761
|
-
|
|
759
|
+
w.value || (m.value = !0);
|
|
760
|
+
}, le = () => {
|
|
761
|
+
m.value = !1;
|
|
762
762
|
}, oe = () => {
|
|
763
|
-
|
|
764
|
-
}, Ue = () => {
|
|
765
|
-
le.value && (A.value = ""), p.value && (p.value = !1, h.value.onOutsideDropdownClick());
|
|
766
|
-
}, He = (b) => {
|
|
767
|
-
t.multiple || (A.value = "", p.value = !1), g(b), r("input", v.value);
|
|
763
|
+
w.value || (m.value = !m.value, ae.value && (N.value = ""));
|
|
768
764
|
}, qe = () => {
|
|
769
|
-
|
|
770
|
-
},
|
|
765
|
+
ae.value && (N.value = ""), m.value && (m.value = !1, y.value.onOutsideDropdownClick());
|
|
766
|
+
}, Ue = (g) => {
|
|
767
|
+
t.multiple || (N.value = "", m.value = !1), Y(g), d("input", z.value);
|
|
768
|
+
}, He = () => {
|
|
769
|
+
d(u.SHOW_MORE);
|
|
770
|
+
}, Je = Tt(
|
|
771
771
|
{
|
|
772
|
-
inputContainerRef:
|
|
773
|
-
optionsContainerRef:
|
|
772
|
+
inputContainerRef: h,
|
|
773
|
+
optionsContainerRef: y,
|
|
774
774
|
selectedValueIndex: Pe,
|
|
775
|
-
isDropdownOpen:
|
|
776
|
-
isDynamicFltering:
|
|
775
|
+
isDropdownOpen: m,
|
|
776
|
+
isDynamicFltering: D(t, "dynamicFiltering"),
|
|
777
777
|
items: t.items,
|
|
778
778
|
isMultiple: t.multiple
|
|
779
779
|
},
|
|
780
780
|
oe,
|
|
781
781
|
We,
|
|
782
|
-
|
|
783
|
-
),
|
|
782
|
+
le
|
|
783
|
+
), Ve = It(
|
|
784
784
|
{
|
|
785
|
-
inputContainerRef:
|
|
786
|
-
isDropdownOpen:
|
|
785
|
+
inputContainerRef: h,
|
|
786
|
+
isDropdownOpen: m
|
|
787
787
|
},
|
|
788
|
-
|
|
788
|
+
le
|
|
789
789
|
), Ye = {
|
|
790
|
-
[
|
|
791
|
-
[
|
|
792
|
-
[
|
|
793
|
-
...
|
|
790
|
+
[u.CLOSE_DROPDOWN]: le,
|
|
791
|
+
[u.SELECT]: Ue,
|
|
792
|
+
[u.SHOW_MORE]: He,
|
|
793
|
+
...Ve
|
|
794
794
|
};
|
|
795
|
-
return t.error &&
|
|
795
|
+
return t.error && we(
|
|
796
796
|
'BentoDropdown "error" property',
|
|
797
797
|
`Use the BentoDropdown "errorMessage" property instead to indicate that there is a modifier error.
|
|
798
798
|
Having the field as "undefined" will hide/remove the error.
|
|
799
799
|
<bento-dropdown errorMessage="Error message text" />`,
|
|
800
800
|
"2.0.0"
|
|
801
|
-
), t.size &&
|
|
801
|
+
), t.size && we('BentoDropdown "size" property', "Do not use. Only 'default' size should be used.", "2.0.0"), i({
|
|
802
802
|
focus: () => {
|
|
803
|
-
|
|
803
|
+
h.value.focus();
|
|
804
804
|
}
|
|
805
|
-
}), (
|
|
806
|
-
var
|
|
807
|
-
return ee((L(),
|
|
808
|
-
class:
|
|
805
|
+
}), (g, $) => {
|
|
806
|
+
var T;
|
|
807
|
+
return ee((L(), R("div", {
|
|
808
|
+
class: pe(["b-dropdown", Ne.value])
|
|
809
809
|
}, [
|
|
810
|
-
n(
|
|
810
|
+
n(x) ? (L(), k(n(dt), {
|
|
811
811
|
key: 0,
|
|
812
812
|
id: n(O),
|
|
813
813
|
condensed: e.condensed,
|
|
814
|
-
label: n(
|
|
814
|
+
label: n(x),
|
|
815
815
|
"tooltip-text": e.tooltipText,
|
|
816
816
|
optional: e.optional,
|
|
817
817
|
required: e.required
|
|
818
|
-
}, null, 8, ["id", "condensed", "label", "tooltip-text", "optional", "required"])) :
|
|
819
|
-
ee((L(),
|
|
818
|
+
}, null, 8, ["id", "condensed", "label", "tooltip-text", "optional", "required"])) : P("", !0),
|
|
819
|
+
ee((L(), R("div", M({
|
|
820
820
|
ref_key: "inputContainerRefWrapper",
|
|
821
|
-
ref:
|
|
822
|
-
}, G(n(
|
|
823
|
-
(L(),
|
|
821
|
+
ref: r
|
|
822
|
+
}, G(n(Je), !0)), [
|
|
823
|
+
(L(), k($e(Ae.value), {
|
|
824
824
|
ref_key: "inputContainerRef",
|
|
825
|
-
ref:
|
|
825
|
+
ref: h,
|
|
826
826
|
condensed: e.condensed,
|
|
827
|
-
value:
|
|
827
|
+
value: N.value,
|
|
828
828
|
"additional-items-selected": ze.value,
|
|
829
829
|
ariaControls: n(E),
|
|
830
|
-
ariaExpanded:
|
|
831
|
-
"aria-labelledby": n(
|
|
830
|
+
ariaExpanded: m.value,
|
|
831
|
+
"aria-labelledby": n(x) ? n(O) : null,
|
|
832
832
|
"aria-describedby": je.value,
|
|
833
|
-
"aria-label": n(
|
|
834
|
-
"aria-readonly": n(
|
|
835
|
-
readonly: n(
|
|
833
|
+
"aria-label": n(j),
|
|
834
|
+
"aria-readonly": n(w),
|
|
835
|
+
readonly: n(w),
|
|
836
836
|
disabled: e.disabled,
|
|
837
|
-
"display-value": n(
|
|
837
|
+
"display-value": n(Re),
|
|
838
838
|
"dynamic-filtering": e.dynamicFiltering,
|
|
839
839
|
"is-invalid": !!e.errorMessage || e.error,
|
|
840
840
|
multiple: e.multiple,
|
|
841
|
-
open:
|
|
841
|
+
open: m.value,
|
|
842
842
|
"selected-value-item": n(_) ? void 0 : ke.value,
|
|
843
843
|
"show-slot-content-in-multiple": e.showSlotContentInMultiple,
|
|
844
|
-
onInput:
|
|
844
|
+
onInput: $[0] || ($[0] = (W) => N.value = W),
|
|
845
845
|
onOpen: oe,
|
|
846
846
|
onClose: oe
|
|
847
847
|
}, re({ _: 2 }, [
|
|
848
|
-
de(n(
|
|
849
|
-
name:
|
|
850
|
-
fn:
|
|
851
|
-
X(
|
|
848
|
+
de(n(o), (W, q) => ({
|
|
849
|
+
name: q,
|
|
850
|
+
fn: K((ne) => [
|
|
851
|
+
X(g.$slots, q, ue(ce(ne)), void 0, !0)
|
|
852
852
|
])
|
|
853
853
|
}))
|
|
854
854
|
]), 1064, ["condensed", "value", "additional-items-selected", "ariaControls", "ariaExpanded", "aria-labelledby", "aria-describedby", "aria-label", "aria-readonly", "readonly", "disabled", "display-value", "dynamic-filtering", "is-invalid", "multiple", "open", "selected-value-item", "show-slot-content-in-multiple"]))
|
|
855
855
|
], 16)), [
|
|
856
|
-
[n(
|
|
856
|
+
[n(lt)]
|
|
857
857
|
]),
|
|
858
|
-
|
|
858
|
+
h.value ? (L(), k(n(vt), M({
|
|
859
859
|
key: 1,
|
|
860
860
|
id: n(E),
|
|
861
861
|
ref_key: "optionsContainerRef",
|
|
862
|
-
ref:
|
|
863
|
-
"aria-label": n(
|
|
862
|
+
ref: y,
|
|
863
|
+
"aria-label": n(j),
|
|
864
864
|
"empty-state": e.emptyState,
|
|
865
|
-
"debounce-time": (
|
|
865
|
+
"debounce-time": (T = e.search) == null ? void 0 : T.debounceTime,
|
|
866
866
|
disabled: e.disabled,
|
|
867
867
|
"is-option-disabled": e.isOptionDisabled,
|
|
868
|
-
items: n(
|
|
868
|
+
items: n(he),
|
|
869
869
|
multiple: e.multiple,
|
|
870
870
|
"static-categories": ge.value,
|
|
871
|
-
open:
|
|
872
|
-
"selected-value": n(
|
|
873
|
-
searching:
|
|
874
|
-
"target-element":
|
|
871
|
+
open: m.value,
|
|
872
|
+
"selected-value": n(S),
|
|
873
|
+
searching: ae.value,
|
|
874
|
+
"target-element": r.value,
|
|
875
875
|
loading: e.loading,
|
|
876
876
|
"has-more-items": e.hasMoreItems,
|
|
877
877
|
"lazy-load-type": e.lazyLoadType,
|
|
878
878
|
"virtual-scroll": e.virtualScroll
|
|
879
879
|
}, G(Ye)), re({ _: 2 }, [
|
|
880
|
-
de(n(
|
|
881
|
-
name:
|
|
882
|
-
fn:
|
|
883
|
-
X(
|
|
880
|
+
de(n(o), (W, q) => ({
|
|
881
|
+
name: q,
|
|
882
|
+
fn: K((ne) => [
|
|
883
|
+
X(g.$slots, q, ue(ce(ne)), void 0, !0)
|
|
884
884
|
])
|
|
885
885
|
}))
|
|
886
|
-
]), 1040, ["id", "aria-label", "empty-state", "debounce-time", "disabled", "is-option-disabled", "items", "multiple", "static-categories", "open", "selected-value", "searching", "target-element", "loading", "has-more-items", "lazy-load-type", "virtual-scroll"])) :
|
|
887
|
-
e.errorMessage ? (L(),
|
|
886
|
+
]), 1040, ["id", "aria-label", "empty-state", "debounce-time", "disabled", "is-option-disabled", "items", "multiple", "static-categories", "open", "selected-value", "searching", "target-element", "loading", "has-more-items", "lazy-load-type", "virtual-scroll"])) : P("", !0),
|
|
887
|
+
e.errorMessage ? (L(), k(n(ut), {
|
|
888
888
|
key: 2,
|
|
889
|
-
id: n(
|
|
889
|
+
id: n(B),
|
|
890
890
|
"error-message": e.errorMessage,
|
|
891
891
|
class: "b-dropdown__error-message"
|
|
892
|
-
}, null, 8, ["id", "error-message"])) :
|
|
893
|
-
e.description || n(
|
|
892
|
+
}, null, 8, ["id", "error-message"])) : P("", !0),
|
|
893
|
+
e.description || n(l)("description") ? (L(), k(n(Ge), {
|
|
894
894
|
key: 3,
|
|
895
895
|
id: n(f),
|
|
896
|
-
class:
|
|
896
|
+
class: pe(["b-dropdown__description", Me.value]),
|
|
897
897
|
el: "span"
|
|
898
898
|
}, {
|
|
899
|
-
default:
|
|
900
|
-
X(
|
|
899
|
+
default: K(() => [
|
|
900
|
+
X(g.$slots, "description", {}, () => [
|
|
901
901
|
Xe(ve(e.description), 1)
|
|
902
902
|
], !0)
|
|
903
903
|
]),
|
|
904
904
|
_: 3
|
|
905
|
-
}, 8, ["id", "class"])) :
|
|
905
|
+
}, 8, ["id", "class"])) : P("", !0)
|
|
906
906
|
], 2)), [
|
|
907
|
-
[n(
|
|
907
|
+
[n(at), qe]
|
|
908
908
|
]);
|
|
909
909
|
};
|
|
910
910
|
}
|
|
911
|
-
}),
|
|
911
|
+
}), ta = /* @__PURE__ */ V(Rt, [["__scopeId", "data-v-c2f2009c"]]);
|
|
912
912
|
export {
|
|
913
|
-
|
|
914
|
-
|
|
913
|
+
ta as B,
|
|
914
|
+
ea as I,
|
|
915
915
|
Nt as a,
|
|
916
|
-
|
|
916
|
+
At as u
|
|
917
917
|
};
|
|
918
|
-
//# sourceMappingURL=dropdown.
|
|
918
|
+
//# sourceMappingURL=dropdown.a8OeeVAZ.js.map
|