@kiva/kv-components 6.46.0 → 6.47.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.
- package/dist/utils/comparators.js +6 -23
- package/dist/vue/KvUserAvatar.js +37 -35
- package/dist/vue/KvWwwHeader/KvHeaderAboutMenu.js +89 -0
- package/dist/vue/KvWwwHeader/KvHeaderDropdownLink.js +83 -0
- package/dist/vue/KvWwwHeader/KvHeaderLinkBar.css +1 -1
- package/dist/vue/KvWwwHeader/KvHeaderLinkBar.js +181 -132
- package/dist/vue/KvWwwHeader/KvHeaderMobileMenu.css +1 -0
- package/dist/vue/KvWwwHeader/KvHeaderMobileMenu.js +133 -53
- package/dist/vue/KvWwwHeader/KvHeaderMyKivaMenu.js +33 -31
- package/dist/vue/KvWwwHeader/KvHeaderTakeActionMenu.js +61 -0
- package/dist/vue/KvWwwHeader.css +1 -1
- package/dist/vue/KvWwwHeader.js +99 -134
- package/package.json +2 -3
- package/dist/utils/event.js +0 -7
- package/dist/utils/loanSearch/queryParamUtils.js +0 -13
- package/dist/utils/markMatches.js +0 -12
- package/dist/utils/searchEngine.js +0 -56
- package/dist/utils/siteSearch.js +0 -112
- package/dist/vue/KvWwwHeader/KvHeaderSearchBar.js +0 -72
- package/dist/vue/KvWwwHeader/KvHeaderSearchSuggestions.css +0 -1
- package/dist/vue/KvWwwHeader/KvHeaderSearchSuggestions.js +0 -57
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import u from "numeral";
|
|
2
1
|
import d from "./KvHeaderMenuLink.js";
|
|
3
|
-
import { resolveComponent as
|
|
4
|
-
import
|
|
5
|
-
const
|
|
2
|
+
import { resolveComponent as i, openBlock as a, createElementBlock as u, createVNode as s, withCtx as o, createTextVNode as r, createBlock as l, createCommentVNode as f } from "vue";
|
|
3
|
+
import m from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const p = {
|
|
6
5
|
components: {
|
|
7
6
|
KvHeaderMenuLink: d
|
|
8
7
|
},
|
|
@@ -18,47 +17,50 @@ const x = {
|
|
|
18
17
|
isTrustee: {
|
|
19
18
|
type: Boolean,
|
|
20
19
|
default: !1
|
|
20
|
+
},
|
|
21
|
+
myDashboardUrl: {
|
|
22
|
+
type: String,
|
|
23
|
+
default: "/mykiva"
|
|
21
24
|
}
|
|
22
|
-
},
|
|
23
|
-
setup() {
|
|
24
|
-
return {
|
|
25
|
-
numeral: u
|
|
26
|
-
};
|
|
27
25
|
}
|
|
28
|
-
},
|
|
29
|
-
function
|
|
30
|
-
const t =
|
|
31
|
-
return
|
|
32
|
-
|
|
33
|
-
href:
|
|
34
|
-
class: "tw-
|
|
26
|
+
}, y = { class: "tw--mt-0.5 tw-pb-0.5 tw-flex tw-flex-col tw-items-start lg:tw-items-start tw-font-medium" };
|
|
27
|
+
function w(k, e, n, b, v, B) {
|
|
28
|
+
const t = i("kv-header-menu-link");
|
|
29
|
+
return a(), u("nav", y, [
|
|
30
|
+
s(t, {
|
|
31
|
+
href: n.myDashboardUrl,
|
|
32
|
+
class: "lg:tw-hidden"
|
|
35
33
|
}, {
|
|
36
|
-
default: o(() => [
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
34
|
+
default: o(() => e[0] || (e[0] = [
|
|
35
|
+
r(" My Dashboard ")
|
|
36
|
+
])),
|
|
37
|
+
_: 1
|
|
38
|
+
}, 8, ["href"]),
|
|
39
|
+
s(t, { href: "/portfolio" }, {
|
|
40
|
+
default: o(() => e[1] || (e[1] = [
|
|
41
|
+
r(" Portfolio ")
|
|
42
|
+
])),
|
|
41
43
|
_: 1
|
|
42
44
|
}),
|
|
43
|
-
|
|
45
|
+
s(t, { href: "/teams/my-teams" }, {
|
|
44
46
|
default: o(() => e[2] || (e[2] = [
|
|
45
47
|
r(" My Teams ")
|
|
46
48
|
])),
|
|
47
49
|
_: 1
|
|
48
50
|
}),
|
|
49
|
-
|
|
51
|
+
s(t, { href: "/portfolio/donations" }, {
|
|
50
52
|
default: o(() => e[3] || (e[3] = [
|
|
51
53
|
r(" Donations ")
|
|
52
54
|
])),
|
|
53
55
|
_: 1
|
|
54
56
|
}),
|
|
55
|
-
|
|
57
|
+
s(t, { href: "/settings" }, {
|
|
56
58
|
default: o(() => e[4] || (e[4] = [
|
|
57
59
|
r(" Settings ")
|
|
58
60
|
])),
|
|
59
61
|
_: 1
|
|
60
62
|
}),
|
|
61
|
-
|
|
63
|
+
n.isBorrower ? (a(), l(t, {
|
|
62
64
|
key: 0,
|
|
63
65
|
href: "/my/borrower"
|
|
64
66
|
}, {
|
|
@@ -66,8 +68,8 @@ function _(b, e, s, m, v, N) {
|
|
|
66
68
|
r(" Borrower Dashboard ")
|
|
67
69
|
])),
|
|
68
70
|
_: 1
|
|
69
|
-
})) :
|
|
70
|
-
|
|
71
|
+
})) : f("", !0),
|
|
72
|
+
n.isTrustee ? (a(), l(t, {
|
|
71
73
|
key: 1,
|
|
72
74
|
href: "/my/trustee"
|
|
73
75
|
}, {
|
|
@@ -75,8 +77,8 @@ function _(b, e, s, m, v, N) {
|
|
|
75
77
|
r(" Trustee Dashboard ")
|
|
76
78
|
])),
|
|
77
79
|
_: 1
|
|
78
|
-
})) :
|
|
79
|
-
|
|
80
|
+
})) : f("", !0),
|
|
81
|
+
s(t, { href: "/ui-logout" }, {
|
|
80
82
|
default: o(() => e[7] || (e[7] = [
|
|
81
83
|
r(" Sign out ")
|
|
82
84
|
])),
|
|
@@ -84,7 +86,7 @@ function _(b, e, s, m, v, N) {
|
|
|
84
86
|
})
|
|
85
87
|
]);
|
|
86
88
|
}
|
|
87
|
-
const
|
|
89
|
+
const D = /* @__PURE__ */ m(p, [["render", w]]);
|
|
88
90
|
export {
|
|
89
|
-
|
|
91
|
+
D as default
|
|
90
92
|
};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import i from "./KvHeaderMenuLink.js";
|
|
2
|
+
import { resolveComponent as u, resolveDirective as c, openBlock as o, createElementBlock as d, withDirectives as a, createBlock as s, withCtx as r, createElementVNode as e } from "vue";
|
|
3
|
+
import p from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const m = {
|
|
5
|
+
components: {
|
|
6
|
+
KvHeaderMenuLink: i
|
|
7
|
+
}
|
|
8
|
+
}, v = { class: "tw--mt-0.5 tw-pb-0.5 tw-flex tw-flex-col tw-items-start tw-font-medium" };
|
|
9
|
+
function f(k, t, w, _, h, x) {
|
|
10
|
+
const n = u("kv-header-menu-link"), l = c("kv-track-event");
|
|
11
|
+
return o(), d("nav", v, [
|
|
12
|
+
a((o(), s(n, { href: "/lend-by-category" }, {
|
|
13
|
+
default: r(() => t[0] || (t[0] = [
|
|
14
|
+
e("div", null, [
|
|
15
|
+
e("p", null, "Choose someone to help"),
|
|
16
|
+
e("p", { class: "tw-text-small tw-text-secondary" }, " Make a direct impact for someone in need ")
|
|
17
|
+
], -1)
|
|
18
|
+
])),
|
|
19
|
+
_: 1
|
|
20
|
+
})), [
|
|
21
|
+
[l, ["TopNav", "click-menu-Choose-someone-to-help"]]
|
|
22
|
+
]),
|
|
23
|
+
a((o(), s(n, { href: "/donate/supportus" }, {
|
|
24
|
+
default: r(() => t[1] || (t[1] = [
|
|
25
|
+
e("div", null, [
|
|
26
|
+
e("p", null, "Donate to Kiva"),
|
|
27
|
+
e("p", { class: "tw-text-small tw-text-secondary" }, " Help us change lives and tackle inequality ")
|
|
28
|
+
], -1)
|
|
29
|
+
])),
|
|
30
|
+
_: 1
|
|
31
|
+
})), [
|
|
32
|
+
[l, ["TopNav", "click-menu-Donate-to-Kiva"]]
|
|
33
|
+
]),
|
|
34
|
+
a((o(), s(n, { href: "/about/partner-with-us" }, {
|
|
35
|
+
default: r(() => t[2] || (t[2] = [
|
|
36
|
+
e("div", null, [
|
|
37
|
+
e("p", null, "Partner with us"),
|
|
38
|
+
e("p", { class: "tw-text-small tw-text-secondary" }, " Drive global impact aligned to your business goals ")
|
|
39
|
+
], -1)
|
|
40
|
+
])),
|
|
41
|
+
_: 1
|
|
42
|
+
})), [
|
|
43
|
+
[l, ["TopNav", "click-menu-Partner-with-us"]]
|
|
44
|
+
]),
|
|
45
|
+
a((o(), s(n, { href: "/gifts/kiva-cards" }, {
|
|
46
|
+
default: r(() => t[3] || (t[3] = [
|
|
47
|
+
e("div", null, [
|
|
48
|
+
e("p", null, "Buy a Kiva Card"),
|
|
49
|
+
e("p", { class: "tw-text-small tw-text-secondary" }, " Share the joy of lending with others ")
|
|
50
|
+
], -1)
|
|
51
|
+
])),
|
|
52
|
+
_: 1
|
|
53
|
+
})), [
|
|
54
|
+
[l, ["TopNav", "click-menu-Buy-kiva-card"]]
|
|
55
|
+
])
|
|
56
|
+
]);
|
|
57
|
+
}
|
|
58
|
+
const B = /* @__PURE__ */ p(m, [["render", f]]);
|
|
59
|
+
export {
|
|
60
|
+
B as default
|
|
61
|
+
};
|
package/dist/vue/KvWwwHeader.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.header-margins[data-v-
|
|
1
|
+
.header-margins[data-v-269f8c8b]{margin:0 auto;max-width:1400px}.header-fade-enter-active[data-v-269f8c8b]{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}.header-fade-leave-active[data-v-269f8c8b]{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.1s}.header-fade-enter[data-v-269f8c8b],.header-fade-leave-to[data-v-269f8c8b]{opacity:0}.header-fade-leave[data-v-269f8c8b],.header-fade-enter-to[data-v-269f8c8b]{opacity:1}.bg-opacity-50[data-v-269f8c8b]{background-color:rgba(var(--bg-action-highlight),.5)}
|
package/dist/vue/KvWwwHeader.js
CHANGED
|
@@ -1,18 +1,14 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import A from "./KvThemeProvider.js";
|
|
6
|
-
import T from "./KvWwwHeader/KvHeaderSearchSuggestions.js";
|
|
1
|
+
import { ref as i, shallowRef as C, resolveComponent as c, resolveDirective as H, openBlock as v, createBlock as h, withCtx as f, createElementVNode as m, createVNode as u, Transition as k, withDirectives as g, vShow as p, createElementBlock as L, normalizeStyle as M, resolveDynamicComponent as B } from "vue";
|
|
2
|
+
import D from "./KvWwwHeader/KvHeaderLinkBar.js";
|
|
3
|
+
import x from "./KvWwwHeader/KvHeaderLogo.js";
|
|
4
|
+
import N from "./KvThemeProvider.js";
|
|
7
5
|
import "./KvWwwHeader.css";
|
|
8
|
-
import
|
|
9
|
-
const
|
|
6
|
+
import T from "../_virtual/_plugin-vue_export-helper.js";
|
|
7
|
+
const U = {
|
|
10
8
|
components: {
|
|
11
|
-
KvHeaderLinkBar:
|
|
12
|
-
KvHeaderLogo:
|
|
13
|
-
|
|
14
|
-
KvThemeProvider: A,
|
|
15
|
-
KvHeaderSearchSuggestions: T
|
|
9
|
+
KvHeaderLinkBar: D,
|
|
10
|
+
KvHeaderLogo: x,
|
|
11
|
+
KvThemeProvider: N
|
|
16
12
|
},
|
|
17
13
|
props: {
|
|
18
14
|
loggedIn: {
|
|
@@ -42,152 +38,121 @@ const D = {
|
|
|
42
38
|
userId: {
|
|
43
39
|
type: Number,
|
|
44
40
|
default: null
|
|
41
|
+
},
|
|
42
|
+
myDashboardUrl: {
|
|
43
|
+
type: String,
|
|
44
|
+
default: "/mykiva"
|
|
45
|
+
},
|
|
46
|
+
lenderName: {
|
|
47
|
+
type: String,
|
|
48
|
+
default: ""
|
|
49
|
+
},
|
|
50
|
+
lenderImageUrl: {
|
|
51
|
+
type: String,
|
|
52
|
+
default: ""
|
|
53
|
+
},
|
|
54
|
+
isMobile: {
|
|
55
|
+
type: Boolean,
|
|
56
|
+
default: !1
|
|
45
57
|
}
|
|
46
58
|
},
|
|
47
59
|
emits: [
|
|
48
60
|
"load-lend-menu-data"
|
|
49
61
|
],
|
|
50
|
-
setup(
|
|
51
|
-
const
|
|
52
|
-
let
|
|
62
|
+
setup(I, { emit: n }) {
|
|
63
|
+
const e = i(!0), t = i(null), a = i(!1), l = C(null), d = i(null), r = i({ left: 0, position: "relative" });
|
|
64
|
+
let s;
|
|
53
65
|
return {
|
|
54
|
-
afterLinksNotVisible: () => {
|
|
55
|
-
m.value = !0;
|
|
56
|
-
},
|
|
57
|
-
afterSearchClosed: () => {
|
|
58
|
-
t.value = !0;
|
|
59
|
-
},
|
|
60
|
-
afterSearchOpen: () => {
|
|
61
|
-
var a;
|
|
62
|
-
(a = e.value) == null || a.onOpen();
|
|
63
|
-
},
|
|
64
66
|
emitLendMenuEvent: () => {
|
|
65
67
|
n("load-lend-menu-data");
|
|
66
68
|
},
|
|
67
|
-
linksVisible:
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
69
|
+
linksVisible: e,
|
|
70
|
+
menuOpen: a,
|
|
71
|
+
onHover: (_, o, y) => {
|
|
72
|
+
o ? (clearTimeout(s), l.value !== o && (r.value = { left: 0, position: "relative" }), l.value = o, a.value = !0, y && (r.value = {
|
|
73
|
+
...y,
|
|
74
|
+
position: "absolute"
|
|
75
|
+
})) : a.value && (s = setTimeout(() => {
|
|
76
|
+
a.value = !1, l.value = null;
|
|
73
77
|
}, 200));
|
|
74
78
|
},
|
|
75
|
-
|
|
76
|
-
t.value = !1;
|
|
77
|
-
},
|
|
78
|
-
closeSearch: () => {
|
|
79
|
-
m.value = !1;
|
|
80
|
-
},
|
|
81
|
-
getSuggestions: (a) => {
|
|
82
|
-
var o;
|
|
83
|
-
(o = e.value) == null || o.getSuggestions(a);
|
|
84
|
-
},
|
|
85
|
-
loadMenuData: (a) => {
|
|
79
|
+
loadMenuData: (_) => {
|
|
86
80
|
var o;
|
|
87
|
-
(o =
|
|
81
|
+
(o = d.value) == null || o.onLoad(_);
|
|
88
82
|
},
|
|
89
|
-
activeHeaderItem:
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
83
|
+
activeHeaderItem: t,
|
|
84
|
+
menuComponent: l,
|
|
85
|
+
menuComponentInstance: d,
|
|
86
|
+
menuPosition: r
|
|
93
87
|
};
|
|
94
88
|
}
|
|
95
|
-
},
|
|
89
|
+
}, S = {
|
|
96
90
|
class: "header-margins tw-relative tw-py-1 tw-px-1.5 tw-font-medium",
|
|
97
91
|
style: { height: "3.75rem" }
|
|
98
|
-
},
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
92
|
+
}, E = {
|
|
93
|
+
href: "/",
|
|
94
|
+
class: "tw-px-1 tw-py-2 tw-cursor-pointer tw-absolute tw-top-1/2 tw-left-1/2 tw--translate-y-1/2 tw--translate-x-1/2 tw-transition-all tw-duration-300"
|
|
95
|
+
}, K = {
|
|
96
|
+
class: "tw-absolute tw-z-modal tw-h-full tw-inset-x-0 tw-bg-eco-green-4 bg-opacity-50 tw-min-h-screen",
|
|
97
|
+
style: { top: "3.75rem" }
|
|
98
|
+
}, V = { class: "header-margins tw-px-2.5" };
|
|
99
|
+
function z(I, n, e, t, a, l) {
|
|
100
|
+
const d = c("kv-header-link-bar"), r = c("kv-header-logo"), s = c("kv-theme-provider"), b = H("kv-track-event");
|
|
101
|
+
return v(), h(s, {
|
|
102
102
|
tag: "div",
|
|
103
|
-
class: "tw-
|
|
103
|
+
class: "tw-border-b tw-border-tertiary"
|
|
104
104
|
}, {
|
|
105
|
-
default:
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
"
|
|
114
|
-
"
|
|
115
|
-
"
|
|
116
|
-
"
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
105
|
+
default: f(() => [
|
|
106
|
+
m("nav", S, [
|
|
107
|
+
u(k, { name: "header-fade" }, {
|
|
108
|
+
default: f(() => [
|
|
109
|
+
g(u(d, {
|
|
110
|
+
"logged-in": e.loggedIn,
|
|
111
|
+
"basket-count": e.basketCount,
|
|
112
|
+
"login-url": e.loginUrl,
|
|
113
|
+
"open-menu-item": t.menuComponent,
|
|
114
|
+
"my-dashboard-url": e.myDashboardUrl,
|
|
115
|
+
"lender-name": e.lenderName,
|
|
116
|
+
"lender-image-url": e.lenderImageUrl,
|
|
117
|
+
"is-mobile": e.isMobile,
|
|
118
|
+
balance: e.balance,
|
|
119
|
+
onItemHover: t.onHover
|
|
120
|
+
}, null, 8, ["logged-in", "basket-count", "login-url", "open-menu-item", "my-dashboard-url", "lender-name", "lender-image-url", "is-mobile", "balance", "onItemHover"]), [
|
|
121
|
+
[p, t.linksVisible]
|
|
121
122
|
])
|
|
122
123
|
]),
|
|
123
124
|
_: 1
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
}, [
|
|
131
|
-
r(i)
|
|
132
|
-
], 2)), [
|
|
133
|
-
[y, ["TopNav", "click-Logo"]]
|
|
134
|
-
]),
|
|
135
|
-
r(w, {
|
|
136
|
-
name: "header-fade",
|
|
137
|
-
onAfterEnter: e.afterSearchOpen,
|
|
138
|
-
onAfterLeave: e.afterSearchClosed
|
|
139
|
-
}, {
|
|
140
|
-
default: d(() => [
|
|
141
|
-
_(r(u, {
|
|
142
|
-
ref: "searchBar",
|
|
143
|
-
class: "tw-absolute tw-left-1/2 tw--translate-x-1/2 tw-top-1/2 tw--translate-y-1/2 tw-h-full tw-w-full",
|
|
144
|
-
style: {
|
|
145
|
-
"max-width": "600px"
|
|
146
|
-
},
|
|
147
|
-
onCloseSearch: e.closeSearch
|
|
148
|
-
}, null, 8, ["onCloseSearch"]), [
|
|
149
|
-
[b, e.searchOpen]
|
|
150
|
-
])
|
|
151
|
-
]),
|
|
152
|
-
_: 1
|
|
153
|
-
}, 8, ["onAfterEnter", "onAfterLeave"])
|
|
125
|
+
}),
|
|
126
|
+
g((v(), L("a", E, [
|
|
127
|
+
u(r)
|
|
128
|
+
])), [
|
|
129
|
+
[b, ["TopNav", "click-Logo"]]
|
|
130
|
+
])
|
|
154
131
|
]),
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
}, 8, ["onAfterEnter"]),
|
|
164
|
-
r(w, { name: "header-fade" }, {
|
|
165
|
-
default: d(() => [
|
|
166
|
-
_(g("div", {
|
|
167
|
-
class: "tw-absolute tw-z-modal tw-h-full tw-inset-x-0 tw-bg-eco-green-4 bg-opacity-50 tw-min-h-screen",
|
|
168
|
-
style: { top: "3.75rem" },
|
|
169
|
-
onClick: n[2] || (n[2] = (...v) => e.closeSearch && e.closeSearch(...v))
|
|
170
|
-
}, [
|
|
171
|
-
g("div", {
|
|
172
|
-
class: "tw-bg-secondary tw-w-full",
|
|
173
|
-
onMouseover: n[0] || (n[0] = (v) => e.onHover(e.activeHeaderItem, e.menuComponent)),
|
|
174
|
-
onMouseout: n[1] || (n[1] = (v) => e.onHover())
|
|
132
|
+
u(k, { name: "header-fade" }, {
|
|
133
|
+
default: f(() => [
|
|
134
|
+
g(m("div", K, [
|
|
135
|
+
m("div", {
|
|
136
|
+
class: "tw-bg-primary",
|
|
137
|
+
style: M(t.menuPosition),
|
|
138
|
+
onMouseover: n[0] || (n[0] = (w) => t.onHover(t.activeHeaderItem, t.menuComponent)),
|
|
139
|
+
onMouseout: n[1] || (n[1] = (w) => t.onHover())
|
|
175
140
|
}, [
|
|
176
|
-
|
|
177
|
-
(
|
|
141
|
+
m("div", V, [
|
|
142
|
+
(v(), h(B(t.menuComponent), {
|
|
178
143
|
ref: "menuComponentInstance",
|
|
179
|
-
"logged-in":
|
|
180
|
-
"login-url":
|
|
181
|
-
"user-id":
|
|
182
|
-
|
|
183
|
-
"is-
|
|
184
|
-
"
|
|
185
|
-
onLoadLendMenuData:
|
|
186
|
-
}, null, 40, ["logged-in", "login-url", "user-id", "
|
|
144
|
+
"logged-in": e.loggedIn,
|
|
145
|
+
"login-url": e.loginUrl,
|
|
146
|
+
"user-id": e.userId,
|
|
147
|
+
"is-borrower": e.isBorrower,
|
|
148
|
+
"is-trustee": e.isTrustee,
|
|
149
|
+
"my-dashboard-url": e.myDashboardUrl,
|
|
150
|
+
onLoadLendMenuData: t.emitLendMenuEvent
|
|
151
|
+
}, null, 40, ["logged-in", "login-url", "user-id", "is-borrower", "is-trustee", "my-dashboard-url", "onLoadLendMenuData"]))
|
|
187
152
|
])
|
|
188
|
-
],
|
|
153
|
+
], 36)
|
|
189
154
|
], 512), [
|
|
190
|
-
[
|
|
155
|
+
[p, t.menuOpen]
|
|
191
156
|
])
|
|
192
157
|
]),
|
|
193
158
|
_: 1
|
|
@@ -196,7 +161,7 @@ function z(C, n, t, e, m, k) {
|
|
|
196
161
|
_: 1
|
|
197
162
|
});
|
|
198
163
|
}
|
|
199
|
-
const
|
|
164
|
+
const F = /* @__PURE__ */ T(U, [["render", z], ["__scopeId", "data-v-269f8c8b"]]);
|
|
200
165
|
export {
|
|
201
|
-
|
|
166
|
+
F as default
|
|
202
167
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kiva/kv-components",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.47.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -63,7 +63,6 @@
|
|
|
63
63
|
"eslint-plugin-vue": "^7.9.0",
|
|
64
64
|
"flag-icons": "^7.3.0",
|
|
65
65
|
"focus-trap": "^6.9.4",
|
|
66
|
-
"fuse.js": "^7.1.0",
|
|
67
66
|
"graphql-tag": "^2.12.6",
|
|
68
67
|
"import-meta-loader": "^1.1.0",
|
|
69
68
|
"jest": "^27.4.3",
|
|
@@ -114,5 +113,5 @@
|
|
|
114
113
|
"embla-carousel-fade",
|
|
115
114
|
"popper.js"
|
|
116
115
|
],
|
|
117
|
-
"gitHead": "
|
|
116
|
+
"gitHead": "6dc91354845444f1142f669900f71c313c0524a3"
|
|
118
117
|
}
|
package/dist/utils/event.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
function i(a, r) {
|
|
2
|
-
if (!r || !r.length)
|
|
3
|
-
return a;
|
|
4
|
-
const e = r.map((t) => t[0]).flat(), f = r.map((t) => t[1]).flat();
|
|
5
|
-
return Array.from(a).map((t, n) => {
|
|
6
|
-
const s = e.indexOf(n) > -1 ? '<mark class="tw-bg-tertiary tw-rounded-sm tw-mix-blend-multiply tw-p-0.5 tw--m-0.5">' : "", c = f.indexOf(n) > -1 ? "</mark>" : "";
|
|
7
|
-
return `${s}${t}${c}`;
|
|
8
|
-
}).join("");
|
|
9
|
-
}
|
|
10
|
-
export {
|
|
11
|
-
i as default
|
|
12
|
-
};
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import a from "fuse.js";
|
|
2
|
-
import { startsWith as u } from "./comparators.js";
|
|
3
|
-
class p {
|
|
4
|
-
constructor(e = []) {
|
|
5
|
-
this.ready = new Promise((s) => {
|
|
6
|
-
this.resolveReady = s;
|
|
7
|
-
}), e.length && this.init(e);
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Resets the engine with the provided data
|
|
11
|
-
*
|
|
12
|
-
* @param data The data to reset with
|
|
13
|
-
*/
|
|
14
|
-
reset(e) {
|
|
15
|
-
this.fuse ? this.fuse.setCollection(e) : this.init(e);
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Initializes the engine with the provided data
|
|
19
|
-
*
|
|
20
|
-
* @param data The data to use
|
|
21
|
-
*/
|
|
22
|
-
init(e) {
|
|
23
|
-
var s;
|
|
24
|
-
this.fuse = new a(e, {
|
|
25
|
-
threshold: 0.25,
|
|
26
|
-
distance: 1e5,
|
|
27
|
-
includeMatches: !0,
|
|
28
|
-
keys: ["label", "keywords"]
|
|
29
|
-
}), (s = this.resolveReady) == null || s.call(this);
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Searches using Fuze
|
|
33
|
-
*
|
|
34
|
-
* @param query The query to search
|
|
35
|
-
* @returns Matching results with results that start with query sorted first
|
|
36
|
-
*/
|
|
37
|
-
search(e) {
|
|
38
|
-
return this.ready.then(() => new Promise((s) => {
|
|
39
|
-
var h;
|
|
40
|
-
const i = (h = this.fuse) == null ? void 0 : h.search(e), r = i == null ? void 0 : i.filter((o) => {
|
|
41
|
-
var t;
|
|
42
|
-
return (t = o.matches) == null ? void 0 : t.length;
|
|
43
|
-
}), n = r == null ? void 0 : r.map(({ item: o, matches: t }) => {
|
|
44
|
-
var l;
|
|
45
|
-
return {
|
|
46
|
-
...o,
|
|
47
|
-
matches: (l = t == null ? void 0 : t.map((c) => c.indices)) == null ? void 0 : l.flat()
|
|
48
|
-
};
|
|
49
|
-
});
|
|
50
|
-
s((n == null ? void 0 : n.sort(u(e, "label"))) ?? []);
|
|
51
|
-
}));
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
export {
|
|
55
|
-
p as default
|
|
56
|
-
};
|