@kiva/kv-shop 3.7.81 → 3.7.83
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/components/KvPaymentSelect2.js +13 -9
- package/dist/kv-components/dist/utils/attrs.js +19 -0
- package/dist/kv-components/dist/utils/comparators.js +17 -5
- package/dist/kv-components/dist/utils/markMatches.js +12 -0
- package/dist/kv-components/dist/utils/typeaheadSearchConfig.js +31 -0
- package/dist/kv-components/dist/utils/typeaheadSearchEngine.js +28 -0
- package/dist/kv-components/dist/utils/useTypeaheadSearch.js +64 -0
- package/dist/kv-components/dist/vue/KvTextInput.css +1 -0
- package/dist/kv-components/dist/vue/KvTextInput.js +66 -0
- package/dist/kv-components/dist/vue/KvTextInput2.js +126 -0
- package/dist/kv-components/dist/vue/KvWwwHeader/LendMenu/KvLendMenu.js +47 -31
- package/dist/kv-components/dist/vue/KvWwwHeader/LendMenu/KvLendMenu2.js +67 -41
- package/dist/kv-components/dist/vue/KvWwwHeaderBasic/AboutMenu.css +1 -0
- package/dist/kv-components/dist/vue/KvWwwHeaderBasic/AboutMenu.js +25 -0
- package/dist/kv-components/dist/vue/KvWwwHeaderBasic/AboutMenu2.js +33 -0
- package/dist/kv-components/dist/vue/KvWwwHeaderBasic/KvWwwHeaderBasic.css +1 -0
- package/dist/kv-components/dist/vue/KvWwwHeaderBasic/LinkBar.css +1 -0
- package/dist/kv-components/dist/vue/KvWwwHeaderBasic/LinkBar2.js +11 -0
- package/dist/kv-components/dist/vue/KvWwwHeaderBasic/MobileLendMenu/CategoriesPanel.css +1 -0
- package/dist/kv-components/dist/vue/KvWwwHeaderBasic/MobileLendMenu/CategoriesPanel.js +61 -0
- package/dist/kv-components/dist/vue/KvWwwHeaderBasic/MobileLendMenu/CategoriesPanel2.js +18 -0
- package/dist/kv-components/dist/vue/KvWwwHeaderBasic/MobileLendMenu/MobileLendMenu.css +1 -0
- package/dist/kv-components/dist/vue/KvWwwHeaderBasic/MobileLendMenu/MobileLendMenu.js +102 -0
- package/dist/kv-components/dist/vue/KvWwwHeaderBasic/MobileLendMenu/MobileLendMenu2.js +74 -0
- package/dist/kv-components/dist/vue/KvWwwHeaderBasic/MobileLendMenu/MyKivaPanel.css +1 -0
- package/dist/kv-components/dist/vue/KvWwwHeaderBasic/MobileLendMenu/MyKivaPanel.js +51 -0
- package/dist/kv-components/dist/vue/KvWwwHeaderBasic/MobileLendMenu/MyKivaPanel2.js +31 -0
- package/dist/kv-components/dist/vue/KvWwwHeaderBasic/MobileLendMenu/RegionsPanel.js +38 -0
- package/dist/kv-components/dist/vue/KvWwwHeaderBasic/MobileLendMenu/RegionsPanel2.js +24 -0
- package/dist/kv-components/dist/vue/KvWwwHeaderBasic/MobileLendMenu/SearchPanel.js +17 -0
- package/dist/kv-components/dist/vue/KvWwwHeaderBasic/MobileLendMenu/SearchPanel2.js +19 -0
- package/dist/kv-components/dist/vue/KvWwwHeaderBasic/MobileMenu.css +1 -0
- package/dist/kv-components/dist/vue/KvWwwHeaderBasic/MobileMenu.js +52 -0
- package/dist/kv-components/dist/vue/KvWwwHeaderBasic/MobileMenu2.js +36 -0
- package/dist/kv-components/dist/vue/KvWwwHeaderBasic/MyKivaMenu.css +1 -0
- package/dist/kv-components/dist/vue/KvWwwHeaderBasic/MyKivaMenu.js +90 -0
- package/dist/kv-components/dist/vue/KvWwwHeaderBasic/MyKivaMenu2.js +45 -0
- package/dist/kv-components/dist/vue/KvWwwHeaderBasic/SearchBar.js +73 -0
- package/dist/kv-components/dist/vue/KvWwwHeaderBasic/SearchBar2.js +84 -0
- package/package.json +3 -3
|
@@ -17,6 +17,7 @@ import "../kv-components/dist/vue/KvClassicLoanCard2.js";
|
|
|
17
17
|
/* empty css */
|
|
18
18
|
import "../kv-components/dist/vue/KvCompactLoanCard2.js";
|
|
19
19
|
/* empty css */
|
|
20
|
+
/* empty css */
|
|
20
21
|
/* empty css */
|
|
21
22
|
/* empty css */
|
|
22
23
|
/* empty css */
|
|
@@ -61,9 +62,12 @@ import "../kv-components/dist/vue/KvWideLoanCard2.js";
|
|
|
61
62
|
import "../kv-components/dist/vue/KvWwwHeader/KvHeaderLinkBar2.js";
|
|
62
63
|
/* empty css */
|
|
63
64
|
/* empty css */
|
|
65
|
+
import "../kv-components/dist/vue/KvWwwHeaderBasic/LinkBar2.js";
|
|
66
|
+
/* empty css */
|
|
67
|
+
/* empty css */
|
|
64
68
|
import "../kv-components/dist/utils/loanCard.js";
|
|
65
69
|
import T, { defaultPaymentTypes as I } from "../useBraintreeDropIn.js";
|
|
66
|
-
const
|
|
70
|
+
const Ft = {
|
|
67
71
|
components: {
|
|
68
72
|
KvLoadingSpinner: P
|
|
69
73
|
},
|
|
@@ -122,7 +126,7 @@ const Lt = {
|
|
|
122
126
|
}
|
|
123
127
|
},
|
|
124
128
|
emits: ["transactions-enabled", "error"],
|
|
125
|
-
setup(i, { emit:
|
|
129
|
+
setup(i, { emit: o }) {
|
|
126
130
|
const {
|
|
127
131
|
amount: m,
|
|
128
132
|
authToken: u,
|
|
@@ -130,7 +134,7 @@ const Lt = {
|
|
|
130
134
|
googlePayMerchantId: s,
|
|
131
135
|
paymentTypes: d,
|
|
132
136
|
preselectVaultedPaymentMethod: y
|
|
133
|
-
} = v(i),
|
|
137
|
+
} = v(i), e = a(null), p = a(!1), {
|
|
134
138
|
initDropIn: c,
|
|
135
139
|
paymentMethodRequestable: f,
|
|
136
140
|
requestPaymentMethod: h,
|
|
@@ -139,34 +143,34 @@ const Lt = {
|
|
|
139
143
|
return n(m, (t) => {
|
|
140
144
|
g(t);
|
|
141
145
|
}), n(f, (t) => {
|
|
142
|
-
|
|
146
|
+
o("transactions-enabled", t);
|
|
143
147
|
}, { immediate: !0 }), M(async () => {
|
|
144
148
|
var t;
|
|
145
|
-
if (((t =
|
|
149
|
+
if (((t = e.value) == null ? void 0 : t.innerHTML) === "") {
|
|
146
150
|
p.value = !0;
|
|
147
151
|
try {
|
|
148
152
|
await c({
|
|
149
153
|
amount: m.value,
|
|
150
154
|
authToken: u.value,
|
|
151
|
-
container:
|
|
155
|
+
container: e.value,
|
|
152
156
|
googlePayMerchantId: s.value,
|
|
153
157
|
paymentTypes: d.value,
|
|
154
158
|
preselectVaultedPaymentMethod: y.value,
|
|
155
159
|
paypalFlow: l.value
|
|
156
160
|
});
|
|
157
161
|
} catch (r) {
|
|
158
|
-
r instanceof Error ?
|
|
162
|
+
r instanceof Error ? o("error", r == null ? void 0 : r.message) : o("error", "An error has occured. Please refresh the page and try again.");
|
|
159
163
|
} finally {
|
|
160
164
|
p.value = !1;
|
|
161
165
|
}
|
|
162
166
|
}
|
|
163
167
|
}), {
|
|
164
|
-
container:
|
|
168
|
+
container: e,
|
|
165
169
|
updatingPaymentWrapper: p,
|
|
166
170
|
requestPaymentMethod: h
|
|
167
171
|
};
|
|
168
172
|
}
|
|
169
173
|
};
|
|
170
174
|
export {
|
|
171
|
-
|
|
175
|
+
Ft as default
|
|
172
176
|
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
function e(s) {
|
|
2
|
+
return s ? Array.isArray(s) ? s : [s] : [];
|
|
3
|
+
}
|
|
4
|
+
function a({ attrs: s, listeners: r }, n = []) {
|
|
5
|
+
const c = e(s == null ? void 0 : s.class), i = e(s == null ? void 0 : s.style), l = r ? { ...r } : {};
|
|
6
|
+
n.forEach((u) => {
|
|
7
|
+
delete l[u];
|
|
8
|
+
});
|
|
9
|
+
const t = { ...s };
|
|
10
|
+
return delete t.class, delete t.style, {
|
|
11
|
+
classes: c,
|
|
12
|
+
styles: i,
|
|
13
|
+
inputAttrs: t,
|
|
14
|
+
inputListeners: l
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
export {
|
|
18
|
+
a as useAttrs
|
|
19
|
+
};
|
|
@@ -1,11 +1,23 @@
|
|
|
1
|
-
function
|
|
1
|
+
function f(r) {
|
|
2
|
+
return (e, t) => typeof e == "object" && typeof t == "object" && r ? String(e[r]).localeCompare(String(t[r])) : typeof e == "string" && typeof t == "string" ? e.localeCompare(t) : 0;
|
|
3
|
+
}
|
|
4
|
+
function y(r, e) {
|
|
5
|
+
const t = r.toLowerCase();
|
|
6
|
+
return (o, n) => {
|
|
7
|
+
const i = typeof o == "object", p = typeof n == "object", a = String(i && e ? o[e] : o).toLowerCase(), s = String(p && e ? n[e] : n).toLowerCase(), u = a.indexOf(t), c = s.indexOf(t);
|
|
8
|
+
return u === 0 ? c === 0 ? f(e)(a, s) : -1 : c === 0 ? 1 : f(e)(a, s);
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
function g(r, e) {
|
|
2
12
|
if (!Array.isArray(r))
|
|
3
13
|
throw new TypeError("list must be an array");
|
|
4
|
-
return (
|
|
5
|
-
const
|
|
6
|
-
return r.indexOf(
|
|
14
|
+
return (t, o) => {
|
|
15
|
+
const n = t[e], i = o[e];
|
|
16
|
+
return r.indexOf(n) < r.indexOf(i) ? -1 : 1;
|
|
7
17
|
};
|
|
8
18
|
}
|
|
9
19
|
export {
|
|
10
|
-
|
|
20
|
+
f as abc,
|
|
21
|
+
g as indexIn,
|
|
22
|
+
y as startsWith
|
|
11
23
|
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
function l(n, e) {
|
|
2
|
+
if (!e || !e.length)
|
|
3
|
+
return n;
|
|
4
|
+
const a = e.map((t) => t[0]).flat(), m = e.map((t) => t[1]).flat();
|
|
5
|
+
return Array.from(n).map((t, r) => {
|
|
6
|
+
const f = a.indexOf(r) > -1 ? '<mark class="tw-bg-tertiary tw-rounded-sm tw-mix-blend-multiply tw-p-0.5 tw--m-0.5">' : "", i = m.indexOf(r) > -1 ? "</mark>" : "";
|
|
7
|
+
return `${f}${t}${i}`;
|
|
8
|
+
}).join("");
|
|
9
|
+
}
|
|
10
|
+
export {
|
|
11
|
+
l as default
|
|
12
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
const t = [
|
|
2
|
+
"Gender",
|
|
3
|
+
"Regions",
|
|
4
|
+
"Countries and Territories",
|
|
5
|
+
"United States",
|
|
6
|
+
"U.S. cities",
|
|
7
|
+
"Sectors",
|
|
8
|
+
"Group or Individual",
|
|
9
|
+
"Attributes",
|
|
10
|
+
"User tags",
|
|
11
|
+
"Partners",
|
|
12
|
+
"Gifts"
|
|
13
|
+
], i = 5, r = [
|
|
14
|
+
{
|
|
15
|
+
group: "Gifts",
|
|
16
|
+
label: "Kiva Cards",
|
|
17
|
+
keywords: ["gift card", "kiva card", "gift", "gift certificate"],
|
|
18
|
+
url: "https://www.kiva.org/gifts/kiva-cards"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
group: "Gifts",
|
|
22
|
+
label: "Kiva Store",
|
|
23
|
+
keywords: ["gift card", "kiva card", "gift", "gift certificate"],
|
|
24
|
+
url: "https://store.kiva.org"
|
|
25
|
+
}
|
|
26
|
+
];
|
|
27
|
+
export {
|
|
28
|
+
r as GIFT_SUGGESTIONS,
|
|
29
|
+
i as MAX_PER_GROUP,
|
|
30
|
+
t as SECTION_ORDER
|
|
31
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import a from "fuse.js";
|
|
2
|
+
import { startsWith as l } from "./comparators.js";
|
|
3
|
+
const i = {
|
|
4
|
+
threshold: 0.25,
|
|
5
|
+
distance: 1e5,
|
|
6
|
+
includeMatches: !0,
|
|
7
|
+
keys: ["label", "keywords"]
|
|
8
|
+
};
|
|
9
|
+
class o {
|
|
10
|
+
constructor(e = []) {
|
|
11
|
+
this.fuse = null, e.length && this.reset(e);
|
|
12
|
+
}
|
|
13
|
+
reset(e = []) {
|
|
14
|
+
this.fuse = new a(e, i);
|
|
15
|
+
}
|
|
16
|
+
async search(e) {
|
|
17
|
+
return !this.fuse || !e ? [] : this.fuse.search(e).filter((s) => {
|
|
18
|
+
var t;
|
|
19
|
+
return (t = s.matches) == null ? void 0 : t.length;
|
|
20
|
+
}).map(({ item: s, matches: t }) => ({
|
|
21
|
+
...s,
|
|
22
|
+
matches: t == null ? void 0 : t.flatMap((r) => r.indices)
|
|
23
|
+
})).sort(l(e, "label"));
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
export {
|
|
27
|
+
o as default
|
|
28
|
+
};
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { ref as o, watch as f, computed as v } from "vue";
|
|
2
|
+
import h from "./typeaheadSearchEngine.js";
|
|
3
|
+
import { GIFT_SUGGESTIONS as O, MAX_PER_GROUP as R, SECTION_ORDER as g } from "./typeaheadSearchConfig.js";
|
|
4
|
+
const S = ["activity", "city_state", "loanTags", "state", "loanLimit"];
|
|
5
|
+
function w(u) {
|
|
6
|
+
return Object.keys(u).some((n) => S.includes(n));
|
|
7
|
+
}
|
|
8
|
+
function p(u) {
|
|
9
|
+
return u && w(u) ? "/lend" : "/lend/filter";
|
|
10
|
+
}
|
|
11
|
+
function T(u, n) {
|
|
12
|
+
const a = new h(), s = o(""), i = o([]), l = o(-1);
|
|
13
|
+
f(u, (e) => {
|
|
14
|
+
a.reset([...e ?? [], ...O]);
|
|
15
|
+
}, { immediate: !0 }), f(s, async (e) => {
|
|
16
|
+
if (l.value = -1, !e) {
|
|
17
|
+
i.value = [];
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
i.value = await a.search(e);
|
|
21
|
+
});
|
|
22
|
+
const y = v(() => {
|
|
23
|
+
const e = /* @__PURE__ */ new Map();
|
|
24
|
+
return i.value.forEach((t) => {
|
|
25
|
+
const r = e.get(t.group) ?? [];
|
|
26
|
+
r.length < R && r.push(t), e.set(t.group, r);
|
|
27
|
+
}), [...e.keys()].sort((t, r) => g.indexOf(t) - g.indexOf(r)).map((t) => ({ group: t, items: e.get(t) ?? [] }));
|
|
28
|
+
});
|
|
29
|
+
function d(e) {
|
|
30
|
+
if (typeof e == "string") {
|
|
31
|
+
const m = { queryString: e };
|
|
32
|
+
return {
|
|
33
|
+
url: `${n}${p(m)}`,
|
|
34
|
+
query: m,
|
|
35
|
+
suggestion: null,
|
|
36
|
+
term: e
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
if (e.url)
|
|
40
|
+
return {
|
|
41
|
+
url: e.url,
|
|
42
|
+
query: null,
|
|
43
|
+
suggestion: e,
|
|
44
|
+
term: s.value
|
|
45
|
+
};
|
|
46
|
+
const [t, r] = (e.query ?? "").split("="), c = t ? { [t]: r } : null;
|
|
47
|
+
return {
|
|
48
|
+
url: `${n}${p(c)}`,
|
|
49
|
+
query: c,
|
|
50
|
+
suggestion: e,
|
|
51
|
+
term: s.value
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
term: s,
|
|
56
|
+
rawResults: i,
|
|
57
|
+
activeIndex: l,
|
|
58
|
+
groupedResults: y,
|
|
59
|
+
resolveSubmit: d
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
export {
|
|
63
|
+
T as useTypeaheadSearch
|
|
64
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
input[type=search][data-v-c3eac6f7]::-webkit-search-cancel-button,input[type=search][data-v-c3eac6f7]::-webkit-search-decoration{-webkit-appearance:none;-moz-appearance:none;appearance:none}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import p from "./KvTextInput2.js";
|
|
2
|
+
import { resolveComponent as u, createElementBlock as w, openBlock as o, normalizeStyle as m, normalizeClass as c, createElementVNode as r, createBlock as d, createCommentVNode as a, withDirectives as g, mergeProps as h, toHandlers as b, createVNode as v, vShow as f, renderSlot as y } from "vue";
|
|
3
|
+
import "./KvTextInput.css";
|
|
4
|
+
import x from "../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
+
const k = ["id", "type", "placeholder", "disabled", "value"], C = {
|
|
6
|
+
key: 2,
|
|
7
|
+
class: "tw-text-danger-highlight tw-text-small tw-font-medium tw-mt-1"
|
|
8
|
+
};
|
|
9
|
+
function I(s, l, t, e, V, A) {
|
|
10
|
+
const n = u("kv-material-icon");
|
|
11
|
+
return o(), w("div", {
|
|
12
|
+
class: c(["tw-inline-flex", e.classes]),
|
|
13
|
+
style: m(e.styles)
|
|
14
|
+
}, [
|
|
15
|
+
r("div", {
|
|
16
|
+
class: c(["tw-relative tw-w-full", { "tw-opacity-low": t.disabled }])
|
|
17
|
+
}, [
|
|
18
|
+
r("input", h({
|
|
19
|
+
id: t.id,
|
|
20
|
+
ref: "textInputRef",
|
|
21
|
+
type: t.type,
|
|
22
|
+
class: ["tw-h-6 tw-w-full tw-px-2 tw-border tw-rounded-xs tw-appearance-none tw-text-base tw-ring-inset focus:tw-outline-none focus:tw-ring-2 focus:tw-border-transparent", {
|
|
23
|
+
"tw-bg-primary": t.valid && !t.disabled,
|
|
24
|
+
"tw-border-tertiary focus:tw-ring-action": t.valid,
|
|
25
|
+
"tw-pr-6 tw-bg-danger-highlight tw-border-danger focus:tw-ring-danger-highlight": !t.valid,
|
|
26
|
+
"tw-bg-tertiary": t.disabled,
|
|
27
|
+
"tw-pl-6": t.icon
|
|
28
|
+
}],
|
|
29
|
+
placeholder: t.placeholder,
|
|
30
|
+
disabled: t.disabled
|
|
31
|
+
}, e.inputAttrs, { value: t.modelValue }, b(e.inputListeners, !0), {
|
|
32
|
+
onInput: l[0] || (l[0] = (...i) => e.onInput && e.onInput(...i))
|
|
33
|
+
}), null, 16, k),
|
|
34
|
+
t.icon ? (o(), d(n, {
|
|
35
|
+
key: 0,
|
|
36
|
+
icon: t.icon,
|
|
37
|
+
class: "tw-w-3 tw-h-3 tw-absolute tw-top-1.5 tw-left-1.5 tw-pointer-events-none"
|
|
38
|
+
}, null, 8, ["icon"])) : a("", !0),
|
|
39
|
+
t.valid ? a("", !0) : (o(), d(n, {
|
|
40
|
+
key: 1,
|
|
41
|
+
icon: e.mdiAlertCircleOutline,
|
|
42
|
+
class: "tw-w-3 tw-h-3 tw-absolute tw-top-1.5 tw-right-1.5 tw-pointer-events-none tw-text-danger"
|
|
43
|
+
}, null, 8, ["icon"])),
|
|
44
|
+
g(r("button", {
|
|
45
|
+
type: "button",
|
|
46
|
+
class: "tw-absolute tw-top-1.5 tw-right-1.5",
|
|
47
|
+
onClick: l[1] || (l[1] = (...i) => e.clearInput && e.clearInput(...i))
|
|
48
|
+
}, [
|
|
49
|
+
l[2] || (l[2] = r("span", { class: "tw-sr-only" }, "clear input", -1)),
|
|
50
|
+
v(n, {
|
|
51
|
+
class: "tw-w-3 tw-h-3",
|
|
52
|
+
icon: e.mdiClose
|
|
53
|
+
}, null, 8, ["icon"])
|
|
54
|
+
], 512), [
|
|
55
|
+
[f, t.canClear && t.valid && !!e.inputText]
|
|
56
|
+
]),
|
|
57
|
+
s.$slots.error ? (o(), w("div", C, [
|
|
58
|
+
y(s.$slots, "error", {}, void 0, !0)
|
|
59
|
+
])) : a("", !0)
|
|
60
|
+
], 2)
|
|
61
|
+
], 6);
|
|
62
|
+
}
|
|
63
|
+
const E = /* @__PURE__ */ x(p, [["render", I], ["__scopeId", "data-v-c3eac6f7"]]);
|
|
64
|
+
export {
|
|
65
|
+
E as default
|
|
66
|
+
};
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import { toRefs as f, ref as r } from "vue";
|
|
2
|
+
import { mdiClose as c, mdiAlertCircleOutline as v } from "@mdi/js";
|
|
3
|
+
import { useAttrs as y } from "../utils/attrs.js";
|
|
4
|
+
import g from "./KvMaterialIcon.js";
|
|
5
|
+
const o = [
|
|
6
|
+
"input",
|
|
7
|
+
"update:modelValue"
|
|
8
|
+
], S = {
|
|
9
|
+
components: {
|
|
10
|
+
KvMaterialIcon: g
|
|
11
|
+
},
|
|
12
|
+
inheritAttrs: !1,
|
|
13
|
+
// v-model will update when a different value is input
|
|
14
|
+
model: {
|
|
15
|
+
prop: "modelValue",
|
|
16
|
+
event: "update:modelValue"
|
|
17
|
+
},
|
|
18
|
+
props: {
|
|
19
|
+
/**
|
|
20
|
+
* Id of the input, used to associate the input with a <label> element.
|
|
21
|
+
* */
|
|
22
|
+
id: {
|
|
23
|
+
type: String,
|
|
24
|
+
required: !0
|
|
25
|
+
},
|
|
26
|
+
/**
|
|
27
|
+
* Value of the text in the input. Used if you're not using the standard v-model bindings
|
|
28
|
+
* ```
|
|
29
|
+
* <kv-text-input :value="streetAddress" @input="(val) => streetAddress = val" />
|
|
30
|
+
* ```
|
|
31
|
+
* */
|
|
32
|
+
modelValue: {
|
|
33
|
+
type: [String, Number, Boolean],
|
|
34
|
+
default: ""
|
|
35
|
+
},
|
|
36
|
+
/**
|
|
37
|
+
* Text that appears in the form control when it has no value set
|
|
38
|
+
* Should not be used as a label, but rather an example.
|
|
39
|
+
* Bad: Enter an address Good: 1234 E Cherry Lane
|
|
40
|
+
* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#htmlattrdefplaceholder
|
|
41
|
+
* */
|
|
42
|
+
placeholder: {
|
|
43
|
+
type: String,
|
|
44
|
+
default: null
|
|
45
|
+
},
|
|
46
|
+
/**
|
|
47
|
+
* Prevents the input from being edited or focused
|
|
48
|
+
* */
|
|
49
|
+
disabled: {
|
|
50
|
+
type: Boolean,
|
|
51
|
+
default: !1
|
|
52
|
+
},
|
|
53
|
+
/**
|
|
54
|
+
* When set to false, visually indicates to the user that the contents of the input need
|
|
55
|
+
* to be changed
|
|
56
|
+
* */
|
|
57
|
+
valid: {
|
|
58
|
+
type: Boolean,
|
|
59
|
+
default: !0
|
|
60
|
+
},
|
|
61
|
+
/*
|
|
62
|
+
* SVG path data passed in from an imported @mdi/js module.
|
|
63
|
+
* Displayed on the left hand side of the input
|
|
64
|
+
* ```
|
|
65
|
+
* import { mdiMagnify } from '@mdi/js';
|
|
66
|
+
* data() { return { mdiMagnify } };
|
|
67
|
+
* <kv-text-input :icon="mdiMagnify" />`
|
|
68
|
+
* ```
|
|
69
|
+
* */
|
|
70
|
+
icon: {
|
|
71
|
+
type: String,
|
|
72
|
+
default: null
|
|
73
|
+
},
|
|
74
|
+
/**
|
|
75
|
+
* Can be used to set show special keyboards for mobile users
|
|
76
|
+
* E.g., type="number" or type="tel"
|
|
77
|
+
* */
|
|
78
|
+
type: {
|
|
79
|
+
type: String,
|
|
80
|
+
default: "text"
|
|
81
|
+
},
|
|
82
|
+
/**
|
|
83
|
+
* When set to true, adds a button positioned to the right edge of the input containing an “X”
|
|
84
|
+
* */
|
|
85
|
+
canClear: {
|
|
86
|
+
type: Boolean,
|
|
87
|
+
default: !1
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
emits: o,
|
|
91
|
+
setup(n, a) {
|
|
92
|
+
const { emit: e } = a, {
|
|
93
|
+
modelValue: i
|
|
94
|
+
} = f(n), t = r(null), l = r(i.value), {
|
|
95
|
+
classes: p,
|
|
96
|
+
styles: s,
|
|
97
|
+
inputAttrs: d,
|
|
98
|
+
inputListeners: m
|
|
99
|
+
} = y(a, o);
|
|
100
|
+
return {
|
|
101
|
+
mdiAlertCircleOutline: v,
|
|
102
|
+
mdiClose: c,
|
|
103
|
+
onInput: (u) => {
|
|
104
|
+
l.value = u.target.value, e("input", u.target.value), e("update:modelValue", u.target.value);
|
|
105
|
+
},
|
|
106
|
+
focus: () => {
|
|
107
|
+
t.value.focus();
|
|
108
|
+
},
|
|
109
|
+
blur: () => {
|
|
110
|
+
t.value.blur();
|
|
111
|
+
},
|
|
112
|
+
clearInput: () => {
|
|
113
|
+
l.value = "", e("input", ""), e("update:modelValue", "");
|
|
114
|
+
},
|
|
115
|
+
inputText: l,
|
|
116
|
+
classes: p,
|
|
117
|
+
styles: s,
|
|
118
|
+
inputAttrs: d,
|
|
119
|
+
inputListeners: m,
|
|
120
|
+
textInputRef: t
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
};
|
|
124
|
+
export {
|
|
125
|
+
S as default
|
|
126
|
+
};
|
|
@@ -1,39 +1,55 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { resolveComponent as
|
|
3
|
-
import
|
|
4
|
-
function
|
|
5
|
-
const
|
|
6
|
-
return
|
|
7
|
-
default:
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
"is-
|
|
17
|
-
"
|
|
18
|
-
"countries-not-lent-to-url":
|
|
19
|
-
|
|
20
|
-
|
|
1
|
+
import h from "./KvLendMenu2.js";
|
|
2
|
+
import { resolveComponent as i, createBlock as t, openBlock as a, withCtx as m, createCommentVNode as p, createVNode as l, normalizeClass as w } from "vue";
|
|
3
|
+
import v from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
function f(n, o, s, e, k, C) {
|
|
5
|
+
const g = i("mobile-lend-menu"), c = i("kv-lend-list-menu"), d = i("kv-lend-mega-menu"), u = i("kv-page-container");
|
|
6
|
+
return a(), t(u, { class: "tw-pt-2 lg:tw-pt-0" }, {
|
|
7
|
+
default: m(() => [
|
|
8
|
+
s.useMobileMegaMenu ? (a(), t(g, {
|
|
9
|
+
key: 0,
|
|
10
|
+
class: "md:tw-hidden",
|
|
11
|
+
categories: e.computedCategories,
|
|
12
|
+
regions: e.regions,
|
|
13
|
+
"user-id": s.userId,
|
|
14
|
+
favorites: e.favoritesCount,
|
|
15
|
+
searches: e.savedSearches,
|
|
16
|
+
"is-regions-loading": e.isRegionsLoading,
|
|
17
|
+
"is-channels-loading": e.isChannelsLoading,
|
|
18
|
+
"countries-not-lent-to-url": s.countriesNotLentToUrl,
|
|
19
|
+
"search-suggestions": s.searchSuggestions,
|
|
20
|
+
"app-origin": s.appOrigin,
|
|
21
|
+
onLoadSearchData: o[0] || (o[0] = (r) => n.$emit("load-search-data")),
|
|
22
|
+
onSearchSubmit: o[1] || (o[1] = (r) => n.$emit("search-submit", r))
|
|
23
|
+
}, null, 8, ["categories", "regions", "user-id", "favorites", "searches", "is-regions-loading", "is-channels-loading", "countries-not-lent-to-url", "search-suggestions", "app-origin"])) : p("", !0),
|
|
24
|
+
l(c, {
|
|
25
|
+
class: w(s.useMobileMegaMenu ? "tw-hidden md:tw-block lg:tw-hidden" : "lg:tw-hidden"),
|
|
26
|
+
categories: e.computedCategories,
|
|
27
|
+
regions: e.regions,
|
|
28
|
+
"user-id": s.userId,
|
|
29
|
+
favorites: e.favoritesCount,
|
|
30
|
+
searches: e.savedSearches,
|
|
31
|
+
"is-regions-loading": e.isRegionsLoading,
|
|
32
|
+
"is-channels-loading": e.isChannelsLoading,
|
|
33
|
+
"show-m-g-upsell-link": s.showMGUpsellLink,
|
|
34
|
+
"countries-not-lent-to-url": s.countriesNotLentToUrl
|
|
35
|
+
}, null, 8, ["class", "categories", "regions", "user-id", "favorites", "searches", "is-regions-loading", "is-channels-loading", "show-m-g-upsell-link", "countries-not-lent-to-url"]),
|
|
36
|
+
l(d, {
|
|
21
37
|
class: "tw-hidden lg:tw-block",
|
|
22
|
-
categories:
|
|
23
|
-
regions:
|
|
24
|
-
"user-id":
|
|
25
|
-
favorites:
|
|
26
|
-
searches:
|
|
27
|
-
"is-regions-loading":
|
|
28
|
-
"is-channels-loading":
|
|
29
|
-
"show-m-g-upsell-link":
|
|
30
|
-
"countries-not-lent-to-url":
|
|
38
|
+
categories: e.computedCategories,
|
|
39
|
+
regions: e.regions,
|
|
40
|
+
"user-id": s.userId,
|
|
41
|
+
favorites: e.favoritesCount,
|
|
42
|
+
searches: e.savedSearches,
|
|
43
|
+
"is-regions-loading": e.isRegionsLoading,
|
|
44
|
+
"is-channels-loading": e.isChannelsLoading,
|
|
45
|
+
"show-m-g-upsell-link": s.showMGUpsellLink,
|
|
46
|
+
"countries-not-lent-to-url": s.countriesNotLentToUrl
|
|
31
47
|
}, null, 8, ["categories", "regions", "user-id", "favorites", "searches", "is-regions-loading", "is-channels-loading", "show-m-g-upsell-link", "countries-not-lent-to-url"])
|
|
32
48
|
]),
|
|
33
49
|
_: 1
|
|
34
50
|
});
|
|
35
51
|
}
|
|
36
|
-
const
|
|
52
|
+
const b = /* @__PURE__ */ v(h, [["render", f]]);
|
|
37
53
|
export {
|
|
38
|
-
|
|
54
|
+
b as default
|
|
39
55
|
};
|