@kiva/kv-shop 3.8.22 → 3.8.24
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/kv-components/dist/vue/KvCheckoutReceipt.css +1 -1
- package/dist/kv-components/dist/vue/KvClassicLoanCard2.js +5 -6
- package/dist/kv-components/dist/vue/KvIntroductionLoanCard2.js +0 -1
- package/dist/kv-components/dist/vue/KvLoanInfoCard.js +2 -3
- package/dist/kv-components/dist/vue/KvLoanTag2.js +3 -4
- package/dist/kv-components/dist/vue/KvTooltip.css +1 -1
- package/dist/kv-components/dist/vue/KvTreeMapChart2.js +1 -2
- package/dist/kv-components/dist/vue/KvWideLoanCard2.js +0 -1
- package/dist/kv-components/dist/vue/KvWwwHeaderBasic/HeaderMenuGroup.css +1 -0
- package/dist/kv-components/dist/vue/KvWwwHeaderBasic/KvWwwHeaderBasic.css +1 -1
- package/dist/kv-components/dist/vue/KvWwwHeaderBasic/LinkBar.css +1 -1
- package/dist/kv-components/dist/vue/KvWwwHeaderBasic/LinkBar2.js +1 -0
- package/dist/kv-components/dist/vue/KvWwwHeaderBasic/MobileLendMenu/SearchPanel.js +11 -10
- package/dist/kv-components/dist/vue/KvWwwHeaderBasic/SearchBar.js +13 -13
- package/dist/kv-components/dist/vue/KvWwwHeaderBasic/SearchBar2.js +43 -37
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
.section[data-v-
|
|
1
|
+
.section[data-v-e06307e1]{border-bottom-width:.0625rem;border-top-width:0px;--tw-border-opacity: 1;border-color:rgba(var(--border-tertiary),var(--tw-border-opacity, 1));padding:.5rem;display:block;overflow:hidden}@media print{.section[data-v-e06307e1]{page-break-inside:avoid}}.section--lender-info[data-v-e06307e1]{padding-top:0}.section--print[data-v-e06307e1]{border-bottom:0}.checkout-receipt__headline[data-v-e06307e1]{text-align:center;margin-bottom:1.5rem}.checkout-receipt__item-list[data-v-e06307e1]{list-style:none;margin:0;width:100%}.loan__name[data-v-e06307e1]{margin-bottom:.5rem}.loan__name--inline[data-v-e06307e1]{display:inline-block}.loan__amount[data-v-e06307e1]{text-align:right}.total[data-v-e06307e1]{display:flex;align-items:baseline}.total__header[data-v-e06307e1],.total__amount[data-v-e06307e1]{text-align:right;flex:1}.total__amount[data-v-e06307e1]{flex-grow:.33}.payments[data-v-e06307e1]{border-bottom:none}.payments__type[data-v-e06307e1]{display:flex;text-align:right}.payments__type-title[data-v-e06307e1],.payments__type-amount[data-v-e06307e1]{flex:1}.print[data-v-e06307e1]{margin:0 auto}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import o from "graphql-tag";
|
|
2
2
|
import "numeral";
|
|
3
|
-
import { LOAN_CALLOUTS_FRAGMENT as
|
|
3
|
+
import { LOAN_CALLOUTS_FRAGMENT as a, LOAN_GEOCODE_FRAGMENT as r, LOAN_PROGRESS_FRAGMENT as i } from "../utils/loanCard.js";
|
|
4
4
|
import { KV_LOAN_USE_FRAGMENT as m } from "./KvLoanUse2.js";
|
|
5
5
|
import "vue";
|
|
6
6
|
/* empty css */
|
|
7
7
|
/* empty css */
|
|
8
|
-
import { KV_LEND_CTA_FRAGMENT as
|
|
8
|
+
import { KV_LEND_CTA_FRAGMENT as n, KV_LEND_CTA_USER_FRAGMENT as t } from "./KvLendCta2.js";
|
|
9
9
|
/* empty css */
|
|
10
10
|
import { KV_LOAN_BOOKMARK_FRAGMENT as e } from "./KvLoanBookmark2.js";
|
|
11
11
|
import { KV_LOAN_TAG_FRAGMENT as s } from "./KvLoanTag2.js";
|
|
@@ -13,7 +13,6 @@ import { KV_LOAN_TAG_FRAGMENT as s } from "./KvLoanTag2.js";
|
|
|
13
13
|
import { KV_LOAN_ACTIVITIES_FRAGMENT as L } from "./KvLoanActivities2.js";
|
|
14
14
|
/* empty css */
|
|
15
15
|
import "@kiva/kv-tokens";
|
|
16
|
-
/* empty css */
|
|
17
16
|
/* empty css */
|
|
18
17
|
o`
|
|
19
18
|
fragment KvClassicLoanCard on LoanBasic {
|
|
@@ -39,12 +38,12 @@ o`
|
|
|
39
38
|
...LoanGeocode
|
|
40
39
|
...LoanProgress
|
|
41
40
|
}
|
|
42
|
-
${
|
|
41
|
+
${n}
|
|
43
42
|
${L}
|
|
44
43
|
${s}
|
|
45
44
|
${m}
|
|
46
|
-
${r}
|
|
47
45
|
${a}
|
|
46
|
+
${r}
|
|
48
47
|
${i}
|
|
49
48
|
`;
|
|
50
49
|
o`
|
|
@@ -53,6 +52,6 @@ o`
|
|
|
53
52
|
...KvLendCtaUser
|
|
54
53
|
...KvLoanBookmark
|
|
55
54
|
}
|
|
56
|
-
${
|
|
55
|
+
${t}
|
|
57
56
|
${e}
|
|
58
57
|
`;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import o from "graphql-tag";
|
|
2
2
|
import { LOAN_GEOCODE_FRAGMENT as r } from "../utils/loanCard.js";
|
|
3
|
-
import { KV_LOAN_USE_FRAGMENT as
|
|
3
|
+
import { KV_LOAN_USE_FRAGMENT as a } from "./KvLoanUse2.js";
|
|
4
4
|
import "vue";
|
|
5
5
|
/* empty css */
|
|
6
6
|
import "@kiva/kv-tokens";
|
|
7
|
-
/* empty css */
|
|
8
7
|
/* empty css */
|
|
9
8
|
/* empty css */
|
|
10
9
|
o`
|
|
@@ -19,6 +18,6 @@ o`
|
|
|
19
18
|
...KvLoanUse
|
|
20
19
|
...LoanGeocode
|
|
21
20
|
}
|
|
22
|
-
${
|
|
21
|
+
${a}
|
|
23
22
|
${r}
|
|
24
23
|
`;
|
|
@@ -3,9 +3,8 @@ import a from "graphql-tag";
|
|
|
3
3
|
import "numeral";
|
|
4
4
|
import "vue";
|
|
5
5
|
import "@kiva/kv-tokens";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
const p = a`
|
|
6
|
+
import "./KvTooltip.css";
|
|
7
|
+
const e = a`
|
|
9
8
|
fragment KvLoanTag on LoanBasic {
|
|
10
9
|
id
|
|
11
10
|
loanFundraisingInfo {
|
|
@@ -28,5 +27,5 @@ const p = a`
|
|
|
28
27
|
}
|
|
29
28
|
`;
|
|
30
29
|
export {
|
|
31
|
-
|
|
30
|
+
e as KV_LOAN_TAG_FRAGMENT
|
|
32
31
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.tooltip-pane[data-v-
|
|
1
|
+
.tooltip-pane[data-v-eed4fc1b],.tooltip-arrow[data-v-eed4fc1b]{box-shadow:0 4px 12px #00000014}.tooltip-arrow[data-v-eed4fc1b]{margin:.5rem}.tooltip-pane--light .tooltip-arrow[data-v-eed4fc1b]{border-color:#fff}.tooltip-pane--dark .tooltip-arrow[data-v-eed4fc1b]{border-color:#212121}.tooltip-pane--dark[data-v-eed4fc1b] .tw-text-link{color:#78c79f}.tooltip-pane--dark[data-v-eed4fc1b] .tw-text-link:hover,.tooltip-pane--dark[data-v-eed4fc1b] .tw-text-link:focus{color:#fff}.tooltip-pane[x-placement^=top][data-v-eed4fc1b]{margin-bottom:.5rem}.tooltip-pane[x-placement^=top] .tooltip-arrow[data-v-eed4fc1b]{border-width:8px 8px 0 8px;border-left-color:transparent;border-right-color:transparent;border-bottom-color:transparent;left:calc(50% - 8px);bottom:-.5rem;margin-top:0;margin-bottom:0}.tooltip-pane[x-placement^=bottom][data-v-eed4fc1b]{margin-top:.5rem}.tooltip-pane[x-placement^=bottom] .tooltip-arrow[data-v-eed4fc1b]{border-width:0 8px 8px 8px;border-left-color:transparent;border-right-color:transparent;border-top-color:transparent;left:calc(50% - 8px);top:-.5rem;margin-bottom:0;margin-top:0}.tooltip-pane[x-placement^=right][data-v-eed4fc1b]{margin-left:.5rem}.tooltip-pane[x-placement^=right] .tooltip-arrow[data-v-eed4fc1b]{border-width:8px 8px 8px 0;border-left-color:transparent;border-top-color:transparent;border-bottom-color:transparent;top:calc(50% - 8px);left:-.5rem;margin-left:0;margin-right:0}.tooltip-pane[x-placement^=left][data-v-eed4fc1b]{margin-right:.5rem}.tooltip-pane[x-placement^=left] .tooltip-arrow[data-v-eed4fc1b]{border-width:8px 0 8px 8px;border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;top:calc(50% - 8px);right:-.5rem;margin-left:0;margin-right:0}
|
|
@@ -11,7 +11,6 @@ import { KV_LOAN_BOOKMARK_FRAGMENT as e } from "./KvLoanBookmark2.js";
|
|
|
11
11
|
import { KV_LOAN_TAG_FRAGMENT as t } from "./KvLoanTag2.js";
|
|
12
12
|
/* empty css */
|
|
13
13
|
import "@kiva/kv-tokens";
|
|
14
|
-
/* empty css */
|
|
15
14
|
/* empty css */
|
|
16
15
|
o`
|
|
17
16
|
fragment KvWideLoanCard on LoanBasic {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@media(min-width:45.875rem){.menu-group[data-v-22583929]{align-self:stretch}.menu-group[data-v-22583929]:hover:after{content:"";position:absolute;top:4rem;height:calc(var(--nav-height, 4rem) - 4rem);left:calc(var(--trigger-gap-left, 0px) - var(--trigger-width, 0px) / 2);width:var(--trigger-width, 0px)}}.menu-panel[data-v-22583929]{position:absolute;z-index:1400;overflow-y:auto;--tw-bg-opacity: 1;background-color:rgba(var(--bg-primary),var(--tw-bg-opacity, 1));top:var(--nav-height, 4rem);max-height:0;visibility:hidden;opacity:0;transition:opacity var(--menu-close-fade) ease var(--menu-open-delay),visibility 0s calc(var(--menu-open-delay) + var(--menu-close-fade)),max-height 0s calc(var(--menu-open-delay) + var(--menu-close-fade)),min-height 0s calc(var(--menu-open-delay) + var(--menu-close-fade))}.menu-group:has(>[aria-expanded=true])>.menu-panel[data-v-22583929],[data-pointer=mouse] .menu-group:hover>.menu-panel[data-v-22583929]{visibility:visible;opacity:1;max-height:calc(100dvh - var(--nav-height, 4rem));transition:opacity .3s ease var(--menu-open-delay),visibility 0s var(--menu-open-delay),max-height 0s var(--menu-open-delay),min-height 0s var(--menu-open-delay)}.menu-panel--full[data-v-22583929],.menu-panel--drawer[data-v-22583929]{inset-inline:0}.menu-panel--card[data-v-22583929]{border-bottom-right-radius:1rem;border-bottom-left-radius:1rem;border-width:.0625rem;border-top-width:0px;--tw-border-opacity: 1;border-color:rgba(var(--border-tertiary),var(--tw-border-opacity, 1));right:var(--trigger-gap-right, 0px);translate:clamp(calc(100% - var(--trigger-gap-left, 0px)),50%,var(--trigger-gap-right, 0px)) 0;max-width:100%}.menu-panel--drawer[data-v-22583929]{border-radius:0}.menu-group:has(>[aria-expanded=true])>.menu-panel--drawer[data-v-22583929],[data-pointer=mouse] .menu-group:hover>.menu-panel--drawer[data-v-22583929]{max-height:none;min-height:100dvh}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.header-fade-enter-active[data-v-
|
|
1
|
+
.header-fade-enter-active[data-v-25e697e2]{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}.header-fade-leave-active[data-v-25e697e2]{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.1s}.header-fade-enter[data-v-25e697e2],.header-fade-leave-to[data-v-25e697e2]{opacity:0}.header-fade-leave[data-v-25e697e2],.header-fade-enter-to[data-v-25e697e2]{opacity:1}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.link-bar[data-v-
|
|
1
|
+
.link-bar[data-v-816544c3]{display:flex;align-items:center;gap:.5rem}.link-bar__logo[data-v-816544c3]{position:absolute;top:50%;left:50%;--tw-translate-x: -50%;--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}@media(min-width:45.875rem){.link-bar[data-v-816544c3]{display:grid;-moz-column-gap:1rem;column-gap:1rem;grid-template-areas:"logo lend right" "search search search";grid-template-columns:1fr auto auto;grid-template-rows:4rem auto;row-gap:.5rem}.link-bar__logo[data-v-816544c3]{position:static;--tw-translate-x: 0;--tw-translate-y: 0;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));grid-area:logo;justify-self:start}.link-bar__lend[data-v-816544c3]{grid-area:lend}.link-bar__search[data-v-816544c3]{grid-area:search;margin-bottom:.5rem}.link-bar__right[data-v-816544c3]{grid-area:right;align-self:stretch}}@media(min-width:64rem){.link-bar[data-v-816544c3]{-moz-column-gap:1.25rem;column-gap:1.25rem;grid-template-areas:"logo lend search right";grid-template-columns:auto auto 1fr auto;grid-template-rows:4rem}.link-bar__search[data-v-816544c3]{margin-bottom:0}}.header-link[data-v-816544c3]{cursor:pointer;padding-top:1rem;padding-bottom:1rem;--tw-text-opacity: 1;color:rgba(var(--text-primary),var(--tw-text-opacity, 1));text-decoration-line:none}.header-link[data-v-816544c3]:hover{--tw-text-opacity: 1;color:rgba(var(--text-action),var(--tw-text-opacity, 1));text-decoration-line:none}.menu-trigger[data-v-816544c3]{border:0;background:none;font:inherit;cursor:pointer}.backdrop[data-v-816544c3]{position:absolute;z-index:1300;top:var(--nav-height, 4rem);inset-inline:0;height:0;background-color:rgba(var(--bg-action-highlight),.5);visibility:hidden;opacity:0;transition:opacity var(--menu-close-fade) ease var(--menu-open-delay),visibility 0s calc(var(--menu-open-delay) + var(--menu-close-fade)),height 0s calc(var(--menu-open-delay) + var(--menu-close-fade))}.link-bar:has(.menu-group>[aria-expanded=true])>.backdrop[data-v-816544c3],.link-bar[data-pointer=mouse]:has(.menu-group:hover)>.backdrop[data-v-816544c3]{visibility:visible;opacity:1;height:100vh;transition:opacity .3s ease var(--menu-open-delay),visibility 0s var(--menu-open-delay),height 0s var(--menu-open-delay)}.chevron[data-v-816544c3]{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}.menu-group:has(>[aria-expanded=true]) .chevron[data-v-816544c3],[data-pointer=mouse] .menu-group:hover .chevron[data-v-816544c3]{--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.link-bar__basket-count-loader[data-v-816544c3]{width:1.5ch;height:1.375em;height:1lh}
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { resolveComponent as
|
|
3
|
-
import
|
|
4
|
-
function
|
|
5
|
-
const s =
|
|
1
|
+
import i from "./SearchPanel2.js";
|
|
2
|
+
import { resolveComponent as t, openBlock as n, createBlock as c } from "vue";
|
|
3
|
+
import p from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
function m(e, r, o, u, h, l) {
|
|
5
|
+
const s = t("search-bar");
|
|
6
6
|
return n(), c(s, {
|
|
7
|
-
"search-suggestions":
|
|
8
|
-
"app-origin":
|
|
7
|
+
"search-suggestions": o.searchSuggestions,
|
|
8
|
+
"app-origin": o.appOrigin,
|
|
9
|
+
"input-id": "kv-www-header-basic-search-mobile",
|
|
9
10
|
"is-mobile": "",
|
|
10
|
-
onLoadSearchData:
|
|
11
|
-
onSearchSubmit:
|
|
11
|
+
onLoadSearchData: r[0] || (r[0] = (a) => e.$emit("load-search-data")),
|
|
12
|
+
onSearchSubmit: r[1] || (r[1] = (a) => e.$emit("search-submit", a))
|
|
12
13
|
}, null, 8, ["search-suggestions", "app-origin"]);
|
|
13
14
|
}
|
|
14
|
-
const f = /* @__PURE__ */
|
|
15
|
+
const f = /* @__PURE__ */ p(i, [["render", m]]);
|
|
15
16
|
export {
|
|
16
17
|
f as default
|
|
17
18
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import h from "./SearchBar2.js";
|
|
2
|
-
import { resolveComponent as f, openBlock as r, createElementBlock as n, withModifiers as l, createElementVNode as o, createVNode as v, withKeys as
|
|
2
|
+
import { resolveComponent as f, openBlock as r, createElementBlock as n, withModifiers as l, createElementVNode as o, createVNode as v, withKeys as i, withDirectives as y, normalizeClass as p, Fragment as w, renderList as c, toDisplayString as g, vShow as S } from "vue";
|
|
3
3
|
import k from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
4
|
const M = ["for"], x = ["data-testid"], B = { class: "tw-text-base tw-py-0.5" }, I = ["data-testid", "onClick"], C = ["innerHTML"];
|
|
5
|
-
function F
|
|
5
|
+
function D(F, s, u, e, K, L) {
|
|
6
6
|
const m = f("kv-text-input");
|
|
7
7
|
return r(), n("form", {
|
|
8
8
|
class: "tw-relative",
|
|
@@ -10,11 +10,11 @@ function F(K, s, c, e, D, L) {
|
|
|
10
10
|
onSubmit: s[1] || (s[1] = l((...t) => e.onSubmit && e.onSubmit(...t), ["prevent"]))
|
|
11
11
|
}, [
|
|
12
12
|
o("label", {
|
|
13
|
-
for:
|
|
13
|
+
for: u.inputId,
|
|
14
14
|
class: "tw-sr-only"
|
|
15
15
|
}, "Search all loans", 8, M),
|
|
16
16
|
v(m, {
|
|
17
|
-
id:
|
|
17
|
+
id: u.inputId,
|
|
18
18
|
type: "search",
|
|
19
19
|
name: "queryString",
|
|
20
20
|
"data-testid": "header-basic-search-input",
|
|
@@ -27,28 +27,28 @@ function F(K, s, c, e, D, L) {
|
|
|
27
27
|
onFocus: e.onFocus,
|
|
28
28
|
onBlur: e.onBlur,
|
|
29
29
|
onKeydown: [
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
i(l(e.listUp, ["prevent"]), ["up"]),
|
|
31
|
+
i(l(e.listDown, ["prevent"]), ["down"]),
|
|
32
|
+
i(l(e.onSubmit, ["prevent"]), ["enter"])
|
|
33
33
|
]
|
|
34
34
|
}, null, 8, ["id", "icon", "model-value", "onInput", "onFocus", "onBlur", "onKeydown"]),
|
|
35
35
|
y(o("ol", {
|
|
36
|
-
class:
|
|
36
|
+
class: p(["tw-w-full tw-bg-primary tw-p-2.5 tw-border tw-border-tertiary tw-overflow-auto", u.isMobile ? "tw-mt-2" : "tw-absolute tw-z-popover tw-inset-x-0 md:tw-rounded-b"])
|
|
37
37
|
}, [
|
|
38
|
-
(r(!0), n(
|
|
38
|
+
(r(!0), n(w, null, c(e.groupedResults, (t) => (r(), n("li", {
|
|
39
39
|
key: t.group,
|
|
40
40
|
"data-testid": `header-basic-search-results-${t.group}`
|
|
41
41
|
}, [
|
|
42
42
|
o("h2", B, g(t.group), 1),
|
|
43
43
|
o("ol", null, [
|
|
44
|
-
(r(!0), n(
|
|
45
|
-
var
|
|
44
|
+
(r(!0), n(w, null, c(t.items, (a, b) => {
|
|
45
|
+
var d;
|
|
46
46
|
return r(), n("li", {
|
|
47
47
|
key: a.label
|
|
48
48
|
}, [
|
|
49
49
|
o("button", {
|
|
50
50
|
type: "button",
|
|
51
|
-
class:
|
|
51
|
+
class: p(["tw-w-full tw-text-left tw-pl-1.5 tw-py-0.5 tw-rounded-xs tw-font-medium tw-cursor-pointer hover:tw-bg-secondary hover:tw-underline", { "tw-bg-secondary tw-underline": a.label === ((d = e.highlighted) == null ? void 0 : d.label) }]),
|
|
52
52
|
"data-testid": `header-basic-search-result-item-${t.group}-${b}`,
|
|
53
53
|
onMousedown: s[0] || (s[0] = l(() => {
|
|
54
54
|
}, ["prevent"])),
|
|
@@ -67,7 +67,7 @@ function F(K, s, c, e, D, L) {
|
|
|
67
67
|
])
|
|
68
68
|
], 32);
|
|
69
69
|
}
|
|
70
|
-
const z = /* @__PURE__ */ k(h, [["render",
|
|
70
|
+
const z = /* @__PURE__ */ k(h, [["render", D]]);
|
|
71
71
|
export {
|
|
72
72
|
z as default
|
|
73
73
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { inject as
|
|
2
|
-
import { mdiMagnify as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { useTypeaheadSearch as
|
|
6
|
-
const
|
|
1
|
+
import { inject as x, ref as m, toRef as h, computed as l } from "vue";
|
|
2
|
+
import { mdiMagnify as B } from "@mdi/js";
|
|
3
|
+
import A from "../KvTextInput.js";
|
|
4
|
+
import D from "../../utils/markMatches.js";
|
|
5
|
+
import { useTypeaheadSearch as O } from "../../utils/useTypeaheadSearch.js";
|
|
6
|
+
const $ = {
|
|
7
7
|
name: "SearchBar",
|
|
8
|
-
components: { KvTextInput:
|
|
8
|
+
components: { KvTextInput: A },
|
|
9
9
|
props: {
|
|
10
10
|
searchSuggestions: {
|
|
11
11
|
type: Array,
|
|
@@ -18,67 +18,73 @@ const q = {
|
|
|
18
18
|
isMobile: {
|
|
19
19
|
type: Boolean,
|
|
20
20
|
default: !1
|
|
21
|
+
},
|
|
22
|
+
/**
|
|
23
|
+
* Id for the search input and its label's `for` attribute. Must be unique per instance.
|
|
24
|
+
*/
|
|
25
|
+
inputId: {
|
|
26
|
+
type: String,
|
|
27
|
+
default: "kv-www-header-basic-search"
|
|
21
28
|
}
|
|
22
29
|
},
|
|
23
30
|
emits: ["load-search-data", "search-submit"],
|
|
24
31
|
setup(i, { emit: c }) {
|
|
25
|
-
const v =
|
|
26
|
-
}),
|
|
32
|
+
const v = x("$kvTrackEvent", () => {
|
|
33
|
+
}), n = m(!1), f = m(!1), {
|
|
27
34
|
term: t,
|
|
28
|
-
groupedResults:
|
|
35
|
+
groupedResults: r,
|
|
29
36
|
activeIndex: a,
|
|
30
|
-
resolveSubmit:
|
|
31
|
-
} =
|
|
37
|
+
resolveSubmit: d
|
|
38
|
+
} = O(h(i, "searchSuggestions"), h(i, "appOrigin")), o = l(() => r.value.flatMap((e) => e.items)), u = l(() => a.value > -1 ? o.value[a.value] : void 0), g = l(() => {
|
|
32
39
|
var e;
|
|
33
40
|
return ((e = u.value) == null ? void 0 : e.label) ?? t.value;
|
|
34
|
-
}),
|
|
41
|
+
}), y = l(() => r.value.length > 0 && n.value);
|
|
35
42
|
function S(e) {
|
|
36
43
|
t.value = e;
|
|
37
44
|
}
|
|
38
|
-
function
|
|
45
|
+
function b() {
|
|
39
46
|
n.value = !0, f.value || (c("load-search-data"), f.value = !0), v("search", "focus");
|
|
40
47
|
}
|
|
41
|
-
function
|
|
48
|
+
function w() {
|
|
42
49
|
n.value = !1, a.value = -1;
|
|
43
50
|
}
|
|
44
51
|
function s(e) {
|
|
45
|
-
const p =
|
|
52
|
+
const p = d(e);
|
|
46
53
|
v("search", "click", p.suggestion ? "type-ahead-search" : "custom-search-option"), c("search-submit", p);
|
|
47
54
|
}
|
|
48
|
-
function
|
|
55
|
+
function I(e) {
|
|
49
56
|
s(e);
|
|
50
57
|
}
|
|
51
|
-
function
|
|
58
|
+
function R() {
|
|
52
59
|
u.value ? s(u.value) : s(t.value);
|
|
53
60
|
}
|
|
54
|
-
function
|
|
55
|
-
a.value += 1, a.value >=
|
|
61
|
+
function k() {
|
|
62
|
+
a.value += 1, a.value >= o.value.length && (a.value = -1);
|
|
56
63
|
}
|
|
57
|
-
function
|
|
58
|
-
a.value === -1 && (a.value =
|
|
64
|
+
function M() {
|
|
65
|
+
a.value === -1 && (a.value = o.value.length), a.value -= 1;
|
|
59
66
|
}
|
|
60
|
-
function
|
|
61
|
-
return
|
|
67
|
+
function T(e) {
|
|
68
|
+
return D(e.label, e.matches);
|
|
62
69
|
}
|
|
63
70
|
return {
|
|
64
|
-
mdiMagnify:
|
|
65
|
-
inputId: d,
|
|
71
|
+
mdiMagnify: B,
|
|
66
72
|
term: t,
|
|
67
|
-
displayTerm:
|
|
68
|
-
groupedResults:
|
|
73
|
+
displayTerm: g,
|
|
74
|
+
groupedResults: r,
|
|
69
75
|
highlighted: u,
|
|
70
|
-
showResults:
|
|
76
|
+
showResults: y,
|
|
71
77
|
onInput: S,
|
|
72
|
-
onFocus:
|
|
73
|
-
onBlur:
|
|
74
|
-
onSubmit:
|
|
75
|
-
runSearch:
|
|
76
|
-
listUp:
|
|
77
|
-
listDown:
|
|
78
|
-
formatResult:
|
|
78
|
+
onFocus: b,
|
|
79
|
+
onBlur: w,
|
|
80
|
+
onSubmit: R,
|
|
81
|
+
runSearch: I,
|
|
82
|
+
listUp: M,
|
|
83
|
+
listDown: k,
|
|
84
|
+
formatResult: T
|
|
79
85
|
};
|
|
80
86
|
}
|
|
81
87
|
};
|
|
82
88
|
export {
|
|
83
|
-
|
|
89
|
+
$ as default
|
|
84
90
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kiva/kv-shop",
|
|
3
|
-
"version": "3.8.
|
|
3
|
+
"version": "3.8.24",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@apollo/client": "^3.13.1",
|
|
36
36
|
"@kiva/kv-analytics": "^1.4.0",
|
|
37
|
-
"@kiva/kv-components": "^9.
|
|
37
|
+
"@kiva/kv-components": "^9.2.0",
|
|
38
38
|
"@kiva/vite-plugin-vue-lib-css": "^2.0.0",
|
|
39
39
|
"@types/braintree-web-drop-in": "^1.39.3",
|
|
40
40
|
"braintree-web-drop-in": "^1.44.1",
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
"numeral": "2.x",
|
|
50
50
|
"vue": "3.x"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "2404a1d7fe3ab1021c8080cafb05a7952b40a3c5"
|
|
53
53
|
}
|