@jielga/tmdatagrid 2.5.0 → 2.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +69 -8
- package/dist/index.js +337 -284
- package/dist/index.js.map +1 -1
- package/docs/components.md +3 -1
- package/docs/editors.md +96 -6
- package/docs/testing.md +1 -0
- package/package.json +1 -1
- package/skills/appearance/SKILL.md +1 -1
- package/skills/cell-selection/SKILL.md +1 -1
- package/skills/columns/SKILL.md +1 -1
- package/skills/data/SKILL.md +1 -1
- package/skills/editing/SKILL.md +15 -17
- package/skills/editing/references/editing-api.md +2 -1
- package/skills/editing/references/editors-and-validation.md +79 -4
- package/skills/filtering/SKILL.md +1 -1
- package/skills/getting-started/SKILL.md +1 -1
- package/skills/grouping/SKILL.md +1 -1
- package/skills/migrating-to-2/SKILL.md +1 -1
- package/skills/options/SKILL.md +1 -1
- package/skills/rows/SKILL.md +1 -1
- package/skills/server-side/SKILL.md +1 -1
- package/skills/testing/SKILL.md +1 -1
- package/skills/testing-components/SKILL.md +1 -1
- package/skills/testing-editing/SKILL.md +4 -2
- package/src/components/editors/TMDataGridBooleanEditor.tsx +26 -4
- package/src/components/editors/TMDataGridDateEditor.tsx +33 -5
- package/src/components/editors/TMDataGridMultiSelectEditor.tsx +39 -6
- package/src/components/editors/TMDataGridNumberEditor.tsx +33 -6
- package/src/components/editors/TMDataGridSelectEditor.tsx +39 -6
- package/src/components/editors/TMDataGridStringEditor.tsx +33 -6
- package/src/components/editors/editorShared.ts +27 -1
- package/src/index.ts +24 -6
package/dist/index.js
CHANGED
|
@@ -5478,29 +5478,34 @@ function es(e) {
|
|
|
5478
5478
|
}
|
|
5479
5479
|
//#endregion
|
|
5480
5480
|
//#region src/components/editors/editorShared.ts
|
|
5481
|
-
function ts(e) {
|
|
5482
|
-
return
|
|
5481
|
+
function ts(...e) {
|
|
5482
|
+
return (t) => {
|
|
5483
|
+
for (let n of e) typeof n == "function" ? n(t) : n != null && (n.current = t);
|
|
5484
|
+
};
|
|
5483
5485
|
}
|
|
5484
5486
|
function ns(e) {
|
|
5485
|
-
return e.
|
|
5487
|
+
return he(e.store, rs);
|
|
5486
5488
|
}
|
|
5487
5489
|
function rs(e) {
|
|
5488
|
-
return
|
|
5490
|
+
return e.value;
|
|
5489
5491
|
}
|
|
5490
5492
|
function is(e) {
|
|
5491
|
-
return
|
|
5493
|
+
return he(e.store, as);
|
|
5492
5494
|
}
|
|
5493
5495
|
function as(e) {
|
|
5494
|
-
return
|
|
5496
|
+
return $t(e.meta.errors);
|
|
5495
5497
|
}
|
|
5496
5498
|
function os(e) {
|
|
5497
|
-
return
|
|
5499
|
+
return he(e.store, ss);
|
|
5498
5500
|
}
|
|
5499
5501
|
function ss(e) {
|
|
5502
|
+
return $t(e.meta.errors) !== void 0;
|
|
5503
|
+
}
|
|
5504
|
+
function cs(e) {
|
|
5500
5505
|
let t = e.currentTarget;
|
|
5501
5506
|
kn(t) && t.select();
|
|
5502
5507
|
}
|
|
5503
|
-
function
|
|
5508
|
+
function ls() {
|
|
5504
5509
|
let t = e(2), n = s(null), r = s(null), i;
|
|
5505
5510
|
t[0] === Symbol.for("react.memo_cache_sentinel") ? (i = () => {
|
|
5506
5511
|
let e = r.current, t = n.current;
|
|
@@ -5521,181 +5526,229 @@ function cs() {
|
|
|
5521
5526
|
}
|
|
5522
5527
|
//#endregion
|
|
5523
5528
|
//#region src/components/editors/TMDataGridBooleanEditor.tsx
|
|
5524
|
-
function
|
|
5525
|
-
let n = e(
|
|
5526
|
-
n[0] !== i || n[1] !==
|
|
5527
|
-
let
|
|
5528
|
-
n[3] === r ?
|
|
5529
|
-
let
|
|
5530
|
-
|
|
5529
|
+
function us(t) {
|
|
5530
|
+
let n = e(16), { field: r, column: i, size: a, inputProps: o } = t, { labels: s } = $(), c = ns(r), l = os(r), u;
|
|
5531
|
+
n[0] !== i || n[1] !== s ? (u = s.editCell(Vn(i)), n[0] = i, n[1] = s, n[2] = u) : u = n[2];
|
|
5532
|
+
let d = c === !0, f;
|
|
5533
|
+
n[3] === r ? f = n[4] : (f = (e) => r.handleChange(e.currentTarget.checked), n[3] = r, n[4] = f);
|
|
5534
|
+
let m;
|
|
5535
|
+
n[5] !== r || n[6] !== o ? (m = (e) => {
|
|
5536
|
+
r.handleBlur(), o?.onBlur?.(e);
|
|
5537
|
+
}, n[5] = r, n[6] = o, n[7] = m) : m = n[7];
|
|
5538
|
+
let h;
|
|
5539
|
+
return n[8] !== o || n[9] !== l || n[10] !== a || n[11] !== u || n[12] !== d || n[13] !== f || n[14] !== m ? (h = /* @__PURE__ */ J(p, {
|
|
5540
|
+
...o,
|
|
5531
5541
|
size: a,
|
|
5532
|
-
"aria-label":
|
|
5542
|
+
"aria-label": u,
|
|
5533
5543
|
"data-dg-part": "editor-input",
|
|
5534
|
-
checked:
|
|
5535
|
-
onChange:
|
|
5536
|
-
onBlur:
|
|
5537
|
-
error:
|
|
5538
|
-
}), n[
|
|
5544
|
+
checked: d,
|
|
5545
|
+
onChange: f,
|
|
5546
|
+
onBlur: m,
|
|
5547
|
+
error: l
|
|
5548
|
+
}), n[8] = o, n[9] = l, n[10] = a, n[11] = u, n[12] = d, n[13] = f, n[14] = m, n[15] = h) : h = n[15], h;
|
|
5539
5549
|
}
|
|
5540
5550
|
//#endregion
|
|
5541
5551
|
//#region src/components/editors/TMDataGridDateEditor.tsx
|
|
5542
|
-
function
|
|
5543
|
-
let n = e(
|
|
5544
|
-
n[0] ===
|
|
5545
|
-
let
|
|
5546
|
-
n[2] !== i || n[3] !==
|
|
5547
|
-
let
|
|
5548
|
-
n[5] === r ?
|
|
5552
|
+
function ds(t) {
|
|
5553
|
+
let n = e(18), { field: r, column: i, size: a, inputProps: o } = t, { labels: c } = $(), l = ns(r), u = os(r), d = s(l instanceof Date), f;
|
|
5554
|
+
n[0] === l ? f = n[1] : (f = l instanceof Date ? l.toLocaleDateString("sv-SE") : typeof l == "string" ? l.slice(0, 10) : "", n[0] = l, n[1] = f);
|
|
5555
|
+
let p = f, m;
|
|
5556
|
+
n[2] !== i || n[3] !== c ? (m = c.editCell(Vn(i)), n[2] = i, n[3] = c, n[4] = m) : m = n[4];
|
|
5557
|
+
let h;
|
|
5558
|
+
n[5] === r ? h = n[6] : (h = (e) => {
|
|
5549
5559
|
let t = e.currentTarget.value;
|
|
5550
5560
|
if (t === "") {
|
|
5551
5561
|
r.handleChange(null);
|
|
5552
5562
|
return;
|
|
5553
5563
|
}
|
|
5554
|
-
r.handleChange(
|
|
5555
|
-
}, n[5] = r, n[6] =
|
|
5556
|
-
let
|
|
5557
|
-
|
|
5558
|
-
|
|
5564
|
+
r.handleChange(d.current ? /* @__PURE__ */ new Date(`${t}T00:00:00`) : t);
|
|
5565
|
+
}, n[5] = r, n[6] = h);
|
|
5566
|
+
let g;
|
|
5567
|
+
n[7] !== r || n[8] !== o ? (g = (e) => {
|
|
5568
|
+
r.handleBlur(), o?.onBlur?.(e);
|
|
5569
|
+
}, n[7] = r, n[8] = o, n[9] = g) : g = n[9];
|
|
5570
|
+
let _;
|
|
5571
|
+
return n[10] !== o || n[11] !== u || n[12] !== a || n[13] !== m || n[14] !== h || n[15] !== g || n[16] !== p ? (_ = /* @__PURE__ */ J(O, {
|
|
5559
5572
|
w: "100%",
|
|
5573
|
+
...o,
|
|
5574
|
+
size: a,
|
|
5560
5575
|
type: "date",
|
|
5561
|
-
"aria-label":
|
|
5576
|
+
"aria-label": m,
|
|
5562
5577
|
"data-dg-part": "editor-input",
|
|
5563
|
-
value:
|
|
5564
|
-
onChange:
|
|
5565
|
-
onBlur:
|
|
5566
|
-
error:
|
|
5567
|
-
}), n[
|
|
5578
|
+
value: p,
|
|
5579
|
+
onChange: h,
|
|
5580
|
+
onBlur: g,
|
|
5581
|
+
error: u
|
|
5582
|
+
}), n[10] = o, n[11] = u, n[12] = a, n[13] = m, n[14] = h, n[15] = g, n[16] = p, n[17] = _) : _ = n[17], _;
|
|
5568
5583
|
}
|
|
5569
5584
|
//#endregion
|
|
5570
5585
|
//#region src/components/editors/TMDataGridMultiSelectEditor.tsx
|
|
5571
|
-
function
|
|
5572
|
-
let n = e(
|
|
5573
|
-
n[0] ===
|
|
5574
|
-
|
|
5575
|
-
|
|
5576
|
-
|
|
5577
|
-
|
|
5586
|
+
function fs(t) {
|
|
5587
|
+
let n = e(26), { field: r, column: i, row: a, table: o, size: s, inputProps: c } = t, { labels: l } = $(), u = ns(r), d = os(r), f = c?.comboboxProps, p;
|
|
5588
|
+
n[0] === f ? p = n[1] : (p = {
|
|
5589
|
+
...f,
|
|
5590
|
+
withinPortal: !1
|
|
5591
|
+
}, n[0] = f, n[1] = p);
|
|
5592
|
+
let m;
|
|
5593
|
+
n[2] !== i || n[3] !== l ? (m = l.editCell(Vn(i)), n[2] = i, n[3] = l, n[4] = m) : m = n[4];
|
|
5594
|
+
let h;
|
|
5595
|
+
n[5] !== i || n[6] !== a || n[7] !== o ? (h = mn(pn({
|
|
5578
5596
|
table: o,
|
|
5579
5597
|
column: i,
|
|
5580
5598
|
row: a,
|
|
5581
5599
|
fallback: "faceted"
|
|
5582
|
-
})), n[
|
|
5583
|
-
let m;
|
|
5584
|
-
n[8] === l ? m = n[9] : (m = Array.isArray(l) ? l.map(String) : [], n[8] = l, n[9] = m);
|
|
5585
|
-
let h;
|
|
5586
|
-
n[10] === r ? h = n[11] : (h = (e) => r.handleChange(e), n[10] = r, n[11] = h);
|
|
5600
|
+
})), n[5] = i, n[6] = a, n[7] = o, n[8] = h) : h = n[8];
|
|
5587
5601
|
let g;
|
|
5588
|
-
|
|
5589
|
-
|
|
5602
|
+
n[9] === u ? g = n[10] : (g = Array.isArray(u) ? u.map(String) : [], n[9] = u, n[10] = g);
|
|
5603
|
+
let _;
|
|
5604
|
+
n[11] === r ? _ = n[12] : (_ = (e) => r.handleChange(e), n[11] = r, n[12] = _);
|
|
5605
|
+
let v;
|
|
5606
|
+
n[13] !== r || n[14] !== c ? (v = (e) => {
|
|
5607
|
+
r.handleBlur(), c?.onBlur?.(e);
|
|
5608
|
+
}, n[13] = r, n[14] = c, n[15] = v) : v = n[15];
|
|
5609
|
+
let b;
|
|
5610
|
+
return n[16] !== c || n[17] !== d || n[18] !== s || n[19] !== p || n[20] !== m || n[21] !== h || n[22] !== g || n[23] !== _ || n[24] !== v ? (b = /* @__PURE__ */ J(y, {
|
|
5590
5611
|
w: "100%",
|
|
5591
5612
|
searchable: !0,
|
|
5592
|
-
|
|
5593
|
-
|
|
5613
|
+
...c,
|
|
5614
|
+
size: s,
|
|
5615
|
+
comboboxProps: p,
|
|
5616
|
+
"aria-label": m,
|
|
5594
5617
|
"data-dg-part": "editor-input",
|
|
5595
|
-
data:
|
|
5596
|
-
value:
|
|
5597
|
-
onChange:
|
|
5598
|
-
onBlur:
|
|
5599
|
-
error:
|
|
5600
|
-
}), n[
|
|
5618
|
+
data: h,
|
|
5619
|
+
value: g,
|
|
5620
|
+
onChange: _,
|
|
5621
|
+
onBlur: v,
|
|
5622
|
+
error: d
|
|
5623
|
+
}), n[16] = c, n[17] = d, n[18] = s, n[19] = p, n[20] = m, n[21] = h, n[22] = g, n[23] = _, n[24] = v, n[25] = b) : b = n[25], b;
|
|
5601
5624
|
}
|
|
5602
5625
|
//#endregion
|
|
5603
5626
|
//#region src/components/editors/TMDataGridNumberEditor.tsx
|
|
5604
|
-
function
|
|
5605
|
-
let n = e(
|
|
5606
|
-
n[0] !==
|
|
5607
|
-
let
|
|
5608
|
-
n[3]
|
|
5609
|
-
|
|
5610
|
-
|
|
5627
|
+
function ps(t) {
|
|
5628
|
+
let n = e(25), { field: r, column: i, size: a, inputProps: o } = t, { labels: s } = $(), l = ns(r), u = os(r), { inputRef: d, remember: f } = ls(), [p, m] = c(null), h = p === null || p === "" ? null : Number(p), g = Number.isFinite(h) ? h === l : l === null, _ = o?.ref, v;
|
|
5629
|
+
n[0] !== d || n[1] !== _ ? (v = ts(d, _), n[0] = d, n[1] = _, n[2] = v) : v = n[2];
|
|
5630
|
+
let y;
|
|
5631
|
+
n[3] === o ? y = n[4] : (y = (e) => {
|
|
5632
|
+
cs(e), o?.onFocus?.(e);
|
|
5633
|
+
}, n[3] = o, n[4] = y);
|
|
5634
|
+
let x;
|
|
5635
|
+
n[5] !== i || n[6] !== s ? (x = s.editCell(Vn(i)), n[5] = i, n[6] = s, n[7] = x) : x = n[7];
|
|
5636
|
+
let S = p !== null && g ? p : typeof l == "number" ? l : "", C;
|
|
5637
|
+
n[8] !== r || n[9] !== d || n[10] !== f ? (C = (e) => {
|
|
5638
|
+
if (d.current !== null && f(d.current), typeof e == "number") {
|
|
5639
|
+
m(null), r.handleChange(e);
|
|
5611
5640
|
return;
|
|
5612
5641
|
}
|
|
5613
|
-
|
|
5642
|
+
m(e);
|
|
5614
5643
|
let t = Number(e);
|
|
5615
5644
|
r.handleChange(e !== "" && Number.isFinite(t) ? t : null);
|
|
5616
|
-
}, n[
|
|
5617
|
-
let
|
|
5618
|
-
|
|
5619
|
-
|
|
5620
|
-
|
|
5645
|
+
}, n[8] = r, n[9] = d, n[10] = f, n[11] = C) : C = n[11];
|
|
5646
|
+
let w;
|
|
5647
|
+
n[12] !== r || n[13] !== o ? (w = (e) => {
|
|
5648
|
+
r.handleBlur(), o?.onBlur?.(e);
|
|
5649
|
+
}, n[12] = r, n[13] = o, n[14] = w) : w = n[14];
|
|
5650
|
+
let T;
|
|
5651
|
+
return n[15] !== o || n[16] !== u || n[17] !== a || n[18] !== v || n[19] !== y || n[20] !== x || n[21] !== S || n[22] !== C || n[23] !== w ? (T = /* @__PURE__ */ J(b, {
|
|
5621
5652
|
w: "100%",
|
|
5622
|
-
onFocus: ss,
|
|
5623
5653
|
hideControls: !0,
|
|
5624
|
-
|
|
5654
|
+
...o,
|
|
5655
|
+
ref: v,
|
|
5656
|
+
size: a,
|
|
5657
|
+
onFocus: y,
|
|
5658
|
+
"aria-label": x,
|
|
5625
5659
|
"data-dg-part": "editor-input",
|
|
5626
|
-
value:
|
|
5627
|
-
onChange:
|
|
5628
|
-
onBlur:
|
|
5629
|
-
error:
|
|
5630
|
-
}), n[
|
|
5660
|
+
value: S,
|
|
5661
|
+
onChange: C,
|
|
5662
|
+
onBlur: w,
|
|
5663
|
+
error: u
|
|
5664
|
+
}), n[15] = o, n[16] = u, n[17] = a, n[18] = v, n[19] = y, n[20] = x, n[21] = S, n[22] = C, n[23] = w, n[24] = T) : T = n[24], T;
|
|
5631
5665
|
}
|
|
5632
5666
|
//#endregion
|
|
5633
5667
|
//#region src/components/editors/TMDataGridSelectEditor.tsx
|
|
5634
|
-
function
|
|
5635
|
-
let n = e(
|
|
5636
|
-
n[0] ===
|
|
5637
|
-
|
|
5638
|
-
|
|
5639
|
-
|
|
5640
|
-
|
|
5668
|
+
function ms(t) {
|
|
5669
|
+
let n = e(26), { field: r, column: i, row: a, table: o, size: s, commit: c, inputProps: l } = t, { labels: u, features: d } = $(), f = ns(r), p = os(r), m = l?.comboboxProps, h;
|
|
5670
|
+
n[0] === m ? h = n[1] : (h = {
|
|
5671
|
+
...m,
|
|
5672
|
+
withinPortal: !1
|
|
5673
|
+
}, n[0] = m, n[1] = h);
|
|
5674
|
+
let g;
|
|
5675
|
+
n[2] !== i || n[3] !== u ? (g = u.editCell(Vn(i)), n[2] = i, n[3] = u, n[4] = g) : g = n[4];
|
|
5676
|
+
let _;
|
|
5677
|
+
n[5] !== i || n[6] !== a || n[7] !== o ? (_ = mn(pn({
|
|
5641
5678
|
table: o,
|
|
5642
5679
|
column: i,
|
|
5643
5680
|
row: a,
|
|
5644
5681
|
fallback: "faceted"
|
|
5645
|
-
})), n[
|
|
5646
|
-
let
|
|
5647
|
-
n[
|
|
5648
|
-
r.handleChange(e), e !== null &&
|
|
5649
|
-
}, n[
|
|
5650
|
-
let
|
|
5651
|
-
|
|
5652
|
-
|
|
5682
|
+
})), n[5] = i, n[6] = a, n[7] = o, n[8] = _) : _ = n[8];
|
|
5683
|
+
let v = typeof f == "string" ? f : null, y;
|
|
5684
|
+
n[9] !== c || n[10] !== d || n[11] !== r ? (y = (e) => {
|
|
5685
|
+
r.handleChange(e), e !== null && d.editMode === "cell" && c();
|
|
5686
|
+
}, n[9] = c, n[10] = d, n[11] = r, n[12] = y) : y = n[12];
|
|
5687
|
+
let b;
|
|
5688
|
+
n[13] !== r || n[14] !== l ? (b = (e) => {
|
|
5689
|
+
r.handleBlur(), l?.onBlur?.(e);
|
|
5690
|
+
}, n[13] = r, n[14] = l, n[15] = b) : b = n[15];
|
|
5691
|
+
let x;
|
|
5692
|
+
return n[16] !== l || n[17] !== p || n[18] !== s || n[19] !== h || n[20] !== g || n[21] !== _ || n[22] !== v || n[23] !== y || n[24] !== b ? (x = /* @__PURE__ */ J(T, {
|
|
5653
5693
|
w: "100%",
|
|
5654
5694
|
searchable: !0,
|
|
5655
|
-
|
|
5656
|
-
|
|
5695
|
+
...l,
|
|
5696
|
+
size: s,
|
|
5697
|
+
comboboxProps: h,
|
|
5698
|
+
"aria-label": g,
|
|
5657
5699
|
"data-dg-part": "editor-input",
|
|
5658
|
-
data:
|
|
5659
|
-
value:
|
|
5660
|
-
onChange:
|
|
5661
|
-
onBlur:
|
|
5662
|
-
error:
|
|
5663
|
-
}), n[
|
|
5700
|
+
data: _,
|
|
5701
|
+
value: v,
|
|
5702
|
+
onChange: y,
|
|
5703
|
+
onBlur: b,
|
|
5704
|
+
error: p
|
|
5705
|
+
}), n[16] = l, n[17] = p, n[18] = s, n[19] = h, n[20] = g, n[21] = _, n[22] = v, n[23] = y, n[24] = b, n[25] = x) : x = n[25], x;
|
|
5664
5706
|
}
|
|
5665
5707
|
//#endregion
|
|
5666
5708
|
//#region src/components/editors/TMDataGridStringEditor.tsx
|
|
5667
|
-
function
|
|
5668
|
-
let n = e(
|
|
5669
|
-
n[0] !==
|
|
5670
|
-
let f = typeof s == "string" ? s : "", p;
|
|
5671
|
-
n[3] !== r || n[4] !== u ? (p = (e) => {
|
|
5672
|
-
u(e.currentTarget), r.handleChange(e.currentTarget.value);
|
|
5673
|
-
}, n[3] = r, n[4] = u, n[5] = p) : p = n[5];
|
|
5709
|
+
function hs(t) {
|
|
5710
|
+
let n = e(24), { field: r, column: i, size: a, inputProps: o } = t, { labels: s } = $(), c = ns(r), l = os(r), { inputRef: u, remember: d } = ls(), f = o?.ref, p;
|
|
5711
|
+
n[0] !== u || n[1] !== f ? (p = ts(u, f), n[0] = u, n[1] = f, n[2] = p) : p = n[2];
|
|
5674
5712
|
let m;
|
|
5675
|
-
|
|
5676
|
-
|
|
5677
|
-
|
|
5713
|
+
n[3] === o ? m = n[4] : (m = (e) => {
|
|
5714
|
+
cs(e), o?.onFocus?.(e);
|
|
5715
|
+
}, n[3] = o, n[4] = m);
|
|
5716
|
+
let h;
|
|
5717
|
+
n[5] !== i || n[6] !== s ? (h = s.editCell(Vn(i)), n[5] = i, n[6] = s, n[7] = h) : h = n[7];
|
|
5718
|
+
let g = typeof c == "string" ? c : "", _;
|
|
5719
|
+
n[8] !== r || n[9] !== d ? (_ = (e) => {
|
|
5720
|
+
d(e.currentTarget), r.handleChange(e.currentTarget.value);
|
|
5721
|
+
}, n[8] = r, n[9] = d, n[10] = _) : _ = n[10];
|
|
5722
|
+
let v;
|
|
5723
|
+
n[11] !== r || n[12] !== o ? (v = (e) => {
|
|
5724
|
+
r.handleBlur(), o?.onBlur?.(e);
|
|
5725
|
+
}, n[11] = r, n[12] = o, n[13] = v) : v = n[13];
|
|
5726
|
+
let y;
|
|
5727
|
+
return n[14] !== o || n[15] !== l || n[16] !== a || n[17] !== p || n[18] !== m || n[19] !== h || n[20] !== g || n[21] !== _ || n[22] !== v ? (y = /* @__PURE__ */ J(O, {
|
|
5678
5728
|
w: "100%",
|
|
5679
|
-
|
|
5680
|
-
|
|
5729
|
+
...o,
|
|
5730
|
+
ref: p,
|
|
5731
|
+
size: a,
|
|
5732
|
+
onFocus: m,
|
|
5733
|
+
"aria-label": h,
|
|
5681
5734
|
"data-dg-part": "editor-input",
|
|
5682
|
-
value:
|
|
5683
|
-
onChange:
|
|
5684
|
-
onBlur:
|
|
5685
|
-
error:
|
|
5686
|
-
}), n[
|
|
5735
|
+
value: g,
|
|
5736
|
+
onChange: _,
|
|
5737
|
+
onBlur: v,
|
|
5738
|
+
error: l
|
|
5739
|
+
}), n[14] = o, n[15] = l, n[16] = a, n[17] = p, n[18] = m, n[19] = h, n[20] = g, n[21] = _, n[22] = v, n[23] = y) : y = n[23], y;
|
|
5687
5740
|
}
|
|
5688
5741
|
//#endregion
|
|
5689
5742
|
//#region src/components/TMDataGridCellEditor.tsx
|
|
5690
|
-
var
|
|
5691
|
-
string:
|
|
5692
|
-
number:
|
|
5693
|
-
boolean:
|
|
5694
|
-
date:
|
|
5695
|
-
select:
|
|
5696
|
-
multiSelect:
|
|
5743
|
+
var gs = {
|
|
5744
|
+
string: hs,
|
|
5745
|
+
number: ps,
|
|
5746
|
+
boolean: us,
|
|
5747
|
+
date: ds,
|
|
5748
|
+
select: ms,
|
|
5749
|
+
multiSelect: fs
|
|
5697
5750
|
};
|
|
5698
|
-
function
|
|
5751
|
+
function _s({ cell: e, row: t, takeSeedText: n, onClose: r, inEntryBlock: a = !1 }) {
|
|
5699
5752
|
let { table: o, edit: u, features: d, labels: f, controlSize: p } = $(), m = d.editMode === "row" || a, h = e.column, g = u.getForm(t.id), _ = qt(h), [v] = c(() => n()), y = s(void 0);
|
|
5700
5753
|
i(() => {
|
|
5701
5754
|
y.current = h.columnDef.meta?.edit?.mapValue;
|
|
@@ -5718,7 +5771,7 @@ function gs({ cell: e, row: t, takeSeedText: n, onClose: r, inEntryBlock: a = !1
|
|
|
5718
5771
|
}), e;
|
|
5719
5772
|
});
|
|
5720
5773
|
i(() => b.mount(), [b]);
|
|
5721
|
-
let x =
|
|
5774
|
+
let x = is(b), [S, C] = c(!1), [w, T] = c(!1);
|
|
5722
5775
|
i(() => {
|
|
5723
5776
|
if (v === void 0) return;
|
|
5724
5777
|
let e = h.columnDef.meta?.type ?? "string";
|
|
@@ -5785,7 +5838,7 @@ function gs({ cell: e, row: t, takeSeedText: n, onClose: r, inEntryBlock: a = !1
|
|
|
5785
5838
|
cancel: O,
|
|
5786
5839
|
size: p,
|
|
5787
5840
|
seedText: v
|
|
5788
|
-
}, P = h.columnDef.meta?.edit?.editor ??
|
|
5841
|
+
}, P = h.columnDef.meta?.edit?.editor ?? gs[h.columnDef.meta?.type ?? "string"] ?? hs;
|
|
5789
5842
|
return /* @__PURE__ */ Y("div", {
|
|
5790
5843
|
className: Ht.cellEditor,
|
|
5791
5844
|
"data-dg-part": "editor",
|
|
@@ -5843,7 +5896,7 @@ function gs({ cell: e, row: t, takeSeedText: n, onClose: r, inEntryBlock: a = !1
|
|
|
5843
5896
|
}
|
|
5844
5897
|
//#endregion
|
|
5845
5898
|
//#region src/core/draftCellContext.ts
|
|
5846
|
-
function
|
|
5899
|
+
function vs(e, t) {
|
|
5847
5900
|
let n = Object.create(e.row), r = n;
|
|
5848
5901
|
r.original = t, r._valuesCache = Object.create(null), r._uniqueValuesCache = Object.create(null);
|
|
5849
5902
|
let i = Object.create(e);
|
|
@@ -5858,10 +5911,10 @@ function _s(e, t) {
|
|
|
5858
5911
|
}
|
|
5859
5912
|
//#endregion
|
|
5860
5913
|
//#region src/components/TMDataGridEntryRows.tsx
|
|
5861
|
-
function
|
|
5914
|
+
function ys(e, t, n) {
|
|
5862
5915
|
return n.isColumnEditable(t) ? qn(t, e) : !1;
|
|
5863
5916
|
}
|
|
5864
|
-
function
|
|
5917
|
+
function bs(t) {
|
|
5865
5918
|
let n = e(49), { entryRow: r, column: i, cell: a, committed: o, layout: s, rowHeight: c, pinnedZ: l } = t, { edit: u } = $(), d;
|
|
5866
5919
|
n[0] === i ? d = n[1] : (d = qt(i), n[0] = i, n[1] = d);
|
|
5867
5920
|
let f = d, p;
|
|
@@ -5871,7 +5924,7 @@ function ys(t) {
|
|
|
5871
5924
|
return t !== void 0 && t.errorFields.includes(f);
|
|
5872
5925
|
}, n[2] = r, n[3] = f, n[4] = p) : p = n[4];
|
|
5873
5926
|
let m = M(u.store, p), h;
|
|
5874
|
-
n[5] !== a || n[6] !== i || n[7] !== u || n[8] !== r ? (h = a !== void 0 &&
|
|
5927
|
+
n[5] !== a || n[6] !== i || n[7] !== u || n[8] !== r ? (h = a !== void 0 && ys(r, i, u), n[5] = a, n[6] = i, n[7] = u, n[8] = r, n[9] = h) : h = n[9];
|
|
5875
5928
|
let g = h, _;
|
|
5876
5929
|
n[10] !== i.id || n[11] !== o || n[12] !== r ? (_ = (e) => o || Yn(i.id) ? void 0 : e.rows[r.id]?.values, n[10] = i.id, n[11] = o, n[12] = r, n[13] = _) : _ = n[13];
|
|
5877
5930
|
let v = M(u.store, _), y = i.id, b;
|
|
@@ -5898,15 +5951,15 @@ function ys(t) {
|
|
|
5898
5951
|
zIndex: j
|
|
5899
5952
|
}, n[27] = c, n[28] = O, n[29] = k, n[30] = A, n[31] = j, n[32] = N) : N = n[32];
|
|
5900
5953
|
let P;
|
|
5901
|
-
n[33] !== a || n[34] !== i.id || n[35] !== o || n[36] !== v || n[37] !== g || n[38] !== r ? (P = a === void 0 ? null : i.id === "__edit__" ? Ie(a.column.columnDef.cell, a.getContext()) : !o && g ? /* @__PURE__ */ J(
|
|
5954
|
+
n[33] !== a || n[34] !== i.id || n[35] !== o || n[36] !== v || n[37] !== g || n[38] !== r ? (P = a === void 0 ? null : i.id === "__edit__" ? Ie(a.column.columnDef.cell, a.getContext()) : !o && g ? /* @__PURE__ */ J(_s, {
|
|
5902
5955
|
cell: a,
|
|
5903
5956
|
row: r,
|
|
5904
|
-
takeSeedText:
|
|
5905
|
-
onClose:
|
|
5957
|
+
takeSeedText: Ss,
|
|
5958
|
+
onClose: xs,
|
|
5906
5959
|
inEntryBlock: !0
|
|
5907
5960
|
}) : o || !Yn(i.id) ? /* @__PURE__ */ J("span", {
|
|
5908
5961
|
className: Ht.cellContent,
|
|
5909
|
-
children: Ie(a.column.columnDef.cell, v === void 0 ? a.getContext() :
|
|
5962
|
+
children: Ie(a.column.columnDef.cell, v === void 0 ? a.getContext() : vs(a, v))
|
|
5910
5963
|
}) : null, n[33] = a, n[34] = i.id, n[35] = o, n[36] = v, n[37] = g, n[38] = r, n[39] = P) : P = n[39];
|
|
5911
5964
|
let F;
|
|
5912
5965
|
return n[40] !== i.id || n[41] !== D || n[42] !== N || n[43] !== P || n[44] !== b || n[45] !== x || n[46] !== S || n[47] !== C ? (F = /* @__PURE__ */ J("div", {
|
|
@@ -5921,14 +5974,14 @@ function ys(t) {
|
|
|
5921
5974
|
children: P
|
|
5922
5975
|
}), n[40] = i.id, n[41] = D, n[42] = N, n[43] = P, n[44] = b, n[45] = x, n[46] = S, n[47] = C, n[48] = F) : F = n[48], F;
|
|
5923
5976
|
}
|
|
5924
|
-
function bs() {}
|
|
5925
5977
|
function xs() {}
|
|
5926
|
-
function Ss(
|
|
5978
|
+
function Ss() {}
|
|
5979
|
+
function Cs(t) {
|
|
5927
5980
|
let n = e(35), { orderedColumns: r, layoutFor: i, rowHeight: o } = t, { table: c, edit: l, features: u } = $(), d = u.editNewRowsSticky, f;
|
|
5928
|
-
n[0] === d ? f = n[1] : (f = (e) => d ? e.newRows : e.newRows.filter(
|
|
5981
|
+
n[0] === d ? f = n[1] : (f = (e) => d ? e.newRows : e.newRows.filter(Os), n[0] = d, n[1] = f);
|
|
5929
5982
|
let p;
|
|
5930
5983
|
n[2] === Symbol.for("react.memo_cache_sentinel") ? (p = { compare: _e }, n[2] = p) : p = n[2];
|
|
5931
|
-
let m = M(l.store, f, p), h = M(l.store,
|
|
5984
|
+
let m = M(l.store, f, p), h = M(l.store, Ds), g = M(l.store, Es), _ = s(null), v = s(null), y = s(null), b;
|
|
5932
5985
|
n[3] === m ? b = n[4] : (b = () => {
|
|
5933
5986
|
let e = m.at(-1)?.tempId;
|
|
5934
5987
|
if (e === void 0) {
|
|
@@ -5976,10 +6029,10 @@ function Ss(t) {
|
|
|
5976
6029
|
let D;
|
|
5977
6030
|
if (n[20] !== E || n[21] !== i || n[22] !== m || n[23] !== r || n[24] !== o) {
|
|
5978
6031
|
let e = E.getCoreRowModel().rows, t;
|
|
5979
|
-
n[26] === m ? t = n[27] : (t = new Map(m.map(
|
|
6032
|
+
n[26] === m ? t = n[27] : (t = new Map(m.map(Ts)), n[26] = m, n[27] = t);
|
|
5980
6033
|
let a = t, s;
|
|
5981
6034
|
n[28] !== a || n[29] !== i || n[30] !== r || n[31] !== o ? (s = (e, t) => {
|
|
5982
|
-
let n = new Map(e.getAllCells().map(
|
|
6035
|
+
let n = new Map(e.getAllCells().map(ws)), s = a.get(e.id) === !0;
|
|
5983
6036
|
return /* @__PURE__ */ J("div", {
|
|
5984
6037
|
role: "row",
|
|
5985
6038
|
"data-dg-part": "entry-row",
|
|
@@ -5988,7 +6041,7 @@ function Ss(t) {
|
|
|
5988
6041
|
"data-committed": s || void 0,
|
|
5989
6042
|
"data-draft": s || void 0,
|
|
5990
6043
|
className: Ht.entryRow,
|
|
5991
|
-
children: r.map((r) => /* @__PURE__ */ J(
|
|
6044
|
+
children: r.map((r) => /* @__PURE__ */ J(bs, {
|
|
5992
6045
|
entryRow: e,
|
|
5993
6046
|
column: r,
|
|
5994
6047
|
cell: n.get(r.id),
|
|
@@ -6011,29 +6064,29 @@ function Ss(t) {
|
|
|
6011
6064
|
let O;
|
|
6012
6065
|
return n[33] === D ? O = n[34] : (O = /* @__PURE__ */ J(fe, { children: D }), n[33] = D, n[34] = O), O;
|
|
6013
6066
|
}
|
|
6014
|
-
function
|
|
6067
|
+
function ws(e) {
|
|
6015
6068
|
return [e.column.id, e];
|
|
6016
6069
|
}
|
|
6017
|
-
function
|
|
6070
|
+
function Ts(e) {
|
|
6018
6071
|
return [e.tempId, e.committed];
|
|
6019
6072
|
}
|
|
6020
|
-
function
|
|
6073
|
+
function Es(e) {
|
|
6021
6074
|
return e.active !== null && e.newRows.some((t) => t.tempId === e.active?.rowId && !t.committed) ? e.active : null;
|
|
6022
6075
|
}
|
|
6023
|
-
function
|
|
6076
|
+
function Ds(e) {
|
|
6024
6077
|
return e.committedValues;
|
|
6025
6078
|
}
|
|
6026
|
-
function
|
|
6079
|
+
function Os(e) {
|
|
6027
6080
|
return !e.committed;
|
|
6028
6081
|
}
|
|
6029
6082
|
//#endregion
|
|
6030
6083
|
//#region src/core/resizePreview.ts
|
|
6031
|
-
var
|
|
6032
|
-
function
|
|
6084
|
+
var ks = 20, As = 2 ** 53 - 1;
|
|
6085
|
+
function js(e, t, n) {
|
|
6033
6086
|
let r = Math.round(Math.max(e + e * t, 0) * 100) / 100;
|
|
6034
|
-
return Math.min(Math.max(n.minSize ??
|
|
6087
|
+
return Math.min(Math.max(n.minSize ?? ks, r), n.maxSize ?? As);
|
|
6035
6088
|
}
|
|
6036
|
-
function*
|
|
6089
|
+
function* Ms(e, t, n) {
|
|
6037
6090
|
let r = 0;
|
|
6038
6091
|
for (let i of e) yield {
|
|
6039
6092
|
columnId: i,
|
|
@@ -6041,10 +6094,10 @@ function* js(e, t, n) {
|
|
|
6041
6094
|
offset: r
|
|
6042
6095
|
}, r += n(i);
|
|
6043
6096
|
}
|
|
6044
|
-
function
|
|
6097
|
+
function Ns({ progress: e, tracks: t, boundsOf: n, leftLane: r, rightLane: i }) {
|
|
6045
6098
|
if (e.isResizingColumn === !1 || e.columnSizingStart.length === 0) return null;
|
|
6046
6099
|
let a = e.deltaPercentage ?? 0, o = /* @__PURE__ */ new Map();
|
|
6047
|
-
for (let [t, r] of e.columnSizingStart) o.set(t,
|
|
6100
|
+
for (let [t, r] of e.columnSizingStart) o.set(t, js(r, a, n(t)));
|
|
6048
6101
|
let s = [], c = 0;
|
|
6049
6102
|
for (let e of t) {
|
|
6050
6103
|
let t = o.get(e.id);
|
|
@@ -6054,12 +6107,12 @@ function Ms({ progress: e, tracks: t, boundsOf: n, leftLane: r, rightLane: i })
|
|
|
6054
6107
|
return {
|
|
6055
6108
|
gridTemplateColumns: s.join(" "),
|
|
6056
6109
|
minWidth: c,
|
|
6057
|
-
offsets: [...l(r) ?
|
|
6110
|
+
offsets: [...l(r) ? Ms(r, "left", u) : [], ...l(i) ? Ms(i, "right", u) : []]
|
|
6058
6111
|
};
|
|
6059
6112
|
}
|
|
6060
6113
|
//#endregion
|
|
6061
6114
|
//#region src/core/cellRange.ts
|
|
6062
|
-
function
|
|
6115
|
+
function Ps({ range: e, rowIndexOf: t, columnIndexOf: n }) {
|
|
6063
6116
|
if (e === null) return null;
|
|
6064
6117
|
let r = t(e.anchor.rowId), i = t(e.focus.rowId), a = n(e.anchor.columnId), o = n(e.focus.columnId);
|
|
6065
6118
|
return r < 0 || i < 0 || a < 0 || o < 0 ? null : {
|
|
@@ -6069,14 +6122,14 @@ function Ns({ range: e, rowIndexOf: t, columnIndexOf: n }) {
|
|
|
6069
6122
|
right: Math.max(a, o)
|
|
6070
6123
|
};
|
|
6071
6124
|
}
|
|
6072
|
-
function
|
|
6125
|
+
function Fs(e, t, n) {
|
|
6073
6126
|
return e !== null && t >= e.top && t <= e.bottom && n >= e.left && n <= e.right;
|
|
6074
6127
|
}
|
|
6075
|
-
function
|
|
6128
|
+
function Is(e) {
|
|
6076
6129
|
return e === null ? 0 : (e.bottom - e.top + 1) * (e.right - e.left + 1);
|
|
6077
6130
|
}
|
|
6078
|
-
function
|
|
6079
|
-
return !
|
|
6131
|
+
function Ls(e, t, n, r = n) {
|
|
6132
|
+
return !Fs(e, t, n) || e === null ? null : {
|
|
6080
6133
|
top: t === e.top,
|
|
6081
6134
|
bottom: t === e.bottom,
|
|
6082
6135
|
left: n === e.left,
|
|
@@ -6085,7 +6138,7 @@ function Is(e, t, n, r = n) {
|
|
|
6085
6138
|
}
|
|
6086
6139
|
//#endregion
|
|
6087
6140
|
//#region src/core/colSpan.ts
|
|
6088
|
-
function
|
|
6141
|
+
function Rs(e, t) {
|
|
6089
6142
|
let n = [], r = 0;
|
|
6090
6143
|
for (; r < e.length;) {
|
|
6091
6144
|
let i = e[r], a = Xn(i.id) ? 1 : t(r), o = typeof a == "number" && a >= 1 ? Math.floor(a) : 1, s = 1;
|
|
@@ -6100,18 +6153,18 @@ function Ls(e, t) {
|
|
|
6100
6153
|
}
|
|
6101
6154
|
return n;
|
|
6102
6155
|
}
|
|
6103
|
-
function
|
|
6156
|
+
function zs(e, t) {
|
|
6104
6157
|
let n = t;
|
|
6105
6158
|
for (; n > 0 && e[n] === 0;) --n;
|
|
6106
6159
|
return n;
|
|
6107
6160
|
}
|
|
6108
|
-
function
|
|
6109
|
-
let n =
|
|
6161
|
+
function Bs(e, t) {
|
|
6162
|
+
let n = zs(e, t);
|
|
6110
6163
|
return n + Math.max(1, e[n] ?? 1) - 1;
|
|
6111
6164
|
}
|
|
6112
6165
|
//#endregion
|
|
6113
6166
|
//#region src/core/rowPinning.ts
|
|
6114
|
-
function
|
|
6167
|
+
function Vs(e, t) {
|
|
6115
6168
|
let n = e.store.state.rowPinning[t];
|
|
6116
6169
|
if (n.length === 0) return [];
|
|
6117
6170
|
let r = e.getPrePaginatedRowModel().rowsById, i = e.getCoreRowModel().rowsById, a = [];
|
|
@@ -6123,17 +6176,17 @@ function Bs(e, t) {
|
|
|
6123
6176
|
}
|
|
6124
6177
|
//#endregion
|
|
6125
6178
|
//#region src/core/matchHighlight.ts
|
|
6126
|
-
var
|
|
6179
|
+
var Hs = [
|
|
6127
6180
|
"contains",
|
|
6128
6181
|
"startsWith",
|
|
6129
6182
|
"endsWith"
|
|
6130
6183
|
];
|
|
6131
|
-
function
|
|
6184
|
+
function Us(e) {
|
|
6132
6185
|
let t = e.store.state, n = typeof t.globalFilter == "string" ? t.globalFilter.trim() : "", r = /* @__PURE__ */ new Map();
|
|
6133
6186
|
for (let e of t.columnFilters) {
|
|
6134
6187
|
if (!Ct(e.value)) continue;
|
|
6135
6188
|
let { operator: t, value: n } = e.value;
|
|
6136
|
-
if (!
|
|
6189
|
+
if (!Hs.includes(t) || typeof n != "string" || n === "") continue;
|
|
6137
6190
|
let i = r.get(e.id) ?? [];
|
|
6138
6191
|
i.push(n), r.set(e.id, i);
|
|
6139
6192
|
}
|
|
@@ -6147,7 +6200,7 @@ function Hs(e) {
|
|
|
6147
6200
|
}
|
|
6148
6201
|
return i.size > 0 ? i : null;
|
|
6149
6202
|
}
|
|
6150
|
-
function
|
|
6203
|
+
function Ws(e, t) {
|
|
6151
6204
|
let n = e.toLowerCase(), r = [];
|
|
6152
6205
|
for (let e of t) {
|
|
6153
6206
|
let t = e.toLowerCase();
|
|
@@ -6169,29 +6222,29 @@ function Us(e, t) {
|
|
|
6169
6222
|
}
|
|
6170
6223
|
//#endregion
|
|
6171
6224
|
//#region src/components/TMDataGridTable.tsx
|
|
6172
|
-
var
|
|
6225
|
+
var Gs = {
|
|
6173
6226
|
pinnedAt: !1,
|
|
6174
6227
|
offset: 0,
|
|
6175
6228
|
isBoundary: !1
|
|
6176
6229
|
};
|
|
6177
|
-
function
|
|
6230
|
+
function Ks(e, t) {
|
|
6178
6231
|
return e.querySelector(`[data-cell="true"][data-row-id="${CSS.escape(t.rowId)}"][data-column-id="${CSS.escape(t.columnId)}"]`);
|
|
6179
6232
|
}
|
|
6180
|
-
function
|
|
6233
|
+
function qs({ container: e, cellElement: t, leftPinnedWidth: n, rightPinnedWidth: r }) {
|
|
6181
6234
|
let i = t.getBoundingClientRect(), a = e.getBoundingClientRect(), o = a.left + n, s = a.right - r;
|
|
6182
6235
|
i.left < o ? e.scrollLeft -= o - i.left : i.right > s && (e.scrollLeft += i.right - s);
|
|
6183
6236
|
}
|
|
6184
|
-
function
|
|
6237
|
+
function Js(e) {
|
|
6185
6238
|
if (e.getIsPlaceholder()) return null;
|
|
6186
|
-
if (!
|
|
6239
|
+
if (!Ys(e)) return Ie(e.column.columnDef.cell, e.getContext());
|
|
6187
6240
|
let { aggregatedCell: t } = e.column.columnDef;
|
|
6188
6241
|
return t === void 0 ? e.getIsAggregated() ? Ie(e.column.columnDef.cell, e.getContext()) : null : Ie(t, e.getContext());
|
|
6189
6242
|
}
|
|
6190
|
-
function
|
|
6243
|
+
function Ys(e) {
|
|
6191
6244
|
return e.row.getIsGrouped() && !e.getIsGrouped();
|
|
6192
6245
|
}
|
|
6193
|
-
function
|
|
6194
|
-
let n =
|
|
6246
|
+
function Xs(e, t) {
|
|
6247
|
+
let n = Ws(e, t);
|
|
6195
6248
|
if (n === null) return e;
|
|
6196
6249
|
let r = [], i = 0;
|
|
6197
6250
|
for (let t of n) t.start > i && r.push(e.slice(i, t.start)), r.push(/* @__PURE__ */ J("mark", {
|
|
@@ -6200,7 +6253,7 @@ function Ys(e, t) {
|
|
|
6200
6253
|
}, t.start)), i = t.end;
|
|
6201
6254
|
return i < e.length && r.push(e.slice(i)), r;
|
|
6202
6255
|
}
|
|
6203
|
-
function
|
|
6256
|
+
function Zs(t) {
|
|
6204
6257
|
let n = e(62), { cell: r, rowHeight: i, colSpan: a, layout: o, nav: s, editor: c, contentOverride: l, highlightNeedles: u, onFocus: d, onClick: f, onMouseDown: p, onMouseEnter: m, onDoubleClick: h, onContextMenu: g } = t, _ = a === void 0 ? 1 : a, { table: v, edit: y } = $(), b;
|
|
6205
6258
|
n[0] === r.column ? b = n[1] : (b = qt(r.column), n[0] = r.column, n[1] = b);
|
|
6206
6259
|
let x = b, S = r.row.id, C;
|
|
@@ -6242,12 +6295,12 @@ function Xs(t) {
|
|
|
6242
6295
|
n[25] !== r || n[26] !== l || n[27] !== A || n[28] !== c || n[29] !== u || n[30] !== v ? (pe = c ?? /* @__PURE__ */ J("span", {
|
|
6243
6296
|
className: Ht.cellContent,
|
|
6244
6297
|
children: (() => {
|
|
6245
|
-
let e = A !== void 0 && l === void 0 && !r.getIsPlaceholder() && !
|
|
6246
|
-
if (u !== void 0 && l === void 0 && !r.getIsPlaceholder() && !
|
|
6298
|
+
let e = A !== void 0 && l === void 0 && !r.getIsPlaceholder() && !Ys(r) ? vs(r, A) : void 0;
|
|
6299
|
+
if (u !== void 0 && l === void 0 && !r.getIsPlaceholder() && !Ys(r) && r.column.columnDef.cell === v.getDefaultColumnDef().cell) {
|
|
6247
6300
|
let t = e === void 0 ? r.renderValue() : e.renderValue();
|
|
6248
|
-
if (typeof t == "string" || typeof t == "number") return
|
|
6301
|
+
if (typeof t == "string" || typeof t == "number") return Xs(String(t), u);
|
|
6249
6302
|
}
|
|
6250
|
-
return e === void 0 ? l ??
|
|
6303
|
+
return e === void 0 ? l ?? Js(r) : Ie(r.column.columnDef.cell, e);
|
|
6251
6304
|
})()
|
|
6252
6305
|
}), n[25] = r, n[26] = l, n[27] = A, n[28] = c, n[29] = u, n[30] = v, n[31] = pe) : pe = n[31];
|
|
6253
6306
|
let me;
|
|
@@ -6283,7 +6336,7 @@ function Xs(t) {
|
|
|
6283
6336
|
children: pe
|
|
6284
6337
|
}), n[32] = r.column.id, n[33] = r.row.id, n[34] = f, n[35] = g, n[36] = h, n[37] = d, n[38] = p, n[39] = m, n[40] = F, n[41] = ee, n[42] = I, n[43] = z, n[44] = B, n[45] = V, n[46] = H, n[47] = te, n[48] = U, n[49] = W, n[50] = ne, n[51] = re, n[52] = ie, n[53] = ae, n[54] = oe, n[55] = ce, n[56] = Y, n[57] = pe, n[58] = j, n[59] = N, n[60] = P, n[61] = me) : me = n[61], me;
|
|
6285
6338
|
}
|
|
6286
|
-
function
|
|
6339
|
+
function Qs(t) {
|
|
6287
6340
|
let n = e(16), { enabled: r, menuContent: i, menuProps: a, onContextMenu: o, onClose: s, children: c } = t, l;
|
|
6288
6341
|
n[0] === Symbol.for("react.memo_cache_sentinel") ? (l = { display: "contents" }, n[0] = l) : l = n[0];
|
|
6289
6342
|
let u = r ? o : void 0, d;
|
|
@@ -6314,10 +6367,10 @@ function Zs(t) {
|
|
|
6314
6367
|
children: [h, g]
|
|
6315
6368
|
}), n[10] = a, n[11] = p, n[12] = m, n[13] = h, n[14] = g, n[15] = v) : v = n[15], v;
|
|
6316
6369
|
}
|
|
6317
|
-
function
|
|
6370
|
+
function $s({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContextMenu: l, rowClassName: u, rowStyle: d, striped: f = !1, highlightOnHover: m, onScrollToTop: h, onScrollToBottom: v, onScrollToLeft: y, onScrollToRight: b, renderEmptyState: x, renderRowContextMenu: S, renderColumnMenuItems: C, rowContextMenuProps: w, onReachEnd: T, reachEndThreshold: E = 10, "aria-label": O, "aria-labelledby": k }) {
|
|
6318
6371
|
let { table: A, ui: j, edit: N, features: P, filters: F, exportOptions: ee, labels: I, rowHeight: L, controlSize: R, renderDetails: z, renderDetailsEstHeight: B, overscan: V, scrollerRef: H } = $();
|
|
6319
6372
|
Ha(A.store);
|
|
6320
|
-
let te = M(j, (e) => e.highlightedRowId), U = M(j, (e) => e.focusedCell), W = M(j, (e) => e.cellRange), ne = M(N.store, (e) => e.active), re = M(N.store, (e) => e.openRowIds), ie = M(N.store, (e) => e.newRows), ae = ie.length, oe = M(N.store, (e) => e.deletedRowIds), se = M(N.store, (e) => e.openRowIds.filter((t) => (e.rows[t]?.dirtyFields.length ?? 0) > 0)), G = M(N.store, (e) => e.committedRowIds), K = o(() => new Set(re), [re]), ce = o(() => new Set(se), [se]), le = o(() => new Set(G), [G]), de = o(() => new Set(ie.map((e) => e.tempId)), [ie]), { loading: q, noResultsLabel: pe = I.noResults } = A.options.meta ?? {}, me = s(null), X = Mn(A, P), he = P.matchHighlighting ?
|
|
6373
|
+
let te = M(j, (e) => e.highlightedRowId), U = M(j, (e) => e.focusedCell), W = M(j, (e) => e.cellRange), ne = M(N.store, (e) => e.active), re = M(N.store, (e) => e.openRowIds), ie = M(N.store, (e) => e.newRows), ae = ie.length, oe = M(N.store, (e) => e.deletedRowIds), se = M(N.store, (e) => e.openRowIds.filter((t) => (e.rows[t]?.dirtyFields.length ?? 0) > 0)), G = M(N.store, (e) => e.committedRowIds), K = o(() => new Set(re), [re]), ce = o(() => new Set(se), [se]), le = o(() => new Set(G), [G]), de = o(() => new Set(ie.map((e) => e.tempId)), [ie]), { loading: q, noResultsLabel: pe = I.noResults } = A.options.meta ?? {}, me = s(null), X = Mn(A, P), he = P.matchHighlighting ? Us(A) : null, ge = P.rowPinning ? Vs(A, "top") : [], _e = P.rowPinning ? Vs(A, "bottom") : [], ve = ge.length + _e.length, ye = null;
|
|
6321
6374
|
if (P.rowNumbers) {
|
|
6322
6375
|
ye = /* @__PURE__ */ new Map();
|
|
6323
6376
|
let e = Nn(A, P) ? A.store.state.pagination.pageIndex * A.store.state.pagination.pageSize : 0;
|
|
@@ -6430,7 +6483,7 @@ function Qs({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6430
6483
|
if (Ue === null || e.getIsGrouped() || We(e)) return null;
|
|
6431
6484
|
let t = Ge.get(e.id);
|
|
6432
6485
|
if (t !== void 0) return t;
|
|
6433
|
-
let n =
|
|
6486
|
+
let n = Rs(Ue, (t) => {
|
|
6434
6487
|
let n = Ue[t]?.colSpan;
|
|
6435
6488
|
return typeof n == "function" ? n({
|
|
6436
6489
|
row: e,
|
|
@@ -6447,7 +6500,7 @@ function Qs({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6447
6500
|
if (n === null) return e;
|
|
6448
6501
|
let r = Q.findIndex((t) => t.id === e.columnId);
|
|
6449
6502
|
if (r < 0) return e;
|
|
6450
|
-
let i =
|
|
6503
|
+
let i = zs(n, r);
|
|
6451
6504
|
if (i === r) return e;
|
|
6452
6505
|
let a = Q[i];
|
|
6453
6506
|
return a ? {
|
|
@@ -6489,7 +6542,7 @@ function Qs({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6489
6542
|
offset: 0,
|
|
6490
6543
|
isBoundary: !1
|
|
6491
6544
|
});
|
|
6492
|
-
let ct = (e) => it.get(e) ??
|
|
6545
|
+
let ct = (e) => it.get(e) ?? Gs, lt = (e, t) => {
|
|
6493
6546
|
let n = ct(Q[e].id);
|
|
6494
6547
|
if (n.pinnedAt === !1) return n;
|
|
6495
6548
|
let r = Q.slice(e, t + 1).map((e) => ct(e.id));
|
|
@@ -6513,7 +6566,7 @@ function Qs({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6513
6566
|
let e = Se.current;
|
|
6514
6567
|
if (!e) return;
|
|
6515
6568
|
let t = "", n = A.store.subscribe((n) => {
|
|
6516
|
-
let r =
|
|
6569
|
+
let r = Ns({
|
|
6517
6570
|
progress: n.columnResizing,
|
|
6518
6571
|
boundsOf: (e) => A.getColumn(e)?.columnDef ?? {},
|
|
6519
6572
|
...ut.current
|
|
@@ -6582,8 +6635,8 @@ function Qs({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6582
6635
|
if (Lt === null) return;
|
|
6583
6636
|
Dt.current = !0, j.actions.setFocusedCell(Lt);
|
|
6584
6637
|
let e = me.current;
|
|
6585
|
-
e !== null &&
|
|
6586
|
-
}, zt = (e, t, n) => U !== null && U.rowId === e && Pt >= t && Pt <= n, Bt =
|
|
6638
|
+
e !== null && Ks(e, Lt)?.focus({ preventScroll: !0 });
|
|
6639
|
+
}, zt = (e, t, n) => U !== null && U.rowId === e && Pt >= t && Pt <= n, Bt = Ps({
|
|
6587
6640
|
range: Tt ? W : null,
|
|
6588
6641
|
rowIndexOf: (e) => X.findIndex((t) => t.id === e),
|
|
6589
6642
|
columnIndexOf: (e) => Q.findIndex((t) => t.id === e)
|
|
@@ -6599,7 +6652,7 @@ function Qs({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6599
6652
|
bottom: Nt,
|
|
6600
6653
|
left: Pt,
|
|
6601
6654
|
right: Pt
|
|
6602
|
-
} : null), Wt =
|
|
6655
|
+
} : null), Wt = Is(Ut), Gt = Ut === null ? 0 : Q.slice(Ut.left, Ut.right + 1).filter((e) => !Xn(e.id) && e.columnDef.meta?.enableExport !== !1).length, Kt = sa(ee), [qt, Jt] = c(Kt.includeHeaders), Yt = () => Ut === null ? null : ha({
|
|
6603
6656
|
table: A,
|
|
6604
6657
|
rows: X,
|
|
6605
6658
|
bounds: Ut
|
|
@@ -6657,7 +6710,7 @@ function Qs({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6657
6710
|
});
|
|
6658
6711
|
let sn = (e) => {
|
|
6659
6712
|
let t = me.current;
|
|
6660
|
-
t !== null && (Dt.current = !0,
|
|
6713
|
+
t !== null && (Dt.current = !0, Ks(t, e)?.focus());
|
|
6661
6714
|
}, cn = (e) => {
|
|
6662
6715
|
wt && j.actions.setFocusedCell(e), N.begin({
|
|
6663
6716
|
rowId: e.rowId,
|
|
@@ -6730,7 +6783,7 @@ function Qs({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6730
6783
|
rowIndex: c,
|
|
6731
6784
|
columnIndex: e.shiftKey ? Q.length - 1 : 0
|
|
6732
6785
|
});
|
|
6733
|
-
let n = me.current, r = n === null ? null :
|
|
6786
|
+
let n = me.current, r = n === null ? null : Ks(n, Je({
|
|
6734
6787
|
rowId: l.id,
|
|
6735
6788
|
columnId: u.id
|
|
6736
6789
|
}, l));
|
|
@@ -6809,7 +6862,7 @@ function Qs({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6809
6862
|
ctrlKey: e.ctrlKey || e.metaKey,
|
|
6810
6863
|
from: {
|
|
6811
6864
|
rowIndex: a,
|
|
6812
|
-
columnIndex: l !== null && e.key === "ArrowRight" ?
|
|
6865
|
+
columnIndex: l !== null && e.key === "ArrowRight" ? Bs(l, o) : o
|
|
6813
6866
|
},
|
|
6814
6867
|
rowCount: X.length,
|
|
6815
6868
|
columnCount: Q.length,
|
|
@@ -6817,7 +6870,7 @@ function Qs({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6817
6870
|
});
|
|
6818
6871
|
if (u === null) return;
|
|
6819
6872
|
e.preventDefault();
|
|
6820
|
-
let d = l === null ? u.columnIndex :
|
|
6873
|
+
let d = l === null ? u.columnIndex : zs(l, u.columnIndex);
|
|
6821
6874
|
u.rowIndex === a && d === o || tn(u, { extend: e.shiftKey && Tt });
|
|
6822
6875
|
};
|
|
6823
6876
|
i(() => {
|
|
@@ -6834,8 +6887,8 @@ function Qs({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6834
6887
|
return;
|
|
6835
6888
|
}
|
|
6836
6889
|
if (!Dt.current && !e.contains(t) || !Dt.current && t !== null && t.closest("[data-dg-part=\"tab-guard\"]") !== null) return;
|
|
6837
|
-
let r =
|
|
6838
|
-
r !== null && (Dt.current = !1, !r.contains(t) && (t !== null && t.closest("[data-dg-part=\"editor\"]") !== null || (r.focus({ preventScroll: !0 }), ct(U.columnId).pinnedAt === !1 &&
|
|
6890
|
+
let r = Ks(e, n);
|
|
6891
|
+
r !== null && (Dt.current = !1, !r.contains(t) && (t !== null && t.closest("[data-dg-part=\"editor\"]") !== null || (r.focus({ preventScroll: !0 }), ct(U.columnId).pinnedAt === !1 && qs({
|
|
6839
6892
|
container: e,
|
|
6840
6893
|
cellElement: r,
|
|
6841
6894
|
leftPinnedWidth: ot,
|
|
@@ -6846,7 +6899,7 @@ function Qs({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6846
6899
|
let e = hn.current, t = gn.current;
|
|
6847
6900
|
if (hn.current = null, gn.current = null, wt && e !== null && t !== null) {
|
|
6848
6901
|
let n = X.findIndex((t) => t.id === e), r = Q.findIndex((e) => e.id === t);
|
|
6849
|
-
n >= 0 && !
|
|
6902
|
+
n >= 0 && !Fs(Ut, n, r) && (j.actions.setFocusedCell({
|
|
6850
6903
|
rowId: e,
|
|
6851
6904
|
columnId: t
|
|
6852
6905
|
}), Vt({
|
|
@@ -6964,12 +7017,12 @@ function Qs({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6964
7017
|
className: Ht.tabGuard,
|
|
6965
7018
|
onFocus: Rt
|
|
6966
7019
|
}),
|
|
6967
|
-
P.editing && ae > 0 && /* @__PURE__ */ J(
|
|
7020
|
+
P.editing && ae > 0 && /* @__PURE__ */ J(Cs, {
|
|
6968
7021
|
orderedColumns: Q,
|
|
6969
7022
|
layoutFor: ct,
|
|
6970
7023
|
rowHeight: L
|
|
6971
7024
|
}),
|
|
6972
|
-
/* @__PURE__ */ J(
|
|
7025
|
+
/* @__PURE__ */ J(Qs, {
|
|
6973
7026
|
enabled: S !== void 0 || Tt,
|
|
6974
7027
|
menuContent: Cn,
|
|
6975
7028
|
menuProps: w,
|
|
@@ -7031,14 +7084,14 @@ function Qs({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
7031
7084
|
children: [u.map((i, a) => {
|
|
7032
7085
|
if (p !== null && p[a] === 0) return null;
|
|
7033
7086
|
let s = p?.[a] ?? 1, c = a + s - 1, u = ne !== null && ne.rowId === e.id && ne.columnId === i.column.id || d && N.canEditCell(e, i.column);
|
|
7034
|
-
return /* @__PURE__ */ J(
|
|
7087
|
+
return /* @__PURE__ */ J(Zs, {
|
|
7035
7088
|
cell: i,
|
|
7036
7089
|
rowHeight: L,
|
|
7037
7090
|
colSpan: s,
|
|
7038
7091
|
layout: s > 1 ? lt(a, c) : ct(i.column.id),
|
|
7039
7092
|
contentOverride: ye !== null && i.column.id === "__rowNumber__" ? ye.get(e.id) : void 0,
|
|
7040
7093
|
highlightNeedles: he?.get(i.column.id),
|
|
7041
|
-
editor: u ? /* @__PURE__ */ J(
|
|
7094
|
+
editor: u ? /* @__PURE__ */ J(_s, {
|
|
7042
7095
|
cell: i,
|
|
7043
7096
|
row: e,
|
|
7044
7097
|
takeSeedText: rn,
|
|
@@ -7059,8 +7112,8 @@ function Qs({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
7059
7112
|
columnIndex: a + 1,
|
|
7060
7113
|
focused: zt(e.id, a, c),
|
|
7061
7114
|
tabIndex: -1,
|
|
7062
|
-
selected: Tt ?
|
|
7063
|
-
edges:
|
|
7115
|
+
selected: Tt ? Fs(Bt, n, a) : zt(e.id, a, c),
|
|
7116
|
+
edges: Ls(Bt, n, a, c)
|
|
7064
7117
|
} : void 0,
|
|
7065
7118
|
onFocus: wt ? () => j.actions.setFocusedCell({
|
|
7066
7119
|
rowId: e.id,
|
|
@@ -7209,18 +7262,18 @@ function Qs({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
7209
7262
|
]
|
|
7210
7263
|
});
|
|
7211
7264
|
}
|
|
7212
|
-
var
|
|
7265
|
+
var ec = {
|
|
7213
7266
|
toolbar: "_toolbar_gwk05_1",
|
|
7214
7267
|
toolbarSpacer: "_toolbarSpacer_gwk05_15",
|
|
7215
7268
|
summaryCount: "_summaryCount_gwk05_19"
|
|
7216
7269
|
};
|
|
7217
7270
|
//#endregion
|
|
7218
7271
|
//#region src/components/TMDataGridToolbar.tsx
|
|
7219
|
-
function
|
|
7272
|
+
function tc(t) {
|
|
7220
7273
|
let n = e(18), r, i, a, o, s;
|
|
7221
7274
|
n[0] === t ? (r = n[1], i = n[2], a = n[3], o = n[4], s = n[5]) : ({children: r, withBottomBorder: s, className: i, mod: a, ...o} = t, n[0] = t, n[1] = r, n[2] = i, n[3] = a, n[4] = o, n[5] = s);
|
|
7222
7275
|
let c = s !== void 0 && s, l;
|
|
7223
|
-
n[6] === i ? l = n[7] : (l = [
|
|
7276
|
+
n[6] === i ? l = n[7] : (l = [ec.toolbar, i].filter(Boolean), n[6] = i, n[7] = l);
|
|
7224
7277
|
let u = l.join(" "), f;
|
|
7225
7278
|
n[8] === c ? f = n[9] : (f = { "with-bottom-border": c }, n[8] = c, n[9] = f);
|
|
7226
7279
|
let p;
|
|
@@ -7234,18 +7287,18 @@ function ec(t) {
|
|
|
7234
7287
|
children: r
|
|
7235
7288
|
}), n[13] = r, n[14] = o, n[15] = u, n[16] = p, n[17] = m) : m = n[17], m;
|
|
7236
7289
|
}
|
|
7237
|
-
function
|
|
7290
|
+
function nc(t) {
|
|
7238
7291
|
let n = e(8), r, i;
|
|
7239
7292
|
n[0] === t ? (r = n[1], i = n[2]) : ({className: r, ...i} = t, n[0] = t, n[1] = r, n[2] = i);
|
|
7240
7293
|
let a;
|
|
7241
|
-
n[3] === r ? a = n[4] : (a = [
|
|
7294
|
+
n[3] === r ? a = n[4] : (a = [ec.toolbarSpacer, r].filter(Boolean), n[3] = r, n[4] = a);
|
|
7242
7295
|
let o = a.join(" "), s;
|
|
7243
7296
|
return n[5] !== i || n[6] !== o ? (s = /* @__PURE__ */ J(d, {
|
|
7244
7297
|
className: o,
|
|
7245
7298
|
...i
|
|
7246
7299
|
}), n[5] = i, n[6] = o, n[7] = s) : s = n[7], s;
|
|
7247
7300
|
}
|
|
7248
|
-
function
|
|
7301
|
+
function rc() {
|
|
7249
7302
|
let t = e(2), { table: n, labels: r } = $();
|
|
7250
7303
|
if (n.options.meta?.loading !== !0) return null;
|
|
7251
7304
|
let i;
|
|
@@ -7255,7 +7308,7 @@ function nc() {
|
|
|
7255
7308
|
"aria-label": r.loading
|
|
7256
7309
|
}), t[0] = r.loading, t[1] = i), i;
|
|
7257
7310
|
}
|
|
7258
|
-
function
|
|
7311
|
+
function ic(t) {
|
|
7259
7312
|
let n = e(8), { children: r } = t, { table: i, controlSize: a } = $();
|
|
7260
7313
|
Ha(i.store);
|
|
7261
7314
|
let o = i.options.manualFiltering === !0 || i.options.manualPagination === !0, s;
|
|
@@ -7267,13 +7320,13 @@ function rc(t) {
|
|
|
7267
7320
|
span: !0,
|
|
7268
7321
|
size: a,
|
|
7269
7322
|
c: "dimmed",
|
|
7270
|
-
className:
|
|
7323
|
+
className: ec.summaryCount,
|
|
7271
7324
|
"data-dg-part": "summary-count",
|
|
7272
7325
|
children: d
|
|
7273
7326
|
}), n[5] = a, n[6] = d, n[7] = f) : f = n[7], f;
|
|
7274
7327
|
}
|
|
7275
|
-
function
|
|
7276
|
-
let t = e(16), n = $(), { table: r, ui: i, features: a, filters: o, labels: s, controlSize: c } = n, u = M(i,
|
|
7328
|
+
function ac() {
|
|
7329
|
+
let t = e(16), n = $(), { table: r, ui: i, features: a, filters: o, labels: s, controlSize: c } = n, u = M(i, lc), d = M(r.store, cc), f = d.filter(sc).length;
|
|
7277
7330
|
if (!ji(r, a).canFilterAny || o.surface === "none") return null;
|
|
7278
7331
|
let p = u || f > 0 ? "light" : "subtle", m = f > 0 ? void 0 : "gray", h;
|
|
7279
7332
|
t[0] !== n || t[1] !== d.length || t[2] !== u || t[3] !== r || t[4] !== i.actions ? (h = () => {
|
|
@@ -7281,7 +7334,7 @@ function ic() {
|
|
|
7281
7334
|
i.actions.closeFilterPanel();
|
|
7282
7335
|
return;
|
|
7283
7336
|
}
|
|
7284
|
-
let e = d.length === 0 ? r.getAllLeafColumns().find(
|
|
7337
|
+
let e = d.length === 0 ? r.getAllLeafColumns().find(oc) : void 0;
|
|
7285
7338
|
e && Fa(n, e.id), i.actions.openFilterPanel(e?.id ?? null);
|
|
7286
7339
|
}, t[0] = n, t[1] = d.length, t[2] = u, t[3] = r, t[4] = i.actions, t[5] = h) : h = t[5];
|
|
7287
7340
|
let g;
|
|
@@ -7306,19 +7359,19 @@ function ic() {
|
|
|
7306
7359
|
children: _
|
|
7307
7360
|
}), t[13] = s.filters, t[14] = _, t[15] = v) : v = t[15], v;
|
|
7308
7361
|
}
|
|
7309
|
-
function
|
|
7362
|
+
function oc(e) {
|
|
7310
7363
|
return e.getCanFilter();
|
|
7311
7364
|
}
|
|
7312
|
-
function
|
|
7365
|
+
function sc(e) {
|
|
7313
7366
|
return Tt(e.value);
|
|
7314
7367
|
}
|
|
7315
|
-
function
|
|
7368
|
+
function cc(e) {
|
|
7316
7369
|
return e.columnFilters;
|
|
7317
7370
|
}
|
|
7318
|
-
function
|
|
7371
|
+
function lc(e) {
|
|
7319
7372
|
return e.filterPanelOpen;
|
|
7320
7373
|
}
|
|
7321
|
-
var
|
|
7374
|
+
var uc = {
|
|
7322
7375
|
title: "_title_199r2_1",
|
|
7323
7376
|
list: "_list_199r2_5",
|
|
7324
7377
|
listHeader: "_listHeader_199r2_13",
|
|
@@ -7334,20 +7387,20 @@ var lc = {
|
|
|
7334
7387
|
};
|
|
7335
7388
|
//#endregion
|
|
7336
7389
|
//#region src/components/TMDataGridExportPicker.tsx
|
|
7337
|
-
function
|
|
7338
|
-
let t = e(26), { ui: n, labels: r, size: i, controlSize: a, exportOptions: o } = $(), s = M(n,
|
|
7390
|
+
function dc() {
|
|
7391
|
+
let t = e(26), { ui: n, labels: r, size: i, controlSize: a, exportOptions: o } = $(), s = M(n, fc), c, l, u, d;
|
|
7339
7392
|
if (t[0] !== o || t[1] !== r || t[2] !== s || t[3] !== n.actions) {
|
|
7340
7393
|
let e = s ? sa(o, s.options).format : null;
|
|
7341
7394
|
c = v, l = s !== null, t[8] === n.actions ? u = t[9] : (u = () => n.actions.closeExportPicker(), t[8] = n.actions, t[9] = u), d = e && r.exportPickerTitle(e.extension.toUpperCase()), t[0] = o, t[1] = r, t[2] = s, t[3] = n.actions, t[4] = c, t[5] = l, t[6] = u, t[7] = d;
|
|
7342
7395
|
} else c = t[4], l = t[5], u = t[6], d = t[7];
|
|
7343
|
-
let f =
|
|
7396
|
+
let f = pc[i], p = mc[a], m;
|
|
7344
7397
|
t[10] === p ? m = t[11] : (m = { size: p }, t[10] = p, t[11] = m);
|
|
7345
7398
|
let h;
|
|
7346
|
-
t[12] === Symbol.for("react.memo_cache_sentinel") ? (h = { title:
|
|
7399
|
+
t[12] === Symbol.for("react.memo_cache_sentinel") ? (h = { title: uc.title }, t[12] = h) : h = t[12];
|
|
7347
7400
|
let g = `var(--mantine-font-size-${a})`, _;
|
|
7348
7401
|
t[13] === g ? _ = t[14] : (_ = { title: { fontSize: g } }, t[13] = g, t[14] = _);
|
|
7349
7402
|
let y;
|
|
7350
|
-
t[15] === s ? y = t[16] : (y = s && /* @__PURE__ */ J(
|
|
7403
|
+
t[15] === s ? y = t[16] : (y = s && /* @__PURE__ */ J(hc, { request: s }), t[15] = s, t[16] = y);
|
|
7351
7404
|
let b;
|
|
7352
7405
|
return t[17] !== c || t[18] !== l || t[19] !== u || t[20] !== d || t[21] !== f || t[22] !== m || t[23] !== _ || t[24] !== y ? (b = /* @__PURE__ */ J(c, {
|
|
7353
7406
|
opened: l,
|
|
@@ -7360,25 +7413,25 @@ function uc() {
|
|
|
7360
7413
|
children: y
|
|
7361
7414
|
}), t[17] = c, t[18] = l, t[19] = u, t[20] = d, t[21] = f, t[22] = m, t[23] = _, t[24] = y, t[25] = b) : b = t[25], b;
|
|
7362
7415
|
}
|
|
7363
|
-
function
|
|
7416
|
+
function fc(e) {
|
|
7364
7417
|
return e.exportPicker;
|
|
7365
7418
|
}
|
|
7366
|
-
var
|
|
7419
|
+
var pc = {
|
|
7367
7420
|
xs: "xs",
|
|
7368
7421
|
sm: "xs",
|
|
7369
7422
|
md: "sm",
|
|
7370
7423
|
lg: "sm",
|
|
7371
7424
|
xl: "md"
|
|
7372
|
-
},
|
|
7425
|
+
}, mc = {
|
|
7373
7426
|
xs: "sm",
|
|
7374
7427
|
sm: "md",
|
|
7375
7428
|
md: "lg"
|
|
7376
7429
|
};
|
|
7377
|
-
function
|
|
7430
|
+
function hc(t) {
|
|
7378
7431
|
let n = e(95), { request: r } = t, { table: i, ui: a, labels: o, controlSize: s } = $(), { exportAll: l, exportSelected: u } = Qa(r.options), d;
|
|
7379
7432
|
n[0] === i ? d = n[1] : (d = la(i), n[0] = i, n[1] = d);
|
|
7380
7433
|
let h = d, [g, _] = c(""), v;
|
|
7381
|
-
n[2] === h ? v = n[3] : (v = () => new Set(h.filter(
|
|
7434
|
+
n[2] === h ? v = n[3] : (v = () => new Set(h.filter(vc).map(_c)), n[2] = h, n[3] = v);
|
|
7382
7435
|
let [y, b] = c(v), x;
|
|
7383
7436
|
n[4] === h.length ? x = n[5] : (x = Qn("auto", h.length), n[4] = h.length, n[5] = x);
|
|
7384
7437
|
let S = x, w;
|
|
@@ -7404,7 +7457,7 @@ function mc(t) {
|
|
|
7404
7457
|
}), n[15] = T, n[16] = F);
|
|
7405
7458
|
let ee = F, I;
|
|
7406
7459
|
n[17] !== y || n[18] !== h || n[19] !== l || n[20] !== u || n[21] !== r.rows || n[22] !== a.actions ? (I = async () => {
|
|
7407
|
-
let e = h.filter((e) => y.has(e.id)).map(
|
|
7460
|
+
let e = h.filter((e) => y.has(e.id)).map(gc);
|
|
7408
7461
|
await (r.rows === "selected" ? u : l)({ columns: e }), a.actions.closeExportPicker();
|
|
7409
7462
|
}, n[17] = y, n[18] = h, n[19] = l, n[20] = u, n[21] = r.rows, n[22] = a.actions, n[23] = I) : I = n[23];
|
|
7410
7463
|
let L = I, R;
|
|
@@ -7432,7 +7485,7 @@ function mc(t) {
|
|
|
7432
7485
|
let H;
|
|
7433
7486
|
n[36] === ee ? H = n[37] : (H = (e) => ee(e.currentTarget.checked), n[36] = ee, n[37] = H);
|
|
7434
7487
|
let te;
|
|
7435
|
-
n[38] === Symbol.for("react.memo_cache_sentinel") ? (te = { label:
|
|
7488
|
+
n[38] === Symbol.for("react.memo_cache_sentinel") ? (te = { label: uc.headerLabel }, n[38] = te) : te = n[38];
|
|
7436
7489
|
let U;
|
|
7437
7490
|
n[39] !== j || n[40] !== s || n[41] !== o.exportPickerSelectAll || n[42] !== M || n[43] !== H ? (U = /* @__PURE__ */ J(p, {
|
|
7438
7491
|
size: s,
|
|
@@ -7454,7 +7507,7 @@ function mc(t) {
|
|
|
7454
7507
|
}), n[49] = W, n[50] = ne);
|
|
7455
7508
|
let re;
|
|
7456
7509
|
n[51] !== U || n[52] !== ne ? (re = /* @__PURE__ */ Y("div", {
|
|
7457
|
-
className:
|
|
7510
|
+
className: uc.listHeader,
|
|
7458
7511
|
children: [U, ne]
|
|
7459
7512
|
}), n[51] = U, n[52] = ne, n[53] = re) : re = n[53];
|
|
7460
7513
|
let ie;
|
|
@@ -7463,19 +7516,19 @@ function mc(t) {
|
|
|
7463
7516
|
n[59] !== y || n[60] !== s || n[61] !== o.exportPickerHidden ? (e = (e) => /* @__PURE__ */ J(p, {
|
|
7464
7517
|
size: s,
|
|
7465
7518
|
label: /* @__PURE__ */ Y(fe, { children: [/* @__PURE__ */ J("span", {
|
|
7466
|
-
className:
|
|
7519
|
+
className: uc.rowText,
|
|
7467
7520
|
children: Vn(e)
|
|
7468
7521
|
}), !e.getIsVisible() && /* @__PURE__ */ J("span", {
|
|
7469
|
-
className:
|
|
7522
|
+
className: uc.rowHint,
|
|
7470
7523
|
children: o.exportPickerHidden
|
|
7471
7524
|
})] }),
|
|
7472
7525
|
checked: y.has(e.id),
|
|
7473
7526
|
onChange: (t) => P(e.id, t.currentTarget.checked),
|
|
7474
7527
|
classNames: {
|
|
7475
|
-
root:
|
|
7476
|
-
body:
|
|
7477
|
-
labelWrapper:
|
|
7478
|
-
label:
|
|
7528
|
+
root: uc.row,
|
|
7529
|
+
body: uc.rowBody,
|
|
7530
|
+
labelWrapper: uc.rowLabelWrapper,
|
|
7531
|
+
label: uc.rowLabel
|
|
7479
7532
|
},
|
|
7480
7533
|
"data-dg-part": "export-column",
|
|
7481
7534
|
"data-column-id": e.id
|
|
@@ -7485,7 +7538,7 @@ function mc(t) {
|
|
|
7485
7538
|
n[63] !== s || n[64] !== o || n[65] !== T.length || n[66] !== g ? (ae = T.length === 0 && /* @__PURE__ */ J(D, {
|
|
7486
7539
|
size: s,
|
|
7487
7540
|
c: "dimmed",
|
|
7488
|
-
className:
|
|
7541
|
+
className: uc.empty,
|
|
7489
7542
|
children: o.columnsNoMatch(g)
|
|
7490
7543
|
}), n[63] = s, n[64] = o, n[65] = T.length, n[66] = g, n[67] = ae) : ae = n[67];
|
|
7491
7544
|
let oe;
|
|
@@ -7493,13 +7546,13 @@ function mc(t) {
|
|
|
7493
7546
|
mah: "50vh",
|
|
7494
7547
|
type: "auto",
|
|
7495
7548
|
children: /* @__PURE__ */ Y("div", {
|
|
7496
|
-
className:
|
|
7549
|
+
className: uc.rows,
|
|
7497
7550
|
children: [ie, ae]
|
|
7498
7551
|
})
|
|
7499
7552
|
}), n[68] = ie, n[69] = ae, n[70] = oe) : oe = n[70];
|
|
7500
7553
|
let se;
|
|
7501
7554
|
n[71] !== re || n[72] !== oe ? (se = /* @__PURE__ */ Y("div", {
|
|
7502
|
-
className:
|
|
7555
|
+
className: uc.list,
|
|
7503
7556
|
children: [re, oe]
|
|
7504
7557
|
}), n[71] = re, n[72] = oe, n[73] = se) : se = n[73];
|
|
7505
7558
|
let G;
|
|
@@ -7540,24 +7593,24 @@ function mc(t) {
|
|
|
7540
7593
|
]
|
|
7541
7594
|
}), n[90] = B, n[91] = V, n[92] = se, n[93] = q, n[94] = pe) : pe = n[94], pe;
|
|
7542
7595
|
}
|
|
7543
|
-
function hc(e) {
|
|
7544
|
-
return e.id;
|
|
7545
|
-
}
|
|
7546
7596
|
function gc(e) {
|
|
7547
7597
|
return e.id;
|
|
7548
7598
|
}
|
|
7549
7599
|
function _c(e) {
|
|
7600
|
+
return e.id;
|
|
7601
|
+
}
|
|
7602
|
+
function vc(e) {
|
|
7550
7603
|
return e.getIsVisible();
|
|
7551
7604
|
}
|
|
7552
7605
|
//#endregion
|
|
7553
7606
|
//#region src/core/sizes.ts
|
|
7554
|
-
var
|
|
7607
|
+
var yc = "md", bc = {
|
|
7555
7608
|
xs: 34,
|
|
7556
7609
|
sm: 42,
|
|
7557
7610
|
md: 52,
|
|
7558
7611
|
lg: 62,
|
|
7559
7612
|
xl: 72
|
|
7560
|
-
},
|
|
7613
|
+
}, xc = {
|
|
7561
7614
|
xs: "xs",
|
|
7562
7615
|
sm: "xs",
|
|
7563
7616
|
md: "sm",
|
|
@@ -7566,8 +7619,8 @@ var vc = "md", yc = {
|
|
|
7566
7619
|
};
|
|
7567
7620
|
//#endregion
|
|
7568
7621
|
//#region src/components/TMDataGrid.tsx
|
|
7569
|
-
function
|
|
7570
|
-
let n = e(30), { table: r, ui: i, edit: a, features: o, filters: s, exportOptions: c, labels: l, renderDetails: u, renderDetailsEstHeight: d, overscan: f, resetSettings: p, scrollToRow: m, scrollerRef: h, size: g, children: _, className: v, style: y, id: b, "data-testid": x } = t, S = g === void 0 ? "md" : g, C = r.options.meta?.rowHeight ??
|
|
7622
|
+
function Sc(t) {
|
|
7623
|
+
let n = e(30), { table: r, ui: i, edit: a, features: o, filters: s, exportOptions: c, labels: l, renderDetails: u, renderDetailsEstHeight: d, overscan: f, resetSettings: p, scrollToRow: m, scrollerRef: h, size: g, children: _, className: v, style: y, id: b, "data-testid": x } = t, S = g === void 0 ? "md" : g, C = r.options.meta?.rowHeight ?? bc[S], w = xc[S], T;
|
|
7571
7624
|
n[0] !== a || n[1] !== c || n[2] !== o || n[3] !== s || n[4] !== l || n[5] !== f || n[6] !== u || n[7] !== d || n[8] !== p || n[9] !== C || n[10] !== m || n[11] !== h || n[12] !== S || n[13] !== w || n[14] !== r || n[15] !== i ? (T = {
|
|
7572
7625
|
table: r,
|
|
7573
7626
|
ui: i,
|
|
@@ -7599,23 +7652,23 @@ function xc(t) {
|
|
|
7599
7652
|
children: _
|
|
7600
7653
|
}), n[19] = _, n[20] = b, n[21] = S, n[22] = y, n[23] = O, n[24] = x, n[25] = k) : k = n[25];
|
|
7601
7654
|
let A;
|
|
7602
|
-
n[26] === Symbol.for("react.memo_cache_sentinel") ? (A = /* @__PURE__ */ J(
|
|
7655
|
+
n[26] === Symbol.for("react.memo_cache_sentinel") ? (A = /* @__PURE__ */ J(dc, {}), n[26] = A) : A = n[26];
|
|
7603
7656
|
let j;
|
|
7604
7657
|
return n[27] !== E || n[28] !== k ? (j = /* @__PURE__ */ Y(nt, {
|
|
7605
7658
|
value: E,
|
|
7606
7659
|
children: [k, A]
|
|
7607
7660
|
}), n[27] = E, n[28] = k, n[29] = j) : j = n[29], j;
|
|
7608
7661
|
}
|
|
7609
|
-
var
|
|
7610
|
-
Toolbar:
|
|
7611
|
-
Spacer:
|
|
7612
|
-
SummaryCount:
|
|
7613
|
-
LoadingIndicator:
|
|
7662
|
+
var Cc = Object.assign(Sc, {
|
|
7663
|
+
Toolbar: tc,
|
|
7664
|
+
Spacer: nc,
|
|
7665
|
+
SummaryCount: ic,
|
|
7666
|
+
LoadingIndicator: rc,
|
|
7614
7667
|
Search: uo,
|
|
7615
7668
|
DraftActions: mr,
|
|
7616
7669
|
Menu: lo,
|
|
7617
|
-
FilterButton:
|
|
7618
|
-
Table:
|
|
7670
|
+
FilterButton: ac,
|
|
7671
|
+
Table: $s,
|
|
7619
7672
|
Footer: Za,
|
|
7620
7673
|
FilterPanel: Er,
|
|
7621
7674
|
FilterPills: La,
|
|
@@ -7623,7 +7676,7 @@ var Sc = Object.assign(xc, {
|
|
|
7623
7676
|
});
|
|
7624
7677
|
//#endregion
|
|
7625
7678
|
//#region src/components/filters/DgRangeSliderFilter.tsx
|
|
7626
|
-
function
|
|
7679
|
+
function wc(t) {
|
|
7627
7680
|
let n = e(26), { column: r, operator: i, value: a, onChange: o, size: s, labels: c } = t;
|
|
7628
7681
|
if (!xt(i)) {
|
|
7629
7682
|
let e;
|
|
@@ -7673,7 +7726,7 @@ function Cc(t) {
|
|
|
7673
7726
|
}
|
|
7674
7727
|
//#endregion
|
|
7675
7728
|
//#region src/components/filters/DgDateRangeFilter.tsx
|
|
7676
|
-
function
|
|
7729
|
+
function Tc(t) {
|
|
7677
7730
|
let n = e(32), { operator: r, value: i, onChange: a, size: o, labels: s } = t;
|
|
7678
7731
|
if (!xt(r)) {
|
|
7679
7732
|
let e;
|
|
@@ -7726,7 +7779,7 @@ function wc(t) {
|
|
|
7726
7779
|
}
|
|
7727
7780
|
//#endregion
|
|
7728
7781
|
//#region src/components/filters/DgAutocompleteFilter.tsx
|
|
7729
|
-
function
|
|
7782
|
+
function Ec(t) {
|
|
7730
7783
|
let n = e(21), { column: r, table: i, operator: a, value: o, onChange: s, options: c, size: l, labels: d } = t;
|
|
7731
7784
|
if (bt(a) || xt(a)) {
|
|
7732
7785
|
let e;
|
|
@@ -7746,7 +7799,7 @@ function Tc(t) {
|
|
|
7746
7799
|
width: 180
|
|
7747
7800
|
}), n[8] = t, n[9] = d.filterValue, n[10] = g) : g = n[10];
|
|
7748
7801
|
let _ = !p, v = p && t.layout !== "header" ? d.filterValuePlaceholder : "", y;
|
|
7749
|
-
n[11] === h ? y = n[12] : (y = h.map(
|
|
7802
|
+
n[11] === h ? y = n[12] : (y = h.map(Dc), n[11] = h, n[12] = y);
|
|
7750
7803
|
let b = p && typeof o == "string" ? o : "", x;
|
|
7751
7804
|
return n[13] !== s || n[14] !== l || n[15] !== g || n[16] !== _ || n[17] !== v || n[18] !== y || n[19] !== b ? (x = /* @__PURE__ */ J(u, {
|
|
7752
7805
|
...g,
|
|
@@ -7759,12 +7812,12 @@ function Tc(t) {
|
|
|
7759
7812
|
onChange: s
|
|
7760
7813
|
}), n[13] = s, n[14] = l, n[15] = g, n[16] = _, n[17] = v, n[18] = y, n[19] = b, n[20] = x) : x = n[20], x;
|
|
7761
7814
|
}
|
|
7762
|
-
function
|
|
7815
|
+
function Dc(e) {
|
|
7763
7816
|
return e.value;
|
|
7764
7817
|
}
|
|
7765
7818
|
//#endregion
|
|
7766
7819
|
//#region src/components/filters/DgTriStateFilter.tsx
|
|
7767
|
-
function
|
|
7820
|
+
function Oc(t) {
|
|
7768
7821
|
let n = e(29), { operator: r, value: i, onChange: a, size: o, labels: s } = t;
|
|
7769
7822
|
if (bt(r) || xt(r)) {
|
|
7770
7823
|
let e;
|
|
@@ -7814,7 +7867,7 @@ function Dc(t) {
|
|
|
7814
7867
|
}
|
|
7815
7868
|
//#endregion
|
|
7816
7869
|
//#region src/core/labelsSv.ts
|
|
7817
|
-
var
|
|
7870
|
+
var kc = {
|
|
7818
7871
|
operators: {
|
|
7819
7872
|
contains: "innehåller",
|
|
7820
7873
|
equals: "är lika med",
|
|
@@ -7938,7 +7991,7 @@ var Oc = {
|
|
|
7938
7991
|
};
|
|
7939
7992
|
//#endregion
|
|
7940
7993
|
//#region src/core/summary.ts
|
|
7941
|
-
function
|
|
7994
|
+
function Ac({ table: e, columnId: t, fn: n = "sum" }) {
|
|
7942
7995
|
let r = e, i = r.getColumn(t);
|
|
7943
7996
|
if (!i) return;
|
|
7944
7997
|
let a = {
|
|
@@ -7953,13 +8006,13 @@ function kc({ table: e, columnId: t, fn: n = "sum" }) {
|
|
|
7953
8006
|
}
|
|
7954
8007
|
//#endregion
|
|
7955
8008
|
//#region src/core/urlState.ts
|
|
7956
|
-
function
|
|
8009
|
+
function jc(e) {
|
|
7957
8010
|
let { key: t, columns: n } = e, r = e.slices ?? Yr, i = e.slices ? [t, e.slices] : t, a = /* @__PURE__ */ new Map();
|
|
7958
8011
|
Ti(n, (e, t) => {
|
|
7959
8012
|
let n = t.meta?.type;
|
|
7960
8013
|
a.set(e, n ?? "string");
|
|
7961
8014
|
});
|
|
7962
|
-
let o = (e) =>
|
|
8015
|
+
let o = (e) => Mc(e, a, r);
|
|
7963
8016
|
return {
|
|
7964
8017
|
key: t,
|
|
7965
8018
|
slices: r,
|
|
@@ -7972,20 +8025,20 @@ function Ac(e) {
|
|
|
7972
8025
|
},
|
|
7973
8026
|
validateSearch: (e) => {
|
|
7974
8027
|
let n = e[t];
|
|
7975
|
-
return
|
|
8028
|
+
return Lc(n) ? { [t]: n } : {};
|
|
7976
8029
|
},
|
|
7977
8030
|
persist: (e) => e ? {
|
|
7978
8031
|
urlKey: i,
|
|
7979
|
-
urlStorage:
|
|
8032
|
+
urlStorage: Ic(e)
|
|
7980
8033
|
} : { urlKey: i }
|
|
7981
8034
|
};
|
|
7982
8035
|
}
|
|
7983
|
-
function
|
|
8036
|
+
function Mc(e, t, n) {
|
|
7984
8037
|
let r = {};
|
|
7985
8038
|
if (e.filters && n.includes("columnFilters")) {
|
|
7986
8039
|
let n = Object.entries(e.filters).flatMap(([e, n]) => n ? [{
|
|
7987
8040
|
id: e,
|
|
7988
|
-
value:
|
|
8041
|
+
value: Nc(n, t.get(e))
|
|
7989
8042
|
}] : []);
|
|
7990
8043
|
n.length > 0 && (r.columnFilters = n);
|
|
7991
8044
|
}
|
|
@@ -7997,7 +8050,7 @@ function jc(e, t, n) {
|
|
|
7997
8050
|
pageSize: e.pagination.pageSize
|
|
7998
8051
|
}), Object.keys(r).length === 0 ? void 0 : r;
|
|
7999
8052
|
}
|
|
8000
|
-
function
|
|
8053
|
+
function Nc(e, t) {
|
|
8001
8054
|
let { operator: n, value: r } = e;
|
|
8002
8055
|
if (n === "isEmpty" || n === "isNotEmpty") return {
|
|
8003
8056
|
operator: n,
|
|
@@ -8011,22 +8064,22 @@ function Mc(e, t) {
|
|
|
8011
8064
|
let [e, i] = r;
|
|
8012
8065
|
return {
|
|
8013
8066
|
operator: n,
|
|
8014
|
-
value: [
|
|
8067
|
+
value: [Pc(e, t), Pc(i, t)]
|
|
8015
8068
|
};
|
|
8016
8069
|
}
|
|
8017
8070
|
return {
|
|
8018
8071
|
operator: n,
|
|
8019
|
-
value:
|
|
8072
|
+
value: Pc(r, t)
|
|
8020
8073
|
};
|
|
8021
8074
|
}
|
|
8022
|
-
function
|
|
8023
|
-
return e == null ? "" : e instanceof Date ?
|
|
8075
|
+
function Pc(e, t) {
|
|
8076
|
+
return e == null ? "" : e instanceof Date ? Fc(e) : t === "date" && typeof e == "string" ? e.slice(0, 10) : String(e);
|
|
8024
8077
|
}
|
|
8025
|
-
function
|
|
8078
|
+
function Fc(e) {
|
|
8026
8079
|
let t = String(e.getMonth() + 1).padStart(2, "0"), n = String(e.getDate()).padStart(2, "0");
|
|
8027
8080
|
return `${e.getFullYear()}-${t}-${n}`;
|
|
8028
8081
|
}
|
|
8029
|
-
function
|
|
8082
|
+
function Ic(e) {
|
|
8030
8083
|
return {
|
|
8031
8084
|
get: (t) => {
|
|
8032
8085
|
let n = e.get(t);
|
|
@@ -8037,10 +8090,10 @@ function Fc(e) {
|
|
|
8037
8090
|
}
|
|
8038
8091
|
};
|
|
8039
8092
|
}
|
|
8040
|
-
function
|
|
8093
|
+
function Lc(e) {
|
|
8041
8094
|
return typeof e == "object" && !!e && !Array.isArray(e);
|
|
8042
8095
|
}
|
|
8043
8096
|
//#endregion
|
|
8044
|
-
export { Yr as DATA_STATE_SLICES, oa as DEFAULT_EXPORT_OPTIONS,
|
|
8097
|
+
export { Yr as DATA_STATE_SLICES, oa as DEFAULT_EXPORT_OPTIONS, yc as DEFAULT_TMDATAGRID_SIZE, zt as DETAILS_COLUMN_ID, Ec as DgAutocompleteFilter, Tc as DgDateRangeFilter, wc as DgRangeSliderFilter, Oc as DgTriStateFilter, on as EDIT_COLUMN_ID, ot as FILTER_OPERATOR_LABELS, vn as GROUP_COLUMN_ID, Zr as PERSIST_PAYLOAD_VERSION, Cn as ROW_NUMBER_COLUMN_ID, In as SELECT_COLUMN_ID, Xr as SETTINGS_STATE_SLICES, xc as SIZE_CONTROL_SIZE, bc as SIZE_ROW_HEIGHT, Br as TMDATAGRID_LABELS_EN, kc as TMDATAGRID_LABELS_SV, Cc as TMDataGrid, us as TMDataGridBooleanEditor, ds as TMDataGridDateEditor, mr as TMDataGridDraftActions, La as TMDataGridFilterPills, yr as TMDataGridFilterValueInput, fs as TMDataGridMultiSelectEditor, ps as TMDataGridNumberEditor, uo as TMDataGridSearch, ms as TMDataGridSelectEditor, hs as TMDataGridStringEditor, Dt as activeColumnFilters, Ac as aggregateColumn, Lt as areAllRowsExpanded, Fo as autosizeColumn, ha as buildExportData, Jt as clearedValueForType, pa as countSelectedExportRows, Da as createTMDataGridColumnHelper, jc as createTMDataGridUrlState, ta as csvExcelFormat, na as csvFormat, ba as downloadFile, St as emptyValueForOperator, _a as exportGrid, wt as filterValueShape, Ji as formatExportValue, Ot as formatFilterLabel, _n as formatGroupValue, Ir as fuzzyGlobalFilterFn, Ai as getColumnCapabilities, Wn as getColumnDefaultOperator, Vn as getColumnLabel, Un as getColumnOperators, Io as getColumnRegion, Hn as getColumnType, Mn as getDisplayedRows, qt as getEditFieldName, la as getExportableColumns, ji as getGridCapabilities, hn as getGroupDataRows, _t as getOperatorsForType, Pn as getSelectableRowIds, Ho as getStepTargetColumn, Wa as getTMDataGridPaginationApi, Xi as guardFormula, Gt as hasPendingEdits, Yn as isControlColumn, Tt as isFilterActive, Xn as isGeneratedColumn, Nn as isPagingActive, aa as jsonFormat, Bo as keepGeneratedColumnsOutermost, Mt as matchesFilter, Vr as mergeLabels, zo as moveColumn, Uo as moveColumnByStep, an as normalizeFieldValidate, Ia as openColumnFilter, yt as operatorNeedsValue, bt as operatorTakesArrayValue, xt as operatorTakesRangeValue, mn as optionsToComboboxData, ki as readFeatureFlags, pn as resolveColumnOptions, Rt as resolveExpandAll, sa as resolveExportOptions, Ps as resolveRangeBounds, Fn as resolveRowSelectionClick, Nt as tmDataGridFilterFn, va as toClipboardText, ra as tsvFormat, Pa as useTMDataGrid, $ as useTMDataGridContext, Qa as useTMDataGridExport, ya as writeClipboardText, ga as writeExportFile };
|
|
8045
8098
|
|
|
8046
8099
|
//# sourceMappingURL=index.js.map
|