sprintify-ui 0.12.5 → 0.12.7
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 +92 -79
- package/dist/types/components/BaseDropdown.vue.d.ts +9 -0
- package/package.json +1 -1
- package/src/components/BaseDropdown.vue +5 -0
- package/src/components/BaseLayoutNotificationItemContent.vue +27 -21
- package/src/components/BaseLayoutSidebarConfigurable.stories.js +6 -0
- package/src/components/BaseTipTap.vue +4 -2
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 {
|
|
@@ -22159,6 +22159,10 @@ const pI = /* @__PURE__ */ Pu(hI), mI = { class: "text-xs text-slate-600" }, Q0
|
|
|
22159
22159
|
twButton: {
|
|
22160
22160
|
default: "outline-none",
|
|
22161
22161
|
type: String
|
|
22162
|
+
},
|
|
22163
|
+
disabled: {
|
|
22164
|
+
default: !1,
|
|
22165
|
+
type: Boolean
|
|
22162
22166
|
}
|
|
22163
22167
|
},
|
|
22164
22168
|
setup(n) {
|
|
@@ -22173,7 +22177,8 @@ const pI = /* @__PURE__ */ Pu(hI), mI = { class: "text-xs text-slate-600" }, Q0
|
|
|
22173
22177
|
return (l, a) => (k(), ne(g(wv), null, {
|
|
22174
22178
|
default: X(({ open: u }) => [
|
|
22175
22179
|
ee(g(tk), {
|
|
22176
|
-
class: j(g(s))
|
|
22180
|
+
class: j(g(s)),
|
|
22181
|
+
disabled: n.disabled
|
|
22177
22182
|
}, {
|
|
22178
22183
|
default: X(() => [
|
|
22179
22184
|
A("div", {
|
|
@@ -22184,7 +22189,7 @@ const pI = /* @__PURE__ */ Pu(hI), mI = { class: "text-xs text-slate-600" }, Q0
|
|
|
22184
22189
|
], 512)
|
|
22185
22190
|
]),
|
|
22186
22191
|
_: 3
|
|
22187
|
-
}, 8, ["class"]),
|
|
22192
|
+
}, 8, ["class", "disabled"]),
|
|
22188
22193
|
(k(), ne(rr, { to: "body" }, [
|
|
22189
22194
|
A("div", {
|
|
22190
22195
|
ref_key: "dropdownRef",
|
|
@@ -44530,11 +44535,12 @@ const zz = { class: "px-1 py-1 border-b flex flex-wrap items-center" }, Pz = { c
|
|
|
44530
44535
|
M.name === "highlight" ? (k(), ne(Qs, {
|
|
44531
44536
|
key: 0,
|
|
44532
44537
|
placement: "bottom",
|
|
44533
|
-
"tw-button": "block"
|
|
44538
|
+
"tw-button": "block",
|
|
44539
|
+
disabled: n.disabled
|
|
44534
44540
|
}, {
|
|
44535
44541
|
button: X(() => [
|
|
44536
44542
|
A("div", {
|
|
44537
|
-
class: j([g(C), g(o).isActive("highlight") ? "bg-slate-200" : ""])
|
|
44543
|
+
class: j([g(C), g(o).isActive("highlight") ? "bg-slate-200" : "", n.disabled ? "opacity-50 cursor-not-allowed" : ""])
|
|
44538
44544
|
}, [
|
|
44539
44545
|
ee(x, {
|
|
44540
44546
|
class: "h-4 w-4 text-slate-600",
|
|
@@ -44569,14 +44575,15 @@ const zz = { class: "px-1 py-1 border-b flex flex-wrap items-center" }, Pz = { c
|
|
|
44569
44575
|
])
|
|
44570
44576
|
]),
|
|
44571
44577
|
_: 2
|
|
44572
|
-
},
|
|
44578
|
+
}, 1032, ["disabled"])) : M.name === "link" ? (k(), ne(Qs, {
|
|
44573
44579
|
key: 1,
|
|
44574
44580
|
placement: "bottom",
|
|
44575
|
-
"tw-button": "block"
|
|
44581
|
+
"tw-button": "block",
|
|
44582
|
+
disabled: n.disabled
|
|
44576
44583
|
}, {
|
|
44577
44584
|
button: X(() => [
|
|
44578
44585
|
A("div", {
|
|
44579
|
-
class: j([g(C), g(o).isActive("link") ? "bg-slate-200" : ""]),
|
|
44586
|
+
class: j([g(C), g(o).isActive("link") ? "bg-slate-200" : "", n.disabled ? "opacity-50 cursor-not-allowed" : ""]),
|
|
44580
44587
|
onClick: h
|
|
44581
44588
|
}, [
|
|
44582
44589
|
ee(x, {
|
|
@@ -44639,7 +44646,7 @@ const zz = { class: "px-1 py-1 border-b flex flex-wrap items-center" }, Pz = { c
|
|
|
44639
44646
|
])
|
|
44640
44647
|
]),
|
|
44641
44648
|
_: 2
|
|
44642
|
-
},
|
|
44649
|
+
}, 1032, ["disabled"])) : (k(), $("button", {
|
|
44643
44650
|
key: 2,
|
|
44644
44651
|
class: j([g(C), g(o).isActive(M.name) ? "bg-slate-200" : ""]),
|
|
44645
44652
|
type: "button",
|
|
@@ -46278,35 +46285,41 @@ const g4 = /* @__PURE__ */ Zi(a4, [["render", m4]]), v4 = { class: "flex-shrink-
|
|
|
46278
46285
|
])
|
|
46279
46286
|
], 64));
|
|
46280
46287
|
}
|
|
46281
|
-
}), MP = ["innerHTML"], Bg = /* @__PURE__ */ re({
|
|
46288
|
+
}), 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
46289
|
__name: "BaseLayoutNotificationItemContent",
|
|
46283
46290
|
props: {
|
|
46284
46291
|
active: { type: Boolean },
|
|
46285
46292
|
notification: {}
|
|
46286
46293
|
},
|
|
46287
46294
|
setup(n) {
|
|
46288
|
-
const t = n, e = S(() => t.notification.read ? "text-slate-
|
|
46295
|
+
const t = n, e = S(() => t.notification.read ? "text-slate-900" : "text-slate-900 font-medium");
|
|
46289
46296
|
return (r, o) => (k(), $("div", {
|
|
46290
|
-
class: j(["px-3 py-2", [n.active ? "bg-slate-100" : ""]])
|
|
46297
|
+
class: j(["px-3 py-2 rounded", [n.active ? "bg-slate-100" : ""]])
|
|
46291
46298
|
}, [
|
|
46292
|
-
A("div",
|
|
46293
|
-
|
|
46294
|
-
|
|
46295
|
-
|
|
46296
|
-
|
|
46297
|
-
|
|
46298
|
-
|
|
46299
|
-
|
|
46300
|
-
|
|
46301
|
-
|
|
46302
|
-
|
|
46303
|
-
|
|
46304
|
-
|
|
46305
|
-
|
|
46306
|
-
|
|
46299
|
+
A("div", MP, [
|
|
46300
|
+
A("span", {
|
|
46301
|
+
class: j(["mt-1.5 inline-block h-2 w-2 shrink-0 rounded-full bg-red-500", [n.notification.read ? "invisible" : ""]])
|
|
46302
|
+
}, null, 2),
|
|
46303
|
+
A("div", EP, [
|
|
46304
|
+
A("div", {
|
|
46305
|
+
class: j(["text-sm leading-tight", g(e)]),
|
|
46306
|
+
innerHTML: n.notification.text
|
|
46307
|
+
}, null, 10, TP),
|
|
46308
|
+
n.notification.created_at ? (k(), ne(Q0, {
|
|
46309
|
+
key: 0,
|
|
46310
|
+
tooltip: !1,
|
|
46311
|
+
value: n.notification.created_at
|
|
46312
|
+
}, {
|
|
46313
|
+
default: X(({ readableDate: i }) => [
|
|
46314
|
+
A("p", AP, ie(i), 1)
|
|
46315
|
+
]),
|
|
46316
|
+
_: 1
|
|
46317
|
+
}, 8, ["value"])) : Z("", !0)
|
|
46318
|
+
])
|
|
46319
|
+
])
|
|
46307
46320
|
], 2));
|
|
46308
46321
|
}
|
|
46309
|
-
}),
|
|
46322
|
+
}), IP = { key: 1 }, OP = /* @__PURE__ */ re({
|
|
46310
46323
|
__name: "BaseLayoutNotificationItem",
|
|
46311
46324
|
props: {
|
|
46312
46325
|
notification: {
|
|
@@ -46338,7 +46351,7 @@ const g4 = /* @__PURE__ */ Zi(a4, [["render", m4]]), v4 = { class: "flex-shrink-
|
|
|
46338
46351
|
}, 1032, ["to", "onMouseup"])
|
|
46339
46352
|
]),
|
|
46340
46353
|
_: 1
|
|
46341
|
-
})) : (k(), $("div",
|
|
46354
|
+
})) : (k(), $("div", IP, [
|
|
46342
46355
|
ee(g(Di), {
|
|
46343
46356
|
as: "button",
|
|
46344
46357
|
class: "w-full text-left"
|
|
@@ -46355,10 +46368,10 @@ const g4 = /* @__PURE__ */ Zi(a4, [["render", m4]]), v4 = { class: "flex-shrink-
|
|
|
46355
46368
|
]));
|
|
46356
46369
|
};
|
|
46357
46370
|
}
|
|
46358
|
-
}),
|
|
46371
|
+
}), DP = {
|
|
46359
46372
|
key: 0,
|
|
46360
46373
|
class: "flex items-center justify-center p-6"
|
|
46361
|
-
},
|
|
46374
|
+
}, BP = { class: "" }, RP = { class: "text-center text-sm text-slate-700" }, NP = {
|
|
46362
46375
|
key: 1,
|
|
46363
46376
|
class: "mt-1 border-t border-slate-200 pt-1"
|
|
46364
46377
|
}, j1 = /* @__PURE__ */ re({
|
|
@@ -46418,21 +46431,21 @@ const g4 = /* @__PURE__ */ Zi(a4, [["render", m4]]), v4 = { class: "flex-shrink-
|
|
|
46418
46431
|
], 2)
|
|
46419
46432
|
]),
|
|
46420
46433
|
items: X(() => [
|
|
46421
|
-
(k(!0), $(Be, null, Ye(n.notificationsConfig.items.slice(0, 4), (p) => (k(), ne(
|
|
46434
|
+
(k(!0), $(Be, null, Ye(n.notificationsConfig.items.slice(0, 4), (p) => (k(), ne(OP, {
|
|
46422
46435
|
key: p.id + "link",
|
|
46423
46436
|
notification: p,
|
|
46424
46437
|
onClick: l
|
|
46425
46438
|
}, null, 8, ["notification"]))), 128)),
|
|
46426
|
-
n.notificationsConfig.items.length == 0 ? (k(), $("div",
|
|
46427
|
-
A("div",
|
|
46439
|
+
n.notificationsConfig.items.length == 0 ? (k(), $("div", DP, [
|
|
46440
|
+
A("div", BP, [
|
|
46428
46441
|
ee(g(Je), {
|
|
46429
46442
|
icon: "heroicons:inbox-stack",
|
|
46430
46443
|
class: "mx-auto mb-2 h-8 w-8 text-slate-400"
|
|
46431
46444
|
}),
|
|
46432
|
-
A("p",
|
|
46445
|
+
A("p", RP, ie(g(be)("sui.notifications_empty")), 1)
|
|
46433
46446
|
])
|
|
46434
46447
|
])) : Z("", !0),
|
|
46435
|
-
n.notificationsConfig.footerTo ? (k(), $("div",
|
|
46448
|
+
n.notificationsConfig.footerTo ? (k(), $("div", NP, [
|
|
46436
46449
|
ee(g(Di), null, {
|
|
46437
46450
|
default: X(({ active: p, close: m }) => [
|
|
46438
46451
|
ee(h, {
|
|
@@ -46455,7 +46468,7 @@ const g4 = /* @__PURE__ */ Zi(a4, [["render", m4]]), v4 = { class: "flex-shrink-
|
|
|
46455
46468
|
}, 8, ["width"]);
|
|
46456
46469
|
};
|
|
46457
46470
|
}
|
|
46458
|
-
}),
|
|
46471
|
+
}), $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
46472
|
__name: "BaseLayoutStackedConfigurable",
|
|
46460
46473
|
props: {
|
|
46461
46474
|
appName: {
|
|
@@ -46516,8 +46529,8 @@ const g4 = /* @__PURE__ */ Zi(a4, [["render", m4]]), v4 = { class: "flex-shrink-
|
|
|
46516
46529
|
navbar: n.navbar
|
|
46517
46530
|
}, {
|
|
46518
46531
|
navbar: X(({ mobile: a }) => [
|
|
46519
|
-
A("div",
|
|
46520
|
-
A("div",
|
|
46532
|
+
A("div", $P, [
|
|
46533
|
+
A("div", LP, [
|
|
46521
46534
|
n.logoUrl ? (k(), ne(l, {
|
|
46522
46535
|
key: 0,
|
|
46523
46536
|
to: n.logoTo,
|
|
@@ -46532,7 +46545,7 @@ const g4 = /* @__PURE__ */ Zi(a4, [["render", m4]]), v4 = { class: "flex-shrink-
|
|
|
46532
46545
|
class: "block h-8 w-auto",
|
|
46533
46546
|
src: n.logoUrl,
|
|
46534
46547
|
alt: n.appName
|
|
46535
|
-
}, null, 8,
|
|
46548
|
+
}, null, 8, zP)
|
|
46536
46549
|
]),
|
|
46537
46550
|
_: 1
|
|
46538
46551
|
}, 8, ["to", "class"])) : Z("", !0),
|
|
@@ -46585,7 +46598,7 @@ const g4 = /* @__PURE__ */ Zi(a4, [["render", m4]]), v4 = { class: "flex-shrink-
|
|
|
46585
46598
|
])
|
|
46586
46599
|
]),
|
|
46587
46600
|
mobile: X(() => [
|
|
46588
|
-
A("div",
|
|
46601
|
+
A("div", PP, [
|
|
46589
46602
|
(k(!0), $(Be, null, Ye(n.menu, (a) => (k(), ne(Zs, {
|
|
46590
46603
|
key: a.label,
|
|
46591
46604
|
item: a,
|
|
@@ -46596,14 +46609,14 @@ const g4 = /* @__PURE__ */ Zi(a4, [["render", m4]]), v4 = { class: "flex-shrink-
|
|
|
46596
46609
|
A("hr", {
|
|
46597
46610
|
class: j(["mb-4 mt-2", [n.dark ? "border-slate-700" : "border-slate-200"]])
|
|
46598
46611
|
}, null, 2),
|
|
46599
|
-
A("div",
|
|
46612
|
+
A("div", FP, [
|
|
46600
46613
|
ee(Js, {
|
|
46601
46614
|
user: n.user,
|
|
46602
46615
|
"show-details": "",
|
|
46603
46616
|
size: "base",
|
|
46604
46617
|
class: j(["px-3", n.dark ? "text-white" : ""])
|
|
46605
46618
|
}, null, 8, ["user", "class"]),
|
|
46606
|
-
A("div",
|
|
46619
|
+
A("div", _P, [
|
|
46607
46620
|
(k(!0), $(Be, null, Ye(n.userMenu, (a) => (k(), ne(Zs, {
|
|
46608
46621
|
key: a.label,
|
|
46609
46622
|
item: a,
|
|
@@ -46620,10 +46633,10 @@ const g4 = /* @__PURE__ */ Zi(a4, [["render", m4]]), v4 = { class: "flex-shrink-
|
|
|
46620
46633
|
}, 8, ["size", "dark", "navbar"]);
|
|
46621
46634
|
};
|
|
46622
46635
|
}
|
|
46623
|
-
}),
|
|
46636
|
+
}), 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
46637
|
"data-scroll-lock-scrollable": "",
|
|
46625
46638
|
class: "flex-1 h-0 mt-5 overflow-y-auto"
|
|
46626
|
-
},
|
|
46639
|
+
}, 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
46640
|
__name: "BaseLayoutSidebar",
|
|
46628
46641
|
props: {
|
|
46629
46642
|
appName: {
|
|
@@ -46658,7 +46671,7 @@ const g4 = /* @__PURE__ */ Zi(a4, [["render", m4]]), v4 = { class: "flex-shrink-
|
|
|
46658
46671
|
function l() {
|
|
46659
46672
|
o.value = !1;
|
|
46660
46673
|
}
|
|
46661
|
-
const a = St.settingsStorage, u = `${
|
|
46674
|
+
const a = St.settingsStorage, u = `${ZP}.collapsed`, c = F(!1);
|
|
46662
46675
|
et(async () => {
|
|
46663
46676
|
c.value = await a.get(u) == 1;
|
|
46664
46677
|
});
|
|
@@ -46668,7 +46681,7 @@ const g4 = /* @__PURE__ */ Zi(a4, [["render", m4]]), v4 = { class: "flex-shrink-
|
|
|
46668
46681
|
const f = S(() => t.size === "xs" ? 50 : t.size === "sm" ? 54 : 64);
|
|
46669
46682
|
return Ke("toggleMenu", i), Ke("openMenu", s), Ke("closeMenu", l), (h, p) => {
|
|
46670
46683
|
const m = Dt("RouterLink");
|
|
46671
|
-
return k(), $("div",
|
|
46684
|
+
return k(), $("div", jP, [
|
|
46672
46685
|
ee(g(Ev), {
|
|
46673
46686
|
as: "template",
|
|
46674
46687
|
show: o.value
|
|
@@ -46694,7 +46707,7 @@ const g4 = /* @__PURE__ */ Zi(a4, [["render", m4]]), v4 = { class: "flex-shrink-
|
|
|
46694
46707
|
])]),
|
|
46695
46708
|
_: 1
|
|
46696
46709
|
}),
|
|
46697
|
-
A("div",
|
|
46710
|
+
A("div", HP, [
|
|
46698
46711
|
ee(g(ia), {
|
|
46699
46712
|
as: "template",
|
|
46700
46713
|
enter: "transition ease-in-out duration-300 transform",
|
|
@@ -46719,7 +46732,7 @@ const g4 = /* @__PURE__ */ Zi(a4, [["render", m4]]), v4 = { class: "flex-shrink-
|
|
|
46719
46732
|
"leave-to": "opacity-0"
|
|
46720
46733
|
}, {
|
|
46721
46734
|
default: X(() => [
|
|
46722
|
-
A("div",
|
|
46735
|
+
A("div", WP, [
|
|
46723
46736
|
A("button", {
|
|
46724
46737
|
type: "button",
|
|
46725
46738
|
class: "flex items-center justify-center w-10 h-10 ml-1 rounded-full",
|
|
@@ -46746,11 +46759,11 @@ const g4 = /* @__PURE__ */ Zi(a4, [["render", m4]]), v4 = { class: "flex-shrink-
|
|
|
46746
46759
|
class: "block w-auto h-8",
|
|
46747
46760
|
src: n.logoUrl,
|
|
46748
46761
|
alt: n.appName
|
|
46749
|
-
}, null, 8,
|
|
46762
|
+
}, null, 8, qP)
|
|
46750
46763
|
]),
|
|
46751
46764
|
_: 1
|
|
46752
46765
|
}, 8, ["to"]),
|
|
46753
|
-
A("div",
|
|
46766
|
+
A("div", UP, [
|
|
46754
46767
|
A("nav", null, [
|
|
46755
46768
|
ue(h.$slots, "menu")
|
|
46756
46769
|
])
|
|
@@ -46775,7 +46788,7 @@ const g4 = /* @__PURE__ */ Zi(a4, [["render", m4]]), v4 = { class: "flex-shrink-
|
|
|
46775
46788
|
A("div", {
|
|
46776
46789
|
class: j(["flex flex-col min-h-full || xl:print:pl-0", [c.value ? "xl:pl-14" : "xl:pl-64"]])
|
|
46777
46790
|
}, [
|
|
46778
|
-
A("div",
|
|
46791
|
+
A("div", KP, [
|
|
46779
46792
|
(k(!0), $(Be, null, Ye(g(r), (v) => (k(), ne(Uh, {
|
|
46780
46793
|
key: v.id,
|
|
46781
46794
|
color: v.color,
|
|
@@ -46805,12 +46818,12 @@ const g4 = /* @__PURE__ */ Zi(a4, [["render", m4]]), v4 = { class: "flex-shrink-
|
|
|
46805
46818
|
"aria-hidden": "true"
|
|
46806
46819
|
})
|
|
46807
46820
|
]),
|
|
46808
|
-
A("div",
|
|
46821
|
+
A("div", YP, [
|
|
46809
46822
|
ue(h.$slots, "navbar")
|
|
46810
46823
|
])
|
|
46811
46824
|
], 4)
|
|
46812
46825
|
]),
|
|
46813
|
-
A("main",
|
|
46826
|
+
A("main", GP, [
|
|
46814
46827
|
ue(h.$slots, "default")
|
|
46815
46828
|
])
|
|
46816
46829
|
], 2),
|
|
@@ -46836,7 +46849,7 @@ const g4 = /* @__PURE__ */ Zi(a4, [["render", m4]]), v4 = { class: "flex-shrink-
|
|
|
46836
46849
|
class: "block w-auto h-8",
|
|
46837
46850
|
src: n.logoUrl,
|
|
46838
46851
|
alt: n.appName
|
|
46839
|
-
}, null, 8,
|
|
46852
|
+
}, null, 8, JP)
|
|
46840
46853
|
]),
|
|
46841
46854
|
_: 1
|
|
46842
46855
|
}, 8, ["to"])),
|
|
@@ -46854,8 +46867,8 @@ const g4 = /* @__PURE__ */ Zi(a4, [["render", m4]]), v4 = { class: "flex-shrink-
|
|
|
46854
46867
|
})
|
|
46855
46868
|
], 2)
|
|
46856
46869
|
], 6),
|
|
46857
|
-
A("div",
|
|
46858
|
-
A("nav",
|
|
46870
|
+
A("div", XP, [
|
|
46871
|
+
A("nav", QP, [
|
|
46859
46872
|
ue(h.$slots, "menu", { collapsed: c.value })
|
|
46860
46873
|
])
|
|
46861
46874
|
])
|
|
@@ -46864,10 +46877,10 @@ const g4 = /* @__PURE__ */ Zi(a4, [["render", m4]]), v4 = { class: "flex-shrink-
|
|
|
46864
46877
|
]);
|
|
46865
46878
|
};
|
|
46866
46879
|
}
|
|
46867
|
-
}),
|
|
46880
|
+
}), eF = {
|
|
46868
46881
|
key: 1,
|
|
46869
46882
|
class: "px-4"
|
|
46870
|
-
},
|
|
46883
|
+
}, 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
46884
|
__name: "BaseLayoutSidebarConfigurable",
|
|
46872
46885
|
props: {
|
|
46873
46886
|
appName: {
|
|
@@ -46940,7 +46953,7 @@ const g4 = /* @__PURE__ */ Zi(a4, [["render", m4]]), v4 = { class: "flex-shrink-
|
|
|
46940
46953
|
d.label && !d.href && !d.to && !d.action ? (k(), $("div", {
|
|
46941
46954
|
key: d.label
|
|
46942
46955
|
}, [
|
|
46943
|
-
c ? (k(), $("div",
|
|
46956
|
+
c ? (k(), $("div", eF, [...u[0] || (u[0] = [
|
|
46944
46957
|
A("hr", { class: "my-2 border-slate-600" }, null, -1)
|
|
46945
46958
|
])])) : (k(), $("h2", {
|
|
46946
46959
|
key: 0,
|
|
@@ -46973,11 +46986,11 @@ const g4 = /* @__PURE__ */ Zi(a4, [["render", m4]]), v4 = { class: "flex-shrink-
|
|
|
46973
46986
|
], 2)
|
|
46974
46987
|
]),
|
|
46975
46988
|
navbar: X(() => [
|
|
46976
|
-
A("div",
|
|
46977
|
-
A("div",
|
|
46989
|
+
A("div", tF, [
|
|
46990
|
+
A("div", nF, [
|
|
46978
46991
|
ue(a.$slots, "navbar")
|
|
46979
46992
|
]),
|
|
46980
|
-
A("div",
|
|
46993
|
+
A("div", rF, [
|
|
46981
46994
|
n.notifications ? (k(), ne(j1, {
|
|
46982
46995
|
key: 0,
|
|
46983
46996
|
"notifications-config": n.notifications,
|
|
@@ -47080,9 +47093,9 @@ const g4 = /* @__PURE__ */ Zi(a4, [["render", m4]]), v4 = { class: "flex-shrink-
|
|
|
47080
47093
|
BaseInputPercent: $O,
|
|
47081
47094
|
BaseJsonReader: jO,
|
|
47082
47095
|
BaseLayoutSidebar: H1,
|
|
47083
|
-
BaseLayoutSidebarConfigurable:
|
|
47096
|
+
BaseLayoutSidebarConfigurable: oF,
|
|
47084
47097
|
BaseLayoutStacked: V1,
|
|
47085
|
-
BaseLayoutStackedConfigurable:
|
|
47098
|
+
BaseLayoutStackedConfigurable: VP,
|
|
47086
47099
|
BaseLazy: WO,
|
|
47087
47100
|
BaseLoadingCover: nh,
|
|
47088
47101
|
BaseMediaItem: nD,
|
|
@@ -47132,7 +47145,7 @@ const g4 = /* @__PURE__ */ Zi(a4, [["render", m4]]), v4 = { class: "flex-shrink-
|
|
|
47132
47145
|
BaseTooltip: Qi,
|
|
47133
47146
|
BaseUniqueCode: CP
|
|
47134
47147
|
}, Symbol.toStringTag, { value: "Module" })), Ng = "sui.";
|
|
47135
|
-
class
|
|
47148
|
+
class iF {
|
|
47136
47149
|
constructor(t, e) {
|
|
47137
47150
|
Kn(this, "getFunction");
|
|
47138
47151
|
Kn(this, "setFunction");
|
|
@@ -47146,10 +47159,10 @@ class nF {
|
|
|
47146
47159
|
return this.setFunction(t, e);
|
|
47147
47160
|
}
|
|
47148
47161
|
}
|
|
47149
|
-
const
|
|
47162
|
+
const sF = 100, wF = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
47150
47163
|
__proto__: null,
|
|
47151
|
-
MAGIC_NUM:
|
|
47152
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
47164
|
+
MAGIC_NUM: sF
|
|
47165
|
+
}, Symbol.toStringTag, { value: "Module" })), xF = { en: o0, fr: i0 }, St = {
|
|
47153
47166
|
http: lw.create(),
|
|
47154
47167
|
locales: {
|
|
47155
47168
|
en: "English",
|
|
@@ -47169,14 +47182,14 @@ const rF = 100, vF = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.define
|
|
|
47169
47182
|
//comma: true,
|
|
47170
47183
|
});
|
|
47171
47184
|
},
|
|
47172
|
-
settingsStorage: new
|
|
47185
|
+
settingsStorage: new iF(),
|
|
47173
47186
|
countries: [],
|
|
47174
47187
|
regions: [],
|
|
47175
47188
|
props: {
|
|
47176
47189
|
size: "md"
|
|
47177
47190
|
}
|
|
47178
47191
|
};
|
|
47179
|
-
function
|
|
47192
|
+
function lF(n, t) {
|
|
47180
47193
|
for (const e in Rg)
|
|
47181
47194
|
n.component(e, Rg[e]);
|
|
47182
47195
|
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 +47200,7 @@ function oF(n, t) {
|
|
|
47187
47200
|
{ immediate: !0 }
|
|
47188
47201
|
);
|
|
47189
47202
|
}
|
|
47190
|
-
const
|
|
47203
|
+
const kF = { install: lF };
|
|
47191
47204
|
export {
|
|
47192
47205
|
Nf as BaseActionButtons,
|
|
47193
47206
|
yo as BaseActionItem,
|
|
@@ -47247,9 +47260,9 @@ export {
|
|
|
47247
47260
|
$O as BaseInputPercent,
|
|
47248
47261
|
jO as BaseJsonReader,
|
|
47249
47262
|
H1 as BaseLayoutSidebar,
|
|
47250
|
-
|
|
47263
|
+
oF as BaseLayoutSidebarConfigurable,
|
|
47251
47264
|
V1 as BaseLayoutStacked,
|
|
47252
|
-
|
|
47265
|
+
VP as BaseLayoutStackedConfigurable,
|
|
47253
47266
|
WO as BaseLazy,
|
|
47254
47267
|
nh as BaseLoadingCover,
|
|
47255
47268
|
nD as BaseMediaItem,
|
|
@@ -47298,19 +47311,19 @@ export {
|
|
|
47298
47311
|
F1 as BaseTimelineItem,
|
|
47299
47312
|
Qi as BaseTooltip,
|
|
47300
47313
|
CP as BaseUniqueCode,
|
|
47301
|
-
|
|
47302
|
-
|
|
47303
|
-
|
|
47314
|
+
wF as MyConstants,
|
|
47315
|
+
iF as SettingsStorage,
|
|
47316
|
+
yF as base64ToBlob,
|
|
47304
47317
|
LE as blobToBase64,
|
|
47305
47318
|
St as config,
|
|
47306
|
-
|
|
47319
|
+
kF as default,
|
|
47307
47320
|
jf as disableScroll,
|
|
47308
47321
|
Hf as enableScroll,
|
|
47309
47322
|
Wu as fileSizeFormat,
|
|
47310
47323
|
HM as getAvatarColor,
|
|
47311
47324
|
Sl as getColorConfig,
|
|
47312
47325
|
jM as getInitials,
|
|
47313
|
-
|
|
47326
|
+
xF as messages,
|
|
47314
47327
|
b0 as resizeImageForUpload,
|
|
47315
47328
|
TE as resizeImageFromURI,
|
|
47316
47329
|
EE as toHumanList,
|
|
@@ -26,6 +26,10 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
26
26
|
default: string;
|
|
27
27
|
type: StringConstructor;
|
|
28
28
|
};
|
|
29
|
+
disabled: {
|
|
30
|
+
default: boolean;
|
|
31
|
+
type: BooleanConstructor;
|
|
32
|
+
};
|
|
29
33
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
30
34
|
animated: {
|
|
31
35
|
default: boolean;
|
|
@@ -43,7 +47,12 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
43
47
|
default: string;
|
|
44
48
|
type: StringConstructor;
|
|
45
49
|
};
|
|
50
|
+
disabled: {
|
|
51
|
+
default: boolean;
|
|
52
|
+
type: BooleanConstructor;
|
|
53
|
+
};
|
|
46
54
|
}>> & Readonly<{}>, {
|
|
55
|
+
disabled: boolean;
|
|
47
56
|
placement: Placement;
|
|
48
57
|
twButton: string;
|
|
49
58
|
animated: boolean;
|
package/package.json
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
<Popover v-slot="{ open }">
|
|
3
3
|
<PopoverButton
|
|
4
4
|
:class="twButtonInternal"
|
|
5
|
+
:disabled="disabled"
|
|
5
6
|
>
|
|
6
7
|
<div ref="buttonRef">
|
|
7
8
|
<slot name="button" />
|
|
@@ -70,6 +71,10 @@ const props = defineProps({
|
|
|
70
71
|
default: 'outline-none',
|
|
71
72
|
type: String,
|
|
72
73
|
},
|
|
74
|
+
disabled: {
|
|
75
|
+
default: false,
|
|
76
|
+
type: Boolean,
|
|
77
|
+
},
|
|
73
78
|
});
|
|
74
79
|
|
|
75
80
|
const { floatingStyles } = useFloating(buttonRefEl, dropdownRef, {
|
|
@@ -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.",
|
|
@@ -15,9 +15,10 @@
|
|
|
15
15
|
v-if="action.name === 'highlight'"
|
|
16
16
|
placement="bottom"
|
|
17
17
|
tw-button="block"
|
|
18
|
+
:disabled="disabled"
|
|
18
19
|
>
|
|
19
20
|
<template #button>
|
|
20
|
-
<div :class="[buttonClass, editor.isActive('highlight') ? 'bg-slate-200' : '']">
|
|
21
|
+
<div :class="[buttonClass, editor.isActive('highlight') ? 'bg-slate-200' : '', disabled ? 'opacity-50 cursor-not-allowed' : '']">
|
|
21
22
|
<BaseIcon
|
|
22
23
|
class="h-4 w-4 text-slate-600"
|
|
23
24
|
:icon="action.icon"
|
|
@@ -52,10 +53,11 @@
|
|
|
52
53
|
v-else-if="action.name === 'link'"
|
|
53
54
|
placement="bottom"
|
|
54
55
|
tw-button="block"
|
|
56
|
+
:disabled="disabled"
|
|
55
57
|
>
|
|
56
58
|
<template #button>
|
|
57
59
|
<div
|
|
58
|
-
:class="[buttonClass, editor.isActive('link') ? 'bg-slate-200' : '']"
|
|
60
|
+
:class="[buttonClass, editor.isActive('link') ? 'bg-slate-200' : '', disabled ? 'opacity-50 cursor-not-allowed' : '']"
|
|
59
61
|
@click="openLinkDropdown"
|
|
60
62
|
>
|
|
61
63
|
<BaseIcon
|