@kiva/kv-components 8.16.1 → 8.17.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.
@@ -1,44 +1,44 @@
1
1
  import u from "./KvLoanTag2.js";
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 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
- const d = c("kv-tooltip"), s = c("kv-countdown-timer");
2
+ import { KV_LOAN_TAG_FRAGMENT as L } 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 p, withCtx as f, renderList as k, createBlock as w, createCommentVNode as d } from "vue";
4
+ import x from "../_virtual/_plugin-vue_export-helper.js";
5
+ const y = ["id"];
6
+ function v(M, N, l, A, C, t) {
7
+ const m = 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(l, { key: 0 }, [
13
+ t.isMultipleMatch ? (e(), a(o, { key: 0 }, [
14
14
  i(r(t.totalMatchRatio) + "x match by ", 1),
15
15
  h("span", {
16
- id: `matching-orgs-${o.loan.id}`,
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, x),
19
- f(d, {
20
- controller: `matching-orgs-${o.loan.id}`,
18
+ }, r(t.multiMatchingOrgs.length) + " organizations", 9, y),
19
+ p(m, {
20
+ controller: `matching-orgs-${l.loan.id}`,
21
21
  theme: "default"
22
22
  }, {
23
- default: k(() => [
24
- (e(!0), a(l, null, p(t.multiMatchingOrgs, (n) => (e(), a("p", {
25
- key: n.displayName,
23
+ default: f(() => [
24
+ (e(!0), a(o, null, k(t.multiMatchingOrgs, (n) => (e(), a("p", {
25
+ key: n.managedAccountId,
26
26
  class: "tw-m-0"
27
- }, r(n.ratio + 1) + "x matching by " + r(n.displayName), 1))), 128))
27
+ }, r(n.ratio + 1) + "x matching by " + r(n.displayName || "a Kiva supporter"), 1))), 128))
28
28
  ]),
29
29
  _: 1
30
30
  }, 8, ["controller"])
31
- ], 64)) : (e(), a(l, { key: 1 }, [
31
+ ], 64)) : (e(), a(o, { key: 1 }, [
32
32
  i(r(t.tagText) + " ", 1),
33
- t.variation === "ending-soon" ? (e(), y(s, {
33
+ t.variation === "ending-soon" ? (e(), w(s, {
34
34
  key: 0,
35
35
  deadline: t.deadline
36
- }, null, 8, ["deadline"])) : m("", !0)
36
+ }, null, 8, ["deadline"])) : d("", !0)
37
37
  ], 64))
38
- ], 6)) : m("", !0);
38
+ ], 6)) : d("", !0);
39
39
  }
40
- const B = /* @__PURE__ */ w(u, [["render", v]]);
40
+ const B = /* @__PURE__ */ x(u, [["render", v]]);
41
41
  export {
42
- O as KV_LOAN_TAG_FRAGMENT,
42
+ L as KV_LOAN_TAG_FRAGMENT,
43
43
  B as default
44
44
  };
@@ -20,6 +20,7 @@ const m = "N/A", a = {
20
20
  matchRatio
21
21
  matchingText
22
22
  simultaneousMatching {
23
+ managedAccountId
23
24
  displayName
24
25
  ratio
25
26
  }
@@ -87,7 +88,7 @@ const m = "N/A", a = {
87
88
  case a.matchedLoan: {
88
89
  if (this.enableMultiMatching && this.multiMatchingOrgs.length === 1) {
89
90
  const n = this.multiMatchingOrgs[0];
90
- return `${this.useExpandedStyles ? "🤝 " : ""}${n.ratio + 1}x matching by ${n.displayName}`;
91
+ return `${this.useExpandedStyles ? "🤝 " : ""}${n.ratio + 1}x matching by ${n.displayName || "a Kiva supporter"}`;
91
92
  }
92
93
  return `${this.useExpandedStyles ? "🤝 " : ""}${this.matchRatio + 1}x matching by ${(t = this.loan) == null ? void 0 : t.matchingText}`;
93
94
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kiva/kv-components",
3
- "version": "8.16.1",
3
+ "version": "8.17.0",
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": "53a3bbfe1d8defe4d0b0079d0eda2d272d1488ea"
131
+ "gitHead": "c00bb6f8ab55a188247b085df65b8b7bbe79c3e4"
132
132
  }