@adyen/bento-vue2 1.31.1 → 1.32.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/components.d.ts +0 -2
- package/dist/@types/index.d.ts +4 -2
- package/dist/accordion.js +1 -1
- 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/code-snippet.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/filter-bar.css +1 -1
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/menu.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/popover.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/tag.css +1 -1
- package/dist/assets/use-cached-selected-values.css +1 -1
- package/dist/avatar.js +1 -1
- package/dist/button.js +4 -4
- package/dist/card.js +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/chunks/{accordion-item.DmnrjNzw.js → accordion-item.CNYpvxwN.js} +2 -2
- package/dist/chunks/{accordion-item.DmnrjNzw.js.map → accordion-item.CNYpvxwN.js.map} +1 -1
- package/dist/chunks/{action-bar.B_0DvTPe.js → action-bar.Ds_ofJs6.js} +6 -6
- package/dist/chunks/{action-bar.B_0DvTPe.js.map → action-bar.Ds_ofJs6.js.map} +1 -1
- package/dist/chunks/{alert.CJyTM4Az.js → alert.Ba2hSVeM.js} +3 -3
- package/dist/chunks/{alert.CJyTM4Az.js.map → alert.Ba2hSVeM.js.map} +1 -1
- package/dist/chunks/{avatar.tSIC1ahz.js → avatar.DohItrb9.js} +2 -2
- package/dist/chunks/{avatar.tSIC1ahz.js.map → avatar.DohItrb9.js.map} +1 -1
- package/dist/chunks/{base-button.DER7_IsF.js → base-button.-qw8sZSY.js} +2 -2
- package/dist/chunks/{base-button.DER7_IsF.js.map → base-button.-qw8sZSY.js.map} +1 -1
- package/dist/chunks/{base-modal.ChqzRaIU.js → base-modal.B17Ib1QQ.js} +5 -5
- package/dist/chunks/{base-modal.ChqzRaIU.js.map → base-modal.B17Ib1QQ.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.ZDejXKrX.js → button-actions-with-menu.K8p3AG8r.js} +4 -4
- package/dist/chunks/{button-actions-with-menu.ZDejXKrX.js.map → button-actions-with-menu.K8p3AG8r.js.map} +1 -1
- package/dist/chunks/{button-actions.BNTiClWe.js → button-actions.IJs0hN8c.js} +3 -3
- package/dist/chunks/{button-actions.BNTiClWe.js.map → button-actions.IJs0hN8c.js.map} +1 -1
- package/dist/chunks/{button.DhAUh5JA.js → button.qOf7CXY2.js} +3 -3
- package/dist/chunks/{button.DhAUh5JA.js.map → button.qOf7CXY2.js.map} +1 -1
- package/dist/chunks/{calendar.QEa4jeX-.js → calendar.etLGotqH.js} +4 -4
- package/dist/chunks/{calendar.QEa4jeX-.js.map → calendar.etLGotqH.js.map} +1 -1
- package/dist/chunks/{card.Bzc_8gg1.js → card.-BYuiE_X.js} +3 -3
- package/dist/chunks/{card.Bzc_8gg1.js.map → card.-BYuiE_X.js.map} +1 -1
- package/dist/chunks/{checkbox-group.BSOHcerG.js → checkbox-group.Bj9gURHB.js} +5 -5
- package/dist/chunks/{checkbox-group.BSOHcerG.js.map → checkbox-group.Bj9gURHB.js.map} +1 -1
- package/dist/chunks/{checkbox.BP2_1_qF.js → checkbox.CKQZXIR3.js} +4 -4
- package/dist/chunks/{checkbox.BP2_1_qF.js.map → checkbox.CKQZXIR3.js.map} +1 -1
- package/dist/chunks/{code-snippet.njEtbQlt.js → code-snippet.Dr7HvCcg.js} +37 -37
- package/dist/chunks/{code-snippet.njEtbQlt.js.map → code-snippet.Dr7HvCcg.js.map} +1 -1
- package/dist/chunks/{controls-group.Xc8GU6VO.js → controls-group.WoEXCpkM.js} +3 -3
- package/dist/chunks/{controls-group.Xc8GU6VO.js.map → controls-group.WoEXCpkM.js.map} +1 -1
- package/dist/chunks/{copy.9yVc8L5b.js → copy.CIuoE2VU.js} +3 -3
- package/dist/chunks/{copy.9yVc8L5b.js.map → copy.CIuoE2VU.js.map} +1 -1
- package/dist/chunks/{country.KayLT0zy.js → country.DeYdzMXh.js} +2 -2
- package/dist/chunks/{country.KayLT0zy.js.map → country.DeYdzMXh.js.map} +1 -1
- package/dist/chunks/{currency.H7n7RQiX.js → currency.Cfq_Yw2V.js} +2 -2
- package/dist/chunks/{currency.H7n7RQiX.js.map → currency.Cfq_Yw2V.js.map} +1 -1
- package/dist/chunks/{dashboard-section.COlHzwkB.js → dashboard-section.CKy3tW-3.js} +3 -3
- package/dist/chunks/{dashboard-section.COlHzwkB.js.map → dashboard-section.CKy3tW-3.js.map} +1 -1
- package/dist/chunks/{dashed-underline.C0lIPy0T.js → dashed-underline.OyLCDT1U.js} +4 -4
- package/dist/chunks/{dashed-underline.C0lIPy0T.js.map → dashed-underline.OyLCDT1U.js.map} +1 -1
- package/dist/chunks/{data-grid-template.D2pO9uS9.js → data-grid-template.CxaInpI8.js} +3 -3
- package/dist/chunks/{data-grid-template.D2pO9uS9.js.map → data-grid-template.CxaInpI8.js.map} +1 -1
- package/dist/chunks/{data-grid.VZ1STYt0.js → data-grid.Dsv60eRz.js} +501 -498
- package/dist/chunks/{data-grid.VZ1STYt0.js.map → data-grid.Dsv60eRz.js.map} +1 -1
- package/dist/chunks/{date-picker.MKbisqpp.js → date-picker.CZ34YMMu.js} +17 -17
- package/dist/chunks/{date-picker.MKbisqpp.js.map → date-picker.CZ34YMMu.js.map} +1 -1
- package/dist/chunks/{date-range-picker.5zSN9d5P.js → date-range-picker.C__cQBs3.js} +25 -25
- package/dist/chunks/{date-range-picker.5zSN9d5P.js.map → date-range-picker.C__cQBs3.js.map} +1 -1
- package/dist/chunks/{date.DKjxxR6P.js → date.DQaxR7TF.js} +2 -2
- package/dist/chunks/{date.DKjxxR6P.js.map → date.DQaxR7TF.js.map} +1 -1
- package/dist/chunks/{dialog-page.DAh0M4mT.js → dialog-page.Cc-XASGB.js} +31 -32
- package/dist/chunks/{dialog-page.DAh0M4mT.js.map → dialog-page.Cc-XASGB.js.map} +1 -1
- package/dist/chunks/{dropdown-default-textbox.Yx8EPd6W.js → dropdown-default-textbox.BM9qsdzQ.js} +2 -2
- package/dist/chunks/{dropdown-default-textbox.Yx8EPd6W.js.map → dropdown-default-textbox.BM9qsdzQ.js.map} +1 -1
- package/dist/chunks/{dropdown-tag.ChMjZXqI.js → dropdown-tag.DEqYdqVG.js} +6 -6
- package/dist/chunks/{dropdown-tag.ChMjZXqI.js.map → dropdown-tag.DEqYdqVG.js.map} +1 -1
- package/dist/chunks/{dropdown.D-9cUSSo.js → dropdown.Bn6SRkU5.js} +18 -18
- package/dist/chunks/{dropdown.D-9cUSSo.js.map → dropdown.Bn6SRkU5.js.map} +1 -1
- package/dist/chunks/{empty-state.BqVOj4v1.js → empty-state.CWy3y5Ly.js} +3 -3
- package/dist/chunks/{empty-state.BqVOj4v1.js.map → empty-state.CWy3y5Ly.js.map} +1 -1
- package/dist/chunks/{error-message.IjcYmSSd.js → error-message.epR1WJH2.js} +3 -3
- package/dist/chunks/{error-message.IjcYmSSd.js.map → error-message.epR1WJH2.js.map} +1 -1
- package/dist/chunks/{filter-bar.7nGTSoYh.js → filter-bar.Dcsv7a4q.js} +25 -25
- package/dist/chunks/filter-bar.Dcsv7a4q.js.map +1 -0
- package/dist/chunks/{fixed-scroller.Bq1AgPnw.js → fixed-scroller.wvGW5A2g.js} +2 -2
- package/dist/chunks/{fixed-scroller.Bq1AgPnw.js.map → fixed-scroller.wvGW5A2g.js.map} +1 -1
- package/dist/chunks/{footer-actions.C8aAV7xl.js → footer-actions.B6Q5ybfw.js} +4 -4
- package/dist/chunks/{footer-actions.C8aAV7xl.js.map → footer-actions.B6Q5ybfw.js.map} +1 -1
- package/dist/chunks/{form-layout-title.BzNU0B72.js → form-layout-title.ChRqPBDL.js} +3 -3
- package/dist/chunks/{form-layout-title.BzNU0B72.js.map → form-layout-title.ChRqPBDL.js.map} +1 -1
- package/dist/chunks/{header.Z0INnUEd.js → header.jOE8ctvn.js} +5 -5
- package/dist/chunks/{header.Z0INnUEd.js.map → header.jOE8ctvn.js.map} +1 -1
- package/dist/chunks/{info-icon.BkVcFKkT.js → info-icon.DQI7sjBY.js} +2 -2
- package/dist/chunks/{info-icon.BkVcFKkT.js.map → info-icon.DQI7sjBY.js.map} +1 -1
- package/dist/chunks/{input-field.DMBpk8py.js → input-field.mEo-bCtk.js} +4 -4
- package/dist/chunks/{input-field.DMBpk8py.js.map → input-field.mEo-bCtk.js.map} +1 -1
- package/dist/chunks/{inspector.types.BbPF5hmc.js → inspector.types.l7r-FN49.js} +3 -3
- package/dist/chunks/{inspector.types.BbPF5hmc.js.map → inspector.types.l7r-FN49.js.map} +1 -1
- package/dist/chunks/{link.DJ1A53gF.js → link.CjFBXE3D.js} +2 -2
- package/dist/chunks/{link.DJ1A53gF.js.map → link.CjFBXE3D.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.cRJfigp-.js → listbox-option-tag.BXz3dHfF.js} +3 -3
- package/dist/chunks/{listbox-option-tag.cRJfigp-.js.map → listbox-option-tag.BXz3dHfF.js.map} +1 -1
- package/dist/chunks/{loading-button.CcYmeIl8.js → loading-button.Ba8So0d6.js} +2 -2
- package/dist/chunks/{loading-button.CcYmeIl8.js.map → loading-button.Ba8So0d6.js.map} +1 -1
- package/dist/chunks/{menu.C8ZmHcw8.js → menu.e-PrV4Wl.js} +5 -5
- package/dist/chunks/{menu.C8ZmHcw8.js.map → menu.e-PrV4Wl.js.map} +1 -1
- package/dist/chunks/{modal-fullscreen.CO8EYRRT.js → modal-fullscreen.PFFfWzPD.js} +5 -5
- package/dist/chunks/{modal-fullscreen.CO8EYRRT.js.map → modal-fullscreen.PFFfWzPD.js.map} +1 -1
- package/dist/chunks/{modal.DfjUKkg-.js → modal.DPrBUWDe.js} +6 -6
- package/dist/chunks/{modal.DfjUKkg-.js.map → modal.DPrBUWDe.js.map} +1 -1
- package/dist/chunks/{pagination.Cfx0W4Ol.js → pagination.CT08YpqC.js} +4 -4
- package/dist/chunks/{pagination.Cfx0W4Ol.js.map → pagination.CT08YpqC.js.map} +1 -1
- package/dist/chunks/{payment-method.D9Qx-s4V.js → payment-method.BnLkBqVQ.js} +2 -2
- package/dist/chunks/{payment-method.D9Qx-s4V.js.map → payment-method.BnLkBqVQ.js.map} +1 -1
- package/dist/chunks/{popover.BUB-a17X.js → popover.Du6UI6Yh.js} +4 -4
- package/dist/chunks/{popover.BUB-a17X.js.map → popover.Du6UI6Yh.js.map} +1 -1
- package/dist/chunks/{radio-group.BD2V4FKN.js → radio-group.D650KrHa.js} +5 -5
- package/dist/chunks/{radio-group.BD2V4FKN.js.map → radio-group.D650KrHa.js.map} +1 -1
- package/dist/chunks/{search-bar.TiQbXYj4.js → search-bar.hxEJk-w0.js} +2 -2
- package/dist/chunks/{search-bar.TiQbXYj4.js.map → search-bar.hxEJk-w0.js.map} +1 -1
- package/dist/chunks/{secondary-nav.DgAWiJMb.js → secondary-nav.Bsi7Dj0s.js} +3 -3
- package/dist/chunks/{secondary-nav.DgAWiJMb.js.map → secondary-nav.Bsi7Dj0s.js.map} +1 -1
- package/dist/chunks/{segmented-control.C05AwFnZ.js → segmented-control.BeXMVbce.js} +3 -3
- package/dist/chunks/{segmented-control.C05AwFnZ.js.map → segmented-control.BeXMVbce.js.map} +1 -1
- package/dist/chunks/{selection-card-group.DJlp94TC.js → selection-card-group.D5DRYhrw.js} +4 -4
- package/dist/chunks/{selection-card-group.DJlp94TC.js.map → selection-card-group.D5DRYhrw.js.map} +1 -1
- package/dist/chunks/{sidepanel.CS8HWC7H.js → sidepanel.DRP_jFVq.js} +5 -5
- package/dist/chunks/{sidepanel.CS8HWC7H.js.map → sidepanel.DRP_jFVq.js.map} +1 -1
- package/dist/chunks/{status.types.BhbOYpZx.js → status.types.CcGZuqg5.js} +2 -2
- package/dist/chunks/{status.types.BhbOYpZx.js.map → status.types.CcGZuqg5.js.map} +1 -1
- package/dist/chunks/{step.CZqxgAkd.js → step.RkChji1p.js} +3 -3
- package/dist/chunks/{step.CZqxgAkd.js.map → step.RkChji1p.js.map} +1 -1
- package/dist/chunks/{structured-list-item.8NE9UKBY.js → structured-list-item.BfEARGrz.js} +6 -6
- package/dist/chunks/{structured-list-item.8NE9UKBY.js.map → structured-list-item.BfEARGrz.js.map} +1 -1
- package/dist/chunks/{summary-grid-item-custom.Cl-LVb2n.js → summary-grid-item-custom.Cjv109f8.js} +5 -5
- package/dist/chunks/{summary-grid-item-custom.Cl-LVb2n.js.map → summary-grid-item-custom.Cjv109f8.js.map} +1 -1
- package/dist/chunks/{tabs.CE65f3E_.js → tabs.BLCcrVbI.js} +3 -3
- package/dist/chunks/{tabs.CE65f3E_.js.map → tabs.BLCcrVbI.js.map} +1 -1
- package/dist/chunks/{tag.B2o39TYl.js → tag.4Vqj8tm4.js} +4 -4
- package/dist/chunks/tag.4Vqj8tm4.js.map +1 -0
- package/dist/chunks/{textarea.DzUvpK3q.js → textarea.DM2Cwx14.js} +4 -4
- package/dist/chunks/{textarea.DzUvpK3q.js.map → textarea.DM2Cwx14.js.map} +1 -1
- package/dist/chunks/{timeline-item.BktaQxIY.js → timeline-item.B2c3eI3L.js} +9 -9
- package/dist/chunks/{timeline-item.BktaQxIY.js.map → timeline-item.B2c3eI3L.js.map} +1 -1
- package/dist/chunks/{toast.0EYDj8o-.js → toast.rrKNWeM6.js} +4 -4
- package/dist/chunks/{toast.0EYDj8o-.js.map → toast.rrKNWeM6.js.map} +1 -1
- package/dist/chunks/{toggle-button.2U-vbQhk.js → toggle-button.CBuKACw5.js} +2 -2
- package/dist/chunks/{toggle-button.2U-vbQhk.js.map → toggle-button.CBuKACw5.js.map} +1 -1
- package/dist/chunks/{toggle.CiOVTWlk.js → toggle.DtrStAja.js} +2 -2
- package/dist/chunks/{toggle.CiOVTWlk.js.map → toggle.DtrStAja.js.map} +1 -1
- package/dist/chunks/{tooltip.BmKdsFTL.js → tooltip.4f_qwm8o.js} +2 -2
- package/dist/chunks/{tooltip.BmKdsFTL.js.map → tooltip.4f_qwm8o.js.map} +1 -1
- package/dist/chunks/{tutorial.Cc58Yk8q.js → tutorial.DUjlu3SH.js} +5 -5
- package/dist/chunks/{tutorial.Cc58Yk8q.js.map → tutorial.DUjlu3SH.js.map} +1 -1
- package/dist/chunks/{typography.Bjtu3Gca.js → typography.CdCYtxYj.js} +1 -2
- package/dist/chunks/{typography.Bjtu3Gca.js.map → typography.CdCYtxYj.js.map} +1 -1
- package/dist/chunks/{use-bento-toast-controller.BifdE4ak.js → use-bento-toast-controller.C66wCsav.js} +2 -2
- package/dist/chunks/{use-bento-toast-controller.BifdE4ak.js.map → use-bento-toast-controller.C66wCsav.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.DgARPcHp.js → use-cached-selected-values.DWQ8SMSi.js} +332 -328
- package/dist/chunks/use-cached-selected-values.DWQ8SMSi.js.map +1 -0
- package/dist/code-snippet.js +1 -1
- package/dist/country.js +1 -1
- package/dist/currency.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/date.js +1 -1
- package/dist/dropdown.js +4 -4
- package/dist/empty-state.js +1 -1
- package/dist/filter-bar.js +1 -1
- package/dist/form-layout.js +1 -1
- package/dist/header.js +1 -1
- package/dist/index.js +63 -63
- package/dist/info-icon.js +1 -1
- package/dist/input-field.js +1 -1
- package/dist/inspector.js +1 -1
- package/dist/internal.js +8 -8
- 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/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/status.js +1 -1
- package/dist/stepper.js +1 -1
- package/dist/structured-list.js +1 -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/toggle.js +1 -1
- package/dist/tutorial.js +1 -1
- package/dist/typography.js +1 -1
- package/dist/web-types.json +1 -45
- package/package.json +3 -3
- package/dist/assets/badge.css +0 -1
- package/dist/badge.js +0 -57
- package/dist/badge.js.map +0 -1
- package/dist/chunks/filter-bar.7nGTSoYh.js.map +0 -1
- package/dist/chunks/tag.B2o39TYl.js.map +0 -1
- package/dist/chunks/use-cached-selected-values.DgARPcHp.js.map +0 -1
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { computed as
|
|
2
|
-
import { B as
|
|
1
|
+
import { computed as c, ref as O, onMounted as te, onUnmounted as _e, watch as se, defineComponent as $, toRef as G } from "vue";
|
|
2
|
+
import { B as w } from "./typography.CdCYtxYj.js";
|
|
3
3
|
import { B as ge } from "./loading-indicator.DXc7I1Lm.js";
|
|
4
|
-
import { B as ye } from "./empty-state.
|
|
4
|
+
import { B as ye } from "./empty-state.CWy3y5Ly.js";
|
|
5
5
|
import { u as Y } from "./i18n.BQkEbtPM.js";
|
|
6
6
|
import { d as pe } from "./debounce.DUTu11PS.js";
|
|
7
7
|
import { n as D } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
|
|
8
8
|
import { B as k, a as X } from "./keyboard-navigation.Clz1jOaA.js";
|
|
9
|
-
import { B as Z } from "./checkbox.
|
|
9
|
+
import { B as Z } from "./checkbox.CKQZXIR3.js";
|
|
10
10
|
import "./index.Cl4_42j5.js";
|
|
11
|
-
import { C as
|
|
12
|
-
import { B as he } from "./base-button.
|
|
11
|
+
import { C as Ce, a as Se } from "./chevron-up.B2uWhZf7.js";
|
|
12
|
+
import { B as he } from "./base-button.-qw8sZSY.js";
|
|
13
13
|
import { C as xe } from "./cross-small.BLUwtRB-.js";
|
|
14
|
-
import { B as Ee, a as J } from "./loading-button.
|
|
14
|
+
import { B as Ee, a as J } from "./loading-button.Ba8So0d6.js";
|
|
15
15
|
import { o as Le } from "./resize.Bqks3WUm.js";
|
|
16
16
|
import "../assets/use-cached-selected-values.css";
|
|
17
17
|
const le = (t, e, s, l) => {
|
|
18
|
-
const n =
|
|
18
|
+
const n = c(
|
|
19
19
|
() => {
|
|
20
|
-
var r,
|
|
21
|
-
return !!((r = t.value) != null && r.length) && ((
|
|
20
|
+
var r, b;
|
|
21
|
+
return !!((r = t.value) != null && r.length) && ((b = t.value) == null ? void 0 : b.length) === e.value.length;
|
|
22
22
|
}
|
|
23
|
-
), a =
|
|
23
|
+
), a = c(() => {
|
|
24
24
|
var r;
|
|
25
25
|
return t.value == null || t.value.length === 0 ? !1 : ((r = t.value) == null ? void 0 : r.length) !== e.value.length;
|
|
26
26
|
});
|
|
@@ -33,84 +33,84 @@ const le = (t, e, s, l) => {
|
|
|
33
33
|
};
|
|
34
34
|
};
|
|
35
35
|
function Oe(t, { disabled: e, itemHeight: s, overscan: l = 5, prefixHeight: n }) {
|
|
36
|
-
const a =
|
|
37
|
-
let
|
|
38
|
-
const
|
|
39
|
-
const
|
|
36
|
+
const a = O(null), i = O([]), r = O(0), b = O(0), m = O(0);
|
|
37
|
+
let E;
|
|
38
|
+
const p = c(() => {
|
|
39
|
+
const _ = typeof s == "number" ? t.value.length * s : t.value.reduce((L, f, h) => L + s(h), 0), C = typeof s == "number" ? r.value * s : t.value.slice(0, r.value).reduce((L, f, h) => L + s(h), 0);
|
|
40
40
|
return {
|
|
41
41
|
style: {
|
|
42
|
-
marginTop: `${
|
|
43
|
-
height: `${
|
|
42
|
+
marginTop: `${C}px`,
|
|
43
|
+
height: `${_ - C}px`
|
|
44
44
|
}
|
|
45
45
|
};
|
|
46
|
-
}),
|
|
47
|
-
const
|
|
46
|
+
}), S = () => {
|
|
47
|
+
const _ = (n == null ? void 0 : n.value) ?? 0, C = Math.max(a.value.scrollTop - _, 0);
|
|
48
48
|
if (typeof s == "number")
|
|
49
|
-
return Math.floor(
|
|
50
|
-
let
|
|
51
|
-
for (let
|
|
52
|
-
const
|
|
53
|
-
if (
|
|
54
|
-
f =
|
|
49
|
+
return Math.floor(C / s);
|
|
50
|
+
let L = 0, f = 0;
|
|
51
|
+
for (let h = 0; h < t.value.length; h += 1) {
|
|
52
|
+
const A = s(h);
|
|
53
|
+
if (L += A, L >= C) {
|
|
54
|
+
f = h;
|
|
55
55
|
break;
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
return f;
|
|
59
59
|
}, R = () => {
|
|
60
|
-
if (
|
|
61
|
-
return Math.ceil(
|
|
62
|
-
const
|
|
63
|
-
let
|
|
64
|
-
for (let f =
|
|
65
|
-
const
|
|
66
|
-
if (
|
|
60
|
+
if (m.value = a.value.clientHeight, typeof s == "number")
|
|
61
|
+
return Math.ceil(m.value / s);
|
|
62
|
+
const _ = r.value ?? 0;
|
|
63
|
+
let C = 0, L = 0;
|
|
64
|
+
for (let f = _; f < t.value.length; f += 1) {
|
|
65
|
+
const h = s(f);
|
|
66
|
+
if (C += h, L = f, C > m.value)
|
|
67
67
|
break;
|
|
68
68
|
}
|
|
69
|
-
return
|
|
70
|
-
},
|
|
69
|
+
return L - _;
|
|
70
|
+
}, T = () => {
|
|
71
71
|
if (a.value) {
|
|
72
|
-
const
|
|
73
|
-
r.value =
|
|
72
|
+
const _ = R();
|
|
73
|
+
r.value = S(), b.value = Math.min(r.value + _ + l, t.value.length), i.value = t.value.slice(r.value, b.value);
|
|
74
74
|
}
|
|
75
|
-
},
|
|
76
|
-
|
|
75
|
+
}, B = () => {
|
|
76
|
+
T();
|
|
77
77
|
};
|
|
78
78
|
e || (te(() => {
|
|
79
|
-
a.value && (
|
|
80
|
-
|
|
81
|
-
}),
|
|
79
|
+
a.value && (m.value = a.value.clientHeight, E = Le(a.value, ({ clientHeight: _ }) => {
|
|
80
|
+
m.value = _, T();
|
|
81
|
+
}), T());
|
|
82
82
|
}), _e(() => {
|
|
83
|
-
|
|
83
|
+
E == null || E.disconnect();
|
|
84
84
|
}), se(
|
|
85
85
|
() => t.value,
|
|
86
86
|
() => {
|
|
87
|
-
|
|
87
|
+
T();
|
|
88
88
|
}
|
|
89
89
|
));
|
|
90
|
-
const
|
|
90
|
+
const u = {
|
|
91
91
|
ref: a,
|
|
92
92
|
style: { overflowY: "auto" }
|
|
93
93
|
};
|
|
94
94
|
return e ? {
|
|
95
95
|
containerRef: a,
|
|
96
|
-
containerProps:
|
|
96
|
+
containerProps: u,
|
|
97
97
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
98
98
|
onScroll: () => {
|
|
99
99
|
},
|
|
100
100
|
list: t
|
|
101
101
|
} : {
|
|
102
102
|
containerRef: a,
|
|
103
|
-
containerProps:
|
|
104
|
-
onScroll:
|
|
105
|
-
list:
|
|
106
|
-
wrapperProps:
|
|
103
|
+
containerProps: u,
|
|
104
|
+
onScroll: B,
|
|
105
|
+
list: i,
|
|
106
|
+
wrapperProps: p
|
|
107
107
|
};
|
|
108
108
|
}
|
|
109
|
-
var o = /* @__PURE__ */ ((t) => (t.SELECT = "select", t.SHOW_MORE = "show-more", t.ESCAPE = "escape-pressed", t.CLICK = "click", t.ENTER = "enter-pressed", t.SPACE = "space-pressed", t.TAB = "tab-pressed", t.CLOSE_DROPDOWN = "close-dropdown", t))(o || {}),
|
|
109
|
+
var o = /* @__PURE__ */ ((t) => (t.SELECT = "select", t.SHOW_MORE = "show-more", t.ESCAPE = "escape-pressed", t.CLICK = "click", t.ENTER = "enter-pressed", t.SPACE = "space-pressed", t.TAB = "tab-pressed", t.CLOSE_DROPDOWN = "close-dropdown", t))(o || {}), M = /* @__PURE__ */ ((t) => (t.AUTOMATIC = "automatic", t.BUTTON = "button", t.NONE = "none", t))(M || {});
|
|
110
110
|
const Te = $({
|
|
111
111
|
name: "bento-listbox-static-category",
|
|
112
112
|
components: {
|
|
113
|
-
BentoTypography:
|
|
113
|
+
BentoTypography: w
|
|
114
114
|
},
|
|
115
115
|
props: {
|
|
116
116
|
/**
|
|
@@ -147,7 +147,7 @@ const Re = Be.exports, ke = $({
|
|
|
147
147
|
},
|
|
148
148
|
emits: [o.CLICK, o.ENTER, o.SPACE, o.TAB],
|
|
149
149
|
setup(t, { emit: e }) {
|
|
150
|
-
const s =
|
|
150
|
+
const s = c(() => ({
|
|
151
151
|
"b-listbox-option--disabled": t.disabled,
|
|
152
152
|
"b-listbox-option--selected": t.selected
|
|
153
153
|
}));
|
|
@@ -161,8 +161,8 @@ const Re = Be.exports, ke = $({
|
|
|
161
161
|
onClick: (a) => {
|
|
162
162
|
e(o.CLICK, a);
|
|
163
163
|
},
|
|
164
|
-
onOptionSelected: (a,
|
|
165
|
-
e(a,
|
|
164
|
+
onOptionSelected: (a, i) => {
|
|
165
|
+
e(a, i);
|
|
166
166
|
}
|
|
167
167
|
};
|
|
168
168
|
}
|
|
@@ -191,13 +191,13 @@ const Pe = {
|
|
|
191
191
|
this.uuid = Q.toString(), Q += 1;
|
|
192
192
|
}
|
|
193
193
|
};
|
|
194
|
-
var
|
|
194
|
+
var Me = function() {
|
|
195
195
|
var e = this, s = e._self._c;
|
|
196
196
|
return s("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? s("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), s("path", { attrs: { fill: "#00112C", d: "M15.0608 4.00011L14.0001 2.93945L6.00011 10.9395L2.00011 6.93945L0.939453 8.00011L6.00011 13.0608L15.0608 4.00011Z" } })]);
|
|
197
|
-
},
|
|
197
|
+
}, we = [], Fe = /* @__PURE__ */ D(
|
|
198
198
|
Pe,
|
|
199
|
-
we,
|
|
200
199
|
Me,
|
|
200
|
+
we,
|
|
201
201
|
!1,
|
|
202
202
|
null,
|
|
203
203
|
null
|
|
@@ -206,7 +206,7 @@ const Ge = Fe.exports, Ue = $({
|
|
|
206
206
|
name: "bento-listbox-single-select-option",
|
|
207
207
|
components: {
|
|
208
208
|
BentoListboxOption: q,
|
|
209
|
-
BentoTypography:
|
|
209
|
+
BentoTypography: w,
|
|
210
210
|
CheckmarkIcon: Ge
|
|
211
211
|
},
|
|
212
212
|
props: {
|
|
@@ -229,9 +229,9 @@ const Ge = Fe.exports, Ue = $({
|
|
|
229
229
|
},
|
|
230
230
|
emits: [o.ENTER, o.SELECT, o.SPACE, o.TAB],
|
|
231
231
|
setup(t, { emit: e }) {
|
|
232
|
-
const s = (
|
|
233
|
-
t.disabled || e(
|
|
234
|
-
}, l =
|
|
232
|
+
const s = (i) => {
|
|
233
|
+
t.disabled || e(i, t.option);
|
|
234
|
+
}, l = c(() => t.disabled ? !0 : null), n = c(() => t.selected ? !0 : null), a = c(() => t.disabled ? -1 : 0);
|
|
235
235
|
return {
|
|
236
236
|
// Values
|
|
237
237
|
ariaDisabled: l,
|
|
@@ -251,7 +251,7 @@ var ze = function() {
|
|
|
251
251
|
}, "enter-pressed": function(l) {
|
|
252
252
|
return e.onOptionSelected(e.BentoListboxEvent.ENTER);
|
|
253
253
|
}, "space-pressed": function(l) {
|
|
254
|
-
return e.onOptionSelected(e.BentoListboxEvent.SPACE);
|
|
254
|
+
return l.preventDefault(), e.onOptionSelected(e.BentoListboxEvent.SPACE);
|
|
255
255
|
}, "tab-pressed": function(l) {
|
|
256
256
|
return e.onOptionSelected(e.BentoListboxEvent.TAB);
|
|
257
257
|
} } }, [e._t("default", function() {
|
|
@@ -263,45 +263,47 @@ var ze = function() {
|
|
|
263
263
|
Ve,
|
|
264
264
|
!1,
|
|
265
265
|
null,
|
|
266
|
-
"
|
|
266
|
+
"5a5ff36a"
|
|
267
267
|
);
|
|
268
|
-
const qe = Ye.exports, ne = ({ items: t, isOptionDisabled: e },
|
|
269
|
-
const
|
|
268
|
+
const qe = Ye.exports, ne = ({ items: t, isOptionDisabled: e, hasStaticCategories: s }, l) => {
|
|
269
|
+
const n = c(
|
|
270
|
+
() => s.value ? t.value.flatMap((u) => u.items) : t.value
|
|
271
|
+
), a = c(() => n.value.length - 1), i = O(0);
|
|
270
272
|
te(() => {
|
|
271
|
-
e && (
|
|
273
|
+
e && (i.value = t.value.findIndex((u) => !e(u)));
|
|
272
274
|
});
|
|
273
|
-
const
|
|
274
|
-
switch (
|
|
275
|
+
const r = (u) => !e || !!e && e(t.value[u]), b = (u) => !e || !!e && !e(t.value[u]), m = (u) => {
|
|
276
|
+
switch (u) {
|
|
275
277
|
case "increase":
|
|
276
|
-
|
|
278
|
+
i.value += 1;
|
|
277
279
|
break;
|
|
278
280
|
case "decrease":
|
|
279
|
-
|
|
281
|
+
i.value -= 1;
|
|
280
282
|
break;
|
|
281
283
|
}
|
|
282
|
-
},
|
|
283
|
-
|
|
284
|
-
},
|
|
285
|
-
var
|
|
286
|
-
(
|
|
287
|
-
const
|
|
288
|
-
|
|
284
|
+
}, E = ({ edgeCaseItem: u, isItemBeforeEdgeCaseItem: _ }, C, L) => {
|
|
285
|
+
i.value !== u && (_ ? b(u) && m(L) : (m(L), r(i.value) && C()), l(i.value));
|
|
286
|
+
}, p = (u) => {
|
|
287
|
+
var C;
|
|
288
|
+
(C = u == null ? void 0 : u.detail) == null || C.preventDefault();
|
|
289
|
+
const _ = i.value === a.value - 2;
|
|
290
|
+
E(
|
|
289
291
|
{
|
|
290
|
-
isItemBeforeEdgeCaseItem:
|
|
291
|
-
edgeCaseItem:
|
|
292
|
+
isItemBeforeEdgeCaseItem: _,
|
|
293
|
+
edgeCaseItem: a.value
|
|
292
294
|
},
|
|
293
|
-
|
|
295
|
+
p,
|
|
294
296
|
"increase"
|
|
295
297
|
/* INCREASE */
|
|
296
298
|
);
|
|
297
|
-
}, S = (
|
|
298
|
-
var
|
|
299
|
-
(
|
|
300
|
-
const
|
|
301
|
-
|
|
299
|
+
}, S = (u) => {
|
|
300
|
+
var C;
|
|
301
|
+
(C = u == null ? void 0 : u.detail) == null || C.preventDefault();
|
|
302
|
+
const _ = i.value === 1;
|
|
303
|
+
E(
|
|
302
304
|
{
|
|
303
305
|
edgeCaseItem: 0,
|
|
304
|
-
isItemBeforeEdgeCaseItem:
|
|
306
|
+
isItemBeforeEdgeCaseItem: _
|
|
305
307
|
},
|
|
306
308
|
S,
|
|
307
309
|
"decrease"
|
|
@@ -310,15 +312,15 @@ const qe = Ye.exports, ne = ({ items: t, isOptionDisabled: e }, s) => {
|
|
|
310
312
|
};
|
|
311
313
|
return {
|
|
312
314
|
moveToFirstElement: () => {
|
|
313
|
-
|
|
315
|
+
i.value = 0, r(i.value) ? p() : l(i.value);
|
|
314
316
|
},
|
|
315
317
|
moveToLastElement: () => {
|
|
316
|
-
|
|
318
|
+
i.value = a.value, r(i.value) ? S() : l(i.value);
|
|
317
319
|
},
|
|
318
|
-
moveToNextElement:
|
|
320
|
+
moveToNextElement: p,
|
|
319
321
|
moveToPreviousElement: S,
|
|
320
|
-
setListboxFocusedIndex: (
|
|
321
|
-
|
|
322
|
+
setListboxFocusedIndex: (u) => {
|
|
323
|
+
i.value = u;
|
|
322
324
|
}
|
|
323
325
|
};
|
|
324
326
|
}, We = $({
|
|
@@ -370,29 +372,30 @@ const qe = Ye.exports, ne = ({ items: t, isOptionDisabled: e }, s) => {
|
|
|
370
372
|
},
|
|
371
373
|
emits: [o.SELECT, o.ENTER, o.SPACE, o.TAB],
|
|
372
374
|
setup(t, { emit: e, expose: s, slots: l }) {
|
|
373
|
-
const n =
|
|
374
|
-
var
|
|
375
|
-
return !!((
|
|
376
|
-
}),
|
|
377
|
-
e(
|
|
378
|
-
},
|
|
379
|
-
moveToNextElement:
|
|
380
|
-
moveToPreviousElement:
|
|
381
|
-
moveToFirstElement:
|
|
382
|
-
moveToLastElement:
|
|
375
|
+
const n = O([]), a = c(() => {
|
|
376
|
+
var u;
|
|
377
|
+
return !!((u = t.selectedValue) != null && u.length) && t.selectedValue.at(0);
|
|
378
|
+
}), i = c(() => !!t.items.some(({ items: u }) => !!u)), r = (u) => (_) => {
|
|
379
|
+
e(u, [_]);
|
|
380
|
+
}, b = (u) => n.value[u].$el.focus(), {
|
|
381
|
+
moveToNextElement: m,
|
|
382
|
+
moveToPreviousElement: E,
|
|
383
|
+
moveToFirstElement: p,
|
|
384
|
+
moveToLastElement: S,
|
|
383
385
|
setListboxFocusedIndex: R
|
|
384
386
|
} = ne(
|
|
385
387
|
{
|
|
386
|
-
items:
|
|
387
|
-
isOptionDisabled: t.isOptionDisabled
|
|
388
|
+
items: G(t, "items"),
|
|
389
|
+
isOptionDisabled: t.isOptionDisabled,
|
|
390
|
+
hasStaticCategories: G(t, "staticCategories")
|
|
388
391
|
},
|
|
389
|
-
|
|
390
|
-
),
|
|
391
|
-
[k.ARROW_UP]:
|
|
392
|
-
[k.ARROW_DOWN]:
|
|
393
|
-
[k.HOME]:
|
|
394
|
-
[k.END]:
|
|
395
|
-
},
|
|
392
|
+
b
|
|
393
|
+
), T = {
|
|
394
|
+
[k.ARROW_UP]: E,
|
|
395
|
+
[k.ARROW_DOWN]: m,
|
|
396
|
+
[k.HOME]: p,
|
|
397
|
+
[k.END]: S
|
|
398
|
+
}, B = {
|
|
396
399
|
[o.SELECT]: r(o.SELECT),
|
|
397
400
|
[o.SPACE]: r(o.SPACE),
|
|
398
401
|
[o.TAB]: r(o.TAB),
|
|
@@ -417,12 +420,12 @@ const qe = Ye.exports, ne = ({ items: t, isOptionDisabled: e }, s) => {
|
|
|
417
420
|
selectedItem: a,
|
|
418
421
|
slots: l,
|
|
419
422
|
// Computed
|
|
420
|
-
hasCategories:
|
|
423
|
+
hasCategories: i,
|
|
421
424
|
// Methods
|
|
422
425
|
onOptionSelected: r,
|
|
423
426
|
// Keyboard navigation
|
|
424
|
-
listboxListeners:
|
|
425
|
-
listboxOptionListeners:
|
|
427
|
+
listboxListeners: T,
|
|
428
|
+
listboxOptionListeners: B
|
|
426
429
|
};
|
|
427
430
|
}
|
|
428
431
|
});
|
|
@@ -430,16 +433,16 @@ var Ke = function() {
|
|
|
430
433
|
var e = this, s = e._self._c;
|
|
431
434
|
return e._self._setupProxy, s("div", e._g({ directives: [{ name: "bento-keyboard-navigation-directive", rawName: "v-bento-keyboard-navigation-directive" }] }, e.listboxListeners), [e.hasCategories && e.staticCategories ? e._l(e.items, function(l) {
|
|
432
435
|
return s("bento-listbox-single-select-category", { key: l.value, attrs: { "category-label": l.label, role: "group" } }, e._l(l.items, function(n) {
|
|
433
|
-
return s("bento-listbox-single-select-option", e._g({ key: n.value, ref: "listboxItemRef", refInFor: !0, attrs: { role: "option", option: n, disabled: e.isOptionDisabled ? e.isOptionDisabled(n) : null, selected: n.value === e.selectedItem.value }, scopedSlots: e._u([e._l(e.slots, function(a,
|
|
434
|
-
return { key:
|
|
435
|
-
return [e._t(
|
|
436
|
+
return s("bento-listbox-single-select-option", e._g({ key: n.value, ref: "listboxItemRef", refInFor: !0, attrs: { role: "option", option: n, disabled: e.isOptionDisabled ? e.isOptionDisabled(n) : null, selected: n.value === e.selectedItem.value }, scopedSlots: e._u([e._l(e.slots, function(a, i) {
|
|
437
|
+
return { key: i, fn: function(r) {
|
|
438
|
+
return [e._t(i, null, null, r)];
|
|
436
439
|
} };
|
|
437
440
|
})], null, !0) }, e.listboxOptionListeners));
|
|
438
441
|
}), 1);
|
|
439
442
|
}) : e._l(e.items, function(l) {
|
|
440
443
|
return s("bento-listbox-single-select-option", e._g({ key: l.value, ref: "listboxItemRef", refInFor: !0, attrs: { role: "option", option: l, disabled: e.isOptionDisabled ? e.isOptionDisabled(l) : null, selected: l.value === e.selectedItem.value }, scopedSlots: e._u([e._l(e.slots, function(n, a) {
|
|
441
|
-
return { key: a, fn: function(
|
|
442
|
-
return [e._t(a, null, null,
|
|
444
|
+
return { key: a, fn: function(i) {
|
|
445
|
+
return [e._t(a, null, null, i)];
|
|
443
446
|
} };
|
|
444
447
|
})], null, !0) }, e.listboxOptionListeners));
|
|
445
448
|
})], 2);
|
|
@@ -452,7 +455,7 @@ var Ke = function() {
|
|
|
452
455
|
null
|
|
453
456
|
);
|
|
454
457
|
const Xe = He.exports;
|
|
455
|
-
var j = /* @__PURE__ */ ((t) => (t.DISABLED = "disabled", t.STATIC_CATEGORY = "static-category", t))(j || {}),
|
|
458
|
+
var j = /* @__PURE__ */ ((t) => (t.DISABLED = "disabled", t.STATIC_CATEGORY = "static-category", t))(j || {}), z = /* @__PURE__ */ ((t) => (t.SELECT_CATEGORY = "select-category", t.UNSELECT_CATEGORY = "unselect-category", t))(z || {});
|
|
456
459
|
const Ze = {
|
|
457
460
|
"en-US": {
|
|
458
461
|
categoryClosed: "{category} closed",
|
|
@@ -463,10 +466,10 @@ const Ze = {
|
|
|
463
466
|
name: "bento-listbox-multi-select-category",
|
|
464
467
|
components: {
|
|
465
468
|
BentoCheckbox: Z,
|
|
466
|
-
BentoTypography:
|
|
469
|
+
BentoTypography: w,
|
|
467
470
|
BentoListboxOption: q,
|
|
468
|
-
ChevronDownIcon:
|
|
469
|
-
ChevronUpIcon:
|
|
471
|
+
ChevronDownIcon: Ce,
|
|
472
|
+
ChevronUpIcon: Se
|
|
470
473
|
},
|
|
471
474
|
props: {
|
|
472
475
|
/**
|
|
@@ -507,67 +510,67 @@ const Ze = {
|
|
|
507
510
|
*/
|
|
508
511
|
staticCategories: { type: Boolean, default: !1 }
|
|
509
512
|
},
|
|
510
|
-
emits: [
|
|
513
|
+
emits: [z.SELECT_CATEGORY, z.UNSELECT_CATEGORY],
|
|
511
514
|
setup(t, { emit: e }) {
|
|
512
|
-
const s =
|
|
515
|
+
const s = O(!1), { t: l } = Y(), n = (f) => t.isOptionDisabled ? t.isOptionDisabled(f) : !1, a = c(
|
|
513
516
|
() => t.category.items.every((f) => n(f))
|
|
514
|
-
),
|
|
517
|
+
), i = G(t, "staticCategories"), r = c(() => s.value || t.staticCategories), b = c(() => ({
|
|
515
518
|
[`b-listbox-multi-select-category--${j.DISABLED}`]: a.value,
|
|
516
519
|
[`b-listbox-multi-select-category--${j.STATIC_CATEGORY}`]: t.staticCategories
|
|
517
|
-
})),
|
|
520
|
+
})), m = (f) => {
|
|
518
521
|
f.preventDefault(), s.value = !s.value;
|
|
519
|
-
},
|
|
522
|
+
}, E = (f) => {
|
|
520
523
|
var F;
|
|
521
|
-
const
|
|
522
|
-
return { isDisabled:
|
|
523
|
-
},
|
|
524
|
+
const h = n(f), A = ((F = t.selectedItemsList) == null ? void 0 : F.includes(f.value)) || !1;
|
|
525
|
+
return { isDisabled: h, isPreSelected: A };
|
|
526
|
+
}, p = c(
|
|
524
527
|
() => t.category.items.filter((f) => {
|
|
525
|
-
const { isDisabled:
|
|
526
|
-
return
|
|
528
|
+
const { isDisabled: h, isPreSelected: A } = E(f);
|
|
529
|
+
return h && A || !h;
|
|
527
530
|
})
|
|
528
|
-
),
|
|
531
|
+
), S = c(
|
|
529
532
|
() => {
|
|
530
533
|
var f;
|
|
531
|
-
return (f =
|
|
532
|
-
({ value:
|
|
533
|
-
var
|
|
534
|
-
return (
|
|
534
|
+
return (f = p.value) == null ? void 0 : f.filter(
|
|
535
|
+
({ value: h }) => {
|
|
536
|
+
var A;
|
|
537
|
+
return (A = t.selectedItemsList) == null ? void 0 : A.includes(h);
|
|
535
538
|
}
|
|
536
539
|
);
|
|
537
540
|
}
|
|
538
|
-
), R =
|
|
541
|
+
), R = c(() => {
|
|
539
542
|
const f = s.value ? "categoryOpened" : "categoryClosed";
|
|
540
543
|
return l(f, { category: t.category.label });
|
|
541
|
-
}),
|
|
544
|
+
}), T = c(
|
|
542
545
|
() => ({
|
|
543
546
|
el: "span",
|
|
544
547
|
variant: t.staticCategories ? "caption" : "body"
|
|
545
548
|
})
|
|
546
|
-
),
|
|
547
|
-
e(
|
|
548
|
-
},
|
|
549
|
-
e(
|
|
550
|
-
}, { isAllSelected:
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
549
|
+
), B = () => {
|
|
550
|
+
e(z.SELECT_CATEGORY);
|
|
551
|
+
}, u = () => {
|
|
552
|
+
e(z.UNSELECT_CATEGORY);
|
|
553
|
+
}, { isAllSelected: _, isIndeterminate: C, toggleSelectAll: L } = le(
|
|
554
|
+
S,
|
|
555
|
+
p,
|
|
556
|
+
B,
|
|
557
|
+
u
|
|
555
558
|
);
|
|
556
559
|
return {
|
|
557
560
|
// Values
|
|
558
561
|
chevronTitle: R,
|
|
559
|
-
conditionalClass:
|
|
562
|
+
conditionalClass: b,
|
|
560
563
|
hasAllPropsDisabled: a,
|
|
561
564
|
isOpen: s,
|
|
562
|
-
isAllSelected:
|
|
563
|
-
isIndeterminate:
|
|
564
|
-
isStaticCategory:
|
|
565
|
+
isAllSelected: _,
|
|
566
|
+
isIndeterminate: C,
|
|
567
|
+
isStaticCategory: i,
|
|
565
568
|
// Computed
|
|
566
569
|
showItemChildren: r,
|
|
567
|
-
categoryLabelProps:
|
|
570
|
+
categoryLabelProps: T,
|
|
568
571
|
// Methods
|
|
569
|
-
toggleOpen:
|
|
570
|
-
toggleSelectAll:
|
|
572
|
+
toggleOpen: m,
|
|
573
|
+
toggleSelectAll: L
|
|
571
574
|
};
|
|
572
575
|
}
|
|
573
576
|
});
|
|
@@ -591,7 +594,7 @@ const lt = $({
|
|
|
591
594
|
components: {
|
|
592
595
|
BentoCheckbox: Z,
|
|
593
596
|
BentoListboxOption: q,
|
|
594
|
-
BentoTypography:
|
|
597
|
+
BentoTypography: w,
|
|
595
598
|
ListboxMultiSelectCategory: st
|
|
596
599
|
},
|
|
597
600
|
props: {
|
|
@@ -655,19 +658,19 @@ const lt = $({
|
|
|
655
658
|
P.UNSELECT_CATEGORY
|
|
656
659
|
],
|
|
657
660
|
setup(t, { emit: e }) {
|
|
658
|
-
const s = (
|
|
659
|
-
e(P.TOGGLE_CHECKBOX_SELECTION,
|
|
660
|
-
}, l = (
|
|
661
|
-
const
|
|
662
|
-
return
|
|
663
|
-
}, a = (
|
|
664
|
-
if (l(
|
|
665
|
-
return e(
|
|
666
|
-
s(
|
|
661
|
+
const s = (b) => {
|
|
662
|
+
e(P.TOGGLE_CHECKBOX_SELECTION, b);
|
|
663
|
+
}, l = (b) => !!b.items, n = (b) => {
|
|
664
|
+
const m = t.isMultiLevel && t.searching;
|
|
665
|
+
return b.description && (!t.isMultiLevel || m);
|
|
666
|
+
}, a = (b) => b.items ? !!b.items.find((m) => t.selectedItemsList.includes(m.value)) : t.selectedItemsList.includes(b.value), i = (b, m) => {
|
|
667
|
+
if (l(m))
|
|
668
|
+
return e(b ? P.SELECT_CATEGORY : P.UNSELECT_CATEGORY, m);
|
|
669
|
+
s(m.value);
|
|
667
670
|
};
|
|
668
671
|
return {
|
|
669
672
|
// Values
|
|
670
|
-
conditionalClasses:
|
|
673
|
+
conditionalClasses: c(() => ({
|
|
671
674
|
"b-listbox-multi-select-options__static-category-option": t.staticCategories,
|
|
672
675
|
"b-listbox-multi-select-options__category-option": t.categoryItems
|
|
673
676
|
})),
|
|
@@ -675,7 +678,7 @@ const lt = $({
|
|
|
675
678
|
isOptionSelected: a,
|
|
676
679
|
shouldShowDescription: n,
|
|
677
680
|
toggleCheckboxSelection: s,
|
|
678
|
-
selectSearch:
|
|
681
|
+
selectSearch: i,
|
|
679
682
|
// Enums
|
|
680
683
|
BentoListboxEvent: o,
|
|
681
684
|
ListboxMultiSelectOptionsEvent: P
|
|
@@ -737,7 +740,7 @@ const it = ot.exports, ct = {
|
|
|
737
740
|
emits: ["unselect-item", "unselect-category"],
|
|
738
741
|
setup(t, { emit: e }) {
|
|
739
742
|
const { t: s } = Y();
|
|
740
|
-
return { __sfc: !0, emit: e, t: s, unselectOption: (n) => n.items ? e("unselect-category", n) : e("unselect-item", n), BentoTypography:
|
|
743
|
+
return { __sfc: !0, emit: e, t: s, unselectOption: (n) => n.items ? e("unselect-category", n) : e("unselect-item", n), BentoTypography: w, BaseButton: he, CrossSmallIcon: xe };
|
|
741
744
|
}
|
|
742
745
|
});
|
|
743
746
|
var dt = function() {
|
|
@@ -765,10 +768,10 @@ const vt = mt.exports, ft = {
|
|
|
765
768
|
selectAll: "Select all ({total})"
|
|
766
769
|
}
|
|
767
770
|
}, _t = (t) => {
|
|
768
|
-
const e =
|
|
771
|
+
const e = c(() => {
|
|
769
772
|
var l;
|
|
770
773
|
return !!((l = t.value) != null && l.find(({ items: n }) => !!n));
|
|
771
|
-
}), s =
|
|
774
|
+
}), s = c(() => {
|
|
772
775
|
var l;
|
|
773
776
|
return e.value ? (l = t.value) == null ? void 0 : l.reduce((n, a) => (a.items ? n.push(...a.items.flat()) : n.push(a), n), []) : t.value;
|
|
774
777
|
});
|
|
@@ -782,7 +785,7 @@ const vt = mt.exports, ft = {
|
|
|
782
785
|
components: {
|
|
783
786
|
BentoCheckbox: Z,
|
|
784
787
|
BentoListboxOption: q,
|
|
785
|
-
BentoTypography:
|
|
788
|
+
BentoTypography: w,
|
|
786
789
|
ListboxMultiSelectOptions: it,
|
|
787
790
|
ListboxMultiSelectChips: vt
|
|
788
791
|
},
|
|
@@ -823,8 +826,8 @@ const vt = mt.exports, ft = {
|
|
|
823
826
|
*/
|
|
824
827
|
lazyLoadType: {
|
|
825
828
|
type: String,
|
|
826
|
-
default:
|
|
827
|
-
validator: (t) => Object.values(
|
|
829
|
+
default: M.NONE,
|
|
830
|
+
validator: (t) => Object.values(M).includes(t)
|
|
828
831
|
},
|
|
829
832
|
/**
|
|
830
833
|
* Flag that indicates that an external search it's being made
|
|
@@ -848,107 +851,108 @@ const vt = mt.exports, ft = {
|
|
|
848
851
|
},
|
|
849
852
|
emits: [o.SELECT],
|
|
850
853
|
setup(t, { emit: e, slots: s }) {
|
|
851
|
-
const { t: l } = Y(), n =
|
|
852
|
-
() => t.selectedValues.map(({ value:
|
|
853
|
-
), { isMultiLevelSelect:
|
|
854
|
-
var
|
|
855
|
-
const
|
|
856
|
-
return { isDisabled:
|
|
857
|
-
},
|
|
858
|
-
if (t.searching &&
|
|
854
|
+
const { t: l } = Y(), n = O(null), a = O(null), i = O(null), r = c(
|
|
855
|
+
() => t.selectedValues.map(({ value: d }) => d)
|
|
856
|
+
), { isMultiLevelSelect: b, flattenedItemsList: m } = _t(G(t, "items")), E = (d) => {
|
|
857
|
+
var x;
|
|
858
|
+
const v = t.isOptionDisabled(d), g = ((x = r.value) == null ? void 0 : x.includes(d.value)) || !1;
|
|
859
|
+
return { isDisabled: v, isPreSelected: g };
|
|
860
|
+
}, p = c(() => {
|
|
861
|
+
if (t.searching && b)
|
|
859
862
|
return t.items;
|
|
860
|
-
const
|
|
861
|
-
const { isDisabled:
|
|
862
|
-
return
|
|
863
|
+
const d = m.value.filter((v) => {
|
|
864
|
+
const { isDisabled: g, isPreSelected: x } = E(v);
|
|
865
|
+
return g && x || !g;
|
|
863
866
|
});
|
|
864
|
-
return t.selectedValues.forEach((
|
|
865
|
-
|
|
866
|
-
}),
|
|
867
|
-
}),
|
|
867
|
+
return t.selectedValues.forEach((v) => {
|
|
868
|
+
d.find((g) => g.value === v.value) || d.push(v);
|
|
869
|
+
}), d;
|
|
870
|
+
}), S = c(
|
|
868
871
|
() => {
|
|
869
|
-
var
|
|
870
|
-
return (
|
|
871
|
-
var
|
|
872
|
-
return
|
|
873
|
-
(
|
|
874
|
-
).length ===
|
|
872
|
+
var d;
|
|
873
|
+
return (d = p.value) == null ? void 0 : d.filter((v) => {
|
|
874
|
+
var g;
|
|
875
|
+
return v.items && b.value && t.searching ? v.items.filter(
|
|
876
|
+
(y) => (t.selectedValues ?? []).includes(y.value)
|
|
877
|
+
).length === v.items.length : (g = r.value) == null ? void 0 : g.includes(v.value);
|
|
875
878
|
});
|
|
876
879
|
}
|
|
877
|
-
), R = () =>
|
|
878
|
-
var
|
|
879
|
-
const
|
|
880
|
-
return
|
|
881
|
-
}),
|
|
882
|
-
const
|
|
883
|
-
const { isDisabled:
|
|
884
|
-
return
|
|
885
|
-
},
|
|
886
|
-
e(o.SELECT, [...t.selectedValues, ...
|
|
887
|
-
},
|
|
888
|
-
const
|
|
889
|
-
const { isDisabled: N, isPreSelected: fe } =
|
|
880
|
+
), R = () => b.value && !t.searching ? m.value.length : t.items.length, T = c(() => {
|
|
881
|
+
var x;
|
|
882
|
+
const d = p.value.length, v = R(), g = ((x = S.value) == null ? void 0 : x.length) || 0;
|
|
883
|
+
return g === 0 ? l("selectAll", { total: d }) : g === v ? l("allSelected", { total: v }) : g <= v ? l("numberOfTotalSelected", { number: g, total: v }) : l("numbersSelected", { number: g });
|
|
884
|
+
}), B = (d) => {
|
|
885
|
+
const v = (x) => {
|
|
886
|
+
const { isDisabled: y, isPreSelected: N } = E(x);
|
|
887
|
+
return y && N || !y;
|
|
888
|
+
}, g = d.filter(v).filter((x) => !r.value.includes(x.value));
|
|
889
|
+
e(o.SELECT, [...t.selectedValues, ...g]);
|
|
890
|
+
}, u = (d) => {
|
|
891
|
+
const v = (y) => {
|
|
892
|
+
const { isDisabled: N, isPreSelected: fe } = E(y);
|
|
890
893
|
return !(N && fe);
|
|
891
|
-
},
|
|
892
|
-
e(o.SELECT,
|
|
893
|
-
},
|
|
894
|
-
|
|
895
|
-
},
|
|
896
|
-
|
|
897
|
-
}, { isAllSelected:
|
|
898
|
-
|
|
899
|
-
x,
|
|
894
|
+
}, g = d.filter(v).map(({ value: y }) => y), x = t.selectedValues.filter((y) => !(g != null && g.includes(y.value)));
|
|
895
|
+
e(o.SELECT, x);
|
|
896
|
+
}, _ = () => {
|
|
897
|
+
B(m.value);
|
|
898
|
+
}, C = () => {
|
|
899
|
+
u(m.value);
|
|
900
|
+
}, { isAllSelected: L, isIndeterminate: f, toggleSelectAll: h } = le(
|
|
901
|
+
S,
|
|
900
902
|
p,
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
903
|
+
_,
|
|
904
|
+
C
|
|
905
|
+
), A = (d) => {
|
|
906
|
+
B(d.items);
|
|
907
|
+
}, F = (d) => {
|
|
908
|
+
u(d.items);
|
|
909
|
+
}, W = (d, v) => {
|
|
910
|
+
let g = !1;
|
|
911
|
+
const x = t.selectedValues.filter(({ value: y }) => v.value === y ? (g = !0, !1) : !0);
|
|
912
|
+
g || x.push(v), e(d, x);
|
|
913
|
+
}, V = c(() => {
|
|
914
|
+
if (!b.value)
|
|
912
915
|
return t.selectedValues;
|
|
913
|
-
const
|
|
916
|
+
const d = (y) => r.value.includes(y.value), v = (y) => !t.staticCategories && y.every((N) => d(N));
|
|
914
917
|
return t.items.flatMap(
|
|
915
|
-
(
|
|
916
|
-
).filter((
|
|
917
|
-
}), K =
|
|
918
|
-
var
|
|
919
|
-
const
|
|
920
|
-
return
|
|
921
|
-
}),
|
|
918
|
+
(y) => y.items && !v(y.items) ? y.items : y
|
|
919
|
+
).filter((y) => y.items ? !0 : d(y));
|
|
920
|
+
}), K = c(() => {
|
|
921
|
+
var g, x, y, N;
|
|
922
|
+
const d = ["automatic", "button"].includes(t.lazyLoadType), v = ((g = t.selectedValues) == null ? void 0 : g.length) > 0 && ((x = S.value) == null ? void 0 : x.length) !== ((y = m.value) == null ? void 0 : y.length);
|
|
923
|
+
return d && t.hasMoreItems ? !!((N = t.selectedValues) != null && N.length) : v;
|
|
924
|
+
}), I = c(() => ["automatic", "button"].includes(t.lazyLoadType) ? !t.hasMoreItems : !0), U = c(
|
|
922
925
|
() => n.value ? [n.value] : []
|
|
923
|
-
), ae =
|
|
926
|
+
), ae = c(
|
|
924
927
|
() => {
|
|
925
|
-
var
|
|
926
|
-
return (
|
|
928
|
+
var d, v;
|
|
929
|
+
return (v = (d = a.value) == null ? void 0 : d.$children) != null && v.length ? a.value.$children : [];
|
|
927
930
|
}
|
|
928
|
-
), oe =
|
|
931
|
+
), oe = c(
|
|
929
932
|
() => {
|
|
930
|
-
var
|
|
931
|
-
return (
|
|
933
|
+
var d, v;
|
|
934
|
+
return (v = (d = i.value) == null ? void 0 : d.$children) != null && v.length ? i.value.$children : [];
|
|
932
935
|
}
|
|
933
|
-
), ie =
|
|
936
|
+
), ie = c(() => ({ label: T, value: L })), ce = c(() => [
|
|
934
937
|
ie,
|
|
935
|
-
...
|
|
936
|
-
...
|
|
937
|
-
]), re = (
|
|
938
|
+
...V.value,
|
|
939
|
+
...m.value
|
|
940
|
+
]), re = (d) => {
|
|
938
941
|
[
|
|
939
|
-
...
|
|
942
|
+
...U.value,
|
|
940
943
|
...ae.value,
|
|
941
944
|
...oe.value
|
|
942
|
-
][
|
|
945
|
+
][d].$el.focus();
|
|
943
946
|
}, { moveToNextElement: ue, moveToPreviousElement: de, moveToFirstElement: be, moveToLastElement: me } = ne(
|
|
944
947
|
{
|
|
945
|
-
items:
|
|
946
|
-
isOptionDisabled: t.isOptionDisabled
|
|
948
|
+
items: O(ce),
|
|
949
|
+
isOptionDisabled: t.isOptionDisabled,
|
|
950
|
+
hasStaticCategories: G(t, "staticCategories")
|
|
947
951
|
},
|
|
948
952
|
re
|
|
949
953
|
), ve = {
|
|
950
|
-
[k.ARROW_UP]: (
|
|
951
|
-
[k.ARROW_DOWN]: (
|
|
954
|
+
[k.ARROW_UP]: (d) => de(d),
|
|
955
|
+
[k.ARROW_DOWN]: (d) => ue(d),
|
|
952
956
|
[k.HOME]: be,
|
|
953
957
|
[k.END]: me
|
|
954
958
|
};
|
|
@@ -956,24 +960,24 @@ const vt = mt.exports, ft = {
|
|
|
956
960
|
// Refs
|
|
957
961
|
selectAllListboxItemsRef: n,
|
|
958
962
|
selectedListboxItemsRef: a,
|
|
959
|
-
listboxItemsRef:
|
|
963
|
+
listboxItemsRef: i,
|
|
960
964
|
// Values
|
|
961
|
-
isAllSelected:
|
|
965
|
+
isAllSelected: L,
|
|
962
966
|
showSelectedItems: K,
|
|
963
967
|
isIndeterminate: f,
|
|
964
|
-
isMultiLevelSelect:
|
|
965
|
-
flattenedItemsList:
|
|
968
|
+
isMultiLevelSelect: b,
|
|
969
|
+
flattenedItemsList: m,
|
|
966
970
|
selectedItemsList: r,
|
|
967
|
-
selectAllCheckboxText:
|
|
968
|
-
selectedOptions:
|
|
969
|
-
showSelectAllCheckbox:
|
|
971
|
+
selectAllCheckboxText: T,
|
|
972
|
+
selectedOptions: V,
|
|
973
|
+
showSelectAllCheckbox: I,
|
|
970
974
|
slots: s,
|
|
971
975
|
// Enums
|
|
972
976
|
BentoListboxEvent: o,
|
|
973
977
|
// Methods
|
|
974
|
-
selectAllCategory:
|
|
978
|
+
selectAllCategory: A,
|
|
975
979
|
toggleCheckboxSelection: W,
|
|
976
|
-
toggleSelectAll:
|
|
980
|
+
toggleSelectAll: h,
|
|
977
981
|
unselectAllCategory: F,
|
|
978
982
|
// Events
|
|
979
983
|
listboxListeners: ve
|
|
@@ -997,15 +1001,15 @@ var yt = function() {
|
|
|
997
1001
|
return [e._t(n, null, null, a)];
|
|
998
1002
|
} };
|
|
999
1003
|
})], null, !0) })], 1);
|
|
1000
|
-
}, pt = [],
|
|
1004
|
+
}, pt = [], Ct = /* @__PURE__ */ D(
|
|
1001
1005
|
gt,
|
|
1002
1006
|
yt,
|
|
1003
1007
|
pt,
|
|
1004
1008
|
!1,
|
|
1005
1009
|
null,
|
|
1006
|
-
"
|
|
1010
|
+
"38dead9f"
|
|
1007
1011
|
);
|
|
1008
|
-
const ee =
|
|
1012
|
+
const ee = Ct.exports, St = {
|
|
1009
1013
|
"en-US": {
|
|
1010
1014
|
showMore: "Show more",
|
|
1011
1015
|
loading: "Loading"
|
|
@@ -1016,12 +1020,12 @@ const ee = St.exports, Ct = {
|
|
|
1016
1020
|
BentoEmptyState: ye,
|
|
1017
1021
|
BentoListboxSingleSelect: Xe,
|
|
1018
1022
|
BentoListboxMultiSelect: ee,
|
|
1019
|
-
BentoTypography:
|
|
1023
|
+
BentoTypography: w,
|
|
1020
1024
|
BentoLoadingIndicator: ge,
|
|
1021
1025
|
BentoLoadingButton: Ee
|
|
1022
1026
|
},
|
|
1023
1027
|
directives: { BentoKeyboardNavigationDirective: X },
|
|
1024
|
-
i18n: { messages:
|
|
1028
|
+
i18n: { messages: St },
|
|
1025
1029
|
props: {
|
|
1026
1030
|
/**
|
|
1027
1031
|
* Defines a string value that labels an interactive element.
|
|
@@ -1077,8 +1081,8 @@ const ee = St.exports, Ct = {
|
|
|
1077
1081
|
*/
|
|
1078
1082
|
lazyLoadType: {
|
|
1079
1083
|
type: String,
|
|
1080
|
-
default:
|
|
1081
|
-
validator: (t) => Object.values(
|
|
1084
|
+
default: M.NONE,
|
|
1085
|
+
validator: (t) => Object.values(M).includes(t)
|
|
1082
1086
|
},
|
|
1083
1087
|
/**
|
|
1084
1088
|
* If enabled, the user will be able to select multiple items.
|
|
@@ -1126,78 +1130,78 @@ const ee = St.exports, Ct = {
|
|
|
1126
1130
|
o.TAB
|
|
1127
1131
|
],
|
|
1128
1132
|
setup(t, { emit: e, slots: s }) {
|
|
1129
|
-
const l =
|
|
1130
|
-
var
|
|
1131
|
-
return typeof (t == null ? void 0 : t.virtualScroll) == "object" && ((
|
|
1133
|
+
const l = O([]), n = G(t, "items"), { t: a } = Y(), i = c(() => t.lazyLoadType !== M.AUTOMATIC), r = c(() => t.lazyLoadType === M.AUTOMATIC), b = () => {
|
|
1134
|
+
var I;
|
|
1135
|
+
return typeof (t == null ? void 0 : t.virtualScroll) == "object" && ((I = t == null ? void 0 : t.virtualScroll) != null && I.itemHeight) ? t.virtualScroll.itemHeight : ht;
|
|
1132
1136
|
}, {
|
|
1133
|
-
containerRef:
|
|
1134
|
-
containerProps:
|
|
1135
|
-
onScroll:
|
|
1136
|
-
list:
|
|
1137
|
+
containerRef: m,
|
|
1138
|
+
containerProps: E,
|
|
1139
|
+
onScroll: p,
|
|
1140
|
+
list: S,
|
|
1137
1141
|
wrapperProps: R
|
|
1138
1142
|
} = Oe(n, {
|
|
1139
|
-
itemHeight:
|
|
1143
|
+
itemHeight: b(),
|
|
1140
1144
|
// Disable virtual scrolling if not enabled or if lazy loading is enabled or if multi-select
|
|
1141
1145
|
disabled: (t == null ? void 0 : t.multiple) || (t == null ? void 0 : t.virtualScroll) === !1 || (t == null ? void 0 : t.lazyLoadType) !== "none"
|
|
1142
|
-
}),
|
|
1143
|
-
() =>
|
|
1144
|
-
),
|
|
1145
|
-
() =>
|
|
1146
|
-
),
|
|
1147
|
-
() =>
|
|
1148
|
-
),
|
|
1149
|
-
e(
|
|
1150
|
-
},
|
|
1146
|
+
}), T = c(
|
|
1147
|
+
() => i.value ? "true" : void 0
|
|
1148
|
+
), B = c(
|
|
1149
|
+
() => i.value && t.loading ? "true" : "false"
|
|
1150
|
+
), u = c(
|
|
1151
|
+
() => i.value ? "polite" : void 0
|
|
1152
|
+
), _ = (I) => (U) => {
|
|
1153
|
+
e(I, U);
|
|
1154
|
+
}, C = () => {
|
|
1151
1155
|
e(o.SHOW_MORE);
|
|
1152
|
-
},
|
|
1153
|
-
const
|
|
1154
|
-
if (!
|
|
1156
|
+
}, L = pe(() => {
|
|
1157
|
+
const I = m.value;
|
|
1158
|
+
if (!I)
|
|
1155
1159
|
return;
|
|
1156
|
-
const
|
|
1157
|
-
t.hasMoreItems &&
|
|
1160
|
+
const U = Math.round(I.scrollTop) + I.clientHeight >= I.scrollHeight;
|
|
1161
|
+
t.hasMoreItems && U && !t.loading && C();
|
|
1158
1162
|
}), f = () => {
|
|
1159
|
-
r.value ?
|
|
1160
|
-
},
|
|
1161
|
-
var
|
|
1162
|
-
return
|
|
1163
|
-
}),
|
|
1164
|
-
() => t.lazyLoadType ===
|
|
1165
|
-
), F =
|
|
1163
|
+
r.value ? L() : p();
|
|
1164
|
+
}, h = c(() => {
|
|
1165
|
+
var I;
|
|
1166
|
+
return ((I = t.items) == null ? void 0 : I.length) === 0;
|
|
1167
|
+
}), A = c(
|
|
1168
|
+
() => t.lazyLoadType === M.BUTTON && t.hasMoreItems
|
|
1169
|
+
), F = c(
|
|
1166
1170
|
() => t.loading ? J.LOADING : J.START
|
|
1167
|
-
), W =
|
|
1171
|
+
), W = c(() => t.loading ? a("loading") : a("showMore")), V = c(() => ({
|
|
1168
1172
|
...t.emptyState,
|
|
1169
1173
|
variant: "condensed"
|
|
1170
1174
|
})), K = {
|
|
1171
|
-
[o.SELECT]:
|
|
1172
|
-
[o.SPACE]:
|
|
1173
|
-
[o.TAB]:
|
|
1174
|
-
[o.ENTER]:
|
|
1175
|
+
[o.SELECT]: _(o.SELECT),
|
|
1176
|
+
[o.SPACE]: _(o.SPACE),
|
|
1177
|
+
[o.TAB]: _(o.TAB),
|
|
1178
|
+
[o.ENTER]: _(o.ENTER)
|
|
1175
1179
|
};
|
|
1176
1180
|
return {
|
|
1177
1181
|
// Refs
|
|
1178
|
-
listboxRef:
|
|
1182
|
+
listboxRef: m,
|
|
1179
1183
|
listboxItemRef: l,
|
|
1180
1184
|
// a11y
|
|
1181
|
-
ariaAtomic:
|
|
1182
|
-
ariaBusy:
|
|
1183
|
-
ariaLive:
|
|
1185
|
+
ariaAtomic: T,
|
|
1186
|
+
ariaBusy: B,
|
|
1187
|
+
ariaLive: u,
|
|
1184
1188
|
// Values
|
|
1185
|
-
containerProps:
|
|
1186
|
-
isSearchResultEmpty:
|
|
1187
|
-
limitedEmptyStateProps:
|
|
1189
|
+
containerProps: E,
|
|
1190
|
+
isSearchResultEmpty: h,
|
|
1191
|
+
limitedEmptyStateProps: V,
|
|
1188
1192
|
loadingButtonState: F,
|
|
1189
1193
|
slots: s,
|
|
1190
|
-
shouldDisplayShowMoreButton:
|
|
1194
|
+
shouldDisplayShowMoreButton: A,
|
|
1191
1195
|
showMoreButtonText: W,
|
|
1192
|
-
virtualisedItems:
|
|
1196
|
+
virtualisedItems: S,
|
|
1193
1197
|
wrapperProps: R,
|
|
1194
1198
|
// Enums
|
|
1195
1199
|
BentoKeyboardNavigationKeyDownEvent: k,
|
|
1196
1200
|
BentoListboxEvent: o,
|
|
1197
1201
|
// Methods
|
|
1198
1202
|
onListboxContainerScroll: f,
|
|
1199
|
-
onOptionSelected:
|
|
1200
|
-
emitShowMore:
|
|
1203
|
+
onOptionSelected: _,
|
|
1204
|
+
emitShowMore: C,
|
|
1201
1205
|
listboxListeners: K
|
|
1202
1206
|
};
|
|
1203
1207
|
}
|
|
@@ -1221,7 +1225,7 @@ var Et = function() {
|
|
|
1221
1225
|
Lt,
|
|
1222
1226
|
!1,
|
|
1223
1227
|
null,
|
|
1224
|
-
"
|
|
1228
|
+
"23d9e786"
|
|
1225
1229
|
);
|
|
1226
1230
|
const zt = Ot.exports, H = (t, e) => {
|
|
1227
1231
|
for (const s of t) {
|
|
@@ -1232,10 +1236,10 @@ const zt = Ot.exports, H = (t, e) => {
|
|
|
1232
1236
|
}
|
|
1233
1237
|
return null;
|
|
1234
1238
|
}, Vt = (t, e, s) => {
|
|
1235
|
-
const l =
|
|
1236
|
-
n.value = s.value ?
|
|
1237
|
-
},
|
|
1238
|
-
l.value =
|
|
1239
|
+
const l = O([]), n = O(), a = (b) => {
|
|
1240
|
+
n.value = s.value ? b.map(({ value: m }) => m) : b[0].value;
|
|
1241
|
+
}, i = (b) => {
|
|
1242
|
+
l.value = b, a(b);
|
|
1239
1243
|
}, r = () => {
|
|
1240
1244
|
l.value = [], n.value = null;
|
|
1241
1245
|
};
|
|
@@ -1246,18 +1250,18 @@ const zt = Ot.exports, H = (t, e) => {
|
|
|
1246
1250
|
r();
|
|
1247
1251
|
return;
|
|
1248
1252
|
}
|
|
1249
|
-
const
|
|
1253
|
+
const b = !Array.isArray(e.value), m = [...l.value];
|
|
1250
1254
|
r();
|
|
1251
|
-
const
|
|
1252
|
-
let
|
|
1253
|
-
|
|
1255
|
+
const E = (p) => {
|
|
1256
|
+
let S = H(t.value, p);
|
|
1257
|
+
S || (S = H(m, p)), S || (S = p.toString()), l.value.push({ value: p, label: S });
|
|
1254
1258
|
};
|
|
1255
|
-
if (
|
|
1256
|
-
const
|
|
1257
|
-
|
|
1259
|
+
if (b) {
|
|
1260
|
+
const p = e.value;
|
|
1261
|
+
E(p), a(l.value);
|
|
1258
1262
|
return;
|
|
1259
1263
|
}
|
|
1260
|
-
e.value.forEach(
|
|
1264
|
+
e.value.forEach(E), a(l.value);
|
|
1261
1265
|
},
|
|
1262
1266
|
{ immediate: !0 }
|
|
1263
1267
|
), {
|
|
@@ -1266,14 +1270,14 @@ const zt = Ot.exports, H = (t, e) => {
|
|
|
1266
1270
|
cachedListboxSelectedValues: n,
|
|
1267
1271
|
// Methods
|
|
1268
1272
|
resetCache: r,
|
|
1269
|
-
setCachedValues:
|
|
1273
|
+
setCachedValues: i
|
|
1270
1274
|
};
|
|
1271
1275
|
};
|
|
1272
1276
|
export {
|
|
1273
|
-
|
|
1277
|
+
M as B,
|
|
1274
1278
|
o as a,
|
|
1275
1279
|
zt as b,
|
|
1276
1280
|
Vt as c,
|
|
1277
1281
|
_t as u
|
|
1278
1282
|
};
|
|
1279
|
-
//# sourceMappingURL=use-cached-selected-values.
|
|
1283
|
+
//# sourceMappingURL=use-cached-selected-values.DWQ8SMSi.js.map
|