@kiva/kv-components 8.18.1 → 8.18.2
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/vue/KvClassicLoanCard.vue.d.ts +5 -1
- package/dist/vue/KvCompactLoanCard.vue.d.ts +5 -1
- package/dist/vue/KvIntroductionLoanCard.vue.d.ts +5 -1
- package/dist/vue/KvLoanTag.js +15 -15
- package/dist/vue/KvLoanTag.vue.d.ts +5 -1
- package/dist/vue/KvLoanTag2.js +14 -9
- package/dist/vue/KvWideLoanCard.vue.d.ts +5 -1
- package/package.json +2 -2
|
@@ -1239,7 +1239,11 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
1239
1239
|
tagText(): string;
|
|
1240
1240
|
tagColor(): "#AF741C" | "#CE2626" | "#2B7C5F" | "#CE4A00";
|
|
1241
1241
|
matchRatio(): any;
|
|
1242
|
-
}, {
|
|
1242
|
+
}, {
|
|
1243
|
+
orgDisplayName(org: {
|
|
1244
|
+
displayName?: string | null;
|
|
1245
|
+
}): string;
|
|
1246
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
1243
1247
|
loan: {
|
|
1244
1248
|
type: ObjectConstructor;
|
|
1245
1249
|
required: true;
|
|
@@ -1196,7 +1196,11 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
1196
1196
|
tagText(): string;
|
|
1197
1197
|
tagColor(): "#AF741C" | "#CE2626" | "#2B7C5F" | "#CE4A00";
|
|
1198
1198
|
matchRatio(): any;
|
|
1199
|
-
}, {
|
|
1199
|
+
}, {
|
|
1200
|
+
orgDisplayName(org: {
|
|
1201
|
+
displayName?: string | null;
|
|
1202
|
+
}): string;
|
|
1203
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
1200
1204
|
loan: {
|
|
1201
1205
|
type: ObjectConstructor;
|
|
1202
1206
|
required: true;
|
|
@@ -514,7 +514,11 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
514
514
|
tagText(): string;
|
|
515
515
|
tagColor(): "#AF741C" | "#CE2626" | "#2B7C5F" | "#CE4A00";
|
|
516
516
|
matchRatio(): any;
|
|
517
|
-
}, {
|
|
517
|
+
}, {
|
|
518
|
+
orgDisplayName(org: {
|
|
519
|
+
displayName?: string | null;
|
|
520
|
+
}): string;
|
|
521
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
518
522
|
loan: {
|
|
519
523
|
type: ObjectConstructor;
|
|
520
524
|
required: true;
|
package/dist/vue/KvLoanTag.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import u from "./KvLoanTag2.js";
|
|
2
|
-
import { KV_LOAN_TAG_FRAGMENT as
|
|
3
|
-
import { resolveComponent as c, openBlock as e, createElementBlock as a, normalizeClass as _, normalizeStyle as g, Fragment as o, createTextVNode as i, toDisplayString as r, createElementVNode as h, createVNode as
|
|
4
|
-
import
|
|
5
|
-
const
|
|
2
|
+
import { KV_LOAN_TAG_FRAGMENT as O } from "./KvLoanTag2.js";
|
|
3
|
+
import { resolveComponent as c, openBlock as e, createElementBlock as a, normalizeClass as _, normalizeStyle as g, Fragment as o, createTextVNode as i, toDisplayString as r, createElementVNode as h, createVNode as f, withCtx as k, renderList as w, createBlock as x, createCommentVNode as m } from "vue";
|
|
4
|
+
import y from "../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
+
const p = ["id"];
|
|
6
6
|
function v(M, N, l, A, C, t) {
|
|
7
|
-
const
|
|
7
|
+
const d = c("kv-tooltip"), s = c("kv-countdown-timer");
|
|
8
8
|
return t.variation ? (e(), a("div", {
|
|
9
9
|
key: 0,
|
|
10
10
|
class: _(["tw-text-small tw-font-medium tw-pt-0.5", { "tw-line-clamp-1": !t.isMultipleMatch }]),
|
|
@@ -15,30 +15,30 @@ function v(M, N, l, A, C, t) {
|
|
|
15
15
|
h("span", {
|
|
16
16
|
id: `matching-orgs-${l.loan.id}`,
|
|
17
17
|
class: "tw-underline tw-decoration-dotted tw-cursor-pointer"
|
|
18
|
-
}, r(t.multiMatchingOrgs.length) + " organizations", 9,
|
|
19
|
-
|
|
18
|
+
}, r(t.multiMatchingOrgs.length) + " organizations", 9, p),
|
|
19
|
+
f(d, {
|
|
20
20
|
controller: `matching-orgs-${l.loan.id}`,
|
|
21
21
|
theme: "default"
|
|
22
22
|
}, {
|
|
23
|
-
default:
|
|
24
|
-
(e(!0), a(o, null,
|
|
23
|
+
default: k(() => [
|
|
24
|
+
(e(!0), a(o, null, w(t.multiMatchingOrgs, (n) => (e(), a("p", {
|
|
25
25
|
key: n.managedAccountId,
|
|
26
26
|
class: "tw-m-0"
|
|
27
|
-
}, r(n.ratio + 1) + "x matching by " + r(n
|
|
27
|
+
}, r(n.ratio + 1) + "x matching by " + r(t.orgDisplayName(n)), 1))), 128))
|
|
28
28
|
]),
|
|
29
29
|
_: 1
|
|
30
30
|
}, 8, ["controller"])
|
|
31
31
|
], 64)) : (e(), a(o, { key: 1 }, [
|
|
32
32
|
i(r(t.tagText) + " ", 1),
|
|
33
|
-
t.variation === "ending-soon" ? (e(),
|
|
33
|
+
t.variation === "ending-soon" ? (e(), x(s, {
|
|
34
34
|
key: 0,
|
|
35
35
|
deadline: t.deadline
|
|
36
|
-
}, null, 8, ["deadline"])) :
|
|
36
|
+
}, null, 8, ["deadline"])) : m("", !0)
|
|
37
37
|
], 64))
|
|
38
|
-
], 6)) :
|
|
38
|
+
], 6)) : m("", !0);
|
|
39
39
|
}
|
|
40
|
-
const B = /* @__PURE__ */
|
|
40
|
+
const B = /* @__PURE__ */ y(u, [["render", v]]);
|
|
41
41
|
export {
|
|
42
|
-
|
|
42
|
+
O as KV_LOAN_TAG_FRAGMENT,
|
|
43
43
|
B as default
|
|
44
44
|
};
|
|
@@ -23,7 +23,11 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
23
23
|
tagText(): string;
|
|
24
24
|
tagColor(): "#AF741C" | "#CE2626" | "#2B7C5F" | "#CE4A00";
|
|
25
25
|
matchRatio(): any;
|
|
26
|
-
}, {
|
|
26
|
+
}, {
|
|
27
|
+
orgDisplayName(org: {
|
|
28
|
+
displayName?: string | null;
|
|
29
|
+
}): string;
|
|
30
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
27
31
|
loan: {
|
|
28
32
|
type: ObjectConstructor;
|
|
29
33
|
required: true;
|
package/dist/vue/KvLoanTag2.js
CHANGED
|
@@ -2,13 +2,13 @@ import { parseISO as s, differenceInDays as r } from "date-fns";
|
|
|
2
2
|
import u from "graphql-tag";
|
|
3
3
|
import l from "numeral";
|
|
4
4
|
import d from "./KvCountdownTimer.js";
|
|
5
|
-
import
|
|
6
|
-
const
|
|
5
|
+
import m from "./KvTooltip.js";
|
|
6
|
+
const h = "N/A", a = {
|
|
7
7
|
almostFunded: "almost-funded",
|
|
8
8
|
endingSoon: "ending-soon",
|
|
9
9
|
matchedLoan: "matched-loan",
|
|
10
10
|
lseLoan: "lse-loan"
|
|
11
|
-
},
|
|
11
|
+
}, y = u`
|
|
12
12
|
fragment KvLoanTag on LoanBasic {
|
|
13
13
|
id
|
|
14
14
|
loanFundraisingInfo {
|
|
@@ -29,11 +29,11 @@ const m = "N/A", a = {
|
|
|
29
29
|
partnerName
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
|
-
`,
|
|
32
|
+
`, L = {
|
|
33
33
|
name: "KvLoanTag",
|
|
34
34
|
components: {
|
|
35
35
|
KvCountdownTimer: d,
|
|
36
|
-
KvTooltip:
|
|
36
|
+
KvTooltip: m
|
|
37
37
|
},
|
|
38
38
|
props: {
|
|
39
39
|
loan: {
|
|
@@ -56,7 +56,7 @@ const m = "N/A", a = {
|
|
|
56
56
|
},
|
|
57
57
|
isLseLoan() {
|
|
58
58
|
var t, n;
|
|
59
|
-
return ((n = (t = this.loan) == null ? void 0 : t.partnerName) == null ? void 0 : n.toUpperCase().includes(
|
|
59
|
+
return ((n = (t = this.loan) == null ? void 0 : t.partnerName) == null ? void 0 : n.toUpperCase().includes(h)) ?? !1;
|
|
60
60
|
},
|
|
61
61
|
amountLeft() {
|
|
62
62
|
var e, o;
|
|
@@ -88,7 +88,7 @@ const m = "N/A", a = {
|
|
|
88
88
|
case a.matchedLoan: {
|
|
89
89
|
if (this.enableMultiMatching && this.multiMatchingOrgs.length === 1) {
|
|
90
90
|
const n = this.multiMatchingOrgs[0];
|
|
91
|
-
return `${this.useExpandedStyles ? "🤝 " : ""}${n.ratio + 1}x matching by ${n
|
|
91
|
+
return `${this.useExpandedStyles ? "🤝 " : ""}${n.ratio + 1}x matching by ${this.orgDisplayName(n)}`;
|
|
92
92
|
}
|
|
93
93
|
return `${this.useExpandedStyles ? "🤝 " : ""}${this.matchRatio + 1}x matching by ${(t = this.loan) == null ? void 0 : t.matchingText}`;
|
|
94
94
|
}
|
|
@@ -112,9 +112,14 @@ const m = "N/A", a = {
|
|
|
112
112
|
var t;
|
|
113
113
|
return (t = this.loan) == null ? void 0 : t.matchRatio;
|
|
114
114
|
}
|
|
115
|
+
},
|
|
116
|
+
methods: {
|
|
117
|
+
orgDisplayName(t) {
|
|
118
|
+
return t.displayName && t.displayName !== "Anonymous" ? t.displayName : "a Kiva supporter";
|
|
119
|
+
}
|
|
115
120
|
}
|
|
116
121
|
};
|
|
117
122
|
export {
|
|
118
|
-
|
|
119
|
-
|
|
123
|
+
y as KV_LOAN_TAG_FRAGMENT,
|
|
124
|
+
L as default
|
|
120
125
|
};
|
|
@@ -1153,7 +1153,11 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
1153
1153
|
tagText(): string;
|
|
1154
1154
|
tagColor(): "#AF741C" | "#CE2626" | "#2B7C5F" | "#CE4A00";
|
|
1155
1155
|
matchRatio(): any;
|
|
1156
|
-
}, {
|
|
1156
|
+
}, {
|
|
1157
|
+
orgDisplayName(org: {
|
|
1158
|
+
displayName?: string | null;
|
|
1159
|
+
}): string;
|
|
1160
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
1157
1161
|
loan: {
|
|
1158
1162
|
type: ObjectConstructor;
|
|
1159
1163
|
required: true;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kiva/kv-components",
|
|
3
|
-
"version": "8.18.
|
|
3
|
+
"version": "8.18.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -128,5 +128,5 @@
|
|
|
128
128
|
"dependencies": {
|
|
129
129
|
"fuse.js": "^7.1.0"
|
|
130
130
|
},
|
|
131
|
-
"gitHead": "
|
|
131
|
+
"gitHead": "59adb1cf9788530cdbe75a331f453b2efef57c0a"
|
|
132
132
|
}
|