@adyen/bento-vue3 1.81.0 → 1.82.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/dist/@types/components.d.ts +196 -0
- package/dist/@types/index.d.ts +17825 -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/ai-button.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/field-label.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-meta.css +1 -0
- package/dist/assets/header-with-views.css +1 -0
- package/dist/assets/header.css +1 -0
- package/dist/assets/index.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/modal-fullscreen.css +1 -0
- package/dist/assets/pagination.css +1 -0
- package/dist/assets/payment-method.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/tab.css +1 -0
- package/dist/assets/tag.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.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 +18 -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/_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.DHyAfeAu.js +143 -0
- package/dist/chunks/accordion-item.DHyAfeAu.js.map +1 -0
- package/dist/chunks/action-bar.BsLU4Bp3.js +202 -0
- package/dist/chunks/action-bar.BsLU4Bp3.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/ai-button.DaRuea3x.js +93 -0
- package/dist/chunks/ai-button.DaRuea3x.js.map +1 -0
- package/dist/chunks/alert.C2pusd-_.js +171 -0
- package/dist/chunks/alert.C2pusd-_.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.P2Fkz2I6.js +95 -0
- package/dist/chunks/avatar.P2Fkz2I6.js.map +1 -0
- package/dist/chunks/base-button.BSLpAs8A.js +114 -0
- package/dist/chunks/base-button.BSLpAs8A.js.map +1 -0
- package/dist/chunks/base-modal.Bt3mQ_5Y.js +441 -0
- package/dist/chunks/base-modal.Bt3mQ_5Y.js.map +1 -0
- package/dist/chunks/bin.DuHlEQBO.js +37 -0
- package/dist/chunks/bin.DuHlEQBO.js.map +1 -0
- package/dist/chunks/button-actions-with-menu.D2GU8abn.js +93 -0
- package/dist/chunks/button-actions-with-menu.D2GU8abn.js.map +1 -0
- package/dist/chunks/button-actions.CbEoQYUV.js +1367 -0
- package/dist/chunks/button-actions.CbEoQYUV.js.map +1 -0
- package/dist/chunks/button-actions.types.BptAXjD8.js +8 -0
- package/dist/chunks/button-actions.types.BptAXjD8.js.map +1 -0
- package/dist/chunks/button.DhcxX2GJ.js +131 -0
- package/dist/chunks/button.DhcxX2GJ.js.map +1 -0
- package/dist/chunks/calendar.CyJXcMz2.js +1962 -0
- package/dist/chunks/calendar.CyJXcMz2.js.map +1 -0
- package/dist/chunks/card.s3fBTh55.js +228 -0
- package/dist/chunks/card.s3fBTh55.js.map +1 -0
- package/dist/chunks/checkbox-group.tnj89uhH.js +177 -0
- package/dist/chunks/checkbox-group.tnj89uhH.js.map +1 -0
- package/dist/chunks/checkbox-input.BXNGT9U0.js +144 -0
- package/dist/chunks/checkbox-input.BXNGT9U0.js.map +1 -0
- package/dist/chunks/checkbox.Wqhh2aRA.js +257 -0
- package/dist/chunks/checkbox.Wqhh2aRA.js.map +1 -0
- package/dist/chunks/checkmark-circle-fill._6-d40ru.js +44 -0
- package/dist/chunks/checkmark-circle-fill._6-d40ru.js.map +1 -0
- package/dist/chunks/checkmark-small.x-gmK2Dt.js +29 -0
- package/dist/chunks/checkmark-small.x-gmK2Dt.js.map +1 -0
- package/dist/chunks/chevron-down.DCQ6ZLaq.js +29 -0
- package/dist/chunks/chevron-down.DCQ6ZLaq.js.map +1 -0
- package/dist/chunks/chevron-left.Cfn1uGLH.js +52 -0
- package/dist/chunks/chevron-left.Cfn1uGLH.js.map +1 -0
- package/dist/chunks/chevron-up.kfuLRpZb.js +29 -0
- package/dist/chunks/chevron-up.kfuLRpZb.js.map +1 -0
- package/dist/chunks/chip.CoV28mKv.js +71 -0
- package/dist/chunks/chip.CoV28mKv.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.LRw3jGjV.js +343 -0
- package/dist/chunks/code-snippet.LRw3jGjV.js.map +1 -0
- package/dist/chunks/codemirror.Cy7iSLbd.js +14628 -0
- package/dist/chunks/codemirror.Cy7iSLbd.js.map +1 -0
- package/dist/chunks/constructNow.BhymNmy5.js +8 -0
- package/dist/chunks/constructNow.BhymNmy5.js.map +1 -0
- package/dist/chunks/controls-group.B2Qci77U.js +101 -0
- package/dist/chunks/controls-group.B2Qci77U.js.map +1 -0
- package/dist/chunks/copy.D5CBHqUB.js +117 -0
- package/dist/chunks/copy.D5CBHqUB.js.map +1 -0
- package/dist/chunks/country.D484ezGU.js +69 -0
- package/dist/chunks/country.D484ezGU.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.Dv5-PxwF.js +29 -0
- package/dist/chunks/cross-circle-fill-small.Dv5-PxwF.js.map +1 -0
- package/dist/chunks/cross-circle-fill.CYLL7jfC.js +44 -0
- package/dist/chunks/cross-circle-fill.CYLL7jfC.js.map +1 -0
- package/dist/chunks/cross-small.n1UO5wNB.js +29 -0
- package/dist/chunks/cross-small.n1UO5wNB.js.map +1 -0
- package/dist/chunks/cross.B92GxFTY.js +29 -0
- package/dist/chunks/cross.B92GxFTY.js.map +1 -0
- package/dist/chunks/currency.WmvQjX7l.js +116 -0
- package/dist/chunks/currency.WmvQjX7l.js.map +1 -0
- package/dist/chunks/dashboard-section.DlokD9Rf.js +165 -0
- package/dist/chunks/dashboard-section.DlokD9Rf.js.map +1 -0
- package/dist/chunks/dashed-underline.Dw1Iqk0l.js +114 -0
- package/dist/chunks/dashed-underline.Dw1Iqk0l.js.map +1 -0
- package/dist/chunks/data-grid-template.BwTVHbpB.js +144 -0
- package/dist/chunks/data-grid-template.BwTVHbpB.js.map +1 -0
- package/dist/chunks/data-grid-template.keys.VezYtHtM.js +5 -0
- package/dist/chunks/data-grid-template.keys.VezYtHtM.js.map +1 -0
- package/dist/chunks/data-grid.Be6Ao4He.js +4271 -0
- package/dist/chunks/data-grid.Be6Ao4He.js.map +1 -0
- package/dist/chunks/date-format.B8RU7D42.js +17 -0
- package/dist/chunks/date-format.B8RU7D42.js.map +1 -0
- package/dist/chunks/date-picker.CYBx1TS_.js +245 -0
- package/dist/chunks/date-picker.CYBx1TS_.js.map +1 -0
- package/dist/chunks/date-picker.types.Ckt7zxGy.js +5 -0
- package/dist/chunks/date-picker.types.Ckt7zxGy.js.map +1 -0
- package/dist/chunks/date-range-picker.BgEM0fyZ.js +1109 -0
- package/dist/chunks/date-range-picker.BgEM0fyZ.js.map +1 -0
- package/dist/chunks/date-range-picker.types.Ckt7zxGy.js +5 -0
- package/dist/chunks/date-range-picker.types.Ckt7zxGy.js.map +1 -0
- package/dist/chunks/date.DZvVL-uz.js +163 -0
- package/dist/chunks/date.DZvVL-uz.js.map +1 -0
- package/dist/chunks/debounce.DUTu11PS.js +10 -0
- package/dist/chunks/debounce.DUTu11PS.js.map +1 -0
- package/dist/chunks/delight.CDBAFnwC.js +5 -0
- package/dist/chunks/delight.CDBAFnwC.js.map +1 -0
- package/dist/chunks/delight.xKDCvvaS.js +5 -0
- package/dist/chunks/delight.xKDCvvaS.js.map +1 -0
- package/dist/chunks/dialog-page.BY6T1jYZ.js +175 -0
- package/dist/chunks/dialog-page.BY6T1jYZ.js.map +1 -0
- package/dist/chunks/differenceInMonths.Cab3nOsb.js +1590 -0
- package/dist/chunks/differenceInMonths.Cab3nOsb.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.Dho4_hQ7.js +33 -0
- package/dist/chunks/divider.Dho4_hQ7.js.map +1 -0
- package/dist/chunks/dot.ob6N-5Um.js +29 -0
- package/dist/chunks/dot.ob6N-5Um.js.map +1 -0
- package/dist/chunks/dropdown-default-textbox.CNrsjXUU.js +425 -0
- package/dist/chunks/dropdown-default-textbox.CNrsjXUU.js.map +1 -0
- package/dist/chunks/dropdown-tag.DmIHi3i-.js +301 -0
- package/dist/chunks/dropdown-tag.DmIHi3i-.js.map +1 -0
- package/dist/chunks/dropdown.Be6ses6k.js +833 -0
- package/dist/chunks/dropdown.Be6ses6k.js.map +1 -0
- package/dist/chunks/empty-state.Be6M8ivH.js +140 -0
- package/dist/chunks/empty-state.Be6M8ivH.js.map +1 -0
- package/dist/chunks/es6.MoTTyETW.js +12 -0
- package/dist/chunks/es6.MoTTyETW.js.map +1 -0
- package/dist/chunks/events.BQOQSSb7.js +44 -0
- package/dist/chunks/events.BQOQSSb7.js.map +1 -0
- package/dist/chunks/expand.C9IAqYYL.js +33 -0
- package/dist/chunks/expand.C9IAqYYL.js.map +1 -0
- package/dist/chunks/field-label.Cu6X9V0_.js +158 -0
- package/dist/chunks/field-label.Cu6X9V0_.js.map +1 -0
- package/dist/chunks/file-uploader.Bdhm4TVh.js +2299 -0
- package/dist/chunks/file-uploader.Bdhm4TVh.js.map +1 -0
- package/dist/chunks/filter-bar.CLNU1Ixm.js +3211 -0
- package/dist/chunks/filter-bar.CLNU1Ixm.js.map +1 -0
- package/dist/chunks/fixed-scroller.Dmg8r9QP.js +147 -0
- package/dist/chunks/fixed-scroller.Dmg8r9QP.js.map +1 -0
- package/dist/chunks/focus-trap.BaHvK7aT.js +1171 -0
- package/dist/chunks/focus-trap.BaHvK7aT.js.map +1 -0
- package/dist/chunks/footer-actions.C_EniPHo.js +110 -0
- package/dist/chunks/footer-actions.C_EniPHo.js.map +1 -0
- package/dist/chunks/form-field.D_2g7vaP.js +10 -0
- package/dist/chunks/form-field.D_2g7vaP.js.map +1 -0
- package/dist/chunks/form-layout-title.sxPU_lB_.js +214 -0
- package/dist/chunks/form-layout-title.sxPU_lB_.js.map +1 -0
- package/dist/chunks/form-layout.types.bZW9iR6_.js +5 -0
- package/dist/chunks/form-layout.types.bZW9iR6_.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-slot-text.CQRAP2_q.js +12 -0
- package/dist/chunks/get-slot-text.CQRAP2_q.js.map +1 -0
- package/dist/chunks/getRoundingMethod.C3eaeGLR.js +10 -0
- package/dist/chunks/getRoundingMethod.C3eaeGLR.js.map +1 -0
- package/dist/chunks/getTimezoneOffsetInMilliseconds.B7sxiukN.js +484 -0
- package/dist/chunks/getTimezoneOffsetInMilliseconds.B7sxiukN.js.map +1 -0
- package/dist/chunks/grid-layout.DDaRNz4-.js +114 -0
- package/dist/chunks/grid-layout.DDaRNz4-.js.map +1 -0
- package/dist/chunks/header-meta.DMjERxW-.js +221 -0
- package/dist/chunks/header-meta.DMjERxW-.js.map +1 -0
- package/dist/chunks/header-with-views.CVgISUVn.js +2426 -0
- package/dist/chunks/header-with-views.CVgISUVn.js.map +1 -0
- package/dist/chunks/header.Dq5aBp9l.js +141 -0
- package/dist/chunks/header.Dq5aBp9l.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.CWuzEfiV.js +6 -0
- package/dist/chunks/index.CWuzEfiV.js.map +1 -0
- package/dist/chunks/index.E60QniEu.js +592 -0
- package/dist/chunks/index.E60QniEu.js.map +1 -0
- package/dist/chunks/index.pdBj0KQU.js +15 -0
- package/dist/chunks/index.pdBj0KQU.js.map +1 -0
- package/dist/chunks/info-icon.C7RAAeQQ.js +35 -0
- package/dist/chunks/info-icon.C7RAAeQQ.js.map +1 -0
- package/dist/chunks/info.BKwey1HA.js +44 -0
- package/dist/chunks/info.BKwey1HA.js.map +1 -0
- package/dist/chunks/input-field-password.BhksIaXB.js +396 -0
- package/dist/chunks/input-field-password.BhksIaXB.js.map +1 -0
- package/dist/chunks/input-field-phone-number.jW5pH96y.js +3333 -0
- package/dist/chunks/input-field-phone-number.jW5pH96y.js.map +1 -0
- package/dist/chunks/input-field.CYBjHzVA.js +318 -0
- package/dist/chunks/input-field.CYBjHzVA.js.map +1 -0
- package/dist/chunks/inspector.BBhrSgO6.js +200 -0
- package/dist/chunks/inspector.BBhrSgO6.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.DWmhelVv.js +66 -0
- package/dist/chunks/keyboard-navigation.DWmhelVv.js.map +1 -0
- package/dist/chunks/layout-row.BxP9SxrL.js +100 -0
- package/dist/chunks/layout-row.BxP9SxrL.js.map +1 -0
- package/dist/chunks/link.cwPmWlsk.js +116 -0
- package/dist/chunks/link.cwPmWlsk.js.map +1 -0
- package/dist/chunks/listbox-option-tag.VRGb_04i.js +57 -0
- package/dist/chunks/listbox-option-tag.VRGb_04i.js.map +1 -0
- package/dist/chunks/loading-indicator.Db794TT5.js +33 -0
- package/dist/chunks/loading-indicator.Db794TT5.js.map +1 -0
- package/dist/chunks/minus-small.DYIyF5XW.js +32 -0
- package/dist/chunks/minus-small.DYIyF5XW.js.map +1 -0
- package/dist/chunks/modal-fullscreen.hOTnlB9T.js +285 -0
- package/dist/chunks/modal-fullscreen.hOTnlB9T.js.map +1 -0
- package/dist/chunks/modal.vue_vue_type_script_setup_true_lang.DFCZG9Zc.js +501 -0
- package/dist/chunks/modal.vue_vue_type_script_setup_true_lang.DFCZG9Zc.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.Cj_FYHm-.js +461 -0
- package/dist/chunks/pagination.Cj_FYHm-.js.map +1 -0
- package/dist/chunks/payment-method.CExDsirg.js +128 -0
- package/dist/chunks/payment-method.CExDsirg.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.types.DgfeurkF.js +6 -0
- package/dist/chunks/popover.types.DgfeurkF.js.map +1 -0
- package/dist/chunks/popper-container.I9gzp1NR.js +1413 -0
- package/dist/chunks/popper-container.I9gzp1NR.js.map +1 -0
- package/dist/chunks/promo-banner.B-TLTLEd.js +126 -0
- package/dist/chunks/promo-banner.B-TLTLEd.js.map +1 -0
- package/dist/chunks/radio-group.C0qJThJ2.js +278 -0
- package/dist/chunks/radio-group.C0qJThJ2.js.map +1 -0
- package/dist/chunks/radio-input.CBNE-AkM.js +95 -0
- package/dist/chunks/radio-input.CBNE-AkM.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.BB4ouvz_.js +29 -0
- package/dist/chunks/refresh.BB4ouvz_.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.CDcfVhGv.js +6224 -0
- package/dist/chunks/rich-text-editor.CDcfVhGv.js.map +1 -0
- package/dist/chunks/search-bar.CIi1zffn.js +116 -0
- package/dist/chunks/search-bar.CIi1zffn.js.map +1 -0
- package/dist/chunks/search.PczW-onY.js +44 -0
- package/dist/chunks/search.PczW-onY.js.map +1 -0
- package/dist/chunks/secondary-nav.C9ApoJ-J.js +138 -0
- package/dist/chunks/secondary-nav.C9ApoJ-J.js.map +1 -0
- package/dist/chunks/segmented-control.PlGfqyxH.js +145 -0
- package/dist/chunks/segmented-control.PlGfqyxH.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.DjlLf4oi.js +415 -0
- package/dist/chunks/selection-card-group.DjlLf4oi.js.map +1 -0
- package/dist/chunks/show.CT4Augxb.js +64 -0
- package/dist/chunks/show.CT4Augxb.js.map +1 -0
- package/dist/chunks/sidepanel.CiyGOtAx.js +254 -0
- package/dist/chunks/sidepanel.CiyGOtAx.js.map +1 -0
- package/dist/chunks/status.types.-l2qJxLn.js +44 -0
- package/dist/chunks/status.types.-l2qJxLn.js.map +1 -0
- package/dist/chunks/step.rYLkDMZ0.js +267 -0
- package/dist/chunks/step.rYLkDMZ0.js.map +1 -0
- package/dist/chunks/structured-list-item.CsUD3M_V.js +111 -0
- package/dist/chunks/structured-list-item.CsUD3M_V.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.Xx-W5a2w.js +6 -0
- package/dist/chunks/summary-grid.keys.Xx-W5a2w.js.map +1 -0
- package/dist/chunks/summary-grid.types.BzPSYDUX.js +496 -0
- package/dist/chunks/summary-grid.types.BzPSYDUX.js.map +1 -0
- package/dist/chunks/tab.BAwuVDsV.js +252 -0
- package/dist/chunks/tab.BAwuVDsV.js.map +1 -0
- package/dist/chunks/tabs.keys.B4qGhjp2.js +7 -0
- package/dist/chunks/tabs.keys.B4qGhjp2.js.map +1 -0
- package/dist/chunks/tag.EDED27n5.js +57 -0
- package/dist/chunks/tag.EDED27n5.js.map +1 -0
- package/dist/chunks/textarea.7MePsezm.js +254 -0
- package/dist/chunks/textarea.7MePsezm.js.map +1 -0
- package/dist/chunks/timeline-item.D6SeOiVe.js +428 -0
- package/dist/chunks/timeline-item.D6SeOiVe.js.map +1 -0
- package/dist/chunks/toast.BFw86uEp.js +221 -0
- package/dist/chunks/toast.BFw86uEp.js.map +1 -0
- package/dist/chunks/toggle.BHCUjMpp.js +143 -0
- package/dist/chunks/toggle.BHCUjMpp.js.map +1 -0
- package/dist/chunks/tooltip.B76ucISL.js +202 -0
- package/dist/chunks/tooltip.B76ucISL.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.CyO3qbAU.js +421 -0
- package/dist/chunks/tutorial.vue_vue_type_script_setup_true_lang.CyO3qbAU.js.map +1 -0
- package/dist/chunks/typography.yBEME_Gu.js +83 -0
- package/dist/chunks/typography.yBEME_Gu.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.DK1PV3YW.js +50 -0
- package/dist/chunks/use-bento-toast-controller.DK1PV3YW.js.map +1 -0
- package/dist/chunks/use-cached-selected-values.DimYI3lv.js +1702 -0
- package/dist/chunks/use-cached-selected-values.DimYI3lv.js.map +1 -0
- package/dist/chunks/use-country-items.Dzbl2UsO.js +30 -0
- package/dist/chunks/use-country-items.Dzbl2UsO.js.map +1 -0
- package/dist/chunks/use-country-phon-code.Bui3zD6W.js +5621 -0
- package/dist/chunks/use-country-phon-code.Bui3zD6W.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.CWbjZiwP.js +12 -0
- package/dist/chunks/use-form-layout-loading.CWbjZiwP.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.BMGD0G-_.js +29 -0
- package/dist/chunks/warning-filled.BMGD0G-_.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 +13 -0
- package/dist/data-grid.js.map +1 -0
- package/dist/date-picker.js +10 -0
- package/dist/date-picker.js.map +1 -0
- package/dist/date-range-picker.js +10 -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 +9 -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 +439 -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 +6 -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 +45 -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 +7 -0
- package/dist/popover.js.map +1 -0
- package/dist/popper-container.js +9 -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 +2133 -0
- package/dist/styles/bento-light.css +2132 -0
- package/dist/styles/bento.css +2132 -0
- package/dist/styles/legacy.css +2132 -0
- package/dist/styles/styleguide.css +2187 -0
- package/dist/styles/utility.css +1002 -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 +13 -12
|
@@ -0,0 +1,441 @@
|
|
|
1
|
+
import { defineComponent as $, useSlots as ee, ref as g, computed as d, inject as ce, watch as Y, nextTick as re, onUnmounted as me, createBlock as P, openBlock as A, normalizeClass as J, createSlots as te, withCtx as l, createElementVNode as L, normalizeStyle as O, createCommentVNode as w, unref as t, renderSlot as c, createVNode as j, useAttrs as ge, toRefs as ve, onMounted as pe, provide as G, createElementBlock as fe, withKeys as _e, withDirectives as ye } from "vue";
|
|
2
|
+
import { B as be } from "./button.DhcxX2GJ.js";
|
|
3
|
+
import { B as he } from "./focus-trap.BaHvK7aT.js";
|
|
4
|
+
import { u as ae } from "./use-has-slot.B7eQSabc.js";
|
|
5
|
+
import { u as Le } from "./index.pdBj0KQU.js";
|
|
6
|
+
import { j as Ae } from "./button-actions.CbEoQYUV.js";
|
|
7
|
+
import { g as Ce } from "./generate-uid.NJ8tVoha.js";
|
|
8
|
+
import { B as Ee } from "./directive.Cbdox5VL.js";
|
|
9
|
+
import { C as Ie } from "./cross.B92GxFTY.js";
|
|
10
|
+
import { D as Oe, B as Pe, b as Se, a as De } from "./dialog-page.BY6T1jYZ.js";
|
|
11
|
+
import { B as x } from "./typography.yBEME_Gu.js";
|
|
12
|
+
import { F as ke } from "./footer-actions.C_EniPHo.js";
|
|
13
|
+
import { o as Be } from "./resize.Bqks3WUm.js";
|
|
14
|
+
import { G as Te, a as Ne } from "./grid-layout.DDaRNz4-.js";
|
|
15
|
+
import { _ as oe } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
16
|
+
import "../assets/base-modal.css";
|
|
17
|
+
var Ge = /* @__PURE__ */ ((e) => (e.DEFAULT = "default", e.DIALOG = "dialog", e))(Ge || {}), we = /* @__PURE__ */ ((e) => (e.DEFAULT = "BentoModalDefault", e.DIALOG = "BentoModalDialog", e))(we || {}), R = /* @__PURE__ */ ((e) => (e.SMALL = "small", e.MEDIUM = "medium", e.LARGE = "large", e))(R || {}), k = /* @__PURE__ */ ((e) => (e.SMALLER = "smaller", e.EQUAL = "equal", e.BIGGER = "bigger", e))(k || {}), q = /* @__PURE__ */ ((e) => (e.DIALOG = "dialog", e.ALERT_DIALOG = "alertdialog", e))(q || {}), Re = /* @__PURE__ */ ((e) => (e.CONFIRMATION = "confirmation", e.DESTRUCTIVE = "destructive", e.INFO = "info", e.ACKNOWLEDGEMENT = "acknowledgement", e))(Re || {}), $e = /* @__PURE__ */ ((e) => (e.CLOSE_MODAL = "close-modal", e))($e || {});
|
|
18
|
+
const ne = {
|
|
19
|
+
"en-US": {
|
|
20
|
+
ariaLabelFallback: "modal",
|
|
21
|
+
close: "Close"
|
|
22
|
+
},
|
|
23
|
+
"ja-JP": {
|
|
24
|
+
close: "閉じる"
|
|
25
|
+
},
|
|
26
|
+
"pt-BR": {
|
|
27
|
+
close: "Fechar"
|
|
28
|
+
}
|
|
29
|
+
}, se = /* @__PURE__ */ Symbol("modal config data injection key"), Me = { class: "b-modal-page__header" }, ze = {
|
|
30
|
+
"aria-label": "modal actions",
|
|
31
|
+
class: "b-modal-page__actions"
|
|
32
|
+
}, Fe = $({}), Ue = /* @__PURE__ */ $({
|
|
33
|
+
...Fe,
|
|
34
|
+
__name: "modal-page",
|
|
35
|
+
props: {
|
|
36
|
+
actions: { default: null },
|
|
37
|
+
actionsLabel: { default: null },
|
|
38
|
+
columnsSize: { default: k.SMALLER },
|
|
39
|
+
customPadding: { default: null },
|
|
40
|
+
destructiveActions: { type: Boolean, default: !1 },
|
|
41
|
+
withColumnLayout: { type: Boolean, default: !1 },
|
|
42
|
+
pageId: { default: void 0 },
|
|
43
|
+
previousPage: { default: void 0 }
|
|
44
|
+
},
|
|
45
|
+
setup(e) {
|
|
46
|
+
const M = ee(), u = ae(M), f = g(null), s = e, z = d(() => ({
|
|
47
|
+
"b-modal-page--custom-padding": s.customPadding
|
|
48
|
+
})), _ = d(() => {
|
|
49
|
+
var a;
|
|
50
|
+
return {
|
|
51
|
+
"b-modal-page__content--with-header": u("default"),
|
|
52
|
+
"b-modal-page__content--with-actions": u("actions") || ((a = s.actions) == null ? void 0 : a.length)
|
|
53
|
+
};
|
|
54
|
+
}), i = d(() => {
|
|
55
|
+
if (!s.customPadding)
|
|
56
|
+
return {};
|
|
57
|
+
const a = {
|
|
58
|
+
paddingLeft: s.customPadding,
|
|
59
|
+
paddingRight: s.customPadding
|
|
60
|
+
}, r = { ...a, paddingTop: void 0, paddingBottom: void 0 };
|
|
61
|
+
return u("default") || (r.paddingTop = s.customPadding), u("actions") || (r.paddingBottom = s.customPadding), {
|
|
62
|
+
header: {
|
|
63
|
+
...a,
|
|
64
|
+
paddingTop: s.customPadding,
|
|
65
|
+
paddingRight: `${parseInt(s.customPadding, 10) + 26}px`,
|
|
66
|
+
flex: 1
|
|
67
|
+
},
|
|
68
|
+
content: r,
|
|
69
|
+
actions: { ...a, paddingBottom: s.customPadding },
|
|
70
|
+
backButton: { top: s.customPadding, paddingLeft: s.customPadding }
|
|
71
|
+
};
|
|
72
|
+
}), y = d(() => s.withColumnLayout && U.value === R.LARGE), B = d(() => s.columnsSize === k.SMALLER ? [
|
|
73
|
+
{ small: 4, medium: 4, large: 4 },
|
|
74
|
+
{ small: 8, medium: 8, large: 8 }
|
|
75
|
+
] : s.columnsSize === k.BIGGER ? [
|
|
76
|
+
{ small: 8, medium: 8, large: 8 },
|
|
77
|
+
{ small: 4, medium: 4, large: 4 }
|
|
78
|
+
] : [
|
|
79
|
+
{ small: 6, medium: 6, large: 6 },
|
|
80
|
+
{ small: 6, medium: 6, large: 6 }
|
|
81
|
+
]), { activePage: b, height: n, isAnimationActive: S, pageCustomPadding: C, showCloseButton: F, size: U } = ce(se), K = d(() => b.value === s.pageId || !b.value);
|
|
82
|
+
let h = null;
|
|
83
|
+
return Y(
|
|
84
|
+
() => b.value,
|
|
85
|
+
async (a, r) => {
|
|
86
|
+
var m, v;
|
|
87
|
+
K.value && (await re(), n.value = `${(v = (m = f.value) == null ? void 0 : m.$el) == null ? void 0 : v.clientHeight}px`, C.value = s.customPadding, S.value = r !== void 0, h = Be(f.value, () => {
|
|
88
|
+
var T, E;
|
|
89
|
+
const D = `${(E = (T = f.value) == null ? void 0 : T.$el) == null ? void 0 : E.clientHeight}px`;
|
|
90
|
+
D && D !== n.value && (n.value = D);
|
|
91
|
+
}));
|
|
92
|
+
},
|
|
93
|
+
{ immediate: !0 }
|
|
94
|
+
), me(() => {
|
|
95
|
+
h == null || h.disconnect();
|
|
96
|
+
}), (a, r) => {
|
|
97
|
+
var m;
|
|
98
|
+
return A(), P(Oe, {
|
|
99
|
+
ref_key: "page",
|
|
100
|
+
ref: f,
|
|
101
|
+
class: J(["b-modal-page", z.value]),
|
|
102
|
+
"page-id": a.pageId,
|
|
103
|
+
"always-show-border": y.value,
|
|
104
|
+
"back-button-styling": (m = i.value) == null ? void 0 : m.backButton,
|
|
105
|
+
"previous-page": a.previousPage,
|
|
106
|
+
onAnimationend: r[0] || (r[0] = (v) => S.value = !1)
|
|
107
|
+
}, te({
|
|
108
|
+
content: l(() => [
|
|
109
|
+
L("div", {
|
|
110
|
+
class: J(["b-modal-page__content", _.value]),
|
|
111
|
+
style: O(i.value.content)
|
|
112
|
+
}, [
|
|
113
|
+
t(u)("content") || t(u)("content-col-1") && t(u)("content-col-2") ? (A(), P(t(x), {
|
|
114
|
+
key: 0,
|
|
115
|
+
el: "div"
|
|
116
|
+
}, {
|
|
117
|
+
default: l(() => [
|
|
118
|
+
y.value ? (A(), P(t(Te), {
|
|
119
|
+
key: 0,
|
|
120
|
+
"column-width": B.value,
|
|
121
|
+
"container-type": t(Ne).NORMAL,
|
|
122
|
+
"no-gap": "",
|
|
123
|
+
class: "b-modal-page__grid"
|
|
124
|
+
}, {
|
|
125
|
+
"col-1": l(() => [
|
|
126
|
+
c(a.$slots, "content-col-1", {}, void 0, !0)
|
|
127
|
+
]),
|
|
128
|
+
"col-2": l(() => [
|
|
129
|
+
c(a.$slots, "content-col-2", {}, void 0, !0)
|
|
130
|
+
]),
|
|
131
|
+
_: 3
|
|
132
|
+
}, 8, ["column-width", "container-type"])) : c(a.$slots, "content", { key: 1 }, void 0, !0)
|
|
133
|
+
]),
|
|
134
|
+
_: 3
|
|
135
|
+
})) : w("", !0)
|
|
136
|
+
], 6)
|
|
137
|
+
]),
|
|
138
|
+
_: 2
|
|
139
|
+
}, [
|
|
140
|
+
t(u)("default") || t(F) ? {
|
|
141
|
+
name: "header",
|
|
142
|
+
fn: l(() => [
|
|
143
|
+
L("div", {
|
|
144
|
+
class: "b-modal-page__header-container",
|
|
145
|
+
style: O(i.value.header)
|
|
146
|
+
}, [
|
|
147
|
+
L("div", Me, [
|
|
148
|
+
j(t(x), {
|
|
149
|
+
class: "b-modal-page__title",
|
|
150
|
+
el: "span",
|
|
151
|
+
variant: "title",
|
|
152
|
+
stronger: ""
|
|
153
|
+
}, {
|
|
154
|
+
default: l(() => [
|
|
155
|
+
t(u)("default") ? c(a.$slots, "default", { key: 0 }, void 0, !0) : w("", !0)
|
|
156
|
+
]),
|
|
157
|
+
_: 3
|
|
158
|
+
})
|
|
159
|
+
])
|
|
160
|
+
], 4)
|
|
161
|
+
]),
|
|
162
|
+
key: "0"
|
|
163
|
+
} : void 0,
|
|
164
|
+
t(u)("actions") ? {
|
|
165
|
+
name: "footer",
|
|
166
|
+
fn: l(() => [
|
|
167
|
+
L("div", {
|
|
168
|
+
class: "b-modal-page__actions-container",
|
|
169
|
+
style: O(i.value.actions)
|
|
170
|
+
}, [
|
|
171
|
+
L("div", ze, [
|
|
172
|
+
c(a.$slots, "actions", {}, void 0, !0)
|
|
173
|
+
])
|
|
174
|
+
], 4)
|
|
175
|
+
]),
|
|
176
|
+
key: "1"
|
|
177
|
+
} : a.actions && a.actions.length > 0 ? {
|
|
178
|
+
name: "footer",
|
|
179
|
+
fn: l(() => [
|
|
180
|
+
L("div", {
|
|
181
|
+
class: "b-modal-page__actions-container",
|
|
182
|
+
style: O(i.value.actions)
|
|
183
|
+
}, [
|
|
184
|
+
j(t(ke), {
|
|
185
|
+
actions: a.actions,
|
|
186
|
+
"actions-label": a.actionsLabel,
|
|
187
|
+
"destructive-actions": a.destructiveActions
|
|
188
|
+
}, null, 8, ["actions", "actions-label", "destructive-actions"])
|
|
189
|
+
], 4)
|
|
190
|
+
]),
|
|
191
|
+
key: "2"
|
|
192
|
+
} : void 0
|
|
193
|
+
]), 1032, ["class", "page-id", "always-show-border", "back-button-styling", "previous-page"]);
|
|
194
|
+
};
|
|
195
|
+
}
|
|
196
|
+
}), Ke = /* @__PURE__ */ oe(Ue, [["__scopeId", "data-v-1e6a91c3"]]), He = { class: "b-modal-base" }, Ye = ["role", "aria-label", "open"], Je = $({
|
|
197
|
+
i18n: { messages: ne },
|
|
198
|
+
name: "base-modal"
|
|
199
|
+
}), je = /* @__PURE__ */ $({
|
|
200
|
+
...Je,
|
|
201
|
+
props: {
|
|
202
|
+
/**
|
|
203
|
+
* List of actions that will be used to render the buttons.
|
|
204
|
+
* First element in the list will be rendered as "primary".
|
|
205
|
+
* All elements after the first will be rendered as "secondary".
|
|
206
|
+
* But you may change the color of 1-st action to red with 'critial' key
|
|
207
|
+
* Not more than 3 action buttons can be provided
|
|
208
|
+
* Or 2 action buttons and 1 Label for them
|
|
209
|
+
*
|
|
210
|
+
* Each object in the list should have a `title`, an `event` and
|
|
211
|
+
* (optional) a Vue `icon` from the library `@adyen/ui-assets-icons-16`.
|
|
212
|
+
*
|
|
213
|
+
* `title`: Button's text.
|
|
214
|
+
*
|
|
215
|
+
* `event`: Event triggered when clicking the Button.
|
|
216
|
+
*
|
|
217
|
+
* `icon`: Vue Icon from the library `@adyen/ui-assets-icons-16`.
|
|
218
|
+
*
|
|
219
|
+
* ```
|
|
220
|
+
* [{
|
|
221
|
+
* title: 'Primary',2
|
|
222
|
+
* event: () => { ... },
|
|
223
|
+
* icon: FourPeopleIcon
|
|
224
|
+
* }, {
|
|
225
|
+
* title: 'Secondary',
|
|
226
|
+
* event: () => { ... }
|
|
227
|
+
* }]
|
|
228
|
+
* ```
|
|
229
|
+
*/
|
|
230
|
+
actions: {
|
|
231
|
+
type: Array,
|
|
232
|
+
default: null
|
|
233
|
+
},
|
|
234
|
+
/**
|
|
235
|
+
* The id of the current active page
|
|
236
|
+
* Should be the same id as the BentoModalPage to be displayed
|
|
237
|
+
*/
|
|
238
|
+
activePage: {
|
|
239
|
+
type: String,
|
|
240
|
+
default: null
|
|
241
|
+
},
|
|
242
|
+
/**
|
|
243
|
+
* If a column layout is provided, it renders the respective left column width variant. This can be smaller than the second column, the same size as the second column or bigger than the second column.
|
|
244
|
+
*/
|
|
245
|
+
columnsSize: {
|
|
246
|
+
type: String,
|
|
247
|
+
default: k.SMALLER
|
|
248
|
+
},
|
|
249
|
+
/**
|
|
250
|
+
* If provided, manages the padding of the whole modal container
|
|
251
|
+
*/
|
|
252
|
+
customPadding: { type: String, default: null },
|
|
253
|
+
/**
|
|
254
|
+
* If passed - sets first button color to red
|
|
255
|
+
*/
|
|
256
|
+
destructiveActions: { type: Boolean, default: !1 },
|
|
257
|
+
/**
|
|
258
|
+
* Hides a cross icon on the right side of the title
|
|
259
|
+
*/
|
|
260
|
+
hideCloseButton: { type: Boolean, required: !0 },
|
|
261
|
+
/**
|
|
262
|
+
* Sets the open attribute on the dialog element, use isOpen instead to toggle modal visbility.
|
|
263
|
+
*/
|
|
264
|
+
initiallyOpen: { type: Boolean, default: !1 },
|
|
265
|
+
/**
|
|
266
|
+
* If set to true, it allows the modal to be closed by clicking outside of it
|
|
267
|
+
*/
|
|
268
|
+
isDismissible: { type: Boolean, required: !0 },
|
|
269
|
+
/**
|
|
270
|
+
* Controls the modal's state from the outside. Set it to true to open the modal
|
|
271
|
+
*/
|
|
272
|
+
isOpen: { type: Boolean, required: !0 },
|
|
273
|
+
/**
|
|
274
|
+
* Defines whether the modal will be an alert modal
|
|
275
|
+
*/
|
|
276
|
+
modalRole: { type: String, default: q.DIALOG },
|
|
277
|
+
/**
|
|
278
|
+
* Sets the width of the modal
|
|
279
|
+
*/
|
|
280
|
+
size: {
|
|
281
|
+
type: String,
|
|
282
|
+
default: R.SMALL
|
|
283
|
+
},
|
|
284
|
+
/**
|
|
285
|
+
* If provided, renders the modal's content in a two-column layout an wth dividers separating its content
|
|
286
|
+
*/
|
|
287
|
+
withColumnLayout: { type: Boolean, default: !1 }
|
|
288
|
+
},
|
|
289
|
+
emits: ["update:active-page", "close-modal"],
|
|
290
|
+
setup(e, { expose: W, emit: M }) {
|
|
291
|
+
const { t: f } = Le({ messages: ne }), s = ee(), z = ge(), _ = ae(s), i = g(null), y = g(!1), B = Ce("modal"), b = M, n = e, S = d(() => n.isDismissible && !n.hideCloseButton), C = g(n.customPadding), F = d(() => C.value ? { top: C.value, right: C.value } : {}), U = d(() => z["aria-label"] ?? f("ariaLabelFallback")), K = d(() => n.withColumnLayout && n.size === R.LARGE), h = () => {
|
|
292
|
+
i.value.showModal();
|
|
293
|
+
}, a = () => {
|
|
294
|
+
b("close-modal");
|
|
295
|
+
}, r = () => {
|
|
296
|
+
y.value && (i.value.close(), I.value[0] && b("update:active-page", I.value[0]), I.value = [], y.value = !1, a());
|
|
297
|
+
}, m = () => {
|
|
298
|
+
i.value.open && (y.value = !0);
|
|
299
|
+
}, v = (o) => {
|
|
300
|
+
o && o.preventDefault(), !(!n.isDismissible && n.modalRole === q.DIALOG) && m();
|
|
301
|
+
}, D = () => {
|
|
302
|
+
n.isDismissible && v();
|
|
303
|
+
}, T = d(() => ({
|
|
304
|
+
[`b-modal-base__container--${n.size}`]: n.size,
|
|
305
|
+
"b-modal-base__container--hide": y.value,
|
|
306
|
+
"b-modal-base__container--column-layout": K.value,
|
|
307
|
+
"b-modal-base__container--animation": Z.value
|
|
308
|
+
}));
|
|
309
|
+
Y(
|
|
310
|
+
() => [n.isOpen, i.value],
|
|
311
|
+
([o, p], [, H]) => {
|
|
312
|
+
if (!p)
|
|
313
|
+
return;
|
|
314
|
+
o ? (h(), I.value.length || I.value.push(E.value)) : !H || m();
|
|
315
|
+
}
|
|
316
|
+
), Y(
|
|
317
|
+
() => n.actions,
|
|
318
|
+
() => {
|
|
319
|
+
var o, p;
|
|
320
|
+
((p = (o = n.actions) == null ? void 0 : o[0]) == null ? void 0 : p.state) === "success" && setTimeout(m, 500);
|
|
321
|
+
},
|
|
322
|
+
{ deep: !0 }
|
|
323
|
+
), pe(() => {
|
|
324
|
+
n.isOpen && i.value && h();
|
|
325
|
+
}), W({
|
|
326
|
+
internalModalActionClose: v
|
|
327
|
+
}), G(Ae, B);
|
|
328
|
+
const { activePage: E, isOpen: Q, size: V } = ve(n), le = g(Pe.TRANSITION_LEVEL_DEEPER), N = g([]), I = g([]), ie = (o) => b("update:active-page", o), ue = (o) => () => {
|
|
329
|
+
var p;
|
|
330
|
+
N.value = (p = N.value) == null ? void 0 : p.filter((H) => H !== o);
|
|
331
|
+
}, de = (o) => (o && N.value.push(o), { unregisterPage: ue(o) }), X = g(""), Z = g(!1);
|
|
332
|
+
return G(se, {
|
|
333
|
+
activePage: E,
|
|
334
|
+
height: X,
|
|
335
|
+
isAnimationActive: Z,
|
|
336
|
+
pageCustomPadding: C,
|
|
337
|
+
showCloseButton: S,
|
|
338
|
+
size: V
|
|
339
|
+
}), G(Se, {
|
|
340
|
+
activePage: E,
|
|
341
|
+
animation: le,
|
|
342
|
+
isOpen: Q,
|
|
343
|
+
pages: N,
|
|
344
|
+
previousPages: I,
|
|
345
|
+
updatePage: ie
|
|
346
|
+
}), G(De, de), (o, p) => (A(), fe("div", He, [
|
|
347
|
+
L("dialog", {
|
|
348
|
+
ref_key: "modal",
|
|
349
|
+
ref: i,
|
|
350
|
+
role: e.modalRole,
|
|
351
|
+
"aria-label": U.value,
|
|
352
|
+
style: O({ height: X.value }),
|
|
353
|
+
class: J(["b-modal-base__container", T.value]),
|
|
354
|
+
open: e.initiallyOpen,
|
|
355
|
+
onAnimationend: r,
|
|
356
|
+
onKeydown: _e(v, ["esc"])
|
|
357
|
+
}, [
|
|
358
|
+
t(Q) || e.initiallyOpen ? ye((A(), P(t(he), {
|
|
359
|
+
key: 0,
|
|
360
|
+
id: t(B)
|
|
361
|
+
}, {
|
|
362
|
+
default: l(() => [
|
|
363
|
+
S.value ? (A(), P(t(be), {
|
|
364
|
+
key: 0,
|
|
365
|
+
class: "b-modal-base__close-button",
|
|
366
|
+
variant: "tertiary",
|
|
367
|
+
type: "button",
|
|
368
|
+
style: O(F.value),
|
|
369
|
+
onClick: v
|
|
370
|
+
}, {
|
|
371
|
+
default: l(() => [
|
|
372
|
+
j(t(Ie), {
|
|
373
|
+
"svg-title": t(f)("close")
|
|
374
|
+
}, null, 8, ["svg-title"])
|
|
375
|
+
]),
|
|
376
|
+
_: 1
|
|
377
|
+
}, 8, ["style"])) : w("", !0),
|
|
378
|
+
n.activePage ? c(o.$slots, "default", { key: 1 }, void 0, !0) : (A(), P(t(Ke), {
|
|
379
|
+
key: 2,
|
|
380
|
+
"with-column-layout": e.withColumnLayout,
|
|
381
|
+
size: t(V),
|
|
382
|
+
"custom-padding": e.customPadding,
|
|
383
|
+
"columns-size": e.columnsSize
|
|
384
|
+
}, te({ _: 2 }, [
|
|
385
|
+
t(_)("default") ? {
|
|
386
|
+
name: "default",
|
|
387
|
+
fn: l(() => [
|
|
388
|
+
c(o.$slots, "default", {}, void 0, !0)
|
|
389
|
+
]),
|
|
390
|
+
key: "0"
|
|
391
|
+
} : void 0,
|
|
392
|
+
t(_)("content-col-1") ? {
|
|
393
|
+
name: "content-col-1",
|
|
394
|
+
fn: l(() => [
|
|
395
|
+
c(o.$slots, "content-col-1", {}, void 0, !0)
|
|
396
|
+
]),
|
|
397
|
+
key: "1"
|
|
398
|
+
} : void 0,
|
|
399
|
+
t(_)("content-col-2") ? {
|
|
400
|
+
name: "content-col-2",
|
|
401
|
+
fn: l(() => [
|
|
402
|
+
c(o.$slots, "content-col-2", {}, void 0, !0)
|
|
403
|
+
]),
|
|
404
|
+
key: "2"
|
|
405
|
+
} : void 0,
|
|
406
|
+
t(_)("content") ? {
|
|
407
|
+
name: "content",
|
|
408
|
+
fn: l(() => [
|
|
409
|
+
c(o.$slots, "content", {}, void 0, !0)
|
|
410
|
+
]),
|
|
411
|
+
key: "3"
|
|
412
|
+
} : void 0,
|
|
413
|
+
t(_)("actions") ? {
|
|
414
|
+
name: "actions",
|
|
415
|
+
fn: l(() => [
|
|
416
|
+
c(o.$slots, "actions", {}, void 0, !0)
|
|
417
|
+
]),
|
|
418
|
+
key: "4"
|
|
419
|
+
} : void 0
|
|
420
|
+
]), 1032, ["with-column-layout", "size", "custom-padding", "columns-size"]))
|
|
421
|
+
]),
|
|
422
|
+
_: 3
|
|
423
|
+
}, 8, ["id"])), [
|
|
424
|
+
[t(Ee), D]
|
|
425
|
+
]) : w("", !0)
|
|
426
|
+
], 46, Ye)
|
|
427
|
+
]));
|
|
428
|
+
}
|
|
429
|
+
}), dt = /* @__PURE__ */ oe(je, [["__scopeId", "data-v-05abca1c"]]);
|
|
430
|
+
export {
|
|
431
|
+
Ge as B,
|
|
432
|
+
we as a,
|
|
433
|
+
R as b,
|
|
434
|
+
k as c,
|
|
435
|
+
q as d,
|
|
436
|
+
Re as e,
|
|
437
|
+
$e as f,
|
|
438
|
+
Ke as g,
|
|
439
|
+
dt as h
|
|
440
|
+
};
|
|
441
|
+
//# sourceMappingURL=base-modal.Bt3mQ_5Y.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base-modal.Bt3mQ_5Y.js","sources":["../../../vue2/src/components/modal/modal.types.ts","../../../vue2/src/components/modal/modal.keys.ts","../../../vue2/src/components/modal/components/modal-page/modal-page.vue","../../../vue2/src/components/modal/components/base-modal/base-modal.vue"],"sourcesContent":["import { type ComputedRef, type Ref } from 'vue';\n\n/**\n * Public\n */\n\n/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoModalVariant {\n DEFAULT = 'default',\n DIALOG = 'dialog',\n}\n\n/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoModalVariantMapping {\n DEFAULT = 'BentoModalDefault',\n DIALOG = 'BentoModalDialog',\n}\n\n/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoModalSize {\n SMALL = 'small',\n MEDIUM = 'medium',\n LARGE = 'large',\n}\n\n/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoModalColumnLayoutVariant {\n SMALLER = 'smaller',\n EQUAL = 'equal',\n BIGGER = 'bigger',\n}\n\nexport enum BentoModalRole {\n DIALOG = 'dialog',\n ALERT_DIALOG = 'alertdialog',\n}\n\n/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoModalDialogType {\n CONFIRMATION = 'confirmation',\n DESTRUCTIVE = 'destructive',\n INFO = 'info',\n ACKNOWLEDGEMENT = 'acknowledgement',\n}\n\nexport enum BentoModalEvent {\n CLOSE_MODAL = 'close-modal',\n}\n\n/**\n * Private\n */\nexport interface BentoModalConfigData {\n activePage: Ref<string>;\n height: Ref<string>;\n isAnimationActive: Ref<boolean>;\n pageCustomPadding: Ref<string>;\n showCloseButton: ComputedRef<boolean>;\n size: Ref<BentoModalSize | `${BentoModalSize}`>;\n}\n","export const MODAL_CONFIG_INJECTION_KEY = Symbol('modal config data injection key');\n","<template>\n <dialog-page\n ref=\"page\"\n class=\"b-modal-page\"\n :class=\"modalPageConditionalClasses\"\n :page-id=\"pageId\"\n :always-show-border=\"hasColumnLayout\"\n :back-button-styling=\"customPaddingStyles?.backButton\"\n :previous-page=\"previousPage\"\n @animationend=\"isAnimationActive = false\"\n >\n <template v-if=\"hasSlot('default') || showCloseButton\" #header>\n <div class=\"b-modal-page__header-container\" :style=\"customPaddingStyles.header\">\n <div class=\"b-modal-page__header\">\n <bento-typography class=\"b-modal-page__title\" el=\"span\" variant=\"title\" stronger>\n <slot v-if=\"hasSlot('default')\" />\n </bento-typography>\n </div>\n </div>\n </template>\n\n <template #content>\n <div\n class=\"b-modal-page__content\"\n :class=\"modalContentConditionalClasses\"\n :style=\"customPaddingStyles.content\"\n >\n <bento-typography\n v-if=\"hasSlot('content') || (hasSlot('content-col-1') && hasSlot('content-col-2'))\"\n el=\"div\"\n >\n <grid-layout\n v-if=\"hasColumnLayout\"\n :column-width=\"computedColumnWidth\"\n :container-type=\"GridLayoutContainerType.NORMAL\"\n no-gap\n class=\"b-modal-page__grid\"\n >\n <template #col-1><slot name=\"content-col-1\"></slot></template>\n <template #col-2><slot name=\"content-col-2\"></slot></template>\n </grid-layout>\n <slot v-else name=\"content\" />\n </bento-typography>\n </div>\n </template>\n <template v-if=\"hasSlot('actions')\" #footer>\n <div class=\"b-modal-page__actions-container\" :style=\"customPaddingStyles.actions\">\n <div aria-label=\"modal actions\" class=\"b-modal-page__actions\">\n <slot name=\"actions\" />\n </div>\n </div>\n </template>\n <template v-else-if=\"actions && actions.length > 0\" #footer>\n <div class=\"b-modal-page__actions-container\" :style=\"customPaddingStyles.actions\">\n <footer-actions\n :actions=\"actions\"\n :actions-label=\"actionsLabel\"\n :destructive-actions=\"destructiveActions\"\n />\n </div>\n </template>\n </dialog-page>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, defineComponent, inject, nextTick, onUnmounted, ref, useSlots, watch } from 'vue';\n import {\n BentoModalColumnLayoutVariant,\n type BentoModalConfigData,\n BentoModalSize,\n } from '@/components/modal/modal.types';\n import { BentoTypography } from '@/components/typography';\n import { GridLayout, GridLayoutContainerType } from '@/internal';\n import { useHasSlot } from '@/composables';\n\n import { FooterActions } from '@/components/internal/footer-actions';\n\n import DialogPage from '@/internal/dialog-page/dialog-page.vue';\n import { MODAL_CONFIG_INJECTION_KEY } from '../../modal.keys';\n import { observeSizeOfElement } from '@/utils/ts/resize';\n import type { BentoModalPageProps } from './modal-page.types';\n\n const CLOSE_BUTTON_ICON_WIDTH = 26;\n\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n const page = ref<InstanceType<typeof DialogPage>>(null);\n\n const props = withDefaults(defineProps<BentoModalPageProps>(), {\n actions: null,\n actionsLabel: null,\n columnsSize: BentoModalColumnLayoutVariant.SMALLER,\n customPadding: null,\n destructiveActions: false,\n withColumnLayout: false,\n pageId: undefined,\n previousPage: undefined,\n });\n\n const modalPageConditionalClasses = computed(() => ({\n 'b-modal-page--custom-padding': props.customPadding,\n }));\n\n const modalContentConditionalClasses = computed(() => ({\n 'b-modal-page__content--with-header': hasSlot('default'),\n 'b-modal-page__content--with-actions': hasSlot('actions') || props.actions?.length,\n }));\n\n // Setting custom padding styles\n const customPaddingStyles = computed(() => {\n if (!props.customPadding) {\n return {};\n }\n\n const xPadding = {\n paddingLeft: props.customPadding,\n paddingRight: props.customPadding,\n };\n\n const content = { ...xPadding, paddingTop: undefined, paddingBottom: undefined };\n\n if (!hasSlot('default')) {\n content.paddingTop = props.customPadding;\n }\n\n if (!hasSlot('actions')) {\n content.paddingBottom = props.customPadding;\n }\n\n return {\n header: {\n ...xPadding,\n paddingTop: props.customPadding,\n paddingRight: `${parseInt(props.customPadding, 10) + CLOSE_BUTTON_ICON_WIDTH}px`,\n flex: 1,\n },\n content,\n actions: { ...xPadding, paddingBottom: props.customPadding },\n backButton: { top: props.customPadding, paddingLeft: props.customPadding },\n };\n });\n\n // Column layout styles\n const hasColumnLayout = computed(() => props.withColumnLayout && size.value === BentoModalSize.LARGE);\n\n const computedColumnWidth = computed(() => {\n if (props.columnsSize === BentoModalColumnLayoutVariant.SMALLER) {\n return [\n { small: 4, medium: 4, large: 4 },\n { small: 8, medium: 8, large: 8 },\n ];\n }\n if (props.columnsSize === BentoModalColumnLayoutVariant.BIGGER) {\n return [\n { small: 8, medium: 8, large: 8 },\n { small: 4, medium: 4, large: 4 },\n ];\n }\n return [\n { small: 6, medium: 6, large: 6 },\n { small: 6, medium: 6, large: 6 },\n ];\n });\n\n // Register page to parent component and inject data from parent component\n const { activePage, height, isAnimationActive, pageCustomPadding, showCloseButton, size } =\n inject<BentoModalConfigData>(MODAL_CONFIG_INJECTION_KEY);\n\n const isCurrentPage = computed(() => activePage.value === props.pageId || !activePage.value);\n\n // Animation\n // Set resize observer on mount of update the height of the dialog on resize\n let pageElementObserver: ResizeObserver | null = null;\n\n // Watching activePage changes to set the height of the page and set isAnimationActive\n watch(\n () => activePage.value,\n async (value, oldValue) => {\n if (isCurrentPage.value) {\n await nextTick();\n height.value = `${page.value?.$el?.clientHeight}px`;\n pageCustomPadding.value = props.customPadding;\n // only set isAnimationActive to true if its going from two different pages and not from null to the first page\n isAnimationActive.value = oldValue !== undefined;\n\n pageElementObserver = observeSizeOfElement(page.value, () => {\n const pageHeight = `${page.value?.$el?.clientHeight}px`;\n if (pageHeight && pageHeight !== height.value) {\n height.value = pageHeight;\n }\n });\n }\n },\n { immediate: true }\n );\n\n // Disconnect observer on unmounting the page\n onUnmounted(() => {\n pageElementObserver?.disconnect();\n });\n</script>\n\n<script lang=\"ts\">\n /**\n * ModalPage is used to render different pages of the Modal component\n *\n * @example\n * import { BentoModal, BentoModalPage } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoModal, BentoModalPage },\n * template: `\n * <bento-modal active-page='page1' :is-open='true'>\n * <bento-modal-page\n * pageId='page1'\n * actions-label='Move to next page'\n * :actions=\"[\n * {\n * title: 'Next page',\n * event: () => {\n * activePage.value = 'page2';\n * },\n * }]\">\n * Page 1\n * <template #content>\n * Page 1 content\n * </template>\n * </bento-modal-page>\n * <bento-modal-page\n * pageId='page2'\n * :actions=\"[\n * {\n * title: 'Save',\n * event: () => {},\n * }]\">\n * Page 2\n * <template #content>\n * Page 2 content\n * </template>\n * </bento-modal-page>\n * </bento-modal>\n * `\n * }\n */\n export default defineComponent({});\n</script>\n\n<style lang=\"scss\" scoped src=\"./modal-page.scss\" />\n","<template>\n <div class=\"b-modal-base\">\n <dialog\n ref=\"modal\"\n :role=\"modalRole\"\n :aria-label=\"computedAriaLabel\"\n :style=\"{ height: height }\"\n class=\"b-modal-base__container\"\n :class=\"modalConditionalClasses\"\n :open=\"initiallyOpen\"\n @animationend=\"closeModalAfterAnimation\"\n @keydown.esc=\"internalModalActionClose\"\n >\n <bento-focus-trap\n v-if=\"isOpen || initiallyOpen\"\n :id=\"modalId\"\n v-bento-click-outside-directive=\"closeModalOnClickOutside\"\n >\n <bento-button\n v-if=\"showCloseButton\"\n class=\"b-modal-base__close-button\"\n variant=\"tertiary\"\n type=\"button\"\n :style=\"customPaddingStyles\"\n @click=\"internalModalActionClose\"\n >\n <cross-icon :svg-title=\"t('close')\" />\n </bento-button>\n <template v-if=\"props.activePage\">\n <slot />\n </template>\n <bento-modal-page\n v-else\n :with-column-layout=\"withColumnLayout\"\n :size=\"size\"\n :custom-padding=\"customPadding\"\n :columns-size=\"columnsSize\"\n >\n <template v-if=\"hasSlot('default')\" #default>\n <slot></slot>\n </template>\n <template v-if=\"hasSlot('content-col-1')\" #content-col-1\n ><slot name=\"content-col-1\"></slot\n ></template>\n <template v-if=\"hasSlot('content-col-2')\" #content-col-2\n ><slot name=\"content-col-2\"></slot\n ></template>\n <template v-if=\"hasSlot('content')\" #content><slot name=\"content\"></slot></template>\n <template v-if=\"hasSlot('actions')\" #actions><slot name=\"actions\"></slot></template>\n </bento-modal-page>\n </bento-focus-trap>\n </dialog>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import {\n computed,\n defineComponent,\n onMounted,\n type PropType,\n provide,\n ref,\n toRefs,\n useAttrs,\n useSlots,\n watch,\n } from 'vue';\n import {\n BentoModalColumnLayoutVariant,\n type BentoModalConfigData,\n BentoModalRole,\n BentoModalSize,\n } from '@/components/modal/modal.types';\n import { BentoButton, type BentoButtonActionsList } from '@/components/button';\n import { BentoFocusTrap } from '@/components/focus-trap';\n import { useHasSlot } from '@/composables';\n import { useI18n } from '@/utils/ts/i18n';\n import { MODAL_DIALOG_ID_INJECTION_KEY } from '@/components/modal/components/base-modal/base-modal.keys';\n import { generateUid } from '@/core/utils/ts';\n import { BentoClickOutsideDirective as vBentoClickOutsideDirective } from '@/directives/click-outside';\n import messages from './messages.json';\n\n import { BentoModalPage } from '@/components/modal/components/modal-page';\n import CrossIcon from '@adyen/ui-assets-icons-16/vue/cross';\n\n import { MODAL_CONFIG_INJECTION_KEY } from '../../modal.keys';\n import {\n BentoDialogPageAnimation,\n type BentoDialogPageConfigData,\n type BentoDialogPageRegisterPage,\n DIALOG_PAGE_CONFIG_INJECTION_KEY,\n DIALOG_PAGE_REGISTER_PAGE_INJECTION_KEY,\n } from '@/internal';\n\n type MessageSchema = (typeof messages)['en-US'];\n const LOADING_BTN_CLOSE_AFTER_SUCCESS_DELAY_TIME = 500;\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n const slots = useSlots();\n const attrs = useAttrs();\n const hasSlot = useHasSlot(slots);\n const modal = ref<HTMLDialogElement>(null);\n const isClosing = ref(false);\n const modalId = generateUid('modal');\n\n const emit = defineEmits<{\n /**\n * Emits update event when page is changed internally\n */\n (e: 'update:active-page', page: string): void;\n /**\n * Emitted when the modal is closed.\n */\n (e: 'close-modal');\n }>();\n\n const props = defineProps({\n /**\n * List of actions that will be used to render the buttons.\n * First element in the list will be rendered as \"primary\".\n * All elements after the first will be rendered as \"secondary\".\n * But you may change the color of 1-st action to red with 'critial' key\n * Not more than 3 action buttons can be provided\n * Or 2 action buttons and 1 Label for them\n *\n * Each object in the list should have a `title`, an `event` and\n * (optional) a Vue `icon` from the library `@adyen/ui-assets-icons-16`.\n *\n * `title`: Button's text.\n *\n * `event`: Event triggered when clicking the Button.\n *\n * `icon`: Vue Icon from the library `@adyen/ui-assets-icons-16`.\n *\n * ```\n * [{\n * title: 'Primary',2\n * event: () => { ... },\n * icon: FourPeopleIcon\n * }, {\n * title: 'Secondary',\n * event: () => { ... }\n * }]\n * ```\n */\n actions: {\n type: Array as PropType<BentoButtonActionsList>,\n default: null,\n },\n\n /**\n * The id of the current active page\n * Should be the same id as the BentoModalPage to be displayed\n */\n activePage: {\n type: String,\n default: null,\n },\n\n /**\n * If a column layout is provided, it renders the respective left column width variant. This can be smaller than the second column, the same size as the second column or bigger than the second column.\n */\n columnsSize: {\n type: String as PropType<BentoModalColumnLayoutVariant>,\n default: BentoModalColumnLayoutVariant.SMALLER,\n },\n\n /**\n * If provided, manages the padding of the whole modal container\n */\n customPadding: { type: String, default: null },\n\n /**\n * If passed - sets first button color to red\n */\n destructiveActions: { type: Boolean, default: false },\n\n /**\n * Hides a cross icon on the right side of the title\n */\n hideCloseButton: { type: Boolean, required: true },\n\n /**\n * Sets the open attribute on the dialog element, use isOpen instead to toggle modal visbility.\n */\n initiallyOpen: { type: Boolean, default: false },\n\n /**\n * If set to true, it allows the modal to be closed by clicking outside of it\n */\n isDismissible: { type: Boolean, required: true },\n\n /**\n * Controls the modal's state from the outside. Set it to true to open the modal\n */\n isOpen: { type: Boolean, required: true },\n\n /**\n * Defines whether the modal will be an alert modal\n */\n modalRole: { type: String, default: BentoModalRole.DIALOG },\n\n /**\n * Sets the width of the modal\n */\n size: {\n type: String as PropType<BentoModalSize | `${BentoModalSize}`>,\n default: BentoModalSize.SMALL,\n },\n\n /**\n * If provided, renders the modal's content in a two-column layout an wth dividers separating its content\n */\n withColumnLayout: { type: Boolean, default: false },\n });\n\n const showCloseButton = computed(() => props.isDismissible && !props.hideCloseButton);\n\n const pageCustomPadding = ref(props.customPadding);\n\n const customPaddingStyles = computed(() => {\n if (!pageCustomPadding.value) {\n return {};\n }\n\n return { top: pageCustomPadding.value, right: pageCustomPadding.value };\n });\n\n const computedAriaLabel = computed(() => (attrs['aria-label'] as string) ?? (t('ariaLabelFallback') as string));\n const hasColumnLayout = computed(() => props.withColumnLayout && props.size === BentoModalSize.LARGE);\n\n const openModal = (): void => {\n modal.value.showModal();\n };\n\n const emitCloseEvent = (): void => {\n emit('close-modal');\n };\n\n // Handle closing and closing animation for dialog element\n const closeModalAfterAnimation = () => {\n if (isClosing.value) {\n modal.value.close();\n if (previousPages.value[0]) {\n emit('update:active-page', previousPages.value[0]);\n }\n previousPages.value = [];\n isClosing.value = false;\n emitCloseEvent();\n }\n };\n\n const startCloseModalAnimation = () => {\n if (!modal.value.open) {\n return;\n }\n isClosing.value = true;\n };\n\n /**\n * If the user has pressed escape, clicked outside or clicked the close icon.\n * Needs to be called from outside, following the \"dialog.close()\" pattern,\n * when the closing event is triggered outside of the \"base-modal\"\n * component (e.g. from a closing action).\n */\n const internalModalActionClose = (event?: Event) => {\n if (event) {\n event.preventDefault();\n }\n if (!props.isDismissible && props.modalRole === BentoModalRole.DIALOG) {\n return;\n }\n startCloseModalAnimation();\n };\n\n const closeModalOnClickOutside = () => {\n if (props.isDismissible) {\n internalModalActionClose();\n }\n };\n\n const modalConditionalClasses = computed(() => ({\n [`b-modal-base__container--${props.size}`]: props.size,\n 'b-modal-base__container--hide': isClosing.value,\n 'b-modal-base__container--column-layout': hasColumnLayout.value,\n 'b-modal-base__container--animation': isAnimationActive.value,\n }));\n\n watch(\n () => [props.isOpen, modal.value],\n ([newIsOpen, newModalValue], [, oldModalValue]): void => {\n if (!newModalValue) {\n return;\n }\n\n const isFirstMutation = !oldModalValue;\n if (newIsOpen) {\n openModal();\n // add the first page to the array when the modal opens\n if (!previousPages.value.length) {\n previousPages.value.push(activePage.value);\n }\n } else if (!isFirstMutation) {\n startCloseModalAnimation();\n }\n }\n );\n\n // If the first button is a loading button then close the modal have 0.5 seconds\n // if the state is changed to 'success'.\n watch(\n () => props.actions,\n () => {\n if (props.actions?.[0]?.state === 'success') {\n setTimeout(startCloseModalAnimation, LOADING_BTN_CLOSE_AFTER_SUCCESS_DELAY_TIME);\n }\n },\n { deep: true }\n );\n\n onMounted(() => {\n if (props.isOpen && modal.value) {\n openModal();\n }\n });\n\n /**\n * Expose methods through its 'ref'\n */\n defineExpose({\n internalModalActionClose,\n });\n\n // Let's Children components know they are inside a Modal (dialog element)\n provide(MODAL_DIALOG_ID_INJECTION_KEY, modalId);\n\n // Modal pagination\n const { activePage, isOpen, size } = toRefs(props);\n const animation = ref(BentoDialogPageAnimation.TRANSITION_LEVEL_DEEPER);\n\n const pages = ref<Array<string>>([]);\n const previousPages = ref([]);\n\n const updatePage = page => emit('update:active-page', page);\n\n // unregister page if removed / destroyed\n const unregisterPage = (pageIdToRemove: string) => () => {\n pages.value = pages.value?.filter(pageId => pageId !== pageIdToRemove);\n };\n\n // Provide data and function to register page to subcomponent\n const registerPage: BentoDialogPageRegisterPage = pageId => {\n if (pageId) {\n pages.value.push(pageId);\n }\n\n return { unregisterPage: unregisterPage(pageId) };\n };\n\n const height = ref('');\n const isAnimationActive = ref(false);\n\n provide<BentoModalConfigData>(MODAL_CONFIG_INJECTION_KEY, {\n activePage,\n height,\n isAnimationActive,\n pageCustomPadding,\n showCloseButton,\n size,\n });\n\n provide<BentoDialogPageConfigData>(DIALOG_PAGE_CONFIG_INJECTION_KEY, {\n activePage,\n animation,\n isOpen,\n pages,\n previousPages,\n updatePage,\n });\n\n provide(DIALOG_PAGE_REGISTER_PAGE_INJECTION_KEY, registerPage);\n</script>\n\n<script lang=\"ts\">\n /**\n * Dialog container. It creates a dialog HTML element for the modal to use.\n *\n * @example\n * import BaseModal from './components/base-modal/base-modal.vue';\n *\n * export default {\n * components: { BaseModal },\n * template: `\n * <base-modal\n * :hide-close-button=\"true\"\n * :is-dismissible=\"false\"\n * :is-open=\"isOpen\"\n * @close-modal=\"isOpen = false\"\n * >\n * <template #content-col-1>\n * // Content on the left side column\n * </template>\n *\n * <template #content-col-2>\n * // Content on the right side column\n * </template>\n *\n * <template v-if=\"actions\" #actions>\n * <footer-actions :actions=\"actions\" />\n * </template>\n * </base-modal>\n * `,\n * setup() {\n * const isOpen = ref(true)\n * const footerActions = [{\n * title: 'Primary action',\n * event: () => { ... }\n * }]\n * }\n * }\n */\n export default defineComponent({\n i18n: { messages },\n name: 'base-modal',\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./base-modal.scss\" />\n"],"names":["BentoModalVariant","BentoModalVariant2","BentoModalVariantMapping","BentoModalVariantMapping2","BentoModalSize","BentoModalSize2","BentoModalColumnLayoutVariant","BentoModalColumnLayoutVariant2","BentoModalRole","BentoModalRole2","BentoModalDialogType","BentoModalDialogType2","BentoModalEvent","BentoModalEvent2","MODAL_CONFIG_INJECTION_KEY","__default__$1","defineComponent","slots","useSlots","hasSlot","useHasSlot","page","ref","props","__props","modalPageConditionalClasses","computed","modalContentConditionalClasses","_a","customPaddingStyles","xPadding","content","hasColumnLayout","size","computedColumnWidth","activePage","height","isAnimationActive","pageCustomPadding","showCloseButton","inject","isCurrentPage","pageElementObserver","watch","value","oldValue","nextTick","_b","observeSizeOfElement","pageHeight","onUnmounted","__default__","messages","t","useI18n","attrs","useAttrs","modal","isClosing","modalId","generateUid","emit","__emit","computedAriaLabel","openModal","emitCloseEvent","closeModalAfterAnimation","previousPages","startCloseModalAnimation","internalModalActionClose","event","closeModalOnClickOutside","modalConditionalClasses","newIsOpen","newModalValue","oldModalValue","onMounted","__expose","provide","MODAL_DIALOG_ID_INJECTION_KEY","isOpen","toRefs","animation","BentoDialogPageAnimation","pages","updatePage","unregisterPage","pageIdToRemove","pageId","registerPage","DIALOG_PAGE_CONFIG_INJECTION_KEY","DIALOG_PAGE_REGISTER_PAGE_INJECTION_KEY"],"mappings":"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"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
import { createElementBlock as r, openBlock as s, mergeProps as l, createCommentVNode as n, createElementVNode as o, toDisplayString as p } from "vue";
|
|
3
|
+
import { _ as H } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
4
|
+
let i = 0;
|
|
5
|
+
const a = {
|
|
6
|
+
beforeCreate() {
|
|
7
|
+
this.uuid = i.toString(), i += 1;
|
|
8
|
+
}
|
|
9
|
+
}, m = { key: 0 };
|
|
10
|
+
function d(e, t, u, f, g, C) {
|
|
11
|
+
return s(), r("svg", l({ role: "img" }, e.$attrs, {
|
|
12
|
+
class: "ui-assets-icons-16",
|
|
13
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
14
|
+
width: "16",
|
|
15
|
+
height: "16",
|
|
16
|
+
fill: "none"
|
|
17
|
+
}), [
|
|
18
|
+
e.$attrs["svg-title"] ? (s(), r("title", m, p(e.$attrs["svg-title"]), 1)) : n("", !0),
|
|
19
|
+
t[0] || (t[0] = o("path", {
|
|
20
|
+
fill: "#001222",
|
|
21
|
+
d: "M7.25 12.75H5.75V6.25H7.25V12.75Z"
|
|
22
|
+
}, null, -1)),
|
|
23
|
+
t[1] || (t[1] = o("path", {
|
|
24
|
+
fill: "#001222",
|
|
25
|
+
d: "M10.25 12.75H8.75V6.25H10.25V12.75Z"
|
|
26
|
+
}, null, -1)),
|
|
27
|
+
t[2] || (t[2] = o("path", {
|
|
28
|
+
fill: "#001222",
|
|
29
|
+
d: "M9.55957 0.25C10.7392 0.25 11.799 1.00369 12.1719 2.13379L12.542 3.25H14.75V4.75H13.6758L12.9072 13.2471C12.7823 14.6665 11.5854 15.75 10.1699 15.75H5.82031C4.40484 15.75 3.20795 14.6665 3.08301 13.2471L2.31445 4.75H1.25V3.25H3.45801L3.82812 2.13379C4.20101 1.00369 5.26078 0.25 6.44043 0.25H9.55957ZM4.57715 13.1123V13.1143C4.63305 13.754 5.17638 14.25 5.82031 14.25H10.1699C10.8139 14.25 11.3572 13.754 11.4131 13.1143V13.1123L12.1689 4.75H3.82129L4.57715 13.1123ZM6.44043 1.75C5.90065 1.75 5.41955 2.0955 5.25195 2.60449L5.03809 3.25H10.9619L10.748 2.60547C10.5805 2.09648 10.0994 1.75 9.55957 1.75H6.44043Z"
|
|
30
|
+
}, null, -1))
|
|
31
|
+
], 16);
|
|
32
|
+
}
|
|
33
|
+
const w = /* @__PURE__ */ H(a, [["render", d]]);
|
|
34
|
+
export {
|
|
35
|
+
w as B
|
|
36
|
+
};
|
|
37
|
+
//# sourceMappingURL=bin.DuHlEQBO.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bin.DuHlEQBO.js","sources":["../../../ui-assets/icons-16/dist/vue/bin.vue"],"sourcesContent":["\n<template>\n <svg role=\"img\" v-bind=\"$attrs\" class=\"ui-assets-icons-16\" xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"none\"><title v-if=\"$attrs['svg-title']\">{{ $attrs['svg-title'] }}</title><path fill=\"#001222\" d=\"M7.25 12.75H5.75V6.25H7.25V12.75Z\"/><path fill=\"#001222\" d=\"M10.25 12.75H8.75V6.25H10.25V12.75Z\"/><path fill=\"#001222\" d=\"M9.55957 0.25C10.7392 0.25 11.799 1.00369 12.1719 2.13379L12.542 3.25H14.75V4.75H13.6758L12.9072 13.2471C12.7823 14.6665 11.5854 15.75 10.1699 15.75H5.82031C4.40484 15.75 3.20795 14.6665 3.08301 13.2471L2.31445 4.75H1.25V3.25H3.45801L3.82812 2.13379C4.20101 1.00369 5.26078 0.25 6.44043 0.25H9.55957ZM4.57715 13.1123V13.1143C4.63305 13.754 5.17638 14.25 5.82031 14.25H10.1699C10.8139 14.25 11.3572 13.754 11.4131 13.1143V13.1123L12.1689 4.75H3.82129L4.57715 13.1123ZM6.44043 1.75C5.90065 1.75 5.41955 2.0955 5.25195 2.60449L5.03809 3.25H10.9619L10.748 2.60547C10.5805 2.09648 10.0994 1.75 9.55957 1.75H6.44043Z\"/></svg>\n</template>\n<script>\n import '../css/main.css';\n\n let uuid = 0;\n\n export default {\n beforeCreate() {\n this.uuid = uuid.toString();\n uuid += 1;\n },\n };\n</script>\n"],"names":["uuid","_sfc_main","_openBlock","_createElementBlock","_mergeProps","_ctx","_hoisted_1","_createCommentVNode","_createElementVNode"],"mappings":";;;AAOI,IAAIA,IAAO;AAEX,MAAKC,IAAU;AAAA,EACX,eAAe;AACX,SAAK,OAAOD,EAAK,SAAU,GAC3BA,KAAQ;AAAA,EACX;AACJ,SAdL,KAAA,EAAA;;AAEI,SAAAE,EAAA,GAAAC,EAAi8B,OAAj8BC,EAAi8B,EAA57B,MAAK,MAAK,GAASC,EAAM,QAAA;AAAA,IAAE,OAAM;AAAA,IAAqB,OAAM;AAAA,IAA6B,OAAM;AAAA,IAAK,QAAO;AAAA,IAAK,MAAK;AAAA;IAAoBA,EAAM,OAAA,WAAA,UAAnBF,EAAmE,SAFxMG,KAE0KD,EAAM,OAAA,WAAA,CAAA,GAAA,CAAA,KAFhLE,EAAA,IAAA,EAAA;AAAA,oBAEwMC,EAA4D,QAAA;AAAA,MAAtD,MAAK;AAAA,MAAU,GAAE;AAAA;oBAAqCA,EAA8D,QAAA;AAAA,MAAxD,MAAK;AAAA,MAAU,GAAE;AAAA;oBAAuCA,EAA6nB,QAAA;AAAA,MAAvnB,MAAK;AAAA,MAAU,GAAE;AAAA;;;;"}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { ref as v, watch as h, nextTick as m, defineComponent as w, toRef as b, computed as p, provide as A, createElementBlock as B, openBlock as y, createElementVNode as N, normalizeClass as k, createVNode as E, createBlock as T, createCommentVNode as C, unref as I } from "vue";
|
|
2
|
+
import { M as W, e as M, B as R, f as g } from "./button-actions.CbEoQYUV.js";
|
|
3
|
+
import { u as O } from "./index.E60QniEu.js";
|
|
4
|
+
import { _ as L } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
5
|
+
import "../assets/button-actions-with-menu.css";
|
|
6
|
+
const S = (f) => {
|
|
7
|
+
const { breakpoint: e, container: u, defaultActionsCount: i, offset: o } = f, { width: l } = O(), s = v(i.value), r = 150, c = async () => {
|
|
8
|
+
var t;
|
|
9
|
+
await m();
|
|
10
|
+
const a = u.value.clientWidth, n = r * s.value + (((t = o == null ? void 0 : o.value) == null ? void 0 : t.offsetWidth) ?? 0) + r;
|
|
11
|
+
a >= n && s.value < i.value && (s.value += 1, await c());
|
|
12
|
+
}, d = async () => {
|
|
13
|
+
var t;
|
|
14
|
+
await m();
|
|
15
|
+
const a = u.value.clientWidth, n = r * s.value + (((t = o == null ? void 0 : o.value) == null ? void 0 : t.offsetWidth) ?? 0);
|
|
16
|
+
a < n && s.value > 0 && (s.value -= 1, await d());
|
|
17
|
+
};
|
|
18
|
+
return h([l, u], async ([a, n], [t]) => {
|
|
19
|
+
if (!n || !i || a > e)
|
|
20
|
+
return;
|
|
21
|
+
await m(), a > t ? await c() : await d();
|
|
22
|
+
}), h(i, async (a) => {
|
|
23
|
+
s.value = a, e && l.value <= e && u.value && await d();
|
|
24
|
+
}), {
|
|
25
|
+
displayedActionsCount: s
|
|
26
|
+
};
|
|
27
|
+
}, V = { class: "b-button-actions-with-menu" }, D = {}, P = /* @__PURE__ */ w({
|
|
28
|
+
...D,
|
|
29
|
+
__name: "button-actions-with-menu",
|
|
30
|
+
props: {
|
|
31
|
+
actions: {},
|
|
32
|
+
actionsLayout: { default: "buttons-end" },
|
|
33
|
+
disableResponsiveBehavior: { type: Boolean, default: !1 },
|
|
34
|
+
displayedActions: { default: void 0 },
|
|
35
|
+
inverse: { type: Boolean, default: !1 },
|
|
36
|
+
hideDisplayedActionsBreakpoint: { default: 0 },
|
|
37
|
+
menuPosition: { default: "bottom-start" }
|
|
38
|
+
},
|
|
39
|
+
setup(f) {
|
|
40
|
+
const e = f, u = b(e, "inverse"), i = v(null), o = v(null), l = v(!1), s = p(() => {
|
|
41
|
+
const n = e.hideDisplayedActionsBreakpoint ? c.value : e.displayedActions;
|
|
42
|
+
return e.actions.slice(0, n);
|
|
43
|
+
}), r = p(() => {
|
|
44
|
+
var n;
|
|
45
|
+
return (n = o == null ? void 0 : o.value) == null ? void 0 : n.$el;
|
|
46
|
+
}), { displayedActionsCount: c } = S({
|
|
47
|
+
breakpoint: e.hideDisplayedActionsBreakpoint,
|
|
48
|
+
container: i,
|
|
49
|
+
defaultActionsCount: b(e, "displayedActions"),
|
|
50
|
+
offset: r
|
|
51
|
+
});
|
|
52
|
+
A(W, u), e.disableResponsiveBehavior || A(M, { buttonActionsWithMenu: i, menu: o, stackButtons: l });
|
|
53
|
+
const d = p(() => ({
|
|
54
|
+
"b-button-actions-with-menu__container-wrapper--buttons-end": e.actionsLayout === "buttons-end",
|
|
55
|
+
"b-button-actions-with-menu__container-wrapper--buttons-start": e.actionsLayout === "buttons-start",
|
|
56
|
+
"b-button-actions-with-menu__container-wrapper--stacked-buttons": l.value
|
|
57
|
+
})), a = p(() => c.value === void 0 || c.value >= e.actions.length ? [] : e.actions.slice(c.value, e.actions.length).flatMap((t) => t.data ? t.data : {
|
|
58
|
+
text: t.title,
|
|
59
|
+
handler: () => {
|
|
60
|
+
var _;
|
|
61
|
+
return (_ = t.event) == null ? void 0 : _.call(t, {});
|
|
62
|
+
},
|
|
63
|
+
icon: t.icon,
|
|
64
|
+
critical: t.critical,
|
|
65
|
+
disabled: t.disabled
|
|
66
|
+
}));
|
|
67
|
+
return (n, t) => (y(), B("div", V, [
|
|
68
|
+
N("div", {
|
|
69
|
+
ref_key: "buttonActionsWithMenu",
|
|
70
|
+
ref: i,
|
|
71
|
+
role: "group",
|
|
72
|
+
class: k(["b-button-actions-with-menu__container-wrapper", d.value])
|
|
73
|
+
}, [
|
|
74
|
+
E(I(R), {
|
|
75
|
+
actions: s.value,
|
|
76
|
+
inverse: n.inverse,
|
|
77
|
+
layout: n.actionsLayout
|
|
78
|
+
}, null, 8, ["actions", "inverse", "layout"]),
|
|
79
|
+
a.value.length ? (y(), T(g, {
|
|
80
|
+
key: 0,
|
|
81
|
+
ref_key: "menu",
|
|
82
|
+
ref: o,
|
|
83
|
+
data: a.value,
|
|
84
|
+
"menu-position": n.menuPosition
|
|
85
|
+
}, null, 8, ["data", "menu-position"])) : C("", !0)
|
|
86
|
+
], 2)
|
|
87
|
+
]));
|
|
88
|
+
}
|
|
89
|
+
}), J = /* @__PURE__ */ L(P, [["__scopeId", "data-v-803aebe6"]]);
|
|
90
|
+
export {
|
|
91
|
+
J as B
|
|
92
|
+
};
|
|
93
|
+
//# sourceMappingURL=button-actions-with-menu.D2GU8abn.js.map
|