@adyen/bento-vue3 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 +10 -6
- package/dist/@types/components.d.ts +0 -201
- package/dist/@types/index.d.ts +0 -17796
- 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-vue_export-helper.CHgC5LLL.js +0 -10
- package/dist/chunks/_plugin-vue_export-helper.CHgC5LLL.js.map +0 -1
- package/dist/chunks/accordion-item.CihL7JaZ.js +0 -142
- package/dist/chunks/accordion-item.CihL7JaZ.js.map +0 -1
- package/dist/chunks/action-bar.DHFGXPzd.js +0 -203
- package/dist/chunks/action-bar.DHFGXPzd.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.CjegN2iG.js +0 -169
- package/dist/chunks/alert.CjegN2iG.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.B0-9jC6H.js +0 -94
- package/dist/chunks/avatar.B0-9jC6H.js.map +0 -1
- package/dist/chunks/base-button.DdNFlbgH.js +0 -115
- package/dist/chunks/base-button.DdNFlbgH.js.map +0 -1
- package/dist/chunks/base-modal.BXdrZf3U.js +0 -504
- package/dist/chunks/base-modal.BXdrZf3U.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.CA6UQCNZ.js +0 -37
- package/dist/chunks/bin.CA6UQCNZ.js.map +0 -1
- package/dist/chunks/button-actions-with-menu.DfnPv97A.js +0 -174
- package/dist/chunks/button-actions-with-menu.DfnPv97A.js.map +0 -1
- package/dist/chunks/button-actions.WnxN4KnV.js +0 -264
- package/dist/chunks/button-actions.WnxN4KnV.js.map +0 -1
- package/dist/chunks/button.CVZJTZv0.js +0 -120
- package/dist/chunks/button.CVZJTZv0.js.map +0 -1
- package/dist/chunks/calendar.BzN254pQ.js +0 -1288
- package/dist/chunks/calendar.BzN254pQ.js.map +0 -1
- package/dist/chunks/card.PFtc1o__.js +0 -213
- package/dist/chunks/card.PFtc1o__.js.map +0 -1
- package/dist/chunks/checkbox-group.Dsiyb1cX.js +0 -192
- package/dist/chunks/checkbox-group.Dsiyb1cX.js.map +0 -1
- package/dist/chunks/checkbox-input.DVayucaL.js +0 -168
- package/dist/chunks/checkbox-input.DVayucaL.js.map +0 -1
- package/dist/chunks/checkbox.DeNqOQ8F.js +0 -253
- package/dist/chunks/checkbox.DeNqOQ8F.js.map +0 -1
- package/dist/chunks/checkmark-circle-fill.jicbqe7k.js +0 -44
- package/dist/chunks/checkmark-circle-fill.jicbqe7k.js.map +0 -1
- package/dist/chunks/checkmark-small.D7l69yBf.js +0 -29
- package/dist/chunks/checkmark-small.D7l69yBf.js.map +0 -1
- package/dist/chunks/chevron-left.BF63HtOH.js +0 -52
- package/dist/chunks/chevron-left.BF63HtOH.js.map +0 -1
- package/dist/chunks/chevron-up.-0oLlHmh.js +0 -52
- package/dist/chunks/chevron-up.-0oLlHmh.js.map +0 -1
- package/dist/chunks/chip.BVCzNGaI.js +0 -71
- package/dist/chunks/chip.BVCzNGaI.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.91V1hyL-.js +0 -334
- package/dist/chunks/code-snippet.91V1hyL-.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.DzFmJYYp.js +0 -98
- package/dist/chunks/controls-group.DzFmJYYp.js.map +0 -1
- package/dist/chunks/copy.BNFlTYMb.js +0 -156
- package/dist/chunks/copy.BNFlTYMb.js.map +0 -1
- package/dist/chunks/country.BhAcCmRx.js +0 -99
- package/dist/chunks/country.BhAcCmRx.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.mY6ihJcA.js +0 -29
- package/dist/chunks/cross-circle-fill-small.mY6ihJcA.js.map +0 -1
- package/dist/chunks/cross-circle-fill.B7YpDLTK.js +0 -44
- package/dist/chunks/cross-circle-fill.B7YpDLTK.js.map +0 -1
- package/dist/chunks/cross-small.CFrBIeYK.js +0 -29
- package/dist/chunks/cross-small.CFrBIeYK.js.map +0 -1
- package/dist/chunks/cross.CbLEjiVy.js +0 -29
- package/dist/chunks/cross.CbLEjiVy.js.map +0 -1
- package/dist/chunks/currency.DagWnTry.js +0 -109
- package/dist/chunks/currency.DagWnTry.js.map +0 -1
- package/dist/chunks/dashboard-section.BTJ8h5Kd.js +0 -165
- package/dist/chunks/dashboard-section.BTJ8h5Kd.js.map +0 -1
- package/dist/chunks/dashed-underline.BpSS0BTl.js +0 -98
- package/dist/chunks/dashed-underline.BpSS0BTl.js.map +0 -1
- package/dist/chunks/data-grid-template.CnrbFvb3.js +0 -111
- package/dist/chunks/data-grid-template.CnrbFvb3.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.PAFw8voO.js +0 -3646
- package/dist/chunks/data-grid.PAFw8voO.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.CSn6F3aG.js +0 -315
- package/dist/chunks/date-picker.CSn6F3aG.js.map +0 -1
- package/dist/chunks/date-range-picker.ByQ_yM6z.js +0 -1170
- package/dist/chunks/date-range-picker.ByQ_yM6z.js.map +0 -1
- package/dist/chunks/date.CKXySBQv.js +0 -995
- package/dist/chunks/date.CKXySBQv.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.C72BX6So.js +0 -175
- package/dist/chunks/dialog-page.C72BX6So.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.qUOSAbU6.js +0 -33
- package/dist/chunks/divider.qUOSAbU6.js.map +0 -1
- package/dist/chunks/dot.BW-xtyjC.js +0 -29
- package/dist/chunks/dot.BW-xtyjC.js.map +0 -1
- package/dist/chunks/dropdown-default-textbox.BNhy-QDH.js +0 -419
- package/dist/chunks/dropdown-default-textbox.BNhy-QDH.js.map +0 -1
- package/dist/chunks/dropdown-tag.D_oUoZBc.js +0 -202
- package/dist/chunks/dropdown-tag.D_oUoZBc.js.map +0 -1
- package/dist/chunks/dropdown.B8LbzSzW.js +0 -936
- package/dist/chunks/dropdown.B8LbzSzW.js.map +0 -1
- package/dist/chunks/empty-state.BGWjUH6G.js +0 -185
- package/dist/chunks/empty-state.BGWjUH6G.js.map +0 -1
- package/dist/chunks/error-message.BzDQxHUy.js +0 -158
- package/dist/chunks/error-message.BzDQxHUy.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.FNmSWp_P.js +0 -52
- package/dist/chunks/events.FNmSWp_P.js.map +0 -1
- package/dist/chunks/expand.DusW7F7p.js +0 -33
- package/dist/chunks/expand.DusW7F7p.js.map +0 -1
- package/dist/chunks/file-uploader.HMZfzgaO.js +0 -2280
- package/dist/chunks/file-uploader.HMZfzgaO.js.map +0 -1
- package/dist/chunks/filter-bar.CKxLJDQE.js +0 -2976
- package/dist/chunks/filter-bar.CKxLJDQE.js.map +0 -1
- package/dist/chunks/fixed-scroller.BjxA_R63.js +0 -147
- package/dist/chunks/fixed-scroller.BjxA_R63.js.map +0 -1
- package/dist/chunks/focus-trap.BdrEB4Ld.js +0 -500
- package/dist/chunks/focus-trap.BdrEB4Ld.js.map +0 -1
- package/dist/chunks/footer-actions.DqKdjjjh.js +0 -110
- package/dist/chunks/footer-actions.DqKdjjjh.js.map +0 -1
- package/dist/chunks/form-layout-title.CsmjzAje.js +0 -206
- package/dist/chunks/form-layout-title.CsmjzAje.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.DQlZEsId.js +0 -12
- package/dist/chunks/get-slot-text.DQlZEsId.js.map +0 -1
- package/dist/chunks/grid-layout.BTLE3rac.js +0 -114
- package/dist/chunks/grid-layout.BTLE3rac.js.map +0 -1
- package/dist/chunks/header-with-views.BVcLQi-H.js +0 -2354
- package/dist/chunks/header-with-views.BVcLQi-H.js.map +0 -1
- package/dist/chunks/header.CYPznLHg.js +0 -253
- package/dist/chunks/header.CYPznLHg.js.map +0 -1
- package/dist/chunks/i18n.B6g5VX0q.js +0 -3131
- package/dist/chunks/i18n.B6g5VX0q.js.map +0 -1
- package/dist/chunks/image.vue_vue_type_script_setup_true_lang.DQT2oNEF.js +0 -47
- package/dist/chunks/image.vue_vue_type_script_setup_true_lang.DQT2oNEF.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.CVpo3mlK.js +0 -528
- package/dist/chunks/index.CVpo3mlK.js.map +0 -1
- package/dist/chunks/index.CWuzEfiV.js +0 -6
- package/dist/chunks/index.CWuzEfiV.js.map +0 -1
- package/dist/chunks/index.DD7TppDb.js +0 -10
- package/dist/chunks/index.DD7TppDb.js.map +0 -1
- package/dist/chunks/info-icon-with-popover.BUtJRYXy.js +0 -97
- package/dist/chunks/info-icon-with-popover.BUtJRYXy.js.map +0 -1
- package/dist/chunks/info-icon.MO6y9Dyv.js +0 -45
- package/dist/chunks/info-icon.MO6y9Dyv.js.map +0 -1
- package/dist/chunks/info.HK3R7Drc.js +0 -44
- package/dist/chunks/info.HK3R7Drc.js.map +0 -1
- package/dist/chunks/input-field-password.c6WXpF9U.js +0 -366
- package/dist/chunks/input-field-password.c6WXpF9U.js.map +0 -1
- package/dist/chunks/input-field-phone-number.DQxF-6wT.js +0 -3106
- package/dist/chunks/input-field-phone-number.DQxF-6wT.js.map +0 -1
- package/dist/chunks/input-field.BDEEGU2t.js +0 -298
- package/dist/chunks/input-field.BDEEGU2t.js.map +0 -1
- package/dist/chunks/inspector.types.BQnVv5HX.js +0 -187
- package/dist/chunks/inspector.types.BQnVv5HX.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.CqgGzfZQ.js +0 -66
- package/dist/chunks/keyboard-navigation.CqgGzfZQ.js.map +0 -1
- package/dist/chunks/layout-row.CRRLYA03.js +0 -100
- package/dist/chunks/layout-row.CRRLYA03.js.map +0 -1
- package/dist/chunks/link.CTH1xj0i.js +0 -116
- package/dist/chunks/link.CTH1xj0i.js.map +0 -1
- package/dist/chunks/listbox-option-tag.CTipR05e.js +0 -55
- package/dist/chunks/listbox-option-tag.CTipR05e.js.map +0 -1
- package/dist/chunks/loading-indicator.DEepb9Wl.js +0 -44
- package/dist/chunks/loading-indicator.DEepb9Wl.js.map +0 -1
- package/dist/chunks/menu.HVsIOPzt.js +0 -768
- package/dist/chunks/menu.HVsIOPzt.js.map +0 -1
- package/dist/chunks/modal-fullscreen.CN1dCmU-.js +0 -270
- package/dist/chunks/modal-fullscreen.CN1dCmU-.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.vue_vue_type_script_setup_true_lang._xN4vNxW.js +0 -501
- package/dist/chunks/modal.vue_vue_type_script_setup_true_lang._xN4vNxW.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.Cv-jL5MP.js +0 -461
- package/dist/chunks/pagination.Cv-jL5MP.js.map +0 -1
- package/dist/chunks/payment-method.eazefwm6.js +0 -125
- package/dist/chunks/payment-method.eazefwm6.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.sXC1vaC4.js +0 -350
- package/dist/chunks/popover.sXC1vaC4.js.map +0 -1
- package/dist/chunks/popper-container.CWgM0skS.js +0 -1396
- package/dist/chunks/popper-container.CWgM0skS.js.map +0 -1
- package/dist/chunks/popper-container.types.BCZMbVFD.js +0 -9
- package/dist/chunks/popper-container.types.BCZMbVFD.js.map +0 -1
- package/dist/chunks/promo-banner.CoB1tBCC.js +0 -126
- package/dist/chunks/promo-banner.CoB1tBCC.js.map +0 -1
- package/dist/chunks/radio-group.BzLVfoL0.js +0 -321
- package/dist/chunks/radio-group.BzLVfoL0.js.map +0 -1
- package/dist/chunks/radio-input.DKfQGxtp.js +0 -96
- package/dist/chunks/radio-input.DKfQGxtp.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.C20ROVDS.js +0 -29
- package/dist/chunks/refresh.C20ROVDS.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.C5RIGjDX.js +0 -6221
- package/dist/chunks/rich-text-editor.C5RIGjDX.js.map +0 -1
- package/dist/chunks/search-bar.C8bAeztI.js +0 -114
- package/dist/chunks/search-bar.C8bAeztI.js.map +0 -1
- package/dist/chunks/search.CW_aTqip.js +0 -44
- package/dist/chunks/search.CW_aTqip.js.map +0 -1
- package/dist/chunks/secondary-nav.BZF_9ztn.js +0 -137
- package/dist/chunks/secondary-nav.BZF_9ztn.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/segmented-control.u3a7Mssn.js +0 -144
- package/dist/chunks/segmented-control.u3a7Mssn.js.map +0 -1
- package/dist/chunks/selection-card-group.CSFQ-f8m.js +0 -474
- package/dist/chunks/selection-card-group.CSFQ-f8m.js.map +0 -1
- package/dist/chunks/show.ByWWaogc.js +0 -64
- package/dist/chunks/show.ByWWaogc.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/sidepanel.kwEMG5ee.js +0 -254
- package/dist/chunks/sidepanel.kwEMG5ee.js.map +0 -1
- package/dist/chunks/status.types.Bdv2zuuh.js +0 -44
- package/dist/chunks/status.types.Bdv2zuuh.js.map +0 -1
- package/dist/chunks/step.7l-t-eN9.js +0 -264
- package/dist/chunks/step.7l-t-eN9.js.map +0 -1
- package/dist/chunks/structured-list-item.DLJp-ApS.js +0 -108
- package/dist/chunks/structured-list-item.DLJp-ApS.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.DkyTeEAn.js +0 -466
- package/dist/chunks/summary-grid.types.DkyTeEAn.js.map +0 -1
- package/dist/chunks/tabs.Bn4YIjoy.js +0 -266
- package/dist/chunks/tabs.Bn4YIjoy.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.Me7nYLMe.js +0 -51
- package/dist/chunks/tag.Me7nYLMe.js.map +0 -1
- package/dist/chunks/teleport.CfGWjxe2.js +0 -129
- package/dist/chunks/teleport.CfGWjxe2.js.map +0 -1
- package/dist/chunks/textarea.BbSzCJ-3.js +0 -278
- package/dist/chunks/textarea.BbSzCJ-3.js.map +0 -1
- package/dist/chunks/timeline-item._h_dMFfm.js +0 -567
- package/dist/chunks/timeline-item._h_dMFfm.js.map +0 -1
- package/dist/chunks/toast.Ae5ZoWHb.js +0 -221
- package/dist/chunks/toast.Ae5ZoWHb.js.map +0 -1
- package/dist/chunks/toggle-button.Dv1t15yj.js +0 -80
- package/dist/chunks/toggle-button.Dv1t15yj.js.map +0 -1
- package/dist/chunks/toggle.hoD_i2Ey.js +0 -161
- package/dist/chunks/toggle.hoD_i2Ey.js.map +0 -1
- package/dist/chunks/tooltip.CGMSPub2.js +0 -205
- package/dist/chunks/tooltip.CGMSPub2.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.vue_vue_type_script_setup_true_lang.CysjLLSS.js +0 -423
- package/dist/chunks/tutorial.vue_vue_type_script_setup_true_lang.CysjLLSS.js.map +0 -1
- package/dist/chunks/typography.DN5eC5ch.js +0 -83
- package/dist/chunks/typography.DN5eC5ch.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.D3LA1FCd.js +0 -50
- package/dist/chunks/use-bento-toast-controller.D3LA1FCd.js.map +0 -1
- package/dist/chunks/use-cached-selected-values.Dk0UxwFJ.js +0 -1475
- package/dist/chunks/use-cached-selected-values.Dk0UxwFJ.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.4kZgVg_l.js +0 -30
- package/dist/chunks/use-country-items.4kZgVg_l.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.O02rzsob.js +0 -16
- package/dist/chunks/use-default-slot-validator.O02rzsob.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.B7eQSabc.js +0 -15
- package/dist/chunks/use-has-slot.B7eQSabc.js.map +0 -1
- package/dist/chunks/warning-filled.DmHh0nYG.js +0 -29
- package/dist/chunks/warning-filled.DmHh0nYG.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 -370
- 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 -10
- 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 -49
|
@@ -1,936 +0,0 @@
|
|
|
1
|
-
import { ref as C, watch as Oe, computed as f, defineComponent as j, useSlots as Be, toRefs as De, createBlock as K, openBlock as L, resolveDynamicComponent as Ie, mergeProps as M, withCtx as z, createElementVNode as te, withKeys as _e, unref as n, createVNode as Q, toHandlers as G, createSlots as re, renderList as de, renderSlot as X, normalizeProps as ue, guardReactiveProps as ce, createElementBlock as P, createCommentVNode as F, toDisplayString as ve, normalizeClass as pe, withDirectives as ee, vShow as Le, nextTick as I, useAttrs as Ze, toRef as D, inject as Qe, createTextVNode as Xe } from "vue";
|
|
2
|
-
import { d as Ee, B as Ge } from "./typography.DN5eC5ch.js";
|
|
3
|
-
import { a as se, b as J, c as et, B as V, D as tt } from "./dropdown-default-textbox.BNhy-QDH.js";
|
|
4
|
-
/* empty css */
|
|
5
|
-
import { _ } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
6
|
-
import { s as ie } from "./events.FNmSWp_P.js";
|
|
7
|
-
import { g as Y } from "./generate-uid.NJ8tVoha.js";
|
|
8
|
-
import { u as at } from "./aria-label.CaUURpnB.js";
|
|
9
|
-
import { u as ye } from "./i18n.B6g5VX0q.js";
|
|
10
|
-
import { u as ot } from "./use-form-layout-loading.D3lALhtC.js";
|
|
11
|
-
import { B as lt } from "./directive.Cbdox5VL.js";
|
|
12
|
-
import { B as $, a as nt } from "./keyboard-navigation.CqgGzfZQ.js";
|
|
13
|
-
import { a as p, b as fe, B as me, c as st, u as it } from "./use-cached-selected-values.Dk0UxwFJ.js";
|
|
14
|
-
import { u as rt } from "./use-has-slot.B7eQSabc.js";
|
|
15
|
-
import { F as dt, E as ut } from "./error-message.BzDQxHUy.js";
|
|
16
|
-
import { P as we } from "./popper-container.CWgM0skS.js";
|
|
17
|
-
import "./popper-container.types.BCZMbVFD.js";
|
|
18
|
-
import { B as ct } from "./popover.sXC1vaC4.js";
|
|
19
|
-
import "../assets/dropdown.css";
|
|
20
|
-
const be = {
|
|
21
|
-
"en-US": {
|
|
22
|
-
apply: "Apply",
|
|
23
|
-
cancel: "Cancel",
|
|
24
|
-
noOptionsMatchThisSearch: "No options match this search"
|
|
25
|
-
},
|
|
26
|
-
"ja-JP": {
|
|
27
|
-
apply: "適用",
|
|
28
|
-
cancel: "キャンセル"
|
|
29
|
-
},
|
|
30
|
-
"pt-BR": {
|
|
31
|
-
apply: "Aplicar",
|
|
32
|
-
cancel: "Cancelar"
|
|
33
|
-
}
|
|
34
|
-
}, pt = (e, i, s, a) => {
|
|
35
|
-
const l = C(e.value), { t: o } = ye({ messages: be });
|
|
36
|
-
Oe(e, () => {
|
|
37
|
-
l.value = e.value;
|
|
38
|
-
});
|
|
39
|
-
const t = f(
|
|
40
|
-
() => JSON.stringify(l.value) === JSON.stringify(e.value)
|
|
41
|
-
), c = () => {
|
|
42
|
-
a(p.SELECT, l.value), a(p.CLOSE_DROPDOWN);
|
|
43
|
-
}, m = () => {
|
|
44
|
-
l.value = e.value, a(p.CLOSE_DROPDOWN);
|
|
45
|
-
}, h = () => {
|
|
46
|
-
s.value && i.value && (l.value = e.value);
|
|
47
|
-
}, r = f(() => [
|
|
48
|
-
{
|
|
49
|
-
title: o("apply"),
|
|
50
|
-
event: c,
|
|
51
|
-
disabled: t.value
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
title: o("cancel"),
|
|
55
|
-
event: m
|
|
56
|
-
}
|
|
57
|
-
]), g = (S) => {
|
|
58
|
-
l.value = S, i.value || a(p.SELECT, S);
|
|
59
|
-
}, u = (S) => {
|
|
60
|
-
g(S), a(p.TAB);
|
|
61
|
-
}, x = (S) => {
|
|
62
|
-
g(S), a(p.ENTER);
|
|
63
|
-
}, O = (S) => {
|
|
64
|
-
g(S), a(p.SPACE);
|
|
65
|
-
}, v = () => {
|
|
66
|
-
m(), a(p.ESCAPE);
|
|
67
|
-
}, B = () => {
|
|
68
|
-
a(p.SHOW_MORE);
|
|
69
|
-
}, E = {
|
|
70
|
-
[p.SELECT]: g,
|
|
71
|
-
[p.SHOW_MORE]: B,
|
|
72
|
-
[p.TAB]: u,
|
|
73
|
-
[p.SPACE]: O,
|
|
74
|
-
[p.ENTER]: x
|
|
75
|
-
};
|
|
76
|
-
return {
|
|
77
|
-
// Values
|
|
78
|
-
actions: r,
|
|
79
|
-
internalSelectedValue: l,
|
|
80
|
-
// Methods
|
|
81
|
-
listeners: E,
|
|
82
|
-
onEscapeKey: v,
|
|
83
|
-
onOutsideDropdownClick: h
|
|
84
|
-
};
|
|
85
|
-
}, ft = j({
|
|
86
|
-
i18n: { messages: be },
|
|
87
|
-
name: "bento-dropdown-options-container"
|
|
88
|
-
}), mt = /* @__PURE__ */ j({
|
|
89
|
-
...ft,
|
|
90
|
-
props: {
|
|
91
|
-
/**
|
|
92
|
-
* Defines a string value that labels an interactive element.
|
|
93
|
-
*/
|
|
94
|
-
ariaLabel: { type: String, default: null },
|
|
95
|
-
/**
|
|
96
|
-
* Indicates that dropdown items are loading
|
|
97
|
-
*/
|
|
98
|
-
componentLoading: { type: Boolean, default: !1 },
|
|
99
|
-
/**
|
|
100
|
-
* Empty state props used with the inner empty state component which is displayed when no search results are found.
|
|
101
|
-
*/
|
|
102
|
-
emptyState: {
|
|
103
|
-
type: Object,
|
|
104
|
-
default: void 0
|
|
105
|
-
},
|
|
106
|
-
/**
|
|
107
|
-
* Disables dropdown functionality
|
|
108
|
-
*/
|
|
109
|
-
disabled: { type: Boolean, default: !1 },
|
|
110
|
-
/**
|
|
111
|
-
* Indicates whether there are more items to load
|
|
112
|
-
*/
|
|
113
|
-
hasMoreItems: { type: Boolean, default: !1 },
|
|
114
|
-
/**
|
|
115
|
-
* Identifies the listbox whose contents are controlled by the the combobox on which the aria-controls attribute is set.
|
|
116
|
-
*/
|
|
117
|
-
id: { type: String, required: !0 },
|
|
118
|
-
/**
|
|
119
|
-
* Function that allows the options to be disabled
|
|
120
|
-
*
|
|
121
|
-
* @type {BentoDropdownIsOptionDisabled}
|
|
122
|
-
* @param {BentoDropdownOptionItem} option - Dropdown option object
|
|
123
|
-
* @param {string} option.label - Option's label text
|
|
124
|
-
* @param {string|number} option.value - Option's value
|
|
125
|
-
* @param {unknown} option.data - Option's extra data to be passed to the default slot
|
|
126
|
-
*/
|
|
127
|
-
isOptionDisabled: {
|
|
128
|
-
type: Function,
|
|
129
|
-
default: void 0
|
|
130
|
-
},
|
|
131
|
-
/**
|
|
132
|
-
* The option elements to populate the dropdown with.
|
|
133
|
-
* It must be an array of {@see BentoDropdownOptionItem }
|
|
134
|
-
* * @property {string} value.label - Text to be displayed in the option
|
|
135
|
-
* * @property {string,number} value.value - Value of the option
|
|
136
|
-
*/
|
|
137
|
-
items: {
|
|
138
|
-
type: Array,
|
|
139
|
-
required: !0
|
|
140
|
-
},
|
|
141
|
-
/**
|
|
142
|
-
* The type of `Lazy Load`.
|
|
143
|
-
* Type "automatic" will enable infinite scrolling
|
|
144
|
-
* Type "button" will enable lazy loading with "Show more" button
|
|
145
|
-
*/
|
|
146
|
-
lazyLoadType: {
|
|
147
|
-
type: String,
|
|
148
|
-
default: me.AUTOMATIC,
|
|
149
|
-
validator: (e) => Object.values(me).includes(e)
|
|
150
|
-
},
|
|
151
|
-
/**
|
|
152
|
-
* Indicates if new options are lazy loading.
|
|
153
|
-
*/
|
|
154
|
-
loading: { type: Boolean, default: !1 },
|
|
155
|
-
/**
|
|
156
|
-
* If enabled, the user will be able to select multiple items.
|
|
157
|
-
*/
|
|
158
|
-
multiple: { type: Boolean, default: !1 },
|
|
159
|
-
/**
|
|
160
|
-
* Indicates if the dropdown is open so that
|
|
161
|
-
* the container can be displayed.
|
|
162
|
-
*/
|
|
163
|
-
open: { type: Boolean, required: !0 },
|
|
164
|
-
/**
|
|
165
|
-
* The `input` value.
|
|
166
|
-
* Providing an empty string or empty array will select no options.
|
|
167
|
-
* Set to an empty string `''` if you don't want any of the available options to be selected for single select
|
|
168
|
-
*/
|
|
169
|
-
selectedValue: {
|
|
170
|
-
type: Array,
|
|
171
|
-
default: null
|
|
172
|
-
},
|
|
173
|
-
/**
|
|
174
|
-
* Flag that indicates that an external search it's being made
|
|
175
|
-
* to filter out the items inside the the multi-select listbox
|
|
176
|
-
*
|
|
177
|
-
* If enabled, hides the "Select all" checkbox in "multiple" mode.
|
|
178
|
-
*/
|
|
179
|
-
searching: fe.props.searching,
|
|
180
|
-
/**
|
|
181
|
-
* If enabled, dropdown will display non-selectable, static categories
|
|
182
|
-
*/
|
|
183
|
-
staticCategories: { type: Boolean, default: !1 },
|
|
184
|
-
/**
|
|
185
|
-
* Reference to the DOM element or Vue component for positioning
|
|
186
|
-
* the Dropdown container.
|
|
187
|
-
*/
|
|
188
|
-
targetElement: { type: we.props.targetElement.type, required: !0 },
|
|
189
|
-
/**
|
|
190
|
-
* Enables virtual scrolling if set to true or by providing an object with itemHeight function.
|
|
191
|
-
* The itemHeight function is used to calculate the height of rendered item given it's index.
|
|
192
|
-
*/
|
|
193
|
-
virtualScroll: {
|
|
194
|
-
type: [Boolean, Object],
|
|
195
|
-
default: !1
|
|
196
|
-
}
|
|
197
|
-
},
|
|
198
|
-
setup(e, { expose: i, emit: s }) {
|
|
199
|
-
const a = Be(), l = s, o = e, { selectedValue: t, multiple: c } = De(o), m = C(null), { t: h } = ye({ messages: be }), r = f(() => o.open && !o.disabled), g = f(() => h("noOptionsMatchThisSearch")), u = f(() => ({
|
|
200
|
-
"b-dropdown-options-container--single": !(o != null && o.multiple)
|
|
201
|
-
})), x = f(() => ({
|
|
202
|
-
"b-dropdown-options-container__listbox--single": !(o != null && o.multiple)
|
|
203
|
-
})), { actions: O, internalSelectedValue: v, listeners: B, onEscapeKey: E, onOutsideDropdownClick: S } = pt(t, c, r, l), W = f(() => o != null && o.multiple ? ct : we), q = f(() => {
|
|
204
|
-
var d;
|
|
205
|
-
const N = {
|
|
206
|
-
"min-width": `${(d = o == null ? void 0 : o.targetElement) == null ? void 0 : d.clientWidth}px`,
|
|
207
|
-
"max-width": "min(500px, 95%)"
|
|
208
|
-
};
|
|
209
|
-
return o != null && o.multiple ? {
|
|
210
|
-
actionsLayout: "space-between",
|
|
211
|
-
actions: O.value,
|
|
212
|
-
divider: !0,
|
|
213
|
-
fallbackPosition: ["top-start"],
|
|
214
|
-
id: Y(`dropdown-options-${o.id}`),
|
|
215
|
-
open: o.open,
|
|
216
|
-
position: "bottom-start",
|
|
217
|
-
style: {
|
|
218
|
-
width: "auto",
|
|
219
|
-
...N
|
|
220
|
-
},
|
|
221
|
-
targetElement: o.targetElement
|
|
222
|
-
} : {
|
|
223
|
-
fallbackPosition: ["top-start"],
|
|
224
|
-
offset: [0, 8],
|
|
225
|
-
position: "bottom-start",
|
|
226
|
-
style: {
|
|
227
|
-
display: r.value ? "block" : "none",
|
|
228
|
-
...N
|
|
229
|
-
},
|
|
230
|
-
targetElement: o.targetElement
|
|
231
|
-
};
|
|
232
|
-
});
|
|
233
|
-
return i({
|
|
234
|
-
onOutsideDropdownClick: S
|
|
235
|
-
}), (N, d) => (L(), K(Ie(W.value), M({
|
|
236
|
-
class: ["b-dropdown-options-container", u.value],
|
|
237
|
-
"aria-label": e.ariaLabel
|
|
238
|
-
}, q.value), {
|
|
239
|
-
default: z(() => [
|
|
240
|
-
te("div", {
|
|
241
|
-
onKeydown: d[0] || (d[0] = _e(
|
|
242
|
-
//@ts-ignore
|
|
243
|
-
(...y) => n(E) && n(E)(...y),
|
|
244
|
-
["esc"]
|
|
245
|
-
))
|
|
246
|
-
}, [
|
|
247
|
-
Q(n(fe), M({
|
|
248
|
-
id: e.id,
|
|
249
|
-
ref_key: "dropdownOptionsListboxRef",
|
|
250
|
-
ref: m,
|
|
251
|
-
"aria-label": e.ariaLabel,
|
|
252
|
-
class: ["b-dropdown-options-container__listbox", x.value],
|
|
253
|
-
"component-loading": e.componentLoading,
|
|
254
|
-
"empty-state": e.emptyState,
|
|
255
|
-
"is-option-disabled": e.isOptionDisabled,
|
|
256
|
-
items: e.items,
|
|
257
|
-
"selected-value": n(v),
|
|
258
|
-
multiple: n(c),
|
|
259
|
-
"static-categories": e.staticCategories,
|
|
260
|
-
"no-results-message": g.value,
|
|
261
|
-
searching: e.searching,
|
|
262
|
-
loading: e.loading,
|
|
263
|
-
"lazy-load-type": e.lazyLoadType,
|
|
264
|
-
"has-more-items": e.hasMoreItems,
|
|
265
|
-
"virtual-scroll": e.virtualScroll
|
|
266
|
-
}, G(n(B))), re({ _: 2 }, [
|
|
267
|
-
de(n(a), (y, w) => ({
|
|
268
|
-
name: w,
|
|
269
|
-
fn: z((A) => [
|
|
270
|
-
X(N.$slots, w, ue(ce(A)), void 0, !0)
|
|
271
|
-
])
|
|
272
|
-
}))
|
|
273
|
-
]), 1040, ["id", "aria-label", "class", "component-loading", "empty-state", "is-option-disabled", "items", "selected-value", "multiple", "static-categories", "no-results-message", "searching", "loading", "lazy-load-type", "has-more-items", "virtual-scroll"])
|
|
274
|
-
], 32)
|
|
275
|
-
]),
|
|
276
|
-
_: 3
|
|
277
|
-
}, 16, ["aria-label", "class"]));
|
|
278
|
-
}
|
|
279
|
-
}), vt = /* @__PURE__ */ _(mt, [["__scopeId", "data-v-a5de52a2"]]);
|
|
280
|
-
let Ce = 0;
|
|
281
|
-
const yt = {
|
|
282
|
-
beforeCreate() {
|
|
283
|
-
this.uuid = Ce.toString(), Ce += 1;
|
|
284
|
-
}
|
|
285
|
-
}, bt = { key: 0 };
|
|
286
|
-
function gt(e, i, s, a, l, o) {
|
|
287
|
-
return L(), P("svg", M({ role: "img" }, e.$attrs, {
|
|
288
|
-
class: "ui-assets-icons-16",
|
|
289
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
290
|
-
width: "16",
|
|
291
|
-
height: "16",
|
|
292
|
-
fill: "none"
|
|
293
|
-
}), [
|
|
294
|
-
e.$attrs["svg-title"] ? (L(), P("title", bt, ve(e.$attrs["svg-title"]), 1)) : F("", !0),
|
|
295
|
-
i[0] || (i[0] = te("path", {
|
|
296
|
-
fill: "#00112C",
|
|
297
|
-
d: "M5.00011 5.43922L8.00011 8.43922L11.0001 5.43922L12.0608 6.49988L8.00011 10.5605L3.93945 6.49988L5.00011 5.43922Z"
|
|
298
|
-
}, null, -1))
|
|
299
|
-
], 16);
|
|
300
|
-
}
|
|
301
|
-
const ht = /* @__PURE__ */ _(yt, [["render", gt]]);
|
|
302
|
-
let xe = 0;
|
|
303
|
-
const St = {
|
|
304
|
-
beforeCreate() {
|
|
305
|
-
this.uuid = xe.toString(), xe += 1;
|
|
306
|
-
}
|
|
307
|
-
}, Lt = { key: 0 };
|
|
308
|
-
function Et(e, i, s, a, l, o) {
|
|
309
|
-
return L(), P("svg", M({ role: "img" }, e.$attrs, {
|
|
310
|
-
class: "ui-assets-icons-16",
|
|
311
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
312
|
-
width: "16",
|
|
313
|
-
height: "16",
|
|
314
|
-
fill: "none"
|
|
315
|
-
}), [
|
|
316
|
-
e.$attrs["svg-title"] ? (L(), P("title", Lt, ve(e.$attrs["svg-title"]), 1)) : F("", !0),
|
|
317
|
-
i[0] || (i[0] = te("path", {
|
|
318
|
-
fill: "#00112C",
|
|
319
|
-
d: "M10.9999 10.5608L7.9999 7.56077L4.9999 10.5608L3.93924 9.50011L7.9999 5.43945L12.0606 9.50011L10.9999 10.5608Z"
|
|
320
|
-
}, null, -1))
|
|
321
|
-
], 16);
|
|
322
|
-
}
|
|
323
|
-
const wt = /* @__PURE__ */ _(St, [["render", Et]]), Ct = { class: "b-dropdown-small-textbox__chevron" }, xt = j({
|
|
324
|
-
name: "dropdown-small-textbox",
|
|
325
|
-
inheritAttrs: !1
|
|
326
|
-
}), Ot = /* @__PURE__ */ j({
|
|
327
|
-
...xt,
|
|
328
|
-
props: {
|
|
329
|
-
/**
|
|
330
|
-
* The number of additional items that have been selected in the dropdown.
|
|
331
|
-
*/
|
|
332
|
-
additionalItemsSelected: { type: [Number, String], default: 0 },
|
|
333
|
-
/**
|
|
334
|
-
* Sets the aria-controls attribute on the textbox. This should correspond to the popover's id that the textbox triggers.
|
|
335
|
-
*/
|
|
336
|
-
ariaControls: { type: String, required: !0 },
|
|
337
|
-
/**
|
|
338
|
-
* 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.
|
|
339
|
-
*/
|
|
340
|
-
ariaExpanded: {
|
|
341
|
-
type: [String, Boolean],
|
|
342
|
-
required: !0
|
|
343
|
-
},
|
|
344
|
-
/**
|
|
345
|
-
* If no label element is used then the aria-label is be set should be set.
|
|
346
|
-
*/
|
|
347
|
-
ariaLabel: { type: String, default: null },
|
|
348
|
-
/**
|
|
349
|
-
* Corresponds to the label's id that labels the textbox element.
|
|
350
|
-
*/
|
|
351
|
-
ariaLabelledby: { type: String, default: null },
|
|
352
|
-
/**
|
|
353
|
-
* Custom debounce time. Default: 300
|
|
354
|
-
*/
|
|
355
|
-
debounceTime: { type: Number, default: 300 },
|
|
356
|
-
/**
|
|
357
|
-
* Disables any textbox functionality
|
|
358
|
-
*/
|
|
359
|
-
disabled: { type: Boolean, default: !1 },
|
|
360
|
-
/**
|
|
361
|
-
* Selected option's label
|
|
362
|
-
*/
|
|
363
|
-
displayValue: { type: String, default: null },
|
|
364
|
-
/**
|
|
365
|
-
* Sets the possibility to type into the textbox
|
|
366
|
-
*/
|
|
367
|
-
dynamicFiltering: { type: Boolean, default: !1 },
|
|
368
|
-
/**
|
|
369
|
-
* Marks the textbox as invalid, rendering an error state
|
|
370
|
-
*/
|
|
371
|
-
isInvalid: { type: Boolean, default: !1 },
|
|
372
|
-
/**
|
|
373
|
-
* Indicates if the dropdown is open so that
|
|
374
|
-
* the respective event can be emitted
|
|
375
|
-
*/
|
|
376
|
-
open: { type: Boolean, default: !1 },
|
|
377
|
-
/**
|
|
378
|
-
* Sets the dropdown to readonly state
|
|
379
|
-
*/
|
|
380
|
-
readonly: { type: Boolean, default: !1 },
|
|
381
|
-
/**
|
|
382
|
-
* The input value
|
|
383
|
-
*/
|
|
384
|
-
value: { type: String, default: "" }
|
|
385
|
-
},
|
|
386
|
-
emits: ["clear", "close", "input", "keydown", "open"],
|
|
387
|
-
setup(e, { expose: i, emit: s }) {
|
|
388
|
-
const a = s, l = e, o = C(null), t = f(() => ({
|
|
389
|
-
[`b-dropdown-small-textbox--${se.DISABLED}`]: l.disabled,
|
|
390
|
-
[`b-dropdown-small-textbox--${se.READONLY}`]: l.readonly,
|
|
391
|
-
[`b-dropdown-small-textbox--${se.OPENED}`]: l.open
|
|
392
|
-
})), c = f(() => l.open && !l.disabled && !l.readonly), m = (v) => {
|
|
393
|
-
a("input", v);
|
|
394
|
-
}, h = (v) => {
|
|
395
|
-
a("keydown", v);
|
|
396
|
-
}, r = (v) => {
|
|
397
|
-
ie(v), a("open");
|
|
398
|
-
}, g = (v) => {
|
|
399
|
-
ie(v), a("close");
|
|
400
|
-
}, u = (v) => {
|
|
401
|
-
ie(v), a("clear");
|
|
402
|
-
}, x = {
|
|
403
|
-
[J.INPUT]: m,
|
|
404
|
-
[J.OPEN]: r,
|
|
405
|
-
[J.CLOSE]: g,
|
|
406
|
-
[J.CLEAR]: u,
|
|
407
|
-
[J.KEYDOWN]: h
|
|
408
|
-
};
|
|
409
|
-
return i({
|
|
410
|
-
focus: () => {
|
|
411
|
-
o.value.focus();
|
|
412
|
-
}
|
|
413
|
-
}), (v, B) => (L(), P("div", {
|
|
414
|
-
class: pe(["b-dropdown-small-textbox", t.value])
|
|
415
|
-
}, [
|
|
416
|
-
Q(et, M({
|
|
417
|
-
ref_key: "baseTextbox",
|
|
418
|
-
ref: o
|
|
419
|
-
}, { ...v.$attrs, ...v.$props }, {
|
|
420
|
-
class: "b-dropdown-small-textbox__textbox",
|
|
421
|
-
size: n(V).SMALL
|
|
422
|
-
}, G(x)), {
|
|
423
|
-
icon: z(() => [
|
|
424
|
-
te("div", Ct, [
|
|
425
|
-
ee(Q(n(wt), { "svg-title": "opened" }, null, 512), [
|
|
426
|
-
[Le, c.value]
|
|
427
|
-
]),
|
|
428
|
-
ee(Q(n(ht), { "svg-title": "closed" }, null, 512), [
|
|
429
|
-
[Le, !c.value]
|
|
430
|
-
])
|
|
431
|
-
])
|
|
432
|
-
]),
|
|
433
|
-
_: 1
|
|
434
|
-
}, 16, ["size"])
|
|
435
|
-
], 2));
|
|
436
|
-
}
|
|
437
|
-
}), Bt = /* @__PURE__ */ _(Ot, [["__scopeId", "data-v-66b5eaa5"]]), Dt = (e, i) => i.value.reduce((s, a) => {
|
|
438
|
-
if (a.items) {
|
|
439
|
-
const l = a.items.filter(
|
|
440
|
-
(t) => e.value.find((c) => c.value === t.value)
|
|
441
|
-
);
|
|
442
|
-
l.length === a.items.length ? s.push(a.displayValue ?? a.label) : l.forEach(({ label: t, displayValue: c }) => s.push(c ?? t));
|
|
443
|
-
}
|
|
444
|
-
return e.value.find((l) => l.value === a.value) && s.push(a.displayValue ?? a.label), s;
|
|
445
|
-
}, []).join(", "), It = ({ items: e, placeholder: i, selectedValues: s, isMultiSelect: a }) => {
|
|
446
|
-
const l = f(
|
|
447
|
-
() => a.value && e.value.find((t) => {
|
|
448
|
-
var c;
|
|
449
|
-
return (c = t.items) == null ? void 0 : c.length;
|
|
450
|
-
})
|
|
451
|
-
);
|
|
452
|
-
return f(() => s.value.length ? l.value ? Dt(s, e) : s.value.map(({ label: t, displayValue: c }) => c ?? t).join(", ") : i.value || null);
|
|
453
|
-
}, Te = (e) => {
|
|
454
|
-
var i;
|
|
455
|
-
(i = e.value.$children) == null || i[0].$refs.textbox.focus();
|
|
456
|
-
}, Tt = ({
|
|
457
|
-
inputContainerRef: e,
|
|
458
|
-
optionsContainerRef: i,
|
|
459
|
-
selectedValueIndex: s,
|
|
460
|
-
isDropdownOpen: a,
|
|
461
|
-
isDynamicFltering: l,
|
|
462
|
-
items: o,
|
|
463
|
-
isMultiple: t
|
|
464
|
-
}, c, m, h) => {
|
|
465
|
-
const r = async (d) => {
|
|
466
|
-
var y, w;
|
|
467
|
-
l.value && await I(), (w = (y = i.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef) == null ? void 0 : y.$el.querySelectorAll('[role="option"]')[d]) == null || w.focus();
|
|
468
|
-
}, g = async (d) => {
|
|
469
|
-
var w, A;
|
|
470
|
-
l.value && await I();
|
|
471
|
-
const y = (w = i.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef) == null ? void 0 : w.$el.querySelectorAll(
|
|
472
|
-
"button"
|
|
473
|
-
);
|
|
474
|
-
y.length ? (A = y[d]) == null || A.focus() : r(d);
|
|
475
|
-
}, u = (d) => {
|
|
476
|
-
var y;
|
|
477
|
-
return (y = i.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef) == null ? void 0 : y.setListboxFocusedIndex(
|
|
478
|
-
d
|
|
479
|
-
);
|
|
480
|
-
}, x = ({ detail: d }) => {
|
|
481
|
-
d.preventDefault(), a.value || m(), I(() => {
|
|
482
|
-
t ? g(0) : (u(s.value), r(s.value));
|
|
483
|
-
});
|
|
484
|
-
}, O = ({ detail: d }) => {
|
|
485
|
-
d.preventDefault(), a.value || m(), I(() => {
|
|
486
|
-
t ? g(0) : (u(s.value), r(s.value));
|
|
487
|
-
});
|
|
488
|
-
}, v = () => {
|
|
489
|
-
a.value || (m(), I(() => {
|
|
490
|
-
var d;
|
|
491
|
-
if (t) {
|
|
492
|
-
const y = i.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children;
|
|
493
|
-
(d = y == null ? void 0 : y[y.length - 1].$el.querySelectorAll('[role="option"]')[o.length - 1]) == null || d.focus();
|
|
494
|
-
} else
|
|
495
|
-
u(o.length - 1), r(o.length - 1);
|
|
496
|
-
}));
|
|
497
|
-
}, B = () => {
|
|
498
|
-
a.value && (h(), Te(e));
|
|
499
|
-
}, E = () => {
|
|
500
|
-
a.value && h();
|
|
501
|
-
}, S = () => {
|
|
502
|
-
a.value || m(), I(() => {
|
|
503
|
-
t ? g(0) : r(0);
|
|
504
|
-
});
|
|
505
|
-
}, W = ({ detail: d }) => {
|
|
506
|
-
d.preventDefault(), c(), a.value && I(() => {
|
|
507
|
-
t ? g(0) : (u(s.value), r(s.value));
|
|
508
|
-
});
|
|
509
|
-
}, q = ({ detail: d }) => {
|
|
510
|
-
d.preventDefault(), c(), a.value && I(() => {
|
|
511
|
-
t ? g(0) : (u(s.value), r(s.value));
|
|
512
|
-
});
|
|
513
|
-
};
|
|
514
|
-
return f(() => ({
|
|
515
|
-
...l.value ? {} : { [$.SPACE]: W },
|
|
516
|
-
[$.ENTER]: q,
|
|
517
|
-
[$.ARROW_DOWN]: x,
|
|
518
|
-
[$.ARROW_UP]: O,
|
|
519
|
-
[$.END]: v,
|
|
520
|
-
[$.ESCAPE]: B,
|
|
521
|
-
[$.HOME]: S,
|
|
522
|
-
[$.TAB]: E
|
|
523
|
-
}));
|
|
524
|
-
}, $t = ({ inputContainerRef: e, isDropdownOpen: i }, s) => {
|
|
525
|
-
const a = () => {
|
|
526
|
-
i.value && s(), I(() => {
|
|
527
|
-
Te(e);
|
|
528
|
-
});
|
|
529
|
-
};
|
|
530
|
-
return {
|
|
531
|
-
[p.ENTER]: a,
|
|
532
|
-
[p.ESCAPE]: a,
|
|
533
|
-
[p.TAB]: a,
|
|
534
|
-
[p.SPACE]: a
|
|
535
|
-
};
|
|
536
|
-
};
|
|
537
|
-
function Nt(e, i, s, a) {
|
|
538
|
-
const l = C(e), o = C(i), t = (m, h = []) => h.flatMap((r) => r.label.toLocaleLowerCase().includes(m) ? a != null && a.value && r.items ? [...t(m, r.items)] : [r, ...t(m, r.items)] : r.items ? [...t(m, r.items)] : []);
|
|
539
|
-
return Oe(l, () => {
|
|
540
|
-
s !== void 0 && s(l.value);
|
|
541
|
-
}), f(() => {
|
|
542
|
-
if (!l.value || s !== void 0)
|
|
543
|
-
return o.value;
|
|
544
|
-
const m = l.value.toLocaleLowerCase();
|
|
545
|
-
return t(m, o.value);
|
|
546
|
-
});
|
|
547
|
-
}
|
|
548
|
-
const $e = {
|
|
549
|
-
"en-US": {
|
|
550
|
-
all: "All",
|
|
551
|
-
ariaLabelFallback: "Dropdown",
|
|
552
|
-
clearSearch: "Clear filter"
|
|
553
|
-
},
|
|
554
|
-
"ja-JP": {
|
|
555
|
-
all: "すべて",
|
|
556
|
-
clearFilter: "フィルターをクリア"
|
|
557
|
-
},
|
|
558
|
-
"pt-BR": {
|
|
559
|
-
all: "Todos",
|
|
560
|
-
clearFilter: "Limpar filtro"
|
|
561
|
-
}
|
|
562
|
-
}, At = Symbol("input field component injection key"), ta = Symbol("input field hint injection key"), aa = Symbol("input field parent component injection key"), Rt = j({
|
|
563
|
-
i18n: { messages: $e },
|
|
564
|
-
name: "b-dropdown",
|
|
565
|
-
components: {
|
|
566
|
-
DropdownInputDefault: tt,
|
|
567
|
-
DropdownInputSmall: Bt
|
|
568
|
-
}
|
|
569
|
-
}), Mt = /* @__PURE__ */ j({
|
|
570
|
-
...Rt,
|
|
571
|
-
props: {
|
|
572
|
-
/**
|
|
573
|
-
* @deprecated from version 2.0.0. Use the aria-label attribute instead.
|
|
574
|
-
*/
|
|
575
|
-
/**
|
|
576
|
-
* Defines a string value that labels an interactive element.
|
|
577
|
-
*/
|
|
578
|
-
ariaLabel: { type: String, default: null },
|
|
579
|
-
/**
|
|
580
|
-
* Renders the dropdown with a condensed style.
|
|
581
|
-
*/
|
|
582
|
-
condensed: { type: Boolean, default: !1 },
|
|
583
|
-
/**
|
|
584
|
-
* Empty state props used with the inner empty state component which is displayed when no search results are found.
|
|
585
|
-
*/
|
|
586
|
-
emptyState: {
|
|
587
|
-
type: Object,
|
|
588
|
-
default: void 0
|
|
589
|
-
},
|
|
590
|
-
/**
|
|
591
|
-
* Disables dropdown functionality.
|
|
592
|
-
*/
|
|
593
|
-
disabled: { type: Boolean, default: !1 },
|
|
594
|
-
/**
|
|
595
|
-
* Sets the possibility to type into the textbox.
|
|
596
|
-
*/
|
|
597
|
-
dynamicFiltering: {
|
|
598
|
-
type: Boolean,
|
|
599
|
-
default: !1
|
|
600
|
-
},
|
|
601
|
-
/**
|
|
602
|
-
* Highlights the dropdown in an erroneous state.
|
|
603
|
-
*
|
|
604
|
-
* @deprecated Use "errorMessage" prop instead
|
|
605
|
-
*/
|
|
606
|
-
error: { type: Boolean, default: !1 },
|
|
607
|
-
/**
|
|
608
|
-
* Highlights the dropdown in an erroneous state with an error message.
|
|
609
|
-
*/
|
|
610
|
-
errorMessage: { type: String, default: null },
|
|
611
|
-
/**
|
|
612
|
-
* Descriptive supporting text visbile underneath the dropdown.
|
|
613
|
-
*/
|
|
614
|
-
description: { type: String, default: null },
|
|
615
|
-
/**
|
|
616
|
-
* Indicates whether there are more items to load
|
|
617
|
-
*/
|
|
618
|
-
hasMoreItems: { type: Boolean, default: !1 },
|
|
619
|
-
/**
|
|
620
|
-
* Function that dertermines which options are disabled from interaction.
|
|
621
|
-
*
|
|
622
|
-
* @type {BentoListboxIsOptionDisabled}
|
|
623
|
-
* @param {BentoListboxOptionItem} option - Dropdown option object
|
|
624
|
-
* @param {string} option.label - Option's label text
|
|
625
|
-
* @param {string|number} option.value - Option's value
|
|
626
|
-
* @param {unknown} option.data - Option's extra data to be passed to the default slot
|
|
627
|
-
*/
|
|
628
|
-
isOptionDisabled: {
|
|
629
|
-
type: Function,
|
|
630
|
-
default: void 0
|
|
631
|
-
},
|
|
632
|
-
/**
|
|
633
|
-
* The option elements to populate the dropdown with.
|
|
634
|
-
* It must be an array of {@see BentoListboxOptionItem }
|
|
635
|
-
* * @property {string} value.label - Text to be displayed in the option
|
|
636
|
-
* * @property {string,number} value.value - Value of the option
|
|
637
|
-
*/
|
|
638
|
-
items: {
|
|
639
|
-
type: Array,
|
|
640
|
-
default: () => []
|
|
641
|
-
},
|
|
642
|
-
/**
|
|
643
|
-
* Text that is displayed as a label above the element.
|
|
644
|
-
*/
|
|
645
|
-
label: { type: String, default: null },
|
|
646
|
-
/**
|
|
647
|
-
* Indicates if new options are lazy loading.
|
|
648
|
-
*/
|
|
649
|
-
loading: { type: Boolean, default: !1 },
|
|
650
|
-
/**
|
|
651
|
-
* Indicates that dropdown items are loading
|
|
652
|
-
*/
|
|
653
|
-
componentLoading: { type: Boolean, default: !1 },
|
|
654
|
-
/**
|
|
655
|
-
* The type of `Lazy Load`.
|
|
656
|
-
* Type "automatic" will enable infinite scrolling
|
|
657
|
-
* Type "button" will enable lazy loading with "Show more" button
|
|
658
|
-
*/
|
|
659
|
-
lazyLoadType: {
|
|
660
|
-
type: String,
|
|
661
|
-
default: fe.props.lazyLoadType.default,
|
|
662
|
-
validator: (e) => Object.values(me).includes(e)
|
|
663
|
-
},
|
|
664
|
-
/*
|
|
665
|
-
* If enabled, the user will be able to select multiple items.
|
|
666
|
-
*/
|
|
667
|
-
multiple: { type: Boolean, default: !1 },
|
|
668
|
-
/**
|
|
669
|
-
* Highlights the dropdown is optional.
|
|
670
|
-
*/
|
|
671
|
-
optional: { type: Boolean, default: !1 },
|
|
672
|
-
/**
|
|
673
|
-
* Text that appears in the form control when it has no value set
|
|
674
|
-
*/
|
|
675
|
-
placeholder: { type: String, default: null },
|
|
676
|
-
/**
|
|
677
|
-
* Sets the dropdown to readonly state
|
|
678
|
-
*/
|
|
679
|
-
readonly: { type: Boolean, default: !1 },
|
|
680
|
-
/**
|
|
681
|
-
* Highlights the dropdown is required.
|
|
682
|
-
*/
|
|
683
|
-
required: { type: Boolean, default: !1 },
|
|
684
|
-
/**
|
|
685
|
-
* Dropdown search options and events.
|
|
686
|
-
* @see BentoDropdownSearchOptions
|
|
687
|
-
*/
|
|
688
|
-
search: {
|
|
689
|
-
type: Object,
|
|
690
|
-
default: void 0
|
|
691
|
-
},
|
|
692
|
-
/**
|
|
693
|
-
* Toggles whether to use the slot content select items shown in the textbox in multiple mode.
|
|
694
|
-
*/
|
|
695
|
-
showSlotContentInMultiple: { type: Boolean, default: !1 },
|
|
696
|
-
/**
|
|
697
|
-
* @deprecated Do not use. Only 'default' size should be used.
|
|
698
|
-
*/
|
|
699
|
-
size: {
|
|
700
|
-
type: String,
|
|
701
|
-
default: null,
|
|
702
|
-
validator: (e) => Object.values(V).includes(e)
|
|
703
|
-
},
|
|
704
|
-
/**
|
|
705
|
-
* If enabled, dropdown will display non-selectable, static categories
|
|
706
|
-
*/
|
|
707
|
-
staticCategories: { type: Boolean, default: !1 },
|
|
708
|
-
/**
|
|
709
|
-
* Adds a info icon next to the label to display the passed tooltip message.
|
|
710
|
-
*/
|
|
711
|
-
tooltipText: { type: String, default: null },
|
|
712
|
-
/**
|
|
713
|
-
* The `input` value.
|
|
714
|
-
* Providing an empty string will select no options.
|
|
715
|
-
* Set to an empty string `''` if you don't want any of the available options to be selected.
|
|
716
|
-
*/
|
|
717
|
-
value: {
|
|
718
|
-
type: [String, Number, Array],
|
|
719
|
-
default: null
|
|
720
|
-
},
|
|
721
|
-
/**
|
|
722
|
-
* Enables virtual scrolling if set to true or by providing an object with itemHeight function.
|
|
723
|
-
* The itemHeight function is used to calculate the height of rendered item given it's index.
|
|
724
|
-
*/
|
|
725
|
-
virtualScroll: {
|
|
726
|
-
type: [Boolean, Object],
|
|
727
|
-
default: !1
|
|
728
|
-
}
|
|
729
|
-
},
|
|
730
|
-
emits: ["input", "show-more"],
|
|
731
|
-
setup(e, { expose: i, emit: s }) {
|
|
732
|
-
var Se;
|
|
733
|
-
const a = Ze(), l = Be(), o = rt(l), t = e, c = s, { t: m } = ye({ messages: $e }), h = C(null), r = C(null), g = C(null), u = C(!1), x = Y("bento-dropdown-options-container"), O = Y("dropdown-label"), v = Y("dropdown-description"), B = Y("dropdown-error"), { isReadOnly: E } = ot(D(t, "readonly")), { cachedSelectedListboxOptions: S, cachedListboxSelectedValues: W, setCachedValues: q } = st(
|
|
734
|
-
D(t, "items"),
|
|
735
|
-
D(t, "value"),
|
|
736
|
-
D(t, "multiple")
|
|
737
|
-
), N = C(a["aria-label"]), { ariaLabel: d, label: y } = De(t), w = at({
|
|
738
|
-
// TODO: take ariaLabel ref away when aria-label prop is removed
|
|
739
|
-
ariaLabel: d.value || N,
|
|
740
|
-
label: y,
|
|
741
|
-
defaultFallback: m("ariaLabelFallback")
|
|
742
|
-
}), A = t.size === V.SMALL || Qe(At, !1), Ne = f(() => A ? V.SMALL : V.DEFAULT), Ae = f(() => ({
|
|
743
|
-
"b-dropdown--condensed": t.condensed
|
|
744
|
-
})), Re = f(() => ({
|
|
745
|
-
"b-dropdown__description--error": !!t.errorMessage
|
|
746
|
-
})), R = C(""), Z = D(t, "items"), ge = D(t, "staticCategories"), he = Nt(R, Z, (Se = t == null ? void 0 : t.search) == null ? void 0 : Se.searchEvent, ge), ae = f(() => t.dynamicFiltering && !!R.value), Me = It({
|
|
747
|
-
items: Z,
|
|
748
|
-
placeholder: D(t, "placeholder"),
|
|
749
|
-
isMultiSelect: D(t, "multiple"),
|
|
750
|
-
selectedValues: S
|
|
751
|
-
}), Pe = f(() => {
|
|
752
|
-
if (t != null && t.multiple && Array.isArray(t.value))
|
|
753
|
-
return t.items.filter(
|
|
754
|
-
({ value: b }) => (t == null ? void 0 : t.value) && (t == null ? void 0 : t.value).includes(b)
|
|
755
|
-
);
|
|
756
|
-
if (!t.multiple && t.staticCategories) {
|
|
757
|
-
const b = t.items.find(
|
|
758
|
-
(k) => k.items.some((U) => U.value === t.value)
|
|
759
|
-
);
|
|
760
|
-
return b ? b.items.find((k) => k.value === t.value) : null;
|
|
761
|
-
}
|
|
762
|
-
return t.items.find(({ value: b }) => b === (t == null ? void 0 : t.value));
|
|
763
|
-
}), ke = f(() => {
|
|
764
|
-
const b = he.value.findIndex(({ value: T }) => t.value === T);
|
|
765
|
-
return b > -1 ? b : 0;
|
|
766
|
-
}), { isMultiLevelSelect: Ke, flattenedItemsList: Fe } = it(Z), ze = f(() => {
|
|
767
|
-
if (t.multiple) {
|
|
768
|
-
const b = Array.isArray(t.value) ? t.value.length : 0, T = Ke.value ? Fe.value.length : Z.value.length;
|
|
769
|
-
return b === 0 ? null : !t.hasMoreItems && T > 0 && T === b ? m("all") : b;
|
|
770
|
-
}
|
|
771
|
-
return null;
|
|
772
|
-
}), je = f(
|
|
773
|
-
() => `${t.description ? v : ""} ${t.errorMessage ? B : ""}`.trim() || null
|
|
774
|
-
), We = () => {
|
|
775
|
-
E.value || (u.value = !0);
|
|
776
|
-
}, oe = () => {
|
|
777
|
-
u.value = !1;
|
|
778
|
-
}, le = () => {
|
|
779
|
-
E.value || (u.value = !u.value, ae.value && (R.value = ""));
|
|
780
|
-
}, qe = () => {
|
|
781
|
-
ae.value && (R.value = ""), u.value && (u.value = !1, g.value.onOutsideDropdownClick());
|
|
782
|
-
}, Ue = (b) => {
|
|
783
|
-
t.multiple || (R.value = "", u.value = !1), q(b), c("input", W.value);
|
|
784
|
-
}, He = () => {
|
|
785
|
-
c(p.SHOW_MORE);
|
|
786
|
-
}, Je = Tt(
|
|
787
|
-
{
|
|
788
|
-
inputContainerRef: h,
|
|
789
|
-
optionsContainerRef: g,
|
|
790
|
-
selectedValueIndex: ke,
|
|
791
|
-
isDropdownOpen: u,
|
|
792
|
-
isDynamicFltering: D(t, "dynamicFiltering"),
|
|
793
|
-
items: t.items,
|
|
794
|
-
isMultiple: t.multiple
|
|
795
|
-
},
|
|
796
|
-
le,
|
|
797
|
-
We,
|
|
798
|
-
oe
|
|
799
|
-
), Ve = $t(
|
|
800
|
-
{
|
|
801
|
-
inputContainerRef: h,
|
|
802
|
-
isDropdownOpen: u
|
|
803
|
-
},
|
|
804
|
-
oe
|
|
805
|
-
), Ye = {
|
|
806
|
-
[p.CLOSE_DROPDOWN]: oe,
|
|
807
|
-
[p.SELECT]: Ue,
|
|
808
|
-
[p.SHOW_MORE]: He,
|
|
809
|
-
...Ve
|
|
810
|
-
};
|
|
811
|
-
return t.error && Ee(
|
|
812
|
-
'BentoDropdown "error" property',
|
|
813
|
-
`Use the BentoDropdown "errorMessage" property instead to indicate that there is a modifier error.
|
|
814
|
-
Having the field as "undefined" will hide/remove the error.
|
|
815
|
-
<bento-dropdown errorMessage="Error message text" />`,
|
|
816
|
-
"2.0.0"
|
|
817
|
-
), t.size && Ee('BentoDropdown "size" property', "Do not use. Only 'default' size should be used.", "2.0.0"), i({
|
|
818
|
-
focus: () => {
|
|
819
|
-
h.value.focus();
|
|
820
|
-
}
|
|
821
|
-
}), (b, T) => {
|
|
822
|
-
var k;
|
|
823
|
-
return ee((L(), P("div", {
|
|
824
|
-
class: pe(["b-dropdown", Ae.value])
|
|
825
|
-
}, [
|
|
826
|
-
n(y) ? (L(), K(n(dt), {
|
|
827
|
-
key: 0,
|
|
828
|
-
id: n(O),
|
|
829
|
-
condensed: e.condensed,
|
|
830
|
-
label: n(y),
|
|
831
|
-
"tooltip-text": e.tooltipText,
|
|
832
|
-
optional: e.optional,
|
|
833
|
-
required: e.required
|
|
834
|
-
}, null, 8, ["id", "condensed", "label", "tooltip-text", "optional", "required"])) : F("", !0),
|
|
835
|
-
ee((L(), P("div", M({
|
|
836
|
-
ref_key: "inputContainerRefWrapper",
|
|
837
|
-
ref: r
|
|
838
|
-
}, G(n(Je), !0)), [
|
|
839
|
-
(L(), K(Ie(Ne.value), {
|
|
840
|
-
ref_key: "inputContainerRef",
|
|
841
|
-
ref: h,
|
|
842
|
-
condensed: e.condensed,
|
|
843
|
-
value: R.value,
|
|
844
|
-
"additional-items-selected": ze.value,
|
|
845
|
-
ariaControls: n(x),
|
|
846
|
-
ariaExpanded: u.value,
|
|
847
|
-
"aria-labelledby": n(y) ? n(O) : null,
|
|
848
|
-
"aria-describedby": je.value,
|
|
849
|
-
"aria-label": n(w),
|
|
850
|
-
"aria-readonly": n(E),
|
|
851
|
-
readonly: n(E),
|
|
852
|
-
disabled: e.disabled,
|
|
853
|
-
"display-value": n(Me),
|
|
854
|
-
"dynamic-filtering": e.dynamicFiltering,
|
|
855
|
-
"is-invalid": !!e.errorMessage || e.error,
|
|
856
|
-
multiple: e.multiple,
|
|
857
|
-
open: u.value,
|
|
858
|
-
"selected-value-item": n(A) ? void 0 : Pe.value,
|
|
859
|
-
"show-slot-content-in-multiple": e.showSlotContentInMultiple,
|
|
860
|
-
onInput: T[0] || (T[0] = (U) => R.value = U),
|
|
861
|
-
onOpen: le,
|
|
862
|
-
onClose: le
|
|
863
|
-
}, re({ _: 2 }, [
|
|
864
|
-
de(n(l), (U, H) => ({
|
|
865
|
-
name: H,
|
|
866
|
-
fn: z((ne) => [
|
|
867
|
-
X(b.$slots, H, ue(ce(ne)), void 0, !0)
|
|
868
|
-
])
|
|
869
|
-
}))
|
|
870
|
-
]), 1064, ["condensed", "value", "additional-items-selected", "ariaControls", "ariaExpanded", "aria-labelledby", "aria-describedby", "aria-label", "aria-readonly", "readonly", "disabled", "display-value", "dynamic-filtering", "is-invalid", "multiple", "open", "selected-value-item", "show-slot-content-in-multiple"]))
|
|
871
|
-
], 16)), [
|
|
872
|
-
[n(nt)]
|
|
873
|
-
]),
|
|
874
|
-
h.value ? (L(), K(n(vt), M({
|
|
875
|
-
key: 1,
|
|
876
|
-
id: n(x),
|
|
877
|
-
ref_key: "optionsContainerRef",
|
|
878
|
-
ref: g,
|
|
879
|
-
"aria-label": n(w),
|
|
880
|
-
"component-loading": e.componentLoading,
|
|
881
|
-
"empty-state": e.emptyState,
|
|
882
|
-
"debounce-time": (k = e.search) == null ? void 0 : k.debounceTime,
|
|
883
|
-
disabled: e.disabled,
|
|
884
|
-
"is-option-disabled": e.isOptionDisabled,
|
|
885
|
-
items: n(he),
|
|
886
|
-
multiple: e.multiple,
|
|
887
|
-
"static-categories": ge.value,
|
|
888
|
-
open: u.value,
|
|
889
|
-
"selected-value": n(S),
|
|
890
|
-
searching: ae.value,
|
|
891
|
-
"target-element": r.value,
|
|
892
|
-
loading: e.loading,
|
|
893
|
-
"has-more-items": e.hasMoreItems,
|
|
894
|
-
"lazy-load-type": e.lazyLoadType,
|
|
895
|
-
"virtual-scroll": e.virtualScroll
|
|
896
|
-
}, G(Ye)), re({ _: 2 }, [
|
|
897
|
-
de(n(l), (U, H) => ({
|
|
898
|
-
name: H,
|
|
899
|
-
fn: z((ne) => [
|
|
900
|
-
X(b.$slots, H, ue(ce(ne)), void 0, !0)
|
|
901
|
-
])
|
|
902
|
-
}))
|
|
903
|
-
]), 1040, ["id", "aria-label", "component-loading", "empty-state", "debounce-time", "disabled", "is-option-disabled", "items", "multiple", "static-categories", "open", "selected-value", "searching", "target-element", "loading", "has-more-items", "lazy-load-type", "virtual-scroll"])) : F("", !0),
|
|
904
|
-
e.errorMessage ? (L(), K(n(ut), {
|
|
905
|
-
key: 2,
|
|
906
|
-
id: n(B),
|
|
907
|
-
"error-message": e.errorMessage,
|
|
908
|
-
class: "b-dropdown__error-message"
|
|
909
|
-
}, null, 8, ["id", "error-message"])) : F("", !0),
|
|
910
|
-
e.description || n(o)("description") ? (L(), K(n(Ge), {
|
|
911
|
-
key: 3,
|
|
912
|
-
id: n(v),
|
|
913
|
-
class: pe(["b-dropdown__description", Re.value]),
|
|
914
|
-
el: "span"
|
|
915
|
-
}, {
|
|
916
|
-
default: z(() => [
|
|
917
|
-
X(b.$slots, "description", {}, () => [
|
|
918
|
-
Xe(ve(e.description), 1)
|
|
919
|
-
], !0)
|
|
920
|
-
]),
|
|
921
|
-
_: 3
|
|
922
|
-
}, 8, ["id", "class"])) : F("", !0)
|
|
923
|
-
], 2)), [
|
|
924
|
-
[n(lt), qe]
|
|
925
|
-
]);
|
|
926
|
-
};
|
|
927
|
-
}
|
|
928
|
-
}), oa = /* @__PURE__ */ _(Mt, [["__scopeId", "data-v-61efa818"]]);
|
|
929
|
-
export {
|
|
930
|
-
oa as B,
|
|
931
|
-
ta as I,
|
|
932
|
-
At as a,
|
|
933
|
-
aa as b,
|
|
934
|
-
Nt as u
|
|
935
|
-
};
|
|
936
|
-
//# sourceMappingURL=dropdown.B8LbzSzW.js.map
|