@zealsolutions/zeal-ui 1.0.0-alpha.362 → 1.0.0-alpha.363
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/components/header/index.js +61 -52
- package/dist/components/tables/index.js +297 -272
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { openBlock as a, createElementBlock as u, createVNode as T, createElementVNode as r, createTextVNode as j, mergeModels as ne, useModel as ke, getCurrentInstance as ce, ref as k, computed as $, watch as K, nextTick as oe, onMounted as ge, onBeforeUnmount as we, createBlock as I, Teleport as Ce, withModifiers as N, withDirectives as G, vModelText as $e, createCommentVNode as
|
|
1
|
+
import { openBlock as a, createElementBlock as u, createVNode as T, createElementVNode as r, createTextVNode as j, mergeModels as ne, useModel as ke, getCurrentInstance as ce, ref as k, computed as $, watch as K, nextTick as oe, onMounted as ge, onBeforeUnmount as we, createBlock as I, Teleport as Ce, withModifiers as N, withDirectives as G, vModelText as $e, createCommentVNode as m, normalizeClass as M, toDisplayString as b, Fragment as H, renderList as P, normalizeStyle as q, pushScopeId as Se, popScopeId as _e, Transition as ue, withCtx as F, resolveDynamicComponent as de, unref as Q, vShow as pe, renderSlot as R } from "vue";
|
|
2
2
|
import Me from "../../HouseIcon-BxmNyxvv.js";
|
|
3
3
|
import Te from "../../ArrowLeftIcon-Cgsy08pY.js";
|
|
4
4
|
import { _ as Ae } from "../../Tooltip-CQjz2EXM.js";
|
|
@@ -17,7 +17,7 @@ const He = /* @__PURE__ */ r("span", { class: "hidden whitespace-nowrap sm:inlin
|
|
|
17
17
|
setup(e) {
|
|
18
18
|
return (i, o) => (a(), u("button", {
|
|
19
19
|
type: "button",
|
|
20
|
-
class: "zui-search-pill inline-flex h-[34px] cursor-pointer items-center justify-center gap-[7px] rounded-lg border-[1px] border-solid border-proclusteal-
|
|
20
|
+
class: "zui-search-pill inline-flex h-[34px] cursor-pointer items-center justify-center gap-[7px] rounded-lg border-[1px] border-solid border-proclusteal-950 dark:border-line bg-surface-raised pl-[11px] pr-[9px] font-sans text-[13px] font-semibold text-proclusteal-600 dark:text-content-muted transition-[border-color,color,box-shadow] duration-150 hover:border-proclusteal-900 dark:hover:border-focus hover:text-proclusteal-800 dark:hover:text-content hover:shadow-[0_1px_3px_rgba(20,40,45,0.08)] focus:border-proclusteal-900 dark:focus:border-focus focus:text-proclusteal-800 dark:focus:text-content focus:outline-none",
|
|
21
21
|
title: "Search (Ctrl K)",
|
|
22
22
|
"aria-label": "Search (Ctrl K)",
|
|
23
23
|
onClick: o[0] || (o[0] = (y) => i.$emit("click"))
|
|
@@ -132,11 +132,11 @@ const Ue = (e) => (Se("data-v-80fd510b"), e = e(), _e(), e), Be = { class: "zui-
|
|
|
132
132
|
}),
|
|
133
133
|
emits: /* @__PURE__ */ ne(["navigate"], ["update:open"]),
|
|
134
134
|
setup(e, { emit: i }) {
|
|
135
|
-
const o = e, y = i, p = ke(e, "open"), x = ce(), w = k(null), _ = k(null), A = k(null), g = k(""), S = k(""),
|
|
135
|
+
const o = e, y = i, p = ke(e, "open"), x = ce(), w = k(null), _ = k(null), A = k(null), g = k(""), S = k(""), v = k([]), f = k("all"), n = k("zero"), c = k(-1);
|
|
136
136
|
let d = null, C = 0, L = null, E = null;
|
|
137
137
|
const Y = $(() => Pe(S.value)), X = (t) => De(t, o.types), J = $(() => {
|
|
138
138
|
let t = 0;
|
|
139
|
-
return
|
|
139
|
+
return v.value.filter((s) => f.value === "all" || s.type === f.value).map((s) => {
|
|
140
140
|
const l = X(s.type);
|
|
141
141
|
return {
|
|
142
142
|
type: s.type,
|
|
@@ -151,7 +151,7 @@ const Ue = (e) => (Se("data-v-80fd510b"), e = e(), _e(), e), Be = { class: "zui-
|
|
|
151
151
|
}))
|
|
152
152
|
};
|
|
153
153
|
});
|
|
154
|
-
}), W = $(() => J.value.flatMap((t) => t.items)), ye = $(() =>
|
|
154
|
+
}), W = $(() => J.value.flatMap((t) => t.items)), ye = $(() => v.value.reduce((t, s) => t + s.items.length, 0));
|
|
155
155
|
function U(t) {
|
|
156
156
|
const s = W.value;
|
|
157
157
|
if (!s.length) {
|
|
@@ -182,23 +182,23 @@ const Ue = (e) => (Se("data-v-80fd510b"), e = e(), _e(), e), Be = { class: "zui-
|
|
|
182
182
|
const l = await o.searchProvider(t);
|
|
183
183
|
if (s !== C || !p.value)
|
|
184
184
|
return;
|
|
185
|
-
|
|
185
|
+
v.value = l && l.groups || [], f.value = "all", n.value = v.value.length ? "results" : "empty", U(0);
|
|
186
186
|
} catch {
|
|
187
187
|
if (s !== C || !p.value)
|
|
188
188
|
return;
|
|
189
|
-
|
|
189
|
+
v.value = [], n.value = "error", c.value = -1;
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
192
|
K(g, (t) => {
|
|
193
193
|
clearTimeout(d);
|
|
194
194
|
const s = t.trim();
|
|
195
195
|
if (s.length < o.minChars) {
|
|
196
|
-
C++,
|
|
196
|
+
C++, v.value = [], n.value = s.length ? "hint" : "zero", c.value = -1;
|
|
197
197
|
return;
|
|
198
198
|
}
|
|
199
199
|
d = setTimeout(() => me(s), o.debounce);
|
|
200
200
|
}), K(p, (t) => {
|
|
201
|
-
t ? (L = document.activeElement, g.value = "", S.value = "",
|
|
201
|
+
t ? (L = document.activeElement, g.value = "", S.value = "", v.value = [], f.value = "all", n.value = "zero", c.value = -1, E = document.body.style.overflow, document.body.style.overflow = "hidden", oe(() => {
|
|
202
202
|
var s;
|
|
203
203
|
return (s = w.value) == null ? void 0 : s.focus();
|
|
204
204
|
})) : (clearTimeout(d), C++, E !== null && (document.body.style.overflow = E, E = null), L != null && L.focus && L.focus());
|
|
@@ -291,7 +291,7 @@ const Ue = (e) => (Se("data-v-80fd510b"), e = e(), _e(), e), Be = { class: "zui-
|
|
|
291
291
|
onClick: z
|
|
292
292
|
}, "×")
|
|
293
293
|
]),
|
|
294
|
-
n.value === "results" ? (a(), u("div", Ve, " Search results ")) :
|
|
294
|
+
n.value === "results" ? (a(), u("div", Ve, " Search results ")) : m("", !0),
|
|
295
295
|
n.value === "results" ? (a(), u("div", Ke, [
|
|
296
296
|
r("button", {
|
|
297
297
|
type: "button",
|
|
@@ -303,7 +303,7 @@ const Ue = (e) => (Se("data-v-80fd510b"), e = e(), _e(), e), Be = { class: "zui-
|
|
|
303
303
|
class: M(["font-bold", f.value === "all" ? "opacity-85" : "opacity-60"])
|
|
304
304
|
}, "(" + b(ye.value) + ")", 3)
|
|
305
305
|
], 2),
|
|
306
|
-
(a(!0), u(H, null, P(
|
|
306
|
+
(a(!0), u(H, null, P(v.value, (l) => (a(), u("button", {
|
|
307
307
|
key: l.type,
|
|
308
308
|
type: "button",
|
|
309
309
|
class: M([le, f.value === l.type ? se : ""]),
|
|
@@ -314,7 +314,7 @@ const Ue = (e) => (Se("data-v-80fd510b"), e = e(), _e(), e), Be = { class: "zui-
|
|
|
314
314
|
class: M(["font-bold", f.value === l.type ? "opacity-85" : "opacity-60"])
|
|
315
315
|
}, "(" + b(l.items.length) + ")", 3)
|
|
316
316
|
], 10, qe))), 128))
|
|
317
|
-
])) :
|
|
317
|
+
])) : m("", !0),
|
|
318
318
|
r("div", {
|
|
319
319
|
ref_key: "resultsEl",
|
|
320
320
|
ref: A,
|
|
@@ -377,7 +377,7 @@ const Ue = (e) => (Se("data-v-80fd510b"), e = e(), _e(), e), Be = { class: "zui-
|
|
|
377
377
|
]))), 128))
|
|
378
378
|
], 512)
|
|
379
379
|
], 512)
|
|
380
|
-
], 32)) :
|
|
380
|
+
], 32)) : m("", !0)
|
|
381
381
|
]));
|
|
382
382
|
}
|
|
383
383
|
}, tt = /* @__PURE__ */ Ie(et, [["__scopeId", "data-v-80fd510b"]]), ie = {
|
|
@@ -482,7 +482,7 @@ const at = {
|
|
|
482
482
|
const d = nt(n.AppTypeName);
|
|
483
483
|
return d ? { component: null, path: d } : { component: ae, path: "" };
|
|
484
484
|
}
|
|
485
|
-
const
|
|
485
|
+
const v = $(() => w.value.map((n) => ({
|
|
486
486
|
item: n,
|
|
487
487
|
icon: S(n),
|
|
488
488
|
date: ot(n),
|
|
@@ -506,7 +506,7 @@ const at = {
|
|
|
506
506
|
onClick: A
|
|
507
507
|
}, [
|
|
508
508
|
T(ae, { class: "!h-[21px] !w-[21px]" }),
|
|
509
|
-
_.value ? (a(), u("span", at)) :
|
|
509
|
+
_.value ? (a(), u("span", at)) : m("", !0)
|
|
510
510
|
]),
|
|
511
511
|
T(ue, {
|
|
512
512
|
"enter-active-class": "transition-all ease-out duration-75",
|
|
@@ -519,8 +519,8 @@ const at = {
|
|
|
519
519
|
default: F(() => [
|
|
520
520
|
G(r("div", rt, [
|
|
521
521
|
r("div", lt, [
|
|
522
|
-
e.notifications ? w.value.length ?
|
|
523
|
-
(a(!0), u(H, null, P(
|
|
522
|
+
e.notifications ? w.value.length ? m("", !0) : (a(), u("div", it, " No notifications. ")) : (a(), u("div", st, " Loading notifications… ")),
|
|
523
|
+
(a(!0), u(H, null, P(v.value, (d) => (a(), u("div", {
|
|
524
524
|
key: d.item.NotifyID,
|
|
525
525
|
class: M(["flex cursor-pointer items-start gap-3 border-b-[1px] border-proclusteal-200 dark:border-line px-4 py-3", d.unread ? "bg-proclusteal-50 dark:bg-surface-hover" : "bg-surface-raised"]),
|
|
526
526
|
onClick: (C) => f(d.item.url)
|
|
@@ -544,7 +544,7 @@ const at = {
|
|
|
544
544
|
r("span", pt, [
|
|
545
545
|
r("span", ft, b(d.item.notifyname), 1),
|
|
546
546
|
r("span", xt, b(d.item.summary), 1),
|
|
547
|
-
d.date ? (a(), u("span", ht, b(d.date), 1)) :
|
|
547
|
+
d.date ? (a(), u("span", ht, b(d.date), 1)) : m("", !0)
|
|
548
548
|
]),
|
|
549
549
|
r("span", yt, [
|
|
550
550
|
d.unread ? (a(), u("button", {
|
|
@@ -556,7 +556,7 @@ const at = {
|
|
|
556
556
|
onClick: N((C) => n.$emit("markAsRead", d.item.NotifyID), ["stop"])
|
|
557
557
|
}, [
|
|
558
558
|
T(Ee, { class: "!h-4 !w-4" })
|
|
559
|
-
], 8, mt)) :
|
|
559
|
+
], 8, mt)) : m("", !0),
|
|
560
560
|
r("button", {
|
|
561
561
|
type: "button",
|
|
562
562
|
class: "hover:text-[#dd3730]",
|
|
@@ -613,7 +613,7 @@ const at = {
|
|
|
613
613
|
function g(S) {
|
|
614
614
|
x.value = !1, y("select", S);
|
|
615
615
|
}
|
|
616
|
-
return (S,
|
|
616
|
+
return (S, v) => (a(), u("div", {
|
|
617
617
|
ref_key: "rootEl",
|
|
618
618
|
ref: p,
|
|
619
619
|
class: "relative font-sans"
|
|
@@ -623,14 +623,14 @@ const at = {
|
|
|
623
623
|
class: "flex cursor-pointer items-center justify-center",
|
|
624
624
|
title: "View Menu Options",
|
|
625
625
|
"aria-label": "View Menu Options",
|
|
626
|
-
onClick:
|
|
626
|
+
onClick: v[1] || (v[1] = (f) => x.value = !x.value)
|
|
627
627
|
}, [
|
|
628
628
|
e.user.avatarUrl && !w.value ? (a(), u("img", {
|
|
629
629
|
key: 0,
|
|
630
630
|
src: e.user.avatarUrl,
|
|
631
631
|
alt: "",
|
|
632
632
|
class: "h-[34px] w-[34px] rounded-full object-cover",
|
|
633
|
-
onError:
|
|
633
|
+
onError: v[0] || (v[0] = (f) => w.value = !0)
|
|
634
634
|
}, null, 40, gt)) : (a(), u("span", wt, b(A.value), 1))
|
|
635
635
|
]),
|
|
636
636
|
T(ue, {
|
|
@@ -659,7 +659,7 @@ const at = {
|
|
|
659
659
|
f.icon ? (a(), I(de(f.icon), {
|
|
660
660
|
key: 0,
|
|
661
661
|
class: "!h-4 !w-4 flex-none"
|
|
662
|
-
})) :
|
|
662
|
+
})) : m("", !0),
|
|
663
663
|
r("span", null, b(f.label), 1)
|
|
664
664
|
], 8, It))
|
|
665
665
|
], 64))), 128))
|
|
@@ -744,6 +744,13 @@ const at = {
|
|
|
744
744
|
searchTypes: {
|
|
745
745
|
type: Object,
|
|
746
746
|
default: () => ({})
|
|
747
|
+
},
|
|
748
|
+
// #479: gate for the three top-right icons (search pill, bell, profile). Default true so
|
|
749
|
+
// existing consumers are unaffected; an app that loads its header data asynchronously passes
|
|
750
|
+
// false until user + notifications + search have all settled, then true to reveal all at once.
|
|
751
|
+
ready: {
|
|
752
|
+
type: Boolean,
|
|
753
|
+
default: !0
|
|
747
754
|
}
|
|
748
755
|
},
|
|
749
756
|
emits: [
|
|
@@ -766,7 +773,7 @@ const at = {
|
|
|
766
773
|
function S() {
|
|
767
774
|
y("home"), g(o.homeUrl);
|
|
768
775
|
}
|
|
769
|
-
function
|
|
776
|
+
function v() {
|
|
770
777
|
window.history.back();
|
|
771
778
|
}
|
|
772
779
|
function f(n) {
|
|
@@ -777,14 +784,14 @@ const at = {
|
|
|
777
784
|
R(n.$slots, "logo"),
|
|
778
785
|
e.title ? (a(), u("span", Ot, [
|
|
779
786
|
j(b(e.title), 1),
|
|
780
|
-
e.subtitle ? (a(), u("span", Lt, " " + b(e.subtitle), 1)) :
|
|
781
|
-
])) :
|
|
787
|
+
e.subtitle ? (a(), u("span", Lt, " " + b(e.subtitle), 1)) : m("", !0)
|
|
788
|
+
])) : m("", !0),
|
|
782
789
|
_.value ? (a(), u("span", {
|
|
783
790
|
key: 1,
|
|
784
791
|
class: "h-[45px] w-[2px] shrink-0",
|
|
785
792
|
style: q({ background: _.value }),
|
|
786
793
|
"aria-hidden": "true"
|
|
787
|
-
}, null, 4)) :
|
|
794
|
+
}, null, 4)) : m("", !0),
|
|
788
795
|
r("nav", {
|
|
789
796
|
class: "flex items-center gap-7 text-proclusteal-600 dark:text-content-muted",
|
|
790
797
|
style: q({ "--hdr-accent": A.value })
|
|
@@ -805,44 +812,46 @@ const at = {
|
|
|
805
812
|
], 8, zt)
|
|
806
813
|
]),
|
|
807
814
|
_: 1
|
|
808
|
-
}, 8, ["text"])) :
|
|
815
|
+
}, 8, ["text"])) : m("", !0),
|
|
809
816
|
e.showBack ? (a(), u("button", {
|
|
810
817
|
key: 1,
|
|
811
818
|
type: "button",
|
|
812
819
|
class: "cursor-pointer hover:text-[var(--hdr-accent)]",
|
|
813
820
|
title: "Go Back",
|
|
814
821
|
"aria-label": "Go Back",
|
|
815
|
-
onClick:
|
|
822
|
+
onClick: v
|
|
816
823
|
}, [
|
|
817
824
|
T(Te, { class: "!h-[22px] !w-[22px]" })
|
|
818
|
-
])) :
|
|
825
|
+
])) : m("", !0),
|
|
819
826
|
R(n.$slots, "nav-extra")
|
|
820
827
|
], 4),
|
|
821
828
|
R(n.$slots, "left")
|
|
822
829
|
]),
|
|
823
830
|
r("div", Dt, [
|
|
824
831
|
R(n.$slots, "right"),
|
|
825
|
-
e.
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
832
|
+
e.ready ? (a(), u(H, { key: 0 }, [
|
|
833
|
+
e.searchProvider ? (a(), I(Le, {
|
|
834
|
+
key: 0,
|
|
835
|
+
onClick: c[0] || (c[0] = (d) => x.value = !0)
|
|
836
|
+
})) : m("", !0),
|
|
837
|
+
w.value ? (a(), I(kt, {
|
|
838
|
+
key: 1,
|
|
839
|
+
notifications: e.notifications,
|
|
840
|
+
"unread-count": e.unreadCount,
|
|
841
|
+
"notifications-url": e.notificationsUrl,
|
|
842
|
+
"icon-map": e.notificationIconMap,
|
|
843
|
+
onMarkAsRead: c[1] || (c[1] = (d) => n.$emit("markAsRead", d)),
|
|
844
|
+
onDeleteNotification: c[2] || (c[2] = (d) => n.$emit("deleteNotification", d)),
|
|
845
|
+
onOpen: c[3] || (c[3] = (d) => n.$emit("notifications-open")),
|
|
846
|
+
onNavigate: g
|
|
847
|
+
}, null, 8, ["notifications", "unread-count", "notifications-url", "icon-map"])) : m("", !0),
|
|
848
|
+
e.user ? (a(), I(Et, {
|
|
849
|
+
key: 2,
|
|
850
|
+
user: e.user,
|
|
851
|
+
"menu-items": e.menuItems,
|
|
852
|
+
onSelect: f
|
|
853
|
+
}, null, 8, ["user", "menu-items"])) : m("", !0)
|
|
854
|
+
], 64)) : m("", !0)
|
|
846
855
|
]),
|
|
847
856
|
e.searchProvider ? (a(), I(tt, {
|
|
848
857
|
key: 0,
|
|
@@ -852,7 +861,7 @@ const at = {
|
|
|
852
861
|
placeholder: e.searchPlaceholder,
|
|
853
862
|
types: e.searchTypes,
|
|
854
863
|
onNavigate: g
|
|
855
|
-
}, null, 8, ["open", "search-provider", "placeholder", "types"])) :
|
|
864
|
+
}, null, 8, ["open", "search-provider", "placeholder", "types"])) : m("", !0)
|
|
856
865
|
]));
|
|
857
866
|
}
|
|
858
867
|
};
|
|
@@ -1,43 +1,66 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { CircleCheckIcon as
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { shallowRef as te, ref as T, computed as A, watch as Z, openBlock as t, createElementBlock as n, normalizeClass as k, createElementVNode as l, toDisplayString as h, createCommentVNode as w, createTextVNode as D, createBlock as P, unref as b, normalizeStyle as G, Fragment as S, renderList as R, withModifiers as j, resolveDynamicComponent as E, createVNode as C, withCtx as O, onMounted as oe, renderSlot as z } from "vue";
|
|
2
|
+
import { CircleCheckIcon as _, CircleExclamationIcon as ne, ScrewdriverWrenchIcon as re, ChevronLeftIcon as ie, ChevronRightIcon as se, ChevronDownIcon as le, MagnifyingGlassIcon as ce } from "@zealsolutions/zeal-ui/icons";
|
|
3
|
+
import ae from "../../CircleExclamationIcon-vvAjN3c9.js";
|
|
4
|
+
import { DropdownMenu as ue, DropdownMenuItem as L } from "@zealsolutions/zeal-ui/menus";
|
|
5
|
+
import { ToggleSwitch as de } from "@zealsolutions/zeal-ui/inputs";
|
|
6
|
+
const me = (e, p, o) => {
|
|
7
|
+
const x = e[p];
|
|
8
|
+
return x ? typeof x == "function" ? x() : Promise.resolve(x) : new Promise((y, u) => {
|
|
9
|
+
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(u.bind(null, new Error("Unknown variable dynamic import: " + p + (p.split("/").length !== o ? ". Note that variables only represent file names one level deep." : ""))));
|
|
9
10
|
});
|
|
10
|
-
},
|
|
11
|
+
}, F = /* @__PURE__ */ new Map(), U = /* @__PURE__ */ new Map(), ee = te(0), J = ae, Q = (e, p) => (F.set(e, p), U.delete(e), ee.value += 1, p), ve = (e) => {
|
|
12
|
+
if (F.has(e))
|
|
13
|
+
return Promise.resolve(F.get(e));
|
|
14
|
+
if (U.has(e))
|
|
15
|
+
return U.get(e);
|
|
16
|
+
const p = me(/* @__PURE__ */ Object.assign({ "../icons/ActionCardsIcon.vue": () => import("../../ActionCardsIcon-DVoEt3PI.js"), "../icons/AddressBookIcon.vue": () => import("../../AddressBookIcon-BgzCF09l.js"), "../icons/AlarmClockIcon.vue": () => import("../../AlarmClockIcon-DMGjjgG0.js"), "../icons/AmbulanceDashboardIcon.vue": () => import("../../AmbulanceDashboardIcon-DygVK4uF.js"), "../icons/ArrowDownBigSmallIcon.vue": () => import("../../ArrowDownBigSmallIcon-lZ9pk2em.js"), "../icons/ArrowDownShortWideIcon.vue": () => import("../../ArrowDownShortWideIcon-BLOm1Mre.js"), "../icons/ArrowLeftIcon.vue": () => import("../../ArrowLeftIcon-Cgsy08pY.js"), "../icons/ArrowRightBracketIcon.vue": () => import("../../ArrowRightBracketIcon-D_o7oYWm.js"), "../icons/ArrowRotateLeftIcon.vue": () => import("../../ArrowRotateLeftIcon-C0xWKiJr.js"), "../icons/ArrowRotateRightIcon.vue": () => import("../../ArrowRotateRightIcon-w1VDxH4v.js"), "../icons/ArrowUpShortWideIcon.vue": () => import("../../ArrowUpShortWideIcon-B12ffThe.js"), "../icons/AssessmentsIcon.vue": () => import("../../AssessmentsIcon-gl1lqzM4.js"), "../icons/AssetManagementIcon.vue": () => import("../../AssetManagementIcon-CZpbTi7n.js"), "../icons/AtvOpsIcon.vue": () => import("../../AtvOpsIcon-CjHLrzoV.js"), "../icons/BaOpsIcon.vue": () => import("../../BaOpsIcon-DB-Y_SKE.js"), "../icons/BanIcon.vue": () => import("../../BanIcon-CbthmzAX.js"), "../icons/BarsIcon.vue": () => import("../../BarsIcon-CY8KeVq7.js"), "../icons/BarsSortIcon.vue": () => import("../../BarsSortIcon-C82qc15Z.js"), "../icons/BellIcon.vue": () => import("../../BellIcon-lK5EZXNf.js"), "../icons/BinaryIcon.vue": () => import("../../BinaryIcon-tkr7wetP.js"), "../icons/BoxArchiveIcon.vue": () => import("../../BoxArchiveIcon-B4_zsjvg.js"), "../icons/CalendarIcon.vue": () => import("../../CalendarIcon-DjSv5Y23.js"), "../icons/CalendarWeekIcon.vue": () => import("../../CalendarWeekIcon-CB4Z1TI4.js"), "../icons/CanvasIcon.vue": () => import("../../CanvasIcon-DujLyvWA.js"), "../icons/CartCirclePlusIcon.vue": () => import("../../CartCirclePlusIcon-G5cxd3cI.js"), "../icons/CartCircleXMarkIcon.vue": () => import("../../CartCircleXMarkIcon-DzHSQZgf.js"), "../icons/ChangeManagementIcon.vue": () => import("../../ChangeManagementIcon-BA89LgWl.js"), "../icons/ChartMixedUpCircleCurrencyIcon.vue": () => import("../../ChartMixedUpCircleCurrencyIcon-EQo7EVbb.js"), "../icons/ChartPieIcon.vue": () => import("../../ChartPieIcon-BqRF_9mq.js"), "../icons/ChartScatterBubbleIcon.vue": () => import("../../ChartScatterBubbleIcon-N_XXIVAy.js"), "../icons/CheckIcon.vue": () => import("../../CheckIcon-D0-G6sID.js"), "../icons/CheckToSlotIcon.vue": () => import("../../CheckToSlotIcon-Cs83T9dM.js"), "../icons/ChevronDownIcon.vue": () => import("../../ChevronDownIcon-CrC-BSpe.js"), "../icons/ChevronLeftIcon.vue": () => import("../../ChevronLeftIcon-ChE9LoOU.js"), "../icons/ChevronRightIcon.vue": () => import("../../ChevronRightIcon-DknltHiN.js"), "../icons/CircleCheckIcon.vue": () => import("../../CircleCheckIcon-CA15yXgI.js"), "../icons/CircleExclamationIcon.vue": () => import("../../CircleExclamationIcon-vvAjN3c9.js"), "../icons/CircleInfoIcon.vue": () => import("../../CircleInfoIcon-B6-Jx1og.js"), "../icons/CircleStatusIcon.vue": () => import("../../CircleStatusIcon-C4Av0hTY.js"), "../icons/CircleUserIcon.vue": () => import("../../CircleUserIcon-BERzSCQL.js"), "../icons/ClipboardListCheckIcon.vue": () => import("../../ClipboardListCheckIcon-BZlyFoiD.js"), "../icons/ClockThreeIcon.vue": () => import("../../ClockThreeIcon-D836f-XQ.js"), "../icons/ColumnsThreeIcon.vue": () => import("../../ColumnsThreeIcon-FFmylJtj.js"), "../icons/CommentLinesIcon.vue": () => import("../../CommentLinesIcon-vzfGZXs1.js"), "../icons/ConfinedSpaceIcon.vue": () => import("../../ConfinedSpaceIcon-B41rnh-F.js"), "../icons/CorridorCareIcon.vue": () => import("../../CorridorCareIcon-DtlRYipD.js"), "../icons/DiagramSubtaskIcon.vue": () => import("../../DiagramSubtaskIcon-DCSBGD55.js"), "../icons/DownloadIcon.vue": () => import("../../DownloadIcon-DQV6C5Ow.js"), "../icons/DrawCircleIcon.vue": () => import("../../DrawCircleIcon-D8gwcOmI.js"), "../icons/DroneIcon.vue": () => import("../../DroneIcon-BLQyrOAI.js"), "../icons/DroneUasIcon.vue": () => import("../../DroneUasIcon-rmUiyuhO.js"), "../icons/ECUDashboardIcon.vue": () => import("../../ECUDashboardIcon-njF42ISk.js"), "../icons/ECUDiaryIcon.vue": () => import("../../ECUDiaryIcon-Bm5nOSho.js"), "../icons/EDSIcon.vue": () => import("../../EDSIcon-AMFbBj6R.js"), "../icons/ElevatorIcon.vue": () => import("../../ElevatorIcon-DrJ-pkZh.js"), "../icons/EllipsisStrokeVerticalIcon.vue": () => import("../../EllipsisStrokeVerticalIcon-Boej-QsH.js"), "../icons/EnvelopeIcon.vue": () => import("../../EnvelopeIcon-45jlW_J-.js"), "../icons/ExcelIcon.vue": () => import("../../ExcelIcon-DHy8cDC5.js"), "../icons/ExpandIcon.vue": () => import("../../ExpandIcon-CVoLHHsv.js"), "../icons/FileChartColumnIcon.vue": () => import("../../FileChartColumnIcon-CUXA0UIo.js"), "../icons/FileCirclePlusIcon.vue": () => import("../../FileCirclePlusIcon-BPIUVxNH.js"), "../icons/FileExportIcon.vue": () => import("../../FileExportIcon-BUFrkL8u.js"), "../icons/FileInvoiceIcon.vue": () => import("../../FileInvoiceIcon-DTthf77K.js"), "../icons/FilePdfIcon.vue": () => import("../../FilePdfIcon-DXBoTMfq.js"), "../icons/FilesIcon.vue": () => import("../../FilesIcon-NLAyR0HT.js"), "../icons/FilmIcon.vue": () => import("../../FilmIcon-CE9gVpsG.js"), "../icons/FilterCircleXMarkIcon.vue": () => import("../../FilterCircleXMarkIcon-BJDPebzG.js"), "../icons/FilterIcon.vue": () => import("../../FilterIcon-DRVfA14W.js"), "../icons/FlagSwallowtailIcon.vue": () => import("../../FlagSwallowtailIcon-Cyn4dyNg.js"), "../icons/FloppyDiskIcon.vue": () => import("../../FloppyDiskIcon-Cw0-K5K-.js"), "../icons/FolderIcon.vue": () => import("../../FolderIcon-CqU6uofl.js"), "../icons/FolderPlusIcon.vue": () => import("../../FolderPlusIcon-D3qHxSZ_.js"), "../icons/FoldersIcon.vue": () => import("../../FoldersIcon-nngwhzSc.js"), "../icons/GalleryThumbnailsIcon.vue": () => import("../../GalleryThumbnailsIcon-CafNHt1r.js"), "../icons/GearComplexIcon.vue": () => import("../../GearComplexIcon-CEpf_6SO.js"), "../icons/GearsIcon.vue": () => import("../../GearsIcon-BoH1vuST.js"), "../icons/GlobePointerIcon.vue": () => import("../../GlobePointerIcon-CTX_aWSw.js"), "../icons/GraduationCapIcon.vue": () => import("../../GraduationCapIcon-BFBWEjtB.js"), "../icons/GridIcon.vue": () => import("../../GridIcon-H6sKXK2d.js"), "../icons/HandsBubblesIcon.vue": () => import("../../HandsBubblesIcon-DFrgWVYR.js"), "../icons/HazmatIcon.vue": () => import("../../HazmatIcon-CPLZe_1e.js"), "../icons/HcidIcon.vue": () => import("../../HcidIcon-Bl-OeftA.js"), "../icons/HouseIcon.vue": () => import("../../HouseIcon-BxmNyxvv.js"), "../icons/ImageIcon.vue": () => import("../../ImageIcon-jkYGKPiB.js"), "../icons/IncidentCentreIcon.vue": () => import("../../IncidentCentreIcon-BivSQikQ.js"), "../icons/IncidentRecordingIcon.vue": () => import("../../IncidentRecordingIcon-CBZ53akp.js"), "../icons/LIDIcon.vue": () => import("../../LIDIcon-COK3SSxJ.js"), "../icons/LifeRingIcon.vue": () => import("../../LifeRingIcon-BfoL25Bs.js"), "../icons/LightEmergencyOnIcon.vue": () => import("../../LightEmergencyOnIcon-DapDPOcV.js"), "../icons/LightFilmCirclePlusIcon.vue": () => import("../../LightFilmCirclePlusIcon-BONccXvN.js"), "../icons/ListRadioIcon.vue": () => import("../../ListRadioIcon-gmE_fzgA.js"), "../icons/ListTreeIcon.vue": () => import("../../ListTreeIcon-DMhYL_id.js"), "../icons/LockKeyholeIcon.vue": () => import("../../LockKeyholeIcon-M6F8rvn1.js"), "../icons/MagnifyingGlassIcon.vue": () => import("../../MagnifyingGlassIcon-ChYNIA-H.js"), "../icons/MapLocationDotIcon.vue": () => import("../../MapLocationDotIcon-DnfuF78q.js"), "../icons/MassCasualtyIcon.vue": () => import("../../MassCasualtyIcon-BT77dR9v.js"), "../icons/McvIcon.vue": () => import("../../McvIcon-BwYxt18h.js"), "../icons/MemoCircleInfoIcon.vue": () => import("../../MemoCircleInfoIcon-BlwKM09z.js"), "../icons/MtaIcon.vue": () => import("../../MtaIcon-Ce1CRjSv.js"), "../icons/NACCIcon.vue": () => import("../../NACCIcon-Dxs2xXhX.js"), "../icons/NARUDiaryIcon.vue": () => import("../../NARUDiaryIcon-BpjRMYLV.js"), "../icons/NotebookIcon.vue": () => import("../../NotebookIcon-SG3po-jP.js"), "../icons/NotificationIcon.vue": () => import("../../NotificationIcon-BqK4xBPK.js"), "../icons/NxgenPpeIcon.vue": () => import("../../NxgenPpeIcon-Wgryynup.js"), "../icons/ObjectColumnIcon.vue": () => import("../../ObjectColumnIcon-CxAILX7x.js"), "../icons/OperationalIcon.vue": () => import("../../OperationalIcon-e3NUbsC-.js"), "../icons/PdfIcon.vue": () => import("../../PdfIcon-C6jEHH_e.js"), "../icons/PencilIcon.vue": () => import("../../PencilIcon-B-Jl71yl.js"), "../icons/PhoneIcon.vue": () => import("../../PhoneIcon-CTVTNYc-.js"), "../icons/PodcastIcon.vue": () => import("../../PodcastIcon-Cb_mKKJA.js"), "../icons/PptIcon.vue": () => import("../../PptIcon-DHu5hT4-.js"), "../icons/PresentationIcon.vue": () => import("../../PresentationIcon-DZCQn354.js"), "../icons/PrpsIcon.vue": () => import("../../PrpsIcon-6Oi2vz3-.js"), "../icons/PuzzleIcon.vue": () => import("../../PuzzleIcon-CrfUdlft.js"), "../icons/RadiationIcon.vue": () => import("../../RadiationIcon-BYbqFtwp.js"), "../icons/RectangleVerticalHistoryIcon.vue": () => import("../../RectangleVerticalHistoryIcon-Bd5aXMEw.js"), "../icons/RotateExclamationIcon.vue": () => import("../../RotateExclamationIcon-DTRbZW-G.js"), "../icons/SOPIcon.vue": () => import("../../SOPIcon-Bf_kvdnd.js"), "../icons/SafetyAlertSystemIcon.vue": () => import("../../SafetyAlertSystemIcon-CO2Nfwnt.js"), "../icons/SafetyHeightIcon.vue": () => import("../../SafetyHeightIcon-BaJ_NRPQ.js"), "../icons/ScaleUnbalancedFlipIcon.vue": () => import("../../ScaleUnbalancedFlipIcon-DU-k-Tep.js"), "../icons/ScreenUsersIcon.vue": () => import("../../ScreenUsersIcon-EddBouXr.js"), "../icons/ScrewdriverWrenchIcon.vue": () => import("../../ScrewdriverWrenchIcon-BhtNFcaF.js"), "../icons/SealExclamationIcon.vue": () => import("../../SealExclamationIcon-D-eOlbgS.js"), "../icons/SecuritySupportIcon.vue": () => import("../../SecuritySupportIcon-DftM1Sex.js"), "../icons/ShareFromSquareIcon.vue": () => import("../../ShareFromSquareIcon-C0oKnHP4.js"), "../icons/SlidersIcon.vue": () => import("../../SlidersIcon-DOirWVZO.js"), "../icons/SquareDashedCirclePlusIcon.vue": () => import("../../SquareDashedCirclePlusIcon-CsXEyAth.js"), "../icons/SquareSlidersVerticalIcon.vue": () => import("../../SquareSlidersVerticalIcon-Bku5zH2X.js"), "../icons/TableIcon.vue": () => import("../../TableIcon-uwPPbqM3.js"), "../icons/TableLayoutIcon.vue": () => import("../../TableLayoutIcon-DvoDyX-j.js"), "../icons/TacticalIcon.vue": () => import("../../TacticalIcon-C0YV6OYa.js"), "../icons/TelephoneDirectoryIcon.vue": () => import("../../TelephoneDirectoryIcon-ByWmavfU.js"), "../icons/TimelineArrowIcon.vue": () => import("../../TimelineArrowIcon-DLKL7fEt.js"), "../icons/TrashCanIcon.vue": () => import("../../TrashCanIcon-DK9reURF.js"), "../icons/UnstableTerrainIcon.vue": () => import("../../UnstableTerrainIcon-DEgUJyEe.js"), "../icons/UploadIcon.vue": () => import("../../UploadIcon-DJeF8sKk.js"), "../icons/UserGearIcon.vue": () => import("../../UserGearIcon-AsvyYngF.js"), "../icons/UserGroupIcon.vue": () => import("../../UserGroupIcon-CgsxU3om.js"), "../icons/UserIcon.vue": () => import("../../UserIcon-18Fdcxc7.js"), "../icons/UserLockIcon.vue": () => import("../../UserLockIcon-COP7tSIf.js"), "../icons/UserPenIcon.vue": () => import("../../UserPenIcon-BTz7TA4o.js"), "../icons/UserSlashIcon.vue": () => import("../../UserSlashIcon-D4F1vuC-.js"), "../icons/UserUnlockIcon.vue": () => import("../../UserUnlockIcon-vQKpd81r.js"), "../icons/UsersGearIcon.vue": () => import("../../UsersGearIcon-B0CALrq_.js"), "../icons/UsersIcon.vue": () => import("../../UsersIcon-DmjMjOOp.js"), "../icons/UsersSlashIcon.vue": () => import("../../UsersSlashIcon-BZAhqwjK.js"), "../icons/VanShuttleIcon.vue": () => import("../../VanShuttleIcon-DCWc9V_R.js"), "../icons/WaterOpsIcon.vue": () => import("../../WaterOpsIcon-DG9LJevA.js"), "../icons/WaveFormLinesIcon.vue": () => import("../../WaveFormLinesIcon-ChpDxryS.js"), "../icons/WelfareIcon.vue": () => import("../../WelfareIcon-C9QQdcfy.js"), "../icons/WordIcon.vue": () => import("../../WordIcon-D7lLU9qE.js"), "../icons/XMarkIcon.vue": () => import("../../XMarkIcon-DKJ_--uA.js") }), `../icons/${e}.vue`, 3).then((o) => Q(e, o.default ?? J)).catch((o) => (console.error(`[zeal-ui] Table icon "${e}" could not be loaded.`, o), Q(e, J)));
|
|
17
|
+
return U.set(e, p), p;
|
|
18
|
+
}, pe = (e) => Promise.all([...new Set(e)].map(ve)), fe = (e) => (ee.value, F.has(e)), V = (e) => F.get(e), be = { class: "tooltiptext text-white text-xs text-center !py-[10px] !px-4 !-top-[50px] !z-50 min-w-10 !w-fit left-1/2 transform -translate-x-1/2 font-sans" }, xe = {
|
|
11
19
|
key: 1,
|
|
12
20
|
class: "border-b-[1px] border-steel-300 dark:border-line"
|
|
13
|
-
},
|
|
21
|
+
}, Ie = { class: "w-full flex items-center justify-end" }, he = ["onClick"], ke = {
|
|
14
22
|
key: 0,
|
|
15
23
|
class: "tooltiptext-left text-white font-semibold text-xs text-center !py-[10px] !px-4 !z-50 min-w-10 !w-fit -translate-y-1/2"
|
|
16
|
-
},
|
|
17
|
-
key:
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}, fe = {
|
|
24
|
+
}, ge = {
|
|
25
|
+
key: 1,
|
|
26
|
+
"data-icon-placeholder": "",
|
|
27
|
+
class: "float-left ml-6 block h-[22px] w-[22px]",
|
|
28
|
+
"aria-hidden": "true"
|
|
29
|
+
}, Ce = {
|
|
23
30
|
key: 0,
|
|
24
31
|
class: "flex flex-row gap-x-4 justify-center"
|
|
25
|
-
},
|
|
32
|
+
}, ye = ["onClick"], we = {
|
|
33
|
+
key: 1,
|
|
34
|
+
"data-icon-placeholder": "",
|
|
35
|
+
class: "block h-10 w-10",
|
|
36
|
+
"aria-hidden": "true"
|
|
37
|
+
}, Se = {
|
|
38
|
+
key: 2,
|
|
39
|
+
class: "tooltiptext text-white font-semibold text-xs text-center !py-[10px] !px-4 !-top-[50px] !z-50 min-w-10 !w-fit left-1/2 transform -translate-x-1/2"
|
|
40
|
+
}, Te = {
|
|
26
41
|
key: 1,
|
|
27
42
|
class: "flex flex-row gap-x-4 justify-center"
|
|
28
|
-
},
|
|
43
|
+
}, Re = ["onClick"], De = {
|
|
44
|
+
key: 1,
|
|
45
|
+
"data-icon-placeholder": "",
|
|
46
|
+
class: "block h-10 w-10",
|
|
47
|
+
"aria-hidden": "true"
|
|
48
|
+
}, Pe = {
|
|
49
|
+
key: 2,
|
|
50
|
+
class: "tooltiptext text-white font-semibold text-xs text-center !py-[10px] !px-4 !-top-[50px] !z-50 min-w-10 !w-fit left-1/2 transform -translate-x-1/2"
|
|
51
|
+
}, $e = {
|
|
29
52
|
key: 0,
|
|
30
53
|
class: "text-center"
|
|
31
|
-
},
|
|
54
|
+
}, Ae = {
|
|
32
55
|
key: 1,
|
|
33
56
|
class: "flex justify-center"
|
|
34
|
-
},
|
|
57
|
+
}, Be = { class: "bg-success-950 text-white text-xs rounded-full text-center relative tooltip p-0 w-6 h-6 flex items-center justify-center" }, Oe = /* @__PURE__ */ l("span", { class: "absolute inset-0 rounded-full border-2 border-success-500 animate-ping" }, null, -1), Me = { class: "tooltiptext-left text-white font-semibold text-xs text-center !py-[10px] !px-4 !z-50 min-w-10 !w-fit -translate-y-1/2" }, Fe = {
|
|
35
58
|
key: 2,
|
|
36
59
|
class: "flex justify-center"
|
|
37
|
-
},
|
|
60
|
+
}, Le = { class: "bg-warning-950 text-white text-xs rounded-full text-center relative tooltip w-6 h-6 flex items-center justify-center" }, Ue = /* @__PURE__ */ l("span", { class: "text-white font-bold text-lg" }, "-", -1), qe = /* @__PURE__ */ l("span", { class: "absolute inset-0 rounded-full border-2 border-warning-950 animate-ping" }, null, -1), Ne = { class: "tooltiptext-left text-white font-semibold text-xs text-center !py-[10px] !px-4 !z-50 min-w-10 !w-fit -translate-y-1/2" }, je = {
|
|
38
61
|
key: 3,
|
|
39
62
|
class: "flex justify-center"
|
|
40
|
-
},
|
|
63
|
+
}, Ee = { class: "bg-error-950 text-white text-xs rounded-full text-center relative tooltip w-6 h-6 flex items-center justify-center" }, ze = /* @__PURE__ */ l("span", { class: "text-white font-bold text-lg" }, "×", -1), Ve = /* @__PURE__ */ l("span", { class: "absolute inset-0 rounded-full border-2 border-error-500 animate-ping" }, null, -1), Ge = { class: "tooltiptext-left text-white font-semibold text-xs text-center !py-[10px] !px-4 !z-50 min-w-10 !w-fit -translate-y-1/2" }, M = "whitespace-nowrap border-b-[1px] border-steel-300 dark:border-line px-5 py-3 h-[22px]", Y = {
|
|
41
64
|
__name: "TableData",
|
|
42
65
|
props: {
|
|
43
66
|
colInfo: {
|
|
@@ -60,151 +83,153 @@ const re = (e, g, r) => {
|
|
|
60
83
|
}
|
|
61
84
|
},
|
|
62
85
|
emits: ["actionButtonClicked"],
|
|
63
|
-
setup(e, { emit:
|
|
64
|
-
const r = e, m = g, C = w("Copy URL"), a = (u) => K(() => re(/* @__PURE__ */ Object.assign({ "../icons/ActionCardsIcon.vue": () => import("../../ActionCardsIcon-DVoEt3PI.js"), "../icons/AddressBookIcon.vue": () => import("../../AddressBookIcon-BgzCF09l.js"), "../icons/AlarmClockIcon.vue": () => import("../../AlarmClockIcon-DMGjjgG0.js"), "../icons/AmbulanceDashboardIcon.vue": () => import("../../AmbulanceDashboardIcon-DygVK4uF.js"), "../icons/ArrowDownBigSmallIcon.vue": () => import("../../ArrowDownBigSmallIcon-lZ9pk2em.js"), "../icons/ArrowDownShortWideIcon.vue": () => import("../../ArrowDownShortWideIcon-BLOm1Mre.js"), "../icons/ArrowLeftIcon.vue": () => import("../../ArrowLeftIcon-Cgsy08pY.js"), "../icons/ArrowRightBracketIcon.vue": () => import("../../ArrowRightBracketIcon-D_o7oYWm.js"), "../icons/ArrowRotateLeftIcon.vue": () => import("../../ArrowRotateLeftIcon-C0xWKiJr.js"), "../icons/ArrowRotateRightIcon.vue": () => import("../../ArrowRotateRightIcon-w1VDxH4v.js"), "../icons/ArrowUpShortWideIcon.vue": () => import("../../ArrowUpShortWideIcon-B12ffThe.js"), "../icons/AssessmentsIcon.vue": () => import("../../AssessmentsIcon-gl1lqzM4.js"), "../icons/AssetManagementIcon.vue": () => import("../../AssetManagementIcon-CZpbTi7n.js"), "../icons/AtvOpsIcon.vue": () => import("../../AtvOpsIcon-CjHLrzoV.js"), "../icons/BaOpsIcon.vue": () => import("../../BaOpsIcon-DB-Y_SKE.js"), "../icons/BanIcon.vue": () => import("../../BanIcon-CbthmzAX.js"), "../icons/BarsIcon.vue": () => import("../../BarsIcon-CY8KeVq7.js"), "../icons/BarsSortIcon.vue": () => import("../../BarsSortIcon-C82qc15Z.js"), "../icons/BellIcon.vue": () => import("../../BellIcon-lK5EZXNf.js"), "../icons/BinaryIcon.vue": () => import("../../BinaryIcon-tkr7wetP.js"), "../icons/BoxArchiveIcon.vue": () => import("../../BoxArchiveIcon-B4_zsjvg.js"), "../icons/CalendarIcon.vue": () => import("../../CalendarIcon-DjSv5Y23.js"), "../icons/CalendarWeekIcon.vue": () => import("../../CalendarWeekIcon-CB4Z1TI4.js"), "../icons/CanvasIcon.vue": () => import("../../CanvasIcon-DujLyvWA.js"), "../icons/CartCirclePlusIcon.vue": () => import("../../CartCirclePlusIcon-G5cxd3cI.js"), "../icons/CartCircleXMarkIcon.vue": () => import("../../CartCircleXMarkIcon-DzHSQZgf.js"), "../icons/ChangeManagementIcon.vue": () => import("../../ChangeManagementIcon-BA89LgWl.js"), "../icons/ChartMixedUpCircleCurrencyIcon.vue": () => import("../../ChartMixedUpCircleCurrencyIcon-EQo7EVbb.js"), "../icons/ChartPieIcon.vue": () => import("../../ChartPieIcon-BqRF_9mq.js"), "../icons/ChartScatterBubbleIcon.vue": () => import("../../ChartScatterBubbleIcon-N_XXIVAy.js"), "../icons/CheckIcon.vue": () => import("../../CheckIcon-D0-G6sID.js"), "../icons/CheckToSlotIcon.vue": () => import("../../CheckToSlotIcon-Cs83T9dM.js"), "../icons/ChevronDownIcon.vue": () => import("../../ChevronDownIcon-CrC-BSpe.js"), "../icons/ChevronLeftIcon.vue": () => import("../../ChevronLeftIcon-ChE9LoOU.js"), "../icons/ChevronRightIcon.vue": () => import("../../ChevronRightIcon-DknltHiN.js"), "../icons/CircleCheckIcon.vue": () => import("../../CircleCheckIcon-CA15yXgI.js"), "../icons/CircleExclamationIcon.vue": () => import("../../CircleExclamationIcon-vvAjN3c9.js"), "../icons/CircleInfoIcon.vue": () => import("../../CircleInfoIcon-B6-Jx1og.js"), "../icons/CircleStatusIcon.vue": () => import("../../CircleStatusIcon-C4Av0hTY.js"), "../icons/CircleUserIcon.vue": () => import("../../CircleUserIcon-BERzSCQL.js"), "../icons/ClipboardListCheckIcon.vue": () => import("../../ClipboardListCheckIcon-BZlyFoiD.js"), "../icons/ClockThreeIcon.vue": () => import("../../ClockThreeIcon-D836f-XQ.js"), "../icons/ColumnsThreeIcon.vue": () => import("../../ColumnsThreeIcon-FFmylJtj.js"), "../icons/CommentLinesIcon.vue": () => import("../../CommentLinesIcon-vzfGZXs1.js"), "../icons/ConfinedSpaceIcon.vue": () => import("../../ConfinedSpaceIcon-B41rnh-F.js"), "../icons/CorridorCareIcon.vue": () => import("../../CorridorCareIcon-DtlRYipD.js"), "../icons/DiagramSubtaskIcon.vue": () => import("../../DiagramSubtaskIcon-DCSBGD55.js"), "../icons/DownloadIcon.vue": () => import("../../DownloadIcon-DQV6C5Ow.js"), "../icons/DrawCircleIcon.vue": () => import("../../DrawCircleIcon-D8gwcOmI.js"), "../icons/DroneIcon.vue": () => import("../../DroneIcon-BLQyrOAI.js"), "../icons/DroneUasIcon.vue": () => import("../../DroneUasIcon-rmUiyuhO.js"), "../icons/ECUDashboardIcon.vue": () => import("../../ECUDashboardIcon-njF42ISk.js"), "../icons/ECUDiaryIcon.vue": () => import("../../ECUDiaryIcon-Bm5nOSho.js"), "../icons/EDSIcon.vue": () => import("../../EDSIcon-AMFbBj6R.js"), "../icons/ElevatorIcon.vue": () => import("../../ElevatorIcon-DrJ-pkZh.js"), "../icons/EllipsisStrokeVerticalIcon.vue": () => import("../../EllipsisStrokeVerticalIcon-Boej-QsH.js"), "../icons/EnvelopeIcon.vue": () => import("../../EnvelopeIcon-45jlW_J-.js"), "../icons/ExcelIcon.vue": () => import("../../ExcelIcon-DHy8cDC5.js"), "../icons/ExpandIcon.vue": () => import("../../ExpandIcon-CVoLHHsv.js"), "../icons/FileChartColumnIcon.vue": () => import("../../FileChartColumnIcon-CUXA0UIo.js"), "../icons/FileCirclePlusIcon.vue": () => import("../../FileCirclePlusIcon-BPIUVxNH.js"), "../icons/FileExportIcon.vue": () => import("../../FileExportIcon-BUFrkL8u.js"), "../icons/FileInvoiceIcon.vue": () => import("../../FileInvoiceIcon-DTthf77K.js"), "../icons/FilePdfIcon.vue": () => import("../../FilePdfIcon-DXBoTMfq.js"), "../icons/FilesIcon.vue": () => import("../../FilesIcon-NLAyR0HT.js"), "../icons/FilmIcon.vue": () => import("../../FilmIcon-CE9gVpsG.js"), "../icons/FilterCircleXMarkIcon.vue": () => import("../../FilterCircleXMarkIcon-BJDPebzG.js"), "../icons/FilterIcon.vue": () => import("../../FilterIcon-DRVfA14W.js"), "../icons/FlagSwallowtailIcon.vue": () => import("../../FlagSwallowtailIcon-Cyn4dyNg.js"), "../icons/FloppyDiskIcon.vue": () => import("../../FloppyDiskIcon-Cw0-K5K-.js"), "../icons/FolderIcon.vue": () => import("../../FolderIcon-CqU6uofl.js"), "../icons/FolderPlusIcon.vue": () => import("../../FolderPlusIcon-D3qHxSZ_.js"), "../icons/FoldersIcon.vue": () => import("../../FoldersIcon-nngwhzSc.js"), "../icons/GalleryThumbnailsIcon.vue": () => import("../../GalleryThumbnailsIcon-CafNHt1r.js"), "../icons/GearComplexIcon.vue": () => import("../../GearComplexIcon-CEpf_6SO.js"), "../icons/GearsIcon.vue": () => import("../../GearsIcon-BoH1vuST.js"), "../icons/GlobePointerIcon.vue": () => import("../../GlobePointerIcon-CTX_aWSw.js"), "../icons/GraduationCapIcon.vue": () => import("../../GraduationCapIcon-BFBWEjtB.js"), "../icons/GridIcon.vue": () => import("../../GridIcon-H6sKXK2d.js"), "../icons/HandsBubblesIcon.vue": () => import("../../HandsBubblesIcon-DFrgWVYR.js"), "../icons/HazmatIcon.vue": () => import("../../HazmatIcon-CPLZe_1e.js"), "../icons/HcidIcon.vue": () => import("../../HcidIcon-Bl-OeftA.js"), "../icons/HouseIcon.vue": () => import("../../HouseIcon-BxmNyxvv.js"), "../icons/ImageIcon.vue": () => import("../../ImageIcon-jkYGKPiB.js"), "../icons/IncidentCentreIcon.vue": () => import("../../IncidentCentreIcon-BivSQikQ.js"), "../icons/IncidentRecordingIcon.vue": () => import("../../IncidentRecordingIcon-CBZ53akp.js"), "../icons/LIDIcon.vue": () => import("../../LIDIcon-COK3SSxJ.js"), "../icons/LifeRingIcon.vue": () => import("../../LifeRingIcon-BfoL25Bs.js"), "../icons/LightEmergencyOnIcon.vue": () => import("../../LightEmergencyOnIcon-DapDPOcV.js"), "../icons/LightFilmCirclePlusIcon.vue": () => import("../../LightFilmCirclePlusIcon-BONccXvN.js"), "../icons/ListRadioIcon.vue": () => import("../../ListRadioIcon-gmE_fzgA.js"), "../icons/ListTreeIcon.vue": () => import("../../ListTreeIcon-DMhYL_id.js"), "../icons/LockKeyholeIcon.vue": () => import("../../LockKeyholeIcon-M6F8rvn1.js"), "../icons/MagnifyingGlassIcon.vue": () => import("../../MagnifyingGlassIcon-ChYNIA-H.js"), "../icons/MapLocationDotIcon.vue": () => import("../../MapLocationDotIcon-DnfuF78q.js"), "../icons/MassCasualtyIcon.vue": () => import("../../MassCasualtyIcon-BT77dR9v.js"), "../icons/McvIcon.vue": () => import("../../McvIcon-BwYxt18h.js"), "../icons/MemoCircleInfoIcon.vue": () => import("../../MemoCircleInfoIcon-BlwKM09z.js"), "../icons/MtaIcon.vue": () => import("../../MtaIcon-Ce1CRjSv.js"), "../icons/NACCIcon.vue": () => import("../../NACCIcon-Dxs2xXhX.js"), "../icons/NARUDiaryIcon.vue": () => import("../../NARUDiaryIcon-BpjRMYLV.js"), "../icons/NotebookIcon.vue": () => import("../../NotebookIcon-SG3po-jP.js"), "../icons/NotificationIcon.vue": () => import("../../NotificationIcon-BqK4xBPK.js"), "../icons/NxgenPpeIcon.vue": () => import("../../NxgenPpeIcon-Wgryynup.js"), "../icons/ObjectColumnIcon.vue": () => import("../../ObjectColumnIcon-CxAILX7x.js"), "../icons/OperationalIcon.vue": () => import("../../OperationalIcon-e3NUbsC-.js"), "../icons/PdfIcon.vue": () => import("../../PdfIcon-C6jEHH_e.js"), "../icons/PencilIcon.vue": () => import("../../PencilIcon-B-Jl71yl.js"), "../icons/PhoneIcon.vue": () => import("../../PhoneIcon-CTVTNYc-.js"), "../icons/PodcastIcon.vue": () => import("../../PodcastIcon-Cb_mKKJA.js"), "../icons/PptIcon.vue": () => import("../../PptIcon-DHu5hT4-.js"), "../icons/PresentationIcon.vue": () => import("../../PresentationIcon-DZCQn354.js"), "../icons/PrpsIcon.vue": () => import("../../PrpsIcon-6Oi2vz3-.js"), "../icons/PuzzleIcon.vue": () => import("../../PuzzleIcon-CrfUdlft.js"), "../icons/RadiationIcon.vue": () => import("../../RadiationIcon-BYbqFtwp.js"), "../icons/RectangleVerticalHistoryIcon.vue": () => import("../../RectangleVerticalHistoryIcon-Bd5aXMEw.js"), "../icons/RotateExclamationIcon.vue": () => import("../../RotateExclamationIcon-DTRbZW-G.js"), "../icons/SOPIcon.vue": () => import("../../SOPIcon-Bf_kvdnd.js"), "../icons/SafetyAlertSystemIcon.vue": () => import("../../SafetyAlertSystemIcon-CO2Nfwnt.js"), "../icons/SafetyHeightIcon.vue": () => import("../../SafetyHeightIcon-BaJ_NRPQ.js"), "../icons/ScaleUnbalancedFlipIcon.vue": () => import("../../ScaleUnbalancedFlipIcon-DU-k-Tep.js"), "../icons/ScreenUsersIcon.vue": () => import("../../ScreenUsersIcon-EddBouXr.js"), "../icons/ScrewdriverWrenchIcon.vue": () => import("../../ScrewdriverWrenchIcon-BhtNFcaF.js"), "../icons/SealExclamationIcon.vue": () => import("../../SealExclamationIcon-D-eOlbgS.js"), "../icons/SecuritySupportIcon.vue": () => import("../../SecuritySupportIcon-DftM1Sex.js"), "../icons/ShareFromSquareIcon.vue": () => import("../../ShareFromSquareIcon-C0oKnHP4.js"), "../icons/SlidersIcon.vue": () => import("../../SlidersIcon-DOirWVZO.js"), "../icons/SquareDashedCirclePlusIcon.vue": () => import("../../SquareDashedCirclePlusIcon-CsXEyAth.js"), "../icons/SquareSlidersVerticalIcon.vue": () => import("../../SquareSlidersVerticalIcon-Bku5zH2X.js"), "../icons/TableIcon.vue": () => import("../../TableIcon-uwPPbqM3.js"), "../icons/TableLayoutIcon.vue": () => import("../../TableLayoutIcon-DvoDyX-j.js"), "../icons/TacticalIcon.vue": () => import("../../TacticalIcon-C0YV6OYa.js"), "../icons/TelephoneDirectoryIcon.vue": () => import("../../TelephoneDirectoryIcon-ByWmavfU.js"), "../icons/TimelineArrowIcon.vue": () => import("../../TimelineArrowIcon-DLKL7fEt.js"), "../icons/TrashCanIcon.vue": () => import("../../TrashCanIcon-DK9reURF.js"), "../icons/UnstableTerrainIcon.vue": () => import("../../UnstableTerrainIcon-DEgUJyEe.js"), "../icons/UploadIcon.vue": () => import("../../UploadIcon-DJeF8sKk.js"), "../icons/UserGearIcon.vue": () => import("../../UserGearIcon-AsvyYngF.js"), "../icons/UserGroupIcon.vue": () => import("../../UserGroupIcon-CgsxU3om.js"), "../icons/UserIcon.vue": () => import("../../UserIcon-18Fdcxc7.js"), "../icons/UserLockIcon.vue": () => import("../../UserLockIcon-COP7tSIf.js"), "../icons/UserPenIcon.vue": () => import("../../UserPenIcon-BTz7TA4o.js"), "../icons/UserSlashIcon.vue": () => import("../../UserSlashIcon-D4F1vuC-.js"), "../icons/UserUnlockIcon.vue": () => import("../../UserUnlockIcon-vQKpd81r.js"), "../icons/UsersGearIcon.vue": () => import("../../UsersGearIcon-B0CALrq_.js"), "../icons/UsersIcon.vue": () => import("../../UsersIcon-DmjMjOOp.js"), "../icons/UsersSlashIcon.vue": () => import("../../UsersSlashIcon-BZAhqwjK.js"), "../icons/VanShuttleIcon.vue": () => import("../../VanShuttleIcon-DCWc9V_R.js"), "../icons/WaterOpsIcon.vue": () => import("../../WaterOpsIcon-DG9LJevA.js"), "../icons/WaveFormLinesIcon.vue": () => import("../../WaveFormLinesIcon-ChpDxryS.js"), "../icons/WelfareIcon.vue": () => import("../../WelfareIcon-C9QQdcfy.js"), "../icons/WordIcon.vue": () => import("../../WordIcon-D7lLU9qE.js"), "../icons/XMarkIcon.vue": () => import("../../XMarkIcon-DKJ_--uA.js") }), `../icons/${u}.vue`, 3)), p = (u, I) => {
|
|
86
|
+
setup(e, { emit: p }) {
|
|
87
|
+
const o = e, x = p, y = T("Copy URL"), u = (m) => m.condition ? m.condition === "IsDraft" ? !!o.rowData.IsDraft : m.condition === "IsArchivable" ? !!o.rowData.IsArchivable : !1 : !0, d = A(() => {
|
|
88
|
+
var I, s;
|
|
89
|
+
const m = ((I = o.colInfo) == null ? void 0 : I.associations) ?? [];
|
|
90
|
+
return (s = o.colInfo) != null && s.hideMissing ? m.filter((g) => (o.data ?? "").includes(g.name.toLowerCase())) : m;
|
|
91
|
+
}), f = A(() => {
|
|
92
|
+
var I, s;
|
|
93
|
+
const m = ((I = o.colInfo) == null ? void 0 : I.colType) === "icons" ? (o.colInfo.colIcons ?? []).filter(u).map((g) => g.name) : ((s = o.colInfo) == null ? void 0 : s.colType) === "associations" ? d.value.map((g) => g.icon) : [];
|
|
94
|
+
return [...new Set(m.filter(Boolean))];
|
|
95
|
+
}), a = A(() => f.value.every(fe));
|
|
96
|
+
Z(f, (m) => {
|
|
97
|
+
m.length && pe(m);
|
|
98
|
+
}, { immediate: !0 });
|
|
99
|
+
const $ = (m, I) => {
|
|
65
100
|
if (I) {
|
|
66
|
-
var
|
|
67
|
-
if (
|
|
68
|
-
return
|
|
101
|
+
var s = I.find((g) => g.name == m);
|
|
102
|
+
if (s)
|
|
103
|
+
return s.colour.toString();
|
|
69
104
|
}
|
|
70
105
|
return "";
|
|
71
|
-
},
|
|
72
|
-
navigator.clipboard.writeText(
|
|
106
|
+
}, B = (m) => {
|
|
107
|
+
navigator.clipboard.writeText(m).then(() => {
|
|
73
108
|
}).catch((I) => {
|
|
74
109
|
console.error("Failed to copy text: ", I);
|
|
75
|
-
}),
|
|
76
|
-
|
|
110
|
+
}), y.value = "Copied!", setTimeout(() => {
|
|
111
|
+
y.value = "Copy URL";
|
|
77
112
|
}, 2e3);
|
|
78
113
|
};
|
|
79
|
-
return (
|
|
114
|
+
return (m, I) => e.colInfo.colType === "text" ? (t(), n("td", {
|
|
80
115
|
key: 0,
|
|
81
|
-
class:
|
|
116
|
+
class: k([[M, e.colInfo.colClass, $(e.data, e.colInfo.colourLookup)], "break-words min-w-0 !whitespace-normal"])
|
|
82
117
|
}, [
|
|
83
118
|
e.colInfo.IsCopy ? (t(), n("i", {
|
|
84
119
|
key: 0,
|
|
85
120
|
class: "fa-solid fa-copy text-app-950 mr-1 cursor-pointer tooltip temp-tooltip",
|
|
86
|
-
onClick: I[0] || (I[0] = (
|
|
121
|
+
onClick: I[0] || (I[0] = (s) => B(e.data))
|
|
87
122
|
}, [
|
|
88
|
-
|
|
89
|
-
])) :
|
|
90
|
-
|
|
91
|
-
], 2)) : e.colInfo.colType === "boolean" ? (t(), n("td",
|
|
92
|
-
e.data === !0 ? (t(),
|
|
123
|
+
l("span", be, h(y.value), 1)
|
|
124
|
+
])) : w("", !0),
|
|
125
|
+
D(" " + h(e.data ? e.data : "-"), 1)
|
|
126
|
+
], 2)) : e.colInfo.colType === "boolean" ? (t(), n("td", xe, [
|
|
127
|
+
e.data === !0 ? (t(), P(b(_), {
|
|
93
128
|
key: 0,
|
|
94
129
|
class: "mx-auto text-success-950"
|
|
95
|
-
})) : (t(),
|
|
130
|
+
})) : (t(), P(b(ne), {
|
|
96
131
|
key: 1,
|
|
97
132
|
class: "mx-auto text-error-950"
|
|
98
133
|
}))
|
|
99
134
|
])) : e.colInfo.colType === "colourBox" ? (t(), n("td", {
|
|
100
135
|
key: 2,
|
|
101
136
|
class: "border-b-[1px] border-steel-300 dark:border-line",
|
|
102
|
-
style:
|
|
137
|
+
style: G("background-color:" + e.data)
|
|
103
138
|
}, null, 4)) : e.colInfo.colType === "icons" ? (t(), n("td", {
|
|
104
139
|
key: 3,
|
|
105
|
-
class:
|
|
140
|
+
class: k([M, e.colInfo.colClass])
|
|
106
141
|
}, [
|
|
107
|
-
|
|
108
|
-
(t(!0), n(S, null, R(e.colInfo.colIcons, (
|
|
109
|
-
key:
|
|
142
|
+
l("div", Ie, [
|
|
143
|
+
(t(!0), n(S, null, R(e.colInfo.colIcons, (s) => (t(), n("div", {
|
|
144
|
+
key: s.name
|
|
110
145
|
}, [
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
class: "float-left cursor-pointer ml-6 tooltip",
|
|
124
|
-
onClick: $((D) => m("actionButtonClicked", i.name), ["stop"])
|
|
125
|
-
}, [
|
|
126
|
-
(t(), y(A(a(i.name)), {
|
|
127
|
-
class: x(["text-[22px]", r.textColour])
|
|
128
|
-
}, null, 8, ["class"])),
|
|
129
|
-
i.tooltip ? (t(), n("span", me, v(i.tooltip), 1)) : k("", !0)
|
|
130
|
-
], 8, de)) : k("", !0),
|
|
131
|
-
i.condition === "IsArchivable" && e.rowData.IsArchivable ? (t(), n("button", {
|
|
132
|
-
key: 2,
|
|
133
|
-
class: "float-left cursor-pointer ml-6 tooltip",
|
|
134
|
-
onClick: $((D) => m("actionButtonClicked", i.name), ["stop"])
|
|
135
|
-
}, [
|
|
136
|
-
(t(), y(A(a(i.name)), {
|
|
137
|
-
class: x(["text-[22px]", r.textColour])
|
|
138
|
-
}, null, 8, ["class"])),
|
|
139
|
-
i.tooltip ? (t(), n("span", ve, v(i.tooltip), 1)) : k("", !0)
|
|
140
|
-
], 8, pe)) : k("", !0)
|
|
146
|
+
u(s) ? (t(), n(S, { key: 0 }, [
|
|
147
|
+
a.value ? (t(), n("button", {
|
|
148
|
+
key: 0,
|
|
149
|
+
class: "float-left cursor-pointer ml-6 tooltip",
|
|
150
|
+
onClick: j((g) => x("actionButtonClicked", s.name), ["stop"])
|
|
151
|
+
}, [
|
|
152
|
+
(t(), P(E(b(V)(s.name)), {
|
|
153
|
+
class: k(["text-[22px]", o.textColour])
|
|
154
|
+
}, null, 8, ["class"])),
|
|
155
|
+
s.tooltip ? (t(), n("span", ke, h(s.tooltip), 1)) : w("", !0)
|
|
156
|
+
], 8, he)) : (t(), n("span", ge))
|
|
157
|
+
], 64)) : w("", !0)
|
|
141
158
|
]))), 128))
|
|
142
159
|
])
|
|
143
160
|
], 2)) : e.colInfo.colType === "associations" ? (t(), n("td", {
|
|
144
161
|
key: 4,
|
|
145
|
-
class:
|
|
162
|
+
class: k([M, e.colInfo.colClass])
|
|
146
163
|
}, [
|
|
147
|
-
e.colInfo.hideMissing ? (t(), n("div",
|
|
148
|
-
(t(!0), n(S, null, R(
|
|
149
|
-
s
|
|
150
|
-
|
|
151
|
-
|
|
164
|
+
e.colInfo.hideMissing ? (t(), n("div", Ce, [
|
|
165
|
+
(t(!0), n(S, null, R(d.value, (s) => (t(), n("div", {
|
|
166
|
+
key: s.name,
|
|
167
|
+
class: "tooltip"
|
|
168
|
+
}, [
|
|
169
|
+
a.value ? (t(), n("button", {
|
|
170
|
+
key: 0,
|
|
171
|
+
class: k(["flex justify-center items-center p-1 h-10 w-10 ring-2 ring-offset-1 rounded-full", [s.bgColour, s.ringColour]]),
|
|
172
|
+
onClick: j((g) => x("actionButtonClicked", s.name.toLowerCase()), ["stop"])
|
|
152
173
|
}, [
|
|
153
|
-
(t(),
|
|
154
|
-
], 10,
|
|
155
|
-
|
|
156
|
-
]))),
|
|
157
|
-
])) : (t(), n("div",
|
|
158
|
-
(t(!0), n(S, null, R(
|
|
159
|
-
s
|
|
160
|
-
|
|
161
|
-
|
|
174
|
+
(t(), P(E(b(V)(s.icon)), { class: "text-white text-[22px]" }))
|
|
175
|
+
], 10, ye)) : (t(), n("span", we)),
|
|
176
|
+
a.value ? (t(), n("span", Se, h(s.name), 1)) : w("", !0)
|
|
177
|
+
]))), 128))
|
|
178
|
+
])) : (t(), n("div", Te, [
|
|
179
|
+
(t(!0), n(S, null, R(d.value, (s) => (t(), n("div", {
|
|
180
|
+
key: s.name,
|
|
181
|
+
class: "tooltip"
|
|
182
|
+
}, [
|
|
183
|
+
a.value ? (t(), n("button", {
|
|
184
|
+
key: 0,
|
|
185
|
+
class: k(["flex justify-center items-center p-1 h-10 w-10 ring-2 ring-offset-1 rounded-full", e.data.includes(s.name.toLowerCase()) ? [s.bgColour, s.ringColour] : "bg-steel-500 dark:bg-line-strong ring-steel-500 dark:ring-line-strong"]),
|
|
186
|
+
onClick: j((g) => x("actionButtonClicked", s.name.toLowerCase()), ["stop"])
|
|
162
187
|
}, [
|
|
163
|
-
(t(),
|
|
164
|
-
], 10,
|
|
165
|
-
|
|
166
|
-
]))),
|
|
188
|
+
(t(), P(E(b(V)(s.icon)), { class: "text-white text-[22px]" }))
|
|
189
|
+
], 10, Re)) : (t(), n("span", De)),
|
|
190
|
+
a.value ? (t(), n("span", Pe, h(s.name), 1)) : w("", !0)
|
|
191
|
+
]))), 128))
|
|
167
192
|
]))
|
|
168
193
|
], 2)) : e.colInfo.colType === "edsNaruIcon" ? (t(), n("td", {
|
|
169
194
|
key: 5,
|
|
170
|
-
class:
|
|
195
|
+
class: k([[M, e.colInfo.colClass, e.data === !0 ? "bg-warning-950" : "bg-steel-600"], "text-white w-12"])
|
|
171
196
|
}, [
|
|
172
|
-
|
|
197
|
+
C(b(re))
|
|
173
198
|
], 2)) : e.colInfo.colType === "status" ? (t(), n("td", {
|
|
174
199
|
key: 6,
|
|
175
|
-
class:
|
|
200
|
+
class: k([M, e.colInfo.colClass])
|
|
176
201
|
}, [
|
|
177
|
-
e.data.id === 0 ? (t(), n("div",
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
202
|
+
e.data.id === 0 ? (t(), n("div", $e, "-")) : e.data.id === 1 ? (t(), n("div", Ae, [
|
|
203
|
+
l("button", Be, [
|
|
204
|
+
C(b(_), { class: "w-full h-full" }),
|
|
205
|
+
Oe,
|
|
206
|
+
l("span", Me, "Updated on " + h(e.data.lastUpdated), 1)
|
|
182
207
|
])
|
|
183
|
-
])) : e.data.id === 2 ? (t(), n("div",
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
208
|
+
])) : e.data.id === 2 ? (t(), n("div", Fe, [
|
|
209
|
+
l("button", Le, [
|
|
210
|
+
Ue,
|
|
211
|
+
qe,
|
|
212
|
+
l("span", Ne, "Update by " + h(e.data.reviewDue), 1)
|
|
188
213
|
])
|
|
189
|
-
])) : e.data.id === 3 ? (t(), n("div",
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
214
|
+
])) : e.data.id === 3 ? (t(), n("div", je, [
|
|
215
|
+
l("button", Ee, [
|
|
216
|
+
ze,
|
|
217
|
+
Ve,
|
|
218
|
+
l("span", Ge, "Expired on " + h(e.data.reviewDue), 1)
|
|
194
219
|
])
|
|
195
|
-
])) :
|
|
196
|
-
], 2)) :
|
|
220
|
+
])) : w("", !0)
|
|
221
|
+
], 2)) : w("", !0);
|
|
197
222
|
}
|
|
198
|
-
},
|
|
223
|
+
}, We = { class: "w-[calc(100%-64px)] mx-8 flex flex-row justify-between mt-4 z-20" }, He = {
|
|
199
224
|
key: 0,
|
|
200
225
|
class: "text-steel-950 dark:text-content-muted"
|
|
201
|
-
},
|
|
226
|
+
}, Xe = {
|
|
202
227
|
key: 1,
|
|
203
228
|
class: "text-steel-950 dark:text-content-muted"
|
|
204
|
-
},
|
|
229
|
+
}, Ke = { class: "font-medium text-black-950 dark:text-content" }, _e = { class: "font-medium text-black-950 dark:text-content" }, Je = { class: "font-medium text-black-950 dark:text-content" }, Qe = {
|
|
205
230
|
key: 2,
|
|
206
231
|
class: "shadow-sm flex flex-row"
|
|
207
|
-
},
|
|
232
|
+
}, Ye = ["onClick"], Ze = {
|
|
208
233
|
__name: "TablePagination",
|
|
209
234
|
props: {
|
|
210
235
|
noOfResults: {
|
|
@@ -239,41 +264,41 @@ const re = (e, g, r) => {
|
|
|
239
264
|
}
|
|
240
265
|
},
|
|
241
266
|
emits: ["setTablePage"],
|
|
242
|
-
setup(e, { emit:
|
|
243
|
-
const
|
|
244
|
-
return (
|
|
245
|
-
e.isSearchResult ? (t(), n("span",
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
267
|
+
setup(e, { emit: p }) {
|
|
268
|
+
const o = e, x = p, y = A(() => Math.ceil(o.noOfResults / o.entriesPerPage));
|
|
269
|
+
return (u, d) => (t(), n("div", We, [
|
|
270
|
+
e.isSearchResult ? (t(), n("span", He, "Showing " + h(e.noOfResults) + " filtered results.", 1)) : (t(), n("span", Xe, [
|
|
271
|
+
D("Showing "),
|
|
272
|
+
l("span", Ke, h(e.tableStartIndex), 1),
|
|
273
|
+
D(" to "),
|
|
274
|
+
l("span", _e, h(e.tableEndIndex), 1),
|
|
275
|
+
D(" of "),
|
|
276
|
+
l("span", Je, h(e.noOfResults), 1),
|
|
277
|
+
D(" results")
|
|
253
278
|
])),
|
|
254
|
-
e.isSearchResult ?
|
|
255
|
-
|
|
279
|
+
e.isSearchResult ? w("", !0) : (t(), n("div", Qe, [
|
|
280
|
+
l("button", {
|
|
256
281
|
class: "group flex items-center justify-center bg-white-950 px-4 py-2 text-sm font-semibold text-steel-950 dark:text-content-muted border-[1px] border-solid border-steel-300 dark:border-line rounded-s-md cursor-pointer hover:bg-steel-300 dark:hover:bg-surface-hover hover:text-black-950 dark:hover:text-content focus:outline-offset-0 focus:z-20 focus:outline-app-950",
|
|
257
|
-
onClick:
|
|
282
|
+
onClick: d[0] || (d[0] = (f) => x("setTablePage", e.tablePage - 1))
|
|
258
283
|
}, [
|
|
259
|
-
|
|
284
|
+
C(b(ie), { class: "text-steel-950 dark:text-content-muted group-hover:text-black-950 dark:group-hover:text-content" })
|
|
260
285
|
]),
|
|
261
|
-
(t(!0), n(S, null, R(
|
|
262
|
-
class:
|
|
263
|
-
onClick: (
|
|
286
|
+
(t(!0), n(S, null, R(y.value, (f) => (t(), n("button", {
|
|
287
|
+
class: k(["flex items-center justify-center px-4 py-2 text-sm font-semibold border-[1px] border-solid border-steel-300 dark:border-line border-l-0 cursor-pointer focus:outline-offset-0 focus:z-20 focus:outline-app-950", e.tablePage == f ? o.backgroundColour + " text-white focus:outline-offset-2" : "bg-surface-raised text-steel-950 dark:text-content-muted hover:bg-steel-300 dark:hover:bg-surface-hover hover:text-black-950 dark:hover:text-content focus:outline-offset-0"]),
|
|
288
|
+
onClick: (a) => x("setTablePage", f)
|
|
264
289
|
}, [
|
|
265
|
-
|
|
266
|
-
], 10,
|
|
267
|
-
|
|
290
|
+
l("p", null, h(f), 1)
|
|
291
|
+
], 10, Ye))), 256)),
|
|
292
|
+
l("button", {
|
|
268
293
|
class: "group flex items-center justify-center bg-white-950 px-4 py-2 text-sm font-semibold text-steel-950 dark:text-content-muted border-[1px] border-solid border-steel-300 dark:border-line border-l-0 rounded-e-md cursor-pointer hover:bg-steel-300 dark:hover:bg-surface-hover hover:text-black-950 dark:hover:text-content focus:outline-offset-0 focus:z-20 focus:outline-app-950",
|
|
269
|
-
onClick:
|
|
294
|
+
onClick: d[1] || (d[1] = (f) => x("setTablePage", e.tablePage + 1))
|
|
270
295
|
}, [
|
|
271
|
-
|
|
296
|
+
C(b(se), { class: "text-steel-950 dark:text-content-muted group-hover:text-black-950 dark:group-hover:text-content" })
|
|
272
297
|
])
|
|
273
298
|
]))
|
|
274
299
|
]));
|
|
275
300
|
}
|
|
276
|
-
},
|
|
301
|
+
}, et = { class: "mx-8 flex flex-row justify-end mt-4" }, tt = ["onClick"], ot = { class: "overflow-y-auto" }, nt = {
|
|
277
302
|
__name: "TableRowSelect",
|
|
278
303
|
props: {
|
|
279
304
|
noOfTableRows: {
|
|
@@ -282,74 +307,74 @@ const re = (e, g, r) => {
|
|
|
282
307
|
}
|
|
283
308
|
},
|
|
284
309
|
emits: ["setNoOfTableRows"],
|
|
285
|
-
setup(e, { emit:
|
|
286
|
-
const
|
|
287
|
-
return (
|
|
288
|
-
|
|
310
|
+
setup(e, { emit: p }) {
|
|
311
|
+
const o = p;
|
|
312
|
+
return (x, y) => (t(), n("div", et, [
|
|
313
|
+
C(b(ue), {
|
|
289
314
|
fitContent: !0,
|
|
290
315
|
buttonPosition: "right",
|
|
291
316
|
class: "w-48"
|
|
292
317
|
}, {
|
|
293
|
-
button:
|
|
294
|
-
|
|
295
|
-
onClick:
|
|
318
|
+
button: O(({ toggleDropdown: u }) => [
|
|
319
|
+
l("div", {
|
|
320
|
+
onClick: u,
|
|
296
321
|
class: "showoverlay flex items-center text-steel-950 dark:text-content-muted transition-all duration-300 font-medium ease-in-out hover:text-app-950 cursor-pointer"
|
|
297
322
|
}, [
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
], 8,
|
|
323
|
+
l("span", null, "Show " + h(e.noOfTableRows) + " results", 1),
|
|
324
|
+
C(b(le), { class: "!w-4 !h-4 ml-2" })
|
|
325
|
+
], 8, tt)
|
|
301
326
|
]),
|
|
302
|
-
default:
|
|
303
|
-
|
|
304
|
-
|
|
327
|
+
default: O(({ setActive: u, selectItem: d, activeId: f }) => [
|
|
328
|
+
l("div", ot, [
|
|
329
|
+
C(b(L), {
|
|
305
330
|
active: f === 1,
|
|
306
|
-
onMouseenter: (
|
|
307
|
-
onClick: (
|
|
308
|
-
|
|
331
|
+
onMouseenter: (a) => u(1),
|
|
332
|
+
onClick: (a) => {
|
|
333
|
+
d(1), o("setNoOfTableRows", 10);
|
|
309
334
|
},
|
|
310
335
|
class: "cursor-pointer"
|
|
311
336
|
}, {
|
|
312
|
-
default:
|
|
313
|
-
|
|
337
|
+
default: O(() => [
|
|
338
|
+
D("10")
|
|
314
339
|
]),
|
|
315
340
|
_: 2
|
|
316
341
|
}, 1032, ["active", "onMouseenter", "onClick"]),
|
|
317
|
-
|
|
342
|
+
C(b(L), {
|
|
318
343
|
active: f === 2,
|
|
319
|
-
onMouseenter: (
|
|
320
|
-
onClick: (
|
|
321
|
-
|
|
344
|
+
onMouseenter: (a) => u(2),
|
|
345
|
+
onClick: (a) => {
|
|
346
|
+
d(2), o("setNoOfTableRows", 25);
|
|
322
347
|
},
|
|
323
348
|
class: "cursor-pointer"
|
|
324
349
|
}, {
|
|
325
|
-
default:
|
|
326
|
-
|
|
350
|
+
default: O(() => [
|
|
351
|
+
D("25")
|
|
327
352
|
]),
|
|
328
353
|
_: 2
|
|
329
354
|
}, 1032, ["active", "onMouseenter", "onClick"]),
|
|
330
|
-
|
|
355
|
+
C(b(L), {
|
|
331
356
|
active: f === 3,
|
|
332
|
-
onMouseenter: (
|
|
333
|
-
onClick: (
|
|
334
|
-
|
|
357
|
+
onMouseenter: (a) => u(3),
|
|
358
|
+
onClick: (a) => {
|
|
359
|
+
d(3), o("setNoOfTableRows", 50);
|
|
335
360
|
},
|
|
336
361
|
class: "cursor-pointer"
|
|
337
362
|
}, {
|
|
338
|
-
default:
|
|
339
|
-
|
|
363
|
+
default: O(() => [
|
|
364
|
+
D("50")
|
|
340
365
|
]),
|
|
341
366
|
_: 2
|
|
342
367
|
}, 1032, ["active", "onMouseenter", "onClick"]),
|
|
343
|
-
|
|
368
|
+
C(b(L), {
|
|
344
369
|
active: f === 4,
|
|
345
|
-
onMouseenter: (
|
|
346
|
-
onClick: (
|
|
347
|
-
|
|
370
|
+
onMouseenter: (a) => u(4),
|
|
371
|
+
onClick: (a) => {
|
|
372
|
+
d(4), o("setNoOfTableRows", 100);
|
|
348
373
|
},
|
|
349
374
|
class: "cursor-pointer"
|
|
350
375
|
}, {
|
|
351
|
-
default:
|
|
352
|
-
|
|
376
|
+
default: O(() => [
|
|
377
|
+
D("100")
|
|
353
378
|
]),
|
|
354
379
|
_: 2
|
|
355
380
|
}, 1032, ["active", "onMouseenter", "onClick"])
|
|
@@ -359,10 +384,10 @@ const re = (e, g, r) => {
|
|
|
359
384
|
})
|
|
360
385
|
]));
|
|
361
386
|
}
|
|
362
|
-
},
|
|
387
|
+
}, rt = { class: "ml-8" }, it = {
|
|
363
388
|
key: 0,
|
|
364
389
|
class: "w-1/2 mt-4"
|
|
365
|
-
},
|
|
390
|
+
}, st = { class: "relative flex flex-1 gap-x-2 px-4 text-style-input items-center h-10 rounded-[20px] ring-1 ring-inset focus-within:ring-2 focus-within:outline-none ring-steel-500 dark:ring-line-strong focus-within:bg-app-100 focus-within:ring-app-950 dark:focus-within:text-black-950 text-black-950 dark:text-content" }, lt = { class: "inline-block w-[calc(100%-64px)] align-middle mx-8 mt-4 max-h-[calc(100%-64px)] overflow-y-auto" }, ct = { class: "min-w-full max-w-full table-auto leading-none border-separate border-spacing-0 border-[1px] border-solid border-steel-300 dark:border-line" }, at = ["onClick"], ut = ["onClick"], bt = {
|
|
366
391
|
__name: "Table",
|
|
367
392
|
props: {
|
|
368
393
|
tableCols: {
|
|
@@ -410,141 +435,141 @@ const re = (e, g, r) => {
|
|
|
410
435
|
}
|
|
411
436
|
},
|
|
412
437
|
emits: ["actionButtonClicked", "rowClicked"],
|
|
413
|
-
setup(e, { emit:
|
|
414
|
-
const
|
|
415
|
-
|
|
416
|
-
const f =
|
|
417
|
-
|
|
418
|
-
f.value =
|
|
438
|
+
setup(e, { emit: p }) {
|
|
439
|
+
const o = e, x = T(null), y = p, u = T(o.defaultNoOfTableRows), d = T(1);
|
|
440
|
+
T({});
|
|
441
|
+
const f = T([]), a = T(!0), $ = T(!1), B = T(o.tableData.Result.map((c) => o.tableData.Result.indexOf(c)));
|
|
442
|
+
oe(() => {
|
|
443
|
+
f.value = K(), q(""), a.value = o.activeFilter ? o.activeFilterVal : !1;
|
|
419
444
|
});
|
|
420
|
-
const
|
|
421
|
-
|
|
422
|
-
},
|
|
423
|
-
c < 1 || c >
|
|
424
|
-
},
|
|
425
|
-
let
|
|
426
|
-
|
|
427
|
-
},
|
|
445
|
+
const m = (c) => {
|
|
446
|
+
u.value = c, d.value = 1;
|
|
447
|
+
}, I = A(() => Math.ceil(o.tableData.Result.length / u.value)), s = (c) => {
|
|
448
|
+
c < 1 || c > I.value || (d.value = c);
|
|
449
|
+
}, g = A(() => o.tableData.Result.length === 0 ? 0 : (d.value - 1) * u.value + 1), W = A(() => Math.min(o.tableData.Result.length > u.value ? d.value * u.value : o.tableData.Result.length, o.tableData.Result.length)), H = (c) => c ? "text-[" + c + "]" : "text-black-950", X = (c, v) => {
|
|
450
|
+
let r = o.tableCols.find((i) => i.tag === "action").colIcons.find((i) => i.name === c) ? o.tableCols.find((i) => i.tag === "action").colIcons.find((i) => i.name === c).callback : o.tableCols.find((i) => i.colType === "associations").associations.find((i) => i.name.toLowerCase() === c).callback;
|
|
451
|
+
y("actionButtonClicked", r, v);
|
|
452
|
+
}, K = () => {
|
|
428
453
|
var c = [];
|
|
429
|
-
for (let
|
|
430
|
-
let
|
|
431
|
-
for (let
|
|
432
|
-
|
|
454
|
+
for (let v of o.tableData.Result) {
|
|
455
|
+
let r = "";
|
|
456
|
+
for (let i of o.tableCols)
|
|
457
|
+
i.colType === "text" && (v[i.tag] === void 0 || v[i.tag] === null || v[i.tag] === "" ? r += "" : r += v[i.tag].toString().toLowerCase() + " ");
|
|
433
458
|
c.push({
|
|
434
|
-
row:
|
|
435
|
-
data:
|
|
459
|
+
row: o.tableData.Result.indexOf(v),
|
|
460
|
+
data: r
|
|
436
461
|
});
|
|
437
462
|
}
|
|
438
463
|
return c;
|
|
439
|
-
},
|
|
464
|
+
}, q = (c) => {
|
|
440
465
|
if (c === "") {
|
|
441
|
-
|
|
466
|
+
$.value = !1;
|
|
442
467
|
return;
|
|
443
468
|
} else {
|
|
444
|
-
|
|
445
|
-
const
|
|
446
|
-
|
|
447
|
-
for (let
|
|
448
|
-
|
|
469
|
+
$.value = !0;
|
|
470
|
+
const v = c ? c.toLowerCase() : "";
|
|
471
|
+
B.value = [];
|
|
472
|
+
for (let r of f.value)
|
|
473
|
+
r.data && r.data.includes(v) && B.value.push(r.row);
|
|
449
474
|
}
|
|
450
475
|
};
|
|
451
|
-
return
|
|
452
|
-
c && c.Result && (f.value =
|
|
453
|
-
}), (c,
|
|
476
|
+
return Z(() => o.tableData, (c) => {
|
|
477
|
+
c && c.Result && (f.value = K(), q(""));
|
|
478
|
+
}), (c, v) => (t(), n("div", {
|
|
454
479
|
ref_key: "root",
|
|
455
|
-
ref:
|
|
480
|
+
ref: x,
|
|
456
481
|
class: "w-full h-full bg-[transparent]"
|
|
457
482
|
}, [
|
|
458
|
-
|
|
459
|
-
|
|
483
|
+
l("div", rt, [
|
|
484
|
+
z(c.$slots, "tableTitle")
|
|
460
485
|
]),
|
|
461
|
-
|
|
462
|
-
class:
|
|
486
|
+
l("div", {
|
|
487
|
+
class: k(["flex ml-[32px] items-center", o.enableSearchBar ? "justify-between" : "justify-end"])
|
|
463
488
|
}, [
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
489
|
+
o.enableSearchBar ? (t(), n("div", it, [
|
|
490
|
+
l("div", st, [
|
|
491
|
+
C(b(ce), { class: "text-steel-950 dark:text-content-muted w-4" }),
|
|
492
|
+
l("input", {
|
|
468
493
|
class: "flex-1 border-0 bg-[transparent] pl-0 ring-0 focus:ring-0 outline-none focus:outline-none disabled:placeholder:text-steel-800 dark:disabled:placeholder:text-content-muted disabled:pointer-events-none",
|
|
469
494
|
placeholder: "Search",
|
|
470
|
-
onInput:
|
|
495
|
+
onInput: v[0] || (v[0] = (r) => q(r.target.value))
|
|
471
496
|
}, null, 32)
|
|
472
497
|
])
|
|
473
|
-
])) :
|
|
474
|
-
|
|
475
|
-
noOfTableRows:
|
|
476
|
-
onSetNoOfTableRows:
|
|
498
|
+
])) : w("", !0),
|
|
499
|
+
C(nt, {
|
|
500
|
+
noOfTableRows: u.value,
|
|
501
|
+
onSetNoOfTableRows: v[1] || (v[1] = (r) => m(r))
|
|
477
502
|
}, null, 8, ["noOfTableRows"])
|
|
478
503
|
], 2),
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
class:
|
|
504
|
+
l("div", lt, [
|
|
505
|
+
l("table", ct, [
|
|
506
|
+
l("thead", null, [
|
|
507
|
+
z(c.$slots, "tableHeader", {}, () => [
|
|
508
|
+
l("tr", {
|
|
509
|
+
class: k(o.backgroundColour)
|
|
485
510
|
}, [
|
|
486
|
-
(t(!0), n(S, null, R(e.tableCols, (
|
|
487
|
-
class:
|
|
488
|
-
style:
|
|
511
|
+
(t(!0), n(S, null, R(e.tableCols, (r) => (t(), n("th", {
|
|
512
|
+
class: k(["sticky top-0 z-10 border-b-[1px] border-gray-300 px-5 font-semibold text-white w-fit", [o.backgroundColour, e.activeFilter ? "py-1" : "py-3"]]),
|
|
513
|
+
style: G("text-align:" + (r.headerAlign ? r.headerAlign : "left"))
|
|
489
514
|
}, [
|
|
490
|
-
|
|
515
|
+
l("div", {
|
|
491
516
|
class: "flex items-center justify-center gap-x-1",
|
|
492
|
-
style:
|
|
517
|
+
style: G("justify-content:" + (r.headerAlign ? r.headerAlign : "left"))
|
|
493
518
|
}, [
|
|
494
|
-
|
|
495
|
-
|
|
519
|
+
l("span", null, h(r.label), 1),
|
|
520
|
+
r.activeToggle && e.activeFilter ? (t(), P(b(de), {
|
|
496
521
|
key: 0,
|
|
497
|
-
modelValue:
|
|
498
|
-
"onUpdate:modelValue":
|
|
522
|
+
modelValue: a.value,
|
|
523
|
+
"onUpdate:modelValue": v[2] || (v[2] = (i) => a.value = i),
|
|
499
524
|
class: "rounded-2xl !gap-x-0 bg-surface-raised w-fit"
|
|
500
|
-
}, null, 8, ["modelValue"])) :
|
|
525
|
+
}, null, 8, ["modelValue"])) : w("", !0)
|
|
501
526
|
], 4)
|
|
502
527
|
], 6))), 256))
|
|
503
528
|
], 2)
|
|
504
529
|
])
|
|
505
530
|
]),
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
class:
|
|
510
|
-
onClick: (
|
|
531
|
+
l("tbody", null, [
|
|
532
|
+
z(c.$slots, "tableBody", {}, () => [
|
|
533
|
+
$.value ? (t(!0), n(S, { key: 0 }, R(e.tableData.Result.filter((r, i) => B.value.includes(i) && (a.value && r.IsActive || !a.value && !r.IsActive || !e.activeFilter)), (r) => (t(), n("tr", {
|
|
534
|
+
class: k(["even:bg-steel-100 dark:even:bg-surface-sunken transition duration-300 ease-in-out hover:bg-sop-150 dark:hover:bg-surface-hover border-b-[1px] border-steel-300 dark:border-line", [r.colour ? "*:!" + H(r.colour) : "text-black-950 dark:text-content", e.rowClickAction ? "cursor-pointer" : ""]]),
|
|
535
|
+
onClick: (i) => e.rowClickAction ? y("rowClicked", r) : null
|
|
511
536
|
}, [
|
|
512
|
-
(t(!0), n(S, null, R(e.tableCols, (
|
|
513
|
-
colInfo:
|
|
514
|
-
data:
|
|
515
|
-
rowData:
|
|
516
|
-
textColour:
|
|
517
|
-
onActionButtonClicked: (
|
|
537
|
+
(t(!0), n(S, null, R(e.tableCols, (i) => (t(), P(Y, {
|
|
538
|
+
colInfo: i,
|
|
539
|
+
data: r[i.tag],
|
|
540
|
+
rowData: r,
|
|
541
|
+
textColour: o.textColour,
|
|
542
|
+
onActionButtonClicked: (N) => X(N, r)
|
|
518
543
|
}, null, 8, ["colInfo", "data", "rowData", "textColour", "onActionButtonClicked"]))), 256))
|
|
519
|
-
], 10,
|
|
520
|
-
class:
|
|
521
|
-
onClick: (
|
|
544
|
+
], 10, at))), 256)) : (t(!0), n(S, { key: 1 }, R(e.tableData.Result.filter((r, i) => i >= g.value - 1 && i <= W.value - 1 && (a.value && r.IsActive || !a.value && !r.IsActive || !e.activeFilter)), (r) => (t(), n("tr", {
|
|
545
|
+
class: k(["even:bg-steel-100 dark:even:bg-surface-sunken transition duration-300 ease-in-out hover:bg-sop-150 dark:hover:bg-surface-hover border-b-[1px] border-steel-300 dark:border-line", [r.colour ? "*:!" + H(r.colour) : "text-black-950 dark:text-content", e.rowClickAction ? "cursor-pointer" : ""]]),
|
|
546
|
+
onClick: (i) => e.rowClickAction ? y("rowClicked", r) : null
|
|
522
547
|
}, [
|
|
523
|
-
(t(!0), n(S, null, R(e.tableCols, (
|
|
524
|
-
colInfo:
|
|
525
|
-
data:
|
|
526
|
-
rowData:
|
|
527
|
-
textColour:
|
|
528
|
-
onActionButtonClicked: (
|
|
548
|
+
(t(!0), n(S, null, R(e.tableCols, (i) => (t(), P(Y, {
|
|
549
|
+
colInfo: i,
|
|
550
|
+
data: r[i.tag],
|
|
551
|
+
rowData: r,
|
|
552
|
+
textColour: o.textColour,
|
|
553
|
+
onActionButtonClicked: (N) => X(N, r)
|
|
529
554
|
}, null, 8, ["colInfo", "data", "rowData", "textColour", "onActionButtonClicked"]))), 256))
|
|
530
|
-
], 10,
|
|
555
|
+
], 10, ut))), 256))
|
|
531
556
|
])
|
|
532
557
|
])
|
|
533
558
|
])
|
|
534
559
|
]),
|
|
535
|
-
|
|
536
|
-
noOfResults:
|
|
537
|
-
tableStartIndex:
|
|
538
|
-
tableEndIndex:
|
|
539
|
-
entriesPerPage:
|
|
540
|
-
tablePage:
|
|
541
|
-
backgroundColour:
|
|
542
|
-
onSetTablePage:
|
|
543
|
-
isSearchResult:
|
|
560
|
+
C(Ze, {
|
|
561
|
+
noOfResults: $.value ? e.tableData.Result.filter((r, i) => B.value.includes(i)).length : e.tableData.Result.length,
|
|
562
|
+
tableStartIndex: g.value,
|
|
563
|
+
tableEndIndex: W.value,
|
|
564
|
+
entriesPerPage: u.value,
|
|
565
|
+
tablePage: d.value,
|
|
566
|
+
backgroundColour: o.backgroundColour,
|
|
567
|
+
onSetTablePage: v[3] || (v[3] = (r) => s(r)),
|
|
568
|
+
isSearchResult: $.value
|
|
544
569
|
}, null, 8, ["noOfResults", "tableStartIndex", "tableEndIndex", "entriesPerPage", "tablePage", "backgroundColour", "isSearchResult"])
|
|
545
570
|
], 512));
|
|
546
571
|
}
|
|
547
572
|
};
|
|
548
573
|
export {
|
|
549
|
-
|
|
574
|
+
bt as Table
|
|
550
575
|
};
|