@kiva/kv-components 8.19.2 → 8.20.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/AGENTS.md +4 -0
- package/dist/data/ne_110m_admin_0_countries.json.js +1 -1
- package/dist/utils/Alea.js +2 -2
- package/dist/utils/mapUtils.js +5 -7
- package/dist/vendor/aria-hidden/dist/es2015/index.js +23 -23
- package/dist/vendor/popper.js/dist/esm/popper.js +6 -6
- package/dist/vue/KvAtbModal.css +1 -1
- package/dist/vue/KvCarousel.css +1 -1
- package/dist/vue/KvCarousel2.js +5 -5
- package/dist/vue/KvCartModal.css +1 -1
- package/dist/vue/KvCartModal2.js +7 -7
- package/dist/vue/KvCheckbox.js +3 -3
- package/dist/vue/KvClassicLoanCard.css +1 -1
- package/dist/vue/KvClassicLoanCard.js +2 -2
- package/dist/vue/KvClassicLoanCard.vue.d.ts +29 -12
- package/dist/vue/KvClassicLoanCard2.js +52 -46
- package/dist/vue/KvCommentsContainer2.js +7 -7
- package/dist/vue/KvCommentsListItem2.js +11 -11
- package/dist/vue/KvCompactLoanCard.css +1 -1
- package/dist/vue/KvCompactLoanCard.js +147 -147
- package/dist/vue/KvCompactLoanCard.vue.d.ts +11 -6
- package/dist/vue/KvCompactLoanCard2.js +15 -15
- package/dist/vue/KvContentfulImg.js +3 -3
- package/dist/vue/KvDatePicker.vue.d.ts +5 -2
- package/dist/vue/KvDatePicker2.js +9 -5
- package/dist/vue/KvExpandable2.js +3 -3
- package/dist/vue/KvExpandableQuestion2.js +3 -3
- package/dist/vue/KvFlag.js +5 -5
- package/dist/vue/KvIconButton.js +4 -4
- package/dist/vue/KvImageUpload.js +1 -1
- package/dist/vue/KvImageUpload2.js +3 -3
- package/dist/vue/KvIntroductionLoanCard.css +1 -1
- package/dist/vue/KvIntroductionLoanCard.js +11 -11
- package/dist/vue/KvIntroductionLoanCard.vue.d.ts +8 -4
- package/dist/vue/KvIntroductionLoanCard2.js +34 -31
- package/dist/vue/KvLendAmountButton.vue.d.ts +4 -2
- package/dist/vue/KvLendAmountButton2.js +3 -0
- package/dist/vue/KvLendCta.css +1 -1
- package/dist/vue/KvLendCta.js +9 -9
- package/dist/vue/KvLendCta.vue.d.ts +9 -4
- package/dist/vue/KvLendCta2.js +11 -7
- package/dist/vue/KvLightbox2.js +4 -4
- package/dist/vue/KvLoanActivities.js +4 -4
- package/dist/vue/KvLoanActivities.vue.d.ts +9 -4
- package/dist/vue/KvLoanActivities2.js +13 -13
- package/dist/vue/KvLoanBookmark.vue.d.ts +4 -2
- package/dist/vue/KvLoanBookmark2.js +8 -5
- package/dist/vue/KvLoanInfoCard.css +1 -1
- package/dist/vue/KvLoanInfoCard.js +2 -2
- package/dist/vue/KvLoanTag.js +9 -9
- package/dist/vue/KvLoanTag2.js +1 -1
- package/dist/vue/KvMap.vue.d.ts +4 -2
- package/dist/vue/KvMap2.js +9 -6
- package/dist/vue/KvPagination.vue.d.ts +4 -2
- package/dist/vue/KvPagination2.js +7 -4
- package/dist/vue/KvPieChartV2.css +1 -1
- package/dist/vue/KvPieChartV22.js +3 -3
- package/dist/vue/KvPopper2.js +4 -4
- package/dist/vue/KvRadio.js +1 -1
- package/dist/vue/KvSecondaryNav.js +25 -25
- package/dist/vue/KvSecondaryNav2.js +8 -8
- package/dist/vue/KvSelect.js +12 -12
- package/dist/vue/KvSideSheet.js +1 -1
- package/dist/vue/KvSideSheet2.js +3 -3
- package/dist/vue/KvSimpleMap.css +1 -1
- package/dist/vue/KvSimpleMap.js +2 -2
- package/dist/vue/KvSimpleMap2.js +1 -0
- package/dist/vue/KvSwitch.js +1 -1
- package/dist/vue/KvTabs.vue.d.ts +4 -2
- package/dist/vue/KvTabs2.js +17 -14
- package/dist/vue/KvTextInput.js +1 -1
- package/dist/vue/KvTextInput2.js +3 -3
- package/dist/vue/KvThemeProvider.css +1 -1
- package/dist/vue/KvTooltip.css +1 -1
- package/dist/vue/KvTooltip.js +7 -7
- package/dist/vue/KvTooltip2.js +22 -22
- package/dist/vue/KvTreeMapChart.css +1 -1
- package/dist/vue/KvVerticalCarousel2.js +5 -5
- package/dist/vue/KvVotingCard.css +1 -1
- package/dist/vue/KvVotingCard.js +11 -11
- package/dist/vue/KvVotingCard.vue.d.ts +5 -2
- package/dist/vue/KvVotingCard2.js +4 -0
- package/dist/vue/KvWideLoanCard.css +1 -1
- package/dist/vue/KvWideLoanCard.js +4 -4
- package/dist/vue/KvWideLoanCard.vue.d.ts +18 -8
- package/dist/vue/KvWideLoanCard2.js +39 -35
- package/dist/vue/KvWwwHeader/KvHeaderLinkBar.js +1 -1
- package/dist/vue/KvWwwHeader/KvHeaderLinkBar2.js +5 -5
- package/dist/vue/KvWwwHeader/KvHeaderTakeActionMenu.js +3 -3
- package/dist/vue/KvWwwHeader/LendMenu/KvLendListMenu.js +4 -4
- package/dist/vue/KvWwwHeader/LendMenu/KvLendMegaMenu.js +9 -9
- package/dist/vue/KvWwwHeader/LendMenu/KvLendMegaMenu2.js +3 -3
- package/dist/vue/KvWwwHeaderBasic/LinkBar.css +1 -1
- package/dist/vue/KvWwwHeaderBasic/LinkBar2.js +3 -3
- package/dist/vue/KvWwwHeaderBasic/MobileLendMenu/MobileLendMenu.css +1 -1
- package/dist/vue/KvWwwHeaderBasic/MobileLendMenu/MobileLendMenu.js +1 -1
- package/dist/vue/KvWwwHeaderBasic/SearchBar2.js +6 -6
- package/docs/code-connect.md +266 -0
- package/figma.config.json +6 -0
- package/package.json +6 -21
- package/tsconfig.json +2 -1
- package/vite.config.ts +3 -0
|
@@ -155,7 +155,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
155
155
|
clickPresetButton(selectedDollarAmount: any): void;
|
|
156
156
|
handleCheckout(): void;
|
|
157
157
|
isNarrowComponent(): boolean;
|
|
158
|
-
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin,
|
|
158
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("show-loan-details" | "add-to-basket")[], "show-loan-details" | "add-to-basket", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
159
159
|
loan: {
|
|
160
160
|
type: ObjectConstructor;
|
|
161
161
|
default: () => {};
|
|
@@ -252,7 +252,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
252
252
|
type: NumberConstructor;
|
|
253
253
|
default: number;
|
|
254
254
|
};
|
|
255
|
-
}>> & Readonly<{
|
|
255
|
+
}>> & Readonly<{
|
|
256
|
+
"onAdd-to-basket"?: (...args: any[]) => any;
|
|
257
|
+
"onShow-loan-details"?: (...args: any[]) => any;
|
|
258
|
+
}>, {
|
|
256
259
|
loan: Record<string, any>;
|
|
257
260
|
externalLinks: boolean;
|
|
258
261
|
customLoanDetails: boolean;
|
|
@@ -299,7 +302,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
299
302
|
buttonText(): string;
|
|
300
303
|
}, {
|
|
301
304
|
addToBasket(event: any): void;
|
|
302
|
-
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin,
|
|
305
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "add-to-basket"[], "add-to-basket", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
303
306
|
loanId: {
|
|
304
307
|
type: NumberConstructor;
|
|
305
308
|
default: any;
|
|
@@ -316,7 +319,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
316
319
|
type: BooleanConstructor;
|
|
317
320
|
default: boolean;
|
|
318
321
|
};
|
|
319
|
-
}>> & Readonly<{
|
|
322
|
+
}>> & Readonly<{
|
|
323
|
+
"onAdd-to-basket"?: (...args: any[]) => any;
|
|
324
|
+
}>, {
|
|
320
325
|
loanId: number;
|
|
321
326
|
showNow: boolean;
|
|
322
327
|
amountLeft: string | number;
|
package/dist/vue/KvLendCta2.js
CHANGED
|
@@ -6,21 +6,21 @@ import c from "./KvLendAmountButton.js";
|
|
|
6
6
|
import p from "./KvSelect.js";
|
|
7
7
|
import m from "./KvButton.js";
|
|
8
8
|
import f from "./KvMaterialIcon.js";
|
|
9
|
-
const n = "Other",
|
|
9
|
+
const n = "Other", v = 360, r = 480, a = 380, O = u`
|
|
10
10
|
fragment KvLendCta on LoanBasic {
|
|
11
11
|
id
|
|
12
12
|
name
|
|
13
13
|
status
|
|
14
14
|
minNoteSize
|
|
15
15
|
}
|
|
16
|
-
`,
|
|
16
|
+
`, b = u`
|
|
17
17
|
fragment KvLendCtaUser on LoanBasic {
|
|
18
18
|
id
|
|
19
19
|
userProperties {
|
|
20
20
|
lentTo
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
|
-
`,
|
|
23
|
+
`, D = {
|
|
24
24
|
name: "KvLendCta",
|
|
25
25
|
components: {
|
|
26
26
|
KvLendAmountButton: c,
|
|
@@ -138,6 +138,10 @@ const n = "Other", A = 360, r = 480, a = 380, O = u`
|
|
|
138
138
|
default: a
|
|
139
139
|
}
|
|
140
140
|
},
|
|
141
|
+
emits: [
|
|
142
|
+
"show-loan-details",
|
|
143
|
+
"add-to-basket"
|
|
144
|
+
],
|
|
141
145
|
data() {
|
|
142
146
|
var t, e;
|
|
143
147
|
return {
|
|
@@ -158,7 +162,7 @@ const n = "Other", A = 360, r = 480, a = 380, O = u`
|
|
|
158
162
|
viewportWidth: typeof window < "u" ? window.innerWidth : 1024,
|
|
159
163
|
componentWidth: 1024,
|
|
160
164
|
resizeObserver: null,
|
|
161
|
-
MOBILE_DROPDOWN_BREAKPOINT:
|
|
165
|
+
MOBILE_DROPDOWN_BREAKPOINT: v,
|
|
162
166
|
NARROW_SIDEBAR_BREAKPOINT: r,
|
|
163
167
|
NARROW_SIDEBAR_DROPDOWN_BREAKPOINT: a
|
|
164
168
|
};
|
|
@@ -314,7 +318,7 @@ const n = "Other", A = 360, r = 480, a = 380, O = u`
|
|
|
314
318
|
this.resizeObserver = new window.ResizeObserver(h(t, 50)), this.$refs.root && (this.resizeObserver.observe(this.$refs.root), t());
|
|
315
319
|
}));
|
|
316
320
|
},
|
|
317
|
-
|
|
321
|
+
beforeUnmount() {
|
|
318
322
|
this.resizeHandler && typeof window < "u" && window.removeEventListener("resize", this.resizeHandler), this.resizeObserver && this.$refs.root && this.resizeObserver.disconnect();
|
|
319
323
|
},
|
|
320
324
|
methods: {
|
|
@@ -382,6 +386,6 @@ const n = "Other", A = 360, r = 480, a = 380, O = u`
|
|
|
382
386
|
};
|
|
383
387
|
export {
|
|
384
388
|
O as KV_LEND_CTA_FRAGMENT,
|
|
385
|
-
|
|
386
|
-
|
|
389
|
+
b as KV_LEND_CTA_USER_FRAGMENT,
|
|
390
|
+
D as default
|
|
387
391
|
};
|
package/dist/vue/KvLightbox2.js
CHANGED
|
@@ -2,8 +2,8 @@ import { toRefs as h, ref as u, nextTick as k, computed as x, watch as S, onMoun
|
|
|
2
2
|
import { mdiClose as E } from "@mdi/js";
|
|
3
3
|
import { useFocusTrap as L } from "@vueuse/integrations/useFocusTrap";
|
|
4
4
|
import { hideOthers as w } from "../vendor/aria-hidden/dist/es2015/index.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { lockScroll as P, unlockScroll as q } from "../utils/scrollLock.js";
|
|
6
|
+
import { lockPrintSingleEl as I, unlockPrintSingleEl as K } from "../utils/printing.js";
|
|
7
7
|
import M from "./KvMaterialIcon.js";
|
|
8
8
|
const A = {
|
|
9
9
|
components: {
|
|
@@ -79,7 +79,7 @@ const A = {
|
|
|
79
79
|
let c = null, s = null;
|
|
80
80
|
const b = x(() => d.value === "alert" ? "alertdialog" : "dialog"), r = (e = "") => {
|
|
81
81
|
var l;
|
|
82
|
-
n.value && t.value && ((l = i.value) == null || l.call(i), t.value.scrollTop = 0,
|
|
82
|
+
n.value && t.value && ((l = i.value) == null || l.call(i), t.value.scrollTop = 0, K(t.value)), q(), c && (c(), c = null), document.removeEventListener("keyup", s), o.value && g("lightbox-closed", { type: e });
|
|
83
83
|
};
|
|
84
84
|
s = (e) => {
|
|
85
85
|
e && e.key === "Escape" && !p.value && r();
|
|
@@ -89,7 +89,7 @@ const A = {
|
|
|
89
89
|
}, f = () => {
|
|
90
90
|
o.value && (document.addEventListener("keyup", s), k(() => {
|
|
91
91
|
var e;
|
|
92
|
-
if (n.value && t.value && ((e = a.value) == null || e.call(a), c = w(n.value),
|
|
92
|
+
if (n.value && t.value && ((e = a.value) == null || e.call(a), c = w(n.value), I(t.value)), P(), d.value === "alert") {
|
|
93
93
|
const l = m.value.querySelector("button");
|
|
94
94
|
l && l.focus();
|
|
95
95
|
}
|
|
@@ -10,8 +10,8 @@ const A = {
|
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "tw-mt-1 tw-text-small tw-text-danger"
|
|
12
12
|
}, F = { class: "tw-flex tw-justify-end tw-mt-4 tw-pb-2.5 md:tw-pb-4" };
|
|
13
|
-
function I(
|
|
14
|
-
const v = c("KvActivityRow"),
|
|
13
|
+
function I(k, a, t, e, j, E) {
|
|
14
|
+
const v = c("KvActivityRow"), x = c("KvLendCta"), u = c("KvLightbox");
|
|
15
15
|
return t.combinedActivities.length > 0 ? (n(), s("div", A, [
|
|
16
16
|
i("div", L, [
|
|
17
17
|
d(v, { activity: e.singleActivity }, null, 8, ["activity"])
|
|
@@ -49,7 +49,7 @@ function I(x, a, t, e, j, E) {
|
|
|
49
49
|
i("div", null, [
|
|
50
50
|
t.errorMsg ? (n(), s("p", B, l(t.errorMsg), 1)) : r("", !0),
|
|
51
51
|
i("div", F, [
|
|
52
|
-
d(
|
|
52
|
+
d(x, {
|
|
53
53
|
loan: t.loan,
|
|
54
54
|
"is-loading": !1,
|
|
55
55
|
"kv-track-function": t.kvTrackFunction,
|
|
@@ -61,7 +61,7 @@ function I(x, a, t, e, j, E) {
|
|
|
61
61
|
"is-adding": t.isAdding,
|
|
62
62
|
"is-visitor": t.isVisitor,
|
|
63
63
|
"enable-five-dollars-notes": t.enableFiveDollarsNotes,
|
|
64
|
-
onAddToBasket: a[1] || (a[1] = (o) =>
|
|
64
|
+
onAddToBasket: a[1] || (a[1] = (o) => k.$emit("add-to-basket", o))
|
|
65
65
|
}, null, 8, ["loan", "kv-track-function", "get-cookie", "set-cookie", "user-balance", "basket-items", "route", "is-adding", "is-visitor", "enable-five-dollars-notes"])
|
|
66
66
|
])
|
|
67
67
|
])
|
|
@@ -435,7 +435,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
435
435
|
clickPresetButton(selectedDollarAmount: any): void;
|
|
436
436
|
handleCheckout(): void;
|
|
437
437
|
isNarrowComponent(): boolean;
|
|
438
|
-
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin,
|
|
438
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("show-loan-details" | "add-to-basket")[], "show-loan-details" | "add-to-basket", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
439
439
|
loan: {
|
|
440
440
|
type: ObjectConstructor;
|
|
441
441
|
default: () => {};
|
|
@@ -532,7 +532,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
532
532
|
type: NumberConstructor;
|
|
533
533
|
default: number;
|
|
534
534
|
};
|
|
535
|
-
}>> & Readonly<{
|
|
535
|
+
}>> & Readonly<{
|
|
536
|
+
"onAdd-to-basket"?: (...args: any[]) => any;
|
|
537
|
+
"onShow-loan-details"?: (...args: any[]) => any;
|
|
538
|
+
}>, {
|
|
536
539
|
loan: Record<string, any>;
|
|
537
540
|
externalLinks: boolean;
|
|
538
541
|
customLoanDetails: boolean;
|
|
@@ -579,7 +582,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
579
582
|
buttonText(): string;
|
|
580
583
|
}, {
|
|
581
584
|
addToBasket(event: any): void;
|
|
582
|
-
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin,
|
|
585
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "add-to-basket"[], "add-to-basket", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
583
586
|
loanId: {
|
|
584
587
|
type: NumberConstructor;
|
|
585
588
|
default: any;
|
|
@@ -596,7 +599,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
596
599
|
type: BooleanConstructor;
|
|
597
600
|
default: boolean;
|
|
598
601
|
};
|
|
599
|
-
}>> & Readonly<{
|
|
602
|
+
}>> & Readonly<{
|
|
603
|
+
"onAdd-to-basket"?: (...args: any[]) => any;
|
|
604
|
+
}>, {
|
|
600
605
|
loanId: number;
|
|
601
606
|
showNow: boolean;
|
|
602
607
|
amountLeft: string | number;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { toRefs as
|
|
2
|
-
import { gql as
|
|
1
|
+
import { toRefs as f, ref as v, computed as n } from "vue";
|
|
2
|
+
import { gql as p } from "@apollo/client/core";
|
|
3
3
|
import { format as y } from "date-fns";
|
|
4
4
|
import A from "numeral";
|
|
5
5
|
import g from "./KvActivityRow.js";
|
|
6
6
|
import b from "./KvLightbox.js";
|
|
7
7
|
import F from "./KvLendCta.js";
|
|
8
|
-
const O =
|
|
8
|
+
const O = p`
|
|
9
9
|
fragment KvLoanActivities on LoanBasic {
|
|
10
10
|
id
|
|
11
11
|
name
|
|
@@ -110,37 +110,37 @@ const O = v`
|
|
|
110
110
|
setup(r) {
|
|
111
111
|
const {
|
|
112
112
|
loan: a,
|
|
113
|
-
combinedActivities:
|
|
114
|
-
kvTrackFunction:
|
|
115
|
-
} =
|
|
113
|
+
combinedActivities: l,
|
|
114
|
+
kvTrackFunction: s
|
|
115
|
+
} = f(r), i = v(!1), u = n(() => {
|
|
116
116
|
var t;
|
|
117
117
|
return `Activity for ${((t = a.value) == null ? void 0 : t.name) || ""}`;
|
|
118
|
-
}),
|
|
118
|
+
}), d = n(() => {
|
|
119
119
|
var t, e;
|
|
120
120
|
return ((e = (t = a.value) == null ? void 0 : t.lenders) == null ? void 0 : e.totalCount) ?? 0;
|
|
121
121
|
}), c = n(() => {
|
|
122
122
|
var e, o;
|
|
123
123
|
const t = ((o = (e = a.value) == null ? void 0 : e.loanFundraisingInfo) == null ? void 0 : o.fundedAmount) ?? 0;
|
|
124
124
|
return A(parseFloat(t)).format("$0,0");
|
|
125
|
-
}),
|
|
126
|
-
const t =
|
|
125
|
+
}), m = n(() => {
|
|
126
|
+
const t = l.value.find((e) => e.data.some((o) => o.type === "LendingAction"));
|
|
127
127
|
return (t == null ? void 0 : t.data[0]) ?? {};
|
|
128
128
|
});
|
|
129
129
|
return {
|
|
130
130
|
lightboxOpen: i,
|
|
131
|
-
modalTitle:
|
|
131
|
+
modalTitle: u,
|
|
132
132
|
formattedDate: (t) => {
|
|
133
133
|
const e = new Date(t);
|
|
134
134
|
return y(e, "MMM d, yyyy");
|
|
135
135
|
},
|
|
136
136
|
showActivityModal: () => {
|
|
137
|
-
|
|
137
|
+
s.value("loan-card", "click", "see-all-activity"), i.value = !0;
|
|
138
138
|
},
|
|
139
139
|
closeLightbox: () => {
|
|
140
140
|
i.value = !1;
|
|
141
141
|
},
|
|
142
|
-
singleActivity:
|
|
143
|
-
lendersNumber:
|
|
142
|
+
singleActivity: m,
|
|
143
|
+
lendersNumber: d,
|
|
144
144
|
amountLent: c
|
|
145
145
|
};
|
|
146
146
|
}
|
|
@@ -7,12 +7,14 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
7
7
|
}>, {}, {
|
|
8
8
|
mdiBookmarkOutline: string;
|
|
9
9
|
mdiBookmark: string;
|
|
10
|
-
}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin,
|
|
10
|
+
}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "toggle-bookmark"[], "toggle-bookmark", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
11
11
|
isBookmarked: {
|
|
12
12
|
type: BooleanConstructor;
|
|
13
13
|
default: boolean;
|
|
14
14
|
};
|
|
15
|
-
}>> & Readonly<{
|
|
15
|
+
}>> & Readonly<{
|
|
16
|
+
"onToggle-bookmark"?: (...args: any[]) => any;
|
|
17
|
+
}>, {
|
|
16
18
|
isBookmarked: boolean;
|
|
17
19
|
}, {}, {
|
|
18
20
|
KvMaterialIcon: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import o from "graphql-tag";
|
|
2
|
-
import {
|
|
2
|
+
import { mdiBookmark as a, mdiBookmarkOutline as r } from "@mdi/js";
|
|
3
3
|
import e from "./KvMaterialIcon.js";
|
|
4
4
|
const i = o`
|
|
5
5
|
fragment KvLoanBookmark on LoanBasic {
|
|
@@ -8,7 +8,7 @@ const i = o`
|
|
|
8
8
|
favorited
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
|
-
`,
|
|
11
|
+
`, k = {
|
|
12
12
|
name: "KvLoanBookmark",
|
|
13
13
|
components: {
|
|
14
14
|
KvMaterialIcon: e
|
|
@@ -19,14 +19,17 @@ const i = o`
|
|
|
19
19
|
default: !1
|
|
20
20
|
}
|
|
21
21
|
},
|
|
22
|
+
emits: [
|
|
23
|
+
"toggle-bookmark"
|
|
24
|
+
],
|
|
22
25
|
data() {
|
|
23
26
|
return {
|
|
24
|
-
mdiBookmarkOutline:
|
|
25
|
-
mdiBookmark:
|
|
27
|
+
mdiBookmarkOutline: r,
|
|
28
|
+
mdiBookmark: a
|
|
26
29
|
};
|
|
27
30
|
}
|
|
28
31
|
};
|
|
29
32
|
export {
|
|
30
33
|
i as KV_LOAN_BOOKMARK_FRAGMENT,
|
|
31
|
-
|
|
34
|
+
k as default
|
|
32
35
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.loan-card-active-hover[data-v-
|
|
1
|
+
.loan-card-active-hover[data-v-13281840]:hover{cursor:pointer}.loan-card-use[data-v-13281840]:hover,.loan-card-use[data-v-13281840]: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-13281840]{text-decoration-line:underline}.loan-card-progress[data-v-13281840]:hover,.loan-card-progress[data-v-13281840]:focus{text-decoration-line:none}
|
|
@@ -4,7 +4,7 @@ import K from "./KvLoanUse.js";
|
|
|
4
4
|
import W from "./KvBorrowerImage.js";
|
|
5
5
|
import F from "./KvMaterialIcon.js";
|
|
6
6
|
import E from "./KvLoadingPlaceholder.js";
|
|
7
|
-
import { resolveComponent as m, openBlock as t, createElementBlock as i,
|
|
7
|
+
import { resolveComponent as m, openBlock as t, createElementBlock as i, normalizeStyle as I, normalizeClass as _, createElementVNode as l, createBlock as c, resolveDynamicComponent as v, withCtx as k, createVNode as s, toDisplayString as b, createCommentVNode as T, Fragment as O, renderList as U, withModifiers as V } from "vue";
|
|
8
8
|
import "./KvLoanInfoCard.css";
|
|
9
9
|
import G from "../_virtual/_plugin-vue_export-helper.js";
|
|
10
10
|
import { KV_LOAN_USE_FRAGMENT as H } from "./KvLoanUse2.js";
|
|
@@ -255,7 +255,7 @@ function re(w, a, o, e, y, n) {
|
|
|
255
255
|
])
|
|
256
256
|
], 6);
|
|
257
257
|
}
|
|
258
|
-
const ge = /* @__PURE__ */ G(q, [["render", re], ["__scopeId", "data-v-
|
|
258
|
+
const ge = /* @__PURE__ */ G(q, [["render", re], ["__scopeId", "data-v-13281840"]]);
|
|
259
259
|
export {
|
|
260
260
|
fe as KV_LOAN_INFO_CARD_FRAGMENT,
|
|
261
261
|
ge as default
|
package/dist/vue/KvLoanTag.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
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,
|
|
4
|
-
import
|
|
5
|
-
const
|
|
6
|
-
function v(M, N, l,
|
|
3
|
+
import { resolveComponent as c, openBlock as e, createElementBlock as a, normalizeStyle as _, normalizeClass 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 y, createCommentVNode as m } from "vue";
|
|
4
|
+
import p from "../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
+
const x = ["id"];
|
|
6
|
+
function v(M, N, l, 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
|
-
class:
|
|
11
|
-
style:
|
|
10
|
+
class: g(["tw-text-small tw-font-medium tw-pt-0.5", { "tw-line-clamp-1": !t.isMultipleMatch }]),
|
|
11
|
+
style: _({ color: t.tagColor })
|
|
12
12
|
}, [
|
|
13
13
|
t.isMultipleMatch ? (e(), a(o, { key: 0 }, [
|
|
14
14
|
i(r(t.totalMatchRatio) + "x match by ", 1),
|
|
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,
|
|
18
|
+
}, r(t.multiMatchingOrgs.length) + " organizations", 9, x),
|
|
19
19
|
f(d, {
|
|
20
20
|
controller: `matching-orgs-${l.loan.id}`,
|
|
21
21
|
theme: "default"
|
|
@@ -30,14 +30,14 @@ function v(M, N, l, A, C, t) {
|
|
|
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(), 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__ */ p(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
package/dist/vue/KvMap.vue.d.ts
CHANGED
|
@@ -129,7 +129,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
129
129
|
highlightFeature(e: any): void;
|
|
130
130
|
resetHighlight(e: any): void;
|
|
131
131
|
circleMapClicked(countryIso: any): void;
|
|
132
|
-
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin,
|
|
132
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "country-lend-filter"[], "country-lend-filter", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
133
133
|
aspectRatio: {
|
|
134
134
|
type: NumberConstructor;
|
|
135
135
|
default: number;
|
|
@@ -207,7 +207,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
207
207
|
type: BooleanConstructor;
|
|
208
208
|
default: boolean;
|
|
209
209
|
};
|
|
210
|
-
}>> & Readonly<{
|
|
210
|
+
}>> & Readonly<{
|
|
211
|
+
"onCountry-lend-filter"?: (...args: any[]) => any;
|
|
212
|
+
}>, {
|
|
211
213
|
height: number;
|
|
212
214
|
width: number;
|
|
213
215
|
aspectRatio: number;
|
package/dist/vue/KvMap2.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import r from "@kiva/kv-tokens";
|
|
2
|
-
import {
|
|
2
|
+
import { getCountryColor as n, generateMapMarkers as l, animationCoordinator as h, computeMapZoom as c, computeMapCenter as u } from "../utils/mapUtils.js";
|
|
3
3
|
const p = {
|
|
4
4
|
name: "KvMap",
|
|
5
5
|
props: {
|
|
@@ -165,6 +165,9 @@ const p = {
|
|
|
165
165
|
default: !1
|
|
166
166
|
}
|
|
167
167
|
},
|
|
168
|
+
emits: [
|
|
169
|
+
"country-lend-filter"
|
|
170
|
+
],
|
|
168
171
|
data() {
|
|
169
172
|
return {
|
|
170
173
|
hasWebGL: !1,
|
|
@@ -195,7 +198,7 @@ const p = {
|
|
|
195
198
|
*/
|
|
196
199
|
computedCenter() {
|
|
197
200
|
var e;
|
|
198
|
-
return !this.optimizeInitialMapZoom || !((e = this.countriesData) != null && e.length) ? { lat: 0, long: 0 } :
|
|
201
|
+
return !this.optimizeInitialMapZoom || !((e = this.countriesData) != null && e.length) ? { lat: 0, long: 0 } : u(this.countriesData);
|
|
199
202
|
},
|
|
200
203
|
/**
|
|
201
204
|
* Effective latitude: explicit prop overrides computed value
|
|
@@ -216,7 +219,7 @@ const p = {
|
|
|
216
219
|
*/
|
|
217
220
|
effectiveZoomLevel() {
|
|
218
221
|
var e;
|
|
219
|
-
return this.optimizeInitialMapZoom && ((e = this.countriesData) != null && e.length) ?
|
|
222
|
+
return this.optimizeInitialMapZoom && ((e = this.countriesData) != null && e.length) ? c(this.countriesData) : this.zoomLevel;
|
|
220
223
|
}
|
|
221
224
|
},
|
|
222
225
|
watch: {
|
|
@@ -240,7 +243,7 @@ const p = {
|
|
|
240
243
|
var e;
|
|
241
244
|
(e = this.countriesData) != null && e.length && this.ensureCountriesBordersLoaded(), !this.mapLibreReady && !this.leafletReady && this.initializeMap();
|
|
242
245
|
},
|
|
243
|
-
|
|
246
|
+
beforeUnmount() {
|
|
244
247
|
this.mapInstance && (!this.hasWebGL && !this.leafletReady && this.mapInstance.off(), this.mapInstance.remove()), this.destroyWrapperObserver();
|
|
245
248
|
},
|
|
246
249
|
methods: {
|
|
@@ -342,8 +345,8 @@ const p = {
|
|
|
342
345
|
animateMap() {
|
|
343
346
|
this.mapInstance.style.stylesheet.layers.forEach((e) => {
|
|
344
347
|
e.type === "symbol" && this.mapInstance.removeLayer(e.id);
|
|
345
|
-
}),
|
|
346
|
-
|
|
348
|
+
}), l(this.mapInstance, this.advancedAnimation.borrowerPoints), setTimeout(() => {
|
|
349
|
+
h(this.mapInstance, this.advancedAnimation.borrowerPoints).then(() => {
|
|
347
350
|
this.mapInstance.dragPan.enable(), this.mapInstance.scrollZoom.enable(), this.mapInstance.scrollZoom.enable(), this.mapInstance.easeTo({
|
|
348
351
|
center: [this.effectiveLong, this.effectiveLat],
|
|
349
352
|
zoom: this.initialZoom || this.effectiveZoomLevel
|
|
@@ -50,7 +50,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
50
50
|
clickPage(number: any): void;
|
|
51
51
|
clickPrevious(): void;
|
|
52
52
|
clickNext(): void;
|
|
53
|
-
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin,
|
|
53
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "page-changed"[], "page-changed", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
54
54
|
limit: {
|
|
55
55
|
type: NumberConstructor;
|
|
56
56
|
required: true;
|
|
@@ -83,7 +83,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
83
83
|
type: StringConstructor;
|
|
84
84
|
default: string;
|
|
85
85
|
};
|
|
86
|
-
}>> & Readonly<{
|
|
86
|
+
}>> & Readonly<{
|
|
87
|
+
"onPage-changed"?: (...args: any[]) => any;
|
|
88
|
+
}>, {
|
|
87
89
|
kvTrackFunction: Function;
|
|
88
90
|
offset: number;
|
|
89
91
|
extraPages: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { mdiChevronRight as s, mdiChevronLeft as r } from "@mdi/js";
|
|
2
2
|
import n from "./KvMaterialIcon.js";
|
|
3
3
|
const h = {
|
|
4
4
|
name: "KvPagination",
|
|
@@ -40,10 +40,13 @@ const h = {
|
|
|
40
40
|
default: ""
|
|
41
41
|
}
|
|
42
42
|
},
|
|
43
|
+
emits: [
|
|
44
|
+
"page-changed"
|
|
45
|
+
],
|
|
43
46
|
data() {
|
|
44
47
|
return {
|
|
45
|
-
mdiChevronLeft:
|
|
46
|
-
mdiChevronRight:
|
|
48
|
+
mdiChevronLeft: r,
|
|
49
|
+
mdiChevronRight: s
|
|
47
50
|
};
|
|
48
51
|
},
|
|
49
52
|
computed: {
|
|
@@ -73,7 +76,7 @@ const h = {
|
|
|
73
76
|
},
|
|
74
77
|
methods: {
|
|
75
78
|
range(t, e) {
|
|
76
|
-
return [...Array(e - t + 1)].map((i,
|
|
79
|
+
return [...Array(e - t + 1)].map((i, a) => a + t);
|
|
77
80
|
},
|
|
78
81
|
isCurrent(t) {
|
|
79
82
|
return t === this.current;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.segment-circle[data-v-73c9f5f9]{transition:stroke-dashoffset .5s ease-in-out}.skeleton-ring[data-v-73c9f5f9]{opacity:1;transition:opacity .5s ease-in-out}.skeleton-ring--loading[data-v-73c9f5f9]{animation:skeleton-ring-pulse-73c9f5f9 1.4s ease-in-out infinite;transform-origin:center}.legend-dot[data-v-73c9f5f9]{transition:background-color .5s ease-in-out}@keyframes skeleton-ring-pulse-73c9f5f9{0%,to{opacity:.45}50%{opacity:1}}@media
|
|
1
|
+
.segment-circle[data-v-73c9f5f9]{transition:stroke-dashoffset .5s ease-in-out}.skeleton-ring[data-v-73c9f5f9]{opacity:1;transition:opacity .5s ease-in-out}.skeleton-ring--loading[data-v-73c9f5f9]{animation:skeleton-ring-pulse-73c9f5f9 1.4s ease-in-out infinite;transform-origin:center}.legend-dot[data-v-73c9f5f9]{transition:background-color .5s ease-in-out}@keyframes skeleton-ring-pulse-73c9f5f9{0%,to{opacity:.45}50%{opacity:1}}@media(prefers-reduced-motion:reduce){.skeleton-ring--loading[data-v-73c9f5f9]{animation:none}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { toRefs as z, ref as I, computed as u, onMounted as J, watch as U, onUnmounted as Q } from "vue";
|
|
2
|
-
import { getPieChartColor as $,
|
|
2
|
+
import { getPieChartColor as $, OTHER_SEGMENT_BG_COLOR as Z, LOADING_BG_COLOR as ee } from "../utils/pieChartColors.js";
|
|
3
3
|
import { easeInOutCubic as te } from "../utils/useCountUp.js";
|
|
4
4
|
import ae from "./KvLightbox.js";
|
|
5
5
|
const E = 262, le = E / 2, ne = E / 2, W = 500, ue = 500, ve = {
|
|
@@ -207,8 +207,8 @@ const E = 262, le = E / 2, ne = E / 2, W = 500, ue = 500, ve = {
|
|
|
207
207
|
CY: ne,
|
|
208
208
|
radius: G,
|
|
209
209
|
circumference: b,
|
|
210
|
-
LOADING_BG_COLOR:
|
|
211
|
-
OTHER_SEGMENT_BG_COLOR:
|
|
210
|
+
LOADING_BG_COLOR: ee,
|
|
211
|
+
OTHER_SEGMENT_BG_COLOR: Z,
|
|
212
212
|
// State
|
|
213
213
|
showOtherLightbox: k,
|
|
214
214
|
animatedIn: c,
|
package/dist/vue/KvPopper2.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { offBodyTouchstart as r, onBodyTouchstart as o, isTargetElement as i } from "../utils/touchEvents.js";
|
|
2
2
|
const h = {
|
|
3
3
|
name: "KvPopper",
|
|
4
4
|
props: {
|
|
@@ -41,7 +41,7 @@ const h = {
|
|
|
41
41
|
updated() {
|
|
42
42
|
this.popper && this.popper.scheduleUpdate();
|
|
43
43
|
},
|
|
44
|
-
|
|
44
|
+
beforeUnmount() {
|
|
45
45
|
this.removeEvents(), this.popper && this.popper.destroy();
|
|
46
46
|
},
|
|
47
47
|
methods: {
|
|
@@ -80,7 +80,7 @@ const h = {
|
|
|
80
80
|
}), this.popperPromise);
|
|
81
81
|
},
|
|
82
82
|
bodyTouchHandler(e) {
|
|
83
|
-
|
|
83
|
+
i(e, [this.reference, this.$el]) || (this.show = !1, this.removeBodyEvents());
|
|
84
84
|
},
|
|
85
85
|
referenceTapHandler(e) {
|
|
86
86
|
e.preventDefault(), this.toggle();
|
|
@@ -95,7 +95,7 @@ const h = {
|
|
|
95
95
|
this.removeBodyEvents(), this.reference.removeEventListener("touchstart", this.referenceTapHandler), this.reference.removeEventListener("mouseover", this.open), this.reference.removeEventListener("mouseout", this.close), this.$el.removeEventListener("mouseover", this.open), this.$el.removeEventListener("mouseout", this.close);
|
|
96
96
|
},
|
|
97
97
|
removeBodyEvents() {
|
|
98
|
-
|
|
98
|
+
r(this.bodyTouchHandler);
|
|
99
99
|
},
|
|
100
100
|
setAttributes(e) {
|
|
101
101
|
Object.keys(e).forEach((t) => {
|
package/dist/vue/KvRadio.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import a from "./KvRadio2.js";
|
|
2
|
-
import { openBlock as o, createElementBlock as d,
|
|
2
|
+
import { openBlock as o, createElementBlock as d, normalizeStyle as c, normalizeClass as r, createElementVNode as i, mergeProps as w, toHandlers as f, withModifiers as m, createCommentVNode as h, renderSlot as u } from "vue";
|
|
3
3
|
import v from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
4
|
const b = ["for"], _ = ["id", "checked", "name", "value", "disabled"], g = {
|
|
5
5
|
key: 0,
|