@adyen/bento-vue3 1.51.0 → 1.53.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@types/components.d.ts +2 -0
- package/dist/@types/index.d.ts +583 -79
- 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/base-modal.css +1 -1
- package/dist/assets/button-actions-with-menu.css +1 -1
- package/dist/assets/calendar.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/checkbox-input.css +1 -1
- package/dist/assets/checkbox.css +1 -1
- package/dist/assets/dashed-underline.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/form-layout-title.css +1 -1
- package/dist/assets/header-with-views.css +1 -0
- package/dist/assets/input-field-password.css +1 -1
- package/dist/assets/input-field-phone-number.css +1 -1
- package/dist/assets/input-field.css +1 -1
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/menu.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/popover.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/summary-grid-item-custom.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 +3 -3
- package/dist/chunks/{action-bar.BW9db7ja.js → action-bar.PIz6tShf.js} +5 -5
- package/dist/chunks/{action-bar.BW9db7ja.js.map → action-bar.PIz6tShf.js.map} +1 -1
- package/dist/chunks/{alert.eqWeCHyL.js → alert.DEf0borp.js} +23 -23
- package/dist/chunks/alert.DEf0borp.js.map +1 -0
- package/dist/chunks/{base-modal.BRYHc9Ez.js → base-modal.D4INiJGX.js} +4 -4
- package/dist/chunks/{base-modal.BRYHc9Ez.js.map → base-modal.D4INiJGX.js.map} +1 -1
- package/dist/chunks/bin.CA6UQCNZ.js +37 -0
- package/dist/chunks/bin.CA6UQCNZ.js.map +1 -0
- package/dist/chunks/button-actions-with-menu.DFD7gbdT.js +174 -0
- package/dist/chunks/button-actions-with-menu.DFD7gbdT.js.map +1 -0
- package/dist/chunks/{button-actions.BPnsl_QP.js → button-actions.BvGAE7sw.js} +3 -3
- package/dist/chunks/{button-actions.BPnsl_QP.js.map → button-actions.BvGAE7sw.js.map} +1 -1
- package/dist/chunks/calendar.DKHNrb9_.js +1252 -0
- package/dist/chunks/calendar.DKHNrb9_.js.map +1 -0
- package/dist/chunks/{card.BwC4MSjn.js → card.IrL_Fw-f.js} +2 -2
- package/dist/chunks/{card.BwC4MSjn.js.map → card.IrL_Fw-f.js.map} +1 -1
- package/dist/chunks/{checkbox-group.Bzd-qpJ-.js → checkbox-group.X2fi2jkS.js} +4 -4
- package/dist/chunks/{checkbox-group.Bzd-qpJ-.js.map → checkbox-group.X2fi2jkS.js.map} +1 -1
- package/dist/chunks/{checkbox-input.XtCjXis9.js → checkbox-input.CgbJsFXD.js} +61 -55
- package/dist/chunks/checkbox-input.CgbJsFXD.js.map +1 -0
- package/dist/chunks/{checkbox.DJRe4ync.js → checkbox.CXZQtFhM.js} +102 -87
- package/dist/chunks/checkbox.CXZQtFhM.js.map +1 -0
- package/dist/chunks/{checkmark-circle-fill.D9gNCN0T.js → checkmark-circle-fill.jicbqe7k.js} +11 -11
- package/dist/chunks/checkmark-circle-fill.jicbqe7k.js.map +1 -0
- package/dist/chunks/{click-outside.DSszkIvs.js → click-outside.C1Ud8AA2.js} +2 -2
- package/dist/chunks/{click-outside.DSszkIvs.js.map → click-outside.C1Ud8AA2.js.map} +1 -1
- package/dist/chunks/{code-snippet.0HhLVaJR.js → code-snippet.CcdsPxT7.js} +5 -5
- package/dist/chunks/{code-snippet.0HhLVaJR.js.map → code-snippet.CcdsPxT7.js.map} +1 -1
- package/dist/chunks/{controls-group.DnX2B502.js → controls-group.ClMNznTz.js} +2 -2
- package/dist/chunks/{controls-group.DnX2B502.js.map → controls-group.ClMNznTz.js.map} +1 -1
- package/dist/chunks/{copy.BzeHBtEF.js → copy.BYG9aoNO.js} +2 -2
- package/dist/chunks/{copy.BzeHBtEF.js.map → copy.BYG9aoNO.js.map} +1 -1
- package/dist/chunks/{cross-circle-fill.DLWo6wBR.js → cross-circle-fill.B7YpDLTK.js} +18 -18
- package/dist/chunks/cross-circle-fill.B7YpDLTK.js.map +1 -0
- package/dist/chunks/{dashboard-section.CySxZmlx.js → dashboard-section.Dz9GpOvy.js} +3 -3
- package/dist/chunks/{dashboard-section.CySxZmlx.js.map → dashboard-section.Dz9GpOvy.js.map} +1 -1
- package/dist/chunks/{dashed-underline.CCKLdMc7.js → dashed-underline.BuCIjMch.js} +11 -11
- package/dist/chunks/{dashed-underline.CCKLdMc7.js.map → dashed-underline.BuCIjMch.js.map} +1 -1
- package/dist/chunks/{data-grid-template.iM84gKjt.js → data-grid-template.B4jxtwoW.js} +2 -2
- package/dist/chunks/{data-grid-template.iM84gKjt.js.map → data-grid-template.B4jxtwoW.js.map} +1 -1
- package/dist/chunks/{data-grid.B2L_4qN7.js → data-grid.CLu8mvil.js} +45 -33
- package/dist/chunks/data-grid.CLu8mvil.js.map +1 -0
- package/dist/chunks/{date-picker.CMi0Kuy3.js → date-picker.CA2i6QxD.js} +123 -100
- package/dist/chunks/date-picker.CA2i6QxD.js.map +1 -0
- package/dist/chunks/date-range-picker.DVQ-j-JX.js +1107 -0
- package/dist/chunks/date-range-picker.DVQ-j-JX.js.map +1 -0
- package/dist/chunks/{date.Cvfyq77s.js → date.DoJuTLhO.js} +17 -17
- package/dist/chunks/{date.Cvfyq77s.js.map → date.DoJuTLhO.js.map} +1 -1
- package/dist/chunks/{directive.O3yEdalv.js → directive.Cbdox5VL.js} +2 -2
- package/dist/chunks/{directive.O3yEdalv.js.map → directive.Cbdox5VL.js.map} +1 -1
- package/dist/chunks/{dropdown-default-textbox.Filez078.js → dropdown-default-textbox.CwsgzDpx.js} +2 -2
- package/dist/chunks/{dropdown-default-textbox.Filez078.js.map → dropdown-default-textbox.CwsgzDpx.js.map} +1 -1
- package/dist/chunks/{dropdown-tag.B4-3z8xz.js → dropdown-tag.DFWV7Zj_.js} +4 -4
- package/dist/chunks/{dropdown-tag.B4-3z8xz.js.map → dropdown-tag.DFWV7Zj_.js.map} +1 -1
- package/dist/chunks/{dropdown.CRLx2Juh.js → dropdown.RVt9T6j5.js} +212 -201
- package/dist/chunks/dropdown.RVt9T6j5.js.map +1 -0
- package/dist/chunks/{error-message.68kVjf_N.js → error-message.BQ5MlnLg.js} +3 -3
- package/dist/chunks/{error-message.68kVjf_N.js.map → error-message.BQ5MlnLg.js.map} +1 -1
- package/dist/chunks/es6.BtaxuP0b.js.map +1 -1
- package/dist/chunks/{file-uploader.Cz89e0Ci.js → file-uploader.DJLGEmtF.js} +468 -479
- package/dist/chunks/file-uploader.DJLGEmtF.js.map +1 -0
- package/dist/chunks/filter-bar.GGHRoo6O.js +2760 -0
- package/dist/chunks/filter-bar.GGHRoo6O.js.map +1 -0
- package/dist/chunks/{focus-trap.DPJj05sV.js → focus-trap.D-HSKa_Q.js} +2 -2
- package/dist/chunks/{focus-trap.DPJj05sV.js.map → focus-trap.D-HSKa_Q.js.map} +1 -1
- package/dist/chunks/{footer-actions.DtbsjfSM.js → footer-actions.DK3pMfDY.js} +2 -2
- package/dist/chunks/{footer-actions.DtbsjfSM.js.map → footer-actions.DK3pMfDY.js.map} +1 -1
- package/dist/chunks/{form-layout-title.B7phPY2m.js → form-layout-title.BWCOZyay.js} +62 -60
- package/dist/chunks/form-layout-title.BWCOZyay.js.map +1 -0
- package/dist/chunks/header-with-views.BkcFu7QW.js +2354 -0
- package/dist/chunks/header-with-views.BkcFu7QW.js.map +1 -0
- package/dist/chunks/header.CyTcPWF4.js +234 -0
- package/dist/chunks/header.CyTcPWF4.js.map +1 -0
- package/dist/chunks/index.BDuTpjD8.js +40 -0
- package/dist/chunks/index.BDuTpjD8.js.map +1 -0
- package/dist/chunks/index.BxBB1rsx.js +15 -0
- package/dist/chunks/index.BxBB1rsx.js.map +1 -0
- package/dist/chunks/index.C5sL_d0I.js +386 -0
- package/dist/chunks/{index.BS3BeXQJ.js.map → index.C5sL_d0I.js.map} +1 -1
- package/dist/chunks/index.DD7TppDb.js +10 -0
- package/dist/chunks/index.DD7TppDb.js.map +1 -0
- package/dist/chunks/{info-icon-with-popover.pHwJeQxm.js → info-icon-with-popover.DgZh2mnN.js} +3 -3
- package/dist/chunks/{info-icon-with-popover.pHwJeQxm.js.map → info-icon-with-popover.DgZh2mnN.js.map} +1 -1
- package/dist/chunks/{info-icon.DUUa2W2z.js → info-icon.DxOAiUg4.js} +3 -3
- package/dist/chunks/{info-icon.DUUa2W2z.js.map → info-icon.DxOAiUg4.js.map} +1 -1
- package/dist/chunks/{info.CpPLBOVg.js → info.HK3R7Drc.js} +9 -9
- package/dist/chunks/info.HK3R7Drc.js.map +1 -0
- package/dist/chunks/{input-field-password.zIUeIG8i.js → input-field-password.BSJMbPHf.js} +134 -127
- package/dist/chunks/input-field-password.BSJMbPHf.js.map +1 -0
- package/dist/chunks/{input-field-phone-number.BGS23WKe.js → input-field-phone-number.BtRMkC84.js} +348 -345
- package/dist/chunks/{input-field-phone-number.BGS23WKe.js.map → input-field-phone-number.BtRMkC84.js.map} +1 -1
- package/dist/chunks/input-field.CRlXtS3z.js +298 -0
- package/dist/chunks/input-field.CRlXtS3z.js.map +1 -0
- package/dist/chunks/{inspector.types.9S8hNOjR.js → inspector.types.s0va--Nn.js} +3 -3
- package/dist/chunks/{inspector.types.9S8hNOjR.js.map → inspector.types.s0va--Nn.js.map} +1 -1
- package/dist/chunks/{layout-row.BAz7JrXo.js → layout-row.CwwbWO7s.js} +2 -2
- package/dist/chunks/{layout-row.BAz7JrXo.js.map → layout-row.CwwbWO7s.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.D557okR8.js → listbox-option-tag.2k0hRv0z.js} +2 -2
- package/dist/chunks/{listbox-option-tag.D557okR8.js.map → listbox-option-tag.2k0hRv0z.js.map} +1 -1
- package/dist/chunks/{menu.ZE0cTcKL.js → menu.DBRBVdsd.js} +119 -118
- package/dist/chunks/menu.DBRBVdsd.js.map +1 -0
- package/dist/chunks/{modal-fullscreen.CjZh3U8e.js → modal-fullscreen.POY-6qYC.js} +3 -3
- package/dist/chunks/{modal-fullscreen.CjZh3U8e.js.map → modal-fullscreen.POY-6qYC.js.map} +1 -1
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.C4Z_Q8bq.js → modal.vue_vue_type_script_setup_true_lang.CGV0E6eK.js} +4 -4
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.C4Z_Q8bq.js.map → modal.vue_vue_type_script_setup_true_lang.CGV0E6eK.js.map} +1 -1
- package/dist/chunks/{on-click-outside.MUWbmGDn.js → on-click-outside.D9aY9g8G.js} +3 -2
- package/dist/chunks/{on-click-outside.MUWbmGDn.js.map → on-click-outside.D9aY9g8G.js.map} +1 -1
- package/dist/chunks/{pagination.BSp5RwM0.js → pagination.TWtayPVy.js} +2 -2
- package/dist/chunks/{pagination.BSp5RwM0.js.map → pagination.TWtayPVy.js.map} +1 -1
- package/dist/chunks/{payment-method.BACjrzKP.js → payment-method.CLUppDo_.js} +7 -7
- package/dist/chunks/payment-method.CLUppDo_.js.map +1 -0
- package/dist/chunks/{popover.DLyVEjCd.js → popover.BBnUL5Y_.js} +3 -3
- package/dist/chunks/{popover.DLyVEjCd.js.map → popover.BBnUL5Y_.js.map} +1 -1
- package/dist/chunks/{popper-container.Bx3CBGg6.js → popper-container.Be3h7X17.js} +2 -2
- package/dist/chunks/{popper-container.Bx3CBGg6.js.map → popper-container.Be3h7X17.js.map} +1 -1
- package/dist/chunks/{promo-banner.Clae7YGL.js → promo-banner.BdaUFMsl.js} +2 -2
- package/dist/chunks/{promo-banner.Clae7YGL.js.map → promo-banner.BdaUFMsl.js.map} +1 -1
- package/dist/chunks/{radio-group.Bdy7_UIu.js → radio-group.BUazlUAi.js} +4 -4
- package/dist/chunks/{radio-group.Bdy7_UIu.js.map → radio-group.BUazlUAi.js.map} +1 -1
- package/dist/chunks/{search-bar.uUWWZpqL.js → search-bar.21CWuOHb.js} +5 -5
- package/dist/chunks/{search-bar.uUWWZpqL.js.map → search-bar.21CWuOHb.js.map} +1 -1
- package/dist/chunks/{search.BwQq1yRg.js → search.CW_aTqip.js} +13 -13
- package/dist/chunks/search.CW_aTqip.js.map +1 -0
- package/dist/chunks/{secondary-nav.DJudnYiY.js → secondary-nav.CUQi4Ybt.js} +3 -3
- package/dist/chunks/{secondary-nav.DJudnYiY.js.map → secondary-nav.CUQi4Ybt.js.map} +1 -1
- package/dist/chunks/{segmented-control.BqJXrEmp.js → segmented-control.BZJ9DzRF.js} +2 -2
- package/dist/chunks/{segmented-control.BqJXrEmp.js.map → segmented-control.BZJ9DzRF.js.map} +1 -1
- package/dist/chunks/{selection-card-group.COMI4GGI.js → selection-card-group.Bdrx1b6M.js} +12 -12
- package/dist/chunks/{selection-card-group.COMI4GGI.js.map → selection-card-group.Bdrx1b6M.js.map} +1 -1
- package/dist/chunks/{sidepanel.VwZpyqJr.js → sidepanel.D_bGUcyi.js} +4 -4
- package/dist/chunks/{sidepanel.VwZpyqJr.js.map → sidepanel.D_bGUcyi.js.map} +1 -1
- package/dist/chunks/{structured-list-item.BZJQzyt_.js → structured-list-item.r1jYiX6Y.js} +5 -5
- package/dist/chunks/{structured-list-item.BZJQzyt_.js.map → structured-list-item.r1jYiX6Y.js.map} +1 -1
- package/dist/chunks/{summary-grid-item-custom.rBC-2kKM.js → summary-grid-item-custom.ACP0RH0N.js} +299 -198
- package/dist/chunks/summary-grid-item-custom.ACP0RH0N.js.map +1 -0
- package/dist/chunks/{tag.CXADLCgG.js → tag.DVkBzXMx.js} +2 -2
- package/dist/chunks/{tag.CXADLCgG.js.map → tag.DVkBzXMx.js.map} +1 -1
- package/dist/chunks/{teleport.B1NhF5-O.js → teleport.DfTpEQBR.js} +2 -2
- package/dist/chunks/{teleport.B1NhF5-O.js.map → teleport.DfTpEQBR.js.map} +1 -1
- package/dist/chunks/{textarea.4s69xpG3.js → textarea.C8R71Q4l.js} +2 -2
- package/dist/chunks/{textarea.4s69xpG3.js.map → textarea.C8R71Q4l.js.map} +1 -1
- package/dist/chunks/{timeline-item.DOoLkIox.js → timeline-item.DBeAlt3N.js} +12 -11
- package/dist/chunks/{timeline-item.DOoLkIox.js.map → timeline-item.DBeAlt3N.js.map} +1 -1
- package/dist/chunks/{tooltip.BtfIbhGU.js → tooltip.Cbs_YIap.js} +2 -2
- package/dist/chunks/{tooltip.BtfIbhGU.js.map → tooltip.Cbs_YIap.js.map} +1 -1
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.DRlP0P1P.js → tutorial.vue_vue_type_script_setup_true_lang.4smMvopK.js} +7 -7
- package/dist/chunks/tutorial.vue_vue_type_script_setup_true_lang.4smMvopK.js.map +1 -0
- package/dist/chunks/{use-cached-selected-values.9xqNZAmj.js → use-cached-selected-values.Chb18cq_.js} +146 -137
- package/dist/chunks/{use-cached-selected-values.9xqNZAmj.js.map → use-cached-selected-values.Chb18cq_.js.map} +1 -1
- package/dist/click-outside.js +1 -1
- package/dist/code-snippet.js +1 -1
- package/dist/dashboard-template.js +1 -1
- package/dist/dashed-underline.js +2 -2
- 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.js +1 -1
- package/dist/dropdown.js +4 -4
- package/dist/file-uploader.js +1 -1
- package/dist/filter-bar.js +1 -1
- package/dist/focus-trap.js +1 -1
- package/dist/form-layout.js +1 -1
- package/dist/header-with-views.js +5 -0
- package/dist/header-with-views.js.map +1 -0
- package/dist/header.js +1 -1
- package/dist/index.js +201 -199
- package/dist/index.js.map +1 -1
- package/dist/info-icon.js +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 +35 -33
- package/dist/layout.js +1 -1
- 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/payment-method.js +1 -1
- package/dist/popover.js +1 -1
- package/dist/popper-container.js +1 -1
- package/dist/promo-banner.js +1 -1
- package/dist/radio-group.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/structured-list.js +1 -1
- package/dist/styles/bento-dark.css +73 -1
- package/dist/styles/bento-light.css +73 -1
- package/dist/styles/bento.css +73 -1
- package/dist/styles/legacy.css +75 -3
- package/dist/styles/styleguide.css +73 -1
- package/dist/summary-grid.js +1 -1
- package/dist/tag.js +1 -1
- package/dist/textarea.js +1 -1
- package/dist/timeline.js +1 -1
- package/dist/tutorial.js +1 -1
- package/dist/use-form-v4.js +8300 -0
- package/dist/use-form-v4.js.map +1 -0
- package/dist/web-types.json +1 -1
- package/package.json +8 -7
- package/dist/chunks/alert.eqWeCHyL.js.map +0 -1
- package/dist/chunks/button-actions-with-menu.Hl8tUKa4.js +0 -119
- package/dist/chunks/button-actions-with-menu.Hl8tUKa4.js.map +0 -1
- package/dist/chunks/calendar.DfN1__E_.js +0 -971
- package/dist/chunks/calendar.DfN1__E_.js.map +0 -1
- package/dist/chunks/checkbox-input.XtCjXis9.js.map +0 -1
- package/dist/chunks/checkbox.DJRe4ync.js.map +0 -1
- package/dist/chunks/checkmark-circle-fill.D9gNCN0T.js.map +0 -1
- package/dist/chunks/cross-circle-fill.DLWo6wBR.js.map +0 -1
- package/dist/chunks/data-grid.B2L_4qN7.js.map +0 -1
- package/dist/chunks/date-picker.CMi0Kuy3.js.map +0 -1
- package/dist/chunks/date-range-picker.-KwSzmW_.js +0 -1087
- package/dist/chunks/date-range-picker.-KwSzmW_.js.map +0 -1
- package/dist/chunks/dropdown.CRLx2Juh.js.map +0 -1
- package/dist/chunks/file-uploader.Cz89e0Ci.js.map +0 -1
- package/dist/chunks/filter-bar.bfUnCTPj.js +0 -2807
- package/dist/chunks/filter-bar.bfUnCTPj.js.map +0 -1
- package/dist/chunks/form-layout-title.B7phPY2m.js.map +0 -1
- package/dist/chunks/header.ITEMuMAU.js +0 -256
- package/dist/chunks/header.ITEMuMAU.js.map +0 -1
- package/dist/chunks/index.BS3BeXQJ.js +0 -368
- package/dist/chunks/index.CrhTVr5J.js +0 -10
- package/dist/chunks/index.CrhTVr5J.js.map +0 -1
- package/dist/chunks/index.DDnf1O9p.js +0 -22
- package/dist/chunks/index.DDnf1O9p.js.map +0 -1
- package/dist/chunks/index.DPafeRJa.js +0 -10
- package/dist/chunks/index.DPafeRJa.js.map +0 -1
- package/dist/chunks/info.CpPLBOVg.js.map +0 -1
- package/dist/chunks/input-field-password.zIUeIG8i.js.map +0 -1
- package/dist/chunks/input-field.y006Hyc1.js +0 -292
- package/dist/chunks/input-field.y006Hyc1.js.map +0 -1
- package/dist/chunks/menu.ZE0cTcKL.js.map +0 -1
- package/dist/chunks/payment-method.BACjrzKP.js.map +0 -1
- package/dist/chunks/search.BwQq1yRg.js.map +0 -1
- package/dist/chunks/summary-grid-item-custom.rBC-2kKM.js.map +0 -1
- package/dist/chunks/tutorial.vue_vue_type_script_setup_true_lang.DRlP0P1P.js.map +0 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { r as f, t as r } from "./get-date-locale.BN8xEjY0.js";
|
|
2
|
+
function n(t, a) {
|
|
3
|
+
f(2, arguments);
|
|
4
|
+
var i = r(t), s = r(a), e = i.getTime() - s.getTime();
|
|
5
|
+
return e < 0 ? -1 : e > 0 ? 1 : e;
|
|
6
|
+
}
|
|
7
|
+
export {
|
|
8
|
+
n as c
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=index.DD7TppDb.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.DD7TppDb.js","sources":["../../../../node_modules/.pnpm/date-fns@2.28.0/node_modules/date-fns/esm/compareAsc/index.js"],"sourcesContent":["import toDate from \"../toDate/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name compareAsc\n * @category Common Helpers\n * @summary Compare the two dates and return -1, 0 or 1.\n *\n * @description\n * Compare the two dates and return 1 if the first date is after the second,\n * -1 if the first date is before the second or 0 if dates are equal.\n *\n * ### v2.0.0 breaking changes:\n *\n * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).\n *\n * @param {Date|Number} dateLeft - the first date to compare\n * @param {Date|Number} dateRight - the second date to compare\n * @returns {Number} the result of the comparison\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // Compare 11 February 1987 and 10 July 1989:\n * const result = compareAsc(new Date(1987, 1, 11), new Date(1989, 6, 10))\n * //=> -1\n *\n * @example\n * // Sort the array of dates:\n * const result = [\n * new Date(1995, 6, 2),\n * new Date(1987, 1, 11),\n * new Date(1989, 6, 10)\n * ].sort(compareAsc)\n * //=> [\n * // Wed Feb 11 1987 00:00:00,\n * // Mon Jul 10 1989 00:00:00,\n * // Sun Jul 02 1995 00:00:00\n * // ]\n */\n\nexport default function compareAsc(dirtyDateLeft, dirtyDateRight) {\n requiredArgs(2, arguments);\n var dateLeft = toDate(dirtyDateLeft);\n var dateRight = toDate(dirtyDateRight);\n var diff = dateLeft.getTime() - dateRight.getTime();\n\n if (diff < 0) {\n return -1;\n } else if (diff > 0) {\n return 1; // Return 0 if diff is 0; return NaN if diff is NaN\n } else {\n return diff;\n }\n}"],"names":["compareAsc","dirtyDateLeft","dirtyDateRight","requiredArgs","dateLeft","toDate","dateRight","diff"],"mappings":";AAuCe,SAASA,EAAWC,GAAeC,GAAgB;AAChE,EAAAC,EAAa,GAAG,SAAS;AACzB,MAAIC,IAAWC,EAAOJ,CAAa,GAC/BK,IAAYD,EAAOH,CAAc,GACjCK,IAAOH,EAAS,QAAO,IAAKE,EAAU,QAAS;AAEnD,SAAIC,IAAO,IACF,KACEA,IAAO,IACT,IAEAA;AAEX;","x_google_ignoreList":[0]}
|
package/dist/chunks/{info-icon-with-popover.pHwJeQxm.js → info-icon-with-popover.DgZh2mnN.js}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as P, ref as n, createElementBlock as u, openBlock as c, createVNode as m, createBlock as b, createCommentVNode as d, unref as e, withCtx as v, renderSlot as h, toDisplayString as x } from "vue";
|
|
2
|
-
import { B as r } from "./popover.
|
|
2
|
+
import { B as r } from "./popover.BBnUL5Y_.js";
|
|
3
3
|
import { B as T } from "./typography.DN5eC5ch.js";
|
|
4
4
|
import { u as B } from "./i18n.D9azDLPe.js";
|
|
5
5
|
import { g as E } from "./generate-uid.NJ8tVoha.js";
|
|
6
|
-
import { I as S } from "./info.
|
|
6
|
+
import { I as S } from "./info.HK3R7Drc.js";
|
|
7
7
|
import { _ as k } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
8
8
|
import "../assets/info-icon-with-popover.css";
|
|
9
9
|
const _ = {
|
|
@@ -94,4 +94,4 @@ const _ = {
|
|
|
94
94
|
export {
|
|
95
95
|
Y as I
|
|
96
96
|
};
|
|
97
|
-
//# sourceMappingURL=info-icon-with-popover.
|
|
97
|
+
//# sourceMappingURL=info-icon-with-popover.DgZh2mnN.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"info-icon-with-popover.
|
|
1
|
+
{"version":3,"file":"info-icon-with-popover.DgZh2mnN.js","sources":["../../../vue2/src/components/internal/info-icon-with-popover/info-icon-with-popover.vue"],"sourcesContent":["<template>\n <div\n ref=\"infoIconRef\"\n class=\"b-info-icon-with-popover\"\n tabindex=\"0\"\n data-testid=\"info-icon-with-popover\"\n @mouseenter=\"openPopover\"\n @mouseleave=\"closePopover\"\n @focus=\"infoIconOnFocus\"\n @focusout=\"infoIconOnFocusOut\"\n >\n <info-icon\n ref=\"targetElement\"\n class=\"b-info-icon-with-popover__svg\"\n :aria-expanded=\"isOpen\"\n :aria-describedby=\"popoverId\"\n :svg-title=\"t('moreInformation')\"\n />\n <bento-popover\n v-if=\"targetElement\"\n :open=\"isOpen\"\n :target-element=\"targetElement\"\n :position=\"popoverPosition\"\n role=\"tooltip\"\n fit-content\n disable-focus-trap\n >\n <bento-typography>\n <slot>\n <div v-if=\"popoverText\">\n {{ popoverText }}\n </div>\n </slot>\n </bento-typography>\n </bento-popover>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { ref } from 'vue';\n import { BentoPopover } from '@/components/popover';\n import { BentoTypography } from '@/components/typography';\n import { useI18n } from '@/utils/ts/i18n';\n import { generateUid } from '@/core/utils/ts';\n import InfoIcon from '@adyen/ui-assets-icons-16/vue/info';\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const CLOSING_POPOVER_DELAY_MS = 200;\n\n defineProps({\n /**\n * Text showed in the popover on hover\n */\n popoverText: { type: String, default: null },\n\n /**\n * Position the popover should take if space is available\n */\n popoverPosition: {\n type: BentoPopover.props.position.type,\n default: BentoPopover.props.position.default,\n validator: BentoPopover.props.position.validator,\n },\n });\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n\n const infoIconRef = ref<HTMLDivElement>();\n const targetElement = ref(null);\n const popoverId = generateUid('bento-info-icon-with-popover');\n const isOpen = ref();\n const closingTimeOutId = ref();\n\n const openPopover = () => {\n isOpen.value = true;\n if (closingTimeOutId.value) {\n clearTimeout(closingTimeOutId.value);\n }\n };\n const closePopover = () => {\n // We want to delay closing for a couple of seconds so\n // it doesn't flicker if a user hovers over the icon and then inside the popover.\n const timeOutId = setTimeout(() => {\n isOpen.value = false;\n }, CLOSING_POPOVER_DELAY_MS);\n closingTimeOutId.value = timeOutId;\n };\n\n const infoIconOnFocus = () => {\n openPopover();\n };\n\n /**\n * Only close popover on blur if the newly focus element is not a child of this element\n * @param e - the event that contains the newly focused element\n */\n const infoIconOnFocusOut = (e: FocusEvent) => {\n if (\n !infoIconRef.value ||\n !(e?.relatedTarget instanceof Element) ||\n !infoIconRef.value.contains(e.relatedTarget)\n ) {\n closePopover();\n }\n };\n</script>\n\n<script lang=\"ts\">\n /**\n * Internal component to be used whenever an info icon needs to be rendered with a popover instead of a tooltip.\n *\n * @example\n * import { BentoInfoIconWithPopover } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoInfoIconWithPopover },\n * template: `\n * <info-icon-with-popover popover-text=\"Content can be passed as a string like\" :popover-position=\"position\">\n * Content can also be rendered as a slot\n * </info-icon-with-popover>\n * `\n * }\n */\n export default {\n i18n: { messages },\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./info-icon-with-popover.scss\" />\n"],"names":["__default__","messages","t","useI18n","infoIconRef","ref","targetElement","popoverId","generateUid","isOpen","closingTimeOutId","openPopover","closePopover","timeOutId","infoIconOnFocus","infoIconOnFocusOut","e"],"mappings":";;;;;;;;;;;;;;;;;;mBA6HIA,IAAA;AAAA,EAAe,MAAA,EAAA,UAAAC,EAAA;AAEf;;;;;;;;;;;;;;;;;;AA5DA,UAAA,EAAA,GAAAC,EAAA,IAAAC,EAAA,EAAA,UAAAF,EAAA,CAAA,GAEAG,IAAAC,EAAA,GACAC,IAAAD,EAAA,IAAA,GACAE,IAAAC,EAAA,8BAAA,GACAC,IAAAJ,EAAA,GACAK,IAAAL,EAAA,GAEAM,IAAA,MAAA;AACI,MAAAF,EAAA,QAAA,IACAC,EAAA,SACI,aAAAA,EAAA,KAAA;AAAA,IACJ,GAEJE,IAAA,MAAA;AAGI,YAAAC,IAAA,WAAA,MAAA;AACI,QAAAJ,EAAA,QAAA;AAAA,MAAe,GAAA,GAAA;AAEnB,MAAAC,EAAA,QAAAG;AAAA,IAAyB,GAG7BC,IAAA,MAAA;AACI,MAAAH,EAAA;AAAA,IAAY,GAOhBI,IAAA,CAAAC,MAAA;AACI,OAAA,CAAAZ,EAAA,SAAA,GAAAY,KAAA,gBAAAA,EAAA,0BAAA,YAAA,CAAAZ,EAAA,MAAA,SAAAY,EAAA,aAAA,MAKIJ,EAAA;AAAA,IACJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as n, resolveComponent as r, resolveDirective as s, withDirectives as p, createElementBlock as c, openBlock as a, createVNode as l } from "vue";
|
|
2
2
|
import { c as t } from "./popper-container.types.BCZMbVFD.js";
|
|
3
3
|
import "./events.FNmSWp_P.js";
|
|
4
|
-
import { B as m } from "./tooltip.
|
|
5
|
-
import { I as f } from "./info.
|
|
4
|
+
import { B as m } from "./tooltip.Cbs_YIap.js";
|
|
5
|
+
import { I as f } from "./info.HK3R7Drc.js";
|
|
6
6
|
import { _ } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
7
7
|
import "../assets/info-icon.css";
|
|
8
8
|
const d = n({
|
|
@@ -42,4 +42,4 @@ const k = /* @__PURE__ */ _(d, [["render", u], ["__scopeId", "data-v-b474d243"]]
|
|
|
42
42
|
export {
|
|
43
43
|
k as B
|
|
44
44
|
};
|
|
45
|
-
//# sourceMappingURL=info-icon.
|
|
45
|
+
//# sourceMappingURL=info-icon.DxOAiUg4.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"info-icon.
|
|
1
|
+
{"version":3,"file":"info-icon.DxOAiUg4.js","sources":["../../../vue2/src/components/info-icon/info-icon.vue"],"sourcesContent":["<template>\n <span v-bento-tooltip-directive:[tooltipPosition]=\"tooltipText\" :aria-label=\"tooltipText\" class=\"b-info-icon\">\n <info-icon :svg-title=\"tooltipText\" class=\"b-info-icon__svg\" />\n </span>\n</template>\n\n<script lang=\"ts\">\n import { defineComponent, PropType } from 'vue';\n import { PopperContainerPosition } from '@/components/popper-container';\n import { BentoTooltipDirective } from '@/directives';\n import InfoIcon from '@adyen/ui-assets-icons-16/vue/info';\n\n /**\n * @example\n * import { BentoInfoIcon } from '@adyen/adl-vue-components';\n *\n * export default {\n * components: { BentoInfoIcon },\n * template: `\n * <bento-info-icon tooltip-text=\"Text on hover\" />\n * `\n * }\n */\n export default defineComponent({\n name: 'bento-info-icon',\n components: { InfoIcon },\n directives: { BentoTooltipDirective },\n props: {\n /**\n * Text showed in the info-icon tooltip on hover\n */\n tooltipText: { type: String, required: true },\n\n /**\n * Position the tooltip should take if space is available. Defaults to 'auto'\n */\n tooltipPosition: {\n type: String as PropType<PopperContainerPosition | `${PopperContainerPosition}`>,\n default: PopperContainerPosition.AUTO,\n validator: (value: PopperContainerPosition) => Object.values(PopperContainerPosition).includes(value),\n },\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"@/core/components/info-icon/info-icon.scss\" />\n"],"names":["_sfc_main","defineComponent","InfoIcon","BentoTooltipDirective","PopperContainerPosition","value","_ctx"],"mappings":";;;;;;;AAuBI,MAAAA,IAAAC,EAAA;AAAA,EAA+B,MAAA;AAAA,EACrB,YAAA,EAAA,UAAAC,EAAA;AAAA,EACiB,YAAA,EAAA,uBAAAC,EAAA;AAAA,EACa,OAAA;AAAA;AAAA;AAAA;AAAA,IAC7B,aAAA,EAAA,MAAA,QAAA,UAAA,GAAA;AAAA;AAAA;AAAA;AAAA,IAIyC,iBAAA;AAAA,MAK3B,MAAA;AAAA,MACP,SAAAC,EAAA;AAAA,MAC2B,WAAA,CAAAC,MAAA,OAAA,OAAAD,CAAA,EAAA,SAAAC,CAAA;AAAA,IACmE;AAAA,EACxG;AAER,CAAA;;;;IAzC6G,cAAAC,EAAA;AAAA,IACzG,OAAA;AAAA,EAAA,GAAA;AAAA;MAA4D,aAAAA,EAAA;AAAA,MAFpE,OAAA;AAAA,IAAA,GAAA,MAAA,GAAA,CAAA,WAAA,CAAA;AAAA;;;;;"}
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
/* empty css */
|
|
2
|
-
import { createElementBlock as
|
|
2
|
+
import { createElementBlock as s, openBlock as o, mergeProps as C, createCommentVNode as l, createElementVNode as t, toDisplayString as r } from "vue";
|
|
3
3
|
import { _ as a } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
4
4
|
let n = 0;
|
|
5
|
-
const
|
|
5
|
+
const u = {
|
|
6
6
|
beforeCreate() {
|
|
7
7
|
this.uuid = n.toString(), n += 1;
|
|
8
8
|
}
|
|
9
|
-
},
|
|
9
|
+
}, p = { key: 0 }, d = ["clip-path"], f = ["id"];
|
|
10
10
|
function h(e, i, c, m, g, _) {
|
|
11
|
-
return
|
|
11
|
+
return o(), s("svg", C({ role: "img" }, e.$attrs, {
|
|
12
12
|
class: "ui-assets-icons-16",
|
|
13
13
|
xmlns: "http://www.w3.org/2000/svg",
|
|
14
14
|
width: "16",
|
|
15
15
|
height: "16",
|
|
16
16
|
fill: "none"
|
|
17
17
|
}), [
|
|
18
|
-
e.$attrs["svg-title"] ? (
|
|
18
|
+
e.$attrs["svg-title"] ? (o(), s("title", p, r(e.$attrs["svg-title"]), 1)) : l("", !0),
|
|
19
19
|
t("g", {
|
|
20
20
|
fill: "#00112C",
|
|
21
|
-
"clip-path": "url(#uia-icons-16-info__a" + e.uuid + ")"
|
|
21
|
+
"clip-path": "url(#uia-ui-assets/icons-16-info__a" + e.uuid + ")"
|
|
22
22
|
}, i[0] || (i[0] = [
|
|
23
23
|
t("path", { d: "M8.58147 5.05557C8.69135 4.89112 8.75 4.69778 8.75 4.5C8.75 4.23478 8.64464 3.98043 8.45711 3.79289C8.26957 3.60536 8.01522 3.5 7.75 3.5C7.55222 3.5 7.35888 3.55865 7.19443 3.66853C7.02998 3.77841 6.90181 3.93459 6.82612 4.11732C6.75043 4.30004 6.73063 4.50111 6.76921 4.69509C6.8078 4.88907 6.90304 5.06725 7.04289 5.20711C7.18275 5.34696 7.36093 5.4422 7.55491 5.48079C7.74889 5.51937 7.94996 5.49957 8.13268 5.42388C8.31541 5.34819 8.47159 5.22002 8.58147 5.05557Z" }, null, -1),
|
|
24
24
|
t("path", { d: "M6.25 6.25H8.75V10.25H9.75V11.75H6.25V10.25H7.25V7.75H6.25V6.25Z" }, null, -1),
|
|
@@ -26,7 +26,7 @@ function h(e, i, c, m, g, _) {
|
|
|
26
26
|
]), 8, d),
|
|
27
27
|
t("defs", null, [
|
|
28
28
|
t("clipPath", {
|
|
29
|
-
id: "uia-icons-16-info__a" + e.uuid
|
|
29
|
+
id: "uia-ui-assets/icons-16-info__a" + e.uuid
|
|
30
30
|
}, i[1] || (i[1] = [
|
|
31
31
|
t("rect", {
|
|
32
32
|
width: "16",
|
|
@@ -37,8 +37,8 @@ function h(e, i, c, m, g, _) {
|
|
|
37
37
|
])
|
|
38
38
|
], 16);
|
|
39
39
|
}
|
|
40
|
-
const H = /* @__PURE__ */ a(
|
|
40
|
+
const H = /* @__PURE__ */ a(u, [["render", h]]);
|
|
41
41
|
export {
|
|
42
42
|
H as I
|
|
43
43
|
};
|
|
44
|
-
//# sourceMappingURL=info.
|
|
44
|
+
//# sourceMappingURL=info.HK3R7Drc.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"info.HK3R7Drc.js","sources":["../../../ui-assets/icons-16/dist/vue/info.vue"],"sourcesContent":["\n<template>\n <svg role=\"img\" v-bind=\"$attrs\" class=\"ui-assets-icons-16\" xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"none\"><title v-if=\"$attrs['svg-title']\">{{ $attrs['svg-title'] }}</title><g fill=\"#00112C\" :clip-path=\"'url(#uia-ui-assets/icons-16-info__a' + uuid + ')'\"><path d=\"M8.58147 5.05557C8.69135 4.89112 8.75 4.69778 8.75 4.5C8.75 4.23478 8.64464 3.98043 8.45711 3.79289C8.26957 3.60536 8.01522 3.5 7.75 3.5C7.55222 3.5 7.35888 3.55865 7.19443 3.66853C7.02998 3.77841 6.90181 3.93459 6.82612 4.11732C6.75043 4.30004 6.73063 4.50111 6.76921 4.69509C6.8078 4.88907 6.90304 5.06725 7.04289 5.20711C7.18275 5.34696 7.36093 5.4422 7.55491 5.48079C7.74889 5.51937 7.94996 5.49957 8.13268 5.42388C8.31541 5.34819 8.47159 5.22002 8.58147 5.05557Z\"/><path d=\"M6.25 6.25H8.75V10.25H9.75V11.75H6.25V10.25H7.25V7.75H6.25V6.25Z\"/><path d=\"M9.51195 0.398918C8.0086 0.0998821 6.45033 0.253358 5.0342 0.839937C3.61808 1.42652 2.40769 2.41985 1.55611 3.69433C0.704529 4.96881 0.25 6.4672 0.25 8C0.25 10.0554 1.06652 12.0267 2.51992 13.4801C3.97333 14.9335 5.94457 15.75 8 15.75C9.53281 15.75 11.0312 15.2955 12.3057 14.4439C13.5801 13.5923 14.5735 12.3819 15.1601 10.9658C15.7466 9.54967 15.9001 7.99141 15.6011 6.48805C15.3021 4.9847 14.5639 3.60378 13.4801 2.51993C12.3962 1.43607 11.0153 0.697953 9.51195 0.398918ZM5.60823 2.22576C6.75027 1.75271 8.00693 1.62894 9.21931 1.8701C10.4317 2.11125 11.5453 2.70651 12.4194 3.58059C13.2935 4.45466 13.8887 5.56831 14.1299 6.78069C14.3711 7.99307 14.2473 9.24974 13.7742 10.3918C13.3012 11.5338 12.5001 12.5099 11.4723 13.1967C10.4445 13.8834 9.23613 14.25 8 14.25C6.3424 14.25 4.75268 13.5915 3.58058 12.4194C2.40848 11.2473 1.75 9.65761 1.75 8C1.75 6.76387 2.11656 5.5555 2.80331 4.52769C3.49007 3.49988 4.46619 2.6988 5.60823 2.22576Z\"/></g><defs><clipPath :id=\"'uia-ui-assets/icons-16-info__a' + uuid\"><rect width=\"16\" height=\"16\" fill=\"#fff\"/></clipPath></defs></svg>\n</template>\n<script>\n import '../css/main.css';\n\n let uuid = 0;\n\n export default {\n beforeCreate() {\n this.uuid = uuid.toString();\n uuid += 1;\n },\n };\n</script>\n"],"names":["uuid","_sfc_main","_hoisted_2","_hoisted_3","_openBlock","_createElementBlock","_mergeProps","_ctx","_hoisted_1","_createCommentVNode","_createElementVNode"],"mappings":";;;AAOI,IAAIA,IAAO;AAEX,MAAKC,IAAU;AAAA,EACX,eAAe;AACX,SAAK,OAAOD,EAAK,SAAU,GAC3BA,KAAQ;AAAA,EACX;AACJ,SAdL,KAAA,EAAA,GAAAE,IAAA,CAAA,WAAA,GAAAC,IAAA,CAAA,IAAA;;AAEI,SAAAC,EAAA,GAAAC,EAA63D,OAA73DC,EAA63D,EAAx3D,MAAK,MAAK,GAASC,EAAM,QAAA;AAAA,IAAE,OAAM;AAAA,IAAqB,OAAM;AAAA,IAA6B,OAAM;AAAA,IAAK,QAAO;AAAA,IAAK,MAAK;AAAA;IAAoBA,EAAM,OAAA,WAAA,UAAnBF,EAAmE,SAFxMG,KAE0KD,EAAM,OAAA,WAAA,CAAA,GAAA,CAAA,KAFhLE,EAAA,IAAA,EAAA;AAAA,IAEwMC,EAAyjD,KAAA;AAAA,MAAtjD,MAAK;AAAA,MAAW,qDAAmDH,EAAI,OAAA;AAAA;MAAQG,EAA+d,QAAA,EAAzd,GAAE,sdAAqd,GAAA,MAAA,EAAA;AAAA,MAAEA,EAA4E,QAAA,EAAtE,GAAE,mEAAkE,GAAA,MAAA,EAAA;AAAA,MAAEA,EAAw7B,QAAA,EAAl7B,GAAE,+6BAA86B,GAAA,MAAA,EAAA;AAAA,IAF3vD,IAAA,GAAAR,CAAA;AAAA,IAEiwDQ,EAA0H,QAAA,MAAA;AAAA,MAApHA,EAA6G,YAAA;AAAA,QAAlG,uCAAuCH,EAAI;AAAA;QAAEG,EAA0C,QAAA;AAAA,UAApC,OAAM;AAAA,UAAK,QAAO;AAAA,UAAK,MAAK;AAAA;MAFj2D,IAAA,GAAAP,CAAA;AAAA;;;;"}
|
|
@@ -1,36 +1,37 @@
|
|
|
1
|
-
import { defineComponent as ie, useAttrs as le, ref as
|
|
2
|
-
import { B as
|
|
3
|
-
import { _ as
|
|
4
|
-
import { B as
|
|
5
|
-
import { B as
|
|
6
|
-
import { B as
|
|
7
|
-
import { C as
|
|
8
|
-
import { D as
|
|
9
|
-
import { S as
|
|
10
|
-
import { d as
|
|
11
|
-
import { u as
|
|
1
|
+
import { defineComponent as ie, useAttrs as le, ref as s, provide as oe, computed as d, watch as Z, createElementBlock as C, openBlock as o, createVNode as T, createBlock as u, createCommentVNode as p, unref as a, mergeProps as se, createSlots as ne, withCtx as c, createTextVNode as L, toDisplayString as h, createElementVNode as E, normalizeClass as W, Fragment as re, renderList as de } from "vue";
|
|
2
|
+
import { B as ue } from "./button.6HMG0xEY.js";
|
|
3
|
+
import { _ as ce } from "./image.vue_vue_type_script_setup_true_lang.DQT2oNEF.js";
|
|
4
|
+
import { B as pe } from "./input-field.CRlXtS3z.js";
|
|
5
|
+
import { B as ve } from "./popover.BBnUL5Y_.js";
|
|
6
|
+
import { B as A } from "./typography.DN5eC5ch.js";
|
|
7
|
+
import { C as fe } from "./checkmark-circle-fill.jicbqe7k.js";
|
|
8
|
+
import { D as me } from "./dot.BW-xtyjC.js";
|
|
9
|
+
import { S as ge, H as he } from "./show.ByWWaogc.js";
|
|
10
|
+
import { d as _e, w as we } from "./index.C5sL_d0I.js";
|
|
11
|
+
import { u as be } from "./i18n.D9azDLPe.js";
|
|
12
12
|
import { g as z } from "./generate-uid.NJ8tVoha.js";
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
13
|
+
import { b as ke } from "./dropdown.RVt9T6j5.js";
|
|
14
|
+
import { T as ye } from "./tooltip.Cbs_YIap.js";
|
|
15
|
+
import { _ as Ce } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
15
16
|
import "../assets/input-field-password.css";
|
|
16
17
|
var _ = /* @__PURE__ */ ((t) => (t.TEXT = "text", t.PASSWORD = "password", t))(_ || {});
|
|
17
|
-
const
|
|
18
|
+
const Te = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='capslock'%3e%3cg%20id='Union'%3e%3cpath%20d='M13.75%205.63952L8%201.03952L2.25%205.63952V7.74999H4.75V11.75H11.25V7.74999H13.75V5.63952ZM6.25%206.24999H3.88809L8%202.96046L12.1119%206.24999H9.75V10.25H6.25V6.24999Z'%20fill='%2300112C'/%3e%3cpath%20d='M11.25%2014.75V13.25H4.75V14.75H11.25Z'%20fill='%2300112C'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e";
|
|
18
19
|
function w(t) {
|
|
19
20
|
return (t == null ? void 0 : t.toString()) ?? "";
|
|
20
21
|
}
|
|
21
|
-
function
|
|
22
|
-
return w(t).length >=
|
|
22
|
+
function Le(t, R = 8) {
|
|
23
|
+
return w(t).length >= R;
|
|
23
24
|
}
|
|
24
|
-
function
|
|
25
|
+
function Ee(t) {
|
|
25
26
|
return /[a-z]/.test(w(t));
|
|
26
27
|
}
|
|
27
|
-
function
|
|
28
|
+
function Re(t) {
|
|
28
29
|
return /[A-Z]/.test(w(t));
|
|
29
30
|
}
|
|
30
|
-
function
|
|
31
|
+
function Ie(t) {
|
|
31
32
|
return /\d/.test(w(t));
|
|
32
33
|
}
|
|
33
|
-
function
|
|
34
|
+
function Pe(t) {
|
|
34
35
|
return /[^a-zA-Z0-9]/.test(w(t));
|
|
35
36
|
}
|
|
36
37
|
const X = {
|
|
@@ -73,18 +74,19 @@ const X = {
|
|
|
73
74
|
validationSuggestion: "Evite símbolos de moeda ou letras acentuadas.",
|
|
74
75
|
validationTitle: "A senha deve conter pelo menos:"
|
|
75
76
|
}
|
|
76
|
-
},
|
|
77
|
+
}, Ve = ["id"], Se = {
|
|
77
78
|
key: 1,
|
|
78
79
|
class: "b-input-field-password__validation-status--valid",
|
|
79
80
|
role: "alert"
|
|
80
|
-
},
|
|
81
|
+
}, Be = ["id"], Me = { class: "b-input-field-password__validation-list-icon" }, Ae = {
|
|
81
82
|
i18n: { messages: X },
|
|
82
83
|
name: "bento-input-field-password"
|
|
83
|
-
},
|
|
84
|
-
...
|
|
84
|
+
}, Ne = /* @__PURE__ */ ie({
|
|
85
|
+
...Ae,
|
|
85
86
|
props: {
|
|
86
87
|
condensed: { type: Boolean, default: !1 },
|
|
87
88
|
disabled: { type: Boolean, default: !1 },
|
|
89
|
+
disableValidation: { type: Boolean, default: !1 },
|
|
88
90
|
errorMessage: { default: null },
|
|
89
91
|
placeholder: { default: "" },
|
|
90
92
|
readonly: { type: Boolean, default: !1 },
|
|
@@ -94,133 +96,138 @@ const X = {
|
|
|
94
96
|
withHint: { type: Boolean, default: !0 }
|
|
95
97
|
},
|
|
96
98
|
emits: ["input:valid", "input"],
|
|
97
|
-
setup(t, { emit:
|
|
98
|
-
const { t: i } =
|
|
99
|
-
|
|
99
|
+
setup(t, { emit: R }) {
|
|
100
|
+
const { t: i } = be({ messages: X }), l = t, N = R, K = le(), b = s(_.PASSWORD), g = s(l.value), q = s(!1), O = s(!1), k = s([]), v = s(null), f = s(!1), U = s(null), I = s(null), P = s(null), V = s(!1);
|
|
101
|
+
oe(ke, "bento-input-field-password");
|
|
102
|
+
const { focused: J } = _e(U), D = z("validationListId"), H = z("validationPopoverId"), S = d(() => b.value === _.TEXT), j = d(() => {
|
|
103
|
+
const e = O.value && B.value, r = l.disableValidation && l.errorMessage;
|
|
104
|
+
return e || r ? l.errorMessage : "";
|
|
105
|
+
}), Y = d(
|
|
106
|
+
() => k.value.map(
|
|
100
107
|
(e) => e ? "b-input-field-password__validation-list--valid" : "b-input-field-password__validation-list--invalid"
|
|
101
108
|
)
|
|
102
|
-
),
|
|
103
|
-
() =>
|
|
104
|
-
),
|
|
109
|
+
), $ = d(
|
|
110
|
+
() => v.value ? "b-input-field-password__input-tooltip--timed" : ""
|
|
111
|
+
), G = d(() => ({
|
|
105
112
|
ariaHidden: !1,
|
|
106
|
-
condensed:
|
|
107
|
-
disabled:
|
|
108
|
-
errorMessage:
|
|
109
|
-
placeholder:
|
|
110
|
-
readonly:
|
|
111
|
-
type:
|
|
113
|
+
condensed: l.condensed,
|
|
114
|
+
disabled: l.disabled,
|
|
115
|
+
errorMessage: j.value,
|
|
116
|
+
placeholder: l.placeholder,
|
|
117
|
+
readonly: l.readonly,
|
|
118
|
+
type: b.value,
|
|
112
119
|
value: g.value,
|
|
113
|
-
"aria-haspopup":
|
|
114
|
-
"aria-describedby":
|
|
120
|
+
"aria-haspopup": M.value ? "dialog" : !1,
|
|
121
|
+
"aria-describedby": M.value ? H : "",
|
|
115
122
|
...K
|
|
116
|
-
})), n =
|
|
117
|
-
() =>
|
|
123
|
+
})), n = d(
|
|
124
|
+
() => l.validation === void 0 ? {
|
|
118
125
|
title: i("validationTitle"),
|
|
119
126
|
suggestion: i("validationSuggestion"),
|
|
120
127
|
list: [
|
|
121
|
-
{ label: i("validationMinLength"), validate:
|
|
122
|
-
{ label: i("validationRequireLowercase"), validate:
|
|
123
|
-
{ label: i("validationRequireUppercase"), validate:
|
|
124
|
-
{ label: i("validationRequireNumeric"), validate:
|
|
125
|
-
{ label: i("validationRequireSpecialCharacter"), validate:
|
|
128
|
+
{ label: i("validationMinLength"), validate: Le },
|
|
129
|
+
{ label: i("validationRequireLowercase"), validate: Ee },
|
|
130
|
+
{ label: i("validationRequireUppercase"), validate: Re },
|
|
131
|
+
{ label: i("validationRequireNumeric"), validate: Ie },
|
|
132
|
+
{ label: i("validationRequireSpecialCharacter"), validate: Pe }
|
|
126
133
|
]
|
|
127
|
-
} :
|
|
128
|
-
),
|
|
134
|
+
} : l.validation
|
|
135
|
+
), B = d(() => k.value.some((e) => !e)), M = d(
|
|
129
136
|
() => {
|
|
130
|
-
var e,
|
|
131
|
-
return
|
|
137
|
+
var e, r;
|
|
138
|
+
return I.value && ((r = (e = n.value) == null ? void 0 : e.list) == null ? void 0 : r.length) > 0;
|
|
132
139
|
}
|
|
133
140
|
), F = (e) => {
|
|
134
|
-
typeof e.getModifierState == "function" && (
|
|
135
|
-
},
|
|
136
|
-
|
|
141
|
+
typeof e.getModifierState == "function" && (V.value = e.getModifierState("CapsLock"));
|
|
142
|
+
}, Q = () => {
|
|
143
|
+
S.value ? b.value = _.PASSWORD : b.value = _.TEXT;
|
|
137
144
|
}, ee = (e) => {
|
|
138
|
-
|
|
145
|
+
l.disabled || (g.value = e, N("input", g.value));
|
|
139
146
|
}, x = (e) => {
|
|
140
|
-
var
|
|
141
|
-
|
|
147
|
+
var r, y;
|
|
148
|
+
k.value = ((y = (r = n.value) == null ? void 0 : r.list) == null ? void 0 : y.map(
|
|
142
149
|
(m) => m.validate(e, m.additionalArgs)
|
|
143
150
|
)) ?? [];
|
|
144
151
|
}, ae = () => {
|
|
145
|
-
|
|
152
|
+
f.value = !1, v.value = null;
|
|
146
153
|
}, te = () => {
|
|
147
|
-
|
|
154
|
+
f.value = !0;
|
|
148
155
|
};
|
|
149
|
-
return Z(
|
|
150
|
-
|
|
151
|
-
}), Z(
|
|
152
|
-
e ? (
|
|
153
|
-
|
|
154
|
-
}, 2e3)) : (clearTimeout(
|
|
155
|
-
}),
|
|
156
|
+
return Z(J, (e) => {
|
|
157
|
+
e || (O.value = !0), l.disableValidation || (l.withHint && (q.value = e), x(g.value));
|
|
158
|
+
}), Z(V, (e) => {
|
|
159
|
+
e ? (f.value = !0, v.value = setTimeout(() => {
|
|
160
|
+
v.value = null, f.value = !1;
|
|
161
|
+
}, 2e3)) : (clearTimeout(v.value), v.value = null, f.value = !1);
|
|
162
|
+
}), we(
|
|
156
163
|
g,
|
|
157
164
|
(e) => {
|
|
158
|
-
x(e),
|
|
165
|
+
x(e), B.value || N("input:valid");
|
|
159
166
|
},
|
|
160
167
|
// wait for 0.5s before checking validity OR 2s of continuous typing
|
|
161
168
|
{ debounce: 500, maxWait: 2e3 }
|
|
162
|
-
), (e,
|
|
169
|
+
), (e, r) => (o(), C("div", {
|
|
163
170
|
ref_key: "inputFieldPasswordRef",
|
|
164
|
-
ref:
|
|
171
|
+
ref: U
|
|
165
172
|
}, [
|
|
166
|
-
|
|
173
|
+
T(a(pe), se({
|
|
167
174
|
ref_key: "inputFieldPasswordInputRef",
|
|
168
|
-
ref:
|
|
169
|
-
},
|
|
175
|
+
ref: I
|
|
176
|
+
}, G.value, {
|
|
170
177
|
class: "b-input-field-password__input",
|
|
171
178
|
spellcheck: "false",
|
|
172
179
|
onInput: ee,
|
|
173
180
|
onKeydown: F,
|
|
174
181
|
onKeyup: F
|
|
175
|
-
}),
|
|
176
|
-
default:
|
|
177
|
-
|
|
182
|
+
}), ne({
|
|
183
|
+
default: c(() => [
|
|
184
|
+
L(h(e.label), 1)
|
|
178
185
|
]),
|
|
179
186
|
_: 2
|
|
180
187
|
}, [
|
|
181
|
-
|
|
188
|
+
V.value ? {
|
|
182
189
|
name: "iconBefore",
|
|
183
|
-
fn:
|
|
184
|
-
|
|
190
|
+
fn: c(() => [
|
|
191
|
+
E("div", {
|
|
185
192
|
class: "b-input-field-password__caps-lock-indicator",
|
|
186
193
|
onMouseenter: te,
|
|
187
194
|
onMouseleave: ae
|
|
188
195
|
}, [
|
|
189
|
-
|
|
196
|
+
T(a(ce), {
|
|
190
197
|
ref_key: "inputFieldPasswordCapsLockIconRef",
|
|
191
|
-
ref:
|
|
192
|
-
src: a(
|
|
198
|
+
ref: P,
|
|
199
|
+
src: a(Te),
|
|
193
200
|
alt: a(i)("capsLockEnabled")
|
|
194
201
|
}, null, 8, ["src", "alt"])
|
|
195
202
|
], 32),
|
|
196
|
-
|
|
203
|
+
P.value ? (o(), u(a(ye), {
|
|
197
204
|
key: 0,
|
|
198
|
-
class: W(
|
|
205
|
+
class: W($.value),
|
|
199
206
|
content: a(i)("capsLockEnabled"),
|
|
200
207
|
"disabled-focus-trap": !0,
|
|
201
208
|
"fallback-position": ["top", "bottom"],
|
|
202
|
-
"is-shown":
|
|
203
|
-
"target-element":
|
|
204
|
-
}, null, 8, ["class", "content", "is-shown", "target-element"])) :
|
|
209
|
+
"is-shown": f.value,
|
|
210
|
+
"target-element": P.value
|
|
211
|
+
}, null, 8, ["class", "content", "is-shown", "target-element"])) : p("", !0)
|
|
205
212
|
]),
|
|
206
213
|
key: "0"
|
|
207
214
|
} : void 0,
|
|
208
215
|
e.disabled ? void 0 : {
|
|
209
216
|
name: "iconAfter",
|
|
210
|
-
fn:
|
|
211
|
-
|
|
217
|
+
fn: c(() => [
|
|
218
|
+
T(a(ue), {
|
|
212
219
|
variant: "tertiary",
|
|
213
|
-
onClick:
|
|
220
|
+
onClick: Q
|
|
214
221
|
}, {
|
|
215
|
-
iconLeft:
|
|
216
|
-
|
|
222
|
+
iconLeft: c(() => [
|
|
223
|
+
S.value ? p("", !0) : (o(), u(a(ge), {
|
|
217
224
|
key: 0,
|
|
218
225
|
"svg-title": a(i)("showPassword")
|
|
219
226
|
}, null, 8, ["svg-title"])),
|
|
220
|
-
|
|
227
|
+
S.value ? (o(), u(a(he), {
|
|
221
228
|
key: 1,
|
|
222
229
|
"svg-title": a(i)("hidePassword")
|
|
223
|
-
}, null, 8, ["svg-title"])) :
|
|
230
|
+
}, null, 8, ["svg-title"])) : p("", !0)
|
|
224
231
|
]),
|
|
225
232
|
_: 1
|
|
226
233
|
})
|
|
@@ -228,79 +235,79 @@ const X = {
|
|
|
228
235
|
key: "1"
|
|
229
236
|
}
|
|
230
237
|
]), 1040),
|
|
231
|
-
|
|
238
|
+
M.value ? (o(), u(a(ve), {
|
|
232
239
|
key: 0,
|
|
233
|
-
open:
|
|
234
|
-
"target-element":
|
|
240
|
+
open: q.value,
|
|
241
|
+
"target-element": I.value,
|
|
235
242
|
"disable-focus-trap": !0,
|
|
236
243
|
"aria-label": n.value.title,
|
|
237
|
-
"aria-describedby": a(
|
|
244
|
+
"aria-describedby": a(D),
|
|
238
245
|
position: "right-start"
|
|
239
246
|
}, {
|
|
240
|
-
default:
|
|
241
|
-
|
|
242
|
-
n.value.title ? (
|
|
247
|
+
default: c(() => [
|
|
248
|
+
E("div", { id: a(H) }, [
|
|
249
|
+
n.value.title ? (o(), u(a(A), {
|
|
243
250
|
key: 0,
|
|
244
251
|
class: "b-input-field-password__validation-title"
|
|
245
252
|
}, {
|
|
246
|
-
default:
|
|
247
|
-
|
|
253
|
+
default: c(() => [
|
|
254
|
+
L(h(n.value.title), 1)
|
|
248
255
|
]),
|
|
249
256
|
_: 1
|
|
250
|
-
})) :
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
id: a(
|
|
257
|
+
})) : p("", !0),
|
|
258
|
+
B.value ? p("", !0) : (o(), C("p", Se, h(a(i)("validationValid")), 1)),
|
|
259
|
+
E("ul", {
|
|
260
|
+
id: a(D),
|
|
254
261
|
class: "b-input-field-password__validation-list"
|
|
255
262
|
}, [
|
|
256
|
-
(
|
|
263
|
+
(o(!0), C(re, null, de(n.value.list, (y, m) => (o(), C("li", {
|
|
257
264
|
key: m,
|
|
258
|
-
class: W(
|
|
265
|
+
class: W(Y.value[m]),
|
|
259
266
|
"aria-live": "polite",
|
|
260
267
|
"aria-atomic": "true"
|
|
261
268
|
}, [
|
|
262
|
-
|
|
263
|
-
|
|
269
|
+
E("span", Me, [
|
|
270
|
+
k.value[m] ? (o(), u(a(fe), {
|
|
264
271
|
key: 0,
|
|
265
272
|
"svg-title": a(i)("validationChecked")
|
|
266
|
-
}, null, 8, ["svg-title"])) : (
|
|
273
|
+
}, null, 8, ["svg-title"])) : (o(), u(a(me), {
|
|
267
274
|
key: 1,
|
|
268
275
|
"svg-title": a(i)("validationUnchecked")
|
|
269
276
|
}, null, 8, ["svg-title"]))
|
|
270
277
|
]),
|
|
271
|
-
|
|
278
|
+
T(a(A), {
|
|
272
279
|
class: "b-input-field-password__validation-list-text",
|
|
273
280
|
el: "span"
|
|
274
281
|
}, {
|
|
275
|
-
default:
|
|
276
|
-
|
|
282
|
+
default: c(() => [
|
|
283
|
+
L(h(y.label), 1)
|
|
277
284
|
]),
|
|
278
285
|
_: 2
|
|
279
286
|
}, 1024)
|
|
280
287
|
], 2))), 128))
|
|
281
|
-
], 8,
|
|
282
|
-
n.value.suggestion ? (
|
|
288
|
+
], 8, Be),
|
|
289
|
+
n.value.suggestion ? (o(), u(a(A), {
|
|
283
290
|
key: 2,
|
|
284
291
|
class: "b-input-field-password__validation-suggestion"
|
|
285
292
|
}, {
|
|
286
|
-
default:
|
|
287
|
-
|
|
293
|
+
default: c(() => [
|
|
294
|
+
L(h(n.value.suggestion), 1)
|
|
288
295
|
]),
|
|
289
296
|
_: 1
|
|
290
|
-
})) :
|
|
291
|
-
], 8,
|
|
297
|
+
})) : p("", !0)
|
|
298
|
+
], 8, Ve)
|
|
292
299
|
]),
|
|
293
300
|
_: 1
|
|
294
|
-
}, 8, ["open", "target-element", "aria-label", "aria-describedby"])) :
|
|
301
|
+
}, 8, ["open", "target-element", "aria-label", "aria-describedby"])) : p("", !0)
|
|
295
302
|
], 512));
|
|
296
303
|
}
|
|
297
|
-
}),
|
|
304
|
+
}), ea = /* @__PURE__ */ Ce(Ne, [["__scopeId", "data-v-1762c18c"]]);
|
|
298
305
|
export {
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
306
|
+
Re as a,
|
|
307
|
+
Ie as b,
|
|
308
|
+
Pe as c,
|
|
309
|
+
ea as i,
|
|
310
|
+
Le as m,
|
|
311
|
+
Ee as r
|
|
305
312
|
};
|
|
306
|
-
//# sourceMappingURL=input-field-password.
|
|
313
|
+
//# sourceMappingURL=input-field-password.BSJMbPHf.js.map
|