@orangelogic/design-system 2.77.0 → 2.78.0-ci.3
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/{button.csCRiZzY.js → button.DS64Tr8Z.js} +2 -4
- package/library/chunks/{color-swatch-group.CKdXj10T.js → color-swatch-group.DLXAJdU4.js} +1 -1
- package/library/chunks/{confirm-popover.Kx6YyQwp.js → confirm-popover.BNjRvnN0.js} +1 -1
- package/library/chunks/{file-on-demand.BJZ5E8XT.js → file-on-demand.BTTdth3o.js} +4 -4
- package/library/chunks/{folder-select.BqLmIlj6.js → folder-select.B2qxSKA5.js} +1 -1
- package/library/chunks/{index.VbMreXxL.js → index.Bx0otwQo.js} +1 -1
- package/library/chunks/{list-editor.BzzQoZe1.js → list-editor.C2ZRwPIG.js} +2 -2
- package/library/chunks/{pagination.BXCr_5om.js → pagination.DZq0IZjI.js} +83 -73
- package/library/chunks/{tab-group.G24wrely.js → tab-group.Dg6a82ei.js} +1 -1
- package/library/chunks/{table.34yySlt-.js → table.COCT3Fsb.js} +664 -516
- package/library/chunks/url.Cj9cIQXJ.js +27 -0
- package/library/components/asset-link-format.js +1 -1
- package/library/components/atoms.js +4 -4
- package/library/components/button.js +1 -1
- package/library/components/color-picker.js +1 -1
- package/library/components/color-swatch-group.js +2 -2
- package/library/components/confirm-popover.js +2 -2
- package/library/components/dynamic-select.js +1 -1
- package/library/components/element-clamp.js +1 -1
- package/library/components/file-on-demand.js +5 -5
- package/library/components/folder-select.js +1 -1
- package/library/components/line-clamp.js +1 -1
- package/library/components/list-editor.js +3 -3
- package/library/components/molecules.js +3 -3
- package/library/components/organisms.js +2 -2
- package/library/components/pagination.js +2 -2
- package/library/components/select.js +156 -127
- package/library/components/tab-group.js +2 -2
- package/library/components/table.js +3 -3
- package/library/components/textarea.js +200 -174
- package/library/components/types.js +10217 -10205
- package/library/components/video.js +3521 -3499
- package/library/package.json +4 -1
- package/library/packages/atoms/src/components/pagination/pagination.d.ts +2 -1
- package/library/packages/atoms/src/components/select/select.d.ts +11 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Ajax/Ajax.d.ts +1 -1
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Edit/Edit.d.ts +1 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Edit/List.d.ts +32 -1
- package/library/packages/atoms/src/components/textarea/textarea.d.ts +19 -4
- package/library/packages/organisms/src/carousel/carousel.d.ts +2 -0
- package/library/packages/types/src/table.d.ts +2 -0
- package/library/packages/types/src/textarea.d.ts +4 -0
- package/library/packages/utils/src/url/url.d.ts +9 -0
- package/library/react-web-component.d.ts +10 -6
- package/library/utils.js +34 -33
- package/package.json +4 -1
- package/library/chunks/url.LjsR2sB5.js +0 -15
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
import { C as _e } from "./button.
|
|
2
|
-
import
|
|
1
|
+
import { C as _e } from "./button.DS64Tr8Z.js";
|
|
2
|
+
import Ps from "../components/checkbox.js";
|
|
3
3
|
import vs from "../components/divider.js";
|
|
4
|
-
import
|
|
4
|
+
import As from "../components/format-number.js";
|
|
5
5
|
import { C as ys } from "./icon-button.C3eqeQl9.js";
|
|
6
|
-
import
|
|
6
|
+
import _s from "../components/select.js";
|
|
7
7
|
import wi from "../components/space.js";
|
|
8
|
-
import
|
|
8
|
+
import Ns from "../components/spinner.js";
|
|
9
9
|
import { n as g, C as Ne } from "./lib-cortex-element.CVMmyPMC.js";
|
|
10
10
|
import { c as qe } from "./component.styles.DMSLciL5.js";
|
|
11
|
-
import { o as
|
|
12
|
-
import { C as
|
|
11
|
+
import { o as Vs, O as $i } from "./overlayscrollbars.XhGWx9Zk.js";
|
|
12
|
+
import { C as Is, P as Bs } from "./pagination.DZq0IZjI.js";
|
|
13
13
|
import { c as Ve } from "./custom-element.L4WJXn1j.js";
|
|
14
14
|
import { L as lt } from "./i18n.BUW7B9hr.js";
|
|
15
15
|
import { w as _ } from "./watch.BCJD77bD.js";
|
|
16
|
-
import { i as H, x, E as
|
|
16
|
+
import { i as H, x, E as Ws } from "./lit-element.jLBm65_O.js";
|
|
17
17
|
import { r as re } from "./state.CSDxrqLd.js";
|
|
18
18
|
import { e as Ie } from "./query.BBf1UFkC.js";
|
|
19
|
-
import { e as
|
|
19
|
+
import { e as Gs } from "./class-map.BiVq-cVR.js";
|
|
20
20
|
import { n as U } from "./when.Dr1es41R.js";
|
|
21
21
|
import ht from "../components/icon.js";
|
|
22
22
|
import vi from "../components/tooltip.js";
|
|
23
|
-
import { r as
|
|
23
|
+
import { r as js } from "./choose.BTbF6BAn.js";
|
|
24
24
|
import { o as be } from "./if-defined.BRoBj_Rp.js";
|
|
25
25
|
import { c as Ae } from "./repeat.DbF2p5ae.js";
|
|
26
26
|
import { o as ke } from "./style-map.llVFPd__.js";
|
|
27
27
|
import ct from "../components/dropdown.js";
|
|
28
28
|
import dt from "../components/menu.js";
|
|
29
29
|
import ut from "../components/menu-item.js";
|
|
30
|
-
import
|
|
31
|
-
import { g as
|
|
32
|
-
import
|
|
33
|
-
import { C as
|
|
34
|
-
import { g as T, a as
|
|
30
|
+
import $s from "../components/menu-section.js";
|
|
31
|
+
import { g as Us } from "./content-builder.B4Tqoc6M.js";
|
|
32
|
+
import Ks from "../components/input.js";
|
|
33
|
+
import { C as Xs, T as Js } from "./typography.oDzoLbZS.js";
|
|
34
|
+
import { g as T, a as qs } from "./dom.BQVKDNd8.js";
|
|
35
35
|
import "./browser.BHOCIF_A.js";
|
|
36
36
|
import "./form.DgwYWi0O.js";
|
|
37
37
|
import "./purify.es.BIuh5IAZ.js";
|
|
38
|
-
import { t as
|
|
38
|
+
import { t as Ys } from "./toast.BXNbwZV8.js";
|
|
39
39
|
import { s as S, a as pt } from "./string.B_rEG27K.js";
|
|
40
|
-
import { C as
|
|
40
|
+
import { C as Qs } from "./option.Csqefux_.js";
|
|
41
41
|
var ae = /* @__PURE__ */ ((a) => (a.Bottom = "bottom", a.Center = "center", a.Nearest = "nearest", a.Top = "top", a))(ae || {}), q = /* @__PURE__ */ ((a) => (a.All = "all", a.Cell = "cell", a.Column = "column", a.Row = "row", a))(q || {}), je = /* @__PURE__ */ ((a) => (a.Both = "both", a.Copy = "copy", a.Paste = "paste", a))(je || {}), xe = /* @__PURE__ */ ((a) => (a.Left = "left", a.Right = "right", a))(xe || {}), he = /* @__PURE__ */ ((a) => (a.Local = "local", a.Remote = "remote", a))(he || {}), W = /* @__PURE__ */ ((a) => (a.Asc = "asc", a.Desc = "desc", a.None = "none", a))(W || {}), Me = /* @__PURE__ */ ((a) => (a.Ends = "ends", a.Equal = "=", a.GreaterOrEqual = ">=", a.GreaterThan = ">", a.In = "in", a.Keywords = "keywords", a.LessOrEqual = "<=", a.LessThan = "<", a.Like = "like", a.NotEqual = "!=", a.Regex = "regex", a.Starts = "starts", a))(Me || {});
|
|
42
42
|
const Cs = 36;
|
|
43
|
-
class
|
|
43
|
+
class Zs {
|
|
44
44
|
#e;
|
|
45
45
|
#i;
|
|
46
46
|
#s = /* @__PURE__ */ new Set();
|
|
@@ -106,7 +106,7 @@ class Qs {
|
|
|
106
106
|
return t.includes("-") && !customElements.get(t);
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
|
-
const
|
|
109
|
+
const eo = H`
|
|
110
110
|
.table-row-actions__button::part(label),
|
|
111
111
|
.table-row-actions__dropdown__trigger::part(label) {
|
|
112
112
|
padding: 0 var(--cx-spacing-x-small);
|
|
@@ -116,10 +116,10 @@ const Zs = H`
|
|
|
116
116
|
display: none;
|
|
117
117
|
}
|
|
118
118
|
`;
|
|
119
|
-
var
|
|
120
|
-
for (var s = i > 1 ? void 0 : i ?
|
|
119
|
+
var to = Object.defineProperty, io = Object.getOwnPropertyDescriptor, Le = (a, e, t, i) => {
|
|
120
|
+
for (var s = i > 1 ? void 0 : i ? io(e, t) : e, o = a.length - 1, r; o >= 0; o--)
|
|
121
121
|
(r = a[o]) && (s = (i ? r(e, t, s) : r(s)) || s);
|
|
122
|
-
return i && s &&
|
|
122
|
+
return i && s && to(e, t, s), s;
|
|
123
123
|
};
|
|
124
124
|
let oe = class extends Ne {
|
|
125
125
|
constructor() {
|
|
@@ -129,7 +129,7 @@ let oe = class extends Ne {
|
|
|
129
129
|
return this;
|
|
130
130
|
}
|
|
131
131
|
handleActionChange() {
|
|
132
|
-
this.groupedDropdownItems =
|
|
132
|
+
this.groupedDropdownItems = Us(
|
|
133
133
|
this.action?.options?.dropdownItems ?? [],
|
|
134
134
|
"section"
|
|
135
135
|
), this.sections = Object.keys(this.groupedDropdownItems);
|
|
@@ -171,7 +171,7 @@ let oe = class extends Ne {
|
|
|
171
171
|
}
|
|
172
172
|
render() {
|
|
173
173
|
if (!this.action)
|
|
174
|
-
return
|
|
174
|
+
return Ws;
|
|
175
175
|
const a = this.action?.icon ?? "more_horiz";
|
|
176
176
|
return x`<cx-dropdown hoist>
|
|
177
177
|
<cx-tooltip
|
|
@@ -210,7 +210,7 @@ oe.dependencies = {
|
|
|
210
210
|
"cx-icon": ht,
|
|
211
211
|
"cx-menu": dt,
|
|
212
212
|
"cx-menu-item": ut,
|
|
213
|
-
"cx-menu-section":
|
|
213
|
+
"cx-menu-section": $s,
|
|
214
214
|
"cx-tooltip": vi
|
|
215
215
|
};
|
|
216
216
|
Le([
|
|
@@ -238,10 +238,10 @@ Le([
|
|
|
238
238
|
oe = Le([
|
|
239
239
|
Ve("cx-table-row-actions-dropdown")
|
|
240
240
|
], oe);
|
|
241
|
-
var
|
|
242
|
-
for (var s = i > 1 ? void 0 : i ?
|
|
241
|
+
var so = Object.defineProperty, oo = Object.getOwnPropertyDescriptor, ft = (a, e, t, i) => {
|
|
242
|
+
for (var s = i > 1 ? void 0 : i ? oo(e, t) : e, o = a.length - 1, r; o >= 0; o--)
|
|
243
243
|
(r = a[o]) && (s = (i ? r(e, t, s) : r(s)) || s);
|
|
244
|
-
return i && s &&
|
|
244
|
+
return i && s && so(e, t, s), s;
|
|
245
245
|
};
|
|
246
246
|
let ve = class extends Ne {
|
|
247
247
|
constructor() {
|
|
@@ -291,7 +291,7 @@ let ve = class extends Ne {
|
|
|
291
291
|
${Ae(
|
|
292
292
|
this.actions,
|
|
293
293
|
(a) => a.name,
|
|
294
|
-
(a) =>
|
|
294
|
+
(a) => js(a.type ?? "button", [
|
|
295
295
|
[
|
|
296
296
|
"button",
|
|
297
297
|
() => this.renderButton(a)
|
|
@@ -305,7 +305,7 @@ let ve = class extends Ne {
|
|
|
305
305
|
</cx-space>`;
|
|
306
306
|
}
|
|
307
307
|
};
|
|
308
|
-
ve.styles = [qe,
|
|
308
|
+
ve.styles = [qe, eo];
|
|
309
309
|
ve.dependencies = {
|
|
310
310
|
"cx-button": _e,
|
|
311
311
|
"cx-icon": ht,
|
|
@@ -329,10 +329,10 @@ ft([
|
|
|
329
329
|
ve = ft([
|
|
330
330
|
Ve("cx-table-row-actions")
|
|
331
331
|
], ve);
|
|
332
|
-
var
|
|
333
|
-
for (var s = i > 1 ? void 0 : i ?
|
|
332
|
+
var ro = Object.defineProperty, no = Object.getOwnPropertyDescriptor, Ye = (a, e, t, i) => {
|
|
333
|
+
for (var s = i > 1 ? void 0 : i ? no(e, t) : e, o = a.length - 1, r; o >= 0; o--)
|
|
334
334
|
(r = a[o]) && (s = (i ? r(e, t, s) : r(s)) || s);
|
|
335
|
-
return i && s &&
|
|
335
|
+
return i && s && ro(e, t, s), s;
|
|
336
336
|
};
|
|
337
337
|
let ce = class extends Ne {
|
|
338
338
|
constructor() {
|
|
@@ -430,10 +430,10 @@ Ye([
|
|
|
430
430
|
ce = Ye([
|
|
431
431
|
Ve("cx-table-dropdown-filter")
|
|
432
432
|
], ce);
|
|
433
|
-
var
|
|
434
|
-
for (var s = i > 1 ? void 0 : i ?
|
|
433
|
+
var ao = Object.defineProperty, lo = Object.getOwnPropertyDescriptor, ne = (a, e, t, i) => {
|
|
434
|
+
for (var s = i > 1 ? void 0 : i ? lo(e, t) : e, o = a.length - 1, r; o >= 0; o--)
|
|
435
435
|
(r = a[o]) && (s = (i ? r(e, t, s) : r(s)) || s);
|
|
436
|
-
return i && s &&
|
|
436
|
+
return i && s && ao(e, t, s), s;
|
|
437
437
|
};
|
|
438
438
|
let X = class extends Ne {
|
|
439
439
|
constructor() {
|
|
@@ -553,7 +553,7 @@ ne([
|
|
|
553
553
|
X = ne([
|
|
554
554
|
Ve("cx-table-saved-search-dropdown")
|
|
555
555
|
], X);
|
|
556
|
-
const
|
|
556
|
+
const ho = H`
|
|
557
557
|
.header-actions {
|
|
558
558
|
padding-top: var(--cx-spacing-medium);
|
|
559
559
|
}
|
|
@@ -592,10 +592,10 @@ const lo = H`
|
|
|
592
592
|
padding: 0 var(--cx-spacing-x-small);
|
|
593
593
|
}
|
|
594
594
|
`;
|
|
595
|
-
var
|
|
596
|
-
for (var s = i > 1 ? void 0 : i ?
|
|
595
|
+
var co = Object.defineProperty, uo = Object.getOwnPropertyDescriptor, A = (a, e, t, i) => {
|
|
596
|
+
for (var s = i > 1 ? void 0 : i ? uo(e, t) : e, o = a.length - 1, r; o >= 0; o--)
|
|
597
597
|
(r = a[o]) && (s = (i ? r(e, t, s) : r(s)) || s);
|
|
598
|
-
return i && s &&
|
|
598
|
+
return i && s && co(e, t, s), s;
|
|
599
599
|
};
|
|
600
600
|
let O = class extends Ne {
|
|
601
601
|
constructor() {
|
|
@@ -763,21 +763,21 @@ let O = class extends Ne {
|
|
|
763
763
|
</div>`;
|
|
764
764
|
}
|
|
765
765
|
};
|
|
766
|
-
O.styles = [qe,
|
|
766
|
+
O.styles = [qe, ho];
|
|
767
767
|
O.dependencies = {
|
|
768
768
|
"cx-button": _e,
|
|
769
769
|
"cx-dropdown": ct,
|
|
770
770
|
"cx-icon": ht,
|
|
771
771
|
"cx-icon-button": ys,
|
|
772
|
-
"cx-input":
|
|
772
|
+
"cx-input": Ks,
|
|
773
773
|
"cx-menu": dt,
|
|
774
774
|
"cx-menu-item": ut,
|
|
775
|
-
"cx-pagination":
|
|
775
|
+
"cx-pagination": Is,
|
|
776
776
|
"cx-space": wi,
|
|
777
777
|
"cx-table-dropdown-filter": ce,
|
|
778
778
|
"cx-table-saved-search-dropdown": X,
|
|
779
779
|
"cx-tooltip": vi,
|
|
780
|
-
"cx-typography":
|
|
780
|
+
"cx-typography": Xs
|
|
781
781
|
};
|
|
782
782
|
A([
|
|
783
783
|
Ie("#search-form")
|
|
@@ -869,7 +869,7 @@ A([
|
|
|
869
869
|
O = A([
|
|
870
870
|
Ve("cx-table-toolbar")
|
|
871
871
|
], O);
|
|
872
|
-
class
|
|
872
|
+
class po {
|
|
873
873
|
constructor(e) {
|
|
874
874
|
this.filters = /* @__PURE__ */ new Map(), this.isConnected = !1, this.host = e, this.host.addController(this);
|
|
875
875
|
}
|
|
@@ -1145,7 +1145,7 @@ class L {
|
|
|
1145
1145
|
}
|
|
1146
1146
|
}
|
|
1147
1147
|
const Ui = process.env.NODE_ENV === "development";
|
|
1148
|
-
let
|
|
1148
|
+
let fo = class Es extends I {
|
|
1149
1149
|
constructor(e, t, i = null) {
|
|
1150
1150
|
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);
|
|
1151
1151
|
}
|
|
@@ -1271,7 +1271,7 @@ let po = class Es extends I {
|
|
|
1271
1271
|
return this.childPopup && this.childPopup.hide(), this.childPopup = new Es(this.table, e, this), this.childPopup;
|
|
1272
1272
|
}
|
|
1273
1273
|
};
|
|
1274
|
-
const
|
|
1274
|
+
const go = process.env.NODE_ENV === "development";
|
|
1275
1275
|
class R extends I {
|
|
1276
1276
|
constructor(e) {
|
|
1277
1277
|
super(e);
|
|
@@ -1292,7 +1292,7 @@ class R extends I {
|
|
|
1292
1292
|
*/
|
|
1293
1293
|
registerTableFunction(e, t) {
|
|
1294
1294
|
const i = this.table;
|
|
1295
|
-
i[e] === void 0 || i[e] === null ? i[e] = (...s) => (this.table.initGuard?.(e), t.apply(this, s)) :
|
|
1295
|
+
i[e] === void 0 || i[e] === null ? i[e] = (...s) => (this.table.initGuard?.(e), t.apply(this, s)) : go && console.warn("Unable to bind table function, name already in use:", e);
|
|
1296
1296
|
}
|
|
1297
1297
|
registerComponentFunction(e, t, i) {
|
|
1298
1298
|
return this.table.componentFunctionBinder.bind(e, t, i);
|
|
@@ -1337,7 +1337,7 @@ class R extends I {
|
|
|
1337
1337
|
* Popups Management
|
|
1338
1338
|
*/
|
|
1339
1339
|
popup(e, t) {
|
|
1340
|
-
return new
|
|
1340
|
+
return new fo(this.table, e, t);
|
|
1341
1341
|
}
|
|
1342
1342
|
/**
|
|
1343
1343
|
* Alert Management
|
|
@@ -1349,7 +1349,7 @@ class R extends I {
|
|
|
1349
1349
|
this.table.alertManager?.clear();
|
|
1350
1350
|
}
|
|
1351
1351
|
}
|
|
1352
|
-
const
|
|
1352
|
+
const mo = x`
|
|
1353
1353
|
<cx-table-row-actions></cx-table-row-actions>
|
|
1354
1354
|
`, Fe = class Fe extends R {
|
|
1355
1355
|
constructor(e) {
|
|
@@ -1396,7 +1396,7 @@ const go = x`
|
|
|
1396
1396
|
i && i.classList.remove("tabulator-hover-menu--active");
|
|
1397
1397
|
}
|
|
1398
1398
|
createHoverMenuElement() {
|
|
1399
|
-
const e = T(
|
|
1399
|
+
const e = T(mo);
|
|
1400
1400
|
return e.classList.add("tabulator-hover-menu"), e;
|
|
1401
1401
|
}
|
|
1402
1402
|
layoutRow(e) {
|
|
@@ -1436,7 +1436,7 @@ const go = x`
|
|
|
1436
1436
|
};
|
|
1437
1437
|
Fe.moduleName = "hoverMenu", Fe.placementDataAttribute = "hoverMenuPlacement";
|
|
1438
1438
|
let xt = Fe;
|
|
1439
|
-
const
|
|
1439
|
+
const bo = H`
|
|
1440
1440
|
.tabulator .tabulator-alert {
|
|
1441
1441
|
position: absolute;
|
|
1442
1442
|
display: flex;
|
|
@@ -1451,8 +1451,9 @@ const mo = H`
|
|
|
1451
1451
|
}
|
|
1452
1452
|
|
|
1453
1453
|
.tabulator .tabulator-alert.tabulator-alert-state-loading {
|
|
1454
|
-
|
|
1455
|
-
|
|
1454
|
+
--loading-offset: var(--cx-spacing-x-small);
|
|
1455
|
+
top: calc(var(--header-height, var(--cx-spacing-3x-large)) + var(--border-width) + var(--loading-offset));
|
|
1456
|
+
height: calc(100% - var(--header-height, var(--cx-spacing-3x-large)) - var(--border-width) - var(--loading-offset));
|
|
1456
1457
|
}
|
|
1457
1458
|
|
|
1458
1459
|
.tabulator.tabulator-header-hidden .tabulator-alert.tabulator-alert-state-loading {
|
|
@@ -1478,7 +1479,7 @@ const mo = H`
|
|
|
1478
1479
|
border: 4px solid var(--cx-color-danger);
|
|
1479
1480
|
color: var(--cx-color-danger-900);
|
|
1480
1481
|
}
|
|
1481
|
-
`,
|
|
1482
|
+
`, wo = H`
|
|
1482
1483
|
:host {
|
|
1483
1484
|
display: block;
|
|
1484
1485
|
--width: 100%;
|
|
@@ -1647,7 +1648,7 @@ const mo = H`
|
|
|
1647
1648
|
color: var(--color);
|
|
1648
1649
|
min-width: 100%;
|
|
1649
1650
|
}
|
|
1650
|
-
`,
|
|
1651
|
+
`, vo = H`
|
|
1651
1652
|
.tabulator .tabulator-header .tabulator-calcs-holder {
|
|
1652
1653
|
box-sizing: border-box;
|
|
1653
1654
|
display: inline-block;
|
|
@@ -1717,7 +1718,7 @@ const mo = H`
|
|
|
1717
1718
|
margin-bottom: -5px;
|
|
1718
1719
|
border-bottom: none;
|
|
1719
1720
|
}
|
|
1720
|
-
`,
|
|
1721
|
+
`, yo = H`
|
|
1721
1722
|
.tabulator-row .tabulator-cell .tabulator-data-tree-branch-empty {
|
|
1722
1723
|
display: inline-block;
|
|
1723
1724
|
width: 22px;
|
|
@@ -1743,7 +1744,7 @@ const mo = H`
|
|
|
1743
1744
|
vertical-align: middle;
|
|
1744
1745
|
width: 18px;
|
|
1745
1746
|
}
|
|
1746
|
-
`,
|
|
1747
|
+
`, Co = H`
|
|
1747
1748
|
.tabulator-row .tabulator-cell.tabulator-editing {
|
|
1748
1749
|
outline: none;
|
|
1749
1750
|
padding: 0 var(--cell-horizontal-padding);
|
|
@@ -1792,20 +1793,38 @@ const mo = H`
|
|
|
1792
1793
|
position: relative;
|
|
1793
1794
|
}
|
|
1794
1795
|
|
|
1795
|
-
.tabulator-edit-list:not(.tabulator-editing)
|
|
1796
|
-
|
|
1796
|
+
.tabulator-edit-list:not(.tabulator-editing) .tabulator-cell-content {
|
|
1797
|
+
padding-right: var(--cx-spacing-large);
|
|
1798
|
+
}
|
|
1799
|
+
|
|
1800
|
+
.tabulator-edit-list-trigger {
|
|
1801
|
+
display: inline-flex;
|
|
1802
|
+
align-items: center;
|
|
1803
|
+
justify-content: center;
|
|
1797
1804
|
position: absolute;
|
|
1798
1805
|
top: 50%;
|
|
1799
1806
|
right: var(--cx-spacing-small);
|
|
1800
1807
|
transform: translateY(-50%);
|
|
1801
|
-
width:
|
|
1802
|
-
height:
|
|
1803
|
-
|
|
1804
|
-
border
|
|
1805
|
-
|
|
1806
|
-
|
|
1808
|
+
width: var(--cx-spacing-large);
|
|
1809
|
+
height: 100%;
|
|
1810
|
+
padding: 0;
|
|
1811
|
+
border: none;
|
|
1812
|
+
appearance: none;
|
|
1813
|
+
background: transparent;
|
|
1814
|
+
color: inherit;
|
|
1815
|
+
cursor: pointer;
|
|
1816
|
+
font: inherit;
|
|
1807
1817
|
}
|
|
1808
|
-
|
|
1818
|
+
|
|
1819
|
+
.tabulator-edit-list.tabulator-editing .tabulator-edit-list-trigger {
|
|
1820
|
+
display: none;
|
|
1821
|
+
}
|
|
1822
|
+
|
|
1823
|
+
.tabulator-edit-list-trigger-caret {
|
|
1824
|
+
--font-size: var(--cx-font-size-medium);
|
|
1825
|
+
color: var(--cx-color-neutral-500);
|
|
1826
|
+
}
|
|
1827
|
+
`, Eo = H`
|
|
1809
1828
|
.tabulator .tabulator-footer {
|
|
1810
1829
|
border-top: 1px solid var(--cx-color-neutral-400);
|
|
1811
1830
|
background-color: var(--cx-color-neutral-200);
|
|
@@ -1831,7 +1850,7 @@ const mo = H`
|
|
|
1831
1850
|
display: none;
|
|
1832
1851
|
}
|
|
1833
1852
|
|
|
1834
|
-
`,
|
|
1853
|
+
`, xo = H`
|
|
1835
1854
|
.tabulator-row .tabulator-cell .tabulator-traffic-light-container {
|
|
1836
1855
|
display: inline-flex;
|
|
1837
1856
|
align-items: center;
|
|
@@ -1844,7 +1863,7 @@ const mo = H`
|
|
|
1844
1863
|
width: 14px;
|
|
1845
1864
|
border-radius: var(--cx-border-radius-x-large);
|
|
1846
1865
|
}
|
|
1847
|
-
`,
|
|
1866
|
+
`, Ro = H`
|
|
1848
1867
|
.tabulator-row.tabulator-group {
|
|
1849
1868
|
box-sizing: border-box;
|
|
1850
1869
|
border-bottom: var(--border-width) solid var(--group-row-border-color);
|
|
@@ -1898,7 +1917,7 @@ const mo = H`
|
|
|
1898
1917
|
margin-left: var(--cx-spacing-small);
|
|
1899
1918
|
color: var(--group-count-color);
|
|
1900
1919
|
}
|
|
1901
|
-
`,
|
|
1920
|
+
`, So = H`
|
|
1902
1921
|
:host {
|
|
1903
1922
|
/**
|
|
1904
1923
|
* Column header highlight when the column is included in the current range selection.
|
|
@@ -2311,7 +2330,7 @@ const mo = H`
|
|
|
2311
2330
|
.tabulator .tabulator-header .tabulator-frozen-rows-holder:empty {
|
|
2312
2331
|
display: none;
|
|
2313
2332
|
}
|
|
2314
|
-
`,
|
|
2333
|
+
`, To = H`
|
|
2315
2334
|
:host {
|
|
2316
2335
|
--hover-menu-background-color: transparent;
|
|
2317
2336
|
}
|
|
@@ -2334,7 +2353,7 @@ const mo = H`
|
|
|
2334
2353
|
opacity: 1;
|
|
2335
2354
|
pointer-events: auto;
|
|
2336
2355
|
}
|
|
2337
|
-
`,
|
|
2356
|
+
`, Mo = H`
|
|
2338
2357
|
.tabulator-row .tabulator-cell.tabulator-row-handle {
|
|
2339
2358
|
display: inline-flex;
|
|
2340
2359
|
align-items: center;
|
|
@@ -2360,7 +2379,7 @@ const mo = H`
|
|
|
2360
2379
|
margin-top: var(--cx-spacing-3x-small);
|
|
2361
2380
|
background: var(--cx-color-neutral-600);
|
|
2362
2381
|
}
|
|
2363
|
-
`,
|
|
2382
|
+
`, ko = H`
|
|
2364
2383
|
.tabulator .tabulator-footer .tabulator-paginator {
|
|
2365
2384
|
flex: 1;
|
|
2366
2385
|
}
|
|
@@ -2381,7 +2400,7 @@ const mo = H`
|
|
|
2381
2400
|
.tabulator-paginator-pagination::part(next-icon) {
|
|
2382
2401
|
--font-size: var(--cx-font-size-medium);
|
|
2383
2402
|
}
|
|
2384
|
-
`,
|
|
2403
|
+
`, Lo = H`
|
|
2385
2404
|
:host {
|
|
2386
2405
|
--placeholder-color: var(--cx-color-neutral-800);
|
|
2387
2406
|
--placeholder-font-weight: var(--cx-font-weight-regular);
|
|
@@ -2473,7 +2492,7 @@ const mo = H`
|
|
|
2473
2492
|
border-bottom: var(--border-width) solid var(--cell-bottom-border-color);
|
|
2474
2493
|
padding: var(--cx-spacing-2x-small) var(--cell-horizontal-padding);
|
|
2475
2494
|
}
|
|
2476
|
-
`,
|
|
2495
|
+
`, Do = H`
|
|
2477
2496
|
.tabulator-toggle {
|
|
2478
2497
|
box-sizing: border-box;
|
|
2479
2498
|
display: flex;
|
|
@@ -2560,7 +2579,7 @@ const mo = H`
|
|
|
2560
2579
|
.tabulator-menu .tabulator-menu-separator {
|
|
2561
2580
|
border-top: var(--border-width) solid var(--cx-color-neutral-400);
|
|
2562
2581
|
}
|
|
2563
|
-
`,
|
|
2582
|
+
`, zo = H`
|
|
2564
2583
|
.tabulator-print-fullscreen {
|
|
2565
2584
|
position: absolute;
|
|
2566
2585
|
top: 0;
|
|
@@ -2647,7 +2666,7 @@ const mo = H`
|
|
|
2647
2666
|
margin-left: var(--cx-spacing-small);
|
|
2648
2667
|
color: var(--cx-color-danger);
|
|
2649
2668
|
}
|
|
2650
|
-
`,
|
|
2669
|
+
`, Fo = H`
|
|
2651
2670
|
.tabulator .tabulator-col-resize-handle {
|
|
2652
2671
|
position: relative;
|
|
2653
2672
|
display: inline-block;
|
|
@@ -2688,7 +2707,7 @@ const mo = H`
|
|
|
2688
2707
|
background-color: var(--cx-color-neutral-400);
|
|
2689
2708
|
opacity: 0.5;
|
|
2690
2709
|
}
|
|
2691
|
-
`,
|
|
2710
|
+
`, Oo = H`
|
|
2692
2711
|
.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle {
|
|
2693
2712
|
display: inline-flex;
|
|
2694
2713
|
align-items: center;
|
|
@@ -2737,7 +2756,7 @@ const mo = H`
|
|
|
2737
2756
|
.tabulator-responsive-collapse-toggle-close {
|
|
2738
2757
|
display: none;
|
|
2739
2758
|
}
|
|
2740
|
-
`,
|
|
2759
|
+
`, Ho = H`
|
|
2741
2760
|
.tabulator-row {
|
|
2742
2761
|
display: flex;
|
|
2743
2762
|
position: relative;
|
|
@@ -2892,7 +2911,7 @@ const mo = H`
|
|
|
2892
2911
|
}
|
|
2893
2912
|
|
|
2894
2913
|
|
|
2895
|
-
`,
|
|
2914
|
+
`, Po = H`
|
|
2896
2915
|
.tabulator.tabulator-ltr {
|
|
2897
2916
|
direction: ltr;
|
|
2898
2917
|
}
|
|
@@ -2973,7 +2992,7 @@ const mo = H`
|
|
|
2973
2992
|
.tabulator.tabulator-rtl .tabulator-footer .tabulator-calcs-holder {
|
|
2974
2993
|
text-align: initial;
|
|
2975
2994
|
}
|
|
2976
|
-
`,
|
|
2995
|
+
`, Ao = H`
|
|
2977
2996
|
:host {
|
|
2978
2997
|
/**
|
|
2979
2998
|
* Range overlay: active/hover cell border and single-cell fill when only one cell is selected.
|
|
@@ -3093,7 +3112,7 @@ const mo = H`
|
|
|
3093
3112
|
):hover {
|
|
3094
3113
|
background-color: var(--table-editable-cell-hover-background-color);
|
|
3095
3114
|
}
|
|
3096
|
-
`,
|
|
3115
|
+
`, _o = H`
|
|
3097
3116
|
.tabulator .tabulator-footer .tabulator-spreadsheet-tabs {
|
|
3098
3117
|
margin-top: -5px;
|
|
3099
3118
|
overflow-x: auto;
|
|
@@ -3126,29 +3145,29 @@ const mo = H`
|
|
|
3126
3145
|
.tabulator-spreadsheet-tab.tabulator-spreadsheet-tab-active {
|
|
3127
3146
|
background: var(--cx-color-neutral-0);
|
|
3128
3147
|
}
|
|
3129
|
-
`,
|
|
3130
|
-
bo,
|
|
3131
|
-
Ro,
|
|
3132
|
-
ko,
|
|
3148
|
+
`, No = [
|
|
3133
3149
|
wo,
|
|
3134
|
-
|
|
3135
|
-
|
|
3150
|
+
So,
|
|
3151
|
+
Lo,
|
|
3152
|
+
vo,
|
|
3136
3153
|
Ao,
|
|
3154
|
+
Eo,
|
|
3155
|
+
_o,
|
|
3156
|
+
ko,
|
|
3157
|
+
Fo,
|
|
3158
|
+
bo,
|
|
3159
|
+
Ho,
|
|
3160
|
+
Co,
|
|
3137
3161
|
Mo,
|
|
3138
|
-
zo,
|
|
3139
|
-
mo,
|
|
3140
|
-
Oo,
|
|
3141
3162
|
yo,
|
|
3142
|
-
|
|
3143
|
-
vo,
|
|
3144
|
-
Fo,
|
|
3145
|
-
Eo,
|
|
3163
|
+
Oo,
|
|
3146
3164
|
xo,
|
|
3147
|
-
|
|
3148
|
-
Ho,
|
|
3165
|
+
Ro,
|
|
3149
3166
|
Do,
|
|
3150
|
-
|
|
3151
|
-
|
|
3167
|
+
Po,
|
|
3168
|
+
zo,
|
|
3169
|
+
To
|
|
3170
|
+
], Vo = {
|
|
3152
3171
|
formatter: function() {
|
|
3153
3172
|
const a = document.createElement("div");
|
|
3154
3173
|
a.style.display = "flex", a.style.alignItems = "center", a.style.justifyContent = "center", a.style.width = "100%", a.style.height = "100%", a.style.userSelect = "none", a.dataset.testid = "movable-row-button";
|
|
@@ -3161,7 +3180,7 @@ const mo = H`
|
|
|
3161
3180
|
rowHandle: !0,
|
|
3162
3181
|
title: "",
|
|
3163
3182
|
width: 40
|
|
3164
|
-
},
|
|
3183
|
+
}, Io = {
|
|
3165
3184
|
fromAttribute: (a) => {
|
|
3166
3185
|
if (typeof a == "string") {
|
|
3167
3186
|
if (!a.trim())
|
|
@@ -3178,7 +3197,7 @@ const mo = H`
|
|
|
3178
3197
|
return a;
|
|
3179
3198
|
},
|
|
3180
3199
|
toAttribute: (a) => typeof a == "function" ? "" : Array.isArray(a) ? JSON.stringify(a) : typeof a == "number" ? a.toString() : a
|
|
3181
|
-
},
|
|
3200
|
+
}, Bo = {
|
|
3182
3201
|
fromAttribute: (a) => {
|
|
3183
3202
|
if (typeof a == "string") {
|
|
3184
3203
|
if (!a.trim())
|
|
@@ -3194,7 +3213,7 @@ const mo = H`
|
|
|
3194
3213
|
return a;
|
|
3195
3214
|
},
|
|
3196
3215
|
toAttribute: (a) => typeof a == "function" ? "" : Array.isArray(a) ? JSON.stringify(a) : typeof a == "boolean" ? a.toString() : a
|
|
3197
|
-
},
|
|
3216
|
+
}, Wo = {
|
|
3198
3217
|
fromAttribute: (a) => {
|
|
3199
3218
|
if (typeof a == "string") {
|
|
3200
3219
|
if (!a.trim())
|
|
@@ -3216,12 +3235,12 @@ const mo = H`
|
|
|
3216
3235
|
};
|
|
3217
3236
|
Si.moduleName = "accessibility";
|
|
3218
3237
|
let Rt = Si;
|
|
3219
|
-
const
|
|
3238
|
+
const Go = {
|
|
3220
3239
|
rownum: function(a, e, t, i, s, o) {
|
|
3221
3240
|
const r = o?.getPosition();
|
|
3222
3241
|
return typeof r == "number" ? r : 0;
|
|
3223
3242
|
}
|
|
3224
|
-
},
|
|
3243
|
+
}, jo = process.env.NODE_ENV === "development", Oe = class Oe extends R {
|
|
3225
3244
|
// list of accessor types
|
|
3226
3245
|
constructor(e) {
|
|
3227
3246
|
super(e), this.allowedTypes = [
|
|
@@ -3259,7 +3278,7 @@ const Wo = {
|
|
|
3259
3278
|
let t = !1;
|
|
3260
3279
|
switch (typeof e) {
|
|
3261
3280
|
case "string":
|
|
3262
|
-
Oe.accessors[e] ? t = Oe.accessors[e] :
|
|
3281
|
+
Oe.accessors[e] ? t = Oe.accessors[e] : jo && console.warn(
|
|
3263
3282
|
"Accessor Error - No such accessor found, ignoring: ",
|
|
3264
3283
|
e
|
|
3265
3284
|
);
|
|
@@ -3296,9 +3315,9 @@ const Wo = {
|
|
|
3296
3315
|
}), o;
|
|
3297
3316
|
}
|
|
3298
3317
|
};
|
|
3299
|
-
Oe.moduleName = "accessor", Oe.accessors =
|
|
3318
|
+
Oe.moduleName = "accessor", Oe.accessors = Go;
|
|
3300
3319
|
let St = Oe;
|
|
3301
|
-
const
|
|
3320
|
+
const $o = {
|
|
3302
3321
|
method: "GET"
|
|
3303
3322
|
};
|
|
3304
3323
|
function xs(a) {
|
|
@@ -3329,7 +3348,7 @@ function Tt(a, e = "") {
|
|
|
3329
3348
|
t.push({ key: e, value: a });
|
|
3330
3349
|
return t;
|
|
3331
3350
|
}
|
|
3332
|
-
const
|
|
3351
|
+
const Uo = {
|
|
3333
3352
|
form: {
|
|
3334
3353
|
body: function(a, e, t) {
|
|
3335
3354
|
const i = Tt(t), s = new FormData();
|
|
@@ -3374,7 +3393,7 @@ function Mt(a, e = "") {
|
|
|
3374
3393
|
t.push({ key: e, value: a });
|
|
3375
3394
|
return t;
|
|
3376
3395
|
}
|
|
3377
|
-
function
|
|
3396
|
+
function Ko(a) {
|
|
3378
3397
|
const e = Mt(a), t = [];
|
|
3379
3398
|
return e.forEach((i) => {
|
|
3380
3399
|
t.push(
|
|
@@ -3385,13 +3404,13 @@ function Uo(a) {
|
|
|
3385
3404
|
const Rs = function(a, e, t) {
|
|
3386
3405
|
if (a && t && Object.keys(t).length && (!e.method || e.method.toLowerCase() === "get")) {
|
|
3387
3406
|
e.method = "get";
|
|
3388
|
-
const [i, s] = a.split("#", 2), o =
|
|
3407
|
+
const [i, s] = a.split("#", 2), o = Ko(t);
|
|
3389
3408
|
a = i + (i.includes("?") ? "&" : "?") + o + (s ? "#" + s : "");
|
|
3390
3409
|
}
|
|
3391
3410
|
return a;
|
|
3392
3411
|
}, Be = process.env.NODE_ENV === "development", Z = class Z extends R {
|
|
3393
3412
|
constructor(e) {
|
|
3394
|
-
super(e), this.fetchApi = fetch, this.config = {}, this.url = "", this.urlGenerator = !1, this.params = !1, this.loaderPromise = !1, this.registerTableOption("ajaxURL", !1), this.registerTableOption("ajaxURLGenerator", !1), this.registerTableOption("ajaxParams", {}), this.registerTableOption("ajaxConfig", "get"), this.registerTableOption("ajaxContentType", "form"), this.registerTableOption("ajaxRequestFunc", !1), this.registerTableOption("ajaxRequesting", () => {
|
|
3413
|
+
super(e), this.fetchApi = typeof globalThis.fetch == "function" ? globalThis.fetch.bind(globalThis) : void 0, this.config = {}, this.url = "", this.urlGenerator = !1, this.params = !1, this.loaderPromise = !1, this.registerTableOption("ajaxURL", !1), this.registerTableOption("ajaxURLGenerator", !1), this.registerTableOption("ajaxParams", {}), this.registerTableOption("ajaxConfig", "get"), this.registerTableOption("ajaxContentType", "form"), this.registerTableOption("ajaxRequestFunc", !1), this.registerTableOption("ajaxRequesting", () => {
|
|
3395
3414
|
}), this.registerTableOption("ajaxResponse", !1), this.contentTypeFormatters = Z.contentTypeFormatters;
|
|
3396
3415
|
}
|
|
3397
3416
|
// initialize setup options
|
|
@@ -3446,7 +3465,7 @@ const Rs = function(a, e, t) {
|
|
|
3446
3465
|
)), s)) : Promise.reject();
|
|
3447
3466
|
}
|
|
3448
3467
|
};
|
|
3449
|
-
Z.moduleName = "ajax", Z.defaultConfig =
|
|
3468
|
+
Z.moduleName = "ajax", Z.defaultConfig = $o, Z.defaultURLGenerator = Rs, Z.contentTypeFormatters = Uo, Z.defaultLoaderPromise = function(e, t, i) {
|
|
3450
3469
|
let s;
|
|
3451
3470
|
return new Promise((o, r) => {
|
|
3452
3471
|
if (!this.urlGenerator) {
|
|
@@ -3463,21 +3482,28 @@ Z.moduleName = "ajax", Z.defaultConfig = jo, Z.defaultURLGenerator = Rs, Z.conte
|
|
|
3463
3482
|
"Ajax Error - Invalid ajaxContentType value:",
|
|
3464
3483
|
this.table.options.ajaxContentType
|
|
3465
3484
|
);
|
|
3466
|
-
|
|
3467
|
-
|
|
3468
|
-
|
|
3469
|
-
|
|
3470
|
-
|
|
3471
|
-
|
|
3472
|
-
|
|
3473
|
-
|
|
3474
|
-
|
|
3475
|
-
|
|
3476
|
-
|
|
3477
|
-
|
|
3478
|
-
|
|
3479
|
-
|
|
3480
|
-
|
|
3485
|
+
if (e) {
|
|
3486
|
+
if (typeof t.headers > "u" && (t.headers = {}), typeof t.headers.Accept > "u" && (t.headers.Accept = "application/json"), typeof t.headers["X-Requested-With"] > "u" && (t.headers["X-Requested-With"] = "XMLHttpRequest"), typeof t.mode > "u" && (t.mode = "cors"), t.mode == "cors" ? typeof t.credentials > "u" && (t.credentials = "same-origin") : typeof t.credentials > "u" && (t.credentials = "include"), !this.fetchApi) {
|
|
3487
|
+
r(new Error("fetch is not available"));
|
|
3488
|
+
return;
|
|
3489
|
+
}
|
|
3490
|
+
this.fetchApi(e, t).then((n) => {
|
|
3491
|
+
n.ok ? n.json().then((l) => {
|
|
3492
|
+
o(l);
|
|
3493
|
+
}).catch((l) => {
|
|
3494
|
+
r(l), Be && console.warn(
|
|
3495
|
+
"Ajax Load Error - Invalid JSON returned",
|
|
3496
|
+
l
|
|
3497
|
+
);
|
|
3498
|
+
}) : (Be && console.error(
|
|
3499
|
+
"Ajax Load Error - Connection Error: " + n.status,
|
|
3500
|
+
n.statusText
|
|
3501
|
+
), r(n));
|
|
3502
|
+
}).catch((n) => {
|
|
3503
|
+
Be && console.error("Ajax Load Error - Connection Error: ", n), r(n);
|
|
3504
|
+
});
|
|
3505
|
+
} else
|
|
3506
|
+
Be && console.warn("Ajax Load Error - No URL Set"), o([]);
|
|
3481
3507
|
});
|
|
3482
3508
|
};
|
|
3483
3509
|
let kt = Z;
|
|
@@ -3494,10 +3520,10 @@ function yi(a) {
|
|
|
3494
3520
|
function Ss(a) {
|
|
3495
3521
|
return JSON.stringify(a);
|
|
3496
3522
|
}
|
|
3497
|
-
function
|
|
3523
|
+
function Xo(a, e) {
|
|
3498
3524
|
return a?.[e];
|
|
3499
3525
|
}
|
|
3500
|
-
function
|
|
3526
|
+
function Jo(a) {
|
|
3501
3527
|
const e = yi(a);
|
|
3502
3528
|
return {
|
|
3503
3529
|
path: e,
|
|
@@ -3571,7 +3597,7 @@ class Ts {
|
|
|
3571
3597
|
return this._group.groupManager.table;
|
|
3572
3598
|
}
|
|
3573
3599
|
}
|
|
3574
|
-
const
|
|
3600
|
+
const qo = process.env.NODE_ENV === "development";
|
|
3575
3601
|
class Lt {
|
|
3576
3602
|
constructor(e) {
|
|
3577
3603
|
return this._column = e, this.type = "ColumnComponent", new Proxy(this, {
|
|
@@ -3651,7 +3677,7 @@ class Lt {
|
|
|
3651
3677
|
this._column,
|
|
3652
3678
|
i,
|
|
3653
3679
|
t
|
|
3654
|
-
) :
|
|
3680
|
+
) : qo && console.warn(`Move Error - No matching column found: ${e}`);
|
|
3655
3681
|
}
|
|
3656
3682
|
getNextColumn() {
|
|
3657
3683
|
const e = this._column.nextColumn();
|
|
@@ -3672,7 +3698,7 @@ class Lt {
|
|
|
3672
3698
|
return e === !0 ? t = await this._column.reinitializeWidth(!0) : t = this._column.setWidth(e), this._column.table.columnManager?.rerenderColumns(!0), t;
|
|
3673
3699
|
}
|
|
3674
3700
|
}
|
|
3675
|
-
const
|
|
3701
|
+
const Yo = process.env.NODE_ENV === "development";
|
|
3676
3702
|
class gt extends I {
|
|
3677
3703
|
// 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)
|
|
3678
3704
|
constructor(e) {
|
|
@@ -3774,11 +3800,11 @@ class gt extends I {
|
|
|
3774
3800
|
}
|
|
3775
3801
|
s();
|
|
3776
3802
|
} else
|
|
3777
|
-
|
|
3803
|
+
Yo && console.warn("Scroll Error - Row not visible"), o("Scroll Error - Row not visible");
|
|
3778
3804
|
});
|
|
3779
3805
|
}
|
|
3780
3806
|
}
|
|
3781
|
-
const
|
|
3807
|
+
const Qo = {
|
|
3782
3808
|
insert: function(a) {
|
|
3783
3809
|
return this.table.addData(a);
|
|
3784
3810
|
},
|
|
@@ -3788,7 +3814,7 @@ const Yo = {
|
|
|
3788
3814
|
update: function(a) {
|
|
3789
3815
|
return this.table.updateOrAddData(a);
|
|
3790
3816
|
}
|
|
3791
|
-
},
|
|
3817
|
+
}, Zo = {
|
|
3792
3818
|
table: function(a) {
|
|
3793
3819
|
const e = [];
|
|
3794
3820
|
let t = !0;
|
|
@@ -3810,16 +3836,16 @@ const Yo = {
|
|
|
3810
3836
|
}), o.push(l);
|
|
3811
3837
|
}), o) : !1;
|
|
3812
3838
|
}
|
|
3813
|
-
},
|
|
3839
|
+
}, er = {
|
|
3814
3840
|
copyToClipboard: function(a) {
|
|
3815
3841
|
this.table.modules.edit?.currentCell || this.table.modExists("clipboard", !0) && (a.preventDefault(), this.table.modules.clipboard?.copy(void 0, !0));
|
|
3816
3842
|
}
|
|
3817
|
-
}, er = {
|
|
3818
|
-
copyToClipboard: ["ctrl + 67", "meta + 67"]
|
|
3819
3843
|
}, tr = {
|
|
3844
|
+
copyToClipboard: ["ctrl + 67", "meta + 67"]
|
|
3845
|
+
}, ir = {
|
|
3820
3846
|
keybindings: {
|
|
3821
|
-
actions:
|
|
3822
|
-
bindings:
|
|
3847
|
+
actions: er,
|
|
3848
|
+
bindings: tr
|
|
3823
3849
|
}
|
|
3824
3850
|
}, Ki = process.env.NODE_ENV === "development";
|
|
3825
3851
|
function Xi(a) {
|
|
@@ -3838,7 +3864,7 @@ const ue = class ue extends R {
|
|
|
3838
3864
|
"clipboard"
|
|
3839
3865
|
), 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 ?? "")));
|
|
3840
3866
|
const o = Xi(e);
|
|
3841
|
-
o?.setData && (o.setData("text/plain", t), i && o.setData("text/html", i),
|
|
3867
|
+
o?.setData && (o.setData("text/plain", t), i && o.setData("text/html", i), Ys("Copied to clipboard", {
|
|
3842
3868
|
notificationType: "success"
|
|
3843
3869
|
})), this.dispatchExternal("clipboardCopied", t, i), this.reset();
|
|
3844
3870
|
}
|
|
@@ -3937,7 +3963,7 @@ const ue = class ue extends R {
|
|
|
3937
3963
|
return i?.getData && (t = i.getData("text/plain")), t;
|
|
3938
3964
|
}
|
|
3939
3965
|
};
|
|
3940
|
-
ue.moduleName = "clipboard", ue.moduleExtensions =
|
|
3966
|
+
ue.moduleName = "clipboard", ue.moduleExtensions = ir, ue.pasteActions = Qo, ue.pasteParsers = Zo;
|
|
3941
3967
|
let Dt = ue;
|
|
3942
3968
|
class Ci {
|
|
3943
3969
|
constructor(e) {
|
|
@@ -4003,7 +4029,7 @@ class Ci {
|
|
|
4003
4029
|
return this._cell;
|
|
4004
4030
|
}
|
|
4005
4031
|
}
|
|
4006
|
-
const
|
|
4032
|
+
const sr = x`<div class="tabulator-cell"></div>`, or = process.env.NODE_ENV === "development";
|
|
4007
4033
|
class Qe extends I {
|
|
4008
4034
|
constructor(e, t) {
|
|
4009
4035
|
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();
|
|
@@ -4016,7 +4042,7 @@ class Qe extends I {
|
|
|
4016
4042
|
this.generateElement(), this.setWidth(), this._configureCell(), this.setValueActual(this.column.getFieldValue(this.row.data)), this.initialValue = this.value;
|
|
4017
4043
|
}
|
|
4018
4044
|
generateElement() {
|
|
4019
|
-
if (this.element = T(
|
|
4045
|
+
if (this.element = T(sr), this.element.setAttribute(
|
|
4020
4046
|
"role",
|
|
4021
4047
|
this.table.options.cellRole ?? "gridcell"
|
|
4022
4048
|
), this.column.modules.format?.cellClass) {
|
|
@@ -4069,7 +4095,7 @@ class Qe extends I {
|
|
|
4069
4095
|
this.contentElement.firstChild.remove();
|
|
4070
4096
|
this.contentElement.appendChild(e);
|
|
4071
4097
|
} else
|
|
4072
|
-
this.contentElement.innerHTML = "", e != null &&
|
|
4098
|
+
this.contentElement.innerHTML = "", e != null && or && console.warn(
|
|
4073
4099
|
"Format Error - Formatter has returned a type of object, the only valid formatter object return is an instance of Node, the formatter returned:",
|
|
4074
4100
|
e
|
|
4075
4101
|
);
|
|
@@ -4961,7 +4987,7 @@ class V extends I {
|
|
|
4961
4987
|
return this.component || (this.component = new Ei(this)), this.component;
|
|
4962
4988
|
}
|
|
4963
4989
|
}
|
|
4964
|
-
class
|
|
4990
|
+
class rr {
|
|
4965
4991
|
constructor(e) {
|
|
4966
4992
|
return this._row = e, new Proxy(this, {
|
|
4967
4993
|
get: (t, i) => typeof i != "string" || typeof t[i] < "u" ? t[i] : t._row.table.componentFunctionBinder.handle(
|
|
@@ -4994,7 +5020,7 @@ class or {
|
|
|
4994
5020
|
return this._row;
|
|
4995
5021
|
}
|
|
4996
5022
|
}
|
|
4997
|
-
const
|
|
5023
|
+
const nr = {
|
|
4998
5024
|
avg: function(a, e, t) {
|
|
4999
5025
|
let i = 0;
|
|
5000
5026
|
const s = typeof t == "object" && "precision" in t ? t.precision : 2;
|
|
@@ -5214,7 +5240,7 @@ const rr = {
|
|
|
5214
5240
|
const i = this.generateRowData(e, t);
|
|
5215
5241
|
this.table.modExists("mutator") && this.table.modules.mutator?.disable();
|
|
5216
5242
|
const s = new V(i, this, "calc");
|
|
5217
|
-
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
|
|
5243
|
+
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 rr(s)), s.component), s.generateCells = () => {
|
|
5218
5244
|
const o = [];
|
|
5219
5245
|
this.table.columnManager?.columnsByIndex.forEach((r) => {
|
|
5220
5246
|
if (this.genColumn) {
|
|
@@ -5286,7 +5312,7 @@ const rr = {
|
|
|
5286
5312
|
this.botRow && (this.table.rtl ? this.botElement.style.paddingLeft = e + "px" : this.botElement.style.paddingRight = e + "px");
|
|
5287
5313
|
}
|
|
5288
5314
|
};
|
|
5289
|
-
pe.moduleName = "columnCalcs", pe.calculations =
|
|
5315
|
+
pe.moduleName = "columnCalcs", pe.calculations = nr;
|
|
5290
5316
|
let zt = pe;
|
|
5291
5317
|
class Ft extends V {
|
|
5292
5318
|
constructor(e = {}, t) {
|
|
@@ -5335,22 +5361,22 @@ class Ft extends V {
|
|
|
5335
5361
|
this.element?.parentNode && this.element.parentNode.removeChild(this.element);
|
|
5336
5362
|
}
|
|
5337
5363
|
}
|
|
5338
|
-
const
|
|
5364
|
+
const ar = x`<span
|
|
5339
5365
|
class="tabulator-data-tree-control"
|
|
5340
5366
|
tabindex="0"
|
|
5341
5367
|
>
|
|
5342
5368
|
<cx-icon-button name="keyboard_arrow_down"></cx-icon-button>
|
|
5343
|
-
</span>`,
|
|
5369
|
+
</span>`, lr = x`<span
|
|
5344
5370
|
class="tabulator-data-tree-control"
|
|
5345
5371
|
tabindex="0"
|
|
5346
5372
|
>
|
|
5347
5373
|
<cx-icon-button name="keyboard_arrow_right"></cx-icon-button>
|
|
5348
|
-
</span>`,
|
|
5374
|
+
</span>`, hr = x`<span class="tabulator-data-tree-control tabulator-data-tree-control-placeholder" aria-hidden="true"></span>`, cr = x`<div class="tabulator-data-tree-branch"></div>`, dr = x`<div class="tabulator-data-tree-branch-empty"></div>`, ur = x`
|
|
5349
5375
|
<cx-button size="small">
|
|
5350
5376
|
<cx-icon slot="prefix" name="add" variant="outlined" ></cx-icon>
|
|
5351
5377
|
Load More
|
|
5352
5378
|
</cx-button>
|
|
5353
|
-
`,
|
|
5379
|
+
`, pr = x`<div class="tabulator-data-tree-loading">Loading...</div>`, fr = process.env.NODE_ENV === "development", bt = 18, Ti = class Ti extends R {
|
|
5354
5380
|
constructor(e) {
|
|
5355
5381
|
super(e), this.indent = 10, this.field = "", this.collapseEl = null, this.expandEl = null, this.branchEl = null, this.elementField = !1, this.startOpen = function() {
|
|
5356
5382
|
return !1;
|
|
@@ -5388,9 +5414,9 @@ const nr = x`<span
|
|
|
5388
5414
|
if (this.table.options.dataTree) {
|
|
5389
5415
|
let e = null;
|
|
5390
5416
|
const t = this.table.options;
|
|
5391
|
-
switch (this.field = t.dataTreeChildField || "_children", this.indent = t.dataTreeChildIndent || 9, this.loadingField = t.dataTreeLoadingField || "loading", this.hasMoreField = t.dataTreeHasMoreField || "hasMore", this.options("movableRows") &&
|
|
5417
|
+
switch (this.field = t.dataTreeChildField || "_children", this.indent = t.dataTreeChildIndent || 9, this.loadingField = t.dataTreeLoadingField || "loading", this.hasMoreField = t.dataTreeHasMoreField || "hasMore", this.options("movableRows") && fr && console.warn(
|
|
5392
5418
|
"The movableRows option is not available with dataTree enabled, moving of child rows could result in unpredictable behavior"
|
|
5393
|
-
), t.dataTreeBranchElement ? t.dataTreeBranchElement === !0 ? this.branchEl = T(
|
|
5419
|
+
), t.dataTreeBranchElement ? t.dataTreeBranchElement === !0 ? this.branchEl = T(cr) : typeof t.dataTreeBranchElement == "string" ? (e = document.createElement("div"), e.innerHTML = S(t.dataTreeBranchElement), this.branchEl = e.firstChild) : this.branchEl = t.dataTreeBranchElement : this.branchEl = T(dr), t.dataTreeCollapseElement ? typeof t.dataTreeCollapseElement == "string" ? (e = document.createElement("div"), e.innerHTML = S(t.dataTreeCollapseElement), this.collapseEl = e.firstChild) : this.collapseEl = t.dataTreeCollapseElement : this.collapseEl = T(ar), t.dataTreeExpandElement ? typeof t.dataTreeExpandElement == "string" ? (e = document.createElement("div"), e.innerHTML = S(t.dataTreeExpandElement), this.expandEl = e.firstChild) : this.expandEl = t.dataTreeExpandElement : this.expandEl = T(lr), typeof t.dataTreeStartExpanded) {
|
|
5394
5420
|
case "boolean":
|
|
5395
5421
|
this.startOpen = function() {
|
|
5396
5422
|
return t.dataTreeStartExpanded;
|
|
@@ -5497,7 +5523,7 @@ const nr = x`<span
|
|
|
5497
5523
|
n.stopPropagation();
|
|
5498
5524
|
});
|
|
5499
5525
|
} else
|
|
5500
|
-
o = T(
|
|
5526
|
+
o = T(hr);
|
|
5501
5527
|
const r = this.indent;
|
|
5502
5528
|
this.table.rtl ? (o.style.marginLeft = r + "px", o.style.marginRight = "0px") : (o.style.marginRight = r + "px", o.style.marginLeft = "0px"), e.modules.dataTree.controlEl = o, s && s.parentNode === t ? s.parentNode.replaceChild(o, s) : t.insertBefore(o, t.firstChild);
|
|
5503
5529
|
}
|
|
@@ -5559,7 +5585,7 @@ const nr = x`<span
|
|
|
5559
5585
|
this.table.rowManager
|
|
5560
5586
|
);
|
|
5561
5587
|
i.create(), i.modules.dataTree.index = e, i.modules.dataTree.parent = t, i.modules.dataTree.children = !1, i.modules.dataTree.open = !0;
|
|
5562
|
-
const s = T(
|
|
5588
|
+
const s = T(ur);
|
|
5563
5589
|
i.getElement()?.classList.add("tabulator-tree-level-" + e), i.element.appendChild(s);
|
|
5564
5590
|
const o = (e + 1) * (bt + this.indent);
|
|
5565
5591
|
return this.table.rtl ? s.style.marginRight = o + "px" : s.style.marginLeft = o + "px", s.addEventListener("click", () => {
|
|
@@ -5581,7 +5607,7 @@ const nr = x`<span
|
|
|
5581
5607
|
this.table.rowManager
|
|
5582
5608
|
);
|
|
5583
5609
|
i.create(), i.modules.dataTree.index = e, i.modules.dataTree.parent = t, i.modules.dataTree.children = !1, i.modules.dataTree.open = !0;
|
|
5584
|
-
const s = T(
|
|
5610
|
+
const s = T(pr);
|
|
5585
5611
|
i.element.appendChild(s), i.getElement()?.classList.add("tabulator-tree-level-" + e);
|
|
5586
5612
|
const o = (e + 1) * (bt + this.indent);
|
|
5587
5613
|
return this.table.rtl ? s.style.marginRight = o + "px" : s.style.marginLeft = o + "px", i;
|
|
@@ -5729,7 +5755,7 @@ const nr = x`<span
|
|
|
5729
5755
|
};
|
|
5730
5756
|
Ti.moduleName = "dataTree";
|
|
5731
5757
|
let Ot = Ti;
|
|
5732
|
-
const Yi = process.env.NODE_ENV === "development",
|
|
5758
|
+
const Yi = process.env.NODE_ENV === "development", gr = function(a, e = {}, t) {
|
|
5733
5759
|
const i = e.delimiter ? e.delimiter : ",", s = [], o = [];
|
|
5734
5760
|
a.forEach((n) => {
|
|
5735
5761
|
const l = [];
|
|
@@ -5770,11 +5796,11 @@ const Yi = process.env.NODE_ENV === "development", fr = function(a, e = {}, t) {
|
|
|
5770
5796
|
let r = s.join(`
|
|
5771
5797
|
`);
|
|
5772
5798
|
e.bom && (r = "\uFEFF" + r), t(r, "text/csv");
|
|
5773
|
-
},
|
|
5799
|
+
}, mr = function(a, e, t) {
|
|
5774
5800
|
const i = this;
|
|
5775
5801
|
let s = "";
|
|
5776
5802
|
i.modExists("export", !0) && (s = i.modules.export?.generateHTMLTable(a) || ""), t(s, "text/html");
|
|
5777
|
-
}, Qi = process.env.NODE_ENV === "development",
|
|
5803
|
+
}, Qi = process.env.NODE_ENV === "development", br = function(a, e, t) {
|
|
5778
5804
|
const i = [];
|
|
5779
5805
|
a.forEach((o) => {
|
|
5780
5806
|
const r = {};
|
|
@@ -5800,7 +5826,7 @@ const Yi = process.env.NODE_ENV === "development", fr = function(a, e = {}, t) {
|
|
|
5800
5826
|
});
|
|
5801
5827
|
const s = JSON.stringify(i, null, " ");
|
|
5802
5828
|
t(s, "application/json");
|
|
5803
|
-
}, Zi = process.env.NODE_ENV === "development",
|
|
5829
|
+
}, Zi = process.env.NODE_ENV === "development", wr = function(a, e, t) {
|
|
5804
5830
|
const i = [];
|
|
5805
5831
|
a.forEach((s) => {
|
|
5806
5832
|
const o = {};
|
|
@@ -5825,7 +5851,7 @@ const Yi = process.env.NODE_ENV === "development", fr = function(a, e = {}, t) {
|
|
|
5825
5851
|
}
|
|
5826
5852
|
}), t(i.join(`
|
|
5827
5853
|
`), "application/x-ndjson");
|
|
5828
|
-
},
|
|
5854
|
+
}, vr = process.env.NODE_ENV === "development", yr = function(a, e = {}, t) {
|
|
5829
5855
|
const i = this, s = [], o = [];
|
|
5830
5856
|
let r = {};
|
|
5831
5857
|
const n = e.rowGroupStyles || {
|
|
@@ -5880,7 +5906,7 @@ const Yi = process.env.NODE_ENV === "development", fr = function(a, e = {}, t) {
|
|
|
5880
5906
|
});
|
|
5881
5907
|
const p = i.dependencyRegistry.lookup("jspdf", "jsPDF");
|
|
5882
5908
|
if (!p) {
|
|
5883
|
-
|
|
5909
|
+
vr && console.error(
|
|
5884
5910
|
"Download Error - 'pdf' downloader requires jspdf library to be registered"
|
|
5885
5911
|
);
|
|
5886
5912
|
return;
|
|
@@ -5889,10 +5915,10 @@ const Yi = process.env.NODE_ENV === "development", fr = function(a, e = {}, t) {
|
|
|
5889
5915
|
e.autoTable && (typeof e.autoTable == "function" ? r = e.autoTable(u) || {} : r = e.autoTable), c && (r.didDrawPage = function(f) {
|
|
5890
5916
|
u.text(c, 40, 30);
|
|
5891
5917
|
}), r.head = s, r.body = o, u.autoTable(r), e.documentProcessing && e.documentProcessing(u), t(u.output("arraybuffer"), "application/pdf");
|
|
5892
|
-
},
|
|
5918
|
+
}, Cr = process.env.NODE_ENV === "development", Er = function(a, e, t) {
|
|
5893
5919
|
const i = this, s = e.sheetName || "Sheet1", o = i.dependencyRegistry.lookup("XLSX");
|
|
5894
5920
|
if (!o?.utils?.book_new) {
|
|
5895
|
-
|
|
5921
|
+
Cr && console.error(
|
|
5896
5922
|
"Download Error - 'xlsx' downloader requires XLSX library to be registered"
|
|
5897
5923
|
);
|
|
5898
5924
|
return;
|
|
@@ -5953,14 +5979,14 @@ const Yi = process.env.NODE_ENV === "development", fr = function(a, e = {}, t) {
|
|
|
5953
5979
|
}
|
|
5954
5980
|
const u = o.write(r, h);
|
|
5955
5981
|
t(p(u), "application/octet-stream");
|
|
5956
|
-
},
|
|
5957
|
-
csv:
|
|
5958
|
-
html:
|
|
5959
|
-
json:
|
|
5960
|
-
jsonLines:
|
|
5961
|
-
pdf:
|
|
5962
|
-
xlsx:
|
|
5963
|
-
},
|
|
5982
|
+
}, xr = {
|
|
5983
|
+
csv: gr,
|
|
5984
|
+
html: mr,
|
|
5985
|
+
json: br,
|
|
5986
|
+
jsonLines: wr,
|
|
5987
|
+
pdf: yr,
|
|
5988
|
+
xlsx: Er
|
|
5989
|
+
}, Rr = process.env.NODE_ENV === "development", He = class He extends R {
|
|
5964
5990
|
constructor(e) {
|
|
5965
5991
|
super(e), this.registerTableOption(
|
|
5966
5992
|
"downloadEncoder",
|
|
@@ -5987,7 +6013,7 @@ const Yi = process.env.NODE_ENV === "development", fr = function(a, e = {}, t) {
|
|
|
5987
6013
|
const n = (l, h) => {
|
|
5988
6014
|
o ? o === !0 ? this.triggerDownload(l, h, e, t, !0) : o(l) : this.triggerDownload(l, h, e, t);
|
|
5989
6015
|
};
|
|
5990
|
-
if (typeof e == "function" ? r = e : He.downloaders[e] ? r = He.downloaders[e] :
|
|
6016
|
+
if (typeof e == "function" ? r = e : He.downloaders[e] ? r = He.downloaders[e] : Rr && console.warn("Download Error - No such download type found: ", e), r) {
|
|
5991
6017
|
const l = this.generateExportList(s);
|
|
5992
6018
|
r.call(this.table, l, i || {}, n.bind(this));
|
|
5993
6019
|
}
|
|
@@ -6037,9 +6063,9 @@ const Yi = process.env.NODE_ENV === "development", fr = function(a, e = {}, t) {
|
|
|
6037
6063
|
}
|
|
6038
6064
|
}
|
|
6039
6065
|
};
|
|
6040
|
-
He.moduleName = "download", He.downloaders =
|
|
6066
|
+
He.moduleName = "download", He.downloaders = xr;
|
|
6041
6067
|
let Ht = He;
|
|
6042
|
-
const
|
|
6068
|
+
const Sr = function(a, e, t, i, s = {}) {
|
|
6043
6069
|
const o = this, r = a._getSelf().column;
|
|
6044
6070
|
let n;
|
|
6045
6071
|
function l(d) {
|
|
@@ -6073,7 +6099,7 @@ const Rr = function(a, e, t, i, s = {}) {
|
|
|
6073
6099
|
i,
|
|
6074
6100
|
n || {}
|
|
6075
6101
|
) : !1;
|
|
6076
|
-
},
|
|
6102
|
+
}, Tr = process.env.NODE_ENV === "development", Mr = function(a, e, t, i, s) {
|
|
6077
6103
|
const o = s.format, r = s.verticalNavigation || "editor", n = typeof globalThis.window > "u" ? globalThis : window, l = o ? n.DateTime || n.luxon?.DateTime : null;
|
|
6078
6104
|
let h = a.getValue();
|
|
6079
6105
|
const c = document.createElement("input");
|
|
@@ -6106,7 +6132,7 @@ const Rr = function(a, e, t, i, s = {}) {
|
|
|
6106
6132
|
);
|
|
6107
6133
|
} else
|
|
6108
6134
|
c.setAttribute(f, s.elementAttributes[f]);
|
|
6109
|
-
h = h ?? "", o && (l ? h = p(h) :
|
|
6135
|
+
h = h ?? "", o && (l ? h = p(h) : Tr && console.error(
|
|
6110
6136
|
"Editor Error - 'date' editor 'format' param is dependent on luxon.js"
|
|
6111
6137
|
)), c.value = String(h), e(() => {
|
|
6112
6138
|
a.getType() === "cell" && (c.focus({ preventScroll: !0 }), c.style.height = "100%", s.selectContents && c.select());
|
|
@@ -6153,7 +6179,7 @@ const Rr = function(a, e, t, i, s = {}) {
|
|
|
6153
6179
|
break;
|
|
6154
6180
|
}
|
|
6155
6181
|
}), c;
|
|
6156
|
-
},
|
|
6182
|
+
}, kr = process.env.NODE_ENV === "development", Lr = function(a, e, t, i, s) {
|
|
6157
6183
|
const o = this, r = s.format, n = s.verticalNavigation || "editor", l = r ? o.table.dependencyRegistry.lookup(["luxon", "DateTime"], "DateTime") : null;
|
|
6158
6184
|
let h, c = a.getValue();
|
|
6159
6185
|
const d = document.createElement("input");
|
|
@@ -6167,7 +6193,7 @@ const Rr = function(a, e, t, i, s = {}) {
|
|
|
6167
6193
|
);
|
|
6168
6194
|
} else
|
|
6169
6195
|
d.setAttribute(u, s.elementAttributes[u]);
|
|
6170
|
-
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 &&
|
|
6196
|
+
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 && kr && console.error(
|
|
6171
6197
|
"Editor Error - 'datetime' editor 'format' param is dependent on luxon.js"
|
|
6172
6198
|
), d.value = String(c), e(() => {
|
|
6173
6199
|
a.getType() === "cell" && (d.focus({ preventScroll: !0 }), d.style.height = "100%", s.selectContents && d.select());
|
|
@@ -6251,7 +6277,7 @@ function xi(a, e) {
|
|
|
6251
6277
|
(n.keyCode || 0) > 46 && e.maskAutoFill && r(a.value.length);
|
|
6252
6278
|
}), a.placeholder || (a.placeholder = t), e.maskAutoFill && r(a.value.length);
|
|
6253
6279
|
}
|
|
6254
|
-
const
|
|
6280
|
+
const Dr = function(a, e, t, i, s) {
|
|
6255
6281
|
let o = a.getValue();
|
|
6256
6282
|
const r = document.createElement("input");
|
|
6257
6283
|
if (r.setAttribute(
|
|
@@ -6288,12 +6314,12 @@ const Lr = function(a, e, t, i, s) {
|
|
|
6288
6314
|
break;
|
|
6289
6315
|
}
|
|
6290
6316
|
}), s.mask && xi(r, s), r;
|
|
6291
|
-
},
|
|
6317
|
+
}, zr = process.env.NODE_ENV === "development";
|
|
6292
6318
|
let ks = null;
|
|
6293
|
-
function
|
|
6319
|
+
function Fr(a) {
|
|
6294
6320
|
ks = a;
|
|
6295
6321
|
}
|
|
6296
|
-
const
|
|
6322
|
+
const Or = {
|
|
6297
6323
|
/**
|
|
6298
6324
|
* @param explicitRegistry - When provided, that map is used. When omitted, uses the registry set
|
|
6299
6325
|
* by {@link setDefaultFormattersRegistry}
|
|
@@ -6307,7 +6333,7 @@ const Fr = {
|
|
|
6307
6333
|
let i;
|
|
6308
6334
|
switch (typeof a) {
|
|
6309
6335
|
case "string":
|
|
6310
|
-
t[a] ? i = t[a] : (
|
|
6336
|
+
t[a] ? i = t[a] : (zr && console.warn("Formatter Error - No such formatter found: ", a), i = t.plaintext);
|
|
6311
6337
|
break;
|
|
6312
6338
|
case "function":
|
|
6313
6339
|
i = a;
|
|
@@ -6320,9 +6346,9 @@ const Fr = {
|
|
|
6320
6346
|
}
|
|
6321
6347
|
};
|
|
6322
6348
|
function mt(a, e) {
|
|
6323
|
-
return
|
|
6349
|
+
return Or.lookupFormatter(a, e);
|
|
6324
6350
|
}
|
|
6325
|
-
function
|
|
6351
|
+
function Hr(a, e = {}, t) {
|
|
6326
6352
|
let i;
|
|
6327
6353
|
function s(n) {
|
|
6328
6354
|
const l = n.getValue();
|
|
@@ -6341,7 +6367,7 @@ function Or(a, e = {}, t) {
|
|
|
6341
6367
|
const o = e.formatterLookup ? e.formatterLookup(a) : s(a);
|
|
6342
6368
|
return e.paramsLookup && (i = typeof e.paramsLookup == "function" ? e.paramsLookup(o, a) : e.paramsLookup[o]), mt(o).call(this, a, i || {}, t);
|
|
6343
6369
|
}
|
|
6344
|
-
function
|
|
6370
|
+
function Pr(a, e, t) {
|
|
6345
6371
|
const i = e.delimiter ?? ",";
|
|
6346
6372
|
let s = a.getValue();
|
|
6347
6373
|
const o = this.table;
|
|
@@ -6354,30 +6380,30 @@ function Hr(a, e, t) {
|
|
|
6354
6380
|
));
|
|
6355
6381
|
} : r = e.valueMap), Array.isArray(s) ? (r && (s = r(s)), s.join(i)) : s;
|
|
6356
6382
|
}
|
|
6357
|
-
function
|
|
6383
|
+
function Ar(a, e, t) {
|
|
6358
6384
|
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>';
|
|
6359
6385
|
}
|
|
6360
|
-
function
|
|
6386
|
+
function _r(a, e, t) {
|
|
6361
6387
|
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>';
|
|
6362
6388
|
}
|
|
6363
|
-
function
|
|
6389
|
+
function Nr(a, e, t) {
|
|
6364
6390
|
const i = a.getContentElement?.() ?? a.getElement(), s = a.getValue();
|
|
6365
|
-
return i && (
|
|
6391
|
+
return i && (Vr(s) ? i.style.backgroundColor = s : i.style.backgroundColor = ""), "";
|
|
6366
6392
|
}
|
|
6367
|
-
function
|
|
6393
|
+
function Vr(a) {
|
|
6368
6394
|
return !a || typeof a != "string" ? !1 : /^(#[0-9A-Fa-f]{3,8}|rgb\(|rgba\(|hsl\(|hsla\(|[a-z]+)$/i.test(a.trim());
|
|
6369
6395
|
}
|
|
6370
|
-
const
|
|
6396
|
+
const Ir = x`<span
|
|
6371
6397
|
style="display: inline-flex; align-items: center;"
|
|
6372
6398
|
></span>`;
|
|
6373
|
-
function
|
|
6399
|
+
function Br({
|
|
6374
6400
|
spacing: a,
|
|
6375
6401
|
style: e
|
|
6376
6402
|
}) {
|
|
6377
|
-
const t = T(
|
|
6403
|
+
const t = T(Ir);
|
|
6378
6404
|
return a && (t.style.margin = a), e && Object.assign(t.style, e), t;
|
|
6379
6405
|
}
|
|
6380
|
-
function
|
|
6406
|
+
function Wr(a, e, t) {
|
|
6381
6407
|
const i = mt("plaintext"), s = {
|
|
6382
6408
|
style: {
|
|
6383
6409
|
color: "var(--cx-color-neutral-500)",
|
|
@@ -6401,7 +6427,7 @@ function Br(a, e, t) {
|
|
|
6401
6427
|
r
|
|
6402
6428
|
);
|
|
6403
6429
|
}
|
|
6404
|
-
function
|
|
6430
|
+
function Gr({
|
|
6405
6431
|
elementConfig: a,
|
|
6406
6432
|
elementValue: e,
|
|
6407
6433
|
rowData: t
|
|
@@ -6419,7 +6445,7 @@ function ts({
|
|
|
6419
6445
|
}) {
|
|
6420
6446
|
return e.value !== void 0 ? e.value : e.getValue ? e.getValue(a, t) : e.field ? L.retrieveNestedData(i, e.field, t) : a.getValue();
|
|
6421
6447
|
}
|
|
6422
|
-
function
|
|
6448
|
+
function jr(a, e, t) {
|
|
6423
6449
|
if (!e?.elements || !Array.isArray(e.elements) || e.elements.length === 0)
|
|
6424
6450
|
return;
|
|
6425
6451
|
const i = a.getData(), s = this.table, o = typeof s.options.nestedFieldSeparator == "string" ? s.options.nestedFieldSeparator : void 0, r = a.getValue(), n = e.elements.some((C) => {
|
|
@@ -6432,7 +6458,7 @@ function Gr(a, e, t) {
|
|
|
6432
6458
|
return C.valueMap && (E = C.valueMap[String(E)] ?? E), !es(E);
|
|
6433
6459
|
});
|
|
6434
6460
|
if (es(r) && !n && e.placeholder !== void 0)
|
|
6435
|
-
return
|
|
6461
|
+
return Wr.call(this, a, e, t);
|
|
6436
6462
|
const h = a.getRow(), { align: c, containerStyle: d, direction: p, gap: u } = e, f = x`<cx-space
|
|
6437
6463
|
style=${ke(d ?? {})}
|
|
6438
6464
|
align-items=${c ?? "center"}
|
|
@@ -6446,7 +6472,7 @@ function Gr(a, e, t) {
|
|
|
6446
6472
|
rowData: i,
|
|
6447
6473
|
separator: o
|
|
6448
6474
|
});
|
|
6449
|
-
if (C.valueMap && (E = C.valueMap[String(E)] ?? E),
|
|
6475
|
+
if (C.valueMap && (E = C.valueMap[String(E)] ?? E), Gr({ elementConfig: C, elementValue: E, rowData: i }))
|
|
6450
6476
|
return;
|
|
6451
6477
|
const z = C.formatter || "plaintext", M = mt(z), J = {
|
|
6452
6478
|
getColumn: () => a.getColumn(),
|
|
@@ -6473,7 +6499,7 @@ function Gr(a, e, t) {
|
|
|
6473
6499
|
}
|
|
6474
6500
|
if (P == null)
|
|
6475
6501
|
return;
|
|
6476
|
-
const te =
|
|
6502
|
+
const te = Br({
|
|
6477
6503
|
spacing: C.spacing,
|
|
6478
6504
|
style: C.style
|
|
6479
6505
|
});
|
|
@@ -6489,14 +6515,14 @@ function Gr(a, e, t) {
|
|
|
6489
6515
|
return typeof z == "string" ? Y.textContent = z : Y.appendChild(z.cloneNode(!0)), [M, Y];
|
|
6490
6516
|
}).forEach((C) => w.appendChild(C)), w);
|
|
6491
6517
|
}
|
|
6492
|
-
const
|
|
6493
|
-
function
|
|
6518
|
+
const $r = process.env.NODE_ENV === "development";
|
|
6519
|
+
function Ur(a, e, t) {
|
|
6494
6520
|
const i = this.table.dependencyRegistry.lookup(
|
|
6495
6521
|
["luxon", "DateTime"],
|
|
6496
6522
|
"DateTime"
|
|
6497
6523
|
), s = e.inputFormat || "yyyy-MM-dd HH:mm:ss", o = e.outputFormat || "dd/MM/yyyy HH:mm:ss", r = e.invalidPlaceholder ?? "", n = a.getValue();
|
|
6498
6524
|
if (i == null)
|
|
6499
|
-
return
|
|
6525
|
+
return $r && console.error(
|
|
6500
6526
|
"Format Error - 'datetime' formatter is dependent on luxon.js"
|
|
6501
6527
|
), n;
|
|
6502
6528
|
{
|
|
@@ -6504,14 +6530,14 @@ function $r(a, e, t) {
|
|
|
6504
6530
|
return i.isDateTime(n) ? l = n : s === "iso" ? l = i.fromISO(String(n)) : l = i.fromFormat(String(n), s), l.isValid ? (e.timezone && (l = l.setZone(e.timezone)), l.toFormat(o)) : r === !0 || !n ? n : typeof r == "function" ? r(n) : r;
|
|
6505
6531
|
}
|
|
6506
6532
|
}
|
|
6507
|
-
const
|
|
6508
|
-
function
|
|
6533
|
+
const Kr = process.env.NODE_ENV === "development";
|
|
6534
|
+
function Xr(a, e, t) {
|
|
6509
6535
|
const i = this.table.dependencyRegistry.lookup(
|
|
6510
6536
|
["luxon", "DateTime"],
|
|
6511
6537
|
"DateTime"
|
|
6512
6538
|
), s = e.inputFormat || "yyyy-MM-dd HH:mm:ss", o = e.invalidPlaceholder ?? "", r = e.suffix === void 0 || e.suffix === null ? !1 : e.suffix, n = e.unit === void 0 || e.unit === null ? "days" : e.unit, l = e.humanize === void 0 || e.humanize === null ? !1 : e.humanize, h = a.getValue();
|
|
6513
6539
|
if (i == null)
|
|
6514
|
-
return
|
|
6540
|
+
return Kr && console.error(
|
|
6515
6541
|
"Format Error - 'datetimediff' formatter is dependent on luxon.js"
|
|
6516
6542
|
), o;
|
|
6517
6543
|
{
|
|
@@ -6520,20 +6546,20 @@ function Kr(a, e, t) {
|
|
|
6520
6546
|
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, n).toHuman() + (r ? " " + r : "") : Number.parseInt(String(d.diff(c, n)[n]), 10) + (r ? " " + r : "") : o === !0 ? h : typeof o == "function" ? o(h) : o;
|
|
6521
6547
|
}
|
|
6522
6548
|
}
|
|
6523
|
-
function
|
|
6549
|
+
function Jr(a, e, t) {
|
|
6524
6550
|
const i = a.getElement();
|
|
6525
6551
|
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>";
|
|
6526
6552
|
}
|
|
6527
|
-
function
|
|
6553
|
+
function qr(a, e, t) {
|
|
6528
6554
|
return a.getValue();
|
|
6529
6555
|
}
|
|
6530
|
-
const
|
|
6531
|
-
function
|
|
6556
|
+
const Yr = x`<cx-icon></cx-icon>`;
|
|
6557
|
+
function Qr(a, e) {
|
|
6532
6558
|
const t = a.getValue(), i = e ?? {};
|
|
6533
6559
|
let s;
|
|
6534
6560
|
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)
|
|
6535
6561
|
return;
|
|
6536
|
-
const o = T(
|
|
6562
|
+
const o = T(Yr);
|
|
6537
6563
|
if (o.name = s, i.size !== void 0)
|
|
6538
6564
|
switch (typeof i.size) {
|
|
6539
6565
|
case "number":
|
|
@@ -6545,16 +6571,16 @@ function Yr(a, e) {
|
|
|
6545
6571
|
}
|
|
6546
6572
|
return i.class && (o.className = i.class), i.style && Object.assign(o.style, i.style), o;
|
|
6547
6573
|
}
|
|
6548
|
-
const
|
|
6574
|
+
const Zr = x`<div
|
|
6549
6575
|
style="display: flex; align-items: center; justify-content: center;"
|
|
6550
6576
|
>
|
|
6551
6577
|
<img style="max-width: 100%; max-height: 100%; object-fit: cover;" />
|
|
6552
6578
|
</div>`;
|
|
6553
|
-
function
|
|
6579
|
+
function en(a, e) {
|
|
6554
6580
|
let t = a.getValue();
|
|
6555
6581
|
if (!t)
|
|
6556
6582
|
return null;
|
|
6557
|
-
const i = T(
|
|
6583
|
+
const i = T(Zr), s = i.querySelector("img"), o = e ?? {};
|
|
6558
6584
|
switch (o.urlPrefix && (t = o.urlPrefix + a.getValue()), o.urlSuffix && (t = t + o.urlSuffix), s.setAttribute("src", String(t)), typeof o.height) {
|
|
6559
6585
|
case "number":
|
|
6560
6586
|
i.style.height = o.height + "px";
|
|
@@ -6575,8 +6601,8 @@ function Zr(a, e) {
|
|
|
6575
6601
|
a.getRow()?.normalizeHeight();
|
|
6576
6602
|
}), i;
|
|
6577
6603
|
}
|
|
6578
|
-
const
|
|
6579
|
-
function
|
|
6604
|
+
const tn = process.env.NODE_ENV === "development";
|
|
6605
|
+
function sn(a, e, t) {
|
|
6580
6606
|
const {
|
|
6581
6607
|
indent: i = " ",
|
|
6582
6608
|
multiline: s = !0,
|
|
@@ -6589,11 +6615,11 @@ function tn(a, e, t) {
|
|
|
6589
6615
|
try {
|
|
6590
6616
|
return JSON.stringify(r, o, i);
|
|
6591
6617
|
} catch (n) {
|
|
6592
|
-
return
|
|
6618
|
+
return tn && console.warn("JSON Format Error - Failed to format value", n), String(r);
|
|
6593
6619
|
}
|
|
6594
6620
|
}
|
|
6595
|
-
const
|
|
6596
|
-
function
|
|
6621
|
+
const on = process.env.NODE_ENV === "development";
|
|
6622
|
+
function rn(a, e, t) {
|
|
6597
6623
|
let i = a.getValue();
|
|
6598
6624
|
const s = e.urlPrefix || "";
|
|
6599
6625
|
let o = e.download, r = i;
|
|
@@ -6633,16 +6659,16 @@ function on(a, e, t) {
|
|
|
6633
6659
|
break;
|
|
6634
6660
|
}
|
|
6635
6661
|
const c = String(s + i), d = document.createElement("a");
|
|
6636
|
-
return d.href = c, ["http:", "https:", "mailto:", "tel:", ""].includes(d.protocol) || c.startsWith("#") ? n.setAttribute("href", c) : (
|
|
6662
|
+
return d.href = c, ["http:", "https:", "mailto:", "tel:", ""].includes(d.protocol) || c.startsWith("#") ? n.setAttribute("href", c) : (on && console.warn("Link formatter blocked potentially unsafe URL:", c), n.setAttribute("href", "#")), e.target && n.setAttribute("target", e.target), e.download && (typeof o == "function" ? o = o(a) : o = o === !0 ? "" : o, n.setAttribute("download", String(o))), n.innerHTML = pt(S(r)), n;
|
|
6637
6663
|
} else
|
|
6638
6664
|
return " ";
|
|
6639
6665
|
}
|
|
6640
|
-
const
|
|
6641
|
-
function
|
|
6666
|
+
const nn = process.env.NODE_ENV === "development";
|
|
6667
|
+
function an(a, e, t) {
|
|
6642
6668
|
const i = a.getValue();
|
|
6643
|
-
return !e || typeof e != "object" && typeof e != "function" || e[i] === void 0 || e[i] === null ? (
|
|
6669
|
+
return !e || typeof e != "object" && typeof e != "function" || e[i] === void 0 || e[i] === null ? (nn && console.warn("Missing display value for " + i), i) : e[i];
|
|
6644
6670
|
}
|
|
6645
|
-
function
|
|
6671
|
+
function ln(a, e, t) {
|
|
6646
6672
|
let i = parseFloat(a.getValue()), s = "", o, r, n, l;
|
|
6647
6673
|
const h = e.decimal || ".", c = e.thousand || ",", d = e.negativeSign || "-", p = e.symbol || "", u = !!e.symbolAfter, f = typeof e.precision < "u" ? e.precision : 2;
|
|
6648
6674
|
if (isNaN(i))
|
|
@@ -6654,15 +6680,15 @@ function an(a, e, t) {
|
|
|
6654
6680
|
r = r.replace(n, "$1" + c + "$2");
|
|
6655
6681
|
return l = r + w, e.negativeSign === !0 ? (l = "(" + l + ")", u ? l + p : p + l) : u ? s + l + p : s + p + l;
|
|
6656
6682
|
}
|
|
6657
|
-
const
|
|
6658
|
-
function
|
|
6683
|
+
const hn = x`<cx-format-number></cx-format-number>`;
|
|
6684
|
+
function cn(a, e) {
|
|
6659
6685
|
const t = a.getValue();
|
|
6660
6686
|
if (t == null || t === "")
|
|
6661
6687
|
return;
|
|
6662
6688
|
const i = Number(t);
|
|
6663
6689
|
if (Number.isNaN(i))
|
|
6664
6690
|
return;
|
|
6665
|
-
const s = e ?? {}, o = T(
|
|
6691
|
+
const s = e ?? {}, o = T(hn);
|
|
6666
6692
|
o.value = i;
|
|
6667
6693
|
for (const r of Object.keys(s)) {
|
|
6668
6694
|
const n = s[r];
|
|
@@ -6670,7 +6696,7 @@ function hn(a, e) {
|
|
|
6670
6696
|
}
|
|
6671
6697
|
return o;
|
|
6672
6698
|
}
|
|
6673
|
-
function
|
|
6699
|
+
function dn(a, e) {
|
|
6674
6700
|
let t = pt(S(a.getValue()));
|
|
6675
6701
|
const i = e ?? {};
|
|
6676
6702
|
i.prefix && (t = i.prefix + t), i.suffix && (t = t + i.suffix);
|
|
@@ -6679,7 +6705,7 @@ function cn(a, e) {
|
|
|
6679
6705
|
</cx-line-clamp>`;
|
|
6680
6706
|
return T(s);
|
|
6681
6707
|
}
|
|
6682
|
-
function
|
|
6708
|
+
function un(a, e = {}, t) {
|
|
6683
6709
|
const i = S(a.getValue()) || 0, s = a.getElement(), o = e.max ? e.max : 100, r = e.min ? e.min : 0, n = e.legendAlign ? e.legendAlign : "center";
|
|
6684
6710
|
let l, h, c = !1, d;
|
|
6685
6711
|
l = parseFloat(String(i)) <= o ? parseFloat(String(i)) : o, l = parseFloat(String(l)) >= r ? parseFloat(String(l)) : r;
|
|
@@ -6758,13 +6784,13 @@ function dn(a, e = {}, t) {
|
|
|
6758
6784
|
y && (y.appendChild(f), f.appendChild(u), c && w && f.appendChild(w));
|
|
6759
6785
|
}), "";
|
|
6760
6786
|
}
|
|
6761
|
-
function
|
|
6787
|
+
function pn(a, e = {}, t) {
|
|
6762
6788
|
const i = document.createElement("span"), s = a.getRow(), o = a.getTable();
|
|
6763
6789
|
return s.watchPosition((r) => {
|
|
6764
6790
|
e.relativeToPage && o.modules.page && (r += o.modules.page.getPageSize() * (o.modules.page.getPage() - 1)), i.innerText = String(r);
|
|
6765
6791
|
}), i;
|
|
6766
6792
|
}
|
|
6767
|
-
function
|
|
6793
|
+
function fn(a, e, t) {
|
|
6768
6794
|
let i = a.getValue();
|
|
6769
6795
|
const s = a.getElement(), o = a.getContentElement?.() ?? s, r = e && e.stars ? e.stars : 5, n = 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 "/>';
|
|
6770
6796
|
n.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";
|
|
@@ -6776,8 +6802,8 @@ function pn(a, e, t) {
|
|
|
6776
6802
|
}
|
|
6777
6803
|
return o && (o.style.whiteSpace = "nowrap", o.style.overflow = "hidden", o.style.textOverflow = "ellipsis"), s && s.setAttribute("aria-label", String(i)), n;
|
|
6778
6804
|
}
|
|
6779
|
-
const
|
|
6780
|
-
function
|
|
6805
|
+
const gn = x`<cx-tag></cx-tag>`;
|
|
6806
|
+
function mn(a, e) {
|
|
6781
6807
|
const t = a.getValue();
|
|
6782
6808
|
if (t == null || t === "")
|
|
6783
6809
|
return;
|
|
@@ -6786,26 +6812,26 @@ function gn(a, e) {
|
|
|
6786
6812
|
removable: !1,
|
|
6787
6813
|
size: "medium",
|
|
6788
6814
|
variant: "neutral"
|
|
6789
|
-
}, s = T(
|
|
6815
|
+
}, s = T(gn);
|
|
6790
6816
|
return Object.assign(s, i), s.textContent = e?.getTagContent?.(t) ?? e?.tagContentMap?.[t] ?? String(t), s;
|
|
6791
6817
|
}
|
|
6792
|
-
function
|
|
6818
|
+
function bn(a) {
|
|
6793
6819
|
return pt(S(a.getValue()));
|
|
6794
6820
|
}
|
|
6795
|
-
function
|
|
6821
|
+
function wn(a, e, t) {
|
|
6796
6822
|
const i = a.getValue(), s = a.getElement(), o = e.allowEmpty, r = e.allowTruthy, n = Object.prototype.hasOwnProperty.call(
|
|
6797
6823
|
e,
|
|
6798
6824
|
"trueValue"
|
|
6799
6825
|
), l = (typeof e.tickElement == "string" ? S(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" ? S(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>';
|
|
6800
6826
|
return n && i === e.trueValue || !n && (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 || "");
|
|
6801
6827
|
}
|
|
6802
|
-
function
|
|
6828
|
+
function vn(a) {
|
|
6803
6829
|
if (a == null || a === "")
|
|
6804
6830
|
return null;
|
|
6805
6831
|
const e = Number(a);
|
|
6806
6832
|
return Number.isFinite(e) ? e : null;
|
|
6807
6833
|
}
|
|
6808
|
-
function
|
|
6834
|
+
function yn(a, e) {
|
|
6809
6835
|
const t = e.getValue(), i = e.getRow().getData(), {
|
|
6810
6836
|
getParams: s,
|
|
6811
6837
|
paramsMap: o,
|
|
@@ -6818,14 +6844,14 @@ function vn(a, e) {
|
|
|
6818
6844
|
...c
|
|
6819
6845
|
};
|
|
6820
6846
|
}
|
|
6821
|
-
function
|
|
6847
|
+
function Cn(a) {
|
|
6822
6848
|
const e = {
|
|
6823
6849
|
...a.style ?? {}
|
|
6824
6850
|
};
|
|
6825
6851
|
return a.color && (e["--cx-format-time-color"] = a.color), a.fontSize && (e["--cx-format-time-font-size"] = a.fontSize), a.fontWeight && (e["--cx-format-time-font-weight"] = a.fontWeight), e;
|
|
6826
6852
|
}
|
|
6827
|
-
function
|
|
6828
|
-
const t =
|
|
6853
|
+
function En(a, e) {
|
|
6854
|
+
const t = yn(e ?? {}, a), i = vn(a.getValue()), s = Cn(t);
|
|
6829
6855
|
return T(x`
|
|
6830
6856
|
<cx-format-time
|
|
6831
6857
|
.duration=${i}
|
|
@@ -6838,7 +6864,7 @@ function Cn(a, e) {
|
|
|
6838
6864
|
></cx-format-time>
|
|
6839
6865
|
`);
|
|
6840
6866
|
}
|
|
6841
|
-
function
|
|
6867
|
+
function xn(a, e, t) {
|
|
6842
6868
|
const i = e.size || 15, s = i + "px", o = Object.prototype.hasOwnProperty.call(
|
|
6843
6869
|
e,
|
|
6844
6870
|
"onValue"
|
|
@@ -6856,15 +6882,15 @@ function En(a, e, t) {
|
|
|
6856
6882
|
const c = document.createElement("div");
|
|
6857
6883
|
return c.classList.add("tabulator-toggle-switch"), c.style.height = s, c.style.width = s, c.style.borderRadius = s, h.appendChild(c), h;
|
|
6858
6884
|
}
|
|
6859
|
-
const
|
|
6885
|
+
const Rn = x`<span class="tabulator-traffic-light-container">
|
|
6860
6886
|
<span class="tabulator-traffic-light"></span>
|
|
6861
6887
|
<span class="tabulator-traffic-light-text"></span>
|
|
6862
6888
|
</span>`;
|
|
6863
|
-
function
|
|
6889
|
+
function Sn(a, e, t, i) {
|
|
6864
6890
|
const s = a.getValue();
|
|
6865
6891
|
if (s == null || s === "")
|
|
6866
6892
|
return;
|
|
6867
|
-
const o = T(
|
|
6893
|
+
const o = T(Rn), r = e?.getColor?.(s) ?? e?.colorMap?.[s];
|
|
6868
6894
|
if (r) {
|
|
6869
6895
|
const l = o.querySelector(
|
|
6870
6896
|
".tabulator-traffic-light"
|
|
@@ -6876,13 +6902,13 @@ function Rn(a, e, t, i) {
|
|
|
6876
6902
|
);
|
|
6877
6903
|
return n && (n.textContent = String(s)), i?.getColor ? n.style.color = i.getColor(a) : i?.colorMap ? n.style.color = i.colorMap[a.getValue()] : i?.color && (n.style.color = i.color), o;
|
|
6878
6904
|
}
|
|
6879
|
-
function
|
|
6905
|
+
function Tn(a, e) {
|
|
6880
6906
|
const t = a.getValue();
|
|
6881
6907
|
if (t == null || t === "")
|
|
6882
6908
|
return;
|
|
6883
6909
|
const i = e ?? {};
|
|
6884
6910
|
let s;
|
|
6885
|
-
i.getVariant && (s = i.getVariant(t)), !s && i.variantMap && (s = i.variantMap[t]), !s && i.variant && (s = i.variant), s ??=
|
|
6911
|
+
i.getVariant && (s = i.getVariant(t)), !s && i.variantMap && (s = i.variantMap[t]), !s && i.variant && (s = i.variant), s ??= Js.Body1;
|
|
6886
6912
|
const o = x` <cx-line-clamp lines="1">
|
|
6887
6913
|
<cx-typography style=${ke(i.style ?? {})}></cx-typography>
|
|
6888
6914
|
</cx-line-clamp>`, r = T(o), n = r.querySelector(
|
|
@@ -6893,36 +6919,36 @@ function Sn(a, e) {
|
|
|
6893
6919
|
return i.prefix && (l = i.prefix + l), i.suffix && (l = l + i.suffix), n.textContent = l, r;
|
|
6894
6920
|
}
|
|
6895
6921
|
const Ls = {
|
|
6896
|
-
adaptable:
|
|
6897
|
-
array:
|
|
6898
|
-
buttonCross:
|
|
6899
|
-
buttonTick:
|
|
6900
|
-
color:
|
|
6901
|
-
composite:
|
|
6902
|
-
datetime:
|
|
6903
|
-
datetimediff:
|
|
6904
|
-
handle:
|
|
6905
|
-
html:
|
|
6906
|
-
icon:
|
|
6907
|
-
image:
|
|
6908
|
-
json:
|
|
6909
|
-
link:
|
|
6910
|
-
lookup:
|
|
6911
|
-
money:
|
|
6912
|
-
number:
|
|
6913
|
-
plaintext:
|
|
6914
|
-
progress:
|
|
6915
|
-
rownum:
|
|
6916
|
-
star:
|
|
6917
|
-
tag:
|
|
6918
|
-
textarea:
|
|
6919
|
-
tickCross:
|
|
6920
|
-
time:
|
|
6921
|
-
toggle:
|
|
6922
|
-
traffic:
|
|
6923
|
-
typography:
|
|
6922
|
+
adaptable: Hr,
|
|
6923
|
+
array: Pr,
|
|
6924
|
+
buttonCross: Ar,
|
|
6925
|
+
buttonTick: _r,
|
|
6926
|
+
color: Nr,
|
|
6927
|
+
composite: jr,
|
|
6928
|
+
datetime: Ur,
|
|
6929
|
+
datetimediff: Xr,
|
|
6930
|
+
handle: Jr,
|
|
6931
|
+
html: qr,
|
|
6932
|
+
icon: Qr,
|
|
6933
|
+
image: en,
|
|
6934
|
+
json: sn,
|
|
6935
|
+
link: rn,
|
|
6936
|
+
lookup: an,
|
|
6937
|
+
money: ln,
|
|
6938
|
+
number: cn,
|
|
6939
|
+
plaintext: dn,
|
|
6940
|
+
progress: un,
|
|
6941
|
+
rownum: pn,
|
|
6942
|
+
star: fn,
|
|
6943
|
+
tag: mn,
|
|
6944
|
+
textarea: bn,
|
|
6945
|
+
tickCross: wn,
|
|
6946
|
+
time: En,
|
|
6947
|
+
toggle: xn,
|
|
6948
|
+
traffic: Sn,
|
|
6949
|
+
typography: Tn
|
|
6924
6950
|
};
|
|
6925
|
-
|
|
6951
|
+
Fr(Ls);
|
|
6926
6952
|
const fe = class fe extends R {
|
|
6927
6953
|
constructor(e) {
|
|
6928
6954
|
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");
|
|
@@ -7027,10 +7053,10 @@ const fe = class fe extends R {
|
|
|
7027
7053
|
};
|
|
7028
7054
|
fe.moduleName = "format", fe.formatters = Ls;
|
|
7029
7055
|
let ot = fe;
|
|
7030
|
-
const ie = process.env.NODE_ENV === "development",
|
|
7031
|
-
class
|
|
7056
|
+
const ie = process.env.NODE_ENV === "development", Mn = x` <cx-option></cx-option>`, kn = x` <cx-divider></cx-divider>`;
|
|
7057
|
+
class Ln {
|
|
7032
7058
|
constructor(e, t, i, s, o, r) {
|
|
7033
|
-
this._itemsMap = /* @__PURE__ */ new Map(), this.
|
|
7059
|
+
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 = {
|
|
7034
7060
|
cancel: o,
|
|
7035
7061
|
success: s
|
|
7036
7062
|
}, this._initializeValue(), i(this._onRendered.bind(this)), this.clickStop = this.clickStop.bind(this);
|
|
@@ -7046,7 +7072,10 @@ class kn {
|
|
|
7046
7072
|
let e = this.cell.getValue();
|
|
7047
7073
|
await this.rebuildOptionsList();
|
|
7048
7074
|
const { defaultValue: t } = this.params;
|
|
7049
|
-
e == null && t
|
|
7075
|
+
e == null && t != null && (e = t), this.initialValue = e, e == null ? (this.initialValues = [], this.input.value = []) : (this.initialValues = this._getSanitizedInitialValues(e), this.input.value = this.initialValues), this.input.handleValueChange(), this.isHeaderFilter && this.headerFilterInitialListGen();
|
|
7076
|
+
}
|
|
7077
|
+
_getSanitizedInitialValues(e) {
|
|
7078
|
+
return (Array.isArray(e) ? e : [e]).map((i) => this.sanitizeValue(i));
|
|
7050
7079
|
}
|
|
7051
7080
|
async _onRendered() {
|
|
7052
7081
|
await this.input.updateComplete;
|
|
@@ -7090,19 +7119,27 @@ class kn {
|
|
|
7090
7119
|
if (!e)
|
|
7091
7120
|
return null;
|
|
7092
7121
|
let t;
|
|
7093
|
-
return typeof e == "string" ? t =
|
|
7122
|
+
return typeof e == "string" ? t = qs(e) : t = e, t && (t.slot = "prefix"), t;
|
|
7094
7123
|
}
|
|
7095
7124
|
_createSelectElement() {
|
|
7096
|
-
const {
|
|
7125
|
+
const {
|
|
7126
|
+
autocomplete: e,
|
|
7127
|
+
clearable: t,
|
|
7128
|
+
fallbackOptionValue: i,
|
|
7129
|
+
freeWidth: s,
|
|
7130
|
+
placeholder: o
|
|
7131
|
+
} = this.params, r = x`
|
|
7097
7132
|
<cx-select
|
|
7098
7133
|
style="width: 100%; margin: auto;"
|
|
7099
7134
|
hoist
|
|
7100
7135
|
?clearable=${t}
|
|
7101
|
-
?free-width=${
|
|
7102
|
-
placeholder=${be(
|
|
7136
|
+
?free-width=${s ?? !1}
|
|
7137
|
+
placeholder=${be(o)}
|
|
7103
7138
|
></cx-select>
|
|
7104
|
-
`,
|
|
7105
|
-
|
|
7139
|
+
`, n = T(r);
|
|
7140
|
+
i && (n.fallbackOptionValue = this.sanitizeValue(i));
|
|
7141
|
+
const l = this.createPrefixElement();
|
|
7142
|
+
return l && n.prepend(l), e || (n.style.cursor = "default", n.style.caretColor = "transparent"), this._bindInputEvents(n), n;
|
|
7106
7143
|
}
|
|
7107
7144
|
_initializeParams(e) {
|
|
7108
7145
|
const t = /* @__PURE__ */ new Set(["values", "valuesURL", "valuesLookup"]);
|
|
@@ -7189,6 +7226,8 @@ class kn {
|
|
|
7189
7226
|
e = Rs(e, {}, o);
|
|
7190
7227
|
let r = [];
|
|
7191
7228
|
try {
|
|
7229
|
+
if (!this.fetchApi)
|
|
7230
|
+
throw new Error("fetch is not available");
|
|
7192
7231
|
const n = await this.fetchApi(e);
|
|
7193
7232
|
if (!n.ok)
|
|
7194
7233
|
return ie && console.error(
|
|
@@ -7239,10 +7278,36 @@ class kn {
|
|
|
7239
7278
|
});
|
|
7240
7279
|
const r = this._parseListItem(o, 0);
|
|
7241
7280
|
t.push(r);
|
|
7242
|
-
});
|
|
7281
|
+
}), this._appendFallbackOptionItem(t);
|
|
7243
7282
|
const { freetext: s } = this.params;
|
|
7244
7283
|
return s && (this.input.value = Array.isArray(this.initialValues) ? this.initialValues.join(",") : String(this.initialValues || ""), this.typing = !0, this.lastAction = "typing"), this.data = t, this._rebuildItemsMap(), t;
|
|
7245
7284
|
}
|
|
7285
|
+
/**
|
|
7286
|
+
* Appends a fallback option when `fallbackOptionValue` is configured
|
|
7287
|
+
* and not explicitly declared in the list values.
|
|
7288
|
+
*/
|
|
7289
|
+
_appendFallbackOptionItem(e) {
|
|
7290
|
+
const { fallbackOptionLabel: t = "Custom", fallbackOptionValue: i } = this.params;
|
|
7291
|
+
if (!i)
|
|
7292
|
+
return;
|
|
7293
|
+
const s = this.sanitizeValue(i);
|
|
7294
|
+
this._hasListItemValue(e, s) || e.push(
|
|
7295
|
+
this._parseListItem(
|
|
7296
|
+
{
|
|
7297
|
+
label: t,
|
|
7298
|
+
value: i
|
|
7299
|
+
},
|
|
7300
|
+
0
|
|
7301
|
+
)
|
|
7302
|
+
);
|
|
7303
|
+
}
|
|
7304
|
+
/**
|
|
7305
|
+
* Checks recursively whether grouped/flat list items already contain
|
|
7306
|
+
* a given sanitized option value.
|
|
7307
|
+
*/
|
|
7308
|
+
_hasListItemValue(e, t) {
|
|
7309
|
+
return e.some((i) => i.group && i.options ? this._hasListItemValue(i.options, t) : i.sanitizedValue === t);
|
|
7310
|
+
}
|
|
7246
7311
|
_parseListItem(e, t) {
|
|
7247
7312
|
let i;
|
|
7248
7313
|
return e.options ? i = this._parseListGroup(e, t + 1) : (i = {
|
|
@@ -7324,7 +7389,7 @@ class kn {
|
|
|
7324
7389
|
// ////////////////////////////////////
|
|
7325
7390
|
_clearList() {
|
|
7326
7391
|
for (const e of Array.from(this.input.children))
|
|
7327
|
-
e.getAttribute("slot") !== "prefix" && (e instanceof
|
|
7392
|
+
e.getAttribute("slot") !== "prefix" && (e instanceof Qs || e instanceof vs || e.tagName === "SMALL") && e.remove();
|
|
7328
7393
|
this.displayItems = [];
|
|
7329
7394
|
}
|
|
7330
7395
|
_buildList(e) {
|
|
@@ -7348,7 +7413,7 @@ class kn {
|
|
|
7348
7413
|
}
|
|
7349
7414
|
}
|
|
7350
7415
|
_appendDivider() {
|
|
7351
|
-
const e = T(
|
|
7416
|
+
const e = T(kn);
|
|
7352
7417
|
this.input.appendChild(e);
|
|
7353
7418
|
}
|
|
7354
7419
|
_appendSectionLabel(e) {
|
|
@@ -7358,7 +7423,7 @@ class kn {
|
|
|
7358
7423
|
_appendLeafOption(e) {
|
|
7359
7424
|
let t = e.element;
|
|
7360
7425
|
if (!t) {
|
|
7361
|
-
t = T(
|
|
7426
|
+
t = T(Mn), t.getTextLabel = () => e.label, t.value = this.sanitizeValue(e.value);
|
|
7362
7427
|
const i = this.formatItemLabel(e, t);
|
|
7363
7428
|
i && typeof i == "object" && "nodeType" in i && i instanceof HTMLElement ? t.appendChild(i) : t.innerHTML = S(String(i || "")), t.classList.add(
|
|
7364
7429
|
"tabulator-edit-list-item",
|
|
@@ -7406,12 +7471,67 @@ class kn {
|
|
|
7406
7471
|
if (!s.length)
|
|
7407
7472
|
return t ? i : this.input.value;
|
|
7408
7473
|
if (this.input.multiple)
|
|
7409
|
-
return
|
|
7410
|
-
|
|
7411
|
-
|
|
7412
|
-
|
|
7413
|
-
const
|
|
7414
|
-
return
|
|
7474
|
+
return this._getCommittedMultipleOutput(s);
|
|
7475
|
+
const o = this.input.getOptionValue(s[0]);
|
|
7476
|
+
if (this._hasPreservedFallbackOptionOutput(o))
|
|
7477
|
+
return this.initialValue;
|
|
7478
|
+
const r = this._getMappedOptionOutput(o);
|
|
7479
|
+
return t && r === "" ? i : r;
|
|
7480
|
+
}
|
|
7481
|
+
/**
|
|
7482
|
+
* Resolves the selected values once so preserved fallback arrays are not
|
|
7483
|
+
* inserted into a single selected-option slot.
|
|
7484
|
+
*/
|
|
7485
|
+
_getCommittedMultipleOutput(e) {
|
|
7486
|
+
const t = e.map((s) => this.input.getOptionValue(s)), i = this._getPreservedFallbackMultipleOutput(t);
|
|
7487
|
+
return i.hasValue ? i.value : t.map(
|
|
7488
|
+
(s) => this._getMappedOptionOutput(s)
|
|
7489
|
+
);
|
|
7490
|
+
}
|
|
7491
|
+
_getMappedOptionOutput(e) {
|
|
7492
|
+
const t = this._itemsMap.get(e);
|
|
7493
|
+
return t ? t.value : e;
|
|
7494
|
+
}
|
|
7495
|
+
_getPreservedInputValueOutput(e) {
|
|
7496
|
+
const t = this._itemsMap.get(this.sanitizeValue(e));
|
|
7497
|
+
return t ? t.value : e;
|
|
7498
|
+
}
|
|
7499
|
+
_getPreservedFallbackMultipleOutput(e) {
|
|
7500
|
+
const { fallbackOptionValue: t } = this.params;
|
|
7501
|
+
if (!t)
|
|
7502
|
+
return { hasValue: !1 };
|
|
7503
|
+
const i = this.sanitizeValue(t);
|
|
7504
|
+
if (!e.includes(
|
|
7505
|
+
i
|
|
7506
|
+
))
|
|
7507
|
+
return { hasValue: !1 };
|
|
7508
|
+
const o = Array.isArray(this.input.value) ? this.input.value : [this.input.value];
|
|
7509
|
+
return this._hasPreservedUnmatchedInputValue(
|
|
7510
|
+
o,
|
|
7511
|
+
i
|
|
7512
|
+
) ? {
|
|
7513
|
+
hasValue: !0,
|
|
7514
|
+
value: o.map(
|
|
7515
|
+
(r) => this._getPreservedInputValueOutput(r)
|
|
7516
|
+
)
|
|
7517
|
+
} : { hasValue: !1 };
|
|
7518
|
+
}
|
|
7519
|
+
/**
|
|
7520
|
+
* Checks for a preserved unmatched editor value when the selected option is
|
|
7521
|
+
* the configured fallback option used for undeclared values.
|
|
7522
|
+
*/
|
|
7523
|
+
_hasPreservedFallbackOptionOutput(e) {
|
|
7524
|
+
const { fallbackOptionValue: t } = this.params;
|
|
7525
|
+
if (!t || e !== this.sanitizeValue(t))
|
|
7526
|
+
return !1;
|
|
7527
|
+
const i = Array.isArray(this.input.value) ? this.input.value : [this.input.value];
|
|
7528
|
+
return this._hasPreservedUnmatchedInputValue(i, e);
|
|
7529
|
+
}
|
|
7530
|
+
_hasPreservedUnmatchedInputValue(e, t) {
|
|
7531
|
+
return e.some((i) => {
|
|
7532
|
+
const s = String(i);
|
|
7533
|
+
return s !== "" && s !== t && !this._itemsMap.has(s);
|
|
7534
|
+
});
|
|
7415
7535
|
}
|
|
7416
7536
|
_resolveValue(e) {
|
|
7417
7537
|
const t = e === void 0 ? this._getCommittedOutput() : e.value;
|
|
@@ -7421,8 +7541,8 @@ class kn {
|
|
|
7421
7541
|
}
|
|
7422
7542
|
}
|
|
7423
7543
|
}
|
|
7424
|
-
const
|
|
7425
|
-
return new
|
|
7544
|
+
const Dn = function(a, e, t, i, s) {
|
|
7545
|
+
return new Ln(
|
|
7426
7546
|
// eslint-disable-next-line no-invalid-this
|
|
7427
7547
|
this,
|
|
7428
7548
|
a instanceof Ci ? a._getSelf() : a,
|
|
@@ -7431,7 +7551,7 @@ const Ln = function(a, e, t, i, s) {
|
|
|
7431
7551
|
i,
|
|
7432
7552
|
s
|
|
7433
7553
|
).input;
|
|
7434
|
-
},
|
|
7554
|
+
}, zn = function(a, e, t, i, s) {
|
|
7435
7555
|
let o = a.getValue();
|
|
7436
7556
|
const r = s.verticalNavigation || "editor", n = document.createElement("input");
|
|
7437
7557
|
if (n.setAttribute("type", "number"), typeof s.max < "u" && n.setAttribute("max", String(s.max)), typeof s.min < "u" && n.setAttribute("min", String(s.min)), typeof s.step < "u" && n.setAttribute("step", String(s.step)), n.style.padding = "4px", n.style.width = "100%", n.style.boxSizing = "border-box", s.elementAttributes && typeof s.elementAttributes == "object")
|
|
@@ -7480,7 +7600,7 @@ const Ln = function(a, e, t, i, s) {
|
|
|
7480
7600
|
break;
|
|
7481
7601
|
}
|
|
7482
7602
|
}), s.mask && xi(n, s), n;
|
|
7483
|
-
},
|
|
7603
|
+
}, Fn = function(a, e, t, i, s) {
|
|
7484
7604
|
const o = a.getElement();
|
|
7485
7605
|
if (!o)
|
|
7486
7606
|
return !1;
|
|
@@ -7534,7 +7654,7 @@ const Ln = function(a, e, t, i, s) {
|
|
|
7534
7654
|
}), o.addEventListener("blur", () => {
|
|
7535
7655
|
i();
|
|
7536
7656
|
}), p;
|
|
7537
|
-
},
|
|
7657
|
+
}, On = function(a, e, t, i, s) {
|
|
7538
7658
|
let o = a.getValue();
|
|
7539
7659
|
const r = document.createElement("input");
|
|
7540
7660
|
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")
|
|
@@ -7566,7 +7686,7 @@ const Ln = function(a, e, t, i, s) {
|
|
|
7566
7686
|
break;
|
|
7567
7687
|
}
|
|
7568
7688
|
}), r;
|
|
7569
|
-
},
|
|
7689
|
+
}, Hn = function(a, e, t, i, s) {
|
|
7570
7690
|
const o = this, r = a.getElement();
|
|
7571
7691
|
if (!r)
|
|
7572
7692
|
return !1;
|
|
@@ -7637,7 +7757,7 @@ const Ln = function(a, e, t, i, s) {
|
|
|
7637
7757
|
break;
|
|
7638
7758
|
}
|
|
7639
7759
|
}), d;
|
|
7640
|
-
},
|
|
7760
|
+
}, Pn = function(a, e, t, i, s) {
|
|
7641
7761
|
let o = a.getValue();
|
|
7642
7762
|
const r = s.verticalNavigation || "hybrid", n = String(o ?? ""), l = document.createElement("textarea");
|
|
7643
7763
|
let h = 0;
|
|
@@ -7683,7 +7803,7 @@ const Ln = function(a, e, t, i, s) {
|
|
|
7683
7803
|
break;
|
|
7684
7804
|
}
|
|
7685
7805
|
}), s.mask && xi(l, s), l;
|
|
7686
|
-
},
|
|
7806
|
+
}, An = function(a, e, t, i, s) {
|
|
7687
7807
|
const o = a.getValue(), r = document.createElement("input"), n = s.tristate, l = typeof s.indeterminateValue > "u" ? null : s.indeterminateValue;
|
|
7688
7808
|
let h = !1;
|
|
7689
7809
|
const c = Object.keys(s).includes("trueValue"), d = Object.keys(s).includes("falseValue");
|
|
@@ -7713,7 +7833,7 @@ const Ln = function(a, e, t, i, s) {
|
|
|
7713
7833
|
}), r.addEventListener("keydown", (f) => {
|
|
7714
7834
|
f.keyCode === 13 && t(u(!1)), f.keyCode === 27 && i();
|
|
7715
7835
|
}), r;
|
|
7716
|
-
},
|
|
7836
|
+
}, _n = process.env.NODE_ENV === "development", Nn = function(a, e, t, i, s) {
|
|
7717
7837
|
const o = s.format, r = s.verticalNavigation || "editor", n = o ? typeof window < "u" && window.DateTime || typeof globalThis < "u" && globalThis.luxon?.DateTime : null;
|
|
7718
7838
|
let l, h = a.getValue();
|
|
7719
7839
|
const c = document.createElement("input");
|
|
@@ -7728,7 +7848,7 @@ const Ln = function(a, e, t, i, s) {
|
|
|
7728
7848
|
} else
|
|
7729
7849
|
c.setAttribute(f, s.elementAttributes[f]);
|
|
7730
7850
|
const d = String(h ?? "");
|
|
7731
|
-
o && n && d !== "" ? (n.isDateTime?.(h) ? l = h : o === "iso" ? l = n.fromISO(d) : l = n.fromFormat(d, o), h = l.toFormat("HH:mm")) : o && !n &&
|
|
7851
|
+
o && n && d !== "" ? (n.isDateTime?.(h) ? l = h : o === "iso" ? l = n.fromISO(d) : l = n.fromFormat(d, o), h = l.toFormat("HH:mm")) : o && !n && _n && console.error(
|
|
7732
7852
|
"Editor Error - 'time' editor 'format' param is dependent on luxon.js"
|
|
7733
7853
|
);
|
|
7734
7854
|
const p = String(h ?? "");
|
|
@@ -7778,20 +7898,33 @@ const Ln = function(a, e, t, i, s) {
|
|
|
7778
7898
|
break;
|
|
7779
7899
|
}
|
|
7780
7900
|
}), c;
|
|
7781
|
-
},
|
|
7782
|
-
adaptable:
|
|
7783
|
-
date:
|
|
7784
|
-
datetime:
|
|
7785
|
-
input:
|
|
7786
|
-
list:
|
|
7787
|
-
number:
|
|
7788
|
-
progress:
|
|
7789
|
-
range:
|
|
7790
|
-
star:
|
|
7791
|
-
textarea:
|
|
7792
|
-
tickCross:
|
|
7793
|
-
time:
|
|
7794
|
-
}, Ze = process.env.NODE_ENV === "development",
|
|
7901
|
+
}, Vn = {
|
|
7902
|
+
adaptable: Sr,
|
|
7903
|
+
date: Mr,
|
|
7904
|
+
datetime: Lr,
|
|
7905
|
+
input: Dr,
|
|
7906
|
+
list: Dn,
|
|
7907
|
+
number: zn,
|
|
7908
|
+
progress: Fn,
|
|
7909
|
+
range: On,
|
|
7910
|
+
star: Hn,
|
|
7911
|
+
textarea: Pn,
|
|
7912
|
+
tickCross: An,
|
|
7913
|
+
time: Nn
|
|
7914
|
+
}, Ze = process.env.NODE_ENV === "development", Ds = "tabulator-edit-list-trigger", In = "tabulator-edit-list-trigger-caret", Bn = x`
|
|
7915
|
+
<button
|
|
7916
|
+
aria-label="Open list editor"
|
|
7917
|
+
class=${Ds}
|
|
7918
|
+
tabindex="-1"
|
|
7919
|
+
type="button"
|
|
7920
|
+
>
|
|
7921
|
+
<cx-icon
|
|
7922
|
+
aria-hidden="true"
|
|
7923
|
+
class=${In}
|
|
7924
|
+
name="arrow_drop_down"
|
|
7925
|
+
></cx-icon>
|
|
7926
|
+
</button>
|
|
7927
|
+
`, $e = class $e extends R {
|
|
7795
7928
|
constructor(e) {
|
|
7796
7929
|
super(e), this.currentCell = !1, this.mouseClick = !1, this.recursionBlock = !1, this.invalidEdit = !1, this.editedCells = [], this.convertEmptyValues = !1, this.editors = $e.editors, this.registerTableOption("editTriggerEvent", "focus"), this.registerTableOption("editorEmptyValue"), this.registerTableOption(
|
|
7797
7930
|
"editorEmptyValueFunc",
|
|
@@ -7841,7 +7974,7 @@ const Ln = function(a, e, t, i, s) {
|
|
|
7841
7974
|
);
|
|
7842
7975
|
}
|
|
7843
7976
|
initialize() {
|
|
7844
|
-
this.subscribe("cell-init", this.bindEditor.bind(this)), this.subscribe("cell-delete", this.clearEdited.bind(this)), this.subscribe("cell-value-changed", this.updateCellClass.bind(this)), this.subscribe("column-layout", this.initializeColumnCheck.bind(this)), this.subscribe("column-delete", this.columnDeleteCheck.bind(this)), this.subscribe("row-deleting", this.rowDeleteCheck.bind(this)), this.subscribe("row-layout", this.rowEditableCheck.bind(this)), this.subscribe("data-refreshing", this.cancelEdit.bind(this)), this.subscribe("clipboard-paste", this.pasteBlocker.bind(this)), this.subscribe(
|
|
7977
|
+
this.subscribe("cell-init", this.bindEditor.bind(this)), this.subscribe("cell-layout", this.addListEditorTrigger.bind(this)), this.subscribe("cell-delete", this.clearEdited.bind(this)), this.subscribe("cell-value-changed", this.updateCellClass.bind(this)), this.subscribe("column-layout", this.initializeColumnCheck.bind(this)), this.subscribe("column-delete", this.columnDeleteCheck.bind(this)), this.subscribe("row-deleting", this.rowDeleteCheck.bind(this)), this.subscribe("row-layout", this.rowEditableCheck.bind(this)), this.subscribe("data-refreshing", this.cancelEdit.bind(this)), this.subscribe("clipboard-paste", this.pasteBlocker.bind(this)), this.subscribe(
|
|
7845
7978
|
"keybinding-nav-prev",
|
|
7846
7979
|
this.navigatePrev.bind(this, void 0)
|
|
7847
7980
|
), this.subscribe(
|
|
@@ -8033,7 +8166,7 @@ const Ln = function(a, e, t, i, s) {
|
|
|
8033
8166
|
return;
|
|
8034
8167
|
this.updateCellClass(e), t.setAttribute("tabindex", "0"), typeof e.column.definition.editor == "string" && t.classList.add(
|
|
8035
8168
|
`tabulator-edit-${e.column.definition.editor}`
|
|
8036
|
-
), t.addEventListener("mousedown", (i) => {
|
|
8169
|
+
), this.addListEditorTrigger(e), t.addEventListener("mousedown", (i) => {
|
|
8037
8170
|
i.button === 2 ? i.preventDefault() : this.mouseClick = !0;
|
|
8038
8171
|
}), this.options("editTriggerEvent") === "dblclick" && t.addEventListener("dblclick", (i) => {
|
|
8039
8172
|
t.classList.contains("tabulator-editing") || (t.focus({ preventScroll: !0 }), this.edit(e, i, !1));
|
|
@@ -8044,6 +8177,21 @@ const Ln = function(a, e, t, i, s) {
|
|
|
8044
8177
|
});
|
|
8045
8178
|
}
|
|
8046
8179
|
}
|
|
8180
|
+
addListEditorTrigger(e) {
|
|
8181
|
+
if (e.column.definition.editor !== "list")
|
|
8182
|
+
return;
|
|
8183
|
+
const t = e.getElement(!0);
|
|
8184
|
+
if (!t || t.classList.contains("tabulator-editing") || t.querySelector(`.${Ds}`))
|
|
8185
|
+
return;
|
|
8186
|
+
const i = T(
|
|
8187
|
+
Bn
|
|
8188
|
+
);
|
|
8189
|
+
i.addEventListener("mousedown", (s) => {
|
|
8190
|
+
s.preventDefault(), s.stopPropagation();
|
|
8191
|
+
}), i.addEventListener("click", (s) => {
|
|
8192
|
+
s.stopPropagation(), t.classList.contains("tabulator-editing") || (t.focus({ preventScroll: !0 }), this.edit(e, s, !1));
|
|
8193
|
+
}), t.appendChild(i);
|
|
8194
|
+
}
|
|
8047
8195
|
focusCellNoEvent(e, t = !1) {
|
|
8048
8196
|
this.recursionBlock = !0, t && this.table.browser === "ie" || e.getElement()?.focus({ preventScroll: !0 }), this.recursionBlock = !1;
|
|
8049
8197
|
}
|
|
@@ -8177,9 +8325,9 @@ const Ln = function(a, e, t, i, s) {
|
|
|
8177
8325
|
t > -1 && this.editedCells.splice(t, 1);
|
|
8178
8326
|
}
|
|
8179
8327
|
};
|
|
8180
|
-
$e.moduleName = "edit", $e.editors =
|
|
8328
|
+
$e.moduleName = "edit", $e.editors = Vn;
|
|
8181
8329
|
let Pt = $e;
|
|
8182
|
-
const
|
|
8330
|
+
const Wn = {}, Gn = {
|
|
8183
8331
|
active: function() {
|
|
8184
8332
|
return this.options.pagination ? this.rowManager?.getDisplayRows(
|
|
8185
8333
|
this.rowManager.displayRows.length - 2
|
|
@@ -8205,7 +8353,7 @@ class is {
|
|
|
8205
8353
|
this.type = e, this.columns = t, this.component = i ?? !1, this.indent = s ?? 0;
|
|
8206
8354
|
}
|
|
8207
8355
|
}
|
|
8208
|
-
const
|
|
8356
|
+
const jn = process.env.NODE_ENV === "development", ge = class ge extends R {
|
|
8209
8357
|
constructor(e) {
|
|
8210
8358
|
super(e), this.config = {}, this.cloneTableStyle = !0, this.colVisProp = "", this.colVisPropAttach = "", this.registerTableOption("htmlOutputConfig", !1), this.registerColumnOption("htmlOutput"), this.registerColumnOption("titleHtmlOutput");
|
|
8211
8359
|
}
|
|
@@ -8374,7 +8522,7 @@ const Bn = process.env.NODE_ENV === "development", ge = class ge extends R {
|
|
|
8374
8522
|
"font-weight",
|
|
8375
8523
|
"font-family",
|
|
8376
8524
|
"font-size"
|
|
8377
|
-
]), e.length > 1e3 &&
|
|
8525
|
+
]), e.length > 1e3 && jn && console.warn(
|
|
8378
8526
|
"It may take a long time to render an HTML table with more than 1000 rows"
|
|
8379
8527
|
), e.forEach((h, c) => {
|
|
8380
8528
|
let d;
|
|
@@ -8661,9 +8809,9 @@ const Bn = process.env.NODE_ENV === "development", ge = class ge extends R {
|
|
|
8661
8809
|
}
|
|
8662
8810
|
}
|
|
8663
8811
|
};
|
|
8664
|
-
ge.moduleName = "export", ge.columnLookups =
|
|
8812
|
+
ge.moduleName = "export", ge.columnLookups = Wn, ge.rowLookups = Gn;
|
|
8665
8813
|
let At = ge;
|
|
8666
|
-
const ss = process.env.NODE_ENV === "development",
|
|
8814
|
+
const ss = process.env.NODE_ENV === "development", $n = {
|
|
8667
8815
|
// not equal to
|
|
8668
8816
|
"!=": function(a, e, t, i) {
|
|
8669
8817
|
return e != a;
|
|
@@ -9324,9 +9472,9 @@ const ss = process.env.NODE_ENV === "development", Wn = {
|
|
|
9324
9472
|
}) : i = e.func(t), i;
|
|
9325
9473
|
}
|
|
9326
9474
|
};
|
|
9327
|
-
ee.moduleName = "filter", ee.filters =
|
|
9475
|
+
ee.moduleName = "filter", ee.filters = $n;
|
|
9328
9476
|
let _t = ee;
|
|
9329
|
-
const
|
|
9477
|
+
const Un = process.env.NODE_ENV === "development", Mi = class Mi extends R {
|
|
9330
9478
|
constructor(e) {
|
|
9331
9479
|
super(e), this.leftColumns = [], this.rightColumns = [], this.initializationMode = "left", this.active = !1, this.blocked = !0, this.registerColumnOption("frozen");
|
|
9332
9480
|
}
|
|
@@ -9357,7 +9505,7 @@ const Gn = process.env.NODE_ENV === "development", Mi = class Mi extends R {
|
|
|
9357
9505
|
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");
|
|
9358
9506
|
}
|
|
9359
9507
|
frozenCheck(e) {
|
|
9360
|
-
return e.parent instanceof K && e.parent.isGroup && e.definition.frozen &&
|
|
9508
|
+
return e.parent instanceof K && e.parent.isGroup && e.definition.frozen && Un && console.warn(
|
|
9361
9509
|
"Frozen Column Error - Parent column group must be frozen, not individual columns or sub column groups"
|
|
9362
9510
|
), e.parent instanceof K && e.parent.isGroup ? this.frozenCheck(e.parent) : !!e.definition.frozen;
|
|
9363
9511
|
}
|
|
@@ -9539,15 +9687,15 @@ const os = process.env.NODE_ENV === "development", ki = class ki extends R {
|
|
|
9539
9687
|
};
|
|
9540
9688
|
ki.moduleName = "frozenRows";
|
|
9541
9689
|
let Vt = ki;
|
|
9542
|
-
const
|
|
9690
|
+
const Kn = process.env.NODE_ENV === "development", Xn = x`<cx-icon-button
|
|
9543
9691
|
class="tabulator-group-toggle"
|
|
9544
9692
|
name="keyboard_arrow_down"
|
|
9545
|
-
></cx-icon-button>`,
|
|
9693
|
+
></cx-icon-button>`, Jn = x`<div class="tabulator-group-level-indent"></div>`, qn = x`
|
|
9546
9694
|
<cx-button size="small">
|
|
9547
9695
|
<cx-icon slot="prefix" name="add" variant="outlined" ></cx-icon>
|
|
9548
9696
|
Load More
|
|
9549
9697
|
</cx-button>
|
|
9550
|
-
`,
|
|
9698
|
+
`, Yn = x`<div class="tabulator-data-tree-loading">Loading...</div>`;
|
|
9551
9699
|
class ze {
|
|
9552
9700
|
constructor(e, t, i, s, o, r, n) {
|
|
9553
9701
|
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 = n, 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 = n ? n.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();
|
|
@@ -9566,7 +9714,7 @@ class ze {
|
|
|
9566
9714
|
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(
|
|
9567
9715
|
"role",
|
|
9568
9716
|
this.groupManager.table.options.rowGroupRole ?? "rowgroup"
|
|
9569
|
-
), this.arrowElement = T(
|
|
9717
|
+
), this.arrowElement = T(Xn), this.groupManager.table.options.movableRows !== !1 && this.groupManager.table.modExists("moveRow") && this.groupManager.table.modules.moveRow.initializeGroupHeader(
|
|
9570
9718
|
this
|
|
9571
9719
|
);
|
|
9572
9720
|
}
|
|
@@ -9630,7 +9778,7 @@ class ze {
|
|
|
9630
9778
|
let s = i.querySelector(
|
|
9631
9779
|
".tabulator-group-level-indent"
|
|
9632
9780
|
);
|
|
9633
|
-
s || (s = T(
|
|
9781
|
+
s || (s = T(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();
|
|
9634
9782
|
}
|
|
9635
9783
|
}
|
|
9636
9784
|
insertRow(e, t, i) {
|
|
@@ -9651,7 +9799,7 @@ class ze {
|
|
|
9651
9799
|
}
|
|
9652
9800
|
// update row data to match grouping constraints
|
|
9653
9801
|
conformRowData(e) {
|
|
9654
|
-
return this.field ? e[this.field] = this.key :
|
|
9802
|
+
return this.field ? e[this.field] = this.key : Kn && console.warn(
|
|
9655
9803
|
"Data Conforming Error - Cannot conform row data to match new group as groupBy is a function"
|
|
9656
9804
|
), this.parent && (e = this.parent.conformRowData(e)), e;
|
|
9657
9805
|
}
|
|
@@ -9670,13 +9818,13 @@ class ze {
|
|
|
9670
9818
|
return Ss(yi(this));
|
|
9671
9819
|
}
|
|
9672
9820
|
getLoadMoreState() {
|
|
9673
|
-
return
|
|
9821
|
+
return Xo(
|
|
9674
9822
|
this.groupManager.table.options.groupLoadMoreMeta,
|
|
9675
9823
|
this.getPathKey()
|
|
9676
9824
|
);
|
|
9677
9825
|
}
|
|
9678
9826
|
getGroupLoadMoreEventPayload() {
|
|
9679
|
-
return
|
|
9827
|
+
return Jo(this);
|
|
9680
9828
|
}
|
|
9681
9829
|
generateLoadMoreRow() {
|
|
9682
9830
|
const e = this.getLoadMoreState(), t = `hasMore:${!!e?.hasMore}|loading:${!!e?.loading}`;
|
|
@@ -9691,10 +9839,10 @@ class ze {
|
|
|
9691
9839
|
i
|
|
9692
9840
|
), o = (this.level + 1) * (this.groupManager.table.options.groupIndent ?? Cs);
|
|
9693
9841
|
if (s.create(), e.loading) {
|
|
9694
|
-
const l = T(
|
|
9842
|
+
const l = T(Yn);
|
|
9695
9843
|
return s.element.appendChild(l), this.applyGroupIndent(l, o), this._loadMoreRow = s, s;
|
|
9696
9844
|
}
|
|
9697
|
-
const r = T(
|
|
9845
|
+
const r = T(qn), n = this.getGroupLoadMoreEventPayload();
|
|
9698
9846
|
return s.element.appendChild(r), this.applyGroupIndent(r, o), r.addEventListener("click", (l) => {
|
|
9699
9847
|
l.preventDefault(), l.stopPropagation(), l.stopImmediatePropagation(), this.groupManager.table.externalEvents?.dispatch("groupLoadMore", n);
|
|
9700
9848
|
}), this._loadMoreRow = s, s;
|
|
@@ -10286,7 +10434,7 @@ const vt = process.env.NODE_ENV === "development", Li = class Li extends R {
|
|
|
10286
10434
|
};
|
|
10287
10435
|
Li.moduleName = "groupRows";
|
|
10288
10436
|
let It = Li;
|
|
10289
|
-
const
|
|
10437
|
+
const Qn = {
|
|
10290
10438
|
cellEdit: function(a) {
|
|
10291
10439
|
"setValueProcessData" in a.component && (a.component.setValueProcessData(a.data.newValue), a.component.cellRendered());
|
|
10292
10440
|
},
|
|
@@ -10313,7 +10461,7 @@ const Jn = {
|
|
|
10313
10461
|
), this.table.rowManager.regenerateRowPositions(), this.table.rowManager.reRenderInPosition());
|
|
10314
10462
|
}
|
|
10315
10463
|
}
|
|
10316
|
-
},
|
|
10464
|
+
}, Zn = {
|
|
10317
10465
|
cellEdit: function(a) {
|
|
10318
10466
|
"setValueProcessData" in a.component && (a.component.setValueProcessData(a.data.oldValue), a.component.cellRendered());
|
|
10319
10467
|
},
|
|
@@ -10340,7 +10488,7 @@ const Jn = {
|
|
|
10340
10488
|
), this.table.rowManager.regenerateRowPositions(), this.table.rowManager.reRenderInPosition());
|
|
10341
10489
|
}
|
|
10342
10490
|
}
|
|
10343
|
-
},
|
|
10491
|
+
}, ea = {
|
|
10344
10492
|
redo: function(a) {
|
|
10345
10493
|
let e;
|
|
10346
10494
|
this.table.options.history && this.table.modExists("history") && this.table.modExists("edit") && (e = this.table.modules.edit?.currentCell, e || (a.preventDefault(), this.table.modules.history?.redo()));
|
|
@@ -10349,13 +10497,13 @@ const Jn = {
|
|
|
10349
10497
|
let e;
|
|
10350
10498
|
this.table.options.history && this.table.modExists("history") && this.table.modExists("edit") && (e = this.table.modules.edit?.currentCell, e || (a.preventDefault(), this.table.modules.history?.undo()));
|
|
10351
10499
|
}
|
|
10352
|
-
},
|
|
10500
|
+
}, ta = {
|
|
10353
10501
|
redo: ["ctrl + 89", "meta + 89"],
|
|
10354
10502
|
undo: ["ctrl + 90", "meta + 90"]
|
|
10355
|
-
},
|
|
10503
|
+
}, ia = {
|
|
10356
10504
|
keybindings: {
|
|
10357
|
-
actions:
|
|
10358
|
-
bindings:
|
|
10505
|
+
actions: ea,
|
|
10506
|
+
bindings: ta
|
|
10359
10507
|
}
|
|
10360
10508
|
}, rs = process.env.NODE_ENV === "development", se = class se extends R {
|
|
10361
10509
|
constructor(e) {
|
|
@@ -10475,9 +10623,9 @@ const Jn = {
|
|
|
10475
10623
|
});
|
|
10476
10624
|
}
|
|
10477
10625
|
};
|
|
10478
|
-
se.moduleName = "history", se.moduleExtensions =
|
|
10626
|
+
se.moduleName = "history", se.moduleExtensions = ia, se.undoers = Zn, se.redoers = Qn;
|
|
10479
10627
|
let Bt = se;
|
|
10480
|
-
const
|
|
10628
|
+
const sa = process.env.NODE_ENV === "development", Di = class Di extends R {
|
|
10481
10629
|
constructor(e) {
|
|
10482
10630
|
super(e), this.fieldIndex = [], this.hasIndex = !1;
|
|
10483
10631
|
}
|
|
@@ -10485,7 +10633,7 @@ const ea = process.env.NODE_ENV === "development", Di = class Di extends R {
|
|
|
10485
10633
|
this.tableElementCheck();
|
|
10486
10634
|
}
|
|
10487
10635
|
tableElementCheck() {
|
|
10488
|
-
this.table.originalElement?.tagName === "TABLE" && (this.table.originalElement.childNodes.length ? this.parseTable() :
|
|
10636
|
+
this.table.originalElement?.tagName === "TABLE" && (this.table.originalElement.childNodes.length ? this.parseTable() : sa && console.warn(
|
|
10489
10637
|
"Unable to parse data from empty table tag, Tabulator should be initialized on a div tag unless importing data from a table element."
|
|
10490
10638
|
));
|
|
10491
10639
|
}
|
|
@@ -10558,10 +10706,10 @@ const ea = process.env.NODE_ENV === "development", Di = class Di extends R {
|
|
|
10558
10706
|
};
|
|
10559
10707
|
Di.moduleName = "htmlTableImport";
|
|
10560
10708
|
let Wt = Di;
|
|
10561
|
-
function
|
|
10709
|
+
function oa(a) {
|
|
10562
10710
|
return a;
|
|
10563
10711
|
}
|
|
10564
|
-
function
|
|
10712
|
+
function ra(a) {
|
|
10565
10713
|
const e = [];
|
|
10566
10714
|
let t = 0, i = 0, s = !1;
|
|
10567
10715
|
for (let o = 0; o < a.length; o++) {
|
|
@@ -10592,15 +10740,15 @@ function ia(a) {
|
|
|
10592
10740
|
}
|
|
10593
10741
|
return e;
|
|
10594
10742
|
}
|
|
10595
|
-
const
|
|
10596
|
-
async function
|
|
10743
|
+
const na = process.env.NODE_ENV === "development";
|
|
10744
|
+
async function aa(a) {
|
|
10597
10745
|
try {
|
|
10598
10746
|
return JSON.parse(a);
|
|
10599
10747
|
} catch (e) {
|
|
10600
|
-
throw
|
|
10748
|
+
throw na && console.warn("JSON Import Error - File contents is invalid JSON", e), new Error("Invalid JSON format");
|
|
10601
10749
|
}
|
|
10602
10750
|
}
|
|
10603
|
-
const ns = process.env.NODE_ENV === "development",
|
|
10751
|
+
const ns = process.env.NODE_ENV === "development", la = function(a) {
|
|
10604
10752
|
const t = this.dependencyRegistry.lookup("XLSX");
|
|
10605
10753
|
if (!t)
|
|
10606
10754
|
return ns && console.warn("XLSX library not found in dependency registry"), [];
|
|
@@ -10609,11 +10757,11 @@ const ns = process.env.NODE_ENV === "development", ra = function(a) {
|
|
|
10609
10757
|
return ns && console.warn("XLSX workbook contains no sheets"), [];
|
|
10610
10758
|
const s = i.Sheets[i.SheetNames[0]];
|
|
10611
10759
|
return t.utils.sheet_to_json(s, { header: 1 });
|
|
10612
|
-
},
|
|
10613
|
-
array:
|
|
10614
|
-
csv:
|
|
10615
|
-
json:
|
|
10616
|
-
xlsx:
|
|
10760
|
+
}, ha = {
|
|
10761
|
+
array: oa,
|
|
10762
|
+
csv: ra,
|
|
10763
|
+
json: aa,
|
|
10764
|
+
xlsx: la
|
|
10617
10765
|
}, We = process.env.NODE_ENV === "development", Ue = class Ue extends R {
|
|
10618
10766
|
constructor(e) {
|
|
10619
10767
|
super(e), this.registerTableOption("importFormat"), this.registerTableOption("importReader", "text"), this.registerTableOption("importHeaderTransform"), this.registerTableOption("importValueTransform"), this.registerTableOption("importDataValidator"), this.registerTableOption("importFileValidator");
|
|
@@ -10770,7 +10918,7 @@ const ns = process.env.NODE_ENV === "development", ra = function(a) {
|
|
|
10770
10918
|
return this.dispatch("import-imported", e), this.dispatchExternal("importImported", e), this.table.dataLoader?.clearAlert(), this.table.setData(e);
|
|
10771
10919
|
}
|
|
10772
10920
|
};
|
|
10773
|
-
Ue.moduleName = "import", Ue.importers =
|
|
10921
|
+
Ue.moduleName = "import", Ue.importers = ha;
|
|
10774
10922
|
let Gt = Ue;
|
|
10775
10923
|
const zi = class zi extends R {
|
|
10776
10924
|
constructor(e) {
|
|
@@ -10956,7 +11104,7 @@ const zi = class zi extends R {
|
|
|
10956
11104
|
};
|
|
10957
11105
|
zi.moduleName = "interaction";
|
|
10958
11106
|
let jt = zi;
|
|
10959
|
-
const
|
|
11107
|
+
const ca = {
|
|
10960
11108
|
keyBlock: function(a) {
|
|
10961
11109
|
a.stopPropagation(), a.preventDefault();
|
|
10962
11110
|
},
|
|
@@ -11004,7 +11152,7 @@ const aa = {
|
|
|
11004
11152
|
const e = this.table.rowManager;
|
|
11005
11153
|
e && (a.preventDefault(), e.displayRowsCount && e.scrollToRow(e.getDisplayRows()[0]), this.table.element.focus());
|
|
11006
11154
|
}
|
|
11007
|
-
},
|
|
11155
|
+
}, da = {
|
|
11008
11156
|
navDown: 40,
|
|
11009
11157
|
navLeft: 37,
|
|
11010
11158
|
navNext: 9,
|
|
@@ -11015,7 +11163,7 @@ const aa = {
|
|
|
11015
11163
|
scrollPageUp: 33,
|
|
11016
11164
|
scrollToEnd: 35,
|
|
11017
11165
|
scrollToStart: 36
|
|
11018
|
-
},
|
|
11166
|
+
}, ua = process.env.NODE_ENV === "development", me = class me extends R {
|
|
11019
11167
|
constructor(e) {
|
|
11020
11168
|
super(e), this.watchKeys = null, this.pressedKeys = null, this.keyupBinding = !1, this.keydownBinding = !1, this.registerTableOption("keybindings", {}), this.registerTableOption("tabEndNewRow", !1);
|
|
11021
11169
|
}
|
|
@@ -11029,7 +11177,7 @@ const aa = {
|
|
|
11029
11177
|
(Array.isArray(i) ? i : [i]).forEach((o) => {
|
|
11030
11178
|
this.mapBinding(t, o);
|
|
11031
11179
|
});
|
|
11032
|
-
})) :
|
|
11180
|
+
})) : ua && console.warn("Key Binding Error - no such action:", t);
|
|
11033
11181
|
}
|
|
11034
11182
|
mapBinding(e, t) {
|
|
11035
11183
|
const i = {
|
|
@@ -11082,7 +11230,7 @@ const aa = {
|
|
|
11082
11230
|
}), i && t.action.call(this, e), !0) : !1;
|
|
11083
11231
|
}
|
|
11084
11232
|
};
|
|
11085
|
-
me.moduleName = "keybindings", me.bindings =
|
|
11233
|
+
me.moduleName = "keybindings", me.bindings = da, me.actions = ca;
|
|
11086
11234
|
let $t = me;
|
|
11087
11235
|
const Fi = class Fi extends R {
|
|
11088
11236
|
constructor(e) {
|
|
@@ -11367,7 +11515,7 @@ const Oi = class Oi extends R {
|
|
|
11367
11515
|
};
|
|
11368
11516
|
Oi.moduleName = "moveColumn";
|
|
11369
11517
|
let Kt = Oi;
|
|
11370
|
-
const
|
|
11518
|
+
const pa = {
|
|
11371
11519
|
add: function(a, e, t) {
|
|
11372
11520
|
return a && this.table.addRow(a.getData("")), !0;
|
|
11373
11521
|
},
|
|
@@ -11380,7 +11528,7 @@ const ca = {
|
|
|
11380
11528
|
update: function(a, e, t) {
|
|
11381
11529
|
return e && a ? (e.update(a.getData("")), !0) : !1;
|
|
11382
11530
|
}
|
|
11383
|
-
},
|
|
11531
|
+
}, fa = {
|
|
11384
11532
|
delete: function(a, e, t) {
|
|
11385
11533
|
a && a.delete();
|
|
11386
11534
|
}
|
|
@@ -11726,9 +11874,9 @@ const ca = {
|
|
|
11726
11874
|
}
|
|
11727
11875
|
}
|
|
11728
11876
|
};
|
|
11729
|
-
Re.moduleName = "moveRow", Re.senders =
|
|
11877
|
+
Re.moduleName = "moveRow", Re.senders = fa, Re.receivers = pa;
|
|
11730
11878
|
let Xt = Re;
|
|
11731
|
-
const
|
|
11879
|
+
const ga = {}, ma = process.env.NODE_ENV === "development", Pe = class Pe extends R {
|
|
11732
11880
|
constructor(e) {
|
|
11733
11881
|
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");
|
|
11734
11882
|
}
|
|
@@ -11754,7 +11902,7 @@ const ua = {}, pa = process.env.NODE_ENV === "development", Pe = class Pe extend
|
|
|
11754
11902
|
let t = !1;
|
|
11755
11903
|
switch (typeof e) {
|
|
11756
11904
|
case "string":
|
|
11757
|
-
Pe.mutators[e] ? t = Pe.mutators[e] :
|
|
11905
|
+
Pe.mutators[e] ? t = Pe.mutators[e] : ma && console.warn(
|
|
11758
11906
|
"Mutator Error - No such mutator found, ignoring: ",
|
|
11759
11907
|
e
|
|
11760
11908
|
);
|
|
@@ -11817,7 +11965,7 @@ const ua = {}, pa = process.env.NODE_ENV === "development", Pe = class Pe extend
|
|
|
11817
11965
|
this.enabled = !1;
|
|
11818
11966
|
}
|
|
11819
11967
|
};
|
|
11820
|
-
Pe.moduleName = "mutator", Pe.mutators =
|
|
11968
|
+
Pe.moduleName = "mutator", Pe.mutators = ga;
|
|
11821
11969
|
let Jt = Pe;
|
|
11822
11970
|
const Hi = class Hi extends R {
|
|
11823
11971
|
constructor(e) {
|
|
@@ -12102,7 +12250,7 @@ const Hi = class Hi extends R {
|
|
|
12102
12250
|
};
|
|
12103
12251
|
Hi.moduleName = "page";
|
|
12104
12252
|
let qt = Hi;
|
|
12105
|
-
const as = process.env.NODE_ENV === "development",
|
|
12253
|
+
const as = process.env.NODE_ENV === "development", ba = {
|
|
12106
12254
|
cookie: function(a, e) {
|
|
12107
12255
|
let t = document.cookie;
|
|
12108
12256
|
const i = a + "-" + e, s = t.indexOf(i + "=");
|
|
@@ -12130,7 +12278,7 @@ const as = process.env.NODE_ENV === "development", fa = {
|
|
|
12130
12278
|
return as && console.error("Failed to parse localStorage data:", i), !1;
|
|
12131
12279
|
}
|
|
12132
12280
|
}
|
|
12133
|
-
},
|
|
12281
|
+
}, wa = {
|
|
12134
12282
|
cookie: function(a, e, t) {
|
|
12135
12283
|
const i = /* @__PURE__ */ new Date();
|
|
12136
12284
|
i.setDate(i.getDate() + 1e4), document.cookie = a + "-" + e + "=" + encodeURIComponent(JSON.stringify(t)) + "; expires=" + i.toUTCString();
|
|
@@ -12345,7 +12493,7 @@ const as = process.env.NODE_ENV === "development", fa = {
|
|
|
12345
12493
|
}), t;
|
|
12346
12494
|
}
|
|
12347
12495
|
};
|
|
12348
|
-
$.moduleName = "persistence", $.moduleInitOrder = -10, $.readers =
|
|
12496
|
+
$.moduleName = "persistence", $.moduleInitOrder = -10, $.readers = ba, $.writers = wa;
|
|
12349
12497
|
let Yt = $;
|
|
12350
12498
|
const Pi = class Pi extends R {
|
|
12351
12499
|
constructor(e) {
|
|
@@ -12993,7 +13141,7 @@ const Ii = class Ii extends R {
|
|
|
12993
13141
|
};
|
|
12994
13142
|
Ii.moduleName = "resizeTable";
|
|
12995
13143
|
let si = Ii;
|
|
12996
|
-
function
|
|
13144
|
+
function va(a) {
|
|
12997
13145
|
const e = document.createElement("div"), t = a.getRow()._row.modules.responsiveLayout;
|
|
12998
13146
|
e.classList.add("tabulator-responsive-collapse-toggle"), e.innerHTML = `<svg class='tabulator-responsive-collapse-toggle-open' viewBox="0 0 24 24">
|
|
12999
13147
|
<line x1="7" y1="12" x2="17" y2="12" fill="none" stroke-width="3" stroke-linecap="round" />
|
|
@@ -13011,10 +13159,10 @@ function ma(a) {
|
|
|
13011
13159
|
s.stopImmediatePropagation(), i(!t.open), a.getTable()?.rowManager?.adjustTableSize();
|
|
13012
13160
|
}), i(t.open), e;
|
|
13013
13161
|
}
|
|
13014
|
-
const
|
|
13162
|
+
const ya = {
|
|
13015
13163
|
format: {
|
|
13016
13164
|
formatters: {
|
|
13017
|
-
responsiveCollapse:
|
|
13165
|
+
responsiveCollapse: va
|
|
13018
13166
|
}
|
|
13019
13167
|
}
|
|
13020
13168
|
}, rt = class rt extends R {
|
|
@@ -13176,11 +13324,11 @@ const ba = {
|
|
|
13176
13324
|
}), Object.keys(e).length ? t : "";
|
|
13177
13325
|
}
|
|
13178
13326
|
};
|
|
13179
|
-
rt.moduleName = "responsiveLayout", rt.moduleExtensions =
|
|
13327
|
+
rt.moduleName = "responsiveLayout", rt.moduleExtensions = ya;
|
|
13180
13328
|
let oi = rt;
|
|
13181
|
-
const
|
|
13182
|
-
function
|
|
13183
|
-
const t = T(
|
|
13329
|
+
const Ca = x`<cx-checkbox></cx-checkbox>`;
|
|
13330
|
+
function Ea(a, e) {
|
|
13331
|
+
const t = T(Ca);
|
|
13184
13332
|
let i = t, s = !1;
|
|
13185
13333
|
t.setAttribute("aria-label", "Select Row"), t.size = "small";
|
|
13186
13334
|
const o = this.table;
|
|
@@ -13200,10 +13348,10 @@ function va(a, e) {
|
|
|
13200
13348
|
}), o.modules.selectRow?.registerHeaderSelectCheckbox(t);
|
|
13201
13349
|
return i;
|
|
13202
13350
|
}
|
|
13203
|
-
const
|
|
13351
|
+
const xa = {
|
|
13204
13352
|
format: {
|
|
13205
13353
|
formatters: {
|
|
13206
|
-
rowSelection:
|
|
13354
|
+
rowSelection: Ea
|
|
13207
13355
|
}
|
|
13208
13356
|
}
|
|
13209
13357
|
}, hs = process.env.NODE_ENV === "development", nt = class nt extends R {
|
|
@@ -13429,9 +13577,9 @@ const ya = {
|
|
|
13429
13577
|
this._deselectRow(s, !0);
|
|
13430
13578
|
}
|
|
13431
13579
|
};
|
|
13432
|
-
nt.moduleName = "selectRow", nt.moduleExtensions =
|
|
13580
|
+
nt.moduleName = "selectRow", nt.moduleExtensions = xa;
|
|
13433
13581
|
let ri = nt;
|
|
13434
|
-
const
|
|
13582
|
+
const Ra = {
|
|
13435
13583
|
range: function(a) {
|
|
13436
13584
|
if (!a || a.length === 0)
|
|
13437
13585
|
return [];
|
|
@@ -13451,7 +13599,7 @@ const Ca = {
|
|
|
13451
13599
|
}
|
|
13452
13600
|
return e;
|
|
13453
13601
|
}
|
|
13454
|
-
},
|
|
13602
|
+
}, Sa = {
|
|
13455
13603
|
range: function(a) {
|
|
13456
13604
|
const e = [], t = [], i = this.table.modules.selectRange.activeRange;
|
|
13457
13605
|
let s = !1, o, r, n, l, h;
|
|
@@ -13473,16 +13621,16 @@ const Ca = {
|
|
|
13473
13621
|
}
|
|
13474
13622
|
return !1;
|
|
13475
13623
|
}
|
|
13476
|
-
},
|
|
13624
|
+
}, Ta = {
|
|
13477
13625
|
range: function() {
|
|
13478
13626
|
const a = this.modules.selectRange.selectedColumns();
|
|
13479
13627
|
return this.columnManager?.rowHeader && a.unshift(this.columnManager.rowHeader), a;
|
|
13480
13628
|
}
|
|
13481
|
-
},
|
|
13629
|
+
}, Ma = process.env.NODE_ENV === "development", ka = {
|
|
13482
13630
|
range: function() {
|
|
13483
|
-
return this.modules?.selectRange ? this.modules.selectRange.selectedRows() : (
|
|
13631
|
+
return this.modules?.selectRange ? this.modules.selectRange.selectedRows() : (Ma && console.warn("SelectRange module not loaded"), []);
|
|
13484
13632
|
}
|
|
13485
|
-
},
|
|
13633
|
+
}, La = {
|
|
13486
13634
|
rangeExpandDown: function(a) {
|
|
13487
13635
|
this.dispatch("keybinding-nav-range", a, "down", !1, !0);
|
|
13488
13636
|
},
|
|
@@ -13519,7 +13667,7 @@ const Ca = {
|
|
|
13519
13667
|
rangeJumpUp: function(a) {
|
|
13520
13668
|
this.dispatch("keybinding-nav-range", a, "up", !0, !1);
|
|
13521
13669
|
}
|
|
13522
|
-
},
|
|
13670
|
+
}, Da = {
|
|
13523
13671
|
rangeExpandDown: "shift + 40",
|
|
13524
13672
|
rangeExpandJumpDown: ["ctrl + shift + 40", "meta + shift + 40"],
|
|
13525
13673
|
rangeExpandJumpLeft: ["ctrl + shift + 37", "meta + shift + 37"],
|
|
@@ -13532,21 +13680,21 @@ const Ca = {
|
|
|
13532
13680
|
rangeJumpLeft: ["ctrl + 37", "meta + 37"],
|
|
13533
13681
|
rangeJumpRight: ["ctrl + 39", "meta + 39"],
|
|
13534
13682
|
rangeJumpUp: ["ctrl + 38", "meta + 38"]
|
|
13535
|
-
},
|
|
13683
|
+
}, za = {
|
|
13536
13684
|
clipboard: {
|
|
13537
|
-
pasteActions:
|
|
13538
|
-
pasteParsers:
|
|
13685
|
+
pasteActions: Ra,
|
|
13686
|
+
pasteParsers: Sa
|
|
13539
13687
|
},
|
|
13540
13688
|
export: {
|
|
13541
|
-
columnLookups:
|
|
13542
|
-
rowLookups:
|
|
13689
|
+
columnLookups: Ta,
|
|
13690
|
+
rowLookups: ka
|
|
13543
13691
|
},
|
|
13544
13692
|
keybindings: {
|
|
13545
|
-
actions:
|
|
13546
|
-
bindings:
|
|
13693
|
+
actions: La,
|
|
13694
|
+
bindings: Da
|
|
13547
13695
|
}
|
|
13548
13696
|
};
|
|
13549
|
-
class
|
|
13697
|
+
class Fa {
|
|
13550
13698
|
constructor(e) {
|
|
13551
13699
|
return this._range = e, new Proxy(this, {
|
|
13552
13700
|
get: function(t, i) {
|
|
@@ -13611,7 +13759,7 @@ class La {
|
|
|
13611
13759
|
}
|
|
13612
13760
|
}
|
|
13613
13761
|
const cs = process.env.NODE_ENV === "development";
|
|
13614
|
-
class
|
|
13762
|
+
class Oa extends I {
|
|
13615
13763
|
constructor(e, t, i, s) {
|
|
13616
13764
|
super(e), this.rangeManager = t, this.element = null, this.initialized = !1, this.initializing = {
|
|
13617
13765
|
end: !1,
|
|
@@ -13744,7 +13892,7 @@ class Da extends I {
|
|
|
13744
13892
|
return t.length ? (i.start = t[0], i.end = t.at(-1)) : cs && console.warn("No bounds defined on range"), i;
|
|
13745
13893
|
}
|
|
13746
13894
|
getComponent() {
|
|
13747
|
-
return this.component ??= new
|
|
13895
|
+
return this.component ??= new Fa(this), this.component;
|
|
13748
13896
|
}
|
|
13749
13897
|
destroy(e) {
|
|
13750
13898
|
this.destroyed = !0, this.element && this.element.remove(), e && this.rangeManager.rangeRemoved(this), this.initialized && this.dispatchExternal("rangeRemoved", this.getComponent());
|
|
@@ -13755,7 +13903,7 @@ class Da extends I {
|
|
|
13755
13903
|
), !this.destroyed;
|
|
13756
13904
|
}
|
|
13757
13905
|
}
|
|
13758
|
-
const Ce = process.env.NODE_ENV === "development",
|
|
13906
|
+
const Ce = process.env.NODE_ENV === "development", Ha = x`<div class="tabulator-range-cell-hover"></div>`, Ke = class Ke extends R {
|
|
13759
13907
|
constructor(e) {
|
|
13760
13908
|
super(e), this.selecting = q.Cell, this.mousedown = !1, this.ranges = [], this.overlay = null, this.rowHeader = null, this.layoutChangeTimeout = 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(
|
|
13761
13909
|
"addRange",
|
|
@@ -13789,7 +13937,7 @@ const Ce = process.env.NODE_ENV === "development", za = x`<div class="tabulator-
|
|
|
13789
13937
|
));
|
|
13790
13938
|
}
|
|
13791
13939
|
initializeTable() {
|
|
13792
|
-
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 = T(
|
|
13940
|
+
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 = T(Ha), this.overlay.appendChild(this.rangeContainer), this.overlay.appendChild(this.hoverRangeCellElement), this.overlay.appendChild(this.activeRangeCellElement), this.table.rowManager?.element && this.table.rowManager.element.addEventListener(
|
|
13793
13941
|
"keydown",
|
|
13794
13942
|
this.keyDownEvent
|
|
13795
13943
|
), 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");
|
|
@@ -14257,7 +14405,7 @@ const Ce = process.env.NODE_ENV === "development", za = x`<div class="tabulator-
|
|
|
14257
14405
|
const s = this.ranges.shift();
|
|
14258
14406
|
s && s.destroy(!1);
|
|
14259
14407
|
}
|
|
14260
|
-
const i = new
|
|
14408
|
+
const i = new Oa(this.table, this, e, t);
|
|
14261
14409
|
return this.activeRange = i, this.ranges.push(i), this.rangeContainer && i.element && this.rangeContainer.appendChild(i.element), i;
|
|
14262
14410
|
}
|
|
14263
14411
|
resetRanges() {
|
|
@@ -14290,9 +14438,9 @@ const Ce = process.env.NODE_ENV === "development", za = x`<div class="tabulator-
|
|
|
14290
14438
|
return e == null || e === "";
|
|
14291
14439
|
}
|
|
14292
14440
|
};
|
|
14293
|
-
Ke.moduleName = "selectRange", Ke.moduleInitOrder = 1, Ke.moduleExtensions =
|
|
14441
|
+
Ke.moduleName = "selectRange", Ke.moduleInitOrder = 1, Ke.moduleExtensions = za;
|
|
14294
14442
|
let ni = Ke;
|
|
14295
|
-
function
|
|
14443
|
+
function Pa(a, e, t, i, s, o, r) {
|
|
14296
14444
|
const n = r.alignEmptyValues;
|
|
14297
14445
|
let l = 0;
|
|
14298
14446
|
if (!a && a !== 0)
|
|
@@ -14330,7 +14478,7 @@ function Fa(a, e, t, i, s, o, r) {
|
|
|
14330
14478
|
}
|
|
14331
14479
|
return (n === "top" && o === "desc" || n === "bottom" && o === "asc") && (l *= -1), l;
|
|
14332
14480
|
}
|
|
14333
|
-
function
|
|
14481
|
+
function Aa(a, e, t, i, s, o, r) {
|
|
14334
14482
|
const n = r.type || "length", l = r.alignEmptyValues;
|
|
14335
14483
|
let h = 0;
|
|
14336
14484
|
const c = this.table;
|
|
@@ -14378,10 +14526,10 @@ function Oa(a, e, t, i, s, o, r) {
|
|
|
14378
14526
|
return n === "string" ? String(p(a)).toLowerCase().localeCompare(String(p(e)).toLowerCase()) : p(e) - p(a);
|
|
14379
14527
|
return (l === "top" && o === "desc" || l === "bottom" && o === "asc") && (h *= -1), h;
|
|
14380
14528
|
}
|
|
14381
|
-
function
|
|
14529
|
+
function _a(a, e, t, i, s, o, r) {
|
|
14382
14530
|
return (a === !0 || a === "true" || a === "True" || a === 1 ? 1 : 0) - (e === !0 || e === "true" || e === "True" || e === 1 ? 1 : 0);
|
|
14383
14531
|
}
|
|
14384
|
-
const
|
|
14532
|
+
const Na = process.env.NODE_ENV === "development";
|
|
14385
14533
|
function Ri(a, e, t, i, s, o, r) {
|
|
14386
14534
|
const { alignEmptyValues: n, format: l = "dd/MM/yyyy HH:mm:ss" } = r || {}, h = this.table.dependencyRegistry.lookup(
|
|
14387
14535
|
["luxon", "DateTime"],
|
|
@@ -14399,17 +14547,17 @@ function Ri(a, e, t, i, s, o, r) {
|
|
|
14399
14547
|
}
|
|
14400
14548
|
return (n === "top" && o === "desc" || n === "bottom" && o === "asc") && (c *= -1), c;
|
|
14401
14549
|
} else
|
|
14402
|
-
return
|
|
14550
|
+
return Na && console.error("Sort Error - 'datetime' sorter is dependent on luxon.js"), 0;
|
|
14403
14551
|
}
|
|
14404
|
-
function
|
|
14552
|
+
function Va(a, e, t, i, s, o, r) {
|
|
14405
14553
|
const n = r ?? {};
|
|
14406
14554
|
return n.format || (n.format = "dd/MM/yyyy"), Ri.call(this, a, e, t, i, s, o, n);
|
|
14407
14555
|
}
|
|
14408
|
-
function
|
|
14556
|
+
function Ia(a, e, t, i, s, o, r) {
|
|
14409
14557
|
const n = (c) => c === null || typeof c > "u" || c === "", l = n(a) ? 0 : 1, h = n(e) ? 0 : 1;
|
|
14410
14558
|
return l - h;
|
|
14411
14559
|
}
|
|
14412
|
-
function
|
|
14560
|
+
function Ba(a, e, t, i, s, o, r) {
|
|
14413
14561
|
const n = r ?? {}, l = n.alignEmptyValues, h = n.decimalSeparator, c = n.thousandSeparator;
|
|
14414
14562
|
let d = 0, p = String(a), u = String(e);
|
|
14415
14563
|
c && (p = p.split(c).join(""), u = u.split(c).join("")), h && (p = p.split(h).join("."), u = u.split(h).join("."));
|
|
@@ -14422,7 +14570,7 @@ function Na(a, e, t, i, s, o, r) {
|
|
|
14422
14570
|
return f - w;
|
|
14423
14571
|
return (l === "top" && o === "desc" || l === "bottom" && o === "asc") && (d *= -1), d;
|
|
14424
14572
|
}
|
|
14425
|
-
function
|
|
14573
|
+
function Wa(a, e, t, i, s, o, r = {}) {
|
|
14426
14574
|
const n = r.alignEmptyValues;
|
|
14427
14575
|
let l = 0, h;
|
|
14428
14576
|
const c = (d) => d == null || d === "";
|
|
@@ -14443,21 +14591,21 @@ function Va(a, e, t, i, s, o, r = {}) {
|
|
|
14443
14591
|
}
|
|
14444
14592
|
return (n === "top" && o === "desc" || n === "bottom" && o === "asc") && (l *= -1), l;
|
|
14445
14593
|
}
|
|
14446
|
-
function
|
|
14594
|
+
function Ga(a, e, t, i, s, o, r) {
|
|
14447
14595
|
const n = r ?? {}, l = n.format ? n : { ...n, format: "HH:mm" };
|
|
14448
14596
|
return Ri.call(this, a, e, t, i, s, o, l);
|
|
14449
14597
|
}
|
|
14450
|
-
const
|
|
14451
|
-
alphanum:
|
|
14452
|
-
array:
|
|
14453
|
-
boolean:
|
|
14454
|
-
date:
|
|
14598
|
+
const ja = {
|
|
14599
|
+
alphanum: Pa,
|
|
14600
|
+
array: Aa,
|
|
14601
|
+
boolean: _a,
|
|
14602
|
+
date: Va,
|
|
14455
14603
|
datetime: Ri,
|
|
14456
|
-
exists:
|
|
14457
|
-
number:
|
|
14458
|
-
string:
|
|
14459
|
-
time:
|
|
14460
|
-
}, ds = process.env.NODE_ENV === "development",
|
|
14604
|
+
exists: Ia,
|
|
14605
|
+
number: Ba,
|
|
14606
|
+
string: Wa,
|
|
14607
|
+
time: Ga
|
|
14608
|
+
}, ds = process.env.NODE_ENV === "development", $a = {
|
|
14461
14609
|
asc: "ascending",
|
|
14462
14610
|
desc: "descending",
|
|
14463
14611
|
none: "none"
|
|
@@ -14653,7 +14801,7 @@ const Ba = {
|
|
|
14653
14801
|
}
|
|
14654
14802
|
// set the column header sort direction
|
|
14655
14803
|
setColumnHeader(e, t) {
|
|
14656
|
-
e.modules.sort.dir = t, e.getElement().setAttribute("aria-sort",
|
|
14804
|
+
e.modules.sort.dir = t, e.getElement().setAttribute("aria-sort", $a[t]), this.setColumnHeaderSortIcon(e, t);
|
|
14657
14805
|
}
|
|
14658
14806
|
setColumnHeaderSortIcon(e, t) {
|
|
14659
14807
|
const i = e.modules.sort.element;
|
|
@@ -14709,9 +14857,9 @@ const Ba = {
|
|
|
14709
14857
|
return 0;
|
|
14710
14858
|
}
|
|
14711
14859
|
};
|
|
14712
|
-
Se.moduleName = "sort", Se.sorters =
|
|
14860
|
+
Se.moduleName = "sort", Se.sorters = ja;
|
|
14713
14861
|
let ai = Se;
|
|
14714
|
-
class
|
|
14862
|
+
class Ua {
|
|
14715
14863
|
constructor(e, t) {
|
|
14716
14864
|
this.columnCount = e, this.rowCount = t, this.columnString = [], this.columns = [], this.rows = [];
|
|
14717
14865
|
}
|
|
@@ -14749,7 +14897,7 @@ class Ga {
|
|
|
14749
14897
|
this.columnCount = e;
|
|
14750
14898
|
}
|
|
14751
14899
|
}
|
|
14752
|
-
class
|
|
14900
|
+
class zs {
|
|
14753
14901
|
constructor(e) {
|
|
14754
14902
|
return this._sheet = e, new Proxy(this, {
|
|
14755
14903
|
get: function(t, i) {
|
|
@@ -14800,7 +14948,7 @@ class Ds {
|
|
|
14800
14948
|
}
|
|
14801
14949
|
class us extends I {
|
|
14802
14950
|
constructor(e, t) {
|
|
14803
|
-
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
|
|
14951
|
+
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 = {
|
|
14804
14952
|
headerHozAlign: "center",
|
|
14805
14953
|
headerSort: !1,
|
|
14806
14954
|
title: "",
|
|
@@ -14855,7 +15003,7 @@ class us extends I {
|
|
|
14855
15003
|
}
|
|
14856
15004
|
// #region Helper Functions
|
|
14857
15005
|
getComponent() {
|
|
14858
|
-
return new
|
|
15006
|
+
return new zs(this);
|
|
14859
15007
|
}
|
|
14860
15008
|
getDefinition() {
|
|
14861
15009
|
return {
|
|
@@ -15001,7 +15149,7 @@ Data: `,
|
|
|
15001
15149
|
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)) : de && console.warn("Unable to remove sheet, at least one sheet must be active");
|
|
15002
15150
|
}
|
|
15003
15151
|
lookupSheet(e) {
|
|
15004
|
-
return e ? e instanceof us ? e : e instanceof
|
|
15152
|
+
return e ? e instanceof us ? e : e instanceof zs ? e._sheet : this.sheets.find((t) => t.key === e) ?? null : this.activeSheet;
|
|
15005
15153
|
}
|
|
15006
15154
|
/**
|
|
15007
15155
|
* Public Functions
|
|
@@ -15115,7 +15263,7 @@ const Wi = class Wi extends R {
|
|
|
15115
15263
|
};
|
|
15116
15264
|
Wi.moduleName = "tooltip";
|
|
15117
15265
|
let hi = Wi;
|
|
15118
|
-
const
|
|
15266
|
+
const Ka = {
|
|
15119
15267
|
// must be alphanumeric
|
|
15120
15268
|
alphanumeric: function(a, e, t) {
|
|
15121
15269
|
return e === "" || e === null || typeof e > "u" ? !0 : new RegExp(/^[a-z0-9]+$/i).test(e);
|
|
@@ -15195,7 +15343,7 @@ const ja = {
|
|
|
15195
15343
|
n !== s && e === o.getFieldValue(n) && (i = !1);
|
|
15196
15344
|
}), i;
|
|
15197
15345
|
}
|
|
15198
|
-
},
|
|
15346
|
+
}, Xa = process.env.NODE_ENV === "development", Xe = class Xe extends R {
|
|
15199
15347
|
constructor(e) {
|
|
15200
15348
|
super(e), this.invalidCells = [], this.registerTableOption("validationMode", "blocking"), this.registerColumnOption("validator"), this.registerTableFunction(
|
|
15201
15349
|
"getInvalidCells",
|
|
@@ -15326,7 +15474,7 @@ const ja = {
|
|
|
15326
15474
|
func: i,
|
|
15327
15475
|
params: t,
|
|
15328
15476
|
type: typeof e == "function" ? "function" : e
|
|
15329
|
-
} : (
|
|
15477
|
+
} : (Xa && console.warn(
|
|
15330
15478
|
"Validator Setup Error - No matching validator found:",
|
|
15331
15479
|
e
|
|
15332
15480
|
), !1);
|
|
@@ -15366,7 +15514,7 @@ const ja = {
|
|
|
15366
15514
|
}
|
|
15367
15515
|
}
|
|
15368
15516
|
};
|
|
15369
|
-
Xe.moduleName = "validate", Xe.validators =
|
|
15517
|
+
Xe.moduleName = "validate", Xe.validators = Ka;
|
|
15370
15518
|
let ci = Xe;
|
|
15371
15519
|
const yt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
15372
15520
|
__proto__: null,
|
|
@@ -15409,7 +15557,7 @@ const yt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
15409
15557
|
TooltipModule: hi,
|
|
15410
15558
|
ValidateModule: ci
|
|
15411
15559
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
15412
|
-
class
|
|
15560
|
+
class Ja extends gt {
|
|
15413
15561
|
constructor(e) {
|
|
15414
15562
|
super(e);
|
|
15415
15563
|
}
|
|
@@ -15431,7 +15579,7 @@ class Ua extends gt {
|
|
|
15431
15579
|
}
|
|
15432
15580
|
}
|
|
15433
15581
|
const Ct = process.env.NODE_ENV === "development";
|
|
15434
|
-
class
|
|
15582
|
+
class qa extends gt {
|
|
15435
15583
|
constructor(e) {
|
|
15436
15584
|
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 = [];
|
|
15437
15585
|
}
|
|
@@ -15730,8 +15878,8 @@ class Ka extends gt {
|
|
|
15730
15878
|
}
|
|
15731
15879
|
}
|
|
15732
15880
|
}
|
|
15733
|
-
const
|
|
15734
|
-
class
|
|
15881
|
+
const Ya = process.env.NODE_ENV === "development";
|
|
15882
|
+
class Fs {
|
|
15735
15883
|
constructor(e, t, i = {}) {
|
|
15736
15884
|
this.registeredDefaults = {}, this.table = e, this.msgType = t, this.registeredDefaults = { ...i };
|
|
15737
15885
|
}
|
|
@@ -15742,16 +15890,16 @@ class zs {
|
|
|
15742
15890
|
const i = { ...this.registeredDefaults }, s = this.table.options.debugInvalidOptions || t.debugInvalidOptions === !0;
|
|
15743
15891
|
Object.assign(i, e);
|
|
15744
15892
|
for (const o in t)
|
|
15745
|
-
Object.hasOwn(t, o) && (Object.hasOwn(i, o) || (
|
|
15893
|
+
Object.hasOwn(t, o) && (Object.hasOwn(i, o) || (Ya && s && console.warn("Invalid " + this.msgType + " option:", o), i[o] = t[o]));
|
|
15746
15894
|
for (const o in i)
|
|
15747
15895
|
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]);
|
|
15748
15896
|
return i;
|
|
15749
15897
|
}
|
|
15750
15898
|
}
|
|
15751
15899
|
const ps = process.env.NODE_ENV === "development";
|
|
15752
|
-
class
|
|
15900
|
+
class Qa extends I {
|
|
15753
15901
|
constructor(e) {
|
|
15754
|
-
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
|
|
15902
|
+
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 Fs(
|
|
15755
15903
|
this.table,
|
|
15756
15904
|
"column definition",
|
|
15757
15905
|
Ms
|
|
@@ -15777,8 +15925,8 @@ class Ja extends I {
|
|
|
15777
15925
|
initializeRenderer() {
|
|
15778
15926
|
let e;
|
|
15779
15927
|
const t = {
|
|
15780
|
-
basic:
|
|
15781
|
-
virtual:
|
|
15928
|
+
basic: Ja,
|
|
15929
|
+
virtual: qa
|
|
15782
15930
|
};
|
|
15783
15931
|
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()) : ps && console.error(
|
|
15784
15932
|
"Unable to find matching renderer:",
|
|
@@ -16128,7 +16276,7 @@ class Ja extends I {
|
|
|
16128
16276
|
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();
|
|
16129
16277
|
}
|
|
16130
16278
|
}
|
|
16131
|
-
const
|
|
16279
|
+
const Za = {
|
|
16132
16280
|
debugEventsExternal: !1,
|
|
16133
16281
|
// flag to console log events
|
|
16134
16282
|
debugEventsInternal: !1,
|
|
@@ -16188,7 +16336,7 @@ const qa = {
|
|
|
16188
16336
|
dataReceiveParams: {}
|
|
16189
16337
|
// dependencies: {},
|
|
16190
16338
|
};
|
|
16191
|
-
class
|
|
16339
|
+
class el extends I {
|
|
16192
16340
|
constructor(e) {
|
|
16193
16341
|
super(e), this.active = !1, this.element = this.createElement(), this.containerElement = this.createContainerElement(), this.external = !1;
|
|
16194
16342
|
}
|
|
@@ -16246,7 +16394,7 @@ class Ya extends I {
|
|
|
16246
16394
|
this.dispatch("footer-redraw");
|
|
16247
16395
|
}
|
|
16248
16396
|
}
|
|
16249
|
-
class
|
|
16397
|
+
class tl extends gt {
|
|
16250
16398
|
constructor(e) {
|
|
16251
16399
|
super(e), this.scrollTop = 0, this.scrollLeft = 0, this.verticalFillMode = "fill";
|
|
16252
16400
|
}
|
|
@@ -16295,7 +16443,7 @@ class Qa extends gt {
|
|
|
16295
16443
|
return this.rows();
|
|
16296
16444
|
}
|
|
16297
16445
|
}
|
|
16298
|
-
class
|
|
16446
|
+
class il extends gt {
|
|
16299
16447
|
// total scroll height of virtual DOM
|
|
16300
16448
|
constructor(e) {
|
|
16301
16449
|
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";
|
|
@@ -16541,8 +16689,8 @@ class Za extends gt {
|
|
|
16541
16689
|
t.setCellHeight();
|
|
16542
16690
|
}
|
|
16543
16691
|
}
|
|
16544
|
-
const Ee = process.env.NODE_ENV === "development",
|
|
16545
|
-
class
|
|
16692
|
+
const Ee = process.env.NODE_ENV === "development", sl = x`<div class="tabulator-tableholder-wrapper"></div>`;
|
|
16693
|
+
class ol extends I {
|
|
16546
16694
|
/**
|
|
16547
16695
|
* True when table has an explicit height (--table-height is set to a non-auto value (e.g. 100%, 500px));
|
|
16548
16696
|
* false when height is variable (--table-height is "auto" or unset).
|
|
@@ -16556,7 +16704,7 @@ class tl extends I {
|
|
|
16556
16704
|
}
|
|
16557
16705
|
// ////////////// Setup Functions /////////////////
|
|
16558
16706
|
createWrapperElement() {
|
|
16559
|
-
return T(
|
|
16707
|
+
return T(sl);
|
|
16560
16708
|
}
|
|
16561
16709
|
createHolderElement() {
|
|
16562
16710
|
const e = document.createElement("div");
|
|
@@ -16987,8 +17135,8 @@ Data: `,
|
|
|
16987
17135
|
initializeRenderer() {
|
|
16988
17136
|
let e;
|
|
16989
17137
|
const t = {
|
|
16990
|
-
basic:
|
|
16991
|
-
virtual:
|
|
17138
|
+
basic: tl,
|
|
17139
|
+
virtual: il
|
|
16992
17140
|
};
|
|
16993
17141
|
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()) : Ee && console.error(
|
|
16994
17142
|
"Unable to find matching renderer:",
|
|
@@ -17118,7 +17266,7 @@ Data: `,
|
|
|
17118
17266
|
this.element.dispatchEvent(new Event("scroll"));
|
|
17119
17267
|
}
|
|
17120
17268
|
}
|
|
17121
|
-
class
|
|
17269
|
+
class rl extends I {
|
|
17122
17270
|
constructor(e) {
|
|
17123
17271
|
super(e), this.type = null, this.element = this._createAlertElement(), this.msgElement = this._createMsgElement(), this.element.appendChild(this.msgElement);
|
|
17124
17272
|
}
|
|
@@ -17147,7 +17295,7 @@ class il extends I {
|
|
|
17147
17295
|
}
|
|
17148
17296
|
}
|
|
17149
17297
|
const fs = process.env.NODE_ENV === "development";
|
|
17150
|
-
class
|
|
17298
|
+
class nl {
|
|
17151
17299
|
constructor(e) {
|
|
17152
17300
|
this.bindings = {}, this.table = e;
|
|
17153
17301
|
}
|
|
@@ -17295,8 +17443,8 @@ const it = process.env.NODE_ENV === "development", at = class at extends I {
|
|
|
17295
17443
|
};
|
|
17296
17444
|
at.DEBOUNCE_DELAY = 500;
|
|
17297
17445
|
let di = at;
|
|
17298
|
-
const
|
|
17299
|
-
class
|
|
17446
|
+
const al = process.env.NODE_ENV === "development";
|
|
17447
|
+
class ll extends I {
|
|
17300
17448
|
constructor(e) {
|
|
17301
17449
|
super(e), this.deps = {}, this.props = {};
|
|
17302
17450
|
}
|
|
@@ -17331,20 +17479,20 @@ class rl extends I {
|
|
|
17331
17479
|
return this.deps[e] ? i = this.deps[e] : globalThis[e] ? (this.deps[e] = globalThis[e], i = this.deps[e]) : t || this.error(e), i;
|
|
17332
17480
|
}
|
|
17333
17481
|
error(e) {
|
|
17334
|
-
|
|
17482
|
+
al && console.error(
|
|
17335
17483
|
"Unable to find dependency",
|
|
17336
17484
|
e,
|
|
17337
17485
|
"Please check documentation and ensure you have imported the required library into your project"
|
|
17338
17486
|
);
|
|
17339
17487
|
}
|
|
17340
17488
|
}
|
|
17341
|
-
const
|
|
17342
|
-
class
|
|
17489
|
+
const hl = process.env.NODE_ENV === "development";
|
|
17490
|
+
class cl extends I {
|
|
17343
17491
|
constructor(e) {
|
|
17344
17492
|
super(e);
|
|
17345
17493
|
}
|
|
17346
17494
|
_warnUser(...e) {
|
|
17347
|
-
this.options("debugDeprecation") &&
|
|
17495
|
+
this.options("debugDeprecation") && hl && console.warn(...e);
|
|
17348
17496
|
}
|
|
17349
17497
|
check(e, t, i) {
|
|
17350
17498
|
if (this.options(e) === void 0 || this.options(e) === null)
|
|
@@ -17377,7 +17525,7 @@ class al extends I {
|
|
|
17377
17525
|
}
|
|
17378
17526
|
}
|
|
17379
17527
|
const Et = process.env.NODE_ENV === "development";
|
|
17380
|
-
class
|
|
17528
|
+
class dl {
|
|
17381
17529
|
constructor(e, t, i) {
|
|
17382
17530
|
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;
|
|
17383
17531
|
}
|
|
@@ -17430,8 +17578,8 @@ class ll {
|
|
|
17430
17578
|
return Et && (this.debug === !0 || Array.isArray(this.debug) && this.debug.includes(e)) && console.log(i, ...t), this._dispatch(e, ...t);
|
|
17431
17579
|
}
|
|
17432
17580
|
}
|
|
17433
|
-
const
|
|
17434
|
-
class
|
|
17581
|
+
const ul = process.env.NODE_ENV === "development";
|
|
17582
|
+
class pl extends I {
|
|
17435
17583
|
constructor(e) {
|
|
17436
17584
|
super(e), this.el = null, this.abortClasses = ["tabulator-headers", "tabulator-table"], this.previousTargets = {}, this.listeners = [
|
|
17437
17585
|
"click",
|
|
@@ -17582,7 +17730,7 @@ class cl extends I {
|
|
|
17582
17730
|
s.components.includes("column") && (h = this.table.columnManager?.findColumn(c));
|
|
17583
17731
|
break;
|
|
17584
17732
|
case "cell":
|
|
17585
|
-
s.components.includes("cell") && (o.row instanceof V ? h = o.row.findCell(c) :
|
|
17733
|
+
s.components.includes("cell") && (o.row instanceof V ? h = o.row.findCell(c) : ul && t.row && console.warn(
|
|
17586
17734
|
"Event Target Lookup Error - The row this cell is attached to cannot be found, has the table been reinitialized without being destroyed first?"
|
|
17587
17735
|
));
|
|
17588
17736
|
break;
|
|
@@ -17613,7 +17761,7 @@ class cl extends I {
|
|
|
17613
17761
|
}
|
|
17614
17762
|
}
|
|
17615
17763
|
const Ge = process.env.NODE_ENV === "development";
|
|
17616
|
-
class
|
|
17764
|
+
class fl {
|
|
17617
17765
|
constructor(e) {
|
|
17618
17766
|
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;
|
|
17619
17767
|
}
|
|
@@ -17686,7 +17834,7 @@ class dl {
|
|
|
17686
17834
|
return Ge && (this.debug === !0 || Array.isArray(this.debug) && this.debug.includes(e)) && console.log(i, t), this._confirm(e, t);
|
|
17687
17835
|
}
|
|
17688
17836
|
}
|
|
17689
|
-
function
|
|
17837
|
+
function gl(a) {
|
|
17690
17838
|
let e = this.table.element?.clientWidth || 0;
|
|
17691
17839
|
const t = this.table.columnManager?.contentsElement;
|
|
17692
17840
|
if (t) {
|
|
@@ -17750,7 +17898,7 @@ function ul(a) {
|
|
|
17750
17898
|
w.column.setWidth(w.width);
|
|
17751
17899
|
});
|
|
17752
17900
|
}
|
|
17753
|
-
async function
|
|
17901
|
+
async function ml(a, e) {
|
|
17754
17902
|
e && this.table.columnManager?.renderer && await this.table.columnManager.renderer.reinitializeColumnWidths(a), this.table.options.responsiveLayout && this.table.modExists("responsiveLayout", !0) && this.table.modules.responsiveLayout.update();
|
|
17755
17903
|
}
|
|
17756
17904
|
async function gs(a) {
|
|
@@ -17758,7 +17906,7 @@ async function gs(a) {
|
|
|
17758
17906
|
await e.reinitializeWidth();
|
|
17759
17907
|
this.table.options.responsiveLayout && this.table.modExists("responsiveLayout", !0) && this.table.modules.responsiveLayout.update();
|
|
17760
17908
|
}
|
|
17761
|
-
async function
|
|
17909
|
+
async function bl(a) {
|
|
17762
17910
|
let e = 0, t = this.table.element?.clientWidth || 0;
|
|
17763
17911
|
const i = this.table.columnManager?.contentsElement;
|
|
17764
17912
|
if (i) {
|
|
@@ -17771,20 +17919,20 @@ async function fl(a) {
|
|
|
17771
17919
|
n.widthFixed || await n.reinitializeWidth(), (this.table.options.responsiveLayout ? n.modules.responsive.visible : !n.hidden) && (r = n), n.hidden || (e += n.getWidth());
|
|
17772
17920
|
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();
|
|
17773
17921
|
}
|
|
17774
|
-
const
|
|
17775
|
-
fitColumns:
|
|
17776
|
-
fitData:
|
|
17922
|
+
const wl = {
|
|
17923
|
+
fitColumns: gl,
|
|
17924
|
+
fitData: ml,
|
|
17777
17925
|
fitDataFill: gs,
|
|
17778
|
-
fitDataStretch:
|
|
17926
|
+
fitDataStretch: bl,
|
|
17779
17927
|
fitDataTable: gs
|
|
17780
|
-
},
|
|
17928
|
+
}, vl = process.env.NODE_ENV === "development", Te = class Te extends R {
|
|
17781
17929
|
constructor(e) {
|
|
17782
17930
|
super(e), this.mode = null, this.registerTableOption("layout", "fitData"), this.registerTableOption("layoutColumnsOnNewData", !1), this.registerColumnOption("widthGrow"), this.registerColumnOption("widthShrink");
|
|
17783
17931
|
}
|
|
17784
17932
|
// initialize layout system
|
|
17785
17933
|
initialize() {
|
|
17786
17934
|
const e = this.table.options.layout;
|
|
17787
|
-
e && Te.modes[e] ? this.mode = e : (
|
|
17935
|
+
e && Te.modes[e] ? this.mode = e : (vl && console.warn(
|
|
17788
17936
|
"Layout Error - invalid mode set, defaulting to 'fitData' : " + e
|
|
17789
17937
|
), this.mode = "fitData"), this.table.element.setAttribute("tabulator-layout", this.mode), this.subscribe("column-init", this.initializeColumn.bind(this));
|
|
17790
17938
|
}
|
|
@@ -17808,9 +17956,9 @@ const gl = {
|
|
|
17808
17956
|
), t && this.table.rowManager?.normalizeHeight(!0), this.dispatch("layout-refreshed");
|
|
17809
17957
|
}
|
|
17810
17958
|
};
|
|
17811
|
-
Te.moduleName = "layout", Te.modes =
|
|
17959
|
+
Te.moduleName = "layout", Te.modes = wl;
|
|
17812
17960
|
let ui = Te;
|
|
17813
|
-
const
|
|
17961
|
+
const yl = {
|
|
17814
17962
|
default: {
|
|
17815
17963
|
columns: {},
|
|
17816
17964
|
data: {
|
|
@@ -17926,7 +18074,7 @@ const bl = {
|
|
|
17926
18074
|
});
|
|
17927
18075
|
}
|
|
17928
18076
|
};
|
|
17929
|
-
Je.moduleName = "localize", Je.langs =
|
|
18077
|
+
Je.moduleName = "localize", Je.langs = yl;
|
|
17930
18078
|
let pi = Je;
|
|
17931
18079
|
const bs = process.env.NODE_ENV === "development", Gi = class Gi extends R {
|
|
17932
18080
|
constructor(e) {
|
|
@@ -17958,12 +18106,12 @@ const bs = process.env.NODE_ENV === "development", Gi = class Gi extends R {
|
|
|
17958
18106
|
};
|
|
17959
18107
|
Gi.moduleName = "comms";
|
|
17960
18108
|
let fi = Gi;
|
|
17961
|
-
const
|
|
18109
|
+
const Cl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
17962
18110
|
__proto__: null,
|
|
17963
18111
|
CommsModule: fi,
|
|
17964
18112
|
LayoutModule: ui,
|
|
17965
18113
|
LocalizeModule: pi
|
|
17966
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
18114
|
+
}, Symbol.toStringTag, { value: "Module" })), El = process.env.NODE_ENV === "development", Q = class Q {
|
|
17967
18115
|
static findTable(e) {
|
|
17968
18116
|
const t = Q.registry.lookupTable(e, !0);
|
|
17969
18117
|
return Array.isArray(t) && !t.length ? !1 : t;
|
|
@@ -17984,7 +18132,7 @@ Q.registry = {
|
|
|
17984
18132
|
} else typeof HTMLElement < "u" && e instanceof HTMLElement || e instanceof Q ? (o = Q.registry.matchElement(e), o && i.push(o)) : Array.isArray(e) ? e.forEach((r) => {
|
|
17985
18133
|
const n = Q.registry.lookupTable(r, !0);
|
|
17986
18134
|
i.push(...n);
|
|
17987
|
-
}) :
|
|
18135
|
+
}) : El && !t && console.warn("Table Connection Error - Invalid Selector", e);
|
|
17988
18136
|
return i;
|
|
17989
18137
|
},
|
|
17990
18138
|
matchElement(e) {
|
|
@@ -18001,7 +18149,7 @@ const st = process.env.NODE_ENV === "development", D = class D extends gi {
|
|
|
18001
18149
|
super(), this.modulesCore = [], this.modulesRegular = [];
|
|
18002
18150
|
}
|
|
18003
18151
|
static initializeModuleBinder(e) {
|
|
18004
|
-
D.modulesRegistered || (D.modulesRegistered = !0, D._registerModules(
|
|
18152
|
+
D.modulesRegistered || (D.modulesRegistered = !0, D._registerModules(Cl, !0), e && D._registerModules(e));
|
|
18005
18153
|
}
|
|
18006
18154
|
static _extendModule(e, t, i) {
|
|
18007
18155
|
if (D.moduleBindings[e]) {
|
|
@@ -18091,7 +18239,7 @@ const F = process.env.NODE_ENV === "development", le = class le extends mi {
|
|
|
18091
18239
|
le.initializeModuleBinder(), le._registerModule(...e);
|
|
18092
18240
|
}
|
|
18093
18241
|
constructor(e, t, i) {
|
|
18094
|
-
super(), le.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
|
|
18242
|
+
super(), le.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 Fs(this, "table constructor"), this.dependencyRegistry = new ll(this), this.initialized = !1, this.destroyed = !1, this.initializeElement(e) && (this.initializeCoreSystems(t), setTimeout(() => {
|
|
18095
18243
|
this._create();
|
|
18096
18244
|
})), this.constructor.registry.register(this);
|
|
18097
18245
|
}
|
|
@@ -18111,11 +18259,11 @@ const F = process.env.NODE_ENV === "development", le = class le extends mi {
|
|
|
18111
18259
|
), !1;
|
|
18112
18260
|
}
|
|
18113
18261
|
initializeCoreSystems(e) {
|
|
18114
|
-
this.columnManager = new
|
|
18262
|
+
this.columnManager = new Qa(this), this.rowManager = new ol(this), this.footerManager = new el(this), this.dataLoader = new di(this), this.alertManager = new rl(this), this.toolbar = e?.toolbarElement, this._bindModules(), this.options = this.optionsList.generate(le.defaultOptions, e), this._clearObjectPointers(), this._mapDeprecatedFunctionality(), this.externalEvents = new dl(
|
|
18115
18263
|
this,
|
|
18116
18264
|
this.options,
|
|
18117
18265
|
this.options.debugEventsExternal
|
|
18118
|
-
), this.eventBus = new
|
|
18266
|
+
), this.eventBus = new fl(this.options.debugEventsInternal), this.interactionMonitor = new pl(this), this.dataLoader.initialize(), this.footerManager.initialize(), this.dependencyRegistry.initialize();
|
|
18119
18267
|
}
|
|
18120
18268
|
// convert deprecated functionality to new functions
|
|
18121
18269
|
_mapDeprecatedFunctionality() {
|
|
@@ -18481,7 +18629,7 @@ const F = process.env.NODE_ENV === "development", le = class le extends mi {
|
|
|
18481
18629
|
return !t && F && console.error("Tabulator module not installed: " + e), t;
|
|
18482
18630
|
}
|
|
18483
18631
|
};
|
|
18484
|
-
le.defaultOptions =
|
|
18632
|
+
le.defaultOptions = Za;
|
|
18485
18633
|
let we = le;
|
|
18486
18634
|
class ws extends we {
|
|
18487
18635
|
static extendModule(...e) {
|
|
@@ -18495,7 +18643,7 @@ class ws extends we {
|
|
|
18495
18643
|
}
|
|
18496
18644
|
// #endregion
|
|
18497
18645
|
}
|
|
18498
|
-
class
|
|
18646
|
+
class fh {
|
|
18499
18647
|
constructor(e) {
|
|
18500
18648
|
this.type = e, this.element = this._createElement();
|
|
18501
18649
|
}
|
|
@@ -18535,16 +18683,16 @@ class dh {
|
|
|
18535
18683
|
rendered() {
|
|
18536
18684
|
}
|
|
18537
18685
|
}
|
|
18538
|
-
var
|
|
18686
|
+
var xl = Object.defineProperty, Rl = Object.getOwnPropertyDescriptor, Os = (a) => {
|
|
18539
18687
|
throw TypeError(a);
|
|
18540
18688
|
}, b = (a, e, t, i) => {
|
|
18541
|
-
for (var s = i > 1 ? void 0 : i ?
|
|
18689
|
+
for (var s = i > 1 ? void 0 : i ? Rl(e, t) : e, o = a.length - 1, r; o >= 0; o--)
|
|
18542
18690
|
(r = a[o]) && (s = (i ? r(e, t, s) : r(s)) || s);
|
|
18543
|
-
return i && s &&
|
|
18544
|
-
},
|
|
18691
|
+
return i && s && xl(e, t, s), s;
|
|
18692
|
+
}, Sl = (a, e, t) => e.has(a) || Os("Cannot " + t), Tl = (a, e, t) => (Sl(a, e, "read from private field"), t ? t.call(a) : e.get(a)), Ml = (a, e, t) => e.has(a) ? Os("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(a) : e.set(a, t), bi, Hs;
|
|
18545
18693
|
let m = class extends Ne {
|
|
18546
18694
|
constructor() {
|
|
18547
|
-
super(),
|
|
18695
|
+
super(), Ml(this, bi), this.localize = new lt(this), this.verticalOsInstance = null, this.horizontalOsInstance = null, this.resizeObserver = null, this.overflowObserver = null, this.filterController = new po(this), this.shadowRootAutoloader = new Zs(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.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.dataTreeBranchElement = 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 = je.Both, this.clipboardCopyRowRange = "range", this.clipboardPasteParser = void 0, this.clipboardPasteAction = "insert", this.clipboardCopyConfig = { columnHeaders: !1 }, this.clipboardNoCopyStyled = !1, this.pagination = !1, this.paginationMode = he.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 = Bs.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 = he.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 = () => {
|
|
18548
18696
|
this.useOverlayScrollbar ? this.initVerticalScrollbar() : this.verticalOsInstance?.destroy(), this.initHorizontalScrollbar(), this.initOverflowObserver(), this.filterController.syncDropdownFilterSources(this.dropdownFilters), this.handleSearch(), this.filterController.applyFilters();
|
|
18549
18697
|
}, this.checkHorizontalOverflow = () => {
|
|
18550
18698
|
if (!this.tabulatorElement || !this.tabulatorHolder)
|
|
@@ -18591,7 +18739,7 @@ let m = class extends Ne {
|
|
|
18591
18739
|
}
|
|
18592
18740
|
async initTable() {
|
|
18593
18741
|
let a = this.rowHeader;
|
|
18594
|
-
a == null && (this.movableRows ? a =
|
|
18742
|
+
a == null && (this.movableRows ? a = Vo : this.responsiveLayout === "collapse" && (a = {
|
|
18595
18743
|
formatter: "responsiveCollapse"
|
|
18596
18744
|
})), this.tabulatorInstance = new ws(this.table, {
|
|
18597
18745
|
ajaxParams: this.ajaxParams,
|
|
@@ -18641,7 +18789,7 @@ let m = class extends Ne {
|
|
|
18641
18789
|
groupHeaderPrint: this.groupHeaderPrint,
|
|
18642
18790
|
groupIndent: this.groupIndent,
|
|
18643
18791
|
groupLoadMoreMeta: this.groupLoadMoreMeta,
|
|
18644
|
-
groupStartOpen:
|
|
18792
|
+
groupStartOpen: Tl(this, bi, Hs),
|
|
18645
18793
|
groupToggleElement: this.groupToggleElement,
|
|
18646
18794
|
groupUpdateOnCellEdit: this.groupUpdateOnCellEdit,
|
|
18647
18795
|
groupValues: this.groupValues,
|
|
@@ -18856,7 +19004,7 @@ let m = class extends Ne {
|
|
|
18856
19004
|
direction="vertical"
|
|
18857
19005
|
spacing="large"
|
|
18858
19006
|
wrap="nowrap"
|
|
18859
|
-
class=${
|
|
19007
|
+
class=${Gs({
|
|
18860
19008
|
container: !0,
|
|
18861
19009
|
"container--overlay-scrollbar": this.useOverlayScrollbar
|
|
18862
19010
|
})}
|
|
@@ -18891,23 +19039,23 @@ let m = class extends Ne {
|
|
|
18891
19039
|
}
|
|
18892
19040
|
};
|
|
18893
19041
|
bi = /* @__PURE__ */ new WeakSet();
|
|
18894
|
-
|
|
19042
|
+
Hs = function() {
|
|
18895
19043
|
return this.groupStartOpenValues !== void 0 && this.groupStartOpenValues !== null ? (a) => this.groupStartOpenValues?.includes(a) ?? !1 : this.groupStartOpen;
|
|
18896
19044
|
};
|
|
18897
19045
|
m.styles = [
|
|
18898
19046
|
qe,
|
|
18899
|
-
|
|
18900
|
-
|
|
19047
|
+
No,
|
|
19048
|
+
Vs
|
|
18901
19049
|
];
|
|
18902
19050
|
m.dependencies = {
|
|
18903
19051
|
"cx-button": _e,
|
|
18904
|
-
"cx-checkbox":
|
|
19052
|
+
"cx-checkbox": Ps,
|
|
18905
19053
|
"cx-divider": vs,
|
|
18906
|
-
"cx-format-number":
|
|
19054
|
+
"cx-format-number": As,
|
|
18907
19055
|
"cx-icon-button": ys,
|
|
18908
|
-
"cx-select":
|
|
19056
|
+
"cx-select": _s,
|
|
18909
19057
|
"cx-space": wi,
|
|
18910
|
-
"cx-spinner":
|
|
19058
|
+
"cx-spinner": Ns,
|
|
18911
19059
|
"cx-table-row-actions": ve,
|
|
18912
19060
|
"cx-table-toolbar": O
|
|
18913
19061
|
};
|
|
@@ -19191,7 +19339,7 @@ b([
|
|
|
19191
19339
|
b([
|
|
19192
19340
|
g({
|
|
19193
19341
|
attribute: "frozen-rows",
|
|
19194
|
-
converter:
|
|
19342
|
+
converter: Io
|
|
19195
19343
|
})
|
|
19196
19344
|
], m.prototype, "frozenRows", 2);
|
|
19197
19345
|
b([
|
|
@@ -19209,7 +19357,7 @@ b([
|
|
|
19209
19357
|
b([
|
|
19210
19358
|
g({
|
|
19211
19359
|
attribute: "group-by",
|
|
19212
|
-
converter:
|
|
19360
|
+
converter: Wo
|
|
19213
19361
|
})
|
|
19214
19362
|
], m.prototype, "groupBy", 2);
|
|
19215
19363
|
b([
|
|
@@ -19364,7 +19512,7 @@ b([
|
|
|
19364
19512
|
b([
|
|
19365
19513
|
g({
|
|
19366
19514
|
attribute: "data-tree-start-expanded",
|
|
19367
|
-
converter:
|
|
19515
|
+
converter: Bo
|
|
19368
19516
|
})
|
|
19369
19517
|
], m.prototype, "dataTreeStartExpanded", 2);
|
|
19370
19518
|
b([
|
|
@@ -19858,10 +20006,10 @@ export {
|
|
|
19858
20006
|
R as M,
|
|
19859
20007
|
ei as N,
|
|
19860
20008
|
ti as O,
|
|
19861
|
-
|
|
20009
|
+
fh as P,
|
|
19862
20010
|
ii as Q,
|
|
19863
20011
|
Ei as R,
|
|
19864
|
-
|
|
20012
|
+
zs as S,
|
|
19865
20013
|
we as T,
|
|
19866
20014
|
si as U,
|
|
19867
20015
|
oi as V,
|
|
@@ -19875,8 +20023,8 @@ export {
|
|
|
19875
20023
|
O as a1,
|
|
19876
20024
|
Ci as b,
|
|
19877
20025
|
Lt as c,
|
|
19878
|
-
|
|
19879
|
-
|
|
20026
|
+
rr as d,
|
|
20027
|
+
Fa as e,
|
|
19880
20028
|
V as f,
|
|
19881
20029
|
Qe as g,
|
|
19882
20030
|
gt as h,
|