@adyen/bento-vue3 2.0.0-rc.6 → 2.0.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/index.d.ts +47 -89
- package/dist/accordion.js +1 -1
- package/dist/action-bar.js +1 -1
- package/dist/ai-tag.js +1 -1
- package/dist/alert.js +1 -1
- package/dist/anchor-scroller.js +1 -1
- package/dist/assets/accordion-item.css +1 -1
- package/dist/assets/action-bar.css +1 -1
- package/dist/assets/ai-tag.css +1 -1
- package/dist/assets/anchor-scroller.css +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/button-actions.css +1 -1
- package/dist/assets/calendar.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/checkbox-group.css +1 -1
- package/dist/assets/checkbox.css +1 -1
- package/dist/assets/data-grid-template.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/date-picker.css +1 -1
- package/dist/assets/date-range-picker.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/filter-bar.css +1 -1
- package/dist/assets/header-with-views.css +1 -1
- package/dist/assets/info-icon-with-popover.css +1 -1
- package/dist/assets/input-field-password.css +1 -1
- package/dist/assets/input-field.css +1 -1
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/link.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/navigation-menu-group.css +1 -1
- package/dist/assets/pagination.css +1 -1
- package/dist/assets/progress-bar.css +1 -1
- package/dist/assets/promo-banner.css +1 -1
- package/dist/assets/radio-group.css +1 -1
- package/dist/assets/rich-text-editor.css +1 -1
- package/dist/assets/secondary-nav.css +1 -1
- package/dist/assets/segmented-control.css +1 -1
- package/dist/assets/selection-card-group.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/tab.css +1 -1
- package/dist/assets/table-of-contents.css +1 -1
- package/dist/assets/tag.css +1 -1
- package/dist/assets/textarea.css +1 -1
- package/dist/assets/timeline-item.css +1 -1
- package/dist/assets/toggle.css +1 -1
- package/dist/button.js +3 -3
- package/dist/card.js +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/chip.js +1 -1
- package/dist/chunks/{accordion-item.CDqXAJ_o.js → accordion-item.l88yjGPT.js} +2 -2
- package/dist/chunks/accordion-item.l88yjGPT.js.map +1 -0
- package/dist/chunks/{action-bar.Y0-Y1Lxb.js → action-bar.CWjLoeOU.js} +166 -149
- package/dist/chunks/action-bar.CWjLoeOU.js.map +1 -0
- package/dist/chunks/{ai-button.HyFL1Urc.js → ai-button.CYaCMWFk.js} +2 -2
- package/dist/chunks/{ai-button.HyFL1Urc.js.map → ai-button.CYaCMWFk.js.map} +1 -1
- package/dist/chunks/{ai-tag.BQQA6de2.js → ai-tag.CjrOE5yl.js} +3 -3
- package/dist/chunks/ai-tag.CjrOE5yl.js.map +1 -0
- package/dist/chunks/{alert.DPb3_p0K.js → alert.C8Pe1-OO.js} +2 -2
- package/dist/chunks/{alert.DPb3_p0K.js.map → alert.C8Pe1-OO.js.map} +1 -1
- package/dist/chunks/{anchor-scroller.B2TgWdCo.js → anchor-scroller.C3zkcfPH.js} +13 -13
- package/dist/chunks/anchor-scroller.C3zkcfPH.js.map +1 -0
- package/dist/chunks/{base-button.C8hw-h9-.js → base-button.Bi5JR_6k.js} +2 -2
- package/dist/chunks/{base-button.C8hw-h9-.js.map → base-button.Bi5JR_6k.js.map} +1 -1
- package/dist/chunks/base-modal.Bn4ZXwv6.js +441 -0
- package/dist/chunks/base-modal.Bn4ZXwv6.js.map +1 -0
- package/dist/chunks/{button-actions-with-menu.LF1NNScj.js → button-actions-with-menu.CrbF2BSQ.js} +2 -2
- package/dist/chunks/{button-actions-with-menu.LF1NNScj.js.map → button-actions-with-menu.CrbF2BSQ.js.map} +1 -1
- package/dist/chunks/{button-actions.BjSTWgNC.js → button-actions.uIjzze43.js} +5 -5
- package/dist/chunks/{button-actions.BjSTWgNC.js.map → button-actions.uIjzze43.js.map} +1 -1
- package/dist/chunks/{button.D6d4P8nC.js → button.Ciflfide.js} +2 -2
- package/dist/chunks/{button.D6d4P8nC.js.map → button.Ciflfide.js.map} +1 -1
- package/dist/chunks/{calendar.Dndck6oT.js → calendar.Dtba7fcs.js} +5 -5
- package/dist/chunks/calendar.Dtba7fcs.js.map +1 -0
- package/dist/chunks/card.ID7LqObu.js +254 -0
- package/dist/chunks/card.ID7LqObu.js.map +1 -0
- package/dist/chunks/{checkbox-group.BqLVduAB.js → checkbox-group.BCzNXT1-.js} +8 -8
- package/dist/chunks/checkbox-group.BCzNXT1-.js.map +1 -0
- package/dist/chunks/{checkbox.OqIysGJA.js → checkbox.0RmIkniU.js} +15 -15
- package/dist/chunks/checkbox.0RmIkniU.js.map +1 -0
- package/dist/chunks/{chip.REcSE76u.js → chip.Bv6IGch0.js} +2 -2
- package/dist/chunks/{chip.REcSE76u.js.map → chip.Bv6IGch0.js.map} +1 -1
- package/dist/chunks/{code-snippet.B9poUCAs.js → code-snippet.BbswO6TU.js} +5 -5
- package/dist/chunks/{code-snippet.B9poUCAs.js.map → code-snippet.BbswO6TU.js.map} +1 -1
- package/dist/chunks/{copy.BqYryk37.js → copy.C92qFRaR.js} +2 -2
- package/dist/chunks/{copy.BqYryk37.js.map → copy.C92qFRaR.js.map} +1 -1
- package/dist/chunks/{cross-circle-fill-small.ganKvfe0.js → cross-circle-fill-small.C87G_8OX.js} +2 -2
- package/dist/chunks/cross-circle-fill-small.C87G_8OX.js.map +1 -0
- package/dist/chunks/{dashboard-section.D1GPmEU2.js → dashboard-section.Bv-SveGN.js} +3 -3
- package/dist/chunks/{dashboard-section.D1GPmEU2.js.map → dashboard-section.Bv-SveGN.js.map} +1 -1
- package/dist/chunks/{dashed-underline.E65uUWYF.js → dashed-underline.C3lSC1_R.js} +2 -2
- package/dist/chunks/{dashed-underline.E65uUWYF.js.map → dashed-underline.C3lSC1_R.js.map} +1 -1
- package/dist/chunks/{data-grid-template.DsZI-ISc.js → data-grid-template.DqZmPeze.js} +4 -4
- package/dist/chunks/{data-grid-template.DsZI-ISc.js.map → data-grid-template.DqZmPeze.js.map} +1 -1
- package/dist/chunks/{data-grid.oiH-QM7_.js → data-grid.Ca27H24r.js} +20 -20
- package/dist/chunks/data-grid.Ca27H24r.js.map +1 -0
- package/dist/chunks/{date-picker.94wdYFML.js → date-picker.Dnr2HuxA.js} +7 -7
- package/dist/chunks/date-picker.Dnr2HuxA.js.map +1 -0
- package/dist/chunks/{date-range-picker.D45JX1VD.js → date-range-picker.CuBygd3O.js} +10 -10
- package/dist/chunks/{date-range-picker.D45JX1VD.js.map → date-range-picker.CuBygd3O.js.map} +1 -1
- package/dist/chunks/{dialog-page.yakmJ6Bc.js → dialog-page.D60pjDsQ.js} +2 -2
- package/dist/chunks/{dialog-page.yakmJ6Bc.js.map → dialog-page.D60pjDsQ.js.map} +1 -1
- package/dist/chunks/{draggable-handle.DnvrxRxK.js → draggable-handle.Cvc8gHzx.js} +2 -2
- package/dist/chunks/{draggable-handle.DnvrxRxK.js.map → draggable-handle.Cvc8gHzx.js.map} +1 -1
- package/dist/chunks/{draggable.Cp2Qnooa.js → draggable.BZsgR26I.js} +2 -2
- package/dist/chunks/{draggable.Cp2Qnooa.js.map → draggable.BZsgR26I.js.map} +1 -1
- package/dist/chunks/{dropdown-tag.C3ybYQxd.js → dropdown-tag.Bn5FPeEL.js} +3 -3
- package/dist/chunks/{dropdown-tag.C3ybYQxd.js.map → dropdown-tag.Bn5FPeEL.js.map} +1 -1
- package/dist/chunks/{dropdown.DivEbn7p.js → dropdown.D_jkFrMd.js} +194 -194
- package/dist/chunks/dropdown.D_jkFrMd.js.map +1 -0
- package/dist/chunks/{empty-state.Bto2psKu.js → empty-state.DpUC-3wv.js} +3 -3
- package/dist/chunks/{empty-state.Bto2psKu.js.map → empty-state.DpUC-3wv.js.map} +1 -1
- package/dist/chunks/es6.yPcTMnSH.js.map +1 -1
- package/dist/chunks/{file-uploader.BuOQRa-V.js → file-uploader.BglImnqw.js} +6 -6
- package/dist/chunks/file-uploader.BglImnqw.js.map +1 -0
- package/dist/chunks/{filter-bar.B14faBNI.js → filter-bar.DG4GTi8L.js} +514 -533
- package/dist/chunks/filter-bar.DG4GTi8L.js.map +1 -0
- package/dist/chunks/{fixed-scroller.B3kEBipG.js → fixed-scroller.DoOR83iH.js} +2 -2
- package/dist/chunks/{fixed-scroller.B3kEBipG.js.map → fixed-scroller.DoOR83iH.js.map} +1 -1
- package/dist/chunks/{footer-actions.NpAByudT.js → footer-actions.Dl20Q1WX.js} +3 -3
- package/dist/chunks/{footer-actions.NpAByudT.js.map → footer-actions.Dl20Q1WX.js.map} +1 -1
- package/dist/chunks/{form-layout-title.Dh45kd1K.js → form-layout-title.BZFh_nGD.js} +2 -2
- package/dist/chunks/{form-layout-title.Dh45kd1K.js.map → form-layout-title.BZFh_nGD.js.map} +1 -1
- package/dist/chunks/generate-uid.DBWe4g6T.js.map +1 -1
- package/dist/chunks/{header-with-views.DufmtnZ2.js → header-with-views.WJlXgGI5.js} +875 -849
- package/dist/chunks/{header-with-views.DufmtnZ2.js.map → header-with-views.WJlXgGI5.js.map} +1 -1
- package/dist/chunks/{header.Jtie5-7g.js → header.Bi3MPZKE.js} +4 -4
- package/dist/chunks/{header.Jtie5-7g.js.map → header.Bi3MPZKE.js.map} +1 -1
- package/dist/chunks/{info-icon-with-popover.CLGZteKS.js → info-icon-with-popover.uSr6-jzR.js} +3 -3
- package/dist/chunks/info-icon-with-popover.uSr6-jzR.js.map +1 -0
- package/dist/chunks/{input-field-password.BPjmZ2vh.js → input-field-password.CJZxudne.js} +5 -5
- package/dist/chunks/input-field-password.CJZxudne.js.map +1 -0
- package/dist/chunks/{input-field-phone-number.BViae6Ex.js → input-field-phone-number.OJ4MG9Gf.js} +2 -2
- package/dist/chunks/{input-field-phone-number.BViae6Ex.js.map → input-field-phone-number.OJ4MG9Gf.js.map} +1 -1
- package/dist/chunks/{input-field.DgQG5TCW.js → input-field.IyNujUZt.js} +3 -3
- package/dist/chunks/input-field.IyNujUZt.js.map +1 -0
- package/dist/chunks/{input-time.DYbJUHP5.js → input-time.BJ6YqkFi.js} +3 -3
- package/dist/chunks/{input-time.DYbJUHP5.js.map → input-time.BJ6YqkFi.js.map} +1 -1
- package/dist/chunks/{inspector-page.BdfORbVT.js → inspector-page.D42_PXHM.js} +3 -3
- package/dist/chunks/{inspector-page.BdfORbVT.js.map → inspector-page.D42_PXHM.js.map} +1 -1
- package/dist/chunks/{inspector.CEiwH5Pt.js → inspector.BBgrupfO.js} +3 -3
- package/dist/chunks/inspector.BBgrupfO.js.map +1 -0
- package/dist/chunks/{link.DHhC2vrX.js → link.types.BGj7apK3.js} +36 -36
- package/dist/chunks/link.types.BGj7apK3.js.map +1 -0
- package/dist/chunks/{list-item.QB0YYGW9.js → list-item.CT7dyMQH.js} +3 -3
- package/dist/chunks/{list-item.QB0YYGW9.js.map → list-item.CT7dyMQH.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.DCuA8MoL.js → listbox-option-tag.CwrFdsY1.js} +2 -2
- package/dist/chunks/{listbox-option-tag.DCuA8MoL.js.map → listbox-option-tag.CwrFdsY1.js.map} +1 -1
- package/dist/chunks/{modal-fullscreen.DtG6vHhq.js → modal-fullscreen.I5bjqzfd.js} +6 -6
- package/dist/chunks/modal-fullscreen.I5bjqzfd.js.map +1 -0
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.CKWzgLgL.js → modal.vue_vue_type_script_setup_true_lang.CrsIyU7A.js} +5 -5
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.CKWzgLgL.js.map → modal.vue_vue_type_script_setup_true_lang.CrsIyU7A.js.map} +1 -1
- package/dist/chunks/{navigation-menu-group.E-24hOWI.js → navigation-menu-group.BSGdcUDN.js} +6 -6
- package/dist/chunks/navigation-menu-group.BSGdcUDN.js.map +1 -0
- package/dist/chunks/{pagination.B2Kgh-MF.js → pagination.C5gZxtZY.js} +5 -5
- package/dist/chunks/pagination.C5gZxtZY.js.map +1 -0
- package/dist/chunks/{promo-banner.DuottTum.js → promo-banner.kE1-WkzI.js} +9 -9
- package/dist/chunks/{promo-banner.DuottTum.js.map → promo-banner.kE1-WkzI.js.map} +1 -1
- package/dist/chunks/{radio-group.BANaG-Fa.js → radio-group.XmRPh03c.js} +4 -4
- package/dist/chunks/radio-group.XmRPh03c.js.map +1 -0
- package/dist/chunks/{rich-text-editor.Dbc9Y2YC.js → rich-text-editor.Cv_Vwt-6.js} +6 -6
- package/dist/chunks/{rich-text-editor.Dbc9Y2YC.js.map → rich-text-editor.Cv_Vwt-6.js.map} +1 -1
- package/dist/chunks/{search-bar.CAsAh02R.js → search-bar.5tObtLfW.js} +3 -3
- package/dist/chunks/{search-bar.CAsAh02R.js.map → search-bar.5tObtLfW.js.map} +1 -1
- package/dist/chunks/{secondary-nav.DOgZJUTd.js → secondary-nav.Bhn5bVYI.js} +5 -5
- package/dist/chunks/secondary-nav.Bhn5bVYI.js.map +1 -0
- package/dist/chunks/{segmented-control.6XApEjVS.js → segmented-control.CEt2dz4n.js} +2 -2
- package/dist/chunks/segmented-control.CEt2dz4n.js.map +1 -0
- package/dist/chunks/{selection-card-group.emQVruZd.js → selection-card-group.DHXtJpoB.js} +11 -11
- package/dist/chunks/selection-card-group.DHXtJpoB.js.map +1 -0
- package/dist/chunks/{sidepanel.DcrakBM9.js → sidepanel._30g8POM.js} +6 -6
- package/dist/chunks/sidepanel._30g8POM.js.map +1 -0
- package/dist/chunks/{step.Ch6oovwT.js → step.5_ZukVqJ.js} +2 -2
- package/dist/chunks/{step.Ch6oovwT.js.map → step.5_ZukVqJ.js.map} +1 -1
- package/dist/chunks/{structured-list-item.exe4zQXe.js → structured-list-item.CBzznwcF.js} +3 -3
- package/dist/chunks/{structured-list-item.exe4zQXe.js.map → structured-list-item.CBzznwcF.js.map} +1 -1
- package/dist/chunks/{summary-grid.types.BYqz5zdo.js → summary-grid.types.BR_EGvRg.js} +4 -4
- package/dist/chunks/{summary-grid.types.BYqz5zdo.js.map → summary-grid.types.BR_EGvRg.js.map} +1 -1
- package/dist/chunks/{tab.Bat55rEc.js → tab.D_k5AVHk.js} +4 -4
- package/dist/chunks/tab.D_k5AVHk.js.map +1 -0
- package/dist/chunks/{table-of-contents.DIDNJXqh.js → table-of-contents.CJ2yMbAG.js} +15 -15
- package/dist/chunks/table-of-contents.CJ2yMbAG.js.map +1 -0
- package/dist/chunks/tag.BE1j0Oid.js +69 -0
- package/dist/chunks/tag.BE1j0Oid.js.map +1 -0
- package/dist/chunks/{textarea.-owTWdhj.js → textarea.BYshPd98.js} +4 -4
- package/dist/chunks/textarea.BYshPd98.js.map +1 -0
- package/dist/chunks/{timeline-item.DvlhZ_-D.js → timeline-item.Sy_DSw6p.js} +9 -9
- package/dist/chunks/{timeline-item.DvlhZ_-D.js.map → timeline-item.Sy_DSw6p.js.map} +1 -1
- package/dist/chunks/title-details.C4ZvxPMu.js +144 -0
- package/dist/chunks/title-details.C4ZvxPMu.js.map +1 -0
- package/dist/chunks/{toast.N4m58lr8.js → toast.u5Y_CGe_.js} +2 -2
- package/dist/chunks/{toast.N4m58lr8.js.map → toast.u5Y_CGe_.js.map} +1 -1
- package/dist/chunks/{toggle.BqQ7NGMb.js → toggle.BW8ww0Ih.js} +2 -2
- package/dist/chunks/toggle.BW8ww0Ih.js.map +1 -0
- package/dist/chunks/tooltip.TFOGHOO0.js.map +1 -1
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.CMkHWnq2.js → tutorial.vue_vue_type_script_setup_true_lang.BIP-heAH.js} +2 -2
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.CMkHWnq2.js.map → tutorial.vue_vue_type_script_setup_true_lang.BIP-heAH.js.map} +1 -1
- package/dist/chunks/use-bento-toast-controller.BAoPbtq7.js.map +1 -1
- package/dist/chunks/{use-date-input-formatter.DTQ7YmPb.js → use-date-input-formatter._ik1DYYV.js} +2 -2
- package/dist/chunks/{use-date-input-formatter.DTQ7YmPb.js.map → use-date-input-formatter._ik1DYYV.js.map} +1 -1
- package/dist/chunks/use-dynamic-date-fns-locale.BMO9rsEh.js +39 -0
- package/dist/chunks/use-dynamic-date-fns-locale.BMO9rsEh.js.map +1 -0
- package/dist/code-snippet.js +1 -1
- package/dist/dashboard-template.js +1 -1
- package/dist/dashed-underline.js +1 -1
- package/dist/data-grid-template.js +1 -1
- package/dist/data-grid.js +1 -1
- package/dist/date-picker.js +2 -2
- package/dist/date-range-picker.js +2 -2
- package/dist/date-time-picker.js +4 -4
- package/dist/draggable.js +2 -2
- package/dist/dropdown.js +2 -2
- package/dist/empty-state.js +1 -1
- package/dist/file-uploader.js +1 -1
- package/dist/filter-bar.js +1 -1
- package/dist/form-layout.js +1 -1
- package/dist/header-with-views.js +1 -1
- package/dist/header.js +1 -1
- package/dist/index.js +62 -62
- package/dist/input-field-password.js +1 -1
- package/dist/input-field-phone-number.js +1 -1
- package/dist/input-field.js +1 -1
- package/dist/input-time.js +1 -1
- package/dist/inspector.js +2 -2
- package/dist/internal.js +10 -10
- package/dist/link.js +1 -1
- package/dist/list.js +1 -1
- package/dist/menu.js +1 -1
- package/dist/modal-fullscreen.js +1 -1
- package/dist/modal.js +2 -2
- package/dist/navigation-menu.js +1 -1
- package/dist/pagination.js +1 -1
- package/dist/popover.js +1 -1
- package/dist/progress-bar.js +6 -6
- package/dist/progress-bar.js.map +1 -1
- package/dist/promo-banner.js +1 -1
- package/dist/radio-group.js +1 -1
- package/dist/rich-text-editor.js +1 -1
- package/dist/search-bar.js +2 -2
- package/dist/secondary-nav.js +1 -1
- package/dist/segmented-control.js +1 -1
- package/dist/selection-card.js +1 -1
- package/dist/sidepanel.js +1 -1
- package/dist/stepper.js +1 -1
- package/dist/structured-list.js +1 -1
- package/dist/styles/bento-dark.css +3 -3
- package/dist/styles/bento-light.css +4 -4
- package/dist/styles/bento.css +4 -4
- package/dist/styles/legacy.css +4 -4
- package/dist/styles/styleguide.css +4 -4
- package/dist/styles/utility.css +4 -4
- package/dist/summary-grid.js +1 -1
- package/dist/table-of-contents.js +1 -1
- package/dist/tabs.js +1 -1
- package/dist/tag.js +1 -1
- package/dist/textarea.js +1 -1
- package/dist/timeline.js +1 -1
- package/dist/toast.js +1 -1
- package/dist/toggle.js +1 -1
- package/dist/tutorial.js +1 -1
- package/dist/web-types.json +2 -2
- package/package.json +6 -6
- package/dist/chunks/accordion-item.CDqXAJ_o.js.map +0 -1
- package/dist/chunks/action-bar.Y0-Y1Lxb.js.map +0 -1
- package/dist/chunks/ai-tag.BQQA6de2.js.map +0 -1
- package/dist/chunks/anchor-scroller.B2TgWdCo.js.map +0 -1
- package/dist/chunks/base-modal.CD51pnsZ.js +0 -433
- package/dist/chunks/base-modal.CD51pnsZ.js.map +0 -1
- package/dist/chunks/calendar.Dndck6oT.js.map +0 -1
- package/dist/chunks/card.DKvGbswE.js +0 -224
- package/dist/chunks/card.DKvGbswE.js.map +0 -1
- package/dist/chunks/checkbox-group.BqLVduAB.js.map +0 -1
- package/dist/chunks/checkbox.OqIysGJA.js.map +0 -1
- package/dist/chunks/cross-circle-fill-small.ganKvfe0.js.map +0 -1
- package/dist/chunks/data-grid.oiH-QM7_.js.map +0 -1
- package/dist/chunks/date-picker.94wdYFML.js.map +0 -1
- package/dist/chunks/dropdown.DivEbn7p.js.map +0 -1
- package/dist/chunks/file-uploader.BuOQRa-V.js.map +0 -1
- package/dist/chunks/filter-bar.B14faBNI.js.map +0 -1
- package/dist/chunks/info-icon-with-popover.CLGZteKS.js.map +0 -1
- package/dist/chunks/input-field-password.BPjmZ2vh.js.map +0 -1
- package/dist/chunks/input-field.DgQG5TCW.js.map +0 -1
- package/dist/chunks/inspector.CEiwH5Pt.js.map +0 -1
- package/dist/chunks/link.DHhC2vrX.js.map +0 -1
- package/dist/chunks/modal-fullscreen.DtG6vHhq.js.map +0 -1
- package/dist/chunks/navigation-menu-group.E-24hOWI.js.map +0 -1
- package/dist/chunks/pagination.B2Kgh-MF.js.map +0 -1
- package/dist/chunks/radio-group.BANaG-Fa.js.map +0 -1
- package/dist/chunks/secondary-nav.DOgZJUTd.js.map +0 -1
- package/dist/chunks/segmented-control.6XApEjVS.js.map +0 -1
- package/dist/chunks/selection-card-group.emQVruZd.js.map +0 -1
- package/dist/chunks/sidepanel.DcrakBM9.js.map +0 -1
- package/dist/chunks/tab.Bat55rEc.js.map +0 -1
- package/dist/chunks/table-of-contents.DIDNJXqh.js.map +0 -1
- package/dist/chunks/tag.DmGI_QZ-.js +0 -63
- package/dist/chunks/tag.DmGI_QZ-.js.map +0 -1
- package/dist/chunks/textarea.-owTWdhj.js.map +0 -1
- package/dist/chunks/title-details.DoGThvsa.js +0 -176
- package/dist/chunks/title-details.DoGThvsa.js.map +0 -1
- package/dist/chunks/toggle.BqQ7NGMb.js.map +0 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { B as _ } from "./button.
|
|
3
|
-
import { B as
|
|
4
|
-
import { B as
|
|
5
|
-
import { B as
|
|
6
|
-
import { _ as
|
|
7
|
-
import { _ as
|
|
8
|
-
import { _ as
|
|
9
|
-
import { u as
|
|
10
|
-
import { b as
|
|
11
|
-
import { P as
|
|
12
|
-
import { _ as
|
|
1
|
+
import { defineComponent as re, useSlots as le, computed as i, ref as y, toRefs as ue, watch as O, provide as de, nextTick as E, openBlock as n, createBlock as r, Transition as L, withCtx as d, createElementVNode as U, unref as t, normalizeClass as $, createVNode as C, createElementBlock as v, normalizeStyle as ve, createCommentVNode as u, Fragment as w, createTextVNode as b, toDisplayString as h, renderSlot as F } from "vue";
|
|
2
|
+
import { B as _ } from "./button.Ciflfide.js";
|
|
3
|
+
import { B as P } from "./typography.wIM07Hbl.js";
|
|
4
|
+
import { B as me } from "./loading-indicator.BPol9I84.js";
|
|
5
|
+
import { B as ge } from "./button-actions-with-menu.CrbF2BSQ.js";
|
|
6
|
+
import { _ as he } from "./cross.Daa8LxjC.js";
|
|
7
|
+
import { _ as fe } from "./checkmark-circle-fill.Caog04lx.js";
|
|
8
|
+
import { _ as ye } from "./cross-circle-fill.DJbpTaVE.js";
|
|
9
|
+
import { u as be } from "./index.B875RXHM.js";
|
|
10
|
+
import { b as pe } from "./index.DCpihRYV.js";
|
|
11
|
+
import { P as Ae, B as Be } from "./button-actions.uIjzze43.js";
|
|
12
|
+
import { _ as Ce } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
13
13
|
import "../assets/action-bar.css";
|
|
14
|
-
const
|
|
14
|
+
const V = {
|
|
15
15
|
"de-DE": { actionBar: "Aktionsleiste", applying: "Anwenden...", cancel: "Abbrechen", close: "Schließen", retry: "Wiederholen", save: "Speichern", selected: "ausgewählt", somethingWentWrong: "Etwas ist schief gelaufen", success: "Erfolg!", undo: "Rückgängig machen", unsavedChanges: "Ungespeicherte Änderungen | ungespeicherte Änderung | ungespeicherte Änderungen" },
|
|
16
16
|
"en-GB": { actionBar: "Action bar", applying: "Applying...", cancel: "Cancel", close: "Close", retry: "Retry", save: "Save", selected: "selected", somethingWentWrong: "Something went wrong", success: "Success!", undo: "Undo", unsavedChanges: "Unsaved changes | unsaved change | unsaved changes" },
|
|
17
17
|
"en-US": { actionBar: "Action bar", applying: "Applying...", cancel: "Cancel", close: "Close", retry: "Retry", save: "Save", selected: "selected", somethingWentWrong: "Something went wrong", success: "Success!", undo: "Undo", unsavedChanges: "Unsaved changes | unsaved change | unsaved changes" },
|
|
@@ -23,22 +23,22 @@ const F = {
|
|
|
23
23
|
"ja-JP": { actionBar: "アクションバー", applying: "適用中...", cancel: "キャンセル", close: "閉じる", retry: "再試行", save: "保存", selected: "選択済み", somethingWentWrong: "問題が発生しました", success: "成功!", undo: "元に戻す", unsavedChanges: "保存されていない変更 | 保存されていない変更 | 保存されていない変更" },
|
|
24
24
|
"pt-BR": { actionBar: "Barra de ação", applying: "Aplicando...", cancel: "Cancelar", close: "Fechar", retry: "Tentar de novo", save: "Salvar", selected: "selecionado", somethingWentWrong: "Algo deu errado", success: "Sucesso!", undo: "Desfazer", unsavedChanges: "Alterações não salvas | alteração não salva | alterações não salvas" },
|
|
25
25
|
"zh-CN": { actionBar: "操作栏", applying: "申请...", cancel: "取消", close: "关闭", retry: "重试", save: "保存", selected: "已选", somethingWentWrong: "出了点问题", success: "成功!", undo: "撤销", unsavedChanges: "未保存的更改 | 未保存的更改 | 未保存的更改" }
|
|
26
|
-
},
|
|
26
|
+
}, _e = ["aria-label"], Se = {
|
|
27
27
|
key: 0,
|
|
28
28
|
class: "b-action-bar__container-inner"
|
|
29
|
-
},
|
|
29
|
+
}, We = {
|
|
30
30
|
key: 0,
|
|
31
31
|
class: "b-action-bar__close-button"
|
|
32
|
-
},
|
|
32
|
+
}, ke = {
|
|
33
33
|
key: 1,
|
|
34
34
|
class: "b-action-bar__container-inner"
|
|
35
|
-
},
|
|
35
|
+
}, Ee = { class: "b-action-bar__state-icon" }, we = {
|
|
36
36
|
key: 0,
|
|
37
37
|
class: "b-action-bar__state-actions"
|
|
38
|
-
},
|
|
39
|
-
i18n: { messages:
|
|
40
|
-
},
|
|
41
|
-
...
|
|
38
|
+
}, Ne = {
|
|
39
|
+
i18n: { messages: V }
|
|
40
|
+
}, Re = /* @__PURE__ */ re({
|
|
41
|
+
...Ne,
|
|
42
42
|
__name: "action-bar",
|
|
43
43
|
props: {
|
|
44
44
|
/**
|
|
@@ -56,13 +56,20 @@ const F = {
|
|
|
56
56
|
type: Array,
|
|
57
57
|
default: () => []
|
|
58
58
|
},
|
|
59
|
+
/**
|
|
60
|
+
* Determines whether the close button is displayed in the `default` variant.
|
|
61
|
+
*/
|
|
62
|
+
dismissible: {
|
|
63
|
+
type: Boolean,
|
|
64
|
+
default: !0
|
|
65
|
+
},
|
|
59
66
|
/**
|
|
60
67
|
* How many actions should be visible outside the menu, cannot be more than 4
|
|
61
68
|
*/
|
|
62
69
|
visibleActions: {
|
|
63
70
|
type: Number,
|
|
64
71
|
default: 4,
|
|
65
|
-
validator: (
|
|
72
|
+
validator: (s) => s > 0 && s <= 4
|
|
66
73
|
},
|
|
67
74
|
/**
|
|
68
75
|
* Use when there are sticky elements at the bottom, like sticky pagination
|
|
@@ -80,11 +87,12 @@ const F = {
|
|
|
80
87
|
default: null
|
|
81
88
|
},
|
|
82
89
|
/**
|
|
83
|
-
* Label for the selection, e.g. 'selected'/'changed'
|
|
90
|
+
* Label for the selection in the `default` variant, e.g. 'selected'/'changed'.
|
|
91
|
+
* Pass `null` to hide it. In the `confirmation` variant, this prop is ignored.
|
|
84
92
|
*/
|
|
85
93
|
selectionLabel: {
|
|
86
94
|
type: String,
|
|
87
|
-
default:
|
|
95
|
+
default: void 0
|
|
88
96
|
},
|
|
89
97
|
/**
|
|
90
98
|
* State of the action bar.
|
|
@@ -118,220 +126,229 @@ const F = {
|
|
|
118
126
|
}
|
|
119
127
|
},
|
|
120
128
|
emits: ["close", "cancel", "save", "undo-action", "retry-action", "cancel-action"],
|
|
121
|
-
setup(
|
|
122
|
-
const
|
|
123
|
-
switch (
|
|
129
|
+
setup(s, { emit: G }) {
|
|
130
|
+
const e = s, f = G, { t: c, tc: N, n: z } = be({ messages: V }), M = le(), R = () => !!M.selectionLabel, I = i(() => e.selectionLabel === void 0 ? c("selected") : e.selectionLabel), D = i(() => {
|
|
131
|
+
switch (e.state) {
|
|
124
132
|
case "loading":
|
|
125
|
-
return
|
|
133
|
+
return c("applying");
|
|
126
134
|
case "success":
|
|
127
|
-
return
|
|
135
|
+
return c("success");
|
|
128
136
|
case "fail":
|
|
129
|
-
return
|
|
137
|
+
return c("somethingWentWrong");
|
|
130
138
|
default:
|
|
131
139
|
return "";
|
|
132
140
|
}
|
|
133
|
-
}),
|
|
134
|
-
() =>
|
|
135
|
-
),
|
|
136
|
-
() =>
|
|
137
|
-
),
|
|
138
|
-
|
|
139
|
-
},
|
|
140
|
-
if (
|
|
141
|
+
}), A = y(null), p = y(null), S = y(null), W = y(!1), j = i(
|
|
142
|
+
() => e.state === "loading" ? "out-in" : void 0
|
|
143
|
+
), K = i(
|
|
144
|
+
() => e.state === "loading" || e.state === "success" && !e.showUndoAction
|
|
145
|
+
), J = (a) => {
|
|
146
|
+
e.state === "loading" && (p.value = `${a.offsetWidth}px`, S.value = "100%");
|
|
147
|
+
}, Z = (a) => {
|
|
148
|
+
if (e.state !== "loading")
|
|
141
149
|
return;
|
|
142
|
-
Object.assign(
|
|
143
|
-
const o =
|
|
144
|
-
Object.assign(
|
|
150
|
+
Object.assign(a.style, { width: "auto", maxWidth: "none" });
|
|
151
|
+
const o = a.offsetWidth;
|
|
152
|
+
Object.assign(a.style, { width: "100%", maxWidth: p.value }), requestAnimationFrame(() => {
|
|
145
153
|
p.value = `${o}px`;
|
|
146
154
|
});
|
|
147
|
-
},
|
|
148
|
-
p.value = null, S.value = null,
|
|
149
|
-
},
|
|
150
|
-
|
|
151
|
-
}, { extraBottomSpacing:
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
155
|
+
}, q = () => {
|
|
156
|
+
p.value = null, S.value = null, e.state === "fail" && (W.value = !0);
|
|
157
|
+
}, Q = (a) => {
|
|
158
|
+
a.animationName.startsWith("shake-") && (W.value = !1);
|
|
159
|
+
}, { extraBottomSpacing: X, visibleActions: Y } = ue(e), { width: B } = pe(), l = y(null), k = y(null), m = i(() => e.variant === "confirmation"), H = i(
|
|
160
|
+
() => m.value ? N("unsavedChanges", e.itemCounter) : I.value
|
|
161
|
+
), ee = i(() => !m.value && e.dismissible !== !1), ae = () => m.value || R() || e.selectionLabel !== null;
|
|
162
|
+
O(
|
|
163
|
+
() => Y.value,
|
|
164
|
+
(a) => {
|
|
165
|
+
k.value = a <= 4 ? a : 4, l.value = k.value;
|
|
156
166
|
},
|
|
157
167
|
{ immediate: !0 }
|
|
158
168
|
);
|
|
159
|
-
const
|
|
160
|
-
"b-action-bar--extra-spacing":
|
|
161
|
-
"b-action-bar--confirmation":
|
|
169
|
+
const ne = i(() => ({
|
|
170
|
+
"b-action-bar--extra-spacing": X.value,
|
|
171
|
+
"b-action-bar--confirmation": m.value,
|
|
162
172
|
"b-action-bar__state-animation--shake": W.value
|
|
163
|
-
})),
|
|
164
|
-
[`b-action-bar__container--${
|
|
173
|
+
})), te = i(() => ({
|
|
174
|
+
[`b-action-bar__container--${e.state}`]: e.state !== "start"
|
|
165
175
|
}));
|
|
166
|
-
|
|
167
|
-
const
|
|
168
|
-
const
|
|
169
|
-
...
|
|
176
|
+
de(Ae, 7);
|
|
177
|
+
const se = i(() => {
|
|
178
|
+
const a = e.actions.map((ce) => ({
|
|
179
|
+
...ce,
|
|
170
180
|
variant: "secondary"
|
|
171
|
-
})), o =
|
|
172
|
-
return [...o, ...
|
|
173
|
-
}),
|
|
181
|
+
})), o = a.slice(0, l.value).reverse(), g = a.slice(l.value);
|
|
182
|
+
return [...o, ...g];
|
|
183
|
+
}), oe = i(() => [
|
|
174
184
|
{
|
|
175
|
-
title:
|
|
176
|
-
event: () =>
|
|
185
|
+
title: c("save"),
|
|
186
|
+
event: () => f("save")
|
|
177
187
|
},
|
|
178
188
|
{
|
|
179
|
-
title:
|
|
189
|
+
title: c("cancel"),
|
|
180
190
|
variant: "secondary",
|
|
181
|
-
event: () =>
|
|
191
|
+
event: () => f("cancel")
|
|
182
192
|
}
|
|
183
|
-
]),
|
|
184
|
-
await
|
|
185
|
-
},
|
|
186
|
-
await
|
|
193
|
+
]), ie = i(() => e.itemCounter == null || e.itemCounter < 1), T = async () => {
|
|
194
|
+
await E(), B.value > A.value.clientWidth + 32 + 100 && l.value < k.value && (l.value += 1, T());
|
|
195
|
+
}, x = async () => {
|
|
196
|
+
await E(), B.value < A.value.clientWidth + 32 && l.value > 0 && (l.value -= 1, x());
|
|
187
197
|
};
|
|
188
|
-
return
|
|
189
|
-
() =>
|
|
190
|
-
async (
|
|
191
|
-
if (await
|
|
198
|
+
return O(
|
|
199
|
+
() => B.value,
|
|
200
|
+
async (a, o) => {
|
|
201
|
+
if (await E(), !A.value)
|
|
192
202
|
return;
|
|
193
|
-
const
|
|
194
|
-
|
|
203
|
+
const g = a > o;
|
|
204
|
+
B.value < 500 ? l.value = 0 : g ? T() : x();
|
|
195
205
|
},
|
|
196
206
|
{ immediate: !0 }
|
|
197
|
-
), (
|
|
207
|
+
), (a, o) => (n(), r(L, {
|
|
198
208
|
name: "b-action-bar__animation",
|
|
199
209
|
appear: ""
|
|
200
210
|
}, {
|
|
201
|
-
default:
|
|
202
|
-
|
|
203
|
-
class:
|
|
204
|
-
"aria-label":
|
|
205
|
-
onAnimationend:
|
|
211
|
+
default: d(() => [
|
|
212
|
+
U("section", {
|
|
213
|
+
class: $(["b-action-bar", ne.value]),
|
|
214
|
+
"aria-label": t(c)("actionBar"),
|
|
215
|
+
onAnimationend: Q
|
|
206
216
|
}, [
|
|
207
|
-
|
|
208
|
-
name: `b-action-bar__state-animation--${
|
|
209
|
-
mode:
|
|
210
|
-
onBeforeLeave:
|
|
211
|
-
onEnter:
|
|
212
|
-
onAfterEnter:
|
|
217
|
+
C(L, {
|
|
218
|
+
name: `b-action-bar__state-animation--${s.state}`,
|
|
219
|
+
mode: j.value,
|
|
220
|
+
onBeforeLeave: J,
|
|
221
|
+
onEnter: Z,
|
|
222
|
+
onAfterEnter: q
|
|
213
223
|
}, {
|
|
214
|
-
default:
|
|
215
|
-
(
|
|
224
|
+
default: d(() => [
|
|
225
|
+
(n(), v("div", {
|
|
216
226
|
ref_key: "actionBar",
|
|
217
|
-
ref:
|
|
218
|
-
key:
|
|
219
|
-
class:
|
|
220
|
-
style:
|
|
227
|
+
ref: A,
|
|
228
|
+
key: s.state,
|
|
229
|
+
class: $(["b-action-bar__container", te.value]),
|
|
230
|
+
style: ve({ width: S.value, maxWidth: p.value })
|
|
221
231
|
}, [
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
232
|
+
s.state === "start" ? (n(), v("div", Se, [
|
|
233
|
+
ee.value ? (n(), v("div", We, [
|
|
234
|
+
C(t(_), {
|
|
225
235
|
variant: "tertiary",
|
|
226
236
|
inverse: "",
|
|
227
|
-
"aria-label":
|
|
228
|
-
onClick: o[0] || (o[0] = (
|
|
237
|
+
"aria-label": t(c)("close"),
|
|
238
|
+
onClick: o[0] || (o[0] = (g) => f("close"))
|
|
229
239
|
}, {
|
|
230
|
-
iconLeft:
|
|
231
|
-
|
|
240
|
+
iconLeft: d(() => [
|
|
241
|
+
C(t(he), { "aria-hidden": !0 })
|
|
232
242
|
]),
|
|
233
243
|
_: 1
|
|
234
244
|
}, 8, ["aria-label"])
|
|
235
|
-
])),
|
|
236
|
-
|
|
245
|
+
])) : u("", !0),
|
|
246
|
+
ae() ? (n(), r(t(P), {
|
|
247
|
+
key: 1,
|
|
237
248
|
el: "span",
|
|
238
249
|
stronger: "",
|
|
239
250
|
class: "b-action-bar__selection"
|
|
240
251
|
}, {
|
|
241
|
-
default:
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
], 64)) : (
|
|
245
|
-
|
|
252
|
+
default: d(() => [
|
|
253
|
+
m.value && ie.value ? (n(), v(w, { key: 0 }, [
|
|
254
|
+
b(h(t(N)("unsavedChanges", 0)), 1)
|
|
255
|
+
], 64)) : (n(), v(w, { key: 1 }, [
|
|
256
|
+
!m.value && R() ? F(a.$slots, "selectionLabel", {
|
|
257
|
+
key: 0,
|
|
258
|
+
itemCounter: s.itemCounter,
|
|
259
|
+
label: I.value
|
|
260
|
+
}, void 0, !0) : (n(), v(w, { key: 1 }, [
|
|
261
|
+
b(h(t(z)(s.itemCounter)) + " " + h(H.value), 1)
|
|
262
|
+
], 64))
|
|
246
263
|
], 64))
|
|
247
264
|
]),
|
|
248
|
-
_:
|
|
249
|
-
}),
|
|
250
|
-
|
|
251
|
-
key:
|
|
252
|
-
actions:
|
|
265
|
+
_: 3
|
|
266
|
+
})) : u("", !0),
|
|
267
|
+
m.value ? (n(), r(t(Be), {
|
|
268
|
+
key: 2,
|
|
269
|
+
actions: oe.value,
|
|
253
270
|
class: "b-action-bar__actions",
|
|
254
271
|
inverse: ""
|
|
255
|
-
}, null, 8, ["actions"])) : (
|
|
256
|
-
key:
|
|
257
|
-
actions:
|
|
272
|
+
}, null, 8, ["actions"])) : (n(), r(ge, {
|
|
273
|
+
key: 3,
|
|
274
|
+
actions: se.value,
|
|
258
275
|
class: "b-action-bar__actions",
|
|
259
|
-
"displayed-actions":
|
|
276
|
+
"displayed-actions": l.value,
|
|
260
277
|
"menu-position": "top-end",
|
|
261
278
|
"disable-responsive-behavior": "",
|
|
262
279
|
inverse: ""
|
|
263
280
|
}, null, 8, ["actions", "displayed-actions"]))
|
|
264
|
-
])) : (
|
|
265
|
-
|
|
266
|
-
|
|
281
|
+
])) : (n(), v("div", ke, [
|
|
282
|
+
U("div", Ee, [
|
|
283
|
+
s.state === "loading" ? (n(), r(t(me), {
|
|
267
284
|
key: 0,
|
|
268
285
|
small: "",
|
|
269
286
|
inverse: ""
|
|
270
|
-
})) :
|
|
271
|
-
|
|
287
|
+
})) : u("", !0),
|
|
288
|
+
s.state === "success" ? (n(), r(t(fe), {
|
|
272
289
|
key: 1,
|
|
273
290
|
"aria-hidden": !0
|
|
274
|
-
})) :
|
|
275
|
-
|
|
291
|
+
})) : u("", !0),
|
|
292
|
+
s.state === "fail" ? (n(), r(t(ye), {
|
|
276
293
|
key: 2,
|
|
277
294
|
"aria-hidden": !0
|
|
278
|
-
})) :
|
|
295
|
+
})) : u("", !0)
|
|
279
296
|
]),
|
|
280
|
-
|
|
281
|
-
default:
|
|
282
|
-
|
|
283
|
-
|
|
297
|
+
C(t(P), { stronger: "" }, {
|
|
298
|
+
default: d(() => [
|
|
299
|
+
F(a.$slots, "stateLabel", {}, () => [
|
|
300
|
+
b(h(D.value), 1)
|
|
284
301
|
], !0)
|
|
285
302
|
]),
|
|
286
303
|
_: 3
|
|
287
304
|
}),
|
|
288
|
-
|
|
289
|
-
|
|
305
|
+
K.value ? u("", !0) : (n(), v("div", we, [
|
|
306
|
+
s.state === "success" && s.showUndoAction ? (n(), r(t(_), {
|
|
290
307
|
key: 0,
|
|
291
308
|
variant: "tertiary",
|
|
292
309
|
inverse: "",
|
|
293
|
-
onClick: o[1] || (o[1] = (
|
|
310
|
+
onClick: o[1] || (o[1] = (g) => f("undo-action"))
|
|
294
311
|
}, {
|
|
295
|
-
default:
|
|
296
|
-
|
|
312
|
+
default: d(() => [
|
|
313
|
+
b(h(t(c)("undo")), 1)
|
|
297
314
|
]),
|
|
298
315
|
_: 1
|
|
299
|
-
})) :
|
|
300
|
-
|
|
316
|
+
})) : u("", !0),
|
|
317
|
+
s.state === "fail" && s.showRetryAction ? (n(), r(t(_), {
|
|
301
318
|
key: 1,
|
|
302
319
|
variant: "tertiary",
|
|
303
320
|
inverse: "",
|
|
304
|
-
onClick: o[2] || (o[2] = (
|
|
321
|
+
onClick: o[2] || (o[2] = (g) => f("retry-action"))
|
|
305
322
|
}, {
|
|
306
|
-
default:
|
|
307
|
-
|
|
323
|
+
default: d(() => [
|
|
324
|
+
b(h(t(c)("retry")), 1)
|
|
308
325
|
]),
|
|
309
326
|
_: 1
|
|
310
|
-
})) :
|
|
311
|
-
|
|
327
|
+
})) : u("", !0),
|
|
328
|
+
s.state === "fail" ? (n(), r(t(_), {
|
|
312
329
|
key: 2,
|
|
313
330
|
variant: "tertiary",
|
|
314
331
|
inverse: "",
|
|
315
|
-
onClick: o[3] || (o[3] = (
|
|
332
|
+
onClick: o[3] || (o[3] = (g) => f("cancel-action"))
|
|
316
333
|
}, {
|
|
317
|
-
default:
|
|
318
|
-
|
|
334
|
+
default: d(() => [
|
|
335
|
+
b(h(t(c)("cancel")), 1)
|
|
319
336
|
]),
|
|
320
337
|
_: 1
|
|
321
|
-
})) :
|
|
338
|
+
})) : u("", !0)
|
|
322
339
|
]))
|
|
323
340
|
]))
|
|
324
341
|
], 6))
|
|
325
342
|
]),
|
|
326
343
|
_: 3
|
|
327
344
|
}, 8, ["name", "mode"])
|
|
328
|
-
], 42,
|
|
345
|
+
], 42, _e)
|
|
329
346
|
]),
|
|
330
347
|
_: 3
|
|
331
348
|
}));
|
|
332
349
|
}
|
|
333
|
-
}),
|
|
350
|
+
}), Je = /* @__PURE__ */ Ce(Re, [["__scopeId", "data-v-2be801a5"]]);
|
|
334
351
|
export {
|
|
335
|
-
|
|
352
|
+
Je as B
|
|
336
353
|
};
|
|
337
|
-
//# sourceMappingURL=action-bar.
|
|
354
|
+
//# sourceMappingURL=action-bar.CWjLoeOU.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action-bar.CWjLoeOU.js","sources":["../../../vue2/src/components/action-bar/action-bar.vue"],"sourcesContent":["<template>\n <Transition name=\"b-action-bar__animation\" appear>\n <section\n class=\"b-action-bar\"\n :class=\"conditionalClasses\"\n :aria-label=\"t('actionBar')\"\n @animationend=\"onAnimationEnd\"\n >\n <Transition\n :name=\"`b-action-bar__state-animation--${state}`\"\n :mode=\"stateTransitionMode\"\n @before-leave=\"onBeforeLeave\"\n @enter=\"onEnter\"\n @after-enter=\"onAfterEnter\"\n >\n <div\n ref=\"actionBar\"\n :key=\"state\"\n class=\"b-action-bar__container\"\n :class=\"containerClasses\"\n :style=\"{ width: containerWidth, maxWidth: containerMaxWidth }\"\n >\n <div v-if=\"state === 'start'\" class=\"b-action-bar__container-inner\">\n <div v-if=\"showCloseButton\" class=\"b-action-bar__close-button\">\n <bento-button variant=\"tertiary\" inverse :aria-label=\"t('close')\" @click=\"emit('close')\">\n <template #iconLeft><cross-icon :aria-hidden=\"true\" /></template>\n </bento-button>\n </div>\n\n <bento-typography\n v-if=\"showSelectionLabel()\"\n el=\"span\"\n stronger\n class=\"b-action-bar__selection\"\n >\n <template v-if=\"isConfirmationVariant && noItemCounter\">\n {{ tc('unsavedChanges', 0) }}\n </template>\n\n <template v-else>\n <slot\n v-if=\"!isConfirmationVariant && hasSelectionLabelSlot()\"\n name=\"selectionLabel\"\n :item-counter=\"itemCounter\"\n :label=\"label\"\n />\n\n <template v-else>\n {{ n(itemCounter) }}\n {{ computedSelectionLabel }}\n </template>\n </template>\n </bento-typography>\n\n <bento-button-actions\n v-if=\"isConfirmationVariant\"\n :actions=\"confirmationActions\"\n class=\"b-action-bar__actions\"\n inverse\n />\n\n <button-actions-with-menu\n v-else\n :actions=\"actionsInternal\"\n class=\"b-action-bar__actions\"\n :displayed-actions=\"internalDisplayedActions\"\n menu-position=\"top-end\"\n disable-responsive-behavior\n inverse\n />\n </div>\n\n <div v-else class=\"b-action-bar__container-inner\">\n <div class=\"b-action-bar__state-icon\">\n <bento-loading-indicator v-if=\"state === 'loading'\" small inverse />\n <checkmark-circle-fill v-if=\"state === 'success'\" :aria-hidden=\"true\" />\n <cross-circle-fill v-if=\"state === 'fail'\" :aria-hidden=\"true\" />\n </div>\n <bento-typography stronger>\n <slot name=\"stateLabel\">{{ defaultStateLabel }}</slot>\n </bento-typography>\n <div v-if=\"!hideStateActions\" class=\"b-action-bar__state-actions\">\n <bento-button\n v-if=\"state === 'success' && showUndoAction\"\n variant=\"tertiary\"\n inverse\n @click=\"emit('undo-action')\"\n >{{ t('undo') }}</bento-button\n >\n <bento-button\n v-if=\"state === 'fail' && showRetryAction\"\n variant=\"tertiary\"\n inverse\n @click=\"emit('retry-action')\"\n >{{ t('retry') }}</bento-button\n >\n <bento-button\n v-if=\"state === 'fail'\"\n variant=\"tertiary\"\n inverse\n @click=\"emit('cancel-action')\"\n >{{ t('cancel') }}</bento-button\n >\n </div>\n </div>\n </div>\n </Transition>\n </section>\n </Transition>\n</template>\n\n<script setup lang=\"ts\">\n import {\n computed,\n nextTick,\n type PropType,\n provide,\n ref,\n toRefs,\n type TransitionProps,\n useSlots,\n watch,\n } from 'vue';\n import { BentoButton, BentoButtonActions, type BentoButtonActionsList } from '@/components/button';\n import { BentoTypography } from '@/components/typography';\n import { BentoLoadingIndicator } from '@/components/loading-indicator';\n\n import { type BentoActionBarState, type BentoActionBarVariant } from '@/components/action-bar/action-bar.types';\n import ButtonActionsWithMenu from '@/components/internal/button-actions-with-menu/button-actions-with-menu.vue';\n import CrossIcon from '@adyen/ui-assets-icons-16/vue/cross';\n import CheckmarkCircleFill from '@adyen/ui-assets-icons-16/vue/checkmark-circle-fill';\n import CrossCircleFill from '@adyen/ui-assets-icons-16/vue/cross-circle-fill';\n\n import { useI18n } from '@/utils/ts/i18n';\n import { useWindowSize } from '@vueuse/core';\n\n import messages from './messages.json';\n import { POPOVER_OFFSET_INJECTION_KEY } from '@/components/popover/popover.keys';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n // Constants\n const AVERAGE_BUTTON_SIZE = 100;\n const MENU_OFFSET = 7;\n const RESPONSIVE_BREAKPOINT = 500;\n const SPACING = 32;\n\n const props = defineProps({\n /**\n * List of actions that will be used to render the buttons.\n * Required and used for the `default` variant.\n *\n * Each object in the list should have a `title`, an `event` and,\n * optionally, an `icon`.\n *\n * The component will display 4 actions and the hide the rest inside a menu.\n *\n * @see BentoButton for a list of all the other props supported by each button action.\n */\n actions: {\n type: Array as PropType<BentoButtonActionsList>,\n default: () => [],\n },\n /**\n * Determines whether the close button is displayed in the `default` variant.\n */\n dismissible: {\n type: Boolean,\n default: true,\n },\n /**\n * How many actions should be visible outside the menu, cannot be more than 4\n */\n visibleActions: {\n type: Number,\n default: 4,\n validator: (value: number) => value > 0 && value <= 4,\n },\n /**\n * Use when there are sticky elements at the bottom, like sticky pagination\n */\n extraBottomSpacing: {\n type: Boolean,\n default: false,\n },\n /**\n * Show how many items are selected.\n * When omitted in the `confirmation` variant, a generic \"Unsaved changes\" label is displayed.\n */\n itemCounter: {\n type: Number,\n default: null,\n },\n /**\n * Label for the selection in the `default` variant, e.g. 'selected'/'changed'.\n * Pass `null` to hide it. In the `confirmation` variant, this prop is ignored.\n */\n selectionLabel: {\n type: String,\n default: undefined,\n },\n /**\n * State of the action bar.\n * @values start, loading, success, fail\n */\n state: {\n type: String as PropType<BentoActionBarState>,\n default: 'start',\n },\n /**\n * Displays the undo action button in `success` state.\n */\n showUndoAction: {\n type: Boolean,\n default: false,\n },\n /**\n * Displays the retry action button in `fail` state.\n */\n showRetryAction: {\n type: Boolean,\n default: false,\n },\n /**\n * Variant for the action bar\n * @values default, confirmation\n */\n variant: {\n type: String as PropType<BentoActionBarVariant>,\n default: 'default',\n },\n });\n\n const emit = defineEmits<{\n /**\n * Event emitted when the user click the close button\n */\n (e: 'close'): void;\n /**\n * Event emitted when the user clicks the cancel button in `confirmation` variant.\n */\n (e: 'cancel'): void;\n /**\n * Event emitted when the user clicks the save button in `confirmation` variant.\n */\n (e: 'save'): void;\n /**\n * Event emitted when the user clicks the undo button in `success` state.\n */\n (e: 'undo-action'): void;\n /**\n * Event emitted when the user clicks the retry button in `fail` state.\n */\n (e: 'retry-action'): void;\n /**\n * Event emitted when the user clicks the cancel button in `fail` state.\n */\n (e: 'cancel-action'): void;\n }>();\n\n const { t, tc, n } = useI18n<{ message: MessageSchema }>({ messages });\n const slots = useSlots();\n\n const hasSelectionLabelSlot = () => Boolean(slots.selectionLabel);\n\n const label = computed(() => (props.selectionLabel === undefined ? t('selected') : props.selectionLabel));\n\n const defaultStateLabel = computed(() => {\n switch (props.state) {\n case 'loading':\n return t('applying');\n case 'success':\n return t('success');\n case 'fail':\n return t('somethingWentWrong');\n default:\n return '';\n }\n });\n\n // Refs\n const actionBar = ref<HTMLDivElement>(null);\n const containerMaxWidth = ref<string | null>(null);\n const containerWidth = ref<string | null>(null);\n const isShaking = ref(false);\n\n const stateTransitionMode = computed(\n () => (props.state === 'loading' ? 'out-in' : undefined) as TransitionProps['mode']\n );\n\n const hideStateActions = computed(\n () => props.state === 'loading' || (props.state === 'success' && !props.showUndoAction)\n );\n\n const onBeforeLeave = (el: HTMLElement) => {\n if (props.state !== 'loading') {\n return;\n }\n\n containerMaxWidth.value = `${el.offsetWidth}px`;\n containerWidth.value = '100%';\n };\n\n const onEnter = (el: HTMLElement) => {\n if (props.state !== 'loading') {\n return;\n }\n\n // Reset styles to get natural width\n Object.assign(el.style, { width: 'auto', maxWidth: 'none' });\n const newWidth = el.offsetWidth;\n\n // Reset it back to the original values\n Object.assign(el.style, { width: '100%', maxWidth: containerMaxWidth.value });\n\n requestAnimationFrame(() => {\n containerMaxWidth.value = `${newWidth}px`;\n });\n };\n\n const onAfterEnter = () => {\n containerMaxWidth.value = null;\n containerWidth.value = null;\n\n if (props.state === 'fail') {\n isShaking.value = true;\n }\n };\n\n const onAnimationEnd = (event: AnimationEvent) => {\n if (event.animationName.startsWith('shake-')) {\n isShaking.value = false;\n }\n };\n\n const { extraBottomSpacing, visibleActions } = toRefs(props);\n const { width } = useWindowSize();\n const internalDisplayedActions = ref(null);\n const internalVisibleActions = ref(null);\n\n const isConfirmationVariant = computed(() => props.variant === 'confirmation');\n const computedSelectionLabel = computed(() =>\n isConfirmationVariant.value ? tc('unsavedChanges', props.itemCounter) : label.value\n );\n const showCloseButton = computed(() => !isConfirmationVariant.value && props.dismissible !== false);\n const showSelectionLabel = () =>\n isConfirmationVariant.value || hasSelectionLabelSlot() || props.selectionLabel !== null;\n\n watch(\n () => visibleActions.value,\n value => {\n internalVisibleActions.value = value <= 4 ? value : 4;\n internalDisplayedActions.value = internalVisibleActions.value;\n },\n { immediate: true }\n );\n\n // Styling\n const conditionalClasses = computed(() => ({\n 'b-action-bar--extra-spacing': extraBottomSpacing.value,\n 'b-action-bar--confirmation': isConfirmationVariant.value,\n 'b-action-bar__state-animation--shake': isShaking.value,\n }));\n\n const containerClasses = computed(() => ({\n [`b-action-bar__container--${props.state}`]: props.state !== 'start',\n }));\n\n // Provide POPOVER_OFFSET_INJECTION_KEY to change the value of the popover offset\n provide(POPOVER_OFFSET_INJECTION_KEY, MENU_OFFSET);\n\n // Manipulate actions array to display as intended\n const actionsInternal = computed(() => {\n // All buttons should be of type secondary in the action bar\n const actions = props.actions.map(action => ({\n ...action,\n variant: 'secondary',\n })) as BentoButtonActionsList;\n // Shown actions should display from left to right in action bar, instead of right to left which is the button actions default\n const shownActions = actions.slice(0, internalDisplayedActions.value).reverse();\n const hiddenActions = actions.slice(internalDisplayedActions.value);\n\n return [...shownActions, ...hiddenActions];\n });\n\n const confirmationActions = computed<BentoButtonActionsList>(() => [\n {\n title: t('save'),\n event: () => emit('save'),\n },\n {\n title: t('cancel'),\n variant: 'secondary',\n event: () => emit('cancel'),\n },\n ]);\n\n const noItemCounter = computed(() => {\n return props.itemCounter == null || props.itemCounter < 1;\n });\n\n // Recursive functions to determine how many actions should be visible/hidden based on the screens width\n const showActions = async () => {\n await nextTick();\n if (\n width.value > actionBar.value.clientWidth + SPACING + AVERAGE_BUTTON_SIZE &&\n internalDisplayedActions.value < internalVisibleActions.value\n ) {\n internalDisplayedActions.value += 1;\n showActions();\n }\n };\n\n const hideActions = async () => {\n await nextTick();\n if (width.value < actionBar.value.clientWidth + SPACING && internalDisplayedActions.value > 0) {\n internalDisplayedActions.value -= 1;\n hideActions();\n }\n };\n\n // Screen width watcher to toggle hidden/visible actions\n watch(\n () => width.value,\n async (newValue, oldValue) => {\n await nextTick();\n if (!actionBar.value) {\n return;\n }\n const isIncreasing = newValue > oldValue;\n if (width.value < RESPONSIVE_BREAKPOINT) {\n internalDisplayedActions.value = 0;\n } else if (isIncreasing) {\n showActions();\n } else {\n hideActions();\n }\n },\n { immediate: true }\n );\n</script>\n\n<script lang=\"ts\">\n /**\n * Action bar is a floating bar that provides users with quick access to key actions that can be applied to one or multiple items.\n *\n * @example\n * import { BentoActionBar } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoActionBar },\n * template: `\n * <bento-action-bar\n * :actions='[\n * {\n * title: 'Delete',\n * critical: true,\n * icon: BinIcon,\n * event: () => true,\n * },\n * {\n * title: 'Edit',\n * icon: EditIcon,\n * event: () => true,\n * }\n * ]'\n * @close=\"closeAction\"\n * :item-counter=\"5\"\n * />\n * `\n * }\n */\n export default {\n i18n: { messages },\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./action-bar.scss\" />\n"],"names":["__default__","messages","props","__props","emit","__emit","t","tc","n","useI18n","slots","useSlots","hasSelectionLabelSlot","label","computed","defaultStateLabel","actionBar","ref","containerMaxWidth","containerWidth","isShaking","stateTransitionMode","hideStateActions","onBeforeLeave","el","onEnter","newWidth","onAfterEnter","onAnimationEnd","event","extraBottomSpacing","visibleActions","toRefs","width","useWindowSize","internalDisplayedActions","internalVisibleActions","isConfirmationVariant","computedSelectionLabel","showCloseButton","showSelectionLabel","watch","value","conditionalClasses","containerClasses","provide","POPOVER_OFFSET_INJECTION_KEY","actionsInternal","actions","action","shownActions","hiddenActions","confirmationActions","noItemCounter","showActions","nextTick","hideActions","newValue","oldValue","isIncreasing"],"mappings":"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"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as p, useSlots as f, computed as m, onMounted as b, openBlock as _, createElementBlock as v, normalizeClass as B, createElementVNode as k, createVNode as n, withModifiers as C, withCtx as a, renderSlot as y, unref as S } from "vue";
|
|
2
|
-
import { B as h } from "./button.
|
|
2
|
+
import { B as h } from "./button.Ciflfide.js";
|
|
3
3
|
import { _ as g } from "./artificial-intelligence-ai-filled.DtxnHYpC.js";
|
|
4
4
|
import { u as w } from "./use-has-slot.CyMiImRQ.js";
|
|
5
5
|
import { p as A } from "./typography.wIM07Hbl.js";
|
|
@@ -55,4 +55,4 @@ const I = {
|
|
|
55
55
|
export {
|
|
56
56
|
L as a
|
|
57
57
|
};
|
|
58
|
-
//# sourceMappingURL=ai-button.
|
|
58
|
+
//# sourceMappingURL=ai-button.CYaCMWFk.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ai-button.
|
|
1
|
+
{"version":3,"file":"ai-button.CYaCMWFk.js","sources":["../../../vue2/src/components/button/components/ai-button/ai-button.vue"],"sourcesContent":["<template>\n <div class=\"b-ai-button\" :class=\"conditionalClass\">\n <div class=\"b-ai-button__animation\" />\n\n <bento-button\n class=\"b-ai-button__button\"\n :condensed=\"condensed\"\n :disabled=\"disabled\"\n :inverse=\"inverse\"\n variant=\"secondary\"\n @click.capture.stop=\"onClick\"\n >\n <template #iconLeft>\n <ai-filled-icon aria-hidden=\"true\" class=\"b-ai-button__icon\" />\n </template>\n\n <slot></slot>\n </bento-button>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, onMounted, useSlots } from 'vue';\n import BentoButton from '../../button.vue';\n import AiFilledIcon from '@adyen/ui-assets-icons-16/vue/artificial-intelligence-ai-filled';\n import { useHasSlot } from '@/composables/use-has-slot/use-has-slot';\n import { printDevelopmentWarning } from '@/utils/ts/print-development-warning';\n import { type BentoAiButtonProps } from './ai-button.types';\n\n const props = withDefaults(defineProps<BentoAiButtonProps>(), {\n link: undefined,\n type: 'button',\n condensed: false,\n disabled: false,\n inverse: false,\n });\n\n const emit = defineEmits<{\n /**\n * Click event handler\n */\n (e: 'click', event: MouseEvent): void;\n }>();\n\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n\n const conditionalClass = computed(() => ({\n 'b-ai-button--disabled': props.disabled,\n 'b-ai-button--inverse': props.inverse,\n }));\n\n const onClick = (e: MouseEvent) => {\n // Prevent Vue3 from triggering event twice\n e.stopPropagation();\n\n emit('click', e);\n };\n\n onMounted(() => {\n if (!hasSlot('default')) {\n printDevelopmentWarning('An icon-only button cannot be a AI button');\n }\n });\n</script>\n\n<script lang=\"ts\">\n /**\n * AI Button component is used for cases where pressing a button starts an AI-related action.\n *\n * @example\n * import { BentoAiButton } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoAiButton },\n * template: `\n * <bento-ai-button @click=\"onClick\">Generate with AI</bento-ai-button>\n * `\n * }\n */\n export default {\n name: 'bento-ai-button',\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./ai-button.scss\" />\n"],"names":["__default__","props","__props","emit","__emit","slots","useSlots","hasSlot","useHasSlot","conditionalClass","computed","onClick","e","onMounted","printDevelopmentWarning"],"mappings":";;;;;;;AAgFI,MAAAA,IAAA;AAAA,EAAe,MAAA;AAEf;;;;;;;;;;;AArDA,UAAAC,IAAAC,GAQAC,IAAAC,GAOAC,IAAAC,EAAA,GACAC,IAAAC,EAAAH,CAAA,GAEAI,IAAAC,EAAA,OAAA;AAAA,MAAyC,yBAAAT,EAAA;AAAA,MACN,wBAAAA,EAAA;AAAA,IACD,EAAA,GAGlCU,IAAA,CAAAC,MAAA;AAEI,MAAAA,EAAA,gBAAA,GAEAT,EAAA,SAAAS,CAAA;AAAA,IAAe;AAGnB,WAAAC,EAAA,MAAA;AACI,MAAAN,EAAA,SAAA,KACIO,EAAA,2CAAA;AAAA,IACJ,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as k, ref as c, watch as b, computed as T, openBlock as p, createElementBlock as V, withKeys as w, createVNode as o, unref as e, withCtx as t, createTextVNode as r, toDisplayString as s, createBlock as v, createElementVNode as C, createCommentVNode as I } from "vue";
|
|
2
|
-
import { u as N, c as D, h as K } from "./button-actions.
|
|
2
|
+
import { u as N, c as D, h as K } from "./button-actions.uIjzze43.js";
|
|
3
3
|
import { B as u } from "./typography.wIM07Hbl.js";
|
|
4
4
|
import { u as R } from "./index.B875RXHM.js";
|
|
5
5
|
import { g as L } from "./generate-uid.DBWe4g6T.js";
|
|
@@ -131,8 +131,8 @@ const A = {
|
|
|
131
131
|
}, 8, ["id", "open", "target-element", "actions", "title", "trap-all-options"])) : I("", !0)
|
|
132
132
|
], 544));
|
|
133
133
|
}
|
|
134
|
-
}), $ = /* @__PURE__ */ P(O, [["__scopeId", "data-v-
|
|
134
|
+
}), $ = /* @__PURE__ */ P(O, [["__scopeId", "data-v-2c28f984"]]);
|
|
135
135
|
export {
|
|
136
136
|
$ as a
|
|
137
137
|
};
|
|
138
|
-
//# sourceMappingURL=ai-tag.
|
|
138
|
+
//# sourceMappingURL=ai-tag.CjrOE5yl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ai-tag.CjrOE5yl.js","sources":["../../../vue2/src/components/ai-tag/ai-tag.vue"],"sourcesContent":["<template>\n <div ref=\"aiTagRef\" class=\"b-ai-tag\" @keydown.esc=\"closePopover\">\n <bento-toggle-button\n ref=\"targetElement\"\n :toggled=\"toggled\"\n :aria-controls=\"popoverId\"\n variant=\"secondary\"\n condensed\n class=\"b-ai-tag__trigger\"\n @update:toggled=\"onToggle\"\n >\n <template #iconLeft>\n <artificial-intelligence-ai-icon class=\"b-ai-tag__trigger-icon\" :aria-hidden=\"true\" />\n </template>\n {{ t('ai') }}\n </bento-toggle-button>\n\n <bento-popover\n v-if=\"targetElement\"\n :id=\"popoverId\"\n :open=\"toggled\"\n :target-element=\"targetElement\"\n :actions=\"popoverActions\"\n actions-layout=\"fill-container\"\n :title=\"t('aiExplained')\"\n trap-all\n :trap-all-options=\"{ onDeactivate: closePopover, allowOutsideClick: true }\"\n fixed-positioning\n overflow-visible\n @dismiss=\"closePopover\"\n >\n <template #headerIcon>\n <artificial-intelligence-ai-icon class=\"b-ai-tag__popover-header-icon\" :aria-hidden=\"true\" />\n </template>\n <div class=\"b-ai-tag__popover-content\">\n <bento-typography v-if=\"influencedValue\" variant=\"title\" medium class=\"b-ai-tag__influenced-value\">\n {{ influencedValue }}\n </bento-typography>\n\n <bento-typography variant=\"title\">\n {{ title }}\n </bento-typography>\n\n <bento-typography>\n {{ description }}\n </bento-typography>\n </div>\n </bento-popover>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, ref, watch } from 'vue';\n import { BentoPopover } from '@/components/popover';\n import { BentoToggleButton } from '@/components/button';\n import { BentoTypography } from '@/components/typography';\n import { useClickOutside } from '@/composables';\n import { useI18n } from '@/utils/ts/i18n';\n import { generateUid } from '@/utils/ts/generate-uid';\n import type { BentoButtonActionsList } from '@/components/button/components/button-actions/button-actions.types';\n import ArtificialIntelligenceAiIcon from '@adyen/ui-assets-icons-16/vue/artificial-intelligence-ai-filled';\n import type { BentoAiTagProps } from './ai-tag.types';\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const props = withDefaults(defineProps<BentoAiTagProps>(), {\n influencedValue: undefined,\n toggled: false,\n action: undefined,\n });\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n\n const toggled = ref(props.toggled);\n const aiTagRef = ref<HTMLElement | null>(null);\n const targetElement = ref<InstanceType<typeof BentoToggleButton> | null>(null);\n const popoverId = generateUid('b-ai-tag-popover');\n\n watch(\n () => props.toggled,\n value => {\n toggled.value = value;\n }\n );\n\n useClickOutside(aiTagRef, () => {\n closePopover();\n });\n\n const popoverActions = computed<BentoButtonActionsList>(() =>\n props.action\n ? [\n {\n ...props.action,\n variant: 'secondary',\n },\n ]\n : undefined\n );\n\n const emit = defineEmits<{\n /**\n * Triggered when the popover is toggled\n */\n (e: 'update:toggled', toggled: boolean): void;\n }>();\n\n const onToggle = (value: boolean) => {\n toggled.value = value;\n emit('update:toggled', value);\n };\n\n const closePopover = () => {\n if (toggled.value) {\n onToggle(false);\n }\n };\n</script>\n\n<script lang=\"ts\">\n /**\n * The AI tag is a component used to transparently identify content, data, or experiences that have been generated or\n * enhanced by artificial intelligence.\n *\n * @example\n * import { BentoAiTag } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoAiTag },\n * template: `\n * <bento-ai-tag\n * title=\"Input fields auto-filled by AI\"\n * description=\"Based on your documents uploaded, AI has auto-filled some information for you.\"\n * />\n * `\n * }\n */\n export default {\n i18n: { messages },\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./ai-tag.scss\" />\n"],"names":["__default__","messages","props","__props","t","useI18n","toggled","ref","aiTagRef","targetElement","popoverId","generateUid","watch","value","useClickOutside","closePopover","popoverActions","computed","emit","__emit","onToggle"],"mappings":";;;;;;;;;;;;;;;;;;;;+CA0IIA,IAAA;AAAA,EAAe,MAAA,EAAA,UAAAC,EAAA;AAEf;;;;;;;;;;;;AA1EA,UAAAC,IAAAC,GAMA,EAAA,GAAAC,EAAA,IAAAC,EAAA,EAAA,UAAAJ,EAAA,CAAA,GAEAK,IAAAC,EAAAL,EAAA,OAAA,GACAM,IAAAD,EAAA,IAAA,GACAE,IAAAF,EAAA,IAAA,GACAG,IAAAC,EAAA,kBAAA;AAEA,IAAAC;AAAA,MAAA,MAAAV,EAAA;AAAA,MACgB,CAAAW,MAAA;AAER,QAAAP,EAAA,QAAAO;AAAA,MAAgB;AAAA,IACpB,GAGJC,EAAAN,GAAA,MAAA;AACI,MAAAO,EAAA;AAAA,IAAa,CAAA;AAGjB,UAAAC,IAAAC;AAAA,MAAuB,MAAAf,EAAA,SAAA;AAAA,QAEb;AAAA,UACI,GAAAA,EAAA;AAAA,UACa,SAAA;AAAA,QACA;AAAA,MACb,IAAA;AAAA,IAEJ,GAGVgB,IAAAC,GAOAC,IAAA,CAAAP,MAAA;AACI,MAAAP,EAAA,QAAAO,GACAK,EAAA,kBAAAL,CAAA;AAAA,IAA4B,GAGhCE,IAAA,MAAA;AACI,MAAAT,EAAA,SACIc,EAAA,EAAA;AAAA,IACJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getCurrentInstance as H, openBlock as n, createElementBlock as C, mergeProps as v, toDisplayString as L, createCommentVNode as d, createElementVNode as i, unref as s, defineComponent as G, useSlots as N, computed as u, onMounted as R, normalizeClass as M, createBlock as h, resolveDynamicComponent as A, withCtx as _, renderSlot as m, createVNode as D } from "vue";
|
|
2
2
|
import { c as w, a as P, B as y } from "./typography.wIM07Hbl.js";
|
|
3
|
-
import { B as Z } from "./button.
|
|
3
|
+
import { B as Z } from "./button.Ciflfide.js";
|
|
4
4
|
import { _ as F } from "./cross-small.B6P0qFHF.js";
|
|
5
5
|
/* empty css */
|
|
6
6
|
import { _ as U } from "./cross-circle-fill.DJbpTaVE.js";
|
|
@@ -181,4 +181,4 @@ export {
|
|
|
181
181
|
r as b,
|
|
182
182
|
p as c
|
|
183
183
|
};
|
|
184
|
-
//# sourceMappingURL=alert.
|
|
184
|
+
//# sourceMappingURL=alert.C8Pe1-OO.js.map
|