@kiva/kv-components 8.26.0 → 8.26.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,19 +1,20 @@
1
1
  import o from "graphql-tag";
2
- import { LOAN_CALLOUTS_FRAGMENT as E, LOAN_GEOCODE_FRAGMENT as M, LOAN_PROGRESS_FRAGMENT as B, loanCardComputedProperties as R, loanCardMethods as S } from "../utils/loanCard.js";
3
- import T from "./KvLoanUse.js";
4
- import k from "./KvBorrowerImage.js";
5
- import w from "./KvLoanProgressGroup.js";
6
- import O from "./KvLoanCallouts.js";
7
- import D from "./KvLendCta.js";
8
- import F from "./KvLoanBookmark.js";
9
- import G from "./KvLoanTag.js";
10
- import b from "./KvMaterialIcon.js";
11
- import P from "./KvLoadingPlaceholder.js";
12
- import { KV_LEND_CTA_FRAGMENT as U, KV_LEND_CTA_USER_FRAGMENT as V } from "./KvLendCta2.js";
13
- import { KV_LOAN_TAG_FRAGMENT as W } from "./KvLoanTag2.js";
14
- import { KV_LOAN_USE_FRAGMENT as $ } from "./KvLoanUse2.js";
15
- import { KV_LOAN_BOOKMARK_FRAGMENT as z } from "./KvLoanBookmark2.js";
16
- const ie = o`
2
+ import { LOAN_CALLOUTS_FRAGMENT as M, LOAN_GEOCODE_FRAGMENT as R, LOAN_PROGRESS_FRAGMENT as B, loanCardComputedProperties as S, loanCardMethods as k, useLocationTruncation as w } from "../utils/loanCard.js";
3
+ import O from "./KvLoanUse.js";
4
+ import D from "./KvBorrowerImage.js";
5
+ import F from "./KvLoanProgressGroup.js";
6
+ import G from "./KvLoanCallouts.js";
7
+ import b from "./KvLendCta.js";
8
+ import P from "./KvLoanBookmark.js";
9
+ import U from "./KvLoanTag.js";
10
+ import V from "./KvMaterialIcon.js";
11
+ import W from "./KvLoadingPlaceholder.js";
12
+ import $ from "./KvTooltip.js";
13
+ import { KV_LEND_CTA_FRAGMENT as z, KV_LEND_CTA_USER_FRAGMENT as I } from "./KvLendCta2.js";
14
+ import { KV_LOAN_TAG_FRAGMENT as q } from "./KvLoanTag2.js";
15
+ import { KV_LOAN_USE_FRAGMENT as x } from "./KvLoanUse2.js";
16
+ import { KV_LOAN_BOOKMARK_FRAGMENT as H } from "./KvLoanBookmark2.js";
17
+ const me = o`
17
18
  fragment KvWideLoanCard on LoanBasic {
18
19
  id
19
20
  image {
@@ -28,32 +29,33 @@ const ie = o`
28
29
  ...LoanGeocode
29
30
  ...LoanProgress
30
31
  }
31
- ${U}
32
- ${W}
33
- ${$}
34
- ${E}
32
+ ${z}
33
+ ${q}
34
+ ${x}
35
35
  ${M}
36
+ ${R}
36
37
  ${B}
37
- `, ne = o`
38
+ `, ue = o`
38
39
  fragment KvWideLoanCardUser on LoanBasic {
39
40
  id
40
41
  ...KvLendCtaUser
41
42
  ...KvLoanBookmark
42
43
  }
43
- ${V}
44
- ${z}
45
- `, le = {
44
+ ${I}
45
+ ${H}
46
+ `, fe = {
46
47
  name: "KvWideLoanCard",
47
48
  components: {
48
- KvBorrowerImage: k,
49
- KvLoadingPlaceholder: P,
50
- KvLoanUse: T,
51
- KvLoanProgressGroup: w,
52
- KvMaterialIcon: b,
53
- KvLendCta: D,
54
- KvLoanTag: G,
55
- KvLoanCallouts: O,
56
- KvLoanBookmark: F
49
+ KvBorrowerImage: D,
50
+ KvLoadingPlaceholder: W,
51
+ KvLoanUse: O,
52
+ KvLoanProgressGroup: F,
53
+ KvMaterialIcon: V,
54
+ KvLendCta: b,
55
+ KvLoanTag: U,
56
+ KvLoanCallouts: G,
57
+ KvLoanBookmark: P,
58
+ KvTooltip: $
57
59
  },
58
60
  props: {
59
61
  loanId: {
@@ -162,19 +164,22 @@ const ie = o`
162
164
  imageHash: u,
163
165
  isLoading: f,
164
166
  loanAmount: p,
165
- loanBorrowerCount: L,
166
- loanCallouts: c,
167
+ loanBorrowerCount: c,
168
+ loanCallouts: L,
167
169
  loanStatus: g,
168
- loanUse: _,
169
- mdiMapMarker: v,
170
+ loanUse: v,
171
+ mdiMapMarker: _,
170
172
  readMorePath: A,
171
173
  state: y,
172
174
  tag: K,
173
175
  unreservedAmount: N,
174
176
  sharesAvailable: h
175
- } = R(e), {
177
+ } = S(e), {
176
178
  clickReadMore: C
177
- } = S(e, a);
179
+ } = k(e, a), {
180
+ locationRef: T,
181
+ isLocationTruncated: E
182
+ } = w();
178
183
  return {
179
184
  allDataLoaded: t,
180
185
  borrowerName: r,
@@ -187,17 +192,19 @@ const ie = o`
187
192
  imageHash: u,
188
193
  isLoading: f,
189
194
  loanAmount: p,
190
- loanBorrowerCount: L,
191
- loanCallouts: c,
195
+ loanBorrowerCount: c,
196
+ loanCallouts: L,
192
197
  loanStatus: g,
193
- loanUse: _,
194
- mdiMapMarker: v,
198
+ loanUse: v,
199
+ mdiMapMarker: _,
195
200
  readMorePath: A,
196
201
  state: y,
197
202
  tag: K,
198
203
  unreservedAmount: N,
199
204
  sharesAvailable: h,
200
- clickReadMore: C
205
+ clickReadMore: C,
206
+ locationRef: T,
207
+ isLocationTruncated: E
201
208
  };
202
209
  },
203
210
  computed: {
@@ -222,7 +229,7 @@ const ie = o`
222
229
  }
223
230
  };
224
231
  export {
225
- ie as KV_WIDE_LOAN_CARD_FRAGMENT,
226
- ne as KV_WIDE_LOAN_CARD_USER_FRAGMENT,
227
- le as default
232
+ me as KV_WIDE_LOAN_CARD_FRAGMENT,
233
+ ue as KV_WIDE_LOAN_CARD_USER_FRAGMENT,
234
+ fe as default
228
235
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kiva/kv-components",
3
- "version": "8.26.0",
3
+ "version": "8.26.1",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -113,5 +113,5 @@
113
113
  "dependencies": {
114
114
  "fuse.js": "^7.1.0"
115
115
  },
116
- "gitHead": "f3970572fbabe8fae5595bb82808acdd42deea9f"
116
+ "gitHead": "98e6214303eb569e180a1c2da6e21a23c06d0948"
117
117
  }
@@ -1,35 +0,0 @@
1
- export interface Callout {
2
- id: number | null;
3
- label: string;
4
- type: 'tag' | 'attribute' | 'activity' | 'sector';
5
- }
6
- export declare const LOAN_CALLOUTS_FRAGMENT: import('graphql').DocumentNode;
7
- export declare const LOAN_GEOCODE_FRAGMENT: import('graphql').DocumentNode;
8
- export declare const LOAN_PROGRESS_FRAGMENT: import('graphql').DocumentNode;
9
- export declare function loanCardComputedProperties(props: any, hideUnitedStatesText?: boolean): {
10
- tag: import('vue').ComputedRef<"router-link" | "a">;
11
- readMorePath: import('vue').ComputedRef<any>;
12
- isLoading: import('vue').ComputedRef<boolean>;
13
- borrowerName: import('vue').ComputedRef<any>;
14
- countryName: import('vue').ComputedRef<any>;
15
- countryCode: import('vue').ComputedRef<any>;
16
- city: import('vue').ComputedRef<any>;
17
- state: import('vue').ComputedRef<any>;
18
- distributionModel: import('vue').ComputedRef<any>;
19
- imageHash: import('vue').ComputedRef<any>;
20
- hasProgressData: import('vue').ComputedRef<boolean>;
21
- allDataLoaded: import('vue').ComputedRef<boolean>;
22
- fundraisingPercent: import('vue').ComputedRef<any>;
23
- unreservedAmount: import('vue').ComputedRef<any>;
24
- sharesAvailable: import('vue').ComputedRef<boolean>;
25
- formattedLocation: import('vue').ComputedRef<any>;
26
- loanUse: import('vue').ComputedRef<any>;
27
- loanStatus: import('vue').ComputedRef<any>;
28
- loanAmount: import('vue').ComputedRef<any>;
29
- loanBorrowerCount: import('vue').ComputedRef<any>;
30
- mdiMapMarker: string;
31
- loanCallouts: import('vue').ComputedRef<Callout[]>;
32
- };
33
- export declare function loanCardMethods(props: any, emit: any): {
34
- clickReadMore: (target: string, event: Event) => void;
35
- };