@adyen/bento-vue2 1.28.0 → 1.29.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 +4 -0
- package/dist/@types/index.d.ts +364 -107
- package/dist/accordion.js +101 -3
- package/dist/accordion.js.map +1 -1
- package/dist/action-bar.js +146 -2
- package/dist/action-bar.js.map +1 -1
- package/dist/alert.js +95 -3
- package/dist/alert.js.map +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/button.css +1 -1
- package/dist/assets/checkbox-input.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/dropdown-default-textbox.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/error-message.css +1 -1
- package/dist/assets/{data-grid.css → index11.css} +1 -1
- package/dist/assets/index14.css +1 -0
- package/dist/assets/index18.css +1 -0
- package/dist/assets/index19.css +1 -0
- package/dist/assets/{secondary-nav.css → index21.css} +1 -1
- package/dist/assets/index22.css +1 -0
- package/dist/assets/{action-bar.css → index23.css} +1 -1
- package/dist/assets/{sidepanel.css → index24.css} +1 -1
- package/dist/assets/index28.css +1 -0
- package/dist/assets/{accordion-item.css → index3.css} +1 -1
- package/dist/assets/index30.css +1 -0
- package/dist/assets/index33.css +1 -0
- package/dist/assets/{modal-fullscreen.css → index36.css} +1 -1
- package/dist/assets/{menu.css → index38.css} +1 -1
- package/dist/assets/index39.css +1 -0
- package/dist/assets/{popover.css → index40.css} +1 -1
- package/dist/assets/index42.css +1 -0
- package/dist/assets/index43.css +1 -0
- package/dist/assets/index45.css +1 -0
- package/dist/assets/{dashboard-section.css → index47.css} +1 -1
- package/dist/assets/index48.css +1 -0
- package/dist/assets/{card.css → index5.css} +1 -1
- package/dist/assets/index7.css +1 -0
- package/dist/assets/listbox-option-tag.css +1 -1
- package/dist/assets/loading-button.css +1 -1
- package/dist/assets/radio-input.css +1 -1
- package/dist/assets/segmented-control.css +1 -1
- package/dist/avatar.js +75 -0
- package/dist/avatar.js.map +1 -0
- package/dist/badge.js +24 -22
- package/dist/badge.js.map +1 -1
- package/dist/button.js +94 -14
- package/dist/button.js.map +1 -1
- package/dist/card.js +114 -4
- package/dist/card.js.map +1 -1
- package/dist/checkbox.js +155 -8
- package/dist/checkbox.js.map +1 -1
- package/dist/chunks/1-generic-use.3ea646cd.js +5 -0
- package/dist/chunks/1-generic-use.3ea646cd.js.map +1 -0
- package/dist/chunks/1-generic-use.ccca5813.js +5 -0
- package/dist/chunks/1-generic-use.ccca5813.js.map +1 -0
- package/dist/chunks/2-generic-use.443db127.js +5 -0
- package/dist/chunks/2-generic-use.443db127.js.map +1 -0
- package/dist/chunks/2-generic-use.d69d7c08.js +5 -0
- package/dist/chunks/2-generic-use.d69d7c08.js.map +1 -0
- package/dist/chunks/3-generic-use.9f74667f.js +5 -0
- package/dist/chunks/3-generic-use.9f74667f.js.map +1 -0
- package/dist/chunks/3-generic-use.fe7ae2ce.js +5 -0
- package/dist/chunks/3-generic-use.fe7ae2ce.js.map +1 -0
- package/dist/chunks/4-generic-use.0356f4a1.js +5 -0
- package/dist/chunks/4-generic-use.0356f4a1.js.map +1 -0
- package/dist/chunks/4-generic-use.cd04bad0.js +5 -0
- package/dist/chunks/4-generic-use.cd04bad0.js.map +1 -0
- package/dist/chunks/_plugin-vue2_normalizer.71e2aa87.js +33 -0
- package/dist/chunks/_plugin-vue2_normalizer.71e2aa87.js.map +1 -0
- package/dist/chunks/adding-payment-methods.d570e03e.js +5 -0
- package/dist/chunks/adding-payment-methods.d570e03e.js.map +1 -0
- package/dist/chunks/adding-payment-methods.e419d6c0.js +5 -0
- package/dist/chunks/adding-payment-methods.e419d6c0.js.map +1 -0
- package/dist/chunks/adyen-giving.480913b5.js +5 -0
- package/dist/chunks/adyen-giving.480913b5.js.map +1 -0
- package/dist/chunks/adyen-giving.54ed984c.js +5 -0
- package/dist/chunks/adyen-giving.54ed984c.js.map +1 -0
- package/dist/chunks/{aria-label.CaUURpnB.js → aria-label.ac9651a5.js} +1 -1
- package/dist/chunks/{aria-label.CaUURpnB.js.map → aria-label.ac9651a5.js.map} +1 -1
- package/dist/chunks/base-button.852204dc.js +88 -0
- package/dist/chunks/{base-button.DER7_IsF.js.map → base-button.852204dc.js.map} +1 -1
- package/dist/chunks/{base-modal.C5I7bR0d.js → base-modal.00322d31.js} +46 -42
- package/dist/chunks/{base-modal.C5I7bR0d.js.map → base-modal.00322d31.js.map} +1 -1
- package/dist/chunks/{base-modal.keys.C2PQXcE2.js → base-modal.keys.b08a6bdf.js} +1 -1
- package/dist/chunks/{base-modal.keys.C2PQXcE2.js.map → base-modal.keys.b08a6bdf.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.f3yuLK-L.js → button-actions-with-menu.bc66bc0a.js} +27 -25
- package/dist/chunks/{button-actions-with-menu.f3yuLK-L.js.map → button-actions-with-menu.bc66bc0a.js.map} +1 -1
- package/dist/chunks/{button-actions.Bg9ey0p6.js → button-actions.430d7510.js} +31 -29
- package/dist/chunks/{button-actions.Bg9ey0p6.js.map → button-actions.430d7510.js.map} +1 -1
- package/dist/chunks/{button.DhAUh5JA.js → button.9184ade9.js} +24 -22
- package/dist/chunks/{button.DhAUh5JA.js.map → button.9184ade9.js.map} +1 -1
- package/dist/chunks/{calendar.B69z8gjb.js → calendar.bea81953.js} +332 -287
- package/dist/chunks/{calendar.B69z8gjb.js.map → calendar.bea81953.js.map} +1 -1
- package/dist/chunks/{checkbox-input.DwDwI2BD.js → checkbox-input.5ab6ebe7.js} +32 -28
- package/dist/chunks/{checkbox-input.DwDwI2BD.js.map → checkbox-input.5ab6ebe7.js.map} +1 -1
- package/dist/chunks/{checkbox.Bi2RDBEZ.js → checkbox.192e921e.js} +23 -21
- package/dist/chunks/{checkbox.Bi2RDBEZ.js.map → checkbox.192e921e.js.map} +1 -1
- package/dist/chunks/checkmark-circle-fill.382e27e2.js +26 -0
- package/dist/chunks/{checkmark-circle-fill.DVl6QSwm.js.map → checkmark-circle-fill.382e27e2.js.map} +1 -1
- package/dist/chunks/{checkmark-small.BtF8b2gE.js → checkmark-small.6f444bd7.js} +9 -7
- package/dist/chunks/{checkmark-small.BtF8b2gE.js.map → checkmark-small.6f444bd7.js.map} +1 -1
- package/dist/chunks/{chevron-left.CtnrsqUy.js → chevron-left.3cd9eeee.js} +18 -14
- package/dist/chunks/{chevron-left.CtnrsqUy.js.map → chevron-left.3cd9eeee.js.map} +1 -1
- package/dist/chunks/{chevron-up.B2uWhZf7.js → chevron-up.bade9c77.js} +19 -15
- package/dist/chunks/{chevron-up.B2uWhZf7.js.map → chevron-up.bade9c77.js.map} +1 -1
- package/dist/chunks/{controls-group.cSRFiEVO.js → controls-group.6b05fbb4.js} +19 -17
- package/dist/chunks/{controls-group.cSRFiEVO.js.map → controls-group.6b05fbb4.js.map} +1 -1
- package/dist/chunks/{copy.BtFWFG3q.js → copy.d5dd2b60.js} +19 -15
- package/dist/chunks/{copy.BtFWFG3q.js.map → copy.d5dd2b60.js.map} +1 -1
- package/dist/chunks/{country.types.Br0AjxGy.js → country.types.002caff2.js} +5 -5
- package/dist/chunks/{country.types.Br0AjxGy.js.map → country.types.002caff2.js.map} +1 -1
- package/dist/chunks/cross-circle-fill-small.b0310bd6.js +26 -0
- package/dist/chunks/cross-circle-fill-small.b0310bd6.js.map +1 -0
- package/dist/chunks/{cross-circle-fill.CnYH4R_h.js → cross-circle-fill.dd300d4c.js} +10 -8
- package/dist/chunks/{cross-circle-fill.CnYH4R_h.js.map → cross-circle-fill.dd300d4c.js.map} +1 -1
- package/dist/chunks/{cross-small.BLUwtRB-.js → cross-small.3bb94ec7.js} +12 -10
- package/dist/chunks/{cross-small.BLUwtRB-.js.map → cross-small.3bb94ec7.js.map} +1 -1
- package/dist/chunks/{cross.CsUPDmaA.js → cross.f47f6b7f.js} +12 -10
- package/dist/chunks/{cross.CsUPDmaA.js.map → cross.f47f6b7f.js.map} +1 -1
- package/dist/chunks/{data-grid-template.keys.2_AkxuNT.js → data-grid-template.keys.a819a991.js} +1 -1
- package/dist/chunks/{data-grid-template.keys.2_AkxuNT.js.map → data-grid-template.keys.a819a991.js.map} +1 -1
- package/dist/chunks/{date-input.BqBdAO1E.js → date-input.9186a0bf.js} +1 -1
- package/dist/chunks/{date-input.BqBdAO1E.js.map → date-input.9186a0bf.js.map} +1 -1
- package/dist/chunks/{debounce.DUTu11PS.js → debounce.b5ef6acf.js} +1 -1
- package/dist/chunks/{debounce.DUTu11PS.js.map → debounce.b5ef6acf.js.map} +1 -1
- package/dist/chunks/{dialog-page.DAh0M4mT.js → dialog-page.c663c657.js} +24 -20
- package/dist/chunks/{dialog-page.DAh0M4mT.js.map → dialog-page.c663c657.js.map} +1 -1
- package/dist/chunks/{dropdown-default-textbox.CKOkl_Qa.js → dropdown-default-textbox.346c40ea.js} +64 -51
- package/dist/chunks/dropdown-default-textbox.346c40ea.js.map +1 -0
- package/dist/chunks/{dropdown.yhhQCKve.js → dropdown.9bee6e1d.js} +248 -230
- package/dist/chunks/dropdown.9bee6e1d.js.map +1 -0
- package/dist/chunks/error-message.af88c25f.js +111 -0
- package/dist/chunks/{error-message.BSxUoE3_.js.map → error-message.af88c25f.js.map} +1 -1
- package/dist/chunks/es6.cf6b43e9.js +9 -0
- package/dist/chunks/es6.cf6b43e9.js.map +1 -0
- package/dist/chunks/events.f14a214b.js +50 -0
- package/dist/chunks/{events.CMzGybJJ.js.map → events.f14a214b.js.map} +1 -1
- package/dist/chunks/expand.d0ccfcfe.js +26 -0
- package/dist/chunks/expand.d0ccfcfe.js.map +1 -0
- package/dist/chunks/{fixed-scroller.Bq1AgPnw.js → fixed-scroller.5e51ffb3.js} +20 -18
- package/dist/chunks/{fixed-scroller.Bq1AgPnw.js.map → fixed-scroller.5e51ffb3.js.map} +1 -1
- package/dist/chunks/{footer-actions.DqMRmlV_.js → footer-actions.b4fe4fdb.js} +13 -11
- package/dist/chunks/{footer-actions.DqMRmlV_.js.map → footer-actions.b4fe4fdb.js.map} +1 -1
- package/dist/chunks/{form-layout.types.D3EKzbE7.js → form-layout.types.a7a1438d.js} +1 -1
- package/dist/chunks/{form-layout.types.D3EKzbE7.js.map → form-layout.types.a7a1438d.js.map} +1 -1
- package/dist/chunks/{get-slot-text.Cgn-E48s.js → get-slot-text.99c3d860.js} +2 -2
- package/dist/chunks/{get-slot-text.Cgn-E48s.js.map → get-slot-text.99c3d860.js.map} +1 -1
- package/dist/chunks/{grid-layout.HvTAa4to.js → grid-layout.e0025286.js} +13 -11
- package/dist/chunks/{grid-layout.HvTAa4to.js.map → grid-layout.e0025286.js.map} +1 -1
- package/dist/chunks/{i18n.BQkEbtPM.js → i18n.eb5b985b.js} +2 -2
- package/dist/chunks/{i18n.BQkEbtPM.js.map → i18n.eb5b985b.js.map} +1 -1
- package/dist/chunks/{structured-list-item.C9NTVDvT.js → index.1c8f9245.js} +22 -18
- package/dist/chunks/index.1c8f9245.js.map +1 -0
- package/dist/chunks/{popover.B8YH92W8.js → index.40b77741.js} +37 -31
- package/dist/chunks/index.40b77741.js.map +1 -0
- package/dist/chunks/index.4afa7b19.js +32 -0
- package/dist/chunks/index.4afa7b19.js.map +1 -0
- package/dist/chunks/{index.Cl4_42j5.js → index.4c062058.js} +1 -1
- package/dist/chunks/{index.Cl4_42j5.js.map → index.4c062058.js.map} +1 -1
- package/dist/chunks/{date.DKjxxR6P.js → index.614a5138.js} +51 -44
- package/dist/chunks/index.614a5138.js.map +1 -0
- package/dist/chunks/index.6584f75e.js +183 -0
- package/dist/chunks/{index.OCPp3NST.js.map → index.6584f75e.js.map} +1 -1
- package/dist/chunks/{index.xqFSZOAb.js → index.86453263.js} +2 -2
- package/dist/chunks/{index.xqFSZOAb.js.map → index.86453263.js.map} +1 -1
- package/dist/chunks/{menu.2TwUMlA9.js → index.8a037a95.js} +94 -82
- package/dist/chunks/index.8a037a95.js.map +1 -0
- package/dist/chunks/{focus-trap.DSkLNO_i.js → index.ba69cab6.js} +37 -35
- package/dist/chunks/index.ba69cab6.js.map +1 -0
- package/dist/chunks/{popper-container.Bt02N3o1.js → index.bad400d5.js} +436 -381
- package/dist/chunks/index.bad400d5.js.map +1 -0
- package/dist/chunks/{index.Z84QE0E2.js → index.d80206ed.js} +2 -2
- package/dist/chunks/{index.Z84QE0E2.js.map → index.d80206ed.js.map} +1 -1
- package/dist/chunks/{typography.Bjtu3Gca.js → index.e29a6907.js} +32 -30
- package/dist/chunks/index.e29a6907.js.map +1 -0
- package/dist/chunks/{link.DJ1A53gF.js → index.f46e4190.js} +24 -20
- package/dist/chunks/index.f46e4190.js.map +1 -0
- package/dist/chunks/{index.B_UZQ6qF.js → index.f55fdc32.js} +243 -209
- package/dist/chunks/{index.B_UZQ6qF.js.map → index.f55fdc32.js.map} +1 -1
- package/dist/chunks/{date-range-picker.DrnklTJ-.js → index.fc70e413.js} +117 -113
- package/dist/chunks/index.fc70e413.js.map +1 -0
- package/dist/chunks/{index.B_EJflcs.js → index.fdf12170.js} +2 -2
- package/dist/chunks/{index.B_EJflcs.js.map → index.fdf12170.js.map} +1 -1
- package/dist/chunks/{info.CyeBsLgt.js → info.a549470f.js} +12 -10
- package/dist/chunks/{info.CyeBsLgt.js.map → info.a549470f.js.map} +1 -1
- package/dist/chunks/internal-error.35cbb071.js +5 -0
- package/dist/chunks/internal-error.35cbb071.js.map +1 -0
- package/dist/chunks/internal-error.9a4823ed.js +5 -0
- package/dist/chunks/internal-error.9a4823ed.js.map +1 -0
- package/dist/chunks/{keyboard-navigation.Clz1jOaA.js → keyboard-navigation.bbc3d15c.js} +2 -2
- package/dist/chunks/{keyboard-navigation.Clz1jOaA.js.map → keyboard-navigation.bbc3d15c.js.map} +1 -1
- package/dist/chunks/listbox-option-tag.bac3121a.js +46 -0
- package/dist/chunks/listbox-option-tag.bac3121a.js.map +1 -0
- package/dist/chunks/loading-button.b5dca406.js +101 -0
- package/dist/chunks/loading-button.b5dca406.js.map +1 -0
- package/dist/chunks/{modal-fullscreen.keys.CMba3hYp.js → modal-fullscreen.keys.b9f31632.js} +1 -1
- package/dist/chunks/{modal-fullscreen.keys.CMba3hYp.js.map → modal-fullscreen.keys.b9f31632.js.map} +1 -1
- package/dist/chunks/no-results-found.58856d70.js +5 -0
- package/dist/chunks/no-results-found.58856d70.js.map +1 -0
- package/dist/chunks/no-results-found.cbb12f78.js +5 -0
- package/dist/chunks/no-results-found.cbb12f78.js.map +1 -0
- package/dist/chunks/notifications-cleared.71025c22.js +5 -0
- package/dist/chunks/notifications-cleared.71025c22.js.map +1 -0
- package/dist/chunks/notifications-cleared.c4f4bed4.js +5 -0
- package/dist/chunks/notifications-cleared.c4f4bed4.js.map +1 -0
- package/dist/chunks/{on-click-outside.CcNG5w7_.js → on-click-outside.3e0c3e2a.js} +1 -1
- package/dist/chunks/{on-click-outside.CcNG5w7_.js.map → on-click-outside.3e0c3e2a.js.map} +1 -1
- package/dist/chunks/page-not-found.a500440d.js +5 -0
- package/dist/chunks/page-not-found.a500440d.js.map +1 -0
- package/dist/chunks/page-not-found.d1a84ba7.js +5 -0
- package/dist/chunks/page-not-found.d1a84ba7.js.map +1 -0
- package/dist/chunks/{payment-method.D9Qx-s4V.js → payment-method.c55dd352.js} +21 -19
- package/dist/chunks/{payment-method.D9Qx-s4V.js.map → payment-method.c55dd352.js.map} +1 -1
- package/dist/chunks/planned-maintenance.7fa5ac16.js +5 -0
- package/dist/chunks/planned-maintenance.7fa5ac16.js.map +1 -0
- package/dist/chunks/planned-maintenance.cff01aed.js +5 -0
- package/dist/chunks/planned-maintenance.cff01aed.js.map +1 -0
- package/dist/chunks/{radio-input.BQcC0INR.js → radio-input.e34c0fa8.js} +17 -15
- package/dist/chunks/{radio-input.BQcC0INR.js.map → radio-input.e34c0fa8.js.map} +1 -1
- package/dist/chunks/referrals.178ce0eb.js +5 -0
- package/dist/chunks/referrals.178ce0eb.js.map +1 -0
- package/dist/chunks/referrals.599047da.js +5 -0
- package/dist/chunks/referrals.599047da.js.map +1 -0
- package/dist/chunks/{refresh.BKI9WwKh.js → refresh.2ef3d8a9.js} +10 -8
- package/dist/chunks/{refresh.BKI9WwKh.js.map → refresh.2ef3d8a9.js.map} +1 -1
- package/dist/chunks/{resize.Bqks3WUm.js → resize.a041304d.js} +1 -1
- package/dist/chunks/{resize.Bqks3WUm.js.map → resize.a041304d.js.map} +1 -1
- package/dist/chunks/{search.CBKhp7zB.js → search.83bba8e3.js} +13 -11
- package/dist/chunks/{search.CBKhp7zB.js.map → search.83bba8e3.js.map} +1 -1
- package/dist/chunks/{segmented-control.DGjIC7Ab.js → segmented-control.9f657859.js} +31 -27
- package/dist/chunks/{segmented-control.DGjIC7Ab.js.map → segmented-control.9f657859.js.map} +1 -1
- package/dist/chunks/{sidepanel.keys.R0DKQuYx.js → sidepanel.keys.1ed8a57c.js} +1 -1
- package/dist/chunks/{sidepanel.keys.R0DKQuYx.js.map → sidepanel.keys.1ed8a57c.js.map} +1 -1
- package/dist/chunks/success.41981fe8.js +5 -0
- package/dist/chunks/success.41981fe8.js.map +1 -0
- package/dist/chunks/success.77fac78b.js +5 -0
- package/dist/chunks/success.77fac78b.js.map +1 -0
- package/dist/chunks/{summary-grid.keys.BBbFrFGF.js → summary-grid.keys.1d1028c2.js} +1 -1
- package/dist/chunks/{summary-grid.keys.BBbFrFGF.js.map → summary-grid.keys.1d1028c2.js.map} +1 -1
- package/dist/chunks/{tabs.keys.Bc2pSKRw.js → tabs.keys.358742f2.js} +1 -1
- package/dist/chunks/{tabs.keys.Bc2pSKRw.js.map → tabs.keys.358742f2.js.map} +1 -1
- package/dist/chunks/{teleport.CQKBJZU5.js → teleport.84b0f20b.js} +16 -14
- package/dist/chunks/{teleport.CQKBJZU5.js.map → teleport.84b0f20b.js.map} +1 -1
- package/dist/chunks/{tooltip.DR8rbIYw.js → tooltip.77610390.js} +32 -29
- package/dist/chunks/{tooltip.DR8rbIYw.js.map → tooltip.77610390.js.map} +1 -1
- package/dist/chunks/{unique-id.XFfoKuc2.js → unique-id.a2a2b458.js} +20 -14
- package/dist/chunks/{unique-id.XFfoKuc2.js.map → unique-id.a2a2b458.js.map} +1 -1
- package/dist/chunks/upload-files.2708eca7.js +5 -0
- package/dist/chunks/upload-files.2708eca7.js.map +1 -0
- package/dist/chunks/upload-files.b4cd9f8b.js +5 -0
- package/dist/chunks/upload-files.b4cd9f8b.js.map +1 -0
- package/dist/chunks/{use-bento-toast-controller.BifdE4ak.js → use-bento-toast-controller.5dac1f3c.js} +4 -4
- package/dist/chunks/{use-bento-toast-controller.BifdE4ak.js.map → use-bento-toast-controller.5dac1f3c.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.CVLzxvTi.js → use-cached-selected-values.148bfd7c.js} +237 -217
- package/dist/chunks/use-cached-selected-values.148bfd7c.js.map +1 -0
- package/dist/chunks/{use-click-outside.DbjR7Lh4.js → use-click-outside.941d1600.js} +2 -2
- package/dist/chunks/{use-click-outside.DbjR7Lh4.js.map → use-click-outside.941d1600.js.map} +1 -1
- package/dist/chunks/{use-country-items.C25TI6tp.js → use-country-items.6b7985bf.js} +4 -4
- package/dist/chunks/{use-country-items.C25TI6tp.js.map → use-country-items.6b7985bf.js.map} +1 -1
- package/dist/chunks/{use-default-slot-validator.BDn0wkYP.js → use-default-slot-validator.b9bff4c6.js} +2 -2
- package/dist/chunks/{use-default-slot-validator.BDn0wkYP.js.map → use-default-slot-validator.b9bff4c6.js.map} +1 -1
- package/dist/chunks/{use-expandable-content-height.GkjjbmPy.js → use-expandable-content-height.62fc84e5.js} +1 -1
- package/dist/chunks/{use-expandable-content-height.GkjjbmPy.js.map → use-expandable-content-height.62fc84e5.js.map} +1 -1
- package/dist/chunks/{use-form-layout-loading.D3lALhtC.js → use-form-layout-loading.d03e5d48.js} +2 -2
- package/dist/chunks/{use-form-layout-loading.D3lALhtC.js.map → use-form-layout-loading.d03e5d48.js.map} +1 -1
- package/dist/chunks/use-has-slot.fbeb19ec.js +6 -0
- package/dist/chunks/{use-has-slot.C9lQZ6nz.js.map → use-has-slot.fbeb19ec.js.map} +1 -1
- package/dist/chunks/{warning-filled.CLKRzGMT.js → warning-filled.1ced4163.js} +12 -10
- package/dist/chunks/{warning-filled.CLKRzGMT.js.map → warning-filled.1ced4163.js.map} +1 -1
- package/dist/chunks/wrong-environment.c73b0bc0.js +5 -0
- package/dist/chunks/wrong-environment.c73b0bc0.js.map +1 -0
- package/dist/chunks/wrong-environment.f890a237.js +5 -0
- package/dist/chunks/wrong-environment.f890a237.js.map +1 -0
- package/dist/click-outside.js +20 -2
- package/dist/click-outside.js.map +1 -1
- package/dist/code-snippet.js +2034 -5
- package/dist/code-snippet.js.map +1 -1
- package/dist/country.js +97 -8
- package/dist/country.js.map +1 -1
- package/dist/currency.js +112 -3
- package/dist/currency.js.map +1 -1
- package/dist/dashboard-template.js +106 -3
- package/dist/dashboard-template.js.map +1 -1
- package/dist/dashed-underline.js +58 -2
- package/dist/dashed-underline.js.map +1 -1
- package/dist/data-grid-template.js +65 -2
- package/dist/data-grid-template.js.map +1 -1
- package/dist/data-grid.js +2057 -8
- package/dist/data-grid.js.map +1 -1
- package/dist/date-picker.js +197 -5
- package/dist/date-picker.js.map +1 -1
- package/dist/date-range-picker.js +2 -2
- package/dist/date.js +1 -1
- package/dist/divider.js +1 -1
- package/dist/dropdown.js +228 -12
- package/dist/dropdown.js.map +1 -1
- package/dist/empty-state.js +143 -5
- package/dist/empty-state.js.map +1 -1
- package/dist/filter-bar.js +2164 -5
- package/dist/filter-bar.js.map +1 -1
- package/dist/focus-trap.js +1 -1
- package/dist/form-layout.js +192 -5
- package/dist/form-layout.js.map +1 -1
- package/dist/header.js +246 -2
- package/dist/header.js.map +1 -1
- package/dist/image.js +81 -4
- package/dist/image.js.map +1 -1
- package/dist/index.js +279 -274
- package/dist/index.js.map +1 -1
- package/dist/info-icon.js +40 -2
- package/dist/info-icon.js.map +1 -1
- package/dist/input-field.js +224 -7
- package/dist/input-field.js.map +1 -1
- package/dist/inspector.js +64 -0
- package/dist/inspector.js.map +1 -0
- package/dist/internal.js +29 -30
- package/dist/link.js +1 -1
- package/dist/loading-indicator.js +47 -3
- package/dist/loading-indicator.js.map +1 -1
- package/dist/menu.js +1 -1
- package/dist/modal-fullscreen.js +197 -3
- package/dist/modal-fullscreen.js.map +1 -1
- package/dist/modal.js +451 -11
- package/dist/modal.js.map +1 -1
- package/dist/pagination.js +507 -2
- package/dist/pagination.js.map +1 -1
- package/dist/payment-method.js +4 -4
- package/dist/payment-method.js.map +1 -1
- package/dist/popover.js +1 -1
- package/dist/popper-container.js +1 -1
- package/dist/radio-group.js +213 -6
- package/dist/radio-group.js.map +1 -1
- package/dist/search-bar.js +101 -6
- package/dist/search-bar.js.map +1 -1
- package/dist/secondary-nav.js +115 -2
- package/dist/secondary-nav.js.map +1 -1
- package/dist/segmented-control.js +4 -4
- package/dist/segmented-control.js.map +1 -1
- package/dist/selection-card.js +248 -4
- package/dist/selection-card.js.map +1 -1
- package/dist/sidepanel.js +189 -4
- package/dist/sidepanel.js.map +1 -1
- package/dist/status.js +35 -3
- package/dist/status.js.map +1 -1
- package/dist/stepper.js +237 -5
- package/dist/stepper.js.map +1 -1
- package/dist/structured-list.js +1 -1
- package/dist/summary-grid.js +584 -9
- package/dist/summary-grid.js.map +1 -1
- package/dist/tabs.js +141 -3
- package/dist/tabs.js.map +1 -1
- package/dist/tag.js +63 -3
- package/dist/tag.js.map +1 -1
- package/dist/textarea.js +190 -2
- package/dist/textarea.js.map +1 -1
- package/dist/timeline.js +369 -7
- package/dist/timeline.js.map +1 -1
- package/dist/toast.js +168 -2
- package/dist/toast.js.map +1 -1
- package/dist/toggle.js +120 -4
- package/dist/toggle.js.map +1 -1
- package/dist/tutorial.js +340 -2
- package/dist/tutorial.js.map +1 -1
- package/dist/typography.js +1 -1
- package/dist/web-types.json +142 -9
- package/package.json +3 -3
- package/dist/assets/avatar-image.css +0 -1
- package/dist/assets/code-snippet.css +0 -1
- package/dist/assets/filter-bar.css +0 -1
- package/dist/assets/input-field.css +0 -1
- package/dist/assets/radio-group.css +0 -1
- package/dist/assets/search-bar.css +0 -1
- package/dist/assets/selection-card-group.css +0 -1
- package/dist/assets/structured-list-item.css +0 -1
- package/dist/assets/textarea.css +0 -1
- package/dist/assets/timeline-item.css +0 -1
- package/dist/assets/toggle.css +0 -1
- package/dist/assets/tutorial.css +0 -1
- package/dist/avatar-image.js +0 -7
- package/dist/avatar-image.js.map +0 -1
- package/dist/chunks/1-generic-use.CZhwP2Yc.js +0 -5
- package/dist/chunks/1-generic-use.CZhwP2Yc.js.map +0 -1
- package/dist/chunks/1-generic-use.R6x8PEGA.js +0 -5
- package/dist/chunks/1-generic-use.R6x8PEGA.js.map +0 -1
- package/dist/chunks/2-generic-use.CNKjB4B7.js +0 -5
- package/dist/chunks/2-generic-use.CNKjB4B7.js.map +0 -1
- package/dist/chunks/2-generic-use.w0fUhovx.js +0 -5
- package/dist/chunks/2-generic-use.w0fUhovx.js.map +0 -1
- package/dist/chunks/3-generic-use.BLEzR04g.js +0 -5
- package/dist/chunks/3-generic-use.BLEzR04g.js.map +0 -1
- package/dist/chunks/3-generic-use.D3NFHgI4.js +0 -5
- package/dist/chunks/3-generic-use.D3NFHgI4.js.map +0 -1
- package/dist/chunks/4-generic-use.CULEpvgj.js +0 -5
- package/dist/chunks/4-generic-use.CULEpvgj.js.map +0 -1
- package/dist/chunks/4-generic-use.D82y3n39.js +0 -5
- package/dist/chunks/4-generic-use.D82y3n39.js.map +0 -1
- package/dist/chunks/_plugin-vue2_normalizer.CeySl7Fu.js +0 -11
- package/dist/chunks/_plugin-vue2_normalizer.CeySl7Fu.js.map +0 -1
- package/dist/chunks/accordion-item.DmnrjNzw.js +0 -100
- package/dist/chunks/accordion-item.DmnrjNzw.js.map +0 -1
- package/dist/chunks/action-bar.Bebh6PHI.js +0 -147
- package/dist/chunks/action-bar.Bebh6PHI.js.map +0 -1
- package/dist/chunks/adding-payment-methods.BJZLPxtM.js +0 -5
- package/dist/chunks/adding-payment-methods.BJZLPxtM.js.map +0 -1
- package/dist/chunks/adding-payment-methods.Dle8zt43.js +0 -5
- package/dist/chunks/adding-payment-methods.Dle8zt43.js.map +0 -1
- package/dist/chunks/adyen-giving.Ffw_DlJK.js +0 -5
- package/dist/chunks/adyen-giving.Ffw_DlJK.js.map +0 -1
- package/dist/chunks/adyen-giving.LiKHj_jY.js +0 -5
- package/dist/chunks/adyen-giving.LiKHj_jY.js.map +0 -1
- package/dist/chunks/alert.CJyTM4Az.js +0 -96
- package/dist/chunks/alert.CJyTM4Az.js.map +0 -1
- package/dist/chunks/avatar-image.DhlR-7Yg.js +0 -47
- package/dist/chunks/avatar-image.DhlR-7Yg.js.map +0 -1
- package/dist/chunks/base-button.DER7_IsF.js +0 -86
- package/dist/chunks/card.70Xvba2C.js +0 -115
- package/dist/chunks/card.70Xvba2C.js.map +0 -1
- package/dist/chunks/checkbox-group.B-KdeRXC.js +0 -152
- package/dist/chunks/checkbox-group.B-KdeRXC.js.map +0 -1
- package/dist/chunks/checkmark-circle-fill.DVl6QSwm.js +0 -24
- package/dist/chunks/click-outside.DABh6NLr.js +0 -23
- package/dist/chunks/click-outside.DABh6NLr.js.map +0 -1
- package/dist/chunks/code-snippet.C4IbjAhH.js +0 -968
- package/dist/chunks/code-snippet.C4IbjAhH.js.map +0 -1
- package/dist/chunks/country.KayLT0zy.js +0 -93
- package/dist/chunks/country.KayLT0zy.js.map +0 -1
- package/dist/chunks/currency.H7n7RQiX.js +0 -113
- package/dist/chunks/currency.H7n7RQiX.js.map +0 -1
- package/dist/chunks/dashboard-section.BcH-_en7.js +0 -105
- package/dist/chunks/dashboard-section.BcH-_en7.js.map +0 -1
- package/dist/chunks/dashed-underline.ChUlcFJR.js +0 -59
- package/dist/chunks/dashed-underline.ChUlcFJR.js.map +0 -1
- package/dist/chunks/data-grid-template.DqG5bNeD.js +0 -66
- package/dist/chunks/data-grid-template.DqG5bNeD.js.map +0 -1
- package/dist/chunks/data-grid.CvHAdmvs.js +0 -2022
- package/dist/chunks/data-grid.CvHAdmvs.js.map +0 -1
- package/dist/chunks/date-picker.ByP2Wpo0.js +0 -196
- package/dist/chunks/date-picker.ByP2Wpo0.js.map +0 -1
- package/dist/chunks/date-range-picker.DrnklTJ-.js.map +0 -1
- package/dist/chunks/date.DKjxxR6P.js.map +0 -1
- package/dist/chunks/divider.BZfeYmB9.js +0 -30
- package/dist/chunks/divider.BZfeYmB9.js.map +0 -1
- package/dist/chunks/dropdown-default-textbox.CKOkl_Qa.js.map +0 -1
- package/dist/chunks/dropdown-tag.DCMKQy-E.js +0 -214
- package/dist/chunks/dropdown-tag.DCMKQy-E.js.map +0 -1
- package/dist/chunks/dropdown.yhhQCKve.js.map +0 -1
- package/dist/chunks/empty-state.BqVOj4v1.js +0 -151
- package/dist/chunks/empty-state.BqVOj4v1.js.map +0 -1
- package/dist/chunks/error-message.BSxUoE3_.js +0 -107
- package/dist/chunks/events.CMzGybJJ.js +0 -47
- package/dist/chunks/filter-bar.AhsOPMZ1.js +0 -2119
- package/dist/chunks/filter-bar.AhsOPMZ1.js.map +0 -1
- package/dist/chunks/focus-trap.DSkLNO_i.js.map +0 -1
- package/dist/chunks/form-layout-title.BzNU0B72.js +0 -187
- package/dist/chunks/form-layout-title.BzNU0B72.js.map +0 -1
- package/dist/chunks/header.DmKHCmXh.js +0 -245
- package/dist/chunks/header.DmKHCmXh.js.map +0 -1
- package/dist/chunks/image.B3uqhFjl.js +0 -82
- package/dist/chunks/image.B3uqhFjl.js.map +0 -1
- package/dist/chunks/index.OCPp3NST.js +0 -126
- package/dist/chunks/info-icon.CLguYHRt.js +0 -41
- package/dist/chunks/info-icon.CLguYHRt.js.map +0 -1
- package/dist/chunks/input-field.BnlEPPYr.js +0 -218
- package/dist/chunks/input-field.BnlEPPYr.js.map +0 -1
- package/dist/chunks/internal-error.BLZodVBE.js +0 -5
- package/dist/chunks/internal-error.BLZodVBE.js.map +0 -1
- package/dist/chunks/internal-error.BmrwJFpR.js +0 -5
- package/dist/chunks/internal-error.BmrwJFpR.js.map +0 -1
- package/dist/chunks/link.DJ1A53gF.js.map +0 -1
- package/dist/chunks/listbox-option-tag.BDjsYOE1.js +0 -75
- package/dist/chunks/listbox-option-tag.BDjsYOE1.js.map +0 -1
- package/dist/chunks/loading-button.CoF1IhEU.js +0 -97
- package/dist/chunks/loading-button.CoF1IhEU.js.map +0 -1
- package/dist/chunks/loading-indicator.DXc7I1Lm.js +0 -48
- package/dist/chunks/loading-indicator.DXc7I1Lm.js.map +0 -1
- package/dist/chunks/menu.2TwUMlA9.js.map +0 -1
- package/dist/chunks/modal-fullscreen.BB_8EMNo.js +0 -196
- package/dist/chunks/modal-fullscreen.BB_8EMNo.js.map +0 -1
- package/dist/chunks/modal.DLwvcaRx.js +0 -439
- package/dist/chunks/modal.DLwvcaRx.js.map +0 -1
- package/dist/chunks/no-results-found.Bg_ZcEid.js +0 -5
- package/dist/chunks/no-results-found.Bg_ZcEid.js.map +0 -1
- package/dist/chunks/no-results-found.BqvYsBR6.js +0 -5
- package/dist/chunks/no-results-found.BqvYsBR6.js.map +0 -1
- package/dist/chunks/notifications-cleared.BMZk37uf.js +0 -5
- package/dist/chunks/notifications-cleared.BMZk37uf.js.map +0 -1
- package/dist/chunks/notifications-cleared.C7W9ZXY7.js +0 -5
- package/dist/chunks/notifications-cleared.C7W9ZXY7.js.map +0 -1
- package/dist/chunks/page-not-found.COJLPVaU.js +0 -5
- package/dist/chunks/page-not-found.COJLPVaU.js.map +0 -1
- package/dist/chunks/page-not-found.DWW6W-PZ.js +0 -5
- package/dist/chunks/page-not-found.DWW6W-PZ.js.map +0 -1
- package/dist/chunks/pagination.BXjbVe4Z.js +0 -494
- package/dist/chunks/pagination.BXjbVe4Z.js.map +0 -1
- package/dist/chunks/payment-method.types.CJKfZQN5.js +0 -5
- package/dist/chunks/payment-method.types.CJKfZQN5.js.map +0 -1
- package/dist/chunks/planned-maintenance.C61sWB9h.js +0 -5
- package/dist/chunks/planned-maintenance.C61sWB9h.js.map +0 -1
- package/dist/chunks/planned-maintenance.jmWYTdet.js +0 -5
- package/dist/chunks/planned-maintenance.jmWYTdet.js.map +0 -1
- package/dist/chunks/popover.B8YH92W8.js.map +0 -1
- package/dist/chunks/popper-container.Bt02N3o1.js.map +0 -1
- package/dist/chunks/radio-group.CPbBFTzB.js +0 -211
- package/dist/chunks/radio-group.CPbBFTzB.js.map +0 -1
- package/dist/chunks/referrals.BvtT-kQS.js +0 -5
- package/dist/chunks/referrals.BvtT-kQS.js.map +0 -1
- package/dist/chunks/referrals.aX8WZigH.js +0 -5
- package/dist/chunks/referrals.aX8WZigH.js.map +0 -1
- package/dist/chunks/search-bar.CsAgO-t5.js +0 -89
- package/dist/chunks/search-bar.CsAgO-t5.js.map +0 -1
- package/dist/chunks/secondary-nav.CNgpPxUU.js +0 -97
- package/dist/chunks/secondary-nav.CNgpPxUU.js.map +0 -1
- package/dist/chunks/segmented-control.types.BHRLV8KU.js +0 -5
- package/dist/chunks/segmented-control.types.BHRLV8KU.js.map +0 -1
- package/dist/chunks/selection-card-group.DlOs8BkR.js +0 -247
- package/dist/chunks/selection-card-group.DlOs8BkR.js.map +0 -1
- package/dist/chunks/sidepanel.BBjm2QvZ.js +0 -187
- package/dist/chunks/sidepanel.BBjm2QvZ.js.map +0 -1
- package/dist/chunks/status.types.BhbOYpZx.js +0 -36
- package/dist/chunks/status.types.BhbOYpZx.js.map +0 -1
- package/dist/chunks/step.DY8Txb6a.js +0 -234
- package/dist/chunks/step.DY8Txb6a.js.map +0 -1
- package/dist/chunks/structured-list-item.C9NTVDvT.js.map +0 -1
- package/dist/chunks/success.DhioLvPD.js +0 -5
- package/dist/chunks/success.DhioLvPD.js.map +0 -1
- package/dist/chunks/success.nNwxJRBS.js +0 -5
- package/dist/chunks/success.nNwxJRBS.js.map +0 -1
- package/dist/chunks/summary-grid-item-custom.CJpDnoPw.js +0 -573
- package/dist/chunks/summary-grid-item-custom.CJpDnoPw.js.map +0 -1
- package/dist/chunks/tabs.CE65f3E_.js +0 -140
- package/dist/chunks/tabs.CE65f3E_.js.map +0 -1
- package/dist/chunks/tag.bhKrZHTU.js +0 -64
- package/dist/chunks/tag.bhKrZHTU.js.map +0 -1
- package/dist/chunks/textarea.CcKbtQBs.js +0 -208
- package/dist/chunks/textarea.CcKbtQBs.js.map +0 -1
- package/dist/chunks/timeline-item.ScTrUBKC.js +0 -364
- package/dist/chunks/timeline-item.ScTrUBKC.js.map +0 -1
- package/dist/chunks/toast.0EYDj8o-.js +0 -165
- package/dist/chunks/toast.0EYDj8o-.js.map +0 -1
- package/dist/chunks/toggle-button.2U-vbQhk.js +0 -83
- package/dist/chunks/toggle-button.2U-vbQhk.js.map +0 -1
- package/dist/chunks/toggle.CiOVTWlk.js +0 -121
- package/dist/chunks/toggle.CiOVTWlk.js.map +0 -1
- package/dist/chunks/tutorial.DMm12L0S.js +0 -335
- package/dist/chunks/tutorial.DMm12L0S.js.map +0 -1
- package/dist/chunks/typography.Bjtu3Gca.js.map +0 -1
- package/dist/chunks/upload-files.5wQwbfkp.js +0 -5
- package/dist/chunks/upload-files.5wQwbfkp.js.map +0 -1
- package/dist/chunks/upload-files.jTQY6y2X.js +0 -5
- package/dist/chunks/upload-files.jTQY6y2X.js.map +0 -1
- package/dist/chunks/use-cached-selected-values.CVLzxvTi.js.map +0 -1
- package/dist/chunks/use-has-slot.C9lQZ6nz.js +0 -6
- package/dist/chunks/wrong-environment.BOsyKdRI.js +0 -5
- package/dist/chunks/wrong-environment.BOsyKdRI.js.map +0 -1
- package/dist/chunks/wrong-environment.BiHTPtbJ.js +0 -5
- package/dist/chunks/wrong-environment.BiHTPtbJ.js.map +0 -1
- /package/dist/assets/{badge.css → index.css} +0 -0
- /package/dist/assets/{tabs.css → index10.css} +0 -0
- /package/dist/assets/{date-picker.css → index12.css} +0 -0
- /package/dist/assets/{empty-state.css → index13.css} +0 -0
- /package/dist/assets/{focus-trap.css → index15.css} +0 -0
- /package/dist/assets/{form-layout-title.css → index16.css} +0 -0
- /package/dist/assets/{info-icon.css → index17.css} +0 -0
- /package/dist/assets/{dashed-underline.css → index2.css} +0 -0
- /package/dist/assets/{date-range-picker.css → index20.css} +0 -0
- /package/dist/assets/{status.css → index25.css} +0 -0
- /package/dist/assets/{step.css → index26.css} +0 -0
- /package/dist/assets/{link.css → index27.css} +0 -0
- /package/dist/assets/{alert.css → index29.css} +0 -0
- /package/dist/assets/{header.css → index31.css} +0 -0
- /package/dist/assets/{loading-indicator.css → index32.css} +0 -0
- /package/dist/assets/{dropdown-tag.css → index34.css} +0 -0
- /package/dist/assets/{popper-container.css → index35.css} +0 -0
- /package/dist/assets/{summary-grid-item-custom.css → index37.css} +0 -0
- /package/dist/assets/{toggle-button.css → index4.css} +0 -0
- /package/dist/assets/{tag.css → index41.css} +0 -0
- /package/dist/assets/{toast.css → index44.css} +0 -0
- /package/dist/assets/{typography.css → index46.css} +0 -0
- /package/dist/assets/{data-grid-template.css → index49.css} +0 -0
- /package/dist/assets/{pagination.css → index50.css} +0 -0
- /package/dist/assets/{checkbox-group.css → index6.css} +0 -0
- /package/dist/assets/{country.css → index8.css} +0 -0
- /package/dist/assets/{divider.css → index9.css} +0 -0
- /package/dist/assets/{cross.css → refresh.css} +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as i, toRefs as r, computed as l, onMounted as c } from "vue";
|
|
2
|
-
import { B as
|
|
3
|
-
import {
|
|
4
|
-
import { B as d } from "./button-actions.
|
|
5
|
-
import { n as
|
|
2
|
+
import { B as _ } from "./index.e29a6907.js";
|
|
3
|
+
import { B as u } from "./button.9184ade9.js";
|
|
4
|
+
import { B as d } from "./button-actions.430d7510.js";
|
|
5
|
+
import { n as p } from "./_plugin-vue2_normalizer.71e2aa87.js";
|
|
6
6
|
import "../assets/footer-actions.css";
|
|
7
|
-
const
|
|
8
|
-
...
|
|
7
|
+
const f = {}, g = /* @__PURE__ */ i({
|
|
8
|
+
...f,
|
|
9
9
|
__name: "footer-actions",
|
|
10
10
|
props: {
|
|
11
11
|
/**
|
|
@@ -62,7 +62,7 @@ const p = {}, g = /* @__PURE__ */ i({
|
|
|
62
62
|
leftAligned: o.value.length === 3 ? [
|
|
63
63
|
{
|
|
64
64
|
...o.value[o.value.length - 1],
|
|
65
|
-
variant:
|
|
65
|
+
variant: u.SECONDARY
|
|
66
66
|
}
|
|
67
67
|
] : null,
|
|
68
68
|
rightAligned: [...n]
|
|
@@ -75,22 +75,24 @@ const p = {}, g = /* @__PURE__ */ i({
|
|
|
75
75
|
throw new Error(
|
|
76
76
|
"Not more than 2 action buttons may be provided with actions label to Bento Modal default variant"
|
|
77
77
|
);
|
|
78
|
-
}), { __sfc: !0, props: t, actions: o, destructiveActions: e, alignedActions: s, BentoTypography:
|
|
78
|
+
}), { __sfc: !0, props: t, actions: o, destructiveActions: e, alignedActions: s, BentoTypography: _, BentoButtonActions: d };
|
|
79
79
|
}
|
|
80
80
|
});
|
|
81
81
|
var v = function() {
|
|
82
82
|
var t = this, o = t._self._c, e = t._self._setupProxy;
|
|
83
83
|
return o("div", { staticClass: "b-footer-actions" }, [o("div", { staticClass: "b-footer-actions__wrapper" }, [t.actionsLabel ? o(e.BentoTypography, { staticClass: "b-footer-actions__label", attrs: { el: "span", variant: "body", stronger: "" } }, [t._v(" " + t._s(t.actionsLabel) + " ")]) : t._e(), e.alignedActions.leftAligned ? o(e.BentoButtonActions, { staticClass: "b-footer-actions__left-group", attrs: { actions: e.alignedActions.leftAligned, layout: "buttons-start" } }) : t._e(), o(e.BentoButtonActions, { staticClass: "b-footer-actions__right-group", attrs: { actions: e.alignedActions.rightAligned, layout: "buttons-end" } })], 1)]);
|
|
84
|
-
}, m = [], b = /* @__PURE__ */
|
|
84
|
+
}, m = [], b = /* @__PURE__ */ p(
|
|
85
85
|
g,
|
|
86
86
|
v,
|
|
87
87
|
m,
|
|
88
88
|
!1,
|
|
89
89
|
null,
|
|
90
|
-
"97d2cb3e"
|
|
90
|
+
"97d2cb3e",
|
|
91
|
+
null,
|
|
92
|
+
null
|
|
91
93
|
);
|
|
92
94
|
const w = b.exports;
|
|
93
95
|
export {
|
|
94
96
|
w as F
|
|
95
97
|
};
|
|
96
|
-
//# sourceMappingURL=footer-actions.
|
|
98
|
+
//# sourceMappingURL=footer-actions.b4fe4fdb.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"footer-actions.
|
|
1
|
+
{"version":3,"file":"footer-actions.b4fe4fdb.js","sources":["../../src/components/internal/footer-actions/footer-actions.vue"],"sourcesContent":["<template>\n <div class=\"b-footer-actions\">\n <div class=\"b-footer-actions__wrapper\">\n <bento-typography v-if=\"actionsLabel\" class=\"b-footer-actions__label\" el=\"span\" variant=\"body\" stronger>\n {{ actionsLabel }}\n </bento-typography>\n\n <bento-button-actions\n v-if=\"alignedActions.leftAligned\"\n class=\"b-footer-actions__left-group\"\n :actions=\"alignedActions.leftAligned\"\n layout=\"buttons-start\"\n ></bento-button-actions>\n\n <bento-button-actions\n class=\"b-footer-actions__right-group\"\n :actions=\"alignedActions.rightAligned\"\n layout=\"buttons-end\"\n ></bento-button-actions>\n </div>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { BentoTypography } from '@/components/typography';\n import { computed, onMounted, PropType, toRefs } from 'vue';\n import { BentoButtonActions, BentoButtonActionsList, BentoButtonVariant } from '@/components/button';\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 required: true,\n },\n /**\n * Text label that is displayed left to the action buttons\n */\n actionsLabel: {\n type: String,\n default: null,\n },\n /**\n * If passed - sets first button color to red\n */\n destructiveActions: {\n type: Boolean,\n default: false,\n },\n });\n\n const { actions, destructiveActions } = toRefs(props);\n\n const alignedActions = computed(() => {\n const rightAlignedButtons =\n actions.value.length < 3 ? actions.value : actions.value.slice(0, actions.value.length - 1);\n\n // Add red color to the 1-st Action button\n rightAlignedButtons[0].critical = destructiveActions.value || rightAlignedButtons[0].critical;\n\n return {\n leftAligned:\n actions.value.length === 3\n ? [\n {\n ...actions.value[actions.value.length - 1],\n variant: BentoButtonVariant.SECONDARY,\n },\n ]\n : null,\n rightAligned: [...rightAlignedButtons],\n };\n });\n\n onMounted(() => {\n if (props.actions && props.actions.length > 3) {\n throw new Error('Not more than 3 action buttons may be provided to Bento Modal default variant');\n }\n\n if (props.actionsLabel && props.actions && props.actions.length > 2) {\n throw new Error(\n 'Not more than 2 action buttons may be provided with actions label to Bento Modal default variant'\n );\n }\n });\n</script>\n\n<script lang=\"ts\">\n /**\n * Internal component to handle the logic of displaying actions in default Modal and Sidepanel\n\n * @example\n * import { FooterActions } from '@/components/internal/footer-actions';\n *\n * export default {\n * components: { FooterActions },\n * template: `\n * <footer-actions :actions=\"BentoButtonActionsList\" actions-label=\"Label\" :destructive-actions=\"true\" />\n * `\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./footer-actions.scss\" />\n"],"names":["__default__","actions","destructiveActions","toRefs","props","alignedActions","computed","rightAlignedButtons","BentoButtonVariant","onMounted"],"mappings":";;;;;;AA+HI,MAAAA,IAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAlDA,EAAA,SAAAC,GAAA,oBAAAC,EAAA,IAAAC,EAAAC,CAAA,GAEAC,IAAAC,EAAA,MAAA;AACI,YAAAC,IAAAN,EAAA,MAAA,SAAA,IAAAA,EAAA,QAAAA,EAAA,MAAA,MAAA,GAAAA,EAAA,MAAA,SAAA,CAAA;AAIA,aAAAM,EAAA,CAAA,EAAA,WAAAL,EAAA,SAAAK,EAAA,CAAA,EAAA,UAEA;AAAA,QAAO,aAAAN,EAAA,MAAA,WAAA,IAAA;AAAA,UAGO;AAAA,YACI,GAAAA,EAAA,MAAAA,EAAA,MAAA,SAAA,CAAA;AAAA,YAC6C,SAAAO,EAAA;AAAA,UACb;AAAA,QAChC,IAAA;AAAA,QAEJ,cAAA,CAAA,GAAAD,CAAA;AAAA,MAC2B;AAAA,IACzC,CAAA;AAGJ,WAAAE,EAAA,MAAA;AACI,UAAAL,EAAA,WAAAA,EAAA,QAAA,SAAA;AACI,cAAA,IAAA,MAAA,+EAAA;AAGJ,UAAAA,EAAA,gBAAAA,EAAA,WAAAA,EAAA,QAAA,SAAA;AACI,cAAA,IAAA;AAAA,UAAU;AAAA,QACN;AAAA,IAER,CAAA;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-layout.types.
|
|
1
|
+
{"version":3,"file":"form-layout.types.a7a1438d.js","sources":["../../src/components/form-layout/form-layout.types.ts"],"sourcesContent":["export const FORM_LAYOUT_LOADING_INJECTION_KEY = Symbol('form layout loading injection key');\n"],"names":["FORM_LAYOUT_LOADING_INJECTION_KEY"],"mappings":"AAAa,MAAAA,IAAoC,OAAO,mCAAmC;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./index.
|
|
1
|
+
import "./index.4c062058.js";
|
|
2
2
|
const n = (r, t) => t > 5 ? "" : Array.isArray(r) ? r != null && r[0].text ? r == null ? void 0 : r[0].text : n(r == null ? void 0 : r[0].children, t + 1) : r == null ? void 0 : r.text, u = (r) => (t) => {
|
|
3
3
|
var i;
|
|
4
4
|
return n((i = r[t]) == null ? void 0 : i.call(r), 1);
|
|
@@ -6,4 +6,4 @@ const n = (r, t) => t > 5 ? "" : Array.isArray(r) ? r != null && r[0].text ? r =
|
|
|
6
6
|
export {
|
|
7
7
|
u as g
|
|
8
8
|
};
|
|
9
|
-
//# sourceMappingURL=get-slot-text.
|
|
9
|
+
//# sourceMappingURL=get-slot-text.99c3d860.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-slot-text.
|
|
1
|
+
{"version":3,"file":"get-slot-text.99c3d860.js","sources":["../../src/utils/ts/get-slot-text/get-slot-text.ts"],"sourcesContent":["import { isVue2 } from 'vue-demi';\nimport type { Slots } from 'vue/types/v3-setup-context';\n\n// TODO: remove these types when vue 2 support has been removed\ntype vue2VNode = { text?: string; children?: vue2VNode };\n\nconst getTextFromChildren = (vNode: vue2VNode[] | vue2VNode, nestedLevel: number): string => {\n // We should not be checking for slot text more than 5 layers. If we are end the recursion.\n if (nestedLevel > 5) {\n return '';\n }\n if (Array.isArray(vNode)) {\n if (isVue2 && (vNode as Array<vue2VNode>)?.[0].text) {\n return vNode?.[0].text;\n }\n return getTextFromChildren(vNode?.[0].children, nestedLevel + 1);\n }\n return isVue2 ? (vNode as vue2VNode)?.text : vNode?.toString();\n};\n\n/**\n * Get text recursively from slot by giving slot name.\n * This recursion will only occur 5 times before the method gives up and returns an empty string.\n * @param slots - the slots provided the the component's setup function\n * @returns A function who's first parameter is the name of the slot.\n */\nexport const getSlotText = (slots: Slots) => (name: string) =>\n getTextFromChildren(slots[name]?.() as vue2VNode[] | vue2VNode, 1);\n\nexport default getSlotText;\n"],"names":["getTextFromChildren","vNode","nestedLevel","getSlotText","slots","name","_a"],"mappings":";AAMA,MAAMA,IAAsB,CAACC,GAAgCC,MAErDA,IAAc,IACP,KAEP,MAAM,QAAQD,CAAK,IACJA,KAAA,QAAAA,EAA6B,GAAG,OACpCA,KAAA,gBAAAA,EAAQ,GAAG,OAEfD,EAAoBC,KAAA,gBAAAA,EAAQ,GAAG,UAAUC,IAAc,CAAC,IAElDD,KAAA,gBAAAA,EAAqB,MAS7BE,IAAc,CAACC,MAAiB,CAACC,MAAA;;AAC1C,SAAAL,GAAoBM,IAAAF,EAAMC,OAAN,gBAAAC,EAAA,KAAAF,IAA4C,CAAC;AAAA;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as r, computed as d } from "vue";
|
|
2
|
-
import { u as
|
|
3
|
-
import { n as
|
|
2
|
+
import { u as _ } from "./use-has-slot.fbeb19ec.js";
|
|
3
|
+
import { n as m } from "./_plugin-vue2_normalizer.71e2aa87.js";
|
|
4
4
|
import "../assets/grid-layout.css";
|
|
5
5
|
var s = /* @__PURE__ */ ((l) => (l.INLINE = "inline-size", l.SIZE = "size", l.NORMAL = "normal", l))(s || {});
|
|
6
6
|
const y = r({
|
|
@@ -31,9 +31,9 @@ const y = r({
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
setup(l, { slots: t }) {
|
|
34
|
-
const o =
|
|
35
|
-
var c,
|
|
36
|
-
if ((c = l.columnWidth) != null && c[a] && ((
|
|
34
|
+
const o = _(t), i = (a) => {
|
|
35
|
+
var c, u;
|
|
36
|
+
if ((c = l.columnWidth) != null && c[a] && ((u = l.columnWidth) == null ? void 0 : u[a]) !== "auto") {
|
|
37
37
|
const e = l.columnWidth[a];
|
|
38
38
|
return [
|
|
39
39
|
`b-grid-layout__column--${e.small}`,
|
|
@@ -50,7 +50,7 @@ const y = r({
|
|
|
50
50
|
}));
|
|
51
51
|
return {
|
|
52
52
|
// Values
|
|
53
|
-
computeColumnSize:
|
|
53
|
+
computeColumnSize: i,
|
|
54
54
|
computedClasses: n,
|
|
55
55
|
// Methods
|
|
56
56
|
hasSlot: o
|
|
@@ -60,17 +60,19 @@ const y = r({
|
|
|
60
60
|
var g = function() {
|
|
61
61
|
var t = this, o = t._self._c;
|
|
62
62
|
return t._self._setupProxy, o("div", { staticClass: "b-grid-layout", class: t.computedClasses, attrs: { "data-testid": "grid-layout" } }, [t.hasSlot("col-1") ? o("div", { staticClass: "b-grid-layout__column", class: t.computeColumnSize(0), attrs: { "data-testid": "grid-layout-col-1" } }, [t._t("col-1")], 2) : t._e(), t.hasSlot("col-2") ? o("div", { staticClass: "b-grid-layout__column", class: t.computeColumnSize(1), attrs: { "data-testid": "grid-layout-col-2" } }, [t._t("col-2")], 2) : t._e(), t.hasSlot("col-3") ? o("div", { staticClass: "b-grid-layout__column", class: t.computeColumnSize(2), attrs: { "data-testid": "grid-layout-col-3" } }, [t._t("col-3")], 2) : t._e(), t.hasSlot("col-4") ? o("div", { staticClass: "b-grid-layout__column", class: t.computeColumnSize(3), attrs: { "data-testid": "grid-layout-col-4" } }, [t._t("col-4")], 2) : t._e(), t.hasSlot("col-5") ? o("div", { staticClass: "b-grid-layout__column", class: t.computeColumnSize(4), attrs: { "data-testid": "grid-layout-col-5" } }, [t._t("col-5")], 2) : t._e(), t.hasSlot("col-6") ? o("div", { staticClass: "b-grid-layout__column", class: t.computeColumnSize(5), attrs: { "data-testid": "grid-layout-col-6" } }, [t._t("col-6")], 2) : t._e()]);
|
|
63
|
-
}, p = [],
|
|
63
|
+
}, p = [], f = /* @__PURE__ */ m(
|
|
64
64
|
y,
|
|
65
65
|
g,
|
|
66
66
|
p,
|
|
67
67
|
!1,
|
|
68
68
|
null,
|
|
69
|
-
"9e65023f"
|
|
69
|
+
"9e65023f",
|
|
70
|
+
null,
|
|
71
|
+
null
|
|
70
72
|
);
|
|
71
|
-
const
|
|
73
|
+
const C = f.exports;
|
|
72
74
|
export {
|
|
73
|
-
|
|
75
|
+
C as G,
|
|
74
76
|
s as a
|
|
75
77
|
};
|
|
76
|
-
//# sourceMappingURL=grid-layout.
|
|
78
|
+
//# sourceMappingURL=grid-layout.e0025286.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grid-layout.
|
|
1
|
+
{"version":3,"file":"grid-layout.e0025286.js","sources":["../../src/components/internal/grid-layout/grid-layout.types.ts","../../src/components/internal/grid-layout/grid-layout.vue"],"sourcesContent":["export enum GridLayoutContainerType {\n INLINE = 'inline-size',\n SIZE = 'size',\n NORMAL = 'normal',\n}\n\nexport interface GridLayoutColumnWidth {\n small: number | string;\n medium: number | string;\n large: number | string;\n}\n\nexport type GridLayoutColumnWidths = Array<'auto' | GridLayoutColumnWidth>;\n","<template>\n <div class=\"b-grid-layout\" :class=\"computedClasses\" data-testid=\"grid-layout\">\n <div\n v-if=\"hasSlot('col-1')\"\n class=\"b-grid-layout__column\"\n :class=\"computeColumnSize(0)\"\n data-testid=\"grid-layout-col-1\"\n >\n <slot name=\"col-1\"></slot>\n </div>\n <div\n v-if=\"hasSlot('col-2')\"\n class=\"b-grid-layout__column\"\n :class=\"computeColumnSize(1)\"\n data-testid=\"grid-layout-col-2\"\n >\n <slot name=\"col-2\"></slot>\n </div>\n <div\n v-if=\"hasSlot('col-3')\"\n class=\"b-grid-layout__column\"\n :class=\"computeColumnSize(2)\"\n data-testid=\"grid-layout-col-3\"\n >\n <slot name=\"col-3\"></slot>\n </div>\n <div\n v-if=\"hasSlot('col-4')\"\n class=\"b-grid-layout__column\"\n :class=\"computeColumnSize(3)\"\n data-testid=\"grid-layout-col-4\"\n >\n <slot name=\"col-4\"></slot>\n </div>\n <div\n v-if=\"hasSlot('col-5')\"\n class=\"b-grid-layout__column\"\n :class=\"computeColumnSize(4)\"\n data-testid=\"grid-layout-col-5\"\n >\n <slot name=\"col-5\"></slot>\n </div>\n <div\n v-if=\"hasSlot('col-6')\"\n class=\"b-grid-layout__column\"\n :class=\"computeColumnSize(5)\"\n data-testid=\"grid-layout-col-6\"\n >\n <slot name=\"col-6\"></slot>\n </div>\n </div>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, PropType } from 'vue';\n import { useHasSlot } from '@/composables';\n import { GridLayoutColumnWidth, GridLayoutColumnWidths, GridLayoutContainerType } from './grid-layout.types';\n\n /**\n * Component used to render the grid layout in the bento-summary-grid. For internal use only\n */\n export default defineComponent({\n name: 'grid-layout',\n props: {\n /**\n * Sets the responsive columns widths for the grid.\n */\n columnWidth: {\n type: Array as PropType<GridLayoutColumnWidths>,\n default: null,\n validator: (array: GridLayoutColumnWidths) => array && array.length <= 6,\n },\n\n /**\n * Set the type of CSS container the grid layout has\n * @values inline-size, size, normal\n */\n containerType: {\n type: String as PropType<GridLayoutContainerType>,\n default: GridLayoutContainerType.INLINE,\n },\n\n /**\n * Sets the gap in the grid to 0.\n */\n noGap: {\n type: Boolean,\n default: false,\n },\n },\n setup(props, { slots }) {\n const hasSlot = useHasSlot(slots);\n\n // TODO: add a computedItems computed here that only returns the slots that are presents so as to be able to render the divs in the template via a v-for\n const computeColumnSize = index => {\n if (props.columnWidth?.[index] && props.columnWidth?.[index] !== 'auto') {\n const columnWidth = props.columnWidth[index] as GridLayoutColumnWidth;\n return [\n `b-grid-layout__column--${columnWidth.small}`,\n `b-grid-layout-m__column--${columnWidth.medium}`,\n `b-grid-layout-l__column--${columnWidth.large}`,\n ];\n }\n return null;\n };\n\n const computedClasses = computed(() => ({\n 'b-grid-layout--container-type-normal': props.containerType === GridLayoutContainerType.NORMAL,\n 'b-grid-layout--container-type-size': props.containerType === GridLayoutContainerType.SIZE,\n 'b-grid-layout--all-auto':\n props.columnWidth === null || props.columnWidth.every(width => width === 'auto'),\n 'b-grid-layout--no-gap': props.noGap,\n }));\n\n return {\n // Values\n computeColumnSize,\n computedClasses,\n\n // Methods\n hasSlot,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./grid-layout.scss\" />\n"],"names":["GridLayoutContainerType","GridLayoutContainerType2","_sfc_main","defineComponent","array","props","slots","hasSlot","useHasSlot","computeColumnSize","index","_a","_b","columnWidth","computedClasses","computed","width"],"mappings":";;;;AAAY,IAAAA,IAAA,kBAAAC,OACRA,EAAA,SAAA,eACAA,EAAA,OAAA,QACAA,EAAA,SAAA,UAHQA,IAAAD,KAAA,CAAA,CAAA;AC6DZ,MAAAE,IAAAC,EAAA;AAAA,EAAA,MAAA;AAAA,EACA,OAAA;AAAA;AAAA;AAAA;AAAA,IACA,aAAA;AAAA,MAIA,MAAA;AAAA,MACA,SAAA;AAAA,MACA,WAAA,CAAAC,MAAAA,KAAAA,EAAA,UAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA;AAAA,IACA,eAAA;AAAA,MAMA,MAAA;AAAA,MACA,SAAAJ,EAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA,IACA,OAAA;AAAA,MAKA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA,EACA;AAAA,EACA,MAAAK,GAAA,EAAA,OAAAC,EAAA,GAAA;AAEA,UAAAC,IAAAC,EAAAF,CAAA,GAGAG,IAAA,CAAAC,MAAA;;AACA,WAAAC,IAAAN,EAAA,gBAAA,QAAAM,EAAAD,QAAAE,IAAAP,EAAA,gBAAA,gBAAAO,EAAAF,QAAA,QAAA;AACA,cAAAG,IAAAR,EAAA,YAAAK,CAAA;AACA,eAAA;AAAA,UAAA,0BAAAG,EAAA;AAAA,UACA,4BAAAA,EAAA;AAAA,UACA,4BAAAA,EAAA;AAAA,QACA;AAAA;AAGA,aAAA;AAAA,IAAA,GAGAC,IAAAC,EAAA,OAAA;AAAA,MAAA,wCAAAV,EAAA,kBAAAL,EAAA;AAAA,MACA,sCAAAK,EAAA,kBAAAL,EAAA;AAAA,MACA,2BAAAK,EAAA,gBAAA,QAAAA,EAAA,YAAA,MAAA,CAAAW,MAAAA,MAAA,MAAA;AAAA,MAEA,yBAAAX,EAAA;AAAA,IACA,EAAA;AAGA,WAAA;AAAA;AAAA,MAAA,mBAAAI;AAAA,MAEA,iBAAAK;AAAA;AAAA,MACA,SAAAP;AAAA,IAGA;AAAA,EACA;AAEA,CAAA;;;;;;;;;;;;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getCurrentInstance as p, computed as l } from "vue";
|
|
2
|
-
import "./index.
|
|
2
|
+
import "./index.4c062058.js";
|
|
3
3
|
import "vue-i18n";
|
|
4
4
|
let o = null;
|
|
5
5
|
const b = (e, r = !1) => {
|
|
@@ -28,4 +28,4 @@ export {
|
|
|
28
28
|
$ as g,
|
|
29
29
|
b as u
|
|
30
30
|
};
|
|
31
|
-
//# sourceMappingURL=i18n.
|
|
31
|
+
//# sourceMappingURL=i18n.eb5b985b.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i18n.
|
|
1
|
+
{"version":3,"file":"i18n.eb5b985b.js","sources":["../../src/utils/ts/i18n.ts"],"sourcesContent":["import { computed, getCurrentInstance, inject } from 'vue';\nimport type { WritableComputedRef } from 'vue';\nimport { useI18n as useI18nBridge } from 'vue-i18n-bridge';\nimport { isVue2 } from 'vue-demi';\nimport VueI18n from 'vue-i18n';\n\nexport const defaultI18nOptions = {\n locale: 'en-US',\n fallbackLocale: 'en-US',\n fallbackRoot: false,\n};\n\nlet i18n: VueI18n = null;\n\nexport function createI18n(options = defaultI18nOptions): VueI18n {\n i18n = new VueI18n(options);\n return i18n;\n}\n\nexport interface Composer<MessageKey> {\n locale: WritableComputedRef<string>;\n t?(key: MessageKey, values?: VueI18n.Values): string;\n tc?(key: MessageKey, choice?: VueI18n.Choice, values?: VueI18n.Values): string;\n tc?(key: MessageKey, choice: VueI18n.Choice, locale: VueI18n.Locale, values?: VueI18n.Values): string;\n te?(key: MessageKey, locale?: VueI18n.Locale): boolean;\n d?: typeof VueI18n.prototype.d;\n n?: typeof VueI18n.prototype.n;\n}\n\nexport type MessageKeys = {\n [key: string]: string;\n};\n\nexport interface i18nMessages {\n 'en-US': {\n [key: string]: string;\n };\n [key: string]: {\n [key: string]: string;\n };\n}\n\nexport const useI18n = <T extends { message: MessageKeys }>(\n params?: { messages?: i18nMessages } | undefined,\n onlyLocale = false\n) => {\n const currentInstance = getCurrentInstance() as unknown;\n // eslint-disable-next-line no-underscore-dangle\n const vue3InjectionI18nKey = (currentInstance as any)?.appContext?.app?.__VUE_I18N_SYMBOL__;\n const locale = computed({\n get() {\n return i18n.locale;\n },\n set(v: string) {\n i18n.locale = v;\n },\n });\n\n // Vue 3\n // eslint-disable-next-line no-underscore-dangle\n if (!isVue2) {\n if (!onlyLocale) {\n const { t, d, te, n, locale: coolLocale } = useI18nBridge({ messages: params?.messages });\n return {\n locale: coolLocale,\n t,\n tc: t,\n d,\n te,\n n,\n } as Composer<keyof T['message']>;\n }\n\n // eslint-disable-next-line no-underscore-dangle\n const vue3I18nInstance = inject(vue3InjectionI18nKey);\n const vue3GlobalI18nComposer = (vue3I18nInstance as any)?.global;\n if (vue3GlobalI18nComposer) {\n i18n = vue3GlobalI18nComposer;\n }\n\n return {\n locale,\n };\n }\n\n // Vue 2\n const instance = currentInstance as { proxy: any & { _i18n: VueI18n } } | null;\n const vm = instance.proxy as Vue & { _i18n: VueI18n };\n // If no VueI18n has been intialised then attempt to get the globally attached one from the Vue VM\n // eslint-disable-next-line no-underscore-dangle\n if (vm?._i18n) {\n // eslint-disable-next-line no-underscore-dangle -- reading the i18n local instance\n i18n = vm._i18n;\n }\n\n return {\n locale,\n t: vm.$t.bind(vm),\n tc: vm.$tc.bind(vm),\n d: vm.$d.bind(vm),\n te: vm.$te.bind(vm),\n n: vm.$n.bind(vm),\n } as Composer<keyof T['message']>;\n};\n\n/**\n * Gets the vue 2 or vue 3 global vue-i18n component\n */\nexport const getI18nComponent = () => (isVue2 ? 'i18n' : 'i18n-t');\n\n/**\n * Gets the correct props for the global vue-i18n component depending on if the component is used in vue 2 or vue 3.\n * @param path - the translation key path.\n */\nexport const getI18nProps = (path: string) => (isVue2 ? { path } : { keypath: path });\n"],"names":["i18n","useI18n","params","onlyLocale","currentInstance","getCurrentInstance","_b","_a","locale","computed","v","vm","getI18nComponent","getI18nProps","path"],"mappings":";;;AAYA,IAAIA,IAAgB;AA8Bb,MAAMC,IAAU,CACnBC,GACAC,IAAa,OACZ;;AACD,QAAMC,IAAkBC;AAEM,GAAAC,KAAAC,IAAAH,KAAA,gBAAAA,EAAyB,eAAzB,gBAAAG,EAAqC,QAArC,QAAAD,EAA0C;AACxE,QAAME,IAASC,EAAS;AAAA,IACpB,MAAM;AACF,aAAOT,EAAK;AAAA,IAChB;AAAA,IACA,IAAIU,GAAW;AACX,MAAAV,EAAK,SAASU;AAAA,IAClB;AAAA,EAAA,CACH,GA+BKC,IADWP,EACG;AAGpB,SAAIO,KAAA,QAAAA,EAAI,UAEJX,IAAOW,EAAG,QAGP;AAAA,IACH,QAAAH;AAAA,IACA,GAAGG,EAAG,GAAG,KAAKA,CAAE;AAAA,IAChB,IAAIA,EAAG,IAAI,KAAKA,CAAE;AAAA,IAClB,GAAGA,EAAG,GAAG,KAAKA,CAAE;AAAA,IAChB,IAAIA,EAAG,IAAI,KAAKA,CAAE;AAAA,IAClB,GAAGA,EAAG,GAAG,KAAKA,CAAE;AAAA,EAAA;AAExB,GAKaC,IAAmB,MAAgB,QAMnCC,IAAe,CAACC,OAA2B,EAAE,MAAAA,EAAK;"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { defineComponent as c, inject as a, computed as r, provide as y, ref as b } from "vue";
|
|
2
|
-
import { n as i } from "./_plugin-vue2_normalizer.
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { B as C } from "./
|
|
6
|
-
import { C as T } from "./copy.
|
|
7
|
-
import { S
|
|
8
|
-
import { u as
|
|
9
|
-
import {
|
|
10
|
-
import "../assets/
|
|
2
|
+
import { n as i } from "./_plugin-vue2_normalizer.71e2aa87.js";
|
|
3
|
+
import { a as v } from "./button.9184ade9.js";
|
|
4
|
+
import { BentoInfoIcon as h } from "../info-icon.js";
|
|
5
|
+
import { B as C } from "./index.e29a6907.js";
|
|
6
|
+
import { C as T } from "./copy.d5dd2b60.js";
|
|
7
|
+
import { S } from "./search.83bba8e3.js";
|
|
8
|
+
import { u as I } from "./i18n.eb5b985b.js";
|
|
9
|
+
import { b as B } from "./tooltip.77610390.js";
|
|
10
|
+
import "../assets/index28.css";
|
|
11
11
|
const u = Symbol("structured list condensed style injection key"), _ = Symbol("structured list labels width injection key"), L = ["25-75", "33-66", "42-58", "50-50"], x = {}, E = /* @__PURE__ */ c({
|
|
12
12
|
...x,
|
|
13
13
|
__name: "structured-list",
|
|
@@ -22,18 +22,20 @@ const u = Symbol("structured list condensed style injection key"), _ = Symbol("s
|
|
|
22
22
|
return y(_, o), { __sfc: !0, props: t, isCondensed: e, computedLayout: s, computedLabelsWidth: o };
|
|
23
23
|
}
|
|
24
24
|
});
|
|
25
|
-
var
|
|
25
|
+
var g = function() {
|
|
26
26
|
var t = this, e = t._self._c;
|
|
27
27
|
return t._self._setupProxy, e("dl", { staticClass: "b-structured-list" }, [t._t("default")], 2);
|
|
28
|
-
},
|
|
28
|
+
}, D = [], $ = /* @__PURE__ */ i(
|
|
29
29
|
E,
|
|
30
|
+
g,
|
|
30
31
|
D,
|
|
31
|
-
$,
|
|
32
32
|
!1,
|
|
33
33
|
null,
|
|
34
|
-
"966548c9"
|
|
34
|
+
"966548c9",
|
|
35
|
+
null,
|
|
36
|
+
null
|
|
35
37
|
);
|
|
36
|
-
const Y =
|
|
38
|
+
const Y = $.exports, N = {
|
|
37
39
|
"en-US": {
|
|
38
40
|
search: "Search"
|
|
39
41
|
}
|
|
@@ -51,12 +53,12 @@ const Y = g.exports, N = {
|
|
|
51
53
|
truncate: { type: Boolean }
|
|
52
54
|
},
|
|
53
55
|
setup(n) {
|
|
54
|
-
const t = n, e = "33%", { t: s } =
|
|
56
|
+
const t = n, e = "33%", { t: s } = I(), o = a(u, !1), l = a(_, b(e)), p = r(() => `flex-basis:${l.value}`), d = r(() => ({
|
|
55
57
|
"b-structured-list-item--condensed": o
|
|
56
58
|
})), m = r(() => ({
|
|
57
59
|
"b-structured-list-item__value--truncate": t.truncate
|
|
58
60
|
})), f = r(() => o ? "caption" : "body");
|
|
59
|
-
return { __sfc: !0, DEFAULT_LABELS_WIDTH: e, props: t, t: s, isCondensed: o, labelsWidth: l, computedLabelStyle: p, conditionalClasses: d, valueConditionalClasses: m, labelTypographyVariant: f, BentoButton: v, BentoInfoIcon: h, BentoTypography: C, Copy: T, SearchIcon:
|
|
61
|
+
return { __sfc: !0, DEFAULT_LABELS_WIDTH: e, props: t, t: s, isCondensed: o, labelsWidth: l, computedLabelStyle: p, conditionalClasses: d, valueConditionalClasses: m, labelTypographyVariant: f, BentoButton: v, BentoInfoIcon: h, BentoTypography: C, Copy: T, SearchIcon: S, vBentoTooltipDirective: B };
|
|
60
62
|
}
|
|
61
63
|
});
|
|
62
64
|
var U = function() {
|
|
@@ -70,7 +72,9 @@ var U = function() {
|
|
|
70
72
|
k,
|
|
71
73
|
!1,
|
|
72
74
|
null,
|
|
73
|
-
"1045abf9"
|
|
75
|
+
"1045abf9",
|
|
76
|
+
null,
|
|
77
|
+
null
|
|
74
78
|
);
|
|
75
79
|
const z = O.exports;
|
|
76
80
|
export {
|
|
@@ -78,4 +82,4 @@ export {
|
|
|
78
82
|
u as S,
|
|
79
83
|
z as a
|
|
80
84
|
};
|
|
81
|
-
//# sourceMappingURL=
|
|
85
|
+
//# sourceMappingURL=index.1c8f9245.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.1c8f9245.js","sources":["../../src/components/structured-list/structured-list.keys.ts","../../src/components/structured-list/structured-list.types.ts","../../src/components/structured-list/structured-list.vue","../../src/components/structured-list/components/structered-list-item/structured-list-item.vue"],"sourcesContent":["export const STRUCTURED_LIST_CONDENSED_INJECTION_KEY = Symbol('structured list condensed style injection key');\nexport const STRUCTURED_LIST_LABELS_WIDTH_INJECTION_KEY = Symbol('structured list labels width injection key');\n","export type BentoStructuredListLayoutOptions = '25-75' | '33-66' | '42-58' | '50-50';\nexport const BentoStructuredListLayoutOptions = ['25-75', '33-66', '42-58', '50-50'];\n","<template>\n <dl class=\"b-structured-list\">\n <slot />\n </dl>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, inject, provide } from 'vue';\n import {\n STRUCTURED_LIST_CONDENSED_INJECTION_KEY,\n STRUCTURED_LIST_LABELS_WIDTH_INJECTION_KEY,\n } from '@/components/structured-list/structured-list.keys';\n import { BentoStructuredListLayoutOptions } from './structured-list.types';\n\n const props = withDefaults(\n defineProps<{\n /**\n * Width of the labels container, in pixels. Overrides layout prop.\n */\n labelsWidth?: number;\n /**\n * The layout of the label value pair in percentage.\n * If labelsWidth is set, layout will be overriden by the static pixel value.\n *\n * If the value entered is not listed in the example\n * list below '33-66' will be applied\n * @example\n * '25-75'\n * '33-66'\n * '42-58'\n * '50-50'\n */\n layout?: BentoStructuredListLayoutOptions;\n }>(),\n {\n labelsWidth: null,\n layout: '33-66',\n }\n );\n\n const isCondensed = inject(STRUCTURED_LIST_CONDENSED_INJECTION_KEY, false);\n\n const computedLayout = computed(() =>\n BentoStructuredListLayoutOptions.includes(props.layout) ? props.layout : '33-66'\n );\n\n const computedLabelsWidth = computed(() => {\n if (isCondensed) {\n return '130px';\n }\n\n if (props.labelsWidth) {\n return `${props.labelsWidth}px`;\n }\n\n return `${computedLayout.value.split('-')[0]}%`;\n });\n\n provide(STRUCTURED_LIST_LABELS_WIDTH_INJECTION_KEY, computedLabelsWidth);\n</script>\n\n<script lang=\"ts\">\n /**\n * This is a list used to display pairs of information in a clear and organized manner.\n * `BentoStructureListItem` should be used to pass the label/value pairs to the list.\n *\n * @example\n * import { BentoStructuredListItem, BentoStructuredListItem } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoStructuredList, BentoStructuredListItem },\n * template: `\n * <bento-structured-list>\n * <bento-structured-list-item label=\"Payment\">\n * <bento-payment-method label=\"Klarna\" type=\"Klarna\" />\n * </bento-structured-list-item>\n * <bento-structured-list-item label=\"Amount\">\n * <bento-currency :currency=\"BentoCurrencyISOCode.USD\">\n * 123456\n * </bento-currency>\n * </bento-structured-list-item>\n * </bento-structured-list>\n * `\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./structured-list.scss\" />\n","<template>\n <div class=\"b-structured-list-item\" :class=\"conditionalClasses\">\n <dt class=\"b-structured-list-item__label\" :style=\"computedLabelStyle\">\n <bento-typography :variant=\"labelTypographyVariant\">{{ label }}</bento-typography>\n <bento-info-icon v-if=\"labelInfo\" class=\"b-structured-list-item__icon\" :tooltip-text=\"labelInfo\" />\n </dt>\n <dd class=\"b-structured-list-item__value\" :class=\"valueConditionalClasses\">\n <slot />\n <copy v-if=\"copy\" class=\"b-structured-list-item__icon\" :text=\"copy\" />\n <bento-button\n v-if=\"search\"\n v-bento-tooltip-directive:top=\"searchTooltip ? searchTooltip : t('search')\"\n class=\"b-structured-list-item__icon\"\n variant=\"tertiary\"\n @click=\"search\"\n >\n <template #iconLeft>\n <search-icon :svg-title=\"$t('search')\" />\n </template>\n </bento-button>\n </dd>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, inject, ref, Ref } from 'vue';\n\n // Components\n import { BentoButton } from '@/components/button';\n import { BentoInfoIcon } from '@/components/info-icon';\n import { BentoTypography } from '@/components/typography';\n import Copy from '@/components/internal/copy/copy.vue';\n import SearchIcon from '@adyen/ui-assets-icons-16/vue/search';\n\n // Utils\n import { useI18n } from '@/utils/ts/i18n';\n\n // Directives\n import { BentoTooltipDirective as vBentoTooltipDirective } from '@/directives';\n\n // Keys\n import {\n STRUCTURED_LIST_CONDENSED_INJECTION_KEY,\n STRUCTURED_LIST_LABELS_WIDTH_INJECTION_KEY,\n } from '../../structured-list.keys';\n\n import messages from '../../messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const DEFAULT_LABELS_WIDTH = '33%';\n\n const props = defineProps<{\n /**\n * Label to display for the value\n */\n label: string;\n /**\n * Text to display in info icon tooltip in the label to display for the value\n */\n labelInfo?: string;\n /**\n * Text to copy when the user clicks `Copy` icon\n */\n copy?: string;\n /**\n * Function to trigger when user clicks `Search` icon\n */\n search?: (event: Event) => void;\n /**\n * Text to display when the user hovers over `Search` icon\n */\n searchTooltip?: string;\n /**\n * Truncates the value of the item\n */\n truncate?: boolean;\n }>();\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n const isCondensed = inject(STRUCTURED_LIST_CONDENSED_INJECTION_KEY, false);\n const labelsWidth = inject<Ref<string>>(STRUCTURED_LIST_LABELS_WIDTH_INJECTION_KEY, ref(DEFAULT_LABELS_WIDTH));\n const computedLabelStyle = computed(() => `flex-basis:${labelsWidth.value}`);\n const conditionalClasses = computed(() => ({\n 'b-structured-list-item--condensed': isCondensed,\n }));\n\n const valueConditionalClasses = computed(() => ({\n 'b-structured-list-item__value--truncate': props.truncate,\n }));\n\n const labelTypographyVariant = computed(() => (isCondensed ? 'caption' : 'body'));\n</script>\n\n<script lang=\"ts\">\n /**\n * This is an item of the `BentoStructuredList` meant to be used only with that component.\n * It consists of a label/value pair, and also the optional copy and search modifiers.\n *\n * @example\n * import { BentoCurrencyISOCode, BentoStructuredListItem, BentoStructuredListItem } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoStructuredListItem, BentoStructuredListItem },\n * template: `\n * <bento-structured-list>\n * <bento-structured-list-item label=\"Shopper\" search='searchShopper' search-tooltip='Find shopper'>\n * <bento-typography>\n * 143442642\n * </bento-status>\n * </bento-structured-list-item>\n * <bento-structured-list-item label=\"Amount\" copy='123456'>\n * <bento-currency :currency=\"BentoCurrencyISOCode.USD\">\n * 123456\n * </bento-currency>\n * </bento-structured-list-item>\n * </bento-structured-list>\n * `\n * }\n */\n export default {\n i18n: { messages },\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./structured-list-item.scss\" />\n"],"names":["STRUCTURED_LIST_CONDENSED_INJECTION_KEY","STRUCTURED_LIST_LABELS_WIDTH_INJECTION_KEY","BentoStructuredListLayoutOptions","__default__$1","isCondensed","inject","computedLayout","computed","props","computedLabelsWidth","provide","__default__","messages","DEFAULT_LABELS_WIDTH","t","useI18n","labelsWidth","ref","computedLabelStyle","conditionalClasses","valueConditionalClasses","labelTypographyVariant"],"mappings":";;;;;;;;;;AAAa,MAAAA,IAAA,OAAA,+CAAA,GACAC,IAAA,OAAA,4CAAA,GCANC,IAAA,CAAA,SAAA,SAAA,SAAA,OAAA,GCoFHC,IAAA,CAAA;;;;;;;;iBA7CAC,IAAAC,EAAAL,GAAA,EAAA,GAEAM,IAAAC;AAAA,MAAuB,MAAAL,EAAA,SAAAM,EAAA,MAAA,IAAAA,EAAA,SAAA;AAAA,IACsD,GAG7EC,IAAAF,EAAA,MACIH,IACI,UAGJI,EAAA,cACI,GAAAA,EAAA,kBAGJ,GAAAF,EAAA,MAAA,MAAA,GAAA,EAAA,CAAA,IAA2C;AAG/C,WAAAI,EAAAT,GAAAQ,CAAA;;;;;;;;;;;;;;;;;;;;GC8DAE,IAAA;AAAA,EAAe,MAAA,EAAA,UAAAC,EAAA;AAEf;;;;;;;;;;;;iBAxEAC,IAAA,OA6BA,EAAA,GAAAC,EAAA,IAAAC,EAAA,GACAX,IAAAC,EAAAL,GAAA,EAAA,GACAgB,IAAAX,EAAAJ,GAAAgB,EAAAJ,CAAA,CAAA,GACAK,IAAAX,EAAA,MAAA,cAAAS,EAAA,OAAA,GACAG,IAAAZ,EAAA,OAAA;AAAA,MAA2C,qCAAAH;AAAA,IACF,EAAA,GAGzCgB,IAAAb,EAAA,OAAA;AAAA,MAAgD,2CAAAC,EAAA;AAAA,IACK,EAAA,GAGrDa,IAAAd,EAAA,MAAAH,IAAA,YAAA,MAAA;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineComponent as r, computed as a, useSlots as O, useAttrs as E, inject as
|
|
2
|
-
import {
|
|
3
|
-
import { B as
|
|
4
|
-
import { n as l } from "./_plugin-vue2_normalizer.
|
|
5
|
-
import {
|
|
6
|
-
import { C as $ } from "./cross.
|
|
7
|
-
import { u as w } from "./use-has-slot.
|
|
8
|
-
import { u as
|
|
9
|
-
import { c as b, B as
|
|
10
|
-
import "../assets/
|
|
11
|
-
const
|
|
12
|
-
components: { BentoTypography:
|
|
1
|
+
import { defineComponent as r, computed as a, useSlots as O, useAttrs as E, inject as f, ref as I, toRefs as L } from "vue";
|
|
2
|
+
import { c as x, a as m, b as F } from "./index.bad400d5.js";
|
|
3
|
+
import { B as k, a as v } from "./index.e29a6907.js";
|
|
4
|
+
import { n as l } from "./_plugin-vue2_normalizer.71e2aa87.js";
|
|
5
|
+
import { a as R } from "./button.9184ade9.js";
|
|
6
|
+
import { C as $ } from "./cross.f47f6b7f.js";
|
|
7
|
+
import { u as w } from "./use-has-slot.fbeb19ec.js";
|
|
8
|
+
import { u as D } from "./aria-label.ac9651a5.js";
|
|
9
|
+
import { c as b, B as N } from "./button-actions.430d7510.js";
|
|
10
|
+
import "../assets/index40.css";
|
|
11
|
+
const V = r({
|
|
12
|
+
components: { BentoTypography: k },
|
|
13
13
|
props: {
|
|
14
14
|
/**
|
|
15
15
|
* Indicates if the popover contains an image.
|
|
@@ -35,11 +35,13 @@ var j = function() {
|
|
|
35
35
|
var t = this, e = t._self._c;
|
|
36
36
|
return t._self._setupProxy, e("bento-typography", { attrs: { strongest: t.isStrongest, variant: t.titleVariant, el: "span" } }, [t._v(" " + t._s(t.title) + " ")]);
|
|
37
37
|
}, U = [], Y = /* @__PURE__ */ l(
|
|
38
|
-
|
|
38
|
+
V,
|
|
39
39
|
j,
|
|
40
40
|
U,
|
|
41
41
|
!1,
|
|
42
42
|
null,
|
|
43
|
+
null,
|
|
44
|
+
null,
|
|
43
45
|
null
|
|
44
46
|
);
|
|
45
47
|
const J = Y.exports, K = r({
|
|
@@ -71,9 +73,11 @@ var q = function() {
|
|
|
71
73
|
z,
|
|
72
74
|
!1,
|
|
73
75
|
null,
|
|
74
|
-
"71876338"
|
|
76
|
+
"71876338",
|
|
77
|
+
null,
|
|
78
|
+
null
|
|
75
79
|
);
|
|
76
|
-
const M = H.exports, y = { ...
|
|
80
|
+
const M = H.exports, y = { ...x }, G = Symbol("popover offset injection key"), Q = Symbol("input field popover injection key"), W = {};
|
|
77
81
|
var g;
|
|
78
82
|
const X = /* @__PURE__ */ r({
|
|
79
83
|
...W,
|
|
@@ -240,33 +244,33 @@ const X = /* @__PURE__ */ r({
|
|
|
240
244
|
},
|
|
241
245
|
emits: ["dismiss", "placement"],
|
|
242
246
|
setup(s, { emit: t }) {
|
|
243
|
-
const e = s, o = 2,
|
|
244
|
-
var
|
|
247
|
+
const e = s, o = 2, n = O(), i = E(), B = a(() => {
|
|
248
|
+
var d;
|
|
245
249
|
return {
|
|
246
|
-
id: (
|
|
250
|
+
id: (d = i.id) == null ? void 0 : d.toString()
|
|
247
251
|
};
|
|
248
|
-
}), P =
|
|
252
|
+
}), P = f(G, o), p = I(i["aria-label"]), { ariaLabel: c, title: _ } = L(e), C = D({
|
|
249
253
|
ariaLabel: p.value,
|
|
250
254
|
// TODO: take this line away when the aria-label props is removed
|
|
251
255
|
label: c,
|
|
252
|
-
defaultFallback:
|
|
253
|
-
}),
|
|
256
|
+
defaultFallback: _
|
|
257
|
+
}), u = f(Q, !1), S = a(() => ({
|
|
254
258
|
"b-popover--small": e.small && !e.large,
|
|
255
259
|
"b-popover--with-divider": !!e.divider,
|
|
256
260
|
"b-popover--large": e.large && !e.small,
|
|
257
261
|
"b-popover--fit-content": e.fitContent,
|
|
258
262
|
"b-popover--without-space": e.withoutSpace,
|
|
259
|
-
"b-popover--overflow-visible":
|
|
263
|
+
"b-popover--overflow-visible": u
|
|
260
264
|
})), T = a(() => ({
|
|
261
265
|
"b-popover__content--with-title": !!e.title
|
|
262
|
-
})), h = () => t("dismiss"), A = w(
|
|
263
|
-
return { __sfc: !0, DEFAULT_OFFSET: o, props: e, emit: t, slots:
|
|
266
|
+
})), h = () => t("dismiss"), A = w(n);
|
|
267
|
+
return { __sfc: !0, DEFAULT_OFFSET: o, props: e, emit: t, slots: n, attrs: i, computedAttributes: B, offset: P, ariaLabelAttribute: p, ariaLabel: c, title: _, computedAriaLabel: C, isOverflowVisible: u, conditionalClasses: S, contentConditionalClasses: T, dismissPopover: h, hasSlot: A, BentoButtonActions: N, PopperContainer: m, PopperContainerAriaRole: F, BentoPopoverTitle: J, BentoPopoverDismissButton: M };
|
|
264
268
|
}
|
|
265
269
|
});
|
|
266
270
|
var Z = function() {
|
|
267
271
|
var t = this, e = t._self._c, o = t._self._setupProxy;
|
|
268
|
-
return e("Transition", { attrs: { name: "b-popover__animation" } }, [t.open ? e(o.PopperContainer, { staticClass: "b-popover", class: o.conditionalClasses, attrs: { id: o.computedAttributes.id, "aria-role": o.PopperContainerAriaRole.POPOVER, "aria-label": o.computedAriaLabel, arrow: { classes: ["b-popover__arrow"] }, "disabled-focus-trap": t.disableFocusTrap, "fallback-position": t.fallbackPosition, "fixed-positioning": t.fixedPositioning, offset: [0, o.offset], position: t.position, "target-element": t.targetElement }, on: { placement: function(
|
|
269
|
-
return t.$emit("placement",
|
|
272
|
+
return e("Transition", { attrs: { name: "b-popover__animation" } }, [t.open ? e(o.PopperContainer, { staticClass: "b-popover", class: o.conditionalClasses, attrs: { id: o.computedAttributes.id, "aria-role": o.PopperContainerAriaRole.POPOVER, "aria-label": o.computedAriaLabel, arrow: { classes: ["b-popover__arrow"] }, "disabled-focus-trap": t.disableFocusTrap, "fallback-position": t.fallbackPosition, "fixed-positioning": t.fixedPositioning, offset: [0, o.offset], position: t.position, "target-element": t.targetElement }, on: { placement: function(n) {
|
|
273
|
+
return t.$emit("placement", n);
|
|
270
274
|
} } }, [o.hasSlot("image") ? e("div", { staticClass: "b-popover__image" }, [t.dismissible ? e("div", { staticClass: "b-popover__image-dismiss-button" }, [e(o.BentoPopoverDismissButton, { attrs: { "on-image": "" }, on: { click: o.dismissPopover } })], 1) : t._e(), t._t("image")], 2) : t._e(), o.title ? e("div", { staticClass: "b-popover__header" }, [e("div", { staticClass: "b-popover__header-title" }, [o.hasSlot("headerIcon") ? t._t("headerIcon") : t._e(), e(o.BentoPopoverTitle, { attrs: { title: o.title, "is-image-title": !!o.hasSlot("image") } })], 2), t.dismissible && !o.hasSlot("image") ? e("div", [e(o.BentoPopoverDismissButton, { on: { click: o.dismissPopover } })], 1) : t._e()]) : t._e(), o.hasSlot("default") ? e("div", { staticClass: "b-popover__content", class: o.contentConditionalClasses }, [t._t("default")], 2) : t._e(), t.actions ? e("div", { staticClass: "b-popover__footer" }, [e(o.BentoButtonActions, { attrs: { actions: t.actions, layout: t.actionsLayout } })], 1) : t._e()]) : t._e()], 1);
|
|
271
275
|
}, tt = [], et = /* @__PURE__ */ l(
|
|
272
276
|
X,
|
|
@@ -274,13 +278,15 @@ var Z = function() {
|
|
|
274
278
|
tt,
|
|
275
279
|
!1,
|
|
276
280
|
null,
|
|
277
|
-
"ab93d091"
|
|
281
|
+
"ab93d091",
|
|
282
|
+
null,
|
|
283
|
+
null
|
|
278
284
|
);
|
|
279
|
-
const
|
|
285
|
+
const _t = et.exports;
|
|
280
286
|
export {
|
|
281
|
-
|
|
287
|
+
y as B,
|
|
282
288
|
Q as I,
|
|
283
289
|
G as P,
|
|
284
|
-
|
|
290
|
+
_t as a
|
|
285
291
|
};
|
|
286
|
-
//# sourceMappingURL=
|
|
292
|
+
//# sourceMappingURL=index.40b77741.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.40b77741.js","sources":["../../src/components/popover/components/popover-title/popover-title.vue","../../src/components/popover/components/popover-dismiss-button/popover-dismiss-button.vue","../../src/components/popover/popover.types.ts","../../src/components/popover/popover.keys.ts","../../src/components/filter-bar/components/input-filter/input-filter.keys.ts","../../src/components/popover/popover.vue"],"sourcesContent":["<template>\n <bento-typography :strongest=\"isStrongest\" :variant=\"titleVariant\" el=\"span\">\n {{ title }}\n </bento-typography>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent } from 'vue';\n import { BentoTypography, BentoTypographyVariant } from '@/components/typography';\n\n export default defineComponent({\n components: { BentoTypography },\n props: {\n /**\n * Indicates if the popover contains an image.\n */\n isImageTitle: { type: Boolean, default: false },\n\n /**\n * Indicates the title you want to give the popover.\n */\n title: { type: String, default: null },\n },\n setup(props) {\n // Use strongest only when it has no image\n const isStrongest = computed(() => !props.isImageTitle);\n\n // If an image is present, change the variant from BODY to SUBTITLE and remove the \"strongest\" property of the title\n const titleVariant = computed(() =>\n props.isImageTitle ? BentoTypographyVariant.SUBTITLE : BentoTypographyVariant.BODY\n );\n\n return {\n // Values\n isStrongest,\n titleVariant,\n };\n },\n });\n</script>\n","<template>\n <bento-button :class=\"conditionalClass\" variant=\"tertiary\" @click=\"$emit('click')\">\n <template #iconLeft>\n <cross-icon svg-title=\"dismiss\" />\n </template>\n </bento-button>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent } from 'vue';\n import { BentoButton } from '@/components/button';\n import CrossIcon from '@adyen/ui-assets-icons-16/vue/cross';\n\n export default defineComponent({\n name: 'bento-popover-dismiss-button',\n components: { BentoButton, CrossIcon },\n props: {\n onImage: {\n type: Boolean,\n default: false,\n },\n },\n setup(props) {\n const conditionalClass = computed(() => ({ 'b-popover-dismiss-button--on-image': props.onImage }));\n\n return {\n // Values\n conditionalClass,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./popover-dismiss-button.scss\" />\n","import { PopperContainerPosition } from '../popper-container';\n\n/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport const BentoPopoverPositions = { ...PopperContainerPosition };\nexport type BentoPopoverPositions = PopperContainerPosition;\n","export const POPOVER_OFFSET_INJECTION_KEY = Symbol('popover offset injection key');\n","export const INPUT_FILTER_POPOVER_INJECTION_KEY = Symbol('input field popover injection key');\n","<template>\n <Transition name=\"b-popover__animation\">\n <popper-container\n v-if=\"open\"\n :id=\"computedAttributes['id']\"\n :aria-role=\"PopperContainerAriaRole.POPOVER\"\n :aria-label=\"computedAriaLabel\"\n :arrow=\"{ classes: ['b-popover__arrow'] }\"\n :disabled-focus-trap=\"disableFocusTrap\"\n :class=\"conditionalClasses\"\n :fallback-position=\"fallbackPosition\"\n :fixed-positioning=\"fixedPositioning\"\n :offset=\"[0, offset]\"\n :position=\"position\"\n :target-element=\"targetElement\"\n class=\"b-popover\"\n @placement=\"$emit('placement', $event)\"\n >\n <div v-if=\"hasSlot('image')\" class=\"b-popover__image\">\n <div v-if=\"dismissible\" class=\"b-popover__image-dismiss-button\">\n <bento-popover-dismiss-button on-image @click=\"dismissPopover\" />\n </div>\n <slot name=\"image\"></slot>\n </div>\n <div v-if=\"title\" class=\"b-popover__header\">\n <div class=\"b-popover__header-title\">\n <slot v-if=\"hasSlot('headerIcon')\" name=\"headerIcon\"></slot>\n <bento-popover-title :title=\"title\" :is-image-title=\"!!hasSlot('image')\" />\n </div>\n <div v-if=\"dismissible && !hasSlot('image')\">\n <bento-popover-dismiss-button @click=\"dismissPopover\" />\n </div>\n </div>\n\n <div v-if=\"hasSlot('default')\" class=\"b-popover__content\" :class=\"contentConditionalClasses\">\n <slot></slot>\n </div>\n\n <div v-if=\"actions\" class=\"b-popover__footer\">\n <bento-button-actions :actions=\"actions\" :layout=\"actionsLayout\"></bento-button-actions>\n </div>\n </popper-container>\n </Transition>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, inject, PropType, ref, toRefs, useAttrs, useSlots } from 'vue';\n\n import { BentoButtonActions, BentoButtonActionsLayout, BentoButtonActionsList } from '@/components/button';\n import { PopperContainer, PopperContainerAriaRole } from '@/components/popper-container';\n import BentoPopoverTitle from './components/popover-title/popover-title.vue';\n import BentoPopoverDismissButton from './components/popover-dismiss-button/popover-dismiss-button.vue';\n\n import { BentoPopoverPositions } from './popover.types';\n import { Placement } from '@floating-ui/vue';\n\n import { useHasSlot } from '@/composables';\n import { useAriaLabel } from '@/utils/ts/aria-label';\n\n import { POPOVER_OFFSET_INJECTION_KEY } from './popover.keys';\n import { INPUT_FILTER_POPOVER_INJECTION_KEY } from '@/components/filter-bar/components/input-filter/input-filter.keys';\n\n const DEFAULT_OFFSET = 2;\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 *\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',\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 * Defines the layout in which the button actions is presented.\n * It can be one of:\n *\n * @values BUTTONS_END\n * @values FILL_CONTAINER\n * @values SPACE_BETWEEN\n * @values VERTICAL_STACK\n */\n actionsLayout: {\n type: String as PropType<BentoButtonActionsLayout | `${BentoButtonActionsLayout}`>,\n default: BentoButtonActionsLayout.BUTTONS_END,\n validator: (value: BentoButtonActionsLayout) => Object.values(BentoButtonActionsLayout).includes(value),\n },\n\n /**\n * @deprecated from version 2.0.0. Use the aria-label attribute instead.\n */\n /**\n * Defines a string value that provides an accessible name for the popover.\n */\n ariaLabel: {\n type: String,\n default: null,\n },\n\n /**\n * Adds a divider line to the actions section, reduces the top/bottom paddings and removes all padding in the \"default\" slot.\n */\n divider: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Supports disabling focus trap functionality to avoid scroll into view behavior when we don't need it.\n * */\n disableFocusTrap: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Adds a \"dismiss\" icon that triggers the \"dismiss\" event. Requires the `title` prop to be set.\n */\n dismissible: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Allows to configure to fallback position to the one specified, it could be ['right', 'top', ...].\n * Useful when not using auto as starting placement.\n * https://floating-ui.com/docs/flip#fallbackplacements\n */\n fallbackPosition: {\n type: Array as PropType<Placement[]>,\n default: () => ['bottom-start', 'right-start', 'top-start', 'left-start'],\n },\n\n /**\n * Sets the size of the container to fit its content\n */\n fitContent: { type: Boolean, default: false },\n\n /**\n * Instructs popover to be visible outside of the containing container.\n * Useful when component would be used in limited containers like Modal, Side panel, etc.\n * @see {@link https://floating-ui.com/docs/usefloating#strategy}\n */\n fixedPositioning: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Toggles the popover open and closed\n */\n open: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Displays the popover in a large size.\n */\n large: {\n type: Boolean,\n default: false,\n },\n\n /**\n * @deprecated\n * NOTE: This property no longer functions since moving to the floating-ui framework.\n */\n modifiers: { type: Array, default: null },\n\n /**\n * Popover's position relative to the target element.\n * Possible values are:\n * 'auto', 'auto-start', 'auto-end',\n * 'top', 'top-start', 'top-end'\n * 'right', 'right-start', 'right-end'\n * 'bottom', 'bottom-start', 'bottom-end'\n * 'left', 'left-start', 'left-end'\n */\n position: {\n type: String as PropType<BentoPopoverPositions | `${BentoPopoverPositions}`>,\n default: BentoPopoverPositions.BOTTOM_START,\n validator: (value: BentoPopoverPositions) => Object.values(BentoPopoverPositions).includes(value),\n },\n\n /**\n * Displays the popover in a small size.\n */\n small: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Indicates the title you want to give the popover.\n */\n title: {\n type: String,\n default: null,\n },\n\n /**\n * Popover's target element.\n * The popover will position itself relatively to target element, in specified position.\n */\n targetElement: {\n type: PopperContainer.props?.targetElement.type,\n required: true,\n },\n /**\n * Displays the popover without padding.\n */\n withoutSpace: {\n type: Boolean,\n default: false,\n },\n });\n\n const emit = defineEmits<{\n /**\n * Triggered when the `dismiss` button is clicked\n */\n (e: 'dismiss'): void;\n /**\n * Triggered when the popover `placement` changes\n */\n (e: 'placement', placement: Placement): void;\n }>();\n\n const slots = useSlots();\n const attrs = useAttrs();\n\n const computedAttributes = computed(() => ({\n id: attrs.id?.toString() as string,\n }));\n\n const offset = inject<number>(POPOVER_OFFSET_INJECTION_KEY, DEFAULT_OFFSET);\n\n const ariaLabelAttribute = ref(attrs['aria-label']);\n const { ariaLabel, title } = toRefs(props);\n const computedAriaLabel = useAriaLabel({\n ariaLabel: ariaLabelAttribute.value as string,\n // TODO: take this line away when the aria-label props is removed\n label: ariaLabel,\n defaultFallback: title,\n });\n\n const isOverflowVisible = inject(INPUT_FILTER_POPOVER_INJECTION_KEY, false);\n\n const conditionalClasses = computed(() => ({\n 'b-popover--small': props.small && !props.large,\n 'b-popover--with-divider': !!props.divider,\n 'b-popover--large': props.large && !props.small,\n 'b-popover--fit-content': props.fitContent,\n 'b-popover--without-space': props.withoutSpace,\n 'b-popover--overflow-visible': isOverflowVisible,\n }));\n\n const contentConditionalClasses = computed(() => ({\n 'b-popover__content--with-title': !!props.title,\n }));\n\n const dismissPopover = () => emit('dismiss');\n\n const hasSlot = useHasSlot(slots);\n</script>\n\n<script lang=\"ts\">\n /**\n * Example description of the component...\n *\n * @example\n * import { BentoPopover } from '@adyen/adl-vue2';\n *\n * export default {\n * components: { BentoPopover },\n * template: `\n * <bento-popover id=\"your-popover-id\">\n * ...Example code of the component\n * </bento-popover>\n * `\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./popover.scss\" />\n"],"names":["_sfc_main$2","defineComponent","BentoTypography","props","isStrongest","computed","titleVariant","BentoTypographyVariant","_sfc_main$1","BentoButton","CrossIcon","BentoPopoverPositions","PopperContainerPosition","POPOVER_OFFSET_INJECTION_KEY","INPUT_FILTER_POPOVER_INJECTION_KEY","__default__","DEFAULT_OFFSET","slots","useSlots","attrs","useAttrs","computedAttributes","_a","offset","inject","ariaLabelAttribute","ref","ariaLabel","title","toRefs","computedAriaLabel","useAriaLabel","isOverflowVisible","conditionalClasses","contentConditionalClasses","dismissPopover","emit","hasSlot","useHasSlot"],"mappings":";;;;;;;;;;AAUA,MAAAA,IAAAC,EAAA;AAAA,EAAA,YAAA,EAAA,iBAAAC,EAAA;AAAA,EACA,OAAA;AAAA;AAAA;AAAA;AAAA,IACA,cAAA,EAAA,MAAA,SAAA,SAAA,GAAA;AAAA;AAAA;AAAA;AAAA,IAIA,OAAA,EAAA,MAAA,QAAA,SAAA,KAAA;AAAA,EAKA;AAAA,EACA,MAAAC,GAAA;AAGA,UAAAC,IAAAC,EAAA,MAAA,CAAAF,EAAA,YAAA,GAGAG,IAAAD;AAAA,MAAA,MAAAF,EAAA,eAAAI,EAAA,WAAAA,EAAA;AAAA,IACA;AAGA,WAAA;AAAA;AAAA,MAAA,aAAAH;AAAA,MAEA,cAAAE;AAAA,IACA;AAAA,EACA;AAEA,CAAA;;;;;;;;;;;;;;qBCzBAE,IAAAP,EAAA;AAAA,EAAA,MAAA;AAAA,EACA,YAAA,EAAA,aAAAQ,GAAA,WAAAC,EAAA;AAAA,EACA,OAAA;AAAA,IACA,SAAA;AAAA,MACA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA,EACA;AAAA,EACA,MAAAP,GAAA;AAIA,WAAA;AAAA;AAAA,MAAA,kBAFAE,EAAA,OAAA,EAAA,sCAAAF,EAAA,QAAA,EAAA;AAAA,IAIA;AAAA,EACA;AAEA,CAAA;;;;;;;;;;;;;;;;;;qBCzBaQ,IAAA,EAAA,GAAAC,EAAA,GCLAC,IAAA,OAAA,8BAAA,GCAAC,IAAA,OAAA,mCAAA,GCiTTC,IAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAnPAC,IAAA,GA6LAC,IAAAC,EAAA,GACAC,IAAAC,EAAA,GAEAC,IAAAhB,EAAA,MAAA;;AAAA;AAAA,QAA2C,KAAAiB,IAAAH,EAAA,OAAA,gBAAAG,EAAA;AAAA,MAChB;AAAA,KAAA,GAG3BC,IAAAC,EAAAX,GAAAG,CAAA,GAEAS,IAAAC,EAAAP,EAAA,YAAA,CAAA,GACA,EAAA,WAAAQ,GAAA,OAAAC,EAAA,IAAAC,EAAA1B,CAAA,GACA2B,IAAAC,EAAA;AAAA,MAAuC,WAAAN,EAAA;AAAA;AAAA,MACL,OAAAE;AAAA,MAEvB,iBAAAC;AAAA,IACU,CAAA,GAGrBI,IAAAR,EAAAV,GAAA,EAAA,GAEAmB,IAAA5B,EAAA,OAAA;AAAA,MAA2C,oBAAAF,EAAA,SAAA,CAAAA,EAAA;AAAA,MACG,2BAAA,CAAA,CAAAA,EAAA;AAAA,MACP,oBAAAA,EAAA,SAAA,CAAAA,EAAA;AAAA,MACO,0BAAAA,EAAA;AAAA,MACV,4BAAAA,EAAA;AAAA,MACE,+BAAA6B;AAAA,IACH,EAAA,GAGnCE,IAAA7B,EAAA,OAAA;AAAA,MAAkD,kCAAA,CAAA,CAAAF,EAAA;AAAA,IACJ,EAAA,GAG9CgC,IAAA,MAAAC,EAAA,SAAA,GAEAC,IAAAC,EAAArB,CAAA;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { defineComponent as t, inject as r, ref as i, computed as o } from "vue";
|
|
2
|
+
import { n as a } from "./_plugin-vue2_normalizer.71e2aa87.js";
|
|
3
|
+
import "../assets/index9.css";
|
|
4
|
+
const c = Symbol("divider inverse style injection key"), d = {}, l = /* @__PURE__ */ t({
|
|
5
|
+
...d,
|
|
6
|
+
__name: "divider",
|
|
7
|
+
setup(n) {
|
|
8
|
+
const e = r(c, i(!1)), s = o(() => ({
|
|
9
|
+
"b-divider--inverse": e.value
|
|
10
|
+
}));
|
|
11
|
+
return { __sfc: !0, isInverseColorSet: e, conditionalClasses: s };
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
var v = function() {
|
|
15
|
+
var e = this, s = e._self._c, _ = e._self._setupProxy;
|
|
16
|
+
return s("div", { staticClass: "b-divider" }, [s("hr", { staticClass: "b-divider__horizontal-rule", class: _.conditionalClasses })]);
|
|
17
|
+
}, f = [], p = /* @__PURE__ */ a(
|
|
18
|
+
l,
|
|
19
|
+
v,
|
|
20
|
+
f,
|
|
21
|
+
!1,
|
|
22
|
+
null,
|
|
23
|
+
"5aad370f",
|
|
24
|
+
null,
|
|
25
|
+
null
|
|
26
|
+
);
|
|
27
|
+
const C = p.exports;
|
|
28
|
+
export {
|
|
29
|
+
C as B,
|
|
30
|
+
c as D
|
|
31
|
+
};
|
|
32
|
+
//# sourceMappingURL=index.4afa7b19.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.4afa7b19.js","sources":["../../src/components/divider/divider.keys.ts","../../src/components/divider/divider.vue"],"sourcesContent":["export const DIVIDER_INVERSE_INJECTION_KEY = Symbol('divider inverse style injection key');\n","<template>\n <div class=\"b-divider\">\n <hr class=\"b-divider__horizontal-rule\" :class=\"conditionalClasses\" />\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, inject, ref } from 'vue';\n import { DIVIDER_INVERSE_INJECTION_KEY } from './divider.keys';\n\n const isInverseColorSet = inject(DIVIDER_INVERSE_INJECTION_KEY, ref(false));\n\n const conditionalClasses = computed(() => ({\n 'b-divider--inverse': isInverseColorSet.value,\n }));\n</script>\n\n<script lang=\"ts\">\n /**\n * Divider component is a thin line that helps separate content and group them visually into sections.\n *\n * @example\n * import { BentoDivider } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoDivider },\n * template: `<bento-divider />`\n * }\n */\n\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./divider.scss\" />\n"],"names":["DIVIDER_INVERSE_INJECTION_KEY","__default__","isInverseColorSet","inject","ref","conditionalClasses","computed"],"mappings":";;;AAAa,MAAAA,IAAA,OAAA,qCAAA,GC8BTC,IAAA,CAAA;;;;AApBA,UAAAC,IAAAC,EAAAH,GAAAI,EAAA,EAAA,CAAA,GAEAC,IAAAC,EAAA,OAAA;AAAA,MAA2C,sBAAAJ,EAAA;AAAA,IACC,EAAA;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.
|
|
1
|
+
{"version":3,"file":"index.4c062058.js","sources":["../../../../node_modules/vue-demi/lib/v2.7/index.mjs"],"sourcesContent":["import Vue from 'vue'\nimport { getCurrentInstance } from 'vue'\n\nvar isVue2 = true\nvar isVue3 = false\nvar Vue2 = Vue\nvar warn = Vue.util.warn\n\nfunction install() {}\n\n// createApp polyfill\nexport function createApp(rootComponent, rootProps) {\n var vm\n var provide = {}\n var app = {\n config: Vue.config,\n use: Vue.use.bind(Vue),\n mixin: Vue.mixin.bind(Vue),\n component: Vue.component.bind(Vue),\n provide: function (key, value) {\n provide[key] = value\n return this\n },\n directive: function (name, dir) {\n if (dir) {\n Vue.directive(name, dir)\n return app\n } else {\n return Vue.directive(name)\n }\n },\n mount: function (el, hydrating) {\n if (!vm) {\n vm = new Vue(Object.assign({ propsData: rootProps }, rootComponent, { provide: Object.assign(provide, rootComponent.provide) }))\n vm.$mount(el, hydrating)\n return vm\n } else {\n return vm\n }\n },\n unmount: function () {\n if (vm) {\n vm.$destroy()\n vm = undefined\n }\n },\n }\n return app\n}\n\nexport {\n Vue,\n Vue2,\n isVue2,\n isVue3,\n install,\n warn\n}\n\n// Vue 3 components mock\nfunction createMockComponent(name) {\n return {\n setup() {\n throw new Error('[vue-demi] ' + name + ' is not supported in Vue 2. It\\'s provided to avoid compiler errors.')\n }\n }\n}\nexport var Fragment = /*#__PURE__*/ createMockComponent('Fragment')\nexport var Transition = /*#__PURE__*/ createMockComponent('Transition')\nexport var TransitionGroup = /*#__PURE__*/ createMockComponent('TransitionGroup')\nexport var Teleport = /*#__PURE__*/ createMockComponent('Teleport')\nexport var Suspense = /*#__PURE__*/ createMockComponent('Suspense')\nexport var KeepAlive = /*#__PURE__*/ createMockComponent('KeepAlive')\n\nexport * from 'vue'\n\n// Not implemented https://github.com/vuejs/core/pull/8111, falls back to getCurrentInstance()\nexport function hasInjectionContext() {\n return !!getCurrentInstance()\n}\n"],"names":["isVue2","Vue2","Vue"],"mappings":";AAGG,IAACA,IAAS,IAETC,IAAOC;AACAA,EAAI,KAAK;","x_google_ignoreList":[0]}
|