cecomponent 1.0.30 → 1.0.31

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.
@@ -3365,7 +3365,7 @@ utils$1.forEach(["post", "put", "patch"], function(e) {
3365
3365
  }
3366
3366
  Axios$1.prototype[e] = r(), Axios$1.prototype[e + "Form"] = r(!0);
3367
3367
  });
3368
- let CancelToken$1 = class jt {
3368
+ let CancelToken$1 = class Tt {
3369
3369
  constructor(e) {
3370
3370
  if (typeof e != "function")
3371
3371
  throw new TypeError("executor must be a function.");
@@ -3431,7 +3431,7 @@ let CancelToken$1 = class jt {
3431
3431
  static source() {
3432
3432
  let e;
3433
3433
  return {
3434
- token: new jt(function(s) {
3434
+ token: new Tt(function(s) {
3435
3435
  e = s;
3436
3436
  }),
3437
3437
  cancel: e
@@ -12298,38 +12298,42 @@ const v$2 = "5.1.7", fr$2 = 30, ip$2 = 25, op$2 = 69, w$2 = 600, h$2 = 600, nm$2
12298
12298
  }
12299
12299
  )
12300
12300
  ] });
12301
- }, CETruncatedTextWithTooltip = ({
12302
- text: t,
12303
- wordCount: e = 5
12304
- }) => {
12305
- const [r, i] = useState(!1), [s, n] = useState({ top: 0, left: 0 }), a = useRef(null), l = t.split(" "), o = l.length > e, c = o ? l.slice(0, e).join(" ") : t, f = () => {
12306
- if (!a.current) return;
12307
- const u = a.current.getBoundingClientRect();
12308
- n({
12309
- top: u.top + window.scrollY - 8,
12310
- // tweak vertical offset here
12311
- left: u.left + window.scrollX
12312
- }), i(!0);
12313
- }, b = () => i(!1);
12301
+ }, CETruncatedTextWithTooltip = ({ text: t }) => {
12302
+ const [e, r] = useState(!1), [i, s] = useState({ top: 0, left: 0 }), n = useRef(null), [a, l] = useState(!1);
12303
+ useEffect(() => {
12304
+ n.current && l(
12305
+ n.current.scrollWidth > n.current.clientWidth
12306
+ );
12307
+ }, [t]);
12308
+ const o = () => {
12309
+ if (n.current && n.current.scrollWidth > n.current.clientWidth) {
12310
+ const f = n.current.getBoundingClientRect();
12311
+ s({
12312
+ top: f.top + window.scrollY - 8,
12313
+ // tweak vertical offset here
12314
+ left: f.left + window.scrollX
12315
+ }), r(!0);
12316
+ }
12317
+ }, c = () => r(!1);
12314
12318
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(
12315
12319
  "span",
12316
12320
  {
12317
12321
  className: "truncated-text-with-tooltip",
12318
- ref: a,
12319
- onMouseEnter: o ? f : void 0,
12320
- onMouseLeave: o ? b : void 0,
12322
+ ref: n,
12323
+ onMouseEnter: o,
12324
+ onMouseLeave: c,
12325
+ tabIndex: 0,
12321
12326
  children: [
12322
- c,
12323
- o && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "truncated-text-ellipsis", children: "…" }),
12324
- r && ReactDOM.createPortal(
12327
+ t,
12328
+ a && e && ReactDOM.createPortal(
12325
12329
  /* @__PURE__ */ jsxRuntimeExports.jsxs(
12326
12330
  "div",
12327
12331
  {
12328
12332
  className: "truncated-text-tooltip global-tooltip",
12329
12333
  style: {
12330
12334
  position: "absolute",
12331
- top: s.top,
12332
- left: s.left
12335
+ top: i.top,
12336
+ left: i.left
12333
12337
  },
12334
12338
  children: [
12335
12339
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "truncated-text-tooltip-arrow" }),
@@ -12369,7 +12373,7 @@ const v$2 = "5.1.7", fr$2 = 30, ip$2 = 25, op$2 = 69, w$2 = 600, h$2 = 600, nm$2
12369
12373
  {}
12370
12374
  ), [P, T] = useState(!1), [F, I] = useState([]), [O, $] = useState([]), [B, z] = useState(!1), [H, D] = useState(/* @__PURE__ */ new Set()), [A, M] = useState(null), [C, R] = useState(!1), [_, j] = useState(""), [L, N] = useState("contains"), [G, J] = useState(""), [K, X] = useState(0), [Q, at] = useState(
12371
12375
  p ?? 10
12372
- ), [it, st] = useState(/* @__PURE__ */ new Set()), [ct, tt] = useState(""), [q, pt] = useState(!1), [ot, ut] = useState(/* @__PURE__ */ new Set()), ft = useRef(null), xt = useRef(null), dt = useRef(null), [nt, vt] = useState(/* @__PURE__ */ new Set()), [ht, yt] = useState([]), [gt, mt] = useState(!1), [lt, St] = useState(null), Et = useRef(null);
12376
+ ), [it, st] = useState(/* @__PURE__ */ new Set()), [ct, tt] = useState(""), [q, pt] = useState(!1), [ot, ut] = useState(/* @__PURE__ */ new Set()), ft = useRef(null), xt = useRef(null), dt = useRef(null), [nt, vt] = useState(/* @__PURE__ */ new Set()), [ht, yt] = useState([]), [gt, mt] = useState(!1), [lt, St] = useState(null), [Et, Ct] = useState(!1), jt = () => Ct(!0), Ft = () => Ct(!1);
12373
12377
  useEffect(() => {
12374
12378
  if (F.length > 0) {
12375
12379
  const V = Object.keys(F[0]), W = V.map((U) => {
@@ -12388,10 +12392,10 @@ const v$2 = "5.1.7", fr$2 = 30, ip$2 = 25, op$2 = 69, w$2 = 600, h$2 = 600, nm$2
12388
12392
  }, [F, r]), useEffect(() => {
12389
12393
  e && Array.isArray(e) ? (I(e), $(e)) : console.warn("Invalid or missing jsonData prop");
12390
12394
  }, [e]);
12391
- const Ct = useMemo(() => {
12395
+ const wt = useMemo(() => {
12392
12396
  const V = K * Q, W = V + Q;
12393
12397
  return F.slice(V, W);
12394
- }, [F, K, Q]), Ft = (V) => {
12398
+ }, [F, K, Q]), Mt = (V) => {
12395
12399
  const W = new Set(ot);
12396
12400
  W.has(V) ? W.size > 1 && W.delete(V) : W.add(V), ut(W);
12397
12401
  }, At = (V, W = null) => {
@@ -12399,15 +12403,15 @@ const v$2 = "5.1.7", fr$2 = 30, ip$2 = 25, op$2 = 69, w$2 = 600, h$2 = 600, nm$2
12399
12403
  Y.has(U) ? Y.delete(U) : (Array.from(Y).forEach((Z) => {
12400
12404
  Z.startsWith(`${V}`) && Y.delete(Z);
12401
12405
  }), Y.add(U)), st(Y);
12402
- }, Mt = (V) => {
12403
- M(A === V ? null : V);
12404
12406
  }, It = (V) => {
12407
+ M(A === V ? null : V);
12408
+ }, Lt = (V) => {
12405
12409
  if (O.length === 0) return;
12406
12410
  let W = "asc";
12407
12411
  lt && lt.column === V && (W = lt.direction === "asc" ? "desc" : "asc");
12408
12412
  const U = [...O].sort((Y, Z) => Y[V] == null ? 1 : Z[V] == null ? -1 : Y[V] === Z[V] ? 0 : W === "asc" ? Y[V] > Z[V] ? 1 : -1 : Y[V] < Z[V] ? 1 : -1);
12409
12413
  I(U), St({ column: V, direction: W });
12410
- }, Lt = () => {
12414
+ }, Dt = () => {
12411
12415
  let V = [];
12412
12416
  F.length === O.length ? V = F : V = O;
12413
12417
  const W = V.filter((U) => {
@@ -12425,7 +12429,7 @@ const v$2 = "5.1.7", fr$2 = 30, ip$2 = 25, op$2 = 69, w$2 = 600, h$2 = 600, nm$2
12425
12429
  return L === "contains" ? et.includes(W.toLowerCase()) : L === "equals" ? et === W : L === "startsWith" ? et.startsWith(W) : L === "endsWith" ? et.endsWith(W) : L === "does not contain" ? !et.includes(W) : L === "does not equal" ? et !== W : L === "is empty" ? et.trim() === "" : L === "is not empty" ? et.trim() !== "" : L === "is any of" ? W.split(",").map((bt) => bt.trim()).includes(et) : !0;
12426
12430
  });
12427
12431
  I(Y), R(!1);
12428
- }, Dt = (V) => {
12432
+ }, Vt = (V) => {
12429
12433
  V.key === "Enter" && _t();
12430
12434
  };
12431
12435
  useEscapeKey(() => {
@@ -12481,7 +12485,7 @@ const v$2 = "5.1.7", fr$2 = 30, ip$2 = 25, op$2 = 69, w$2 = 600, h$2 = 600, nm$2
12481
12485
  ] }, `${W}-${Y}`)) })
12482
12486
  ] }) });
12483
12487
  return /* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: String(V) });
12484
- }, Vt = (V) => {
12488
+ }, Bt = (V) => {
12485
12489
  if (V) {
12486
12490
  const W = V.getBoundingClientRect(), U = W.right > window.innerWidth, Y = W.left < 0;
12487
12491
  U ? (V.classList.add("adjust-left"), V.classList.remove("adjust-right")) : Y ? (V.classList.add("adjust-right"), V.classList.remove("adjust-left")) : (V.classList.remove("adjust-left"), V.classList.remove("adjust-right"));
@@ -12502,147 +12506,136 @@ const v$2 = "5.1.7", fr$2 = 30, ip$2 = 25, op$2 = 69, w$2 = 600, h$2 = 600, nm$2
12502
12506
  document.removeEventListener("mousedown", V);
12503
12507
  };
12504
12508
  }, [q]);
12505
- const Bt = (V, W) => {
12506
- V.preventDefault(), T(!0);
12509
+ const Nt = (V, W) => {
12510
+ V.preventDefault();
12507
12511
  const U = V.pageX, Y = g[W] || 150, Z = (rt) => {
12508
- if (P) {
12509
- const bt = Math.max(
12510
- 100,
12511
- Y + (rt.pageX - U)
12512
- );
12513
- k((kt) => ({
12514
- ...kt,
12515
- [W]: bt
12516
- }));
12517
- }
12512
+ const bt = Math.max(100, Y + (rt.pageX - U));
12513
+ k((kt) => ({
12514
+ ...kt,
12515
+ [W]: bt
12516
+ }));
12518
12517
  }, et = () => {
12519
- T(!1), document.removeEventListener("mousemove", Z), document.removeEventListener("mouseup", et);
12518
+ document.removeEventListener("mousemove", Z), document.removeEventListener("mouseup", et);
12520
12519
  };
12521
12520
  document.addEventListener("mousemove", Z), document.addEventListener("mouseup", et);
12522
- }, Nt = (V, W) => {
12521
+ }, Ot = (V, W) => {
12523
12522
  m != null && m.includes(W) && y && y(V);
12524
- }, Rt = Ct.some(
12523
+ }, Rt = wt.some(
12525
12524
  (V) => Array.from(ot).some(
12526
12525
  (W) => Array.isArray(V[W]) && V[W].length > 0 && V[W].some(
12527
12526
  (U) => typeof U == "object" && U !== null
12528
12527
  )
12529
12528
  )
12530
- ), [wt, Tt] = useState(!1), Ot = () => {
12531
- Tt((W) => !W);
12532
- const V = Et.current;
12533
- V && (wt ? document.exitFullscreen ? document.exitFullscreen() : document.webkitExitFullscreen ? document.webkitExitFullscreen() : document.msExitFullscreen && document.msExitFullscreen() : V.requestFullscreen ? V.requestFullscreen() : V.webkitRequestFullscreen ? V.webkitRequestFullscreen() : V.msRequestFullscreen && V.msRequestFullscreen());
12534
- };
12535
- return useEffect(() => {
12536
- const V = () => {
12537
- const W = document.fullscreenElement === Et.current || document.webkitFullscreenElement === Et.current || document.msFullscreenElement === Et.current;
12538
- Tt(W);
12539
- };
12540
- return document.addEventListener("fullscreenchange", V), document.addEventListener("webkitfullscreenchange", V), document.addEventListener("msfullscreenchange", V), () => {
12541
- document.removeEventListener("fullscreenchange", V), document.removeEventListener("webkitfullscreenchange", V), document.removeEventListener("msfullscreenchange", V);
12542
- };
12543
- }, []), /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "datatable-wrapper", ref: Et, children: [
12544
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "grid-header", children: [
12545
- t && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "header-title", children: t }),
12546
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "search-container", children: [
12547
- s && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "search-wrapper", children: [
12548
- /* @__PURE__ */ jsxRuntimeExports.jsx(
12549
- "img",
12550
- {
12551
- src: SearchRounded,
12552
- alt: "Show Filter",
12553
- title: "Show/Hide Filter",
12554
- width: 20,
12555
- height: 20,
12556
- style: { cursor: "pointer" },
12557
- onClick: () => z((V) => !V)
12558
- }
12559
- ),
12560
- ct && /* @__PURE__ */ jsxRuntimeExports.jsx(
12561
- "button",
12562
- {
12563
- className: "search-cancel-button",
12564
- onClick: () => {
12565
- tt(""), I(O);
12566
- },
12567
- children: "×"
12568
- }
12569
- )
12570
- ] }),
12571
- /* @__PURE__ */ jsxRuntimeExports.jsx(
12572
- "img",
12573
- {
12574
- src: ShowOrHideColumn,
12575
- alt: "Columns",
12576
- title: "Show/Hide Columns",
12577
- width: 20,
12578
- height: 20,
12579
- style: { cursor: "pointer" },
12580
- onClick: () => pt(!0)
12581
- }
12582
- ),
12583
- /* @__PURE__ */ jsxRuntimeExports.jsx(
12584
- "button",
12585
- {
12586
- className: "fullscreen-button",
12587
- onClick: Ot,
12588
- title: wt ? "Exit full screen" : "Full screen",
12589
- children: wt ? "⤫" : "⤢"
12590
- }
12591
- )
12592
- ] })
12593
- ] }),
12594
- q && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "column-modal", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "column-modal-content", ref: dt, children: [
12595
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "column-modal-header", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
12596
- "button",
12597
- {
12598
- className: "modal-close-button",
12599
- onClick: () => pt(!1),
12600
- children: "×"
12601
- }
12602
- ) }),
12603
- /* @__PURE__ */ jsxRuntimeExports.jsx("h3", { className: "column-modal-title", children: "Column Visibility" }),
12604
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "column-modal-actions", children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "select-all-action", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
12605
- CECheckBox,
12606
- {
12607
- label: "Select All",
12608
- checked: ot.size === ht.length,
12609
- onChange: (V) => {
12610
- ut(V ? new Set(ht.map((W) => W.id)) : /* @__PURE__ */ new Set());
12611
- }
12612
- }
12613
- ) }) }),
12614
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "column-list", children: ht.map((V) => /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "column-item", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
12615
- CECheckBox,
12616
- {
12617
- label: V.label ?? V.id,
12618
- checked: ot.has(V.id),
12619
- onChange: () => Ft(V.id)
12620
- }
12621
- ) }, V.id)) })
12622
- ] }) }),
12623
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "table-container", children: [
12624
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "table-scroll-container", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("table", { className: "custom-table", children: [
12625
- /* @__PURE__ */ jsxRuntimeExports.jsxs("thead", { children: [
12626
- /* @__PURE__ */ jsxRuntimeExports.jsxs("tr", { children: [
12627
- Rt && /* @__PURE__ */ jsxRuntimeExports.jsx("th", { className: "expand-column" }),
12628
- i && /* @__PURE__ */ jsxRuntimeExports.jsx("th", { className: "checkbox-column", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
12629
- CECheckBox,
12630
- {
12631
- label: "",
12632
- checked: H.size === F.length && F.length > 0,
12633
- onChange: (V) => {
12634
- if (V) {
12635
- const W = new Set(
12636
- F.map((U, Y) => Y)
12637
- );
12638
- D(W);
12639
- } else
12640
- D(/* @__PURE__ */ new Set());
12529
+ ), $t = () => /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "table-container", children: [
12530
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "table-scroll-container", children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
12531
+ "table",
12532
+ {
12533
+ className: "custom-table",
12534
+ style: { tableLayout: "fixed", width: "100%" },
12535
+ children: [
12536
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("thead", { children: [
12537
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("tr", { children: [
12538
+ Rt && /* @__PURE__ */ jsxRuntimeExports.jsx("th", { className: "expand-column" }),
12539
+ i && /* @__PURE__ */ jsxRuntimeExports.jsx("th", { className: "checkbox-column", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
12540
+ CECheckBox,
12541
+ {
12542
+ label: "",
12543
+ checked: H.size === F.length && F.length > 0,
12544
+ onChange: (V) => {
12545
+ if (V) {
12546
+ const W = new Set(
12547
+ F.map((U, Y) => Y)
12548
+ );
12549
+ D(W);
12550
+ } else
12551
+ D(/* @__PURE__ */ new Set());
12552
+ }
12641
12553
  }
12642
- }
12643
- ) }),
12644
- ht.map(
12645
- (V) => ot.has(V.id) && /* @__PURE__ */ jsxRuntimeExports.jsx(
12554
+ ) }),
12555
+ ht.map(
12556
+ (V) => ot.has(V.id) && /* @__PURE__ */ jsxRuntimeExports.jsx(
12557
+ "th",
12558
+ {
12559
+ className: "table-header-cell",
12560
+ style: {
12561
+ width: g[V.id] ? `${g[V.id]}px` : "150px",
12562
+ minWidth: "80px",
12563
+ maxWidth: "600px"
12564
+ },
12565
+ children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "column-header", children: [
12566
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: "column-label-with-info", children: [
12567
+ V.label,
12568
+ V.tooltip && /* @__PURE__ */ jsxRuntimeExports.jsx(
12569
+ "img",
12570
+ {
12571
+ src: InfoIcon,
12572
+ alt: "info",
12573
+ title: V.tooltip,
12574
+ width: 14,
12575
+ height: 14,
12576
+ className: "info-icon"
12577
+ }
12578
+ )
12579
+ ] }),
12580
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "column-actions", children: [
12581
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
12582
+ "img",
12583
+ {
12584
+ src: SortIcon,
12585
+ alt: "Sort",
12586
+ title: "Sort",
12587
+ width: 20,
12588
+ height: 20,
12589
+ onClick: () => Lt(V.id),
12590
+ style: {
12591
+ cursor: "pointer",
12592
+ transition: "transform 0.2s ease-in-out",
12593
+ transform: (lt == null ? void 0 : lt.column) === V.id ? lt.direction === "asc" ? "rotate(0deg)" : "rotate(180deg)" : "none",
12594
+ filter: (lt == null ? void 0 : lt.column) === V.id ? "brightness(0.6)" : "none"
12595
+ }
12596
+ }
12597
+ ),
12598
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "dropdown-container", ref: xt, children: [
12599
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
12600
+ "span",
12601
+ {
12602
+ className: "dropdown-trigger",
12603
+ onClick: () => It(V.id),
12604
+ children: "⋮"
12605
+ }
12606
+ ),
12607
+ A === V.id && /* @__PURE__ */ jsxRuntimeExports.jsx(
12608
+ "div",
12609
+ {
12610
+ className: "dropdown-menu",
12611
+ ref: (W) => Bt(W),
12612
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(
12613
+ "button",
12614
+ {
12615
+ className: "dropdown-item",
12616
+ onClick: () => {
12617
+ j(V.id), R(!0), M(null);
12618
+ },
12619
+ children: "Filter"
12620
+ }
12621
+ )
12622
+ }
12623
+ )
12624
+ ] })
12625
+ ] }),
12626
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
12627
+ "div",
12628
+ {
12629
+ className: "column-resizer",
12630
+ onMouseDown: (W) => Nt(W, V.id)
12631
+ }
12632
+ )
12633
+ ] })
12634
+ },
12635
+ V.id
12636
+ )
12637
+ ),
12638
+ (a || c || f || o || l || n) && /* @__PURE__ */ jsxRuntimeExports.jsx(
12646
12639
  "th",
12647
12640
  {
12648
12641
  className: "table-header-cell",
@@ -12650,408 +12643,403 @@ const v$2 = "5.1.7", fr$2 = 30, ip$2 = 25, op$2 = 69, w$2 = 600, h$2 = 600, nm$2
12650
12643
  width: "150px",
12651
12644
  textAlign: "center"
12652
12645
  },
12653
- children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "column-header", children: [
12654
- /* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: "column-label-with-info", children: [
12655
- V.label,
12656
- V.tooltip && /* @__PURE__ */ jsxRuntimeExports.jsx(
12657
- "img",
12658
- {
12659
- src: InfoIcon,
12660
- alt: "info",
12661
- title: V.tooltip,
12662
- width: 14,
12663
- height: 14,
12664
- className: "info-icon"
12665
- }
12666
- )
12667
- ] }),
12668
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "column-actions", children: [
12669
- /* @__PURE__ */ jsxRuntimeExports.jsx(
12670
- "img",
12671
- {
12672
- src: SortIcon,
12673
- alt: "Sort",
12674
- title: "Sort",
12675
- width: 20,
12676
- height: 20,
12677
- onClick: () => It(V.id),
12678
- style: {
12679
- cursor: "pointer",
12680
- transition: "transform 0.2s ease-in-out",
12681
- transform: (lt == null ? void 0 : lt.column) === V.id ? lt.direction === "asc" ? "rotate(0deg)" : "rotate(180deg)" : "none",
12682
- filter: (lt == null ? void 0 : lt.column) === V.id ? "brightness(0.6)" : "none"
12646
+ children: "Action"
12647
+ }
12648
+ )
12649
+ ] }),
12650
+ B && /* @__PURE__ */ jsxRuntimeExports.jsxs("tr", { children: [
12651
+ Rt && /* @__PURE__ */ jsxRuntimeExports.jsx("td", {}),
12652
+ i && /* @__PURE__ */ jsxRuntimeExports.jsx("td", {}),
12653
+ ht.map(
12654
+ (V) => ot.has(V.id) && /* @__PURE__ */ jsxRuntimeExports.jsx("td", { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
12655
+ "input",
12656
+ {
12657
+ type: "text",
12658
+ placeholder: `Filter ${V.label}`,
12659
+ value: _ === V.id ? G : "",
12660
+ onChange: (W) => {
12661
+ const U = W.target.value;
12662
+ J(U), j(V.id), _t(V.id, U);
12663
+ }
12664
+ }
12665
+ ) }, `filter-${V.id}`)
12666
+ ),
12667
+ (a || c || f || o || l || n) && /* @__PURE__ */ jsxRuntimeExports.jsx("td", {})
12668
+ ] })
12669
+ ] }),
12670
+ /* @__PURE__ */ jsxRuntimeExports.jsx("tbody", { children: wt.map((V, W) => /* @__PURE__ */ jsxRuntimeExports.jsxs(React2__default.Fragment, { children: [
12671
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(
12672
+ "tr",
12673
+ {
12674
+ className: W % 2 === 0 ? "table-row-even" : "table-row-odd",
12675
+ children: [
12676
+ Rt && /* @__PURE__ */ jsxRuntimeExports.jsx("td", { className: "expand-column", children: Array.from(ot).some(
12677
+ (U) => Array.isArray(V[U]) && V[U].length > 0 && V[U].some(
12678
+ (Y) => typeof Y == "object" && Y !== null
12679
+ )
12680
+ ) && /* @__PURE__ */ jsxRuntimeExports.jsx(
12681
+ "button",
12682
+ {
12683
+ className: "expand-button",
12684
+ onClick: () => At(W),
12685
+ children: Array.from(it).some(
12686
+ (U) => U.startsWith(`${W}`)
12687
+ ) ? "▼" : "▶"
12688
+ }
12689
+ ) }),
12690
+ i && /* @__PURE__ */ jsxRuntimeExports.jsx("td", { className: "checkbox-column", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
12691
+ CECheckBox,
12692
+ {
12693
+ label: "",
12694
+ checked: H.has(W),
12695
+ onChange: (U) => {
12696
+ const Y = new Set(H);
12697
+ U ? Y.add(W) : Y.delete(W), D(Y);
12698
+ }
12699
+ }
12700
+ ) }),
12701
+ ht.map(
12702
+ (U) => ot.has(U.id) && /* @__PURE__ */ jsxRuntimeExports.jsx(
12703
+ "td",
12704
+ {
12705
+ style: {
12706
+ width: g[U.id] ? `${g[U.id]}px` : "150px",
12707
+ minWidth: "80px",
12708
+ maxWidth: "600px"
12709
+ },
12710
+ className: `table-cell ${m != null && m.includes(U.id) ? "ce-clickable-cell" : ""} ${Array.isArray(V[U.id]) && V[U.id].length > 0 && typeof V[U.id][0] == "object" ? "highlight-cell" : ""}`,
12711
+ onClick: () => {
12712
+ m != null && m.includes(U.id) ? Ot(V, U.id) : Array.isArray(V[U.id]) && V[U.id].length > 0 && At(W, U.id);
12713
+ },
12714
+ children: Array.isArray(V[U.id]) ? `${V[U.id].length}` : typeof V[U.id] == "object" ? Object.entries(V[U.id]).map(([Y, Z]) => `${Y}: ${Z}`).join(", ") : typeof V[U.id] == "string" && V[U.id].split(" ").length > 5 ? /* @__PURE__ */ jsxRuntimeExports.jsx(
12715
+ CETruncatedTextWithTooltip,
12716
+ {
12717
+ text: V[U.id]
12683
12718
  }
12684
- }
12685
- ),
12686
- /* @__PURE__ */ jsxRuntimeExports.jsxs(
12719
+ ) : V[U.id]
12720
+ },
12721
+ U.id
12722
+ )
12723
+ ),
12724
+ (a || c || f || o || l || n) && /* @__PURE__ */ jsxRuntimeExports.jsx("td", { className: "table-cell", style: { textAlign: "center" }, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
12725
+ "div",
12726
+ {
12727
+ style: {
12728
+ display: "flex",
12729
+ justifyContent: "center",
12730
+ gap: "8px",
12731
+ flexWrap: "wrap"
12732
+ },
12733
+ children: [
12734
+ a && /* @__PURE__ */ jsxRuntimeExports.jsx(
12735
+ "img",
12736
+ {
12737
+ src: Edit,
12738
+ alt: "Edit",
12739
+ title: "Edit",
12740
+ width: 20,
12741
+ height: 20,
12742
+ style: { cursor: "pointer" },
12743
+ onClick: b
12744
+ }
12745
+ ),
12746
+ c && /* @__PURE__ */ jsxRuntimeExports.jsx(
12747
+ "img",
12748
+ {
12749
+ src: Reassign,
12750
+ alt: "Reassign",
12751
+ width: 20,
12752
+ height: 20,
12753
+ style: { cursor: "pointer" },
12754
+ onClick: x
12755
+ }
12756
+ ),
12757
+ f && /* @__PURE__ */ jsxRuntimeExports.jsx(
12758
+ "img",
12759
+ {
12760
+ src: Cancel,
12761
+ alt: "Cancel",
12762
+ width: 20,
12763
+ height: 20,
12764
+ style: { cursor: "pointer" },
12765
+ onClick: S
12766
+ }
12767
+ ),
12768
+ o && /* @__PURE__ */ jsxRuntimeExports.jsx(
12769
+ "img",
12770
+ {
12771
+ src: Approve,
12772
+ alt: "Approve",
12773
+ width: 20,
12774
+ height: 20,
12775
+ style: { cursor: "pointer" },
12776
+ onClick: d
12777
+ }
12778
+ ),
12779
+ l && /* @__PURE__ */ jsxRuntimeExports.jsx(
12780
+ "img",
12781
+ {
12782
+ src: Delete,
12783
+ alt: "Delete",
12784
+ width: 20,
12785
+ height: 20,
12786
+ style: { cursor: "pointer" },
12787
+ onClick: E
12788
+ }
12789
+ ),
12790
+ n && /* @__PURE__ */ jsxRuntimeExports.jsx(
12791
+ "img",
12792
+ {
12793
+ src: Add,
12794
+ alt: "Add",
12795
+ width: 20,
12796
+ height: 20,
12797
+ style: { cursor: "pointer" },
12798
+ onClick: u
12799
+ }
12800
+ )
12801
+ ]
12802
+ }
12803
+ ) })
12804
+ ]
12805
+ }
12806
+ ),
12807
+ Array.from(it).map((U) => {
12808
+ const [Y, Z] = U.split("-");
12809
+ if (Number(Y) === W) {
12810
+ const et = Z ? { [Z]: V[Z] } : Object.keys(V).filter(
12811
+ (rt) => Array.isArray(V[rt]) || typeof V[rt] == "object"
12812
+ ).reduce(
12813
+ (rt, bt) => ({ ...rt, [bt]: V[bt] }),
12814
+ {}
12815
+ );
12816
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("tr", { className: "expanded-row", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
12817
+ "td",
12818
+ {
12819
+ colSpan: ot.size + 2,
12820
+ className: "expanded-cell",
12821
+ children: Object.entries(et).map(
12822
+ ([rt, bt], kt) => /* @__PURE__ */ jsxRuntimeExports.jsxs(
12687
12823
  "div",
12688
12824
  {
12689
- className: "dropdown-container",
12690
- ref: xt,
12825
+ className: `expanded-section ${kt % 2 === 0 ? "expanded-section-even" : "expanded-section-odd"}`,
12826
+ style: {
12827
+ backgroundColor: kt % 2 === 0 ? "#e8f5e9" : "#e3f2fd",
12828
+ padding: "10px",
12829
+ marginBottom: "10px",
12830
+ borderRadius: "5px"
12831
+ },
12691
12832
  children: [
12692
12833
  /* @__PURE__ */ jsxRuntimeExports.jsx(
12693
- "span",
12834
+ "h4",
12694
12835
  {
12695
- className: "dropdown-trigger",
12696
- onClick: () => Mt(V.id),
12697
- children: ""
12836
+ style: {
12837
+ margin: "0 0 10px 0",
12838
+ color: "#333"
12839
+ },
12840
+ children: rt.charAt(0).toUpperCase() + rt.slice(1)
12698
12841
  }
12699
12842
  ),
12700
- A === V.id && /* @__PURE__ */ jsxRuntimeExports.jsx(
12701
- "div",
12702
- {
12703
- className: "dropdown-menu",
12704
- ref: (W) => Vt(W),
12705
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(
12706
- "button",
12707
- {
12708
- className: "dropdown-item",
12709
- onClick: () => {
12710
- j(V.id), R(!0), M(null);
12711
- },
12712
- children: "Filter"
12713
- }
12714
- )
12715
- }
12716
- )
12843
+ Pt(bt)
12717
12844
  ]
12718
- }
12719
- )
12720
- ] }),
12721
- /* @__PURE__ */ jsxRuntimeExports.jsx(
12722
- "div",
12723
- {
12724
- className: "column-resizer",
12725
- onMouseDown: (W) => Bt(W, V.id)
12726
- }
12727
- )
12728
- ] })
12729
- },
12730
- V.id
12731
- )
12732
- ),
12733
- (a || c || f || o || l || n) && /* @__PURE__ */ jsxRuntimeExports.jsx(
12734
- "th",
12735
- {
12736
- className: "table-header-cell",
12737
- style: {
12738
- width: "150px",
12739
- // same as other column widths
12740
- textAlign: "center"
12741
- },
12742
- children: "Action"
12743
- }
12744
- )
12745
- ] }),
12746
- B && /* @__PURE__ */ jsxRuntimeExports.jsxs("tr", { children: [
12747
- Rt && /* @__PURE__ */ jsxRuntimeExports.jsx("td", {}),
12748
- " ",
12749
- i && /* @__PURE__ */ jsxRuntimeExports.jsx("td", {}),
12750
- " ",
12751
- ht.map(
12752
- (V) => ot.has(V.id) && /* @__PURE__ */ jsxRuntimeExports.jsx("td", { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
12753
- "input",
12754
- {
12755
- type: "text",
12756
- placeholder: `Filter ${V.label}`,
12757
- value: _ === V.id ? G : "",
12758
- onChange: (W) => {
12759
- const U = W.target.value;
12760
- J(U), j(V.id), _t(V.id, U);
12761
- }
12762
- }
12763
- ) }, `filter-${V.id}`)
12764
- ),
12765
- (a || c || f || o || l || n) && /* @__PURE__ */ jsxRuntimeExports.jsx("td", {})
12766
- ] })
12767
- ] }),
12768
- /* @__PURE__ */ jsxRuntimeExports.jsx("tbody", { children: Ct.map((V, W) => /* @__PURE__ */ jsxRuntimeExports.jsxs(React2__default.Fragment, { children: [
12769
- /* @__PURE__ */ jsxRuntimeExports.jsxs(
12770
- "tr",
12771
- {
12772
- className: W % 2 === 0 ? "table-row-even" : "table-row-odd",
12773
- children: [
12774
- Rt && /* @__PURE__ */ jsxRuntimeExports.jsx("td", { className: "expand-column", children: Array.from(ot).some(
12775
- (U) => Array.isArray(V[U]) && V[U].length > 0 && V[U].some(
12776
- (Y) => typeof Y == "object" && Y !== null
12777
- )
12778
- ) && /* @__PURE__ */ jsxRuntimeExports.jsx(
12779
- "button",
12780
- {
12781
- className: "expand-button",
12782
- onClick: () => At(W),
12783
- children: Array.from(it).some(
12784
- (U) => U.startsWith(`${W}`)
12785
- ) ? "▼" : "▶"
12786
- }
12787
- ) }),
12788
- i && /* @__PURE__ */ jsxRuntimeExports.jsx("td", { className: "checkbox-column", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
12789
- CECheckBox,
12790
- {
12791
- label: "",
12792
- checked: H.has(W),
12793
- onChange: (U) => {
12794
- const Y = new Set(H);
12795
- U ? Y.add(W) : Y.delete(W), D(Y);
12796
- }
12797
- }
12798
- ) }),
12799
- ht.map(
12800
- (U) => ot.has(U.id) && /* @__PURE__ */ jsxRuntimeExports.jsx(
12801
- "td",
12802
- {
12803
- className: `table-cell ${m != null && m.includes(U.id) ? "ce-clickable-cell" : ""} ${Array.isArray(V[U.id]) && V[U.id].length > 0 && typeof V[U.id][0] == "object" ? "highlight-cell" : ""}`,
12804
- onClick: () => {
12805
- m != null && m.includes(U.id) ? Nt(V, U.id) : Array.isArray(V[U.id]) && V[U.id].length > 0 && At(W, U.id);
12806
- },
12807
- children: Array.isArray(V[U.id]) ? `${V[U.id].length}` : typeof V[U.id] == "object" ? Object.entries(V[U.id]).map(([Y, Z]) => `${Y}: ${Z}`).join(", ") : typeof V[U.id] == "string" && V[U.id].split(" ").length > 5 ? /* @__PURE__ */ jsxRuntimeExports.jsx(
12808
- CETruncatedTextWithTooltip,
12809
- {
12810
- text: V[U.id],
12811
- wordCount: 5
12812
- }
12813
- ) : V[U.id]
12814
- },
12815
- U.id
12816
- )
12817
- ),
12818
- (a || c || f || o || l || n) && /* @__PURE__ */ jsxRuntimeExports.jsx(
12819
- "td",
12820
- {
12821
- className: "table-cell",
12822
- style: { textAlign: "center" },
12823
- children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
12824
- "div",
12825
- {
12826
- style: {
12827
- display: "flex",
12828
- justifyContent: "center",
12829
- gap: "8px",
12830
- flexWrap: "wrap"
12831
12845
  },
12832
- children: [
12833
- a && /* @__PURE__ */ jsxRuntimeExports.jsx(
12834
- "img",
12835
- {
12836
- src: Edit,
12837
- alt: "Edit",
12838
- title: "Edit",
12839
- width: 20,
12840
- height: 20,
12841
- style: { cursor: "pointer" },
12842
- onClick: b
12843
- }
12844
- ),
12845
- c && /* @__PURE__ */ jsxRuntimeExports.jsx(
12846
- "img",
12847
- {
12848
- src: Reassign,
12849
- alt: "Reassign",
12850
- width: 20,
12851
- height: 20,
12852
- style: { cursor: "pointer" },
12853
- onClick: x
12854
- }
12855
- ),
12856
- f && /* @__PURE__ */ jsxRuntimeExports.jsx(
12857
- "img",
12858
- {
12859
- src: Cancel,
12860
- alt: "Cancel",
12861
- width: 20,
12862
- height: 20,
12863
- style: { cursor: "pointer" },
12864
- onClick: S
12865
- }
12866
- ),
12867
- o && /* @__PURE__ */ jsxRuntimeExports.jsx(
12868
- "img",
12869
- {
12870
- src: Approve,
12871
- alt: "Approve",
12872
- width: 20,
12873
- height: 20,
12874
- style: { cursor: "pointer" },
12875
- onClick: d
12876
- }
12877
- ),
12878
- l && /* @__PURE__ */ jsxRuntimeExports.jsx(
12879
- "img",
12880
- {
12881
- src: Delete,
12882
- alt: "Delete",
12883
- width: 20,
12884
- height: 20,
12885
- style: { cursor: "pointer" },
12886
- onClick: E
12887
- }
12888
- ),
12889
- n && /* @__PURE__ */ jsxRuntimeExports.jsx(
12890
- "img",
12891
- {
12892
- src: Add,
12893
- alt: "Add",
12894
- width: 20,
12895
- height: 20,
12896
- style: { cursor: "pointer" },
12897
- onClick: u
12898
- }
12899
- )
12900
- ]
12901
- }
12846
+ rt
12847
+ )
12902
12848
  )
12903
12849
  }
12904
- )
12905
- ]
12906
- }
12907
- ),
12908
- Array.from(it).map((U) => {
12909
- const [Y, Z] = U.split("-");
12910
- if (Number(Y) === W) {
12911
- const et = Z ? { [Z]: V[Z] } : Object.keys(V).filter(
12912
- (rt) => Array.isArray(V[rt]) || typeof V[rt] == "object"
12913
- ).reduce(
12914
- (rt, bt) => ({ ...rt, [bt]: V[bt] }),
12915
- {}
12916
- );
12917
- return /* @__PURE__ */ jsxRuntimeExports.jsx("tr", { className: "expanded-row", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
12918
- "td",
12919
- {
12920
- colSpan: ot.size + 2,
12921
- className: "expanded-cell",
12922
- children: Object.entries(et).map(
12923
- ([rt, bt], kt) => /* @__PURE__ */ jsxRuntimeExports.jsxs(
12924
- "div",
12925
- {
12926
- className: `expanded-section ${kt % 2 === 0 ? "expanded-section-even" : "expanded-section-odd"}`,
12927
- style: {
12928
- backgroundColor: kt % 2 === 0 ? "#e8f5e9" : "#e3f2fd",
12929
- padding: "10px",
12930
- marginBottom: "10px",
12931
- borderRadius: "5px"
12932
- },
12933
- children: [
12934
- /* @__PURE__ */ jsxRuntimeExports.jsx(
12935
- "h4",
12936
- {
12937
- style: {
12938
- margin: "0 0 10px 0",
12939
- color: "#333"
12940
- },
12941
- children: rt.charAt(0).toUpperCase() + rt.slice(1)
12942
- }
12943
- ),
12944
- Pt(bt)
12945
- ]
12946
- },
12947
- rt
12948
- )
12949
- )
12950
- }
12951
- ) }, `expanded-${U}`);
12952
- }
12953
- return null;
12954
- })
12955
- ] }, W)) })
12956
- ] }) }),
12957
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "pagination-container", children: [
12958
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "rows-per-page-container", children: [
12959
- /* @__PURE__ */ jsxRuntimeExports.jsx("label", { htmlFor: "rows-per-page-select", children: "Rows per page:" }),
12960
- /* @__PURE__ */ jsxRuntimeExports.jsxs(
12961
- "select",
12962
- {
12963
- id: "rows-per-page-select",
12964
- value: Q,
12965
- onChange: (V) => {
12966
- at(Number(V.target.value)), X(0);
12967
- },
12968
- "aria-label": "Rows per page",
12969
- children: [
12970
- /* @__PURE__ */ jsxRuntimeExports.jsx("option", { value: 5, children: "5" }),
12971
- /* @__PURE__ */ jsxRuntimeExports.jsx("option", { value: 10, children: "10" }),
12972
- /* @__PURE__ */ jsxRuntimeExports.jsx("option", { value: 20, children: "20" }),
12973
- /* @__PURE__ */ jsxRuntimeExports.jsx("option", { value: 50, children: "50" }),
12974
- /* @__PURE__ */ jsxRuntimeExports.jsx("option", { value: 100, children: "100" })
12975
- ]
12976
- }
12977
- )
12978
- ] }),
12979
- /* @__PURE__ */ jsxRuntimeExports.jsx(
12980
- CEPagination,
12850
+ ) }, `expanded-${U}`);
12851
+ }
12852
+ return null;
12853
+ })
12854
+ ] }, W)) })
12855
+ ]
12856
+ }
12857
+ ) }),
12858
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "pagination-container", children: [
12859
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "rows-per-page-container", children: [
12860
+ /* @__PURE__ */ jsxRuntimeExports.jsx("label", { htmlFor: "rows-per-page-select", children: "Rows per page:" }),
12861
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(
12862
+ "select",
12981
12863
  {
12982
- currentPage: K,
12983
- totalPages: Math.ceil(F.length / Q),
12984
- onPageChange: (V) => X(V)
12864
+ id: "rows-per-page-select",
12865
+ value: Q,
12866
+ onChange: (V) => {
12867
+ at(Number(V.target.value)), X(0);
12868
+ },
12869
+ "aria-label": "Rows per page",
12870
+ children: [
12871
+ /* @__PURE__ */ jsxRuntimeExports.jsx("option", { value: 5, children: "5" }),
12872
+ /* @__PURE__ */ jsxRuntimeExports.jsx("option", { value: 10, children: "10" }),
12873
+ /* @__PURE__ */ jsxRuntimeExports.jsx("option", { value: 20, children: "20" }),
12874
+ /* @__PURE__ */ jsxRuntimeExports.jsx("option", { value: 50, children: "50" }),
12875
+ /* @__PURE__ */ jsxRuntimeExports.jsx("option", { value: 100, children: "100" })
12876
+ ]
12985
12877
  }
12986
12878
  )
12987
12879
  ] }),
12988
- C && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "filter-modal", children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
12989
- "div",
12880
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
12881
+ CEPagination,
12990
12882
  {
12991
- className: "filter-modal-content",
12992
- ref: ft,
12993
- onKeyDown: Dt,
12994
- tabIndex: 0,
12995
- children: [
12883
+ currentPage: K,
12884
+ totalPages: Math.ceil(F.length / Q),
12885
+ onPageChange: (V) => X(V)
12886
+ }
12887
+ )
12888
+ ] }),
12889
+ C && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "filter-modal", children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
12890
+ "div",
12891
+ {
12892
+ className: "filter-modal-content",
12893
+ ref: ft,
12894
+ onKeyDown: Vt,
12895
+ tabIndex: 0,
12896
+ children: [
12897
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
12898
+ CEButton,
12899
+ {
12900
+ className: "close-button-close",
12901
+ onClick: () => R(!1),
12902
+ children: "×"
12903
+ }
12904
+ ),
12905
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { children: [
12906
+ /* @__PURE__ */ jsxRuntimeExports.jsx("label", { children: "Columns:" }),
12996
12907
  /* @__PURE__ */ jsxRuntimeExports.jsx(
12997
- CEButton,
12908
+ "select",
12998
12909
  {
12999
- className: "close-button-close",
13000
- onClick: () => R(!1),
13001
- children: "×"
12910
+ value: _,
12911
+ onChange: (V) => j(V.target.value),
12912
+ children: ht.map((V) => /* @__PURE__ */ jsxRuntimeExports.jsx("option", { value: V.id, children: V.label }, V.id))
13002
12913
  }
13003
- ),
13004
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { children: [
13005
- /* @__PURE__ */ jsxRuntimeExports.jsx("label", { children: "Columns:" }),
12914
+ )
12915
+ ] }),
12916
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { children: [
12917
+ /* @__PURE__ */ jsxRuntimeExports.jsx("label", { children: "Operator:" }),
12918
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(
12919
+ "select",
12920
+ {
12921
+ value: L,
12922
+ onChange: (V) => N(V.target.value),
12923
+ children: [
12924
+ /* @__PURE__ */ jsxRuntimeExports.jsx("option", { value: "contains", children: "contains" }),
12925
+ /* @__PURE__ */ jsxRuntimeExports.jsx("option", { value: "equals", children: "equals" }),
12926
+ /* @__PURE__ */ jsxRuntimeExports.jsx("option", { value: "startsWith", children: "starts with" }),
12927
+ /* @__PURE__ */ jsxRuntimeExports.jsx("option", { value: "endsWith", children: "ends with" }),
12928
+ /* @__PURE__ */ jsxRuntimeExports.jsx("option", { value: "does not contain", children: "does not contain" }),
12929
+ /* @__PURE__ */ jsxRuntimeExports.jsx("option", { value: "does not equal", children: "does not equal" }),
12930
+ /* @__PURE__ */ jsxRuntimeExports.jsx("option", { value: "is empty", children: "is empty" }),
12931
+ /* @__PURE__ */ jsxRuntimeExports.jsx("option", { value: "is not empty", children: "is not empty" }),
12932
+ /* @__PURE__ */ jsxRuntimeExports.jsx("option", { value: "is any of", children: "is any of" })
12933
+ ]
12934
+ }
12935
+ )
12936
+ ] }),
12937
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { children: [
12938
+ /* @__PURE__ */ jsxRuntimeExports.jsx("label", { children: "Value:" }),
12939
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
12940
+ "input",
12941
+ {
12942
+ type: "text",
12943
+ value: G,
12944
+ onChange: (V) => J(V.target.value),
12945
+ placeholder: "Enter filter value",
12946
+ title: "Filter value"
12947
+ }
12948
+ )
12949
+ ] }),
12950
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CEButton, { onClick: Dt, children: "Apply Filter" })
12951
+ ]
12952
+ }
12953
+ ) })
12954
+ ] });
12955
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(
12956
+ "div",
12957
+ {
12958
+ className: `datatable-wrapper${Et ? " ce-grid-fullscreen" : ""}`,
12959
+ children: [
12960
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "grid-header", children: [
12961
+ t && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "header-title", children: t }),
12962
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "search-container", children: [
12963
+ s && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "search-wrapper", children: [
13006
12964
  /* @__PURE__ */ jsxRuntimeExports.jsx(
13007
- "select",
12965
+ "img",
13008
12966
  {
13009
- value: _,
13010
- onChange: (V) => j(V.target.value),
13011
- children: ht.map((V) => /* @__PURE__ */ jsxRuntimeExports.jsx("option", { value: V.id, children: V.label }, V.id))
12967
+ src: SearchRounded,
12968
+ alt: "Show Filter",
12969
+ title: "Show/Hide Filter",
12970
+ width: 20,
12971
+ height: 20,
12972
+ style: { cursor: "pointer" },
12973
+ onClick: () => z((V) => !V)
13012
12974
  }
13013
- )
13014
- ] }),
13015
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { children: [
13016
- /* @__PURE__ */ jsxRuntimeExports.jsx("label", { children: "Operator:" }),
13017
- /* @__PURE__ */ jsxRuntimeExports.jsxs(
13018
- "select",
13019
- {
13020
- value: L,
13021
- onChange: (V) => N(V.target.value),
13022
- children: [
13023
- /* @__PURE__ */ jsxRuntimeExports.jsx("option", { value: "contains", children: "contains" }),
13024
- /* @__PURE__ */ jsxRuntimeExports.jsx("option", { value: "equals", children: "equals" }),
13025
- /* @__PURE__ */ jsxRuntimeExports.jsx("option", { value: "startsWith", children: "starts with" }),
13026
- /* @__PURE__ */ jsxRuntimeExports.jsx("option", { value: "endsWith", children: "ends with" }),
13027
- /* @__PURE__ */ jsxRuntimeExports.jsx("option", { value: "does not contain", children: "does not contain" }),
13028
- /* @__PURE__ */ jsxRuntimeExports.jsx("option", { value: "does not equal", children: "does not equal" }),
13029
- /* @__PURE__ */ jsxRuntimeExports.jsx("option", { value: "is empty", children: "is empty" }),
13030
- /* @__PURE__ */ jsxRuntimeExports.jsx("option", { value: "is not empty", children: "is not empty" }),
13031
- /* @__PURE__ */ jsxRuntimeExports.jsx("option", { value: "is any of", children: "is any of" })
13032
- ]
13033
- }
13034
- )
13035
- ] }),
13036
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { children: [
13037
- /* @__PURE__ */ jsxRuntimeExports.jsx("label", { children: "Value:" }),
13038
- /* @__PURE__ */ jsxRuntimeExports.jsx(
13039
- "input",
12975
+ ),
12976
+ ct && /* @__PURE__ */ jsxRuntimeExports.jsx(
12977
+ "button",
13040
12978
  {
13041
- type: "text",
13042
- value: G,
13043
- onChange: (V) => J(V.target.value),
13044
- placeholder: "Enter filter value",
13045
- title: "Filter value"
12979
+ className: "search-cancel-button",
12980
+ onClick: () => {
12981
+ tt(""), I(O);
12982
+ },
12983
+ children: "×"
13046
12984
  }
13047
12985
  )
13048
12986
  ] }),
13049
- /* @__PURE__ */ jsxRuntimeExports.jsx(CEButton, { onClick: Lt, children: "Apply Filter" })
13050
- ]
13051
- }
13052
- ) })
13053
- ] })
13054
- ] });
12987
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
12988
+ "img",
12989
+ {
12990
+ src: ShowOrHideColumn,
12991
+ alt: "Columns",
12992
+ title: "Show/Hide Columns",
12993
+ width: 20,
12994
+ height: 20,
12995
+ style: { cursor: "pointer" },
12996
+ onClick: () => pt(!0)
12997
+ }
12998
+ ),
12999
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
13000
+ "button",
13001
+ {
13002
+ className: "fullscreen-button",
13003
+ onClick: Et ? Ft : jt,
13004
+ title: Et ? "Exit Full Screen" : "Full Screen",
13005
+ children: Et ? "⤫" : "⤢"
13006
+ }
13007
+ )
13008
+ ] })
13009
+ ] }),
13010
+ q && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "column-modal", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "column-modal-content", ref: dt, children: [
13011
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "column-modal-header", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
13012
+ "button",
13013
+ {
13014
+ className: "modal-close-button",
13015
+ onClick: () => pt(!1),
13016
+ children: "×"
13017
+ }
13018
+ ) }),
13019
+ /* @__PURE__ */ jsxRuntimeExports.jsx("h3", { className: "column-modal-title", children: "Column Visibility" }),
13020
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "column-modal-actions", children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "select-all-action", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
13021
+ CECheckBox,
13022
+ {
13023
+ label: "Select All",
13024
+ checked: ot.size === ht.length,
13025
+ onChange: (V) => {
13026
+ ut(V ? new Set(ht.map((W) => W.id)) : /* @__PURE__ */ new Set());
13027
+ }
13028
+ }
13029
+ ) }) }),
13030
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "column-list", children: ht.map((V) => /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "column-item", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
13031
+ CECheckBox,
13032
+ {
13033
+ label: V.label ?? V.id,
13034
+ checked: ot.has(V.id),
13035
+ onChange: () => Mt(V.id)
13036
+ }
13037
+ ) }, V.id)) })
13038
+ ] }) }),
13039
+ $t()
13040
+ ]
13041
+ }
13042
+ );
13055
13043
  }, DateInputPart = ({
13056
13044
  value: t,
13057
13045
  onChange: e,