@adyen/bento-vue3 1.8.0 → 1.9.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/packages/vue2/src/components/data-grid/composables/useKeyboardNavigator/useKeyboardNavigator.d.ts +6 -2
- package/dist/@types/packages/vue2/src/components/data-grid/composables/useScroller/useScroller.d.ts +6 -0
- package/dist/@types/packages/vue2/src/components/data-grid/data-grid.vue.d.ts +23 -422
- package/dist/@types/packages/vue2/src/components/divider/divider.vue.d.ts +1 -5
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-default-textbox/dropdown-default-textbox.vue.d.ts +10 -0
- package/dist/@types/packages/vue2/src/components/dropdown/dropdown.vue.d.ts +12 -0
- package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter/base-filter.vue.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/input-field/input-field.types.d.ts +1 -3
- package/dist/@types/packages/vue2/src/components/internal/field-label/field-label.vue.d.ts +9 -0
- package/dist/accordion.js +2 -2
- package/dist/action-bar.js +4 -4
- package/dist/alert.js +58 -59
- package/dist/alert.js.map +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/checkbox.css +1 -1
- package/dist/assets/copy.css +1 -1
- package/dist/assets/cross.css +1 -1
- package/dist/assets/dropdown-default-textbox.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/field-label.css +1 -1
- package/dist/assets/index10.css +1 -1
- package/dist/assets/index11.css +1 -1
- package/dist/assets/index12.css +1 -1
- package/dist/assets/index13.css +1 -1
- package/dist/assets/index14.css +1 -1
- package/dist/assets/index15.css +1 -1
- package/dist/assets/index16.css +1 -1
- package/dist/assets/index17.css +1 -1
- package/dist/assets/index18.css +1 -1
- package/dist/assets/index19.css +1 -1
- package/dist/assets/index2.css +1 -1
- package/dist/assets/index20.css +1 -1
- package/dist/assets/index21.css +1 -1
- package/dist/assets/index22.css +1 -1
- package/dist/assets/index23.css +1 -1
- package/dist/assets/index24.css +1 -1
- package/dist/assets/index25.css +1 -1
- package/dist/assets/index26.css +1 -1
- package/dist/assets/index27.css +1 -1
- package/dist/assets/index28.css +1 -1
- package/dist/assets/index29.css +1 -1
- package/dist/assets/index3.css +1 -1
- package/dist/assets/index30.css +1 -1
- package/dist/assets/index31.css +1 -1
- package/dist/assets/index32.css +1 -1
- package/dist/assets/index33.css +1 -1
- package/dist/assets/index34.css +1 -1
- package/dist/assets/index35.css +1 -1
- package/dist/assets/index36.css +1 -1
- package/dist/assets/index37.css +1 -1
- package/dist/assets/index38.css +1 -1
- package/dist/assets/index4.css +1 -1
- package/dist/assets/index40.css +1 -1
- package/dist/assets/index41.css +1 -1
- package/dist/assets/index42.css +1 -1
- package/dist/assets/index43.css +1 -1
- package/dist/assets/index44.css +1 -1
- package/dist/assets/index45.css +1 -1
- package/dist/assets/index46.css +1 -1
- package/dist/assets/index5.css +1 -1
- package/dist/assets/index6.css +1 -1
- package/dist/assets/index7.css +1 -1
- package/dist/assets/index8.css +1 -1
- package/dist/assets/index9.css +1 -1
- package/dist/assets/listbox.css +1 -1
- package/dist/avatar-image.js +1 -1
- package/dist/button.js +3 -3
- package/dist/card.js +2 -2
- package/dist/checkbox.js +5 -5
- package/dist/chunks/arrow-left.81a91b8f.js +29 -0
- package/dist/chunks/arrow-left.81a91b8f.js.map +1 -0
- package/dist/chunks/{base-modal.3dcf8376.js → base-modal.a629cb32.js} +3 -3
- package/dist/chunks/{base-modal.3dcf8376.js.map → base-modal.a629cb32.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.3f52ea2d.js → button-actions-with-menu.f6dfb14d.js} +3 -3
- package/dist/chunks/{button-actions-with-menu.3f52ea2d.js.map → button-actions-with-menu.f6dfb14d.js.map} +1 -1
- package/dist/chunks/{calendar.d4ab387d.js → calendar.fa7712e8.js} +2 -2
- package/dist/chunks/{calendar.d4ab387d.js.map → calendar.fa7712e8.js.map} +1 -1
- package/dist/chunks/{checkbox.03c4b0fe.js → checkbox.731dc0ab.js} +71 -72
- package/dist/chunks/checkbox.731dc0ab.js.map +1 -0
- package/dist/chunks/checkmark-circle-fill.c45a999d.js +44 -0
- package/dist/chunks/checkmark-circle-fill.c45a999d.js.map +1 -0
- package/dist/chunks/checkmark-small.c79220d9.js +29 -0
- package/dist/chunks/checkmark-small.c79220d9.js.map +1 -0
- package/dist/chunks/checkmark.eb3c7a06.js +29 -0
- package/dist/chunks/checkmark.eb3c7a06.js.map +1 -0
- package/dist/chunks/chevron-left.4ee92950.js +52 -0
- package/dist/chunks/chevron-left.4ee92950.js.map +1 -0
- package/dist/chunks/chevron-up.46afb34c.js +52 -0
- package/dist/chunks/chevron-up.46afb34c.js.map +1 -0
- package/dist/chunks/{controls-group.807b5fb0.js → controls-group.d6543674.js} +2 -2
- package/dist/chunks/{controls-group.807b5fb0.js.map → controls-group.d6543674.js.map} +1 -1
- package/dist/chunks/{copy.28bd4298.js → copy.330d594e.js} +36 -37
- package/dist/chunks/copy.330d594e.js.map +1 -0
- package/dist/chunks/cross-circle-fill.1abec1a2.js +44 -0
- package/dist/chunks/cross-circle-fill.1abec1a2.js.map +1 -0
- package/dist/chunks/cross.26509efc.js +29 -0
- package/dist/chunks/cross.26509efc.js.map +1 -0
- package/dist/chunks/{dropdown-default-textbox.74c4584a.js → dropdown-default-textbox.4108b289.js} +63 -58
- package/dist/chunks/{dropdown-default-textbox.74c4584a.js.map → dropdown-default-textbox.4108b289.js.map} +1 -1
- package/dist/chunks/{dropdown.502e1f5c.js → dropdown.63de9aac.js} +209 -201
- package/dist/chunks/dropdown.63de9aac.js.map +1 -0
- package/dist/chunks/field-label.3c19a29a.js +146 -0
- package/dist/chunks/field-label.3c19a29a.js.map +1 -0
- package/dist/chunks/{fixed-scroller.92bb77a6.js → fixed-scroller.bced60dd.js} +2 -2
- package/dist/chunks/{fixed-scroller.92bb77a6.js.map → fixed-scroller.bced60dd.js.map} +1 -1
- package/dist/chunks/{index.cf0d3be3.js → index.4d2a13e1.js} +2 -2
- package/dist/chunks/{index.cf0d3be3.js.map → index.4d2a13e1.js.map} +1 -1
- package/dist/chunks/{index.d2542c6a.js → index.73ed22a7.js} +145 -150
- package/dist/chunks/index.73ed22a7.js.map +1 -0
- package/dist/chunks/{index.7262642e.js → index.85832db5.js} +3 -3
- package/dist/chunks/{index.7262642e.js.map → index.85832db5.js.map} +1 -1
- package/dist/chunks/{index.abb2a1d5.js → index.89dfe209.js} +2 -2
- package/dist/chunks/{index.abb2a1d5.js.map → index.89dfe209.js.map} +1 -1
- package/dist/chunks/{index.726e2f3c.js → index.98174339.js} +4 -4
- package/dist/chunks/{index.726e2f3c.js.map → index.98174339.js.map} +1 -1
- package/dist/chunks/{index.e9156fe3.js → index.c6fecf1c.js} +7 -7
- package/dist/chunks/{index.e9156fe3.js.map → index.c6fecf1c.js.map} +1 -1
- package/dist/chunks/{index.b043371e.js → index.edcaf766.js} +5 -5
- package/dist/chunks/{index.b043371e.js.map → index.edcaf766.js.map} +1 -1
- package/dist/chunks/info-filled.e591599f.js +67 -0
- package/dist/chunks/info-filled.e591599f.js.map +1 -0
- package/dist/chunks/{listbox-option-tag.5b00c85f.js → listbox-option-tag.b1eb32bd.js} +2 -2
- package/dist/chunks/{listbox-option-tag.5b00c85f.js.map → listbox-option-tag.b1eb32bd.js.map} +1 -1
- package/dist/chunks/{listbox.d07c24e6.js → listbox.ac43f8ab.js} +39 -36
- package/dist/chunks/{listbox.d07c24e6.js.map → listbox.ac43f8ab.js.map} +1 -1
- package/dist/chunks/{loading-button.ad7cfaee.js → loading-button.4b88e24d.js} +3 -3
- package/dist/chunks/{loading-button.ad7cfaee.js.map → loading-button.4b88e24d.js.map} +1 -1
- package/dist/chunks/refresh.bd60f6a8.js +29 -0
- package/dist/chunks/refresh.bd60f6a8.js.map +1 -0
- package/dist/chunks/search.ade93bda.js +44 -0
- package/dist/chunks/search.ade93bda.js.map +1 -0
- package/dist/chunks/{tooltip.054d2eb6.js → tooltip.27c32d36.js} +2 -2
- package/dist/chunks/{tooltip.054d2eb6.js.map → tooltip.27c32d36.js.map} +1 -1
- package/dist/code-snippet.js +425 -428
- package/dist/code-snippet.js.map +1 -1
- package/dist/country.js +1 -1
- package/dist/data-grid.js +1080 -1140
- package/dist/data-grid.js.map +1 -1
- package/dist/date-picker.js +6 -6
- package/dist/date-range-picker.js +2 -2
- package/dist/divider.js +9 -26
- package/dist/divider.js.map +1 -1
- package/dist/dropdown.js +3 -3
- package/dist/empty-state.js +1 -1
- package/dist/filter-bar.js +1035 -836
- package/dist/filter-bar.js.map +1 -1
- package/dist/focus-trap.js +1 -1
- package/dist/form-layout.js +1 -1
- package/dist/header.js +2 -2
- package/dist/index.js +12 -12
- package/dist/info-icon.js +38 -39
- package/dist/info-icon.js.map +1 -1
- package/dist/input-field.js +105 -107
- package/dist/input-field.js.map +1 -1
- package/dist/internal.js +7 -7
- package/dist/link.js +1 -1
- package/dist/loading-indicator.js +1 -1
- package/dist/menu.js +1 -1
- package/dist/modal.js +1 -1
- package/dist/pagination.js +149 -157
- package/dist/pagination.js.map +1 -1
- package/dist/payment-method.js +2 -2
- package/dist/payment-method.js.map +1 -1
- package/dist/popover.js +1 -1
- package/dist/popper-container.js +1 -1
- package/dist/radio-group.js +3 -3
- package/dist/search-bar.js +4 -4
- package/dist/segmented-control.js +3 -3
- package/dist/sidepanel.js +4 -4
- package/dist/status.js +1 -1
- package/dist/stepper.js +78 -79
- package/dist/stepper.js.map +1 -1
- package/dist/structured-list.js +1 -1
- package/dist/summary-grid.js +2 -2
- package/dist/tabs.js +2 -2
- package/dist/tag.js +2 -2
- package/dist/textarea.js +46 -47
- package/dist/textarea.js.map +1 -1
- package/dist/timeline.js +92 -93
- package/dist/timeline.js.map +1 -1
- package/dist/toast.js +2 -2
- package/dist/toggle.js +2 -2
- package/dist/tutorial.js +86 -87
- package/dist/tutorial.js.map +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +4 -4
- package/dist/assets/arrow-left.css +0 -1
- package/dist/assets/checkmark-circle-fill.css +0 -1
- package/dist/assets/checkmark-small.css +0 -1
- package/dist/assets/checkmark.css +0 -1
- package/dist/assets/chevron-left.css +0 -1
- package/dist/assets/chevron-up.css +0 -1
- package/dist/assets/cross-circle-fill.css +0 -1
- package/dist/assets/info-filled.css +0 -1
- package/dist/assets/refresh.css +0 -1
- package/dist/assets/search.css +0 -1
- package/dist/chunks/arrow-left.cdbcc128.js +0 -30
- package/dist/chunks/arrow-left.cdbcc128.js.map +0 -1
- package/dist/chunks/checkbox.03c4b0fe.js.map +0 -1
- package/dist/chunks/checkmark-circle-fill.e6b84561.js +0 -45
- package/dist/chunks/checkmark-circle-fill.e6b84561.js.map +0 -1
- package/dist/chunks/checkmark-small.3e93a119.js +0 -30
- package/dist/chunks/checkmark-small.3e93a119.js.map +0 -1
- package/dist/chunks/checkmark.83e4f1e0.js +0 -30
- package/dist/chunks/checkmark.83e4f1e0.js.map +0 -1
- package/dist/chunks/chevron-left.2fd6b083.js +0 -54
- package/dist/chunks/chevron-left.2fd6b083.js.map +0 -1
- package/dist/chunks/chevron-up.9bf21068.js +0 -54
- package/dist/chunks/chevron-up.9bf21068.js.map +0 -1
- package/dist/chunks/copy.28bd4298.js.map +0 -1
- package/dist/chunks/cross-circle-fill.0feb37b3.js +0 -45
- package/dist/chunks/cross-circle-fill.0feb37b3.js.map +0 -1
- package/dist/chunks/cross.5c36a670.js +0 -30
- package/dist/chunks/cross.5c36a670.js.map +0 -1
- package/dist/chunks/dropdown.502e1f5c.js.map +0 -1
- package/dist/chunks/field-label.61679178.js +0 -132
- package/dist/chunks/field-label.61679178.js.map +0 -1
- package/dist/chunks/index.d2542c6a.js.map +0 -1
- package/dist/chunks/info-filled.514a2db6.js +0 -69
- package/dist/chunks/info-filled.514a2db6.js.map +0 -1
- package/dist/chunks/refresh.c38c9eee.js +0 -30
- package/dist/chunks/refresh.c38c9eee.js.map +0 -1
- package/dist/chunks/search.d18f9657.js +0 -45
- package/dist/chunks/search.d18f9657.js.map +0 -1
|
@@ -1,33 +1,32 @@
|
|
|
1
|
-
import { openBlock as
|
|
1
|
+
import { openBlock as r, createElementBlock as c, mergeProps as T, toDisplayString as _, createCommentVNode as g, createElementVNode as k, defineComponent as w, ref as y, computed as V, resolveComponent as C, resolveDirective as b, withDirectives as v, renderSlot as h, createBlock as R, withCtx as P, createVNode as E } from "vue";
|
|
2
2
|
import { a as H } from "./button.82ed953e.js";
|
|
3
|
-
import { c as D } from "./index.
|
|
4
|
-
import { b as F } from "./tooltip.
|
|
3
|
+
import { c as D } from "./index.85832db5.js";
|
|
4
|
+
import { b as F } from "./tooltip.27c32d36.js";
|
|
5
5
|
import { u as O } from "./i18n.6c402773.js";
|
|
6
6
|
import { _ as $ } from "./_plugin-vue_export-helper.dad06003.js";
|
|
7
7
|
import "../assets/copy.css";
|
|
8
|
-
let
|
|
9
|
-
const
|
|
8
|
+
let m = 0;
|
|
9
|
+
const S = {
|
|
10
10
|
beforeCreate() {
|
|
11
|
-
this.uuid =
|
|
11
|
+
this.uuid = m.toString(), m += 1;
|
|
12
12
|
}
|
|
13
|
-
},
|
|
13
|
+
}, A = { key: 0 }, B = /* @__PURE__ */ k("path", {
|
|
14
14
|
fill: "#00112C",
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
},
|
|
19
|
-
|
|
20
|
-
return n(), p("svg", T({ role: "img" }, e.$attrs, {
|
|
15
|
+
d: "M3.5 1.25C2.25736 1.25 1.25 2.25736 1.25 3.5V8.5C1.25 9.74264 2.25736 10.75 3.5 10.75H5.25V12.5C5.25 13.7426 6.25736 14.75 7.5 14.75H12.5C13.7426 14.75 14.75 13.7426 14.75 12.5V7.5C14.75 6.25736 13.7426 5.25 12.5 5.25H10.75V3.5C10.75 2.25736 9.74264 1.25 8.5 1.25H3.5ZM9.25 5.25H7.5C6.25736 5.25 5.25 6.25736 5.25 7.5V9.25H3.5C3.08579 9.25 2.75 8.91421 2.75 8.5V3.5C2.75 3.08579 3.08579 2.75 3.5 2.75H8.5C8.91421 2.75 9.25 3.08579 9.25 3.5V5.25ZM6.75 12.5V7.5C6.75 7.08579 7.08579 6.75 7.5 6.75H12.5C12.9142 6.75 13.25 7.08579 13.25 7.5V12.5C13.25 12.9142 12.9142 13.25 12.5 13.25H7.5C7.08579 13.25 6.75 12.9142 6.75 12.5Z"
|
|
16
|
+
}, null, -1);
|
|
17
|
+
function I(e, t, n, s, p, l) {
|
|
18
|
+
return r(), c("svg", T({ role: "img" }, e.$attrs, {
|
|
19
|
+
class: "ui-assets-icons-16",
|
|
21
20
|
xmlns: "http://www.w3.org/2000/svg",
|
|
22
21
|
width: "16",
|
|
23
22
|
height: "16",
|
|
24
23
|
fill: "none"
|
|
25
24
|
}), [
|
|
26
|
-
e.$attrs["svg-title"] ? (
|
|
27
|
-
|
|
25
|
+
e.$attrs["svg-title"] ? (r(), c("title", A, _(e.$attrs["svg-title"]), 1)) : g("", !0),
|
|
26
|
+
B
|
|
28
27
|
], 16);
|
|
29
28
|
}
|
|
30
|
-
const
|
|
29
|
+
const N = /* @__PURE__ */ $(S, [["render", I]]), f = {
|
|
31
30
|
"en-US": {
|
|
32
31
|
copy: "Copy",
|
|
33
32
|
copied: "Copied!",
|
|
@@ -35,10 +34,10 @@ const M = /* @__PURE__ */ $(A, [["render", U], ["__scopeId", "data-v-38be5f33"]]
|
|
|
35
34
|
}
|
|
36
35
|
};
|
|
37
36
|
var o = /* @__PURE__ */ ((e) => (e.DEFAULT = "default", e.COPYING = "copying", e.ERROR = "error", e))(o || {});
|
|
38
|
-
const
|
|
39
|
-
i18n: { messages:
|
|
37
|
+
const L = w({
|
|
38
|
+
i18n: { messages: f },
|
|
40
39
|
name: "copy",
|
|
41
|
-
components: { BentoButton: H, CopyIcon:
|
|
40
|
+
components: { BentoButton: H, CopyIcon: N },
|
|
42
41
|
directives: { BentoTooltipDirective: F },
|
|
43
42
|
props: {
|
|
44
43
|
/**
|
|
@@ -57,18 +56,18 @@ const G = w({
|
|
|
57
56
|
}
|
|
58
57
|
},
|
|
59
58
|
setup(e) {
|
|
60
|
-
const { t } = O({ messages:
|
|
59
|
+
const { t } = O({ messages: f }), n = y(o.DEFAULT), s = y(!1), p = async () => {
|
|
61
60
|
try {
|
|
62
|
-
await navigator.clipboard.writeText(e.text),
|
|
61
|
+
await navigator.clipboard.writeText(e.text), n.value = o.COPYING, s.value = !0;
|
|
63
62
|
} catch {
|
|
64
|
-
|
|
63
|
+
n.value = o.ERROR;
|
|
65
64
|
}
|
|
66
65
|
}, l = () => {
|
|
67
|
-
|
|
66
|
+
n.value = o.DEFAULT, s.value = !1;
|
|
68
67
|
};
|
|
69
68
|
return {
|
|
70
69
|
copyText: V(() => {
|
|
71
|
-
switch (
|
|
70
|
+
switch (n.value) {
|
|
72
71
|
case o.COPYING:
|
|
73
72
|
return t("copied");
|
|
74
73
|
case o.ERROR:
|
|
@@ -78,37 +77,37 @@ const G = w({
|
|
|
78
77
|
return t("copy");
|
|
79
78
|
}
|
|
80
79
|
}),
|
|
81
|
-
onClickCopy:
|
|
80
|
+
onClickCopy: p,
|
|
82
81
|
resetText: l,
|
|
83
82
|
showScreenReaderAlert: s
|
|
84
83
|
};
|
|
85
84
|
}
|
|
86
85
|
});
|
|
87
|
-
const
|
|
86
|
+
const U = {
|
|
88
87
|
key: 2,
|
|
89
88
|
role: "alert",
|
|
90
89
|
class: "b-copy__screen-reader-alert"
|
|
91
90
|
};
|
|
92
|
-
function
|
|
93
|
-
const a = C("copy-icon"), d = C("bento-button"), u =
|
|
94
|
-
return
|
|
91
|
+
function M(e, t, n, s, p, l) {
|
|
92
|
+
const a = C("copy-icon"), d = C("bento-button"), u = b("bento-tooltip-directive");
|
|
93
|
+
return r(), c("div", {
|
|
95
94
|
class: "b-copy",
|
|
96
95
|
onMouseleave: t[1] || (t[1] = (...i) => e.resetText && e.resetText(...i)),
|
|
97
96
|
onFocusout: t[2] || (t[2] = (...i) => e.resetText && e.resetText(...i))
|
|
98
97
|
}, [
|
|
99
|
-
e.$slots.default ? v((
|
|
98
|
+
e.$slots.default ? v((r(), c("span", {
|
|
100
99
|
key: 0,
|
|
101
100
|
onClick: t[0] || (t[0] = (...i) => e.onClickCopy && e.onClickCopy(...i))
|
|
102
101
|
}, [
|
|
103
|
-
|
|
102
|
+
h(e.$slots, "default", {}, void 0, !0)
|
|
104
103
|
])), [
|
|
105
104
|
[u, e.copyText, e.tooltipPosition]
|
|
106
|
-
]) : v((
|
|
105
|
+
]) : v((r(), R(d, {
|
|
107
106
|
key: 1,
|
|
108
107
|
variant: "tertiary",
|
|
109
108
|
onClick: e.onClickCopy
|
|
110
109
|
}, {
|
|
111
|
-
iconLeft:
|
|
110
|
+
iconLeft: P(() => [
|
|
112
111
|
E(a, {
|
|
113
112
|
"svg-title": e.$t("copy")
|
|
114
113
|
}, null, 8, ["svg-title"])
|
|
@@ -117,11 +116,11 @@ function Z(e, t, r, s, c, l) {
|
|
|
117
116
|
}, 8, ["onClick"])), [
|
|
118
117
|
[u, e.copyText, e.tooltipPosition]
|
|
119
118
|
]),
|
|
120
|
-
e.showScreenReaderAlert ? (
|
|
119
|
+
e.showScreenReaderAlert ? (r(), c("div", U, _(e.$t("copied")), 1)) : g("", !0)
|
|
121
120
|
], 32);
|
|
122
121
|
}
|
|
123
|
-
const
|
|
122
|
+
const z = /* @__PURE__ */ $(L, [["render", M], ["__scopeId", "data-v-65c935fd"]]);
|
|
124
123
|
export {
|
|
125
|
-
|
|
124
|
+
z as C
|
|
126
125
|
};
|
|
127
|
-
//# sourceMappingURL=copy.
|
|
126
|
+
//# sourceMappingURL=copy.330d594e.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"copy.330d594e.js","sources":["../../../vue2/node_modules/@adyen/ui-assets-icons-16/dist/vue/copy.vue","../../../vue2/src/components/internal/copy/copy.types.ts","../../../vue2/src/components/internal/copy/copy.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=\"#00112C\" d=\"M3.5 1.25C2.25736 1.25 1.25 2.25736 1.25 3.5V8.5C1.25 9.74264 2.25736 10.75 3.5 10.75H5.25V12.5C5.25 13.7426 6.25736 14.75 7.5 14.75H12.5C13.7426 14.75 14.75 13.7426 14.75 12.5V7.5C14.75 6.25736 13.7426 5.25 12.5 5.25H10.75V3.5C10.75 2.25736 9.74264 1.25 8.5 1.25H3.5ZM9.25 5.25H7.5C6.25736 5.25 5.25 6.25736 5.25 7.5V9.25H3.5C3.08579 9.25 2.75 8.91421 2.75 8.5V3.5C2.75 3.08579 3.08579 2.75 3.5 2.75H8.5C8.91421 2.75 9.25 3.08579 9.25 3.5V5.25ZM6.75 12.5V7.5C6.75 7.08579 7.08579 6.75 7.5 6.75H12.5C12.9142 6.75 13.25 7.08579 13.25 7.5V12.5C13.25 12.9142 12.9142 13.25 12.5 13.25H7.5C7.08579 13.25 6.75 12.9142 6.75 12.5Z\"/></svg>\n</template>\n<script>\n let uuid = 0;\n\n export default {\n beforeCreate() {\n this.uuid = uuid.toString();\n uuid += 1;\n },\n };\n</script>\n<style>\n @import '../css/main.css';\n</style>\n","export enum CopyTooltipState {\n DEFAULT = 'default',\n COPYING = 'copying',\n ERROR = 'error',\n}\n","<template>\n <div class=\"b-copy\" @mouseleave=\"resetText\" @focusout=\"resetText\">\n <span v-if=\"$slots.default\" v-bento-tooltip-directive:[tooltipPosition]=\"copyText\" @click=\"onClickCopy\">\n <slot />\n </span>\n <bento-button\n v-else\n v-bento-tooltip-directive:[tooltipPosition]=\"copyText\"\n variant=\"tertiary\"\n @click=\"onClickCopy\"\n >\n <template #iconLeft>\n <copy-icon :svg-title=\"$t('copy')\" />\n </template>\n </bento-button>\n <div v-if=\"showScreenReaderAlert\" role=\"alert\" class=\"b-copy__screen-reader-alert\">{{ $t('copied') }}</div>\n </div>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, PropType, ref } from 'vue';\n import { BentoButton } from '@/components/button';\n import { PopperContainerPosition } from '@/components/popper-container';\n import { BentoTooltipDirective } from '@/directives';\n import { useI18n } from '@/utils/ts/i18n';\n import CopyIcon from '@adyen/ui-assets-icons-16/vue/copy';\n import messages from './messages.json';\n import { CopyTooltipState } from './copy.types';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n /**\n * An internal button component that copies text to the user's clipboard.\n *\n * @example\n * import { Copy } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { Copy },\n * template: `\n * <copy :text=\"textToCopy\" />\n * `\n * }\n */\n export default defineComponent({\n i18n: { messages },\n name: 'copy',\n components: { BentoButton, CopyIcon },\n directives: { BentoTooltipDirective },\n props: {\n /**\n * Defines the string that will get copied to the clipboard\n */\n text: {\n type: String,\n required: true,\n },\n\n /**\n * Position the tooltip should take if space is available. Defaults to 'top'\n */\n tooltipPosition: {\n type: String as PropType<PopperContainerPosition>,\n default: PopperContainerPosition.TOP,\n },\n },\n setup(props) {\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n const copyState = ref<CopyTooltipState>(CopyTooltipState.DEFAULT);\n\n const showScreenReaderAlert = ref(false);\n const onClickCopy = async () => {\n try {\n await navigator.clipboard.writeText(props.text);\n copyState.value = CopyTooltipState.COPYING;\n showScreenReaderAlert.value = true;\n } catch (e) {\n copyState.value = CopyTooltipState.ERROR;\n }\n };\n\n const resetText = () => {\n copyState.value = CopyTooltipState.DEFAULT;\n showScreenReaderAlert.value = false;\n };\n\n const copyText = computed(() => {\n switch (copyState.value) {\n case CopyTooltipState.COPYING:\n return t('copied');\n case CopyTooltipState.ERROR:\n return t('copyFailed');\n case CopyTooltipState.DEFAULT:\n default:\n return t('copy');\n }\n });\n\n return {\n copyText,\n onClickCopy,\n resetText,\n showScreenReaderAlert,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./copy.scss\" />\n"],"names":["uuid","openBlock","createElementBlock","mergeProps","_ctx","_hoisted_1$1","toDisplayString","CopyTooltipState","CopyTooltipState2","_sfc_main","defineComponent","messages","BentoButton","CopyIcon","BentoTooltipDirective","PopperContainerPosition","props","useI18n","copyState","ref","showScreenReaderAlert","onClickCopy","resetText","computed","_directive_bento_tooltip_directive","resolveDirective","_cache","args","renderSlot","withDirectives","createBlock","_component_bento_button","withCtx","createVNode","_component_copy_icon"],"mappings":";;;;;;;AAKI,IAAAA,IAAA;;EAGI,eAAA;8BAEIA,KAAA;AAAA;;EARkM,MAAA;AAAA,EAAe,GAAA;;;AAAzN,SAAAC,EAAA,GAAAC,EAAA,OAAAC,EAAA,EAAA,MAAA,MAAA,GAAAC,EAAA,QAAA;AAAA,IAAgC,OAAA;AAAA,IAA2B,OAAA;AAAA,IAAmC,OAAA;AAAA,IAAW,QAAA;AAAA,IAAY,MAAA;AAAA;6BAAYH,EAAA,GAAAC,EAAA,SAAAG,GAAAC,EAAAF,EAAA,OAAA,WAAA,CAAA,GAAA,CAAA;;;;;;;;;;;ACFzH,IAAAG,IAAA,kBAAAC,OACRA,EAAA,UAAA,WACAA,EAAA,UAAA,WACAA,EAAA,QAAA,SAHQA,IAAAD,KAAA,CAAA,CAAA;AC4CR,MAAAE,IAAAC,EAAA;AAAA,EAA+B,MAAA,EAAA,UAAAC,EAAA;AAAA,EACV,MAAA;AAAA,EACX,YAAA,EAAA,aAAAC,GAAA,UAAAC,EAAA;AAAA,EAC8B,YAAA,EAAA,uBAAAC,EAAA;AAAA,EACA,OAAA;AAAA;AAAA;AAAA;AAAA,IAC7B,MAAA;AAAA,MAIG,MAAA;AAAA,MACI,UAAA;AAAA,IACI;AAAA;AAAA;AAAA;AAAA,IACd,iBAAA;AAAA,MAKiB,MAAA;AAAA,MACP,SAAAC,EAAA;AAAA,IAC2B;AAAA,EACrC;AAAA,EACJ,MAAAC,GAAA;AAEI,UAAA,EAAA,EAAA,IAAAC,EAAA,EAAA,UAAAN,EAAA,CAAA,GACAO,IAAAC,EAAAZ,EAAA,OAAA,GAEAa,IAAAD,EAAA,EAAA,GACAE,IAAA,YAAA;AACI,UAAA;AACI,cAAA,UAAA,UAAA,UAAAL,EAAA,IAAA,GACAE,EAAA,QAAAX,EAAA,SACAa,EAAA,QAAA;AAAA,MAA8B,QAAA;AAE9B,QAAAF,EAAA,QAAAX,EAAA;AAAA,MAAmC;AAAA,IACvC,GAGJe,IAAA,MAAA;AACI,MAAAJ,EAAA,QAAAX,EAAA,SACAa,EAAA,QAAA;AAAA,IAA8B;AAelC,WAAA;AAAA,MAAO,UAZPG,EAAA,MAAA;AACI,gBAAAL,EAAA,OAAA;AAAA,UAAyB,KAAAX,EAAA;AAEjB,mBAAA,EAAA,QAAA;AAAA,UAAiB,KAAAA,EAAA;AAEjB,mBAAA,EAAA,YAAA;AAAA,UAAqB,KAAAA,EAAA;AAAA,UACH;AAElB,mBAAA,EAAA,MAAA;AAAA,QAAe;AAAA,MACvB,CAAA;AAAA,MAIA,aAAAc;AAAA,MACA,WAAAC;AAAA,MACA,uBAAAF;AAAA,IACA;AAAA,EACJ;AAER,CAAA;;EA1FkD,KAAA;AAAA,EAAM,MAAA;AAAA;;;mDAClDI,IAAAC,EAAA,yBAAA;;IAfyB,OAAA;AAAA,IAAc,cAAAC,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAA,IAAAC,MAAAvB,EAAA,aAAAA,EAAA,UAAA,GAAAuB,CAAA;AAAA,IACvB,YAAAD,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAA,IAAAC,MAAAvB,EAAA,aAAAA,EAAA,UAAA,GAAAuB,CAAA;AAAA,EAAQ,GAAA;AAAA;MAAiE,KAAA;AAAA;IAC/E,GAAA;AAAA,MAD6DC,EAAAxB,EAAA,QAAA,WAAA,CAAA,GAAA,QAAA,EAAA;AAAA,IAAnB,CAAA,IAAA;AAAA;IAYvC,CAAA,IAAAyB,GAAA5B,EAAA,GAAA6B,EAAAC,GAAA;AAAA,MANO,KAAA;AAAA,MACjB,SAAA;AAAA;IAEkB,GAAA;AAAA,MACH,UAAAC,EAAA,MAAA;AAAA,QAAaC,EAAAC,GAAA;AAAA;;;;;;IAGD,CAAA;AAAA;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { openBlock as s, createElementBlock as i, mergeProps as l, toDisplayString as r, createCommentVNode as c, createElementVNode as e } from "vue";
|
|
2
|
+
import { _ as n } from "./_plugin-vue_export-helper.dad06003.js";
|
|
3
|
+
import "../assets/cross.css";
|
|
4
|
+
let o = 0;
|
|
5
|
+
const _ = {
|
|
6
|
+
beforeCreate() {
|
|
7
|
+
this.uuid = o.toString(), o += 1;
|
|
8
|
+
}
|
|
9
|
+
}, a = { key: 0 }, d = ["clip-path"], u = /* @__PURE__ */ e("path", {
|
|
10
|
+
fill: "#00112C",
|
|
11
|
+
d: "M0.25 8C0.25 3.71979 3.71979 0.25 8 0.25C12.2802 0.25 15.75 3.71979 15.75 8C15.75 12.2802 12.2802 15.75 8 15.75C3.71979 15.75 0.25 12.2802 0.25 8ZM6.00011 4.93945L4.93945 6.00011L6.93945 8.00011L4.93945 10.0001L6.00011 11.0608L8.00011 9.06077L10.0001 11.0608L11.0608 10.0001L9.06077 8.00011L11.0608 6.00011L10.0001 4.93945L8.00011 6.93945L6.00011 4.93945Z"
|
|
12
|
+
}, null, -1), h = [
|
|
13
|
+
u
|
|
14
|
+
], p = ["id"], f = /* @__PURE__ */ e("rect", {
|
|
15
|
+
width: "16",
|
|
16
|
+
height: "16",
|
|
17
|
+
fill: "#fff"
|
|
18
|
+
}, null, -1), g = [
|
|
19
|
+
f
|
|
20
|
+
];
|
|
21
|
+
function m(t, L, C, $, v, w) {
|
|
22
|
+
return s(), i("svg", l({ role: "img" }, t.$attrs, {
|
|
23
|
+
class: "ui-assets-icons-16",
|
|
24
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
25
|
+
width: "16",
|
|
26
|
+
height: "16",
|
|
27
|
+
fill: "none"
|
|
28
|
+
}), [
|
|
29
|
+
t.$attrs["svg-title"] ? (s(), i("title", a, r(t.$attrs["svg-title"]), 1)) : c("", !0),
|
|
30
|
+
e("g", {
|
|
31
|
+
"clip-path": "url(#uia-icons-16-cross_circle_fill__a" + t.uuid + ")"
|
|
32
|
+
}, h, 8, d),
|
|
33
|
+
e("defs", null, [
|
|
34
|
+
e("clipPath", {
|
|
35
|
+
id: "uia-icons-16-cross_circle_fill__a" + t.uuid
|
|
36
|
+
}, g, 8, p)
|
|
37
|
+
])
|
|
38
|
+
], 16);
|
|
39
|
+
}
|
|
40
|
+
const B = /* @__PURE__ */ n(_, [["render", m]]);
|
|
41
|
+
export {
|
|
42
|
+
B as C
|
|
43
|
+
};
|
|
44
|
+
//# sourceMappingURL=cross-circle-fill.1abec1a2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cross-circle-fill.1abec1a2.js","sources":["../../../vue2/node_modules/@adyen/ui-assets-icons-16/dist/vue/cross-circle-fill.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><g :clip-path=\"'url(#uia-icons-16-cross_circle_fill__a' + uuid + ')'\"><path fill=\"#00112C\" d=\"M0.25 8C0.25 3.71979 3.71979 0.25 8 0.25C12.2802 0.25 15.75 3.71979 15.75 8C15.75 12.2802 12.2802 15.75 8 15.75C3.71979 15.75 0.25 12.2802 0.25 8ZM6.00011 4.93945L4.93945 6.00011L6.93945 8.00011L4.93945 10.0001L6.00011 11.0608L8.00011 9.06077L10.0001 11.0608L11.0608 10.0001L9.06077 8.00011L11.0608 6.00011L10.0001 4.93945L8.00011 6.93945L6.00011 4.93945Z\"/></g><defs><clipPath :id=\"'uia-icons-16-cross_circle_fill__a' + uuid\"><rect width=\"16\" height=\"16\" fill=\"#fff\"/></clipPath></defs></svg>\n</template>\n<script>\n let uuid = 0;\n\n export default {\n beforeCreate() {\n this.uuid = uuid.toString();\n uuid += 1;\n },\n };\n</script>\n<style>\n @import '../css/main.css';\n</style>\n"],"names":["uuid","openBlock","createElementBlock","mergeProps","_ctx","_hoisted_1","toDisplayString"],"mappings":";;;AAKI,IAAAA,IAAA;;EAGI,eAAA;8BAEIA,KAAA;AAAA;;EARwQ,MAAA;AAAA,EAAe,GAAA;;;;EAAob,OAAA;AAAA,EAAW,QAAA;AAAA,EAAY,MAAA;;;;;AAA1uB,SAAAC,EAAA,GAAAC,EAAA,OAAAC,EAAA,EAAA,MAAA,MAAA,GAAAC,EAAA,QAAA;AAAA,IAAgC,OAAA;AAAA,IAA2B,OAAA;AAAA,IAAmC,OAAA;AAAA,IAAW,QAAA;AAAA,IAAY,MAAA;AAAA;6BAAYH,EAAA,GAAAC,EAAA,SAAAG,GAAAC,EAAAF,EAAA,OAAA,WAAA,CAAA,GAAA,CAAA;;MAAuE,aAAA,2CAAAA,EAAA,OAAA;AAAA;;;QAAqd,IAAA,sCAAAA,EAAA;AAAA;;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { openBlock as e, createElementBlock as s, mergeProps as r, toDisplayString as n, createCommentVNode as i, createElementVNode as l } from "vue";
|
|
2
|
+
import { _ as a } from "./_plugin-vue_export-helper.dad06003.js";
|
|
3
|
+
import "../assets/cross.css";
|
|
4
|
+
let o = 0;
|
|
5
|
+
const c = {
|
|
6
|
+
beforeCreate() {
|
|
7
|
+
this.uuid = o.toString(), o += 1;
|
|
8
|
+
}
|
|
9
|
+
}, _ = { key: 0 }, p = /* @__PURE__ */ l("path", {
|
|
10
|
+
fill: "#00112C",
|
|
11
|
+
d: "M8.00023 9.06089L12.0001 13.0608L13.0608 12.0001L9.06089 8.00023L13.061 4.00011L12.0003 2.93945L8.00023 6.93957L4.00011 2.93945L2.93945 4.00011L6.93957 8.00023L2.93968 12.0001L4.00034 13.0608L8.00023 9.06089Z"
|
|
12
|
+
}, null, -1);
|
|
13
|
+
function m(t, d, u, L, g, f) {
|
|
14
|
+
return e(), s("svg", r({ role: "img" }, t.$attrs, {
|
|
15
|
+
class: "ui-assets-icons-16",
|
|
16
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
17
|
+
width: "16",
|
|
18
|
+
height: "16",
|
|
19
|
+
fill: "none"
|
|
20
|
+
}), [
|
|
21
|
+
t.$attrs["svg-title"] ? (e(), s("title", _, n(t.$attrs["svg-title"]), 1)) : i("", !0),
|
|
22
|
+
p
|
|
23
|
+
], 16);
|
|
24
|
+
}
|
|
25
|
+
const v = /* @__PURE__ */ a(c, [["render", m]]);
|
|
26
|
+
export {
|
|
27
|
+
v as C
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=cross.26509efc.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cross.26509efc.js","sources":["../../../vue2/node_modules/@adyen/ui-assets-icons-16/dist/vue/cross.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=\"#00112C\" d=\"M8.00023 9.06089L12.0001 13.0608L13.0608 12.0001L9.06089 8.00023L13.061 4.00011L12.0003 2.93945L8.00023 6.93957L4.00011 2.93945L2.93945 4.00011L6.93957 8.00023L2.93968 12.0001L4.00034 13.0608L8.00023 9.06089Z\"/></svg>\n</template>\n<script>\n let uuid = 0;\n\n export default {\n beforeCreate() {\n this.uuid = uuid.toString();\n uuid += 1;\n },\n };\n</script>\n<style>\n @import '../css/main.css';\n</style>\n"],"names":["uuid","openBlock","createElementBlock","mergeProps","_ctx","_hoisted_1","toDisplayString"],"mappings":";;;AAKI,IAAAA,IAAA;;EAGI,eAAA;8BAEIA,KAAA;AAAA;;EARkM,MAAA;AAAA,EAAe,GAAA;;;AAAzN,SAAAC,EAAA,GAAAC,EAAA,OAAAC,EAAA,EAAA,MAAA,MAAA,GAAAC,EAAA,QAAA;AAAA,IAAgC,OAAA;AAAA,IAA2B,OAAA;AAAA,IAAmC,OAAA;AAAA,IAAW,QAAA;AAAA,IAAY,MAAA;AAAA;6BAAYH,EAAA,GAAAC,EAAA,SAAAG,GAAAC,EAAAF,EAAA,OAAA,WAAA,CAAA,GAAA,CAAA;;;;;","x_google_ignoreList":[0]}
|
package/dist/chunks/{dropdown-default-textbox.74c4584a.js → dropdown-default-textbox.4108b289.js}
RENAMED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as P, ref as Y, computed as c, resolveComponent as v, openBlock as l, createElementBlock as d, normalizeClass as h, withKeys as C, createVNode as w, withCtx as _, mergeProps as E, renderSlot as S, normalizeProps as L, createTextVNode as D, toDisplayString as I, Fragment as $, renderList as V, createElementVNode as k, guardReactiveProps as R, createCommentVNode as N, withModifiers as x, toHandlers as M, createSlots as W, withDirectives as A, vShow as B } from "vue";
|
|
2
2
|
import { g as q } from "./unique-id.a2a2b458.js";
|
|
3
3
|
import { u as H } from "./use-has-slot.4d98bf29.js";
|
|
4
4
|
import { B as j } from "./index.75f3672e.js";
|
|
5
5
|
import { d as z } from "./debounce.b5ef6acf.js";
|
|
6
6
|
import { B as G } from "./keyboard-navigation.ca47dfa8.js";
|
|
7
|
-
import { C as J } from "./cross-circle-fill.
|
|
7
|
+
import { C as J } from "./cross-circle-fill.1abec1a2.js";
|
|
8
8
|
import { _ as T } from "./_plugin-vue_export-helper.dad06003.js";
|
|
9
9
|
import { s as O } from "./events.58c00e6d.js";
|
|
10
|
-
import { C as Q, a as X } from "./chevron-up.
|
|
10
|
+
import { C as Q, a as X } from "./chevron-up.46afb34c.js";
|
|
11
11
|
import "../assets/dropdown-default-textbox.css";
|
|
12
12
|
var u = /* @__PURE__ */ ((e) => (e.DISABLED = "disabled", e.READONLY = "readonly", e.HAS_ITEMS = "has-items", e.OPENED = "opened", e.ERROR = "error", e))(u || {}), o = /* @__PURE__ */ ((e) => (e.OPEN = "open", e.KEYDOWN = "keydown", e.CLOSE = "close", e.INPUT = "input", e.CLEAR = "clear", e))(o || {});
|
|
13
|
-
const Z =
|
|
13
|
+
const Z = P({
|
|
14
14
|
name: "dropdown-base-textbox",
|
|
15
15
|
components: { BentoTypography: j, CrossCircleFillIcon: J },
|
|
16
16
|
inheritAttrs: !1,
|
|
@@ -107,11 +107,11 @@ const Z = B({
|
|
|
107
107
|
o.KEYDOWN
|
|
108
108
|
],
|
|
109
109
|
setup(e, { emit: t, slots: s, attrs: y }) {
|
|
110
|
-
const r = Y(null), m = q("textbox"), p =
|
|
110
|
+
const r = Y(null), m = q("textbox"), p = c(() => ({
|
|
111
111
|
[`b-dropdown-base-textbox--${u.DISABLED}`]: e.disabled,
|
|
112
112
|
[`b-dropdown-base-textbox--${u.READONLY}`]: e.readonly,
|
|
113
113
|
[`b-dropdown-base-textbox--${u.HAS_ITEMS}`]: !!e.additionalItemsSelected
|
|
114
|
-
})), b =
|
|
114
|
+
})), b = c(() => e.dynamicFiltering && !!e.value && e.open), n = c(
|
|
115
115
|
() => {
|
|
116
116
|
var i;
|
|
117
117
|
return {
|
|
@@ -125,15 +125,15 @@ const Z = B({
|
|
|
125
125
|
"aria-disabled": e.disabled ? !0 : null
|
|
126
126
|
};
|
|
127
127
|
}
|
|
128
|
-
),
|
|
128
|
+
), g = () => {
|
|
129
129
|
!e.disabled && !e.readonly && (r.value.focus(), t(o.OPEN));
|
|
130
|
-
},
|
|
130
|
+
}, f = () => {
|
|
131
131
|
e.open && (r.value.focus(), t(o.CLOSE));
|
|
132
|
-
},
|
|
132
|
+
}, a = (i) => e.open && i.target.tagName === "INPUT" ? null : e.open ? f() : g(), K = () => {
|
|
133
133
|
t(o.CLEAR), t(o.INPUT, ""), r.value.focus();
|
|
134
134
|
}, F = z((i) => {
|
|
135
135
|
!e.readonly && !e.disabled ? t(o.INPUT, i.target.value) : (i.preventDefault(), i.stopPropagation());
|
|
136
|
-
}, e.debounceTime), U =
|
|
136
|
+
}, e.debounceTime), U = c(
|
|
137
137
|
() => e.multiple ? e.selectedValueItem : []
|
|
138
138
|
);
|
|
139
139
|
return {
|
|
@@ -145,11 +145,11 @@ const Z = B({
|
|
|
145
145
|
textboxId: m,
|
|
146
146
|
textbox: r,
|
|
147
147
|
isFiltering: b,
|
|
148
|
-
ariaAttributes:
|
|
148
|
+
ariaAttributes: n,
|
|
149
149
|
selectedValueItems: U,
|
|
150
150
|
// Events
|
|
151
|
-
onCloseDropdown:
|
|
152
|
-
onToggleDropdown:
|
|
151
|
+
onCloseDropdown: f,
|
|
152
|
+
onToggleDropdown: a,
|
|
153
153
|
onClearSearch: K,
|
|
154
154
|
onInputEvent: F,
|
|
155
155
|
// Methods
|
|
@@ -160,7 +160,7 @@ const Z = B({
|
|
|
160
160
|
const ee = ["id", "value", "disabled", "readonly"], oe = ["id"], te = {
|
|
161
161
|
key: 1,
|
|
162
162
|
class: "b-dropdown-base-textbox__input-multiple-selected"
|
|
163
|
-
},
|
|
163
|
+
}, ne = { class: "b-dropdown-base-textbox__input-selected-element" }, ae = {
|
|
164
164
|
key: 2,
|
|
165
165
|
class: "b-dropdown-base-textbox__additional-items"
|
|
166
166
|
}, le = {
|
|
@@ -173,10 +173,10 @@ function de(e, t, s, y, r, m) {
|
|
|
173
173
|
return l(), d("div", {
|
|
174
174
|
class: h(e.$attrs.class),
|
|
175
175
|
"data-testid": "textbox-wrapper",
|
|
176
|
-
onClick: t[6] || (t[6] = (...
|
|
177
|
-
onKeydown: t[7] || (t[7] = C((...
|
|
176
|
+
onClick: t[6] || (t[6] = (...n) => e.onToggleDropdown && e.onToggleDropdown(...n)),
|
|
177
|
+
onKeydown: t[7] || (t[7] = C((...n) => e.onCloseDropdown && e.onCloseDropdown(...n), ["escape"]))
|
|
178
178
|
}, [
|
|
179
|
-
|
|
179
|
+
w(b, {
|
|
180
180
|
class: h(["b-dropdown-base-textbox", e.conditionalClasses]),
|
|
181
181
|
el: "div",
|
|
182
182
|
"data-testid": "base-textbox"
|
|
@@ -193,10 +193,10 @@ function de(e, t, s, y, r, m) {
|
|
|
193
193
|
disabled: e.disabled ? !0 : null,
|
|
194
194
|
readonly: e.readonly,
|
|
195
195
|
onKeydown: [
|
|
196
|
-
t[0] || (t[0] = (
|
|
197
|
-
t[1] || (t[1] = C((...
|
|
196
|
+
t[0] || (t[0] = (n) => e.$emit(e.DropdownBaseTextboxEvent.KEYDOWN, n)),
|
|
197
|
+
t[1] || (t[1] = C((...n) => e.onToggleDropdown && e.onToggleDropdown(...n), ["enter"]))
|
|
198
198
|
],
|
|
199
|
-
onInput: t[2] || (t[2] = (...
|
|
199
|
+
onInput: t[2] || (t[2] = (...n) => e.onInputEvent && e.onInputEvent(...n))
|
|
200
200
|
}), null, 16, ee)) : (l(), d("div", E({
|
|
201
201
|
key: 1,
|
|
202
202
|
id: e.textboxId
|
|
@@ -209,11 +209,11 @@ function de(e, t, s, y, r, m) {
|
|
|
209
209
|
e.selectedValueItem && !e.multiple ? S(e.$slots, "default", L(E({ key: 0 }, e.selectedValueItem)), () => [
|
|
210
210
|
D(I(e.displayValue), 1)
|
|
211
211
|
], !0) : e.selectedValueItem && e.showSlotContentInMultiple ? (l(), d("div", te, [
|
|
212
|
-
(l(!0), d($, null, V(e.selectedValueItems, (
|
|
213
|
-
key:
|
|
212
|
+
(l(!0), d($, null, V(e.selectedValueItems, (n) => (l(), d("div", {
|
|
213
|
+
key: n.value
|
|
214
214
|
}, [
|
|
215
|
-
k("div",
|
|
216
|
-
S(e.$slots, "default", L(R(
|
|
215
|
+
k("div", ne, [
|
|
216
|
+
S(e.$slots, "default", L(R(n)), () => [
|
|
217
217
|
D(I(e.displayValue), 1)
|
|
218
218
|
], !0)
|
|
219
219
|
])
|
|
@@ -222,7 +222,7 @@ function de(e, t, s, y, r, m) {
|
|
|
222
222
|
D(I(e.displayValue), 1)
|
|
223
223
|
], 64))
|
|
224
224
|
], 16, oe)),
|
|
225
|
-
e.additionalItemsSelected ? (l(), d("span",
|
|
225
|
+
e.additionalItemsSelected ? (l(), d("span", ae, I(e.additionalItemsSelected), 1)) : N("", !0),
|
|
226
226
|
e.hasSlot("icon") && !e.isFiltering ? (l(), d("span", le, [
|
|
227
227
|
S(e.$slots, "icon", {}, void 0, !0)
|
|
228
228
|
])) : N("", !0),
|
|
@@ -231,18 +231,18 @@ function de(e, t, s, y, r, m) {
|
|
|
231
231
|
class: "b-dropdown-base-textbox__clear-search",
|
|
232
232
|
tabindex: "0",
|
|
233
233
|
"data-testid": "clear-search-button",
|
|
234
|
-
onClick: t[3] || (t[3] = x((...
|
|
235
|
-
onKeydown: t[4] || (t[4] = C(x((...
|
|
236
|
-
onKeyup: t[5] || (t[5] = C((...
|
|
234
|
+
onClick: t[3] || (t[3] = x((...n) => e.onClearSearch && e.onClearSearch(...n), ["stop"])),
|
|
235
|
+
onKeydown: t[4] || (t[4] = C(x((...n) => e.onClearSearch && e.onClearSearch(...n), ["stop"]), ["enter"])),
|
|
236
|
+
onKeyup: t[5] || (t[5] = C((...n) => e.onClearSearch && e.onClearSearch(...n), ["space"]))
|
|
237
237
|
}, [
|
|
238
|
-
|
|
238
|
+
w(p, { "svg-title": "clearSearch" })
|
|
239
239
|
], 32)) : N("", !0)
|
|
240
240
|
]),
|
|
241
241
|
_: 3
|
|
242
242
|
}, 8, ["class"])
|
|
243
243
|
], 34);
|
|
244
244
|
}
|
|
245
|
-
const se = /* @__PURE__ */ T(Z, [["render", de], ["__scopeId", "data-v-1f411186"]]), re =
|
|
245
|
+
const se = /* @__PURE__ */ T(Z, [["render", de], ["__scopeId", "data-v-1f411186"]]), re = P({
|
|
246
246
|
name: "dropdown-default-textbox",
|
|
247
247
|
components: { ChevronDownIcon: Q, ChevronUpIcon: X, DropdownBaseTextbox: se },
|
|
248
248
|
inheritAttrs: !1,
|
|
@@ -286,6 +286,10 @@ const se = /* @__PURE__ */ T(Z, [["render", de], ["__scopeId", "data-v-1f411186"
|
|
|
286
286
|
type: String,
|
|
287
287
|
default: null
|
|
288
288
|
},
|
|
289
|
+
/**
|
|
290
|
+
* Renders the dropdown with a condensed style.
|
|
291
|
+
*/
|
|
292
|
+
condensed: { type: Boolean, default: !1 },
|
|
289
293
|
/**
|
|
290
294
|
* Custom debounce time. Default: 300
|
|
291
295
|
*/
|
|
@@ -339,26 +343,27 @@ const se = /* @__PURE__ */ T(Z, [["render", de], ["__scopeId", "data-v-1f411186"
|
|
|
339
343
|
multiple: { type: Boolean, default: !1 }
|
|
340
344
|
},
|
|
341
345
|
setup(e, { slots: t, emit: s }) {
|
|
342
|
-
const y =
|
|
346
|
+
const y = c(() => ({
|
|
343
347
|
[`b-dropdown-default-textbox--${u.ERROR}`]: !e.disabled && !e.readonly && e.isInvalid,
|
|
344
348
|
[`b-dropdown-default-textbox--${u.DISABLED}`]: e.disabled,
|
|
345
349
|
[`b-dropdown-default-textbox--${u.READONLY}`]: e.readonly,
|
|
346
|
-
[`b-dropdown-default-textbox--${u.OPENED}`]: e.open
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
350
|
+
[`b-dropdown-default-textbox--${u.OPENED}`]: e.open,
|
|
351
|
+
"b-dropdown-default-textbox--condensed": e.condensed
|
|
352
|
+
})), r = c(() => e.open && !e.disabled && !e.readonly), m = (a) => {
|
|
353
|
+
s(o.INPUT, a);
|
|
354
|
+
}, p = (a) => {
|
|
355
|
+
s(o.KEYDOWN, a);
|
|
356
|
+
}, b = (a) => {
|
|
357
|
+
O(a), s(o.OPEN);
|
|
358
|
+
}, n = (a) => {
|
|
359
|
+
O(a), s(o.CLOSE);
|
|
360
|
+
}, g = (a) => {
|
|
361
|
+
O(a), s(o.CLEAR);
|
|
362
|
+
}, f = {
|
|
358
363
|
[o.INPUT]: m,
|
|
359
364
|
[o.OPEN]: b,
|
|
360
|
-
[o.CLOSE]:
|
|
361
|
-
[o.CLEAR]:
|
|
365
|
+
[o.CLOSE]: n,
|
|
366
|
+
[o.CLEAR]: g,
|
|
362
367
|
[o.KEYDOWN]: p
|
|
363
368
|
};
|
|
364
369
|
return {
|
|
@@ -369,47 +374,47 @@ const se = /* @__PURE__ */ T(Z, [["render", de], ["__scopeId", "data-v-1f411186"
|
|
|
369
374
|
isDropdownOpen: r,
|
|
370
375
|
slots: t,
|
|
371
376
|
// Events
|
|
372
|
-
listeners:
|
|
377
|
+
listeners: f
|
|
373
378
|
};
|
|
374
379
|
}
|
|
375
380
|
});
|
|
376
381
|
const ie = { class: "b-dropdown-default-textbox__chevron" };
|
|
377
382
|
function ue(e, t, s, y, r, m) {
|
|
378
|
-
const p = v("chevron-up-icon"), b = v("chevron-down-icon"),
|
|
383
|
+
const p = v("chevron-up-icon"), b = v("chevron-down-icon"), n = v("dropdown-base-textbox");
|
|
379
384
|
return l(), d("div", {
|
|
380
385
|
class: h(["b-dropdown-default-textbox", e.conditionalClasses]),
|
|
381
386
|
"data-testid": "default-textbox"
|
|
382
387
|
}, [
|
|
383
|
-
|
|
388
|
+
w(n, E({ ...e.$attrs, ...e.$props }, {
|
|
384
389
|
class: "b-dropdown-default-textbox__textbox",
|
|
385
390
|
value: e.value
|
|
386
391
|
}, M(e.listeners)), W({
|
|
387
392
|
icon: _(() => [
|
|
388
393
|
k("div", ie, [
|
|
389
|
-
A(
|
|
390
|
-
[
|
|
394
|
+
A(w(p, { "svg-title": "opened" }, null, 512), [
|
|
395
|
+
[B, e.isDropdownOpen]
|
|
391
396
|
]),
|
|
392
|
-
A(
|
|
393
|
-
[
|
|
397
|
+
A(w(b, { "svg-title": "closed" }, null, 512), [
|
|
398
|
+
[B, !e.isDropdownOpen]
|
|
394
399
|
])
|
|
395
400
|
])
|
|
396
401
|
]),
|
|
397
402
|
_: 2
|
|
398
403
|
}, [
|
|
399
|
-
V(e.slots, (
|
|
400
|
-
name:
|
|
401
|
-
fn: _((
|
|
402
|
-
S(e.$slots,
|
|
404
|
+
V(e.slots, (g, f) => ({
|
|
405
|
+
name: f,
|
|
406
|
+
fn: _((a) => [
|
|
407
|
+
S(e.$slots, f, L(R(a)), void 0, !0)
|
|
403
408
|
])
|
|
404
409
|
}))
|
|
405
410
|
]), 1040, ["value"])
|
|
406
411
|
], 2);
|
|
407
412
|
}
|
|
408
|
-
const Ee = /* @__PURE__ */ T(re, [["render", ue], ["__scopeId", "data-v-
|
|
413
|
+
const Ee = /* @__PURE__ */ T(re, [["render", ue], ["__scopeId", "data-v-85fab4bd"]]);
|
|
409
414
|
export {
|
|
410
415
|
se as D,
|
|
411
416
|
o as a,
|
|
412
417
|
u as b,
|
|
413
418
|
Ee as c
|
|
414
419
|
};
|
|
415
|
-
//# sourceMappingURL=dropdown-default-textbox.
|
|
420
|
+
//# sourceMappingURL=dropdown-default-textbox.4108b289.js.map
|