@guiexpert/demo-table-models 1.0.21 → 1.0.23
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 +17 -17
- package/index.js +110 -81
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -258,8 +258,8 @@ const D = class D {
|
|
|
258
258
|
const d = [];
|
|
259
259
|
for (let i = m.r1; i <= m.r2; i++) {
|
|
260
260
|
const u = [];
|
|
261
|
-
for (let
|
|
262
|
-
const c = r.isSelected(i,
|
|
261
|
+
for (let p = m.c1; p <= m.c2; p++) {
|
|
262
|
+
const c = r.isSelected(i, p) ? e.getBodyModel().getTextValueAt(i, p) : "";
|
|
263
263
|
u.push(c);
|
|
264
264
|
}
|
|
265
265
|
d.push(u.join(D.columnSeparatorChar));
|
|
@@ -597,15 +597,15 @@ class R {
|
|
|
597
597
|
this.header = e, this.body = r, this.footer = a;
|
|
598
598
|
}
|
|
599
599
|
}
|
|
600
|
-
class
|
|
600
|
+
class l {
|
|
601
601
|
constructor(e = 100, r = "px") {
|
|
602
602
|
this.value = e, this.unit = r;
|
|
603
603
|
}
|
|
604
604
|
}
|
|
605
605
|
const g = () => !0, B = () => !1;
|
|
606
606
|
class y {
|
|
607
|
-
constructor(e, r, a = new
|
|
608
|
-
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 =
|
|
607
|
+
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) {
|
|
608
|
+
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"));
|
|
609
609
|
}
|
|
610
610
|
static bodyRenderer(e) {
|
|
611
611
|
return new C(
|
|
@@ -627,11 +627,11 @@ class y {
|
|
|
627
627
|
return new y(
|
|
628
628
|
e.property ?? "",
|
|
629
629
|
e.headerLabel ?? "",
|
|
630
|
-
e.width ?? new
|
|
630
|
+
e.width ?? new l(100, "px"),
|
|
631
631
|
a,
|
|
632
632
|
r,
|
|
633
|
-
e.minWidth ?? new
|
|
634
|
-
e.maxWidth ?? new
|
|
633
|
+
e.minWidth ?? new l(100, "px"),
|
|
634
|
+
e.maxWidth ?? new l(100, "px"),
|
|
635
635
|
e.sortable,
|
|
636
636
|
e.sortComparator,
|
|
637
637
|
e.sortState,
|
|
@@ -644,7 +644,7 @@ class y {
|
|
|
644
644
|
);
|
|
645
645
|
}
|
|
646
646
|
}
|
|
647
|
-
const Be = new
|
|
647
|
+
const Be = new l(300, "px"), Ie = new l(250, "px"), fe = new l(220, "px"), A = new l(200, "px"), qe = new l(160, "px"), Te = new l(150, "px"), re = new l(140, "px"), L = new l(120, "px"), T = new l(100, "px"), oe = new l(90, "px"), he = new l(80, "px"), Ve = new l(70, "px"), x = new l(60, "px"), He = new l(50, "px");
|
|
648
648
|
class ae {
|
|
649
649
|
constructor(e, r = [], a = -1) {
|
|
650
650
|
this.areaIdent = e, this.columnDefs = r, this.defaultRowHeight = a, this.rowSelectionModel = void 0, this.yPositions = [], this.cellRenderers = r.map((t) => t.rendererMap[e]);
|
|
@@ -1071,14 +1071,17 @@ class $e {
|
|
|
1071
1071
|
}
|
|
1072
1072
|
}
|
|
1073
1073
|
class W {
|
|
1074
|
-
constructor(e, r, a, t = 0, n = 0, m = !1, d = new R(), i = [], u = [],
|
|
1074
|
+
constructor(e, r, a, t = 0, n = 0, m = !1, d = new R(), i = [], u = [], p = -1, c = 0, N = 400, G = () => {
|
|
1075
1075
|
}) {
|
|
1076
1076
|
var v, k, b, F;
|
|
1077
|
-
this.headerAreaModel = e, this.bodyAreaModel = r, this.footerAreaModel = a, this.fixedLeftColumnCount = t, this.fixedRightColumnCount = n, this.rowCheckboxVisible = m, this.defaultRowHeights = d, this.columnDefs = i, this.columnSizes = u, this.overridingColumnWidth =
|
|
1077
|
+
this.headerAreaModel = e, this.bodyAreaModel = r, this.footerAreaModel = a, this.fixedLeftColumnCount = t, this.fixedRightColumnCount = n, this.rowCheckboxVisible = m, this.defaultRowHeights = d, this.columnDefs = i, this.columnSizes = u, this.overridingColumnWidth = p, this.columnCount = c, this.parentSize = N, this.getSelectionModel = G, this.rowCount = 0, this.contentHeightInPx = 0, this.contentWidthInPx = 0, this.padding = new ue(0, 0, 0, 0), this.xPositions = [], e.areaIdent = "header", r.areaIdent = "body", a.areaIdent = "footer", this.columnCount || ((v = this.columnDefs) != null && v.length ? this.columnCount = this.columnDefs.length : (k = this.columnSizes) != null && k.length && (this.columnCount = (b = this.columnSizes) == null ? void 0 : b.length)), (F = this.columnDefs) != null && F.length && xe(this.columnDefs[0]) && !r.rowSelectionModel && (r.rowSelectionModel = new $e());
|
|
1078
1078
|
}
|
|
1079
1079
|
init() {
|
|
1080
1080
|
this.recalcSize(this.parentSize), this.overridingColumnWidth === -1 && this.calcXPositions(), this.headerAreaModel && this.headerAreaModel.init(), this.bodyAreaModel && this.bodyAreaModel.init(), this.footerAreaModel && this.footerAreaModel.init();
|
|
1081
1081
|
}
|
|
1082
|
+
setParentWidth(e) {
|
|
1083
|
+
this.parentSize = e;
|
|
1084
|
+
}
|
|
1082
1085
|
/**
|
|
1083
1086
|
* Retrieves the count of columns in the current instance.
|
|
1084
1087
|
*
|
|
@@ -1126,7 +1129,7 @@ class W {
|
|
|
1126
1129
|
* @return {void} - This method does not return a value.
|
|
1127
1130
|
*/
|
|
1128
1131
|
recalcSize(e) {
|
|
1129
|
-
this.
|
|
1132
|
+
this.recalcColumnWidths(e), this.recalcHeightAndPadding();
|
|
1130
1133
|
}
|
|
1131
1134
|
/**
|
|
1132
1135
|
* Recalculates the height and padding for the body area.
|
|
@@ -1393,23 +1396,49 @@ class W {
|
|
|
1393
1396
|
var a, t, n;
|
|
1394
1397
|
this.arrayMove(this.columnDefs, e, r), this.arrayMove(this.columnSizes, e, r), (a = this.headerAreaModel) == null || a.changeColumnOrder(e, r), (t = this.bodyAreaModel) == null || t.changeColumnOrder(e, r), (n = this.footerAreaModel) == null || n.changeColumnOrder(e, r), this.calcXPositions();
|
|
1395
1398
|
}
|
|
1396
|
-
|
|
1399
|
+
recalcColumnWidths(e) {
|
|
1397
1400
|
var r, a, t;
|
|
1398
|
-
!((r = this.columnDefs) != null && r.length) && !((a = this.columnSizes) != null && a.length) && (this.columnSizes = new Array(this.getColumnCount()).fill(this.overridingColumnWidth)), (t = this.columnDefs) != null && t.length
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1401
|
+
if (!((r = this.columnDefs) != null && r.length) && !((a = this.columnSizes) != null && a.length) && (this.columnSizes = new Array(this.getColumnCount()).fill(this.overridingColumnWidth)), (t = this.columnDefs) != null && t.length) {
|
|
1402
|
+
const n = this.columnDefs.filter((i) => {
|
|
1403
|
+
var u;
|
|
1404
|
+
return ((u = i.width) == null ? void 0 : u.unit) === "weight";
|
|
1405
|
+
});
|
|
1406
|
+
this.columnSizes = this.columnDefs.map((i) => {
|
|
1407
|
+
if (i.width.unit === "%" && e) {
|
|
1408
|
+
let u = Math.floor(i.width.value * e / 100);
|
|
1409
|
+
if (i.minWidth) {
|
|
1410
|
+
const p = this.sizeToPixel(i.minWidth, e);
|
|
1411
|
+
u = Math.max(p, u);
|
|
1412
|
+
}
|
|
1413
|
+
if (i.maxWidth) {
|
|
1414
|
+
const p = this.sizeToPixel(i.maxWidth, e);
|
|
1415
|
+
u = Math.min(p, u);
|
|
1416
|
+
}
|
|
1417
|
+
return u;
|
|
1418
|
+
} else if (i.width.unit === "px" && e)
|
|
1419
|
+
return i.width.value;
|
|
1420
|
+
return 0;
|
|
1421
|
+
});
|
|
1422
|
+
const m = this.columnSizes.reduce((i, u) => i + u), d = e - m;
|
|
1423
|
+
if (d > 0 && n.length) {
|
|
1424
|
+
const i = n.map((u) => u.width.value).reduce((u, p) => u + p);
|
|
1425
|
+
for (let u = 0; u < this.columnDefs.length; u++) {
|
|
1426
|
+
const p = this.columnDefs[u];
|
|
1427
|
+
p.width.unit === "weight" && (this.columnSizes[u] = p.width.value * d / i);
|
|
1408
1428
|
}
|
|
1409
|
-
return m;
|
|
1410
1429
|
}
|
|
1411
|
-
|
|
1412
|
-
|
|
1430
|
+
}
|
|
1431
|
+
}
|
|
1432
|
+
/**
|
|
1433
|
+
* Converts the given `SizeIf` object to pixel units based on the provided `clientWidth`.
|
|
1434
|
+
* The given `SizeIf` must have the uniit '%' or 'px'.
|
|
1435
|
+
*
|
|
1436
|
+
* @param {SizeIf} width - The size object to be converted.
|
|
1437
|
+
* @param {number} clientWidth - The width of the client area in pixels.
|
|
1438
|
+
* @return {number} - The converted size value in pixels. returns -1 if unit is not '%' or 'px'.
|
|
1439
|
+
*/
|
|
1440
|
+
sizeToPixel(e, r) {
|
|
1441
|
+
return e.unit === "px" ? e.value : e.unit === "%" ? Math.floor(e.value * r / 100) : -1;
|
|
1413
1442
|
}
|
|
1414
1443
|
arrayMove(e, r, a) {
|
|
1415
1444
|
const t = e.splice(r, 1)[0];
|
|
@@ -1492,7 +1521,7 @@ class I extends Ee {
|
|
|
1492
1521
|
}
|
|
1493
1522
|
class f {
|
|
1494
1523
|
static createTableModel(e) {
|
|
1495
|
-
var r, a, t, n, m, d, i, u,
|
|
1524
|
+
var r, a, t, n, m, d, i, u, p, c, N, G, v, k;
|
|
1496
1525
|
if (e.defaultRowHeights === void 0)
|
|
1497
1526
|
if ((r = e.tableOptions) != null && r.defaultRowHeights)
|
|
1498
1527
|
e.defaultRowHeights = e.tableOptions.defaultRowHeights;
|
|
@@ -1515,7 +1544,7 @@ class f {
|
|
|
1515
1544
|
e.headerData,
|
|
1516
1545
|
e.defaultRowHeights.header,
|
|
1517
1546
|
e.columnDefs
|
|
1518
|
-
) : (
|
|
1547
|
+
) : (p = e.columnDefs) != null && p.length ? e.headerAreaModel = new S(
|
|
1519
1548
|
"header",
|
|
1520
1549
|
[e.columnDefs.map((b) => b.headerLabel)],
|
|
1521
1550
|
e.defaultRowHeights.header,
|
|
@@ -1583,7 +1612,7 @@ class f {
|
|
|
1583
1612
|
r
|
|
1584
1613
|
);
|
|
1585
1614
|
return (d || a.showCheckboxWihoutExtraColumn) && (u.rowSelectionModel = new ye(i)), f.createByAreaModelsParam({
|
|
1586
|
-
headerAreaModel: new S("header", [r.map((
|
|
1615
|
+
headerAreaModel: new S("header", [r.map((p) => p.headerLabel)], m.header),
|
|
1587
1616
|
bodyAreaModel: u,
|
|
1588
1617
|
footerAreaModel: new S("footer", [], m.footer),
|
|
1589
1618
|
columnDefs: r,
|
|
@@ -1618,7 +1647,7 @@ class f {
|
|
|
1618
1647
|
e.columnSizes ?? []
|
|
1619
1648
|
);
|
|
1620
1649
|
}
|
|
1621
|
-
static createByAreaModels(e = new Z(), r, a = new Z(), t = 0, n = 0, m = !1, d = new R(), i, u = [],
|
|
1650
|
+
static createByAreaModels(e = new Z(), r, a = new Z(), t = 0, n = 0, m = !1, d = new R(), i, u = [], p = -1, c) {
|
|
1622
1651
|
return new W(
|
|
1623
1652
|
e,
|
|
1624
1653
|
r,
|
|
@@ -1629,7 +1658,7 @@ class f {
|
|
|
1629
1658
|
d,
|
|
1630
1659
|
i,
|
|
1631
1660
|
u,
|
|
1632
|
-
|
|
1661
|
+
p,
|
|
1633
1662
|
c
|
|
1634
1663
|
);
|
|
1635
1664
|
}
|
|
@@ -1649,11 +1678,11 @@ class f {
|
|
|
1649
1678
|
);
|
|
1650
1679
|
}
|
|
1651
1680
|
static createByObjectArray(e, r = [], a = [], t = 0, n = 0, m = !1, d = new R(), i, u = []) {
|
|
1652
|
-
let
|
|
1653
|
-
r != null && r.length ?
|
|
1681
|
+
let p;
|
|
1682
|
+
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();
|
|
1654
1683
|
const c = a ? new S("footer", a, d.footer, i) : new Z(), N = new I("body", e, i, d.body);
|
|
1655
1684
|
return new W(
|
|
1656
|
-
|
|
1685
|
+
p,
|
|
1657
1686
|
N,
|
|
1658
1687
|
c,
|
|
1659
1688
|
t,
|
|
@@ -1949,8 +1978,8 @@ const E = class E {
|
|
|
1949
1978
|
render(e, r, a, t, n, m, d) {
|
|
1950
1979
|
const i = m != null && m.data ? m.data : "";
|
|
1951
1980
|
if (m) {
|
|
1952
|
-
const { toggle: u, visibility:
|
|
1953
|
-
this.addText(e, t, r, a, i, N), u &&
|
|
1981
|
+
const { toggle: u, visibility: p, closed: c } = m, N = u ? E.toggleHeaderGroup : "";
|
|
1982
|
+
this.addText(e, t, r, a, i, N), u && p !== "always" && this.addArrowDiv(d, e, !c, r, a, t, N);
|
|
1954
1983
|
} else
|
|
1955
1984
|
this.addText(e, t, r, a, i, "");
|
|
1956
1985
|
}
|
|
@@ -1967,7 +1996,7 @@ const E = class E {
|
|
|
1967
1996
|
e.addClass(i, "ge-table-toggle-icon-div"), e.setStyle(i, "display", "inline-block"), e.setStyle(i, "position", ""), e.setStyle(i, "width", "20px"), e.setStyle(i, "background", "transparent"), e.setStyle(i, "cursor", "pointer"), e.setAttribute(i, "data-row-index", `${t}`), e.setAttribute(i, "data-col-index", `${n}`), e.setAttribute(i, "data-area", `${m}`), e.setAttribute(i, "data-ge-action", `${d}`);
|
|
1968
1997
|
let u;
|
|
1969
1998
|
a ? u = this.headerGroupOptions.iconExpanded : u = this.headerGroupOptions.iconCollapsed;
|
|
1970
|
-
const
|
|
1999
|
+
const p = u.content, c = e.createText(p);
|
|
1971
2000
|
e.appendChild(i, c), u.style && this.applyStyleString(e, i, u.style);
|
|
1972
2001
|
for (const N of u.classes)
|
|
1973
2002
|
e.addClass(i, N);
|
|
@@ -2095,7 +2124,7 @@ class Le {
|
|
|
2095
2124
|
render(e, r, a, t, n, m, d) {
|
|
2096
2125
|
if (this.readonly || this.skipCheckableCheck || n.isRowCheckable(r)) {
|
|
2097
2126
|
d.addClass(e, "ge-table-row-checkbox-div");
|
|
2098
|
-
const i = n.getRowByIndex(r),
|
|
2127
|
+
const i = n.getRowByIndex(r), p = n.getValueByT(i, this.property) === !0 ? "checked" : "", c = this.readonly ? " readonly " : "";
|
|
2099
2128
|
if (d.addClass(e, "ge-padding-property-checkbox"), e.innerHTML = `
|
|
2100
2129
|
<input
|
|
2101
2130
|
type="checkbox"
|
|
@@ -2104,7 +2133,7 @@ class Le {
|
|
|
2104
2133
|
data-col-index="${a}"
|
|
2105
2134
|
data-property-index="${this.property}"
|
|
2106
2135
|
data-input-type="checkbox"
|
|
2107
|
-
${
|
|
2136
|
+
${p}
|
|
2108
2137
|
${c}
|
|
2109
2138
|
class="ge-input-checkbox">`, !this.readonly) {
|
|
2110
2139
|
const N = e.querySelector(".ge-input-checkbox");
|
|
@@ -2147,13 +2176,13 @@ class je {
|
|
|
2147
2176
|
}
|
|
2148
2177
|
render(e, r, a, t, n, m, d) {
|
|
2149
2178
|
if (d.addClass(e, "ge-progressbar-div"), !isNaN(m)) {
|
|
2150
|
-
const u = Number(m) * 100 / this.maxValue,
|
|
2179
|
+
const u = Number(m) * 100 / this.maxValue, p = this.labelVisible ? Math.round(u) + "%" : "";
|
|
2151
2180
|
e.innerHTML = `
|
|
2152
2181
|
<div class="ge-table-label-div"
|
|
2153
2182
|
data-row-index="${r}"
|
|
2154
2183
|
data-col-index="${a}"
|
|
2155
2184
|
data-area="${t}"
|
|
2156
|
-
title="${
|
|
2185
|
+
title="${p}"
|
|
2157
2186
|
style="position: relative; background: transparent; width: 100%; height: 100%;">
|
|
2158
2187
|
<div class="ge-table-progress-container"
|
|
2159
2188
|
style="width:100%;height:50%;padding:0;margin-top:6px;"
|
|
@@ -2197,10 +2226,10 @@ class Ge {
|
|
|
2197
2226
|
d.addClass(e, "ge-star-rating-div");
|
|
2198
2227
|
const i = n.getRowByIndex(r), u = +("" + n.getValueByT(i, this.property));
|
|
2199
2228
|
if (!isNaN(u)) {
|
|
2200
|
-
const
|
|
2229
|
+
const p = [];
|
|
2201
2230
|
for (let N = 0; N < u; N++)
|
|
2202
|
-
|
|
2203
|
-
const c =
|
|
2231
|
+
p.push("★");
|
|
2232
|
+
const c = p.join(" ");
|
|
2204
2233
|
e.innerHTML = `
|
|
2205
2234
|
<div class="ge-table-label-div" data-row-index="${r}" data-col-index="${a}" data-area="${t}" style="position: relative; background: transparent; width: 100%; height: 100%;">
|
|
2206
2235
|
<div class="ge-table-label" data-row-index="${r}" data-col-index="${a}" data-area="${t}">${c}</div>
|
|
@@ -2216,7 +2245,7 @@ class Ze {
|
|
|
2216
2245
|
d.addClass(e, "ge-star-rating-div");
|
|
2217
2246
|
const i = n.getRowByIndex(r), u = +("" + n.getValueByT(i, this.property));
|
|
2218
2247
|
if (!isNaN(u)) {
|
|
2219
|
-
const
|
|
2248
|
+
const p = u * 100 / this.maxValue, c = this.labelVisible ? Math.round(p) + "%" : "";
|
|
2220
2249
|
e.innerHTML = `
|
|
2221
2250
|
<div class="ge-table-label-div"
|
|
2222
2251
|
data-row-index="${r}"
|
|
@@ -2230,7 +2259,7 @@ class Ze {
|
|
|
2230
2259
|
data-col-index="${a}"
|
|
2231
2260
|
data-area="${t}">
|
|
2232
2261
|
<div class="ge-table-progress-bar"
|
|
2233
|
-
style="width:${
|
|
2262
|
+
style="width:${p}%;height:100%;padding:0;margin:0;"
|
|
2234
2263
|
data-row-index="${r}"
|
|
2235
2264
|
data-col-index="${a}"
|
|
2236
2265
|
data-area="${t}">
|
|
@@ -2281,7 +2310,7 @@ class ne {
|
|
|
2281
2310
|
const N = c.value === i ? " selected " : "";
|
|
2282
2311
|
u.push(`<option value="${c.value}" ${N}>${c.label}</option>`);
|
|
2283
2312
|
}
|
|
2284
|
-
const
|
|
2313
|
+
const p = u.join("");
|
|
2285
2314
|
e.innerHTML = `
|
|
2286
2315
|
<select
|
|
2287
2316
|
type="text"
|
|
@@ -2293,7 +2322,7 @@ class ne {
|
|
|
2293
2322
|
data-col-index="${a}"
|
|
2294
2323
|
data-input-type="text"
|
|
2295
2324
|
style="width:100%;height:100%;border:0;padding:0 0 0 8px;"
|
|
2296
|
-
class="ge-table-cell-editor-select">${
|
|
2325
|
+
class="ge-table-cell-editor-select">${p}</select>`;
|
|
2297
2326
|
}
|
|
2298
2327
|
}
|
|
2299
2328
|
}
|
|
@@ -2364,11 +2393,11 @@ class nr {
|
|
|
2364
2393
|
render(e, r, a, t, n, m, d) {
|
|
2365
2394
|
const i = n.getRowByIndex(r);
|
|
2366
2395
|
if (i) {
|
|
2367
|
-
const u = this.formatterUsd.format(i.volUsd),
|
|
2396
|
+
const u = this.formatterUsd.format(i.volUsd), p = this.formatter.format(i.volBtc);
|
|
2368
2397
|
e.innerHTML = `
|
|
2369
2398
|
<div style="line-height: 1.2;padding: 10px 0 0 10px;">
|
|
2370
2399
|
${u}<br>
|
|
2371
|
-
${
|
|
2400
|
+
${p} BTC
|
|
2372
2401
|
</div>
|
|
2373
2402
|
`;
|
|
2374
2403
|
}
|
|
@@ -2381,9 +2410,9 @@ class mr {
|
|
|
2381
2410
|
render(e, r, a, t, n, m, d) {
|
|
2382
2411
|
const i = n.getRowByIndex(r);
|
|
2383
2412
|
if (i) {
|
|
2384
|
-
const u = this.formatter.format(i.circulatingSupply),
|
|
2385
|
-
if (c.push('<div style="line-height: 1.2;padding: 10px 0 0 10px;">'), c.push(u), c.push("<br>"),
|
|
2386
|
-
const N = this.maxWidth * i.circulatingSupply /
|
|
2413
|
+
const u = this.formatter.format(i.circulatingSupply), p = i.maxSupply, c = [];
|
|
2414
|
+
if (c.push('<div style="line-height: 1.2;padding: 10px 0 0 10px;">'), c.push(u), c.push("<br>"), p) {
|
|
2415
|
+
const N = this.maxWidth * i.circulatingSupply / p;
|
|
2387
2416
|
c.push(`
|
|
2388
2417
|
<div style="width: ${this.maxWidth}px;height: 5px;background-color: #eee;margin:10px 0 0 10px">
|
|
2389
2418
|
<div style="width: ${N}px;height: 5px;background-color: #ccc;"></div>
|
|
@@ -167110,15 +167139,15 @@ function Er() {
|
|
|
167110
167139
|
// <-- true: we will see the checkbox IN the first column after the arrow
|
|
167111
167140
|
}, e = [
|
|
167112
167141
|
// new CheckboxColumn(), // <--- not needed, because we have 'showCheckboxWihoutExtraColumn:true'
|
|
167113
|
-
new y("lastName", "Last Name", new
|
|
167114
|
-
new y("preName", "Pre Name", new
|
|
167115
|
-
new y("birth", "Birthday", new
|
|
167116
|
-
new y("gender", " ", new
|
|
167117
|
-
new y("address.street", "Strasse", new
|
|
167118
|
-
new y("address.number", "Nr", new
|
|
167119
|
-
new y("address.zip", "Zip", new
|
|
167120
|
-
new y("address.city", "City", new
|
|
167121
|
-
new y("id", "ID", new
|
|
167142
|
+
new y("lastName", "Last Name", new l(250, "px")),
|
|
167143
|
+
new y("preName", "Pre Name", new l(120, "px")),
|
|
167144
|
+
new y("birth", "Birthday", new l(100, "px"), new C(), new C(void 0, new O(), void 0), void 0, void 0),
|
|
167145
|
+
new y("gender", " ", new l(50, "px"), new C(), new C(void 0, new Pe(), void 0), void 0, void 0),
|
|
167146
|
+
new y("address.street", "Strasse", new l(150, "px")),
|
|
167147
|
+
new y("address.number", "Nr", new l(70, "px")),
|
|
167148
|
+
new y("address.zip", "Zip", new l(60, "px")),
|
|
167149
|
+
new y("address.city", "City", new l(120, "px")),
|
|
167150
|
+
new y("id", "ID", new l(60, "px"))
|
|
167122
167151
|
], r = M.buildTreeRows(dr, "friends");
|
|
167123
167152
|
return f.createTableModel({
|
|
167124
167153
|
rows: r,
|
|
@@ -219799,9 +219828,9 @@ class fr extends te {
|
|
|
219799
219828
|
const a = Q[r], t = H[e];
|
|
219800
219829
|
if (!P[a] || !P[a][t])
|
|
219801
219830
|
return;
|
|
219802
|
-
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,
|
|
219831
|
+
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);
|
|
219803
219832
|
return {
|
|
219804
|
-
background: U.getThreeColorGradientRGB(n,
|
|
219833
|
+
background: U.getThreeColorGradientRGB(n, p),
|
|
219805
219834
|
color: "transparent"
|
|
219806
219835
|
// we only want to show the bg color
|
|
219807
219836
|
};
|
|
@@ -220359,31 +220388,31 @@ const Lr = [
|
|
|
220359
220388
|
data: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
|
|
220360
220389
|
}
|
|
220361
220390
|
].map((s) => (s.updatedAt = /* @__PURE__ */ new Date(), s)), _ = [
|
|
220362
|
-
new y("city", "City", new
|
|
220363
|
-
new y("location", "Location", new
|
|
220364
|
-
new y("team.name", "Team", new
|
|
220391
|
+
new y("city", "City", new l(90, "px")),
|
|
220392
|
+
new y("location", "Location", new l(100, "px")),
|
|
220393
|
+
new y("team.name", "Team", new l(100, "px")),
|
|
220365
220394
|
y.create({
|
|
220366
220395
|
property: "team.active",
|
|
220367
220396
|
headerLabel: "Active",
|
|
220368
|
-
width: new
|
|
220397
|
+
width: new l(60, "px"),
|
|
220369
220398
|
bodyRenderer: new ze()
|
|
220370
220399
|
}),
|
|
220371
|
-
new y("data.0", "00", new
|
|
220372
|
-
new y("data.1", "15", new
|
|
220373
|
-
new y("data.2", "30", new
|
|
220374
|
-
new y("data.3", "45", new
|
|
220375
|
-
new y("data.4", "00", new
|
|
220376
|
-
new y("data.5", "15", new
|
|
220377
|
-
new y("data.6", "30", new
|
|
220378
|
-
new y("data.7", "45", new
|
|
220379
|
-
new y("data.8", "00", new
|
|
220380
|
-
new y("data.9", "15", new
|
|
220381
|
-
new y("data.10", "30", new
|
|
220382
|
-
new y("data.11", "45", new
|
|
220400
|
+
new y("data.0", "00", new l(60, "px")),
|
|
220401
|
+
new y("data.1", "15", new l(60, "px")),
|
|
220402
|
+
new y("data.2", "30", new l(60, "px")),
|
|
220403
|
+
new y("data.3", "45", new l(60, "px")),
|
|
220404
|
+
new y("data.4", "00", new l(60, "px")),
|
|
220405
|
+
new y("data.5", "15", new l(60, "px")),
|
|
220406
|
+
new y("data.6", "30", new l(60, "px")),
|
|
220407
|
+
new y("data.7", "45", new l(60, "px")),
|
|
220408
|
+
new y("data.8", "00", new l(60, "px")),
|
|
220409
|
+
new y("data.9", "15", new l(60, "px")),
|
|
220410
|
+
new y("data.10", "30", new l(60, "px")),
|
|
220411
|
+
new y("data.11", "45", new l(60, "px")),
|
|
220383
220412
|
y.create({
|
|
220384
220413
|
property: "updatedAt",
|
|
220385
220414
|
headerLabel: "Updated at",
|
|
220386
|
-
width: new
|
|
220415
|
+
width: new l(175, "px"),
|
|
220387
220416
|
bodyRenderer: new Xe()
|
|
220388
220417
|
})
|
|
220389
220418
|
], Yr = _.length - 1, Pr = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@guiexpert/demo-table-models",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.23",
|
|
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.29"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@types/node": "^20.11.17",
|