@adyen/bento-vue3 1.65.0 → 1.66.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 +445 -232
- package/dist/action-bar.js +1 -1
- package/dist/assets/accordion-item.css +1 -1
- package/dist/assets/action-bar.css +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/button-actions-with-menu.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/copy.css +1 -1
- package/dist/assets/data-grid-template.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/date.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/filter-bar.css +1 -1
- package/dist/assets/header.css +1 -1
- package/dist/assets/info-icon.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/pagination.css +1 -1
- package/dist/assets/popover.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/step.css +1 -1
- package/dist/assets/summary-grid.css +1 -1
- package/dist/assets/tab.css +1 -0
- package/dist/assets/textarea.css +1 -1
- package/dist/assets/use-cached-selected-values.css +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/chunks/{action-bar.BAfqAQjP.js → action-bar.OzhLTUKc.js} +38 -38
- package/dist/chunks/action-bar.OzhLTUKc.js.map +1 -0
- package/dist/chunks/button-actions-with-menu.xZYmwO7S.js +91 -0
- package/dist/chunks/button-actions-with-menu.xZYmwO7S.js.map +1 -0
- package/dist/chunks/calendar._oPk_A1C.js +2209 -0
- package/dist/chunks/calendar._oPk_A1C.js.map +1 -0
- package/dist/chunks/{checkbox-group.BKsddn67.js → checkbox-group.Dc5Olq0c.js} +4 -4
- package/dist/chunks/{checkbox-group.BKsddn67.js.map → checkbox-group.Dc5Olq0c.js.map} +1 -1
- package/dist/chunks/{checkbox.C1y3Ad4Z.js → checkbox.fkPJvdUo.js} +2 -2
- package/dist/chunks/{checkbox.C1y3Ad4Z.js.map → checkbox.fkPJvdUo.js.map} +1 -1
- package/dist/chunks/{code-snippet.Bj5SAyT-.js → code-snippet.DPIhpuKa.js} +3 -3
- package/dist/chunks/{code-snippet.Bj5SAyT-.js.map → code-snippet.DPIhpuKa.js.map} +1 -1
- package/dist/chunks/{controls-group.DD1m4EKn.js → controls-group.CrzkSu0U.js} +2 -2
- package/dist/chunks/{controls-group.DD1m4EKn.js.map → controls-group.CrzkSu0U.js.map} +1 -1
- package/dist/chunks/copy.RUoQOydT.js +118 -0
- package/dist/chunks/copy.RUoQOydT.js.map +1 -0
- package/dist/chunks/{dashboard-section.C6FNJuEz.js → dashboard-section.BmtN9b0B.js} +3 -3
- package/dist/chunks/{dashboard-section.C6FNJuEz.js.map → dashboard-section.BmtN9b0B.js.map} +1 -1
- package/dist/chunks/data-grid-template.DAuqLhPI.js +144 -0
- package/dist/chunks/data-grid-template.DAuqLhPI.js.map +1 -0
- package/dist/chunks/{data-grid.DroQMKSc.js → data-grid.BrYCmbPR.js} +10 -10
- package/dist/chunks/{data-grid.DroQMKSc.js.map → data-grid.BrYCmbPR.js.map} +1 -1
- package/dist/chunks/{date-picker.BuX2J2OW.js → date-picker.Bk4FNLyR.js} +33 -34
- package/dist/chunks/{date-picker.BuX2J2OW.js.map → date-picker.Bk4FNLyR.js.map} +1 -1
- package/dist/chunks/{date-range-picker.C2x1_xoz.js → date-range-picker.-YsRuGmp.js} +36 -37
- package/dist/chunks/{date-range-picker.C2x1_xoz.js.map → date-range-picker.-YsRuGmp.js.map} +1 -1
- package/dist/chunks/date.DSjCnSgL.js +163 -0
- package/dist/chunks/date.DSjCnSgL.js.map +1 -0
- package/dist/chunks/{dropdown-tag.Dm-1VD3B.js → dropdown-tag.BUDNO3d0.js} +2 -2
- package/dist/chunks/{dropdown-tag.Dm-1VD3B.js.map → dropdown-tag.BUDNO3d0.js.map} +1 -1
- package/dist/chunks/{dropdown.Bj6DK-2v.js → dropdown.usAqDecC.js} +307 -312
- package/dist/chunks/{dropdown.Bj6DK-2v.js.map → dropdown.usAqDecC.js.map} +1 -1
- package/dist/chunks/{error-message.DZWphzoT.js → error-message.DHMHq9bR.js} +2 -2
- package/dist/chunks/{error-message.DZWphzoT.js.map → error-message.DHMHq9bR.js.map} +1 -1
- package/dist/chunks/es6.n1ewaW31.js.map +1 -1
- package/dist/chunks/{file-uploader.C8DwUCMp.js → file-uploader.B_EI2fAc.js} +523 -523
- package/dist/chunks/file-uploader.B_EI2fAc.js.map +1 -0
- package/dist/chunks/{filter-bar.BvInaVGL.js → filter-bar.BxfaFHTk.js} +1004 -989
- package/dist/chunks/{filter-bar.BvInaVGL.js.map → filter-bar.BxfaFHTk.js.map} +1 -1
- package/dist/chunks/{get-date-locale.BN8xEjY0.js → get-date-locale.CAyOIbcp.js} +288 -649
- package/dist/chunks/get-date-locale.CAyOIbcp.js.map +1 -0
- package/dist/chunks/{header-with-views.De0oVJXS.js → header-with-views.COrWDbtU.js} +16 -16
- package/dist/chunks/{header-with-views.De0oVJXS.js.map → header-with-views.COrWDbtU.js.map} +1 -1
- package/dist/chunks/{header.Ckjp7n9t.js → header.DAEUKoX5.js} +62 -61
- package/dist/chunks/{header.Ckjp7n9t.js.map → header.DAEUKoX5.js.map} +1 -1
- package/dist/chunks/index.BrH1t1iu.js +407 -0
- package/dist/chunks/index.BrH1t1iu.js.map +1 -0
- package/dist/chunks/info-icon.DprUQ9fj.js +36 -0
- package/dist/chunks/info-icon.DprUQ9fj.js.map +1 -0
- package/dist/chunks/input-field-password.XrXAnMpT.js +369 -0
- package/dist/chunks/input-field-password.XrXAnMpT.js.map +1 -0
- package/dist/chunks/{input-field-phone-number.DVliTkE3.js → input-field-phone-number.CNurVdiF.js} +3 -3
- package/dist/chunks/{input-field-phone-number.DVliTkE3.js.map → input-field-phone-number.CNurVdiF.js.map} +1 -1
- package/dist/chunks/{input-field.xUQT0LXI.js → input-field.EOIwm2tq.js} +3 -3
- package/dist/chunks/{input-field.xUQT0LXI.js.map → input-field.EOIwm2tq.js.map} +1 -1
- package/dist/chunks/{pagination.D6A7TX6J.js → pagination._rYMF2W_.js} +168 -168
- package/dist/chunks/pagination._rYMF2W_.js.map +1 -0
- package/dist/chunks/{radio-group.435rdgzm.js → radio-group.H9A5QcNu.js} +3 -3
- package/dist/chunks/{radio-group.435rdgzm.js.map → radio-group.H9A5QcNu.js.map} +1 -1
- package/dist/chunks/{rich-text-editor.BDLncrV5.js → rich-text-editor.RD8aCPTi.js} +3 -3
- package/dist/chunks/{rich-text-editor.BDLncrV5.js.map → rich-text-editor.RD8aCPTi.js.map} +1 -1
- package/dist/chunks/{search-bar.Cngs3uYZ.js → search-bar.i7BY4IGB.js} +3 -3
- package/dist/chunks/{search-bar.Cngs3uYZ.js.map → search-bar.i7BY4IGB.js.map} +1 -1
- package/dist/chunks/{secondary-nav.ByCa4wiA.js → secondary-nav.DkRQsIx7.js} +2 -2
- package/dist/chunks/{secondary-nav.ByCa4wiA.js.map → secondary-nav.DkRQsIx7.js.map} +1 -1
- package/dist/chunks/{selection-card-group.9wJy7FC2.js → selection-card-group.B4xpnd-z.js} +3 -3
- package/dist/chunks/{selection-card-group.9wJy7FC2.js.map → selection-card-group.B4xpnd-z.js.map} +1 -1
- package/dist/chunks/step.BtNhPZAf.js +268 -0
- package/dist/chunks/step.BtNhPZAf.js.map +1 -0
- package/dist/chunks/{structured-list-item.DQzxNb_M.js → structured-list-item.BQbEDKhg.js} +3 -3
- package/dist/chunks/{structured-list-item.DQzxNb_M.js.map → structured-list-item.BQbEDKhg.js.map} +1 -1
- package/dist/chunks/summary-grid.types.BTr6x5cg.js +490 -0
- package/dist/chunks/summary-grid.types.BTr6x5cg.js.map +1 -0
- package/dist/chunks/tab.CAt51ksU.js +252 -0
- package/dist/chunks/tab.CAt51ksU.js.map +1 -0
- package/dist/chunks/{tabs.keys.Bc2pSKRw.js → tabs.keys.Cb4Vw5Jh.js} +3 -3
- package/dist/chunks/{tabs.keys.Bc2pSKRw.js.map → tabs.keys.Cb4Vw5Jh.js.map} +1 -1
- package/dist/chunks/{textarea.CV1HjB0x.js → textarea.DXSe9MHH.js} +83 -80
- package/dist/chunks/textarea.DXSe9MHH.js.map +1 -0
- package/dist/chunks/{timeline-item.DUp8MmgZ.js → timeline-item.Coz_LRD3.js} +10 -11
- package/dist/chunks/timeline-item.Coz_LRD3.js.map +1 -0
- package/dist/chunks/use-cached-selected-values.rqtiP4Nd.js +1649 -0
- package/dist/chunks/use-cached-selected-values.rqtiP4Nd.js.map +1 -0
- package/dist/code-snippet.js +1 -1
- package/dist/dashboard-template.js +1 -1
- package/dist/data-grid-template.js +1 -1
- package/dist/data-grid.js +1 -1
- package/dist/date-picker.js +2 -2
- package/dist/date-range-picker.js +2 -2
- package/dist/date.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/header.js +1 -1
- package/dist/index.js +34 -34
- 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/selection-card.js +1 -1
- package/dist/stepper.js +1 -1
- package/dist/structured-list.js +1 -1
- package/dist/styles/bento-dark.css +1 -0
- package/dist/styles/bento-light.css +1 -0
- package/dist/styles/bento.css +1 -0
- package/dist/styles/legacy.css +1 -0
- package/dist/styles/styleguide.css +1 -0
- package/dist/summary-grid.js +1 -1
- package/dist/tabs.js +1 -1
- package/dist/textarea.js +1 -1
- package/dist/timeline.js +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +5 -5
- package/dist/assets/tabs.css +0 -1
- package/dist/chunks/action-bar.BAfqAQjP.js.map +0 -1
- package/dist/chunks/button-actions-with-menu.D50ABuSV.js +0 -174
- package/dist/chunks/button-actions-with-menu.D50ABuSV.js.map +0 -1
- package/dist/chunks/calendar.CLpwW_-k.js +0 -1290
- package/dist/chunks/calendar.CLpwW_-k.js.map +0 -1
- package/dist/chunks/copy.DqckFHHS.js +0 -156
- package/dist/chunks/copy.DqckFHHS.js.map +0 -1
- package/dist/chunks/data-grid-template.DzIpssxc.js +0 -143
- package/dist/chunks/data-grid-template.DzIpssxc.js.map +0 -1
- package/dist/chunks/date.CKXySBQv.js +0 -995
- package/dist/chunks/date.CKXySBQv.js.map +0 -1
- package/dist/chunks/file-uploader.C8DwUCMp.js.map +0 -1
- package/dist/chunks/get-date-locale.BN8xEjY0.js.map +0 -1
- package/dist/chunks/index.BDuTpjD8.js +0 -40
- package/dist/chunks/index.BDuTpjD8.js.map +0 -1
- package/dist/chunks/index.DD7TppDb.js +0 -10
- package/dist/chunks/index.DD7TppDb.js.map +0 -1
- package/dist/chunks/info-icon.CpGwbhZQ.js +0 -45
- package/dist/chunks/info-icon.CpGwbhZQ.js.map +0 -1
- package/dist/chunks/input-field-password.CJOf1GlS.js +0 -369
- package/dist/chunks/input-field-password.CJOf1GlS.js.map +0 -1
- package/dist/chunks/pagination.D6A7TX6J.js.map +0 -1
- package/dist/chunks/step.CpSPMvdW.js +0 -264
- package/dist/chunks/step.CpSPMvdW.js.map +0 -1
- package/dist/chunks/summary-grid.types.BpS1z1-W.js +0 -466
- package/dist/chunks/summary-grid.types.BpS1z1-W.js.map +0 -1
- package/dist/chunks/tabs.Cq1fdzVh.js +0 -266
- package/dist/chunks/tabs.Cq1fdzVh.js.map +0 -1
- package/dist/chunks/textarea.CV1HjB0x.js.map +0 -1
- package/dist/chunks/timeline-item.DUp8MmgZ.js.map +0 -1
- package/dist/chunks/use-cached-selected-values.CEwKqYIe.js +0 -1600
- package/dist/chunks/use-cached-selected-values.CEwKqYIe.js.map +0 -1
|
@@ -1,369 +0,0 @@
|
|
|
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.xUQT0LXI.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.Bj6DK-2v.js";
|
|
14
|
-
import { T as Oe } from "./tooltip.VYPUHERk.js";
|
|
15
|
-
import { _ as Be } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
16
|
-
import "../assets/input-field-password.css";
|
|
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
|
-
return (a == null ? void 0 : a.toString()) ?? "";
|
|
21
|
-
}
|
|
22
|
-
function De(a, N = 12) {
|
|
23
|
-
return C(a).length >= N;
|
|
24
|
-
}
|
|
25
|
-
function We(a) {
|
|
26
|
-
return /[a-z]/.test(C(a));
|
|
27
|
-
}
|
|
28
|
-
function xe(a) {
|
|
29
|
-
return /[A-Z]/.test(C(a));
|
|
30
|
-
}
|
|
31
|
-
function Fe(a) {
|
|
32
|
-
return /\d/.test(C(a));
|
|
33
|
-
}
|
|
34
|
-
function Qe(a) {
|
|
35
|
-
return /[^a-zA-Z0-9]/.test(C(a));
|
|
36
|
-
}
|
|
37
|
-
const ie = {
|
|
38
|
-
"en-US": {
|
|
39
|
-
capsLockEnabled: "Caps lock on",
|
|
40
|
-
hidePassword: "Hide",
|
|
41
|
-
showPassword: "Show",
|
|
42
|
-
validationChecked: "Checked",
|
|
43
|
-
validationMinLength: "12 characters",
|
|
44
|
-
validationRequireLowercase: "1 lowercase (a-z)",
|
|
45
|
-
validationRequireNumeric: "1 numerical (0-9)",
|
|
46
|
-
validationRequireSpecialCharacter: "1 special character",
|
|
47
|
-
validationRequireUppercase: "1 uppercase (A-Z)",
|
|
48
|
-
validationSuggestion: "Avoid using currency symbols or accented letters.",
|
|
49
|
-
validationTitle: "Password must contain at least:",
|
|
50
|
-
validationUnchecked: "Unchecked",
|
|
51
|
-
validationValid: "Input is valid"
|
|
52
|
-
},
|
|
53
|
-
"ja-JP": {
|
|
54
|
-
capsLockEnabled: "Caps lockオン",
|
|
55
|
-
hidePassword: "非表示",
|
|
56
|
-
showPassword: "表示",
|
|
57
|
-
validationMinLength: "8字",
|
|
58
|
-
validationRequireLowercase: "小文字1字 (a-z)",
|
|
59
|
-
validationRequireNumeric: "数字1字 (0-9)",
|
|
60
|
-
validationRequireSpecialCharacter: "特殊文字1字",
|
|
61
|
-
validationRequireUppercase: "大文字1字 (A-Z)",
|
|
62
|
-
validationSuggestion: "通貨記号やアクセント付き文字は避けてください。",
|
|
63
|
-
validationTitle: "パスワードには少なくとも次のものを含める必要があります :"
|
|
64
|
-
},
|
|
65
|
-
"pt-BR": {
|
|
66
|
-
capsLockEnabled: "Caps lock ativado",
|
|
67
|
-
hidePassword: "Ocultar",
|
|
68
|
-
showPassword: "Exibir",
|
|
69
|
-
validationMinLength: "8 caracteres",
|
|
70
|
-
validationRequireLowercase: "1 minúscula (a-z)",
|
|
71
|
-
validationRequireNumeric: "1 numérico (0-9)",
|
|
72
|
-
validationRequireSpecialCharacter: "1 caractere especial",
|
|
73
|
-
validationRequireUppercase: "1 maiúscula (A-Z)",
|
|
74
|
-
validationSuggestion: "Evite símbolos de moeda ou letras acentuadas.",
|
|
75
|
-
validationTitle: "A senha deve conter pelo menos:"
|
|
76
|
-
}
|
|
77
|
-
}, Ze = ["id"], ze = {
|
|
78
|
-
key: 1,
|
|
79
|
-
class: "b-input-field-password__validation-status--valid",
|
|
80
|
-
role: "alert"
|
|
81
|
-
}, Xe = ["id"], Ke = { class: "b-input-field-password__validation-list-icon" }, Ge = {
|
|
82
|
-
i18n: { messages: ie },
|
|
83
|
-
name: "bento-input-field-password"
|
|
84
|
-
}, Je = /* @__PURE__ */ he({
|
|
85
|
-
...Ge,
|
|
86
|
-
props: {
|
|
87
|
-
condensed: { type: Boolean, default: !1 },
|
|
88
|
-
disabled: { type: Boolean, default: !1 },
|
|
89
|
-
disableValidation: { type: Boolean, default: !1 },
|
|
90
|
-
errorMessage: { default: null },
|
|
91
|
-
placeholder: { default: "" },
|
|
92
|
-
readonly: { type: Boolean, default: !1 },
|
|
93
|
-
value: { default: void 0 },
|
|
94
|
-
label: { default: null },
|
|
95
|
-
validation: { default: void 0 },
|
|
96
|
-
withHint: { type: Boolean, default: !0 }
|
|
97
|
-
},
|
|
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(
|
|
104
|
-
(e) => e ? "b-input-field-password__validation-list--valid" : "b-input-field-password__validation-list--invalid"
|
|
105
|
-
)
|
|
106
|
-
), ne = p(
|
|
107
|
-
() => h.value ? "b-input-field-password__input-tooltip--timed" : ""
|
|
108
|
-
), re = p(() => ({
|
|
109
|
-
ariaHidden: !1,
|
|
110
|
-
condensed: t.condensed,
|
|
111
|
-
disabled: t.disabled,
|
|
112
|
-
errorMessage: t.errorMessage,
|
|
113
|
-
placeholder: t.placeholder,
|
|
114
|
-
readonly: t.readonly,
|
|
115
|
-
type: L.value,
|
|
116
|
-
value: g.value,
|
|
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, $;
|
|
122
|
-
if (t.validation && !t.validation.extendDefaultValidation)
|
|
123
|
-
return t.validation;
|
|
124
|
-
const e = [
|
|
125
|
-
{
|
|
126
|
-
label: o("validationMinLength"),
|
|
127
|
-
key: E.MIN_LENGTH,
|
|
128
|
-
validate: De
|
|
129
|
-
},
|
|
130
|
-
{
|
|
131
|
-
label: o("validationRequireLowercase"),
|
|
132
|
-
key: E.REQUIRE_LOWERCASE,
|
|
133
|
-
validate: We
|
|
134
|
-
},
|
|
135
|
-
{
|
|
136
|
-
label: o("validationRequireUppercase"),
|
|
137
|
-
key: E.REQUIRE_UPPERCASE,
|
|
138
|
-
validate: xe
|
|
139
|
-
},
|
|
140
|
-
{
|
|
141
|
-
label: o("validationRequireNumeric"),
|
|
142
|
-
key: E.REQUIRE_NUMERIC,
|
|
143
|
-
validate: Fe
|
|
144
|
-
},
|
|
145
|
-
{
|
|
146
|
-
label: o("validationRequireSpecialCharacter"),
|
|
147
|
-
key: E.REQUIRE_SPECIAL_CHARACTER,
|
|
148
|
-
validate: Qe
|
|
149
|
-
}
|
|
150
|
-
];
|
|
151
|
-
let l = e;
|
|
152
|
-
if (t.validation) {
|
|
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))) ?? [];
|
|
154
|
-
l = [...e.map((c) => {
|
|
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];
|
|
158
|
-
}
|
|
159
|
-
return {
|
|
160
|
-
title: ((I = t.validation) == null ? void 0 : I.title) ?? o("validationTitle"),
|
|
161
|
-
suggestion: (($ = t.validation) == null ? void 0 : $.suggestion) ?? o("validationSuggestion"),
|
|
162
|
-
list: l
|
|
163
|
-
};
|
|
164
|
-
}), X = p(() => {
|
|
165
|
-
var e, l;
|
|
166
|
-
return (l = (e = m.value) == null ? void 0 : e.list) == null ? void 0 : l.filter((u) => !u.disabled);
|
|
167
|
-
}), K = p(() => {
|
|
168
|
-
var e;
|
|
169
|
-
return (e = T.value) == null ? void 0 : e.some((l) => !l);
|
|
170
|
-
}), B = p(
|
|
171
|
-
() => {
|
|
172
|
-
var e, l;
|
|
173
|
-
return V.value && ((l = (e = m.value) == null ? void 0 : e.list) == null ? void 0 : l.length) > 0;
|
|
174
|
-
}
|
|
175
|
-
), G = (e) => {
|
|
176
|
-
typeof e.getModifierState == "function" && (q.value = e.getModifierState("CapsLock"));
|
|
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) => {
|
|
186
|
-
var d;
|
|
187
|
-
const l = (d = X.value) == null ? void 0 : d.map((s) => ({
|
|
188
|
-
key: s.key,
|
|
189
|
-
label: s.label,
|
|
190
|
-
isValid: s.validate(e, ...s.additionalArgs ?? [])
|
|
191
|
-
}));
|
|
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++}`;
|
|
195
|
-
return {
|
|
196
|
-
...s,
|
|
197
|
-
[I]: w.label
|
|
198
|
-
};
|
|
199
|
-
}, {});
|
|
200
|
-
}, ve = () => {
|
|
201
|
-
k.value = !1, h.value = null;
|
|
202
|
-
}, fe = () => {
|
|
203
|
-
k.value = !0;
|
|
204
|
-
};
|
|
205
|
-
return D(
|
|
206
|
-
() => t.value,
|
|
207
|
-
(e) => {
|
|
208
|
-
g.value = e;
|
|
209
|
-
}
|
|
210
|
-
), D(oe, (e) => {
|
|
211
|
-
e || (le.value = !0), t.disableValidation || (t.withHint && (x.value = e), J(g.value));
|
|
212
|
-
}), D(q, (e) => {
|
|
213
|
-
e ? (k.value = !0, h.value = setTimeout(() => {
|
|
214
|
-
h.value = null, k.value = !1;
|
|
215
|
-
}, 2e3)) : (clearTimeout(h.value), h.value = null, k.value = !1);
|
|
216
|
-
}), Ve(
|
|
217
|
-
g,
|
|
218
|
-
(e) => {
|
|
219
|
-
J(e), K.value ? b("input:error", F.value) : b("input:valid");
|
|
220
|
-
},
|
|
221
|
-
// wait for 0.5s before checking validity OR 2s of continuous typing
|
|
222
|
-
{ debounce: 500, maxWait: 2e3 }
|
|
223
|
-
), (e, l) => (r(), U("div", {
|
|
224
|
-
ref_key: "inputFieldPasswordRef",
|
|
225
|
-
ref: Q
|
|
226
|
-
}, [
|
|
227
|
-
A(i(Te), be({
|
|
228
|
-
ref_key: "inputFieldPasswordInputRef",
|
|
229
|
-
ref: V
|
|
230
|
-
}, re.value, {
|
|
231
|
-
class: "b-input-field-password__input",
|
|
232
|
-
spellcheck: "false",
|
|
233
|
-
onBlur: pe,
|
|
234
|
-
onFocus: ue,
|
|
235
|
-
onInput: ce,
|
|
236
|
-
onKeydown: G,
|
|
237
|
-
onKeyup: G
|
|
238
|
-
}), we({
|
|
239
|
-
default: f(() => [
|
|
240
|
-
P(y(e.label), 1)
|
|
241
|
-
]),
|
|
242
|
-
_: 2
|
|
243
|
-
}, [
|
|
244
|
-
q.value ? {
|
|
245
|
-
name: "iconBefore",
|
|
246
|
-
fn: f(() => [
|
|
247
|
-
S("div", {
|
|
248
|
-
class: "b-input-field-password__caps-lock-indicator",
|
|
249
|
-
onMouseenter: fe,
|
|
250
|
-
onMouseleave: ve
|
|
251
|
-
}, [
|
|
252
|
-
A(i(Le), {
|
|
253
|
-
ref_key: "inputFieldPasswordCapsLockIconRef",
|
|
254
|
-
ref: M,
|
|
255
|
-
src: i(He),
|
|
256
|
-
alt: i(o)("capsLockEnabled")
|
|
257
|
-
}, null, 8, ["src", "alt"])
|
|
258
|
-
], 32),
|
|
259
|
-
M.value ? (r(), v(i(Oe), {
|
|
260
|
-
key: 0,
|
|
261
|
-
class: ee(ne.value),
|
|
262
|
-
content: i(o)("capsLockEnabled"),
|
|
263
|
-
"disabled-focus-trap": !0,
|
|
264
|
-
"fallback-position": ["top", "bottom"],
|
|
265
|
-
"is-shown": k.value,
|
|
266
|
-
"target-element": M.value
|
|
267
|
-
}, null, 8, ["class", "content", "is-shown", "target-element"])) : _("", !0)
|
|
268
|
-
]),
|
|
269
|
-
key: "0"
|
|
270
|
-
} : void 0,
|
|
271
|
-
e.disabled ? void 0 : {
|
|
272
|
-
name: "iconAfter",
|
|
273
|
-
fn: f(() => [
|
|
274
|
-
A(i(Ce), {
|
|
275
|
-
variant: "tertiary",
|
|
276
|
-
onClick: de
|
|
277
|
-
}, {
|
|
278
|
-
iconLeft: f(() => [
|
|
279
|
-
O.value ? _("", !0) : (r(), v(i(Pe), {
|
|
280
|
-
key: 0,
|
|
281
|
-
"svg-title": i(o)("showPassword")
|
|
282
|
-
}, null, 8, ["svg-title"])),
|
|
283
|
-
O.value ? (r(), v(i(Se), {
|
|
284
|
-
key: 1,
|
|
285
|
-
"svg-title": i(o)("hidePassword")
|
|
286
|
-
}, null, 8, ["svg-title"])) : _("", !0)
|
|
287
|
-
]),
|
|
288
|
-
_: 1
|
|
289
|
-
})
|
|
290
|
-
]),
|
|
291
|
-
key: "1"
|
|
292
|
-
}
|
|
293
|
-
]), 1040),
|
|
294
|
-
B.value ? (r(), v(i(Ie), {
|
|
295
|
-
key: 0,
|
|
296
|
-
open: x.value,
|
|
297
|
-
"target-element": V.value,
|
|
298
|
-
"disable-focus-trap": !0,
|
|
299
|
-
"aria-label": m.value.title,
|
|
300
|
-
"aria-describedby": i(Z),
|
|
301
|
-
position: "right-start"
|
|
302
|
-
}, {
|
|
303
|
-
default: f(() => [
|
|
304
|
-
S("div", { id: i(z) }, [
|
|
305
|
-
m.value.title ? (r(), v(i(W), {
|
|
306
|
-
key: 0,
|
|
307
|
-
class: "b-input-field-password__validation-title"
|
|
308
|
-
}, {
|
|
309
|
-
default: f(() => [
|
|
310
|
-
P(y(m.value.title), 1)
|
|
311
|
-
]),
|
|
312
|
-
_: 1
|
|
313
|
-
})) : _("", !0),
|
|
314
|
-
K.value ? _("", !0) : (r(), U("p", ze, y(i(o)("validationValid")), 1)),
|
|
315
|
-
S("ul", {
|
|
316
|
-
id: i(Z),
|
|
317
|
-
class: "b-input-field-password__validation-list"
|
|
318
|
-
}, [
|
|
319
|
-
(r(!0), U(ye, null, Re(X.value, (u, d) => (r(), U("li", {
|
|
320
|
-
key: d,
|
|
321
|
-
class: ee(se.value[d]),
|
|
322
|
-
"aria-live": "polite",
|
|
323
|
-
"aria-atomic": "true"
|
|
324
|
-
}, [
|
|
325
|
-
S("span", Ke, [
|
|
326
|
-
T.value[d] ? (r(), v(i(Ue), {
|
|
327
|
-
key: 0,
|
|
328
|
-
"svg-title": i(o)("validationChecked")
|
|
329
|
-
}, null, 8, ["svg-title"])) : (r(), v(i(Ae), {
|
|
330
|
-
key: 1,
|
|
331
|
-
"svg-title": i(o)("validationUnchecked")
|
|
332
|
-
}, null, 8, ["svg-title"]))
|
|
333
|
-
]),
|
|
334
|
-
A(i(W), {
|
|
335
|
-
class: "b-input-field-password__validation-list-text",
|
|
336
|
-
el: "span"
|
|
337
|
-
}, {
|
|
338
|
-
default: f(() => [
|
|
339
|
-
P(y(u.label), 1)
|
|
340
|
-
]),
|
|
341
|
-
_: 2
|
|
342
|
-
}, 1024)
|
|
343
|
-
], 2))), 128))
|
|
344
|
-
], 8, Xe),
|
|
345
|
-
m.value.suggestion ? (r(), v(i(W), {
|
|
346
|
-
key: 2,
|
|
347
|
-
class: "b-input-field-password__validation-suggestion"
|
|
348
|
-
}, {
|
|
349
|
-
default: f(() => [
|
|
350
|
-
P(y(m.value.suggestion), 1)
|
|
351
|
-
]),
|
|
352
|
-
_: 1
|
|
353
|
-
})) : _("", !0)
|
|
354
|
-
], 8, Ze)
|
|
355
|
-
]),
|
|
356
|
-
_: 1
|
|
357
|
-
}, 8, ["open", "target-element", "aria-label", "aria-describedby"])) : _("", !0)
|
|
358
|
-
], 512));
|
|
359
|
-
}
|
|
360
|
-
}), ga = /* @__PURE__ */ Be(Je, [["__scopeId", "data-v-5d8d35f2"]]);
|
|
361
|
-
export {
|
|
362
|
-
xe as a,
|
|
363
|
-
Fe as b,
|
|
364
|
-
Qe as c,
|
|
365
|
-
ga as i,
|
|
366
|
-
De as m,
|
|
367
|
-
We as r
|
|
368
|
-
};
|
|
369
|
-
//# sourceMappingURL=input-field-password.CJOf1GlS.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"input-field-password.CJOf1GlS.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":";;;;;;;;;;;;;;;;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,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WAAAkD;AAAA,MAAA,MAAAhE,EAAA;AAAA,MACgB,CAAAiE,MAAA;AAER,QAAAzD,EAAA,QAAAyD;AAAA,MAAmB;AAAA,IACvB,GAGJD,EAAA3C,IAAA,CAAA6C,MAAA;AAEI,MAAAA,MACIxD,GAAA,QAAA,KAIJV,EAAA,sBACIA,EAAA,aACIS,EAAA,QAAAyD,IAEJX,EAAA/C,EAAA,KAAA;AAAA,IACJ,CAAA,GAGJwD,EAAA9C,GAAA,CAAAiD,MAAA;AACI,MAAAA,KAMIrD,EAAA,QAAA,IAEAD,EAAA,QAAA,WAAA,MAAA;AACI,QAAAA,EAAA,QAAA,MACAC,EAAA,QAAA;AAAA,MAA2B,GAAA,GAAA,MAT/B,aAAAD,EAAA,KAAA,GAEAA,EAAA,QAAA,MACAC,EAAA,QAAA;AAAA,IAQJ,CAAA,GAGJsD;AAAA,MAAA5D;AAAA,MACI,CAAA6D,MAAA;AAEI,QAAAd,EAAAc,CAAA,GAEArB,EAAA,QAGI9C,EAAA,eAAAU,EAAA,KAAA,IAFAV,EAAA,aAAA;AAAA,MAGJ;AAAA;AAAA,MACJ,EAAA,UAAA,KAAA,SAAA,IAAA;AAAA,IAE0D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pagination.D6A7TX6J.js","sources":["../../../vue2/src/components/pagination/components/pagination-results-per-page/pagination-results-per-page.vue","../../../vue2/src/components/pagination/components/pagination-context/pagination-context.vue","../../../ui-assets/icons-16/dist/vue/skip-left.vue","../../../ui-assets/icons-16/dist/vue/skip-right.vue","../../../ui-assets/icons-16/dist/vue/chevron-left-small.vue","../../../ui-assets/icons-16/dist/vue/chevron-right-small.vue","../../../vue2/src/components/pagination/components/pagination-controls/pagination-controls.vue","../../../vue2/src/components/pagination/pagination.vue"],"sourcesContent":["<template>\n <div class=\"b-pagination-results-per-page\">\n <bento-typography el=\"div\">\n <component\n :is=\"i18nComponent\"\n v-bind=\"getI18nProps(translationPathKey)\"\n class=\"b-pagination-results-per-page__dropdown-container\"\n tag=\"div\"\n :plural=\"totalCount\"\n >\n <template #itemCount>\n <bento-dropdown\n :id=\"dropdownId\"\n :aria-label=\"t(translationPathKey, { itemCount: itemsPerPage, totalCount })\"\n class=\"b-pagination-results-per-page__dropdown\"\n condensed\n :items=\"dropdownOptions\"\n :value=\"itemsPerPage\"\n @input=\"onSelectChange\"\n />\n </template>\n <template v-if=\"!!totalCount\" #totalCount>{{ totalCount }}</template>\n </component>\n </bento-typography>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, ref } from 'vue';\n import { BentoTypography } from '@/components/typography';\n import { BentoDropdown } from '@/components/dropdown';\n import { generateUid } from '@/core/utils/ts';\n import { getI18nComponent, getI18nProps, useI18n } from '@/utils/ts/i18n';\n\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const PREDEFINED_RESULTS_PER_PAGE_VALUES = [\n { label: '10', value: 10 },\n { label: '20', value: 20 },\n { label: '50', value: 50 },\n { label: '75', value: 75 },\n { label: '100', value: 100 },\n ];\n\n const props = withDefaults(\n defineProps<{\n /**\n * The amount of items the pager is paging through.\n */\n itemsPerPage?: number;\n /**\n * The total number of items the pager is paging through.\n */\n totalCount?: number;\n }>(),\n {\n itemsPerPage: 50,\n totalCount: null,\n }\n );\n\n const emit = defineEmits<{\n (e: 'select', value: number);\n }>();\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n const dropdownId = generateUid('b-pagination-context-number-elements');\n const dropdownOptions = ref(PREDEFINED_RESULTS_PER_PAGE_VALUES);\n const i18nComponent = getI18nComponent();\n\n const onSelectChange = (selectedNumberOfResults: number) => {\n emit('select', selectedNumberOfResults);\n };\n\n const translationPathKey = computed(() => (props.totalCount ? 'showingItemsWithTotal' : 'showingItems'));\n</script>\n\n<script lang=\"ts\">\n export default {\n i18n: { messages },\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./pagination-results-per-page.scss\" />\n","<template>\n <div class=\"b-pagination-context\">\n <bento-typography v-if=\"totalPages > 1\" el=\"div\">\n <component :is=\"i18nComponent\" v-bind=\"getI18nProps('pageNumber')\" tag=\"div\">\n <template #page>\n <bento-dropdown\n :id=\"dropdownId\"\n :aria-label=\"t('pageNumber', { page })\"\n class=\"b-pagination-context__dropdown\"\n condensed\n :items=\"listOfAvailablePages\"\n :value=\"page\"\n :virtual-scroll=\"virtualScroll\"\n @input=\"onPageSelectChange\"\n />\n </template>\n </component>\n </bento-typography>\n <bento-typography v-else-if=\"totalPages === 1\" el=\"span\">\n {{ t('pageOneOfOne') }}\n </bento-typography>\n <bento-typography v-else el=\"span\">\n {{ t('pageNumber', { page }) }}\n </bento-typography>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed } from 'vue';\n import { BentoTypography } from '@/components/typography';\n import { BentoDropdown } from '@/components/dropdown';\n import { BentoListboxOptionItem } from '@/types';\n import { generateUid } from '@/core/utils/ts';\n import messages from './messages.json';\n import { getI18nComponent, getI18nProps, useI18n } from '@/utils/ts/i18n';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const props = withDefaults(\n defineProps<{\n /**\n * The current page number of the pager.\n */\n page?: number;\n\n /**\n * The total number of items the pager is paging through.\n */\n totalPages?: number;\n\n /**\n * Enables virtual scrolling on all dropdowns if set to true.\n */\n virtualScroll?: boolean;\n }>(),\n {\n page: 1,\n totalPages: null,\n virtualScroll: false,\n }\n );\n const emit = defineEmits<{\n (e: 'page-selected', value: string | number);\n }>();\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n const dropdownId = generateUid('bento-pagination-context-current-page');\n const onPageSelectChange = (selectedPage: string | number) => emit('page-selected', selectedPage);\n const i18nComponent = getI18nComponent();\n\n // Generate a list of pages from 1 to \"totalPages\"\n const transformIntoOption = (value: number): BentoListboxOptionItem => ({\n label: value.toString(),\n value,\n });\n const transformToPageNumber = (_, index) => index + 1;\n const listOfAvailablePages = computed(() =>\n Array.from(new Array(props.totalPages), transformToPageNumber).map(transformIntoOption)\n );\n</script>\n\n<script lang=\"ts\">\n export default {\n i18n: { messages },\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./pagination-context.scss\" />\n","\n<template>\n <svg role=\"img\" v-bind=\"$attrs\" class=\"ui-assets-icons-16\" xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"none\"><title v-if=\"$attrs['svg-title']\">{{ $attrs['svg-title'] }}</title><path fill=\"#001222\" d=\"M9.06055 8.00011L12.0605 5.00011L10.9999 3.93945L6.93923 8.00011L10.9999 12.0608L12.0605 11.0001L9.06055 8.00011Z\"/><path fill=\"#001222\" d=\"M4.25 4.25L4.25 11.75H5.75L5.75 4.25L4.25 4.25Z\"/></svg>\n</template>\n<script>\n import '../css/main.css';\n\n let uuid = 0;\n\n export default {\n beforeCreate() {\n this.uuid = uuid.toString();\n uuid += 1;\n },\n };\n</script>\n","\n<template>\n <svg role=\"img\" v-bind=\"$attrs\" class=\"ui-assets-icons-16\" xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"none\"><title v-if=\"$attrs['svg-title']\">{{ $attrs['svg-title'] }}</title><path fill=\"#001222\" d=\"M6.93945 7.99962L3.93945 10.9996L5.00011 12.0603L9.06077 7.99963L5.00011 3.93896L3.93945 4.99963L6.93945 7.99962Z\"/><path fill=\"#001222\" d=\"M11.75 11.7497V4.24974L10.25 4.24974V11.7497H11.75Z\"/></svg>\n</template>\n<script>\n import '../css/main.css';\n\n let uuid = 0;\n\n export default {\n beforeCreate() {\n this.uuid = uuid.toString();\n uuid += 1;\n },\n };\n</script>\n","\n<template>\n <svg role=\"img\" v-bind=\"$attrs\" class=\"ui-assets-icons-16\" xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"none\"><title v-if=\"$attrs['svg-title']\">{{ $attrs['svg-title'] }}</title><path fill=\"#001222\" d=\"M10.5608 5.00011L7.56077 8.00011L10.5608 11.0001L9.50011 12.0608L5.43945 8.00011L9.50011 3.93945L10.5608 5.00011Z\"/></svg>\n</template>\n<script>\n import '../css/main.css';\n\n let uuid = 0;\n\n export default {\n beforeCreate() {\n this.uuid = uuid.toString();\n uuid += 1;\n },\n };\n</script>\n","\n<template>\n <svg role=\"img\" v-bind=\"$attrs\" class=\"ui-assets-icons-16\" xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"none\"><title v-if=\"$attrs['svg-title']\">{{ $attrs['svg-title'] }}</title><path fill=\"#001222\" d=\"M5.43924 10.9999L8.43924 7.99989L5.43924 4.99989L6.4999 3.93923L10.5606 7.99989L6.4999 12.0605L5.43924 10.9999Z\"/></svg>\n</template>\n<script>\n import '../css/main.css';\n\n let uuid = 0;\n\n export default {\n beforeCreate() {\n this.uuid = uuid.toString();\n uuid += 1;\n },\n };\n</script>\n","<template>\n <ul class=\"b-pagination-controls\">\n <li class=\"b-pagination-controls__item\">\n <!-- Navigate to the first page -->\n <bento-button :disabled=\"isCurrentPageFirst\" variant=\"tertiary\" condensed @click=\"navigate(1)\">\n <template #iconLeft>\n <skip-left :svg-title=\"t('navigateToTheFirstPage')\" />\n </template>\n </bento-button>\n </li>\n <li class=\"b-pagination-controls__item\">\n <!-- Navigate to the previous page -->\n <bento-button :disabled=\"isCurrentPageFirst\" variant=\"tertiary\" condensed @click=\"navigate(page - 1)\">\n <template #iconLeft>\n <chevron-left :svg-title=\"t('navigateToThePreviousPage')\" />\n </template>\n </bento-button>\n </li>\n <li class=\"b-pagination-controls__item\">\n <!-- Navigate to the next page -->\n <bento-button :disabled=\"isNextButtonDisabled\" variant=\"tertiary\" condensed @click=\"navigate(page + 1)\">\n <template #iconLeft>\n <chevron-right :svg-title=\"t('navigateToTheNextPage')\" />\n </template>\n </bento-button>\n </li>\n <li class=\"b-pagination-controls__item\">\n <!-- Navigate to the last page -->\n <bento-button\n :disabled=\"isLastPageButtonDisabled\"\n variant=\"tertiary\"\n condensed\n @click=\"navigate(totalPages)\"\n >\n <template #iconLeft>\n <skip-right :svg-title=\"t('navigateToTheLastPage')\" />\n </template>\n </bento-button>\n </li>\n </ul>\n</template>\n\n<script setup lang=\"ts\">\n import { computed } from 'vue';\n import { BentoButton } from '@/components/button';\n import { useI18n } from '@/utils/ts/i18n';\n import SkipLeft from '@adyen/ui-assets-icons-16/vue/skip-left';\n import SkipRight from '@adyen/ui-assets-icons-16/vue/skip-right';\n import ChevronLeft from '@adyen/ui-assets-icons-16/vue/chevron-left-small';\n import ChevronRight from '@adyen/ui-assets-icons-16/vue/chevron-right-small';\n\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const props = withDefaults(\n defineProps<{\n /**\n * Use to determine if the pager has a \"next page\".\n */\n hasNext?: boolean;\n\n /**\n * The current page number of the pager.\n */\n page: number;\n\n /**\n * The current page number of the pager.\n */\n totalPages?: number;\n }>(),\n {\n hasNext: null,\n totalPages: null,\n }\n );\n\n const emit = defineEmits<{\n (e: 'navigate', value: number);\n }>();\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n\n const isCurrentPageFirst = computed(() => props.page === 1);\n const isCurrentPageLast = computed(() => props.page === props.totalPages);\n const isNextButtonDisabled = computed(() => {\n const hasNoNextPage = !props.hasNext;\n return hasNoNextPage || isCurrentPageLast.value;\n });\n const isLastPageButtonDisabled = computed(() => {\n const hasNoNextPage = !props.hasNext;\n const hasNoTotalPagesNumber = !props.totalPages;\n\n return hasNoNextPage || isCurrentPageLast.value || hasNoTotalPagesNumber;\n });\n\n const navigate = (pageArg: number) => {\n emit('navigate', pageArg);\n };\n</script>\n\n<script lang=\"ts\">\n export default {\n i18n: { messages },\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./pagination-controls.scss\" />\n","<template>\n <div class=\"b-pagination\">\n <nav :aria-label=\"computedAriaLabel\" class=\"b-pagination__navigation\" :class=\"navigationConditionalClasses()\">\n <bento-pagination-results-per-page\n v-if=\"!hidePageSize\"\n class=\"b-pagination__results-per-page\"\n :items-per-page=\"size\"\n :total-count=\"totalCount\"\n @select=\"onItemsPerPageChange\"\n />\n <bento-typography v-else-if=\"hasSlot('default')\"><slot /></bento-typography>\n\n <div class=\"b-pagination__page-navigator\">\n <bento-pagination-context\n class=\"b-pagination__context\"\n :total-pages=\"totalPages\"\n :page=\"page\"\n :total-count=\"totalCount\"\n :virtual-scroll=\"virtualScroll\"\n @page-selected=\"onPageSelected\"\n />\n\n <div class=\"b-pagination__divider\"></div>\n\n <bento-pagination-controls\n class=\"b-pagination__controls\"\n :has-next=\"hasNext\"\n :page=\"page\"\n :total-pages=\"totalPages\"\n @navigate=\"navigate\"\n />\n </div>\n </nav>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, ref, toRefs, useAttrs, useSlots } from 'vue';\n import { BentoTypography } from '@/components/typography';\n import BentoPaginationResultsPerPage from './components/pagination-results-per-page/pagination-results-per-page.vue';\n import BentoPaginationContext from './components/pagination-context/pagination-context.vue';\n import BentoPaginationControls from './components/pagination-controls/pagination-controls.vue';\n import { useAriaLabel } from '@/utils/ts/aria-label';\n import { useHasSlot } from '@/composables';\n import type { BentoPaginationProps } from './pagination.types';\n\n const props = withDefaults(defineProps<BentoPaginationProps>(), {\n ariaLabel: null,\n hasNext: null,\n hidePageSize: false,\n page: 1,\n size: 20,\n totalCount: null,\n virtualScroll: false,\n });\n\n const emit = defineEmits<{\n /**\n * Triggered when the navigation controls are clicked or the items per page is changed (i.e. when the arrow buttons to the\n * rightmost of the screen or either dropdown is updated). It indicates to which page it should go next and also the page size.\n */\n (e: 'navigate', page: number, items?: number): void;\n\n /**\n * Triggered when the number of items per page is changed from the left hand dropdown.\n * It indicates the new number of items that will be displayed.\n */\n (e: 'items-page', size: number): void;\n\n /**\n * Triggered when the navigation controls are clicked, whether the arrow buttons to the\n * right most of the screen or the dropdown on the right hand is updated.\n * It indicates to which page it should go next\n * (easily achieved using the [sync modifier](https://v2.vuejs.org/v2/guide/components-custom-events.html#sync-Modifier))\n * e.g. `:page.sync=\"currentPage\"`\n */\n (e: 'update:page', page: number): void;\n\n /**\n * Triggered when the number of items per page is changed from the left hand dropdown.\n * It indicates the new number of items that will be displayed.\n * (easily achieved using the [sync modifier](https://v2.vuejs.org/v2/guide/components-custom-events.html#sync-Modifier))\n * e.g. `:size.sync=\"itemsPerPage\"`\n */\n (e: 'update:size', size: number): void;\n }>();\n\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n\n const attrs = useAttrs();\n const ariaLabelAttribute = ref(attrs['aria-label']);\n const { ariaLabel } = toRefs(props);\n const computedAriaLabel = useAriaLabel({\n ariaLabel: ariaLabelAttribute.value as string,\n // TODO: take this line away when the aria-label props is removed\n label: ariaLabel,\n });\n\n const totalPages = computed(() =>\n !props.totalCount || !props.size ? null : Math.ceil(props.totalCount / props.size)\n );\n\n const navigate = (pageArg: number, itemsPerPage?: number) => {\n if (props.hidePageSize) {\n emit('navigate', pageArg);\n } else {\n emit('navigate', pageArg, itemsPerPage ?? props?.size);\n }\n emit('update:page', pageArg);\n };\n\n const onPageSelected = (pageNumber: number) => {\n navigate(pageNumber);\n };\n\n const onItemsPerPageChange = (elements: number) => {\n emit('items-page', elements);\n emit('update:size', elements);\n\n // Always go to first page when the\n // number of items page changes\n navigate(1, elements);\n };\n\n const navigationConditionalClasses = () => ({\n 'b-pagination__navigation--only-page-navigator': !hasSlot('default') && props.hidePageSize,\n });\n</script>\n\n<script lang=\"ts\">\n /**\n * Paginiation component to help users page through data sets.\n *\n * There are two ways of doing navigation in this component:\n * 1. (Basic) You tell the component if there is a next page (hasNext)\n * 2. (Enhanced) You tell the component:\n * - How many total items exist (totalCount)\n * - The max number of items that you show/fetch per page (size)\n * - In this case you should not set the hasNext props\n *\n * If you have the data available and opt to use the Enhanced way you get extra controls:\n * - Page dropdown selector\n * - Last page button\n * - \"Showing 10 of 200 items\" text\n *\n * @usage\n * import { BentoPagination } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoPagination },\n * template: `\n * <bento-pagination :has-next=\"isNextPage\" />\n * `,\n * }\n */\n\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./pagination.scss\" />\n"],"names":["__default__$3","messages$2","PREDEFINED_RESULTS_PER_PAGE_VALUES","props","__props","emit","__emit","t","useI18n","dropdownId","generateUid","dropdownOptions","ref","i18nComponent","getI18nComponent","onSelectChange","selectedNumberOfResults","translationPathKey","computed","__default__$2","messages$1","onPageSelectChange","selectedPage","transformIntoOption","value","transformToPageNumber","_","index","listOfAvailablePages","uuid$3","openBlock","createElementBlock","mergeProps","_ctx","createCommentVNode","uuid$2","uuid$1","uuid","__default__$1","messages","isCurrentPageFirst","isCurrentPageLast","isNextButtonDisabled","isLastPageButtonDisabled","hasNoNextPage","hasNoTotalPagesNumber","navigate","pageArg","__default__","slots","useSlots","hasSlot","useHasSlot","attrs","useAttrs","ariaLabelAttribute","ariaLabel","toRefs","computedAriaLabel","useAriaLabel","totalPages","itemsPerPage","onPageSelected","pageNumber","onItemsPerPageChange","elements","navigationConditionalClasses"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oDAgFIA,KAAA;AAAA,EAAe,MAAA,EAAA,UAAAC,EAAA;AAEf;;;;;;;;;AA5CA,UAAAC,IAAA;AAAA,MAA2C,EAAA,OAAA,MAAA,OAAA,GAAA;AAAA,MACd,EAAA,OAAA,MAAA,OAAA,GAAA;AAAA,MACA,EAAA,OAAA,MAAA,OAAA,GAAA;AAAA,MACA,EAAA,OAAA,MAAA,OAAA,GAAA;AAAA,MACA,EAAA,OAAA,OAAA,OAAA,IAAA;AAAA,IACE,GAG/BC,IAAAC,GAiBAC,IAAAC,GAIA,EAAA,GAAAC,EAAA,IAAAC,EAAA,EAAA,UAAAP,EAAA,CAAA,GACAQ,IAA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