@orangelogic/design-system 2.172.0 → 2.174.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 (47) hide show
  1. package/library/chunks/{asset-link-format.BATKDRgD.js → asset-link-format.NhSLWk_Y.js} +8 -6
  2. package/library/chunks/{color-swatch-group.CQlgq_I5.js → color-swatch-group.C01UAz1A.js} +530 -512
  3. package/library/chunks/{confirm-popover.hHcCIzpX.js → confirm-popover.Cn1BaP0W.js} +1 -1
  4. package/library/chunks/{dialog.BaHYOyYO.js → dialog.clJBka-1.js} +1 -1
  5. package/library/chunks/{document-viewer.B89YB5oo.js → document-viewer.DxPw7xHV.js} +1 -1
  6. package/library/chunks/{folder-select.C6Sv4jtu.js → folder-select.BgWvY0t0.js} +346 -320
  7. package/library/chunks/{icon-button.DJvfUmOl.js → icon-button.BWToMtdK.js} +3 -3
  8. package/library/chunks/{markdown.qQGMz1OY.js → markdown.CESgIEEE.js} +1 -1
  9. package/library/chunks/{pagination.CwKlKOek.js → pagination.Do36kaZK.js} +1 -1
  10. package/library/chunks/{tab-group.C_n0GEc_.js → tab-group.DYywhd3A.js} +1 -1
  11. package/library/components/alert.js +1 -1
  12. package/library/components/asset-link-format.js +1 -1
  13. package/library/components/atoms.js +6 -6
  14. package/library/components/audio.js +1 -1
  15. package/library/components/badge.js +1 -1
  16. package/library/components/color-swatch-group.js +1 -1
  17. package/library/components/confirm-popover.js +2 -2
  18. package/library/components/date-calendar.js +1 -1
  19. package/library/components/dialog.js +2 -2
  20. package/library/components/document-viewer.js +1 -1
  21. package/library/components/drawer.js +1 -1
  22. package/library/components/dynamic-select.js +144 -128
  23. package/library/components/file-on-demand.js +4 -4
  24. package/library/components/folder-select.js +1 -1
  25. package/library/components/icon-button.js +1 -1
  26. package/library/components/markdown.js +2 -2
  27. package/library/components/masonry.js +1 -1
  28. package/library/components/molecules.js +2 -2
  29. package/library/components/organisms.js +2 -2
  30. package/library/components/pagination.js +2 -2
  31. package/library/components/sidebar.js +1 -1
  32. package/library/components/size-input-group.js +1 -1
  33. package/library/components/tab-group.js +2 -2
  34. package/library/components/tab.js +1 -1
  35. package/library/components/tag.js +1 -1
  36. package/library/components/typeface.js +1 -1
  37. package/library/components/types.js +15 -15
  38. package/library/package.json +1 -1
  39. package/library/packages/atoms/src/components/icon-button/icon-button.d.ts +2 -1
  40. package/library/packages/hybrid/table-core/src/table/components/table-toolbar/table-dropdown-filter.d.ts +13 -1
  41. package/library/packages/hybrid/table-core/src/table/components/table-toolbar/table-toolbar.d.ts +3 -0
  42. package/library/packages/molecules/src/dynamic-select/dynamic-select.d.ts +14 -0
  43. package/library/packages/molecules/src/faceted-filter/faceted-filter.d.ts +1 -0
  44. package/library/packages/molecules/src/folder-select/components/folder-select-tree/folder-select-tree.d.ts +16 -0
  45. package/library/packages/molecules/src/folder-select/folder-select.d.ts +18 -5
  46. package/library/react-web-component.d.ts +6 -1
  47. package/package.json +1 -1
@@ -3,15 +3,15 @@ import { C as Ir, T as Rn } from "./typography.IqHbnd3C.js";
3
3
  import { n as m, C as Pe } from "./lib-cortex-element.CVMmyPMC.js";
4
4
  import { C as Hr, a as es } from "./color-swatch.DpzAGKQx.js";
5
5
  import { c as $e } from "./component.styles.CRO4Odto.js";
6
- import { C as Ct } from "./button.zWaIO1sl.js";
7
- import { C as Sn, o as kn, O as No } from "./dialog.BaHYOyYO.js";
8
- import { C as oi } from "./icon-button.DJvfUmOl.js";
6
+ import { C as Et } from "./button.zWaIO1sl.js";
7
+ import { C as Sn, o as kn, O as No } from "./dialog.clJBka-1.js";
8
+ import { C as oi } from "./icon-button.BWToMtdK.js";
9
9
  import Pt from "../components/tooltip.js";
10
- import { i as Nr, r as Dn, f as Jt, m as Tn, a as Mn, t as Vr, g as Fn, b as Ln, c as zn } from "./toast.CXEAfCvN.js";
10
+ import { i as Nr, r as Tn, f as Jt, m as Dn, a as Mn, t as Vr, g as Fn, b as Ln, c as zn } from "./toast.CXEAfCvN.js";
11
11
  import { c as Ie } from "./custom-element.L4WJXn1j.js";
12
- import { L as et } from "./i18n.DbXTTLXx.js";
12
+ import { L as tt } from "./i18n.DbXTTLXx.js";
13
13
  import { b as _n, S as On, c as Vo, p as An, w as V, E as Pn } from "./watch.DJF5K-8U.js";
14
- import { i as q, x, E as bt, B as In } from "./lit-element.jLBm65_O.js";
14
+ import { i as q, x, E as ut, B as In } from "./lit-element.jLBm65_O.js";
15
15
  import { r as F } from "./state.CSDxrqLd.js";
16
16
  import { e as ue } from "./query.BBf1UFkC.js";
17
17
  import { a as Hn, b as Nn } from "./_baseXor.DixEm6JQ.js";
@@ -20,12 +20,12 @@ import { b as Gi, a as Vn, c as $r, t as Bn } from "./_baseIteratee.sC2wLi2m.js"
20
20
  import { l as si, i as $n, f as Wn } from "./_flatRest.D3ZVApI5.js";
21
21
  import { a as ao } from "./toString.B1zKIiZc.js";
22
22
  import { a as jn, b as Gn } from "./_baseUniq.lwMgmtt2.js";
23
- import { C as Et } from "./icon.D5iM9wXS.js";
23
+ import { C as gt } from "./icon.D5iM9wXS.js";
24
24
  import { C as Wr } from "./input.B-c9KEAH.js";
25
25
  import { d as jr } from "./debounce.DaHuiSGU.js";
26
- import { e as ot } from "./class-map.BiVq-cVR.js";
26
+ import { e as Ze } from "./class-map.BiVq-cVR.js";
27
27
  import { c as Ke } from "./repeat.CFjcER6_.js";
28
- import { n as Y } from "./when.Dr1es41R.js";
28
+ import { n as J } from "./when.Dr1es41R.js";
29
29
  import { d as Un, j as Kn, b as qn } from "./_baseClone.BHNjfIdS.js";
30
30
  import { b as Xn } from "./capitalize.CIBKBL10.js";
31
31
  import { S as Jn } from "./sortable.esm.oSzf6C5Q.js";
@@ -35,19 +35,19 @@ import ri from "../components/menu.js";
35
35
  import ni from "../components/menu-item.js";
36
36
  import Qn from "../components/popup.js";
37
37
  import { r as ea } from "./choose.BTbF6BAn.js";
38
- import { o as te } from "./if-defined.BRoBj_Rp.js";
39
- import { o as pt } from "./style-map.llVFPd__.js";
38
+ import { o as Z } from "./if-defined.BRoBj_Rp.js";
39
+ import { o as ft } from "./style-map.llVFPd__.js";
40
40
  import ai from "../components/dropdown.js";
41
41
  import ta from "../components/menu-section.js";
42
42
  import Gr from "../components/checkbox.js";
43
- import { C as ia, P as sa } from "./pagination.CwKlKOek.js";
43
+ import { C as ia, P as sa } from "./pagination.Do36kaZK.js";
44
44
  import { H as Ur } from "./slot.j5oheLJC.js";
45
45
  import { g as B, a as Bo } from "./dom.C5aVLhKS.js";
46
46
  import "./browser.BHOCIF_A.js";
47
47
  import "./form.CP9KLGjF.js";
48
48
  import "./purify.es.BIuh5IAZ.js";
49
49
  import { D as Kr, a as oa, t as ra, b as qr } from "./date-picker.BGHn6qg8.js";
50
- import { D as Di } from "./transformation.8uLv6uwG.js";
50
+ import { D as Ti } from "./transformation.8uLv6uwG.js";
51
51
  import { s as P, h as $o, b as Ui, c as lo } from "./string.BhJ0Zogu.js";
52
52
  import { a as na } from "./_commonjsHelpers.DQNKXVTB.js";
53
53
  import { d as aa } from "./debounce.Bv1rtE8D.js";
@@ -108,19 +108,19 @@ function xa(n, e) {
108
108
  function Ra(n) {
109
109
  return $n(n) ? void 0 : n;
110
110
  }
111
- var Sa = 1, ka = 2, Da = 4, Go = Wn(function(n, e) {
111
+ var Sa = 1, ka = 2, Ta = 4, Go = Wn(function(n, e) {
112
112
  var t = {};
113
113
  if (n == null)
114
114
  return t;
115
115
  var i = !1;
116
116
  e = ao(e, function(o) {
117
117
  return o = $r(o, n), i || (i = o.length > 1), o;
118
- }), Un(n, Kn(n), t), i && (t = qn(t, Sa | ka | Da, Ra));
118
+ }), Un(n, Kn(n), t), i && (t = qn(t, Sa | ka | Ta, Ra));
119
119
  for (var s = e.length; s--; )
120
120
  xa(t, e[s]);
121
121
  return t;
122
122
  });
123
- const Ta = q`:host{min-height:40px;display:block}.board-list-item{--toggle-size:var(--cx-toggle-size-medium);border:1px solid #0000;border-bottom-color:var(--cx-color-neutral-300);font-family:var(--cx-font-sans);min-height:40px;padding-left:var(--cx-spacing-3x-small);background-color:var(--cx-color-neutral-100);align-items:center;gap:16px;display:flex;overflow:hidden}.board-list-item--placeholder{border-bottom-color:#0000}.board-list-item--placeholder .board-list-item__control{display:none}.board-list-item:not(.board-list-item--group):not(.board-list-item--placeholder):hover{transition:var(--cx-transition-slow);background-color:var(--cx-color-primary-50);cursor:grab;border:1px solid var(--cx-color-primary-300)}.board-list-item__control{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);transition:var(--cx-transition-fast) border-color, var(--cx-transition-fast) background-color, var(--cx-transition-fast) color, var(--cx-transition-fast) box-shadow;cursor:pointer;border-radius:2px;flex:none;justify-content:center;align-items:center;display:inline-flex;position:relative}.board-list-item__text{flex:1;align-items:center;width:0;height:100%;display:flex;position:relative}.board-list-item__text__content{font-weight:var(--cx-font-weight-regular);line-height:var(--cx-item-line-height,1.4);text-overflow:ellipsis;z-index:1;display:block;position:relative;overflow:hidden}.board-list-item__text__anchor{z-index:0;width:100%;height:100%;display:block;position:absolute;top:0;left:0}.board-list-item__checked-icon{display:inline-flex}.board-list-item--group{background-color:var(--cx-color-neutral-300)}.board-list-item:not(.board-list-item--checked):not(.board-list-item--readonly) .board-list-item__control:hover{border-color:var(--cx-input-border-color-hover);background-color:var(--cx-input-background-color-hover)}.board-list-item--checked .board-list-item__control{border-color:var(--cx-color-primary);background-color:var(--cx-color-primary)}.board-list-item--readonly .board-list-item__control{cursor:default;background-color:#0000;border-color:#0000}:host(:focus-visible){outline:var(--cx-focus-ring);outline-offset:calc(-1 * var(--cx-focus-ring-width));border-radius:2px}`;
123
+ const Da = q`:host{min-height:40px;display:block}.board-list-item{--toggle-size:var(--cx-toggle-size-medium);border:1px solid #0000;border-bottom-color:var(--cx-color-neutral-300);font-family:var(--cx-font-sans);min-height:40px;padding-left:var(--cx-spacing-3x-small);background-color:var(--cx-color-neutral-100);align-items:center;gap:16px;display:flex;overflow:hidden}.board-list-item--placeholder{border-bottom-color:#0000}.board-list-item--placeholder .board-list-item__control{display:none}.board-list-item:not(.board-list-item--group):not(.board-list-item--placeholder):hover{transition:var(--cx-transition-slow);background-color:var(--cx-color-primary-50);cursor:grab;border:1px solid var(--cx-color-primary-300)}.board-list-item__control{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);transition:var(--cx-transition-fast) border-color, var(--cx-transition-fast) background-color, var(--cx-transition-fast) color, var(--cx-transition-fast) box-shadow;cursor:pointer;border-radius:2px;flex:none;justify-content:center;align-items:center;display:inline-flex;position:relative}.board-list-item__text{flex:1;align-items:center;width:0;height:100%;display:flex;position:relative}.board-list-item__text__content{font-weight:var(--cx-font-weight-regular);line-height:var(--cx-item-line-height,1.4);text-overflow:ellipsis;z-index:1;display:block;position:relative;overflow:hidden}.board-list-item__text__anchor{z-index:0;width:100%;height:100%;display:block;position:absolute;top:0;left:0}.board-list-item__checked-icon{display:inline-flex}.board-list-item--group{background-color:var(--cx-color-neutral-300)}.board-list-item:not(.board-list-item--checked):not(.board-list-item--readonly) .board-list-item__control:hover{border-color:var(--cx-input-border-color-hover);background-color:var(--cx-input-background-color-hover)}.board-list-item--checked .board-list-item__control{border-color:var(--cx-color-primary);background-color:var(--cx-color-primary)}.board-list-item--readonly .board-list-item__control{cursor:default;background-color:#0000;border-color:#0000}:host(:focus-visible){outline:var(--cx-focus-ring);outline-offset:calc(-1 * var(--cx-focus-ring-width));border-radius:2px}`;
124
124
  var Ma = Object.defineProperty, Fa = Object.getOwnPropertyDescriptor, We = (n, e, t, i) => {
125
125
  for (var s = i > 1 ? void 0 : i ? Fa(e, t) : e, o = n.length - 1, r; o >= 0; o--)
126
126
  (r = n[o]) && (s = (i ? r(e, t, s) : r(s)) || s);
@@ -128,7 +128,7 @@ var Ma = Object.defineProperty, Fa = Object.getOwnPropertyDescriptor, We = (n, e
128
128
  };
129
129
  let Ee = class extends Pe {
130
130
  constructor() {
131
- super(...arguments), this.localize = new et(this), this.text = "", this.tooltip = "", this.readonly = !1, this.placeholder = !1, this.selected = !1, this.configurable = !1, this.disabledTooltip = !1, this.isGroup = !1;
131
+ 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;
132
132
  }
133
133
  onConfigButtonClick(n) {
134
134
  n.stopPropagation(), this.emit("cx-multi-select-configure", {
@@ -149,7 +149,7 @@ let Ee = class extends Pe {
149
149
  this.tooltipElement && (this.tooltipElement.open = !1);
150
150
  }
151
151
  render() {
152
- return x`<div class=${ot({
152
+ return x`<div class=${Ze({
153
153
  "board-list-item": !0,
154
154
  "board-list-item--checked": this.selected,
155
155
  "board-list-item--group": this.isGroup,
@@ -158,9 +158,9 @@ let Ee = class extends Pe {
158
158
  })}><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">${Zn(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>`;
159
159
  }
160
160
  };
161
- Ee.styles = [$e, Ta];
161
+ Ee.styles = [$e, Da];
162
162
  Ee.dependencies = {
163
- "cx-icon": Et,
163
+ "cx-icon": gt,
164
164
  "cx-icon-button": oi,
165
165
  "cx-line-clamp": Yn,
166
166
  "cx-tooltip": Pt
@@ -220,7 +220,7 @@ var Oa = Object.defineProperty, Aa = Object.getOwnPropertyDescriptor, X = (n, e,
220
220
  };
221
221
  let $ = class extends Pe {
222
222
  constructor() {
223
- super(), this.localize = new et(this), this.boardTitle = "", this.name = "", this.ignoreTypes = [], this.data = [], this.sort = !1, this.group = !1, this.configurable = !1, this.all = !1, this.allowSearch = !1, this.abortDrag = !1, this.items = [], this._allItems = [], this._filteredItems = [], this._selectedItems = {}, this._selectedItemOrder = {}, this.searchValue = "", this.sortable = null, this._totalCount = 0, this._totalDisplayedCount = 0, this._indexMap = {}, this.isDragging = !1, this.start = 0, this.end = 20, this.previous = [], this.lastSelectedItem = null, this.handleAdd = this.handleAdd.bind(this), this.handleEnd = this.handleEnd.bind(this), this.handleMove = this.handleMove.bind(this), this.handleRemove = this.handleRemove.bind(this), this.handleStart = this.handleStart.bind(this), this.handleUpdate = this.handleUpdate.bind(this), this.handleSelectAll = this.handleSelectAll.bind(this);
223
+ super(), this.localize = new tt(this), this.boardTitle = "", this.name = "", this.ignoreTypes = [], this.data = [], this.sort = !1, this.group = !1, this.configurable = !1, this.all = !1, this.allowSearch = !1, this.abortDrag = !1, this.items = [], this._allItems = [], this._filteredItems = [], this._selectedItems = {}, this._selectedItemOrder = {}, this.searchValue = "", this.sortable = null, this._totalCount = 0, this._totalDisplayedCount = 0, this._indexMap = {}, this.isDragging = !1, this.start = 0, this.end = 20, this.previous = [], this.lastSelectedItem = null, this.handleAdd = this.handleAdd.bind(this), this.handleEnd = this.handleEnd.bind(this), this.handleMove = this.handleMove.bind(this), this.handleRemove = this.handleRemove.bind(this), this.handleStart = this.handleStart.bind(this), this.handleUpdate = this.handleUpdate.bind(this), this.handleSelectAll = this.handleSelectAll.bind(this);
224
224
  }
225
225
  get allItems() {
226
226
  return this._allItems;
@@ -342,7 +342,7 @@ let $ = class extends Pe {
342
342
  let s = this.selectedItemAsArray;
343
343
  s.includes(i) || (s = [i]);
344
344
  const o = s.length > 1;
345
- e = Dn(
345
+ e = Tn(
346
346
  e,
347
347
  s.map((r) => Jt(this.items, "id", r))
348
348
  ), this.handleUpdateEvent(e, n.type, o, n.newIndex);
@@ -369,7 +369,7 @@ let $ = class extends Pe {
369
369
  this.handleDefaultSelect(n);
370
370
  return;
371
371
  }
372
- const s = Tn(
372
+ const s = Dn(
373
373
  this.selectedItemAsArray,
374
374
  n.dataset.id,
375
375
  e
@@ -545,12 +545,12 @@ let $ = class extends Pe {
545
545
  this.initSortable(), this.items = [...this.data], this.group ? this._allItems = this.concatGroupItems(this.items) : this._allItems = [...this.items], this._totalCount = this.data.length;
546
546
  }
547
547
  render() {
548
- const n = this.selectedCount, e = this.isAllSelected ? x`<cx-icon class="board__checked-icon" name="check"></cx-icon>` : this.isPartiallySelected ? x`<cx-icon class="board__checked-icon" name="remove"></cx-icon>` : bt;
549
- return x`<div class=${ot({
548
+ const n = this.selectedCount, e = this.isAllSelected ? x`<cx-icon class="board__checked-icon" name="check"></cx-icon>` : this.isPartiallySelected ? x`<cx-icon class="board__checked-icon" name="remove"></cx-icon>` : ut;
549
+ return x`<div class=${Ze({
550
550
  board: !0,
551
551
  "board--checked": this.all && n,
552
552
  "board--dragging": this.isDragging
553
- })}><div class="board__header">${this.all ? x`<span class="board__select-all" part="select-all" role="checkbox" tabindex="0" aria-checked=${this.isAllSelected ? "true" : this.isPartiallySelected ? "mixed" : "false"} aria-label=${this.localize.term("selectAll")} @click=${this.handleSelectAll} @keydown=${this.handleSelectAllKeydown}>${e}</span>` : ""}<cx-tooltip content=${this.boardTitle} hoist ?disabled=${!this.boardTitle || this.isDragging}><div class="board__header__text">${this.boardTitle}</div></cx-tooltip>${Y(
553
+ })}><div class="board__header">${this.all ? x`<span class="board__select-all" part="select-all" role="checkbox" tabindex="0" aria-checked=${this.isAllSelected ? "true" : this.isPartiallySelected ? "mixed" : "false"} aria-label=${this.localize.term("selectAll")} @click=${this.handleSelectAll} @keydown=${this.handleSelectAllKeydown}>${e}</span>` : ""}<cx-tooltip content=${this.boardTitle} hoist ?disabled=${!this.boardTitle || this.isDragging}><div class="board__header__text">${this.boardTitle}</div></cx-tooltip>${J(
554
554
  this.allowSearch,
555
555
  () => x`<div class="board__header__search"><cx-input part="search-input" aria-label=${this.localize.term("search")} title=${this.localize.term("search")} placeholder=${this.localize.term("search")} size="small" value=${this.searchValue} @cx-input=${this.handleSearchChange}><cx-icon name="search" slot="prefix"></cx-icon><cx-icon-button part="search-input-clear" label=${this.localize.term("clearSearch")} name="close" size="small" slot="suffix" @click=${this.handleSearchClear}></cx-icon-button></cx-input></div>`
556
556
  )}</div><div part="list" class="board__list" role="listbox" aria-label=${this.boardTitle || this.name} aria-multiselectable="true" tabindex="-1" @scroll=${this.handleListScroll}><div style="height: ${40 * this.start}px"></div>${Ke(
@@ -566,7 +566,7 @@ let $ = class extends Pe {
566
566
  $.styles = [$e, La];
567
567
  $.dependencies = {
568
568
  "cx-board-list-item": Ee,
569
- "cx-icon": Et,
569
+ "cx-icon": gt,
570
570
  "cx-icon-button": oi,
571
571
  "cx-input": Wr,
572
572
  "cx-tooltip": Pt
@@ -679,9 +679,9 @@ var Ia = Object.defineProperty, Ha = Object.getOwnPropertyDescriptor, qe = (n, e
679
679
  (r = n[o]) && (s = (i ? r(e, t, s) : r(s)) || s);
680
680
  return i && s && Ia(e, t, s), s;
681
681
  };
682
- let Te = class extends Pe {
682
+ let De = class extends Pe {
683
683
  constructor() {
684
- super(...arguments), this.localize = new et(this), this.firstColumnData = {
684
+ super(...arguments), this.localize = new tt(this), this.firstColumnData = {
685
685
  id: "",
686
686
  items: [],
687
687
  sort: !0,
@@ -897,51 +897,51 @@ let Te = class extends Pe {
897
897
  return x`<div class="multi-select" @cx-board-change=${this.handleBoardChange} @cx-board-selected-change=${this.handleSelectedChange}><cx-board part="board-1" title=${this.firstColumnData.title} name=${this.firstColumnData.id} all .data=${this.board1Data} ?sort=${this.firstColumnData.sort ?? !1} .ignore-types=${this.ignoreTypes} allow-search></cx-board><div class="multi-select__control"><cx-tooltip part="tooltip" content=${this.localize.term("moveSelectedItemRight")} hoist ?disabled=${!n.length}><cx-icon-button class="multi-select__control__move-button" name="arrow_forward_ios" label=${this.localize.term("moveSelectedItemRight")} @click=${this.handleMoveItemsRight} ?disabled=${!n.length}></cx-icon-button></cx-tooltip><cx-tooltip part="tooltip" content=${this.localize.term("moveSelectedItemLeft")} hoist ?disabled=${!e.length}><cx-icon-button class="multi-select__control__move-button" name="arrow_back_ios" label=${this.localize.term("moveSelectedItemLeft")} @click=${this.handleMoveItemsLeft} ?disabled=${!e.length}></cx-icon-button></cx-tooltip></div><cx-board part="board-2" title=${this.secondColumnData.title} name=${this.secondColumnData.id} all .data=${this.board2Data} ?configurable=${this.configurable} ?sort=${this.secondColumnData.sort ?? !0}></cx-board></div>`;
898
898
  }
899
899
  };
900
- Te.styles = [$e, Pa];
901
- Te.dependencies = {
900
+ De.styles = [$e, Pa];
901
+ De.dependencies = {
902
902
  "cx-board": $,
903
903
  "cx-icon-button": oi,
904
904
  "cx-tooltip": Pt
905
905
  };
906
906
  qe([
907
907
  ue(".multi-select")
908
- ], Te.prototype, "multiSelect", 2);
908
+ ], De.prototype, "multiSelect", 2);
909
909
  qe([
910
910
  ue('[part~="board-1"]')
911
- ], Te.prototype, "board1", 2);
911
+ ], De.prototype, "board1", 2);
912
912
  qe([
913
913
  ue('[part~="board-2"]')
914
- ], Te.prototype, "board2", 2);
914
+ ], De.prototype, "board2", 2);
915
915
  qe([
916
916
  m({ attribute: "first-column-data", type: Object })
917
- ], Te.prototype, "firstColumnData", 2);
917
+ ], De.prototype, "firstColumnData", 2);
918
918
  qe([
919
919
  m({ attribute: "second-column-data", type: Object })
920
- ], Te.prototype, "secondColumnData", 2);
920
+ ], De.prototype, "secondColumnData", 2);
921
921
  qe([
922
922
  m({ attribute: "configurable", type: Boolean })
923
- ], Te.prototype, "configurable", 2);
923
+ ], De.prototype, "configurable", 2);
924
924
  qe([
925
925
  m({ attribute: "ignored-types", type: Array })
926
- ], Te.prototype, "ignoreTypes", 2);
926
+ ], De.prototype, "ignoreTypes", 2);
927
927
  qe([
928
928
  m({ attribute: "add-limit", type: Number })
929
- ], Te.prototype, "addLimit", 2);
929
+ ], De.prototype, "addLimit", 2);
930
930
  qe([
931
931
  F()
932
- ], Te.prototype, "itemMap", 2);
932
+ ], De.prototype, "itemMap", 2);
933
933
  qe([
934
934
  F()
935
- ], Te.prototype, "selectedItems", 2);
935
+ ], De.prototype, "selectedItems", 2);
936
936
  qe([
937
937
  F()
938
- ], Te.prototype, "initialSecondColumnItems", 2);
938
+ ], De.prototype, "initialSecondColumnItems", 2);
939
939
  qe([
940
940
  V("secondColumnData")
941
- ], Te.prototype, "onSecondColumnDataChange", 1);
942
- Te = qe([
941
+ ], De.prototype, "onSecondColumnDataChange", 1);
942
+ De = qe([
943
943
  Ie("cx-multi-select")
944
- ], Te);
944
+ ], De);
945
945
  var $t = /* @__PURE__ */ ((n) => (n.Available = "available", n.Visible = "visible", n))($t || {});
946
946
  const Na = q`:host{display:contents}cx-dialog{--width:800px}cx-multi-select{height:28rem;display:block}.table-column-editor__note{color:var(--cx-color-neutral-600);font-size:var(--cx-font-size-small);margin:0}.table-column-editor__footer{gap:var(--cx-spacing-small);justify-content:flex-end;display:flex}`;
947
947
  var Va = Object.defineProperty, Ba = Object.getOwnPropertyDescriptor, It = (n, e, t, i) => {
@@ -949,9 +949,9 @@ var Va = Object.defineProperty, Ba = Object.getOwnPropertyDescriptor, It = (n, e
949
949
  (r = n[o]) && (s = (i ? r(e, t, s) : r(s)) || s);
950
950
  return i && s && Va(e, t, s), s;
951
951
  };
952
- let Ze = class extends Pe {
952
+ let Qe = class extends Pe {
953
953
  constructor() {
954
- super(...arguments), this.localize = new et(this), this.open = !1, this.entries = [], this.firstColumnData = {
954
+ super(...arguments), this.localize = new tt(this), this.open = !1, this.entries = [], this.firstColumnData = {
955
955
  id: $t.Available,
956
956
  items: [],
957
957
  sort: !1,
@@ -1007,43 +1007,43 @@ let Ze = class extends Pe {
1007
1007
  n.target === this.dialogEl && this.handleCancel();
1008
1008
  }
1009
1009
  render() {
1010
- return x`<cx-dialog label=${this.localize.term("editColumns")} ?open=${this.open} @cx-request-close=${this.handleDialogRequestClose}><cx-multi-select .firstColumnData=${this.firstColumnData} .secondColumnData=${this.secondColumnData} @cx-multi-select-change=${this.handleMultiSelectChange}></cx-multi-select>${Y(
1010
+ return x`<cx-dialog label=${this.localize.term("editColumns")} ?open=${this.open} @cx-request-close=${this.handleDialogRequestClose}><cx-multi-select .firstColumnData=${this.firstColumnData} .secondColumnData=${this.secondColumnData} @cx-multi-select-change=${this.handleMultiSelectChange}></cx-multi-select>${J(
1011
1011
  !this.canApply,
1012
1012
  () => x`<p class="table-column-editor__note">${this.localize.term("editColumnsMinVisibleNote")}</p>`
1013
1013
  )}<div slot="footer" class="table-column-editor__footer"><cx-button @click=${this.handleCancel}>${this.localize.term("cancel")}</cx-button><cx-button variant="primary" ?disabled=${!this.canApply} @click=${this.handleApply}>${this.localize.term("apply")}</cx-button></div></cx-dialog>`;
1014
1014
  }
1015
1015
  };
1016
- Ze.styles = [$e, Na];
1017
- Ze.dependencies = {
1018
- "cx-button": Ct,
1016
+ Qe.styles = [$e, Na];
1017
+ Qe.dependencies = {
1018
+ "cx-button": Et,
1019
1019
  "cx-dialog": Sn,
1020
- "cx-multi-select": Te
1020
+ "cx-multi-select": De
1021
1021
  };
1022
1022
  It([
1023
1023
  ue("cx-dialog")
1024
- ], Ze.prototype, "dialogEl", 2);
1024
+ ], Qe.prototype, "dialogEl", 2);
1025
1025
  It([
1026
1026
  m({ reflect: !0, type: Boolean })
1027
- ], Ze.prototype, "open", 2);
1027
+ ], Qe.prototype, "open", 2);
1028
1028
  It([
1029
1029
  m({ attribute: !1 })
1030
- ], Ze.prototype, "entries", 2);
1030
+ ], Qe.prototype, "entries", 2);
1031
1031
  It([
1032
1032
  F()
1033
- ], Ze.prototype, "firstColumnData", 2);
1033
+ ], Qe.prototype, "firstColumnData", 2);
1034
1034
  It([
1035
1035
  F()
1036
- ], Ze.prototype, "secondColumnData", 2);
1036
+ ], Qe.prototype, "secondColumnData", 2);
1037
1037
  It([
1038
1038
  F()
1039
- ], Ze.prototype, "visibleFields", 2);
1039
+ ], Qe.prototype, "visibleFields", 2);
1040
1040
  It([
1041
1041
  V("entries")
1042
- ], Ze.prototype, "handleEntriesChange", 1);
1043
- Ze = It([
1042
+ ], Qe.prototype, "handleEntriesChange", 1);
1043
+ Qe = It([
1044
1044
  Ie("cx-table-column-editor")
1045
- ], Ze);
1046
- var cs = /* @__PURE__ */ ((n) => (n.Search = "search-keyword", n))(cs || {}), Ki = /* @__PURE__ */ ((n) => (n.BottomCenter = "bottom-center", n.BottomEnd = "bottom-end", n.BottomStart = "bottom-start", n.TopCenter = "top-center", n.TopEnd = "top-end", n.TopStart = "top-start", n))(Ki || {}), wt = /* @__PURE__ */ ((n) => (n.Bottom = "bottom", n.Center = "center", n.Nearest = "nearest", n.Top = "top", n))(wt || {}), Ue = /* @__PURE__ */ ((n) => (n.All = "all", n.Cell = "cell", n.Column = "column", n.Row = "row", n))(Ue || {}), pi = /* @__PURE__ */ ((n) => (n.Both = "both", n.Copy = "copy", n.Paste = "paste", n))(pi || {}), ve = /* @__PURE__ */ ((n) => (n.Auto = "auto", n.Csv = "csv", n.Json = "json", n.Xml = "xml", n))(ve || {}), yi = /* @__PURE__ */ ((n) => (n.EditColumns = "edit-columns", n.HideColumn = "hide-column", n))(yi || {}), Wt = /* @__PURE__ */ ((n) => (n.Left = "left", n.Right = "right", n))(Wt || {}), ut = /* @__PURE__ */ ((n) => (n.Local = "local", n.Remote = "remote", n))(ut || {}), Se = /* @__PURE__ */ ((n) => (n.Asc = "asc", n.Desc = "desc", n.None = "none", n))(Se || {}), _e = /* @__PURE__ */ ((n) => (n.Ends = "ends", n.Equal = "=", n.GreaterOrEqual = ">=", n.GreaterThan = ">", n.In = "in", n.Keywords = "keywords", n.LessOrEqual = "<=", n.LessThan = "<", n.Like = "like", n.NotEqual = "!=", n.Regex = "regex", n.Starts = "starts", n))(_e || {});
1045
+ ], Qe);
1046
+ var cs = /* @__PURE__ */ ((n) => (n.Search = "search-keyword", n))(cs || {}), Ki = /* @__PURE__ */ ((n) => (n.BottomCenter = "bottom-center", n.BottomEnd = "bottom-end", n.BottomStart = "bottom-start", n.TopCenter = "top-center", n.TopEnd = "top-end", n.TopStart = "top-start", n))(Ki || {}), vt = /* @__PURE__ */ ((n) => (n.Bottom = "bottom", n.Center = "center", n.Nearest = "nearest", n.Top = "top", n))(vt || {}), Ue = /* @__PURE__ */ ((n) => (n.All = "all", n.Cell = "cell", n.Column = "column", n.Row = "row", n))(Ue || {}), pi = /* @__PURE__ */ ((n) => (n.Both = "both", n.Copy = "copy", n.Paste = "paste", n))(pi || {}), ve = /* @__PURE__ */ ((n) => (n.Auto = "auto", n.Csv = "csv", n.Json = "json", n.Xml = "xml", n))(ve || {}), yi = /* @__PURE__ */ ((n) => (n.EditColumns = "edit-columns", n.HideColumn = "hide-column", n))(yi || {}), Wt = /* @__PURE__ */ ((n) => (n.Left = "left", n.Right = "right", n))(Wt || {}), pt = /* @__PURE__ */ ((n) => (n.Local = "local", n.Remote = "remote", n))(pt || {}), Se = /* @__PURE__ */ ((n) => (n.Asc = "asc", n.Desc = "desc", n.None = "none", n))(Se || {}), _e = /* @__PURE__ */ ((n) => (n.Ends = "ends", n.Equal = "=", n.GreaterOrEqual = ">=", n.GreaterThan = ">", n.In = "in", n.Keywords = "keywords", n.LessOrEqual = "<=", n.LessThan = "<", n.Like = "like", n.NotEqual = "!=", n.Regex = "regex", n.Starts = "starts", n))(_e || {});
1047
1047
  const ds = 36;
1048
1048
  var fi = /* @__PURE__ */ ((n) => (n.IsoDate = "iso-date", n.IsoDateTime = "iso-datetime", n.Timestamp = "timestamp", n))(fi || {});
1049
1049
  const $a = q`: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}`;
@@ -1073,9 +1073,9 @@ var Ua = Object.defineProperty, Ka = Object.getOwnPropertyDescriptor, Ht = (n, e
1073
1073
  (r = n[o]) && (s = (i ? r(e, t, s) : r(s)) || s);
1074
1074
  return i && s && Ua(e, t, s), s;
1075
1075
  };
1076
- let Qe = class extends Pe {
1076
+ let et = class extends Pe {
1077
1077
  constructor() {
1078
- super(), this.localize = new et(this), this.virtualAnchor = {
1078
+ super(), this.localize = new tt(this), this.virtualAnchor = {
1079
1079
  getBoundingClientRect: () => new DOMRect(this.pointX, this.pointY, 0, 0)
1080
1080
  }, this.open = !1, this.pointX = 0, this.pointY = 0, this.field = "", this.hideDisabled = !1, this.handleDocumentMouseDown = this.handleDocumentMouseDown.bind(this), this.handleDocumentKeyDown = this.handleDocumentKeyDown.bind(this);
1081
1081
  }
@@ -1117,46 +1117,46 @@ let Qe = class extends Pe {
1117
1117
  return x`<cx-popup ?active=${this.open} .anchor=${this.virtualAnchor} strategy="overlay" placement="bottom-start" flip shift @cx-opened=${this.handlePopupOpened}><cx-menu @cx-select=${this.handleMenuSelect}><cx-menu-item data-action=${yi.EditColumns}><cx-icon slot="prefix" name="edit"></cx-icon>${this.localize.term("editColumns")}</cx-menu-item><cx-menu-item data-action=${yi.HideColumn} ?disabled=${this.hideDisabled}><cx-icon slot="prefix" name="visibility_off"></cx-icon>${this.localize.term("hideColumn")}</cx-menu-item></cx-menu></cx-popup>`;
1118
1118
  }
1119
1119
  };
1120
- Qe.styles = [$e, Ga];
1121
- Qe.dependencies = {
1122
- "cx-icon": Et,
1120
+ et.styles = [$e, Ga];
1121
+ et.dependencies = {
1122
+ "cx-icon": gt,
1123
1123
  "cx-menu": ri,
1124
1124
  "cx-menu-item": ni,
1125
1125
  "cx-popup": Qn
1126
1126
  };
1127
1127
  Ht([
1128
1128
  ue("cx-menu-item")
1129
- ], Qe.prototype, "firstMenuItem", 2);
1129
+ ], et.prototype, "firstMenuItem", 2);
1130
1130
  Ht([
1131
1131
  m({ reflect: !0, type: Boolean })
1132
- ], Qe.prototype, "open", 2);
1132
+ ], et.prototype, "open", 2);
1133
1133
  Ht([
1134
1134
  m({ attribute: "point-x", type: Number })
1135
- ], Qe.prototype, "pointX", 2);
1135
+ ], et.prototype, "pointX", 2);
1136
1136
  Ht([
1137
1137
  m({ attribute: "point-y", type: Number })
1138
- ], Qe.prototype, "pointY", 2);
1138
+ ], et.prototype, "pointY", 2);
1139
1139
  Ht([
1140
1140
  m({ type: String })
1141
- ], Qe.prototype, "field", 2);
1141
+ ], et.prototype, "field", 2);
1142
1142
  Ht([
1143
1143
  m({ attribute: "hide-disabled", type: Boolean })
1144
- ], Qe.prototype, "hideDisabled", 2);
1144
+ ], et.prototype, "hideDisabled", 2);
1145
1145
  Ht([
1146
1146
  V("open", { waitUntilFirstUpdate: !0 })
1147
- ], Qe.prototype, "handleOpenChange", 1);
1148
- Qe = Ht([
1147
+ ], et.prototype, "handleOpenChange", 1);
1148
+ et = Ht([
1149
1149
  Ie("cx-table-header-menu")
1150
- ], Qe);
1150
+ ], et);
1151
1151
  const qa = q`.table-row-actions__button::part(label),.table-row-actions__dropdown__trigger::part(label){padding:0 var(--cx-spacing-x-small)}.table-row-actions__menu-item::part(checked-icon){display:none}`;
1152
1152
  var Xa = Object.defineProperty, Ja = Object.getOwnPropertyDescriptor, Kt = (n, e, t, i) => {
1153
1153
  for (var s = i > 1 ? void 0 : i ? Ja(e, t) : e, o = n.length - 1, r; o >= 0; o--)
1154
1154
  (r = n[o]) && (s = (i ? r(e, t, s) : r(s)) || s);
1155
1155
  return i && s && Xa(e, t, s), s;
1156
1156
  };
1157
- let ft = class extends Pe {
1157
+ let mt = class extends Pe {
1158
1158
  constructor() {
1159
- super(...arguments), this.localize = new et(this), this.groupedDropdownItems = {}, this.sections = [];
1159
+ super(...arguments), this.localize = new tt(this), this.groupedDropdownItems = {}, this.sections = [];
1160
1160
  }
1161
1161
  createRenderRoot() {
1162
1162
  return this;
@@ -1181,7 +1181,7 @@ let ft = class extends Pe {
1181
1181
  return Ke(
1182
1182
  n,
1183
1183
  (e) => e.name,
1184
- (e) => x`<cx-menu-item class="table-row-actions__menu-item" data-action=${e.name} style=${pt(e.style ?? {})} @click=${this.handleActionClick}>${Y(
1184
+ (e) => x`<cx-menu-item class="table-row-actions__menu-item" data-action=${e.name} style=${ft(e.style ?? {})} @click=${this.handleActionClick}>${J(
1185
1185
  e.prefixIcon,
1186
1186
  () => x`<cx-icon name=${e.prefixIcon} slot="prefix"></cx-icon>`
1187
1187
  )}
@@ -1193,9 +1193,9 @@ let ft = class extends Pe {
1193
1193
  }
1194
1194
  render() {
1195
1195
  if (!this.action)
1196
- return bt;
1196
+ return ut;
1197
1197
  const n = this.action?.icon ?? "more_horiz";
1198
- return x`<cx-dropdown hoist><cx-tooltip slot="trigger" hoist content=${this.action?.tooltip} ?disabled=${!this.action?.tooltip?.trim()}><cx-button class="table-row-actions__dropdown__trigger" aria-label=${this.action?.tooltip ?? this.action?.name ?? this.localize.term("more")}><cx-icon name=${n} style=${pt(this.action.options?.iconStyle ?? {})}></cx-icon></cx-button></cx-tooltip><cx-menu>${Ke(
1198
+ return x`<cx-dropdown hoist><cx-tooltip slot="trigger" hoist content=${this.action?.tooltip} ?disabled=${!this.action?.tooltip?.trim()}><cx-button class="table-row-actions__dropdown__trigger" aria-label=${this.action?.tooltip ?? this.action?.name ?? this.localize.term("more")}><cx-icon name=${n} style=${ft(this.action.options?.iconStyle ?? {})}></cx-icon></cx-button></cx-tooltip><cx-menu>${Ke(
1199
1199
  this.sections,
1200
1200
  (e) => e,
1201
1201
  (e) => this.renderMenuSection(
@@ -1206,10 +1206,10 @@ let ft = class extends Pe {
1206
1206
  )}</cx-menu></cx-dropdown>`;
1207
1207
  }
1208
1208
  };
1209
- ft.dependencies = {
1210
- "cx-button": Ct,
1209
+ mt.dependencies = {
1210
+ "cx-button": Et,
1211
1211
  "cx-dropdown": ai,
1212
- "cx-icon": Et,
1212
+ "cx-icon": gt,
1213
1213
  "cx-menu": ri,
1214
1214
  "cx-menu-item": ni,
1215
1215
  "cx-menu-section": ta,
@@ -1219,29 +1219,29 @@ Kt([
1219
1219
  m({
1220
1220
  type: Object
1221
1221
  })
1222
- ], ft.prototype, "action", 2);
1222
+ ], mt.prototype, "action", 2);
1223
1223
  Kt([
1224
1224
  m({
1225
1225
  type: Object
1226
1226
  })
1227
- ], ft.prototype, "row", 2);
1227
+ ], mt.prototype, "row", 2);
1228
1228
  Kt([
1229
1229
  m({
1230
1230
  type: Object
1231
1231
  })
1232
- ], ft.prototype, "cell", 2);
1232
+ ], mt.prototype, "cell", 2);
1233
1233
  Kt([
1234
1234
  F()
1235
- ], ft.prototype, "groupedDropdownItems", 2);
1235
+ ], mt.prototype, "groupedDropdownItems", 2);
1236
1236
  Kt([
1237
1237
  F()
1238
- ], ft.prototype, "sections", 2);
1238
+ ], mt.prototype, "sections", 2);
1239
1239
  Kt([
1240
1240
  V("action")
1241
- ], ft.prototype, "handleActionChange", 1);
1242
- ft = Kt([
1241
+ ], mt.prototype, "handleActionChange", 1);
1242
+ mt = Kt([
1243
1243
  Ie("cx-table-row-actions-dropdown")
1244
- ], ft);
1244
+ ], mt);
1245
1245
  var Ya = Object.defineProperty, Za = Object.getOwnPropertyDescriptor, qi = (n, e, t, i) => {
1246
1246
  for (var s = i > 1 ? void 0 : i ? Za(e, t) : e, o = n.length - 1, r; o >= 0; o--)
1247
1247
  (r = n[o]) && (s = (i ? r(e, t, s) : r(s)) || s);
@@ -1262,7 +1262,7 @@ let Ot = class extends Pe {
1262
1262
  });
1263
1263
  }
1264
1264
  renderButton(n) {
1265
- return x`<cx-tooltip hoist content=${n.tooltip} ?disabled=${!n.tooltip?.trim()}><cx-button data-action=${n.name} class="table-row-actions__button" label=${n.tooltip ?? n.name} @click=${this.handleActionClick} ?loading=${!!n.options?.buttonProps?.loading} ?outline=${!!n.options?.buttonProps?.outline} variant=${te(n.options?.buttonProps?.variant)}><cx-icon name=${n.icon} style=${pt(n.options?.iconStyle ?? {})}></cx-icon></cx-button></cx-tooltip>`;
1265
+ return x`<cx-tooltip hoist content=${n.tooltip} ?disabled=${!n.tooltip?.trim()}><cx-button data-action=${n.name} class="table-row-actions__button" label=${n.tooltip ?? n.name} @click=${this.handleActionClick} ?loading=${!!n.options?.buttonProps?.loading} ?outline=${!!n.options?.buttonProps?.outline} variant=${Z(n.options?.buttonProps?.variant)}><cx-icon name=${n.icon} style=${ft(n.options?.iconStyle ?? {})}></cx-icon></cx-button></cx-tooltip>`;
1266
1266
  }
1267
1267
  renderDropdown(n) {
1268
1268
  return x`<cx-table-row-actions-dropdown .action=${n} .row=${this.row} .cell=${this.cell}></cx-table-row-actions-dropdown>`;
@@ -1286,10 +1286,10 @@ let Ot = class extends Pe {
1286
1286
  };
1287
1287
  Ot.styles = [$e, qa];
1288
1288
  Ot.dependencies = {
1289
- "cx-button": Ct,
1290
- "cx-icon": Et,
1289
+ "cx-button": Et,
1290
+ "cx-icon": gt,
1291
1291
  "cx-space": Ri,
1292
- "cx-table-row-actions-dropdown": ft,
1292
+ "cx-table-row-actions-dropdown": mt,
1293
1293
  "cx-tooltip": Pt
1294
1294
  };
1295
1295
  qi([
@@ -1313,7 +1313,7 @@ var Qa = Object.defineProperty, el = Object.getOwnPropertyDescriptor, Si = (n, e
1313
1313
  (r = n[o]) && (s = (i ? r(e, t, s) : r(s)) || s);
1314
1314
  return i && s && Qa(e, t, s), s;
1315
1315
  };
1316
- let yt = class extends Pe {
1316
+ let Ct = class extends Pe {
1317
1317
  constructor() {
1318
1318
  super(...arguments), this.data = {
1319
1319
  defaultOption: "",
@@ -1326,6 +1326,15 @@ let yt = class extends Pe {
1326
1326
  get activeOption() {
1327
1327
  return this.optionsMap[this.activeOptionId];
1328
1328
  }
1329
+ get triggerText() {
1330
+ return `${this.data.label}: ${this.activeOption?.label ?? ""}`;
1331
+ }
1332
+ get isIconOnly() {
1333
+ return !!(this.data.hideLabel && this.data.icon);
1334
+ }
1335
+ get showCaret() {
1336
+ return this.data.caret ?? !this.data.icon;
1337
+ }
1329
1338
  createRenderRoot() {
1330
1339
  return this;
1331
1340
  }
@@ -1363,32 +1372,41 @@ let yt = class extends Pe {
1363
1372
  (n) => x`<cx-menu-item data-id=${n.id} type="checkbox" ?checked=${this.activeOptionId === n.id}>${n.label}</cx-menu-item>`
1364
1373
  );
1365
1374
  }
1375
+ renderTriggerIcon() {
1376
+ const { icon: n } = this.data;
1377
+ return n ? x`<cx-icon class="table-dropdown-filter__icon" slot="prefix" name=${Z(n.name)} src=${Z(n.src)}></cx-icon>` : ut;
1378
+ }
1366
1379
  render() {
1367
- return x`<div class="table-dropdown-filter"><cx-dropdown><cx-button class="table-dropdown-filter__trigger" slot="trigger" caret outline>${this.data.label}: ${this.activeOption?.label ?? ""}</cx-button><cx-menu @cx-select=${this.handleMenuSelect}>${this.renderMenuItems()}</cx-menu></cx-dropdown></div>`;
1380
+ const n = this.isIconOnly ? this.triggerText : void 0;
1381
+ return x`<div class="table-dropdown-filter"><cx-dropdown hoist><cx-button class=${Ze({
1382
+ "table-dropdown-filter__trigger": !0,
1383
+ "table-dropdown-filter__trigger--icon-only": this.isIconOnly
1384
+ })} slot="trigger" label=${Z(n)} title=${Z(n)} ?caret=${this.showCaret} outline>${this.renderTriggerIcon()}${J(!this.isIconOnly, () => this.triggerText)}</cx-button><cx-menu @cx-select=${this.handleMenuSelect}>${this.renderMenuItems()}</cx-menu></cx-dropdown></div>`;
1368
1385
  }
1369
1386
  };
1370
- yt.styles = [$e];
1371
- yt.dependencies = {
1372
- "cx-button": Ct,
1387
+ Ct.styles = [$e];
1388
+ Ct.dependencies = {
1389
+ "cx-button": Et,
1373
1390
  "cx-dropdown": ai,
1391
+ "cx-icon": gt,
1374
1392
  "cx-menu": ri,
1375
1393
  "cx-menu-item": ni
1376
1394
  };
1377
1395
  Si([
1378
1396
  m({ type: Object })
1379
- ], yt.prototype, "data", 2);
1397
+ ], Ct.prototype, "data", 2);
1380
1398
  Si([
1381
1399
  F()
1382
- ], yt.prototype, "activeOptionId", 2);
1400
+ ], Ct.prototype, "activeOptionId", 2);
1383
1401
  Si([
1384
1402
  F()
1385
- ], yt.prototype, "optionsMap", 2);
1403
+ ], Ct.prototype, "optionsMap", 2);
1386
1404
  Si([
1387
1405
  V("data")
1388
- ], yt.prototype, "handleDataChange", 1);
1389
- yt = Si([
1406
+ ], Ct.prototype, "handleDataChange", 1);
1407
+ Ct = Si([
1390
1408
  Ie("cx-table-dropdown-filter")
1391
- ], yt);
1409
+ ], Ct);
1392
1410
  var tl = Object.defineProperty, il = Object.getOwnPropertyDescriptor, Xi = (n, e, t, i) => {
1393
1411
  for (var s = i > 1 ? void 0 : i ? il(e, t) : e, o = n.length - 1, r; o >= 0; o--)
1394
1412
  (r = n[o]) && (s = (i ? r(e, t, s) : r(s)) || s);
@@ -1396,7 +1414,7 @@ var tl = Object.defineProperty, il = Object.getOwnPropertyDescriptor, Xi = (n, e
1396
1414
  };
1397
1415
  let At = class extends Pe {
1398
1416
  constructor() {
1399
- super(...arguments), this.localize = new et(this), this.groupByOptionIdSet = /* @__PURE__ */ new Set(), this.groupByOptions = [], this.groupByValue = "";
1417
+ super(...arguments), this.localize = new tt(this), this.groupByOptionIdSet = /* @__PURE__ */ new Set(), this.groupByOptions = [], this.groupByValue = "";
1400
1418
  }
1401
1419
  handleGroupByOptionsChange() {
1402
1420
  this.groupByOptionIdSet = new Set(this.groupByOptions.map((n) => n.id));
@@ -1422,25 +1440,25 @@ let At = class extends Pe {
1422
1440
  }
1423
1441
  renderOption(n, e, t) {
1424
1442
  const i = t === n;
1425
- return x`<cx-menu-item class=${ot({
1443
+ return x`<cx-menu-item class=${Ze({
1426
1444
  "group-by-option": !0,
1427
1445
  "group-by-option--selected": i
1428
1446
  })} data-option-id=${n} type="checkbox" ?checked=${i}>${e}</cx-menu-item>`;
1429
1447
  }
1430
1448
  renderOffOption(n) {
1431
1449
  const e = n === null;
1432
- return x`<cx-menu-item class=${ot({
1450
+ return x`<cx-menu-item class=${Ze({
1433
1451
  "group-by-option": !0,
1434
1452
  "group-by-option--selected": e
1435
1453
  })} data-group-by-action="off" type="checkbox" ?checked=${e}>${this.localize.term("off")}</cx-menu-item>`;
1436
1454
  }
1437
1455
  render() {
1438
1456
  const n = this.groupByOptionIdSet.has(this.groupByValue) ? this.groupByValue : null;
1439
- return x`<cx-dropdown hoist class="header-actions__group-by"><cx-button slot="trigger" caret>${this.localize.term("groupBy")}</cx-button><cx-menu @cx-select=${this.handleMenuSelect}>${Y(
1457
+ return x`<cx-dropdown hoist class="header-actions__group-by"><cx-button slot="trigger" caret>${this.localize.term("groupBy")}</cx-button><cx-menu @cx-select=${this.handleMenuSelect}>${J(
1440
1458
  !this.groupByOptions.length,
1441
1459
  () => x`<cx-menu-item disabled=disabled>${this.localize.term("noDataAvailable")}</cx-menu-item>`
1442
1460
  )}
1443
- ${Y(
1461
+ ${J(
1444
1462
  this.groupByOptions.length,
1445
1463
  () => this.renderOffOption(n)
1446
1464
  )}
@@ -1453,7 +1471,7 @@ let At = class extends Pe {
1453
1471
  };
1454
1472
  At.styles = [$e];
1455
1473
  At.dependencies = {
1456
- "cx-button": Ct,
1474
+ "cx-button": Et,
1457
1475
  "cx-dropdown": ai,
1458
1476
  "cx-menu": ri,
1459
1477
  "cx-menu-item": ni
@@ -1470,14 +1488,14 @@ Xi([
1470
1488
  At = Xi([
1471
1489
  Ie("cx-table-group-by-dropdown")
1472
1490
  ], At);
1473
- var sl = Object.defineProperty, ol = Object.getOwnPropertyDescriptor, mt = (n, e, t, i) => {
1491
+ var sl = Object.defineProperty, ol = Object.getOwnPropertyDescriptor, bt = (n, e, t, i) => {
1474
1492
  for (var s = i > 1 ? void 0 : i ? ol(e, t) : e, o = n.length - 1, r; o >= 0; o--)
1475
1493
  (r = n[o]) && (s = (i ? r(e, t, s) : r(s)) || s);
1476
1494
  return i && s && sl(e, t, s), s;
1477
1495
  };
1478
1496
  let Be = class extends Pe {
1479
1497
  constructor() {
1480
- super(...arguments), this.localize = new et(this), this.fetchController = null, this.requestId = 0, this.savedSearchURL = "", this.savedSearchItems = [], this.savedSearchPageSizeParam = "PageSize", this.savedSearchPageSize = 10, this.savedSearchPageNumberParam = "PageNumber", this.totalCount = 0, this.loading = !1, this.currentPage = 1;
1498
+ super(...arguments), this.localize = new tt(this), this.fetchController = null, this.requestId = 0, this.savedSearchURL = "", this.savedSearchItems = [], this.savedSearchPageSizeParam = "PageSize", this.savedSearchPageSize = 10, this.savedSearchPageNumberParam = "PageNumber", this.totalCount = 0, this.loading = !1, this.currentPage = 1;
1481
1499
  }
1482
1500
  createRenderRoot() {
1483
1501
  return this;
@@ -1528,7 +1546,7 @@ let Be = class extends Pe {
1528
1546
  t && this.emit("cx-table-save-search-select", { detail: { id: t } });
1529
1547
  }
1530
1548
  render() {
1531
- return x`<cx-dropdown hoist class="header-actions__saved-search"><cx-button slot="trigger" caret>${this.localize.term("savedSearches")}</cx-button><cx-menu @cx-select=${this.handleSavedSearchItemSelect}>${Y(
1549
+ return x`<cx-dropdown hoist class="header-actions__saved-search"><cx-button slot="trigger" caret>${this.localize.term("savedSearches")}</cx-button><cx-menu @cx-select=${this.handleSavedSearchItemSelect}>${J(
1532
1550
  this.savedSearchItems.length === 0 && !this.loading,
1533
1551
  () => x`<cx-menu-item disabled=disabled>${this.localize.term("noSavedSearch")}</cx-menu-item>`
1534
1552
  )}
@@ -1537,7 +1555,7 @@ let Be = class extends Pe {
1537
1555
  (n) => n.recordID,
1538
1556
  (n) => x`<cx-menu-item data-id=${n.recordID}><cx-icon name="search" slot="prefix"></cx-icon>${n.name}</cx-menu-item>`
1539
1557
  )}
1540
- ${Y(
1558
+ ${J(
1541
1559
  this.hasMore,
1542
1560
  () => x`<cx-button class="header-actions__saved-search__load-more" variant="text" @click=${this.handleLoadMore} ?loading=${this.loading}>${this.localize.term("more")}</cx-button>`
1543
1561
  )}</cx-menu></cx-dropdown>`;
@@ -1545,51 +1563,51 @@ let Be = class extends Pe {
1545
1563
  };
1546
1564
  Be.styles = [$e];
1547
1565
  Be.dependencies = {
1548
- "cx-button": Ct,
1566
+ "cx-button": Et,
1549
1567
  "cx-dropdown": ai,
1550
- "cx-icon": Et,
1568
+ "cx-icon": gt,
1551
1569
  "cx-menu": ri,
1552
1570
  "cx-menu-item": ni
1553
1571
  };
1554
- mt([
1572
+ bt([
1555
1573
  m({ attribute: "saved-search-url", type: String })
1556
1574
  ], Be.prototype, "savedSearchURL", 2);
1557
- mt([
1575
+ bt([
1558
1576
  m({ attribute: "saved-search-items", type: Array })
1559
1577
  ], Be.prototype, "savedSearchItems", 2);
1560
- mt([
1578
+ bt([
1561
1579
  m({ attribute: "saved-search-page-size-param", type: String })
1562
1580
  ], Be.prototype, "savedSearchPageSizeParam", 2);
1563
- mt([
1581
+ bt([
1564
1582
  m({ attribute: "saved-search-page-size", type: Number })
1565
1583
  ], Be.prototype, "savedSearchPageSize", 2);
1566
- mt([
1584
+ bt([
1567
1585
  m({ attribute: "saved-search-page-number-param", type: String })
1568
1586
  ], Be.prototype, "savedSearchPageNumberParam", 2);
1569
- mt([
1587
+ bt([
1570
1588
  F()
1571
1589
  ], Be.prototype, "totalCount", 2);
1572
- mt([
1590
+ bt([
1573
1591
  F()
1574
1592
  ], Be.prototype, "loading", 2);
1575
- mt([
1593
+ bt([
1576
1594
  F()
1577
1595
  ], Be.prototype, "currentPage", 2);
1578
- mt([
1596
+ bt([
1579
1597
  V("savedSearchURL")
1580
1598
  ], Be.prototype, "handleSavedSearchURLChange", 1);
1581
- Be = mt([
1599
+ Be = bt([
1582
1600
  Ie("cx-table-saved-search-dropdown")
1583
1601
  ], Be);
1584
- const rl = q`: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__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,.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)}`;
1602
+ const rl = q`: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__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)}`;
1585
1603
  var nl = Object.defineProperty, al = Object.getOwnPropertyDescriptor, ie = (n, e, t, i) => {
1586
1604
  for (var s = i > 1 ? void 0 : i ? al(e, t) : e, o = n.length - 1, r; o >= 0; o--)
1587
1605
  (r = n[o]) && (s = (i ? r(e, t, s) : r(s)) || s);
1588
1606
  return i && s && nl(e, t, s), s;
1589
1607
  };
1590
- let Q = class extends Pe {
1608
+ let ee = class extends Pe {
1591
1609
  constructor() {
1592
- super(...arguments), this.localize = new et(this), this.hasSlotController = new Ur(
1610
+ super(...arguments), this.localize = new tt(this), this.hasSlotController = new Ur(
1593
1611
  this,
1594
1612
  "label",
1595
1613
  "pagination",
@@ -1634,12 +1652,12 @@ let Q = class extends Pe {
1634
1652
  this.emit("cx-table-export", { detail: { type: "report" } });
1635
1653
  }
1636
1654
  renderSearch() {
1637
- return x`<form class="search" id="search-form" @submit=${this.handleSearchSubmit}><cx-input class="search__input" placeholder=${this.localize.term("typeYourSearchHere")} value=${this.searchValue} clearable @cx-clear=${this.handleClearSearch}><cx-icon-button class=${ot({
1655
+ return x`<form class="search" id="search-form" @submit=${this.handleSearchSubmit}><cx-input class="search__input" placeholder=${this.localize.term("typeYourSearchHere")} value=${this.searchValue} clearable @cx-clear=${this.handleClearSearch}><cx-icon-button class=${Ze({
1638
1656
  search__icon: !0,
1639
1657
  "search__icon--search": !0
1640
- })} name="search" slot="prefix" size="small"></cx-icon-button>${Y(
1658
+ })} name="search" slot="prefix" size="small"></cx-icon-button>${J(
1641
1659
  !this.noAdvancedSearch,
1642
- () => x`<cx-tooltip slot="suffix" hoist content=${this.localize.term("advancedSearch")}><cx-icon-button class=${ot({
1660
+ () => x`<cx-tooltip slot="suffix" hoist content=${this.localize.term("advancedSearch")}><cx-icon-button class=${Ze({
1643
1661
  search__icon: !0,
1644
1662
  "search__icon--advanced-search": !0
1645
1663
  })} name="tune" @click=${this.handleAdvancedSearchClick} size="small"></cx-icon-button></cx-tooltip>`
@@ -1655,23 +1673,23 @@ let Q = class extends Pe {
1655
1673
  return x`<cx-table-group-by-dropdown .groupByOptions=${this.groupByOptions} group-by-value=${this.groupByValue}></cx-table-group-by-dropdown>`;
1656
1674
  }
1657
1675
  renderExportDropdown() {
1658
- return x`<cx-dropdown hoist placement="bottom-end" distance="4" class="header-actions__dropdown"><cx-icon-button name="more_horiz" slot="trigger" outline></cx-icon-button><cx-menu>${Y(
1676
+ return x`<cx-dropdown hoist placement="bottom-end" distance="4" class="header-actions__dropdown"><cx-icon-button name="more_horiz" slot="trigger" outline></cx-icon-button><cx-menu>${J(
1659
1677
  this.canExportCsv,
1660
1678
  () => x`<cx-menu-item @click=${this.handleExportCsv}>${this.localize.term("exportAsCsv")}</cx-menu-item>`
1661
1679
  )}
1662
- ${Y(
1680
+ ${J(
1663
1681
  this.canExportXml,
1664
1682
  () => x`<cx-menu-item @click=${this.handleExportXml}>${this.localize.term("exportAsXml")}</cx-menu-item>`
1665
1683
  )}
1666
- ${Y(
1684
+ ${J(
1667
1685
  this.canExportPdf,
1668
1686
  () => x`<cx-menu-item @click=${this.handleExportPdf}>${this.localize.term("exportAsPdf")}</cx-menu-item>`
1669
1687
  )}
1670
- ${Y(
1688
+ ${J(
1671
1689
  this.canExportCustom,
1672
1690
  () => x`<cx-menu-item @click=${this.handleExportCustom}>${this.localize.term("customExport")}</cx-menu-item>`
1673
1691
  )}
1674
- ${Y(
1692
+ ${J(
1675
1693
  this.canSaveReport,
1676
1694
  () => x`<cx-menu-item data-testid="save-report-menu-item" @click=${this.handleSaveReport}>${this.localize.term("saveReport")}</cx-menu-item>`
1677
1695
  )}</cx-menu></cx-dropdown>`;
@@ -1685,11 +1703,11 @@ let Q = class extends Pe {
1685
1703
  }
1686
1704
  renderHeaderRow() {
1687
1705
  const n = !!this.label || this.hasSlotController.test("label"), e = this.hasSlotController.test("pagination");
1688
- return x`<div class=${ot({
1706
+ return x`<div class=${Ze({
1689
1707
  header: !0,
1690
1708
  "header--has-label": n,
1691
1709
  "header--has-pagination": e
1692
- })}><div class="header__label"><slot name="label">${Y(
1710
+ })}><div class="header__label"><slot name="label">${J(
1693
1711
  this.label,
1694
1712
  () => x`<cx-typography variant="h3">${this.label}</cx-typography>`
1695
1713
  )}</slot></div><div class="header__pagination"><slot name="pagination"></slot></div></div>`;
@@ -1708,41 +1726,41 @@ let Q = class extends Pe {
1708
1726
  }
1709
1727
  renderHeaderActions() {
1710
1728
  const n = this.canExportCsv || this.canExportXml || this.canExportPdf || this.canExportCustom || this.canSaveReport;
1711
- return x`<cx-space class="header-actions" justify-content="space-between" align-items="center"><cx-space class="header-actions__left" align-items="center" spacing="x-small">${Y(this.selectAllState !== null, () => this.renderSelectAll())}
1712
- ${Y(
1729
+ return x`<cx-space class="header-actions" justify-content="space-between" align-items="center"><cx-space class="header-actions__left" align-items="center" spacing="x-small">${J(this.selectAllState !== null, () => this.renderSelectAll())}
1730
+ ${J(
1713
1731
  this.selectAllState !== null && this.selectAllState.count > 0,
1714
1732
  () => x`<slot name="select-all-actions"></slot>`,
1715
1733
  () => x`
1716
- ${Y(this.canSearch, () => this.renderSearch())}
1717
- ${Y(
1734
+ ${J(this.canSearch, () => this.renderSearch())}
1735
+ ${J(
1718
1736
  this.dropdownFilters.length,
1719
1737
  () => this.renderDropdownFilters()
1720
1738
  )}
1721
- ${Y(
1739
+ ${J(
1722
1740
  this.showSavedSearch,
1723
1741
  () => this.renderSavedSearchDropdown()
1724
1742
  )}<slot name="dialog-dynamic-filter"></slot>`
1725
- )}</cx-space><cx-space class="header-actions__right" align-items="center" spacing="x-small"><slot name="add-action">${Y(this.canAdd, () => this.renderAddButton())}</slot>${Y(this.groupByOptions.length, () => this.renderGroupByDropdown())}
1726
- ${Y(n, () => this.renderExportDropdown())}</cx-space></cx-space>`;
1743
+ )}</cx-space><cx-space class="header-actions__right" align-items="center" spacing="x-small"><slot name="add-action">${J(this.canAdd, () => this.renderAddButton())}</slot>${J(this.groupByOptions.length, () => this.renderGroupByDropdown())}
1744
+ ${J(n, () => this.renderExportDropdown())}</cx-space></cx-space>`;
1727
1745
  }
1728
1746
  render() {
1729
1747
  return x`<cx-space class="container" direction="vertical">${this.renderHeaderRow()}
1730
- ${Y(this.hasHeaderActions, () => this.renderHeaderActions())}</cx-space>`;
1748
+ ${J(this.hasHeaderActions, () => this.renderHeaderActions())}</cx-space>`;
1731
1749
  }
1732
1750
  };
1733
- Q.styles = [$e, rl];
1734
- Q.dependencies = {
1735
- "cx-button": Ct,
1751
+ ee.styles = [$e, rl];
1752
+ ee.dependencies = {
1753
+ "cx-button": Et,
1736
1754
  "cx-checkbox": Gr,
1737
1755
  "cx-dropdown": ai,
1738
- "cx-icon": Et,
1756
+ "cx-icon": gt,
1739
1757
  "cx-icon-button": oi,
1740
1758
  "cx-input": Wr,
1741
1759
  "cx-menu": ri,
1742
1760
  "cx-menu-item": ni,
1743
1761
  "cx-pagination": ia,
1744
1762
  "cx-space": Ri,
1745
- "cx-table-dropdown-filter": yt,
1763
+ "cx-table-dropdown-filter": Ct,
1746
1764
  "cx-table-group-by-dropdown": At,
1747
1765
  "cx-table-saved-search-dropdown": Be,
1748
1766
  "cx-tooltip": Pt,
@@ -1750,121 +1768,121 @@ Q.dependencies = {
1750
1768
  };
1751
1769
  ie([
1752
1770
  ue("#search-form")
1753
- ], Q.prototype, "form", 2);
1771
+ ], ee.prototype, "form", 2);
1754
1772
  ie([
1755
1773
  ue(".search__input")
1756
- ], Q.prototype, "searchInput", 2);
1774
+ ], ee.prototype, "searchInput", 2);
1757
1775
  ie([
1758
1776
  m({
1759
1777
  attribute: "label",
1760
1778
  type: String
1761
1779
  })
1762
- ], Q.prototype, "label", 2);
1780
+ ], ee.prototype, "label", 2);
1763
1781
  ie([
1764
1782
  m({
1765
1783
  attribute: "can-search",
1766
1784
  type: Boolean
1767
1785
  })
1768
- ], Q.prototype, "canSearch", 2);
1786
+ ], ee.prototype, "canSearch", 2);
1769
1787
  ie([
1770
1788
  m({
1771
1789
  attribute: "no-advanced-search",
1772
1790
  type: Boolean
1773
1791
  })
1774
- ], Q.prototype, "noAdvancedSearch", 2);
1792
+ ], ee.prototype, "noAdvancedSearch", 2);
1775
1793
  ie([
1776
1794
  m({
1777
1795
  attribute: "can-add",
1778
1796
  type: Boolean
1779
1797
  })
1780
- ], Q.prototype, "canAdd", 2);
1798
+ ], ee.prototype, "canAdd", 2);
1781
1799
  ie([
1782
1800
  m({
1783
1801
  attribute: "add-label",
1784
1802
  type: String
1785
1803
  })
1786
- ], Q.prototype, "addLabel", 2);
1804
+ ], ee.prototype, "addLabel", 2);
1787
1805
  ie([
1788
1806
  m({
1789
1807
  attribute: "can-export-csv",
1790
1808
  type: Boolean
1791
1809
  })
1792
- ], Q.prototype, "canExportCsv", 2);
1810
+ ], ee.prototype, "canExportCsv", 2);
1793
1811
  ie([
1794
1812
  m({
1795
1813
  attribute: "can-export-xml",
1796
1814
  type: Boolean
1797
1815
  })
1798
- ], Q.prototype, "canExportXml", 2);
1816
+ ], ee.prototype, "canExportXml", 2);
1799
1817
  ie([
1800
1818
  m({
1801
1819
  attribute: "can-export-pdf",
1802
1820
  type: Boolean
1803
1821
  })
1804
- ], Q.prototype, "canExportPdf", 2);
1822
+ ], ee.prototype, "canExportPdf", 2);
1805
1823
  ie([
1806
1824
  m({
1807
1825
  attribute: "can-export-custom",
1808
1826
  type: Boolean
1809
1827
  })
1810
- ], Q.prototype, "canExportCustom", 2);
1828
+ ], ee.prototype, "canExportCustom", 2);
1811
1829
  ie([
1812
1830
  m({ attribute: "dropdown-filters", type: Array })
1813
- ], Q.prototype, "dropdownFilters", 2);
1831
+ ], ee.prototype, "dropdownFilters", 2);
1814
1832
  ie([
1815
1833
  m({
1816
1834
  attribute: "can-save-report",
1817
1835
  type: Boolean
1818
1836
  })
1819
- ], Q.prototype, "canSaveReport", 2);
1837
+ ], ee.prototype, "canSaveReport", 2);
1820
1838
  ie([
1821
1839
  m({ attribute: "saved-search-url", type: String })
1822
- ], Q.prototype, "savedSearchURL", 2);
1840
+ ], ee.prototype, "savedSearchURL", 2);
1823
1841
  ie([
1824
1842
  m({ attribute: "saved-search-items", type: Array })
1825
- ], Q.prototype, "savedSearchItems", 2);
1843
+ ], ee.prototype, "savedSearchItems", 2);
1826
1844
  ie([
1827
1845
  m({ attribute: "saved-search-page-size-param", type: String })
1828
- ], Q.prototype, "savedSearchPageSizeParam", 2);
1846
+ ], ee.prototype, "savedSearchPageSizeParam", 2);
1829
1847
  ie([
1830
1848
  m({ attribute: "saved-search-page-size", type: Number })
1831
- ], Q.prototype, "savedSearchPageSize", 2);
1849
+ ], ee.prototype, "savedSearchPageSize", 2);
1832
1850
  ie([
1833
1851
  m({ attribute: "saved-search-page-number-param", type: String })
1834
- ], Q.prototype, "savedSearchPageNumberParam", 2);
1852
+ ], ee.prototype, "savedSearchPageNumberParam", 2);
1835
1853
  ie([
1836
1854
  m({
1837
1855
  attribute: "show-saved-search",
1838
1856
  type: Boolean
1839
1857
  })
1840
- ], Q.prototype, "showSavedSearch", 2);
1858
+ ], ee.prototype, "showSavedSearch", 2);
1841
1859
  ie([
1842
1860
  m({ attribute: !1, type: Array })
1843
- ], Q.prototype, "groupByOptions", 2);
1861
+ ], ee.prototype, "groupByOptions", 2);
1844
1862
  ie([
1845
1863
  m({ attribute: "group-by-value", type: String })
1846
- ], Q.prototype, "groupByValue", 2);
1864
+ ], ee.prototype, "groupByValue", 2);
1847
1865
  ie([
1848
1866
  m({ attribute: "search-value", type: String })
1849
- ], Q.prototype, "searchValue", 2);
1867
+ ], ee.prototype, "searchValue", 2);
1850
1868
  ie([
1851
1869
  m({ attribute: !1 })
1852
- ], Q.prototype, "selectAllState", 2);
1870
+ ], ee.prototype, "selectAllState", 2);
1853
1871
  ie([
1854
1872
  m({ attribute: "pagination-placement", type: String })
1855
- ], Q.prototype, "paginationPlacement", 2);
1873
+ ], ee.prototype, "paginationPlacement", 2);
1856
1874
  ie([
1857
1875
  m({ attribute: "pagination", reflect: !0, type: Boolean })
1858
- ], Q.prototype, "pagination", 2);
1876
+ ], ee.prototype, "pagination", 2);
1859
1877
  ie([
1860
1878
  m({ attribute: "no-header-row-reserve", reflect: !0, type: Boolean })
1861
- ], Q.prototype, "noHeaderRowReserve", 2);
1879
+ ], ee.prototype, "noHeaderRowReserve", 2);
1862
1880
  ie([
1863
1881
  m({ attribute: "has-dynamic-filter", type: Boolean })
1864
- ], Q.prototype, "hasDynamicFilter", 2);
1865
- Q = ie([
1882
+ ], ee.prototype, "hasDynamicFilter", 2);
1883
+ ee = ie([
1866
1884
  Ie("cx-table-toolbar")
1867
- ], Q);
1885
+ ], ee);
1868
1886
  class Me {
1869
1887
  constructor(e) {
1870
1888
  this.table = e;
@@ -1973,7 +1991,7 @@ class Me {
1973
1991
  return this.table.module(e);
1974
1992
  }
1975
1993
  }
1976
- class Z {
1994
+ class Q {
1977
1995
  static elVisible(e) {
1978
1996
  return !(e.offsetWidth <= 0 && e.offsetHeight <= 0);
1979
1997
  }
@@ -2042,15 +2060,15 @@ let ll = class Yr extends Me {
2042
2060
  const t = !(e instanceof MouseEvent);
2043
2061
  let i = t ? e.touches[0].pageX : e.pageX, s = t ? e.touches[0].pageY : e.pageY;
2044
2062
  if (this.container !== document.body) {
2045
- const o = Z.elOffset(this.container);
2063
+ const o = Q.elOffset(this.container);
2046
2064
  i -= o.left, s -= o.top;
2047
2065
  }
2048
2066
  return { x: i, y: s };
2049
2067
  }
2050
2068
  elementPositionCoords(e, t = "right") {
2051
- const i = Z.elOffset(e);
2069
+ const i = Q.elOffset(e);
2052
2070
  let s, o, r;
2053
- switch (this.container !== document.body && (s = Z.elOffset(this.container), i.left -= s.left, i.top -= s.top), t) {
2071
+ switch (this.container !== document.body && (s = Q.elOffset(this.container), i.left -= s.left, i.top -= s.top), t) {
2054
2072
  case "right":
2055
2073
  o = i.left + e.offsetWidth, r = i.top - 1;
2056
2074
  break;
@@ -2476,7 +2494,7 @@ const fl = {
2476
2494
  }
2477
2495
  // apply accessor to row
2478
2496
  transformRow(e, t) {
2479
- const i = "accessor" + (t.charAt(0).toUpperCase() + t.slice(1)), s = e.getComponent(), o = Z.deepClone(e.data || {});
2497
+ const i = "accessor" + (t.charAt(0).toUpperCase() + t.slice(1)), s = e.getComponent(), o = Q.deepClone(e.data || {});
2480
2498
  return this.table.columnManager?.traverse((r) => {
2481
2499
  let a, l, h, c;
2482
2500
  const d = r.modules.accessor;
@@ -2593,14 +2611,14 @@ const Qr = function(n, e, t) {
2593
2611
  n = i + (i.includes("?") ? "&" : "?") + o + (s ? "#" + s : "");
2594
2612
  }
2595
2613
  return n;
2596
- }, ci = process.env.NODE_ENV === "development", st = class st extends I {
2614
+ }, ci = process.env.NODE_ENV === "development", ot = class ot extends I {
2597
2615
  constructor(e) {
2598
2616
  super(e), this.fetchApi = typeof globalThis.fetch == "function" ? globalThis.fetch.bind(globalThis) : void 0, this.config = {}, this.url = "", this.urlGenerator = !1, this.params = !1, this.loaderPromise = !1, this.registerTableOption("ajaxURL", !1), this.registerTableOption("ajaxURLGenerator", !1), this.registerTableOption("ajaxParams", {}), this.registerTableOption("ajaxConfig", "get"), this.registerTableOption("ajaxContentType", "form"), this.registerTableOption("ajaxRequestFunc", !1), this.registerTableOption("ajaxRequesting", () => {
2599
- }), this.registerTableOption("ajaxResponse", !1), this.contentTypeFormatters = st.contentTypeFormatters;
2617
+ }), this.registerTableOption("ajaxResponse", !1), this.contentTypeFormatters = ot.contentTypeFormatters;
2600
2618
  }
2601
2619
  // initialize setup options
2602
2620
  initialize() {
2603
- this.urlGenerator = this.table.options.ajaxURLGenerator || st.defaultURLGenerator, this.loaderPromise = this.table.options.ajaxRequestFunc || st.defaultLoaderPromise.bind(this), (this.table.options.ajaxURL || this.table.options.ajaxRequestFunc) && (this.table.options.filterMode = ut.Remote, this.table.options.sortMode = ut.Remote, this.table.options.paginationMode = ut.Remote, this.table.options.ajaxURL && this.setUrl(this.table.options.ajaxURL)), this.setDefaultConfig(this.table.options.ajaxConfig), this.registerTableFunction("getAjaxUrl", this.getUrl.bind(this)), this.subscribe("data-loading", this.requestDataCheck.bind(this)), this.subscribe("data-params", this.requestParams.bind(this)), this.subscribe("data-load", this.requestData.bind(this));
2621
+ this.urlGenerator = this.table.options.ajaxURLGenerator || ot.defaultURLGenerator, this.loaderPromise = this.table.options.ajaxRequestFunc || ot.defaultLoaderPromise.bind(this), (this.table.options.ajaxURL || this.table.options.ajaxRequestFunc) && (this.table.options.filterMode = pt.Remote, this.table.options.sortMode = pt.Remote, this.table.options.paginationMode = pt.Remote, this.table.options.ajaxURL && this.setUrl(this.table.options.ajaxURL)), this.setDefaultConfig(this.table.options.ajaxConfig), this.registerTableFunction("getAjaxUrl", this.getUrl.bind(this)), this.subscribe("data-loading", this.requestDataCheck.bind(this)), this.subscribe("data-params", this.requestParams.bind(this)), this.subscribe("data-load", this.requestData.bind(this));
2604
2622
  }
2605
2623
  requestParams(e, t, i, s) {
2606
2624
  const o = this.table.options.ajaxParams;
@@ -2619,7 +2637,7 @@ const Qr = function(n, e, t) {
2619
2637
  ) ? (e && this.setUrl(e), r = this.generateConfig(i), this.sendRequest(this.url, t, r)) : o;
2620
2638
  }
2621
2639
  setDefaultConfig(e = {}) {
2622
- this.config = Object.assign({}, st.defaultConfig), typeof e == "string" ? this.config.method = e : Object.assign(this.config, e);
2640
+ this.config = Object.assign({}, ot.defaultConfig), typeof e == "string" ? this.config.method = e : Object.assign(this.config, e);
2623
2641
  }
2624
2642
  // load config object
2625
2643
  generateConfig(e = {}) {
@@ -2650,7 +2668,7 @@ const Qr = function(n, e, t) {
2650
2668
  )), s)) : Promise.reject();
2651
2669
  }
2652
2670
  };
2653
- st.moduleName = "ajax", st.defaultConfig = gl, st.defaultURLGenerator = Qr, st.contentTypeFormatters = bl, st.defaultLoaderPromise = function(e, t, i) {
2671
+ ot.moduleName = "ajax", ot.defaultConfig = gl, ot.defaultURLGenerator = Qr, ot.contentTypeFormatters = bl, ot.defaultLoaderPromise = function(e, t, i) {
2654
2672
  let s;
2655
2673
  return new Promise((o, r) => {
2656
2674
  if (!this.urlGenerator) {
@@ -2691,7 +2709,7 @@ st.moduleName = "ajax", st.defaultConfig = gl, st.defaultURLGenerator = Qr, st.c
2691
2709
  ci && console.warn("Ajax Load Error - No URL Set"), o([]);
2692
2710
  });
2693
2711
  };
2694
- let ws = st;
2712
+ let ws = ot;
2695
2713
  function ho(n) {
2696
2714
  const e = [];
2697
2715
  let t = n;
@@ -2963,23 +2981,23 @@ class Ji extends Me {
2963
2981
  return new Promise((s, o) => {
2964
2982
  const a = this.rows().indexOf(e), l = e.getElement();
2965
2983
  if (a > -1 && l) {
2966
- if ((i ?? !(this.table.options.scrollToRowIfHidden ?? !1)) && Z.elVisible(l)) {
2967
- const p = this.elementVertical ? Z.elOffset(l).top - Z.elOffset(this.elementVertical).top : 0;
2984
+ if ((i ?? !(this.table.options.scrollToRowIfHidden ?? !1)) && Q.elVisible(l)) {
2985
+ const p = this.elementVertical ? Q.elOffset(l).top - Q.elOffset(this.elementVertical).top : 0;
2968
2986
  if (p > 0 && p < (this.elementVertical?.clientHeight ?? 0) - l.offsetHeight) {
2969
2987
  s();
2970
2988
  return;
2971
2989
  }
2972
2990
  }
2973
- const c = t ?? this.table.options.scrollToRowPosition ?? wt.Top;
2991
+ const c = t ?? this.table.options.scrollToRowPosition ?? vt.Top;
2974
2992
  let d;
2975
- switch (c === wt.Nearest ? d = this.scrollToRowNearestTop(e) ? wt.Top : wt.Bottom : d = c, this.scrollToRow(e), d) {
2976
- case wt.Center:
2993
+ switch (c === vt.Nearest ? d = this.scrollToRowNearestTop(e) ? vt.Top : vt.Bottom : d = c, this.scrollToRow(e), d) {
2994
+ case vt.Center:
2977
2995
  this.elementVertical && (this.elementVertical.scrollHeight - this.elementVertical.scrollTop === this.elementVertical.clientHeight ? this.elementVertical.scrollTop = this.elementVertical.scrollTop + (l.offsetTop - this.elementVertical.scrollTop) - (this.elementVertical.scrollHeight - l.offsetTop) / 2 : this.elementVertical.scrollTop = this.elementVertical.scrollTop - this.elementVertical.clientHeight / 2);
2978
2996
  break;
2979
- case wt.Bottom:
2997
+ case vt.Bottom:
2980
2998
  this.elementVertical && (this.elementVertical.scrollHeight - this.elementVertical.scrollTop === this.elementVertical.clientHeight ? this.elementVertical.scrollTop = this.elementVertical.scrollTop - (this.elementVertical.scrollHeight - l.offsetTop) + l.offsetHeight : this.elementVertical.scrollTop = this.elementVertical.scrollTop - this.elementVertical.clientHeight + l.offsetHeight);
2981
2999
  break;
2982
- case wt.Top:
3000
+ case vt.Top:
2983
3001
  this.elementVertical && (this.elementVertical.scrollTop = l.offsetTop);
2984
3002
  break;
2985
3003
  }
@@ -3027,7 +3045,7 @@ const xl = {
3027
3045
  }
3028
3046
  }, kl = {
3029
3047
  copyToClipboard: ["ctrl + 67", "meta + 67"]
3030
- }, Dl = {
3048
+ }, Tl = {
3031
3049
  keybindings: {
3032
3050
  actions: Sl,
3033
3051
  bindings: kl
@@ -3148,7 +3166,7 @@ const kt = class kt extends I {
3148
3166
  return i?.getData && (t = i.getData("text/plain")), t;
3149
3167
  }
3150
3168
  };
3151
- kt.moduleName = "clipboard", kt.moduleExtensions = Dl, kt.pasteActions = xl, kt.pasteParsers = Rl;
3169
+ kt.moduleName = "clipboard", kt.moduleExtensions = Tl, kt.pasteActions = xl, kt.pasteParsers = Rl;
3152
3170
  let ys = kt;
3153
3171
  class co {
3154
3172
  constructor(e) {
@@ -3214,7 +3232,7 @@ class co {
3214
3232
  return this._cell;
3215
3233
  }
3216
3234
  }
3217
- const Tl = x`<div class="tabulator-cell"></div>`, Ml = process.env.NODE_ENV === "development";
3235
+ const Dl = x`<div class="tabulator-cell"></div>`, Ml = process.env.NODE_ENV === "development";
3218
3236
  class ki extends Me {
3219
3237
  constructor(e, t) {
3220
3238
  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();
@@ -3230,7 +3248,7 @@ class ki extends Me {
3230
3248
  this.generateElement(), this.setWidth(), this._configureCell();
3231
3249
  }
3232
3250
  generateElement() {
3233
- if (this.element = B(Tl), this.element.setAttribute(
3251
+ if (this.element = B(Dl), this.element.setAttribute(
3234
3252
  "role",
3235
3253
  this.table.options.cellRole ?? "gridcell"
3236
3254
  ), this.column.modules.format?.cellClass) {
@@ -3981,7 +3999,7 @@ class uo {
3981
3999
  }
3982
4000
  }
3983
4001
  const Yo = process.env.NODE_ENV === "development";
3984
- class De extends Me {
4002
+ class Te extends Me {
3985
4003
  constructor(e, t, i = "row") {
3986
4004
  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);
3987
4005
  }
@@ -4094,7 +4112,7 @@ class De extends Me {
4094
4112
  }
4095
4113
  // update the rows data
4096
4114
  updateData(e) {
4097
- const t = this.element && Z.elVisible(this.element);
4115
+ const t = this.element && Q.elVisible(this.element);
4098
4116
  let i = {}, s;
4099
4117
  return new Promise((o) => {
4100
4118
  if (typeof e == "string")
@@ -4293,7 +4311,7 @@ const Ll = {
4293
4311
  unique: function(n, e, t) {
4294
4312
  return n.filter((s, o) => !(s == null || typeof s == "string" && s.trim() === "") && n.indexOf(s) === o).length;
4295
4313
  }
4296
- }, Zo = process.env.NODE_ENV === "development", Dt = class Dt extends I {
4314
+ }, Zo = process.env.NODE_ENV === "development", Tt = class Tt extends I {
4297
4315
  constructor(e) {
4298
4316
  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");
4299
4317
  }
@@ -4355,7 +4373,7 @@ const Ll = {
4355
4373
  if (t.topCalc) {
4356
4374
  switch (typeof t.topCalc) {
4357
4375
  case "string":
4358
- Dt.calculations[t.topCalc] ? i.topCalc = Dt.calculations[t.topCalc] : Zo && console.warn(
4376
+ Tt.calculations[t.topCalc] ? i.topCalc = Tt.calculations[t.topCalc] : Zo && console.warn(
4359
4377
  "Column Calc Error - No such calculation found, ignoring: ",
4360
4378
  t.topCalc
4361
4379
  );
@@ -4369,7 +4387,7 @@ const Ll = {
4369
4387
  if (t.bottomCalc) {
4370
4388
  switch (typeof t.bottomCalc) {
4371
4389
  case "string":
4372
- Dt.calculations[t.bottomCalc] ? i.botCalc = Dt.calculations[t.bottomCalc] : Zo && console.warn(
4390
+ Tt.calculations[t.bottomCalc] ? i.botCalc = Tt.calculations[t.bottomCalc] : Zo && console.warn(
4373
4391
  "Column Calc Error - No such calculation found, ignoring: ",
4374
4392
  t.bottomCalc
4375
4393
  );
@@ -4460,7 +4478,7 @@ const Ll = {
4460
4478
  generateRow(e, t) {
4461
4479
  const i = this.generateRowData(e, t);
4462
4480
  this.table.modExists("mutator") && this.table.modules.mutator?.disable();
4463
- const s = new De(i, this, "calc");
4481
+ const s = new Te(i, this, "calc");
4464
4482
  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 Fl(s)), s.component), s.generateCells = () => {
4465
4483
  const o = [];
4466
4484
  this.table.columnManager?.columnsByIndex.forEach((r) => {
@@ -4533,9 +4551,9 @@ const Ll = {
4533
4551
  this.botRow && (this.table.rtl ? this.botElement.style.paddingLeft = e + "px" : this.botElement.style.paddingRight = e + "px");
4534
4552
  }
4535
4553
  };
4536
- Dt.moduleName = "columnCalcs", Dt.calculations = Ll;
4537
- let Cs = Dt;
4538
- class Es extends De {
4554
+ Tt.moduleName = "columnCalcs", Tt.calculations = Ll;
4555
+ let Cs = Tt;
4556
+ class Es extends Te {
4539
4557
  constructor(e = {}, t) {
4540
4558
  super(e, t), this.type = "placeholder", this.height = 0, this.outerHeight = 0, this.initialized = !1, this.modules = {}, this.cells = [];
4541
4559
  }
@@ -4732,7 +4750,7 @@ const zl = x`<span class="tabulator-data-tree-control" tabindex="0"><cx-icon-but
4732
4750
  const t = [];
4733
4751
  return e.forEach((i) => {
4734
4752
  let s, o;
4735
- t.push(i), i instanceof De && (i.create(), s = i.modules.dataTree, !s.index && s.children !== !1 && (o = this.getChildren(i, !1, !0), o.forEach((r) => {
4753
+ t.push(i), i instanceof Te && (i.create(), s = i.modules.dataTree, !s.index && s.children !== !1 && (o = this.getChildren(i, !1, !0), o.forEach((r) => {
4736
4754
  r.create(), t.push(r);
4737
4755
  })));
4738
4756
  }), t;
@@ -4755,7 +4773,7 @@ const zl = x`<span class="tabulator-data-tree-control" tabindex="0"><cx-icon-but
4755
4773
  Array.isArray(i) || (i = i ? [i] : []);
4756
4774
  const s = e.modules.dataTree.index + 1;
4757
4775
  if (i.forEach((o) => {
4758
- const r = new De(o || {}, this.table.rowManager);
4776
+ const r = new Te(o || {}, this.table.rowManager);
4759
4777
  r.create(), r.modules.dataTree.index = s, r.modules.dataTree.parent = e, r.modules.dataTree.children && (r.modules.dataTree.open = this.startOpen(
4760
4778
  r.getComponent(),
4761
4779
  r.modules.dataTree.index
@@ -4898,13 +4916,13 @@ const zl = x`<span class="tabulator-data-tree-control" tabindex="0"><cx-icon-but
4898
4916
  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(
4899
4917
  e.modules.dataTree.children
4900
4918
  ) || [] : s = e.modules.dataTree.children, s.forEach((o) => {
4901
- o instanceof De && i.push(o);
4919
+ o instanceof Te && i.push(o);
4902
4920
  })), i;
4903
4921
  }
4904
4922
  rowDeleting(e) {
4905
4923
  const t = e.modules.dataTree;
4906
4924
  t && t.children && Array.isArray(t.children) && t.children.forEach((i) => {
4907
- i instanceof De && i.wipe();
4925
+ i instanceof Te && i.wipe();
4908
4926
  });
4909
4927
  }
4910
4928
  rowDelete(e) {
@@ -4926,14 +4944,14 @@ const zl = x`<span class="tabulator-data-tree-control" tabindex="0"><cx-icon-but
4926
4944
  findChildIndex(e, t) {
4927
4945
  let i = !1;
4928
4946
  if (typeof e == "object")
4929
- if (e instanceof De)
4947
+ if (e instanceof Te)
4930
4948
  i = e.data;
4931
4949
  else if (e._getSelf)
4932
4950
  i = e._getSelf().data;
4933
4951
  else if (typeof HTMLElement < "u" && e instanceof HTMLElement) {
4934
4952
  const s = t.modules.dataTree;
4935
4953
  if (s) {
4936
- const o = s.children?.find((r) => r instanceof De ? r.element === e : !1);
4954
+ const o = s.children?.find((r) => r instanceof Te ? r.element === e : !1);
4937
4955
  o && (i = o.data);
4938
4956
  }
4939
4957
  } else e === null && (i = !1);
@@ -4954,7 +4972,7 @@ const zl = x`<span class="tabulator-data-tree-control" tabindex="0"><cx-icon-but
4954
4972
  getTreeChildren(e, t, i) {
4955
4973
  const s = e.modules.dataTree, o = [];
4956
4974
  return s?.children && (Array.isArray(s.children) || (e.modules.dataTree.children = this.generateChildren(e)), s.children.forEach((r) => {
4957
- r instanceof De && (t ? o.push(r.getComponent()) : o.push(r), i && this.getTreeChildren(r, t, i).forEach(
4975
+ r instanceof Te && (t ? o.push(r.getComponent()) : o.push(r), i && this.getTreeChildren(r, t, i).forEach(
4958
4976
  (a) => {
4959
4977
  o.push(a);
4960
4978
  }
@@ -5086,18 +5104,18 @@ const Qo = process.env.NODE_ENV === "development", Vl = function(n, e = {}, t) {
5086
5104
  return f.columns.forEach((y) => {
5087
5105
  let k;
5088
5106
  if (y) {
5089
- let T = y.value;
5090
- switch (typeof T) {
5107
+ let D = y.value;
5108
+ switch (typeof D) {
5091
5109
  case "object":
5092
- T = T !== null ? JSON.stringify(T) : "";
5110
+ D = D !== null ? JSON.stringify(D) : "";
5093
5111
  break;
5094
5112
  case "undefined":
5095
- T = "";
5113
+ D = "";
5096
5114
  break;
5097
5115
  }
5098
5116
  k = {
5099
5117
  colSpan: y.width,
5100
- content: T,
5118
+ content: D,
5101
5119
  rowSpan: y.height
5102
5120
  }, w && (k.styles = w), E.push(k);
5103
5121
  }
@@ -5149,21 +5167,21 @@ const Qo = process.env.NODE_ENV === "development", Vl = function(n, e = {}, t) {
5149
5167
  const f = [], w = [], E = {}, y = {
5150
5168
  e: {
5151
5169
  c: n[0] ? n[0].columns.reduce(
5152
- (k, T) => k + (T?.width ? T.width : 1),
5170
+ (k, D) => k + (D?.width ? D.width : 1),
5153
5171
  0
5154
5172
  ) : 0,
5155
5173
  r: n.length
5156
5174
  },
5157
5175
  s: { c: 0, r: 0 }
5158
5176
  };
5159
- return n.forEach((k, T) => {
5177
+ return n.forEach((k, D) => {
5160
5178
  const he = [];
5161
5179
  k.columns.forEach((L, ge) => {
5162
5180
  L ? (he.push(
5163
5181
  !(L.value instanceof Date) && typeof L.value == "object" ? JSON.stringify(L.value) : L.value
5164
5182
  ), (L.width > 1 || L.height > -1) && (L.height > 1 || L.width > 1) && w.push({
5165
- e: { c: ge + L.width - 1, r: T + L.height - 1 },
5166
- s: { c: ge, r: T }
5183
+ e: { c: ge + L.width - 1, r: D + L.height - 1 },
5184
+ s: { c: ge, r: D }
5167
5185
  })) : he.push("");
5168
5186
  }), f.push(he);
5169
5187
  }), o.utils.sheet_add_aoa(E, f), E["!ref"] = o.utils.encode_range(y), w.length && (E["!merges"] = w), E;
@@ -5592,7 +5610,7 @@ function nh(n, e, t) {
5592
5610
  const o = this.table;
5593
5611
  let r;
5594
5612
  return e.valueMap && (typeof e.valueMap == "string" ? r = function(a) {
5595
- return a.map((l) => Z.retrieveNestedData(
5613
+ return a.map((l) => Q.retrieveNestedData(
5596
5614
  o.options.nestedFieldSeparator,
5597
5615
  e.valueMap,
5598
5616
  l
@@ -5601,7 +5619,7 @@ function nh(n, e, t) {
5601
5619
  }
5602
5620
  function ah(n, e) {
5603
5621
  const t = e ?? {}, i = n.getValue(), s = i != null && i !== "", o = !!t.initials;
5604
- return !s && !o ? "" : B(x`<cx-avatar image=${te(s ? String(i) : void 0)} initials=${te(t.initials)} label=${te(t.label)} shape=${te(t.shape)} style="--size: ${t.size ?? "2rem"}"></cx-avatar>`);
5622
+ return !s && !o ? "" : B(x`<cx-avatar image=${Z(s ? String(i) : void 0)} initials=${Z(t.initials)} label=${Z(t.label)} shape=${Z(t.shape)} style="--size: ${t.size ?? "2rem"}"></cx-avatar>`);
5605
5623
  }
5606
5624
  function lh(n, e, t) {
5607
5625
  return '<svg enable-background="new 0 0 24 24" height="14" width="14" viewBox="0 0 24 24" xml:space="preserve" ><path fill="#CE1515" d="M22.245,4.015c0.313,0.313,0.313,0.826,0,1.139l-6.276,6.27c-0.313,0.312-0.313,0.826,0,1.14l6.273,6.272 c0.313,0.313,0.313,0.826,0,1.14l-2.285,2.277c-0.314,0.312-0.828,0.312-1.142,0l-6.271-6.271c-0.313-0.313-0.828-0.313-1.141,0 l-6.276,6.267c-0.313,0.313-0.828,0.313-1.141,0l-2.282-2.28c-0.313-0.313-0.313-0.826,0-1.14l6.278-6.269 c0.313-0.312,0.313-0.826,0-1.14L1.709,5.147c-0.314-0.313-0.314-0.827,0-1.14l2.284-2.278C4.308,1.417,4.821,1.417,5.135,1.73 L11.405,8c0.314,0.314,0.828,0.314,1.141,0.001l6.276-6.267c0.312-0.312,0.826-0.312,1.141,0L22.245,4.015z"/></svg>';
@@ -5664,7 +5682,7 @@ function or({
5664
5682
  rowData: t,
5665
5683
  separator: i
5666
5684
  }) {
5667
- return e.value !== void 0 ? e.value : e.getValue ? e.getValue(n, t) : e.field ? Z.retrieveNestedData(i, e.field, t) : n.getValue();
5685
+ return e.value !== void 0 ? e.value : e.getValue ? e.getValue(n, t) : e.field ? Q.retrieveNestedData(i, e.field, t) : n.getValue();
5668
5686
  }
5669
5687
  function mh(n, e, t) {
5670
5688
  if (!e?.elements || !Array.isArray(e.elements) || e.elements.length === 0)
@@ -5678,8 +5696,8 @@ function mh(n, e, t) {
5678
5696
  });
5679
5697
  if (ir({ elementConfig: L, elementValue: ge, rowData: i }))
5680
5698
  return !1;
5681
- let J = ge;
5682
- return L.valueMap && (J = L.valueMap[String(J)] ?? J), !sr(J);
5699
+ let Y = ge;
5700
+ return L.valueMap && (Y = L.valueMap[String(Y)] ?? Y), !sr(Y);
5683
5701
  });
5684
5702
  if (sr(r) && !a && e.placeholder !== void 0)
5685
5703
  return fh.call(this, n, e, t);
@@ -5691,7 +5709,7 @@ function mh(n, e, t) {
5691
5709
  gap: f,
5692
5710
  justifyContent: w,
5693
5711
  wrap: E
5694
- } = e, y = x`<cx-space class="tabulator-composite" style=${pt(p ?? {})} align-items=${c ?? "center"} ?block=${d} direction=${te(u)} justify-content=${te(w)} spacing=${f ?? "3x-small"} wrap=${E ?? "nowrap"}></cx-space>`, k = B(y), T = [];
5712
+ } = e, y = x`<cx-space class="tabulator-composite" style=${ft(p ?? {})} align-items=${c ?? "center"} ?block=${d} direction=${Z(u)} justify-content=${Z(w)} spacing=${f ?? "3x-small"} wrap=${E ?? "nowrap"}></cx-space>`, k = B(y), D = [];
5695
5713
  return e.elements.forEach((L) => {
5696
5714
  const ge = or({
5697
5715
  cell: n,
@@ -5701,8 +5719,8 @@ function mh(n, e, t) {
5701
5719
  });
5702
5720
  if (ir({ elementConfig: L, elementValue: ge, rowData: i }))
5703
5721
  return;
5704
- let J = ge;
5705
- L.valueMap && (J = L.valueMap[String(J)] ?? J);
5722
+ let Y = ge;
5723
+ L.valueMap && (Y = L.valueMap[String(Y)] ?? Y);
5706
5724
  const z = L.formatter || "plaintext", b = Yi(z), C = {
5707
5725
  getColumn: () => n.getColumn(),
5708
5726
  getData: () => i,
@@ -5710,9 +5728,9 @@ function mh(n, e, t) {
5710
5728
  getRow: () => h,
5711
5729
  getTable: () => s,
5712
5730
  getType: () => "cell",
5713
- getValue: () => J,
5714
- value: J
5715
- }, R = typeof L.formatterParams == "function" ? L.formatterParams(C) : L.formatterParams ?? {}, D = (re) => {
5731
+ getValue: () => Y,
5732
+ value: Y
5733
+ }, R = typeof L.formatterParams == "function" ? L.formatterParams(C) : L.formatterParams ?? {}, T = (re) => {
5716
5734
  t && t(re);
5717
5735
  };
5718
5736
  let S;
@@ -5721,10 +5739,10 @@ function mh(n, e, t) {
5721
5739
  this,
5722
5740
  C,
5723
5741
  R,
5724
- D
5742
+ T
5725
5743
  );
5726
5744
  } catch {
5727
- S = String(J ?? "");
5745
+ S = String(Y ?? "");
5728
5746
  }
5729
5747
  if (S == null)
5730
5748
  return;
@@ -5732,16 +5750,16 @@ function mh(n, e, t) {
5732
5750
  spacing: L.spacing,
5733
5751
  style: L.style
5734
5752
  });
5735
- typeof S == "string" ? _.textContent = S : S instanceof Node && _.appendChild(S), T.push({
5753
+ typeof S == "string" ? _.textContent = S : S instanceof Node && _.appendChild(S), D.push({
5736
5754
  separator: L.separator,
5737
5755
  wrapper: _
5738
5756
  });
5739
- }), T.length === 0 ? void 0 : (T.flatMap((L, ge) => {
5740
- const { separator: J, wrapper: z } = L, b = ge === T.length - 1;
5741
- if (!J || b)
5757
+ }), D.length === 0 ? void 0 : (D.flatMap((L, ge) => {
5758
+ const { separator: Y, wrapper: z } = L, b = ge === D.length - 1;
5759
+ if (!Y || b)
5742
5760
  return [z];
5743
5761
  const C = document.createElement("span");
5744
- return typeof J == "string" ? C.textContent = J : C.appendChild(J.cloneNode(!0)), [z, C];
5762
+ return typeof Y == "string" ? C.textContent = Y : C.appendChild(Y.cloneNode(!0)), [z, C];
5745
5763
  }).forEach((L) => k.appendChild(L)), k);
5746
5764
  }
5747
5765
  function gh(n) {
@@ -5752,7 +5770,7 @@ function gh(n) {
5752
5770
  }
5753
5771
  function bh(n, e) {
5754
5772
  const t = e ?? {}, i = gh(n.getValue());
5755
- return i === void 0 ? "" : B(x`<cx-format-date date=${i.toISOString()} weekday=${te(t.weekday)} era=${te(t.era)} year=${te(t.year)} month=${te(t.month)} day=${te(t.day)} hour=${te(t.hour)} minute=${te(t.minute)} second=${te(t.second)} time-zone-name=${te(t.timeZoneName)} time-zone=${te(t.timeZone)} hour-format=${te(t.hourFormat)} ?no-datetime-separator=${t.noDatetimeSeparator ?? !1}></cx-format-date>`);
5773
+ return i === void 0 ? "" : B(x`<cx-format-date date=${i.toISOString()} weekday=${Z(t.weekday)} era=${Z(t.era)} year=${Z(t.year)} month=${Z(t.month)} day=${Z(t.day)} hour=${Z(t.hour)} minute=${Z(t.minute)} second=${Z(t.second)} time-zone-name=${Z(t.timeZoneName)} time-zone=${Z(t.timeZone)} hour-format=${Z(t.hourFormat)} ?no-datetime-separator=${t.noDatetimeSeparator ?? !1}></cx-format-date>`);
5756
5774
  }
5757
5775
  const wh = process.env.NODE_ENV === "development";
5758
5776
  function vh(n, e, t) {
@@ -5817,12 +5835,12 @@ function kh(n, e) {
5817
5835
  }
5818
5836
  return i.class && (o.className = i.class), i.style && Object.assign(o.style, i.style), o;
5819
5837
  }
5820
- const Dh = x`<div style="display: flex; align-items: center; justify-content: center;"><img style="max-width: 100%; max-height: 100%; object-fit: cover;"></div>`;
5821
- function Th(n, e) {
5838
+ const Th = x`<div style="display: flex; align-items: center; justify-content: center;"><img style="max-width: 100%; max-height: 100%; object-fit: cover;"></div>`;
5839
+ function Dh(n, e) {
5822
5840
  let t = n.getValue();
5823
5841
  if (!t)
5824
5842
  return null;
5825
- const i = B(Dh), s = i.querySelector("img"), o = e ?? {};
5843
+ const i = B(Th), s = i.querySelector("img"), o = e ?? {};
5826
5844
  switch (o.urlPrefix && (t = o.urlPrefix + n.getValue()), o.urlSuffix && (t = t + o.urlSuffix), s.setAttribute("src", String(t)), typeof o.height) {
5827
5845
  case "number":
5828
5846
  i.style.height = o.height + "px";
@@ -5887,7 +5905,7 @@ function zh(n, e, t) {
5887
5905
  break;
5888
5906
  }
5889
5907
  if (r != null) {
5890
- if (e.urlField && (l = n.getData(), i = Z.retrieveNestedData(
5908
+ if (e.urlField && (l = n.getData(), i = Q.retrieveNestedData(
5891
5909
  this.table.options.nestedFieldSeparator,
5892
5910
  e.urlField,
5893
5911
  l
@@ -5946,7 +5964,7 @@ function Hh(n, e) {
5946
5964
  let t = Ui(P(lo(n.getValue())));
5947
5965
  const i = e ?? {};
5948
5966
  i.prefix && (t = i.prefix + t), i.suffix && (t = t + i.suffix);
5949
- const s = x`<cx-line-clamp lines="1"><span style=${pt(i.style ?? {})}>${t}</span></cx-line-clamp>`;
5967
+ const s = x`<cx-line-clamp lines="1"><span style=${ft(i.style ?? {})}>${t}</span></cx-line-clamp>`;
5950
5968
  return B(s);
5951
5969
  }
5952
5970
  function Nh(n, e = {}, t) {
@@ -6147,7 +6165,7 @@ function ec(n) {
6147
6165
  }
6148
6166
  function tc(n, e) {
6149
6167
  const t = Qh(e ?? {}, n), i = Zh(n.getValue()), s = ec(t);
6150
- return B(x`<cx-format-time .duration=${i} display-style=${te(t.displayStyle)} input-unit=${te(t.inputUnit)} locale=${te(t.locale)} placeholder=${te(t.placeholder)} units-format=${te(t.unitsFormat)} style=${pt(s)}></cx-format-time>`);
6168
+ return B(x`<cx-format-time .duration=${i} display-style=${Z(t.displayStyle)} input-unit=${Z(t.inputUnit)} locale=${Z(t.locale)} placeholder=${Z(t.placeholder)} units-format=${Z(t.unitsFormat)} style=${ft(s)}></cx-format-time>`);
6151
6169
  }
6152
6170
  function ic(n, e, t) {
6153
6171
  const i = e.size || 15, s = i + "px", o = Object.prototype.hasOwnProperty.call(
@@ -6191,7 +6209,7 @@ function rc(n, e) {
6191
6209
  const i = e ?? {};
6192
6210
  let s;
6193
6211
  i.getVariant && (s = i.getVariant(t)), !s && i.variantMap && (s = i.variantMap[t]), !s && i.variant && (s = i.variant), s ??= Rn.Body1;
6194
- const o = x`<cx-line-clamp lines="1"><cx-typography style=${pt(i.style ?? {})}></cx-typography></cx-line-clamp>`, r = B(o), a = r.querySelector(
6212
+ const o = x`<cx-line-clamp lines="1"><cx-typography style=${ft(i.style ?? {})}></cx-typography></cx-line-clamp>`, r = B(o), a = r.querySelector(
6195
6213
  "cx-typography"
6196
6214
  );
6197
6215
  a.variant = s;
@@ -6213,7 +6231,7 @@ const rn = {
6213
6231
  handle: xh,
6214
6232
  html: Rh,
6215
6233
  icon: kh,
6216
- image: Th,
6234
+ image: Dh,
6217
6235
  json: Fh,
6218
6236
  link: zh,
6219
6237
  lookup: Oh,
@@ -6233,7 +6251,7 @@ const rn = {
6233
6251
  typography: rc
6234
6252
  };
6235
6253
  sh(rn);
6236
- const Tt = class Tt extends I {
6254
+ const Dt = class Dt extends I {
6237
6255
  constructor(e) {
6238
6256
  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");
6239
6257
  }
@@ -6253,14 +6271,14 @@ const Tt = class Tt extends I {
6253
6271
  }
6254
6272
  lookupTypeFormatter(e, t) {
6255
6273
  const i = "formatter" + t + "Params", s = {
6256
- formatter: Tt.formatters.plaintext,
6274
+ formatter: Dt.formatters.plaintext,
6257
6275
  params: e.definition[i] || {},
6258
6276
  textFormatParams: e.definition.textFormatParams || {}
6259
6277
  }, o = e.definition["formatter" + t];
6260
- return s.formatter = Tt.lookupFormatter(o), s;
6278
+ return s.formatter = Dt.lookupFormatter(o), s;
6261
6279
  }
6262
6280
  static lookupFormatter(e) {
6263
- return Yi(e, Tt.formatters);
6281
+ return Yi(e, Dt.formatters);
6264
6282
  }
6265
6283
  cellRendered(e) {
6266
6284
  const t = e.modules.format;
@@ -6275,7 +6293,7 @@ const Tt = class Tt extends I {
6275
6293
  */
6276
6294
  formatHeader(e, t, i) {
6277
6295
  let s, o, r, a;
6278
- return e.definition.titleFormatter ? (s = Tt.lookupFormatter(e.definition.titleFormatter), r = (l) => {
6296
+ return e.definition.titleFormatter ? (s = Dt.lookupFormatter(e.definition.titleFormatter), r = (l) => {
6279
6297
  e.titleFormatterRendered = l;
6280
6298
  }, a = {
6281
6299
  getColumn: function() {
@@ -6335,8 +6353,8 @@ const Tt = class Tt extends I {
6335
6353
  return this.formatValue(e);
6336
6354
  }
6337
6355
  };
6338
- Tt.moduleName = "format", Tt.formatters = rn;
6339
- let Hi = Tt;
6356
+ Dt.moduleName = "format", Dt.formatters = rn;
6357
+ let Hi = Dt;
6340
6358
  const ht = process.env.NODE_ENV === "development", nc = x`<cx-option></cx-option>`, ac = x`<cx-divider></cx-divider>`;
6341
6359
  class lc {
6342
6360
  constructor(e, t, i, s, o, r) {
@@ -6412,7 +6430,7 @@ class lc {
6412
6430
  fallbackOption: i,
6413
6431
  freeWidth: s,
6414
6432
  placeholder: o
6415
- } = this.params, r = x`<cx-select style="width: 100%; margin: auto;" hoist ?clearable=${t} ?free-width=${s ?? !1} placeholder=${te(o)}></cx-select>`, a = B(r);
6433
+ } = this.params, r = x`<cx-select style="width: 100%; margin: auto;" hoist ?clearable=${t} ?free-width=${s ?? !1} placeholder=${Z(o)}></cx-select>`, a = B(r);
6416
6434
  i?.value != null && (a.fallbackOptionValue = this.sanitizeValue(i.value));
6417
6435
  const l = this.createPrefixElement();
6418
6436
  return l && a.prepend(l), e || (a.style.cursor = "default", a.style.caretColor = "transparent"), this._bindInputEvents(a), a;
@@ -6667,9 +6685,9 @@ class lc {
6667
6685
  return i > s ? 1 : -1;
6668
6686
  for (i = y.join(""), s = k.join(""), l = Math.min(i.length, s.length); a < l; )
6669
6687
  if (o = i[a], r = s[a++], o !== r) {
6670
- const T = Number(o), he = Number(r);
6671
- if (Number.isFinite(T) && Number.isFinite(he) && !Number.isNaN(T) && !Number.isNaN(he)) {
6672
- const L = o.startsWith("0") ? Number.parseFloat("." + o) : T, ge = r.startsWith("0") ? Number.parseFloat("." + r) : he;
6688
+ const D = Number(o), he = Number(r);
6689
+ if (Number.isFinite(D) && Number.isFinite(he) && !Number.isNaN(D) && !Number.isNaN(he)) {
6690
+ const L = o.startsWith("0") ? Number.parseFloat("." + o) : D, ge = r.startsWith("0") ? Number.parseFloat("." + r) : he;
6673
6691
  return L - ge;
6674
6692
  } else
6675
6693
  return o > r ? 1 : -1;
@@ -7020,12 +7038,12 @@ const hc = function(n, e, t, i, s) {
7020
7038
  }
7021
7039
  function f(E) {
7022
7040
  const y = document.createElement("span"), k = p.cloneNode(!0);
7023
- c.push(k), y.addEventListener("mouseenter", (T) => {
7024
- T.stopPropagation(), T.stopImmediatePropagation(), u(E);
7025
- }), y.addEventListener("mousemove", (T) => {
7026
- T.stopPropagation(), T.stopImmediatePropagation();
7027
- }), y.addEventListener("click", (T) => {
7028
- T.stopPropagation(), T.stopImmediatePropagation(), t(E), r.blur();
7041
+ c.push(k), y.addEventListener("mouseenter", (D) => {
7042
+ D.stopPropagation(), D.stopImmediatePropagation(), u(E);
7043
+ }), y.addEventListener("mousemove", (D) => {
7044
+ D.stopPropagation(), D.stopImmediatePropagation();
7045
+ }), y.addEventListener("click", (D) => {
7046
+ D.stopPropagation(), D.stopImmediatePropagation(), t(E), r.blur();
7029
7047
  }), y.appendChild(k), d.appendChild(y);
7030
7048
  }
7031
7049
  function w(E) {
@@ -7227,7 +7245,7 @@ const hc = function(n, e, t, i, s) {
7227
7245
  textarea: fc,
7228
7246
  tickCross: mc,
7229
7247
  time: bc
7230
- }, Ti = process.env.NODE_ENV === "development", nn = "tabulator-edit-list-trigger", vc = "tabulator-edit-list-trigger-caret", yc = x`<button aria-label="Open list editor" class=${nn} tabindex="-1" type="button"><cx-icon aria-hidden="true" class=${vc} name="arrow_drop_down"></cx-icon></button>`, mi = class mi extends I {
7248
+ }, Di = process.env.NODE_ENV === "development", nn = "tabulator-edit-list-trigger", vc = "tabulator-edit-list-trigger-caret", yc = x`<button aria-label="Open list editor" class=${nn} tabindex="-1" type="button"><cx-icon aria-hidden="true" class=${vc} name="arrow_drop_down"></cx-icon></button>`, mi = class mi extends I {
7231
7249
  constructor(e) {
7232
7250
  super(e), this.currentCell = !1, this.mouseClick = !1, this.recursionBlock = !1, this.invalidEdit = !1, this.editedCells = [], this.convertEmptyValues = !1, this.editors = mi.editors, this.registerTableOption("editTriggerEvent", "focus"), this.registerTableOption("editorEmptyValue"), this.registerTableOption(
7233
7251
  "editorEmptyValueFunc",
@@ -7312,7 +7330,7 @@ const hc = function(n, e, t, i, s) {
7312
7330
  return !!e._getSelf().modules.edit && e._getSelf().modules.edit.edited;
7313
7331
  }
7314
7332
  cellCancelEdit(e) {
7315
- e._getSelf() === this.currentCell ? this.cancelEdit() : Ti && console.warn(
7333
+ e._getSelf() === this.currentCell ? this.cancelEdit() : Di && console.warn(
7316
7334
  "Cancel Editor Error - This cell is not currently being edited "
7317
7335
  );
7318
7336
  }
@@ -7375,7 +7393,7 @@ const hc = function(n, e, t, i, s) {
7375
7393
  if (o.column.hidden)
7376
7394
  continue;
7377
7395
  const r = o.getElement();
7378
- if (o.column.modules.edit && r && Z.elVisible(r) && this.allowEdit(o)) {
7396
+ if (o.column.modules.edit && r && Q.elVisible(r) && this.allowEdit(o)) {
7379
7397
  i = o;
7380
7398
  break;
7381
7399
  }
@@ -7390,7 +7408,7 @@ const hc = function(n, e, t, i, s) {
7390
7408
  if (o.column.hidden)
7391
7409
  continue;
7392
7410
  const r = o.getElement();
7393
- if (o.column.modules.edit && r && Z.elVisible(r) && this.allowEdit(o)) {
7411
+ if (o.column.modules.edit && r && Q.elVisible(r) && this.allowEdit(o)) {
7394
7412
  i = o;
7395
7413
  break;
7396
7414
  }
@@ -7433,13 +7451,13 @@ const hc = function(n, e, t, i, s) {
7433
7451
  let i = !1;
7434
7452
  switch (typeof e) {
7435
7453
  case "string":
7436
- this.editors[e] ? i = this.editors[e] : Ti && console.warn("Editor Error - No such editor found: ", e);
7454
+ this.editors[e] ? i = this.editors[e] : Di && console.warn("Editor Error - No such editor found: ", e);
7437
7455
  break;
7438
7456
  case "function":
7439
7457
  i = e;
7440
7458
  break;
7441
7459
  case "boolean":
7442
- e === !0 && (typeof t.definition.formatter == "function" ? Ti && console.warn(
7460
+ e === !0 && (typeof t.definition.formatter == "function" ? Di && console.warn(
7443
7461
  "Editor Error - Cannot auto lookup editor for a custom formatter: ",
7444
7462
  t.definition.formatter
7445
7463
  ) : t.definition.formatter && this.editors[t.definition.formatter] ? i = this.editors[t.definition.formatter] : i = this.editors.input);
@@ -7603,7 +7621,7 @@ const hc = function(n, e, t, i, s) {
7603
7621
  k.stopPropagation();
7604
7622
  });
7605
7623
  } else
7606
- return Ti && console.warn(
7624
+ return Di && console.warn(
7607
7625
  "Edit Error - Editor should return an instance of Node, the editor returned:",
7608
7626
  l
7609
7627
  ), this.blur(r), !1;
@@ -8202,15 +8220,15 @@ function Oe(n) {
8202
8220
  }
8203
8221
  }
8204
8222
  const an = Symbol("skip-composite-element");
8205
- function Dc(n, e, t, i, s) {
8223
+ function Tc(n, e, t, i, s) {
8206
8224
  if (typeof n?.getValue == "function")
8207
8225
  return an;
8208
8226
  if (n?.value !== void 0)
8209
8227
  return n.value;
8210
8228
  const o = n?.field;
8211
- return typeof o == "string" && o.length > 0 ? o === e ? t : s ? Z.retrieveNestedData(s, o, i) : i[o] : t;
8229
+ return typeof o == "string" && o.length > 0 ? o === e ? t : s ? Q.retrieveNestedData(s, o, i) : i[o] : t;
8212
8230
  }
8213
- function Tc(n, e, t) {
8231
+ function Dc(n, e, t) {
8214
8232
  return !!(typeof n?.shouldHide == "function" && Oe(() => n.shouldHide(e, t)) || n?.hideValues !== void 0 && (Array.isArray(n.hideValues) ? n.hideValues : [n.hideValues]).includes(e) || typeof n?.shouldShow == "function" && !Oe(
8215
8233
  () => n.shouldShow(e, t)
8216
8234
  ) || n?.showValues !== void 0 && !(Array.isArray(n.showValues) ? n.showValues : [n.showValues]).includes(e));
@@ -8221,7 +8239,7 @@ function Mc(n, e) {
8221
8239
  return [];
8222
8240
  const l = [];
8223
8241
  for (const h of a) {
8224
- const c = Dc(
8242
+ const c = Tc(
8225
8243
  h,
8226
8244
  e,
8227
8245
  i,
@@ -8236,7 +8254,7 @@ function Mc(n, e) {
8236
8254
  const u = p[String(c)];
8237
8255
  u !== void 0 && (d = u);
8238
8256
  }
8239
- if (!Tc(h, d, s) && (d !== c && Ni(l, d, c), h?.formatter !== void 0)) {
8257
+ if (!Dc(h, d, s) && (d !== c && Ni(l, d, c), h?.formatter !== void 0)) {
8240
8258
  const u = fo({
8241
8259
  columnField: e,
8242
8260
  formatter: h.formatter,
@@ -8268,7 +8286,7 @@ function Lc(n) {
8268
8286
  if (typeof r == "string") {
8269
8287
  const l = r, h = i ?? (typeof s?.options?.nestedFieldSeparator == "string" ? s.options.nestedFieldSeparator : void 0);
8270
8288
  a = t.map(
8271
- (c) => Z.retrieveNestedData(h, l, c)
8289
+ (c) => Q.retrieveNestedData(h, l, c)
8272
8290
  );
8273
8291
  } else if (typeof r == "function") {
8274
8292
  const l = Oe(() => r(t));
@@ -8300,7 +8318,7 @@ function _c(n) {
8300
8318
  let r = t, a = !1;
8301
8319
  if (typeof e.labelField == "string") {
8302
8320
  const l = s ?? (typeof o?.options?.nestedFieldSeparator == "string" ? o.options.nestedFieldSeparator : void 0);
8303
- r = l ? Z.retrieveNestedData(l, e.labelField, i) : i?.[e.labelField], a = !0;
8321
+ r = l ? Q.retrieveNestedData(l, e.labelField, i) : i?.[e.labelField], a = !0;
8304
8322
  }
8305
8323
  return typeof e.label == "string" && (r = e.label, a = !0), a ? r != null && r !== t ? [r] : [] : [];
8306
8324
  }
@@ -8558,7 +8576,7 @@ const Ae = process.env.NODE_ENV === "development", ct = class ct extends I {
8558
8576
  ), this.subscribe(
8559
8577
  "column-width-fit-after",
8560
8578
  this.showHeaderFilterElements.bind(this)
8561
- ), this.subscribe("table-built", this.tableBuilt.bind(this)), this.subscribe("placeholder", this.generatePlaceholder.bind(this)), this.table.options.filterMode === ut.Remote && this.subscribe("data-params", this.remoteFilterParams.bind(this)), this.registerDataHandler(
8579
+ ), this.subscribe("table-built", this.tableBuilt.bind(this)), this.subscribe("placeholder", this.generatePlaceholder.bind(this)), this.table.options.filterMode === pt.Remote && this.subscribe("data-params", this.remoteFilterParams.bind(this)), this.registerDataHandler(
8562
8580
  this.filter.bind(this),
8563
8581
  10
8564
8582
  );
@@ -8825,8 +8843,8 @@ const Ae = process.env.NODE_ENV === "development", ct = class ct extends I {
8825
8843
  }), h.addEventListener("focus", () => {
8826
8844
  const y = this.table.columnManager?.contentsElement, k = this.table.rowManager?.element;
8827
8845
  if (y && k && this.table.rowManager && this.table.columnManager) {
8828
- const T = y.scrollLeft, he = k.scrollLeft;
8829
- T !== he && (this.table.rowManager.scrollHorizontal(T), this.table.columnManager.scrollHorizontal(T));
8846
+ const D = y.scrollLeft, he = k.scrollLeft;
8847
+ D !== he && (this.table.rowManager.scrollHorizontal(D), this.table.columnManager.scrollHorizontal(D));
8830
8848
  }
8831
8849
  }), d = !1, p = function(y) {
8832
8850
  d && clearTimeout(d), d = setTimeout(() => {
@@ -8889,7 +8907,7 @@ const Ae = process.env.NODE_ENV === "development", ct = class ct extends I {
8889
8907
  ));
8890
8908
  }
8891
8909
  refreshFilter() {
8892
- this.tableInitialized && (this.table.options.filterMode === ut.Remote ? this.reloadData(null, !1, !1) : this.refreshData(!0));
8910
+ this.tableInitialized && (this.table.options.filterMode === pt.Remote ? this.reloadData(null, !1, !1) : this.refreshData(!0));
8893
8911
  }
8894
8912
  // check if the filters has changed since last use
8895
8913
  trackChanges() {
@@ -9114,7 +9132,7 @@ const Ae = process.env.NODE_ENV === "development", ct = class ct extends I {
9114
9132
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
9115
9133
  filter(e, t) {
9116
9134
  const i = [], s = [];
9117
- return this.subscribedExternal("dataFiltering") && this.dispatchExternal("dataFiltering", this.getFilters(!0)), this.table.options.filterMode !== ut.Remote && (this.filterList.length || Object.keys(this.headerFilters).length) ? e.forEach((o) => {
9135
+ return this.subscribedExternal("dataFiltering") && this.dispatchExternal("dataFiltering", this.getFilters(!0)), this.table.options.filterMode !== pt.Remote && (this.filterList.length || Object.keys(this.headerFilters).length) ? e.forEach((o) => {
9118
9136
  this.filterRow(o) && i.push(o);
9119
9137
  }) : e.forEach((o) => i.push(o)), this.subscribedExternal("dataFiltered") && (i.forEach((o) => {
9120
9138
  s.push(o.getComponent());
@@ -9308,7 +9326,7 @@ const Uc = process.env.NODE_ENV === "development", yo = class yo extends I {
9308
9326
  }
9309
9327
  };
9310
9328
  yo.moduleName = "frozenColumns";
9311
- let Ds = yo;
9329
+ let Ts = yo;
9312
9330
  const cr = process.env.NODE_ENV === "development", Co = class Co extends I {
9313
9331
  constructor(e) {
9314
9332
  super(e), this.topElement = document.createElement("div"), this.rows = [], this.registerComponentFunction("row", "freeze", this.freezeRow.bind(this)), this.registerComponentFunction(
@@ -9395,7 +9413,7 @@ const cr = process.env.NODE_ENV === "development", Co = class Co extends I {
9395
9413
  }
9396
9414
  };
9397
9415
  Co.moduleName = "frozenRows";
9398
- let Ts = Co;
9416
+ let Ds = Co;
9399
9417
  const Kc = process.env.NODE_ENV === "development", qc = x`<cx-icon-button class="tabulator-group-toggle" name="keyboard_arrow_down"></cx-icon-button>`, Xc = x`<div class="tabulator-group-level-indent"></div>`, Jc = x`<cx-button size="small"><cx-icon slot="prefix" name="add" variant="outlined"></cx-icon>
9400
9418
  Load More
9401
9419
  </cx-button>`, Yc = x`<div class="tabulator-data-tree-loading">Loading...</div>`;
@@ -9746,7 +9764,7 @@ class Yt {
9746
9764
  (!this.initialized || e) && (this.normalizeHeight(), this.initialized = !0);
9747
9765
  }
9748
9766
  reinitialize() {
9749
- this.initialized = !1, this.heightInitialized = !1, this.height = 0, this.element && Z.elVisible(this.element) && this.initialize(!0);
9767
+ this.initialized = !1, this.heightInitialized = !1, this.height = 0, this.element && Q.elVisible(this.element) && this.initialize(!0);
9750
9768
  }
9751
9769
  setHeight(e) {
9752
9770
  this.height !== e && (this.height = e, this.element && (this.outerHeight = this.element.offsetHeight));
@@ -10377,7 +10395,7 @@ const Zc = {
10377
10395
  // rebind rows to new element after deletion
10378
10396
  _rebindRow(e, t) {
10379
10397
  this.history.forEach((i) => {
10380
- if (i.component instanceof De)
10398
+ if (i.component instanceof Te)
10381
10399
  i.component === e && (i.component = t);
10382
10400
  else if (i.component instanceof ki && i.component.row === e) {
10383
10401
  const s = i.component.column.getField();
@@ -10497,20 +10515,20 @@ function nd() {
10497
10515
  var R = ge(C);
10498
10516
  R.chunkSize = parseInt(R.chunkSize), C.step || C.chunk || (R.chunkSize = null), this._handle = new E(R), (this._handle.streamer = this)._config = R;
10499
10517
  }).call(this, b), this.parseChunk = function(C, R) {
10500
- var D = parseInt(this._config.skipFirstNLines) || 0;
10501
- if (this.isFirstChunk && 0 < D) {
10518
+ var T = parseInt(this._config.skipFirstNLines) || 0;
10519
+ if (this.isFirstChunk && 0 < T) {
10502
10520
  let _ = this._config.newline;
10503
- _ || (S = this._config.quoteChar || '"', _ = this._handle.guessLineEndings(C, S)), C = [...C.split(_).slice(D)].join(_);
10521
+ _ || (S = this._config.quoteChar || '"', _ = this._handle.guessLineEndings(C, S)), C = [...C.split(_).slice(T)].join(_);
10504
10522
  }
10505
10523
  this.isFirstChunk && z(this._config.beforeFirstChunk) && (S = this._config.beforeFirstChunk(C)) !== void 0 && (C = S), this.isFirstChunk = !1, this._halted = !1;
10506
- var D = this._partialLine + C, S = (this._partialLine = "", this._handle.parse(D, this._baseIndex, !this._finished));
10524
+ var T = this._partialLine + C, S = (this._partialLine = "", this._handle.parse(T, this._baseIndex, !this._finished));
10507
10525
  if (!this._handle.paused() && !this._handle.aborted()) {
10508
- if (C = S.meta.cursor, D = (this._finished || (this._partialLine = D.substring(C - this._baseIndex), this._baseIndex = C), S && S.data && (this._rowCount += S.data.length), this._finished || this._config.preview && this._rowCount >= this._config.preview), r) i.postMessage({ results: S, workerId: h.WORKER_ID, finished: D });
10526
+ if (C = S.meta.cursor, T = (this._finished || (this._partialLine = T.substring(C - this._baseIndex), this._baseIndex = C), S && S.data && (this._rowCount += S.data.length), this._finished || this._config.preview && this._rowCount >= this._config.preview), r) i.postMessage({ results: S, workerId: h.WORKER_ID, finished: T });
10509
10527
  else if (z(this._config.chunk) && !R) {
10510
10528
  if (this._config.chunk(S, this._handle), this._handle.paused() || this._handle.aborted()) return void (this._halted = !0);
10511
10529
  this._completeResults = S = void 0;
10512
10530
  }
10513
- return this._config.step || this._config.chunk || (this._completeResults.data = this._completeResults.data.concat(S.data), this._completeResults.errors = this._completeResults.errors.concat(S.errors), this._completeResults.meta = S.meta), this._completed || !D || !z(this._config.complete) || S && S.meta.aborted || (this._config.complete(this._completeResults, this._input), this._completed = !0), D || S && S.meta.paused || this._nextChunk(), S;
10531
+ return this._config.step || this._config.chunk || (this._completeResults.data = this._completeResults.data.concat(S.data), this._completeResults.errors = this._completeResults.errors.concat(S.errors), this._completeResults.meta = S.meta), this._completed || !T || !z(this._config.complete) || S && S.meta.aborted || (this._config.complete(this._completeResults, this._input), this._completed = !0), T || S && S.meta.paused || this._nextChunk(), S;
10514
10532
  }
10515
10533
  this._halted = !0;
10516
10534
  }, this._sendError = function(C) {
@@ -10528,9 +10546,9 @@ function nd() {
10528
10546
  }, this._readChunk = function() {
10529
10547
  if (this._finished) this._chunkLoaded();
10530
10548
  else {
10531
- if (C = new XMLHttpRequest(), this._config.withCredentials && (C.withCredentials = this._config.withCredentials), o || (C.onload = J(this._chunkLoaded, this), C.onerror = J(this._chunkError, this)), C.open(this._config.downloadRequestBody ? "POST" : "GET", this._input, !o), this._config.downloadRequestHeaders) {
10532
- var R, D = this._config.downloadRequestHeaders;
10533
- for (R in D) C.setRequestHeader(R, D[R]);
10549
+ if (C = new XMLHttpRequest(), this._config.withCredentials && (C.withCredentials = this._config.withCredentials), o || (C.onload = Y(this._chunkLoaded, this), C.onerror = Y(this._chunkError, this)), C.open(this._config.downloadRequestBody ? "POST" : "GET", this._input, !o), this._config.downloadRequestHeaders) {
10550
+ var R, T = this._config.downloadRequestHeaders;
10551
+ for (R in T) C.setRequestHeader(R, T[R]);
10534
10552
  }
10535
10553
  var S;
10536
10554
  this._config.chunkSize && (S = this._start + this._config.chunkSize - 1, C.setRequestHeader("Range", "bytes=" + this._start + "-" + S));
@@ -10549,14 +10567,14 @@ function nd() {
10549
10567
  }
10550
10568
  function u(b) {
10551
10569
  (b = b || {}).chunkSize || (b.chunkSize = h.LocalChunkSize), d.call(this, b);
10552
- var C, R, D = typeof FileReader < "u";
10570
+ var C, R, T = typeof FileReader < "u";
10553
10571
  this.stream = function(S) {
10554
- this._input = S, R = S.slice || S.webkitSlice || S.mozSlice, D ? ((C = new FileReader()).onload = J(this._chunkLoaded, this), C.onerror = J(this._chunkError, this)) : C = new FileReaderSync(), this._nextChunk();
10572
+ this._input = S, R = S.slice || S.webkitSlice || S.mozSlice, T ? ((C = new FileReader()).onload = Y(this._chunkLoaded, this), C.onerror = Y(this._chunkError, this)) : C = new FileReaderSync(), this._nextChunk();
10555
10573
  }, this._nextChunk = function() {
10556
10574
  this._finished || this._config.preview && !(this._rowCount < this._config.preview) || this._readChunk();
10557
10575
  }, this._readChunk = function() {
10558
10576
  var S = this._input, _ = (this._config.chunkSize && (_ = Math.min(this._start + this._config.chunkSize, this._input.size), S = R.call(S, this._start, _)), C.readAsText(S, this._config.encoding));
10559
- D || this._chunkLoaded({ target: { result: _ } });
10577
+ T || this._chunkLoaded({ target: { result: _ } });
10560
10578
  }, this._chunkLoaded = function(S) {
10561
10579
  this._start += this._config.chunkSize, this._finished = !this._config.chunkSize || this._start >= this._input.size, this.parseChunk(S.target.result);
10562
10580
  }, this._chunkError = function() {
@@ -10568,13 +10586,13 @@ function nd() {
10568
10586
  d.call(this, b = b || {}), this.stream = function(R) {
10569
10587
  return C = R, this._nextChunk();
10570
10588
  }, this._nextChunk = function() {
10571
- var R, D;
10572
- if (!this._finished) return R = this._config.chunkSize, C = R ? (D = C.substring(0, R), C.substring(R)) : (D = C, ""), this._finished = !C, this.parseChunk(D);
10589
+ var R, T;
10590
+ if (!this._finished) return R = this._config.chunkSize, C = R ? (T = C.substring(0, R), C.substring(R)) : (T = C, ""), this._finished = !C, this.parseChunk(T);
10573
10591
  };
10574
10592
  }
10575
10593
  function w(b) {
10576
10594
  d.call(this, b = b || {});
10577
- var C = [], R = !0, D = !1;
10595
+ var C = [], R = !0, T = !1;
10578
10596
  this.pause = function() {
10579
10597
  d.prototype.pause.apply(this, arguments), this._input.pause();
10580
10598
  }, this.resume = function() {
@@ -10582,30 +10600,30 @@ function nd() {
10582
10600
  }, this.stream = function(S) {
10583
10601
  this._input = S, this._input.on("data", this._streamData), this._input.on("end", this._streamEnd), this._input.on("error", this._streamError);
10584
10602
  }, this._checkIsFinished = function() {
10585
- D && C.length === 1 && (this._finished = !0);
10603
+ T && C.length === 1 && (this._finished = !0);
10586
10604
  }, this._nextChunk = function() {
10587
10605
  this._checkIsFinished(), C.length ? this.parseChunk(C.shift()) : R = !0;
10588
- }, this._streamData = J(function(S) {
10606
+ }, this._streamData = Y(function(S) {
10589
10607
  try {
10590
10608
  C.push(typeof S == "string" ? S : S.toString(this._config.encoding)), R && (R = !1, this._checkIsFinished(), this.parseChunk(C.shift()));
10591
10609
  } catch (_) {
10592
10610
  this._streamError(_);
10593
10611
  }
10594
- }, this), this._streamError = J(function(S) {
10612
+ }, this), this._streamError = Y(function(S) {
10595
10613
  this._streamCleanUp(), this._sendError(S);
10596
- }, this), this._streamEnd = J(function() {
10597
- this._streamCleanUp(), D = !0, this._streamData("");
10598
- }, this), this._streamCleanUp = J(function() {
10614
+ }, this), this._streamEnd = Y(function() {
10615
+ this._streamCleanUp(), T = !0, this._streamData("");
10616
+ }, this), this._streamCleanUp = Y(function() {
10599
10617
  this._input.removeListener("data", this._streamData), this._input.removeListener("end", this._streamEnd), this._input.removeListener("error", this._streamError);
10600
10618
  }, this);
10601
10619
  }
10602
10620
  function E(b) {
10603
- var C, R, D, S, _ = Math.pow(2, 53), re = -_, je = /^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/, Xe = /^((\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)))$/, W = this, pe = 0, O = 0, Fe = !1, H = !1, j = [], M = { data: [], errors: [], meta: {} };
10621
+ var C, R, T, S, _ = Math.pow(2, 53), re = -_, je = /^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/, Xe = /^((\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)))$/, W = this, pe = 0, O = 0, Fe = !1, H = !1, j = [], M = { data: [], errors: [], meta: {} };
10604
10622
  function Ge(K) {
10605
10623
  return b.skipEmptyLines === "greedy" ? K.join("").trim() === "" : K.length === 1 && K[0].length === 0;
10606
10624
  }
10607
10625
  function ne() {
10608
- if (M && D && (tt("Delimiter", "UndetectableDelimiter", "Unable to auto-detect delimiting character; defaulted to '" + h.DefaultDelimiter + "'"), D = !1), b.skipEmptyLines && (M.data = M.data.filter(function(A) {
10626
+ if (M && T && (it("Delimiter", "UndetectableDelimiter", "Unable to auto-detect delimiting character; defaulted to '" + h.DefaultDelimiter + "'"), T = !1), b.skipEmptyLines && (M.data = M.data.filter(function(A) {
10609
10627
  return !Ge(A);
10610
10628
  })), be()) {
10611
10629
  let A = function(ae, we) {
@@ -10618,13 +10636,13 @@ function nd() {
10618
10636
  }
10619
10637
  function G(A, ae) {
10620
10638
  for (var we = b.header ? {} : [], se = 0; se < A.length; se++) {
10621
- var oe = se, U = A[se], U = ((it, N) => ((ce) => (b.dynamicTypingFunction && b.dynamicTyping[ce] === void 0 && (b.dynamicTyping[ce] = b.dynamicTypingFunction(ce)), (b.dynamicTyping[ce] || b.dynamicTyping) === !0))(it) ? N === "true" || N === "TRUE" || N !== "false" && N !== "FALSE" && (((ce) => {
10639
+ var oe = se, U = A[se], U = ((st, N) => ((ce) => (b.dynamicTypingFunction && b.dynamicTyping[ce] === void 0 && (b.dynamicTyping[ce] = b.dynamicTypingFunction(ce)), (b.dynamicTyping[ce] || b.dynamicTyping) === !0))(st) ? N === "true" || N === "TRUE" || N !== "false" && N !== "FALSE" && (((ce) => {
10622
10640
  if (je.test(ce) && (ce = parseFloat(ce), re < ce && ce < _))
10623
10641
  return 1;
10624
10642
  })(N) ? parseFloat(N) : Xe.test(N) ? new Date(N) : N === "" ? null : N) : N)(oe = b.header ? se >= j.length ? "__parsed_extra" : j[se] : oe, U = b.transform ? b.transform(U, oe) : U);
10625
10643
  oe === "__parsed_extra" ? (we[oe] = we[oe] || [], we[oe].push(U)) : we[oe] = U;
10626
10644
  }
10627
- return b.header && (se > j.length ? tt("FieldMismatch", "TooManyFields", "Too many fields: expected " + j.length + " fields but parsed " + se, O + ae) : se < j.length && tt("FieldMismatch", "TooFewFields", "Too few fields: expected " + j.length + " fields but parsed " + se, O + ae)), we;
10645
+ return b.header && (se > j.length ? it("FieldMismatch", "TooManyFields", "Too many fields: expected " + j.length + " fields but parsed " + se, O + ae) : se < j.length && it("FieldMismatch", "TooFewFields", "Too few fields: expected " + j.length + " fields but parsed " + se, O + ae)), we;
10628
10646
  }
10629
10647
  var fe;
10630
10648
  M && (b.header || b.dynamicTyping || b.transform) && (fe = 1, !M.data.length || Array.isArray(M.data[0]) ? (M.data = M.data.map(G), fe = M.data.length) : M.data = G(M.data, 0), b.header && M.meta && (M.meta.fields = j), O += fe);
@@ -10632,21 +10650,21 @@ function nd() {
10632
10650
  function be() {
10633
10651
  return b.header && j.length === 0;
10634
10652
  }
10635
- function tt(K, G, fe, A) {
10653
+ function it(K, G, fe, A) {
10636
10654
  K = { type: K, code: G, message: fe }, A !== void 0 && (K.row = A), M.errors.push(K);
10637
10655
  }
10638
10656
  z(b.step) && (S = b.step, b.step = function(K) {
10639
10657
  M = K, be() ? ne() : (ne(), M.data.length !== 0 && (pe += K.data.length, b.preview && pe > b.preview ? R.abort() : (M.data = M.data[0], S(M, W))));
10640
10658
  }), this.parse = function(K, G, fe) {
10641
- var A = b.quoteChar || '"', A = (b.newline || (b.newline = this.guessLineEndings(K, A)), D = !1, b.delimiter ? z(b.delimiter) && (b.delimiter = b.delimiter(K), M.meta.delimiter = b.delimiter) : ((A = ((ae, we, se, oe, U) => {
10642
- var it, N, ce, xt;
10659
+ var A = b.quoteChar || '"', A = (b.newline || (b.newline = this.guessLineEndings(K, A)), T = !1, b.delimiter ? z(b.delimiter) && (b.delimiter = b.delimiter(K), M.meta.delimiter = b.delimiter) : ((A = ((ae, we, se, oe, U) => {
10660
+ var st, N, ce, xt;
10643
10661
  U = U || [",", " ", "|", ";", h.RECORD_SEP, h.UNIT_SEP];
10644
10662
  for (var qt = 0; qt < U.length; qt++) {
10645
- for (var nt, li = U[qt], Le = 0, at = 0, Ce = 0, He = (ce = void 0, new k({ comments: oe, delimiter: li, newline: we, preview: 10 }).parse(ae)), gt = 0; gt < He.data.length; gt++) se && Ge(He.data[gt]) ? Ce++ : (nt = He.data[gt].length, at += nt, ce === void 0 ? ce = nt : 0 < nt && (Le += Math.abs(nt - ce), ce = nt));
10646
- 0 < He.data.length && (at /= He.data.length - Ce), (N === void 0 || Le <= N) && (xt === void 0 || xt < at) && 1.99 < at && (N = Le, it = li, xt = at);
10663
+ for (var nt, li = U[qt], Le = 0, at = 0, Ce = 0, He = (ce = void 0, new k({ comments: oe, delimiter: li, newline: we, preview: 10 }).parse(ae)), wt = 0; wt < He.data.length; wt++) se && Ge(He.data[wt]) ? Ce++ : (nt = He.data[wt].length, at += nt, ce === void 0 ? ce = nt : 0 < nt && (Le += Math.abs(nt - ce), ce = nt));
10664
+ 0 < He.data.length && (at /= He.data.length - Ce), (N === void 0 || Le <= N) && (xt === void 0 || xt < at) && 1.99 < at && (N = Le, st = li, xt = at);
10647
10665
  }
10648
- return { successful: !!(b.delimiter = it), bestDelimiter: it };
10649
- })(K, b.newline, b.skipEmptyLines, b.comments, b.delimitersToGuess)).successful ? b.delimiter = A.bestDelimiter : (D = !0, b.delimiter = h.DefaultDelimiter), M.meta.delimiter = b.delimiter), ge(b));
10666
+ return { successful: !!(b.delimiter = st), bestDelimiter: st };
10667
+ })(K, b.newline, b.skipEmptyLines, b.comments, b.delimitersToGuess)).successful ? b.delimiter = A.bestDelimiter : (T = !0, b.delimiter = h.DefaultDelimiter), M.meta.delimiter = b.delimiter), ge(b));
10650
10668
  return b.preview && b.header && A.preview++, C = K, R = new k(A), M = R.parse(C, G, fe), ne(), Fe ? { meta: { paused: !0 } } : M || { meta: { paused: !1 } };
10651
10669
  }, this.paused = function() {
10652
10670
  return Fe;
@@ -10674,22 +10692,22 @@ function nd() {
10674
10692
  return b.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
10675
10693
  }
10676
10694
  function k(b) {
10677
- var C = (b = b || {}).delimiter, R = b.newline, D = b.comments, S = b.step, _ = b.preview, re = b.fastMode, je = null, Xe = !1, W = b.quoteChar == null ? '"' : b.quoteChar, pe = W;
10678
- if (b.escapeChar !== void 0 && (pe = b.escapeChar), (typeof C != "string" || -1 < h.BAD_DELIMITERS.indexOf(C)) && (C = ","), D === C) throw new Error("Comment character same as delimiter");
10679
- D === !0 ? D = "#" : (typeof D != "string" || -1 < h.BAD_DELIMITERS.indexOf(D)) && (D = !1), R !== `
10695
+ var C = (b = b || {}).delimiter, R = b.newline, T = b.comments, S = b.step, _ = b.preview, re = b.fastMode, je = null, Xe = !1, W = b.quoteChar == null ? '"' : b.quoteChar, pe = W;
10696
+ if (b.escapeChar !== void 0 && (pe = b.escapeChar), (typeof C != "string" || -1 < h.BAD_DELIMITERS.indexOf(C)) && (C = ","), T === C) throw new Error("Comment character same as delimiter");
10697
+ T === !0 ? T = "#" : (typeof T != "string" || -1 < h.BAD_DELIMITERS.indexOf(T)) && (T = !1), R !== `
10680
10698
  ` && R !== "\r" && R !== `\r
10681
10699
  ` && (R = `
10682
10700
  `);
10683
10701
  var O = 0, Fe = !1;
10684
10702
  this.parse = function(H, j, M) {
10685
10703
  if (typeof H != "string") throw new Error("Input must be a string");
10686
- var Ge = H.length, ne = C.length, be = R.length, tt = D.length, K = z(S), G = [], fe = [], A = [], ae = O = 0;
10704
+ var Ge = H.length, ne = C.length, be = R.length, it = T.length, K = z(S), G = [], fe = [], A = [], ae = O = 0;
10687
10705
  if (!H) return Le();
10688
10706
  if (re || re !== !1 && H.indexOf(W) === -1) {
10689
10707
  for (var we = H.split(R), se = 0; se < we.length; se++) {
10690
10708
  if (A = we[se], O += A.length, se !== we.length - 1) O += R.length;
10691
10709
  else if (M) return Le();
10692
- if (!D || A.substring(0, tt) !== D) {
10710
+ if (!T || A.substring(0, it) !== T) {
10693
10711
  if (K) {
10694
10712
  if (G = [], xt(A.split(C)), at(), Fe) return Le();
10695
10713
  } else xt(A.split(C));
@@ -10698,26 +10716,26 @@ function nd() {
10698
10716
  }
10699
10717
  return Le();
10700
10718
  }
10701
- for (var oe = H.indexOf(C, O), U = H.indexOf(R, O), it = new RegExp(y(pe) + y(W), "g"), N = H.indexOf(W, O); ; ) if (H[O] === W) for (N = O, O++; ; ) {
10719
+ for (var oe = H.indexOf(C, O), U = H.indexOf(R, O), st = new RegExp(y(pe) + y(W), "g"), N = H.indexOf(W, O); ; ) if (H[O] === W) for (N = O, O++; ; ) {
10702
10720
  if ((N = H.indexOf(W, N + 1)) === -1) return M || fe.push({ type: "Quotes", code: "MissingQuotes", message: "Quoted field unterminated", row: G.length, index: O }), nt();
10703
- if (N === Ge - 1) return nt(H.substring(O, N).replace(it, W));
10721
+ if (N === Ge - 1) return nt(H.substring(O, N).replace(st, W));
10704
10722
  if (W === pe && H[N + 1] === pe) N++;
10705
10723
  else if (W === pe || N === 0 || H[N - 1] !== pe) {
10706
10724
  oe !== -1 && oe < N + 1 && (oe = H.indexOf(C, N + 1));
10707
10725
  var ce = qt((U = U !== -1 && U < N + 1 ? H.indexOf(R, N + 1) : U) === -1 ? oe : Math.min(oe, U));
10708
10726
  if (H.substr(N + 1 + ce, ne) === C) {
10709
- A.push(H.substring(O, N).replace(it, W)), H[O = N + 1 + ce + ne] !== W && (N = H.indexOf(W, O)), oe = H.indexOf(C, O), U = H.indexOf(R, O);
10727
+ A.push(H.substring(O, N).replace(st, W)), H[O = N + 1 + ce + ne] !== W && (N = H.indexOf(W, O)), oe = H.indexOf(C, O), U = H.indexOf(R, O);
10710
10728
  break;
10711
10729
  }
10712
10730
  if (ce = qt(U), H.substring(N + 1 + ce, N + 1 + ce + be) === R) {
10713
- if (A.push(H.substring(O, N).replace(it, W)), li(N + 1 + ce + be), oe = H.indexOf(C, O), N = H.indexOf(W, O), K && (at(), Fe)) return Le();
10731
+ if (A.push(H.substring(O, N).replace(st, W)), li(N + 1 + ce + be), oe = H.indexOf(C, O), N = H.indexOf(W, O), K && (at(), Fe)) return Le();
10714
10732
  if (_ && G.length >= _) return Le(!0);
10715
10733
  break;
10716
10734
  }
10717
10735
  fe.push({ type: "Quotes", code: "InvalidQuotes", message: "Trailing quote on quoted field is malformed", row: G.length, index: O }), N++;
10718
10736
  }
10719
10737
  }
10720
- else if (D && A.length === 0 && H.substring(O, O + tt) === D) {
10738
+ else if (T && A.length === 0 && H.substring(O, O + it) === T) {
10721
10739
  if (U === -1) return Le();
10722
10740
  O = U + be, U = H.indexOf(R, O), oe = H.indexOf(C, O);
10723
10741
  } else if (oe !== -1 && (oe < U || U === -1)) A.push(H.substring(O, oe)), O = oe + ne, oe = H.indexOf(C, O);
@@ -10742,15 +10760,15 @@ function nd() {
10742
10760
  }
10743
10761
  function Le(Ce) {
10744
10762
  if (b.header && !j && G.length && !Xe) {
10745
- var He = G[0], gt = /* @__PURE__ */ Object.create(null), Qi = new Set(He);
10763
+ var He = G[0], wt = /* @__PURE__ */ Object.create(null), Qi = new Set(He);
10746
10764
  let Io = !1;
10747
10765
  for (let Xt = 0; Xt < He.length; Xt++) {
10748
10766
  let lt = c(He[Xt]);
10749
- if (gt[lt = z(b.transformHeader) ? b.transformHeader(lt, Xt) : lt]) {
10750
- let hi, Ho = gt[lt];
10767
+ if (wt[lt = z(b.transformHeader) ? b.transformHeader(lt, Xt) : lt]) {
10768
+ let hi, Ho = wt[lt];
10751
10769
  for (; hi = lt + "_" + Ho, Ho++, Qi.has(hi); ) ;
10752
- Qi.add(hi), He[Xt] = hi, gt[lt]++, Io = !0, (je = je === null ? {} : je)[hi] = lt;
10753
- } else gt[lt] = 1, He[Xt] = lt;
10770
+ Qi.add(hi), He[Xt] = hi, wt[lt]++, Io = !0, (je = je === null ? {} : je)[hi] = lt;
10771
+ } else wt[lt] = 1, He[Xt] = lt;
10754
10772
  Qi.add(lt);
10755
10773
  }
10756
10774
  Io && console.warn("Duplicate headers found and renamed."), Xe = !0;
@@ -10766,19 +10784,19 @@ function nd() {
10766
10784
  return O;
10767
10785
  };
10768
10786
  }
10769
- function T(b) {
10770
- var C = b.data, R = a[C.workerId], D = !1;
10787
+ function D(b) {
10788
+ var C = b.data, R = a[C.workerId], T = !1;
10771
10789
  if (C.error) R.userError(C.error, C.file);
10772
10790
  else if (C.results && C.results.data) {
10773
10791
  var S = { abort: function() {
10774
- D = !0, he(C.workerId, { data: [], errors: [], meta: { aborted: !0 } });
10792
+ T = !0, he(C.workerId, { data: [], errors: [], meta: { aborted: !0 } });
10775
10793
  }, pause: L, resume: L };
10776
10794
  if (z(R.userStep)) {
10777
- for (var _ = 0; _ < C.results.data.length && (R.userStep({ data: C.results.data[_], errors: C.results.errors, meta: C.results.meta }, S), !D); _++) ;
10795
+ for (var _ = 0; _ < C.results.data.length && (R.userStep({ data: C.results.data[_], errors: C.results.errors, meta: C.results.meta }, S), !T); _++) ;
10778
10796
  delete C.results;
10779
10797
  } else z(R.userChunk) && (R.userChunk(C.results, S, C.file), delete C.results);
10780
10798
  }
10781
- C.finished && !D && he(C.workerId, C.results);
10799
+ C.finished && !T && he(C.workerId, C.results);
10782
10800
  }
10783
10801
  function he(b, C) {
10784
10802
  var R = a[b];
@@ -10793,7 +10811,7 @@ function nd() {
10793
10811
  for (C in b) R[C] = ge(b[C]);
10794
10812
  return R;
10795
10813
  }
10796
- function J(b, C) {
10814
+ function Y(b, C) {
10797
10815
  return function() {
10798
10816
  b.apply(C, arguments);
10799
10817
  };
@@ -10805,19 +10823,19 @@ function nd() {
10805
10823
  var R = (C = C || {}).dynamicTyping || !1;
10806
10824
  if (z(R) && (C.dynamicTypingFunction = R, R = {}), C.dynamicTyping = R, C.transform = !!z(C.transform) && C.transform, !C.worker || !h.WORKERS_SUPPORTED) return R = null, h.NODE_STREAM_INPUT, typeof b == "string" ? (b = c(b), R = new (C.download ? p : f)(C)) : b.readable === !0 && z(b.read) && z(b.on) ? R = new w(C) : (i.File && b instanceof File || b instanceof Object) && (R = new u(C)), R.stream(b);
10807
10825
  (R = (() => {
10808
- var D;
10809
- return !!h.WORKERS_SUPPORTED && (D = (() => {
10826
+ var T;
10827
+ return !!h.WORKERS_SUPPORTED && (T = (() => {
10810
10828
  var S = i.URL || i.webkitURL || null, _ = t.toString();
10811
10829
  return h.BLOB_URL || (h.BLOB_URL = S.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ", "(", _, ")();"], { type: "text/javascript" })));
10812
- })(), (D = new i.Worker(D)).onmessage = T, D.id = l++, a[D.id] = D);
10830
+ })(), (T = new i.Worker(T)).onmessage = D, T.id = l++, a[T.id] = T);
10813
10831
  })()).userStep = C.step, R.userChunk = C.chunk, R.userComplete = C.complete, R.userError = C.error, C.step = z(C.step), C.chunk = z(C.chunk), C.complete = z(C.complete), C.error = z(C.error), delete C.worker, R.postMessage({ input: b, config: C, workerId: R.id });
10814
10832
  }, h.unparse = function(b, C) {
10815
- var R = !1, D = !0, S = ",", _ = `\r
10833
+ var R = !1, T = !0, S = ",", _ = `\r
10816
10834
  `, re = '"', je = re + re, Xe = !1, W = null, pe = !1, O = ((() => {
10817
10835
  if (typeof C == "object") {
10818
10836
  if (typeof C.delimiter != "string" || h.BAD_DELIMITERS.filter(function(j) {
10819
10837
  return C.delimiter.indexOf(j) !== -1;
10820
- }).length || (S = C.delimiter), typeof C.quotes != "boolean" && typeof C.quotes != "function" && !Array.isArray(C.quotes) || (R = C.quotes), typeof C.skipEmptyLines != "boolean" && typeof C.skipEmptyLines != "string" || (Xe = C.skipEmptyLines), typeof C.newline == "string" && (_ = C.newline), typeof C.quoteChar == "string" && (re = C.quoteChar, je = re + re), typeof C.header == "boolean" && (D = C.header), Array.isArray(C.columns)) {
10838
+ }).length || (S = C.delimiter), typeof C.quotes != "boolean" && typeof C.quotes != "function" && !Array.isArray(C.quotes) || (R = C.quotes), typeof C.skipEmptyLines != "boolean" && typeof C.skipEmptyLines != "string" || (Xe = C.skipEmptyLines), typeof C.newline == "string" && (_ = C.newline), typeof C.quoteChar == "string" && (re = C.quoteChar, je = re + re), typeof C.header == "boolean" && (T = C.header), Array.isArray(C.columns)) {
10821
10839
  if (C.columns.length === 0) throw new Error("Option columns is empty");
10822
10840
  W = C.columns;
10823
10841
  }
@@ -10830,8 +10848,8 @@ function nd() {
10830
10848
  } 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 || W), 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])), Fe(b.fields || [], b.data || [], Xe);
10831
10849
  throw new Error("Unable to serialize unrecognized input");
10832
10850
  function Fe(j, M, Ge) {
10833
- var ne = "", be = (typeof j == "string" && (j = JSON.parse(j)), typeof M == "string" && (M = JSON.parse(M)), Array.isArray(j) && 0 < j.length), tt = !Array.isArray(M[0]);
10834
- if (be && D) {
10851
+ var ne = "", be = (typeof j == "string" && (j = JSON.parse(j)), typeof M == "string" && (M = JSON.parse(M)), Array.isArray(j) && 0 < j.length), it = !Array.isArray(M[0]);
10852
+ if (be && T) {
10835
10853
  for (var K = 0; K < j.length; K++) 0 < K && (ne += S), ne += H(j[K], K);
10836
10854
  0 < M.length && (ne += _);
10837
10855
  }
@@ -10839,7 +10857,7 @@ function nd() {
10839
10857
  var fe = (be ? j : M[G]).length, A = !1, ae = be ? Object.keys(M[G]).length === 0 : M[G].length === 0;
10840
10858
  if (Ge && !be && (A = Ge === "greedy" ? M[G].join("").trim() === "" : M[G].length === 1 && M[G][0].length === 0), Ge === "greedy" && be) {
10841
10859
  for (var we = [], se = 0; se < fe; se++) {
10842
- var oe = tt ? j[se] : se;
10860
+ var oe = it ? j[se] : se;
10843
10861
  we.push(M[G][oe]);
10844
10862
  }
10845
10863
  A = we.join("").trim() === "";
@@ -10847,8 +10865,8 @@ function nd() {
10847
10865
  if (!A) {
10848
10866
  for (var U = 0; U < fe; U++) {
10849
10867
  0 < U && !ae && (ne += S);
10850
- var it = be && tt ? j[U] : U;
10851
- ne += H(M[G][it], U);
10868
+ var st = be && it ? j[U] : U;
10869
+ ne += H(M[G][st], U);
10852
10870
  }
10853
10871
  G < M.length - 1 && (!Ge || 0 < fe && !ae) && (ne += _);
10854
10872
  }
@@ -10857,8 +10875,8 @@ function nd() {
10857
10875
  }
10858
10876
  function H(j, M) {
10859
10877
  var Ge, ne, be;
10860
- return j == null ? "" : j.constructor === Date ? JSON.stringify(j).slice(1, 25) : (be = !1, pe && typeof j == "string" && pe.test(j) && (j = "'" + j, be = !0), ne = (Ge = j.toString()).replace(O, je), (be = be || R === !0 || typeof R == "function" && R(j, M) || Array.isArray(R) && R[M] || ((tt, K) => {
10861
- for (var G = 0; G < K.length; G++) if (-1 < tt.indexOf(K[G])) return !0;
10878
+ return j == null ? "" : j.constructor === Date ? JSON.stringify(j).slice(1, 25) : (be = !1, pe && typeof j == "string" && pe.test(j) && (j = "'" + j, be = !0), ne = (Ge = j.toString()).replace(O, je), (be = be || R === !0 || typeof R == "function" && R(j, M) || Array.isArray(R) && R[M] || ((it, K) => {
10879
+ for (var G = 0; G < K.length; G++) if (-1 < it.indexOf(K[G])) return !0;
10862
10880
  return !1;
10863
10881
  })(ne, h.BAD_DELIMITERS) || -1 < ne.indexOf(S) || -1 < Ge.indexOf(re) || ne.charAt(0) === " " || ne.charAt(ne.length - 1) === " ") ? re + ne + re : ne);
10864
10882
  }
@@ -10868,8 +10886,8 @@ function nd() {
10868
10886
  return this.each(function(_) {
10869
10887
  if (!(s(this).prop("tagName").toUpperCase() === "INPUT" && s(this).attr("type").toLowerCase() === "file" && i.FileReader) || !this.files || this.files.length === 0) return !0;
10870
10888
  for (var re = 0; re < this.files.length; re++) R.push({ file: this.files[re], inputElem: this, instanceConfig: s.extend({}, C) });
10871
- }), D(), this;
10872
- function D() {
10889
+ }), T(), this;
10890
+ function T() {
10873
10891
  if (R.length === 0) z(b.complete) && b.complete();
10874
10892
  else {
10875
10893
  var _, re, je, Xe, W = R[0];
@@ -10888,7 +10906,7 @@ function nd() {
10888
10906
  }
10889
10907
  }
10890
10908
  function S() {
10891
- R.splice(0, 1), D();
10909
+ R.splice(0, 1), T();
10892
10910
  }
10893
10911
  }), r && (i.onmessage = function(b) {
10894
10912
  b = b.data, h.WORKER_ID === void 0 && b && (h.WORKER_ID = b.workerId), typeof b.input == "string" ? i.postMessage({ workerId: h.WORKER_ID, results: h.parse(b.input, b.config), finished: !0 }) : (i.File && b.input instanceof File || b.input instanceof Object) && (b = h.parse(b.input, b.config)) && i.postMessage({ workerId: h.WORKER_ID, results: b, finished: !0 });
@@ -11541,7 +11559,7 @@ const ko = class ko extends I {
11541
11559
  !e.modules.frozen && !e.isGroup && !e.isRowHeader && (s = e.getElement(), i.mousemove = function(o) {
11542
11560
  if (t.moving && e.parent === t.moving.parent && s && s.parentNode) {
11543
11561
  const r = t.touchMove && "touches" in o ? o.touches[0].pageX : "pageX" in o ? o.pageX : 0, a = t.table.columnManager?.contentsElement;
11544
- r - Z.elOffset(s).left + (a?.scrollLeft || 0) > e.getWidth() / 2 ? (t.toCol !== e || !t.toColAfter) && (s.parentNode.insertBefore(
11562
+ r - Q.elOffset(s).left + (a?.scrollLeft || 0) > e.getWidth() / 2 ? (t.toCol !== e || !t.toColAfter) && (s.parentNode.insertBefore(
11545
11563
  t.placeholderElement,
11546
11564
  s.nextSibling
11547
11565
  ), t.moveColumn(e, !0)) : (t.toCol !== e || t.toColAfter) && (s.parentNode.insertBefore(t.placeholderElement, s), t.moveColumn(e, !1));
@@ -11606,7 +11624,7 @@ const ko = class ko extends I {
11606
11624
  return;
11607
11625
  this.moving = t;
11608
11626
  const r = this.touchMove && "touches" in e ? e.touches[0].pageX : "pageX" in e ? e.pageX : 0;
11609
- this.startX = r - Z.elOffset(i).left, this.table.element.classList.add("tabulator-block-select"), this.placeholderElement.style.width = t.getWidth() + "px", this.placeholderElement.style.height = t.getHeight() + "px", i.parentNode && (i.parentNode.insertBefore(this.placeholderElement, i), i.parentNode.removeChild(i)), this.hoverElement = i.cloneNode(!0), this.hoverElement.classList.add("tabulator-moving"), s.appendChild(this.hoverElement), this.hoverElement.style.left = "0", this.hoverElement.style.bottom = s.clientHeight - o.offsetHeight + "px", this.touchMove || (this._bindMouseMove(), document.body.addEventListener("mousemove", this.moveHover), document.body.addEventListener("mouseup", this.endMove)), this.moveHover(e), this.dispatch("column-moving", e, this.moving);
11627
+ this.startX = r - Q.elOffset(i).left, this.table.element.classList.add("tabulator-block-select"), this.placeholderElement.style.width = t.getWidth() + "px", this.placeholderElement.style.height = t.getHeight() + "px", i.parentNode && (i.parentNode.insertBefore(this.placeholderElement, i), i.parentNode.removeChild(i)), this.hoverElement = i.cloneNode(!0), this.hoverElement.classList.add("tabulator-moving"), s.appendChild(this.hoverElement), this.hoverElement.style.left = "0", this.hoverElement.style.bottom = s.clientHeight - o.offsetHeight + "px", this.touchMove || (this._bindMouseMove(), document.body.addEventListener("mousemove", this.moveHover), document.body.addEventListener("mouseup", this.endMove)), this.moveHover(e), this.dispatch("column-moving", e, this.moving);
11610
11628
  }
11611
11629
  _bindMouseMove() {
11612
11630
  this.table.columnManager?.columnsByIndex.forEach((e) => {
@@ -11661,7 +11679,7 @@ const ko = class ko extends I {
11661
11679
  const t = this.table.columnManager?.getContentsElement();
11662
11680
  if (!t || !this.hoverElement)
11663
11681
  return;
11664
- const i = t.scrollLeft, o = (this.touchMove && "touches" in e ? e.touches[0].pageX : "pageX" in e ? e.pageX : 0) - Z.elOffset(t).left + i;
11682
+ const i = t.scrollLeft, o = (this.touchMove && "touches" in e ? e.touches[0].pageX : "pageX" in e ? e.pageX : 0) - Q.elOffset(t).left + i;
11665
11683
  let r;
11666
11684
  this.hoverElement.style.left = o - this.startX + "px", o - i < this.autoScrollMargin && (this.autoScrollTimeout || (this.autoScrollTimeout = setTimeout(() => {
11667
11685
  r = Math.max(0, i - this.autoScrollStep);
@@ -11714,7 +11732,7 @@ const gd = {
11714
11732
  }, i.mousemove = function(s) {
11715
11733
  if (t.table.rowManager) {
11716
11734
  const o = e.getElement();
11717
- o?.parentNode && (s.pageY - Z.elOffset(o).top + t.table.rowManager.element.scrollTop > e.getHeight() / 2 ? (t.toRow !== e || !t.toRowAfter) && (o.parentNode.insertBefore(
11735
+ o?.parentNode && (s.pageY - Q.elOffset(o).top + t.table.rowManager.element.scrollTop > e.getHeight() / 2 ? (t.toRow !== e || !t.toRowAfter) && (o.parentNode.insertBefore(
11718
11736
  t.placeholderElement,
11719
11737
  o.nextSibling
11720
11738
  ), t.moveRow(e, !0)) : (t.toRow !== e || t.toRowAfter) && o.previousSibling && (o.parentNode.insertBefore(t.placeholderElement, o), t.moveRow(e, !1)));
@@ -11728,7 +11746,7 @@ const gd = {
11728
11746
  }, i.mousemove = function(s) {
11729
11747
  if (t.table.rowManager) {
11730
11748
  const o = e.getElement();
11731
- o?.parentNode && (s.pageY - Z.elOffset(o).top + t.table.rowManager.element.scrollTop > e.getHeight() / 2 ? (t.toRow !== e || !t.toRowAfter) && (o.parentNode.insertBefore(
11749
+ o?.parentNode && (s.pageY - Q.elOffset(o).top + t.table.rowManager.element.scrollTop > e.getHeight() / 2 ? (t.toRow !== e || !t.toRowAfter) && (o.parentNode.insertBefore(
11732
11750
  t.placeholderElement,
11733
11751
  o.nextSibling
11734
11752
  ), t.moveRow(e, !0)) : (t.toRow !== e || t.toRowAfter) && (o.parentNode.insertBefore(t.placeholderElement, o), t.moveRow(e, !1)));
@@ -12131,7 +12149,7 @@ const wd = {}, vd = process.env.NODE_ENV === "development", ii = class ii extend
12131
12149
  };
12132
12150
  ii.moduleName = "mutator", ii.mutators = wd;
12133
12151
  let Hs = ii;
12134
- const Do = class Do extends I {
12152
+ const To = class To extends I {
12135
12153
  constructor(e) {
12136
12154
  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) => {
12137
12155
  if (typeof t == "string") {
@@ -12410,8 +12428,8 @@ const Do = class Do extends I {
12410
12428
  return e.data;
12411
12429
  }
12412
12430
  };
12413
- Do.moduleName = "page";
12414
- let Ns = Do;
12431
+ To.moduleName = "page";
12432
+ let Ns = To;
12415
12433
  const fr = process.env.NODE_ENV === "development", yd = {
12416
12434
  cookie: function(n, e) {
12417
12435
  let t = document.cookie;
@@ -12657,7 +12675,7 @@ const fr = process.env.NODE_ENV === "development", yd = {
12657
12675
  };
12658
12676
  Ne.moduleName = "persistence", Ne.moduleInitOrder = -10, Ne.readers = yd, Ne.writers = Cd;
12659
12677
  let Vs = Ne;
12660
- const To = class To extends I {
12678
+ const Do = class Do extends I {
12661
12679
  constructor(e) {
12662
12680
  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(
12663
12681
  "cell",
@@ -12777,8 +12795,8 @@ const To = class To extends I {
12777
12795
  }), this.dispatchExternal("popupOpened", t.getComponent());
12778
12796
  }
12779
12797
  };
12780
- To.moduleName = "popup";
12781
- let Bs = To;
12798
+ Do.moduleName = "popup";
12799
+ let Bs = Do;
12782
12800
  const mr = process.env.NODE_ENV === "development", Mo = class Mo extends I {
12783
12801
  constructor(e) {
12784
12802
  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");
@@ -13814,7 +13832,7 @@ const kd = {
13814
13832
  };
13815
13833
  $i.moduleName = "selectRow", $i.moduleExtensions = kd;
13816
13834
  let qs = $i;
13817
- const Dd = {
13835
+ const Td = {
13818
13836
  range: function(n) {
13819
13837
  if (!n || n.length === 0)
13820
13838
  return [];
@@ -13834,7 +13852,7 @@ const Dd = {
13834
13852
  }
13835
13853
  return e;
13836
13854
  }
13837
- }, Td = {
13855
+ }, Dd = {
13838
13856
  range: function(n) {
13839
13857
  const e = [], t = [], i = this.table.modules.selectRange.activeRange;
13840
13858
  let s = !1, o, r, a, l, h;
@@ -13917,8 +13935,8 @@ const Dd = {
13917
13935
  rangeJumpUp: ["ctrl + 38", "meta + 38"]
13918
13936
  }, Od = {
13919
13937
  clipboard: {
13920
- pasteActions: Dd,
13921
- pasteParsers: Td
13938
+ pasteActions: Td,
13939
+ pasteParsers: Dd
13922
13940
  },
13923
13941
  export: {
13924
13942
  columnLookups: Md,
@@ -14402,8 +14420,8 @@ const Vt = process.env.NODE_ENV === "development", Id = x`<div class="tabulator-
14402
14420
  if (this.rowHeader && r === 0 && (r = 1), t || u.setStart(o, r), u.setEnd(o, r), t || (this.selecting = Ue.Cell), s = f.top !== u.top || f.bottom !== u.bottom || f.left !== u.left || f.right !== u.right, s) {
14403
14421
  const E = u.end.row ?? 0, y = u.end.col ?? 0;
14404
14422
  a = this.getRowByRangePos(E), l = this.getColumnByRangePos(y);
14405
- const k = a.getElement(), T = l.getElement(), he = this.table.rowManager?.getElement(), L = this.table.columnManager?.getElement();
14406
- k && T && he && L && (h = k.getBoundingClientRect(), d = T.getBoundingClientRect(), c = he.getBoundingClientRect(), p = L.getBoundingClientRect(), h.top >= c.top && h.bottom <= c.bottom || (k.parentNode && T.parentNode ? this.autoScroll(u, k, T) : a.getComponent().scrollTo(void 0, !1)), d.left >= p.left + this.getRowHeaderWidth() && d.right <= p.right || (k.parentNode && T.parentNode ? this.autoScroll(u, k, T) : l.getComponent().scrollTo(void 0, !1))), this.layoutElement();
14423
+ const k = a.getElement(), D = l.getElement(), he = this.table.rowManager?.getElement(), L = this.table.columnManager?.getElement();
14424
+ k && D && he && L && (h = k.getBoundingClientRect(), d = D.getBoundingClientRect(), c = he.getBoundingClientRect(), p = L.getBoundingClientRect(), h.top >= c.top && h.bottom <= c.bottom || (k.parentNode && D.parentNode ? this.autoScroll(u, k, D) : a.getComponent().scrollTo(void 0, !1)), d.left >= p.left + this.getRowHeaderWidth() && d.right <= p.right || (k.parentNode && D.parentNode ? this.autoScroll(u, k, D) : l.getComponent().scrollTo(void 0, !1))), this.layoutElement();
14407
14425
  }
14408
14426
  return !0;
14409
14427
  }
@@ -14722,8 +14740,8 @@ function Hd(n, e, t, i, s, o, r) {
14722
14740
  let y = u[E];
14723
14741
  const k = f[E++];
14724
14742
  if (y !== k) {
14725
- const T = Number(y), he = Number(k);
14726
- if (isFinite(T) && isFinite(he)) {
14743
+ const D = Number(y), he = Number(k);
14744
+ if (isFinite(D) && isFinite(he)) {
14727
14745
  y.charAt(0) === "0" && (y = "." + y);
14728
14746
  const L = k.charAt(0) === "0" ? "." + k : k;
14729
14747
  return Number(y) - Number(L);
@@ -14744,7 +14762,7 @@ function Nd(n, e, t, i, s, o, r) {
14744
14762
  if (typeof r.valueMap == "string") {
14745
14763
  const u = c.options.nestedFieldSeparator, f = r.valueMap;
14746
14764
  d = function(w) {
14747
- return Z.retrieveNestedData(u, f, w);
14765
+ return Q.retrieveNestedData(u, f, w);
14748
14766
  };
14749
14767
  } else
14750
14768
  d = r.valueMap;
@@ -16160,8 +16178,8 @@ const ns = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
16160
16178
  ExportModule: ks,
16161
16179
  FilterModule: Vi,
16162
16180
  FormatModule: Hi,
16163
- FrozenColumnsModule: Ds,
16164
- FrozenRowsModule: Ts,
16181
+ FrozenColumnsModule: Ts,
16182
+ FrozenRowsModule: Ds,
16165
16183
  GroupRowsModule: Ms,
16166
16184
  HistoryModule: Fs,
16167
16185
  HoverMenuModule: fs,
@@ -16908,7 +16926,7 @@ class hu extends Me {
16908
16926
  }
16909
16927
  // redraw columns
16910
16928
  redraw(e) {
16911
- this.element && Z.elVisible(this.element) && this.verticalAlignHeaders(), e && (this.table.rowManager?.resetScroll(), this.table.rowManager?.reinitialize()), this.confirm("table-redrawing", e) || this.layoutRefresh(e || !1), this.dispatch("table-redraw", e), this.table.footerManager?.redraw();
16929
+ this.element && Q.elVisible(this.element) && this.verticalAlignHeaders(), e && (this.table.rowManager?.resetScroll(), this.table.rowManager?.reinitialize()), this.confirm("table-redrawing", e) || this.layoutRefresh(e || !1), this.dispatch("table-redraw", e), this.table.footerManager?.redraw();
16912
16930
  }
16913
16931
  }
16914
16932
  const cu = {
@@ -16952,7 +16970,7 @@ const cu = {
16952
16970
  renderHorizontal: "basic",
16953
16971
  renderVerticalBuffer: 0,
16954
16972
  // set virtual DOM buffer size
16955
- scrollToRowPosition: wt.Top,
16973
+ scrollToRowPosition: vt.Top,
16956
16974
  scrollToRowIfHidden: !1,
16957
16975
  scrollToColumnPosition: "left",
16958
16976
  scrollToColumnIfHidden: !1,
@@ -17067,12 +17085,12 @@ class uu extends Ji {
17067
17085
  const t = e.getElement(), i = this.elementVertical;
17068
17086
  if (!t || !i)
17069
17087
  return !0;
17070
- const s = Z.elOffset(t).top, o = Z.elOffset(i).top, r = o + i.clientHeight;
17088
+ const s = Q.elOffset(t).top, o = Q.elOffset(i).top, r = o + i.clientHeight;
17071
17089
  return Math.abs(s - o) <= Math.abs(s - r);
17072
17090
  }
17073
17091
  scrollToRow(e) {
17074
17092
  const t = e.getElement(), i = this.elementVertical;
17075
- !t || !i || (i.scrollTop = Z.elOffset(t).top - Z.elOffset(i).top + i.scrollTop);
17093
+ !t || !i || (i.scrollTop = Q.elOffset(t).top - Q.elOffset(i).top + i.scrollTop);
17076
17094
  }
17077
17095
  visibleRows() {
17078
17096
  return this.rows();
@@ -17182,8 +17200,8 @@ class pu extends Ji {
17182
17200
  const s = this.tableElement, o = this.elementVertical;
17183
17201
  let r = 0, a = 0, l = 0, h = 0, c = 0, d = 0;
17184
17202
  const p = this.rows(), u = p.length;
17185
- let f = 0, w, E, y = [], k = 0, T = 0;
17186
- const he = this.table.rowManager?.fixedHeight ?? !1, L = this.table.element ? globalThis.getComputedStyle(this.table.element).getPropertyValue("--table-max-height").trim() : "", J = he || L !== "" && L !== "auto";
17203
+ let f = 0, w, E, y = [], k = 0, D = 0;
17204
+ const he = this.table.rowManager?.fixedHeight ?? !1, L = this.table.element ? globalThis.getComputedStyle(this.table.element).getPropertyValue("--table-max-height").trim() : "", Y = he || L !== "" && L !== "auto";
17187
17205
  let z = this.elementVertical?.clientHeight ?? 0, b = this.table.options.rowHeight, C = !0;
17188
17206
  if (e = e || 0, i = i || 0, !e)
17189
17207
  this.clear();
@@ -17201,25 +17219,25 @@ class pu extends Ji {
17201
17219
  ), e -= r;
17202
17220
  }
17203
17221
  const R = !this.table.initialized || !!t;
17204
- if (u && this.elementVertical && (Z.elVisible(this.elementVertical) || R)) {
17205
- for (this.vDomTop = e, this.vDomBottom = e - 1, J ? (b && (T = z / b + this.vDomWindowBuffer / b), T = Math.max(
17222
+ if (u && this.elementVertical && (Q.elVisible(this.elementVertical) || R)) {
17223
+ for (this.vDomTop = e, this.vDomBottom = e - 1, Y ? (b && (D = z / b + this.vDomWindowBuffer / b), D = Math.max(
17206
17224
  this.vDomWindowMinTotalRows,
17207
- Math.ceil(T)
17208
- )) : T = u; (T == u || a <= z + this.vDomWindowBuffer || k < this.vDomWindowMinTotalRows) && this.vDomBottom < u - 1; ) {
17209
- for (y = [], E = document.createDocumentFragment(), d = 0; d < T && this.vDomBottom < u - 1; ) {
17225
+ Math.ceil(D)
17226
+ )) : D = u; (D == u || a <= z + this.vDomWindowBuffer || k < this.vDomWindowMinTotalRows) && this.vDomBottom < u - 1; ) {
17227
+ for (y = [], E = document.createDocumentFragment(), d = 0; d < D && this.vDomBottom < u - 1; ) {
17210
17228
  f = this.vDomBottom + 1, w = p[f], this.styleRow(w, f), w.initialize(!1, !0), !w.heightInitialized && !this.table.options.rowHeight && w.clearCellHeight();
17211
- const D = w.getElement();
17212
- D && E.appendChild(D), y.push(w), this.vDomBottom++, d++;
17229
+ const T = w.getElement();
17230
+ T && E.appendChild(T), y.push(w), this.vDomBottom++, d++;
17213
17231
  }
17214
17232
  if (!y.length)
17215
17233
  break;
17216
- s?.appendChild(E), y.forEach((D) => {
17217
- D.rendered(), D.heightInitialized || D.calcHeight(!0);
17218
- }), y.forEach((D) => {
17219
- D.heightInitialized || D.setCellHeight();
17220
- }), y.forEach((D) => {
17221
- l = D.getHeight(), k < r ? c += l : a += l, l > this.vDomWindowBuffer && (this.vDomWindowBuffer = l * 2), k++;
17222
- }), C = this.table.rowManager?.adjustTableSize() || !1, z = this.elementVertical.clientHeight, C && J && (b = a / k, T = Math.max(
17234
+ s?.appendChild(E), y.forEach((T) => {
17235
+ T.rendered(), T.heightInitialized || T.calcHeight(!0);
17236
+ }), y.forEach((T) => {
17237
+ T.heightInitialized || T.setCellHeight();
17238
+ }), y.forEach((T) => {
17239
+ l = T.getHeight(), k < r ? c += l : a += l, l > this.vDomWindowBuffer && (this.vDomWindowBuffer = l * 2), k++;
17240
+ }), C = this.table.rowManager?.adjustTableSize() || !1, z = this.elementVertical.clientHeight, C && Y && (b = a / k, D = Math.max(
17223
17241
  this.vDomWindowMinTotalRows,
17224
17242
  Math.ceil(
17225
17243
  z / b + this.vDomWindowBuffer / b
@@ -17389,7 +17407,7 @@ class mu extends Me {
17389
17407
  */
17390
17408
  findRow(e) {
17391
17409
  if (typeof e == "object") {
17392
- if (e instanceof De)
17410
+ if (e instanceof Te)
17393
17411
  return e;
17394
17412
  if (e instanceof uo)
17395
17413
  return e._getSelf() || !1;
@@ -17491,7 +17509,7 @@ class mu extends Me {
17491
17509
  _setDataActual(e, t) {
17492
17510
  this.dispatchExternal("dataProcessing", e), this._wipeElements(), Array.isArray(e) ? (this.dispatch("data-processing", e), e.forEach((i) => {
17493
17511
  if (i && typeof i == "object") {
17494
- const s = new De(i, this);
17512
+ const s = new Te(i, this);
17495
17513
  this.rows.push(s), this.registerRowInMap(s);
17496
17514
  } else Bt && console.warn(
17497
17515
  "Data Loading Warning - Invalid row data detected and ignored, expecting object but received:",
@@ -17544,7 +17562,7 @@ Data: `,
17544
17562
  return (e ?? this.table.options.addRowPos) === "top";
17545
17563
  }
17546
17564
  addRowActual(e, t, i, s) {
17547
- const o = e instanceof De ? e : new De(e || {}, this);
17565
+ const o = e instanceof Te ? e : new Te(e || {}, this);
17548
17566
  let r = t, a = -1, l, h;
17549
17567
  return i || (h = this.chain("row-adding-position", [o, r], null, {
17550
17568
  index: i,
@@ -17590,12 +17608,12 @@ Data: `,
17590
17608
  nextDisplayRow(e, t) {
17591
17609
  const i = this.getDisplayRowIndex(e);
17592
17610
  let s = !1;
17593
- return i !== !1 && i < this.displayRowsCount - 1 && (s = this.getDisplayRows()[i + 1]), s && (!(s instanceof De) || s.type != "row") ? this.nextDisplayRow(s, t) : s;
17611
+ return i !== !1 && i < this.displayRowsCount - 1 && (s = this.getDisplayRows()[i + 1]), s && (!(s instanceof Te) || s.type != "row") ? this.nextDisplayRow(s, t) : s;
17594
17612
  }
17595
17613
  prevDisplayRow(e, t) {
17596
17614
  const i = this.getDisplayRowIndex(e);
17597
17615
  let s = !1;
17598
- return i && (s = this.getDisplayRows()[i - 1]), t && s && (!(s instanceof De) || s.type != "row") ? this.prevDisplayRow(s, t) : s;
17616
+ return i && (s = this.getDisplayRows()[i - 1]), t && s && (!(s instanceof Te) || s.type != "row") ? this.prevDisplayRow(s, t) : s;
17599
17617
  }
17600
17618
  findRowIndex(e, t) {
17601
17619
  let i;
@@ -17667,7 +17685,7 @@ Data: `,
17667
17685
  });
17668
17686
  return;
17669
17687
  } else
17670
- Z.elVisible(this.element) ? i ? this.reRenderInPosition(
17688
+ Q.elVisible(this.element) ? i ? this.reRenderInPosition(
17671
17689
  this.refreshPipelines.bind(
17672
17690
  this,
17673
17691
  e,
@@ -18368,7 +18386,7 @@ class Ru extends Me {
18368
18386
  s.components.includes("column") && (h = this.table.columnManager?.findColumn(c));
18369
18387
  break;
18370
18388
  case "cell":
18371
- s.components.includes("cell") && (o.row instanceof De ? h = o.row.findCell(c) : xu && t.row && console.warn(
18389
+ s.components.includes("cell") && (o.row instanceof Te ? h = o.row.findCell(c) : xu && t.row && console.warn(
18372
18390
  "Event Target Lookup Error - The row this cell is attached to cannot be found, has the table been reinitialized without being destroyed first?"
18373
18391
  ));
18374
18392
  break;
@@ -18487,19 +18505,19 @@ function ku(n) {
18487
18505
  return typeof w == "string" ? w.indexOf("%") > -1 ? E = i / 100 * parseInt(w, 10) : E = parseInt(w, 10) : E = w || 0, E;
18488
18506
  }
18489
18507
  function f(w, E, y, k) {
18490
- const T = [];
18491
- let he = 0, L = 0, ge = 0, J = r, z = 0, b = 0;
18508
+ const D = [];
18509
+ let he = 0, L = 0, ge = 0, Y = r, z = 0, b = 0;
18492
18510
  const C = [];
18493
18511
  function R(S) {
18494
18512
  return y * (S.column.definition.widthGrow || 1);
18495
18513
  }
18496
- function D(S) {
18514
+ function T(S) {
18497
18515
  return u(S.width) - y * (S.column.definition.widthShrink || 0);
18498
18516
  }
18499
18517
  return w.forEach((S) => {
18500
- const _ = k ? D(S) : R(S);
18501
- S.column.minWidth && S.column.minWidth >= _ ? T.push(S) : S.column.maxWidth && S.column.maxWidth < _ ? (S.width = S.column.maxWidth, E -= S.column.maxWidth, J -= k ? S.column.definition.widthShrink || 1 : S.column.definition.widthGrow || 1, J && (y = Math.floor(E / J))) : (C.push(S), b += k ? S.column.definition.widthShrink || 1 : S.column.definition.widthGrow || 1);
18502
- }), T.length ? (T.forEach((S) => {
18518
+ const _ = k ? T(S) : R(S);
18519
+ S.column.minWidth && S.column.minWidth >= _ ? D.push(S) : S.column.maxWidth && S.column.maxWidth < _ ? (S.width = S.column.maxWidth, E -= S.column.maxWidth, Y -= k ? S.column.definition.widthShrink || 1 : S.column.definition.widthGrow || 1, Y && (y = Math.floor(E / Y))) : (C.push(S), b += k ? S.column.definition.widthShrink || 1 : S.column.definition.widthGrow || 1);
18520
+ }), D.length ? (D.forEach((S) => {
18503
18521
  he += k ? S.width - (S.column.minWidth ?? 0) : S.column.minWidth ?? 0, S.width = S.column.minWidth ?? 0;
18504
18522
  }), L = E - he, ge = b ? Math.floor(L / b) : L, z = f(
18505
18523
  C,
@@ -18507,7 +18525,7 @@ function ku(n) {
18507
18525
  ge,
18508
18526
  k
18509
18527
  )) : (z = b ? E - Math.floor(E / b) * b : E, C.forEach((S) => {
18510
- S.width = k ? D(S) : R(S);
18528
+ S.width = k ? T(S) : R(S);
18511
18529
  })), z;
18512
18530
  }
18513
18531
  if (this.table.options.responsiveLayout && this.table.modExists("responsiveLayout", !0) && this.table.modules.responsiveLayout?.update(), this.table.rowManager?.element && this.table.rowManager.element.scrollHeight > this.table.rowManager.element.clientHeight) {
@@ -18536,15 +18554,15 @@ function ku(n) {
18536
18554
  w.column.setWidth(w.width);
18537
18555
  });
18538
18556
  }
18539
- async function Du(n, e) {
18557
+ async function Tu(n, e) {
18540
18558
  e && this.table.columnManager?.renderer && await this.table.columnManager.renderer.reinitializeColumnWidths(n), this.table.options.responsiveLayout && this.table.modExists("responsiveLayout", !0) && this.table.modules.responsiveLayout.update();
18541
18559
  }
18542
- async function Dr(n) {
18560
+ async function Tr(n) {
18543
18561
  for (const e of n)
18544
18562
  await e.reinitializeWidth();
18545
18563
  this.table.options.responsiveLayout && this.table.modExists("responsiveLayout", !0) && this.table.modules.responsiveLayout.update();
18546
18564
  }
18547
- async function Tu(n) {
18565
+ async function Du(n) {
18548
18566
  let e = 0, t = this.table.element?.clientWidth || 0;
18549
18567
  const i = this.table.columnManager?.contentsElement;
18550
18568
  if (i) {
@@ -18559,10 +18577,10 @@ async function Tu(n) {
18559
18577
  }
18560
18578
  const Mu = {
18561
18579
  fitColumns: ku,
18562
- fitData: Du,
18563
- fitDataFill: Dr,
18564
- fitDataStretch: Tu,
18565
- fitDataTable: Dr
18580
+ fitData: Tu,
18581
+ fitDataFill: Tr,
18582
+ fitDataStretch: Du,
18583
+ fitDataTable: Tr
18566
18584
  }, Fu = process.env.NODE_ENV === "development", Ut = class Ut extends I {
18567
18585
  constructor(e) {
18568
18586
  super(e), this.mode = null, this.registerTableOption("layout", "fitData"), this.registerTableOption("layoutColumnsOnNewData", !1), this.registerColumnOption("widthGrow"), this.registerColumnOption("widthShrink");
@@ -18632,12 +18650,12 @@ const Lu = {
18632
18650
  prev_title: "Prev Page"
18633
18651
  }
18634
18652
  }
18635
- }, Tr = process.env.NODE_ENV === "development", vi = class vi extends I {
18653
+ }, Dr = process.env.NODE_ENV === "development", vi = class vi extends I {
18636
18654
  constructor(e) {
18637
18655
  super(e), this.locale = "default", this.lang = !1, this.bindings = {}, this.langList = {}, this.registerTableOption("locale", !1), this.registerTableOption("langs", {});
18638
18656
  }
18639
18657
  initialize() {
18640
- this.langList = Z.deepClone(vi.langs);
18658
+ this.langList = Q.deepClone(vi.langs);
18641
18659
  const e = this.table.options.columnDefaults?.headerFilterPlaceholder;
18642
18660
  e && typeof e == "string" && this.setHeaderFilterPlaceholder(e);
18643
18661
  for (const t in this.table.options.langs)
@@ -18666,16 +18684,16 @@ const Lu = {
18666
18684
  };
18667
18685
  if (t && !this.langList[t]) {
18668
18686
  const s = t.split("-")[0];
18669
- this.langList[s] ? (Tr && console.warn(
18687
+ this.langList[s] ? (Dr && console.warn(
18670
18688
  "Localization Error - Exact matching locale not found, using closest match: ",
18671
18689
  t,
18672
18690
  s
18673
- ), t = s) : (Tr && console.warn(
18691
+ ), t = s) : (Dr && console.warn(
18674
18692
  "Localization Error - Matching locale not found, using default: ",
18675
18693
  t
18676
18694
  ), t = "default");
18677
18695
  }
18678
- this.locale = t, this.lang = Z.deepClone(this.langList.default || {}), t !== "default" && this.langList[t] && i(this.langList[t], this.lang), this.dispatchExternal("localized", this.locale, this.lang), this._executeBindings();
18696
+ this.locale = t, this.lang = Q.deepClone(this.langList.default || {}), t !== "default" && this.langList[t] && i(this.langList[t], this.lang), this.dispatchExternal("localized", this.locale, this.lang), this._executeBindings();
18679
18697
  }
18680
18698
  // get current locale
18681
18699
  getLocale() {
@@ -18782,16 +18800,16 @@ Ye.registry = {
18782
18800
  tables: []
18783
18801
  };
18784
18802
  let so = Ye;
18785
- const zi = process.env.NODE_ENV === "development", ee = class ee extends so {
18803
+ const zi = process.env.NODE_ENV === "development", te = class te extends so {
18786
18804
  constructor() {
18787
18805
  super(), this.modulesCore = [], this.modulesRegular = [];
18788
18806
  }
18789
18807
  static initializeModuleBinder(e) {
18790
- ee.modulesRegistered || (ee.modulesRegistered = !0, ee._registerModules(zu, !0), e && ee._registerModules(e));
18808
+ te.modulesRegistered || (te.modulesRegistered = !0, te._registerModules(zu, !0), e && te._registerModules(e));
18791
18809
  }
18792
18810
  static _extendModule(e, t, i) {
18793
- if (ee.moduleBindings[e]) {
18794
- const s = ee.moduleBindings[e][t];
18811
+ if (te.moduleBindings[e]) {
18812
+ const s = te.moduleBindings[e][t];
18795
18813
  if (s)
18796
18814
  if (typeof i == "object")
18797
18815
  for (const o in i)
@@ -18806,15 +18824,15 @@ const zi = process.env.NODE_ENV === "development", ee = class ee extends so {
18806
18824
  const i = Object.values(e);
18807
18825
  t && i.forEach((s) => {
18808
18826
  s.prototype.moduleCore = !0;
18809
- }), ee._registerModule(i);
18827
+ }), te._registerModule(i);
18810
18828
  }
18811
18829
  static _registerModule(e) {
18812
18830
  (Array.isArray(e) ? e : [e]).forEach((i) => {
18813
- ee._registerModuleBinding(i), ee._registerModuleExtensions(i);
18831
+ te._registerModuleBinding(i), te._registerModuleExtensions(i);
18814
18832
  });
18815
18833
  }
18816
18834
  static _registerModuleBinding(e) {
18817
- e.moduleName ? ee.moduleBindings[e.moduleName] = e : zi && console.error(
18835
+ e.moduleName ? te.moduleBindings[e.moduleName] = e : zi && console.error(
18818
18836
  "Unable to bind module, no moduleName defined",
18819
18837
  e.moduleName
18820
18838
  );
@@ -18824,25 +18842,25 @@ const zi = process.env.NODE_ENV === "development", ee = class ee extends so {
18824
18842
  if (e.moduleExtensions)
18825
18843
  for (const i in t) {
18826
18844
  const s = t[i];
18827
- if (ee.moduleBindings[i])
18845
+ if (te.moduleBindings[i])
18828
18846
  for (const o in s)
18829
- ee._extendModule(i, o, s[o]);
18847
+ te._extendModule(i, o, s[o]);
18830
18848
  else {
18831
- ee.moduleExtensions[i] || (ee.moduleExtensions[i] = {});
18849
+ te.moduleExtensions[i] || (te.moduleExtensions[i] = {});
18832
18850
  for (const o in s)
18833
- ee.moduleExtensions[i][o] || (ee.moduleExtensions[i][o] = {}), Object.assign(
18834
- ee.moduleExtensions[i][o],
18851
+ te.moduleExtensions[i][o] || (te.moduleExtensions[i][o] = {}), Object.assign(
18852
+ te.moduleExtensions[i][o],
18835
18853
  s[o]
18836
18854
  );
18837
18855
  }
18838
18856
  }
18839
- ee._extendModuleFromQueue(e);
18857
+ te._extendModuleFromQueue(e);
18840
18858
  }
18841
18859
  static _extendModuleFromQueue(e) {
18842
- const t = ee.moduleExtensions[e.moduleName];
18860
+ const t = te.moduleExtensions[e.moduleName];
18843
18861
  if (t)
18844
18862
  for (const i in t)
18845
- ee._extendModule(
18863
+ te._extendModule(
18846
18864
  e.moduleName,
18847
18865
  i,
18848
18866
  t[i]
@@ -18852,8 +18870,8 @@ const zi = process.env.NODE_ENV === "development", ee = class ee extends so {
18852
18870
  _bindModules() {
18853
18871
  const e = [], t = [], i = [];
18854
18872
  this.modules = {};
18855
- for (const s in ee.moduleBindings) {
18856
- const o = ee.moduleBindings[s], r = new o(this);
18873
+ for (const s in te.moduleBindings) {
18874
+ const o = te.moduleBindings[s], r = new o(this);
18857
18875
  this.modules[s] = r, o.prototype.moduleCore ? this.modulesCore.push(r) : o.moduleInitOrder === void 0 || o.moduleInitOrder === null ? i.push(r) : o.moduleInitOrder < 0 ? e.push(r) : t.push(r);
18858
18876
  }
18859
18877
  e.sort((s, o) => {
@@ -18867,17 +18885,17 @@ const zi = process.env.NODE_ENV === "development", ee = class ee extends so {
18867
18885
  );
18868
18886
  }
18869
18887
  };
18870
- ee.moduleBindings = {}, ee.moduleExtensions = {}, ee.modulesRegistered = !1, ee.defaultModules = !1;
18871
- let oo = ee;
18872
- const le = process.env.NODE_ENV === "development", vt = class vt extends oo {
18888
+ te.moduleBindings = {}, te.moduleExtensions = {}, te.modulesRegistered = !1, te.defaultModules = !1;
18889
+ let oo = te;
18890
+ const le = process.env.NODE_ENV === "development", yt = class yt extends oo {
18873
18891
  static extendModule(...e) {
18874
- vt.initializeModuleBinder(), vt._extendModule(...e);
18892
+ yt.initializeModuleBinder(), yt._extendModule(...e);
18875
18893
  }
18876
18894
  static registerModule(...e) {
18877
- vt.initializeModuleBinder(), vt._registerModule(...e);
18895
+ yt.initializeModuleBinder(), yt._registerModule(...e);
18878
18896
  }
18879
18897
  constructor(e, t, i) {
18880
- super(), vt.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 Cu(this), this.optionsList = new mn(this, "table constructor"), this.dependencyRegistry = new vu(this), this.initialized = !1, this.destroyed = !1, this.initializeElement(e) && (this.initializeCoreSystems(t), setTimeout(() => {
18898
+ 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 Cu(this), this.optionsList = new mn(this, "table constructor"), this.dependencyRegistry = new vu(this), this.initialized = !1, this.destroyed = !1, this.initializeElement(e) && (this.initializeCoreSystems(t), setTimeout(() => {
18881
18899
  this._create();
18882
18900
  })), this.constructor.registry.register(this);
18883
18901
  }
@@ -18897,7 +18915,7 @@ const le = process.env.NODE_ENV === "development", vt = class vt extends oo {
18897
18915
  ), !1;
18898
18916
  }
18899
18917
  initializeCoreSystems(e) {
18900
- this.columnManager = new hu(this), this.rowManager = new mu(this), this.footerManager = new du(this), this.dataLoader = new Qs(this), this.alertManager = new gu(this), this.toolbar = e?.toolbarElement, this._bindModules(), this.options = this.optionsList.generate(vt.defaultOptions, e), this._clearObjectPointers(), this._mapDeprecatedFunctionality(), this.externalEvents = new Eu(
18918
+ this.columnManager = new hu(this), this.rowManager = new mu(this), this.footerManager = new du(this), this.dataLoader = new Qs(this), this.alertManager = new gu(this), this.toolbar = e?.toolbarElement, this._bindModules(), this.options = this.optionsList.generate(yt.defaultOptions, e), this._clearObjectPointers(), this._mapDeprecatedFunctionality(), this.externalEvents = new Eu(
18901
18919
  this,
18902
18920
  this.options,
18903
18921
  this.options.debugEventsExternal
@@ -19267,8 +19285,8 @@ const le = process.env.NODE_ENV === "development", vt = class vt extends oo {
19267
19285
  return !t && le && console.error("Tabulator module not installed: " + e), t;
19268
19286
  }
19269
19287
  };
19270
- vt.defaultOptions = cu;
19271
- let Lt = vt;
19288
+ yt.defaultOptions = cu;
19289
+ let Lt = yt;
19272
19290
  class Ou extends Lt {
19273
19291
  static extendModule(...e) {
19274
19292
  Lt.initializeModuleBinder(ns), Lt._extendModule(...e);
@@ -19353,17 +19371,17 @@ function Au(n, e) {
19353
19371
  }
19354
19372
  function Pu(n, e) {
19355
19373
  const t = n.facetDetails;
19356
- return x`<cx-facet-date-picker field=${t.facetFieldName} display-name=${t.displayName} display-format=${te(t.displayFormat)} value=${e.dateRange?.fromDate ?? ""} from-time=${e.dateRange?.fromTime ?? Kr} min=${t.min ?? ""} max=${t.max ?? ""} ?show-time=${t.showTime ?? !1}></cx-facet-date-picker>`;
19374
+ return x`<cx-facet-date-picker field=${t.facetFieldName} display-name=${t.displayName} display-format=${Z(t.displayFormat)} value=${e.dateRange?.fromDate ?? ""} from-time=${e.dateRange?.fromTime ?? Kr} min=${t.min ?? ""} max=${t.max ?? ""} ?show-time=${t.showTime ?? !1}></cx-facet-date-picker>`;
19357
19375
  }
19358
19376
  function Iu(n, e) {
19359
19377
  const t = n.facetDetails;
19360
- return x`<cx-facet-date-range field=${t.facetFieldName} display-name=${t.displayName} display-format=${te(t.displayFormat)} from-date=${e.dateRange?.fromDate ?? ""} to-date=${e.dateRange?.toDate ?? ""} from-time=${e.dateRange?.fromTime ?? Kr} to-time=${e.dateRange?.toTime ?? oa} preset=${e.dateRange?.preset ?? ""} min=${t.min ?? ""} max=${t.max ?? ""} ?show-time=${t.showTime ?? !1} ?show-preset=${t.showPreset ?? !1}></cx-facet-date-range>`;
19378
+ return x`<cx-facet-date-range field=${t.facetFieldName} display-name=${t.displayName} display-format=${Z(t.displayFormat)} from-date=${e.dateRange?.fromDate ?? ""} to-date=${e.dateRange?.toDate ?? ""} from-time=${e.dateRange?.fromTime ?? Kr} to-time=${e.dateRange?.toTime ?? oa} preset=${e.dateRange?.preset ?? ""} min=${t.min ?? ""} max=${t.max ?? ""} ?show-time=${t.showTime ?? !1} ?show-preset=${t.showPreset ?? !1}></cx-facet-date-range>`;
19361
19379
  }
19362
19380
  const Hu = {
19363
19381
  [rt.Checkbox]: Au,
19364
19382
  [rt.DatePicker]: Pu,
19365
19383
  [rt.DateRange]: Iu
19366
- }, Nu = q`:host{display:contents}cx-dropdown{--panel-overflow:hidden}cx-details{--expand-icon-size:24px}.panel{--header-background-color:transparent;--header-font-size:var(--cx-font-size-medium);--panel-width:min(280px, 90dvw);width:var(--panel-width);max-height:var(--panel-max-height,600px);position:relative}.panel:has(cx-facet-date-range[show-time],cx-facet-date-picker[show-time]){--panel-width:min(385px, 90dvw)}.panel__content{max-height:var(--panel-max-height,600px);flex-direction:column;display:flex}.panel__header{flex-shrink:0}.panel__body{flex:1;min-height:0;overflow-y:auto}.panel__footer{padding:var(--cx-spacing-x-small) var(--cx-spacing-medium);border-top:1px solid var(--cx-color-neutral-200);flex-shrink:0;display:flex}.applied-filters__summary{align-items:center;gap:var(--cx-spacing-2x-small);display:inline-flex}.applied-filters__title{font-weight:var(--cx-font-weight-medium);color:var(--cx-color-neutral-900)}.applied-filters__loading{align-items:center;display:inline-flex}.applied-filters{--content-padding:0 var(--cx-spacing-medium);min-width:100%;width:var(--panel-width)}.applied-filters::part(summary){flex:none}.applied-filters::part(base),cx-faceted-filter-facet::part(base){border-top-width:0;border-left-width:0;border-right-width:0}.applied-filters--empty::part(content){display:none}.faceted-filter__trigger-wrapper{display:inline-block;position:relative}.faceted-filter__trigger::part(base){background-color:var(--cx-color-neutral-100)}.faceted-filter__trigger-badge{position:absolute;top:-15px;right:-15px}.applied-filters__tags{max-width:var(--panel-width);padding-bottom:var(--cx-spacing-x-small)}.panel__clear-all-button{--cx-button-text-transform:none;padding-top:var(--cx-spacing-2x-small);padding-bottom:var(--cx-spacing-2x-small)}.panel__clear-all-button::part(label){text-decoration:underline}.panel__clear-all-button:not([disabled])::part(base):hover{color:var(--cx-color-neutral-800);background-color:#0000;border-color:#0000}cx-tag::part(remove-button){font-size:var(--cx-font-size-x-small)}cx-tag::part(remove-button__base){min-height:unset;min-width:unset;padding:var(--cx-spacing-3x-small)}`;
19384
+ }, Nu = q`:host{display:contents}cx-dropdown{--panel-overflow:hidden}cx-details{--expand-icon-size:24px}.panel{--header-background-color:transparent;--header-font-size:var(--cx-font-size-medium);--panel-width:min(280px, 90dvw);width:var(--panel-width);max-height:var(--panel-max-height,600px);position:relative}.panel:has(cx-facet-date-range[show-time],cx-facet-date-picker[show-time]){--panel-width:min(385px, 90dvw)}.panel__content{max-height:var(--panel-max-height,600px);flex-direction:column;display:flex}.panel__header{flex-shrink:0}.panel__body{flex:1;min-height:0;overflow-y:auto}.panel__footer{padding:var(--cx-spacing-x-small) var(--cx-spacing-medium);border-top:1px solid var(--cx-color-neutral-200);flex-shrink:0;display:flex}.applied-filters__summary{align-items:center;gap:var(--cx-spacing-2x-small);display:inline-flex}.applied-filters__title{font-weight:var(--cx-font-weight-medium);color:var(--cx-color-neutral-900)}.applied-filters__loading{align-items:center;display:inline-flex}.applied-filters{--content-padding:0 var(--cx-spacing-medium);min-width:100%;width:var(--panel-width)}.applied-filters::part(summary){flex:none}.applied-filters::part(base),cx-faceted-filter-facet::part(base){border-top-width:0;border-left-width:0;border-right-width:0}.applied-filters--empty::part(content){display:none}.faceted-filter__trigger{--font-size:var(--trigger-icon-size,var(--cx-font-size-large))}.faceted-filter__trigger::part(base){background-color:var(--cx-color-neutral-100)}.faceted-filter__trigger-badge{margin-block-start:calc(-1 * var(--cx-spacing-x-small));margin-inline-end:calc(-1 * var(--cx-spacing-x-small))}.applied-filters__tags{max-width:var(--panel-width);padding-bottom:var(--cx-spacing-x-small)}.panel__clear-all-button{--cx-button-text-transform:none;padding-top:var(--cx-spacing-2x-small);padding-bottom:var(--cx-spacing-2x-small)}.panel__clear-all-button::part(label){text-decoration:underline}.panel__clear-all-button:not([disabled])::part(base):hover{color:var(--cx-color-neutral-800);background-color:#0000;border-color:#0000}cx-tag::part(remove-button){font-size:var(--cx-font-size-x-small)}cx-tag::part(remove-button__base){min-height:unset;min-width:unset;padding:var(--cx-spacing-3x-small)}`;
19367
19385
  var Vu = Object.defineProperty, Bu = Object.getOwnPropertyDescriptor, ye = (n, e, t, i) => {
19368
19386
  for (var s = i > 1 ? void 0 : i ? Bu(e, t) : e, o = n.length - 1, r; o >= 0; o--)
19369
19387
  (r = n[o]) && (s = (i ? r(e, t, s) : r(s)) || s);
@@ -19371,7 +19389,7 @@ var Vu = Object.defineProperty, Bu = Object.getOwnPropertyDescriptor, ye = (n, e
19371
19389
  };
19372
19390
  let de = class extends Pe {
19373
19391
  constructor() {
19374
- super(...arguments), this.localize = new et(this), this.shadowRootAutoloader = new gn(
19392
+ super(...arguments), this.localize = new tt(this), this.shadowRootAutoloader = new gn(
19375
19393
  this
19376
19394
  ), this.facets = [], this.availableFacets = [], this.selectedFacets = {}, this.selectedDateRanges = {}, this.selection = _t.Single, this.loading = !1, this.externalFilters = [], this.appliedFiltersCount = 0, this.internalSelection = {}, this.internalDateRanges = {}, this.mappedDisplayNames = {}, this.facetDetailsByField = /* @__PURE__ */ new Map();
19377
19395
  }
@@ -19498,13 +19516,13 @@ let de = class extends Pe {
19498
19516
  });
19499
19517
  }
19500
19518
  renderAppliedFilters() {
19501
- return x`<cx-details aria-busy=${this.loading ? "true" : "false"} class=${ot({
19519
+ return x`<cx-details aria-busy=${this.loading ? "true" : "false"} class=${Ze({
19502
19520
  "applied-filters": !0,
19503
19521
  "applied-filters--empty": this.appliedFiltersCount === 0
19504
- })}><span slot="summary" class="applied-filters__summary"><span class="applied-filters__title">${this.localize.term("appliedFilters")}${this.appliedFiltersCount > 0 ? ` (${this.appliedFiltersCount})` : bt}</span>${Y(
19522
+ })}><span slot="summary" class="applied-filters__summary"><span class="applied-filters__title">${this.localize.term("appliedFilters")}${this.appliedFiltersCount > 0 ? ` (${this.appliedFiltersCount})` : ut}</span>${J(
19505
19523
  this.loading,
19506
19524
  () => x`<span class="applied-filters__loading" role="status" aria-label=${this.localize.term("loading")}><cx-spinner></cx-spinner></span>`,
19507
- () => bt
19525
+ () => ut
19508
19526
  )}</span><cx-space direction="horizontal" spacing="small" class="applied-filters__tags">${this.renderExternalFilterTags()}
19509
19527
  ${this.renderSelectionCheckboxTags()}
19510
19528
  ${this.renderDateTags()}</cx-space></cx-details>`;
@@ -19553,18 +19571,18 @@ let de = class extends Pe {
19553
19571
  );
19554
19572
  }
19555
19573
  renderFooter() {
19556
- return Y(
19574
+ return J(
19557
19575
  this.appliedFiltersCount > 0,
19558
19576
  () => x`<div class="panel__footer"><cx-button variant="text" @click=${this.handleClearAllClick} size="small" class="panel__clear-all-button">${this.localize.term("clear")}</cx-button></div>`,
19559
- () => bt
19577
+ () => ut
19560
19578
  );
19561
19579
  }
19562
19580
  render() {
19563
- return x`<cx-dropdown stay-open-on-select placement="bottom-start" distance="4" hoist @cx-selection-change=${this.handleSelectionChange} @cx-facet-change=${this.handleFacetChange} @cx-remove=${this.handleRemove}><div slot="trigger" class="faceted-filter__trigger-wrapper"><cx-icon-button name="filter_alt" label=${this.localize.term("filter")} class="faceted-filter__trigger"></cx-icon-button>${Y(
19581
+ return x`<cx-dropdown stay-open-on-select placement="bottom-start" distance="4" hoist @cx-selection-change=${this.handleSelectionChange} @cx-facet-change=${this.handleFacetChange} @cx-remove=${this.handleRemove}><cx-icon-button slot="trigger" name="filter_alt" label=${this.localize.term("filter")} class="faceted-filter__trigger">${J(
19564
19582
  this.appliedFiltersCount > 0,
19565
- () => x`<cx-badge class="faceted-filter__trigger-badge" pill size="small">${this.appliedFiltersCount}</cx-badge>`,
19566
- () => bt
19567
- )}</div><div class="panel"><div class="panel__content"><div class="panel__header">${this.renderAppliedFilters()}</div><div class="panel__body">${Y(
19583
+ () => x`<cx-badge slot="badge" class="faceted-filter__trigger-badge" pill size="small">${this.appliedFiltersCount}</cx-badge>`,
19584
+ () => ut
19585
+ )}</cx-icon-button><div class="panel"><div class="panel__content"><div class="panel__header">${this.renderAppliedFilters()}</div><div class="panel__body">${J(
19568
19586
  this.availableFacets.length > 0,
19569
19587
  () => x`<div>${Ke(
19570
19588
  this.availableFacets,
@@ -19574,7 +19592,7 @@ let de = class extends Pe {
19574
19592
  (s) => s.facetDetails.facetFieldName === n.facetFieldName
19575
19593
  );
19576
19594
  if (!e)
19577
- return bt;
19595
+ return ut;
19578
19596
  const t = n.type ?? rt.Checkbox, i = Hu[t];
19579
19597
  return i ? i(
19580
19598
  {
@@ -19582,20 +19600,20 @@ let de = class extends Pe {
19582
19600
  values: e.values
19583
19601
  },
19584
19602
  this.buildRenderContext(n.facetFieldName)
19585
- ) : bt;
19603
+ ) : ut;
19586
19604
  }
19587
19605
  )}</div>`,
19588
- () => bt
19606
+ () => ut
19589
19607
  )}</div>${this.renderFooter()}</div></div></cx-dropdown>`;
19590
19608
  }
19591
19609
  };
19592
19610
  de.styles = [$e, Nu];
19593
19611
  de.dependencies = {
19594
19612
  "cx-badge": da,
19595
- "cx-button": Ct,
19613
+ "cx-button": Et,
19596
19614
  "cx-details": ua,
19597
19615
  "cx-dropdown": ai,
19598
- "cx-icon": Et,
19616
+ "cx-icon": gt,
19599
19617
  "cx-icon-button": oi,
19600
19618
  "cx-space": Ri,
19601
19619
  "cx-spinner": Xr,
@@ -20260,10 +20278,10 @@ function Lr(n, e, t, i = 500) {
20260
20278
  }
20261
20279
  const w = p.data;
20262
20280
  if (!r) {
20263
- const E = w.map((k, T) => k.trim() || `column_${T}`), y = /* @__PURE__ */ new Map();
20281
+ const E = w.map((k, D) => k.trim() || `column_${D}`), y = /* @__PURE__ */ new Map();
20264
20282
  a = E.map((k) => {
20265
- const T = y.get(k) ?? 0;
20266
- return y.set(k, T + 1), T === 0 ? k : `${k}_${T}`;
20283
+ const D = y.get(k) ?? 0;
20284
+ return y.set(k, D + 1), D === 0 ? k : `${k}_${D}`;
20267
20285
  }), e(a.map((k) => ({ field: k, title: k }))), r = !0;
20268
20286
  return;
20269
20287
  }
@@ -20333,7 +20351,7 @@ function wn(n, e = "") {
20333
20351
  return { columns: t.columns, rows: t.data };
20334
20352
  throw new Error("JSON data must be an array of row objects or a { columns, data } envelope");
20335
20353
  }
20336
- function Dp(n) {
20354
+ function Tp(n) {
20337
20355
  if (n.length === 0)
20338
20356
  return { columns: [], data: [] };
20339
20357
  const t = n[0].map((a, l) => {
@@ -20350,11 +20368,11 @@ function Dp(n) {
20350
20368
  );
20351
20369
  return { columns: o, data: r };
20352
20370
  }
20353
- function Tp(n) {
20371
+ function Dp(n) {
20354
20372
  const e = mo.parse(n, { header: !1, skipEmptyLines: !0 }), t = e.errors.filter((i) => i.code !== "UndetectableDelimiter");
20355
20373
  if (t.length > 0)
20356
20374
  throw new Error(`CSV parse error: ${t[0].message}`);
20357
- return Dp(e.data);
20375
+ return Tp(e.data);
20358
20376
  }
20359
20377
  function Mp(n) {
20360
20378
  const e = JSON.parse(n), { columns: t, rows: i } = wn(e);
@@ -20452,9 +20470,9 @@ var Ap = Object.defineProperty, Pp = Object.getOwnPropertyDescriptor, Cn = (n) =
20452
20470
  }, Ip = (n, e, t) => e.has(n) || Cn("Cannot " + t), Hp = (n, e, t) => (Ip(n, e, "read from private field"), t ? t.call(n) : e.get(n)), Np = (n, e, t) => e.has(n) ? Cn("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(n) : e.set(n, t), no, En;
20453
20471
  let g = class extends Pe {
20454
20472
  constructor() {
20455
- super(), Np(this, no), this.localize = new et(this), this.hasSlotController = new Ur(this, "add-action"), this.verticalOsInstance = null, this.horizontalOsInstance = null, this.frozenScrollOff = null, this.resizeObserver = null, this.overflowObserver = null, this.ajaxFacetsController = new Wu(this), this.filterController = new qu(this), this.ajaxFacetFilterController = new Ku(this, this.filterController), this.selectAllController = new Xu(this), this.shadowRootAutoloader = new gn(
20473
+ super(), Np(this, no), this.localize = new tt(this), this.hasSlotController = new Ur(this, "add-action"), this.verticalOsInstance = null, this.horizontalOsInstance = null, this.frozenScrollOff = null, this.resizeObserver = null, this.overflowObserver = null, this.ajaxFacetsController = new Wu(this), this.filterController = new qu(this), this.ajaxFacetFilterController = new Ku(this, this.filterController), this.selectAllController = new Xu(this), this.shadowRootAutoloader = new gn(
20456
20474
  this
20457
- ), 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 = pi.Both, this.clipboardCopyRowRange = "range", this.clipboardPasteParser = void 0, this.clipboardPasteAction = "insert", this.clipboardCopyConfig = { columnHeaders: !1 }, this.clipboardNoCopyStyled = !1, this.pagination = !1, this.paginationMode = ut.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 = sa.Both, this.paginationShowFirst = !1, this.paginationShowLast = !1, this.paginationPlacement = Ki.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 = ut.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 = fi.IsoDateTime, this.dataFormat = ve.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 = () => {
20475
+ ), 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 = pi.Both, this.clipboardCopyRowRange = "range", this.clipboardPasteParser = void 0, this.clipboardPasteAction = "insert", this.clipboardCopyConfig = { columnHeaders: !1 }, this.clipboardNoCopyStyled = !1, this.pagination = !1, this.paginationMode = pt.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 = sa.Both, this.paginationShowFirst = !1, this.paginationShowLast = !1, this.paginationPlacement = Ki.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 = pt.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 = fi.IsoDateTime, this.dataFormat = ve.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 = () => {
20458
20476
  this.initHorizontalScrollbar(), this.useOverlayScrollbar ? this.initVerticalScrollbar() : this.verticalOsInstance?.destroy(), 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();
20459
20477
  }, this.handleValidationChanged = (t) => {
20460
20478
  this.validationTooltipAnchor && !this.validationTooltipAnchor.isConnected && this.hideValidationTooltip(), this.emit("cx-table-validation-change", { detail: t });
@@ -20510,7 +20528,7 @@ let g = class extends Pe {
20510
20528
  * the `ajaxURL` term is what catches the ajax case.
20511
20529
  */
20512
20530
  get isRemotePagination() {
20513
- return this.pagination && (!!this.ajaxURL || !!this.internalAjaxRequestFunc || this.paginationMode === ut.Remote);
20531
+ return this.pagination && (!!this.ajaxURL || !!this.internalAjaxRequestFunc || this.paginationMode === pt.Remote);
20514
20532
  }
20515
20533
  /**
20516
20534
  * Whether pagination alone should render the toolbar. A top-placed paginator
@@ -21030,14 +21048,14 @@ let g = class extends Pe {
21030
21048
  if (i !== this.dataUrlRequestId)
21031
21049
  return;
21032
21050
  const y = l.length;
21033
- E.forEach((T) => {
21034
- T.__cxRowIndex = l.length, l.push(T);
21051
+ E.forEach((D) => {
21052
+ D.__cxRowIndex = l.length, l.push(D);
21035
21053
  }), !p && l.length >= s && (p = !0, r(c, l)), p && this.updatePaginationCountLive(l.length), await this.validateInMemoryRowsChunk(
21036
21054
  E,
21037
21055
  d,
21038
21056
  y,
21039
21057
  h
21040
- ) && i === this.dataUrlRequestId && a(l.length, h), await new Promise((T) => requestAnimationFrame(() => T()));
21058
+ ) && i === this.dataUrlRequestId && a(l.length, h), await new Promise((D) => requestAnimationFrame(() => D()));
21041
21059
  }, w = g.IN_MEMORY_PARSE_CHUNK_SIZE;
21042
21060
  return t === ve.Csv ? await Lr(e, u, f, w) : t === ve.Json ? await _r(e, u, f, w, this.dataUrlPath) : t === ve.Xml && await zr(e, u, f, w, this.dataUrlPath), p || r(c, l), { columns: c, rows: l, validationResult: h };
21043
21061
  }
@@ -21422,13 +21440,13 @@ let g = class extends Pe {
21422
21440
  return this.ajaxFacetsController.handleAjaxResponse(s), this.isRemotePagination ? Array.isArray(s) ? { data: s, last_page: 1 } : s : Array.isArray(s) ? s : s?.data ?? s;
21423
21441
  }
21424
21442
  renderToolbar() {
21425
- return x`<cx-table-toolbar label=${this.label} ?pagination=${this.pagination} pagination-placement=${te(
21443
+ return x`<cx-table-toolbar label=${this.label} ?pagination=${this.pagination} pagination-placement=${Z(
21426
21444
  this.pagination ? this.paginationPlacement : void 0
21427
- )} ?no-header-row-reserve=${this.noHeaderRowReserve} ?has-dynamic-filter=${this.hasFacets} ?can-search=${this.canSearch} search-value=${this.searchValue} ?can-add=${this.canAdd} add-label=${this.addLabel} ?can-export-csv=${this.canExportCsv} ?can-export-xml=${this.canExportXml} ?can-export-pdf=${this.canExportPdf} ?can-export-custom=${this.canExportCustom} ?can-save-report=${this.canSaveReport} ?show-saved-search=${this.showSavedSearch} ?no-advanced-search=${this.noAdvancedSearch} .dropdownFilters=${this.dropdownFilters} .groupByOptions=${this.groupByOptions} group-by-value=${typeof this.groupBy == "string" ? this.groupBy : ""} saved-search-url=${this.savedSearchURL} .savedSearchItems=${this.savedSearchItems} saved-search-page-size-param=${this.savedSearchPageSizeParam} saved-search-page-size=${this.savedSearchPageSize} saved-search-page-number-param=${this.savedSearchPageNumberParam} .selectAllState=${this.canSelectAll ? this.selectAllController.state : null} @cx-search=${this.handleSearch} @cx-table-export=${this.handleTableExport} @cx-table-dropdown-filter-change=${this.handleDropdownFilterChange} @cx-table-group-by-change=${this.handleTableGroupByChange} @cx-table-select-all-change=${this.handleSelectAllChange}><slot name="select-all-actions" slot="select-all-actions"></slot>${Y(
21445
+ )} ?no-header-row-reserve=${this.noHeaderRowReserve} ?has-dynamic-filter=${this.hasFacets} ?can-search=${this.canSearch} search-value=${this.searchValue} ?can-add=${this.canAdd} add-label=${this.addLabel} ?can-export-csv=${this.canExportCsv} ?can-export-xml=${this.canExportXml} ?can-export-pdf=${this.canExportPdf} ?can-export-custom=${this.canExportCustom} ?can-save-report=${this.canSaveReport} ?show-saved-search=${this.showSavedSearch} ?no-advanced-search=${this.noAdvancedSearch} .dropdownFilters=${this.dropdownFilters} .groupByOptions=${this.groupByOptions} group-by-value=${typeof this.groupBy == "string" ? this.groupBy : ""} saved-search-url=${this.savedSearchURL} .savedSearchItems=${this.savedSearchItems} saved-search-page-size-param=${this.savedSearchPageSizeParam} saved-search-page-size=${this.savedSearchPageSize} saved-search-page-number-param=${this.savedSearchPageNumberParam} .selectAllState=${this.canSelectAll ? this.selectAllController.state : null} @cx-search=${this.handleSearch} @cx-table-export=${this.handleTableExport} @cx-table-dropdown-filter-change=${this.handleDropdownFilterChange} @cx-table-group-by-change=${this.handleTableGroupByChange} @cx-table-select-all-change=${this.handleSelectAllChange}><slot name="select-all-actions" slot="select-all-actions"></slot>${J(
21428
21446
  this.hasFacets,
21429
21447
  () => x`<cx-faceted-filter slot="dialog-dynamic-filter" .facets=${this.ajaxFacetsController.facets} .availableFacets=${this.ajaxFacetsController.availableFacets} .externalFilters=${this.appliedFilterTags} @cx-faceted-filter-remove=${this.handleAppliedFilterRemove}></cx-faceted-filter>`
21430
21448
  )}
21431
- ${Y(
21449
+ ${J(
21432
21450
  this.hasSlotController.test("add-action"),
21433
21451
  () => x`<slot name="add-action" slot="add-action"></slot>`
21434
21452
  )}</cx-table-toolbar>`;
@@ -21513,10 +21531,10 @@ let g = class extends Pe {
21513
21531
  });
21514
21532
  }
21515
21533
  render() {
21516
- return x`<cx-space part="base" direction="vertical" spacing="large" wrap="nowrap" class=${ot({
21534
+ return x`<cx-space part="base" direction="vertical" spacing="large" wrap="nowrap" class=${Ze({
21517
21535
  container: !0,
21518
21536
  "container--overlay-scrollbar": this.useOverlayScrollbar
21519
- })}>${Y(this.showTableToolbar, () => this.renderToolbar())}<div part="table" class="table" @mouseover=${this.handleValidationMouseOver} @mouseout=${this.handleValidationMouseOut} @contextmenu=${this.handleHeaderContextMenu}></div>${Y(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>`;
21537
+ })}>${J(this.showTableToolbar, () => this.renderToolbar())}<div part="table" class="table" @mouseover=${this.handleValidationMouseOver} @mouseout=${this.handleValidationMouseOut} @contextmenu=${this.handleHeaderContextMenu}></div>${J(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>`;
21520
21538
  }
21521
21539
  };
21522
21540
  no = /* @__PURE__ */ new WeakSet();
@@ -21529,21 +21547,21 @@ g.styles = [
21529
21547
  kn
21530
21548
  ];
21531
21549
  g.dependencies = {
21532
- "cx-button": Ct,
21550
+ "cx-button": Et,
21533
21551
  "cx-checkbox": Gr,
21534
21552
  "cx-divider": la,
21535
21553
  "cx-faceted-filter": de,
21536
21554
  "cx-format-number": ha,
21537
- "cx-icon": Et,
21555
+ "cx-icon": gt,
21538
21556
  "cx-icon-button": oi,
21539
21557
  "cx-select": ca,
21540
21558
  "cx-space": Ri,
21541
21559
  "cx-spinner": Xr,
21542
- "cx-table-column-editor": Ze,
21560
+ "cx-table-column-editor": Qe,
21543
21561
  "cx-table-footer": Ci,
21544
- "cx-table-header-menu": Qe,
21562
+ "cx-table-header-menu": et,
21545
21563
  "cx-table-row-actions": Ot,
21546
- "cx-table-toolbar": Q,
21564
+ "cx-table-toolbar": ee,
21547
21565
  "cx-tooltip": Pt
21548
21566
  };
21549
21567
  g.IN_MEMORY_PARSE_CHUNK_SIZE = 2e4;
@@ -22677,12 +22695,12 @@ function _i(n, e, t) {
22677
22695
  const i = e.getValue() ?? "";
22678
22696
  if (!i)
22679
22697
  return null;
22680
- const s = x`<cx-copy-button copy-label=${n.term("clickToCopy")} focus-copy-label=${n.term("pressEnterOrCtrlCToCopy")} hoist label=${`${t}, ${e.getField()} ${n.term("code")} ${i}. ${n.term("clickOrPressCtrlCToCopy")}`} no-icon tooltip-distance="0" value=${i} style=${pt({
22698
+ const s = x`<cx-copy-button copy-label=${n.term("clickToCopy")} focus-copy-label=${n.term("pressEnterOrCtrlCToCopy")} hoist label=${`${t}, ${e.getField()} ${n.term("code")} ${i}. ${n.term("clickOrPressCtrlCToCopy")}`} no-icon tooltip-distance="0" value=${i} style=${ft({
22681
22699
  "--button-background-color": "transparent",
22682
22700
  "--button-font-size": "var(--cx-font-size-large)",
22683
22701
  "--button-padding": "0",
22684
22702
  "max-width": "100%"
22685
- })}><span style=${pt({
22703
+ })}><span style=${ft({
22686
22704
  display: "inline-block",
22687
22705
  maxWidth: "100%",
22688
22706
  overflow: "hidden",
@@ -22739,7 +22757,7 @@ var Gp = Object.defineProperty, Up = Object.getOwnPropertyDescriptor, xe = (n, e
22739
22757
  const Pr = "unnamed";
22740
22758
  let me = class extends Pe {
22741
22759
  constructor() {
22742
- super(), this.localize = new et(this), this.variant = Je.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 = Di.Desktop, this.currentCol = 0, this.isFocused = !1, this.canFocusContainer = !0, this.isContainerFocused = !1, this.handleWindowResize = this.handleWindowResize.bind(this);
22760
+ super(), this.localize = new tt(this), this.variant = Je.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 = Ti.Desktop, this.currentCol = 0, this.isFocused = !1, this.canFocusContainer = !0, this.isContainerFocused = !1, this.handleWindowResize = this.handleWindowResize.bind(this);
22743
22761
  }
22744
22762
  runFirstUpdated() {
22745
22763
  this.setAttribute("role", "region"), this.setAttribute("aria-label", this.localize.term("colorSwatches")), this.setAttribute(
@@ -22823,7 +22841,7 @@ let me = class extends Pe {
22823
22841
  * Get current direction of the color swatch group
22824
22842
  */
22825
22843
  get currentDirection() {
22826
- return this.variant === Je.Circles && this.deviceType !== Di.Desktop ? "vertical" : "horizontal";
22844
+ return this.variant === Je.Circles && this.deviceType !== Ti.Desktop ? "vertical" : "horizontal";
22827
22845
  }
22828
22846
  /**
22829
22847
  * Get the variant of the color swatch
@@ -22831,7 +22849,7 @@ let me = class extends Pe {
22831
22849
  get swatchVariant() {
22832
22850
  switch (this.variant) {
22833
22851
  case Je.Circles:
22834
- return this.deviceType === Di.Tablet ? es.Oval : es.Circle;
22852
+ return this.deviceType === Ti.Tablet ? es.Oval : es.Circle;
22835
22853
  case Je.Grid:
22836
22854
  return es.GridItem;
22837
22855
  default:
@@ -22841,7 +22859,7 @@ let me = class extends Pe {
22841
22859
  render() {
22842
22860
  const n = this.currentDirection, e = this.localize.lang();
22843
22861
  return x`
22844
- ${Y(
22862
+ ${J(
22845
22863
  this.variant === Je.Table,
22846
22864
  () => x`<cx-space class="color-swatch-group__swatches" direction="vertical" spacing="2x-small">${Wo(
22847
22865
  [this.data, this.canCopy],
@@ -22851,7 +22869,7 @@ let me = class extends Pe {
22851
22869
  ...s,
22852
22870
  name: s[`name-${e.toLowerCase()}`] ?? s.name
22853
22871
  })) : t.colors;
22854
- return x`<div tabindex=${te(
22872
+ return x`<div tabindex=${Z(
22855
22873
  this.canFocusContainer ? "0" : void 0
22856
22874
  )} data-table-container class="color-swatch-group__table-container" @focusin=${this.handleFocusIn} @focusout=${this.handleFocusOut} @keydown=${this.handleKeyDown}><cx-typography variant="h3">${t.palette === Pr ? 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=${Wo(
22857
22875
  [this.showCodes, this.canCopy, this.localize],
@@ -22860,11 +22878,11 @@ let me = class extends Pe {
22860
22878
  }
22861
22879
  )
22862
22880
  )}</cx-space>`,
22863
- () => x`<cx-space part="color-swatch" role="list" aria-label=${this.localize.term("listOfColors")} aria-roledescription=${this.localize.term("listOfColors")} direction=${n} justify-content="flex-start" wrap=${this.variant === "circles" ? "nowrap" : "wrap"} class=${ot({
22881
+ () => x`<cx-space part="color-swatch" role="list" aria-label=${this.localize.term("listOfColors")} aria-roledescription=${this.localize.term("listOfColors")} direction=${n} justify-content="flex-start" wrap=${this.variant === "circles" ? "nowrap" : "wrap"} class=${Ze({
22864
22882
  "color-swatch-group__swatches": !0,
22865
22883
  "color-swatch-group__swatches--grid": this.variant === Je.Grid,
22866
22884
  [`color-swatch-group__swatches--circles--${n}`]: this.variant === Je.Circles
22867
- })} style=${pt({
22885
+ })} style=${ft({
22868
22886
  gridTemplateColumns: this.currentCol >= this.maxCol ? `repeat(${this.maxCol}, 1fr)` : `repeat(auto-fit, minmax(${Ar}px, 1fr))`
22869
22887
  })}>${Ke(
22870
22888
  this.data,
@@ -22873,9 +22891,9 @@ let me = class extends Pe {
22873
22891
  "colorOfTotal",
22874
22892
  i + 1,
22875
22893
  this.data.length
22876
- )} hex=${t.hex} rgb=${t.rgb} cmyk=${t.cmyk} pms=${t.pms} name=${this.multiLanguage && e ? t[`name-${e.toLowerCase()}`] ?? t.name : t.name} variant=${this.swatchVariant} ?can-copy=${this.canCopy} ?can-focus-code-only=${this.isFocused} .showCodes=${this.showCodes} no-auto-convert class=${ot({
22894
+ )} hex=${t.hex} rgb=${t.rgb} cmyk=${t.cmyk} pms=${t.pms} name=${this.multiLanguage && e ? t[`name-${e.toLowerCase()}`] ?? t.name : t.name} variant=${this.swatchVariant} ?can-copy=${this.canCopy} ?can-focus-code-only=${this.isFocused} .showCodes=${this.showCodes} no-auto-convert class=${Ze({
22877
22895
  [`color-swatch-group__swatches--circles--${n}__item`]: this.variant === Je.Circles,
22878
- "color-swatch-group__swatches--circles--vertical__item--mobile": this.variant === Je.Circles && this.deviceType === Di.Mobile
22896
+ "color-swatch-group__swatches--circles--vertical__item--mobile": this.variant === Je.Circles && this.deviceType === Ti.Mobile
22879
22897
  })} @keydown=${this.handleKeyDown} @focusout=${this.handleFocusOut}></cx-color-swatch>`
22880
22898
  )}</cx-space>`
22881
22899
  )}
@@ -22959,6 +22977,6 @@ export {
22959
22977
  Je as c,
22960
22978
  jo as d,
22961
22979
  de as e,
22962
- Te as f,
22980
+ De as f,
22963
22981
  Go as o
22964
22982
  };