@adyen/bento-vue2 1.63.2 → 1.64.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.
Files changed (121) hide show
  1. package/dist/@types/index.d.ts +4 -0
  2. package/dist/assets/accordion-item.css +1 -1
  3. package/dist/assets/action-bar.css +1 -1
  4. package/dist/assets/base-modal.css +1 -1
  5. package/dist/assets/card.css +1 -1
  6. package/dist/assets/data-grid.css +1 -1
  7. package/dist/assets/date-picker.css +1 -1
  8. package/dist/assets/dialog-page.css +1 -1
  9. package/dist/assets/dropdown.css +1 -1
  10. package/dist/assets/file-uploader.css +1 -1
  11. package/dist/assets/input-field-password.css +1 -1
  12. package/dist/assets/inspector.css +1 -1
  13. package/dist/assets/menu.css +1 -1
  14. package/dist/assets/modal-fullscreen.css +1 -1
  15. package/dist/assets/popover.css +1 -1
  16. package/dist/assets/sidepanel.css +1 -1
  17. package/dist/assets/use-cached-selected-values.css +1 -1
  18. package/dist/checkbox.js +2 -2
  19. package/dist/chunks/{checkbox-group.6y92U6AF.js → checkbox-group.DVX0GFm9.js} +4 -4
  20. package/dist/chunks/{checkbox-group.6y92U6AF.js.map → checkbox-group.DVX0GFm9.js.map} +1 -1
  21. package/dist/chunks/{checkbox.C9nJVvMq.js → checkbox.nHrvoKfp.js} +3 -3
  22. package/dist/chunks/{checkbox.C9nJVvMq.js.map → checkbox.nHrvoKfp.js.map} +1 -1
  23. package/dist/chunks/{code-snippet.CBU8Tlbs.js → code-snippet.C7eh-7Vy.js} +3 -3
  24. package/dist/chunks/{code-snippet.CBU8Tlbs.js.map → code-snippet.C7eh-7Vy.js.map} +1 -1
  25. package/dist/chunks/{controls-group.Dpe3TqAz.js → controls-group.BWAmz7Tg.js} +2 -2
  26. package/dist/chunks/{controls-group.Dpe3TqAz.js.map → controls-group.BWAmz7Tg.js.map} +1 -1
  27. package/dist/chunks/{copy.Co1MMqtM.js → copy.CXeLbvUP.js} +2 -2
  28. package/dist/chunks/{copy.Co1MMqtM.js.map → copy.CXeLbvUP.js.map} +1 -1
  29. package/dist/chunks/{dashed-underline.DD24UDCz.js → dashed-underline.CEaAmjDa.js} +2 -2
  30. package/dist/chunks/{dashed-underline.DD24UDCz.js.map → dashed-underline.CEaAmjDa.js.map} +1 -1
  31. package/dist/chunks/{data-grid.Cep-0zsO.js → data-grid.o64ltIur.js} +1105 -1076
  32. package/dist/chunks/data-grid.o64ltIur.js.map +1 -0
  33. package/dist/chunks/{date-picker.D65ieFdN.js → date-picker.Ba-lHyXs.js} +29 -29
  34. package/dist/chunks/{date-picker.D65ieFdN.js.map → date-picker.Ba-lHyXs.js.map} +1 -1
  35. package/dist/chunks/{date-range-picker.CNB28UaM.js → date-range-picker.BER92nnT.js} +21 -21
  36. package/dist/chunks/{date-range-picker.CNB28UaM.js.map → date-range-picker.BER92nnT.js.map} +1 -1
  37. package/dist/chunks/{dropdown-tag.DmVsDrL_.js → dropdown-tag.uNZs7yVF.js} +3 -3
  38. package/dist/chunks/{dropdown-tag.DmVsDrL_.js.map → dropdown-tag.uNZs7yVF.js.map} +1 -1
  39. package/dist/chunks/{dropdown.B_PWXFtT.js → dropdown.DZ1Ndonr.js} +211 -210
  40. package/dist/chunks/dropdown.DZ1Ndonr.js.map +1 -0
  41. package/dist/chunks/{error-message.BeExHHgv.js → error-message.1Em7Lis3.js} +2 -2
  42. package/dist/chunks/{error-message.BeExHHgv.js.map → error-message.1Em7Lis3.js.map} +1 -1
  43. package/dist/chunks/{file-uploader.RYWR99Nq.js → file-uploader.DyjdNLOa.js} +3 -3
  44. package/dist/chunks/{file-uploader.RYWR99Nq.js.map → file-uploader.DyjdNLOa.js.map} +1 -1
  45. package/dist/chunks/{filter-bar.DjUN3PeJ.js → filter-bar.BMDvL9EW.js} +10 -10
  46. package/dist/chunks/{filter-bar.DjUN3PeJ.js.map → filter-bar.BMDvL9EW.js.map} +1 -1
  47. package/dist/chunks/{header-with-views.Csgl4PSQ.js → header-with-views.CEfKLlVv.js} +4 -4
  48. package/dist/chunks/{header-with-views.Csgl4PSQ.js.map → header-with-views.CEfKLlVv.js.map} +1 -1
  49. package/dist/chunks/{info-icon.G8lKgclf.js → info-icon.B9aTl1nU.js} +2 -2
  50. package/dist/chunks/{info-icon.G8lKgclf.js.map → info-icon.B9aTl1nU.js.map} +1 -1
  51. package/dist/chunks/{input-field-password.CY3eRVpe.js → input-field-password.DI7W4ehj.js} +110 -109
  52. package/dist/chunks/input-field-password.DI7W4ehj.js.map +1 -0
  53. package/dist/chunks/{input-field-phone-number.CN5qZ0VL.js → input-field-phone-number.BXbNxQeN.js} +3 -3
  54. package/dist/chunks/{input-field-phone-number.CN5qZ0VL.js.map → input-field-phone-number.BXbNxQeN.js.map} +1 -1
  55. package/dist/chunks/{input-field.DKhsSYF8.js → input-field.-Pgtuotm.js} +3 -3
  56. package/dist/chunks/{input-field.DKhsSYF8.js.map → input-field.-Pgtuotm.js.map} +1 -1
  57. package/dist/chunks/{listbox-option-tag.DFmB_TuD.js → listbox-option-tag.D0Cql_R3.js} +2 -2
  58. package/dist/chunks/{listbox-option-tag.DFmB_TuD.js.map → listbox-option-tag.D0Cql_R3.js.map} +1 -1
  59. package/dist/chunks/{pagination.DvP8FqiW.js → pagination.CoM4szsH.js} +2 -2
  60. package/dist/chunks/{pagination.DvP8FqiW.js.map → pagination.CoM4szsH.js.map} +1 -1
  61. package/dist/chunks/{radio-group.CRDMTTyM.js → radio-group.CtPG_iiI.js} +4 -4
  62. package/dist/chunks/{radio-group.CRDMTTyM.js.map → radio-group.CtPG_iiI.js.map} +1 -1
  63. package/dist/chunks/{rich-text-editor.aSOSl4Rz.js → rich-text-editor.CLxVaskq.js} +4 -4
  64. package/dist/chunks/{rich-text-editor.aSOSl4Rz.js.map → rich-text-editor.CLxVaskq.js.map} +1 -1
  65. package/dist/chunks/{search-bar.Sh4A8UId.js → search-bar.BhQdvBh8.js} +3 -3
  66. package/dist/chunks/{search-bar.Sh4A8UId.js.map → search-bar.BhQdvBh8.js.map} +1 -1
  67. package/dist/chunks/{secondary-nav.BFtGx_IN.js → secondary-nav.CItGT9T3.js} +2 -2
  68. package/dist/chunks/{secondary-nav.BFtGx_IN.js.map → secondary-nav.CItGT9T3.js.map} +1 -1
  69. package/dist/chunks/{segmented-control.B-uxKqMN.js → segmented-control.DHZEfmT-.js} +2 -2
  70. package/dist/chunks/{segmented-control.B-uxKqMN.js.map → segmented-control.DHZEfmT-.js.map} +1 -1
  71. package/dist/chunks/{selection-card-group.CrWy35QU.js → selection-card-group.CoqBRUT8.js} +3 -3
  72. package/dist/chunks/{selection-card-group.CrWy35QU.js.map → selection-card-group.CoqBRUT8.js.map} +1 -1
  73. package/dist/chunks/{structured-list-item.DKEwF8n7.js → structured-list-item.tox2Kcb6.js} +4 -4
  74. package/dist/chunks/{structured-list-item.DKEwF8n7.js.map → structured-list-item.tox2Kcb6.js.map} +1 -1
  75. package/dist/chunks/{summary-grid.types.BgFtV5Qh.js → summary-grid.types.CkUIw703.js} +5 -5
  76. package/dist/chunks/{summary-grid.types.BgFtV5Qh.js.map → summary-grid.types.CkUIw703.js.map} +1 -1
  77. package/dist/chunks/{tag.BaSi2GVV.js → tag.CGkclKVL.js} +2 -2
  78. package/dist/chunks/{tag.BaSi2GVV.js.map → tag.CGkclKVL.js.map} +1 -1
  79. package/dist/chunks/{textarea.D7M7Jerq.js → textarea.BPeDUAPL.js} +2 -2
  80. package/dist/chunks/{textarea.D7M7Jerq.js.map → textarea.BPeDUAPL.js.map} +1 -1
  81. package/dist/chunks/{timeline-item.njO0X8KL.js → timeline-item.CS9ZDOsm.js} +4 -4
  82. package/dist/chunks/{timeline-item.njO0X8KL.js.map → timeline-item.CS9ZDOsm.js.map} +1 -1
  83. package/dist/chunks/{tooltip.DyZIyMZN.js → tooltip.wQsyAwkC.js} +15 -15
  84. package/dist/chunks/tooltip.wQsyAwkC.js.map +1 -0
  85. package/dist/chunks/use-cached-selected-values.C1CeSurp.js +1271 -0
  86. package/dist/chunks/use-cached-selected-values.C1CeSurp.js.map +1 -0
  87. package/dist/code-snippet.js +1 -1
  88. package/dist/dashed-underline.js +1 -1
  89. package/dist/data-grid.js +1 -1
  90. package/dist/date-picker.js +1 -1
  91. package/dist/date-range-picker.js +1 -1
  92. package/dist/dropdown.js +3 -3
  93. package/dist/file-uploader.js +1 -1
  94. package/dist/filter-bar.js +1 -1
  95. package/dist/header-with-views.js +1 -1
  96. package/dist/index.js +30 -30
  97. package/dist/info-icon.js +1 -1
  98. package/dist/input-field-password.js +1 -1
  99. package/dist/input-field-phone-number.js +1 -1
  100. package/dist/input-field.js +1 -1
  101. package/dist/internal.js +6 -6
  102. package/dist/pagination.js +1 -1
  103. package/dist/radio-group.js +1 -1
  104. package/dist/rich-text-editor.js +1 -1
  105. package/dist/search-bar.js +2 -2
  106. package/dist/secondary-nav.js +1 -1
  107. package/dist/segmented-control.js +1 -1
  108. package/dist/selection-card.js +1 -1
  109. package/dist/structured-list.js +1 -1
  110. package/dist/summary-grid.js +1 -1
  111. package/dist/tag.js +1 -1
  112. package/dist/textarea.js +1 -1
  113. package/dist/timeline.js +1 -1
  114. package/dist/web-types.json +9 -1
  115. package/package.json +6 -6
  116. package/dist/chunks/data-grid.Cep-0zsO.js.map +0 -1
  117. package/dist/chunks/dropdown.B_PWXFtT.js.map +0 -1
  118. package/dist/chunks/input-field-password.CY3eRVpe.js.map +0 -1
  119. package/dist/chunks/tooltip.DyZIyMZN.js.map +0 -1
  120. package/dist/chunks/use-cached-selected-values.CDBmVxYM.js +0 -1225
  121. package/dist/chunks/use-cached-selected-values.CDBmVxYM.js.map +0 -1
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as n } from "vue";
2
2
  import { d as i } from "./popper-container.DIFqmRsp.js";
3
3
  import { I as r } from "./info.CszJ0kMi.js";
4
- import { B as s } from "./tooltip.DyZIyMZN.js";
4
+ import { B as s } from "./tooltip.wQsyAwkC.js";
5
5
  import { n as a } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
6
6
  import "../assets/info-icon.css";
7
7
  const p = n({
@@ -38,4 +38,4 @@ const x = m.exports;
38
38
  export {
39
39
  x as B
40
40
  };
41
- //# sourceMappingURL=info-icon.G8lKgclf.js.map
41
+ //# sourceMappingURL=info-icon.B9aTl1nU.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"info-icon.G8lKgclf.js","sources":["../../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"],"mappings":";;;;;;AAuBA,MAAAA,IAAAC,EAAA;AAAA,EAAA,MAAA;AAAA,EACA,YAAA,EAAA,UAAAC,EAAA;AAAA,EACA,YAAA,EAAA,uBAAAC,EAAA;AAAA,EACA,OAAA;AAAA;AAAA;AAAA;AAAA,IACA,aAAA,EAAA,MAAA,QAAA,UAAA,GAAA;AAAA;AAAA;AAAA;AAAA,IAIA,iBAAA;AAAA,MAKA,MAAA;AAAA,MACA,SAAAC,EAAA;AAAA,MACA,WAAA,CAAAC,MAAA,OAAA,OAAAD,CAAA,EAAA,SAAAC,CAAA;AAAA,IACA;AAAA,EACA;AAEA,CAAA;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"info-icon.B9aTl1nU.js","sources":["../../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"],"mappings":";;;;;;AAuBA,MAAAA,IAAAC,EAAA;AAAA,EAAA,MAAA;AAAA,EACA,YAAA,EAAA,UAAAC,EAAA;AAAA,EACA,YAAA,EAAA,uBAAAC,EAAA;AAAA,EACA,OAAA;AAAA;AAAA;AAAA;AAAA,IACA,aAAA,EAAA,MAAA,QAAA,UAAA,GAAA;AAAA;AAAA;AAAA;AAAA,IAIA,iBAAA;AAAA,MAKA,MAAA;AAAA,MACA,SAAAC,EAAA;AAAA,MACA,WAAA,CAAAC,MAAA,OAAA,OAAAD,CAAA,EAAA,SAAAC,CAAA;AAAA,IACA;AAAA,EACA;AAEA,CAAA;;;;;;;;;;;;;"}
@@ -1,40 +1,40 @@
1
- import { defineComponent as le, useAttrs as ne, ref as n, provide as re, computed as d, watch as U } from "vue";
2
- import { B as de } from "./button.hF-nD1Og.js";
3
- import { B as ce } from "./image.C2D2hKat.js";
4
- import { B as ue } from "./input-field.DKhsSYF8.js";
5
- import { B as pe } from "./popover.B05xkQ4e.js";
6
- import { B as ve } from "./typography.J1v_SPG3.js";
7
- import { C as fe } from "./checkmark-circle-fill.BttTCjrM.js";
8
- import { D as me } from "./dot.BW9SneIk.js";
9
- import { S as _e, H as he } from "./show.B_mKPF6I.js";
10
- import { e as ge, w as Ce } from "./index.BdrLbvtJ.js";
11
- import { u as ke } from "./i18n.BQkEbtPM.js";
12
- import { g as z } from "./generate-uid.NJ8tVoha.js";
13
- import { b as we } from "./dropdown.B_PWXFtT.js";
14
- import { T as Le } from "./tooltip.DyZIyMZN.js";
1
+ import { defineComponent as ne, useAttrs as re, ref as n, provide as de, computed as c, watch as S } from "vue";
2
+ import { B as ce } from "./button.hF-nD1Og.js";
3
+ import { B as ue } from "./image.C2D2hKat.js";
4
+ import { B as pe } from "./input-field.-Pgtuotm.js";
5
+ import { B as ve } from "./popover.B05xkQ4e.js";
6
+ import { B as fe } from "./typography.J1v_SPG3.js";
7
+ import { C as me } from "./checkmark-circle-fill.BttTCjrM.js";
8
+ import { D as _e } from "./dot.BW9SneIk.js";
9
+ import { S as he, H as ge } from "./show.B_mKPF6I.js";
10
+ import { e as Ce, w as ke } from "./index.BdrLbvtJ.js";
11
+ import { u as we } from "./i18n.BQkEbtPM.js";
12
+ import { g as Z } from "./generate-uid.NJ8tVoha.js";
13
+ import { b as Le } from "./dropdown.DZ1Ndonr.js";
14
+ import { T as be } from "./tooltip.wQsyAwkC.js";
15
15
  import { n as Re } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
16
16
  import "../assets/input-field-password.css";
17
- var k = /* @__PURE__ */ ((s) => (s.TEXT = "text", s.PASSWORD = "password", s))(k || {}), _ = /* @__PURE__ */ ((s) => (s.MIN_LENGTH = "minLength", s.REQUIRE_LOWERCASE = "requireLowercase", s.REQUIRE_NUMERIC = "requireNumeric", s.REQUIRE_SPECIAL_CHARACTER = "requireSpecialCharacter", s.REQUIRE_UPPERCASE = "requireUppercase", s))(_ || {});
18
- const Ee = "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 w(s) {
20
- return (s == null ? void 0 : s.toString()) ?? "";
17
+ var k = /* @__PURE__ */ ((o) => (o.TEXT = "text", o.PASSWORD = "password", o))(k || {}), _ = /* @__PURE__ */ ((o) => (o.MIN_LENGTH = "minLength", o.REQUIRE_LOWERCASE = "requireLowercase", o.REQUIRE_NUMERIC = "requireNumeric", o.REQUIRE_SPECIAL_CHARACTER = "requireSpecialCharacter", o.REQUIRE_UPPERCASE = "requireUppercase", o))(_ || {});
18
+ const ye = "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 w(o) {
20
+ return (o == null ? void 0 : o.toString()) ?? "";
21
21
  }
22
- function be(s, t = 12) {
23
- return w(s).length >= t;
22
+ function Ee(o, t = 12) {
23
+ return w(o).length >= t;
24
24
  }
25
- function ye(s) {
26
- return /[a-z]/.test(w(s));
25
+ function Ie(o) {
26
+ return /[a-z]/.test(w(o));
27
27
  }
28
- function Ie(s) {
29
- return /[A-Z]/.test(w(s));
28
+ function Te(o) {
29
+ return /[A-Z]/.test(w(o));
30
30
  }
31
- function Te(s) {
32
- return /\d/.test(w(s));
31
+ function Pe(o) {
32
+ return /\d/.test(w(o));
33
33
  }
34
- function Pe(s) {
35
- return /[^a-zA-Z0-9]/.test(w(s));
34
+ function Ve(o) {
35
+ return /[^a-zA-Z0-9]/.test(w(o));
36
36
  }
37
- const Ve = {
37
+ const Se = {
38
38
  "en-US": {
39
39
  capsLockEnabled: "Caps lock on",
40
40
  hidePassword: "Hide",
@@ -74,11 +74,11 @@ const Ve = {
74
74
  validationSuggestion: "Evite símbolos de moeda ou letras acentuadas.",
75
75
  validationTitle: "A senha deve conter pelo menos:"
76
76
  }
77
- }, Se = {
78
- i18n: { messages: Ve },
77
+ }, Ae = {
78
+ i18n: { messages: Se },
79
79
  name: "bento-input-field-password"
80
- }, Ae = /* @__PURE__ */ le({
81
- ...Se,
80
+ }, Ue = /* @__PURE__ */ ne({
81
+ ...Ae,
82
82
  props: {
83
83
  condensed: { default: !1 },
84
84
  disabled: { default: !1 },
@@ -91,136 +91,137 @@ const Ve = {
91
91
  validation: { default: void 0 },
92
92
  withHint: { type: Boolean, default: !0 }
93
93
  },
94
- emits: ["input:valid", "input:error", "input"],
95
- setup(s, { emit: t }) {
96
- const a = s, e = 500, L = 2e3, v = 2e3, { t: c } = ke(), M = ne(), h = n(k.PASSWORD), u = n(a.value), q = n(!1), b = n(!1), R = n([]), y = n({}), p = n(null), f = n(!1), B = n(null), H = n(null), X = n(null), I = n(!1);
97
- re(we, "bento-input-field-password");
98
- const { focused: N } = ge(B), G = z("validationListId"), O = z("validationPopoverId"), x = d(() => h.value === k.TEXT), F = d(() => {
99
- const i = b.value && P.value, o = a.disableValidation && a.errorMessage;
100
- return i || o ? a.errorMessage : "";
101
- }), J = d(
102
- () => R.value.map(
94
+ emits: ["blur", "focus", "input:valid", "input:error", "input"],
95
+ setup(o, { emit: t }) {
96
+ const a = o, e = 500, L = 2e3, v = 2e3, { t: d } = we(), A = re(), h = n(k.PASSWORD), u = n(a.value), U = n(!1), q = n(!1), b = n([]), y = n({}), p = n(null), f = n(!1), B = n(null), M = n(null), z = n(null), E = n(!1);
97
+ de(Le, "bento-input-field-password");
98
+ const { focused: H } = Ce(B), X = Z("validationListId"), N = Z("validationPopoverId"), F = c(() => h.value === k.TEXT), G = c(
99
+ () => b.value.map(
103
100
  (i) => i ? "b-input-field-password__validation-list--valid" : "b-input-field-password__validation-list--invalid"
104
101
  )
105
- ), K = d(
102
+ ), J = c(
106
103
  () => p.value ? "b-input-field-password__input-tooltip--timed" : ""
107
- ), Y = d(() => ({
104
+ ), K = c(() => ({
108
105
  ariaHidden: !1,
109
106
  condensed: a.condensed,
110
107
  disabled: a.disabled,
111
- errorMessage: F.value,
108
+ errorMessage: a.errorMessage,
112
109
  placeholder: a.placeholder,
113
110
  readonly: a.readonly,
114
111
  type: h.value,
115
112
  value: u.value,
116
- "aria-haspopup": V.value ? "dialog" : !1,
117
- "aria-describedby": V.value ? O : "",
118
- ...M
119
- })), T = d(() => {
120
- var m, g, l, C, E, W;
113
+ "aria-haspopup": T.value ? "dialog" : !1,
114
+ "aria-describedby": T.value ? N : "",
115
+ ...A
116
+ })), I = c(() => {
117
+ var m, g, l, C, R, D;
121
118
  if (a.validation && !a.validation.extendDefaultValidation)
122
119
  return a.validation;
123
120
  const i = [
124
121
  {
125
- label: c("validationMinLength"),
122
+ label: d("validationMinLength"),
126
123
  key: _.MIN_LENGTH,
127
- validate: be
124
+ validate: Ee
128
125
  },
129
126
  {
130
- label: c("validationRequireLowercase"),
127
+ label: d("validationRequireLowercase"),
131
128
  key: _.REQUIRE_LOWERCASE,
132
- validate: ye
129
+ validate: Ie
133
130
  },
134
131
  {
135
- label: c("validationRequireUppercase"),
132
+ label: d("validationRequireUppercase"),
136
133
  key: _.REQUIRE_UPPERCASE,
137
- validate: Ie
134
+ validate: Te
138
135
  },
139
136
  {
140
- label: c("validationRequireNumeric"),
137
+ label: d("validationRequireNumeric"),
141
138
  key: _.REQUIRE_NUMERIC,
142
- validate: Te
139
+ validate: Pe
143
140
  },
144
141
  {
145
- label: c("validationRequireSpecialCharacter"),
142
+ label: d("validationRequireSpecialCharacter"),
146
143
  key: _.REQUIRE_SPECIAL_CHARACTER,
147
- validate: Pe
144
+ validate: Ve
148
145
  }
149
146
  ];
150
- let o = i;
147
+ let s = i;
151
148
  if (a.validation) {
152
- const ie = i.map((r) => r.key), A = (g = (m = a.validation) == null ? void 0 : m.list) == null ? void 0 : g.map((r) => r.key), se = ((C = (l = a.validation) == null ? void 0 : l.list) == null ? void 0 : C.filter((r) => !ie.includes(r.key))) ?? [];
153
- o = [...i.map((r) => {
154
- var Q, Z;
155
- return A != null && A.includes(r.key) ? (Z = (Q = a.validation) == null ? void 0 : Q.list) == null ? void 0 : Z.find((oe) => oe.key === r.key) : r;
149
+ const oe = i.map((r) => r.key), V = (g = (m = a.validation) == null ? void 0 : m.list) == null ? void 0 : g.map((r) => r.key), se = ((C = (l = a.validation) == null ? void 0 : l.list) == null ? void 0 : C.filter((r) => !oe.includes(r.key))) ?? [];
150
+ s = [...i.map((r) => {
151
+ var W, Q;
152
+ return V != null && V.includes(r.key) ? (Q = (W = a.validation) == null ? void 0 : W.list) == null ? void 0 : Q.find((le) => le.key === r.key) : r;
156
153
  }), ...se];
157
154
  }
158
155
  return {
159
- title: ((E = a.validation) == null ? void 0 : E.title) ?? c("validationTitle"),
160
- suggestion: ((W = a.validation) == null ? void 0 : W.suggestion) ?? c("validationSuggestion"),
161
- list: o
156
+ title: ((R = a.validation) == null ? void 0 : R.title) ?? d("validationTitle"),
157
+ suggestion: ((D = a.validation) == null ? void 0 : D.suggestion) ?? d("validationSuggestion"),
158
+ list: s
162
159
  };
163
- }), D = d(() => {
164
- var i, o;
165
- return (o = (i = T.value) == null ? void 0 : i.list) == null ? void 0 : o.filter((m) => !m.disabled);
166
- }), P = d(() => {
160
+ }), O = c(() => {
161
+ var i, s;
162
+ return (s = (i = I.value) == null ? void 0 : i.list) == null ? void 0 : s.filter((m) => !m.disabled);
163
+ }), x = c(() => {
167
164
  var i;
168
- return (i = R.value) == null ? void 0 : i.some((o) => !o);
169
- }), V = d(
165
+ return (i = b.value) == null ? void 0 : i.some((s) => !s);
166
+ }), T = c(
170
167
  () => {
171
- var i, o;
172
- return H.value && ((o = (i = T.value) == null ? void 0 : i.list) == null ? void 0 : o.length) > 0;
168
+ var i, s;
169
+ return M.value && ((s = (i = I.value) == null ? void 0 : i.list) == null ? void 0 : s.length) > 0;
173
170
  }
174
- ), $ = (i) => {
175
- typeof i.getModifierState == "function" && (I.value = i.getModifierState("CapsLock"));
176
- }, j = () => {
177
- x.value ? h.value = k.PASSWORD : h.value = k.TEXT;
178
- }, ee = (i) => {
171
+ ), Y = (i) => {
172
+ typeof i.getModifierState == "function" && (E.value = i.getModifierState("CapsLock"));
173
+ }, $ = () => {
174
+ F.value ? h.value = k.PASSWORD : h.value = k.TEXT;
175
+ }, j = (i) => {
179
176
  a.disabled || (u.value = i, t("input", u.value));
180
- }, S = (i) => {
177
+ }, ee = () => {
178
+ t("focus");
179
+ }, ae = () => {
180
+ t("blur");
181
+ }, P = (i) => {
181
182
  var g;
182
- const o = (g = D.value) == null ? void 0 : g.map((l) => ({
183
+ const s = (g = O.value) == null ? void 0 : g.map((l) => ({
183
184
  key: l.key,
184
185
  label: l.label,
185
186
  isValid: l.validate(i, ...l.additionalArgs ?? [])
186
187
  }));
187
188
  let m = 1;
188
- R.value = o == null ? void 0 : o.map((l) => l.isValid), y.value = o == null ? void 0 : o.filter((l) => !l.isValid).reduce((l, C) => {
189
- const E = C.key ?? `custom-rule-${m++}`;
189
+ b.value = s == null ? void 0 : s.map((l) => l.isValid), y.value = s == null ? void 0 : s.filter((l) => !l.isValid).reduce((l, C) => {
190
+ const R = C.key ?? `custom-rule-${m++}`;
190
191
  return {
191
192
  ...l,
192
- [E]: C.label
193
+ [R]: C.label
193
194
  };
194
195
  }, {});
195
- }, ae = () => {
196
- f.value = !1, p.value = null;
197
196
  }, te = () => {
197
+ f.value = !1, p.value = null;
198
+ }, ie = () => {
198
199
  f.value = !0;
199
200
  };
200
- return U(
201
+ return S(
201
202
  () => a.value,
202
203
  (i) => {
203
204
  u.value = i;
204
205
  }
205
- ), U(N, (i) => {
206
- i || (b.value = !0), a.disableValidation || (a.withHint && (q.value = i), S(u.value));
207
- }), U(I, (i) => {
206
+ ), S(H, (i) => {
207
+ i || (q.value = !0), a.disableValidation || (a.withHint && (U.value = i), P(u.value));
208
+ }), S(E, (i) => {
208
209
  i ? (f.value = !0, p.value = setTimeout(() => {
209
210
  p.value = null, f.value = !1;
210
211
  }, v)) : (clearTimeout(p.value), p.value = null, f.value = !1);
211
- }), Ce(
212
+ }), ke(
212
213
  u,
213
214
  (i) => {
214
- S(i), P.value ? t("input:error", y.value) : t("input:valid");
215
+ P(i), x.value ? t("input:error", y.value) : t("input:valid");
215
216
  },
216
217
  // wait for 0.5s before checking validity OR 2s of continuous typing
217
218
  { debounce: e, maxWait: L }
218
- ), { __sfc: !0, DEBOUNCE_DURATION: e, DEBOUNCE_MAX_WAIT: L, TOOLTIP_TIMEOUT: v, t: c, props: a, emit: t, attrs: M, inputType: h, inputValue: u, isHintDisplayed: q, isTouched: b, passwordValidity: R, errorsList: y, capsLockTooltipTimeoutID: p, isTooltipDisplayed: f, inputFieldPasswordRef: B, inputFieldPasswordInputRef: H, inputFieldPasswordCapsLockIconRef: X, isCapsLockOn: I, focused: N, validationListId: G, validationPopoverId: O, isPasswordReadable: x, computedErrorMessage: F, passwordValidityConditionalClass: J, tooltipConditionalClass: K, inputFieldArgs: Y, computedValidations: T, computedValidationList: D, hasErrors: P, hasValidations: V, checkCapsLock: $, toggleInputType: j, onInput: ee, checkValidity: S, handleCapsLockMouseLeave: ae, handleCapsLockMouseEnter: te, BentoButton: de, BentoImage: ce, BentoInputField: ue, BentoPopover: pe, BentoTypography: ve, Tooltip: Le, CheckmarkCircleFillIcon: fe, DotIcon: me, HideIcon: he, ShowIcon: _e, CapsLockIcon: Ee };
219
+ ), { __sfc: !0, DEBOUNCE_DURATION: e, DEBOUNCE_MAX_WAIT: L, TOOLTIP_TIMEOUT: v, t: d, props: a, emit: t, attrs: A, inputType: h, inputValue: u, isHintDisplayed: U, isTouched: q, passwordValidity: b, errorsList: y, capsLockTooltipTimeoutID: p, isTooltipDisplayed: f, inputFieldPasswordRef: B, inputFieldPasswordInputRef: M, inputFieldPasswordCapsLockIconRef: z, isCapsLockOn: E, focused: H, validationListId: X, validationPopoverId: N, isPasswordReadable: F, passwordValidityConditionalClass: G, tooltipConditionalClass: J, inputFieldArgs: K, computedValidations: I, computedValidationList: O, hasErrors: x, hasValidations: T, checkCapsLock: Y, toggleInputType: $, onInput: j, onFocus: ee, onBlur: ae, checkValidity: P, handleCapsLockMouseLeave: te, handleCapsLockMouseEnter: ie, BentoButton: ce, BentoImage: ue, BentoInputField: pe, BentoPopover: ve, BentoTypography: fe, Tooltip: be, CheckmarkCircleFillIcon: me, DotIcon: _e, HideIcon: ge, ShowIcon: he, CapsLockIcon: ye };
219
220
  }
220
221
  });
221
- var Ue = function() {
222
+ var qe = function() {
222
223
  var t = this, a = t._self._c, e = t._self._setupProxy;
223
- return a("div", { ref: "inputFieldPasswordRef" }, [a(e.BentoInputField, t._b({ ref: "inputFieldPasswordInputRef", staticClass: "b-input-field-password__input", attrs: { spellcheck: "false" }, on: { input: e.onInput, keydown: e.checkCapsLock, keyup: e.checkCapsLock }, scopedSlots: t._u([{ key: "default", fn: function() {
224
+ return a("div", { ref: "inputFieldPasswordRef" }, [a(e.BentoInputField, t._b({ ref: "inputFieldPasswordInputRef", staticClass: "b-input-field-password__input", attrs: { spellcheck: "false" }, on: { blur: e.onBlur, focus: e.onFocus, input: e.onInput, keydown: e.checkCapsLock, keyup: e.checkCapsLock }, scopedSlots: t._u([{ key: "default", fn: function() {
224
225
  return [t._v(t._s(t.label))];
225
226
  }, proxy: !0 }, e.isCapsLockOn ? { key: "iconBefore", fn: function() {
226
227
  return [a("div", { staticClass: "b-input-field-password__caps-lock-indicator", on: { mouseenter: e.handleCapsLockMouseEnter, mouseleave: e.handleCapsLockMouseLeave } }, [a(e.BentoImage, { ref: "inputFieldPasswordCapsLockIconRef", attrs: { src: e.CapsLockIcon, alt: e.t("capsLockEnabled") } })], 1), e.inputFieldPasswordCapsLockIconRef ? a(e.Tooltip, { class: e.tooltipConditionalClass, attrs: { content: e.t("capsLockEnabled"), "disabled-focus-trap": !0, "fallback-position": ["top", "bottom"], "is-shown": e.isTooltipDisplayed, "target-element": e.inputFieldPasswordCapsLockIconRef } }) : t._e()];
@@ -231,21 +232,21 @@ var Ue = function() {
231
232
  }, proxy: !0 }], null, !0) }, "bento-input-field", e.inputFieldArgs, !1)), e.hasValidations ? a(e.BentoPopover, { attrs: { open: e.isHintDisplayed, "target-element": e.inputFieldPasswordInputRef, "disable-focus-trap": !0, "aria-label": e.computedValidations.title, "aria-describedby": e.validationListId, position: "right-start" } }, [a("div", { attrs: { id: e.validationPopoverId } }, [e.computedValidations.title ? a(e.BentoTypography, { staticClass: "b-input-field-password__validation-title" }, [t._v(" " + t._s(e.computedValidations.title) + " ")]) : t._e(), e.hasErrors ? t._e() : a("p", { staticClass: "b-input-field-password__validation-status--valid", attrs: { role: "alert" } }, [t._v(" " + t._s(e.t("validationValid")) + " ")]), a("ul", { staticClass: "b-input-field-password__validation-list", attrs: { id: e.validationListId } }, t._l(e.computedValidationList, function(L, v) {
232
233
  return a("li", { key: v, class: e.passwordValidityConditionalClass[v], attrs: { "aria-live": "polite", "aria-atomic": "true" } }, [a("span", { staticClass: "b-input-field-password__validation-list-icon" }, [e.passwordValidity[v] ? a(e.CheckmarkCircleFillIcon, { attrs: { "svg-title": e.t("validationChecked") } }) : a(e.DotIcon, { attrs: { "svg-title": e.t("validationUnchecked") } })], 1), a(e.BentoTypography, { staticClass: "b-input-field-password__validation-list-text", attrs: { el: "span" } }, [t._v(" " + t._s(L.label) + " ")])], 1);
233
234
  }), 0), e.computedValidations.suggestion ? a(e.BentoTypography, { staticClass: "b-input-field-password__validation-suggestion" }, [t._v(" " + t._s(e.computedValidations.suggestion) + " ")]) : t._e()], 1)]) : t._e()], 1);
234
- }, Me = [], qe = /* @__PURE__ */ Re(
235
- Ae,
235
+ }, Be = [], Me = /* @__PURE__ */ Re(
236
236
  Ue,
237
- Me,
237
+ qe,
238
+ Be,
238
239
  !1,
239
240
  null,
240
- "67bc7893"
241
+ "f8eb3c42"
241
242
  );
242
- const je = qe.exports;
243
+ const ea = Me.exports;
243
244
  export {
244
- Ie as a,
245
- Te as b,
246
- Pe as c,
247
- je as i,
248
- be as m,
249
- ye as r
245
+ Te as a,
246
+ Pe as b,
247
+ Ve as c,
248
+ ea as i,
249
+ Ee as m,
250
+ Ie as r
250
251
  };
251
- //# sourceMappingURL=input-field-password.CY3eRVpe.js.map
252
+ //# sourceMappingURL=input-field-password.DI7W4ehj.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"input-field-password.DI7W4ehj.js","sources":["../../src/components/input-field-password/input-field-password.types.ts","../../src/components/input-field-password/assets/capslock.svg","../../src/components/input-field-password/utilities/input-field-password.validation.ts","../../src/components/input-field-password/input-field-password.vue"],"sourcesContent":["import type { BentoInputFieldProps, BentoInputFieldValue } from '@/components/input-field/input-field.types';\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: any[]) => boolean;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n additionalArgs?: 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: BentoInputFieldPasswordValidationListItem[];\n}\n\nexport interface BentoInputFieldPasswordProps {\n /**\n * Reduces height of the input\n */\n condensed?: BentoInputFieldProps['condensed'];\n\n /**\n * Disables the possibility of changing value in the input-field\n */\n disabled?: BentoInputFieldProps['disabled'];\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 * Renders input-field with an error state and the error message beneath the input box\n */\n errorMessage?: BentoInputFieldProps['errorMessage'];\n\n /**\n * Text displayed as the placeholder of the input-field\n */\n placeholder?: BentoInputFieldProps['placeholder'];\n\n /**\n * Setting this property to true will set the input field to read only state.\n */\n readonly?: BentoInputFieldProps['readonly'];\n\n /**\n * Text displayed as the value of the input-field\n */\n value?: BentoInputFieldProps['value'];\n\n /**\n * Label to be shown with the input field\n */\n label?: string;\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 { 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 spellcheck=\"false\"\n @blur=\"onBlur\"\n @focus=\"onFocus\"\n @input=\"onInput\"\n @keydown=\"checkCapsLock\"\n @keyup=\"checkCapsLock\"\n >\n <template #default>{{ label }}</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 BentoInputFieldPasswordErrorsList,\n type BentoInputFieldPasswordProps,\n BentoInputFieldPasswordType,\n BentoInputFieldPasswordValidation,\n 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, 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 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 DEBOUNCE_DURATION = 500;\n const DEBOUNCE_MAX_WAIT = 2000;\n const TOOLTIP_TIMEOUT = 2000;\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n\n const props = defineProps({\n condensed: { default: false },\n disabled: { default: false },\n disableValidation: { type: Boolean, default: false },\n errorMessage: { default: null },\n placeholder: { default: '' },\n readonly: { default: false },\n value: { default: undefined },\n label: { default: null },\n validation: { default: undefined },\n withHint: { type: Boolean, default: true }\n});\n\n const emit = defineEmits([\"blur\", \"focus\", \"input:valid\", \"input:error\", \"input\"]);\n\n const attrs = useAttrs();\n\n const inputType = ref(BentoInputFieldPasswordType.PASSWORD);\n const inputValue = ref(props.value);\n const isHintDisplayed = ref(false);\n const isTouched = ref(false);\n const passwordValidity = ref<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 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 placeholder: props.placeholder,\n readonly: props.readonly,\n type: inputType.value,\n value: 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'),\n key: BentoInputFieldPasswordDefaultRule.MIN_LENGTH,\n validate: minLength,\n },\n {\n label: t('validationRequireLowercase'),\n key: BentoInputFieldPasswordDefaultRule.REQUIRE_LOWERCASE,\n validate: requireLowercase,\n },\n {\n label: t('validationRequireUppercase'),\n key: BentoInputFieldPasswordDefaultRule.REQUIRE_UPPERCASE,\n validate: requireUppercase,\n },\n {\n label: t('validationRequireNumeric'),\n key: BentoInputFieldPasswordDefaultRule.REQUIRE_NUMERIC,\n validate: requireNumeric,\n },\n {\n label: t('validationRequireSpecialCharacter'),\n key: BentoInputFieldPasswordDefaultRule.REQUIRE_SPECIAL_CHARACTER,\n validate: requireSpecialCharacter,\n },\n ];\n\n let validationList: BentoInputFieldPasswordValidationListItem[] = defaultValidationList;\n\n if (props.validation) {\n const defaultValidationKeys: 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 onInput = (value: string) => {\n if (props.disabled) {\n return;\n }\n\n inputValue.value = value;\n\n emit('input', 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,\n newValue => {\n inputValue.value = newValue;\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: DEBOUNCE_DURATION, maxWait: DEBOUNCE_MAX_WAIT }\n );\n</script>\n\n<script lang=\"ts\">\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 };\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","__default__","messages","DEBOUNCE_DURATION","DEBOUNCE_MAX_WAIT","TOOLTIP_TIMEOUT","t","useI18n","attrs","useAttrs","inputType","ref","inputValue","props","isHintDisplayed","isTouched","passwordValidity","errorsList","capsLockTooltipTimeoutID","isTooltipDisplayed","inputFieldPasswordRef","inputFieldPasswordInputRef","inputFieldPasswordCapsLockIconRef","isCapsLockOn","provide","INPUT_FIELD_PARENT_COMPONENT_INJECTION_KEY","focused","useFocusWithin","validationListId","generateUid","validationPopoverId","isPasswordReadable","computed","passwordValidityConditionalClass","validity","tooltipConditionalClass","inputFieldArgs","hasValidations","computedValidations","defaultValidationList","validationList","defaultValidationKeys","rule","customRuleKeys","_b","_a","customValidationList","_d","_c","customRule2","_e","_f","computedValidationList","hasErrors","validation","checkCapsLock","e","toggleInputType","onInput","emit","onFocus","onBlur","checkValidity","rulesValidityObj","validationItem","customRuleIndex","error","errorsObject","key","handleCapsLockMouseLeave","handleCapsLockMouseEnter","watch","newValue","focused2","isCapsLockOn2","watchDebounced","inputValue2"],"mappings":";;;;;;;;;;;;;;;;AA2GY,IAAAA,IAAA,kBAAAC,OACRA,EAAA,OAAA,QACAA,EAAA,WAAA,YAFQA,IAAAD,KAAA,CAAA,CAAA,GAKAE,IAAA,kBAAAC,OACRA,EAAA,aAAA,aACAA,EAAA,oBAAA,oBACAA,EAAA,kBAAA,kBACAA,EAAA,4BAAA,2BACAA,EAAA,oBAAA,oBALQA,IAAAD,KAAA,CAAA,CAAA;AChHZ,MAAAE,KAAA;ACEA,SAAAC,EAAAC,GAAA;AACI,UAAAA,KAAA,gBAAAA,EAAA,eAAA;AACJ;AASgB,SAAAC,GAAAD,GAAAE,IAAA,IAAA;AACZ,SAAAH,EAAAC,CAAA,EAAA,UAAAE;AACJ;AAQO,SAAAC,GAAAH,GAAA;AACH,SAAA,QAAA,KAAAD,EAAAC,CAAA,CAAA;AACJ;AAQO,SAAAI,GAAAJ,GAAA;AACH,SAAA,QAAA,KAAAD,EAAAC,CAAA,CAAA;AACJ;AAQO,SAAAK,GAAAL,GAAA;AACH,SAAA,KAAA,KAAAD,EAAAC,CAAA,CAAA;AACJ;AAQO,SAAAM,GAAAN,GAAA;AACH,SAAA,eAAA,KAAAD,EAAAC,CAAA,CAAA;AACJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GCkXIO,KAAA;AAAA,EAAe,MAAA,EAAA,UAAAC,GAAA;AAAA,EACM,MAAA;AAErB;;;;;;;;;;;;;;;;iBA/RAC,IAAA,KACAC,IAAA,KACAC,IAAA,KAE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A;AAAA,IAE0D;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as oe, ref as G, provide as $e, computed as B, onMounted as ue, nextTick as le } from "vue";
2
- import { B as se } from "./input-field.DKhsSYF8.js";
2
+ import { B as se } from "./input-field.-Pgtuotm.js";
3
3
  import { u as fe } from "./i18n.BQkEbtPM.js";
4
- import { b as ce } from "./dropdown.B_PWXFtT.js";
4
+ import { b as ce } from "./dropdown.DZ1Ndonr.js";
5
5
  import { p as he } from "./typography.J1v_SPG3.js";
6
6
  import { a as jt, u as ge } from "./use-country-phon-code.DVgE19zT.js";
7
7
  import { n as me } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
@@ -3094,4 +3094,4 @@ const kd = Fd.exports;
3094
3094
  export {
3095
3095
  kd as i
3096
3096
  };
3097
- //# sourceMappingURL=input-field-phone-number.CN5qZ0VL.js.map
3097
+ //# sourceMappingURL=input-field-phone-number.BXbNxQeN.js.map