@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,818 +0,0 @@
|
|
|
1
|
-
import { ref as C, watch as ue, computed as p, defineComponent as A, useSlots as pe, toRefs as fe, nextTick as L, useAttrs as Le, toRef as x, inject as Oe } from "vue";
|
|
2
|
-
import { d as ie, B as Ee } from "./typography.J1v_SPG3.js";
|
|
3
|
-
import { g as P } from "./generate-uid.NJ8tVoha.js";
|
|
4
|
-
import { u as De } from "./aria-label.CaUURpnB.js";
|
|
5
|
-
import { u as V } from "./i18n.BQkEbtPM.js";
|
|
6
|
-
import { u as Be } from "./use-form-layout-loading.D3lALhtC.js";
|
|
7
|
-
import { a as U, b as M, c as Ie, B as k, D as Te } from "./dropdown-default-textbox.AUsF-RIc.js";
|
|
8
|
-
import { u as Ne } from "./use-has-slot.C9lQZ6nz.js";
|
|
9
|
-
import { a as u, b as H, B as J, c as Ae, u as Re } from "./use-cached-selected-values.C6VRhL5_.js";
|
|
10
|
-
import { B as D, a as $e } from "./keyboard-navigation.pB8weElW.js";
|
|
11
|
-
import { B as Me } from "./directive.Cbdox5VL.js";
|
|
12
|
-
import { F as Pe, E as ke } from "./error-message.BM8Y6-u5.js";
|
|
13
|
-
import { P as re } from "./popper-container.DUNt7nKd.js";
|
|
14
|
-
import { B as Fe } from "./popover.K53VtitI.js";
|
|
15
|
-
import { n as F } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
|
|
16
|
-
/* empty css */
|
|
17
|
-
import { s as q } from "./events.CMzGybJJ.js";
|
|
18
|
-
import "../assets/dropdown.css";
|
|
19
|
-
const Ke = {
|
|
20
|
-
"en-US": {
|
|
21
|
-
apply: "Apply",
|
|
22
|
-
cancel: "Cancel",
|
|
23
|
-
noOptionsMatchThisSearch: "No options match this search"
|
|
24
|
-
},
|
|
25
|
-
"ja-JP": {
|
|
26
|
-
apply: "適用",
|
|
27
|
-
cancel: "キャンセル"
|
|
28
|
-
},
|
|
29
|
-
"pt-BR": {
|
|
30
|
-
apply: "Aplicar",
|
|
31
|
-
cancel: "Cancelar"
|
|
32
|
-
}
|
|
33
|
-
}, ze = (a, t, o, e) => {
|
|
34
|
-
const n = C(a.value), { t: l } = V();
|
|
35
|
-
ue(a, () => {
|
|
36
|
-
n.value = a.value;
|
|
37
|
-
});
|
|
38
|
-
const s = p(
|
|
39
|
-
() => JSON.stringify(n.value) === JSON.stringify(a.value)
|
|
40
|
-
), i = () => {
|
|
41
|
-
e(u.SELECT, n.value), e(u.CLOSE_DROPDOWN);
|
|
42
|
-
}, c = () => {
|
|
43
|
-
n.value = a.value, e(u.CLOSE_DROPDOWN);
|
|
44
|
-
}, m = () => {
|
|
45
|
-
o.value && t.value && (n.value = a.value);
|
|
46
|
-
}, r = p(() => [
|
|
47
|
-
{
|
|
48
|
-
title: l("apply"),
|
|
49
|
-
event: i,
|
|
50
|
-
disabled: s.value
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
title: l("cancel"),
|
|
54
|
-
event: c
|
|
55
|
-
}
|
|
56
|
-
]), d = (y) => {
|
|
57
|
-
n.value = y, t.value || e(u.SELECT, y);
|
|
58
|
-
}, g = (y) => {
|
|
59
|
-
d(y), e(u.TAB);
|
|
60
|
-
}, h = (y) => {
|
|
61
|
-
d(y), e(u.ENTER);
|
|
62
|
-
}, v = (y) => {
|
|
63
|
-
d(y), e(u.SPACE);
|
|
64
|
-
}, O = () => {
|
|
65
|
-
c(), e(u.ESCAPE);
|
|
66
|
-
}, S = () => {
|
|
67
|
-
e(u.SHOW_MORE);
|
|
68
|
-
}, w = {
|
|
69
|
-
[u.SELECT]: d,
|
|
70
|
-
[u.SHOW_MORE]: S,
|
|
71
|
-
[u.TAB]: g,
|
|
72
|
-
[u.SPACE]: v,
|
|
73
|
-
[u.ENTER]: h
|
|
74
|
-
};
|
|
75
|
-
return {
|
|
76
|
-
// Values
|
|
77
|
-
actions: r,
|
|
78
|
-
internalSelectedValue: n,
|
|
79
|
-
// Methods
|
|
80
|
-
listeners: w,
|
|
81
|
-
onEscapeKey: O,
|
|
82
|
-
onOutsideDropdownClick: m
|
|
83
|
-
};
|
|
84
|
-
}, je = A({
|
|
85
|
-
i18n: { messages: Ke },
|
|
86
|
-
name: "bento-dropdown-options-container"
|
|
87
|
-
}), We = /* @__PURE__ */ A({
|
|
88
|
-
...je,
|
|
89
|
-
props: {
|
|
90
|
-
/**
|
|
91
|
-
* Defines a string value that labels an interactive element.
|
|
92
|
-
*/
|
|
93
|
-
ariaLabel: { type: String, default: null },
|
|
94
|
-
/**
|
|
95
|
-
* Indicates that dropdown items are loading
|
|
96
|
-
*/
|
|
97
|
-
componentLoading: { type: Boolean, default: !1 },
|
|
98
|
-
/**
|
|
99
|
-
* Empty state props used with the inner empty state component which is displayed when no search results are found.
|
|
100
|
-
*/
|
|
101
|
-
emptyState: {
|
|
102
|
-
type: Object,
|
|
103
|
-
default: void 0
|
|
104
|
-
},
|
|
105
|
-
/**
|
|
106
|
-
* Disables dropdown functionality
|
|
107
|
-
*/
|
|
108
|
-
disabled: { type: Boolean, default: !1 },
|
|
109
|
-
/**
|
|
110
|
-
* Indicates whether there are more items to load
|
|
111
|
-
*/
|
|
112
|
-
hasMoreItems: { type: Boolean, default: !1 },
|
|
113
|
-
/**
|
|
114
|
-
* Identifies the listbox whose contents are controlled by the the combobox on which the aria-controls attribute is set.
|
|
115
|
-
*/
|
|
116
|
-
id: { type: String, required: !0 },
|
|
117
|
-
/**
|
|
118
|
-
* Function that allows the options to be disabled
|
|
119
|
-
*
|
|
120
|
-
* @type {BentoDropdownIsOptionDisabled}
|
|
121
|
-
* @param {BentoDropdownOptionItem} option - Dropdown option object
|
|
122
|
-
* @param {string} option.label - Option's label text
|
|
123
|
-
* @param {string|number} option.value - Option's value
|
|
124
|
-
* @param {unknown} option.data - Option's extra data to be passed to the default slot
|
|
125
|
-
*/
|
|
126
|
-
isOptionDisabled: {
|
|
127
|
-
type: Function,
|
|
128
|
-
default: void 0
|
|
129
|
-
},
|
|
130
|
-
/**
|
|
131
|
-
* The option elements to populate the dropdown with.
|
|
132
|
-
* It must be an array of {@see BentoDropdownOptionItem }
|
|
133
|
-
* * @property {string} value.label - Text to be displayed in the option
|
|
134
|
-
* * @property {string,number} value.value - Value of the option
|
|
135
|
-
*/
|
|
136
|
-
items: {
|
|
137
|
-
type: Array,
|
|
138
|
-
required: !0
|
|
139
|
-
},
|
|
140
|
-
/**
|
|
141
|
-
* The type of `Lazy Load`.
|
|
142
|
-
* Type "automatic" will enable infinite scrolling
|
|
143
|
-
* Type "button" will enable lazy loading with "Show more" button
|
|
144
|
-
*/
|
|
145
|
-
lazyLoadType: {
|
|
146
|
-
type: String,
|
|
147
|
-
default: J.AUTOMATIC,
|
|
148
|
-
validator: (a) => Object.values(J).includes(a)
|
|
149
|
-
},
|
|
150
|
-
/**
|
|
151
|
-
* Indicates if new options are lazy loading.
|
|
152
|
-
*/
|
|
153
|
-
loading: { type: Boolean, default: !1 },
|
|
154
|
-
/**
|
|
155
|
-
* If enabled, the user will be able to select multiple items.
|
|
156
|
-
*/
|
|
157
|
-
multiple: { type: Boolean, default: !1 },
|
|
158
|
-
/**
|
|
159
|
-
* Indicates if the dropdown is open so that
|
|
160
|
-
* the container can be displayed.
|
|
161
|
-
*/
|
|
162
|
-
open: { type: Boolean, required: !0 },
|
|
163
|
-
/**
|
|
164
|
-
* The `input` value.
|
|
165
|
-
* Providing an empty string or empty array will select no options.
|
|
166
|
-
* Set to an empty string `''` if you don't want any of the available options to be selected for single select
|
|
167
|
-
*/
|
|
168
|
-
selectedValue: {
|
|
169
|
-
type: Array,
|
|
170
|
-
default: null
|
|
171
|
-
},
|
|
172
|
-
/**
|
|
173
|
-
* Flag that indicates that an external search it's being made
|
|
174
|
-
* to filter out the items inside the the multi-select listbox
|
|
175
|
-
*
|
|
176
|
-
* If enabled, hides the "Select all" checkbox in "multiple" mode.
|
|
177
|
-
*/
|
|
178
|
-
searching: H.props.searching,
|
|
179
|
-
/**
|
|
180
|
-
* If enabled, dropdown will display non-selectable, static categories
|
|
181
|
-
*/
|
|
182
|
-
staticCategories: { type: Boolean, default: !1 },
|
|
183
|
-
/**
|
|
184
|
-
* Reference to the DOM element or Vue component for positioning
|
|
185
|
-
* the Dropdown container.
|
|
186
|
-
*/
|
|
187
|
-
targetElement: { type: re.props.targetElement.type, required: !0 },
|
|
188
|
-
/**
|
|
189
|
-
* Enables virtual scrolling if set to true or by providing an object with itemHeight function.
|
|
190
|
-
* The itemHeight function is used to calculate the height of rendered item given it's index.
|
|
191
|
-
*/
|
|
192
|
-
virtualScroll: {
|
|
193
|
-
type: [Boolean, Object],
|
|
194
|
-
default: !1
|
|
195
|
-
}
|
|
196
|
-
},
|
|
197
|
-
emits: [],
|
|
198
|
-
setup(a, { expose: t, emit: o }) {
|
|
199
|
-
const e = a, n = pe(), { selectedValue: l, multiple: s } = fe(e), i = C(null), { t: c } = V(), m = p(() => e.open && !e.disabled), r = p(() => c("noOptionsMatchThisSearch")), d = p(() => ({
|
|
200
|
-
"b-dropdown-options-container--single": !(e != null && e.multiple)
|
|
201
|
-
})), g = p(() => ({
|
|
202
|
-
"b-dropdown-options-container__listbox--single": !(e != null && e.multiple)
|
|
203
|
-
})), { actions: h, internalSelectedValue: v, listeners: O, onEscapeKey: S, onOutsideDropdownClick: w } = ze(l, s, m, o), y = p(() => e != null && e.multiple ? Fe : re), I = p(() => {
|
|
204
|
-
var T;
|
|
205
|
-
const B = {
|
|
206
|
-
"min-width": `${(T = e == null ? void 0 : e.targetElement) == null ? void 0 : T.clientWidth}px`,
|
|
207
|
-
"max-width": "min(500px, 95%)"
|
|
208
|
-
};
|
|
209
|
-
return e != null && e.multiple ? {
|
|
210
|
-
actionsLayout: "space-between",
|
|
211
|
-
actions: h.value,
|
|
212
|
-
divider: !0,
|
|
213
|
-
fallbackPosition: ["top-start"],
|
|
214
|
-
id: P(`dropdown-options-${e.id}`),
|
|
215
|
-
open: e.open,
|
|
216
|
-
position: "bottom-start",
|
|
217
|
-
style: {
|
|
218
|
-
width: "auto",
|
|
219
|
-
...B
|
|
220
|
-
},
|
|
221
|
-
targetElement: e.targetElement
|
|
222
|
-
} : {
|
|
223
|
-
fallbackPosition: ["top-start"],
|
|
224
|
-
offset: [0, 8],
|
|
225
|
-
position: "bottom-start",
|
|
226
|
-
style: {
|
|
227
|
-
display: m.value ? "block" : "none",
|
|
228
|
-
...B
|
|
229
|
-
},
|
|
230
|
-
targetElement: e.targetElement
|
|
231
|
-
};
|
|
232
|
-
});
|
|
233
|
-
return t({
|
|
234
|
-
onOutsideDropdownClick: w
|
|
235
|
-
}), { __sfc: !0, slots: n, emit: o, props: e, selectedValue: l, multiple: s, dropdownOptionsListboxRef: i, t: c, isDropdownOpen: m, noResultsMessage: r, conditionalClasses: d, conditionalListboxClasses: g, actions: h, internalSelectedValue: v, listeners: O, onEscapeKey: S, onOutsideDropdownClick: w, popperContainerOrPopoverComponent: y, popperContainerOrPopoverProps: I, BentoListbox: H };
|
|
236
|
-
}
|
|
237
|
-
});
|
|
238
|
-
var Ue = function() {
|
|
239
|
-
var t = this, o = t._self._c, e = t._self._setupProxy;
|
|
240
|
-
return o(e.popperContainerOrPopoverComponent, t._b({ tag: "component", staticClass: "b-dropdown-options-container", class: e.conditionalClasses, attrs: { "aria-label": t.ariaLabel } }, "component", e.popperContainerOrPopoverProps, !1), [o("div", { on: { keydown: function(n) {
|
|
241
|
-
return !n.type.indexOf("key") && t._k(n.keyCode, "esc", 27, n.key, ["Esc", "Escape"]) ? null : e.onEscapeKey.apply(null, arguments);
|
|
242
|
-
} } }, [o(e.BentoListbox, t._g({ ref: "dropdownOptionsListboxRef", staticClass: "b-dropdown-options-container__listbox", class: e.conditionalListboxClasses, attrs: { id: t.id, "aria-label": t.ariaLabel, "component-loading": t.componentLoading, "empty-state": t.emptyState, "is-option-disabled": t.isOptionDisabled, items: t.items, "selected-value": e.internalSelectedValue, multiple: e.multiple, "static-categories": t.staticCategories, "no-results-message": e.noResultsMessage, searching: t.searching, loading: t.loading, "lazy-load-type": t.lazyLoadType, "has-more-items": t.hasMoreItems, "virtual-scroll": t.virtualScroll }, scopedSlots: t._u([t._l(e.slots, function(n, l) {
|
|
243
|
-
return { key: l, fn: function(s) {
|
|
244
|
-
return [t._t(l, null, null, s)];
|
|
245
|
-
} };
|
|
246
|
-
})], null, !0) }, e.listeners))], 1)]);
|
|
247
|
-
}, qe = [], He = /* @__PURE__ */ F(
|
|
248
|
-
We,
|
|
249
|
-
Ue,
|
|
250
|
-
qe,
|
|
251
|
-
!1,
|
|
252
|
-
null,
|
|
253
|
-
"35feb278"
|
|
254
|
-
);
|
|
255
|
-
const Je = He.exports;
|
|
256
|
-
let de = 0;
|
|
257
|
-
const Ve = {
|
|
258
|
-
beforeCreate() {
|
|
259
|
-
this.uuid = de.toString(), de += 1;
|
|
260
|
-
}
|
|
261
|
-
};
|
|
262
|
-
var Ye = function() {
|
|
263
|
-
var t = this, o = t._self._c;
|
|
264
|
-
return o("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? o("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), o("path", { attrs: { fill: "#00112C", d: "M5.00011 5.43922L8.00011 8.43922L11.0001 5.43922L12.0608 6.49988L8.00011 10.5605L3.93945 6.49988L5.00011 5.43922Z" } })]);
|
|
265
|
-
}, Ze = [], Qe = /* @__PURE__ */ F(
|
|
266
|
-
Ve,
|
|
267
|
-
Ye,
|
|
268
|
-
Ze,
|
|
269
|
-
!1,
|
|
270
|
-
null,
|
|
271
|
-
null
|
|
272
|
-
);
|
|
273
|
-
const Xe = Qe.exports;
|
|
274
|
-
let ce = 0;
|
|
275
|
-
const Ge = {
|
|
276
|
-
beforeCreate() {
|
|
277
|
-
this.uuid = ce.toString(), ce += 1;
|
|
278
|
-
}
|
|
279
|
-
};
|
|
280
|
-
var et = function() {
|
|
281
|
-
var t = this, o = t._self._c;
|
|
282
|
-
return o("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? o("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), o("path", { attrs: { fill: "#00112C", d: "M10.9999 10.5608L7.9999 7.56077L4.9999 10.5608L3.93924 9.50011L7.9999 5.43945L12.0606 9.50011L10.9999 10.5608Z" } })]);
|
|
283
|
-
}, tt = [], ot = /* @__PURE__ */ F(
|
|
284
|
-
Ge,
|
|
285
|
-
et,
|
|
286
|
-
tt,
|
|
287
|
-
!1,
|
|
288
|
-
null,
|
|
289
|
-
null
|
|
290
|
-
);
|
|
291
|
-
const nt = ot.exports, at = A({
|
|
292
|
-
name: "dropdown-small-textbox",
|
|
293
|
-
inheritAttrs: !1
|
|
294
|
-
}), st = /* @__PURE__ */ A({
|
|
295
|
-
...at,
|
|
296
|
-
props: {
|
|
297
|
-
/**
|
|
298
|
-
* The number of additional items that have been selected in the dropdown.
|
|
299
|
-
*/
|
|
300
|
-
additionalItemsSelected: { type: [Number, String], default: 0 },
|
|
301
|
-
/**
|
|
302
|
-
* Sets the aria-controls attribute on the textbox. This should correspond to the popover's id that the textbox triggers.
|
|
303
|
-
*/
|
|
304
|
-
ariaControls: { type: String, required: !0 },
|
|
305
|
-
/**
|
|
306
|
-
* Indicates whether the content the textbox triggers is visible or not. Needs to be set accordingly when the textbox is used and changed every time the popover is shown/hidden.
|
|
307
|
-
*/
|
|
308
|
-
ariaExpanded: {
|
|
309
|
-
type: [String, Boolean],
|
|
310
|
-
required: !0
|
|
311
|
-
},
|
|
312
|
-
/**
|
|
313
|
-
* If no label element is used then the aria-label is be set should be set.
|
|
314
|
-
*/
|
|
315
|
-
ariaLabel: { type: String, default: null },
|
|
316
|
-
/**
|
|
317
|
-
* Corresponds to the label's id that labels the textbox element.
|
|
318
|
-
*/
|
|
319
|
-
ariaLabelledby: { type: String, default: null },
|
|
320
|
-
/**
|
|
321
|
-
* Custom debounce time. Default: 300
|
|
322
|
-
*/
|
|
323
|
-
debounceTime: { type: Number, default: 300 },
|
|
324
|
-
/**
|
|
325
|
-
* Disables any textbox functionality
|
|
326
|
-
*/
|
|
327
|
-
disabled: { type: Boolean, default: !1 },
|
|
328
|
-
/**
|
|
329
|
-
* Selected option's label
|
|
330
|
-
*/
|
|
331
|
-
displayValue: { type: String, default: null },
|
|
332
|
-
/**
|
|
333
|
-
* Sets the possibility to type into the textbox
|
|
334
|
-
*/
|
|
335
|
-
dynamicFiltering: { type: Boolean, default: !1 },
|
|
336
|
-
/**
|
|
337
|
-
* Marks the textbox as invalid, rendering an error state
|
|
338
|
-
*/
|
|
339
|
-
isInvalid: { type: Boolean, default: !1 },
|
|
340
|
-
/**
|
|
341
|
-
* Indicates if the dropdown is open so that
|
|
342
|
-
* the respective event can be emitted
|
|
343
|
-
*/
|
|
344
|
-
open: { type: Boolean, default: !1 },
|
|
345
|
-
/**
|
|
346
|
-
* Sets the dropdown to readonly state
|
|
347
|
-
*/
|
|
348
|
-
readonly: { type: Boolean, default: !1 },
|
|
349
|
-
/**
|
|
350
|
-
* The input value
|
|
351
|
-
*/
|
|
352
|
-
value: { type: String, default: "" }
|
|
353
|
-
},
|
|
354
|
-
emits: ["clear", "close", "input", "keydown", "open"],
|
|
355
|
-
setup(a, { expose: t, emit: o }) {
|
|
356
|
-
const e = a, n = C(null), l = p(() => ({
|
|
357
|
-
[`b-dropdown-small-textbox--${U.DISABLED}`]: e.disabled,
|
|
358
|
-
[`b-dropdown-small-textbox--${U.READONLY}`]: e.readonly,
|
|
359
|
-
[`b-dropdown-small-textbox--${U.OPENED}`]: e.open
|
|
360
|
-
})), s = p(() => e.open && !e.disabled && !e.readonly), i = (v) => {
|
|
361
|
-
o("input", v);
|
|
362
|
-
}, c = (v) => {
|
|
363
|
-
o("keydown", v);
|
|
364
|
-
}, m = (v) => {
|
|
365
|
-
q(v), o("open");
|
|
366
|
-
}, r = (v) => {
|
|
367
|
-
q(v), o("close");
|
|
368
|
-
}, d = (v) => {
|
|
369
|
-
q(v), o("clear");
|
|
370
|
-
}, g = {
|
|
371
|
-
[M.INPUT]: i,
|
|
372
|
-
[M.OPEN]: m,
|
|
373
|
-
[M.CLOSE]: r,
|
|
374
|
-
[M.CLEAR]: d,
|
|
375
|
-
[M.KEYDOWN]: c
|
|
376
|
-
}, h = () => {
|
|
377
|
-
n.value.focus();
|
|
378
|
-
};
|
|
379
|
-
return t({
|
|
380
|
-
focus: h
|
|
381
|
-
}), { __sfc: !0, emit: o, props: e, baseTextbox: n, conditionalClasses: l, isDropdownOpen: s, onInput: i, onKeyDown: c, openDropdown: m, closeDropdown: r, clearValue: d, listeners: g, focus: h, BentoDropdownSize: k, DropdownBaseTextbox: Ie, ChevronDownSmallIcon: Xe, ChevronUpSmallIcon: nt };
|
|
382
|
-
}
|
|
383
|
-
});
|
|
384
|
-
var lt = function() {
|
|
385
|
-
var t = this, o = t._self._c, e = t._self._setupProxy;
|
|
386
|
-
return o("div", { staticClass: "b-dropdown-small-textbox", class: e.conditionalClasses }, [o(e.DropdownBaseTextbox, t._g(t._b({ ref: "baseTextbox", staticClass: "b-dropdown-small-textbox__textbox", attrs: { size: e.BentoDropdownSize.SMALL }, scopedSlots: t._u([{ key: "icon", fn: function() {
|
|
387
|
-
return [o("div", { staticClass: "b-dropdown-small-textbox__chevron" }, [o(e.ChevronUpSmallIcon, { directives: [{ name: "show", rawName: "v-show", value: e.isDropdownOpen, expression: "isDropdownOpen" }], attrs: { "svg-title": "opened" } }), o(e.ChevronDownSmallIcon, { directives: [{ name: "show", rawName: "v-show", value: !e.isDropdownOpen, expression: "!isDropdownOpen" }], attrs: { "svg-title": "closed" } })], 1)];
|
|
388
|
-
}, proxy: !0 }]) }, "dropdown-base-textbox", { ...t.$attrs, ...t.$props }, !1), e.listeners))], 1);
|
|
389
|
-
}, it = [], rt = /* @__PURE__ */ F(
|
|
390
|
-
st,
|
|
391
|
-
lt,
|
|
392
|
-
it,
|
|
393
|
-
!1,
|
|
394
|
-
null,
|
|
395
|
-
"d0e53db8"
|
|
396
|
-
);
|
|
397
|
-
const dt = rt.exports, ct = (a, t) => t.value.reduce((o, e) => {
|
|
398
|
-
if (e.items) {
|
|
399
|
-
const n = e.items.filter(
|
|
400
|
-
(s) => a.value.find((i) => i.value === s.value)
|
|
401
|
-
);
|
|
402
|
-
n.length === e.items.length ? o.push(e.displayValue ?? e.label) : n.forEach(({ label: s, displayValue: i }) => o.push(i ?? s));
|
|
403
|
-
}
|
|
404
|
-
return a.value.find((n) => n.value === e.value) && o.push(e.displayValue ?? e.label), o;
|
|
405
|
-
}, []).join(", "), ut = ({ items: a, placeholder: t, selectedValues: o, isMultiSelect: e }) => {
|
|
406
|
-
const n = p(
|
|
407
|
-
() => e.value && a.value.find((s) => {
|
|
408
|
-
var i;
|
|
409
|
-
return (i = s.items) == null ? void 0 : i.length;
|
|
410
|
-
})
|
|
411
|
-
);
|
|
412
|
-
return p(() => o.value.length ? n.value ? ct(o, a) : o.value.map(({ label: s, displayValue: i }) => i ?? s).join(", ") : t.value || null);
|
|
413
|
-
}, ve = (a) => {
|
|
414
|
-
var t;
|
|
415
|
-
(t = a.value.$children) == null || t[0].$refs.textbox.focus();
|
|
416
|
-
}, pt = ({
|
|
417
|
-
inputContainerRef: a,
|
|
418
|
-
optionsContainerRef: t,
|
|
419
|
-
selectedValueIndex: o,
|
|
420
|
-
isDropdownOpen: e,
|
|
421
|
-
isDynamicFltering: n,
|
|
422
|
-
items: l,
|
|
423
|
-
isMultiple: s
|
|
424
|
-
}, i, c, m) => {
|
|
425
|
-
const r = async (f) => {
|
|
426
|
-
var b, E;
|
|
427
|
-
n.value && await L(), (E = (b = t.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef) == null ? void 0 : b.$el.querySelectorAll('[role="option"]')[f]) == null || E.focus();
|
|
428
|
-
}, d = async (f) => {
|
|
429
|
-
var E, K;
|
|
430
|
-
n.value && await L();
|
|
431
|
-
const b = (E = t.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef) == null ? void 0 : E.$el.querySelectorAll(
|
|
432
|
-
"button"
|
|
433
|
-
);
|
|
434
|
-
b.length ? (K = b[f]) == null || K.focus() : r(f);
|
|
435
|
-
}, g = (f) => {
|
|
436
|
-
var b;
|
|
437
|
-
return (b = t.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef) == null ? void 0 : b.setListboxFocusedIndex(
|
|
438
|
-
f
|
|
439
|
-
);
|
|
440
|
-
}, h = ({ detail: f }) => {
|
|
441
|
-
f.preventDefault(), e.value || c(), L(() => {
|
|
442
|
-
s ? d(0) : (g(o.value), r(o.value));
|
|
443
|
-
});
|
|
444
|
-
}, v = ({ detail: f }) => {
|
|
445
|
-
f.preventDefault(), e.value || c(), L(() => {
|
|
446
|
-
s ? d(0) : (g(o.value), r(o.value));
|
|
447
|
-
});
|
|
448
|
-
}, O = () => {
|
|
449
|
-
e.value || (c(), L(() => {
|
|
450
|
-
var f;
|
|
451
|
-
if (s) {
|
|
452
|
-
const b = t.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children;
|
|
453
|
-
(f = b == null ? void 0 : b[b.length - 1].$el.querySelectorAll('[role="option"]')[l.length - 1]) == null || f.focus();
|
|
454
|
-
} else
|
|
455
|
-
g(l.length - 1), r(l.length - 1);
|
|
456
|
-
}));
|
|
457
|
-
}, S = () => {
|
|
458
|
-
e.value && (m(), ve(a));
|
|
459
|
-
}, w = () => {
|
|
460
|
-
e.value && m();
|
|
461
|
-
}, y = () => {
|
|
462
|
-
e.value || c(), L(() => {
|
|
463
|
-
s ? d(0) : r(0);
|
|
464
|
-
});
|
|
465
|
-
}, I = ({ detail: f }) => {
|
|
466
|
-
f.preventDefault(), i(), e.value && L(() => {
|
|
467
|
-
s ? d(0) : (g(o.value), r(o.value));
|
|
468
|
-
});
|
|
469
|
-
}, B = ({ detail: f }) => {
|
|
470
|
-
f.preventDefault(), i(), e.value && L(() => {
|
|
471
|
-
s ? d(0) : (g(o.value), r(o.value));
|
|
472
|
-
});
|
|
473
|
-
};
|
|
474
|
-
return p(() => ({
|
|
475
|
-
...n.value ? {} : { [D.SPACE]: I },
|
|
476
|
-
[D.ENTER]: B,
|
|
477
|
-
[D.ARROW_DOWN]: h,
|
|
478
|
-
[D.ARROW_UP]: v,
|
|
479
|
-
[D.END]: O,
|
|
480
|
-
[D.ESCAPE]: S,
|
|
481
|
-
[D.HOME]: y,
|
|
482
|
-
[D.TAB]: w
|
|
483
|
-
}));
|
|
484
|
-
}, ft = ({ inputContainerRef: a, isDropdownOpen: t }, o) => {
|
|
485
|
-
const e = () => {
|
|
486
|
-
t.value && o(), L(() => {
|
|
487
|
-
ve(a);
|
|
488
|
-
});
|
|
489
|
-
};
|
|
490
|
-
return {
|
|
491
|
-
[u.ENTER]: e,
|
|
492
|
-
[u.ESCAPE]: e,
|
|
493
|
-
[u.TAB]: e,
|
|
494
|
-
[u.SPACE]: e
|
|
495
|
-
};
|
|
496
|
-
};
|
|
497
|
-
function vt(a, t, o, e) {
|
|
498
|
-
const n = C(a), l = C(t), s = (c, m = []) => m.flatMap((r) => r.label.toLocaleLowerCase().includes(c) ? e != null && e.value && r.items ? [...s(c, r.items)] : [r, ...s(c, r.items)] : r.items ? [...s(c, r.items)] : []);
|
|
499
|
-
return ue(n, () => {
|
|
500
|
-
o !== void 0 && o(n.value);
|
|
501
|
-
}), p(() => {
|
|
502
|
-
if (!n.value || o !== void 0)
|
|
503
|
-
return l.value;
|
|
504
|
-
const c = n.value.toLocaleLowerCase();
|
|
505
|
-
return s(c, l.value);
|
|
506
|
-
});
|
|
507
|
-
}
|
|
508
|
-
const mt = {
|
|
509
|
-
"en-US": {
|
|
510
|
-
all: "All",
|
|
511
|
-
ariaLabelFallback: "Dropdown",
|
|
512
|
-
clearSearch: "Clear filter"
|
|
513
|
-
},
|
|
514
|
-
"ja-JP": {
|
|
515
|
-
all: "すべて",
|
|
516
|
-
clearFilter: "フィルターをクリア"
|
|
517
|
-
},
|
|
518
|
-
"pt-BR": {
|
|
519
|
-
all: "Todos",
|
|
520
|
-
clearFilter: "Limpar filtro"
|
|
521
|
-
}
|
|
522
|
-
}, yt = Symbol("input field component injection key"), Ft = Symbol("input field hint injection key"), Kt = Symbol("input field parent component injection key"), bt = A({
|
|
523
|
-
i18n: { messages: mt },
|
|
524
|
-
name: "b-dropdown",
|
|
525
|
-
components: {
|
|
526
|
-
DropdownInputDefault: Te,
|
|
527
|
-
DropdownInputSmall: dt
|
|
528
|
-
}
|
|
529
|
-
}), _t = /* @__PURE__ */ A({
|
|
530
|
-
...bt,
|
|
531
|
-
props: {
|
|
532
|
-
/**
|
|
533
|
-
* @deprecated from version 2.0.0. Use the aria-label attribute instead.
|
|
534
|
-
*/
|
|
535
|
-
/**
|
|
536
|
-
* Defines a string value that labels an interactive element.
|
|
537
|
-
*/
|
|
538
|
-
ariaLabel: { type: String, default: null },
|
|
539
|
-
/**
|
|
540
|
-
* Renders the dropdown with a condensed style.
|
|
541
|
-
*/
|
|
542
|
-
condensed: { type: Boolean, default: !1 },
|
|
543
|
-
/**
|
|
544
|
-
* Empty state props used with the inner empty state component which is displayed when no search results are found.
|
|
545
|
-
*/
|
|
546
|
-
emptyState: {
|
|
547
|
-
type: Object,
|
|
548
|
-
default: void 0
|
|
549
|
-
},
|
|
550
|
-
/**
|
|
551
|
-
* Disables dropdown functionality.
|
|
552
|
-
*/
|
|
553
|
-
disabled: { type: Boolean, default: !1 },
|
|
554
|
-
/**
|
|
555
|
-
* Sets the possibility to type into the textbox.
|
|
556
|
-
*/
|
|
557
|
-
dynamicFiltering: {
|
|
558
|
-
type: Boolean,
|
|
559
|
-
default: !1
|
|
560
|
-
},
|
|
561
|
-
/**
|
|
562
|
-
* Highlights the dropdown in an erroneous state.
|
|
563
|
-
*
|
|
564
|
-
* @deprecated Use "errorMessage" prop instead
|
|
565
|
-
*/
|
|
566
|
-
error: { type: Boolean, default: !1 },
|
|
567
|
-
/**
|
|
568
|
-
* Highlights the dropdown in an erroneous state with an error message.
|
|
569
|
-
*/
|
|
570
|
-
errorMessage: { type: String, default: null },
|
|
571
|
-
/**
|
|
572
|
-
* Descriptive supporting text visbile underneath the dropdown.
|
|
573
|
-
*/
|
|
574
|
-
description: { type: String, default: null },
|
|
575
|
-
/**
|
|
576
|
-
* Indicates whether there are more items to load
|
|
577
|
-
*/
|
|
578
|
-
hasMoreItems: { type: Boolean, default: !1 },
|
|
579
|
-
/**
|
|
580
|
-
* Function that dertermines which options are disabled from interaction.
|
|
581
|
-
*
|
|
582
|
-
* @type {BentoListboxIsOptionDisabled}
|
|
583
|
-
* @param {BentoListboxOptionItem} option - Dropdown option object
|
|
584
|
-
* @param {string} option.label - Option's label text
|
|
585
|
-
* @param {string|number} option.value - Option's value
|
|
586
|
-
* @param {unknown} option.data - Option's extra data to be passed to the default slot
|
|
587
|
-
*/
|
|
588
|
-
isOptionDisabled: {
|
|
589
|
-
type: Function,
|
|
590
|
-
default: void 0
|
|
591
|
-
},
|
|
592
|
-
/**
|
|
593
|
-
* The option elements to populate the dropdown with.
|
|
594
|
-
* It must be an array of {@see BentoListboxOptionItem }
|
|
595
|
-
* * @property {string} value.label - Text to be displayed in the option
|
|
596
|
-
* * @property {string,number} value.value - Value of the option
|
|
597
|
-
*/
|
|
598
|
-
items: {
|
|
599
|
-
type: Array,
|
|
600
|
-
default: () => []
|
|
601
|
-
},
|
|
602
|
-
/**
|
|
603
|
-
* Text that is displayed as a label above the element.
|
|
604
|
-
*/
|
|
605
|
-
label: { type: String, default: null },
|
|
606
|
-
/**
|
|
607
|
-
* Indicates if new options are lazy loading.
|
|
608
|
-
*/
|
|
609
|
-
loading: { type: Boolean, default: !1 },
|
|
610
|
-
/**
|
|
611
|
-
* Indicates that dropdown items are loading
|
|
612
|
-
*/
|
|
613
|
-
componentLoading: { type: Boolean, default: !1 },
|
|
614
|
-
/**
|
|
615
|
-
* The type of `Lazy Load`.
|
|
616
|
-
* Type "automatic" will enable infinite scrolling
|
|
617
|
-
* Type "button" will enable lazy loading with "Show more" button
|
|
618
|
-
*/
|
|
619
|
-
lazyLoadType: {
|
|
620
|
-
type: String,
|
|
621
|
-
default: H.props.lazyLoadType.default,
|
|
622
|
-
validator: (a) => Object.values(J).includes(a)
|
|
623
|
-
},
|
|
624
|
-
/*
|
|
625
|
-
* If enabled, the user will be able to select multiple items.
|
|
626
|
-
*/
|
|
627
|
-
multiple: { type: Boolean, default: !1 },
|
|
628
|
-
/**
|
|
629
|
-
* Highlights the dropdown is optional.
|
|
630
|
-
*/
|
|
631
|
-
optional: { type: Boolean, default: !1 },
|
|
632
|
-
/**
|
|
633
|
-
* Text that appears in the form control when it has no value set
|
|
634
|
-
*/
|
|
635
|
-
placeholder: { type: String, default: null },
|
|
636
|
-
/**
|
|
637
|
-
* Sets the dropdown to readonly state
|
|
638
|
-
*/
|
|
639
|
-
readonly: { type: Boolean, default: !1 },
|
|
640
|
-
/**
|
|
641
|
-
* Highlights the dropdown is required.
|
|
642
|
-
*/
|
|
643
|
-
required: { type: Boolean, default: !1 },
|
|
644
|
-
/**
|
|
645
|
-
* Dropdown search options and events.
|
|
646
|
-
* @see BentoDropdownSearchOptions
|
|
647
|
-
*/
|
|
648
|
-
search: {
|
|
649
|
-
type: Object,
|
|
650
|
-
default: void 0
|
|
651
|
-
},
|
|
652
|
-
/**
|
|
653
|
-
* Toggles whether to use the slot content select items shown in the textbox in multiple mode.
|
|
654
|
-
*/
|
|
655
|
-
showSlotContentInMultiple: { type: Boolean, default: !1 },
|
|
656
|
-
/**
|
|
657
|
-
* @deprecated Do not use. Only 'default' size should be used.
|
|
658
|
-
*/
|
|
659
|
-
size: {
|
|
660
|
-
type: String,
|
|
661
|
-
default: null,
|
|
662
|
-
validator: (a) => Object.values(k).includes(a)
|
|
663
|
-
},
|
|
664
|
-
/**
|
|
665
|
-
* If enabled, dropdown will display non-selectable, static categories
|
|
666
|
-
*/
|
|
667
|
-
staticCategories: { type: Boolean, default: !1 },
|
|
668
|
-
/**
|
|
669
|
-
* Adds a info icon next to the label to display the passed tooltip message.
|
|
670
|
-
*/
|
|
671
|
-
tooltipText: { type: String, default: null },
|
|
672
|
-
/**
|
|
673
|
-
* The `input` value.
|
|
674
|
-
* Providing an empty string will select no options.
|
|
675
|
-
* Set to an empty string `''` if you don't want any of the available options to be selected.
|
|
676
|
-
*/
|
|
677
|
-
value: {
|
|
678
|
-
type: [String, Number, Array],
|
|
679
|
-
default: null
|
|
680
|
-
},
|
|
681
|
-
/**
|
|
682
|
-
* Enables virtual scrolling if set to true or by providing an object with itemHeight function.
|
|
683
|
-
* The itemHeight function is used to calculate the height of rendered item given it's index.
|
|
684
|
-
*/
|
|
685
|
-
virtualScroll: {
|
|
686
|
-
type: [Boolean, Object],
|
|
687
|
-
default: !1
|
|
688
|
-
}
|
|
689
|
-
},
|
|
690
|
-
emits: ["input", "show-more"],
|
|
691
|
-
setup(a, { expose: t, emit: o }) {
|
|
692
|
-
var le;
|
|
693
|
-
const e = a, n = Le(), l = pe(), s = Ne(l), { t: i } = V(), c = C(null), m = C(null), r = C(null), d = C(!1), g = P("bento-dropdown-options-container"), h = P("dropdown-label"), v = P("dropdown-description"), O = P("dropdown-error"), { isReadOnly: S } = Be(x(e, "readonly")), { cachedSelectedListboxOptions: w, cachedListboxSelectedValues: y, setCachedValues: I } = Ae(
|
|
694
|
-
x(e, "items"),
|
|
695
|
-
x(e, "value"),
|
|
696
|
-
x(e, "multiple")
|
|
697
|
-
), B = C(n["aria-label"]), { ariaLabel: T, label: f } = fe(e), b = De({
|
|
698
|
-
// TODO: take ariaLabel ref away when aria-label prop is removed
|
|
699
|
-
ariaLabel: T.value || B,
|
|
700
|
-
label: f,
|
|
701
|
-
defaultFallback: i("ariaLabelFallback")
|
|
702
|
-
}), E = e.size === k.SMALL || Oe(yt, !1), K = p(() => E ? k.SMALL : k.DEFAULT), me = p(() => ({
|
|
703
|
-
"b-dropdown--condensed": e.condensed
|
|
704
|
-
})), ye = p(() => ({
|
|
705
|
-
"b-dropdown__description--error": !!e.errorMessage
|
|
706
|
-
})), N = C(""), R = x(e, "items"), Y = x(e, "staticCategories"), Z = vt(N, R, (le = e == null ? void 0 : e.search) == null ? void 0 : le.searchEvent, Y), j = p(() => e.dynamicFiltering && !!N.value), be = ut({
|
|
707
|
-
items: R,
|
|
708
|
-
placeholder: x(e, "placeholder"),
|
|
709
|
-
isMultiSelect: x(e, "multiple"),
|
|
710
|
-
selectedValues: w
|
|
711
|
-
}), _e = p(() => {
|
|
712
|
-
if (e != null && e.multiple && Array.isArray(e.value))
|
|
713
|
-
return e.items.filter(
|
|
714
|
-
({ value: _ }) => (e == null ? void 0 : e.value) && (e == null ? void 0 : e.value).includes(_)
|
|
715
|
-
);
|
|
716
|
-
if (!e.multiple && e.staticCategories) {
|
|
717
|
-
const _ = e.items.find(
|
|
718
|
-
(W) => W.items.some((xe) => xe.value === e.value)
|
|
719
|
-
);
|
|
720
|
-
return _ ? _.items.find((W) => W.value === e.value) : null;
|
|
721
|
-
}
|
|
722
|
-
return e.items.find(({ value: _ }) => _ === (e == null ? void 0 : e.value));
|
|
723
|
-
}), Q = p(() => {
|
|
724
|
-
const _ = Z.value.findIndex(({ value: $ }) => e.value === $);
|
|
725
|
-
return _ > -1 ? _ : 0;
|
|
726
|
-
}), { isMultiLevelSelect: X, flattenedItemsList: G } = Re(R), ge = p(() => {
|
|
727
|
-
if (e.multiple) {
|
|
728
|
-
const _ = Array.isArray(e.value) ? e.value.length : 0, $ = X.value ? G.value.length : R.value.length;
|
|
729
|
-
return _ === 0 ? null : !e.hasMoreItems && $ > 0 && $ === _ ? i("all") : _;
|
|
730
|
-
}
|
|
731
|
-
return null;
|
|
732
|
-
}), he = p(
|
|
733
|
-
() => `${e.description ? v : ""} ${e.errorMessage ? O : ""}`.trim() || null
|
|
734
|
-
), ee = () => {
|
|
735
|
-
S.value || (d.value = !0);
|
|
736
|
-
}, z = () => {
|
|
737
|
-
d.value = !1;
|
|
738
|
-
}, te = () => {
|
|
739
|
-
S.value || (d.value = !d.value, j.value && (N.value = ""));
|
|
740
|
-
}, Ce = () => {
|
|
741
|
-
j.value && (N.value = ""), d.value && (d.value = !1, r.value.onOutsideDropdownClick());
|
|
742
|
-
}, oe = (_) => {
|
|
743
|
-
e.multiple || (N.value = "", d.value = !1), I(_), o("input", y.value);
|
|
744
|
-
}, ne = () => {
|
|
745
|
-
o(u.SHOW_MORE);
|
|
746
|
-
}, Se = pt(
|
|
747
|
-
{
|
|
748
|
-
inputContainerRef: c,
|
|
749
|
-
optionsContainerRef: r,
|
|
750
|
-
selectedValueIndex: Q,
|
|
751
|
-
isDropdownOpen: d,
|
|
752
|
-
isDynamicFltering: x(e, "dynamicFiltering"),
|
|
753
|
-
items: e.items,
|
|
754
|
-
isMultiple: e.multiple
|
|
755
|
-
},
|
|
756
|
-
te,
|
|
757
|
-
ee,
|
|
758
|
-
z
|
|
759
|
-
), ae = ft(
|
|
760
|
-
{
|
|
761
|
-
inputContainerRef: c,
|
|
762
|
-
isDropdownOpen: d
|
|
763
|
-
},
|
|
764
|
-
z
|
|
765
|
-
), we = {
|
|
766
|
-
[u.CLOSE_DROPDOWN]: z,
|
|
767
|
-
[u.SELECT]: oe,
|
|
768
|
-
[u.SHOW_MORE]: ne,
|
|
769
|
-
...ae
|
|
770
|
-
};
|
|
771
|
-
e.error && ie(
|
|
772
|
-
'BentoDropdown "error" property',
|
|
773
|
-
`Use the BentoDropdown "errorMessage" property instead to indicate that there is a modifier error.
|
|
774
|
-
Having the field as "undefined" will hide/remove the error.
|
|
775
|
-
<bento-dropdown errorMessage="Error message text" />`,
|
|
776
|
-
"2.0.0"
|
|
777
|
-
), e.size && ie('BentoDropdown "size" property', "Do not use. Only 'default' size should be used.", "2.0.0");
|
|
778
|
-
const se = () => {
|
|
779
|
-
c.value.focus();
|
|
780
|
-
};
|
|
781
|
-
return t({
|
|
782
|
-
focus: se
|
|
783
|
-
}), { __sfc: !0, attrs: n, slots: l, hasSlot: s, props: e, emit: o, t: i, inputContainerRef: c, inputContainerRefWrapper: m, optionsContainerRef: r, isDropdownOpen: d, dropdownOptionsContainerId: g, labelId: h, descriptionId: v, errorId: O, isReadOnly: S, cachedSelectedListboxOptions: w, cachedListboxSelectedValues: y, setCachedValues: I, ariaLabelAttribute: B, ariaLabel: T, label: f, computedAriaLabel: b, isInputComponent: E, computedSize: K, conditionalClasses: me, descriptionConditionalClasses: ye, searchTerm: N, items: R, staticCategories: Y, filteredItems: Z, isSearching: j, displayValue: be, selectedValueItem: _e, selectedValueIndex: Q, isMultiLevelSelect: X, flattenedItemsList: G, additionalItemsSelected: ge, ariaDescribedBy: he, openDropdown: ee, closeDropdown: z, toggleDropdown: te, clickOutsideDropdown: Ce, onOptionSelected: oe, emitShowMoreEvent: ne, textboxKeyboardNavigationListeners: Se, listboxKeyboardNavigationListeners: ae, listboxListeners: we, focus: se, BentoDropdownOptionsContainer: Je, BentoTypography: Ee, ErrorMessage: ke, FieldLabel: Pe, vBentoClickOutsideDirective: Me, vBentoKeyboardNavigationDirective: $e };
|
|
784
|
-
}
|
|
785
|
-
});
|
|
786
|
-
var gt = function() {
|
|
787
|
-
var n;
|
|
788
|
-
var t = this, o = t._self._c, e = t._self._setupProxy;
|
|
789
|
-
return o("div", { directives: [{ name: "bento-click-outside-directive", rawName: "v-bento-click-outside-directive", value: e.clickOutsideDropdown, expression: "clickOutsideDropdown" }], staticClass: "b-dropdown", class: e.conditionalClasses }, [e.label ? o(e.FieldLabel, { attrs: { id: e.labelId, condensed: t.condensed, label: e.label, "tooltip-text": t.tooltipText, optional: t.optional, required: t.required } }) : t._e(), o("div", t._g({ directives: [{ name: "bento-keyboard-navigation-directive", rawName: "v-bento-keyboard-navigation-directive" }], ref: "inputContainerRefWrapper" }, e.textboxKeyboardNavigationListeners), [o(e.computedSize, { ref: "inputContainerRef", tag: "component", attrs: { condensed: t.condensed, value: e.searchTerm, "additional-items-selected": e.additionalItemsSelected, ariaControls: e.dropdownOptionsContainerId, ariaExpanded: e.isDropdownOpen, "aria-labelledby": e.label ? e.labelId : null, "aria-describedby": e.ariaDescribedBy, "aria-label": e.computedAriaLabel, "aria-readonly": e.isReadOnly, readonly: e.isReadOnly, disabled: t.disabled, "display-value": e.displayValue, "dynamic-filtering": t.dynamicFiltering, "is-invalid": !!t.errorMessage || t.error, multiple: t.multiple, open: e.isDropdownOpen, "selected-value-item": e.isInputComponent ? void 0 : e.selectedValueItem, "show-slot-content-in-multiple": t.showSlotContentInMultiple }, on: { input: function(l) {
|
|
790
|
-
e.searchTerm = l;
|
|
791
|
-
}, open: e.toggleDropdown, close: e.toggleDropdown }, scopedSlots: t._u([t._l(e.slots, function(l, s) {
|
|
792
|
-
return { key: s, fn: function(i) {
|
|
793
|
-
return [t._t(s, null, null, i)];
|
|
794
|
-
} };
|
|
795
|
-
})], null, !0) })], 1), e.inputContainerRef ? o(e.BentoDropdownOptionsContainer, t._g({ ref: "optionsContainerRef", attrs: { id: e.dropdownOptionsContainerId, "aria-label": e.computedAriaLabel, "component-loading": t.componentLoading, "empty-state": t.emptyState, "debounce-time": (n = t.search) == null ? void 0 : n.debounceTime, disabled: t.disabled, "is-option-disabled": t.isOptionDisabled, items: e.filteredItems, multiple: t.multiple, "static-categories": e.staticCategories, open: e.isDropdownOpen, "selected-value": e.cachedSelectedListboxOptions, searching: e.isSearching, "target-element": e.inputContainerRefWrapper, loading: t.loading, "has-more-items": t.hasMoreItems, "lazy-load-type": t.lazyLoadType, "virtual-scroll": t.virtualScroll }, scopedSlots: t._u([t._l(e.slots, function(l, s) {
|
|
796
|
-
return { key: s, fn: function(i) {
|
|
797
|
-
return [t._t(s, null, null, i)];
|
|
798
|
-
} };
|
|
799
|
-
})], null, !0) }, e.listboxListeners)) : t._e(), t.errorMessage ? o(e.ErrorMessage, { staticClass: "b-dropdown__error-message", attrs: { id: e.errorId, "error-message": t.errorMessage } }) : t._e(), t.description || e.hasSlot("description") ? o(e.BentoTypography, { staticClass: "b-dropdown__description", class: e.descriptionConditionalClasses, attrs: { id: e.descriptionId, el: "span" } }, [t._t("description", function() {
|
|
800
|
-
return [t._v(" " + t._s(t.description) + " ")];
|
|
801
|
-
})], 2) : t._e()], 1);
|
|
802
|
-
}, ht = [], Ct = /* @__PURE__ */ F(
|
|
803
|
-
_t,
|
|
804
|
-
gt,
|
|
805
|
-
ht,
|
|
806
|
-
!1,
|
|
807
|
-
null,
|
|
808
|
-
"01f9156a"
|
|
809
|
-
);
|
|
810
|
-
const zt = Ct.exports;
|
|
811
|
-
export {
|
|
812
|
-
zt as B,
|
|
813
|
-
Ft as I,
|
|
814
|
-
yt as a,
|
|
815
|
-
Kt as b,
|
|
816
|
-
vt as u
|
|
817
|
-
};
|
|
818
|
-
//# sourceMappingURL=dropdown.DYN8Okpo.js.map
|