@orangelogic/design-system 4.0.0 → 4.2.0

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.
Files changed (34) hide show
  1. package/library/chunks/{asset-link-format.ttcRQgDc.js → asset-link-format.CVwjA_yf.js} +606 -599
  2. package/library/chunks/{color-swatch-group.Bumfw-G2.js → color-swatch-group.BPXiMxjh.js} +611 -558
  3. package/library/chunks/{document-viewer.C9tM2Gc7.js → document-viewer.DtBW-p7z.js} +2 -2
  4. package/library/chunks/{index.Coy2OPB4.js → index.BO_sT6SH.js} +218 -217
  5. package/library/chunks/{menu-item.0TbnDEDp.js → menu-item.CbqZ66to.js} +5 -5
  6. package/library/chunks/{option.CyorNG0S.js → option.CkhHTlpl.js} +1 -1
  7. package/library/chunks/{pagination.D0BeaEIi.js → pagination.BlQRt932.js} +33 -29
  8. package/library/chunks/{tab-group.C98CWzEH.js → tab-group.CQfcMVEw.js} +1 -1
  9. package/library/chunks/{toast.BxiewnAG.js → toast.BOkYwUIj.js} +1 -1
  10. package/library/chunks/{transformation.CjWnFhab.js → transformation.B8m0Nbao.js} +23 -25
  11. package/library/chunks/{types.DVZ_cbKn.js → types.MwUT4xFk.js} +9410 -9400
  12. package/library/components/asset-link-format.js +2 -2
  13. package/library/components/atoms.js +5 -5
  14. package/library/components/color-picker.js +2 -2
  15. package/library/components/color-swatch-group.js +3 -3
  16. package/library/components/corner-position-input-group.js +1 -1
  17. package/library/components/document-viewer.js +1 -1
  18. package/library/components/dynamic-select.js +1 -1
  19. package/library/components/file-on-demand.js +2 -2
  20. package/library/components/menu-item.js +1 -1
  21. package/library/components/menu.js +1 -1
  22. package/library/components/option.js +1 -1
  23. package/library/components/organisms.js +2 -2
  24. package/library/components/pagination.js +2 -2
  25. package/library/components/select.js +1 -1
  26. package/library/components/tab-group.js +2 -2
  27. package/library/components/types.js +10 -10
  28. package/library/package.json +1 -1
  29. package/library/packages/hybrid/table-core/src/table/components/table-toolbar/table-dropdown-filter.d.ts +2 -0
  30. package/library/packages/hybrid/table-core/src/table/table.d.ts +35 -4
  31. package/library/packages/tools/src/fetch-image/fetch-image.d.ts +12 -0
  32. package/library/packages/utils/src/custom-element/i18n.d.ts +2 -2
  33. package/library/utils.js +2 -2
  34. package/package.json +1 -1
@@ -1,23 +1,23 @@
1
1
  import Di from "../components/space.js";
2
- import { C as qr, T as On } from "./typography.T72DuoCa.js";
2
+ import { C as Xr, T as On } from "./typography.T72DuoCa.js";
3
3
  import { n as m, C as Ie } from "./lib-cortex-element.CVMmyPMC.js";
4
- import { C as Xr, a as ss } from "./color-swatch.DdsUysbF.js";
4
+ import { C as Jr, a as ss } from "./color-swatch.DdsUysbF.js";
5
5
  import { c as We } from "./component.styles.CAS3c9pM.js";
6
6
  import { C as xt } from "./button.D1YIxtv-.js";
7
7
  import { C as An, o as Pn, O as In } from "./dialog.BbQ4Du0M.js";
8
8
  import { C as lt } from "./icon.BLXWp6CU.js";
9
9
  import { C as ri } from "./icon-button.CbUddcgI.js";
10
- import { C as co } from "./input.D1FFprPl.js";
10
+ import { C as uo } from "./input.D1FFprPl.js";
11
11
  import It from "../components/tooltip.js";
12
12
  import Hn from "../components/badge.js";
13
13
  import Nn from "../components/details.js";
14
14
  import ni from "../components/dropdown.js";
15
- import Jr from "../components/spinner.js";
15
+ import Yr from "../components/spinner.js";
16
16
  import Vn from "../components/tag.js";
17
- import { D as Yr, a as Bn, t as $n, b as Zr } from "./date-picker.BGHn6qg8.js";
17
+ import { D as Zr, a as Bn, t as $n, b as Qr } from "./date-picker.BGHn6qg8.js";
18
18
  import { c as He } from "./custom-element.L4WJXn1j.js";
19
19
  import { L as tt } from "./i18n.rtxrs1c1.js";
20
- import { w as H, b as Wn, S as jn, c as jo, p as Gn, E as Un } from "./watch.DJF5K-8U.js";
20
+ import { w as H, b as Wn, S as jn, c as Go, p as Gn, E as Un } from "./watch.DJF5K-8U.js";
21
21
  import { c as Kn } from "./date.iWq_pkIk.js";
22
22
  import { x, i as Y, E as rt, B as qn } from "./lit-element.jLBm65_O.js";
23
23
  import { r as M } from "./state.CSDxrqLd.js";
@@ -25,16 +25,16 @@ import { e as Xe } from "./class-map.BiVq-cVR.js";
25
25
  import { c as qe } from "./repeat.CFjcER6_.js";
26
26
  import { n as q } from "./when.Dr1es41R.js";
27
27
  import { o as J } from "./if-defined.BRoBj_Rp.js";
28
- import { i as Qr, r as Xn, f as Yt, m as Jn, a as Yn, t as en, g as Zn, b as Qn, c as ea } from "./toast.BxiewnAG.js";
28
+ import { i as en, r as Xn, f as Yt, m as Jn, a as Yn, t as tn, g as Zn, b as Qn, c as ea } from "./toast.BOkYwUIj.js";
29
29
  import { e as pe } from "./query.BBf1UFkC.js";
30
30
  import { a as ta, b as ia } from "./_baseXor.DixEm6JQ.js";
31
- import { a as Ki, i as Ot, b as tn } from "./isArrayLikeObject.D7afXo-f.js";
32
- import { b as qi, a as sa, c as sn, t as oa } from "./_baseIteratee.sC2wLi2m.js";
31
+ import { a as Ki, i as Ot, b as sn } from "./isArrayLikeObject.D7afXo-f.js";
32
+ import { b as qi, a as sa, c as on, t as oa } from "./_baseIteratee.sC2wLi2m.js";
33
33
  import { l as oi, i as ra, f as na } from "./_flatRest.ZYRhuYq_.js";
34
- import { a as uo } from "./toString.B1zKIiZc.js";
34
+ import { a as po } from "./toString.B1zKIiZc.js";
35
35
  import { a as aa, b as la } from "./_baseUniq.lwMgmtt2.js";
36
- import on from "../components/divider.js";
37
- import { d as rn } from "./debounce.DaHuiSGU.js";
36
+ import rn from "../components/divider.js";
37
+ import { d as nn } from "./debounce.DaHuiSGU.js";
38
38
  import { o as at } from "./style-map.llVFPd__.js";
39
39
  import { e as ha, c as ca, b as da } from "./_baseClone.ipmFlCAx.js";
40
40
  import { b as ua } from "./capitalize.CIBKBL10.js";
@@ -42,27 +42,27 @@ import { S as pa } from "./sortable.esm.oSzf6C5Q.js";
42
42
  import fa from "../components/line-clamp.js";
43
43
  import { o as ma } from "./unsafe-html.Dff7-rCx.js";
44
44
  import ai from "../components/menu.js";
45
- import { C as li } from "./menu-item.0TbnDEDp.js";
45
+ import { C as li } from "./menu-item.CbqZ66to.js";
46
46
  import ga from "../components/popup.js";
47
47
  import { r as ba } from "./choose.BTbF6BAn.js";
48
48
  import wa from "../components/menu-section.js";
49
- import nn from "../components/checkbox.js";
50
- import { C as va, P as ya } from "./pagination.D0BeaEIi.js";
51
- import { H as an } from "./slot.j5oheLJC.js";
52
- import { g as $, a as Go } from "./dom.DL-cNKsj.js";
49
+ import an from "../components/checkbox.js";
50
+ import { C as va, P as ya } from "./pagination.BlQRt932.js";
51
+ import { H as ln } from "./slot.j5oheLJC.js";
52
+ import { g as $, a as Uo } from "./dom.DL-cNKsj.js";
53
53
  import "./browser.BHOCIF_A.js";
54
54
  import "./form.DN2v7-DH.js";
55
55
  import "./purify.es.BIuh5IAZ.js";
56
- import { D as Mi } from "./transformation.CjWnFhab.js";
57
- import { s as P, h as Uo, b as Xi, c as po } from "./string.Demn8Xmk.js";
56
+ import { D as Mi } from "./transformation.B8m0Nbao.js";
57
+ import { s as P, h as Ko, b as Xi, c as fo } from "./string.Demn8Xmk.js";
58
58
  import { a as Ca } from "./_commonjsHelpers.DQNKXVTB.js";
59
59
  import { d as Ea } from "./debounce.Bv1rtE8D.js";
60
60
  import xa from "../components/format-number.js";
61
61
  import Ra from "../components/select.js";
62
62
  import { r as Sa } from "./query-all.i3PyvTUQ.js";
63
- import { i as Ko } from "./guard.D4axKaMo.js";
63
+ import { i as qo } from "./guard.D4axKaMo.js";
64
64
  var Ct = /* @__PURE__ */ ((r) => (r.Multiple = "multiple", r.Single = "single", r))(Ct || {}), nt = /* @__PURE__ */ ((r) => (r.Checkbox = "checkbox", r.DatePicker = "date-picker", r.DateRange = "date-range", r))(nt || {}), Ii = /* @__PURE__ */ ((r) => (r.Checkbox = "checkbox", r.DatePicker = "datePicker", r.DateRangePicker = "dateRangePicker", r))(Ii || {}), Hi = /* @__PURE__ */ ((r) => (r.ShowPreset = "showPreset", r.ShowTime = "showTime", r))(Hi || {});
65
- class ln {
65
+ class hn {
66
66
  #e;
67
67
  #i;
68
68
  #s = /* @__PURE__ */ new Set();
@@ -133,11 +133,11 @@ function Da(r, e) {
133
133
  }
134
134
  function ka(r, e) {
135
135
  const t = r.facetDetails;
136
- return x`<cx-facet-date-picker field=${t.facetFieldName} display-name=${t.displayName} display-format=${J(t.displayFormat)} value=${e.dateRange?.fromDate ?? ""} from-time=${e.dateRange?.fromTime ?? Yr} min=${t.min ?? ""} max=${t.max ?? ""} ?show-time=${t.showTime ?? !1}></cx-facet-date-picker>`;
136
+ return x`<cx-facet-date-picker field=${t.facetFieldName} display-name=${t.displayName} display-format=${J(t.displayFormat)} value=${e.dateRange?.fromDate ?? ""} from-time=${e.dateRange?.fromTime ?? Zr} min=${t.min ?? ""} max=${t.max ?? ""} ?show-time=${t.showTime ?? !1}></cx-facet-date-picker>`;
137
137
  }
138
138
  function Ta(r, e) {
139
139
  const t = r.facetDetails;
140
- return x`<cx-facet-date-range field=${t.facetFieldName} display-name=${t.displayName} display-format=${J(t.displayFormat)} from-date=${e.dateRange?.fromDate ?? ""} to-date=${e.dateRange?.toDate ?? ""} from-time=${e.dateRange?.fromTime ?? Yr} to-time=${e.dateRange?.toTime ?? Bn} preset=${e.dateRange?.preset ?? ""} min=${t.min ?? ""} max=${t.max ?? ""} ?show-time=${t.showTime ?? !1} ?show-preset=${t.showPreset ?? !1}></cx-facet-date-range>`;
140
+ return x`<cx-facet-date-range field=${t.facetFieldName} display-name=${t.displayName} display-format=${J(t.displayFormat)} from-date=${e.dateRange?.fromDate ?? ""} to-date=${e.dateRange?.toDate ?? ""} from-time=${e.dateRange?.fromTime ?? Zr} to-time=${e.dateRange?.toTime ?? Bn} preset=${e.dateRange?.preset ?? ""} min=${t.min ?? ""} max=${t.max ?? ""} ?show-time=${t.showTime ?? !1} ?show-preset=${t.showPreset ?? !1}></cx-facet-date-range>`;
141
141
  }
142
142
  const Ma = {
143
143
  [nt.Checkbox]: Da,
@@ -151,7 +151,7 @@ var La = Object.defineProperty, za = Object.getOwnPropertyDescriptor, Ee = (r, e
151
151
  };
152
152
  let re = class extends Ie {
153
153
  constructor() {
154
- super(...arguments), this.localize = new tt(this), this.shadowRootAutoloader = new ln(
154
+ super(...arguments), this.localize = new tt(this), this.shadowRootAutoloader = new hn(
155
155
  this
156
156
  ), this.facets = [], this.availableFacets = [], this.selectedFacets = {}, this.selectedDateRanges = {}, this.selection = Ct.Single, this.loading = !1, this.externalFilters = [], this.appliedFiltersCount = 0, this.internalSelection = {}, this.internalDateRanges = {}, this.mappedDisplayNames = {}, this.facetDetailsByField = /* @__PURE__ */ new Map();
157
157
  }
@@ -299,7 +299,7 @@ let re = class extends Ie {
299
299
  */
300
300
  getDateFacetPattern(r) {
301
301
  const e = r && "displayFormat" in r ? r.displayFormat : void 0;
302
- return $n(e ?? Zr.DdMmYyyy);
302
+ return $n(e ?? Qr.DdMmYyyy);
303
303
  }
304
304
  formatDateRangeDisplay(r, e) {
305
305
  const t = (i, s) => {
@@ -381,7 +381,7 @@ re.dependencies = {
381
381
  "cx-icon": lt,
382
382
  "cx-icon-button": ri,
383
383
  "cx-space": Di,
384
- "cx-spinner": Jr,
384
+ "cx-spinner": Yr,
385
385
  "cx-tag": Vn,
386
386
  "cx-tooltip": It
387
387
  };
@@ -444,26 +444,26 @@ Ee([
444
444
  re = Ee([
445
445
  He("cx-faceted-filter")
446
446
  ], re);
447
- var Ci = /* @__PURE__ */ ((r) => (r.Search = "search-keyword", r))(Ci || {}), Ji = /* @__PURE__ */ ((r) => (r.BottomCenter = "bottom-center", r.BottomEnd = "bottom-end", r.BottomStart = "bottom-start", r.TopCenter = "top-center", r.TopEnd = "top-end", r.TopStart = "top-start", r))(Ji || {}), vt = /* @__PURE__ */ ((r) => (r.Bottom = "bottom", r.Center = "center", r.Nearest = "nearest", r.Top = "top", r))(vt || {}), Ke = /* @__PURE__ */ ((r) => (r.All = "all", r.Cell = "cell", r.Column = "column", r.Row = "row", r))(Ke || {}), fi = /* @__PURE__ */ ((r) => (r.Both = "both", r.Copy = "copy", r.Paste = "paste", r))(fi || {}), Ce = /* @__PURE__ */ ((r) => (r.Auto = "auto", r.Csv = "csv", r.Json = "json", r.Xml = "xml", r))(Ce || {}), Ei = /* @__PURE__ */ ((r) => (r.EditColumns = "edit-columns", r.HideColumn = "hide-column", r))(Ei || {}), Wt = /* @__PURE__ */ ((r) => (r.Left = "left", r.Right = "right", r))(Wt || {}), mt = /* @__PURE__ */ ((r) => (r.Local = "local", r.Remote = "remote", r))(mt || {}), ke = /* @__PURE__ */ ((r) => (r.Asc = "asc", r.Desc = "desc", r.None = "none", r))(ke || {}), Oe = /* @__PURE__ */ ((r) => (r.Ends = "ends", r.Equal = "=", r.GreaterOrEqual = ">=", r.GreaterThan = ">", r.In = "in", r.Keywords = "keywords", r.LessOrEqual = "<=", r.LessThan = "<", r.Like = "like", r.NotEqual = "!=", r.Regex = "regex", r.Starts = "starts", r))(Oe || {});
447
+ var Ci = /* @__PURE__ */ ((r) => (r.Search = "search-keyword", r))(Ci || {}), Ji = /* @__PURE__ */ ((r) => (r.BottomCenter = "bottom-center", r.BottomEnd = "bottom-end", r.BottomStart = "bottom-start", r.TopCenter = "top-center", r.TopEnd = "top-end", r.TopStart = "top-start", r))(Ji || {}), vt = /* @__PURE__ */ ((r) => (r.Bottom = "bottom", r.Center = "center", r.Nearest = "nearest", r.Top = "top", r))(vt || {}), Ke = /* @__PURE__ */ ((r) => (r.All = "all", r.Cell = "cell", r.Column = "column", r.Row = "row", r))(Ke || {}), fi = /* @__PURE__ */ ((r) => (r.Both = "both", r.Copy = "copy", r.Paste = "paste", r))(fi || {}), Ce = /* @__PURE__ */ ((r) => (r.Auto = "auto", r.Csv = "csv", r.Json = "json", r.Xml = "xml", r))(Ce || {}), Ei = /* @__PURE__ */ ((r) => (r.EditColumns = "edit-columns", r.HideColumn = "hide-column", r))(Ei || {}), Wt = /* @__PURE__ */ ((r) => (r.Left = "left", r.Right = "right", r))(Wt || {}), mt = /* @__PURE__ */ ((r) => (r.Local = "local", r.Remote = "remote", r))(mt || {}), Te = /* @__PURE__ */ ((r) => (r.Asc = "asc", r.Desc = "desc", r.None = "none", r))(Te || {}), Re = /* @__PURE__ */ ((r) => (r.Ends = "ends", r.Equal = "=", r.GreaterOrEqual = ">=", r.GreaterThan = ">", r.In = "in", r.Keywords = "keywords", r.LessOrEqual = "<=", r.LessThan = "<", r.Like = "like", r.NotEqual = "!=", r.Regex = "regex", r.Starts = "starts", r))(Re || {});
448
448
  const fs = 36;
449
- var mi = /* @__PURE__ */ ((r) => (r.IsoDate = "iso-date", r.IsoDateTime = "iso-datetime", r.Timestamp = "timestamp", r))(mi || {}), qo = Ki(function(r, e) {
449
+ var mi = /* @__PURE__ */ ((r) => (r.IsoDate = "iso-date", r.IsoDateTime = "iso-datetime", r.Timestamp = "timestamp", r))(mi || {}), Xo = Ki(function(r, e) {
450
450
  var t = oi(e);
451
- return Ot(t) && (t = void 0), Ot(r) ? ta(r, tn(e, 1, Ot, !0), qi(t)) : [];
451
+ return Ot(t) && (t = void 0), Ot(r) ? ta(r, sn(e, 1, Ot, !0), qi(t)) : [];
452
452
  }), _a = Math.min;
453
453
  function Oa(r, e, t) {
454
454
  for (var i = aa, s = r[0].length, o = r.length, n = o, a = Array(o), l = 1 / 0, h = []; n--; ) {
455
455
  var c = r[n];
456
- n && e && (c = uo(c, Wn(e))), l = _a(c.length, l), a[n] = e || s >= 120 && c.length >= 120 ? new jn(n && c) : void 0;
456
+ n && e && (c = po(c, Wn(e))), l = _a(c.length, l), a[n] = e || s >= 120 && c.length >= 120 ? new jn(n && c) : void 0;
457
457
  }
458
458
  c = r[0];
459
459
  var d = -1, p = a[0];
460
460
  e:
461
461
  for (; ++d < s && h.length < l; ) {
462
462
  var u = c[d], f = e ? e(u) : u;
463
- if (u = u !== 0 ? u : 0, !(p ? jo(p, f) : i(h, f))) {
463
+ if (u = u !== 0 ? u : 0, !(p ? Go(p, f) : i(h, f))) {
464
464
  for (n = o; --n; ) {
465
465
  var w = a[n];
466
- if (!(w ? jo(w, f) : i(r[n], f)))
466
+ if (!(w ? Go(w, f) : i(r[n], f)))
467
467
  continue e;
468
468
  }
469
469
  p && p.push(f), h.push(u);
@@ -475,11 +475,11 @@ function Aa(r) {
475
475
  return Ot(r) ? r : [];
476
476
  }
477
477
  var Pa = Ki(function(r) {
478
- var e = oi(r), t = uo(r, Aa);
478
+ var e = oi(r), t = po(r, Aa);
479
479
  return e === oi(t) ? e = void 0 : t.pop(), t.length && t[0] === r[0] ? Oa(t, qi(e)) : [];
480
480
  }), Ia = Ki(function(r) {
481
481
  var e = oi(r);
482
- return Ot(e) && (e = void 0), la(tn(r, 1, Ot, !0), qi(e));
482
+ return Ot(e) && (e = void 0), la(sn(r, 1, Ot, !0), qi(e));
483
483
  }), Ha = Ki(function(r) {
484
484
  var e = oi(r);
485
485
  return Ot(e) && (e = void 0), ia(Gn(r, Ot), qi(e));
@@ -488,18 +488,18 @@ function Na(r, e) {
488
488
  return e.length < 2 ? r : sa(r, ua(e, 0, -1));
489
489
  }
490
490
  function Va(r, e) {
491
- return e = sn(e, r), r = Na(r, e), r == null || delete r[oa(oi(e))];
491
+ return e = on(e, r), r = Na(r, e), r == null || delete r[oa(oi(e))];
492
492
  }
493
493
  function Ba(r) {
494
494
  return ra(r) ? void 0 : r;
495
495
  }
496
- var $a = 1, Wa = 2, ja = 4, Xo = na(function(r, e) {
496
+ var $a = 1, Wa = 2, ja = 4, Jo = na(function(r, e) {
497
497
  var t = {};
498
498
  if (r == null)
499
499
  return t;
500
500
  var i = !1;
501
- e = uo(e, function(o) {
502
- return o = sn(o, r), i || (i = o.length > 1), o;
501
+ e = po(e, function(o) {
502
+ return o = on(o, r), i || (i = o.length > 1), o;
503
503
  }), ha(r, ca(r), t), i && (t = da(t, $a | Wa | ja, Ba));
504
504
  for (var s = e.length; s--; )
505
505
  Va(t, e[s]);
@@ -511,7 +511,7 @@ var Ua = Object.defineProperty, Ka = Object.getOwnPropertyDescriptor, je = (r, e
511
511
  (n = r[o]) && (s = (i ? n(e, t, s) : n(s)) || s);
512
512
  return i && s && Ua(e, t, s), s;
513
513
  };
514
- let Re = class extends Ie {
514
+ let Se = class extends Ie {
515
515
  constructor() {
516
516
  super(...arguments), this.localize = new tt(this), this.text = "", this.tooltip = "", this.readonly = !1, this.placeholder = !1, this.selected = !1, this.configurable = !1, this.disabledTooltip = !1, this.isGroup = !1;
517
517
  }
@@ -543,8 +543,8 @@ let Re = class extends Ie {
543
543
  })}><span class="board-list-item__control">${this.selected ? x`<cx-icon class="board-list-item__checked-icon" name="check"></cx-icon>` : ""}</span><div part="text" class="board-list-item__text" @mouseenter=${this.onTextMouseEnter} @mouseleave=${this.onTextMouseLeave}><cx-line-clamp part="text-content" class="board-list-item__text__content" lines="2" ?disabled-tooltip=${!!this.tooltip} disabled-hover-bridge>${this.text}</cx-line-clamp><cx-tooltip part="tooltip" hoist trigger="manual" ?disabled=${this.disabledTooltip || !this.tooltip} disabled-hover-bridge><div class="board-list-item__text__anchor"></div><div slot="content">${ma(this.tooltip)}</div></cx-tooltip></div>${this.configurable && !this.readonly ? x`<cx-icon-button part="config-button" name="settings" label=${this.localize.term("configure")} @click=${this.onConfigButtonClick}></cx-icon-button>` : ""}</div>`;
544
544
  }
545
545
  };
546
- Re.styles = [We, Ga];
547
- Re.dependencies = {
546
+ Se.styles = [We, Ga];
547
+ Se.dependencies = {
548
548
  "cx-icon": lt,
549
549
  "cx-icon-button": ri,
550
550
  "cx-line-clamp": fa,
@@ -552,46 +552,46 @@ Re.dependencies = {
552
552
  };
553
553
  je([
554
554
  pe('[part="config-button"]')
555
- ], Re.prototype, "configButton", 2);
555
+ ], Se.prototype, "configButton", 2);
556
556
  je([
557
557
  pe('[part="text"]')
558
- ], Re.prototype, "textElement", 2);
558
+ ], Se.prototype, "textElement", 2);
559
559
  je([
560
560
  pe('[part="tooltip"]')
561
- ], Re.prototype, "tooltipElement", 2);
561
+ ], Se.prototype, "tooltipElement", 2);
562
562
  je([
563
563
  pe(".board-list-item__control")
564
- ], Re.prototype, "controlElement", 2);
564
+ ], Se.prototype, "controlElement", 2);
565
565
  je([
566
566
  m({ type: String })
567
- ], Re.prototype, "text", 2);
567
+ ], Se.prototype, "text", 2);
568
568
  je([
569
569
  m({ type: String })
570
- ], Re.prototype, "tooltip", 2);
570
+ ], Se.prototype, "tooltip", 2);
571
571
  je([
572
572
  m({ type: Boolean })
573
- ], Re.prototype, "readonly", 2);
573
+ ], Se.prototype, "readonly", 2);
574
574
  je([
575
575
  m({ type: Boolean })
576
- ], Re.prototype, "placeholder", 2);
576
+ ], Se.prototype, "placeholder", 2);
577
577
  je([
578
578
  m({ type: Boolean })
579
- ], Re.prototype, "selected", 2);
579
+ ], Se.prototype, "selected", 2);
580
580
  je([
581
581
  m({ type: Boolean })
582
- ], Re.prototype, "configurable", 2);
582
+ ], Se.prototype, "configurable", 2);
583
583
  je([
584
584
  m({ attribute: "disabled-tooltip", type: Boolean })
585
- ], Re.prototype, "disabledTooltip", 2);
585
+ ], Se.prototype, "disabledTooltip", 2);
586
586
  je([
587
587
  m({ attribute: "is-group", type: Boolean })
588
- ], Re.prototype, "isGroup", 2);
588
+ ], Se.prototype, "isGroup", 2);
589
589
  je([
590
590
  H("disabledTooltip")
591
- ], Re.prototype, "handleDisabledTooltipChange", 1);
592
- Re = je([
591
+ ], Se.prototype, "handleDisabledTooltipChange", 1);
592
+ Se = je([
593
593
  He("cx-board-list-item")
594
- ], Re);
594
+ ], Se);
595
595
  const qa = Y`:host{--cx-tooltip-arrow-size:0;flex:1;display:block}.board{--toggle-size:var(--cx-toggle-size-medium);background-color:var(--cx-color-neutral-100);border:1px solid var(--cx-color-neutral-300);border-radius:4px;flex-direction:column;height:100%;padding:16px 16px 0;display:flex}.board--dragging cx-input{pointer-events:none}.board__header{align-items:center;gap:16px;width:100%;height:40px;margin-bottom:16px;display:flex}.board__header--divided{margin-bottom:0}.board__divider{--spacing:0;margin-bottom:16px}.board__list{flex:1;max-height:500px;padding-left:0;overflow:hidden scroll}.board__header__text{-webkit-line-clamp:2;color:var(--cx-color-neutral);font-family:var(--cx-font-sans);text-overflow:ellipsis;white-space:pre-wrap;-webkit-box-orient:vertical;flex:1;font-weight:700;display:-webkit-box;overflow:hidden}.board__header__search{flex:0 0 160px}.board__footer{justify-content:space-between;align-items:center;height:40px;display:flex}.board__footer__text{font-family:var(--cx-font-sans)}.board__select-all{width:var(--toggle-size);height:var(--toggle-size);border:solid var(--cx-input-border-width) var(--cx-input-border-color);background-color:var(--cx-input-background-color);color:var(--cx-color-neutral-0);cursor:pointer;transition:var(--cx-transition-fast) border-color, var(--cx-transition-fast) background-color, var(--cx-transition-fast) color, var(--cx-transition-fast) box-shadow;border-radius:2px;flex:none;justify-content:center;align-items:center;display:inline-flex;position:relative}.board--checked .board__select-all{border-color:var(--cx-color-primary);background-color:var(--cx-color-primary)}.board__select-all:focus-visible{outline:var(--cx-focus-ring);outline-offset:var(--cx-focus-ring-offset)}.board__checked-icon{display:inline-flex}`, Xa = (r) => {
596
596
  const e = r.getRootNode();
597
597
  return e instanceof ShadowRoot ? e.host : null;
@@ -719,7 +719,7 @@ let N = class extends Ie {
719
719
  let o = t.selectedItemAsArray;
720
720
  o.includes(s) || (o = [s]);
721
721
  const n = o.length > 1, a = Number(r.newIndex) - 1 + this.start, l = this.resolveRealInsertIndex(a);
722
- e = Qr(e, l, o), this.handleUpdateEvent(e, r.type, n, l);
722
+ e = en(e, l, o), this.handleUpdateEvent(e, r.type, n, l);
723
723
  }
724
724
  async handleEnd(r) {
725
725
  this.isDragging = !1, await this.updateComplete;
@@ -749,7 +749,7 @@ let N = class extends Ie {
749
749
  }
750
750
  handleDefaultSelect(r) {
751
751
  const e = r.dataset.id;
752
- this._selectedItems[e] ? (this._selectedItems = Xo(this._selectedItems, [e]), this._selectedItemOrder = Xo(this._selectedItemOrder, [e])) : (this._selectedItems = {
752
+ this._selectedItems[e] ? (this._selectedItems = Jo(this._selectedItems, [e]), this._selectedItemOrder = Jo(this._selectedItemOrder, [e])) : (this._selectedItems = {
753
753
  ...this._selectedItems,
754
754
  [e]: !0
755
755
  }, this._selectedItemOrder = {
@@ -987,11 +987,11 @@ let N = class extends Ie {
987
987
  };
988
988
  N.styles = [We, qa];
989
989
  N.dependencies = {
990
- "cx-board-list-item": Re,
991
- "cx-divider": on,
990
+ "cx-board-list-item": Se,
991
+ "cx-divider": rn,
992
992
  "cx-icon": lt,
993
993
  "cx-icon-button": ri,
994
- "cx-input": co,
994
+ "cx-input": uo,
995
995
  "cx-tooltip": It
996
996
  };
997
997
  W([
@@ -1100,7 +1100,7 @@ W([
1100
1100
  H(["data", "group"])
1101
1101
  ], N.prototype, "onItemsChanged", 1);
1102
1102
  W([
1103
- rn(200, !0)
1103
+ nn(200, !0)
1104
1104
  ], N.prototype, "handleShiftSelect", 1);
1105
1105
  N = W([
1106
1106
  He("cx-board")
@@ -1190,14 +1190,14 @@ class Qa {
1190
1190
  return !0;
1191
1191
  }
1192
1192
  }
1193
- const el = Y`:host{--search-width-default:227px;height:100%;display:block}.multi-select{gap:var(--cx-spacing-medium);flex-direction:column;width:100%;height:100%;display:flex}.multi-select__toolbar{align-items:center;gap:var(--cx-spacing-medium);display:flex}.multi-select__search{flex:0 0 var(--search-width,var(--search-width-default))}.multi-select__boards{gap:var(--cx-spacing-medium);flex:1;width:100%;min-height:0;display:flex}.multi-select__control{gap:var(--cx-spacing-small);flex-direction:column;align-self:center;display:flex}`, Jo = (r, e) => r.group && e.group && r.group !== e.group ? r.group.localeCompare(e.group) : r.text.localeCompare(e.text);
1193
+ const el = Y`:host{--search-width-default:227px;height:100%;display:block}.multi-select{gap:var(--cx-spacing-medium);flex-direction:column;width:100%;height:100%;display:flex}.multi-select__toolbar{align-items:center;gap:var(--cx-spacing-medium);display:flex}.multi-select__search{flex:0 0 var(--search-width,var(--search-width-default))}.multi-select__boards{gap:var(--cx-spacing-medium);flex:1;width:100%;min-height:0;display:flex}.multi-select__control{gap:var(--cx-spacing-small);flex-direction:column;align-self:center;display:flex}`, Yo = (r, e) => r.group && e.group && r.group !== e.group ? r.group.localeCompare(e.group) : r.text.localeCompare(e.text);
1194
1194
  function tl(r) {
1195
1195
  const e = /* @__PURE__ */ new Map();
1196
1196
  return Object.entries(r).forEach(([t, i]) => {
1197
1197
  i.length > 0 && e.set(t, new Set(i));
1198
1198
  }), e;
1199
1199
  }
1200
- function Yo(r, e, t) {
1200
+ function Zo(r, e, t) {
1201
1201
  const i = r.get(e);
1202
1202
  !t || !i || i.set(t, (i.get(t) ?? 0) + 1);
1203
1203
  }
@@ -1218,9 +1218,9 @@ function il(r, e, t = {}) {
1218
1218
  if (!(l > 1))
1219
1219
  if (a === null)
1220
1220
  for (const h of i)
1221
- Yo(o, h, n.metadata?.[h]);
1221
+ Zo(o, h, n.metadata?.[h]);
1222
1222
  else
1223
- Yo(o, a, n.metadata?.[a]);
1223
+ Zo(o, a, n.metadata?.[a]);
1224
1224
  }
1225
1225
  for (const [n, a] of s) {
1226
1226
  const l = o.get(n);
@@ -1259,7 +1259,7 @@ function ol(r, e) {
1259
1259
  });
1260
1260
  }), { availableFacets: t, facets: i };
1261
1261
  }
1262
- function Zo(r, e) {
1262
+ function Qo(r, e) {
1263
1263
  return r.length === e.length && r.every((i, s) => i === e[s]) ? e : r;
1264
1264
  }
1265
1265
  function rl(r, e, t) {
@@ -1289,7 +1289,7 @@ function nl(r, e, t) {
1289
1289
  a.push(...l);
1290
1290
  return a.push(...n), a;
1291
1291
  }
1292
- function Qo(r, e, t, i) {
1292
+ function er(r, e, t, i) {
1293
1293
  const s = new Set(e.map((h) => h.id)), o = r.filter(
1294
1294
  (h) => !s.has(h)
1295
1295
  ).length;
@@ -1378,10 +1378,10 @@ let ne = class extends Ie {
1378
1378
  if (this.addLimit || this.addLimit === 0) {
1379
1379
  let i = [];
1380
1380
  if (t === "add" ? i = r : t === "remove" && (i = Ia(
1381
- qo(e, r),
1381
+ Xo(e, r),
1382
1382
  this.secondColumnItemIds
1383
- )), qo(i, this.initialSecondColumnItems).length > this.addLimit)
1384
- return en(this.localize.term("addLimitExceeded", this.addLimit), {
1383
+ )), Xo(i, this.initialSecondColumnItems).length > this.addLimit)
1384
+ return tn(this.localize.term("addLimitExceeded", this.addLimit), {
1385
1385
  notificationType: "warning"
1386
1386
  }), !1;
1387
1387
  }
@@ -1394,7 +1394,7 @@ let ne = class extends Ie {
1394
1394
  if (e === this.secondColumnData.id && (l = this.secondColumnData, h = this.firstColumnData), o === "add") {
1395
1395
  const c = this.selectedItems[h.id];
1396
1396
  let d = l.items.map((p) => p.id);
1397
- if (d = Qr(
1397
+ if (d = en(
1398
1398
  d,
1399
1399
  rl(s ?? 0, a, l.items),
1400
1400
  c
@@ -1620,10 +1620,10 @@ let ne = class extends Ie {
1620
1620
  */
1621
1621
  recomputeBoardData() {
1622
1622
  const r = this.filters.filterItems(this.board1OriginalData), e = this.filters.filterItems(this.board2OriginalData);
1623
- this.board1Data = Zo(
1623
+ this.board1Data = Qo(
1624
1624
  r ?? this.board1OriginalData,
1625
1625
  this.board1Data
1626
- ), this.board2Data = Zo(
1626
+ ), this.board2Data = Qo(
1627
1627
  e ?? this.board2OriginalData,
1628
1628
  this.board2Data
1629
1629
  );
@@ -1675,7 +1675,7 @@ let ne = class extends Ie {
1675
1675
  [this.secondColumnData.id]: []
1676
1676
  };
1677
1677
  }
1678
- e && (this.board1OriginalData = this.firstColumnData.sort ?? !0 ? this.firstColumnData.items : [...this.firstColumnData.items].sort(Jo)), t && (this.board2OriginalData = this.secondColumnData.sort ?? !0 ? this.secondColumnData.items : [...this.secondColumnData.items].sort(Jo)), (e || t || r.has("labelMap")) && (this.rebuildMetadataFacets(), this.recomputeBoardData());
1678
+ e && (this.board1OriginalData = this.firstColumnData.sort ?? !0 ? this.firstColumnData.items : [...this.firstColumnData.items].sort(Yo)), t && (this.board2OriginalData = this.secondColumnData.sort ?? !0 ? this.secondColumnData.items : [...this.secondColumnData.items].sort(Yo)), (e || t || r.has("labelMap")) && (this.rebuildMetadataFacets(), this.recomputeBoardData());
1679
1679
  }
1680
1680
  /**
1681
1681
  * The filter panel is rendered whenever the toolbar is, even with no facets to tick.
@@ -1694,12 +1694,12 @@ let ne = class extends Ie {
1694
1694
  )}<cx-faceted-filter part="faceted-filter" selection="multiple" .facets=${this.metadataFacets} .availableFacets=${this.metadataFacetDetails} .selectedFacets=${this.selectedMetadataFacets} .externalFilters=${this.appliedFilterTags} @cx-faceted-filter-change=${this.handleMetadataFacetChange} @cx-faceted-filter-remove=${this.handleAppliedFilterRemove}></cx-faceted-filter></div>`;
1695
1695
  }
1696
1696
  render() {
1697
- const r = this.selectedItems[this.firstColumnData.id] ?? [], e = this.selectedItems[this.secondColumnData.id] ?? [], t = this.boardsWithOwnSearch, i = Qo(
1697
+ const r = this.selectedItems[this.firstColumnData.id] ?? [], e = this.selectedItems[this.secondColumnData.id] ?? [], t = this.boardsWithOwnSearch, i = er(
1698
1698
  r,
1699
1699
  this.board1Data,
1700
1700
  this.firstColumnData.items,
1701
1701
  this.ignoreTypes
1702
- ), s = Qo(
1702
+ ), s = er(
1703
1703
  e,
1704
1704
  this.board2Data,
1705
1705
  this.secondColumnData.items,
@@ -1715,7 +1715,7 @@ ne.dependencies = {
1715
1715
  "cx-faceted-filter": re,
1716
1716
  "cx-icon": lt,
1717
1717
  "cx-icon-button": ri,
1718
- "cx-input": co,
1718
+ "cx-input": uo,
1719
1719
  "cx-tooltip": It
1720
1720
  };
1721
1721
  be([
@@ -1883,7 +1883,7 @@ Qe = Ht([
1883
1883
  He("cx-table-column-editor")
1884
1884
  ], Qe);
1885
1885
  const ul = Y`:host{align-items:center;width:100%;display:flex}:host([pagination-placement=bottom-start]){justify-content:flex-start}:host([pagination-placement=bottom-center]){justify-content:center}:host([pagination-placement=bottom-end]){justify-content:flex-end}`;
1886
- var pl = Object.defineProperty, fl = Object.getOwnPropertyDescriptor, hn = (r, e, t, i) => {
1886
+ var pl = Object.defineProperty, fl = Object.getOwnPropertyDescriptor, cn = (r, e, t, i) => {
1887
1887
  for (var s = i > 1 ? void 0 : i ? fl(e, t) : e, o = r.length - 1, n; o >= 0; o--)
1888
1888
  (n = r[o]) && (s = (i ? n(e, t, s) : n(s)) || s);
1889
1889
  return i && s && pl(e, t, s), s;
@@ -1897,10 +1897,10 @@ let xi = class extends Ie {
1897
1897
  }
1898
1898
  };
1899
1899
  xi.styles = [We, ul];
1900
- hn([
1900
+ cn([
1901
1901
  m({ attribute: "pagination-placement", reflect: !0, type: String })
1902
1902
  ], xi.prototype, "paginationPlacement", 2);
1903
- xi = hn([
1903
+ xi = cn([
1904
1904
  He("cx-table-footer")
1905
1905
  ], xi);
1906
1906
  const ml = Y`:host{display:contents}cx-popup::part(popup){z-index:var(--cx-z-index-dropdown)}`;
@@ -2171,6 +2171,10 @@ let Et = class extends Ie {
2171
2171
  get showCaret() {
2172
2172
  return this.data.caret ?? !this.data.icon;
2173
2173
  }
2174
+ /** The icon is the trigger's only content — no label beside it and no caret after it. */
2175
+ get isIconAlone() {
2176
+ return this.isIconOnly && !this.showCaret;
2177
+ }
2174
2178
  createRenderRoot() {
2175
2179
  return this;
2176
2180
  }
@@ -2216,6 +2220,7 @@ let Et = class extends Ie {
2216
2220
  const r = this.isIconOnly ? this.triggerText : void 0;
2217
2221
  return x`<div class="table-dropdown-filter"><cx-dropdown hoist><cx-button class=${Xe({
2218
2222
  "table-dropdown-filter__trigger": !0,
2223
+ "table-dropdown-filter__trigger--icon-alone": this.isIconAlone,
2219
2224
  "table-dropdown-filter__trigger--icon-only": this.isIconOnly
2220
2225
  })} slot="trigger" label=${J(r)} title=${J(r)} ?caret=${this.showCaret} outline>${this.renderTriggerIcon()}${q(!this.isIconOnly, () => this.triggerText)}</cx-button><cx-menu @cx-select=${this.handleMenuSelect}>${this.renderMenuItems()}</cx-menu></cx-dropdown></div>`;
2221
2226
  }
@@ -2435,7 +2440,7 @@ bt([
2435
2440
  $e = bt([
2436
2441
  He("cx-table-saved-search-dropdown")
2437
2442
  ], $e);
2438
- const Ml = Y`:host{container-type:inline-size}.header{align-items:center;gap:var(--cx-spacing-small);flex-wrap:wrap;display:none}.header--has-label,.header--has-pagination{display:flex}:host([pagination]) .header{min-height:var(--cx-input-height-medium);display:flex}:host([pagination][no-header-row-reserve][pagination-placement^=bottom]) .header:not(.header--has-label):not(.header--has-pagination){display:none}.header__label{flex:auto;align-items:center;min-width:0;display:flex}.header:not(.header--has-label) .header__label{display:none}.header:not(.header--has-label){justify-content:flex-end}.header__pagination{flex-shrink:0;align-items:center;display:flex}:host([pagination-placement=top-start]) .header__label,:host([pagination-placement=top-center]) .header__label{flex-basis:100%}:host([pagination-placement=top-start]) .header:not(.header--has-label){justify-content:flex-start}:host([pagination-placement=top-center]) .header:not(.header--has-label){justify-content:center}@container (width>=480px){:host([pagination-placement=top-center]) .header.header--has-label,:host([pagination-placement=top-center]) .header.header--has-pagination{grid-template-columns:1fr auto 1fr;display:grid}:host([pagination-placement=top-center]) .header__pagination{grid-column:2}}.header-actions{flex:1}.search{flex:1;max-width:500px}.header-actions__left{flex:1}.search__input{max-width:500px}.search__input:focus-within{border-radius:var(--cx-input-border-radius-medium);--cx-input-border-color-focus:var(--search-border-color-focus,var(--cx-color-primary-600));outline:var(--search-border-width-focus,0) solid var(--cx-input-border-color-focus)}.search__icon{--font-size:var(--cx-font-size-medium)}.search__icon--search{margin-inline-start:var(--cx-spacing-2x-small)}.search__icon--advanced-search{margin-inline-end:var(--cx-spacing-2x-small)}.header-actions__dropdown::part(trigger){line-height:1}.table-dropdown-filter__trigger{--cx-button-text-transform:none}.table-dropdown-filter__trigger--icon-only{--padding:0 var(--cx-spacing-x-small)}.table-dropdown-filter__icon{--font-size:var(--dropdown-filter-icon-size,var(--cx-font-size-large));color:var(--dropdown-filter-icon-color,currentColor)}.header-actions__group-by{--cx-button-text-transform:none}.header-actions__group-by .group-by-option--selected{--label-color:var(--cx-color-primary-600)}.header-actions__group-by .group-by-option{--checked-icon-size:20px;--checked-icon-color:var(--cx-color-primary-600)}.toolbar__select-all-checkbox{flex-shrink:0}.header-actions__saved-search{--cx-button-text-transform:none;--checked-icon-display:none}.header-actions__saved-search__load-more{width:100%;padding:0 var(--cx-spacing-x-small)}`;
2443
+ const Ml = Y`:host{container-type:inline-size}.header{align-items:center;gap:var(--cx-spacing-small);flex-wrap:wrap;display:none}.header--has-label,.header--has-pagination{display:flex}:host([pagination]) .header{min-height:var(--cx-input-height-medium);display:flex}:host([pagination][no-header-row-reserve][pagination-placement^=bottom]) .header:not(.header--has-label):not(.header--has-pagination){display:none}.header__label{flex:auto;align-items:center;min-width:0;display:flex}.header:not(.header--has-label) .header__label{display:none}.header:not(.header--has-label){justify-content:flex-end}.header__pagination{flex-shrink:0;align-items:center;display:flex}:host([pagination-placement=top-start]) .header__label,:host([pagination-placement=top-center]) .header__label{flex-basis:100%}:host([pagination-placement=top-start]) .header:not(.header--has-label){justify-content:flex-start}:host([pagination-placement=top-center]) .header:not(.header--has-label){justify-content:center}@container (width>=480px){:host([pagination-placement=top-center]) .header.header--has-label,:host([pagination-placement=top-center]) .header.header--has-pagination{grid-template-columns:1fr auto 1fr;display:grid}:host([pagination-placement=top-center]) .header__pagination{grid-column:2}}.header-actions{flex:1}.search{flex:1;max-width:500px}.header-actions__left{flex:1}.search__input{max-width:500px}.search__input:focus-within{border-radius:var(--cx-input-border-radius-medium);--cx-input-border-color-focus:var(--search-border-color-focus,var(--cx-color-primary-600));outline:var(--search-border-width-focus,0) solid var(--cx-input-border-color-focus)}.search__icon{--font-size:var(--cx-font-size-medium)}.search__icon--search{margin-inline-start:var(--cx-spacing-2x-small)}.search__icon--advanced-search{margin-inline-end:var(--cx-spacing-2x-small)}.header-actions__dropdown::part(trigger){line-height:1}.table-dropdown-filter__trigger{--cx-button-text-transform:none}.table-dropdown-filter__trigger--icon-only{--padding:0 var(--cx-spacing-x-small)}.table-dropdown-filter__trigger--icon-alone::part(base){gap:0}.table-dropdown-filter__icon{--font-size:var(--dropdown-filter-icon-size,var(--cx-font-size-large));color:var(--dropdown-filter-icon-color,currentColor)}.header-actions__group-by{--cx-button-text-transform:none}.header-actions__group-by .group-by-option--selected{--label-color:var(--cx-color-primary-600)}.header-actions__group-by .group-by-option{--checked-icon-size:20px;--checked-icon-color:var(--cx-color-primary-600)}.toolbar__select-all-checkbox{flex-shrink:0}.header-actions__saved-search{--cx-button-text-transform:none;--checked-icon-display:none}.header-actions__saved-search__load-more{width:100%;padding:0 var(--cx-spacing-x-small)}`;
2439
2444
  var Fl = Object.defineProperty, Ll = Object.getOwnPropertyDescriptor, ie = (r, e, t, i) => {
2440
2445
  for (var s = i > 1 ? void 0 : i ? Ll(e, t) : e, o = r.length - 1, n; o >= 0; o--)
2441
2446
  (n = r[o]) && (s = (i ? n(e, t, s) : n(s)) || s);
@@ -2443,7 +2448,7 @@ var Fl = Object.defineProperty, Ll = Object.getOwnPropertyDescriptor, ie = (r, e
2443
2448
  };
2444
2449
  let ee = class extends Ie {
2445
2450
  constructor() {
2446
- super(...arguments), this.localize = new tt(this), this.hasSlotController = new an(
2451
+ super(...arguments), this.localize = new tt(this), this.hasSlotController = new ln(
2447
2452
  this,
2448
2453
  "label",
2449
2454
  "pagination",
@@ -2587,11 +2592,11 @@ let ee = class extends Ie {
2587
2592
  ee.styles = [We, Ml];
2588
2593
  ee.dependencies = {
2589
2594
  "cx-button": xt,
2590
- "cx-checkbox": nn,
2595
+ "cx-checkbox": an,
2591
2596
  "cx-dropdown": ni,
2592
2597
  "cx-icon": lt,
2593
2598
  "cx-icon-button": ri,
2594
- "cx-input": co,
2599
+ "cx-input": uo,
2595
2600
  "cx-menu": ai,
2596
2601
  "cx-menu-item": li,
2597
2602
  "cx-pagination": va,
@@ -2600,7 +2605,7 @@ ee.dependencies = {
2600
2605
  "cx-table-group-by-dropdown": Pt,
2601
2606
  "cx-table-saved-search-dropdown": $e,
2602
2607
  "cx-tooltip": It,
2603
- "cx-typography": qr
2608
+ "cx-typography": Xr
2604
2609
  };
2605
2610
  ie([
2606
2611
  pe("#search-form")
@@ -2719,7 +2724,7 @@ ie([
2719
2724
  ee = ie([
2720
2725
  He("cx-table-toolbar")
2721
2726
  ], ee);
2722
- class Fe {
2727
+ class Le {
2723
2728
  constructor(e) {
2724
2729
  this.table = e;
2725
2730
  }
@@ -2863,8 +2868,8 @@ class Q {
2863
2868
  return t;
2864
2869
  }
2865
2870
  }
2866
- const er = process.env.NODE_ENV === "development";
2867
- let zl = class cn extends Fe {
2871
+ const tr = process.env.NODE_ENV === "development";
2872
+ let zl = class dn extends Le {
2868
2873
  constructor(e, t, i = null) {
2869
2874
  super(e), this.reversedX = !1, this.childPopup = null, this.blurable = !1, this.blurCallback = null, this.blurEventsBound = !1, this.renderedCallback = null, this.visible = !1, this.hideable = !0, this.destroyed = !1, this.element = t, this.container = this._lookupContainer(), this.parent = i, this.element.classList.add("tabulator-popup-container"), this.blurEvent = this.hide.bind(this, !1), this.escEvent = this._escapeCheck.bind(this), this.destroyBinding = this.tableDestroyed.bind(this);
2870
2875
  }
@@ -2873,11 +2878,11 @@ let zl = class cn extends Fe {
2873
2878
  }
2874
2879
  _lookupContainer() {
2875
2880
  let e = this.table.options.popupContainer;
2876
- return typeof e == "string" ? (e = document.querySelector(e), er && !e && console.warn(
2881
+ return typeof e == "string" ? (e = document.querySelector(e), tr && !e && console.warn(
2877
2882
  "Menu Error - no container element found matching selector:",
2878
2883
  this.table.options.popupContainer,
2879
2884
  "(defaulting to document body)"
2880
- )) : e === !0 && (e = this.table.element), e && !(e instanceof HTMLElement) && (e = null), e && !this._checkContainerIsParent(e) && (e = null, er && console.warn(
2885
+ )) : e === !0 && (e = this.table.element), e && !(e instanceof HTMLElement) && (e = null), e && !this._checkContainerIsParent(e) && (e = null, tr && console.warn(
2881
2886
  "Menu Error - container element does not contain this table:",
2882
2887
  this.table.options.popupContainer,
2883
2888
  "(defaulting to document body)"
@@ -2987,11 +2992,11 @@ let zl = class cn extends Fe {
2987
2992
  ), this.unsubscribe("cell-editing", this.blurEvent), this.blurEventsBound = !1), this.childPopup && this.childPopup.hide(), this.parent && (this.parent.childPopup = null), this.element.parentNode && this.element.parentNode.removeChild(this.element), this.visible = !1, this.blurCallback && !e && this.blurCallback(), this.unsubscribe("table-destroy", this.destroyBinding)), this;
2988
2993
  }
2989
2994
  child(e) {
2990
- return this.childPopup && this.childPopup.hide(), this.childPopup = new cn(this.table, e, this), this.childPopup;
2995
+ return this.childPopup && this.childPopup.hide(), this.childPopup = new dn(this.table, e, this), this.childPopup;
2991
2996
  }
2992
2997
  };
2993
2998
  const _l = process.env.NODE_ENV === "development";
2994
- class I extends Fe {
2999
+ class I extends Le {
2995
3000
  constructor(e) {
2996
3001
  super(e);
2997
3002
  }
@@ -3068,14 +3073,14 @@ class I extends Fe {
3068
3073
  this.table.alertManager?.clear();
3069
3074
  }
3070
3075
  }
3071
- const Eo = class Eo extends I {
3076
+ const xo = class xo extends I {
3072
3077
  constructor(e) {
3073
3078
  super(e), this.registerTableOption("tabulatorRole", "grid"), this.registerTableOption("columnGroupRole", "columngroup"), this.registerTableOption("columnHeaderRole", "columnheader"), this.registerTableOption("rowRole", "row"), this.registerTableOption("rowGroupRole", "rowgroup"), this.registerTableOption("cellRole", "gridcell");
3074
3079
  }
3075
3080
  };
3076
- Eo.moduleName = "accessibility";
3077
- let ms = Eo;
3078
- const Ol = "tabulator-clickable-cell", Al = 'button, [role="button"], cx-button, cx-menu-item, cx-dropdown', Pl = "hoverMenu", tr = "cx-table-row-action-click", xo = class xo extends I {
3081
+ xo.moduleName = "accessibility";
3082
+ let ms = xo;
3083
+ const Ol = "tabulator-clickable-cell", Al = 'button, [role="button"], cx-button, cx-menu-item, cx-dropdown', Pl = "hoverMenu", ir = "cx-table-row-action-click", Ro = class Ro extends I {
3079
3084
  constructor(e) {
3080
3085
  super(e), this.cellKeyHandlers = /* @__PURE__ */ new WeakMap(), this.registerColumnOption("clickable"), this.registerColumnOption("clickableActionName"), this.registerColumnOption("clickableEventName");
3081
3086
  }
@@ -3145,11 +3150,11 @@ const Ol = "tabulator-clickable-cell", Al = 'button, [role="button"], cx-button,
3145
3150
  row: e.row.getComponent()
3146
3151
  }, s = this.getCxTableHost();
3147
3152
  if (s) {
3148
- s.emit(tr, { detail: i });
3153
+ s.emit(ir, { detail: i });
3149
3154
  return;
3150
3155
  }
3151
3156
  this.table.element.dispatchEvent(
3152
- new CustomEvent(tr, {
3157
+ new CustomEvent(ir, {
3153
3158
  bubbles: !0,
3154
3159
  composed: !0,
3155
3160
  detail: i
@@ -3182,8 +3187,8 @@ const Ol = "tabulator-clickable-cell", Al = 'button, [role="button"], cx-button,
3182
3187
  return !i || i.length === 0 ? null : t ? i.find((s) => s.name === t) ?? null : i[0] ?? null;
3183
3188
  }
3184
3189
  };
3185
- xo.moduleName = "clickableCell";
3186
- let gs = xo;
3190
+ Ro.moduleName = "clickableCell";
3191
+ let gs = Ro;
3187
3192
  const Il = x`<cx-table-row-actions></cx-table-row-actions>`, Qt = class Qt extends I {
3188
3193
  constructor(e) {
3189
3194
  super(e), this.registerTableOption("hoverMenu", !1), this.registerTableOption("hoverMenuField", "hoverMenu"), this.registerColumnOption("hoverMenu");
@@ -3359,7 +3364,7 @@ let ws = ei;
3359
3364
  const Vl = {
3360
3365
  method: "GET"
3361
3366
  };
3362
- function dn(r) {
3367
+ function un(r) {
3363
3368
  return r instanceof File || r instanceof Blob;
3364
3369
  }
3365
3370
  function vs(r, e = "") {
@@ -3373,7 +3378,7 @@ function vs(r, e = "") {
3373
3378
  )
3374
3379
  );
3375
3380
  });
3376
- else if (dn(r))
3381
+ else if (un(r))
3377
3382
  t.push({ key: e, value: r });
3378
3383
  else if (typeof r == "object" && r !== null)
3379
3384
  for (const i in r)
@@ -3394,7 +3399,7 @@ const Bl = {
3394
3399
  return i.forEach((o) => {
3395
3400
  s.append(
3396
3401
  o.key,
3397
- dn(o.value) ? o.value : String(o.value)
3402
+ un(o.value) ? o.value : String(o.value)
3398
3403
  );
3399
3404
  }), s;
3400
3405
  },
@@ -3440,7 +3445,7 @@ function $l(r) {
3440
3445
  );
3441
3446
  }), t.join("&");
3442
3447
  }
3443
- const un = function(r, e, t) {
3448
+ const pn = function(r, e, t) {
3444
3449
  if (r && t && Object.keys(t).length && (!e.method || e.method.toLowerCase() === "get")) {
3445
3450
  e.method = "get";
3446
3451
  const [i, s] = r.split("#", 2), o = $l(t);
@@ -3504,7 +3509,7 @@ const un = function(r, e, t) {
3504
3509
  )), s)) : Promise.reject();
3505
3510
  }
3506
3511
  };
3507
- ot.moduleName = "ajax", ot.defaultConfig = Vl, ot.defaultURLGenerator = un, ot.contentTypeFormatters = Bl, ot.defaultLoaderPromise = function(e, t, i) {
3512
+ ot.moduleName = "ajax", ot.defaultConfig = Vl, ot.defaultURLGenerator = pn, ot.contentTypeFormatters = Bl, ot.defaultLoaderPromise = function(e, t, i) {
3508
3513
  let s;
3509
3514
  return new Promise((o, n) => {
3510
3515
  if (!this.urlGenerator) {
@@ -3546,7 +3551,7 @@ ot.moduleName = "ajax", ot.defaultConfig = Vl, ot.defaultURLGenerator = un, ot.c
3546
3551
  });
3547
3552
  };
3548
3553
  let Cs = ot;
3549
- function fo(r) {
3554
+ function mo(r) {
3550
3555
  const e = [];
3551
3556
  let t = r;
3552
3557
  for (; t; )
@@ -3556,21 +3561,21 @@ function fo(r) {
3556
3561
  }), t = t.parent;
3557
3562
  return e;
3558
3563
  }
3559
- function pn(r) {
3564
+ function fn(r) {
3560
3565
  return JSON.stringify(r);
3561
3566
  }
3562
3567
  function Wl(r, e) {
3563
3568
  return r?.[e];
3564
3569
  }
3565
3570
  function jl(r) {
3566
- const e = fo(r);
3571
+ const e = mo(r);
3567
3572
  return {
3568
3573
  path: e,
3569
- pathKey: pn(e),
3574
+ pathKey: fn(e),
3570
3575
  rowCount: r.getRowCount()
3571
3576
  };
3572
3577
  }
3573
- class fn {
3578
+ class mn {
3574
3579
  constructor(e) {
3575
3580
  return this._group = e, this.type = "GroupComponent", new Proxy(this, {
3576
3581
  get: function(t, i) {
@@ -3604,7 +3609,7 @@ class fn {
3604
3609
  return this._group.parent ? this._group.parent.getComponent() : !1;
3605
3610
  }
3606
3611
  getPath() {
3607
- return fo(this._group);
3612
+ return mo(this._group);
3608
3613
  }
3609
3614
  getPathKey() {
3610
3615
  return this._group.getPathKey();
@@ -3738,7 +3743,7 @@ class Es {
3738
3743
  }
3739
3744
  }
3740
3745
  const Ul = process.env.NODE_ENV === "development";
3741
- class Qi extends Fe {
3746
+ class Qi extends Le {
3742
3747
  // used by row manager to determine how to size the render area ("fit" - fits container to the contents, "fill" - fills the container without resizing it)
3743
3748
  constructor(e) {
3744
3749
  super(e), this.elementVertical = e.rowManager?.element, this.elementHorizontal = e.columnManager?.element, this.tableElement = e.rowManager?.tableElement, this.verticalFillMode = "fit";
@@ -3886,8 +3891,8 @@ const Kl = {
3886
3891
  actions: Xl,
3887
3892
  bindings: Jl
3888
3893
  }
3889
- }, ir = process.env.NODE_ENV === "development";
3890
- function sr(r) {
3894
+ }, sr = process.env.NODE_ENV === "development";
3895
+ function or(r) {
3891
3896
  const e = globalThis.clipboardData, t = r;
3892
3897
  return e ?? r.clipboardData ?? t.originalEvent?.clipboardData ?? void 0;
3893
3898
  }
@@ -3902,8 +3907,8 @@ const kt = class kt extends I {
3902
3907
  this.rowRange,
3903
3908
  "clipboard"
3904
3909
  ), i = this.table.modules.export?.generateHTMLTable(s), t = i ? this.generatePlainContent(s) : "", this.table.options.clipboardCopyFormatter && typeof this.table.options.clipboardCopyFormatter == "function" && (t = this.table.options.clipboardCopyFormatter("plain", t), i = this.table.options.clipboardCopyFormatter("html", i ?? "")));
3905
- const o = sr(e);
3906
- o?.setData && (o.setData("text/plain", t), i && o.setData("text/html", i), en("Copied to clipboard", {
3910
+ const o = or(e);
3911
+ o?.setData && (o.setData("text/plain", t), i && o.setData("text/html", i), tn("Copied to clipboard", {
3907
3912
  notificationType: "success"
3908
3913
  })), this.dispatchExternal("clipboardCopied", t, i), this.reset();
3909
3914
  }
@@ -3934,7 +3939,7 @@ const kt = class kt extends I {
3934
3939
  const s = [];
3935
3940
  i.columns.forEach((o) => {
3936
3941
  let n = "";
3937
- o && (i.type === "group" && (o.value = o.component instanceof fn ? o.component.getKey() : ""), typeof o.value == "object" ? n = JSON.stringify(o.value) : o.value != null && (n = String(o.value))), s.push(n);
3942
+ o && (i.type === "group" && (o.value = o.component instanceof mn ? o.component.getKey() : ""), typeof o.value == "object" ? n = JSON.stringify(o.value) : o.value != null && (n = String(o.value))), s.push(n);
3938
3943
  }), t.push(s.join(" "));
3939
3944
  }), t.join(`
3940
3945
  `);
@@ -3954,7 +3959,7 @@ const kt = class kt extends I {
3954
3959
  switch (typeof e) {
3955
3960
  case "string": {
3956
3961
  const t = kt.pasteActions[e];
3957
- t ? this.pasteAction = t : ir && console.warn("Clipboard Error - No such paste action found:", e);
3962
+ t ? this.pasteAction = t : sr && console.warn("Clipboard Error - No such paste action found:", e);
3958
3963
  break;
3959
3964
  }
3960
3965
  case "function":
@@ -3966,7 +3971,7 @@ const kt = class kt extends I {
3966
3971
  switch (typeof e) {
3967
3972
  case "string": {
3968
3973
  const t = kt.pasteParsers[e];
3969
- t ? this.pasteParser = t : ir && console.warn("Clipboard Error - No such paste parser found:", e);
3974
+ t ? this.pasteParser = t : sr && console.warn("Clipboard Error - No such paste parser found:", e);
3970
3975
  break;
3971
3976
  }
3972
3977
  case "function":
@@ -3998,13 +4003,13 @@ const kt = class kt extends I {
3998
4003
  }
3999
4004
  getPasteData(e) {
4000
4005
  let t;
4001
- const i = sr(e);
4006
+ const i = or(e);
4002
4007
  return i?.getData && (t = i.getData("text/plain")), t;
4003
4008
  }
4004
4009
  };
4005
4010
  kt.moduleName = "clipboard", kt.moduleExtensions = Yl, kt.pasteActions = Kl, kt.pasteParsers = ql;
4006
4011
  let xs = kt;
4007
- class mo {
4012
+ class go {
4008
4013
  constructor(e) {
4009
4014
  return this._cell = e, new Proxy(this, {
4010
4015
  get: function(t, i) {
@@ -4069,7 +4074,7 @@ class mo {
4069
4074
  }
4070
4075
  }
4071
4076
  const Zl = x`<div class="tabulator-cell"></div>`, Ql = process.env.NODE_ENV === "development";
4072
- class Ti extends Fe {
4077
+ class Ti extends Le {
4073
4078
  constructor(e, t) {
4074
4079
  super(e.table), this.table = e.table, this.column = e, this.row = t, this.element = null, this.contentElement = null, this.value = null, this.oldValue = null, this.modules = {}, this.height = null, this.width = null, this.minWidth = null, this.component = null, this.loaded = !1, this.hoverMenuElement = null, this.deleted = !1, this.build();
4075
4080
  }
@@ -4257,10 +4262,10 @@ class Ti extends Fe {
4257
4262
  * Object Generation
4258
4263
  */
4259
4264
  getComponent() {
4260
- return this.component ??= new mo(this), this.component;
4265
+ return this.component ??= new go(this), this.component;
4261
4266
  }
4262
4267
  }
4263
- const mn = {
4268
+ const gn = {
4264
4269
  columns: void 0,
4265
4270
  cssClass: void 0,
4266
4271
  editableTitle: void 0,
@@ -4277,10 +4282,10 @@ const mn = {
4277
4282
  variableHeight: void 0,
4278
4283
  vertAlign: void 0,
4279
4284
  width: void 0
4280
- }, Vt = process.env.NODE_ENV === "development", Te = class Te extends Fe {
4285
+ }, Vt = process.env.NODE_ENV === "development", Me = class Me extends Le {
4281
4286
  constructor(e, t, i) {
4282
4287
  super(t.table), this.definition = e, this.parent = t, this.type = "column", this.columns = [], this.cells = [], this.isGroup = !1, this.isRowHeader = i ?? !1, this.element = this.createElement(), this.contentElement = !1, this.titleHolderElement = !1, this.titleElement = !1, this.groupElement = this.createGroupElement(), this.hozAlign = "", this.vertAlign = "", this.field = !1, this.fieldStructure = [], this.getFieldValue = this._getFlatData, this.setFieldValue = this._setFlatData, this.titleDownload = null, this.titleFormatterRendered = !1, this.mapDefinitions(), this.setField(this.definition.field), this.modules = {}, this.width = null, this.widthStyled = "", this.maxWidth = null, this.maxWidthStyled = "", this.maxInitialWidth = null, this.minWidth = null, this.minWidthStyled = "", this.widthFixed = !1, this.hidden = !1, this.component = null, this.definition.columns ? (this.isGroup = !0, this.definition.columns.forEach((s) => {
4283
- const o = new Te(s, this);
4288
+ const o = new Me(s, this);
4284
4289
  this.attachColumn(o);
4285
4290
  }), this.checkColumnVisibility()) : t.registerColumnField(this), this._initialize();
4286
4291
  }
@@ -4309,13 +4314,13 @@ const mn = {
4309
4314
  for (const t in e)
4310
4315
  Object.hasOwn(e, t) && (this.definition[t] === void 0 || this.definition[t] === null) && (this.definition[t] = e[t]);
4311
4316
  this.definition = this.table.columnManager?.optionsList.generate(
4312
- Te.defaultOptionList,
4317
+ Me.defaultOptionList,
4313
4318
  this.definition
4314
4319
  );
4315
4320
  }
4316
4321
  checkDefinition() {
4317
4322
  Object.keys(this.definition).forEach((e) => {
4318
- Vt && !(e in Te.defaultOptionList) && console.warn(
4323
+ Vt && !(e in Me.defaultOptionList) && console.warn(
4319
4324
  `Invalid column definition option in '${this.field || this.definition.title}' column: ${e}`
4320
4325
  );
4321
4326
  });
@@ -4485,7 +4490,7 @@ const mn = {
4485
4490
  if (!this.element)
4486
4491
  return;
4487
4492
  let i;
4488
- if (this.parent instanceof Te && this.parent.isGroup)
4493
+ if (this.parent instanceof Me && this.parent.isGroup)
4489
4494
  i = this.parent.getGroupElement().clientHeight;
4490
4495
  else if ("getHeadersElement" in this.parent) {
4491
4496
  const s = this.parent.getHeadersElement();
@@ -4572,29 +4577,29 @@ const mn = {
4572
4577
  }
4573
4578
  // show column
4574
4579
  async show(e, t) {
4575
- this.hidden && (this.hidden = !1, this.element && (this.element.style.display = ""), this.parent instanceof Te && this.parent.isGroup && await this.parent.checkColumnVisibility(), this.cells.forEach((i) => {
4580
+ this.hidden && (this.hidden = !1, this.element && (this.element.style.display = ""), this.parent instanceof Me && this.parent.isGroup && await this.parent.checkColumnVisibility(), this.cells.forEach((i) => {
4576
4581
  i.show();
4577
4582
  }), !this.isGroup && this.width === null && await this.reinitializeWidth(), this.table.columnManager?.verticalAlignHeaders(), this.dispatch("column-show", this, t), e || this.dispatchExternal(
4578
4583
  "columnVisibilityChanged",
4579
4584
  this.getComponent(),
4580
4585
  !0
4581
- ), this.parent instanceof Te && this.parent.isGroup && this.parent.matchChildWidths(), this.silent || (this.layoutMode() === "fitColumns" ? this.table.columnManager?.refreshVisibilityLayout() : this.table.columnManager?.rerenderColumns()));
4586
+ ), this.parent instanceof Me && this.parent.isGroup && this.parent.matchChildWidths(), this.silent || (this.layoutMode() === "fitColumns" ? this.table.columnManager?.refreshVisibilityLayout() : this.table.columnManager?.rerenderColumns()));
4582
4587
  }
4583
4588
  // hide column
4584
4589
  hide(e, t) {
4585
- this.hidden || (this.hidden = !0, this.element && (this.element.style.display = "none"), this.table.columnManager?.verticalAlignHeaders(), this.parent instanceof Te && this.parent.isGroup && this.parent.checkColumnVisibility(), this.cells.forEach((i) => {
4590
+ this.hidden || (this.hidden = !0, this.element && (this.element.style.display = "none"), this.table.columnManager?.verticalAlignHeaders(), this.parent instanceof Me && this.parent.isGroup && this.parent.checkColumnVisibility(), this.cells.forEach((i) => {
4586
4591
  i.hide();
4587
4592
  }), this.dispatch("column-hide", this, t), e || this.dispatchExternal(
4588
4593
  "columnVisibilityChanged",
4589
4594
  this.getComponent(),
4590
4595
  !1
4591
- ), this.parent instanceof Te && this.parent.isGroup && this.parent.matchChildWidths(), this.silent || (this.layoutMode() === "fitColumns" ? this.table.columnManager?.refreshVisibilityLayout() : this.table.columnManager?.rerenderColumns()));
4596
+ ), this.parent instanceof Me && this.parent.isGroup && this.parent.matchChildWidths(), this.silent || (this.layoutMode() === "fitColumns" ? this.table.columnManager?.refreshVisibilityLayout() : this.table.columnManager?.rerenderColumns()));
4592
4597
  }
4593
4598
  matchChildWidths() {
4594
4599
  let e = 0;
4595
4600
  this.contentElement && this.columns.length && (this.columns.forEach((t) => {
4596
4601
  t.hidden || (e += t.getWidth());
4597
- }), this.contentElement.style.maxWidth = e - 1 + "px", this.table.initialized && this.element && (this.element.style.width = e + "px"), this.parent instanceof Te && this.parent.isGroup && this.parent.matchChildWidths());
4602
+ }), this.contentElement.style.maxWidth = e - 1 + "px", this.table.initialized && this.element && (this.element.style.width = e + "px"), this.parent instanceof Me && this.parent.isGroup && this.parent.matchChildWidths());
4598
4603
  }
4599
4604
  removeChild(e) {
4600
4605
  const t = this.columns.indexOf(e);
@@ -4609,7 +4614,7 @@ const mn = {
4609
4614
  this.table.element.clientWidth / 100 * parseInt(e, 10)
4610
4615
  ) : t = Number(e) : t = e, this.minWidth !== null && (t = Math.max(this.minWidth, t)), this.maxWidth && (t = Math.min(this.maxWidth, t)), this.width = t, this.widthStyled = t ? t + "px" : "", this.element && (this.element.style.width = this.widthStyled), this.isGroup || this.cells.forEach((i) => {
4611
4616
  i.setWidth();
4612
- }), this.parent instanceof Te && this.parent.isGroup && this.parent.matchChildWidths(), this.dispatch("column-width", this), this.subscribedExternal("columnWidth") && this.dispatchExternal("columnWidth", this.getComponent());
4617
+ }), this.parent instanceof Me && this.parent.isGroup && this.parent.matchChildWidths(), this.dispatch("column-width", this), this.subscribedExternal("columnWidth") && this.dispatchExternal("columnWidth", this.getComponent());
4613
4618
  }
4614
4619
  checkCellHeights() {
4615
4620
  const e = [];
@@ -4631,7 +4636,7 @@ const mn = {
4631
4636
  if (!this.element)
4632
4637
  return 0;
4633
4638
  let e = this.element.offsetLeft;
4634
- return this.parent instanceof Te && this.parent.isGroup && (e += this.parent.getLeftOffset()), e;
4639
+ return this.parent instanceof Me && this.parent.isGroup && (e += this.parent.getLeftOffset()), e;
4635
4640
  }
4636
4641
  getHeight() {
4637
4642
  return this.element ? Math.ceil(this.element.getBoundingClientRect().height) : 0;
@@ -4666,7 +4671,7 @@ const mn = {
4666
4671
  const t = this.cells.length;
4667
4672
  for (let i = 0; i < t; i++)
4668
4673
  this.cells[0].delete();
4669
- this.element && this.element.parentNode && this.element.parentNode.removeChild(this.element), this.element = !1, this.contentElement = !1, this.titleElement = !1, this.groupElement = !1, this.parent instanceof Te && this.parent.isGroup && this.parent.removeChild(this), this.table.columnManager?.deregisterColumn(this), this.table.columnManager?.rerenderColumns(!0), this.dispatch("column-deleted", this), e();
4674
+ this.element && this.element.parentNode && this.element.parentNode.removeChild(this.element), this.element = !1, this.contentElement = !1, this.titleElement = !1, this.groupElement = !1, this.parent instanceof Me && this.parent.isGroup && this.parent.removeChild(this), this.table.columnManager?.deregisterColumn(this), this.table.columnManager?.rerenderColumns(!0), this.dispatch("column-deleted", this), e();
4670
4675
  });
4671
4676
  }
4672
4677
  columnRendered() {
@@ -4731,7 +4736,7 @@ const mn = {
4731
4736
  ), Promise.reject(
4732
4737
  "Column Update Error - The updateDefinition function is only available on columns, not column groups"
4733
4738
  );
4734
- if (!(this.parent instanceof Te) || !this.parent.isGroup) {
4739
+ if (!(this.parent instanceof Me) || !this.parent.isGroup) {
4735
4740
  const t = { ...this.getDefinition() }, i = Object.assign(t, e);
4736
4741
  return this.table.columnManager ? this.table.columnManager.addColumn(i, !1, this).then((s) => (i.field == this.field && (this.field = !1), this.delete().then(() => s.getComponent()))) : Promise.reject("ColumnManager not available");
4737
4742
  } else
@@ -4755,12 +4760,12 @@ const mn = {
4755
4760
  return (this.table.columnManager?.getVisibleColumnsByIndex().indexOf(this) ?? -1) + 1;
4756
4761
  }
4757
4762
  getParentComponent() {
4758
- return this.parent instanceof Te ? this.parent.getComponent() : !1;
4763
+ return this.parent instanceof Me ? this.parent.getComponent() : !1;
4759
4764
  }
4760
4765
  };
4761
- Te.defaultOptionList = mn;
4762
- let Be = Te;
4763
- class go {
4766
+ Me.defaultOptionList = gn;
4767
+ let Be = Me;
4768
+ class bo {
4764
4769
  constructor(e) {
4765
4770
  return this._row = e, new Proxy(this, {
4766
4771
  get(t, i, s) {
@@ -4834,8 +4839,8 @@ class go {
4834
4839
  return e && e.getComponent();
4835
4840
  }
4836
4841
  }
4837
- const or = process.env.NODE_ENV === "development";
4838
- class Me extends Fe {
4842
+ const rr = process.env.NODE_ENV === "development";
4843
+ class Fe extends Le {
4839
4844
  constructor(e, t, i = "row") {
4840
4845
  super(t.table), this.parent = t, this.data = {}, this.type = i, this.element = !1, this.modules = {}, this.cells = [], this.height = 0, this.heightStyled = "", this.manualHeight = !1, this.outerHeight = 0, this.initialized = !1, this.heightInitialized = !1, this.position = 0, this.positionWatchers = [], this.component = null, this.created = !1, this.setData(e);
4841
4846
  }
@@ -4955,7 +4960,7 @@ class Me extends Fe {
4955
4960
  try {
4956
4961
  e = JSON.parse(e);
4957
4962
  } catch (n) {
4958
- or && console.warn(
4963
+ rr && console.warn(
4959
4964
  "Row updateData - invalid JSON string, skipping update",
4960
4965
  n
4961
4966
  ), o();
@@ -5013,7 +5018,7 @@ class Me extends Fe {
5013
5018
  }
5014
5019
  moveToRow(e, t) {
5015
5020
  const i = this.table.rowManager?.findRow(e);
5016
- i ? (this.table.rowManager?.moveRowActual(this, i, !t), this.table.rowManager?.refreshActiveData("display", !1, !0)) : or && console.warn(`Move Error - No matching row found: ${e}`);
5021
+ i ? (this.table.rowManager?.moveRowActual(this, i, !t), this.table.rowManager?.refreshActiveData("display", !1, !0)) : rr && console.warn(`Move Error - No matching row found: ${e}`);
5017
5022
  }
5018
5023
  // /////////////////// Actions /////////////////////
5019
5024
  delete() {
@@ -5059,7 +5064,7 @@ class Me extends Fe {
5059
5064
  * Object Generation
5060
5065
  */
5061
5066
  getComponent() {
5062
- return this.component || (this.component = new go(this)), this.component;
5067
+ return this.component || (this.component = new bo(this)), this.component;
5063
5068
  }
5064
5069
  }
5065
5070
  class eh {
@@ -5147,7 +5152,7 @@ const th = {
5147
5152
  unique: function(r, e, t) {
5148
5153
  return r.filter((s, o) => !(s == null || typeof s == "string" && s.trim() === "") && r.indexOf(s) === o).length;
5149
5154
  }
5150
- }, rr = process.env.NODE_ENV === "development", Tt = class Tt extends I {
5155
+ }, nr = process.env.NODE_ENV === "development", Tt = class Tt extends I {
5151
5156
  constructor(e) {
5152
5157
  super(e), this.topCalcs = [], this.botCalcs = [], this.genColumn = !1, this.topElement = this.createElement(), this.botElement = this.createElement(), this.topRow = !1, this.botRow = !1, this.topInitialized = !1, this.botInitialized = !1, this.blocked = !1, this.recalcAfterBlock = !1, this.registerTableOption("columnCalcs", !0), this.registerColumnOption("topCalc"), this.registerColumnOption("topCalcParams"), this.registerColumnOption("topCalcFormatter"), this.registerColumnOption("topCalcFormatterParams"), this.registerColumnOption("bottomCalc"), this.registerColumnOption("bottomCalcParams"), this.registerColumnOption("bottomCalcFormatter"), this.registerColumnOption("bottomCalcFormatterParams");
5153
5158
  }
@@ -5209,7 +5214,7 @@ const th = {
5209
5214
  if (t.topCalc) {
5210
5215
  switch (typeof t.topCalc) {
5211
5216
  case "string":
5212
- Tt.calculations[t.topCalc] ? i.topCalc = Tt.calculations[t.topCalc] : rr && console.warn(
5217
+ Tt.calculations[t.topCalc] ? i.topCalc = Tt.calculations[t.topCalc] : nr && console.warn(
5213
5218
  "Column Calc Error - No such calculation found, ignoring: ",
5214
5219
  t.topCalc
5215
5220
  );
@@ -5223,7 +5228,7 @@ const th = {
5223
5228
  if (t.bottomCalc) {
5224
5229
  switch (typeof t.bottomCalc) {
5225
5230
  case "string":
5226
- Tt.calculations[t.bottomCalc] ? i.botCalc = Tt.calculations[t.bottomCalc] : rr && console.warn(
5231
+ Tt.calculations[t.bottomCalc] ? i.botCalc = Tt.calculations[t.bottomCalc] : nr && console.warn(
5227
5232
  "Column Calc Error - No such calculation found, ignoring: ",
5228
5233
  t.bottomCalc
5229
5234
  );
@@ -5314,7 +5319,7 @@ const th = {
5314
5319
  generateRow(e, t) {
5315
5320
  const i = this.generateRowData(e, t);
5316
5321
  this.table.modExists("mutator") && this.table.modules.mutator?.disable();
5317
- const s = new Me(i, this, "calc");
5322
+ const s = new Fe(i, this, "calc");
5318
5323
  return this.table.modExists("mutator") && this.table.modules.mutator?.enable(), s.getElement().classList.add("tabulator-calcs", "tabulator-calcs-" + e), s.component = null, s.getComponent = () => (s.component || (s.component = new eh(s)), s.component), s.generateCells = () => {
5319
5324
  const o = [];
5320
5325
  this.table.columnManager?.columnsByIndex.forEach((n) => {
@@ -5389,7 +5394,7 @@ const th = {
5389
5394
  };
5390
5395
  Tt.moduleName = "columnCalcs", Tt.calculations = th;
5391
5396
  let Rs = Tt;
5392
- class Ss extends Me {
5397
+ class Ss extends Fe {
5393
5398
  constructor(e = {}, t) {
5394
5399
  super(e, t), this.type = "placeholder", this.height = 0, this.outerHeight = 0, this.initialized = !1, this.modules = {}, this.cells = [];
5395
5400
  }
@@ -5438,7 +5443,7 @@ class Ss extends Me {
5438
5443
  }
5439
5444
  const ih = x`<span class="tabulator-data-tree-control" tabindex="0"><cx-icon-button name="keyboard_arrow_down"></cx-icon-button></span>`, sh = x`<span class="tabulator-data-tree-control" tabindex="0"><cx-icon-button name="keyboard_arrow_right"></cx-icon-button></span>`, oh = x`<span class="tabulator-data-tree-control tabulator-data-tree-control-placeholder" aria-hidden="true"></span>`, rh = x`<div class="tabulator-data-tree-branch"></div>`, nh = x`<div class="tabulator-data-tree-branch-empty"></div>`, ah = x`<cx-button size="small"><cx-icon slot="prefix" name="add" variant="outlined"></cx-icon>
5440
5445
  Load More
5441
- </cx-button>`, lh = x`<div class="tabulator-data-tree-loading">Loading...</div>`, hh = process.env.NODE_ENV === "development", Ro = class Ro extends I {
5446
+ </cx-button>`, lh = x`<div class="tabulator-data-tree-loading">Loading...</div>`, hh = process.env.NODE_ENV === "development", So = class So extends I {
5442
5447
  constructor(e) {
5443
5448
  super(e), this.indent = 10, this.field = "", this.collapseEl = null, this.expandEl = null, this.branchEl = null, this.elementField = !1, this.startOpen = function() {
5444
5449
  return !1;
@@ -5586,7 +5591,7 @@ const ih = x`<span class="tabulator-data-tree-control" tabindex="0"><cx-icon-but
5586
5591
  const t = [];
5587
5592
  return e.forEach((i) => {
5588
5593
  let s, o;
5589
- t.push(i), i instanceof Me && (i.create(), s = i.modules.dataTree, !s.index && s.children !== !1 && (o = this.getChildren(i, !1, !0), o.forEach((n) => {
5594
+ t.push(i), i instanceof Fe && (i.create(), s = i.modules.dataTree, !s.index && s.children !== !1 && (o = this.getChildren(i, !1, !0), o.forEach((n) => {
5590
5595
  n.create(), t.push(n);
5591
5596
  })));
5592
5597
  }), t;
@@ -5609,7 +5614,7 @@ const ih = x`<span class="tabulator-data-tree-control" tabindex="0"><cx-icon-but
5609
5614
  Array.isArray(i) || (i = i ? [i] : []);
5610
5615
  const s = e.modules.dataTree.index + 1;
5611
5616
  if (i.forEach((o) => {
5612
- const n = new Me(o || {}, this.table.rowManager);
5617
+ const n = new Fe(o || {}, this.table.rowManager);
5613
5618
  n.create(), n.modules.dataTree.index = s, n.modules.dataTree.parent = e, n.modules.dataTree.children && (n.modules.dataTree.open = this.startOpen(
5614
5619
  n.getComponent(),
5615
5620
  n.modules.dataTree.index
@@ -5752,13 +5757,13 @@ const ih = x`<span class="tabulator-data-tree-control" tabindex="0"><cx-icon-but
5752
5757
  return t.children && (Array.isArray(t.children) || (e.modules.dataTree.children = this.generateChildren(e)), this.table.modExists("filter") && this.table.options.dataTreeFilter ? s = this.table.modules.filter?.filter(
5753
5758
  e.modules.dataTree.children
5754
5759
  ) || [] : s = e.modules.dataTree.children, s.forEach((o) => {
5755
- o instanceof Me && i.push(o);
5760
+ o instanceof Fe && i.push(o);
5756
5761
  })), i;
5757
5762
  }
5758
5763
  rowDeleting(e) {
5759
5764
  const t = e.modules.dataTree;
5760
5765
  t && t.children && Array.isArray(t.children) && t.children.forEach((i) => {
5761
- i instanceof Me && i.wipe();
5766
+ i instanceof Fe && i.wipe();
5762
5767
  });
5763
5768
  }
5764
5769
  rowDelete(e) {
@@ -5780,14 +5785,14 @@ const ih = x`<span class="tabulator-data-tree-control" tabindex="0"><cx-icon-but
5780
5785
  findChildIndex(e, t) {
5781
5786
  let i = !1;
5782
5787
  if (typeof e == "object")
5783
- if (e instanceof Me)
5788
+ if (e instanceof Fe)
5784
5789
  i = e.data;
5785
5790
  else if (e._getSelf)
5786
5791
  i = e._getSelf().data;
5787
5792
  else if (typeof HTMLElement < "u" && e instanceof HTMLElement) {
5788
5793
  const s = t.modules.dataTree;
5789
5794
  if (s) {
5790
- const o = s.children?.find((n) => n instanceof Me ? n.element === e : !1);
5795
+ const o = s.children?.find((n) => n instanceof Fe ? n.element === e : !1);
5791
5796
  o && (i = o.data);
5792
5797
  }
5793
5798
  } else e === null && (i = !1);
@@ -5808,7 +5813,7 @@ const ih = x`<span class="tabulator-data-tree-control" tabindex="0"><cx-icon-but
5808
5813
  getTreeChildren(e, t, i) {
5809
5814
  const s = e.modules.dataTree, o = [];
5810
5815
  return s?.children && (Array.isArray(s.children) || (e.modules.dataTree.children = this.generateChildren(e)), s.children.forEach((n) => {
5811
- n instanceof Me && (t ? o.push(n.getComponent()) : o.push(n), i && this.getTreeChildren(n, t, i).forEach(
5816
+ n instanceof Fe && (t ? o.push(n.getComponent()) : o.push(n), i && this.getTreeChildren(n, t, i).forEach(
5812
5817
  (a) => {
5813
5818
  o.push(a);
5814
5819
  }
@@ -5822,20 +5827,20 @@ const ih = x`<span class="tabulator-data-tree-control" tabindex="0"><cx-icon-but
5822
5827
  return (this.field ? e[this.field] !== void 0 && e[this.field] !== null : !1) || (this.elementField ? e[this.elementField] !== void 0 && e[this.elementField] !== null : !1) || (this.loadingField ? e[this.loadingField] !== void 0 && e[this.loadingField] !== null : !1) || (this.hasMoreField ? e[this.hasMoreField] !== void 0 && e[this.hasMoreField] !== null : !1);
5823
5828
  }
5824
5829
  };
5825
- Ro.moduleName = "dataTree";
5826
- let Ds = Ro;
5827
- const nr = process.env.NODE_ENV === "development", ch = function(r, e = {}, t) {
5830
+ So.moduleName = "dataTree";
5831
+ let Ds = So;
5832
+ const ar = process.env.NODE_ENV === "development", ch = function(r, e = {}, t) {
5828
5833
  const i = e.delimiter ? e.delimiter : ",", s = [], o = [];
5829
5834
  r.forEach((a) => {
5830
5835
  const l = [];
5831
5836
  switch (a.type) {
5832
5837
  case "group":
5833
- nr && console.warn(
5838
+ ar && console.warn(
5834
5839
  "Download Warning - CSV downloader cannot process row groups"
5835
5840
  );
5836
5841
  break;
5837
5842
  case "calc":
5838
- nr && console.warn(
5843
+ ar && console.warn(
5839
5844
  "Download Warning - CSV downloader cannot process column calculations"
5840
5845
  );
5841
5846
  break;
@@ -5869,7 +5874,7 @@ const nr = process.env.NODE_ENV === "development", ch = function(r, e = {}, t) {
5869
5874
  const i = this;
5870
5875
  let s = "";
5871
5876
  i.modExists("export", !0) && (s = i.modules.export?.generateHTMLTable(r) || ""), t(s, "text/html");
5872
- }, ar = process.env.NODE_ENV === "development", uh = function(r, e, t) {
5877
+ }, lr = process.env.NODE_ENV === "development", uh = function(r, e, t) {
5873
5878
  const i = [];
5874
5879
  r.forEach((o) => {
5875
5880
  const n = {};
@@ -5877,12 +5882,12 @@ const nr = process.env.NODE_ENV === "development", ch = function(r, e = {}, t) {
5877
5882
  case "header":
5878
5883
  break;
5879
5884
  case "group":
5880
- ar && console.warn(
5885
+ lr && console.warn(
5881
5886
  "Download Warning - JSON downloader cannot process row groups"
5882
5887
  );
5883
5888
  break;
5884
5889
  case "calc":
5885
- ar && console.warn(
5890
+ lr && console.warn(
5886
5891
  "Download Warning - JSON downloader cannot process column calculations"
5887
5892
  );
5888
5893
  break;
@@ -5895,7 +5900,7 @@ const nr = process.env.NODE_ENV === "development", ch = function(r, e = {}, t) {
5895
5900
  });
5896
5901
  const s = JSON.stringify(i, null, " ");
5897
5902
  t(s, "application/json");
5898
- }, lr = process.env.NODE_ENV === "development", ph = function(r, e, t) {
5903
+ }, hr = process.env.NODE_ENV === "development", ph = function(r, e, t) {
5899
5904
  const i = [];
5900
5905
  r.forEach((s) => {
5901
5906
  const o = {};
@@ -5903,12 +5908,12 @@ const nr = process.env.NODE_ENV === "development", ch = function(r, e = {}, t) {
5903
5908
  case "header":
5904
5909
  break;
5905
5910
  case "group":
5906
- lr && console.warn(
5911
+ hr && console.warn(
5907
5912
  "Download Warning - JSON downloader cannot process row groups"
5908
5913
  );
5909
5914
  break;
5910
5915
  case "calc":
5911
- lr && console.warn(
5916
+ hr && console.warn(
5912
5917
  "Download Warning - JSON downloader cannot process column calculations"
5913
5918
  );
5914
5919
  break;
@@ -5993,7 +5998,7 @@ const nr = process.env.NODE_ENV === "development", ch = function(r, e = {}, t) {
5993
5998
  return;
5994
5999
  }
5995
6000
  let n = o.utils.book_new();
5996
- const a = new Fe(i), l = "compress" in e ? e.compress : !0, h = e.writeOptions || {
6001
+ const a = new Le(i), l = "compress" in e ? e.compress : !0, h = e.writeOptions || {
5997
6002
  bookSST: !0,
5998
6003
  bookType: "xlsx",
5999
6004
  compression: l
@@ -6308,7 +6313,7 @@ const yh = function(r, e, t, i, s = {}) {
6308
6313
  }
6309
6314
  }), d;
6310
6315
  };
6311
- function bo(r, e) {
6316
+ function wo(r, e) {
6312
6317
  const t = e.mask, i = typeof e.maskLetterChar < "u" ? e.maskLetterChar : "A", s = typeof e.maskNumberChar < "u" ? e.maskNumberChar : "9", o = typeof e.maskWildcardChar < "u" ? e.maskWildcardChar : "*";
6313
6318
  function n(a) {
6314
6319
  const l = t[a];
@@ -6386,11 +6391,11 @@ const Sh = function(r, e, t, i, s) {
6386
6391
  l.stopPropagation();
6387
6392
  break;
6388
6393
  }
6389
- }), s.mask && bo(n, s), n;
6394
+ }), s.mask && wo(n, s), n;
6390
6395
  }, Dh = process.env.NODE_ENV === "development";
6391
- let gn = null;
6396
+ let bn = null;
6392
6397
  function kh(r) {
6393
- gn = r;
6398
+ bn = r;
6394
6399
  }
6395
6400
  const Th = {
6396
6401
  /**
@@ -6398,7 +6403,7 @@ const Th = {
6398
6403
  * by {@link setDefaultFormattersRegistry}
6399
6404
  */
6400
6405
  lookupFormatter(r, e) {
6401
- const t = e ?? gn;
6406
+ const t = e ?? bn;
6402
6407
  if (!t)
6403
6408
  throw new Error(
6404
6409
  "defaultFormatterRegistry is not initialized; ensure ./defaults/formatters has finished loading."
@@ -6502,17 +6507,17 @@ function Hh(r, e, t) {
6502
6507
  n
6503
6508
  );
6504
6509
  }
6505
- function hr({
6510
+ function cr({
6506
6511
  elementConfig: r,
6507
6512
  elementValue: e,
6508
6513
  rowData: t
6509
6514
  }) {
6510
6515
  return !!(r.shouldHide?.(e, t) || r.hideValues !== void 0 && (Array.isArray(r.hideValues) ? r.hideValues : [r.hideValues]).includes(e) || r.shouldShow && !r.shouldShow(e, t) || r.showValues !== void 0 && !(Array.isArray(r.showValues) ? r.showValues : [r.showValues]).includes(e));
6511
6516
  }
6512
- function cr(r) {
6517
+ function dr(r) {
6513
6518
  return r == null || r === "";
6514
6519
  }
6515
- function dr({
6520
+ function ur({
6516
6521
  cell: r,
6517
6522
  elementConfig: e,
6518
6523
  rowData: t,
@@ -6524,18 +6529,18 @@ function Nh(r, e, t) {
6524
6529
  if (!e?.elements || !Array.isArray(e.elements) || e.elements.length === 0)
6525
6530
  return;
6526
6531
  const i = r.getData(), s = this.table, o = typeof s.options.nestedFieldSeparator == "string" ? s.options.nestedFieldSeparator : void 0, n = r.getValue(), a = e.elements.some((L) => {
6527
- const we = dr({
6532
+ const we = ur({
6528
6533
  cell: r,
6529
6534
  elementConfig: L,
6530
6535
  rowData: i,
6531
6536
  separator: o
6532
6537
  });
6533
- if (hr({ elementConfig: L, elementValue: we, rowData: i }))
6538
+ if (cr({ elementConfig: L, elementValue: we, rowData: i }))
6534
6539
  return !1;
6535
6540
  let Z = we;
6536
- return L.valueMap && (Z = L.valueMap[String(Z)] ?? Z), !cr(Z);
6541
+ return L.valueMap && (Z = L.valueMap[String(Z)] ?? Z), !dr(Z);
6537
6542
  });
6538
- if (cr(n) && !a && e.placeholder !== void 0)
6543
+ if (dr(n) && !a && e.placeholder !== void 0)
6539
6544
  return Hh.call(this, r, e, t);
6540
6545
  const h = r.getRow(), {
6541
6546
  align: c,
@@ -6547,13 +6552,13 @@ function Nh(r, e, t) {
6547
6552
  wrap: E
6548
6553
  } = e, y = x`<cx-space class="tabulator-composite" style=${at(p ?? {})} align-items=${c ?? "center"} ?block=${d} direction=${J(u)} justify-content=${J(w)} spacing=${f ?? "3x-small"} wrap=${E ?? "nowrap"}></cx-space>`, D = $(y), T = [];
6549
6554
  return e.elements.forEach((L) => {
6550
- const we = dr({
6555
+ const we = ur({
6551
6556
  cell: r,
6552
6557
  elementConfig: L,
6553
6558
  rowData: i,
6554
6559
  separator: o
6555
6560
  });
6556
- if (hr({ elementConfig: L, elementValue: we, rowData: i }))
6561
+ if (cr({ elementConfig: L, elementValue: we, rowData: i }))
6557
6562
  return;
6558
6563
  let Z = we;
6559
6564
  L.valueMap && (Z = L.valueMap[String(Z)] ?? Z);
@@ -6639,11 +6644,11 @@ function Gh(r, e, t) {
6639
6644
  return i.isDateTime(h) ? d = h : s === "iso" ? d = i.fromISO(String(h)) : d = i.fromFormat(String(h), s), d.isValid ? l ? d.diff(c, a).toHuman() + (n ? " " + n : "") : Number.parseInt(String(d.diff(c, a)[a]), 10) + (n ? " " + n : "") : o === !0 ? h : typeof o == "function" ? o(h) : o;
6640
6645
  }
6641
6646
  }
6642
- function ur(r, e) {
6647
+ function pr(r, e) {
6643
6648
  return r == null ? "" : Array.isArray(r) ? r.join(e) : String(r);
6644
6649
  }
6645
6650
  function Uh(r, e) {
6646
- const t = e ?? {}, i = t.arraySeparator ?? ", ", s = (c) => typeof c == "function" ? c(r) : c, o = ur(s(t.newValue) ?? r.getValue(), i), n = ur(s(t.oldValue) ?? "", i), a = Uo(n), l = Uo(o), h = a && l ? `${a} ${l}` : l || a;
6651
+ const t = e ?? {}, i = t.arraySeparator ?? ", ", s = (c) => typeof c == "function" ? c(r) : c, o = pr(s(t.newValue) ?? r.getValue(), i), n = pr(s(t.oldValue) ?? "", i), a = Ko(n), l = Ko(o), h = a && l ? `${a} ${l}` : l || a;
6647
6652
  return $(x`<cx-line-clamp lines="1" clamped-tooltip=${h}><cx-diff old-value=${n} new-value=${o}></cx-diff></cx-line-clamp>`);
6648
6653
  }
6649
6654
  function Kh(r, e, t) {
@@ -6775,7 +6780,7 @@ function rc(r, e, t) {
6775
6780
  let i = parseFloat(r.getValue()), s = "", o, n, a, l;
6776
6781
  const h = e.decimal || ".", c = e.thousand || ",", d = e.negativeSign || "-", p = e.symbol || "", u = !!e.symbolAfter, f = typeof e.precision < "u" ? e.precision : 2;
6777
6782
  if (isNaN(i))
6778
- return Xi(P(po(r.getValue())));
6783
+ return Xi(P(fo(r.getValue())));
6779
6784
  i < 0 && (i = Math.abs(i), s = d), o = f !== !1 ? i.toFixed(f) : String(i), o = String(o).split("."), n = o[0];
6780
6785
  const w = o.length > 1 ? h + o[1] : "";
6781
6786
  if (e.thousand !== !1)
@@ -6800,7 +6805,7 @@ function ac(r, e) {
6800
6805
  return o;
6801
6806
  }
6802
6807
  function lc(r, e) {
6803
- let t = Xi(P(po(r.getValue())));
6808
+ let t = Xi(P(fo(r.getValue())));
6804
6809
  const i = e ?? {};
6805
6810
  i.prefix && (t = i.prefix + t), i.suffix && (t = t + i.suffix);
6806
6811
  const s = x`<cx-line-clamp lines="1"><span style=${at(i.style ?? {})}>${t}</span></cx-line-clamp>`;
@@ -6876,7 +6881,7 @@ function hc(r, e = {}, t) {
6876
6881
  if (!s)
6877
6882
  return;
6878
6883
  let E;
6879
- if (r instanceof mo)
6884
+ if (r instanceof go)
6880
6885
  E = r.getContentElement();
6881
6886
  else {
6882
6887
  const y = document.createElement("div");
@@ -6903,7 +6908,7 @@ function dc(r, e, t) {
6903
6908
  }
6904
6909
  return o && (o.style.whiteSpace = "nowrap", o.style.overflow = "hidden", o.style.textOverflow = "ellipsis"), s && s.setAttribute("aria-label", String(i)), a;
6905
6910
  }
6906
- const pr = "cx-table-switch-change", uc = x`<cx-switch></cx-switch>`;
6911
+ const fr = "cx-table-switch-change", uc = x`<cx-switch></cx-switch>`;
6907
6912
  function pc(r) {
6908
6913
  const e = Object.prototype.hasOwnProperty.call(r, "onValue") ? r.onValue : !0;
6909
6914
  return { offValue: Object.prototype.hasOwnProperty.call(r, "offValue") ? r.offValue : !1, onValue: e };
@@ -6911,11 +6916,11 @@ function pc(r) {
6911
6916
  function fc(r, e) {
6912
6917
  const t = r.getTable().element, i = t.getRootNode(), s = i instanceof ShadowRoot ? i.host : null;
6913
6918
  if (s && typeof s.emit == "function") {
6914
- s.emit(pr, { detail: e });
6919
+ s.emit(fr, { detail: e });
6915
6920
  return;
6916
6921
  }
6917
6922
  t.dispatchEvent(
6918
- new CustomEvent(pr, {
6923
+ new CustomEvent(fr, {
6919
6924
  bubbles: !0,
6920
6925
  composed: !0,
6921
6926
  detail: e
@@ -6968,7 +6973,7 @@ function vc(r, e) {
6968
6973
  return Object.assign(s, i), s.textContent = e?.getTagContent?.(t) ?? e?.tagContentMap?.[t] ?? String(t), s;
6969
6974
  }
6970
6975
  function yc(r) {
6971
- return Xi(P(po(r.getValue())));
6976
+ return Xi(P(fo(r.getValue())));
6972
6977
  }
6973
6978
  function Cc(r, e, t) {
6974
6979
  const i = r.getValue(), s = r.getElement(), o = e.allowEmpty, n = e.allowTruthy, a = Object.prototype.hasOwnProperty.call(
@@ -7055,7 +7060,7 @@ function Mc(r, e) {
7055
7060
  let l = String(t);
7056
7061
  return i.prefix && (l = i.prefix + l), i.suffix && (l = l + i.suffix), a.textContent = l, n;
7057
7062
  }
7058
- const bn = {
7063
+ const wn = {
7059
7064
  adaptable: Mh,
7060
7065
  array: Fh,
7061
7066
  avatar: Lh,
@@ -7089,7 +7094,7 @@ const bn = {
7089
7094
  traffic: Tc,
7090
7095
  typography: Mc
7091
7096
  };
7092
- kh(bn);
7097
+ kh(wn);
7093
7098
  const Mt = class Mt extends I {
7094
7099
  constructor(e) {
7095
7100
  super(e), this.registerColumnOption("formatter"), this.registerColumnOption("formatterParams"), this.registerColumnOption("formatterPrint"), this.registerColumnOption("formatterPrintParams"), this.registerColumnOption("formatterClipboard"), this.registerColumnOption("formatterClipboardParams"), this.registerColumnOption("formatterHtmlOutput"), this.registerColumnOption("formatterHtmlOutputParams"), this.registerColumnOption("titleFormatter"), this.registerColumnOption("titleFormatterParams"), this.registerColumnOption("textFormatParams"), this.registerColumnOption("cellClass"), this.registerColumnOption("cellStyle");
@@ -7192,7 +7197,7 @@ const Mt = class Mt extends I {
7192
7197
  return this.formatValue(e);
7193
7198
  }
7194
7199
  };
7195
- Mt.moduleName = "format", Mt.formatters = bn;
7200
+ Mt.moduleName = "format", Mt.formatters = wn;
7196
7201
  let Bi = Mt;
7197
7202
  const ut = process.env.NODE_ENV === "development", Fc = x`<cx-option></cx-option>`, Lc = x`<cx-divider></cx-divider>`;
7198
7203
  class zc {
@@ -7260,7 +7265,7 @@ class zc {
7260
7265
  if (!e)
7261
7266
  return null;
7262
7267
  let t;
7263
- return typeof e == "string" ? t = Go(e) : t = e, t && (t.slot = "prefix"), t;
7268
+ return typeof e == "string" ? t = Uo(e) : t = e, t && (t.slot = "prefix"), t;
7264
7269
  }
7265
7270
  _createSelectElement() {
7266
7271
  const {
@@ -7356,7 +7361,7 @@ class zc {
7356
7361
  }
7357
7362
  async _ajaxRequest(e, t) {
7358
7363
  const { ajaxResponse: i, filterRemote: s } = this.params, o = s ? { term: t } : {};
7359
- e = un(e, {}, o);
7364
+ e = pn(e, {}, o);
7360
7365
  let n = [];
7361
7366
  try {
7362
7367
  if (!this.fetchApi)
@@ -7579,7 +7584,7 @@ class zc {
7579
7584
  i && typeof i == "object" && "nodeType" in i && i instanceof HTMLElement ? t.appendChild(i) : t.innerHTML = P(String(i || ""));
7580
7585
  const s = this.params.fallbackOption?.prefix;
7581
7586
  if (e.isFallbackOption && s) {
7582
- const o = Go(
7587
+ const o = Uo(
7583
7588
  `<div style="display: inline-flex" slot="prefix">${P(s)}</div>`
7584
7589
  );
7585
7590
  o && t.prepend(o);
@@ -7714,7 +7719,7 @@ const _c = function(r, e, t, i, s) {
7714
7719
  return new zc(
7715
7720
  // eslint-disable-next-line no-invalid-this
7716
7721
  this,
7717
- r instanceof mo ? r._getSelf() : r,
7722
+ r instanceof go ? r._getSelf() : r,
7718
7723
  e,
7719
7724
  t,
7720
7725
  i,
@@ -7768,7 +7773,7 @@ const _c = function(r, e, t, i, s) {
7768
7773
  p.stopPropagation();
7769
7774
  break;
7770
7775
  }
7771
- }), s.mask && bo(a, s), a;
7776
+ }), s.mask && wo(a, s), a;
7772
7777
  }, Ac = function(r, e, t, i, s) {
7773
7778
  const o = r.getElement();
7774
7779
  if (!o)
@@ -7975,7 +7980,7 @@ const _c = function(r, e, t, i, s) {
7975
7980
  d.stopPropagation();
7976
7981
  break;
7977
7982
  }
7978
- }), s.mask && bo(l, s), l;
7983
+ }), s.mask && wo(l, s), l;
7979
7984
  }, Nc = function(r, e, t, i, s) {
7980
7985
  const o = r.getValue(), n = document.createElement("input"), a = s.tristate, l = typeof s.indeterminateValue > "u" ? null : s.indeterminateValue;
7981
7986
  let h = !1;
@@ -8084,7 +8089,7 @@ const _c = function(r, e, t, i, s) {
8084
8089
  textarea: Hc,
8085
8090
  tickCross: Nc,
8086
8091
  time: Bc
8087
- }, Li = process.env.NODE_ENV === "development", wn = "tabulator-edit-list-trigger", Wc = "tabulator-edit-list-trigger-caret", jc = x`<button aria-label="Open list editor" class=${wn} tabindex="-1" type="button"><cx-icon aria-hidden="true" class=${Wc} name="arrow_drop_down"></cx-icon></button>`, gi = class gi extends I {
8092
+ }, Li = process.env.NODE_ENV === "development", vn = "tabulator-edit-list-trigger", Wc = "tabulator-edit-list-trigger-caret", jc = x`<button aria-label="Open list editor" class=${vn} tabindex="-1" type="button"><cx-icon aria-hidden="true" class=${Wc} name="arrow_drop_down"></cx-icon></button>`, gi = class gi extends I {
8088
8093
  constructor(e) {
8089
8094
  super(e), this.currentCell = !1, this.mouseClick = !1, this.recursionBlock = !1, this.invalidEdit = !1, this.editedCells = [], this.convertEmptyValues = !1, this.editors = gi.editors, this.registerTableOption("editTriggerEvent", "focus"), this.registerTableOption("editorEmptyValue"), this.registerTableOption(
8090
8095
  "editorEmptyValueFunc",
@@ -8349,7 +8354,7 @@ const _c = function(r, e, t, i, s) {
8349
8354
  if (e.column.definition.editor !== "list")
8350
8355
  return;
8351
8356
  const t = e.getElement(!0);
8352
- if (!t || t.classList.contains("tabulator-editing") || t.querySelector(`.${wn}`))
8357
+ if (!t || t.classList.contains("tabulator-editing") || t.querySelector(`.${vn}`))
8353
8358
  return;
8354
8359
  const i = $(
8355
8360
  jc
@@ -8516,7 +8521,7 @@ class rs {
8516
8521
  this.value = e, this.component = t, this.width = i ?? 1, this.height = s ?? 1, this.depth = o ?? 1;
8517
8522
  }
8518
8523
  }
8519
- class fr {
8524
+ class mr {
8520
8525
  constructor(e, t, i, s) {
8521
8526
  this.type = e, this.columns = t, this.component = i ?? !1, this.indent = s ?? 0;
8522
8527
  }
@@ -8622,7 +8627,7 @@ const Kc = process.env.NODE_ENV === "development", Ft = class Ft extends I {
8622
8627
  );
8623
8628
  } else
8624
8629
  a.push(null);
8625
- }), s.push(new fr("header", a));
8630
+ }), s.push(new mr("header", a));
8626
8631
  }), s;
8627
8632
  }
8628
8633
  bodyToExportRows(e, t = []) {
@@ -8667,7 +8672,7 @@ const Kc = process.env.NODE_ENV === "development", Ft = class Ft extends I {
8667
8672
  break;
8668
8673
  }
8669
8674
  i.push(
8670
- new fr(
8675
+ new mr(
8671
8676
  n.type,
8672
8677
  l,
8673
8678
  n.getComponent(),
@@ -8979,7 +8984,7 @@ const Kc = process.env.NODE_ENV === "development", Ft = class Ft extends I {
8979
8984
  };
8980
8985
  Ft.moduleName = "export", Ft.columnLookups = Gc, Ft.rowLookups = Uc;
8981
8986
  let Ms = Ft;
8982
- const mr = process.env.NODE_ENV === "development", qc = {
8987
+ const gr = process.env.NODE_ENV === "development", qc = {
8983
8988
  // not equal to
8984
8989
  "!=": function(r, e, t, i) {
8985
8990
  return e != r;
@@ -9010,7 +9015,7 @@ const mr = process.env.NODE_ENV === "development", qc = {
9010
9015
  },
9011
9016
  // in array
9012
9017
  in: function(r, e, t, i) {
9013
- return Array.isArray(r) ? r.length ? r.includes(e) : !0 : (mr && console.warn("Filter Error - filter value is not an array:", r), !1);
9018
+ return Array.isArray(r) ? r.length ? r.includes(e) : !0 : (gr && console.warn("Filter Error - filter value is not an array:", r), !1);
9014
9019
  },
9015
9020
  // contains the keywords
9016
9021
  keywords: function(r, e, t, i) {
@@ -9034,7 +9039,7 @@ const mr = process.env.NODE_ENV === "development", qc = {
9034
9039
  try {
9035
9040
  return typeof r == "string" ? s = new RegExp(r) : s = r, s.test(String(e));
9036
9041
  } catch {
9037
- return mr && console.warn("Filter Error - invalid regular expression:", r), !1;
9042
+ return gr && console.warn("Filter Error - invalid regular expression:", r), !1;
9038
9043
  }
9039
9044
  },
9040
9045
  // starts with the string
@@ -9058,10 +9063,10 @@ function Ae(r) {
9058
9063
  return;
9059
9064
  }
9060
9065
  }
9061
- const vn = Symbol("skip-composite-element");
9066
+ const yn = Symbol("skip-composite-element");
9062
9067
  function Yc(r, e, t, i, s) {
9063
9068
  if (typeof r?.getValue == "function")
9064
- return vn;
9069
+ return yn;
9065
9070
  if (r?.value !== void 0)
9066
9071
  return r.value;
9067
9072
  const o = r?.field;
@@ -9085,7 +9090,7 @@ function Qc(r, e) {
9085
9090
  s,
9086
9091
  o
9087
9092
  );
9088
- if (c === vn)
9093
+ if (c === yn)
9089
9094
  continue;
9090
9095
  let d = c;
9091
9096
  const p = h?.valueMap;
@@ -9094,7 +9099,7 @@ function Qc(r, e) {
9094
9099
  u !== void 0 && (d = u);
9095
9100
  }
9096
9101
  if (!Zc(h, d, s) && (d !== c && $i(l, d, c), h?.formatter !== void 0)) {
9097
- const u = wo({
9102
+ const u = vo({
9098
9103
  columnField: e,
9099
9104
  formatter: h.formatter,
9100
9105
  formatterParams: h.formatterParams,
@@ -9180,7 +9185,7 @@ function od(r) {
9180
9185
  return i.negativeSign === !0 ? (y = "(" + y + ")", [h ? y + l : l + y]) : [h ? p + y + l : p + l + y];
9181
9186
  }
9182
9187
  const ns = /* @__PURE__ */ new WeakMap();
9183
- function gr(r) {
9188
+ function br(r) {
9184
9189
  const e = {
9185
9190
  style: r.type ?? "decimal",
9186
9191
  useGrouping: !r.noGrouping
@@ -9199,10 +9204,10 @@ function gr(r) {
9199
9204
  }
9200
9205
  function rd(r) {
9201
9206
  if (!r || typeof r != "object")
9202
- return Ae(() => new Intl.NumberFormat(void 0, gr({}))) ?? null;
9207
+ return Ae(() => new Intl.NumberFormat(void 0, br({}))) ?? null;
9203
9208
  if (ns.has(r))
9204
9209
  return ns.get(r) ?? null;
9205
- const e = Ae(() => new Intl.NumberFormat(void 0, gr(r))) ?? null;
9210
+ const e = Ae(() => new Intl.NumberFormat(void 0, br(r))) ?? null;
9206
9211
  return ns.set(r, e), e;
9207
9212
  }
9208
9213
  function nd(r) {
@@ -9218,36 +9223,36 @@ function nd(r) {
9218
9223
  const o = Ae(() => s.format(i));
9219
9224
  return o ? [o] : [];
9220
9225
  }
9221
- function yn(r) {
9226
+ function Cn(r) {
9222
9227
  return r?.dependencyRegistry?.lookup?.(
9223
9228
  ["luxon", "DateTime"],
9224
9229
  "DateTime"
9225
9230
  );
9226
9231
  }
9227
- function Cn(r, e, t) {
9232
+ function En(r, e, t) {
9228
9233
  return r.isDateTime(e) ? e : t === "iso" ? r.fromISO(String(e)) : r.fromFormat(String(e), t);
9229
9234
  }
9230
9235
  function Ni(r, e) {
9231
9236
  return typeof r == "string" && r.length > 0 && r !== e ? [r] : [];
9232
9237
  }
9233
9238
  function ad(r) {
9234
- const { formatterParams: e, rawValue: t, table: i } = r, s = yn(i), o = e ?? {}, n = o.invalidPlaceholder ?? "";
9239
+ const { formatterParams: e, rawValue: t, table: i } = r, s = Cn(i), o = e ?? {}, n = o.invalidPlaceholder ?? "";
9235
9240
  if (!s)
9236
9241
  return [];
9237
- const a = o.inputFormat ?? "yyyy-MM-dd HH:mm:ss", l = o.outputFormat ?? "dd/MM/yyyy HH:mm:ss", h = Ae(() => Cn(s, t, a));
9242
+ const a = o.inputFormat ?? "yyyy-MM-dd HH:mm:ss", l = o.outputFormat ?? "dd/MM/yyyy HH:mm:ss", h = Ae(() => En(s, t, a));
9238
9243
  if (!h?.isValid)
9239
9244
  return Ni(n, t);
9240
9245
  const c = o.timezone ? Ae(() => h.setZone(o.timezone)) ?? h : h, d = Ae(() => c.toFormat(l));
9241
9246
  return d ? [d] : [];
9242
9247
  }
9243
9248
  function ld(r) {
9244
- const { formatterParams: e, rawValue: t, table: i } = r, s = yn(i), o = e ?? {}, n = o.invalidPlaceholder ?? "";
9249
+ const { formatterParams: e, rawValue: t, table: i } = r, s = Cn(i), o = e ?? {}, n = o.invalidPlaceholder ?? "";
9245
9250
  if (!s)
9246
9251
  return Ni(n, t);
9247
9252
  const a = o.inputFormat ?? "yyyy-MM-dd HH:mm:ss", l = o.suffix === void 0 || o.suffix === null ? !1 : o.suffix, h = o.unit === void 0 || o.unit === null ? "days" : o.unit, c = o.humanize === void 0 || o.humanize === null ? !1 : o.humanize, d = o.date === void 0 || o.date === null ? Ae(() => s.now()) : o.date;
9248
9253
  if (!d)
9249
9254
  return Ni(n, t);
9250
- const p = Ae(() => Cn(s, t, a));
9255
+ const p = Ae(() => En(s, t, a));
9251
9256
  if (!p?.isValid)
9252
9257
  return Ni(n, t);
9253
9258
  const u = Ae(() => c ? p.diff(d, h).toHuman() + (l ? " " + l : "") : Number.parseInt(String(p.diff(d, h)[h]), 10) + (l ? " " + l : ""));
@@ -9260,21 +9265,21 @@ function hd(r, e) {
9260
9265
  const i = e?.prefix, s = e?.suffix;
9261
9266
  return typeof i == "string" && i.length > 0 && (t = i + t), typeof s == "string" && s.length > 0 && (t = t + s), t;
9262
9267
  }
9263
- function En(r) {
9268
+ function xn(r) {
9264
9269
  const { formatterParams: e, rawValue: t } = r, i = hd(t, e);
9265
9270
  return i === void 0 || i === String(t) ? [] : [i];
9266
9271
  }
9267
9272
  function cd(r) {
9268
- return En(r);
9273
+ return xn(r);
9269
9274
  }
9270
- function xn(r) {
9275
+ function Rn(r) {
9271
9276
  if (typeof r.rawValue != "string" || !r.rawValue.includes("<"))
9272
9277
  return [];
9273
9278
  const e = Jc(r.rawValue);
9274
9279
  return !e || e === r.rawValue ? [] : [e];
9275
9280
  }
9276
9281
  function dd(r) {
9277
- return xn(r);
9282
+ return Rn(r);
9278
9283
  }
9279
9284
  function ud(r) {
9280
9285
  const { formatterParams: e, rawValue: t } = r, i = e ?? {}, s = i.indent ?? " ", o = i.replacer ?? null, n = Ae(() => JSON.stringify(t, o, s));
@@ -9307,7 +9312,7 @@ function pd(r, e) {
9307
9312
  return a.paramsLookup && (typeof a.paramsLookup == "function" ? h = Ae(() => a.paramsLookup(l, {
9308
9313
  getData: () => s,
9309
9314
  getValue: () => i
9310
- })) : ts(a.paramsLookup) && (h = a.paramsLookup[l])), wo({
9315
+ })) : ts(a.paramsLookup) && (h = a.paramsLookup[l])), vo({
9311
9316
  columnField: e,
9312
9317
  formatter: l,
9313
9318
  formatterParams: h,
@@ -9321,18 +9326,18 @@ const fd = {
9321
9326
  array: td,
9322
9327
  datetime: ad,
9323
9328
  datetimediff: ld,
9324
- html: xn,
9329
+ html: Rn,
9325
9330
  json: ud,
9326
9331
  link: sd,
9327
9332
  lookup: ed,
9328
9333
  money: od,
9329
9334
  number: nd,
9330
- plaintext: En,
9335
+ plaintext: xn,
9331
9336
  tag: id,
9332
9337
  textarea: dd,
9333
9338
  typography: cd
9334
9339
  };
9335
- function wo(r) {
9340
+ function vo(r) {
9336
9341
  const e = r.formatter;
9337
9342
  if (typeof e != "string")
9338
9343
  return [];
@@ -9357,7 +9362,7 @@ function md(r, e, t, i, s) {
9357
9362
  if (!n)
9358
9363
  return [];
9359
9364
  const a = r?.options?.nestedFieldSeparator, l = typeof a == "string" ? a : void 0;
9360
- return wo({
9365
+ return vo({
9361
9366
  columnField: e,
9362
9367
  formatter: n.formatter,
9363
9368
  formatterParams: n.formatterParams,
@@ -9448,10 +9453,10 @@ const Pe = process.env.NODE_ENV === "development", pt = class pt extends I {
9448
9453
  const o = this.getFilters(!0, !0);
9449
9454
  let n = "";
9450
9455
  o.forEach((l) => {
9451
- (l.type === Oe.Keywords || l.type === Oe.Like) && (n = l.value);
9456
+ (l.type === Re.Keywords || l.type === Re.Like) && (n = l.value);
9452
9457
  }), n.trim() && (s.SearchText = n);
9453
9458
  const a = o.filter(
9454
- (l) => l.type !== Oe.Keywords && l.type !== Oe.Like
9459
+ (l) => l.type !== Re.Keywords && l.type !== Re.Like
9455
9460
  );
9456
9461
  return a.length && (s.filters = a), s;
9457
9462
  }
@@ -9568,12 +9573,12 @@ const Pe = process.env.NODE_ENV === "development", pt = class pt extends I {
9568
9573
  c = function(p) {
9569
9574
  const u = e.getFieldValue(p);
9570
9575
  return typeof u < "u" && u !== null ? String(u).toLowerCase().indexOf(String(n).toLowerCase()) > -1 : !1;
9571
- }, l = Oe.Like;
9576
+ }, l = Re.Like;
9572
9577
  break;
9573
9578
  default:
9574
9579
  c = function(p) {
9575
9580
  return e.getFieldValue(p) == n;
9576
- }, l = Oe.Equal;
9581
+ }, l = Re.Equal;
9577
9582
  }
9578
9583
  i.headerFilters[s || ""] = {
9579
9584
  func: c,
@@ -10002,7 +10007,7 @@ const Pe = process.env.NODE_ENV === "development", pt = class pt extends I {
10002
10007
  };
10003
10008
  pt.moduleName = "filter", pt.filters = qc;
10004
10009
  let Wi = pt;
10005
- const gd = process.env.NODE_ENV === "development", So = class So extends I {
10010
+ const gd = process.env.NODE_ENV === "development", Do = class Do extends I {
10006
10011
  constructor(e) {
10007
10012
  super(e), this.leftColumns = [], this.rightColumns = [], this.active = !1, this.blocked = !0, this.registerColumnOption("frozen");
10008
10013
  }
@@ -10167,9 +10172,9 @@ const gd = process.env.NODE_ENV === "development", So = class So extends I {
10167
10172
  return i;
10168
10173
  }
10169
10174
  };
10170
- So.moduleName = "frozenColumns";
10171
- let Fs = So;
10172
- const br = process.env.NODE_ENV === "development", Do = class Do extends I {
10175
+ Do.moduleName = "frozenColumns";
10176
+ let Fs = Do;
10177
+ const wr = process.env.NODE_ENV === "development", ko = class ko extends I {
10173
10178
  constructor(e) {
10174
10179
  super(e), this.topElement = document.createElement("div"), this.rows = [], this.registerComponentFunction("row", "freeze", this.freezeRow.bind(this)), this.registerComponentFunction(
10175
10180
  "row",
@@ -10234,11 +10239,11 @@ const br = process.env.NODE_ENV === "development", Do = class Do extends I {
10234
10239
  }
10235
10240
  freezeRow(e) {
10236
10241
  const t = e._getSelf ? e._getSelf() : e._row;
10237
- t && (t.modules.frozen ? br && console.warn("Freeze Error - Row is already frozen") : (t.modules.frozen = !0, this.topElement.appendChild(t.getElement()), t.initialize(), t.normalizeHeight(), this.rows.push(t), this.refreshData(!1, "display"), this.table.rowManager?.adjustTableSize(), this.styleRows()));
10242
+ t && (t.modules.frozen ? wr && console.warn("Freeze Error - Row is already frozen") : (t.modules.frozen = !0, this.topElement.appendChild(t.getElement()), t.initialize(), t.normalizeHeight(), this.rows.push(t), this.refreshData(!1, "display"), this.table.rowManager?.adjustTableSize(), this.styleRows()));
10238
10243
  }
10239
10244
  unfreezeRow(e) {
10240
10245
  const t = e._getSelf ? e._getSelf() : e._row;
10241
- t && (t.modules.frozen ? (t.modules.frozen = !1, this.detachRow(t), this.table.rowManager?.adjustTableSize(), this.refreshData(!1, "display"), this.rows.length && this.styleRows()) : br && console.warn("Freeze Error - Row is already unfrozen"));
10246
+ t && (t.modules.frozen ? (t.modules.frozen = !1, this.detachRow(t), this.table.rowManager?.adjustTableSize(), this.refreshData(!1, "display"), this.rows.length && this.styleRows()) : wr && console.warn("Freeze Error - Row is already unfrozen"));
10242
10247
  }
10243
10248
  detachRow(e) {
10244
10249
  const t = this.rows.indexOf(e);
@@ -10254,8 +10259,8 @@ const br = process.env.NODE_ENV === "development", Do = class Do extends I {
10254
10259
  });
10255
10260
  }
10256
10261
  };
10257
- Do.moduleName = "frozenRows";
10258
- let Ls = Do;
10262
+ ko.moduleName = "frozenRows";
10263
+ let Ls = ko;
10259
10264
  const bd = process.env.NODE_ENV === "development", wd = x`<cx-icon-button class="tabulator-group-toggle" name="keyboard_arrow_down"></cx-icon-button>`, vd = x`<div class="tabulator-group-level-indent"></div>`, yd = x`<cx-button size="small"><cx-icon slot="prefix" name="add" variant="outlined"></cx-icon>
10260
10265
  Load More
10261
10266
  </cx-button>`, Cd = x`<div class="tabulator-data-tree-loading">Loading...</div>`;
@@ -10384,7 +10389,7 @@ class Zt {
10384
10389
  this.groups[t] && (delete this.groups[t], i = this.groupList.indexOf(e), i > -1 && this.groupList.splice(i, 1), this.groupList.length || (this.parent ? this.parent.removeGroup(this) : this.groupManager.removeGroup(this)));
10385
10390
  }
10386
10391
  getPathKey() {
10387
- return pn(fo(this));
10392
+ return fn(mo(this));
10388
10393
  }
10389
10394
  getLoadMoreState() {
10390
10395
  return Wl(
@@ -10636,10 +10641,10 @@ class Zt {
10636
10641
  }
10637
10642
  // ////////////// Object Generation /////////////////
10638
10643
  getComponent() {
10639
- return this.component ??= new fn(this), this.component;
10644
+ return this.component ??= new mn(this), this.component;
10640
10645
  }
10641
10646
  }
10642
- const as = process.env.NODE_ENV === "development", ko = class ko extends I {
10647
+ const as = process.env.NODE_ENV === "development", To = class To extends I {
10643
10648
  constructor(e) {
10644
10649
  super(e), this.groupIDLookups = !1, this.startOpen = [
10645
10650
  function() {
@@ -11058,8 +11063,8 @@ const as = process.env.NODE_ENV === "development", ko = class ko extends I {
11058
11063
  }), e && (t ? e.style.minWidth = (this.table.columnManager?.getWidth() || 0) + "px" : e.style.minWidth = "");
11059
11064
  }
11060
11065
  };
11061
- ko.moduleName = "groupRows";
11062
- let zs = ko;
11066
+ To.moduleName = "groupRows";
11067
+ let zs = To;
11063
11068
  const Ed = {
11064
11069
  cellEdit: function(r) {
11065
11070
  "setValueProcessData" in r.component && (r.component.setValueProcessData(r.data.newValue), r.component.cellRendered());
@@ -11131,7 +11136,7 @@ const Ed = {
11131
11136
  actions: Rd,
11132
11137
  bindings: Sd
11133
11138
  }
11134
- }, wr = process.env.NODE_ENV === "development", ft = class ft extends I {
11139
+ }, vr = process.env.NODE_ENV === "development", ft = class ft extends I {
11135
11140
  constructor(e) {
11136
11141
  super(e), this.history = [], this.index = -1, this.registerTableOption("history", !1);
11137
11142
  }
@@ -11213,7 +11218,7 @@ const Ed = {
11213
11218
  e.component.getComponent(),
11214
11219
  e.data
11215
11220
  ), !0;
11216
- } else wr && console.warn(
11221
+ } else vr && console.warn(
11217
11222
  this.options("history") ? "History Undo Error - No more history to undo" : "History module not enabled"
11218
11223
  );
11219
11224
  return !1;
@@ -11229,7 +11234,7 @@ const Ed = {
11229
11234
  e.component.getComponent(),
11230
11235
  e.data
11231
11236
  ), !0;
11232
- } else wr && console.warn(
11237
+ } else vr && console.warn(
11233
11238
  this.options("history") ? "History Redo Error - No more history to redo" : "History module not enabled"
11234
11239
  );
11235
11240
  return !1;
@@ -11237,7 +11242,7 @@ const Ed = {
11237
11242
  // rebind rows to new element after deletion
11238
11243
  _rebindRow(e, t) {
11239
11244
  this.history.forEach((i) => {
11240
- if (i.component instanceof Me)
11245
+ if (i.component instanceof Fe)
11241
11246
  i.component === e && (i.component = t);
11242
11247
  else if (i.component instanceof Ti && i.component.row === e) {
11243
11248
  const s = i.component.column.getField();
@@ -11251,7 +11256,7 @@ const Ed = {
11251
11256
  };
11252
11257
  ft.moduleName = "history", ft.moduleExtensions = Dd, ft.undoers = xd, ft.redoers = Ed;
11253
11258
  let _s = ft;
11254
- const kd = process.env.NODE_ENV === "development", To = class To extends I {
11259
+ const kd = process.env.NODE_ENV === "development", Mo = class Mo extends I {
11255
11260
  constructor(e) {
11256
11261
  super(e), this.fieldIndex = [], this.hasIndex = !1;
11257
11262
  }
@@ -11330,8 +11335,8 @@ const kd = process.env.NODE_ENV === "development", To = class To extends I {
11330
11335
  }
11331
11336
  }
11332
11337
  };
11333
- To.moduleName = "htmlTableImport";
11334
- let Os = To;
11338
+ Mo.moduleName = "htmlTableImport";
11339
+ let Os = Mo;
11335
11340
  function Td(r) {
11336
11341
  return r;
11337
11342
  }
@@ -11342,9 +11347,9 @@ v5.5.4
11342
11347
  https://github.com/mholt/PapaParse
11343
11348
  License: MIT
11344
11349
  */
11345
- var Md = Vi.exports, vr;
11350
+ var Md = Vi.exports, yr;
11346
11351
  function Fd() {
11347
- return vr || (vr = 1, function(r, e) {
11352
+ return yr || (yr = 1, function(r, e) {
11348
11353
  ((t, i) => {
11349
11354
  r.exports = i();
11350
11355
  })(Md, function t() {
@@ -11460,7 +11465,7 @@ function Fd() {
11460
11465
  }, this);
11461
11466
  }
11462
11467
  function E(b) {
11463
- var C, R, k, S, _ = Math.pow(2, 53), ae = -_, Ge = /^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/, Je = /^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/, j = this, fe = 0, O = 0, Le = !1, V = !1, G = [], F = { data: [], errors: [], meta: {} };
11468
+ var C, R, k, S, _ = Math.pow(2, 53), ae = -_, Ge = /^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/, Je = /^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/, j = this, fe = 0, O = 0, ze = !1, V = !1, G = [], F = { data: [], errors: [], meta: {} };
11464
11469
  function Ue(X) {
11465
11470
  return b.skipEmptyLines === "greedy" ? X.join("").trim() === "" : X.length === 1 && X[0].length === 0;
11466
11471
  }
@@ -11502,18 +11507,18 @@ function Fd() {
11502
11507
  var st, B, ue, Rt;
11503
11508
  K = K || [",", " ", "|", ";", h.RECORD_SEP, h.UNIT_SEP];
11504
11509
  for (var Xt = 0; Xt < K.length; Xt++) {
11505
- for (var ht, hi = K[Xt], ze = 0, ct = 0, xe = 0, Ne = (ue = void 0, new D({ comments: oe, delimiter: hi, newline: ye, preview: 10 }).parse(he)), wt = 0; wt < Ne.data.length; wt++) se && Ue(Ne.data[wt]) ? xe++ : (ht = Ne.data[wt].length, ct += ht, ue === void 0 ? ue = ht : 0 < ht && (ze += Math.abs(ht - ue), ue = ht));
11506
- 0 < Ne.data.length && (ct /= Ne.data.length - xe), (B === void 0 || ze <= B) && (Rt === void 0 || Rt < ct) && 1.99 < ct && (B = ze, st = hi, Rt = ct);
11510
+ for (var ht, hi = K[Xt], _e = 0, ct = 0, xe = 0, Ne = (ue = void 0, new D({ comments: oe, delimiter: hi, newline: ye, preview: 10 }).parse(he)), wt = 0; wt < Ne.data.length; wt++) se && Ue(Ne.data[wt]) ? xe++ : (ht = Ne.data[wt].length, ct += ht, ue === void 0 ? ue = ht : 0 < ht && (_e += Math.abs(ht - ue), ue = ht));
11511
+ 0 < Ne.data.length && (ct /= Ne.data.length - xe), (B === void 0 || _e <= B) && (Rt === void 0 || Rt < ct) && 1.99 < ct && (B = _e, st = hi, Rt = ct);
11507
11512
  }
11508
11513
  return { successful: !!(b.delimiter = st), bestDelimiter: st };
11509
11514
  })(X, b.newline, b.skipEmptyLines, b.comments, b.delimitersToGuess)).successful ? b.delimiter = A.bestDelimiter : (k = !0, b.delimiter = h.DefaultDelimiter), F.meta.delimiter = b.delimiter), we(b));
11510
- return b.preview && b.header && A.preview++, C = X, R = new D(A), F = R.parse(C, U, me), le(), Le ? { meta: { paused: !0 } } : F || { meta: { paused: !1 } };
11515
+ return b.preview && b.header && A.preview++, C = X, R = new D(A), F = R.parse(C, U, me), le(), ze ? { meta: { paused: !0 } } : F || { meta: { paused: !1 } };
11511
11516
  }, this.paused = function() {
11512
- return Le;
11517
+ return ze;
11513
11518
  }, this.pause = function() {
11514
- Le = !0, R.abort(), C = z(b.chunk) ? "" : C.substring(R.getCharIndex());
11519
+ ze = !0, R.abort(), C = z(b.chunk) ? "" : C.substring(R.getCharIndex());
11515
11520
  }, this.resume = function() {
11516
- j.streamer._halted ? (Le = !1, j.streamer.parseChunk(C, !0)) : setTimeout(j.resume, 3);
11521
+ j.streamer._halted ? (ze = !1, j.streamer.parseChunk(C, !0)) : setTimeout(j.resume, 3);
11517
11522
  }, this.aborted = function() {
11518
11523
  return V;
11519
11524
  }, this.abort = function() {
@@ -11540,23 +11545,23 @@ function Fd() {
11540
11545
  ` && R !== "\r" && R !== `\r
11541
11546
  ` && (R = `
11542
11547
  `);
11543
- var O = 0, Le = !1;
11548
+ var O = 0, ze = !1;
11544
11549
  this.parse = function(V, G, F) {
11545
11550
  if (typeof V != "string") throw new Error("Input must be a string");
11546
11551
  var Ue = V.length, le = C.length, ve = R.length, it = k.length, X = z(S), U = [], me = [], A = [], he = O = 0;
11547
- if (!V) return ze();
11552
+ if (!V) return _e();
11548
11553
  if (ae || ae !== !1 && V.indexOf(j) === -1) {
11549
11554
  for (var ye = V.split(R), se = 0; se < ye.length; se++) {
11550
11555
  if (A = ye[se], O += A.length, se !== ye.length - 1) O += R.length;
11551
- else if (F) return ze();
11556
+ else if (F) return _e();
11552
11557
  if (!k || A.substring(0, it) !== k) {
11553
11558
  if (X) {
11554
- if (U = [], Rt(A.split(C)), ct(), Le) return ze();
11559
+ if (U = [], Rt(A.split(C)), ct(), ze) return _e();
11555
11560
  } else Rt(A.split(C));
11556
- if (_ && _ <= se) return U = U.slice(0, _), ze(!0);
11561
+ if (_ && _ <= se) return U = U.slice(0, _), _e(!0);
11557
11562
  }
11558
11563
  }
11559
- return ze();
11564
+ return _e();
11560
11565
  }
11561
11566
  for (var oe = V.indexOf(C, O), K = V.indexOf(R, O), st = new RegExp(y(fe) + y(j), "g"), B = V.indexOf(j, O); ; ) if (V[O] === j) for (B = O, O++; ; ) {
11562
11567
  if ((B = V.indexOf(j, B + 1)) === -1) return F || me.push({ type: "Quotes", code: "MissingQuotes", message: "Quoted field unterminated", row: U.length, index: O }), ht();
@@ -11570,21 +11575,21 @@ function Fd() {
11570
11575
  break;
11571
11576
  }
11572
11577
  if (ue = Xt(K), V.substring(B + 1 + ue, B + 1 + ue + ve) === R) {
11573
- if (A.push(V.substring(O, B).replace(st, j)), hi(B + 1 + ue + ve), oe = V.indexOf(C, O), B = V.indexOf(j, O), X && (ct(), Le)) return ze();
11574
- if (_ && U.length >= _) return ze(!0);
11578
+ if (A.push(V.substring(O, B).replace(st, j)), hi(B + 1 + ue + ve), oe = V.indexOf(C, O), B = V.indexOf(j, O), X && (ct(), ze)) return _e();
11579
+ if (_ && U.length >= _) return _e(!0);
11575
11580
  break;
11576
11581
  }
11577
11582
  me.push({ type: "Quotes", code: "InvalidQuotes", message: "Trailing quote on quoted field is malformed", row: U.length, index: O }), B++;
11578
11583
  }
11579
11584
  }
11580
11585
  else if (k && A.length === 0 && V.substring(O, O + it) === k) {
11581
- if (K === -1) return ze();
11586
+ if (K === -1) return _e();
11582
11587
  O = K + ve, K = V.indexOf(R, O), oe = V.indexOf(C, O);
11583
11588
  } else if (oe !== -1 && (oe < K || K === -1)) A.push(V.substring(O, oe)), O = oe + le, oe = V.indexOf(C, O);
11584
11589
  else {
11585
11590
  if (K === -1) break;
11586
- if (A.push(V.substring(O, K)), hi(K + ve), X && (ct(), Le)) return ze();
11587
- if (_ && U.length >= _) return ze(!0);
11591
+ if (A.push(V.substring(O, K)), hi(K + ve), X && (ct(), ze)) return _e();
11592
+ if (_ && U.length >= _) return _e(!0);
11588
11593
  }
11589
11594
  return ht();
11590
11595
  function Rt(xe) {
@@ -11595,33 +11600,33 @@ function Fd() {
11595
11600
  return Ne = xe !== -1 && (xe = V.substring(B + 1, xe)) && xe.trim() === "" ? xe.length : Ne;
11596
11601
  }
11597
11602
  function ht(xe) {
11598
- return F || (xe === void 0 && (xe = V.substring(O)), A.push(xe), O = Ue, Rt(A), X && ct()), ze();
11603
+ return F || (xe === void 0 && (xe = V.substring(O)), A.push(xe), O = Ue, Rt(A), X && ct()), _e();
11599
11604
  }
11600
11605
  function hi(xe) {
11601
11606
  O = xe, Rt(A), A = [], K = V.indexOf(R, O);
11602
11607
  }
11603
- function ze(xe) {
11608
+ function _e(xe) {
11604
11609
  if (b.header && !G && U.length && !Je) {
11605
11610
  var Ne = U[0], wt = /* @__PURE__ */ Object.create(null), is = new Set(Ne);
11606
- let $o = !1;
11611
+ let Wo = !1;
11607
11612
  for (let Jt = 0; Jt < Ne.length; Jt++) {
11608
11613
  let dt = c(Ne[Jt]);
11609
11614
  if (wt[dt = z(b.transformHeader) ? b.transformHeader(dt, Jt) : dt]) {
11610
- let ci, Wo = wt[dt];
11611
- for (; ci = dt + "_" + Wo, Wo++, is.has(ci); ) ;
11612
- is.add(ci), Ne[Jt] = ci, wt[dt]++, $o = !0, (Ge = Ge === null ? {} : Ge)[ci] = dt;
11615
+ let ci, jo = wt[dt];
11616
+ for (; ci = dt + "_" + jo, jo++, is.has(ci); ) ;
11617
+ is.add(ci), Ne[Jt] = ci, wt[dt]++, Wo = !0, (Ge = Ge === null ? {} : Ge)[ci] = dt;
11613
11618
  } else wt[dt] = 1, Ne[Jt] = dt;
11614
11619
  is.add(dt);
11615
11620
  }
11616
- $o && console.warn("Duplicate headers found and renamed."), Je = !0;
11621
+ Wo && console.warn("Duplicate headers found and renamed."), Je = !0;
11617
11622
  }
11618
- return { data: U, errors: me, meta: { delimiter: C, linebreak: R, aborted: Le, truncated: !!xe, cursor: he + (G || 0), renamedHeaders: Ge } };
11623
+ return { data: U, errors: me, meta: { delimiter: C, linebreak: R, aborted: ze, truncated: !!xe, cursor: he + (G || 0), renamedHeaders: Ge } };
11619
11624
  }
11620
11625
  function ct() {
11621
- S(ze()), U = [], me = [];
11626
+ S(_e()), U = [], me = [];
11622
11627
  }
11623
11628
  }, this.abort = function() {
11624
- Le = !0;
11629
+ ze = !0;
11625
11630
  }, this.getCharIndex = function() {
11626
11631
  return O;
11627
11632
  };
@@ -11685,11 +11690,11 @@ function Fd() {
11685
11690
  }
11686
11691
  })(), new RegExp(y(ae), "g"));
11687
11692
  if (typeof b == "string" && (b = JSON.parse(b)), Array.isArray(b)) {
11688
- if (!b.length || Array.isArray(b[0])) return Le(null, b, Je);
11689
- if (typeof b[0] == "object") return Le(j || Object.keys(b[0]), b, Je);
11690
- } else if (typeof b == "object") return typeof b.data == "string" && (b.data = JSON.parse(b.data)), Array.isArray(b.data) && (b.fields || (b.fields = b.meta && b.meta.fields || j), b.fields || (b.fields = Array.isArray(b.data[0]) ? b.fields : typeof b.data[0] == "object" ? Object.keys(b.data[0]) : []), Array.isArray(b.data[0]) || typeof b.data[0] == "object" || (b.data = [b.data])), Le(b.fields || [], b.data || [], Je);
11693
+ if (!b.length || Array.isArray(b[0])) return ze(null, b, Je);
11694
+ if (typeof b[0] == "object") return ze(j || Object.keys(b[0]), b, Je);
11695
+ } else if (typeof b == "object") return typeof b.data == "string" && (b.data = JSON.parse(b.data)), Array.isArray(b.data) && (b.fields || (b.fields = b.meta && b.meta.fields || j), b.fields || (b.fields = Array.isArray(b.data[0]) ? b.fields : typeof b.data[0] == "object" ? Object.keys(b.data[0]) : []), Array.isArray(b.data[0]) || typeof b.data[0] == "object" || (b.data = [b.data])), ze(b.fields || [], b.data || [], Je);
11691
11696
  throw new Error("Unable to serialize unrecognized input");
11692
- function Le(G, F, Ue) {
11697
+ function ze(G, F, Ue) {
11693
11698
  var le = "", ve = (typeof G == "string" && (G = JSON.parse(G)), typeof F == "string" && (F = JSON.parse(F)), Array.isArray(G) && 0 < G.length), it = !Array.isArray(F[0]);
11694
11699
  if (ve && k) {
11695
11700
  for (var X = 0; X < G.length; X++) 0 < X && (le += S), le += V(G[X], X);
@@ -11742,8 +11747,8 @@ function Fd() {
11742
11747
  } else if (fe === "skip") return void S();
11743
11748
  }
11744
11749
  var O = j.instanceConfig.complete;
11745
- j.instanceConfig.complete = function(Le) {
11746
- z(O) && O(Le, j.file, j.inputElem), S();
11750
+ j.instanceConfig.complete = function(ze) {
11751
+ z(O) && O(ze, j.file, j.inputElem), S();
11747
11752
  }, h.parse(j.file, j.instanceConfig);
11748
11753
  }
11749
11754
  }
@@ -11757,9 +11762,9 @@ function Fd() {
11757
11762
  }(Vi)), Vi.exports;
11758
11763
  }
11759
11764
  var Ld = Fd();
11760
- const vo = /* @__PURE__ */ Ca(Ld);
11765
+ const yo = /* @__PURE__ */ Ca(Ld);
11761
11766
  function zd(r) {
11762
- const e = vo.parse(r, { header: !1, skipEmptyLines: !0 }), t = e.errors.filter((i) => i.code !== "UndetectableDelimiter");
11767
+ const e = yo.parse(r, { header: !1, skipEmptyLines: !0 }), t = e.errors.filter((i) => i.code !== "UndetectableDelimiter");
11763
11768
  if (t.length > 0)
11764
11769
  throw new Error(`CSV parse error: ${t[0].message}`);
11765
11770
  return e.data;
@@ -11772,13 +11777,13 @@ async function Od(r) {
11772
11777
  throw _d && console.warn("JSON Import Error - File contents is invalid JSON", e), new Error("Invalid JSON format");
11773
11778
  }
11774
11779
  }
11775
- const yr = process.env.NODE_ENV === "development", Ad = function(r) {
11780
+ const Cr = process.env.NODE_ENV === "development", Ad = function(r) {
11776
11781
  const t = this.dependencyRegistry.lookup("XLSX");
11777
11782
  if (!t)
11778
- return yr && console.warn("XLSX library not found in dependency registry"), [];
11783
+ return Cr && console.warn("XLSX library not found in dependency registry"), [];
11779
11784
  const i = t.read(r);
11780
11785
  if (!i.SheetNames || i.SheetNames.length === 0)
11781
- return yr && console.warn("XLSX workbook contains no sheets"), [];
11786
+ return Cr && console.warn("XLSX workbook contains no sheets"), [];
11782
11787
  const s = i.Sheets[i.SheetNames[0]];
11783
11788
  return t.utils.sheet_to_json(s, { header: 1 });
11784
11789
  }, Pd = {
@@ -11944,7 +11949,7 @@ const yr = process.env.NODE_ENV === "development", Ad = function(r) {
11944
11949
  };
11945
11950
  bi.moduleName = "import", bi.importers = Pd;
11946
11951
  let As = bi;
11947
- const Mo = class Mo extends I {
11952
+ const Fo = class Fo extends I {
11948
11953
  constructor(e) {
11949
11954
  super(e), this.eventMap = {
11950
11955
  // cell events
@@ -12126,8 +12131,8 @@ const Mo = class Mo extends I {
12126
12131
  this.columnSubscribers[e] && (i instanceof Ti ? o = i.column.definition[e] : i instanceof Be && (o = i.definition[e]), o && o(t, s)), this.dispatchExternal(e, t, s);
12127
12132
  }
12128
12133
  };
12129
- Mo.moduleName = "interaction";
12130
- let Ps = Mo;
12134
+ Fo.moduleName = "interaction";
12135
+ let Ps = Fo;
12131
12136
  const Id = {
12132
12137
  keyBlock: function(r) {
12133
12138
  r.stopPropagation(), r.preventDefault();
@@ -12256,7 +12261,7 @@ const Id = {
12256
12261
  };
12257
12262
  Lt.moduleName = "keybindings", Lt.bindings = Hd, Lt.actions = Id;
12258
12263
  let Is = Lt;
12259
- const Fo = class Fo extends I {
12264
+ const Lo = class Lo extends I {
12260
12265
  constructor(e) {
12261
12266
  super(e), this.menuContainer = null, this.nestedMenuBlock = !1, this.currentComponent = null, this.rootPopup = null, this.columnSubscribers = {}, this.registerTableOption("rowContextMenu", !1), this.registerTableOption("rowClickMenu", !1), this.registerTableOption("rowDblClickMenu", !1), this.registerTableOption("groupContextMenu", !1), this.registerTableOption("groupClickMenu", !1), this.registerTableOption("groupDblClickMenu", !1), this.registerColumnOption("headerContextMenu"), this.registerColumnOption("headerClickMenu"), this.registerColumnOption("headerDblClickMenu"), this.registerColumnOption("headerMenu"), this.registerColumnOption("headerMenuIcon"), this.registerColumnOption("contextMenu"), this.registerColumnOption("clickMenu"), this.registerColumnOption("dblClickMenu");
12262
12267
  }
@@ -12379,9 +12384,9 @@ const Fo = class Fo extends I {
12379
12384
  }
12380
12385
  }
12381
12386
  };
12382
- Fo.moduleName = "menu";
12383
- let Hs = Fo;
12384
- const Lo = class Lo extends I {
12387
+ Lo.moduleName = "menu";
12388
+ let Hs = Lo;
12389
+ const zo = class zo extends I {
12385
12390
  constructor(e) {
12386
12391
  super(e), this.placeholderElement = this.createPlaceholderElement(), this.hoverElement = !1, this.checkTimeout = !1, this.checkPeriod = 250, this.moving = !1, this.toCol = !1, this.toColAfter = !1, this.startX = 0, this.autoScrollMargin = 40, this.autoScrollStep = 5, this.autoScrollTimeout = !1, this.touchMove = !1, this.moveHover = this.moveHover.bind(this), this.endMove = this.endMove.bind(this), this.registerTableOption("movableColumns", !1);
12387
12392
  }
@@ -12537,8 +12542,8 @@ const Lo = class Lo extends I {
12537
12542
  }, 1)));
12538
12543
  }
12539
12544
  };
12540
- Lo.moduleName = "moveColumn";
12541
- let Ns = Lo;
12545
+ zo.moduleName = "moveColumn";
12546
+ let Ns = zo;
12542
12547
  const Vd = {
12543
12548
  add: function(r, e, t) {
12544
12549
  return r && this.table.addRow(r.getData("")), !0;
@@ -12991,7 +12996,7 @@ const $d = {}, Wd = process.env.NODE_ENV === "development", ii = class ii extend
12991
12996
  };
12992
12997
  ii.moduleName = "mutator", ii.mutators = $d;
12993
12998
  let Bs = ii;
12994
- const zo = class zo extends I {
12999
+ const _o = class _o extends I {
12995
13000
  constructor(e) {
12996
13001
  super(e), this.element = null, this.size = 0, this.page = 1, this.count = 5, this.max = 1, this.remoteRowCountEstimate = null, this.initialLoad = !0, this.progressiveLoad = !1, this.dataChanging = !1, this.pageSizes = [], this.mode = "local", this.rowsUpdatedScheduled = !1, this.setPage = (t) => {
12997
13002
  if (typeof t == "string") {
@@ -13270,9 +13275,9 @@ const zo = class zo extends I {
13270
13275
  return e.data;
13271
13276
  }
13272
13277
  };
13273
- zo.moduleName = "page";
13274
- let $s = zo;
13275
- const Cr = process.env.NODE_ENV === "development", jd = {
13278
+ _o.moduleName = "page";
13279
+ let $s = _o;
13280
+ const Er = process.env.NODE_ENV === "development", jd = {
13276
13281
  cookie: function(r, e) {
13277
13282
  let t = document.cookie;
13278
13283
  const i = r + "-" + e, s = t.indexOf(i + "=");
@@ -13287,7 +13292,7 @@ const Cr = process.env.NODE_ENV === "development", jd = {
13287
13292
  try {
13288
13293
  return JSON.parse(n);
13289
13294
  } catch (a) {
13290
- return Cr && console.error("Failed to parse cookie data:", a), !1;
13295
+ return Er && console.error("Failed to parse cookie data:", a), !1;
13291
13296
  }
13292
13297
  },
13293
13298
  local: function(r, e) {
@@ -13297,7 +13302,7 @@ const Cr = process.env.NODE_ENV === "development", jd = {
13297
13302
  try {
13298
13303
  return JSON.parse(t);
13299
13304
  } catch (i) {
13300
- return Cr && console.error("Failed to parse localStorage data:", i), !1;
13305
+ return Er && console.error("Failed to parse localStorage data:", i), !1;
13301
13306
  }
13302
13307
  }
13303
13308
  }, Gd = {
@@ -13517,7 +13522,7 @@ const Cr = process.env.NODE_ENV === "development", jd = {
13517
13522
  };
13518
13523
  Ve.moduleName = "persistence", Ve.moduleInitOrder = -10, Ve.readers = jd, Ve.writers = Gd;
13519
13524
  let Ws = Ve;
13520
- const _o = class _o extends I {
13525
+ const Oo = class Oo extends I {
13521
13526
  constructor(e) {
13522
13527
  super(e), this.columnSubscribers = {}, this.registerTableOption("rowContextPopup", !1), this.registerTableOption("rowClickPopup", !1), this.registerTableOption("rowDblClickPopup", !1), this.registerTableOption("groupContextPopup", !1), this.registerTableOption("groupClickPopup", !1), this.registerTableOption("groupDblClickPopup", !1), this.registerColumnOption("headerContextPopup"), this.registerColumnOption("headerClickPopup"), this.registerColumnOption("headerDblClickPopup"), this.registerColumnOption("headerPopup"), this.registerColumnOption("headerPopupIcon"), this.registerColumnOption("contextPopup"), this.registerColumnOption("clickPopup"), this.registerColumnOption("dblClickPopup"), this.registerComponentFunction(
13523
13528
  "cell",
@@ -13637,9 +13642,9 @@ const _o = class _o extends I {
13637
13642
  }), this.dispatchExternal("popupOpened", t.getComponent());
13638
13643
  }
13639
13644
  };
13640
- _o.moduleName = "popup";
13641
- let js = _o;
13642
- const Er = process.env.NODE_ENV === "development", Oo = class Oo extends I {
13645
+ Oo.moduleName = "popup";
13646
+ let js = Oo;
13647
+ const xr = process.env.NODE_ENV === "development", Ao = class Ao extends I {
13643
13648
  constructor(e) {
13644
13649
  super(e), this.element = !1, this.manualBlock = !1, this.beforeprintEventHandler = null, this.afterprintEventHandler = null, this.registerTableOption("printAsHtml", !1), this.registerTableOption("printFormatter", !1), this.registerTableOption("printHeader", !1), this.registerTableOption("printFooter", !1), this.registerTableOption("printStyled", !0), this.registerTableOption("printRowRange", "visible"), this.registerTableOption("printConfig", {}), this.registerColumnOption("print"), this.registerColumnOption("titlePrint");
13645
13650
  }
@@ -13671,7 +13676,7 @@ const Er = process.env.NODE_ENV === "development", Oo = class Oo extends I {
13671
13676
  if (!this.manualBlock) {
13672
13677
  const e = this.table.modules.export;
13673
13678
  if (!e || typeof e.generateTable != "function") {
13674
- Er && console.error(
13679
+ xr && console.error(
13675
13680
  "Print Error - Export module not available, cannot generate print table."
13676
13681
  );
13677
13682
  return;
@@ -13695,7 +13700,7 @@ const Er = process.env.NODE_ENV === "development", Oo = class Oo extends I {
13695
13700
  printFullscreen(e, t, i) {
13696
13701
  const s = window.scrollX, o = window.scrollY, n = document.createElement("div"), a = document.createElement("div"), l = this.table.modules.export;
13697
13702
  if (!l || typeof l.generateTable != "function") {
13698
- Er && console.error(
13703
+ xr && console.error(
13699
13704
  "Print Error - Export module not available, cannot generate print table."
13700
13705
  );
13701
13706
  return;
@@ -13715,9 +13720,9 @@ const Er = process.env.NODE_ENV === "development", Oo = class Oo extends I {
13715
13720
  }
13716
13721
  }
13717
13722
  };
13718
- Oo.moduleName = "print";
13719
- let Gs = Oo;
13720
- const Ao = class Ao extends I {
13723
+ Ao.moduleName = "print";
13724
+ let Gs = Ao;
13725
+ const Po = class Po extends I {
13721
13726
  constructor(e) {
13722
13727
  super(e), this.data = !1, this.blocked = !1, this.origFuncs = {}, this.currentVersion = 0, this.registerTableOption("reactiveData", !1);
13723
13728
  }
@@ -13920,9 +13925,9 @@ const Ao = class Ao extends I {
13920
13925
  this.blocked === e && (this.blocked = !1);
13921
13926
  }
13922
13927
  };
13923
- Ao.moduleName = "reactiveData";
13924
- let Us = Ao;
13925
- const Po = class Po extends I {
13928
+ Po.moduleName = "reactiveData";
13929
+ let Us = Po;
13930
+ const Io = class Io extends I {
13926
13931
  constructor(e) {
13927
13932
  super(e), this.startColumn = !1, this.startX = !1, this.startWidth = !1, this.startColumnPinnedEnd = !1, this.latestX = !1, this.handle = null, this.initialNextColumn = null, this.nextColumn = null, this.initialized = !1, this.registerColumnOption("resizable", !0), this.registerTableOption("resizableColumnFit", !1), this.registerTableOption("resizableColumnGuide", !1);
13928
13933
  }
@@ -14113,9 +14118,9 @@ const Po = class Po extends I {
14113
14118
  a !== null && (this.startX = a, this.latestX = this.startX, this.startWidth = t.getWidth(), this.startColumnPinnedEnd = this.isPinnedEnd(t), document.body.addEventListener("mousemove", o), document.body.addEventListener("mouseup", n), i.addEventListener("touchmove", o, { passive: !0 }), i.addEventListener("touchend", n));
14114
14119
  }
14115
14120
  };
14116
- Po.moduleName = "resizeColumns";
14117
- let Ks = Po;
14118
- const Io = class Io extends I {
14121
+ Io.moduleName = "resizeColumns";
14122
+ let Ks = Io;
14123
+ const Ho = class Ho extends I {
14119
14124
  constructor(e) {
14120
14125
  super(e), this.startRow = !1, this.startY = !1, this.startHeight = !1, this.handle = null, this.prevHandle = null, this.registerTableOption("resizableRows", !1), this.registerTableOption("resizableRowGuide", !1);
14121
14126
  }
@@ -14191,9 +14196,9 @@ const Io = class Io extends I {
14191
14196
  }), i.addEventListener("touchend", n));
14192
14197
  }
14193
14198
  };
14194
- Io.moduleName = "resizeRows";
14195
- let qs = Io;
14196
- const Ho = class Ho extends I {
14199
+ Ho.moduleName = "resizeRows";
14200
+ let qs = Ho;
14201
+ const No = class No extends I {
14197
14202
  constructor(e) {
14198
14203
  super(e), this.pendingRedraw = !1, this.pendingForceRedraw = !1, this.boundHandleTableInitialized = this.handleTableInitialized.bind(this), this.binding = !1, this.visibilityObserver = !1, this.resizeObserver = !1, this.containerObserver = !1, this.tableHeight = 0, this.tableWidth = 0, this.containerHeight = 0, this.containerWidth = 0, this.autoResize = !1, this.visible = !1, this.initialized = !1, this.initialRedraw = !1, this.registerTableOption("autoResize", !0);
14199
14204
  }
@@ -14271,8 +14276,8 @@ const Ho = class Ho extends I {
14271
14276
  this.flushPendingRedraw();
14272
14277
  }
14273
14278
  };
14274
- Ho.moduleName = "resizeTable";
14275
- let Xs = Ho;
14279
+ No.moduleName = "resizeTable";
14280
+ let Xs = No;
14276
14281
  function Ud(r) {
14277
14282
  const e = document.createElement("div"), t = r.getRow()._row.modules.responsiveLayout;
14278
14283
  e.classList.add("tabulator-responsive-collapse-toggle"), e.setAttribute("role", "button"), e.setAttribute("aria-label", "Toggle row details"), e.innerHTML = `<svg class='tabulator-responsive-collapse-toggle-open' viewBox="0 0 24 24" aria-hidden="true">
@@ -14471,7 +14476,7 @@ function Xd(r, e, t) {
14471
14476
  const a = typeof r.getRow == "function" ? r.getRow() : null;
14472
14477
  if (a === null)
14473
14478
  return "";
14474
- if (a instanceof go) {
14479
+ if (a instanceof bo) {
14475
14480
  const l = e.disabled?.(a.getData()) ?? !1;
14476
14481
  i.disabled = l, t(() => {
14477
14482
  const h = a._row.element, c = r.getElement();
@@ -14492,7 +14497,7 @@ const Jd = {
14492
14497
  rowSelection: Xd
14493
14498
  }
14494
14499
  }
14495
- }, xr = process.env.NODE_ENV === "development", Gi = class Gi extends I {
14500
+ }, Rr = process.env.NODE_ENV === "development", Gi = class Gi extends I {
14496
14501
  // hold header select element (cx-checkbox)
14497
14502
  constructor(e) {
14498
14503
  super(e), this.selecting = !1, this.lastClickedRow = !1, this.selectPrev = [], this.selectedRows = [], this.headerCheckboxElement = null, this.registerTableOption("selectableRows", "highlight"), this.registerTableOption("selectableRowsRangeMode", "drag"), this.registerTableOption("selectableRowsRollingSelection", !0), this.registerTableOption("selectableRowsPersistence", !0), this.registerTableOption(
@@ -14629,7 +14634,7 @@ const Jd = {
14629
14634
  if (o) {
14630
14635
  if (this.selectedRows.indexOf(o) === -1)
14631
14636
  return o.getElement().classList.add("tabulator-selected"), o.modules.select || (o.modules.select = {}), o.modules.select.selected = !0, o.modules.select.checkboxEl && (o.modules.select.checkboxEl.checked = !0), this.selectedRows.push(o), this.table.options.dataTreeSelectPropagate && this.childRowSelection(o, !0), this.dispatchExternal("rowSelected", o.getComponent()), this._rowSelectionChanged(t, [o], []), o;
14632
- } else !t && xr && console.warn(
14637
+ } else !t && Rr && console.warn(
14633
14638
  "Selection Error - No such row found, ignoring selection:" + e
14634
14639
  );
14635
14640
  return !1;
@@ -14666,7 +14671,7 @@ const Jd = {
14666
14671
  if (i) {
14667
14672
  if (s = this.selectedRows.findIndex((n) => n === i), s > -1)
14668
14673
  return o = i.getElement(), o && o.classList.remove("tabulator-selected"), i.modules.select || (i.modules.select = {}), i.modules.select.selected = !1, i.modules.select.checkboxEl && (i.modules.select.checkboxEl.checked = !1), this.selectedRows.splice(s, 1), this.table.options.dataTreeSelectPropagate && this.childRowSelection(i, !1), this.dispatchExternal("rowDeselected", i.getComponent()), this._rowSelectionChanged(t, [], [i]), i;
14669
- } else !t && xr && console.warn(
14674
+ } else !t && Rr && console.warn(
14670
14675
  "Deselection Error - No such row found, ignoring selection:" + e
14671
14676
  );
14672
14677
  return !1;
@@ -14896,8 +14901,8 @@ class ru {
14896
14901
  this._range.destroyedGuard("remove") && this._range.destroy(!0);
14897
14902
  }
14898
14903
  }
14899
- const Rr = process.env.NODE_ENV === "development";
14900
- class nu extends Fe {
14904
+ const Sr = process.env.NODE_ENV === "development";
14905
+ class nu extends Le {
14901
14906
  constructor(e, t, i, s) {
14902
14907
  super(e), this.rangeManager = t, this.element = null, this.initialized = !1, this.initializing = {
14903
14908
  end: !1,
@@ -15027,7 +15032,7 @@ class nu extends Fe {
15027
15032
  end: null,
15028
15033
  start: null
15029
15034
  };
15030
- return t.length ? (i.start = t[0], i.end = t.at(-1)) : Rr && console.warn("No bounds defined on range"), i;
15035
+ return t.length ? (i.start = t[0], i.end = t.at(-1)) : Sr && console.warn("No bounds defined on range"), i;
15031
15036
  }
15032
15037
  getComponent() {
15033
15038
  return this.component ??= new ru(this), this.component;
@@ -15036,7 +15041,7 @@ class nu extends Fe {
15036
15041
  this.destroyed = !0, this.element && this.element.remove(), e && this.rangeManager.rangeRemoved(this), this.initialized && this.dispatchExternal("rangeRemoved", this.getComponent());
15037
15042
  }
15038
15043
  destroyedGuard(e) {
15039
- return this.destroyed && Rr && console.warn(
15044
+ return this.destroyed && Sr && console.warn(
15040
15045
  "You cannot call the " + e + " function on a destroyed range"
15041
15046
  ), !this.destroyed;
15042
15047
  }
@@ -15694,7 +15699,7 @@ function cu(r, e, t, i, s, o, n) {
15694
15699
  return (r === !0 || r === "true" || r === "True" || r === 1 ? 1 : 0) - (e === !0 || e === "true" || e === "True" || e === 1 ? 1 : 0);
15695
15700
  }
15696
15701
  const du = process.env.NODE_ENV === "development";
15697
- function yo(r, e, t, i, s, o, n) {
15702
+ function Co(r, e, t, i, s, o, n) {
15698
15703
  const { alignEmptyValues: a, format: l = "dd/MM/yyyy HH:mm:ss" } = n || {}, h = this.table.dependencyRegistry.lookup(
15699
15704
  ["luxon", "DateTime"],
15700
15705
  "DateTime"
@@ -15715,7 +15720,7 @@ function yo(r, e, t, i, s, o, n) {
15715
15720
  }
15716
15721
  function uu(r, e, t, i, s, o, n) {
15717
15722
  const a = n ?? {};
15718
- return a.format || (a.format = "dd/MM/yyyy"), yo.call(this, r, e, t, i, s, o, a);
15723
+ return a.format || (a.format = "dd/MM/yyyy"), Co.call(this, r, e, t, i, s, o, a);
15719
15724
  }
15720
15725
  function pu(r, e, t, i, s, o, n) {
15721
15726
  const a = (c) => c === null || typeof c > "u" || c === "", l = a(r) ? 0 : 1, h = a(e) ? 0 : 1;
@@ -15757,19 +15762,19 @@ function mu(r, e, t, i, s, o, n = {}) {
15757
15762
  }
15758
15763
  function gu(r, e, t, i, s, o, n) {
15759
15764
  const a = n ?? {}, l = a.format ? a : { ...a, format: "HH:mm" };
15760
- return yo.call(this, r, e, t, i, s, o, l);
15765
+ return Co.call(this, r, e, t, i, s, o, l);
15761
15766
  }
15762
15767
  const bu = {
15763
15768
  alphanum: lu,
15764
15769
  array: hu,
15765
15770
  boolean: cu,
15766
15771
  date: uu,
15767
- datetime: yo,
15772
+ datetime: Co,
15768
15773
  exists: pu,
15769
15774
  number: fu,
15770
15775
  string: mu,
15771
15776
  time: gu
15772
- }, Sr = process.env.NODE_ENV === "development", wu = {
15777
+ }, Dr = process.env.NODE_ENV === "development", wu = {
15773
15778
  asc: "ascending",
15774
15779
  desc: "descending",
15775
15780
  none: "none"
@@ -15808,7 +15813,7 @@ const bu = {
15808
15813
  let t = !1, i, s;
15809
15814
  switch (typeof e.definition.sorter) {
15810
15815
  case "string":
15811
- e.definition.sorter && Ut.sorters[e.definition.sorter] ? t = Ut.sorters[e.definition.sorter] : Sr && console.warn(
15816
+ e.definition.sorter && Ut.sorters[e.definition.sorter] ? t = Ut.sorters[e.definition.sorter] : Dr && console.warn(
15812
15817
  "Sort Error - No such sorter found: ",
15813
15818
  e.definition.sorter
15814
15819
  );
@@ -15818,7 +15823,7 @@ const bu = {
15818
15823
  break;
15819
15824
  }
15820
15825
  if (e.modules.sort = {
15821
- dir: ke.None,
15826
+ dir: Te.None,
15822
15827
  params: e.definition.sorterParams || {},
15823
15828
  sorter: t,
15824
15829
  startingDir: e.definition.headerSortStartingDir || "asc",
@@ -15849,20 +15854,20 @@ const bu = {
15849
15854
  this.table.options.headerSortElement || ""
15850
15855
  );
15851
15856
  }
15852
- e.titleHolderElement && e.titleHolderElement.appendChild(s), e.modules.sort.element = s, this.setColumnHeaderSortIcon(e, ke.None), this.table.options.headerSortClickElement === "icon" && s.addEventListener("mousedown", (o) => {
15857
+ e.titleHolderElement && e.titleHolderElement.appendChild(s), e.modules.sort.element = s, this.setColumnHeaderSortIcon(e, Te.None), this.table.options.headerSortClickElement === "icon" && s.addEventListener("mousedown", (o) => {
15853
15858
  o.stopPropagation();
15854
15859
  }), (this.table.options.headerSortClickElement === "icon" ? s : i).addEventListener("click", (o) => {
15855
- let n = ke.None, a = !1;
15860
+ let n = Te.None, a = !1;
15856
15861
  if (e.modules.sort) {
15857
15862
  if (e.modules.sort.tristate)
15858
- e.modules.sort.dir == ke.None ? n = e.modules.sort.startingDir : e.modules.sort.dir == e.modules.sort.startingDir ? n = e.modules.sort.dir == ke.Asc ? ke.Desc : ke.Asc : n = ke.None;
15863
+ e.modules.sort.dir == Te.None ? n = e.modules.sort.startingDir : e.modules.sort.dir == e.modules.sort.startingDir ? n = e.modules.sort.dir == Te.Asc ? Te.Desc : Te.Asc : n = Te.None;
15859
15864
  else
15860
15865
  switch (e.modules.sort.dir) {
15861
15866
  case "asc":
15862
- n = ke.Desc;
15867
+ n = Te.Desc;
15863
15868
  break;
15864
15869
  case "desc":
15865
- n = ke.Asc;
15870
+ n = Te.Asc;
15866
15871
  break;
15867
15872
  default:
15868
15873
  n = e.modules.sort.startingDir;
@@ -15906,13 +15911,13 @@ const bu = {
15906
15911
  Array.isArray(e) || (e = [{ column: e, dir: t }]), e.forEach((s) => {
15907
15912
  const o = this.table.columnManager?.findColumn(s.column);
15908
15913
  if (o) {
15909
- const n = o.modules.sort, a = s.dir ?? n?.startingDir ?? n?.dir ?? ke.Asc;
15914
+ const n = o.modules.sort, a = s.dir ?? n?.startingDir ?? n?.dir ?? Te.Asc;
15910
15915
  i.push({
15911
15916
  ...s,
15912
15917
  column: o,
15913
15918
  dir: a
15914
15919
  }), this.changed = !0;
15915
- } else Sr && console.warn(
15920
+ } else Dr && console.warn(
15916
15921
  "Sort Warning - Sort field does not exist and is being ignored: ",
15917
15922
  s.column
15918
15923
  );
@@ -15960,7 +15965,7 @@ const bu = {
15960
15965
  // clear sort arrows on columns
15961
15966
  clearColumnHeaders() {
15962
15967
  this.table.columnManager?.getRealColumns().forEach((e) => {
15963
- e.modules.sort && (e.modules.sort.dir = ke.None, e.getElement().setAttribute("aria-sort", "none"), this.setColumnHeaderSortIcon(e, ke.None));
15968
+ e.modules.sort && (e.modules.sort.dir = Te.None, e.getElement().setAttribute("aria-sort", "none"), this.setColumnHeaderSortIcon(e, Te.None));
15964
15969
  });
15965
15970
  }
15966
15971
  // set the column header sort direction
@@ -16001,7 +16006,7 @@ const bu = {
16001
16006
  }
16002
16007
  // process individual rows for a sort function on active data
16003
16008
  _sortRow(e, t, i, s, o) {
16004
- const n = s === ke.Asc ? e : t, a = s === ke.Asc ? t : e;
16009
+ const n = s === Te.Asc ? e : t, a = s === Te.Asc ? t : e;
16005
16010
  let l = i.getFieldValue(n.getData()), h = i.getFieldValue(a.getData());
16006
16011
  l = l ?? "", h = h ?? "";
16007
16012
  const c = n.getComponent(), d = a.getComponent(), p = i.modules.sort.sorter;
@@ -16061,7 +16066,7 @@ class vu {
16061
16066
  this.columnCount = e;
16062
16067
  }
16063
16068
  }
16064
- class Rn {
16069
+ class Sn {
16065
16070
  constructor(e) {
16066
16071
  return this._sheet = e, new Proxy(this, {
16067
16072
  get: function(t, i) {
@@ -16110,7 +16115,7 @@ class Rn {
16110
16115
  return this._sheet.setColumns(e);
16111
16116
  }
16112
16117
  }
16113
- class Dr extends Fe {
16118
+ class kr extends Le {
16114
16119
  constructor(e, t) {
16115
16120
  super(e.table), this.spreadsheetManager = e, this.definition = t, this.title = this.definition.title || "", this.key = this.definition.key || this.definition.title || "", this.rowCount = this.definition.rows, this.columnCount = this.definition.columns, this.data = this.definition.data || [], this.element = null, this.isActive = !1, this.grid = new vu(this.columnCount, this.rowCount), this.defaultColumnDefinition = {
16116
16121
  headerHozAlign: "center",
@@ -16167,7 +16172,7 @@ class Dr extends Fe {
16167
16172
  }
16168
16173
  // #region Helper Functions
16169
16174
  getComponent() {
16170
- return new Rn(this);
16175
+ return new Sn(this);
16171
16176
  }
16172
16177
  getDefinition() {
16173
16178
  return {
@@ -16215,7 +16220,7 @@ class Dr extends Fe {
16215
16220
  }
16216
16221
  // #endregion
16217
16222
  }
16218
- const St = process.env.NODE_ENV === "development", No = class No extends I {
16223
+ const St = process.env.NODE_ENV === "development", Vo = class Vo extends I {
16219
16224
  constructor(e) {
16220
16225
  super(e), this.sheets = [], this.element = null, this.registerTableOption("spreadsheet", !1), this.registerTableOption("spreadsheetRows", 50), this.registerTableOption("spreadsheetColumns", 50), this.registerTableOption("spreadsheetColumnDefinition", {}), this.registerTableOption("spreadsheetOutputFull", !1), this.registerTableOption("spreadsheetData", !1), this.registerTableOption("spreadsheetSheets", !1), this.registerTableOption("spreadsheetSheetTabs", !1), this.registerTableOption("spreadsheetSheetTabsElement", !1), this.registerTableFunction("setSheets", this.setSheets.bind(this)), this.registerTableFunction("addSheet", this.addSheet.bind(this)), this.registerTableFunction("getSheets", this.getSheets.bind(this)), this.registerTableFunction(
16221
16226
  "getSheetDefinitions",
@@ -16304,7 +16309,7 @@ Data: `,
16304
16309
  columns: this.options("spreadsheetColumns") || 50,
16305
16310
  rows: this.options("spreadsheetRows") || 50,
16306
16311
  ...e
16307
- }, i = new Dr(this, t);
16312
+ }, i = new kr(this, t);
16308
16313
  return this.sheets.push(i), this.element && i.element && this.element.appendChild(i.element), i;
16309
16314
  }
16310
16315
  removeSheet(e) {
@@ -16313,7 +16318,7 @@ Data: `,
16313
16318
  this.sheets.length > 1 ? t > -1 && (this.sheets.splice(t, 1), e.destroy(), this.activeSheet === e && (i = this.sheets[t - 1] || this.sheets[0], i ? this.loadSheet(i) : this.activeSheet = null)) : St && console.warn("Unable to remove sheet, at least one sheet must be active");
16314
16319
  }
16315
16320
  lookupSheet(e) {
16316
- return e ? e instanceof Dr ? e : e instanceof Rn ? e._sheet : this.sheets.find((t) => t.key === e) ?? null : this.activeSheet;
16321
+ return e ? e instanceof kr ? e : e instanceof Sn ? e._sheet : this.sheets.find((t) => t.key === e) ?? null : this.activeSheet;
16317
16322
  }
16318
16323
  /**
16319
16324
  * Public Functions
@@ -16370,9 +16375,9 @@ Data: `,
16370
16375
  return t && this.loadSheet(t), !1;
16371
16376
  }
16372
16377
  };
16373
- No.moduleName = "spreadsheet";
16374
- let Qs = No;
16375
- const Vo = class Vo extends I {
16378
+ Vo.moduleName = "spreadsheet";
16379
+ let Qs = Vo;
16380
+ const Bo = class Bo extends I {
16376
16381
  constructor(e) {
16377
16382
  super(e), this.tooltipSubscriber = !1, this.headerSubscriber = !1, this.timeout = null, this.popupInstance = null, this.registerTableOption("tooltipDelay", 300), this.registerColumnOption("tooltip"), this.registerColumnOption("headerTooltip");
16378
16383
  }
@@ -16425,12 +16430,12 @@ const Vo = class Vo extends I {
16425
16430
  }), this.dispatchExternal("tooltipOpened", t.getComponent()));
16426
16431
  }
16427
16432
  };
16428
- Vo.moduleName = "tooltip";
16429
- let eo = Vo;
16430
- function De(r) {
16433
+ Bo.moduleName = "tooltip";
16434
+ let eo = Bo;
16435
+ function ke(r) {
16431
16436
  return r === "" || r === null || r === void 0;
16432
16437
  }
16433
- function kr(r) {
16438
+ function Tr(r) {
16434
16439
  return Number.isFinite(Number(r));
16435
16440
  }
16436
16441
  function ls(r, e) {
@@ -16477,19 +16482,19 @@ function xu(r, e) {
16477
16482
  const h = new Date(i, s - 1, o, n, a, l);
16478
16483
  return h.getFullYear() === i && h.getMonth() === s - 1 && h.getDate() === o;
16479
16484
  }
16480
- const Co = {
16485
+ const Eo = {
16481
16486
  // must be alphanumeric
16482
16487
  alphanumeric(r) {
16483
- return De(r) ? !0 : /^[a-z0-9]+$/i.test(String(r));
16488
+ return ke(r) ? !0 : /^[a-z0-9]+$/i.test(String(r));
16484
16489
  },
16485
16490
  // must be a boolean (or the strings 'true' / 'false')
16486
16491
  boolean(r) {
16487
- return De(r) ? !0 : typeof r == "boolean" || r === "true" || r === "false";
16492
+ return ke(r) ? !0 : typeof r == "boolean" || r === "true" || r === "false";
16488
16493
  },
16489
16494
  // must be a parsable date; optional inclusive range via { starts, ends }
16490
16495
  // and/or an exact shape via { format } (e.g. 'MM/DD/YYYY')
16491
16496
  date(r, e) {
16492
- if (De(r))
16497
+ if (ke(r))
16493
16498
  return !0;
16494
16499
  if (e && typeof e == "object" && e.format !== void 0 && !xu(String(r), e.format))
16495
16500
  return !1;
@@ -16512,52 +16517,52 @@ const Co = {
16512
16517
  },
16513
16518
  // ends with value (legacy string-suffix rule)
16514
16519
  ends(r, e) {
16515
- return De(r) ? !0 : String(r).toLowerCase().endsWith(String(e).toLowerCase());
16520
+ return ke(r) ? !0 : String(r).toLowerCase().endsWith(String(e).toLowerCase());
16516
16521
  },
16517
16522
  // is float; optional range via { min, max }
16518
16523
  float(r, e) {
16519
- if (De(r))
16524
+ if (ke(r))
16520
16525
  return !0;
16521
16526
  const t = Number(r);
16522
- return kr(r) && t % 1 !== 0 && ls(r, e);
16527
+ return Tr(r) && t % 1 !== 0 && ls(r, e);
16523
16528
  },
16524
16529
  // in provided value list
16525
16530
  in(r, e) {
16526
- if (De(r))
16531
+ if (ke(r))
16527
16532
  return !0;
16528
16533
  const t = typeof e == "string" ? e.split("|") : e;
16529
16534
  return Array.isArray(t) && t.includes(r);
16530
16535
  },
16531
16536
  // is integer; optional range via { min, max }
16532
16537
  integer(r, e) {
16533
- if (De(r))
16538
+ if (ke(r))
16534
16539
  return !0;
16535
16540
  const t = Number(r);
16536
- return kr(r) && Math.floor(t) === t && ls(r, e);
16541
+ return Tr(r) && Math.floor(t) === t && ls(r, e);
16537
16542
  },
16538
16543
  // maximum value (legacy standalone rule; prefer numeric/integer { max })
16539
16544
  max(r, e) {
16540
- return De(r) ? !0 : Number.parseFloat(String(r)) <= Number(e);
16545
+ return ke(r) ? !0 : Number.parseFloat(String(r)) <= Number(e);
16541
16546
  },
16542
16547
  // maximum string length (legacy standalone rule; prefer string { maxLength })
16543
16548
  maxLength(r, e) {
16544
- return De(r) ? !0 : String(r).length <= Number(e);
16549
+ return ke(r) ? !0 : String(r).length <= Number(e);
16545
16550
  },
16546
16551
  // minimum value (legacy standalone rule; prefer numeric/integer { min })
16547
16552
  min(r, e) {
16548
- return De(r) ? !0 : Number.parseFloat(String(r)) >= Number(e);
16553
+ return ke(r) ? !0 : Number.parseFloat(String(r)) >= Number(e);
16549
16554
  },
16550
16555
  // minimum string length (legacy standalone rule; prefer string { minLength })
16551
16556
  minLength(r, e) {
16552
- return De(r) ? !0 : String(r).length >= Number(e);
16557
+ return ke(r) ? !0 : String(r).length >= Number(e);
16553
16558
  },
16554
16559
  // must be a number; optional range via { min, max }
16555
16560
  numeric(r, e) {
16556
- return De(r) ? !0 : !Number.isNaN(Number(r)) && ls(r, e);
16561
+ return ke(r) ? !0 : !Number.isNaN(Number(r)) && ls(r, e);
16557
16562
  },
16558
16563
  // must match provided regex
16559
16564
  regex(r, e) {
16560
- if (De(r))
16565
+ if (ke(r))
16561
16566
  return !0;
16562
16567
  let t;
16563
16568
  e instanceof RegExp ? t = e : e === void 0 ? t = "" : t = String(e);
@@ -16569,15 +16574,15 @@ const Co = {
16569
16574
  },
16570
16575
  // must have a value
16571
16576
  required(r) {
16572
- return !De(r);
16577
+ return !ke(r);
16573
16578
  },
16574
16579
  // starts with value (legacy string-prefix rule)
16575
16580
  starts(r, e) {
16576
- return De(r) ? !0 : String(r).toLowerCase().startsWith(String(e).toLowerCase());
16581
+ return ke(r) ? !0 : String(r).toLowerCase().startsWith(String(e).toLowerCase());
16577
16582
  },
16578
16583
  // must be a string; optional length constraints via { minLength, maxLength }
16579
16584
  string(r, e) {
16580
- if (De(r))
16585
+ if (ke(r))
16581
16586
  return !0;
16582
16587
  if (!Number.isNaN(Number(r)))
16583
16588
  return !1;
@@ -16588,33 +16593,33 @@ const Co = {
16588
16593
  },
16589
16594
  // value must be unique within its column (column values via context)
16590
16595
  unique(r, e, t) {
16591
- return De(r) || !t?.columnValues ? !0 : !t.columnValues.some(
16596
+ return ke(r) || !t?.columnValues ? !0 : !t.columnValues.some(
16592
16597
  (i) => i === r
16593
16598
  );
16594
16599
  }
16595
16600
  };
16596
- function _e(r) {
16601
+ function Oe(r) {
16597
16602
  return function(e, t, i) {
16598
- return Co[r](t, i);
16603
+ return Eo[r](t, i);
16599
16604
  };
16600
16605
  }
16601
16606
  const Ru = {
16602
- alphanumeric: _e("alphanumeric"),
16603
- boolean: _e("boolean"),
16604
- date: _e("date"),
16605
- ends: _e("ends"),
16606
- float: _e("float"),
16607
- in: _e("in"),
16608
- integer: _e("integer"),
16609
- max: _e("max"),
16610
- maxLength: _e("maxLength"),
16611
- min: _e("min"),
16612
- minLength: _e("minLength"),
16613
- numeric: _e("numeric"),
16614
- regex: _e("regex"),
16615
- required: _e("required"),
16616
- starts: _e("starts"),
16617
- string: _e("string"),
16607
+ alphanumeric: Oe("alphanumeric"),
16608
+ boolean: Oe("boolean"),
16609
+ date: Oe("date"),
16610
+ ends: Oe("ends"),
16611
+ float: Oe("float"),
16612
+ in: Oe("in"),
16613
+ integer: Oe("integer"),
16614
+ max: Oe("max"),
16615
+ maxLength: Oe("maxLength"),
16616
+ min: Oe("min"),
16617
+ minLength: Oe("minLength"),
16618
+ numeric: Oe("numeric"),
16619
+ regex: Oe("regex"),
16620
+ required: Oe("required"),
16621
+ starts: Oe("starts"),
16622
+ string: Oe("string"),
16618
16623
  // value must be unique in this column; reads sibling rows from the table,
16619
16624
  // which is why it stays main-thread-only here.
16620
16625
  unique(r, e, t) {
@@ -16622,7 +16627,7 @@ const Ru = {
16622
16627
  return this.table.rowManager?.rows.forEach((n) => {
16623
16628
  const a = n.getData();
16624
16629
  a !== i && o.push(s.getFieldValue(a));
16625
- }), Co.unique(e, t, { columnValues: o });
16630
+ }), Eo.unique(e, t, { columnValues: o });
16626
16631
  }
16627
16632
  };
16628
16633
  function Su(r) {
@@ -16636,7 +16641,7 @@ function Su(r) {
16636
16641
  const Du = "cx-validation-request", ku = "cx-validation-response";
16637
16642
  let Dt, Tu = 0;
16638
16643
  const Si = /* @__PURE__ */ new Map();
16639
- function Tr() {
16644
+ function Mr() {
16640
16645
  Si.forEach(
16641
16646
  (r) => r.reject(new Error("Validation worker failed"))
16642
16647
  ), Si.clear(), Dt?.terminate(), Dt = void 0;
@@ -16647,9 +16652,9 @@ function Mu() {
16647
16652
  return;
16648
16653
  const { done: e, id: t, results: i } = r.data.payload, s = Si.get(t);
16649
16654
  s && (s.accumulatedResults.push(...i), s.onChunk?.(i), e && (Si.delete(t), s.resolve(s.accumulatedResults)));
16650
- }), Dt.addEventListener("error", Tr), Dt.addEventListener("messageerror", Tr)), Dt;
16655
+ }), Dt.addEventListener("error", Mr), Dt.addEventListener("messageerror", Mr)), Dt;
16651
16656
  }
16652
- function Sn(r, e) {
16657
+ function Dn(r, e) {
16653
16658
  return new Promise((t, i) => {
16654
16659
  let s;
16655
16660
  try {
@@ -16667,9 +16672,9 @@ function Sn(r, e) {
16667
16672
  }), s.postMessage({ payload: { fields: r, id: o }, type: Du });
16668
16673
  });
16669
16674
  }
16670
- const Mr = process.env.NODE_ENV === "development", Fr = 2e3, Lr = 1e3, si = "data-validation-message", vi = class vi extends I {
16675
+ const Fr = process.env.NODE_ENV === "development", Lr = 2e3, zr = 1e3, si = "data-validation-message", vi = class vi extends I {
16671
16676
  constructor(e) {
16672
- super(e), this.invalidState = /* @__PURE__ */ new Map(), this.mutateOnValidateColumns = /* @__PURE__ */ new Set(), this.validationGeneration = 0, this.suppressValidationChanged = !1, this.registerTableOption("validationMode", "blocking"), this.registerTableOption("validateOnLoad", !1), this.registerTableOption("validationWorkerThreshold", Fr), this.registerColumnOption("validator"), this.registerColumnOption("mutateOnValidate"), this.registerTableFunction(
16677
+ super(e), this.invalidState = /* @__PURE__ */ new Map(), this.mutateOnValidateColumns = /* @__PURE__ */ new Set(), this.validationGeneration = 0, this.suppressValidationChanged = !1, this.registerTableOption("validationMode", "blocking"), this.registerTableOption("validateOnLoad", !1), this.registerTableOption("validationWorkerThreshold", Lr), this.registerColumnOption("validator"), this.registerColumnOption("mutateOnValidate"), this.registerTableFunction(
16673
16678
  "getInvalidCells",
16674
16679
  this.getInvalidCells.bind(this)
16675
16680
  ), this.registerTableFunction(
@@ -16769,7 +16774,7 @@ const Mr = process.env.NODE_ENV === "development", Fr = 2e3, Lr = 1e3, si = "dat
16769
16774
  this.validationGeneration++;
16770
16775
  const e = this.invalidState.size > 0;
16771
16776
  this.invalidState.clear(), this.table.options.validateOnLoad ? this.validateAsync().catch((t) => {
16772
- Mr && console.warn("Validate-on-load failed:", t);
16777
+ Fr && console.warn("Validate-on-load failed:", t);
16773
16778
  }) : e && this.dispatchValidationChanged();
16774
16779
  }
16775
16780
  // /////////////////////////////////
@@ -16833,7 +16838,7 @@ const Mr = process.env.NODE_ENV === "development", Fr = 2e3, Lr = 1e3, si = "dat
16833
16838
  * chunks). Superseded runs (new validation or data reload) are discarded.
16834
16839
  */
16835
16840
  async validateAsync() {
16836
- const e = ++this.validationGeneration, t = this.table.rowManager ? [...this.table.rowManager.rows] : [], i = this.table.options.validationWorkerThreshold ?? Fr;
16841
+ const e = ++this.validationGeneration, t = this.table.rowManager ? [...this.table.rowManager.rows] : [], i = this.table.options.validationWorkerThreshold ?? Lr;
16837
16842
  if (this.runSuppressed(() => {
16838
16843
  this.invalidCells.forEach((a) => this.clearValidation(a));
16839
16844
  }), this.invalidState.clear(), i === !1 || t.length <= i)
@@ -16895,7 +16900,7 @@ const Mr = process.env.NODE_ENV === "development", Fr = 2e3, Lr = 1e3, si = "dat
16895
16900
  message: i,
16896
16901
  params: t,
16897
16902
  type: typeof e == "function" ? "function" : e
16898
- } : (Mr && console.warn(
16903
+ } : (Fr && console.warn(
16899
16904
  "Validator Setup Error - No matching validator found:",
16900
16905
  e
16901
16906
  ), !1);
@@ -16973,7 +16978,7 @@ const Mr = process.env.NODE_ENV === "development", Fr = 2e3, Lr = 1e3, si = "dat
16973
16978
  })),
16974
16979
  values: t.map((n) => o.getFieldValue(n.data))
16975
16980
  }));
16976
- await Sn(s, (o) => {
16981
+ await Dn(s, (o) => {
16977
16982
  i === this.validationGeneration && this.applyWorkerResults(o, t, e);
16978
16983
  });
16979
16984
  }
@@ -16996,10 +17001,10 @@ const Mr = process.env.NODE_ENV === "development", Fr = 2e3, Lr = 1e3, si = "dat
16996
17001
  * responsive.
16997
17002
  */
16998
17003
  async validateColumnsOnMainThread(e, t, i) {
16999
- for (let s = 0; s < t.length && e.length; s += Lr) {
17004
+ for (let s = 0; s < t.length && e.length; s += zr) {
17000
17005
  if (i !== this.validationGeneration)
17001
17006
  return;
17002
- const o = Math.min(s + Lr, t.length);
17007
+ const o = Math.min(s + zr, t.length);
17003
17008
  this.runSuppressed(() => {
17004
17009
  for (let n = s; n < o; n++) {
17005
17010
  const a = t[n];
@@ -17420,7 +17425,7 @@ class Lu extends Qi {
17420
17425
  }
17421
17426
  }
17422
17427
  const zu = process.env.NODE_ENV === "development";
17423
- class Dn {
17428
+ class kn {
17424
17429
  constructor(e, t, i = {}) {
17425
17430
  this.registeredDefaults = {}, this.table = e, this.msgType = t, this.registeredDefaults = { ...i };
17426
17431
  }
@@ -17437,13 +17442,13 @@ class Dn {
17437
17442
  return i;
17438
17443
  }
17439
17444
  }
17440
- const zr = process.env.NODE_ENV === "development";
17441
- class _u extends Fe {
17445
+ const _r = process.env.NODE_ENV === "development";
17446
+ class _u extends Le {
17442
17447
  constructor(e) {
17443
- super(e), this.blockHozScrollEvent = !1, this.headersElement = null, this.contentsElement = null, this.rowHeader = null, this.columns = [], this.columnsByIndex = [], this.columnsByField = {}, this.scrollLeft = 0, this.optionsList = new Dn(
17448
+ super(e), this.blockHozScrollEvent = !1, this.headersElement = null, this.contentsElement = null, this.rowHeader = null, this.columns = [], this.columnsByIndex = [], this.columnsByField = {}, this.scrollLeft = 0, this.optionsList = new kn(
17444
17449
  this.table,
17445
17450
  "column definition",
17446
- mn
17451
+ gn
17447
17452
  ), this.redrawBlock = !1, this.redrawBlockUpdate = null, this.renderer = null;
17448
17453
  }
17449
17454
  // //////////// Setup Functions /////////////////
@@ -17470,7 +17475,7 @@ class _u extends Fe {
17470
17475
  basic: Fu,
17471
17476
  virtual: Lu
17472
17477
  };
17473
- typeof this.table.options.renderHorizontal == "string" ? e = t[this.table.options.renderHorizontal] : e = this.table.options.renderHorizontal, e ? (this.renderer = new e(this.table), this.renderer.initialize()) : zr && console.error(
17478
+ typeof this.table.options.renderHorizontal == "string" ? e = t[this.table.options.renderHorizontal] : e = this.table.options.renderHorizontal, e ? (this.renderer = new e(this.table), this.renderer.initialize()) : _r && console.error(
17474
17479
  "Unable to find matching renderer:",
17475
17480
  this.table.options.renderHorizontal
17476
17481
  );
@@ -17747,7 +17752,7 @@ class _u extends Fe {
17747
17752
  return;
17748
17753
  }
17749
17754
  if (e.hidden)
17750
- zr && console.warn("Scroll Error - Column not visible"), o("Scroll Error - Column not visible");
17755
+ _r && console.warn("Scroll Error - Column not visible"), o("Scroll Error - Column not visible");
17751
17756
  else {
17752
17757
  let n = 0;
17753
17758
  const a = e.getLeftOffset();
@@ -17878,7 +17883,7 @@ const Ou = {
17878
17883
  dataReceiveParams: {}
17879
17884
  // dependencies: {},
17880
17885
  };
17881
- class Au extends Fe {
17886
+ class Au extends Le {
17882
17887
  constructor(e) {
17883
17888
  super(e), this.active = !1, this.element = this.createElement(), this.containerElement = this.createContainerElement(), this.external = !1;
17884
17889
  }
@@ -18235,7 +18240,7 @@ class Iu extends Qi {
18235
18240
  }
18236
18241
  }
18237
18242
  const $t = process.env.NODE_ENV === "development", Hu = x`<div class="tabulator-tableholder-wrapper"></div>`;
18238
- class Nu extends Fe {
18243
+ class Nu extends Le {
18239
18244
  constructor(e) {
18240
18245
  super(e), this.headerWidthObserver = null, this.headerWidthSyncFrame = null, this.element = this.createHolderElement(), this.wrapperElement = this.createWrapperElement(), this.wrapperElement.appendChild(this.element), this.tableElement = this.createTableElement(), this.heightFixer = this.createTableElement(), this.placeholder = null, this.placeholderContents = null, this.firstRender = !1, this.renderMode = "virtual", this.rows = [], this.activeRowsPipeline = [], this.activeRows = [], this.activeRowsCount = 0, this.displayRows = [], this.displayRowsCount = 0, this.scrollTop = 0, this.scrollLeft = 0, this.redrawBlock = !1, this.redrawBlockRestoreConfig = !1, this.redrawBlockRenderInPosition = !1, this.dataPipeline = [], this.displayPipeline = [], this.scrollbarWidth = 0, this.renderer = null, this.rowIndexMap = /* @__PURE__ */ new Map();
18241
18246
  }
@@ -18309,9 +18314,9 @@ class Nu extends Fe {
18309
18314
  */
18310
18315
  findRow(e) {
18311
18316
  if (typeof e == "object") {
18312
- if (e instanceof Me)
18317
+ if (e instanceof Fe)
18313
18318
  return e;
18314
- if (e instanceof go)
18319
+ if (e instanceof bo)
18315
18320
  return e._getSelf() || !1;
18316
18321
  if (typeof HTMLElement < "u" && e instanceof HTMLElement)
18317
18322
  return this.findRowByElement(e, this.rows);
@@ -18411,7 +18416,7 @@ class Nu extends Fe {
18411
18416
  _setDataActual(e, t) {
18412
18417
  this.dispatchExternal("dataProcessing", e), this._wipeElements(), Array.isArray(e) ? (this.dispatch("data-processing", e), e.forEach((i) => {
18413
18418
  if (i && typeof i == "object") {
18414
- const s = new Me(i, this);
18419
+ const s = new Fe(i, this);
18415
18420
  this.rows.push(s), this.registerRowInMap(s);
18416
18421
  } else $t && console.warn(
18417
18422
  "Data Loading Warning - Invalid row data detected and ignored, expecting object but received:",
@@ -18464,7 +18469,7 @@ Data: `,
18464
18469
  return (e ?? this.table.options.addRowPos) === "top";
18465
18470
  }
18466
18471
  addRowActual(e, t, i, s) {
18467
- const o = e instanceof Me ? e : new Me(e || {}, this);
18472
+ const o = e instanceof Fe ? e : new Fe(e || {}, this);
18468
18473
  let n = t, a = -1, l, h;
18469
18474
  return i || (h = this.chain("row-adding-position", [o, n], null, {
18470
18475
  index: i,
@@ -18510,12 +18515,12 @@ Data: `,
18510
18515
  nextDisplayRow(e, t) {
18511
18516
  const i = this.getDisplayRowIndex(e);
18512
18517
  let s = !1;
18513
- return i !== !1 && i < this.displayRowsCount - 1 && (s = this.getDisplayRows()[i + 1]), s && (!(s instanceof Me) || s.type != "row") ? this.nextDisplayRow(s, t) : s;
18518
+ return i !== !1 && i < this.displayRowsCount - 1 && (s = this.getDisplayRows()[i + 1]), s && (!(s instanceof Fe) || s.type != "row") ? this.nextDisplayRow(s, t) : s;
18514
18519
  }
18515
18520
  prevDisplayRow(e, t) {
18516
18521
  const i = this.getDisplayRowIndex(e);
18517
18522
  let s = !1;
18518
- return i && (s = this.getDisplayRows()[i - 1]), t && s && (!(s instanceof Me) || s.type != "row") ? this.prevDisplayRow(s, t) : s;
18523
+ return i && (s = this.getDisplayRows()[i - 1]), t && s && (!(s instanceof Fe) || s.type != "row") ? this.prevDisplayRow(s, t) : s;
18519
18524
  }
18520
18525
  findRowIndex(e, t) {
18521
18526
  let i;
@@ -18834,7 +18839,7 @@ Data: `,
18834
18839
  this.element.dispatchEvent(new Event("scroll"));
18835
18840
  }
18836
18841
  }
18837
- class Vu extends Fe {
18842
+ class Vu extends Le {
18838
18843
  constructor(e) {
18839
18844
  super(e), this.type = null, this.element = this._createAlertElement(), this.msgElement = this._createMsgElement(), this.element.appendChild(this.msgElement);
18840
18845
  }
@@ -18862,13 +18867,13 @@ class Vu extends Fe {
18862
18867
  this.dispatch("alert-hide", this.type), this.element.parentNode && this.element.parentNode.removeChild(this.element), this.element.classList.remove(this._typeClass()), this.msgElement.classList.remove(this._typeClass()), this.type = null;
18863
18868
  }
18864
18869
  }
18865
- const _r = process.env.NODE_ENV === "development";
18870
+ const Or = process.env.NODE_ENV === "development";
18866
18871
  class Bu {
18867
18872
  constructor(e) {
18868
18873
  this.bindings = {}, this.table = e;
18869
18874
  }
18870
18875
  bind(e, t, i) {
18871
- this.bindings[e] || (this.bindings[e] = {}), this.bindings[e][t] ? _r && console.warn(
18876
+ this.bindings[e] || (this.bindings[e] = {}), this.bindings[e][t] ? Or && console.warn(
18872
18877
  "Unable to bind component handler, a matching function name is already bound",
18873
18878
  e,
18874
18879
  t,
@@ -18879,13 +18884,13 @@ class Bu {
18879
18884
  if (typeof i == "string") {
18880
18885
  if (this.bindings[e]?.[i] && typeof this.bindings[e][i].bind == "function")
18881
18886
  return this.bindings[e][i].bind(null, t);
18882
- _r && i !== "then" && !i.startsWith("_") && this.table.options.debugInvalidComponentFuncs && console.error(
18887
+ Or && i !== "then" && !i.startsWith("_") && this.table.options.debugInvalidComponentFuncs && console.error(
18883
18888
  "The " + e + " component does not have a " + i + " function, have you checked that you have the correct Tabulator module installed?"
18884
18889
  );
18885
18890
  }
18886
18891
  }
18887
18892
  }
18888
- const Oi = process.env.NODE_ENV === "development", Ui = class Ui extends Fe {
18893
+ const Oi = process.env.NODE_ENV === "development", Ui = class Ui extends Le {
18889
18894
  constructor(e) {
18890
18895
  super(e), this.debounceTimer = null, this.pendingPromise = null, this.pendingResolve = null, this.pendingReject = null, this.requestOrder = 0, this.loading = !1, this.externalLoading = !1;
18891
18896
  }
@@ -19012,7 +19017,7 @@ const Oi = process.env.NODE_ENV === "development", Ui = class Ui extends Fe {
19012
19017
  Ui.DEBOUNCE_DELAY = 500;
19013
19018
  let io = Ui;
19014
19019
  const $u = process.env.NODE_ENV === "development";
19015
- class Wu extends Fe {
19020
+ class Wu extends Le {
19016
19021
  constructor(e) {
19017
19022
  super(e), this.deps = {}, this.props = {};
19018
19023
  }
@@ -19055,7 +19060,7 @@ class Wu extends Fe {
19055
19060
  }
19056
19061
  }
19057
19062
  const ju = process.env.NODE_ENV === "development";
19058
- class Gu extends Fe {
19063
+ class Gu extends Le {
19059
19064
  constructor(e) {
19060
19065
  super(e);
19061
19066
  }
@@ -19147,7 +19152,7 @@ class Uu {
19147
19152
  }
19148
19153
  }
19149
19154
  const Ku = process.env.NODE_ENV === "development";
19150
- class qu extends Fe {
19155
+ class qu extends Le {
19151
19156
  constructor(e) {
19152
19157
  super(e), this.el = null, this.abortClasses = ["tabulator-headers", "tabulator-table"], this.previousTargets = {}, this.listeners = [
19153
19158
  "click",
@@ -19298,7 +19303,7 @@ class qu extends Fe {
19298
19303
  s.components.includes("column") && (h = this.table.columnManager?.findColumn(c));
19299
19304
  break;
19300
19305
  case "cell":
19301
- s.components.includes("cell") && (o.row instanceof Me ? h = o.row.findCell(c) : Ku && t.row && console.warn(
19306
+ s.components.includes("cell") && (o.row instanceof Fe ? h = o.row.findCell(c) : Ku && t.row && console.warn(
19302
19307
  "Event Target Lookup Error - The row this cell is attached to cannot be found, has the table been reinitialized without being destroyed first?"
19303
19308
  ));
19304
19309
  break;
@@ -19469,7 +19474,7 @@ function Ju(r) {
19469
19474
  async function Yu(r, e) {
19470
19475
  e && this.table.columnManager?.renderer && await this.table.columnManager.renderer.reinitializeColumnWidths(r), this.table.options.responsiveLayout && this.table.modExists("responsiveLayout", !0) && this.table.modules.responsiveLayout.update();
19471
19476
  }
19472
- async function Or(r) {
19477
+ async function Ar(r) {
19473
19478
  for (const e of r)
19474
19479
  await e.reinitializeWidth();
19475
19480
  this.table.options.responsiveLayout && this.table.modExists("responsiveLayout", !0) && this.table.modules.responsiveLayout.update();
@@ -19490,9 +19495,9 @@ async function Zu(r) {
19490
19495
  const Qu = {
19491
19496
  fitColumns: Ju,
19492
19497
  fitData: Yu,
19493
- fitDataFill: Or,
19498
+ fitDataFill: Ar,
19494
19499
  fitDataStretch: Zu,
19495
- fitDataTable: Or
19500
+ fitDataTable: Ar
19496
19501
  }, ep = process.env.NODE_ENV === "development", Kt = class Kt extends I {
19497
19502
  constructor(e) {
19498
19503
  super(e), this.mode = null, this.registerTableOption("layout", "fitData"), this.registerTableOption("layoutColumnsOnNewData", !1), this.registerColumnOption("widthGrow"), this.registerColumnOption("widthShrink");
@@ -19562,7 +19567,7 @@ const tp = {
19562
19567
  prev_title: "Prev Page"
19563
19568
  }
19564
19569
  }
19565
- }, Ar = process.env.NODE_ENV === "development", yi = class yi extends I {
19570
+ }, Pr = process.env.NODE_ENV === "development", yi = class yi extends I {
19566
19571
  constructor(e) {
19567
19572
  super(e), this.locale = "default", this.lang = !1, this.bindings = {}, this.langList = {}, this.registerTableOption("locale", !1), this.registerTableOption("langs", {});
19568
19573
  }
@@ -19596,11 +19601,11 @@ const tp = {
19596
19601
  };
19597
19602
  if (t && !this.langList[t]) {
19598
19603
  const s = t.split("-")[0];
19599
- this.langList[s] ? (Ar && console.warn(
19604
+ this.langList[s] ? (Pr && console.warn(
19600
19605
  "Localization Error - Exact matching locale not found, using closest match: ",
19601
19606
  t,
19602
19607
  s
19603
- ), t = s) : (Ar && console.warn(
19608
+ ), t = s) : (Pr && console.warn(
19604
19609
  "Localization Error - Matching locale not found, using default: ",
19605
19610
  t
19606
19611
  ), t = "default");
@@ -19644,7 +19649,7 @@ const tp = {
19644
19649
  };
19645
19650
  yi.moduleName = "localize", yi.langs = tp;
19646
19651
  let oo = yi;
19647
- const Pr = process.env.NODE_ENV === "development", Bo = class Bo extends I {
19652
+ const Ir = process.env.NODE_ENV === "development", $o = class $o extends I {
19648
19653
  constructor(e) {
19649
19654
  super(e);
19650
19655
  }
@@ -19661,7 +19666,7 @@ const Pr = process.env.NODE_ENV === "development", Bo = class Bo extends I {
19661
19666
  const o = this.getConnections(e);
19662
19667
  o.forEach((n) => {
19663
19668
  n.tableComms(this.table.element, t, i, s);
19664
- }), !o.length && e && Pr && console.warn(
19669
+ }), !o.length && e && Ir && console.warn(
19665
19670
  "Table Connection Error - No tables matching selector found",
19666
19671
  e
19667
19672
  );
@@ -19669,11 +19674,11 @@ const Pr = process.env.NODE_ENV === "development", Bo = class Bo extends I {
19669
19674
  receive(e, t, i, s) {
19670
19675
  if (this.table.modExists(t))
19671
19676
  return this.table.modules[t]?.commsReceived?.(e, i, s);
19672
- Pr && console.warn("Inter-table Comms Error - no such module:", t);
19677
+ Ir && console.warn("Inter-table Comms Error - no such module:", t);
19673
19678
  }
19674
19679
  };
19675
- Bo.moduleName = "comms";
19676
- let ro = Bo;
19680
+ $o.moduleName = "comms";
19681
+ let ro = $o;
19677
19682
  const ip = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
19678
19683
  __proto__: null,
19679
19684
  CommsModule: ro,
@@ -19807,7 +19812,7 @@ const ce = process.env.NODE_ENV === "development", yt = class yt extends ao {
19807
19812
  yt.initializeModuleBinder(), yt._registerModule(...e);
19808
19813
  }
19809
19814
  constructor(e, t, i) {
19810
- super(), yt.initializeModuleBinder(i), this.options = {}, this.columnManager = null, this.rowManager = null, this.footerManager = null, this.alertManager = null, this.vdomHoz = null, this.externalEvents = null, this.eventBus = null, this.interactionMonitor = !1, this.browser = "", this.browserSlow = !1, this.browserMobile = !1, this.rtl = !1, this.originalElement = null, this.componentFunctionBinder = new Bu(this), this.dataLoader = null, this.modules = {}, this.modulesCore = [], this.modulesRegular = [], this.deprecationAdvisor = new Gu(this), this.optionsList = new Dn(this, "table constructor"), this.dependencyRegistry = new Wu(this), this.initialized = !1, this.destroyed = !1, this.initializeElement(e) && (this.initializeCoreSystems(t), setTimeout(() => {
19815
+ super(), yt.initializeModuleBinder(i), this.options = {}, this.columnManager = null, this.rowManager = null, this.footerManager = null, this.alertManager = null, this.vdomHoz = null, this.externalEvents = null, this.eventBus = null, this.interactionMonitor = !1, this.browser = "", this.browserSlow = !1, this.browserMobile = !1, this.rtl = !1, this.originalElement = null, this.componentFunctionBinder = new Bu(this), this.dataLoader = null, this.modules = {}, this.modulesCore = [], this.modulesRegular = [], this.deprecationAdvisor = new Gu(this), this.optionsList = new kn(this, "table constructor"), this.dependencyRegistry = new Wu(this), this.initialized = !1, this.destroyed = !1, this.initializeElement(e) && (this.initializeCoreSystems(t), setTimeout(() => {
19811
19816
  this._create();
19812
19817
  })), this.constructor.registry.register(this);
19813
19818
  }
@@ -20211,7 +20216,7 @@ class op extends zt {
20211
20216
  }
20212
20217
  // #endregion
20213
20218
  }
20214
- const rp = new Set(Object.values(Zr));
20219
+ const rp = new Set(Object.values(Qr));
20215
20220
  class np {
20216
20221
  constructor(e) {
20217
20222
  this.facets = [], this.availableFacets = [], this.host = e, e.addController(this);
@@ -20249,13 +20254,13 @@ function ap(r) {
20249
20254
  selection: lp(h),
20250
20255
  type: nt.Checkbox
20251
20256
  }) : l === Ii.DatePicker ? e.set(n, {
20252
- displayFormat: Ir(h),
20257
+ displayFormat: Hr(h),
20253
20258
  displayName: a,
20254
20259
  facetFieldName: n,
20255
20260
  showTime: h.includes(Hi.ShowTime),
20256
20261
  type: nt.DatePicker
20257
20262
  }) : l === Ii.DateRangePicker && e.set(n, {
20258
- displayFormat: Ir(h),
20263
+ displayFormat: Hr(h),
20259
20264
  displayName: a,
20260
20265
  facetFieldName: n,
20261
20266
  showPreset: h.includes(Hi.ShowPreset),
@@ -20268,7 +20273,7 @@ function ap(r) {
20268
20273
  function lp(r) {
20269
20274
  return r.includes(Ct.Multiple) ? Ct.Multiple : Ct.Single;
20270
20275
  }
20271
- function Ir(r) {
20276
+ function Hr(r) {
20272
20277
  return r.find((e) => rp.has(e));
20273
20278
  }
20274
20279
  function hp(r, e) {
@@ -20395,7 +20400,7 @@ class dp {
20395
20400
  for (const s of i) {
20396
20401
  const o = `${t}${s}`;
20397
20402
  this.filters.set(o, [
20398
- { field: s, type: Oe.In, value: e[s] }
20403
+ { field: s, type: Re.In, value: e[s] }
20399
20404
  ]);
20400
20405
  }
20401
20406
  this.applyFilters();
@@ -20426,15 +20431,15 @@ class dp {
20426
20431
  const n = e[o], a = `${i}${o}`, l = [], h = (c, d) => t === mi.Timestamp ? (/* @__PURE__ */ new Date(`${c}T${d}`)).getTime() : t === mi.IsoDateTime ? `${c}T${d}` : c;
20427
20432
  n.type === nt.DatePicker ? n.fromDate && l.push({
20428
20433
  field: o,
20429
- type: Oe.Equal,
20434
+ type: Re.Equal,
20430
20435
  value: h(n.fromDate, n.fromTime)
20431
20436
  }) : (n.fromDate && l.push({
20432
20437
  field: o,
20433
- type: Oe.GreaterOrEqual,
20438
+ type: Re.GreaterOrEqual,
20434
20439
  value: h(n.fromDate, n.fromTime)
20435
20440
  }), n.toDate && l.push({
20436
20441
  field: o,
20437
- type: Oe.LessOrEqual,
20442
+ type: Re.LessOrEqual,
20438
20443
  value: h(n.toDate, n.toTime)
20439
20444
  })), this.filters.set(a, l);
20440
20445
  }
@@ -20780,12 +20785,12 @@ const pp = Y`.tabulator .tabulator-alert{z-index:100;background:color-mix(in srg
20780
20785
  toAttribute: (r) => typeof r == "function" ? "" : Array.isArray(r) ? JSON.stringify(r) : r
20781
20786
  };
20782
20787
  function $p(r, e) {
20783
- const t = e === ke.Desc ? "arrow_downward" : "arrow_upward";
20788
+ const t = e === Te.Desc ? "arrow_downward" : "arrow_upward";
20784
20789
  return $(
20785
20790
  x`<cx-icon name=${t} aria-hidden="true"></cx-icon>`
20786
20791
  );
20787
20792
  }
20788
- function Hr(r, e, t, i = 500) {
20793
+ function Nr(r, e, t, i = 500) {
20789
20794
  return new Promise((s, o) => {
20790
20795
  if (!Number.isInteger(i) || i < 1) {
20791
20796
  o(new RangeError("chunkSize must be a positive integer"));
@@ -20795,7 +20800,7 @@ function Hr(r, e, t, i = 500) {
20795
20800
  const d = (p) => {
20796
20801
  c = c.then(() => t(p));
20797
20802
  };
20798
- vo.parse(r, {
20803
+ yo.parse(r, {
20799
20804
  complete() {
20800
20805
  l.length > 0 && (d([...l]), l = []), c.then(() => s(h)).catch(o);
20801
20806
  },
@@ -20822,19 +20827,19 @@ function Hr(r, e, t, i = 500) {
20822
20827
  });
20823
20828
  });
20824
20829
  }
20825
- async function Nr(r, e, t, i = 500, s = "") {
20830
+ async function Vr(r, e, t, i = 500, s = "") {
20826
20831
  if (!Number.isInteger(i) || i < 1)
20827
20832
  throw new RangeError("chunkSize must be a positive integer");
20828
- const { columns: o, rows: n } = Mn(r, s);
20833
+ const { columns: o, rows: n } = Fn(r, s);
20829
20834
  e(o);
20830
20835
  for (let a = 0; a < n.length; a += i)
20831
20836
  await t(n.slice(a, a + i));
20832
20837
  return n.length;
20833
20838
  }
20834
- async function Vr(r, e, t, i = 500, s = "") {
20839
+ async function Br(r, e, t, i = 500, s = "") {
20835
20840
  if (!Number.isInteger(i) || i < 1)
20836
20841
  throw new RangeError("chunkSize must be a positive integer");
20837
- const o = JSON.parse(r), { columns: n, rows: a } = Tn(o, s);
20842
+ const o = JSON.parse(r), { columns: n, rows: a } = Mn(o, s);
20838
20843
  e(n);
20839
20844
  for (let l = 0; l < a.length; l += i)
20840
20845
  await t(a.slice(l, l + i));
@@ -20843,16 +20848,16 @@ async function Vr(r, e, t, i = 500, s = "") {
20843
20848
  function ps(r) {
20844
20849
  return typeof r == "object" && r !== null && !Array.isArray(r);
20845
20850
  }
20846
- function kn(r) {
20851
+ function Tn(r) {
20847
20852
  return r.split(/[./]/).filter((e) => e.length > 0);
20848
20853
  }
20849
20854
  function Wp(r, e) {
20850
- return kn(e).reduce((t, i) => {
20855
+ return Tn(e).reduce((t, i) => {
20851
20856
  if (!(t === null || typeof t != "object"))
20852
20857
  return t[i];
20853
20858
  }, r);
20854
20859
  }
20855
- function Tn(r, e = "") {
20860
+ function Mn(r, e = "") {
20856
20861
  if (e) {
20857
20862
  const i = Wp(r, e);
20858
20863
  if (!Array.isArray(i))
@@ -20901,45 +20906,45 @@ function jp(r) {
20901
20906
  return { columns: o, data: n };
20902
20907
  }
20903
20908
  function Gp(r) {
20904
- const e = vo.parse(r, { header: !1, skipEmptyLines: !0 }), t = e.errors.filter((i) => i.code !== "UndetectableDelimiter");
20909
+ const e = yo.parse(r, { header: !1, skipEmptyLines: !0 }), t = e.errors.filter((i) => i.code !== "UndetectableDelimiter");
20905
20910
  if (t.length > 0)
20906
20911
  throw new Error(`CSV parse error: ${t[0].message}`);
20907
20912
  return jp(e.data);
20908
20913
  }
20909
20914
  function Up(r) {
20910
- const e = JSON.parse(r), { columns: t, rows: i } = Tn(e);
20915
+ const e = JSON.parse(r), { columns: t, rows: i } = Mn(e);
20911
20916
  return { columns: t, data: i };
20912
20917
  }
20913
20918
  function Kp(r) {
20914
- const { columns: e, rows: t } = Mn(r);
20919
+ const { columns: e, rows: t } = Fn(r);
20915
20920
  return { columns: e, data: t };
20916
20921
  }
20917
20922
  function qp(r, e) {
20918
- const t = kn(e).reduce((i, s) => i ? /^\d+$/.test(s) ? i.children[Number(s)] ?? null : lo(i, s) : null, r);
20923
+ const t = Tn(e).reduce((i, s) => i ? /^\d+$/.test(s) ? i.children[Number(s)] ?? null : lo(i, s) : null, r);
20919
20924
  if (!t)
20920
20925
  throw new Error(`Data path "${e}" did not resolve to an element`);
20921
20926
  return t;
20922
20927
  }
20923
- function Mn(r, e = "") {
20928
+ function Fn(r, e = "") {
20924
20929
  const t = new DOMParser().parseFromString(r, "text/xml"), i = t.querySelector("parsererror");
20925
20930
  if (i)
20926
20931
  throw new Error(`XML parse error: ${i.textContent?.trim() ?? "unknown error"}`);
20927
20932
  const s = t.documentElement;
20928
20933
  if (e)
20929
- return Br(Array.from(qp(s, e).children));
20934
+ return $r(Array.from(qp(s, e).children));
20930
20935
  const o = lo(s, "columns"), n = lo(s, "rows");
20931
20936
  if (o && n) {
20932
20937
  const a = Array.from(o.children).map((h) => ({
20933
20938
  field: h.getAttribute("field") ?? h.tagName,
20934
20939
  title: h.getAttribute("title") ?? h.getAttribute("field") ?? h.tagName
20935
20940
  })), l = Array.from(n.children).map(
20936
- (h) => Fn(h, a.map((c) => c.field).filter((c) => c !== void 0))
20941
+ (h) => Ln(h, a.map((c) => c.field).filter((c) => c !== void 0))
20937
20942
  );
20938
20943
  return { columns: a, rows: l };
20939
20944
  }
20940
- return Br(Array.from(s.children));
20945
+ return $r(Array.from(s.children));
20941
20946
  }
20942
- function Br(r) {
20947
+ function $r(r) {
20943
20948
  if (r.length === 0)
20944
20949
  return { columns: [], rows: [] };
20945
20950
  const e = /* @__PURE__ */ new Set(), t = [];
@@ -20948,7 +20953,7 @@ function Br(r) {
20948
20953
  e.has(n.tagName) || (e.add(n.tagName), t.push(n.tagName));
20949
20954
  if (t.length === 0)
20950
20955
  return { columns: [], rows: [] };
20951
- const i = t.map((o) => ({ field: o, title: o })), s = r.map((o) => Fn(o, t));
20956
+ const i = t.map((o) => ({ field: o, title: o })), s = r.map((o) => Ln(o, t));
20952
20957
  return { columns: i, rows: s };
20953
20958
  }
20954
20959
  function lo(r, e) {
@@ -20970,7 +20975,7 @@ function Xp(r) {
20970
20975
  const t = Number(e);
20971
20976
  return !Number.isNaN(t) && Number.isFinite(t) ? t : r;
20972
20977
  }
20973
- function Fn(r, e) {
20978
+ function Ln(r, e) {
20974
20979
  const t = /* @__PURE__ */ new Map();
20975
20980
  for (const i of Array.from(r.children))
20976
20981
  t.set(i.tagName, Xp(i.textContent ?? ""));
@@ -20993,15 +20998,15 @@ function Jp(r, e) {
20993
20998
  function Yp(r, e, t) {
20994
20999
  return r !== Ce.Auto ? r : Jp(e, t);
20995
21000
  }
20996
- const $r = 2e3;
20997
- function Ln(r, e, t) {
21001
+ const Wr = 2e3;
21002
+ function ho(r, e, t) {
20998
21003
  let i = r;
20999
21004
  const s = typeof e.SearchText == "string" ? e.SearchText : "";
21000
21005
  if (s && t.tabulatorInstance) {
21001
21006
  const a = t.tabulatorInstance.createFilterFieldFunction(t.searchFields), l = {
21002
21007
  field: a,
21003
21008
  params: { matchAll: !t.searchMatchAnyKeyword },
21004
- type: Oe.Keywords,
21009
+ type: Re.Keywords,
21005
21010
  value: s
21006
21011
  };
21007
21012
  i = i.filter((h) => a(h, l));
@@ -21040,7 +21045,7 @@ function Ln(r, e, t) {
21040
21045
  }
21041
21046
  function Zp(r, e) {
21042
21047
  return async (t, i, s) => {
21043
- const o = r() ?? [], n = s ?? {}, a = Ln(o, n, e()), l = Number(n.PageNumber) || 1, h = Number(n.PageSize) || a.length || 1, c = (l - 1) * h;
21048
+ const o = r() ?? [], n = s ?? {}, a = ho(o, n, e()), l = Number(n.PageNumber) || 1, h = Number(n.PageSize) || a.length || 1, c = (l - 1) * h;
21044
21049
  return {
21045
21050
  data: a.slice(c, c + h),
21046
21051
  totalCount: a.length
@@ -21061,23 +21066,23 @@ function Qp(r) {
21061
21066
  } else typeof i == "object" && typeof i.type == "string" && t.push({ message: i.message, parameters: i.parameters, type: i.type });
21062
21067
  }), t;
21063
21068
  }
21064
- function Wr(r) {
21069
+ function jr(r) {
21065
21070
  return r === "" || r === null || r === void 0;
21066
21071
  }
21067
- function jr(r) {
21072
+ function Gr(r) {
21068
21073
  const e = [];
21069
21074
  return r.forEach((t, i) => {
21070
21075
  const s = t.rules.some((n) => n.type === "unique"), o = /* @__PURE__ */ new Map();
21071
21076
  s && t.values.forEach((n) => {
21072
- Wr(n) || o.set(n, (o.get(n) ?? 0) + 1);
21077
+ jr(n) || o.set(n, (o.get(n) ?? 0) + 1);
21073
21078
  }), t.values.forEach((n, a) => {
21074
21079
  const l = [];
21075
21080
  t.rules.forEach((h) => {
21076
21081
  let c;
21077
21082
  if (h.type === "unique")
21078
- c = Wr(n) || (o.get(n) ?? 0) <= 1;
21083
+ c = jr(n) || (o.get(n) ?? 0) <= 1;
21079
21084
  else {
21080
- const d = Co[h.type];
21085
+ const d = Eo[h.type];
21081
21086
  c = d ? d(n, h.parameters) : !0;
21082
21087
  }
21083
21088
  c || l.push({
@@ -21089,7 +21094,7 @@ function jr(r) {
21089
21094
  });
21090
21095
  }), e;
21091
21096
  }
21092
- async function ef(r, e, t, i, s, o = $r) {
21097
+ async function ef(r, e, t, i, s, o = Wr) {
21093
21098
  const n = [], a = [];
21094
21099
  if (e.forEach((d) => {
21095
21100
  if (typeof d.field != "string" || d.field === "")
@@ -21109,16 +21114,16 @@ async function ef(r, e, t, i, s, o = $r) {
21109
21114
  }), a.push(d.field);
21110
21115
  }), n.length === 0)
21111
21116
  return !1;
21112
- const l = o ?? $r, h = l !== !1 && r.length > l;
21117
+ const l = o ?? Wr, h = l !== !1 && r.length > l;
21113
21118
  let c;
21114
21119
  if (h)
21115
21120
  try {
21116
- c = await Sn(n);
21121
+ c = await Dn(n);
21117
21122
  } catch {
21118
- c = jr(n);
21123
+ c = Gr(n);
21119
21124
  }
21120
21125
  else
21121
- c = jr(n);
21126
+ c = Gr(n);
21122
21127
  return c.forEach((d) => {
21123
21128
  const p = a[d.fieldIndex];
21124
21129
  if (!p)
@@ -21163,7 +21168,7 @@ function of(r, e) {
21163
21168
  const t = e?.modules?.mutator;
21164
21169
  t && r.forEach((i) => t.transformRow(i, "data"));
21165
21170
  }
21166
- function Gr(r, e, t, i, s) {
21171
+ function Ur(r, e, t, i, s) {
21167
21172
  const o = e.filter(
21168
21173
  (a) => a.mutateOnValidate && typeof a.field == "string" && a.field !== "" && typeof a.mutator == "function"
21169
21174
  );
@@ -21204,13 +21209,13 @@ var rf = Object.defineProperty, nf = Object.getOwnPropertyDescriptor, zn = (r) =
21204
21209
  for (var s = i > 1 ? void 0 : i ? nf(e, t) : e, o = r.length - 1, n; o >= 0; o--)
21205
21210
  (n = r[o]) && (s = (i ? n(e, t, s) : n(s)) || s);
21206
21211
  return i && s && rf(e, t, s), s;
21207
- }, af = (r, e, t) => e.has(r) || zn("Cannot " + t), lf = (r, e, t) => (af(r, e, "read from private field"), t ? t.call(r) : e.get(r)), hf = (r, e, t) => e.has(r) ? zn("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(r) : e.set(r, t), ho, _n;
21212
+ }, af = (r, e, t) => e.has(r) || zn("Cannot " + t), lf = (r, e, t) => (af(r, e, "read from private field"), t ? t.call(r) : e.get(r)), hf = (r, e, t) => e.has(r) ? zn("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(r) : e.set(r, t), co, _n;
21208
21213
  let g = class extends Ie {
21209
21214
  constructor() {
21210
- super(), hf(this, ho), this.localize = new tt(this), this.hasSlotController = new an(this, "add-action"), this.osInstance = null, this.resizeObserver = null, this.overflowObserver = null, this.ajaxFacetsController = new np(this), this.filterController = new dp(this), this.ajaxFacetFilterController = new cp(this, this.filterController), this.selectAllController = new up(this), this.shadowRootAutoloader = new ln(
21215
+ super(), hf(this, co), this.localize = new tt(this), this.hasSlotController = new ln(this, "add-action"), this.osInstance = null, this.resizeObserver = null, this.overflowObserver = null, this.ajaxFacetsController = new np(this), this.filterController = new dp(this), this.ajaxFacetFilterController = new cp(this, this.filterController), this.selectAllController = new up(this), this.shadowRootAutoloader = new hn(
21211
21216
  this
21212
21217
  ), this.validationTooltipAnchor = null, this.validationTooltipHidePromise = null, this.movableRows = !1, this.movableColumns = !1, this.data = void 0, this.rowHeight = 48, this.layout = "fitColumns", this.columns = [], this.footerElement = void 0, this.responsiveLayout = !1, this.responsiveLayoutCollapseFormatter = void 0, this.responsiveLayoutCollapseUseFormatters = void 0, this.rowHeader = void 0, this.noHeader = !1, this.textDirection = void 0, this.responsiveLayoutCollapseStartOpen = void 0, this.renderVerticalBuffer = void 0, this.renderVertical = "virtual", this.validateOnLoad = !1, this.validationWorkerThreshold = void 0, this.columnDefaults = {}, this.headerContextMenu = !1, this.canSearch = !1, this.noAdvancedSearch = !1, this.showSavedSearch = !1, this.searchFields = [], this.searchMatchAnyKeyword = !1, this.canAdd = !1, this.addLabel = this.localize.term("add"), this.canExportCsv = !1, this.canExportXml = !1, this.canExportPdf = !1, this.canExportCustom = !1, this.canSaveReport = !1, this.savedSearchURL = "", this.savedSearchItems = [], this.savedSearchPageSizeParam = "PageSize", this.savedSearchPageSize = 10, this.savedSearchPageNumberParam = "PageNumber", this.dropdownFilters = [], this.groupByOptions = [], this.ajaxURL = void 0, this.ajaxMethod = "GET", this.ajaxURLGenerator = void 0, this.ajaxParams = void 0, this.ajaxResponse = void 0, this.facetConfig = void 0, this.additionalAppliedFilters = [], this.dataSendParams = void 0, this.dataReceiveParams = void 0, this.noAutoResize = !1, this.resizableRows = !1, this.resizableColumnFit = !1, this.resizableColumnGuide = !1, this.resizableRowGuide = !1, this.frozenRows = void 0, this.frozenRowsField = "id", this.placeholder = this.localize.term("noData"), this.groupBy = void 0, this.groupHeader = void 0, this.groupHeaderCount = !1, this.groupHeaderUseFormatter = !1, this.groupIndent = 36, this.groupHeaderPrint = void 0, this.groupHeaderClipboard = void 0, this.groupHeaderDownload = void 0, this.groupHeaderHtmlOutput = void 0, this.groupStartOpen = !1, this.groupStartOpenValues = void 0, this.groupToggleElement = "arrow", this.groupValues = [], this.groupUpdateOnCellEdit = !1, this.groupLoadMoreMeta = {}, this.dataTree = !1, this.dataTreeChildField = "_children", this.dataTreeLoadingField = "loading", this.dataTreeHasMoreField = "hasMore", this.dataTreeFilter = !1, this.dataTreeSort = !1, this.dataTreeElementColumn = void 0, this.dataTreeChildIndent = 9, this.dataTreeStartExpanded = !1, this.dataTreeSelectPropagate = !1, this.dataTreeExpandElement = void 0, this.dataTreeCollapseElement = void 0, this.spreadsheet = !1, this.spreadsheetColumns = 50, this.spreadsheetRows = 50, this.spreadsheetColumnDefinition = void 0, this.spreadsheetOutputFull = !1, this.editorEmptyValue = "", this.spreadsheetSheets = void 0, this.spreadsheetSheetTabs = !1, this.spreadsheetData = void 0, this.selectableRange = 1, this.noSelectable = !1, this.selectableRangeColumns = !1, this.selectableRangeRows = !1, this.selectableRangeClearCells = !1, this.editTriggerEvent = "dblclick", this.selectableRangeAutoFocus = !1, this.noClipboard = !1, this.clipboardAction = fi.Both, this.clipboardCopyRowRange = "range", this.clipboardPasteParser = void 0, this.clipboardPasteAction = "insert", this.clipboardCopyConfig = { columnHeaders: !1 }, this.clipboardNoCopyStyled = !1, this.pagination = !1, this.paginationMode = mt.Local, this.paginationSize = void 0, this.paginationInitialPage = 1, this.paginationButtonCount = 5, this.showPaginationButtons = !1, this.hidePaginationInput = !1, this.pageSizeOptions = void 0, this.paginationAddRow = "page", this.paginationCounter = ya.Both, this.paginationShowFirst = !1, this.paginationShowLast = !1, this.paginationPlacement = Ji.TopEnd, this.noHeaderRowReserve = !1, this.hoverMenu = void 0, this.label = "", this.tabulatorRole = "grid", this.columnGroupRole = "columngroup", this.columnHeaderRole = "columnheader", this.rowRole = "row", this.rowGroupRole = "rowgroup", this.cellRole = "gridcell", this.filterMode = mt.Local, this.placeholderHeaderFilter = "No matching data", this.noColumnPlaceholderText = this.localize.term("noColumnsVisible"), this.useOverlayScrollbar = !1, this.loading = !1, this.canSelectAll = !1, this.rowIdField = "id", this.dataUrl = "", this.dateFilterCompareFormat = mi.IsoDateTime, this.dataFormat = Ce.Auto, this.dataUrlPath = "", this.preserveColumnsOnLoad = !1, this.tabulatorInstance = null, this.watchedEvents = /* @__PURE__ */ new Set(), this.activeSearchValue = "", this.dataUrlRequestId = 0, this.inMemoryDataUrlRows = null, this.inMemoryValidationResult = null, this.internalAjaxRequestFunc = void 0, this.lastAttemptedDataUrl = null, this.hasFacets = !1, this.headerMenuOpen = !1, this.headerMenuField = "", this.headerMenuPointX = 0, this.headerMenuPointY = 0, this.headerMenuHideDisabled = !1, this.columnEditorOpen = !1, this.columnEditorEntries = [], this.handleTableBuilt = () => {
21213
- this.initScrollbars(), this.initOverflowObserver(), this.tabulatorInstance?.setColumns(this.columns ?? []), this.validateOnLoad && this.tabulatorInstance?.validateAsync(), this.filterController.syncDropdownFilterSources(this.dropdownFilters), this.handleSearch(), this.filterController.applyFilters(), this.placePaginator(), this.dataUrl && (!this.pagination || this.lastAttemptedDataUrl !== this.dataUrl.trim()) && this.loadFromDataUrl();
21218
+ this.initScrollbars(), this.initOverflowObserver(), this.tabulatorInstance?.setColumns(this.columns ?? []), this.validateOnLoad && this.tabulatorInstance?.validateAsync(), this.filterController.syncDropdownFilterSources(this.dropdownFilters), this.handleSearch(), this.filterController.applyFilters(), this.refreshInMemoryPaginationCount(), this.placePaginator(), this.dataUrl && (!this.pagination || this.lastAttemptedDataUrl !== this.dataUrl.trim()) && this.loadFromDataUrl();
21214
21219
  }, this.handleValidationChanged = (t) => {
21215
21220
  this.validationTooltipAnchor && !this.validationTooltipAnchor.isConnected && this.hideValidationTooltip(), this.emit("cx-table-validation-change", { detail: t });
21216
21221
  }, this.checkHorizontalOverflow = () => {
@@ -21388,7 +21393,7 @@ let g = class extends Ie {
21388
21393
  groupHeaderUseFormatter: this.groupHeaderUseFormatter,
21389
21394
  groupIndent: this.groupIndent,
21390
21395
  groupLoadMoreMeta: this.groupLoadMoreMeta,
21391
- groupStartOpen: lf(this, ho, _n),
21396
+ groupStartOpen: lf(this, co, _n),
21392
21397
  groupToggleElement: this.groupToggleElement,
21393
21398
  groupUpdateOnCellEdit: this.groupUpdateOnCellEdit,
21394
21399
  groupValues: this.groupValues,
@@ -21681,7 +21686,7 @@ let g = class extends Ie {
21681
21686
  {
21682
21687
  field: i,
21683
21688
  params: { matchAll: !this.searchMatchAnyKeyword },
21684
- type: Oe.Keywords,
21689
+ type: Re.Keywords,
21685
21690
  value: this.activeSearchValue
21686
21691
  }
21687
21692
  ]);
@@ -21692,7 +21697,7 @@ let g = class extends Ie {
21692
21697
  {
21693
21698
  field: t,
21694
21699
  params: { matchAll: !this.searchMatchAnyKeyword },
21695
- type: Oe.Keywords,
21700
+ type: Re.Keywords,
21696
21701
  value: this.activeSearchValue
21697
21702
  }
21698
21703
  ]);
@@ -21717,12 +21722,12 @@ let g = class extends Ie {
21717
21722
  handleTableExport(e) {
21718
21723
  if (e.stopPropagation(), !this.tabulatorInstance)
21719
21724
  return;
21720
- const t = this.inMemoryDataUrlRows ? Ln(
21725
+ const t = this.inMemoryDataUrlRows ? ho(
21721
21726
  this.inMemoryDataUrlRows,
21722
21727
  {
21723
21728
  SearchText: this.activeSearchValue,
21724
21729
  Sort: this.buildActiveSortParam(),
21725
- filters: this.tabulatorInstance.getFilters(!0).filter((i) => i.type !== Oe.Keywords && i.type !== Oe.Like)
21730
+ filters: this.tabulatorInstance.getFilters(!0).filter((i) => i.type !== Re.Keywords && i.type !== Re.Like)
21726
21731
  },
21727
21732
  this.inMemoryFilterSortContext
21728
21733
  ) : this.tabulatorInstance.getData("active");
@@ -21771,7 +21776,7 @@ let g = class extends Ie {
21771
21776
  const y = l.length;
21772
21777
  E.forEach((T) => {
21773
21778
  T.__cxRowIndex = l.length, l.push(T);
21774
- }), of(E, this.tabulatorInstance), !p && l.length >= s && (p = !0, n(c, l)), p && this.updatePaginationCountLive(l.length), await ef(
21779
+ }), of(E, this.tabulatorInstance), !p && l.length >= s && (p = !0, n(c, l)), p && !this.hasActiveDataFilter && this.updatePaginationCountLive(l.length), await ef(
21775
21780
  E,
21776
21781
  d,
21777
21782
  y,
@@ -21780,7 +21785,7 @@ let g = class extends Ie {
21780
21785
  this.validationWorkerThreshold
21781
21786
  ) && i === this.dataUrlRequestId && a(l.length, h), await new Promise((T) => requestAnimationFrame(() => T()));
21782
21787
  }, w = g.IN_MEMORY_PARSE_CHUNK_SIZE;
21783
- return t === Ce.Csv ? await Hr(e, u, f, w) : t === Ce.Json ? await Vr(e, u, f, w, this.dataUrlPath) : t === Ce.Xml && await Nr(e, u, f, w, this.dataUrlPath), p || n(c, l), { columns: c, rows: l, validationResult: h };
21788
+ return t === Ce.Csv ? await Nr(e, u, f, w) : t === Ce.Json ? await Br(e, u, f, w, this.dataUrlPath) : t === Ce.Xml && await Vr(e, u, f, w, this.dataUrlPath), p || n(c, l), { columns: c, rows: l, validationResult: h };
21784
21789
  }
21785
21790
  /**
21786
21791
  * The host state `applyInMemoryFilterAndSort` reads — built fresh per call
@@ -21794,12 +21799,60 @@ let g = class extends Ie {
21794
21799
  tabulatorInstance: this.tabulatorInstance
21795
21800
  };
21796
21801
  }
21802
+ /**
21803
+ * Every filter narrowing the rows the table serves — search, dropdown/facet,
21804
+ * `initialFilter`, header filters.
21805
+ *
21806
+ * Once the instance is built it is the authority. Before that it has not been
21807
+ * handed anything yet, so fall back to what `FilterController` already holds
21808
+ * and `handleTableBuilt` is about to push: a `dataUrl` parse can outrun the
21809
+ * Tabulator build, and asking an unbuilt instance answers "no filters" — the
21810
+ * exact wrong answer for the counter, on top of an `initGuard` warning.
21811
+ */
21812
+ get activeDataFilters() {
21813
+ return this.tabulatorInstance?.initialized ? this.tabulatorInstance.getFilters(!0) : [...this.initialFilter || [], ...this.filterController.getFilters()];
21814
+ }
21815
+ /** Whether anything is narrowing the rows, making a raw parsed-row count the wrong total to show. */
21816
+ get hasActiveDataFilter() {
21817
+ return this.activeDataFilters.length > 0 || !!this.activeSearchValue;
21818
+ }
21819
+ /**
21820
+ * How many in-memory `dataUrl` rows survive the filters currently applied —
21821
+ * the figure the paginator has to report. Runs the same pass
21822
+ * `createInMemoryAjaxRequestFunc` serves pages from, minus the sort (which
21823
+ * cannot change a count) and minus the slice, so the two can never disagree.
21824
+ */
21825
+ countFilteredInMemoryRows(e) {
21826
+ const t = this.activeDataFilters.filter(
21827
+ (i) => i.type !== Re.Keywords && i.type !== Re.Like
21828
+ );
21829
+ return ho(
21830
+ e,
21831
+ { SearchText: this.activeSearchValue, filters: t },
21832
+ this.inMemoryFilterSortContext
21833
+ ).length;
21834
+ }
21835
+ /**
21836
+ * Recomputes the paginator's total from the rows parsed so far. Called from
21837
+ * both sides of the race — the end of the parse and `handleTableBuilt` — so
21838
+ * whichever lands last leaves the counter agreeing with the filters that are
21839
+ * actually applied. A no-op before any `dataUrl` rows exist.
21840
+ */
21841
+ refreshInMemoryPaginationCount() {
21842
+ this.inMemoryDataUrlRows && this.updatePaginationCountLive(
21843
+ this.countFilteredInMemoryRows(this.inMemoryDataUrlRows)
21844
+ );
21845
+ }
21797
21846
  /**
21798
21847
  * Updates the pagination control's displayed count and max page from a
21799
- * row count that has not gone through any redraw/filter/sort pipeline
21800
- * cheap (a couple of field writes), so it is safe to call on every
21801
- * streamed chunk while `dataUrl` parsing continues in the background
21802
- * after the first page is already shown, keeping "X of Y" current.
21848
+ * plain row count cheap (a couple of field writes), so it is safe to call
21849
+ * on every streamed chunk while `dataUrl` parsing continues in the
21850
+ * background after the first page is already shown, keeping "X of Y"
21851
+ * current.
21852
+ *
21853
+ * The caller owns the number: it has to be the count of what the table
21854
+ * actually serves, so pass {@link countFilteredInMemoryRows} rather than the
21855
+ * parsed-row total whenever a filter is active.
21803
21856
  */
21804
21857
  updatePaginationCountLive(e) {
21805
21858
  const t = this.tabulatorInstance?.modules?.page;
@@ -21807,7 +21860,7 @@ let g = class extends Ie {
21807
21860
  }
21808
21861
  async streamCsvData(e, t) {
21809
21862
  let i = !0;
21810
- const o = await Hr(
21863
+ const o = await Nr(
21811
21864
  e,
21812
21865
  (n) => {
21813
21866
  t === this.dataUrlRequestId && (this.columns = this.resolveColumnsAfterLoad(n));
@@ -21828,7 +21881,7 @@ let g = class extends Ie {
21828
21881
  };
21829
21882
  let n;
21830
21883
  try {
21831
- n = await Vr(
21884
+ n = await Br(
21832
21885
  e,
21833
21886
  (a) => {
21834
21887
  t === this.dataUrlRequestId && (this.columns = this.resolveColumnsAfterLoad(a));
@@ -21854,7 +21907,7 @@ let g = class extends Ie {
21854
21907
  };
21855
21908
  let n;
21856
21909
  try {
21857
- n = await Nr(
21910
+ n = await Vr(
21858
21911
  e,
21859
21912
  (a) => {
21860
21913
  t === this.dataUrlRequestId && (this.columns = this.resolveColumnsAfterLoad(a));
@@ -21890,7 +21943,7 @@ let g = class extends Ie {
21890
21943
  const d = (w, E) => {
21891
21944
  if (t !== this.dataUrlRequestId)
21892
21945
  return;
21893
- this.inMemoryValidationResult = E, this.inMemoryDataUrlRows && (Gr(
21946
+ this.inMemoryValidationResult = E, this.inMemoryDataUrlRows && (Ur(
21894
21947
  this.inMemoryDataUrlRows,
21895
21948
  h,
21896
21949
  c,
@@ -21922,13 +21975,13 @@ let g = class extends Ie {
21922
21975
  );
21923
21976
  if (t !== this.dataUrlRequestId)
21924
21977
  return;
21925
- this.inMemoryValidationResult = f, Gr(
21978
+ this.inMemoryValidationResult = f, Ur(
21926
21979
  u,
21927
21980
  h,
21928
21981
  c,
21929
21982
  u.length,
21930
21983
  f
21931
- ), t === this.dataUrlRequestId && this.emit("cx-table-data-load", {
21984
+ ), this.refreshInMemoryPaginationCount(), t === this.dataUrlRequestId && await this.tabulatorInstance?.setData(void 0), t === this.dataUrlRequestId && this.emit("cx-table-data-load", {
21932
21985
  detail: {
21933
21986
  format: o,
21934
21987
  rowCount: u.length,
@@ -22079,7 +22132,7 @@ let g = class extends Ie {
22079
22132
  })}>${q(this.showTableToolbar, () => this.renderToolbar())}<div part="table" class="table" @mouseover=${this.handleValidationMouseOver} @mouseout=${this.handleValidationMouseOut} @contextmenu=${this.handleHeaderContextMenu}></div>${q(this.showPaginationFooter, () => this.renderPaginationFooter())}</cx-space><cx-tooltip class="validation-tooltip" trigger="manual" disabled-hover-bridge></cx-tooltip><cx-table-header-menu ?open=${this.headerMenuOpen} point-x=${this.headerMenuPointX} point-y=${this.headerMenuPointY} field=${this.headerMenuField} ?hide-disabled=${this.headerMenuHideDisabled} @cx-table-header-menu-select=${this.handleHeaderMenuSelect} @cx-table-header-menu-close=${this.handleHeaderMenuClose}></cx-table-header-menu><cx-table-column-editor ?open=${this.columnEditorOpen} .entries=${this.columnEditorEntries} @cx-table-column-editor-apply=${this.handleColumnEditorApply} @cx-table-column-editor-cancel=${this.handleColumnEditorCancel}></cx-table-column-editor>`;
22080
22133
  }
22081
22134
  };
22082
- ho = /* @__PURE__ */ new WeakSet();
22135
+ co = /* @__PURE__ */ new WeakSet();
22083
22136
  _n = function() {
22084
22137
  return this.groupStartOpenValues !== void 0 && this.groupStartOpenValues !== null ? (r) => this.groupStartOpenValues?.includes(r) ?? !1 : this.groupStartOpen;
22085
22138
  };
@@ -22090,15 +22143,15 @@ g.styles = [
22090
22143
  ];
22091
22144
  g.dependencies = {
22092
22145
  "cx-button": xt,
22093
- "cx-checkbox": nn,
22094
- "cx-divider": on,
22146
+ "cx-checkbox": an,
22147
+ "cx-divider": rn,
22095
22148
  "cx-faceted-filter": re,
22096
22149
  "cx-format-number": xa,
22097
22150
  "cx-icon": lt,
22098
22151
  "cx-icon-button": ri,
22099
22152
  "cx-select": Ra,
22100
22153
  "cx-space": Di,
22101
- "cx-spinner": Jr,
22154
+ "cx-spinner": Yr,
22102
22155
  "cx-table-column-editor": Qe,
22103
22156
  "cx-table-footer": xi,
22104
22157
  "cx-table-header-menu": et,
@@ -23175,7 +23228,7 @@ g = v([
23175
23228
  ], g);
23176
23229
  const cf = g;
23177
23230
  var Ye = /* @__PURE__ */ ((r) => (r.Circles = "circles", r.Grid = "grid", r.Table = "table", r))(Ye || {});
23178
- const Ur = 165, df = ["HEX", "RGB", "CMYK", "PMS"], uf = {
23231
+ const Kr = 165, df = ["HEX", "RGB", "CMYK", "PMS"], uf = {
23179
23232
  resizable: !1
23180
23233
  }, pf = {
23181
23234
  field: "name",
@@ -23287,12 +23340,12 @@ const mf = (r, e) => [
23287
23340
  widthGrow: 2
23288
23341
  }
23289
23342
  ], gf = Y`:host{--grid-gap:var(--cx-spacing-medium);--padding:0;--swatch-min-height:50px;--swatch-font-size:var(--cx-font-size-medium);padding:var(--cx-focus-ring-width);width:100%;min-width:0;display:block;overflow:auto}.color-swatch-group__swatches{padding:var(--padding,0);width:100%;max-width:100%;height:100%}.color-swatch-group__table-container{max-width:100%}.color-swatch-group__title{--font-family:var(--swatch-font-family), var(--cx-font-sans)}.color-swatch-group__table-container:focus-visible{outline:var(--cx-focus-ring);outline-offset:var(--cx-focus-ring-offset)}.color-swatch-group__swatches--circles--horizontal>cx-color-swatch:not(:first-child){margin-left:var(--swatch-group-horizontal-gap,-100px)}.color-swatch-group__swatches--circles--vertical>cx-color-swatch:not(:first-child){margin-top:var(--swatch-group-vertical-gap,-50px)}.color-swatch-group__swatches--circles--horizontal__item{--swatch-content-padding:0 min(calc(var(--swatch-group-horizontal-gap,-100px) * -.5), 0) 0 0}.color-swatch-group__swatches--circles--vertical__item{--swatch-content-padding:0 0 min(calc(var(--swatch-group-vertical-gap,-50px) * -.5), 0) 0}.color-swatch-group__swatches--circles--vertical__item--mobile{--swatch-size:100%}.color-swatch-group__swatches--grid{align-items:stretch;gap:var(--grid-gap,var(--cx-spacing-medium));display:grid}.color-swatch-group__table{font-family:var(--swatch-font-family,var(--cx-font-sans));font-style:var(--swatch-font-style,normal);--body-background-color:transparent;--row-background-color:transparent;--row-even-background-color:transparent;--row-hover-background-color:var(--cx-color-neutral-50);--row-even-hover-background-color:var(--cx-color-neutral-50);--header-background-color:transparent;--group-row-background-color:transparent;--cell-border-color:transparent;--cell-bottom-border-color:transparent;--header-font-size:var(--swatch-font-size,var(--cx-font-size-large));--header-font-weight:var(--swatch-font-weight,var(--cx-font-weight-semibold));--header-border-right:none;--cell-font-size:var(--swatch-font-size,var(--cx-font-size-large));--cell-font-weight:var(--swatch-font-weight,var(--cx-font-weight-regular));--cell-line-height:normal;--cell-hover-background-color:transparent;--placeholder-font-size:var(--cx-font-size-medium-large);--cell-horizontal-padding:var(--cx-spacing-2x-small);--header-horizontal-padding:var(--cx-spacing-2x-small);--header-border-bottom:1px solid var(--cx-color-neutral-200);--hover-menu-background-color:var(--row-hover-background-color);--outer-border-color:transparent}.color-swatch-group__table::part(table){background-color:#0000}`;
23290
- var bf = Object.defineProperty, wf = Object.getOwnPropertyDescriptor, Se = (r, e, t, i) => {
23343
+ var bf = Object.defineProperty, wf = Object.getOwnPropertyDescriptor, De = (r, e, t, i) => {
23291
23344
  for (var s = i > 1 ? void 0 : i ? wf(e, t) : e, o = r.length - 1, n; o >= 0; o--)
23292
23345
  (n = r[o]) && (s = (i ? n(e, t, s) : n(s)) || s);
23293
23346
  return i && s && bf(e, t, s), s;
23294
23347
  };
23295
- const Kr = "unnamed";
23348
+ const qr = "unnamed";
23296
23349
  let ge = class extends Ie {
23297
23350
  constructor() {
23298
23351
  super(), this.localize = new tt(this), this.variant = Ye.Table, this.data = [], this.maxCol = 4, this.canCopy = !1, this.showCodes = ["HEX", "RGB", "CMYK", "PMS"], this.multiLanguage = !1, this.breakpoints = [350, 696, 1024], this.deviceType = Mi.Desktop, this.currentCol = 0, this.isFocused = !1, this.canFocusContainer = !0, this.isContainerFocused = !1, this.handleWindowResize = this.handleWindowResize.bind(this);
@@ -23320,7 +23373,7 @@ let ge = class extends Ie {
23320
23373
  getComputedStyle(this.containerEl).getPropertyValue("--grid-gap")
23321
23374
  );
23322
23375
  this.currentCol = Math.floor(
23323
- (r + e) / (Ur + e)
23376
+ (r + e) / (Kr + e)
23324
23377
  );
23325
23378
  break;
23326
23379
  }
@@ -23331,7 +23384,7 @@ let ge = class extends Ie {
23331
23384
  }
23332
23385
  }
23333
23386
  handleKeyDown(r) {
23334
- !(r.target instanceof Xr) && !r.target?.closest(
23387
+ !(r.target instanceof Jr) && !r.target?.closest(
23335
23388
  "[data-table-container]"
23336
23389
  ) || (r.key === "Enter" || r.key === " ") && (this.isFocused = !0);
23337
23390
  }
@@ -23362,7 +23415,7 @@ let ge = class extends Ie {
23362
23415
  categorizeByPalette() {
23363
23416
  return Object.values(
23364
23417
  this.data.reduce((r, e) => {
23365
- const t = e.palette?.trim() ? e.palette : Kr;
23418
+ const t = e.palette?.trim() ? e.palette : qr;
23366
23419
  return r[t] || (r[t] = { colors: [], palette: t }), r[t].colors.push(e), r;
23367
23420
  }, {})
23368
23421
  );
@@ -23400,7 +23453,7 @@ let ge = class extends Ie {
23400
23453
  return x`
23401
23454
  ${q(
23402
23455
  this.variant === Ye.Table,
23403
- () => x`<cx-space class="color-swatch-group__swatches" direction="vertical" spacing="2x-small">${Ko(
23456
+ () => x`<cx-space class="color-swatch-group__swatches" direction="vertical" spacing="2x-small">${qo(
23404
23457
  [this.data, this.canCopy],
23405
23458
  () => this.categorizeByPalette().map(
23406
23459
  (t) => {
@@ -23410,7 +23463,7 @@ let ge = class extends Ie {
23410
23463
  })) : t.colors;
23411
23464
  return x`<div tabindex=${J(
23412
23465
  this.canFocusContainer ? "0" : void 0
23413
- )} data-table-container class="color-swatch-group__table-container" @focusin=${this.handleFocusIn} @focusout=${this.handleFocusOut} @keydown=${this.handleKeyDown}><cx-typography class="color-swatch-group__title" variant="h3">${t.palette === Kr ? this.localize.term("noPalette") : this.localize.term("shadesPalette", t.palette)}</cx-typography><cx-table part="table" tabindex=${this.isFocused ? void 0 : "-1"} no-selectable layout="fitColumns" .columns=${Ko(
23466
+ )} data-table-container class="color-swatch-group__table-container" @focusin=${this.handleFocusIn} @focusout=${this.handleFocusOut} @keydown=${this.handleKeyDown}><cx-typography class="color-swatch-group__title" variant="h3">${t.palette === qr ? this.localize.term("noPalette") : this.localize.term("shadesPalette", t.palette)}</cx-typography><cx-table part="table" tabindex=${this.isFocused ? void 0 : "-1"} no-selectable layout="fitColumns" .columns=${qo(
23414
23467
  [this.showCodes, this.canCopy, this.localize],
23415
23468
  () => this.getTableColumns(t.palette)
23416
23469
  )} .columnDefaults=${uf} .rowHeight=${void 0} .data=${i} class="color-swatch-group__table"></cx-table></div>`;
@@ -23422,7 +23475,7 @@ let ge = class extends Ie {
23422
23475
  "color-swatch-group__swatches--grid": this.variant === Ye.Grid,
23423
23476
  [`color-swatch-group__swatches--circles--${r}`]: this.variant === Ye.Circles
23424
23477
  })} style=${at({
23425
- gridTemplateColumns: this.currentCol >= this.maxCol ? `repeat(${this.maxCol}, 1fr)` : `repeat(auto-fit, minmax(${Ur}px, 1fr))`
23478
+ gridTemplateColumns: this.currentCol >= this.maxCol ? `repeat(${this.maxCol}, 1fr)` : `repeat(auto-fit, minmax(${Kr}px, 1fr))`
23426
23479
  })}>${qe(
23427
23480
  this.data,
23428
23481
  (t) => t.name,
@@ -23441,30 +23494,30 @@ let ge = class extends Ie {
23441
23494
  };
23442
23495
  ge.styles = [We, gf];
23443
23496
  ge.dependencies = {
23444
- "cx-color-swatch": Xr,
23497
+ "cx-color-swatch": Jr,
23445
23498
  "cx-space": Di,
23446
23499
  "cx-table": cf,
23447
- "cx-typography": qr
23500
+ "cx-typography": Xr
23448
23501
  };
23449
- Se([
23502
+ De([
23450
23503
  pe(".color-swatch-group__swatches")
23451
23504
  ], ge.prototype, "containerEl", 2);
23452
- Se([
23505
+ De([
23453
23506
  Sa("cx-table")
23454
23507
  ], ge.prototype, "tableEls", 2);
23455
- Se([
23508
+ De([
23456
23509
  m({ reflect: !0, type: String })
23457
23510
  ], ge.prototype, "variant", 2);
23458
- Se([
23511
+ De([
23459
23512
  m({ reflect: !0, type: Array })
23460
23513
  ], ge.prototype, "data", 2);
23461
- Se([
23514
+ De([
23462
23515
  m({ attribute: "max-col", reflect: !0, type: Number })
23463
23516
  ], ge.prototype, "maxCol", 2);
23464
- Se([
23517
+ De([
23465
23518
  m({ attribute: "can-copy", reflect: !0, type: Boolean })
23466
23519
  ], ge.prototype, "canCopy", 2);
23467
- Se([
23520
+ De([
23468
23521
  m({
23469
23522
  attribute: "show-codes",
23470
23523
  converter: {
@@ -23474,37 +23527,37 @@ Se([
23474
23527
  reflect: !0
23475
23528
  })
23476
23529
  ], ge.prototype, "showCodes", 2);
23477
- Se([
23530
+ De([
23478
23531
  m({ attribute: "multi-language", reflect: !0, type: Boolean })
23479
23532
  ], ge.prototype, "multiLanguage", 2);
23480
- Se([
23533
+ De([
23481
23534
  M()
23482
23535
  ], ge.prototype, "breakpoints", 2);
23483
- Se([
23536
+ De([
23484
23537
  M()
23485
23538
  ], ge.prototype, "deviceType", 2);
23486
- Se([
23539
+ De([
23487
23540
  M()
23488
23541
  ], ge.prototype, "currentCol", 2);
23489
- Se([
23542
+ De([
23490
23543
  M()
23491
23544
  ], ge.prototype, "isFocused", 2);
23492
- Se([
23545
+ De([
23493
23546
  M()
23494
23547
  ], ge.prototype, "canFocusContainer", 2);
23495
- Se([
23548
+ De([
23496
23549
  M()
23497
23550
  ], ge.prototype, "isContainerFocused", 2);
23498
- Se([
23499
- rn(100)
23551
+ De([
23552
+ nn(100)
23500
23553
  ], ge.prototype, "handleWindowResize", 1);
23501
- Se([
23554
+ De([
23502
23555
  H("variant", { waitUntilFirstUpdate: !0 })
23503
23556
  ], ge.prototype, "handleResize", 1);
23504
- Se([
23557
+ De([
23505
23558
  H("isFocused", { waitUntilFirstUpdate: !0 })
23506
23559
  ], ge.prototype, "handleIsFocusedChange", 1);
23507
- ge = Se([
23560
+ ge = De([
23508
23561
  He("cx-color-swatch-group")
23509
23562
  ], ge);
23510
23563
  export {
@@ -23514,8 +23567,8 @@ export {
23514
23567
  cf as a,
23515
23568
  Ct as b,
23516
23569
  Ye as c,
23517
- qo as d,
23570
+ Xo as d,
23518
23571
  re as e,
23519
23572
  ne as f,
23520
- Xo as o
23573
+ Jo as o
23521
23574
  };