@adyen/bento-vue3 1.60.0 → 1.60.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@types/components.d.ts +201 -0
- package/dist/@types/index.d.ts +17835 -0
- package/dist/@types/use-form-v4.d.ts +86 -0
- package/dist/accordion.js +6 -0
- package/dist/accordion.js.map +1 -0
- package/dist/action-bar.js +5 -0
- package/dist/action-bar.js.map +1 -0
- package/dist/alert.js +8 -0
- package/dist/alert.js.map +1 -0
- package/dist/assets/accordion-item.css +1 -0
- package/dist/assets/action-bar.css +1 -0
- package/dist/assets/alert.css +1 -0
- package/dist/assets/avatar.css +1 -0
- package/dist/assets/base-button.css +1 -0
- package/dist/assets/base-modal.css +1 -0
- package/dist/assets/button-actions-with-menu.css +1 -0
- package/dist/assets/button-actions.css +1 -0
- package/dist/assets/button.css +1 -0
- package/dist/assets/calendar.css +1 -0
- package/dist/assets/card.css +1 -0
- package/dist/assets/checkbox-group.css +1 -0
- package/dist/assets/checkbox-input.css +1 -0
- package/dist/assets/checkbox.css +1 -0
- package/dist/assets/chip.css +1 -0
- package/dist/assets/code-snippet.css +1 -0
- package/dist/assets/controls-group.css +1 -0
- package/dist/assets/copy.css +1 -0
- package/dist/assets/country.css +1 -0
- package/dist/assets/currency.css +1 -0
- package/dist/assets/dashboard-section.css +1 -0
- package/dist/assets/dashed-underline.css +1 -0
- package/dist/assets/data-grid-template.css +1 -0
- package/dist/assets/data-grid.css +1 -0
- package/dist/assets/date-picker.css +1 -0
- package/dist/assets/date-range-picker.css +1 -0
- package/dist/assets/date.css +1 -0
- package/dist/assets/dialog-page.css +1 -0
- package/dist/assets/divider.css +1 -0
- package/dist/assets/dropdown-default-textbox.css +1 -0
- package/dist/assets/dropdown-tag.css +1 -0
- package/dist/assets/dropdown.css +1 -0
- package/dist/assets/empty-state.css +1 -0
- package/dist/assets/error-message.css +1 -0
- package/dist/assets/file-uploader.css +1 -0
- package/dist/assets/filter-bar.css +1 -0
- package/dist/assets/fixed-scroller.css +1 -0
- package/dist/assets/focus-trap.css +1 -0
- package/dist/assets/footer-actions.css +1 -0
- package/dist/assets/form-layout-title.css +1 -0
- package/dist/assets/grid-layout.css +1 -0
- package/dist/assets/header-with-views.css +1 -0
- package/dist/assets/header.css +1 -0
- package/dist/assets/info-icon-with-popover.css +1 -0
- package/dist/assets/info-icon.css +1 -0
- package/dist/assets/input-field-password.css +1 -0
- package/dist/assets/input-field-phone-number.css +1 -0
- package/dist/assets/input-field.css +1 -0
- package/dist/assets/inspector.css +1 -0
- package/dist/assets/layout-row.css +1 -0
- package/dist/assets/link.css +1 -0
- package/dist/assets/listbox-option-tag.css +1 -0
- package/dist/assets/loading-indicator.css +1 -0
- package/dist/assets/main.css +1 -0
- package/dist/assets/menu.css +1 -0
- package/dist/assets/modal-fullscreen.css +1 -0
- package/dist/assets/pagination.css +1 -0
- package/dist/assets/payment-method.css +1 -0
- package/dist/assets/popover.css +1 -0
- package/dist/assets/popper-container.css +1 -0
- package/dist/assets/promo-banner.css +1 -0
- package/dist/assets/radio-group.css +1 -0
- package/dist/assets/radio-input.css +1 -0
- package/dist/assets/rich-text-editor.css +1 -0
- package/dist/assets/search-bar.css +1 -0
- package/dist/assets/secondary-nav.css +1 -0
- package/dist/assets/segmented-control.css +1 -0
- package/dist/assets/selection-card-group.css +1 -0
- package/dist/assets/sidepanel.css +1 -0
- package/dist/assets/status.css +1 -0
- package/dist/assets/step.css +1 -0
- package/dist/assets/structured-list-item.css +1 -0
- package/dist/assets/summary-grid.css +1 -0
- package/dist/assets/tabs.css +1 -0
- package/dist/assets/tag.css +1 -0
- package/dist/assets/teleport.css +1 -0
- package/dist/assets/textarea.css +1 -0
- package/dist/assets/timeline-item.css +1 -0
- package/dist/assets/toast.css +1 -0
- package/dist/assets/toggle-button.css +1 -0
- package/dist/assets/toggle.css +1 -0
- package/dist/assets/tooltip.css +1 -0
- package/dist/assets/tutorial.css +1 -0
- package/dist/assets/typography.css +1 -0
- package/dist/assets/use-cached-selected-values.css +1 -0
- package/dist/avatar.js +5 -0
- package/dist/avatar.js.map +1 -0
- package/dist/button.js +16 -0
- package/dist/button.js.map +1 -0
- package/dist/card.js +7 -0
- package/dist/card.js.map +1 -0
- package/dist/checkbox.js +11 -0
- package/dist/checkbox.js.map +1 -0
- package/dist/chip.js +5 -0
- package/dist/chip.js.map +1 -0
- package/dist/chunks/1-generic-use.CZhwP2Yc.js +5 -0
- package/dist/chunks/1-generic-use.CZhwP2Yc.js.map +1 -0
- package/dist/chunks/1-generic-use.R6x8PEGA.js +5 -0
- package/dist/chunks/1-generic-use.R6x8PEGA.js.map +1 -0
- package/dist/chunks/2-generic-use.CNKjB4B7.js +5 -0
- package/dist/chunks/2-generic-use.CNKjB4B7.js.map +1 -0
- package/dist/chunks/2-generic-use.w0fUhovx.js +5 -0
- package/dist/chunks/2-generic-use.w0fUhovx.js.map +1 -0
- package/dist/chunks/3-generic-use.BLEzR04g.js +5 -0
- package/dist/chunks/3-generic-use.BLEzR04g.js.map +1 -0
- package/dist/chunks/3-generic-use.D3NFHgI4.js +5 -0
- package/dist/chunks/3-generic-use.D3NFHgI4.js.map +1 -0
- package/dist/chunks/4-generic-use.CULEpvgj.js +5 -0
- package/dist/chunks/4-generic-use.CULEpvgj.js.map +1 -0
- package/dist/chunks/4-generic-use.D82y3n39.js +5 -0
- package/dist/chunks/4-generic-use.D82y3n39.js.map +1 -0
- package/dist/chunks/_commonjsHelpers.C6fGbg64.js +7 -0
- package/dist/chunks/_commonjsHelpers.C6fGbg64.js.map +1 -0
- package/dist/chunks/_plugin-vue_export-helper.CHgC5LLL.js +10 -0
- package/dist/chunks/_plugin-vue_export-helper.CHgC5LLL.js.map +1 -0
- package/dist/chunks/accordion-item.CihL7JaZ.js +142 -0
- package/dist/chunks/accordion-item.CihL7JaZ.js.map +1 -0
- package/dist/chunks/action-bar.BDF61iH-.js +203 -0
- package/dist/chunks/action-bar.BDF61iH-.js.map +1 -0
- package/dist/chunks/adding-payment-methods.BJZLPxtM.js +5 -0
- package/dist/chunks/adding-payment-methods.BJZLPxtM.js.map +1 -0
- package/dist/chunks/adding-payment-methods.Dle8zt43.js +5 -0
- package/dist/chunks/adding-payment-methods.Dle8zt43.js.map +1 -0
- package/dist/chunks/adyen-giving.Ffw_DlJK.js +5 -0
- package/dist/chunks/adyen-giving.Ffw_DlJK.js.map +1 -0
- package/dist/chunks/adyen-giving.LiKHj_jY.js +5 -0
- package/dist/chunks/adyen-giving.LiKHj_jY.js.map +1 -0
- package/dist/chunks/alert.CjegN2iG.js +169 -0
- package/dist/chunks/alert.CjegN2iG.js.map +1 -0
- package/dist/chunks/aria-label.CaUURpnB.js +13 -0
- package/dist/chunks/aria-label.CaUURpnB.js.map +1 -0
- package/dist/chunks/avatar.B0-9jC6H.js +94 -0
- package/dist/chunks/avatar.B0-9jC6H.js.map +1 -0
- package/dist/chunks/base-button.DdNFlbgH.js +115 -0
- package/dist/chunks/base-button.DdNFlbgH.js.map +1 -0
- package/dist/chunks/base-modal.D2tNbxw3.js +504 -0
- package/dist/chunks/base-modal.D2tNbxw3.js.map +1 -0
- package/dist/chunks/base-modal.keys.C2PQXcE2.js +5 -0
- package/dist/chunks/base-modal.keys.C2PQXcE2.js.map +1 -0
- package/dist/chunks/bin.CA6UQCNZ.js +37 -0
- package/dist/chunks/bin.CA6UQCNZ.js.map +1 -0
- package/dist/chunks/button-actions-with-menu.DG5t9zB7.js +174 -0
- package/dist/chunks/button-actions-with-menu.DG5t9zB7.js.map +1 -0
- package/dist/chunks/button-actions.1MReMMnL.js +264 -0
- package/dist/chunks/button-actions.1MReMMnL.js.map +1 -0
- package/dist/chunks/button.CVZJTZv0.js +120 -0
- package/dist/chunks/button.CVZJTZv0.js.map +1 -0
- package/dist/chunks/calendar.ugV5Vzqs.js +1290 -0
- package/dist/chunks/calendar.ugV5Vzqs.js.map +1 -0
- package/dist/chunks/card.dF_i6neN.js +213 -0
- package/dist/chunks/card.dF_i6neN.js.map +1 -0
- package/dist/chunks/checkbox-group.DtXPnGyr.js +192 -0
- package/dist/chunks/checkbox-group.DtXPnGyr.js.map +1 -0
- package/dist/chunks/checkbox-input.DVayucaL.js +168 -0
- package/dist/chunks/checkbox-input.DVayucaL.js.map +1 -0
- package/dist/chunks/checkbox.B-jC5L05.js +253 -0
- package/dist/chunks/checkbox.B-jC5L05.js.map +1 -0
- package/dist/chunks/checkmark-circle-fill.jicbqe7k.js +44 -0
- package/dist/chunks/checkmark-circle-fill.jicbqe7k.js.map +1 -0
- package/dist/chunks/checkmark-small.D7l69yBf.js +29 -0
- package/dist/chunks/checkmark-small.D7l69yBf.js.map +1 -0
- package/dist/chunks/chevron-left.BF63HtOH.js +52 -0
- package/dist/chunks/chevron-left.BF63HtOH.js.map +1 -0
- package/dist/chunks/chevron-up.-0oLlHmh.js +52 -0
- package/dist/chunks/chevron-up.-0oLlHmh.js.map +1 -0
- package/dist/chunks/chip.BVCzNGaI.js +71 -0
- package/dist/chunks/chip.BVCzNGaI.js.map +1 -0
- package/dist/chunks/click-outside.C1Ud8AA2.js +23 -0
- package/dist/chunks/click-outside.C1Ud8AA2.js.map +1 -0
- package/dist/chunks/code-snippet.iD36_pOw.js +334 -0
- package/dist/chunks/code-snippet.iD36_pOw.js.map +1 -0
- package/dist/chunks/codemirror.Zv80n3Z2.js +14628 -0
- package/dist/chunks/codemirror.Zv80n3Z2.js.map +1 -0
- package/dist/chunks/controls-group.BX2GxXvb.js +98 -0
- package/dist/chunks/controls-group.BX2GxXvb.js.map +1 -0
- package/dist/chunks/copy.jE0EciK8.js +156 -0
- package/dist/chunks/copy.jE0EciK8.js.map +1 -0
- package/dist/chunks/country.BhAcCmRx.js +99 -0
- package/dist/chunks/country.BhAcCmRx.js.map +1 -0
- package/dist/chunks/country.types.C0Q_hhgJ.js +269 -0
- package/dist/chunks/country.types.C0Q_hhgJ.js.map +1 -0
- package/dist/chunks/cross-circle-fill-small.mY6ihJcA.js +29 -0
- package/dist/chunks/cross-circle-fill-small.mY6ihJcA.js.map +1 -0
- package/dist/chunks/cross-circle-fill.B7YpDLTK.js +44 -0
- package/dist/chunks/cross-circle-fill.B7YpDLTK.js.map +1 -0
- package/dist/chunks/cross-small.CFrBIeYK.js +29 -0
- package/dist/chunks/cross-small.CFrBIeYK.js.map +1 -0
- package/dist/chunks/cross.CbLEjiVy.js +29 -0
- package/dist/chunks/cross.CbLEjiVy.js.map +1 -0
- package/dist/chunks/currency.DagWnTry.js +109 -0
- package/dist/chunks/currency.DagWnTry.js.map +1 -0
- package/dist/chunks/dashboard-section.Bq1abySA.js +165 -0
- package/dist/chunks/dashboard-section.Bq1abySA.js.map +1 -0
- package/dist/chunks/dashed-underline.DweJIpuJ.js +98 -0
- package/dist/chunks/dashed-underline.DweJIpuJ.js.map +1 -0
- package/dist/chunks/data-grid-template.UkERMC7S.js +143 -0
- package/dist/chunks/data-grid-template.UkERMC7S.js.map +1 -0
- package/dist/chunks/data-grid-template.keys.2_AkxuNT.js +5 -0
- package/dist/chunks/data-grid-template.keys.2_AkxuNT.js.map +1 -0
- package/dist/chunks/data-grid.o4emi6FA.js +3646 -0
- package/dist/chunks/data-grid.o4emi6FA.js.map +1 -0
- package/dist/chunks/date-input.BqBdAO1E.js +17 -0
- package/dist/chunks/date-input.BqBdAO1E.js.map +1 -0
- package/dist/chunks/date-picker.BPLtpBbX.js +315 -0
- package/dist/chunks/date-picker.BPLtpBbX.js.map +1 -0
- package/dist/chunks/date-range-picker.BYvj1y8T.js +1181 -0
- package/dist/chunks/date-range-picker.BYvj1y8T.js.map +1 -0
- package/dist/chunks/date.CKXySBQv.js +995 -0
- package/dist/chunks/date.CKXySBQv.js.map +1 -0
- package/dist/chunks/debounce.DUTu11PS.js +10 -0
- package/dist/chunks/debounce.DUTu11PS.js.map +1 -0
- package/dist/chunks/dialog-page.Cngbnn1Z.js +175 -0
- package/dist/chunks/dialog-page.Cngbnn1Z.js.map +1 -0
- package/dist/chunks/directive.Cbdox5VL.js +23 -0
- package/dist/chunks/directive.Cbdox5VL.js.map +1 -0
- package/dist/chunks/divider.qUOSAbU6.js +33 -0
- package/dist/chunks/divider.qUOSAbU6.js.map +1 -0
- package/dist/chunks/dot.BW-xtyjC.js +29 -0
- package/dist/chunks/dot.BW-xtyjC.js.map +1 -0
- package/dist/chunks/dropdown-default-textbox.BNhy-QDH.js +419 -0
- package/dist/chunks/dropdown-default-textbox.BNhy-QDH.js.map +1 -0
- package/dist/chunks/dropdown-tag.DxLOtAIw.js +202 -0
- package/dist/chunks/dropdown-tag.DxLOtAIw.js.map +1 -0
- package/dist/chunks/dropdown.FJu_m8Tw.js +936 -0
- package/dist/chunks/dropdown.FJu_m8Tw.js.map +1 -0
- package/dist/chunks/empty-state.BGWjUH6G.js +185 -0
- package/dist/chunks/empty-state.BGWjUH6G.js.map +1 -0
- package/dist/chunks/error-message.Cb9-ZwSV.js +158 -0
- package/dist/chunks/error-message.Cb9-ZwSV.js.map +1 -0
- package/dist/chunks/es6.n1ewaW31.js +11 -0
- package/dist/chunks/es6.n1ewaW31.js.map +1 -0
- package/dist/chunks/events.FNmSWp_P.js +52 -0
- package/dist/chunks/events.FNmSWp_P.js.map +1 -0
- package/dist/chunks/expand.DusW7F7p.js +33 -0
- package/dist/chunks/expand.DusW7F7p.js.map +1 -0
- package/dist/chunks/file-uploader.Bp8PDPHt.js +2280 -0
- package/dist/chunks/file-uploader.Bp8PDPHt.js.map +1 -0
- package/dist/chunks/filter-bar.BRB7BjbE.js +2976 -0
- package/dist/chunks/filter-bar.BRB7BjbE.js.map +1 -0
- package/dist/chunks/fixed-scroller.BjxA_R63.js +147 -0
- package/dist/chunks/fixed-scroller.BjxA_R63.js.map +1 -0
- package/dist/chunks/focus-trap.CljZgv9i.js +500 -0
- package/dist/chunks/focus-trap.CljZgv9i.js.map +1 -0
- package/dist/chunks/footer-actions.jRnnqdse.js +110 -0
- package/dist/chunks/footer-actions.jRnnqdse.js.map +1 -0
- package/dist/chunks/form-layout-title.CsmjzAje.js +206 -0
- package/dist/chunks/form-layout-title.CsmjzAje.js.map +1 -0
- package/dist/chunks/form-layout.types.D3EKzbE7.js +5 -0
- package/dist/chunks/form-layout.types.D3EKzbE7.js.map +1 -0
- package/dist/chunks/generate-uid.NJ8tVoha.js +32 -0
- package/dist/chunks/generate-uid.NJ8tVoha.js.map +1 -0
- package/dist/chunks/get-date-locale.BN8xEjY0.js +1735 -0
- package/dist/chunks/get-date-locale.BN8xEjY0.js.map +1 -0
- package/dist/chunks/get-slot-text.DQlZEsId.js +12 -0
- package/dist/chunks/get-slot-text.DQlZEsId.js.map +1 -0
- package/dist/chunks/grid-layout.BTLE3rac.js +114 -0
- package/dist/chunks/grid-layout.BTLE3rac.js.map +1 -0
- package/dist/chunks/header-with-views.DJSGKRhj.js +2362 -0
- package/dist/chunks/header-with-views.DJSGKRhj.js.map +1 -0
- package/dist/chunks/header.BBnN_HU9.js +253 -0
- package/dist/chunks/header.BBnN_HU9.js.map +1 -0
- package/dist/chunks/i18n.B6g5VX0q.js +3131 -0
- package/dist/chunks/i18n.B6g5VX0q.js.map +1 -0
- package/dist/chunks/image.vue_vue_type_script_setup_true_lang.DQT2oNEF.js +47 -0
- package/dist/chunks/image.vue_vue_type_script_setup_true_lang.DQT2oNEF.js.map +1 -0
- package/dist/chunks/index.BDuTpjD8.js +40 -0
- package/dist/chunks/index.BDuTpjD8.js.map +1 -0
- package/dist/chunks/index.BxBB1rsx.js +15 -0
- package/dist/chunks/index.BxBB1rsx.js.map +1 -0
- package/dist/chunks/index.CWuzEfiV.js +6 -0
- package/dist/chunks/index.CWuzEfiV.js.map +1 -0
- package/dist/chunks/index.DD7TppDb.js +10 -0
- package/dist/chunks/index.DD7TppDb.js.map +1 -0
- package/dist/chunks/index.FNUaPG4G.js +528 -0
- package/dist/chunks/index.FNUaPG4G.js.map +1 -0
- package/dist/chunks/info-icon-with-popover.D6WFtFFY.js +97 -0
- package/dist/chunks/info-icon-with-popover.D6WFtFFY.js.map +1 -0
- package/dist/chunks/info-icon.BYCwlUzk.js +45 -0
- package/dist/chunks/info-icon.BYCwlUzk.js.map +1 -0
- package/dist/chunks/info.HK3R7Drc.js +44 -0
- package/dist/chunks/info.HK3R7Drc.js.map +1 -0
- package/dist/chunks/input-field-password.CtK2VVqL.js +366 -0
- package/dist/chunks/input-field-password.CtK2VVqL.js.map +1 -0
- package/dist/chunks/input-field-phone-number.Cf5nQpfS.js +3106 -0
- package/dist/chunks/input-field-phone-number.Cf5nQpfS.js.map +1 -0
- package/dist/chunks/input-field.C94JL_Qv.js +298 -0
- package/dist/chunks/input-field.C94JL_Qv.js.map +1 -0
- package/dist/chunks/inspector.CxNXHV8C.js +200 -0
- package/dist/chunks/inspector.CxNXHV8C.js.map +1 -0
- package/dist/chunks/inspector.types.DyHwE18g.js +5 -0
- package/dist/chunks/inspector.types.DyHwE18g.js.map +1 -0
- package/dist/chunks/internal-error.BLZodVBE.js +5 -0
- package/dist/chunks/internal-error.BLZodVBE.js.map +1 -0
- package/dist/chunks/internal-error.BmrwJFpR.js +5 -0
- package/dist/chunks/internal-error.BmrwJFpR.js.map +1 -0
- package/dist/chunks/keyboard-navigation.CqgGzfZQ.js +66 -0
- package/dist/chunks/keyboard-navigation.CqgGzfZQ.js.map +1 -0
- package/dist/chunks/layout-row.CZNtHaXd.js +100 -0
- package/dist/chunks/layout-row.CZNtHaXd.js.map +1 -0
- package/dist/chunks/link.CTH1xj0i.js +116 -0
- package/dist/chunks/link.CTH1xj0i.js.map +1 -0
- package/dist/chunks/listbox-option-tag.DNBeYvNM.js +55 -0
- package/dist/chunks/listbox-option-tag.DNBeYvNM.js.map +1 -0
- package/dist/chunks/loading-indicator.DEepb9Wl.js +44 -0
- package/dist/chunks/loading-indicator.DEepb9Wl.js.map +1 -0
- package/dist/chunks/menu.BcXV6WhV.js +768 -0
- package/dist/chunks/menu.BcXV6WhV.js.map +1 -0
- package/dist/chunks/modal-fullscreen.D93NZCBg.js +270 -0
- package/dist/chunks/modal-fullscreen.D93NZCBg.js.map +1 -0
- package/dist/chunks/modal-fullscreen.keys.CMba3hYp.js +5 -0
- package/dist/chunks/modal-fullscreen.keys.CMba3hYp.js.map +1 -0
- package/dist/chunks/modal.vue_vue_type_script_setup_true_lang.B3uzibmr.js +501 -0
- package/dist/chunks/modal.vue_vue_type_script_setup_true_lang.B3uzibmr.js.map +1 -0
- package/dist/chunks/no-results-found.Bg_ZcEid.js +5 -0
- package/dist/chunks/no-results-found.Bg_ZcEid.js.map +1 -0
- package/dist/chunks/no-results-found.BqvYsBR6.js +5 -0
- package/dist/chunks/no-results-found.BqvYsBR6.js.map +1 -0
- package/dist/chunks/notifications-cleared.BMZk37uf.js +5 -0
- package/dist/chunks/notifications-cleared.BMZk37uf.js.map +1 -0
- package/dist/chunks/notifications-cleared.C7W9ZXY7.js +5 -0
- package/dist/chunks/notifications-cleared.C7W9ZXY7.js.map +1 -0
- package/dist/chunks/on-click-outside.D9aY9g8G.js +101 -0
- package/dist/chunks/on-click-outside.D9aY9g8G.js.map +1 -0
- package/dist/chunks/page-not-found.COJLPVaU.js +5 -0
- package/dist/chunks/page-not-found.COJLPVaU.js.map +1 -0
- package/dist/chunks/page-not-found.DWW6W-PZ.js +5 -0
- package/dist/chunks/page-not-found.DWW6W-PZ.js.map +1 -0
- package/dist/chunks/pagination.rrPdG7nK.js +461 -0
- package/dist/chunks/pagination.rrPdG7nK.js.map +1 -0
- package/dist/chunks/payment-method.eazefwm6.js +125 -0
- package/dist/chunks/payment-method.eazefwm6.js.map +1 -0
- package/dist/chunks/payment-method.types.BqtH7RM2.js +5 -0
- package/dist/chunks/payment-method.types.BqtH7RM2.js.map +1 -0
- package/dist/chunks/planned-maintenance.C61sWB9h.js +5 -0
- package/dist/chunks/planned-maintenance.C61sWB9h.js.map +1 -0
- package/dist/chunks/planned-maintenance.jmWYTdet.js +5 -0
- package/dist/chunks/planned-maintenance.jmWYTdet.js.map +1 -0
- package/dist/chunks/popover.KFyR9BXF.js +350 -0
- package/dist/chunks/popover.KFyR9BXF.js.map +1 -0
- package/dist/chunks/popper-container.b5h4zYgT.js +1396 -0
- package/dist/chunks/popper-container.b5h4zYgT.js.map +1 -0
- package/dist/chunks/popper-container.types.BCZMbVFD.js +9 -0
- package/dist/chunks/popper-container.types.BCZMbVFD.js.map +1 -0
- package/dist/chunks/promo-banner.BfXfaCrf.js +126 -0
- package/dist/chunks/promo-banner.BfXfaCrf.js.map +1 -0
- package/dist/chunks/radio-group.Q8q8J7WW.js +321 -0
- package/dist/chunks/radio-group.Q8q8J7WW.js.map +1 -0
- package/dist/chunks/radio-input.DKfQGxtp.js +96 -0
- package/dist/chunks/radio-input.DKfQGxtp.js.map +1 -0
- package/dist/chunks/referrals.BvtT-kQS.js +5 -0
- package/dist/chunks/referrals.BvtT-kQS.js.map +1 -0
- package/dist/chunks/referrals.aX8WZigH.js +5 -0
- package/dist/chunks/referrals.aX8WZigH.js.map +1 -0
- package/dist/chunks/refresh.C20ROVDS.js +29 -0
- package/dist/chunks/refresh.C20ROVDS.js.map +1 -0
- package/dist/chunks/resize.Bqks3WUm.js +15 -0
- package/dist/chunks/resize.Bqks3WUm.js.map +1 -0
- package/dist/chunks/rich-text-editor.Ddt7IVXL.js +6221 -0
- package/dist/chunks/rich-text-editor.Ddt7IVXL.js.map +1 -0
- package/dist/chunks/search-bar.ZidZj4NE.js +114 -0
- package/dist/chunks/search-bar.ZidZj4NE.js.map +1 -0
- package/dist/chunks/search.CW_aTqip.js +44 -0
- package/dist/chunks/search.CW_aTqip.js.map +1 -0
- package/dist/chunks/secondary-nav.Cy2JAzoO.js +138 -0
- package/dist/chunks/secondary-nav.Cy2JAzoO.js.map +1 -0
- package/dist/chunks/segmented-control.CZpx9H-d.js +144 -0
- package/dist/chunks/segmented-control.CZpx9H-d.js.map +1 -0
- package/dist/chunks/segmented-control.types.BHRLV8KU.js +5 -0
- package/dist/chunks/segmented-control.types.BHRLV8KU.js.map +1 -0
- package/dist/chunks/selection-card-group.B2EoXxux.js +474 -0
- package/dist/chunks/selection-card-group.B2EoXxux.js.map +1 -0
- package/dist/chunks/show.ByWWaogc.js +64 -0
- package/dist/chunks/show.ByWWaogc.js.map +1 -0
- package/dist/chunks/sidepanel.CNA3pTXy.js +254 -0
- package/dist/chunks/sidepanel.CNA3pTXy.js.map +1 -0
- package/dist/chunks/sidepanel.keys.R0DKQuYx.js +5 -0
- package/dist/chunks/sidepanel.keys.R0DKQuYx.js.map +1 -0
- package/dist/chunks/status.types.Bdv2zuuh.js +44 -0
- package/dist/chunks/status.types.Bdv2zuuh.js.map +1 -0
- package/dist/chunks/step.7l-t-eN9.js +264 -0
- package/dist/chunks/step.7l-t-eN9.js.map +1 -0
- package/dist/chunks/structured-list-item.CLpfMbkV.js +108 -0
- package/dist/chunks/structured-list-item.CLpfMbkV.js.map +1 -0
- package/dist/chunks/success.DhioLvPD.js +5 -0
- package/dist/chunks/success.DhioLvPD.js.map +1 -0
- package/dist/chunks/success.nNwxJRBS.js +5 -0
- package/dist/chunks/success.nNwxJRBS.js.map +1 -0
- package/dist/chunks/summary-grid.keys.CxTf_FOc.js +6 -0
- package/dist/chunks/summary-grid.keys.CxTf_FOc.js.map +1 -0
- package/dist/chunks/summary-grid.types.BcicwgZm.js +466 -0
- package/dist/chunks/summary-grid.types.BcicwgZm.js.map +1 -0
- package/dist/chunks/tabs.Bn4YIjoy.js +266 -0
- package/dist/chunks/tabs.Bn4YIjoy.js.map +1 -0
- package/dist/chunks/tabs.keys.Bc2pSKRw.js +7 -0
- package/dist/chunks/tabs.keys.Bc2pSKRw.js.map +1 -0
- package/dist/chunks/tag.DwnsmTVq.js +51 -0
- package/dist/chunks/tag.DwnsmTVq.js.map +1 -0
- package/dist/chunks/teleport.CfGWjxe2.js +129 -0
- package/dist/chunks/teleport.CfGWjxe2.js.map +1 -0
- package/dist/chunks/textarea.Dl5TFi8E.js +278 -0
- package/dist/chunks/textarea.Dl5TFi8E.js.map +1 -0
- package/dist/chunks/timeline-item.CcbL86D0.js +567 -0
- package/dist/chunks/timeline-item.CcbL86D0.js.map +1 -0
- package/dist/chunks/toast.Ae5ZoWHb.js +221 -0
- package/dist/chunks/toast.Ae5ZoWHb.js.map +1 -0
- package/dist/chunks/toggle-button.Dv1t15yj.js +80 -0
- package/dist/chunks/toggle-button.Dv1t15yj.js.map +1 -0
- package/dist/chunks/toggle.hoD_i2Ey.js +161 -0
- package/dist/chunks/toggle.hoD_i2Ey.js.map +1 -0
- package/dist/chunks/tooltip.D2o0d8Xf.js +205 -0
- package/dist/chunks/tooltip.D2o0d8Xf.js.map +1 -0
- package/dist/chunks/truncate.BfIl_-71.js +8 -0
- package/dist/chunks/truncate.BfIl_-71.js.map +1 -0
- package/dist/chunks/tutorial.vue_vue_type_script_setup_true_lang.Bcu-t4d8.js +423 -0
- package/dist/chunks/tutorial.vue_vue_type_script_setup_true_lang.Bcu-t4d8.js.map +1 -0
- package/dist/chunks/typography.DN5eC5ch.js +83 -0
- package/dist/chunks/typography.DN5eC5ch.js.map +1 -0
- package/dist/chunks/upload-files.5wQwbfkp.js +5 -0
- package/dist/chunks/upload-files.5wQwbfkp.js.map +1 -0
- package/dist/chunks/upload-files.jTQY6y2X.js +5 -0
- package/dist/chunks/upload-files.jTQY6y2X.js.map +1 -0
- package/dist/chunks/use-bento-toast-controller.D3LA1FCd.js +50 -0
- package/dist/chunks/use-bento-toast-controller.D3LA1FCd.js.map +1 -0
- package/dist/chunks/use-cached-selected-values.Ber7lUiH.js +1475 -0
- package/dist/chunks/use-cached-selected-values.Ber7lUiH.js.map +1 -0
- package/dist/chunks/use-click-outside.BnhTgpSt.js +14 -0
- package/dist/chunks/use-click-outside.BnhTgpSt.js.map +1 -0
- package/dist/chunks/use-country-items.4kZgVg_l.js +30 -0
- package/dist/chunks/use-country-items.4kZgVg_l.js.map +1 -0
- package/dist/chunks/use-country-phon-code.DVgE19zT.js +5610 -0
- package/dist/chunks/use-country-phon-code.DVgE19zT.js.map +1 -0
- package/dist/chunks/use-default-slot-validator.O02rzsob.js +16 -0
- package/dist/chunks/use-default-slot-validator.O02rzsob.js.map +1 -0
- package/dist/chunks/use-expandable-content-height.GkjjbmPy.js +17 -0
- package/dist/chunks/use-expandable-content-height.GkjjbmPy.js.map +1 -0
- package/dist/chunks/use-form-layout-loading.D3lALhtC.js +12 -0
- package/dist/chunks/use-form-layout-loading.D3lALhtC.js.map +1 -0
- package/dist/chunks/use-has-slot.B7eQSabc.js +15 -0
- package/dist/chunks/use-has-slot.B7eQSabc.js.map +1 -0
- package/dist/chunks/warning-filled.DmHh0nYG.js +29 -0
- package/dist/chunks/warning-filled.DmHh0nYG.js.map +1 -0
- package/dist/chunks/wrong-environment.BOsyKdRI.js +5 -0
- package/dist/chunks/wrong-environment.BOsyKdRI.js.map +1 -0
- package/dist/chunks/wrong-environment.BiHTPtbJ.js +5 -0
- package/dist/chunks/wrong-environment.BiHTPtbJ.js.map +1 -0
- package/dist/click-outside.js +5 -0
- package/dist/click-outside.js.map +1 -0
- package/dist/code-snippet.js +8 -0
- package/dist/code-snippet.js.map +1 -0
- package/dist/country.js +12 -0
- package/dist/country.js.map +1 -0
- package/dist/currency.js +6 -0
- package/dist/currency.js.map +1 -0
- package/dist/dashboard-template.js +6 -0
- package/dist/dashboard-template.js.map +1 -0
- package/dist/dashed-underline.js +5 -0
- package/dist/dashed-underline.js.map +1 -0
- package/dist/data-grid-template.js +5 -0
- package/dist/data-grid-template.js.map +1 -0
- package/dist/data-grid.js +11 -0
- package/dist/data-grid.js.map +1 -0
- package/dist/date-picker.js +8 -0
- package/dist/date-picker.js.map +1 -0
- package/dist/date-range-picker.js +8 -0
- package/dist/date-range-picker.js.map +1 -0
- package/dist/date.js +6 -0
- package/dist/date.js.map +1 -0
- package/dist/divider.js +5 -0
- package/dist/divider.js.map +1 -0
- package/dist/dropdown.js +16 -0
- package/dist/dropdown.js.map +1 -0
- package/dist/empty-state.js +8 -0
- package/dist/empty-state.js.map +1 -0
- package/dist/file-uploader.js +5 -0
- package/dist/file-uploader.js.map +1 -0
- package/dist/filter-bar.js +8 -0
- package/dist/filter-bar.js.map +1 -0
- package/dist/focus-trap.js +5 -0
- package/dist/focus-trap.js.map +1 -0
- package/dist/fonts/fonts.css +2 -0
- package/dist/form-layout.js +8 -0
- package/dist/form-layout.js.map +1 -0
- package/dist/header-with-views.js +5 -0
- package/dist/header-with-views.js.map +1 -0
- package/dist/header.js +5 -0
- package/dist/header.js.map +1 -0
- package/dist/image.js +7 -0
- package/dist/image.js.map +1 -0
- package/dist/index.js +371 -0
- package/dist/index.js.map +1 -0
- package/dist/info-icon.js +5 -0
- package/dist/info-icon.js.map +1 -0
- package/dist/input-field-password.js +10 -0
- package/dist/input-field-password.js.map +1 -0
- package/dist/input-field-phone-number.js +5 -0
- package/dist/input-field-phone-number.js.map +1 -0
- package/dist/input-field.js +10 -0
- package/dist/input-field.js.map +1 -0
- package/dist/inspector.js +7 -0
- package/dist/inspector.js.map +1 -0
- package/dist/internal.js +43 -0
- package/dist/internal.js.map +1 -0
- package/dist/layout.js +6 -0
- package/dist/layout.js.map +1 -0
- package/dist/link.js +6 -0
- package/dist/link.js.map +1 -0
- package/dist/loading-indicator.js +6 -0
- package/dist/loading-indicator.js.map +1 -0
- package/dist/menu.js +6 -0
- package/dist/menu.js.map +1 -0
- package/dist/modal-fullscreen.js +6 -0
- package/dist/modal-fullscreen.js.map +1 -0
- package/dist/modal.js +14 -0
- package/dist/modal.js.map +1 -0
- package/dist/pagination.js +5 -0
- package/dist/pagination.js.map +1 -0
- package/dist/payment-method.js +7 -0
- package/dist/payment-method.js.map +1 -0
- package/dist/popover.js +6 -0
- package/dist/popover.js.map +1 -0
- package/dist/popper-container.js +10 -0
- package/dist/popper-container.js.map +1 -0
- package/dist/promo-banner.js +7 -0
- package/dist/promo-banner.js.map +1 -0
- package/dist/radio-group.js +9 -0
- package/dist/radio-group.js.map +1 -0
- package/dist/rich-text-editor.js +5 -0
- package/dist/rich-text-editor.js.map +1 -0
- package/dist/search-bar.js +9 -0
- package/dist/search-bar.js.map +1 -0
- package/dist/secondary-nav.js +5 -0
- package/dist/secondary-nav.js.map +1 -0
- package/dist/segmented-control.js +7 -0
- package/dist/segmented-control.js.map +1 -0
- package/dist/selection-card.js +7 -0
- package/dist/selection-card.js.map +1 -0
- package/dist/sidepanel.js +7 -0
- package/dist/sidepanel.js.map +1 -0
- package/dist/status.js +6 -0
- package/dist/status.js.map +1 -0
- package/dist/stepper.js +8 -0
- package/dist/stepper.js.map +1 -0
- package/dist/structured-list.js +6 -0
- package/dist/structured-list.js.map +1 -0
- package/dist/styles/bento-dark.css +2055 -0
- package/dist/styles/bento-light.css +2054 -0
- package/dist/styles/bento.css +2054 -0
- package/dist/styles/legacy.css +2209 -0
- package/dist/styles/styleguide.css +2109 -0
- package/dist/styles/utility.css +987 -0
- package/dist/summary-grid.js +12 -0
- package/dist/summary-grid.js.map +1 -0
- package/dist/tabs.js +6 -0
- package/dist/tabs.js.map +1 -0
- package/dist/tag.js +6 -0
- package/dist/tag.js.map +1 -0
- package/dist/textarea.js +5 -0
- package/dist/textarea.js.map +1 -0
- package/dist/timeline.js +10 -0
- package/dist/timeline.js.map +1 -0
- package/dist/toast.js +5 -0
- package/dist/toast.js.map +1 -0
- package/dist/toggle.js +7 -0
- package/dist/toggle.js.map +1 -0
- package/dist/tutorial.js +5 -0
- package/dist/tutorial.js.map +1 -0
- package/dist/typography.js +8 -0
- package/dist/typography.js.map +1 -0
- package/dist/use-form-v4.js +8300 -0
- package/dist/use-form-v4.js.map +1 -0
- package/dist/web-types.json +49 -0
- package/package.json +5 -5
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
import { defineComponent as I, useSlots as F, ref as u, computed as d, watch as g, onUnmounted as L, createElementBlock as l, openBlock as a, createVNode as $, createElementVNode as f, unref as s, mergeProps as R, createSlots as H, withCtx as _, renderSlot as i, normalizeClass as C, createCommentVNode as W, createBlock as w, Fragment as M, renderList as U, onMounted as q } from "vue";
|
|
2
|
+
import { B as E } from "./header.BBnN_HU9.js";
|
|
3
|
+
import { a as A, B as G } from "./tabs.Bn4YIjoy.js";
|
|
4
|
+
import { c as J } from "./index.FNUaPG4G.js";
|
|
5
|
+
import { o as K } from "./resize.Bqks3WUm.js";
|
|
6
|
+
import { u as N } from "./use-has-slot.B7eQSabc.js";
|
|
7
|
+
import { _ as P } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
8
|
+
import { B as Q } from "./divider.qUOSAbU6.js";
|
|
9
|
+
import "../assets/dashboard-section.css";
|
|
10
|
+
const X = { class: "b-dashboard-template" }, Y = { class: "b-dashboard-template__container b-dashboard-template__container--tabs" }, Z = {
|
|
11
|
+
key: 2,
|
|
12
|
+
class: "b-dashboard-template__container"
|
|
13
|
+
}, x = {}, tt = /* @__PURE__ */ I({
|
|
14
|
+
...x,
|
|
15
|
+
__name: "dashboard-template",
|
|
16
|
+
props: {
|
|
17
|
+
header: {},
|
|
18
|
+
tabs: { default: void 0 },
|
|
19
|
+
stickyTabs: { type: Boolean, default: !1 },
|
|
20
|
+
stickyFilters: { type: Boolean, default: !1 }
|
|
21
|
+
},
|
|
22
|
+
setup(h) {
|
|
23
|
+
const o = h, r = F(), n = N(r), b = u(), e = u(null), p = u(!1);
|
|
24
|
+
let c = null;
|
|
25
|
+
const v = u(0), m = d(() => e.value && o.stickyFilters), B = d(() => b.value && o.stickyTabs), V = d(() => ({
|
|
26
|
+
"b-dashboard-template__filters--sticky": o.stickyFilters,
|
|
27
|
+
"b-dashboard-template__filters--show-border": m.value && !B.value && p.value
|
|
28
|
+
})), z = d(() => ({
|
|
29
|
+
"b-dashboard-template__top-section--sticky": o.stickyTabs || o.stickyFilters
|
|
30
|
+
})), S = d(() => Object.keys(r).filter((t) => t == null ? void 0 : t.includes("tab-"))), O = (t) => {
|
|
31
|
+
var y, k;
|
|
32
|
+
return ((k = (y = o == null ? void 0 : o.tabs.tabs) == null ? void 0 : y[t]) == null ? void 0 : k.title) ?? `Tab ${t + 1}`;
|
|
33
|
+
}, j = d(() => v.value ? { top: v.value } : void 0), { y: D } = J();
|
|
34
|
+
return g(
|
|
35
|
+
() => e.value,
|
|
36
|
+
() => {
|
|
37
|
+
!c && e.value && (c = K(e.value, () => {
|
|
38
|
+
if (e.value && B.value) {
|
|
39
|
+
const t = e.value.offsetHeight;
|
|
40
|
+
v.value = m.value ? t : 0;
|
|
41
|
+
}
|
|
42
|
+
}));
|
|
43
|
+
}
|
|
44
|
+
), g(
|
|
45
|
+
() => D.value,
|
|
46
|
+
() => {
|
|
47
|
+
var t;
|
|
48
|
+
m.value && (p.value = ((t = e.value) == null ? void 0 : t.getBoundingClientRect().top) === 0);
|
|
49
|
+
}
|
|
50
|
+
), L(() => {
|
|
51
|
+
c == null || c.disconnect();
|
|
52
|
+
}), (t, y) => (a(), l("main", X, [
|
|
53
|
+
$(s(E), R(t.header, {
|
|
54
|
+
variant: "page",
|
|
55
|
+
class: "b-dashboard-template__header"
|
|
56
|
+
}), H({ _: 2 }, [
|
|
57
|
+
s(n)("infoIconTooltipContent") ? {
|
|
58
|
+
name: "infoIconTooltipContent",
|
|
59
|
+
fn: _(() => [
|
|
60
|
+
i(t.$slots, "infoIconTooltipContent", {}, void 0, !0)
|
|
61
|
+
]),
|
|
62
|
+
key: "0"
|
|
63
|
+
} : void 0
|
|
64
|
+
]), 1040),
|
|
65
|
+
f("div", {
|
|
66
|
+
class: C(["b-dashboard-template__top-section", z.value])
|
|
67
|
+
}, [
|
|
68
|
+
s(n)("filters") ? (a(), l("div", {
|
|
69
|
+
key: 0,
|
|
70
|
+
ref_key: "filtersRef",
|
|
71
|
+
ref: e,
|
|
72
|
+
class: C(["b-dashboard-template__filters", V.value]),
|
|
73
|
+
"data-testid": "filters"
|
|
74
|
+
}, [
|
|
75
|
+
i(t.$slots, "filters", {}, void 0, !0)
|
|
76
|
+
], 2)) : W("", !0),
|
|
77
|
+
S.value.length > 1 ? (a(), w(s(A), {
|
|
78
|
+
key: 1,
|
|
79
|
+
ref_key: "tabsRef",
|
|
80
|
+
ref: b,
|
|
81
|
+
"active-tab-index": t.tabs.activeTabIndex,
|
|
82
|
+
sticky: t.stickyTabs,
|
|
83
|
+
"sticky-options": j.value,
|
|
84
|
+
"data-testid": "tabs"
|
|
85
|
+
}, {
|
|
86
|
+
default: _(() => [
|
|
87
|
+
(a(!0), l(M, null, U(S.value, (k, T) => (a(), w(s(G), {
|
|
88
|
+
key: `tab-${T}`,
|
|
89
|
+
title: O(T)
|
|
90
|
+
}, {
|
|
91
|
+
default: _(() => [
|
|
92
|
+
f("div", Y, [
|
|
93
|
+
i(t.$slots, `tab-${T + 1}`, {}, void 0, !0)
|
|
94
|
+
])
|
|
95
|
+
]),
|
|
96
|
+
_: 2
|
|
97
|
+
}, 1032, ["title"]))), 128))
|
|
98
|
+
]),
|
|
99
|
+
_: 3
|
|
100
|
+
}, 8, ["active-tab-index", "sticky", "sticky-options"])) : (a(), l("div", Z, [
|
|
101
|
+
i(t.$slots, "default", {}, void 0, !0)
|
|
102
|
+
]))
|
|
103
|
+
], 2)
|
|
104
|
+
]));
|
|
105
|
+
}
|
|
106
|
+
}), pt = /* @__PURE__ */ P(tt, [["__scopeId", "data-v-20c70d44"]]), et = {
|
|
107
|
+
key: 0,
|
|
108
|
+
class: "b-dashboard-section__controls"
|
|
109
|
+
}, ot = {
|
|
110
|
+
key: 1,
|
|
111
|
+
class: "b-dashboard-section__content"
|
|
112
|
+
}, st = {
|
|
113
|
+
key: 2,
|
|
114
|
+
class: "b-dashboard-section__columns"
|
|
115
|
+
}, at = { class: "b-dashboard-section__content" }, nt = { class: "b-dashboard-section__content" }, it = {}, lt = /* @__PURE__ */ I({
|
|
116
|
+
...it,
|
|
117
|
+
__name: "dashboard-section",
|
|
118
|
+
props: {
|
|
119
|
+
header: {},
|
|
120
|
+
halfWidth: { type: Boolean, default: !1 }
|
|
121
|
+
},
|
|
122
|
+
setup(h) {
|
|
123
|
+
const o = h, r = F(), n = N(r), b = d(() => ({
|
|
124
|
+
"b-dashboard-section--half-width": o.halfWidth
|
|
125
|
+
}));
|
|
126
|
+
return q(() => {
|
|
127
|
+
if ((n("content-col-1") || n("content-col-2")) && o.halfWidth)
|
|
128
|
+
throw new Error("`content-col-1` and `content-col-2` cannot be used with half-width prop");
|
|
129
|
+
}), (e, p) => (a(), l("div", {
|
|
130
|
+
class: C(["b-dashboard-section", b.value])
|
|
131
|
+
}, [
|
|
132
|
+
$(s(E), R(e.header, {
|
|
133
|
+
variant: "component",
|
|
134
|
+
class: "b-dashboard-template__header"
|
|
135
|
+
}), H({ _: 2 }, [
|
|
136
|
+
s(n)("infoIconTooltipContent") ? {
|
|
137
|
+
name: "infoIconTooltipContent",
|
|
138
|
+
fn: _(() => [
|
|
139
|
+
i(e.$slots, "infoIconTooltipContent", {}, void 0, !0)
|
|
140
|
+
]),
|
|
141
|
+
key: "0"
|
|
142
|
+
} : void 0
|
|
143
|
+
]), 1040),
|
|
144
|
+
s(n)("controls") ? (a(), l("div", et, [
|
|
145
|
+
i(e.$slots, "controls", {}, void 0, !0)
|
|
146
|
+
])) : W("", !0),
|
|
147
|
+
!s(n)("content-col-1") && !s(n)("content-col-2") ? (a(), l("div", ot, [
|
|
148
|
+
i(e.$slots, "default", {}, void 0, !0)
|
|
149
|
+
])) : (a(), l("div", st, [
|
|
150
|
+
f("div", at, [
|
|
151
|
+
i(e.$slots, "content-col-1", {}, void 0, !0)
|
|
152
|
+
]),
|
|
153
|
+
f("div", nt, [
|
|
154
|
+
i(e.$slots, "content-col-2", {}, void 0, !0)
|
|
155
|
+
])
|
|
156
|
+
])),
|
|
157
|
+
$(s(Q), { class: "b-dashboard-section__divider" })
|
|
158
|
+
], 2));
|
|
159
|
+
}
|
|
160
|
+
}), vt = /* @__PURE__ */ P(lt, [["__scopeId", "data-v-55110156"]]);
|
|
161
|
+
export {
|
|
162
|
+
vt as a,
|
|
163
|
+
pt as d
|
|
164
|
+
};
|
|
165
|
+
//# sourceMappingURL=dashboard-section.Bq1abySA.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dashboard-section.Bq1abySA.js","sources":["../../../vue2/src/templates/dashboard-template/dashboard-template.vue","../../../vue2/src/templates/dashboard-template/components/dashboard-section/dashboard-section.vue"],"sourcesContent":["<template>\n <main class=\"b-dashboard-template\">\n <bento-header v-bind=\"header\" variant=\"page\" class=\"b-dashboard-template__header\">\n <template v-if=\"hasSlot('infoIconTooltipContent')\" #infoIconTooltipContent>\n <slot name=\"infoIconTooltipContent\" />\n </template>\n </bento-header>\n <div class=\"b-dashboard-template__top-section\" :class=\"dashboardTopSectionConditionalClasses\">\n <div\n v-if=\"hasSlot('filters')\"\n ref=\"filtersRef\"\n class=\"b-dashboard-template__filters\"\n :class=\"dashboardFiltersConditionalClasses\"\n data-testid=\"filters\"\n >\n <slot name=\"filters\" />\n </div>\n\n <bento-tabs\n v-if=\"tabsSlots.length > 1\"\n ref=\"tabsRef\"\n :active-tab-index=\"tabs.activeTabIndex\"\n :sticky=\"stickyTabs\"\n :sticky-options=\"computedTabsOptions\"\n data-testid=\"tabs\"\n >\n <bento-tab v-for=\"(_item, index) in tabsSlots\" :key=\"`tab-${index}`\" :title=\"getTabTitle(index)\">\n <div class=\"b-dashboard-template__container b-dashboard-template__container--tabs\">\n <slot :name=\"`tab-${index + 1}`\" />\n </div>\n </bento-tab>\n </bento-tabs>\n <div v-else class=\"b-dashboard-template__container\">\n <slot />\n </div>\n </div>\n </main>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, onUnmounted, ref, useSlots, watch } from 'vue';\n import { BentoHeader } from '@/components/header';\n import { BentoTab, BentoTabs } from '@/components/tabs';\n import { useWindowScroll } from '@vueuse/core';\n import { observeSizeOfElement } from '@/utils/ts/resize';\n import { useHasSlot } from '@/composables';\n import type { BentoDashboardTemplateHeader, BentoDashboardTemplateTabs } from './dashboard-template.types';\n\n const props = withDefaults(\n defineProps<{\n /**\n * The header that goes to the top of the template\n */\n header: BentoDashboardTemplateHeader;\n\n /**\n * All the tab properties that can be set on the inner tab components.\n * - tabs.activeTabIndex: the currently active tab index.\n * - tabs.tabs: an array of BentoTab props, the first item in the array will affect the `tab-1` slot and so on.\n */\n tabs?: BentoDashboardTemplateTabs;\n\n /**\n * Renders the tabs with a sticky positioning\n */\n stickyTabs?: boolean;\n\n /**\n * Renders the tabs with a sticky positioning\n */\n stickyFilters?: boolean;\n }>(),\n {\n tabs: undefined,\n stickyTabs: false,\n stickyFilters: false,\n }\n );\n\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n\n const tabsRef = ref<InstanceType<typeof BentoTabs>>();\n const filtersRef = ref<HTMLDivElement>(null);\n const isFiltersPinned = ref(false);\n let filtersElementObserver: ResizeObserver | null = null;\n const tabsPosition = ref(0);\n\n const hasStickyFilters = computed(() => filtersRef.value && props.stickyFilters);\n const hasStickyTabs = computed(() => tabsRef.value && props.stickyTabs);\n\n const dashboardFiltersConditionalClasses = computed(() => ({\n 'b-dashboard-template__filters--sticky': props.stickyFilters,\n 'b-dashboard-template__filters--show-border':\n hasStickyFilters.value && !hasStickyTabs.value && isFiltersPinned.value,\n }));\n\n const dashboardTopSectionConditionalClasses = computed(() => ({\n 'b-dashboard-template__top-section--sticky': props.stickyTabs || props.stickyFilters,\n }));\n\n const tabsSlots = computed(() => Object.keys(slots).filter(el => el?.includes('tab-')));\n\n const getTabTitle = (index: number) => props?.tabs.tabs?.[index]?.title ?? `Tab ${index + 1}`;\n\n const computedTabsOptions = computed(() => (tabsPosition.value ? { top: tabsPosition.value } : undefined));\n\n const { y } = useWindowScroll();\n\n watch(\n () => filtersRef.value,\n () => {\n if (!filtersElementObserver && filtersRef.value) {\n filtersElementObserver = observeSizeOfElement(filtersRef.value, () => {\n if (filtersRef.value && hasStickyTabs.value) {\n const filtersHeight = filtersRef.value.offsetHeight;\n tabsPosition.value = hasStickyFilters.value ? filtersHeight : 0;\n }\n });\n }\n }\n );\n\n watch(\n () => y.value,\n () => {\n if (hasStickyFilters.value) {\n isFiltersPinned.value = filtersRef.value?.getBoundingClientRect().top === 0;\n }\n }\n );\n\n onUnmounted(() => {\n filtersElementObserver?.disconnect();\n });\n</script>\n\n<script lang=\"ts\">\n /**\n * Dashboard template is a full page template used to visualize data on pages such as data dashboards and reports.\n *\n * @example\n * import { BentoDashboardTemplate, BentoDashboardSection } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoDashboardTemplate, BentoDashboardSection },\n * template: `\n * <bento-dashboard-template :header=\"{ title: 'Dashboard'}\" :tabs=\"tabs: [{ title: 'Tab 1' }, { title: 'Tab 2' }]\" sticky-tabs sticky-filters>\n * <template #tab-1>\n * <bento-dashboard-section :header=\"{ title: 'Section'}\">\n * <template #controls>\n * // Add your controls here\n * </template>\n * // Add your content here\n * </bento-dashboard-section>\n * </template>\n * <template #tab-2>\n * <bento-dashboard-section :header=\"{ title: 'Section'}\">\n * // Add your content here\n * </bento-dashboard-section>\n * </template>\n * </bento-dashboard-template>\n * `\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./dashboard-template.scss\" />\n","<template>\n <div class=\"b-dashboard-section\" :class=\"conditionalClasses\">\n <bento-header v-bind=\"header\" variant=\"component\" class=\"b-dashboard-template__header\">\n <template v-if=\"hasSlot('infoIconTooltipContent')\" #infoIconTooltipContent>\n <slot name=\"infoIconTooltipContent\" />\n </template>\n </bento-header>\n <div v-if=\"hasSlot('controls')\" class=\"b-dashboard-section__controls\">\n <slot name=\"controls\"></slot>\n </div>\n <div v-if=\"!hasSlot('content-col-1') && !hasSlot('content-col-2')\" class=\"b-dashboard-section__content\">\n <slot name=\"default\"></slot>\n </div>\n <div v-else class=\"b-dashboard-section__columns\">\n <div class=\"b-dashboard-section__content\"><slot name=\"content-col-1\"></slot></div>\n <div class=\"b-dashboard-section__content\"><slot name=\"content-col-2\"></slot></div>\n </div>\n <bento-divider class=\"b-dashboard-section__divider\" />\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, onMounted, useSlots } from 'vue';\n import { BentoHeader } from '@/components/header';\n import { BentoDivider } from '@/components/divider';\n import { useHasSlot } from '@/composables';\n import type { BentoDashboardTemplateHeader } from '../../dashboard-template.types';\n\n const props = withDefaults(\n defineProps<{\n /**\n * The header of the section\n */\n header: BentoDashboardTemplateHeader;\n\n /**\n * Renders the section to take only half of the page\n */\n halfWidth?: boolean;\n }>(),\n {\n halfWidth: false,\n }\n );\n\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n\n const conditionalClasses = computed(() => ({\n 'b-dashboard-section--half-width': props.halfWidth,\n }));\n\n onMounted(() => {\n if ((hasSlot('content-col-1') || hasSlot('content-col-2')) && props.halfWidth) {\n throw new Error('`content-col-1` and `content-col-2` cannot be used with half-width prop');\n }\n });\n</script>\n\n<script lang=\"ts\">\n /**\n * Dashboard section is subcomponent of Dashboard template meant to be used to create the different sections within the page.\n *\n * @example\n * import { BentoDashboardSection } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoDashboardSection },\n * template: `\n * <bento-dashboard-section :header=\"{ title: 'Section' }\" half-width>\n * <template #controls>\n * // Add your controls here\n * </template>\n * // You can render content with two cols\n * <template #content-col-1>\n * // Add your content here\n * </template>\n * <template #content-col-2>\n * // Add your content here\n * </template>\n * // Or you can render full width content by using default slot\n * // Add your content here\n * </bento-dashboard-section>\n * `\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./dashboard-section.scss\" />\n"],"names":["__default__$1","props","__props","slots","useSlots","hasSlot","useHasSlot","tabsRef","ref","filtersRef","isFiltersPinned","filtersElementObserver","tabsPosition","hasStickyFilters","computed","hasStickyTabs","dashboardFiltersConditionalClasses","dashboardTopSectionConditionalClasses","tabsSlots","el","getTabTitle","index","_b","_a","computedTabsOptions","y","useWindowScroll","watch","observeSizeOfElement","filtersHeight","onUnmounted","__default__","conditionalClasses","onMounted"],"mappings":";;;;;;;;;;;;GAqKIA,IAAA,CAAA;;;;;;;;;;AArHA,UAAAC,IAAAC,GA+BAC,IAAAC,EAAA,GACAC,IAAAC,EAAAH,CAAA,GAEAI,IAAAC,EAAA,GACAC,IAAAD,EAAA,IAAA,GACAE,IAAAF,EAAA,EAAA;AACA,QAAAG,IAAA;AACA,UAAAC,IAAAJ,EAAA,CAAA,GAEAK,IAAAC,EAAA,MAAAL,EAAA,SAAAR,EAAA,aAAA,GACAc,IAAAD,EAAA,MAAAP,EAAA,SAAAN,EAAA,UAAA,GAEAe,IAAAF,EAAA,OAAA;AAAA,MAA2D,yCAAAb,EAAA;AAAA,MACR,8CAAAY,EAAA,SAAA,CAAAE,EAAA,SAAAL,EAAA;AAAA,IAEuB,EAAA,GAG1EO,IAAAH,EAAA,OAAA;AAAA,MAA8D,6CAAAb,EAAA,cAAAA,EAAA;AAAA,IACa,EAAA,GAG3EiB,IAAAJ,EAAA,MAAA,OAAA,KAAAX,CAAA,EAAA,OAAA,CAAAgB,MAAAA,KAAA,gBAAAA,EAAA,SAAA,OAAA,CAAA,GAEAC,IAAA,CAAAC,MAAA;;AAAA,eAAAC,KAAAC,IAAAtB,KAAA,gBAAAA,EAAA,KAAA,SAAA,gBAAAsB,EAAAF,OAAA,gBAAAC,EAAA,UAAA,OAAAD,IAAA,CAAA;AAAA,OAEAG,IAAAV,EAAA,MAAAF,EAAA,QAAA,EAAA,KAAAA,EAAA,MAAA,IAAA,MAAA,GAEA,EAAA,GAAAa,EAAA,IAAAC,EAAA;AAEA,WAAAC;AAAA,MAAA,MAAAlB,EAAA;AAAA,MACqB,MAAA;AAEb,QAAA,CAAAE,KAAAF,EAAA,UACIE,IAAAiB,EAAAnB,EAAA,OAAA,MAAA;AACI,cAAAA,EAAA,SAAAM,EAAA,OAAA;AACI,kBAAAc,IAAApB,EAAA,MAAA;AACA,YAAAG,EAAA,QAAAC,EAAA,QAAAgB,IAAA;AAAA,UAA8D;AAAA,QAClE,CAAA;AAAA,MAER;AAAA,IACJ,GAGJF;AAAA,MAAA,MAAAF,EAAA;AAAA,MACY,MAAA;;AAEJ,QAAAZ,EAAA,UACIH,EAAA,UAAAa,IAAAd,EAAA,UAAA,gBAAAc,EAAA,wBAAA,SAAA;AAAA,MACJ;AAAA,IACJ,GAGJO,EAAA,MAAA;AACI,MAAAnB,KAAA,QAAAA,EAAA;AAAA,IAAmC,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mGC/CvCoB,KAAA,CAAA;;;;;;;;AA1DA,UAAA9B,IAAAC,GAiBAC,IAAAC,EAAA,GACAC,IAAAC,EAAAH,CAAA,GAEA6B,IAAAlB,EAAA,OAAA;AAAA,MAA2C,mCAAAb,EAAA;AAAA,IACE,EAAA;AAG7C,WAAAgC,EAAA,MAAA;AACI,WAAA5B,EAAA,eAAA,KAAAA,EAAA,eAAA,MAAAJ,EAAA;AACI,cAAA,IAAA,MAAA,yEAAA;AAAA,IACJ,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { defineComponent as g, useSlots as b, ref as l, computed as f, watch as E, withDirectives as D, createElementBlock as I, openBlock as m, renderSlot as v, createBlock as k, createCommentVNode as w, unref as t, withCtx as s, createVNode as h, createTextVNode as C, toDisplayString as y } from "vue";
|
|
2
|
+
import { B as N } from "./popover.KFyR9BXF.js";
|
|
3
|
+
import "./events.FNmSWp_P.js";
|
|
4
|
+
import { B as V } from "./tooltip.D2o0d8Xf.js";
|
|
5
|
+
import { B as z } from "./typography.DN5eC5ch.js";
|
|
6
|
+
import { u as F } from "./use-has-slot.B7eQSabc.js";
|
|
7
|
+
import { B as L } from "./teleport.CfGWjxe2.js";
|
|
8
|
+
import { _ as M } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
9
|
+
import "../assets/dashed-underline.css";
|
|
10
|
+
const A = {}, G = /* @__PURE__ */ g({
|
|
11
|
+
...A,
|
|
12
|
+
__name: "dashed-underline",
|
|
13
|
+
props: {
|
|
14
|
+
popoverText: { default: null },
|
|
15
|
+
popoverPosition: { default: "top" },
|
|
16
|
+
popoverSize: { default: "fit-content" },
|
|
17
|
+
teleport: { default: () => ({
|
|
18
|
+
disabled: !0
|
|
19
|
+
}) },
|
|
20
|
+
tooltipText: { default: null },
|
|
21
|
+
tooltipPosition: { default: "top" }
|
|
22
|
+
},
|
|
23
|
+
setup(T) {
|
|
24
|
+
const a = T, B = b(), S = F(B), o = l(null), r = l(!1), n = l(), i = () => {
|
|
25
|
+
r.value = !0, n.value && clearTimeout(n.value);
|
|
26
|
+
}, p = () => {
|
|
27
|
+
const e = setTimeout(() => {
|
|
28
|
+
r.value = !1;
|
|
29
|
+
}, 200);
|
|
30
|
+
n.value = e;
|
|
31
|
+
}, _ = () => {
|
|
32
|
+
i();
|
|
33
|
+
}, P = (e) => {
|
|
34
|
+
(!o.value || !((e == null ? void 0 : e.relatedTarget) instanceof Element) || !o.value.contains(e.relatedTarget)) && p();
|
|
35
|
+
}, u = f(() => a.popoverText || S("popover-content")), O = f(() => !a.tooltipText && !u.value);
|
|
36
|
+
return E(
|
|
37
|
+
O,
|
|
38
|
+
(e) => {
|
|
39
|
+
if (e)
|
|
40
|
+
throw new Error(
|
|
41
|
+
"BentoDashedUnderline requires either a tooltip or a popover to be configured. Check the docs for more info."
|
|
42
|
+
);
|
|
43
|
+
},
|
|
44
|
+
{ immediate: !0 }
|
|
45
|
+
), (e, U) => {
|
|
46
|
+
var d, c;
|
|
47
|
+
return D((m(), I("span", {
|
|
48
|
+
ref_key: "element",
|
|
49
|
+
ref: o,
|
|
50
|
+
class: "b-dashed-underline",
|
|
51
|
+
tabindex: "0",
|
|
52
|
+
onMouseenter: i,
|
|
53
|
+
onMouseleave: p,
|
|
54
|
+
onFocus: _,
|
|
55
|
+
onFocusout: P
|
|
56
|
+
}, [
|
|
57
|
+
v(e.$slots, "default", {}, void 0, !0),
|
|
58
|
+
o.value && u.value ? (m(), k(t(L), {
|
|
59
|
+
key: 0,
|
|
60
|
+
disabled: (d = e.teleport) == null ? void 0 : d.disabled,
|
|
61
|
+
to: (c = e.teleport) == null ? void 0 : c.to
|
|
62
|
+
}, {
|
|
63
|
+
default: s(() => [
|
|
64
|
+
h(t(N), {
|
|
65
|
+
open: r.value,
|
|
66
|
+
"target-element": o.value,
|
|
67
|
+
position: e.popoverPosition,
|
|
68
|
+
role: "tooltip",
|
|
69
|
+
"fit-content": e.popoverSize === "fit-content" || void 0,
|
|
70
|
+
large: e.popoverSize === "large" || void 0,
|
|
71
|
+
small: e.popoverSize === "small" || void 0,
|
|
72
|
+
"disable-focus-trap": ""
|
|
73
|
+
}, {
|
|
74
|
+
default: s(() => [
|
|
75
|
+
v(e.$slots, "popover-content", {}, () => [
|
|
76
|
+
h(t(z), null, {
|
|
77
|
+
default: s(() => [
|
|
78
|
+
C(y(e.popoverText), 1)
|
|
79
|
+
]),
|
|
80
|
+
_: 1
|
|
81
|
+
})
|
|
82
|
+
], !0)
|
|
83
|
+
]),
|
|
84
|
+
_: 3
|
|
85
|
+
}, 8, ["open", "target-element", "position", "fit-content", "large", "small"])
|
|
86
|
+
]),
|
|
87
|
+
_: 3
|
|
88
|
+
}, 8, ["disabled", "to"])) : w("", !0)
|
|
89
|
+
], 32)), [
|
|
90
|
+
[t(V), e.tooltipText, e.tooltipPosition]
|
|
91
|
+
]);
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
}), Q = /* @__PURE__ */ M(G, [["__scopeId", "data-v-8af7ac01"]]);
|
|
95
|
+
export {
|
|
96
|
+
Q as B
|
|
97
|
+
};
|
|
98
|
+
//# sourceMappingURL=dashed-underline.DweJIpuJ.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dashed-underline.DweJIpuJ.js","sources":["../../../vue2/src/components/dashed-underline/dashed-underline.vue"],"sourcesContent":["<template>\n <span\n ref=\"element\"\n v-bento-tooltip-directive:[tooltipPosition]=\"tooltipText\"\n class=\"b-dashed-underline\"\n tabindex=\"0\"\n @mouseenter=\"openPopover\"\n @mouseleave=\"closePopover\"\n @focus=\"infoIconOnFocus\"\n @focusout=\"infoIconOnFocusOut\"\n >\n <slot></slot>\n <bento-teleport v-if=\"element && hasPopover\" :disabled=\"teleport?.disabled\" :to=\"teleport?.to\">\n <bento-popover\n :open=\"isOpen\"\n :target-element=\"element\"\n :position=\"popoverPosition\"\n role=\"tooltip\"\n :fit-content=\"popoverSize === 'fit-content' || undefined\"\n :large=\"popoverSize === 'large' || undefined\"\n :small=\"popoverSize === 'small' || undefined\"\n disable-focus-trap\n >\n <slot name=\"popover-content\">\n <bento-typography>\n {{ popoverText }}\n </bento-typography>\n </slot>\n </bento-popover>\n </bento-teleport>\n </span>\n</template>\n\n<script lang=\"ts\" setup>\n import { computed, ref, useSlots, watch } from 'vue';\n import { BentoPopover } from '@/components/popover';\n import { BentoTooltipDirective as vBentoTooltipDirective } from '@/directives/tooltip/index';\n import { BentoTypography } from '@/components/typography';\n import { useHasSlot } from '@/composables';\n import { BentoTeleport } from '@/internal';\n import { BentoDashedUnderlineProps } from './dashed-underline.types';\n\n const CLOSING_POPOVER_DELAY_MS = 200;\n\n const props = withDefaults(defineProps<BentoDashedUnderlineProps>(), {\n popoverText: null,\n popoverPosition: 'top',\n popoverSize: 'fit-content',\n teleport: () => ({\n disabled: true,\n }),\n tooltipText: null,\n tooltipPosition: 'top',\n });\n\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n\n const element = ref<HTMLSpanElement>(null);\n const isOpen = ref(false);\n\n const closingTimeOutId = ref();\n\n const openPopover = () => {\n isOpen.value = true;\n if (closingTimeOutId.value) {\n clearTimeout(closingTimeOutId.value);\n }\n };\n\n const closePopover = () => {\n // We want to delay closing for a couple of seconds so\n // it doesn't flicker if a user hovers over the icon and then inside the popover.\n const timeOutId = setTimeout(() => {\n isOpen.value = false;\n }, CLOSING_POPOVER_DELAY_MS);\n closingTimeOutId.value = timeOutId;\n };\n\n const infoIconOnFocus = () => {\n openPopover();\n };\n\n /**\n * Only close popover on blur if the newly focus element is not a child of this element\n * @param e - the event that contains the newly focused element\n */\n const infoIconOnFocusOut = (e: FocusEvent) => {\n if (!element.value || !(e?.relatedTarget instanceof Element) || !element.value.contains(e.relatedTarget)) {\n closePopover();\n }\n };\n\n const hasPopover = computed(() => props.popoverText || hasSlot('popover-content'));\n\n const shouldShowTooltipPopoverError = computed(() => !props.tooltipText && !hasPopover.value);\n\n watch(\n shouldShowTooltipPopoverError,\n value => {\n if (value) {\n throw new Error(\n 'BentoDashedUnderline requires either a tooltip or a popover to be configured. Check the docs for more info.'\n );\n }\n },\n { immediate: true }\n );\n</script>\n\n<script lang=\"ts\">\n /**\n * The dashed underline serves as a visual cue to indicate that additional information is available for\n * a specific word or phrase without adding an icon.\n *\n * @example\n * import { BentoDashedUnderline } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoDashedUnderline },\n * template: `\n * <bento-dashed-underline>\n * annotated text\n * </bento-dashed-underline>\n * `\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./dashed-underline.scss\" />\n"],"names":["__default__","props","__props","slots","useSlots","hasSlot","useHasSlot","element","ref","isOpen","closingTimeOutId","openPopover","closePopover","timeOutId","infoIconOnFocus","infoIconOnFocusOut","hasPopover","computed","shouldShowTooltipPopoverError","watch","value"],"mappings":";;;;;;;;;AA+HI,MAAAA,IAAA,CAAA;;;;;;;;;;;;;;AAnFA,UAAAC,IAAAC,GAWAC,IAAAC,EAAA,GACAC,IAAAC,EAAAH,CAAA,GAEAI,IAAAC,EAAA,IAAA,GACAC,IAAAD,EAAA,EAAA,GAEAE,IAAAF,EAAA,GAEAG,IAAA,MAAA;AACI,MAAAF,EAAA,QAAA,IACAC,EAAA,SACI,aAAAA,EAAA,KAAA;AAAA,IACJ,GAGJE,IAAA,MAAA;AAGI,YAAAC,IAAA,WAAA,MAAA;AACI,QAAAJ,EAAA,QAAA;AAAA,MAAe,GAAA,GAAA;AAEnB,MAAAC,EAAA,QAAAG;AAAA,IAAyB,GAG7BC,IAAA,MAAA;AACI,MAAAH,EAAA;AAAA,IAAY,GAOhBI,IAAA,CAAA,MAAA;AACI,OAAA,CAAAR,EAAA,SAAA,GAAA,uBAAA,0BAAA,YAAA,CAAAA,EAAA,MAAA,SAAA,EAAA,aAAA,MACIK,EAAA;AAAA,IACJ,GAGJI,IAAAC,EAAA,MAAAhB,EAAA,eAAAI,EAAA,iBAAA,CAAA,GAEAa,IAAAD,EAAA,MAAA,CAAAhB,EAAA,eAAA,CAAAe,EAAA,KAAA;AAEA,WAAAG;AAAA,MAAAD;AAAA,MACI,CAAAE,MAAA;AAEI,YAAAA;AACI,gBAAA,IAAA;AAAA,YAAU;AAAA,UACN;AAAA,MAER;AAAA,MACJ,EAAA,WAAA,GAAA;AAAA,IACkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import { defineComponent as G, useSlots as H, ref as f, computed as o, provide as O, createElementBlock as m, openBlock as r, createVNode as T, unref as n, mergeProps as _, toHandlers as j, withCtx as c, renderSlot as l, createCommentVNode as x, createBlock as C, createSlots as N, normalizeClass as P, Fragment as w, renderList as L, toRef as g } from "vue";
|
|
2
|
+
import { B as V } from "./header.BBnN_HU9.js";
|
|
3
|
+
import { B as q } from "./inspector.CxNXHV8C.js";
|
|
4
|
+
import { a as z, B as F } from "./tabs.Bn4YIjoy.js";
|
|
5
|
+
import { u as J } from "./use-has-slot.B7eQSabc.js";
|
|
6
|
+
import { D as K } from "./data-grid-template.keys.2_AkxuNT.js";
|
|
7
|
+
import { _ as M } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
8
|
+
import "../assets/data-grid-template.css";
|
|
9
|
+
const U = { class: "b-data-grid-template" }, Y = {}, Q = /* @__PURE__ */ G({
|
|
10
|
+
...Y,
|
|
11
|
+
__name: "data-grid-template",
|
|
12
|
+
props: {
|
|
13
|
+
/**
|
|
14
|
+
* The header that goes to the top of the template
|
|
15
|
+
*/
|
|
16
|
+
header: {
|
|
17
|
+
type: Object,
|
|
18
|
+
required: !0
|
|
19
|
+
},
|
|
20
|
+
/**
|
|
21
|
+
* All the tab properties that can be set on the inner tab components.
|
|
22
|
+
* - tabs.activeTabIndex: the currenly active tab index.
|
|
23
|
+
* - tabs.tabs: an array of BentoTab props, the first item in the array will affect the `tab-1` slot and so on.
|
|
24
|
+
*/
|
|
25
|
+
tabs: {
|
|
26
|
+
type: Object,
|
|
27
|
+
default: void 0
|
|
28
|
+
},
|
|
29
|
+
/**
|
|
30
|
+
* Renders the additional content slot with a sticky positioning
|
|
31
|
+
*/
|
|
32
|
+
stickyAdditionalContent: {
|
|
33
|
+
type: Boolean,
|
|
34
|
+
default: !1
|
|
35
|
+
},
|
|
36
|
+
/**
|
|
37
|
+
* Renders the tabs with a sticky positioning
|
|
38
|
+
*/
|
|
39
|
+
stickyTabs: {
|
|
40
|
+
type: Boolean,
|
|
41
|
+
default: !1
|
|
42
|
+
},
|
|
43
|
+
/**
|
|
44
|
+
* All the inspector properties that can be set on the inner inspector component.
|
|
45
|
+
*/
|
|
46
|
+
inspector: {
|
|
47
|
+
type: Object,
|
|
48
|
+
default: void 0
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
emits: ["update:tabs", "update:is-open:inspector", "update:active-page:inspector", "expand:inspector"],
|
|
52
|
+
setup(s, { emit: I }) {
|
|
53
|
+
const e = s, b = H(), v = J(b), p = I, y = f(null), i = f(null), R = f(null), B = o(() => ({
|
|
54
|
+
"b-data-grid-template__additional-content--sticky": e.stickyAdditionalContent
|
|
55
|
+
})), h = o(() => ({
|
|
56
|
+
title: "",
|
|
57
|
+
...e.inspector
|
|
58
|
+
})), S = o(() => {
|
|
59
|
+
var t;
|
|
60
|
+
return (t = i == null ? void 0 : i.value) == null ? void 0 : t.offsetHeight;
|
|
61
|
+
}), A = o(() => {
|
|
62
|
+
var t, a;
|
|
63
|
+
return (a = (t = y.value) == null ? void 0 : t.$refs) == null ? void 0 : a.tablistwrapper;
|
|
64
|
+
}), k = o(() => Object.keys(b).filter((t) => t == null ? void 0 : t.includes("tab-"))), D = o(() => ({
|
|
65
|
+
"update:is-open": (t) => p("update:is-open:inspector", t),
|
|
66
|
+
"update:active-page": (t) => p("update:active-page:inspector", t),
|
|
67
|
+
expand: (t) => p("expand:inspector", t)
|
|
68
|
+
})), $ = (t) => {
|
|
69
|
+
p("update:tabs", { ...e.tabs, activeTabIndex: t });
|
|
70
|
+
}, E = (t) => {
|
|
71
|
+
var a, d;
|
|
72
|
+
return ((d = (a = e == null ? void 0 : e.tabs.tabs) == null ? void 0 : a[t]) == null ? void 0 : d.title) ?? `Tab ${t + 1}`;
|
|
73
|
+
};
|
|
74
|
+
return O(K, () => {
|
|
75
|
+
const a = g(e, "stickyTabs"), d = g(e, "stickyAdditionalContent");
|
|
76
|
+
return {
|
|
77
|
+
isDataGridTemplate: !0,
|
|
78
|
+
stickyTabs: a,
|
|
79
|
+
tabsRef: A,
|
|
80
|
+
stickyAdditionalContent: d,
|
|
81
|
+
additionalContentSlotRef: i
|
|
82
|
+
};
|
|
83
|
+
}), (t, a) => (r(), m("main", U, [
|
|
84
|
+
T(n(q), _(h.value, {
|
|
85
|
+
ref_key: "inspectorRef",
|
|
86
|
+
ref: R
|
|
87
|
+
}, j(D.value)), {
|
|
88
|
+
page: c(() => [
|
|
89
|
+
T(n(V), _(s.header, {
|
|
90
|
+
variant: "component",
|
|
91
|
+
class: "b-data-grid-template__header"
|
|
92
|
+
}), N({ _: 2 }, [
|
|
93
|
+
n(v)("infoIconTooltipContent") ? {
|
|
94
|
+
name: "infoIconTooltipContent",
|
|
95
|
+
fn: c(() => [
|
|
96
|
+
l(t.$slots, "infoIconTooltipContent", {}, void 0, !0)
|
|
97
|
+
]),
|
|
98
|
+
key: "0"
|
|
99
|
+
} : void 0
|
|
100
|
+
]), 1040),
|
|
101
|
+
n(v)("additionalContent") ? (r(), m("div", {
|
|
102
|
+
key: 0,
|
|
103
|
+
ref_key: "additionalContentRef",
|
|
104
|
+
ref: i,
|
|
105
|
+
class: P(["b-data-grid-template__additional-content", B.value])
|
|
106
|
+
}, [
|
|
107
|
+
l(t.$slots, "additionalContent", {}, void 0, !0)
|
|
108
|
+
], 2)) : x("", !0),
|
|
109
|
+
k.value.length > 1 ? (r(), C(n(z), {
|
|
110
|
+
key: 1,
|
|
111
|
+
ref_key: "tabsRef",
|
|
112
|
+
ref: y,
|
|
113
|
+
"active-tab-index": s.tabs.activeTabIndex,
|
|
114
|
+
sticky: s.stickyTabs,
|
|
115
|
+
"sticky-options": s.stickyAdditionalContent ? { top: S.value } : null,
|
|
116
|
+
"onUpdate:activeTabIndex": $
|
|
117
|
+
}, {
|
|
118
|
+
default: c(() => [
|
|
119
|
+
(r(!0), m(w, null, L(k.value, (d, u) => (r(), C(n(F), {
|
|
120
|
+
key: `tab-${u}`,
|
|
121
|
+
title: E(u)
|
|
122
|
+
}, {
|
|
123
|
+
default: c(() => [
|
|
124
|
+
l(t.$slots, `tab-${u + 1}`, {}, void 0, !0)
|
|
125
|
+
]),
|
|
126
|
+
_: 2
|
|
127
|
+
}, 1032, ["title"]))), 128))
|
|
128
|
+
]),
|
|
129
|
+
_: 3
|
|
130
|
+
}, 8, ["active-tab-index", "sticky", "sticky-options"])) : l(t.$slots, "default", { key: 2 }, void 0, !0)
|
|
131
|
+
]),
|
|
132
|
+
content: c(() => [
|
|
133
|
+
l(t.$slots, "inspector-content", {}, void 0, !0)
|
|
134
|
+
]),
|
|
135
|
+
_: 3
|
|
136
|
+
}, 16)
|
|
137
|
+
]));
|
|
138
|
+
}
|
|
139
|
+
}), it = /* @__PURE__ */ M(Q, [["__scopeId", "data-v-899812f2"]]);
|
|
140
|
+
export {
|
|
141
|
+
it as d
|
|
142
|
+
};
|
|
143
|
+
//# sourceMappingURL=data-grid-template.UkERMC7S.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data-grid-template.UkERMC7S.js","sources":["../../../vue2/src/templates/data-grid-template/data-grid-template.vue"],"sourcesContent":["<template>\n <main class=\"b-data-grid-template\">\n <bento-inspector v-bind=\"computedInspectorProps\" ref=\"inspectorRef\" v-on=\"inspectorEvents\">\n <template #page>\n <bento-header v-bind=\"header\" variant=\"component\" class=\"b-data-grid-template__header\">\n <template v-if=\"hasSlot('infoIconTooltipContent')\" #infoIconTooltipContent>\n <slot name=\"infoIconTooltipContent\" />\n </template>\n </bento-header>\n\n <div\n v-if=\"hasSlot('additionalContent')\"\n ref=\"additionalContentRef\"\n class=\"b-data-grid-template__additional-content\"\n :class=\"additionalContentConditionalClasses\"\n >\n <slot name=\"additionalContent\" />\n </div>\n\n <bento-tabs\n v-if=\"tabsSlots.length > 1\"\n ref=\"tabsRef\"\n :active-tab-index=\"tabs.activeTabIndex\"\n :sticky=\"stickyTabs\"\n :sticky-options=\"stickyAdditionalContent ? { top: computedStickyAdditionalContentHeight } : null\"\n @update:active-tab-index=\"emitTabs\"\n >\n <bento-tab v-for=\"(_item, index) in tabsSlots\" :key=\"`tab-${index}`\" :title=\"getTabTitle(index)\">\n <slot :name=\"`tab-${index + 1}`\" />\n </bento-tab>\n </bento-tabs>\n\n <slot v-else />\n </template>\n\n <template #content>\n <slot name=\"inspector-content\" />\n </template>\n </bento-inspector>\n </main>\n</template>\n\n<script setup lang=\"ts\">\n import { BentoHeader } from '@/components/header';\n import { BentoInspector } from '@/components/inspector';\n import { BentoTab, BentoTabs } from '@/components/tabs';\n import { useHasSlot } from '@/composables';\n import { computed, PropType, provide, Ref, ref, toRef, UnwrapRef, useSlots } from 'vue';\n import { DATA_GRID_REGISTER_TEMPLATE_INJECTION_KEY } from './data-grid-template.keys';\n import type {\n BentoDataGridTemplateDataGrid,\n BentoDataGridTemplateHeader,\n BentoDataGridTemplateInspector,\n BentoDataGridTemplateTabs,\n } from './data-grid-template.types';\n\n const props = defineProps({\n /**\n * The header that goes to the top of the template\n */\n header: {\n type: Object as PropType<BentoDataGridTemplateHeader>,\n required: true,\n },\n\n /**\n * All the tab properties that can be set on the inner tab components.\n * - tabs.activeTabIndex: the currenly active tab index.\n * - tabs.tabs: an array of BentoTab props, the first item in the array will affect the `tab-1` slot and so on.\n */\n tabs: {\n type: Object as PropType<BentoDataGridTemplateTabs>,\n default: undefined,\n },\n\n /**\n * Renders the additional content slot with a sticky positioning\n */\n stickyAdditionalContent: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Renders the tabs with a sticky positioning\n */\n stickyTabs: {\n type: Boolean,\n default: false,\n },\n\n /**\n * All the inspector properties that can be set on the inner inspector component.\n */\n inspector: {\n type: Object as PropType<BentoDataGridTemplateInspector>,\n default: undefined,\n },\n });\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n\n const emit = defineEmits<{\n /**\n * Emits update event when activeTabIndex changes internally\n */\n (e: 'update:tabs', value: BentoDataGridTemplateTabs): void;\n\n /**\n * Emits update event when the inspector's `isOpen` state changes\n */\n (e: 'update:is-open:inspector', value: boolean): void;\n\n /**\n * Emits update event when the inspector's `activePage` changes\n */\n (e: 'update:active-page:inspector', value: string): void;\n\n /**\n * Emits event when the inspector's expand button is clicked\n */\n (e: 'expand:inspector', value: boolean): void;\n }>();\n\n const tabsRef = ref(null);\n const additionalContentRef = ref(null);\n const inspectorRef = ref(null);\n\n const additionalContentConditionalClasses = computed(() => ({\n 'b-data-grid-template__additional-content--sticky': props.stickyAdditionalContent,\n }));\n\n const computedInspectorProps = computed(() => ({\n title: '',\n ...props.inspector,\n }));\n\n const computedStickyAdditionalContentHeight = computed(() => additionalContentRef?.value?.offsetHeight);\n\n const computedTabsRef = computed(() => tabsRef.value?.$refs?.tablistwrapper);\n\n const tabsSlots = computed(() => Object.keys(slots).filter(el => el?.includes('tab-')));\n\n const inspectorEvents = computed(() => ({\n 'update:is-open': (value: boolean) => emit('update:is-open:inspector', value),\n 'update:active-page': (value: string) => emit('update:active-page:inspector', value),\n expand: (value: boolean) => emit('expand:inspector', value),\n }));\n\n const emitTabs = (newActiveTabIndex: number) => {\n emit('update:tabs', { ...props.tabs, activeTabIndex: newActiveTabIndex });\n };\n\n const getTabTitle = (index: number) => props?.tabs.tabs?.[index]?.title ?? `Tab ${index + 1}`;\n\n const registerDatagridInDataGridTemplate: BentoDataGridTemplateDataGrid = () => {\n const isDataGridTemplate = true;\n const stickyTabs: Ref<boolean> = toRef(props, 'stickyTabs');\n const stickyAdditionalContent: Ref<boolean> = toRef(props, 'stickyAdditionalContent');\n const tabsRef: Ref<UnwrapRef<HTMLDivElement>> | null = computedTabsRef;\n const additionalContentSlotRef: Ref<UnwrapRef<HTMLDivElement>> | null = additionalContentRef;\n\n // return values to the Tab component\n return {\n isDataGridTemplate,\n stickyTabs,\n tabsRef,\n stickyAdditionalContent,\n additionalContentSlotRef,\n };\n };\n\n provide(DATA_GRID_REGISTER_TEMPLATE_INJECTION_KEY, registerDatagridInDataGridTemplate);\n</script>\n\n<script lang=\"ts\">\n /**\n * The data grid template is a restrictive, full-page data grid used to display information from a data set.\n * You can use this data grid template when your user needs a clear overview of data or a way of organizing and analyzing the data in their own way.\n * This data grid template shouldn’t be confused with the data grid.\n *\n * @example\n * import { BentoDataGridTemplate } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoDataGridTemplate },\n * template: `\n * // If you want to display multiple data grids in the same page (they will be rendered in different tabs)\n * <bento-data-grid-template>\n * <template #tab-1><bento-data-grid v-bind=\"your-data-grid-args\" title=\"Title for tab 1\"/></template>\n * <template #tab-2><bento-data-grid v-bind=\"your-data-grid-args\" title=\"Title for tab 2\"/></template>\n * </bento-data-grid-template>\n * // Alternatively, if you only want to pass one data grid to your template:\n * <bento-data-grid-template>\n * <template #default><bento-data-grid v-bind=\"your-data-grid-args\"/></template>\n * </bento-data-grid-template>\n * `\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./data-grid-template.scss\" />\n"],"names":["__default__","props","__props","slots","useSlots","hasSlot","useHasSlot","emit","__emit","tabsRef","ref","additionalContentRef","inspectorRef","additionalContentConditionalClasses","computed","computedInspectorProps","computedStickyAdditionalContentHeight","_a","computedTabsRef","_b","tabsSlots","el","inspectorEvents","value","emitTabs","newActiveTabIndex","getTabTitle","index","provide","DATA_GRID_REGISTER_TEMPLATE_INJECTION_KEY","stickyTabs","toRef","stickyAdditionalContent"],"mappings":";;;;;;;;6CAuMIA,IAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA/IA,UAAAC,IAAAC,GA2CAC,IAAAC,EAAA,GACAC,IAAAC,EAAAH,CAAA,GAEAI,IAAAC,GAsBAC,IAAAC,EAAA,IAAA,GACAC,IAAAD,EAAA,IAAA,GACAE,IAAAF,EAAA,IAAA,GAEAG,IAAAC,EAAA,OAAA;AAAA,MAA4D,oDAAAb,EAAA;AAAA,IACE,EAAA,GAG9Dc,IAAAD,EAAA,OAAA;AAAA,MAA+C,OAAA;AAAA,MACpC,GAAAb,EAAA;AAAA,IACE,EAAA,GAGbe,IAAAF,EAAA,MAAA;;AAAA,cAAAG,IAAAN,KAAA,gBAAAA,EAAA,UAAA,gBAAAM,EAAA;AAAA,KAAA,GAEAC,IAAAJ,EAAA,MAAA;;AAAA,cAAAK,KAAAF,IAAAR,EAAA,UAAA,gBAAAQ,EAAA,UAAA,gBAAAE,EAAA;AAAA,KAAA,GAEAC,IAAAN,EAAA,MAAA,OAAA,KAAAX,CAAA,EAAA,OAAA,CAAAkB,MAAAA,KAAA,gBAAAA,EAAA,SAAA,OAAA,CAAA,GAEAC,IAAAR,EAAA,OAAA;AAAA,MAAwC,kBAAA,CAAAS,MAAAhB,EAAA,4BAAAgB,CAAA;AAAA,MACwC,sBAAA,CAAAA,MAAAhB,EAAA,gCAAAgB,CAAA;AAAA,MACO,QAAA,CAAAA,MAAAhB,EAAA,oBAAAgB,CAAA;AAAA,IACzB,EAAA,GAG9DC,IAAA,CAAAC,MAAA;AACI,MAAAlB,EAAA,eAAA,EAAA,GAAAN,EAAA,MAAA,gBAAAwB,EAAA,CAAA;AAAA,IAAwE,GAG5EC,IAAA,CAAAC,MAAA;;AAAA,eAAAR,KAAAF,IAAAhB,KAAA,gBAAAA,EAAA,KAAA,SAAA,gBAAAgB,EAAAU,OAAA,gBAAAR,EAAA,UAAA,OAAAQ,IAAA,CAAA;AAAA;AAmBA,WAAAC,EAAAC,GAjBA,MAAA;AAEI,YAAAC,IAAAC,EAAA9B,GAAA,YAAA,GACA+B,IAAAD,EAAA9B,GAAA,yBAAA;AAKA,aAAA;AAAA,QAAO;AAAA,QACH,YAAA6B;AAAA,QACA,SANJZ;AAAA,QAOI,yBAAAc;AAAA,QACA,0BAPJrB;AAAA,MAQI;AAAA,IACJ,CAGJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data-grid-template.keys.2_AkxuNT.js","sources":["../../../vue2/src/templates/data-grid-template/data-grid-template.keys.ts"],"sourcesContent":["export const DATA_GRID_REGISTER_TEMPLATE_INJECTION_KEY = Symbol('data-grid-template injection key');\n"],"names":["DATA_GRID_REGISTER_TEMPLATE_INJECTION_KEY"],"mappings":"AAAa,MAAAA,IAA4C,OAAO,kCAAkC;"}
|