@m2s2/vue-lib 2.0.0 → 2.1.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/dist/index.cjs +1 -1
- package/dist/index.mjs +29 -26
- package/dist/index10.cjs +1 -1
- package/dist/index10.mjs +8 -16
- package/dist/index12.cjs +1 -1
- package/dist/index12.mjs +15 -19
- package/dist/index14.cjs +1 -1
- package/dist/index14.mjs +20 -27
- package/dist/index16.cjs +1 -1
- package/dist/index16.mjs +28 -262
- package/dist/index18.cjs +1 -1
- package/dist/index18.mjs +263 -13
- package/dist/index2.cjs +1 -1
- package/dist/index2.mjs +250 -11
- package/dist/index20.cjs +1 -1
- package/dist/index20.mjs +13 -38
- package/dist/index22.cjs +1 -1
- package/dist/index22.mjs +35 -49
- package/dist/index24.cjs +1 -1
- package/dist/index24.mjs +47 -78
- package/dist/index26.cjs +1 -1
- package/dist/index26.mjs +78 -101
- package/dist/index28.cjs +1 -1
- package/dist/index28.mjs +101 -63
- package/dist/index30.cjs +1 -1
- package/dist/index30.mjs +52 -65
- package/dist/index32.cjs +1 -1
- package/dist/index32.mjs +85 -3
- package/dist/index34.cjs +1 -1
- package/dist/index34.mjs +1 -1
- package/dist/index35.cjs +1 -1
- package/dist/index35.mjs +1 -1
- package/dist/index36.cjs +1 -1
- package/dist/index36.mjs +2 -2
- package/dist/index37.cjs +1 -1
- package/dist/index37.mjs +2 -2
- package/dist/index38.cjs +1 -1
- package/dist/index38.mjs +1 -1
- package/dist/index39.cjs +1 -1
- package/dist/index39.mjs +1 -1
- package/dist/index4.cjs +1 -1
- package/dist/index4.mjs +11 -19
- package/dist/index40.cjs +1 -1
- package/dist/index40.mjs +1 -1
- package/dist/index41.cjs +1 -1
- package/dist/index41.mjs +1 -1
- package/dist/index42.cjs +1 -1
- package/dist/index42.mjs +1 -1
- package/dist/index43.cjs +1 -1
- package/dist/index43.mjs +1 -1
- package/dist/index44.cjs +1 -1
- package/dist/index44.mjs +1 -1
- package/dist/index45.cjs +1 -1
- package/dist/index45.mjs +1 -1
- package/dist/index46.cjs +1 -1
- package/dist/index46.mjs +1 -1
- package/dist/index47.cjs +1 -1
- package/dist/index47.mjs +3 -51
- package/dist/index48.cjs +1 -1
- package/dist/index48.mjs +3 -2
- package/dist/index49.cjs +1 -0
- package/dist/index49.mjs +5 -0
- package/dist/index50.cjs +1 -0
- package/dist/index50.mjs +53 -0
- package/dist/index51.cjs +1 -0
- package/dist/index51.mjs +4 -0
- package/dist/index6.cjs +1 -1
- package/dist/index6.mjs +21 -15
- package/dist/index8.cjs +1 -1
- package/dist/index8.mjs +15 -10
- package/dist/vue-lib/src/components/Chat/Chat.vue.d.ts +22 -0
- package/dist/vue-lib/src/components/Chat/Chat.vue.d.ts.map +1 -0
- package/dist/vue-lib/src/index.d.ts +1 -0
- package/dist/vue-lib/src/index.d.ts.map +1 -1
- package/dist/vue-lib.css +1 -1
- package/package.json +5 -5
- package/dist/index33.cjs +0 -1
- package/dist/index33.mjs +0 -5
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index2.cjs");;/* empty css */const r=require("./index4.cjs");;/* empty css */const _=require("./index6.cjs");;/* empty css */const t=require("./index8.cjs");;/* empty css */const u=require("./index10.cjs");;/* empty css */const s=require("./index12.cjs");;/* empty css */const i=require("./index14.cjs");;/* empty css */const a=require("./index16.cjs");;/* empty css */const p=require("./index18.cjs");;/* empty css */const c=require("./index20.cjs");;/* empty css */const n=require("./index22.cjs");;/* empty css */const o=require("./index24.cjs");;/* empty css */const v=require("./index26.cjs");;/* empty css */const q=require("./index28.cjs");;/* empty css */const l=require("./index30.cjs");;/* empty css */exports.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index2.cjs");;/* empty css */const r=require("./index4.cjs");;/* empty css */const _=require("./index6.cjs");;/* empty css */const t=require("./index8.cjs");;/* empty css */const u=require("./index10.cjs");;/* empty css */const s=require("./index12.cjs");;/* empty css */const i=require("./index14.cjs");;/* empty css */const a=require("./index16.cjs");;/* empty css */const p=require("./index18.cjs");;/* empty css */const c=require("./index20.cjs");;/* empty css */const n=require("./index22.cjs");;/* empty css */const o=require("./index24.cjs");;/* empty css */const v=require("./index26.cjs");;/* empty css */const q=require("./index28.cjs");;/* empty css */const l=require("./index30.cjs");;/* empty css */const g=require("./index32.cjs");;/* empty css */exports.Chat=e;exports.SectionHeader=r;exports.StatRow=_;exports.StatusBadge=t;exports.PageHeader=u;exports.CtaSection=s;exports.ProcessSteps=i;exports.Footer=a;exports.Navbar=p;exports.BaseCard=c;exports.FeatureCard=n;exports.BlogCard=o;exports.DataTable=v;exports.SubscribeForm=q;exports.Dialog=l;exports.Panel=g;
|
package/dist/index.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { default as g } from "./index2.mjs";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import { default as
|
|
3
|
+
import { default as B } from "./index4.mjs";
|
|
4
4
|
/* empty css */
|
|
5
|
-
import { default as
|
|
5
|
+
import { default as P } from "./index6.mjs";
|
|
6
6
|
/* empty css */
|
|
7
|
-
import { default as
|
|
7
|
+
import { default as H } from "./index8.mjs";
|
|
8
8
|
/* empty css */
|
|
9
9
|
import { default as v } from "./index10.mjs";
|
|
10
10
|
/* empty css */
|
|
@@ -12,36 +12,39 @@ import { default as N } from "./index12.mjs";
|
|
|
12
12
|
/* empty css */
|
|
13
13
|
import { default as T } from "./index14.mjs";
|
|
14
14
|
/* empty css */
|
|
15
|
-
import { default as
|
|
15
|
+
import { default as k } from "./index16.mjs";
|
|
16
16
|
/* empty css */
|
|
17
|
-
import { default as
|
|
17
|
+
import { default as y } from "./index18.mjs";
|
|
18
18
|
/* empty css */
|
|
19
|
-
import { default as
|
|
19
|
+
import { default as A } from "./index20.mjs";
|
|
20
20
|
/* empty css */
|
|
21
|
-
import { default as
|
|
21
|
+
import { default as G } from "./index22.mjs";
|
|
22
22
|
/* empty css */
|
|
23
|
-
import { default as
|
|
23
|
+
import { default as J } from "./index24.mjs";
|
|
24
24
|
/* empty css */
|
|
25
|
-
import { default as
|
|
25
|
+
import { default as L } from "./index26.mjs";
|
|
26
26
|
/* empty css */
|
|
27
|
-
import { default as
|
|
27
|
+
import { default as O } from "./index28.mjs";
|
|
28
28
|
/* empty css */
|
|
29
|
-
import { default as
|
|
29
|
+
import { default as U } from "./index30.mjs";
|
|
30
|
+
/* empty css */
|
|
31
|
+
import { default as W } from "./index32.mjs";
|
|
30
32
|
/* empty css */
|
|
31
33
|
export {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
34
|
+
A as BaseCard,
|
|
35
|
+
J as BlogCard,
|
|
36
|
+
g as Chat,
|
|
37
|
+
N as CtaSection,
|
|
38
|
+
L as DataTable,
|
|
39
|
+
U as Dialog,
|
|
40
|
+
G as FeatureCard,
|
|
41
|
+
k as Footer,
|
|
42
|
+
y as Navbar,
|
|
43
|
+
v as PageHeader,
|
|
44
|
+
W as Panel,
|
|
45
|
+
T as ProcessSteps,
|
|
46
|
+
B as SectionHeader,
|
|
47
|
+
P as StatRow,
|
|
48
|
+
H as StatusBadge,
|
|
49
|
+
O as SubscribeForm
|
|
47
50
|
};
|
package/dist/index10.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),
|
|
1
|
+
"use strict";const e=require("vue"),s={class:"m2s2-page-header"},c={class:"page-title"},n={class:"page-subtitle"},o=e.defineComponent({__name:"PageHeader",props:{config:{}},setup(t){return(a,i)=>(e.openBlock(),e.createElementBlock("header",s,[e.createElementVNode("h1",c,e.toDisplayString(t.config.title),1),e.createElementVNode("p",n,e.toDisplayString(t.config.subtitle),1)]))}});module.exports=o;
|
package/dist/index10.mjs
CHANGED
|
@@ -1,24 +1,16 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const
|
|
3
|
-
__name: "
|
|
1
|
+
import { defineComponent as s, openBlock as a, createElementBlock as c, createElementVNode as t, toDisplayString as o } from "vue";
|
|
2
|
+
const n = { class: "m2s2-page-header" }, i = { class: "page-title" }, l = { class: "page-subtitle" }, d = /* @__PURE__ */ s({
|
|
3
|
+
__name: "PageHeader",
|
|
4
4
|
props: {
|
|
5
5
|
config: {}
|
|
6
6
|
},
|
|
7
|
-
setup(
|
|
8
|
-
return (
|
|
9
|
-
t("
|
|
10
|
-
|
|
11
|
-
t("h2", d, e(c.config.title), 1),
|
|
12
|
-
t("p", r, e(c.config.body), 1)
|
|
13
|
-
]),
|
|
14
|
-
t("a", {
|
|
15
|
-
href: c.config.route,
|
|
16
|
-
class: "cta-btn"
|
|
17
|
-
}, e(c.config.label), 9, _)
|
|
18
|
-
])
|
|
7
|
+
setup(e) {
|
|
8
|
+
return (r, p) => (a(), c("header", n, [
|
|
9
|
+
t("h1", i, o(e.config.title), 1),
|
|
10
|
+
t("p", l, o(e.config.subtitle), 1)
|
|
19
11
|
]));
|
|
20
12
|
}
|
|
21
13
|
});
|
|
22
14
|
export {
|
|
23
|
-
|
|
15
|
+
d as default
|
|
24
16
|
};
|
package/dist/index12.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),
|
|
1
|
+
"use strict";const e=require("vue"),c={class:"m2s2-cta-section"},o={class:"cta-card"},s={class:"cta-text"},n={class:"cta-title"},a={class:"cta-body"},i=["href"],l=e.defineComponent({__name:"CtaSection",props:{config:{}},setup(t){return(r,d)=>(e.openBlock(),e.createElementBlock("section",c,[e.createElementVNode("div",o,[e.createElementVNode("div",s,[e.createElementVNode("h2",n,e.toDisplayString(t.config.title),1),e.createElementVNode("p",a,e.toDisplayString(t.config.body),1)]),e.createElementVNode("a",{href:t.config.route,class:"cta-btn"},e.toDisplayString(t.config.label),9,i)])]))}});module.exports=l;
|
package/dist/index12.mjs
CHANGED
|
@@ -1,28 +1,24 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const
|
|
3
|
-
|
|
4
|
-
class: "ps-divider",
|
|
5
|
-
"aria-hidden": "true"
|
|
6
|
-
}, x = /* @__PURE__ */ i({
|
|
7
|
-
__name: "ProcessSteps",
|
|
1
|
+
import { defineComponent as o, openBlock as s, createElementBlock as n, createElementVNode as t, toDisplayString as e } from "vue";
|
|
2
|
+
const a = { class: "m2s2-cta-section" }, i = { class: "cta-card" }, l = { class: "cta-text" }, d = { class: "cta-title" }, r = { class: "cta-body" }, _ = ["href"], g = /* @__PURE__ */ o({
|
|
3
|
+
__name: "CtaSection",
|
|
8
4
|
props: {
|
|
9
|
-
|
|
5
|
+
config: {}
|
|
10
6
|
},
|
|
11
7
|
setup(c) {
|
|
12
|
-
return (
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
n("span", m, o(e.num), 1),
|
|
18
|
-
n("span", u, o(e.name), 1),
|
|
19
|
-
n("span", h, o(e.desc), 1)
|
|
8
|
+
return (f, h) => (s(), n("section", a, [
|
|
9
|
+
t("div", i, [
|
|
10
|
+
t("div", l, [
|
|
11
|
+
t("h2", d, e(c.config.title), 1),
|
|
12
|
+
t("p", r, e(c.config.body), 1)
|
|
20
13
|
]),
|
|
21
|
-
|
|
22
|
-
|
|
14
|
+
t("a", {
|
|
15
|
+
href: c.config.route,
|
|
16
|
+
class: "cta-btn"
|
|
17
|
+
}, e(c.config.label), 9, _)
|
|
18
|
+
])
|
|
23
19
|
]));
|
|
24
20
|
}
|
|
25
21
|
});
|
|
26
22
|
export {
|
|
27
|
-
|
|
23
|
+
g as default
|
|
28
24
|
};
|
package/dist/index14.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),
|
|
1
|
+
"use strict";const e=require("vue"),o={class:"ps-steps"},c={class:"ps-step"},r={class:"ps-num"},l={class:"ps-name"},a={class:"ps-desc"},i={key:0,class:"ps-divider","aria-hidden":"true"},p=e.defineComponent({__name:"ProcessSteps",props:{steps:{}},setup(s){return(m,d)=>(e.openBlock(),e.createElementBlock("ol",o,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.steps,(t,n)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:t.num},[e.createElementVNode("li",c,[e.createElementVNode("span",r,e.toDisplayString(t.num),1),e.createElementVNode("span",l,e.toDisplayString(t.name),1),e.createElementVNode("span",a,e.toDisplayString(t.desc),1)]),n<s.steps.length-1?(e.openBlock(),e.createElementBlock("li",i,"→")):e.createCommentVNode("",!0)],64))),128))]))}});module.exports=p;
|
package/dist/index14.mjs
CHANGED
|
@@ -1,32 +1,25 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
class: "
|
|
5
|
-
"aria-
|
|
6
|
-
},
|
|
7
|
-
__name: "
|
|
1
|
+
import { defineComponent as i, openBlock as s, createElementBlock as t, Fragment as a, renderList as l, createElementVNode as n, toDisplayString as o, createCommentVNode as p } from "vue";
|
|
2
|
+
const d = { class: "ps-steps" }, _ = { class: "ps-step" }, m = { class: "ps-num" }, u = { class: "ps-name" }, h = { class: "ps-desc" }, f = {
|
|
3
|
+
key: 0,
|
|
4
|
+
class: "ps-divider",
|
|
5
|
+
"aria-hidden": "true"
|
|
6
|
+
}, x = /* @__PURE__ */ i({
|
|
7
|
+
__name: "ProcessSteps",
|
|
8
8
|
props: {
|
|
9
|
-
|
|
9
|
+
steps: {}
|
|
10
10
|
},
|
|
11
|
-
setup(
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
(
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}, { ref_for: !0 }, e.type !== "email" ? { target: "_blank", rel: "noopener noreferrer" } : {}), [
|
|
24
|
-
_(m, {
|
|
25
|
-
type: e.type
|
|
26
|
-
}, null, 8, ["type"])
|
|
27
|
-
], 16, g))), 128))
|
|
28
|
-
])
|
|
29
|
-
])
|
|
11
|
+
setup(c) {
|
|
12
|
+
return (k, g) => (s(), t("ol", d, [
|
|
13
|
+
(s(!0), t(a, null, l(c.steps, (e, r) => (s(), t(a, {
|
|
14
|
+
key: e.num
|
|
15
|
+
}, [
|
|
16
|
+
n("li", _, [
|
|
17
|
+
n("span", m, o(e.num), 1),
|
|
18
|
+
n("span", u, o(e.name), 1),
|
|
19
|
+
n("span", h, o(e.desc), 1)
|
|
20
|
+
]),
|
|
21
|
+
r < c.steps.length - 1 ? (s(), t("li", f, "→")) : p("", !0)
|
|
22
|
+
], 64))), 128))
|
|
30
23
|
]));
|
|
31
24
|
}
|
|
32
25
|
});
|
package/dist/index16.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),
|
|
1
|
+
"use strict";const e=require("vue"),a=require("./index50.cjs"),n={class:"m2s2-footer"},l={class:"footer-inner"},s={class:"footer-copy"},c={class:"footer-social","aria-label":"Social links"},i=["href","title","aria-label"],_=e.defineComponent({__name:"Footer",props:{config:{}},setup(o){const r=new Date().getFullYear();return(p,u)=>(e.openBlock(),e.createElementBlock("footer",n,[e.createElementVNode("div",l,[e.createElementVNode("span",s," © "+e.toDisplayString(e.unref(r))+" "+e.toDisplayString(o.config.brandName)+" — All Rights Reserved ",1),e.createElementVNode("nav",c,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.config.links,t=>(e.openBlock(),e.createElementBlock("a",e.mergeProps({key:t.type,href:t.href,class:"social-link",title:t.label??t.type,"aria-label":t.label??t.type},{ref_for:!0},t.type!=="email"?{target:"_blank",rel:"noopener noreferrer"}:{}),[e.createVNode(a,{type:t.type},null,8,["type"])],16,i))),128))])])]))}});module.exports=_;
|
package/dist/index16.mjs
CHANGED
|
@@ -1,269 +1,35 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
class: "
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}, F = ["href"], O = {
|
|
9
|
-
key: 1,
|
|
10
|
-
class: "navbar-dropdown-wrap"
|
|
11
|
-
}, Y = ["aria-expanded", "onClick"], q = {
|
|
12
|
-
key: 0,
|
|
13
|
-
class: "navbar-dropdown-content"
|
|
14
|
-
}, R = ["href"], T = ["src", "alt"], j = ["onClick"], G = ["src", "alt"], H = {
|
|
15
|
-
key: 0,
|
|
16
|
-
class: "navbar-dropdown-wrap"
|
|
17
|
-
}, J = ["aria-expanded"], K = ["src"], Q = {
|
|
18
|
-
key: 1,
|
|
19
|
-
class: "navbar-account-icon",
|
|
20
|
-
viewBox: "0 0 24 24",
|
|
21
|
-
fill: "currentColor",
|
|
22
|
-
"aria-hidden": "true"
|
|
23
|
-
}, X = {
|
|
24
|
-
key: 0,
|
|
25
|
-
class: "navbar-dropdown-content"
|
|
26
|
-
}, Z = {
|
|
27
|
-
key: 0,
|
|
28
|
-
class: "navbar-dropdown-user"
|
|
29
|
-
}, ee = ["href"], ne = ["src", "alt"], oe = ["onClick"], re = ["src", "alt"], ae = ["aria-label", "aria-expanded"], te = {
|
|
30
|
-
key: 0,
|
|
31
|
-
class: "navbar-mobile-menu",
|
|
32
|
-
"aria-label": "Mobile navigation"
|
|
33
|
-
}, le = ["href"], se = ["href"], ie = ["onClick"], ce = ["href"], de = ["onClick"], fe = /* @__PURE__ */ z({
|
|
34
|
-
__name: "Navbar",
|
|
1
|
+
import { defineComponent as l, openBlock as t, createElementBlock as o, createElementVNode as r, toDisplayString as s, unref as c, Fragment as i, renderList as f, mergeProps as p, createVNode as _ } from "vue";
|
|
2
|
+
import m from "./index50.mjs";
|
|
3
|
+
const d = { class: "m2s2-footer" }, u = { class: "footer-inner" }, y = { class: "footer-copy" }, h = {
|
|
4
|
+
class: "footer-social",
|
|
5
|
+
"aria-label": "Social links"
|
|
6
|
+
}, g = ["href", "title", "aria-label"], x = /* @__PURE__ */ l({
|
|
7
|
+
__name: "Footer",
|
|
35
8
|
props: {
|
|
36
|
-
config: {}
|
|
37
|
-
loggedIn: { type: Boolean, default: !1 }
|
|
9
|
+
config: {}
|
|
38
10
|
},
|
|
39
|
-
setup(
|
|
40
|
-
const
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
function C(l) {
|
|
48
|
-
return "onClick" in l;
|
|
49
|
-
}
|
|
50
|
-
function S(l) {
|
|
51
|
-
f.value = f.value === l ? null : l;
|
|
52
|
-
}
|
|
53
|
-
function b() {
|
|
54
|
-
f.value = null;
|
|
55
|
-
}
|
|
56
|
-
function B() {
|
|
57
|
-
const l = window.scrollY, a = l - m.value;
|
|
58
|
-
x.value = l > 80, l < 80 ? y.value = !1 : a > 4 ? y.value = !0 : a < -4 && (y.value = !1), m.value = l;
|
|
59
|
-
}
|
|
60
|
-
function I() {
|
|
61
|
-
window.innerWidth > 991 && (d.value = !1);
|
|
62
|
-
}
|
|
63
|
-
function L(l) {
|
|
64
|
-
l.target.closest(".navbar-dropdown-wrap") || b();
|
|
65
|
-
}
|
|
66
|
-
return N(() => {
|
|
67
|
-
window.addEventListener("scroll", B, { passive: !0 }), window.addEventListener("resize", I), document.addEventListener("click", L);
|
|
68
|
-
}), W(() => {
|
|
69
|
-
window.removeEventListener("scroll", B), window.removeEventListener("resize", I), document.removeEventListener("click", L);
|
|
70
|
-
}), (l, a) => (n(), o(i, null, [
|
|
71
|
-
u("header", {
|
|
72
|
-
class: E(["navbar", {
|
|
73
|
-
"navbar--scrolled": x.value,
|
|
74
|
-
"navbar--hidden": y.value,
|
|
75
|
-
"navbar--fixed": t.config.isFixed
|
|
76
|
-
}])
|
|
77
|
-
}, [
|
|
78
|
-
u("a", {
|
|
79
|
-
class: "navbar-brand",
|
|
80
|
-
href: t.config.brandPath
|
|
81
|
-
}, [
|
|
82
|
-
t.config.brandLogo ? (n(), o("img", {
|
|
83
|
-
key: 0,
|
|
84
|
-
src: t.config.brandLogo,
|
|
85
|
-
alt: t.config.brand,
|
|
86
|
-
class: "navbar-brand-logo"
|
|
87
|
-
}, null, 8, A)) : (n(), o("span", P, c(t.config.brand), 1))
|
|
88
|
-
], 8, V),
|
|
89
|
-
a[7] || (a[7] = u("span", { class: "navbar-spacer" }, null, -1)),
|
|
90
|
-
u("nav", U, [
|
|
91
|
-
(n(!0), o(i, null, k(t.config.buttons, (e) => {
|
|
92
|
-
var g;
|
|
93
|
-
return n(), o(i, {
|
|
94
|
-
key: e.id
|
|
95
|
-
}, [
|
|
96
|
-
v(e) ? (n(), o(i, { key: 0 }, [
|
|
97
|
-
e.isDropdown ? (n(), o("div", O, [
|
|
98
|
-
u("button", {
|
|
99
|
-
class: "navbar-nav-btn navbar-nav-btn--dropdown",
|
|
100
|
-
"aria-expanded": f.value === e.id,
|
|
101
|
-
onClick: D((r) => S(e.id), ["stop"])
|
|
102
|
-
}, [
|
|
103
|
-
p(c(e.title) + " ", 1),
|
|
104
|
-
a[5] || (a[5] = u("span", {
|
|
105
|
-
class: "navbar-chevron",
|
|
106
|
-
"aria-hidden": "true"
|
|
107
|
-
}, "▾", -1))
|
|
108
|
-
], 8, Y),
|
|
109
|
-
f.value === e.id ? (n(), o("div", q, [
|
|
110
|
-
(n(!0), o(i, null, k(e.dropdownItems, (r) => (n(), o(i, {
|
|
111
|
-
key: r.id
|
|
112
|
-
}, [
|
|
113
|
-
_(r) ? (n(), o("a", w({
|
|
114
|
-
key: 0,
|
|
115
|
-
class: "navbar-dropdown-item",
|
|
116
|
-
href: r.href
|
|
117
|
-
}, { ref_for: !0 }, r.href.startsWith("http") ? { target: "_blank", rel: "noopener noreferrer" } : {}, { onClick: b }), [
|
|
118
|
-
r.imgSrc ? (n(), o("img", {
|
|
119
|
-
key: 0,
|
|
120
|
-
src: r.imgSrc,
|
|
121
|
-
alt: r.text,
|
|
122
|
-
class: "navbar-dropdown-img"
|
|
123
|
-
}, null, 8, T)) : s("", !0),
|
|
124
|
-
p(" " + c(r.text), 1)
|
|
125
|
-
], 16, R)) : C(r) ? (n(), o("button", {
|
|
126
|
-
key: 1,
|
|
127
|
-
class: "navbar-dropdown-item",
|
|
128
|
-
onClick: () => {
|
|
129
|
-
r.onClick(), b();
|
|
130
|
-
}
|
|
131
|
-
}, [
|
|
132
|
-
r.imgSrc ? (n(), o("img", {
|
|
133
|
-
key: 0,
|
|
134
|
-
src: r.imgSrc,
|
|
135
|
-
alt: r.text,
|
|
136
|
-
class: "navbar-dropdown-img"
|
|
137
|
-
}, null, 8, G)) : s("", !0),
|
|
138
|
-
p(" " + c(r.text), 1)
|
|
139
|
-
], 8, j)) : s("", !0)
|
|
140
|
-
], 64))), 128))
|
|
141
|
-
])) : s("", !0)
|
|
142
|
-
])) : (n(), o("a", w({
|
|
143
|
-
key: 0,
|
|
144
|
-
class: "navbar-nav-btn",
|
|
145
|
-
href: e.href
|
|
146
|
-
}, { ref_for: !0 }, (g = e.href) != null && g.startsWith("http") ? { target: "_blank", rel: "noopener noreferrer" } : {}), c(e.title), 17, F))
|
|
147
|
-
], 64)) : s("", !0)
|
|
148
|
-
], 64);
|
|
149
|
-
}), 128))
|
|
150
|
-
]),
|
|
151
|
-
t.config.loginButton ? (n(), o("div", H, [
|
|
152
|
-
u("button", {
|
|
153
|
-
class: "navbar-icon-btn",
|
|
154
|
-
"aria-label": "Account menu",
|
|
155
|
-
"aria-expanded": f.value === "__account__",
|
|
156
|
-
onClick: a[0] || (a[0] = D((e) => S("__account__"), ["stop"]))
|
|
157
|
-
}, [
|
|
158
|
-
t.config.loginButton.profileImageUrl ? (n(), o("img", {
|
|
159
|
-
key: 0,
|
|
160
|
-
src: t.config.loginButton.profileImageUrl,
|
|
161
|
-
alt: "Profile",
|
|
162
|
-
class: "navbar-avatar"
|
|
163
|
-
}, null, 8, K)) : (n(), o("svg", Q, [...a[6] || (a[6] = [
|
|
164
|
-
u("path", { d: "M12 12c2.7 0 4.8-2.1 4.8-4.8S14.7 2.4 12 2.4 7.2 4.5 7.2 7.2 9.3 12 12 12zm0 2.4c-3.2 0-9.6 1.6-9.6 4.8v2.4h19.2v-2.4c0-3.2-6.4-4.8-9.6-4.8z" }, null, -1)
|
|
165
|
-
])]))
|
|
166
|
-
], 8, J),
|
|
167
|
-
f.value === "__account__" ? (n(), o("div", X, [
|
|
168
|
-
t.config.loginButton.userName && t.loggedIn ? (n(), o("div", Z, c(t.config.loginButton.userName), 1)) : s("", !0),
|
|
169
|
-
(n(!0), o(i, null, k(t.config.loginButton.dropdownItems, (e) => (n(), o(i, {
|
|
170
|
-
key: e.id
|
|
171
|
-
}, [
|
|
172
|
-
_(e) && v(e) ? (n(), o("a", w({
|
|
173
|
-
key: 0,
|
|
174
|
-
class: "navbar-dropdown-item",
|
|
175
|
-
href: e.href
|
|
176
|
-
}, { ref_for: !0 }, e.href.startsWith("http") ? { target: "_blank", rel: "noopener noreferrer" } : {}, { onClick: b }), [
|
|
177
|
-
e.imgSrc ? (n(), o("img", {
|
|
178
|
-
key: 0,
|
|
179
|
-
src: e.imgSrc,
|
|
180
|
-
alt: e.text,
|
|
181
|
-
class: "navbar-dropdown-img"
|
|
182
|
-
}, null, 8, ne)) : s("", !0),
|
|
183
|
-
p(" " + c(e.text), 1)
|
|
184
|
-
], 16, ee)) : C(e) && v(e) ? (n(), o("button", {
|
|
185
|
-
key: 1,
|
|
186
|
-
class: "navbar-dropdown-item",
|
|
187
|
-
onClick: () => {
|
|
188
|
-
e.onClick(), b();
|
|
189
|
-
}
|
|
190
|
-
}, [
|
|
191
|
-
e.imgSrc ? (n(), o("img", {
|
|
192
|
-
key: 0,
|
|
193
|
-
src: e.imgSrc,
|
|
194
|
-
alt: e.text,
|
|
195
|
-
class: "navbar-dropdown-img"
|
|
196
|
-
}, null, 8, re)) : s("", !0),
|
|
197
|
-
p(" " + c(e.text), 1)
|
|
198
|
-
], 8, oe)) : s("", !0)
|
|
199
|
-
], 64))), 128))
|
|
200
|
-
])) : s("", !0)
|
|
201
|
-
])) : s("", !0),
|
|
202
|
-
M(l.$slots, "default"),
|
|
203
|
-
u("button", {
|
|
204
|
-
class: "navbar-mobile-btn",
|
|
205
|
-
"aria-label": d.value ? "Close navigation menu" : "Open navigation menu",
|
|
206
|
-
"aria-expanded": d.value,
|
|
207
|
-
onClick: a[1] || (a[1] = (e) => d.value = !d.value)
|
|
208
|
-
}, [
|
|
209
|
-
u("span", {
|
|
210
|
-
class: E(["navbar-hamburger", { "navbar-hamburger--open": d.value }])
|
|
211
|
-
}, null, 2)
|
|
212
|
-
], 8, ae)
|
|
213
|
-
], 2),
|
|
214
|
-
d.value ? (n(), o("nav", te, [
|
|
215
|
-
(n(!0), o(i, null, k(t.config.buttons, (e) => {
|
|
216
|
-
var g;
|
|
217
|
-
return n(), o(i, {
|
|
218
|
-
key: e.id
|
|
219
|
-
}, [
|
|
220
|
-
v(e) ? (n(), o(i, { key: 0 }, [
|
|
221
|
-
e.isDropdown ? (n(!0), o(i, { key: 1 }, k(e.dropdownItems, (r) => (n(), o(i, {
|
|
222
|
-
key: r.id
|
|
223
|
-
}, [
|
|
224
|
-
_(r) && v(r) ? (n(), o("a", w({
|
|
225
|
-
key: 0,
|
|
226
|
-
class: "navbar-mobile-link",
|
|
227
|
-
href: r.href
|
|
228
|
-
}, { ref_for: !0 }, r.href.startsWith("http") ? { target: "_blank", rel: "noopener noreferrer" } : {}, {
|
|
229
|
-
onClick: a[3] || (a[3] = (ue) => d.value = !1)
|
|
230
|
-
}), c(r.text), 17, se)) : C(r) && v(r) ? (n(), o("button", {
|
|
231
|
-
key: 1,
|
|
232
|
-
class: "navbar-mobile-link",
|
|
233
|
-
onClick: () => {
|
|
234
|
-
r.onClick(), d.value = !1;
|
|
235
|
-
}
|
|
236
|
-
}, c(r.text), 9, ie)) : s("", !0)
|
|
237
|
-
], 64))), 128)) : (n(), o("a", w({
|
|
238
|
-
key: 0,
|
|
239
|
-
class: "navbar-mobile-link",
|
|
240
|
-
href: e.href
|
|
241
|
-
}, { ref_for: !0 }, (g = e.href) != null && g.startsWith("http") ? { target: "_blank", rel: "noopener noreferrer" } : {}, {
|
|
242
|
-
onClick: a[2] || (a[2] = (r) => d.value = !1)
|
|
243
|
-
}), c(e.title), 17, le))
|
|
244
|
-
], 64)) : s("", !0)
|
|
245
|
-
], 64);
|
|
246
|
-
}), 128)),
|
|
247
|
-
t.config.loginButton ? (n(!0), o(i, { key: 0 }, k(t.config.loginButton.dropdownItems, (e) => (n(), o(i, {
|
|
248
|
-
key: e.id
|
|
249
|
-
}, [
|
|
250
|
-
_(e) && v(e) ? (n(), o("a", {
|
|
251
|
-
key: 0,
|
|
252
|
-
class: "navbar-mobile-link",
|
|
11
|
+
setup(a) {
|
|
12
|
+
const n = (/* @__PURE__ */ new Date()).getFullYear();
|
|
13
|
+
return (b, v) => (t(), o("footer", d, [
|
|
14
|
+
r("div", u, [
|
|
15
|
+
r("span", y, " © " + s(c(n)) + " " + s(a.config.brandName) + " — All Rights Reserved ", 1),
|
|
16
|
+
r("nav", h, [
|
|
17
|
+
(t(!0), o(i, null, f(a.config.links, (e) => (t(), o("a", p({
|
|
18
|
+
key: e.type,
|
|
253
19
|
href: e.href,
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
e.
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
]
|
|
263
|
-
])
|
|
264
|
-
]
|
|
20
|
+
class: "social-link",
|
|
21
|
+
title: e.label ?? e.type,
|
|
22
|
+
"aria-label": e.label ?? e.type
|
|
23
|
+
}, { ref_for: !0 }, e.type !== "email" ? { target: "_blank", rel: "noopener noreferrer" } : {}), [
|
|
24
|
+
_(m, {
|
|
25
|
+
type: e.type
|
|
26
|
+
}, null, 8, ["type"])
|
|
27
|
+
], 16, g))), 128))
|
|
28
|
+
])
|
|
29
|
+
])
|
|
30
|
+
]));
|
|
265
31
|
}
|
|
266
32
|
});
|
|
267
33
|
export {
|
|
268
|
-
|
|
34
|
+
x as default
|
|
269
35
|
};
|
package/dist/index18.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),
|
|
1
|
+
"use strict";const e=require("vue"),E=["href"],y=["src","alt"],C={key:1,class:"navbar-brand-text"},w={class:"navbar-desktop","aria-label":"Main navigation"},_=["href"],N={key:1,class:"navbar-dropdown-wrap"},V=["aria-expanded","onClick"],x={key:0,class:"navbar-dropdown-content"},S=["href"],D=["src","alt"],F=["onClick"],L=["src","alt"],I={key:0,class:"navbar-dropdown-wrap"},z=["aria-expanded"],P=["src"],$={key:1,class:"navbar-account-icon",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},M={key:0,class:"navbar-dropdown-content"},W={key:0,class:"navbar-dropdown-user"},T=["href"],A=["src","alt"],U=["onClick"],q=["src","alt"],O=["aria-label","aria-expanded"],Y={key:0,class:"navbar-mobile-menu","aria-label":"Mobile navigation"},R=["href"],j=["href"],G=["onClick"],H=["href"],J=["onClick"],K=e.defineComponent({__name:"Navbar",props:{config:{},loggedIn:{type:Boolean,default:!1}},setup(r){const h=r,g=e.ref(!1),k=e.ref(!1),a=e.ref(!1),s=e.ref(null),v=e.ref(0);function c(l){return!l.requiresAuth||h.loggedIn}function u(l){return"href"in l}function m(l){return"onClick"in l}function f(l){s.value=s.value===l?null:l}function d(){s.value=null}function p(){const l=window.scrollY,t=l-v.value;g.value=l>80,l<80?k.value=!1:t>4?k.value=!0:t<-4&&(k.value=!1),v.value=l}function B(){window.innerWidth>991&&(a.value=!1)}function b(l){l.target.closest(".navbar-dropdown-wrap")||d()}return e.onMounted(()=>{window.addEventListener("scroll",p,{passive:!0}),window.addEventListener("resize",B),document.addEventListener("click",b)}),e.onUnmounted(()=>{window.removeEventListener("scroll",p),window.removeEventListener("resize",B),document.removeEventListener("click",b)}),(l,t)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("header",{class:e.normalizeClass(["navbar",{"navbar--scrolled":g.value,"navbar--hidden":k.value,"navbar--fixed":r.config.isFixed}])},[e.createElementVNode("a",{class:"navbar-brand",href:r.config.brandPath},[r.config.brandLogo?(e.openBlock(),e.createElementBlock("img",{key:0,src:r.config.brandLogo,alt:r.config.brand,class:"navbar-brand-logo"},null,8,y)):(e.openBlock(),e.createElementBlock("span",C,e.toDisplayString(r.config.brand),1))],8,E),t[7]||(t[7]=e.createElementVNode("span",{class:"navbar-spacer"},null,-1)),e.createElementVNode("nav",w,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.config.buttons,n=>{var i;return e.openBlock(),e.createElementBlock(e.Fragment,{key:n.id},[c(n)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[n.isDropdown?(e.openBlock(),e.createElementBlock("div",N,[e.createElementVNode("button",{class:"navbar-nav-btn navbar-nav-btn--dropdown","aria-expanded":s.value===n.id,onClick:e.withModifiers(o=>f(n.id),["stop"])},[e.createTextVNode(e.toDisplayString(n.title)+" ",1),t[5]||(t[5]=e.createElementVNode("span",{class:"navbar-chevron","aria-hidden":"true"},"▾",-1))],8,V),s.value===n.id?(e.openBlock(),e.createElementBlock("div",x,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.dropdownItems,o=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:o.id},[u(o)?(e.openBlock(),e.createElementBlock("a",e.mergeProps({key:0,class:"navbar-dropdown-item",href:o.href},{ref_for:!0},o.href.startsWith("http")?{target:"_blank",rel:"noopener noreferrer"}:{},{onClick:d}),[o.imgSrc?(e.openBlock(),e.createElementBlock("img",{key:0,src:o.imgSrc,alt:o.text,class:"navbar-dropdown-img"},null,8,D)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(o.text),1)],16,S)):m(o)?(e.openBlock(),e.createElementBlock("button",{key:1,class:"navbar-dropdown-item",onClick:()=>{o.onClick(),d()}},[o.imgSrc?(e.openBlock(),e.createElementBlock("img",{key:0,src:o.imgSrc,alt:o.text,class:"navbar-dropdown-img"},null,8,L)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(o.text),1)],8,F)):e.createCommentVNode("",!0)],64))),128))])):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("a",e.mergeProps({key:0,class:"navbar-nav-btn",href:n.href},{ref_for:!0},(i=n.href)!=null&&i.startsWith("http")?{target:"_blank",rel:"noopener noreferrer"}:{}),e.toDisplayString(n.title),17,_))],64)):e.createCommentVNode("",!0)],64)}),128))]),r.config.loginButton?(e.openBlock(),e.createElementBlock("div",I,[e.createElementVNode("button",{class:"navbar-icon-btn","aria-label":"Account menu","aria-expanded":s.value==="__account__",onClick:t[0]||(t[0]=e.withModifiers(n=>f("__account__"),["stop"]))},[r.config.loginButton.profileImageUrl?(e.openBlock(),e.createElementBlock("img",{key:0,src:r.config.loginButton.profileImageUrl,alt:"Profile",class:"navbar-avatar"},null,8,P)):(e.openBlock(),e.createElementBlock("svg",$,[...t[6]||(t[6]=[e.createElementVNode("path",{d:"M12 12c2.7 0 4.8-2.1 4.8-4.8S14.7 2.4 12 2.4 7.2 4.5 7.2 7.2 9.3 12 12 12zm0 2.4c-3.2 0-9.6 1.6-9.6 4.8v2.4h19.2v-2.4c0-3.2-6.4-4.8-9.6-4.8z"},null,-1)])]))],8,z),s.value==="__account__"?(e.openBlock(),e.createElementBlock("div",M,[r.config.loginButton.userName&&r.loggedIn?(e.openBlock(),e.createElementBlock("div",W,e.toDisplayString(r.config.loginButton.userName),1)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.config.loginButton.dropdownItems,n=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:n.id},[u(n)&&c(n)?(e.openBlock(),e.createElementBlock("a",e.mergeProps({key:0,class:"navbar-dropdown-item",href:n.href},{ref_for:!0},n.href.startsWith("http")?{target:"_blank",rel:"noopener noreferrer"}:{},{onClick:d}),[n.imgSrc?(e.openBlock(),e.createElementBlock("img",{key:0,src:n.imgSrc,alt:n.text,class:"navbar-dropdown-img"},null,8,A)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(n.text),1)],16,T)):m(n)&&c(n)?(e.openBlock(),e.createElementBlock("button",{key:1,class:"navbar-dropdown-item",onClick:()=>{n.onClick(),d()}},[n.imgSrc?(e.openBlock(),e.createElementBlock("img",{key:0,src:n.imgSrc,alt:n.text,class:"navbar-dropdown-img"},null,8,q)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(n.text),1)],8,U)):e.createCommentVNode("",!0)],64))),128))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"default"),e.createElementVNode("button",{class:"navbar-mobile-btn","aria-label":a.value?"Close navigation menu":"Open navigation menu","aria-expanded":a.value,onClick:t[1]||(t[1]=n=>a.value=!a.value)},[e.createElementVNode("span",{class:e.normalizeClass(["navbar-hamburger",{"navbar-hamburger--open":a.value}])},null,2)],8,O)],2),a.value?(e.openBlock(),e.createElementBlock("nav",Y,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.config.buttons,n=>{var i;return e.openBlock(),e.createElementBlock(e.Fragment,{key:n.id},[c(n)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[n.isDropdown?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(n.dropdownItems,o=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:o.id},[u(o)&&c(o)?(e.openBlock(),e.createElementBlock("a",e.mergeProps({key:0,class:"navbar-mobile-link",href:o.href},{ref_for:!0},o.href.startsWith("http")?{target:"_blank",rel:"noopener noreferrer"}:{},{onClick:t[3]||(t[3]=Q=>a.value=!1)}),e.toDisplayString(o.text),17,j)):m(o)&&c(o)?(e.openBlock(),e.createElementBlock("button",{key:1,class:"navbar-mobile-link",onClick:()=>{o.onClick(),a.value=!1}},e.toDisplayString(o.text),9,G)):e.createCommentVNode("",!0)],64))),128)):(e.openBlock(),e.createElementBlock("a",e.mergeProps({key:0,class:"navbar-mobile-link",href:n.href},{ref_for:!0},(i=n.href)!=null&&i.startsWith("http")?{target:"_blank",rel:"noopener noreferrer"}:{},{onClick:t[2]||(t[2]=o=>a.value=!1)}),e.toDisplayString(n.title),17,R))],64)):e.createCommentVNode("",!0)],64)}),128)),r.config.loginButton?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(r.config.loginButton.dropdownItems,n=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:n.id},[u(n)&&c(n)?(e.openBlock(),e.createElementBlock("a",{key:0,class:"navbar-mobile-link",href:n.href,onClick:t[4]||(t[4]=i=>a.value=!1)},e.toDisplayString(n.text),9,H)):m(n)&&c(n)?(e.openBlock(),e.createElementBlock("button",{key:1,class:"navbar-mobile-link",onClick:()=>{n.onClick(),a.value=!1}},e.toDisplayString(n.text),9,J)):e.createCommentVNode("",!0)],64))),128)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],64))}});module.exports=K;
|