@adyen/bento-vue3 1.100.0 → 1.101.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 +177 -45
- package/dist/action-bar.js +1 -1
- package/dist/ai-tag.js +1 -1
- package/dist/anchor-scroller.js +1 -1
- package/dist/assets/accordion-item.css +1 -1
- package/dist/assets/action-bar.css +1 -1
- package/dist/assets/anchor-scroller.css +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/button-actions.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/data-grid.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/inspector.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/navigation-menu-group.css +1 -1
- package/dist/assets/secondary-nav.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/table-of-contents.css +1 -0
- package/dist/button.js +1 -1
- package/dist/card.js +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/chunks/{action-bar.C9A4LZXq.js → action-bar.DHaSV5dP.js} +35 -34
- package/dist/chunks/{action-bar.C9A4LZXq.js.map → action-bar.DHaSV5dP.js.map} +1 -1
- package/dist/chunks/{ai-tag.Brtsi-_Q.js → ai-tag.CoofbKuB.js} +12 -11
- package/dist/chunks/{ai-tag.Brtsi-_Q.js.map → ai-tag.CoofbKuB.js.map} +1 -1
- package/dist/chunks/anchor-scroller.COHPEqkO.js +154 -0
- package/dist/chunks/anchor-scroller.COHPEqkO.js.map +1 -0
- package/dist/chunks/{base-modal.DtAGV7IJ.js → base-modal.B7-w81OO.js} +5 -5
- package/dist/chunks/{base-modal.DtAGV7IJ.js.map → base-modal.B7-w81OO.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.CD1rzFcv.js → button-actions-with-menu.DC4bwXUs.js} +7 -7
- package/dist/chunks/{button-actions-with-menu.CD1rzFcv.js.map → button-actions-with-menu.DC4bwXUs.js.map} +1 -1
- package/dist/chunks/{button-actions.Cn0reO-q.js → button-actions.CHQMIjTF.js} +2 -2
- package/dist/chunks/{button-actions.Cn0reO-q.js.map → button-actions.CHQMIjTF.js.map} +1 -1
- package/dist/chunks/{calendar.xS1f71Tj.js → calendar.CjUeltTZ.js} +3 -3
- package/dist/chunks/{calendar.xS1f71Tj.js.map → calendar.CjUeltTZ.js.map} +1 -1
- package/dist/chunks/{card.7rxK1PUi.js → card.CkcQbaX9.js} +2 -2
- package/dist/chunks/{card.7rxK1PUi.js.map → card.CkcQbaX9.js.map} +1 -1
- package/dist/chunks/{checkbox-group.MwUU4K4P.js → checkbox-group.CnYG3h-d.js} +3 -3
- package/dist/chunks/{checkbox-group.MwUU4K4P.js.map → checkbox-group.CnYG3h-d.js.map} +1 -1
- package/dist/chunks/{checkbox.SA_J0v-N.js → checkbox.BxflLjQd.js} +18 -18
- package/dist/chunks/{checkbox.SA_J0v-N.js.map → checkbox.BxflLjQd.js.map} +1 -1
- package/dist/chunks/{code-snippet.BNsYld-H.js → code-snippet.DhAzYKjR.js} +4 -4
- package/dist/chunks/{code-snippet.BNsYld-H.js.map → code-snippet.DhAzYKjR.js.map} +1 -1
- package/dist/chunks/{controls-group.BfBnWu0u.js → controls-group.BDbwHnra.js} +2 -2
- package/dist/chunks/{controls-group.BfBnWu0u.js.map → controls-group.BDbwHnra.js.map} +1 -1
- package/dist/chunks/{copy.CFgvGhnT.js → copy.Upkiz7bP.js} +3 -3
- package/dist/chunks/{copy.CFgvGhnT.js.map → copy.Upkiz7bP.js.map} +1 -1
- package/dist/chunks/{country.a-fpQGLP.js → country.D1aj2TAo.js} +3 -3
- package/dist/chunks/{country.a-fpQGLP.js.map → country.D1aj2TAo.js.map} +1 -1
- package/dist/chunks/{country.types.6a7xxZIR.js → country.types.BUW49nQx.js} +10 -9
- package/dist/chunks/{country.types.6a7xxZIR.js.map → country.types.BUW49nQx.js.map} +1 -1
- package/dist/chunks/{dashboard-section._cJmCYmS.js → dashboard-section.C-lbabKU.js} +4 -4
- package/dist/chunks/{dashboard-section._cJmCYmS.js.map → dashboard-section.C-lbabKU.js.map} +1 -1
- package/dist/chunks/{dashed-underline.BX23F04p.js → dashed-underline.DEka9UrQ.js} +4 -4
- package/dist/chunks/{dashed-underline.BX23F04p.js.map → dashed-underline.DEka9UrQ.js.map} +1 -1
- package/dist/chunks/{data-grid-template.D7XYAdGO.js → data-grid-template.PxjJoi16.js} +4 -4
- package/dist/chunks/{data-grid-template.D7XYAdGO.js.map → data-grid-template.PxjJoi16.js.map} +1 -1
- package/dist/chunks/{data-grid.BRxL5jfA.js → data-grid.BEFjXMVi.js} +551 -546
- package/dist/chunks/{data-grid.BRxL5jfA.js.map → data-grid.BEFjXMVi.js.map} +1 -1
- package/dist/chunks/{date-picker.HvI3aqn_.js → date-picker.d8nczurO.js} +71 -70
- package/dist/chunks/{date-picker.HvI3aqn_.js.map → date-picker.d8nczurO.js.map} +1 -1
- package/dist/chunks/{date-range-picker.CxJ-Dwy6.js → date-range-picker.B60Vyrrb.js} +467 -455
- package/dist/chunks/{date-range-picker.CxJ-Dwy6.js.map → date-range-picker.B60Vyrrb.js.map} +1 -1
- package/dist/chunks/{dialog-page.BFem0ZGE.js → dialog-page.DPnVqbD-.js} +2 -2
- package/dist/chunks/{dialog-page.BFem0ZGE.js.map → dialog-page.DPnVqbD-.js.map} +1 -1
- package/dist/chunks/{draggable-handle.BepmJZ8K.js → draggable-handle.Bba19pO1.js} +44 -43
- package/dist/chunks/{draggable-handle.BepmJZ8K.js.map → draggable-handle.Bba19pO1.js.map} +1 -1
- package/dist/chunks/{draggable.DWd19-Ke.js → draggable.D2XoNEpq.js} +3 -3
- package/dist/chunks/{draggable.DWd19-Ke.js.map → draggable.D2XoNEpq.js.map} +1 -1
- package/dist/chunks/{drawer.Cz62dnhy.js → drawer.CFQChYaG.js} +5 -5
- package/dist/chunks/{drawer.Cz62dnhy.js.map → drawer.CFQChYaG.js.map} +1 -1
- package/dist/chunks/{dropdown-tag.D5OzRb26.js → dropdown-tag.8tOXrjNJ.js} +5 -5
- package/dist/chunks/{dropdown-tag.D5OzRb26.js.map → dropdown-tag.8tOXrjNJ.js.map} +1 -1
- package/dist/chunks/{dropdown.DemBTBTo.js → dropdown.DdSpgG_3.js} +1421 -1257
- package/dist/chunks/dropdown.DdSpgG_3.js.map +1 -0
- package/dist/chunks/{field-label.yQ_2Qg88.js → field-label.BkAbKFn1.js} +2 -2
- package/dist/chunks/{field-label.yQ_2Qg88.js.map → field-label.BkAbKFn1.js.map} +1 -1
- package/dist/chunks/{file-uploader.1xbAOQVr.js → file-uploader.Bmd77_FF.js} +102 -99
- package/dist/chunks/{file-uploader.1xbAOQVr.js.map → file-uploader.Bmd77_FF.js.map} +1 -1
- package/dist/chunks/{filter-bar.Du-a3Acn.js → filter-bar.BAnq5FZ0.js} +19 -17
- package/dist/chunks/{filter-bar.Du-a3Acn.js.map → filter-bar.BAnq5FZ0.js.map} +1 -1
- package/dist/chunks/{focus-trap.3-5C2gYa.js → focus-trap.BEpZs8px.js} +2 -2
- package/dist/chunks/{focus-trap.3-5C2gYa.js.map → focus-trap.BEpZs8px.js.map} +1 -1
- package/dist/chunks/{footer-actions.Bxs91LNd.js → footer-actions.BEKnGYCi.js} +2 -2
- package/dist/chunks/{footer-actions.Bxs91LNd.js.map → footer-actions.BEKnGYCi.js.map} +1 -1
- package/dist/chunks/{header-meta.7O7dRg_a.js → header-meta.DpNwydNc.js} +4 -4
- package/dist/chunks/{header-meta.7O7dRg_a.js.map → header-meta.DpNwydNc.js.map} +1 -1
- package/dist/chunks/{header-with-views.DjS8uGm4.js → header-with-views.DyLiBeAF.js} +539 -536
- package/dist/chunks/{header-with-views.DjS8uGm4.js.map → header-with-views.DyLiBeAF.js.map} +1 -1
- package/dist/chunks/{header.BW-OkVwK.js → header.CFnCJG1p.js} +3 -3
- package/dist/chunks/{header.BW-OkVwK.js.map → header.CFnCJG1p.js.map} +1 -1
- package/dist/chunks/index.CIlGoO9K.js +684 -0
- package/dist/chunks/{index.DtuWfdhd.js.map → index.CIlGoO9K.js.map} +1 -1
- package/dist/chunks/{info-icon.DvhV1I7b.js → info-icon.CDhehfxJ.js} +3 -3
- package/dist/chunks/{info-icon.DvhV1I7b.js.map → info-icon.CDhehfxJ.js.map} +1 -1
- package/dist/chunks/{input-field-password.KlvNwYqo.js → input-field-password.00IVzd9Z.js} +82 -81
- package/dist/chunks/{input-field-password.KlvNwYqo.js.map → input-field-password.00IVzd9Z.js.map} +1 -1
- package/dist/chunks/{input-field-phone-number.byO-cUDL.js → input-field-phone-number.yZOiRg7z.js} +3 -3
- package/dist/chunks/{input-field-phone-number.byO-cUDL.js.map → input-field-phone-number.yZOiRg7z.js.map} +1 -1
- package/dist/chunks/{input-field.B-0d_T4g.js → input-field.DZ-9F_j6.js} +3 -3
- package/dist/chunks/{input-field.B-0d_T4g.js.map → input-field.DZ-9F_j6.js.map} +1 -1
- package/dist/chunks/{input-time.nPazqbCJ.js → input-time.BPVbkubA.js} +3 -3
- package/dist/chunks/{input-time.nPazqbCJ.js.map → input-time.BPVbkubA.js.map} +1 -1
- package/dist/chunks/{inspector.04j4uhcL.js → inspector.CW5zM6Uw.js} +19 -18
- package/dist/chunks/{inspector.04j4uhcL.js.map → inspector.CW5zM6Uw.js.map} +1 -1
- package/dist/chunks/{layout-row.7mhpRkAj.js → layout-row.DzHEjT42.js} +2 -2
- package/dist/chunks/{layout-row.7mhpRkAj.js.map → layout-row.DzHEjT42.js.map} +1 -1
- package/dist/chunks/{list-item.Bh7YMPOT.js → list-item.G27sfeRL.js} +4 -4
- package/dist/chunks/{list-item.Bh7YMPOT.js.map → list-item.G27sfeRL.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.DdWLEXEA.js → listbox-option-tag.CwqL7Adp.js} +2 -2
- package/dist/chunks/{listbox-option-tag.DdWLEXEA.js.map → listbox-option-tag.CwqL7Adp.js.map} +1 -1
- package/dist/chunks/{modal-fullscreen.Dsb7-HDn.js → modal-fullscreen.PJjvCoqs.js} +4 -4
- package/dist/chunks/{modal-fullscreen.Dsb7-HDn.js.map → modal-fullscreen.PJjvCoqs.js.map} +1 -1
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.CwpOjtKq.js → modal.vue_vue_type_script_setup_true_lang.BxNHfmEr.js} +4 -4
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.CwpOjtKq.js.map → modal.vue_vue_type_script_setup_true_lang.BxNHfmEr.js.map} +1 -1
- package/dist/chunks/{navigation-menu-group.ikwhk1TY.js → navigation-menu-group.DQ-SeBn-.js} +3 -3
- package/dist/chunks/{navigation-menu-group.ikwhk1TY.js.map → navigation-menu-group.DQ-SeBn-.js.map} +1 -1
- package/dist/chunks/{pagination.DEjCJwaX.js → pagination.3Rwuf0KN.js} +2 -2
- package/dist/chunks/{pagination.DEjCJwaX.js.map → pagination.3Rwuf0KN.js.map} +1 -1
- package/dist/chunks/popover.types.D0U5GGNw.js +6 -0
- package/dist/chunks/{popover.types.B92uj134.js.map → popover.types.D0U5GGNw.js.map} +1 -1
- package/dist/chunks/{popper-container.DRt5hgY8.js → popper-container.BF9E657k.js} +2 -2
- package/dist/chunks/{popper-container.DRt5hgY8.js.map → popper-container.BF9E657k.js.map} +1 -1
- package/dist/chunks/{promo-banner.BonAKy1p.js → promo-banner.kZtr1PT0.js} +2 -2
- package/dist/chunks/{promo-banner.BonAKy1p.js.map → promo-banner.kZtr1PT0.js.map} +1 -1
- package/dist/chunks/{radio-group.DZkv4S3H.js → radio-group.BV8-XbBE.js} +3 -3
- package/dist/chunks/{radio-group.DZkv4S3H.js.map → radio-group.BV8-XbBE.js.map} +1 -1
- package/dist/chunks/{rich-text-editor.IxYsg6CI.js → rich-text-editor.Dv0FeIPh.js} +5 -4
- package/dist/chunks/{rich-text-editor.IxYsg6CI.js.map → rich-text-editor.Dv0FeIPh.js.map} +1 -1
- package/dist/chunks/scroll-to-section.C0Ndzjeq.js +101 -0
- package/dist/chunks/scroll-to-section.C0Ndzjeq.js.map +1 -0
- package/dist/chunks/{search-bar.C-U8clpQ.js → search-bar.C9xcZ3v4.js} +3 -3
- package/dist/chunks/{search-bar.C-U8clpQ.js.map → search-bar.C9xcZ3v4.js.map} +1 -1
- package/dist/chunks/{secondary-nav.Dk2uIEjb.js → secondary-nav.CHVnjfJX.js} +4 -4
- package/dist/chunks/{secondary-nav.Dk2uIEjb.js.map → secondary-nav.CHVnjfJX.js.map} +1 -1
- package/dist/chunks/{segmented-control.CDV9IQDC.js → segmented-control.fYLjcQOV.js} +2 -2
- package/dist/chunks/{segmented-control.CDV9IQDC.js.map → segmented-control.fYLjcQOV.js.map} +1 -1
- package/dist/chunks/{selection-card-group.Cvz-uxZ1.js → selection-card-group.BaCjHztC.js} +11 -11
- package/dist/chunks/{selection-card-group.Cvz-uxZ1.js.map → selection-card-group.BaCjHztC.js.map} +1 -1
- package/dist/chunks/{sidepanel.Comuu3ed.js → sidepanel.65Jpcq4E.js} +5 -5
- package/dist/chunks/{sidepanel.Comuu3ed.js.map → sidepanel.65Jpcq4E.js.map} +1 -1
- package/dist/chunks/{structured-list-item.BqptGVDy.js → structured-list-item.CJ0TMEak.js} +4 -4
- package/dist/chunks/{structured-list-item.BqptGVDy.js.map → structured-list-item.CJ0TMEak.js.map} +1 -1
- package/dist/chunks/{summary-grid.types.CS7JxDEe.js → summary-grid.types.DfXZMswa.js} +5 -5
- package/dist/chunks/{summary-grid.types.CS7JxDEe.js.map → summary-grid.types.DfXZMswa.js.map} +1 -1
- package/dist/chunks/{tab.BUeDKzsC.js → tab.DoQ7mXHH.js} +2 -2
- package/dist/chunks/{tab.BUeDKzsC.js.map → tab.DoQ7mXHH.js.map} +1 -1
- package/dist/chunks/table-of-contents.lxMKlrjT.js +123 -0
- package/dist/chunks/table-of-contents.lxMKlrjT.js.map +1 -0
- package/dist/chunks/{tag.BDBpa51Z.js → tag.D4SEsqgS.js} +2 -2
- package/dist/chunks/{tag.BDBpa51Z.js.map → tag.D4SEsqgS.js.map} +1 -1
- package/dist/chunks/{textarea.CIVT8C_Z.js → textarea.DMX40ZXm.js} +2 -2
- package/dist/chunks/{textarea.CIVT8C_Z.js.map → textarea.DMX40ZXm.js.map} +1 -1
- package/dist/chunks/{timeline-item.Bva1ccQQ.js → timeline-item.DEBvVXyV.js} +6 -6
- package/dist/chunks/{timeline-item.Bva1ccQQ.js.map → timeline-item.DEBvVXyV.js.map} +1 -1
- package/dist/chunks/{tooltip.DaO3Jkem.js → tooltip.BrUCldQ2.js} +3 -3
- package/dist/chunks/{tooltip.DaO3Jkem.js.map → tooltip.BrUCldQ2.js.map} +1 -1
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.X5GUFYKD.js → tutorial.vue_vue_type_script_setup_true_lang.BkUGQ9af.js} +4 -4
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.X5GUFYKD.js.map → tutorial.vue_vue_type_script_setup_true_lang.BkUGQ9af.js.map} +1 -1
- package/dist/chunks/{use-bento-delayed-hover.4NBNqVyw.js → use-bento-delayed-hover.DDosPZA_.js} +2 -2
- package/dist/chunks/{use-bento-delayed-hover.4NBNqVyw.js.map → use-bento-delayed-hover.DDosPZA_.js.map} +1 -1
- package/dist/chunks/{use-country-items.Dp7X1r2e.js → use-country-items.BGJ4Jppd.js} +3 -3
- package/dist/chunks/{use-country-items.Dp7X1r2e.js.map → use-country-items.BGJ4Jppd.js.map} +1 -1
- package/dist/chunks/{use-country-phon-code.BzcawGpE.js → use-country-phon-code.Cv5YgCOo.js} +144 -143
- package/dist/chunks/{use-country-phon-code.BzcawGpE.js.map → use-country-phon-code.Cv5YgCOo.js.map} +1 -1
- package/dist/chunks/{use-date-input-formatter.DvYZRRZi.js → use-date-input-formatter.klhqTdY8.js} +2 -2
- package/dist/chunks/{use-date-input-formatter.DvYZRRZi.js.map → use-date-input-formatter.klhqTdY8.js.map} +1 -1
- package/dist/code-snippet.js +1 -1
- package/dist/country.js +3 -3
- package/dist/dashboard-template.js +1 -1
- package/dist/dashed-underline.js +1 -1
- package/dist/data-grid-template.js +1 -1
- package/dist/data-grid.js +1 -1
- package/dist/date-picker.js +2 -2
- package/dist/date-range-picker.js +2 -2
- package/dist/date-time-picker.js +24 -23
- package/dist/date-time-picker.js.map +1 -1
- package/dist/draggable.js +2 -2
- package/dist/drawer.js +1 -1
- package/dist/dropdown.js +2 -2
- package/dist/file-uploader.js +1 -1
- package/dist/filter-bar.js +1 -1
- package/dist/focus-trap.js +1 -1
- package/dist/header-with-views.js +1 -1
- package/dist/header.js +1 -1
- package/dist/index.js +112 -110
- 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/input-time.js +1 -1
- package/dist/inspector.js +1 -1
- package/dist/internal.js +11 -11
- package/dist/layout.js +1 -1
- package/dist/list.js +1 -1
- package/dist/menu.js +1 -1
- package/dist/modal-fullscreen.js +1 -1
- package/dist/modal.js +2 -2
- package/dist/navigation-menu.js +1 -1
- package/dist/pagination.js +1 -1
- package/dist/popover.js +2 -2
- package/dist/popper-container.js +1 -1
- package/dist/promo-banner.js +1 -1
- package/dist/radio-group.js +1 -1
- package/dist/rich-text-editor.js +1 -1
- package/dist/search-bar.js +2 -2
- package/dist/secondary-nav.js +1 -1
- package/dist/segmented-control.js +1 -1
- package/dist/selection-card.js +1 -1
- package/dist/sidepanel.js +1 -1
- package/dist/structured-list.js +1 -1
- package/dist/summary-grid.js +1 -1
- package/dist/table-of-contents.js +5 -0
- package/dist/table-of-contents.js.map +1 -0
- package/dist/tabs.js +1 -1
- package/dist/tag.js +1 -1
- package/dist/textarea.js +1 -1
- package/dist/timeline.js +1 -1
- package/dist/tutorial.js +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +2 -2
- package/dist/chunks/anchor-scroller.ZMjZsvKe.js +0 -214
- package/dist/chunks/anchor-scroller.ZMjZsvKe.js.map +0 -1
- package/dist/chunks/dropdown.DemBTBTo.js.map +0 -1
- package/dist/chunks/index.DtuWfdhd.js +0 -728
- package/dist/chunks/popover.types.B92uj134.js +0 -6
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as r, withDirectives as p, openBlock as a, createElementBlock as l, createVNode as m, unref as e } from "vue";
|
|
2
|
-
import { b as c } from "./popper-container.
|
|
3
|
-
import { b as f } from "./tooltip.
|
|
2
|
+
import { b as c } from "./popper-container.BF9E657k.js";
|
|
3
|
+
import { b as f } from "./tooltip.BrUCldQ2.js";
|
|
4
4
|
import { I as _ } from "./info.6Z6NxUst.js";
|
|
5
5
|
import { _ as u } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
6
6
|
import "../assets/info-icon.css";
|
|
@@ -32,4 +32,4 @@ const b = ["aria-label"], d = {
|
|
|
32
32
|
export {
|
|
33
33
|
k as B
|
|
34
34
|
};
|
|
35
|
-
//# sourceMappingURL=info-icon.
|
|
35
|
+
//# sourceMappingURL=info-icon.CDhehfxJ.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"info-icon.
|
|
1
|
+
{"version":3,"file":"info-icon.CDhehfxJ.js","sources":["../../../vue2/src/components/info-icon/info-icon.vue"],"sourcesContent":["<template>\n <span\n v-bento-tooltip-directive:[tooltipPosition]=\"tooltipText\"\n :aria-label=\"tooltipText\"\n class=\"b-info-icon\"\n @mouseenter=\"emit('mouseenter', $event)\"\n >\n <info-icon :svg-title=\"tooltipText\" class=\"b-info-icon__svg\" />\n </span>\n</template>\n\n<script setup lang=\"ts\">\n import { PopperContainerPosition } from '@/components/popper-container';\n import { BentoTooltipDirective as vBentoTooltipDirective } from '@/directives';\n import { type BentoInfoIconProps } from './info-icon.types';\n import InfoIcon from '@adyen/ui-assets-icons-16/vue/info';\n\n withDefaults(defineProps<BentoInfoIconProps>(), {\n tooltipPosition: PopperContainerPosition.AUTO,\n });\n\n const emit = defineEmits<{\n /**\n * Emitted when the mouse pointer enters the component.\n */\n (e: 'mouseenter', event: MouseEvent): void;\n }>();\n</script>\n\n<script lang=\"ts\">\n /**\n * @example\n * <template>\n * <bento-info-icon tooltip-text=\"Text on hover\" />\n * </template>\n *\n * <script setup lang=\"ts\">\n * import { BentoInfoIcon } from '@adyen/bento-vue2';\n * </scrip>\n */\n export default {\n name: 'bento-info-icon',\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./info-icon.scss\" />\n"],"names":["__default__","emit","__emit"],"mappings":";;;;;;0BAwCIA,IAAA;AAAA,EAAe,MAAA;AAEf;;;;;;;;AArBA,UAAAC,IAAAC;;;;;;;;;;;;;;;"}
|
|
@@ -1,43 +1,44 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as he, useAttrs as fe, ref as s, provide as be, computed as c, watch as B, openBlock as l, createElementBlock as L, createVNode as S, unref as t, mergeProps as ge, createSlots as ke, withCtx as d, Fragment as X, createTextVNode as O, toDisplayString as g, renderSlot as $, createElementVNode as U, createBlock as u, normalizeClass as J, createCommentVNode as p, renderList as we } from "vue";
|
|
2
2
|
import { B as Re } from "./button.C6-bXf1h.js";
|
|
3
3
|
import { _ as Ce } from "./image.vue_vue_type_script_setup_true_lang.BMoSMeM-.js";
|
|
4
|
-
import { f as Le, B as
|
|
5
|
-
import { h as
|
|
6
|
-
import { d as
|
|
7
|
-
import { C as
|
|
4
|
+
import { f as Le, B as Oe } from "./input-field.DZ-9F_j6.js";
|
|
5
|
+
import { h as ye } from "./button-actions.CHQMIjTF.js";
|
|
6
|
+
import { d as Ee, B as H } from "./typography.B3J6_tYk.js";
|
|
7
|
+
import { C as _e } from "./checkmark-circle-fill.DugX5fbG.js";
|
|
8
8
|
import { D as qe } from "./dot.DBmwmOUN.js";
|
|
9
9
|
import { S as Ve, H as Se } from "./show.BreRPkgL.js";
|
|
10
|
-
import {
|
|
11
|
-
import { u as
|
|
10
|
+
import { j as Ue, k as Pe } from "./index.CIlGoO9K.js";
|
|
11
|
+
import { u as Te } from "./index.B875RXHM.js";
|
|
12
12
|
import { g as Y } from "./generate-uid.DBWe4g6T.js";
|
|
13
13
|
import { u as Ae } from "./form-field.D_2g7vaP.js";
|
|
14
|
-
import { T as Ne } from "./tooltip.
|
|
14
|
+
import { T as Ne } from "./tooltip.BrUCldQ2.js";
|
|
15
15
|
import { _ as Ie } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
16
16
|
import "../assets/input-field-password.css";
|
|
17
|
-
var
|
|
17
|
+
var y = /* @__PURE__ */ ((i) => (i.TEXT = "text", i.PASSWORD = "password", i))(y || {}), k = /* @__PURE__ */ ((i) => (i.MIN_LENGTH = "minLength", i.REQUIRE_LOWERCASE = "requireLowercase", i.REQUIRE_NUMERIC = "requireNumeric", i.REQUIRE_SPECIAL_CHARACTER = "requireSpecialCharacter", i.REQUIRE_UPPERCASE = "requireUppercase", i))(k || {});
|
|
18
18
|
const Me = "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";
|
|
19
|
-
function
|
|
19
|
+
function E(i) {
|
|
20
20
|
return i?.toString() ?? "";
|
|
21
21
|
}
|
|
22
|
-
function Be(i,
|
|
23
|
-
return
|
|
22
|
+
function Be(i, P = 12) {
|
|
23
|
+
return E(i).length >= P;
|
|
24
24
|
}
|
|
25
25
|
function He(i) {
|
|
26
|
-
return /[a-z]/.test(
|
|
26
|
+
return /[a-z]/.test(E(i));
|
|
27
27
|
}
|
|
28
28
|
function ze(i) {
|
|
29
|
-
return /[A-Z]/.test(
|
|
30
|
-
}
|
|
31
|
-
function Fe(i) {
|
|
32
|
-
return /\d/.test(_(i));
|
|
29
|
+
return /[A-Z]/.test(E(i));
|
|
33
30
|
}
|
|
34
31
|
function Ze(i) {
|
|
35
|
-
return
|
|
32
|
+
return /\d/.test(E(i));
|
|
33
|
+
}
|
|
34
|
+
function Fe(i) {
|
|
35
|
+
return /[^a-zA-Z0-9]/.test(E(i));
|
|
36
36
|
}
|
|
37
37
|
const ee = {
|
|
38
38
|
"de-DE": { capsLockEnabled: "Feststelltaste aktiviert", hidePassword: "Ausblenden", showPassword: "Anzeigen", validationChecked: "Überprüft", validationMinLength: "{numberOfCharacters} Zeichen", validationRequireLowercase: "{numberOne} Kleinbuchstabe (a–z)", validationRequireNumeric: "{numberOne} numerisch (0–9)", validationRequireSpecialCharacter: "{numberOne} Sonderzeichen", validationRequireUppercase: "{numberOne} Großbuchstaben (A–Z)", validationSuggestion: "Vermeiden Sie die Verwendung von Währungssymbolen oder akzentuierten Buchstaben.", validationTitle: "Das Passwort muss mindestens Folgendes enthalten:", validationUnchecked: "Ungeprüft", validationValid: "Eingabe ist gültig" },
|
|
39
39
|
"en-GB": { capsLockEnabled: "Caps lock on", hidePassword: "Hide", showPassword: "Show", validationChecked: "Checked", validationMinLength: "{numberOfCharacters} characters", validationRequireLowercase: "{numberOne} lowercase (a-z)", validationRequireNumeric: "{numberOne} numerical (0-9)", validationRequireSpecialCharacter: "{numberOne} special character", validationRequireUppercase: "{numberOne} uppercase (A-Z)", validationSuggestion: "Avoid using currency symbols or accented letters.", validationTitle: "Password must contain at least:", validationUnchecked: "Unchecked", validationValid: "Input is valid" },
|
|
40
40
|
"en-US": { capsLockEnabled: "Caps lock on", hidePassword: "Hide", showPassword: "Show", validationChecked: "Checked", validationMinLength: "{numberOfCharacters} characters", validationRequireLowercase: "{numberOne} lowercase (a-z)", validationRequireNumeric: "{numberOne} numerical (0-9)", validationRequireSpecialCharacter: "{numberOne} special character", validationRequireUppercase: "{numberOne} uppercase (A-Z)", validationSuggestion: "Avoid using currency symbols or accented letters.", validationTitle: "Password must contain at least:", validationUnchecked: "Unchecked", validationValid: "Input is valid" },
|
|
41
|
+
"es-419": { capsLockEnabled: "Bloqueo de mayúsculas", hidePassword: "Ocultar", showPassword: "Mostrar", validationChecked: "Verificado", validationMinLength: "{numberOfCharacters} caracteres", validationRequireLowercase: "{numberOne} minúsculas (a-z)", validationRequireNumeric: "{numberOne} numérico (0-9)", validationRequireSpecialCharacter: "{numberOne} carácter especial", validationRequireUppercase: "{numberOne} mayúsculas (A-Z)", validationSuggestion: "Evita usar símbolos de moneda o letras acentuadas.", validationTitle: "La contraseña debe contener al menos:", validationUnchecked: "No verificado", validationValid: "La entrada es válida" },
|
|
41
42
|
"es-ES": { capsLockEnabled: "Bloqueo de mayúsculas", hidePassword: "Ocultar", showPassword: "Mostrar", validationChecked: "Comprobado", validationMinLength: "{numberOfCharacters} caracteres", validationRequireLowercase: "{numberOne} minúsculas (a-z)", validationRequireNumeric: "{numberOne} números (0-9)", validationRequireSpecialCharacter: "{numberOne} carácter especial", validationRequireUppercase: "{numberOne} en mayúsculas (A-Z)", validationSuggestion: "Evita usar símbolos de moneda o letras acentuadas.", validationTitle: "La contraseña debe contener al menos:", validationUnchecked: "Sin verificar", validationValid: "La entrada es válida" },
|
|
42
43
|
"es-MX": { capsLockEnabled: "Bloqueo de mayúsculas", hidePassword: "Ocultar", showPassword: "Mostrar", validationChecked: "Verificado", validationMinLength: "{numberOfCharacters} caracteres", validationRequireLowercase: "{numberOne} minúscula (a-z)", validationRequireNumeric: "{numberOne} numérico (0-9)", validationRequireSpecialCharacter: "{numberOne} caracter especial", validationRequireUppercase: "{numberOne} mayúscula (A-Z)", validationSuggestion: "Evita usar símbolos de moneda o letras acentuadas.", validationTitle: "La contraseña debe contener al menos:", validationUnchecked: "Sin verificar", validationValid: "La entrada es válida" },
|
|
43
44
|
"fr-FR": { capsLockEnabled: "Verrouillage des majuscules activé", hidePassword: "Cacher", showPassword: "Afficher", validationChecked: "Vérifié", validationMinLength: "{numberOfCharacters} caractères", validationRequireLowercase: "{numberOne} minuscule (a-z)", validationRequireNumeric: "{numberOne} chiffre (0-9)", validationRequireSpecialCharacter: "{numberOne} caractère spécial", validationRequireUppercase: "{numberOne} majuscule (A-Z)", validationSuggestion: "Évitez d'utiliser des symboles de devise ou des lettres avec accent.", validationTitle: "Le mot de passe doit contenir au moins :", validationUnchecked: "Non coché", validationValid: "La saisie est valide" },
|
|
@@ -49,15 +50,15 @@ const ee = {
|
|
|
49
50
|
key: 1,
|
|
50
51
|
class: "b-input-field-password__validation-status--valid",
|
|
51
52
|
role: "alert"
|
|
52
|
-
}, Qe = ["id"], xe = { class: "b-input-field-password__validation-list-icon" }, Ke = 12,
|
|
53
|
+
}, Qe = ["id"], xe = { class: "b-input-field-password__validation-list-icon" }, Ke = 12, je = 500, Ge = 2e3, Xe = 2e3, $e = {
|
|
53
54
|
i18n: { messages: ee },
|
|
54
55
|
name: "bento-input-field-password",
|
|
55
56
|
model: { prop: "modelValue" }
|
|
56
|
-
}, Je = /* @__PURE__ */
|
|
57
|
+
}, Je = /* @__PURE__ */ he({
|
|
57
58
|
...$e,
|
|
58
59
|
props: {
|
|
59
60
|
condensed: { type: Boolean, default: !1 },
|
|
60
|
-
debounceTime: { default:
|
|
61
|
+
debounceTime: { default: je },
|
|
61
62
|
disableValidation: { type: Boolean, default: !1 },
|
|
62
63
|
value: { default: void 0 },
|
|
63
64
|
modelValue: { default: void 0 },
|
|
@@ -74,16 +75,16 @@ const ee = {
|
|
|
74
75
|
tooltipText: { default: null }
|
|
75
76
|
},
|
|
76
77
|
emits: ["blur", "focus", "input:valid", "input:error", "input", "update:model-value"],
|
|
77
|
-
setup(i, { emit:
|
|
78
|
-
const { t: o, n: w } =
|
|
78
|
+
setup(i, { emit: P }) {
|
|
79
|
+
const { t: o, n: w } = Te({ messages: ee }), a = i, R = P, ae = fe(), _ = s(y.PASSWORD), m = s(a.modelValue ?? a.value), z = s(!1), ie = s(!1), q = s([]), Z = s({}), h = s(null), f = s(!1), F = s(null), T = s(null), A = s(null), N = s(!1);
|
|
79
80
|
be(Le, "bento-input-field-password");
|
|
80
|
-
const { focused: te } =
|
|
81
|
+
const { focused: te } = Ue(F), { emitValue: ne } = Ae(R), D = Y("validationListId"), W = Y("validationPopoverId"), I = c(() => _.value === y.TEXT), oe = c(
|
|
81
82
|
() => q.value.map(
|
|
82
83
|
(e) => e ? "b-input-field-password__validation-list--valid" : "b-input-field-password__validation-list--invalid"
|
|
83
84
|
)
|
|
84
|
-
), le =
|
|
85
|
-
() =>
|
|
86
|
-
), se =
|
|
85
|
+
), le = c(
|
|
86
|
+
() => h.value ? "b-input-field-password__input-tooltip--timed" : ""
|
|
87
|
+
), se = c(() => ({
|
|
87
88
|
ariaHidden: !1,
|
|
88
89
|
condensed: a.condensed,
|
|
89
90
|
disabled: a.disabled,
|
|
@@ -93,12 +94,12 @@ const ee = {
|
|
|
93
94
|
readonly: a.readonly,
|
|
94
95
|
required: a.required,
|
|
95
96
|
tooltipText: a.tooltipText,
|
|
96
|
-
type:
|
|
97
|
+
type: _.value,
|
|
97
98
|
modelValue: m.value,
|
|
98
99
|
"aria-haspopup": M.value ? "dialog" : !1,
|
|
99
100
|
"aria-describedby": M.value ? W : "",
|
|
100
101
|
...ae
|
|
101
|
-
})), v =
|
|
102
|
+
})), v = c(() => {
|
|
102
103
|
if (a.validation && !a.validation.extendDefaultValidation)
|
|
103
104
|
return a.validation;
|
|
104
105
|
const e = [
|
|
@@ -120,12 +121,12 @@ const ee = {
|
|
|
120
121
|
{
|
|
121
122
|
label: o("validationRequireNumeric", { numberOne: w(1) }),
|
|
122
123
|
key: k.REQUIRE_NUMERIC,
|
|
123
|
-
validate:
|
|
124
|
+
validate: Ze
|
|
124
125
|
},
|
|
125
126
|
{
|
|
126
127
|
label: o("validationRequireSpecialCharacter", { numberOne: w(1) }),
|
|
127
128
|
key: k.REQUIRE_SPECIAL_CHARACTER,
|
|
128
|
-
validate:
|
|
129
|
+
validate: Fe
|
|
129
130
|
}
|
|
130
131
|
];
|
|
131
132
|
let b = e;
|
|
@@ -138,36 +139,36 @@ const ee = {
|
|
|
138
139
|
suggestion: a.validation?.suggestion ?? o("validationSuggestion"),
|
|
139
140
|
list: b
|
|
140
141
|
};
|
|
141
|
-
}), Q =
|
|
142
|
-
() =>
|
|
142
|
+
}), Q = c(() => v.value?.list?.filter((e) => !e.disabled)), x = c(() => q.value?.some((e) => !e)), M = c(
|
|
143
|
+
() => T.value && v.value?.list?.length > 0
|
|
143
144
|
), K = (e) => {
|
|
144
145
|
typeof e.getModifierState == "function" && (N.value = e.getModifierState("CapsLock"));
|
|
145
146
|
}, re = () => {
|
|
146
|
-
I.value ?
|
|
147
|
+
I.value ? _.value = y.PASSWORD : _.value = y.TEXT;
|
|
147
148
|
}, de = (e) => {
|
|
148
149
|
a.disabled || (m.value = e, ne(m.value));
|
|
149
|
-
}, ue = () => {
|
|
150
|
-
R("focus");
|
|
151
150
|
}, ce = () => {
|
|
151
|
+
R("focus");
|
|
152
|
+
}, ue = () => {
|
|
152
153
|
R("blur");
|
|
153
|
-
},
|
|
154
|
+
}, j = (e) => {
|
|
154
155
|
const b = Q.value?.map((n) => ({
|
|
155
156
|
key: n.key,
|
|
156
157
|
label: n.label,
|
|
157
158
|
isValid: n.validate(e, ...n.additionalArgs ?? [])
|
|
158
159
|
}));
|
|
159
160
|
let C = 1;
|
|
160
|
-
q.value = b?.map((n) => n.isValid),
|
|
161
|
-
const
|
|
161
|
+
q.value = b?.map((n) => n.isValid), Z.value = b?.filter((n) => !n.isValid).reduce((n, V) => {
|
|
162
|
+
const G = V.key ?? `custom-rule-${C++}`;
|
|
162
163
|
return {
|
|
163
164
|
...n,
|
|
164
|
-
[
|
|
165
|
+
[G]: V.label
|
|
165
166
|
};
|
|
166
167
|
}, {});
|
|
167
168
|
}, ve = () => {
|
|
168
|
-
|
|
169
|
+
f.value = !1, h.value = null;
|
|
169
170
|
}, pe = () => {
|
|
170
|
-
|
|
171
|
+
f.value = !0;
|
|
171
172
|
};
|
|
172
173
|
return B(
|
|
173
174
|
() => [a.value, a.modelValue],
|
|
@@ -175,44 +176,44 @@ const ee = {
|
|
|
175
176
|
m.value = a.modelValue ?? a.value;
|
|
176
177
|
}
|
|
177
178
|
), B(te, (e) => {
|
|
178
|
-
e || (ie.value = !0), a.disableValidation || (a.withHint && (z.value = e),
|
|
179
|
+
e || (ie.value = !0), a.disableValidation || (a.withHint && (z.value = e), j(m.value));
|
|
179
180
|
}), B(N, (e) => {
|
|
180
|
-
e ? (
|
|
181
|
-
|
|
182
|
-
},
|
|
183
|
-
}),
|
|
181
|
+
e ? (f.value = !0, h.value = setTimeout(() => {
|
|
182
|
+
h.value = null, f.value = !1;
|
|
183
|
+
}, Xe)) : (clearTimeout(h.value), h.value = null, f.value = !1);
|
|
184
|
+
}), Pe(
|
|
184
185
|
m,
|
|
185
186
|
(e) => {
|
|
186
|
-
|
|
187
|
+
j(e), x.value ? R("input:error", Z.value) : R("input:valid");
|
|
187
188
|
},
|
|
188
189
|
// wait for 0.5s before checking validity OR 2s of continuous typing
|
|
189
|
-
{ debounce: a.debounceTime, maxWait:
|
|
190
|
-
), a.value &&
|
|
190
|
+
{ debounce: a.debounceTime, maxWait: Ge }
|
|
191
|
+
), a.value && Ee(
|
|
191
192
|
'BentoInputFieldPassword "value" property',
|
|
192
193
|
`The use of "value" prop in "BentoInputFieldPassword" is no longer supported.
|
|
193
194
|
Use the "v-model" or "model-value" property instead.`,
|
|
194
195
|
"2.0.0"
|
|
195
196
|
), (e, b) => (l(), L("div", {
|
|
196
197
|
ref_key: "inputFieldPasswordRef",
|
|
197
|
-
ref:
|
|
198
|
+
ref: F
|
|
198
199
|
}, [
|
|
199
|
-
S(t(
|
|
200
|
+
S(t(Oe), ge({
|
|
200
201
|
ref_key: "inputFieldPasswordInputRef",
|
|
201
|
-
ref:
|
|
202
|
+
ref: T
|
|
202
203
|
}, se.value, {
|
|
203
204
|
class: "b-input-field-password__input",
|
|
204
205
|
autocapitalize: "none",
|
|
205
206
|
autocorrect: "off",
|
|
206
207
|
spellcheck: "false",
|
|
207
|
-
onBlur:
|
|
208
|
-
onFocus:
|
|
208
|
+
onBlur: ue,
|
|
209
|
+
onFocus: ce,
|
|
209
210
|
"onUpdate:modelValue": de,
|
|
210
211
|
onKeydown: K,
|
|
211
212
|
onKeyup: K
|
|
212
213
|
}), ke({
|
|
213
214
|
default: d(() => [
|
|
214
|
-
e.label ? (l(), L(
|
|
215
|
-
|
|
215
|
+
e.label ? (l(), L(X, { key: 0 }, [
|
|
216
|
+
O(g(e.label), 1)
|
|
216
217
|
], 64)) : $(e.$slots, "default", { key: 1 }, void 0, !0)
|
|
217
218
|
]),
|
|
218
219
|
_: 2
|
|
@@ -221,7 +222,7 @@ const ee = {
|
|
|
221
222
|
name: "description",
|
|
222
223
|
fn: d(() => [
|
|
223
224
|
$(e.$slots, "description", {}, () => [
|
|
224
|
-
|
|
225
|
+
O(g(e.description), 1)
|
|
225
226
|
], !0)
|
|
226
227
|
]),
|
|
227
228
|
key: "0"
|
|
@@ -229,7 +230,7 @@ const ee = {
|
|
|
229
230
|
N.value ? {
|
|
230
231
|
name: "iconBefore",
|
|
231
232
|
fn: d(() => [
|
|
232
|
-
|
|
233
|
+
U("div", {
|
|
233
234
|
class: "b-input-field-password__caps-lock-indicator",
|
|
234
235
|
onMouseenter: pe,
|
|
235
236
|
onMouseleave: ve
|
|
@@ -241,13 +242,13 @@ const ee = {
|
|
|
241
242
|
alt: t(o)("capsLockEnabled")
|
|
242
243
|
}, null, 8, ["src", "alt"])
|
|
243
244
|
], 32),
|
|
244
|
-
A.value ? (l(),
|
|
245
|
+
A.value ? (l(), u(t(Ne), {
|
|
245
246
|
key: 0,
|
|
246
247
|
class: J(le.value),
|
|
247
248
|
content: t(o)("capsLockEnabled"),
|
|
248
249
|
"disabled-focus-trap": !0,
|
|
249
250
|
"fallback-position": ["top", "bottom"],
|
|
250
|
-
"is-shown":
|
|
251
|
+
"is-shown": f.value,
|
|
251
252
|
"target-element": A.value
|
|
252
253
|
}, null, 8, ["class", "content", "is-shown", "target-element"])) : p("", !0)
|
|
253
254
|
]),
|
|
@@ -261,11 +262,11 @@ const ee = {
|
|
|
261
262
|
onClick: re
|
|
262
263
|
}, {
|
|
263
264
|
iconLeft: d(() => [
|
|
264
|
-
I.value ? p("", !0) : (l(),
|
|
265
|
+
I.value ? p("", !0) : (l(), u(t(Ve), {
|
|
265
266
|
key: 0,
|
|
266
267
|
"svg-title": t(o)("showPassword")
|
|
267
268
|
}, null, 8, ["svg-title"])),
|
|
268
|
-
I.value ? (l(),
|
|
269
|
+
I.value ? (l(), u(t(Se), {
|
|
269
270
|
key: 1,
|
|
270
271
|
"svg-title": t(o)("hidePassword")
|
|
271
272
|
}, null, 8, ["svg-title"])) : p("", !0)
|
|
@@ -276,42 +277,42 @@ const ee = {
|
|
|
276
277
|
key: "2"
|
|
277
278
|
}
|
|
278
279
|
]), 1040),
|
|
279
|
-
M.value ? (l(),
|
|
280
|
+
M.value ? (l(), u(t(ye), {
|
|
280
281
|
key: 0,
|
|
281
282
|
open: z.value,
|
|
282
|
-
"target-element":
|
|
283
|
+
"target-element": T.value,
|
|
283
284
|
"disable-focus-trap": !0,
|
|
284
285
|
"aria-label": v.value.title,
|
|
285
286
|
"aria-describedby": t(D),
|
|
286
287
|
position: "right-start"
|
|
287
288
|
}, {
|
|
288
289
|
default: d(() => [
|
|
289
|
-
|
|
290
|
-
v.value.title ? (l(),
|
|
290
|
+
U("div", { id: t(W) }, [
|
|
291
|
+
v.value.title ? (l(), u(t(H), {
|
|
291
292
|
key: 0,
|
|
292
293
|
class: "b-input-field-password__validation-title"
|
|
293
294
|
}, {
|
|
294
295
|
default: d(() => [
|
|
295
|
-
|
|
296
|
+
O(g(v.value.title), 1)
|
|
296
297
|
]),
|
|
297
298
|
_: 1
|
|
298
299
|
})) : p("", !0),
|
|
299
300
|
x.value ? p("", !0) : (l(), L("p", We, g(t(o)("validationValid")), 1)),
|
|
300
|
-
|
|
301
|
+
U("ul", {
|
|
301
302
|
id: t(D),
|
|
302
303
|
class: "b-input-field-password__validation-list"
|
|
303
304
|
}, [
|
|
304
|
-
(l(!0), L(
|
|
305
|
+
(l(!0), L(X, null, we(Q.value, (C, n) => (l(), L("li", {
|
|
305
306
|
key: n,
|
|
306
307
|
class: J(oe.value[n]),
|
|
307
308
|
"aria-live": "polite",
|
|
308
309
|
"aria-atomic": "true"
|
|
309
310
|
}, [
|
|
310
|
-
|
|
311
|
-
q.value[n] ? (l(),
|
|
311
|
+
U("span", xe, [
|
|
312
|
+
q.value[n] ? (l(), u(t(_e), {
|
|
312
313
|
key: 0,
|
|
313
314
|
"svg-title": t(o)("validationChecked")
|
|
314
|
-
}, null, 8, ["svg-title"])) : (l(),
|
|
315
|
+
}, null, 8, ["svg-title"])) : (l(), u(t(qe), {
|
|
315
316
|
key: 1,
|
|
316
317
|
"svg-title": t(o)("validationUnchecked")
|
|
317
318
|
}, null, 8, ["svg-title"]))
|
|
@@ -321,18 +322,18 @@ const ee = {
|
|
|
321
322
|
el: "span"
|
|
322
323
|
}, {
|
|
323
324
|
default: d(() => [
|
|
324
|
-
|
|
325
|
+
O(g(C.label), 1)
|
|
325
326
|
]),
|
|
326
327
|
_: 2
|
|
327
328
|
}, 1024)
|
|
328
329
|
], 2))), 128))
|
|
329
330
|
], 8, Qe),
|
|
330
|
-
v.value.suggestion ? (l(),
|
|
331
|
+
v.value.suggestion ? (l(), u(t(H), {
|
|
331
332
|
key: 2,
|
|
332
333
|
class: "b-input-field-password__validation-suggestion"
|
|
333
334
|
}, {
|
|
334
335
|
default: d(() => [
|
|
335
|
-
|
|
336
|
+
O(g(v.value.suggestion), 1)
|
|
336
337
|
]),
|
|
337
338
|
_: 1
|
|
338
339
|
})) : p("", !0)
|
|
@@ -342,13 +343,13 @@ const ee = {
|
|
|
342
343
|
}, 8, ["open", "target-element", "aria-label", "aria-describedby"])) : p("", !0)
|
|
343
344
|
], 512));
|
|
344
345
|
}
|
|
345
|
-
}),
|
|
346
|
+
}), ha = /* @__PURE__ */ Ie(Je, [["__scopeId", "data-v-07aa7dfd"]]);
|
|
346
347
|
export {
|
|
347
|
-
|
|
348
|
-
|
|
348
|
+
Ze as a,
|
|
349
|
+
Fe as b,
|
|
349
350
|
ze as c,
|
|
350
|
-
|
|
351
|
+
ha as i,
|
|
351
352
|
Be as m,
|
|
352
353
|
He as r
|
|
353
354
|
};
|
|
354
|
-
//# sourceMappingURL=input-field-password.
|
|
355
|
+
//# sourceMappingURL=input-field-password.00IVzd9Z.js.map
|
package/dist/chunks/{input-field-password.KlvNwYqo.js.map → input-field-password.00IVzd9Z.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input-field-password.KlvNwYqo.js","sources":["../../../vue2/src/components/input-field-password/input-field-password.types.ts","../../../vue2/src/components/input-field-password/assets/capslock.svg","../../../vue2/src/components/input-field-password/utilities/input-field-password.validation.ts","../../../vue2/src/components/input-field-password/input-field-password.vue"],"sourcesContent":["import type { BentoInputFieldProps, BentoInputFieldValue } from '@/components/input-field/input-field.types';\nimport { type FormField } from '../../types/form-field';\n\n/**\n * Public\n */\n\nexport interface BentoInputFieldPasswordValidationListItem {\n label?: string;\n key?: BentoInputFieldPasswordDefaultRuleKeys | string;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n validate?: (value: BentoInputFieldValue, ...args: Array<any>) => boolean;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n additionalArgs?: Array<any>;\n disabled?: boolean;\n}\n\nexport type BentoInputFieldPasswordDefaultRuleKeys =\n | 'minLength'\n | 'requireLowercase'\n | 'requireNumeric'\n | 'requireSpecialCharacter'\n | 'requireUppercase';\n\nexport type BentoInputFieldPasswordErrorsList = Record<BentoInputFieldPasswordDefaultRuleKeys | string, string>;\n\nexport interface BentoInputFieldPasswordValidation {\n title?: string;\n suggestion?: string;\n extendDefaultValidation?: boolean;\n list: Array<BentoInputFieldPasswordValidationListItem>;\n}\n\nexport interface BentoInputFieldPasswordProps extends FormField {\n /**\n * Reduces height of the input\n */\n condensed?: BentoInputFieldProps['condensed'];\n\n /**\n * The debounce time in milliseconds for running validation and emitting the `input` event after the user has stopped typing.\n * This helps to avoid excessive validation checks on every keystroke. Defaults to `500`.\n */\n debounceTime?: number;\n\n /**\n * Performs real-time validations over the input value. Default: `false`.\n * Disabling the option (set to `true`) will not run pre-defined validations or custom validations defined in the `validation` field.\n */\n disableValidation?: boolean;\n\n /**\n * Text displayed as the value of the input-field\n * @deprecated Since v2.0.0. Use `v-model` or `model-value` instead.\n */\n value?: BentoInputFieldProps['value'];\n\n /**\n * Text displayed as the value of the input-field\n */\n modelValue?: BentoInputFieldProps['modelValue'];\n\n /**\n * Configuration object for password field validation.\n *\n * This object defines the validation criteria and associated messages for a password field.\n * It includes the following properties:\n *\n * - `title`: The title displayed at the top of the validation hint.\n * - `suggestion`: The message displayed at the bottom of the validation hint, providing additional guidance.\n * - `extendDefaultValidation`: Set to true if you want to add your custom rules to the default validation instead of overriding the list.\n * - `list`: An array of callback functions to be executed on the value after each user input, validating the password against the specified rules.\n *\n * By default, the validation checks that:\n *\n * - The value has a minimum length of 12 characters.\n * - The value contains at least one lowercase letter.\n * - The value contains at least one uppercase letter.\n * - The value contains at least one numeric digit.\n * - The value contains at least one special character.\n *\n *\n */\n validation?: BentoInputFieldPasswordValidation;\n\n /**\n * Whether the password validation hint is displayed when the input field is activated via focus or input\n */\n withHint?: boolean;\n}\n\n/**\n * Private\n */\n\nexport enum BentoInputFieldPasswordType {\n TEXT = 'text',\n PASSWORD = 'password',\n}\n\nexport enum BentoInputFieldPasswordDefaultRule {\n MIN_LENGTH = 'minLength',\n REQUIRE_LOWERCASE = 'requireLowercase',\n REQUIRE_NUMERIC = 'requireNumeric',\n REQUIRE_SPECIAL_CHARACTER = 'requireSpecialCharacter',\n REQUIRE_UPPERCASE = 'requireUppercase',\n}\n","export default \"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\"","import { type BentoInputFieldValue } from '@/components/input-field';\n\nfunction stringifyValue(value: BentoInputFieldValue): string {\n return value?.toString() ?? '';\n}\n\n/**\n * Validates if the length of the provided value is greater than or equal to the specified length.\n *\n * @param value - The input value to check.\n * @param length - The minimum required length of the value. Defaults to 12.\n * @returns `true` if the length of the value is greater than or equal to the specified length, `false` otherwise.\n */\nexport function minLength(value: BentoInputFieldValue, length = 12): boolean {\n return stringifyValue(value).length >= length;\n}\n\n/**\n * Validates if the provided value contains at least one lowercase letter.\n *\n * @param value - The input value to check.\n * @returns `true` if the value contains at least one lowercase letter, `false` otherwise.\n */\nexport function requireLowercase(value: BentoInputFieldValue): boolean {\n return /[a-z]/.test(stringifyValue(value));\n}\n\n/**\n * Validates if the provided value contains at least one uppercase letter.\n *\n * @param value - The input value to check.\n * @returns `true` if the value contains at least one uppercase letter, `false` otherwise.\n */\nexport function requireUppercase(value: BentoInputFieldValue): boolean {\n return /[A-Z]/.test(stringifyValue(value));\n}\n\n/**\n * Validates if the provided value contains at least one numerical digit.\n *\n * @param value - The input value to check.\n * @returns `true` if the value contains at least one numerical digit, `false` otherwise.\n */\nexport function requireNumeric(value: BentoInputFieldValue): boolean {\n return /\\d/.test(stringifyValue(value));\n}\n\n/**\n * Validates if the provided value contains at least one special character (non-alphanumeric).\n *\n * @param value - The input value to check.\n * @returns `true` if the value contains at least one special character, `false` otherwise.\n */\nexport function requireSpecialCharacter(value: BentoInputFieldValue): boolean {\n return /[^a-zA-Z0-9]/.test(stringifyValue(value));\n}\n","<template>\n <div ref=\"inputFieldPasswordRef\">\n <bento-input-field\n ref=\"inputFieldPasswordInputRef\"\n v-bind=\"inputFieldArgs\"\n class=\"b-input-field-password__input\"\n autocapitalize=\"none\"\n autocorrect=\"off\"\n spellcheck=\"false\"\n @blur=\"onBlur\"\n @focus=\"onFocus\"\n @update:model-value=\"onUpdateModelValue\"\n @keydown=\"checkCapsLock\"\n @keyup=\"checkCapsLock\"\n >\n <template v-if=\"label\">{{ label }}</template>\n <template v-else><slot /></template>\n <template v-if=\"description\" #description>\n <slot name=\"description\">{{ description }}</slot>\n </template>\n\n <template v-if=\"isCapsLockOn\" #iconBefore>\n <div\n class=\"b-input-field-password__caps-lock-indicator\"\n @mouseenter=\"handleCapsLockMouseEnter\"\n @mouseleave=\"handleCapsLockMouseLeave\"\n >\n <bento-image\n ref=\"inputFieldPasswordCapsLockIconRef\"\n :src=\"CapsLockIcon\"\n :alt=\"t('capsLockEnabled')\"\n />\n </div>\n\n <tooltip\n v-if=\"inputFieldPasswordCapsLockIconRef\"\n :class=\"tooltipConditionalClass\"\n :content=\"t('capsLockEnabled')\"\n :disabled-focus-trap=\"true\"\n :fallback-position=\"['top', 'bottom']\"\n :is-shown=\"isTooltipDisplayed\"\n :target-element=\"inputFieldPasswordCapsLockIconRef\"\n />\n </template>\n\n <template v-if=\"!disabled\" #iconAfter>\n <bento-button variant=\"tertiary\" @click=\"toggleInputType\">\n <template #iconLeft>\n <show-icon v-if=\"!isPasswordReadable\" :svg-title=\"t('showPassword')\" />\n <hide-icon v-if=\"isPasswordReadable\" :svg-title=\"t('hidePassword')\" />\n </template>\n </bento-button>\n </template>\n </bento-input-field>\n\n <bento-popover\n v-if=\"hasValidations\"\n :open=\"isHintDisplayed\"\n :target-element=\"inputFieldPasswordInputRef\"\n :disable-focus-trap=\"true\"\n :aria-label=\"computedValidations.title\"\n :aria-describedby=\"validationListId\"\n position=\"right-start\"\n >\n <div :id=\"validationPopoverId\">\n <bento-typography v-if=\"computedValidations.title\" class=\"b-input-field-password__validation-title\">\n {{ computedValidations.title }}\n </bento-typography>\n\n <p v-if=\"!hasErrors\" class=\"b-input-field-password__validation-status--valid\" role=\"alert\">\n {{ t('validationValid') }}\n </p>\n\n <ul :id=\"validationListId\" class=\"b-input-field-password__validation-list\">\n <li\n v-for=\"(rule, index) in computedValidationList\"\n :key=\"index\"\n :class=\"passwordValidityConditionalClass[index]\"\n aria-live=\"polite\"\n aria-atomic=\"true\"\n >\n <span class=\"b-input-field-password__validation-list-icon\">\n <checkmark-circle-fill-icon\n v-if=\"passwordValidity[index]\"\n :svg-title=\"t('validationChecked')\"\n />\n\n <dot-icon v-else :svg-title=\"t('validationUnchecked')\" />\n </span>\n\n <bento-typography class=\"b-input-field-password__validation-list-text\" el=\"span\">\n {{ rule.label }}\n </bento-typography>\n </li>\n </ul>\n\n <bento-typography\n v-if=\"computedValidations.suggestion\"\n class=\"b-input-field-password__validation-suggestion\"\n >\n {{ computedValidations.suggestion }}\n </bento-typography>\n </div>\n </bento-popover>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { BentoButton } from '@/components/button';\n import { BentoImage } from '@/components/image';\n import { BentoInputField } from '@/components/input-field';\n import { BentoPopover } from '@/components/popover';\n import { BentoTypography } from '@/components/typography';\n import { Tooltip } from '@/internal';\n import type { BentoInputFieldProps } from '@/components/input-field/input-field.types';\n import {\n BentoInputFieldPasswordDefaultRule,\n type BentoInputFieldPasswordErrorsList,\n type BentoInputFieldPasswordProps,\n BentoInputFieldPasswordType,\n type BentoInputFieldPasswordValidation,\n type BentoInputFieldPasswordValidationListItem,\n } from './input-field-password.types';\n import CheckmarkCircleFillIcon from '@adyen/ui-assets-icons-16/vue/checkmark-circle-fill';\n import DotIcon from '@adyen/ui-assets-icons-16/vue/dot';\n import HideIcon from '@adyen/ui-assets-icons-16/vue/hide';\n import ShowIcon from '@adyen/ui-assets-icons-16/vue/show';\n import CapsLockIcon from './assets/capslock.svg';\n\n import { useFocusWithin, watchDebounced } from '@vueuse/core';\n import { computed, provide, ref, type SetupContext, useAttrs, watch } from 'vue';\n\n import { useI18n } from '@/utils/ts/i18n';\n\n import {\n minLength,\n requireLowercase,\n requireNumeric,\n requireSpecialCharacter,\n requireUppercase,\n } from '@/components/input-field-password/utilities/input-field-password.validation';\n import { generateUid } from '@/core/utils/ts';\n import { useFormFieldEmits } from '@/utils/ts/form-field/form-field';\n import { deprecate } from '@/utils/ts/deprecate';\n\n import messages from './messages.json';\n import { INPUT_FIELD_PARENT_COMPONENT_INJECTION_KEY } from '@/components/input-field/input-field.keys';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const { t, n } = useI18n<{ message: MessageSchema }>({ messages });\n\n const props = withDefaults(defineProps<BentoInputFieldPasswordProps>(), {\n condensed: false,\n debounceTime: DEBOUNCE_DURATION,\n description: null,\n disabled: false,\n disableValidation: false,\n errorMessage: null,\n label: null,\n optional: false,\n placeholder: '',\n readonly: false,\n required: false,\n tooltipText: null,\n validation: undefined,\n value: undefined,\n modelValue: undefined,\n withHint: true,\n });\n\n const emit = defineEmits<{\n /**\n * Emitted when the element has lost focus\n */\n (e: 'blur'): void;\n\n /**\n * Emitted when the element has received focus\n */\n (e: 'focus'): void;\n\n /**\n * Emits an `input:valid` event when the value is validated against the provided validations.\n * This emit has a debounce and is emitted after an `input` event.\n */\n (e: 'input:valid'): void;\n\n /**\n * Emits an `input:error` event when the value fails the validation.\n * This emit has a debounce and is emitted after an `input` event.\n */\n (e: 'input:error', errors: BentoInputFieldPasswordErrorsList): void;\n\n /**\n * Emits an `input` event whenever the value in the input is changed.\n * @deprecated Since v2.0.0. Use `v-model` or `update:model-value` instead.\n */\n (e: 'input', value: BentoInputFieldPasswordProps['value']): void;\n\n /**\n * Emits an `update:model-value` event whenever the value in the input is changed.\n */\n (e: 'update:model-value', value: BentoInputFieldPasswordProps['modelValue']): void;\n }>();\n\n const attrs = useAttrs();\n\n const inputType = ref(BentoInputFieldPasswordType.PASSWORD);\n const inputValue = ref(props.modelValue ?? props.value);\n const isHintDisplayed = ref(false);\n const isTouched = ref(false);\n const passwordValidity = ref<Array<boolean>>([]);\n const errorsList = ref<BentoInputFieldPasswordErrorsList>({});\n const capsLockTooltipTimeoutID = ref<ReturnType<typeof setTimeout>>(null);\n const isTooltipDisplayed = ref(false);\n const inputFieldPasswordRef = ref(null);\n const inputFieldPasswordInputRef = ref(null);\n const inputFieldPasswordCapsLockIconRef = ref(null);\n const isCapsLockOn = ref(false);\n\n provide(INPUT_FIELD_PARENT_COMPONENT_INJECTION_KEY, 'bento-input-field-password');\n\n const { focused } = useFocusWithin(inputFieldPasswordRef);\n\n const { emitValue } = useFormFieldEmits<BentoInputFieldPasswordProps['modelValue']>(emit);\n\n const validationListId = generateUid('validationListId');\n const validationPopoverId = generateUid('validationPopoverId');\n\n const isPasswordReadable = computed(() => inputType.value === BentoInputFieldPasswordType.TEXT);\n\n const passwordValidityConditionalClass = computed(() =>\n passwordValidity.value.map(validity =>\n validity\n ? 'b-input-field-password__validation-list--valid'\n : 'b-input-field-password__validation-list--invalid'\n )\n );\n\n const tooltipConditionalClass = computed(() =>\n capsLockTooltipTimeoutID.value ? 'b-input-field-password__input-tooltip--timed' : ''\n );\n\n const inputFieldArgs = computed<BentoInputFieldProps & SetupContext['attrs']>(() => ({\n ariaHidden: false,\n condensed: props.condensed,\n disabled: props.disabled,\n errorMessage: props.errorMessage,\n optional: props.optional,\n placeholder: props.placeholder,\n readonly: props.readonly,\n required: props.required,\n tooltipText: props.tooltipText,\n type: inputType.value,\n modelValue: inputValue.value,\n\n 'aria-haspopup': hasValidations.value ? 'dialog' : false,\n 'aria-describedby': hasValidations.value ? validationPopoverId : '',\n\n ...attrs,\n }));\n\n const computedValidations = computed<BentoInputFieldPasswordValidation>(() => {\n if (props.validation && !props.validation.extendDefaultValidation) {\n return props.validation;\n }\n\n const defaultValidationList = [\n {\n label: t('validationMinLength', { numberOfCharacters: n(MIN_PASSWORD_LENGTH) }),\n key: BentoInputFieldPasswordDefaultRule.MIN_LENGTH,\n validate: minLength,\n },\n {\n label: t('validationRequireLowercase', { numberOne: n(1) }),\n key: BentoInputFieldPasswordDefaultRule.REQUIRE_LOWERCASE,\n validate: requireLowercase,\n },\n {\n label: t('validationRequireUppercase', { numberOne: n(1) }),\n key: BentoInputFieldPasswordDefaultRule.REQUIRE_UPPERCASE,\n validate: requireUppercase,\n },\n {\n label: t('validationRequireNumeric', { numberOne: n(1) }),\n key: BentoInputFieldPasswordDefaultRule.REQUIRE_NUMERIC,\n validate: requireNumeric,\n },\n {\n label: t('validationRequireSpecialCharacter', { numberOne: n(1) }),\n key: BentoInputFieldPasswordDefaultRule.REQUIRE_SPECIAL_CHARACTER,\n validate: requireSpecialCharacter,\n },\n ];\n\n let validationList: Array<BentoInputFieldPasswordValidationListItem> = defaultValidationList;\n\n if (props.validation) {\n const defaultValidationKeys: Array<string> = defaultValidationList.map(rule => rule.key);\n const customRuleKeys = props.validation?.list?.map(rule => rule.key);\n // remove from the custom list any rules with default keys (rules that are overriding existent rules)\n const customValidationList =\n props.validation?.list?.filter(rule => !defaultValidationKeys.includes(rule.key)) ?? [];\n\n // loop through the default list and replace default rule with the custom rule if it exists\n const validationListWithOverrides = defaultValidationList.map(rule => {\n if (customRuleKeys?.includes(rule.key)) {\n const customRule = props.validation?.list?.find(customRule => customRule.key === rule.key);\n return customRule;\n } else {\n return rule;\n }\n });\n validationList = [...validationListWithOverrides, ...customValidationList];\n }\n\n return {\n title: props.validation?.title ?? t('validationTitle'),\n suggestion: props.validation?.suggestion ?? t('validationSuggestion'),\n list: validationList,\n };\n });\n\n const computedValidationList = computed(() => computedValidations.value?.list?.filter(rule => !rule.disabled));\n\n const hasErrors = computed(() => passwordValidity.value?.some(validation => !validation));\n const hasValidations = computed(\n () => inputFieldPasswordInputRef.value && computedValidations.value?.list?.length > 0\n );\n\n const checkCapsLock = (e: KeyboardEvent) => {\n // Check if getModifierState exists and is a function in case the user's browser is autofilling\n if (typeof e.getModifierState === 'function') {\n isCapsLockOn.value = e.getModifierState('CapsLock');\n }\n };\n\n const toggleInputType = () => {\n if (isPasswordReadable.value) {\n inputType.value = BentoInputFieldPasswordType.PASSWORD;\n } else {\n inputType.value = BentoInputFieldPasswordType.TEXT;\n }\n };\n\n const onUpdateModelValue = (value: string) => {\n if (props.disabled) {\n return;\n }\n\n inputValue.value = value;\n\n emitValue(inputValue.value);\n };\n\n const onFocus = () => {\n emit('focus');\n };\n\n const onBlur = () => {\n emit('blur');\n };\n\n const checkValidity = (value: BentoInputFieldPasswordProps['value']) => {\n const rulesValidityObj = computedValidationList.value?.map(validationItem => ({\n key: validationItem.key,\n label: validationItem.label,\n isValid: validationItem.validate(value, ...(validationItem.additionalArgs ?? [])),\n }));\n let customRuleIndex = 1;\n\n passwordValidity.value = rulesValidityObj?.map(error => error.isValid);\n\n errorsList.value = rulesValidityObj\n ?.filter(rule => !rule.isValid)\n .reduce((errorsObject, error) => {\n const key = error.key ?? `custom-rule-${customRuleIndex++}`;\n return {\n ...errorsObject,\n [key]: error.label,\n };\n }, {});\n };\n\n const handleCapsLockMouseLeave = () => {\n isTooltipDisplayed.value = false;\n capsLockTooltipTimeoutID.value = null;\n };\n\n const handleCapsLockMouseEnter = () => {\n isTooltipDisplayed.value = true;\n };\n\n watch(\n () => [props.value, props.modelValue],\n () => {\n inputValue.value = props.modelValue ?? props.value;\n }\n );\n\n watch(focused, focused => {\n // Always set dirty to true when blur occurs\n if (!focused) {\n isTouched.value = true;\n }\n\n // Disable validations & hint if \"disableValidation\" is \"true\"\n if (!props.disableValidation) {\n if (props.withHint) {\n isHintDisplayed.value = focused;\n }\n checkValidity(inputValue.value);\n }\n });\n\n watch(isCapsLockOn, isCapsLockOn => {\n if (!isCapsLockOn) {\n clearTimeout(capsLockTooltipTimeoutID.value);\n\n capsLockTooltipTimeoutID.value = null;\n isTooltipDisplayed.value = false;\n } else {\n isTooltipDisplayed.value = true;\n\n capsLockTooltipTimeoutID.value = setTimeout(() => {\n capsLockTooltipTimeoutID.value = null;\n isTooltipDisplayed.value = false;\n }, TOOLTIP_TIMEOUT);\n }\n });\n\n watchDebounced(\n inputValue,\n inputValue => {\n checkValidity(inputValue);\n\n if (!hasErrors.value) {\n emit('input:valid');\n } else {\n emit('input:error', errorsList.value);\n }\n },\n // wait for 0.5s before checking validity OR 2s of continuous typing\n { debounce: props.debounceTime, maxWait: DEBOUNCE_MAX_WAIT }\n );\n\n if (props.value) {\n deprecate(\n 'BentoInputFieldPassword \"value\" property',\n `The use of \"value\" prop in \"BentoInputFieldPassword\" is no longer supported.\n Use the \"v-model\" or \"model-value\" property instead.`,\n '2.0.0'\n );\n }\n</script>\n\n<script lang=\"ts\">\n const MIN_PASSWORD_LENGTH = 12;\n const DEBOUNCE_DURATION = 500;\n const DEBOUNCE_MAX_WAIT = 2000;\n const TOOLTIP_TIMEOUT = 2000;\n\n /**\n * The input field password is a component designed to support users' preference for entering values securely.\n * This is an extension of the `bento-input-field` component.\n *\n * @example\n * import { BentoInputFieldPassword } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoInputFieldPassword },\n * template: `\n * <bento-input-field-password\n * label=\"Label\"\n * error-message=\"Error\"\n * :validation=\"{\n * extendDefaultValidation: true,\n * list: [\n * { label: '18 characters', key: 'minLength', validate: minLength, additionalArgs: [18] },\n * { label: 'Always true', key: 'alwaysTrue', validate: () => true },\n * { key: 'requireSpecialCharacter', disabled: true }\n * ],\n * }\"\n * />\n * `\n * }\n */\n export default {\n i18n: { messages },\n name: 'bento-input-field-password',\n model: { prop: 'modelValue' },\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./input-field-password.scss\" />\n"],"names":["BentoInputFieldPasswordType","BentoInputFieldPasswordType2","BentoInputFieldPasswordDefaultRule","BentoInputFieldPasswordDefaultRule2","CapsLockIcon","stringifyValue","value","minLength","length","requireLowercase","requireUppercase","requireNumeric","requireSpecialCharacter","MIN_PASSWORD_LENGTH","DEBOUNCE_DURATION","DEBOUNCE_MAX_WAIT","TOOLTIP_TIMEOUT","__default__","messages","t","n","useI18n","props","__props","emit","__emit","attrs","useAttrs","inputType","ref","inputValue","isHintDisplayed","isTouched","passwordValidity","errorsList","capsLockTooltipTimeoutID","isTooltipDisplayed","inputFieldPasswordRef","inputFieldPasswordInputRef","inputFieldPasswordCapsLockIconRef","isCapsLockOn","provide","INPUT_FIELD_PARENT_COMPONENT_INJECTION_KEY","focused","useFocusWithin","emitValue","useFormFieldEmits","validationListId","generateUid","validationPopoverId","isPasswordReadable","computed","passwordValidityConditionalClass","validity","tooltipConditionalClass","inputFieldArgs","hasValidations","computedValidations","defaultValidationList","validationList","defaultValidationKeys","rule","customRuleKeys","customValidationList","customRule2","computedValidationList","hasErrors","validation","checkCapsLock","toggleInputType","onUpdateModelValue","onFocus","onBlur","checkValidity","rulesValidityObj","validationItem","customRuleIndex","error","errorsObject","key","handleCapsLockMouseLeave","handleCapsLockMouseEnter","watch","focused2","isCapsLockOn2","watchDebounced","inputValue2","deprecate"],"mappings":";;;;;;;;;;;;;;;;AA+FO,IAAAA,IAAA,kBAAAC,OACHA,EAAA,OAAA,QACAA,EAAA,WAAA,YAFQA,IAAAD,KAAA,CAAA,CAAA,GAKLE,IAAA,kBAAAC,OACHA,EAAA,aAAA,aACAA,EAAA,oBAAA,oBACAA,EAAA,kBAAA,kBACAA,EAAA,4BAAA,2BACAA,EAAA,oBAAA,oBALQA,IAAAD,KAAA,CAAA,CAAA;ACpGZ,MAAAE,KAAA;ACEA,SAAAC,EAAAC,GAAA;AACI,SAAAA,GAAA,SAAA,KAAA;AACJ;AASO,SAAAC,GAAAD,GAAAE,IAAA,IAAA;AACH,SAAAH,EAAAC,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AAwC,MAAA;AAEI,MAAAA,MACInD,GAAA,QAAA,KAIJV,EAAA,sBACIA,EAAA,aACIS,EAAA,QAAAoD,IAEJV,EAAA3C,EAAA,KAAA;AAAA,IACJ,CAAA,GAGJoD,EAAA1C,GAAA,CAAA4C,MAAA;AACI,MAAAA,KAMIhD,EAAA,QAAA,IAEAD,EAAA,QAAA,WAAA,MAAA;AACI,QAAAA,EAAA,QAAA,MACAC,EAAA,QAAA;AAAA,MAA2B,GAAApB,EAAA,MAT/B,aAAAmB,EAAA,KAAA,GAEAA,EAAA,QAAA,MACAC,EAAA,QAAA;AAAA,IAQJ,CAAA,GAGJiD;AAAA,MAAAvD;AAAA,MACI,CAAAwD,MAAA;AAEI,QAAAb,EAAAa,CAAA,GAEApB,EAAA,QAGI1C,EAAA,eAAAU,EAAA,KAAA,IAFAV,EAAA,aAAA;AAAA,MAGJ;AAAA;AAAA,MACJ,EAAA,UAAAF,EAAA,cAAA,SAAAP,GAAA;AAAA,IAE2D,GAG/DO,EAAA,SACIiE;AAAA,MAAA;AAAA,MACI;AAAA;AAAA,MACA;AAAA,IAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"input-field-password.00IVzd9Z.js","sources":["../../../vue2/src/components/input-field-password/input-field-password.types.ts","../../../vue2/src/components/input-field-password/assets/capslock.svg","../../../vue2/src/components/input-field-password/utilities/input-field-password.validation.ts","../../../vue2/src/components/input-field-password/input-field-password.vue"],"sourcesContent":["import type { BentoInputFieldProps, BentoInputFieldValue } from '@/components/input-field/input-field.types';\nimport { type FormField } from '../../types/form-field';\n\n/**\n * Public\n */\n\nexport interface BentoInputFieldPasswordValidationListItem {\n label?: string;\n key?: BentoInputFieldPasswordDefaultRuleKeys | string;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n validate?: (value: BentoInputFieldValue, ...args: Array<any>) => boolean;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n additionalArgs?: Array<any>;\n disabled?: boolean;\n}\n\nexport type BentoInputFieldPasswordDefaultRuleKeys =\n | 'minLength'\n | 'requireLowercase'\n | 'requireNumeric'\n | 'requireSpecialCharacter'\n | 'requireUppercase';\n\nexport type BentoInputFieldPasswordErrorsList = Record<BentoInputFieldPasswordDefaultRuleKeys | string, string>;\n\nexport interface BentoInputFieldPasswordValidation {\n title?: string;\n suggestion?: string;\n extendDefaultValidation?: boolean;\n list: Array<BentoInputFieldPasswordValidationListItem>;\n}\n\nexport interface BentoInputFieldPasswordProps extends FormField {\n /**\n * Reduces height of the input\n */\n condensed?: BentoInputFieldProps['condensed'];\n\n /**\n * The debounce time in milliseconds for running validation and emitting the `input` event after the user has stopped typing.\n * This helps to avoid excessive validation checks on every keystroke. Defaults to `500`.\n */\n debounceTime?: number;\n\n /**\n * Performs real-time validations over the input value. Default: `false`.\n * Disabling the option (set to `true`) will not run pre-defined validations or custom validations defined in the `validation` field.\n */\n disableValidation?: boolean;\n\n /**\n * Text displayed as the value of the input-field\n * @deprecated Since v2.0.0. Use `v-model` or `model-value` instead.\n */\n value?: BentoInputFieldProps['value'];\n\n /**\n * Text displayed as the value of the input-field\n */\n modelValue?: BentoInputFieldProps['modelValue'];\n\n /**\n * Configuration object for password field validation.\n *\n * This object defines the validation criteria and associated messages for a password field.\n * It includes the following properties:\n *\n * - `title`: The title displayed at the top of the validation hint.\n * - `suggestion`: The message displayed at the bottom of the validation hint, providing additional guidance.\n * - `extendDefaultValidation`: Set to true if you want to add your custom rules to the default validation instead of overriding the list.\n * - `list`: An array of callback functions to be executed on the value after each user input, validating the password against the specified rules.\n *\n * By default, the validation checks that:\n *\n * - The value has a minimum length of 12 characters.\n * - The value contains at least one lowercase letter.\n * - The value contains at least one uppercase letter.\n * - The value contains at least one numeric digit.\n * - The value contains at least one special character.\n *\n *\n */\n validation?: BentoInputFieldPasswordValidation;\n\n /**\n * Whether the password validation hint is displayed when the input field is activated via focus or input\n */\n withHint?: boolean;\n}\n\n/**\n * Private\n */\n\nexport enum BentoInputFieldPasswordType {\n TEXT = 'text',\n PASSWORD = 'password',\n}\n\nexport enum BentoInputFieldPasswordDefaultRule {\n MIN_LENGTH = 'minLength',\n REQUIRE_LOWERCASE = 'requireLowercase',\n REQUIRE_NUMERIC = 'requireNumeric',\n REQUIRE_SPECIAL_CHARACTER = 'requireSpecialCharacter',\n REQUIRE_UPPERCASE = 'requireUppercase',\n}\n","export default \"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\"","import { type BentoInputFieldValue } from '@/components/input-field';\n\nfunction stringifyValue(value: BentoInputFieldValue): string {\n return value?.toString() ?? '';\n}\n\n/**\n * Validates if the length of the provided value is greater than or equal to the specified length.\n *\n * @param value - The input value to check.\n * @param length - The minimum required length of the value. Defaults to 12.\n * @returns `true` if the length of the value is greater than or equal to the specified length, `false` otherwise.\n */\nexport function minLength(value: BentoInputFieldValue, length = 12): boolean {\n return stringifyValue(value).length >= length;\n}\n\n/**\n * Validates if the provided value contains at least one lowercase letter.\n *\n * @param value - The input value to check.\n * @returns `true` if the value contains at least one lowercase letter, `false` otherwise.\n */\nexport function requireLowercase(value: BentoInputFieldValue): boolean {\n return /[a-z]/.test(stringifyValue(value));\n}\n\n/**\n * Validates if the provided value contains at least one uppercase letter.\n *\n * @param value - The input value to check.\n * @returns `true` if the value contains at least one uppercase letter, `false` otherwise.\n */\nexport function requireUppercase(value: BentoInputFieldValue): boolean {\n return /[A-Z]/.test(stringifyValue(value));\n}\n\n/**\n * Validates if the provided value contains at least one numerical digit.\n *\n * @param value - The input value to check.\n * @returns `true` if the value contains at least one numerical digit, `false` otherwise.\n */\nexport function requireNumeric(value: BentoInputFieldValue): boolean {\n return /\\d/.test(stringifyValue(value));\n}\n\n/**\n * Validates if the provided value contains at least one special character (non-alphanumeric).\n *\n * @param value - The input value to check.\n * @returns `true` if the value contains at least one special character, `false` otherwise.\n */\nexport function requireSpecialCharacter(value: BentoInputFieldValue): boolean {\n return /[^a-zA-Z0-9]/.test(stringifyValue(value));\n}\n","<template>\n <div ref=\"inputFieldPasswordRef\">\n <bento-input-field\n ref=\"inputFieldPasswordInputRef\"\n v-bind=\"inputFieldArgs\"\n class=\"b-input-field-password__input\"\n autocapitalize=\"none\"\n autocorrect=\"off\"\n spellcheck=\"false\"\n @blur=\"onBlur\"\n @focus=\"onFocus\"\n @update:model-value=\"onUpdateModelValue\"\n @keydown=\"checkCapsLock\"\n @keyup=\"checkCapsLock\"\n >\n <template v-if=\"label\">{{ label }}</template>\n <template v-else><slot /></template>\n <template v-if=\"description\" #description>\n <slot name=\"description\">{{ description }}</slot>\n </template>\n\n <template v-if=\"isCapsLockOn\" #iconBefore>\n <div\n class=\"b-input-field-password__caps-lock-indicator\"\n @mouseenter=\"handleCapsLockMouseEnter\"\n @mouseleave=\"handleCapsLockMouseLeave\"\n >\n <bento-image\n ref=\"inputFieldPasswordCapsLockIconRef\"\n :src=\"CapsLockIcon\"\n :alt=\"t('capsLockEnabled')\"\n />\n </div>\n\n <tooltip\n v-if=\"inputFieldPasswordCapsLockIconRef\"\n :class=\"tooltipConditionalClass\"\n :content=\"t('capsLockEnabled')\"\n :disabled-focus-trap=\"true\"\n :fallback-position=\"['top', 'bottom']\"\n :is-shown=\"isTooltipDisplayed\"\n :target-element=\"inputFieldPasswordCapsLockIconRef\"\n />\n </template>\n\n <template v-if=\"!disabled\" #iconAfter>\n <bento-button variant=\"tertiary\" @click=\"toggleInputType\">\n <template #iconLeft>\n <show-icon v-if=\"!isPasswordReadable\" :svg-title=\"t('showPassword')\" />\n <hide-icon v-if=\"isPasswordReadable\" :svg-title=\"t('hidePassword')\" />\n </template>\n </bento-button>\n </template>\n </bento-input-field>\n\n <bento-popover\n v-if=\"hasValidations\"\n :open=\"isHintDisplayed\"\n :target-element=\"inputFieldPasswordInputRef\"\n :disable-focus-trap=\"true\"\n :aria-label=\"computedValidations.title\"\n :aria-describedby=\"validationListId\"\n position=\"right-start\"\n >\n <div :id=\"validationPopoverId\">\n <bento-typography v-if=\"computedValidations.title\" class=\"b-input-field-password__validation-title\">\n {{ computedValidations.title }}\n </bento-typography>\n\n <p v-if=\"!hasErrors\" class=\"b-input-field-password__validation-status--valid\" role=\"alert\">\n {{ t('validationValid') }}\n </p>\n\n <ul :id=\"validationListId\" class=\"b-input-field-password__validation-list\">\n <li\n v-for=\"(rule, index) in computedValidationList\"\n :key=\"index\"\n :class=\"passwordValidityConditionalClass[index]\"\n aria-live=\"polite\"\n aria-atomic=\"true\"\n >\n <span class=\"b-input-field-password__validation-list-icon\">\n <checkmark-circle-fill-icon\n v-if=\"passwordValidity[index]\"\n :svg-title=\"t('validationChecked')\"\n />\n\n <dot-icon v-else :svg-title=\"t('validationUnchecked')\" />\n </span>\n\n <bento-typography class=\"b-input-field-password__validation-list-text\" el=\"span\">\n {{ rule.label }}\n </bento-typography>\n </li>\n </ul>\n\n <bento-typography\n v-if=\"computedValidations.suggestion\"\n class=\"b-input-field-password__validation-suggestion\"\n >\n {{ computedValidations.suggestion }}\n </bento-typography>\n </div>\n </bento-popover>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { BentoButton } from '@/components/button';\n import { BentoImage } from '@/components/image';\n import { BentoInputField } from '@/components/input-field';\n import { BentoPopover } from '@/components/popover';\n import { BentoTypography } from '@/components/typography';\n import { Tooltip } from '@/internal';\n import type { BentoInputFieldProps } from '@/components/input-field/input-field.types';\n import {\n BentoInputFieldPasswordDefaultRule,\n type BentoInputFieldPasswordErrorsList,\n type BentoInputFieldPasswordProps,\n BentoInputFieldPasswordType,\n type BentoInputFieldPasswordValidation,\n type BentoInputFieldPasswordValidationListItem,\n } from './input-field-password.types';\n import CheckmarkCircleFillIcon from '@adyen/ui-assets-icons-16/vue/checkmark-circle-fill';\n import DotIcon from '@adyen/ui-assets-icons-16/vue/dot';\n import HideIcon from '@adyen/ui-assets-icons-16/vue/hide';\n import ShowIcon from '@adyen/ui-assets-icons-16/vue/show';\n import CapsLockIcon from './assets/capslock.svg';\n\n import { useFocusWithin, watchDebounced } from '@vueuse/core';\n import { computed, provide, ref, type SetupContext, useAttrs, watch } from 'vue';\n\n import { useI18n } from '@/utils/ts/i18n';\n\n import {\n minLength,\n requireLowercase,\n requireNumeric,\n requireSpecialCharacter,\n requireUppercase,\n } from '@/components/input-field-password/utilities/input-field-password.validation';\n import { generateUid } from '@/core/utils/ts';\n import { useFormFieldEmits } from '@/utils/ts/form-field/form-field';\n import { deprecate } from '@/utils/ts/deprecate';\n\n import messages from './messages.json';\n import { INPUT_FIELD_PARENT_COMPONENT_INJECTION_KEY } from '@/components/input-field/input-field.keys';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const { t, n } = useI18n<{ message: MessageSchema }>({ messages });\n\n const props = withDefaults(defineProps<BentoInputFieldPasswordProps>(), {\n condensed: false,\n debounceTime: DEBOUNCE_DURATION,\n description: null,\n disabled: false,\n disableValidation: false,\n errorMessage: null,\n label: null,\n optional: false,\n placeholder: '',\n readonly: false,\n required: false,\n tooltipText: null,\n validation: undefined,\n value: undefined,\n modelValue: undefined,\n withHint: true,\n });\n\n const emit = defineEmits<{\n /**\n * Emitted when the element has lost focus\n */\n (e: 'blur'): void;\n\n /**\n * Emitted when the element has received focus\n */\n (e: 'focus'): void;\n\n /**\n * Emits an `input:valid` event when the value is validated against the provided validations.\n * This emit has a debounce and is emitted after an `input` event.\n */\n (e: 'input:valid'): void;\n\n /**\n * Emits an `input:error` event when the value fails the validation.\n * This emit has a debounce and is emitted after an `input` event.\n */\n (e: 'input:error', errors: BentoInputFieldPasswordErrorsList): void;\n\n /**\n * Emits an `input` event whenever the value in the input is changed.\n * @deprecated Since v2.0.0. Use `v-model` or `update:model-value` instead.\n */\n (e: 'input', value: BentoInputFieldPasswordProps['value']): void;\n\n /**\n * Emits an `update:model-value` event whenever the value in the input is changed.\n */\n (e: 'update:model-value', value: BentoInputFieldPasswordProps['modelValue']): void;\n }>();\n\n const attrs = useAttrs();\n\n const inputType = ref(BentoInputFieldPasswordType.PASSWORD);\n const inputValue = ref(props.modelValue ?? props.value);\n const isHintDisplayed = ref(false);\n const isTouched = ref(false);\n const passwordValidity = ref<Array<boolean>>([]);\n const errorsList = ref<BentoInputFieldPasswordErrorsList>({});\n const capsLockTooltipTimeoutID = ref<ReturnType<typeof setTimeout>>(null);\n const isTooltipDisplayed = ref(false);\n const inputFieldPasswordRef = ref(null);\n const inputFieldPasswordInputRef = ref(null);\n const inputFieldPasswordCapsLockIconRef = ref(null);\n const isCapsLockOn = ref(false);\n\n provide(INPUT_FIELD_PARENT_COMPONENT_INJECTION_KEY, 'bento-input-field-password');\n\n const { focused } = useFocusWithin(inputFieldPasswordRef);\n\n const { emitValue } = useFormFieldEmits<BentoInputFieldPasswordProps['modelValue']>(emit);\n\n const validationListId = generateUid('validationListId');\n const validationPopoverId = generateUid('validationPopoverId');\n\n const isPasswordReadable = computed(() => inputType.value === BentoInputFieldPasswordType.TEXT);\n\n const passwordValidityConditionalClass = computed(() =>\n passwordValidity.value.map(validity =>\n validity\n ? 'b-input-field-password__validation-list--valid'\n : 'b-input-field-password__validation-list--invalid'\n )\n );\n\n const tooltipConditionalClass = computed(() =>\n capsLockTooltipTimeoutID.value ? 'b-input-field-password__input-tooltip--timed' : ''\n );\n\n const inputFieldArgs = computed<BentoInputFieldProps & SetupContext['attrs']>(() => ({\n ariaHidden: false,\n condensed: props.condensed,\n disabled: props.disabled,\n errorMessage: props.errorMessage,\n optional: props.optional,\n placeholder: props.placeholder,\n readonly: props.readonly,\n required: props.required,\n tooltipText: props.tooltipText,\n type: inputType.value,\n modelValue: inputValue.value,\n\n 'aria-haspopup': hasValidations.value ? 'dialog' : false,\n 'aria-describedby': hasValidations.value ? validationPopoverId : '',\n\n ...attrs,\n }));\n\n const computedValidations = computed<BentoInputFieldPasswordValidation>(() => {\n if (props.validation && !props.validation.extendDefaultValidation) {\n return props.validation;\n }\n\n const defaultValidationList = [\n {\n label: t('validationMinLength', { numberOfCharacters: n(MIN_PASSWORD_LENGTH) }),\n key: BentoInputFieldPasswordDefaultRule.MIN_LENGTH,\n validate: minLength,\n },\n {\n label: t('validationRequireLowercase', { numberOne: n(1) }),\n key: BentoInputFieldPasswordDefaultRule.REQUIRE_LOWERCASE,\n validate: requireLowercase,\n },\n {\n label: t('validationRequireUppercase', { numberOne: n(1) }),\n key: BentoInputFieldPasswordDefaultRule.REQUIRE_UPPERCASE,\n validate: requireUppercase,\n },\n {\n label: t('validationRequireNumeric', { numberOne: n(1) }),\n key: BentoInputFieldPasswordDefaultRule.REQUIRE_NUMERIC,\n validate: requireNumeric,\n },\n {\n label: t('validationRequireSpecialCharacter', { numberOne: n(1) }),\n key: BentoInputFieldPasswordDefaultRule.REQUIRE_SPECIAL_CHARACTER,\n validate: requireSpecialCharacter,\n },\n ];\n\n let validationList: Array<BentoInputFieldPasswordValidationListItem> = defaultValidationList;\n\n if (props.validation) {\n const defaultValidationKeys: Array<string> = defaultValidationList.map(rule => rule.key);\n const customRuleKeys = props.validation?.list?.map(rule => rule.key);\n // remove from the custom list any rules with default keys (rules that are overriding existent rules)\n const customValidationList =\n props.validation?.list?.filter(rule => !defaultValidationKeys.includes(rule.key)) ?? [];\n\n // loop through the default list and replace default rule with the custom rule if it exists\n const validationListWithOverrides = defaultValidationList.map(rule => {\n if (customRuleKeys?.includes(rule.key)) {\n const customRule = props.validation?.list?.find(customRule => customRule.key === rule.key);\n return customRule;\n } else {\n return rule;\n }\n });\n validationList = [...validationListWithOverrides, ...customValidationList];\n }\n\n return {\n title: props.validation?.title ?? t('validationTitle'),\n suggestion: props.validation?.suggestion ?? t('validationSuggestion'),\n list: validationList,\n };\n });\n\n const computedValidationList = computed(() => computedValidations.value?.list?.filter(rule => !rule.disabled));\n\n const hasErrors = computed(() => passwordValidity.value?.some(validation => !validation));\n const hasValidations = computed(\n () => inputFieldPasswordInputRef.value && computedValidations.value?.list?.length > 0\n );\n\n const checkCapsLock = (e: KeyboardEvent) => {\n // Check if getModifierState exists and is a function in case the user's browser is autofilling\n if (typeof e.getModifierState === 'function') {\n isCapsLockOn.value = e.getModifierState('CapsLock');\n }\n };\n\n const toggleInputType = () => {\n if (isPasswordReadable.value) {\n inputType.value = BentoInputFieldPasswordType.PASSWORD;\n } else {\n inputType.value = BentoInputFieldPasswordType.TEXT;\n }\n };\n\n const onUpdateModelValue = (value: string) => {\n if (props.disabled) {\n return;\n }\n\n inputValue.value = value;\n\n emitValue(inputValue.value);\n };\n\n const onFocus = () => {\n emit('focus');\n };\n\n const onBlur = () => {\n emit('blur');\n };\n\n const checkValidity = (value: BentoInputFieldPasswordProps['value']) => {\n const rulesValidityObj = computedValidationList.value?.map(validationItem => ({\n key: validationItem.key,\n label: validationItem.label,\n isValid: validationItem.validate(value, ...(validationItem.additionalArgs ?? [])),\n }));\n let customRuleIndex = 1;\n\n passwordValidity.value = rulesValidityObj?.map(error => error.isValid);\n\n errorsList.value = rulesValidityObj\n ?.filter(rule => !rule.isValid)\n .reduce((errorsObject, error) => {\n const key = error.key ?? `custom-rule-${customRuleIndex++}`;\n return {\n ...errorsObject,\n [key]: error.label,\n };\n }, {});\n };\n\n const handleCapsLockMouseLeave = () => {\n isTooltipDisplayed.value = false;\n capsLockTooltipTimeoutID.value = null;\n };\n\n const handleCapsLockMouseEnter = () => {\n isTooltipDisplayed.value = true;\n };\n\n watch(\n () => [props.value, props.modelValue],\n () => {\n inputValue.value = props.modelValue ?? props.value;\n }\n );\n\n watch(focused, focused => {\n // Always set dirty to true when blur occurs\n if (!focused) {\n isTouched.value = true;\n }\n\n // Disable validations & hint if \"disableValidation\" is \"true\"\n if (!props.disableValidation) {\n if (props.withHint) {\n isHintDisplayed.value = focused;\n }\n checkValidity(inputValue.value);\n }\n });\n\n watch(isCapsLockOn, isCapsLockOn => {\n if (!isCapsLockOn) {\n clearTimeout(capsLockTooltipTimeoutID.value);\n\n capsLockTooltipTimeoutID.value = null;\n isTooltipDisplayed.value = false;\n } else {\n isTooltipDisplayed.value = true;\n\n capsLockTooltipTimeoutID.value = setTimeout(() => {\n capsLockTooltipTimeoutID.value = null;\n isTooltipDisplayed.value = false;\n }, TOOLTIP_TIMEOUT);\n }\n });\n\n watchDebounced(\n inputValue,\n inputValue => {\n checkValidity(inputValue);\n\n if (!hasErrors.value) {\n emit('input:valid');\n } else {\n emit('input:error', errorsList.value);\n }\n },\n // wait for 0.5s before checking validity OR 2s of continuous typing\n { debounce: props.debounceTime, maxWait: DEBOUNCE_MAX_WAIT }\n );\n\n if (props.value) {\n deprecate(\n 'BentoInputFieldPassword \"value\" property',\n `The use of \"value\" prop in \"BentoInputFieldPassword\" is no longer supported.\n Use the \"v-model\" or \"model-value\" property instead.`,\n '2.0.0'\n );\n }\n</script>\n\n<script lang=\"ts\">\n const MIN_PASSWORD_LENGTH = 12;\n const DEBOUNCE_DURATION = 500;\n const DEBOUNCE_MAX_WAIT = 2000;\n const TOOLTIP_TIMEOUT = 2000;\n\n /**\n * The input field password is a component designed to support users' preference for entering values securely.\n * This is an extension of the `bento-input-field` component.\n *\n * @example\n * import { BentoInputFieldPassword } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoInputFieldPassword },\n * template: `\n * <bento-input-field-password\n * label=\"Label\"\n * error-message=\"Error\"\n * :validation=\"{\n * extendDefaultValidation: true,\n * list: [\n * { label: '18 characters', key: 'minLength', validate: minLength, additionalArgs: [18] },\n * { label: 'Always true', key: 'alwaysTrue', validate: () => true },\n * { key: 'requireSpecialCharacter', disabled: true }\n * ],\n * }\"\n * />\n * `\n * }\n */\n export default {\n i18n: { messages },\n name: 'bento-input-field-password',\n model: { prop: 'modelValue' },\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./input-field-password.scss\" />\n"],"names":["BentoInputFieldPasswordType","BentoInputFieldPasswordType2","BentoInputFieldPasswordDefaultRule","BentoInputFieldPasswordDefaultRule2","CapsLockIcon","stringifyValue","value","minLength","length","requireLowercase","requireUppercase","requireNumeric","requireSpecialCharacter","MIN_PASSWORD_LENGTH","DEBOUNCE_DURATION","DEBOUNCE_MAX_WAIT","TOOLTIP_TIMEOUT","__default__","messages","t","n","useI18n","props","__props","emit","__emit","attrs","useAttrs","inputType","ref","inputValue","isHintDisplayed","isTouched","passwordValidity","errorsList","capsLockTooltipTimeoutID","isTooltipDisplayed","inputFieldPasswordRef","inputFieldPasswordInputRef","inputFieldPasswordCapsLockIconRef","isCapsLockOn","provide","INPUT_FIELD_PARENT_COMPONENT_INJECTION_KEY","focused","useFocusWithin","emitValue","useFormFieldEmits","validationListId","generateUid","validationPopoverId","isPasswordReadable","computed","passwordValidityConditionalClass","validity","tooltipConditionalClass","inputFieldArgs","hasValidations","computedValidations","defaultValidationList","validationList","defaultValidationKeys","rule","customRuleKeys","customValidationList","customRule2","computedValidationList","hasErrors","validation","checkCapsLock","toggleInputType","onUpdateModelValue","onFocus","onBlur","checkValidity","rulesValidityObj","validationItem","customRuleIndex","error","errorsObject","key","handleCapsLockMouseLeave","handleCapsLockMouseEnter","watch","focused2","isCapsLockOn2","watchDebounced","inputValue2","deprecate"],"mappings":";;;;;;;;;;;;;;;;AA+FO,IAAAA,IAAA,kBAAAC,OACHA,EAAA,OAAA,QACAA,EAAA,WAAA,YAFQA,IAAAD,KAAA,CAAA,CAAA,GAKLE,IAAA,kBAAAC,OACH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