@adyen/bento-vue3 1.83.1 → 1.84.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 +57 -6
- package/dist/action-bar.js +1 -1
- package/dist/alert.js +1 -1
- package/dist/assets/accordion-item.css +1 -1
- package/dist/assets/action-bar.css +1 -1
- package/dist/assets/ai-button.css +1 -1
- package/dist/assets/alert.css +1 -1
- package/dist/assets/avatar.css +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/button-actions-with-menu.css +1 -1
- package/dist/assets/button-actions.css +1 -1
- package/dist/assets/button.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-input.css +1 -1
- package/dist/assets/checkbox.css +1 -1
- package/dist/assets/chip.css +1 -1
- package/dist/assets/code-snippet.css +1 -1
- package/dist/assets/controls-group.css +1 -1
- package/dist/assets/country.css +1 -1
- package/dist/assets/currency.css +1 -1
- package/dist/assets/dashboard-section.css +1 -1
- package/dist/assets/dashed-underline.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/date.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/divider.css +1 -1
- package/dist/assets/dropdown-default-textbox.css +1 -1
- package/dist/assets/dropdown-tag.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/empty-state.css +1 -1
- package/dist/assets/field-label.css +1 -1
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/filter-bar.css +1 -1
- package/dist/assets/fixed-scroller.css +1 -1
- package/dist/assets/footer-actions.css +1 -1
- package/dist/assets/form-layout-title.css +1 -1
- package/dist/assets/grid-layout.css +1 -1
- package/dist/assets/header-meta.css +1 -1
- package/dist/assets/header-with-views.css +1 -1
- package/dist/assets/header.css +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/assets/info-icon.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/layout-row.css +1 -1
- package/dist/assets/link.css +1 -1
- package/dist/assets/listbox-option-tag.css +1 -1
- package/dist/assets/loading-indicator.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/pagination.css +1 -1
- package/dist/assets/payment-method.css +1 -1
- package/dist/assets/popper-container.css +1 -1
- package/dist/assets/promo-banner.css +1 -1
- package/dist/assets/radio-group.css +1 -1
- package/dist/assets/radio-input.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/status.css +1 -1
- package/dist/assets/step.css +1 -1
- package/dist/assets/structured-list-item.css +1 -1
- package/dist/assets/summary-grid.css +1 -1
- package/dist/assets/tab.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/toast.css +1 -1
- package/dist/assets/toggle.css +1 -1
- package/dist/assets/tooltip.css +1 -1
- package/dist/assets/tutorial.css +1 -1
- package/dist/assets/use-cached-selected-values.css +1 -1
- package/dist/button.js +1 -1
- package/dist/card.js +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/chunks/{action-bar.D5y9JWnT.js → action-bar.CriH15oF.js} +11 -9
- package/dist/chunks/{action-bar.D5y9JWnT.js.map → action-bar.CriH15oF.js.map} +1 -1
- package/dist/chunks/{alert.CYaIUaUn.js → alert.BYcw-u3b.js} +48 -40
- package/dist/chunks/{alert.CYaIUaUn.js.map → alert.BYcw-u3b.js.map} +1 -1
- package/dist/chunks/{base-modal.B8HZItVN.js → base-modal.D3GyeCFT.js} +44 -42
- package/dist/chunks/{base-modal.B8HZItVN.js.map → base-modal.D3GyeCFT.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.LlNWeD3B.js → button-actions-with-menu.B8xFgt-p.js} +2 -2
- package/dist/chunks/{button-actions-with-menu.LlNWeD3B.js.map → button-actions-with-menu.B8xFgt-p.js.map} +1 -1
- package/dist/chunks/{button-actions.O0cnu1_g.js → button-actions.Crj4QFAd.js} +445 -413
- package/dist/chunks/button-actions.Crj4QFAd.js.map +1 -0
- package/dist/chunks/calendar.DKPx_cQU.js +1237 -0
- package/dist/chunks/calendar.DKPx_cQU.js.map +1 -0
- package/dist/chunks/{card.Dqt_BOMI.js → card.C_03IYJe.js} +2 -2
- package/dist/chunks/{card.Dqt_BOMI.js.map → card.C_03IYJe.js.map} +1 -1
- package/dist/chunks/{checkbox-group.S0FqSg9s.js → checkbox-group.DZrhxIHp.js} +4 -4
- package/dist/chunks/{checkbox-group.S0FqSg9s.js.map → checkbox-group.DZrhxIHp.js.map} +1 -1
- package/dist/chunks/{checkbox-input.BXNGT9U0.js → checkbox-input.Dk9iFQQe.js} +62 -57
- package/dist/chunks/checkbox-input.Dk9iFQQe.js.map +1 -0
- package/dist/chunks/{checkbox.B_WaHSop.js → checkbox.BWgWtiLJ.js} +10 -10
- package/dist/chunks/{checkbox.B_WaHSop.js.map → checkbox.BWgWtiLJ.js.map} +1 -1
- package/dist/chunks/{code-snippet.Bfq5pgmE.js → code-snippet.4HtbNUDE.js} +78 -76
- package/dist/chunks/code-snippet.4HtbNUDE.js.map +1 -0
- package/dist/chunks/constructNow.DuaJst0D.js +8 -0
- package/dist/chunks/{constructNow.BhymNmy5.js.map → constructNow.DuaJst0D.js.map} +1 -1
- package/dist/chunks/{controls-group.CdnMYv1j.js → controls-group.DpFv8c4E.js} +2 -2
- package/dist/chunks/{controls-group.CdnMYv1j.js.map → controls-group.DpFv8c4E.js.map} +1 -1
- package/dist/chunks/{copy.Cg-VyVQ4.js → copy.xg9ElNxd.js} +35 -33
- package/dist/chunks/{copy.Cg-VyVQ4.js.map → copy.xg9ElNxd.js.map} +1 -1
- package/dist/chunks/country.types.DaVCMxk-.js +773 -0
- package/dist/chunks/{country.types.C0Q_hhgJ.js.map → country.types.DaVCMxk-.js.map} +1 -1
- package/dist/chunks/{country.CPGT2RsT.js → country.vSfTQW51.js} +2 -2
- package/dist/chunks/{country.CPGT2RsT.js.map → country.vSfTQW51.js.map} +1 -1
- package/dist/chunks/{dashboard-section.CGS38Swm.js → dashboard-section.D_k3_Z2T.js} +3 -3
- package/dist/chunks/{dashboard-section.CGS38Swm.js.map → dashboard-section.D_k3_Z2T.js.map} +1 -1
- package/dist/chunks/{dashed-underline.DV3p60Ne.js → dashed-underline.B0z2ZZh7.js} +2 -2
- package/dist/chunks/{dashed-underline.DV3p60Ne.js.map → dashed-underline.B0z2ZZh7.js.map} +1 -1
- package/dist/chunks/{data-grid-template.D2g9KHSZ.js → data-grid-template.DdIrvOXp.js} +4 -4
- package/dist/chunks/{data-grid-template.D2g9KHSZ.js.map → data-grid-template.DdIrvOXp.js.map} +1 -1
- package/dist/chunks/{data-grid.BoPfKLRj.js → data-grid.BBkF9ojy.js} +896 -812
- package/dist/chunks/{data-grid.BoPfKLRj.js.map → data-grid.BBkF9ojy.js.map} +1 -1
- package/dist/chunks/date-input.BbZqj10S.js +15 -0
- package/dist/chunks/date-input.BbZqj10S.js.map +1 -0
- package/dist/chunks/date-picker.dyp0YK9_.js +249 -0
- package/dist/chunks/date-picker.dyp0YK9_.js.map +1 -0
- package/dist/chunks/date-range-picker.TsUvRvGy.js +1896 -0
- package/dist/chunks/date-range-picker.TsUvRvGy.js.map +1 -0
- package/dist/chunks/de.DvtL0g75.js +478 -0
- package/dist/chunks/de.DvtL0g75.js.map +1 -0
- package/dist/chunks/{dialog-page.CTEyyZ_R.js → dialog-page.DaZSlMzY.js} +23 -17
- package/dist/chunks/{dialog-page.CTEyyZ_R.js.map → dialog-page.DaZSlMzY.js.map} +1 -1
- package/dist/chunks/differenceInMonths.DcFDl4eH.js +43 -0
- package/dist/chunks/differenceInMonths.DcFDl4eH.js.map +1 -0
- package/dist/chunks/{dropdown-tag.BWnAPzEN.js → dropdown-tag.DtpDzWl4.js} +4 -4
- package/dist/chunks/{dropdown-tag.BWnAPzEN.js.map → dropdown-tag.DtpDzWl4.js.map} +1 -1
- package/dist/chunks/{dropdown.CtP9keJ4.js → dropdown.D0_8f9Mz.js} +114 -110
- package/dist/chunks/{dropdown.CtP9keJ4.js.map → dropdown.D0_8f9Mz.js.map} +1 -1
- package/dist/chunks/en-GB.DCGuCmAv.js +46 -0
- package/dist/chunks/en-GB.DCGuCmAv.js.map +1 -0
- package/dist/chunks/{getTimezoneOffsetInMilliseconds.B7sxiukN.js → en-US.BZii9jNW.js} +160 -196
- package/dist/chunks/en-US.BZii9jNW.js.map +1 -0
- package/dist/chunks/es.bz0mzkMq.js +374 -0
- package/dist/chunks/es.bz0mzkMq.js.map +1 -0
- package/dist/chunks/es6.C1DXQV6f.js +12 -0
- package/dist/chunks/es6.C1DXQV6f.js.map +1 -0
- package/dist/chunks/{field-label.CfizwLcQ.js → field-label.D7vU2Icm.js} +8 -8
- package/dist/chunks/{field-label.CfizwLcQ.js.map → field-label.D7vU2Icm.js.map} +1 -1
- package/dist/chunks/{file-uploader.C9qXXyin.js → file-uploader.BmBKLzIx.js} +253 -207
- package/dist/chunks/{file-uploader.C9qXXyin.js.map → file-uploader.BmBKLzIx.js.map} +1 -1
- package/dist/chunks/filter-bar.D0BEt7ia.js +3363 -0
- package/dist/chunks/filter-bar.D0BEt7ia.js.map +1 -0
- package/dist/chunks/{fixed-scroller.DCjtCzKy.js → fixed-scroller.e56yJp7Q.js} +52 -44
- package/dist/chunks/{fixed-scroller.DCjtCzKy.js.map → fixed-scroller.e56yJp7Q.js.map} +1 -1
- package/dist/chunks/{footer-actions.CTCV-SW-.js → footer-actions.BqNvwVk7.js} +2 -2
- package/dist/chunks/{footer-actions.CTCV-SW-.js.map → footer-actions.BqNvwVk7.js.map} +1 -1
- package/dist/chunks/{form-layout-title.Dvlo-2z_.js → form-layout-title.CPsEzRzS.js} +2 -2
- package/dist/chunks/{form-layout-title.Dvlo-2z_.js.map → form-layout-title.CPsEzRzS.js.map} +1 -1
- package/dist/chunks/fr-CA.B1aPU8fp.js +48 -0
- package/dist/chunks/fr-CA.B1aPU8fp.js.map +1 -0
- package/dist/chunks/fr.Dj7wEToe.js +47 -0
- package/dist/chunks/fr.Dj7wEToe.js.map +1 -0
- package/dist/chunks/getTimezoneOffsetInMilliseconds.C-aIpRfB.js +51 -0
- package/dist/chunks/getTimezoneOffsetInMilliseconds.C-aIpRfB.js.map +1 -0
- package/dist/chunks/header-meta.PysBmkSU.js +263 -0
- package/dist/chunks/header-meta.PysBmkSU.js.map +1 -0
- package/dist/chunks/{header-with-views.CHObq1kM.js → header-with-views.BGIZadqh.js} +844 -780
- package/dist/chunks/{header-with-views.CHObq1kM.js.map → header-with-views.BGIZadqh.js.map} +1 -1
- package/dist/chunks/{header.BMTf9s8L.js → header.yMTOq8MR.js} +3 -3
- package/dist/chunks/{header.BMTf9s8L.js.map → header.yMTOq8MR.js.map} +1 -1
- package/dist/chunks/{input-field-password.CTdUPz2y.js → input-field-password.DN3ltmAg.js} +101 -95
- package/dist/chunks/{input-field-password.CTdUPz2y.js.map → input-field-password.DN3ltmAg.js.map} +1 -1
- package/dist/chunks/{input-field-phone-number.Bp57oBMS.js → input-field-phone-number.CouE9QiR.js} +180 -174
- package/dist/chunks/{input-field-phone-number.Bp57oBMS.js.map → input-field-phone-number.CouE9QiR.js.map} +1 -1
- package/dist/chunks/{input-field.DzNDGqBP.js → input-field.C2SQq0V1.js} +67 -59
- package/dist/chunks/{input-field.DzNDGqBP.js.map → input-field.C2SQq0V1.js.map} +1 -1
- package/dist/chunks/{inspector.p4ukEAWH.js → inspector.Dox76eqN.js} +41 -35
- package/dist/chunks/{inspector.p4ukEAWH.js.map → inspector.Dox76eqN.js.map} +1 -1
- package/dist/chunks/isSameWeek.CUD7czUN.js +14 -0
- package/dist/chunks/isSameWeek.CUD7czUN.js.map +1 -0
- package/dist/chunks/it.Oaj6BklL.js +392 -0
- package/dist/chunks/it.Oaj6BklL.js.map +1 -0
- package/dist/chunks/ja.Cm9tJMi2.js +367 -0
- package/dist/chunks/ja.Cm9tJMi2.js.map +1 -0
- package/dist/chunks/ko.Ceaof6EP.js +348 -0
- package/dist/chunks/ko.Ceaof6EP.js.map +1 -0
- package/dist/chunks/match.CMBZxEs9.js +302 -0
- package/dist/chunks/match.CMBZxEs9.js.map +1 -0
- package/dist/chunks/{modal-fullscreen.DYDW-zC0.js → modal-fullscreen.BXjxVsAq.js} +3 -3
- package/dist/chunks/{modal-fullscreen.DYDW-zC0.js.map → modal-fullscreen.BXjxVsAq.js.map} +1 -1
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.DI5HA_3W.js → modal.vue_vue_type_script_setup_true_lang.CRovU08l.js} +4 -4
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.DI5HA_3W.js.map → modal.vue_vue_type_script_setup_true_lang.CRovU08l.js.map} +1 -1
- package/dist/chunks/nl.B6vCf2B9.js +327 -0
- package/dist/chunks/nl.B6vCf2B9.js.map +1 -0
- package/dist/chunks/{pagination.0cHVUbmR.js → pagination.Biy7xN75.js} +5 -5
- package/dist/chunks/{pagination.0cHVUbmR.js.map → pagination.Biy7xN75.js.map} +1 -1
- package/dist/chunks/pt-BR.CiGdfP45.js +380 -0
- package/dist/chunks/pt-BR.CiGdfP45.js.map +1 -0
- package/dist/chunks/{radio-group.B2JLD8_2.js → radio-group.BqsQRDjs.js} +3 -3
- package/dist/chunks/{radio-group.B2JLD8_2.js.map → radio-group.BqsQRDjs.js.map} +1 -1
- package/dist/chunks/{rich-text-editor.Dw01KOhU.js → rich-text-editor.Bafyvjc3.js} +4 -4
- package/dist/chunks/{rich-text-editor.Dw01KOhU.js.map → rich-text-editor.Bafyvjc3.js.map} +1 -1
- package/dist/chunks/{search-bar.fCnPv83a.js → search-bar.BF8M5OSY.js} +3 -3
- package/dist/chunks/{search-bar.fCnPv83a.js.map → search-bar.BF8M5OSY.js.map} +1 -1
- package/dist/chunks/secondary-nav.D2lBMjqY.js +144 -0
- package/dist/chunks/{secondary-nav.D1y_GiqG.js.map → secondary-nav.D2lBMjqY.js.map} +1 -1
- package/dist/chunks/{selection-card-group.CPSDSz7m.js → selection-card-group.DNPlEqEq.js} +5 -5
- package/dist/chunks/{selection-card-group.CPSDSz7m.js.map → selection-card-group.DNPlEqEq.js.map} +1 -1
- package/dist/chunks/{sidepanel.1WPpJp8O.js → sidepanel.RJihFo_R.js} +4 -4
- package/dist/chunks/{sidepanel.1WPpJp8O.js.map → sidepanel.RJihFo_R.js.map} +1 -1
- package/dist/chunks/startOfWeek.Dxw2MhGp.js +10 -0
- package/dist/chunks/startOfWeek.Dxw2MhGp.js.map +1 -0
- package/dist/chunks/step.DpgnDx29.js +271 -0
- package/dist/chunks/step.DpgnDx29.js.map +1 -0
- package/dist/chunks/{structured-list-item.C4Fnc7sX.js → structured-list-item.B-hdp7rW.js} +2 -2
- package/dist/chunks/{structured-list-item.C4Fnc7sX.js.map → structured-list-item.B-hdp7rW.js.map} +1 -1
- package/dist/chunks/{summary-grid.types.CbROj1cf.js → summary-grid.types.BVLRSBAF.js} +3 -3
- package/dist/chunks/{summary-grid.types.CbROj1cf.js.map → summary-grid.types.BVLRSBAF.js.map} +1 -1
- package/dist/chunks/sv.f8EfZjMZ.js +377 -0
- package/dist/chunks/sv.f8EfZjMZ.js.map +1 -0
- package/dist/chunks/{tab.C-kmkQiE.js → tab.JPngc9oS.js} +2 -2
- package/dist/chunks/{tab.C-kmkQiE.js.map → tab.JPngc9oS.js.map} +1 -1
- package/dist/chunks/{textarea.C0tLoH2I.js → textarea.CEDkF8BB.js} +45 -45
- package/dist/chunks/textarea.CEDkF8BB.js.map +1 -0
- package/dist/chunks/{timeline-item.-IGN2sbj.js → timeline-item.BxGaSGLf.js} +14 -13
- package/dist/chunks/{timeline-item.-IGN2sbj.js.map → timeline-item.BxGaSGLf.js.map} +1 -1
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.BGbo_qv_.js → tutorial.vue_vue_type_script_setup_true_lang.CEfCLTsD.js} +2 -2
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.BGbo_qv_.js.map → tutorial.vue_vue_type_script_setup_true_lang.CEfCLTsD.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.u6wcYuin.js → use-cached-selected-values.BZIa5TRx.js} +97 -88
- package/dist/chunks/{use-cached-selected-values.u6wcYuin.js.map → use-cached-selected-values.BZIa5TRx.js.map} +1 -1
- package/dist/chunks/{use-country-items.Dzbl2UsO.js → use-country-items.JZCYNoW7.js} +2 -2
- package/dist/chunks/{use-country-items.Dzbl2UsO.js.map → use-country-items.JZCYNoW7.js.map} +1 -1
- package/dist/chunks/zh-CN.BzH0fIXr.js +389 -0
- package/dist/chunks/zh-CN.BzH0fIXr.js.map +1 -0
- package/dist/code-snippet.js +1 -1
- package/dist/country.js +2 -2
- 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/dropdown.js +3 -3
- 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 +248 -249
- package/dist/index.js.map +1 -1
- 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/inspector.js +1 -1
- package/dist/internal.js +10 -10
- package/dist/menu.js +1 -1
- package/dist/modal-fullscreen.js +1 -1
- package/dist/modal.js +2 -2
- package/dist/pagination.js +1 -1
- package/dist/popover.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/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 +0 -1829
- package/dist/styles/bento-light.css +0 -1829
- package/dist/styles/bento.css +0 -1829
- package/dist/styles/legacy.css +0 -1829
- package/dist/styles/styleguide.css +0 -1829
- package/dist/summary-grid.js +1 -1
- package/dist/tabs.js +1 -1
- package/dist/textarea.js +1 -1
- package/dist/timeline.js +1 -1
- package/dist/tutorial.js +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +7 -7
- package/dist/chunks/button-actions.O0cnu1_g.js.map +0 -1
- package/dist/chunks/calendar.NVmCgJrJ.js +0 -1962
- package/dist/chunks/calendar.NVmCgJrJ.js.map +0 -1
- package/dist/chunks/checkbox-input.BXNGT9U0.js.map +0 -1
- package/dist/chunks/code-snippet.Bfq5pgmE.js.map +0 -1
- package/dist/chunks/constructNow.BhymNmy5.js +0 -8
- package/dist/chunks/country.types.C0Q_hhgJ.js +0 -269
- package/dist/chunks/date-format.B8RU7D42.js +0 -17
- package/dist/chunks/date-format.B8RU7D42.js.map +0 -1
- package/dist/chunks/date-picker.BIdfeL7b.js +0 -245
- package/dist/chunks/date-picker.BIdfeL7b.js.map +0 -1
- package/dist/chunks/date-range-picker.BT3I5M44.js +0 -1109
- package/dist/chunks/date-range-picker.BT3I5M44.js.map +0 -1
- package/dist/chunks/differenceInMonths.Cab3nOsb.js +0 -1590
- package/dist/chunks/differenceInMonths.Cab3nOsb.js.map +0 -1
- package/dist/chunks/es6.MoTTyETW.js +0 -12
- package/dist/chunks/es6.MoTTyETW.js.map +0 -1
- package/dist/chunks/filter-bar.DB87uMbx.js +0 -3211
- package/dist/chunks/filter-bar.DB87uMbx.js.map +0 -1
- package/dist/chunks/getTimezoneOffsetInMilliseconds.B7sxiukN.js.map +0 -1
- package/dist/chunks/header-meta.C2W1eMZc.js +0 -221
- package/dist/chunks/header-meta.C2W1eMZc.js.map +0 -1
- package/dist/chunks/secondary-nav.D1y_GiqG.js +0 -138
- package/dist/chunks/step._8f9kwI5.js +0 -267
- package/dist/chunks/step._8f9kwI5.js.map +0 -1
- package/dist/chunks/textarea.C0tLoH2I.js.map +0 -1
|
@@ -1,67 +1,69 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { B as
|
|
3
|
-
import { B as
|
|
4
|
-
import { C as
|
|
5
|
-
import { C as
|
|
1
|
+
import { defineComponent as w, useSlots as Q, computed as _, createBlock as g, openBlock as r, withModifiers as X, normalizeClass as U, createSlots as j, withCtx as b, renderSlot as P, unref as p, createElementVNode as V, createCommentVNode as O, mergeProps as H, renderList as x, normalizeProps as Ee, guardReactiveProps as Te, resolveComponent as T, createVNode as S, createTextVNode as Y, toDisplayString as G, onMounted as ee, onUnmounted as pe, useAttrs as we, inject as K, ref as v, toRefs as Me, Transition as ve, createElementBlock as I, Teleport as Ne, resolveDynamicComponent as z, toHandlers as ie, withKeys as N, Fragment as Z, watch as be, nextTick as te, toRef as he, normalizeStyle as ye, provide as Ae } from "vue";
|
|
2
|
+
import { B as E } from "./button.CSp48LJt.js";
|
|
3
|
+
import { B as Re } from "./loading-indicator.Db794TT5.js";
|
|
4
|
+
import { C as Pe } from "./cross-circle-fill.CYLL7jfC.js";
|
|
5
|
+
import { C as De } from "./checkmark-circle-fill._6-d40ru.js";
|
|
6
6
|
import { u as ae } from "./use-has-slot.B7eQSabc.js";
|
|
7
|
-
import { u as
|
|
8
|
-
import { _ as
|
|
9
|
-
import { B as
|
|
10
|
-
import { C as
|
|
11
|
-
import { B as
|
|
12
|
-
import { c as
|
|
13
|
-
import { u as
|
|
14
|
-
import { o as
|
|
15
|
-
import { g as
|
|
16
|
-
import { C as
|
|
7
|
+
import { u as ge } from "./index.pdBj0KQU.js";
|
|
8
|
+
import { _ as M } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
9
|
+
import { B as _e, D as Fe } from "./divider.Dho4_hQ7.js";
|
|
10
|
+
import { C as We } from "./cross.B92GxFTY.js";
|
|
11
|
+
import { B as Ce, a as re, p as Ke } from "./typography.6Oo5TOMP.js";
|
|
12
|
+
import { c as Ue, P as Ve, d as je } from "./popper-container.I9gzp1NR.js";
|
|
13
|
+
import { u as Ge } from "./aria-label.CaUURpnB.js";
|
|
14
|
+
import { o as Ye } from "./on-click-outside.D9aY9g8G.js";
|
|
15
|
+
import { g as He } from "./generate-uid.NJ8tVoha.js";
|
|
16
|
+
import { C as Je } from "./chevron-down.DCQ6ZLaq.js";
|
|
17
17
|
/* empty css */
|
|
18
|
-
import { a as
|
|
19
|
-
import { a as de, B as
|
|
20
|
-
import { t as
|
|
21
|
-
import { i as
|
|
22
|
-
import { o as
|
|
23
|
-
import { g as
|
|
18
|
+
import { a as qe, C as ue } from "./chevron-left.Cfn1uGLH.js";
|
|
19
|
+
import { a as de, B as ze } from "./base-button.CUd03aA2.js";
|
|
20
|
+
import { t as Xe } from "./truncate.BfIl_-71.js";
|
|
21
|
+
import { i as ke } from "./index.CWuzEfiV.js";
|
|
22
|
+
import { o as Ze } from "./resize.Bqks3WUm.js";
|
|
23
|
+
import { g as Qe } from "./es6.C1DXQV6f.js";
|
|
24
24
|
import "../assets/button-actions.css";
|
|
25
|
-
var
|
|
25
|
+
var R = /* @__PURE__ */ ((e) => (e.START = "start", e.LOADING = "loading", e.SUCCESS = "success", e.FAIL = "fail", e))(R || {});
|
|
26
26
|
const Ie = {
|
|
27
27
|
"en-US": {
|
|
28
28
|
failed: "Failed",
|
|
29
29
|
succeded: "Succeded"
|
|
30
30
|
},
|
|
31
31
|
"ja-JP": {
|
|
32
|
-
failed: "失敗しました"
|
|
32
|
+
failed: "失敗しました",
|
|
33
|
+
succeded: "成功"
|
|
33
34
|
},
|
|
34
35
|
"pt-BR": {
|
|
35
|
-
failed: "Falha"
|
|
36
|
+
failed: "Falha",
|
|
37
|
+
succeded: "Bem-sucedido"
|
|
36
38
|
}
|
|
37
|
-
},
|
|
39
|
+
}, xe = {
|
|
38
40
|
class: "b-loading-button__icon",
|
|
39
41
|
"data-testid": "loading-button-rotating-icon"
|
|
40
|
-
},
|
|
42
|
+
}, et = {
|
|
41
43
|
i18n: { messages: Ie }
|
|
42
|
-
},
|
|
43
|
-
...
|
|
44
|
+
}, tt = /* @__PURE__ */ w({
|
|
45
|
+
...et,
|
|
44
46
|
__name: "loading-button",
|
|
45
47
|
props: {
|
|
46
48
|
/**
|
|
47
49
|
* Reduces sizing of button
|
|
48
50
|
*/
|
|
49
51
|
condensed: {
|
|
50
|
-
type:
|
|
52
|
+
type: E.props.condensed.type,
|
|
51
53
|
default: !1
|
|
52
54
|
},
|
|
53
55
|
/**
|
|
54
56
|
* Displays loading-button as critical
|
|
55
57
|
*/
|
|
56
58
|
critical: {
|
|
57
|
-
type:
|
|
59
|
+
type: E.props.critical.type,
|
|
58
60
|
default: !1
|
|
59
61
|
},
|
|
60
62
|
/**
|
|
61
63
|
* Disables button functonality
|
|
62
64
|
*/
|
|
63
65
|
disabled: {
|
|
64
|
-
type:
|
|
66
|
+
type: E.props.disabled.type,
|
|
65
67
|
default: !1
|
|
66
68
|
},
|
|
67
69
|
/**
|
|
@@ -77,89 +79,89 @@ const Ie = {
|
|
|
77
79
|
*/
|
|
78
80
|
state: {
|
|
79
81
|
type: String,
|
|
80
|
-
default:
|
|
81
|
-
validator: (e) => Object.values(
|
|
82
|
+
default: R.START,
|
|
83
|
+
validator: (e) => Object.values(R).includes(e)
|
|
82
84
|
},
|
|
83
85
|
/**
|
|
84
86
|
* Types of flavour of Button
|
|
85
87
|
*/
|
|
86
88
|
variant: {
|
|
87
|
-
type:
|
|
89
|
+
type: E.props.variant.type,
|
|
88
90
|
default: "primary",
|
|
89
|
-
validator:
|
|
91
|
+
validator: E.props.variant.validator
|
|
90
92
|
}
|
|
91
93
|
},
|
|
92
94
|
emits: ["click"],
|
|
93
95
|
setup(e, { emit: t }) {
|
|
94
|
-
const
|
|
95
|
-
[`b-loading-button--${
|
|
96
|
-
"b-loading-button--loading":
|
|
97
|
-
[`b-loading-button--${
|
|
98
|
-
"b-loading-button--inverse":
|
|
99
|
-
})),
|
|
100
|
-
() =>
|
|
96
|
+
const s = e, o = t, d = Q(), m = ae(d), { t: u } = ge({ messages: Ie }), c = _(() => ({
|
|
97
|
+
[`b-loading-button--${s.variant}-${R.LOADING}`]: s.state === R.LOADING && !s.disabled,
|
|
98
|
+
"b-loading-button--loading": s.state === R.LOADING && !s.disabled,
|
|
99
|
+
[`b-loading-button--${s.variant}-${R.SUCCESS}`]: s.state === R.SUCCESS,
|
|
100
|
+
"b-loading-button--inverse": s.inverse
|
|
101
|
+
})), f = _(
|
|
102
|
+
() => s.variant === "primary" && !s.inverse || s.variant !== "primary" && s.inverse
|
|
101
103
|
), a = _(
|
|
102
|
-
() =>
|
|
103
|
-
), i = (
|
|
104
|
-
|
|
104
|
+
() => s.critical && s.state === R.START || s.state === R.FAIL
|
|
105
|
+
), i = (l) => {
|
|
106
|
+
l.stopPropagation(), s.state !== R.LOADING && o("click", l);
|
|
105
107
|
};
|
|
106
|
-
return (
|
|
108
|
+
return (l, n) => (r(), g(E, {
|
|
107
109
|
critical: a.value,
|
|
108
110
|
variant: e.variant,
|
|
109
111
|
condensed: e.condensed,
|
|
110
112
|
disabled: e.disabled,
|
|
111
113
|
inverse: e.inverse,
|
|
112
|
-
class: U(["b-loading-button",
|
|
113
|
-
onClickCapture:
|
|
114
|
-
},
|
|
114
|
+
class: U(["b-loading-button", c.value]),
|
|
115
|
+
onClickCapture: X(i, ["stop"])
|
|
116
|
+
}, j({
|
|
115
117
|
default: b(() => [
|
|
116
|
-
|
|
118
|
+
P(l.$slots, "default", {}, void 0, !0)
|
|
117
119
|
]),
|
|
118
120
|
_: 2
|
|
119
121
|
}, [
|
|
120
122
|
e.state === "start" && p(m)("iconLeft") ? {
|
|
121
123
|
name: "iconLeft",
|
|
122
124
|
fn: b(() => [
|
|
123
|
-
|
|
125
|
+
P(l.$slots, "iconLeft", {}, void 0, !0)
|
|
124
126
|
]),
|
|
125
127
|
key: "0"
|
|
126
128
|
} : e.state !== "start" ? {
|
|
127
129
|
name: "iconLeft",
|
|
128
130
|
fn: b(() => [
|
|
129
|
-
V("span",
|
|
130
|
-
e.state === "fail" ? (
|
|
131
|
+
V("span", xe, [
|
|
132
|
+
e.state === "fail" ? (r(), g(p(Pe), {
|
|
131
133
|
key: 0,
|
|
132
|
-
"svg-title": p(
|
|
133
|
-
}, null, 8, ["svg-title"])) : e.state === "success" ? (
|
|
134
|
+
"svg-title": p(u)("failed")
|
|
135
|
+
}, null, 8, ["svg-title"])) : e.state === "success" ? (r(), g(p(De), {
|
|
134
136
|
key: 1,
|
|
135
|
-
"svg-title": p(
|
|
136
|
-
}, null, 8, ["svg-title"])) : e.state === "loading" ? (
|
|
137
|
+
"svg-title": p(u)("succeded")
|
|
138
|
+
}, null, 8, ["svg-title"])) : e.state === "loading" ? (r(), g(p(Re), {
|
|
137
139
|
key: 2,
|
|
138
140
|
small: "",
|
|
139
|
-
inverse:
|
|
140
|
-
}, null, 8, ["inverse"])) :
|
|
141
|
+
inverse: f.value
|
|
142
|
+
}, null, 8, ["inverse"])) : O("", !0)
|
|
141
143
|
])
|
|
142
144
|
]),
|
|
143
145
|
key: "1"
|
|
144
146
|
} : void 0
|
|
145
147
|
]), 1032, ["critical", "variant", "condensed", "disabled", "inverse", "class"]));
|
|
146
148
|
}
|
|
147
|
-
}),
|
|
148
|
-
...
|
|
149
|
+
}), nt = /* @__PURE__ */ M(tt, [["__scopeId", "data-v-e68a786b"]]), ot = {}, st = /* @__PURE__ */ w({
|
|
150
|
+
...ot,
|
|
149
151
|
__name: "toggle-button",
|
|
150
152
|
props: {
|
|
151
153
|
/**
|
|
152
154
|
* Reduces sizing of button
|
|
153
155
|
*/
|
|
154
156
|
condensed: {
|
|
155
|
-
type:
|
|
157
|
+
type: E.props.condensed.type,
|
|
156
158
|
default: !1
|
|
157
159
|
},
|
|
158
160
|
/**
|
|
159
161
|
* Disables button functonality
|
|
160
162
|
*/
|
|
161
163
|
disabled: {
|
|
162
|
-
type:
|
|
164
|
+
type: E.props.disabled.type,
|
|
163
165
|
default: !1
|
|
164
166
|
},
|
|
165
167
|
/**
|
|
@@ -174,9 +176,9 @@ const Ie = {
|
|
|
174
176
|
* @values primary, secondary, tertiary
|
|
175
177
|
*/
|
|
176
178
|
variant: {
|
|
177
|
-
type:
|
|
179
|
+
type: E.props.variant.type,
|
|
178
180
|
default: "primary",
|
|
179
|
-
validator:
|
|
181
|
+
validator: E.props.variant.validator
|
|
180
182
|
},
|
|
181
183
|
/**
|
|
182
184
|
* The state of the button whether it is toggled or not.
|
|
@@ -188,16 +190,16 @@ const Ie = {
|
|
|
188
190
|
},
|
|
189
191
|
emits: ["click", "update:toggled"],
|
|
190
192
|
setup(e, { emit: t }) {
|
|
191
|
-
const
|
|
192
|
-
() =>
|
|
193
|
+
const s = e, o = t, d = _(
|
|
194
|
+
() => s.variant === "tertiary" ? "tertiary-with-background" : s.variant
|
|
193
195
|
), m = _(() => ({
|
|
194
|
-
"b-toggle-button--condensed":
|
|
195
|
-
[`b-toggle-button--${d.value}-toggled`]:
|
|
196
|
-
"b-toggle-button--inverse":
|
|
197
|
-
})),
|
|
198
|
-
a.stopPropagation(),
|
|
199
|
-
},
|
|
200
|
-
return (a, i) => (
|
|
196
|
+
"b-toggle-button--condensed": s == null ? void 0 : s.condensed,
|
|
197
|
+
[`b-toggle-button--${d.value}-toggled`]: s.toggled,
|
|
198
|
+
"b-toggle-button--inverse": s.inverse
|
|
199
|
+
})), u = (a) => {
|
|
200
|
+
a.stopPropagation(), s != null && s.disabled || (o("click", a), o("update:toggled", !s.toggled));
|
|
201
|
+
}, c = Q(), f = (a) => ({ key: a });
|
|
202
|
+
return (a, i) => (r(), g(E, H({ class: "b-toggle-button" }, a.$attrs, {
|
|
201
203
|
"aria-expanded": `${e.toggled}`,
|
|
202
204
|
"aria-pressed": `${e.toggled}`,
|
|
203
205
|
condensed: e.condensed,
|
|
@@ -205,19 +207,19 @@ const Ie = {
|
|
|
205
207
|
disabled: e.disabled,
|
|
206
208
|
inverse: e.inverse,
|
|
207
209
|
variant: d.value,
|
|
208
|
-
onClickCapture:
|
|
209
|
-
}),
|
|
210
|
-
x(p(
|
|
210
|
+
onClickCapture: X(u, ["stop"])
|
|
211
|
+
}), j({ _: 2 }, [
|
|
212
|
+
x(p(c), (l, n) => ({
|
|
211
213
|
name: n,
|
|
212
214
|
fn: b(() => [
|
|
213
|
-
|
|
215
|
+
P(a.$slots, n, Ee(Te(f(n))), void 0, !0)
|
|
214
216
|
])
|
|
215
217
|
}))
|
|
216
218
|
]), 1040, ["aria-expanded", "aria-pressed", "condensed", "class", "disabled", "inverse", "variant"]));
|
|
217
219
|
}
|
|
218
|
-
}),
|
|
220
|
+
}), it = /* @__PURE__ */ M(st, [["__scopeId", "data-v-f1b10e5f"]]), at = w({
|
|
219
221
|
name: "bento-popover-dismiss-button",
|
|
220
|
-
components: { BentoButton:
|
|
222
|
+
components: { BentoButton: E, CrossIcon: We },
|
|
221
223
|
props: {
|
|
222
224
|
onImage: {
|
|
223
225
|
type: Boolean,
|
|
@@ -231,21 +233,21 @@ const Ie = {
|
|
|
231
233
|
};
|
|
232
234
|
}
|
|
233
235
|
});
|
|
234
|
-
function
|
|
235
|
-
const
|
|
236
|
-
return
|
|
236
|
+
function lt(e, t, s, o, d, m) {
|
|
237
|
+
const u = T("cross-icon"), c = T("bento-button");
|
|
238
|
+
return r(), g(c, {
|
|
237
239
|
class: U(e.conditionalClass),
|
|
238
240
|
variant: "tertiary",
|
|
239
|
-
onClick: t[0] || (t[0] = (
|
|
241
|
+
onClick: t[0] || (t[0] = (f) => e.$emit("click"))
|
|
240
242
|
}, {
|
|
241
243
|
iconLeft: b(() => [
|
|
242
|
-
|
|
244
|
+
S(u, { "svg-title": "dismiss" })
|
|
243
245
|
]),
|
|
244
246
|
_: 1
|
|
245
247
|
}, 8, ["class"]);
|
|
246
248
|
}
|
|
247
|
-
const ce = /* @__PURE__ */
|
|
248
|
-
components: { BentoTypography:
|
|
249
|
+
const ce = /* @__PURE__ */ M(at, [["render", lt], ["__scopeId", "data-v-424ecdaa"]]), rt = w({
|
|
250
|
+
components: { BentoTypography: Ce },
|
|
249
251
|
props: {
|
|
250
252
|
/**
|
|
251
253
|
* Indicates if the popover contains an image.
|
|
@@ -257,50 +259,50 @@ const ce = /* @__PURE__ */ w(ot, [["render", st], ["__scopeId", "data-v-424ecdaa
|
|
|
257
259
|
title: { type: String, default: null }
|
|
258
260
|
},
|
|
259
261
|
setup(e) {
|
|
260
|
-
const t = _(() => !e.isImageTitle),
|
|
262
|
+
const t = _(() => !e.isImageTitle), s = _(
|
|
261
263
|
() => e.isImageTitle ? re.SUBTITLE : re.BODY
|
|
262
264
|
);
|
|
263
265
|
return {
|
|
264
266
|
// Values
|
|
265
267
|
isStrongest: t,
|
|
266
|
-
titleVariant:
|
|
268
|
+
titleVariant: s
|
|
267
269
|
};
|
|
268
270
|
}
|
|
269
271
|
});
|
|
270
|
-
function
|
|
271
|
-
const
|
|
272
|
-
return
|
|
272
|
+
function ut(e, t, s, o, d, m) {
|
|
273
|
+
const u = T("bento-typography");
|
|
274
|
+
return r(), g(u, {
|
|
273
275
|
strongest: e.isStrongest,
|
|
274
276
|
variant: e.titleVariant,
|
|
275
277
|
el: "span"
|
|
276
278
|
}, {
|
|
277
279
|
default: b(() => [
|
|
278
|
-
|
|
280
|
+
Y(G(e.title), 1)
|
|
279
281
|
]),
|
|
280
282
|
_: 1
|
|
281
283
|
}, 8, ["strongest", "variant"]);
|
|
282
284
|
}
|
|
283
|
-
const
|
|
284
|
-
let
|
|
285
|
+
const dt = /* @__PURE__ */ M(rt, [["render", ut]]), ct = (e, t, s = {}) => {
|
|
286
|
+
let o;
|
|
285
287
|
ee(() => {
|
|
286
|
-
|
|
288
|
+
o = Ye(e, t, s);
|
|
287
289
|
}), pe(() => {
|
|
288
|
-
|
|
290
|
+
o && (o(), o = null);
|
|
289
291
|
});
|
|
290
|
-
},
|
|
292
|
+
}, ft = /* @__PURE__ */ Symbol("input field popover injection key"), mt = /* @__PURE__ */ Symbol("input field popover injection key"), pt = /* @__PURE__ */ Symbol("popover offset injection key"), vt = {
|
|
291
293
|
key: 0,
|
|
292
294
|
class: "b-popover__image"
|
|
293
|
-
},
|
|
295
|
+
}, bt = {
|
|
294
296
|
key: 0,
|
|
295
297
|
class: "b-popover__image-dismiss-button"
|
|
296
|
-
},
|
|
298
|
+
}, ht = {
|
|
297
299
|
key: 1,
|
|
298
300
|
class: "b-popover__header"
|
|
299
|
-
},
|
|
301
|
+
}, yt = { class: "b-popover__header-title" }, gt = { key: 0 }, _t = {
|
|
300
302
|
key: 3,
|
|
301
303
|
class: "b-popover__footer"
|
|
302
|
-
},
|
|
303
|
-
...
|
|
304
|
+
}, Ct = {}, kt = /* @__PURE__ */ w({
|
|
305
|
+
...Ct,
|
|
304
306
|
__name: "popover",
|
|
305
307
|
props: {
|
|
306
308
|
actions: { default: void 0 },
|
|
@@ -326,88 +328,88 @@ const lt = /* @__PURE__ */ w(it, [["render", at]]), rt = (e, t, o = {}) => {
|
|
|
326
328
|
},
|
|
327
329
|
emits: ["dismiss", "placement"],
|
|
328
330
|
setup(e, { emit: t }) {
|
|
329
|
-
const
|
|
331
|
+
const o = e, d = t, m = Q(), u = we(), c = _(() => {
|
|
330
332
|
var y;
|
|
331
333
|
return {
|
|
332
|
-
id: (y =
|
|
333
|
-
role: (
|
|
334
|
+
id: (y = u.id) == null ? void 0 : y.toString(),
|
|
335
|
+
role: (u == null ? void 0 : u.role) === null ? void 0 : Ue.POPOVER
|
|
334
336
|
};
|
|
335
|
-
}),
|
|
337
|
+
}), f = K(pt, 2), a = v(u["aria-label"]), { ariaLabel: i, title: l } = Me(o), n = Ge({
|
|
336
338
|
ariaLabel: a.value,
|
|
337
339
|
// TODO: take this line away when the aria-label props is removed
|
|
338
340
|
label: i,
|
|
339
|
-
defaultFallback:
|
|
340
|
-
}), h = K(
|
|
341
|
-
"b-popover--small":
|
|
342
|
-
"b-popover--with-divider": !!
|
|
343
|
-
"b-popover--large":
|
|
344
|
-
"b-popover--fit-content":
|
|
345
|
-
"b-popover--without-space":
|
|
346
|
-
"b-popover--overflow-visible":
|
|
341
|
+
defaultFallback: l
|
|
342
|
+
}), h = K(mt, !1) || K(ft, !1), k = _(() => ({
|
|
343
|
+
"b-popover--small": o.small && !o.large,
|
|
344
|
+
"b-popover--with-divider": !!o.divider,
|
|
345
|
+
"b-popover--large": o.large && !o.small,
|
|
346
|
+
"b-popover--fit-content": o.fitContent,
|
|
347
|
+
"b-popover--without-space": o.withoutSpace,
|
|
348
|
+
"b-popover--overflow-visible": o.overflowVisible || h
|
|
347
349
|
})), $ = _(() => ({
|
|
348
|
-
"b-popover__content--with-title": !!
|
|
349
|
-
})),
|
|
350
|
-
return (y, F) => (
|
|
350
|
+
"b-popover__content--with-title": !!o.title
|
|
351
|
+
})), A = () => d("dismiss"), D = ae(m);
|
|
352
|
+
return (y, F) => (r(), g(ve, { name: "b-popover__animation" }, {
|
|
351
353
|
default: b(() => [
|
|
352
|
-
y.open ? (
|
|
354
|
+
y.open ? (r(), g(p(Ve), {
|
|
353
355
|
key: 0,
|
|
354
|
-
id:
|
|
355
|
-
"aria-role":
|
|
356
|
+
id: c.value.id,
|
|
357
|
+
"aria-role": c.value.role,
|
|
356
358
|
"aria-label": p(n),
|
|
357
359
|
arrow: { classes: ["b-popover__arrow"] },
|
|
358
360
|
"disabled-focus-trap": y.disableFocusTrap,
|
|
359
361
|
"trap-all": y.trapAll,
|
|
360
362
|
"trap-all-options": y.trapAllOptions,
|
|
361
|
-
class: U([
|
|
363
|
+
class: U([k.value, "b-popover"]),
|
|
362
364
|
"fallback-position": y.fallbackPosition,
|
|
363
365
|
"fixed-positioning": y.fixedPositioning,
|
|
364
|
-
offset: [0, p(
|
|
366
|
+
offset: [0, p(f)],
|
|
365
367
|
position: y.position,
|
|
366
368
|
"target-element": y.targetElement,
|
|
367
369
|
onPlacement: F[0] || (F[0] = (J) => y.$emit("placement", J))
|
|
368
370
|
}, {
|
|
369
371
|
default: b(() => [
|
|
370
|
-
p(
|
|
371
|
-
y.dismissible ? (
|
|
372
|
-
|
|
372
|
+
p(D)("image") ? (r(), I("div", vt, [
|
|
373
|
+
y.dismissible ? (r(), I("div", bt, [
|
|
374
|
+
S(ce, {
|
|
373
375
|
"on-image": "",
|
|
374
|
-
onClick:
|
|
376
|
+
onClick: A
|
|
375
377
|
})
|
|
376
|
-
])) :
|
|
377
|
-
|
|
378
|
-
])) :
|
|
379
|
-
p(
|
|
380
|
-
V("div",
|
|
381
|
-
p(
|
|
382
|
-
|
|
383
|
-
title: p(
|
|
384
|
-
"is-image-title": !!p(
|
|
378
|
+
])) : O("", !0),
|
|
379
|
+
P(y.$slots, "image", {}, void 0, !0)
|
|
380
|
+
])) : O("", !0),
|
|
381
|
+
p(l) ? (r(), I("div", ht, [
|
|
382
|
+
V("div", yt, [
|
|
383
|
+
p(D)("headerIcon") ? P(y.$slots, "headerIcon", { key: 0 }, void 0, !0) : O("", !0),
|
|
384
|
+
S(dt, {
|
|
385
|
+
title: p(l),
|
|
386
|
+
"is-image-title": !!p(D)("image")
|
|
385
387
|
}, null, 8, ["title", "is-image-title"])
|
|
386
388
|
]),
|
|
387
|
-
y.dismissible && !p(
|
|
388
|
-
|
|
389
|
-
])) :
|
|
390
|
-
])) :
|
|
391
|
-
p(
|
|
389
|
+
y.dismissible && !p(D)("image") ? (r(), I("div", gt, [
|
|
390
|
+
S(ce, { onClick: A })
|
|
391
|
+
])) : O("", !0)
|
|
392
|
+
])) : O("", !0),
|
|
393
|
+
p(D)("default") ? (r(), I("div", {
|
|
392
394
|
key: 2,
|
|
393
395
|
class: U(["b-popover__content", $.value])
|
|
394
396
|
}, [
|
|
395
|
-
|
|
396
|
-
], 2)) :
|
|
397
|
-
y.actions ? (
|
|
398
|
-
|
|
397
|
+
P(y.$slots, "default", {}, void 0, !0)
|
|
398
|
+
], 2)) : O("", !0),
|
|
399
|
+
y.actions ? (r(), I("div", _t, [
|
|
400
|
+
S(nn, {
|
|
399
401
|
actions: y.actions,
|
|
400
402
|
layout: y.actionsLayout
|
|
401
403
|
}, null, 8, ["actions", "layout"])
|
|
402
|
-
])) :
|
|
404
|
+
])) : O("", !0)
|
|
403
405
|
]),
|
|
404
406
|
_: 3
|
|
405
|
-
}, 8, ["id", "aria-role", "aria-label", "disabled-focus-trap", "trap-all", "trap-all-options", "class", "fallback-position", "fixed-positioning", "offset", "position", "target-element"])) :
|
|
407
|
+
}, 8, ["id", "aria-role", "aria-label", "disabled-focus-trap", "trap-all", "trap-all-options", "class", "fallback-position", "fixed-positioning", "offset", "position", "target-element"])) : O("", !0)
|
|
406
408
|
]),
|
|
407
409
|
_: 3
|
|
408
410
|
}));
|
|
409
411
|
}
|
|
410
|
-
}),
|
|
412
|
+
}), It = /* @__PURE__ */ M(kt, [["__scopeId", "data-v-84ebb43a"]]), Bt = /* @__PURE__ */ Symbol("modal injection key"), Ot = /* @__PURE__ */ Symbol("sidepanel children element injection key"), $t = /* @__PURE__ */ Symbol("modal fullscreen children element injection key"), St = w({
|
|
411
413
|
name: "teleport",
|
|
412
414
|
props: {
|
|
413
415
|
to: {
|
|
@@ -426,7 +428,7 @@ const lt = /* @__PURE__ */ w(it, [["render", at]]), rt = (e, t, o = {}) => {
|
|
|
426
428
|
waiting: !1,
|
|
427
429
|
observer: null,
|
|
428
430
|
parent: null,
|
|
429
|
-
isVue2:
|
|
431
|
+
isVue2: ke
|
|
430
432
|
}),
|
|
431
433
|
computed: {
|
|
432
434
|
classes() {
|
|
@@ -435,7 +437,7 @@ const lt = /* @__PURE__ */ w(it, [["render", at]]), rt = (e, t, o = {}) => {
|
|
|
435
437
|
defaultTo() {
|
|
436
438
|
if (this.to)
|
|
437
439
|
return this.to;
|
|
438
|
-
const e = K(
|
|
440
|
+
const e = K(Bt, "") || K($t, "") || K(Ot, "");
|
|
439
441
|
return e ? `#${e}` : "body";
|
|
440
442
|
}
|
|
441
443
|
},
|
|
@@ -476,11 +478,11 @@ const lt = /* @__PURE__ */ w(it, [["render", at]]), rt = (e, t, o = {}) => {
|
|
|
476
478
|
},
|
|
477
479
|
onMutations(e) {
|
|
478
480
|
let t = !1;
|
|
479
|
-
for (let
|
|
480
|
-
const
|
|
481
|
+
for (let s = 0; s < e.length; s++) {
|
|
482
|
+
const o = e[s], d = Array.from(o.addedNodes).filter(
|
|
481
483
|
(m) => !this.nodes.includes(m)
|
|
482
484
|
);
|
|
483
|
-
Array.from(
|
|
485
|
+
Array.from(o.removedNodes).includes(this.parent) ? (this.disable(), this.waiting = !this.disabled) : this.waiting && d.length > 0 && (t = !0);
|
|
484
486
|
}
|
|
485
487
|
t && this.move();
|
|
486
488
|
},
|
|
@@ -491,7 +493,7 @@ const lt = /* @__PURE__ */ w(it, [["render", at]]), rt = (e, t, o = {}) => {
|
|
|
491
493
|
attributes: !1,
|
|
492
494
|
characterData: !1
|
|
493
495
|
}), !this.childObserver && (this.childObserver = new MutationObserver((e) => {
|
|
494
|
-
e.find((
|
|
496
|
+
e.find((s) => s.target === this.$el) && (this.nodes.forEach((s) => s.parentNode && s.parentNode.removeChild(s)), this.nodes = this.getComponentChildrenNode(), this.maybeMove());
|
|
495
497
|
}), this.childObserver.observe(this.$el, {
|
|
496
498
|
childList: !0,
|
|
497
499
|
subtree: !1,
|
|
@@ -506,40 +508,40 @@ const lt = /* @__PURE__ */ w(it, [["render", at]]), rt = (e, t, o = {}) => {
|
|
|
506
508
|
return [];
|
|
507
509
|
}
|
|
508
510
|
}
|
|
509
|
-
}),
|
|
510
|
-
...
|
|
511
|
+
}), Lt = /* @__PURE__ */ w({
|
|
512
|
+
...St,
|
|
511
513
|
setup(e) {
|
|
512
|
-
return (t,
|
|
514
|
+
return (t, s) => p(ke) ? (r(), I("div", {
|
|
513
515
|
key: 0,
|
|
514
516
|
class: U(t.classes)
|
|
515
517
|
}, [
|
|
516
|
-
|
|
517
|
-
], 2)) : (
|
|
518
|
+
P(t.$slots, "default", {}, void 0, !0)
|
|
519
|
+
], 2)) : (r(), g(Ne, {
|
|
518
520
|
key: 1,
|
|
519
521
|
to: t.defaultTo,
|
|
520
522
|
where: t.where,
|
|
521
523
|
disabled: t.disabled,
|
|
522
524
|
class: U(t.classes)
|
|
523
525
|
}, [
|
|
524
|
-
|
|
526
|
+
P(t.$slots, "default", {}, void 0, !0)
|
|
525
527
|
], 8, ["to", "where", "disabled", "class"]));
|
|
526
528
|
}
|
|
527
|
-
}),
|
|
529
|
+
}), Et = /* @__PURE__ */ M(Lt, [["__scopeId", "data-v-acbda3aa"]]);
|
|
528
530
|
let fe = 0;
|
|
529
|
-
const
|
|
531
|
+
const Tt = {
|
|
530
532
|
beforeCreate() {
|
|
531
533
|
this.uuid = fe.toString(), fe += 1;
|
|
532
534
|
}
|
|
533
|
-
},
|
|
534
|
-
function
|
|
535
|
-
return
|
|
535
|
+
}, wt = { key: 0 };
|
|
536
|
+
function Mt(e, t, s, o, d, m) {
|
|
537
|
+
return r(), I("svg", H({ role: "img" }, e.$attrs, {
|
|
536
538
|
class: "ui-assets-icons-16",
|
|
537
539
|
xmlns: "http://www.w3.org/2000/svg",
|
|
538
540
|
width: "16",
|
|
539
541
|
height: "16",
|
|
540
542
|
fill: "none"
|
|
541
543
|
}), [
|
|
542
|
-
e.$attrs["svg-title"] ? (
|
|
544
|
+
e.$attrs["svg-title"] ? (r(), I("title", wt, G(e.$attrs["svg-title"]), 1)) : O("", !0),
|
|
543
545
|
t[0] || (t[0] = V("path", {
|
|
544
546
|
fill: "#001222",
|
|
545
547
|
d: "M8 4C8.29667 4 8.58668 3.91203 8.83335 3.74721C9.08003 3.58238 9.27229 3.34811 9.38582 3.07403C9.49935 2.79994 9.52906 2.49834 9.47118 2.20737C9.4133 1.91639 9.27044 1.64912 9.06066 1.43934C8.85088 1.22956 8.58361 1.0867 8.29264 1.02882C8.00167 0.970945 7.70006 1.00065 7.42598 1.11418C7.15189 1.22771 6.91762 1.41997 6.7528 1.66665C6.58797 1.91332 6.5 2.20333 6.5 2.5C6.5 2.89783 6.65803 3.27936 6.93934 3.56066C7.22064 3.84197 7.60218 4 8 4Z"
|
|
@@ -554,9 +556,9 @@ function Lt(e, t, o, s, d, m) {
|
|
|
554
556
|
}, null, -1))
|
|
555
557
|
], 16);
|
|
556
558
|
}
|
|
557
|
-
const
|
|
559
|
+
const Nt = /* @__PURE__ */ M(Tt, [["render", Mt]]), At = w({
|
|
558
560
|
name: "menu-item",
|
|
559
|
-
components: { BaseButton:
|
|
561
|
+
components: { BaseButton: ze, BentoTypography: Ce, ChevronRightIcon: qe },
|
|
560
562
|
props: {
|
|
561
563
|
/**
|
|
562
564
|
* menu-item text that gets displayed as the main label
|
|
@@ -626,60 +628,60 @@ const Tt = /* @__PURE__ */ w(Et, [["render", Lt]]), Mt = M({
|
|
|
626
628
|
},
|
|
627
629
|
emits: [de.CLICK],
|
|
628
630
|
setup(e, { emit: t }) {
|
|
629
|
-
const
|
|
631
|
+
const o = _(() => ({
|
|
630
632
|
"b-menu-item--critical": e.critical,
|
|
631
633
|
"b-menu-item--indent": e.indent
|
|
632
|
-
})), d = _(() =>
|
|
634
|
+
})), d = _(() => Xe(e.secondaryText, 10));
|
|
633
635
|
return {
|
|
634
636
|
// Values
|
|
635
|
-
conditionalClasses:
|
|
637
|
+
conditionalClasses: o,
|
|
636
638
|
computedSecondaryText: d,
|
|
637
639
|
// Methods
|
|
638
|
-
onClick: (
|
|
639
|
-
|
|
640
|
+
onClick: (u) => {
|
|
641
|
+
u.stopPropagation(), e.handler(), t(de.CLICK);
|
|
640
642
|
}
|
|
641
643
|
};
|
|
642
644
|
}
|
|
643
645
|
});
|
|
644
|
-
function
|
|
645
|
-
const
|
|
646
|
-
return
|
|
646
|
+
function Rt(e, t, s, o, d, m) {
|
|
647
|
+
const u = T("bento-typography"), c = T("chevron-right-icon"), f = T("base-button");
|
|
648
|
+
return r(), g(f, {
|
|
647
649
|
class: U(["b-menu-item", e.conditionalClasses]),
|
|
648
650
|
role: "menuitem",
|
|
649
651
|
disabled: e.disabled,
|
|
650
652
|
tabindex: "-1",
|
|
651
653
|
onClick: e.onClick
|
|
652
|
-
},
|
|
654
|
+
}, j({
|
|
653
655
|
default: b(() => [
|
|
654
|
-
|
|
656
|
+
S(u, {
|
|
655
657
|
el: "span",
|
|
656
658
|
variant: "body",
|
|
657
659
|
stronger: e.isTitle,
|
|
658
660
|
class: "b-menu-item__primary-text"
|
|
659
661
|
}, {
|
|
660
662
|
default: b(() => [
|
|
661
|
-
|
|
663
|
+
Y(G(e.text), 1)
|
|
662
664
|
]),
|
|
663
665
|
_: 1
|
|
664
666
|
}, 8, ["stronger"]),
|
|
665
|
-
e.computedSecondaryText ? (
|
|
667
|
+
e.computedSecondaryText ? (r(), g(u, {
|
|
666
668
|
key: 0,
|
|
667
669
|
el: "span",
|
|
668
670
|
variant: "body",
|
|
669
671
|
class: "b-menu-item__secondary-text"
|
|
670
672
|
}, {
|
|
671
673
|
default: b(() => [
|
|
672
|
-
|
|
674
|
+
Y(G(e.computedSecondaryText), 1)
|
|
673
675
|
]),
|
|
674
676
|
_: 1
|
|
675
|
-
})) :
|
|
677
|
+
})) : O("", !0)
|
|
676
678
|
]),
|
|
677
679
|
_: 2
|
|
678
680
|
}, [
|
|
679
681
|
e.icon ? {
|
|
680
682
|
name: "iconLeft",
|
|
681
683
|
fn: b(() => [
|
|
682
|
-
(
|
|
684
|
+
(r(), g(z(e.icon), {
|
|
683
685
|
class: "b-menu-item__icon-left",
|
|
684
686
|
"aria-hidden": "true"
|
|
685
687
|
}))
|
|
@@ -689,45 +691,53 @@ function wt(e, t, o, s, d, m) {
|
|
|
689
691
|
e.chevron ? {
|
|
690
692
|
name: "iconRight",
|
|
691
693
|
fn: b(() => [
|
|
692
|
-
|
|
694
|
+
S(c, { "aria-hidden": "true" })
|
|
693
695
|
]),
|
|
694
696
|
key: "1"
|
|
695
697
|
} : void 0
|
|
696
698
|
]), 1032, ["class", "disabled", "onClick"]);
|
|
697
699
|
}
|
|
698
|
-
const
|
|
699
|
-
({ ...
|
|
700
|
+
const Be = /* @__PURE__ */ M(At, [["render", Rt], ["__scopeId", "data-v-9dace5ac"]]);
|
|
701
|
+
({ ...je });
|
|
700
702
|
var W = /* @__PURE__ */ ((e) => (e.BACK = "back", e.CLOSE = "close", e.OPEN = "open", e))(W || {});
|
|
701
|
-
const
|
|
703
|
+
const Pt = /* @__PURE__ */ Symbol("menu registering injection key"), Dt = {
|
|
702
704
|
name: "bento-menu-list-container"
|
|
703
|
-
},
|
|
704
|
-
...
|
|
705
|
+
}, Ft = /* @__PURE__ */ w({
|
|
706
|
+
...Dt,
|
|
705
707
|
setup(e) {
|
|
706
|
-
const t = v(),
|
|
707
|
-
if (
|
|
708
|
-
const { registerMenuContainerElement: d } =
|
|
709
|
-
d(t),
|
|
710
|
-
mouseleave:
|
|
708
|
+
const t = v(), s = v({}), o = K(Pt, !1);
|
|
709
|
+
if (o) {
|
|
710
|
+
const { registerMenuContainerElement: d } = o;
|
|
711
|
+
d(t), s.value = {
|
|
712
|
+
mouseleave: o == null ? void 0 : o.menuMouseLeave
|
|
711
713
|
};
|
|
712
714
|
}
|
|
713
|
-
return (d, m) => (
|
|
715
|
+
return (d, m) => (r(), I("div", H({
|
|
714
716
|
ref_key: "menuListContainerRef",
|
|
715
717
|
ref: t,
|
|
716
718
|
class: "b-menu-list-container",
|
|
717
719
|
"data-testid": "menu-list-container"
|
|
718
|
-
}, ie(
|
|
719
|
-
|
|
720
|
+
}, ie(s.value, !0)), [
|
|
721
|
+
P(d.$slots, "default", {}, void 0, !0)
|
|
720
722
|
], 16));
|
|
721
723
|
}
|
|
722
|
-
}), Oe = /* @__PURE__ */
|
|
724
|
+
}), Oe = /* @__PURE__ */ M(Ft, [["__scopeId", "data-v-9ef14d73"]]), le = {
|
|
723
725
|
"en-US": {
|
|
724
726
|
backButton: "Go back",
|
|
725
727
|
menuButton: "Open menu"
|
|
728
|
+
},
|
|
729
|
+
"ja-JP": {
|
|
730
|
+
backButton: "戻る",
|
|
731
|
+
menuButton: "メニューを開く"
|
|
732
|
+
},
|
|
733
|
+
"pt-BR": {
|
|
734
|
+
backButton: "voltar",
|
|
735
|
+
menuButton: "Abrir menu"
|
|
726
736
|
}
|
|
727
|
-
},
|
|
737
|
+
}, Wt = w({
|
|
728
738
|
i18n: { messages: le },
|
|
729
739
|
name: "sub-menu-item-list",
|
|
730
|
-
components: { BentoDivider:
|
|
740
|
+
components: { BentoDivider: _e, MenuItem: Be, MenuListContainer: Oe },
|
|
731
741
|
props: {
|
|
732
742
|
items: {
|
|
733
743
|
type: Array,
|
|
@@ -740,9 +750,9 @@ const Nt = /* @__PURE__ */ Symbol("menu registering injection key"), Rt = {
|
|
|
740
750
|
},
|
|
741
751
|
emits: [W.CLOSE, W.BACK],
|
|
742
752
|
setup(e, { emit: t }) {
|
|
743
|
-
const
|
|
753
|
+
const s = v(null), o = v(0), d = v(e.items.length), m = () => t(W.CLOSE), u = () => t(W.BACK), c = _(() => {
|
|
744
754
|
var n;
|
|
745
|
-
const
|
|
755
|
+
const l = (n = e.items) == null ? void 0 : n.map((h) => ({
|
|
746
756
|
...h,
|
|
747
757
|
indent: !h.icon,
|
|
748
758
|
isTitle: !1,
|
|
@@ -757,64 +767,64 @@ const Nt = /* @__PURE__ */ Symbol("menu registering injection key"), Rt = {
|
|
|
757
767
|
isTitle: !0,
|
|
758
768
|
disabled: !1,
|
|
759
769
|
indent: !1,
|
|
760
|
-
handler:
|
|
761
|
-
clickHandler:
|
|
770
|
+
handler: u,
|
|
771
|
+
clickHandler: u,
|
|
762
772
|
addDivider: !0
|
|
763
773
|
},
|
|
764
|
-
...
|
|
774
|
+
...l
|
|
765
775
|
];
|
|
766
|
-
}),
|
|
767
|
-
var
|
|
768
|
-
($ = (
|
|
776
|
+
}), f = async () => {
|
|
777
|
+
var l, n, h, k, $;
|
|
778
|
+
($ = (k = (h = (n = (l = s.value) == null ? void 0 : l.children) == null ? void 0 : n[o.value]) == null ? void 0 : h.children) == null ? void 0 : k[0]) == null || $.focus();
|
|
769
779
|
};
|
|
770
780
|
ee(async () => {
|
|
771
|
-
setTimeout(() =>
|
|
781
|
+
setTimeout(() => f(), 150);
|
|
772
782
|
});
|
|
773
783
|
const a = () => {
|
|
774
|
-
|
|
784
|
+
o.value > 0 ? (o.value -= 1, c.value[o.value].disabled && a()) : o.value = d.value, f();
|
|
775
785
|
}, i = () => {
|
|
776
|
-
|
|
786
|
+
o.value < d.value ? (o.value += 1, c.value[o.value].disabled && i()) : o.value = 0, f();
|
|
777
787
|
};
|
|
778
788
|
return {
|
|
779
789
|
// Enums
|
|
780
790
|
BentoMenuEvent: W,
|
|
781
791
|
// Values
|
|
782
|
-
subMenuItemListRefLocal:
|
|
783
|
-
subMenuFocusedIndex:
|
|
792
|
+
subMenuItemListRefLocal: s,
|
|
793
|
+
subMenuFocusedIndex: o,
|
|
784
794
|
ChevronLeftIcon: ue,
|
|
785
|
-
computedItems:
|
|
795
|
+
computedItems: c,
|
|
786
796
|
// Methods
|
|
787
797
|
closeMenu: m,
|
|
788
|
-
onBackButton:
|
|
798
|
+
onBackButton: u,
|
|
789
799
|
focusPrevious: a,
|
|
790
800
|
focusNext: i
|
|
791
801
|
};
|
|
792
802
|
}
|
|
793
803
|
});
|
|
794
|
-
function
|
|
795
|
-
const
|
|
796
|
-
return
|
|
804
|
+
function Kt(e, t, s, o, d, m) {
|
|
805
|
+
const u = T("menu-item"), c = T("bento-divider"), f = T("menu-list-container");
|
|
806
|
+
return r(), g(ve, {
|
|
797
807
|
name: "b-sub-menu-item-list__transition",
|
|
798
808
|
appear: ""
|
|
799
809
|
}, {
|
|
800
810
|
default: b(() => [
|
|
801
|
-
|
|
811
|
+
S(f, { class: "b-sub-menu-item-list" }, {
|
|
802
812
|
default: b(() => [
|
|
803
813
|
V("ul", {
|
|
804
814
|
ref: "subMenuItemListRefLocal",
|
|
805
815
|
role: "menu",
|
|
806
816
|
class: "b-sub-menu-item-list__list",
|
|
807
817
|
onKeydown: [
|
|
808
|
-
t[0] || (t[0] = N(
|
|
809
|
-
t[1] || (t[1] = N(
|
|
810
|
-
t[2] || (t[2] = N(
|
|
818
|
+
t[0] || (t[0] = N(X((...a) => e.focusNext && e.focusNext(...a), ["stop"]), ["down"])),
|
|
819
|
+
t[1] || (t[1] = N(X((...a) => e.focusPrevious && e.focusPrevious(...a), ["stop"]), ["up"])),
|
|
820
|
+
t[2] || (t[2] = N(X((...a) => e.onBackButton && e.onBackButton(...a), ["stop"]), ["esc"]))
|
|
811
821
|
]
|
|
812
822
|
}, [
|
|
813
|
-
(
|
|
823
|
+
(r(!0), I(Z, null, x(e.computedItems, (a, i) => (r(), I("li", {
|
|
814
824
|
key: `sub-menu-item-list-item-${i}`,
|
|
815
825
|
role: "none"
|
|
816
826
|
}, [
|
|
817
|
-
|
|
827
|
+
S(u, {
|
|
818
828
|
text: a.text,
|
|
819
829
|
handler: a.handler,
|
|
820
830
|
"secondary-text": a.secondaryText,
|
|
@@ -826,10 +836,10 @@ function Pt(e, t, o, s, d, m) {
|
|
|
826
836
|
tabindex: i === e.subMenuFocusedIndex ? "0" : "-1",
|
|
827
837
|
onClick: a.clickHandler
|
|
828
838
|
}, null, 8, ["text", "handler", "secondary-text", "icon", "is-title", "disabled", "critical", "indent", "tabindex", "onClick"]),
|
|
829
|
-
a.addDivider ? (
|
|
839
|
+
a.addDivider ? (r(), g(c, {
|
|
830
840
|
key: 0,
|
|
831
841
|
class: "b-sub-menu-item-list__divider"
|
|
832
|
-
})) :
|
|
842
|
+
})) : O("", !0)
|
|
833
843
|
]))), 128))
|
|
834
844
|
], 544)
|
|
835
845
|
]),
|
|
@@ -839,34 +849,41 @@ function Pt(e, t, o, s, d, m) {
|
|
|
839
849
|
_: 1
|
|
840
850
|
});
|
|
841
851
|
}
|
|
842
|
-
const
|
|
843
|
-
function
|
|
844
|
-
|
|
852
|
+
const Ut = /* @__PURE__ */ M(Wt, [["render", Kt], ["__scopeId", "data-v-e1de172e"]]), $e = 350, Se = 150;
|
|
853
|
+
function Le(e) {
|
|
854
|
+
return Math.max(Se, Math.min(e, $e));
|
|
855
|
+
}
|
|
856
|
+
function Vt(e, t, s, o) {
|
|
857
|
+
const d = v(0), m = v(0), u = (a) => {
|
|
845
858
|
if (!a || !a.parentElement)
|
|
846
859
|
return;
|
|
847
|
-
const i = a.parentElement,
|
|
848
|
-
|
|
849
|
-
const n =
|
|
850
|
-
|
|
851
|
-
const
|
|
852
|
-
|
|
860
|
+
const i = a.parentElement, l = a.cloneNode(!0);
|
|
861
|
+
l.style.position = "absolute", l.style.visibility = "hidden", i.appendChild(l), l.style.width = "max-content";
|
|
862
|
+
const n = l.offsetWidth, h = Math.max(Se, Math.min(n, $e));
|
|
863
|
+
d.value = h, l.style.width = `${h}px`;
|
|
864
|
+
const k = l.offsetHeight;
|
|
865
|
+
m.value = k, i.removeChild(l), m.value = k;
|
|
853
866
|
};
|
|
854
|
-
|
|
855
|
-
var i,
|
|
867
|
+
be([t, s], async ([a]) => {
|
|
868
|
+
var i, l;
|
|
856
869
|
if (a !== null) {
|
|
857
870
|
await te();
|
|
858
|
-
const n = (
|
|
859
|
-
n &&
|
|
871
|
+
const n = (l = (i = e.value) == null ? void 0 : i[0]) == null ? void 0 : l.$el;
|
|
872
|
+
n && u(n);
|
|
860
873
|
} else
|
|
861
|
-
|
|
862
|
-
})
|
|
863
|
-
|
|
864
|
-
|
|
874
|
+
d.value = 0, m.value = 0;
|
|
875
|
+
});
|
|
876
|
+
const c = _(() => o != null && o.value ? Le(o.value) : 0);
|
|
877
|
+
return { computedStyle: _(() => {
|
|
878
|
+
const a = {
|
|
879
|
+
width: c.value > 0 ? `${c.value}px` : "max-content"
|
|
880
|
+
};
|
|
881
|
+
return s.value && (m.value > 0 && (a.height = `${m.value}px`), d.value > 0 && (a.width = `${d.value}px`)), a;
|
|
865
882
|
}) };
|
|
866
883
|
}
|
|
867
|
-
const
|
|
884
|
+
const jt = w({
|
|
868
885
|
name: "menu-item-list",
|
|
869
|
-
components: { BentoDivider:
|
|
886
|
+
components: { BentoDivider: _e, MenuItem: Be, MenuListContainer: Oe, SubMenuItemList: Ut },
|
|
870
887
|
props: {
|
|
871
888
|
/**
|
|
872
889
|
* The data to be displayed in the list
|
|
@@ -895,69 +912,81 @@ const Kt = M({
|
|
|
895
912
|
closeMenuOnItemSelect: {
|
|
896
913
|
type: Boolean,
|
|
897
914
|
default: !0
|
|
915
|
+
},
|
|
916
|
+
/**
|
|
917
|
+
* The custom popover width if one has been set
|
|
918
|
+
*/
|
|
919
|
+
popoverWidth: {
|
|
920
|
+
type: Number,
|
|
921
|
+
default: null
|
|
898
922
|
}
|
|
899
923
|
},
|
|
900
924
|
emits: [W.CLOSE, "menu-item-click"],
|
|
901
|
-
setup(e, { emit: t, expose:
|
|
902
|
-
const
|
|
903
|
-
let
|
|
904
|
-
return
|
|
905
|
-
...
|
|
906
|
-
indent:
|
|
925
|
+
setup(e, { emit: t, expose: s }) {
|
|
926
|
+
const o = v(null), d = v(null), m = v(null), u = v(null), c = v(!1), f = v(null), a = v(e.focusLastElement ? e.data.length - 1 : 0), i = v(0), l = v(e.data.length - 1), n = _(() => e.data.some((B) => B.icon)), h = _(() => e.indentItems || n.value ? e.data.map((B) => {
|
|
927
|
+
let L = !1;
|
|
928
|
+
return B.icon || (L = !0), {
|
|
929
|
+
...B,
|
|
930
|
+
indent: L
|
|
907
931
|
};
|
|
908
|
-
}) : e.data),
|
|
909
|
-
var
|
|
910
|
-
await te(), (
|
|
911
|
-
}, $ = () => t(W.CLOSE),
|
|
912
|
-
if (
|
|
913
|
-
|
|
932
|
+
}) : e.data), k = async () => {
|
|
933
|
+
var B, L, C;
|
|
934
|
+
await te(), (C = (L = (B = d.value) == null ? void 0 : B.children[a.value]) == null ? void 0 : L.children[0]) == null || C.focus();
|
|
935
|
+
}, $ = () => t(W.CLOSE), A = (B, L) => {
|
|
936
|
+
if (B.items) {
|
|
937
|
+
f.value = L, c.value = !0;
|
|
914
938
|
return;
|
|
915
939
|
}
|
|
916
|
-
|
|
917
|
-
},
|
|
918
|
-
a.value > 0 ? (a.value -= 1, h.value[a.value].disabled &&
|
|
940
|
+
f.value = L, c.value = !1, !B.skipClose && e.closeMenuOnItemSelect !== !1 && $(), t("menu-item-click");
|
|
941
|
+
}, D = () => {
|
|
942
|
+
a.value > 0 ? (a.value -= 1, h.value[a.value].disabled && D()) : a.value = l.value, k();
|
|
919
943
|
}, y = () => {
|
|
920
|
-
a.value <
|
|
921
|
-
}, F = (
|
|
922
|
-
var
|
|
923
|
-
(
|
|
944
|
+
a.value < l.value ? (a.value += 1, h.value[a.value].disabled && y()) : a.value = 0, k();
|
|
945
|
+
}, F = (B, L) => {
|
|
946
|
+
var C;
|
|
947
|
+
(C = B == null ? void 0 : B.items) != null && C.length && (f.value = L, c.value = !0);
|
|
924
948
|
}, J = () => {
|
|
925
|
-
|
|
949
|
+
f.value && c.value && (f.value = null, c.value = !1);
|
|
926
950
|
}, ne = () => {
|
|
927
|
-
|
|
951
|
+
c.value = !1, f.value = null, k();
|
|
928
952
|
};
|
|
929
|
-
|
|
930
|
-
focusItem:
|
|
953
|
+
s({
|
|
954
|
+
focusItem: k
|
|
931
955
|
});
|
|
932
|
-
const { computedStyle: oe } =
|
|
956
|
+
const { computedStyle: oe } = Vt(
|
|
957
|
+
u,
|
|
958
|
+
f,
|
|
959
|
+
c,
|
|
960
|
+
he(e, "popoverWidth")
|
|
961
|
+
);
|
|
933
962
|
return {
|
|
934
963
|
// Values
|
|
935
964
|
menuItemListRef: d,
|
|
936
965
|
menuItemListWrapperRef: m,
|
|
937
|
-
subMenuItemListRef:
|
|
938
|
-
menuItemRef:
|
|
966
|
+
subMenuItemListRef: u,
|
|
967
|
+
menuItemRef: o,
|
|
939
968
|
computedData: h,
|
|
940
969
|
computedStyle: oe,
|
|
941
970
|
focusedIndex: a,
|
|
942
971
|
subMenuFocusedIndex: i,
|
|
943
|
-
showSubMenu:
|
|
944
|
-
visibleSubMenuIndex:
|
|
972
|
+
showSubMenu: c,
|
|
973
|
+
visibleSubMenuIndex: f,
|
|
945
974
|
// Methods
|
|
946
|
-
menuItemClick:
|
|
975
|
+
menuItemClick: A,
|
|
947
976
|
closeMenu: $,
|
|
948
|
-
focusPrevious:
|
|
977
|
+
focusPrevious: D,
|
|
949
978
|
focusNext: y,
|
|
950
979
|
focusRight: F,
|
|
951
980
|
focusLeft: J,
|
|
952
981
|
onBackButton: ne
|
|
953
982
|
};
|
|
954
983
|
}
|
|
955
|
-
}),
|
|
956
|
-
function
|
|
957
|
-
const
|
|
958
|
-
return
|
|
984
|
+
}), Gt = ["onKeydown"];
|
|
985
|
+
function Yt(e, t, s, o, d, m) {
|
|
986
|
+
const u = T("menu-item"), c = T("bento-divider"), f = T("sub-menu-item-list"), a = T("menu-list-container");
|
|
987
|
+
return r(), g(a, {
|
|
959
988
|
ref: "menuItemListWrapperRef",
|
|
960
|
-
style:
|
|
989
|
+
style: ye(e.computedStyle)
|
|
961
990
|
}, {
|
|
962
991
|
default: b(() => [
|
|
963
992
|
V("ul", {
|
|
@@ -971,20 +1000,20 @@ function Vt(e, t, o, s, d, m) {
|
|
|
971
1000
|
t[4] || (t[4] = N((...i) => e.closeMenu && e.closeMenu(...i), ["tab"]))
|
|
972
1001
|
]
|
|
973
1002
|
}, [
|
|
974
|
-
(
|
|
975
|
-
var n, h,
|
|
976
|
-
return
|
|
977
|
-
key: `menu-item-${
|
|
1003
|
+
(r(!0), I(Z, null, x(e.computedData, (i, l) => {
|
|
1004
|
+
var n, h, k, $;
|
|
1005
|
+
return r(), I("li", {
|
|
1006
|
+
key: `menu-item-${l}`,
|
|
978
1007
|
ref_for: !0,
|
|
979
1008
|
ref: "menuItemRef",
|
|
980
1009
|
class: "b-menu-item-list__item",
|
|
981
1010
|
role: "none",
|
|
982
1011
|
onKeydown: [
|
|
983
|
-
N((
|
|
984
|
-
t[0] || (t[0] = N((
|
|
1012
|
+
N((A) => e.focusRight(i, l), ["right"]),
|
|
1013
|
+
t[0] || (t[0] = N((A) => e.focusLeft(), ["left"]))
|
|
985
1014
|
]
|
|
986
1015
|
}, [
|
|
987
|
-
|
|
1016
|
+
S(u, {
|
|
988
1017
|
text: i.text,
|
|
989
1018
|
handler: (n = i.items) != null && n.length ? () => null : i.handler,
|
|
990
1019
|
"secondary-text": i.secondaryText,
|
|
@@ -993,16 +1022,16 @@ function Vt(e, t, o, s, d, m) {
|
|
|
993
1022
|
disabled: i.disabled,
|
|
994
1023
|
critical: i.critical,
|
|
995
1024
|
indent: i.indent,
|
|
996
|
-
tabindex:
|
|
997
|
-
"aria-haspopup": !!((
|
|
998
|
-
"aria-expanded": e.showSubMenu && e.visibleSubMenuIndex ===
|
|
999
|
-
onClick: (
|
|
1025
|
+
tabindex: l === e.subMenuFocusedIndex ? "0" : "-1",
|
|
1026
|
+
"aria-haspopup": !!((k = i.items) != null && k.length),
|
|
1027
|
+
"aria-expanded": e.showSubMenu && e.visibleSubMenuIndex === l,
|
|
1028
|
+
onClick: (A) => e.menuItemClick(i, l)
|
|
1000
1029
|
}, null, 8, ["text", "handler", "secondary-text", "icon", "chevron", "disabled", "critical", "indent", "tabindex", "aria-haspopup", "aria-expanded", "onClick"]),
|
|
1001
|
-
i.addDivider ? (
|
|
1030
|
+
i.addDivider ? (r(), g(c, {
|
|
1002
1031
|
key: 0,
|
|
1003
1032
|
class: "b-menu-item-list__divider"
|
|
1004
|
-
})) :
|
|
1005
|
-
($ = i.items) != null && $.length && e.showSubMenu && e.visibleSubMenuIndex ===
|
|
1033
|
+
})) : O("", !0),
|
|
1034
|
+
($ = i.items) != null && $.length && e.showSubMenu && e.visibleSubMenuIndex === l ? (r(), g(f, {
|
|
1006
1035
|
key: 1,
|
|
1007
1036
|
ref_for: !0,
|
|
1008
1037
|
ref: "subMenuItemListRef",
|
|
@@ -1010,19 +1039,19 @@ function Vt(e, t, o, s, d, m) {
|
|
|
1010
1039
|
title: i.text,
|
|
1011
1040
|
onBack: e.onBackButton,
|
|
1012
1041
|
onClose: e.closeMenu
|
|
1013
|
-
}, null, 8, ["items", "title", "onBack", "onClose"])) :
|
|
1014
|
-
], 40,
|
|
1042
|
+
}, null, 8, ["items", "title", "onBack", "onClose"])) : O("", !0)
|
|
1043
|
+
], 40, Gt);
|
|
1015
1044
|
}), 128))
|
|
1016
1045
|
], 544)
|
|
1017
1046
|
]),
|
|
1018
1047
|
_: 1
|
|
1019
1048
|
}, 8, ["style"]);
|
|
1020
1049
|
}
|
|
1021
|
-
const
|
|
1050
|
+
const Ht = /* @__PURE__ */ M(jt, [["render", Yt], ["__scopeId", "data-v-7253ab73"]]), Jt = /* @__PURE__ */ Symbol("menu inverse style injection key"), qt = {
|
|
1022
1051
|
i18n: { messages: le },
|
|
1023
1052
|
name: "bento-menu"
|
|
1024
|
-
},
|
|
1025
|
-
...
|
|
1053
|
+
}, zt = /* @__PURE__ */ w({
|
|
1054
|
+
...qt,
|
|
1026
1055
|
props: {
|
|
1027
1056
|
button: { default: () => ({
|
|
1028
1057
|
variant: "secondary"
|
|
@@ -1038,40 +1067,42 @@ const Gt = /* @__PURE__ */ w(Kt, [["render", Vt], ["__scopeId", "data-v-968b28cb
|
|
|
1038
1067
|
closeOnClickOutsideOptions: { default: void 0 }
|
|
1039
1068
|
},
|
|
1040
1069
|
emits: ["menu-item-click", "click-outside"],
|
|
1041
|
-
setup(e, { expose: t, emit:
|
|
1042
|
-
var
|
|
1043
|
-
const
|
|
1044
|
-
|
|
1070
|
+
setup(e, { expose: t, emit: s }) {
|
|
1071
|
+
var L;
|
|
1072
|
+
const o = e, d = s, m = Q(), u = ae(m), { t: c } = ge({ messages: le }), f = v(null), a = v(null), i = v(!1), l = v(!1), n = v(null), h = He("menu"), k = K(Jt, v(!1));
|
|
1073
|
+
Ae(Fe, k);
|
|
1045
1074
|
const $ = _(() => ({
|
|
1046
|
-
"b-menu--inverse":
|
|
1047
|
-
})),
|
|
1048
|
-
|
|
1075
|
+
"b-menu--inverse": k.value
|
|
1076
|
+
})), A = _(
|
|
1077
|
+
() => o.menuWidth ? { width: `${Le(o.menuWidth)}px` } : null
|
|
1078
|
+
), D = _(() => {
|
|
1079
|
+
if (o != null && o.button)
|
|
1049
1080
|
return {
|
|
1050
1081
|
variant: "secondary",
|
|
1051
|
-
...
|
|
1082
|
+
...o.button
|
|
1052
1083
|
};
|
|
1053
1084
|
}), y = () => {
|
|
1054
1085
|
i.value = !0, d(W.OPEN);
|
|
1055
|
-
}, F = async (
|
|
1086
|
+
}, F = async (C = o.revertFocusToButton) => {
|
|
1056
1087
|
var q, se;
|
|
1057
|
-
i.value && (i.value = !1,
|
|
1058
|
-
}, J = (
|
|
1059
|
-
|
|
1060
|
-
}, ne = (
|
|
1061
|
-
|
|
1062
|
-
}, oe = (
|
|
1063
|
-
|
|
1064
|
-
},
|
|
1088
|
+
i.value && (i.value = !1, C && (await te(), (se = (q = f.value) == null ? void 0 : q.$el) == null || se.focus()), d(W.CLOSE));
|
|
1089
|
+
}, J = (C) => {
|
|
1090
|
+
C.stopPropagation(), i.value ? F() : y();
|
|
1091
|
+
}, ne = (C) => {
|
|
1092
|
+
C.preventDefault(), l.value = !1, o.disableArrowDownOpeningMenu || y();
|
|
1093
|
+
}, oe = (C) => {
|
|
1094
|
+
C.preventDefault(), l.value = !0, y();
|
|
1095
|
+
}, B = () => {
|
|
1065
1096
|
d("menu-item-click");
|
|
1066
1097
|
};
|
|
1067
|
-
return
|
|
1098
|
+
return ct(
|
|
1068
1099
|
n,
|
|
1069
1100
|
() => {
|
|
1070
1101
|
F(), d("click-outside");
|
|
1071
1102
|
},
|
|
1072
1103
|
{
|
|
1073
|
-
...
|
|
1074
|
-
ignore: [
|
|
1104
|
+
...o.closeOnClickOutsideOptions,
|
|
1105
|
+
ignore: [f, ...((L = o.closeOnClickOutsideOptions) == null ? void 0 : L.ignore) ?? []]
|
|
1075
1106
|
}
|
|
1076
1107
|
), t({
|
|
1077
1108
|
/**
|
|
@@ -1079,10 +1110,10 @@ const Gt = /* @__PURE__ */ w(Kt, [["render", Vt], ["__scopeId", "data-v-968b28cb
|
|
|
1079
1110
|
*/
|
|
1080
1111
|
closeMenu: F
|
|
1081
1112
|
}), ee(() => {
|
|
1082
|
-
|
|
1113
|
+
u("iconRight") && Ke(
|
|
1083
1114
|
'"bento-menu" no longer supports the "iconRight" slot. The right-aligned icon is now fixed by design.'
|
|
1084
1115
|
);
|
|
1085
|
-
}), (
|
|
1116
|
+
}), (C, q) => (r(), I("div", {
|
|
1086
1117
|
class: U([$.value, "b-menu"]),
|
|
1087
1118
|
"data-testid": "menu",
|
|
1088
1119
|
onKeydown: [
|
|
@@ -1091,49 +1122,49 @@ const Gt = /* @__PURE__ */ w(Kt, [["render", Vt], ["__scopeId", "data-v-968b28cb
|
|
|
1091
1122
|
q[0] || (q[0] = N((se) => F(), ["esc"]))
|
|
1092
1123
|
]
|
|
1093
1124
|
}, [
|
|
1094
|
-
|
|
1125
|
+
S(it, H({
|
|
1095
1126
|
ref_key: "menuButtonRef",
|
|
1096
|
-
ref:
|
|
1127
|
+
ref: f,
|
|
1097
1128
|
class: "b-menu__toggle-button",
|
|
1098
1129
|
"aria-haspopup": "true"
|
|
1099
|
-
},
|
|
1130
|
+
}, D.value, {
|
|
1100
1131
|
"aria-controls": i.value ? p(h) : null,
|
|
1101
1132
|
toggled: i.value,
|
|
1102
|
-
inverse: p(
|
|
1133
|
+
inverse: p(k),
|
|
1103
1134
|
onClick: J
|
|
1104
|
-
}),
|
|
1105
|
-
!p(
|
|
1135
|
+
}), j({ _: 2 }, [
|
|
1136
|
+
!p(u)("default") || p(u)("iconLeft") ? {
|
|
1106
1137
|
name: "iconLeft",
|
|
1107
1138
|
fn: b(() => [
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
title: p(
|
|
1139
|
+
P(C.$slots, "iconLeft", {}, () => [
|
|
1140
|
+
S(p(Nt), {
|
|
1141
|
+
title: p(c)("menuButton")
|
|
1111
1142
|
}, null, 8, ["title"])
|
|
1112
1143
|
], !0)
|
|
1113
1144
|
]),
|
|
1114
1145
|
key: "0"
|
|
1115
1146
|
} : void 0,
|
|
1116
|
-
p(
|
|
1147
|
+
p(u)("default") ? {
|
|
1117
1148
|
name: "default",
|
|
1118
1149
|
fn: b(() => [
|
|
1119
|
-
|
|
1150
|
+
P(C.$slots, "default", {}, void 0, !0)
|
|
1120
1151
|
]),
|
|
1121
1152
|
key: "1"
|
|
1122
1153
|
} : void 0,
|
|
1123
|
-
p(
|
|
1154
|
+
p(u)("default") ? {
|
|
1124
1155
|
name: "iconRight",
|
|
1125
1156
|
fn: b(() => [
|
|
1126
|
-
|
|
1157
|
+
S(p(Je))
|
|
1127
1158
|
]),
|
|
1128
1159
|
key: "2"
|
|
1129
1160
|
} : void 0
|
|
1130
1161
|
]), 1040, ["aria-controls", "toggled", "inverse"]),
|
|
1131
|
-
|
|
1162
|
+
f.value ? (r(), g(p(Et), {
|
|
1132
1163
|
key: 0,
|
|
1133
|
-
disabled: !
|
|
1164
|
+
disabled: !C.teleport
|
|
1134
1165
|
}, {
|
|
1135
1166
|
default: b(() => [
|
|
1136
|
-
|
|
1167
|
+
f.value ? (r(), g(It, {
|
|
1137
1168
|
key: 0,
|
|
1138
1169
|
id: p(h),
|
|
1139
1170
|
ref_key: "popoverRef",
|
|
@@ -1141,10 +1172,10 @@ const Gt = /* @__PURE__ */ w(Kt, [["render", Vt], ["__scopeId", "data-v-968b28cb
|
|
|
1141
1172
|
role: null,
|
|
1142
1173
|
open: i.value,
|
|
1143
1174
|
class: "b-menu__popover",
|
|
1144
|
-
style:
|
|
1145
|
-
"target-element":
|
|
1146
|
-
position:
|
|
1147
|
-
"fixed-positioning":
|
|
1175
|
+
style: ye(A.value),
|
|
1176
|
+
"target-element": f.value,
|
|
1177
|
+
position: C.menuPosition,
|
|
1178
|
+
"fixed-positioning": C.menuFixedPositioning,
|
|
1148
1179
|
"fallback-position": [
|
|
1149
1180
|
"bottom-start",
|
|
1150
1181
|
"bottom-end",
|
|
@@ -1155,61 +1186,62 @@ const Gt = /* @__PURE__ */ w(Kt, [["render", Vt], ["__scopeId", "data-v-968b28cb
|
|
|
1155
1186
|
"left-start",
|
|
1156
1187
|
"left-end"
|
|
1157
1188
|
],
|
|
1158
|
-
teleport:
|
|
1189
|
+
teleport: C.teleport,
|
|
1159
1190
|
"without-space": ""
|
|
1160
1191
|
}, {
|
|
1161
1192
|
default: b(() => [
|
|
1162
|
-
|
|
1193
|
+
S(Ht, {
|
|
1163
1194
|
ref_key: "menuItemListRef",
|
|
1164
1195
|
ref: a,
|
|
1165
|
-
"close-menu-on-item-select":
|
|
1166
|
-
data:
|
|
1167
|
-
"focus-last-element":
|
|
1196
|
+
"close-menu-on-item-select": C.closeMenuOnItemSelect,
|
|
1197
|
+
data: C.data,
|
|
1198
|
+
"focus-last-element": l.value,
|
|
1199
|
+
"popover-width": C.menuWidth,
|
|
1168
1200
|
onClose: F,
|
|
1169
|
-
onMenuItemClick:
|
|
1170
|
-
}, null, 8, ["close-menu-on-item-select", "data", "focus-last-element"])
|
|
1201
|
+
onMenuItemClick: B
|
|
1202
|
+
}, null, 8, ["close-menu-on-item-select", "data", "focus-last-element", "popover-width"])
|
|
1171
1203
|
]),
|
|
1172
1204
|
_: 1
|
|
1173
|
-
}, 8, ["id", "open", "style", "target-element", "position", "fixed-positioning", "teleport"])) :
|
|
1205
|
+
}, 8, ["id", "open", "style", "target-element", "position", "fixed-positioning", "teleport"])) : O("", !0)
|
|
1174
1206
|
]),
|
|
1175
1207
|
_: 1
|
|
1176
|
-
}, 8, ["disabled"])) :
|
|
1208
|
+
}, 8, ["disabled"])) : O("", !0)
|
|
1177
1209
|
], 34));
|
|
1178
1210
|
}
|
|
1179
|
-
}),
|
|
1211
|
+
}), Xt = /* @__PURE__ */ M(zt, [["__scopeId", "data-v-eee5aa88"]]), Zt = /* @__PURE__ */ Symbol(
|
|
1180
1212
|
"button actions with menu container injection key"
|
|
1181
|
-
),
|
|
1182
|
-
const
|
|
1213
|
+
), Qt = 242, me = parseInt(Qe, 10), xt = (e, t, s) => {
|
|
1214
|
+
const o = v(0);
|
|
1183
1215
|
let d = null;
|
|
1184
|
-
const { buttonActionsWithMenu: m, menu:
|
|
1216
|
+
const { buttonActionsWithMenu: m, menu: u, stackButtons: c } = K(Zt, {
|
|
1185
1217
|
buttonActionsWithMenu: v(null),
|
|
1186
1218
|
menu: v(null),
|
|
1187
1219
|
stackButtons: v(!1)
|
|
1188
|
-
}),
|
|
1189
|
-
var
|
|
1190
|
-
const n = (
|
|
1191
|
-
($,
|
|
1220
|
+
}), f = _(() => m.value ?? e.value), a = _(() => u.value ? [...t.value, u.value.$el] : t.value), i = (l) => {
|
|
1221
|
+
var k;
|
|
1222
|
+
const n = (k = a.value) == null ? void 0 : k.reduce(
|
|
1223
|
+
($, A) => $ + A.clientWidth + me,
|
|
1192
1224
|
-me - 1
|
|
1193
|
-
), h =
|
|
1194
|
-
return
|
|
1225
|
+
), h = f.value.clientWidth;
|
|
1226
|
+
return l && (o.value = h >= Qt && !c.value ? n : 0), o.value > h;
|
|
1195
1227
|
};
|
|
1196
1228
|
return be(
|
|
1197
|
-
() =>
|
|
1229
|
+
() => s.value,
|
|
1198
1230
|
() => {
|
|
1199
1231
|
te(() => {
|
|
1200
|
-
|
|
1232
|
+
c.value = i(!0);
|
|
1201
1233
|
});
|
|
1202
1234
|
},
|
|
1203
1235
|
{ deep: !0 }
|
|
1204
1236
|
), ee(() => {
|
|
1205
|
-
d =
|
|
1206
|
-
|
|
1237
|
+
d = Ze(f.value, () => {
|
|
1238
|
+
c.value = i(o.value === 0);
|
|
1207
1239
|
});
|
|
1208
1240
|
}), pe(() => {
|
|
1209
1241
|
d == null || d.disconnect();
|
|
1210
|
-
}),
|
|
1211
|
-
},
|
|
1212
|
-
...
|
|
1242
|
+
}), c;
|
|
1243
|
+
}, en = {}, tn = /* @__PURE__ */ w({
|
|
1244
|
+
...en,
|
|
1213
1245
|
__name: "button-actions",
|
|
1214
1246
|
props: {
|
|
1215
1247
|
actions: {},
|
|
@@ -1217,32 +1249,32 @@ const Gt = /* @__PURE__ */ w(Kt, [["render", Vt], ["__scopeId", "data-v-968b28cb
|
|
|
1217
1249
|
layout: { default: "buttons-end" }
|
|
1218
1250
|
},
|
|
1219
1251
|
setup(e) {
|
|
1220
|
-
const t = e,
|
|
1221
|
-
const
|
|
1222
|
-
return i ===
|
|
1223
|
-
},
|
|
1252
|
+
const t = e, s = v(null), o = v(null), d = xt(s, o, he(t, "actions")), m = _(() => t.actions.slice().reverse()), u = (i) => {
|
|
1253
|
+
const l = t.actions.length - 1;
|
|
1254
|
+
return i === l ? "primary" : "secondary";
|
|
1255
|
+
}, c = _(() => ({
|
|
1224
1256
|
[`b-button-actions--${t.layout}`]: !0,
|
|
1225
1257
|
"b-button-actions--stacked-buttons": d.value
|
|
1226
|
-
})),
|
|
1258
|
+
})), f = (i) => (i == null ? void 0 : i.event) !== void 0 ? {
|
|
1227
1259
|
click: i.event
|
|
1228
1260
|
} : {}, a = (i) => i.iconOnly && (i.iconLeft || i.iconRight || i.icon);
|
|
1229
|
-
return (i,
|
|
1261
|
+
return (i, l) => (r(), I("div", {
|
|
1230
1262
|
ref_key: "buttonActions",
|
|
1231
|
-
ref:
|
|
1263
|
+
ref: s,
|
|
1232
1264
|
class: "b-button-actions"
|
|
1233
1265
|
}, [
|
|
1234
1266
|
V("div", {
|
|
1235
|
-
class: U(["b-button-actions__container-wrapper",
|
|
1267
|
+
class: U(["b-button-actions__container-wrapper", c.value]),
|
|
1236
1268
|
role: "group"
|
|
1237
1269
|
}, [
|
|
1238
|
-
(
|
|
1270
|
+
(r(!0), I(Z, null, x(m.value, (n, h) => (r(), I("div", {
|
|
1239
1271
|
key: h,
|
|
1240
1272
|
ref_for: !0,
|
|
1241
1273
|
ref_key: "buttons",
|
|
1242
|
-
ref:
|
|
1274
|
+
ref: o,
|
|
1243
1275
|
class: "b-button-actions__button-wrapper"
|
|
1244
1276
|
}, [
|
|
1245
|
-
n.data ? (
|
|
1277
|
+
n.data ? (r(), g(Xt, {
|
|
1246
1278
|
key: 0,
|
|
1247
1279
|
ref_for: !0,
|
|
1248
1280
|
ref: n.elementRef,
|
|
@@ -1255,11 +1287,11 @@ const Gt = /* @__PURE__ */ w(Kt, [["render", Vt], ["__scopeId", "data-v-968b28cb
|
|
|
1255
1287
|
"menu-width": n.menuWidth,
|
|
1256
1288
|
"revert-focus-to-button": n.revertFocusToButton,
|
|
1257
1289
|
teleport: n.teleport
|
|
1258
|
-
},
|
|
1290
|
+
}, j({ _: 2 }, [
|
|
1259
1291
|
n.icon || n.iconLeft ? {
|
|
1260
1292
|
name: "iconLeft",
|
|
1261
1293
|
fn: b(() => [
|
|
1262
|
-
(
|
|
1294
|
+
(r(), g(z(n.icon || n.iconLeft), {
|
|
1263
1295
|
"svg-title": n.title
|
|
1264
1296
|
}, null, 8, ["svg-title"]))
|
|
1265
1297
|
]),
|
|
@@ -1268,12 +1300,12 @@ const Gt = /* @__PURE__ */ w(Kt, [["render", Vt], ["__scopeId", "data-v-968b28cb
|
|
|
1268
1300
|
a(n) ? void 0 : {
|
|
1269
1301
|
name: "default",
|
|
1270
1302
|
fn: b(() => [
|
|
1271
|
-
|
|
1303
|
+
Y(G(n.title), 1)
|
|
1272
1304
|
]),
|
|
1273
1305
|
key: "1"
|
|
1274
1306
|
}
|
|
1275
|
-
]), 1032, ["data", "close-menu-on-item-select", "close-on-click-outside-options", "disable-arrow-down-opening-menu", "menu-position", "menu-fixed-positioning", "menu-width", "revert-focus-to-button", "teleport"])) : (
|
|
1276
|
-
n.state ? (
|
|
1307
|
+
]), 1032, ["data", "close-menu-on-item-select", "close-on-click-outside-options", "disable-arrow-down-opening-menu", "menu-position", "menu-fixed-positioning", "menu-width", "revert-focus-to-button", "teleport"])) : (r(), I(Z, { key: 1 }, [
|
|
1308
|
+
n.state ? (r(), g(nt, H({
|
|
1277
1309
|
key: 0,
|
|
1278
1310
|
ref_for: !0,
|
|
1279
1311
|
ref: n.elementRef,
|
|
@@ -1282,12 +1314,12 @@ const Gt = /* @__PURE__ */ w(Kt, [["render", Vt], ["__scopeId", "data-v-968b28cb
|
|
|
1282
1314
|
disabled: n.disabled,
|
|
1283
1315
|
inverse: i.inverse,
|
|
1284
1316
|
state: n.state,
|
|
1285
|
-
variant: n.variant ||
|
|
1286
|
-
}, ie(
|
|
1317
|
+
variant: n.variant || u(h)
|
|
1318
|
+
}, ie(f(n))), j({ _: 2 }, [
|
|
1287
1319
|
n.icon || n.iconLeft ? {
|
|
1288
1320
|
name: "iconLeft",
|
|
1289
1321
|
fn: b(() => [
|
|
1290
|
-
(
|
|
1322
|
+
(r(), g(z(n.icon || n.iconLeft), {
|
|
1291
1323
|
"svg-title": n.title
|
|
1292
1324
|
}, null, 8, ["svg-title"]))
|
|
1293
1325
|
]),
|
|
@@ -1296,11 +1328,11 @@ const Gt = /* @__PURE__ */ w(Kt, [["render", Vt], ["__scopeId", "data-v-968b28cb
|
|
|
1296
1328
|
a(n) ? void 0 : {
|
|
1297
1329
|
name: "default",
|
|
1298
1330
|
fn: b(() => [
|
|
1299
|
-
|
|
1331
|
+
Y(G(n.title), 1)
|
|
1300
1332
|
]),
|
|
1301
1333
|
key: "1"
|
|
1302
1334
|
}
|
|
1303
|
-
]), 1040, ["condensed", "critical", "disabled", "inverse", "state", "variant"])) : (
|
|
1335
|
+
]), 1040, ["condensed", "critical", "disabled", "inverse", "state", "variant"])) : (r(), g(E, H({
|
|
1304
1336
|
key: 1,
|
|
1305
1337
|
ref_for: !0,
|
|
1306
1338
|
ref: n.elementRef,
|
|
@@ -1309,12 +1341,12 @@ const Gt = /* @__PURE__ */ w(Kt, [["render", Vt], ["__scopeId", "data-v-968b28cb
|
|
|
1309
1341
|
disabled: n.disabled,
|
|
1310
1342
|
inverse: i.inverse,
|
|
1311
1343
|
link: n.link,
|
|
1312
|
-
variant: n.variant ||
|
|
1313
|
-
}, ie(
|
|
1344
|
+
variant: n.variant || u(h)
|
|
1345
|
+
}, ie(f(n))), j({ _: 2 }, [
|
|
1314
1346
|
n.icon || n.iconLeft ? {
|
|
1315
1347
|
name: "iconLeft",
|
|
1316
1348
|
fn: b(() => [
|
|
1317
|
-
(
|
|
1349
|
+
(r(), g(z(n.icon || n.iconLeft), {
|
|
1318
1350
|
"svg-title": n.title
|
|
1319
1351
|
}, null, 8, ["svg-title"]))
|
|
1320
1352
|
]),
|
|
@@ -1323,14 +1355,14 @@ const Gt = /* @__PURE__ */ w(Kt, [["render", Vt], ["__scopeId", "data-v-968b28cb
|
|
|
1323
1355
|
a(n) ? void 0 : {
|
|
1324
1356
|
name: "default",
|
|
1325
1357
|
fn: b(() => [
|
|
1326
|
-
|
|
1358
|
+
Y(G(n.title), 1)
|
|
1327
1359
|
]),
|
|
1328
1360
|
key: "1"
|
|
1329
1361
|
},
|
|
1330
1362
|
n.iconRight ? {
|
|
1331
1363
|
name: "iconRight",
|
|
1332
1364
|
fn: b(() => [
|
|
1333
|
-
(
|
|
1365
|
+
(r(), g(z(n.iconRight), {
|
|
1334
1366
|
"svg-title": n.title
|
|
1335
1367
|
}, null, 8, ["svg-title"]))
|
|
1336
1368
|
]),
|
|
@@ -1342,26 +1374,26 @@ const Gt = /* @__PURE__ */ w(Kt, [["render", Vt], ["__scopeId", "data-v-968b28cb
|
|
|
1342
1374
|
], 2)
|
|
1343
1375
|
], 512));
|
|
1344
1376
|
}
|
|
1345
|
-
}),
|
|
1377
|
+
}), nn = /* @__PURE__ */ M(tn, [["__scopeId", "data-v-1a12c479"]]);
|
|
1346
1378
|
export {
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1379
|
+
nn as B,
|
|
1380
|
+
Pt as D,
|
|
1381
|
+
ft as I,
|
|
1382
|
+
Jt as M,
|
|
1383
|
+
Nt as O,
|
|
1384
|
+
pt as P,
|
|
1385
|
+
Ot as S,
|
|
1386
|
+
nt as a,
|
|
1387
|
+
R as b,
|
|
1388
|
+
it as c,
|
|
1389
|
+
Et as d,
|
|
1390
|
+
Zt as e,
|
|
1391
|
+
Xt as f,
|
|
1360
1392
|
W as g,
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1393
|
+
It as h,
|
|
1394
|
+
$t as i,
|
|
1395
|
+
Bt as j,
|
|
1396
|
+
mt as k,
|
|
1397
|
+
ct as u
|
|
1366
1398
|
};
|
|
1367
|
-
//# sourceMappingURL=button-actions.
|
|
1399
|
+
//# sourceMappingURL=button-actions.Crj4QFAd.js.map
|