@adyen/bento-vue3 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.
- package/dist/@types/index.d.ts +4 -0
- package/dist/assets/accordion-item.css +1 -1
- package/dist/assets/action-bar.css +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/date-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/input-field-password.css +1 -1
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/menu.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/popover.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/use-cached-selected-values.css +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/chunks/{checkbox-group.Aqtco8Q5.js → checkbox-group.BKsddn67.js} +4 -4
- package/dist/chunks/{checkbox-group.Aqtco8Q5.js.map → checkbox-group.BKsddn67.js.map} +1 -1
- package/dist/chunks/{checkbox.Hl6-8Sai.js → checkbox.C1y3Ad4Z.js} +3 -3
- package/dist/chunks/{checkbox.Hl6-8Sai.js.map → checkbox.C1y3Ad4Z.js.map} +1 -1
- package/dist/chunks/{code-snippet.DyAfzpUj.js → code-snippet.CcWkFdEq.js} +3 -3
- package/dist/chunks/{code-snippet.DyAfzpUj.js.map → code-snippet.CcWkFdEq.js.map} +1 -1
- package/dist/chunks/{controls-group.D32ggMrj.js → controls-group.DD1m4EKn.js} +2 -2
- package/dist/chunks/{controls-group.D32ggMrj.js.map → controls-group.DD1m4EKn.js.map} +1 -1
- package/dist/chunks/{copy.BFMgEWBq.js → copy.DqckFHHS.js} +2 -2
- package/dist/chunks/{copy.BFMgEWBq.js.map → copy.DqckFHHS.js.map} +1 -1
- package/dist/chunks/{dashed-underline.DPWO9ADi.js → dashed-underline.ywc0ydgS.js} +2 -2
- package/dist/chunks/{dashed-underline.DPWO9ADi.js.map → dashed-underline.ywc0ydgS.js.map} +1 -1
- package/dist/chunks/data-grid.D0De1biC.js +3773 -0
- package/dist/chunks/data-grid.D0De1biC.js.map +1 -0
- package/dist/chunks/{date-picker.DGj3tbf8.js → date-picker.BLYOus7e.js} +20 -20
- package/dist/chunks/date-picker.BLYOus7e.js.map +1 -0
- package/dist/chunks/{date-range-picker.BJm2xOoG.js → date-range-picker._0XU4TRk.js} +5 -5
- package/dist/chunks/{date-range-picker.BJm2xOoG.js.map → date-range-picker._0XU4TRk.js.map} +1 -1
- package/dist/chunks/{dropdown-tag.CQMkfl3K.js → dropdown-tag.JTxCvtZL.js} +3 -3
- package/dist/chunks/{dropdown-tag.CQMkfl3K.js.map → dropdown-tag.JTxCvtZL.js.map} +1 -1
- package/dist/chunks/{dropdown.BPQS22Kl.js → dropdown.Bz5hTRFH.js} +159 -159
- package/dist/chunks/dropdown.Bz5hTRFH.js.map +1 -0
- package/dist/chunks/{error-message.C9YtK-P0.js → error-message.DZWphzoT.js} +2 -2
- package/dist/chunks/{error-message.C9YtK-P0.js.map → error-message.DZWphzoT.js.map} +1 -1
- package/dist/chunks/{file-uploader.CXi2dHhF.js → file-uploader.C8DwUCMp.js} +3 -3
- package/dist/chunks/{file-uploader.CXi2dHhF.js.map → file-uploader.C8DwUCMp.js.map} +1 -1
- package/dist/chunks/{filter-bar.BFnsLrta.js → filter-bar.ChPG7oJN.js} +10 -10
- package/dist/chunks/{filter-bar.BFnsLrta.js.map → filter-bar.ChPG7oJN.js.map} +1 -1
- package/dist/chunks/{header-with-views.CCSJ1mUs.js → header-with-views.DkoDjkyK.js} +4 -4
- package/dist/chunks/{header-with-views.CCSJ1mUs.js.map → header-with-views.DkoDjkyK.js.map} +1 -1
- package/dist/chunks/{info-icon.BOxWZsrW.js → info-icon.CpGwbhZQ.js} +2 -2
- package/dist/chunks/{info-icon.BOxWZsrW.js.map → info-icon.CpGwbhZQ.js.map} +1 -1
- package/dist/chunks/{input-field-password.B5zx9e4K.js → input-field-password.nYZBZ1bM.js} +137 -134
- package/dist/chunks/input-field-password.nYZBZ1bM.js.map +1 -0
- package/dist/chunks/{input-field-phone-number.DqfmWaJ2.js → input-field-phone-number.Ck_1WdgH.js} +3 -3
- package/dist/chunks/{input-field-phone-number.DqfmWaJ2.js.map → input-field-phone-number.Ck_1WdgH.js.map} +1 -1
- package/dist/chunks/{input-field.CfsdWr4t.js → input-field.BdDrm776.js} +3 -3
- package/dist/chunks/{input-field.CfsdWr4t.js.map → input-field.BdDrm776.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.0fIXV0Bs.js → listbox-option-tag.0BK6jWO9.js} +2 -2
- package/dist/chunks/{listbox-option-tag.0fIXV0Bs.js.map → listbox-option-tag.0BK6jWO9.js.map} +1 -1
- package/dist/chunks/{pagination.BKyr5hq_.js → pagination.DbuaT-4D.js} +2 -2
- package/dist/chunks/{pagination.BKyr5hq_.js.map → pagination.DbuaT-4D.js.map} +1 -1
- package/dist/chunks/{radio-group.B7-_Wh8z.js → radio-group.435rdgzm.js} +4 -4
- package/dist/chunks/{radio-group.B7-_Wh8z.js.map → radio-group.435rdgzm.js.map} +1 -1
- package/dist/chunks/{rich-text-editor.BK2zdyOm.js → rich-text-editor.BDLncrV5.js} +4 -4
- package/dist/chunks/{rich-text-editor.BK2zdyOm.js.map → rich-text-editor.BDLncrV5.js.map} +1 -1
- package/dist/chunks/{search-bar.DgOHq0ns.js → search-bar.DzVNjmpW.js} +3 -3
- package/dist/chunks/{search-bar.DgOHq0ns.js.map → search-bar.DzVNjmpW.js.map} +1 -1
- package/dist/chunks/{secondary-nav.BHpoi5U4.js → secondary-nav.tId-4Wy2.js} +2 -2
- package/dist/chunks/{secondary-nav.BHpoi5U4.js.map → secondary-nav.tId-4Wy2.js.map} +1 -1
- package/dist/chunks/{segmented-control.CZpx9H-d.js → segmented-control.5-vlm8Gt.js} +2 -2
- package/dist/chunks/{segmented-control.CZpx9H-d.js.map → segmented-control.5-vlm8Gt.js.map} +1 -1
- package/dist/chunks/{selection-card-group.-8bXRhOW.js → selection-card-group.9wJy7FC2.js} +3 -3
- package/dist/chunks/{selection-card-group.-8bXRhOW.js.map → selection-card-group.9wJy7FC2.js.map} +1 -1
- package/dist/chunks/{structured-list-item.Ca1EGpL7.js → structured-list-item.DQzxNb_M.js} +4 -4
- package/dist/chunks/{structured-list-item.Ca1EGpL7.js.map → structured-list-item.DQzxNb_M.js.map} +1 -1
- package/dist/chunks/{summary-grid.types.CGJ5YLMz.js → summary-grid.types.BpS1z1-W.js} +5 -5
- package/dist/chunks/{summary-grid.types.CGJ5YLMz.js.map → summary-grid.types.BpS1z1-W.js.map} +1 -1
- package/dist/chunks/{tag.B1G_vwKM.js → tag.D3in0-Bp.js} +2 -2
- package/dist/chunks/{tag.B1G_vwKM.js.map → tag.D3in0-Bp.js.map} +1 -1
- package/dist/chunks/{textarea.CuTrFVEa.js → textarea.CV1HjB0x.js} +2 -2
- package/dist/chunks/{textarea.CuTrFVEa.js.map → textarea.CV1HjB0x.js.map} +1 -1
- package/dist/chunks/{timeline-item.Oovatubh.js → timeline-item.DUp8MmgZ.js} +4 -4
- package/dist/chunks/{timeline-item.Oovatubh.js.map → timeline-item.DUp8MmgZ.js.map} +1 -1
- package/dist/chunks/{tooltip.D2o0d8Xf.js → tooltip.VYPUHERk.js} +13 -13
- package/dist/chunks/tooltip.VYPUHERk.js.map +1 -0
- package/dist/chunks/use-cached-selected-values.CatIU1_1.js +1591 -0
- package/dist/chunks/use-cached-selected-values.CatIU1_1.js.map +1 -0
- package/dist/code-snippet.js +1 -1
- package/dist/dashed-underline.js +1 -1
- package/dist/data-grid.js +1 -1
- package/dist/date-picker.js +1 -1
- package/dist/date-range-picker.js +1 -1
- package/dist/dropdown.js +3 -3
- package/dist/file-uploader.js +1 -1
- package/dist/filter-bar.js +1 -1
- package/dist/header-with-views.js +1 -1
- package/dist/index.js +30 -30
- 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/internal.js +6 -6
- package/dist/pagination.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/structured-list.js +1 -1
- package/dist/summary-grid.js +1 -1
- package/dist/tag.js +1 -1
- package/dist/textarea.js +1 -1
- package/dist/timeline.js +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +5 -5
- package/dist/chunks/data-grid.BD6IwwRl.js +0 -3741
- package/dist/chunks/data-grid.BD6IwwRl.js.map +0 -1
- package/dist/chunks/date-picker.DGj3tbf8.js.map +0 -1
- package/dist/chunks/dropdown.BPQS22Kl.js.map +0 -1
- package/dist/chunks/input-field-password.B5zx9e4K.js.map +0 -1
- package/dist/chunks/tooltip.D2o0d8Xf.js.map +0 -1
- package/dist/chunks/use-cached-selected-values.swt0cdsA.js +0 -1524
- package/dist/chunks/use-cached-selected-values.swt0cdsA.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as n, resolveComponent as r, resolveDirective as s, withDirectives as p, createElementBlock as c, openBlock as a, createVNode as l } from "vue";
|
|
2
2
|
import { c as t } from "./popper-container.types.BCZMbVFD.js";
|
|
3
3
|
import "./events.FNmSWp_P.js";
|
|
4
|
-
import { B as m } from "./tooltip.
|
|
4
|
+
import { B as m } from "./tooltip.VYPUHERk.js";
|
|
5
5
|
import { I as f } from "./info.DcTs-Bzp.js";
|
|
6
6
|
import { _ } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
7
7
|
import "../assets/info-icon.css";
|
|
@@ -42,4 +42,4 @@ const k = /* @__PURE__ */ _(d, [["render", u], ["__scopeId", "data-v-b474d243"]]
|
|
|
42
42
|
export {
|
|
43
43
|
k as B
|
|
44
44
|
};
|
|
45
|
-
//# sourceMappingURL=info-icon.
|
|
45
|
+
//# sourceMappingURL=info-icon.CpGwbhZQ.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"info-icon.
|
|
1
|
+
{"version":3,"file":"info-icon.CpGwbhZQ.js","sources":["../../../vue2/src/components/info-icon/info-icon.vue"],"sourcesContent":["<template>\n <span v-bento-tooltip-directive:[tooltipPosition]=\"tooltipText\" :aria-label=\"tooltipText\" class=\"b-info-icon\">\n <info-icon :svg-title=\"tooltipText\" class=\"b-info-icon__svg\" />\n </span>\n</template>\n\n<script lang=\"ts\">\n import { defineComponent, PropType } from 'vue';\n import { PopperContainerPosition } from '@/components/popper-container';\n import { BentoTooltipDirective } from '@/directives';\n import InfoIcon from '@adyen/ui-assets-icons-16/vue/info';\n\n /**\n * @example\n * import { BentoInfoIcon } from '@adyen/adl-vue-components';\n *\n * export default {\n * components: { BentoInfoIcon },\n * template: `\n * <bento-info-icon tooltip-text=\"Text on hover\" />\n * `\n * }\n */\n export default defineComponent({\n name: 'bento-info-icon',\n components: { InfoIcon },\n directives: { BentoTooltipDirective },\n props: {\n /**\n * Text showed in the info-icon tooltip on hover\n */\n tooltipText: { type: String, required: true },\n\n /**\n * Position the tooltip should take if space is available. Defaults to 'auto'\n */\n tooltipPosition: {\n type: String as PropType<PopperContainerPosition | `${PopperContainerPosition}`>,\n default: PopperContainerPosition.AUTO,\n validator: (value: PopperContainerPosition) => Object.values(PopperContainerPosition).includes(value),\n },\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"@/core/components/info-icon/info-icon.scss\" />\n"],"names":["_sfc_main","defineComponent","InfoIcon","BentoTooltipDirective","PopperContainerPosition","value","_ctx"],"mappings":";;;;;;;AAuBI,MAAAA,IAAAC,EAAA;AAAA,EAA+B,MAAA;AAAA,EACrB,YAAA,EAAA,UAAAC,EAAA;AAAA,EACiB,YAAA,EAAA,uBAAAC,EAAA;AAAA,EACa,OAAA;AAAA;AAAA;AAAA;AAAA,IAC7B,aAAA,EAAA,MAAA,QAAA,UAAA,GAAA;AAAA;AAAA;AAAA;AAAA,IAIyC,iBAAA;AAAA,MAK3B,MAAA;AAAA,MACP,SAAAC,EAAA;AAAA,MAC2B,WAAA,CAAAC,MAAA,OAAA,OAAAD,CAAA,EAAA,SAAAC,CAAA;AAAA,IACmE;AAAA,EACxG;AAER,CAAA;;;;IAzC6G,cAAAC,EAAA;AAAA,IACzG,OAAA;AAAA,EAAA,GAAA;AAAA;MAA4D,aAAAA,EAAA;AAAA,MAFpE,OAAA;AAAA,IAAA,GAAA,MAAA,GAAA,CAAA,WAAA,CAAA;AAAA;;;;;"}
|
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { B as
|
|
3
|
-
import { _ as
|
|
4
|
-
import { B as
|
|
5
|
-
import { B as
|
|
6
|
-
import { B as
|
|
7
|
-
import { C as
|
|
8
|
-
import { D as
|
|
9
|
-
import { S as
|
|
10
|
-
import { e as
|
|
11
|
-
import { u as
|
|
12
|
-
import { g as
|
|
13
|
-
import { b as
|
|
14
|
-
import { T as
|
|
15
|
-
import { _ as
|
|
1
|
+
import { defineComponent as he, useAttrs as ke, ref as n, provide as Ee, computed as p, watch as D, createElementBlock as U, openBlock as r, createVNode as A, createBlock as v, createCommentVNode as _, unref as i, mergeProps as be, createSlots as we, withCtx as f, createTextVNode as P, toDisplayString as y, createElementVNode as S, normalizeClass as ee, Fragment as ye, renderList as Re } from "vue";
|
|
2
|
+
import { B as Ce } from "./button.AB0SOQMn.js";
|
|
3
|
+
import { _ as Le } from "./image.vue_vue_type_script_setup_true_lang.DQT2oNEF.js";
|
|
4
|
+
import { B as Te } from "./input-field.BdDrm776.js";
|
|
5
|
+
import { B as Ie } from "./popover.maCMPyz8.js";
|
|
6
|
+
import { B as W } from "./typography.DN5eC5ch.js";
|
|
7
|
+
import { C as Ue } from "./checkmark-circle-fill._6-d40ru.js";
|
|
8
|
+
import { D as Ae } from "./dot.ob6N-5Um.js";
|
|
9
|
+
import { S as Pe, H as Se } from "./show.CT4Augxb.js";
|
|
10
|
+
import { e as Ne, w as Ve } from "./index.FNUaPG4G.js";
|
|
11
|
+
import { u as Me } from "./i18n.B6g5VX0q.js";
|
|
12
|
+
import { g as ae } from "./generate-uid.NJ8tVoha.js";
|
|
13
|
+
import { b as qe } from "./dropdown.Bz5hTRFH.js";
|
|
14
|
+
import { T as Oe } from "./tooltip.VYPUHERk.js";
|
|
15
|
+
import { _ as Be } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
16
16
|
import "../assets/input-field-password.css";
|
|
17
|
-
var
|
|
18
|
-
const
|
|
19
|
-
function
|
|
17
|
+
var R = /* @__PURE__ */ ((a) => (a.TEXT = "text", a.PASSWORD = "password", a))(R || {}), E = /* @__PURE__ */ ((a) => (a.MIN_LENGTH = "minLength", a.REQUIRE_LOWERCASE = "requireLowercase", a.REQUIRE_NUMERIC = "requireNumeric", a.REQUIRE_SPECIAL_CHARACTER = "requireSpecialCharacter", a.REQUIRE_UPPERCASE = "requireUppercase", a))(E || {});
|
|
18
|
+
const He = "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 C(a) {
|
|
20
20
|
return (a == null ? void 0 : a.toString()) ?? "";
|
|
21
21
|
}
|
|
22
|
-
function
|
|
23
|
-
return
|
|
24
|
-
}
|
|
25
|
-
function De(a) {
|
|
26
|
-
return /[a-z]/.test(R(a));
|
|
22
|
+
function De(a, N = 12) {
|
|
23
|
+
return C(a).length >= N;
|
|
27
24
|
}
|
|
28
25
|
function We(a) {
|
|
29
|
-
return /[
|
|
26
|
+
return /[a-z]/.test(C(a));
|
|
30
27
|
}
|
|
31
28
|
function xe(a) {
|
|
32
|
-
return
|
|
29
|
+
return /[A-Z]/.test(C(a));
|
|
33
30
|
}
|
|
34
31
|
function Fe(a) {
|
|
35
|
-
return
|
|
32
|
+
return /\d/.test(C(a));
|
|
33
|
+
}
|
|
34
|
+
function Qe(a) {
|
|
35
|
+
return /[^a-zA-Z0-9]/.test(C(a));
|
|
36
36
|
}
|
|
37
|
-
const
|
|
37
|
+
const ie = {
|
|
38
38
|
"en-US": {
|
|
39
39
|
capsLockEnabled: "Caps lock on",
|
|
40
40
|
hidePassword: "Hide",
|
|
@@ -74,15 +74,15 @@ const te = {
|
|
|
74
74
|
validationSuggestion: "Evite símbolos de moeda ou letras acentuadas.",
|
|
75
75
|
validationTitle: "A senha deve conter pelo menos:"
|
|
76
76
|
}
|
|
77
|
-
},
|
|
77
|
+
}, Ze = ["id"], ze = {
|
|
78
78
|
key: 1,
|
|
79
79
|
class: "b-input-field-password__validation-status--valid",
|
|
80
80
|
role: "alert"
|
|
81
|
-
},
|
|
82
|
-
i18n: { messages:
|
|
81
|
+
}, Xe = ["id"], Ke = { class: "b-input-field-password__validation-list-icon" }, Ge = {
|
|
82
|
+
i18n: { messages: ie },
|
|
83
83
|
name: "bento-input-field-password"
|
|
84
|
-
},
|
|
85
|
-
...
|
|
84
|
+
}, Je = /* @__PURE__ */ he({
|
|
85
|
+
...Ge,
|
|
86
86
|
props: {
|
|
87
87
|
condensed: { type: Boolean, default: !1 },
|
|
88
88
|
disabled: { type: Boolean, default: !1 },
|
|
@@ -95,167 +95,170 @@ const te = {
|
|
|
95
95
|
validation: { default: void 0 },
|
|
96
96
|
withHint: { type: Boolean, default: !0 }
|
|
97
97
|
},
|
|
98
|
-
emits: ["input:valid", "input:error", "input"],
|
|
99
|
-
setup(a, { emit:
|
|
100
|
-
const { t: o } =
|
|
101
|
-
|
|
102
|
-
const { focused: oe } =
|
|
103
|
-
|
|
104
|
-
return e || l ? t.errorMessage : "";
|
|
105
|
-
}), ne = u(
|
|
106
|
-
() => L.value.map(
|
|
98
|
+
emits: ["blur", "focus", "input:valid", "input:error", "input"],
|
|
99
|
+
setup(a, { emit: N }) {
|
|
100
|
+
const { t: o } = Me({ messages: ie }), t = a, b = N, te = ke(), L = n(R.PASSWORD), g = n(t.value), x = n(!1), le = n(!1), T = n([]), F = n({}), h = n(null), k = n(!1), Q = n(null), V = n(null), M = n(null), q = n(!1);
|
|
101
|
+
Ee(qe, "bento-input-field-password");
|
|
102
|
+
const { focused: oe } = Ne(Q), Z = ae("validationListId"), z = ae("validationPopoverId"), O = p(() => L.value === R.TEXT), se = p(
|
|
103
|
+
() => T.value.map(
|
|
107
104
|
(e) => e ? "b-input-field-password__validation-list--valid" : "b-input-field-password__validation-list--invalid"
|
|
108
105
|
)
|
|
109
|
-
),
|
|
106
|
+
), ne = p(
|
|
110
107
|
() => h.value ? "b-input-field-password__input-tooltip--timed" : ""
|
|
111
|
-
),
|
|
108
|
+
), re = p(() => ({
|
|
112
109
|
ariaHidden: !1,
|
|
113
110
|
condensed: t.condensed,
|
|
114
111
|
disabled: t.disabled,
|
|
115
|
-
errorMessage:
|
|
112
|
+
errorMessage: t.errorMessage,
|
|
116
113
|
placeholder: t.placeholder,
|
|
117
114
|
readonly: t.readonly,
|
|
118
|
-
type:
|
|
115
|
+
type: L.value,
|
|
119
116
|
value: g.value,
|
|
120
|
-
"aria-haspopup":
|
|
121
|
-
"aria-describedby":
|
|
122
|
-
...
|
|
123
|
-
})), m =
|
|
124
|
-
var
|
|
117
|
+
"aria-haspopup": B.value ? "dialog" : !1,
|
|
118
|
+
"aria-describedby": B.value ? z : "",
|
|
119
|
+
...te
|
|
120
|
+
})), m = p(() => {
|
|
121
|
+
var u, d, s, w, I, $;
|
|
125
122
|
if (t.validation && !t.validation.extendDefaultValidation)
|
|
126
123
|
return t.validation;
|
|
127
124
|
const e = [
|
|
128
125
|
{
|
|
129
126
|
label: o("validationMinLength"),
|
|
130
127
|
key: E.MIN_LENGTH,
|
|
131
|
-
validate:
|
|
128
|
+
validate: De
|
|
132
129
|
},
|
|
133
130
|
{
|
|
134
131
|
label: o("validationRequireLowercase"),
|
|
135
132
|
key: E.REQUIRE_LOWERCASE,
|
|
136
|
-
validate:
|
|
133
|
+
validate: We
|
|
137
134
|
},
|
|
138
135
|
{
|
|
139
136
|
label: o("validationRequireUppercase"),
|
|
140
137
|
key: E.REQUIRE_UPPERCASE,
|
|
141
|
-
validate:
|
|
138
|
+
validate: xe
|
|
142
139
|
},
|
|
143
140
|
{
|
|
144
141
|
label: o("validationRequireNumeric"),
|
|
145
142
|
key: E.REQUIRE_NUMERIC,
|
|
146
|
-
validate:
|
|
143
|
+
validate: Fe
|
|
147
144
|
},
|
|
148
145
|
{
|
|
149
146
|
label: o("validationRequireSpecialCharacter"),
|
|
150
147
|
key: E.REQUIRE_SPECIAL_CHARACTER,
|
|
151
|
-
validate:
|
|
148
|
+
validate: Qe
|
|
152
149
|
}
|
|
153
150
|
];
|
|
154
151
|
let l = e;
|
|
155
152
|
if (t.validation) {
|
|
156
|
-
const
|
|
153
|
+
const me = e.map((c) => c.key), H = (d = (u = t.validation) == null ? void 0 : u.list) == null ? void 0 : d.map((c) => c.key), _e = ((w = (s = t.validation) == null ? void 0 : s.list) == null ? void 0 : w.filter((c) => !me.includes(c.key))) ?? [];
|
|
157
154
|
l = [...e.map((c) => {
|
|
158
|
-
var
|
|
159
|
-
return
|
|
160
|
-
}), ...
|
|
155
|
+
var Y, j;
|
|
156
|
+
return H != null && H.includes(c.key) ? (j = (Y = t.validation) == null ? void 0 : Y.list) == null ? void 0 : j.find((ge) => ge.key === c.key) : c;
|
|
157
|
+
}), ..._e];
|
|
161
158
|
}
|
|
162
159
|
return {
|
|
163
|
-
title: ((
|
|
164
|
-
suggestion: ((
|
|
160
|
+
title: ((I = t.validation) == null ? void 0 : I.title) ?? o("validationTitle"),
|
|
161
|
+
suggestion: (($ = t.validation) == null ? void 0 : $.suggestion) ?? o("validationSuggestion"),
|
|
165
162
|
list: l
|
|
166
163
|
};
|
|
167
|
-
}),
|
|
164
|
+
}), X = p(() => {
|
|
168
165
|
var e, l;
|
|
169
|
-
return (l = (e = m.value) == null ? void 0 : e.list) == null ? void 0 : l.filter((
|
|
170
|
-
}),
|
|
166
|
+
return (l = (e = m.value) == null ? void 0 : e.list) == null ? void 0 : l.filter((u) => !u.disabled);
|
|
167
|
+
}), K = p(() => {
|
|
171
168
|
var e;
|
|
172
|
-
return (e =
|
|
173
|
-
}),
|
|
169
|
+
return (e = T.value) == null ? void 0 : e.some((l) => !l);
|
|
170
|
+
}), B = p(
|
|
174
171
|
() => {
|
|
175
172
|
var e, l;
|
|
176
|
-
return
|
|
173
|
+
return V.value && ((l = (e = m.value) == null ? void 0 : e.list) == null ? void 0 : l.length) > 0;
|
|
177
174
|
}
|
|
178
|
-
),
|
|
175
|
+
), G = (e) => {
|
|
179
176
|
typeof e.getModifierState == "function" && (q.value = e.getModifierState("CapsLock"));
|
|
180
|
-
},
|
|
181
|
-
O.value ?
|
|
182
|
-
},
|
|
183
|
-
t.disabled || (g.value = e,
|
|
184
|
-
},
|
|
177
|
+
}, de = () => {
|
|
178
|
+
O.value ? L.value = R.PASSWORD : L.value = R.TEXT;
|
|
179
|
+
}, ce = (e) => {
|
|
180
|
+
t.disabled || (g.value = e, b("input", g.value));
|
|
181
|
+
}, ue = () => {
|
|
182
|
+
b("focus");
|
|
183
|
+
}, pe = () => {
|
|
184
|
+
b("blur");
|
|
185
|
+
}, J = (e) => {
|
|
185
186
|
var d;
|
|
186
|
-
const l = (d =
|
|
187
|
+
const l = (d = X.value) == null ? void 0 : d.map((s) => ({
|
|
187
188
|
key: s.key,
|
|
188
189
|
label: s.label,
|
|
189
190
|
isValid: s.validate(e, ...s.additionalArgs ?? [])
|
|
190
191
|
}));
|
|
191
|
-
let
|
|
192
|
-
|
|
193
|
-
const
|
|
192
|
+
let u = 1;
|
|
193
|
+
T.value = l == null ? void 0 : l.map((s) => s.isValid), F.value = l == null ? void 0 : l.filter((s) => !s.isValid).reduce((s, w) => {
|
|
194
|
+
const I = w.key ?? `custom-rule-${u++}`;
|
|
194
195
|
return {
|
|
195
196
|
...s,
|
|
196
|
-
[
|
|
197
|
+
[I]: w.label
|
|
197
198
|
};
|
|
198
199
|
}, {});
|
|
199
|
-
}, pe = () => {
|
|
200
|
-
k.value = !1, h.value = null;
|
|
201
200
|
}, ve = () => {
|
|
201
|
+
k.value = !1, h.value = null;
|
|
202
|
+
}, fe = () => {
|
|
202
203
|
k.value = !0;
|
|
203
204
|
};
|
|
204
|
-
return
|
|
205
|
+
return D(
|
|
205
206
|
() => t.value,
|
|
206
207
|
(e) => {
|
|
207
208
|
g.value = e;
|
|
208
209
|
}
|
|
209
|
-
),
|
|
210
|
-
e || (
|
|
211
|
-
}),
|
|
210
|
+
), D(oe, (e) => {
|
|
211
|
+
e || (le.value = !0), t.disableValidation || (t.withHint && (x.value = e), J(g.value));
|
|
212
|
+
}), D(q, (e) => {
|
|
212
213
|
e ? (k.value = !0, h.value = setTimeout(() => {
|
|
213
214
|
h.value = null, k.value = !1;
|
|
214
215
|
}, 2e3)) : (clearTimeout(h.value), h.value = null, k.value = !1);
|
|
215
216
|
}), Ve(
|
|
216
217
|
g,
|
|
217
218
|
(e) => {
|
|
218
|
-
|
|
219
|
+
J(e), K.value ? b("input:error", F.value) : b("input:valid");
|
|
219
220
|
},
|
|
220
221
|
// wait for 0.5s before checking validity OR 2s of continuous typing
|
|
221
222
|
{ debounce: 500, maxWait: 2e3 }
|
|
222
|
-
), (e, l) => (r(),
|
|
223
|
+
), (e, l) => (r(), U("div", {
|
|
223
224
|
ref_key: "inputFieldPasswordRef",
|
|
224
|
-
ref:
|
|
225
|
+
ref: Q
|
|
225
226
|
}, [
|
|
226
|
-
|
|
227
|
+
A(i(Te), be({
|
|
227
228
|
ref_key: "inputFieldPasswordInputRef",
|
|
228
|
-
ref:
|
|
229
|
-
},
|
|
229
|
+
ref: V
|
|
230
|
+
}, re.value, {
|
|
230
231
|
class: "b-input-field-password__input",
|
|
231
232
|
spellcheck: "false",
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
233
|
+
onBlur: pe,
|
|
234
|
+
onFocus: ue,
|
|
235
|
+
onInput: ce,
|
|
236
|
+
onKeydown: G,
|
|
237
|
+
onKeyup: G
|
|
235
238
|
}), we({
|
|
236
239
|
default: f(() => [
|
|
237
|
-
|
|
240
|
+
P(y(e.label), 1)
|
|
238
241
|
]),
|
|
239
242
|
_: 2
|
|
240
243
|
}, [
|
|
241
244
|
q.value ? {
|
|
242
245
|
name: "iconBefore",
|
|
243
246
|
fn: f(() => [
|
|
244
|
-
|
|
247
|
+
S("div", {
|
|
245
248
|
class: "b-input-field-password__caps-lock-indicator",
|
|
246
|
-
onMouseenter:
|
|
247
|
-
onMouseleave:
|
|
249
|
+
onMouseenter: fe,
|
|
250
|
+
onMouseleave: ve
|
|
248
251
|
}, [
|
|
249
|
-
|
|
252
|
+
A(i(Le), {
|
|
250
253
|
ref_key: "inputFieldPasswordCapsLockIconRef",
|
|
251
254
|
ref: M,
|
|
252
|
-
src: i(
|
|
255
|
+
src: i(He),
|
|
253
256
|
alt: i(o)("capsLockEnabled")
|
|
254
257
|
}, null, 8, ["src", "alt"])
|
|
255
258
|
], 32),
|
|
256
|
-
M.value ? (r(), v(i(
|
|
259
|
+
M.value ? (r(), v(i(Oe), {
|
|
257
260
|
key: 0,
|
|
258
|
-
class:
|
|
261
|
+
class: ee(ne.value),
|
|
259
262
|
content: i(o)("capsLockEnabled"),
|
|
260
263
|
"disabled-focus-trap": !0,
|
|
261
264
|
"fallback-position": ["top", "bottom"],
|
|
@@ -268,16 +271,16 @@ const te = {
|
|
|
268
271
|
e.disabled ? void 0 : {
|
|
269
272
|
name: "iconAfter",
|
|
270
273
|
fn: f(() => [
|
|
271
|
-
|
|
274
|
+
A(i(Ce), {
|
|
272
275
|
variant: "tertiary",
|
|
273
|
-
onClick:
|
|
276
|
+
onClick: de
|
|
274
277
|
}, {
|
|
275
278
|
iconLeft: f(() => [
|
|
276
|
-
O.value ? _("", !0) : (r(), v(i(
|
|
279
|
+
O.value ? _("", !0) : (r(), v(i(Pe), {
|
|
277
280
|
key: 0,
|
|
278
281
|
"svg-title": i(o)("showPassword")
|
|
279
282
|
}, null, 8, ["svg-title"])),
|
|
280
|
-
O.value ? (r(), v(i(
|
|
283
|
+
O.value ? (r(), v(i(Se), {
|
|
281
284
|
key: 1,
|
|
282
285
|
"svg-title": i(o)("hidePassword")
|
|
283
286
|
}, null, 8, ["svg-title"])) : _("", !0)
|
|
@@ -288,79 +291,79 @@ const te = {
|
|
|
288
291
|
key: "1"
|
|
289
292
|
}
|
|
290
293
|
]), 1040),
|
|
291
|
-
|
|
294
|
+
B.value ? (r(), v(i(Ie), {
|
|
292
295
|
key: 0,
|
|
293
|
-
open:
|
|
294
|
-
"target-element":
|
|
296
|
+
open: x.value,
|
|
297
|
+
"target-element": V.value,
|
|
295
298
|
"disable-focus-trap": !0,
|
|
296
299
|
"aria-label": m.value.title,
|
|
297
|
-
"aria-describedby": i(
|
|
300
|
+
"aria-describedby": i(Z),
|
|
298
301
|
position: "right-start"
|
|
299
302
|
}, {
|
|
300
303
|
default: f(() => [
|
|
301
|
-
|
|
302
|
-
m.value.title ? (r(), v(i(
|
|
304
|
+
S("div", { id: i(z) }, [
|
|
305
|
+
m.value.title ? (r(), v(i(W), {
|
|
303
306
|
key: 0,
|
|
304
307
|
class: "b-input-field-password__validation-title"
|
|
305
308
|
}, {
|
|
306
309
|
default: f(() => [
|
|
307
|
-
|
|
310
|
+
P(y(m.value.title), 1)
|
|
308
311
|
]),
|
|
309
312
|
_: 1
|
|
310
313
|
})) : _("", !0),
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
id: i(
|
|
314
|
+
K.value ? _("", !0) : (r(), U("p", ze, y(i(o)("validationValid")), 1)),
|
|
315
|
+
S("ul", {
|
|
316
|
+
id: i(Z),
|
|
314
317
|
class: "b-input-field-password__validation-list"
|
|
315
318
|
}, [
|
|
316
|
-
(r(!0),
|
|
319
|
+
(r(!0), U(ye, null, Re(X.value, (u, d) => (r(), U("li", {
|
|
317
320
|
key: d,
|
|
318
|
-
class:
|
|
321
|
+
class: ee(se.value[d]),
|
|
319
322
|
"aria-live": "polite",
|
|
320
323
|
"aria-atomic": "true"
|
|
321
324
|
}, [
|
|
322
|
-
|
|
323
|
-
|
|
325
|
+
S("span", Ke, [
|
|
326
|
+
T.value[d] ? (r(), v(i(Ue), {
|
|
324
327
|
key: 0,
|
|
325
328
|
"svg-title": i(o)("validationChecked")
|
|
326
|
-
}, null, 8, ["svg-title"])) : (r(), v(i(
|
|
329
|
+
}, null, 8, ["svg-title"])) : (r(), v(i(Ae), {
|
|
327
330
|
key: 1,
|
|
328
331
|
"svg-title": i(o)("validationUnchecked")
|
|
329
332
|
}, null, 8, ["svg-title"]))
|
|
330
333
|
]),
|
|
331
|
-
|
|
334
|
+
A(i(W), {
|
|
332
335
|
class: "b-input-field-password__validation-list-text",
|
|
333
336
|
el: "span"
|
|
334
337
|
}, {
|
|
335
338
|
default: f(() => [
|
|
336
|
-
|
|
339
|
+
P(y(u.label), 1)
|
|
337
340
|
]),
|
|
338
341
|
_: 2
|
|
339
342
|
}, 1024)
|
|
340
343
|
], 2))), 128))
|
|
341
|
-
], 8,
|
|
342
|
-
m.value.suggestion ? (r(), v(i(
|
|
344
|
+
], 8, Xe),
|
|
345
|
+
m.value.suggestion ? (r(), v(i(W), {
|
|
343
346
|
key: 2,
|
|
344
347
|
class: "b-input-field-password__validation-suggestion"
|
|
345
348
|
}, {
|
|
346
349
|
default: f(() => [
|
|
347
|
-
|
|
350
|
+
P(y(m.value.suggestion), 1)
|
|
348
351
|
]),
|
|
349
352
|
_: 1
|
|
350
353
|
})) : _("", !0)
|
|
351
|
-
], 8,
|
|
354
|
+
], 8, Ze)
|
|
352
355
|
]),
|
|
353
356
|
_: 1
|
|
354
357
|
}, 8, ["open", "target-element", "aria-label", "aria-describedby"])) : _("", !0)
|
|
355
358
|
], 512));
|
|
356
359
|
}
|
|
357
|
-
}),
|
|
360
|
+
}), ga = /* @__PURE__ */ Be(Je, [["__scopeId", "data-v-5d8d35f2"]]);
|
|
358
361
|
export {
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
362
|
+
xe as a,
|
|
363
|
+
Fe as b,
|
|
364
|
+
Qe as c,
|
|
365
|
+
ga as i,
|
|
366
|
+
De as m,
|
|
367
|
+
We as r
|
|
365
368
|
};
|
|
366
|
-
//# sourceMappingURL=input-field-password.
|
|
369
|
+
//# sourceMappingURL=input-field-password.nYZBZ1bM.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input-field-password.nYZBZ1bM.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';\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 = withDefaults(defineProps<BentoInputFieldPasswordProps>(), {\n condensed: false,\n disabled: false,\n disableValidation: false,\n label: null,\n errorMessage: null,\n placeholder: '',\n readonly: false,\n validation: undefined,\n value: 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 */\n (e: 'input', value: BentoInputFieldPasswordProps['value']): void;\n }>();\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","t","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","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","toggleInputType","onInput","onFocus","onBlur","checkValidity","rulesValidityObj","validationItem","customRuleIndex","error","errorsObject","key","handleCapsLockMouseLeave","handleCapsLockMouseEnter","watch","newValue","focused2","isCapsLockOn2","watchDebounced","inputValue2"],"mappings":";;;;;;;;;;;;;;;;AA2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, provide as ce, computed as U, onMounted as he, createBlock as ge, openBlock as $t, unref as me, mergeProps as ye, withCtx as ut, createElementBlock as ve, renderSlot as lt, Fragment as Ne, createTextVNode as pe, toDisplayString as Ce, nextTick as be } from "vue";
|
|
2
|
-
import { B as Pe } from "./input-field.
|
|
2
|
+
import { B as Pe } from "./input-field.BdDrm776.js";
|
|
3
3
|
import { u as Se } from "./i18n.B6g5VX0q.js";
|
|
4
|
-
import { b as Ee } from "./dropdown.
|
|
4
|
+
import { b as Ee } from "./dropdown.Bz5hTRFH.js";
|
|
5
5
|
import { p as Ae } from "./typography.DN5eC5ch.js";
|
|
6
6
|
import { a as Kt, u as xe } from "./use-country-phon-code.DVgE19zT.js";
|
|
7
7
|
import { _ as Ie } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
@@ -3103,4 +3103,4 @@ const Od = ["-", "(", ")", "/", "[", "]", ".", "~"], wd = (e, r, t) => {
|
|
|
3103
3103
|
export {
|
|
3104
3104
|
Kd as i
|
|
3105
3105
|
};
|
|
3106
|
-
//# sourceMappingURL=input-field-phone-number.
|
|
3106
|
+
//# sourceMappingURL=input-field-phone-number.Ck_1WdgH.js.map
|