Skip to content

Commit

Permalink
Release 31.3.2 final build
Browse files Browse the repository at this point in the history
  • Loading branch information
seanlandsman committed May 15, 2024
1 parent 78437f2 commit 407bb44
Show file tree
Hide file tree
Showing 359 changed files with 3,908 additions and 5,316 deletions.
4 changes: 2 additions & 2 deletions community-modules/angular/dist/ag-grid-angular/package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "@ag-grid-community/angular",
"version": "31.3.1",
"version": "31.3.2",
"license": "MIT",
"peerDependencies": {
"@ag-grid-community/core": "31.3.1",
"@ag-grid-community/core": "31.3.2",
"@angular/common": ">= 14.0.0",
"@angular/core": ">= 14.0.0"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1775,7 +1775,7 @@ ImmutableService = __decorateClass([
], ImmutableService);

// community-modules/client-side-row-model/src/version.ts
var VERSION = "31.3.1";
var VERSION = "31.3.2";

// community-modules/client-side-row-model/src/clientSideRowModelModule.ts
var ClientSideRowModelModule = {
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -1799,7 +1799,7 @@ ImmutableService = __decorateClass([
], ImmutableService);

// community-modules/client-side-row-model/src/version.ts
var VERSION = "31.3.1";
var VERSION = "31.3.2";

// community-modules/client-side-row-model/src/clientSideRowModelModule.ts
var ClientSideRowModelModule = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "@ag-grid-community/client-side-row-model",
"version": "31.3.1",
"version": "31.3.2",
"description": "Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue",
"dependencies": {
"tslib": "^2.3.0",
"@ag-grid-community/core": "31.3.1"
"@ag-grid-community/core": "31.3.2"
},
"main": "./dist/package/main.cjs.js",
"types": "./dist/types/src/main.d.ts",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "@ag-grid-community/client-side-row-model",
"version": "31.3.1",
"version": "31.3.2",
"description": "Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue",
"dependencies": {
"tslib": "^2.3.0",
"@ag-grid-community/core": "31.3.1"
"@ag-grid-community/core": "31.3.2"
},
"main": "./src/main.js",
"types": "./dist/types/src/main.d.ts",
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export declare const VERSION = "31.3.1";
export declare const VERSION = "31.3.2";
97 changes: 58 additions & 39 deletions community-modules/core/dist/package/main.cjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -7491,7 +7491,7 @@ var _ComponentUtil = class _ComponentUtil {
});
return mergedOptions;
}
static processOnChange(changes, api) {
static processOnChange(changes, api, isVue) {
if (!changes) {
return;
}
Expand All @@ -7504,7 +7504,7 @@ var _ComponentUtil = class _ComponentUtil {
if (!hasChanges) {
return;
}
api.__internalUpdateGridOptions(gridChanges);
api.__internalUpdateGridOptions(gridChanges, true);
const event = {
type: Events.EVENT_COMPONENT_STATE_CHANGED
};
Expand Down Expand Up @@ -16056,10 +16056,10 @@ var _RowNode = class _RowNode {
this.selected = newValue;
if (this.eventService) {
this.dispatchLocalEvent(this.createLocalRowEvent(_RowNode.EVENT_ROW_SELECTED));
const sibling = this.sibling;
if (sibling && sibling.footer) {
sibling.dispatchLocalEvent(sibling.createLocalRowEvent(_RowNode.EVENT_ROW_SELECTED));
}
}
const sibling = this.sibling;
if (sibling && sibling.footer && sibling.eventService) {
sibling.dispatchLocalEvent(sibling.createLocalRowEvent(_RowNode.EVENT_ROW_SELECTED));
}
const event = __spreadProps(__spreadValues({}, this.createGlobalRowEvent(Events.EVENT_ROW_SELECTED)), {
event: e || null,
Expand Down Expand Up @@ -16450,6 +16450,7 @@ var DragAndDropService = class extends BeanStub {
this.dragSource = dragSource;
this.eventLastTime = mouseEvent;
this.dragItem = this.dragSource.getDragItem();
this.lastDropTarget = void 0;
if (this.dragSource.onDragStarted) {
this.dragSource.onDragStarted();
}
Expand Down Expand Up @@ -18647,18 +18648,20 @@ var RowDragFeature = class extends BeanStub {
if (!this.isFromThisGrid(draggingEvent)) {
return draggingEvent.dragItem.rowNodes || [];
}
const currentNode = draggingEvent.dragItem.rowNode;
const isRowDragMultiRow = this.gos.get("rowDragMultiRow");
const selectedNodes = [...this.selectionService.getSelectedNodes()].sort(
(a, b) => {
if (a.rowIndex == null || b.rowIndex == null) {
return 0;
if (isRowDragMultiRow) {
const selectedNodes = [...this.selectionService.getSelectedNodes()].sort(
(a, b) => {
if (a.rowIndex == null || b.rowIndex == null) {
return 0;
}
return this.getRowIndexNumber(a) - this.getRowIndexNumber(b);
}
return this.getRowIndexNumber(a) - this.getRowIndexNumber(b);
);
if (selectedNodes.indexOf(currentNode) !== -1) {
return selectedNodes;
}
);
const currentNode = draggingEvent.dragItem.rowNode;
if (isRowDragMultiRow && selectedNodes.indexOf(currentNode) !== -1) {
return selectedNodes;
}
return [currentNode];
}
Expand Down Expand Up @@ -20900,8 +20903,8 @@ var GridApi = class {
this.gos.updateGridOptions({ options });
}
/** Used internally by grid. Not intended to be used by the client. Interface may change between releases. */
__internalUpdateGridOptions(options) {
this.gos.updateGridOptions({ options, source: "gridOptionsUpdated" });
__internalUpdateGridOptions(options, force) {
this.gos.updateGridOptions({ options, force, source: "gridOptionsUpdated" });
}
deprecatedUpdateGridOption(key, value) {
warnOnce(`set${key.charAt(0).toUpperCase()}${key.slice(1, key.length)} is deprecated. Please use 'api.setGridOption('${key}', newValue)' or 'api.updateGridOptions({ ${key}: newValue })' instead.`);
Expand Down Expand Up @@ -22880,6 +22883,7 @@ var GridBodyScrollFeature = class extends BeanStub {
const {
topCenter,
stickyTopCenter,
stickyBottomCenter,
centerHeader,
bottomCenter,
fakeHScrollComp
Expand All @@ -22888,6 +22892,7 @@ var GridBodyScrollFeature = class extends BeanStub {
bottomCenter.setContainerTranslateX(offset);
topCenter.setContainerTranslateX(offset);
stickyTopCenter.setContainerTranslateX(offset);
stickyBottomCenter.setContainerTranslateX(offset);
const centerViewport = this.centerRowsCtrl.getViewportElement();
const isCenterViewportLastHorizontal = this.lastScrollSource[1 /* Horizontal */] === 0 /* Container */;
scrollLeft = Math.abs(scrollLeft);
Expand Down Expand Up @@ -34566,7 +34571,7 @@ var StickyRowFeature = class extends BeanStub {
if (row.footer) {
return row.sibling.rowTop + row.sibling.rowHeight - 1;
}
if (row.group) {
if (row.hasChildren()) {
return row.rowTop - 1;
}
return 0;
Expand Down Expand Up @@ -34661,6 +34666,9 @@ var StickyRowFeature = class extends BeanStub {
const suppressFootersSticky = this.areFooterRowsStickySuppressed();
const suppressGroupsSticky = this.gos.get("suppressGroupRowsSticky");
const isRowSticky = (row) => {
if (!row.displayed) {
return false;
}
if (row.footer) {
if (suppressFootersSticky === true) {
return false;
Expand All @@ -34674,15 +34682,15 @@ var StickyRowFeature = class extends BeanStub {
}
;
const alreadySticking = newStickyRows.has(row);
return !alreadySticking && row.displayed;
return !alreadySticking;
}
if (row.isExpandable()) {
if (suppressGroupsSticky === true) {
return false;
}
;
const alreadySticking = newStickyRows.has(row);
return !alreadySticking && row.displayed && row.expanded;
return !alreadySticking && row.expanded;
}
return false;
};
Expand Down Expand Up @@ -34759,6 +34767,10 @@ var StickyRowFeature = class extends BeanStub {
const hasBottomUpdated = this.updateStickyRows("bottom");
return hasTopUpdated || hasBottomUpdated;
}
destroyStickyCtrls() {
this.refreshNodesAndContainerHeight("top", /* @__PURE__ */ new Set(), 0);
this.refreshNodesAndContainerHeight("bottom", /* @__PURE__ */ new Set(), 0);
}
refreshStickyNode(stickRowNode) {
const allStickyNodes = /* @__PURE__ */ new Set();
if (this.stickyTopRowCtrls.some((ctrl) => ctrl.getRowNode() === stickRowNode)) {
Expand Down Expand Up @@ -35483,6 +35495,9 @@ var RowRenderer = class extends BeanStub {
removeAllRowComps() {
const rowIndexesToRemove = Object.keys(this.rowCtrlsByRowIndex);
this.removeRowCtrls(rowIndexesToRemove);
if (this.stickyRowFeature) {
this.stickyRowFeature.destroyStickyCtrls();
}
}
getRowsToRecycle() {
const stubNodeIndexes = [];
Expand Down Expand Up @@ -36502,15 +36517,16 @@ var PaginationProxy = class extends BeanStub {
return;
}
this.currentPage = page;
const event = {
type: Events.EVENT_MODEL_UPDATED,
this.calculatePages();
const paginationChangedEvent = {
type: Events.EVENT_PAGINATION_CHANGED,
animate: false,
keepRenderedRows: false,
newData: false,
newPage: true,
newPageSize: false
newPageSize: false,
keepRenderedRows: false
};
this.onModelUpdated(event);
this.eventService.dispatchEvent(paginationChangedEvent);
}
getPixelOffset() {
return this.pixelOffset;
Expand Down Expand Up @@ -36649,14 +36665,16 @@ var PaginationProxy = class extends BeanStub {
if (this.pageSize === oldPageSize) {
return;
}
this.onModelUpdated({
type: Events.EVENT_MODEL_UPDATED,
this.calculatePages();
const paginationChangedEvent = {
type: Events.EVENT_PAGINATION_CHANGED,
animate: false,
keepRenderedRows: false,
newData: false,
newPage: false,
newPageSize: true
});
newPageSize: true,
keepRenderedRows: false
};
this.eventService.dispatchEvent(paginationChangedEvent);
}
setPageSize(size, source) {
const currentSize = this.pageSize;
Expand All @@ -36683,15 +36701,16 @@ var PaginationProxy = class extends BeanStub {
break;
}
if (currentSize !== this.pageSize) {
const event = {
type: Events.EVENT_MODEL_UPDATED,
this.calculatePages();
const paginationChangedEvent = {
type: Events.EVENT_PAGINATION_CHANGED,
animate: false,
keepRenderedRows: false,
newData: false,
newPage: false,
newPageSize: true
newPageSize: true,
keepRenderedRows: true
};
this.onModelUpdated(event);
this.eventService.dispatchEvent(paginationChangedEvent);
}
}
calculatePages() {
Expand Down Expand Up @@ -36777,7 +36796,7 @@ var PaginationProxy = class extends BeanStub {
}
}
calculatedPagesNotActive() {
this.setPageSize(this.masterRowCount, "autoCalculated");
this.setPageSize(void 0, "autoCalculated");
this.totalPages = 1;
this.currentPage = 0;
this.topDisplayedRowIndex = 0;
Expand Down Expand Up @@ -43847,8 +43866,8 @@ var ColumnAnimationService = class extends BeanStub {
this.getFrameworkOverrides().wrapIncoming(() => {
window.setTimeout(() => runFuncs(this.executeNextFuncs), 0);
window.setTimeout(() => {
runFuncs(this.executeLaterFuncs);
callback();
runFuncs(this.executeLaterFuncs);
}, 200);
});
}
Expand Down Expand Up @@ -46783,15 +46802,15 @@ var GridOptionsService = class {
});
return newGo;
}
updateGridOptions({ options, source = "api" }) {
updateGridOptions({ options, force, source = "api" }) {
const changeSet = { id: GridOptionsService.changeSetId++, properties: [] };
const events = [];
Object.entries(options).forEach(([key, value]) => {
if (source === "api" && INITIAL_GRID_OPTION_KEYS[key]) {
warnOnce(`${key} is an initial property and cannot be updated.`);
}
const coercedValue = GridOptionsService.getCoercedValue(key, value);
const shouldForce = typeof coercedValue === "object" && source === "api";
const shouldForce = force || typeof coercedValue === "object" && source === "api";
const previousValue = this.gridOptions[key];
if (shouldForce || previousValue !== coercedValue) {
this.gridOptions[key] = coercedValue;
Expand Down
18 changes: 9 additions & 9 deletions community-modules/core/dist/package/main.cjs.min.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions community-modules/core/dist/package/main.cjs.min.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit 407bb44

Please sign in to comment.