@kiva/kv-components 8.16.0 → 8.16.1
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
.loan-card-use[data-v-
|
|
1
|
+
.loan-card-use[data-v-daea2e7e]:hover,.loan-card-use[data-v-daea2e7e]:focus{--tw-text-opacity: 1;color:rgba(var(--text-primary),var(--tw-text-opacity, 1))}.loan-card-active-hover:hover .loan-card-use[data-v-daea2e7e]{text-decoration-line:underline}.loan-card-progress[data-v-daea2e7e]:hover,.loan-card-progress[data-v-daea2e7e]:focus{text-decoration-line:none}.loan-card-use-text[data-v-daea2e7e] p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;line-clamp:4;overflow:hidden;text-overflow:ellipsis}.loan-card-cta[data-v-daea2e7e] form,.loan-card-cta[data-v-daea2e7e] fieldset,.loan-card-cta[data-v-daea2e7e] .tw-w-full,.loan-card-cta[data-v-daea2e7e] button{height:40px!important;max-height:40px!important;display:flex!important;align-items:center!important;justify-content:center!important}.loan-card-cta[data-v-daea2e7e] .tw-inline-flex{height:40px!important;max-height:40px!important;min-height:40px!important}[data-v-daea2e7e] .amount-dropdown select{height:2.25rem;--tw-border-opacity: 1;border-color:rgb(245 245 245 / var(--tw-border-opacity, 1));padding-left:.5rem}[data-v-daea2e7e] .goal-variant-callouts span{font-weight:500}.goal-variant-progress-group[data-v-daea2e7e] div[role=progressbar]{background-color:#d9d9d9}
|
|
@@ -317,7 +317,7 @@ function Q(k, o, t, e, X, y) {
|
|
|
317
317
|
], 2)
|
|
318
318
|
], 10, S);
|
|
319
319
|
}
|
|
320
|
-
const te = /* @__PURE__ */ G(B, [["render", Q], ["__scopeId", "data-v-
|
|
320
|
+
const te = /* @__PURE__ */ G(B, [["render", Q], ["__scopeId", "data-v-daea2e7e"]]);
|
|
321
321
|
export {
|
|
322
322
|
oe as KV_COMPACT_LOAN_CARD_FRAGMENT,
|
|
323
323
|
le as KV_COMPACT_LOAN_CARD_USER_FRAGMENT,
|
|
@@ -377,7 +377,7 @@ const d = {
|
|
|
377
377
|
},
|
|
378
378
|
hasMatchingInfo() {
|
|
379
379
|
var e, a, n;
|
|
380
|
-
return !!((e = this.loan) != null && e.matchingText) || this.enableMultiMatching && (((n = (a = this.loan) == null ? void 0 : a.
|
|
380
|
+
return !!((e = this.loan) != null && e.matchingText) || this.enableMultiMatching && (((n = (a = this.loan) == null ? void 0 : a.simultaneousMatching) == null ? void 0 : n.length) ?? 0) > 0;
|
|
381
381
|
}
|
|
382
382
|
}
|
|
383
383
|
};
|
package/dist/vue/KvLoanTag.js
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
import u from "./KvLoanTag2.js";
|
|
2
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
|
|
4
|
-
import
|
|
5
|
-
const
|
|
6
|
-
function v(M,
|
|
3
|
+
import { resolveComponent as c, openBlock as e, createElementBlock as a, normalizeClass as _, normalizeStyle as g, Fragment as l, createTextVNode as i, toDisplayString as r, createElementVNode as h, createVNode as f, withCtx as k, renderList as p, createBlock as y, createCommentVNode as m } from "vue";
|
|
4
|
+
import w from "../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
+
const x = ["id"];
|
|
6
|
+
function v(M, N, o, C, T, t) {
|
|
7
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 }]),
|
|
11
11
|
style: g({ color: t.tagColor })
|
|
12
12
|
}, [
|
|
13
|
-
t.isMultipleMatch ? (e(), a(
|
|
14
|
-
i(
|
|
13
|
+
t.isMultipleMatch ? (e(), a(l, { key: 0 }, [
|
|
14
|
+
i(r(t.totalMatchRatio) + "x match by ", 1),
|
|
15
15
|
h("span", {
|
|
16
|
-
id: `matching-orgs-${
|
|
16
|
+
id: `matching-orgs-${o.loan.id}`,
|
|
17
17
|
class: "tw-underline tw-decoration-dotted tw-cursor-pointer"
|
|
18
|
-
},
|
|
19
|
-
|
|
20
|
-
controller: `matching-orgs-${
|
|
18
|
+
}, r(t.multiMatchingOrgs.length) + " organizations", 9, x),
|
|
19
|
+
f(d, {
|
|
20
|
+
controller: `matching-orgs-${o.loan.id}`,
|
|
21
21
|
theme: "default"
|
|
22
22
|
}, {
|
|
23
|
-
default:
|
|
24
|
-
(e(!0), a(
|
|
25
|
-
key:
|
|
23
|
+
default: k(() => [
|
|
24
|
+
(e(!0), a(l, null, p(t.multiMatchingOrgs, (n) => (e(), a("p", {
|
|
25
|
+
key: n.displayName,
|
|
26
26
|
class: "tw-m-0"
|
|
27
|
-
}, n
|
|
27
|
+
}, r(n.ratio + 1) + "x matching by " + r(n.displayName), 1))), 128))
|
|
28
28
|
]),
|
|
29
29
|
_: 1
|
|
30
30
|
}, 8, ["controller"])
|
|
31
|
-
], 64)) : (e(), a(
|
|
32
|
-
i(
|
|
33
|
-
t.variation === "ending-soon" ? (e(),
|
|
31
|
+
], 64)) : (e(), a(l, { key: 1 }, [
|
|
32
|
+
i(r(t.tagText) + " ", 1),
|
|
33
|
+
t.variation === "ending-soon" ? (e(), y(s, {
|
|
34
34
|
key: 0,
|
|
35
35
|
deadline: t.deadline
|
|
36
36
|
}, null, 8, ["deadline"])) : m("", !0)
|
|
37
37
|
], 64))
|
|
38
38
|
], 6)) : m("", !0);
|
|
39
39
|
}
|
|
40
|
-
const B = /* @__PURE__ */
|
|
40
|
+
const B = /* @__PURE__ */ w(u, [["render", v]]);
|
|
41
41
|
export {
|
|
42
42
|
O as KV_LOAN_TAG_FRAGMENT,
|
|
43
43
|
B as default
|
package/dist/vue/KvLoanTag2.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { parseISO as s, differenceInDays as r } from "date-fns";
|
|
2
2
|
import u from "graphql-tag";
|
|
3
3
|
import l from "numeral";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
4
|
+
import d from "./KvCountdownTimer.js";
|
|
5
|
+
import h from "./KvTooltip.js";
|
|
6
6
|
const m = "N/A", a = {
|
|
7
7
|
almostFunded: "almost-funded",
|
|
8
8
|
endingSoon: "ending-soon",
|
|
@@ -19,20 +19,20 @@ const m = "N/A", a = {
|
|
|
19
19
|
loanAmount
|
|
20
20
|
matchRatio
|
|
21
21
|
matchingText
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
simultaneousMatching {
|
|
23
|
+
displayName
|
|
24
|
+
ratio
|
|
25
25
|
}
|
|
26
26
|
plannedExpirationDate
|
|
27
27
|
... on LoanPartner {
|
|
28
28
|
partnerName
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
|
-
`,
|
|
31
|
+
`, A = {
|
|
32
32
|
name: "KvLoanTag",
|
|
33
33
|
components: {
|
|
34
|
-
KvCountdownTimer:
|
|
35
|
-
KvTooltip:
|
|
34
|
+
KvCountdownTimer: d,
|
|
35
|
+
KvTooltip: h
|
|
36
36
|
},
|
|
37
37
|
props: {
|
|
38
38
|
loan: {
|
|
@@ -64,13 +64,13 @@ const m = "N/A", a = {
|
|
|
64
64
|
},
|
|
65
65
|
multiMatchingOrgs() {
|
|
66
66
|
var t;
|
|
67
|
-
return ((t = this.loan) == null ? void 0 : t.
|
|
67
|
+
return ((t = this.loan) == null ? void 0 : t.simultaneousMatching) ?? [];
|
|
68
68
|
},
|
|
69
69
|
isMultipleMatch() {
|
|
70
70
|
return this.enableMultiMatching && this.multiMatchingOrgs.length > 1;
|
|
71
71
|
},
|
|
72
72
|
totalMatchRatio() {
|
|
73
|
-
return this.multiMatchingOrgs.reduce((t, n) => t + n.
|
|
73
|
+
return this.multiMatchingOrgs.reduce((t, n) => t + n.ratio + 1, 0);
|
|
74
74
|
},
|
|
75
75
|
variation() {
|
|
76
76
|
var i, e;
|
|
@@ -87,7 +87,7 @@ const m = "N/A", a = {
|
|
|
87
87
|
case a.matchedLoan: {
|
|
88
88
|
if (this.enableMultiMatching && this.multiMatchingOrgs.length === 1) {
|
|
89
89
|
const n = this.multiMatchingOrgs[0];
|
|
90
|
-
return `${this.useExpandedStyles ? "🤝 " : ""}${n.
|
|
90
|
+
return `${this.useExpandedStyles ? "🤝 " : ""}${n.ratio + 1}x matching by ${n.displayName}`;
|
|
91
91
|
}
|
|
92
92
|
return `${this.useExpandedStyles ? "🤝 " : ""}${this.matchRatio + 1}x matching by ${(t = this.loan) == null ? void 0 : t.matchingText}`;
|
|
93
93
|
}
|
|
@@ -115,5 +115,5 @@ const m = "N/A", a = {
|
|
|
115
115
|
};
|
|
116
116
|
export {
|
|
117
117
|
L as KV_LOAN_TAG_FRAGMENT,
|
|
118
|
-
|
|
118
|
+
A as default
|
|
119
119
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kiva/kv-components",
|
|
3
|
-
"version": "8.16.
|
|
3
|
+
"version": "8.16.1",
|
|
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": "53a3bbfe1d8defe4d0b0079d0eda2d272d1488ea"
|
|
132
132
|
}
|