@guiexpert/demo-table-models 1.1.68 → 1.1.75
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/index.cjs +8 -8
- package/index.js +93 -49
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -94,6 +94,8 @@ class ee {
|
|
|
94
94
|
doSort(e) {
|
|
95
95
|
return !1;
|
|
96
96
|
}
|
|
97
|
+
sort(e) {
|
|
98
|
+
}
|
|
97
99
|
isEditable(e, r) {
|
|
98
100
|
var t, n;
|
|
99
101
|
const a = (t = this.columnDefs) == null ? void 0 : t[r];
|
|
@@ -151,7 +153,13 @@ class fe {
|
|
|
151
153
|
}
|
|
152
154
|
class De extends ee {
|
|
153
155
|
constructor(e, r, a, t = [], n = "ge-selected-row", m = "ge-focused-row") {
|
|
154
|
-
super(e, t, a), this.areaIdent = e, this.rows = r, this.defaultRowHeight = a, this.columnDefs = t, this.selectedRowClass = n, this.focusedRowClass = m, this.
|
|
156
|
+
super(e, t, a), this.areaIdent = e, this.rows = r, this.defaultRowHeight = a, this.columnDefs = t, this.selectedRowClass = n, this.focusedRowClass = m, this.sorterService = new fe(), this._focusedRowIndex = 0, this.filteredRows = [...r], this.properties = t.map((d) => d.property);
|
|
157
|
+
}
|
|
158
|
+
get focusedRowIndex() {
|
|
159
|
+
return this._focusedRowIndex;
|
|
160
|
+
}
|
|
161
|
+
set focusedRowIndex(e) {
|
|
162
|
+
this._focusedRowIndex = e;
|
|
155
163
|
}
|
|
156
164
|
setRows(e) {
|
|
157
165
|
this.rows = e, this.filteredRows = [...e];
|
|
@@ -183,6 +191,28 @@ class De extends ee {
|
|
|
183
191
|
getAllRows() {
|
|
184
192
|
return this.rows;
|
|
185
193
|
}
|
|
194
|
+
/**
|
|
195
|
+
* Returns the first row from the filtered rows that matches the given criteria based on the provided predicate function.
|
|
196
|
+
*
|
|
197
|
+
* @param {Partial<T>} criteria - A partial object containing the search criteria
|
|
198
|
+
* @param {(criteria: Partial<T>, row: T) => boolean} predicate - A function that takes the search criteria and a row,
|
|
199
|
+
* and returns true if the row matches the criteria
|
|
200
|
+
* @returns {T | undefined} The first matching row, or undefined if no match is found
|
|
201
|
+
*/
|
|
202
|
+
findRowFromFilteredRowsByAllCriteria(e, r) {
|
|
203
|
+
return this.getFilteredRows().find((a) => r(e, a));
|
|
204
|
+
}
|
|
205
|
+
/**
|
|
206
|
+
* Searches through all rows to find a row that matches the given criteria based on the predicate function.
|
|
207
|
+
*
|
|
208
|
+
* @param {Partial<T>} criteria - A partial object containing the search criteria
|
|
209
|
+
* @param {(criteria: Partial<T>, row: T) => boolean} predicate - A function that takes the search criteria and a row,
|
|
210
|
+
* and returns true if the row matches the criteria
|
|
211
|
+
* @returns {T | undefined} The first matching row from all rows, or undefined if no match is found
|
|
212
|
+
*/
|
|
213
|
+
findRowFromAllRowsByAllCriteria(e, r) {
|
|
214
|
+
return this.getAllRows().find((a) => r(e, a));
|
|
215
|
+
}
|
|
186
216
|
getRowHeight(e) {
|
|
187
217
|
return this.defaultRowHeight;
|
|
188
218
|
}
|
|
@@ -199,15 +229,19 @@ class De extends ee {
|
|
|
199
229
|
}
|
|
200
230
|
return !0;
|
|
201
231
|
}
|
|
232
|
+
sort(e) {
|
|
233
|
+
this.filteredRows = this.filteredRows.sort(e);
|
|
234
|
+
}
|
|
202
235
|
getValueByT(e, r) {
|
|
203
|
-
|
|
236
|
+
if (e && r)
|
|
237
|
+
return r.includes(".") ? this.getPropertyValue(e, r.split(".")) : e[r];
|
|
204
238
|
}
|
|
205
239
|
changeColumnOrder(e, r) {
|
|
206
240
|
this.arrayMove(this.properties, e, r), super.changeColumnOrder(e, r);
|
|
207
241
|
}
|
|
208
242
|
getCustomClassesAt(e, r) {
|
|
209
243
|
const a = super.getCustomClassesAt(e, r);
|
|
210
|
-
return this.getRowByIndex(e).selected && a.push(this.selectedRowClass), this.
|
|
244
|
+
return this.getRowByIndex(e).selected && a.push(this.selectedRowClass), this._focusedRowIndex === e && a.push(this.focusedRowClass), a;
|
|
211
245
|
}
|
|
212
246
|
genericFlatTableSortComparator(e, r) {
|
|
213
247
|
const a = this.columnDefs.find((t) => t.property === e);
|
|
@@ -415,14 +449,14 @@ class re {
|
|
|
415
449
|
}
|
|
416
450
|
// `⊖ `, `⊕ `;
|
|
417
451
|
}
|
|
418
|
-
const Me = new q(),
|
|
452
|
+
const Me = new q(), Ie = new Ue("cell");
|
|
419
453
|
class z {
|
|
420
454
|
constructor() {
|
|
421
455
|
this.overflowX = "auto", this.overflowY = "auto", this.horizontalBorderVisible = !0, this.verticalBorderVisible = !0, this.footerSeparatorBorderVisible = !0, this.headerSeparatorBorderVisible = !0, this.fixedEastSeparatorBorderVisible = !0, this.fixedWestSeparatorBorderVisible = !0, this.tableTopBorderVisible = !0, this.tableBottomBorderVisible = !0, this.hoverRowVisible = !0, this.hoverColumnVisible = !0, this.columnsResizable = !0, this.columnsDraggable = !0, this.columnResizeHandleWidthInPx = 4, this.defaultRowHeights = {
|
|
422
456
|
header: 34,
|
|
423
457
|
body: 34,
|
|
424
458
|
footer: 34
|
|
425
|
-
}, this.footerVerticalSeparator = !1, this.headerToggleExpandCollapseIcons = !1, this.headerVerticalSeparator = !1, this.treeOptions = new ke(), this.headerGroupOptions = new re(), this.showCheckboxWihoutExtraColumn = !1, this.externalFilterFunction = void 0, this.sortedOptions = new Re(), this.sortOrder = ["asc", "desc"], this.shortcutActionsDisabled = !1, this.resizeEventDebounceDelay = 500, this.getEditRenderer = (e, r) => new Ae(), this.getSelectionModel = () => Me, this.getFocusModel = () =>
|
|
459
|
+
}, this.footerVerticalSeparator = !1, this.headerToggleExpandCollapseIcons = !1, this.headerVerticalSeparator = !1, this.treeOptions = new ke(), this.headerGroupOptions = new re(), this.showCheckboxWihoutExtraColumn = !1, this.externalFilterFunction = void 0, this.sortedOptions = new Re(), this.sortOrder = ["asc", "desc"], this.shortcutActionsDisabled = !1, this.resizeEventDebounceDelay = 500, this.getEditRenderer = (e, r) => new Ae(), this.getSelectionModel = () => Me, this.getFocusModel = () => Ie;
|
|
426
460
|
}
|
|
427
461
|
}
|
|
428
462
|
const D = class D {
|
|
@@ -788,7 +822,7 @@ class l {
|
|
|
788
822
|
this.value = e, this.unit = r;
|
|
789
823
|
}
|
|
790
824
|
}
|
|
791
|
-
const g = () => !0,
|
|
825
|
+
const g = () => !0, I = () => !1;
|
|
792
826
|
class y {
|
|
793
827
|
constructor(e, r, a = new l(100, "px"), t = new C(), n = new C(), m = new l(100, "px"), d = new l(100, "px"), i, u, p, c, N, G, v, k, b = () => this.visible) {
|
|
794
828
|
this.property = e, this.headerLabel = r, this.width = a, this.classes = t, this.rendererMap = n, this.minWidth = m, this.maxWidth = d, this.sortable = i, this.sortComparator = u, this.sortState = p, this.sortStatesOrder = c, this.sortIconVisible = N, this.editable = G, this.getEditRenderer = v, this.editInputPipe = k, this.isVisible = b, this.visible = !0, a.unit !== "px" && (this.minWidth = new l(0, "px"), this.maxWidth = new l(1e5, "px"));
|
|
@@ -809,7 +843,7 @@ class y {
|
|
|
809
843
|
e.headerClasses,
|
|
810
844
|
e.bodyClasses,
|
|
811
845
|
e.footerClasses
|
|
812
|
-
), t = e.sortIconVisible ?? e.sortable ??
|
|
846
|
+
), t = e.sortIconVisible ?? e.sortable ?? I, n = e.editable ?? e.editable ?? I, m = e.isVisible ?? e.isVisible ?? g;
|
|
813
847
|
return new y(
|
|
814
848
|
e.property ?? "",
|
|
815
849
|
e.headerLabel ?? "",
|
|
@@ -830,7 +864,7 @@ class y {
|
|
|
830
864
|
);
|
|
831
865
|
}
|
|
832
866
|
}
|
|
833
|
-
const
|
|
867
|
+
const Be = new l(300, "px"), qe = new l(250, "px"), Te = new l(220, "px"), A = new l(200, "px"), _e = new l(160, "px"), oe = new l(150, "px"), ae = new l(140, "px"), L = new l(120, "px"), T = new l(100, "px"), he = new l(90, "px"), Se = new l(80, "px"), Ve = new l(70, "px"), x = new l(60, "px"), He = new l(50, "px");
|
|
834
868
|
class S extends ee {
|
|
835
869
|
constructor(e, r, a, t = []) {
|
|
836
870
|
super(e, t, a), this.areaIdent = e, this.arr = r, this.defaultRowHeight = a, this.columnDefs = t, this.filteredArr = [...r];
|
|
@@ -863,6 +897,8 @@ class Z {
|
|
|
863
897
|
constructor(e = "body") {
|
|
864
898
|
this.areaIdent = e, this.rowSelectionModel = void 0;
|
|
865
899
|
}
|
|
900
|
+
sort(e) {
|
|
901
|
+
}
|
|
866
902
|
getRowCount() {
|
|
867
903
|
return 0;
|
|
868
904
|
}
|
|
@@ -980,7 +1016,8 @@ class de extends ee {
|
|
|
980
1016
|
return this.filteredFlattenRows[e];
|
|
981
1017
|
}
|
|
982
1018
|
getValueByT(e, r) {
|
|
983
|
-
|
|
1019
|
+
if (e && r)
|
|
1020
|
+
return r.includes(".") ? this.getPropertyValue(e, r.split(".")) : e[r];
|
|
984
1021
|
}
|
|
985
1022
|
externalFilterChanged(e) {
|
|
986
1023
|
this.lastPredictFn = e, this.doFiltering();
|
|
@@ -1413,6 +1450,9 @@ class W {
|
|
|
1413
1450
|
doSort(e) {
|
|
1414
1451
|
return this.getAreaModel("body").doSort(e);
|
|
1415
1452
|
}
|
|
1453
|
+
sort(e) {
|
|
1454
|
+
return this.getAreaModel("body").sort(e);
|
|
1455
|
+
}
|
|
1416
1456
|
/**
|
|
1417
1457
|
* Returns an array of ColumnDefIf objects or undefined.
|
|
1418
1458
|
*
|
|
@@ -1533,7 +1573,7 @@ class W {
|
|
|
1533
1573
|
return this.tableScope;
|
|
1534
1574
|
}
|
|
1535
1575
|
}
|
|
1536
|
-
class
|
|
1576
|
+
class B extends De {
|
|
1537
1577
|
constructor(e, r, a, t, n = "ge-selected-row", m = "ge-focused-row") {
|
|
1538
1578
|
super(
|
|
1539
1579
|
e,
|
|
@@ -1627,7 +1667,7 @@ class f {
|
|
|
1627
1667
|
e.columnDefs
|
|
1628
1668
|
), (e.columnDefs[0].property === "CheckboxColumn" || (G = e.tableOptions) != null && G.showCheckboxWihoutExtraColumn) && (e.bodyAreaModel.rowSelectionModel = new ye(b));
|
|
1629
1669
|
} else
|
|
1630
|
-
e.bodyAreaModel = new
|
|
1670
|
+
e.bodyAreaModel = new B(
|
|
1631
1671
|
"body",
|
|
1632
1672
|
e.rows,
|
|
1633
1673
|
e.columnDefs,
|
|
@@ -1963,7 +2003,7 @@ class f {
|
|
|
1963
2003
|
static createByObjectArray(e, r = [], a = [], t = 0, n = 0, m = !1, d = new R(), i, u = []) {
|
|
1964
2004
|
let p;
|
|
1965
2005
|
r != null && r.length ? p = new S("header", r, d.header, i) : i != null && i.length ? p = new S("header", [i.map((G) => G.headerLabel)], d.header, i) : p = new Z();
|
|
1966
|
-
const c = a ? new S("footer", a, d.footer, i) : new Z(), N = new
|
|
2006
|
+
const c = a ? new S("footer", a, d.footer, i) : new Z(), N = new B("body", e, i, d.body);
|
|
1967
2007
|
return new W(
|
|
1968
2008
|
p,
|
|
1969
2009
|
N,
|
|
@@ -1977,7 +2017,7 @@ class f {
|
|
|
1977
2017
|
);
|
|
1978
2018
|
}
|
|
1979
2019
|
}
|
|
1980
|
-
class
|
|
2020
|
+
class _ {
|
|
1981
2021
|
constructor(e, r) {
|
|
1982
2022
|
this.tableModel = e, this.tableOptions = r;
|
|
1983
2023
|
}
|
|
@@ -2193,6 +2233,8 @@ class te {
|
|
|
2193
2233
|
doSort(e) {
|
|
2194
2234
|
return !1;
|
|
2195
2235
|
}
|
|
2236
|
+
sort(e) {
|
|
2237
|
+
}
|
|
2196
2238
|
externalFilterChanged(e) {
|
|
2197
2239
|
}
|
|
2198
2240
|
getCellRenderer(e, r) {
|
|
@@ -2299,6 +2341,8 @@ class Ce {
|
|
|
2299
2341
|
constructor(e = "header", r, a = [], t, n = new re()) {
|
|
2300
2342
|
this.areaIdent = e, this.groups = r, this.columnDefs = a, this.defaultRowHeight = t, this.headerGroupOptions = n, this.gammaCells = !0, this.arr = [], this.groupExts = [], this.cellGroupExtCellRenderer = new J(this.headerGroupOptions), this.groupExts = h.buildGroupExts(r), this.init();
|
|
2301
2343
|
}
|
|
2344
|
+
sort(e) {
|
|
2345
|
+
}
|
|
2302
2346
|
init() {
|
|
2303
2347
|
var e;
|
|
2304
2348
|
for (const r of this.groupExts)
|
|
@@ -5448,7 +5492,7 @@ const ir = [
|
|
|
5448
5492
|
change90d: 12.43943602
|
|
5449
5493
|
}
|
|
5450
5494
|
];
|
|
5451
|
-
function
|
|
5495
|
+
function Hr() {
|
|
5452
5496
|
const s = ir, e = new rr(), r = new ar(), a = new tr(), t = new nr(), n = new mr(120), m = new sr(), d = [
|
|
5453
5497
|
y.create({
|
|
5454
5498
|
property: "symbol",
|
|
@@ -5478,7 +5522,7 @@ function _r() {
|
|
|
5478
5522
|
y.create({
|
|
5479
5523
|
property: "marketCapUsd",
|
|
5480
5524
|
headerLabel: "Market Cap",
|
|
5481
|
-
width:
|
|
5525
|
+
width: _e,
|
|
5482
5526
|
bodyClasses: ["ge-table-text-align-right"],
|
|
5483
5527
|
headerClasses: ["ge-table-text-align-right"],
|
|
5484
5528
|
bodyRenderer: r
|
|
@@ -5510,7 +5554,7 @@ function _r() {
|
|
|
5510
5554
|
footer: 0
|
|
5511
5555
|
}
|
|
5512
5556
|
};
|
|
5513
|
-
return new
|
|
5557
|
+
return new _(
|
|
5514
5558
|
f.createTableModel({
|
|
5515
5559
|
rows: s,
|
|
5516
5560
|
columnDefs: d,
|
|
@@ -220046,7 +220090,7 @@ ve.forEach((s) => {
|
|
|
220046
220090
|
const [e, r] = s.date.split("T");
|
|
220047
220091
|
P[e] || (P[e] = {}), P[e][r.substring(0, 5)] = s;
|
|
220048
220092
|
});
|
|
220049
|
-
const Q = Object.keys(P),
|
|
220093
|
+
const Q = Object.keys(P), V = [
|
|
220050
220094
|
"06:00",
|
|
220051
220095
|
"07:00",
|
|
220052
220096
|
"08:00",
|
|
@@ -220090,26 +220134,26 @@ function Fr() {
|
|
|
220090
220134
|
}
|
|
220091
220135
|
class fr extends te {
|
|
220092
220136
|
getRowCount() {
|
|
220093
|
-
return
|
|
220137
|
+
return V.length;
|
|
220094
220138
|
}
|
|
220095
220139
|
getRowHeight(e) {
|
|
220096
220140
|
return we;
|
|
220097
220141
|
}
|
|
220098
220142
|
getValueAt(e, r) {
|
|
220099
|
-
return r === 0 ?
|
|
220143
|
+
return r === 0 ? V[e] : "";
|
|
220100
220144
|
}
|
|
220101
220145
|
getTooltipAt(e, r) {
|
|
220102
220146
|
if (r === 0)
|
|
220103
220147
|
return "";
|
|
220104
220148
|
r--;
|
|
220105
|
-
const a = Q[r], t =
|
|
220149
|
+
const a = Q[r], t = V[e];
|
|
220106
220150
|
return P[a] && P[a][t] ? `${a} ${t} → ${P[a][t].temperature}` : "";
|
|
220107
220151
|
}
|
|
220108
220152
|
getCustomStyleAt(e, r) {
|
|
220109
220153
|
if (r === 0)
|
|
220110
220154
|
return;
|
|
220111
220155
|
r--;
|
|
220112
|
-
const a = Q[r], t =
|
|
220156
|
+
const a = Q[r], t = V[e];
|
|
220113
220157
|
if (!P[a] || !P[a][t]) return;
|
|
220114
220158
|
const n = P[a][t].temperature, m = new K(67, 1, 84), d = new K(31, 144, 141), i = new K(250, 230, 37), u = (Ne + be) / 2, p = new er(be, m, u, d, Ne, i);
|
|
220115
220159
|
return {
|
|
@@ -220248,7 +220292,7 @@ function Wr() {
|
|
|
220248
220292
|
HOH_C: 53,
|
|
220249
220293
|
HOH_D: 54
|
|
220250
220294
|
}
|
|
220251
|
-
], n = new
|
|
220295
|
+
], n = new B("body", t, r, 34);
|
|
220252
220296
|
return f.createTableModel({
|
|
220253
220297
|
headerAreaModel: a,
|
|
220254
220298
|
bodyAreaModel: n,
|
|
@@ -220286,7 +220330,7 @@ function Kr(s = or) {
|
|
|
220286
220330
|
peter: 5,
|
|
220287
220331
|
paul: 4
|
|
220288
220332
|
}
|
|
220289
|
-
], m = new
|
|
220333
|
+
], m = new B("body", n, a, 34);
|
|
220290
220334
|
return f.createTableModel({
|
|
220291
220335
|
headerAreaModel: t,
|
|
220292
220336
|
bodyAreaModel: m,
|
|
@@ -220486,7 +220530,7 @@ function Sr() {
|
|
|
220486
220530
|
y.create({
|
|
220487
220531
|
property: "email",
|
|
220488
220532
|
headerLabel: "Email",
|
|
220489
|
-
width:
|
|
220533
|
+
width: Be,
|
|
220490
220534
|
bodyClasses: ["ge-table-text-align-left"]
|
|
220491
220535
|
}),
|
|
220492
220536
|
new y("ipAddress", "IP", oe),
|
|
@@ -220670,7 +220714,7 @@ const Lr = [
|
|
|
220670
220714
|
team: { name: "Team TCC", active: !0 },
|
|
220671
220715
|
data: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
|
|
220672
220716
|
}
|
|
220673
|
-
].map((s) => (s.updatedAt = /* @__PURE__ */ new Date(), s)),
|
|
220717
|
+
].map((s) => (s.updatedAt = /* @__PURE__ */ new Date(), s)), H = [
|
|
220674
220718
|
new y("city", "City", new l(90, "px")),
|
|
220675
220719
|
new y("location", "Location", new l(100, "px")),
|
|
220676
220720
|
new y("team.name", "Team", new l(100, "px")),
|
|
@@ -220698,7 +220742,7 @@ const Lr = [
|
|
|
220698
220742
|
width: new l(175, "px"),
|
|
220699
220743
|
bodyRenderer: new Xe()
|
|
220700
220744
|
})
|
|
220701
|
-
], Yr =
|
|
220745
|
+
], Yr = H.length - 1, Pr = {
|
|
220702
220746
|
...new z(),
|
|
220703
220747
|
hoverRowVisible: !1,
|
|
220704
220748
|
hoverColumnVisible: !1,
|
|
@@ -220716,16 +220760,16 @@ function Jr() {
|
|
|
220716
220760
|
headerAreaModel: new Gr(s.header),
|
|
220717
220761
|
bodyAreaModel: new zr(s.body),
|
|
220718
220762
|
footerAreaModel: new Zr(s.footer),
|
|
220719
|
-
columnDefs:
|
|
220763
|
+
columnDefs: H,
|
|
220720
220764
|
fixedLeftColumnCount: 2,
|
|
220721
220765
|
fixedRightColumnCount: 1,
|
|
220722
220766
|
defaultRowHeights: s,
|
|
220723
|
-
columnCount:
|
|
220767
|
+
columnCount: H.length
|
|
220724
220768
|
});
|
|
220725
220769
|
}
|
|
220726
|
-
class zr extends
|
|
220770
|
+
class zr extends B {
|
|
220727
220771
|
constructor(e) {
|
|
220728
|
-
super("body", Lr,
|
|
220772
|
+
super("body", Lr, H, e);
|
|
220729
220773
|
}
|
|
220730
220774
|
getRowspanAt(e, r) {
|
|
220731
220775
|
if (r === 0 || r == 1) {
|
|
@@ -222815,7 +222859,7 @@ function kr() {
|
|
|
222815
222859
|
}
|
|
222816
222860
|
function Qr() {
|
|
222817
222861
|
const s = kr(), e = vr(), r = xr();
|
|
222818
|
-
return new
|
|
222862
|
+
return new _(
|
|
222819
222863
|
f.createTableModel({
|
|
222820
222864
|
rows: e,
|
|
222821
222865
|
columnDefs: r,
|
|
@@ -222832,14 +222876,14 @@ function Rr() {
|
|
|
222832
222876
|
width: L,
|
|
222833
222877
|
bodyClasses: ["ge-table-text-align-left"],
|
|
222834
222878
|
headerClasses: ["ge-table-text-align-left"],
|
|
222835
|
-
sortable:
|
|
222879
|
+
sortable: I
|
|
222836
222880
|
}),
|
|
222837
222881
|
y.create({
|
|
222838
222882
|
headerLabel: "Value",
|
|
222839
222883
|
width: A,
|
|
222840
222884
|
bodyClasses: ["ge-table-text-align-left"],
|
|
222841
222885
|
headerClasses: ["ge-table-text-align-left"],
|
|
222842
|
-
sortable:
|
|
222886
|
+
sortable: I
|
|
222843
222887
|
}),
|
|
222844
222888
|
y.create({
|
|
222845
222889
|
headerLabel: " ",
|
|
@@ -222864,7 +222908,7 @@ function Dr() {
|
|
|
222864
222908
|
}
|
|
222865
222909
|
function ea(s = 1e6) {
|
|
222866
222910
|
const e = Dr(), r = Rr(), a = new Ar(s);
|
|
222867
|
-
return new
|
|
222911
|
+
return new _(f.createTableModel({
|
|
222868
222912
|
bodyAreaModel: a,
|
|
222869
222913
|
columnDefs: r,
|
|
222870
222914
|
tableOptions: e,
|
|
@@ -224366,7 +224410,7 @@ const Ur = [
|
|
|
224366
224410
|
function Mr(s = 75) {
|
|
224367
224411
|
return Ur.slice(0, s - 1);
|
|
224368
224412
|
}
|
|
224369
|
-
function
|
|
224413
|
+
function Ir(s) {
|
|
224370
224414
|
return [
|
|
224371
224415
|
y.create({
|
|
224372
224416
|
property: "company",
|
|
@@ -224527,7 +224571,7 @@ function Br(s) {
|
|
|
224527
224571
|
})
|
|
224528
224572
|
];
|
|
224529
224573
|
}
|
|
224530
|
-
function
|
|
224574
|
+
function Br(s) {
|
|
224531
224575
|
return {
|
|
224532
224576
|
...new z(),
|
|
224533
224577
|
hoverColumnVisible: !1,
|
|
@@ -224540,10 +224584,10 @@ function Ir(s) {
|
|
|
224540
224584
|
};
|
|
224541
224585
|
}
|
|
224542
224586
|
function ra(s = new q("row", "multi"), e = 75, r = !1) {
|
|
224543
|
-
const a =
|
|
224587
|
+
const a = Br(s);
|
|
224544
224588
|
e = Math.max(10, Math.min(75, e));
|
|
224545
|
-
const t = Mr(e), n =
|
|
224546
|
-
return new
|
|
224589
|
+
const t = Mr(e), n = Ir(r);
|
|
224590
|
+
return new _(f.createTableModel({
|
|
224547
224591
|
rows: t,
|
|
224548
224592
|
columnDefs: n,
|
|
224549
224593
|
tableOptions: a
|
|
@@ -386423,7 +386467,7 @@ const qr = [
|
|
|
386423
386467
|
friends: []
|
|
386424
386468
|
}
|
|
386425
386469
|
];
|
|
386426
|
-
function
|
|
386470
|
+
function _r(s = !1) {
|
|
386427
386471
|
const e = new q("range", "multi");
|
|
386428
386472
|
return s && (e.addSelection(new o(0, 0, 0, 2)), e.addSelection(new o(2, 1, 2, 2)), e.addSelection(new o(1, 5, 6, 7)), e.addSelection(new o(0, 8, 0, 8)), e.addSelection(new o(5, 6, 10, 10))), {
|
|
386429
386473
|
...new z(),
|
|
@@ -386444,7 +386488,7 @@ function Vr(s = !1) {
|
|
|
386444
386488
|
getSelectionModel: () => e
|
|
386445
386489
|
};
|
|
386446
386490
|
}
|
|
386447
|
-
function
|
|
386491
|
+
function Vr() {
|
|
386448
386492
|
return [
|
|
386449
386493
|
new y("lastName", "Last Name", Te),
|
|
386450
386494
|
new y("preName", "Pre Name", L),
|
|
@@ -386467,7 +386511,7 @@ function Hr() {
|
|
|
386467
386511
|
y.create({
|
|
386468
386512
|
property: "gender",
|
|
386469
386513
|
headerLabel: " ",
|
|
386470
|
-
width:
|
|
386514
|
+
width: He,
|
|
386471
386515
|
bodyRenderer: new Pe(),
|
|
386472
386516
|
editable: g,
|
|
386473
386517
|
getEditRenderer: () => new ne([
|
|
@@ -386476,7 +386520,7 @@ function Hr() {
|
|
|
386476
386520
|
])
|
|
386477
386521
|
}),
|
|
386478
386522
|
new y("address.street", "Strasse", oe),
|
|
386479
|
-
new y("address.number", "Nr",
|
|
386523
|
+
new y("address.number", "Nr", Ve),
|
|
386480
386524
|
new y("address.zip", "Zip", x),
|
|
386481
386525
|
new y("address.city", "City", L),
|
|
386482
386526
|
new y("address.country", "Country", L),
|
|
@@ -386484,10 +386528,10 @@ function Hr() {
|
|
|
386484
386528
|
];
|
|
386485
386529
|
}
|
|
386486
386530
|
function aa(s = !1) {
|
|
386487
|
-
const e =
|
|
386531
|
+
const e = _r(s), r = Vr();
|
|
386488
386532
|
for (const n of r)
|
|
386489
386533
|
n.sortable = g, n.editable = g;
|
|
386490
|
-
r[0].editable =
|
|
386534
|
+
r[0].editable = I;
|
|
386491
386535
|
const a = M.buildTreeRows(qr, "friends"), t = f.createTableModel({
|
|
386492
386536
|
rows: a,
|
|
386493
386537
|
columnDefs: r,
|
|
@@ -386495,7 +386539,7 @@ function aa(s = !1) {
|
|
|
386495
386539
|
fixedLeftColumnCount: 1,
|
|
386496
386540
|
fixedRightColumnCount: 1
|
|
386497
386541
|
});
|
|
386498
|
-
return new
|
|
386542
|
+
return new _(
|
|
386499
386543
|
t,
|
|
386500
386544
|
e
|
|
386501
386545
|
);
|
|
@@ -386511,7 +386555,7 @@ export {
|
|
|
386511
386555
|
nr as Volumn24hRenderer,
|
|
386512
386556
|
Xr as applyBodyRenderer,
|
|
386513
386557
|
Sr as createColumnDefs,
|
|
386514
|
-
|
|
386558
|
+
Hr as createCryptoModelAndOptions,
|
|
386515
386559
|
Wr as createHeadergroupModel,
|
|
386516
386560
|
Or as createHeatMapModel,
|
|
386517
386561
|
Fr as createHeatMapSeattleModel,
|
|
@@ -386523,9 +386567,9 @@ export {
|
|
|
386523
386567
|
hr as createTableRows,
|
|
386524
386568
|
Kr as createTeamHeadergroupModel,
|
|
386525
386569
|
Jr as createTimeTableModel,
|
|
386526
|
-
|
|
386570
|
+
Vr as createTreePeopleColumnDefs,
|
|
386527
386571
|
aa as createTreePeopleModelAndOptions,
|
|
386528
|
-
|
|
386572
|
+
_r as createTreePeopleTableOptions,
|
|
386529
386573
|
ir as cryptoData,
|
|
386530
386574
|
Lr as data,
|
|
386531
386575
|
$r as generateSimpleModel,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@guiexpert/demo-table-models",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.75",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"types": "./index.d.ts",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"tslib": "^2.3.0",
|
|
21
|
-
"@guiexpert/table": "^1.1.
|
|
21
|
+
"@guiexpert/table": "^1.1.75"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@types/node": "^20.11.17",
|