@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.
@@ -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 v, 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";
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-300 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-950 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-950 dark:focus:border-focus focus:text-proclusteal-800 dark:focus:text-content focus:outline-none",
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(""), m = k([]), f = k("all"), n = k("zero"), c = k(-1);
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 m.value.filter((s) => f.value === "all" || s.type === f.value).map((s) => {
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 = $(() => m.value.reduce((t, s) => t + s.items.length, 0));
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
- m.value = l && l.groups || [], f.value = "all", n.value = m.value.length ? "results" : "empty", U(0);
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
- m.value = [], n.value = "error", c.value = -1;
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++, m.value = [], n.value = s.length ? "hint" : "zero", c.value = -1;
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 = "", m.value = [], f.value = "all", n.value = "zero", c.value = -1, E = document.body.style.overflow, document.body.style.overflow = "hidden", oe(() => {
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 ")) : v("", !0),
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(m.value, (l) => (a(), u("button", {
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
- ])) : v("", !0),
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)) : v("", !0)
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 m = $(() => w.value.map((n) => ({
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)) : v("", !0)
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 ? v("", !0) : (a(), u("div", it, " No notifications. ")) : (a(), u("div", st, " Loading notifications… ")),
523
- (a(!0), u(H, null, P(m.value, (d) => (a(), u("div", {
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)) : v("", !0)
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)) : v("", !0),
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, m) => (a(), u("div", {
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: m[1] || (m[1] = (f) => x.value = !x.value)
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: m[0] || (m[0] = (f) => w.value = !0)
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
- })) : v("", !0),
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 m() {
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)) : v("", !0)
781
- ])) : v("", !0),
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)) : v("", !0),
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"])) : v("", !0),
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: m
822
+ onClick: v
816
823
  }, [
817
824
  T(Te, { class: "!h-[22px] !w-[22px]" })
818
- ])) : v("", !0),
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.searchProvider ? (a(), I(Le, {
826
- key: 0,
827
- onClick: c[0] || (c[0] = (d) => x.value = !0)
828
- })) : v("", !0),
829
- w.value ? (a(), I(kt, {
830
- key: 1,
831
- notifications: e.notifications,
832
- "unread-count": e.unreadCount,
833
- "notifications-url": e.notificationsUrl,
834
- "icon-map": e.notificationIconMap,
835
- onMarkAsRead: c[1] || (c[1] = (d) => n.$emit("markAsRead", d)),
836
- onDeleteNotification: c[2] || (c[2] = (d) => n.$emit("deleteNotification", d)),
837
- onOpen: c[3] || (c[3] = (d) => n.$emit("notifications-open")),
838
- onNavigate: g
839
- }, null, 8, ["notifications", "unread-count", "notifications-url", "icon-map"])) : v("", !0),
840
- e.user ? (a(), I(Et, {
841
- key: 2,
842
- user: e.user,
843
- "menu-items": e.menuItems,
844
- onSelect: f
845
- }, null, 8, ["user", "menu-items"])) : v("", !0)
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"])) : v("", !0)
864
+ }, null, 8, ["open", "search-provider", "placeholder", "types"])) : m("", !0)
856
865
  ]));
857
866
  }
858
867
  };
@@ -1,43 +1,66 @@
1
- import { ref as w, openBlock as t, createElementBlock as n, normalizeClass as x, createElementVNode as s, toDisplayString as v, createCommentVNode as k, createTextVNode as T, createBlock as y, unref as b, normalizeStyle as N, Fragment as S, renderList as R, withModifiers as $, resolveDynamicComponent as A, createVNode as h, defineAsyncComponent as K, computed as M, withCtx as P, onMounted as J, watch as Q, renderSlot as U } from "vue";
2
- import { CircleCheckIcon as G, CircleExclamationIcon as Y, ScrewdriverWrenchIcon as Z, ChevronLeftIcon as _, ChevronRightIcon as ee, ChevronDownIcon as te, MagnifyingGlassIcon as oe } from "@zealsolutions/zeal-ui/icons";
3
- import { DropdownMenu as ne, DropdownMenuItem as O } from "@zealsolutions/zeal-ui/menus";
4
- import { ToggleSwitch as ie } from "@zealsolutions/zeal-ui/inputs";
5
- const re = (e, g, r) => {
6
- const m = e[g];
7
- return m ? typeof m == "function" ? m() : Promise.resolve(m) : new Promise((C, a) => {
8
- (typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(a.bind(null, new Error("Unknown variable dynamic import: " + g + (g.split("/").length !== r ? ". Note that variables only represent file names one level deep." : ""))));
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
- }, se = { 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" }, le = {
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
- }, ce = { class: "w-full flex items-center justify-end" }, ae = ["onClick"], ue = {
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
- }, de = ["onClick"], me = {
17
- key: 0,
18
- 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"
19
- }, pe = ["onClick"], ve = {
20
- key: 0,
21
- 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"
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
- }, xe = { class: "tooltip" }, be = ["onClick"], Ie = { 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" }, he = {
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
- }, ke = { class: "tooltip" }, ge = ["onClick"], Ce = { 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" }, ye = {
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
- }, we = {
54
+ }, Ae = {
32
55
  key: 1,
33
56
  class: "flex justify-center"
34
- }, Se = { 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" }, Re = /* @__PURE__ */ s("span", { class: "absolute inset-0 rounded-full border-2 border-success-500 animate-ping" }, null, -1), Te = { 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" }, De = {
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
- }, Pe = { class: "bg-warning-950 text-white text-xs rounded-full text-center relative tooltip w-6 h-6 flex items-center justify-center" }, $e = /* @__PURE__ */ s("span", { class: "text-white font-bold text-lg" }, "-", -1), Ae = /* @__PURE__ */ s("span", { class: "absolute inset-0 rounded-full border-2 border-warning-950 animate-ping" }, null, -1), Be = { 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" }, Oe = {
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
- }, Me = { class: "bg-error-950 text-white text-xs rounded-full text-center relative tooltip w-6 h-6 flex items-center justify-center" }, Fe = /* @__PURE__ */ s("span", { class: "text-white font-bold text-lg" }, "×", -1), Le = /* @__PURE__ */ s("span", { class: "absolute inset-0 rounded-full border-2 border-error-500 animate-ping" }, null, -1), Ue = { 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" }, B = "whitespace-nowrap border-b-[1px] border-steel-300 dark:border-line px-5 py-3 h-[22px]", W = {
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: g }) {
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 i = I.find((D) => D.name == u);
67
- if (i)
68
- return i.colour.toString();
101
+ var s = I.find((g) => g.name == m);
102
+ if (s)
103
+ return s.colour.toString();
69
104
  }
70
105
  return "";
71
- }, f = (u) => {
72
- navigator.clipboard.writeText(u).then(() => {
106
+ }, B = (m) => {
107
+ navigator.clipboard.writeText(m).then(() => {
73
108
  }).catch((I) => {
74
109
  console.error("Failed to copy text: ", I);
75
- }), C.value = "Copied!", setTimeout(() => {
76
- C.value = "Copy URL";
110
+ }), y.value = "Copied!", setTimeout(() => {
111
+ y.value = "Copy URL";
77
112
  }, 2e3);
78
113
  };
79
- return (u, I) => e.colInfo.colType === "text" ? (t(), n("td", {
114
+ return (m, I) => e.colInfo.colType === "text" ? (t(), n("td", {
80
115
  key: 0,
81
- class: x([[B, e.colInfo.colClass, p(e.data, e.colInfo.colourLookup)], "break-words min-w-0 !whitespace-normal"])
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] = (i) => f(e.data))
121
+ onClick: I[0] || (I[0] = (s) => B(e.data))
87
122
  }, [
88
- s("span", se, v(C.value), 1)
89
- ])) : k("", !0),
90
- T(" " + v(e.data ? e.data : "-"), 1)
91
- ], 2)) : e.colInfo.colType === "boolean" ? (t(), n("td", le, [
92
- e.data === !0 ? (t(), y(b(G), {
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(), y(b(Y), {
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: N("background-color:" + e.data)
137
+ style: G("background-color:" + e.data)
103
138
  }, null, 4)) : e.colInfo.colType === "icons" ? (t(), n("td", {
104
139
  key: 3,
105
- class: x([B, e.colInfo.colClass])
140
+ class: k([M, e.colInfo.colClass])
106
141
  }, [
107
- s("div", ce, [
108
- (t(!0), n(S, null, R(e.colInfo.colIcons, (i) => (t(), n("div", {
109
- key: i.name
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
- i.condition ? k("", !0) : (t(), n("button", {
112
- key: 0,
113
- class: "float-left cursor-pointer ml-6 tooltip",
114
- onClick: $((D) => m("actionButtonClicked", i.name), ["stop"])
115
- }, [
116
- (t(), y(A(a(i.name)), {
117
- class: x(["text-[22px]", r.textColour])
118
- }, null, 8, ["class"])),
119
- i.tooltip ? (t(), n("span", ue, v(i.tooltip), 1)) : k("", !0)
120
- ], 8, ae)),
121
- i.condition === "IsDraft" && e.rowData.IsDraft ? (t(), n("button", {
122
- key: 1,
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: x([B, e.colInfo.colClass])
162
+ class: k([M, e.colInfo.colClass])
146
163
  }, [
147
- e.colInfo.hideMissing ? (t(), n("div", fe, [
148
- (t(!0), n(S, null, R(e.colInfo.associations.filter((i) => e.data.includes(i.name.toLowerCase())), (i) => (t(), n("div", xe, [
149
- s("button", {
150
- class: x(["flex justify-center items-center p-1 h-10 w-10 ring-2 ring-offset-1 rounded-full", [i.bgColour, i.ringColour]]),
151
- onClick: $((D) => m("actionButtonClicked", i.name.toLowerCase()), ["stop"])
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(), y(A(a(i.icon)), { class: "text-white text-[22px]" }))
154
- ], 10, be),
155
- s("span", Ie, v(i.name), 1)
156
- ]))), 256))
157
- ])) : (t(), n("div", he, [
158
- (t(!0), n(S, null, R(e.colInfo.associations, (i) => (t(), n("div", ke, [
159
- s("button", {
160
- class: x(["flex justify-center items-center p-1 h-10 w-10 ring-2 ring-offset-1 rounded-full", e.data.includes(i.name.toLowerCase()) ? [i.bgColour, i.ringColour] : "bg-steel-500 dark:bg-line-strong ring-steel-500 dark:ring-line-strong"]),
161
- onClick: $((D) => m("actionButtonClicked", i.name.toLowerCase()), ["stop"])
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(), y(A(a(i.icon)), { class: "text-white text-[22px]" }))
164
- ], 10, ge),
165
- s("span", Ce, v(i.name), 1)
166
- ]))), 256))
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: x([[B, e.colInfo.colClass, e.data === !0 ? "bg-warning-950" : "bg-steel-600"], "text-white w-12"])
195
+ class: k([[M, e.colInfo.colClass, e.data === !0 ? "bg-warning-950" : "bg-steel-600"], "text-white w-12"])
171
196
  }, [
172
- h(b(Z))
197
+ C(b(re))
173
198
  ], 2)) : e.colInfo.colType === "status" ? (t(), n("td", {
174
199
  key: 6,
175
- class: x([B, e.colInfo.colClass])
200
+ class: k([M, e.colInfo.colClass])
176
201
  }, [
177
- e.data.id === 0 ? (t(), n("div", ye, "-")) : e.data.id === 1 ? (t(), n("div", we, [
178
- s("button", Se, [
179
- h(b(G), { class: "w-full h-full" }),
180
- Re,
181
- s("span", Te, "Updated on " + v(e.data.lastUpdated), 1)
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", De, [
184
- s("button", Pe, [
185
- $e,
186
- Ae,
187
- s("span", Be, "Update by " + v(e.data.reviewDue), 1)
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", Oe, [
190
- s("button", Me, [
191
- Fe,
192
- Le,
193
- s("span", Ue, "Expired on " + v(e.data.reviewDue), 1)
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
- ])) : k("", !0)
196
- ], 2)) : k("", !0);
220
+ ])) : w("", !0)
221
+ ], 2)) : w("", !0);
197
222
  }
198
- }, Ne = { class: "w-[calc(100%-64px)] mx-8 flex flex-row justify-between mt-4 z-20" }, qe = {
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
- }, je = {
226
+ }, Xe = {
202
227
  key: 1,
203
228
  class: "text-steel-950 dark:text-content-muted"
204
- }, Ee = { class: "font-medium text-black-950 dark:text-content" }, ze = { class: "font-medium text-black-950 dark:text-content" }, Ve = { class: "font-medium text-black-950 dark:text-content" }, Ge = {
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
- }, We = ["onClick"], He = {
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: g }) {
243
- const r = e, m = g, C = M(() => Math.ceil(r.noOfResults / r.entriesPerPage));
244
- return (a, p) => (t(), n("div", Ne, [
245
- e.isSearchResult ? (t(), n("span", qe, "Showing " + v(e.noOfResults) + " filtered results.", 1)) : (t(), n("span", je, [
246
- T("Showing "),
247
- s("span", Ee, v(e.tableStartIndex), 1),
248
- T(" to "),
249
- s("span", ze, v(e.tableEndIndex), 1),
250
- T(" of "),
251
- s("span", Ve, v(e.noOfResults), 1),
252
- T(" results")
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 ? k("", !0) : (t(), n("div", Ge, [
255
- s("button", {
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: p[0] || (p[0] = (f) => m("setTablePage", e.tablePage - 1))
282
+ onClick: d[0] || (d[0] = (f) => x("setTablePage", e.tablePage - 1))
258
283
  }, [
259
- h(b(_), { class: "text-steel-950 dark:text-content-muted group-hover:text-black-950 dark:group-hover:text-content" })
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(C.value, (f) => (t(), n("button", {
262
- class: x(["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 ? r.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"]),
263
- onClick: (u) => m("setTablePage", f)
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
- s("p", null, v(f), 1)
266
- ], 10, We))), 256)),
267
- s("button", {
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: p[1] || (p[1] = (f) => m("setTablePage", e.tablePage + 1))
294
+ onClick: d[1] || (d[1] = (f) => x("setTablePage", e.tablePage + 1))
270
295
  }, [
271
- h(b(ee), { class: "text-steel-950 dark:text-content-muted group-hover:text-black-950 dark:group-hover:text-content" })
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
- }, Xe = { class: "mx-8 flex flex-row justify-end mt-4" }, Ke = ["onClick"], Je = { class: "overflow-y-auto" }, Qe = {
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: g }) {
286
- const r = g;
287
- return (m, C) => (t(), n("div", Xe, [
288
- h(b(ne), {
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: P(({ toggleDropdown: a }) => [
294
- s("div", {
295
- onClick: a,
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
- s("span", null, "Show " + v(e.noOfTableRows) + " results", 1),
299
- h(b(te), { class: "!w-4 !h-4 ml-2" })
300
- ], 8, Ke)
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: P(({ setActive: a, selectItem: p, activeId: f }) => [
303
- s("div", Je, [
304
- h(b(O), {
327
+ default: O(({ setActive: u, selectItem: d, activeId: f }) => [
328
+ l("div", ot, [
329
+ C(b(L), {
305
330
  active: f === 1,
306
- onMouseenter: (u) => a(1),
307
- onClick: (u) => {
308
- p(1), r("setNoOfTableRows", 10);
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: P(() => [
313
- T("10")
337
+ default: O(() => [
338
+ D("10")
314
339
  ]),
315
340
  _: 2
316
341
  }, 1032, ["active", "onMouseenter", "onClick"]),
317
- h(b(O), {
342
+ C(b(L), {
318
343
  active: f === 2,
319
- onMouseenter: (u) => a(2),
320
- onClick: (u) => {
321
- p(2), r("setNoOfTableRows", 25);
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: P(() => [
326
- T("25")
350
+ default: O(() => [
351
+ D("25")
327
352
  ]),
328
353
  _: 2
329
354
  }, 1032, ["active", "onMouseenter", "onClick"]),
330
- h(b(O), {
355
+ C(b(L), {
331
356
  active: f === 3,
332
- onMouseenter: (u) => a(3),
333
- onClick: (u) => {
334
- p(3), r("setNoOfTableRows", 50);
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: P(() => [
339
- T("50")
363
+ default: O(() => [
364
+ D("50")
340
365
  ]),
341
366
  _: 2
342
367
  }, 1032, ["active", "onMouseenter", "onClick"]),
343
- h(b(O), {
368
+ C(b(L), {
344
369
  active: f === 4,
345
- onMouseenter: (u) => a(4),
346
- onClick: (u) => {
347
- p(4), r("setNoOfTableRows", 100);
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: P(() => [
352
- T("100")
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
- }, Ye = { class: "ml-8" }, Ze = {
387
+ }, rt = { class: "ml-8" }, it = {
363
388
  key: 0,
364
389
  class: "w-1/2 mt-4"
365
- }, _e = { 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" }, et = { class: "inline-block w-[calc(100%-64px)] align-middle mx-8 mt-4 max-h-[calc(100%-64px)] overflow-y-auto" }, tt = { 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" }, ot = ["onClick"], nt = ["onClick"], ct = {
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: g }) {
414
- const r = e, m = w(null), C = g, a = w(r.defaultNoOfTableRows), p = w(1);
415
- w({});
416
- const f = w([]), u = w(!0), I = w(!1), i = w(r.tableData.Result.map((c) => r.tableData.Result.indexOf(c)));
417
- J(() => {
418
- f.value = V(), F(""), u.value = r.activeFilter ? r.activeFilterVal : !1;
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 D = (c) => {
421
- a.value = c, p.value = 1;
422
- }, H = M(() => Math.ceil(r.tableData.Result.length / a.value)), X = (c) => {
423
- c < 1 || c > H.value || (p.value = c);
424
- }, q = M(() => r.tableData.Result.length === 0 ? 0 : (p.value - 1) * a.value + 1), j = M(() => Math.min(r.tableData.Result.length > a.value ? p.value * a.value : r.tableData.Result.length, r.tableData.Result.length)), E = (c) => c ? "text-[" + c + "]" : "text-black-950", z = (c, d) => {
425
- let o = r.tableCols.find((l) => l.tag === "action").colIcons.find((l) => l.name === c) ? r.tableCols.find((l) => l.tag === "action").colIcons.find((l) => l.name === c).callback : r.tableCols.find((l) => l.colType === "associations").associations.find((l) => l.name.toLowerCase() === c).callback;
426
- C("actionButtonClicked", o, d);
427
- }, V = () => {
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 d of r.tableData.Result) {
430
- let o = "";
431
- for (let l of r.tableCols)
432
- l.colType === "text" && (d[l.tag] === void 0 || d[l.tag] === null || d[l.tag] === "" ? o += "" : o += d[l.tag].toString().toLowerCase() + " ");
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: r.tableData.Result.indexOf(d),
435
- data: o
459
+ row: o.tableData.Result.indexOf(v),
460
+ data: r
436
461
  });
437
462
  }
438
463
  return c;
439
- }, F = (c) => {
464
+ }, q = (c) => {
440
465
  if (c === "") {
441
- I.value = !1;
466
+ $.value = !1;
442
467
  return;
443
468
  } else {
444
- I.value = !0;
445
- const d = c ? c.toLowerCase() : "";
446
- i.value = [];
447
- for (let o of f.value)
448
- o.data && o.data.includes(d) && i.value.push(o.row);
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 Q(() => r.tableData, (c) => {
452
- c && c.Result && (f.value = V(), F(""));
453
- }), (c, d) => (t(), n("div", {
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: m,
480
+ ref: x,
456
481
  class: "w-full h-full bg-[transparent]"
457
482
  }, [
458
- s("div", Ye, [
459
- U(c.$slots, "tableTitle")
483
+ l("div", rt, [
484
+ z(c.$slots, "tableTitle")
460
485
  ]),
461
- s("div", {
462
- class: x(["flex ml-[32px] items-center", r.enableSearchBar ? "justify-between" : "justify-end"])
486
+ l("div", {
487
+ class: k(["flex ml-[32px] items-center", o.enableSearchBar ? "justify-between" : "justify-end"])
463
488
  }, [
464
- r.enableSearchBar ? (t(), n("div", Ze, [
465
- s("div", _e, [
466
- h(b(oe), { class: "text-steel-950 dark:text-content-muted w-4" }),
467
- s("input", {
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: d[0] || (d[0] = (o) => F(o.target.value))
495
+ onInput: v[0] || (v[0] = (r) => q(r.target.value))
471
496
  }, null, 32)
472
497
  ])
473
- ])) : k("", !0),
474
- h(Qe, {
475
- noOfTableRows: a.value,
476
- onSetNoOfTableRows: d[1] || (d[1] = (o) => D(o))
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
- s("div", et, [
480
- s("table", tt, [
481
- s("thead", null, [
482
- U(c.$slots, "tableHeader", {}, () => [
483
- s("tr", {
484
- class: x(r.backgroundColour)
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, (o) => (t(), n("th", {
487
- class: x(["sticky top-0 z-10 border-b-[1px] border-gray-300 px-5 font-semibold text-white w-fit", [r.backgroundColour, e.activeFilter ? "py-1" : "py-3"]]),
488
- style: N("text-align:" + (o.headerAlign ? o.headerAlign : "left"))
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
- s("div", {
515
+ l("div", {
491
516
  class: "flex items-center justify-center gap-x-1",
492
- style: N("justify-content:" + (o.headerAlign ? o.headerAlign : "left"))
517
+ style: G("justify-content:" + (r.headerAlign ? r.headerAlign : "left"))
493
518
  }, [
494
- s("span", null, v(o.label), 1),
495
- o.activeToggle && e.activeFilter ? (t(), y(b(ie), {
519
+ l("span", null, h(r.label), 1),
520
+ r.activeToggle && e.activeFilter ? (t(), P(b(de), {
496
521
  key: 0,
497
- modelValue: u.value,
498
- "onUpdate:modelValue": d[2] || (d[2] = (l) => u.value = l),
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"])) : k("", !0)
525
+ }, null, 8, ["modelValue"])) : w("", !0)
501
526
  ], 4)
502
527
  ], 6))), 256))
503
528
  ], 2)
504
529
  ])
505
530
  ]),
506
- s("tbody", null, [
507
- U(c.$slots, "tableBody", {}, () => [
508
- I.value ? (t(!0), n(S, { key: 0 }, R(e.tableData.Result.filter((o, l) => i.value.includes(l) && (u.value && o.IsActive || !u.value && !o.IsActive || !e.activeFilter)), (o) => (t(), n("tr", {
509
- class: x(["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", [o.colour ? "*:!" + E(o.colour) : "text-black-950 dark:text-content", e.rowClickAction ? "cursor-pointer" : ""]]),
510
- onClick: (l) => e.rowClickAction ? C("rowClicked", o) : null
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, (l) => (t(), y(W, {
513
- colInfo: l,
514
- data: o[l.tag],
515
- rowData: o,
516
- textColour: r.textColour,
517
- onActionButtonClicked: (L) => z(L, o)
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, ot))), 256)) : (t(!0), n(S, { key: 1 }, R(e.tableData.Result.filter((o, l) => l >= q.value - 1 && l <= j.value - 1 && (u.value && o.IsActive || !u.value && !o.IsActive || !e.activeFilter)), (o) => (t(), n("tr", {
520
- class: x(["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", [o.colour ? "*:!" + E(o.colour) : "text-black-950 dark:text-content", e.rowClickAction ? "cursor-pointer" : ""]]),
521
- onClick: (l) => e.rowClickAction ? C("rowClicked", o) : null
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, (l) => (t(), y(W, {
524
- colInfo: l,
525
- data: o[l.tag],
526
- rowData: o,
527
- textColour: r.textColour,
528
- onActionButtonClicked: (L) => z(L, o)
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, nt))), 256))
555
+ ], 10, ut))), 256))
531
556
  ])
532
557
  ])
533
558
  ])
534
559
  ]),
535
- h(He, {
536
- noOfResults: I.value ? e.tableData.Result.filter((o, l) => i.value.includes(l)).length : e.tableData.Result.length,
537
- tableStartIndex: q.value,
538
- tableEndIndex: j.value,
539
- entriesPerPage: a.value,
540
- tablePage: p.value,
541
- backgroundColour: r.backgroundColour,
542
- onSetTablePage: d[3] || (d[3] = (o) => X(o)),
543
- isSearchResult: I.value
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
- ct as Table
574
+ bt as Table
550
575
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zealsolutions/zeal-ui",
3
- "version": "1.0.0-alpha.362",
3
+ "version": "1.0.0-alpha.363",
4
4
  "description": "UI library for Zeal Solutions",
5
5
  "author": "Zeal Solutions",
6
6
  "license": "ISC",