@adyen/bento-vue2 1.59.0 → 1.60.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/package.json +12 -8
- package/dist/@types/components.d.ts +0 -201
- package/dist/@types/index.d.ts +0 -17671
- package/dist/accordion.js +0 -6
- package/dist/accordion.js.map +0 -1
- package/dist/action-bar.js +0 -5
- package/dist/action-bar.js.map +0 -1
- package/dist/alert.js +0 -8
- package/dist/alert.js.map +0 -1
- package/dist/assets/accordion-item.css +0 -1
- package/dist/assets/action-bar.css +0 -1
- package/dist/assets/alert.css +0 -1
- package/dist/assets/avatar.css +0 -1
- package/dist/assets/base-button.css +0 -1
- package/dist/assets/base-modal.css +0 -1
- package/dist/assets/button-actions-with-menu.css +0 -1
- package/dist/assets/button-actions.css +0 -1
- package/dist/assets/button.css +0 -1
- package/dist/assets/calendar.css +0 -1
- package/dist/assets/card.css +0 -1
- package/dist/assets/checkbox-group.css +0 -1
- package/dist/assets/checkbox-input.css +0 -1
- package/dist/assets/checkbox.css +0 -1
- package/dist/assets/chip.css +0 -1
- package/dist/assets/code-snippet.css +0 -1
- package/dist/assets/controls-group.css +0 -1
- package/dist/assets/copy.css +0 -1
- package/dist/assets/country.css +0 -1
- package/dist/assets/currency.css +0 -1
- package/dist/assets/dashboard-section.css +0 -1
- package/dist/assets/dashed-underline.css +0 -1
- package/dist/assets/data-grid-template.css +0 -1
- package/dist/assets/data-grid.css +0 -1
- package/dist/assets/date-picker.css +0 -1
- package/dist/assets/date-range-picker.css +0 -1
- package/dist/assets/date.css +0 -1
- package/dist/assets/dialog-page.css +0 -1
- package/dist/assets/divider.css +0 -1
- package/dist/assets/dropdown-default-textbox.css +0 -1
- package/dist/assets/dropdown-tag.css +0 -1
- package/dist/assets/dropdown.css +0 -1
- package/dist/assets/empty-state.css +0 -1
- package/dist/assets/error-message.css +0 -1
- package/dist/assets/file-uploader.css +0 -1
- package/dist/assets/filter-bar.css +0 -1
- package/dist/assets/fixed-scroller.css +0 -1
- package/dist/assets/focus-trap.css +0 -1
- package/dist/assets/footer-actions.css +0 -1
- package/dist/assets/form-layout-title.css +0 -1
- package/dist/assets/grid-layout.css +0 -1
- package/dist/assets/header-with-views.css +0 -1
- package/dist/assets/header.css +0 -1
- package/dist/assets/info-icon-with-popover.css +0 -1
- package/dist/assets/info-icon.css +0 -1
- package/dist/assets/input-field-password.css +0 -1
- package/dist/assets/input-field-phone-number.css +0 -1
- package/dist/assets/input-field.css +0 -1
- package/dist/assets/inspector.css +0 -1
- package/dist/assets/layout-row.css +0 -1
- package/dist/assets/link.css +0 -1
- package/dist/assets/listbox-option-tag.css +0 -1
- package/dist/assets/loading-indicator.css +0 -1
- package/dist/assets/main.css +0 -1
- package/dist/assets/menu.css +0 -1
- package/dist/assets/modal-fullscreen.css +0 -1
- package/dist/assets/pagination.css +0 -1
- package/dist/assets/payment-method.css +0 -1
- package/dist/assets/popover.css +0 -1
- package/dist/assets/popper-container.css +0 -1
- package/dist/assets/promo-banner.css +0 -1
- package/dist/assets/radio-group.css +0 -1
- package/dist/assets/radio-input.css +0 -1
- package/dist/assets/rich-text-editor.css +0 -1
- package/dist/assets/search-bar.css +0 -1
- package/dist/assets/secondary-nav.css +0 -1
- package/dist/assets/segmented-control.css +0 -1
- package/dist/assets/selection-card-group.css +0 -1
- package/dist/assets/sidepanel.css +0 -1
- package/dist/assets/status.css +0 -1
- package/dist/assets/step.css +0 -1
- package/dist/assets/structured-list-item.css +0 -1
- package/dist/assets/summary-grid.css +0 -1
- package/dist/assets/tabs.css +0 -1
- package/dist/assets/tag.css +0 -1
- package/dist/assets/teleport.css +0 -1
- package/dist/assets/textarea.css +0 -1
- package/dist/assets/timeline-item.css +0 -1
- package/dist/assets/toast.css +0 -1
- package/dist/assets/toggle-button.css +0 -1
- package/dist/assets/toggle.css +0 -1
- package/dist/assets/tooltip.css +0 -1
- package/dist/assets/tutorial.css +0 -1
- package/dist/assets/typography.css +0 -1
- package/dist/assets/use-cached-selected-values.css +0 -1
- package/dist/avatar.js +0 -5
- package/dist/avatar.js.map +0 -1
- package/dist/button.js +0 -16
- package/dist/button.js.map +0 -1
- package/dist/card.js +0 -7
- package/dist/card.js.map +0 -1
- package/dist/checkbox.js +0 -11
- package/dist/checkbox.js.map +0 -1
- package/dist/chip.js +0 -5
- package/dist/chip.js.map +0 -1
- package/dist/chunks/1-generic-use.CZhwP2Yc.js +0 -5
- package/dist/chunks/1-generic-use.CZhwP2Yc.js.map +0 -1
- package/dist/chunks/1-generic-use.R6x8PEGA.js +0 -5
- package/dist/chunks/1-generic-use.R6x8PEGA.js.map +0 -1
- package/dist/chunks/2-generic-use.CNKjB4B7.js +0 -5
- package/dist/chunks/2-generic-use.CNKjB4B7.js.map +0 -1
- package/dist/chunks/2-generic-use.w0fUhovx.js +0 -5
- package/dist/chunks/2-generic-use.w0fUhovx.js.map +0 -1
- package/dist/chunks/3-generic-use.BLEzR04g.js +0 -5
- package/dist/chunks/3-generic-use.BLEzR04g.js.map +0 -1
- package/dist/chunks/3-generic-use.D3NFHgI4.js +0 -5
- package/dist/chunks/3-generic-use.D3NFHgI4.js.map +0 -1
- package/dist/chunks/4-generic-use.CULEpvgj.js +0 -5
- package/dist/chunks/4-generic-use.CULEpvgj.js.map +0 -1
- package/dist/chunks/4-generic-use.D82y3n39.js +0 -5
- package/dist/chunks/4-generic-use.D82y3n39.js.map +0 -1
- package/dist/chunks/_commonjsHelpers.C6fGbg64.js +0 -7
- package/dist/chunks/_commonjsHelpers.C6fGbg64.js.map +0 -1
- package/dist/chunks/_plugin-vue2_normalizer.CeySl7Fu.js +0 -11
- package/dist/chunks/_plugin-vue2_normalizer.CeySl7Fu.js.map +0 -1
- package/dist/chunks/accordion-item.C4tyRMCt.js +0 -116
- package/dist/chunks/accordion-item.C4tyRMCt.js.map +0 -1
- package/dist/chunks/action-bar.CHVePTM6.js +0 -161
- package/dist/chunks/action-bar.CHVePTM6.js.map +0 -1
- package/dist/chunks/adding-payment-methods.BJZLPxtM.js +0 -5
- package/dist/chunks/adding-payment-methods.BJZLPxtM.js.map +0 -1
- package/dist/chunks/adding-payment-methods.Dle8zt43.js +0 -5
- package/dist/chunks/adding-payment-methods.Dle8zt43.js.map +0 -1
- package/dist/chunks/adyen-giving.Ffw_DlJK.js +0 -5
- package/dist/chunks/adyen-giving.Ffw_DlJK.js.map +0 -1
- package/dist/chunks/adyen-giving.LiKHj_jY.js +0 -5
- package/dist/chunks/adyen-giving.LiKHj_jY.js.map +0 -1
- package/dist/chunks/alert.Du9NfW-V.js +0 -103
- package/dist/chunks/alert.Du9NfW-V.js.map +0 -1
- package/dist/chunks/aria-label.CaUURpnB.js +0 -13
- package/dist/chunks/aria-label.CaUURpnB.js.map +0 -1
- package/dist/chunks/avatar.BgwjpLQO.js +0 -71
- package/dist/chunks/avatar.BgwjpLQO.js.map +0 -1
- package/dist/chunks/base-button.-gx_u8Bd.js +0 -86
- package/dist/chunks/base-button.-gx_u8Bd.js.map +0 -1
- package/dist/chunks/base-modal.DxywEyGO.js +0 -373
- package/dist/chunks/base-modal.DxywEyGO.js.map +0 -1
- package/dist/chunks/base-modal.keys.C2PQXcE2.js +0 -5
- package/dist/chunks/base-modal.keys.C2PQXcE2.js.map +0 -1
- package/dist/chunks/bin.DuebwJYu.js +0 -24
- package/dist/chunks/bin.DuebwJYu.js.map +0 -1
- package/dist/chunks/button-actions-with-menu.Bh5D7sgB.js +0 -166
- package/dist/chunks/button-actions-with-menu.Bh5D7sgB.js.map +0 -1
- package/dist/chunks/button-actions.V0te_IrY.js +0 -194
- package/dist/chunks/button-actions.V0te_IrY.js.map +0 -1
- package/dist/chunks/button.BuD-IsW5.js +0 -99
- package/dist/chunks/button.BuD-IsW5.js.map +0 -1
- package/dist/chunks/calendar.C4vFYvsY.js +0 -1166
- package/dist/chunks/calendar.C4vFYvsY.js.map +0 -1
- package/dist/chunks/card.CC4BEw-7.js +0 -123
- package/dist/chunks/card.CC4BEw-7.js.map +0 -1
- package/dist/chunks/checkbox-group.BfPZ_Eec.js +0 -152
- package/dist/chunks/checkbox-group.BfPZ_Eec.js.map +0 -1
- package/dist/chunks/checkbox-input.Dr1GS2BZ.js +0 -137
- package/dist/chunks/checkbox-input.Dr1GS2BZ.js.map +0 -1
- package/dist/chunks/checkbox.CTeT6JEP.js +0 -176
- package/dist/chunks/checkbox.CTeT6JEP.js.map +0 -1
- package/dist/chunks/checkmark-circle-fill.DZBl7CeY.js +0 -24
- package/dist/chunks/checkmark-circle-fill.DZBl7CeY.js.map +0 -1
- package/dist/chunks/checkmark-small.C8T8ISN6.js +0 -24
- package/dist/chunks/checkmark-small.C8T8ISN6.js.map +0 -1
- package/dist/chunks/chevron-left.DOMTgGel.js +0 -43
- package/dist/chunks/chevron-left.DOMTgGel.js.map +0 -1
- package/dist/chunks/chevron-up.CSVyoaTy.js +0 -43
- package/dist/chunks/chevron-up.CSVyoaTy.js.map +0 -1
- package/dist/chunks/chip.bZEhHfIk.js +0 -63
- package/dist/chunks/chip.bZEhHfIk.js.map +0 -1
- package/dist/chunks/click-outside.C1Ud8AA2.js +0 -23
- package/dist/chunks/click-outside.C1Ud8AA2.js.map +0 -1
- package/dist/chunks/code-snippet.0x8O1dkV.js +0 -259
- package/dist/chunks/code-snippet.0x8O1dkV.js.map +0 -1
- package/dist/chunks/codemirror.Zv80n3Z2.js +0 -14628
- package/dist/chunks/codemirror.Zv80n3Z2.js.map +0 -1
- package/dist/chunks/controls-group.CvpddKxq.js +0 -81
- package/dist/chunks/controls-group.CvpddKxq.js.map +0 -1
- package/dist/chunks/copy.TvI9Au3G.js +0 -129
- package/dist/chunks/copy.TvI9Au3G.js.map +0 -1
- package/dist/chunks/country.Df7erZov.js +0 -94
- package/dist/chunks/country.Df7erZov.js.map +0 -1
- package/dist/chunks/country.types.C0Q_hhgJ.js +0 -269
- package/dist/chunks/country.types.C0Q_hhgJ.js.map +0 -1
- package/dist/chunks/cross-circle-fill-small.YhLgeipP.js +0 -24
- package/dist/chunks/cross-circle-fill-small.YhLgeipP.js.map +0 -1
- package/dist/chunks/cross-circle-fill.Ra0-PIUo.js +0 -24
- package/dist/chunks/cross-circle-fill.Ra0-PIUo.js.map +0 -1
- package/dist/chunks/cross-small.CZqsjZDz.js +0 -24
- package/dist/chunks/cross-small.CZqsjZDz.js.map +0 -1
- package/dist/chunks/cross.CJ5EEL2c.js +0 -24
- package/dist/chunks/cross.CJ5EEL2c.js.map +0 -1
- package/dist/chunks/currency.B1F9YOIx.js +0 -106
- package/dist/chunks/currency.B1F9YOIx.js.map +0 -1
- package/dist/chunks/dashboard-section.C5zXN82c.js +0 -102
- package/dist/chunks/dashboard-section.C5zXN82c.js.map +0 -1
- package/dist/chunks/dashed-underline.pd87ohFZ.js +0 -65
- package/dist/chunks/dashed-underline.pd87ohFZ.js.map +0 -1
- package/dist/chunks/data-grid-template.keys.2_AkxuNT.js +0 -5
- package/dist/chunks/data-grid-template.keys.2_AkxuNT.js.map +0 -1
- package/dist/chunks/data-grid-template.l-aJapU0.js +0 -84
- package/dist/chunks/data-grid-template.l-aJapU0.js.map +0 -1
- package/dist/chunks/data-grid.vFEU_kt8.js +0 -2782
- package/dist/chunks/data-grid.vFEU_kt8.js.map +0 -1
- package/dist/chunks/date-input.BqBdAO1E.js +0 -17
- package/dist/chunks/date-input.BqBdAO1E.js.map +0 -1
- package/dist/chunks/date-picker.DjbZAEcj.js +0 -235
- package/dist/chunks/date-picker.DjbZAEcj.js.map +0 -1
- package/dist/chunks/date-range-picker.C1ijTRdf.js +0 -966
- package/dist/chunks/date-range-picker.C1ijTRdf.js.map +0 -1
- package/dist/chunks/date.dYFFEunA.js +0 -987
- package/dist/chunks/date.dYFFEunA.js.map +0 -1
- package/dist/chunks/debounce.DUTu11PS.js +0 -10
- package/dist/chunks/debounce.DUTu11PS.js.map +0 -1
- package/dist/chunks/dialog-page.uGh0kYDL.js +0 -131
- package/dist/chunks/dialog-page.uGh0kYDL.js.map +0 -1
- package/dist/chunks/directive.Cbdox5VL.js +0 -23
- package/dist/chunks/directive.Cbdox5VL.js.map +0 -1
- package/dist/chunks/divider.Cc4JFWG_.js +0 -35
- package/dist/chunks/divider.Cc4JFWG_.js.map +0 -1
- package/dist/chunks/dot.CnkXzRn3.js +0 -24
- package/dist/chunks/dot.CnkXzRn3.js.map +0 -1
- package/dist/chunks/dropdown-default-textbox.AUsF-RIc.js +0 -348
- package/dist/chunks/dropdown-default-textbox.AUsF-RIc.js.map +0 -1
- package/dist/chunks/dropdown-tag.CXY_WiRj.js +0 -215
- package/dist/chunks/dropdown-tag.CXY_WiRj.js.map +0 -1
- package/dist/chunks/dropdown.DYN8Okpo.js +0 -818
- package/dist/chunks/dropdown.DYN8Okpo.js.map +0 -1
- package/dist/chunks/empty-state.IvvHHQ35.js +0 -151
- package/dist/chunks/empty-state.IvvHHQ35.js.map +0 -1
- package/dist/chunks/error-message.BM8Y6-u5.js +0 -121
- package/dist/chunks/error-message.BM8Y6-u5.js.map +0 -1
- package/dist/chunks/es6.BA9GH7QZ.js +0 -11
- package/dist/chunks/es6.BA9GH7QZ.js.map +0 -1
- package/dist/chunks/events.CMzGybJJ.js +0 -47
- package/dist/chunks/events.CMzGybJJ.js.map +0 -1
- package/dist/chunks/expand.C263WARj.js +0 -24
- package/dist/chunks/expand.C263WARj.js.map +0 -1
- package/dist/chunks/file-uploader.pWrwnN-c.js +0 -1913
- package/dist/chunks/file-uploader.pWrwnN-c.js.map +0 -1
- package/dist/chunks/filter-bar.BYHzhAr8.js +0 -2288
- package/dist/chunks/filter-bar.BYHzhAr8.js.map +0 -1
- package/dist/chunks/fixed-scroller.D0a6q8_i.js +0 -106
- package/dist/chunks/fixed-scroller.D0a6q8_i.js.map +0 -1
- package/dist/chunks/focus-trap.DKT1Fe6X.js +0 -499
- package/dist/chunks/focus-trap.DKT1Fe6X.js.map +0 -1
- package/dist/chunks/footer-actions.Cn-793_Z.js +0 -96
- package/dist/chunks/footer-actions.Cn-793_Z.js.map +0 -1
- package/dist/chunks/form-layout-title.DBCY18f8.js +0 -190
- package/dist/chunks/form-layout-title.DBCY18f8.js.map +0 -1
- package/dist/chunks/form-layout.types.D3EKzbE7.js +0 -5
- package/dist/chunks/form-layout.types.D3EKzbE7.js.map +0 -1
- package/dist/chunks/generate-uid.NJ8tVoha.js +0 -32
- package/dist/chunks/generate-uid.NJ8tVoha.js.map +0 -1
- package/dist/chunks/get-date-locale.BN8xEjY0.js +0 -1735
- package/dist/chunks/get-date-locale.BN8xEjY0.js.map +0 -1
- package/dist/chunks/get-slot-text.BQS5Olxm.js +0 -12
- package/dist/chunks/get-slot-text.BQS5Olxm.js.map +0 -1
- package/dist/chunks/grid-layout.HvTAa4to.js +0 -76
- package/dist/chunks/grid-layout.HvTAa4to.js.map +0 -1
- package/dist/chunks/header-with-views.Cqd864mp.js +0 -1536
- package/dist/chunks/header-with-views.Cqd864mp.js.map +0 -1
- package/dist/chunks/header.Ds1iyTzn.js +0 -187
- package/dist/chunks/header.Ds1iyTzn.js.map +0 -1
- package/dist/chunks/i18n.BQkEbtPM.js +0 -31
- package/dist/chunks/i18n.BQkEbtPM.js.map +0 -1
- package/dist/chunks/image.C2D2hKat.js +0 -56
- package/dist/chunks/image.C2D2hKat.js.map +0 -1
- package/dist/chunks/index.BDuTpjD8.js +0 -40
- package/dist/chunks/index.BDuTpjD8.js.map +0 -1
- package/dist/chunks/index.BxBB1rsx.js +0 -15
- package/dist/chunks/index.BxBB1rsx.js.map +0 -1
- package/dist/chunks/index.Cl4_42j5.js +0 -8
- package/dist/chunks/index.Cl4_42j5.js.map +0 -1
- package/dist/chunks/index.DD7TppDb.js +0 -10
- package/dist/chunks/index.DD7TppDb.js.map +0 -1
- package/dist/chunks/index.oJzeCMPe.js +0 -529
- package/dist/chunks/index.oJzeCMPe.js.map +0 -1
- package/dist/chunks/info-icon-with-popover.yLETQrb9.js +0 -71
- package/dist/chunks/info-icon-with-popover.yLETQrb9.js.map +0 -1
- package/dist/chunks/info-icon.G9FAlO4C.js +0 -41
- package/dist/chunks/info-icon.G9FAlO4C.js.map +0 -1
- package/dist/chunks/info.4d_mJHvT.js +0 -24
- package/dist/chunks/info.4d_mJHvT.js.map +0 -1
- package/dist/chunks/input-field-password.C1OF1nmo.js +0 -251
- package/dist/chunks/input-field-password.C1OF1nmo.js.map +0 -1
- package/dist/chunks/input-field-phone-number.Dfa1fxvS.js +0 -3097
- package/dist/chunks/input-field-phone-number.Dfa1fxvS.js.map +0 -1
- package/dist/chunks/input-field.C9-4Xo4h.js +0 -152
- package/dist/chunks/input-field.C9-4Xo4h.js.map +0 -1
- package/dist/chunks/inspector.types.NVDCPiVL.js +0 -104
- package/dist/chunks/inspector.types.NVDCPiVL.js.map +0 -1
- package/dist/chunks/internal-error.BLZodVBE.js +0 -5
- package/dist/chunks/internal-error.BLZodVBE.js.map +0 -1
- package/dist/chunks/internal-error.BmrwJFpR.js +0 -5
- package/dist/chunks/internal-error.BmrwJFpR.js.map +0 -1
- package/dist/chunks/keyboard-navigation.pB8weElW.js +0 -66
- package/dist/chunks/keyboard-navigation.pB8weElW.js.map +0 -1
- package/dist/chunks/layout-row.c0ugsIw6.js +0 -87
- package/dist/chunks/layout-row.c0ugsIw6.js.map +0 -1
- package/dist/chunks/link.D0P79Toh.js +0 -95
- package/dist/chunks/link.D0P79Toh.js.map +0 -1
- package/dist/chunks/listbox-option-tag.BcLYsizL.js +0 -44
- package/dist/chunks/listbox-option-tag.BcLYsizL.js.map +0 -1
- package/dist/chunks/loading-indicator.z8COalOc.js +0 -48
- package/dist/chunks/loading-indicator.z8COalOc.js.map +0 -1
- package/dist/chunks/menu.DDXB-L8u.js +0 -601
- package/dist/chunks/menu.DDXB-L8u.js.map +0 -1
- package/dist/chunks/modal-fullscreen.keys.CMba3hYp.js +0 -5
- package/dist/chunks/modal-fullscreen.keys.CMba3hYp.js.map +0 -1
- package/dist/chunks/modal-fullscreen.os2jZ30i.js +0 -202
- package/dist/chunks/modal-fullscreen.os2jZ30i.js.map +0 -1
- package/dist/chunks/modal.D5OesJnF.js +0 -445
- package/dist/chunks/modal.D5OesJnF.js.map +0 -1
- package/dist/chunks/no-results-found.Bg_ZcEid.js +0 -5
- package/dist/chunks/no-results-found.Bg_ZcEid.js.map +0 -1
- package/dist/chunks/no-results-found.BqvYsBR6.js +0 -5
- package/dist/chunks/no-results-found.BqvYsBR6.js.map +0 -1
- package/dist/chunks/notifications-cleared.BMZk37uf.js +0 -5
- package/dist/chunks/notifications-cleared.BMZk37uf.js.map +0 -1
- package/dist/chunks/notifications-cleared.C7W9ZXY7.js +0 -5
- package/dist/chunks/notifications-cleared.C7W9ZXY7.js.map +0 -1
- package/dist/chunks/on-click-outside.D9aY9g8G.js +0 -101
- package/dist/chunks/on-click-outside.D9aY9g8G.js.map +0 -1
- package/dist/chunks/page-not-found.COJLPVaU.js +0 -5
- package/dist/chunks/page-not-found.COJLPVaU.js.map +0 -1
- package/dist/chunks/page-not-found.DWW6W-PZ.js +0 -5
- package/dist/chunks/page-not-found.DWW6W-PZ.js.map +0 -1
- package/dist/chunks/pagination.BoWzbJVF.js +0 -338
- package/dist/chunks/pagination.BoWzbJVF.js.map +0 -1
- package/dist/chunks/payment-method.Cx4nPDtE.js +0 -76
- package/dist/chunks/payment-method.Cx4nPDtE.js.map +0 -1
- package/dist/chunks/payment-method.types.BqtH7RM2.js +0 -5
- package/dist/chunks/payment-method.types.BqtH7RM2.js.map +0 -1
- package/dist/chunks/planned-maintenance.C61sWB9h.js +0 -5
- package/dist/chunks/planned-maintenance.C61sWB9h.js.map +0 -1
- package/dist/chunks/planned-maintenance.jmWYTdet.js +0 -5
- package/dist/chunks/planned-maintenance.jmWYTdet.js.map +0 -1
- package/dist/chunks/popover.K53VtitI.js +0 -295
- package/dist/chunks/popover.K53VtitI.js.map +0 -1
- package/dist/chunks/popper-container.DUNt7nKd.js +0 -1393
- package/dist/chunks/popper-container.DUNt7nKd.js.map +0 -1
- package/dist/chunks/promo-banner.BpLrkuMc.js +0 -70
- package/dist/chunks/promo-banner.BpLrkuMc.js.map +0 -1
- package/dist/chunks/radio-group.BE8gvwsL.js +0 -229
- package/dist/chunks/radio-group.BE8gvwsL.js.map +0 -1
- package/dist/chunks/radio-input.uJAhxKRs.js +0 -90
- package/dist/chunks/radio-input.uJAhxKRs.js.map +0 -1
- package/dist/chunks/referrals.BvtT-kQS.js +0 -5
- package/dist/chunks/referrals.BvtT-kQS.js.map +0 -1
- package/dist/chunks/referrals.aX8WZigH.js +0 -5
- package/dist/chunks/referrals.aX8WZigH.js.map +0 -1
- package/dist/chunks/refresh.Bc9FzGjJ.js +0 -24
- package/dist/chunks/refresh.Bc9FzGjJ.js.map +0 -1
- package/dist/chunks/resize.Bqks3WUm.js +0 -15
- package/dist/chunks/resize.Bqks3WUm.js.map +0 -1
- package/dist/chunks/rich-text-editor.CP_xdt6R.js +0 -6203
- package/dist/chunks/rich-text-editor.CP_xdt6R.js.map +0 -1
- package/dist/chunks/search-bar.I2f0f4fU.js +0 -97
- package/dist/chunks/search-bar.I2f0f4fU.js.map +0 -1
- package/dist/chunks/search.DLtglc02.js +0 -24
- package/dist/chunks/search.DLtglc02.js.map +0 -1
- package/dist/chunks/secondary-nav.D1-GnlU-.js +0 -112
- package/dist/chunks/secondary-nav.D1-GnlU-.js.map +0 -1
- package/dist/chunks/segmented-control.A2eatwIG.js +0 -112
- package/dist/chunks/segmented-control.A2eatwIG.js.map +0 -1
- package/dist/chunks/segmented-control.types.BHRLV8KU.js +0 -5
- package/dist/chunks/segmented-control.types.BHRLV8KU.js.map +0 -1
- package/dist/chunks/selection-card-group.CFNCbcRU.js +0 -299
- package/dist/chunks/selection-card-group.CFNCbcRU.js.map +0 -1
- package/dist/chunks/show.e4LEpZKG.js +0 -43
- package/dist/chunks/show.e4LEpZKG.js.map +0 -1
- package/dist/chunks/sidepanel.CGGRp0oL.js +0 -210
- package/dist/chunks/sidepanel.CGGRp0oL.js.map +0 -1
- package/dist/chunks/sidepanel.keys.R0DKQuYx.js +0 -5
- package/dist/chunks/sidepanel.keys.R0DKQuYx.js.map +0 -1
- package/dist/chunks/status.types.p_TCvoo0.js +0 -36
- package/dist/chunks/status.types.p_TCvoo0.js.map +0 -1
- package/dist/chunks/step.CuOpi-Ye.js +0 -217
- package/dist/chunks/step.CuOpi-Ye.js.map +0 -1
- package/dist/chunks/structured-list-item.C8K371Ss.js +0 -87
- package/dist/chunks/structured-list-item.C8K371Ss.js.map +0 -1
- package/dist/chunks/success.DhioLvPD.js +0 -5
- package/dist/chunks/success.DhioLvPD.js.map +0 -1
- package/dist/chunks/success.nNwxJRBS.js +0 -5
- package/dist/chunks/success.nNwxJRBS.js.map +0 -1
- package/dist/chunks/summary-grid.keys.CxTf_FOc.js +0 -6
- package/dist/chunks/summary-grid.keys.CxTf_FOc.js.map +0 -1
- package/dist/chunks/summary-grid.types.DdghLR6f.js +0 -301
- package/dist/chunks/summary-grid.types.DdghLR6f.js.map +0 -1
- package/dist/chunks/tabs.DX_Gq12z.js +0 -205
- package/dist/chunks/tabs.DX_Gq12z.js.map +0 -1
- package/dist/chunks/tabs.keys.Bc2pSKRw.js +0 -7
- package/dist/chunks/tabs.keys.Bc2pSKRw.js.map +0 -1
- package/dist/chunks/tag.B2vxWwV1.js +0 -44
- package/dist/chunks/tag.B2vxWwV1.js.map +0 -1
- package/dist/chunks/teleport.BV6zrDjA.js +0 -128
- package/dist/chunks/teleport.BV6zrDjA.js.map +0 -1
- package/dist/chunks/textarea.DPa9t8Jw.js +0 -200
- package/dist/chunks/textarea.DPa9t8Jw.js.map +0 -1
- package/dist/chunks/timeline-item.D2534IA9.js +0 -386
- package/dist/chunks/timeline-item.D2534IA9.js.map +0 -1
- package/dist/chunks/toast.B2u2W_TQ.js +0 -171
- package/dist/chunks/toast.B2u2W_TQ.js.map +0 -1
- package/dist/chunks/toggle-button.ChDbeBZ8.js +0 -83
- package/dist/chunks/toggle-button.ChDbeBZ8.js.map +0 -1
- package/dist/chunks/toggle.Q52IIKfi.js +0 -121
- package/dist/chunks/toggle.Q52IIKfi.js.map +0 -1
- package/dist/chunks/tooltip.B8nCejpo.js +0 -189
- package/dist/chunks/tooltip.B8nCejpo.js.map +0 -1
- package/dist/chunks/truncate.BfIl_-71.js +0 -8
- package/dist/chunks/truncate.BfIl_-71.js.map +0 -1
- package/dist/chunks/tutorial.X3GhtKlY.js +0 -348
- package/dist/chunks/tutorial.X3GhtKlY.js.map +0 -1
- package/dist/chunks/typography.J1v_SPG3.js +0 -87
- package/dist/chunks/typography.J1v_SPG3.js.map +0 -1
- package/dist/chunks/upload-files.5wQwbfkp.js +0 -5
- package/dist/chunks/upload-files.5wQwbfkp.js.map +0 -1
- package/dist/chunks/upload-files.jTQY6y2X.js +0 -5
- package/dist/chunks/upload-files.jTQY6y2X.js.map +0 -1
- package/dist/chunks/use-bento-toast-controller.Cn_2Eogn.js +0 -52
- package/dist/chunks/use-bento-toast-controller.Cn_2Eogn.js.map +0 -1
- package/dist/chunks/use-cached-selected-values.C6VRhL5_.js +0 -1177
- package/dist/chunks/use-cached-selected-values.C6VRhL5_.js.map +0 -1
- package/dist/chunks/use-click-outside.BnhTgpSt.js +0 -14
- package/dist/chunks/use-click-outside.BnhTgpSt.js.map +0 -1
- package/dist/chunks/use-country-items.HFnjuDsG.js +0 -30
- package/dist/chunks/use-country-items.HFnjuDsG.js.map +0 -1
- package/dist/chunks/use-country-phon-code.DVgE19zT.js +0 -5610
- package/dist/chunks/use-country-phon-code.DVgE19zT.js.map +0 -1
- package/dist/chunks/use-default-slot-validator.BDn0wkYP.js +0 -13
- package/dist/chunks/use-default-slot-validator.BDn0wkYP.js.map +0 -1
- package/dist/chunks/use-expandable-content-height.GkjjbmPy.js +0 -17
- package/dist/chunks/use-expandable-content-height.GkjjbmPy.js.map +0 -1
- package/dist/chunks/use-form-layout-loading.D3lALhtC.js +0 -12
- package/dist/chunks/use-form-layout-loading.D3lALhtC.js.map +0 -1
- package/dist/chunks/use-has-slot.C9lQZ6nz.js +0 -6
- package/dist/chunks/use-has-slot.C9lQZ6nz.js.map +0 -1
- package/dist/chunks/warning-filled.Cd0kVWwa.js +0 -24
- package/dist/chunks/warning-filled.Cd0kVWwa.js.map +0 -1
- package/dist/chunks/wrong-environment.BOsyKdRI.js +0 -5
- package/dist/chunks/wrong-environment.BOsyKdRI.js.map +0 -1
- package/dist/chunks/wrong-environment.BiHTPtbJ.js +0 -5
- package/dist/chunks/wrong-environment.BiHTPtbJ.js.map +0 -1
- package/dist/click-outside.js +0 -5
- package/dist/click-outside.js.map +0 -1
- package/dist/code-snippet.js +0 -8
- package/dist/code-snippet.js.map +0 -1
- package/dist/country.js +0 -12
- package/dist/country.js.map +0 -1
- package/dist/currency.js +0 -6
- package/dist/currency.js.map +0 -1
- package/dist/dashboard-template.js +0 -6
- package/dist/dashboard-template.js.map +0 -1
- package/dist/dashed-underline.js +0 -5
- package/dist/dashed-underline.js.map +0 -1
- package/dist/data-grid-template.js +0 -5
- package/dist/data-grid-template.js.map +0 -1
- package/dist/data-grid.js +0 -11
- package/dist/data-grid.js.map +0 -1
- package/dist/date-picker.js +0 -8
- package/dist/date-picker.js.map +0 -1
- package/dist/date-range-picker.js +0 -8
- package/dist/date-range-picker.js.map +0 -1
- package/dist/date.js +0 -6
- package/dist/date.js.map +0 -1
- package/dist/divider.js +0 -5
- package/dist/divider.js.map +0 -1
- package/dist/dropdown.js +0 -16
- package/dist/dropdown.js.map +0 -1
- package/dist/empty-state.js +0 -8
- package/dist/empty-state.js.map +0 -1
- package/dist/file-uploader.js +0 -5
- package/dist/file-uploader.js.map +0 -1
- package/dist/filter-bar.js +0 -8
- package/dist/filter-bar.js.map +0 -1
- package/dist/focus-trap.js +0 -5
- package/dist/focus-trap.js.map +0 -1
- package/dist/fonts/fonts.css +0 -2
- package/dist/form-layout.js +0 -8
- package/dist/form-layout.js.map +0 -1
- package/dist/header-with-views.js +0 -5
- package/dist/header-with-views.js.map +0 -1
- package/dist/header.js +0 -5
- package/dist/header.js.map +0 -1
- package/dist/image.js +0 -7
- package/dist/image.js.map +0 -1
- package/dist/index.js +0 -371
- package/dist/index.js.map +0 -1
- package/dist/info-icon.js +0 -5
- package/dist/info-icon.js.map +0 -1
- package/dist/input-field-password.js +0 -10
- package/dist/input-field-password.js.map +0 -1
- package/dist/input-field-phone-number.js +0 -5
- package/dist/input-field-phone-number.js.map +0 -1
- package/dist/input-field.js +0 -10
- package/dist/input-field.js.map +0 -1
- package/dist/inspector.js +0 -6
- package/dist/inspector.js.map +0 -1
- package/dist/internal.js +0 -43
- package/dist/internal.js.map +0 -1
- package/dist/layout.js +0 -6
- package/dist/layout.js.map +0 -1
- package/dist/link.js +0 -6
- package/dist/link.js.map +0 -1
- package/dist/loading-indicator.js +0 -6
- package/dist/loading-indicator.js.map +0 -1
- package/dist/menu.js +0 -6
- package/dist/menu.js.map +0 -1
- package/dist/modal-fullscreen.js +0 -6
- package/dist/modal-fullscreen.js.map +0 -1
- package/dist/modal.js +0 -14
- package/dist/modal.js.map +0 -1
- package/dist/pagination.js +0 -5
- package/dist/pagination.js.map +0 -1
- package/dist/payment-method.js +0 -7
- package/dist/payment-method.js.map +0 -1
- package/dist/popover.js +0 -6
- package/dist/popover.js.map +0 -1
- package/dist/popper-container.js +0 -9
- package/dist/popper-container.js.map +0 -1
- package/dist/promo-banner.js +0 -7
- package/dist/promo-banner.js.map +0 -1
- package/dist/radio-group.js +0 -9
- package/dist/radio-group.js.map +0 -1
- package/dist/rich-text-editor.js +0 -5
- package/dist/rich-text-editor.js.map +0 -1
- package/dist/search-bar.js +0 -9
- package/dist/search-bar.js.map +0 -1
- package/dist/secondary-nav.js +0 -5
- package/dist/secondary-nav.js.map +0 -1
- package/dist/segmented-control.js +0 -7
- package/dist/segmented-control.js.map +0 -1
- package/dist/selection-card.js +0 -7
- package/dist/selection-card.js.map +0 -1
- package/dist/sidepanel.js +0 -7
- package/dist/sidepanel.js.map +0 -1
- package/dist/status.js +0 -6
- package/dist/status.js.map +0 -1
- package/dist/stepper.js +0 -8
- package/dist/stepper.js.map +0 -1
- package/dist/structured-list.js +0 -6
- package/dist/structured-list.js.map +0 -1
- package/dist/styles/bento-dark.css +0 -2055
- package/dist/styles/bento-light.css +0 -2054
- package/dist/styles/bento.css +0 -2054
- package/dist/styles/legacy.css +0 -2209
- package/dist/styles/styleguide.css +0 -2109
- package/dist/styles/utility.css +0 -987
- package/dist/summary-grid.js +0 -12
- package/dist/summary-grid.js.map +0 -1
- package/dist/tabs.js +0 -6
- package/dist/tabs.js.map +0 -1
- package/dist/tag.js +0 -6
- package/dist/tag.js.map +0 -1
- package/dist/textarea.js +0 -5
- package/dist/textarea.js.map +0 -1
- package/dist/timeline.js +0 -10
- package/dist/timeline.js.map +0 -1
- package/dist/toast.js +0 -5
- package/dist/toast.js.map +0 -1
- package/dist/toggle.js +0 -7
- package/dist/toggle.js.map +0 -1
- package/dist/tutorial.js +0 -5
- package/dist/tutorial.js.map +0 -1
- package/dist/typography.js +0 -8
- package/dist/typography.js.map +0 -1
- package/dist/use-form-v4.js +0 -8300
- package/dist/use-form-v4.js.map +0 -1
- package/dist/web-types.json +0 -15172
|
@@ -1,1177 +0,0 @@
|
|
|
1
|
-
import { computed as c, ref as O, onMounted as de, onUnmounted as ye, watch as be, defineComponent as P, toRef as w, useSlots as Ce } from "vue";
|
|
2
|
-
import { B as G } from "./typography.J1v_SPG3.js";
|
|
3
|
-
import { B as Se } from "./loading-indicator.z8COalOc.js";
|
|
4
|
-
import { B as he } from "./empty-state.IvvHHQ35.js";
|
|
5
|
-
import { u as X } from "./i18n.BQkEbtPM.js";
|
|
6
|
-
import { d as xe } from "./debounce.DUTu11PS.js";
|
|
7
|
-
import "./index.Cl4_42j5.js";
|
|
8
|
-
import { B as J } from "./checkbox.CTeT6JEP.js";
|
|
9
|
-
import { B as Ee } from "./chip.bZEhHfIk.js";
|
|
10
|
-
import { C as Le, a as Oe } from "./chevron-up.CSVyoaTy.js";
|
|
11
|
-
import { B as k, a as Z } from "./keyboard-navigation.pB8weElW.js";
|
|
12
|
-
import { n as D } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
|
|
13
|
-
import { d as Te, e as ce } from "./button-actions.V0te_IrY.js";
|
|
14
|
-
/* empty css */
|
|
15
|
-
import { o as Ae } from "./resize.Bqks3WUm.js";
|
|
16
|
-
import "../assets/use-cached-selected-values.css";
|
|
17
|
-
const fe = (s, e, t, l) => {
|
|
18
|
-
const o = c(
|
|
19
|
-
() => {
|
|
20
|
-
var b, v;
|
|
21
|
-
return !!((b = s.value) != null && b.length) && ((v = s.value) == null ? void 0 : v.length) === e.value.length;
|
|
22
|
-
}
|
|
23
|
-
), n = c(() => {
|
|
24
|
-
var b;
|
|
25
|
-
return s.value == null || s.value.length === 0 ? !1 : ((b = s.value) == null ? void 0 : b.length) !== e.value.length;
|
|
26
|
-
});
|
|
27
|
-
return {
|
|
28
|
-
isAllSelected: o,
|
|
29
|
-
isIndeterminate: n,
|
|
30
|
-
toggleSelectAll: (b) => {
|
|
31
|
-
b ? t() : l();
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
function Ie(s, { disabled: e, itemHeight: t, overscan: l = 5, prefixHeight: o }) {
|
|
36
|
-
const n = O(null), a = O([]), b = O(0), v = O(0), r = O(0);
|
|
37
|
-
let m;
|
|
38
|
-
const S = c(() => {
|
|
39
|
-
const d = typeof t == "number" ? s.value.length * t : s.value.reduce((L, _, x) => L + t(x), 0), C = typeof t == "number" ? b.value * t : s.value.slice(0, b.value).reduce((L, _, x) => L + t(x), 0);
|
|
40
|
-
return {
|
|
41
|
-
style: {
|
|
42
|
-
marginTop: `${C}px`,
|
|
43
|
-
height: `${d - C}px`
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
}), E = () => {
|
|
47
|
-
const d = (o == null ? void 0 : o.value) ?? 0, C = Math.max(n.value.scrollTop - d, 0);
|
|
48
|
-
if (typeof t == "number")
|
|
49
|
-
return Math.floor(C / t);
|
|
50
|
-
let L = 0, _ = 0;
|
|
51
|
-
for (let x = 0; x < s.value.length; x += 1) {
|
|
52
|
-
const B = t(x);
|
|
53
|
-
if (L += B, L >= C) {
|
|
54
|
-
_ = x;
|
|
55
|
-
break;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
return _;
|
|
59
|
-
}, A = () => {
|
|
60
|
-
if (r.value = n.value.clientHeight, typeof t == "number")
|
|
61
|
-
return Math.ceil(r.value / t);
|
|
62
|
-
const d = b.value ?? 0;
|
|
63
|
-
let C = 0, L = 0;
|
|
64
|
-
for (let _ = d; _ < s.value.length; _ += 1) {
|
|
65
|
-
const x = t(_);
|
|
66
|
-
if (C += x, L = _, C > r.value)
|
|
67
|
-
break;
|
|
68
|
-
}
|
|
69
|
-
return L - d;
|
|
70
|
-
}, T = () => {
|
|
71
|
-
if (n.value) {
|
|
72
|
-
const d = A();
|
|
73
|
-
b.value = E(), v.value = Math.min(b.value + d + l, s.value.length), a.value = s.value.slice(b.value, v.value);
|
|
74
|
-
}
|
|
75
|
-
}, I = () => {
|
|
76
|
-
T();
|
|
77
|
-
};
|
|
78
|
-
e || (de(() => {
|
|
79
|
-
n.value && (r.value = n.value.clientHeight, m = Ae(n.value, ({ clientHeight: d }) => {
|
|
80
|
-
r.value = d, T();
|
|
81
|
-
}), T());
|
|
82
|
-
}), ye(() => {
|
|
83
|
-
m == null || m.disconnect();
|
|
84
|
-
}), be(
|
|
85
|
-
() => s.value,
|
|
86
|
-
() => {
|
|
87
|
-
T();
|
|
88
|
-
}
|
|
89
|
-
));
|
|
90
|
-
const f = {
|
|
91
|
-
ref: n,
|
|
92
|
-
style: { overflowY: "auto" }
|
|
93
|
-
};
|
|
94
|
-
return e ? {
|
|
95
|
-
containerRef: n,
|
|
96
|
-
containerProps: f,
|
|
97
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
98
|
-
onScroll: () => {
|
|
99
|
-
},
|
|
100
|
-
list: s
|
|
101
|
-
} : {
|
|
102
|
-
containerRef: n,
|
|
103
|
-
containerProps: f,
|
|
104
|
-
onScroll: I,
|
|
105
|
-
list: a,
|
|
106
|
-
wrapperProps: S
|
|
107
|
-
};
|
|
108
|
-
}
|
|
109
|
-
var i = /* @__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))(i || {}), F = /* @__PURE__ */ ((s) => (s.AUTOMATIC = "automatic", s.BUTTON = "button", s.NONE = "none", s))(F || {});
|
|
110
|
-
const Re = P({
|
|
111
|
-
name: "bento-listbox-static-category",
|
|
112
|
-
components: {
|
|
113
|
-
BentoTypography: G
|
|
114
|
-
},
|
|
115
|
-
props: {
|
|
116
|
-
/**
|
|
117
|
-
* Category label text
|
|
118
|
-
*/
|
|
119
|
-
categoryLabel: {
|
|
120
|
-
type: String,
|
|
121
|
-
required: !0
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
});
|
|
125
|
-
var Be = function() {
|
|
126
|
-
var e = this, t = e._self._c;
|
|
127
|
-
return e._self._setupProxy, t("div", { staticClass: "b-listbox-single-select-category" }, [t("bento-typography", { staticClass: "b-listbox-single-select-category__label-text", attrs: { variant: "caption", el: "span" } }, [e._v(" " + e._s(e.categoryLabel) + " ")]), t("div", [e._t("default")], 2)], 1);
|
|
128
|
-
}, ke = [], De = /* @__PURE__ */ D(
|
|
129
|
-
Re,
|
|
130
|
-
Be,
|
|
131
|
-
ke,
|
|
132
|
-
!1,
|
|
133
|
-
null,
|
|
134
|
-
"4aa8cc6e"
|
|
135
|
-
);
|
|
136
|
-
const Ne = De.exports, Me = P({
|
|
137
|
-
name: "bento-listbox-option",
|
|
138
|
-
props: {
|
|
139
|
-
/**
|
|
140
|
-
* Setting this property to true will disable the option.
|
|
141
|
-
*/
|
|
142
|
-
disabled: { type: Boolean, default: !1 },
|
|
143
|
-
/**
|
|
144
|
-
* Indicates if the value is selected. Only one element can be selected at a time.
|
|
145
|
-
*/
|
|
146
|
-
selected: { type: Boolean, default: !1 }
|
|
147
|
-
},
|
|
148
|
-
emits: [i.CLICK, i.ENTER, i.SPACE, i.TAB],
|
|
149
|
-
setup(s, { emit: e }) {
|
|
150
|
-
const t = c(() => ({
|
|
151
|
-
"b-listbox-option--disabled": s.disabled,
|
|
152
|
-
"b-listbox-option--selected": s.selected
|
|
153
|
-
}));
|
|
154
|
-
return {
|
|
155
|
-
// Enums
|
|
156
|
-
BentoKeyboardNavigationKeyDownEvent: k,
|
|
157
|
-
BentoListboxEvent: i,
|
|
158
|
-
// Values
|
|
159
|
-
conditionalClasses: t,
|
|
160
|
-
// Events
|
|
161
|
-
onClick: (n) => {
|
|
162
|
-
e(i.CLICK, n);
|
|
163
|
-
},
|
|
164
|
-
onOptionSelected: (n, a) => {
|
|
165
|
-
e(n, a);
|
|
166
|
-
}
|
|
167
|
-
};
|
|
168
|
-
}
|
|
169
|
-
});
|
|
170
|
-
var Pe = function() {
|
|
171
|
-
var e = this, t = e._self._c;
|
|
172
|
-
return e._self._setupProxy, t("label", e._b({ staticClass: "b-listbox-option", class: e.conditionalClasses, attrs: { role: "option" }, on: { click: e.onClick, keydown: [function(l) {
|
|
173
|
-
return !l.type.indexOf("key") && e._k(l.keyCode, "enter", 13, l.key, "Enter") ? null : e.onOptionSelected(e.BentoListboxEvent.ENTER, l);
|
|
174
|
-
}, function(l) {
|
|
175
|
-
return !l.type.indexOf("key") && e._k(l.keyCode, "space", 32, l.key, [" ", "Spacebar"]) ? null : e.onOptionSelected(e.BentoListboxEvent.SPACE, l);
|
|
176
|
-
}, function(l) {
|
|
177
|
-
return !l.type.indexOf("key") && e._k(l.keyCode, "tab", 9, l.key, "Tab") ? null : e.onOptionSelected(e.BentoListboxEvent.TAB, l);
|
|
178
|
-
}] } }, "label", e.$attrs, !1), [e._t("default")], 2);
|
|
179
|
-
}, we = [], $e = /* @__PURE__ */ D(
|
|
180
|
-
Me,
|
|
181
|
-
Pe,
|
|
182
|
-
we,
|
|
183
|
-
!1,
|
|
184
|
-
null,
|
|
185
|
-
"d7fb415c"
|
|
186
|
-
);
|
|
187
|
-
const V = $e.exports;
|
|
188
|
-
let re = 0;
|
|
189
|
-
const Fe = {
|
|
190
|
-
beforeCreate() {
|
|
191
|
-
this.uuid = re.toString(), re += 1;
|
|
192
|
-
}
|
|
193
|
-
};
|
|
194
|
-
var Ge = function() {
|
|
195
|
-
var e = this, t = e._self._c;
|
|
196
|
-
return t("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"] ? t("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), t("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
|
-
}, Ue = [], ze = /* @__PURE__ */ D(
|
|
198
|
-
Fe,
|
|
199
|
-
Ge,
|
|
200
|
-
Ue,
|
|
201
|
-
!1,
|
|
202
|
-
null,
|
|
203
|
-
null
|
|
204
|
-
);
|
|
205
|
-
const Ve = ze.exports, Ye = P({
|
|
206
|
-
name: "bento-listbox-single-select-option",
|
|
207
|
-
components: {
|
|
208
|
-
BentoListboxOption: V,
|
|
209
|
-
BentoTypography: G,
|
|
210
|
-
CheckmarkIcon: Ve
|
|
211
|
-
},
|
|
212
|
-
props: {
|
|
213
|
-
/**
|
|
214
|
-
* Setting this property to true will disable the option.
|
|
215
|
-
*/
|
|
216
|
-
disabled: { type: Boolean, default: !1 },
|
|
217
|
-
/**
|
|
218
|
-
* The option item that contains all the option item's data.
|
|
219
|
-
* @type {BentoListboxOptionItem}
|
|
220
|
-
*/
|
|
221
|
-
option: {
|
|
222
|
-
type: Object,
|
|
223
|
-
required: !0
|
|
224
|
-
},
|
|
225
|
-
/**
|
|
226
|
-
* Indicates if the value is selected. Only one element can be selected at a time.
|
|
227
|
-
*/
|
|
228
|
-
selected: { type: Boolean, default: !1 }
|
|
229
|
-
},
|
|
230
|
-
emits: [i.ENTER, i.SELECT, i.SPACE, i.TAB],
|
|
231
|
-
setup(s, { emit: e }) {
|
|
232
|
-
const t = (a) => {
|
|
233
|
-
s.disabled || e(a, s.option);
|
|
234
|
-
}, l = c(() => s.disabled ? !0 : null), o = c(() => s.selected ? !0 : null), n = c(() => s.disabled ? -1 : 0);
|
|
235
|
-
return {
|
|
236
|
-
// Values
|
|
237
|
-
ariaDisabled: l,
|
|
238
|
-
ariaSelected: o,
|
|
239
|
-
tabIndex: n,
|
|
240
|
-
// Enums
|
|
241
|
-
BentoListboxEvent: i,
|
|
242
|
-
// Events
|
|
243
|
-
onOptionSelected: t
|
|
244
|
-
};
|
|
245
|
-
}
|
|
246
|
-
});
|
|
247
|
-
var We = function() {
|
|
248
|
-
var e = this, t = e._self._c;
|
|
249
|
-
return e._self._setupProxy, t("bento-listbox-option", { staticClass: "b-listbox-single-select-option", attrs: { disabled: e.disabled, selected: e.selected, "aria-selected": e.ariaSelected, "aria-disabled": e.ariaDisabled, tabindex: e.tabIndex }, on: { click: function(l) {
|
|
250
|
-
return e.onOptionSelected(e.BentoListboxEvent.SELECT);
|
|
251
|
-
}, "enter-pressed": function(l) {
|
|
252
|
-
return e.onOptionSelected(e.BentoListboxEvent.ENTER);
|
|
253
|
-
}, "space-pressed": function(l) {
|
|
254
|
-
return l.preventDefault(), e.onOptionSelected(e.BentoListboxEvent.SPACE);
|
|
255
|
-
}, "tab-pressed": function(l) {
|
|
256
|
-
return e.onOptionSelected(e.BentoListboxEvent.TAB);
|
|
257
|
-
} } }, [e._t("default", function() {
|
|
258
|
-
return [t("span", { staticClass: "b-listbox-single-select-option__text" }, [t("bento-typography", { attrs: { el: "span" } }, [e._v(e._s(e.option.label))]), e.option.description ? t("bento-typography", { staticClass: "b-listbox-single-select-option__description", attrs: { el: "span" } }, [e._v(" " + e._s(e.option.description) + " ")]) : e._e()], 1)];
|
|
259
|
-
}, null, e.option), t("span", { staticClass: "b-listbox-single-select-option__check-icon" }, [t("checkmark-icon", { directives: [{ name: "show", rawName: "v-show", value: e.selected, expression: "selected" }], attrs: { "svg-title": "selected" } })], 1)], 2);
|
|
260
|
-
}, Ke = [], qe = /* @__PURE__ */ D(
|
|
261
|
-
Ye,
|
|
262
|
-
We,
|
|
263
|
-
Ke,
|
|
264
|
-
!1,
|
|
265
|
-
null,
|
|
266
|
-
"5a5ff36a"
|
|
267
|
-
);
|
|
268
|
-
const je = qe.exports, ve = ({ items: s, isOptionDisabled: e, hasStaticCategories: t }, l) => {
|
|
269
|
-
const o = c(
|
|
270
|
-
() => t.value ? s.value.flatMap((f) => f.items) : s.value
|
|
271
|
-
), n = c(() => o.value.length - 1), a = O(0);
|
|
272
|
-
de(() => {
|
|
273
|
-
e && (a.value = s.value.findIndex((f) => !e(f)));
|
|
274
|
-
});
|
|
275
|
-
const b = (f) => {
|
|
276
|
-
var L, _;
|
|
277
|
-
const C = ((_ = (L = s.value[f]) == null ? void 0 : L.items) == null ? void 0 : _.length) ? s.value[f].items.every((x) => e(x)) : e(s.value[f]);
|
|
278
|
-
return !e || !!e && C;
|
|
279
|
-
}, v = (f) => {
|
|
280
|
-
switch (f) {
|
|
281
|
-
case "increase":
|
|
282
|
-
a.value += 1;
|
|
283
|
-
break;
|
|
284
|
-
case "decrease":
|
|
285
|
-
a.value -= 1;
|
|
286
|
-
break;
|
|
287
|
-
}
|
|
288
|
-
}, r = ({ edgeCaseItem: f }, d, C) => {
|
|
289
|
-
a.value !== f && (v(C), b(a.value) && d(), l(a.value));
|
|
290
|
-
}, m = (f) => {
|
|
291
|
-
I(f), r(
|
|
292
|
-
{
|
|
293
|
-
edgeCaseItem: n.value
|
|
294
|
-
},
|
|
295
|
-
m,
|
|
296
|
-
"increase"
|
|
297
|
-
/* INCREASE */
|
|
298
|
-
);
|
|
299
|
-
}, S = (f) => {
|
|
300
|
-
I(f), r(
|
|
301
|
-
{
|
|
302
|
-
edgeCaseItem: 0
|
|
303
|
-
},
|
|
304
|
-
S,
|
|
305
|
-
"decrease"
|
|
306
|
-
/* DECREASE */
|
|
307
|
-
);
|
|
308
|
-
}, E = () => {
|
|
309
|
-
a.value = 0, b(a.value) ? m() : l(a.value);
|
|
310
|
-
}, A = () => {
|
|
311
|
-
a.value = n.value, b(a.value) ? S() : l(a.value);
|
|
312
|
-
}, T = (f) => {
|
|
313
|
-
a.value = f;
|
|
314
|
-
}, I = (f) => {
|
|
315
|
-
var d;
|
|
316
|
-
(d = f == null ? void 0 : f.detail) == null || d.preventDefault();
|
|
317
|
-
};
|
|
318
|
-
return {
|
|
319
|
-
moveToFirstElement: E,
|
|
320
|
-
moveToLastElement: A,
|
|
321
|
-
moveToNextElement: m,
|
|
322
|
-
moveToPreviousElement: S,
|
|
323
|
-
setListboxFocusedIndex: T,
|
|
324
|
-
preventDefault: I,
|
|
325
|
-
focusedIndex: a
|
|
326
|
-
};
|
|
327
|
-
}, He = P({
|
|
328
|
-
name: "bento-listbox-single-select",
|
|
329
|
-
components: {
|
|
330
|
-
BentoListboxSingleSelectCategory: Ne,
|
|
331
|
-
BentoListboxSingleSelectOption: je
|
|
332
|
-
},
|
|
333
|
-
directives: { BentoKeyboardNavigationDirective: Z },
|
|
334
|
-
inheritAttrs: !1,
|
|
335
|
-
props: {
|
|
336
|
-
/**
|
|
337
|
-
* Function that allows the options to be disabled
|
|
338
|
-
*
|
|
339
|
-
* @type {BentoListboxIsOptionDisabled}
|
|
340
|
-
* @param {BentoListboxOptionItem} option - listbox option object
|
|
341
|
-
* @param {string} option.label - Option's label text
|
|
342
|
-
* @param {string|number} option.value - Option's value
|
|
343
|
-
* @param {unknown} option.data - Option's extra data to be passed to the default slot
|
|
344
|
-
*/
|
|
345
|
-
isOptionDisabled: {
|
|
346
|
-
type: Function,
|
|
347
|
-
default: () => !1
|
|
348
|
-
},
|
|
349
|
-
/**
|
|
350
|
-
* The option elements to populate the listbox with.
|
|
351
|
-
* It must be an array of {@see BentoListboxOptionItem }.
|
|
352
|
-
*
|
|
353
|
-
* @property {string} value.label - Text to be displayed in the option
|
|
354
|
-
* @property {string,number} value.value - Value of the option
|
|
355
|
-
*/
|
|
356
|
-
items: {
|
|
357
|
-
type: Array,
|
|
358
|
-
required: !0
|
|
359
|
-
},
|
|
360
|
-
/**
|
|
361
|
-
* The `input` value.
|
|
362
|
-
* Providing an empty string will select no options.
|
|
363
|
-
* Set to an empty string `''` if you don't want any of the available options to be selected
|
|
364
|
-
*/
|
|
365
|
-
selectedValue: {
|
|
366
|
-
type: Array,
|
|
367
|
-
default: void 0
|
|
368
|
-
},
|
|
369
|
-
/**
|
|
370
|
-
* If enabled, dropdown will display non-selectable, static categories
|
|
371
|
-
*/
|
|
372
|
-
staticCategories: { type: Boolean, default: !1 }
|
|
373
|
-
},
|
|
374
|
-
emits: [i.SELECT, i.ENTER, i.SPACE, i.TAB],
|
|
375
|
-
setup(s, { emit: e, expose: t, slots: l }) {
|
|
376
|
-
const o = O(null), n = O([]), a = c(() => {
|
|
377
|
-
var d;
|
|
378
|
-
return !!((d = s.selectedValue) != null && d.length) && s.selectedValue.at(0);
|
|
379
|
-
}), b = c(() => !!s.items.some(({ items: d }) => !!d)), v = (d) => (C) => {
|
|
380
|
-
e(d, [C]);
|
|
381
|
-
}, r = (d) => {
|
|
382
|
-
var C;
|
|
383
|
-
(C = o.value.querySelectorAll('[role="option"]')[d]) == null || C.focus();
|
|
384
|
-
}, {
|
|
385
|
-
moveToNextElement: m,
|
|
386
|
-
moveToPreviousElement: S,
|
|
387
|
-
moveToFirstElement: E,
|
|
388
|
-
moveToLastElement: A,
|
|
389
|
-
setListboxFocusedIndex: T
|
|
390
|
-
} = ve(
|
|
391
|
-
{
|
|
392
|
-
items: w(s, "items"),
|
|
393
|
-
isOptionDisabled: s.isOptionDisabled,
|
|
394
|
-
hasStaticCategories: w(s, "staticCategories")
|
|
395
|
-
},
|
|
396
|
-
r
|
|
397
|
-
), I = {
|
|
398
|
-
[k.ARROW_UP]: S,
|
|
399
|
-
[k.ARROW_DOWN]: m,
|
|
400
|
-
[k.HOME]: E,
|
|
401
|
-
[k.END]: A
|
|
402
|
-
}, f = {
|
|
403
|
-
[i.SELECT]: v(i.SELECT),
|
|
404
|
-
[i.SPACE]: v(i.SPACE),
|
|
405
|
-
[i.TAB]: v(i.TAB),
|
|
406
|
-
[i.ENTER]: v(i.ENTER)
|
|
407
|
-
};
|
|
408
|
-
return t({
|
|
409
|
-
/**
|
|
410
|
-
* Reference for a single listbox item.
|
|
411
|
-
* Required for keyboard navigation in dropdown as $children is removed in vue@3
|
|
412
|
-
*/
|
|
413
|
-
listboxItemRef: n,
|
|
414
|
-
/**
|
|
415
|
-
* Method to set the index of the item to be focused on
|
|
416
|
-
* Used for focus management to be kept in-sync with parent e.g. dropdowns
|
|
417
|
-
*/
|
|
418
|
-
setListboxFocusedIndex: T
|
|
419
|
-
}), {
|
|
420
|
-
// Enums
|
|
421
|
-
BentoListboxEvent: i,
|
|
422
|
-
// Values
|
|
423
|
-
listboxRef: o,
|
|
424
|
-
listboxItemRef: n,
|
|
425
|
-
selectedItem: a,
|
|
426
|
-
slots: l,
|
|
427
|
-
// Computed
|
|
428
|
-
hasCategories: b,
|
|
429
|
-
// Methods
|
|
430
|
-
onOptionSelected: v,
|
|
431
|
-
// Keyboard navigation
|
|
432
|
-
listboxListeners: I,
|
|
433
|
-
listboxOptionListeners: f
|
|
434
|
-
};
|
|
435
|
-
}
|
|
436
|
-
});
|
|
437
|
-
var Xe = function() {
|
|
438
|
-
var e = this, t = e._self._c;
|
|
439
|
-
return e._self._setupProxy, t("div", e._g({ directives: [{ name: "bento-keyboard-navigation-directive", rawName: "v-bento-keyboard-navigation-directive" }], ref: "listboxRef" }, e.listboxListeners), [e.hasCategories && e.staticCategories ? e._l(e.items, function(l) {
|
|
440
|
-
return t("bento-listbox-single-select-category", { key: l.value, attrs: { "category-label": l.label, role: "group" } }, e._l(l.items, function(o) {
|
|
441
|
-
return t("bento-listbox-single-select-option", e._g({ key: o.value, ref: "listboxItemRef", refInFor: !0, attrs: { role: "option", option: o, disabled: e.isOptionDisabled ? e.isOptionDisabled(o) : null, selected: o.value === e.selectedItem.value }, scopedSlots: e._u([e._l(e.slots, function(n, a) {
|
|
442
|
-
return { key: a, fn: function(b) {
|
|
443
|
-
return [e._t(a, null, null, b)];
|
|
444
|
-
} };
|
|
445
|
-
})], null, !0) }, e.listboxOptionListeners));
|
|
446
|
-
}), 1);
|
|
447
|
-
}) : e._l(e.items, function(l) {
|
|
448
|
-
return t("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(o, n) {
|
|
449
|
-
return { key: n, fn: function(a) {
|
|
450
|
-
return [e._t(n, null, null, a)];
|
|
451
|
-
} };
|
|
452
|
-
})], null, !0) }, e.listboxOptionListeners));
|
|
453
|
-
})], 2);
|
|
454
|
-
}, Je = [], Ze = /* @__PURE__ */ D(
|
|
455
|
-
He,
|
|
456
|
-
Xe,
|
|
457
|
-
Je,
|
|
458
|
-
!1,
|
|
459
|
-
null,
|
|
460
|
-
null
|
|
461
|
-
);
|
|
462
|
-
const Qe = Ze.exports;
|
|
463
|
-
var j = /* @__PURE__ */ ((s) => (s.DISABLED = "disabled", s.STATIC_CATEGORY = "static-category", s))(j || {}), z = /* @__PURE__ */ ((s) => (s.SELECT_CATEGORY = "select-category", s.UNSELECT_CATEGORY = "unselect-category", s))(z || {});
|
|
464
|
-
const et = {
|
|
465
|
-
"en-US": {
|
|
466
|
-
categoryClosed: "{category} closed",
|
|
467
|
-
categoryOpened: "{category} opened"
|
|
468
|
-
}
|
|
469
|
-
}, tt = P({
|
|
470
|
-
i18n: { messages: et },
|
|
471
|
-
name: "bento-listbox-multi-select-category",
|
|
472
|
-
components: {
|
|
473
|
-
BentoCheckbox: J,
|
|
474
|
-
BentoTypography: G,
|
|
475
|
-
BentoListboxOption: V,
|
|
476
|
-
ChevronDownIcon: Oe,
|
|
477
|
-
ChevronUpIcon: Le
|
|
478
|
-
},
|
|
479
|
-
props: {
|
|
480
|
-
/**
|
|
481
|
-
* The option elements to populate the listbox with.
|
|
482
|
-
* It must be an array of {@see BentoListboxOptionItem }.
|
|
483
|
-
*
|
|
484
|
-
* @property {string} value.label - Text to be displayed in the option
|
|
485
|
-
* @property {string,number} value.value - Value of the option
|
|
486
|
-
* @property {BentoListboxOptionItem} value.items - Category items list
|
|
487
|
-
*/
|
|
488
|
-
category: {
|
|
489
|
-
type: Object,
|
|
490
|
-
required: !0
|
|
491
|
-
},
|
|
492
|
-
/**
|
|
493
|
-
* Function that allows the options to be disabled
|
|
494
|
-
*
|
|
495
|
-
* @type {BentoListboxIsOptionDisabled}
|
|
496
|
-
* @param {BentoListboxOptionItem} option - listbox option object
|
|
497
|
-
* @param {string} option.label - Option's label text
|
|
498
|
-
* @param {string|number} option.value - Option's value
|
|
499
|
-
* @param {unknown} option.data - Option's extra data to be passed to the default slot
|
|
500
|
-
*/
|
|
501
|
-
isOptionDisabled: {
|
|
502
|
-
type: [Function],
|
|
503
|
-
default: () => !1
|
|
504
|
-
},
|
|
505
|
-
/**
|
|
506
|
-
* The `input` value.
|
|
507
|
-
* Providing an empty array will select no options.
|
|
508
|
-
*/
|
|
509
|
-
selectedItemsList: {
|
|
510
|
-
type: Array,
|
|
511
|
-
default: () => []
|
|
512
|
-
},
|
|
513
|
-
/**
|
|
514
|
-
* If enabled, dropdown will display non-selectable, static categories
|
|
515
|
-
*/
|
|
516
|
-
staticCategories: { type: Boolean, default: !1 },
|
|
517
|
-
/**
|
|
518
|
-
* Category's tabindex
|
|
519
|
-
*/
|
|
520
|
-
tabindex: { type: Number, default: -1 }
|
|
521
|
-
},
|
|
522
|
-
emits: [z.SELECT_CATEGORY, z.UNSELECT_CATEGORY],
|
|
523
|
-
setup(s, { emit: e }) {
|
|
524
|
-
const t = O(!1), { t: l } = X(), o = (_) => s.isOptionDisabled ? s.isOptionDisabled(_) : !1, n = c(
|
|
525
|
-
() => s.category.items.every((_) => o(_))
|
|
526
|
-
), a = w(s, "staticCategories"), b = c(() => t.value || s.staticCategories), v = c(() => ({
|
|
527
|
-
[`b-listbox-multi-select-category--${j.DISABLED}`]: n.value,
|
|
528
|
-
[`b-listbox-multi-select-category--${j.STATIC_CATEGORY}`]: s.staticCategories
|
|
529
|
-
})), r = (_) => {
|
|
530
|
-
_.preventDefault(), t.value = !t.value;
|
|
531
|
-
}, m = (_) => {
|
|
532
|
-
var $;
|
|
533
|
-
const x = o(_), B = (($ = s.selectedItemsList) == null ? void 0 : $.includes(_.value)) || !1;
|
|
534
|
-
return { isDisabled: x, isPreSelected: B };
|
|
535
|
-
}, S = c(
|
|
536
|
-
() => s.category.items.filter((_) => {
|
|
537
|
-
const { isDisabled: x, isPreSelected: B } = m(_);
|
|
538
|
-
return x && B || !x;
|
|
539
|
-
})
|
|
540
|
-
), E = c(
|
|
541
|
-
() => {
|
|
542
|
-
var _;
|
|
543
|
-
return (_ = S.value) == null ? void 0 : _.filter(
|
|
544
|
-
({ value: x }) => {
|
|
545
|
-
var B;
|
|
546
|
-
return (B = s.selectedItemsList) == null ? void 0 : B.includes(x);
|
|
547
|
-
}
|
|
548
|
-
);
|
|
549
|
-
}
|
|
550
|
-
), A = c(() => {
|
|
551
|
-
const _ = t.value ? "categoryOpened" : "categoryClosed";
|
|
552
|
-
return l(_, { category: s.category.label });
|
|
553
|
-
}), T = c(
|
|
554
|
-
() => ({
|
|
555
|
-
el: "span",
|
|
556
|
-
variant: s.staticCategories ? "caption" : "body"
|
|
557
|
-
})
|
|
558
|
-
), I = () => {
|
|
559
|
-
e(z.SELECT_CATEGORY);
|
|
560
|
-
}, f = () => {
|
|
561
|
-
e(z.UNSELECT_CATEGORY);
|
|
562
|
-
}, { isAllSelected: d, isIndeterminate: C, toggleSelectAll: L } = fe(
|
|
563
|
-
E,
|
|
564
|
-
S,
|
|
565
|
-
I,
|
|
566
|
-
f
|
|
567
|
-
);
|
|
568
|
-
return {
|
|
569
|
-
// Values
|
|
570
|
-
chevronTitle: A,
|
|
571
|
-
conditionalClass: v,
|
|
572
|
-
hasAllPropsDisabled: n,
|
|
573
|
-
isOpen: t,
|
|
574
|
-
isAllSelected: d,
|
|
575
|
-
isIndeterminate: C,
|
|
576
|
-
isStaticCategory: a,
|
|
577
|
-
// Computed
|
|
578
|
-
showItemChildren: b,
|
|
579
|
-
categoryLabelProps: T,
|
|
580
|
-
// Methods
|
|
581
|
-
toggleOpen: r,
|
|
582
|
-
toggleSelectAll: L
|
|
583
|
-
};
|
|
584
|
-
}
|
|
585
|
-
});
|
|
586
|
-
var st = function() {
|
|
587
|
-
var e = this, t = e._self._c;
|
|
588
|
-
return e._self._setupProxy, t("div", [t("bento-listbox-option", { staticClass: "b-listbox-multi-select-category__option", class: e.conditionalClass }, [e.isStaticCategory ? e._e() : t("bento-checkbox", { attrs: { "model-value": e.isAllSelected, indeterminate: e.isIndeterminate, disabled: e.hasAllPropsDisabled, "aria-label": e.category.label, value: e.category.value, tabindex: e.tabindex }, on: { "update:model-value": e.toggleSelectAll } }), t("span", { staticClass: "b-listbox-multi-select-category__label" }, [t("bento-typography", e._b({ staticClass: "b-listbox-multi-select-category__label-text" }, "bento-typography", e.categoryLabelProps, !1), [e._v(" " + e._s(e.category.label) + " ")]), e.isStaticCategory ? e._e() : t("div", { staticClass: "b-listbox-multi-select-category__label-chevron", attrs: { "data-testid": "toggle-listbox" }, on: { "!click": function(l) {
|
|
589
|
-
return e.toggleOpen.apply(null, arguments);
|
|
590
|
-
} } }, [e.isOpen ? t("chevron-up-icon", { attrs: { "svg-title": e.chevronTitle } }) : t("chevron-down-icon", { attrs: { "svg-title": e.chevronTitle } })], 1)], 1)], 1), t("div", { directives: [{ name: "show", rawName: "v-show", value: e.showItemChildren, expression: "showItemChildren" }] }, [e._t("default")], 2)], 1);
|
|
591
|
-
}, lt = [], nt = /* @__PURE__ */ D(
|
|
592
|
-
tt,
|
|
593
|
-
st,
|
|
594
|
-
lt,
|
|
595
|
-
!1,
|
|
596
|
-
null,
|
|
597
|
-
"09983823"
|
|
598
|
-
);
|
|
599
|
-
const ot = nt.exports;
|
|
600
|
-
var M = /* @__PURE__ */ ((s) => (s.SELECT_CATEGORY = "select-category", s.TOGGLE_CHECKBOX_SELECTION = "toggle-checkbox-selection", s.UNSELECT_CATEGORY = "unselect-category", s))(M || {});
|
|
601
|
-
const at = P({
|
|
602
|
-
name: "listbox-multi-select-options",
|
|
603
|
-
components: {
|
|
604
|
-
BentoCheckbox: J,
|
|
605
|
-
BentoListboxOption: V,
|
|
606
|
-
BentoTypography: G,
|
|
607
|
-
ListboxMultiSelectCategory: ot
|
|
608
|
-
},
|
|
609
|
-
props: {
|
|
610
|
-
/**
|
|
611
|
-
* Indicates if the items listed are inside a category
|
|
612
|
-
* so they can be padded to right by one level in recursion.
|
|
613
|
-
* Items of categories are automatically defined as "categoryItems"
|
|
614
|
-
*/
|
|
615
|
-
categoryItems: { type: Boolean, default: !1 },
|
|
616
|
-
/**
|
|
617
|
-
* Current focused option index
|
|
618
|
-
*/
|
|
619
|
-
focusedIndex: { type: Number, default: 0 },
|
|
620
|
-
/**
|
|
621
|
-
* Function that allows the options to be disabled
|
|
622
|
-
*
|
|
623
|
-
* @type {BentoListboxIsOptionDisabled}
|
|
624
|
-
* @param {BentoListboxOptionItem} option - listbox option object
|
|
625
|
-
* @param {string} option.label - Option's label text
|
|
626
|
-
* @param {string|number} option.value - Option's value
|
|
627
|
-
* @param {unknown} option.data - Option's extra data to be passed to the default slot
|
|
628
|
-
*/
|
|
629
|
-
isOptionDisabled: {
|
|
630
|
-
type: Function,
|
|
631
|
-
default: () => !1
|
|
632
|
-
},
|
|
633
|
-
/**
|
|
634
|
-
* The option elements to populate the listbox with.
|
|
635
|
-
* It must be an array of {@see BentoListboxOptionItem }.
|
|
636
|
-
*
|
|
637
|
-
* @property {string} value.label - Text to be displayed in the option
|
|
638
|
-
* @property {string,number} value.value - Value of the option
|
|
639
|
-
*/
|
|
640
|
-
items: {
|
|
641
|
-
type: Array,
|
|
642
|
-
required: !0
|
|
643
|
-
},
|
|
644
|
-
/**
|
|
645
|
-
* Indicates if the elements options are inside a multi-level category
|
|
646
|
-
*/
|
|
647
|
-
isMultiLevel: { type: Boolean, default: !1 },
|
|
648
|
-
/**
|
|
649
|
-
* Flag that indicates that an external search it's being made
|
|
650
|
-
* to filter out the items inside the the multi-select listbox
|
|
651
|
-
*
|
|
652
|
-
* If enabled, hides the "Select all" checkbox in "multiple" mode.
|
|
653
|
-
*/
|
|
654
|
-
searching: { type: Boolean, default: !1 },
|
|
655
|
-
/**
|
|
656
|
-
* List of selected items.
|
|
657
|
-
* Providing an empty array will select no options.
|
|
658
|
-
*/
|
|
659
|
-
selectedItemsList: {
|
|
660
|
-
type: Array,
|
|
661
|
-
default: () => []
|
|
662
|
-
},
|
|
663
|
-
/**
|
|
664
|
-
* If enabled, dropdown will display non-selectable, static categories
|
|
665
|
-
*/
|
|
666
|
-
staticCategories: { type: Boolean, default: !1 }
|
|
667
|
-
},
|
|
668
|
-
emits: [
|
|
669
|
-
M.TOGGLE_CHECKBOX_SELECTION,
|
|
670
|
-
M.SELECT_CATEGORY,
|
|
671
|
-
M.UNSELECT_CATEGORY
|
|
672
|
-
],
|
|
673
|
-
setup(s, { emit: e }) {
|
|
674
|
-
const t = (r) => {
|
|
675
|
-
e(M.TOGGLE_CHECKBOX_SELECTION, r);
|
|
676
|
-
}, l = (r) => !!r.items, o = (r) => {
|
|
677
|
-
const m = s.isMultiLevel && s.searching;
|
|
678
|
-
return r.description && (!s.isMultiLevel || m);
|
|
679
|
-
}, n = (r) => r.items ? !!r.items.find((m) => s.selectedItemsList.includes(m.value)) : s.selectedItemsList.includes(r.value), a = (r, m) => {
|
|
680
|
-
if (l(m))
|
|
681
|
-
return e(r ? M.SELECT_CATEGORY : M.UNSELECT_CATEGORY, m);
|
|
682
|
-
t(m.value);
|
|
683
|
-
};
|
|
684
|
-
return {
|
|
685
|
-
// Values
|
|
686
|
-
conditionalClasses: c(() => ({
|
|
687
|
-
"b-listbox-multi-select-options__static-category-option": s.staticCategories,
|
|
688
|
-
"b-listbox-multi-select-options__category-option": s.categoryItems
|
|
689
|
-
})),
|
|
690
|
-
// Methods
|
|
691
|
-
isOptionSelected: n,
|
|
692
|
-
shouldShowDescription: o,
|
|
693
|
-
toggleCheckboxSelection: t,
|
|
694
|
-
selectSearch: a,
|
|
695
|
-
computedTabindex: (r) => r + 1 === s.focusedIndex ? 0 : -1,
|
|
696
|
-
// Enums
|
|
697
|
-
BentoListboxEvent: i,
|
|
698
|
-
ListboxMultiSelectOptionsEvent: M
|
|
699
|
-
};
|
|
700
|
-
}
|
|
701
|
-
});
|
|
702
|
-
var it = function() {
|
|
703
|
-
var e = this, t = e._self._c;
|
|
704
|
-
return e._self._setupProxy, t("div", e._l(e.items, function(l, o) {
|
|
705
|
-
return t("div", { key: `selected-${l.value}` }, [e.searching && e.isMultiLevel ? [t("bento-listbox-option", { staticClass: "b-listbox-multi-select-options", class: e.conditionalClasses, attrs: { disabled: e.isOptionDisabled ? e.isOptionDisabled(l) : null } }, [t("bento-checkbox", { attrs: { "model-value": e.isOptionSelected(l), "aria-label": l.label, disabled: e.isOptionDisabled ? e.isOptionDisabled(l) : null, value: l.value, tabindex: e.computedTabindex(o) }, on: { "update:model-value": (n) => e.selectSearch(n, l) } }), e._t("default", function() {
|
|
706
|
-
return [t("span", { staticClass: "b-listbox-multi-select__option-text" }, [t("bento-typography", { attrs: { el: "span" } }, [e._v(e._s(l.label))]), e.shouldShowDescription(l) ? t("bento-typography", { staticClass: "b-listbox-multi-select__option-description", attrs: { el: "span" } }, [e._v(" " + e._s(l.description) + " ")]) : e._e()], 1)];
|
|
707
|
-
}, null, l)], 2)] : [l.items ? [t("listbox-multi-select-category", { attrs: { category: l, "static-categories": e.staticCategories, "is-option-disabled": e.isOptionDisabled, "selected-items-list": e.selectedItemsList, tabindex: e.computedTabindex(o) }, on: { "select-category": function(n) {
|
|
708
|
-
return e.$emit(e.ListboxMultiSelectOptionsEvent.SELECT_CATEGORY, l);
|
|
709
|
-
}, "unselect-category": function(n) {
|
|
710
|
-
return e.$emit(e.ListboxMultiSelectOptionsEvent.UNSELECT_CATEGORY, l);
|
|
711
|
-
} } }, [t("listbox-multi-select-options", { attrs: { "category-items": "", items: l.items, "is-option-disabled": e.isOptionDisabled, "focused-index": e.focusedIndex, "is-multi-level": e.isMultiLevel, "static-categories": e.staticCategories, "selected-items-list": e.selectedItemsList, searching: e.searching }, on: { "toggle-checkbox-selection": (n) => e.toggleCheckboxSelection(n) } })], 1)] : t("bento-listbox-option", { staticClass: "b-listbox-multi-select-options", class: e.conditionalClasses, attrs: { disabled: e.isOptionDisabled ? e.isOptionDisabled(l) : null } }, [t("bento-checkbox", { attrs: { "model-value": e.selectedItemsList, "aria-label": l.label, disabled: e.isOptionDisabled ? e.isOptionDisabled(l) : null, value: l.value, tabindex: e.computedTabindex(o) }, on: { "update:model-value": function(n) {
|
|
712
|
-
return e.toggleCheckboxSelection(l);
|
|
713
|
-
} } }), e._t("default", function() {
|
|
714
|
-
return [t("span", { staticClass: "b-listbox-multi-select__option-text" }, [t("bento-typography", { attrs: { el: "span" } }, [e._v(e._s(l.label))]), e.shouldShowDescription(l) ? t("bento-typography", { staticClass: "b-listbox-multi-select__option-description", attrs: { el: "span" } }, [e._v(" " + e._s(l.description) + " ")]) : e._e()], 1)];
|
|
715
|
-
}, null, l)], 2)]], 2);
|
|
716
|
-
}), 0);
|
|
717
|
-
}, ct = [], rt = /* @__PURE__ */ D(
|
|
718
|
-
at,
|
|
719
|
-
it,
|
|
720
|
-
ct,
|
|
721
|
-
!1,
|
|
722
|
-
null,
|
|
723
|
-
"18d7cecf"
|
|
724
|
-
);
|
|
725
|
-
const ut = rt.exports, dt = (s) => {
|
|
726
|
-
const e = c(() => {
|
|
727
|
-
var l;
|
|
728
|
-
return !!((l = s.value) != null && l.find(({ items: o }) => !!o));
|
|
729
|
-
}), t = c(() => {
|
|
730
|
-
var l;
|
|
731
|
-
return e.value ? (l = s.value) == null ? void 0 : l.reduce((o, n) => (n.items ? o.push(...n.items.flat()) : o.push(n), o), []) : s.value;
|
|
732
|
-
});
|
|
733
|
-
return {
|
|
734
|
-
isMultiLevelSelect: e,
|
|
735
|
-
flattenedItemsList: t
|
|
736
|
-
};
|
|
737
|
-
}, bt = {
|
|
738
|
-
"en-US": {
|
|
739
|
-
allSelected: "All selected ({total})",
|
|
740
|
-
numberOfTotalSelected: "{number} of {total} selected",
|
|
741
|
-
numbersSelected: "{number} selected",
|
|
742
|
-
selectAll: "Select all ({total})"
|
|
743
|
-
}
|
|
744
|
-
}, ft = { i18n: { messages: bt } }, vt = /* @__PURE__ */ P({
|
|
745
|
-
...ft,
|
|
746
|
-
__name: "listbox-multi-select",
|
|
747
|
-
props: {
|
|
748
|
-
hasMoreItems: { type: Boolean, default: !1 },
|
|
749
|
-
isOptionDisabled: { default: () => () => !1 },
|
|
750
|
-
items: null,
|
|
751
|
-
lazyLoadType: { default: "none" },
|
|
752
|
-
searching: { type: Boolean, default: !1 },
|
|
753
|
-
selectedValues: null,
|
|
754
|
-
staticCategories: { type: Boolean, default: !1 }
|
|
755
|
-
},
|
|
756
|
-
emits: ["select"],
|
|
757
|
-
setup(s, { emit: e }) {
|
|
758
|
-
const t = s, { t: l } = X(), o = Ce(), n = O(null), a = O(null), b = O(null), v = c(() => t.selectedValues.map(({ value: u }) => u)), { isMultiLevelSelect: r, flattenedItemsList: m } = dt(w(t, "items")), S = (u) => {
|
|
759
|
-
var h;
|
|
760
|
-
const g = t.isOptionDisabled(u), p = ((h = v.value) == null ? void 0 : h.includes(u.value)) || !1;
|
|
761
|
-
return { isDisabled: g, isPreSelected: p };
|
|
762
|
-
}, E = c(() => {
|
|
763
|
-
if (t.searching && r)
|
|
764
|
-
return t.items;
|
|
765
|
-
const u = m.value.filter((g) => {
|
|
766
|
-
const { isDisabled: p, isPreSelected: h } = S(g);
|
|
767
|
-
return p && h || !p;
|
|
768
|
-
});
|
|
769
|
-
return t.selectedValues.forEach((g) => {
|
|
770
|
-
u.find((p) => p.value === g.value) || u.push(g);
|
|
771
|
-
}), u;
|
|
772
|
-
}), A = c(
|
|
773
|
-
() => {
|
|
774
|
-
var u;
|
|
775
|
-
return (u = E.value) == null ? void 0 : u.filter((g) => {
|
|
776
|
-
var p;
|
|
777
|
-
return g.items && r.value && t.searching ? g.items.filter(
|
|
778
|
-
(y) => (t.selectedValues ?? []).includes(y.value)
|
|
779
|
-
).length === g.items.length : (p = v.value) == null ? void 0 : p.includes(g.value);
|
|
780
|
-
});
|
|
781
|
-
}
|
|
782
|
-
), T = () => r.value && !t.searching ? m.value.length : t.items.length, I = c(() => {
|
|
783
|
-
var h;
|
|
784
|
-
const u = E.value.length, g = T(), p = ((h = A.value) == null ? void 0 : h.length) || 0;
|
|
785
|
-
return p === 0 ? l("selectAll", { total: u }) : p === g ? l("allSelected", { total: g }) : p <= g ? l("numberOfTotalSelected", { number: p, total: g }) : l("numbersSelected", { number: p });
|
|
786
|
-
}), f = (u) => {
|
|
787
|
-
const g = (h) => {
|
|
788
|
-
const { isDisabled: y, isPreSelected: N } = S(h);
|
|
789
|
-
return y && N || !y;
|
|
790
|
-
}, p = u.filter(g).filter((h) => !v.value.includes(h.value));
|
|
791
|
-
e("select", [...t.selectedValues, ...p]);
|
|
792
|
-
}, d = (u) => {
|
|
793
|
-
const g = (y) => {
|
|
794
|
-
const { isDisabled: N, isPreSelected: pe } = S(y);
|
|
795
|
-
return !(N && pe);
|
|
796
|
-
}, p = u.filter(g).map(({ value: y }) => y), h = t.selectedValues.filter((y) => !(p != null && p.includes(y.value)));
|
|
797
|
-
e("select", h);
|
|
798
|
-
}, C = () => {
|
|
799
|
-
f(m.value);
|
|
800
|
-
}, L = () => {
|
|
801
|
-
d(m.value);
|
|
802
|
-
}, { isAllSelected: _, isIndeterminate: x, toggleSelectAll: B } = fe(
|
|
803
|
-
A,
|
|
804
|
-
E,
|
|
805
|
-
C,
|
|
806
|
-
L
|
|
807
|
-
), $ = (u) => {
|
|
808
|
-
f(u.items);
|
|
809
|
-
}, Y = (u) => {
|
|
810
|
-
d(u.items);
|
|
811
|
-
}, W = (u, g) => {
|
|
812
|
-
let p = !1;
|
|
813
|
-
const h = t.selectedValues.filter(({ value: y }) => g.value === y ? (p = !0, !1) : !0);
|
|
814
|
-
p || h.push(g), e(u, h);
|
|
815
|
-
}, K = c(() => {
|
|
816
|
-
if (!r.value)
|
|
817
|
-
return t.selectedValues;
|
|
818
|
-
const u = (y) => v.value.includes(y.value), g = (y) => !t.staticCategories && y.every((N) => u(N));
|
|
819
|
-
return t.items.flatMap(
|
|
820
|
-
(y) => y.items && !g(y.items) ? y.items : y
|
|
821
|
-
).filter((y) => y.items ? !0 : u(y));
|
|
822
|
-
}), R = c(() => {
|
|
823
|
-
var p, h, y, N;
|
|
824
|
-
const u = ["automatic", "button"].includes(t.lazyLoadType), g = ((p = t.selectedValues) == null ? void 0 : p.length) > 0 && ((h = A.value) == null ? void 0 : h.length) !== ((y = m.value) == null ? void 0 : y.length);
|
|
825
|
-
return u && t.hasMoreItems ? !!((N = t.selectedValues) != null && N.length) : g;
|
|
826
|
-
}), U = c(() => ["automatic", "button"].includes(t.lazyLoadType) ? !t.hasMoreItems : !0), Q = c(
|
|
827
|
-
() => n.value ? [n.value] : []
|
|
828
|
-
), ee = c(
|
|
829
|
-
() => {
|
|
830
|
-
var u, g;
|
|
831
|
-
return (g = (u = b.value) == null ? void 0 : u.$children) != null && g.length ? b.value.$children : [];
|
|
832
|
-
}
|
|
833
|
-
), te = c(() => ({ label: I, value: _ })), se = c(() => [te, ...w(t, "items").value]), le = (u) => {
|
|
834
|
-
var h;
|
|
835
|
-
const g = [...Q.value, ...ee.value], p = g[u].$el;
|
|
836
|
-
p.tagName === "LABEL" ? p.focus() : (h = p.querySelector("label")) == null || h.focus(), g[u].$el.focus();
|
|
837
|
-
}, {
|
|
838
|
-
moveToNextElement: ne,
|
|
839
|
-
moveToPreviousElement: oe,
|
|
840
|
-
moveToFirstElement: ae,
|
|
841
|
-
moveToLastElement: ie,
|
|
842
|
-
preventDefault: q,
|
|
843
|
-
focusedIndex: me
|
|
844
|
-
} = ve(
|
|
845
|
-
{
|
|
846
|
-
items: O(se),
|
|
847
|
-
isOptionDisabled: t.isOptionDisabled,
|
|
848
|
-
hasStaticCategories: w(t, "staticCategories")
|
|
849
|
-
},
|
|
850
|
-
le
|
|
851
|
-
), _e = {
|
|
852
|
-
[k.ARROW_UP]: (u) => oe(u),
|
|
853
|
-
[k.ARROW_DOWN]: (u) => ne(u),
|
|
854
|
-
[k.HOME]: ae,
|
|
855
|
-
[k.END]: ie
|
|
856
|
-
}, ge = {
|
|
857
|
-
[k.ARROW_UP]: q,
|
|
858
|
-
[k.ARROW_DOWN]: q
|
|
859
|
-
};
|
|
860
|
-
return { __sfc: !0, props: t, emit: e, t: l, slots: o, selectAllListboxItemsRef: n, selectedListboxItemsRef: a, listboxItemsRef: b, selectedItemsList: v, isMultiLevelSelect: r, flattenedItemsList: m, optionStates: S, enabledItems: E, visibleSelectedList: A, calculateTotalItems: T, selectAllCheckboxText: I, selectAll: f, unselectAll: d, selectAllItems: C, unselectAllItems: L, isAllSelected: _, isIndeterminate: x, toggleSelectAll: B, selectAllCategory: $, unselectAllCategory: Y, toggleCheckboxSelection: W, selectedOptions: K, showSelectedItems: R, showSelectAllCheckbox: U, computedSelectAllListboxItemsRefs: Q, computedlistboxItems: ee, computedselectAllItemRefs: te, computedItems: se, focusItem: le, moveToNextElement: ne, moveToPreviousElement: oe, moveToFirstElement: ae, moveToLastElement: ie, preventDefault: q, focusedIndex: me, listboxListeners: _e, chipsSectionListeners: ge, BentoCheckbox: J, BentoTypography: G, BentoChip: Ee, BentoListboxOption: V, ListboxMultiSelectOptions: ut, vBentoKeyboardNavigationDirective: Z, BentoListboxEvent: i };
|
|
861
|
-
}
|
|
862
|
-
});
|
|
863
|
-
var mt = function() {
|
|
864
|
-
var e = this, t = e._self._c, l = e._self._setupProxy;
|
|
865
|
-
return t("div", { staticClass: "b-listbox-multi-select" }, [l.showSelectedItems ? t("div", [t("ul", e._g({ directives: [{ name: "bento-keyboard-navigation-directive", rawName: "v-bento-keyboard-navigation-directive" }], staticClass: "b-listbox-multi-select__chips" }, l.chipsSectionListeners), e._l(l.selectedOptions, function(o) {
|
|
866
|
-
return t("li", { key: o.value }, [t(l.BentoChip, { ref: "selectedListboxItemsRef", refInFor: !0, attrs: { disabled: e.isOptionDisabled(o), label: o.label, condensed: "" }, on: { click: function(n) {
|
|
867
|
-
o.items ? l.unselectAllCategory(o) : l.toggleCheckboxSelection("select", o);
|
|
868
|
-
} } })], 1);
|
|
869
|
-
}), 0), t("hr", { staticClass: "b-listbox-multi-select__divider" })]) : e._e(), t("div", e._g({ directives: [{ name: "bento-keyboard-navigation-directive", rawName: "v-bento-keyboard-navigation-directive" }] }, l.listboxListeners), [l.showSelectAllCheckbox ? t(l.BentoListboxOption, { ref: "selectAllListboxItemsRef", staticClass: "b-listbox-multi-select__option" }, [t(l.BentoCheckbox, { attrs: { "aria-label": l.selectAllCheckboxText, "model-value": l.isAllSelected, indeterminate: l.isIndeterminate, tabindex: l.focusedIndex === 0 ? 0 : -1 }, on: { "update:model-value": l.toggleSelectAll } }), t(l.BentoTypography, { attrs: { el: "span", "aria-hidden": "true" } }, [e._v(" " + e._s(l.selectAllCheckboxText) + " ")])], 1) : e._e(), l.showSelectAllCheckbox ? t("hr", { staticClass: "b-listbox-multi-select__divider" }) : e._e(), t(l.ListboxMultiSelectOptions, { ref: "listboxItemsRef", attrs: { items: e.items, "is-option-disabled": e.isOptionDisabled, "is-multi-level": l.isMultiLevelSelect, "static-categories": e.staticCategories, searching: e.searching, "selected-items-list": l.selectedItemsList, "focused-index": l.focusedIndex }, on: { "toggle-checkbox-selection": function(o) {
|
|
870
|
-
return l.toggleCheckboxSelection("select", o);
|
|
871
|
-
}, "select-category": l.selectAllCategory, "unselect-category": l.unselectAllCategory, "space-pressed": function(o) {
|
|
872
|
-
return l.toggleCheckboxSelection(l.BentoListboxEvent.SPACE, o);
|
|
873
|
-
}, "tab-pressed": function(o) {
|
|
874
|
-
return l.toggleCheckboxSelection(l.BentoListboxEvent.TAB, o);
|
|
875
|
-
}, "enter-pressed": function(o) {
|
|
876
|
-
return l.toggleCheckboxSelection(l.BentoListboxEvent.ENTER, o);
|
|
877
|
-
} }, scopedSlots: e._u([e._l(l.slots, function(o, n) {
|
|
878
|
-
return { key: n, fn: function(a) {
|
|
879
|
-
return [e._t(n, null, null, a)];
|
|
880
|
-
} };
|
|
881
|
-
})], null, !0) })], 1)]);
|
|
882
|
-
}, _t = [], gt = /* @__PURE__ */ D(
|
|
883
|
-
vt,
|
|
884
|
-
mt,
|
|
885
|
-
_t,
|
|
886
|
-
!1,
|
|
887
|
-
null,
|
|
888
|
-
"57c7482e"
|
|
889
|
-
);
|
|
890
|
-
const ue = gt.exports, pt = {
|
|
891
|
-
"en-US": {
|
|
892
|
-
loading: "Loading",
|
|
893
|
-
showMore: "Show more"
|
|
894
|
-
},
|
|
895
|
-
"ja-JP": {
|
|
896
|
-
loading: "読み込み中",
|
|
897
|
-
showMore: "表示内容を増やす"
|
|
898
|
-
},
|
|
899
|
-
"pt-BR": {
|
|
900
|
-
loading: "Carregando",
|
|
901
|
-
showMore: "Mostrar mais"
|
|
902
|
-
}
|
|
903
|
-
}, yt = 36, Ct = P({
|
|
904
|
-
name: "bento-listbox",
|
|
905
|
-
components: {
|
|
906
|
-
BentoEmptyState: he,
|
|
907
|
-
BentoListboxSingleSelect: Qe,
|
|
908
|
-
BentoListboxMultiSelect: ue,
|
|
909
|
-
BentoTypography: G,
|
|
910
|
-
BentoLoadingIndicator: Se,
|
|
911
|
-
BentoLoadingButton: Te
|
|
912
|
-
},
|
|
913
|
-
directives: { BentoKeyboardNavigationDirective: Z },
|
|
914
|
-
i18n: { messages: pt },
|
|
915
|
-
props: {
|
|
916
|
-
/**
|
|
917
|
-
* Defines a string value that labels an interactive element.
|
|
918
|
-
*/
|
|
919
|
-
ariaLabel: { type: String, default: null },
|
|
920
|
-
/**
|
|
921
|
-
* Empty state props that will be used with the inner empty state component to be displayed when no search results are found.
|
|
922
|
-
*/
|
|
923
|
-
emptyState: {
|
|
924
|
-
type: Object,
|
|
925
|
-
default: void 0
|
|
926
|
-
},
|
|
927
|
-
/**
|
|
928
|
-
* Indicates whether there are more items to load
|
|
929
|
-
*/
|
|
930
|
-
hasMoreItems: { type: Boolean, default: !1 },
|
|
931
|
-
/**
|
|
932
|
-
* Identifies the listbox whose contents are controlled by the the combobox on which the aria-controls attribute is set.
|
|
933
|
-
*/
|
|
934
|
-
id: { type: String, required: !0 },
|
|
935
|
-
/**
|
|
936
|
-
* Function that allows the options to be disabled
|
|
937
|
-
*
|
|
938
|
-
* @type {BentoListboxIsOptionDisabled}
|
|
939
|
-
* @param {BentoListboxOptionItem} option - Listbox option object
|
|
940
|
-
* @param {string} option.label - Option's label text
|
|
941
|
-
* @param {string|number} option.value - Option's value
|
|
942
|
-
* @param {unknown} option.data - Option's extra data to be passed to the default slot
|
|
943
|
-
*/
|
|
944
|
-
isOptionDisabled: {
|
|
945
|
-
type: Function,
|
|
946
|
-
default: () => {
|
|
947
|
-
}
|
|
948
|
-
},
|
|
949
|
-
/**
|
|
950
|
-
* The option elements to populate the listbox with.
|
|
951
|
-
* It must be an array of {@see BentoListboxOptionItem }
|
|
952
|
-
* * @property {string} value.label - Text to be displayed in the option
|
|
953
|
-
* * @property {string,number} value.value - Value of the option
|
|
954
|
-
*/
|
|
955
|
-
items: {
|
|
956
|
-
type: Array,
|
|
957
|
-
required: !0
|
|
958
|
-
},
|
|
959
|
-
/**
|
|
960
|
-
* Indicates if new options are lazy loading.
|
|
961
|
-
*/
|
|
962
|
-
loading: { type: Boolean, default: !1 },
|
|
963
|
-
/**
|
|
964
|
-
* The type of `Lazy Load`.
|
|
965
|
-
* Type "automatic" will enable infinite scrolling
|
|
966
|
-
* Type "button" will enable lazy loading with "Show more" button
|
|
967
|
-
*/
|
|
968
|
-
lazyLoadType: {
|
|
969
|
-
type: String,
|
|
970
|
-
default: F.NONE,
|
|
971
|
-
validator: (s) => Object.values(F).includes(s)
|
|
972
|
-
},
|
|
973
|
-
/**
|
|
974
|
-
* Indicates the listbox is loading filtered items.
|
|
975
|
-
*/
|
|
976
|
-
componentLoading: { type: Boolean, default: !1 },
|
|
977
|
-
/**
|
|
978
|
-
* If enabled, the user will be able to select multiple items.
|
|
979
|
-
*/
|
|
980
|
-
multiple: { type: Boolean, default: !1 },
|
|
981
|
-
/**
|
|
982
|
-
* If enabled, dropdown will display non-selectable, static categories
|
|
983
|
-
*/
|
|
984
|
-
staticCategories: { type: Boolean, default: !1 },
|
|
985
|
-
/**
|
|
986
|
-
* Messaged displayed when no items are listed in the listbox
|
|
987
|
-
*/
|
|
988
|
-
noResultsMessage: { type: String, required: !0 },
|
|
989
|
-
/**
|
|
990
|
-
* Flag that indicates that an external search it's being made
|
|
991
|
-
* to filter out the items inside the the multi-select listbox
|
|
992
|
-
*
|
|
993
|
-
* If enabled, hides the "Select all" checkbox in "multiple" mode.
|
|
994
|
-
*/
|
|
995
|
-
searching: ue.props.searching,
|
|
996
|
-
/**
|
|
997
|
-
* The `input` value.
|
|
998
|
-
* Providing an empty string or empty array will select no options.
|
|
999
|
-
* Set to an empty string `''` if you don't want any of the available options to be selected for single select
|
|
1000
|
-
*/
|
|
1001
|
-
selectedValue: {
|
|
1002
|
-
type: Array,
|
|
1003
|
-
default: () => []
|
|
1004
|
-
},
|
|
1005
|
-
/**
|
|
1006
|
-
* Enables virtual scrolling if set to true or by providing an object with itemHeight function.
|
|
1007
|
-
* The itemHeight function is used to calculate the height of rendered item given it's index.
|
|
1008
|
-
*/
|
|
1009
|
-
virtualScroll: {
|
|
1010
|
-
type: [Boolean, Object],
|
|
1011
|
-
default: !1
|
|
1012
|
-
}
|
|
1013
|
-
},
|
|
1014
|
-
emits: [
|
|
1015
|
-
i.SELECT,
|
|
1016
|
-
i.SPACE,
|
|
1017
|
-
i.SHOW_MORE,
|
|
1018
|
-
i.ENTER,
|
|
1019
|
-
i.ESCAPE,
|
|
1020
|
-
i.TAB
|
|
1021
|
-
],
|
|
1022
|
-
setup(s, { emit: e, slots: t }) {
|
|
1023
|
-
const l = O([]), o = w(s, "items"), { t: n } = X(), a = c(() => s.lazyLoadType !== F.AUTOMATIC), b = c(() => s.lazyLoadType === F.AUTOMATIC), v = () => {
|
|
1024
|
-
var R;
|
|
1025
|
-
return typeof (s == null ? void 0 : s.virtualScroll) == "object" && ((R = s == null ? void 0 : s.virtualScroll) != null && R.itemHeight) ? s.virtualScroll.itemHeight : yt;
|
|
1026
|
-
}, {
|
|
1027
|
-
containerRef: r,
|
|
1028
|
-
containerProps: m,
|
|
1029
|
-
onScroll: S,
|
|
1030
|
-
list: E,
|
|
1031
|
-
wrapperProps: A
|
|
1032
|
-
} = Ie(o, {
|
|
1033
|
-
itemHeight: v(),
|
|
1034
|
-
// Disable virtual scrolling if not enabled or if lazy loading is enabled or if multi-select
|
|
1035
|
-
disabled: (s == null ? void 0 : s.multiple) || (s == null ? void 0 : s.virtualScroll) === !1 || (s == null ? void 0 : s.lazyLoadType) !== "none"
|
|
1036
|
-
}), T = c(
|
|
1037
|
-
() => s.componentLoading !== void 0 || a.value ? "true" : void 0
|
|
1038
|
-
), I = c(
|
|
1039
|
-
() => a.value && s.loading || s.componentLoading ? "true" : "false"
|
|
1040
|
-
), f = c(
|
|
1041
|
-
() => a.value || s.componentLoading !== void 0 ? "polite" : void 0
|
|
1042
|
-
), d = (R) => (U) => {
|
|
1043
|
-
e(R, U);
|
|
1044
|
-
}, C = () => {
|
|
1045
|
-
e(i.SHOW_MORE);
|
|
1046
|
-
}, L = xe(() => {
|
|
1047
|
-
const R = r.value;
|
|
1048
|
-
if (!R)
|
|
1049
|
-
return;
|
|
1050
|
-
const U = Math.round(R.scrollTop) + R.clientHeight >= R.scrollHeight;
|
|
1051
|
-
s.hasMoreItems && U && !s.loading && C();
|
|
1052
|
-
}), _ = () => {
|
|
1053
|
-
b.value ? L() : S();
|
|
1054
|
-
}, x = c(() => {
|
|
1055
|
-
var R;
|
|
1056
|
-
return ((R = s.items) == null ? void 0 : R.length) === 0;
|
|
1057
|
-
}), B = c(
|
|
1058
|
-
() => s.lazyLoadType === F.BUTTON && s.hasMoreItems
|
|
1059
|
-
), $ = c(
|
|
1060
|
-
() => s.loading ? ce.LOADING : ce.START
|
|
1061
|
-
), Y = c(() => s.loading ? n("loading") : n("showMore")), W = c(() => ({
|
|
1062
|
-
...s.emptyState,
|
|
1063
|
-
variant: "condensed"
|
|
1064
|
-
})), K = {
|
|
1065
|
-
[i.SELECT]: d(i.SELECT),
|
|
1066
|
-
[i.SPACE]: d(i.SPACE),
|
|
1067
|
-
[i.TAB]: d(i.TAB),
|
|
1068
|
-
[i.ENTER]: d(i.ENTER)
|
|
1069
|
-
};
|
|
1070
|
-
return {
|
|
1071
|
-
// Refs
|
|
1072
|
-
listboxRef: r,
|
|
1073
|
-
listboxItemRef: l,
|
|
1074
|
-
// a11y
|
|
1075
|
-
ariaAtomic: T,
|
|
1076
|
-
ariaBusy: I,
|
|
1077
|
-
ariaLive: f,
|
|
1078
|
-
// Values
|
|
1079
|
-
containerProps: m,
|
|
1080
|
-
isSearchResultEmpty: x,
|
|
1081
|
-
limitedEmptyStateProps: W,
|
|
1082
|
-
loadingButtonState: $,
|
|
1083
|
-
slots: t,
|
|
1084
|
-
shouldDisplayShowMoreButton: B,
|
|
1085
|
-
showMoreButtonText: Y,
|
|
1086
|
-
virtualisedItems: E,
|
|
1087
|
-
wrapperProps: A,
|
|
1088
|
-
// Enums
|
|
1089
|
-
BentoKeyboardNavigationKeyDownEvent: k,
|
|
1090
|
-
BentoListboxEvent: i,
|
|
1091
|
-
// Methods
|
|
1092
|
-
onListboxContainerScroll: _,
|
|
1093
|
-
onOptionSelected: d,
|
|
1094
|
-
emitShowMore: C,
|
|
1095
|
-
listboxListeners: K
|
|
1096
|
-
};
|
|
1097
|
-
}
|
|
1098
|
-
});
|
|
1099
|
-
var St = function() {
|
|
1100
|
-
var l;
|
|
1101
|
-
var e = this, t = e._self._c;
|
|
1102
|
-
return e._self._setupProxy, t("div", { directives: [{ name: "bento-keyboard-navigation-directive", rawName: "v-bento-keyboard-navigation-directive" }], ref: "listboxRef", staticClass: "b-listbox", style: (l = e.containerProps) == null ? void 0 : l.style, attrs: { id: e.id, role: "listbox", tabindex: "-1", "aria-busy": e.ariaBusy, "aria-atomic": e.ariaAtomic, "aria-label": e.ariaLabel, "aria-live": e.ariaLive }, on: { scroll: e.onListboxContainerScroll } }, [t("div", e._b({}, "div", e.wrapperProps, !1), [e.componentLoading ? t("div", { staticClass: "b-listbox__loading-filtered-items" }, [t("bento-loading-indicator")], 1) : e.isSearchResultEmpty ? t("div", { staticClass: "b-listbox__empty-search-message" }, [e.emptyState ? t("bento-empty-state", e._b({}, "bento-empty-state", e.limitedEmptyStateProps, !1)) : t("bento-typography", { attrs: { el: "span" } }, [e._v(e._s(e.noResultsMessage))])], 1) : [e.multiple ? [t("bento-listbox-multi-select", e._g({ 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(o, n) {
|
|
1103
|
-
return { key: n, fn: function(a) {
|
|
1104
|
-
return [e._t(n, null, null, a)];
|
|
1105
|
-
} };
|
|
1106
|
-
})], null, !0) }, e.listboxListeners))] : [t("bento-listbox-single-select", e._g({ 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(o, n) {
|
|
1107
|
-
return { key: n, fn: function(a) {
|
|
1108
|
-
return [e._t(n, null, null, a)];
|
|
1109
|
-
} };
|
|
1110
|
-
})], null, !0) }, e.listboxListeners))], e.shouldDisplayShowMoreButton ? t("div", { staticClass: "b-listbox__lazy-load" }, [t("bento-loading-button", { attrs: { state: e.loadingButtonState, variant: "secondary" }, on: { "!click": function(o) {
|
|
1111
|
-
return e.emitShowMore.apply(null, arguments);
|
|
1112
|
-
} } }, [e._v(" " + e._s(e.showMoreButtonText) + " ")])], 1) : e.loading ? t("div", { staticClass: "b-listbox__lazy-load" }, [t("bento-loading-indicator")], 1) : e._e()]], 2)]);
|
|
1113
|
-
}, ht = [], xt = /* @__PURE__ */ D(
|
|
1114
|
-
Ct,
|
|
1115
|
-
St,
|
|
1116
|
-
ht,
|
|
1117
|
-
!1,
|
|
1118
|
-
null,
|
|
1119
|
-
"37a9ab16"
|
|
1120
|
-
);
|
|
1121
|
-
const Ft = xt.exports, H = (s, e) => {
|
|
1122
|
-
for (const t of s) {
|
|
1123
|
-
if (t.value === e)
|
|
1124
|
-
return t;
|
|
1125
|
-
if (t.items) {
|
|
1126
|
-
const l = H(t.items, e);
|
|
1127
|
-
if (l)
|
|
1128
|
-
return l;
|
|
1129
|
-
}
|
|
1130
|
-
}
|
|
1131
|
-
return null;
|
|
1132
|
-
}, Gt = (s, e, t) => {
|
|
1133
|
-
const l = O([]), o = O(), n = (v) => {
|
|
1134
|
-
t.value ? o.value = v.map(({ value: r }) => r) : o.value = v.length > 0 ? v[0].value : null;
|
|
1135
|
-
}, a = (v) => {
|
|
1136
|
-
l.value = v, n(v);
|
|
1137
|
-
}, b = () => {
|
|
1138
|
-
l.value = [], o.value = null;
|
|
1139
|
-
};
|
|
1140
|
-
return be(
|
|
1141
|
-
() => e.value,
|
|
1142
|
-
() => {
|
|
1143
|
-
if (!e.value && e.value !== 0) {
|
|
1144
|
-
b();
|
|
1145
|
-
return;
|
|
1146
|
-
}
|
|
1147
|
-
const v = !Array.isArray(e.value), r = [...l.value];
|
|
1148
|
-
b();
|
|
1149
|
-
const m = (S) => {
|
|
1150
|
-
let E = H(s.value, S);
|
|
1151
|
-
E || (E = H(r, S)), E || (E = { value: S, label: S.toString() }), l.value.push(E);
|
|
1152
|
-
};
|
|
1153
|
-
if (v) {
|
|
1154
|
-
const S = e.value;
|
|
1155
|
-
m(S), n(l.value);
|
|
1156
|
-
return;
|
|
1157
|
-
}
|
|
1158
|
-
e.value.forEach(m), n(l.value);
|
|
1159
|
-
},
|
|
1160
|
-
{ immediate: !0 }
|
|
1161
|
-
), {
|
|
1162
|
-
// Values
|
|
1163
|
-
cachedSelectedListboxOptions: l,
|
|
1164
|
-
cachedListboxSelectedValues: o,
|
|
1165
|
-
// Methods
|
|
1166
|
-
resetCache: b,
|
|
1167
|
-
setCachedValues: a
|
|
1168
|
-
};
|
|
1169
|
-
};
|
|
1170
|
-
export {
|
|
1171
|
-
F as B,
|
|
1172
|
-
i as a,
|
|
1173
|
-
Ft as b,
|
|
1174
|
-
Gt as c,
|
|
1175
|
-
dt as u
|
|
1176
|
-
};
|
|
1177
|
-
//# sourceMappingURL=use-cached-selected-values.C6VRhL5_.js.map
|