sprintify-ui 0.12.5 → 0.12.6
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/sprintify-ui.es.js
CHANGED
|
@@ -13625,7 +13625,7 @@ function LE(n) {
|
|
|
13625
13625
|
function zE(n, t = "data:application/octet-stream") {
|
|
13626
13626
|
return n.match(/^data:.*\/.*;base64,/) || (n = `${t};base64,${n}`), n;
|
|
13627
13627
|
}
|
|
13628
|
-
async function
|
|
13628
|
+
async function yF(n, t = "data:application/octet-stream") {
|
|
13629
13629
|
return n = zE(n, t), (await fetch(n)).blob();
|
|
13630
13630
|
}
|
|
13631
13631
|
class w0 {
|
|
@@ -46278,35 +46278,41 @@ const g4 = /* @__PURE__ */ Zi(a4, [["render", m4]]), v4 = { class: "flex-shrink-
|
|
|
46278
46278
|
])
|
|
46279
46279
|
], 64));
|
|
46280
46280
|
}
|
|
46281
|
-
}), MP = ["innerHTML"], Bg = /* @__PURE__ */ re({
|
|
46281
|
+
}), MP = { class: "flex items-start gap-2" }, EP = { class: "min-w-0 flex-1" }, TP = ["innerHTML"], AP = { class: "mt-1 text-xs text-slate-500" }, Bg = /* @__PURE__ */ re({
|
|
46282
46282
|
__name: "BaseLayoutNotificationItemContent",
|
|
46283
46283
|
props: {
|
|
46284
46284
|
active: { type: Boolean },
|
|
46285
46285
|
notification: {}
|
|
46286
46286
|
},
|
|
46287
46287
|
setup(n) {
|
|
46288
|
-
const t = n, e = S(() => t.notification.read ? "text-slate-
|
|
46288
|
+
const t = n, e = S(() => t.notification.read ? "text-slate-900" : "text-slate-900 font-medium");
|
|
46289
46289
|
return (r, o) => (k(), $("div", {
|
|
46290
|
-
class: j(["px-3 py-2", [n.active ? "bg-slate-100" : ""]])
|
|
46290
|
+
class: j(["px-3 py-2 rounded", [n.active ? "bg-slate-100" : ""]])
|
|
46291
46291
|
}, [
|
|
46292
|
-
A("div",
|
|
46293
|
-
|
|
46294
|
-
|
|
46295
|
-
|
|
46296
|
-
|
|
46297
|
-
|
|
46298
|
-
|
|
46299
|
-
|
|
46300
|
-
|
|
46301
|
-
|
|
46302
|
-
|
|
46303
|
-
|
|
46304
|
-
|
|
46305
|
-
|
|
46306
|
-
|
|
46292
|
+
A("div", MP, [
|
|
46293
|
+
A("span", {
|
|
46294
|
+
class: j(["mt-1.5 inline-block h-2 w-2 shrink-0 rounded-full bg-red-500", [n.notification.read ? "invisible" : ""]])
|
|
46295
|
+
}, null, 2),
|
|
46296
|
+
A("div", EP, [
|
|
46297
|
+
A("div", {
|
|
46298
|
+
class: j(["text-sm leading-tight", g(e)]),
|
|
46299
|
+
innerHTML: n.notification.text
|
|
46300
|
+
}, null, 10, TP),
|
|
46301
|
+
n.notification.created_at ? (k(), ne(Q0, {
|
|
46302
|
+
key: 0,
|
|
46303
|
+
tooltip: !1,
|
|
46304
|
+
value: n.notification.created_at
|
|
46305
|
+
}, {
|
|
46306
|
+
default: X(({ readableDate: i }) => [
|
|
46307
|
+
A("p", AP, ie(i), 1)
|
|
46308
|
+
]),
|
|
46309
|
+
_: 1
|
|
46310
|
+
}, 8, ["value"])) : Z("", !0)
|
|
46311
|
+
])
|
|
46312
|
+
])
|
|
46307
46313
|
], 2));
|
|
46308
46314
|
}
|
|
46309
|
-
}),
|
|
46315
|
+
}), IP = { key: 1 }, OP = /* @__PURE__ */ re({
|
|
46310
46316
|
__name: "BaseLayoutNotificationItem",
|
|
46311
46317
|
props: {
|
|
46312
46318
|
notification: {
|
|
@@ -46338,7 +46344,7 @@ const g4 = /* @__PURE__ */ Zi(a4, [["render", m4]]), v4 = { class: "flex-shrink-
|
|
|
46338
46344
|
}, 1032, ["to", "onMouseup"])
|
|
46339
46345
|
]),
|
|
46340
46346
|
_: 1
|
|
46341
|
-
})) : (k(), $("div",
|
|
46347
|
+
})) : (k(), $("div", IP, [
|
|
46342
46348
|
ee(g(Di), {
|
|
46343
46349
|
as: "button",
|
|
46344
46350
|
class: "w-full text-left"
|
|
@@ -46355,10 +46361,10 @@ const g4 = /* @__PURE__ */ Zi(a4, [["render", m4]]), v4 = { class: "flex-shrink-
|
|
|
46355
46361
|
]));
|
|
46356
46362
|
};
|
|
46357
46363
|
}
|
|
46358
|
-
}),
|
|
46364
|
+
}), DP = {
|
|
46359
46365
|
key: 0,
|
|
46360
46366
|
class: "flex items-center justify-center p-6"
|
|
46361
|
-
},
|
|
46367
|
+
}, BP = { class: "" }, RP = { class: "text-center text-sm text-slate-700" }, NP = {
|
|
46362
46368
|
key: 1,
|
|
46363
46369
|
class: "mt-1 border-t border-slate-200 pt-1"
|
|
46364
46370
|
}, j1 = /* @__PURE__ */ re({
|
|
@@ -46418,21 +46424,21 @@ const g4 = /* @__PURE__ */ Zi(a4, [["render", m4]]), v4 = { class: "flex-shrink-
|
|
|
46418
46424
|
], 2)
|
|
46419
46425
|
]),
|
|
46420
46426
|
items: X(() => [
|
|
46421
|
-
(k(!0), $(Be, null, Ye(n.notificationsConfig.items.slice(0, 4), (p) => (k(), ne(
|
|
46427
|
+
(k(!0), $(Be, null, Ye(n.notificationsConfig.items.slice(0, 4), (p) => (k(), ne(OP, {
|
|
46422
46428
|
key: p.id + "link",
|
|
46423
46429
|
notification: p,
|
|
46424
46430
|
onClick: l
|
|
46425
46431
|
}, null, 8, ["notification"]))), 128)),
|
|
46426
|
-
n.notificationsConfig.items.length == 0 ? (k(), $("div",
|
|
46427
|
-
A("div",
|
|
46432
|
+
n.notificationsConfig.items.length == 0 ? (k(), $("div", DP, [
|
|
46433
|
+
A("div", BP, [
|
|
46428
46434
|
ee(g(Je), {
|
|
46429
46435
|
icon: "heroicons:inbox-stack",
|
|
46430
46436
|
class: "mx-auto mb-2 h-8 w-8 text-slate-400"
|
|
46431
46437
|
}),
|
|
46432
|
-
A("p",
|
|
46438
|
+
A("p", RP, ie(g(be)("sui.notifications_empty")), 1)
|
|
46433
46439
|
])
|
|
46434
46440
|
])) : Z("", !0),
|
|
46435
|
-
n.notificationsConfig.footerTo ? (k(), $("div",
|
|
46441
|
+
n.notificationsConfig.footerTo ? (k(), $("div", NP, [
|
|
46436
46442
|
ee(g(Di), null, {
|
|
46437
46443
|
default: X(({ active: p, close: m }) => [
|
|
46438
46444
|
ee(h, {
|
|
@@ -46455,7 +46461,7 @@ const g4 = /* @__PURE__ */ Zi(a4, [["render", m4]]), v4 = { class: "flex-shrink-
|
|
|
46455
46461
|
}, 8, ["width"]);
|
|
46456
46462
|
};
|
|
46457
46463
|
}
|
|
46458
|
-
}),
|
|
46464
|
+
}), $P = { class: "flex w-full justify-between" }, LP = { class: "flex grow" }, zP = ["src", "alt"], PP = { class: "space-y-0.5 p-2" }, FP = { class: "p-2 pb-6" }, _P = { class: "mt-4 space-y-1" }, VP = /* @__PURE__ */ re({
|
|
46459
46465
|
__name: "BaseLayoutStackedConfigurable",
|
|
46460
46466
|
props: {
|
|
46461
46467
|
appName: {
|
|
@@ -46516,8 +46522,8 @@ const g4 = /* @__PURE__ */ Zi(a4, [["render", m4]]), v4 = { class: "flex-shrink-
|
|
|
46516
46522
|
navbar: n.navbar
|
|
46517
46523
|
}, {
|
|
46518
46524
|
navbar: X(({ mobile: a }) => [
|
|
46519
|
-
A("div",
|
|
46520
|
-
A("div",
|
|
46525
|
+
A("div", $P, [
|
|
46526
|
+
A("div", LP, [
|
|
46521
46527
|
n.logoUrl ? (k(), ne(l, {
|
|
46522
46528
|
key: 0,
|
|
46523
46529
|
to: n.logoTo,
|
|
@@ -46532,7 +46538,7 @@ const g4 = /* @__PURE__ */ Zi(a4, [["render", m4]]), v4 = { class: "flex-shrink-
|
|
|
46532
46538
|
class: "block h-8 w-auto",
|
|
46533
46539
|
src: n.logoUrl,
|
|
46534
46540
|
alt: n.appName
|
|
46535
|
-
}, null, 8,
|
|
46541
|
+
}, null, 8, zP)
|
|
46536
46542
|
]),
|
|
46537
46543
|
_: 1
|
|
46538
46544
|
}, 8, ["to", "class"])) : Z("", !0),
|
|
@@ -46585,7 +46591,7 @@ const g4 = /* @__PURE__ */ Zi(a4, [["render", m4]]), v4 = { class: "flex-shrink-
|
|
|
46585
46591
|
])
|
|
46586
46592
|
]),
|
|
46587
46593
|
mobile: X(() => [
|
|
46588
|
-
A("div",
|
|
46594
|
+
A("div", PP, [
|
|
46589
46595
|
(k(!0), $(Be, null, Ye(n.menu, (a) => (k(), ne(Zs, {
|
|
46590
46596
|
key: a.label,
|
|
46591
46597
|
item: a,
|
|
@@ -46596,14 +46602,14 @@ const g4 = /* @__PURE__ */ Zi(a4, [["render", m4]]), v4 = { class: "flex-shrink-
|
|
|
46596
46602
|
A("hr", {
|
|
46597
46603
|
class: j(["mb-4 mt-2", [n.dark ? "border-slate-700" : "border-slate-200"]])
|
|
46598
46604
|
}, null, 2),
|
|
46599
|
-
A("div",
|
|
46605
|
+
A("div", FP, [
|
|
46600
46606
|
ee(Js, {
|
|
46601
46607
|
user: n.user,
|
|
46602
46608
|
"show-details": "",
|
|
46603
46609
|
size: "base",
|
|
46604
46610
|
class: j(["px-3", n.dark ? "text-white" : ""])
|
|
46605
46611
|
}, null, 8, ["user", "class"]),
|
|
46606
|
-
A("div",
|
|
46612
|
+
A("div", _P, [
|
|
46607
46613
|
(k(!0), $(Be, null, Ye(n.userMenu, (a) => (k(), ne(Zs, {
|
|
46608
46614
|
key: a.label,
|
|
46609
46615
|
item: a,
|
|
@@ -46620,10 +46626,10 @@ const g4 = /* @__PURE__ */ Zi(a4, [["render", m4]]), v4 = { class: "flex-shrink-
|
|
|
46620
46626
|
}, 8, ["size", "dark", "navbar"]);
|
|
46621
46627
|
};
|
|
46622
46628
|
}
|
|
46623
|
-
}),
|
|
46629
|
+
}), jP = { class: "min-h-full" }, HP = { class: "fixed inset-0 z-40 flex" }, WP = { class: "absolute top-0 right-0 pt-2 -mr-12" }, qP = ["src", "alt"], UP = {
|
|
46624
46630
|
"data-scroll-lock-scrollable": "",
|
|
46625
46631
|
class: "flex-1 h-0 mt-5 overflow-y-auto"
|
|
46626
|
-
},
|
|
46632
|
+
}, KP = { class: "sticky top-0 left-0 z-10 shadow shrink-0 || print:hidden" }, YP = { class: "flex flex-1" }, GP = { class: "relative flex-1 min-h-full" }, JP = ["src", "alt"], XP = { class: "flex flex-1" }, QP = { class: "flex-1" }, ZP = "base_layout_sidebar.", H1 = /* @__PURE__ */ re({
|
|
46627
46633
|
__name: "BaseLayoutSidebar",
|
|
46628
46634
|
props: {
|
|
46629
46635
|
appName: {
|
|
@@ -46658,7 +46664,7 @@ const g4 = /* @__PURE__ */ Zi(a4, [["render", m4]]), v4 = { class: "flex-shrink-
|
|
|
46658
46664
|
function l() {
|
|
46659
46665
|
o.value = !1;
|
|
46660
46666
|
}
|
|
46661
|
-
const a = St.settingsStorage, u = `${
|
|
46667
|
+
const a = St.settingsStorage, u = `${ZP}.collapsed`, c = F(!1);
|
|
46662
46668
|
et(async () => {
|
|
46663
46669
|
c.value = await a.get(u) == 1;
|
|
46664
46670
|
});
|
|
@@ -46668,7 +46674,7 @@ const g4 = /* @__PURE__ */ Zi(a4, [["render", m4]]), v4 = { class: "flex-shrink-
|
|
|
46668
46674
|
const f = S(() => t.size === "xs" ? 50 : t.size === "sm" ? 54 : 64);
|
|
46669
46675
|
return Ke("toggleMenu", i), Ke("openMenu", s), Ke("closeMenu", l), (h, p) => {
|
|
46670
46676
|
const m = Dt("RouterLink");
|
|
46671
|
-
return k(), $("div",
|
|
46677
|
+
return k(), $("div", jP, [
|
|
46672
46678
|
ee(g(Ev), {
|
|
46673
46679
|
as: "template",
|
|
46674
46680
|
show: o.value
|
|
@@ -46694,7 +46700,7 @@ const g4 = /* @__PURE__ */ Zi(a4, [["render", m4]]), v4 = { class: "flex-shrink-
|
|
|
46694
46700
|
])]),
|
|
46695
46701
|
_: 1
|
|
46696
46702
|
}),
|
|
46697
|
-
A("div",
|
|
46703
|
+
A("div", HP, [
|
|
46698
46704
|
ee(g(ia), {
|
|
46699
46705
|
as: "template",
|
|
46700
46706
|
enter: "transition ease-in-out duration-300 transform",
|
|
@@ -46719,7 +46725,7 @@ const g4 = /* @__PURE__ */ Zi(a4, [["render", m4]]), v4 = { class: "flex-shrink-
|
|
|
46719
46725
|
"leave-to": "opacity-0"
|
|
46720
46726
|
}, {
|
|
46721
46727
|
default: X(() => [
|
|
46722
|
-
A("div",
|
|
46728
|
+
A("div", WP, [
|
|
46723
46729
|
A("button", {
|
|
46724
46730
|
type: "button",
|
|
46725
46731
|
class: "flex items-center justify-center w-10 h-10 ml-1 rounded-full",
|
|
@@ -46746,11 +46752,11 @@ const g4 = /* @__PURE__ */ Zi(a4, [["render", m4]]), v4 = { class: "flex-shrink-
|
|
|
46746
46752
|
class: "block w-auto h-8",
|
|
46747
46753
|
src: n.logoUrl,
|
|
46748
46754
|
alt: n.appName
|
|
46749
|
-
}, null, 8,
|
|
46755
|
+
}, null, 8, qP)
|
|
46750
46756
|
]),
|
|
46751
46757
|
_: 1
|
|
46752
46758
|
}, 8, ["to"]),
|
|
46753
|
-
A("div",
|
|
46759
|
+
A("div", UP, [
|
|
46754
46760
|
A("nav", null, [
|
|
46755
46761
|
ue(h.$slots, "menu")
|
|
46756
46762
|
])
|
|
@@ -46775,7 +46781,7 @@ const g4 = /* @__PURE__ */ Zi(a4, [["render", m4]]), v4 = { class: "flex-shrink-
|
|
|
46775
46781
|
A("div", {
|
|
46776
46782
|
class: j(["flex flex-col min-h-full || xl:print:pl-0", [c.value ? "xl:pl-14" : "xl:pl-64"]])
|
|
46777
46783
|
}, [
|
|
46778
|
-
A("div",
|
|
46784
|
+
A("div", KP, [
|
|
46779
46785
|
(k(!0), $(Be, null, Ye(g(r), (v) => (k(), ne(Uh, {
|
|
46780
46786
|
key: v.id,
|
|
46781
46787
|
color: v.color,
|
|
@@ -46805,12 +46811,12 @@ const g4 = /* @__PURE__ */ Zi(a4, [["render", m4]]), v4 = { class: "flex-shrink-
|
|
|
46805
46811
|
"aria-hidden": "true"
|
|
46806
46812
|
})
|
|
46807
46813
|
]),
|
|
46808
|
-
A("div",
|
|
46814
|
+
A("div", YP, [
|
|
46809
46815
|
ue(h.$slots, "navbar")
|
|
46810
46816
|
])
|
|
46811
46817
|
], 4)
|
|
46812
46818
|
]),
|
|
46813
|
-
A("main",
|
|
46819
|
+
A("main", GP, [
|
|
46814
46820
|
ue(h.$slots, "default")
|
|
46815
46821
|
])
|
|
46816
46822
|
], 2),
|
|
@@ -46836,7 +46842,7 @@ const g4 = /* @__PURE__ */ Zi(a4, [["render", m4]]), v4 = { class: "flex-shrink-
|
|
|
46836
46842
|
class: "block w-auto h-8",
|
|
46837
46843
|
src: n.logoUrl,
|
|
46838
46844
|
alt: n.appName
|
|
46839
|
-
}, null, 8,
|
|
46845
|
+
}, null, 8, JP)
|
|
46840
46846
|
]),
|
|
46841
46847
|
_: 1
|
|
46842
46848
|
}, 8, ["to"])),
|
|
@@ -46854,8 +46860,8 @@ const g4 = /* @__PURE__ */ Zi(a4, [["render", m4]]), v4 = { class: "flex-shrink-
|
|
|
46854
46860
|
})
|
|
46855
46861
|
], 2)
|
|
46856
46862
|
], 6),
|
|
46857
|
-
A("div",
|
|
46858
|
-
A("nav",
|
|
46863
|
+
A("div", XP, [
|
|
46864
|
+
A("nav", QP, [
|
|
46859
46865
|
ue(h.$slots, "menu", { collapsed: c.value })
|
|
46860
46866
|
])
|
|
46861
46867
|
])
|
|
@@ -46864,10 +46870,10 @@ const g4 = /* @__PURE__ */ Zi(a4, [["render", m4]]), v4 = { class: "flex-shrink-
|
|
|
46864
46870
|
]);
|
|
46865
46871
|
};
|
|
46866
46872
|
}
|
|
46867
|
-
}),
|
|
46873
|
+
}), eF = {
|
|
46868
46874
|
key: 1,
|
|
46869
46875
|
class: "px-4"
|
|
46870
|
-
},
|
|
46876
|
+
}, tF = { class: "flex flex-1 justify-between px-4" }, nF = { class: "flex grow" }, rF = { class: "ml-4 flex items-center md:ml-6" }, oF = /* @__PURE__ */ re({
|
|
46871
46877
|
__name: "BaseLayoutSidebarConfigurable",
|
|
46872
46878
|
props: {
|
|
46873
46879
|
appName: {
|
|
@@ -46940,7 +46946,7 @@ const g4 = /* @__PURE__ */ Zi(a4, [["render", m4]]), v4 = { class: "flex-shrink-
|
|
|
46940
46946
|
d.label && !d.href && !d.to && !d.action ? (k(), $("div", {
|
|
46941
46947
|
key: d.label
|
|
46942
46948
|
}, [
|
|
46943
|
-
c ? (k(), $("div",
|
|
46949
|
+
c ? (k(), $("div", eF, [...u[0] || (u[0] = [
|
|
46944
46950
|
A("hr", { class: "my-2 border-slate-600" }, null, -1)
|
|
46945
46951
|
])])) : (k(), $("h2", {
|
|
46946
46952
|
key: 0,
|
|
@@ -46973,11 +46979,11 @@ const g4 = /* @__PURE__ */ Zi(a4, [["render", m4]]), v4 = { class: "flex-shrink-
|
|
|
46973
46979
|
], 2)
|
|
46974
46980
|
]),
|
|
46975
46981
|
navbar: X(() => [
|
|
46976
|
-
A("div",
|
|
46977
|
-
A("div",
|
|
46982
|
+
A("div", tF, [
|
|
46983
|
+
A("div", nF, [
|
|
46978
46984
|
ue(a.$slots, "navbar")
|
|
46979
46985
|
]),
|
|
46980
|
-
A("div",
|
|
46986
|
+
A("div", rF, [
|
|
46981
46987
|
n.notifications ? (k(), ne(j1, {
|
|
46982
46988
|
key: 0,
|
|
46983
46989
|
"notifications-config": n.notifications,
|
|
@@ -47080,9 +47086,9 @@ const g4 = /* @__PURE__ */ Zi(a4, [["render", m4]]), v4 = { class: "flex-shrink-
|
|
|
47080
47086
|
BaseInputPercent: $O,
|
|
47081
47087
|
BaseJsonReader: jO,
|
|
47082
47088
|
BaseLayoutSidebar: H1,
|
|
47083
|
-
BaseLayoutSidebarConfigurable:
|
|
47089
|
+
BaseLayoutSidebarConfigurable: oF,
|
|
47084
47090
|
BaseLayoutStacked: V1,
|
|
47085
|
-
BaseLayoutStackedConfigurable:
|
|
47091
|
+
BaseLayoutStackedConfigurable: VP,
|
|
47086
47092
|
BaseLazy: WO,
|
|
47087
47093
|
BaseLoadingCover: nh,
|
|
47088
47094
|
BaseMediaItem: nD,
|
|
@@ -47132,7 +47138,7 @@ const g4 = /* @__PURE__ */ Zi(a4, [["render", m4]]), v4 = { class: "flex-shrink-
|
|
|
47132
47138
|
BaseTooltip: Qi,
|
|
47133
47139
|
BaseUniqueCode: CP
|
|
47134
47140
|
}, Symbol.toStringTag, { value: "Module" })), Ng = "sui.";
|
|
47135
|
-
class
|
|
47141
|
+
class iF {
|
|
47136
47142
|
constructor(t, e) {
|
|
47137
47143
|
Kn(this, "getFunction");
|
|
47138
47144
|
Kn(this, "setFunction");
|
|
@@ -47146,10 +47152,10 @@ class nF {
|
|
|
47146
47152
|
return this.setFunction(t, e);
|
|
47147
47153
|
}
|
|
47148
47154
|
}
|
|
47149
|
-
const
|
|
47155
|
+
const sF = 100, wF = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
47150
47156
|
__proto__: null,
|
|
47151
|
-
MAGIC_NUM:
|
|
47152
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
47157
|
+
MAGIC_NUM: sF
|
|
47158
|
+
}, Symbol.toStringTag, { value: "Module" })), xF = { en: o0, fr: i0 }, St = {
|
|
47153
47159
|
http: lw.create(),
|
|
47154
47160
|
locales: {
|
|
47155
47161
|
en: "English",
|
|
@@ -47169,14 +47175,14 @@ const rF = 100, vF = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.define
|
|
|
47169
47175
|
//comma: true,
|
|
47170
47176
|
});
|
|
47171
47177
|
},
|
|
47172
|
-
settingsStorage: new
|
|
47178
|
+
settingsStorage: new iF(),
|
|
47173
47179
|
countries: [],
|
|
47174
47180
|
regions: [],
|
|
47175
47181
|
props: {
|
|
47176
47182
|
size: "md"
|
|
47177
47183
|
}
|
|
47178
47184
|
};
|
|
47179
|
-
function
|
|
47185
|
+
function lF(n, t) {
|
|
47180
47186
|
for (const e in Rg)
|
|
47181
47187
|
n.component(e, Rg[e]);
|
|
47182
47188
|
t != null && t.http && (St.http = t.http), t != null && t.locales && (St.locales = t.locales), t != null && t.upload_url && (St.upload_url = t.upload_url), t != null && t.formatQueryString && (St.formatQueryString = t.formatQueryString), t != null && t.parseQueryString && (St.parseQueryString = t.parseQueryString), t != null && t.settingsStorage && (St.settingsStorage = t.settingsStorage), t != null && t.countries && (St.countries = t.countries), t != null && t.regions && (St.regions = t.regions), t != null && t.props && (St.props = t.props), n.config.globalProperties.$i18n && We(
|
|
@@ -47187,7 +47193,7 @@ function oF(n, t) {
|
|
|
47187
47193
|
{ immediate: !0 }
|
|
47188
47194
|
);
|
|
47189
47195
|
}
|
|
47190
|
-
const
|
|
47196
|
+
const kF = { install: lF };
|
|
47191
47197
|
export {
|
|
47192
47198
|
Nf as BaseActionButtons,
|
|
47193
47199
|
yo as BaseActionItem,
|
|
@@ -47247,9 +47253,9 @@ export {
|
|
|
47247
47253
|
$O as BaseInputPercent,
|
|
47248
47254
|
jO as BaseJsonReader,
|
|
47249
47255
|
H1 as BaseLayoutSidebar,
|
|
47250
|
-
|
|
47256
|
+
oF as BaseLayoutSidebarConfigurable,
|
|
47251
47257
|
V1 as BaseLayoutStacked,
|
|
47252
|
-
|
|
47258
|
+
VP as BaseLayoutStackedConfigurable,
|
|
47253
47259
|
WO as BaseLazy,
|
|
47254
47260
|
nh as BaseLoadingCover,
|
|
47255
47261
|
nD as BaseMediaItem,
|
|
@@ -47298,19 +47304,19 @@ export {
|
|
|
47298
47304
|
F1 as BaseTimelineItem,
|
|
47299
47305
|
Qi as BaseTooltip,
|
|
47300
47306
|
CP as BaseUniqueCode,
|
|
47301
|
-
|
|
47302
|
-
|
|
47303
|
-
|
|
47307
|
+
wF as MyConstants,
|
|
47308
|
+
iF as SettingsStorage,
|
|
47309
|
+
yF as base64ToBlob,
|
|
47304
47310
|
LE as blobToBase64,
|
|
47305
47311
|
St as config,
|
|
47306
|
-
|
|
47312
|
+
kF as default,
|
|
47307
47313
|
jf as disableScroll,
|
|
47308
47314
|
Hf as enableScroll,
|
|
47309
47315
|
Wu as fileSizeFormat,
|
|
47310
47316
|
HM as getAvatarColor,
|
|
47311
47317
|
Sl as getColorConfig,
|
|
47312
47318
|
jM as getInitials,
|
|
47313
|
-
|
|
47319
|
+
xF as messages,
|
|
47314
47320
|
b0 as resizeImageForUpload,
|
|
47315
47321
|
TE as resizeImageFromURI,
|
|
47316
47322
|
EE as toHumanList,
|
package/package.json
CHANGED
|
@@ -1,25 +1,33 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div
|
|
3
|
-
class="px-3 py-2"
|
|
3
|
+
class="px-3 py-2 rounded"
|
|
4
4
|
:class="[active ? 'bg-slate-100' : '']"
|
|
5
5
|
>
|
|
6
|
-
<div
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
6
|
+
<div class="flex items-start gap-2">
|
|
7
|
+
<span
|
|
8
|
+
class="mt-1.5 inline-block h-2 w-2 shrink-0 rounded-full bg-red-500"
|
|
9
|
+
:class="[notification.read ? 'invisible' : '']"
|
|
10
|
+
/>
|
|
11
|
+
<div class="min-w-0 flex-1">
|
|
12
|
+
<div
|
|
13
|
+
class="text-sm leading-tight"
|
|
14
|
+
:class="textClasses"
|
|
15
|
+
v-html="notification.text"
|
|
16
|
+
/>
|
|
17
|
+
<BaseDisplayRelativeTime
|
|
18
|
+
v-if="notification.created_at"
|
|
19
|
+
v-slot="{ readableDate }"
|
|
20
|
+
:tooltip="false"
|
|
21
|
+
:value="notification.created_at"
|
|
22
|
+
>
|
|
23
|
+
<p
|
|
24
|
+
class="mt-1 text-xs text-slate-500"
|
|
25
|
+
>
|
|
26
|
+
{{ readableDate }}
|
|
27
|
+
</p>
|
|
28
|
+
</BaseDisplayRelativeTime>
|
|
29
|
+
</div>
|
|
30
|
+
</div>
|
|
23
31
|
</div>
|
|
24
32
|
</template>
|
|
25
33
|
|
|
@@ -33,9 +41,7 @@ const props = defineProps<{
|
|
|
33
41
|
}>();
|
|
34
42
|
|
|
35
43
|
const textClasses = computed(() => {
|
|
36
|
-
return props.notification.read ?
|
|
37
|
-
'text-slate-500' :
|
|
38
|
-
"text-black font-medium before:bg-red-500 before:inline-block before:rounded-full before:mr-1 before:relative before:-top-px before:h-2 before:w-2 before:content-['']";
|
|
44
|
+
return props.notification.read ? 'text-slate-900' : 'text-slate-900 font-medium';
|
|
39
45
|
});
|
|
40
46
|
|
|
41
47
|
</script>
|
|
@@ -131,6 +131,12 @@ export default {
|
|
|
131
131
|
text: "You have a new message",
|
|
132
132
|
created_at: DateTime.now().minus({ second: 1 }).toISO(),
|
|
133
133
|
},
|
|
134
|
+
{
|
|
135
|
+
id: "3",
|
|
136
|
+
text: "Please verify your email address",
|
|
137
|
+
created_at: DateTime.now().minus({ second: 1000 }).toISO(),
|
|
138
|
+
read: true,
|
|
139
|
+
},
|
|
134
140
|
{
|
|
135
141
|
id: "2",
|
|
136
142
|
text: "Your inbox is now full. Please empty your inbox before it goes bang.",
|