@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,298 +0,0 @@
|
|
|
1
|
-
import { defineComponent as ve, useAttrs as ye, useSlots as me, ref as D, provide as _e, inject as q, toRef as we, computed as i, toRefs as De, createBlock as u, openBlock as n, unref as e, normalizeClass as he, withCtx as b, createCommentVNode as d, createElementVNode as I, createElementBlock as v, renderSlot as p, withModifiers as J, mergeProps as P, withKeys as Ee, createTextVNode as Te, toDisplayString as Ne, createVNode as ke } from "vue";
|
|
2
|
-
import { a as Ae, I as ge, b as Le, B as j } from "./dropdown.B8LbzSzW.js";
|
|
3
|
-
import { p as R, d as z, B as h } from "./typography.DN5eC5ch.js";
|
|
4
|
-
import { g as E } from "./generate-uid.NJ8tVoha.js";
|
|
5
|
-
import { g as Oe } from "./get-slot-text.DQlZEsId.js";
|
|
6
|
-
import { u as Se } from "./aria-label.CaUURpnB.js";
|
|
7
|
-
import { u as Ie } from "./i18n.B6g5VX0q.js";
|
|
8
|
-
import { u as Pe } from "./use-form-layout-loading.D3lALhtC.js";
|
|
9
|
-
import { u as Re } from "./use-has-slot.B7eQSabc.js";
|
|
10
|
-
import { F as Ce, E as $e } from "./error-message.BzDQxHUy.js";
|
|
11
|
-
import { _ as Be } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
12
|
-
import "../assets/input-field.css";
|
|
13
|
-
var y = /* @__PURE__ */ ((t) => (t.DEFAULT = "default", t.PAYMENT_METHOD = "payment-method", t.STATIC_VALUE = "static-value", t.DROPDOWN = "dropdown", t))(y || {}), f = /* @__PURE__ */ ((t) => (t.START = "start", t.END = "end", t))(f || {}), T = /* @__PURE__ */ ((t) => (t.CONDENSED = "condensed", t.DISABLED = "disabled", t.READONLY = "readonly", t.ERROR = "error", t))(T || {}), C = /* @__PURE__ */ ((t) => (t.SEARCH = "search", t.TEXT = "text", t.NUMBER = "number", t))(C || {}), Me = /* @__PURE__ */ ((t) => (t.INPUT = "input", t.ESCAPE_PRESSED = "escape-pressed", t.UPDATE_DROPDOWN = "update:dropdown", t.DROPDOWN_INPUT = "dropdown-input", t.FOCUS = "focus", t.CHANGE = "change", t.BLUR = "blur", t.KEYDOWN = "keydown", t))(Me || {});
|
|
14
|
-
const X = {
|
|
15
|
-
"en-US": {
|
|
16
|
-
ariaLabelDropdownFallback: "{inputLabel} Dropdown",
|
|
17
|
-
ariaLabelFallback: "Input field"
|
|
18
|
-
}
|
|
19
|
-
}, Ue = ["aria-disabled"], Ve = ["aria-hidden"], Fe = ["aria-hidden"], He = ["id"], Ye = { class: "b-input-field__input-container" }, Ke = ["id", "aria-label", "aria-describedby", "aria-owns", "aria-invalid", "placeholder", "type", "value", "disabled", "readonly"], We = ["aria-hidden"], qe = ["id"], Je = ["id"], je = {
|
|
20
|
-
i18n: { messages: X }
|
|
21
|
-
}, ze = /* @__PURE__ */ ve({
|
|
22
|
-
...je,
|
|
23
|
-
__name: "input-field",
|
|
24
|
-
props: {
|
|
25
|
-
ariaHidden: { type: Boolean, default: !0 },
|
|
26
|
-
ariaLabel: { default: void 0 },
|
|
27
|
-
condensed: { type: Boolean, default: !1 },
|
|
28
|
-
disabled: { type: Boolean, default: !1 },
|
|
29
|
-
dropdown: { default: void 0 },
|
|
30
|
-
dropdownPosition: { default: f.START },
|
|
31
|
-
error: { type: Boolean, default: !1 },
|
|
32
|
-
errorMessage: { default: null },
|
|
33
|
-
optional: { type: Boolean, default: !1 },
|
|
34
|
-
placeholder: { default: "" },
|
|
35
|
-
required: { type: Boolean, default: !1 },
|
|
36
|
-
readonly: { type: Boolean, default: !1 },
|
|
37
|
-
slashedZero: { type: Boolean, default: !1 },
|
|
38
|
-
staticValue: { default: "" },
|
|
39
|
-
staticValuePosition: { default: f.START },
|
|
40
|
-
tooltipText: { default: null },
|
|
41
|
-
type: { default: C.TEXT },
|
|
42
|
-
value: { default: void 0 },
|
|
43
|
-
variant: { default: y.DEFAULT }
|
|
44
|
-
},
|
|
45
|
-
emits: ["update:dropdown", "blur", "change", "dropdown-input", "escape-pressed", "focus", "keydown", "keyup", "input"],
|
|
46
|
-
setup(t, { expose: Z, emit: G }) {
|
|
47
|
-
const $ = ye(), L = me(), o = t, l = G, { t: B } = Ie({ messages: X }), s = Re(L), M = D(null), O = D(null), U = E("input"), m = E("input-dropdown"), N = E("input-static-value"), V = E("input-description"), F = E("input-error"), S = D(!1);
|
|
48
|
-
_e(Ae, !0);
|
|
49
|
-
const H = q(ge, D(void 0)), Q = () => {
|
|
50
|
-
S.value = !0, l("focus");
|
|
51
|
-
}, x = () => {
|
|
52
|
-
S.value = !1, l("blur");
|
|
53
|
-
}, { isReadOnly: c } = Pe(we(o, "readonly")), k = i(
|
|
54
|
-
() => o.variant === y.STATIC_VALUE && !!L.staticValue
|
|
55
|
-
), ee = i(() => o.variant === y.DEFAULT), te = i(() => o.variant === y.PAYMENT_METHOD), oe = i(
|
|
56
|
-
() => k.value && o.staticValuePosition === f.START
|
|
57
|
-
), ae = i(
|
|
58
|
-
() => k.value && o.staticValuePosition === f.END
|
|
59
|
-
), A = i(() => o.variant === y.DROPDOWN && !!o.dropdown), ie = i(
|
|
60
|
-
() => A.value && o.dropdownPosition === f.START
|
|
61
|
-
), de = i(
|
|
62
|
-
() => A.value && o.dropdownPosition === f.END
|
|
63
|
-
), g = i(
|
|
64
|
-
() => !o.disabled && !c.value && (!!o.errorMessage || o.error)
|
|
65
|
-
), re = i(() => A.value === !0 && k.value === !0 ? `${N} ${m}` : A.value === !0 ? `${m}` : k.value === !0 ? `${N}` : null), ne = i(() => B("ariaLabelFallback")), se = i(
|
|
66
|
-
() => B("ariaLabelDropdownFallback", { inputLabel: Y.value })
|
|
67
|
-
), le = D($["aria-label"]), { ariaLabel: ue } = De(o), Y = Se({
|
|
68
|
-
ariaLabel: le.value,
|
|
69
|
-
// TODO: take this line away when the aria-label props is removed
|
|
70
|
-
label: ue,
|
|
71
|
-
defaultFallback: s("default") ? Oe(L)("default") : ne
|
|
72
|
-
}), pe = i(
|
|
73
|
-
() => `${s("description") ? V : ""} ${g.value && o.errorMessage ? F : ""}`
|
|
74
|
-
), fe = i(() => ({
|
|
75
|
-
[`b-input-field--${T.CONDENSED}`]: o.condensed,
|
|
76
|
-
[`b-input-field--${T.DISABLED}`]: o.disabled,
|
|
77
|
-
[`b-input-field--${T.READONLY}`]: c.value,
|
|
78
|
-
[`b-input-field--${T.ERROR}`]: g.value,
|
|
79
|
-
"b-input-field--slashed-zero": o.slashedZero
|
|
80
|
-
})), K = i(() => ({
|
|
81
|
-
"aria-label": se.value,
|
|
82
|
-
...o.dropdown
|
|
83
|
-
})), ce = (a) => {
|
|
84
|
-
const r = a.target.value;
|
|
85
|
-
!o.disabled && !c.value && l("input", r);
|
|
86
|
-
}, W = (a) => {
|
|
87
|
-
l("dropdown-input", a), l("update:dropdown", { ...o == null ? void 0 : o.dropdown, value: a });
|
|
88
|
-
}, _ = () => {
|
|
89
|
-
M.value.focus();
|
|
90
|
-
};
|
|
91
|
-
Z({
|
|
92
|
-
focusInput: _,
|
|
93
|
-
focus: () => {
|
|
94
|
-
o.variant === "dropdown" ? O.value.focus() : _();
|
|
95
|
-
}
|
|
96
|
-
});
|
|
97
|
-
const be = q(Le, "");
|
|
98
|
-
return !Object.values(C).includes(o.type) && !be && (o.type === "tel" ? R(
|
|
99
|
-
`"bento-input-field" dropdown does not support the type '${o.type}', use "bento-input-field-phone-number" instead.`
|
|
100
|
-
) : o.type === "password" ? R(
|
|
101
|
-
`"bento-input-field" dropdown does not support the type '${o.type}', use "bento-input-field-password" instead.`
|
|
102
|
-
) : R(`"bento-input-field" dropdown does not support the type '${o.type}'`)), o.error && z(
|
|
103
|
-
'BentoInputField "error" property',
|
|
104
|
-
`Use the BentoInputField "errorMessage" property instead to indicate that there is a modifier error.
|
|
105
|
-
Having the field as "undefined" will hide/remove the error.
|
|
106
|
-
<bento-dropdown errorMessage="Error message text" />`,
|
|
107
|
-
"2.0.0"
|
|
108
|
-
), s("defaultIconBefore") && z(
|
|
109
|
-
'BentoInputField "defaultIconBefore" slot',
|
|
110
|
-
`Use the BentoInputField "iconBefore" slot instead to add an icon at the left side of the input field
|
|
111
|
-
<bento-input-field>
|
|
112
|
-
<template #iconBefore>
|
|
113
|
-
<my-icon-goes-here />
|
|
114
|
-
</template>
|
|
115
|
-
</bento-input-field>`,
|
|
116
|
-
"2.0.0"
|
|
117
|
-
), (a, r) => (n(), u(e(h), {
|
|
118
|
-
class: he(["b-input-field", fe.value]),
|
|
119
|
-
"data-testid": "input-text-container",
|
|
120
|
-
el: "div",
|
|
121
|
-
variant: "body"
|
|
122
|
-
}, {
|
|
123
|
-
default: b(() => [
|
|
124
|
-
e(s)("default") ? (n(), u(e(Ce), {
|
|
125
|
-
key: 0,
|
|
126
|
-
for: e(U),
|
|
127
|
-
"data-testid": "input-field-label",
|
|
128
|
-
"tooltip-text": a.tooltipText,
|
|
129
|
-
optional: a.optional,
|
|
130
|
-
required: a.required,
|
|
131
|
-
onClick: _
|
|
132
|
-
}, {
|
|
133
|
-
default: b(() => [
|
|
134
|
-
p(a.$slots, "default", {}, void 0, !0)
|
|
135
|
-
]),
|
|
136
|
-
_: 3
|
|
137
|
-
}, 8, ["for", "tooltip-text", "optional", "required"])) : d("", !0),
|
|
138
|
-
I("div", {
|
|
139
|
-
class: "b-input-field__input-box",
|
|
140
|
-
"data-testid": "input-box",
|
|
141
|
-
"aria-disabled": a.disabled,
|
|
142
|
-
onClick: _
|
|
143
|
-
}, [
|
|
144
|
-
ee.value && (e(s)("defaultIconBefore") || e(s)("iconBefore")) ? (n(), v("span", {
|
|
145
|
-
key: 0,
|
|
146
|
-
"aria-hidden": a.ariaHidden ? "true" : void 0,
|
|
147
|
-
class: "b-input-field__icon-before"
|
|
148
|
-
}, [
|
|
149
|
-
e(s)("iconBefore") ? p(a.$slots, "iconBefore", { key: 0 }, void 0, !0) : d("", !0),
|
|
150
|
-
e(s)("defaultIconBefore") && !e(s)("iconBefore") ? p(a.$slots, "defaultIconBefore", { key: 1 }, void 0, !0) : d("", !0)
|
|
151
|
-
], 8, Ve)) : d("", !0),
|
|
152
|
-
te.value && e(s)("paymentMethod") ? (n(), v("span", {
|
|
153
|
-
key: 1,
|
|
154
|
-
"aria-hidden": a.ariaHidden ? "true" : void 0,
|
|
155
|
-
class: "b-input-field__payment-method"
|
|
156
|
-
}, [
|
|
157
|
-
p(a.$slots, "paymentMethod", {}, void 0, !0)
|
|
158
|
-
], 8, Fe)) : d("", !0),
|
|
159
|
-
ie.value ? (n(), v("div", {
|
|
160
|
-
key: 2,
|
|
161
|
-
id: e(m),
|
|
162
|
-
class: "b-input-field__dropdown b-input-field__dropdown--start",
|
|
163
|
-
onClick: r[0] || (r[0] = J(() => {
|
|
164
|
-
}, ["stop"]))
|
|
165
|
-
}, [
|
|
166
|
-
a.dropdown ? (n(), u(e(j), P({
|
|
167
|
-
key: 0,
|
|
168
|
-
ref_key: "inputDropdownElement",
|
|
169
|
-
ref: O
|
|
170
|
-
}, K.value, {
|
|
171
|
-
disabled: a.disabled,
|
|
172
|
-
readonly: e(c),
|
|
173
|
-
onInput: W
|
|
174
|
-
}), null, 16, ["disabled", "readonly"])) : d("", !0)
|
|
175
|
-
], 8, He)) : d("", !0),
|
|
176
|
-
oe.value ? (n(), u(e(h), {
|
|
177
|
-
key: 3,
|
|
178
|
-
id: e(N),
|
|
179
|
-
class: "b-input-field__static-value b-input-field__static-value--start",
|
|
180
|
-
el: "span",
|
|
181
|
-
variant: "body"
|
|
182
|
-
}, {
|
|
183
|
-
default: b(() => [
|
|
184
|
-
p(a.$slots, "staticValue", {}, void 0, !0)
|
|
185
|
-
]),
|
|
186
|
-
_: 3
|
|
187
|
-
}, 8, ["id"])) : d("", !0),
|
|
188
|
-
I("div", Ye, [
|
|
189
|
-
I("input", P({ id: e(U) }, e($), {
|
|
190
|
-
ref_key: "inputFieldElement",
|
|
191
|
-
ref: M,
|
|
192
|
-
class: "b-input-field__input",
|
|
193
|
-
"aria-label": e(Y),
|
|
194
|
-
"aria-describedby": pe.value,
|
|
195
|
-
"aria-owns": re.value,
|
|
196
|
-
"aria-invalid": g.value,
|
|
197
|
-
placeholder: a.placeholder,
|
|
198
|
-
type: a.type,
|
|
199
|
-
value: a.value,
|
|
200
|
-
disabled: a.disabled,
|
|
201
|
-
readonly: e(c),
|
|
202
|
-
onInput: ce,
|
|
203
|
-
onChange: r[1] || (r[1] = (w) => l("change")),
|
|
204
|
-
onFocus: Q,
|
|
205
|
-
onBlur: x,
|
|
206
|
-
onKeydown: [
|
|
207
|
-
r[2] || (r[2] = (w) => l("keydown", w)),
|
|
208
|
-
r[4] || (r[4] = Ee((w) => l("escape-pressed"), ["esc"]))
|
|
209
|
-
],
|
|
210
|
-
onKeyup: r[3] || (r[3] = (w) => l("keyup", w))
|
|
211
|
-
}), null, 16, Ke),
|
|
212
|
-
e(H) && S.value && a.value ? (n(), u(e(h), {
|
|
213
|
-
key: 0,
|
|
214
|
-
el: "span",
|
|
215
|
-
class: "b-input-field__hint"
|
|
216
|
-
}, {
|
|
217
|
-
default: b(() => [
|
|
218
|
-
Te(Ne(e(H)), 1)
|
|
219
|
-
]),
|
|
220
|
-
_: 1
|
|
221
|
-
})) : d("", !0)
|
|
222
|
-
]),
|
|
223
|
-
e(s)("iconAfter") ? (n(), v("span", {
|
|
224
|
-
key: 4,
|
|
225
|
-
"aria-hidden": a.ariaHidden ? "true" : void 0,
|
|
226
|
-
class: "b-input-field__icon-after",
|
|
227
|
-
"data-testid": "input-text__icon-after"
|
|
228
|
-
}, [
|
|
229
|
-
p(a.$slots, "iconAfter", {}, void 0, !0)
|
|
230
|
-
], 8, We)) : d("", !0),
|
|
231
|
-
ae.value ? (n(), u(e(h), {
|
|
232
|
-
key: 5,
|
|
233
|
-
id: e(N),
|
|
234
|
-
class: "b-input-field__static-value b-input-field__static-value--end",
|
|
235
|
-
el: "span",
|
|
236
|
-
variant: "body"
|
|
237
|
-
}, {
|
|
238
|
-
default: b(() => [
|
|
239
|
-
p(a.$slots, "staticValue", {}, void 0, !0)
|
|
240
|
-
]),
|
|
241
|
-
_: 3
|
|
242
|
-
}, 8, ["id"])) : d("", !0),
|
|
243
|
-
de.value ? (n(), v("div", {
|
|
244
|
-
key: 6,
|
|
245
|
-
id: e(m),
|
|
246
|
-
"data-testid": "input-field-dropdown-container-end",
|
|
247
|
-
class: "b-input-field__dropdown b-input-field__dropdown--end",
|
|
248
|
-
onClick: r[5] || (r[5] = J(() => {
|
|
249
|
-
}, ["stop"]))
|
|
250
|
-
}, [
|
|
251
|
-
a.dropdown ? (n(), u(e(j), P({
|
|
252
|
-
key: 0,
|
|
253
|
-
id: e(m),
|
|
254
|
-
ref_key: "inputDropdownElement",
|
|
255
|
-
ref: O
|
|
256
|
-
}, K.value, {
|
|
257
|
-
disabled: a.disabled,
|
|
258
|
-
readonly: e(c),
|
|
259
|
-
onInput: W
|
|
260
|
-
}), null, 16, ["id", "disabled", "readonly"])) : d("", !0)
|
|
261
|
-
], 8, qe)) : d("", !0)
|
|
262
|
-
], 8, Ue),
|
|
263
|
-
g.value && a.errorMessage ? (n(), u(e($e), {
|
|
264
|
-
key: 1,
|
|
265
|
-
id: e(F),
|
|
266
|
-
"error-message": a.errorMessage,
|
|
267
|
-
class: "b-input-field__error-message"
|
|
268
|
-
}, null, 8, ["id", "error-message"])) : d("", !0),
|
|
269
|
-
e(s)("description") ? (n(), v("span", {
|
|
270
|
-
key: 2,
|
|
271
|
-
id: e(V),
|
|
272
|
-
class: "b-input-field__description",
|
|
273
|
-
onClick: _
|
|
274
|
-
}, [
|
|
275
|
-
ke(e(h), {
|
|
276
|
-
el: "span",
|
|
277
|
-
variant: "body"
|
|
278
|
-
}, {
|
|
279
|
-
default: b(() => [
|
|
280
|
-
p(a.$slots, "description", { id: "description" }, void 0, !0)
|
|
281
|
-
]),
|
|
282
|
-
_: 3
|
|
283
|
-
})
|
|
284
|
-
], 8, Je)) : d("", !0)
|
|
285
|
-
]),
|
|
286
|
-
_: 3
|
|
287
|
-
}, 8, ["class"]));
|
|
288
|
-
}
|
|
289
|
-
}), nt = /* @__PURE__ */ Be(ze, [["__scopeId", "data-v-5e539c75"]]);
|
|
290
|
-
export {
|
|
291
|
-
nt as B,
|
|
292
|
-
y as a,
|
|
293
|
-
f as b,
|
|
294
|
-
T as c,
|
|
295
|
-
C as d,
|
|
296
|
-
Me as e
|
|
297
|
-
};
|
|
298
|
-
//# sourceMappingURL=input-field.BDEEGU2t.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"input-field.BDEEGU2t.js","sources":["../../../vue2/src/components/input-field/input-field.types.ts","../../../vue2/src/components/input-field/input-field.vue"],"sourcesContent":["import { BentoDropdown } from '@/components/dropdown/';\n\n/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoInputFieldVariant {\n DEFAULT = 'default',\n PAYMENT_METHOD = 'payment-method',\n STATIC_VALUE = 'static-value',\n DROPDOWN = 'dropdown',\n}\n\n/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoInputFieldElementPosition {\n START = 'start',\n END = 'end',\n}\n\nexport enum BentoInputFieldStateClass {\n CONDENSED = 'condensed',\n DISABLED = 'disabled',\n READONLY = 'readonly',\n ERROR = 'error',\n}\n\n/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoInputFieldType {\n SEARCH = 'search',\n TEXT = 'text',\n NUMBER = 'number',\n}\n\nexport type BentoInputFieldValue = string | number;\n\ntype DropdownProps = InstanceType<typeof BentoDropdown>['$props'];\nexport type BentoInputDropdownProps = {\n items: DropdownProps['items'];\n value?: DropdownProps['value'];\n dynamicFiltering?: DropdownProps['dynamicFiltering'];\n 'aria-label'?: string;\n};\n\n/**\n * @deprecated The use of these enums is no longer supported.\n * Use `v-on:` or `@` to listen to the events being emitted.\n * This enum will be removed in 2.0.\n */\nexport enum BentoInputFieldEvent {\n INPUT = 'input',\n ESCAPE_PRESSED = 'escape-pressed',\n UPDATE_DROPDOWN = 'update:dropdown',\n DROPDOWN_INPUT = 'dropdown-input',\n FOCUS = 'focus',\n CHANGE = 'change',\n BLUR = 'blur',\n KEYDOWN = 'keydown',\n}\n\nexport interface BentoInputFieldProps {\n /**\n * Indicates whether the element is exposed to an accessibility API.\n */\n ariaHidden?: boolean;\n\n /**\n * Text that labels an the input element\n *\n * @deprecated from version 2.0.0. Use the aria-label attribute instead.\n */\n ariaLabel?: string;\n\n /**\n * Reduces height of the input\n */\n condensed?: boolean;\n\n /**\n * Disables the possibility of changing value in the input-field\n */\n disabled?: boolean;\n\n /**\n * Dropdown props for the small selectable dropdown menu.\n * Properties supported:\n *\n * - `value`: Selected value of the dropdown\n * - `items`: List of available items\n * - `aria-label`: Text that labels the dropdown element\n *\n */\n dropdown?: BentoInputDropdownProps;\n\n /**\n * Position of the dropdown before or after input value\n */\n dropdownPosition?: BentoInputFieldElementPosition | `${BentoInputFieldElementPosition}`;\n\n /**\n * Adds error validation class for outlining input-field.\n *\n * @deprecated Use \"errorMessage\" prop instead\n */\n error?: boolean;\n\n /**\n * Renders input-field with an error state and the error message beneath the input box\n */\n errorMessage?: string;\n\n /**\n * Highlights the dropdown is optional.\n */\n optional?: boolean;\n\n /**\n * Text displayed as the placeholder of the input-field\n */\n placeholder?: string;\n\n /**\n * Highlights the dropdown is required.\n */\n required?: boolean;\n\n /**\n * Setting this property to true will set the input field to read only state.\n */\n readonly?: boolean;\n\n /**\n * Renders a font numeric style with slashed zeros instead of normal ones.\n */\n slashedZero?: boolean;\n\n /**\n * Static text that displayed before or after input value\n * Applicable to the Static Value variant\n */\n staticValue?: string;\n\n /**\n * Position of Static Value before or after input value\n */\n staticValuePosition?: BentoInputFieldElementPosition | `${BentoInputFieldElementPosition}`;\n\n /**\n * Adds a info icon next to the label to display the passed tooltip message.\n */\n tooltipText?: string;\n\n /**\n * A string specifying the type of control to render.\n * All `input` types are available but only `search`, `text` and `number` are fully supported.\n *\n * If `type` is `search`, use `bento-search-bar` instead.\n */\n type?: BentoInputFieldType | `${BentoInputFieldType}` | HTMLInputElement['type'];\n\n /**\n * Text displayed as the value of the input-field\n */\n value?: BentoInputFieldValue;\n\n /**\n * Describes the different variants for the input element\n */\n variant?: BentoInputFieldVariant | `${BentoInputFieldVariant}`;\n}\n","<template>\n <bento-typography\n class=\"b-input-field\"\n data-testid=\"input-text-container\"\n :class=\"inputFieldConditionalClasses\"\n el=\"div\"\n variant=\"body\"\n >\n <field-label\n v-if=\"hasSlot('default')\"\n :for=\"inputFieldId\"\n data-testid=\"input-field-label\"\n :tooltip-text=\"tooltipText\"\n :optional=\"optional\"\n :required=\"required\"\n @click=\"focusInput\"\n >\n <slot></slot>\n </field-label>\n\n <div class=\"b-input-field__input-box\" data-testid=\"input-box\" :aria-disabled=\"disabled\" @click=\"focusInput\">\n <!-- Optional Icon for Default text variant -->\n <span\n v-if=\"isDefaultVariant && (hasSlot('defaultIconBefore') || hasSlot('iconBefore'))\"\n :aria-hidden=\"ariaHidden ? 'true' : undefined\"\n class=\"b-input-field__icon-before\"\n >\n <slot v-if=\"hasSlot('iconBefore')\" name=\"iconBefore\" />\n <slot v-if=\"hasSlot('defaultIconBefore') && !hasSlot('iconBefore')\" name=\"defaultIconBefore\" />\n </span>\n\n <!-- Mandatory Icon for Payment Method variant -->\n <span\n v-if=\"isPaymentMethodVariant && hasSlot('paymentMethod')\"\n :aria-hidden=\"ariaHidden ? 'true' : undefined\"\n class=\"b-input-field__payment-method\"\n >\n <slot name=\"paymentMethod\" />\n </span>\n\n <!-- Dropdown at start -->\n <div\n v-if=\"shouldDisplayDropdownAtStart\"\n :id=\"dropdownId\"\n class=\"b-input-field__dropdown b-input-field__dropdown--start\"\n @click.stop\n >\n <bento-dropdown\n v-if=\"dropdown\"\n ref=\"inputDropdownElement\"\n v-bind=\"inputFieldDropdownProps\"\n :disabled=\"disabled\"\n :readonly=\"isReadOnly\"\n @input=\"onDropdownInput\"\n />\n </div>\n\n <!-- Static Value at start -->\n <bento-typography\n v-if=\"shouldDisplayStaticValueAtStart\"\n :id=\"staticValueId\"\n class=\"b-input-field__static-value b-input-field__static-value--start\"\n el=\"span\"\n variant=\"body\"\n >\n <slot name=\"staticValue\" />\n </bento-typography>\n <div class=\"b-input-field__input-container\">\n <input\n :id=\"inputFieldId\"\n v-bind=\"attrs\"\n ref=\"inputFieldElement\"\n class=\"b-input-field__input\"\n :aria-label=\"computedAriaLabel\"\n :aria-describedby=\"computedAriaDescribedBy\"\n :aria-owns=\"computedAriaOwns\"\n :aria-invalid=\"shouldShowError\"\n :placeholder=\"placeholder\"\n :type=\"type\"\n :value=\"value\"\n :disabled=\"disabled\"\n :readonly=\"isReadOnly\"\n @input=\"onInput\"\n @change=\"emit('change')\"\n @focus=\"onFocus\"\n @blur=\"onBlur\"\n @keydown=\"emit('keydown', $event)\"\n @keyup=\"emit('keyup', $event)\"\n @keydown.esc=\"emit('escape-pressed')\"\n />\n\n <!-- Hint at the end -->\n <bento-typography v-if=\"hint && isFocused && value\" el=\"span\" class=\"b-input-field__hint\">\n {{ hint }}\n </bento-typography>\n </div>\n\n <span\n v-if=\"hasSlot('iconAfter')\"\n :aria-hidden=\"ariaHidden ? 'true' : undefined\"\n class=\"b-input-field__icon-after\"\n data-testid=\"input-text__icon-after\"\n >\n <slot name=\"iconAfter\" />\n </span>\n\n <!-- Static Value at the end -->\n <bento-typography\n v-if=\"shouldDisplayStaticValueAtEnd\"\n :id=\"staticValueId\"\n class=\"b-input-field__static-value b-input-field__static-value--end\"\n el=\"span\"\n variant=\"body\"\n >\n <slot name=\"staticValue\" />\n </bento-typography>\n\n <!-- Dropdown at end -->\n <div\n v-if=\"shouldDisplayDropdownAtEnd\"\n :id=\"dropdownId\"\n data-testid=\"input-field-dropdown-container-end\"\n class=\"b-input-field__dropdown b-input-field__dropdown--end\"\n @click.stop\n >\n <bento-dropdown\n v-if=\"dropdown\"\n :id=\"dropdownId\"\n ref=\"inputDropdownElement\"\n v-bind=\"inputFieldDropdownProps\"\n :disabled=\"disabled\"\n :readonly=\"isReadOnly\"\n @input=\"onDropdownInput\"\n />\n </div>\n </div>\n\n <error-message\n v-if=\"shouldShowError && !!errorMessage\"\n :id=\"errorId\"\n :error-message=\"errorMessage\"\n class=\"b-input-field__error-message\"\n />\n\n <span v-if=\"hasSlot('description')\" :id=\"descriptionId\" class=\"b-input-field__description\" @click=\"focusInput\">\n <bento-typography el=\"span\" variant=\"body\">\n <slot id=\"description\" name=\"description\" />\n </bento-typography>\n </span>\n </bento-typography>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, inject, provide, Ref, ref, toRef, toRefs, useAttrs, useSlots } from 'vue';\n\n // Components\n import { BentoDropdown } from '@/components/dropdown';\n import { BentoTypography } from '@/components/typography';\n import { ErrorMessage, FieldLabel } from '@/internal';\n\n // Utils\n import { deprecate } from '@/utils/ts/deprecate';\n import { generateUid } from '@/core/utils/ts';\n import { getSlotText } from '@/utils/ts/get-slot-text';\n import { useAriaLabel } from '@/utils/ts/aria-label';\n import { useI18n } from '@/utils/ts/i18n';\n import { printDevelopmentWarning } from '@/utils/ts/print-development-warning';\n import {\n INPUT_FIELD_COMPONENT_INJECTION_KEY,\n INPUT_FIELD_HINT_INJECTION_KEY,\n INPUT_FIELD_PARENT_COMPONENT_INJECTION_KEY,\n } from '@/components/input-field/input-field.keys';\n\n // Composables\n import { useFormLayoutFieldLoading, useHasSlot } from '@/composables';\n\n // Types\n import {\n BentoInputDropdownProps,\n BentoInputFieldElementPosition,\n BentoInputFieldProps,\n BentoInputFieldStateClass,\n BentoInputFieldType,\n BentoInputFieldVariant,\n } from './input-field.types';\n import { BentoListboxSelectedValue } from '@/types';\n\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const attrs = useAttrs();\n const slots = useSlots();\n\n const props = withDefaults(defineProps<BentoInputFieldProps>(), {\n ariaHidden: true,\n ariaLabel: undefined,\n condensed: false,\n disabled: false,\n dropdown: undefined,\n dropdownPosition: BentoInputFieldElementPosition.START,\n error: false,\n errorMessage: null,\n optional: false,\n placeholder: '',\n required: false,\n readonly: false,\n slashedZero: false,\n staticValue: '',\n staticValuePosition: BentoInputFieldElementPosition.START,\n tooltipText: null,\n type: BentoInputFieldType.TEXT,\n value: undefined,\n variant: BentoInputFieldVariant.DEFAULT,\n });\n\n const emit = defineEmits<{\n /**\n * Emitted when the Input Field's internal dropdown changes it's value. Contains every dropdown prop passed with the updated selected value as 'value'\n */\n (e: 'update:dropdown', updatedDropdownProps: BentoInputDropdownProps): void;\n\n /**\n * Emitted when the element has lost focus\n */\n (e: 'blur'): void;\n\n /**\n * Emitted when the user modifies the element's value. Unlike the 'input' event, the change event is not necessarily fired for each alteration to an element's value\n */\n (e: 'change'): void;\n\n /**\n * Emitted when the Input Field's internal dropdown changes it's value\n */\n (e: 'dropdown-input', selectedValue: BentoListboxSelectedValue): void;\n\n /**\n * Emitted when the \"ESC\" key is pressed\n */\n (e: 'escape-pressed'): void;\n\n /**\n * Emitted when the element has received focus\n */\n (e: 'focus'): void;\n\n /**\n * Emitted when a key is pressed down\n */\n (e: 'keydown', event: KeyboardEvent): void;\n\n /**\n * Emitted when a key is pressed and lifted up\n */\n (e: 'keyup', event: KeyboardEvent): void;\n\n /**\n * Emitted when the component's model changes\n */\n (e: 'input', inputValue: string): void;\n }>();\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n const hasSlot = useHasSlot(slots);\n const inputFieldElement = ref(null);\n const inputDropdownElement = ref(null);\n const inputFieldId = generateUid('input');\n const dropdownId = generateUid('input-dropdown');\n const staticValueId = generateUid('input-static-value');\n const descriptionId = generateUid('input-description');\n const errorId = generateUid('input-error');\n const isFocused = ref(false);\n\n // Provide INPUT_FIELD_COMPONENT_INJECTION_KEY as true, to set the input only dropdown size variant in the BentoDropdown comp\n provide(INPUT_FIELD_COMPONENT_INJECTION_KEY, true);\n // Renders the input with a hint if a string is provided\n const hint = inject<Ref<string | undefined>>(INPUT_FIELD_HINT_INJECTION_KEY, ref(undefined));\n\n const onFocus = () => {\n isFocused.value = true;\n emit('focus');\n };\n\n const onBlur = () => {\n isFocused.value = false;\n emit('blur');\n };\n\n const { isReadOnly } = useFormLayoutFieldLoading(toRef(props, 'readonly'));\n\n const shouldShowStaticValue = computed(\n () => props.variant === BentoInputFieldVariant.STATIC_VALUE && !!slots.staticValue\n );\n\n const isDefaultVariant = computed(() => props.variant === BentoInputFieldVariant.DEFAULT);\n\n const isPaymentMethodVariant = computed(() => props.variant === BentoInputFieldVariant.PAYMENT_METHOD);\n\n const shouldDisplayStaticValueAtStart = computed(\n () => shouldShowStaticValue.value && props.staticValuePosition === BentoInputFieldElementPosition.START\n );\n const shouldDisplayStaticValueAtEnd = computed(\n () => shouldShowStaticValue.value && props.staticValuePosition === BentoInputFieldElementPosition.END\n );\n\n const shouldShowDropdown = computed(() => props.variant === BentoInputFieldVariant.DROPDOWN && !!props.dropdown);\n const shouldDisplayDropdownAtStart = computed(\n () => shouldShowDropdown.value && props.dropdownPosition === BentoInputFieldElementPosition.START\n );\n const shouldDisplayDropdownAtEnd = computed(\n () => shouldShowDropdown.value && props.dropdownPosition === BentoInputFieldElementPosition.END\n );\n\n const shouldShowError = computed(\n () => !props.disabled && !isReadOnly.value && (!!props.errorMessage || props.error)\n );\n\n const computedAriaOwns = computed(() => {\n if (shouldShowDropdown.value === true && shouldShowStaticValue.value === true) {\n return `${staticValueId} ${dropdownId}`;\n }\n if (shouldShowDropdown.value === true) {\n return `${dropdownId}`;\n }\n if (shouldShowStaticValue.value === true) {\n return `${staticValueId}`;\n }\n return null;\n });\n\n // vue-i18n issue with t() used in script - direct usage in template works\n // requires either createI18n({ legacy: false }) or to be wrapped in computed()\n const computedAriaLabelFallbackMessage = computed(() => t('ariaLabelFallback'));\n const computedAriaLabelDropdowFallback = computed(() =>\n t('ariaLabelDropdownFallback', { inputLabel: computedAriaLabel.value })\n );\n\n const ariaLabelAttribute = ref(attrs['aria-label']);\n const { ariaLabel } = toRefs(props);\n const computedAriaLabel = useAriaLabel({\n ariaLabel: ariaLabelAttribute.value as string,\n // TODO: take this line away when the aria-label props is removed\n label: ariaLabel,\n defaultFallback: hasSlot('default')\n ? (getSlotText(slots)('default') as string)\n : computedAriaLabelFallbackMessage,\n });\n\n const computedAriaDescribedBy = computed(\n () =>\n `${hasSlot('description') ? descriptionId : ''} ${\n shouldShowError.value && !!props.errorMessage ? errorId : ''\n }`\n );\n\n const inputFieldConditionalClasses = computed(() => ({\n [`b-input-field--${BentoInputFieldStateClass.CONDENSED}`]: props.condensed,\n [`b-input-field--${BentoInputFieldStateClass.DISABLED}`]: props.disabled,\n [`b-input-field--${BentoInputFieldStateClass.READONLY}`]: isReadOnly.value,\n [`b-input-field--${BentoInputFieldStateClass.ERROR}`]: shouldShowError.value,\n [`b-input-field--slashed-zero`]: props.slashedZero,\n }));\n\n const inputFieldDropdownProps = computed(() => ({\n 'aria-label': computedAriaLabelDropdowFallback.value,\n ...props.dropdown,\n }));\n\n const onInput = (event: Event) => {\n const inputValue = (event.target as HTMLInputElement).value;\n if (!props.disabled && !isReadOnly.value) {\n emit('input', inputValue);\n }\n };\n\n const onDropdownInput = (selectedValue: BentoListboxSelectedValue) => {\n emit('dropdown-input', selectedValue);\n emit('update:dropdown', { ...props?.dropdown, value: selectedValue });\n };\n\n const focusInput = () => {\n inputFieldElement.value.focus();\n };\n\n const focus = () => {\n if (props.variant === 'dropdown') {\n inputDropdownElement.value.focus();\n } else {\n focusInput();\n }\n };\n\n // Expose method so that other components can focus on it in Vue3\n defineExpose({\n focusInput,\n focus,\n });\n\n const inputFieldParentComponent = inject(INPUT_FIELD_PARENT_COMPONENT_INJECTION_KEY, '');\n\n if (!Object.values(BentoInputFieldType).includes(props.type as BentoInputFieldType) && !inputFieldParentComponent) {\n if (props.type === 'tel') {\n printDevelopmentWarning(\n `\"bento-input-field\" dropdown does not support the type '${props.type}', use \"bento-input-field-phone-number\" instead.`\n );\n } else if (props.type === 'password') {\n printDevelopmentWarning(\n `\"bento-input-field\" dropdown does not support the type '${props.type}', use \"bento-input-field-password\" instead.`\n );\n } else {\n printDevelopmentWarning(`\"bento-input-field\" dropdown does not support the type '${props.type}'`);\n }\n }\n\n /**\n * Deprecations\n */\n if (props.error) {\n deprecate(\n 'BentoInputField \"error\" property',\n `Use the BentoInputField \"errorMessage\" property instead to indicate that there is a modifier error.\n Having the field as \"undefined\" will hide/remove the error.\n <bento-dropdown errorMessage=\"Error message text\" />`,\n '2.0.0'\n );\n }\n\n if (hasSlot('defaultIconBefore')) {\n deprecate(\n 'BentoInputField \"defaultIconBefore\" slot',\n `Use the BentoInputField \"iconBefore\" slot instead to add an icon at the left side of the input field\n <bento-input-field>\n \\t<template #iconBefore>\n \\t\\t<my-icon-goes-here />\n \\t</template>\n </bento-input-field>`,\n '2.0.0'\n );\n }\n</script>\n\n<script lang=\"ts\">\n /**\n * Input field component is used to create interactive controls for web-based\n * forms in order to accept data from the user.\n *\n * @example\n * import { BentoInputField } from '@adyen/bento-vue2'\n *\n * const inputValue = ref('');\n *\n * export default {\n * components: { BentoInputField },\n * tempate: `\n * <bento-input-field\n * :value=\"inputValue\"\n * :input=\"newValue => inputValue.value = newValue\"\n * >\n * }\n */\n export default {\n i18n: { messages },\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./input-field.scss\" />\n"],"names":["BentoInputFieldVariant","BentoInputFieldVariant2","BentoInputFieldElementPosition","BentoInputFieldElementPosition2","BentoInputFieldStateClass","BentoInputFieldStateClass2","BentoInputFieldType","BentoInputFieldType2","BentoInputFieldEvent","BentoInputFieldEvent2","__default__","messages","attrs","useAttrs","slots","useSlots","props","__props","emit","__emit","t","useI18n","hasSlot","useHasSlot","inputFieldElement","ref","inputDropdownElement","inputFieldId","generateUid","dropdownId","staticValueId","descriptionId","errorId","isFocused","provide","INPUT_FIELD_COMPONENT_INJECTION_KEY","hint","inject","INPUT_FIELD_HINT_INJECTION_KEY","onFocus","onBlur","isReadOnly","useFormLayoutFieldLoading","toRef","shouldShowStaticValue","computed","isDefaultVariant","isPaymentMethodVariant","shouldDisplayStaticValueAtStart","shouldDisplayStaticValueAtEnd","shouldShowDropdown","shouldDisplayDropdownAtStart","shouldDisplayDropdownAtEnd","shouldShowError","computedAriaOwns","computedAriaLabelFallbackMessage","computedAriaLabelDropdowFallback","computedAriaLabel","ariaLabelAttribute","ariaLabel","toRefs","useAriaLabel","getSlotText","computedAriaDescribedBy","inputFieldConditionalClasses","inputFieldDropdownProps","onInput","event","inputValue","onDropdownInput","selectedValue","focusInput","__expose","inputFieldParentComponent","INPUT_FIELD_PARENT_COMPONENT_INJECTION_KEY","printDevelopmentWarning","deprecate"],"mappings":";;;;;;;;;;;;AAKY,IAAAA,IAAA,kBAAAC,OACRA,EAAA,UAAA,WACAA,EAAA,iBAAA,kBACAA,EAAA,eAAA,gBACAA,EAAA,WAAA,YAJQA,IAAAD,KAAA,CAAA,CAAA,GAUAE,IAAA,kBAAAC,OACRA,EAAA,QAAA,SACAA,EAAA,MAAA,OAFQA,IAAAD,KAAA,CAAA,CAAA,GAKAE,IAAA,kBAAAC,OACRA,EAAA,YAAA,aACAA,EAAA,WAAA,YACAA,EAAA,WAAA,YACAA,EAAA,QAAA,SAJQA,IAAAD,KAAA,CAAA,CAAA,GAUAE,IAAA,kBAAAC,OACRA,EAAA,SAAA,UACAA,EAAA,OAAA,QACAA,EAAA,SAAA,UAHQA,IAAAD,KAAA,CAAA,CAAA,GAqBAE,KAAA,kBAAAC,OACRA,EAAA,QAAA,SACAA,EAAA,iBAAA,kBACAA,EAAA,kBAAA,mBACAA,EAAA,iBAAA,kBACAA,EAAA,QAAA,SACAA,EAAA,SAAA,UACAA,EAAA,OAAA,QACAA,EAAA,UAAA,WARQA,IAAAD,MAAA,CAAA,CAAA;;;;;;0TC0ZRE,KAAA;AAAA,EAAe,MAAA,EAAA,UAAAC,EAAA;AAEf;;;;;;;;;;;;;;;;;;;;;;;;;;AAhRA,UAAAC,IAAAC,GAAA,GACAC,IAAAC,GAAA,GAEAC,IAAAC,GAsBAC,IAAAC,GA+CA,EAAA,GAAAC,EAAA,IAAAC,GAAA,EAAA,UAAAV,EAAA,CAAA,GACAW,IAAAC,GAAAT,CAAA,GACAU,IAAAC,EAAA,IAAA,GACAC,IAAAD,EAAA,IAAA,GACAE,IAAAC,EAAA,OAAA,GACAC,IAAAD,EAAA,gBAAA,GACAE,IAAAF,EAAA,oBAAA,GACAG,IAAAH,EAAA,mBAAA,GACAI,IAAAJ,EAAA,aAAA,GACAK,IAAAR,EAAA,EAAA;AAGA,IAAAS,GAAAC,IAAA,EAAA;AAEA,UAAAC,IAAAC,EAAAC,IAAAb,EAAA,MAAA,CAAA,GAEAc,IAAA,MAAA;AACI,MAAAN,EAAA,QAAA,IACAf,EAAA,OAAA;AAAA,IAAY,GAGhBsB,IAAA,MAAA;AACI,MAAAP,EAAA,QAAA,IACAf,EAAA,MAAA;AAAA,IAAW,GAGf,EAAA,YAAAuB,EAAA,IAAAC,GAAAC,GAAA3B,GAAA,UAAA,CAAA,GAEA4B,IAAAC;AAAA,MAA8B,MAAA7B,EAAA,YAAAhB,EAAA,gBAAA,CAAA,CAAAc,EAAA;AAAA,IAC6C,GAG3EgC,KAAAD,EAAA,MAAA7B,EAAA,YAAAhB,EAAA,OAAA,GAEA+C,KAAAF,EAAA,MAAA7B,EAAA,YAAAhB,EAAA,cAAA,GAEAgD,KAAAH;AAAA,MAAwC,MAAAD,EAAA,SAAA5B,EAAA,wBAAAd,EAAA;AAAA,IAC8D,GAEtG+C,KAAAJ;AAAA,MAAsC,MAAAD,EAAA,SAAA5B,EAAA,wBAAAd,EAAA;AAAA,IACgE,GAGtGgD,IAAAL,EAAA,MAAA7B,EAAA,YAAAhB,EAAA,YAAA,CAAA,CAAAgB,EAAA,QAAA,GACAmC,KAAAN;AAAA,MAAqC,MAAAK,EAAA,SAAAlC,EAAA,qBAAAd,EAAA;AAAA,IAC2D,GAEhGkD,KAAAP;AAAA,MAAmC,MAAAK,EAAA,SAAAlC,EAAA,qBAAAd,EAAA;AAAA,IAC6D,GAGhGmD,IAAAR;AAAA,MAAwB,MAAA,CAAA7B,EAAA,YAAA,CAAAyB,EAAA,UAAA,CAAA,CAAAzB,EAAA,gBAAAA,EAAA;AAAA,IACyD,GAGjFsC,KAAAT,EAAA,MACIK,EAAA,UAAA,MAAAN,EAAA,UAAA,KACI,GAAAd,CAAA,IAAAD,CAAA,KAEJqB,EAAA,UAAA,KACI,GAAArB,CAAA,KAEJe,EAAA,UAAA,KACI,GAAAd,CAAA,KAEJ,IAAO,GAKXyB,KAAAV,EAAA,MAAAzB,EAAA,mBAAA,CAAA,GACAoC,KAAAX;AAAA,MAAyC,MAAAzB,EAAA,6BAAA,EAAA,YAAAqC,EAAA,MAAA,CAAA;AAAA,IACiC,GAG1EC,KAAAjC,EAAAb,EAAA,YAAA,CAAA,GACA,EAAA,WAAA+C,GAAA,IAAAC,GAAA5C,CAAA,GACAyC,IAAAI,GAAA;AAAA,MAAuC,WAAAH,GAAA;AAAA;AAAA,MACL,OAAAC;AAAA,MAEvB,iBAAArC,EAAA,SAAA,IAAAwC,GAAAhD,CAAA,EAAA,SAAA,IAAAyC;AAAA,IAGD,CAAA,GAGVQ,KAAAlB;AAAA,MAAgC,MAAA,GAAAvB,EAAA,aAAA,IAAAS,IAAA,EAAA,IAAAsB,EAAA,SAAArC,EAAA,eAAAgB,IAAA,EAAA;AAAA,IAIxB,GAGRgC,KAAAnB,EAAA,OAAA;AAAA,MAAqD,CAAA,kBAAAzC,EAAA,SAAA,EAAA,GAAAY,EAAA;AAAA,MACgB,CAAA,kBAAAZ,EAAA,QAAA,EAAA,GAAAY,EAAA;AAAA,MACD,CAAA,kBAAAZ,EAAA,QAAA,EAAA,GAAAqC,EAAA;AAAA,MACK,CAAA,kBAAArC,EAAA,KAAA,EAAA,GAAAiD,EAAA;AAAA,MACE,+BAAArC,EAAA;AAAA,IAChC,EAAA,GAG3CiD,IAAApB,EAAA,OAAA;AAAA,MAAgD,cAAAW,GAAA;AAAA,MACG,GAAAxC,EAAA;AAAA,IACtC,EAAA,GAGbkD,KAAA,CAAAC,MAAA;AACI,YAAAC,IAAAD,EAAA,OAAA;AACA,MAAA,CAAAnD,EAAA,YAAA,CAAAyB,EAAA,SACIvB,EAAA,SAAAkD,CAAA;AAAA,IACJ,GAGJC,IAAA,CAAAC,MAAA;AACI,MAAApD,EAAA,kBAAAoD,CAAA,GACApD,EAAA,mBAAA,EAAA,GAAAF,KAAA,gBAAAA,EAAA,UAAA,OAAAsD,EAAA,CAAA;AAAA,IAAoE,GAGxEC,IAAA,MAAA;AACI,MAAA/C,EAAA,MAAA,MAAA;AAAA,IAA8B;AAYlC,IAAAgD,EAAA;AAAA,MAAa,YAAAD;AAAA,MACT,OAVJ,MAAA;AACI,QAAAvD,EAAA,YAAA,aACIU,EAAA,MAAA,MAAA,IAEA6C,EAAA;AAAA,MACJ;AAAA,IAMA,CAAA;AAGJ,UAAAE,KAAApC,EAAAqC,IAAA,EAAA;AAEA,WAAA,CAAA,OAAA,OAAApE,CAAA,EAAA,SAAAU,EAAA,IAAA,KAAA,CAAAyD,OACIzD,EAAA,SAAA,QACI2D;AAAA,MAAA,2DAAA3D,EAAA,IAAA;AAAA,IACyE,IACzEA,EAAA,SAAA,aAEA2D;AAAA,MAAA,2DAAA3D,EAAA,IAAA;AAAA,IACyE,IAGzE2D,EAAA,2DAAA3D,EAAA,IAAA,GAAA,IAORA,EAAA,SACI4D;AAAA,MAAA;AAAA,MACI;AAAA;AAAA;AAAA,MACA;AAAA,IAGA,GAIRtD,EAAA,mBAAA,KACIsD;AAAA,MAAA;AAAA,MACI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,MACA;AAAA,IAMA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,187 +0,0 @@
|
|
|
1
|
-
import { defineComponent as H, ref as u, computed as b, watch as R, createElementBlock as y, openBlock as v, normalizeClass as z, createElementVNode as a, createVNode as s, renderSlot as k, Transition as K, withCtx as r, createCommentVNode as C, withKeys as N, unref as t, Fragment as V, createTextVNode as w, toDisplayString as h, createBlock as x, nextTick as G } from "vue";
|
|
2
|
-
import { d as U, B as j } from "./typography.DN5eC5ch.js";
|
|
3
|
-
import { B as E } from "./button.CVZJTZv0.js";
|
|
4
|
-
import { B as q } from "./loading-indicator.DEepb9Wl.js";
|
|
5
|
-
import { B as J, s as W, g as Y, a as Q, f as X } from "./focus-trap.BdrEB4Ld.js";
|
|
6
|
-
import { E as Z } from "./expand.DusW7F7p.js";
|
|
7
|
-
import { C as ee } from "./cross.CbLEjiVy.js";
|
|
8
|
-
import { g as te } from "./generate-uid.NJ8tVoha.js";
|
|
9
|
-
import { u as ne } from "./i18n.B6g5VX0q.js";
|
|
10
|
-
import { a as oe } from "./index.CVpo3mlK.js";
|
|
11
|
-
import { _ as ae } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
12
|
-
import "../assets/inspector.css";
|
|
13
|
-
const M = {
|
|
14
|
-
"en-US": {
|
|
15
|
-
close: "Close",
|
|
16
|
-
expand: "Expand",
|
|
17
|
-
inspector: "Inspector",
|
|
18
|
-
returnToMainContent: "Return to main content (Ctrl+Shift+S)",
|
|
19
|
-
returnToMainContentDescription: "You can use Ctrl + Shift + S to navigate between the inspector and page sections."
|
|
20
|
-
},
|
|
21
|
-
"ja-JP": {
|
|
22
|
-
close: "閉じる",
|
|
23
|
-
expand: "展開"
|
|
24
|
-
},
|
|
25
|
-
"pt-BR": {
|
|
26
|
-
close: "Fechar",
|
|
27
|
-
expand: "Expandir"
|
|
28
|
-
}
|
|
29
|
-
}, se = { class: "b-inspector__page" }, ie = ["aria-label"], re = { class: "b-inspector__container" }, ce = { class: "b-inspector__header" }, le = ["id"], pe = { class: "b-inspector__icons" }, de = { class: "b-inspector__content" }, ue = { i18n: { messages: M } }, ve = /* @__PURE__ */ H({
|
|
30
|
-
...ue,
|
|
31
|
-
__name: "inspector",
|
|
32
|
-
props: {
|
|
33
|
-
activePage: { default: "" },
|
|
34
|
-
expandable: { type: Boolean, default: !1 },
|
|
35
|
-
isOpen: { type: Boolean, default: !1 },
|
|
36
|
-
loading: { type: Boolean, default: !1 },
|
|
37
|
-
size: { default: "small" },
|
|
38
|
-
title: {},
|
|
39
|
-
relativeLayout: { default: "push-content" }
|
|
40
|
-
},
|
|
41
|
-
emits: ["update:is-open", "update:active-page", "expand"],
|
|
42
|
-
setup(O, { emit: A }) {
|
|
43
|
-
const n = O, f = A, { t: c } = ne({ messages: M }), B = te("returnToMainContentDescription"), T = u(null), _ = u(null), D = u(null), i = u(null), m = u(null), { width: L } = oe(T), l = b(() => {
|
|
44
|
-
const d = n.size === "small" ? 740 : 915;
|
|
45
|
-
return L.value > 0 && L.value < d;
|
|
46
|
-
}), F = b(() => ({
|
|
47
|
-
[`b-inspector--${n.size}`]: !0,
|
|
48
|
-
[`b-inspector--${n.relativeLayout}`]: !0,
|
|
49
|
-
"b-inspector--is-compact": l.value
|
|
50
|
-
})), I = b(() => `${c("inspector")}, ${n.title}`), g = async () => {
|
|
51
|
-
n.isOpen ? (i.value = document.activeElement, await G(), W(_.value, i.value)) : p(i.value);
|
|
52
|
-
}, P = (e) => {
|
|
53
|
-
if (l.value)
|
|
54
|
-
return;
|
|
55
|
-
const o = e.shiftKey ? -1 : 1, d = Y(o, _.value);
|
|
56
|
-
Q() === d && (e.preventDefault(), m.value = document.activeElement, p(i.value), f("update:active-page", void 0));
|
|
57
|
-
}, $ = (e) => {
|
|
58
|
-
const o = e.shiftKey && e.ctrlKey && e.key === "S";
|
|
59
|
-
n.isOpen && !l.value && o && S();
|
|
60
|
-
}, S = () => {
|
|
61
|
-
X(_.value) ? (m.value = document.activeElement, p(i.value), f("update:active-page", void 0)) : (i.value = document.activeElement, p(m.value));
|
|
62
|
-
}, p = (e) => {
|
|
63
|
-
e && (e == null || e.focus(), document.activeElement !== e && p(e.parentElement));
|
|
64
|
-
};
|
|
65
|
-
return R(
|
|
66
|
-
() => n.activePage,
|
|
67
|
-
() => {
|
|
68
|
-
n.activePage && g();
|
|
69
|
-
}
|
|
70
|
-
), n.activePage || U(
|
|
71
|
-
'BentoInspector "active-page" as optional',
|
|
72
|
-
`Make sure to set the "active-page" prop and keep it in sync with "update:active-page".
|
|
73
|
-
"active-page" prop will be required in the next version`,
|
|
74
|
-
"2.0.0"
|
|
75
|
-
), (e, o) => (v(), y("div", {
|
|
76
|
-
ref_key: "wrapper",
|
|
77
|
-
ref: T,
|
|
78
|
-
class: z(["b-inspector", F.value]),
|
|
79
|
-
onKeydown: $
|
|
80
|
-
}, [
|
|
81
|
-
a("div", {
|
|
82
|
-
ref_key: "page",
|
|
83
|
-
ref: D,
|
|
84
|
-
class: "b-inspector__page-wrapper"
|
|
85
|
-
}, [
|
|
86
|
-
a("div", se, [
|
|
87
|
-
k(e.$slots, "page", {}, void 0, !0)
|
|
88
|
-
])
|
|
89
|
-
], 512),
|
|
90
|
-
s(K, {
|
|
91
|
-
name: "b-inspector__animation",
|
|
92
|
-
mode: "out-in",
|
|
93
|
-
onBeforeEnter: g,
|
|
94
|
-
onAfterLeave: g
|
|
95
|
-
}, {
|
|
96
|
-
default: r(() => [
|
|
97
|
-
e.isOpen ? (v(), y("aside", {
|
|
98
|
-
key: 0,
|
|
99
|
-
ref_key: "inspector",
|
|
100
|
-
ref: _,
|
|
101
|
-
class: "b-inspector__container-wrapper",
|
|
102
|
-
"aria-label": I.value,
|
|
103
|
-
onKeydown: N(P, ["tab"])
|
|
104
|
-
}, [
|
|
105
|
-
s(t(J), {
|
|
106
|
-
disabled: !l.value
|
|
107
|
-
}, {
|
|
108
|
-
default: r(() => [
|
|
109
|
-
a("div", re, [
|
|
110
|
-
a("div", ce, [
|
|
111
|
-
l.value ? C("", !0) : (v(), y(V, { key: 0 }, [
|
|
112
|
-
s(t(E), {
|
|
113
|
-
class: "b-inspector__return-content",
|
|
114
|
-
variant: "secondary",
|
|
115
|
-
condensed: "",
|
|
116
|
-
"aria-describedby": t(B),
|
|
117
|
-
onClick: S
|
|
118
|
-
}, {
|
|
119
|
-
default: r(() => [
|
|
120
|
-
w(h(t(c)("returnToMainContent")), 1)
|
|
121
|
-
]),
|
|
122
|
-
_: 1
|
|
123
|
-
}, 8, ["aria-describedby"]),
|
|
124
|
-
a("span", {
|
|
125
|
-
id: t(B),
|
|
126
|
-
class: "b-inspector__return-content-description"
|
|
127
|
-
}, h(t(c)("returnToMainContentDescription")), 9, le)
|
|
128
|
-
], 64)),
|
|
129
|
-
s(t(j), {
|
|
130
|
-
el: "h2",
|
|
131
|
-
variant: "title",
|
|
132
|
-
class: "b-inspector__title"
|
|
133
|
-
}, {
|
|
134
|
-
default: r(() => [
|
|
135
|
-
w(h(e.title), 1)
|
|
136
|
-
]),
|
|
137
|
-
_: 1
|
|
138
|
-
}),
|
|
139
|
-
a("div", pe, [
|
|
140
|
-
e.expandable ? (v(), x(t(E), {
|
|
141
|
-
key: 0,
|
|
142
|
-
variant: "tertiary",
|
|
143
|
-
onClick: o[0] || (o[0] = (d) => f("expand"))
|
|
144
|
-
}, {
|
|
145
|
-
iconLeft: r(() => [
|
|
146
|
-
s(t(Z), {
|
|
147
|
-
"svg-title": t(c)("expand")
|
|
148
|
-
}, null, 8, ["svg-title"])
|
|
149
|
-
]),
|
|
150
|
-
_: 1
|
|
151
|
-
})) : C("", !0),
|
|
152
|
-
s(t(E), {
|
|
153
|
-
variant: "tertiary",
|
|
154
|
-
onClick: o[1] || (o[1] = (d) => f("update:is-open", !1))
|
|
155
|
-
}, {
|
|
156
|
-
iconLeft: r(() => [
|
|
157
|
-
s(t(ee), {
|
|
158
|
-
"svg-title": t(c)("close")
|
|
159
|
-
}, null, 8, ["svg-title"])
|
|
160
|
-
]),
|
|
161
|
-
_: 1
|
|
162
|
-
})
|
|
163
|
-
])
|
|
164
|
-
]),
|
|
165
|
-
a("div", de, [
|
|
166
|
-
e.loading ? (v(), x(t(q), {
|
|
167
|
-
key: 0,
|
|
168
|
-
large: "",
|
|
169
|
-
class: "b-inspector__loading-indicator"
|
|
170
|
-
})) : k(e.$slots, "content", { key: 1 }, void 0, !0)
|
|
171
|
-
])
|
|
172
|
-
])
|
|
173
|
-
]),
|
|
174
|
-
_: 3
|
|
175
|
-
}, 8, ["disabled"])
|
|
176
|
-
], 40, ie)) : C("", !0)
|
|
177
|
-
]),
|
|
178
|
-
_: 3
|
|
179
|
-
})
|
|
180
|
-
], 34));
|
|
181
|
-
}
|
|
182
|
-
}), Le = /* @__PURE__ */ ae(ve, [["__scopeId", "data-v-0ce03599"]]), Se = ["small", "large"];
|
|
183
|
-
export {
|
|
184
|
-
Se as B,
|
|
185
|
-
Le as i
|
|
186
|
-
};
|
|
187
|
-
//# sourceMappingURL=inspector.types.BQnVv5HX.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"inspector.types.BQnVv5HX.js","sources":["../../../vue2/src/components/inspector/inspector.vue","../../../vue2/src/components/inspector/inspector.types.ts"],"sourcesContent":["<template>\n <div ref=\"wrapper\" class=\"b-inspector\" :class=\"conditionalClass\" @keydown=\"handleSectionFocus\">\n <div ref=\"page\" class=\"b-inspector__page-wrapper\">\n <div class=\"b-inspector__page\">\n <slot name=\"page\" />\n </div>\n </div>\n <Transition name=\"b-inspector__animation\" mode=\"out-in\" @before-enter=\"setFocus\" @after-leave=\"setFocus\">\n <aside\n v-if=\"isOpen\"\n ref=\"inspector\"\n class=\"b-inspector__container-wrapper\"\n :aria-label=\"inspectorAriaLabel\"\n @keydown.tab=\"handleTabNavigation\"\n >\n <bento-focus-trap :disabled=\"!isCompact\">\n <div class=\"b-inspector__container\">\n <div class=\"b-inspector__header\">\n <template v-if=\"!isCompact\">\n <bento-button\n class=\"b-inspector__return-content\"\n variant=\"secondary\"\n condensed\n :aria-describedby=\"returnToMainContentDescriptionId\"\n @click=\"moveFocusBetweenSections\"\n >\n {{ t('returnToMainContent') }}\n </bento-button>\n <span\n :id=\"returnToMainContentDescriptionId\"\n class=\"b-inspector__return-content-description\"\n >{{ t('returnToMainContentDescription') }}</span\n >\n </template>\n <bento-typography el=\"h2\" variant=\"title\" class=\"b-inspector__title\">\n {{ title }}\n </bento-typography>\n <div class=\"b-inspector__icons\">\n <bento-button v-if=\"expandable\" variant=\"tertiary\" @click=\"emit('expand')\">\n <template #iconLeft><expand-icon :svg-title=\"t('expand')\"></expand-icon></template>\n </bento-button>\n <bento-button variant=\"tertiary\" @click=\"emit('update:is-open', false)\">\n <template #iconLeft><cross-icon :svg-title=\"t('close')\"></cross-icon></template>\n </bento-button>\n </div>\n </div>\n <div class=\"b-inspector__content\">\n <bento-loading-indicator v-if=\"loading\" large class=\"b-inspector__loading-indicator\" />\n <slot v-else name=\"content\" />\n </div>\n </div>\n </bento-focus-trap>\n </aside>\n </Transition>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, nextTick, ref, watch } from 'vue';\n import { BentoTypography } from '@/components/typography';\n import { BentoButton } from '@/components/button';\n import { BentoLoadingIndicator } from '@/components/loading-indicator';\n import { BentoFocusTrap } from '@/components/focus-trap';\n import ExpandIcon from '@adyen/ui-assets-icons-16/vue/expand';\n import CrossIcon from '@adyen/ui-assets-icons-16/vue/cross';\n\n import { generateUid } from '@/core/utils/ts';\n import { useI18n } from '@/utils/ts/i18n';\n import { deprecate } from '@/utils/ts/deprecate';\n import { getNextFocusableElement } from '@/utils/ts/focus-trap.utils';\n import { useElementSize } from '@vueuse/core';\n import moveFocusInside, { focusInside, getActiveElement } from 'focus-lock';\n\n import { BentoInspectorRelativeLayout, BentoInspectorSize } from './inspector.types';\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const props = withDefaults(\n defineProps<{\n /**\n * ID of the current active inspector page\n */\n activePage?: string;\n\n /**\n * Shows the Expand icon in the inspector\n */\n expandable?: boolean;\n\n /**\n * Opens and closes the inspector\n */\n isOpen?: boolean;\n\n /**\n * Shows loading indicator for the content\n */\n loading?: boolean;\n\n /**\n * Determines the size of the inspector\n */\n size?: BentoInspectorSize;\n\n /**\n * The title of the component\n */\n title: string;\n\n /**\n * The appearance of the inspector relative to the main content. Defaults to `push-content`.\n *\n * - `push-content`: The inspector pushes the main content to the side, resizing it to fit.\n * - `overlay-content`: The inspector opens on top of the main content, without affecting its layout.\n */\n relativeLayout?: BentoInspectorRelativeLayout;\n }>(),\n {\n activePage: '',\n expandable: false,\n isOpen: false,\n loading: false,\n size: 'small',\n relativeLayout: 'push-content',\n }\n );\n\n const emit = defineEmits<{\n /**\n * Emits update to keep isOpen prop in sync\n */\n (e: 'update:is-open', value: boolean): void;\n /**\n * Emits update to keep activePage prop in sync\n */\n (e: 'update:active-page', value: string): void;\n /**\n * Emits event when user click expand button\n */\n (e: 'expand'): void;\n }>();\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n const returnToMainContentDescriptionId = generateUid('returnToMainContentDescription');\n const wrapper = ref<HTMLElement>(null);\n const inspector = ref<HTMLElement>(null);\n const page = ref<HTMLElement>(null);\n const pageLastFocusedElement = ref<HTMLElement>(null);\n const inspectorLastFocusedElement = ref<HTMLElement>(null);\n\n const { width: wrapperWidth } = useElementSize(wrapper);\n\n const isCompact = computed(() => {\n const COMPACT_THRESHOLD_SMALL = 740;\n const COMPACT_THRESHOLD_LARGE = 915;\n\n // small inspector to occupy full screen if < 740px\n // large inspector to occupy full screen if < 915px\n const threshold = props.size === 'small' ? COMPACT_THRESHOLD_SMALL : COMPACT_THRESHOLD_LARGE;\n\n return wrapperWidth.value > 0 && wrapperWidth.value < threshold;\n });\n\n const conditionalClass = computed(() => ({\n [`b-inspector--${props.size}`]: true,\n [`b-inspector--${props.relativeLayout}`]: true,\n [`b-inspector--is-compact`]: isCompact.value,\n }));\n\n const inspectorAriaLabel = computed(() => `${t('inspector')}, ${props.title}`);\n\n const setFocus = async () => {\n if (props.isOpen) {\n pageLastFocusedElement.value = document.activeElement as HTMLElement;\n await nextTick();\n moveFocusInside(inspector.value, pageLastFocusedElement.value);\n } else {\n // This doesn't work with data grid cell actions, as the button gets destroyed once is not being hovered.\n // To be reviewed after LevelAccess revision\n focusElement(pageLastFocusedElement.value);\n }\n };\n\n const handleTabNavigation = event => {\n if (isCompact.value) {\n return;\n }\n const direction = event.shiftKey ? -1 : 1;\n const focusableEl = getNextFocusableElement(direction, inspector.value);\n // If the nextfocusableEl is the same as the activeElement that means it's the last focusable element\n // inside the inspector, so the focus is moved back to the last focused element on the page\n if (getActiveElement() === focusableEl) {\n event.preventDefault();\n inspectorLastFocusedElement.value = document.activeElement as HTMLElement;\n focusElement(pageLastFocusedElement.value);\n // Set active-page as undefined when focus is not on page\n emit('update:active-page', undefined);\n }\n };\n\n const handleSectionFocus = event => {\n const sectionShortcut = event.shiftKey && event.ctrlKey && event.key === 'S';\n if (props.isOpen && !isCompact.value && sectionShortcut) {\n moveFocusBetweenSections();\n }\n };\n\n const moveFocusBetweenSections = () => {\n if (focusInside(inspector.value)) {\n inspectorLastFocusedElement.value = document.activeElement as HTMLElement;\n focusElement(pageLastFocusedElement.value);\n // Set active-page as undefined when focus is not on page\n emit('update:active-page', undefined);\n } else {\n pageLastFocusedElement.value = document.activeElement as HTMLElement;\n focusElement(inspectorLastFocusedElement.value);\n }\n };\n\n const focusElement = (element: HTMLElement) => {\n if (!element) {\n return;\n }\n element?.focus();\n if (document.activeElement !== element) {\n focusElement(element.parentElement);\n }\n };\n\n watch(\n () => props.activePage,\n () => {\n if (props.activePage) {\n setFocus();\n }\n }\n );\n\n if (!props.activePage) {\n deprecate(\n 'BentoInspector \"active-page\" as optional',\n `Make sure to set the \"active-page\" prop and keep it in sync with \"update:active-page\".\n \"active-page\" prop will be required in the next version`,\n '2.0.0'\n );\n }\n</script>\n\n<script lang=\"ts\">\n /**\n * Inspector allows users to access additional information or details of an object/item. The inspector opens adjacent to the main content, pushing it aside to maintain visibility and accessibility to both the main content and inspector.\n *\n * @example\n * import { BentoInspector } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoInspector },\n * template: `\n * <bento-inspector\n * title=\"Inspector\"\n * size=\"large\"\n * :is-open=\"isOpen\"\n * :active-page=\"activePage\"\n * expandable\n * @update:is-open=\"isOpen = $event\"\n * @update:active-page=\"activePage = $event\"\n * >\n * <template #page>Content of the page</template>\n * <template #content>Content of the inspector</template>\n * </bento-inspector>\n * `\n * }\n */\n export default { i18n: { messages } };\n</script>\n\n<style lang=\"scss\" scoped src=\"./inspector.scss\" />\n","export const BentoInspectorSizeOptions = ['small', 'large'] as const;\n\nexport type BentoInspectorRelativeLayout = 'push-content' | 'overlay-content';\n\nexport type BentoInspectorSize = (typeof BentoInspectorSizeOptions)[number];\n"],"names":["__default__","messages","props","__props","emit","__emit","t","useI18n","returnToMainContentDescriptionId","generateUid","wrapper","ref","inspector","page","pageLastFocusedElement","inspectorLastFocusedElement","wrapperWidth","useElementSize","isCompact","computed","threshold","conditionalClass","inspectorAriaLabel","setFocus$1","nextTick","setFocus","focusElement","handleTabNavigation","event","direction","focusableEl","getNextFocusableElement","getActiveElement","handleSectionFocus","sectionShortcut","moveFocusBetweenSections","focusInside","element","watch","deprecate","BentoInspectorSizeOptions"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;yOAkRIA,KAAA,EAAA,MAAA,EAAA,UAAAC,EAAA,EAAA;;;;;;;;;;;;;;AApMA,UAAAC,IAAAC,GAkDAC,IAAAC,GAeA,EAAA,GAAAC,EAAA,IAAAC,GAAA,EAAA,UAAAN,EAAA,CAAA,GACAO,IAAAC,GAAA,gCAAA,GACAC,IAAAC,EAAA,IAAA,GACAC,IAAAD,EAAA,IAAA,GACAE,IAAAF,EAAA,IAAA,GACAG,IAAAH,EAAA,IAAA,GACAI,IAAAJ,EAAA,IAAA,GAEA,EAAA,OAAAK,EAAA,IAAAC,GAAAP,CAAA,GAEAQ,IAAAC,EAAA,MAAA;AAMI,YAAAC,IAAAlB,EAAA,SAAA,UAAA,MAAA;AAEA,aAAAc,EAAA,QAAA,KAAAA,EAAA,QAAAI;AAAA,IAAsD,CAAA,GAG1DC,IAAAF,EAAA,OAAA;AAAA,MAAyC,CAAA,gBAAAjB,EAAA,IAAA,EAAA,GAAA;AAAA,MACL,CAAA,gBAAAA,EAAA,cAAA,EAAA,GAAA;AAAA,MACU,2BAAAgB,EAAA;AAAA,IACH,EAAA,GAG3CI,IAAAH,EAAA,MAAA,GAAAb,EAAA,WAAA,CAAA,KAAAJ,EAAA,KAAA,EAAA,GAEAqB,IAAA,YAAA;AACI,MAAArB,EAAA,UACIY,EAAA,QAAA,SAAA,eACA,MAAAU,EAAA,GACAC,EAAAb,EAAA,OAAAE,EAAA,KAAA,KAIAY,EAAAZ,EAAA,KAAA;AAAA,IACJ,GAGJa,IAAA,CAAAC,MAAA;AACI,UAAAV,EAAA;AACI;AAEJ,YAAAW,IAAAD,EAAA,WAAA,KAAA,GACAE,IAAAC,EAAAF,GAAAjB,EAAA,KAAA;AAGA,MAAAoB,EAAA,MAAAF,MACIF,EAAA,eAAA,GACAb,EAAA,QAAA,SAAA,eACAW,EAAAZ,EAAA,KAAA,GAEAV,EAAA,sBAAA,MAAA;AAAA,IACJ,GAGJ6B,IAAA,CAAAL,MAAA;AACI,YAAAM,IAAAN,EAAA,YAAAA,EAAA,WAAAA,EAAA,QAAA;AACA,MAAA1B,EAAA,UAAA,CAAAgB,EAAA,SAAAgB,KACIC,EAAA;AAAA,IACJ,GAGJA,IAAA,MAAA;AACI,MAAAC,EAAAxB,EAAA,KAAA,KACIG,EAAA,QAAA,SAAA,eACAW,EAAAZ,EAAA,KAAA,GAEAV,EAAA,sBAAA,MAAA,MAEAU,EAAA,QAAA,SAAA,eACAY,EAAAX,EAAA,KAAA;AAAA,IACJ,GAGJW,IAAA,CAAAW,MAAA;AACI,MAAAA,MAGAA,KAAA,QAAAA,EAAA,SACA,SAAA,kBAAAA,KACIX,EAAAW,EAAA,aAAA;AAAA,IACJ;AAGJ,WAAAC;AAAA,MAAA,MAAApC,EAAA;AAAA,MACgB,MAAA;AAER,QAAAA,EAAA,cACIqB,EAAA;AAAA,MACJ;AAAA,IACJ,GAGJrB,EAAA,cACIqC;AAAA,MAAA;AAAA,MACI;AAAA;AAAA,MACA;AAAA,IAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qECpPCC,KAAA,CAAA,SAAA,OAAA;"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
const e = "data:image/svg+xml,%3csvg%20width='300'%20height='300'%20viewBox='0%200%20300%20300'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M233.806%20217.894H47.3439C41.6232%20217.894%2036.9824%20213.248%2036.9824%20207.516H244.161C244.161%20213.243%20239.521%20217.894%20233.8%20217.894H233.806Z'%20fill='%23EEF0F3'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M171.648%20217.894H47.3439C41.6232%20217.894%2036.9824%20213.248%2036.9824%20207.516H182.009C182.009%20213.243%20177.369%20217.894%20171.648%20217.894Z'%20fill='%23EEF0F3'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M245.388%20207.516H121.084C115.363%20207.516%20111.544%20202.87%20112.551%20197.138L130.816%2093.3782C131.822%2087.6513%20137.279%2083%20143%2083H267.304C273.024%2083%20276.844%2087.6457%20275.837%2093.3782L257.572%20197.143C256.565%20202.87%20251.103%20207.522%20245.388%20207.522V207.516Z'%20fill='%23EEF0F3'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M240.212%20207.516H115.908C110.188%20207.516%20106.368%20202.87%20107.375%20197.138L125.634%2093.3782C126.641%2087.6513%20132.098%2083%20137.818%2083H262.122C267.843%2083%20271.663%2087.6457%20270.656%2093.3782L252.391%20197.143C251.384%20202.87%20245.922%20207.522%20240.207%20207.522L240.212%20207.516Z'%20fill='%2300112C'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M241.119%20202.33C243.971%20202.33%20246.71%20200.004%20247.211%20197.143L265.476%2093.3781C265.982%2090.5175%20264.07%2088.1918%20261.206%2088.1918H136.902C134.05%2088.1918%20131.311%2090.5175%20130.81%2093.3781L112.546%20197.143C112.039%20200.004%20113.952%20202.33%20116.815%20202.33H241.119Z'%20fill='%23EEF0F3'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M182.009%20207.516H128.7C126.354%20207.516%20124.104%20208.445%20122.451%20210.112C120.797%20211.773%20118.541%20212.708%20116.201%20212.708H102.813C100.473%20212.708%2098.2175%20211.779%2096.5638%20210.112C94.91%20208.451%2092.6543%20207.516%2090.3142%20207.516H36.9824'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M24%20217.894H276'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M201.743%20153.772C202.733%20148.169%20198.424%20143.022%20192.737%20143.022C186.623%20143.022%20181.397%20147.415%20180.334%20153.446L178.382%20164.517H210.743C205.056%20164.517%20200.747%20159.375%20201.737%20153.767L201.743%20153.772Z'%20fill='%236F7987'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M159.869%20107.186C160.218%20105.198%20161.939%20103.756%20163.953%20103.756H228.304C230.234%20103.756%20231.702%20105.508%20231.364%20107.405L230.177%20114.129H158.637L159.863%20107.18L159.869%20107.186Z'%20fill='%236F7987'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M230.183%20114.123L223.146%20154.093C222.088%20160.119%20216.857%20164.517%20210.742%20164.517C205.083%20164.517%20200.78%20159.409%20201.731%20153.829C202.687%20148.203%20198.564%20143.017%20192.866%20143.017H153.552L158.637%20114.118H230.183V114.123Z'%20fill='%2300112C'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M170.951%20143.022H121.208C115.093%20143.022%20109.868%20147.415%20108.805%20153.446L104.333%20178.853L102.983%20186.523C101.824%20193.1%2098.1843%20198.979%2092.818%20202.944L86.6247%20207.516H160.258C166.372%20207.516%20171.592%20197.189%20172.661%20191.158L178.393%20164.522L180.345%20153.451C181.402%20147.426%20186.634%20143.028%20192.748%20143.028H170.957L170.951%20143.022Z'%20fill='%2300112C'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M192.742%20142.465H122.754'%20stroke='%23EEF0F3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M122.107%20159.578L129.234%20168.239'%20stroke='%23EEF0F3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M130.759%20159.578L120.583%20168.239'%20stroke='%23EEF0F3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M145.857%20159.578L152.979%20168.239'%20stroke='%2385DFA9'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M154.502%20159.578L144.332%20168.239'%20stroke='%2385DFA9'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M115.054%20183.319L122.546%20176.939L127.823%20183.358'%20stroke='%23EEF0F3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M127.834%20183.319L135.327%20176.939L140.603%20183.358'%20stroke='%23EEF0F3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M140.608%20183.319L148.106%20176.939L153.383%20183.358'%20stroke='%23EEF0F3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M165.877%20122.221L162.918%20124.738L164.994%20127.25'%20stroke='%23EEF0F3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M168.571%20124.738H174.854'%20stroke='%23EEF0F3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M177.998%20124.738H196.842'%20stroke='%2385DFA9'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M217.582%20136.062L220.541%20133.545L218.465%20131.034'%20stroke='%23EEF0F3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M160.735%20133.545H173.302'%20stroke='%23EEF0F3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M176.446%20133.545H185.874'%20stroke='%2385DFA9'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M222.167%20124.738H203.323'%20stroke='%230ABF53'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M211.199%20133.545H201.771'%20stroke='%23EEF0F3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M198.289%20133.545H188.861'%20stroke='%230ABF53'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M212.38%20136.062L216.194%20131.028'%20stroke='%23EEF0F3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M86.6243%20207.522H86.3093C81.3986%20207.522%2077.416%20203.535%2077.416%20198.619H149.789C149.789%20203.535%20153.771%20207.522%20158.682%20207.522H160.257H86.6243Z'%20fill='%236F7987'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M98.1555%20128.359V135.319'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M83.3955%20135.984L88.3119%20140.905'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M75.7786%20150.76H82.7312'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e";
|
|
2
|
-
export {
|
|
3
|
-
e as default
|
|
4
|
-
};
|
|
5
|
-
//# sourceMappingURL=internal-error.BLZodVBE.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"internal-error.BLZodVBE.js","sources":["../../../vue2/src/components/empty-state/assets/large/internal-error.svg"],"sourcesContent":["export default \"data:image/svg+xml,%3csvg%20width='300'%20height='300'%20viewBox='0%200%20300%20300'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M233.806%20217.894H47.3439C41.6232%20217.894%2036.9824%20213.248%2036.9824%20207.516H244.161C244.161%20213.243%20239.521%20217.894%20233.8%20217.894H233.806Z'%20fill='%23EEF0F3'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M171.648%20217.894H47.3439C41.6232%20217.894%2036.9824%20213.248%2036.9824%20207.516H182.009C182.009%20213.243%20177.369%20217.894%20171.648%20217.894Z'%20fill='%23EEF0F3'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M245.388%20207.516H121.084C115.363%20207.516%20111.544%20202.87%20112.551%20197.138L130.816%2093.3782C131.822%2087.6513%20137.279%2083%20143%2083H267.304C273.024%2083%20276.844%2087.6457%20275.837%2093.3782L257.572%20197.143C256.565%20202.87%20251.103%20207.522%20245.388%20207.522V207.516Z'%20fill='%23EEF0F3'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M240.212%20207.516H115.908C110.188%20207.516%20106.368%20202.87%20107.375%20197.138L125.634%2093.3782C126.641%2087.6513%20132.098%2083%20137.818%2083H262.122C267.843%2083%20271.663%2087.6457%20270.656%2093.3782L252.391%20197.143C251.384%20202.87%20245.922%20207.522%20240.207%20207.522L240.212%20207.516Z'%20fill='%2300112C'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M241.119%20202.33C243.971%20202.33%20246.71%20200.004%20247.211%20197.143L265.476%2093.3781C265.982%2090.5175%20264.07%2088.1918%20261.206%2088.1918H136.902C134.05%2088.1918%20131.311%2090.5175%20130.81%2093.3781L112.546%20197.143C112.039%20200.004%20113.952%20202.33%20116.815%20202.33H241.119Z'%20fill='%23EEF0F3'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M182.009%20207.516H128.7C126.354%20207.516%20124.104%20208.445%20122.451%20210.112C120.797%20211.773%20118.541%20212.708%20116.201%20212.708H102.813C100.473%20212.708%2098.2175%20211.779%2096.5638%20210.112C94.91%20208.451%2092.6543%20207.516%2090.3142%20207.516H36.9824'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M24%20217.894H276'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M201.743%20153.772C202.733%20148.169%20198.424%20143.022%20192.737%20143.022C186.623%20143.022%20181.397%20147.415%20180.334%20153.446L178.382%20164.517H210.743C205.056%20164.517%20200.747%20159.375%20201.737%20153.767L201.743%20153.772Z'%20fill='%236F7987'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M159.869%20107.186C160.218%20105.198%20161.939%20103.756%20163.953%20103.756H228.304C230.234%20103.756%20231.702%20105.508%20231.364%20107.405L230.177%20114.129H158.637L159.863%20107.18L159.869%20107.186Z'%20fill='%236F7987'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M230.183%20114.123L223.146%20154.093C222.088%20160.119%20216.857%20164.517%20210.742%20164.517C205.083%20164.517%20200.78%20159.409%20201.731%20153.829C202.687%20148.203%20198.564%20143.017%20192.866%20143.017H153.552L158.637%20114.118H230.183V114.123Z'%20fill='%2300112C'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M170.951%20143.022H121.208C115.093%20143.022%20109.868%20147.415%20108.805%20153.446L104.333%20178.853L102.983%20186.523C101.824%20193.1%2098.1843%20198.979%2092.818%20202.944L86.6247%20207.516H160.258C166.372%20207.516%20171.592%20197.189%20172.661%20191.158L178.393%20164.522L180.345%20153.451C181.402%20147.426%20186.634%20143.028%20192.748%20143.028H170.957L170.951%20143.022Z'%20fill='%2300112C'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M192.742%20142.465H122.754'%20stroke='%23EEF0F3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M122.107%20159.578L129.234%20168.239'%20stroke='%23EEF0F3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M130.759%20159.578L120.583%20168.239'%20stroke='%23EEF0F3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M145.857%20159.578L152.979%20168.239'%20stroke='%2385DFA9'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M154.502%20159.578L144.332%20168.239'%20stroke='%2385DFA9'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M115.054%20183.319L122.546%20176.939L127.823%20183.358'%20stroke='%23EEF0F3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M127.834%20183.319L135.327%20176.939L140.603%20183.358'%20stroke='%23EEF0F3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M140.608%20183.319L148.106%20176.939L153.383%20183.358'%20stroke='%23EEF0F3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M165.877%20122.221L162.918%20124.738L164.994%20127.25'%20stroke='%23EEF0F3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M168.571%20124.738H174.854'%20stroke='%23EEF0F3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M177.998%20124.738H196.842'%20stroke='%2385DFA9'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M217.582%20136.062L220.541%20133.545L218.465%20131.034'%20stroke='%23EEF0F3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M160.735%20133.545H173.302'%20stroke='%23EEF0F3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M176.446%20133.545H185.874'%20stroke='%2385DFA9'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M222.167%20124.738H203.323'%20stroke='%230ABF53'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M211.199%20133.545H201.771'%20stroke='%23EEF0F3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M198.289%20133.545H188.861'%20stroke='%230ABF53'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M212.38%20136.062L216.194%20131.028'%20stroke='%23EEF0F3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M86.6243%20207.522H86.3093C81.3986%20207.522%2077.416%20203.535%2077.416%20198.619H149.789C149.789%20203.535%20153.771%20207.522%20158.682%20207.522H160.257H86.6243Z'%20fill='%236F7987'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M98.1555%20128.359V135.319'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M83.3955%20135.984L88.3119%20140.905'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M75.7786%20150.76H82.7312'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e\""],"names":["internalError"],"mappings":"AAAA,MAAeA,IAAA;"}
|