@orangelogic/design-system 2.99.0 → 2.101.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.
- package/library/chunks/{asset.CKtT9q4k.js → asset.CtL7ACp7.js} +1 -1
- package/library/chunks/{color-swatch-group.Cfn8EGfK.js → color-swatch-group.C6c53two.js} +3 -3
- package/library/chunks/{color-swatch.BUwHT5Cx.js → color-swatch.GsiCvj1n.js} +1 -1
- package/library/chunks/{confirm-popover.BMGnWZnC.js → confirm-popover.PiSCZY6-.js} +1 -1
- package/library/chunks/debounce.CIEhztrj.js +97 -0
- package/library/chunks/{dialog._xvAZqaE.js → dialog.BTU6B2_4.js} +9 -10
- package/library/chunks/event.BeKOsirN.js +46 -0
- package/library/chunks/{file-on-demand.CIjtKP0H.js → file-on-demand.DCxabV6T.js} +4 -4
- package/library/chunks/{folder-select.D4Ft0qRc.js → folder-select.BM7yeAsU.js} +2 -2
- package/library/chunks/{image.BnB-fJ8g.js → image.D207g003.js} +1 -1
- package/library/chunks/{list-editor.B_mnvgtZ.js → list-editor.DMjclCWz.js} +5 -5
- package/library/chunks/{table.D4HIzy47.js → table.Cm-ynClk.js} +977 -962
- package/library/chunks/{tree.Hh8WCK7l.js → tree.DAiWVFiY.js} +91 -80
- package/library/components/alert.js +7 -8
- package/library/components/asset-link-format.js +1 -1
- package/library/components/atoms.js +4 -4
- package/library/components/color-picker.js +1 -1
- package/library/components/color-swatch-group.js +4 -4
- package/library/components/color-swatch.js +2 -2
- package/library/components/confirm-popover.js +2 -2
- package/library/components/details.js +1 -2
- package/library/components/dialog.js +3 -4
- package/library/components/drawer.js +1 -2
- package/library/components/dropdown.js +7 -8
- package/library/components/dynamic-select.js +1 -1
- package/library/components/element-clamp.js +1 -2
- package/library/components/file-on-demand.js +5 -5
- package/library/components/folder-select.js +2 -2
- package/library/components/image.js +2 -2
- package/library/components/line-clamp.js +4 -5
- package/library/components/list-editor.js +4 -4
- package/library/components/masonry.js +1 -1
- package/library/components/molecules.js +4 -4
- package/library/components/organisms.js +2 -2
- package/library/components/popup.js +73 -74
- package/library/components/range.js +1 -1
- package/library/components/select.js +1 -2
- package/library/components/share-option-list.js +1 -1
- package/library/components/sidebar.js +6 -6
- package/library/components/table.js +1 -1
- package/library/components/tooltip.js +1 -2
- package/library/components/tree-item.js +4 -3
- package/library/components/tree.js +1 -1
- package/library/components/types.js +1738 -1742
- package/library/components/video.js +2 -2
- package/library/package.json +1 -1
- package/library/packages/atoms/src/components/table/components/table-toolbar/table-toolbar.d.ts +11 -1
- package/library/packages/atoms/src/components/tree-item/tree-item.d.ts +10 -0
- package/library/react-web-component.d.ts +4 -0
- package/library/utils.js +138 -140
- package/package.json +1 -1
- package/library/chunks/animate.El-MpOws.js +0 -37
- package/library/chunks/browser.BHOCIF_A.js +0 -84
- package/library/chunks/debounce.DaHuiSGU.js +0 -15
- package/library/chunks/event.mFzZi4sr.js +0 -11
|
@@ -1,44 +1,45 @@
|
|
|
1
1
|
import { C as Ve } from "./button.DfRnA70F.js";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { C as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
2
|
+
import Qs from "../components/checkbox.js";
|
|
3
|
+
import Zs from "../components/divider.js";
|
|
4
|
+
import eo from "../components/format-number.js";
|
|
5
|
+
import { C as zs } from "./icon-button.CN0NGNQx.js";
|
|
6
|
+
import to from "../components/select.js";
|
|
7
|
+
import Si from "../components/space.js";
|
|
8
|
+
import io from "../components/spinner.js";
|
|
9
9
|
import { n as g, C as Ie } from "./lib-cortex-element.CVMmyPMC.js";
|
|
10
10
|
import { c as Qe } from "./component.styles.CRO4Odto.js";
|
|
11
|
-
import { o as
|
|
12
|
-
import { g as k, a as
|
|
13
|
-
import { x as E, i as O, E as
|
|
14
|
-
import "./
|
|
11
|
+
import { o as so, O as es } from "./overlayscrollbars.BMav4RQ4.js";
|
|
12
|
+
import { g as k, a as ts } from "./dom.0RpWet6y.js";
|
|
13
|
+
import { x as E, i as O, E as oo } from "./lit-element.jLBm65_O.js";
|
|
14
|
+
import "./debounce.CIEhztrj.js";
|
|
15
15
|
import "./form.Ch1cwYzO.js";
|
|
16
|
-
import { L as
|
|
16
|
+
import { L as pt } from "./i18n.DK1uYlJT.js";
|
|
17
17
|
import "./purify.es.BIuh5IAZ.js";
|
|
18
18
|
import "./content-builder.CcgZciZN.js";
|
|
19
19
|
import "./unsafe-html.Dff7-rCx.js";
|
|
20
|
-
import { t as
|
|
21
|
-
import { s as T, c as
|
|
20
|
+
import { t as ro, g as no } from "./toast.D3AW3RWv.js";
|
|
21
|
+
import { s as T, c as ft, d as Ti } from "./string.DUgD4c9f.js";
|
|
22
22
|
import { o as re } from "./if-defined.BRoBj_Rp.js";
|
|
23
|
-
import { o as
|
|
24
|
-
import { T as
|
|
25
|
-
import { d as
|
|
26
|
-
import { C as
|
|
23
|
+
import { o as Le } from "./style-map.llVFPd__.js";
|
|
24
|
+
import { T as ao, C as lo } from "./typography.DJC_UXgs.js";
|
|
25
|
+
import { d as ho } from "./debounce.C_J-9zJi.js";
|
|
26
|
+
import { C as co, P as uo } from "./pagination.Bi-8gmcy.js";
|
|
27
27
|
import { c as Be } from "./custom-element.L4WJXn1j.js";
|
|
28
28
|
import { w as A } from "./watch.BCJD77bD.js";
|
|
29
29
|
import { r as ae } from "./state.CSDxrqLd.js";
|
|
30
30
|
import { e as We } from "./query.BBf1UFkC.js";
|
|
31
|
-
import { e as
|
|
31
|
+
import { e as nt } from "./class-map.BiVq-cVR.js";
|
|
32
32
|
import { n as X } from "./when.Dr1es41R.js";
|
|
33
|
-
import
|
|
34
|
-
import
|
|
33
|
+
import gt from "../components/icon.js";
|
|
34
|
+
import Mi from "../components/tooltip.js";
|
|
35
35
|
import { r as po } from "./choose.BTbF6BAn.js";
|
|
36
36
|
import { c as Ne } from "./repeat.DbF2p5ae.js";
|
|
37
|
-
import
|
|
38
|
-
import
|
|
39
|
-
import
|
|
37
|
+
import mt from "../components/dropdown.js";
|
|
38
|
+
import bt from "../components/menu.js";
|
|
39
|
+
import wt from "../components/menu-item.js";
|
|
40
40
|
import fo from "../components/menu-section.js";
|
|
41
41
|
import go from "../components/input.js";
|
|
42
|
+
import { H as mo } from "./slot.j5oheLJC.js";
|
|
42
43
|
class W {
|
|
43
44
|
constructor(e) {
|
|
44
45
|
this.table = e;
|
|
@@ -147,7 +148,7 @@ class W {
|
|
|
147
148
|
return this.table.module(e);
|
|
148
149
|
}
|
|
149
150
|
}
|
|
150
|
-
class
|
|
151
|
+
class L {
|
|
151
152
|
static elVisible(e) {
|
|
152
153
|
return !(e.offsetWidth <= 0 && e.offsetHeight <= 0);
|
|
153
154
|
}
|
|
@@ -183,8 +184,8 @@ class D {
|
|
|
183
184
|
return t;
|
|
184
185
|
}
|
|
185
186
|
}
|
|
186
|
-
const
|
|
187
|
-
let
|
|
187
|
+
const is = process.env.NODE_ENV === "development";
|
|
188
|
+
let bo = class Fs extends W {
|
|
188
189
|
constructor(e, t, i = null) {
|
|
189
190
|
super(e), this.reversedX = !1, this.childPopup = null, this.blurable = !1, this.blurCallback = null, this.blurEventsBound = !1, this.renderedCallback = null, this.visible = !1, this.hideable = !0, this.destroyed = !1, this.element = t, this.container = this._lookupContainer(), this.parent = i, this.element.classList.add("tabulator-popup-container"), this.blurEvent = this.hide.bind(this, !1), this.escEvent = this._escapeCheck.bind(this), this.destroyBinding = this.tableDestroyed.bind(this);
|
|
190
191
|
}
|
|
@@ -193,11 +194,11 @@ let mo = class zs extends W {
|
|
|
193
194
|
}
|
|
194
195
|
_lookupContainer() {
|
|
195
196
|
let e = this.table.options.popupContainer;
|
|
196
|
-
return typeof e == "string" ? (e = document.querySelector(e),
|
|
197
|
+
return typeof e == "string" ? (e = document.querySelector(e), is && !e && console.warn(
|
|
197
198
|
"Menu Error - no container element found matching selector:",
|
|
198
199
|
this.table.options.popupContainer,
|
|
199
200
|
"(defaulting to document body)"
|
|
200
|
-
)) : e === !0 && (e = this.table.element), e && !(e instanceof HTMLElement) && (e = null), e && !this._checkContainerIsParent(e) && (e = null,
|
|
201
|
+
)) : e === !0 && (e = this.table.element), e && !(e instanceof HTMLElement) && (e = null), e && !this._checkContainerIsParent(e) && (e = null, is && console.warn(
|
|
201
202
|
"Menu Error - container element does not contain this table:",
|
|
202
203
|
this.table.options.popupContainer,
|
|
203
204
|
"(defaulting to document body)"
|
|
@@ -216,15 +217,15 @@ let mo = class zs extends W {
|
|
|
216
217
|
const t = !(e instanceof MouseEvent);
|
|
217
218
|
let i = t ? e.touches[0].pageX : e.pageX, s = t ? e.touches[0].pageY : e.pageY;
|
|
218
219
|
if (this.container !== document.body) {
|
|
219
|
-
const o =
|
|
220
|
+
const o = L.elOffset(this.container);
|
|
220
221
|
i -= o.left, s -= o.top;
|
|
221
222
|
}
|
|
222
223
|
return { x: i, y: s };
|
|
223
224
|
}
|
|
224
225
|
elementPositionCoords(e, t = "right") {
|
|
225
|
-
const i =
|
|
226
|
+
const i = L.elOffset(e);
|
|
226
227
|
let s, o, r;
|
|
227
|
-
switch (this.container !== document.body && (s =
|
|
228
|
+
switch (this.container !== document.body && (s = L.elOffset(this.container), i.left -= s.left, i.top -= s.top), t) {
|
|
228
229
|
case "right":
|
|
229
230
|
o = i.left + e.offsetWidth, r = i.top - 1;
|
|
230
231
|
break;
|
|
@@ -307,10 +308,10 @@ let mo = class zs extends W {
|
|
|
307
308
|
), this.unsubscribe("cell-editing", this.blurEvent), this.blurEventsBound = !1), this.childPopup && this.childPopup.hide(), this.parent && (this.parent.childPopup = null), this.element.parentNode && this.element.parentNode.removeChild(this.element), this.visible = !1, this.blurCallback && !e && this.blurCallback(), this.unsubscribe("table-destroy", this.destroyBinding)), this;
|
|
308
309
|
}
|
|
309
310
|
child(e) {
|
|
310
|
-
return this.childPopup && this.childPopup.hide(), this.childPopup = new
|
|
311
|
+
return this.childPopup && this.childPopup.hide(), this.childPopup = new Fs(this.table, e, this), this.childPopup;
|
|
311
312
|
}
|
|
312
313
|
};
|
|
313
|
-
const
|
|
314
|
+
const wo = process.env.NODE_ENV === "development";
|
|
314
315
|
class S extends W {
|
|
315
316
|
constructor(e) {
|
|
316
317
|
super(e);
|
|
@@ -331,7 +332,7 @@ class S extends W {
|
|
|
331
332
|
*/
|
|
332
333
|
registerTableFunction(e, t) {
|
|
333
334
|
const i = this.table;
|
|
334
|
-
i[e] === void 0 || i[e] === null ? i[e] = (...s) => (this.table.initGuard?.(e), t.apply(this, s)) :
|
|
335
|
+
i[e] === void 0 || i[e] === null ? i[e] = (...s) => (this.table.initGuard?.(e), t.apply(this, s)) : wo && console.warn("Unable to bind table function, name already in use:", e);
|
|
335
336
|
}
|
|
336
337
|
registerComponentFunction(e, t, i) {
|
|
337
338
|
return this.table.componentFunctionBinder.bind(e, t, i);
|
|
@@ -376,7 +377,7 @@ class S extends W {
|
|
|
376
377
|
* Popups Management
|
|
377
378
|
*/
|
|
378
379
|
popup(e, t) {
|
|
379
|
-
return new
|
|
380
|
+
return new bo(this.table, e, t);
|
|
380
381
|
}
|
|
381
382
|
/**
|
|
382
383
|
* Alert Management
|
|
@@ -388,14 +389,14 @@ class S extends W {
|
|
|
388
389
|
this.table.alertManager?.clear();
|
|
389
390
|
}
|
|
390
391
|
}
|
|
391
|
-
const
|
|
392
|
+
const Pi = class Pi extends S {
|
|
392
393
|
constructor(e) {
|
|
393
394
|
super(e), this.registerTableOption("tabulatorRole", "grid"), this.registerTableOption("columnGroupRole", "columngroup"), this.registerTableOption("columnHeaderRole", "columnheader"), this.registerTableOption("rowRole", "row"), this.registerTableOption("rowGroupRole", "rowgroup"), this.registerTableOption("cellRole", "gridcell");
|
|
394
395
|
}
|
|
395
396
|
};
|
|
396
|
-
|
|
397
|
-
let
|
|
398
|
-
const
|
|
397
|
+
Pi.moduleName = "accessibility";
|
|
398
|
+
let Lt = Pi;
|
|
399
|
+
const vo = "tabulator-clickable-cell", yo = 'button, [role="button"], cx-button, cx-menu-item, cx-dropdown', Co = "hoverMenu", ss = "cx-table-row-action-click", Hi = class Hi extends S {
|
|
399
400
|
constructor(e) {
|
|
400
401
|
super(e), this.cellKeyHandlers = /* @__PURE__ */ new WeakMap(), this.registerColumnOption("clickable"), this.registerColumnOption("clickableActionName");
|
|
401
402
|
}
|
|
@@ -412,7 +413,7 @@ const wo = "tabulator-clickable-cell", vo = 'button, [role="button"], cx-button,
|
|
|
412
413
|
if (!e.element)
|
|
413
414
|
return;
|
|
414
415
|
const t = e.element, i = !!e.column.definition.clickable, s = this.cellKeyHandlers.get(t);
|
|
415
|
-
if (s && (t.removeEventListener("keydown", s), this.cellKeyHandlers.delete(t)), t.classList.toggle(
|
|
416
|
+
if (s && (t.removeEventListener("keydown", s), this.cellKeyHandlers.delete(t)), t.classList.toggle(vo, i), !i) {
|
|
416
417
|
t.removeAttribute("tabindex"), t.removeAttribute("role");
|
|
417
418
|
return;
|
|
418
419
|
}
|
|
@@ -452,7 +453,7 @@ const wo = "tabulator-clickable-cell", vo = 'button, [role="button"], cx-button,
|
|
|
452
453
|
s = r;
|
|
453
454
|
break;
|
|
454
455
|
}
|
|
455
|
-
if (r instanceof Element && r.matches(
|
|
456
|
+
if (r instanceof Element && r.matches(yo))
|
|
456
457
|
return;
|
|
457
458
|
}
|
|
458
459
|
if (e.ctrlKey || e.metaKey) {
|
|
@@ -472,11 +473,11 @@ const wo = "tabulator-clickable-cell", vo = 'button, [role="button"], cx-button,
|
|
|
472
473
|
row: e.row.getComponent()
|
|
473
474
|
}, s = this.getCxTableHost();
|
|
474
475
|
if (s) {
|
|
475
|
-
s.emit(
|
|
476
|
+
s.emit(ss, { detail: i });
|
|
476
477
|
return;
|
|
477
478
|
}
|
|
478
479
|
this.table.element.dispatchEvent(
|
|
479
|
-
new CustomEvent(
|
|
480
|
+
new CustomEvent(ss, {
|
|
480
481
|
bubbles: !0,
|
|
481
482
|
composed: !0,
|
|
482
483
|
detail: i
|
|
@@ -491,7 +492,7 @@ const wo = "tabulator-clickable-cell", vo = 'button, [role="button"], cx-button,
|
|
|
491
492
|
return typeof t.emit == "function" ? t : null;
|
|
492
493
|
}
|
|
493
494
|
resolveAction(e, t) {
|
|
494
|
-
const i = this.table.options.hoverMenuField ??
|
|
495
|
+
const i = this.table.options.hoverMenuField ?? Co, s = e.column.definition.hoverMenu;
|
|
495
496
|
if (s)
|
|
496
497
|
return this.pickAction(s, t);
|
|
497
498
|
const o = e.row.getData(), r = Object.hasOwn(
|
|
@@ -505,10 +506,10 @@ const wo = "tabulator-clickable-cell", vo = 'button, [role="button"], cx-button,
|
|
|
505
506
|
return !i || i.length === 0 ? null : t ? i.find((s) => s.name === t) ?? null : i[0] ?? null;
|
|
506
507
|
}
|
|
507
508
|
};
|
|
508
|
-
|
|
509
|
-
let Dt =
|
|
509
|
+
Hi.moduleName = "clickableCell";
|
|
510
|
+
let Dt = Hi;
|
|
510
511
|
var he = /* @__PURE__ */ ((n) => (n.Bottom = "bottom", n.Center = "center", n.Nearest = "nearest", n.Top = "top", n))(he || {}), Z = /* @__PURE__ */ ((n) => (n.All = "all", n.Cell = "cell", n.Column = "column", n.Row = "row", n))(Z || {}), Ue = /* @__PURE__ */ ((n) => (n.Both = "both", n.Copy = "copy", n.Paste = "paste", n))(Ue || {}), Re = /* @__PURE__ */ ((n) => (n.Left = "left", n.Right = "right", n))(Re || {}), de = /* @__PURE__ */ ((n) => (n.Local = "local", n.Remote = "remote", n))(de || {}), $ = /* @__PURE__ */ ((n) => (n.Asc = "asc", n.Desc = "desc", n.None = "none", n))($ || {}), ke = /* @__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))(ke || {});
|
|
511
|
-
const
|
|
512
|
+
const Os = 36, Eo = E`<cx-table-row-actions></cx-table-row-actions>`, Pe = class Pe extends S {
|
|
512
513
|
constructor(e) {
|
|
513
514
|
super(e), this.registerTableOption("hoverMenu", !1), this.registerTableOption("hoverMenuField", "hoverMenu"), this.registerColumnOption("hoverMenu");
|
|
514
515
|
}
|
|
@@ -558,7 +559,7 @@ const Fs = 36, Co = E`<cx-table-row-actions></cx-table-row-actions>`, Pe = class
|
|
|
558
559
|
i && i.classList.remove("tabulator-hover-menu--active");
|
|
559
560
|
}
|
|
560
561
|
createCxTableRowActions() {
|
|
561
|
-
const e = k(
|
|
562
|
+
const e = k(Eo);
|
|
562
563
|
return e.classList.add("tabulator-hover-menu"), e;
|
|
563
564
|
}
|
|
564
565
|
layoutRow(e) {
|
|
@@ -597,13 +598,13 @@ const Fs = 36, Co = E`<cx-table-row-actions></cx-table-row-actions>`, Pe = class
|
|
|
597
598
|
}
|
|
598
599
|
};
|
|
599
600
|
Pe.moduleName = "hoverMenu", Pe.placementDataAttribute = "hoverMenuPlacement";
|
|
600
|
-
let
|
|
601
|
-
const
|
|
601
|
+
let zt = Pe;
|
|
602
|
+
const xo = {
|
|
602
603
|
rownum: function(n, e, t, i, s, o) {
|
|
603
604
|
const r = o?.getPosition();
|
|
604
605
|
return typeof r == "number" ? r : 0;
|
|
605
606
|
}
|
|
606
|
-
},
|
|
607
|
+
}, Ro = process.env.NODE_ENV === "development", He = class He extends S {
|
|
607
608
|
// list of accessor types
|
|
608
609
|
constructor(e) {
|
|
609
610
|
super(e), this.allowedTypes = [
|
|
@@ -641,7 +642,7 @@ const Eo = {
|
|
|
641
642
|
let t = !1;
|
|
642
643
|
switch (typeof e) {
|
|
643
644
|
case "string":
|
|
644
|
-
He.accessors[e] ? t = He.accessors[e] :
|
|
645
|
+
He.accessors[e] ? t = He.accessors[e] : Ro && console.warn(
|
|
645
646
|
"Accessor Error - No such accessor found, ignoring: ",
|
|
646
647
|
e
|
|
647
648
|
);
|
|
@@ -654,7 +655,7 @@ const Eo = {
|
|
|
654
655
|
}
|
|
655
656
|
// apply accessor to row
|
|
656
657
|
transformRow(e, t) {
|
|
657
|
-
const i = "accessor" + (t.charAt(0).toUpperCase() + t.slice(1)), s = e.getComponent(), o =
|
|
658
|
+
const i = "accessor" + (t.charAt(0).toUpperCase() + t.slice(1)), s = e.getComponent(), o = L.deepClone(e.data || {});
|
|
658
659
|
return this.table.columnManager?.traverse((r) => {
|
|
659
660
|
let a, l, h, c;
|
|
660
661
|
const d = r.modules.accessor;
|
|
@@ -678,31 +679,31 @@ const Eo = {
|
|
|
678
679
|
}), o;
|
|
679
680
|
}
|
|
680
681
|
};
|
|
681
|
-
He.moduleName = "accessor", He.accessors =
|
|
682
|
-
let
|
|
683
|
-
const
|
|
682
|
+
He.moduleName = "accessor", He.accessors = xo;
|
|
683
|
+
let Ft = He;
|
|
684
|
+
const So = {
|
|
684
685
|
method: "GET"
|
|
685
686
|
};
|
|
686
|
-
function
|
|
687
|
+
function Ps(n) {
|
|
687
688
|
return n instanceof File || n instanceof Blob;
|
|
688
689
|
}
|
|
689
|
-
function
|
|
690
|
+
function Ot(n, e = "") {
|
|
690
691
|
const t = [];
|
|
691
692
|
if (Array.isArray(n))
|
|
692
693
|
n.forEach((i, s) => {
|
|
693
694
|
t.push(
|
|
694
|
-
...
|
|
695
|
+
...Ot(
|
|
695
696
|
i,
|
|
696
697
|
e ? e + "[" + s + "]" : String(s)
|
|
697
698
|
)
|
|
698
699
|
);
|
|
699
700
|
});
|
|
700
|
-
else if (
|
|
701
|
+
else if (Ps(n))
|
|
701
702
|
t.push({ key: e, value: n });
|
|
702
703
|
else if (typeof n == "object" && n !== null)
|
|
703
704
|
for (const i in n)
|
|
704
705
|
Object.prototype.hasOwnProperty.call(n, i) && t.push(
|
|
705
|
-
...
|
|
706
|
+
...Ot(
|
|
706
707
|
n[i],
|
|
707
708
|
e ? e + "[" + i + "]" : i
|
|
708
709
|
)
|
|
@@ -711,14 +712,14 @@ function Ft(n, e = "") {
|
|
|
711
712
|
t.push({ key: e, value: n });
|
|
712
713
|
return t;
|
|
713
714
|
}
|
|
714
|
-
const
|
|
715
|
+
const To = {
|
|
715
716
|
form: {
|
|
716
717
|
body: function(n, e, t) {
|
|
717
|
-
const i =
|
|
718
|
+
const i = Ot(t), s = new FormData();
|
|
718
719
|
return i.forEach((o) => {
|
|
719
720
|
s.append(
|
|
720
721
|
o.key,
|
|
721
|
-
|
|
722
|
+
Ps(o.value) ? o.value : String(o.value)
|
|
722
723
|
);
|
|
723
724
|
}), s;
|
|
724
725
|
},
|
|
@@ -733,12 +734,12 @@ const So = {
|
|
|
733
734
|
}
|
|
734
735
|
}
|
|
735
736
|
};
|
|
736
|
-
function
|
|
737
|
+
function Pt(n, e = "") {
|
|
737
738
|
const t = [];
|
|
738
739
|
if (Array.isArray(n))
|
|
739
740
|
n.forEach((i, s) => {
|
|
740
741
|
t.push(
|
|
741
|
-
...
|
|
742
|
+
...Pt(
|
|
742
743
|
i,
|
|
743
744
|
e ? e + "[" + s + "]" : String(s)
|
|
744
745
|
)
|
|
@@ -747,7 +748,7 @@ function Ot(n, e = "") {
|
|
|
747
748
|
else if (typeof n == "object" && n !== null)
|
|
748
749
|
for (const i in n)
|
|
749
750
|
Object.prototype.hasOwnProperty.call(n, i) && t.push(
|
|
750
|
-
...
|
|
751
|
+
...Pt(
|
|
751
752
|
n[i],
|
|
752
753
|
e ? e + "[" + i + "]" : i
|
|
753
754
|
)
|
|
@@ -756,18 +757,18 @@ function Ot(n, e = "") {
|
|
|
756
757
|
t.push({ key: e, value: n });
|
|
757
758
|
return t;
|
|
758
759
|
}
|
|
759
|
-
function
|
|
760
|
-
const e =
|
|
760
|
+
function Mo(n) {
|
|
761
|
+
const e = Pt(n), t = [];
|
|
761
762
|
return e.forEach((i) => {
|
|
762
763
|
t.push(
|
|
763
764
|
encodeURIComponent(i.key) + "=" + encodeURIComponent(String(i.value))
|
|
764
765
|
);
|
|
765
766
|
}), t.join("&");
|
|
766
767
|
}
|
|
767
|
-
const
|
|
768
|
+
const Hs = function(n, e, t) {
|
|
768
769
|
if (n && t && Object.keys(t).length && (!e.method || e.method.toLowerCase() === "get")) {
|
|
769
770
|
e.method = "get";
|
|
770
|
-
const [i, s] = n.split("#", 2), o =
|
|
771
|
+
const [i, s] = n.split("#", 2), o = Mo(t);
|
|
771
772
|
n = i + (i.includes("?") ? "&" : "?") + o + (s ? "#" + s : "");
|
|
772
773
|
}
|
|
773
774
|
return n;
|
|
@@ -828,7 +829,7 @@ const Ps = function(n, e, t) {
|
|
|
828
829
|
)), s)) : Promise.reject();
|
|
829
830
|
}
|
|
830
831
|
};
|
|
831
|
-
te.moduleName = "ajax", te.defaultConfig =
|
|
832
|
+
te.moduleName = "ajax", te.defaultConfig = So, te.defaultURLGenerator = Hs, te.contentTypeFormatters = To, te.defaultLoaderPromise = function(e, t, i) {
|
|
832
833
|
let s;
|
|
833
834
|
return new Promise((o, r) => {
|
|
834
835
|
if (!this.urlGenerator) {
|
|
@@ -869,8 +870,8 @@ te.moduleName = "ajax", te.defaultConfig = Ro, te.defaultURLGenerator = Ps, te.c
|
|
|
869
870
|
Ge && console.warn("Ajax Load Error - No URL Set"), o([]);
|
|
870
871
|
});
|
|
871
872
|
};
|
|
872
|
-
let
|
|
873
|
-
function
|
|
873
|
+
let Ht = te;
|
|
874
|
+
function ki(n) {
|
|
874
875
|
const e = [];
|
|
875
876
|
let t = n;
|
|
876
877
|
for (; t; )
|
|
@@ -880,21 +881,21 @@ function Mi(n) {
|
|
|
880
881
|
}), t = t.parent;
|
|
881
882
|
return e;
|
|
882
883
|
}
|
|
883
|
-
function
|
|
884
|
+
function As(n) {
|
|
884
885
|
return JSON.stringify(n);
|
|
885
886
|
}
|
|
886
|
-
function
|
|
887
|
+
function ko(n, e) {
|
|
887
888
|
return n?.[e];
|
|
888
889
|
}
|
|
889
|
-
function
|
|
890
|
-
const e =
|
|
890
|
+
function Lo(n) {
|
|
891
|
+
const e = ki(n);
|
|
891
892
|
return {
|
|
892
893
|
path: e,
|
|
893
|
-
pathKey:
|
|
894
|
+
pathKey: As(e),
|
|
894
895
|
rowCount: n.getRowCount()
|
|
895
896
|
};
|
|
896
897
|
}
|
|
897
|
-
class
|
|
898
|
+
class _s {
|
|
898
899
|
constructor(e) {
|
|
899
900
|
return this._group = e, this.type = "GroupComponent", new Proxy(this, {
|
|
900
901
|
get: function(t, i) {
|
|
@@ -928,7 +929,7 @@ class As {
|
|
|
928
929
|
return this._group.parent ? this._group.parent.getComponent() : !1;
|
|
929
930
|
}
|
|
930
931
|
getPath() {
|
|
931
|
-
return
|
|
932
|
+
return ki(this._group);
|
|
932
933
|
}
|
|
933
934
|
getPathKey() {
|
|
934
935
|
return this._group.getPathKey();
|
|
@@ -961,7 +962,7 @@ class As {
|
|
|
961
962
|
}
|
|
962
963
|
}
|
|
963
964
|
const Do = process.env.NODE_ENV === "development";
|
|
964
|
-
class
|
|
965
|
+
class At {
|
|
965
966
|
constructor(e) {
|
|
966
967
|
return this._column = e, this.type = "ColumnComponent", new Proxy(this, {
|
|
967
968
|
get(t, i) {
|
|
@@ -1061,8 +1062,8 @@ class Ht {
|
|
|
1061
1062
|
return e === !0 ? t = await this._column.reinitializeWidth(!0) : t = this._column.setWidth(e), this._column.table.columnManager?.rerenderColumns(!0), t;
|
|
1062
1063
|
}
|
|
1063
1064
|
}
|
|
1064
|
-
const
|
|
1065
|
-
class
|
|
1065
|
+
const zo = process.env.NODE_ENV === "development";
|
|
1066
|
+
class vt extends W {
|
|
1066
1067
|
// used by row manager to determine how to size the render area ("fit" - fits container to the contents, "fill" - fills the container without resizing it)
|
|
1067
1068
|
constructor(e) {
|
|
1068
1069
|
super(e), this.elementVertical = e.rowManager?.element, this.elementHorizontal = e.columnManager?.element, this.tableElement = e.rowManager?.tableElement, this.verticalFillMode = "fit";
|
|
@@ -1141,8 +1142,8 @@ class wt extends W {
|
|
|
1141
1142
|
return new Promise((s, o) => {
|
|
1142
1143
|
const a = this.rows().indexOf(e), l = e.getElement();
|
|
1143
1144
|
if (a > -1 && l) {
|
|
1144
|
-
if ((i ?? !(this.table.options.scrollToRowIfHidden ?? !1)) &&
|
|
1145
|
-
const p = this.elementVertical ?
|
|
1145
|
+
if ((i ?? !(this.table.options.scrollToRowIfHidden ?? !1)) && L.elVisible(l)) {
|
|
1146
|
+
const p = this.elementVertical ? L.elOffset(l).top - L.elOffset(this.elementVertical).top : 0;
|
|
1146
1147
|
if (p > 0 && p < (this.elementVertical?.clientHeight ?? 0) - l.offsetHeight) {
|
|
1147
1148
|
s();
|
|
1148
1149
|
return;
|
|
@@ -1163,11 +1164,11 @@ class wt extends W {
|
|
|
1163
1164
|
}
|
|
1164
1165
|
s();
|
|
1165
1166
|
} else
|
|
1166
|
-
|
|
1167
|
+
zo && console.warn("Scroll Error - Row not visible"), o("Scroll Error - Row not visible");
|
|
1167
1168
|
});
|
|
1168
1169
|
}
|
|
1169
1170
|
}
|
|
1170
|
-
const
|
|
1171
|
+
const Fo = {
|
|
1171
1172
|
insert: function(n) {
|
|
1172
1173
|
return this.table.addData(n);
|
|
1173
1174
|
},
|
|
@@ -1177,7 +1178,7 @@ const zo = {
|
|
|
1177
1178
|
update: function(n) {
|
|
1178
1179
|
return this.table.updateOrAddData(n);
|
|
1179
1180
|
}
|
|
1180
|
-
},
|
|
1181
|
+
}, Oo = {
|
|
1181
1182
|
table: function(n) {
|
|
1182
1183
|
const e = [];
|
|
1183
1184
|
let t = !0;
|
|
@@ -1199,19 +1200,19 @@ const zo = {
|
|
|
1199
1200
|
}), o.push(l);
|
|
1200
1201
|
}), o) : !1;
|
|
1201
1202
|
}
|
|
1202
|
-
},
|
|
1203
|
+
}, Po = {
|
|
1203
1204
|
copyToClipboard: function(n) {
|
|
1204
1205
|
this.table.modules.edit?.currentCell || this.table.modExists("clipboard", !0) && (n.preventDefault(), this.table.modules.clipboard?.copy(void 0, !0));
|
|
1205
1206
|
}
|
|
1206
|
-
}, Po = {
|
|
1207
|
-
copyToClipboard: ["ctrl + 67", "meta + 67"]
|
|
1208
1207
|
}, Ho = {
|
|
1208
|
+
copyToClipboard: ["ctrl + 67", "meta + 67"]
|
|
1209
|
+
}, Ao = {
|
|
1209
1210
|
keybindings: {
|
|
1210
|
-
actions:
|
|
1211
|
-
bindings:
|
|
1211
|
+
actions: Po,
|
|
1212
|
+
bindings: Ho
|
|
1212
1213
|
}
|
|
1213
|
-
},
|
|
1214
|
-
function
|
|
1214
|
+
}, os = process.env.NODE_ENV === "development";
|
|
1215
|
+
function rs(n) {
|
|
1215
1216
|
const e = globalThis.clipboardData, t = n;
|
|
1216
1217
|
return e ?? n.clipboardData ?? t.originalEvent?.clipboardData ?? void 0;
|
|
1217
1218
|
}
|
|
@@ -1226,8 +1227,8 @@ const fe = class fe extends S {
|
|
|
1226
1227
|
this.rowRange,
|
|
1227
1228
|
"clipboard"
|
|
1228
1229
|
), i = this.table.modules.export?.generateHTMLTable(s), t = i ? this.generatePlainContent(s) : "", this.table.options.clipboardCopyFormatter && typeof this.table.options.clipboardCopyFormatter == "function" && (t = this.table.options.clipboardCopyFormatter("plain", t), i = this.table.options.clipboardCopyFormatter("html", i ?? "")));
|
|
1229
|
-
const o =
|
|
1230
|
-
o?.setData && (o.setData("text/plain", t), i && o.setData("text/html", i),
|
|
1230
|
+
const o = rs(e);
|
|
1231
|
+
o?.setData && (o.setData("text/plain", t), i && o.setData("text/html", i), ro("Copied to clipboard", {
|
|
1231
1232
|
notificationType: "success"
|
|
1232
1233
|
})), this.dispatchExternal("clipboardCopied", t, i), this.reset();
|
|
1233
1234
|
}
|
|
@@ -1258,7 +1259,7 @@ const fe = class fe extends S {
|
|
|
1258
1259
|
const s = [];
|
|
1259
1260
|
i.columns.forEach((o) => {
|
|
1260
1261
|
let r = "";
|
|
1261
|
-
o && (i.type === "group" && (o.value = o.component instanceof
|
|
1262
|
+
o && (i.type === "group" && (o.value = o.component instanceof _s ? o.component.getKey() : ""), typeof o.value == "object" ? r = JSON.stringify(o.value) : o.value != null && (r = String(o.value))), s.push(r);
|
|
1262
1263
|
}), t.push(s.join(" "));
|
|
1263
1264
|
}), t.join(`
|
|
1264
1265
|
`);
|
|
@@ -1278,7 +1279,7 @@ const fe = class fe extends S {
|
|
|
1278
1279
|
switch (typeof e) {
|
|
1279
1280
|
case "string": {
|
|
1280
1281
|
const t = fe.pasteActions[e];
|
|
1281
|
-
t ? this.pasteAction = t :
|
|
1282
|
+
t ? this.pasteAction = t : os && console.warn("Clipboard Error - No such paste action found:", e);
|
|
1282
1283
|
break;
|
|
1283
1284
|
}
|
|
1284
1285
|
case "function":
|
|
@@ -1290,7 +1291,7 @@ const fe = class fe extends S {
|
|
|
1290
1291
|
switch (typeof e) {
|
|
1291
1292
|
case "string": {
|
|
1292
1293
|
const t = fe.pasteParsers[e];
|
|
1293
|
-
t ? this.pasteParser = t :
|
|
1294
|
+
t ? this.pasteParser = t : os && console.warn("Clipboard Error - No such paste parser found:", e);
|
|
1294
1295
|
break;
|
|
1295
1296
|
}
|
|
1296
1297
|
case "function":
|
|
@@ -1322,13 +1323,13 @@ const fe = class fe extends S {
|
|
|
1322
1323
|
}
|
|
1323
1324
|
getPasteData(e) {
|
|
1324
1325
|
let t;
|
|
1325
|
-
const i =
|
|
1326
|
+
const i = rs(e);
|
|
1326
1327
|
return i?.getData && (t = i.getData("text/plain")), t;
|
|
1327
1328
|
}
|
|
1328
1329
|
};
|
|
1329
|
-
fe.moduleName = "clipboard", fe.moduleExtensions =
|
|
1330
|
-
let
|
|
1331
|
-
class
|
|
1330
|
+
fe.moduleName = "clipboard", fe.moduleExtensions = Ao, fe.pasteActions = Fo, fe.pasteParsers = Oo;
|
|
1331
|
+
let _t = fe;
|
|
1332
|
+
class Li {
|
|
1332
1333
|
constructor(e) {
|
|
1333
1334
|
return this._cell = e, new Proxy(this, {
|
|
1334
1335
|
get: function(t, i) {
|
|
@@ -1392,7 +1393,7 @@ class ki {
|
|
|
1392
1393
|
return this._cell;
|
|
1393
1394
|
}
|
|
1394
1395
|
}
|
|
1395
|
-
const
|
|
1396
|
+
const _o = E`<div class="tabulator-cell"></div>`, No = process.env.NODE_ENV === "development";
|
|
1396
1397
|
class Ze extends W {
|
|
1397
1398
|
constructor(e, t) {
|
|
1398
1399
|
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.build();
|
|
@@ -1405,7 +1406,7 @@ class Ze extends W {
|
|
|
1405
1406
|
this.generateElement(), this.setWidth(), this._configureCell(), this.setValueActual(this.column.getFieldValue(this.row.data)), this.initialValue = this.value;
|
|
1406
1407
|
}
|
|
1407
1408
|
generateElement() {
|
|
1408
|
-
if (this.element = k(
|
|
1409
|
+
if (this.element = k(_o), this.element.setAttribute(
|
|
1409
1410
|
"role",
|
|
1410
1411
|
this.table.options.cellRole ?? "gridcell"
|
|
1411
1412
|
), this.column.modules.format?.cellClass) {
|
|
@@ -1458,7 +1459,7 @@ class Ze extends W {
|
|
|
1458
1459
|
this.contentElement.firstChild.remove();
|
|
1459
1460
|
this.contentElement.appendChild(e);
|
|
1460
1461
|
} else
|
|
1461
|
-
this.contentElement.innerHTML = "", e != null &&
|
|
1462
|
+
this.contentElement.innerHTML = "", e != null && No && console.warn(
|
|
1462
1463
|
"Format Error - Formatter has returned a type of object, the only valid formatter object return is an instance of Node, the formatter returned:",
|
|
1463
1464
|
e
|
|
1464
1465
|
);
|
|
@@ -1548,10 +1549,10 @@ class Ze extends W {
|
|
|
1548
1549
|
* Object Generation
|
|
1549
1550
|
*/
|
|
1550
1551
|
getComponent() {
|
|
1551
|
-
return this.component ??= new
|
|
1552
|
+
return this.component ??= new Li(this), this.component;
|
|
1552
1553
|
}
|
|
1553
1554
|
}
|
|
1554
|
-
const
|
|
1555
|
+
const Ns = {
|
|
1555
1556
|
columns: void 0,
|
|
1556
1557
|
cssClass: void 0,
|
|
1557
1558
|
editableTitle: void 0,
|
|
@@ -2040,7 +2041,7 @@ const _s = {
|
|
|
2040
2041
|
* Object Generation
|
|
2041
2042
|
*/
|
|
2042
2043
|
getComponent() {
|
|
2043
|
-
return this.component ??= new
|
|
2044
|
+
return this.component ??= new At(this), this.component;
|
|
2044
2045
|
}
|
|
2045
2046
|
getPosition() {
|
|
2046
2047
|
return (this.table.columnManager?.getVisibleColumnsByIndex().indexOf(this) ?? -1) + 1;
|
|
@@ -2049,7 +2050,7 @@ const _s = {
|
|
|
2049
2050
|
return this.parent instanceof I ? this.parent.getComponent() : !1;
|
|
2050
2051
|
}
|
|
2051
2052
|
};
|
|
2052
|
-
I.defaultOptionList =
|
|
2053
|
+
I.defaultOptionList = Ns;
|
|
2053
2054
|
let q = I;
|
|
2054
2055
|
class Di {
|
|
2055
2056
|
constructor(e) {
|
|
@@ -2125,7 +2126,7 @@ class Di {
|
|
|
2125
2126
|
return e && e.getComponent();
|
|
2126
2127
|
}
|
|
2127
2128
|
}
|
|
2128
|
-
const
|
|
2129
|
+
const ns = process.env.NODE_ENV === "development";
|
|
2129
2130
|
class B extends W {
|
|
2130
2131
|
constructor(e, t, i = "row") {
|
|
2131
2132
|
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);
|
|
@@ -2236,14 +2237,14 @@ class B extends W {
|
|
|
2236
2237
|
}
|
|
2237
2238
|
// update the rows data
|
|
2238
2239
|
updateData(e) {
|
|
2239
|
-
const t = this.element &&
|
|
2240
|
+
const t = this.element && L.elVisible(this.element);
|
|
2240
2241
|
let i = {}, s;
|
|
2241
2242
|
return new Promise((o) => {
|
|
2242
2243
|
if (typeof e == "string")
|
|
2243
2244
|
try {
|
|
2244
2245
|
e = JSON.parse(e);
|
|
2245
2246
|
} catch (r) {
|
|
2246
|
-
|
|
2247
|
+
ns && console.warn(
|
|
2247
2248
|
"Row updateData - invalid JSON string, skipping update",
|
|
2248
2249
|
r
|
|
2249
2250
|
), o();
|
|
@@ -2301,7 +2302,7 @@ class B extends W {
|
|
|
2301
2302
|
}
|
|
2302
2303
|
moveToRow(e, t) {
|
|
2303
2304
|
const i = this.table.rowManager?.findRow(e);
|
|
2304
|
-
i ? (this.table.rowManager?.moveRowActual(this, i, !t), this.table.rowManager?.refreshActiveData("display", !1, !0)) :
|
|
2305
|
+
i ? (this.table.rowManager?.moveRowActual(this, i, !t), this.table.rowManager?.refreshActiveData("display", !1, !0)) : ns && console.warn(`Move Error - No matching row found: ${e}`);
|
|
2305
2306
|
}
|
|
2306
2307
|
// /////////////////// Actions /////////////////////
|
|
2307
2308
|
delete() {
|
|
@@ -2350,7 +2351,7 @@ class B extends W {
|
|
|
2350
2351
|
return this.component || (this.component = new Di(this)), this.component;
|
|
2351
2352
|
}
|
|
2352
2353
|
}
|
|
2353
|
-
class
|
|
2354
|
+
class Vo {
|
|
2354
2355
|
constructor(e) {
|
|
2355
2356
|
return this._row = e, new Proxy(this, {
|
|
2356
2357
|
get: (t, i) => typeof i != "string" || typeof t[i] < "u" ? t[i] : t._row.table.componentFunctionBinder.handle(
|
|
@@ -2383,7 +2384,7 @@ class No {
|
|
|
2383
2384
|
return this._row;
|
|
2384
2385
|
}
|
|
2385
2386
|
}
|
|
2386
|
-
const
|
|
2387
|
+
const Io = {
|
|
2387
2388
|
avg: function(n, e, t) {
|
|
2388
2389
|
let i = 0;
|
|
2389
2390
|
const s = typeof t == "object" && "precision" in t ? t.precision : 2;
|
|
@@ -2435,7 +2436,7 @@ const Vo = {
|
|
|
2435
2436
|
unique: function(n, e, t) {
|
|
2436
2437
|
return n.filter((s, o) => !(s == null || typeof s == "string" && s.trim() === "") && n.indexOf(s) === o).length;
|
|
2437
2438
|
}
|
|
2438
|
-
},
|
|
2439
|
+
}, as = process.env.NODE_ENV === "development", ge = class ge extends S {
|
|
2439
2440
|
constructor(e) {
|
|
2440
2441
|
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");
|
|
2441
2442
|
}
|
|
@@ -2497,7 +2498,7 @@ const Vo = {
|
|
|
2497
2498
|
if (t.topCalc) {
|
|
2498
2499
|
switch (typeof t.topCalc) {
|
|
2499
2500
|
case "string":
|
|
2500
|
-
ge.calculations[t.topCalc] ? i.topCalc = ge.calculations[t.topCalc] :
|
|
2501
|
+
ge.calculations[t.topCalc] ? i.topCalc = ge.calculations[t.topCalc] : as && console.warn(
|
|
2501
2502
|
"Column Calc Error - No such calculation found, ignoring: ",
|
|
2502
2503
|
t.topCalc
|
|
2503
2504
|
);
|
|
@@ -2511,7 +2512,7 @@ const Vo = {
|
|
|
2511
2512
|
if (t.bottomCalc) {
|
|
2512
2513
|
switch (typeof t.bottomCalc) {
|
|
2513
2514
|
case "string":
|
|
2514
|
-
ge.calculations[t.bottomCalc] ? i.botCalc = ge.calculations[t.bottomCalc] :
|
|
2515
|
+
ge.calculations[t.bottomCalc] ? i.botCalc = ge.calculations[t.bottomCalc] : as && console.warn(
|
|
2515
2516
|
"Column Calc Error - No such calculation found, ignoring: ",
|
|
2516
2517
|
t.bottomCalc
|
|
2517
2518
|
);
|
|
@@ -2603,7 +2604,7 @@ const Vo = {
|
|
|
2603
2604
|
const i = this.generateRowData(e, t);
|
|
2604
2605
|
this.table.modExists("mutator") && this.table.modules.mutator?.disable();
|
|
2605
2606
|
const s = new B(i, this, "calc");
|
|
2606
|
-
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
|
|
2607
|
+
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 Vo(s)), s.component), s.generateCells = () => {
|
|
2607
2608
|
const o = [];
|
|
2608
2609
|
this.table.columnManager?.columnsByIndex.forEach((r) => {
|
|
2609
2610
|
if (this.genColumn) {
|
|
@@ -2675,9 +2676,9 @@ const Vo = {
|
|
|
2675
2676
|
this.botRow && (this.table.rtl ? this.botElement.style.paddingLeft = e + "px" : this.botElement.style.paddingRight = e + "px");
|
|
2676
2677
|
}
|
|
2677
2678
|
};
|
|
2678
|
-
ge.moduleName = "columnCalcs", ge.calculations =
|
|
2679
|
-
let
|
|
2680
|
-
class
|
|
2679
|
+
ge.moduleName = "columnCalcs", ge.calculations = Io;
|
|
2680
|
+
let Nt = ge;
|
|
2681
|
+
class Vt extends B {
|
|
2681
2682
|
constructor(e = {}, t) {
|
|
2682
2683
|
super(e, t), this.type = "placeholder", this.height = 0, this.outerHeight = 0, this.initialized = !1, this.modules = {}, this.cells = [];
|
|
2683
2684
|
}
|
|
@@ -2724,9 +2725,9 @@ class Nt extends B {
|
|
|
2724
2725
|
this.element?.parentNode && this.element.parentNode.removeChild(this.element);
|
|
2725
2726
|
}
|
|
2726
2727
|
}
|
|
2727
|
-
const
|
|
2728
|
+
const Bo = E`<span class="tabulator-data-tree-control" tabindex="0"><cx-icon-button name="keyboard_arrow_down"></cx-icon-button></span>`, Wo = E`<span class="tabulator-data-tree-control" tabindex="0"><cx-icon-button name="keyboard_arrow_right"></cx-icon-button></span>`, Go = E`<span class="tabulator-data-tree-control tabulator-data-tree-control-placeholder" aria-hidden="true"></span>`, jo = E`<div class="tabulator-data-tree-branch"></div>`, $o = E`<div class="tabulator-data-tree-branch-empty"></div>`, Uo = E`<cx-button size="small"><cx-icon slot="prefix" name="add" variant="outlined"></cx-icon>
|
|
2728
2729
|
Load More
|
|
2729
|
-
</cx-button>`,
|
|
2730
|
+
</cx-button>`, Ko = E`<div class="tabulator-data-tree-loading">Loading...</div>`, Xo = process.env.NODE_ENV === "development", Ai = class Ai extends S {
|
|
2730
2731
|
constructor(e) {
|
|
2731
2732
|
super(e), this.indent = 10, this.field = "", this.collapseEl = null, this.expandEl = null, this.branchEl = null, this.elementField = !1, this.startOpen = function() {
|
|
2732
2733
|
return !1;
|
|
@@ -2764,9 +2765,9 @@ const Io = E`<span class="tabulator-data-tree-control" tabindex="0"><cx-icon-but
|
|
|
2764
2765
|
if (this.table.options.dataTree) {
|
|
2765
2766
|
let e = null;
|
|
2766
2767
|
const t = this.table.options;
|
|
2767
|
-
switch (this.field = t.dataTreeChildField || "_children", this.indent = t.dataTreeChildIndent || 9, this.loadingField = t.dataTreeLoadingField || "loading", this.hasMoreField = t.dataTreeHasMoreField || "hasMore", this.options("movableRows") &&
|
|
2768
|
+
switch (this.field = t.dataTreeChildField || "_children", this.indent = t.dataTreeChildIndent || 9, this.loadingField = t.dataTreeLoadingField || "loading", this.hasMoreField = t.dataTreeHasMoreField || "hasMore", this.options("movableRows") && Xo && console.warn(
|
|
2768
2769
|
"The movableRows option is not available with dataTree enabled, moving of child rows could result in unpredictable behavior"
|
|
2769
|
-
), t.dataTreeBranchElement ? t.dataTreeBranchElement === !0 ? this.branchEl = k(
|
|
2770
|
+
), t.dataTreeBranchElement ? t.dataTreeBranchElement === !0 ? this.branchEl = k(jo) : typeof t.dataTreeBranchElement == "string" ? (e = document.createElement("div"), e.innerHTML = T(t.dataTreeBranchElement), this.branchEl = e.firstChild) : this.branchEl = t.dataTreeBranchElement : this.branchEl = k($o), t.dataTreeCollapseElement ? typeof t.dataTreeCollapseElement == "string" ? (e = document.createElement("div"), e.innerHTML = T(t.dataTreeCollapseElement), this.collapseEl = e.firstChild) : this.collapseEl = t.dataTreeCollapseElement : this.collapseEl = k(Bo), t.dataTreeExpandElement ? typeof t.dataTreeExpandElement == "string" ? (e = document.createElement("div"), e.innerHTML = T(t.dataTreeExpandElement), this.expandEl = e.firstChild) : this.expandEl = t.dataTreeExpandElement : this.expandEl = k(Wo), typeof t.dataTreeStartExpanded) {
|
|
2770
2771
|
case "boolean":
|
|
2771
2772
|
this.startOpen = function() {
|
|
2772
2773
|
return t.dataTreeStartExpanded;
|
|
@@ -2866,7 +2867,7 @@ const Io = E`<span class="tabulator-data-tree-control" tabindex="0"><cx-icon-but
|
|
|
2866
2867
|
r.stopPropagation();
|
|
2867
2868
|
});
|
|
2868
2869
|
} else
|
|
2869
|
-
o = k(
|
|
2870
|
+
o = k(Go);
|
|
2870
2871
|
o.style.setProperty("margin-inline-end", `${this.indent}px`), o.style.setProperty("margin-inline-start", "0px"), e.modules.dataTree.controlEl = o, s && s.parentNode === t ? s.parentNode.replaceChild(o, s) : t.insertBefore(o, t.firstChild);
|
|
2871
2872
|
}
|
|
2872
2873
|
}
|
|
@@ -2921,14 +2922,14 @@ const Io = E`<span class="tabulator-data-tree-control" tabindex="0"><cx-icon-but
|
|
|
2921
2922
|
childLevel: e,
|
|
2922
2923
|
parentRow: t
|
|
2923
2924
|
}) {
|
|
2924
|
-
const i = new
|
|
2925
|
+
const i = new Vt(
|
|
2925
2926
|
{
|
|
2926
2927
|
id: "load-more"
|
|
2927
2928
|
},
|
|
2928
2929
|
this.table.rowManager
|
|
2929
2930
|
);
|
|
2930
2931
|
i.create(), i.modules.dataTree.index = e, i.modules.dataTree.parent = t, i.modules.dataTree.children = !1, i.modules.dataTree.open = !0;
|
|
2931
|
-
const s = k(
|
|
2932
|
+
const s = k(Uo);
|
|
2932
2933
|
return i.getElement()?.classList.add("tabulator-tree-level-" + e), i.element.appendChild(s), s.style.setProperty(
|
|
2933
2934
|
"--tabulator-tree-level",
|
|
2934
2935
|
String(e + 1)
|
|
@@ -2950,14 +2951,14 @@ const Io = E`<span class="tabulator-data-tree-control" tabindex="0"><cx-icon-but
|
|
|
2950
2951
|
childLevel: e,
|
|
2951
2952
|
parentRow: t
|
|
2952
2953
|
}) {
|
|
2953
|
-
const i = new
|
|
2954
|
+
const i = new Vt(
|
|
2954
2955
|
{
|
|
2955
2956
|
id: "loading"
|
|
2956
2957
|
},
|
|
2957
2958
|
this.table.rowManager
|
|
2958
2959
|
);
|
|
2959
2960
|
i.create(), i.modules.dataTree.index = e, i.modules.dataTree.parent = t, i.modules.dataTree.children = !1, i.modules.dataTree.open = !0;
|
|
2960
|
-
const s = k(
|
|
2961
|
+
const s = k(Ko);
|
|
2961
2962
|
return i.element.appendChild(s), i.getElement()?.classList.add("tabulator-tree-level-" + e), s.style.setProperty(
|
|
2962
2963
|
"--tabulator-tree-level",
|
|
2963
2964
|
String(e + 1)
|
|
@@ -3110,20 +3111,20 @@ const Io = E`<span class="tabulator-data-tree-control" tabindex="0"><cx-icon-but
|
|
|
3110
3111
|
return (this.field ? e[this.field] !== void 0 && e[this.field] !== null : !1) || (this.elementField ? e[this.elementField] !== void 0 && e[this.elementField] !== null : !1) || (this.loadingField ? e[this.loadingField] !== void 0 && e[this.loadingField] !== null : !1) || (this.hasMoreField ? e[this.hasMoreField] !== void 0 && e[this.hasMoreField] !== null : !1);
|
|
3111
3112
|
}
|
|
3112
3113
|
};
|
|
3113
|
-
|
|
3114
|
-
let
|
|
3115
|
-
const
|
|
3114
|
+
Ai.moduleName = "dataTree";
|
|
3115
|
+
let It = Ai;
|
|
3116
|
+
const ls = process.env.NODE_ENV === "development", Jo = function(n, e = {}, t) {
|
|
3116
3117
|
const i = e.delimiter ? e.delimiter : ",", s = [], o = [];
|
|
3117
3118
|
n.forEach((a) => {
|
|
3118
3119
|
const l = [];
|
|
3119
3120
|
switch (a.type) {
|
|
3120
3121
|
case "group":
|
|
3121
|
-
|
|
3122
|
+
ls && console.warn(
|
|
3122
3123
|
"Download Warning - CSV downloader cannot process row groups"
|
|
3123
3124
|
);
|
|
3124
3125
|
break;
|
|
3125
3126
|
case "calc":
|
|
3126
|
-
|
|
3127
|
+
ls && console.warn(
|
|
3127
3128
|
"Download Warning - CSV downloader cannot process column calculations"
|
|
3128
3129
|
);
|
|
3129
3130
|
break;
|
|
@@ -3153,11 +3154,11 @@ const as = process.env.NODE_ENV === "development", Xo = function(n, e = {}, t) {
|
|
|
3153
3154
|
let r = s.join(`
|
|
3154
3155
|
`);
|
|
3155
3156
|
e.bom && (r = "\uFEFF" + r), t(r, "text/csv");
|
|
3156
|
-
},
|
|
3157
|
+
}, qo = function(n, e, t) {
|
|
3157
3158
|
const i = this;
|
|
3158
3159
|
let s = "";
|
|
3159
3160
|
i.modExists("export", !0) && (s = i.modules.export?.generateHTMLTable(n) || ""), t(s, "text/html");
|
|
3160
|
-
},
|
|
3161
|
+
}, hs = process.env.NODE_ENV === "development", Yo = function(n, e, t) {
|
|
3161
3162
|
const i = [];
|
|
3162
3163
|
n.forEach((o) => {
|
|
3163
3164
|
const r = {};
|
|
@@ -3165,12 +3166,12 @@ const as = process.env.NODE_ENV === "development", Xo = function(n, e = {}, t) {
|
|
|
3165
3166
|
case "header":
|
|
3166
3167
|
break;
|
|
3167
3168
|
case "group":
|
|
3168
|
-
|
|
3169
|
+
hs && console.warn(
|
|
3169
3170
|
"Download Warning - JSON downloader cannot process row groups"
|
|
3170
3171
|
);
|
|
3171
3172
|
break;
|
|
3172
3173
|
case "calc":
|
|
3173
|
-
|
|
3174
|
+
hs && console.warn(
|
|
3174
3175
|
"Download Warning - JSON downloader cannot process column calculations"
|
|
3175
3176
|
);
|
|
3176
3177
|
break;
|
|
@@ -3183,7 +3184,7 @@ const as = process.env.NODE_ENV === "development", Xo = function(n, e = {}, t) {
|
|
|
3183
3184
|
});
|
|
3184
3185
|
const s = JSON.stringify(i, null, " ");
|
|
3185
3186
|
t(s, "application/json");
|
|
3186
|
-
},
|
|
3187
|
+
}, cs = process.env.NODE_ENV === "development", Qo = function(n, e, t) {
|
|
3187
3188
|
const i = [];
|
|
3188
3189
|
n.forEach((s) => {
|
|
3189
3190
|
const o = {};
|
|
@@ -3191,12 +3192,12 @@ const as = process.env.NODE_ENV === "development", Xo = function(n, e = {}, t) {
|
|
|
3191
3192
|
case "header":
|
|
3192
3193
|
break;
|
|
3193
3194
|
case "group":
|
|
3194
|
-
|
|
3195
|
+
cs && console.warn(
|
|
3195
3196
|
"Download Warning - JSON downloader cannot process row groups"
|
|
3196
3197
|
);
|
|
3197
3198
|
break;
|
|
3198
3199
|
case "calc":
|
|
3199
|
-
|
|
3200
|
+
cs && console.warn(
|
|
3200
3201
|
"Download Warning - JSON downloader cannot process column calculations"
|
|
3201
3202
|
);
|
|
3202
3203
|
break;
|
|
@@ -3208,7 +3209,7 @@ const as = process.env.NODE_ENV === "development", Xo = function(n, e = {}, t) {
|
|
|
3208
3209
|
}
|
|
3209
3210
|
}), t(i.join(`
|
|
3210
3211
|
`), "application/x-ndjson");
|
|
3211
|
-
},
|
|
3212
|
+
}, Zo = process.env.NODE_ENV === "development", er = function(n, e = {}, t) {
|
|
3212
3213
|
const i = this, s = [], o = [];
|
|
3213
3214
|
let r = {};
|
|
3214
3215
|
const a = e.rowGroupStyles || {
|
|
@@ -3263,7 +3264,7 @@ const as = process.env.NODE_ENV === "development", Xo = function(n, e = {}, t) {
|
|
|
3263
3264
|
});
|
|
3264
3265
|
const p = i.dependencyRegistry.lookup("jspdf", "jsPDF");
|
|
3265
3266
|
if (!p) {
|
|
3266
|
-
|
|
3267
|
+
Zo && console.error(
|
|
3267
3268
|
"Download Error - 'pdf' downloader requires jspdf library to be registered"
|
|
3268
3269
|
);
|
|
3269
3270
|
return;
|
|
@@ -3272,10 +3273,10 @@ const as = process.env.NODE_ENV === "development", Xo = function(n, e = {}, t) {
|
|
|
3272
3273
|
e.autoTable && (typeof e.autoTable == "function" ? r = e.autoTable(u) || {} : r = e.autoTable), c && (r.didDrawPage = function(f) {
|
|
3273
3274
|
u.text(c, 40, 30);
|
|
3274
3275
|
}), r.head = s, r.body = o, u.autoTable(r), e.documentProcessing && e.documentProcessing(u), t(u.output("arraybuffer"), "application/pdf");
|
|
3275
|
-
},
|
|
3276
|
+
}, tr = process.env.NODE_ENV === "development", ir = function(n, e, t) {
|
|
3276
3277
|
const i = this, s = e.sheetName || "Sheet1", o = i.dependencyRegistry.lookup("XLSX");
|
|
3277
3278
|
if (!o?.utils?.book_new) {
|
|
3278
|
-
|
|
3279
|
+
tr && console.error(
|
|
3279
3280
|
"Download Error - 'xlsx' downloader requires XLSX library to be registered"
|
|
3280
3281
|
);
|
|
3281
3282
|
return;
|
|
@@ -3336,14 +3337,14 @@ const as = process.env.NODE_ENV === "development", Xo = function(n, e = {}, t) {
|
|
|
3336
3337
|
}
|
|
3337
3338
|
const u = o.write(r, h);
|
|
3338
3339
|
t(p(u), "application/octet-stream");
|
|
3339
|
-
},
|
|
3340
|
-
csv:
|
|
3341
|
-
html:
|
|
3342
|
-
json:
|
|
3343
|
-
jsonLines:
|
|
3344
|
-
pdf:
|
|
3345
|
-
xlsx:
|
|
3346
|
-
},
|
|
3340
|
+
}, sr = {
|
|
3341
|
+
csv: Jo,
|
|
3342
|
+
html: qo,
|
|
3343
|
+
json: Yo,
|
|
3344
|
+
jsonLines: Qo,
|
|
3345
|
+
pdf: er,
|
|
3346
|
+
xlsx: ir
|
|
3347
|
+
}, or = process.env.NODE_ENV === "development", Ae = class Ae extends S {
|
|
3347
3348
|
constructor(e) {
|
|
3348
3349
|
super(e), this.registerTableOption(
|
|
3349
3350
|
"downloadEncoder",
|
|
@@ -3370,7 +3371,7 @@ const as = process.env.NODE_ENV === "development", Xo = function(n, e = {}, t) {
|
|
|
3370
3371
|
const a = (l, h) => {
|
|
3371
3372
|
o ? o === !0 ? this.triggerDownload(l, h, e, t, !0) : o(l) : this.triggerDownload(l, h, e, t);
|
|
3372
3373
|
};
|
|
3373
|
-
if (typeof e == "function" ? r = e : Ae.downloaders[e] ? r = Ae.downloaders[e] :
|
|
3374
|
+
if (typeof e == "function" ? r = e : Ae.downloaders[e] ? r = Ae.downloaders[e] : or && console.warn("Download Error - No such download type found: ", e), r) {
|
|
3374
3375
|
const l = this.generateExportList(s);
|
|
3375
3376
|
r.call(this.table, l, i || {}, a.bind(this));
|
|
3376
3377
|
}
|
|
@@ -3420,9 +3421,9 @@ const as = process.env.NODE_ENV === "development", Xo = function(n, e = {}, t) {
|
|
|
3420
3421
|
}
|
|
3421
3422
|
}
|
|
3422
3423
|
};
|
|
3423
|
-
Ae.moduleName = "download", Ae.downloaders =
|
|
3424
|
-
let
|
|
3425
|
-
const
|
|
3424
|
+
Ae.moduleName = "download", Ae.downloaders = sr;
|
|
3425
|
+
let Bt = Ae;
|
|
3426
|
+
const rr = function(n, e, t, i, s = {}) {
|
|
3426
3427
|
const o = this, r = n._getSelf().column;
|
|
3427
3428
|
let a;
|
|
3428
3429
|
function l(d) {
|
|
@@ -3456,7 +3457,7 @@ const or = function(n, e, t, i, s = {}) {
|
|
|
3456
3457
|
i,
|
|
3457
3458
|
a || {}
|
|
3458
3459
|
) : !1;
|
|
3459
|
-
},
|
|
3460
|
+
}, nr = process.env.NODE_ENV === "development", ar = function(n, e, t, i, s) {
|
|
3460
3461
|
const o = s.format, r = s.verticalNavigation || "editor", a = typeof globalThis.window > "u" ? globalThis : window, l = o ? a.DateTime || a.luxon?.DateTime : null;
|
|
3461
3462
|
let h = n.getValue();
|
|
3462
3463
|
const c = document.createElement("input");
|
|
@@ -3489,7 +3490,7 @@ const or = function(n, e, t, i, s = {}) {
|
|
|
3489
3490
|
);
|
|
3490
3491
|
} else
|
|
3491
3492
|
c.setAttribute(f, s.elementAttributes[f]);
|
|
3492
|
-
h = h ?? "", o && (l ? h = p(h) :
|
|
3493
|
+
h = h ?? "", o && (l ? h = p(h) : nr && console.error(
|
|
3493
3494
|
"Editor Error - 'date' editor 'format' param is dependent on luxon.js"
|
|
3494
3495
|
)), c.value = String(h), e(() => {
|
|
3495
3496
|
n.getType() === "cell" && (c.focus({ preventScroll: !0 }), c.style.height = "100%", s.selectContents && c.select());
|
|
@@ -3536,7 +3537,7 @@ const or = function(n, e, t, i, s = {}) {
|
|
|
3536
3537
|
break;
|
|
3537
3538
|
}
|
|
3538
3539
|
}), c;
|
|
3539
|
-
},
|
|
3540
|
+
}, lr = process.env.NODE_ENV === "development", hr = function(n, e, t, i, s) {
|
|
3540
3541
|
const o = this, r = s.format, a = s.verticalNavigation || "editor", l = r ? o.table.dependencyRegistry.lookup(["luxon", "DateTime"], "DateTime") : null;
|
|
3541
3542
|
let h, c = n.getValue();
|
|
3542
3543
|
const d = document.createElement("input");
|
|
@@ -3550,7 +3551,7 @@ const or = function(n, e, t, i, s = {}) {
|
|
|
3550
3551
|
);
|
|
3551
3552
|
} else
|
|
3552
3553
|
d.setAttribute(u, s.elementAttributes[u]);
|
|
3553
|
-
c = c ?? "", r && l ? (l.isDateTime?.(c) ? h = c : r === "iso" ? h = l.fromISO(String(c)) : h = l.fromFormat(String(c), r), c = h.toFormat("yyyy-MM-dd") + "T" + h.toFormat("HH:mm")) : r && !l &&
|
|
3554
|
+
c = c ?? "", r && l ? (l.isDateTime?.(c) ? h = c : r === "iso" ? h = l.fromISO(String(c)) : h = l.fromFormat(String(c), r), c = h.toFormat("yyyy-MM-dd") + "T" + h.toFormat("HH:mm")) : r && !l && lr && console.error(
|
|
3554
3555
|
"Editor Error - 'datetime' editor 'format' param is dependent on luxon.js"
|
|
3555
3556
|
), d.value = String(c), e(() => {
|
|
3556
3557
|
n.getType() === "cell" && (d.focus({ preventScroll: !0 }), d.style.height = "100%", s.selectContents && d.select());
|
|
@@ -3596,7 +3597,7 @@ const or = function(n, e, t, i, s = {}) {
|
|
|
3596
3597
|
}
|
|
3597
3598
|
}), d;
|
|
3598
3599
|
};
|
|
3599
|
-
function
|
|
3600
|
+
function zi(n, e) {
|
|
3600
3601
|
const t = e.mask, i = typeof e.maskLetterChar < "u" ? e.maskLetterChar : "A", s = typeof e.maskNumberChar < "u" ? e.maskNumberChar : "9", o = typeof e.maskWildcardChar < "u" ? e.maskWildcardChar : "*";
|
|
3601
3602
|
function r(a) {
|
|
3602
3603
|
const l = t[a];
|
|
@@ -3634,7 +3635,7 @@ function Li(n, e) {
|
|
|
3634
3635
|
(a.keyCode || 0) > 46 && e.maskAutoFill && r(n.value.length);
|
|
3635
3636
|
}), n.placeholder || (n.placeholder = t), e.maskAutoFill && r(n.value.length);
|
|
3636
3637
|
}
|
|
3637
|
-
const
|
|
3638
|
+
const cr = function(n, e, t, i, s) {
|
|
3638
3639
|
let o = n.getValue();
|
|
3639
3640
|
const r = document.createElement("input");
|
|
3640
3641
|
if (r.setAttribute(
|
|
@@ -3670,19 +3671,19 @@ const hr = function(n, e, t, i, s) {
|
|
|
3670
3671
|
l.stopPropagation();
|
|
3671
3672
|
break;
|
|
3672
3673
|
}
|
|
3673
|
-
}), s.mask &&
|
|
3674
|
-
},
|
|
3675
|
-
let
|
|
3676
|
-
function
|
|
3677
|
-
|
|
3674
|
+
}), s.mask && zi(r, s), r;
|
|
3675
|
+
}, dr = process.env.NODE_ENV === "development";
|
|
3676
|
+
let Vs = null;
|
|
3677
|
+
function ur(n) {
|
|
3678
|
+
Vs = n;
|
|
3678
3679
|
}
|
|
3679
|
-
const
|
|
3680
|
+
const pr = {
|
|
3680
3681
|
/**
|
|
3681
3682
|
* @param explicitRegistry - When provided, that map is used. When omitted, uses the registry set
|
|
3682
3683
|
* by {@link setDefaultFormattersRegistry}
|
|
3683
3684
|
*/
|
|
3684
3685
|
lookupFormatter(n, e) {
|
|
3685
|
-
const t = e ??
|
|
3686
|
+
const t = e ?? Vs;
|
|
3686
3687
|
if (!t)
|
|
3687
3688
|
throw new Error(
|
|
3688
3689
|
"defaultFormatterRegistry is not initialized; ensure ./defaults/formatters has finished loading."
|
|
@@ -3690,7 +3691,7 @@ const ur = {
|
|
|
3690
3691
|
let i;
|
|
3691
3692
|
switch (typeof n) {
|
|
3692
3693
|
case "string":
|
|
3693
|
-
t[n] ? i = t[n] : (
|
|
3694
|
+
t[n] ? i = t[n] : (dr && console.warn("Formatter Error - No such formatter found: ", n), i = t.plaintext);
|
|
3694
3695
|
break;
|
|
3695
3696
|
case "function":
|
|
3696
3697
|
i = n;
|
|
@@ -3702,10 +3703,10 @@ const ur = {
|
|
|
3702
3703
|
return i;
|
|
3703
3704
|
}
|
|
3704
3705
|
};
|
|
3705
|
-
function
|
|
3706
|
-
return
|
|
3706
|
+
function yt(n, e) {
|
|
3707
|
+
return pr.lookupFormatter(n, e);
|
|
3707
3708
|
}
|
|
3708
|
-
function
|
|
3709
|
+
function fr(n, e = {}, t) {
|
|
3709
3710
|
let i;
|
|
3710
3711
|
function s(a) {
|
|
3711
3712
|
const l = a.getValue();
|
|
@@ -3722,44 +3723,44 @@ function pr(n, e = {}, t) {
|
|
|
3722
3723
|
return h;
|
|
3723
3724
|
}
|
|
3724
3725
|
const o = e.formatterLookup ? e.formatterLookup(n) : s(n);
|
|
3725
|
-
return e.paramsLookup && (i = typeof e.paramsLookup == "function" ? e.paramsLookup(o, n) : e.paramsLookup[o]),
|
|
3726
|
+
return e.paramsLookup && (i = typeof e.paramsLookup == "function" ? e.paramsLookup(o, n) : e.paramsLookup[o]), yt(o).call(this, n, i || {}, t);
|
|
3726
3727
|
}
|
|
3727
|
-
function
|
|
3728
|
+
function gr(n, e, t) {
|
|
3728
3729
|
const i = e.delimiter ?? ",";
|
|
3729
3730
|
let s = n.getValue();
|
|
3730
3731
|
const o = this.table;
|
|
3731
3732
|
let r;
|
|
3732
3733
|
return e.valueMap && (typeof e.valueMap == "string" ? r = function(a) {
|
|
3733
|
-
return a.map((l) =>
|
|
3734
|
+
return a.map((l) => L.retrieveNestedData(
|
|
3734
3735
|
o.options.nestedFieldSeparator,
|
|
3735
3736
|
e.valueMap,
|
|
3736
3737
|
l
|
|
3737
3738
|
));
|
|
3738
3739
|
} : r = e.valueMap), Array.isArray(s) ? (r && (s = r(s)), s.join(i)) : s;
|
|
3739
3740
|
}
|
|
3740
|
-
function
|
|
3741
|
+
function mr(n, e, t) {
|
|
3741
3742
|
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>';
|
|
3742
3743
|
}
|
|
3743
|
-
function
|
|
3744
|
+
function br(n, e, t) {
|
|
3744
3745
|
return '<svg enable-background="new 0 0 24 24" height="14" width="14" viewBox="0 0 24 24" xml:space="preserve" ><path fill="#2DC214" clip-rule="evenodd" d="M21.652,3.211c-0.293-0.295-0.77-0.295-1.061,0L9.41,14.34 c-0.293,0.297-0.771,0.297-1.062,0L3.449,9.351C3.304,9.203,3.114,9.13,2.923,9.129C2.73,9.128,2.534,9.201,2.387,9.351 l-2.165,1.946C0.078,11.445,0,11.63,0,11.823c0,0.194,0.078,0.397,0.223,0.544l4.94,5.184c0.292,0.296,0.771,0.776,1.062,1.07 l2.124,2.141c0.292,0.293,0.769,0.293,1.062,0l14.366-14.34c0.293-0.294,0.293-0.777,0-1.071L21.652,3.211z" fill-rule="evenodd"/></svg>';
|
|
3745
3746
|
}
|
|
3746
|
-
function
|
|
3747
|
+
function wr(n, e, t) {
|
|
3747
3748
|
const i = n.getContentElement?.() ?? n.getElement(), s = n.getValue();
|
|
3748
|
-
return i && (
|
|
3749
|
+
return i && (vr(s) ? i.style.backgroundColor = s : i.style.backgroundColor = ""), "";
|
|
3749
3750
|
}
|
|
3750
|
-
function
|
|
3751
|
+
function vr(n) {
|
|
3751
3752
|
return !n || typeof n != "string" ? !1 : /^(#[0-9A-Fa-f]{3,8}|rgb\(|rgba\(|hsl\(|hsla\(|[a-z]+)$/i.test(n.trim());
|
|
3752
3753
|
}
|
|
3753
|
-
const
|
|
3754
|
-
function
|
|
3754
|
+
const yr = E`<span style="display: inline-flex; align-items: center;"></span>`;
|
|
3755
|
+
function Cr({
|
|
3755
3756
|
spacing: n,
|
|
3756
3757
|
style: e
|
|
3757
3758
|
}) {
|
|
3758
|
-
const t = k(
|
|
3759
|
+
const t = k(yr);
|
|
3759
3760
|
return n && (t.style.margin = n), e && Object.assign(t.style, e), t;
|
|
3760
3761
|
}
|
|
3761
|
-
function
|
|
3762
|
-
const i =
|
|
3762
|
+
function Er(n, e, t) {
|
|
3763
|
+
const i = yt("plaintext"), s = {
|
|
3763
3764
|
style: {
|
|
3764
3765
|
color: "var(--cx-color-neutral-500)",
|
|
3765
3766
|
...e.placeholderStyle
|
|
@@ -3782,41 +3783,41 @@ function Cr(n, e, t) {
|
|
|
3782
3783
|
r
|
|
3783
3784
|
);
|
|
3784
3785
|
}
|
|
3785
|
-
function
|
|
3786
|
+
function ds({
|
|
3786
3787
|
elementConfig: n,
|
|
3787
3788
|
elementValue: e,
|
|
3788
3789
|
rowData: t
|
|
3789
3790
|
}) {
|
|
3790
3791
|
return !!(n.shouldHide?.(e, t) || n.hideValues !== void 0 && (Array.isArray(n.hideValues) ? n.hideValues : [n.hideValues]).includes(e) || n.shouldShow && !n.shouldShow(e, t) || n.showValues !== void 0 && !(Array.isArray(n.showValues) ? n.showValues : [n.showValues]).includes(e));
|
|
3791
3792
|
}
|
|
3792
|
-
function
|
|
3793
|
+
function us(n) {
|
|
3793
3794
|
return n == null || n === "";
|
|
3794
3795
|
}
|
|
3795
|
-
function
|
|
3796
|
+
function ps({
|
|
3796
3797
|
cell: n,
|
|
3797
3798
|
elementConfig: e,
|
|
3798
3799
|
rowData: t,
|
|
3799
3800
|
separator: i
|
|
3800
3801
|
}) {
|
|
3801
|
-
return e.value !== void 0 ? e.value : e.getValue ? e.getValue(n, t) : e.field ?
|
|
3802
|
+
return e.value !== void 0 ? e.value : e.getValue ? e.getValue(n, t) : e.field ? L.retrieveNestedData(i, e.field, t) : n.getValue();
|
|
3802
3803
|
}
|
|
3803
|
-
function
|
|
3804
|
+
function xr(n, e, t) {
|
|
3804
3805
|
if (!e?.elements || !Array.isArray(e.elements) || e.elements.length === 0)
|
|
3805
3806
|
return;
|
|
3806
3807
|
const i = n.getData(), s = this.table, o = typeof s.options.nestedFieldSeparator == "string" ? s.options.nestedFieldSeparator : void 0, r = n.getValue(), a = e.elements.some((R) => {
|
|
3807
|
-
const G =
|
|
3808
|
+
const G = ps({
|
|
3808
3809
|
cell: n,
|
|
3809
3810
|
elementConfig: R,
|
|
3810
3811
|
rowData: i,
|
|
3811
3812
|
separator: o
|
|
3812
3813
|
});
|
|
3813
|
-
if (
|
|
3814
|
+
if (ds({ elementConfig: R, elementValue: G, rowData: i }))
|
|
3814
3815
|
return !1;
|
|
3815
3816
|
let P = G;
|
|
3816
|
-
return R.valueMap && (P = R.valueMap[String(P)] ?? P), !
|
|
3817
|
+
return R.valueMap && (P = R.valueMap[String(P)] ?? P), !us(P);
|
|
3817
3818
|
});
|
|
3818
|
-
if (
|
|
3819
|
-
return
|
|
3819
|
+
if (us(r) && !a && e.placeholder !== void 0)
|
|
3820
|
+
return Er.call(this, n, e, t);
|
|
3820
3821
|
const h = n.getRow(), {
|
|
3821
3822
|
align: c,
|
|
3822
3823
|
block: d,
|
|
@@ -3825,19 +3826,19 @@ function Er(n, e, t) {
|
|
|
3825
3826
|
gap: f,
|
|
3826
3827
|
justifyContent: m,
|
|
3827
3828
|
wrap: y
|
|
3828
|
-
} = e, b = E`<cx-space style=${
|
|
3829
|
+
} = e, b = E`<cx-space style=${Le(p ?? {})} align-items=${c ?? "center"} ?block=${d} direction=${re(u)} justify-content=${re(m)} spacing=${f ?? "3x-small"} wrap=${re(y)}></cx-space>`, C = k(b), x = [];
|
|
3829
3830
|
return e.elements.forEach((R) => {
|
|
3830
|
-
const G =
|
|
3831
|
+
const G = ps({
|
|
3831
3832
|
cell: n,
|
|
3832
3833
|
elementConfig: R,
|
|
3833
3834
|
rowData: i,
|
|
3834
3835
|
separator: o
|
|
3835
3836
|
});
|
|
3836
|
-
if (
|
|
3837
|
+
if (ds({ elementConfig: R, elementValue: G, rowData: i }))
|
|
3837
3838
|
return;
|
|
3838
3839
|
let P = G;
|
|
3839
3840
|
R.valueMap && (P = R.valueMap[String(P)] ?? P);
|
|
3840
|
-
const N = R.formatter || "plaintext", V =
|
|
3841
|
+
const N = R.formatter || "plaintext", V = yt(N), Q = {
|
|
3841
3842
|
getColumn: () => n.getColumn(),
|
|
3842
3843
|
getData: () => i,
|
|
3843
3844
|
getElement: () => n.getElement() || document.createElement("div"),
|
|
@@ -3846,8 +3847,8 @@ function Er(n, e, t) {
|
|
|
3846
3847
|
getType: () => "cell",
|
|
3847
3848
|
getValue: () => P,
|
|
3848
3849
|
value: P
|
|
3849
|
-
}, ze = typeof R.formatterParams == "function" ? R.formatterParams(Q) : R.formatterParams ?? {}, j = (
|
|
3850
|
-
t && t(
|
|
3850
|
+
}, ze = typeof R.formatterParams == "function" ? R.formatterParams(Q) : R.formatterParams ?? {}, j = (Ys) => {
|
|
3851
|
+
t && t(Ys);
|
|
3851
3852
|
};
|
|
3852
3853
|
let M;
|
|
3853
3854
|
try {
|
|
@@ -3862,7 +3863,7 @@ function Er(n, e, t) {
|
|
|
3862
3863
|
}
|
|
3863
3864
|
if (M == null)
|
|
3864
3865
|
return;
|
|
3865
|
-
const Fe =
|
|
3866
|
+
const Fe = Cr({
|
|
3866
3867
|
spacing: R.spacing,
|
|
3867
3868
|
style: R.style
|
|
3868
3869
|
});
|
|
@@ -3878,14 +3879,14 @@ function Er(n, e, t) {
|
|
|
3878
3879
|
return typeof P == "string" ? Q.textContent = P : Q.appendChild(P.cloneNode(!0)), [N, Q];
|
|
3879
3880
|
}).forEach((R) => C.appendChild(R)), C);
|
|
3880
3881
|
}
|
|
3881
|
-
const
|
|
3882
|
-
function
|
|
3882
|
+
const Rr = process.env.NODE_ENV === "development";
|
|
3883
|
+
function Sr(n, e, t) {
|
|
3883
3884
|
const i = this.table.dependencyRegistry.lookup(
|
|
3884
3885
|
["luxon", "DateTime"],
|
|
3885
3886
|
"DateTime"
|
|
3886
3887
|
), s = e.inputFormat || "yyyy-MM-dd HH:mm:ss", o = e.outputFormat || "dd/MM/yyyy HH:mm:ss", r = e.invalidPlaceholder ?? "", a = n.getValue();
|
|
3887
3888
|
if (i == null)
|
|
3888
|
-
return
|
|
3889
|
+
return Rr && console.error(
|
|
3889
3890
|
"Format Error - 'datetime' formatter is dependent on luxon.js"
|
|
3890
3891
|
), a;
|
|
3891
3892
|
{
|
|
@@ -3893,14 +3894,14 @@ function Rr(n, e, t) {
|
|
|
3893
3894
|
return i.isDateTime(a) ? l = a : s === "iso" ? l = i.fromISO(String(a)) : l = i.fromFormat(String(a), s), l.isValid ? (e.timezone && (l = l.setZone(e.timezone)), l.toFormat(o)) : r === !0 || !a ? a : typeof r == "function" ? r(a) : r;
|
|
3894
3895
|
}
|
|
3895
3896
|
}
|
|
3896
|
-
const
|
|
3897
|
-
function
|
|
3897
|
+
const Tr = process.env.NODE_ENV === "development";
|
|
3898
|
+
function Mr(n, e, t) {
|
|
3898
3899
|
const i = this.table.dependencyRegistry.lookup(
|
|
3899
3900
|
["luxon", "DateTime"],
|
|
3900
3901
|
"DateTime"
|
|
3901
3902
|
), s = e.inputFormat || "yyyy-MM-dd HH:mm:ss", o = e.invalidPlaceholder ?? "", r = e.suffix === void 0 || e.suffix === null ? !1 : e.suffix, a = e.unit === void 0 || e.unit === null ? "days" : e.unit, l = e.humanize === void 0 || e.humanize === null ? !1 : e.humanize, h = n.getValue();
|
|
3902
3903
|
if (i == null)
|
|
3903
|
-
return
|
|
3904
|
+
return Tr && console.error(
|
|
3904
3905
|
"Format Error - 'datetimediff' formatter is dependent on luxon.js"
|
|
3905
3906
|
), o;
|
|
3906
3907
|
{
|
|
@@ -3909,15 +3910,15 @@ function Tr(n, e, t) {
|
|
|
3909
3910
|
return i.isDateTime(h) ? d = h : s === "iso" ? d = i.fromISO(String(h)) : d = i.fromFormat(String(h), s), d.isValid ? l ? d.diff(c, a).toHuman() + (r ? " " + r : "") : Number.parseInt(String(d.diff(c, a)[a]), 10) + (r ? " " + r : "") : o === !0 ? h : typeof o == "function" ? o(h) : o;
|
|
3910
3911
|
}
|
|
3911
3912
|
}
|
|
3912
|
-
function
|
|
3913
|
+
function kr(n, e, t) {
|
|
3913
3914
|
const i = n.getElement();
|
|
3914
3915
|
return i && i.classList.add("tabulator-row-handle"), "<div class='tabulator-row-handle-box'><div class='tabulator-row-handle-bar'></div><div class='tabulator-row-handle-bar'></div><div class='tabulator-row-handle-bar'></div></div>";
|
|
3915
3916
|
}
|
|
3916
|
-
function
|
|
3917
|
+
function Lr(n, e, t) {
|
|
3917
3918
|
return n.getValue();
|
|
3918
3919
|
}
|
|
3919
3920
|
const Dr = E`<cx-icon></cx-icon>`;
|
|
3920
|
-
function
|
|
3921
|
+
function zr(n, e) {
|
|
3921
3922
|
const t = n.getValue(), i = e ?? {};
|
|
3922
3923
|
let s;
|
|
3923
3924
|
if (i.getIcon ? s = i.getIcon(t) : typeof i.icon == "function" ? s = i.icon(t) : i.iconMap ? s = i.iconMap[t] : i.icon ? s = i.icon : s = t ? String(t) : void 0, !s)
|
|
@@ -3934,12 +3935,12 @@ function Lr(n, e) {
|
|
|
3934
3935
|
}
|
|
3935
3936
|
return i.class && (o.className = i.class), i.style && Object.assign(o.style, i.style), o;
|
|
3936
3937
|
}
|
|
3937
|
-
const
|
|
3938
|
-
function
|
|
3938
|
+
const Fr = E`<div style="display: flex; align-items: center; justify-content: center;"><img style="max-width: 100%; max-height: 100%; object-fit: cover;"></div>`;
|
|
3939
|
+
function Or(n, e) {
|
|
3939
3940
|
let t = n.getValue();
|
|
3940
3941
|
if (!t)
|
|
3941
3942
|
return null;
|
|
3942
|
-
const i = k(
|
|
3943
|
+
const i = k(Fr), s = i.querySelector("img"), o = e ?? {};
|
|
3943
3944
|
switch (o.urlPrefix && (t = o.urlPrefix + n.getValue()), o.urlSuffix && (t = t + o.urlSuffix), s.setAttribute("src", String(t)), typeof o.height) {
|
|
3944
3945
|
case "number":
|
|
3945
3946
|
i.style.height = o.height + "px";
|
|
@@ -3960,8 +3961,8 @@ function Fr(n, e) {
|
|
|
3960
3961
|
n.getRow()?.normalizeHeight();
|
|
3961
3962
|
}), i;
|
|
3962
3963
|
}
|
|
3963
|
-
const
|
|
3964
|
-
function
|
|
3964
|
+
const Pr = process.env.NODE_ENV === "development";
|
|
3965
|
+
function Hr(n, e, t) {
|
|
3965
3966
|
const {
|
|
3966
3967
|
indent: i = " ",
|
|
3967
3968
|
multiline: s = !0,
|
|
@@ -3974,11 +3975,11 @@ function Pr(n, e, t) {
|
|
|
3974
3975
|
try {
|
|
3975
3976
|
return JSON.stringify(r, o, i);
|
|
3976
3977
|
} catch (a) {
|
|
3977
|
-
return
|
|
3978
|
+
return Pr && console.warn("JSON Format Error - Failed to format value", a), String(r);
|
|
3978
3979
|
}
|
|
3979
3980
|
}
|
|
3980
|
-
const
|
|
3981
|
-
function
|
|
3981
|
+
const Ar = process.env.NODE_ENV === "development";
|
|
3982
|
+
function _r(n, e, t) {
|
|
3982
3983
|
let i = n.getValue();
|
|
3983
3984
|
const s = e.urlPrefix || "";
|
|
3984
3985
|
let o = e.download, r = i;
|
|
@@ -4004,7 +4005,7 @@ function Ar(n, e, t) {
|
|
|
4004
4005
|
break;
|
|
4005
4006
|
}
|
|
4006
4007
|
if (r != null) {
|
|
4007
|
-
if (e.urlField && (l = n.getData(), i =
|
|
4008
|
+
if (e.urlField && (l = n.getData(), i = L.retrieveNestedData(
|
|
4008
4009
|
this.table.options.nestedFieldSeparator,
|
|
4009
4010
|
e.urlField,
|
|
4010
4011
|
l
|
|
@@ -4018,20 +4019,20 @@ function Ar(n, e, t) {
|
|
|
4018
4019
|
break;
|
|
4019
4020
|
}
|
|
4020
4021
|
const c = String(s + i), d = document.createElement("a");
|
|
4021
|
-
return d.href = c, ["http:", "https:", "mailto:", "tel:", ""].includes(d.protocol) || c.startsWith("#") ? a.setAttribute("href", c) : (
|
|
4022
|
+
return d.href = c, ["http:", "https:", "mailto:", "tel:", ""].includes(d.protocol) || c.startsWith("#") ? a.setAttribute("href", c) : (Ar && console.warn("Link formatter blocked potentially unsafe URL:", c), a.setAttribute("href", "#")), e.target && a.setAttribute("target", e.target), e.rel && a.setAttribute("rel", e.rel), e.download && (typeof o == "function" ? o = o(n) : o = o === !0 ? "" : o, a.setAttribute("download", String(o))), a.innerHTML = ft(T(r)), a;
|
|
4022
4023
|
} else
|
|
4023
4024
|
return " ";
|
|
4024
4025
|
}
|
|
4025
|
-
const
|
|
4026
|
-
function
|
|
4026
|
+
const Nr = process.env.NODE_ENV === "development";
|
|
4027
|
+
function Vr(n, e, t) {
|
|
4027
4028
|
const i = n.getValue();
|
|
4028
|
-
return !e || typeof e != "object" && typeof e != "function" || e[i] === void 0 || e[i] === null ? (
|
|
4029
|
+
return !e || typeof e != "object" && typeof e != "function" || e[i] === void 0 || e[i] === null ? (Nr && console.warn("Missing display value for " + i), i) : e[i];
|
|
4029
4030
|
}
|
|
4030
|
-
function
|
|
4031
|
+
function Ir(n, e, t) {
|
|
4031
4032
|
let i = parseFloat(n.getValue()), s = "", o, r, a, l;
|
|
4032
4033
|
const h = e.decimal || ".", c = e.thousand || ",", d = e.negativeSign || "-", p = e.symbol || "", u = !!e.symbolAfter, f = typeof e.precision < "u" ? e.precision : 2;
|
|
4033
4034
|
if (isNaN(i))
|
|
4034
|
-
return
|
|
4035
|
+
return ft(T(Ti(n.getValue())));
|
|
4035
4036
|
i < 0 && (i = Math.abs(i), s = d), o = f !== !1 ? i.toFixed(f) : String(i), o = String(o).split("."), r = o[0];
|
|
4036
4037
|
const m = o.length > 1 ? h + o[1] : "";
|
|
4037
4038
|
if (e.thousand !== !1)
|
|
@@ -4039,15 +4040,15 @@ function Vr(n, e, t) {
|
|
|
4039
4040
|
r = r.replace(a, "$1" + c + "$2");
|
|
4040
4041
|
return l = r + m, e.negativeSign === !0 ? (l = "(" + l + ")", u ? l + p : p + l) : u ? s + l + p : s + p + l;
|
|
4041
4042
|
}
|
|
4042
|
-
const
|
|
4043
|
-
function
|
|
4043
|
+
const Br = E`<cx-format-number></cx-format-number>`;
|
|
4044
|
+
function Wr(n, e) {
|
|
4044
4045
|
const t = n.getValue();
|
|
4045
4046
|
if (t == null || t === "")
|
|
4046
4047
|
return;
|
|
4047
4048
|
const i = Number(t);
|
|
4048
4049
|
if (Number.isNaN(i))
|
|
4049
4050
|
return;
|
|
4050
|
-
const s = e ?? {}, o = k(
|
|
4051
|
+
const s = e ?? {}, o = k(Br);
|
|
4051
4052
|
o.value = i;
|
|
4052
4053
|
for (const r of Object.keys(s)) {
|
|
4053
4054
|
const a = s[r];
|
|
@@ -4055,14 +4056,14 @@ function Br(n, e) {
|
|
|
4055
4056
|
}
|
|
4056
4057
|
return o;
|
|
4057
4058
|
}
|
|
4058
|
-
function
|
|
4059
|
-
let t =
|
|
4059
|
+
function Gr(n, e) {
|
|
4060
|
+
let t = ft(T(Ti(n.getValue())));
|
|
4060
4061
|
const i = e ?? {};
|
|
4061
4062
|
i.prefix && (t = i.prefix + t), i.suffix && (t = t + i.suffix);
|
|
4062
|
-
const s = E`<cx-line-clamp lines="1"><span style=${
|
|
4063
|
+
const s = E`<cx-line-clamp lines="1"><span style=${Le(i.style ?? {})}>${t}</span></cx-line-clamp>`;
|
|
4063
4064
|
return k(s);
|
|
4064
4065
|
}
|
|
4065
|
-
function
|
|
4066
|
+
function jr(n, e = {}, t) {
|
|
4066
4067
|
const i = T(n.getValue()) || 0, s = n.getElement(), o = e.max ? e.max : 100, r = e.min ? e.min : 0, a = e.legendAlign ? e.legendAlign : "center";
|
|
4067
4068
|
let l, h, c = !1, d;
|
|
4068
4069
|
l = parseFloat(String(i)) <= o ? parseFloat(String(i)) : o, l = parseFloat(String(l)) >= r ? parseFloat(String(l)) : r;
|
|
@@ -4132,7 +4133,7 @@ function Gr(n, e = {}, t) {
|
|
|
4132
4133
|
if (!s)
|
|
4133
4134
|
return;
|
|
4134
4135
|
let y;
|
|
4135
|
-
if (n instanceof
|
|
4136
|
+
if (n instanceof Li)
|
|
4136
4137
|
y = n.getContentElement();
|
|
4137
4138
|
else {
|
|
4138
4139
|
const b = document.createElement("div");
|
|
@@ -4141,13 +4142,13 @@ function Gr(n, e = {}, t) {
|
|
|
4141
4142
|
y && (y.appendChild(f), f.appendChild(u), c && m && f.appendChild(m));
|
|
4142
4143
|
}), "";
|
|
4143
4144
|
}
|
|
4144
|
-
function
|
|
4145
|
+
function $r(n, e = {}, t) {
|
|
4145
4146
|
const i = document.createElement("span"), s = n.getRow(), o = n.getTable();
|
|
4146
4147
|
return s.watchPosition((r) => {
|
|
4147
4148
|
e.relativeToPage && o.modules.page && (r += o.modules.page.getPageSize() * (o.modules.page.getPage() - 1)), i.innerText = String(r);
|
|
4148
4149
|
}), i;
|
|
4149
4150
|
}
|
|
4150
|
-
function
|
|
4151
|
+
function Ur(n, e, t) {
|
|
4151
4152
|
let i = n.getValue();
|
|
4152
4153
|
const s = n.getElement(), o = n.getContentElement?.() ?? s, r = e && e.stars ? e.stars : 5, a = document.createElement("span"), l = document.createElementNS("http://www.w3.org/2000/svg", "svg"), h = '<polygon fill="#FFEA00" stroke="#C1AB60" stroke-width="37.6152" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" points="259.216,29.942 330.27,173.919 489.16,197.007 374.185,309.08 401.33,467.31 259.216,392.612 117.104,467.31 144.25,309.08 29.274,197.007 188.165,173.919 "/>', c = '<polygon fill="#D2D2D2" stroke="#686868" stroke-width="37.6152" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" points="259.216,29.942 330.27,173.919 489.16,197.007 374.185,309.08 401.33,467.31 259.216,392.612 117.104,467.31 144.25,309.08 29.274,197.007 188.165,173.919 "/>';
|
|
4153
4154
|
a.style.verticalAlign = "middle", l.setAttribute("width", "14"), l.setAttribute("height", "14"), l.setAttribute("viewBox", "0 0 512 512"), l.setAttribute("xml:space", "preserve"), l.style.padding = "0 1px";
|
|
@@ -4159,8 +4160,8 @@ function $r(n, e, t) {
|
|
|
4159
4160
|
}
|
|
4160
4161
|
return o && (o.style.whiteSpace = "nowrap", o.style.overflow = "hidden", o.style.textOverflow = "ellipsis"), s && s.setAttribute("aria-label", String(i)), a;
|
|
4161
4162
|
}
|
|
4162
|
-
const
|
|
4163
|
-
function
|
|
4163
|
+
const Kr = E`<cx-tag></cx-tag>`;
|
|
4164
|
+
function Xr(n, e) {
|
|
4164
4165
|
const t = n.getValue();
|
|
4165
4166
|
if (t == null || t === "")
|
|
4166
4167
|
return;
|
|
@@ -4169,26 +4170,26 @@ function Kr(n, e) {
|
|
|
4169
4170
|
removable: !1,
|
|
4170
4171
|
size: "medium",
|
|
4171
4172
|
variant: "neutral"
|
|
4172
|
-
}, s = k(
|
|
4173
|
+
}, s = k(Kr);
|
|
4173
4174
|
return Object.assign(s, i), s.textContent = e?.getTagContent?.(t) ?? e?.tagContentMap?.[t] ?? String(t), s;
|
|
4174
4175
|
}
|
|
4175
|
-
function
|
|
4176
|
-
return
|
|
4176
|
+
function Jr(n) {
|
|
4177
|
+
return ft(T(Ti(n.getValue())));
|
|
4177
4178
|
}
|
|
4178
|
-
function
|
|
4179
|
+
function qr(n, e, t) {
|
|
4179
4180
|
const i = n.getValue(), s = n.getElement(), o = e.allowEmpty, r = e.allowTruthy, a = Object.prototype.hasOwnProperty.call(
|
|
4180
4181
|
e,
|
|
4181
4182
|
"trueValue"
|
|
4182
4183
|
), l = (typeof e.tickElement == "string" ? T(e.tickElement) : e.tickElement) ?? '<svg enable-background="new 0 0 24 24" height="14" width="14" viewBox="0 0 24 24" xml:space="preserve" ><path fill="#2DC214" clip-rule="evenodd" d="M21.652,3.211c-0.293-0.295-0.77-0.295-1.061,0L9.41,14.34 c-0.293,0.297-0.771,0.297-1.062,0L3.449,9.351C3.304,9.203,3.114,9.13,2.923,9.129C2.73,9.128,2.534,9.201,2.387,9.351 l-2.165,1.946C0.078,11.445,0,11.63,0,11.823c0,0.194,0.078,0.397,0.223,0.544l4.94,5.184c0.292,0.296,0.771,0.776,1.062,1.07 l2.124,2.141c0.292,0.293,0.769,0.293,1.062,0l14.366-14.34c0.293-0.294,0.293-0.777,0-1.071L21.652,3.211z" fill-rule="evenodd"/></svg>', h = (typeof e.crossElement == "string" ? T(e.crossElement) : e.crossElement) ?? '<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>';
|
|
4183
4184
|
return a && i === e.trueValue || !a && (r && i || i === !0 || i === "true" || i === "True" || i === 1 || i === "1") ? (s && s.setAttribute("aria-checked", "true"), l || "") : o && (i === "null" || i === "" || i === null || typeof i > "u") ? (s && s.setAttribute("aria-checked", "mixed"), "") : (s && s.setAttribute("aria-checked", "false"), h || "");
|
|
4184
4185
|
}
|
|
4185
|
-
function
|
|
4186
|
+
function Yr(n) {
|
|
4186
4187
|
if (n == null || n === "")
|
|
4187
4188
|
return null;
|
|
4188
4189
|
const e = Number(n);
|
|
4189
4190
|
return Number.isFinite(e) ? e : null;
|
|
4190
4191
|
}
|
|
4191
|
-
function
|
|
4192
|
+
function Qr(n, e) {
|
|
4192
4193
|
const t = e.getValue(), i = e.getRow().getData(), {
|
|
4193
4194
|
getParams: s,
|
|
4194
4195
|
paramsMap: o,
|
|
@@ -4201,17 +4202,17 @@ function Yr(n, e) {
|
|
|
4201
4202
|
...c
|
|
4202
4203
|
};
|
|
4203
4204
|
}
|
|
4204
|
-
function
|
|
4205
|
+
function Zr(n) {
|
|
4205
4206
|
const e = {
|
|
4206
4207
|
...n.style ?? {}
|
|
4207
4208
|
};
|
|
4208
4209
|
return n.color && (e["--cx-format-time-color"] = n.color), n.fontSize && (e["--cx-format-time-font-size"] = n.fontSize), n.fontWeight && (e["--cx-format-time-font-weight"] = n.fontWeight), e;
|
|
4209
4210
|
}
|
|
4210
|
-
function
|
|
4211
|
-
const t =
|
|
4212
|
-
return k(E`<cx-format-time .duration=${i} display-style=${re(t.displayStyle)} input-unit=${re(t.inputUnit)} locale=${re(t.locale)} placeholder=${re(t.placeholder)} units-format=${re(t.unitsFormat)} style=${
|
|
4211
|
+
function en(n, e) {
|
|
4212
|
+
const t = Qr(e ?? {}, n), i = Yr(n.getValue()), s = Zr(t);
|
|
4213
|
+
return k(E`<cx-format-time .duration=${i} display-style=${re(t.displayStyle)} input-unit=${re(t.inputUnit)} locale=${re(t.locale)} placeholder=${re(t.placeholder)} units-format=${re(t.unitsFormat)} style=${Le(s)}></cx-format-time>`);
|
|
4213
4214
|
}
|
|
4214
|
-
function
|
|
4215
|
+
function tn(n, e, t) {
|
|
4215
4216
|
const i = e.size || 15, s = i + "px", o = Object.prototype.hasOwnProperty.call(
|
|
4216
4217
|
e,
|
|
4217
4218
|
"onValue"
|
|
@@ -4229,12 +4230,12 @@ function en(n, e, t) {
|
|
|
4229
4230
|
const c = document.createElement("div");
|
|
4230
4231
|
return c.classList.add("tabulator-toggle-switch"), c.style.height = s, c.style.width = s, c.style.borderRadius = s, h.appendChild(c), h;
|
|
4231
4232
|
}
|
|
4232
|
-
const
|
|
4233
|
-
function
|
|
4233
|
+
const sn = E`<span class="tabulator-traffic-light-container"><span class="tabulator-traffic-light"></span><span class="tabulator-traffic-light-text"></span></span>`;
|
|
4234
|
+
function on(n, e, t, i) {
|
|
4234
4235
|
const s = n.getValue();
|
|
4235
4236
|
if (s == null || s === "")
|
|
4236
4237
|
return;
|
|
4237
|
-
const o = k(
|
|
4238
|
+
const o = k(sn), r = e?.getColor?.(s) ?? e?.colorMap?.[s];
|
|
4238
4239
|
if (r) {
|
|
4239
4240
|
const l = o.querySelector(
|
|
4240
4241
|
".tabulator-traffic-light"
|
|
@@ -4246,51 +4247,51 @@ function sn(n, e, t, i) {
|
|
|
4246
4247
|
);
|
|
4247
4248
|
return a && (a.textContent = String(s)), i?.getColor ? a.style.color = i.getColor(n) : i?.colorMap ? a.style.color = i.colorMap[n.getValue()] : i?.color && (a.style.color = i.color), o;
|
|
4248
4249
|
}
|
|
4249
|
-
function
|
|
4250
|
+
function rn(n, e) {
|
|
4250
4251
|
const t = n.getValue();
|
|
4251
4252
|
if (t == null || t === "")
|
|
4252
4253
|
return;
|
|
4253
4254
|
const i = e ?? {};
|
|
4254
4255
|
let s;
|
|
4255
|
-
i.getVariant && (s = i.getVariant(t)), !s && i.variantMap && (s = i.variantMap[t]), !s && i.variant && (s = i.variant), s ??=
|
|
4256
|
-
const o = E`<cx-line-clamp lines="1"><cx-typography style=${
|
|
4256
|
+
i.getVariant && (s = i.getVariant(t)), !s && i.variantMap && (s = i.variantMap[t]), !s && i.variant && (s = i.variant), s ??= ao.Body1;
|
|
4257
|
+
const o = E`<cx-line-clamp lines="1"><cx-typography style=${Le(i.style ?? {})}></cx-typography></cx-line-clamp>`, r = k(o), a = r.querySelector(
|
|
4257
4258
|
"cx-typography"
|
|
4258
4259
|
);
|
|
4259
4260
|
a.variant = s;
|
|
4260
4261
|
let l = String(t);
|
|
4261
4262
|
return i.prefix && (l = i.prefix + l), i.suffix && (l = l + i.suffix), a.textContent = l, r;
|
|
4262
4263
|
}
|
|
4263
|
-
const
|
|
4264
|
-
adaptable:
|
|
4265
|
-
array:
|
|
4266
|
-
buttonCross:
|
|
4267
|
-
buttonTick:
|
|
4268
|
-
color:
|
|
4269
|
-
composite:
|
|
4270
|
-
datetime:
|
|
4271
|
-
datetimediff:
|
|
4272
|
-
handle:
|
|
4273
|
-
html:
|
|
4274
|
-
icon:
|
|
4275
|
-
image:
|
|
4276
|
-
json:
|
|
4277
|
-
link:
|
|
4278
|
-
lookup:
|
|
4279
|
-
money:
|
|
4280
|
-
number:
|
|
4281
|
-
plaintext:
|
|
4282
|
-
progress:
|
|
4283
|
-
rownum:
|
|
4284
|
-
star:
|
|
4285
|
-
tag:
|
|
4286
|
-
textarea:
|
|
4287
|
-
tickCross:
|
|
4288
|
-
time:
|
|
4289
|
-
toggle:
|
|
4290
|
-
traffic:
|
|
4291
|
-
typography:
|
|
4264
|
+
const Is = {
|
|
4265
|
+
adaptable: fr,
|
|
4266
|
+
array: gr,
|
|
4267
|
+
buttonCross: mr,
|
|
4268
|
+
buttonTick: br,
|
|
4269
|
+
color: wr,
|
|
4270
|
+
composite: xr,
|
|
4271
|
+
datetime: Sr,
|
|
4272
|
+
datetimediff: Mr,
|
|
4273
|
+
handle: kr,
|
|
4274
|
+
html: Lr,
|
|
4275
|
+
icon: zr,
|
|
4276
|
+
image: Or,
|
|
4277
|
+
json: Hr,
|
|
4278
|
+
link: _r,
|
|
4279
|
+
lookup: Vr,
|
|
4280
|
+
money: Ir,
|
|
4281
|
+
number: Wr,
|
|
4282
|
+
plaintext: Gr,
|
|
4283
|
+
progress: jr,
|
|
4284
|
+
rownum: $r,
|
|
4285
|
+
star: Ur,
|
|
4286
|
+
tag: Xr,
|
|
4287
|
+
textarea: Jr,
|
|
4288
|
+
tickCross: qr,
|
|
4289
|
+
time: en,
|
|
4290
|
+
toggle: tn,
|
|
4291
|
+
traffic: on,
|
|
4292
|
+
typography: rn
|
|
4292
4293
|
};
|
|
4293
|
-
|
|
4294
|
+
ur(Is);
|
|
4294
4295
|
const me = class me extends S {
|
|
4295
4296
|
constructor(e) {
|
|
4296
4297
|
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");
|
|
@@ -4318,7 +4319,7 @@ const me = class me extends S {
|
|
|
4318
4319
|
return s.formatter = me.lookupFormatter(o), s;
|
|
4319
4320
|
}
|
|
4320
4321
|
static lookupFormatter(e) {
|
|
4321
|
-
return
|
|
4322
|
+
return yt(e, me.formatters);
|
|
4322
4323
|
}
|
|
4323
4324
|
cellRendered(e) {
|
|
4324
4325
|
const t = e.modules.format;
|
|
@@ -4393,10 +4394,10 @@ const me = class me extends S {
|
|
|
4393
4394
|
return this.formatValue(e);
|
|
4394
4395
|
}
|
|
4395
4396
|
};
|
|
4396
|
-
me.moduleName = "format", me.formatters =
|
|
4397
|
-
let
|
|
4398
|
-
const ie = process.env.NODE_ENV === "development",
|
|
4399
|
-
class
|
|
4397
|
+
me.moduleName = "format", me.formatters = Is;
|
|
4398
|
+
let lt = me;
|
|
4399
|
+
const ie = process.env.NODE_ENV === "development", nn = E`<cx-option></cx-option>`, an = E`<cx-divider></cx-divider>`;
|
|
4400
|
+
class ln {
|
|
4400
4401
|
constructor(e, t, i, s, o, r) {
|
|
4401
4402
|
this._itemsMap = /* @__PURE__ */ new Map(), this.table = e.table, this.cell = t, this.params = this._initializeParams(r), this.fetchApi = typeof globalThis.fetch == "function" ? globalThis.fetch.bind(globalThis) : void 0, this.data = [], this.displayItems = [], this.focusedItem = null, this.input = this._createSelectElement(), this.initialValue = void 0, this.initialValues = [], this.isHeaderFilter = t.row?.type === "header", this.typing = !1, this.listIteration = 0, this.lastAction = "", this.actions = {
|
|
4402
4403
|
cancel: o,
|
|
@@ -4461,7 +4462,7 @@ class an {
|
|
|
4461
4462
|
if (!e)
|
|
4462
4463
|
return null;
|
|
4463
4464
|
let t;
|
|
4464
|
-
return typeof e == "string" ? t =
|
|
4465
|
+
return typeof e == "string" ? t = ts(e) : t = e, t && (t.slot = "prefix"), t;
|
|
4465
4466
|
}
|
|
4466
4467
|
_createSelectElement() {
|
|
4467
4468
|
const {
|
|
@@ -4557,7 +4558,7 @@ class an {
|
|
|
4557
4558
|
}
|
|
4558
4559
|
async _ajaxRequest(e, t) {
|
|
4559
4560
|
const { ajaxResponse: i, filterRemote: s } = this.params, o = s ? { term: t } : {};
|
|
4560
|
-
e =
|
|
4561
|
+
e = Hs(e, {}, o);
|
|
4561
4562
|
let r = [];
|
|
4562
4563
|
try {
|
|
4563
4564
|
if (!this.fetchApi)
|
|
@@ -4765,7 +4766,7 @@ class an {
|
|
|
4765
4766
|
}
|
|
4766
4767
|
}
|
|
4767
4768
|
_appendDivider() {
|
|
4768
|
-
const e = k(
|
|
4769
|
+
const e = k(an);
|
|
4769
4770
|
this.input.appendChild(e);
|
|
4770
4771
|
}
|
|
4771
4772
|
_appendSectionLabel(e) {
|
|
@@ -4775,12 +4776,12 @@ class an {
|
|
|
4775
4776
|
_appendLeafOption(e) {
|
|
4776
4777
|
let t = e.element;
|
|
4777
4778
|
if (!t) {
|
|
4778
|
-
t = k(
|
|
4779
|
+
t = k(nn), t.getTextLabel = () => e.label, t.value = this.sanitizeValue(e.value);
|
|
4779
4780
|
const i = this.formatItemLabel(e, t);
|
|
4780
4781
|
i && typeof i == "object" && "nodeType" in i && i instanceof HTMLElement ? t.appendChild(i) : t.innerHTML = T(String(i || ""));
|
|
4781
4782
|
const s = this.params.fallbackOption?.prefix;
|
|
4782
4783
|
if (e.isFallbackOption && s) {
|
|
4783
|
-
const o =
|
|
4784
|
+
const o = ts(
|
|
4784
4785
|
`<div style="display: inline-flex" slot="prefix">${T(s)}</div>`
|
|
4785
4786
|
);
|
|
4786
4787
|
o && t.prepend(o);
|
|
@@ -4799,7 +4800,7 @@ class an {
|
|
|
4799
4800
|
let a = function(d) {
|
|
4800
4801
|
d();
|
|
4801
4802
|
};
|
|
4802
|
-
const l =
|
|
4803
|
+
const l = lt.lookupFormatter(s), h = typeof o == "function" ? o(this.cell.getComponent()) : o || {}, c = {
|
|
4803
4804
|
getColumn: () => this.cell.column.getComponent(),
|
|
4804
4805
|
getData: () => this.cell.row?.getData(),
|
|
4805
4806
|
getElement: () => t,
|
|
@@ -4911,17 +4912,17 @@ class an {
|
|
|
4911
4912
|
}
|
|
4912
4913
|
}
|
|
4913
4914
|
}
|
|
4914
|
-
const
|
|
4915
|
-
return new
|
|
4915
|
+
const hn = function(n, e, t, i, s) {
|
|
4916
|
+
return new ln(
|
|
4916
4917
|
// eslint-disable-next-line no-invalid-this
|
|
4917
4918
|
this,
|
|
4918
|
-
n instanceof
|
|
4919
|
+
n instanceof Li ? n._getSelf() : n,
|
|
4919
4920
|
e,
|
|
4920
4921
|
t,
|
|
4921
4922
|
i,
|
|
4922
4923
|
s
|
|
4923
4924
|
).input;
|
|
4924
|
-
},
|
|
4925
|
+
}, cn = function(n, e, t, i, s) {
|
|
4925
4926
|
let o = n.getValue();
|
|
4926
4927
|
const r = s.verticalNavigation || "editor", a = document.createElement("input");
|
|
4927
4928
|
if (a.setAttribute("type", "number"), typeof s.max < "u" && a.setAttribute("max", String(s.max)), typeof s.min < "u" && a.setAttribute("min", String(s.min)), typeof s.step < "u" && a.setAttribute("step", String(s.step)), a.style.padding = "4px", a.style.width = "100%", a.style.boxSizing = "border-box", s.elementAttributes && typeof s.elementAttributes == "object")
|
|
@@ -4969,8 +4970,8 @@ const ln = function(n, e, t, i, s) {
|
|
|
4969
4970
|
p.stopPropagation();
|
|
4970
4971
|
break;
|
|
4971
4972
|
}
|
|
4972
|
-
}), s.mask &&
|
|
4973
|
-
},
|
|
4973
|
+
}), s.mask && zi(a, s), a;
|
|
4974
|
+
}, dn = function(n, e, t, i, s) {
|
|
4974
4975
|
const o = n.getElement();
|
|
4975
4976
|
if (!o)
|
|
4976
4977
|
return !1;
|
|
@@ -5024,7 +5025,7 @@ const ln = function(n, e, t, i, s) {
|
|
|
5024
5025
|
}), o.addEventListener("blur", () => {
|
|
5025
5026
|
i();
|
|
5026
5027
|
}), p;
|
|
5027
|
-
},
|
|
5028
|
+
}, un = function(n, e, t, i, s) {
|
|
5028
5029
|
let o = n.getValue();
|
|
5029
5030
|
const r = document.createElement("input");
|
|
5030
5031
|
if (r.setAttribute("type", "range"), typeof s.max < "u" && r.setAttribute("max", String(s.max)), typeof s.min < "u" && r.setAttribute("min", String(s.min)), typeof s.step < "u" && r.setAttribute("step", String(s.step)), r.style.padding = "4px", r.style.width = "100%", r.style.boxSizing = "border-box", s.elementAttributes && typeof s.elementAttributes == "object")
|
|
@@ -5056,7 +5057,7 @@ const ln = function(n, e, t, i, s) {
|
|
|
5056
5057
|
break;
|
|
5057
5058
|
}
|
|
5058
5059
|
}), r;
|
|
5059
|
-
},
|
|
5060
|
+
}, pn = function(n, e, t, i, s) {
|
|
5060
5061
|
const o = this, r = n.getElement();
|
|
5061
5062
|
if (!r)
|
|
5062
5063
|
return !1;
|
|
@@ -5127,7 +5128,7 @@ const ln = function(n, e, t, i, s) {
|
|
|
5127
5128
|
break;
|
|
5128
5129
|
}
|
|
5129
5130
|
}), d;
|
|
5130
|
-
},
|
|
5131
|
+
}, fn = function(n, e, t, i, s) {
|
|
5131
5132
|
let o = n.getValue();
|
|
5132
5133
|
const r = s.verticalNavigation || "hybrid", a = String(o ?? ""), l = document.createElement("textarea");
|
|
5133
5134
|
let h = 0;
|
|
@@ -5172,8 +5173,8 @@ const ln = function(n, e, t, i, s) {
|
|
|
5172
5173
|
d.stopPropagation();
|
|
5173
5174
|
break;
|
|
5174
5175
|
}
|
|
5175
|
-
}), s.mask &&
|
|
5176
|
-
},
|
|
5176
|
+
}), s.mask && zi(l, s), l;
|
|
5177
|
+
}, gn = function(n, e, t, i, s) {
|
|
5177
5178
|
const o = n.getValue(), r = document.createElement("input"), a = s.tristate, l = typeof s.indeterminateValue > "u" ? null : s.indeterminateValue;
|
|
5178
5179
|
let h = !1;
|
|
5179
5180
|
const c = Object.keys(s).includes("trueValue"), d = Object.keys(s).includes("falseValue");
|
|
@@ -5203,7 +5204,7 @@ const ln = function(n, e, t, i, s) {
|
|
|
5203
5204
|
}), r.addEventListener("keydown", (f) => {
|
|
5204
5205
|
f.keyCode === 13 && t(u(!1)), f.keyCode === 27 && i();
|
|
5205
5206
|
}), r;
|
|
5206
|
-
},
|
|
5207
|
+
}, mn = process.env.NODE_ENV === "development", bn = function(n, e, t, i, s) {
|
|
5207
5208
|
const o = s.format, r = s.verticalNavigation || "editor", a = o ? typeof window < "u" && window.DateTime || typeof globalThis < "u" && globalThis.luxon?.DateTime : null;
|
|
5208
5209
|
let l, h = n.getValue();
|
|
5209
5210
|
const c = document.createElement("input");
|
|
@@ -5218,7 +5219,7 @@ const ln = function(n, e, t, i, s) {
|
|
|
5218
5219
|
} else
|
|
5219
5220
|
c.setAttribute(f, s.elementAttributes[f]);
|
|
5220
5221
|
const d = String(h ?? "");
|
|
5221
|
-
o && a && d !== "" ? (a.isDateTime?.(h) ? l = h : o === "iso" ? l = a.fromISO(d) : l = a.fromFormat(d, o), h = l.toFormat("HH:mm")) : o && !a &&
|
|
5222
|
+
o && a && d !== "" ? (a.isDateTime?.(h) ? l = h : o === "iso" ? l = a.fromISO(d) : l = a.fromFormat(d, o), h = l.toFormat("HH:mm")) : o && !a && mn && console.error(
|
|
5222
5223
|
"Editor Error - 'time' editor 'format' param is dependent on luxon.js"
|
|
5223
5224
|
);
|
|
5224
5225
|
const p = String(h ?? "");
|
|
@@ -5268,20 +5269,20 @@ const ln = function(n, e, t, i, s) {
|
|
|
5268
5269
|
break;
|
|
5269
5270
|
}
|
|
5270
5271
|
}), c;
|
|
5271
|
-
},
|
|
5272
|
-
adaptable:
|
|
5273
|
-
date:
|
|
5274
|
-
datetime:
|
|
5275
|
-
input:
|
|
5276
|
-
list:
|
|
5277
|
-
number:
|
|
5278
|
-
progress:
|
|
5279
|
-
range:
|
|
5280
|
-
star:
|
|
5281
|
-
textarea:
|
|
5282
|
-
tickCross:
|
|
5283
|
-
time:
|
|
5284
|
-
}, tt = process.env.NODE_ENV === "development",
|
|
5272
|
+
}, wn = {
|
|
5273
|
+
adaptable: rr,
|
|
5274
|
+
date: ar,
|
|
5275
|
+
datetime: hr,
|
|
5276
|
+
input: cr,
|
|
5277
|
+
list: hn,
|
|
5278
|
+
number: cn,
|
|
5279
|
+
progress: dn,
|
|
5280
|
+
range: un,
|
|
5281
|
+
star: pn,
|
|
5282
|
+
textarea: fn,
|
|
5283
|
+
tickCross: gn,
|
|
5284
|
+
time: bn
|
|
5285
|
+
}, tt = process.env.NODE_ENV === "development", Bs = "tabulator-edit-list-trigger", vn = "tabulator-edit-list-trigger-caret", yn = E`<button aria-label="Open list editor" class=${Bs} tabindex="-1" type="button"><cx-icon aria-hidden="true" class=${vn} name="arrow_drop_down"></cx-icon></button>`, Ke = class Ke extends S {
|
|
5285
5286
|
constructor(e) {
|
|
5286
5287
|
super(e), this.currentCell = !1, this.mouseClick = !1, this.recursionBlock = !1, this.invalidEdit = !1, this.editedCells = [], this.convertEmptyValues = !1, this.editors = Ke.editors, this.registerTableOption("editTriggerEvent", "focus"), this.registerTableOption("editorEmptyValue"), this.registerTableOption(
|
|
5287
5288
|
"editorEmptyValueFunc",
|
|
@@ -5424,7 +5425,7 @@ const ln = function(n, e, t, i, s) {
|
|
|
5424
5425
|
if (t < e.cells.length - 1)
|
|
5425
5426
|
for (let s = t + 1; s < e.cells.length; s++) {
|
|
5426
5427
|
const o = e.cells[s], r = o.getElement();
|
|
5427
|
-
if (o.column.modules.edit && r &&
|
|
5428
|
+
if (o.column.modules.edit && r && L.elVisible(r) && this.allowEdit(o)) {
|
|
5428
5429
|
i = o;
|
|
5429
5430
|
break;
|
|
5430
5431
|
}
|
|
@@ -5436,7 +5437,7 @@ const ln = function(n, e, t, i, s) {
|
|
|
5436
5437
|
if (t > 0)
|
|
5437
5438
|
for (let s = t - 1; s >= 0; s--) {
|
|
5438
5439
|
const o = e.cells[s], r = o.getElement();
|
|
5439
|
-
if (o.column.modules.edit && r &&
|
|
5440
|
+
if (o.column.modules.edit && r && L.elVisible(r) && this.allowEdit(o)) {
|
|
5440
5441
|
i = o;
|
|
5441
5442
|
break;
|
|
5442
5443
|
}
|
|
@@ -5538,10 +5539,10 @@ const ln = function(n, e, t, i, s) {
|
|
|
5538
5539
|
if (e.column.definition.editor !== "list")
|
|
5539
5540
|
return;
|
|
5540
5541
|
const t = e.getElement(!0);
|
|
5541
|
-
if (!t || t.classList.contains("tabulator-editing") || t.querySelector(`.${
|
|
5542
|
+
if (!t || t.classList.contains("tabulator-editing") || t.querySelector(`.${Bs}`))
|
|
5542
5543
|
return;
|
|
5543
5544
|
const i = k(
|
|
5544
|
-
|
|
5545
|
+
yn
|
|
5545
5546
|
);
|
|
5546
5547
|
i.addEventListener("mousedown", (s) => {
|
|
5547
5548
|
s.preventDefault(), s.stopPropagation();
|
|
@@ -5682,9 +5683,9 @@ const ln = function(n, e, t, i, s) {
|
|
|
5682
5683
|
t > -1 && this.editedCells.splice(t, 1);
|
|
5683
5684
|
}
|
|
5684
5685
|
};
|
|
5685
|
-
Ke.moduleName = "edit", Ke.editors =
|
|
5686
|
-
let
|
|
5687
|
-
const
|
|
5686
|
+
Ke.moduleName = "edit", Ke.editors = wn;
|
|
5687
|
+
let Wt = Ke;
|
|
5688
|
+
const Cn = {}, En = {
|
|
5688
5689
|
active: function() {
|
|
5689
5690
|
return this.options.pagination ? this.rowManager?.getDisplayRows(
|
|
5690
5691
|
this.rowManager.displayRows.length - 2
|
|
@@ -5700,17 +5701,17 @@ const yn = {}, Cn = {
|
|
|
5700
5701
|
return this.rowManager?.getVisibleRows(!1, !0) || [];
|
|
5701
5702
|
}
|
|
5702
5703
|
};
|
|
5703
|
-
class
|
|
5704
|
+
class xt {
|
|
5704
5705
|
constructor(e, t, i, s, o) {
|
|
5705
5706
|
this.value = e, this.component = t, this.width = i ?? 1, this.height = s ?? 1, this.depth = o ?? 1;
|
|
5706
5707
|
}
|
|
5707
5708
|
}
|
|
5708
|
-
class
|
|
5709
|
+
class fs {
|
|
5709
5710
|
constructor(e, t, i, s) {
|
|
5710
5711
|
this.type = e, this.columns = t, this.component = i ?? !1, this.indent = s ?? 0;
|
|
5711
5712
|
}
|
|
5712
5713
|
}
|
|
5713
|
-
const
|
|
5714
|
+
const xn = process.env.NODE_ENV === "development", be = class be extends S {
|
|
5714
5715
|
constructor(e) {
|
|
5715
5716
|
super(e), this.config = {}, this.cloneTableStyle = !0, this.colVisProp = "", this.colVisPropAttach = "", this.registerTableOption("htmlOutputConfig", !1), this.registerColumnOption("htmlOutput"), this.registerColumnOption("titleHtmlOutput");
|
|
5716
5717
|
}
|
|
@@ -5801,7 +5802,7 @@ const En = process.env.NODE_ENV === "development", be = class be extends S {
|
|
|
5801
5802
|
if (l) {
|
|
5802
5803
|
const h = l.title ?? "";
|
|
5803
5804
|
a.push(
|
|
5804
|
-
new
|
|
5805
|
+
new xt(
|
|
5805
5806
|
h,
|
|
5806
5807
|
l.column.getComponent(),
|
|
5807
5808
|
l.width,
|
|
@@ -5811,7 +5812,7 @@ const En = process.env.NODE_ENV === "development", be = class be extends S {
|
|
|
5811
5812
|
);
|
|
5812
5813
|
} else
|
|
5813
5814
|
a.push(null);
|
|
5814
|
-
}), s.push(new
|
|
5815
|
+
}), s.push(new fs("header", a));
|
|
5815
5816
|
}), s;
|
|
5816
5817
|
}
|
|
5817
5818
|
bodyToExportRows(e, t = []) {
|
|
@@ -5838,7 +5839,7 @@ const En = process.env.NODE_ENV === "development", be = class be extends S {
|
|
|
5838
5839
|
switch (r.type) {
|
|
5839
5840
|
case "group":
|
|
5840
5841
|
h = r.level, l.push(
|
|
5841
|
-
new
|
|
5842
|
+
new xt(
|
|
5842
5843
|
r.key,
|
|
5843
5844
|
r.getComponent(),
|
|
5844
5845
|
s.length,
|
|
@@ -5850,13 +5851,13 @@ const En = process.env.NODE_ENV === "development", be = class be extends S {
|
|
|
5850
5851
|
case "row":
|
|
5851
5852
|
s.forEach((c) => {
|
|
5852
5853
|
l.push(
|
|
5853
|
-
new
|
|
5854
|
+
new xt(c._column.getFieldValue(a), c, 1, 1)
|
|
5854
5855
|
);
|
|
5855
5856
|
}), this.table.options.dataTree && this.config?.dataTree !== !1 && (h = r.modules.dataTree?.index || 0);
|
|
5856
5857
|
break;
|
|
5857
5858
|
}
|
|
5858
5859
|
i.push(
|
|
5859
|
-
new
|
|
5860
|
+
new fs(
|
|
5860
5861
|
r.type,
|
|
5861
5862
|
l,
|
|
5862
5863
|
r.getComponent(),
|
|
@@ -5879,7 +5880,7 @@ const En = process.env.NODE_ENV === "development", be = class be extends S {
|
|
|
5879
5880
|
"font-weight",
|
|
5880
5881
|
"font-family",
|
|
5881
5882
|
"font-size"
|
|
5882
|
-
]), e.length > 1e3 &&
|
|
5883
|
+
]), e.length > 1e3 && xn && console.warn(
|
|
5883
5884
|
"It may take a long time to render an HTML table with more than 1000 rows"
|
|
5884
5885
|
), e.forEach((h, c) => {
|
|
5885
5886
|
let d;
|
|
@@ -6166,9 +6167,9 @@ const En = process.env.NODE_ENV === "development", be = class be extends S {
|
|
|
6166
6167
|
}
|
|
6167
6168
|
}
|
|
6168
6169
|
};
|
|
6169
|
-
be.moduleName = "export", be.columnLookups =
|
|
6170
|
-
let
|
|
6171
|
-
const
|
|
6170
|
+
be.moduleName = "export", be.columnLookups = Cn, be.rowLookups = En;
|
|
6171
|
+
let Gt = be;
|
|
6172
|
+
const gs = process.env.NODE_ENV === "development", Rn = {
|
|
6172
6173
|
// not equal to
|
|
6173
6174
|
"!=": function(n, e, t, i) {
|
|
6174
6175
|
return e != n;
|
|
@@ -6199,7 +6200,7 @@ const fs = process.env.NODE_ENV === "development", xn = {
|
|
|
6199
6200
|
},
|
|
6200
6201
|
// in array
|
|
6201
6202
|
in: function(n, e, t, i) {
|
|
6202
|
-
return Array.isArray(n) ? n.length ? n.includes(e) : !0 : (
|
|
6203
|
+
return Array.isArray(n) ? n.length ? n.includes(e) : !0 : (gs && console.warn("Filter Error - filter value is not an array:", n), !1);
|
|
6203
6204
|
},
|
|
6204
6205
|
// contains the keywords
|
|
6205
6206
|
keywords: function(n, e, t, i) {
|
|
@@ -6223,22 +6224,22 @@ const fs = process.env.NODE_ENV === "development", xn = {
|
|
|
6223
6224
|
try {
|
|
6224
6225
|
return typeof n == "string" ? s = new RegExp(n) : s = n, s.test(String(e));
|
|
6225
6226
|
} catch {
|
|
6226
|
-
return
|
|
6227
|
+
return gs && console.warn("Filter Error - invalid regular expression:", n), !1;
|
|
6227
6228
|
}
|
|
6228
6229
|
},
|
|
6229
6230
|
// starts with the string
|
|
6230
6231
|
starts: function(n, e, t, i) {
|
|
6231
6232
|
return n == null ? e === n : e != null ? String(e).toLowerCase().startsWith(n.toLowerCase()) : !1;
|
|
6232
6233
|
}
|
|
6233
|
-
},
|
|
6234
|
-
function
|
|
6234
|
+
}, Sn = /<[^>]*>/g;
|
|
6235
|
+
function Ct(n) {
|
|
6235
6236
|
return !!n && typeof n == "object" && !Array.isArray(n) && typeof n != "function";
|
|
6236
6237
|
}
|
|
6237
|
-
function
|
|
6238
|
+
function ht(n, e, t) {
|
|
6238
6239
|
e != null && (t !== void 0 && e === t || n.push(e));
|
|
6239
6240
|
}
|
|
6240
|
-
function
|
|
6241
|
-
return n == null ? "" : String(n).replace(
|
|
6241
|
+
function Tn(n) {
|
|
6242
|
+
return n == null ? "" : String(n).replace(Sn, "");
|
|
6242
6243
|
}
|
|
6243
6244
|
function U(n) {
|
|
6244
6245
|
try {
|
|
@@ -6247,43 +6248,43 @@ function U(n) {
|
|
|
6247
6248
|
return;
|
|
6248
6249
|
}
|
|
6249
6250
|
}
|
|
6250
|
-
const
|
|
6251
|
-
function
|
|
6251
|
+
const Ws = Symbol("skip-composite-element");
|
|
6252
|
+
function Mn(n, e, t, i, s) {
|
|
6252
6253
|
if (typeof n?.getValue == "function")
|
|
6253
|
-
return
|
|
6254
|
+
return Ws;
|
|
6254
6255
|
if (n?.value !== void 0)
|
|
6255
6256
|
return n.value;
|
|
6256
6257
|
const o = n?.field;
|
|
6257
|
-
return typeof o == "string" && o.length > 0 ? o === e ? t : s ?
|
|
6258
|
+
return typeof o == "string" && o.length > 0 ? o === e ? t : s ? L.retrieveNestedData(s, o, i) : i[o] : t;
|
|
6258
6259
|
}
|
|
6259
|
-
function
|
|
6260
|
+
function kn(n, e, t) {
|
|
6260
6261
|
return !!(typeof n?.shouldHide == "function" && U(() => n.shouldHide(e, t)) || n?.hideValues !== void 0 && (Array.isArray(n.hideValues) ? n.hideValues : [n.hideValues]).includes(e) || typeof n?.shouldShow == "function" && !U(
|
|
6261
6262
|
() => n.shouldShow(e, t)
|
|
6262
6263
|
) || n?.showValues !== void 0 && !(Array.isArray(n.showValues) ? n.showValues : [n.showValues]).includes(e));
|
|
6263
6264
|
}
|
|
6264
|
-
function
|
|
6265
|
+
function Ln(n, e) {
|
|
6265
6266
|
const { formatterParams: t, rawValue: i, rowData: s, separator: o, table: r } = n, a = t?.elements;
|
|
6266
6267
|
if (!Array.isArray(a))
|
|
6267
6268
|
return [];
|
|
6268
6269
|
const l = [];
|
|
6269
6270
|
for (const h of a) {
|
|
6270
|
-
const c =
|
|
6271
|
+
const c = Mn(
|
|
6271
6272
|
h,
|
|
6272
6273
|
e,
|
|
6273
6274
|
i,
|
|
6274
6275
|
s,
|
|
6275
6276
|
o
|
|
6276
6277
|
);
|
|
6277
|
-
if (c ===
|
|
6278
|
+
if (c === Ws)
|
|
6278
6279
|
continue;
|
|
6279
6280
|
let d = c;
|
|
6280
6281
|
const p = h?.valueMap;
|
|
6281
|
-
if (
|
|
6282
|
+
if (Ct(p)) {
|
|
6282
6283
|
const u = p[String(c)];
|
|
6283
6284
|
u !== void 0 && (d = u);
|
|
6284
6285
|
}
|
|
6285
|
-
if (!
|
|
6286
|
-
const u =
|
|
6286
|
+
if (!kn(h, d, s) && (d !== c && ht(l, d, c), h?.formatter !== void 0)) {
|
|
6287
|
+
const u = Fi({
|
|
6287
6288
|
columnField: e,
|
|
6288
6289
|
formatter: h.formatter,
|
|
6289
6290
|
formatterParams: h.formatterParams,
|
|
@@ -6293,19 +6294,19 @@ function kn(n, e) {
|
|
|
6293
6294
|
table: r
|
|
6294
6295
|
});
|
|
6295
6296
|
for (const f of u)
|
|
6296
|
-
|
|
6297
|
+
ht(l, f, c);
|
|
6297
6298
|
}
|
|
6298
6299
|
}
|
|
6299
6300
|
return l;
|
|
6300
6301
|
}
|
|
6301
6302
|
function Dn(n) {
|
|
6302
6303
|
const { formatterParams: e, rawValue: t } = n;
|
|
6303
|
-
if (!
|
|
6304
|
+
if (!Ct(e))
|
|
6304
6305
|
return [];
|
|
6305
6306
|
const i = e[String(t)];
|
|
6306
6307
|
return i == null || i === t ? [] : [i];
|
|
6307
6308
|
}
|
|
6308
|
-
function
|
|
6309
|
+
function zn(n) {
|
|
6309
6310
|
const { formatterParams: e, rawValue: t, separator: i, table: s } = n;
|
|
6310
6311
|
if (!Array.isArray(t))
|
|
6311
6312
|
return [];
|
|
@@ -6314,7 +6315,7 @@ function Ln(n) {
|
|
|
6314
6315
|
if (typeof r == "string") {
|
|
6315
6316
|
const l = r, h = i ?? (typeof s?.options?.nestedFieldSeparator == "string" ? s.options.nestedFieldSeparator : void 0);
|
|
6316
6317
|
a = t.map(
|
|
6317
|
-
(c) =>
|
|
6318
|
+
(c) => L.retrieveNestedData(h, l, c)
|
|
6318
6319
|
);
|
|
6319
6320
|
} else if (typeof r == "function") {
|
|
6320
6321
|
const l = U(() => r(t));
|
|
@@ -6322,7 +6323,7 @@ function Ln(n) {
|
|
|
6322
6323
|
}
|
|
6323
6324
|
return [a.join(o)];
|
|
6324
6325
|
}
|
|
6325
|
-
function
|
|
6326
|
+
function Fn(n) {
|
|
6326
6327
|
const { formatterParams: e, rawValue: t } = n;
|
|
6327
6328
|
if (t == null || t === "")
|
|
6328
6329
|
return [];
|
|
@@ -6330,27 +6331,27 @@ function zn(n) {
|
|
|
6330
6331
|
if (typeof s == "function") {
|
|
6331
6332
|
const r = U(() => s(t));
|
|
6332
6333
|
if (typeof r == "string" && r.length > 0)
|
|
6333
|
-
return
|
|
6334
|
+
return ht(i, r, t), i;
|
|
6334
6335
|
}
|
|
6335
6336
|
const o = e?.tagContentMap;
|
|
6336
|
-
if (
|
|
6337
|
+
if (Ct(o)) {
|
|
6337
6338
|
const r = o[String(t)];
|
|
6338
|
-
|
|
6339
|
+
ht(i, r, t);
|
|
6339
6340
|
}
|
|
6340
6341
|
return i;
|
|
6341
6342
|
}
|
|
6342
|
-
function
|
|
6343
|
+
function On(n) {
|
|
6343
6344
|
const { formatterParams: e, rawValue: t, rowData: i, separator: s, table: o } = n;
|
|
6344
6345
|
if (!e)
|
|
6345
6346
|
return [];
|
|
6346
6347
|
let r = t, a = !1;
|
|
6347
6348
|
if (typeof e.labelField == "string") {
|
|
6348
6349
|
const l = s ?? (typeof o?.options?.nestedFieldSeparator == "string" ? o.options.nestedFieldSeparator : void 0);
|
|
6349
|
-
r = l ?
|
|
6350
|
+
r = l ? L.retrieveNestedData(l, e.labelField, i) : i?.[e.labelField], a = !0;
|
|
6350
6351
|
}
|
|
6351
6352
|
return typeof e.label == "string" && (r = e.label, a = !0), a ? r != null && r !== t ? [r] : [] : [];
|
|
6352
6353
|
}
|
|
6353
|
-
function
|
|
6354
|
+
function Pn(n) {
|
|
6354
6355
|
const { formatterParams: e, rawValue: t } = n, i = e ?? {}, s = parseFloat(String(t));
|
|
6355
6356
|
if (Number.isNaN(s))
|
|
6356
6357
|
return [];
|
|
@@ -6368,8 +6369,8 @@ function On(n) {
|
|
|
6368
6369
|
let b = m + y;
|
|
6369
6370
|
return i.negativeSign === !0 ? (b = "(" + b + ")", [h ? b + l : l + b]) : [h ? p + b + l : p + l + b];
|
|
6370
6371
|
}
|
|
6371
|
-
const
|
|
6372
|
-
function
|
|
6372
|
+
const Rt = /* @__PURE__ */ new WeakMap();
|
|
6373
|
+
function ms(n) {
|
|
6373
6374
|
const e = {
|
|
6374
6375
|
style: n.type ?? "decimal",
|
|
6375
6376
|
useGrouping: !n.noGrouping
|
|
@@ -6386,90 +6387,90 @@ function gs(n) {
|
|
|
6386
6387
|
n[i] !== void 0 && (e[i] = n[i]);
|
|
6387
6388
|
return e.style === "currency" && e.currency === void 0 && (e.currency = "USD"), e;
|
|
6388
6389
|
}
|
|
6389
|
-
function
|
|
6390
|
+
function Hn(n) {
|
|
6390
6391
|
if (!n || typeof n != "object")
|
|
6391
|
-
return U(() => new Intl.NumberFormat(void 0,
|
|
6392
|
-
if (
|
|
6393
|
-
return
|
|
6394
|
-
const e = U(() => new Intl.NumberFormat(void 0,
|
|
6395
|
-
return
|
|
6392
|
+
return U(() => new Intl.NumberFormat(void 0, ms({}))) ?? null;
|
|
6393
|
+
if (Rt.has(n))
|
|
6394
|
+
return Rt.get(n) ?? null;
|
|
6395
|
+
const e = U(() => new Intl.NumberFormat(void 0, ms(n))) ?? null;
|
|
6396
|
+
return Rt.set(n, e), e;
|
|
6396
6397
|
}
|
|
6397
|
-
function
|
|
6398
|
+
function An(n) {
|
|
6398
6399
|
const { formatterParams: e, rawValue: t } = n;
|
|
6399
6400
|
if (t == null || t === "")
|
|
6400
6401
|
return [];
|
|
6401
6402
|
const i = Number(t);
|
|
6402
6403
|
if (Number.isNaN(i))
|
|
6403
6404
|
return [];
|
|
6404
|
-
const s =
|
|
6405
|
+
const s = Hn(e);
|
|
6405
6406
|
if (!s)
|
|
6406
6407
|
return [];
|
|
6407
6408
|
const o = U(() => s.format(i));
|
|
6408
6409
|
return o ? [o] : [];
|
|
6409
6410
|
}
|
|
6410
|
-
function
|
|
6411
|
+
function Gs(n) {
|
|
6411
6412
|
return n?.dependencyRegistry?.lookup?.(
|
|
6412
6413
|
["luxon", "DateTime"],
|
|
6413
6414
|
"DateTime"
|
|
6414
6415
|
);
|
|
6415
6416
|
}
|
|
6416
|
-
function
|
|
6417
|
+
function js(n, e, t) {
|
|
6417
6418
|
return n.isDateTime(e) ? e : t === "iso" ? n.fromISO(String(e)) : n.fromFormat(String(e), t);
|
|
6418
6419
|
}
|
|
6419
|
-
function
|
|
6420
|
+
function at(n, e) {
|
|
6420
6421
|
return typeof n == "string" && n.length > 0 && n !== e ? [n] : [];
|
|
6421
6422
|
}
|
|
6422
|
-
function
|
|
6423
|
-
const { formatterParams: e, rawValue: t, table: i } = n, s =
|
|
6423
|
+
function _n(n) {
|
|
6424
|
+
const { formatterParams: e, rawValue: t, table: i } = n, s = Gs(i), o = e ?? {}, r = o.invalidPlaceholder ?? "";
|
|
6424
6425
|
if (!s)
|
|
6425
6426
|
return [];
|
|
6426
|
-
const a = o.inputFormat ?? "yyyy-MM-dd HH:mm:ss", l = o.outputFormat ?? "dd/MM/yyyy HH:mm:ss", h = U(() =>
|
|
6427
|
+
const a = o.inputFormat ?? "yyyy-MM-dd HH:mm:ss", l = o.outputFormat ?? "dd/MM/yyyy HH:mm:ss", h = U(() => js(s, t, a));
|
|
6427
6428
|
if (!h?.isValid)
|
|
6428
|
-
return
|
|
6429
|
+
return at(r, t);
|
|
6429
6430
|
const c = o.timezone ? U(() => h.setZone(o.timezone)) ?? h : h, d = U(() => c.toFormat(l));
|
|
6430
6431
|
return d ? [d] : [];
|
|
6431
6432
|
}
|
|
6432
|
-
function
|
|
6433
|
-
const { formatterParams: e, rawValue: t, table: i } = n, s =
|
|
6433
|
+
function Nn(n) {
|
|
6434
|
+
const { formatterParams: e, rawValue: t, table: i } = n, s = Gs(i), o = e ?? {}, r = o.invalidPlaceholder ?? "";
|
|
6434
6435
|
if (!s)
|
|
6435
|
-
return
|
|
6436
|
+
return at(r, t);
|
|
6436
6437
|
const a = o.inputFormat ?? "yyyy-MM-dd HH:mm:ss", l = o.suffix === void 0 || o.suffix === null ? !1 : o.suffix, h = o.unit === void 0 || o.unit === null ? "days" : o.unit, c = o.humanize === void 0 || o.humanize === null ? !1 : o.humanize, d = o.date === void 0 || o.date === null ? U(() => s.now()) : o.date;
|
|
6437
6438
|
if (!d)
|
|
6438
|
-
return
|
|
6439
|
-
const p = U(() =>
|
|
6439
|
+
return at(r, t);
|
|
6440
|
+
const p = U(() => js(s, t, a));
|
|
6440
6441
|
if (!p?.isValid)
|
|
6441
|
-
return
|
|
6442
|
+
return at(r, t);
|
|
6442
6443
|
const u = U(() => c ? p.diff(d, h).toHuman() + (l ? " " + l : "") : Number.parseInt(String(p.diff(d, h)[h]), 10) + (l ? " " + l : ""));
|
|
6443
6444
|
return u != null ? [u] : [];
|
|
6444
6445
|
}
|
|
6445
|
-
function
|
|
6446
|
+
function Vn(n, e) {
|
|
6446
6447
|
if (n == null)
|
|
6447
6448
|
return;
|
|
6448
6449
|
let t = String(n);
|
|
6449
6450
|
const i = e?.prefix, s = e?.suffix;
|
|
6450
6451
|
return typeof i == "string" && i.length > 0 && (t = i + t), typeof s == "string" && s.length > 0 && (t = t + s), t;
|
|
6451
6452
|
}
|
|
6452
|
-
function
|
|
6453
|
-
const { formatterParams: e, rawValue: t } = n, i =
|
|
6453
|
+
function $s(n) {
|
|
6454
|
+
const { formatterParams: e, rawValue: t } = n, i = Vn(t, e);
|
|
6454
6455
|
return i === void 0 || i === String(t) ? [] : [i];
|
|
6455
6456
|
}
|
|
6456
|
-
function
|
|
6457
|
-
return
|
|
6457
|
+
function In(n) {
|
|
6458
|
+
return $s(n);
|
|
6458
6459
|
}
|
|
6459
|
-
function
|
|
6460
|
+
function Us(n) {
|
|
6460
6461
|
if (typeof n.rawValue != "string" || !n.rawValue.includes("<"))
|
|
6461
6462
|
return [];
|
|
6462
|
-
const e =
|
|
6463
|
+
const e = Tn(n.rawValue);
|
|
6463
6464
|
return !e || e === n.rawValue ? [] : [e];
|
|
6464
6465
|
}
|
|
6465
|
-
function In(n) {
|
|
6466
|
-
return $s(n);
|
|
6467
|
-
}
|
|
6468
6466
|
function Bn(n) {
|
|
6467
|
+
return Us(n);
|
|
6468
|
+
}
|
|
6469
|
+
function Wn(n) {
|
|
6469
6470
|
const { formatterParams: e, rawValue: t } = n, i = e ?? {}, s = i.indent ?? " ", o = i.replacer ?? null, r = U(() => JSON.stringify(t, o, s));
|
|
6470
6471
|
return r === void 0 || r === t ? [] : [r];
|
|
6471
6472
|
}
|
|
6472
|
-
function
|
|
6473
|
+
function Gn(n, e) {
|
|
6473
6474
|
const { formatterParams: t, rawValue: i, rowData: s, separator: o, table: r } = n, a = t ?? {};
|
|
6474
6475
|
let l;
|
|
6475
6476
|
if (typeof a.formatterLookup == "function") {
|
|
@@ -6496,7 +6497,7 @@ function Wn(n, e) {
|
|
|
6496
6497
|
return a.paramsLookup && (typeof a.paramsLookup == "function" ? h = U(() => a.paramsLookup(l, {
|
|
6497
6498
|
getData: () => s,
|
|
6498
6499
|
getValue: () => i
|
|
6499
|
-
})) :
|
|
6500
|
+
})) : Ct(a.paramsLookup) && (h = a.paramsLookup[l])), Fi({
|
|
6500
6501
|
columnField: e,
|
|
6501
6502
|
formatter: l,
|
|
6502
6503
|
formatterParams: h,
|
|
@@ -6506,22 +6507,22 @@ function Wn(n, e) {
|
|
|
6506
6507
|
table: r
|
|
6507
6508
|
});
|
|
6508
6509
|
}
|
|
6509
|
-
const
|
|
6510
|
-
array:
|
|
6511
|
-
datetime:
|
|
6512
|
-
datetimediff:
|
|
6513
|
-
html:
|
|
6514
|
-
json:
|
|
6515
|
-
link:
|
|
6510
|
+
const jn = {
|
|
6511
|
+
array: zn,
|
|
6512
|
+
datetime: _n,
|
|
6513
|
+
datetimediff: Nn,
|
|
6514
|
+
html: Us,
|
|
6515
|
+
json: Wn,
|
|
6516
|
+
link: On,
|
|
6516
6517
|
lookup: Dn,
|
|
6517
|
-
money:
|
|
6518
|
-
number:
|
|
6519
|
-
plaintext:
|
|
6520
|
-
tag:
|
|
6521
|
-
textarea:
|
|
6522
|
-
typography:
|
|
6518
|
+
money: Pn,
|
|
6519
|
+
number: An,
|
|
6520
|
+
plaintext: $s,
|
|
6521
|
+
tag: Fn,
|
|
6522
|
+
textarea: Bn,
|
|
6523
|
+
typography: In
|
|
6523
6524
|
};
|
|
6524
|
-
function
|
|
6525
|
+
function Fi(n) {
|
|
6525
6526
|
const e = n.formatter;
|
|
6526
6527
|
if (typeof e != "string")
|
|
6527
6528
|
return [];
|
|
@@ -6533,20 +6534,20 @@ function zi(n) {
|
|
|
6533
6534
|
table: n.table
|
|
6534
6535
|
};
|
|
6535
6536
|
if (e === "composite")
|
|
6536
|
-
return
|
|
6537
|
+
return Ln(t, n.columnField);
|
|
6537
6538
|
if (e === "adaptable")
|
|
6538
|
-
return
|
|
6539
|
-
const i =
|
|
6539
|
+
return Gn(t, n.columnField);
|
|
6540
|
+
const i = jn[e];
|
|
6540
6541
|
return i ? i(t) : [];
|
|
6541
6542
|
}
|
|
6542
|
-
function
|
|
6543
|
+
function $n(n, e, t, i, s) {
|
|
6543
6544
|
let o;
|
|
6544
6545
|
s?.has(e) ? o = s.get(e) : (o = n?.columnManager?.getColumnByField?.(e) ?? null, s?.set(e, o ?? null));
|
|
6545
6546
|
const r = o?.definition;
|
|
6546
6547
|
if (!r)
|
|
6547
6548
|
return [];
|
|
6548
6549
|
const a = n?.options?.nestedFieldSeparator, l = typeof a == "string" ? a : void 0;
|
|
6549
|
-
return
|
|
6550
|
+
return Fi({
|
|
6550
6551
|
columnField: e,
|
|
6551
6552
|
formatter: r.formatter,
|
|
6552
6553
|
formatterParams: r.formatterParams,
|
|
@@ -6979,7 +6980,7 @@ const K = process.env.NODE_ENV === "development", se = class se extends S {
|
|
|
6979
6980
|
}
|
|
6980
6981
|
if (h(l.value, f, a, c))
|
|
6981
6982
|
return !0;
|
|
6982
|
-
const m =
|
|
6983
|
+
const m = $n(
|
|
6983
6984
|
t,
|
|
6984
6985
|
u,
|
|
6985
6986
|
f,
|
|
@@ -7185,9 +7186,9 @@ const K = process.env.NODE_ENV === "development", se = class se extends S {
|
|
|
7185
7186
|
}) : i = e.func(t), i;
|
|
7186
7187
|
}
|
|
7187
7188
|
};
|
|
7188
|
-
se.moduleName = "filter", se.filters =
|
|
7189
|
-
let
|
|
7190
|
-
const
|
|
7189
|
+
se.moduleName = "filter", se.filters = Rn;
|
|
7190
|
+
let jt = se;
|
|
7191
|
+
const Un = process.env.NODE_ENV === "development", _i = class _i extends S {
|
|
7191
7192
|
constructor(e) {
|
|
7192
7193
|
super(e), this.leftColumns = [], this.rightColumns = [], this.initializationMode = "left", this.active = !1, this.blocked = !0, this.registerColumnOption("frozen");
|
|
7193
7194
|
}
|
|
@@ -7218,7 +7219,7 @@ const $n = process.env.NODE_ENV === "development", Ai = class Ai extends S {
|
|
|
7218
7219
|
e.isGroup || (this.frozenCheck(e) ? (t.position = this.initializationMode, this.initializationMode === "left" ? this.leftColumns.push(e) : this.rightColumns.unshift(e), this.active = !0, e.modules.frozen = t) : this.initializationMode = "right");
|
|
7219
7220
|
}
|
|
7220
7221
|
frozenCheck(e) {
|
|
7221
|
-
return e.parent instanceof q && e.parent.isGroup && e.definition.frozen &&
|
|
7222
|
+
return e.parent instanceof q && e.parent.isGroup && e.definition.frozen && Un && console.warn(
|
|
7222
7223
|
"Frozen Column Error - Parent column group must be frozen, not individual columns or sub column groups"
|
|
7223
7224
|
), e.parent instanceof q && e.parent.isGroup ? this.frozenCheck(e.parent) : !!e.definition.frozen;
|
|
7224
7225
|
}
|
|
@@ -7311,9 +7312,9 @@ const $n = process.env.NODE_ENV === "development", Ai = class Ai extends S {
|
|
|
7311
7312
|
return i;
|
|
7312
7313
|
}
|
|
7313
7314
|
};
|
|
7314
|
-
|
|
7315
|
-
let
|
|
7316
|
-
const
|
|
7315
|
+
_i.moduleName = "frozenColumns";
|
|
7316
|
+
let $t = _i;
|
|
7317
|
+
const bs = process.env.NODE_ENV === "development", Ni = class Ni extends S {
|
|
7317
7318
|
constructor(e) {
|
|
7318
7319
|
super(e), this.topElement = document.createElement("div"), this.rows = [], this.registerComponentFunction("row", "freeze", this.freezeRow.bind(this)), this.registerComponentFunction(
|
|
7319
7320
|
"row",
|
|
@@ -7378,11 +7379,11 @@ const ms = process.env.NODE_ENV === "development", _i = class _i extends S {
|
|
|
7378
7379
|
}
|
|
7379
7380
|
freezeRow(e) {
|
|
7380
7381
|
const t = e._getSelf ? e._getSelf() : e._row;
|
|
7381
|
-
t && (t.modules.frozen ?
|
|
7382
|
+
t && (t.modules.frozen ? bs && console.warn("Freeze Error - Row is already frozen") : (t.modules.frozen = !0, this.topElement.appendChild(t.getElement()), t.initialize(), t.normalizeHeight(), this.rows.push(t), this.refreshData(!1, "display"), this.table.rowManager?.adjustTableSize(), this.styleRows()));
|
|
7382
7383
|
}
|
|
7383
7384
|
unfreezeRow(e) {
|
|
7384
7385
|
const t = e._getSelf ? e._getSelf() : e._row;
|
|
7385
|
-
t && (t.modules.frozen ? (t.modules.frozen = !1, this.detachRow(t), this.table.rowManager?.adjustTableSize(), this.refreshData(!1, "display"), this.rows.length && this.styleRows()) :
|
|
7386
|
+
t && (t.modules.frozen ? (t.modules.frozen = !1, this.detachRow(t), this.table.rowManager?.adjustTableSize(), this.refreshData(!1, "display"), this.rows.length && this.styleRows()) : bs && console.warn("Freeze Error - Row is already unfrozen"));
|
|
7386
7387
|
}
|
|
7387
7388
|
detachRow(e) {
|
|
7388
7389
|
const t = this.rows.indexOf(e);
|
|
@@ -7398,11 +7399,11 @@ const ms = process.env.NODE_ENV === "development", _i = class _i extends S {
|
|
|
7398
7399
|
});
|
|
7399
7400
|
}
|
|
7400
7401
|
};
|
|
7401
|
-
|
|
7402
|
-
let
|
|
7403
|
-
const
|
|
7402
|
+
Ni.moduleName = "frozenRows";
|
|
7403
|
+
let Ut = Ni;
|
|
7404
|
+
const Kn = process.env.NODE_ENV === "development", Xn = E`<cx-icon-button class="tabulator-group-toggle" name="keyboard_arrow_down"></cx-icon-button>`, Jn = E`<div class="tabulator-group-level-indent"></div>`, qn = E`<cx-button size="small"><cx-icon slot="prefix" name="add" variant="outlined"></cx-icon>
|
|
7404
7405
|
Load More
|
|
7405
|
-
</cx-button>`,
|
|
7406
|
+
</cx-button>`, Yn = E`<div class="tabulator-data-tree-loading">Loading...</div>`;
|
|
7406
7407
|
class Oe {
|
|
7407
7408
|
constructor(e, t, i, s, o, r, a) {
|
|
7408
7409
|
this._loadMoreRow = !1, this._loadMoreStateKey = "", this.groupManager = e, this.parent = t, this.key = s, this.level = i, this.field = o, this.hasSubGroups = e.groupIDLookups !== !1 && i < e.groupIDLookups.length - 1, this.addRow = this.hasSubGroups ? this._addRowToGroup : this._addRow, this.type = "group", this.old = a, this.rows = [], this.groups = {}, this.groupList = [], this.generator = r, this.element = !1, this.elementContents = !1, this.height = 0, this.outerHeight = 0, this.initialized = !1, this.heightInitialized = !1, this.calcs = {}, this.modules = {}, this.arrowElement = !1, this.visible = a ? a.visible : e.startOpen[i] === void 0 || e.startOpen[i] === null ? e.startOpen[0] : e.startOpen[i], this.component = null, this.createElements(), this.addBindings(), this.createValueGroups();
|
|
@@ -7421,7 +7422,7 @@ class Oe {
|
|
|
7421
7422
|
this.element = document.createElement("div"), this.element.classList.add("tabulator-row"), this.element.classList.add("tabulator-group"), this.element.classList.add("tabulator-group-level-" + this.level), this.element.setAttribute(
|
|
7422
7423
|
"role",
|
|
7423
7424
|
this.groupManager.table.options.rowGroupRole ?? "rowgroup"
|
|
7424
|
-
), this.arrowElement = k(
|
|
7425
|
+
), this.arrowElement = k(Xn), this.groupManager.table.options.movableRows !== !1 && this.groupManager.table.modExists("moveRow") && this.groupManager.table.modules.moveRow.initializeGroupHeader(
|
|
7425
7426
|
this
|
|
7426
7427
|
);
|
|
7427
7428
|
}
|
|
@@ -7485,7 +7486,7 @@ class Oe {
|
|
|
7485
7486
|
let s = i.querySelector(
|
|
7486
7487
|
".tabulator-group-level-indent"
|
|
7487
7488
|
);
|
|
7488
|
-
s || (s = k(
|
|
7489
|
+
s || (s = k(Jn), i.insertBefore(s, i.firstChild)), s.style.marginLeft = `${(this.level + 1) * (this.groupManager.table.options.groupIndent ?? 36)}px`, s.dataset.groupLevel = this.level.toString();
|
|
7489
7490
|
}
|
|
7490
7491
|
}
|
|
7491
7492
|
insertRow(e, t, i) {
|
|
@@ -7506,7 +7507,7 @@ class Oe {
|
|
|
7506
7507
|
}
|
|
7507
7508
|
// update row data to match grouping constraints
|
|
7508
7509
|
conformRowData(e) {
|
|
7509
|
-
return this.field ? e[this.field] = this.key :
|
|
7510
|
+
return this.field ? e[this.field] = this.key : Kn && console.warn(
|
|
7510
7511
|
"Data Conforming Error - Cannot conform row data to match new group as groupBy is a function"
|
|
7511
7512
|
), this.parent && (e = this.parent.conformRowData(e)), e;
|
|
7512
7513
|
}
|
|
@@ -7522,16 +7523,16 @@ class Oe {
|
|
|
7522
7523
|
this.groups[t] && (delete this.groups[t], i = this.groupList.indexOf(e), i > -1 && this.groupList.splice(i, 1), this.groupList.length || (this.parent ? this.parent.removeGroup(this) : this.groupManager.removeGroup(this)));
|
|
7523
7524
|
}
|
|
7524
7525
|
getPathKey() {
|
|
7525
|
-
return
|
|
7526
|
+
return As(ki(this));
|
|
7526
7527
|
}
|
|
7527
7528
|
getLoadMoreState() {
|
|
7528
|
-
return
|
|
7529
|
+
return ko(
|
|
7529
7530
|
this.groupManager.table.options.groupLoadMoreMeta,
|
|
7530
7531
|
this.getPathKey()
|
|
7531
7532
|
);
|
|
7532
7533
|
}
|
|
7533
7534
|
getGroupLoadMoreEventPayload() {
|
|
7534
|
-
return
|
|
7535
|
+
return Lo(this);
|
|
7535
7536
|
}
|
|
7536
7537
|
generateLoadMoreRow() {
|
|
7537
7538
|
const e = this.getLoadMoreState(), t = `hasMore:${!!e?.hasMore}|loading:${!!e?.loading}`;
|
|
@@ -7541,15 +7542,15 @@ class Oe {
|
|
|
7541
7542
|
const i = this.groupManager.table.rowManager;
|
|
7542
7543
|
if (!e?.hasMore || !i)
|
|
7543
7544
|
return this._loadMoreRow = !1, !1;
|
|
7544
|
-
const s = new
|
|
7545
|
+
const s = new Vt(
|
|
7545
7546
|
{ id: `group-load-more:${this.getPathKey()}` },
|
|
7546
7547
|
i
|
|
7547
|
-
), o = (this.level + 1) * (this.groupManager.table.options.groupIndent ??
|
|
7548
|
+
), o = (this.level + 1) * (this.groupManager.table.options.groupIndent ?? Os);
|
|
7548
7549
|
if (s.create(), e.loading) {
|
|
7549
|
-
const l = k(
|
|
7550
|
+
const l = k(Yn);
|
|
7550
7551
|
return s.element.appendChild(l), this.applyGroupIndent(l, o), this._loadMoreRow = s, s;
|
|
7551
7552
|
}
|
|
7552
|
-
const r = k(
|
|
7553
|
+
const r = k(qn), a = this.getGroupLoadMoreEventPayload();
|
|
7553
7554
|
return s.element.appendChild(r), this.applyGroupIndent(r, o), r.addEventListener("click", (l) => {
|
|
7554
7555
|
l.preventDefault(), l.stopPropagation(), l.stopImmediatePropagation(), this.groupManager.table.externalEvents?.dispatch("groupLoadMore", a);
|
|
7555
7556
|
}), this._loadMoreRow = s, s;
|
|
@@ -7738,7 +7739,7 @@ class Oe {
|
|
|
7738
7739
|
(!this.initialized || e) && (this.normalizeHeight(), this.initialized = !0);
|
|
7739
7740
|
}
|
|
7740
7741
|
reinitialize() {
|
|
7741
|
-
this.initialized = !1, this.heightInitialized = !1, this.height = 0, this.element &&
|
|
7742
|
+
this.initialized = !1, this.heightInitialized = !1, this.height = 0, this.element && L.elVisible(this.element) && this.initialize(!0);
|
|
7742
7743
|
}
|
|
7743
7744
|
setHeight(e) {
|
|
7744
7745
|
this.height !== e && (this.height = e, this.element && (this.outerHeight = this.element.offsetHeight));
|
|
@@ -7768,10 +7769,10 @@ class Oe {
|
|
|
7768
7769
|
}
|
|
7769
7770
|
// ////////////// Object Generation /////////////////
|
|
7770
7771
|
getComponent() {
|
|
7771
|
-
return this.component ??= new
|
|
7772
|
+
return this.component ??= new _s(this), this.component;
|
|
7772
7773
|
}
|
|
7773
7774
|
}
|
|
7774
|
-
const
|
|
7775
|
+
const St = process.env.NODE_ENV === "development", Vi = class Vi extends S {
|
|
7775
7776
|
constructor(e) {
|
|
7776
7777
|
super(e), this.groupIDLookups = !1, this.startOpen = [
|
|
7777
7778
|
function() {
|
|
@@ -7781,7 +7782,7 @@ const Rt = process.env.NODE_ENV === "development", Ni = class Ni extends S {
|
|
|
7781
7782
|
function() {
|
|
7782
7783
|
return "";
|
|
7783
7784
|
}
|
|
7784
|
-
], this.groupList = [], this.allowedValues = !1, this.groups = {}, this.displayHandler = this.getRows.bind(this), this.blockRedraw = !1, this.initialized = !1, this.registerTableOption("groupBy", !1), this.registerTableOption("groupStartOpen", !0), this.registerTableOption("groupValues", !1), this.registerTableOption("groupUpdateOnCellEdit", !1), this.registerTableOption("groupHeader", !1), this.registerTableOption("groupHeaderPrint", null), this.registerTableOption("groupHeaderClipboard", null), this.registerTableOption("groupHeaderHtmlOutput", null), this.registerTableOption("groupHeaderDownload", null), this.registerTableOption("groupToggleElement", "arrow"), this.registerTableOption("groupClosedShowCalcs", !1), this.registerTableOption("groupHeaderCount", !1), this.registerTableOption("groupIndent",
|
|
7785
|
+
], this.groupList = [], this.allowedValues = !1, this.groups = {}, this.displayHandler = this.getRows.bind(this), this.blockRedraw = !1, this.initialized = !1, this.registerTableOption("groupBy", !1), this.registerTableOption("groupStartOpen", !0), this.registerTableOption("groupValues", !1), this.registerTableOption("groupUpdateOnCellEdit", !1), this.registerTableOption("groupHeader", !1), this.registerTableOption("groupHeaderPrint", null), this.registerTableOption("groupHeaderClipboard", null), this.registerTableOption("groupHeaderHtmlOutput", null), this.registerTableOption("groupHeaderDownload", null), this.registerTableOption("groupToggleElement", "arrow"), this.registerTableOption("groupClosedShowCalcs", !1), this.registerTableOption("groupHeaderCount", !1), this.registerTableOption("groupIndent", Os), this.registerTableOption("groupLoadMoreMeta", {}), this.registerTableFunction("setGroupBy", this.setGroupBy.bind(this)), this.registerTableFunction(
|
|
7785
7786
|
"setGroupValues",
|
|
7786
7787
|
this.setGroupValues.bind(this)
|
|
7787
7788
|
), this.registerTableFunction(
|
|
@@ -7826,7 +7827,7 @@ const Rt = process.env.NODE_ENV === "development", Ni = class Ni extends S {
|
|
|
7826
7827
|
if (this.table.options.groupBy) {
|
|
7827
7828
|
let e = this.table.options.groupBy, t = this.table.options.groupStartOpen;
|
|
7828
7829
|
const i = this.table.options.groupHeader;
|
|
7829
|
-
this.allowedValues = this.table.options.groupValues || !1, Array.isArray(e) && Array.isArray(i) && e.length > i.length &&
|
|
7830
|
+
this.allowedValues = this.table.options.groupValues || !1, Array.isArray(e) && Array.isArray(i) && e.length > i.length && St && console.warn(
|
|
7830
7831
|
"Error creating group headers, groupHeader array is shorter than groupBy array"
|
|
7831
7832
|
), this.headerGenerator = [
|
|
7832
7833
|
function() {
|
|
@@ -7916,7 +7917,7 @@ const Rt = process.env.NODE_ENV === "development", Ni = class Ni extends S {
|
|
|
7916
7917
|
this.table.options.groupValues = e, this.configureGroupSetup(), this.refreshData(), this.trackChanges();
|
|
7917
7918
|
}
|
|
7918
7919
|
setGroupStartOpen(e) {
|
|
7919
|
-
this.table.options.groupStartOpen = e, this.configureGroupSetup(), this.table.options.groupBy ? (this.refreshData(), this.trackChanges()) :
|
|
7920
|
+
this.table.options.groupStartOpen = e, this.configureGroupSetup(), this.table.options.groupBy ? (this.refreshData(), this.trackChanges()) : St && console.warn(
|
|
7920
7921
|
"Grouping Update - cant refresh view, no groups have been set"
|
|
7921
7922
|
);
|
|
7922
7923
|
}
|
|
@@ -7935,7 +7936,7 @@ const Rt = process.env.NODE_ENV === "development", Ni = class Ni extends S {
|
|
|
7935
7936
|
});
|
|
7936
7937
|
}
|
|
7937
7938
|
setGroupHeader(e) {
|
|
7938
|
-
this.table.options.groupHeader = e || void 0, this.configureGroupSetup(), this.table.options.groupBy ? (this.refreshData(), this.trackChanges()) :
|
|
7939
|
+
this.table.options.groupHeader = e || void 0, this.configureGroupSetup(), this.table.options.groupBy ? (this.refreshData(), this.trackChanges()) : St && console.warn(
|
|
7939
7940
|
"Grouping Update - cant refresh view, no groups have been set"
|
|
7940
7941
|
);
|
|
7941
7942
|
}
|
|
@@ -8139,9 +8140,9 @@ const Rt = process.env.NODE_ENV === "development", Ni = class Ni extends S {
|
|
|
8139
8140
|
}), e && (t ? e.style.minWidth = (this.table.columnManager?.getWidth() || 0) + "px" : e.style.minWidth = "");
|
|
8140
8141
|
}
|
|
8141
8142
|
};
|
|
8142
|
-
|
|
8143
|
-
let
|
|
8144
|
-
const
|
|
8143
|
+
Vi.moduleName = "groupRows";
|
|
8144
|
+
let Kt = Vi;
|
|
8145
|
+
const Qn = {
|
|
8145
8146
|
cellEdit: function(n) {
|
|
8146
8147
|
"setValueProcessData" in n.component && (n.component.setValueProcessData(n.data.newValue), n.component.cellRendered());
|
|
8147
8148
|
},
|
|
@@ -8168,7 +8169,7 @@ const Yn = {
|
|
|
8168
8169
|
), this.table.rowManager.regenerateRowPositions(), this.table.rowManager.reRenderInPosition());
|
|
8169
8170
|
}
|
|
8170
8171
|
}
|
|
8171
|
-
},
|
|
8172
|
+
}, Zn = {
|
|
8172
8173
|
cellEdit: function(n) {
|
|
8173
8174
|
"setValueProcessData" in n.component && (n.component.setValueProcessData(n.data.oldValue), n.component.cellRendered());
|
|
8174
8175
|
},
|
|
@@ -8195,7 +8196,7 @@ const Yn = {
|
|
|
8195
8196
|
), this.table.rowManager.regenerateRowPositions(), this.table.rowManager.reRenderInPosition());
|
|
8196
8197
|
}
|
|
8197
8198
|
}
|
|
8198
|
-
},
|
|
8199
|
+
}, ea = {
|
|
8199
8200
|
redo: function(n) {
|
|
8200
8201
|
let e;
|
|
8201
8202
|
this.table.options.history && this.table.modExists("history") && this.table.modExists("edit") && (e = this.table.modules.edit?.currentCell, e || (n.preventDefault(), this.table.modules.history?.redo()));
|
|
@@ -8204,15 +8205,15 @@ const Yn = {
|
|
|
8204
8205
|
let e;
|
|
8205
8206
|
this.table.options.history && this.table.modExists("history") && this.table.modExists("edit") && (e = this.table.modules.edit?.currentCell, e || (n.preventDefault(), this.table.modules.history?.undo()));
|
|
8206
8207
|
}
|
|
8207
|
-
},
|
|
8208
|
+
}, ta = {
|
|
8208
8209
|
redo: ["ctrl + 89", "meta + 89"],
|
|
8209
8210
|
undo: ["ctrl + 90", "meta + 90"]
|
|
8210
|
-
},
|
|
8211
|
+
}, ia = {
|
|
8211
8212
|
keybindings: {
|
|
8212
|
-
actions:
|
|
8213
|
-
bindings:
|
|
8213
|
+
actions: ea,
|
|
8214
|
+
bindings: ta
|
|
8214
8215
|
}
|
|
8215
|
-
},
|
|
8216
|
+
}, ws = process.env.NODE_ENV === "development", oe = class oe extends S {
|
|
8216
8217
|
constructor(e) {
|
|
8217
8218
|
super(e), this.history = [], this.index = -1, this.registerTableOption("history", !1);
|
|
8218
8219
|
}
|
|
@@ -8294,7 +8295,7 @@ const Yn = {
|
|
|
8294
8295
|
e.component.getComponent(),
|
|
8295
8296
|
e.data
|
|
8296
8297
|
), !0;
|
|
8297
|
-
} else
|
|
8298
|
+
} else ws && console.warn(
|
|
8298
8299
|
this.options("history") ? "History Undo Error - No more history to undo" : "History module not enabled"
|
|
8299
8300
|
);
|
|
8300
8301
|
return !1;
|
|
@@ -8310,7 +8311,7 @@ const Yn = {
|
|
|
8310
8311
|
e.component.getComponent(),
|
|
8311
8312
|
e.data
|
|
8312
8313
|
), !0;
|
|
8313
|
-
} else
|
|
8314
|
+
} else ws && console.warn(
|
|
8314
8315
|
this.options("history") ? "History Redo Error - No more history to redo" : "History module not enabled"
|
|
8315
8316
|
);
|
|
8316
8317
|
return !1;
|
|
@@ -8330,9 +8331,9 @@ const Yn = {
|
|
|
8330
8331
|
});
|
|
8331
8332
|
}
|
|
8332
8333
|
};
|
|
8333
|
-
oe.moduleName = "history", oe.moduleExtensions =
|
|
8334
|
-
let
|
|
8335
|
-
const
|
|
8334
|
+
oe.moduleName = "history", oe.moduleExtensions = ia, oe.undoers = Zn, oe.redoers = Qn;
|
|
8335
|
+
let Xt = oe;
|
|
8336
|
+
const sa = process.env.NODE_ENV === "development", Ii = class Ii extends S {
|
|
8336
8337
|
constructor(e) {
|
|
8337
8338
|
super(e), this.fieldIndex = [], this.hasIndex = !1;
|
|
8338
8339
|
}
|
|
@@ -8340,7 +8341,7 @@ const ia = process.env.NODE_ENV === "development", Vi = class Vi extends S {
|
|
|
8340
8341
|
this.tableElementCheck();
|
|
8341
8342
|
}
|
|
8342
8343
|
tableElementCheck() {
|
|
8343
|
-
this.table.originalElement?.tagName === "TABLE" && (this.table.originalElement.childNodes.length ? this.parseTable() :
|
|
8344
|
+
this.table.originalElement?.tagName === "TABLE" && (this.table.originalElement.childNodes.length ? this.parseTable() : sa && console.warn(
|
|
8344
8345
|
"Unable to parse data from empty table tag, Tabulator should be initialized on a div tag unless importing data from a table element."
|
|
8345
8346
|
));
|
|
8346
8347
|
}
|
|
@@ -8411,12 +8412,12 @@ const ia = process.env.NODE_ENV === "development", Vi = class Vi extends S {
|
|
|
8411
8412
|
}
|
|
8412
8413
|
}
|
|
8413
8414
|
};
|
|
8414
|
-
|
|
8415
|
-
let
|
|
8416
|
-
function
|
|
8415
|
+
Ii.moduleName = "htmlTableImport";
|
|
8416
|
+
let Jt = Ii;
|
|
8417
|
+
function oa(n) {
|
|
8417
8418
|
return n;
|
|
8418
8419
|
}
|
|
8419
|
-
function
|
|
8420
|
+
function ra(n) {
|
|
8420
8421
|
const e = [];
|
|
8421
8422
|
let t = 0, i = 0, s = !1;
|
|
8422
8423
|
for (let o = 0; o < n.length; o++) {
|
|
@@ -8447,28 +8448,28 @@ function oa(n) {
|
|
|
8447
8448
|
}
|
|
8448
8449
|
return e;
|
|
8449
8450
|
}
|
|
8450
|
-
const
|
|
8451
|
-
async function
|
|
8451
|
+
const na = process.env.NODE_ENV === "development";
|
|
8452
|
+
async function aa(n) {
|
|
8452
8453
|
try {
|
|
8453
8454
|
return JSON.parse(n);
|
|
8454
8455
|
} catch (e) {
|
|
8455
|
-
throw
|
|
8456
|
+
throw na && console.warn("JSON Import Error - File contents is invalid JSON", e), new Error("Invalid JSON format");
|
|
8456
8457
|
}
|
|
8457
8458
|
}
|
|
8458
|
-
const
|
|
8459
|
+
const vs = process.env.NODE_ENV === "development", la = function(n) {
|
|
8459
8460
|
const t = this.dependencyRegistry.lookup("XLSX");
|
|
8460
8461
|
if (!t)
|
|
8461
|
-
return
|
|
8462
|
+
return vs && console.warn("XLSX library not found in dependency registry"), [];
|
|
8462
8463
|
const i = t.read(n);
|
|
8463
8464
|
if (!i.SheetNames || i.SheetNames.length === 0)
|
|
8464
|
-
return
|
|
8465
|
+
return vs && console.warn("XLSX workbook contains no sheets"), [];
|
|
8465
8466
|
const s = i.Sheets[i.SheetNames[0]];
|
|
8466
8467
|
return t.utils.sheet_to_json(s, { header: 1 });
|
|
8467
|
-
},
|
|
8468
|
-
array:
|
|
8469
|
-
csv:
|
|
8470
|
-
json:
|
|
8471
|
-
xlsx:
|
|
8468
|
+
}, ha = {
|
|
8469
|
+
array: oa,
|
|
8470
|
+
csv: ra,
|
|
8471
|
+
json: aa,
|
|
8472
|
+
xlsx: la
|
|
8472
8473
|
}, je = process.env.NODE_ENV === "development", Xe = class Xe extends S {
|
|
8473
8474
|
constructor(e) {
|
|
8474
8475
|
super(e), this.registerTableOption("importFormat"), this.registerTableOption("importReader", "text"), this.registerTableOption("importHeaderTransform"), this.registerTableOption("importValueTransform"), this.registerTableOption("importDataValidator"), this.registerTableOption("importFileValidator");
|
|
@@ -8625,9 +8626,9 @@ const ws = process.env.NODE_ENV === "development", aa = function(n) {
|
|
|
8625
8626
|
return this.dispatch("import-imported", e), this.dispatchExternal("importImported", e), this.table.dataLoader?.clearAlert(), this.table.setData(e);
|
|
8626
8627
|
}
|
|
8627
8628
|
};
|
|
8628
|
-
Xe.moduleName = "import", Xe.importers =
|
|
8629
|
-
let
|
|
8630
|
-
const
|
|
8629
|
+
Xe.moduleName = "import", Xe.importers = ha;
|
|
8630
|
+
let qt = Xe;
|
|
8631
|
+
const Bi = class Bi extends S {
|
|
8631
8632
|
constructor(e) {
|
|
8632
8633
|
super(e), this.eventMap = {
|
|
8633
8634
|
// cell events
|
|
@@ -8809,9 +8810,9 @@ const Ii = class Ii extends S {
|
|
|
8809
8810
|
this.columnSubscribers[e] && (i instanceof Ze ? o = i.column.definition[e] : i instanceof q && (o = i.definition[e]), o && o(t, s)), this.dispatchExternal(e, t, s);
|
|
8810
8811
|
}
|
|
8811
8812
|
};
|
|
8812
|
-
|
|
8813
|
-
let
|
|
8814
|
-
const
|
|
8813
|
+
Bi.moduleName = "interaction";
|
|
8814
|
+
let Yt = Bi;
|
|
8815
|
+
const ca = {
|
|
8815
8816
|
keyBlock: function(n) {
|
|
8816
8817
|
n.stopPropagation(), n.preventDefault();
|
|
8817
8818
|
},
|
|
@@ -8859,7 +8860,7 @@ const ha = {
|
|
|
8859
8860
|
const e = this.table.rowManager;
|
|
8860
8861
|
e && (n.preventDefault(), e.displayRowsCount && e.scrollToRow(e.getDisplayRows()[0]), this.table.element.focus());
|
|
8861
8862
|
}
|
|
8862
|
-
},
|
|
8863
|
+
}, da = {
|
|
8863
8864
|
navDown: 40,
|
|
8864
8865
|
navLeft: 37,
|
|
8865
8866
|
navNext: 9,
|
|
@@ -8870,7 +8871,7 @@ const ha = {
|
|
|
8870
8871
|
scrollPageUp: 33,
|
|
8871
8872
|
scrollToEnd: 35,
|
|
8872
8873
|
scrollToStart: 36
|
|
8873
|
-
},
|
|
8874
|
+
}, ua = process.env.NODE_ENV === "development", we = class we extends S {
|
|
8874
8875
|
constructor(e) {
|
|
8875
8876
|
super(e), this.watchKeys = null, this.pressedKeys = null, this.keyupBinding = !1, this.keydownBinding = !1, this.registerTableOption("keybindings", {}), this.registerTableOption("tabEndNewRow", !1);
|
|
8876
8877
|
}
|
|
@@ -8884,7 +8885,7 @@ const ha = {
|
|
|
8884
8885
|
(Array.isArray(i) ? i : [i]).forEach((o) => {
|
|
8885
8886
|
this.mapBinding(t, o);
|
|
8886
8887
|
});
|
|
8887
|
-
})) :
|
|
8888
|
+
})) : ua && console.warn("Key Binding Error - no such action:", t);
|
|
8888
8889
|
}
|
|
8889
8890
|
mapBinding(e, t) {
|
|
8890
8891
|
const i = {
|
|
@@ -8937,9 +8938,9 @@ const ha = {
|
|
|
8937
8938
|
}), i && t.action.call(this, e), !0) : !1;
|
|
8938
8939
|
}
|
|
8939
8940
|
};
|
|
8940
|
-
we.moduleName = "keybindings", we.bindings =
|
|
8941
|
-
let
|
|
8942
|
-
const
|
|
8941
|
+
we.moduleName = "keybindings", we.bindings = da, we.actions = ca;
|
|
8942
|
+
let Qt = we;
|
|
8943
|
+
const Wi = class Wi extends S {
|
|
8943
8944
|
constructor(e) {
|
|
8944
8945
|
super(e), this.menuContainer = null, this.nestedMenuBlock = !1, this.currentComponent = null, this.rootPopup = null, this.columnSubscribers = {}, this.registerTableOption("rowContextMenu", !1), this.registerTableOption("rowClickMenu", !1), this.registerTableOption("rowDblClickMenu", !1), this.registerTableOption("groupContextMenu", !1), this.registerTableOption("groupClickMenu", !1), this.registerTableOption("groupDblClickMenu", !1), this.registerColumnOption("headerContextMenu"), this.registerColumnOption("headerClickMenu"), this.registerColumnOption("headerDblClickMenu"), this.registerColumnOption("headerMenu"), this.registerColumnOption("headerMenuIcon"), this.registerColumnOption("contextMenu"), this.registerColumnOption("clickMenu"), this.registerColumnOption("dblClickMenu");
|
|
8945
8946
|
}
|
|
@@ -9062,9 +9063,9 @@ const Bi = class Bi extends S {
|
|
|
9062
9063
|
}
|
|
9063
9064
|
}
|
|
9064
9065
|
};
|
|
9065
|
-
|
|
9066
|
-
let
|
|
9067
|
-
const
|
|
9066
|
+
Wi.moduleName = "menu";
|
|
9067
|
+
let Zt = Wi;
|
|
9068
|
+
const Gi = class Gi extends S {
|
|
9068
9069
|
constructor(e) {
|
|
9069
9070
|
super(e), this.placeholderElement = this.createPlaceholderElement(), this.hoverElement = !1, this.checkTimeout = !1, this.checkPeriod = 250, this.moving = !1, this.toCol = !1, this.toColAfter = !1, this.startX = 0, this.autoScrollMargin = 40, this.autoScrollStep = 5, this.autoScrollTimeout = !1, this.touchMove = !1, this.moveHover = this.moveHover.bind(this), this.endMove = this.endMove.bind(this), this.registerTableOption("movableColumns", !1);
|
|
9070
9071
|
}
|
|
@@ -9084,7 +9085,7 @@ const Wi = class Wi extends S {
|
|
|
9084
9085
|
!e.modules.frozen && !e.isGroup && !e.isRowHeader && (s = e.getElement(), i.mousemove = function(o) {
|
|
9085
9086
|
if (t.moving && e.parent === t.moving.parent && s && s.parentNode) {
|
|
9086
9087
|
const r = t.touchMove && "touches" in o ? o.touches[0].pageX : "pageX" in o ? o.pageX : 0, a = t.table.columnManager?.contentsElement;
|
|
9087
|
-
r -
|
|
9088
|
+
r - L.elOffset(s).left + (a?.scrollLeft || 0) > e.getWidth() / 2 ? (t.toCol !== e || !t.toColAfter) && (s.parentNode.insertBefore(
|
|
9088
9089
|
t.placeholderElement,
|
|
9089
9090
|
s.nextSibling
|
|
9090
9091
|
), t.moveColumn(e, !0)) : (t.toCol !== e || t.toColAfter) && (s.parentNode.insertBefore(t.placeholderElement, s), t.moveColumn(e, !1));
|
|
@@ -9149,7 +9150,7 @@ const Wi = class Wi extends S {
|
|
|
9149
9150
|
return;
|
|
9150
9151
|
this.moving = t;
|
|
9151
9152
|
const r = this.touchMove && "touches" in e ? e.touches[0].pageX : "pageX" in e ? e.pageX : 0;
|
|
9152
|
-
this.startX = r -
|
|
9153
|
+
this.startX = r - L.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);
|
|
9153
9154
|
}
|
|
9154
9155
|
_bindMouseMove() {
|
|
9155
9156
|
this.table.columnManager?.columnsByIndex.forEach((e) => {
|
|
@@ -9204,7 +9205,7 @@ const Wi = class Wi extends S {
|
|
|
9204
9205
|
const t = this.table.columnManager?.getContentsElement();
|
|
9205
9206
|
if (!t || !this.hoverElement)
|
|
9206
9207
|
return;
|
|
9207
|
-
const i = t.scrollLeft, o = (this.touchMove && "touches" in e ? e.touches[0].pageX : "pageX" in e ? e.pageX : 0) -
|
|
9208
|
+
const i = t.scrollLeft, o = (this.touchMove && "touches" in e ? e.touches[0].pageX : "pageX" in e ? e.pageX : 0) - L.elOffset(t).left + i;
|
|
9208
9209
|
let r;
|
|
9209
9210
|
this.hoverElement.style.left = o - this.startX + "px", o - i < this.autoScrollMargin && (this.autoScrollTimeout || (this.autoScrollTimeout = setTimeout(() => {
|
|
9210
9211
|
r = Math.max(0, i - this.autoScrollStep);
|
|
@@ -9220,9 +9221,9 @@ const Wi = class Wi extends S {
|
|
|
9220
9221
|
}, 1)));
|
|
9221
9222
|
}
|
|
9222
9223
|
};
|
|
9223
|
-
|
|
9224
|
-
let
|
|
9225
|
-
const
|
|
9224
|
+
Gi.moduleName = "moveColumn";
|
|
9225
|
+
let ei = Gi;
|
|
9226
|
+
const pa = {
|
|
9226
9227
|
add: function(n, e, t) {
|
|
9227
9228
|
return n && this.table.addRow(n.getData("")), !0;
|
|
9228
9229
|
},
|
|
@@ -9235,7 +9236,7 @@ const ua = {
|
|
|
9235
9236
|
update: function(n, e, t) {
|
|
9236
9237
|
return e && n ? (e.update(n.getData("")), !0) : !1;
|
|
9237
9238
|
}
|
|
9238
|
-
},
|
|
9239
|
+
}, fa = {
|
|
9239
9240
|
delete: function(n, e, t) {
|
|
9240
9241
|
n && n.delete();
|
|
9241
9242
|
}
|
|
@@ -9257,7 +9258,7 @@ const ua = {
|
|
|
9257
9258
|
}, i.mousemove = function(s) {
|
|
9258
9259
|
if (t.table.rowManager) {
|
|
9259
9260
|
const o = e.getElement();
|
|
9260
|
-
o?.parentNode && (s.pageY -
|
|
9261
|
+
o?.parentNode && (s.pageY - L.elOffset(o).top + t.table.rowManager.element.scrollTop > e.getHeight() / 2 ? (t.toRow !== e || !t.toRowAfter) && (o.parentNode.insertBefore(
|
|
9261
9262
|
t.placeholderElement,
|
|
9262
9263
|
o.nextSibling
|
|
9263
9264
|
), t.moveRow(e, !0)) : (t.toRow !== e || t.toRowAfter) && o.previousSibling && (o.parentNode.insertBefore(t.placeholderElement, o), t.moveRow(e, !1)));
|
|
@@ -9271,7 +9272,7 @@ const ua = {
|
|
|
9271
9272
|
}, i.mousemove = function(s) {
|
|
9272
9273
|
if (t.table.rowManager) {
|
|
9273
9274
|
const o = e.getElement();
|
|
9274
|
-
o?.parentNode && (s.pageY -
|
|
9275
|
+
o?.parentNode && (s.pageY - L.elOffset(o).top + t.table.rowManager.element.scrollTop > e.getHeight() / 2 ? (t.toRow !== e || !t.toRowAfter) && (o.parentNode.insertBefore(
|
|
9275
9276
|
t.placeholderElement,
|
|
9276
9277
|
o.nextSibling
|
|
9277
9278
|
), t.moveRow(e, !0)) : (t.toRow !== e || t.toRowAfter) && (o.parentNode.insertBefore(t.placeholderElement, o), t.moveRow(e, !1)));
|
|
@@ -9581,9 +9582,9 @@ const ua = {
|
|
|
9581
9582
|
}
|
|
9582
9583
|
}
|
|
9583
9584
|
};
|
|
9584
|
-
Se.moduleName = "moveRow", Se.senders =
|
|
9585
|
-
let
|
|
9586
|
-
const
|
|
9585
|
+
Se.moduleName = "moveRow", Se.senders = fa, Se.receivers = pa;
|
|
9586
|
+
let ti = Se;
|
|
9587
|
+
const ga = {}, ma = process.env.NODE_ENV === "development", _e = class _e extends S {
|
|
9587
9588
|
constructor(e) {
|
|
9588
9589
|
super(e), this.allowedTypes = ["", "data", "edit", "clipboard", "import"], this.enabled = !0, this.registerColumnOption("mutator"), this.registerColumnOption("mutatorParams"), this.registerColumnOption("mutatorData"), this.registerColumnOption("mutatorDataParams"), this.registerColumnOption("mutatorEdit"), this.registerColumnOption("mutatorEditParams"), this.registerColumnOption("mutatorClipboard"), this.registerColumnOption("mutatorClipboardParams"), this.registerColumnOption("mutatorImport"), this.registerColumnOption("mutatorImportParams"), this.registerColumnOption("mutateLink");
|
|
9589
9590
|
}
|
|
@@ -9609,7 +9610,7 @@ const fa = {}, ga = process.env.NODE_ENV === "development", _e = class _e extend
|
|
|
9609
9610
|
let t = !1;
|
|
9610
9611
|
switch (typeof e) {
|
|
9611
9612
|
case "string":
|
|
9612
|
-
_e.mutators[e] ? t = _e.mutators[e] :
|
|
9613
|
+
_e.mutators[e] ? t = _e.mutators[e] : ma && console.warn(
|
|
9613
9614
|
"Mutator Error - No such mutator found, ignoring: ",
|
|
9614
9615
|
e
|
|
9615
9616
|
);
|
|
@@ -9672,9 +9673,9 @@ const fa = {}, ga = process.env.NODE_ENV === "development", _e = class _e extend
|
|
|
9672
9673
|
this.enabled = !1;
|
|
9673
9674
|
}
|
|
9674
9675
|
};
|
|
9675
|
-
_e.moduleName = "mutator", _e.mutators =
|
|
9676
|
-
let
|
|
9677
|
-
const
|
|
9676
|
+
_e.moduleName = "mutator", _e.mutators = ga;
|
|
9677
|
+
let ii = _e;
|
|
9678
|
+
const ji = class ji extends S {
|
|
9678
9679
|
constructor(e) {
|
|
9679
9680
|
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.setPage = (t) => {
|
|
9680
9681
|
if (typeof t == "string") {
|
|
@@ -9951,9 +9952,9 @@ const Gi = class Gi extends S {
|
|
|
9951
9952
|
return e.data;
|
|
9952
9953
|
}
|
|
9953
9954
|
};
|
|
9954
|
-
|
|
9955
|
-
let
|
|
9956
|
-
const
|
|
9955
|
+
ji.moduleName = "page";
|
|
9956
|
+
let si = ji;
|
|
9957
|
+
const ys = process.env.NODE_ENV === "development", ba = {
|
|
9957
9958
|
cookie: function(n, e) {
|
|
9958
9959
|
let t = document.cookie;
|
|
9959
9960
|
const i = n + "-" + e, s = t.indexOf(i + "=");
|
|
@@ -9968,7 +9969,7 @@ const vs = process.env.NODE_ENV === "development", ma = {
|
|
|
9968
9969
|
try {
|
|
9969
9970
|
return JSON.parse(r);
|
|
9970
9971
|
} catch (a) {
|
|
9971
|
-
return
|
|
9972
|
+
return ys && console.error("Failed to parse cookie data:", a), !1;
|
|
9972
9973
|
}
|
|
9973
9974
|
},
|
|
9974
9975
|
local: function(n, e) {
|
|
@@ -9978,10 +9979,10 @@ const vs = process.env.NODE_ENV === "development", ma = {
|
|
|
9978
9979
|
try {
|
|
9979
9980
|
return JSON.parse(t);
|
|
9980
9981
|
} catch (i) {
|
|
9981
|
-
return
|
|
9982
|
+
return ys && console.error("Failed to parse localStorage data:", i), !1;
|
|
9982
9983
|
}
|
|
9983
9984
|
}
|
|
9984
|
-
},
|
|
9985
|
+
}, wa = {
|
|
9985
9986
|
cookie: function(n, e, t) {
|
|
9986
9987
|
const i = /* @__PURE__ */ new Date();
|
|
9987
9988
|
i.setDate(i.getDate() + 1e4), document.cookie = n + "-" + e + "=" + encodeURIComponent(JSON.stringify(t)) + "; expires=" + i.toUTCString();
|
|
@@ -10196,9 +10197,9 @@ const vs = process.env.NODE_ENV === "development", ma = {
|
|
|
10196
10197
|
}), t;
|
|
10197
10198
|
}
|
|
10198
10199
|
};
|
|
10199
|
-
J.moduleName = "persistence", J.moduleInitOrder = -10, J.readers =
|
|
10200
|
-
let
|
|
10201
|
-
const
|
|
10200
|
+
J.moduleName = "persistence", J.moduleInitOrder = -10, J.readers = ba, J.writers = wa;
|
|
10201
|
+
let oi = J;
|
|
10202
|
+
const $i = class $i extends S {
|
|
10202
10203
|
constructor(e) {
|
|
10203
10204
|
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(
|
|
10204
10205
|
"cell",
|
|
@@ -10318,9 +10319,9 @@ const ji = class ji extends S {
|
|
|
10318
10319
|
}), this.dispatchExternal("popupOpened", t.getComponent());
|
|
10319
10320
|
}
|
|
10320
10321
|
};
|
|
10321
|
-
|
|
10322
|
-
let
|
|
10323
|
-
const
|
|
10322
|
+
$i.moduleName = "popup";
|
|
10323
|
+
let ri = $i;
|
|
10324
|
+
const Cs = process.env.NODE_ENV === "development", Ui = class Ui extends S {
|
|
10324
10325
|
constructor(e) {
|
|
10325
10326
|
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");
|
|
10326
10327
|
}
|
|
@@ -10352,7 +10353,7 @@ const ys = process.env.NODE_ENV === "development", $i = class $i extends S {
|
|
|
10352
10353
|
if (!this.manualBlock) {
|
|
10353
10354
|
const e = this.table.modules.export;
|
|
10354
10355
|
if (!e || typeof e.generateTable != "function") {
|
|
10355
|
-
|
|
10356
|
+
Cs && console.error(
|
|
10356
10357
|
"Print Error - Export module not available, cannot generate print table."
|
|
10357
10358
|
);
|
|
10358
10359
|
return;
|
|
@@ -10376,7 +10377,7 @@ const ys = process.env.NODE_ENV === "development", $i = class $i extends S {
|
|
|
10376
10377
|
printFullscreen(e, t, i) {
|
|
10377
10378
|
const s = window.scrollX, o = window.scrollY, r = document.createElement("div"), a = document.createElement("div"), l = this.table.modules.export;
|
|
10378
10379
|
if (!l || typeof l.generateTable != "function") {
|
|
10379
|
-
|
|
10380
|
+
Cs && console.error(
|
|
10380
10381
|
"Print Error - Export module not available, cannot generate print table."
|
|
10381
10382
|
);
|
|
10382
10383
|
return;
|
|
@@ -10396,9 +10397,9 @@ const ys = process.env.NODE_ENV === "development", $i = class $i extends S {
|
|
|
10396
10397
|
}
|
|
10397
10398
|
}
|
|
10398
10399
|
};
|
|
10399
|
-
|
|
10400
|
-
let
|
|
10401
|
-
const
|
|
10400
|
+
Ui.moduleName = "print";
|
|
10401
|
+
let ni = Ui;
|
|
10402
|
+
const Ki = class Ki extends S {
|
|
10402
10403
|
constructor(e) {
|
|
10403
10404
|
super(e), this.data = !1, this.blocked = !1, this.origFuncs = {}, this.currentVersion = 0, this.registerTableOption("reactiveData", !1);
|
|
10404
10405
|
}
|
|
@@ -10597,9 +10598,9 @@ const Ui = class Ui extends S {
|
|
|
10597
10598
|
this.blocked === e && (this.blocked = !1);
|
|
10598
10599
|
}
|
|
10599
10600
|
};
|
|
10600
|
-
|
|
10601
|
-
let
|
|
10602
|
-
const
|
|
10601
|
+
Ki.moduleName = "reactiveData";
|
|
10602
|
+
let ai = Ki;
|
|
10603
|
+
const Xi = class Xi extends S {
|
|
10603
10604
|
constructor(e) {
|
|
10604
10605
|
super(e), this.startColumn = !1, this.startX = !1, this.startWidth = !1, this.latestX = !1, this.handle = null, this.initialNextColumn = null, this.nextColumn = null, this.initialized = !1, this.registerColumnOption("resizable", !0), this.registerTableOption("resizableColumnFit", !1), this.registerTableOption("resizableColumnGuide", !1);
|
|
10605
10606
|
}
|
|
@@ -10728,9 +10729,9 @@ const Ki = class Ki extends S {
|
|
|
10728
10729
|
a !== null && (this.startX = a, this.latestX = this.startX, this.startWidth = t.getWidth(), document.body.addEventListener("mousemove", o), document.body.addEventListener("mouseup", r), i.addEventListener("touchmove", o, { passive: !0 }), i.addEventListener("touchend", r));
|
|
10729
10730
|
}
|
|
10730
10731
|
};
|
|
10731
|
-
|
|
10732
|
-
let
|
|
10733
|
-
const
|
|
10732
|
+
Xi.moduleName = "resizeColumns";
|
|
10733
|
+
let li = Xi;
|
|
10734
|
+
const Ji = class Ji extends S {
|
|
10734
10735
|
constructor(e) {
|
|
10735
10736
|
super(e), this.startRow = !1, this.startY = !1, this.startHeight = !1, this.handle = null, this.prevHandle = null, this.registerTableOption("resizableRows", !1), this.registerTableOption("resizableRowGuide", !1);
|
|
10736
10737
|
}
|
|
@@ -10806,9 +10807,9 @@ const Xi = class Xi extends S {
|
|
|
10806
10807
|
}), i.addEventListener("touchend", r));
|
|
10807
10808
|
}
|
|
10808
10809
|
};
|
|
10809
|
-
|
|
10810
|
-
let
|
|
10811
|
-
const
|
|
10810
|
+
Ji.moduleName = "resizeRows";
|
|
10811
|
+
let hi = Ji;
|
|
10812
|
+
const qi = class qi extends S {
|
|
10812
10813
|
constructor(e) {
|
|
10813
10814
|
super(e), this.pendingRedraw = !1, this.pendingForceRedraw = !1, this.boundHandleTableInitialized = this.handleTableInitialized.bind(this), this.binding = !1, this.visibilityObserver = !1, this.resizeObserver = !1, this.containerObserver = !1, this.tableHeight = 0, this.tableWidth = 0, this.containerHeight = 0, this.containerWidth = 0, this.autoResize = !1, this.visible = !1, this.initialized = !1, this.initialRedraw = !1, this.registerTableOption("autoResize", !0);
|
|
10814
10815
|
}
|
|
@@ -10886,9 +10887,9 @@ const Ji = class Ji extends S {
|
|
|
10886
10887
|
this.flushPendingRedraw();
|
|
10887
10888
|
}
|
|
10888
10889
|
};
|
|
10889
|
-
|
|
10890
|
-
let
|
|
10891
|
-
function
|
|
10890
|
+
qi.moduleName = "resizeTable";
|
|
10891
|
+
let ci = qi;
|
|
10892
|
+
function va(n) {
|
|
10892
10893
|
const e = document.createElement("div"), t = n.getRow()._row.modules.responsiveLayout;
|
|
10893
10894
|
e.classList.add("tabulator-responsive-collapse-toggle"), e.innerHTML = `<svg class='tabulator-responsive-collapse-toggle-open' viewBox="0 0 24 24">
|
|
10894
10895
|
<line x1="7" y1="12" x2="17" y2="12" fill="none" stroke-width="3" stroke-linecap="round" />
|
|
@@ -10906,13 +10907,13 @@ function wa(n) {
|
|
|
10906
10907
|
s.stopImmediatePropagation(), i(!t.open), n.getTable()?.rowManager?.adjustTableSize();
|
|
10907
10908
|
}), i(t.open), e;
|
|
10908
10909
|
}
|
|
10909
|
-
const
|
|
10910
|
+
const ya = {
|
|
10910
10911
|
format: {
|
|
10911
10912
|
formatters: {
|
|
10912
|
-
responsiveCollapse:
|
|
10913
|
+
responsiveCollapse: va
|
|
10913
10914
|
}
|
|
10914
10915
|
}
|
|
10915
|
-
},
|
|
10916
|
+
}, ct = class ct extends S {
|
|
10916
10917
|
constructor(e) {
|
|
10917
10918
|
super(e), this.columns = [], this.hiddenColumns = [], this.mode = "", this.index = 0, this.collapseFormatter = !1, this.collapseStartOpen = !0, this.collapseHandleColumn = !1, this.registerTableOption("responsiveLayout", !1), this.registerTableOption("responsiveLayoutCollapseStartOpen", !0), this.registerTableOption("responsiveLayoutCollapseUseFormatters", !0), this.registerTableOption("responsiveLayoutCollapseFormatter", !1), this.registerColumnOption("responsive");
|
|
10918
10919
|
}
|
|
@@ -11071,11 +11072,11 @@ const va = {
|
|
|
11071
11072
|
}), Object.keys(e).length ? t : "";
|
|
11072
11073
|
}
|
|
11073
11074
|
};
|
|
11074
|
-
|
|
11075
|
-
let
|
|
11076
|
-
const
|
|
11077
|
-
function
|
|
11078
|
-
const t = k(
|
|
11075
|
+
ct.moduleName = "responsiveLayout", ct.moduleExtensions = ya;
|
|
11076
|
+
let di = ct;
|
|
11077
|
+
const Ca = E`<cx-checkbox></cx-checkbox>`;
|
|
11078
|
+
function Ea(n, e) {
|
|
11079
|
+
const t = k(Ca);
|
|
11079
11080
|
let i = t, s = !1;
|
|
11080
11081
|
t.setAttribute("aria-label", "Select Row"), t.size = "small";
|
|
11081
11082
|
const o = this.table;
|
|
@@ -11095,13 +11096,13 @@ function Ca(n, e) {
|
|
|
11095
11096
|
}), o.modules.selectRow?.registerHeaderSelectCheckbox(t);
|
|
11096
11097
|
return i;
|
|
11097
11098
|
}
|
|
11098
|
-
const
|
|
11099
|
+
const xa = {
|
|
11099
11100
|
format: {
|
|
11100
11101
|
formatters: {
|
|
11101
|
-
rowSelection:
|
|
11102
|
+
rowSelection: Ea
|
|
11102
11103
|
}
|
|
11103
11104
|
}
|
|
11104
|
-
},
|
|
11105
|
+
}, Es = process.env.NODE_ENV === "development", dt = class dt extends S {
|
|
11105
11106
|
// hold header select element (cx-checkbox)
|
|
11106
11107
|
constructor(e) {
|
|
11107
11108
|
super(e), this.selecting = !1, this.lastClickedRow = !1, this.selectPrev = [], this.selectedRows = [], this.headerCheckboxElement = null, this.registerTableOption("selectableRows", "highlight"), this.registerTableOption("selectableRowsRangeMode", "drag"), this.registerTableOption("selectableRowsRollingSelection", !0), this.registerTableOption("selectableRowsPersistence", !0), this.registerTableOption(
|
|
@@ -11238,7 +11239,7 @@ const Ea = {
|
|
|
11238
11239
|
if (o) {
|
|
11239
11240
|
if (this.selectedRows.indexOf(o) === -1)
|
|
11240
11241
|
return o.getElement().classList.add("tabulator-selected"), o.modules.select || (o.modules.select = {}), o.modules.select.selected = !0, o.modules.select.checkboxEl && (o.modules.select.checkboxEl.checked = !0), this.selectedRows.push(o), this.table.options.dataTreeSelectPropagate && this.childRowSelection(o, !0), this.dispatchExternal("rowSelected", o.getComponent()), this._rowSelectionChanged(t, [o], []), o;
|
|
11241
|
-
} else !t &&
|
|
11242
|
+
} else !t && Es && console.warn(
|
|
11242
11243
|
"Selection Error - No such row found, ignoring selection:" + e
|
|
11243
11244
|
);
|
|
11244
11245
|
return !1;
|
|
@@ -11275,7 +11276,7 @@ const Ea = {
|
|
|
11275
11276
|
if (i) {
|
|
11276
11277
|
if (s = this.selectedRows.findIndex((r) => r === i), s > -1)
|
|
11277
11278
|
return o = i.getElement(), o && o.classList.remove("tabulator-selected"), i.modules.select || (i.modules.select = {}), i.modules.select.selected = !1, i.modules.select.checkboxEl && (i.modules.select.checkboxEl.checked = !1), this.selectedRows.splice(s, 1), this.table.options.dataTreeSelectPropagate && this.childRowSelection(i, !1), this.dispatchExternal("rowDeselected", i.getComponent()), this._rowSelectionChanged(t, [], [i]), i;
|
|
11278
|
-
} else !t &&
|
|
11279
|
+
} else !t && Es && console.warn(
|
|
11279
11280
|
"Deselection Error - No such row found, ignoring selection:" + e
|
|
11280
11281
|
);
|
|
11281
11282
|
return !1;
|
|
@@ -11324,9 +11325,9 @@ const Ea = {
|
|
|
11324
11325
|
this._deselectRow(s, !0);
|
|
11325
11326
|
}
|
|
11326
11327
|
};
|
|
11327
|
-
|
|
11328
|
-
let
|
|
11329
|
-
const
|
|
11328
|
+
dt.moduleName = "selectRow", dt.moduleExtensions = xa;
|
|
11329
|
+
let ui = dt;
|
|
11330
|
+
const Ra = {
|
|
11330
11331
|
range: function(n) {
|
|
11331
11332
|
if (!n || n.length === 0)
|
|
11332
11333
|
return [];
|
|
@@ -11346,7 +11347,7 @@ const xa = {
|
|
|
11346
11347
|
}
|
|
11347
11348
|
return e;
|
|
11348
11349
|
}
|
|
11349
|
-
},
|
|
11350
|
+
}, Sa = {
|
|
11350
11351
|
range: function(n) {
|
|
11351
11352
|
const e = [], t = [], i = this.table.modules.selectRange.activeRange;
|
|
11352
11353
|
let s = !1, o, r, a, l, h;
|
|
@@ -11368,16 +11369,16 @@ const xa = {
|
|
|
11368
11369
|
}
|
|
11369
11370
|
return !1;
|
|
11370
11371
|
}
|
|
11371
|
-
},
|
|
11372
|
+
}, Ta = {
|
|
11372
11373
|
range: function() {
|
|
11373
11374
|
const n = this.modules.selectRange.selectedColumns();
|
|
11374
11375
|
return this.columnManager?.rowHeader && n.unshift(this.columnManager.rowHeader), n;
|
|
11375
11376
|
}
|
|
11376
|
-
},
|
|
11377
|
+
}, Ma = process.env.NODE_ENV === "development", ka = {
|
|
11377
11378
|
range: function() {
|
|
11378
|
-
return this.modules?.selectRange ? this.modules.selectRange.selectedRows() : (
|
|
11379
|
+
return this.modules?.selectRange ? this.modules.selectRange.selectedRows() : (Ma && console.warn("SelectRange module not loaded"), []);
|
|
11379
11380
|
}
|
|
11380
|
-
},
|
|
11381
|
+
}, La = {
|
|
11381
11382
|
rangeExpandDown: function(n) {
|
|
11382
11383
|
this.dispatch("keybinding-nav-range", n, "down", !1, !0);
|
|
11383
11384
|
},
|
|
@@ -11427,21 +11428,21 @@ const xa = {
|
|
|
11427
11428
|
rangeJumpLeft: ["ctrl + 37", "meta + 37"],
|
|
11428
11429
|
rangeJumpRight: ["ctrl + 39", "meta + 39"],
|
|
11429
11430
|
rangeJumpUp: ["ctrl + 38", "meta + 38"]
|
|
11430
|
-
},
|
|
11431
|
+
}, za = {
|
|
11431
11432
|
clipboard: {
|
|
11432
|
-
pasteActions:
|
|
11433
|
-
pasteParsers:
|
|
11433
|
+
pasteActions: Ra,
|
|
11434
|
+
pasteParsers: Sa
|
|
11434
11435
|
},
|
|
11435
11436
|
export: {
|
|
11436
|
-
columnLookups:
|
|
11437
|
-
rowLookups:
|
|
11437
|
+
columnLookups: Ta,
|
|
11438
|
+
rowLookups: ka
|
|
11438
11439
|
},
|
|
11439
11440
|
keybindings: {
|
|
11440
|
-
actions:
|
|
11441
|
+
actions: La,
|
|
11441
11442
|
bindings: Da
|
|
11442
11443
|
}
|
|
11443
11444
|
};
|
|
11444
|
-
class
|
|
11445
|
+
class Fa {
|
|
11445
11446
|
constructor(e) {
|
|
11446
11447
|
return this._range = e, new Proxy(this, {
|
|
11447
11448
|
get: function(t, i) {
|
|
@@ -11505,8 +11506,8 @@ class za {
|
|
|
11505
11506
|
this._range.destroyedGuard("remove") && this._range.destroy(!0);
|
|
11506
11507
|
}
|
|
11507
11508
|
}
|
|
11508
|
-
const
|
|
11509
|
-
class
|
|
11509
|
+
const xs = process.env.NODE_ENV === "development";
|
|
11510
|
+
class Oa extends W {
|
|
11510
11511
|
constructor(e, t, i, s) {
|
|
11511
11512
|
super(e), this.rangeManager = t, this.element = null, this.initialized = !1, this.initializing = {
|
|
11512
11513
|
end: !1,
|
|
@@ -11636,23 +11637,23 @@ class Fa extends W {
|
|
|
11636
11637
|
end: null,
|
|
11637
11638
|
start: null
|
|
11638
11639
|
};
|
|
11639
|
-
return t.length ? (i.start = t[0], i.end = t.at(-1)) :
|
|
11640
|
+
return t.length ? (i.start = t[0], i.end = t.at(-1)) : xs && console.warn("No bounds defined on range"), i;
|
|
11640
11641
|
}
|
|
11641
11642
|
getComponent() {
|
|
11642
|
-
return this.component ??= new
|
|
11643
|
+
return this.component ??= new Fa(this), this.component;
|
|
11643
11644
|
}
|
|
11644
11645
|
destroy(e) {
|
|
11645
11646
|
this.destroyed = !0, this.element && this.element.remove(), e && this.rangeManager.rangeRemoved(this), this.initialized && this.dispatchExternal("rangeRemoved", this.getComponent());
|
|
11646
11647
|
}
|
|
11647
11648
|
destroyedGuard(e) {
|
|
11648
|
-
return this.destroyed &&
|
|
11649
|
+
return this.destroyed && xs && console.warn(
|
|
11649
11650
|
"You cannot call the " + e + " function on a destroyed range"
|
|
11650
11651
|
), !this.destroyed;
|
|
11651
11652
|
}
|
|
11652
11653
|
}
|
|
11653
|
-
const Ee = process.env.NODE_ENV === "development",
|
|
11654
|
+
const Ee = process.env.NODE_ENV === "development", Pa = E`<div class="tabulator-range-cell-hover"></div>`, Je = class Je extends S {
|
|
11654
11655
|
constructor(e) {
|
|
11655
|
-
super(e), this.selecting = Z.Cell, this.mousedown = !1, this.ranges = [], this.overlay = null, this.rowHeader = null, this.debouncedLayoutRanges =
|
|
11656
|
+
super(e), this.selecting = Z.Cell, this.mousedown = !1, this.ranges = [], this.overlay = null, this.rowHeader = null, this.debouncedLayoutRanges = ho(() => {
|
|
11656
11657
|
this.layoutRanges();
|
|
11657
11658
|
}, 200), this.layoutChangeRaf = null, this.columnSelection = !1, this.rowSelection = !1, this.maxRanges = 0, this.activeRange = !1, this.blockKeydown = !1, this.rangeContainer = null, this.activeRangeCellElement = null, this.hoverRangeCellElement = null, this.hoveredCell = null, this.keyDownEvent = this._handleKeyDown.bind(this), this.mouseUpEvent = this._handleMouseUp.bind(this), this.registerTableOption("selectableRange", !1), this.registerTableOption("selectableRangeColumns", !1), this.registerTableOption("selectableRangeRows", !1), this.registerTableOption("selectableRangeClearCells", !1), this.registerTableOption("selectableRangeClearCellsValue", void 0), this.registerTableOption("selectableRangeAutoFocus", !0), this.registerTableFunction("getRangesData", this.getRangesData.bind(this)), this.registerTableFunction("getRanges", this.getRanges.bind(this)), this.registerTableFunction(
|
|
11658
11659
|
"addRange",
|
|
@@ -11686,7 +11687,7 @@ const Ee = process.env.NODE_ENV === "development", Oa = E`<div class="tabulator-
|
|
|
11686
11687
|
));
|
|
11687
11688
|
}
|
|
11688
11689
|
initializeTable() {
|
|
11689
|
-
this.overlay = document.createElement("div"), this.overlay.classList.add("tabulator-range-overlay"), this.rangeContainer = document.createElement("div"), this.rangeContainer.classList.add("tabulator-range-container"), this.activeRangeCellElement = document.createElement("div"), this.activeRangeCellElement.classList.add("tabulator-range-cell-active"), this.hoverRangeCellElement = k(
|
|
11690
|
+
this.overlay = document.createElement("div"), this.overlay.classList.add("tabulator-range-overlay"), this.rangeContainer = document.createElement("div"), this.rangeContainer.classList.add("tabulator-range-container"), this.activeRangeCellElement = document.createElement("div"), this.activeRangeCellElement.classList.add("tabulator-range-cell-active"), this.hoverRangeCellElement = k(Pa), this.overlay.appendChild(this.rangeContainer), this.overlay.appendChild(this.hoverRangeCellElement), this.overlay.appendChild(this.activeRangeCellElement), this.table.rowManager?.element && this.table.rowManager.element.addEventListener(
|
|
11690
11691
|
"keydown",
|
|
11691
11692
|
this.keyDownEvent
|
|
11692
11693
|
), this.resetRanges(), this.table.rowManager?.element && this.overlay && this.table.rowManager.element.appendChild(this.overlay), this.table.columnManager?.element && this.table.columnManager.element.setAttribute("tabindex", "0"), this.table.element.classList.add("tabulator-ranges");
|
|
@@ -12162,7 +12163,7 @@ const Ee = process.env.NODE_ENV === "development", Oa = E`<div class="tabulator-
|
|
|
12162
12163
|
const s = this.ranges.shift();
|
|
12163
12164
|
s && s.destroy(!1);
|
|
12164
12165
|
}
|
|
12165
|
-
const i = new
|
|
12166
|
+
const i = new Oa(this.table, this, e, t);
|
|
12166
12167
|
return this.activeRange = i, this.ranges.push(i), this.rangeContainer && i.element && this.rangeContainer.appendChild(i.element), i;
|
|
12167
12168
|
}
|
|
12168
12169
|
resetRanges() {
|
|
@@ -12195,9 +12196,9 @@ const Ee = process.env.NODE_ENV === "development", Oa = E`<div class="tabulator-
|
|
|
12195
12196
|
return e == null || e === "";
|
|
12196
12197
|
}
|
|
12197
12198
|
};
|
|
12198
|
-
Je.moduleName = "selectRange", Je.moduleInitOrder = 1, Je.moduleExtensions =
|
|
12199
|
-
let
|
|
12200
|
-
function
|
|
12199
|
+
Je.moduleName = "selectRange", Je.moduleInitOrder = 1, Je.moduleExtensions = za;
|
|
12200
|
+
let pi = Je;
|
|
12201
|
+
function Ha(n, e, t, i, s, o, r) {
|
|
12201
12202
|
const a = r.alignEmptyValues;
|
|
12202
12203
|
let l = 0;
|
|
12203
12204
|
if (!n && n !== 0)
|
|
@@ -12235,7 +12236,7 @@ function Pa(n, e, t, i, s, o, r) {
|
|
|
12235
12236
|
}
|
|
12236
12237
|
return (a === "top" && o === "desc" || a === "bottom" && o === "asc") && (l *= -1), l;
|
|
12237
12238
|
}
|
|
12238
|
-
function
|
|
12239
|
+
function Aa(n, e, t, i, s, o, r) {
|
|
12239
12240
|
const a = r.type || "length", l = r.alignEmptyValues;
|
|
12240
12241
|
let h = 0;
|
|
12241
12242
|
const c = this.table;
|
|
@@ -12244,7 +12245,7 @@ function Ha(n, e, t, i, s, o, r) {
|
|
|
12244
12245
|
if (typeof r.valueMap == "string") {
|
|
12245
12246
|
const u = c.options.nestedFieldSeparator, f = r.valueMap;
|
|
12246
12247
|
d = function(m) {
|
|
12247
|
-
return
|
|
12248
|
+
return L.retrieveNestedData(u, f, m);
|
|
12248
12249
|
};
|
|
12249
12250
|
} else
|
|
12250
12251
|
d = r.valueMap;
|
|
@@ -12283,11 +12284,11 @@ function Ha(n, e, t, i, s, o, r) {
|
|
|
12283
12284
|
return a === "string" ? String(p(n)).toLowerCase().localeCompare(String(p(e)).toLowerCase()) : p(e) - p(n);
|
|
12284
12285
|
return (l === "top" && o === "desc" || l === "bottom" && o === "asc") && (h *= -1), h;
|
|
12285
12286
|
}
|
|
12286
|
-
function
|
|
12287
|
+
function _a(n, e, t, i, s, o, r) {
|
|
12287
12288
|
return (n === !0 || n === "true" || n === "True" || n === 1 ? 1 : 0) - (e === !0 || e === "true" || e === "True" || e === 1 ? 1 : 0);
|
|
12288
12289
|
}
|
|
12289
|
-
const
|
|
12290
|
-
function
|
|
12290
|
+
const Na = process.env.NODE_ENV === "development";
|
|
12291
|
+
function Oi(n, e, t, i, s, o, r) {
|
|
12291
12292
|
const { alignEmptyValues: a, format: l = "dd/MM/yyyy HH:mm:ss" } = r || {}, h = this.table.dependencyRegistry.lookup(
|
|
12292
12293
|
["luxon", "DateTime"],
|
|
12293
12294
|
"DateTime"
|
|
@@ -12304,17 +12305,17 @@ function Fi(n, e, t, i, s, o, r) {
|
|
|
12304
12305
|
}
|
|
12305
12306
|
return (a === "top" && o === "desc" || a === "bottom" && o === "asc") && (c *= -1), c;
|
|
12306
12307
|
} else
|
|
12307
|
-
return
|
|
12308
|
+
return Na && console.error("Sort Error - 'datetime' sorter is dependent on luxon.js"), 0;
|
|
12308
12309
|
}
|
|
12309
|
-
function
|
|
12310
|
+
function Va(n, e, t, i, s, o, r) {
|
|
12310
12311
|
const a = r ?? {};
|
|
12311
|
-
return a.format || (a.format = "dd/MM/yyyy"),
|
|
12312
|
+
return a.format || (a.format = "dd/MM/yyyy"), Oi.call(this, n, e, t, i, s, o, a);
|
|
12312
12313
|
}
|
|
12313
|
-
function
|
|
12314
|
+
function Ia(n, e, t, i, s, o, r) {
|
|
12314
12315
|
const a = (c) => c === null || typeof c > "u" || c === "", l = a(n) ? 0 : 1, h = a(e) ? 0 : 1;
|
|
12315
12316
|
return l - h;
|
|
12316
12317
|
}
|
|
12317
|
-
function
|
|
12318
|
+
function Ba(n, e, t, i, s, o, r) {
|
|
12318
12319
|
const a = r ?? {}, l = a.alignEmptyValues, h = a.decimalSeparator, c = a.thousandSeparator;
|
|
12319
12320
|
let d = 0, p = String(n), u = String(e);
|
|
12320
12321
|
c && (p = p.split(c).join(""), u = u.split(c).join("")), h && (p = p.split(h).join("."), u = u.split(h).join("."));
|
|
@@ -12327,7 +12328,7 @@ function Ia(n, e, t, i, s, o, r) {
|
|
|
12327
12328
|
return f - m;
|
|
12328
12329
|
return (l === "top" && o === "desc" || l === "bottom" && o === "asc") && (d *= -1), d;
|
|
12329
12330
|
}
|
|
12330
|
-
function
|
|
12331
|
+
function Wa(n, e, t, i, s, o, r = {}) {
|
|
12331
12332
|
const a = r.alignEmptyValues;
|
|
12332
12333
|
let l = 0, h;
|
|
12333
12334
|
const c = (d) => d == null || d === "";
|
|
@@ -12348,21 +12349,21 @@ function Ba(n, e, t, i, s, o, r = {}) {
|
|
|
12348
12349
|
}
|
|
12349
12350
|
return (a === "top" && o === "desc" || a === "bottom" && o === "asc") && (l *= -1), l;
|
|
12350
12351
|
}
|
|
12351
|
-
function
|
|
12352
|
+
function Ga(n, e, t, i, s, o, r) {
|
|
12352
12353
|
const a = r ?? {}, l = a.format ? a : { ...a, format: "HH:mm" };
|
|
12353
|
-
return
|
|
12354
|
+
return Oi.call(this, n, e, t, i, s, o, l);
|
|
12354
12355
|
}
|
|
12355
|
-
const
|
|
12356
|
-
alphanum:
|
|
12357
|
-
array:
|
|
12358
|
-
boolean:
|
|
12359
|
-
date:
|
|
12360
|
-
datetime:
|
|
12361
|
-
exists:
|
|
12362
|
-
number:
|
|
12363
|
-
string:
|
|
12364
|
-
time:
|
|
12365
|
-
},
|
|
12356
|
+
const ja = {
|
|
12357
|
+
alphanum: Ha,
|
|
12358
|
+
array: Aa,
|
|
12359
|
+
boolean: _a,
|
|
12360
|
+
date: Va,
|
|
12361
|
+
datetime: Oi,
|
|
12362
|
+
exists: Ia,
|
|
12363
|
+
number: Ba,
|
|
12364
|
+
string: Wa,
|
|
12365
|
+
time: Ga
|
|
12366
|
+
}, Rs = process.env.NODE_ENV === "development", $a = {
|
|
12366
12367
|
asc: "ascending",
|
|
12367
12368
|
desc: "descending",
|
|
12368
12369
|
none: "none"
|
|
@@ -12401,7 +12402,7 @@ const Ga = {
|
|
|
12401
12402
|
let t = !1, i, s;
|
|
12402
12403
|
switch (typeof e.definition.sorter) {
|
|
12403
12404
|
case "string":
|
|
12404
|
-
e.definition.sorter && Te.sorters[e.definition.sorter] ? t = Te.sorters[e.definition.sorter] :
|
|
12405
|
+
e.definition.sorter && Te.sorters[e.definition.sorter] ? t = Te.sorters[e.definition.sorter] : Rs && console.warn(
|
|
12405
12406
|
"Sort Error - No such sorter found: ",
|
|
12406
12407
|
e.definition.sorter
|
|
12407
12408
|
);
|
|
@@ -12505,7 +12506,7 @@ const Ga = {
|
|
|
12505
12506
|
column: o,
|
|
12506
12507
|
dir: a
|
|
12507
12508
|
}), this.changed = !0;
|
|
12508
|
-
} else
|
|
12509
|
+
} else Rs && console.warn(
|
|
12509
12510
|
"Sort Warning - Sort field does not exist and is being ignored: ",
|
|
12510
12511
|
s.column
|
|
12511
12512
|
);
|
|
@@ -12558,7 +12559,7 @@ const Ga = {
|
|
|
12558
12559
|
}
|
|
12559
12560
|
// set the column header sort direction
|
|
12560
12561
|
setColumnHeader(e, t) {
|
|
12561
|
-
e.modules.sort.dir = t, e.getElement().setAttribute("aria-sort",
|
|
12562
|
+
e.modules.sort.dir = t, e.getElement().setAttribute("aria-sort", $a[t]), this.setColumnHeaderSortIcon(e, t);
|
|
12562
12563
|
}
|
|
12563
12564
|
setColumnHeaderSortIcon(e, t) {
|
|
12564
12565
|
const i = e.modules.sort.element;
|
|
@@ -12614,9 +12615,9 @@ const Ga = {
|
|
|
12614
12615
|
return 0;
|
|
12615
12616
|
}
|
|
12616
12617
|
};
|
|
12617
|
-
Te.moduleName = "sort", Te.sorters =
|
|
12618
|
-
let
|
|
12619
|
-
class
|
|
12618
|
+
Te.moduleName = "sort", Te.sorters = ja;
|
|
12619
|
+
let fi = Te;
|
|
12620
|
+
class Ua {
|
|
12620
12621
|
constructor(e, t) {
|
|
12621
12622
|
this.columnCount = e, this.rowCount = t, this.columnString = [], this.columns = [], this.rows = [];
|
|
12622
12623
|
}
|
|
@@ -12654,7 +12655,7 @@ class $a {
|
|
|
12654
12655
|
this.columnCount = e;
|
|
12655
12656
|
}
|
|
12656
12657
|
}
|
|
12657
|
-
class
|
|
12658
|
+
class Ks {
|
|
12658
12659
|
constructor(e) {
|
|
12659
12660
|
return this._sheet = e, new Proxy(this, {
|
|
12660
12661
|
get: function(t, i) {
|
|
@@ -12703,9 +12704,9 @@ class Us {
|
|
|
12703
12704
|
return this._sheet.setColumns(e);
|
|
12704
12705
|
}
|
|
12705
12706
|
}
|
|
12706
|
-
class
|
|
12707
|
+
class Ss extends W {
|
|
12707
12708
|
constructor(e, t) {
|
|
12708
|
-
super(e.table), this.spreadsheetManager = e, this.definition = t, this.title = this.definition.title || "", this.key = this.definition.key || this.definition.title || "", this.rowCount = this.definition.rows, this.columnCount = this.definition.columns, this.data = this.definition.data || [], this.element = null, this.isActive = !1, this.grid = new
|
|
12709
|
+
super(e.table), this.spreadsheetManager = e, this.definition = t, this.title = this.definition.title || "", this.key = this.definition.key || this.definition.title || "", this.rowCount = this.definition.rows, this.columnCount = this.definition.columns, this.data = this.definition.data || [], this.element = null, this.isActive = !1, this.grid = new Ua(this.columnCount, this.rowCount), this.defaultColumnDefinition = {
|
|
12709
12710
|
headerHozAlign: "center",
|
|
12710
12711
|
headerSort: !1,
|
|
12711
12712
|
title: "",
|
|
@@ -12760,7 +12761,7 @@ class Rs extends W {
|
|
|
12760
12761
|
}
|
|
12761
12762
|
// #region Helper Functions
|
|
12762
12763
|
getComponent() {
|
|
12763
|
-
return new
|
|
12764
|
+
return new Ks(this);
|
|
12764
12765
|
}
|
|
12765
12766
|
getDefinition() {
|
|
12766
12767
|
return {
|
|
@@ -12808,7 +12809,7 @@ class Rs extends W {
|
|
|
12808
12809
|
}
|
|
12809
12810
|
// #endregion
|
|
12810
12811
|
}
|
|
12811
|
-
const pe = process.env.NODE_ENV === "development",
|
|
12812
|
+
const pe = process.env.NODE_ENV === "development", Yi = class Yi extends S {
|
|
12812
12813
|
constructor(e) {
|
|
12813
12814
|
super(e), this.sheets = [], this.element = null, this.registerTableOption("spreadsheet", !1), this.registerTableOption("spreadsheetRows", 50), this.registerTableOption("spreadsheetColumns", 50), this.registerTableOption("spreadsheetColumnDefinition", {}), this.registerTableOption("spreadsheetOutputFull", !1), this.registerTableOption("spreadsheetData", !1), this.registerTableOption("spreadsheetSheets", !1), this.registerTableOption("spreadsheetSheetTabs", !1), this.registerTableOption("spreadsheetSheetTabsElement", !1), this.registerTableFunction("setSheets", this.setSheets.bind(this)), this.registerTableFunction("addSheet", this.addSheet.bind(this)), this.registerTableFunction("getSheets", this.getSheets.bind(this)), this.registerTableFunction(
|
|
12814
12815
|
"getSheetDefinitions",
|
|
@@ -12897,7 +12898,7 @@ Data: `,
|
|
|
12897
12898
|
columns: this.options("spreadsheetColumns") || 50,
|
|
12898
12899
|
rows: this.options("spreadsheetRows") || 50,
|
|
12899
12900
|
...e
|
|
12900
|
-
}, i = new
|
|
12901
|
+
}, i = new Ss(this, t);
|
|
12901
12902
|
return this.sheets.push(i), this.element && i.element && this.element.appendChild(i.element), i;
|
|
12902
12903
|
}
|
|
12903
12904
|
removeSheet(e) {
|
|
@@ -12906,7 +12907,7 @@ Data: `,
|
|
|
12906
12907
|
this.sheets.length > 1 ? t > -1 && (this.sheets.splice(t, 1), e.destroy(), this.activeSheet === e && (i = this.sheets[t - 1] || this.sheets[0], i ? this.loadSheet(i) : this.activeSheet = null)) : pe && console.warn("Unable to remove sheet, at least one sheet must be active");
|
|
12907
12908
|
}
|
|
12908
12909
|
lookupSheet(e) {
|
|
12909
|
-
return e ? e instanceof
|
|
12910
|
+
return e ? e instanceof Ss ? e : e instanceof Ks ? e._sheet : this.sheets.find((t) => t.key === e) ?? null : this.activeSheet;
|
|
12910
12911
|
}
|
|
12911
12912
|
/**
|
|
12912
12913
|
* Public Functions
|
|
@@ -12963,9 +12964,9 @@ Data: `,
|
|
|
12963
12964
|
return t && this.loadSheet(t), !1;
|
|
12964
12965
|
}
|
|
12965
12966
|
};
|
|
12966
|
-
|
|
12967
|
-
let
|
|
12968
|
-
const
|
|
12967
|
+
Yi.moduleName = "spreadsheet";
|
|
12968
|
+
let gi = Yi;
|
|
12969
|
+
const Qi = class Qi extends S {
|
|
12969
12970
|
constructor(e) {
|
|
12970
12971
|
super(e), this.tooltipSubscriber = !1, this.headerSubscriber = !1, this.timeout = null, this.popupInstance = null, this.registerTableOption("tooltipDelay", 300), this.registerColumnOption("tooltip"), this.registerColumnOption("headerTooltip");
|
|
12971
12972
|
}
|
|
@@ -13018,9 +13019,9 @@ const Yi = class Yi extends S {
|
|
|
13018
13019
|
}), this.dispatchExternal("tooltipOpened", t.getComponent()));
|
|
13019
13020
|
}
|
|
13020
13021
|
};
|
|
13021
|
-
|
|
13022
|
-
let
|
|
13023
|
-
const
|
|
13022
|
+
Qi.moduleName = "tooltip";
|
|
13023
|
+
let mi = Qi;
|
|
13024
|
+
const Ka = {
|
|
13024
13025
|
// must be alphanumeric
|
|
13025
13026
|
alphanumeric: function(n, e, t) {
|
|
13026
13027
|
return e === "" || e === null || typeof e > "u" ? !0 : new RegExp(/^[a-z0-9]+$/i).test(e);
|
|
@@ -13100,7 +13101,7 @@ const Ua = {
|
|
|
13100
13101
|
a !== s && e === o.getFieldValue(a) && (i = !1);
|
|
13101
13102
|
}), i;
|
|
13102
13103
|
}
|
|
13103
|
-
},
|
|
13104
|
+
}, Xa = process.env.NODE_ENV === "development", qe = class qe extends S {
|
|
13104
13105
|
constructor(e) {
|
|
13105
13106
|
super(e), this.invalidCells = [], this.registerTableOption("validationMode", "blocking"), this.registerColumnOption("validator"), this.registerTableFunction(
|
|
13106
13107
|
"getInvalidCells",
|
|
@@ -13231,7 +13232,7 @@ const Ua = {
|
|
|
13231
13232
|
func: i,
|
|
13232
13233
|
params: t,
|
|
13233
13234
|
type: typeof e == "function" ? "function" : e
|
|
13234
|
-
} : (
|
|
13235
|
+
} : (Xa && console.warn(
|
|
13235
13236
|
"Validator Setup Error - No matching validator found:",
|
|
13236
13237
|
e
|
|
13237
13238
|
), !1);
|
|
@@ -13271,52 +13272,52 @@ const Ua = {
|
|
|
13271
13272
|
}
|
|
13272
13273
|
}
|
|
13273
13274
|
};
|
|
13274
|
-
qe.moduleName = "validate", qe.validators =
|
|
13275
|
-
let
|
|
13276
|
-
const
|
|
13275
|
+
qe.moduleName = "validate", qe.validators = Ka;
|
|
13276
|
+
let bi = qe;
|
|
13277
|
+
const Tt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
13277
13278
|
__proto__: null,
|
|
13278
|
-
AccessibilityModule:
|
|
13279
|
-
AccessorModule:
|
|
13280
|
-
AjaxModule:
|
|
13279
|
+
AccessibilityModule: Lt,
|
|
13280
|
+
AccessorModule: Ft,
|
|
13281
|
+
AjaxModule: Ht,
|
|
13281
13282
|
ClickableCellModule: Dt,
|
|
13282
|
-
ClipboardModule:
|
|
13283
|
-
ColumnCalcsModule:
|
|
13284
|
-
DataTreeModule:
|
|
13285
|
-
DownloadModule:
|
|
13286
|
-
EditModule:
|
|
13287
|
-
ExportModule:
|
|
13288
|
-
FilterModule:
|
|
13289
|
-
FormatModule:
|
|
13290
|
-
FrozenColumnsModule:
|
|
13291
|
-
FrozenRowsModule:
|
|
13292
|
-
GroupRowsModule:
|
|
13293
|
-
HistoryModule:
|
|
13294
|
-
HoverMenuModule:
|
|
13295
|
-
HtmlTableImportModule:
|
|
13296
|
-
ImportModule:
|
|
13297
|
-
InteractionModule:
|
|
13298
|
-
KeybindingsModule:
|
|
13299
|
-
MenuModule:
|
|
13300
|
-
MoveColumnsModule:
|
|
13301
|
-
MoveRowsModule:
|
|
13302
|
-
MutatorModule:
|
|
13303
|
-
PageModule:
|
|
13304
|
-
PersistenceModule:
|
|
13305
|
-
PopupModule:
|
|
13306
|
-
PrintModule:
|
|
13307
|
-
ReactiveDataModule:
|
|
13308
|
-
ResizeColumnsModule:
|
|
13309
|
-
ResizeRowsModule:
|
|
13310
|
-
ResizeTableModule:
|
|
13311
|
-
ResponsiveLayoutModule:
|
|
13312
|
-
SelectRangeModule:
|
|
13313
|
-
SelectRowModule:
|
|
13314
|
-
SortModule:
|
|
13315
|
-
SpreadsheetModule:
|
|
13316
|
-
TooltipModule:
|
|
13317
|
-
ValidateModule:
|
|
13283
|
+
ClipboardModule: _t,
|
|
13284
|
+
ColumnCalcsModule: Nt,
|
|
13285
|
+
DataTreeModule: It,
|
|
13286
|
+
DownloadModule: Bt,
|
|
13287
|
+
EditModule: Wt,
|
|
13288
|
+
ExportModule: Gt,
|
|
13289
|
+
FilterModule: jt,
|
|
13290
|
+
FormatModule: lt,
|
|
13291
|
+
FrozenColumnsModule: $t,
|
|
13292
|
+
FrozenRowsModule: Ut,
|
|
13293
|
+
GroupRowsModule: Kt,
|
|
13294
|
+
HistoryModule: Xt,
|
|
13295
|
+
HoverMenuModule: zt,
|
|
13296
|
+
HtmlTableImportModule: Jt,
|
|
13297
|
+
ImportModule: qt,
|
|
13298
|
+
InteractionModule: Yt,
|
|
13299
|
+
KeybindingsModule: Qt,
|
|
13300
|
+
MenuModule: Zt,
|
|
13301
|
+
MoveColumnsModule: ei,
|
|
13302
|
+
MoveRowsModule: ti,
|
|
13303
|
+
MutatorModule: ii,
|
|
13304
|
+
PageModule: si,
|
|
13305
|
+
PersistenceModule: oi,
|
|
13306
|
+
PopupModule: ri,
|
|
13307
|
+
PrintModule: ni,
|
|
13308
|
+
ReactiveDataModule: ai,
|
|
13309
|
+
ResizeColumnsModule: li,
|
|
13310
|
+
ResizeRowsModule: hi,
|
|
13311
|
+
ResizeTableModule: ci,
|
|
13312
|
+
ResponsiveLayoutModule: di,
|
|
13313
|
+
SelectRangeModule: pi,
|
|
13314
|
+
SelectRowModule: ui,
|
|
13315
|
+
SortModule: fi,
|
|
13316
|
+
SpreadsheetModule: gi,
|
|
13317
|
+
TooltipModule: mi,
|
|
13318
|
+
ValidateModule: bi
|
|
13318
13319
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
13319
|
-
class
|
|
13320
|
+
class Ja extends vt {
|
|
13320
13321
|
constructor(e) {
|
|
13321
13322
|
super(e);
|
|
13322
13323
|
}
|
|
@@ -13335,8 +13336,8 @@ class Xa extends wt {
|
|
|
13335
13336
|
await Promise.all(e.map((t) => t.reinitializeWidth()));
|
|
13336
13337
|
}
|
|
13337
13338
|
}
|
|
13338
|
-
const
|
|
13339
|
-
class
|
|
13339
|
+
const Mt = process.env.NODE_ENV === "development";
|
|
13340
|
+
class qa extends vt {
|
|
13340
13341
|
constructor(e) {
|
|
13341
13342
|
super(e), this.leftCol = 0, this.rightCol = 0, this.scrollLeft = 0, this.vDomScrollPosLeft = 0, this.vDomScrollPosRight = 0, this.vDomPadLeft = 0, this.vDomPadRight = 0, this.fitDataColAvg = 0, this.windowBuffer = 200, this.visibleRowsCache = null, this.initialized = !1, this.isFitData = !1, this.columns = [];
|
|
13342
13343
|
}
|
|
@@ -13345,7 +13346,7 @@ class Ja extends wt {
|
|
|
13345
13346
|
}
|
|
13346
13347
|
compatibilityCheck() {
|
|
13347
13348
|
const e = this.table.options.layout;
|
|
13348
|
-
|
|
13349
|
+
Mt && (e === "fitDataTable" && console.warn(
|
|
13349
13350
|
"Horizontal Virtual DOM is not compatible with fitDataTable layout mode"
|
|
13350
13351
|
), this.table.options.responsiveLayout && console.warn(
|
|
13351
13352
|
"Horizontal Virtual DOM is not compatible with responsive columns"
|
|
@@ -13541,7 +13542,7 @@ class Ja extends wt {
|
|
|
13541
13542
|
try {
|
|
13542
13543
|
l.removeChild(a);
|
|
13543
13544
|
} catch (h) {
|
|
13544
|
-
|
|
13545
|
+
Mt && console.warn(
|
|
13545
13546
|
"Could not removeColRight",
|
|
13546
13547
|
h?.message || h
|
|
13547
13548
|
);
|
|
@@ -13571,7 +13572,7 @@ class Ja extends wt {
|
|
|
13571
13572
|
try {
|
|
13572
13573
|
l.removeChild(a);
|
|
13573
13574
|
} catch (h) {
|
|
13574
|
-
|
|
13575
|
+
Mt && console.warn(
|
|
13575
13576
|
"Could not removeColLeft",
|
|
13576
13577
|
h?.message || h
|
|
13577
13578
|
);
|
|
@@ -13635,8 +13636,8 @@ class Ja extends wt {
|
|
|
13635
13636
|
}
|
|
13636
13637
|
}
|
|
13637
13638
|
}
|
|
13638
|
-
const
|
|
13639
|
-
class
|
|
13639
|
+
const Ya = process.env.NODE_ENV === "development";
|
|
13640
|
+
class Xs {
|
|
13640
13641
|
constructor(e, t, i = {}) {
|
|
13641
13642
|
this.registeredDefaults = {}, this.table = e, this.msgType = t, this.registeredDefaults = { ...i };
|
|
13642
13643
|
}
|
|
@@ -13647,19 +13648,19 @@ class Ks {
|
|
|
13647
13648
|
const i = { ...this.registeredDefaults }, s = this.table.options.debugInvalidOptions || t.debugInvalidOptions === !0;
|
|
13648
13649
|
Object.assign(i, e);
|
|
13649
13650
|
for (const o in t)
|
|
13650
|
-
Object.hasOwn(t, o) && (Object.hasOwn(i, o) || (
|
|
13651
|
+
Object.hasOwn(t, o) && (Object.hasOwn(i, o) || (Ya && s && console.warn("Invalid " + this.msgType + " option:", o), i[o] = t[o]));
|
|
13651
13652
|
for (const o in i)
|
|
13652
13653
|
Object.hasOwn(i, o) && (o in t ? i[o] = t[o] : Array.isArray(i[o]) ? i[o] = Object.assign([], i[o]) : typeof i[o] == "object" && i[o] !== null ? i[o] = { ...i[o] } : (i[o] === void 0 || i[o] === null) && delete i[o]);
|
|
13653
13654
|
return i;
|
|
13654
13655
|
}
|
|
13655
13656
|
}
|
|
13656
|
-
const
|
|
13657
|
-
class
|
|
13657
|
+
const Ts = process.env.NODE_ENV === "development";
|
|
13658
|
+
class Qa extends W {
|
|
13658
13659
|
constructor(e) {
|
|
13659
|
-
super(e), this.blockHozScrollEvent = !1, this.headersElement = null, this.contentsElement = null, this.rowHeader = null, this.columns = [], this.columnsByIndex = [], this.columnsByField = {}, this.scrollLeft = 0, this.optionsList = new
|
|
13660
|
+
super(e), this.blockHozScrollEvent = !1, this.headersElement = null, this.contentsElement = null, this.rowHeader = null, this.columns = [], this.columnsByIndex = [], this.columnsByField = {}, this.scrollLeft = 0, this.optionsList = new Xs(
|
|
13660
13661
|
this.table,
|
|
13661
13662
|
"column definition",
|
|
13662
|
-
|
|
13663
|
+
Ns
|
|
13663
13664
|
), this.redrawBlock = !1, this.redrawBlockUpdate = null, this.renderer = null;
|
|
13664
13665
|
}
|
|
13665
13666
|
// //////////// Setup Functions /////////////////
|
|
@@ -13682,10 +13683,10 @@ class Ya extends W {
|
|
|
13682
13683
|
initializeRenderer() {
|
|
13683
13684
|
let e;
|
|
13684
13685
|
const t = {
|
|
13685
|
-
basic:
|
|
13686
|
-
virtual:
|
|
13686
|
+
basic: Ja,
|
|
13687
|
+
virtual: qa
|
|
13687
13688
|
};
|
|
13688
|
-
typeof this.table.options.renderHorizontal == "string" ? e = t[this.table.options.renderHorizontal] : e = this.table.options.renderHorizontal, e ? (this.renderer = new e(this.table), this.renderer.initialize()) :
|
|
13689
|
+
typeof this.table.options.renderHorizontal == "string" ? e = t[this.table.options.renderHorizontal] : e = this.table.options.renderHorizontal, e ? (this.renderer = new e(this.table), this.renderer.initialize()) : Ts && console.error(
|
|
13689
13690
|
"Unable to find matching renderer:",
|
|
13690
13691
|
this.table.options.renderHorizontal
|
|
13691
13692
|
);
|
|
@@ -13853,7 +13854,7 @@ class Ya extends W {
|
|
|
13853
13854
|
if (typeof e == "object") {
|
|
13854
13855
|
if (e instanceof q)
|
|
13855
13856
|
return e;
|
|
13856
|
-
if (e instanceof
|
|
13857
|
+
if (e instanceof At)
|
|
13857
13858
|
return e._getSelf() || !1;
|
|
13858
13859
|
if (typeof HTMLElement < "u" && e instanceof HTMLElement)
|
|
13859
13860
|
return t = [], this.columns.forEach((s) => {
|
|
@@ -13889,7 +13890,7 @@ class Ya extends W {
|
|
|
13889
13890
|
findColumnIndex(e) {
|
|
13890
13891
|
if (e === !1)
|
|
13891
13892
|
return !1;
|
|
13892
|
-
const t = e instanceof
|
|
13893
|
+
const t = e instanceof At ? e._getSelf() : e;
|
|
13893
13894
|
return t ? this.columnsByIndex.findIndex((i) => t === i) : !1;
|
|
13894
13895
|
}
|
|
13895
13896
|
// return all columns that are not groups
|
|
@@ -13962,7 +13963,7 @@ class Ya extends W {
|
|
|
13962
13963
|
return;
|
|
13963
13964
|
}
|
|
13964
13965
|
if (e.hidden)
|
|
13965
|
-
|
|
13966
|
+
Ts && console.warn("Scroll Error - Column not visible"), o("Scroll Error - Column not visible");
|
|
13966
13967
|
else {
|
|
13967
13968
|
let r = 0;
|
|
13968
13969
|
const a = e.getLeftOffset();
|
|
@@ -14030,10 +14031,10 @@ class Ya extends W {
|
|
|
14030
14031
|
}
|
|
14031
14032
|
// redraw columns
|
|
14032
14033
|
redraw(e) {
|
|
14033
|
-
this.element &&
|
|
14034
|
+
this.element && L.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();
|
|
14034
14035
|
}
|
|
14035
14036
|
}
|
|
14036
|
-
const
|
|
14037
|
+
const Za = {
|
|
14037
14038
|
debugEventsExternal: !1,
|
|
14038
14039
|
// flag to console log events
|
|
14039
14040
|
debugEventsInternal: !1,
|
|
@@ -14093,7 +14094,7 @@ const Qa = {
|
|
|
14093
14094
|
dataReceiveParams: {}
|
|
14094
14095
|
// dependencies: {},
|
|
14095
14096
|
};
|
|
14096
|
-
class
|
|
14097
|
+
class el extends W {
|
|
14097
14098
|
constructor(e) {
|
|
14098
14099
|
super(e), this.active = !1, this.element = this.createElement(), this.containerElement = this.createContainerElement(), this.external = !1;
|
|
14099
14100
|
}
|
|
@@ -14151,7 +14152,7 @@ class Za extends W {
|
|
|
14151
14152
|
this.dispatch("footer-redraw");
|
|
14152
14153
|
}
|
|
14153
14154
|
}
|
|
14154
|
-
class
|
|
14155
|
+
class tl extends vt {
|
|
14155
14156
|
constructor(e) {
|
|
14156
14157
|
super(e), this.scrollTop = 0, this.scrollLeft = 0, this.verticalFillMode = "fill";
|
|
14157
14158
|
}
|
|
@@ -14189,18 +14190,18 @@ class el extends wt {
|
|
|
14189
14190
|
const t = e.getElement(), i = this.elementVertical;
|
|
14190
14191
|
if (!t || !i)
|
|
14191
14192
|
return !0;
|
|
14192
|
-
const s =
|
|
14193
|
+
const s = L.elOffset(t).top, o = L.elOffset(i).top, r = o + i.clientHeight;
|
|
14193
14194
|
return Math.abs(s - o) <= Math.abs(s - r);
|
|
14194
14195
|
}
|
|
14195
14196
|
scrollToRow(e) {
|
|
14196
14197
|
const t = e.getElement(), i = this.elementVertical;
|
|
14197
|
-
!t || !i || (i.scrollTop =
|
|
14198
|
+
!t || !i || (i.scrollTop = L.elOffset(t).top - L.elOffset(i).top + i.scrollTop);
|
|
14198
14199
|
}
|
|
14199
14200
|
visibleRows() {
|
|
14200
14201
|
return this.rows();
|
|
14201
14202
|
}
|
|
14202
14203
|
}
|
|
14203
|
-
class
|
|
14204
|
+
class il extends vt {
|
|
14204
14205
|
// total scroll height of virtual DOM
|
|
14205
14206
|
constructor(e) {
|
|
14206
14207
|
super(e), this.scrollTop = 0, this.scrollLeft = 0, this.vDomRowHeight = 20, this.vDomTop = 0, this.vDomBottom = 0, this.vDomScrollPosTop = 0, this.vDomScrollPosBottom = 0, this.vDomTopPad = 0, this.vDomBottomPad = 0, this.vDomMaxRenderChain = 90, this.vDomWindowBuffer = 0, this.vDomWindowMinTotalRows = 20, this.vDomWindowMinMarginRows = 5, this.vDomTopNewRows = [], this.vDomBottomNewRows = [], this.vDomScrollHeight = 0, this.verticalFillMode = "fill";
|
|
@@ -14323,7 +14324,7 @@ class tl extends wt {
|
|
|
14323
14324
|
), e -= r;
|
|
14324
14325
|
}
|
|
14325
14326
|
const ze = !this.table.initialized || !!t;
|
|
14326
|
-
if (u && this.elementVertical && (
|
|
14327
|
+
if (u && this.elementVertical && (L.elVisible(this.elementVertical) || ze)) {
|
|
14327
14328
|
for (this.vDomTop = e, this.vDomBottom = e - 1, P ? (V && (x = N / V + this.vDomWindowBuffer / V), x = Math.max(
|
|
14328
14329
|
this.vDomWindowMinTotalRows,
|
|
14329
14330
|
Math.ceil(x)
|
|
@@ -14446,8 +14447,8 @@ class tl extends wt {
|
|
|
14446
14447
|
t.setCellHeight();
|
|
14447
14448
|
}
|
|
14448
14449
|
}
|
|
14449
|
-
const xe = process.env.NODE_ENV === "development",
|
|
14450
|
-
class
|
|
14450
|
+
const xe = process.env.NODE_ENV === "development", sl = E`<div class="tabulator-tableholder-wrapper"></div>`;
|
|
14451
|
+
class ol extends W {
|
|
14451
14452
|
/**
|
|
14452
14453
|
* True when table has an explicit height (--table-height is set to a non-auto value (e.g. 100%, 500px));
|
|
14453
14454
|
* false when height is variable (--table-height is "auto" or unset).
|
|
@@ -14461,7 +14462,7 @@ class sl extends W {
|
|
|
14461
14462
|
}
|
|
14462
14463
|
// ////////////// Setup Functions /////////////////
|
|
14463
14464
|
createWrapperElement() {
|
|
14464
|
-
return k(
|
|
14465
|
+
return k(sl);
|
|
14465
14466
|
}
|
|
14466
14467
|
createHolderElement() {
|
|
14467
14468
|
const e = document.createElement("div");
|
|
@@ -14786,7 +14787,7 @@ Data: `,
|
|
|
14786
14787
|
});
|
|
14787
14788
|
return;
|
|
14788
14789
|
} else
|
|
14789
|
-
|
|
14790
|
+
L.elVisible(this.element) ? i ? this.reRenderInPosition(
|
|
14790
14791
|
this.refreshPipelines.bind(
|
|
14791
14792
|
this,
|
|
14792
14793
|
e,
|
|
@@ -14892,8 +14893,8 @@ Data: `,
|
|
|
14892
14893
|
initializeRenderer() {
|
|
14893
14894
|
let e;
|
|
14894
14895
|
const t = {
|
|
14895
|
-
basic:
|
|
14896
|
-
virtual:
|
|
14896
|
+
basic: tl,
|
|
14897
|
+
virtual: il
|
|
14897
14898
|
};
|
|
14898
14899
|
typeof this.table.options.renderVertical == "string" ? e = t[this.table.options.renderVertical] : e = this.table.options.renderVertical, e ? (this.renderMode = this.table.options.renderVertical, this.renderer = new e(this.table, this.element, this.tableElement), this.renderer?.initialize()) : xe && console.error(
|
|
14899
14900
|
"Unable to find matching renderer:",
|
|
@@ -15023,7 +15024,7 @@ Data: `,
|
|
|
15023
15024
|
this.element.dispatchEvent(new Event("scroll"));
|
|
15024
15025
|
}
|
|
15025
15026
|
}
|
|
15026
|
-
class
|
|
15027
|
+
class rl extends W {
|
|
15027
15028
|
constructor(e) {
|
|
15028
15029
|
super(e), this.type = null, this.element = this._createAlertElement(), this.msgElement = this._createMsgElement(), this.element.appendChild(this.msgElement);
|
|
15029
15030
|
}
|
|
@@ -15051,13 +15052,13 @@ class ol extends W {
|
|
|
15051
15052
|
this.dispatch("alert-hide", this.type), this.element.parentNode && this.element.parentNode.removeChild(this.element), this.element.classList.remove(this._typeClass()), this.msgElement.classList.remove(this._typeClass()), this.type = null;
|
|
15052
15053
|
}
|
|
15053
15054
|
}
|
|
15054
|
-
const
|
|
15055
|
-
class
|
|
15055
|
+
const Ms = process.env.NODE_ENV === "development";
|
|
15056
|
+
class nl {
|
|
15056
15057
|
constructor(e) {
|
|
15057
15058
|
this.bindings = {}, this.table = e;
|
|
15058
15059
|
}
|
|
15059
15060
|
bind(e, t, i) {
|
|
15060
|
-
this.bindings[e] || (this.bindings[e] = {}), this.bindings[e][t] ?
|
|
15061
|
+
this.bindings[e] || (this.bindings[e] = {}), this.bindings[e][t] ? Ms && console.warn(
|
|
15061
15062
|
"Unable to bind component handler, a matching function name is already bound",
|
|
15062
15063
|
e,
|
|
15063
15064
|
t,
|
|
@@ -15068,13 +15069,13 @@ class rl {
|
|
|
15068
15069
|
if (typeof i == "string") {
|
|
15069
15070
|
if (this.bindings[e]?.[i] && typeof this.bindings[e][i].bind == "function")
|
|
15070
15071
|
return this.bindings[e][i].bind(null, t);
|
|
15071
|
-
|
|
15072
|
+
Ms && i !== "then" && !i.startsWith("_") && this.table.options.debugInvalidComponentFuncs && console.error(
|
|
15072
15073
|
"The " + e + " component does not have a " + i + " function, have you checked that you have the correct Tabulator module installed?"
|
|
15073
15074
|
);
|
|
15074
15075
|
}
|
|
15075
15076
|
}
|
|
15076
15077
|
}
|
|
15077
|
-
const ot = process.env.NODE_ENV === "development",
|
|
15078
|
+
const ot = process.env.NODE_ENV === "development", ut = class ut extends W {
|
|
15078
15079
|
constructor(e) {
|
|
15079
15080
|
super(e), this.debounceTimer = null, this.pendingPromise = null, this.pendingResolve = null, this.pendingReject = null, this.requestOrder = 0, this.loading = !1, this.externalLoading = !1;
|
|
15080
15081
|
}
|
|
@@ -15101,7 +15102,7 @@ const ot = process.env.NODE_ENV === "development", dt = class dt extends W {
|
|
|
15101
15102
|
this.debounceTimer = null;
|
|
15102
15103
|
const l = this.pendingResolve, h = this.pendingReject;
|
|
15103
15104
|
this.pendingPromise = null, this.pendingResolve = null, this.pendingReject = null, this._executeLoad(e, t, i, s, o, r).then(() => l?.()).catch((c) => h?.(c));
|
|
15104
|
-
},
|
|
15105
|
+
}, ut.DEBOUNCE_DELAY), a;
|
|
15105
15106
|
}
|
|
15106
15107
|
_executeLoad(e, t, i, s, o, r) {
|
|
15107
15108
|
const a = ++this.requestOrder;
|
|
@@ -15198,10 +15199,10 @@ const ot = process.env.NODE_ENV === "development", dt = class dt extends W {
|
|
|
15198
15199
|
this.externalLoading || this.table.alertManager?.clear();
|
|
15199
15200
|
}
|
|
15200
15201
|
};
|
|
15201
|
-
|
|
15202
|
-
let
|
|
15203
|
-
const
|
|
15204
|
-
class
|
|
15202
|
+
ut.DEBOUNCE_DELAY = 500;
|
|
15203
|
+
let wi = ut;
|
|
15204
|
+
const al = process.env.NODE_ENV === "development";
|
|
15205
|
+
class ll extends W {
|
|
15205
15206
|
constructor(e) {
|
|
15206
15207
|
super(e), this.deps = {}, this.props = {};
|
|
15207
15208
|
}
|
|
@@ -15236,20 +15237,20 @@ class al extends W {
|
|
|
15236
15237
|
return this.deps[e] ? i = this.deps[e] : globalThis[e] ? (this.deps[e] = globalThis[e], i = this.deps[e]) : t || this.error(e), i;
|
|
15237
15238
|
}
|
|
15238
15239
|
error(e) {
|
|
15239
|
-
|
|
15240
|
+
al && console.error(
|
|
15240
15241
|
"Unable to find dependency",
|
|
15241
15242
|
e,
|
|
15242
15243
|
"Please check documentation and ensure you have imported the required library into your project"
|
|
15243
15244
|
);
|
|
15244
15245
|
}
|
|
15245
15246
|
}
|
|
15246
|
-
const
|
|
15247
|
-
class
|
|
15247
|
+
const hl = process.env.NODE_ENV === "development";
|
|
15248
|
+
class cl extends W {
|
|
15248
15249
|
constructor(e) {
|
|
15249
15250
|
super(e);
|
|
15250
15251
|
}
|
|
15251
15252
|
_warnUser(...e) {
|
|
15252
|
-
this.options("debugDeprecation") &&
|
|
15253
|
+
this.options("debugDeprecation") && hl && console.warn(...e);
|
|
15253
15254
|
}
|
|
15254
15255
|
check(e, t, i) {
|
|
15255
15256
|
if (this.options(e) === void 0 || this.options(e) === null)
|
|
@@ -15281,8 +15282,8 @@ class hl extends W {
|
|
|
15281
15282
|
this._warnUser(e);
|
|
15282
15283
|
}
|
|
15283
15284
|
}
|
|
15284
|
-
const
|
|
15285
|
-
class
|
|
15285
|
+
const kt = process.env.NODE_ENV === "development";
|
|
15286
|
+
class dl {
|
|
15286
15287
|
constructor(e, t, i) {
|
|
15287
15288
|
this.events = {}, this.subscriptionNotifiers = {}, this.table = e, this.events = {}, this.optionsList = t || {}, this.subscriptionNotifiers = {}, this.dispatch = i ? this._debugDispatch.bind(this) : this._dispatch.bind(this), this.debug = i;
|
|
15288
15289
|
}
|
|
@@ -15299,7 +15300,7 @@ class cl {
|
|
|
15299
15300
|
if (i > -1)
|
|
15300
15301
|
this.events[e].splice(i, 1);
|
|
15301
15302
|
else {
|
|
15302
|
-
|
|
15303
|
+
kt && console.warn(
|
|
15303
15304
|
"Cannot remove event, no matching event found:",
|
|
15304
15305
|
e,
|
|
15305
15306
|
t
|
|
@@ -15309,7 +15310,7 @@ class cl {
|
|
|
15309
15310
|
} else
|
|
15310
15311
|
delete this.events[e];
|
|
15311
15312
|
else {
|
|
15312
|
-
|
|
15313
|
+
kt && console.warn("Cannot remove event, no events set on:", e);
|
|
15313
15314
|
return;
|
|
15314
15315
|
}
|
|
15315
15316
|
this._notifySubscriptionChange(e, this.subscribed(e));
|
|
@@ -15332,11 +15333,11 @@ class cl {
|
|
|
15332
15333
|
}
|
|
15333
15334
|
_debugDispatch(e, ...t) {
|
|
15334
15335
|
const i = "ExternalEvent:" + e;
|
|
15335
|
-
return
|
|
15336
|
+
return kt && (this.debug === !0 || Array.isArray(this.debug) && this.debug.includes(e)) && console.log(i, ...t), this._dispatch(e, ...t);
|
|
15336
15337
|
}
|
|
15337
15338
|
}
|
|
15338
|
-
const
|
|
15339
|
-
class
|
|
15339
|
+
const ul = process.env.NODE_ENV === "development";
|
|
15340
|
+
class pl extends W {
|
|
15340
15341
|
constructor(e) {
|
|
15341
15342
|
super(e), this.el = null, this.abortClasses = ["tabulator-headers", "tabulator-table"], this.previousTargets = {}, this.listeners = [
|
|
15342
15343
|
"click",
|
|
@@ -15487,7 +15488,7 @@ class ul extends W {
|
|
|
15487
15488
|
s.components.includes("column") && (h = this.table.columnManager?.findColumn(c));
|
|
15488
15489
|
break;
|
|
15489
15490
|
case "cell":
|
|
15490
|
-
s.components.includes("cell") && (o.row instanceof B ? h = o.row.findCell(c) :
|
|
15491
|
+
s.components.includes("cell") && (o.row instanceof B ? h = o.row.findCell(c) : ul && t.row && console.warn(
|
|
15491
15492
|
"Event Target Lookup Error - The row this cell is attached to cannot be found, has the table been reinitialized without being destroyed first?"
|
|
15492
15493
|
));
|
|
15493
15494
|
break;
|
|
@@ -15518,7 +15519,7 @@ class ul extends W {
|
|
|
15518
15519
|
}
|
|
15519
15520
|
}
|
|
15520
15521
|
const $e = process.env.NODE_ENV === "development";
|
|
15521
|
-
class
|
|
15522
|
+
class fl {
|
|
15522
15523
|
constructor(e) {
|
|
15523
15524
|
this.events = {}, this.subscriptionNotifiers = {}, this.events = {}, this.subscriptionNotifiers = {}, this.dispatch = e ? this._debugDispatch.bind(this) : this._dispatch.bind(this), this.chain = e ? this._debugChain.bind(this) : this._chain.bind(this), this.confirm = e ? this._debugConfirm.bind(this) : this._confirm.bind(this), this.debug = e;
|
|
15524
15525
|
}
|
|
@@ -15591,7 +15592,7 @@ class pl {
|
|
|
15591
15592
|
return $e && (this.debug === !0 || Array.isArray(this.debug) && this.debug.includes(e)) && console.log(i, t), this._confirm(e, t);
|
|
15592
15593
|
}
|
|
15593
15594
|
}
|
|
15594
|
-
function
|
|
15595
|
+
function gl(n) {
|
|
15595
15596
|
let e = this.table.element?.clientWidth || 0;
|
|
15596
15597
|
const t = this.table.columnManager?.contentsElement;
|
|
15597
15598
|
if (t) {
|
|
@@ -15655,15 +15656,15 @@ function fl(n) {
|
|
|
15655
15656
|
m.column.setWidth(m.width);
|
|
15656
15657
|
});
|
|
15657
15658
|
}
|
|
15658
|
-
async function
|
|
15659
|
+
async function ml(n, e) {
|
|
15659
15660
|
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();
|
|
15660
15661
|
}
|
|
15661
|
-
async function
|
|
15662
|
+
async function ks(n) {
|
|
15662
15663
|
for (const e of n)
|
|
15663
15664
|
await e.reinitializeWidth();
|
|
15664
15665
|
this.table.options.responsiveLayout && this.table.modExists("responsiveLayout", !0) && this.table.modules.responsiveLayout.update();
|
|
15665
15666
|
}
|
|
15666
|
-
async function
|
|
15667
|
+
async function bl(n) {
|
|
15667
15668
|
let e = 0, t = this.table.element?.clientWidth || 0;
|
|
15668
15669
|
const i = this.table.columnManager?.contentsElement;
|
|
15669
15670
|
if (i) {
|
|
@@ -15676,20 +15677,20 @@ async function ml(n) {
|
|
|
15676
15677
|
a.widthFixed || await a.reinitializeWidth(), (this.table.options.responsiveLayout ? a.modules.responsive.visible : !a.hidden) && (r = a), a.hidden || (e += a.getWidth());
|
|
15677
15678
|
r ? (o = s - e + r.getWidth(), this.table.options.responsiveLayout && this.table.modExists("responsiveLayout", !0) && (r.setWidth(0), this.table.modules.responsiveLayout?.update()), o > 0 ? r.setWidth(o) : await r.reinitializeWidth()) : this.table.options.responsiveLayout && this.table.modExists("responsiveLayout", !0) && this.table.modules.responsiveLayout.update();
|
|
15678
15679
|
}
|
|
15679
|
-
const
|
|
15680
|
-
fitColumns:
|
|
15681
|
-
fitData:
|
|
15682
|
-
fitDataFill:
|
|
15683
|
-
fitDataStretch:
|
|
15684
|
-
fitDataTable:
|
|
15685
|
-
},
|
|
15680
|
+
const wl = {
|
|
15681
|
+
fitColumns: gl,
|
|
15682
|
+
fitData: ml,
|
|
15683
|
+
fitDataFill: ks,
|
|
15684
|
+
fitDataStretch: bl,
|
|
15685
|
+
fitDataTable: ks
|
|
15686
|
+
}, vl = process.env.NODE_ENV === "development", Me = class Me extends S {
|
|
15686
15687
|
constructor(e) {
|
|
15687
15688
|
super(e), this.mode = null, this.registerTableOption("layout", "fitData"), this.registerTableOption("layoutColumnsOnNewData", !1), this.registerColumnOption("widthGrow"), this.registerColumnOption("widthShrink");
|
|
15688
15689
|
}
|
|
15689
15690
|
// initialize layout system
|
|
15690
15691
|
initialize() {
|
|
15691
15692
|
const e = this.table.options.layout;
|
|
15692
|
-
e && Me.modes[e] ? this.mode = e : (
|
|
15693
|
+
e && Me.modes[e] ? this.mode = e : (vl && console.warn(
|
|
15693
15694
|
"Layout Error - invalid mode set, defaulting to 'fitData' : " + e
|
|
15694
15695
|
), this.mode = "fitData"), this.table.element.setAttribute("tabulator-layout", this.mode), this.subscribe("column-init", this.initializeColumn.bind(this));
|
|
15695
15696
|
}
|
|
@@ -15713,9 +15714,9 @@ const bl = {
|
|
|
15713
15714
|
), t && this.table.rowManager?.normalizeHeight(!0), this.dispatch("layout-refreshed");
|
|
15714
15715
|
}
|
|
15715
15716
|
};
|
|
15716
|
-
Me.moduleName = "layout", Me.modes =
|
|
15717
|
-
let
|
|
15718
|
-
const
|
|
15717
|
+
Me.moduleName = "layout", Me.modes = wl;
|
|
15718
|
+
let vi = Me;
|
|
15719
|
+
const yl = {
|
|
15719
15720
|
default: {
|
|
15720
15721
|
columns: {},
|
|
15721
15722
|
data: {
|
|
@@ -15751,12 +15752,12 @@ const vl = {
|
|
|
15751
15752
|
prev_title: "Prev Page"
|
|
15752
15753
|
}
|
|
15753
15754
|
}
|
|
15754
|
-
},
|
|
15755
|
+
}, Ls = process.env.NODE_ENV === "development", Ye = class Ye extends S {
|
|
15755
15756
|
constructor(e) {
|
|
15756
15757
|
super(e), this.locale = "default", this.lang = !1, this.bindings = {}, this.langList = {}, this.registerTableOption("locale", !1), this.registerTableOption("langs", {});
|
|
15757
15758
|
}
|
|
15758
15759
|
initialize() {
|
|
15759
|
-
this.langList =
|
|
15760
|
+
this.langList = L.deepClone(Ye.langs);
|
|
15760
15761
|
const e = this.table.options.columnDefaults?.headerFilterPlaceholder;
|
|
15761
15762
|
e && typeof e == "string" && this.setHeaderFilterPlaceholder(e);
|
|
15762
15763
|
for (const t in this.table.options.langs)
|
|
@@ -15785,16 +15786,16 @@ const vl = {
|
|
|
15785
15786
|
};
|
|
15786
15787
|
if (t && !this.langList[t]) {
|
|
15787
15788
|
const s = t.split("-")[0];
|
|
15788
|
-
this.langList[s] ? (
|
|
15789
|
+
this.langList[s] ? (Ls && console.warn(
|
|
15789
15790
|
"Localization Error - Exact matching locale not found, using closest match: ",
|
|
15790
15791
|
t,
|
|
15791
15792
|
s
|
|
15792
|
-
), t = s) : (
|
|
15793
|
+
), t = s) : (Ls && console.warn(
|
|
15793
15794
|
"Localization Error - Matching locale not found, using default: ",
|
|
15794
15795
|
t
|
|
15795
15796
|
), t = "default");
|
|
15796
15797
|
}
|
|
15797
|
-
this.locale = t, this.lang =
|
|
15798
|
+
this.locale = t, this.lang = L.deepClone(this.langList.default || {}), t !== "default" && this.langList[t] && i(this.langList[t], this.lang), this.dispatchExternal("localized", this.locale, this.lang), this._executeBindings();
|
|
15798
15799
|
}
|
|
15799
15800
|
// get current locale
|
|
15800
15801
|
getLocale() {
|
|
@@ -15831,9 +15832,9 @@ const vl = {
|
|
|
15831
15832
|
});
|
|
15832
15833
|
}
|
|
15833
15834
|
};
|
|
15834
|
-
Ye.moduleName = "localize", Ye.langs =
|
|
15835
|
-
let
|
|
15836
|
-
const Ds = process.env.NODE_ENV === "development",
|
|
15835
|
+
Ye.moduleName = "localize", Ye.langs = yl;
|
|
15836
|
+
let yi = Ye;
|
|
15837
|
+
const Ds = process.env.NODE_ENV === "development", Zi = class Zi extends S {
|
|
15837
15838
|
constructor(e) {
|
|
15838
15839
|
super(e);
|
|
15839
15840
|
}
|
|
@@ -15861,14 +15862,14 @@ const Ds = process.env.NODE_ENV === "development", Qi = class Qi extends S {
|
|
|
15861
15862
|
Ds && console.warn("Inter-table Comms Error - no such module:", t);
|
|
15862
15863
|
}
|
|
15863
15864
|
};
|
|
15864
|
-
|
|
15865
|
-
let
|
|
15866
|
-
const
|
|
15865
|
+
Zi.moduleName = "comms";
|
|
15866
|
+
let Ci = Zi;
|
|
15867
|
+
const Cl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
15867
15868
|
__proto__: null,
|
|
15868
|
-
CommsModule:
|
|
15869
|
-
LayoutModule:
|
|
15870
|
-
LocalizeModule:
|
|
15871
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
15869
|
+
CommsModule: Ci,
|
|
15870
|
+
LayoutModule: vi,
|
|
15871
|
+
LocalizeModule: yi
|
|
15872
|
+
}, Symbol.toStringTag, { value: "Module" })), El = process.env.NODE_ENV === "development", ee = class ee {
|
|
15872
15873
|
static findTable(e) {
|
|
15873
15874
|
const t = ee.registry.lookupTable(e, !0);
|
|
15874
15875
|
return Array.isArray(t) && !t.length ? !1 : t;
|
|
@@ -15889,7 +15890,7 @@ ee.registry = {
|
|
|
15889
15890
|
} else typeof HTMLElement < "u" && e instanceof HTMLElement || e instanceof ee ? (o = ee.registry.matchElement(e), o && i.push(o)) : Array.isArray(e) ? e.forEach((r) => {
|
|
15890
15891
|
const a = ee.registry.lookupTable(r, !0);
|
|
15891
15892
|
i.push(...a);
|
|
15892
|
-
}) :
|
|
15893
|
+
}) : El && !t && console.warn("Table Connection Error - Invalid Selector", e);
|
|
15893
15894
|
return i;
|
|
15894
15895
|
},
|
|
15895
15896
|
matchElement(e) {
|
|
@@ -15900,17 +15901,17 @@ ee.registry = {
|
|
|
15900
15901
|
},
|
|
15901
15902
|
tables: []
|
|
15902
15903
|
};
|
|
15903
|
-
let
|
|
15904
|
-
const rt = process.env.NODE_ENV === "development",
|
|
15904
|
+
let Ei = ee;
|
|
15905
|
+
const rt = process.env.NODE_ENV === "development", D = class D extends Ei {
|
|
15905
15906
|
constructor() {
|
|
15906
15907
|
super(), this.modulesCore = [], this.modulesRegular = [];
|
|
15907
15908
|
}
|
|
15908
15909
|
static initializeModuleBinder(e) {
|
|
15909
|
-
|
|
15910
|
+
D.modulesRegistered || (D.modulesRegistered = !0, D._registerModules(Cl, !0), e && D._registerModules(e));
|
|
15910
15911
|
}
|
|
15911
15912
|
static _extendModule(e, t, i) {
|
|
15912
|
-
if (
|
|
15913
|
-
const s =
|
|
15913
|
+
if (D.moduleBindings[e]) {
|
|
15914
|
+
const s = D.moduleBindings[e][t];
|
|
15914
15915
|
if (s)
|
|
15915
15916
|
if (typeof i == "object")
|
|
15916
15917
|
for (const o in i)
|
|
@@ -15925,15 +15926,15 @@ const rt = process.env.NODE_ENV === "development", L = class L extends Ci {
|
|
|
15925
15926
|
const i = Object.values(e);
|
|
15926
15927
|
t && i.forEach((s) => {
|
|
15927
15928
|
s.prototype.moduleCore = !0;
|
|
15928
|
-
}),
|
|
15929
|
+
}), D._registerModule(i);
|
|
15929
15930
|
}
|
|
15930
15931
|
static _registerModule(e) {
|
|
15931
15932
|
(Array.isArray(e) ? e : [e]).forEach((i) => {
|
|
15932
|
-
|
|
15933
|
+
D._registerModuleBinding(i), D._registerModuleExtensions(i);
|
|
15933
15934
|
});
|
|
15934
15935
|
}
|
|
15935
15936
|
static _registerModuleBinding(e) {
|
|
15936
|
-
e.moduleName ?
|
|
15937
|
+
e.moduleName ? D.moduleBindings[e.moduleName] = e : rt && console.error(
|
|
15937
15938
|
"Unable to bind module, no moduleName defined",
|
|
15938
15939
|
e.moduleName
|
|
15939
15940
|
);
|
|
@@ -15943,25 +15944,25 @@ const rt = process.env.NODE_ENV === "development", L = class L extends Ci {
|
|
|
15943
15944
|
if (e.moduleExtensions)
|
|
15944
15945
|
for (const i in t) {
|
|
15945
15946
|
const s = t[i];
|
|
15946
|
-
if (
|
|
15947
|
+
if (D.moduleBindings[i])
|
|
15947
15948
|
for (const o in s)
|
|
15948
|
-
|
|
15949
|
+
D._extendModule(i, o, s[o]);
|
|
15949
15950
|
else {
|
|
15950
|
-
|
|
15951
|
+
D.moduleExtensions[i] || (D.moduleExtensions[i] = {});
|
|
15951
15952
|
for (const o in s)
|
|
15952
|
-
|
|
15953
|
-
|
|
15953
|
+
D.moduleExtensions[i][o] || (D.moduleExtensions[i][o] = {}), Object.assign(
|
|
15954
|
+
D.moduleExtensions[i][o],
|
|
15954
15955
|
s[o]
|
|
15955
15956
|
);
|
|
15956
15957
|
}
|
|
15957
15958
|
}
|
|
15958
|
-
|
|
15959
|
+
D._extendModuleFromQueue(e);
|
|
15959
15960
|
}
|
|
15960
15961
|
static _extendModuleFromQueue(e) {
|
|
15961
|
-
const t =
|
|
15962
|
+
const t = D.moduleExtensions[e.moduleName];
|
|
15962
15963
|
if (t)
|
|
15963
15964
|
for (const i in t)
|
|
15964
|
-
|
|
15965
|
+
D._extendModule(
|
|
15965
15966
|
e.moduleName,
|
|
15966
15967
|
i,
|
|
15967
15968
|
t[i]
|
|
@@ -15971,8 +15972,8 @@ const rt = process.env.NODE_ENV === "development", L = class L extends Ci {
|
|
|
15971
15972
|
_bindModules() {
|
|
15972
15973
|
const e = [], t = [], i = [];
|
|
15973
15974
|
this.modules = {};
|
|
15974
|
-
for (const s in
|
|
15975
|
-
const o =
|
|
15975
|
+
for (const s in D.moduleBindings) {
|
|
15976
|
+
const o = D.moduleBindings[s], r = new o(this);
|
|
15976
15977
|
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);
|
|
15977
15978
|
}
|
|
15978
15979
|
e.sort((s, o) => {
|
|
@@ -15986,9 +15987,9 @@ const rt = process.env.NODE_ENV === "development", L = class L extends Ci {
|
|
|
15986
15987
|
);
|
|
15987
15988
|
}
|
|
15988
15989
|
};
|
|
15989
|
-
|
|
15990
|
-
let
|
|
15991
|
-
const z = process.env.NODE_ENV === "development", ce = class ce extends
|
|
15990
|
+
D.moduleBindings = {}, D.moduleExtensions = {}, D.modulesRegistered = !1, D.defaultModules = !1;
|
|
15991
|
+
let xi = D;
|
|
15992
|
+
const z = process.env.NODE_ENV === "development", ce = class ce extends xi {
|
|
15992
15993
|
static extendModule(...e) {
|
|
15993
15994
|
ce.initializeModuleBinder(), ce._extendModule(...e);
|
|
15994
15995
|
}
|
|
@@ -15996,7 +15997,7 @@ const z = process.env.NODE_ENV === "development", ce = class ce extends Ei {
|
|
|
15996
15997
|
ce.initializeModuleBinder(), ce._registerModule(...e);
|
|
15997
15998
|
}
|
|
15998
15999
|
constructor(e, t, i) {
|
|
15999
|
-
super(), ce.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
|
|
16000
|
+
super(), ce.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 nl(this), this.dataLoader = null, this.modules = {}, this.modulesCore = [], this.modulesRegular = [], this.deprecationAdvisor = new cl(this), this.optionsList = new Xs(this, "table constructor"), this.dependencyRegistry = new ll(this), this.initialized = !1, this.destroyed = !1, this.initializeElement(e) && (this.initializeCoreSystems(t), setTimeout(() => {
|
|
16000
16001
|
this._create();
|
|
16001
16002
|
})), this.constructor.registry.register(this);
|
|
16002
16003
|
}
|
|
@@ -16016,11 +16017,11 @@ const z = process.env.NODE_ENV === "development", ce = class ce extends Ei {
|
|
|
16016
16017
|
), !1;
|
|
16017
16018
|
}
|
|
16018
16019
|
initializeCoreSystems(e) {
|
|
16019
|
-
this.columnManager = new
|
|
16020
|
+
this.columnManager = new Qa(this), this.rowManager = new ol(this), this.footerManager = new el(this), this.dataLoader = new wi(this), this.alertManager = new rl(this), this.toolbar = e?.toolbarElement, this._bindModules(), this.options = this.optionsList.generate(ce.defaultOptions, e), this._clearObjectPointers(), this._mapDeprecatedFunctionality(), this.externalEvents = new dl(
|
|
16020
16021
|
this,
|
|
16021
16022
|
this.options,
|
|
16022
16023
|
this.options.debugEventsExternal
|
|
16023
|
-
), this.eventBus = new
|
|
16024
|
+
), this.eventBus = new fl(this.options.debugEventsInternal), this.interactionMonitor = new pl(this), this.dataLoader.initialize(), this.footerManager.initialize(), this.dependencyRegistry.initialize();
|
|
16024
16025
|
}
|
|
16025
16026
|
// convert deprecated functionality to new functions
|
|
16026
16027
|
_mapDeprecatedFunctionality() {
|
|
@@ -16386,21 +16387,21 @@ const z = process.env.NODE_ENV === "development", ce = class ce extends Ei {
|
|
|
16386
16387
|
return !t && z && console.error("Tabulator module not installed: " + e), t;
|
|
16387
16388
|
}
|
|
16388
16389
|
};
|
|
16389
|
-
ce.defaultOptions =
|
|
16390
|
+
ce.defaultOptions = Za;
|
|
16390
16391
|
let ve = ce;
|
|
16391
|
-
class
|
|
16392
|
+
class xl extends ve {
|
|
16392
16393
|
static extendModule(...e) {
|
|
16393
|
-
ve.initializeModuleBinder(
|
|
16394
|
+
ve.initializeModuleBinder(Tt), ve._extendModule(...e);
|
|
16394
16395
|
}
|
|
16395
16396
|
static registerModule(...e) {
|
|
16396
|
-
ve.initializeModuleBinder(
|
|
16397
|
+
ve.initializeModuleBinder(Tt), ve._registerModule(...e);
|
|
16397
16398
|
}
|
|
16398
16399
|
constructor(e, t) {
|
|
16399
|
-
super(e, t,
|
|
16400
|
+
super(e, t, Tt);
|
|
16400
16401
|
}
|
|
16401
16402
|
// #endregion
|
|
16402
16403
|
}
|
|
16403
|
-
class
|
|
16404
|
+
class oc {
|
|
16404
16405
|
constructor(e) {
|
|
16405
16406
|
this.type = e, this.element = this._createElement();
|
|
16406
16407
|
}
|
|
@@ -16440,7 +16441,7 @@ class ic {
|
|
|
16440
16441
|
rendered() {
|
|
16441
16442
|
}
|
|
16442
16443
|
}
|
|
16443
|
-
class
|
|
16444
|
+
class Rl {
|
|
16444
16445
|
#e;
|
|
16445
16446
|
#i;
|
|
16446
16447
|
#s = /* @__PURE__ */ new Set();
|
|
@@ -16506,21 +16507,21 @@ class xl {
|
|
|
16506
16507
|
return t.includes("-") && !customElements.get(t);
|
|
16507
16508
|
}
|
|
16508
16509
|
}
|
|
16509
|
-
const
|
|
16510
|
-
var
|
|
16511
|
-
for (var s = i > 1 ? void 0 : i ?
|
|
16510
|
+
const Sl = O`.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}`;
|
|
16511
|
+
var Tl = Object.defineProperty, Ml = Object.getOwnPropertyDescriptor, De = (n, e, t, i) => {
|
|
16512
|
+
for (var s = i > 1 ? void 0 : i ? Ml(e, t) : e, o = n.length - 1, r; o >= 0; o--)
|
|
16512
16513
|
(r = n[o]) && (s = (i ? r(e, t, s) : r(s)) || s);
|
|
16513
|
-
return i && s &&
|
|
16514
|
+
return i && s && Tl(e, t, s), s;
|
|
16514
16515
|
};
|
|
16515
16516
|
let ne = class extends Ie {
|
|
16516
16517
|
constructor() {
|
|
16517
|
-
super(...arguments), this.localize = new
|
|
16518
|
+
super(...arguments), this.localize = new pt(this), this.groupedDropdownItems = {}, this.sections = [];
|
|
16518
16519
|
}
|
|
16519
16520
|
createRenderRoot() {
|
|
16520
16521
|
return this;
|
|
16521
16522
|
}
|
|
16522
16523
|
handleActionChange() {
|
|
16523
|
-
this.groupedDropdownItems =
|
|
16524
|
+
this.groupedDropdownItems = no(
|
|
16524
16525
|
this.action?.options?.dropdownItems ?? [],
|
|
16525
16526
|
"section"
|
|
16526
16527
|
), this.sections = Object.keys(this.groupedDropdownItems);
|
|
@@ -16539,7 +16540,7 @@ let ne = class extends Ie {
|
|
|
16539
16540
|
return Ne(
|
|
16540
16541
|
n,
|
|
16541
16542
|
(e) => e.name,
|
|
16542
|
-
(e) => E`<cx-menu-item class="table-row-actions__menu-item" data-action=${e.name} style=${
|
|
16543
|
+
(e) => E`<cx-menu-item class="table-row-actions__menu-item" data-action=${e.name} style=${Le(e.style ?? {})} @click=${this.handleActionClick}>${X(
|
|
16543
16544
|
e.prefixIcon,
|
|
16544
16545
|
() => E`<cx-icon name=${e.prefixIcon} slot="prefix"></cx-icon>`
|
|
16545
16546
|
)}
|
|
@@ -16551,9 +16552,9 @@ let ne = class extends Ie {
|
|
|
16551
16552
|
}
|
|
16552
16553
|
render() {
|
|
16553
16554
|
if (!this.action)
|
|
16554
|
-
return
|
|
16555
|
+
return oo;
|
|
16555
16556
|
const n = this.action?.icon ?? "more_horiz";
|
|
16556
|
-
return E`<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=${
|
|
16557
|
+
return E`<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=${Le(this.action.options?.iconStyle ?? {})}></cx-icon></cx-button></cx-tooltip><cx-menu>${Ne(
|
|
16557
16558
|
this.sections,
|
|
16558
16559
|
(e) => e,
|
|
16559
16560
|
(e) => this.renderMenuSection(
|
|
@@ -16566,42 +16567,42 @@ let ne = class extends Ie {
|
|
|
16566
16567
|
};
|
|
16567
16568
|
ne.dependencies = {
|
|
16568
16569
|
"cx-button": Ve,
|
|
16569
|
-
"cx-dropdown":
|
|
16570
|
-
"cx-icon":
|
|
16571
|
-
"cx-menu":
|
|
16572
|
-
"cx-menu-item":
|
|
16570
|
+
"cx-dropdown": mt,
|
|
16571
|
+
"cx-icon": gt,
|
|
16572
|
+
"cx-menu": bt,
|
|
16573
|
+
"cx-menu-item": wt,
|
|
16573
16574
|
"cx-menu-section": fo,
|
|
16574
|
-
"cx-tooltip":
|
|
16575
|
+
"cx-tooltip": Mi
|
|
16575
16576
|
};
|
|
16576
|
-
|
|
16577
|
+
De([
|
|
16577
16578
|
g()
|
|
16578
16579
|
], ne.prototype, "action", 2);
|
|
16579
|
-
|
|
16580
|
+
De([
|
|
16580
16581
|
g({
|
|
16581
16582
|
type: Object
|
|
16582
16583
|
})
|
|
16583
16584
|
], ne.prototype, "row", 2);
|
|
16584
|
-
|
|
16585
|
+
De([
|
|
16585
16586
|
g({
|
|
16586
16587
|
type: Object
|
|
16587
16588
|
})
|
|
16588
16589
|
], ne.prototype, "cell", 2);
|
|
16589
|
-
|
|
16590
|
+
De([
|
|
16590
16591
|
ae()
|
|
16591
16592
|
], ne.prototype, "groupedDropdownItems", 2);
|
|
16592
|
-
|
|
16593
|
+
De([
|
|
16593
16594
|
ae()
|
|
16594
16595
|
], ne.prototype, "sections", 2);
|
|
16595
|
-
|
|
16596
|
+
De([
|
|
16596
16597
|
A("action")
|
|
16597
16598
|
], ne.prototype, "handleActionChange", 1);
|
|
16598
|
-
ne =
|
|
16599
|
+
ne = De([
|
|
16599
16600
|
Be("cx-table-row-actions-dropdown")
|
|
16600
16601
|
], ne);
|
|
16601
|
-
var
|
|
16602
|
-
for (var s = i > 1 ? void 0 : i ?
|
|
16602
|
+
var kl = Object.defineProperty, Ll = Object.getOwnPropertyDescriptor, Et = (n, e, t, i) => {
|
|
16603
|
+
for (var s = i > 1 ? void 0 : i ? Ll(e, t) : e, o = n.length - 1, r; o >= 0; o--)
|
|
16603
16604
|
(r = n[o]) && (s = (i ? r(e, t, s) : r(s)) || s);
|
|
16604
|
-
return i && s &&
|
|
16605
|
+
return i && s && kl(e, t, s), s;
|
|
16605
16606
|
};
|
|
16606
16607
|
let ye = class extends Ie {
|
|
16607
16608
|
constructor() {
|
|
@@ -16618,7 +16619,7 @@ let ye = class extends Ie {
|
|
|
16618
16619
|
});
|
|
16619
16620
|
}
|
|
16620
16621
|
renderButton(n) {
|
|
16621
|
-
return E`<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=${re(n.options?.buttonProps?.variant)}><cx-icon name=${n.icon} style=${
|
|
16622
|
+
return E`<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=${re(n.options?.buttonProps?.variant)}><cx-icon name=${n.icon} style=${Le(n.options?.iconStyle ?? {})}></cx-icon></cx-button></cx-tooltip>`;
|
|
16622
16623
|
}
|
|
16623
16624
|
renderDropdown(n) {
|
|
16624
16625
|
return E`<cx-table-row-actions-dropdown .action=${n} .row=${this.row} .cell=${this.cell}></cx-table-row-actions-dropdown>`;
|
|
@@ -16640,32 +16641,32 @@ let ye = class extends Ie {
|
|
|
16640
16641
|
)}</cx-space>`;
|
|
16641
16642
|
}
|
|
16642
16643
|
};
|
|
16643
|
-
ye.styles = [Qe,
|
|
16644
|
+
ye.styles = [Qe, Sl];
|
|
16644
16645
|
ye.dependencies = {
|
|
16645
16646
|
"cx-button": Ve,
|
|
16646
|
-
"cx-icon":
|
|
16647
|
-
"cx-space":
|
|
16647
|
+
"cx-icon": gt,
|
|
16648
|
+
"cx-space": Si,
|
|
16648
16649
|
"cx-table-row-actions-dropdown": ne,
|
|
16649
|
-
"cx-tooltip":
|
|
16650
|
+
"cx-tooltip": Mi
|
|
16650
16651
|
};
|
|
16651
|
-
|
|
16652
|
+
Et([
|
|
16652
16653
|
g()
|
|
16653
16654
|
], ye.prototype, "actions", 2);
|
|
16654
|
-
|
|
16655
|
+
Et([
|
|
16655
16656
|
g({
|
|
16656
16657
|
type: Object
|
|
16657
16658
|
})
|
|
16658
16659
|
], ye.prototype, "row", 2);
|
|
16659
|
-
|
|
16660
|
+
Et([
|
|
16660
16661
|
g({
|
|
16661
16662
|
type: Object
|
|
16662
16663
|
})
|
|
16663
16664
|
], ye.prototype, "cell", 2);
|
|
16664
|
-
ye =
|
|
16665
|
+
ye = Et([
|
|
16665
16666
|
Be("cx-table-row-actions")
|
|
16666
16667
|
], ye);
|
|
16667
|
-
var Dl = Object.defineProperty,
|
|
16668
|
-
for (var s = i > 1 ? void 0 : i ?
|
|
16668
|
+
var Dl = Object.defineProperty, zl = Object.getOwnPropertyDescriptor, et = (n, e, t, i) => {
|
|
16669
|
+
for (var s = i > 1 ? void 0 : i ? zl(e, t) : e, o = n.length - 1, r; o >= 0; o--)
|
|
16669
16670
|
(r = n[o]) && (s = (i ? r(e, t, s) : r(s)) || s);
|
|
16670
16671
|
return i && s && Dl(e, t, s), s;
|
|
16671
16672
|
};
|
|
@@ -16726,9 +16727,9 @@ let ue = class extends Ie {
|
|
|
16726
16727
|
ue.styles = [Qe];
|
|
16727
16728
|
ue.dependencies = {
|
|
16728
16729
|
"cx-button": Ve,
|
|
16729
|
-
"cx-dropdown":
|
|
16730
|
-
"cx-menu":
|
|
16731
|
-
"cx-menu-item":
|
|
16730
|
+
"cx-dropdown": mt,
|
|
16731
|
+
"cx-menu": bt,
|
|
16732
|
+
"cx-menu-item": wt
|
|
16732
16733
|
};
|
|
16733
16734
|
et([
|
|
16734
16735
|
g({ type: Object })
|
|
@@ -16745,14 +16746,14 @@ et([
|
|
|
16745
16746
|
ue = et([
|
|
16746
16747
|
Be("cx-table-dropdown-filter")
|
|
16747
16748
|
], ue);
|
|
16748
|
-
var
|
|
16749
|
-
for (var s = i > 1 ? void 0 : i ?
|
|
16749
|
+
var Fl = Object.defineProperty, Ol = Object.getOwnPropertyDescriptor, le = (n, e, t, i) => {
|
|
16750
|
+
for (var s = i > 1 ? void 0 : i ? Ol(e, t) : e, o = n.length - 1, r; o >= 0; o--)
|
|
16750
16751
|
(r = n[o]) && (s = (i ? r(e, t, s) : r(s)) || s);
|
|
16751
|
-
return i && s &&
|
|
16752
|
+
return i && s && Fl(e, t, s), s;
|
|
16752
16753
|
};
|
|
16753
16754
|
let Y = class extends Ie {
|
|
16754
16755
|
constructor() {
|
|
16755
|
-
super(...arguments), this.localize = new
|
|
16756
|
+
super(...arguments), this.localize = new pt(this), this.fetchController = null, this.savedSearchURL = "", this.savedSearchItems = [], this.savedSearchPageSizeParam = "PageSize", this.savedSearchPageSize = 10, this.savedSearchPageNumberParam = "PageNumber", this.totalCount = 0, this.loading = !1, this.currentPage = 1;
|
|
16756
16757
|
}
|
|
16757
16758
|
createRenderRoot() {
|
|
16758
16759
|
return this;
|
|
@@ -16820,10 +16821,10 @@ let Y = class extends Ie {
|
|
|
16820
16821
|
Y.styles = [Qe];
|
|
16821
16822
|
Y.dependencies = {
|
|
16822
16823
|
"cx-button": Ve,
|
|
16823
|
-
"cx-dropdown":
|
|
16824
|
-
"cx-icon":
|
|
16825
|
-
"cx-menu":
|
|
16826
|
-
"cx-menu-item":
|
|
16824
|
+
"cx-dropdown": mt,
|
|
16825
|
+
"cx-icon": gt,
|
|
16826
|
+
"cx-menu": bt,
|
|
16827
|
+
"cx-menu-item": wt
|
|
16827
16828
|
};
|
|
16828
16829
|
le([
|
|
16829
16830
|
g({ attribute: "saved-search-url", type: String })
|
|
@@ -16855,15 +16856,19 @@ le([
|
|
|
16855
16856
|
Y = le([
|
|
16856
16857
|
Be("cx-table-saved-search-dropdown")
|
|
16857
16858
|
], Y);
|
|
16858
|
-
const
|
|
16859
|
-
var
|
|
16860
|
-
for (var s = i > 1 ? void 0 : i ?
|
|
16859
|
+
const Pl = O`.header{display:none}.header--has-label,.header--has-pagination{display:flex}.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__saved-search{--cx-button-text-transform:none}.header-actions__saved-search{--checked-icon-display:none}.header-actions__saved-search__load-more{width:100%;padding:0 var(--cx-spacing-x-small)}`;
|
|
16860
|
+
var Hl = Object.defineProperty, Al = Object.getOwnPropertyDescriptor, _ = (n, e, t, i) => {
|
|
16861
|
+
for (var s = i > 1 ? void 0 : i ? Al(e, t) : e, o = n.length - 1, r; o >= 0; o--)
|
|
16861
16862
|
(r = n[o]) && (s = (i ? r(e, t, s) : r(s)) || s);
|
|
16862
|
-
return i && s &&
|
|
16863
|
+
return i && s && Hl(e, t, s), s;
|
|
16863
16864
|
};
|
|
16864
16865
|
let F = class extends Ie {
|
|
16865
16866
|
constructor() {
|
|
16866
|
-
super(...arguments), this.localize = new
|
|
16867
|
+
super(...arguments), this.localize = new pt(this), this.hasSlotController = new mo(
|
|
16868
|
+
this,
|
|
16869
|
+
"label",
|
|
16870
|
+
"pagination"
|
|
16871
|
+
), this.label = "", this.canSearch = !1, this.noAdvancedSearch = !1, this.canAdd = !1, this.addLabel = this.localize.term("add"), this.canExportCsv = !1, this.canExportXml = !1, this.canExportCustom = !1, this.dropdownFilters = [], this.canSaveReport = !1, this.savedSearchURL = "", this.savedSearchItems = [], this.savedSearchPageSizeParam = "PageSize", this.savedSearchPageSize = 10, this.savedSearchPageNumberParam = "PageNumber", this.showSavedSearch = !1, this.searchValue = "";
|
|
16867
16872
|
}
|
|
16868
16873
|
handleSearchSubmit(n) {
|
|
16869
16874
|
this.form && !this.form.reportValidity() || !this.canSearch || !this.searchInput || (n && n.preventDefault(), this.searchValue = this.searchInput.value || "", this.emit("cx-search", { detail: { value: this.searchValue } }));
|
|
@@ -16890,9 +16895,15 @@ let F = class extends Ie {
|
|
|
16890
16895
|
this.emit("cx-table-export", { detail: { type: "report" } });
|
|
16891
16896
|
}
|
|
16892
16897
|
renderSearch() {
|
|
16893
|
-
return E`<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
|
|
16898
|
+
return E`<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=${nt({
|
|
16899
|
+
search__icon: !0,
|
|
16900
|
+
"search__icon--search": !0
|
|
16901
|
+
})} name="search" slot="prefix" size="small"></cx-icon-button>${X(
|
|
16894
16902
|
!this.noAdvancedSearch,
|
|
16895
|
-
() => E`<cx-tooltip slot="suffix" hoist content=${this.localize.term("advancedSearch")}><cx-icon-button
|
|
16903
|
+
() => E`<cx-tooltip slot="suffix" hoist content=${this.localize.term("advancedSearch")}><cx-icon-button class=${nt({
|
|
16904
|
+
search__icon: !0,
|
|
16905
|
+
"search__icon--advanced-search": !0
|
|
16906
|
+
})} name="tune" @click=${this.handleAdvancedSearchClick} size="small"></cx-icon-button></cx-tooltip>`
|
|
16896
16907
|
)}</cx-input></form>`;
|
|
16897
16908
|
}
|
|
16898
16909
|
renderAddButton() {
|
|
@@ -16927,31 +16938,35 @@ let F = class extends Ie {
|
|
|
16927
16938
|
)}</cx-space>`;
|
|
16928
16939
|
}
|
|
16929
16940
|
render() {
|
|
16930
|
-
const n = this.canExportCsv || this.canExportXml || this.canExportCustom || this.canSaveReport;
|
|
16931
|
-
return E`<
|
|
16941
|
+
const n = this.canExportCsv || this.canExportXml || this.canExportCustom || this.canSaveReport, e = !!this.label || this.hasSlotController.test("label"), t = this.hasSlotController.test("pagination");
|
|
16942
|
+
return E`<cx-space class="container" direction="vertical"><cx-space class=${nt({
|
|
16943
|
+
header: !0,
|
|
16944
|
+
"header--has-label": e,
|
|
16945
|
+
"header--has-pagination": t
|
|
16946
|
+
})} justify-content="space-between"><div><slot name="label">${X(
|
|
16932
16947
|
this.label,
|
|
16933
16948
|
() => E`<cx-typography variant="h3">${this.label}</cx-typography>`
|
|
16934
16949
|
)}</slot></div><slot name="pagination"></slot></cx-space><cx-space class="header-actions" justify-content="space-between" align-items="center"><cx-space class="header-actions__left" align-items="center" spacing="x-small">${X(this.canSearch, () => this.renderSearch())}
|
|
16935
16950
|
${X(this.dropdownFilters.length, () => this.renderDropdownFilters())}
|
|
16936
16951
|
${X(this.showSavedSearch, () => this.renderSavedSearchDropdown())}</cx-space><cx-space class="header-actions__right" align-items="center" spacing="x-small">${X(this.canAdd, () => this.renderAddButton())}
|
|
16937
|
-
${X(n, () => this.renderExportDropdown())}</cx-space></cx-space></
|
|
16952
|
+
${X(n, () => this.renderExportDropdown())}</cx-space></cx-space></cx-space>`;
|
|
16938
16953
|
}
|
|
16939
16954
|
};
|
|
16940
|
-
F.styles = [Qe,
|
|
16955
|
+
F.styles = [Qe, Pl];
|
|
16941
16956
|
F.dependencies = {
|
|
16942
16957
|
"cx-button": Ve,
|
|
16943
|
-
"cx-dropdown":
|
|
16944
|
-
"cx-icon":
|
|
16945
|
-
"cx-icon-button":
|
|
16958
|
+
"cx-dropdown": mt,
|
|
16959
|
+
"cx-icon": gt,
|
|
16960
|
+
"cx-icon-button": zs,
|
|
16946
16961
|
"cx-input": go,
|
|
16947
|
-
"cx-menu":
|
|
16948
|
-
"cx-menu-item":
|
|
16949
|
-
"cx-pagination":
|
|
16950
|
-
"cx-space":
|
|
16962
|
+
"cx-menu": bt,
|
|
16963
|
+
"cx-menu-item": wt,
|
|
16964
|
+
"cx-pagination": co,
|
|
16965
|
+
"cx-space": Si,
|
|
16951
16966
|
"cx-table-dropdown-filter": ue,
|
|
16952
16967
|
"cx-table-saved-search-dropdown": Y,
|
|
16953
|
-
"cx-tooltip":
|
|
16954
|
-
"cx-typography":
|
|
16968
|
+
"cx-tooltip": Mi,
|
|
16969
|
+
"cx-typography": lo
|
|
16955
16970
|
};
|
|
16956
16971
|
_([
|
|
16957
16972
|
We("#search-form")
|
|
@@ -17043,7 +17058,7 @@ _([
|
|
|
17043
17058
|
F = _([
|
|
17044
17059
|
Be("cx-table-toolbar")
|
|
17045
17060
|
], F);
|
|
17046
|
-
class
|
|
17061
|
+
class _l {
|
|
17047
17062
|
constructor(e) {
|
|
17048
17063
|
this.filters = /* @__PURE__ */ new Map(), this.isConnected = !1, this.host = e, this.host.addController(this);
|
|
17049
17064
|
}
|
|
@@ -17174,30 +17189,30 @@ class Al {
|
|
|
17174
17189
|
e.setFilter(s);
|
|
17175
17190
|
}
|
|
17176
17191
|
}
|
|
17177
|
-
const _l = O`.tabulator .tabulator-alert{z-index:100;background:color-mix(in srgb, var(--cx-color-neutral-0) 40%, transparent);text-align:center;align-items:center;width:100%;height:100%;display:flex;position:absolute;top:0;left:0}.tabulator .tabulator-alert.tabulator-alert-state-loading{--loading-offset:var(--cx-spacing-x-small);top:calc(var(--header-height,var(--cx-spacing-3x-large)) + var(--border-width) + var(--loading-offset));height:calc(100% - var(--header-height,var(--cx-spacing-3x-large)) - var(--border-width) - var(--loading-offset))}.tabulator.tabulator-header-hidden .tabulator-alert.tabulator-alert-state-loading{height:100%;top:0}.tabulator .tabulator-alert .tabulator-alert-msg{padding:var(--cx-spacing-small) var(--cx-spacing-large);border-radius:var(--cx-border-radius-x-large);background:var(--cx-color-neutral-0);font-weight:700;font-size:var(--cx-font-size-medium);margin:0 auto;display:inline-block}.tabulator .tabulator-alert .tabulator-alert-msg.tabulator-alert-state-msg{color:var(--cx-color-neutral-1000)}.tabulator .tabulator-alert .tabulator-alert-msg.tabulator-alert-state-error{border:4px solid var(--cx-color-danger);color:var(--cx-color-danger-900)}`, Nl = O`:host{--width:100%;--table-height:var(--height,auto);--table-min-height:var(--min-height,0);--table-max-height:var(--max-height,auto);--color:var(--cx-color-neutral-700);--background-color:var(--cx-color-neutral-0);--border-width:var(--cx-input-border-width);--border-color:var(--cx-color-neutral-200);--outer-border-color:var(--border-color);--border-radius:var(--cx-border-radius-medium);--row-background-color:var(--cx-color-neutral-0);--row-even-background-color:var(--cx-color-neutral-0);--row-hover-background-color:var(--cx-color-neutral-0);--row-even-hover-background-color:var(--cx-color-neutral-0);--frozen-border-color:var(--cx-color-neutral-200);--header-background-color:var(--cx-color-neutral-50);--header-hover-background-color:var(--cx-color-primary-50);--header-font-weight:var(--cx-font-weight-medium);--header-font-size:var(--cx-font-size-x-small);--header-color:var(--cx-color-neutral-700);--header-border-right:1px solid var(--cx-color-neutral-200);--header-border-bottom:none;--header-height:var(--cx-spacing-3x-large);--header-horizontal-padding:var(--cx-spacing-large);--body-background-color:var(--cx-color-neutral-0);--cell-border-color:transparent;--cell-bottom-border-color:var(--cx-color-neutral-200);--cell-horizontal-padding:var(--cx-spacing-large);--cell-font-size:var(--cx-font-size-small);--cell-font-weight:var(--cx-font-weight-regular);--cell-line-height:normal;--cell-hover-background-color:var(--cx-color-neutral-50);--group-count-color:var(--cx-color-danger-500);--group-row-background-color:var(--row-background-color);--group-row-hover-background-color:var(--row-hover-background-color);--group-row-border-color:var(--cx-color-neutral-200);--group-row-color:var(--cx-color-neutral-900);--group-row-font-weight:var(--cx-font-weight-medium);--row-header-border-color:var(--cx-color-neutral-200);--tabulator-tree-control-width:18px;--tabulator-tree-child-indent:9px;--tabulator-tree-step:calc(var(--tabulator-tree-control-width) + var(--tabulator-tree-child-indent));isolation:isolate;width:var(--width);display:block}.container{height:100%}.tabulator{background-color:var(--background-color);font-size:var(--font-size,var(--cx-font-size-small));text-align:left;height:var(--table-height);min-height:var(--table-min-height);max-height:var(--table-max-height);border-radius:var(--cx-border-radius-medium);flex-direction:column;line-height:normal;display:flex;position:relative;overflow:hidden}.tabulator[data-overlayscrollbars]{flex-direction:column}.tabulator[data-overlayscrollbars-viewport="scrollbarHidden overflowXHidden overflowYHidden"]{display:flex}.tabulator>[data-overlayscrollbars-viewport]{flex-direction:column;display:flex}.tabulator.tabulator-overflow-x{border-right:var(--border-width) solid var(--outer-border-color);border-top-right-radius:var(--border-radius)}.tabulator[tabulator-layout=fitDataFill] .tabulator-tableholder .tabulator-table{min-width:100%}.tabulator[tabulator-layout=fitDataTable]{display:inline-block}.tabulator.tabulator-block-select,.tabulator.tabulator-ranges .tabulator-cell:not(.tabulator-editing){user-select:none}.tabulator .tabulator-tableholder-wrapper{flex:1;width:max-content;display:flex;position:relative;overflow:hidden}.tabulator .tabulator-tableholder{white-space:nowrap;-webkit-overflow-scrolling:touch;border-bottom-left-radius:var(--border-radius);border-bottom-right-radius:var(--border-radius);flex:1;width:max-content;position:relative;overflow:auto}.tabulator .tabulator-tableholder-wrapper:before{content:"";z-index:1;pointer-events:none;border:var(--border-width) solid var(--outer-border-color);border-bottom-left-radius:var(--border-radius);border-bottom-right-radius:var(--border-radius);width:100%;height:100%;display:block;position:absolute;top:0;left:0}.tabulator.tabulator-header-hidden .tabulator-tableholder-wrapper:before{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius)}.tabulator .tabulator-tableholder:focus{outline:none}.tabulator .tabulator-tableholder .tabulator-table{background-color:var(--body-background-color,var(--cx-color-neutral-0));white-space:nowrap;color:var(--color);min-width:100%;display:inline-block;position:relative;overflow:visible}`, Vl = O`.tabulator .tabulator-header .tabulator-calcs-holder{box-sizing:border-box;border-top:var(--border-width) solid var(--cx-color-neutral-400);border-bottom:var(--border-width) solid var(--cx-color-neutral-400);display:inline-block;background:var(--cx-color-neutral-100)!important}.tabulator .tabulator-header .tabulator-calcs-holder .tabulator-row{background:var(--cx-color-neutral-100)!important}.tabulator .tabulator-header .tabulator-calcs-holder .tabulator-row .tabulator-col-resize-handle{display:none}.tabulator .tabulator-tableholder .tabulator-table .tabulator-row.tabulator-calcs{font-weight:700;background:var(--cx-color-neutral-200)!important}.tabulator .tabulator-tableholder .tabulator-table .tabulator-row.tabulator-calcs.tabulator-calcs-top{border-bottom:2px solid var(--cx-color-neutral-400)}.tabulator .tabulator-tableholder .tabulator-table .tabulator-row.tabulator-calcs.tabulator-calcs-bottom{border-top:2px solid var(--cx-color-neutral-400)}.tabulator .tabulator-footer .tabulator-calcs-holder{box-sizing:border-box;text-align:left;border-bottom:1px solid var(--cx-color-neutral-400);border-top:1px solid var(--cx-color-neutral-400);width:100%;overflow:hidden;background:var(--cx-color-neutral-100)!important}.tabulator .tabulator-footer .tabulator-calcs-holder .tabulator-row{display:inline-block;background:var(--cx-color-neutral-100)!important}.tabulator .tabulator-footer .tabulator-calcs-holder .tabulator-row .tabulator-col-resize-handle{display:none}.tabulator .tabulator-footer .tabulator-calcs-holder:only-child{border-bottom:none;margin-bottom:-5px}`, Il = O`.tabulator-clickable-cell{color:var(--clickable-cell-color,var(--cx-color-primary-600));cursor:pointer}.tabulator-clickable-cell:hover{text-decoration:underline}`, Bl = O`.tabulator-row .tabulator-cell .tabulator-data-tree-branch-empty{display:none}.tabulator-row .tabulator-cell .tabulator-data-tree-branch{border-left:2px solid var(--cx-color-neutral-400);border-bottom:2px solid var(--cx-color-neutral-400);border-bottom-left-radius:1px;width:7px;height:9px;margin-top:-9px;position:absolute}.tabulator-row .tabulator-cell .tabulator-data-tree-control{flex:0 0 var(--tabulator-tree-control-width);vertical-align:middle;width:var(--tabulator-tree-control-width);justify-content:center;align-items:center;display:inline-flex}`, Wl = O`.tabulator-row .tabulator-cell.tabulator-editing{padding:0 var(--cell-horizontal-padding);outline:none}.tabulator:not(.tabulator-ranges) .tabulator-row .tabulator-cell.tabulator-editing input,.tabulator:not(.tabulator-ranges) .tabulator-row .tabulator-cell.tabulator-editing select{font-size:inherit;color:inherit;border-radius:var(--cx-input-border-radius-medium);background:0 0;border:none;outline:none;padding:0;font-family:inherit}.tabulator-ranges .tabulator-row .tabulator-cell.tabulator-editing input,.tabulator-ranges .tabulator-row .tabulator-cell.tabulator-editing select{border:var(--border-width) solid var(--border-color);background:0 0;outline:none}.tabulator-row .tabulator-cell.tabulator-validation-fail{border:var(--border-width) solid var(--cx-color-danger)}.tabulator-row .tabulator-cell.tabulator-validation-fail input,.tabulator-row .tabulator-cell.tabulator-validation-fail select{border:var(--border-width) solid var(--border-color);color:var(--cx-color-danger);background:0 0}.tabulator-row .tabulator-cell.tabulator-editing.tabulator-edit-list{padding:0 var(--cx-spacing-x-small)}.tabulator-edit-list{position:relative}.tabulator-edit-list:not(.tabulator-editing) .tabulator-cell-content{padding-right:var(--cx-spacing-large)}.tabulator-edit-list-trigger{top:50%;right:var(--cx-spacing-small);width:var(--cx-spacing-large);appearance:none;height:100%;color:inherit;cursor:pointer;font:inherit;background:0 0;border:none;justify-content:center;align-items:center;padding:0;display:inline-flex;position:absolute;transform:translateY(-50%)}.tabulator-edit-list.tabulator-editing .tabulator-edit-list-trigger{display:none}.tabulator-edit-list-trigger-caret{--font-size:var(--cx-font-size-medium);color:var(--cx-color-neutral-500)}`, Gl = O`.tabulator .tabulator-footer{border-top:1px solid var(--cx-color-neutral-400);background-color:var(--cx-color-neutral-200);color:var(--cx-color-neutral-500);white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;user-select:none;-khtml-user-select:none;-o-user-select:none;font-weight:700}.tabulator .tabulator-footer .tabulator-footer-contents{padding:var(--cx-spacing-2x-small) var(--cx-spacing-small);flex-direction:row;justify-content:space-between;align-items:center;display:flex}.tabulator .tabulator-footer .tabulator-footer-contents:empty{display:none}`, jl = O`.tabulator-row .tabulator-cell a{color:var(--cx-color-primary-600);text-decoration:none}.tabulator-row .tabulator-cell a:hover{text-decoration:underline}.tabulator-row .tabulator-cell .tabulator-traffic-light-container{align-items:center;gap:var(--cx-spacing-x-small);display:inline-flex}.tabulator-row .tabulator-cell .tabulator-traffic-light{border-radius:var(--cx-border-radius-x-large);width:14px;height:14px;display:inline-block}`, $l = O`.tabulator-row.tabulator-group{box-sizing:border-box;border-bottom:var(--border-width) solid var(--group-row-border-color);border-right:var(--border-width) solid var(--group-row-border-color);padding:var(--cx-spacing-2x-small);padding-left:var(--cx-spacing-small);background:var(--group-row-background-color);min-width:100%;line-height:var(--header-height);color:var(--group-row-color);font-weight:var(--group-row-font-weight)}.tabulator-row.tabulator-group.tabulator-row-last{border-bottom-left-radius:var(--border-radius);border-bottom-right-radius:var(--border-radius)}@media (hover:hover) and (pointer:fine){.tabulator-row.tabulator-group:hover{cursor:pointer;background-color:var(--group-row-hover-background-color)}}.tabulator-row.tabulator-group.tabulator-group-level-1{padding-left:30px}.tabulator-row.tabulator-group.tabulator-group-level-2{padding-left:50px}.tabulator-row.tabulator-group.tabulator-group-level-3{padding-left:70px}.tabulator-row.tabulator-group.tabulator-group-level-4{padding-left:90px}.tabulator-row.tabulator-group.tabulator-group-level-5{padding-left:110px}.tabulator-row.tabulator-group .tabulator-group-toggle{display:inline-flex}.tabulator-row.tabulator-group span{margin-left:var(--cx-spacing-small);color:var(--group-count-color)}`, Ul = O`:host{--selected-column-header-background-color:var(--header-background-color);--selected-column-header-color:var(--header-color)}.tabulator .tabulator-header{box-sizing:border-box;width:max-content;font-weight:var(--header-font-weight);font-size:var(--header-font-size);color:var(--header-color);white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-khtml-user-select:none;-o-user-select:none;outline:none;position:relative}.tabulator .tabulator-header.tabulator-header-hidden{display:none}.tabulator .tabulator-header .tabulator-header-contents{box-sizing:border-box;width:max-content;position:relative;overflow:hidden}.tabulator .tabulator-header .tabulator-header-contents:before{content:"";z-index:1;pointer-events:none;border:var(--border-width) solid var(--outer-border-color);border-bottom:var(--header-border-bottom);border-top-right-radius:var(--border-radius);border-top-left-radius:var(--border-radius);width:100%;height:100%;display:block;position:absolute;top:0;left:0}.tabulator .tabulator-header .tabulator-col:last-of-type{border-right:none}.tabulator .tabulator-header .tabulator-header-contents .tabulator-headers{background-color:var(--header-background-color);display:inline-block}.tabulator .tabulator-header .tabulator-col{box-sizing:border-box;border-right:var(--header-border-right);background:var(--header-background-color);text-align:left;vertical-align:bottom;height:var(--header-height);flex-direction:column;justify-content:center;display:inline-flex;position:relative;overflow:hidden}.tabulator .tabulator-header .tabulator-col.tabulator-moving{border:solid var(--border-width) var(--border-color);background:var(--cx-color-neutral-300);pointer-events:none;position:absolute}.tabulator .tabulator-header .tabulator-col.tabulator-range-highlight{background-color:var(--selected-column-header-background-color);color:var(--selected-column-header-color)}.tabulator .tabulator-header .tabulator-col.tabulator-range-selected{background-color:var(--cx-color-primary-500);color:var(--cx-color-neutral-0)}.tabulator .tabulator-header .tabulator-col .tabulator-col-content{box-sizing:border-box;padding:var(--cx-spacing-2x-small) var(--header-horizontal-padding);position:relative}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-header-popup-button{padding:0 var(--cx-spacing-x-small)}@media (hover:hover) and (pointer:fine){.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-header-popup-button:hover{cursor:pointer;opacity:.6}}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title-holder{position:relative}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title{box-sizing:border-box;white-space:nowrap;text-overflow:ellipsis;vertical-align:bottom;width:100%;overflow:hidden}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title.tabulator-col-title-wrap{white-space:normal;text-overflow:initial}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title .tabulator-title-editor{box-sizing:border-box;border:solid var(--border-width) var(--border-color);width:100%;padding:var(--cx-spacing-3x-small);background:var(--cx-color-neutral-0)}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title .tabulator-header-popup-button+.tabulator-title-editor{width:calc(100% - 22px)}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-sorter{align-items:center;display:flex;position:absolute;top:0;bottom:0;right:4px}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-sorter .tabulator-arrow{border-left:6px solid #0000;border-right:6px solid #0000;border-bottom:6px solid var(--cx-color-neutral-200);width:0;height:0}.tabulator .tabulator-header .tabulator-col.tabulator-col-group .tabulator-col-group-cols{border-top:1px solid var(--cx-color-neutral-400);margin-right:-1px;display:flex;position:relative;overflow:hidden}.tabulator .tabulator-header .tabulator-col .tabulator-header-filter{box-sizing:border-box;margin-top:var(--cx-spacing-3x-small);text-align:center;width:100%;position:relative}.tabulator .tabulator-header .tabulator-col .tabulator-header-filter textarea{height:auto!important}.tabulator .tabulator-header .tabulator-col .tabulator-header-filter svg{margin-top:var(--cx-spacing-3x-small)}.tabulator .tabulator-header .tabulator-col .tabulator-header-filter input::-ms-clear{width:0;height:0}.tabulator .tabulator-header .tabulator-col.tabulator-sortable .tabulator-col-title{padding-right:var(--cx-spacing-x-large)}@media (hover:hover) and (pointer:fine){.tabulator .tabulator-header .tabulator-col.tabulator-sortable.tabulator-col-sorter-element:hover{cursor:pointer}.tabulator .tabulator-header .tabulator-col:hover{background-color:var(--header-hover-background-color)}}.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=none] .tabulator-col-content .tabulator-col-sorter{color:var(--cx-color-neutral-200)}@media (hover:hover) and (pointer:fine){.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=none] .tabulator-col-content .tabulator-col-sorter.tabulator-col-sorter-element .tabulator-arrow:hover{cursor:pointer;border-bottom:6px solid var(--cx-color-neutral-500)}}.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=none] .tabulator-col-content .tabulator-col-sorter .tabulator-arrow{border-top:none;border-bottom:6px solid var(--cx-color-neutral-200)}.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=ascending] .tabulator-col-content .tabulator-col-sorter{color:var(--cx-color-neutral-600)}@media (hover:hover) and (pointer:fine){.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=ascending] .tabulator-col-content .tabulator-col-sorter.tabulator-col-sorter-element .tabulator-arrow:hover{cursor:pointer;border-bottom:6px solid var(--cx-color-neutral-500)}}.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=ascending] .tabulator-col-content .tabulator-col-sorter .tabulator-arrow{border-top:none;border-bottom:6px solid var(--cx-color-neutral-600)}.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=descending] .tabulator-col-content .tabulator-col-sorter{color:var(--cx-color-neutral-600)}@media (hover:hover) and (pointer:fine){.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=descending] .tabulator-col-content .tabulator-col-sorter.tabulator-col-sorter-element .tabulator-arrow:hover{cursor:pointer;border-top:6px solid var(--cx-color-neutral-500)}}.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=descending] .tabulator-col-content .tabulator-col-sorter .tabulator-arrow{border-bottom:none;border-top:6px solid var(--cx-color-neutral-600);color:var(--cx-color-neutral-600)}.tabulator .tabulator-header .tabulator-col.tabulator-col-vertical .tabulator-col-content .tabulator-col-title{writing-mode:vertical-rl;text-orientation:mixed;justify-content:center;align-items:center;display:flex}.tabulator .tabulator-header .tabulator-col.tabulator-col-vertical.tabulator-col-vertical-flip .tabulator-col-title{transform:rotate(180deg)}.tabulator .tabulator-header .tabulator-col.tabulator-col-vertical.tabulator-sortable .tabulator-col-title{padding-right:0;padding-top:var(--cx-spacing-large)}.tabulator .tabulator-header .tabulator-col.tabulator-col-vertical.tabulator-sortable.tabulator-col-vertical-flip .tabulator-col-title{padding-right:0;padding-bottom:var(--cx-spacing-large)}.tabulator .tabulator-header .tabulator-col.tabulator-col-vertical.tabulator-sortable .tabulator-col-sorter{justify-content:center;inset:4px 0 auto}.tabulator .tabulator-header .tabulator-frozen{z-index:11;position:sticky;left:0}.tabulator .tabulator-header .tabulator-frozen.tabulator-frozen-left{border-right:2px solid var(--frozen-border-color)}.tabulator .tabulator-header .tabulator-frozen.tabulator-frozen-right{border-left:2px solid var(--frozen-border-color)}.tabulator .tabulator-header .tabulator-frozen-rows-holder{border-bottom:2px solid var(--frozen-border-color);display:inline-block}.tabulator .tabulator-header .tabulator-frozen-rows-holder:empty{display:none}`, Kl = O`:host{--hover-menu-background-color:transparent}.tabulator-hover-menu{padding-left:var(--cell-horizontal-padding);padding-right:var(--cell-horizontal-padding);background-color:var(--hover-menu-background-color);opacity:0;pointer-events:none;z-index:12;align-items:center;height:100%;display:flex;position:absolute;top:0}.tabulator:not(.tabulator-editing) .tabulator-hover-menu--active{opacity:1;pointer-events:auto}`, Xl = O`.tabulator-row .tabulator-cell.tabulator-row-handle{-webkit-user-select:none;-moz-user-select:none;-khtml-user-select:none;-o-user-select:none;justify-content:center;align-items:center;display:inline-flex}.tabulator-row .tabulator-cell.tabulator-row-handle .tabulator-row-handle-box{width:80%}.tabulator-row .tabulator-cell.tabulator-row-handle .tabulator-row-handle-box .tabulator-row-handle-bar{width:100%;height:3px;margin-top:var(--cx-spacing-3x-small);background:var(--cx-color-neutral-600)}`, Jl = O`.tabulator .tabulator-footer .tabulator-paginator{flex:1}.tabulator .tabulator-footer .tabulator-paginator-pagination{margin-left:auto}.tabulator-paginator-pagination{--font-size:var(--cx-font-size-x-small);--pagination-input-font-size:var(--cx-font-size-x-small)}.tabulator-paginator-pagination::part(back-icon),.tabulator-paginator-pagination::part(next-icon){--font-size:var(--cx-font-size-medium)}`, ql = O`:host{--placeholder-color:var(--cx-color-neutral-800);--placeholder-font-weight:var(--cx-font-weight-regular);--placeholder-font-size:var(--cx-font-size-small)}.tabulator .tabulator-tableholder-wrapper .tabulator-placeholder{box-sizing:border-box;justify-content:center;align-items:center;width:100%;min-width:100%;display:flex}.tabulator .tabulator-tableholder-wrapper .tabulator-placeholder[tabulator-render-mode=virtual]{min-height:100%}.tabulator .tabulator-placeholder .tabulator-placeholder-contents{height:100%;padding:var(--cx-spacing-small);color:var(--placeholder-color);font-weight:var(--placeholder-font-weight);font-size:var(--placeholder-font-size);white-space:normal;justify-content:center;align-items:center;display:flex}.tabulator .tabulator-tableholder-wrapper .tabulator-placeholder.tabulator-placeholder--initializing .tabulator-placeholder-contents{visibility:hidden}.tabulator.tabulator-all-columns-hidden .tabulator-header{width:100%;height:var(--header-height);min-height:var(--header-height)}.tabulator.tabulator-all-columns-hidden .tabulator-header .tabulator-header-contents{background-color:var(--header-background-color);flex-direction:column;width:100%;height:100%;min-height:0;display:flex}.tabulator.tabulator-all-columns-hidden .tabulator-header .tabulator-header-contents:before{box-sizing:border-box;width:auto;height:auto;inset:0}.tabulator.tabulator-all-columns-hidden .tabulator-header .tabulator-header-contents .tabulator-headers{box-sizing:border-box;flex:1;align-self:stretch;width:100%;min-height:0;display:flex}.tabulator.tabulator-all-columns-hidden .tabulator-tableholder-wrapper{width:100%}.tabulator-row.tabulator-placeholder-row{border-left:var(--border-width) solid var(--cell-border-color);border-right:var(--border-width) solid var(--cell-border-color);border-bottom:var(--border-width) solid var(--cell-bottom-border-color);padding:var(--cx-spacing-2x-small) var(--cell-horizontal-padding)}`, Yl = O`.tabulator-toggle{box-sizing:border-box;border:var(--border-width) solid var(--cx-color-neutral-300);background:var(--cx-color-neutral-200);flex-direction:row;display:flex}.tabulator-toggle.tabulator-toggle-on{background:var(--cx-color-primary-700)}.tabulator-toggle .tabulator-toggle-switch{box-sizing:border-box;border:var(--border-width) solid var(--cx-color-neutral-300);background:var(--cx-color-neutral-0)}.tabulator-popup-container{box-sizing:border-box;background:var(--cx-color-neutral-0);border:var(--border-width) solid var(--cx-color-neutral-400);font-size:var(--cx-font-size-small);-webkit-overflow-scrolling:touch;z-index:10000;display:inline-block;position:absolute;overflow-y:auto;box-shadow:0 0 5px #0003}.tabulator-popup{padding:var(--cx-spacing-2x-small);border-radius:var(--cx-border-radius-small)}.tabulator-tooltip{max-width:min(500px,100%);padding:var(--cx-spacing-3x-small) var(--cx-spacing-2x-small);border-radius:var(--cx-border-radius-small);box-shadow:none;font-size:var(--cx-font-size-x-small);pointer-events:none}.tabulator-menu .tabulator-menu-item{box-sizing:border-box;padding:var(--cx-spacing-2x-small) var(--cx-spacing-small);user-select:none;position:relative}.tabulator-menu .tabulator-menu-item.tabulator-menu-item-disabled{opacity:.5}@media (hover:hover) and (pointer:fine){.tabulator-menu .tabulator-menu-item:not(.tabulator-menu-item-disabled):hover{cursor:pointer;background:var(--cx-color-neutral-50)}}.tabulator-menu .tabulator-menu-item.tabulator-menu-item-submenu{padding-right:var(--cx-spacing-x-large)}.tabulator-menu .tabulator-menu-item.tabulator-menu-item-submenu:after{content:"";border-width:var(--border-width) var(--border-width) 0 0;border-style:solid;border-color:var(--cx-color-neutral-400);vertical-align:top;width:7px;height:7px;display:inline-block;position:absolute;top:calc(5px + .4em);right:10px;transform:rotate(45deg)}.tabulator-menu .tabulator-menu-separator{border-top:var(--border-width) solid var(--cx-color-neutral-400)}`, Ql = O`.tabulator-print-fullscreen{z-index:10000;position:absolute;inset:0}body.tabulator-print-fullscreen-hide>:not(.tabulator-print-fullscreen){display:none!important}.tabulator-print-table{border-collapse:collapse}.tabulator-print-table .tabulator-data-tree-branch{vertical-align:middle;width:7px;height:9px;margin-top:-9px;margin-right:var(--cx-spacing-2x-small);border-left:2px solid var(--cx-color-neutral-400);border-bottom:2px solid var(--cx-color-neutral-400);border-bottom-left-radius:1px;display:inline-block}.tabulator-print-table .tabulator-print-table-group{box-sizing:border-box;border-bottom:var(--border-width) solid var(--cx-color-neutral-400);border-right:var(--border-width) solid var(--cx-color-neutral-400);border-top:var(--border-width) solid var(--cx-color-neutral-400);padding:var(--cx-spacing-2x-small);padding-left:var(--cx-spacing-small);background:var(--cx-color-neutral-300);min-width:100%;font-weight:700}@media (hover:hover) and (pointer:fine){.tabulator-print-table .tabulator-print-table-group:hover{cursor:pointer;background-color:#0000001a}}.tabulator-print-table .tabulator-print-table-group.tabulator-group-level-1 td{padding-left:30px!important}.tabulator-print-table .tabulator-print-table-group.tabulator-group-level-2 td{padding-left:50px!important}.tabulator-print-table .tabulator-print-table-group.tabulator-group-level-3 td{padding-left:70px!important}.tabulator-print-table .tabulator-print-table-group.tabulator-group-level-4 td{padding-left:90px!important}.tabulator-print-table .tabulator-print-table-group.tabulator-group-level-5 td{padding-left:110px!important}.tabulator-print-table .tabulator-print-table-group .tabulator-group-toggle{display:inline-block}.tabulator-print-table .tabulator-print-table-group span{margin-left:var(--cx-spacing-small);color:var(--cx-color-danger)}`, Zl = O`.tabulator .tabulator-col-resize-handle{z-index:11;vertical-align:middle;width:6px;margin-left:-3px;margin-right:-3px;display:inline-block;position:relative}@media (hover:hover) and (pointer:fine){.tabulator .tabulator-col-resize-handle:hover{cursor:ew-resize}}.tabulator .tabulator-col-resize-handle:last-of-type{width:3px;margin-right:0}.tabulator .tabulator-col-resize-guide{background-color:var(--cx-color-neutral-400);opacity:.5;width:4px;height:100%;margin-left:-.5px;position:absolute;top:0}.tabulator .tabulator-row-resize-guide{background-color:var(--cx-color-neutral-400);opacity:.5;width:100%;height:4px;margin-top:-.5px;position:absolute;left:0}`, eh = O`.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle{-webkit-user-select:none;-moz-user-select:none;-khtml-user-select:none;-o-user-select:none;border-radius:var(--cx-border-radius-x-large);background:var(--cx-color-neutral-600);width:15px;height:15px;color:var(--cx-color-neutral-0);justify-content:center;align-items:center;font-size:1.1em;font-weight:700;display:inline-flex}@media (hover:hover) and (pointer:fine){.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle:hover{opacity:.7;cursor:pointer}}.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle.open .tabulator-responsive-collapse-toggle-close{display:initial}.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle.open .tabulator-responsive-collapse-toggle-open{display:none}.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle svg{stroke:var(--cx-color-neutral-0)}.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle .tabulator-responsive-collapse-toggle-close{display:none}`, th = O`.tabulator-row{box-sizing:border-box;background-color:var(--row-background-color);min-height:22px;display:flex;position:relative}.tabulator-row .tabulator-cell-first{border-left:var(--border-width) solid var(--outer-border-color)}.tabulator-row.tabulator-row-even{background-color:var(--row-even-background-color)}@media (hover:hover) and (pointer:fine){.tabulator-row.tabulator-selectable:hover{background-color:var(--row-hover-background-color);cursor:pointer}.tabulator-row.tabulator-row-even.tabulator-selectable:hover{background-color:var(--row-even-hover-background-color);cursor:pointer}}.tabulator-row.tabulator-selected{background-color:var(--cx-color-primary-200)}@media (hover:hover) and (pointer:fine){.tabulator-row.tabulator-selected:hover{background-color:var(--cx-color-primary-300);cursor:pointer}}.tabulator-row.tabulator-row-moving{border:var(--border-width) solid var(--cx-color-neutral-1000);background:var(--cx-color-neutral-0)}.tabulator-row.tabulator-moving{border-top:var(--border-width) solid var(--cx-color-neutral-400);border-bottom:var(--border-width) solid var(--cx-color-neutral-400);pointer-events:none;z-index:15;position:absolute}.tabulator-header-hidden .tabulator-row.tabulator-row-first .tabulator-cell.tabulator-cell-last{border-top-right-radius:var(--border-radius)}.tabulator-row .tabulator-row-resize-handle{height:5px;position:absolute;bottom:0;left:0;right:0}.tabulator-row .tabulator-row-resize-handle.prev{top:0;bottom:auto}@media (hover:hover) and (pointer:fine){.tabulator-row .tabulator-row-resize-handle:hover{cursor:ns-resize}}.tabulator-row .tabulator-responsive-collapse{box-sizing:border-box;padding:var(--cx-spacing-2x-small);border-top:var(--border-width) solid var(--cx-color-neutral-400);border-bottom:var(--border-width) solid var(--cx-color-neutral-400)}.tabulator-row .tabulator-responsive-collapse:empty{display:none}.tabulator-row .tabulator-responsive-collapse table{font-size:var(--cx-font-size-small)}.tabulator-row .tabulator-responsive-collapse table tr td{position:relative}.tabulator-row .tabulator-responsive-collapse table tr td:first-of-type{padding-right:var(--cx-spacing-small)}.tabulator-row .tabulator-cell{vertical-align:middle;box-sizing:border-box;padding:var(--cx-spacing-2x-small) var(--cell-horizontal-padding);border-right:var(--border-width) solid var(--cell-border-color);border-bottom:var(--border-width) solid var(--cell-bottom-border-color);display:inline-flex;position:relative}@media (hover:hover) and (pointer:fine){.tabulator-row .tabulator-cell:hover,.tabulator-row .tabulator-cell.tabulator-frozen:hover{background-color:var(--cell-hover-background-color)}}.tabulator-row .tabulator-cell .tabulator-cell-content{width:100%;height:100%;font-size:var(--cell-font-size);font-weight:var(--cell-font-weight);line-height:var(--cell-line-height);align-items:center;display:inline-flex}.tabulator-row .tabulator-cell .tabulator-cell-content cx-line-clamp{width:100%;max-width:max-content}.tabulator-row .tabulator-cell.tabulator-row-header{border-right:var(--border-width) solid var(--row-header-border-color)}.tabulator-row .tabulator-cell.tabulator-frozen{background-color:inherit;z-index:11;display:inline-block;position:sticky;left:0}.tabulator-row .tabulator-cell.tabulator-frozen.tabulator-frozen-left{border-right:2px solid var(--frozen-border-color)}.tabulator-row .tabulator-cell.tabulator-frozen.tabulator-frozen-right{border-left:2px solid var(--frozen-border-color)}.tabulator-row:has(+.tabulator-placeholder-row) .tabulator-cell{border-bottom:none}`, ih = O`.tabulator.tabulator-ltr{direction:ltr}.tabulator.tabulator-rtl{text-align:initial;direction:rtl}.tabulator.tabulator-rtl .tabulator-header .tabulator-col{text-align:initial;border-left:var(--border-width) solid var(--cx-color-neutral-400);border-right:initial}.tabulator.tabulator-rtl .tabulator-header .tabulator-col.tabulator-col-group .tabulator-col-group-cols{margin-right:initial;margin-left:-1px}.tabulator.tabulator-rtl .tabulator-header .tabulator-col.tabulator-sortable .tabulator-col-title{padding-right:0;padding-left:var(--cx-spacing-x-large)}.tabulator.tabulator-rtl .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-sorter{left:8px;right:initial}.tabulator.tabulator-rtl .tabulator-row .tabulator-cell{border-right:initial;border-left:var(--border-width) solid var(--cell-border-color)}.tabulator.tabulator-rtl .tabulator-row .tabulator-cell .tabulator-data-tree-branch{margin-right:initial;margin-left:var(--cx-spacing-2x-small);border-bottom-left-radius:initial;border-left:initial;border-right:2px solid var(--cx-color-neutral-400);border-bottom-right-radius:1px}.tabulator.tabulator-rtl .tabulator-row .tabulator-cell.tabulator-frozen.tabulator-frozen-left{border-left:2px solid var(--cx-color-neutral-400)}.tabulator.tabulator-rtl .tabulator-row .tabulator-cell.tabulator-frozen.tabulator-frozen-right{border-right:2px solid var(--cx-color-neutral-400)}.tabulator.tabulator-rtl .tabulator-row .tabulator-col-resize-handle:last-of-type{width:3px;margin-left:0;margin-right:-3px}.tabulator.tabulator-rtl .tabulator-footer .tabulator-calcs-holder{text-align:initial}`, sh = O`:host{--table-active-cell-border-color:var(--border-color);--table-selected-cell-border-width:1px;--table-selected-cell-border-style:solid;--table-selected-only-cell-background-color:transparent;--table-selected-range-cell-background-color:var(--cx-color-neutral-100);--table-selected-range-selection-start-cell-background-color:var(--cx-color-neutral-50);--table-selected-cell-hover-background-color:var(--cx-color-neutral-50);--table-editable-only-cell-selected-background-color:var(--cx-color-primary-50);--table-editable-cell-hover-background-color:var(--cx-color-primary-50);--table-editable-only-cell-active-border-color:var(--cx-color-primary-600)}.tabulator .tabulator-tableholder .tabulator-range-overlay{z-index:10;pointer-events:none;position:absolute;inset:0}.tabulator .tabulator-tableholder .tabulator-range-overlay .tabulator-range{box-sizing:border-box;position:absolute}.tabulator .tabulator-tableholder .tabulator-range-overlay .tabulator-range-cell-active,.tabulator .tabulator-tableholder .tabulator-range-overlay .tabulator-range-cell-hover{box-sizing:border-box;border-color:var(--table-active-cell-border-color);border-style:var(--table-selected-cell-border-style);border-width:var(--table-selected-cell-border-width);background-color:var(--table-selected-only-cell-background-color);position:absolute}.tabulator-row.tabulator-range-highlight .tabulator-cell.tabulator-range-row-header{background-color:var(--cx-color-neutral-300);color:var(--cx-color-neutral-1000)}.tabulator-row.tabulator-range-highlight.tabulator-range-selected .tabulator-cell.tabulator-range-row-header,.tabulator-row.tabulator-range-selected .tabulator-cell.tabulator-range-row-header{background-color:var(--cx-color-primary-500);color:var(--cx-color-neutral-0)}.tabulator-row .tabulator-cell.tabulator-range-selected:not(.tabulator-range-row-header){background-color:var(--table-selected-range-cell-background-color)}.tabulator-row .tabulator-cell.tabulator-range-selection-start:not(.tabulator-range-row-header){background-color:var(--table-selected-range-selection-start-cell-background-color)}.tabulator-row .tabulator-cell.tabulator-range-selected:not(.tabulator-range-row-header):hover{background-color:var(--table-selected-cell-hover-background-color)}.tabulator .tabulator-tableholder .tabulator-range-overlay .tabulator-editable.tabulator-range-only-cell-active.tabulator-range-cell-active{border-color:var(--table-editable-only-cell-active-border-color)}.tabulator .tabulator-tableholder .tabulator-range-overlay .tabulator-editable.tabulator-range-cell-hover{border:var(--border-width) solid var(--table-editable-only-cell-active-border-color)}.tabulator-row .tabulator-cell.tabulator-editable:hover{background-color:var(--table-editable-cell-hover-background-color)}.tabulator-row .tabulator-cell.tabulator-editable.tabulator-range-only-cell-selected:not(.tabulator-range-row-header){background-color:var(--table-editable-only-cell-selected-background-color)}.tabulator-row .tabulator-cell.tabulator-editable.tabulator-range-selected:not(.tabulator-range-row-header):hover{background-color:var(--table-editable-cell-hover-background-color)}`, oh = O`.tabulator .tabulator-footer .tabulator-spreadsheet-tabs{margin-top:-5px;overflow-x:auto}.tabulator .tabulator-footer .tabulator-spreadsheet-tabs .tabulator-spreadsheet-tab{padding:var(--cx-spacing-2x-small);border:solid var(--border-width) var(--border-color);border-top:none;border-bottom-right-radius:5px;border-bottom-left-radius:5px;font-size:.9em;display:inline-block}.tabulator .tabulator-footer .tabulator-spreadsheet-tabs .tabulator-spreadsheet-tab:hover{cursor:pointer;opacity:.7}.tabulator .tabulator-footer .tabulator-spreadsheet-tabs .tabulator-spreadsheet-tab.tabulator-spreadsheet-tab-active{background:var(--cx-color-neutral-0)}`, rh = [
|
|
17178
|
-
Nl,
|
|
17179
|
-
Ul,
|
|
17180
|
-
ql,
|
|
17192
|
+
const Nl = O`.tabulator .tabulator-alert{z-index:100;background:color-mix(in srgb, var(--cx-color-neutral-0) 40%, transparent);text-align:center;align-items:center;width:100%;height:100%;display:flex;position:absolute;top:0;left:0}.tabulator .tabulator-alert.tabulator-alert-state-loading{--loading-offset:var(--cx-spacing-x-small);top:calc(var(--header-height,var(--cx-spacing-3x-large)) + var(--border-width) + var(--loading-offset));height:calc(100% - var(--header-height,var(--cx-spacing-3x-large)) - var(--border-width) - var(--loading-offset))}.tabulator.tabulator-header-hidden .tabulator-alert.tabulator-alert-state-loading{height:100%;top:0}.tabulator .tabulator-alert .tabulator-alert-msg{padding:var(--cx-spacing-small) var(--cx-spacing-large);border-radius:var(--cx-border-radius-x-large);background:var(--cx-color-neutral-0);font-weight:700;font-size:var(--cx-font-size-medium);margin:0 auto;display:inline-block}.tabulator .tabulator-alert .tabulator-alert-msg.tabulator-alert-state-msg{color:var(--cx-color-neutral-1000)}.tabulator .tabulator-alert .tabulator-alert-msg.tabulator-alert-state-error{border:4px solid var(--cx-color-danger);color:var(--cx-color-danger-900)}`, Vl = O`:host{--width:100%;--table-height:var(--height,auto);--table-min-height:var(--min-height,0);--table-max-height:var(--max-height,auto);--color:var(--cx-color-neutral-700);--background-color:var(--cx-color-neutral-0);--border-width:var(--cx-input-border-width);--border-color:var(--cx-color-neutral-200);--outer-border-color:var(--border-color);--border-radius:var(--cx-border-radius-medium);--row-background-color:var(--cx-color-neutral-0);--row-even-background-color:var(--cx-color-neutral-0);--row-hover-background-color:var(--cx-color-neutral-0);--row-even-hover-background-color:var(--cx-color-neutral-0);--frozen-border-color:var(--cx-color-neutral-200);--header-background-color:var(--cx-color-neutral-50);--header-hover-background-color:var(--cx-color-primary-50);--header-font-weight:var(--cx-font-weight-medium);--header-font-size:var(--cx-font-size-x-small);--header-color:var(--cx-color-neutral-700);--header-border-right:1px solid var(--cx-color-neutral-200);--header-border-bottom:none;--header-height:var(--cx-spacing-3x-large);--header-horizontal-padding:var(--cx-spacing-large);--body-background-color:var(--cx-color-neutral-0);--cell-border-color:transparent;--cell-bottom-border-color:var(--cx-color-neutral-200);--cell-horizontal-padding:var(--cx-spacing-large);--cell-font-size:var(--cx-font-size-small);--cell-font-weight:var(--cx-font-weight-regular);--cell-line-height:normal;--cell-hover-background-color:var(--cx-color-neutral-50);--group-count-color:var(--cx-color-danger-500);--group-row-background-color:var(--row-background-color);--group-row-hover-background-color:var(--row-hover-background-color);--group-row-border-color:var(--cx-color-neutral-200);--group-row-color:var(--cx-color-neutral-900);--group-row-font-weight:var(--cx-font-weight-medium);--row-header-border-color:var(--cx-color-neutral-200);--tabulator-tree-control-width:18px;--tabulator-tree-child-indent:9px;--tabulator-tree-step:calc(var(--tabulator-tree-control-width) + var(--tabulator-tree-child-indent));isolation:isolate;width:var(--width);display:block}.container{height:100%}.tabulator{background-color:var(--background-color);font-size:var(--font-size,var(--cx-font-size-small));text-align:left;height:var(--table-height);min-height:var(--table-min-height);max-height:var(--table-max-height);border-radius:var(--cx-border-radius-medium);flex-direction:column;line-height:normal;display:flex;position:relative;overflow:hidden}.tabulator[data-overlayscrollbars]{flex-direction:column}.tabulator[data-overlayscrollbars-viewport="scrollbarHidden overflowXHidden overflowYHidden"]{display:flex}.tabulator>[data-overlayscrollbars-viewport]{flex-direction:column;display:flex}.tabulator.tabulator-overflow-x{border-inline:var(--border-width) solid var(--outer-border-color);border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius)}.tabulator[tabulator-layout=fitDataFill] .tabulator-tableholder .tabulator-table{min-width:100%}.tabulator[tabulator-layout=fitDataTable]{display:inline-block}.tabulator.tabulator-block-select,.tabulator.tabulator-ranges .tabulator-cell:not(.tabulator-editing){user-select:none}.tabulator .tabulator-tableholder-wrapper{flex:1;width:max-content;display:flex;position:relative;overflow:hidden}.tabulator .tabulator-tableholder{white-space:nowrap;-webkit-overflow-scrolling:touch;border-bottom-left-radius:var(--border-radius);border-bottom-right-radius:var(--border-radius);flex:1;width:max-content;position:relative;overflow:auto}.tabulator .tabulator-tableholder-wrapper:before{content:"";z-index:1;pointer-events:none;border:var(--border-width) solid var(--outer-border-color);border-bottom-left-radius:var(--border-radius);border-bottom-right-radius:var(--border-radius);width:100%;height:100%;display:block;position:absolute;top:0;left:0}.tabulator.tabulator-header-hidden .tabulator-tableholder-wrapper:before{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius)}.tabulator .tabulator-tableholder:focus{outline:none}.tabulator .tabulator-tableholder .tabulator-table{background-color:var(--body-background-color,var(--cx-color-neutral-0));white-space:nowrap;color:var(--color);min-width:100%;display:inline-block;position:relative;overflow:visible}`, Il = O`.tabulator .tabulator-header .tabulator-calcs-holder{box-sizing:border-box;border-top:var(--border-width) solid var(--cx-color-neutral-400);border-bottom:var(--border-width) solid var(--cx-color-neutral-400);display:inline-block;background:var(--cx-color-neutral-100)!important}.tabulator .tabulator-header .tabulator-calcs-holder .tabulator-row{background:var(--cx-color-neutral-100)!important}.tabulator .tabulator-header .tabulator-calcs-holder .tabulator-row .tabulator-col-resize-handle{display:none}.tabulator .tabulator-tableholder .tabulator-table .tabulator-row.tabulator-calcs{font-weight:700;background:var(--cx-color-neutral-200)!important}.tabulator .tabulator-tableholder .tabulator-table .tabulator-row.tabulator-calcs.tabulator-calcs-top{border-bottom:2px solid var(--cx-color-neutral-400)}.tabulator .tabulator-tableholder .tabulator-table .tabulator-row.tabulator-calcs.tabulator-calcs-bottom{border-top:2px solid var(--cx-color-neutral-400)}.tabulator .tabulator-footer .tabulator-calcs-holder{box-sizing:border-box;text-align:left;border-bottom:1px solid var(--cx-color-neutral-400);border-top:1px solid var(--cx-color-neutral-400);width:100%;overflow:hidden;background:var(--cx-color-neutral-100)!important}.tabulator .tabulator-footer .tabulator-calcs-holder .tabulator-row{display:inline-block;background:var(--cx-color-neutral-100)!important}.tabulator .tabulator-footer .tabulator-calcs-holder .tabulator-row .tabulator-col-resize-handle{display:none}.tabulator .tabulator-footer .tabulator-calcs-holder:only-child{border-bottom:none;margin-bottom:-5px}`, Bl = O`.tabulator-clickable-cell{color:var(--clickable-cell-color,var(--cx-color-primary-600));cursor:pointer}.tabulator-clickable-cell:hover{text-decoration:underline}`, Wl = O`.tabulator-row .tabulator-cell .tabulator-data-tree-branch-empty{display:none}.tabulator-row .tabulator-cell .tabulator-data-tree-branch{border-left:2px solid var(--cx-color-neutral-400);border-bottom:2px solid var(--cx-color-neutral-400);border-bottom-left-radius:1px;width:7px;height:9px;margin-top:-9px;position:absolute}.tabulator-row .tabulator-cell .tabulator-data-tree-control{flex:0 0 var(--tabulator-tree-control-width);vertical-align:middle;width:var(--tabulator-tree-control-width);justify-content:center;align-items:center;display:inline-flex}`, Gl = O`.tabulator-row .tabulator-cell.tabulator-editing{padding:0 var(--cell-horizontal-padding);outline:none}.tabulator:not(.tabulator-ranges) .tabulator-row .tabulator-cell.tabulator-editing input,.tabulator:not(.tabulator-ranges) .tabulator-row .tabulator-cell.tabulator-editing select{font-size:inherit;color:inherit;border-radius:var(--cx-input-border-radius-medium);background:0 0;border:none;outline:none;padding:0;font-family:inherit}.tabulator-ranges .tabulator-row .tabulator-cell.tabulator-editing input,.tabulator-ranges .tabulator-row .tabulator-cell.tabulator-editing select{border:var(--border-width) solid var(--border-color);background:0 0;outline:none}.tabulator-row .tabulator-cell.tabulator-validation-fail{border:var(--border-width) solid var(--cx-color-danger)}.tabulator-row .tabulator-cell.tabulator-validation-fail input,.tabulator-row .tabulator-cell.tabulator-validation-fail select{border:var(--border-width) solid var(--border-color);color:var(--cx-color-danger);background:0 0}.tabulator-row .tabulator-cell.tabulator-editing.tabulator-edit-list{padding:0 var(--cx-spacing-x-small)}.tabulator-edit-list{position:relative}.tabulator-edit-list:not(.tabulator-editing) .tabulator-cell-content{padding-right:var(--cx-spacing-large)}.tabulator-edit-list-trigger{top:50%;right:var(--cx-spacing-small);width:var(--cx-spacing-large);appearance:none;height:100%;color:inherit;cursor:pointer;font:inherit;background:0 0;border:none;justify-content:center;align-items:center;padding:0;display:inline-flex;position:absolute;transform:translateY(-50%)}.tabulator-edit-list.tabulator-editing .tabulator-edit-list-trigger{display:none}.tabulator-edit-list-trigger-caret{--font-size:var(--cx-font-size-medium);color:var(--cx-color-neutral-500)}`, jl = O`.tabulator .tabulator-footer{border-top:1px solid var(--cx-color-neutral-400);background-color:var(--cx-color-neutral-200);color:var(--cx-color-neutral-500);white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;user-select:none;-khtml-user-select:none;-o-user-select:none;font-weight:700}.tabulator .tabulator-footer .tabulator-footer-contents{padding:var(--cx-spacing-2x-small) var(--cx-spacing-small);flex-direction:row;justify-content:space-between;align-items:center;display:flex}.tabulator .tabulator-footer .tabulator-footer-contents:empty{display:none}`, $l = O`.tabulator-row .tabulator-cell a{color:var(--cx-color-primary-600);text-decoration:none}.tabulator-row .tabulator-cell a:hover{text-decoration:underline}.tabulator-row .tabulator-cell .tabulator-traffic-light-container{align-items:center;gap:var(--cx-spacing-x-small);display:inline-flex}.tabulator-row .tabulator-cell .tabulator-traffic-light{border-radius:var(--cx-border-radius-x-large);width:14px;height:14px;display:inline-block}`, Ul = O`.tabulator-row.tabulator-group{box-sizing:border-box;border-bottom:var(--border-width) solid var(--group-row-border-color);border-right:var(--border-width) solid var(--group-row-border-color);padding:var(--cx-spacing-2x-small);padding-left:var(--cx-spacing-small);background:var(--group-row-background-color);min-width:100%;line-height:var(--header-height);color:var(--group-row-color);font-weight:var(--group-row-font-weight)}.tabulator-row.tabulator-group.tabulator-row-last{border-bottom-left-radius:var(--border-radius);border-bottom-right-radius:var(--border-radius)}@media (hover:hover) and (pointer:fine){.tabulator-row.tabulator-group:hover{cursor:pointer;background-color:var(--group-row-hover-background-color)}}.tabulator-row.tabulator-group.tabulator-group-level-1{padding-left:30px}.tabulator-row.tabulator-group.tabulator-group-level-2{padding-left:50px}.tabulator-row.tabulator-group.tabulator-group-level-3{padding-left:70px}.tabulator-row.tabulator-group.tabulator-group-level-4{padding-left:90px}.tabulator-row.tabulator-group.tabulator-group-level-5{padding-left:110px}.tabulator-row.tabulator-group .tabulator-group-toggle{display:inline-flex}.tabulator-row.tabulator-group span{margin-left:var(--cx-spacing-small);color:var(--group-count-color)}`, Kl = O`:host{--selected-column-header-background-color:var(--header-background-color);--selected-column-header-color:var(--header-color)}.tabulator .tabulator-header{box-sizing:border-box;width:max-content;font-weight:var(--header-font-weight);font-size:var(--header-font-size);color:var(--header-color);white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-khtml-user-select:none;-o-user-select:none;outline:none;position:relative}.tabulator .tabulator-header.tabulator-header-hidden{display:none}.tabulator .tabulator-header .tabulator-header-contents{box-sizing:border-box;width:max-content;position:relative;overflow:hidden}.tabulator .tabulator-header .tabulator-header-contents:before{content:"";z-index:1;pointer-events:none;border:var(--border-width) solid var(--outer-border-color);border-bottom:var(--header-border-bottom);border-top-right-radius:var(--border-radius);border-top-left-radius:var(--border-radius);width:100%;height:100%;display:block;position:absolute;top:0;left:0}.tabulator .tabulator-header .tabulator-col:last-of-type{border-right:none}.tabulator .tabulator-header .tabulator-header-contents .tabulator-headers{background-color:var(--header-background-color);display:inline-block}.tabulator .tabulator-header .tabulator-col{box-sizing:border-box;border-right:var(--header-border-right);background:var(--header-background-color);text-align:left;vertical-align:bottom;height:var(--header-height);flex-direction:column;justify-content:center;display:inline-flex;position:relative;overflow:hidden}.tabulator .tabulator-header .tabulator-col.tabulator-moving{border:solid var(--border-width) var(--border-color);background:var(--cx-color-neutral-300);pointer-events:none;position:absolute}.tabulator .tabulator-header .tabulator-col.tabulator-range-highlight{background-color:var(--selected-column-header-background-color);color:var(--selected-column-header-color)}.tabulator .tabulator-header .tabulator-col.tabulator-range-selected{background-color:var(--cx-color-primary-500);color:var(--cx-color-neutral-0)}.tabulator .tabulator-header .tabulator-col .tabulator-col-content{box-sizing:border-box;padding:var(--cx-spacing-2x-small) var(--header-horizontal-padding);position:relative}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-header-popup-button{padding:0 var(--cx-spacing-x-small)}@media (hover:hover) and (pointer:fine){.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-header-popup-button:hover{cursor:pointer;opacity:.6}}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title-holder{position:relative}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title{box-sizing:border-box;white-space:nowrap;text-overflow:ellipsis;vertical-align:bottom;width:100%;overflow:hidden}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title.tabulator-col-title-wrap{white-space:normal;text-overflow:initial}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title .tabulator-title-editor{box-sizing:border-box;border:solid var(--border-width) var(--border-color);width:100%;padding:var(--cx-spacing-3x-small);background:var(--cx-color-neutral-0)}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title .tabulator-header-popup-button+.tabulator-title-editor{width:calc(100% - 22px)}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-sorter{align-items:center;display:flex;position:absolute;top:0;bottom:0;right:4px}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-sorter .tabulator-arrow{border-left:6px solid #0000;border-right:6px solid #0000;border-bottom:6px solid var(--cx-color-neutral-200);width:0;height:0}.tabulator .tabulator-header .tabulator-col.tabulator-col-group .tabulator-col-group-cols{border-top:1px solid var(--cx-color-neutral-400);margin-right:-1px;display:flex;position:relative;overflow:hidden}.tabulator .tabulator-header .tabulator-col .tabulator-header-filter{box-sizing:border-box;margin-top:var(--cx-spacing-3x-small);text-align:center;width:100%;position:relative}.tabulator .tabulator-header .tabulator-col .tabulator-header-filter textarea{height:auto!important}.tabulator .tabulator-header .tabulator-col .tabulator-header-filter svg{margin-top:var(--cx-spacing-3x-small)}.tabulator .tabulator-header .tabulator-col .tabulator-header-filter input::-ms-clear{width:0;height:0}.tabulator .tabulator-header .tabulator-col.tabulator-sortable .tabulator-col-title{padding-right:var(--cx-spacing-x-large)}@media (hover:hover) and (pointer:fine){.tabulator .tabulator-header .tabulator-col.tabulator-sortable.tabulator-col-sorter-element:hover{cursor:pointer}.tabulator .tabulator-header .tabulator-col:hover{background-color:var(--header-hover-background-color)}}.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=none] .tabulator-col-content .tabulator-col-sorter{color:var(--cx-color-neutral-200)}@media (hover:hover) and (pointer:fine){.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=none] .tabulator-col-content .tabulator-col-sorter.tabulator-col-sorter-element .tabulator-arrow:hover{cursor:pointer;border-bottom:6px solid var(--cx-color-neutral-500)}}.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=none] .tabulator-col-content .tabulator-col-sorter .tabulator-arrow{border-top:none;border-bottom:6px solid var(--cx-color-neutral-200)}.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=ascending] .tabulator-col-content .tabulator-col-sorter{color:var(--cx-color-neutral-600)}@media (hover:hover) and (pointer:fine){.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=ascending] .tabulator-col-content .tabulator-col-sorter.tabulator-col-sorter-element .tabulator-arrow:hover{cursor:pointer;border-bottom:6px solid var(--cx-color-neutral-500)}}.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=ascending] .tabulator-col-content .tabulator-col-sorter .tabulator-arrow{border-top:none;border-bottom:6px solid var(--cx-color-neutral-600)}.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=descending] .tabulator-col-content .tabulator-col-sorter{color:var(--cx-color-neutral-600)}@media (hover:hover) and (pointer:fine){.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=descending] .tabulator-col-content .tabulator-col-sorter.tabulator-col-sorter-element .tabulator-arrow:hover{cursor:pointer;border-top:6px solid var(--cx-color-neutral-500)}}.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=descending] .tabulator-col-content .tabulator-col-sorter .tabulator-arrow{border-bottom:none;border-top:6px solid var(--cx-color-neutral-600);color:var(--cx-color-neutral-600)}.tabulator .tabulator-header .tabulator-col.tabulator-col-vertical .tabulator-col-content .tabulator-col-title{writing-mode:vertical-rl;text-orientation:mixed;justify-content:center;align-items:center;display:flex}.tabulator .tabulator-header .tabulator-col.tabulator-col-vertical.tabulator-col-vertical-flip .tabulator-col-title{transform:rotate(180deg)}.tabulator .tabulator-header .tabulator-col.tabulator-col-vertical.tabulator-sortable .tabulator-col-title{padding-right:0;padding-top:var(--cx-spacing-large)}.tabulator .tabulator-header .tabulator-col.tabulator-col-vertical.tabulator-sortable.tabulator-col-vertical-flip .tabulator-col-title{padding-right:0;padding-bottom:var(--cx-spacing-large)}.tabulator .tabulator-header .tabulator-col.tabulator-col-vertical.tabulator-sortable .tabulator-col-sorter{justify-content:center;inset:4px 0 auto}.tabulator .tabulator-header .tabulator-frozen{z-index:11;position:sticky;left:0}.tabulator .tabulator-header .tabulator-frozen.tabulator-frozen-left{border-right:2px solid var(--frozen-border-color)}.tabulator .tabulator-header .tabulator-frozen.tabulator-frozen-right{border-left:2px solid var(--frozen-border-color)}.tabulator .tabulator-header .tabulator-frozen-rows-holder{border-bottom:2px solid var(--frozen-border-color);display:inline-block}.tabulator .tabulator-header .tabulator-frozen-rows-holder:empty{display:none}`, Xl = O`:host{--hover-menu-background-color:transparent}.tabulator-hover-menu{padding-left:var(--cell-horizontal-padding);padding-right:var(--cell-horizontal-padding);background-color:var(--hover-menu-background-color);opacity:0;pointer-events:none;z-index:12;align-items:center;height:100%;display:flex;position:absolute;top:0}.tabulator:not(.tabulator-editing) .tabulator-hover-menu--active{opacity:1;pointer-events:auto}`, Jl = O`.tabulator-row .tabulator-cell.tabulator-row-handle{-webkit-user-select:none;-moz-user-select:none;-khtml-user-select:none;-o-user-select:none;justify-content:center;align-items:center;display:inline-flex}.tabulator-row .tabulator-cell.tabulator-row-handle .tabulator-row-handle-box{width:80%}.tabulator-row .tabulator-cell.tabulator-row-handle .tabulator-row-handle-box .tabulator-row-handle-bar{width:100%;height:3px;margin-top:var(--cx-spacing-3x-small);background:var(--cx-color-neutral-600)}`, ql = O`.tabulator .tabulator-footer .tabulator-paginator{flex:1}.tabulator .tabulator-footer .tabulator-paginator-pagination{margin-left:auto}.tabulator-paginator-pagination{--font-size:var(--cx-font-size-x-small);--pagination-input-font-size:var(--cx-font-size-x-small)}.tabulator-paginator-pagination::part(back-icon),.tabulator-paginator-pagination::part(next-icon){--font-size:var(--cx-font-size-medium)}`, Yl = O`:host{--placeholder-color:var(--cx-color-neutral-800);--placeholder-font-weight:var(--cx-font-weight-regular);--placeholder-font-size:var(--cx-font-size-small)}.tabulator .tabulator-tableholder-wrapper .tabulator-placeholder{box-sizing:border-box;justify-content:center;align-items:center;width:100%;min-width:100%;display:flex}.tabulator .tabulator-tableholder-wrapper .tabulator-placeholder[tabulator-render-mode=virtual]{min-height:100%}.tabulator .tabulator-placeholder .tabulator-placeholder-contents{height:100%;padding:var(--cx-spacing-small);color:var(--placeholder-color);font-weight:var(--placeholder-font-weight);font-size:var(--placeholder-font-size);white-space:normal;justify-content:center;align-items:center;display:flex}.tabulator .tabulator-tableholder-wrapper .tabulator-placeholder.tabulator-placeholder--initializing .tabulator-placeholder-contents{visibility:hidden}.tabulator.tabulator-all-columns-hidden .tabulator-header{width:100%;height:var(--header-height);min-height:var(--header-height)}.tabulator.tabulator-all-columns-hidden .tabulator-header .tabulator-header-contents{background-color:var(--header-background-color);flex-direction:column;width:100%;height:100%;min-height:0;display:flex}.tabulator.tabulator-all-columns-hidden .tabulator-header .tabulator-header-contents:before{box-sizing:border-box;width:auto;height:auto;inset:0}.tabulator.tabulator-all-columns-hidden .tabulator-header .tabulator-header-contents .tabulator-headers{box-sizing:border-box;flex:1;align-self:stretch;width:100%;min-height:0;display:flex}.tabulator.tabulator-all-columns-hidden .tabulator-tableholder-wrapper{width:100%}.tabulator-row.tabulator-placeholder-row{border-left:var(--border-width) solid var(--cell-border-color);border-right:var(--border-width) solid var(--cell-border-color);border-bottom:var(--border-width) solid var(--cell-bottom-border-color);padding:var(--cx-spacing-2x-small) var(--cell-horizontal-padding)}`, Ql = O`.tabulator-toggle{box-sizing:border-box;border:var(--border-width) solid var(--cx-color-neutral-300);background:var(--cx-color-neutral-200);flex-direction:row;display:flex}.tabulator-toggle.tabulator-toggle-on{background:var(--cx-color-primary-700)}.tabulator-toggle .tabulator-toggle-switch{box-sizing:border-box;border:var(--border-width) solid var(--cx-color-neutral-300);background:var(--cx-color-neutral-0)}.tabulator-popup-container{box-sizing:border-box;background:var(--cx-color-neutral-0);border:var(--border-width) solid var(--cx-color-neutral-400);font-size:var(--cx-font-size-small);-webkit-overflow-scrolling:touch;z-index:10000;display:inline-block;position:absolute;overflow-y:auto;box-shadow:0 0 5px #0003}.tabulator-popup{padding:var(--cx-spacing-2x-small);border-radius:var(--cx-border-radius-small)}.tabulator-tooltip{max-width:min(500px,100%);padding:var(--cx-spacing-3x-small) var(--cx-spacing-2x-small);border-radius:var(--cx-border-radius-small);box-shadow:none;font-size:var(--cx-font-size-x-small);pointer-events:none}.tabulator-menu .tabulator-menu-item{box-sizing:border-box;padding:var(--cx-spacing-2x-small) var(--cx-spacing-small);user-select:none;position:relative}.tabulator-menu .tabulator-menu-item.tabulator-menu-item-disabled{opacity:.5}@media (hover:hover) and (pointer:fine){.tabulator-menu .tabulator-menu-item:not(.tabulator-menu-item-disabled):hover{cursor:pointer;background:var(--cx-color-neutral-50)}}.tabulator-menu .tabulator-menu-item.tabulator-menu-item-submenu{padding-right:var(--cx-spacing-x-large)}.tabulator-menu .tabulator-menu-item.tabulator-menu-item-submenu:after{content:"";border-width:var(--border-width) var(--border-width) 0 0;border-style:solid;border-color:var(--cx-color-neutral-400);vertical-align:top;width:7px;height:7px;display:inline-block;position:absolute;top:calc(5px + .4em);right:10px;transform:rotate(45deg)}.tabulator-menu .tabulator-menu-separator{border-top:var(--border-width) solid var(--cx-color-neutral-400)}`, Zl = O`.tabulator-print-fullscreen{z-index:10000;position:absolute;inset:0}body.tabulator-print-fullscreen-hide>:not(.tabulator-print-fullscreen){display:none!important}.tabulator-print-table{border-collapse:collapse}.tabulator-print-table .tabulator-data-tree-branch{vertical-align:middle;width:7px;height:9px;margin-top:-9px;margin-right:var(--cx-spacing-2x-small);border-left:2px solid var(--cx-color-neutral-400);border-bottom:2px solid var(--cx-color-neutral-400);border-bottom-left-radius:1px;display:inline-block}.tabulator-print-table .tabulator-print-table-group{box-sizing:border-box;border-bottom:var(--border-width) solid var(--cx-color-neutral-400);border-right:var(--border-width) solid var(--cx-color-neutral-400);border-top:var(--border-width) solid var(--cx-color-neutral-400);padding:var(--cx-spacing-2x-small);padding-left:var(--cx-spacing-small);background:var(--cx-color-neutral-300);min-width:100%;font-weight:700}@media (hover:hover) and (pointer:fine){.tabulator-print-table .tabulator-print-table-group:hover{cursor:pointer;background-color:#0000001a}}.tabulator-print-table .tabulator-print-table-group.tabulator-group-level-1 td{padding-left:30px!important}.tabulator-print-table .tabulator-print-table-group.tabulator-group-level-2 td{padding-left:50px!important}.tabulator-print-table .tabulator-print-table-group.tabulator-group-level-3 td{padding-left:70px!important}.tabulator-print-table .tabulator-print-table-group.tabulator-group-level-4 td{padding-left:90px!important}.tabulator-print-table .tabulator-print-table-group.tabulator-group-level-5 td{padding-left:110px!important}.tabulator-print-table .tabulator-print-table-group .tabulator-group-toggle{display:inline-block}.tabulator-print-table .tabulator-print-table-group span{margin-left:var(--cx-spacing-small);color:var(--cx-color-danger)}`, eh = O`.tabulator .tabulator-col-resize-handle{z-index:11;vertical-align:middle;width:6px;margin-left:-3px;margin-right:-3px;display:inline-block;position:relative}@media (hover:hover) and (pointer:fine){.tabulator .tabulator-col-resize-handle:hover{cursor:ew-resize}}.tabulator .tabulator-col-resize-handle:last-of-type{width:3px;margin-right:0}.tabulator .tabulator-col-resize-guide{background-color:var(--cx-color-neutral-400);opacity:.5;width:4px;height:100%;margin-left:-.5px;position:absolute;top:0}.tabulator .tabulator-row-resize-guide{background-color:var(--cx-color-neutral-400);opacity:.5;width:100%;height:4px;margin-top:-.5px;position:absolute;left:0}`, th = O`.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle{-webkit-user-select:none;-moz-user-select:none;-khtml-user-select:none;-o-user-select:none;border-radius:var(--cx-border-radius-x-large);background:var(--cx-color-neutral-600);width:15px;height:15px;color:var(--cx-color-neutral-0);justify-content:center;align-items:center;font-size:1.1em;font-weight:700;display:inline-flex}@media (hover:hover) and (pointer:fine){.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle:hover{opacity:.7;cursor:pointer}}.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle.open .tabulator-responsive-collapse-toggle-close{display:initial}.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle.open .tabulator-responsive-collapse-toggle-open{display:none}.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle svg{stroke:var(--cx-color-neutral-0)}.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle .tabulator-responsive-collapse-toggle-close{display:none}`, ih = O`.tabulator-row{box-sizing:border-box;background-color:var(--row-background-color);min-height:22px;display:flex;position:relative}.tabulator-row .tabulator-cell-first{border-left:var(--border-width) solid var(--outer-border-color)}.tabulator-row.tabulator-row-even{background-color:var(--row-even-background-color)}@media (hover:hover) and (pointer:fine){.tabulator-row.tabulator-selectable:hover{background-color:var(--row-hover-background-color);cursor:pointer}.tabulator-row.tabulator-row-even.tabulator-selectable:hover{background-color:var(--row-even-hover-background-color);cursor:pointer}}.tabulator-row.tabulator-selected{background-color:var(--cx-color-primary-200)}@media (hover:hover) and (pointer:fine){.tabulator-row.tabulator-selected:hover{background-color:var(--cx-color-primary-300);cursor:pointer}}.tabulator-row.tabulator-row-moving{border:var(--border-width) solid var(--cx-color-neutral-1000);background:var(--cx-color-neutral-0)}.tabulator-row.tabulator-moving{border-top:var(--border-width) solid var(--cx-color-neutral-400);border-bottom:var(--border-width) solid var(--cx-color-neutral-400);pointer-events:none;z-index:15;position:absolute}.tabulator-header-hidden .tabulator-row.tabulator-row-first .tabulator-cell.tabulator-cell-last{border-top-right-radius:var(--border-radius)}.tabulator-row .tabulator-row-resize-handle{height:5px;position:absolute;bottom:0;left:0;right:0}.tabulator-row .tabulator-row-resize-handle.prev{top:0;bottom:auto}@media (hover:hover) and (pointer:fine){.tabulator-row .tabulator-row-resize-handle:hover{cursor:ns-resize}}.tabulator-row .tabulator-responsive-collapse{box-sizing:border-box;padding:var(--cx-spacing-2x-small);border-top:var(--border-width) solid var(--cx-color-neutral-400);border-bottom:var(--border-width) solid var(--cx-color-neutral-400)}.tabulator-row .tabulator-responsive-collapse:empty{display:none}.tabulator-row .tabulator-responsive-collapse table{font-size:var(--cx-font-size-small)}.tabulator-row .tabulator-responsive-collapse table tr td{position:relative}.tabulator-row .tabulator-responsive-collapse table tr td:first-of-type{padding-right:var(--cx-spacing-small)}.tabulator-row .tabulator-cell{vertical-align:middle;box-sizing:border-box;padding:var(--cx-spacing-2x-small) var(--cell-horizontal-padding);border-right:var(--border-width) solid var(--cell-border-color);border-bottom:var(--border-width) solid var(--cell-bottom-border-color);display:inline-flex;position:relative}@media (hover:hover) and (pointer:fine){.tabulator-row .tabulator-cell:hover,.tabulator-row .tabulator-cell.tabulator-frozen:hover{background-color:var(--cell-hover-background-color)}}.tabulator-row .tabulator-cell .tabulator-cell-content{width:100%;height:100%;font-size:var(--cell-font-size);font-weight:var(--cell-font-weight);line-height:var(--cell-line-height);align-items:center;display:inline-flex}.tabulator-row .tabulator-cell .tabulator-cell-content cx-line-clamp{width:100%;max-width:max-content}.tabulator-row .tabulator-cell.tabulator-row-header{border-right:var(--border-width) solid var(--row-header-border-color)}.tabulator-row .tabulator-cell.tabulator-frozen{background-color:inherit;z-index:11;display:inline-block;position:sticky;left:0}.tabulator-row .tabulator-cell.tabulator-frozen.tabulator-frozen-left{border-right:2px solid var(--frozen-border-color)}.tabulator-row .tabulator-cell.tabulator-frozen.tabulator-frozen-right{border-left:2px solid var(--frozen-border-color)}.tabulator-row:has(+.tabulator-placeholder-row) .tabulator-cell{border-bottom:none}`, sh = O`.tabulator.tabulator-ltr{direction:ltr}.tabulator.tabulator-rtl{text-align:initial;direction:rtl}.tabulator.tabulator-rtl .tabulator-header .tabulator-col{text-align:initial;border-left:var(--border-width) solid var(--cx-color-neutral-400);border-right:initial}.tabulator.tabulator-rtl .tabulator-header .tabulator-col.tabulator-col-group .tabulator-col-group-cols{margin-right:initial;margin-left:-1px}.tabulator.tabulator-rtl .tabulator-header .tabulator-col.tabulator-sortable .tabulator-col-title{padding-right:0;padding-left:var(--cx-spacing-x-large)}.tabulator.tabulator-rtl .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-sorter{left:8px;right:initial}.tabulator.tabulator-rtl .tabulator-row .tabulator-cell{border-right:initial;border-left:var(--border-width) solid var(--cell-border-color)}.tabulator.tabulator-rtl .tabulator-row .tabulator-cell .tabulator-data-tree-branch{margin-right:initial;margin-left:var(--cx-spacing-2x-small);border-bottom-left-radius:initial;border-left:initial;border-right:2px solid var(--cx-color-neutral-400);border-bottom-right-radius:1px}.tabulator.tabulator-rtl .tabulator-row .tabulator-cell.tabulator-frozen.tabulator-frozen-left{border-left:2px solid var(--cx-color-neutral-400)}.tabulator.tabulator-rtl .tabulator-row .tabulator-cell.tabulator-frozen.tabulator-frozen-right{border-right:2px solid var(--cx-color-neutral-400)}.tabulator.tabulator-rtl .tabulator-row .tabulator-col-resize-handle:last-of-type{width:3px;margin-left:0;margin-right:-3px}.tabulator.tabulator-rtl .tabulator-footer .tabulator-calcs-holder{text-align:initial}`, oh = O`:host{--table-active-cell-border-color:var(--border-color);--table-selected-cell-border-width:1px;--table-selected-cell-border-style:solid;--table-selected-only-cell-background-color:transparent;--table-selected-range-cell-background-color:var(--cx-color-neutral-100);--table-selected-range-selection-start-cell-background-color:var(--cx-color-neutral-50);--table-selected-cell-hover-background-color:var(--cx-color-neutral-50);--table-editable-only-cell-selected-background-color:var(--cx-color-primary-50);--table-editable-cell-hover-background-color:var(--cx-color-primary-50);--table-editable-only-cell-active-border-color:var(--cx-color-primary-600)}.tabulator .tabulator-tableholder .tabulator-range-overlay{z-index:10;pointer-events:none;position:absolute;inset:0}.tabulator .tabulator-tableholder .tabulator-range-overlay .tabulator-range{box-sizing:border-box;position:absolute}.tabulator .tabulator-tableholder .tabulator-range-overlay .tabulator-range-cell-active,.tabulator .tabulator-tableholder .tabulator-range-overlay .tabulator-range-cell-hover{box-sizing:border-box;border-color:var(--table-active-cell-border-color);border-style:var(--table-selected-cell-border-style);border-width:var(--table-selected-cell-border-width);background-color:var(--table-selected-only-cell-background-color);position:absolute}.tabulator-row.tabulator-range-highlight .tabulator-cell.tabulator-range-row-header{background-color:var(--cx-color-neutral-300);color:var(--cx-color-neutral-1000)}.tabulator-row.tabulator-range-highlight.tabulator-range-selected .tabulator-cell.tabulator-range-row-header,.tabulator-row.tabulator-range-selected .tabulator-cell.tabulator-range-row-header{background-color:var(--cx-color-primary-500);color:var(--cx-color-neutral-0)}.tabulator-row .tabulator-cell.tabulator-range-selected:not(.tabulator-range-row-header){background-color:var(--table-selected-range-cell-background-color)}.tabulator-row .tabulator-cell.tabulator-range-selection-start:not(.tabulator-range-row-header){background-color:var(--table-selected-range-selection-start-cell-background-color)}.tabulator-row .tabulator-cell.tabulator-range-selected:not(.tabulator-range-row-header):hover{background-color:var(--table-selected-cell-hover-background-color)}.tabulator .tabulator-tableholder .tabulator-range-overlay .tabulator-editable.tabulator-range-only-cell-active.tabulator-range-cell-active{border-color:var(--table-editable-only-cell-active-border-color)}.tabulator .tabulator-tableholder .tabulator-range-overlay .tabulator-editable.tabulator-range-cell-hover{border:var(--border-width) solid var(--table-editable-only-cell-active-border-color)}.tabulator-row .tabulator-cell.tabulator-editable:hover{background-color:var(--table-editable-cell-hover-background-color)}.tabulator-row .tabulator-cell.tabulator-editable.tabulator-range-only-cell-selected:not(.tabulator-range-row-header){background-color:var(--table-editable-only-cell-selected-background-color)}.tabulator-row .tabulator-cell.tabulator-editable.tabulator-range-selected:not(.tabulator-range-row-header):hover{background-color:var(--table-editable-cell-hover-background-color)}`, rh = O`.tabulator .tabulator-footer .tabulator-spreadsheet-tabs{margin-top:-5px;overflow-x:auto}.tabulator .tabulator-footer .tabulator-spreadsheet-tabs .tabulator-spreadsheet-tab{padding:var(--cx-spacing-2x-small);border:solid var(--border-width) var(--border-color);border-top:none;border-bottom-right-radius:5px;border-bottom-left-radius:5px;font-size:.9em;display:inline-block}.tabulator .tabulator-footer .tabulator-spreadsheet-tabs .tabulator-spreadsheet-tab:hover{cursor:pointer;opacity:.7}.tabulator .tabulator-footer .tabulator-spreadsheet-tabs .tabulator-spreadsheet-tab.tabulator-spreadsheet-tab-active{background:var(--cx-color-neutral-0)}`, nh = [
|
|
17181
17193
|
Vl,
|
|
17182
|
-
|
|
17183
|
-
|
|
17194
|
+
Kl,
|
|
17195
|
+
Yl,
|
|
17196
|
+
Il,
|
|
17184
17197
|
oh,
|
|
17198
|
+
jl,
|
|
17199
|
+
rh,
|
|
17200
|
+
ql,
|
|
17201
|
+
eh,
|
|
17202
|
+
Nl,
|
|
17203
|
+
ih,
|
|
17204
|
+
Gl,
|
|
17185
17205
|
Jl,
|
|
17186
|
-
Zl,
|
|
17187
|
-
_l,
|
|
17188
|
-
th,
|
|
17189
17206
|
Wl,
|
|
17190
|
-
|
|
17191
|
-
Bl,
|
|
17192
|
-
eh,
|
|
17193
|
-
jl,
|
|
17207
|
+
th,
|
|
17194
17208
|
$l,
|
|
17195
|
-
|
|
17196
|
-
ih,
|
|
17209
|
+
Ul,
|
|
17197
17210
|
Ql,
|
|
17198
|
-
|
|
17199
|
-
|
|
17200
|
-
|
|
17211
|
+
sh,
|
|
17212
|
+
Zl,
|
|
17213
|
+
Xl,
|
|
17214
|
+
Bl
|
|
17215
|
+
], ah = {
|
|
17201
17216
|
formatter: function() {
|
|
17202
17217
|
const n = document.createElement("div");
|
|
17203
17218
|
n.style.display = "flex", n.style.alignItems = "center", n.style.justifyContent = "center", n.style.width = "100%", n.style.height = "100%", n.style.userSelect = "none", n.dataset.testid = "movable-row-button";
|
|
@@ -17210,7 +17225,7 @@ const _l = O`.tabulator .tabulator-alert{z-index:100;background:color-mix(in srg
|
|
|
17210
17225
|
rowHandle: !0,
|
|
17211
17226
|
title: "",
|
|
17212
17227
|
width: 40
|
|
17213
|
-
},
|
|
17228
|
+
}, lh = {
|
|
17214
17229
|
fromAttribute: (n) => {
|
|
17215
17230
|
if (typeof n == "string") {
|
|
17216
17231
|
if (!n.trim())
|
|
@@ -17227,7 +17242,7 @@ const _l = O`.tabulator .tabulator-alert{z-index:100;background:color-mix(in srg
|
|
|
17227
17242
|
return n;
|
|
17228
17243
|
},
|
|
17229
17244
|
toAttribute: (n) => typeof n == "function" ? "" : Array.isArray(n) ? JSON.stringify(n) : typeof n == "number" ? n.toString() : n
|
|
17230
|
-
},
|
|
17245
|
+
}, hh = {
|
|
17231
17246
|
fromAttribute: (n) => {
|
|
17232
17247
|
if (typeof n == "string") {
|
|
17233
17248
|
if (!n.trim())
|
|
@@ -17243,7 +17258,7 @@ const _l = O`.tabulator .tabulator-alert{z-index:100;background:color-mix(in srg
|
|
|
17243
17258
|
return n;
|
|
17244
17259
|
},
|
|
17245
17260
|
toAttribute: (n) => typeof n == "function" ? "" : Array.isArray(n) ? JSON.stringify(n) : typeof n == "boolean" ? n.toString() : n
|
|
17246
|
-
},
|
|
17261
|
+
}, ch = {
|
|
17247
17262
|
fromAttribute: (n) => {
|
|
17248
17263
|
if (typeof n == "string") {
|
|
17249
17264
|
if (!n.trim())
|
|
@@ -17259,16 +17274,16 @@ const _l = O`.tabulator .tabulator-alert{z-index:100;background:color-mix(in srg
|
|
|
17259
17274
|
},
|
|
17260
17275
|
toAttribute: (n) => typeof n == "function" ? "" : Array.isArray(n) ? JSON.stringify(n) : n
|
|
17261
17276
|
};
|
|
17262
|
-
var
|
|
17277
|
+
var dh = Object.defineProperty, uh = Object.getOwnPropertyDescriptor, Js = (n) => {
|
|
17263
17278
|
throw TypeError(n);
|
|
17264
17279
|
}, v = (n, e, t, i) => {
|
|
17265
|
-
for (var s = i > 1 ? void 0 : i ?
|
|
17280
|
+
for (var s = i > 1 ? void 0 : i ? uh(e, t) : e, o = n.length - 1, r; o >= 0; o--)
|
|
17266
17281
|
(r = n[o]) && (s = (i ? r(e, t, s) : r(s)) || s);
|
|
17267
|
-
return i && s &&
|
|
17268
|
-
},
|
|
17282
|
+
return i && s && dh(e, t, s), s;
|
|
17283
|
+
}, ph = (n, e, t) => e.has(n) || Js("Cannot " + t), fh = (n, e, t) => (ph(n, e, "read from private field"), t ? t.call(n) : e.get(n)), gh = (n, e, t) => e.has(n) ? Js("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(n) : e.set(n, t), Ri, qs;
|
|
17269
17284
|
let w = class extends Ie {
|
|
17270
17285
|
constructor() {
|
|
17271
|
-
super(),
|
|
17286
|
+
super(), gh(this, Ri), this.localize = new pt(this), this.verticalOsInstance = null, this.horizontalOsInstance = null, this.resizeObserver = null, this.overflowObserver = null, this.filterController = new _l(this), this.shadowRootAutoloader = new Rl(this), 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.columnDefaults = {}, 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.canExportCustom = !1, this.canSaveReport = !1, this.savedSearchURL = "", this.savedSearchItems = [], this.savedSearchPageSizeParam = "PageSize", this.savedSearchPageSize = 10, this.savedSearchPageNumberParam = "PageNumber", this.dropdownFilters = [], this.ajaxURL = void 0, this.ajaxURLGenerator = void 0, this.ajaxParams = void 0, this.ajaxResponse = void 0, 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.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 = Ue.Both, this.clipboardCopyRowRange = "range", this.clipboardPasteParser = void 0, this.clipboardPasteAction = "insert", this.clipboardCopyConfig = { columnHeaders: !1 }, this.clipboardNoCopyStyled = !1, this.pagination = !1, this.paginationMode = de.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 = uo.Both, this.paginationShowFirst = !1, this.paginationShowLast = !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 = de.Local, this.placeholderHeaderFilter = "No matching data", this.noColumnPlaceholderText = this.localize.term("noColumnsVisible"), this.useOverlayScrollbar = !1, this.loading = !1, this.tabulatorInstance = null, this.watchedEvents = /* @__PURE__ */ new Set(), this.activeSearchValue = "", this.handleTableBuilt = () => {
|
|
17272
17287
|
this.useOverlayScrollbar ? this.initVerticalScrollbar() : this.verticalOsInstance?.destroy(), this.initHorizontalScrollbar(), this.initOverflowObserver(), this.filterController.syncDropdownFilterSources(this.dropdownFilters), this.handleSearch(), this.filterController.applyFilters(), this.attachPaginatorToToolbar();
|
|
17273
17288
|
}, this.checkHorizontalOverflow = () => {
|
|
17274
17289
|
if (!this.tabulatorElement || !this.tabulatorHolder)
|
|
@@ -17316,9 +17331,9 @@ let w = class extends Ie {
|
|
|
17316
17331
|
async initTable() {
|
|
17317
17332
|
this.tabulatorInstance && (this.overflowObserver?.disconnect(), this.verticalOsInstance?.destroy(), this.horizontalOsInstance?.destroy(), this.tabulatorInstance.destroy());
|
|
17318
17333
|
let n = this.rowHeader;
|
|
17319
|
-
n == null && (this.movableRows ? n =
|
|
17334
|
+
n == null && (this.movableRows ? n = ah : this.responsiveLayout === "collapse" && (n = {
|
|
17320
17335
|
formatter: "responsiveCollapse"
|
|
17321
|
-
})), this.tabulatorInstance = new
|
|
17336
|
+
})), this.tabulatorInstance = new xl(this.table, {
|
|
17322
17337
|
ajaxParams: this.ajaxParams,
|
|
17323
17338
|
ajaxResponse: this.ajaxResponse,
|
|
17324
17339
|
ajaxURL: this.ajaxURL,
|
|
@@ -17367,7 +17382,7 @@ let w = class extends Ie {
|
|
|
17367
17382
|
groupHeaderPrint: this.groupHeaderPrint,
|
|
17368
17383
|
groupIndent: this.groupIndent,
|
|
17369
17384
|
groupLoadMoreMeta: this.groupLoadMoreMeta,
|
|
17370
|
-
groupStartOpen:
|
|
17385
|
+
groupStartOpen: fh(this, Ri, qs),
|
|
17371
17386
|
groupToggleElement: this.groupToggleElement,
|
|
17372
17387
|
groupUpdateOnCellEdit: this.groupUpdateOnCellEdit,
|
|
17373
17388
|
groupValues: this.groupValues,
|
|
@@ -17442,7 +17457,7 @@ let w = class extends Ie {
|
|
|
17442
17457
|
});
|
|
17443
17458
|
}
|
|
17444
17459
|
initVerticalScrollbar() {
|
|
17445
|
-
!this.tabulatorHolder || !this.tabulatorInstance?.initialized || (this.verticalOsInstance?.destroy(), this.verticalOsInstance =
|
|
17460
|
+
!this.tabulatorHolder || !this.tabulatorInstance?.initialized || (this.verticalOsInstance?.destroy(), this.verticalOsInstance = es(this.tabulatorHolder, {
|
|
17446
17461
|
overflow: {
|
|
17447
17462
|
x: "hidden",
|
|
17448
17463
|
y: "scroll"
|
|
@@ -17454,7 +17469,7 @@ let w = class extends Ie {
|
|
|
17454
17469
|
}), this.tabulatorInstance?.redraw());
|
|
17455
17470
|
}
|
|
17456
17471
|
initHorizontalScrollbar() {
|
|
17457
|
-
!this.tabulatorElement || !this.tabulatorInstance?.initialized || (this.horizontalOsInstance?.destroy(), this.horizontalOsInstance =
|
|
17472
|
+
!this.tabulatorElement || !this.tabulatorInstance?.initialized || (this.horizontalOsInstance?.destroy(), this.horizontalOsInstance = es(this.tabulatorElement, {
|
|
17458
17473
|
overflow: {
|
|
17459
17474
|
x: "scroll",
|
|
17460
17475
|
y: "hidden"
|
|
@@ -17598,7 +17613,7 @@ let w = class extends Ie {
|
|
|
17598
17613
|
this.filterController.setSourceFilters(`dropdown:${e}`, t.filter ? [t.filter] : []);
|
|
17599
17614
|
}
|
|
17600
17615
|
render() {
|
|
17601
|
-
return E`<cx-space part="base" direction="vertical" spacing="large" wrap="nowrap" class=${
|
|
17616
|
+
return E`<cx-space part="base" direction="vertical" spacing="large" wrap="nowrap" class=${nt({
|
|
17602
17617
|
container: !0,
|
|
17603
17618
|
"container--overlay-scrollbar": this.useOverlayScrollbar
|
|
17604
17619
|
})}>${X(
|
|
@@ -17607,24 +17622,24 @@ let w = class extends Ie {
|
|
|
17607
17622
|
)}<div part="table" class="table"></div></cx-space>`;
|
|
17608
17623
|
}
|
|
17609
17624
|
};
|
|
17610
|
-
|
|
17611
|
-
|
|
17625
|
+
Ri = /* @__PURE__ */ new WeakSet();
|
|
17626
|
+
qs = function() {
|
|
17612
17627
|
return this.groupStartOpenValues !== void 0 && this.groupStartOpenValues !== null ? (n) => this.groupStartOpenValues?.includes(n) ?? !1 : this.groupStartOpen;
|
|
17613
17628
|
};
|
|
17614
17629
|
w.styles = [
|
|
17615
17630
|
Qe,
|
|
17616
|
-
|
|
17617
|
-
|
|
17631
|
+
nh,
|
|
17632
|
+
so
|
|
17618
17633
|
];
|
|
17619
17634
|
w.dependencies = {
|
|
17620
17635
|
"cx-button": Ve,
|
|
17621
|
-
"cx-checkbox":
|
|
17622
|
-
"cx-divider":
|
|
17623
|
-
"cx-format-number":
|
|
17624
|
-
"cx-icon-button":
|
|
17625
|
-
"cx-select":
|
|
17626
|
-
"cx-space":
|
|
17627
|
-
"cx-spinner":
|
|
17636
|
+
"cx-checkbox": Qs,
|
|
17637
|
+
"cx-divider": Zs,
|
|
17638
|
+
"cx-format-number": eo,
|
|
17639
|
+
"cx-icon-button": zs,
|
|
17640
|
+
"cx-select": to,
|
|
17641
|
+
"cx-space": Si,
|
|
17642
|
+
"cx-spinner": io,
|
|
17628
17643
|
"cx-table-row-actions": ye,
|
|
17629
17644
|
"cx-table-toolbar": F
|
|
17630
17645
|
};
|
|
@@ -17915,7 +17930,7 @@ v([
|
|
|
17915
17930
|
v([
|
|
17916
17931
|
g({
|
|
17917
17932
|
attribute: "frozen-rows",
|
|
17918
|
-
converter:
|
|
17933
|
+
converter: lh
|
|
17919
17934
|
})
|
|
17920
17935
|
], w.prototype, "frozenRows", 2);
|
|
17921
17936
|
v([
|
|
@@ -17933,7 +17948,7 @@ v([
|
|
|
17933
17948
|
v([
|
|
17934
17949
|
g({
|
|
17935
17950
|
attribute: "group-by",
|
|
17936
|
-
converter:
|
|
17951
|
+
converter: ch
|
|
17937
17952
|
})
|
|
17938
17953
|
], w.prototype, "groupBy", 2);
|
|
17939
17954
|
v([
|
|
@@ -18082,7 +18097,7 @@ v([
|
|
|
18082
18097
|
v([
|
|
18083
18098
|
g({
|
|
18084
18099
|
attribute: "data-tree-start-expanded",
|
|
18085
|
-
converter:
|
|
18100
|
+
converter: hh
|
|
18086
18101
|
})
|
|
18087
18102
|
], w.prototype, "dataTreeStartExpanded", 2);
|
|
18088
18103
|
v([
|
|
@@ -18565,62 +18580,62 @@ w = v([
|
|
|
18565
18580
|
Be("cx-table")
|
|
18566
18581
|
], w);
|
|
18567
18582
|
export {
|
|
18568
|
-
|
|
18569
|
-
|
|
18570
|
-
|
|
18583
|
+
gi as $,
|
|
18584
|
+
Lt as A,
|
|
18585
|
+
ii as B,
|
|
18571
18586
|
w as C,
|
|
18572
|
-
|
|
18573
|
-
|
|
18574
|
-
|
|
18575
|
-
|
|
18587
|
+
It as D,
|
|
18588
|
+
Wt as E,
|
|
18589
|
+
jt as F,
|
|
18590
|
+
_s as G,
|
|
18576
18591
|
Re as H,
|
|
18577
|
-
|
|
18578
|
-
|
|
18579
|
-
|
|
18580
|
-
|
|
18592
|
+
qt as I,
|
|
18593
|
+
si as J,
|
|
18594
|
+
Qt as K,
|
|
18595
|
+
oi as L,
|
|
18581
18596
|
S as M,
|
|
18582
|
-
|
|
18583
|
-
|
|
18584
|
-
|
|
18585
|
-
|
|
18597
|
+
ri as N,
|
|
18598
|
+
ni as O,
|
|
18599
|
+
oc as P,
|
|
18600
|
+
ai as Q,
|
|
18586
18601
|
Di as R,
|
|
18587
|
-
|
|
18602
|
+
Ks as S,
|
|
18588
18603
|
ve as T,
|
|
18589
|
-
|
|
18590
|
-
|
|
18591
|
-
|
|
18592
|
-
|
|
18593
|
-
|
|
18594
|
-
|
|
18595
|
-
|
|
18596
|
-
|
|
18597
|
-
|
|
18598
|
-
|
|
18604
|
+
li as U,
|
|
18605
|
+
hi as V,
|
|
18606
|
+
ci as W,
|
|
18607
|
+
di as X,
|
|
18608
|
+
ui as Y,
|
|
18609
|
+
pi as Z,
|
|
18610
|
+
fi as _,
|
|
18611
|
+
xl as a,
|
|
18612
|
+
mi as a0,
|
|
18613
|
+
bi as a1,
|
|
18599
18614
|
ye as a2,
|
|
18600
18615
|
F as a3,
|
|
18601
|
-
|
|
18602
|
-
|
|
18603
|
-
|
|
18604
|
-
|
|
18616
|
+
Li as b,
|
|
18617
|
+
At as c,
|
|
18618
|
+
Vo as d,
|
|
18619
|
+
Fa as e,
|
|
18605
18620
|
B as f,
|
|
18606
18621
|
Ze as g,
|
|
18607
|
-
|
|
18622
|
+
vt as h,
|
|
18608
18623
|
Dt as i,
|
|
18609
|
-
|
|
18610
|
-
|
|
18611
|
-
|
|
18612
|
-
|
|
18613
|
-
|
|
18614
|
-
|
|
18615
|
-
|
|
18616
|
-
|
|
18617
|
-
|
|
18618
|
-
|
|
18619
|
-
|
|
18620
|
-
|
|
18621
|
-
|
|
18622
|
-
|
|
18623
|
-
|
|
18624
|
-
|
|
18625
|
-
|
|
18624
|
+
zt as j,
|
|
18625
|
+
Ft as k,
|
|
18626
|
+
Ht as l,
|
|
18627
|
+
_t as m,
|
|
18628
|
+
Nt as n,
|
|
18629
|
+
Bt as o,
|
|
18630
|
+
Gt as p,
|
|
18631
|
+
lt as q,
|
|
18632
|
+
$t as r,
|
|
18633
|
+
Ut as s,
|
|
18634
|
+
Kt as t,
|
|
18635
|
+
Xt as u,
|
|
18636
|
+
Jt as v,
|
|
18637
|
+
Yt as w,
|
|
18638
|
+
Zt as x,
|
|
18639
|
+
ei as y,
|
|
18640
|
+
ti as z
|
|
18626
18641
|
};
|