@guiexpert/table 1.1.5 → 1.1.7
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/css/main.css +16 -3
- package/css/table-color-classes.css +9 -1
- package/css/table-color-vars.css +7 -1
- package/index.cjs +19 -8
- package/index.d.ts +1 -0
- package/index.js +170 -97
- package/lib/table/mouse-handler.d.ts +7 -0
- package/lib/table/render-scope.d.ts +8 -1
- package/lib/table/renderer/positive-and-negative-number-renderer.d.ts +4 -0
- package/lib/table/selection/selection-model.d.ts +1 -0
- package/lib/table/selection/selection-model.if.d.ts +1 -0
- package/lib/table/selection/selection-service.d.ts +2 -2
- package/lib/table/table-api.d.ts +17 -0
- package/lib/table/table-scope.d.ts +13 -3
- package/package.json +2 -1
package/index.js
CHANGED
|
@@ -241,8 +241,9 @@ class me {
|
|
|
241
241
|
return this.domService.addClass(s, o), this.domService.setStyle(s, "display", "clip"), this.domService.setStyle(s, "position", "absolute"), this.domService.setStyle(s, "left", `${e.left}px`), this.domService.setStyle(s, "top", `${e.top}px`), this.domService.setStyle(s, "width", `${e.width}px`), this.domService.setStyle(s, "height", "1px"), this.domService.appendChild(t, s), s;
|
|
242
242
|
}
|
|
243
243
|
addFocusBorderDivs(e, t, o) {
|
|
244
|
+
t = { ...t, width: t.width + 1, height: t.height + 1 };
|
|
244
245
|
let s = this.domService.createElement("div");
|
|
245
|
-
return this.domService.addClass(s, "ge-table-focus-border"), this.domService.setStyle(s, "display", "clip"), this.domService.setStyle(s, "position", "absolute"), this.domService.setStyle(s, "left", `${t.left}px`), this.domService.setStyle(s, "top", `${t.top}px`), this.domService.setStyle(s, "width", "1px"), this.domService.setStyle(s, "height", `${t.height}px`), this.applyStyle(s, o), this.domService.appendChild(e, s), s = this.domService.createElement("div"), this.domService.addClass(s, "ge-table-focus-border"), this.domService.setStyle(s, "display", "clip"), this.domService.setStyle(s, "position", "absolute"), this.domService.setStyle(s, "left", `${t.left + t.width - 1}px`), this.domService.setStyle(s, "top", `${t.top}px`), this.domService.setStyle(s, "width", "1px"), this.domService.setStyle(s, "height", `${t.height}px`), this.applyStyle(s, o), this.domService.appendChild(e, s), s = this.domService.createElement("div"), this.domService.addClass(s, "ge-table-focus-border"), this.domService.setStyle(s, "display", "clip"), this.domService.setStyle(s, "position", "absolute"), this.domService.setStyle(s, "left", `${t.left}px`), this.domService.setStyle(s, "top", `${t.top}px`), this.domService.setStyle(s, "width", `${t.width}px`), this.domService.setStyle(s, "height", "1px"), this.applyStyle(s, o), this.domService.appendChild(e, s), s = this.domService.createElement("div"), this.domService.addClass(s, "ge-table-focus-border"), this.domService.setStyle(s, "display", "clip"), this.domService.setStyle(s, "position", "absolute"), this.domService.setStyle(s, "left", `${t.left}px`), this.domService.setStyle(s, "top", `${t.top + t.height - 1}px`), this.domService.setStyle(s, "width", `${t.width}px`), this.domService.setStyle(s, "height", "1px"), this.applyStyle(s, o), this.domService.appendChild(e, s), e;
|
|
246
|
+
return this.domService.addClass(s, "ge-table-focus-border"), this.domService.setStyle(s, "display", "clip"), this.domService.setStyle(s, "position", "absolute"), this.domService.setStyle(s, "left", `${t.left}px`), this.domService.setStyle(s, "top", `${t.top}px`), this.domService.setStyle(s, "width", "1px"), this.domService.setStyle(s, "height", `${t.height}px`), this.domService.setStyle(s, "z-index", "9999"), this.applyStyle(s, o), this.domService.appendChild(e, s), s = this.domService.createElement("div"), this.domService.addClass(s, "ge-table-focus-border"), this.domService.setStyle(s, "display", "clip"), this.domService.setStyle(s, "position", "absolute"), this.domService.setStyle(s, "left", `${t.left + t.width - 1}px`), this.domService.setStyle(s, "top", `${t.top}px`), this.domService.setStyle(s, "width", "1px"), this.domService.setStyle(s, "height", `${t.height}px`), this.domService.setStyle(s, "z-index", "9999"), this.applyStyle(s, o), this.domService.appendChild(e, s), s = this.domService.createElement("div"), this.domService.addClass(s, "ge-table-focus-border"), this.domService.setStyle(s, "display", "clip"), this.domService.setStyle(s, "position", "absolute"), this.domService.setStyle(s, "left", `${t.left}px`), this.domService.setStyle(s, "top", `${t.top}px`), this.domService.setStyle(s, "width", `${t.width}px`), this.domService.setStyle(s, "height", "1px"), this.domService.setStyle(s, "z-index", "9999"), this.applyStyle(s, o), this.domService.appendChild(e, s), s = this.domService.createElement("div"), this.domService.addClass(s, "ge-table-focus-border"), this.domService.setStyle(s, "display", "clip"), this.domService.setStyle(s, "position", "absolute"), this.domService.setStyle(s, "left", `${t.left}px`), this.domService.setStyle(s, "top", `${t.top + t.height - 1}px`), this.domService.setStyle(s, "width", `${t.width}px`), this.domService.setStyle(s, "height", "1px"), this.domService.setStyle(s, "z-index", "9999"), this.applyStyle(s, o), this.domService.appendChild(e, s), e;
|
|
246
247
|
}
|
|
247
248
|
addVerticalBorder(e, t, o = "ge-table-body-center-vertical-border") {
|
|
248
249
|
const s = this.domService.createElement("div");
|
|
@@ -279,7 +280,7 @@ class we {
|
|
|
279
280
|
}
|
|
280
281
|
class Se {
|
|
281
282
|
constructor(e) {
|
|
282
|
-
this.tableScope = e, this.expandedAll = !0, this.mouseDown = !1, this.dragging = !1, this.tableScope.hostElement.addEventListener("click", this.onHostElementClicked.bind(this)), this.tableScope.hostElement.addEventListener("dblclick", this.onHostElementDblClicked.bind(this)), this.tableScope.hostElement.addEventListener("mousedown", this.onMouseDown.bind(this)), this.tableScope.hostElement.addEventListener("mousemove", this.onMouseMove.bind(this)), this.tableScope.hostElement.addEventListener("mouseup", this.onMouseUp.bind(this)), this.tableScope.hostElement.addEventListener("contextmenu", this.onContextmenu.bind(this)), this.tableScope.hostElement._MouseHandler = "true", this.tableScope.scrollViewport.addEventListener("scroll", this.tableScope.adjustAfterScrolling.bind(this.tableScope)), [window, this.tableScope.hostElement].forEach(
|
|
283
|
+
this.tableScope = e, this.doubleClickDelay = 500, this.expandedAll = !0, this.mouseDown = !1, this.dragging = !1, this.lastClicked = 0, this.tableScope.hostElement.addEventListener("click", this.onHostElementClicked.bind(this)), this.tableScope.hostElement.addEventListener("dblclick", this.onHostElementDblClicked.bind(this)), this.tableScope.hostElement.addEventListener("mousedown", this.onMouseDown.bind(this)), this.tableScope.hostElement.addEventListener("mousemove", this.onMouseMove.bind(this)), this.tableScope.hostElement.addEventListener("mouseup", this.onMouseUp.bind(this)), this.tableScope.hostElement.addEventListener("contextmenu", this.onContextmenu.bind(this)), this.tableScope.hostElement._MouseHandler = "true", this.tableScope.scrollViewport.addEventListener("scroll", this.tableScope.adjustAfterScrolling.bind(this.tableScope)), [window, this.tableScope.hostElement].forEach(
|
|
283
284
|
(t) => t.addEventListener("resize", this.tableScope.adjustContainersAndRows.bind(this.tableScope))
|
|
284
285
|
);
|
|
285
286
|
}
|
|
@@ -303,22 +304,26 @@ class Se {
|
|
|
303
304
|
* @return {void}
|
|
304
305
|
*/
|
|
305
306
|
onHostElementClicked(e) {
|
|
306
|
-
const t =
|
|
307
|
-
if (t.
|
|
307
|
+
const t = Date.now();
|
|
308
|
+
if (t - this.lastClicked < this.doubleClickDelay)
|
|
309
|
+
return;
|
|
310
|
+
this.lastClicked = t;
|
|
311
|
+
const o = new we(e.target, this.tableScope);
|
|
312
|
+
if (o.action === "toggleExpandCollapseAll")
|
|
308
313
|
this.expandedAll = !this.expandedAll, this.tableScope.toggleExpandCollapseAll(this.expandedAll), e.preventDefault(), e.stopPropagation();
|
|
309
|
-
else if (
|
|
310
|
-
this.tableScope.toggleRowCheckbox(
|
|
311
|
-
else if (O(
|
|
312
|
-
const
|
|
313
|
-
if (console.info(
|
|
314
|
+
else if (o.inputType === "checkbox" && o.areaIdent)
|
|
315
|
+
this.tableScope.toggleRowCheckbox(o.rowIdx, o.colIdx, o.areaIdent), e.preventDefault(), e.stopPropagation();
|
|
316
|
+
else if (O(o.row) && o.areaModel) {
|
|
317
|
+
const s = o.colIdx === this.getArrowColumnIndex() && e.altKey, i = o.className.includes("ge-table-tree-arrow-div");
|
|
318
|
+
if (console.info(i, s), s || i) {
|
|
314
319
|
e.preventDefault(), e.stopPropagation();
|
|
315
|
-
const
|
|
316
|
-
|
|
320
|
+
const r = o.row;
|
|
321
|
+
r.expanded = !r.expanded, "recalcVisibleTreeRows" in o.areaModel && o.areaModel.recalcVisibleTreeRows(), this.tableScope.tableModel.recalcSize(this.tableScope.hostElement.clientWidth), this.tableScope.adjustContainersAndRows(), this.updateCollapsedExpandedState(r);
|
|
317
322
|
}
|
|
318
323
|
}
|
|
319
|
-
if (
|
|
320
|
-
const
|
|
321
|
-
|
|
324
|
+
if (o.areaIdent === "body" && this.tableScope.tableOptions.getFocusModel) {
|
|
325
|
+
const s = this.tableScope.tableOptions.getFocusModel();
|
|
326
|
+
s == null || s.clear(), s == null || s.setFocus(o.rowIdx, o.colIdx);
|
|
322
327
|
}
|
|
323
328
|
this.publishGeMouseEvent(e, 1);
|
|
324
329
|
}
|
|
@@ -329,7 +334,7 @@ class Se {
|
|
|
329
334
|
* @param {MouseEvent} event - The double click event.
|
|
330
335
|
*/
|
|
331
336
|
onHostElementDblClicked(e) {
|
|
332
|
-
if (e.target instanceof HTMLElement) {
|
|
337
|
+
if (this.lastClicked = Date.now(), e.target instanceof HTMLElement) {
|
|
333
338
|
const t = e.target, o = t.getAttribute("data-area"), s = Y(o), i = Number(t.getAttribute("data-row-index")), r = Number(t.getAttribute("data-col-index")), l = this.tableScope.tableModel.getAreaModel(s);
|
|
334
339
|
if (o && s === "header")
|
|
335
340
|
this.tableScope.tableModel.isSortable(r) && (this.tableScope.clearSelection(), this.tableScope.onHeaderDblClicked(e, i, r));
|
|
@@ -354,7 +359,7 @@ class Se {
|
|
|
354
359
|
*/
|
|
355
360
|
publishGeMouseEvent(e, t) {
|
|
356
361
|
var o;
|
|
357
|
-
this.mouseEvent = e, this.geMouseEventOld = (o = this.geMouseEvent) == null ? void 0 : o.clone(), this.geMouseEvent = this.tableScope.createGeMouseEvent(e), this.geMouseEvent && (this.geMouseEvent.clickCount = t), this.tableScope.onMouseClicked(this.geMouseEvent, this.geMouseEventOld);
|
|
362
|
+
this.mouseEvent = e, this.geMouseEventOld = (o = this.geMouseEvent) == null ? void 0 : o.clone(), this.geMouseEvent = this.tableScope.createGeMouseEvent(e), this.geMouseEvent && (this.geMouseEvent.clickCount = t), this.tableScope.onMouseClicked(this.geMouseEvent, this.geMouseEventOld), this.tableScope.publishGeMouseEvent(this.geMouseEvent), t === 1 && this.tableScope.debounceRepaint();
|
|
358
363
|
}
|
|
359
364
|
/**
|
|
360
365
|
* Update the collapsed/expanded state of a tree row.
|
|
@@ -509,6 +514,26 @@ class xe {
|
|
|
509
514
|
repaint() {
|
|
510
515
|
this.tableScope.repaint();
|
|
511
516
|
}
|
|
517
|
+
/**
|
|
518
|
+
* Clears the current selection of the table.
|
|
519
|
+
* The table will be rendered automatically.
|
|
520
|
+
*
|
|
521
|
+
* @returns {void}
|
|
522
|
+
*/
|
|
523
|
+
clearSelection() {
|
|
524
|
+
this.tableScope.clearSelection(!0);
|
|
525
|
+
}
|
|
526
|
+
/**
|
|
527
|
+
* Sets the selection model for the table scope.
|
|
528
|
+
*
|
|
529
|
+
* @param {SelectionModel} sm - The selection model to be set.
|
|
530
|
+
* @param {boolean} [repaint=true] - Indicates whether the table should be repainted after setting the selection model. Default value is true.
|
|
531
|
+
*
|
|
532
|
+
* @return {void}
|
|
533
|
+
*/
|
|
534
|
+
setSelectionModel(e, t = !0) {
|
|
535
|
+
this.tableScope.setSelectionModel(e, t);
|
|
536
|
+
}
|
|
512
537
|
}
|
|
513
538
|
class U {
|
|
514
539
|
constructor(e) {
|
|
@@ -824,7 +849,7 @@ class Ae {
|
|
|
824
849
|
this.dom.setStyle(this.contentWrapperDiv, "width", e), this.dom.setStyle(this.contentWrapperDiv, "height", t);
|
|
825
850
|
}
|
|
826
851
|
}
|
|
827
|
-
class
|
|
852
|
+
class R {
|
|
828
853
|
/**
|
|
829
854
|
* Represents a constructor for a class.
|
|
830
855
|
* @constructor
|
|
@@ -838,7 +863,7 @@ class M {
|
|
|
838
863
|
this.r1 = e, this.c1 = t, this.r2 = o, this.c2 = s, this.gammaRange = i;
|
|
839
864
|
}
|
|
840
865
|
static create(e) {
|
|
841
|
-
return e.gammaRange === void 0 && (e.gammaRange = !1), new
|
|
866
|
+
return e.gammaRange === void 0 && (e.gammaRange = !1), new R(
|
|
842
867
|
e.rowIndex1,
|
|
843
868
|
e.columnIndex1,
|
|
844
869
|
e.rowIndex2,
|
|
@@ -847,13 +872,13 @@ class M {
|
|
|
847
872
|
);
|
|
848
873
|
}
|
|
849
874
|
static singleCell(e, t) {
|
|
850
|
-
return new
|
|
875
|
+
return new R(e, t, e, t);
|
|
851
876
|
}
|
|
852
877
|
static singleRow(e) {
|
|
853
|
-
return new
|
|
878
|
+
return new R(e, 0, e, Number.MAX_SAFE_INTEGER);
|
|
854
879
|
}
|
|
855
880
|
static singleColumn(e) {
|
|
856
|
-
return new
|
|
881
|
+
return new R(0, e, Number.MAX_SAFE_INTEGER, e);
|
|
857
882
|
}
|
|
858
883
|
isInRange(e, t) {
|
|
859
884
|
return e >= this.r1 && e <= this.r2 && t >= this.c1 && t <= this.c2;
|
|
@@ -875,7 +900,7 @@ class Ee {
|
|
|
875
900
|
i === 0 && (i = 1), r === 0 && (r = 1);
|
|
876
901
|
const l = this.areaModel.hasOwnProperty("gammaCells");
|
|
877
902
|
this.colAndRowspanRanges.push(
|
|
878
|
-
new
|
|
903
|
+
new R(o, s, o + r - 1, s + i - 1, l)
|
|
879
904
|
);
|
|
880
905
|
}
|
|
881
906
|
}
|
|
@@ -917,10 +942,17 @@ class Me extends Ae {
|
|
|
917
942
|
resetEditorRenderer() {
|
|
918
943
|
this.editorRenderer = void 0, this.editorRendererRow = -1, this.editorRendererColumn = -1, this.editing = !1;
|
|
919
944
|
}
|
|
920
|
-
|
|
945
|
+
/**
|
|
946
|
+
* Clears the selection in the component.
|
|
947
|
+
*
|
|
948
|
+
* @param {boolean} rerender - Indicates whether to rerender the component after clearing the selection. Default value is false.
|
|
949
|
+
*
|
|
950
|
+
* @return {void}
|
|
951
|
+
*/
|
|
952
|
+
clearSelection(e = !1) {
|
|
921
953
|
if (this.getSelectionModel) {
|
|
922
|
-
const
|
|
923
|
-
|
|
954
|
+
const t = this.getSelectionModel();
|
|
955
|
+
t == null || t.clear(), e && this.repaint();
|
|
924
956
|
}
|
|
925
957
|
}
|
|
926
958
|
initRenderEditor(e, t) {
|
|
@@ -1037,11 +1069,11 @@ class Me extends Ae {
|
|
|
1037
1069
|
let u = t;
|
|
1038
1070
|
const m = this.tableModel.getColumnCount(), b = this.tableModel.getFixedRightColumnCount(), w = this.tableModel.getFixedLeftColumnCount();
|
|
1039
1071
|
for (let p = 0; p < c; p++) {
|
|
1040
|
-
const
|
|
1041
|
-
if (
|
|
1072
|
+
const A = u, C = p === c - 1, v = this.tableModel.getRowHeight(e, p);
|
|
1073
|
+
if (A + v > 0) {
|
|
1042
1074
|
this.firstVisibleRowIndex = p;
|
|
1043
|
-
let x = { left: l, width: n, height: v, top:
|
|
1044
|
-
const
|
|
1075
|
+
let x = { left: l, width: n, height: v, top: A, index: p }, y = this.dom.addRowDiv(s, x, p, e, "center");
|
|
1076
|
+
const E = w;
|
|
1045
1077
|
if (this.adjustColumnsToRowParent({
|
|
1046
1078
|
areaIdent: e,
|
|
1047
1079
|
sideIdent: "center",
|
|
@@ -1049,11 +1081,11 @@ class Me extends Ae {
|
|
|
1049
1081
|
geo: x,
|
|
1050
1082
|
parent: y,
|
|
1051
1083
|
rowIndex: p,
|
|
1052
|
-
columnIndexStart:
|
|
1084
|
+
columnIndexStart: E,
|
|
1053
1085
|
columnIndexEnd: m - b - 1,
|
|
1054
1086
|
verticalFixed: !1,
|
|
1055
1087
|
lastRowOfModel: C
|
|
1056
|
-
}), d.left > 0 && (x = { left: l, width: this.areaBodyWestGeo.width, height: v, top:
|
|
1088
|
+
}), d.left > 0 && (x = { left: l, width: this.areaBodyWestGeo.width, height: v, top: A, index: p }, y = this.dom.addRowDiv(o, x, p, e, "west"), this.adjustColumnsToRowParent({
|
|
1057
1089
|
areaIdent: e,
|
|
1058
1090
|
sideIdent: "west",
|
|
1059
1091
|
areaModel: a,
|
|
@@ -1061,10 +1093,10 @@ class Me extends Ae {
|
|
|
1061
1093
|
parent: y,
|
|
1062
1094
|
rowIndex: p,
|
|
1063
1095
|
columnIndexStart: 0,
|
|
1064
|
-
columnIndexEnd:
|
|
1096
|
+
columnIndexEnd: E - 1,
|
|
1065
1097
|
verticalFixed: !0,
|
|
1066
1098
|
lastRowOfModel: C
|
|
1067
|
-
})), d.right > 0 && (x = { left: l, width: this.areaBodyEastGeo.width, height: v, top:
|
|
1099
|
+
})), d.right > 0 && (x = { left: l, width: this.areaBodyEastGeo.width, height: v, top: A, index: p }, y = this.dom.addRowDiv(i, x, p, e, "east"), this.adjustColumnsToRowParent({
|
|
1068
1100
|
areaIdent: e,
|
|
1069
1101
|
sideIdent: "east",
|
|
1070
1102
|
areaModel: a,
|
|
@@ -1076,7 +1108,7 @@ class Me extends Ae {
|
|
|
1076
1108
|
verticalFixed: !0,
|
|
1077
1109
|
lastRowOfModel: C
|
|
1078
1110
|
})), e === "header" && this.tree && p === c - 1) {
|
|
1079
|
-
const
|
|
1111
|
+
const M = this.dom.applyStyle(
|
|
1080
1112
|
this.dom.setAttribute(
|
|
1081
1113
|
this.dom.addDiv(y, new $(16, 20, 20, 8)),
|
|
1082
1114
|
"data-ge-action",
|
|
@@ -1086,7 +1118,7 @@ class Me extends Ae {
|
|
|
1086
1118
|
), k = this.tableOptions.treeOptions.arrowExpandCollapseAll;
|
|
1087
1119
|
if (k) {
|
|
1088
1120
|
const B = this.dom.domService.createText(k.content);
|
|
1089
|
-
this.dom.domService.appendChild(
|
|
1121
|
+
this.dom.domService.appendChild(M, B), k.style && this.dom.applyStyleString(M, k.style);
|
|
1090
1122
|
}
|
|
1091
1123
|
}
|
|
1092
1124
|
}
|
|
@@ -1096,17 +1128,17 @@ class Me extends Ae {
|
|
|
1096
1128
|
if (this.colAndRowspanModels && this.colAndRowspanModels[e]) {
|
|
1097
1129
|
const p = ((g = this.colAndRowspanModels[e]) == null ? void 0 : g.getRanges()) ?? [];
|
|
1098
1130
|
if (p.length)
|
|
1099
|
-
for (const
|
|
1131
|
+
for (const A of p) {
|
|
1100
1132
|
let C = 0, v = s.child, x = "center";
|
|
1101
|
-
if (
|
|
1133
|
+
if (A.c1 < w)
|
|
1102
1134
|
v = o.child, x = "west";
|
|
1103
|
-
else if (b > 0 &&
|
|
1135
|
+
else if (b > 0 && A.c1 >= m - b)
|
|
1104
1136
|
v = i.child, x = "east";
|
|
1105
1137
|
else {
|
|
1106
1138
|
const y = this.areaBodyCenterGeo.width - this.tableModel.getContentWidthInPixel();
|
|
1107
1139
|
C = this.scrollFactorX * y - this.areaBodyWestGeo.width, x = "center";
|
|
1108
1140
|
}
|
|
1109
|
-
this.drawBigCell(
|
|
1141
|
+
this.drawBigCell(A, C, t, a, v, x);
|
|
1110
1142
|
}
|
|
1111
1143
|
}
|
|
1112
1144
|
}
|
|
@@ -1198,21 +1230,21 @@ class Me extends Ae {
|
|
|
1198
1230
|
const u = 0, m = !!(e === "body" && t);
|
|
1199
1231
|
let b = c;
|
|
1200
1232
|
for (let g = l; g <= n; g++) {
|
|
1201
|
-
const p = b,
|
|
1202
|
-
if (
|
|
1233
|
+
const p = b, A = this.tableModel.getColumnWidth(g);
|
|
1234
|
+
if (A > 0 && p + A > 0) {
|
|
1203
1235
|
let C = s.height;
|
|
1204
1236
|
const v = o.getRowspanAt(r, g), x = o.getColspanAt(r, g);
|
|
1205
|
-
v > 1 && (C = this.getRowHeights(r, r + v - 1, o).reduce((
|
|
1206
|
-
let y =
|
|
1207
|
-
x > 1 && (y = this.getColumnWidths(g, g + x - 1).reduce((
|
|
1208
|
-
let
|
|
1209
|
-
if (this.colAndRowspanModels && this.colAndRowspanModels[e] && (w = this.colAndRowspanModels[e]) != null && w.isInRange(r, g) && (
|
|
1237
|
+
v > 1 && (C = this.getRowHeights(r, r + v - 1, o).reduce((M, k) => M + k, 0));
|
|
1238
|
+
let y = A;
|
|
1239
|
+
x > 1 && (y = this.getColumnWidths(g, g + x - 1).reduce((M, k) => M + k, 0));
|
|
1240
|
+
let E = !1;
|
|
1241
|
+
if (this.colAndRowspanModels && this.colAndRowspanModels[e] && (w = this.colAndRowspanModels[e]) != null && w.isInRange(r, g) && (E = !0), this.draggingTargetColumnIndex === g && e !== "header") {
|
|
1210
1242
|
this.renderDragTargetDiv(i, p, u, y, C);
|
|
1211
|
-
const
|
|
1212
|
-
this.dom.addColumnBorderDivs(this.tableOptions, i,
|
|
1243
|
+
const M = { left: p, top: u, width: y, height: C };
|
|
1244
|
+
this.dom.addColumnBorderDivs(this.tableOptions, i, M, e, t);
|
|
1213
1245
|
} else {
|
|
1214
|
-
const
|
|
1215
|
-
|
|
1246
|
+
const M = this.renderSelectedBackgroundDiv(E, m, t, o, r, g, i, p, u, y, C);
|
|
1247
|
+
E || this.renderCell({
|
|
1216
1248
|
areaModel: o,
|
|
1217
1249
|
areaIdent: e,
|
|
1218
1250
|
sideIdent: t,
|
|
@@ -1223,7 +1255,7 @@ class Me extends Ae {
|
|
|
1223
1255
|
width: y,
|
|
1224
1256
|
height: C,
|
|
1225
1257
|
parent: i,
|
|
1226
|
-
cellSelected:
|
|
1258
|
+
cellSelected: M,
|
|
1227
1259
|
lastRowOfModel: a,
|
|
1228
1260
|
gammaRange: !0
|
|
1229
1261
|
}), e === "header" && this.tableOptions.columnsResizable && this.renderHeaderCellResizeHandle({
|
|
@@ -1237,7 +1269,7 @@ class Me extends Ae {
|
|
|
1237
1269
|
});
|
|
1238
1270
|
}
|
|
1239
1271
|
}
|
|
1240
|
-
if (b = b +
|
|
1272
|
+
if (b = b + A, b > this.areaBodyCenterGeo.width)
|
|
1241
1273
|
break;
|
|
1242
1274
|
}
|
|
1243
1275
|
this.tableOptions.verticalBorderVisible && this.dom.addVerticalBorder(new $(b - 1, 1, s.height, 0), i);
|
|
@@ -1271,7 +1303,7 @@ class Me extends Ae {
|
|
|
1271
1303
|
const S = this.tableModel.getColumnDef(i);
|
|
1272
1304
|
(!(S != null && S.sortIconVisible) || S != null && S.sortIconVisible()) && (C = S == null ? void 0 : S.sortState);
|
|
1273
1305
|
}
|
|
1274
|
-
const v = e.getValueAt(s, i), x = b ? "" : `${v}`, y = e.isRowChecked(s),
|
|
1306
|
+
const v = e.getValueAt(s, i), x = b ? "" : `${v}`, y = e.isRowChecked(s), E = this.dom.addColumnDiv(
|
|
1275
1307
|
a,
|
|
1276
1308
|
w,
|
|
1277
1309
|
s,
|
|
@@ -1283,23 +1315,23 @@ class Me extends Ae {
|
|
|
1283
1315
|
this.tableOptions,
|
|
1284
1316
|
y,
|
|
1285
1317
|
C
|
|
1286
|
-
),
|
|
1287
|
-
|
|
1318
|
+
), M = e.getTooltipAt(s, i);
|
|
1319
|
+
M && this.dom.setAttribute(E, "title", M);
|
|
1288
1320
|
const k = this.tableModel.getColumnDef(i);
|
|
1289
|
-
k && k.classes[t] && this.dom.addClasses(k.classes[t],
|
|
1321
|
+
k && k.classes[t] && this.dom.addClasses(k.classes[t], E);
|
|
1290
1322
|
let B;
|
|
1291
|
-
b && (B = b.render(
|
|
1323
|
+
b && (B = b.render(E, s, i, t, e, v, this.dom.domService));
|
|
1292
1324
|
const Q = e.getCustomClassesAt(s, i);
|
|
1293
|
-
if (Q.length && this.dom.addClasses(Q,
|
|
1325
|
+
if (Q.length && this.dom.addClasses(Q, E), this.dom.addColumnBorderDivs(this.tableOptions, a, w, t, o), c && this.dom.addHorizontalBorder({ left: r, width: l, height: n, top: d + n }, a), this.getFocusModel && t === "body") {
|
|
1294
1326
|
const S = this.getFocusModel();
|
|
1295
1327
|
S != null && S.hasFocus(s, i) && this.dom.addFocusBorderDivs(a, w, {});
|
|
1296
1328
|
}
|
|
1297
|
-
t === "header" && this.dom.setAttribute(
|
|
1329
|
+
t === "header" && this.dom.setAttribute(E, "data-ge-action", "drag-column");
|
|
1298
1330
|
const G = e.getCustomStyleAt(s, i);
|
|
1299
1331
|
if (G)
|
|
1300
1332
|
for (const S in G)
|
|
1301
|
-
this.dom.setStyle(
|
|
1302
|
-
return [
|
|
1333
|
+
this.dom.setStyle(E, S, G[S]);
|
|
1334
|
+
return [E, B];
|
|
1303
1335
|
}
|
|
1304
1336
|
applyCssClasses(e, t = {}) {
|
|
1305
1337
|
e && Object.entries(t).forEach(([o, s]) => {
|
|
@@ -1486,7 +1518,7 @@ class De {
|
|
|
1486
1518
|
let o = !1, s = !1;
|
|
1487
1519
|
if (this.getSelectionModel && this.getFocusModel) {
|
|
1488
1520
|
const u = this.getSelectionModel(), m = this.getFocusModel();
|
|
1489
|
-
u && m && (m.hasFocus(e.rowIndex, e.columnIndex) || (m.setFocus(e.rowIndex, e.columnIndex), o = !0), (i = e.originalEvent) != null && i.shiftKey || u.hasSelection() && (u.clear(), o = !0), (r = e.originalEvent) != null && r.shiftKey && this.previousEvt ? (u.addSelection(this.createRangeByEvents(e, this.previousEvt)), s = !0, o = !0) : (l = e.originalEvent) != null && l.
|
|
1521
|
+
u && m && (m.hasFocus(e.rowIndex, e.columnIndex) || (m.setFocus(e.rowIndex, e.columnIndex), o = !0), (i = e.originalEvent) != null && i.shiftKey || u.hasSelection() && (u.clear(), o = !0), (r = e.originalEvent) != null && r.shiftKey && this.previousEvt ? (u.addSelection(this.createRangeByEvents(e, this.previousEvt)), s = !0, o = !0) : (l = e.originalEvent) != null && l.altKey && ((n = e.originalEvent) != null && n.ctrlKey || (d = e.originalEvent) != null && d.metaKey) ? (u.removeSelection(R.singleCell(e.rowIndex, e.columnIndex)), s = !0, o = !0) : (a = e.originalEvent) != null && a.ctrlKey || (c = e.originalEvent) != null && c.metaKey ? (u.addSelection(R.singleCell(e.rowIndex, e.columnIndex)), s = !0, o = !0) : (u.firstClick(e.rowIndex, e.columnIndex), o = !0));
|
|
1490
1522
|
}
|
|
1491
1523
|
return s ? this.previousEvt = void 0 : this.previousEvt = e == null ? void 0 : e.clone(), o;
|
|
1492
1524
|
}
|
|
@@ -1509,7 +1541,7 @@ class De {
|
|
|
1509
1541
|
createRangeByEvents(e, t) {
|
|
1510
1542
|
t || (t = e);
|
|
1511
1543
|
const o = Math.min(e.rowIndex, t == null ? void 0 : t.rowIndex), s = Math.max(e.rowIndex, t == null ? void 0 : t.rowIndex), i = Math.min(e.columnIndex, t == null ? void 0 : t.columnIndex), r = Math.max(e.columnIndex, t == null ? void 0 : t.columnIndex);
|
|
1512
|
-
return
|
|
1544
|
+
return R.create({
|
|
1513
1545
|
rowIndex1: o,
|
|
1514
1546
|
columnIndex1: i,
|
|
1515
1547
|
rowIndex2: s,
|
|
@@ -1589,7 +1621,7 @@ class Fe {
|
|
|
1589
1621
|
const t = this.getTokenByEvent(e);
|
|
1590
1622
|
this.isDebug() && console.debug("ShortcutService tokens:", t);
|
|
1591
1623
|
for (const o in this.shortcutActionIdMapping) {
|
|
1592
|
-
const s = o.replace(/opt/g, "alt").replace(/cmd/g, "meta").split(/[
|
|
1624
|
+
const s = o.replace(/opt/g, "alt").replace(/cmd/g, "meta").split(/[+ ]/g).sort();
|
|
1593
1625
|
if (this.areTokensEquals(t, s))
|
|
1594
1626
|
return this.shortcutActionIdMapping[o];
|
|
1595
1627
|
}
|
|
@@ -1675,6 +1707,9 @@ class Oe {
|
|
|
1675
1707
|
constructor(e = "none", t = "single") {
|
|
1676
1708
|
this.selectionType = e, this.selectionMode = t, this.ranges = [], this.negativeRanges = [], this.allSelected = !1;
|
|
1677
1709
|
}
|
|
1710
|
+
firstClick(e, t) {
|
|
1711
|
+
this.selectionType === "row" ? this.addRange(R.singleRow(e)) : this.selectionType === "column" && this.addRange(R.singleColumn(t));
|
|
1712
|
+
}
|
|
1678
1713
|
getSelectionCount(e, t) {
|
|
1679
1714
|
let o = 0;
|
|
1680
1715
|
for (const s of this.ranges)
|
|
@@ -1706,16 +1741,16 @@ class Oe {
|
|
|
1706
1741
|
if (this.selectionType === "none")
|
|
1707
1742
|
return;
|
|
1708
1743
|
let t = e;
|
|
1709
|
-
this.selectionType === "row" ? t =
|
|
1744
|
+
this.selectionType === "row" ? t = R.singleRow(e.r1) : this.selectionType === "column" && (t = R.singleColumn(e.c1)), this.negativeRanges.push(t);
|
|
1710
1745
|
}
|
|
1711
1746
|
togglePoint(e, t) {
|
|
1712
|
-
this.getSelectionCount(e, t) > 0 ? this.removeSelection(
|
|
1747
|
+
this.getSelectionCount(e, t) > 0 ? this.removeSelection(R.singleCell(e, t)) : this.addSelection(R.singleCell(e, t));
|
|
1713
1748
|
}
|
|
1714
1749
|
addRange(e) {
|
|
1715
1750
|
this.selectionType !== "none" && (this.allSelected = !1, this.selectionMode === "single" && (this.ranges = []), this.selectionType === "row" ? (e.c1 = 0, e.c2 = Number.MAX_SAFE_INTEGER) : this.selectionType === "column" ? (e.r1 = 0, e.r2 = Number.MAX_SAFE_INTEGER) : this.selectionType === "cell" ? (e.r2 = e.r1, e.c2 = e.c1) : this.selectionType, this.ranges.push(e));
|
|
1716
1751
|
}
|
|
1717
1752
|
}
|
|
1718
|
-
class
|
|
1753
|
+
class He {
|
|
1719
1754
|
constructor(e = "none") {
|
|
1720
1755
|
this.selectionType = e, this.rowIndex = -1, this.columnIndex = -1, this.changed = !1;
|
|
1721
1756
|
}
|
|
@@ -1738,14 +1773,14 @@ class Ve {
|
|
|
1738
1773
|
return [this.rowIndex, this.columnIndex];
|
|
1739
1774
|
}
|
|
1740
1775
|
}
|
|
1741
|
-
const
|
|
1776
|
+
const Ve = new Oe(), Be = new He("cell");
|
|
1742
1777
|
class j {
|
|
1743
1778
|
constructor() {
|
|
1744
1779
|
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 = {
|
|
1745
1780
|
header: 34,
|
|
1746
1781
|
body: 34,
|
|
1747
1782
|
footer: 34
|
|
1748
|
-
}, this.footerVerticalSeparator = !1, this.headerToggleExpandCollapseIcons = !1, this.headerVerticalSeparator = !1, this.treeOptions = new he(), this.showCheckboxWihoutExtraColumn = !1, this.externalFilterFunction = void 0, this.sortedOptions = new ce(), this.sortOrder = ["asc", "desc"], this.getEditRenderer = (e, t) => new Pe(), this.getSelectionModel = () =>
|
|
1783
|
+
}, this.footerVerticalSeparator = !1, this.headerToggleExpandCollapseIcons = !1, this.headerVerticalSeparator = !1, this.treeOptions = new he(), this.showCheckboxWihoutExtraColumn = !1, this.externalFilterFunction = void 0, this.sortedOptions = new ce(), this.sortOrder = ["asc", "desc"], this.getEditRenderer = (e, t) => new Pe(), this.getSelectionModel = () => Ve, this.getFocusModel = () => Be;
|
|
1749
1784
|
}
|
|
1750
1785
|
}
|
|
1751
1786
|
class ue extends Me {
|
|
@@ -1922,10 +1957,17 @@ class ue extends Me {
|
|
|
1922
1957
|
onMouseClicked(e, t) {
|
|
1923
1958
|
let o = this.selectionService.onMouseClicked(e, t);
|
|
1924
1959
|
if (!o && this.getFocusModel) {
|
|
1960
|
+
this.resetEditorRenderer();
|
|
1925
1961
|
const s = this.getFocusModel();
|
|
1926
|
-
s && (o = s.hasChanged(), s.clearChanged()
|
|
1962
|
+
s && (o = s.hasChanged(), s.clearChanged());
|
|
1927
1963
|
}
|
|
1928
|
-
|
|
1964
|
+
return o;
|
|
1965
|
+
}
|
|
1966
|
+
debounceRepaint() {
|
|
1967
|
+
this.debounce(this.repaint.bind(this), 1);
|
|
1968
|
+
}
|
|
1969
|
+
publishGeMouseEvent(e) {
|
|
1970
|
+
this.eventListener.onMouseClicked(e);
|
|
1929
1971
|
}
|
|
1930
1972
|
/**
|
|
1931
1973
|
* Updates the table (repaint) when an external filter is changed.
|
|
@@ -1996,8 +2038,6 @@ class ue extends Me {
|
|
|
1996
2038
|
/**
|
|
1997
2039
|
* Restores the scroll position of the table if auto restore options are enabled.
|
|
1998
2040
|
*
|
|
1999
|
-
* @private
|
|
2000
|
-
* @memberof ClassName
|
|
2001
2041
|
*
|
|
2002
2042
|
* @returns {void}
|
|
2003
2043
|
*/
|
|
@@ -2082,6 +2122,18 @@ class ue extends Me {
|
|
|
2082
2122
|
const s = this.tableModel.getAreaModel("body").getYPosByRowIndex(t);
|
|
2083
2123
|
this.scrollToPixel(0, s);
|
|
2084
2124
|
}
|
|
2125
|
+
/**
|
|
2126
|
+
* Sets the selection model for the table.
|
|
2127
|
+
*
|
|
2128
|
+
* @param {SelectionModel} sm - The selection model to be set.
|
|
2129
|
+
* @param {boolean} rerender - Optional parameter indicating whether to rerender the table after setting the selection model. Default value is false.
|
|
2130
|
+
*
|
|
2131
|
+
* @return {void} - This method does not return any value.
|
|
2132
|
+
*/
|
|
2133
|
+
setSelectionModel(e, t = !1) {
|
|
2134
|
+
const o = () => e;
|
|
2135
|
+
this.tableOptions.getSelectionModel = o, this.getSelectionModel = o, this.selectionService.getSelectionModel = o, t && this.repaint();
|
|
2136
|
+
}
|
|
2085
2137
|
}
|
|
2086
2138
|
class ge {
|
|
2087
2139
|
}
|
|
@@ -2351,7 +2403,7 @@ class X {
|
|
|
2351
2403
|
return o;
|
|
2352
2404
|
}
|
|
2353
2405
|
}
|
|
2354
|
-
class
|
|
2406
|
+
class H {
|
|
2355
2407
|
constructor(e = 34, t = 34, o = 34) {
|
|
2356
2408
|
this.header = e, this.body = t, this.footer = o;
|
|
2357
2409
|
}
|
|
@@ -2362,7 +2414,7 @@ class f {
|
|
|
2362
2414
|
}
|
|
2363
2415
|
}
|
|
2364
2416
|
const We = () => !0, oe = () => !1;
|
|
2365
|
-
class
|
|
2417
|
+
class V {
|
|
2366
2418
|
constructor(e, t, o = new f(100, "px"), s = new T(), i = new T(), r = new f(100, "px"), l = new f(100, "px"), n, d, a, c, u, m, b, w, g = () => this.visible) {
|
|
2367
2419
|
this.property = e, this.headerLabel = t, this.width = o, this.classes = s, this.rendererMap = i, this.minWidth = r, this.maxWidth = l, this.sortable = n, this.sortComparator = d, this.sortState = a, this.sortStatesOrder = c, this.sortIconVisible = u, this.editable = m, this.getEditRenderer = b, this.editInputPipe = w, this.isVisible = g, this.visible = !0;
|
|
2368
2420
|
}
|
|
@@ -2383,7 +2435,7 @@ class H {
|
|
|
2383
2435
|
e.bodyClasses,
|
|
2384
2436
|
e.footerClasses
|
|
2385
2437
|
), s = e.sortIconVisible ?? e.sortable ?? oe, i = e.editable ?? e.editable ?? oe, r = e.isVisible ?? e.isVisible ?? We;
|
|
2386
|
-
return new
|
|
2438
|
+
return new V(
|
|
2387
2439
|
e.property ?? "",
|
|
2388
2440
|
e.headerLabel ?? "",
|
|
2389
2441
|
e.width ?? new f(100, "px"),
|
|
@@ -2822,7 +2874,7 @@ class Ne {
|
|
|
2822
2874
|
}
|
|
2823
2875
|
}
|
|
2824
2876
|
class N {
|
|
2825
|
-
constructor(e, t, o, s = 0, i = 0, r = !1, l = new
|
|
2877
|
+
constructor(e, t, o, s = 0, i = 0, r = !1, l = new H(), n = [], d = [], a = -1, c = 0, u = 400, m = () => {
|
|
2826
2878
|
}) {
|
|
2827
2879
|
var b, w, g, p;
|
|
2828
2880
|
this.headerAreaModel = e, this.bodyAreaModel = t, this.footerAreaModel = o, this.fixedLeftColumnCount = s, this.fixedRightColumnCount = i, this.rowCheckboxVisible = r, this.defaultRowHeights = l, this.columnDefs = n, this.columnSizes = d, this.overridingColumnWidth = a, this.columnCount = c, this.parentSize = u, this.getSelectionModel = m, this.rowCount = 0, this.contentHeightInPx = 0, this.contentWidthInPx = 0, this.padding = new le(0, 0, 0, 0), this.xPositions = [], e.areaIdent = "header", t.areaIdent = "body", o.areaIdent = "footer", this.columnCount || ((b = this.columnDefs) != null && b.length ? this.columnCount = this.columnDefs.length : (w = this.columnSizes) != null && w.length && (this.columnCount = (g = this.columnSizes) == null ? void 0 : g.length)), (p = this.columnDefs) != null && p.length && fe(this.columnDefs[0]) && !t.rowSelectionModel && (t.rowSelectionModel = new Ne());
|
|
@@ -3240,7 +3292,7 @@ class L {
|
|
|
3240
3292
|
if ((t = e.tableOptions) != null && t.defaultRowHeights)
|
|
3241
3293
|
e.defaultRowHeights = e.tableOptions.defaultRowHeights;
|
|
3242
3294
|
else {
|
|
3243
|
-
if (e.defaultRowHeights = new
|
|
3295
|
+
if (e.defaultRowHeights = new H(), e.headerAreaModel && "defaultRowHeight" in e.headerAreaModel) {
|
|
3244
3296
|
const g = e.headerAreaModel.defaultRowHeight;
|
|
3245
3297
|
g > -1 && (e.defaultRowHeights.header = g);
|
|
3246
3298
|
}
|
|
@@ -3253,7 +3305,7 @@ class L {
|
|
|
3253
3305
|
g > -1 && (e.defaultRowHeights.footer = g);
|
|
3254
3306
|
}
|
|
3255
3307
|
}
|
|
3256
|
-
if (e.columnDefs === void 0 && ((o = e.properties) != null && o.length ? e.columnDefs = e.properties.map((g) => new
|
|
3308
|
+
if (e.columnDefs === void 0 && ((o = e.properties) != null && o.length ? e.columnDefs = e.properties.map((g) => new V(g, g.toUpperCase(), se)) : (s = e.rows) != null && s.length ? e.columnDefs = Object.keys(e.rows[0]).map((g) => new V(g, g.toUpperCase(), se)) : e.columnDefs = []), e.columnCount === void 0 && ((i = e.columnDefs) != null && i.length ? e.columnCount = e.columnDefs.length : (r = e.headerData) != null && r.length ? e.columnCount = e.headerData[0].length : (l = e.columnSizes) != null && l.length ? e.columnCount = (n = e.columnSizes) == null ? void 0 : n.length : console.warn('Property "columnCount" is missing and cannot be derived from other properties.')), e.headerAreaModel || ((d = e.headerData) != null && d.length ? e.headerAreaModel = new D(
|
|
3257
3309
|
"header",
|
|
3258
3310
|
e.headerData,
|
|
3259
3311
|
e.defaultRowHeights.header,
|
|
@@ -3356,12 +3408,12 @@ class L {
|
|
|
3356
3408
|
e.fixedLeftColumnCount ?? 0,
|
|
3357
3409
|
e.fixedRightColumnCount ?? 0,
|
|
3358
3410
|
t,
|
|
3359
|
-
e.defaultRowHeights ?? new
|
|
3411
|
+
e.defaultRowHeights ?? new H(),
|
|
3360
3412
|
e.columnDefs ?? [],
|
|
3361
3413
|
e.columnSizes ?? []
|
|
3362
3414
|
);
|
|
3363
3415
|
}
|
|
3364
|
-
static createByAreaModels(e = new _(), t, o = new _(), s = 0, i = 0, r = !1, l = new
|
|
3416
|
+
static createByAreaModels(e = new _(), t, o = new _(), s = 0, i = 0, r = !1, l = new H(), n, d = [], a = -1, c) {
|
|
3365
3417
|
return new N(
|
|
3366
3418
|
e,
|
|
3367
3419
|
t,
|
|
@@ -3391,7 +3443,7 @@ class L {
|
|
|
3391
3443
|
e.columnCount ?? 0
|
|
3392
3444
|
);
|
|
3393
3445
|
}
|
|
3394
|
-
static createByObjectArray(e, t = [], o = [], s = 0, i = 0, r = !1, l = new
|
|
3446
|
+
static createByObjectArray(e, t = [], o = [], s = 0, i = 0, r = !1, l = new H(), n, d = []) {
|
|
3395
3447
|
let a;
|
|
3396
3448
|
t != null && t.length ? a = new D("header", t, l.header, n) : n != null && n.length ? a = new D("header", [n.map((m) => m.headerLabel)], l.header, n) : a = new _();
|
|
3397
3449
|
const c = o ? new D("footer", o, l.footer, n) : new _(), u = new ne("body", e, n, l.body);
|
|
@@ -3514,12 +3566,12 @@ class Ot {
|
|
|
3514
3566
|
);
|
|
3515
3567
|
}
|
|
3516
3568
|
}
|
|
3517
|
-
class
|
|
3569
|
+
class Ht {
|
|
3518
3570
|
constructor(e = "down", t) {
|
|
3519
3571
|
this.status = e, this.originalEvent = t;
|
|
3520
3572
|
}
|
|
3521
3573
|
}
|
|
3522
|
-
class
|
|
3574
|
+
class Vt {
|
|
3523
3575
|
constructor(e, t, o, s, i = {}) {
|
|
3524
3576
|
this.area = e, this.rowIndex = t, this.columnIndex = o, this.value = s, this.cssClasses = i;
|
|
3525
3577
|
}
|
|
@@ -3648,7 +3700,7 @@ class I {
|
|
|
3648
3700
|
static buildColumnDefs(e, t = []) {
|
|
3649
3701
|
for (const o of e)
|
|
3650
3702
|
o.property && t.push(
|
|
3651
|
-
|
|
3703
|
+
V.create({
|
|
3652
3704
|
property: o.property,
|
|
3653
3705
|
headerLabel: o.data ? o.data : o.property,
|
|
3654
3706
|
isVisible: () => typeof o.isVisible == "function" ? o.isVisible() : !0
|
|
@@ -4111,7 +4163,27 @@ class to {
|
|
|
4111
4163
|
}
|
|
4112
4164
|
}
|
|
4113
4165
|
}
|
|
4114
|
-
|
|
4166
|
+
class oo {
|
|
4167
|
+
render(e, t, o, s, i, r, l) {
|
|
4168
|
+
if (r) {
|
|
4169
|
+
e.innerHTML = `
|
|
4170
|
+
<div
|
|
4171
|
+
class="ge-table-label-div"
|
|
4172
|
+
data-row-index=${t}"
|
|
4173
|
+
data-col-index="${o}"
|
|
4174
|
+
data-area="${s}"
|
|
4175
|
+
style="position: relative; background: transparent; width: 100%; height: 100%;">
|
|
4176
|
+
<div
|
|
4177
|
+
class="ge-table-label"
|
|
4178
|
+
data-row-index="${t}"
|
|
4179
|
+
data-col-index="${o}"
|
|
4180
|
+
data-area="${s}">${r}</div></div>`;
|
|
4181
|
+
const n = Number(r);
|
|
4182
|
+
n > 0 ? l.addClass(e, "ge-positive-text-color") : n < 0 && l.addClass(e, "ge-negative-text-color");
|
|
4183
|
+
}
|
|
4184
|
+
}
|
|
4185
|
+
}
|
|
4186
|
+
const so = function(h, e, t) {
|
|
4115
4187
|
return h ? Number(h) : "";
|
|
4116
4188
|
};
|
|
4117
4189
|
class pe {
|
|
@@ -4148,7 +4220,7 @@ class pe {
|
|
|
4148
4220
|
}
|
|
4149
4221
|
}
|
|
4150
4222
|
}
|
|
4151
|
-
class
|
|
4223
|
+
class io {
|
|
4152
4224
|
constructor(e, t, o) {
|
|
4153
4225
|
this.r = e, this.g = t, this.b = o;
|
|
4154
4226
|
}
|
|
@@ -4170,7 +4242,7 @@ class W {
|
|
|
4170
4242
|
return e < t.middleValue ? W.getTwoColorGradientRGB(e, new de(t.minValue, t.minColor, t.middleValue, t.middleColor)) : e > t.middleValue ? W.getTwoColorGradientRGB(e, new de(t.middleValue, t.middleColor, t.maxValue, t.maxColor)) : `rgb(${t.middleColor.r}, ${t.middleColor.g}, ${t.middleColor.b})`;
|
|
4171
4243
|
}
|
|
4172
4244
|
}
|
|
4173
|
-
class
|
|
4245
|
+
class ro {
|
|
4174
4246
|
constructor(e, t, o, s, i, r) {
|
|
4175
4247
|
this.minValue = e, this.minColor = t, this.middleValue = o, this.middleColor = s, this.maxValue = i, this.maxColor = r;
|
|
4176
4248
|
}
|
|
@@ -4190,7 +4262,7 @@ export {
|
|
|
4190
4262
|
Ke as CellGroup,
|
|
4191
4263
|
Ye as CellGroupExt,
|
|
4192
4264
|
Ue as CellGroupExtCellRenderer,
|
|
4193
|
-
|
|
4265
|
+
R as CellRange,
|
|
4194
4266
|
I as CellgroupFactory,
|
|
4195
4267
|
jt as CheckboxBooleanPropertyCellRenderer,
|
|
4196
4268
|
ae as CheckboxCellRenderer,
|
|
@@ -4199,23 +4271,23 @@ export {
|
|
|
4199
4271
|
kt as ChunkData,
|
|
4200
4272
|
Ee as ColAndRowspanModel,
|
|
4201
4273
|
Ce as CollapsedExpandedData,
|
|
4202
|
-
|
|
4203
|
-
|
|
4274
|
+
io as ColorRgb,
|
|
4275
|
+
V as ColumnDef,
|
|
4204
4276
|
me as ConvenienceDomService,
|
|
4205
4277
|
ge as CssVars,
|
|
4206
4278
|
Kt as DateToIntlDDMMYYYYCellRenderer,
|
|
4207
4279
|
Xt as DateToIsoCellRenderer,
|
|
4208
4280
|
Yt as DateToLocaleDateCellRenderer,
|
|
4209
4281
|
Qt as DateToTecCellRenderer,
|
|
4210
|
-
|
|
4282
|
+
H as DefaultRowHeights,
|
|
4211
4283
|
Ae as EleScope,
|
|
4212
4284
|
ee as EventAdapter,
|
|
4213
4285
|
oe as FalseFn,
|
|
4214
|
-
|
|
4286
|
+
He as FocusModel,
|
|
4215
4287
|
Te as GeCellIndices,
|
|
4216
4288
|
W as GeCssColorUtil,
|
|
4217
4289
|
Nt as GeFilterService,
|
|
4218
|
-
|
|
4290
|
+
Ht as GeKeyEvent,
|
|
4219
4291
|
q as GeModelChangeEvent,
|
|
4220
4292
|
K as GeMouseEvent,
|
|
4221
4293
|
$ as GeoData,
|
|
@@ -4231,6 +4303,7 @@ export {
|
|
|
4231
4303
|
Zt as NumberCellRenderer,
|
|
4232
4304
|
$e as OsxShortcutActionIdMapping,
|
|
4233
4305
|
le as Padding,
|
|
4306
|
+
oo as PositiveAndNegativeNumberRenderer,
|
|
4234
4307
|
to as ProgressBarCellRenderer,
|
|
4235
4308
|
Me as RenderScope,
|
|
4236
4309
|
zt as Renderer,
|
|
@@ -4248,13 +4321,13 @@ export {
|
|
|
4248
4321
|
ye as StoreStateScrollPosService,
|
|
4249
4322
|
Re as StoreStateSortingService,
|
|
4250
4323
|
xe as TableApi,
|
|
4251
|
-
|
|
4324
|
+
Vt as TableCellUpdateEvent,
|
|
4252
4325
|
L as TableFactory,
|
|
4253
4326
|
N as TableModel,
|
|
4254
4327
|
Mt as TableModelAndOptions,
|
|
4255
4328
|
j as TableOptions,
|
|
4256
4329
|
ue as TableScope,
|
|
4257
|
-
|
|
4330
|
+
ro as ThreeColorGradientArg,
|
|
4258
4331
|
re as TreeCheckboxModel,
|
|
4259
4332
|
X as TreeFactory,
|
|
4260
4333
|
he as TreeOptions,
|
|
@@ -4272,7 +4345,7 @@ export {
|
|
|
4272
4345
|
Dt as bodyCenter,
|
|
4273
4346
|
Tt as bodyLeft,
|
|
4274
4347
|
_t as bodyRight,
|
|
4275
|
-
|
|
4348
|
+
so as editInputPipeForNumber,
|
|
4276
4349
|
Y as getAreaIdentByString,
|
|
4277
4350
|
z as isAreaModelTree,
|
|
4278
4351
|
fe as isCheckboxColumnDef,
|