ag-grid-community 32.3.2 → 32.3.4
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/ag-grid-community.js +84 -62
- package/dist/ag-grid-community.min.js +1 -1
- package/dist/ag-grid-community.min.noStyle.js +1 -1
- package/dist/ag-grid-community.noStyle.js +84 -62
- package/dist/package/main.cjs.js +84 -62
- package/dist/package/main.cjs.min.js +11 -11
- package/dist/package/main.esm.min.mjs +45 -45
- package/dist/package/main.esm.mjs +84 -62
- package/dist/package/package.json +8 -8
- package/dist/types/client-side-row-model/version.d.ts +1 -1
- package/dist/types/core/gridBodyComp/rowContainer/rowContainerComp.d.ts +2 -1
- package/dist/types/core/rendering/row/rowComp.d.ts +1 -1
- package/dist/types/core/version.d.ts +1 -1
- package/dist/types/csv-export/version.d.ts +1 -1
- package/dist/types/infinite-row-model/version.d.ts +1 -1
- package/dist/types/theming/version.d.ts +1 -1
- package/package.json +8 -8
|
@@ -1929,7 +1929,7 @@ var SortStage = class extends import_core8.BeanStub {
|
|
|
1929
1929
|
};
|
|
1930
1930
|
|
|
1931
1931
|
// community-modules/client-side-row-model/src/version.ts
|
|
1932
|
-
var VERSION = "32.3.
|
|
1932
|
+
var VERSION = "32.3.4";
|
|
1933
1933
|
|
|
1934
1934
|
// community-modules/client-side-row-model/src/clientSideRowModelModule.ts
|
|
1935
1935
|
var ClientSideRowModelCoreModule = (0, import_core9._defineModule)({
|
|
@@ -9476,16 +9476,16 @@ function _ensureDomOrder(eContainer, eChild, eChildBefore) {
|
|
|
9476
9476
|
if (eChildBefore && eChildBefore.nextSibling === eChild) {
|
|
9477
9477
|
return;
|
|
9478
9478
|
}
|
|
9479
|
-
if (
|
|
9479
|
+
if (!eContainer.firstChild) {
|
|
9480
|
+
eContainer.appendChild(eChild);
|
|
9481
|
+
} else if (eChildBefore) {
|
|
9480
9482
|
if (eChildBefore.nextSibling) {
|
|
9481
9483
|
eContainer.insertBefore(eChild, eChildBefore.nextSibling);
|
|
9482
9484
|
} else {
|
|
9483
9485
|
eContainer.appendChild(eChild);
|
|
9484
9486
|
}
|
|
9485
|
-
} else {
|
|
9486
|
-
|
|
9487
|
-
eContainer.insertAdjacentElement("afterbegin", eChild);
|
|
9488
|
-
}
|
|
9487
|
+
} else if (eContainer.firstChild && eContainer.firstChild !== eChild) {
|
|
9488
|
+
eContainer.insertAdjacentElement("afterbegin", eChild);
|
|
9489
9489
|
}
|
|
9490
9490
|
}
|
|
9491
9491
|
function _setDomChildOrder(eContainer, orderedChildren) {
|
|
@@ -9497,17 +9497,6 @@ function _setDomChildOrder(eContainer, orderedChildren) {
|
|
|
9497
9497
|
}
|
|
9498
9498
|
}
|
|
9499
9499
|
}
|
|
9500
|
-
function _insertWithDomOrder(eContainer, eToInsert, eChildBefore) {
|
|
9501
|
-
if (eChildBefore) {
|
|
9502
|
-
eChildBefore.insertAdjacentElement("afterend", eToInsert);
|
|
9503
|
-
} else {
|
|
9504
|
-
if (eContainer.firstChild) {
|
|
9505
|
-
eContainer.insertAdjacentElement("afterbegin", eToInsert);
|
|
9506
|
-
} else {
|
|
9507
|
-
eContainer.appendChild(eToInsert);
|
|
9508
|
-
}
|
|
9509
|
-
}
|
|
9510
|
-
}
|
|
9511
9500
|
function _addStylesToElement(eElement, styles) {
|
|
9512
9501
|
if (!styles) {
|
|
9513
9502
|
return;
|
|
@@ -19864,7 +19853,7 @@ function _defineModule(definition) {
|
|
|
19864
19853
|
}
|
|
19865
19854
|
|
|
19866
19855
|
// community-modules/core/src/version.ts
|
|
19867
|
-
var VERSION = "32.3.
|
|
19856
|
+
var VERSION = "32.3.4";
|
|
19868
19857
|
|
|
19869
19858
|
// community-modules/core/src/filter/columnFilterApi.ts
|
|
19870
19859
|
function isColumnFilterPresent(beans) {
|
|
@@ -28507,31 +28496,45 @@ var _RowCtrl = class _RowCtrl extends BeanStub {
|
|
|
28507
28496
|
list: [],
|
|
28508
28497
|
map: {}
|
|
28509
28498
|
};
|
|
28510
|
-
const addCell = (colInstanceId, cellCtrl) => {
|
|
28511
|
-
|
|
28499
|
+
const addCell = (colInstanceId, cellCtrl, index) => {
|
|
28500
|
+
if (index != null) {
|
|
28501
|
+
res.list.splice(index, 0, cellCtrl);
|
|
28502
|
+
} else {
|
|
28503
|
+
res.list.push(cellCtrl);
|
|
28504
|
+
}
|
|
28512
28505
|
res.map[colInstanceId] = cellCtrl;
|
|
28513
28506
|
};
|
|
28514
|
-
|
|
28507
|
+
const colsFromPrev = [];
|
|
28508
|
+
for (const col of cols) {
|
|
28515
28509
|
const colInstanceId = col.getInstanceId();
|
|
28516
28510
|
let cellCtrl = prev.map[colInstanceId];
|
|
28517
28511
|
if (!cellCtrl) {
|
|
28518
28512
|
cellCtrl = new CellCtrl(col, this.rowNode, this.beans, this);
|
|
28519
28513
|
}
|
|
28520
28514
|
addCell(colInstanceId, cellCtrl);
|
|
28521
|
-
}
|
|
28522
|
-
prev.list
|
|
28515
|
+
}
|
|
28516
|
+
for (const prevCellCtrl of prev.list) {
|
|
28523
28517
|
const colInstanceId = prevCellCtrl.getColumn().getInstanceId();
|
|
28524
28518
|
const cellInResult = res.map[colInstanceId] != null;
|
|
28525
28519
|
if (cellInResult) {
|
|
28526
|
-
|
|
28520
|
+
continue;
|
|
28527
28521
|
}
|
|
28528
28522
|
const keepCell = !this.isCellEligibleToBeRemoved(prevCellCtrl, pinned);
|
|
28529
28523
|
if (keepCell) {
|
|
28530
|
-
|
|
28531
|
-
|
|
28524
|
+
colsFromPrev.push([colInstanceId, prevCellCtrl]);
|
|
28525
|
+
} else {
|
|
28526
|
+
prevCellCtrl.destroy();
|
|
28532
28527
|
}
|
|
28533
|
-
|
|
28534
|
-
|
|
28528
|
+
}
|
|
28529
|
+
if (colsFromPrev.length) {
|
|
28530
|
+
for (const [colInstanceId, cellCtrl] of colsFromPrev) {
|
|
28531
|
+
const index = res.list.findIndex(
|
|
28532
|
+
(ctrl) => ctrl.getColumn().getLeft() > cellCtrl.getColumn().getLeft()
|
|
28533
|
+
);
|
|
28534
|
+
const normalisedIndex = index === -1 ? void 0 : Math.max(index - 1, 0);
|
|
28535
|
+
addCell(colInstanceId, cellCtrl, normalisedIndex);
|
|
28536
|
+
}
|
|
28537
|
+
}
|
|
28535
28538
|
return res;
|
|
28536
28539
|
}
|
|
28537
28540
|
updateColumnListsImpl(useFlushSync) {
|
|
@@ -30970,7 +30973,7 @@ var RowComp = class extends Component {
|
|
|
30970
30973
|
this.rowCtrl = ctrl;
|
|
30971
30974
|
const rowDiv = document.createElement("div");
|
|
30972
30975
|
rowDiv.setAttribute("comp-id", `${this.getCompId()}`);
|
|
30973
|
-
|
|
30976
|
+
this.setInitialStyle(rowDiv, containerType);
|
|
30974
30977
|
this.setTemplateFromElement(rowDiv);
|
|
30975
30978
|
const eGui = this.getGui();
|
|
30976
30979
|
const style = eGui.style;
|
|
@@ -30995,9 +30998,16 @@ var RowComp = class extends Component {
|
|
|
30995
30998
|
ctrl.unsetComp(containerType);
|
|
30996
30999
|
});
|
|
30997
31000
|
}
|
|
30998
|
-
|
|
31001
|
+
setInitialStyle(container, containerType) {
|
|
30999
31002
|
const transform = this.rowCtrl.getInitialTransform(containerType);
|
|
31000
|
-
|
|
31003
|
+
if (transform) {
|
|
31004
|
+
container.style.setProperty("transform", transform);
|
|
31005
|
+
} else {
|
|
31006
|
+
const top = this.rowCtrl.getInitialRowTop(containerType);
|
|
31007
|
+
if (top) {
|
|
31008
|
+
container.style.setProperty("top", top);
|
|
31009
|
+
}
|
|
31010
|
+
}
|
|
31001
31011
|
}
|
|
31002
31012
|
showFullWidth(compDetails) {
|
|
31003
31013
|
const callback = (cellRenderer) => {
|
|
@@ -31094,11 +31104,11 @@ function templateFactory(options) {
|
|
|
31094
31104
|
if (options.type === "center") {
|
|
31095
31105
|
res = /* html */
|
|
31096
31106
|
`<div class="${options.viewport}" data-ref="eViewport" role="presentation">
|
|
31097
|
-
<div class="${options.container}" data-ref="eContainer"></div>
|
|
31107
|
+
<div class="${options.container}" data-ref="eContainer" role="rowgroup"></div>
|
|
31098
31108
|
</div>`;
|
|
31099
31109
|
} else {
|
|
31100
31110
|
res = /* html */
|
|
31101
|
-
`<div class="${options.container}" data-ref="eContainer"></div>`;
|
|
31111
|
+
`<div class="${options.container}" data-ref="eContainer" role="rowgroup"></div>`;
|
|
31102
31112
|
}
|
|
31103
31113
|
return res;
|
|
31104
31114
|
}
|
|
@@ -31132,47 +31142,59 @@ var RowContainerComp = class extends Component {
|
|
|
31132
31142
|
destroy() {
|
|
31133
31143
|
this.setRowCtrls([]);
|
|
31134
31144
|
super.destroy();
|
|
31145
|
+
this.lastPlacedElement = null;
|
|
31135
31146
|
}
|
|
31136
31147
|
setRowCtrls(rowCtrls) {
|
|
31137
|
-
const
|
|
31148
|
+
const { rowComps, beans, options } = this;
|
|
31149
|
+
const oldRows = { ...rowComps };
|
|
31138
31150
|
this.rowComps = {};
|
|
31139
31151
|
this.lastPlacedElement = null;
|
|
31140
|
-
const
|
|
31141
|
-
|
|
31152
|
+
const orderedRows = [];
|
|
31153
|
+
for (const rowCtrl of rowCtrls) {
|
|
31154
|
+
const instanceId = rowCtrl.instanceId;
|
|
31142
31155
|
const existingRowComp = oldRows[instanceId];
|
|
31156
|
+
let rowComp;
|
|
31143
31157
|
if (existingRowComp) {
|
|
31144
|
-
|
|
31158
|
+
rowComp = existingRowComp;
|
|
31145
31159
|
delete oldRows[instanceId];
|
|
31146
|
-
this.ensureDomOrder(existingRowComp.getGui());
|
|
31147
31160
|
} else {
|
|
31148
|
-
if (!
|
|
31149
|
-
|
|
31161
|
+
if (!rowCtrl.getRowNode().displayed) {
|
|
31162
|
+
continue;
|
|
31150
31163
|
}
|
|
31151
|
-
|
|
31152
|
-
this.rowComps[instanceId] = rowComp;
|
|
31153
|
-
this.appendRow(rowComp.getGui());
|
|
31164
|
+
rowComp = new RowComp(rowCtrl, beans, options.type);
|
|
31154
31165
|
}
|
|
31155
|
-
|
|
31156
|
-
|
|
31157
|
-
|
|
31158
|
-
|
|
31159
|
-
|
|
31160
|
-
});
|
|
31161
|
-
_setAriaRole(this.eContainer, "rowgroup");
|
|
31166
|
+
this.rowComps[instanceId] = rowComp;
|
|
31167
|
+
orderedRows.push([rowComp, !existingRowComp]);
|
|
31168
|
+
}
|
|
31169
|
+
this.removeOldRows(Object.values(oldRows));
|
|
31170
|
+
this.addRowNodes(orderedRows);
|
|
31162
31171
|
}
|
|
31163
|
-
|
|
31164
|
-
|
|
31165
|
-
|
|
31166
|
-
|
|
31167
|
-
|
|
31172
|
+
addRowNodes(rows) {
|
|
31173
|
+
const { domOrder, eContainer } = this;
|
|
31174
|
+
for (const [rowComp, isNew] of rows) {
|
|
31175
|
+
const eGui = rowComp.getGui();
|
|
31176
|
+
if (!domOrder) {
|
|
31177
|
+
if (isNew) {
|
|
31178
|
+
eContainer.appendChild(eGui);
|
|
31179
|
+
}
|
|
31180
|
+
} else {
|
|
31181
|
+
this.ensureDomOrder(eGui);
|
|
31182
|
+
}
|
|
31183
|
+
}
|
|
31184
|
+
}
|
|
31185
|
+
removeOldRows(rowComps) {
|
|
31186
|
+
const { eContainer } = this;
|
|
31187
|
+
for (const oldRowComp of rowComps) {
|
|
31188
|
+
eContainer.removeChild(oldRowComp.getGui());
|
|
31189
|
+
oldRowComp.destroy();
|
|
31168
31190
|
}
|
|
31169
|
-
this.lastPlacedElement = element;
|
|
31170
31191
|
}
|
|
31171
31192
|
ensureDomOrder(eRow) {
|
|
31172
|
-
if (this.domOrder) {
|
|
31173
|
-
|
|
31174
|
-
this.lastPlacedElement = eRow;
|
|
31193
|
+
if (!this.domOrder) {
|
|
31194
|
+
return;
|
|
31175
31195
|
}
|
|
31196
|
+
_ensureDomOrder(this.eContainer, eRow, this.lastPlacedElement);
|
|
31197
|
+
this.lastPlacedElement = eRow;
|
|
31176
31198
|
}
|
|
31177
31199
|
};
|
|
31178
31200
|
var RowContainerSelector = {
|
|
@@ -47925,7 +47947,7 @@ var GridSerializer = class extends import_core6.BeanStub {
|
|
|
47925
47947
|
}
|
|
47926
47948
|
if (skipRowGroups && !isTreeData) {
|
|
47927
47949
|
columnsToExport = columnsToExport.filter(
|
|
47928
|
-
(column) => (0, import_core6.isColumnGroupAutoCol)(column)
|
|
47950
|
+
(column) => !(0, import_core6.isColumnGroupAutoCol)(column) && !(0, import_core6.isColumnControlsCol)(column)
|
|
47929
47951
|
);
|
|
47930
47952
|
}
|
|
47931
47953
|
return columnsToExport;
|
|
@@ -47993,7 +48015,7 @@ var GridSerializer = class extends import_core6.BeanStub {
|
|
|
47993
48015
|
};
|
|
47994
48016
|
|
|
47995
48017
|
// community-modules/csv-export/src/version.ts
|
|
47996
|
-
var VERSION = "32.3.
|
|
48018
|
+
var VERSION = "32.3.4";
|
|
47997
48019
|
|
|
47998
48020
|
// community-modules/csv-export/src/csvExportModule.ts
|
|
47999
48021
|
var CsvExportCoreModule = (0, import_core7._defineModule)({
|
|
@@ -49250,7 +49272,7 @@ function getInfiniteRowCount(beans) {
|
|
|
49250
49272
|
}
|
|
49251
49273
|
|
|
49252
49274
|
// community-modules/infinite-row-model/src/version.ts
|
|
49253
|
-
var VERSION = "32.3.
|
|
49275
|
+
var VERSION = "32.3.4";
|
|
49254
49276
|
|
|
49255
49277
|
// community-modules/infinite-row-model/src/infiniteRowModelModule.ts
|
|
49256
49278
|
var InfiniteRowModelCoreModule = (0, import_core4._defineModule)({
|
package/dist/package/main.cjs.js
CHANGED
|
@@ -7545,16 +7545,16 @@ function _ensureDomOrder(eContainer, eChild, eChildBefore) {
|
|
|
7545
7545
|
if (eChildBefore && eChildBefore.nextSibling === eChild) {
|
|
7546
7546
|
return;
|
|
7547
7547
|
}
|
|
7548
|
-
if (
|
|
7548
|
+
if (!eContainer.firstChild) {
|
|
7549
|
+
eContainer.appendChild(eChild);
|
|
7550
|
+
} else if (eChildBefore) {
|
|
7549
7551
|
if (eChildBefore.nextSibling) {
|
|
7550
7552
|
eContainer.insertBefore(eChild, eChildBefore.nextSibling);
|
|
7551
7553
|
} else {
|
|
7552
7554
|
eContainer.appendChild(eChild);
|
|
7553
7555
|
}
|
|
7554
|
-
} else {
|
|
7555
|
-
|
|
7556
|
-
eContainer.insertAdjacentElement("afterbegin", eChild);
|
|
7557
|
-
}
|
|
7556
|
+
} else if (eContainer.firstChild && eContainer.firstChild !== eChild) {
|
|
7557
|
+
eContainer.insertAdjacentElement("afterbegin", eChild);
|
|
7558
7558
|
}
|
|
7559
7559
|
}
|
|
7560
7560
|
function _setDomChildOrder(eContainer, orderedChildren) {
|
|
@@ -7566,17 +7566,6 @@ function _setDomChildOrder(eContainer, orderedChildren) {
|
|
|
7566
7566
|
}
|
|
7567
7567
|
}
|
|
7568
7568
|
}
|
|
7569
|
-
function _insertWithDomOrder(eContainer, eToInsert, eChildBefore) {
|
|
7570
|
-
if (eChildBefore) {
|
|
7571
|
-
eChildBefore.insertAdjacentElement("afterend", eToInsert);
|
|
7572
|
-
} else {
|
|
7573
|
-
if (eContainer.firstChild) {
|
|
7574
|
-
eContainer.insertAdjacentElement("afterbegin", eToInsert);
|
|
7575
|
-
} else {
|
|
7576
|
-
eContainer.appendChild(eToInsert);
|
|
7577
|
-
}
|
|
7578
|
-
}
|
|
7579
|
-
}
|
|
7580
7569
|
function _addStylesToElement(eElement, styles) {
|
|
7581
7570
|
if (!styles) {
|
|
7582
7571
|
return;
|
|
@@ -17933,7 +17922,7 @@ function _defineModule(definition) {
|
|
|
17933
17922
|
}
|
|
17934
17923
|
|
|
17935
17924
|
// community-modules/core/src/version.ts
|
|
17936
|
-
var VERSION = "32.3.
|
|
17925
|
+
var VERSION = "32.3.4";
|
|
17937
17926
|
|
|
17938
17927
|
// community-modules/core/src/filter/columnFilterApi.ts
|
|
17939
17928
|
function isColumnFilterPresent(beans) {
|
|
@@ -26576,31 +26565,45 @@ var _RowCtrl = class _RowCtrl extends BeanStub {
|
|
|
26576
26565
|
list: [],
|
|
26577
26566
|
map: {}
|
|
26578
26567
|
};
|
|
26579
|
-
const addCell = (colInstanceId, cellCtrl) => {
|
|
26580
|
-
|
|
26568
|
+
const addCell = (colInstanceId, cellCtrl, index) => {
|
|
26569
|
+
if (index != null) {
|
|
26570
|
+
res.list.splice(index, 0, cellCtrl);
|
|
26571
|
+
} else {
|
|
26572
|
+
res.list.push(cellCtrl);
|
|
26573
|
+
}
|
|
26581
26574
|
res.map[colInstanceId] = cellCtrl;
|
|
26582
26575
|
};
|
|
26583
|
-
|
|
26576
|
+
const colsFromPrev = [];
|
|
26577
|
+
for (const col of cols) {
|
|
26584
26578
|
const colInstanceId = col.getInstanceId();
|
|
26585
26579
|
let cellCtrl = prev.map[colInstanceId];
|
|
26586
26580
|
if (!cellCtrl) {
|
|
26587
26581
|
cellCtrl = new CellCtrl(col, this.rowNode, this.beans, this);
|
|
26588
26582
|
}
|
|
26589
26583
|
addCell(colInstanceId, cellCtrl);
|
|
26590
|
-
}
|
|
26591
|
-
prev.list
|
|
26584
|
+
}
|
|
26585
|
+
for (const prevCellCtrl of prev.list) {
|
|
26592
26586
|
const colInstanceId = prevCellCtrl.getColumn().getInstanceId();
|
|
26593
26587
|
const cellInResult = res.map[colInstanceId] != null;
|
|
26594
26588
|
if (cellInResult) {
|
|
26595
|
-
|
|
26589
|
+
continue;
|
|
26596
26590
|
}
|
|
26597
26591
|
const keepCell = !this.isCellEligibleToBeRemoved(prevCellCtrl, pinned);
|
|
26598
26592
|
if (keepCell) {
|
|
26599
|
-
|
|
26600
|
-
|
|
26593
|
+
colsFromPrev.push([colInstanceId, prevCellCtrl]);
|
|
26594
|
+
} else {
|
|
26595
|
+
prevCellCtrl.destroy();
|
|
26601
26596
|
}
|
|
26602
|
-
|
|
26603
|
-
|
|
26597
|
+
}
|
|
26598
|
+
if (colsFromPrev.length) {
|
|
26599
|
+
for (const [colInstanceId, cellCtrl] of colsFromPrev) {
|
|
26600
|
+
const index = res.list.findIndex(
|
|
26601
|
+
(ctrl) => ctrl.getColumn().getLeft() > cellCtrl.getColumn().getLeft()
|
|
26602
|
+
);
|
|
26603
|
+
const normalisedIndex = index === -1 ? void 0 : Math.max(index - 1, 0);
|
|
26604
|
+
addCell(colInstanceId, cellCtrl, normalisedIndex);
|
|
26605
|
+
}
|
|
26606
|
+
}
|
|
26604
26607
|
return res;
|
|
26605
26608
|
}
|
|
26606
26609
|
updateColumnListsImpl(useFlushSync) {
|
|
@@ -29039,7 +29042,7 @@ var RowComp = class extends Component {
|
|
|
29039
29042
|
this.rowCtrl = ctrl;
|
|
29040
29043
|
const rowDiv = document.createElement("div");
|
|
29041
29044
|
rowDiv.setAttribute("comp-id", `${this.getCompId()}`);
|
|
29042
|
-
|
|
29045
|
+
this.setInitialStyle(rowDiv, containerType);
|
|
29043
29046
|
this.setTemplateFromElement(rowDiv);
|
|
29044
29047
|
const eGui = this.getGui();
|
|
29045
29048
|
const style = eGui.style;
|
|
@@ -29064,9 +29067,16 @@ var RowComp = class extends Component {
|
|
|
29064
29067
|
ctrl.unsetComp(containerType);
|
|
29065
29068
|
});
|
|
29066
29069
|
}
|
|
29067
|
-
|
|
29070
|
+
setInitialStyle(container, containerType) {
|
|
29068
29071
|
const transform = this.rowCtrl.getInitialTransform(containerType);
|
|
29069
|
-
|
|
29072
|
+
if (transform) {
|
|
29073
|
+
container.style.setProperty("transform", transform);
|
|
29074
|
+
} else {
|
|
29075
|
+
const top = this.rowCtrl.getInitialRowTop(containerType);
|
|
29076
|
+
if (top) {
|
|
29077
|
+
container.style.setProperty("top", top);
|
|
29078
|
+
}
|
|
29079
|
+
}
|
|
29070
29080
|
}
|
|
29071
29081
|
showFullWidth(compDetails) {
|
|
29072
29082
|
const callback = (cellRenderer) => {
|
|
@@ -29163,11 +29173,11 @@ function templateFactory(options) {
|
|
|
29163
29173
|
if (options.type === "center") {
|
|
29164
29174
|
res = /* html */
|
|
29165
29175
|
`<div class="${options.viewport}" data-ref="eViewport" role="presentation">
|
|
29166
|
-
<div class="${options.container}" data-ref="eContainer"></div>
|
|
29176
|
+
<div class="${options.container}" data-ref="eContainer" role="rowgroup"></div>
|
|
29167
29177
|
</div>`;
|
|
29168
29178
|
} else {
|
|
29169
29179
|
res = /* html */
|
|
29170
|
-
`<div class="${options.container}" data-ref="eContainer"></div>`;
|
|
29180
|
+
`<div class="${options.container}" data-ref="eContainer" role="rowgroup"></div>`;
|
|
29171
29181
|
}
|
|
29172
29182
|
return res;
|
|
29173
29183
|
}
|
|
@@ -29201,47 +29211,59 @@ var RowContainerComp = class extends Component {
|
|
|
29201
29211
|
destroy() {
|
|
29202
29212
|
this.setRowCtrls([]);
|
|
29203
29213
|
super.destroy();
|
|
29214
|
+
this.lastPlacedElement = null;
|
|
29204
29215
|
}
|
|
29205
29216
|
setRowCtrls(rowCtrls) {
|
|
29206
|
-
const
|
|
29217
|
+
const { rowComps, beans, options } = this;
|
|
29218
|
+
const oldRows = { ...rowComps };
|
|
29207
29219
|
this.rowComps = {};
|
|
29208
29220
|
this.lastPlacedElement = null;
|
|
29209
|
-
const
|
|
29210
|
-
|
|
29221
|
+
const orderedRows = [];
|
|
29222
|
+
for (const rowCtrl of rowCtrls) {
|
|
29223
|
+
const instanceId = rowCtrl.instanceId;
|
|
29211
29224
|
const existingRowComp = oldRows[instanceId];
|
|
29225
|
+
let rowComp;
|
|
29212
29226
|
if (existingRowComp) {
|
|
29213
|
-
|
|
29227
|
+
rowComp = existingRowComp;
|
|
29214
29228
|
delete oldRows[instanceId];
|
|
29215
|
-
this.ensureDomOrder(existingRowComp.getGui());
|
|
29216
29229
|
} else {
|
|
29217
|
-
if (!
|
|
29218
|
-
|
|
29230
|
+
if (!rowCtrl.getRowNode().displayed) {
|
|
29231
|
+
continue;
|
|
29219
29232
|
}
|
|
29220
|
-
|
|
29221
|
-
this.rowComps[instanceId] = rowComp;
|
|
29222
|
-
this.appendRow(rowComp.getGui());
|
|
29233
|
+
rowComp = new RowComp(rowCtrl, beans, options.type);
|
|
29223
29234
|
}
|
|
29224
|
-
|
|
29225
|
-
|
|
29226
|
-
|
|
29227
|
-
|
|
29228
|
-
|
|
29229
|
-
});
|
|
29230
|
-
_setAriaRole(this.eContainer, "rowgroup");
|
|
29235
|
+
this.rowComps[instanceId] = rowComp;
|
|
29236
|
+
orderedRows.push([rowComp, !existingRowComp]);
|
|
29237
|
+
}
|
|
29238
|
+
this.removeOldRows(Object.values(oldRows));
|
|
29239
|
+
this.addRowNodes(orderedRows);
|
|
29231
29240
|
}
|
|
29232
|
-
|
|
29233
|
-
|
|
29234
|
-
|
|
29235
|
-
|
|
29236
|
-
|
|
29241
|
+
addRowNodes(rows) {
|
|
29242
|
+
const { domOrder, eContainer } = this;
|
|
29243
|
+
for (const [rowComp, isNew] of rows) {
|
|
29244
|
+
const eGui = rowComp.getGui();
|
|
29245
|
+
if (!domOrder) {
|
|
29246
|
+
if (isNew) {
|
|
29247
|
+
eContainer.appendChild(eGui);
|
|
29248
|
+
}
|
|
29249
|
+
} else {
|
|
29250
|
+
this.ensureDomOrder(eGui);
|
|
29251
|
+
}
|
|
29252
|
+
}
|
|
29253
|
+
}
|
|
29254
|
+
removeOldRows(rowComps) {
|
|
29255
|
+
const { eContainer } = this;
|
|
29256
|
+
for (const oldRowComp of rowComps) {
|
|
29257
|
+
eContainer.removeChild(oldRowComp.getGui());
|
|
29258
|
+
oldRowComp.destroy();
|
|
29237
29259
|
}
|
|
29238
|
-
this.lastPlacedElement = element;
|
|
29239
29260
|
}
|
|
29240
29261
|
ensureDomOrder(eRow) {
|
|
29241
|
-
if (this.domOrder) {
|
|
29242
|
-
|
|
29243
|
-
this.lastPlacedElement = eRow;
|
|
29262
|
+
if (!this.domOrder) {
|
|
29263
|
+
return;
|
|
29244
29264
|
}
|
|
29265
|
+
_ensureDomOrder(this.eContainer, eRow, this.lastPlacedElement);
|
|
29266
|
+
this.lastPlacedElement = eRow;
|
|
29245
29267
|
}
|
|
29246
29268
|
};
|
|
29247
29269
|
var RowContainerSelector = {
|
|
@@ -47214,7 +47236,7 @@ var SortStage = class extends BeanStub {
|
|
|
47214
47236
|
};
|
|
47215
47237
|
|
|
47216
47238
|
// community-modules/client-side-row-model/src/version.ts
|
|
47217
|
-
var VERSION2 = "32.3.
|
|
47239
|
+
var VERSION2 = "32.3.4";
|
|
47218
47240
|
|
|
47219
47241
|
// community-modules/client-side-row-model/src/clientSideRowModelModule.ts
|
|
47220
47242
|
var ClientSideRowModelCoreModule = _defineModule({
|
|
@@ -47841,7 +47863,7 @@ var GridSerializer = class extends BeanStub {
|
|
|
47841
47863
|
}
|
|
47842
47864
|
if (skipRowGroups && !isTreeData) {
|
|
47843
47865
|
columnsToExport = columnsToExport.filter(
|
|
47844
|
-
(column) => isColumnGroupAutoCol(column)
|
|
47866
|
+
(column) => !isColumnGroupAutoCol(column) && !isColumnControlsCol(column)
|
|
47845
47867
|
);
|
|
47846
47868
|
}
|
|
47847
47869
|
return columnsToExport;
|
|
@@ -47907,7 +47929,7 @@ var GridSerializer = class extends BeanStub {
|
|
|
47907
47929
|
});
|
|
47908
47930
|
}
|
|
47909
47931
|
};
|
|
47910
|
-
var VERSION3 = "32.3.
|
|
47932
|
+
var VERSION3 = "32.3.4";
|
|
47911
47933
|
var CsvExportCoreModule = _defineModule({
|
|
47912
47934
|
version: VERSION3,
|
|
47913
47935
|
moduleName: `${"@ag-grid-community/csv-export" /* CsvExportModule */}-core`,
|
|
@@ -49098,7 +49120,7 @@ function purgeInfiniteCache(beans) {
|
|
|
49098
49120
|
function getInfiniteRowCount(beans) {
|
|
49099
49121
|
return beans.rowModelHelperService?.getInfiniteRowModel()?.getRowCount();
|
|
49100
49122
|
}
|
|
49101
|
-
var VERSION4 = "32.3.
|
|
49123
|
+
var VERSION4 = "32.3.4";
|
|
49102
49124
|
var InfiniteRowModelCoreModule = _defineModule({
|
|
49103
49125
|
version: VERSION4,
|
|
49104
49126
|
moduleName: `${"@ag-grid-community/infinite-row-model" /* InfiniteRowModelModule */}-core`,
|