@adyen/bento-vue2 1.62.1 → 1.63.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 +181 -235
- package/dist/accordion.js +1 -1
- 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/card.css +1 -1
- package/dist/assets/checkbox-input.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/date-range-picker.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/header-with-views.css +1 -1
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/listbox-option-tag.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/card.js +1 -1
- package/dist/checkbox.js +3 -3
- package/dist/chunks/{accordion-item.D1t0oHlP.js → accordion-item.BNtdoVto.js} +9 -8
- package/dist/chunks/{accordion-item.D1t0oHlP.js.map → accordion-item.BNtdoVto.js.map} +1 -1
- package/dist/chunks/{action-bar.whU1em8H.js → action-bar.Dsp7iRxz.js} +2 -2
- package/dist/chunks/{action-bar.whU1em8H.js.map → action-bar.Dsp7iRxz.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.RoaQFPKT.js → button-actions-with-menu.CtW_16tY.js} +2 -2
- package/dist/chunks/{button-actions-with-menu.RoaQFPKT.js.map → button-actions-with-menu.CtW_16tY.js.map} +1 -1
- package/dist/chunks/{calendar.DoOFNX-Z.js → calendar.DbTC35rM.js} +2 -2
- package/dist/chunks/{calendar.DoOFNX-Z.js.map → calendar.DbTC35rM.js.map} +1 -1
- package/dist/chunks/card.CypgT0Ji.js +136 -0
- package/dist/chunks/card.CypgT0Ji.js.map +1 -0
- package/dist/chunks/{checkbox-group.B0IGYf1q.js → checkbox-group.6y92U6AF.js} +2 -2
- package/dist/chunks/{checkbox-group.B0IGYf1q.js.map → checkbox-group.6y92U6AF.js.map} +1 -1
- package/dist/chunks/checkbox-input.CNWigbX4.js +117 -0
- package/dist/chunks/checkbox-input.CNWigbX4.js.map +1 -0
- package/dist/chunks/{checkbox.DkCukYh0.js → checkbox.C9nJVvMq.js} +9 -8
- package/dist/chunks/{checkbox.DkCukYh0.js.map → checkbox.C9nJVvMq.js.map} +1 -1
- package/dist/chunks/chevron-down.eYtgv5ly.js +24 -0
- package/dist/chunks/chevron-down.eYtgv5ly.js.map +1 -0
- package/dist/chunks/{chevron-left.BS24hEFa.js → chevron-right.C--ZOC9j.js} +5 -5
- package/dist/chunks/chevron-right.C--ZOC9j.js.map +1 -0
- package/dist/chunks/chevron-up.d8cwIlA_.js +24 -0
- package/dist/chunks/chevron-up.d8cwIlA_.js.map +1 -0
- package/dist/chunks/{code-snippet.C17bZ5LS.js → code-snippet.CBU8Tlbs.js} +2 -2
- package/dist/chunks/{code-snippet.C17bZ5LS.js.map → code-snippet.CBU8Tlbs.js.map} +1 -1
- package/dist/chunks/{dashboard-section.BEw-n-XQ.js → dashboard-section.CspNW0CA.js} +3 -3
- package/dist/chunks/{dashboard-section.BEw-n-XQ.js.map → dashboard-section.CspNW0CA.js.map} +1 -1
- package/dist/chunks/{data-grid-template.DGFmCUII.js → data-grid-template.BhzgqkZp.js} +3 -3
- package/dist/chunks/{data-grid-template.DGFmCUII.js.map → data-grid-template.BhzgqkZp.js.map} +1 -1
- package/dist/chunks/{data-grid.BFw0RHNG.js → data-grid.BfsBhYpW.js} +451 -452
- package/dist/chunks/data-grid.BfsBhYpW.js.map +1 -0
- package/dist/chunks/{date-picker.DIegsFDO.js → date-picker.CPQ6WLZE.js} +13 -13
- package/dist/chunks/{date-picker.DIegsFDO.js.map → date-picker.CPQ6WLZE.js.map} +1 -1
- package/dist/chunks/date-range-picker.CNB28UaM.js +1005 -0
- package/dist/chunks/date-range-picker.CNB28UaM.js.map +1 -0
- package/dist/chunks/{dropdown-default-textbox.7PMxHqoa.js → dropdown-default-textbox.BNuuA4ES.js} +15 -14
- package/dist/chunks/{dropdown-default-textbox.7PMxHqoa.js.map → dropdown-default-textbox.BNuuA4ES.js.map} +1 -1
- package/dist/chunks/{dropdown-tag.DopZ3PPD.js → dropdown-tag.DmVsDrL_.js} +3 -3
- package/dist/chunks/{dropdown-tag.DopZ3PPD.js.map → dropdown-tag.DmVsDrL_.js.map} +1 -1
- package/dist/chunks/{dropdown.4KhU0G3H.js → dropdown.B_PWXFtT.js} +16 -16
- package/dist/chunks/{dropdown.4KhU0G3H.js.map → dropdown.B_PWXFtT.js.map} +1 -1
- package/dist/chunks/es6.n1ewaW31.js.map +1 -1
- package/dist/chunks/{filter-bar.BcQUTqis.js → filter-bar.D6HeYnzZ.js} +15 -14
- package/dist/chunks/{filter-bar.BcQUTqis.js.map → filter-bar.D6HeYnzZ.js.map} +1 -1
- package/dist/chunks/{fixed-scroller.Ctz5dFqz.js → fixed-scroller.XN-jvWqb.js} +12 -12
- package/dist/chunks/fixed-scroller.XN-jvWqb.js.map +1 -0
- package/dist/chunks/{header-with-views.DKj9cp5r.js → header-with-views.Dkn8IDew.js} +270 -270
- package/dist/chunks/header-with-views.Dkn8IDew.js.map +1 -0
- package/dist/chunks/{header.B1PrBQG0.js → header.DNzQO7u-.js} +2 -2
- package/dist/chunks/{header.B1PrBQG0.js.map → header.DNzQO7u-.js.map} +1 -1
- package/dist/chunks/{input-field-password.D-rEjNIS.js → input-field-password.CY3eRVpe.js} +3 -3
- package/dist/chunks/{input-field-password.D-rEjNIS.js.map → input-field-password.CY3eRVpe.js.map} +1 -1
- package/dist/chunks/{input-field-phone-number.BXopNol8.js → input-field-phone-number.CN5qZ0VL.js} +3 -3
- package/dist/chunks/{input-field-phone-number.BXopNol8.js.map → input-field-phone-number.CN5qZ0VL.js.map} +1 -1
- package/dist/chunks/{input-field.cU5zOb6o.js → input-field.DKhsSYF8.js} +2 -2
- package/dist/chunks/{input-field.cU5zOb6o.js.map → input-field.DKhsSYF8.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.EzSkn_lM.js → listbox-option-tag.DFmB_TuD.js} +9 -9
- package/dist/chunks/listbox-option-tag.DFmB_TuD.js.map +1 -0
- package/dist/chunks/menu.W_kuhRKI.js +514 -0
- package/dist/chunks/menu.W_kuhRKI.js.map +1 -0
- package/dist/chunks/minus-small.DJacLGTw.js +27 -0
- package/dist/chunks/minus-small.DJacLGTw.js.map +1 -0
- package/dist/chunks/{pagination.K2EzoJKj.js → pagination.DvP8FqiW.js} +2 -2
- package/dist/chunks/{pagination.K2EzoJKj.js.map → pagination.DvP8FqiW.js.map} +1 -1
- package/dist/chunks/{rich-text-editor.BTJpOiYL.js → rich-text-editor.aSOSl4Rz.js} +2 -2
- package/dist/chunks/{rich-text-editor.BTJpOiYL.js.map → rich-text-editor.aSOSl4Rz.js.map} +1 -1
- package/dist/chunks/{search-bar.2U9B3XTR.js → search-bar.Sh4A8UId.js} +3 -3
- package/dist/chunks/{search-bar.2U9B3XTR.js.map → search-bar.Sh4A8UId.js.map} +1 -1
- package/dist/chunks/{secondary-nav.D5bWZz_7.js → secondary-nav.BFtGx_IN.js} +2 -2
- package/dist/chunks/{secondary-nav.D5bWZz_7.js.map → secondary-nav.BFtGx_IN.js.map} +1 -1
- package/dist/chunks/{selection-card-group.CjFm-cAm.js → selection-card-group.CrWy35QU.js} +2 -2
- package/dist/chunks/{selection-card-group.CjFm-cAm.js.map → selection-card-group.CrWy35QU.js.map} +1 -1
- package/dist/chunks/{tabs.zkTl2PQR.js → tabs.Dx6teJGW.js} +2 -2
- package/dist/chunks/{tabs.zkTl2PQR.js.map → tabs.Dx6teJGW.js.map} +1 -1
- package/dist/chunks/{tutorial.C9PYfB4z.js → tutorial.BNZh6N3h.js} +2 -2
- package/dist/chunks/{tutorial.C9PYfB4z.js.map → tutorial.BNZh6N3h.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.DzIppuhI.js → use-cached-selected-values.CDBmVxYM.js} +423 -390
- package/dist/chunks/use-cached-selected-values.CDBmVxYM.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/dropdown.js +4 -4
- 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 +31 -31
- 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 +5 -5
- package/dist/menu.js +1 -1
- package/dist/pagination.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/styles/bento-dark.css +4 -0
- package/dist/styles/bento-light.css +4 -0
- package/dist/styles/bento.css +4 -0
- package/dist/styles/legacy.css +4 -0
- package/dist/styles/styleguide.css +4 -0
- package/dist/tabs.js +1 -1
- package/dist/tutorial.js +1 -1
- package/dist/web-types.json +176 -120
- package/package.json +7 -7
- package/dist/chunks/card.Cu6MicVI.js +0 -123
- package/dist/chunks/card.Cu6MicVI.js.map +0 -1
- package/dist/chunks/checkbox-input.B-4Rw5mp.js +0 -137
- package/dist/chunks/checkbox-input.B-4Rw5mp.js.map +0 -1
- package/dist/chunks/chevron-left.BS24hEFa.js.map +0 -1
- package/dist/chunks/chevron-up.CHK1E4p9.js +0 -43
- package/dist/chunks/chevron-up.CHK1E4p9.js.map +0 -1
- package/dist/chunks/data-grid.BFw0RHNG.js.map +0 -1
- package/dist/chunks/date-range-picker.bQnZ1R2Q.js +0 -977
- package/dist/chunks/date-range-picker.bQnZ1R2Q.js.map +0 -1
- package/dist/chunks/fixed-scroller.Ctz5dFqz.js.map +0 -1
- package/dist/chunks/header-with-views.DKj9cp5r.js.map +0 -1
- package/dist/chunks/listbox-option-tag.EzSkn_lM.js.map +0 -1
- package/dist/chunks/menu.CTVbNfuo.js +0 -601
- package/dist/chunks/menu.CTVbNfuo.js.map +0 -1
- package/dist/chunks/use-cached-selected-values.DzIppuhI.js.map +0 -1
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
import { defineComponent as D, ref as R, computed as l, useAttrs as A, toRefs as S } from "vue";
|
|
2
|
-
import { C as w } from "./checkmark-small.DVDtD4HQ.js";
|
|
3
|
-
/* empty css */
|
|
4
|
-
import { n as v } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
|
|
5
|
-
import "./index.Cl4_42j5.js";
|
|
6
|
-
import "../assets/checkbox-input.css";
|
|
7
|
-
var s = /* @__PURE__ */ ((n) => (n.UNCHECKED = "unchecked", n.DISABLED = "disabled", n.ERROR = "error", n.READONLY = "readonly", n))(s || {}), _ = /* @__PURE__ */ ((n) => (n.UPDATE = "update:model-value", n))(_ || {});
|
|
8
|
-
let h = 0;
|
|
9
|
-
const L = {
|
|
10
|
-
beforeCreate() {
|
|
11
|
-
this.uuid = h.toString(), h += 1;
|
|
12
|
-
}
|
|
13
|
-
};
|
|
14
|
-
var N = function() {
|
|
15
|
-
var e = this, a = e._self._c;
|
|
16
|
-
return a("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? a("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), a("path", { attrs: { fill: "#001222", d: "M4.25 7.25H11.75V8.75H4.25V7.25Z" } })]);
|
|
17
|
-
}, O = [], B = /* @__PURE__ */ v(
|
|
18
|
-
L,
|
|
19
|
-
N,
|
|
20
|
-
O,
|
|
21
|
-
!1,
|
|
22
|
-
null,
|
|
23
|
-
null
|
|
24
|
-
);
|
|
25
|
-
const I = B.exports, $ = {
|
|
26
|
-
name: "checkbox-input",
|
|
27
|
-
inheritAttrs: !1
|
|
28
|
-
}, V = /* @__PURE__ */ D({
|
|
29
|
-
...$,
|
|
30
|
-
props: {
|
|
31
|
-
/**
|
|
32
|
-
* The aria label associated to the input checkbox.
|
|
33
|
-
*/
|
|
34
|
-
ariaLabel: { type: String, default: "" },
|
|
35
|
-
/**
|
|
36
|
-
* An additional string that serves as description for the input checkbox (useful if the component shows a description).
|
|
37
|
-
*/
|
|
38
|
-
ariaDescribedby: { type: String, default: "" },
|
|
39
|
-
/**
|
|
40
|
-
* Setting this property to true will disable the checkbox in your form.
|
|
41
|
-
*/
|
|
42
|
-
disabled: { type: Boolean, default: !1 },
|
|
43
|
-
/**
|
|
44
|
-
* Setting this property to true will show the checkbox in error state.
|
|
45
|
-
*/
|
|
46
|
-
hasError: { type: Boolean, default: !1 },
|
|
47
|
-
/**
|
|
48
|
-
* Sets the id of the checkbox. Required for accessibility purposes
|
|
49
|
-
*/
|
|
50
|
-
id: { type: String, default: null },
|
|
51
|
-
/**
|
|
52
|
-
* The :indeterminate CSS pseudo-class represents any form element
|
|
53
|
-
* whose state is indeterminate, such as checkboxes which have their HTML indeterminate attribute
|
|
54
|
-
* set to true, radio buttons which are members of a group in which all radio buttons are unchecked,
|
|
55
|
-
* and indeterminate <progress> elements. https://developer.mozilla.org/en-US/docs/Web/CSS/:indeterminate
|
|
56
|
-
* This property lets you control the input.indeterminate native property.
|
|
57
|
-
*/
|
|
58
|
-
indeterminate: { type: Boolean, default: !1 },
|
|
59
|
-
/**
|
|
60
|
-
* When handling a single checkbox with a singular state, use a boolean.
|
|
61
|
-
*
|
|
62
|
-
* When handling multiple checkboxes, use an array of keys.
|
|
63
|
-
* These keys exist as a set "value" prop for each checkbox.
|
|
64
|
-
*/
|
|
65
|
-
modelValue: {
|
|
66
|
-
type: [Boolean, Array],
|
|
67
|
-
default: !1
|
|
68
|
-
},
|
|
69
|
-
/**
|
|
70
|
-
* Setting this property to true will set the checkbox to read only state.
|
|
71
|
-
*/
|
|
72
|
-
readonly: { type: Boolean, default: !1 },
|
|
73
|
-
/**
|
|
74
|
-
* The value of the component. The DOM API casts this to a string.
|
|
75
|
-
* The browser uses "on" as the default value.
|
|
76
|
-
*
|
|
77
|
-
* In the case of multiple checkboxes this value is used as a unique key.
|
|
78
|
-
*/
|
|
79
|
-
value: { type: [String, Number], default: null }
|
|
80
|
-
},
|
|
81
|
-
emits: ["update:model-value"],
|
|
82
|
-
setup(n, { emit: e }) {
|
|
83
|
-
const a = n, t = R(null), i = l(() => A()), { disabled: r, indeterminate: k, modelValue: o, readonly: b, value: u } = S(a), C = l(() => ({
|
|
84
|
-
[`b-checkbox-input--${s.DISABLED}`]: a.disabled,
|
|
85
|
-
[`b-checkbox-input--${s.READONLY}`]: a.readonly
|
|
86
|
-
})), y = l(() => ({
|
|
87
|
-
[`b-checkbox-input__outline--${s.UNCHECKED}`]: !p.value && !a.indeterminate,
|
|
88
|
-
[`b-checkbox-input__outline--${s.ERROR}`]: a.hasError,
|
|
89
|
-
[`b-checkbox-input__outline--${s.READONLY}`]: a.readonly
|
|
90
|
-
})), f = l(() => Array.isArray(o.value)), p = l(() => f.value ? o.value.some((c) => c === u.value) : o.value), g = l(
|
|
91
|
-
() => a.indeterminate ? "mixed" : `${!!p.value}`
|
|
92
|
-
), x = l(
|
|
93
|
-
() => a.hasError && !a.disabled && !a.readonly
|
|
94
|
-
);
|
|
95
|
-
return { __sfc: !0, props: a, emit: e, inputRef: t, attrs: i, disabled: r, indeterminate: k, modelValue: o, readonly: b, value: u, conditionalClasses: C, outlineConditionalClasses: y, isCheckboxGroup: f, isChecked: p, ariaChecked: g, ariaInvalid: x, onClick: (c) => {
|
|
96
|
-
if (b.value) {
|
|
97
|
-
c.preventDefault();
|
|
98
|
-
return;
|
|
99
|
-
}
|
|
100
|
-
}, onChange: (c) => {
|
|
101
|
-
if (r.value)
|
|
102
|
-
return;
|
|
103
|
-
const E = c.target.checked;
|
|
104
|
-
if (f.value) {
|
|
105
|
-
const d = [...o.value], m = d.indexOf(u.value);
|
|
106
|
-
m === -1 ? d.push(u.value) : d.splice(m, 1), e(_.UPDATE, d);
|
|
107
|
-
} else
|
|
108
|
-
e(_.UPDATE, E);
|
|
109
|
-
}, CheckmarkSmallIcon: w, MinusSmallIcon: I };
|
|
110
|
-
}
|
|
111
|
-
});
|
|
112
|
-
var P = function() {
|
|
113
|
-
var e = this, a = e._self._c, t = e._self._setupProxy;
|
|
114
|
-
return a("div", { staticClass: "b-checkbox-input", class: t.conditionalClasses }, [t.indeterminate ? a(t.MinusSmallIcon, { staticClass: "b-checkbox-input__icon", attrs: { "svg-title": "", "aria-hidden": "true" } }) : t.isChecked ? a(t.CheckmarkSmallIcon, { staticClass: "b-checkbox-input__icon", attrs: { "svg-title": "", "aria-hidden": "true" } }) : e._e(), a("input", e._b({ ref: "inputRef", staticClass: "b-checkbox-input__outline", class: t.outlineConditionalClasses, attrs: { id: e.id, type: "checkbox", "aria-label": e.ariaLabel, "aria-checked": t.ariaChecked, "aria-describedby": e.ariaDescribedby, "aria-invalid": t.ariaInvalid, disabled: t.disabled, "aria-readonly": t.readonly }, domProps: { checked: t.isChecked, indeterminate: t.indeterminate, value: t.value }, on: { click: t.onClick, change: t.onChange, keydown: [function(i) {
|
|
115
|
-
var r;
|
|
116
|
-
if (!i.type.indexOf("key") && e._k(i.keyCode, "space", 32, i.key, [" ", "Spacebar"])) return null;
|
|
117
|
-
i.preventDefault(), (r = t.inputRef) == null || r.click();
|
|
118
|
-
}, function(i) {
|
|
119
|
-
var r;
|
|
120
|
-
if (!i.type.indexOf("key") && e._k(i.keyCode, "enter", 13, i.key, "Enter")) return null;
|
|
121
|
-
i.preventDefault(), (r = t.inputRef) == null || r.click();
|
|
122
|
-
}] } }, "input", t.attrs, !1))], 1);
|
|
123
|
-
}, U = [], H = /* @__PURE__ */ v(
|
|
124
|
-
V,
|
|
125
|
-
P,
|
|
126
|
-
U,
|
|
127
|
-
!1,
|
|
128
|
-
null,
|
|
129
|
-
"114bf4ba"
|
|
130
|
-
);
|
|
131
|
-
const Z = H.exports;
|
|
132
|
-
export {
|
|
133
|
-
s as C,
|
|
134
|
-
I as N,
|
|
135
|
-
Z as a
|
|
136
|
-
};
|
|
137
|
-
//# sourceMappingURL=checkbox-input.B-4Rw5mp.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox-input.B-4Rw5mp.js","sources":["../../../core/src/components/internal/checkbox-input/checkbox-input.types.ts","../../../ui-assets/icons-16/dist/vue/minus-small.vue","../../src/components/internal/checkbox-input/checkbox-input.vue"],"sourcesContent":["export type MultiCheckboxInputType = Array<string | number>;\nexport type CheckboxInputType = boolean | MultiCheckboxInputType;\n\nexport enum CheckboxInputState {\n UNCHECKED = 'unchecked',\n DISABLED = 'disabled',\n ERROR = 'error',\n READONLY = 'readonly',\n}\n\nexport enum CheckboxInputEvent {\n UPDATE = 'update:model-value',\n}\n\ninterface CheckboxInputGroupItem {\n value: string | number;\n disabled?: boolean;\n hasError?: boolean;\n errorMessage?: string;\n readonly?: boolean;\n}\n\nexport type CheckboxInputGroupItems = Array<CheckboxInputGroupItem>;\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=\"M4.25 7.25H11.75V8.75H4.25V7.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","<template>\n <div class=\"b-checkbox-input\" :class=\"conditionalClasses\">\n <!-- Don't change order because it matters for CSS. Icons first -->\n <minus-small-icon v-if=\"indeterminate\" class=\"b-checkbox-input__icon\" svg-title=\"\" aria-hidden=\"true\" />\n <checkmark-small-icon v-else-if=\"isChecked\" class=\"b-checkbox-input__icon\" svg-title=\"\" aria-hidden=\"true\" />\n <input\n :id=\"id\"\n ref=\"inputRef\"\n v-bind=\"attrs\"\n type=\"checkbox\"\n class=\"b-checkbox-input__outline\"\n :class=\"outlineConditionalClasses\"\n :aria-label=\"ariaLabel\"\n :aria-checked=\"ariaChecked\"\n :aria-describedby=\"ariaDescribedby\"\n :aria-invalid=\"ariaInvalid\"\n :checked=\"isChecked\"\n :disabled=\"disabled\"\n :indeterminate.prop=\"indeterminate\"\n :value=\"value\"\n :aria-readonly=\"readonly\"\n @click=\"onClick\"\n @change=\"onChange\"\n @keydown.space.prevent=\"inputRef?.click()\"\n @keydown.enter.prevent=\"inputRef?.click()\"\n />\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, HTMLAttributes, PropType, ref, toRefs, useAttrs } from 'vue';\n import {\n CheckboxInputEvent,\n CheckboxInputGroupItems,\n CheckboxInputState,\n CheckboxInputType,\n MultiCheckboxInputType,\n } from '@/core/components/internal/checkbox-input/checkbox-input.types';\n import CheckmarkSmallIcon from '@adyen/ui-assets-icons-16/vue/checkmark-small';\n import MinusSmallIcon from '@adyen/ui-assets-icons-16/vue/minus-small';\n import { isVue3 } from 'vue-demi';\n\n const props = defineProps({\n /**\n * The aria label associated to the input checkbox.\n */\n ariaLabel: { type: String, default: '' },\n\n /**\n * An additional string that serves as description for the input checkbox (useful if the component shows a description).\n */\n ariaDescribedby: { type: String, default: '' },\n\n /**\n * Setting this property to true will disable the checkbox in your form.\n */\n disabled: { type: Boolean, default: false },\n\n /**\n * Setting this property to true will show the checkbox in error state.\n */\n hasError: { type: Boolean, default: false },\n\n /**\n * Sets the id of the checkbox. Required for accessibility purposes\n */\n id: { type: String, default: null },\n\n /**\n * The :indeterminate CSS pseudo-class represents any form element\n * whose state is indeterminate, such as checkboxes which have their HTML indeterminate attribute\n * set to true, radio buttons which are members of a group in which all radio buttons are unchecked,\n * and indeterminate <progress> elements. https://developer.mozilla.org/en-US/docs/Web/CSS/:indeterminate\n * This property lets you control the input.indeterminate native property.\n */\n indeterminate: { type: Boolean, default: false },\n\n /**\n * When handling a single checkbox with a singular state, use a boolean.\n *\n * When handling multiple checkboxes, use an array of keys.\n * These keys exist as a set \"value\" prop for each checkbox.\n */\n modelValue: {\n type: [Boolean, Array] as PropType<CheckboxInputType | CheckboxInputGroupItems>,\n default: false,\n },\n\n /**\n * Setting this property to true will set the checkbox to read only state.\n */\n readonly: { type: Boolean, default: false },\n\n /**\n * The value of the component. The DOM API casts this to a string.\n * The browser uses \"on\" as the default value.\n *\n * In the case of multiple checkboxes this value is used as a unique key.\n */\n value: { type: [String, Number], default: null },\n });\n\n const emit = defineEmits([\"update:model-value\"]);\n\n const inputRef = ref<HTMLInputElement | null>(null);\n\n // filter out style classes because in vue3 they are also part of attrs\n const attrs = computed(() => {\n if (isVue3) {\n const { class: _class, style: _style, ...rest } = useAttrs();\n return rest;\n } else {\n return useAttrs();\n }\n });\n\n const { disabled, indeterminate, modelValue, readonly, value } = toRefs(props);\n\n const conditionalClasses = computed(() => ({\n [`b-checkbox-input--${CheckboxInputState.DISABLED}`]: props.disabled,\n [`b-checkbox-input--${CheckboxInputState.READONLY}`]: props.readonly,\n }));\n\n const outlineConditionalClasses = computed(() => ({\n [`b-checkbox-input__outline--${CheckboxInputState.UNCHECKED}`]: !isChecked.value && !props.indeterminate,\n [`b-checkbox-input__outline--${CheckboxInputState.ERROR}`]: props.hasError,\n [`b-checkbox-input__outline--${CheckboxInputState.READONLY}`]: props.readonly,\n }));\n\n const isCheckboxGroup = computed(() => Array.isArray(modelValue.value));\n\n const isChecked = computed(() => {\n if (!isCheckboxGroup.value) {\n return modelValue.value as boolean;\n }\n\n return (modelValue.value as MultiCheckboxInputType).some(item => item === value.value);\n });\n\n // ARIA fields\n const ariaChecked = computed<HTMLAttributes['aria-checked']>(() =>\n props.indeterminate ? 'mixed' : `${!!isChecked.value}`\n );\n const ariaInvalid = computed<HTMLAttributes['aria-invalid']>(\n () => props.hasError && !props.disabled && !props.readonly\n );\n\n // readonly attr doesn't work with checkbox, so we need to manually ignore the click instead\n const onClick = (event: Event) => {\n if (readonly.value) {\n event.preventDefault();\n return;\n }\n };\n const onChange = (event: Event) => {\n if (disabled.value) {\n return;\n }\n\n const newValue: boolean = (event.target as HTMLInputElement).checked;\n\n if (isCheckboxGroup.value) {\n const newCheckedList = [...(modelValue.value as MultiCheckboxInputType)];\n const index = newCheckedList.indexOf(value.value);\n\n if (index === -1) {\n newCheckedList.push(value.value);\n } else {\n newCheckedList.splice(index, 1);\n }\n emit(CheckboxInputEvent.UPDATE, newCheckedList);\n } else {\n emit(CheckboxInputEvent.UPDATE, newValue);\n }\n };\n</script>\n\n<script lang=\"ts\">\n /**\n * Internal component that renders a checkbox input (without label)\n *\n * @example\n * import { BentoCheckboxInput } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoCheckboxInput },\n * template: `\n * <label for=\"checkbox-id\">Your label</label>\n * <span id=\"description-id\">Description</span>\n * <bento-checkbox-input id=\"checkbox-id\" aria=label=\"Your label\" aria-describedby=\"description-id\" />\n * `\n * }\n */\n export default {\n name: 'checkbox-input',\n inheritAttrs: false,\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"@/core/components/internal/checkbox-input/checkbox-input.scss\" />\n"],"names":["CheckboxInputState","CheckboxInputState2","CheckboxInputEvent","CheckboxInputEvent2","uuid","_sfc_main$1","__default__","inputRef","ref","attrs","computed","useAttrs","disabled","indeterminate","modelValue","readonly","value","toRefs","props","conditionalClasses","outlineConditionalClasses","isChecked","isCheckboxGroup","item","ariaChecked","ariaInvalid","event","newValue","newCheckedList","index","emit"],"mappings":";;;;;;AAGY,IAAAA,IAAA,kBAAAC,OACRA,EAAA,YAAA,aACAA,EAAA,WAAA,YACAA,EAAA,QAAA,SACAA,EAAA,WAAA,YAJQA,IAAAD,KAAA,CAAA,CAAA,GAOAE,IAAA,kBAAAC,OACRA,EAAA,SAAA,sBADQA,IAAAD,KAAA,CAAA,CAAA;ACHZ,IAAAE,IAAA;AAEA,MAAAC,IAAA;AAAA,EACA,eAAA;AACA,SAAA,OAAAD,EAAA,SAAA,GACAA,KAAA;AAAA,EACA;AACA;;;;;;;;;;;;qBCmLIE,IAAA;AAAA,EAAe,MAAA;AAAA,EACL,cAAA;AAEV;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA5FAC,IAAAC,EAAA,IAAA,GAGAC,IAAAC,EAAA,MAKQC,EAAA,CACJ,GAGJ,EAAA,UAAAC,GAAA,eAAAC,GAAA,YAAAC,GAAA,UAAAC,GAAA,OAAAC,EAAA,IAAAC,EAAAC,CAAA,GAEAC,IAAAT,EAAA,OAAA;AAAA,MAA2C,CAAA,qBAAAV,EAAA,QAAA,EAAA,GAAAkB,EAAA;AAAA,MACqB,CAAA,qBAAAlB,EAAA,QAAA,EAAA,GAAAkB,EAAA;AAAA,IACA,EAAA,GAGhEE,IAAAV,EAAA,OAAA;AAAA,MAAkD,CAAA,8BAAAV,EAAA,SAAA,EAAA,GAAA,CAAAqB,EAAA,SAAA,CAAAH,EAAA;AAAA,MAC6C,CAAA,8BAAAlB,EAAA,KAAA,EAAA,GAAAkB,EAAA;AAAA,MACzB,CAAA,8BAAAlB,EAAA,QAAA,EAAA,GAAAkB,EAAA;AAAA,IACG,EAAA,GAGzEI,IAAAZ,EAAA,MAAA,MAAA,QAAAI,EAAA,KAAA,CAAA,GAEAO,IAAAX,EAAA,MACIY,EAAA,QAIAR,EAAA,MAAA,KAAA,CAAAS,MAAAA,MAAAP,EAAA,KAAA,IAHIF,EAAA,KAGiF,GAIzFU,IAAAd;AAAA,MAAoB,MAAAQ,EAAA,gBAAA,UAAA,GAAA,CAAA,CAAAG,EAAA,KAAA;AAAA,IACoC,GAExDI,IAAAf;AAAA,MAAoB,MAAAQ,EAAA,YAAA,CAAAA,EAAA,YAAA,CAAAA,EAAA;AAAA,IACkC;uQAItD,CAAAQ,MAAA;AACI,UAAAX,EAAA,OAAA;AACI,QAAAW,EAAA,eAAA;AACA;AAAA,MAAA;AAAA,IACJ,aAEJ,CAAAA,MAAA;AACI,UAAAd,EAAA;AACI;AAGJ,YAAAe,IAAAD,EAAA,OAAA;AAEA,UAAAJ,EAAA,OAAA;AACI,cAAAM,IAAA,CAAA,GAAAd,EAAA,KAAA,GACAe,IAAAD,EAAA,QAAAZ,EAAA,KAAA;AAEA,QAAAa,MAAA,KACID,EAAA,KAAAZ,EAAA,KAAA,IAEAY,EAAA,OAAAC,GAAA,CAAA,GAEJC,EAAA5B,EAAA,QAAA0B,CAAA;AAAA,MAA8C;AAE9C,QAAAE,EAAA5B,EAAA,QAAAyB,CAAA;AAAA,IACJ;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chevron-left.BS24hEFa.js","sources":["../../../ui-assets/icons-16/dist/vue/chevron-right.vue","../../../ui-assets/icons-16/dist/vue/chevron-left.vue"],"sourcesContent":["\n<template>\n <svg role=\"img\" v-bind=\"$attrs\" class=\"ui-assets-icons-16\" xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"none\"><title v-if=\"$attrs['svg-title']\">{{ $attrs['svg-title'] }}</title><path fill=\"#001222\" d=\"M4.43945 12.9999L9.43945 7.99988L4.43945 2.99988L5.50011 1.93922L11.5608 7.99988L5.50011 14.0605L4.43945 12.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","\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=\"M11.5606 3.00011L6.56056 8.00011L11.5606 13.0001L10.4999 14.0608L4.43924 8.00011L10.4999 1.93945L11.5606 3.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"],"names":["uuid","_sfc_main"],"mappings":";;AAOA,IAAAA,IAAA;AAEA,MAAAC,IAAA;AAAA,EACA,eAAA;AACA,SAAA,OAAAD,EAAA,SAAA,GACAA,KAAA;AAAA,EACA;AACA;;;;;;;;;;;;;ACPA,IAAAA,IAAA;AAEA,MAAAC,IAAA;AAAA,EACA,eAAA;AACA,SAAA,OAAAD,EAAA,SAAA,GACAA,KAAA;AAAA,EACA;AACA;;;;;;;;;;;;;"}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
/* empty css */
|
|
2
|
-
import { n } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
|
|
3
|
-
let e = 0;
|
|
4
|
-
const i = {
|
|
5
|
-
beforeCreate() {
|
|
6
|
-
this.uuid = e.toString(), e += 1;
|
|
7
|
-
}
|
|
8
|
-
};
|
|
9
|
-
var l = function() {
|
|
10
|
-
var t = this, s = t._self._c;
|
|
11
|
-
return s("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? s("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), s("path", { attrs: { fill: "#001222", d: "M2.99988 4.43923L7.99988 9.43923L12.9999 4.43923L14.0605 5.49989L7.99988 11.5605L1.93922 5.49989L2.99988 4.43923Z" } })]);
|
|
12
|
-
}, o = [], _ = /* @__PURE__ */ n(
|
|
13
|
-
i,
|
|
14
|
-
l,
|
|
15
|
-
o,
|
|
16
|
-
!1,
|
|
17
|
-
null,
|
|
18
|
-
null
|
|
19
|
-
);
|
|
20
|
-
const m = _.exports;
|
|
21
|
-
let r = 0;
|
|
22
|
-
const c = {
|
|
23
|
-
beforeCreate() {
|
|
24
|
-
this.uuid = r.toString(), r += 1;
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
-
var v = function() {
|
|
28
|
-
var t = this, s = t._self._c;
|
|
29
|
-
return s("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? s("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), s("path", { attrs: { fill: "#001222", d: "M12.9999 11.5605L7.99989 6.56055L2.99988 11.5605L1.93922 10.4999L7.99989 4.43923L14.0605 10.4999L12.9999 11.5605Z" } })]);
|
|
30
|
-
}, f = [], g = /* @__PURE__ */ n(
|
|
31
|
-
c,
|
|
32
|
-
v,
|
|
33
|
-
f,
|
|
34
|
-
!1,
|
|
35
|
-
null,
|
|
36
|
-
null
|
|
37
|
-
);
|
|
38
|
-
const d = g.exports;
|
|
39
|
-
export {
|
|
40
|
-
d as C,
|
|
41
|
-
m as a
|
|
42
|
-
};
|
|
43
|
-
//# sourceMappingURL=chevron-up.CHK1E4p9.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chevron-up.CHK1E4p9.js","sources":["../../../ui-assets/icons-16/dist/vue/chevron-down.vue","../../../ui-assets/icons-16/dist/vue/chevron-up.vue"],"sourcesContent":["\n<template>\n <svg role=\"img\" v-bind=\"$attrs\" class=\"ui-assets-icons-16\" xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"none\"><title v-if=\"$attrs['svg-title']\">{{ $attrs['svg-title'] }}</title><path fill=\"#001222\" d=\"M2.99988 4.43923L7.99988 9.43923L12.9999 4.43923L14.0605 5.49989L7.99988 11.5605L1.93922 5.49989L2.99988 4.43923Z\"/></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=\"M12.9999 11.5605L7.99989 6.56055L2.99988 11.5605L1.93922 10.4999L7.99989 4.43923L14.0605 10.4999L12.9999 11.5605Z\"/></svg>\n</template>\n<script>\n import '../css/main.css';\n\n let uuid = 0;\n\n export default {\n beforeCreate() {\n this.uuid = uuid.toString();\n uuid += 1;\n },\n };\n</script>\n"],"names":["uuid","_sfc_main"],"mappings":";;AAOA,IAAAA,IAAA;AAEA,MAAAC,IAAA;AAAA,EACA,eAAA;AACA,SAAA,OAAAD,EAAA,SAAA,GACAA,KAAA;AAAA,EACA;AACA;;;;;;;;;;;;;ACPA,IAAAA,IAAA;AAEA,MAAAC,IAAA;AAAA,EACA,eAAA;AACA,SAAA,OAAAD,EAAA,SAAA,GACAA,KAAA;AAAA,EACA;AACA;;;;;;;;;;;;;"}
|