@adyen/bento-vue2 1.83.1 → 1.84.1
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/README.md +5 -5
- package/dist/@types/index.d.ts +56 -5
- 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/ai-button.css +1 -1
- package/dist/assets/alert.css +1 -1
- package/dist/assets/avatar.css +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/button-actions-with-menu.css +1 -1
- package/dist/assets/button-actions.css +1 -1
- package/dist/assets/button.css +1 -1
- package/dist/assets/calendar.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/checkbox-group.css +1 -1
- package/dist/assets/checkbox-input.css +1 -1
- package/dist/assets/checkbox.css +1 -1
- package/dist/assets/chip.css +1 -1
- package/dist/assets/code-snippet.css +1 -1
- package/dist/assets/controls-group.css +1 -1
- package/dist/assets/country.css +1 -1
- package/dist/assets/currency.css +1 -1
- package/dist/assets/dashboard-section.css +1 -1
- package/dist/assets/dashed-underline.css +1 -1
- package/dist/assets/data-grid-template.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/date-picker.css +1 -1
- package/dist/assets/date-range-picker.css +1 -1
- package/dist/assets/date.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/divider.css +1 -1
- package/dist/assets/dropdown-default-textbox.css +1 -1
- package/dist/assets/dropdown-tag.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/empty-state.css +1 -1
- package/dist/assets/field-label.css +1 -1
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/filter-bar.css +1 -1
- package/dist/assets/fixed-scroller.css +1 -1
- package/dist/assets/footer-actions.css +1 -1
- package/dist/assets/form-layout-title.css +1 -1
- package/dist/assets/grid-layout.css +1 -1
- package/dist/assets/header-meta.css +1 -1
- package/dist/assets/header-with-views.css +1 -1
- package/dist/assets/header.css +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/assets/info-icon.css +1 -1
- package/dist/assets/input-field-password.css +1 -1
- package/dist/assets/input-field.css +1 -1
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/layout-row.css +1 -1
- package/dist/assets/link.css +1 -1
- package/dist/assets/listbox-option-tag.css +1 -1
- package/dist/assets/loading-indicator.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/pagination.css +1 -1
- package/dist/assets/payment-method.css +1 -1
- package/dist/assets/popper-container.css +1 -1
- package/dist/assets/promo-banner.css +1 -1
- package/dist/assets/radio-group.css +1 -1
- package/dist/assets/radio-input.css +1 -1
- package/dist/assets/rich-text-editor.css +1 -1
- package/dist/assets/secondary-nav.css +1 -1
- package/dist/assets/segmented-control.css +1 -1
- package/dist/assets/selection-card-group.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/status.css +1 -1
- package/dist/assets/step.css +1 -1
- package/dist/assets/structured-list-item.css +1 -1
- package/dist/assets/summary-grid.css +1 -1
- package/dist/assets/tab.css +1 -1
- package/dist/assets/tag.css +1 -1
- package/dist/assets/textarea.css +1 -1
- package/dist/assets/timeline-item.css +1 -1
- package/dist/assets/toast.css +1 -1
- package/dist/assets/toggle.css +1 -1
- package/dist/assets/tooltip.css +1 -1
- package/dist/assets/tutorial.css +1 -1
- package/dist/assets/use-cached-selected-values.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.C2GnRugW.js → action-bar.y4tcdk7R.js} +8 -6
- package/dist/chunks/{action-bar.C2GnRugW.js.map → action-bar.y4tcdk7R.js.map} +1 -1
- package/dist/chunks/{ai-button.C9Uc6vBY.js → ai-button.BEy4Gly-.js} +2 -2
- package/dist/chunks/{ai-button.C9Uc6vBY.js.map → ai-button.BEy4Gly-.js.map} +1 -1
- package/dist/chunks/{alert.BlJBrD8c.js → alert.B3Pdp02a.js} +29 -21
- package/dist/chunks/{alert.BlJBrD8c.js.map → alert.B3Pdp02a.js.map} +1 -1
- package/dist/chunks/{base-modal.L39wmqVD.js → base-modal.KYkLKswF.js} +20 -18
- package/dist/chunks/{base-modal.L39wmqVD.js.map → base-modal.KYkLKswF.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.CQlsQa_f.js → button-actions-with-menu.B5mKwc-F.js} +2 -2
- package/dist/chunks/{button-actions-with-menu.CQlsQa_f.js.map → button-actions-with-menu.B5mKwc-F.js.map} +1 -1
- package/dist/chunks/{button-actions.BWVq6OZQ.js → button-actions.D9n7MxWe.js} +270 -239
- package/dist/chunks/{button-actions.BWVq6OZQ.js.map → button-actions.D9n7MxWe.js.map} +1 -1
- package/dist/chunks/{button.C5GvPqe5.js → button.DIU6m9wD.js} +2 -2
- package/dist/chunks/{button.C5GvPqe5.js.map → button.DIU6m9wD.js.map} +1 -1
- package/dist/chunks/calendar.C8DpZ4Sr.js +1101 -0
- package/dist/chunks/calendar.C8DpZ4Sr.js.map +1 -0
- package/dist/chunks/{card.CktheSva.js → card.CLX0RGG6.js} +2 -2
- package/dist/chunks/{card.CktheSva.js.map → card.CLX0RGG6.js.map} +1 -1
- package/dist/chunks/{checkbox-group.BUXnMhO8.js → checkbox-group.BCnhjQie.js} +4 -4
- package/dist/chunks/{checkbox-group.BUXnMhO8.js.map → checkbox-group.BCnhjQie.js.map} +1 -1
- package/dist/chunks/{checkbox-input.B0NsfSNR.js → checkbox-input.08E9BNeF.js} +45 -40
- package/dist/chunks/checkbox-input.08E9BNeF.js.map +1 -0
- package/dist/chunks/{checkbox.DgPVHJnT.js → checkbox.CU5ierOq.js} +9 -9
- package/dist/chunks/{checkbox.DgPVHJnT.js.map → checkbox.CU5ierOq.js.map} +1 -1
- package/dist/chunks/{code-snippet.1_edHDaZ.js → code-snippet.9MwDHp50.js} +62 -60
- package/dist/chunks/code-snippet.9MwDHp50.js.map +1 -0
- package/dist/chunks/constructNow.DuaJst0D.js +8 -0
- package/dist/chunks/{constructNow.BhymNmy5.js.map → constructNow.DuaJst0D.js.map} +1 -1
- package/dist/chunks/{controls-group.BqPxnEl3.js → controls-group.D4eW9DtP.js} +2 -2
- package/dist/chunks/{controls-group.BqPxnEl3.js.map → controls-group.D4eW9DtP.js.map} +1 -1
- package/dist/chunks/{copy.I2GvwCvt.js → copy.C0q7xgXs.js} +19 -17
- package/dist/chunks/{copy.I2GvwCvt.js.map → copy.C0q7xgXs.js.map} +1 -1
- package/dist/chunks/{country.BPrh4fXO.js → country.DyrDj95W.js} +2 -2
- package/dist/chunks/{country.BPrh4fXO.js.map → country.DyrDj95W.js.map} +1 -1
- package/dist/chunks/country.types.DaVCMxk-.js +773 -0
- package/dist/chunks/{country.types.C0Q_hhgJ.js.map → country.types.DaVCMxk-.js.map} +1 -1
- package/dist/chunks/{dashboard-section.B4bHrFIl.js → dashboard-section.B83FdC0Z.js} +3 -3
- package/dist/chunks/{dashboard-section.B4bHrFIl.js.map → dashboard-section.B83FdC0Z.js.map} +1 -1
- package/dist/chunks/{dashed-underline.ByK3QxFJ.js → dashed-underline.DQGVy5T2.js} +2 -2
- package/dist/chunks/{dashed-underline.ByK3QxFJ.js.map → dashed-underline.DQGVy5T2.js.map} +1 -1
- package/dist/chunks/{data-grid-template.CvZbOkih.js → data-grid-template.BTEFoEwf.js} +4 -4
- package/dist/chunks/{data-grid-template.CvZbOkih.js.map → data-grid-template.BTEFoEwf.js.map} +1 -1
- package/dist/chunks/{data-grid.CsVqTwy0.js → data-grid.BPG1GPIl.js} +482 -398
- package/dist/chunks/{data-grid.CsVqTwy0.js.map → data-grid.BPG1GPIl.js.map} +1 -1
- package/dist/chunks/date-input.BbZqj10S.js +15 -0
- package/dist/chunks/date-input.BbZqj10S.js.map +1 -0
- package/dist/chunks/{date-picker.-a_TXwjx.js → date-picker.CnsC_UMG.js} +78 -74
- package/dist/chunks/date-picker.CnsC_UMG.js.map +1 -0
- package/dist/chunks/date-range-picker.B6GSRjjK.js +1693 -0
- package/dist/chunks/date-range-picker.B6GSRjjK.js.map +1 -0
- package/dist/chunks/de.DvtL0g75.js +478 -0
- package/dist/chunks/de.DvtL0g75.js.map +1 -0
- package/dist/chunks/{dialog-page.Dn-WbcxU.js → dialog-page.QpRiNPyx.js} +29 -23
- package/dist/chunks/{dialog-page.Dn-WbcxU.js.map → dialog-page.QpRiNPyx.js.map} +1 -1
- package/dist/chunks/differenceInMonths.DcFDl4eH.js +43 -0
- package/dist/chunks/differenceInMonths.DcFDl4eH.js.map +1 -0
- package/dist/chunks/{dropdown-tag.AYIB0ec5.js → dropdown-tag.HBM0wrEV.js} +4 -4
- package/dist/chunks/{dropdown-tag.AYIB0ec5.js.map → dropdown-tag.HBM0wrEV.js.map} +1 -1
- package/dist/chunks/{dropdown.Dt0_ZUBn.js → dropdown.C2pXf8Li.js} +85 -81
- package/dist/chunks/{dropdown.Dt0_ZUBn.js.map → dropdown.C2pXf8Li.js.map} +1 -1
- package/dist/chunks/{empty-state.jVTWhJW7.js → empty-state.DpBnqAxu.js} +2 -2
- package/dist/chunks/{empty-state.jVTWhJW7.js.map → empty-state.DpBnqAxu.js.map} +1 -1
- package/dist/chunks/en-GB.DCGuCmAv.js +46 -0
- package/dist/chunks/en-GB.DCGuCmAv.js.map +1 -0
- package/dist/chunks/{getTimezoneOffsetInMilliseconds.B7sxiukN.js → en-US.BZii9jNW.js} +160 -196
- package/dist/chunks/en-US.BZii9jNW.js.map +1 -0
- package/dist/chunks/es.bz0mzkMq.js +374 -0
- package/dist/chunks/es.bz0mzkMq.js.map +1 -0
- package/dist/chunks/es6.C1DXQV6f.js +12 -0
- package/dist/chunks/es6.C1DXQV6f.js.map +1 -0
- package/dist/chunks/{field-label.BpeaR4Qc.js → field-label.CEkJnsiL.js} +5 -5
- package/dist/chunks/{field-label.BpeaR4Qc.js.map → field-label.CEkJnsiL.js.map} +1 -1
- package/dist/chunks/{file-uploader.G6mr6RuA.js → file-uploader.CnOqfuI-.js} +299 -253
- package/dist/chunks/{file-uploader.G6mr6RuA.js.map → file-uploader.CnOqfuI-.js.map} +1 -1
- package/dist/chunks/filter-bar.CnJAxz9B.js +2559 -0
- package/dist/chunks/filter-bar.CnJAxz9B.js.map +1 -0
- package/dist/chunks/fixed-scroller.Bp4-iO80.js +114 -0
- package/dist/chunks/{fixed-scroller.Ca1ujamx.js.map → fixed-scroller.Bp4-iO80.js.map} +1 -1
- package/dist/chunks/{footer-actions.3JdT8b0p.js → footer-actions.BOiN47Xd.js} +3 -3
- package/dist/chunks/{footer-actions.3JdT8b0p.js.map → footer-actions.BOiN47Xd.js.map} +1 -1
- package/dist/chunks/{form-layout-title.D9GJQfF9.js → form-layout-title.CdC1T4gs.js} +2 -2
- package/dist/chunks/{form-layout-title.D9GJQfF9.js.map → form-layout-title.CdC1T4gs.js.map} +1 -1
- package/dist/chunks/fr-CA.B1aPU8fp.js +48 -0
- package/dist/chunks/fr-CA.B1aPU8fp.js.map +1 -0
- package/dist/chunks/fr.Dj7wEToe.js +47 -0
- package/dist/chunks/fr.Dj7wEToe.js.map +1 -0
- package/dist/chunks/getTimezoneOffsetInMilliseconds.C-aIpRfB.js +51 -0
- package/dist/chunks/getTimezoneOffsetInMilliseconds.C-aIpRfB.js.map +1 -0
- package/dist/chunks/header-meta.D_oAu2S9.js +212 -0
- package/dist/chunks/header-meta.D_oAu2S9.js.map +1 -0
- package/dist/chunks/{header-with-views.lzT3kGpo.js → header-with-views.Dc9LUYNY.js} +379 -315
- package/dist/chunks/{header-with-views.lzT3kGpo.js.map → header-with-views.Dc9LUYNY.js.map} +1 -1
- package/dist/chunks/{header.D76MKCdS.js → header.BmtlQmPs.js} +3 -3
- package/dist/chunks/{header.D76MKCdS.js.map → header.BmtlQmPs.js.map} +1 -1
- package/dist/chunks/{input-field-password.C7zjyp7f.js → input-field-password.D23H_RvO.js} +48 -42
- package/dist/chunks/{input-field-password.C7zjyp7f.js.map → input-field-password.D23H_RvO.js.map} +1 -1
- package/dist/chunks/{input-field-phone-number.DwuTziSU.js → input-field-phone-number.Bvk2Pvec.js} +9 -3
- package/dist/chunks/{input-field-phone-number.DwuTziSU.js.map → input-field-phone-number.Bvk2Pvec.js.map} +1 -1
- package/dist/chunks/{input-field.DsT4AWXC.js → input-field.hf0_ALq0.js} +37 -29
- package/dist/chunks/{input-field.DsT4AWXC.js.map → input-field.hf0_ALq0.js.map} +1 -1
- package/dist/chunks/{inspector.2A5vWUou.js → inspector.C0iAxxoz.js} +40 -34
- package/dist/chunks/{inspector.2A5vWUou.js.map → inspector.C0iAxxoz.js.map} +1 -1
- package/dist/chunks/isSameWeek.CUD7czUN.js +14 -0
- package/dist/chunks/isSameWeek.CUD7czUN.js.map +1 -0
- package/dist/chunks/it.Oaj6BklL.js +392 -0
- package/dist/chunks/it.Oaj6BklL.js.map +1 -0
- package/dist/chunks/ja.Cm9tJMi2.js +367 -0
- package/dist/chunks/ja.Cm9tJMi2.js.map +1 -0
- package/dist/chunks/ko.Ceaof6EP.js +348 -0
- package/dist/chunks/ko.Ceaof6EP.js.map +1 -0
- package/dist/chunks/{link.BoDUCYmM.js → link.PsTSQjK3.js} +27 -21
- package/dist/chunks/{link.BoDUCYmM.js.map → link.PsTSQjK3.js.map} +1 -1
- package/dist/chunks/match.CMBZxEs9.js +302 -0
- package/dist/chunks/match.CMBZxEs9.js.map +1 -0
- package/dist/chunks/{modal-fullscreen.CcvZBUoF.js → modal-fullscreen.B1gltlxA.js} +5 -5
- package/dist/chunks/{modal-fullscreen.CcvZBUoF.js.map → modal-fullscreen.B1gltlxA.js.map} +1 -1
- package/dist/chunks/{modal.6hFEbnZM.js → modal.e3EQ6Kex.js} +5 -5
- package/dist/chunks/{modal.6hFEbnZM.js.map → modal.e3EQ6Kex.js.map} +1 -1
- package/dist/chunks/nl.B6vCf2B9.js +327 -0
- package/dist/chunks/nl.B6vCf2B9.js.map +1 -0
- package/dist/chunks/{pagination.BSyshRGH.js → pagination.BcFt2FqK.js} +6 -6
- package/dist/chunks/{pagination.BSyshRGH.js.map → pagination.BcFt2FqK.js.map} +1 -1
- package/dist/chunks/{promo-banner.D3aG5wnp.js → promo-banner.yfBorKj7.js} +2 -2
- package/dist/chunks/{promo-banner.D3aG5wnp.js.map → promo-banner.yfBorKj7.js.map} +1 -1
- package/dist/chunks/pt-BR.CiGdfP45.js +380 -0
- package/dist/chunks/pt-BR.CiGdfP45.js.map +1 -0
- package/dist/chunks/{radio-group.DTZwsfwW.js → radio-group.CtTnfkYg.js} +3 -3
- package/dist/chunks/{radio-group.DTZwsfwW.js.map → radio-group.CtTnfkYg.js.map} +1 -1
- package/dist/chunks/{rich-text-editor.B0ivi3UG.js → rich-text-editor.Dq2CFGOu.js} +5 -5
- package/dist/chunks/{rich-text-editor.B0ivi3UG.js.map → rich-text-editor.Dq2CFGOu.js.map} +1 -1
- package/dist/chunks/{search-bar.Bpk-PuYT.js → search-bar.B0SdQBnY.js} +3 -3
- package/dist/chunks/{search-bar.Bpk-PuYT.js.map → search-bar.B0SdQBnY.js.map} +1 -1
- package/dist/chunks/{secondary-nav.BGOYJrsB.js → secondary-nav.BPGpxd0p.js} +35 -29
- package/dist/chunks/{secondary-nav.BGOYJrsB.js.map → secondary-nav.BPGpxd0p.js.map} +1 -1
- package/dist/chunks/{selection-card-group.CLqWoLSN.js → selection-card-group.BryV14qP.js} +5 -5
- package/dist/chunks/{selection-card-group.CLqWoLSN.js.map → selection-card-group.BryV14qP.js.map} +1 -1
- package/dist/chunks/{sidepanel.C5SvJNMR.js → sidepanel.NFyZGE57.js} +5 -5
- package/dist/chunks/{sidepanel.C5SvJNMR.js.map → sidepanel.NFyZGE57.js.map} +1 -1
- package/dist/chunks/startOfWeek.Dxw2MhGp.js +10 -0
- package/dist/chunks/startOfWeek.Dxw2MhGp.js.map +1 -0
- package/dist/chunks/step.BLFXvHL6.js +223 -0
- package/dist/chunks/step.BLFXvHL6.js.map +1 -0
- package/dist/chunks/{structured-list-item.CbXDKwsF.js → structured-list-item.CptOCpHP.js} +3 -3
- package/dist/chunks/{structured-list-item.CbXDKwsF.js.map → structured-list-item.CptOCpHP.js.map} +1 -1
- package/dist/chunks/{summary-grid.types.haWi7oaf.js → summary-grid.types.B1T8_k1m.js} +3 -3
- package/dist/chunks/{summary-grid.types.haWi7oaf.js.map → summary-grid.types.B1T8_k1m.js.map} +1 -1
- package/dist/chunks/sv.f8EfZjMZ.js +377 -0
- package/dist/chunks/sv.f8EfZjMZ.js.map +1 -0
- package/dist/chunks/{tab.ZQfGp_FP.js → tab.FUMpPsBP.js} +2 -2
- package/dist/chunks/{tab.ZQfGp_FP.js.map → tab.FUMpPsBP.js.map} +1 -1
- package/dist/chunks/{textarea.DfR2o1lz.js → textarea.riUt0BiI.js} +31 -31
- package/dist/chunks/textarea.riUt0BiI.js.map +1 -0
- package/dist/chunks/{timeline-item.rLqeBsyz.js → timeline-item.CFfW1DoD.js} +16 -15
- package/dist/chunks/{timeline-item.rLqeBsyz.js.map → timeline-item.CFfW1DoD.js.map} +1 -1
- package/dist/chunks/{toast.C7lu_NsX.js → toast.Csv6tMyT.js} +2 -2
- package/dist/chunks/{toast.C7lu_NsX.js.map → toast.Csv6tMyT.js.map} +1 -1
- package/dist/chunks/{tutorial.DA775wec.js → tutorial.D18LwXVy.js} +2 -2
- package/dist/chunks/{tutorial.DA775wec.js.map → tutorial.D18LwXVy.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.DIKJ8yNE.js → use-cached-selected-values.gDWGi5Nk.js} +240 -231
- package/dist/chunks/{use-cached-selected-values.DIKJ8yNE.js.map → use-cached-selected-values.gDWGi5Nk.js.map} +1 -1
- package/dist/chunks/{use-country-items.B3Cd3Tdo.js → use-country-items.ClS_So5N.js} +2 -2
- package/dist/chunks/{use-country-items.B3Cd3Tdo.js.map → use-country-items.ClS_So5N.js.map} +1 -1
- package/dist/chunks/zh-CN.BzH0fIXr.js +389 -0
- package/dist/chunks/zh-CN.BzH0fIXr.js.map +1 -0
- package/dist/code-snippet.js +1 -1
- package/dist/country.js +2 -2
- 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/form-layout.js +1 -1
- package/dist/header-with-views.js +1 -1
- package/dist/header.js +1 -1
- package/dist/index.js +250 -251
- package/dist/index.js.map +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 +10 -10
- 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/popover.js +1 -1
- package/dist/promo-banner.js +1 -1
- package/dist/radio-group.js +1 -1
- package/dist/rich-text-editor.js +1 -1
- package/dist/search-bar.js +2 -2
- package/dist/secondary-nav.js +1 -1
- package/dist/selection-card.js +1 -1
- package/dist/sidepanel.js +1 -1
- package/dist/stepper.js +1 -1
- package/dist/structured-list.js +1 -1
- package/dist/styles/bento-dark.css +0 -1829
- package/dist/styles/bento-light.css +0 -1829
- package/dist/styles/bento.css +0 -1829
- package/dist/styles/legacy.css +0 -1829
- package/dist/styles/styleguide.css +0 -1829
- package/dist/summary-grid.js +1 -1
- package/dist/tabs.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 +119 -2
- package/package.json +14 -25
- package/dist/chunks/calendar.DCLyThOl.js +0 -1832
- package/dist/chunks/calendar.DCLyThOl.js.map +0 -1
- package/dist/chunks/checkbox-input.B0NsfSNR.js.map +0 -1
- package/dist/chunks/code-snippet.1_edHDaZ.js.map +0 -1
- package/dist/chunks/constructNow.BhymNmy5.js +0 -8
- package/dist/chunks/country.types.C0Q_hhgJ.js +0 -269
- package/dist/chunks/date-format.B8RU7D42.js +0 -17
- package/dist/chunks/date-format.B8RU7D42.js.map +0 -1
- package/dist/chunks/date-picker.-a_TXwjx.js.map +0 -1
- package/dist/chunks/date-range-picker.Bw1yPTu-.js +0 -906
- package/dist/chunks/date-range-picker.Bw1yPTu-.js.map +0 -1
- package/dist/chunks/differenceInMonths.Cab3nOsb.js +0 -1590
- package/dist/chunks/differenceInMonths.Cab3nOsb.js.map +0 -1
- package/dist/chunks/es6.MoTTyETW.js +0 -12
- package/dist/chunks/es6.MoTTyETW.js.map +0 -1
- package/dist/chunks/filter-bar.DNA9QblV.js +0 -2472
- package/dist/chunks/filter-bar.DNA9QblV.js.map +0 -1
- package/dist/chunks/fixed-scroller.Ca1ujamx.js +0 -106
- package/dist/chunks/getTimezoneOffsetInMilliseconds.B7sxiukN.js.map +0 -1
- package/dist/chunks/header-meta.C8_W0j_p.js +0 -170
- package/dist/chunks/header-meta.C8_W0j_p.js.map +0 -1
- package/dist/chunks/step.mqn8E6dm.js +0 -217
- package/dist/chunks/step.mqn8E6dm.js.map +0 -1
- package/dist/chunks/textarea.DfR2o1lz.js.map +0 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { computed as
|
|
1
|
+
import { computed as o, ref as S, onMounted as Me, onUnmounted as we, watch as J, defineComponent as G, nextTick as ge, toRef as H, useSlots as Ge, useAttrs as Pe } from "vue";
|
|
2
2
|
import { B as $, a as se } from "./keyboard-navigation.DWmhelVv.js";
|
|
3
3
|
import { B as j } from "./typography.Bq-EGj9y.js";
|
|
4
4
|
import { B as Fe } from "./loading-indicator.PxbRzshH.js";
|
|
5
|
-
import { B as Ye } from "./empty-state.
|
|
5
|
+
import { B as Ye } from "./empty-state.DpBnqAxu.js";
|
|
6
6
|
import { u as le } from "./index.B6WW_F-J.js";
|
|
7
7
|
import { d as Ue } from "./debounce.DUTu11PS.js";
|
|
8
8
|
import "./index.Cl4_42j5.js";
|
|
9
|
-
import { C as
|
|
9
|
+
import { C as X, N as ze } from "./minus-small.DJacLGTw.js";
|
|
10
10
|
import { C as Ve } from "./checkmark-small.DVDtD4HQ.js";
|
|
11
11
|
/* empty css */
|
|
12
12
|
import { n as M } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
|
|
@@ -14,31 +14,31 @@ import { B as We } from "./chip.C6DRfdJ8.js";
|
|
|
14
14
|
import { C as Ke } from "./chevron-down.eYtgv5ly.js";
|
|
15
15
|
import { C as je } from "./chevron-up.d8cwIlA_.js";
|
|
16
16
|
import { g as be } from "./generate-uid.NJ8tVoha.js";
|
|
17
|
-
import { a as qe, b as fe } from "./button-actions.
|
|
17
|
+
import { a as qe, b as fe } from "./button-actions.D9n7MxWe.js";
|
|
18
18
|
import { o as He } from "./resize.Bqks3WUm.js";
|
|
19
19
|
import "../assets/use-cached-selected-values.css";
|
|
20
20
|
const pe = (s, e, l, t) => {
|
|
21
|
-
const
|
|
21
|
+
const a = o(
|
|
22
22
|
() => {
|
|
23
23
|
var f, L;
|
|
24
24
|
return !!((f = s.value) != null && f.length) && ((L = s.value) == null ? void 0 : L.length) === e.value.length;
|
|
25
25
|
}
|
|
26
|
-
),
|
|
26
|
+
), n = o(() => {
|
|
27
27
|
var f;
|
|
28
28
|
return s.value == null || s.value.length === 0 ? !1 : ((f = s.value) == null ? void 0 : f.length) !== e.value.length;
|
|
29
29
|
});
|
|
30
30
|
return {
|
|
31
|
-
isAllSelected:
|
|
32
|
-
isIndeterminate:
|
|
31
|
+
isAllSelected: a,
|
|
32
|
+
isIndeterminate: n,
|
|
33
33
|
toggleSelectAll: (f) => {
|
|
34
34
|
f ? l() : t();
|
|
35
35
|
}
|
|
36
36
|
};
|
|
37
37
|
};
|
|
38
|
-
function
|
|
39
|
-
const
|
|
38
|
+
function Je(s, { disabled: e, itemHeight: l, overscan: t = 5, prefixHeight: a }) {
|
|
39
|
+
const n = S(null), r = S([]), f = S(0), L = S(0), d = S(0);
|
|
40
40
|
let b;
|
|
41
|
-
const T =
|
|
41
|
+
const T = o(() => {
|
|
42
42
|
const I = typeof l == "number" ? s.value.length * l : s.value.reduce((C, m, y) => C + l(y), 0), O = typeof l == "number" ? f.value * l : s.value.slice(0, f.value).reduce((C, m, y) => C + l(y), 0);
|
|
43
43
|
return {
|
|
44
44
|
style: {
|
|
@@ -47,20 +47,20 @@ function Xe(s, { disabled: e, itemHeight: l, overscan: t = 5, prefixHeight: n })
|
|
|
47
47
|
}
|
|
48
48
|
};
|
|
49
49
|
}), g = () => {
|
|
50
|
-
const I = (
|
|
50
|
+
const I = (a == null ? void 0 : a.value) ?? 0, O = Math.max(n.value.scrollTop - I, 0);
|
|
51
51
|
if (typeof l == "number")
|
|
52
52
|
return Math.floor(O / l);
|
|
53
53
|
let C = 0, m = 0;
|
|
54
54
|
for (let y = 0; y < s.value.length; y += 1) {
|
|
55
|
-
const
|
|
56
|
-
if (C +=
|
|
55
|
+
const D = l(y);
|
|
56
|
+
if (C += D, C >= O) {
|
|
57
57
|
m = y;
|
|
58
58
|
break;
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
return m;
|
|
62
62
|
}, p = () => {
|
|
63
|
-
if (d.value =
|
|
63
|
+
if (d.value = n.value.clientHeight, typeof l == "number")
|
|
64
64
|
return Math.ceil(d.value / l);
|
|
65
65
|
const I = f.value ?? 0;
|
|
66
66
|
let O = 0, C = 0;
|
|
@@ -71,46 +71,46 @@ function Xe(s, { disabled: e, itemHeight: l, overscan: t = 5, prefixHeight: n })
|
|
|
71
71
|
}
|
|
72
72
|
return C - I;
|
|
73
73
|
}, x = () => {
|
|
74
|
-
if (
|
|
74
|
+
if (n.value) {
|
|
75
75
|
const I = p();
|
|
76
76
|
f.value = g(), L.value = Math.min(f.value + I + t, s.value.length), r.value = s.value.slice(f.value, L.value);
|
|
77
77
|
}
|
|
78
|
-
},
|
|
78
|
+
}, R = () => {
|
|
79
79
|
x();
|
|
80
80
|
};
|
|
81
81
|
e || (Me(() => {
|
|
82
|
-
|
|
82
|
+
n.value && (d.value = n.value.clientHeight, b = He(n.value, ({ clientHeight: I }) => {
|
|
83
83
|
d.value = I, x();
|
|
84
84
|
}), x());
|
|
85
85
|
}), we(() => {
|
|
86
86
|
b == null || b.disconnect();
|
|
87
|
-
}),
|
|
87
|
+
}), J(
|
|
88
88
|
() => s.value,
|
|
89
89
|
() => {
|
|
90
90
|
x();
|
|
91
91
|
}
|
|
92
92
|
));
|
|
93
93
|
const B = {
|
|
94
|
-
ref:
|
|
94
|
+
ref: n,
|
|
95
95
|
style: { overflowY: "auto" }
|
|
96
96
|
};
|
|
97
97
|
return e ? {
|
|
98
|
-
containerRef:
|
|
98
|
+
containerRef: n,
|
|
99
99
|
containerProps: B,
|
|
100
100
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
101
101
|
onScroll: () => {
|
|
102
102
|
},
|
|
103
103
|
list: s
|
|
104
104
|
} : {
|
|
105
|
-
containerRef:
|
|
105
|
+
containerRef: n,
|
|
106
106
|
containerProps: B,
|
|
107
|
-
onScroll:
|
|
107
|
+
onScroll: R,
|
|
108
108
|
list: r,
|
|
109
109
|
wrapperProps: T
|
|
110
110
|
};
|
|
111
111
|
}
|
|
112
112
|
var c = /* @__PURE__ */ ((s) => (s.SELECT = "select", s.SHOW_MORE = "show-more", s.ESCAPE = "escape-pressed", s.CLICK = "click", s.ENTER = "enter-pressed", s.SPACE = "space-pressed", s.TAB = "tab-pressed", s.CLOSE_DROPDOWN = "close-dropdown", s))(c || {}), K = /* @__PURE__ */ ((s) => (s.AUTOMATIC = "automatic", s.BUTTON = "button", s.NONE = "none", s))(K || {});
|
|
113
|
-
const
|
|
113
|
+
const Xe = G({
|
|
114
114
|
name: "bento-listbox-static-category",
|
|
115
115
|
components: {
|
|
116
116
|
BentoTypography: j
|
|
@@ -125,12 +125,12 @@ const Ze = G({
|
|
|
125
125
|
}
|
|
126
126
|
}
|
|
127
127
|
});
|
|
128
|
-
var
|
|
128
|
+
var Ze = function() {
|
|
129
129
|
var e = this, l = e._self._c;
|
|
130
130
|
return e._self._setupProxy, l("div", { staticClass: "b-listbox-single-select-category", attrs: { role: "group", "aria-label": e.categoryLabel } }, [l("bento-typography", { staticClass: "b-listbox-single-select-category__label-text", attrs: { variant: "caption", el: "span", "aria-hidden": "true" } }, [e._v(" " + e._s(e.categoryLabel) + " ")]), l("div", [e._t("default")], 2)], 1);
|
|
131
131
|
}, Qe = [], et = /* @__PURE__ */ M(
|
|
132
|
+
Xe,
|
|
132
133
|
Ze,
|
|
133
|
-
Je,
|
|
134
134
|
Qe,
|
|
135
135
|
!1,
|
|
136
136
|
null,
|
|
@@ -150,7 +150,7 @@ const tt = et.exports, st = G({
|
|
|
150
150
|
},
|
|
151
151
|
emits: [c.CLICK, c.ENTER, c.SPACE, c.TAB],
|
|
152
152
|
setup(s, { emit: e }) {
|
|
153
|
-
const l =
|
|
153
|
+
const l = o(() => ({
|
|
154
154
|
"b-listbox-option--disabled": s.disabled,
|
|
155
155
|
"b-listbox-option--selected": s.selected
|
|
156
156
|
}));
|
|
@@ -161,11 +161,11 @@ const tt = et.exports, st = G({
|
|
|
161
161
|
// Values
|
|
162
162
|
conditionalClasses: l,
|
|
163
163
|
// Events
|
|
164
|
-
onClick: (
|
|
165
|
-
e(c.CLICK,
|
|
164
|
+
onClick: (n) => {
|
|
165
|
+
e(c.CLICK, n);
|
|
166
166
|
},
|
|
167
|
-
onOptionSelected: (
|
|
168
|
-
e(
|
|
167
|
+
onOptionSelected: (n, r) => {
|
|
168
|
+
e(n, r);
|
|
169
169
|
}
|
|
170
170
|
};
|
|
171
171
|
}
|
|
@@ -179,27 +179,27 @@ var lt = function() {
|
|
|
179
179
|
}, function(t) {
|
|
180
180
|
return !t.type.indexOf("key") && e._k(t.keyCode, "tab", 9, t.key, "Tab") ? null : e.onOptionSelected(e.BentoListboxEvent.TAB, t);
|
|
181
181
|
}] } }, "div", e.$attrs, !1), [e._t("default")], 2);
|
|
182
|
-
},
|
|
182
|
+
}, at = [], nt = /* @__PURE__ */ M(
|
|
183
183
|
st,
|
|
184
184
|
lt,
|
|
185
|
-
|
|
185
|
+
at,
|
|
186
186
|
!1,
|
|
187
187
|
null,
|
|
188
188
|
"c345b6c0"
|
|
189
189
|
);
|
|
190
|
-
const
|
|
190
|
+
const Z = nt.exports;
|
|
191
191
|
let ve = 0;
|
|
192
|
-
const
|
|
192
|
+
const ot = {
|
|
193
193
|
beforeCreate() {
|
|
194
194
|
this.uuid = ve.toString(), ve += 1;
|
|
195
195
|
}
|
|
196
196
|
};
|
|
197
|
-
var
|
|
197
|
+
var it = function() {
|
|
198
198
|
var e = this, l = e._self._c;
|
|
199
199
|
return l("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"] ? l("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), l("path", { attrs: { fill: "#001222", d: "M15.0608 4.00011L14.0001 2.93945L6.00011 10.9395L2.00011 6.93945L0.939453 8.00011L6.00011 13.0608L15.0608 4.00011Z" } })]);
|
|
200
200
|
}, ct = [], rt = /* @__PURE__ */ M(
|
|
201
|
-
it,
|
|
202
201
|
ot,
|
|
202
|
+
it,
|
|
203
203
|
ct,
|
|
204
204
|
!1,
|
|
205
205
|
null,
|
|
@@ -208,7 +208,7 @@ var ot = function() {
|
|
|
208
208
|
const ut = rt.exports, dt = G({
|
|
209
209
|
name: "bento-listbox-single-select-option",
|
|
210
210
|
components: {
|
|
211
|
-
BentoListboxOption:
|
|
211
|
+
BentoListboxOption: Z,
|
|
212
212
|
BentoTypography: j,
|
|
213
213
|
CheckmarkIcon: ut
|
|
214
214
|
},
|
|
@@ -234,12 +234,12 @@ const ut = rt.exports, dt = G({
|
|
|
234
234
|
setup(s, { emit: e }) {
|
|
235
235
|
const l = (r) => {
|
|
236
236
|
s.disabled || e(r, s.option);
|
|
237
|
-
}, t =
|
|
237
|
+
}, t = o(() => s.disabled ? !0 : null), a = o(() => s.selected ? !0 : null), n = o(() => s.disabled ? -1 : 0);
|
|
238
238
|
return {
|
|
239
239
|
// Values
|
|
240
240
|
ariaDisabled: t,
|
|
241
|
-
ariaSelected:
|
|
242
|
-
tabIndex:
|
|
241
|
+
ariaSelected: a,
|
|
242
|
+
tabIndex: n,
|
|
243
243
|
// Enums
|
|
244
244
|
BentoListboxEvent: c,
|
|
245
245
|
// Events
|
|
@@ -269,7 +269,7 @@ var bt = function() {
|
|
|
269
269
|
"bb14d75a"
|
|
270
270
|
);
|
|
271
271
|
const mt = vt.exports, ye = ({ items: s }, e) => {
|
|
272
|
-
const l =
|
|
272
|
+
const l = o(() => s.value.length - 1), t = S(0), a = (g) => {
|
|
273
273
|
switch (g) {
|
|
274
274
|
case "increase":
|
|
275
275
|
t.value += 1;
|
|
@@ -278,10 +278,10 @@ const mt = vt.exports, ye = ({ items: s }, e) => {
|
|
|
278
278
|
t.value -= 1;
|
|
279
279
|
break;
|
|
280
280
|
}
|
|
281
|
-
},
|
|
282
|
-
t.value !== g && (
|
|
281
|
+
}, n = ({ edgeCaseItem: g }, p) => {
|
|
282
|
+
t.value !== g && (a(p), e(t.value));
|
|
283
283
|
}, r = (g) => {
|
|
284
|
-
T(g),
|
|
284
|
+
T(g), n(
|
|
285
285
|
{
|
|
286
286
|
edgeCaseItem: l.value
|
|
287
287
|
},
|
|
@@ -289,7 +289,7 @@ const mt = vt.exports, ye = ({ items: s }, e) => {
|
|
|
289
289
|
/* INCREASE */
|
|
290
290
|
);
|
|
291
291
|
}, f = (g) => {
|
|
292
|
-
T(g),
|
|
292
|
+
T(g), n(
|
|
293
293
|
{
|
|
294
294
|
edgeCaseItem: 0
|
|
295
295
|
},
|
|
@@ -316,23 +316,23 @@ const mt = vt.exports, ye = ({ items: s }, e) => {
|
|
|
316
316
|
focusedIndex: t
|
|
317
317
|
};
|
|
318
318
|
}, he = (s, e, l = S("option"), t = !0) => {
|
|
319
|
-
const
|
|
319
|
+
const a = S([]), n = async () => {
|
|
320
320
|
if (!s.value || s.value.nodeType === Node.COMMENT_NODE)
|
|
321
321
|
return;
|
|
322
322
|
const r = Array.from(s.value.querySelectorAll(`[role="${l.value}"]`));
|
|
323
|
-
|
|
323
|
+
a.value = t ? r.filter((f) => f.checkVisibility()) : r;
|
|
324
324
|
};
|
|
325
|
-
return
|
|
325
|
+
return J(
|
|
326
326
|
e,
|
|
327
327
|
() => {
|
|
328
328
|
ge(() => {
|
|
329
|
-
|
|
329
|
+
n();
|
|
330
330
|
});
|
|
331
331
|
},
|
|
332
332
|
{ immediate: !0 }
|
|
333
333
|
), {
|
|
334
|
-
visibleDomOptions:
|
|
335
|
-
updateVisibleDomOptions:
|
|
334
|
+
visibleDomOptions: a,
|
|
335
|
+
updateVisibleDomOptions: n
|
|
336
336
|
};
|
|
337
337
|
}, _t = G({
|
|
338
338
|
name: "bento-listbox-single-select",
|
|
@@ -382,29 +382,29 @@ const mt = vt.exports, ye = ({ items: s }, e) => {
|
|
|
382
382
|
staticCategories: { type: Boolean, default: !1 }
|
|
383
383
|
},
|
|
384
384
|
emits: [c.SELECT, c.ENTER, c.SPACE, c.TAB],
|
|
385
|
-
setup(s, { emit: e, expose: l, slots: t, attrs:
|
|
386
|
-
const
|
|
385
|
+
setup(s, { emit: e, expose: l, slots: t, attrs: a }) {
|
|
386
|
+
const n = S(null), r = S([]), f = o(() => {
|
|
387
387
|
var m;
|
|
388
388
|
return !!((m = s.selectedValue) != null && m.length) && s.selectedValue.at(0);
|
|
389
|
-
}), L =
|
|
389
|
+
}), L = o(
|
|
390
390
|
() => {
|
|
391
|
-
var m, y,
|
|
391
|
+
var m, y, D, P;
|
|
392
392
|
return {
|
|
393
|
-
"aria-label": (m =
|
|
394
|
-
"aria-busy": (y =
|
|
395
|
-
"aria-atomic": (
|
|
396
|
-
"aria-live": (P =
|
|
393
|
+
"aria-label": (m = a["aria-label"]) == null ? void 0 : m.toString(),
|
|
394
|
+
"aria-busy": (y = a["aria-busy"]) == null ? void 0 : y.toString(),
|
|
395
|
+
"aria-atomic": (D = a["aria-atomic"]) == null ? void 0 : D.toString(),
|
|
396
|
+
"aria-live": (P = a["aria-live"]) == null ? void 0 : P.toString()
|
|
397
397
|
};
|
|
398
398
|
}
|
|
399
|
-
), d =
|
|
399
|
+
), d = o(() => !!s.items.some(({ items: m }) => !!m)), b = (m) => (y) => {
|
|
400
400
|
e(m, [y]);
|
|
401
|
-
}, { visibleDomOptions: T } = he(
|
|
401
|
+
}, { visibleDomOptions: T } = he(n, H(s, "items"), S("option"), !1), g = (m) => {
|
|
402
402
|
var y;
|
|
403
403
|
(y = T.value[m]) == null || y.focus();
|
|
404
404
|
}, {
|
|
405
405
|
moveToNextElement: p,
|
|
406
406
|
moveToPreviousElement: x,
|
|
407
|
-
moveToFirstElement:
|
|
407
|
+
moveToFirstElement: R,
|
|
408
408
|
moveToLastElement: B,
|
|
409
409
|
setListboxFocusedIndex: I
|
|
410
410
|
} = ye(
|
|
@@ -415,7 +415,7 @@ const mt = vt.exports, ye = ({ items: s }, e) => {
|
|
|
415
415
|
), O = {
|
|
416
416
|
[$.ARROW_UP]: x,
|
|
417
417
|
[$.ARROW_DOWN]: p,
|
|
418
|
-
[$.HOME]:
|
|
418
|
+
[$.HOME]: R,
|
|
419
419
|
[$.END]: B
|
|
420
420
|
}, C = {
|
|
421
421
|
[c.SELECT]: b(c.SELECT),
|
|
@@ -438,7 +438,7 @@ const mt = vt.exports, ye = ({ items: s }, e) => {
|
|
|
438
438
|
// Enums
|
|
439
439
|
BentoListboxEvent: c,
|
|
440
440
|
// Values
|
|
441
|
-
listboxRef:
|
|
441
|
+
listboxRef: n,
|
|
442
442
|
listboxItemRef: r,
|
|
443
443
|
selectedItem: f,
|
|
444
444
|
slots: t,
|
|
@@ -456,17 +456,17 @@ const mt = vt.exports, ye = ({ items: s }, e) => {
|
|
|
456
456
|
var gt = function() {
|
|
457
457
|
var e = this, l = e._self._c;
|
|
458
458
|
return e._self._setupProxy, l("div", e._g(e._b({ directives: [{ name: "bento-keyboard-navigation-directive", rawName: "v-bento-keyboard-navigation-directive" }], ref: "listboxRef", attrs: { role: "listbox" } }, "div", e.ariaAttributes, !1), e.listboxListeners), [e.hasCategories && e.staticCategories ? e._l(e.items, function(t) {
|
|
459
|
-
return l("bento-listbox-single-select-category", { key: t.value, attrs: { "category-label": t.label } }, e._l(t.items, function(
|
|
460
|
-
return l("bento-listbox-single-select-option", e._g({ key:
|
|
459
|
+
return l("bento-listbox-single-select-category", { key: t.value, attrs: { "category-label": t.label } }, e._l(t.items, function(a) {
|
|
460
|
+
return l("bento-listbox-single-select-option", e._g({ key: a.value, ref: "listboxItemRef", refInFor: !0, attrs: { role: "option", option: a, disabled: e.isOptionDisabled ? e.isOptionDisabled(a) : null, selected: a.value === e.selectedItem.value }, scopedSlots: e._u([e._l(e.slots, function(n, r) {
|
|
461
461
|
return { key: r, fn: function(f) {
|
|
462
462
|
return [e._t(r, null, null, f)];
|
|
463
463
|
} };
|
|
464
464
|
})], null, !0) }, e.listboxOptionListeners));
|
|
465
465
|
}), 1);
|
|
466
466
|
}) : e._l(e.items, function(t) {
|
|
467
|
-
return l("bento-listbox-single-select-option", e._g({ key: t.value, ref: "listboxItemRef", refInFor: !0, attrs: { role: "option", option: t, disabled: e.isOptionDisabled ? e.isOptionDisabled(t) : null, selected: t.value === e.selectedItem.value }, scopedSlots: e._u([e._l(e.slots, function(
|
|
468
|
-
return { key:
|
|
469
|
-
return [e._t(
|
|
467
|
+
return l("bento-listbox-single-select-option", e._g({ key: t.value, ref: "listboxItemRef", refInFor: !0, attrs: { role: "option", option: t, disabled: e.isOptionDisabled ? e.isOptionDisabled(t) : null, selected: t.value === e.selectedItem.value }, scopedSlots: e._u([e._l(e.slots, function(a, n) {
|
|
468
|
+
return { key: n, fn: function(r) {
|
|
469
|
+
return [e._t(n, null, null, r)];
|
|
470
470
|
} };
|
|
471
471
|
})], null, !0) }, e.listboxOptionListeners));
|
|
472
472
|
})], 2);
|
|
@@ -506,12 +506,12 @@ const Et = Ot.exports, Tt = {}, It = /* @__PURE__ */ G({
|
|
|
506
506
|
allSelected: { type: Boolean, default: !1 }
|
|
507
507
|
},
|
|
508
508
|
setup(s) {
|
|
509
|
-
const e = s, l =
|
|
510
|
-
[`b-checkbox-input--${
|
|
511
|
-
})), t =
|
|
512
|
-
[`b-checkbox-input__outline--${
|
|
513
|
-
[`b-checkbox-input__outline--${
|
|
514
|
-
[`b-checkbox-input__outline--${
|
|
509
|
+
const e = s, l = o(() => ({
|
|
510
|
+
[`b-checkbox-input--${X.DISABLED}`]: e.disabled
|
|
511
|
+
})), t = o(() => ({
|
|
512
|
+
[`b-checkbox-input__outline--${X.UNCHECKED}`]: !e.checked && !e.indeterminate && !e.allSelected,
|
|
513
|
+
[`b-checkbox-input__outline--${X.CHECKED}`]: (e.checked || e.allSelected) && !e.indeterminate,
|
|
514
|
+
[`b-checkbox-input__outline--${X.INDETERMINATE}`]: e.indeterminate
|
|
515
515
|
}));
|
|
516
516
|
return { __sfc: !0, props: e, conditionalClasses: l, outlineConditionalClasses: t, CheckmarkSmallIcon: Ve, MinusSmallIcon: ze, DoubleCheckmarkSmallIcon: Et };
|
|
517
517
|
}
|
|
@@ -527,22 +527,30 @@ var Lt = function() {
|
|
|
527
527
|
null,
|
|
528
528
|
"b87bbaf9"
|
|
529
529
|
);
|
|
530
|
-
const
|
|
530
|
+
const ae = kt.exports;
|
|
531
531
|
var Ce = /* @__PURE__ */ ((s) => (s.DISABLED = "disabled", s.STATIC_CATEGORY = "static-category", s))(Ce || {}), z = /* @__PURE__ */ ((s) => (s.SELECT_CATEGORY = "select-category", s.UNSELECT_CATEGORY = "unselect-category", s.TOGGLE_CATEGORY_VISIBILITY = "toggle-category-visibility", s))(z || {});
|
|
532
|
-
const
|
|
532
|
+
const Rt = {
|
|
533
533
|
"en-US": {
|
|
534
534
|
categoryClosed: "{category} closed",
|
|
535
535
|
categoryOpened: "{category} opened"
|
|
536
|
+
},
|
|
537
|
+
"ja-JP": {
|
|
538
|
+
categoryClosed: "{category}を閉じました",
|
|
539
|
+
categoryOpened: "{category}を開きました"
|
|
540
|
+
},
|
|
541
|
+
"pt-BR": {
|
|
542
|
+
categoryClosed: "{category} fechado",
|
|
543
|
+
categoryOpened: "{categoria} aberta"
|
|
536
544
|
}
|
|
537
|
-
},
|
|
538
|
-
i18n: { messages:
|
|
545
|
+
}, Dt = G({
|
|
546
|
+
i18n: { messages: Rt },
|
|
539
547
|
name: "bento-listbox-multi-select-category",
|
|
540
548
|
components: {
|
|
541
549
|
BentoTypography: j,
|
|
542
|
-
BentoListboxOption:
|
|
550
|
+
BentoListboxOption: Z,
|
|
543
551
|
ChevronDownIcon: Ke,
|
|
544
552
|
ChevronUpIcon: je,
|
|
545
|
-
DecorativeCheckbox:
|
|
553
|
+
DecorativeCheckbox: ae
|
|
546
554
|
},
|
|
547
555
|
props: {
|
|
548
556
|
/**
|
|
@@ -593,9 +601,9 @@ const Dt = {
|
|
|
593
601
|
z.TOGGLE_CATEGORY_VISIBILITY
|
|
594
602
|
],
|
|
595
603
|
setup(s, { emit: e }) {
|
|
596
|
-
const l = S(!1), { t } = le(),
|
|
604
|
+
const l = S(!1), { t } = le(), a = be("category-group"), n = be("category-name"), r = (E) => s.isOptionDisabled ? s.isOptionDisabled(E) : !1, f = o(
|
|
597
605
|
() => s.category.items.every((E) => r(E))
|
|
598
|
-
), L = H(s, "staticCategories"), d =
|
|
606
|
+
), L = H(s, "staticCategories"), d = o(() => l.value || s.staticCategories), b = o(() => ({
|
|
599
607
|
[`b-listbox-multi-select-category--${Ce.DISABLED}`]: f.value
|
|
600
608
|
})), T = (E, A) => {
|
|
601
609
|
E.preventDefault(), l.value = A !== void 0 ? A : !l.value, e(z.TOGGLE_CATEGORY_VISIBILITY, s.category.value);
|
|
@@ -603,12 +611,12 @@ const Dt = {
|
|
|
603
611
|
var Y;
|
|
604
612
|
const A = r(E), N = ((Y = s.selectedItemsList) == null ? void 0 : Y.includes(E.value)) || !1;
|
|
605
613
|
return { isDisabled: A, isPreSelected: N };
|
|
606
|
-
}, p =
|
|
614
|
+
}, p = o(
|
|
607
615
|
() => s.category.items.filter((E) => {
|
|
608
616
|
const { isDisabled: A, isPreSelected: N } = g(E);
|
|
609
617
|
return A && N || !A;
|
|
610
618
|
})
|
|
611
|
-
), x =
|
|
619
|
+
), x = o(
|
|
612
620
|
() => {
|
|
613
621
|
var E;
|
|
614
622
|
return (E = p.value) == null ? void 0 : E.filter(
|
|
@@ -618,7 +626,7 @@ const Dt = {
|
|
|
618
626
|
}
|
|
619
627
|
);
|
|
620
628
|
}
|
|
621
|
-
),
|
|
629
|
+
), R = o(() => {
|
|
622
630
|
const E = l.value ? "categoryOpened" : "categoryClosed";
|
|
623
631
|
return t(E, { category: s.category.label });
|
|
624
632
|
}), B = () => {
|
|
@@ -630,22 +638,22 @@ const Dt = {
|
|
|
630
638
|
p,
|
|
631
639
|
B,
|
|
632
640
|
I
|
|
633
|
-
), y =
|
|
634
|
-
|
|
641
|
+
), y = o(() => C.value ? "mixed" : `${O.value}`), D = S(O.value), P = () => {
|
|
642
|
+
D.value = !D.value, m(D.value);
|
|
635
643
|
};
|
|
636
|
-
return
|
|
637
|
-
|
|
644
|
+
return J(O, () => {
|
|
645
|
+
D.value = O.value;
|
|
638
646
|
}), {
|
|
639
647
|
// Values
|
|
640
|
-
chevronTitle:
|
|
648
|
+
chevronTitle: R,
|
|
641
649
|
conditionalClass: b,
|
|
642
650
|
hasAllPropsDisabled: f,
|
|
643
651
|
isOpen: l,
|
|
644
652
|
isAllSelected: O,
|
|
645
653
|
isIndeterminate: C,
|
|
646
654
|
isStaticCategory: L,
|
|
647
|
-
categoryGroupId:
|
|
648
|
-
categoryNameId:
|
|
655
|
+
categoryGroupId: a,
|
|
656
|
+
categoryNameId: n,
|
|
649
657
|
// Computed
|
|
650
658
|
showItemChildren: d,
|
|
651
659
|
ariaCheckedComputed: y,
|
|
@@ -668,7 +676,7 @@ var Bt = function() {
|
|
|
668
676
|
return t.stopPropagation(), e.toggleOpen.apply(null, arguments);
|
|
669
677
|
} } }, [e.isOpen ? l("chevron-up-icon", { attrs: { "svg-title": e.chevronTitle } }) : l("chevron-down-icon", { attrs: { "svg-title": e.chevronTitle } })], 1)], 1)], 1), l("div", { directives: [{ name: "show", rawName: "v-show", value: e.showItemChildren, expression: "showItemChildren" }], attrs: { id: e.categoryGroupId, role: "group", "aria-label": e.category.label } }, [e._t("default")], 2)], 1);
|
|
670
678
|
}, $t = [], Nt = /* @__PURE__ */ M(
|
|
671
|
-
|
|
679
|
+
Dt,
|
|
672
680
|
Bt,
|
|
673
681
|
$t,
|
|
674
682
|
!1,
|
|
@@ -680,10 +688,10 @@ var w = /* @__PURE__ */ ((s) => (s.SELECT_CATEGORY = "select-category", s.TOGGLE
|
|
|
680
688
|
const wt = G({
|
|
681
689
|
name: "listbox-multi-select-options",
|
|
682
690
|
components: {
|
|
683
|
-
BentoListboxOption:
|
|
691
|
+
BentoListboxOption: Z,
|
|
684
692
|
BentoTypography: j,
|
|
685
693
|
ListboxMultiSelectCategory: Mt,
|
|
686
|
-
DecorativeCheckbox:
|
|
694
|
+
DecorativeCheckbox: ae
|
|
687
695
|
},
|
|
688
696
|
inheritAttrs: !1,
|
|
689
697
|
props: {
|
|
@@ -761,25 +769,25 @@ const wt = G({
|
|
|
761
769
|
setup(s, { emit: e }) {
|
|
762
770
|
const l = (d) => {
|
|
763
771
|
s.isOptionDisabled(d) || e(w.TOGGLE_CHECKBOX_SELECTION, d);
|
|
764
|
-
}, t = (d) => !!d.items,
|
|
772
|
+
}, t = (d) => !!d.items, a = (d) => {
|
|
765
773
|
const b = s.isMultiLevel && s.searching;
|
|
766
774
|
return d.description && (!s.isMultiLevel || b);
|
|
767
|
-
},
|
|
775
|
+
}, n = (d) => d.items ? !!d.items.find((b) => s.selectedItemsList.includes(b.value)) : s.selectedItemsList.includes(d.value), r = (d) => {
|
|
768
776
|
if (t(d)) {
|
|
769
|
-
const b =
|
|
777
|
+
const b = n(d) ? w.UNSELECT_CATEGORY : w.SELECT_CATEGORY;
|
|
770
778
|
e(b, d);
|
|
771
779
|
} else
|
|
772
780
|
l(d);
|
|
773
781
|
};
|
|
774
782
|
return {
|
|
775
783
|
// Values
|
|
776
|
-
conditionalClasses:
|
|
784
|
+
conditionalClasses: o(() => ({
|
|
777
785
|
"b-listbox-multi-select-options__static-category-option": s.staticCategories,
|
|
778
786
|
"b-listbox-multi-select-options__category-option": s.categoryItems
|
|
779
787
|
})),
|
|
780
788
|
// Methods
|
|
781
|
-
isOptionSelected:
|
|
782
|
-
shouldShowDescription:
|
|
789
|
+
isOptionSelected: n,
|
|
790
|
+
shouldShowDescription: a,
|
|
783
791
|
toggleCheckboxSelection: l,
|
|
784
792
|
toggleSearchOption: r,
|
|
785
793
|
computedTabindex: (d) => s.itemsIndex[d] === s.focusedIndex ? 0 : -1,
|
|
@@ -792,26 +800,26 @@ const wt = G({
|
|
|
792
800
|
var Gt = function() {
|
|
793
801
|
var e = this, l = e._self._c;
|
|
794
802
|
return e._self._setupProxy, l("div", e._l(e.items, function(t) {
|
|
795
|
-
return l("div", { key: `selected-${t.value}` }, [e.searching && e.isMultiLevel ? [l("bento-listbox-option", { staticClass: "b-listbox-multi-select-options", class: e.conditionalClasses, attrs: { disabled: e.isOptionDisabled ? e.isOptionDisabled(t) : null, tabindex: e.computedTabindex(t.value), "aria-selected": `${e.isOptionSelected(t)}`, "aria-checked": `${e.isOptionSelected(t)}`, "aria-disabled": e.isOptionDisabled ? e.isOptionDisabled(t) : null, role: e.$attrs.role }, on: { click: function(
|
|
803
|
+
return l("div", { key: `selected-${t.value}` }, [e.searching && e.isMultiLevel ? [l("bento-listbox-option", { staticClass: "b-listbox-multi-select-options", class: e.conditionalClasses, attrs: { disabled: e.isOptionDisabled ? e.isOptionDisabled(t) : null, tabindex: e.computedTabindex(t.value), "aria-selected": `${e.isOptionSelected(t)}`, "aria-checked": `${e.isOptionSelected(t)}`, "aria-disabled": e.isOptionDisabled ? e.isOptionDisabled(t) : null, role: e.$attrs.role }, on: { click: function(a) {
|
|
796
804
|
return e.toggleSearchOption(t);
|
|
797
|
-
}, "enter-pressed": function(
|
|
805
|
+
}, "enter-pressed": function(a) {
|
|
798
806
|
return e.toggleSearchOption(t);
|
|
799
|
-
}, "space-pressed": function(
|
|
800
|
-
return
|
|
807
|
+
}, "space-pressed": function(a) {
|
|
808
|
+
return a.preventDefault(), e.toggleSearchOption(t);
|
|
801
809
|
} } }, [l("decorative-checkbox", { attrs: { disabled: e.isOptionDisabled ? e.isOptionDisabled(t) : null, checked: e.isOptionSelected(t) } }), e._t("default", function() {
|
|
802
810
|
return [l("span", { staticClass: "b-listbox-multi-select__option-text" }, [l("bento-typography", { attrs: { el: "span" } }, [e._v(e._s(t.label))]), e.shouldShowDescription(t) ? l("bento-typography", { staticClass: "b-listbox-multi-select__option-description", attrs: { el: "span" } }, [e._v(" " + e._s(t.description) + " ")]) : e._e()], 1)];
|
|
803
|
-
}, null, t)], 2)] : [t.items ? [l("listbox-multi-select-category", { attrs: { category: t, "static-categories": e.staticCategories, "is-option-disabled": e.isOptionDisabled, "selected-items-list": e.selectedItemsList, tabindex: e.computedTabindex(t.value) }, on: { "select-category": function(
|
|
811
|
+
}, null, t)], 2)] : [t.items ? [l("listbox-multi-select-category", { attrs: { category: t, "static-categories": e.staticCategories, "is-option-disabled": e.isOptionDisabled, "selected-items-list": e.selectedItemsList, tabindex: e.computedTabindex(t.value) }, on: { "select-category": function(a) {
|
|
804
812
|
return e.$emit(e.ListboxMultiSelectOptionsEvent.SELECT_CATEGORY, t);
|
|
805
|
-
}, "unselect-category": function(
|
|
813
|
+
}, "unselect-category": function(a) {
|
|
806
814
|
return e.$emit(e.ListboxMultiSelectOptionsEvent.UNSELECT_CATEGORY, t);
|
|
807
|
-
}, "toggle-category-visibility": function(
|
|
808
|
-
return e.$emit(e.ListboxMultiSelectOptionsEvent.TOGGLE_CATEGORY_VISIBILITY,
|
|
809
|
-
} } }, [l("listbox-multi-select-options", { attrs: { "category-items": "", items: t.items, "is-option-disabled": e.isOptionDisabled, "items-index": e.itemsIndex, "focused-index": e.focusedIndex, "is-multi-level": e.isMultiLevel, "static-categories": e.staticCategories, "selected-items-list": e.selectedItemsList, searching: e.searching, role: e.$attrs.role }, on: { "toggle-checkbox-selection": (
|
|
815
|
+
}, "toggle-category-visibility": function(a) {
|
|
816
|
+
return e.$emit(e.ListboxMultiSelectOptionsEvent.TOGGLE_CATEGORY_VISIBILITY, a);
|
|
817
|
+
} } }, [l("listbox-multi-select-options", { attrs: { "category-items": "", items: t.items, "is-option-disabled": e.isOptionDisabled, "items-index": e.itemsIndex, "focused-index": e.focusedIndex, "is-multi-level": e.isMultiLevel, "static-categories": e.staticCategories, "selected-items-list": e.selectedItemsList, searching: e.searching, role: e.$attrs.role }, on: { "toggle-checkbox-selection": (a) => e.toggleCheckboxSelection(a) } })], 1)] : l("bento-listbox-option", { staticClass: "b-listbox-multi-select-options", class: e.conditionalClasses, attrs: { disabled: e.isOptionDisabled ? e.isOptionDisabled(t) : null, tabindex: e.computedTabindex(t.value), "aria-selected": `${e.isOptionSelected(t)}`, "aria-checked": `${e.isOptionSelected(t)}`, "aria-disabled": e.isOptionDisabled ? e.isOptionDisabled(t) : null, role: e.$attrs.role }, on: { click: function(a) {
|
|
810
818
|
return e.toggleCheckboxSelection(t);
|
|
811
|
-
}, "enter-pressed": function(
|
|
819
|
+
}, "enter-pressed": function(a) {
|
|
812
820
|
return e.toggleCheckboxSelection(t);
|
|
813
|
-
}, "space-pressed": function(
|
|
814
|
-
return
|
|
821
|
+
}, "space-pressed": function(a) {
|
|
822
|
+
return a.preventDefault(), e.toggleCheckboxSelection(t);
|
|
815
823
|
} } }, [l("decorative-checkbox", { attrs: { disabled: e.isOptionDisabled ? e.isOptionDisabled(t) : null, checked: e.isOptionSelected(t) } }), e._t("default", function() {
|
|
816
824
|
return [l("span", { staticClass: "b-listbox-multi-select__option-text" }, [l("bento-typography", { attrs: { el: "span" } }, [e._v(e._s(t.label))]), e.shouldShowDescription(t) ? l("bento-typography", { staticClass: "b-listbox-multi-select__option-description", attrs: { el: "span" } }, [e._v(" " + e._s(t.description) + " ")]) : e._e()], 1)];
|
|
817
825
|
}, null, t)], 2)]], 2);
|
|
@@ -825,12 +833,12 @@ var Gt = function() {
|
|
|
825
833
|
"68986632"
|
|
826
834
|
);
|
|
827
835
|
const Yt = Ft.exports, Ut = (s) => {
|
|
828
|
-
const e =
|
|
836
|
+
const e = o(() => {
|
|
829
837
|
var t;
|
|
830
|
-
return !!((t = s.value) != null && t.find(({ items:
|
|
831
|
-
}), l =
|
|
838
|
+
return !!((t = s.value) != null && t.find(({ items: a }) => !!a));
|
|
839
|
+
}), l = o(() => {
|
|
832
840
|
var t;
|
|
833
|
-
return e.value ? (t = s.value) == null ? void 0 : t.reduce((
|
|
841
|
+
return e.value ? (t = s.value) == null ? void 0 : t.reduce((a, n) => (n.items ? a.push(...n.items.flat()) : a.push(n), a), []) : s.value;
|
|
834
842
|
});
|
|
835
843
|
return {
|
|
836
844
|
isMultiLevelSelect: e,
|
|
@@ -844,16 +852,16 @@ const Yt = Ft.exports, Ut = (s) => {
|
|
|
844
852
|
selectAll: "Select all ({total})"
|
|
845
853
|
},
|
|
846
854
|
"ja-JP": {
|
|
847
|
-
allSelected: "
|
|
848
|
-
numberOfTotalSelected: "{
|
|
849
|
-
numbersSelected: "{number}
|
|
855
|
+
allSelected: "すべて選択 ({total})",
|
|
856
|
+
numberOfTotalSelected: "{number}/{total}件が選択されました",
|
|
857
|
+
numbersSelected: "{number}件選択済み",
|
|
850
858
|
selectAll: "すべて選択 ({total})"
|
|
851
859
|
},
|
|
852
860
|
"pt-BR": {
|
|
853
|
-
allSelected: "Todos selecionados ({total})",
|
|
861
|
+
allSelected: "Todos os selecionados ({total})",
|
|
854
862
|
numberOfTotalSelected: "{number} de {total} selecionados",
|
|
855
863
|
numbersSelected: "{number} selecionados",
|
|
856
|
-
selectAll: "Selecionar
|
|
864
|
+
selectAll: "Selecionar tudo ({total})"
|
|
857
865
|
}
|
|
858
866
|
}, Vt = { i18n: { messages: zt } }, Wt = /* @__PURE__ */ G({
|
|
859
867
|
...Vt,
|
|
@@ -869,118 +877,118 @@ const Yt = Ft.exports, Ut = (s) => {
|
|
|
869
877
|
},
|
|
870
878
|
emits: ["select"],
|
|
871
879
|
setup(s, { expose: e, emit: l }) {
|
|
872
|
-
const t = s, { t:
|
|
880
|
+
const t = s, { t: a, n } = le(), r = Ge(), f = Pe(), L = o(
|
|
873
881
|
() => {
|
|
874
|
-
var
|
|
882
|
+
var i, u, v, h;
|
|
875
883
|
return {
|
|
876
|
-
"aria-label": (
|
|
884
|
+
"aria-label": (i = f["aria-label"]) == null ? void 0 : i.toString(),
|
|
877
885
|
"aria-busy": (u = f["aria-busy"]) == null ? void 0 : u.toString(),
|
|
878
886
|
"aria-atomic": (v = f["aria-atomic"]) == null ? void 0 : v.toString(),
|
|
879
887
|
"aria-live": (h = f["aria-live"]) == null ? void 0 : h.toString(),
|
|
880
888
|
"aria-multiselectable": !0
|
|
881
889
|
};
|
|
882
890
|
}
|
|
883
|
-
), d = S(null), b = S(null), T = S(null), g = S(null), p =
|
|
891
|
+
), d = S(null), b = S(null), T = S(null), g = S(null), p = o(() => t.selectedValues.map(({ value: i }) => i)), { isMultiLevelSelect: x, flattenedItemsList: R } = Ut(H(t, "items")), B = o(() => x.value && !t.staticCategories), I = o(() => B.value ? "tree" : "listbox"), O = o(() => B.value ? "treeitem" : "option"), C = (i) => {
|
|
884
892
|
var h;
|
|
885
|
-
const u = t.isOptionDisabled(
|
|
893
|
+
const u = t.isOptionDisabled(i), v = ((h = p.value) == null ? void 0 : h.includes(i.value)) || !1;
|
|
886
894
|
return { isDisabled: u, isPreSelected: v };
|
|
887
|
-
}, m =
|
|
895
|
+
}, m = o(() => {
|
|
888
896
|
if (t.searching && x)
|
|
889
897
|
return t.items;
|
|
890
|
-
const
|
|
898
|
+
const i = R.value.filter((u) => {
|
|
891
899
|
const { isDisabled: v, isPreSelected: h } = C(u);
|
|
892
900
|
return v && h || !v;
|
|
893
901
|
});
|
|
894
902
|
return t.selectedValues.forEach((u) => {
|
|
895
|
-
|
|
896
|
-
}),
|
|
897
|
-
}), y =
|
|
903
|
+
i.find((v) => v.value === u.value) || i.push(u);
|
|
904
|
+
}), i;
|
|
905
|
+
}), y = o(
|
|
898
906
|
() => {
|
|
899
|
-
var
|
|
900
|
-
return (
|
|
907
|
+
var i;
|
|
908
|
+
return (i = m.value) == null ? void 0 : i.filter((u) => {
|
|
901
909
|
var v;
|
|
902
910
|
return u.items && x.value && t.searching ? u.items.filter(
|
|
903
911
|
(_) => (t.selectedValues ?? []).includes(_.value)
|
|
904
912
|
).length === u.items.length : (v = p.value) == null ? void 0 : v.includes(u.value);
|
|
905
913
|
});
|
|
906
914
|
}
|
|
907
|
-
),
|
|
915
|
+
), D = () => x.value && !t.searching ? R.value.length : t.items.length, P = o(() => {
|
|
908
916
|
var h;
|
|
909
|
-
const
|
|
910
|
-
return v === 0 ?
|
|
911
|
-
}), E = (
|
|
917
|
+
const i = m.value.length, u = D(), v = ((h = y.value) == null ? void 0 : h.length) || 0;
|
|
918
|
+
return v === 0 ? a("selectAll", { total: n(i) }) : v === u ? a("allSelected", { total: n(u) }) : v <= u ? a("numberOfTotalSelected", { number: n(v), total: n(u) }) : a("numbersSelected", { number: n(v) });
|
|
919
|
+
}), E = (i) => {
|
|
912
920
|
const u = (h) => {
|
|
913
921
|
const { isDisabled: _, isPreSelected: F } = C(h);
|
|
914
922
|
return _ && F || !_;
|
|
915
|
-
}, v =
|
|
923
|
+
}, v = i.filter(u).filter((h) => !p.value.includes(h.value));
|
|
916
924
|
l("select", [...t.selectedValues, ...v]);
|
|
917
|
-
}, A = (
|
|
925
|
+
}, A = (i) => {
|
|
918
926
|
const u = (_) => {
|
|
919
927
|
const { isDisabled: F, isPreSelected: Ne } = C(_);
|
|
920
928
|
return !(F && Ne);
|
|
921
|
-
}, v =
|
|
929
|
+
}, v = i.filter(u).map(({ value: _ }) => _), h = t.selectedValues.filter((_) => !(v != null && v.includes(_.value)));
|
|
922
930
|
l("select", h);
|
|
923
931
|
}, N = () => {
|
|
924
|
-
E(
|
|
932
|
+
E(R.value);
|
|
925
933
|
}, Y = () => {
|
|
926
|
-
A(
|
|
934
|
+
A(R.value);
|
|
927
935
|
}, { isAllSelected: U, isIndeterminate: k, toggleSelectAll: V } = pe(
|
|
928
936
|
y,
|
|
929
937
|
m,
|
|
930
938
|
N,
|
|
931
939
|
Y
|
|
932
|
-
), xe =
|
|
940
|
+
), xe = o(() => k.value ? "mixed" : `${U.value}`), q = S(U.value), Se = () => {
|
|
933
941
|
q.value = !q.value, V(q.value);
|
|
934
942
|
};
|
|
935
|
-
|
|
943
|
+
J(U, () => {
|
|
936
944
|
q.value = U.value;
|
|
937
945
|
});
|
|
938
|
-
const Oe = (
|
|
939
|
-
E(
|
|
940
|
-
}, Ee = (
|
|
941
|
-
A(
|
|
942
|
-
}, Te = (
|
|
946
|
+
const Oe = (i) => {
|
|
947
|
+
E(i.items);
|
|
948
|
+
}, Ee = (i) => {
|
|
949
|
+
A(i.items);
|
|
950
|
+
}, Te = (i, u) => {
|
|
943
951
|
let v = !1;
|
|
944
952
|
const h = t.selectedValues.filter(({ value: _ }) => u.value === _ ? (v = !0, !1) : !0);
|
|
945
|
-
v || h.push(u), l(
|
|
946
|
-
}, Ie =
|
|
953
|
+
v || h.push(u), l(i, h);
|
|
954
|
+
}, Ie = o(() => {
|
|
947
955
|
if (!x.value)
|
|
948
956
|
return t.selectedValues;
|
|
949
|
-
const
|
|
957
|
+
const i = (_) => p.value.includes(_.value), u = (_) => !t.staticCategories && _.every((F) => i(F));
|
|
950
958
|
return t.items.flatMap(
|
|
951
959
|
(_) => _.items && !u(_.items) ? _.items : _
|
|
952
|
-
).filter((_) => _.items ? !0 :
|
|
953
|
-
}), Le =
|
|
960
|
+
).filter((_) => _.items ? !0 : i(_));
|
|
961
|
+
}), Le = o(() => {
|
|
954
962
|
var v, h, _, F;
|
|
955
|
-
const
|
|
956
|
-
return
|
|
957
|
-
}), Ae =
|
|
963
|
+
const i = ["automatic", "button"].includes(t.lazyLoadType), u = ((v = t.selectedValues) == null ? void 0 : v.length) > 0 && ((h = y.value) == null ? void 0 : h.length) !== ((_ = R.value) == null ? void 0 : _.length);
|
|
964
|
+
return i && t.hasMoreItems ? !!((F = t.selectedValues) != null && F.length) : u;
|
|
965
|
+
}), Ae = o(() => ["automatic", "button"].includes(t.lazyLoadType) ? !t.hasMoreItems : !0), W = S([]), { visibleDomOptions: Q, updateVisibleDomOptions: ne } = he(
|
|
958
966
|
d,
|
|
959
967
|
H(t, "items"),
|
|
960
968
|
O
|
|
961
|
-
), ke = (
|
|
962
|
-
W.value.includes(
|
|
963
|
-
|
|
969
|
+
), ke = (i) => {
|
|
970
|
+
W.value.includes(i) ? W.value = W.value.filter((u) => u !== i) : W.value.push(i), ge(() => {
|
|
971
|
+
ne();
|
|
964
972
|
});
|
|
965
|
-
},
|
|
973
|
+
}, oe = (i) => {
|
|
966
974
|
var u;
|
|
967
|
-
(u = Q.value[
|
|
975
|
+
(u = Q.value[i]) == null || u.focus();
|
|
968
976
|
}, {
|
|
969
|
-
moveToNextElement:
|
|
977
|
+
moveToNextElement: ie,
|
|
970
978
|
moveToPreviousElement: ce,
|
|
971
979
|
moveToFirstElement: re,
|
|
972
980
|
moveToLastElement: ue,
|
|
973
981
|
preventDefault: ee,
|
|
974
|
-
focusedIndex:
|
|
982
|
+
focusedIndex: Re,
|
|
975
983
|
setListboxFocusedIndex: de
|
|
976
984
|
} = ye(
|
|
977
985
|
{
|
|
978
986
|
items: Q
|
|
979
987
|
},
|
|
980
|
-
|
|
981
|
-
),
|
|
982
|
-
[$.ARROW_UP]: (
|
|
983
|
-
[$.ARROW_DOWN]: (
|
|
988
|
+
oe
|
|
989
|
+
), De = {
|
|
990
|
+
[$.ARROW_UP]: (i) => ce(i),
|
|
991
|
+
[$.ARROW_DOWN]: (i) => ie(i),
|
|
984
992
|
[$.HOME]: re,
|
|
985
993
|
[$.END]: ue
|
|
986
994
|
};
|
|
@@ -994,36 +1002,36 @@ const Yt = Ft.exports, Ut = (s) => {
|
|
|
994
1002
|
const Be = {
|
|
995
1003
|
[$.ARROW_UP]: ee,
|
|
996
1004
|
[$.ARROW_DOWN]: ee
|
|
997
|
-
}, $e =
|
|
998
|
-
let
|
|
1005
|
+
}, $e = o(() => {
|
|
1006
|
+
let i = 1;
|
|
999
1007
|
const u = {};
|
|
1000
1008
|
return t.items.forEach((v) => {
|
|
1001
1009
|
let h = W.value.includes(v.value);
|
|
1002
|
-
v.items ? (t.staticCategories ? h = !0 : u[v.value] =
|
|
1010
|
+
v.items ? (t.staticCategories ? h = !0 : u[v.value] = i++, h && v.items.forEach((_) => u[_.value] = i++)) : u[v.value] = i++;
|
|
1003
1011
|
}), u;
|
|
1004
1012
|
});
|
|
1005
|
-
return { __sfc: !0, props: t, emit: l, t:
|
|
1013
|
+
return { __sfc: !0, props: t, emit: l, t: a, n, slots: r, attrs: f, ariaAttributes: L, listboxRef: d, selectAllListboxItemsRef: b, selectedListboxItemsRef: T, listboxItemsRef: g, selectedItemsList: p, isMultiLevelSelect: x, flattenedItemsList: R, isTreePattern: B, computedRole: I, computedOptionRole: O, optionStates: C, enabledItems: m, visibleSelectedList: y, calculateTotalItems: D, selectAllCheckboxText: P, selectAll: E, unselectAll: A, selectAllItems: N, unselectAllItems: Y, isAllSelected: U, isIndeterminate: k, toggleSelectAll: V, ariaCheckedComputed: xe, isSelectAllOn: q, handleSelectAll: Se, selectAllCategory: Oe, unselectAllCategory: Ee, toggleCheckboxSelection: Te, selectedOptions: Ie, showSelectedItems: Le, showSelectAllCheckbox: Ae, expandedCategories: W, visibleDomOptions: Q, updateVisibleDomOptions: ne, toggleCategoryVisibility: ke, focusItem: oe, moveToNextElement: ie, moveToPreviousElement: ce, moveToFirstElement: re, moveToLastElement: ue, preventDefault: ee, focusedIndex: Re, setListboxFocusedIndex: de, listboxListeners: De, chipsSectionListeners: Be, computedItemsIndex: $e, DecorativeCheckbox: ae, BentoTypography: j, BentoChip: We, BentoListboxOption: Z, ListboxMultiSelectOptions: Yt, vBentoKeyboardNavigationDirective: se, BentoListboxEvent: c };
|
|
1006
1014
|
}
|
|
1007
1015
|
});
|
|
1008
1016
|
var Kt = function() {
|
|
1009
1017
|
var e = this, l = e._self._c, t = e._self._setupProxy;
|
|
1010
|
-
return l("div", { ref: "listboxRef", staticClass: "b-listbox-multi-select" }, [t.showSelectedItems ? l("div", [l("ul", e._g({ directives: [{ name: "bento-keyboard-navigation-directive", rawName: "v-bento-keyboard-navigation-directive" }], staticClass: "b-listbox-multi-select__chips" }, t.chipsSectionListeners), e._l(t.selectedOptions, function(
|
|
1011
|
-
return l("li", { key:
|
|
1012
|
-
|
|
1018
|
+
return l("div", { ref: "listboxRef", staticClass: "b-listbox-multi-select" }, [t.showSelectedItems ? l("div", [l("ul", e._g({ directives: [{ name: "bento-keyboard-navigation-directive", rawName: "v-bento-keyboard-navigation-directive" }], staticClass: "b-listbox-multi-select__chips" }, t.chipsSectionListeners), e._l(t.selectedOptions, function(a) {
|
|
1019
|
+
return l("li", { key: a.value }, [l(t.BentoChip, { ref: "selectedListboxItemsRef", refInFor: !0, attrs: { disabled: e.isOptionDisabled(a), label: a.label, condensed: "" }, on: { click: function(n) {
|
|
1020
|
+
a.items ? t.unselectAllCategory(a) : t.toggleCheckboxSelection("select", a);
|
|
1013
1021
|
} } })], 1);
|
|
1014
|
-
}), 0), l("hr", { staticClass: "b-listbox-multi-select__divider", attrs: { "aria-hidden": "true" } })]) : e._e(), l("div", e._g(e._b({ directives: [{ name: "bento-keyboard-navigation-directive", rawName: "v-bento-keyboard-navigation-directive" }], attrs: { role: t.computedRole } }, "div", t.ariaAttributes, !1), t.listboxListeners), [t.showSelectAllCheckbox ? l(t.BentoListboxOption, { ref: "selectAllListboxItemsRef", staticClass: "b-listbox-multi-select__option", attrs: { tabindex: t.focusedIndex === 0 ? 0 : -1, "aria-selected": t.ariaCheckedComputed !== "false", "aria-checked": t.ariaCheckedComputed, role: t.computedOptionRole }, on: { click: t.handleSelectAll, "enter-pressed": t.handleSelectAll, "space-pressed": function(
|
|
1015
|
-
return
|
|
1016
|
-
} } }, [l(t.DecorativeCheckbox, { attrs: { checked: t.isAllSelected, indeterminate: t.isIndeterminate } }), l(t.BentoTypography, { attrs: { el: "span" } }, [e._v(" " + e._s(t.selectAllCheckboxText) + " ")])], 1) : e._e(), t.showSelectAllCheckbox ? l("hr", { staticClass: "b-listbox-multi-select__divider", attrs: { "aria-hidden": "true" } }) : e._e(), l(t.ListboxMultiSelectOptions, { ref: "listboxItemsRef", attrs: { items: e.items, "is-option-disabled": e.isOptionDisabled, "is-multi-level": t.isMultiLevelSelect, "static-categories": e.staticCategories, searching: e.searching, "selected-items-list": t.selectedItemsList, "focused-index": t.focusedIndex, "items-index": t.computedItemsIndex, role: t.computedOptionRole }, on: { "toggle-checkbox-selection": function(
|
|
1017
|
-
return t.toggleCheckboxSelection("select",
|
|
1018
|
-
}, "select-category": t.selectAllCategory, "unselect-category": t.unselectAllCategory, "toggle-category-visibility": t.toggleCategoryVisibility, "space-pressed": function(
|
|
1019
|
-
return t.toggleCheckboxSelection(t.BentoListboxEvent.SPACE,
|
|
1020
|
-
}, "tab-pressed": function(
|
|
1021
|
-
return t.toggleCheckboxSelection(t.BentoListboxEvent.TAB,
|
|
1022
|
-
}, "enter-pressed": function(
|
|
1023
|
-
return t.toggleCheckboxSelection(t.BentoListboxEvent.ENTER,
|
|
1024
|
-
} }, scopedSlots: e._u([e._l(t.slots, function(
|
|
1025
|
-
return { key:
|
|
1026
|
-
return [e._t(
|
|
1022
|
+
}), 0), l("hr", { staticClass: "b-listbox-multi-select__divider", attrs: { "aria-hidden": "true" } })]) : e._e(), l("div", e._g(e._b({ directives: [{ name: "bento-keyboard-navigation-directive", rawName: "v-bento-keyboard-navigation-directive" }], attrs: { role: t.computedRole } }, "div", t.ariaAttributes, !1), t.listboxListeners), [t.showSelectAllCheckbox ? l(t.BentoListboxOption, { ref: "selectAllListboxItemsRef", staticClass: "b-listbox-multi-select__option", attrs: { tabindex: t.focusedIndex === 0 ? 0 : -1, "aria-selected": t.ariaCheckedComputed !== "false", "aria-checked": t.ariaCheckedComputed, role: t.computedOptionRole }, on: { click: t.handleSelectAll, "enter-pressed": t.handleSelectAll, "space-pressed": function(a) {
|
|
1023
|
+
return a.preventDefault(), t.handleSelectAll.apply(null, arguments);
|
|
1024
|
+
} } }, [l(t.DecorativeCheckbox, { attrs: { checked: t.isAllSelected, indeterminate: t.isIndeterminate } }), l(t.BentoTypography, { attrs: { el: "span" } }, [e._v(" " + e._s(t.selectAllCheckboxText) + " ")])], 1) : e._e(), t.showSelectAllCheckbox ? l("hr", { staticClass: "b-listbox-multi-select__divider", attrs: { "aria-hidden": "true" } }) : e._e(), l(t.ListboxMultiSelectOptions, { ref: "listboxItemsRef", attrs: { items: e.items, "is-option-disabled": e.isOptionDisabled, "is-multi-level": t.isMultiLevelSelect, "static-categories": e.staticCategories, searching: e.searching, "selected-items-list": t.selectedItemsList, "focused-index": t.focusedIndex, "items-index": t.computedItemsIndex, role: t.computedOptionRole }, on: { "toggle-checkbox-selection": function(a) {
|
|
1025
|
+
return t.toggleCheckboxSelection("select", a);
|
|
1026
|
+
}, "select-category": t.selectAllCategory, "unselect-category": t.unselectAllCategory, "toggle-category-visibility": t.toggleCategoryVisibility, "space-pressed": function(a) {
|
|
1027
|
+
return t.toggleCheckboxSelection(t.BentoListboxEvent.SPACE, a);
|
|
1028
|
+
}, "tab-pressed": function(a) {
|
|
1029
|
+
return t.toggleCheckboxSelection(t.BentoListboxEvent.TAB, a);
|
|
1030
|
+
}, "enter-pressed": function(a) {
|
|
1031
|
+
return t.toggleCheckboxSelection(t.BentoListboxEvent.ENTER, a);
|
|
1032
|
+
} }, scopedSlots: e._u([e._l(t.slots, function(a, n) {
|
|
1033
|
+
return { key: n, fn: function(r) {
|
|
1034
|
+
return [e._t(n, null, null, r)];
|
|
1027
1035
|
} };
|
|
1028
1036
|
})], null, !0) })], 1)]);
|
|
1029
1037
|
}, jt = [], qt = /* @__PURE__ */ M(
|
|
@@ -1047,7 +1055,7 @@ const _e = qt.exports, Ht = {
|
|
|
1047
1055
|
loading: "Carregando",
|
|
1048
1056
|
showMore: "Mostrar mais"
|
|
1049
1057
|
}
|
|
1050
|
-
},
|
|
1058
|
+
}, Jt = 36, Xt = G({
|
|
1051
1059
|
name: "bento-listbox",
|
|
1052
1060
|
components: {
|
|
1053
1061
|
BentoEmptyState: Ye,
|
|
@@ -1167,33 +1175,33 @@ const _e = qt.exports, Ht = {
|
|
|
1167
1175
|
c.TAB
|
|
1168
1176
|
],
|
|
1169
1177
|
setup(s, { emit: e, slots: l }) {
|
|
1170
|
-
const t = S([]),
|
|
1178
|
+
const t = S([]), a = H(s, "items"), { t: n } = le(), r = o(() => s.lazyLoadType !== K.AUTOMATIC), f = o(() => s.lazyLoadType === K.AUTOMATIC), L = () => {
|
|
1171
1179
|
var k;
|
|
1172
|
-
return typeof (s == null ? void 0 : s.virtualScroll) == "object" && ((k = s == null ? void 0 : s.virtualScroll) != null && k.itemHeight) ? s.virtualScroll.itemHeight :
|
|
1180
|
+
return typeof (s == null ? void 0 : s.virtualScroll) == "object" && ((k = s == null ? void 0 : s.virtualScroll) != null && k.itemHeight) ? s.virtualScroll.itemHeight : Jt;
|
|
1173
1181
|
}, {
|
|
1174
1182
|
containerRef: d,
|
|
1175
1183
|
containerProps: b,
|
|
1176
1184
|
onScroll: T,
|
|
1177
1185
|
list: g,
|
|
1178
1186
|
wrapperProps: p
|
|
1179
|
-
} =
|
|
1187
|
+
} = Je(a, {
|
|
1180
1188
|
itemHeight: L(),
|
|
1181
1189
|
// Disable virtual scrolling if not enabled or if lazy loading is enabled or if multi-select
|
|
1182
1190
|
disabled: (s == null ? void 0 : s.multiple) || (s == null ? void 0 : s.virtualScroll) === !1 || (s == null ? void 0 : s.lazyLoadType) !== "none"
|
|
1183
|
-
}), x =
|
|
1191
|
+
}), x = o(
|
|
1184
1192
|
() => s.componentLoading !== void 0 || r.value ? "true" : void 0
|
|
1185
|
-
),
|
|
1193
|
+
), R = o(
|
|
1186
1194
|
() => r.value && s.loading || s.componentLoading ? "true" : "false"
|
|
1187
|
-
), B =
|
|
1195
|
+
), B = o(
|
|
1188
1196
|
() => r.value || s.componentLoading !== void 0 ? "polite" : void 0
|
|
1189
|
-
), I =
|
|
1197
|
+
), I = o(
|
|
1190
1198
|
() => ({
|
|
1191
1199
|
"aria-label": s.ariaLabel,
|
|
1192
|
-
"aria-busy":
|
|
1200
|
+
"aria-busy": R.value,
|
|
1193
1201
|
"aria-atomic": x.value,
|
|
1194
1202
|
"aria-live": B.value
|
|
1195
1203
|
})
|
|
1196
|
-
), O =
|
|
1204
|
+
), O = o(
|
|
1197
1205
|
() => s.componentLoading ? {
|
|
1198
1206
|
...I.value,
|
|
1199
1207
|
role: "alert"
|
|
@@ -1208,16 +1216,16 @@ const _e = qt.exports, Ht = {
|
|
|
1208
1216
|
return;
|
|
1209
1217
|
const V = Math.round(k.scrollTop) + k.clientHeight >= k.scrollHeight;
|
|
1210
1218
|
s.hasMoreItems && V && !s.loading && m();
|
|
1211
|
-
}),
|
|
1219
|
+
}), D = () => {
|
|
1212
1220
|
f.value ? y() : T();
|
|
1213
|
-
}, P =
|
|
1221
|
+
}, P = o(() => {
|
|
1214
1222
|
var k;
|
|
1215
1223
|
return ((k = s.items) == null ? void 0 : k.length) === 0;
|
|
1216
|
-
}), E =
|
|
1224
|
+
}), E = o(
|
|
1217
1225
|
() => s.lazyLoadType === K.BUTTON && s.hasMoreItems
|
|
1218
|
-
), A =
|
|
1226
|
+
), A = o(
|
|
1219
1227
|
() => s.loading ? fe.LOADING : fe.START
|
|
1220
|
-
), N =
|
|
1228
|
+
), N = o(() => s.loading ? n("loading") : n("showMore")), Y = o(() => ({
|
|
1221
1229
|
...s.emptyState,
|
|
1222
1230
|
variant: "condensed"
|
|
1223
1231
|
})), U = {
|
|
@@ -1247,30 +1255,30 @@ const _e = qt.exports, Ht = {
|
|
|
1247
1255
|
BentoKeyboardNavigationKeyDownEvent: $,
|
|
1248
1256
|
BentoListboxEvent: c,
|
|
1249
1257
|
// Methods
|
|
1250
|
-
onListboxContainerScroll:
|
|
1258
|
+
onListboxContainerScroll: D,
|
|
1251
1259
|
onOptionSelected: C,
|
|
1252
1260
|
emitShowMore: m,
|
|
1253
1261
|
listboxListeners: U
|
|
1254
1262
|
};
|
|
1255
1263
|
}
|
|
1256
1264
|
});
|
|
1257
|
-
var
|
|
1265
|
+
var Zt = function() {
|
|
1258
1266
|
var t;
|
|
1259
1267
|
var e = this, l = e._self._c;
|
|
1260
|
-
return e._self._setupProxy, l("div", e._b({ directives: [{ name: "bento-keyboard-navigation-directive", rawName: "v-bento-keyboard-navigation-directive" }], ref: "listboxRef", staticClass: "b-listbox", style: (t = e.containerProps) == null ? void 0 : t.style, attrs: { id: e.id, tabindex: "-1", "data-testid": "listbox-container" }, on: { scroll: e.onListboxContainerScroll } }, "div", e.listboxContainerAttributes, !1), [l("div", e._b({}, "div", e.wrapperProps, !1), [e.componentLoading ? l("div", { staticClass: "b-listbox__loading-filtered-items" }, [l("bento-loading-indicator")], 1) : e.isSearchResultEmpty ? l("div", { staticClass: "b-listbox__empty-search-message" }, [e.emptyState ? l("bento-empty-state", e._b({}, "bento-empty-state", e.limitedEmptyStateProps, !1)) : l("bento-typography", { attrs: { el: "span" } }, [e._v(e._s(e.noResultsMessage))])], 1) : [e.multiple ? [l("bento-listbox-multi-select", e._g(e._b({ ref: "listboxItemRef", attrs: { "has-more-items": e.hasMoreItems, items: e.items, "lazy-load-type": e.lazyLoadType, "static-categories": e.staticCategories, "selected-values": e.selectedValue, searching: e.searching, "is-option-disabled": e.isOptionDisabled }, scopedSlots: e._u([e._l(e.slots, function(
|
|
1261
|
-
return { key:
|
|
1262
|
-
return [e._t(
|
|
1268
|
+
return e._self._setupProxy, l("div", e._b({ directives: [{ name: "bento-keyboard-navigation-directive", rawName: "v-bento-keyboard-navigation-directive" }], ref: "listboxRef", staticClass: "b-listbox", style: (t = e.containerProps) == null ? void 0 : t.style, attrs: { id: e.id, tabindex: "-1", "data-testid": "listbox-container" }, on: { scroll: e.onListboxContainerScroll } }, "div", e.listboxContainerAttributes, !1), [l("div", e._b({}, "div", e.wrapperProps, !1), [e.componentLoading ? l("div", { staticClass: "b-listbox__loading-filtered-items" }, [l("bento-loading-indicator")], 1) : e.isSearchResultEmpty ? l("div", { staticClass: "b-listbox__empty-search-message" }, [e.emptyState ? l("bento-empty-state", e._b({}, "bento-empty-state", e.limitedEmptyStateProps, !1)) : l("bento-typography", { attrs: { el: "span" } }, [e._v(e._s(e.noResultsMessage))])], 1) : [e.multiple ? [l("bento-listbox-multi-select", e._g(e._b({ ref: "listboxItemRef", attrs: { "has-more-items": e.hasMoreItems, items: e.items, "lazy-load-type": e.lazyLoadType, "static-categories": e.staticCategories, "selected-values": e.selectedValue, searching: e.searching, "is-option-disabled": e.isOptionDisabled }, scopedSlots: e._u([e._l(e.slots, function(a, n) {
|
|
1269
|
+
return { key: n, fn: function(r) {
|
|
1270
|
+
return [e._t(n, null, null, r)];
|
|
1263
1271
|
} };
|
|
1264
|
-
})], null, !0) }, "bento-listbox-multi-select", e.ariaAttributes, !1), e.listboxListeners))] : [l("bento-listbox-single-select", e._g(e._b({ ref: "listboxItemRef", attrs: { items: e.virtualisedItems, "selected-value": e.selectedValue, "static-categories": e.staticCategories, "is-option-disabled": e.isOptionDisabled }, scopedSlots: e._u([e._l(e.slots, function(
|
|
1265
|
-
return { key:
|
|
1266
|
-
return [e._t(
|
|
1272
|
+
})], null, !0) }, "bento-listbox-multi-select", e.ariaAttributes, !1), e.listboxListeners))] : [l("bento-listbox-single-select", e._g(e._b({ ref: "listboxItemRef", attrs: { items: e.virtualisedItems, "selected-value": e.selectedValue, "static-categories": e.staticCategories, "is-option-disabled": e.isOptionDisabled }, scopedSlots: e._u([e._l(e.slots, function(a, n) {
|
|
1273
|
+
return { key: n, fn: function(r) {
|
|
1274
|
+
return [e._t(n, null, null, r)];
|
|
1267
1275
|
} };
|
|
1268
|
-
})], null, !0) }, "bento-listbox-single-select", e.ariaAttributes, !1), e.listboxListeners))], e.shouldDisplayShowMoreButton ? l("div", { staticClass: "b-listbox__lazy-load" }, [l("bento-loading-button", { attrs: { state: e.loadingButtonState, variant: "secondary" }, on: { "!click": function(
|
|
1276
|
+
})], null, !0) }, "bento-listbox-single-select", e.ariaAttributes, !1), e.listboxListeners))], e.shouldDisplayShowMoreButton ? l("div", { staticClass: "b-listbox__lazy-load" }, [l("bento-loading-button", { attrs: { state: e.loadingButtonState, variant: "secondary" }, on: { "!click": function(a) {
|
|
1269
1277
|
return e.emitShowMore.apply(null, arguments);
|
|
1270
1278
|
} } }, [e._v(" " + e._s(e.showMoreButtonText) + " ")])], 1) : e.loading ? l("div", { staticClass: "b-listbox__lazy-load" }, [l("bento-loading-indicator")], 1) : e._e()]], 2)]);
|
|
1271
1279
|
}, Qt = [], es = /* @__PURE__ */ M(
|
|
1280
|
+
Xt,
|
|
1272
1281
|
Zt,
|
|
1273
|
-
Jt,
|
|
1274
1282
|
Qt,
|
|
1275
1283
|
!1,
|
|
1276
1284
|
null,
|
|
@@ -1288,44 +1296,44 @@ const hs = es.exports, te = (s, e) => {
|
|
|
1288
1296
|
}
|
|
1289
1297
|
return null;
|
|
1290
1298
|
}, ts = (s) => typeof s == "object" && s !== null && "value" in s && "label" in s, Cs = (s, e, l, t) => {
|
|
1291
|
-
const
|
|
1292
|
-
l.value ?
|
|
1299
|
+
const a = S([]), n = S(), r = (b) => {
|
|
1300
|
+
l.value ? n.value = b.map(({ value: T }) => T) : n.value = b.length > 0 ? b[0].value : null;
|
|
1293
1301
|
}, f = (b) => {
|
|
1294
|
-
l.value ?
|
|
1302
|
+
l.value ? n.value = b.map(({ value: T, label: g }) => ({ value: T, label: g })) : n.value = b.length > 0 ? { value: b[0].value, label: b[0].label } : null;
|
|
1295
1303
|
}, L = (b) => {
|
|
1296
|
-
|
|
1304
|
+
a.value = b, t != null && t.value ? f(b) : r(b);
|
|
1297
1305
|
}, d = () => {
|
|
1298
|
-
|
|
1306
|
+
a.value = [], n.value = null;
|
|
1299
1307
|
};
|
|
1300
|
-
return
|
|
1308
|
+
return J(
|
|
1301
1309
|
() => e.value,
|
|
1302
1310
|
() => {
|
|
1303
1311
|
if (!e.value && e.value !== 0) {
|
|
1304
1312
|
d();
|
|
1305
1313
|
return;
|
|
1306
1314
|
}
|
|
1307
|
-
const b = !Array.isArray(e.value), T = [...
|
|
1315
|
+
const b = !Array.isArray(e.value), T = [...a.value];
|
|
1308
1316
|
d();
|
|
1309
1317
|
const g = (p) => {
|
|
1310
1318
|
if (ts(p))
|
|
1311
|
-
|
|
1319
|
+
a.value.push(p);
|
|
1312
1320
|
else {
|
|
1313
1321
|
let x = te(s.value, p);
|
|
1314
|
-
x || (x = te(T, p)), x || (x = { value: p, label: p.toString() }),
|
|
1322
|
+
x || (x = te(T, p)), x || (x = { value: p, label: p.toString() }), a.value.push(x);
|
|
1315
1323
|
}
|
|
1316
1324
|
};
|
|
1317
1325
|
if (b) {
|
|
1318
1326
|
const p = e.value;
|
|
1319
|
-
g(p), t != null && t.value ? f(
|
|
1327
|
+
g(p), t != null && t.value ? f(a.value) : r(a.value);
|
|
1320
1328
|
return;
|
|
1321
1329
|
}
|
|
1322
|
-
e.value.forEach(g), t != null && t.value ? f(
|
|
1330
|
+
e.value.forEach(g), t != null && t.value ? f(a.value) : r(a.value);
|
|
1323
1331
|
},
|
|
1324
1332
|
{ immediate: !0 }
|
|
1325
1333
|
), {
|
|
1326
1334
|
// Values
|
|
1327
|
-
cachedSelectedListboxOptions:
|
|
1328
|
-
cachedListboxSelectedValues:
|
|
1335
|
+
cachedSelectedListboxOptions: a,
|
|
1336
|
+
cachedListboxSelectedValues: n,
|
|
1329
1337
|
// Methods
|
|
1330
1338
|
resetCache: d,
|
|
1331
1339
|
setCachedValues: L
|
|
@@ -1333,11 +1341,12 @@ const hs = es.exports, te = (s, e) => {
|
|
|
1333
1341
|
};
|
|
1334
1342
|
export {
|
|
1335
1343
|
K as B,
|
|
1336
|
-
|
|
1344
|
+
ut as C,
|
|
1345
|
+
ae as D,
|
|
1337
1346
|
c as a,
|
|
1338
1347
|
hs as b,
|
|
1339
1348
|
Cs as c,
|
|
1340
1349
|
he as d,
|
|
1341
1350
|
Ut as u
|
|
1342
1351
|
};
|
|
1343
|
-
//# sourceMappingURL=use-cached-selected-values.
|
|
1352
|
+
//# sourceMappingURL=use-cached-selected-values.gDWGi5Nk.js.map
|