@deephaven/js-plugin-ag-grid 0.1.4-ag-grid-rollup.902 → 0.1.4-ag-grid-rollup.904
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/AgGridPlugin.d.ts.map +1 -1
- package/dist/AgGridPlugin.js +5 -2
- package/dist/AgGridPlugin.js.map +1 -1
- package/dist/AgGridView.js +1 -1
- package/dist/AgGridView.js.map +1 -1
- package/dist/bundle/index.js +590 -587
- package/package.json +2 -2
package/dist/bundle/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
|
-
var __defNormalProp = (obj,
|
|
4
|
-
var __publicField = (obj,
|
|
3
|
+
var __defNormalProp = (obj, key2, value) => key2 in obj ? __defProp(obj, key2, { enumerable: true, configurable: true, writable: true, value }) : obj[key2] = value;
|
|
4
|
+
var __publicField = (obj, key2, value) => __defNormalProp(obj, typeof key2 !== "symbol" ? key2 + "" : key2, value);
|
|
5
5
|
var _a;
|
|
6
6
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
7
7
|
const plugin = require("@deephaven/plugin");
|
|
@@ -156,12 +156,12 @@ var ModuleNames = /* @__PURE__ */ ((ModuleNames2) => {
|
|
|
156
156
|
return ModuleNames2;
|
|
157
157
|
})(ModuleNames || {});
|
|
158
158
|
var doOnceFlags = {};
|
|
159
|
-
function _doOnce(func,
|
|
160
|
-
if (doOnceFlags[
|
|
159
|
+
function _doOnce(func, key2) {
|
|
160
|
+
if (doOnceFlags[key2]) {
|
|
161
161
|
return;
|
|
162
162
|
}
|
|
163
163
|
func();
|
|
164
|
-
doOnceFlags[
|
|
164
|
+
doOnceFlags[key2] = true;
|
|
165
165
|
}
|
|
166
166
|
function _log(message, ...args) {
|
|
167
167
|
console.log("AG Grid: " + message, ...args);
|
|
@@ -417,18 +417,18 @@ function _getRowHeightAsNumber(gos) {
|
|
|
417
417
|
function isNumeric(value) {
|
|
418
418
|
return !isNaN(value) && typeof value === "number" && isFinite(value);
|
|
419
419
|
}
|
|
420
|
-
function _getDomData(gos, element,
|
|
420
|
+
function _getDomData(gos, element, key2) {
|
|
421
421
|
const domData = element[gos.getDomDataKey()];
|
|
422
|
-
return domData ? domData[
|
|
422
|
+
return domData ? domData[key2] : void 0;
|
|
423
423
|
}
|
|
424
|
-
function _setDomData(gos, element,
|
|
424
|
+
function _setDomData(gos, element, key2, value) {
|
|
425
425
|
const domDataKey = gos.getDomDataKey();
|
|
426
426
|
let domData = element[domDataKey];
|
|
427
427
|
if (_missing(domData)) {
|
|
428
428
|
domData = {};
|
|
429
429
|
element[domDataKey] = domData;
|
|
430
430
|
}
|
|
431
|
-
domData[
|
|
431
|
+
domData[key2] = value;
|
|
432
432
|
}
|
|
433
433
|
function _getDocument(gos) {
|
|
434
434
|
let result = null;
|
|
@@ -1293,8 +1293,8 @@ function _iterateObject(object, callback) {
|
|
|
1293
1293
|
}
|
|
1294
1294
|
return;
|
|
1295
1295
|
}
|
|
1296
|
-
for (const [
|
|
1297
|
-
callback(
|
|
1296
|
+
for (const [key2, value] of Object.entries(object)) {
|
|
1297
|
+
callback(key2, value);
|
|
1298
1298
|
}
|
|
1299
1299
|
}
|
|
1300
1300
|
function _cloneObject(object) {
|
|
@@ -1304,9 +1304,9 @@ function _cloneObject(object) {
|
|
|
1304
1304
|
if (SKIP_JS_BUILTINS.has(keys[i])) {
|
|
1305
1305
|
continue;
|
|
1306
1306
|
}
|
|
1307
|
-
const
|
|
1308
|
-
const value = object[
|
|
1309
|
-
copy[
|
|
1307
|
+
const key2 = keys[i];
|
|
1308
|
+
const value = object[key2];
|
|
1309
|
+
copy[key2] = value;
|
|
1310
1310
|
}
|
|
1311
1311
|
return copy;
|
|
1312
1312
|
}
|
|
@@ -1316,16 +1316,16 @@ function _deepCloneDefinition(object, keysToSkip) {
|
|
|
1316
1316
|
}
|
|
1317
1317
|
const obj = object;
|
|
1318
1318
|
const res = {};
|
|
1319
|
-
Object.keys(obj).forEach((
|
|
1320
|
-
if (keysToSkip && keysToSkip.indexOf(
|
|
1319
|
+
Object.keys(obj).forEach((key2) => {
|
|
1320
|
+
if (keysToSkip && keysToSkip.indexOf(key2) >= 0 || SKIP_JS_BUILTINS.has(key2)) {
|
|
1321
1321
|
return;
|
|
1322
1322
|
}
|
|
1323
|
-
const value = obj[
|
|
1323
|
+
const value = obj[key2];
|
|
1324
1324
|
const sourceIsSimpleObject = _isNonNullObject(value) && value.constructor === Object;
|
|
1325
1325
|
if (sourceIsSimpleObject) {
|
|
1326
|
-
res[
|
|
1326
|
+
res[key2] = _deepCloneDefinition(value);
|
|
1327
1327
|
} else {
|
|
1328
|
-
res[
|
|
1328
|
+
res[key2] = value;
|
|
1329
1329
|
}
|
|
1330
1330
|
});
|
|
1331
1331
|
return res;
|
|
@@ -1339,9 +1339,9 @@ function _getAllValuesInObject(obj) {
|
|
|
1339
1339
|
return anyObject.values(obj);
|
|
1340
1340
|
}
|
|
1341
1341
|
const ret = [];
|
|
1342
|
-
for (const
|
|
1343
|
-
if (obj.hasOwnProperty(
|
|
1344
|
-
ret.push(obj[
|
|
1342
|
+
for (const key2 in obj) {
|
|
1343
|
+
if (obj.hasOwnProperty(key2) && obj.propertyIsEnumerable(key2)) {
|
|
1344
|
+
ret.push(obj[key2]);
|
|
1345
1345
|
}
|
|
1346
1346
|
}
|
|
1347
1347
|
return ret;
|
|
@@ -1350,11 +1350,11 @@ function _mergeDeep(dest, source, copyUndefined = true, makeCopyOfSimpleObjects
|
|
|
1350
1350
|
if (!_exists(source)) {
|
|
1351
1351
|
return;
|
|
1352
1352
|
}
|
|
1353
|
-
_iterateObject(source, (
|
|
1354
|
-
if (SKIP_JS_BUILTINS.has(
|
|
1353
|
+
_iterateObject(source, (key2, sourceValue) => {
|
|
1354
|
+
if (SKIP_JS_BUILTINS.has(key2)) {
|
|
1355
1355
|
return;
|
|
1356
1356
|
}
|
|
1357
|
-
let destValue = dest[
|
|
1357
|
+
let destValue = dest[key2];
|
|
1358
1358
|
if (destValue === sourceValue) {
|
|
1359
1359
|
return;
|
|
1360
1360
|
}
|
|
@@ -1365,14 +1365,14 @@ function _mergeDeep(dest, source, copyUndefined = true, makeCopyOfSimpleObjects
|
|
|
1365
1365
|
const dontCopy = sourceIsSimpleObject;
|
|
1366
1366
|
if (dontCopy) {
|
|
1367
1367
|
destValue = {};
|
|
1368
|
-
dest[
|
|
1368
|
+
dest[key2] = destValue;
|
|
1369
1369
|
}
|
|
1370
1370
|
}
|
|
1371
1371
|
}
|
|
1372
1372
|
if (_isNonNullObject(sourceValue) && _isNonNullObject(destValue) && !Array.isArray(destValue)) {
|
|
1373
1373
|
_mergeDeep(destValue, sourceValue, copyUndefined, makeCopyOfSimpleObjects);
|
|
1374
1374
|
} else if (copyUndefined || sourceValue !== void 0) {
|
|
1375
|
-
dest[
|
|
1375
|
+
dest[key2] = sourceValue;
|
|
1376
1376
|
}
|
|
1377
1377
|
});
|
|
1378
1378
|
}
|
|
@@ -1645,8 +1645,8 @@ var AgColumn = class extends BeanStub {
|
|
|
1645
1645
|
return !!this.getColDefValue("resizable");
|
|
1646
1646
|
}
|
|
1647
1647
|
/** Get value from ColDef or default if it exists. */
|
|
1648
|
-
getColDefValue(
|
|
1649
|
-
return this.colDef[
|
|
1648
|
+
getColDefValue(key2) {
|
|
1649
|
+
return this.colDef[key2] ?? COL_DEF_DEFAULTS[key2];
|
|
1650
1650
|
}
|
|
1651
1651
|
isColumnFunc(rowNode, value) {
|
|
1652
1652
|
if (typeof value === "boolean") {
|
|
@@ -1977,10 +1977,10 @@ var AgColumn = class extends BeanStub {
|
|
|
1977
1977
|
isAllowRowGroup() {
|
|
1978
1978
|
return this.colDef.enableRowGroup === true;
|
|
1979
1979
|
}
|
|
1980
|
-
dispatchStateUpdatedEvent(
|
|
1980
|
+
dispatchStateUpdatedEvent(key2) {
|
|
1981
1981
|
this.columnEventService.dispatchEvent({
|
|
1982
1982
|
type: "columnStateUpdated",
|
|
1983
|
-
key
|
|
1983
|
+
key: key2
|
|
1984
1984
|
});
|
|
1985
1985
|
}
|
|
1986
1986
|
};
|
|
@@ -2372,9 +2372,9 @@ var ColumnFactory = class extends BeanStub {
|
|
|
2372
2372
|
}
|
|
2373
2373
|
const allColumnTypes = Object.assign({}, DefaultColumnTypes);
|
|
2374
2374
|
const userTypes = this.gos.get("columnTypes") || {};
|
|
2375
|
-
_iterateObject(userTypes, (
|
|
2376
|
-
if (
|
|
2377
|
-
_warnOnce(`the column type '${
|
|
2375
|
+
_iterateObject(userTypes, (key2, value) => {
|
|
2376
|
+
if (key2 in allColumnTypes) {
|
|
2377
|
+
_warnOnce(`the column type '${key2}' is a default column type and cannot be overridden.`);
|
|
2378
2378
|
} else {
|
|
2379
2379
|
const colType = value;
|
|
2380
2380
|
if (colType.type) {
|
|
@@ -2382,7 +2382,7 @@ var ColumnFactory = class extends BeanStub {
|
|
|
2382
2382
|
`Column type definitions 'columnTypes' with a 'type' attribute are not supported because a column type cannot refer to another column type. Only column definitions 'columnDefs' can use the 'type' attribute to refer to a column type.`
|
|
2383
2383
|
);
|
|
2384
2384
|
}
|
|
2385
|
-
allColumnTypes[
|
|
2385
|
+
allColumnTypes[key2] = value;
|
|
2386
2386
|
}
|
|
2387
2387
|
});
|
|
2388
2388
|
typeKeys.forEach((t) => {
|
|
@@ -2683,8 +2683,8 @@ var ColumnModel = class extends BeanStub {
|
|
|
2683
2683
|
setColsVisible(keys, visible = false, source) {
|
|
2684
2684
|
this.columnApplyStateService.applyColumnState(
|
|
2685
2685
|
{
|
|
2686
|
-
state: keys.map((
|
|
2687
|
-
colId: typeof
|
|
2686
|
+
state: keys.map((key2) => ({
|
|
2687
|
+
colId: typeof key2 === "string" ? key2 : key2.getColId(),
|
|
2688
2688
|
hide: !visible
|
|
2689
2689
|
}))
|
|
2690
2690
|
},
|
|
@@ -2712,11 +2712,11 @@ var ColumnModel = class extends BeanStub {
|
|
|
2712
2712
|
actualPinned = null;
|
|
2713
2713
|
}
|
|
2714
2714
|
const updatedCols = [];
|
|
2715
|
-
keys.forEach((
|
|
2716
|
-
if (!
|
|
2715
|
+
keys.forEach((key2) => {
|
|
2716
|
+
if (!key2) {
|
|
2717
2717
|
return;
|
|
2718
2718
|
}
|
|
2719
|
-
const column = this.getCol(
|
|
2719
|
+
const column = this.getCol(key2);
|
|
2720
2720
|
if (!column) {
|
|
2721
2721
|
return;
|
|
2722
2722
|
}
|
|
@@ -2732,21 +2732,21 @@ var ColumnModel = class extends BeanStub {
|
|
|
2732
2732
|
this.columnAnimationService.finish();
|
|
2733
2733
|
}
|
|
2734
2734
|
// called by headerRenderer - when a header is opened or closed
|
|
2735
|
-
setColumnGroupOpened(
|
|
2735
|
+
setColumnGroupOpened(key2, newValue, source) {
|
|
2736
2736
|
let keyAsString;
|
|
2737
|
-
if (isProvidedColumnGroup(
|
|
2738
|
-
keyAsString =
|
|
2737
|
+
if (isProvidedColumnGroup(key2)) {
|
|
2738
|
+
keyAsString = key2.getId();
|
|
2739
2739
|
} else {
|
|
2740
|
-
keyAsString =
|
|
2740
|
+
keyAsString = key2 || "";
|
|
2741
2741
|
}
|
|
2742
2742
|
this.columnGroupStateService.setColumnGroupState([{ groupId: keyAsString, open: newValue }], source);
|
|
2743
2743
|
}
|
|
2744
|
-
getProvidedColGroup(
|
|
2744
|
+
getProvidedColGroup(key2) {
|
|
2745
2745
|
var _a2;
|
|
2746
2746
|
let res = null;
|
|
2747
2747
|
depthFirstOriginalTreeSearch(null, (_a2 = this.cols) == null ? void 0 : _a2.tree, (node) => {
|
|
2748
2748
|
if (isProvidedColumnGroup(node)) {
|
|
2749
|
-
if (node.getId() ===
|
|
2749
|
+
if (node.getId() === key2) {
|
|
2750
2750
|
res = node;
|
|
2751
2751
|
}
|
|
2752
2752
|
}
|
|
@@ -3048,39 +3048,39 @@ var ColumnModel = class extends BeanStub {
|
|
|
3048
3048
|
if (!keys) {
|
|
3049
3049
|
return [];
|
|
3050
3050
|
}
|
|
3051
|
-
return keys.map((
|
|
3051
|
+
return keys.map((key2) => this.getCol(key2)).filter((col) => col != null);
|
|
3052
3052
|
}
|
|
3053
|
-
getColDefCol(
|
|
3053
|
+
getColDefCol(key2) {
|
|
3054
3054
|
var _a2;
|
|
3055
3055
|
if (!((_a2 = this.colDefCols) == null ? void 0 : _a2.list)) {
|
|
3056
3056
|
return null;
|
|
3057
3057
|
}
|
|
3058
|
-
return this.getColFromCollection(
|
|
3058
|
+
return this.getColFromCollection(key2, this.colDefCols);
|
|
3059
3059
|
}
|
|
3060
|
-
getCol(
|
|
3061
|
-
if (
|
|
3060
|
+
getCol(key2) {
|
|
3061
|
+
if (key2 == null) {
|
|
3062
3062
|
return null;
|
|
3063
3063
|
}
|
|
3064
|
-
return this.getColFromCollection(
|
|
3064
|
+
return this.getColFromCollection(key2, this.cols);
|
|
3065
3065
|
}
|
|
3066
|
-
getColFromCollection(
|
|
3066
|
+
getColFromCollection(key2, cols) {
|
|
3067
3067
|
if (cols == null) {
|
|
3068
3068
|
return null;
|
|
3069
3069
|
}
|
|
3070
3070
|
const { map, list } = cols;
|
|
3071
|
-
if (typeof
|
|
3072
|
-
return map[
|
|
3071
|
+
if (typeof key2 == "string" && map[key2]) {
|
|
3072
|
+
return map[key2];
|
|
3073
3073
|
}
|
|
3074
3074
|
for (let i = 0; i < list.length; i++) {
|
|
3075
|
-
if (columnsMatch(list[i],
|
|
3075
|
+
if (columnsMatch(list[i], key2)) {
|
|
3076
3076
|
return list[i];
|
|
3077
3077
|
}
|
|
3078
3078
|
}
|
|
3079
|
-
return this.getAutoCol(
|
|
3079
|
+
return this.getAutoCol(key2);
|
|
3080
3080
|
}
|
|
3081
|
-
getAutoCol(
|
|
3081
|
+
getAutoCol(key2) {
|
|
3082
3082
|
var _a2;
|
|
3083
|
-
return ((_a2 = this.autoCols) == null ? void 0 : _a2.list.find((groupCol) => columnsMatch(groupCol,
|
|
3083
|
+
return ((_a2 = this.autoCols) == null ? void 0 : _a2.list.find((groupCol) => columnsMatch(groupCol, key2))) ?? null;
|
|
3084
3084
|
}
|
|
3085
3085
|
getAutoCols() {
|
|
3086
3086
|
var _a2;
|
|
@@ -3195,10 +3195,10 @@ function updateColsMap(cols) {
|
|
|
3195
3195
|
cols.map = {};
|
|
3196
3196
|
cols.list.forEach((col) => cols.map[col.getId()] = col);
|
|
3197
3197
|
}
|
|
3198
|
-
function columnsMatch(column,
|
|
3199
|
-
const columnMatches = column ===
|
|
3200
|
-
const colDefMatches = column.getColDef() ===
|
|
3201
|
-
const idMatches = column.getColId() ==
|
|
3198
|
+
function columnsMatch(column, key2) {
|
|
3199
|
+
const columnMatches = column === key2;
|
|
3200
|
+
const colDefMatches = column.getColDef() === key2;
|
|
3201
|
+
const idMatches = column.getColId() == key2;
|
|
3202
3202
|
return columnMatches || colDefMatches || idMatches;
|
|
3203
3203
|
}
|
|
3204
3204
|
function areColIdsEqual(colsA, colsB) {
|
|
@@ -3239,11 +3239,11 @@ var ColumnAutosizeService = class extends BeanStub {
|
|
|
3239
3239
|
while (changesThisTimeAround !== 0) {
|
|
3240
3240
|
changesThisTimeAround = 0;
|
|
3241
3241
|
const updatedColumns = [];
|
|
3242
|
-
colKeys.forEach((
|
|
3243
|
-
if (!
|
|
3242
|
+
colKeys.forEach((key2) => {
|
|
3243
|
+
if (!key2) {
|
|
3244
3244
|
return;
|
|
3245
3245
|
}
|
|
3246
|
-
const column = this.columnModel.getCol(
|
|
3246
|
+
const column = this.columnModel.getCol(key2);
|
|
3247
3247
|
if (!column) {
|
|
3248
3248
|
return;
|
|
3249
3249
|
}
|
|
@@ -3269,9 +3269,9 @@ var ColumnAutosizeService = class extends BeanStub {
|
|
|
3269
3269
|
}
|
|
3270
3270
|
this.eventDispatcher.columnResized(columnsAutosized, true, "autosizeColumns");
|
|
3271
3271
|
}
|
|
3272
|
-
autoSizeColumn(
|
|
3273
|
-
if (
|
|
3274
|
-
this.autoSizeCols({ colKeys: [
|
|
3272
|
+
autoSizeColumn(key2, source, skipHeader) {
|
|
3273
|
+
if (key2) {
|
|
3274
|
+
this.autoSizeCols({ colKeys: [key2], skipHeader, skipHeaderGroups: true, source });
|
|
3275
3275
|
}
|
|
3276
3276
|
}
|
|
3277
3277
|
autoSizeColumnGroupsByColumns(keys, source, stopAtGroup) {
|
|
@@ -3378,11 +3378,11 @@ var FuncColsService = class extends BeanStub {
|
|
|
3378
3378
|
isRowGroupEmpty() {
|
|
3379
3379
|
return _missingOrEmpty(this.rowGroupCols);
|
|
3380
3380
|
}
|
|
3381
|
-
setColumnAggFunc(
|
|
3382
|
-
if (!
|
|
3381
|
+
setColumnAggFunc(key2, aggFunc, source) {
|
|
3382
|
+
if (!key2) {
|
|
3383
3383
|
return;
|
|
3384
3384
|
}
|
|
3385
|
-
const column = this.columnModel.getColDefCol(
|
|
3385
|
+
const column = this.columnModel.getColDefCol(key2);
|
|
3386
3386
|
if (!column) {
|
|
3387
3387
|
return;
|
|
3388
3388
|
}
|
|
@@ -3530,8 +3530,8 @@ var FuncColsService = class extends BeanStub {
|
|
|
3530
3530
|
masterList.forEach((col, idx) => changes.set(col, idx));
|
|
3531
3531
|
masterList.length = 0;
|
|
3532
3532
|
if (_exists(colKeys)) {
|
|
3533
|
-
colKeys.forEach((
|
|
3534
|
-
const column = this.columnModel.getColDefCol(
|
|
3533
|
+
colKeys.forEach((key2) => {
|
|
3534
|
+
const column = this.columnModel.getColDefCol(key2);
|
|
3535
3535
|
if (column) {
|
|
3536
3536
|
masterList.push(column);
|
|
3537
3537
|
}
|
|
@@ -3563,11 +3563,11 @@ var FuncColsService = class extends BeanStub {
|
|
|
3563
3563
|
}
|
|
3564
3564
|
let atLeastOne = false;
|
|
3565
3565
|
const updatedCols = /* @__PURE__ */ new Set();
|
|
3566
|
-
keys.forEach((
|
|
3567
|
-
if (!
|
|
3566
|
+
keys.forEach((key2) => {
|
|
3567
|
+
if (!key2) {
|
|
3568
3568
|
return;
|
|
3569
3569
|
}
|
|
3570
|
-
const columnToAdd = this.columnModel.getColDefCol(
|
|
3570
|
+
const columnToAdd = this.columnModel.getColDefCol(key2);
|
|
3571
3571
|
if (!columnToAdd) {
|
|
3572
3572
|
return;
|
|
3573
3573
|
}
|
|
@@ -4577,11 +4577,11 @@ var PivotResultColsService = class extends BeanStub {
|
|
|
4577
4577
|
getPivotResultCols() {
|
|
4578
4578
|
return this.pivotResultCols;
|
|
4579
4579
|
}
|
|
4580
|
-
getPivotResultCol(
|
|
4580
|
+
getPivotResultCol(key2) {
|
|
4581
4581
|
if (!this.pivotResultCols) {
|
|
4582
4582
|
return null;
|
|
4583
4583
|
}
|
|
4584
|
-
return this.columnModel.getColFromCollection(
|
|
4584
|
+
return this.columnModel.getColFromCollection(key2, this.pivotResultCols);
|
|
4585
4585
|
}
|
|
4586
4586
|
setPivotResultCols(colDefs, source) {
|
|
4587
4587
|
var _a2, _b;
|
|
@@ -4904,8 +4904,8 @@ var ColumnSizeService = class extends BeanStub {
|
|
|
4904
4904
|
}
|
|
4905
4905
|
const limitsMap = {};
|
|
4906
4906
|
if (params) {
|
|
4907
|
-
(_a2 = params == null ? void 0 : params.columnLimits) == null ? void 0 : _a2.forEach(({ key, ...dimensions }) => {
|
|
4908
|
-
limitsMap[typeof
|
|
4907
|
+
(_a2 = params == null ? void 0 : params.columnLimits) == null ? void 0 : _a2.forEach(({ key: key2, ...dimensions }) => {
|
|
4908
|
+
limitsMap[typeof key2 === "string" ? key2 : key2.getColId()] = dimensions;
|
|
4909
4909
|
});
|
|
4910
4910
|
}
|
|
4911
4911
|
const allDisplayedColumns = this.visibleColsService.getAllCols();
|
|
@@ -5001,8 +5001,8 @@ var ColumnSizeService = class extends BeanStub {
|
|
|
5001
5001
|
setTimeout(() => {
|
|
5002
5002
|
if (type === "fitGridWidth") {
|
|
5003
5003
|
const { columnLimits: propColumnLimits, defaultMinWidth, defaultMaxWidth } = autoSizeStrategy;
|
|
5004
|
-
const columnLimits = propColumnLimits == null ? void 0 : propColumnLimits.map(({ colId:
|
|
5005
|
-
key,
|
|
5004
|
+
const columnLimits = propColumnLimits == null ? void 0 : propColumnLimits.map(({ colId: key2, minWidth, maxWidth }) => ({
|
|
5005
|
+
key: key2,
|
|
5006
5006
|
minWidth,
|
|
5007
5007
|
maxWidth
|
|
5008
5008
|
}));
|
|
@@ -5255,15 +5255,15 @@ var GroupInstanceIdCreator = class {
|
|
|
5255
5255
|
constructor() {
|
|
5256
5256
|
this.existingIds = {};
|
|
5257
5257
|
}
|
|
5258
|
-
getInstanceIdForKey(
|
|
5259
|
-
const lastResult = this.existingIds[
|
|
5258
|
+
getInstanceIdForKey(key2) {
|
|
5259
|
+
const lastResult = this.existingIds[key2];
|
|
5260
5260
|
let result;
|
|
5261
5261
|
if (typeof lastResult !== "number") {
|
|
5262
5262
|
result = 0;
|
|
5263
5263
|
} else {
|
|
5264
5264
|
result = lastResult + 1;
|
|
5265
5265
|
}
|
|
5266
|
-
this.existingIds[
|
|
5266
|
+
this.existingIds[key2] = result;
|
|
5267
5267
|
return result;
|
|
5268
5268
|
}
|
|
5269
5269
|
};
|
|
@@ -6429,10 +6429,10 @@ function _combineAttributesAndGridOptions(gridOptions, component) {
|
|
|
6429
6429
|
}
|
|
6430
6430
|
const mergedOptions = { ...gridOptions };
|
|
6431
6431
|
const keys = ComponentUtil.ALL_PROPERTIES_AND_CALLBACKS;
|
|
6432
|
-
keys.forEach((
|
|
6433
|
-
const value = component[
|
|
6432
|
+
keys.forEach((key2) => {
|
|
6433
|
+
const value = component[key2];
|
|
6434
6434
|
if (typeof value !== "undefined" && value !== ComponentUtil.VUE_OMITTED_PROPERTY) {
|
|
6435
|
-
mergedOptions[
|
|
6435
|
+
mergedOptions[key2] = value;
|
|
6436
6436
|
}
|
|
6437
6437
|
});
|
|
6438
6438
|
return mergedOptions;
|
|
@@ -6443,8 +6443,8 @@ function _processOnChange(changes, api) {
|
|
|
6443
6443
|
}
|
|
6444
6444
|
const gridChanges = {};
|
|
6445
6445
|
let hasChanges = false;
|
|
6446
|
-
Object.keys(changes).filter((
|
|
6447
|
-
gridChanges[
|
|
6446
|
+
Object.keys(changes).filter((key2) => ComponentUtil.ALL_PROPERTIES_AND_CALLBACKS_SET.has(key2)).forEach((key2) => {
|
|
6447
|
+
gridChanges[key2] = changes[key2];
|
|
6448
6448
|
hasChanges = true;
|
|
6449
6449
|
});
|
|
6450
6450
|
if (!hasChanges) {
|
|
@@ -6458,8 +6458,8 @@ function _processOnChange(changes, api) {
|
|
|
6458
6458
|
const event = {
|
|
6459
6459
|
type: "componentStateChanged"
|
|
6460
6460
|
};
|
|
6461
|
-
_iterateObject(gridChanges, (
|
|
6462
|
-
event[
|
|
6461
|
+
_iterateObject(gridChanges, (key2, value) => {
|
|
6462
|
+
event[key2] = value;
|
|
6463
6463
|
});
|
|
6464
6464
|
api.dispatchEvent(event);
|
|
6465
6465
|
}
|
|
@@ -7642,10 +7642,10 @@ var Component = class _Component extends BeanStub {
|
|
|
7642
7642
|
});
|
|
7643
7643
|
}
|
|
7644
7644
|
createComponentFromElement(element, afterPreCreateCallback, paramsMap) {
|
|
7645
|
-
const
|
|
7645
|
+
const key2 = element.nodeName;
|
|
7646
7646
|
const elementRef = this.getDataRefAttribute(element);
|
|
7647
|
-
const isAgGridComponent =
|
|
7648
|
-
const componentSelector = isAgGridComponent ? this.componentSelectors.get(
|
|
7647
|
+
const isAgGridComponent = key2.indexOf("AG-") === 0;
|
|
7648
|
+
const componentSelector = isAgGridComponent ? this.componentSelectors.get(key2) : null;
|
|
7649
7649
|
let newComponent = null;
|
|
7650
7650
|
if (componentSelector) {
|
|
7651
7651
|
_Component.elementGettingCreated = element;
|
|
@@ -7654,7 +7654,7 @@ var Component = class _Component extends BeanStub {
|
|
|
7654
7654
|
newComponent.setParentComponent(this);
|
|
7655
7655
|
this.createBean(newComponent, null, afterPreCreateCallback);
|
|
7656
7656
|
} else if (isAgGridComponent) {
|
|
7657
|
-
_warnOnce(`Missing selector: ${
|
|
7657
|
+
_warnOnce(`Missing selector: ${key2}`);
|
|
7658
7658
|
}
|
|
7659
7659
|
this.applyElementsToComponent(element, elementRef, paramsMap, newComponent);
|
|
7660
7660
|
return newComponent;
|
|
@@ -9606,7 +9606,7 @@ var UserComponentRegistry = class extends BeanStub {
|
|
|
9606
9606
|
postConstruct() {
|
|
9607
9607
|
const comps = this.gos.get("components");
|
|
9608
9608
|
if (comps != null) {
|
|
9609
|
-
_iterateObject(comps, (
|
|
9609
|
+
_iterateObject(comps, (key2, component) => this.registerJsComponent(key2, component));
|
|
9610
9610
|
}
|
|
9611
9611
|
}
|
|
9612
9612
|
registerDefaultComponent(name, component, params) {
|
|
@@ -9895,8 +9895,8 @@ var UserComponentFactory = class _UserComponentFactory extends BeanStub {
|
|
|
9895
9895
|
const { propertyName, cellRenderer } = type;
|
|
9896
9896
|
let { compName, jsComp, fwComp, paramsFromSelector, popupFromSelector, popupPositionFromSelector } = _UserComponentFactory.getCompKeys(this.frameworkOverrides, defObject, type, params);
|
|
9897
9897
|
let defaultCompParams;
|
|
9898
|
-
const lookupFromRegistry = (
|
|
9899
|
-
const item = this.userComponentRegistry.retrieve(propertyName,
|
|
9898
|
+
const lookupFromRegistry = (key2) => {
|
|
9899
|
+
const item = this.userComponentRegistry.retrieve(propertyName, key2);
|
|
9900
9900
|
if (item) {
|
|
9901
9901
|
jsComp = !item.componentFromFramework ? item.component : void 0;
|
|
9902
9902
|
fwComp = item.componentFromFramework ? item.component : void 0;
|
|
@@ -11923,12 +11923,12 @@ var _RowNode = class _RowNode2 {
|
|
|
11923
11923
|
}
|
|
11924
11924
|
this.dispatchCellChangedEvent(column, value, oldValue);
|
|
11925
11925
|
};
|
|
11926
|
-
for (const
|
|
11927
|
-
eventFunc(
|
|
11926
|
+
for (const key2 in oldAggData) {
|
|
11927
|
+
eventFunc(key2);
|
|
11928
11928
|
}
|
|
11929
|
-
for (const
|
|
11930
|
-
if (!oldAggData || !(
|
|
11931
|
-
eventFunc(
|
|
11929
|
+
for (const key2 in newAggData) {
|
|
11930
|
+
if (!oldAggData || !(key2 in oldAggData)) {
|
|
11931
|
+
eventFunc(key2);
|
|
11932
11932
|
}
|
|
11933
11933
|
}
|
|
11934
11934
|
}
|
|
@@ -12185,11 +12185,11 @@ var _RowNode = class _RowNode2 {
|
|
|
12185
12185
|
return;
|
|
12186
12186
|
}
|
|
12187
12187
|
const footerNode = new _RowNode2(this.beans);
|
|
12188
|
-
Object.keys(this).forEach((
|
|
12189
|
-
if (IGNORED_SIBLING_PROPERTIES.has(
|
|
12188
|
+
Object.keys(this).forEach((key2) => {
|
|
12189
|
+
if (IGNORED_SIBLING_PROPERTIES.has(key2)) {
|
|
12190
12190
|
return;
|
|
12191
12191
|
}
|
|
12192
|
-
footerNode[
|
|
12192
|
+
footerNode[key2] = this[key2];
|
|
12193
12193
|
});
|
|
12194
12194
|
footerNode.footer = true;
|
|
12195
12195
|
footerNode.setRowTop(null);
|
|
@@ -12526,21 +12526,21 @@ var FilterManager = class extends BeanStub {
|
|
|
12526
12526
|
}
|
|
12527
12527
|
return !!((_a2 = this.columnFilterService) == null ? void 0 : _a2.hasFloatingFilters());
|
|
12528
12528
|
}
|
|
12529
|
-
getFilterInstance(
|
|
12529
|
+
getFilterInstance(key2, callback) {
|
|
12530
12530
|
var _a2;
|
|
12531
12531
|
if (this.isAdvancedFilterEnabled()) {
|
|
12532
12532
|
this.warnAdvancedFilters();
|
|
12533
12533
|
return void 0;
|
|
12534
12534
|
}
|
|
12535
|
-
return (_a2 = this.columnFilterService) == null ? void 0 : _a2.getFilterInstance(
|
|
12535
|
+
return (_a2 = this.columnFilterService) == null ? void 0 : _a2.getFilterInstance(key2, callback);
|
|
12536
12536
|
}
|
|
12537
|
-
getColumnFilterInstance(
|
|
12537
|
+
getColumnFilterInstance(key2) {
|
|
12538
12538
|
var _a2;
|
|
12539
12539
|
if (this.isAdvancedFilterEnabled()) {
|
|
12540
12540
|
this.warnAdvancedFilters();
|
|
12541
12541
|
return Promise.resolve(void 0);
|
|
12542
12542
|
}
|
|
12543
|
-
return ((_a2 = this.columnFilterService) == null ? void 0 : _a2.getColumnFilterInstance(
|
|
12543
|
+
return ((_a2 = this.columnFilterService) == null ? void 0 : _a2.getColumnFilterInstance(key2)) ?? Promise.resolve(void 0);
|
|
12544
12544
|
}
|
|
12545
12545
|
warnAdvancedFilters() {
|
|
12546
12546
|
_warnOnce("Column Filter API methods have been disabled as Advanced Filters are enabled.");
|
|
@@ -12559,17 +12559,17 @@ var FilterManager = class extends BeanStub {
|
|
|
12559
12559
|
this.advancedFilterModelUpdateQueue.forEach((model) => this.setAdvancedFilterModel(model));
|
|
12560
12560
|
this.advancedFilterModelUpdateQueue = [];
|
|
12561
12561
|
}
|
|
12562
|
-
getColumnFilterModel(
|
|
12562
|
+
getColumnFilterModel(key2) {
|
|
12563
12563
|
var _a2;
|
|
12564
|
-
return (_a2 = this.columnFilterService) == null ? void 0 : _a2.getColumnFilterModel(
|
|
12564
|
+
return (_a2 = this.columnFilterService) == null ? void 0 : _a2.getColumnFilterModel(key2);
|
|
12565
12565
|
}
|
|
12566
|
-
setColumnFilterModel(
|
|
12566
|
+
setColumnFilterModel(key2, model) {
|
|
12567
12567
|
var _a2;
|
|
12568
12568
|
if (this.isAdvancedFilterEnabled()) {
|
|
12569
12569
|
this.warnAdvancedFilters();
|
|
12570
12570
|
return Promise.resolve();
|
|
12571
12571
|
}
|
|
12572
|
-
return ((_a2 = this.columnFilterService) == null ? void 0 : _a2.setColumnFilterModel(
|
|
12572
|
+
return ((_a2 = this.columnFilterService) == null ? void 0 : _a2.setColumnFilterModel(key2, model)) ?? Promise.resolve();
|
|
12573
12573
|
}
|
|
12574
12574
|
setColDefPropertiesForDataType(colDef, dataTypeDefinition, formatValue) {
|
|
12575
12575
|
var _a2;
|
|
@@ -13653,9 +13653,9 @@ var ProvidedFilter = class extends Component {
|
|
|
13653
13653
|
return;
|
|
13654
13654
|
}
|
|
13655
13655
|
const keyboardEvent = e;
|
|
13656
|
-
const
|
|
13656
|
+
const key2 = keyboardEvent && keyboardEvent.key;
|
|
13657
13657
|
let params;
|
|
13658
|
-
if (
|
|
13658
|
+
if (key2 === "Enter" || key2 === "Space") {
|
|
13659
13659
|
params = { keyboardEvent };
|
|
13660
13660
|
}
|
|
13661
13661
|
this.hidePopup(params);
|
|
@@ -13729,9 +13729,9 @@ var ProvidedFilter = class extends Component {
|
|
|
13729
13729
|
this.appliedModel = null;
|
|
13730
13730
|
super.destroy();
|
|
13731
13731
|
}
|
|
13732
|
-
translate(
|
|
13732
|
+
translate(key2) {
|
|
13733
13733
|
const translate = this.localeService.getLocaleTextFunc();
|
|
13734
|
-
return translate(
|
|
13734
|
+
return translate(key2, FILTER_LOCALE_TEXT[key2]);
|
|
13735
13735
|
}
|
|
13736
13736
|
getCellValue(rowNode) {
|
|
13737
13737
|
return this.providedFilterParams.getValue(rowNode);
|
|
@@ -13793,8 +13793,8 @@ var AgList = class extends Component {
|
|
|
13793
13793
|
this.addManagedElementListeners(eGui, { keydown: this.handleKeyDown.bind(this) });
|
|
13794
13794
|
}
|
|
13795
13795
|
handleKeyDown(e) {
|
|
13796
|
-
const
|
|
13797
|
-
switch (
|
|
13796
|
+
const key2 = e.key;
|
|
13797
|
+
switch (key2) {
|
|
13798
13798
|
case KeyCode.ENTER:
|
|
13799
13799
|
if (!this.highlightedEl) {
|
|
13800
13800
|
this.setValue(this.getValue());
|
|
@@ -13806,19 +13806,19 @@ var AgList = class extends Component {
|
|
|
13806
13806
|
case KeyCode.DOWN:
|
|
13807
13807
|
case KeyCode.UP:
|
|
13808
13808
|
e.preventDefault();
|
|
13809
|
-
this.navigate(
|
|
13809
|
+
this.navigate(key2);
|
|
13810
13810
|
break;
|
|
13811
13811
|
case KeyCode.PAGE_DOWN:
|
|
13812
13812
|
case KeyCode.PAGE_UP:
|
|
13813
13813
|
case KeyCode.PAGE_HOME:
|
|
13814
13814
|
case KeyCode.PAGE_END:
|
|
13815
13815
|
e.preventDefault();
|
|
13816
|
-
this.navigateToPage(
|
|
13816
|
+
this.navigateToPage(key2);
|
|
13817
13817
|
break;
|
|
13818
13818
|
}
|
|
13819
13819
|
}
|
|
13820
|
-
navigate(
|
|
13821
|
-
const isDown =
|
|
13820
|
+
navigate(key2) {
|
|
13821
|
+
const isDown = key2 === KeyCode.DOWN;
|
|
13822
13822
|
let itemToHighlight;
|
|
13823
13823
|
if (!this.highlightedEl) {
|
|
13824
13824
|
itemToHighlight = this.itemEls[isDown ? 0 : this.itemEls.length - 1];
|
|
@@ -13830,7 +13830,7 @@ var AgList = class extends Component {
|
|
|
13830
13830
|
}
|
|
13831
13831
|
this.highlightItem(itemToHighlight);
|
|
13832
13832
|
}
|
|
13833
|
-
navigateToPage(
|
|
13833
|
+
navigateToPage(key2) {
|
|
13834
13834
|
if (!this.highlightedEl || this.itemEls.length === 0) {
|
|
13835
13835
|
return;
|
|
13836
13836
|
}
|
|
@@ -13839,13 +13839,13 @@ var AgList = class extends Component {
|
|
|
13839
13839
|
const itemHeight = this.itemEls[0].clientHeight;
|
|
13840
13840
|
const pageSize = Math.floor(this.getGui().clientHeight / itemHeight);
|
|
13841
13841
|
let newIndex = -1;
|
|
13842
|
-
if (
|
|
13842
|
+
if (key2 === KeyCode.PAGE_HOME) {
|
|
13843
13843
|
newIndex = 0;
|
|
13844
|
-
} else if (
|
|
13844
|
+
} else if (key2 === KeyCode.PAGE_END) {
|
|
13845
13845
|
newIndex = rowCount;
|
|
13846
|
-
} else if (
|
|
13846
|
+
} else if (key2 === KeyCode.PAGE_DOWN) {
|
|
13847
13847
|
newIndex = Math.min(currentIdx + pageSize, rowCount);
|
|
13848
|
-
} else if (
|
|
13848
|
+
} else if (key2 === KeyCode.PAGE_UP) {
|
|
13849
13849
|
newIndex = Math.max(currentIdx - pageSize, 0);
|
|
13850
13850
|
}
|
|
13851
13851
|
if (newIndex === -1) {
|
|
@@ -14320,11 +14320,11 @@ var AgSelect = class extends AgPickerField {
|
|
|
14320
14320
|
}
|
|
14321
14321
|
onKeyDown(e) {
|
|
14322
14322
|
var _a2;
|
|
14323
|
-
const { key } = e;
|
|
14324
|
-
if (
|
|
14323
|
+
const { key: key2 } = e;
|
|
14324
|
+
if (key2 === KeyCode.TAB) {
|
|
14325
14325
|
this.hidePicker();
|
|
14326
14326
|
}
|
|
14327
|
-
switch (
|
|
14327
|
+
switch (key2) {
|
|
14328
14328
|
case KeyCode.ENTER:
|
|
14329
14329
|
case KeyCode.UP:
|
|
14330
14330
|
case KeyCode.DOWN:
|
|
@@ -14426,7 +14426,7 @@ var OptionsFactory = class {
|
|
|
14426
14426
|
}
|
|
14427
14427
|
const requiredProperties = [["displayKey"], ["displayName"], ["predicate", "test"]];
|
|
14428
14428
|
const propertyCheck = (keys) => {
|
|
14429
|
-
if (!keys.some((
|
|
14429
|
+
if (!keys.some((key2) => filterOption[key2] != null)) {
|
|
14430
14430
|
_warnOnce(`ignoring FilterOptionDef as it doesn't contain one of '${keys}'`);
|
|
14431
14431
|
return false;
|
|
14432
14432
|
}
|
|
@@ -15292,11 +15292,11 @@ function _normaliseQwertyAzerty(keyboardEvent) {
|
|
|
15292
15292
|
}
|
|
15293
15293
|
return code;
|
|
15294
15294
|
}
|
|
15295
|
-
function _isDeleteKey(
|
|
15296
|
-
if (
|
|
15295
|
+
function _isDeleteKey(key2, alwaysReturnFalseOnBackspace = false) {
|
|
15296
|
+
if (key2 === KeyCode.DELETE) {
|
|
15297
15297
|
return true;
|
|
15298
15298
|
}
|
|
15299
|
-
if (!alwaysReturnFalseOnBackspace &&
|
|
15299
|
+
if (!alwaysReturnFalseOnBackspace && key2 === KeyCode.BACKSPACE) {
|
|
15300
15300
|
return _isMacOsUserAgent();
|
|
15301
15301
|
}
|
|
15302
15302
|
return false;
|
|
@@ -16357,14 +16357,14 @@ var DateFilter = class extends ScalarFilter {
|
|
|
16357
16357
|
});
|
|
16358
16358
|
return result;
|
|
16359
16359
|
}
|
|
16360
|
-
translate(
|
|
16361
|
-
if (
|
|
16360
|
+
translate(key2) {
|
|
16361
|
+
if (key2 === "lessThan") {
|
|
16362
16362
|
return super.translate("before");
|
|
16363
16363
|
}
|
|
16364
|
-
if (
|
|
16364
|
+
if (key2 === "greaterThan") {
|
|
16365
16365
|
return super.translate("after");
|
|
16366
16366
|
}
|
|
16367
|
-
return super.translate(
|
|
16367
|
+
return super.translate(key2);
|
|
16368
16368
|
}
|
|
16369
16369
|
getModelAsString(model) {
|
|
16370
16370
|
return this.filterModelFormatter.getModelAsString(model) ?? "";
|
|
@@ -16733,9 +16733,9 @@ var _AbstractHeaderCellCtrl = class _AbstractHeaderCellCtrl2 extends BeanStub {
|
|
|
16733
16733
|
}
|
|
16734
16734
|
}
|
|
16735
16735
|
addDomData(compBean) {
|
|
16736
|
-
const
|
|
16737
|
-
_setDomData(this.gos, this.eGui,
|
|
16738
|
-
compBean.addDestroyFunc(() => _setDomData(this.gos, this.eGui,
|
|
16736
|
+
const key2 = _AbstractHeaderCellCtrl2.DOM_DATA_KEY_HEADER_CTRL;
|
|
16737
|
+
_setDomData(this.gos, this.eGui, key2, this);
|
|
16738
|
+
compBean.addDestroyFunc(() => _setDomData(this.gos, this.eGui, key2, null));
|
|
16739
16739
|
}
|
|
16740
16740
|
getGui() {
|
|
16741
16741
|
return this.eGui;
|
|
@@ -17155,17 +17155,17 @@ function isColumnFilterPresent(beans) {
|
|
|
17155
17155
|
var _a2, _b;
|
|
17156
17156
|
return !!((_a2 = beans.filterManager) == null ? void 0 : _a2.isColumnFilterPresent()) || !!((_b = beans.filterManager) == null ? void 0 : _b.isAggregateFilterPresent());
|
|
17157
17157
|
}
|
|
17158
|
-
function getFilterInstance(beans,
|
|
17158
|
+
function getFilterInstance(beans, key2, callback) {
|
|
17159
17159
|
var _a2;
|
|
17160
|
-
return (_a2 = beans.filterManager) == null ? void 0 : _a2.getFilterInstance(
|
|
17160
|
+
return (_a2 = beans.filterManager) == null ? void 0 : _a2.getFilterInstance(key2, callback);
|
|
17161
17161
|
}
|
|
17162
|
-
function getColumnFilterInstance(beans,
|
|
17162
|
+
function getColumnFilterInstance(beans, key2) {
|
|
17163
17163
|
var _a2;
|
|
17164
|
-
return ((_a2 = beans.filterManager) == null ? void 0 : _a2.getColumnFilterInstance(
|
|
17164
|
+
return ((_a2 = beans.filterManager) == null ? void 0 : _a2.getColumnFilterInstance(key2)) ?? Promise.resolve(void 0);
|
|
17165
17165
|
}
|
|
17166
|
-
function destroyFilter(beans,
|
|
17166
|
+
function destroyFilter(beans, key2) {
|
|
17167
17167
|
var _a2;
|
|
17168
|
-
const column = beans.columnModel.getColDefCol(
|
|
17168
|
+
const column = beans.columnModel.getColDefCol(key2);
|
|
17169
17169
|
if (column) {
|
|
17170
17170
|
return (_a2 = beans.filterManager) == null ? void 0 : _a2.destroyFilter(column, "api");
|
|
17171
17171
|
}
|
|
@@ -17359,10 +17359,10 @@ var ColumnFilterService = class extends BeanStub {
|
|
|
17359
17359
|
getFilterModel(excludeInitialState) {
|
|
17360
17360
|
const result = {};
|
|
17361
17361
|
const { allColumnFilters, initialFilterModel } = this;
|
|
17362
|
-
allColumnFilters.forEach((filterWrapper,
|
|
17362
|
+
allColumnFilters.forEach((filterWrapper, key2) => {
|
|
17363
17363
|
const model = this.getModelFromFilterWrapper(filterWrapper);
|
|
17364
17364
|
if (_exists(model)) {
|
|
17365
|
-
result[
|
|
17365
|
+
result[key2] = model;
|
|
17366
17366
|
}
|
|
17367
17367
|
});
|
|
17368
17368
|
if (!excludeInitialState) {
|
|
@@ -17849,26 +17849,26 @@ var ColumnFilterService = class extends BeanStub {
|
|
|
17849
17849
|
const gridColumns = this.columnModel.getCols();
|
|
17850
17850
|
return gridColumns.some((col) => col.getColDef().floatingFilter);
|
|
17851
17851
|
}
|
|
17852
|
-
getFilterInstance(
|
|
17852
|
+
getFilterInstance(key2, callback) {
|
|
17853
17853
|
if (!callback) {
|
|
17854
17854
|
return void 0;
|
|
17855
17855
|
}
|
|
17856
|
-
this.getFilterInstanceImpl(
|
|
17856
|
+
this.getFilterInstanceImpl(key2).then((filter) => {
|
|
17857
17857
|
const unwrapped = _unwrapUserComp(filter);
|
|
17858
17858
|
callback(unwrapped);
|
|
17859
17859
|
});
|
|
17860
17860
|
return void 0;
|
|
17861
17861
|
}
|
|
17862
|
-
getColumnFilterInstance(
|
|
17862
|
+
getColumnFilterInstance(key2) {
|
|
17863
17863
|
return new Promise((resolve) => {
|
|
17864
|
-
this.getFilterInstanceImpl(
|
|
17864
|
+
this.getFilterInstanceImpl(key2).then((filter) => {
|
|
17865
17865
|
resolve(_unwrapUserComp(filter));
|
|
17866
17866
|
});
|
|
17867
17867
|
});
|
|
17868
17868
|
}
|
|
17869
|
-
getFilterInstanceImpl(
|
|
17869
|
+
getFilterInstanceImpl(key2) {
|
|
17870
17870
|
var _a2;
|
|
17871
|
-
const column = this.columnModel.getColDefCol(
|
|
17871
|
+
const column = this.columnModel.getColDefCol(key2);
|
|
17872
17872
|
if (!column) {
|
|
17873
17873
|
return AgPromise.resolve(void 0);
|
|
17874
17874
|
}
|
|
@@ -17878,16 +17878,16 @@ var ColumnFilterService = class extends BeanStub {
|
|
|
17878
17878
|
processFilterModelUpdateQueue() {
|
|
17879
17879
|
this.filterModelUpdateQueue.forEach(({ model, source }) => this.setFilterModel(model, source));
|
|
17880
17880
|
this.filterModelUpdateQueue = [];
|
|
17881
|
-
this.columnFilterModelUpdateQueue.forEach(({ key, model, resolve }) => {
|
|
17882
|
-
this.setColumnFilterModel(
|
|
17881
|
+
this.columnFilterModelUpdateQueue.forEach(({ key: key2, model, resolve }) => {
|
|
17882
|
+
this.setColumnFilterModel(key2, model).then(() => resolve());
|
|
17883
17883
|
});
|
|
17884
17884
|
this.columnFilterModelUpdateQueue = [];
|
|
17885
17885
|
}
|
|
17886
|
-
getColumnFilterModel(
|
|
17887
|
-
const filterWrapper = this.getFilterWrapper(
|
|
17886
|
+
getColumnFilterModel(key2) {
|
|
17887
|
+
const filterWrapper = this.getFilterWrapper(key2);
|
|
17888
17888
|
return filterWrapper ? this.getModelFromFilterWrapper(filterWrapper) : null;
|
|
17889
17889
|
}
|
|
17890
|
-
setColumnFilterModel(
|
|
17890
|
+
setColumnFilterModel(key2, model) {
|
|
17891
17891
|
var _a2;
|
|
17892
17892
|
if ((_a2 = this.dataTypeService) == null ? void 0 : _a2.isPendingInference()) {
|
|
17893
17893
|
let resolve = () => {
|
|
@@ -17895,10 +17895,10 @@ var ColumnFilterService = class extends BeanStub {
|
|
|
17895
17895
|
const promise = new Promise((res) => {
|
|
17896
17896
|
resolve = res;
|
|
17897
17897
|
});
|
|
17898
|
-
this.columnFilterModelUpdateQueue.push({ key, model, resolve });
|
|
17898
|
+
this.columnFilterModelUpdateQueue.push({ key: key2, model, resolve });
|
|
17899
17899
|
return promise;
|
|
17900
17900
|
}
|
|
17901
|
-
const column = this.columnModel.getColDefCol(
|
|
17901
|
+
const column = this.columnModel.getColDefCol(key2);
|
|
17902
17902
|
const filterWrapper = column ? this.getOrCreateFilterWrapper(column) : null;
|
|
17903
17903
|
const convertPromise = (promise) => {
|
|
17904
17904
|
return new Promise((resolve) => {
|
|
@@ -17907,8 +17907,8 @@ var ColumnFilterService = class extends BeanStub {
|
|
|
17907
17907
|
};
|
|
17908
17908
|
return filterWrapper ? convertPromise(this.setModelOnFilterWrapper(filterWrapper.filterPromise, model)) : Promise.resolve();
|
|
17909
17909
|
}
|
|
17910
|
-
getFilterWrapper(
|
|
17911
|
-
const column = this.columnModel.getColDefCol(
|
|
17910
|
+
getFilterWrapper(key2) {
|
|
17911
|
+
const column = this.columnModel.getColDefCol(key2);
|
|
17912
17912
|
return column ? this.cachedFilter(column) ?? null : null;
|
|
17913
17913
|
}
|
|
17914
17914
|
setColDefPropertiesForDataType(colDef, dataTypeDefinition, formatValue) {
|
|
@@ -20305,10 +20305,10 @@ var ResizeFeature = class extends BeanStub {
|
|
|
20305
20305
|
this.ctrl.setRefreshFunction("resize", refresh);
|
|
20306
20306
|
}
|
|
20307
20307
|
onResizing(finished, resizeAmount) {
|
|
20308
|
-
const { column:
|
|
20308
|
+
const { column: key2, lastResizeAmount, resizeStartWidth } = this;
|
|
20309
20309
|
const resizeAmountNormalised = this.normaliseResizeAmount(resizeAmount);
|
|
20310
20310
|
const newWidth = resizeStartWidth + resizeAmountNormalised;
|
|
20311
|
-
const columnWidths = [{ key, newWidth }];
|
|
20311
|
+
const columnWidths = [{ key: key2, newWidth }];
|
|
20312
20312
|
if (this.column.getPinned()) {
|
|
20313
20313
|
const leftWidth = this.pinnedWidthService.getPinnedLeftWidth();
|
|
20314
20314
|
const rightWidth = this.pinnedWidthService.getPinnedRightWidth();
|
|
@@ -21053,7 +21053,7 @@ var HeaderCellCtrl = class extends AbstractHeaderCellCtrl {
|
|
|
21053
21053
|
if (!this.eGui.contains(_getActiveDomElement(this.beans.gos))) {
|
|
21054
21054
|
return;
|
|
21055
21055
|
}
|
|
21056
|
-
const ariaDescription = Array.from(this.ariaDescriptionProperties.keys()).sort((a, b) => a === "filter" ? -1 : b.charCodeAt(0) - a.charCodeAt(0)).map((
|
|
21056
|
+
const ariaDescription = Array.from(this.ariaDescriptionProperties.keys()).sort((a, b) => a === "filter" ? -1 : b.charCodeAt(0) - a.charCodeAt(0)).map((key2) => this.ariaDescriptionProperties.get(key2)).join(". ");
|
|
21057
21057
|
this.beans.ariaAnnouncementService.announceValue(ariaDescription, "columnHeader");
|
|
21058
21058
|
}
|
|
21059
21059
|
refreshAria() {
|
|
@@ -23123,8 +23123,8 @@ var GridBodyScrollFeature = class extends BeanStub {
|
|
|
23123
23123
|
this.animationFrameService.flushAllFrames();
|
|
23124
23124
|
});
|
|
23125
23125
|
}
|
|
23126
|
-
ensureColumnVisible(
|
|
23127
|
-
const column = this.columnModel.getCol(
|
|
23126
|
+
ensureColumnVisible(key2, position = "auto") {
|
|
23127
|
+
const column = this.columnModel.getCol(key2);
|
|
23128
23128
|
if (!column) {
|
|
23129
23129
|
return;
|
|
23130
23130
|
}
|
|
@@ -23662,8 +23662,8 @@ var CellKeyboardListenerFeature = class extends BeanStub {
|
|
|
23662
23662
|
this.eGui = eGui;
|
|
23663
23663
|
}
|
|
23664
23664
|
onKeyDown(event) {
|
|
23665
|
-
const
|
|
23666
|
-
switch (
|
|
23665
|
+
const key2 = event.key;
|
|
23666
|
+
switch (key2) {
|
|
23667
23667
|
case KeyCode.ENTER:
|
|
23668
23668
|
this.onEnterKeyDown(event);
|
|
23669
23669
|
break;
|
|
@@ -23678,24 +23678,24 @@ var CellKeyboardListenerFeature = class extends BeanStub {
|
|
|
23678
23678
|
break;
|
|
23679
23679
|
case KeyCode.BACKSPACE:
|
|
23680
23680
|
case KeyCode.DELETE:
|
|
23681
|
-
this.onBackspaceOrDeleteKeyDown(
|
|
23681
|
+
this.onBackspaceOrDeleteKeyDown(key2, event);
|
|
23682
23682
|
break;
|
|
23683
23683
|
case KeyCode.DOWN:
|
|
23684
23684
|
case KeyCode.UP:
|
|
23685
23685
|
case KeyCode.RIGHT:
|
|
23686
23686
|
case KeyCode.LEFT:
|
|
23687
|
-
this.onNavigationKeyDown(event,
|
|
23687
|
+
this.onNavigationKeyDown(event, key2);
|
|
23688
23688
|
break;
|
|
23689
23689
|
}
|
|
23690
23690
|
}
|
|
23691
|
-
onNavigationKeyDown(event,
|
|
23691
|
+
onNavigationKeyDown(event, key2) {
|
|
23692
23692
|
if (this.cellCtrl.isEditing()) {
|
|
23693
23693
|
return;
|
|
23694
23694
|
}
|
|
23695
23695
|
if (event.shiftKey && this.cellCtrl.isRangeSelectionEnabled()) {
|
|
23696
23696
|
this.onShiftRangeSelect(event);
|
|
23697
23697
|
} else {
|
|
23698
|
-
this.beans.navigationService.navigateToNextCell(event,
|
|
23698
|
+
this.beans.navigationService.navigateToNextCell(event, key2, this.cellCtrl.getCellPosition(), true);
|
|
23699
23699
|
}
|
|
23700
23700
|
event.preventDefault();
|
|
23701
23701
|
}
|
|
@@ -23711,14 +23711,14 @@ var CellKeyboardListenerFeature = class extends BeanStub {
|
|
|
23711
23711
|
onTabKeyDown(event) {
|
|
23712
23712
|
this.beans.navigationService.onTabKeyDown(this.cellCtrl, event);
|
|
23713
23713
|
}
|
|
23714
|
-
onBackspaceOrDeleteKeyDown(
|
|
23714
|
+
onBackspaceOrDeleteKeyDown(key2, event) {
|
|
23715
23715
|
const { cellCtrl, beans, rowNode } = this;
|
|
23716
23716
|
const { gos, rangeService, eventService } = beans;
|
|
23717
23717
|
if (cellCtrl.isEditing()) {
|
|
23718
23718
|
return;
|
|
23719
23719
|
}
|
|
23720
23720
|
eventService.dispatchEvent({ type: "keyShortcutChangedCellStart" });
|
|
23721
|
-
if (_isDeleteKey(
|
|
23721
|
+
if (_isDeleteKey(key2, gos.get("enableCellEditingOnBackspace"))) {
|
|
23722
23722
|
if (rangeService && _isCellSelectionEnabled(gos)) {
|
|
23723
23723
|
rangeService.clearCellRangeCellValues({ dispatchWrapperEvents: true, wrapperEventSource: "deleteKey" });
|
|
23724
23724
|
} else if (cellCtrl.isCellEditable()) {
|
|
@@ -23727,7 +23727,7 @@ var CellKeyboardListenerFeature = class extends BeanStub {
|
|
|
23727
23727
|
rowNode.setDataValue(column, emptyValue, "cellClear");
|
|
23728
23728
|
}
|
|
23729
23729
|
} else {
|
|
23730
|
-
cellCtrl.startRowOrCellEdit(
|
|
23730
|
+
cellCtrl.startRowOrCellEdit(key2, event);
|
|
23731
23731
|
}
|
|
23732
23732
|
eventService.dispatchEvent({ type: "keyShortcutChangedCellEnd" });
|
|
23733
23733
|
}
|
|
@@ -23736,8 +23736,8 @@ var CellKeyboardListenerFeature = class extends BeanStub {
|
|
|
23736
23736
|
this.cellCtrl.stopEditingAndFocus(false, e.shiftKey);
|
|
23737
23737
|
} else {
|
|
23738
23738
|
if (this.beans.gos.get("enterNavigatesVertically")) {
|
|
23739
|
-
const
|
|
23740
|
-
this.beans.navigationService.navigateToNextCell(null,
|
|
23739
|
+
const key2 = e.shiftKey ? KeyCode.UP : KeyCode.DOWN;
|
|
23740
|
+
this.beans.navigationService.navigateToNextCell(null, key2, this.cellCtrl.getCellPosition(), false);
|
|
23741
23741
|
} else {
|
|
23742
23742
|
this.cellCtrl.startRowOrCellEdit(KeyCode.ENTER, e);
|
|
23743
23743
|
if (this.cellCtrl.isEditing()) {
|
|
@@ -23764,11 +23764,11 @@ var CellKeyboardListenerFeature = class extends BeanStub {
|
|
|
23764
23764
|
if (eventOnChildComponent || this.cellCtrl.isEditing()) {
|
|
23765
23765
|
return;
|
|
23766
23766
|
}
|
|
23767
|
-
const
|
|
23768
|
-
if (
|
|
23767
|
+
const key2 = event.key;
|
|
23768
|
+
if (key2 === " ") {
|
|
23769
23769
|
this.onSpaceKeyDown(event);
|
|
23770
23770
|
} else {
|
|
23771
|
-
if (this.cellCtrl.startRowOrCellEdit(
|
|
23771
|
+
if (this.cellCtrl.startRowOrCellEdit(key2, event)) {
|
|
23772
23772
|
event.preventDefault();
|
|
23773
23773
|
}
|
|
23774
23774
|
}
|
|
@@ -24522,18 +24522,18 @@ var _CellCtrl = class _CellCtrl2 extends BeanStub {
|
|
|
24522
24522
|
return selectionChanged || rowDragChanged || dndSourceChanged || autoHeightChanged;
|
|
24523
24523
|
}
|
|
24524
24524
|
// either called internally if single cell editing, or called by rowRenderer if row editing
|
|
24525
|
-
startEditing(
|
|
24525
|
+
startEditing(key2 = null, cellStartedEdit = false, event = null) {
|
|
24526
24526
|
const { editService } = this.beans;
|
|
24527
24527
|
if (!this.isCellEditable() || this.editing || !editService) {
|
|
24528
24528
|
return true;
|
|
24529
24529
|
}
|
|
24530
24530
|
if (!this.cellComp) {
|
|
24531
24531
|
this.onCellCompAttachedFuncs.push(() => {
|
|
24532
|
-
this.startEditing(
|
|
24532
|
+
this.startEditing(key2, cellStartedEdit, event);
|
|
24533
24533
|
});
|
|
24534
24534
|
return true;
|
|
24535
24535
|
}
|
|
24536
|
-
return editService.startEditing(this,
|
|
24536
|
+
return editService.startEditing(this, key2, cellStartedEdit, event);
|
|
24537
24537
|
}
|
|
24538
24538
|
setEditing(editing, compDetails) {
|
|
24539
24539
|
this.editCompDetails = compDetails;
|
|
@@ -24831,17 +24831,17 @@ var _CellCtrl = class _CellCtrl2 extends BeanStub {
|
|
|
24831
24831
|
return this.editing;
|
|
24832
24832
|
}
|
|
24833
24833
|
// called by rowRenderer when user navigates via tab key
|
|
24834
|
-
startRowOrCellEdit(
|
|
24834
|
+
startRowOrCellEdit(key2, event = null) {
|
|
24835
24835
|
if (!this.cellComp) {
|
|
24836
24836
|
this.onCellCompAttachedFuncs.push(() => {
|
|
24837
|
-
this.startRowOrCellEdit(
|
|
24837
|
+
this.startRowOrCellEdit(key2, event);
|
|
24838
24838
|
});
|
|
24839
24839
|
return true;
|
|
24840
24840
|
}
|
|
24841
24841
|
if (this.beans.gos.get("editType") === "fullRow") {
|
|
24842
|
-
return this.rowCtrl.startRowEditing(
|
|
24842
|
+
return this.rowCtrl.startRowEditing(key2, this);
|
|
24843
24843
|
} else {
|
|
24844
|
-
return this.startEditing(
|
|
24844
|
+
return this.startEditing(key2, true, event);
|
|
24845
24845
|
}
|
|
24846
24846
|
}
|
|
24847
24847
|
getRowCtrl() {
|
|
@@ -26029,12 +26029,12 @@ var _RowCtrl = class _RowCtrl2 extends BeanStub {
|
|
|
26029
26029
|
setEditingRow(value) {
|
|
26030
26030
|
this.editingRow = value;
|
|
26031
26031
|
}
|
|
26032
|
-
startRowEditing(
|
|
26032
|
+
startRowEditing(key2 = null, sourceRenderedCell = null, event = null) {
|
|
26033
26033
|
var _a2;
|
|
26034
26034
|
if (this.editingRow) {
|
|
26035
26035
|
return true;
|
|
26036
26036
|
}
|
|
26037
|
-
return ((_a2 = this.beans.rowEditService) == null ? void 0 : _a2.startEditing(this,
|
|
26037
|
+
return ((_a2 = this.beans.rowEditService) == null ? void 0 : _a2.startEditing(this, key2, sourceRenderedCell, event)) ?? true;
|
|
26038
26038
|
}
|
|
26039
26039
|
getAllCellCtrls() {
|
|
26040
26040
|
if (this.leftCellCtrls.list.length === 0 && this.rightCellCtrls.list.length === 0) {
|
|
@@ -26520,9 +26520,9 @@ var RowContainerEventsFeature = class extends BeanStub {
|
|
|
26520
26520
|
const column = focusedCell && focusedCell.column;
|
|
26521
26521
|
const gridProcessingAllowed = !_isUserSuppressingKeyboardEvent(this.gos, keyboardEvent, rowNode, column, false);
|
|
26522
26522
|
if (gridProcessingAllowed) {
|
|
26523
|
-
const
|
|
26523
|
+
const key2 = keyboardEvent.key;
|
|
26524
26524
|
if (eventName === "keydown") {
|
|
26525
|
-
switch (
|
|
26525
|
+
switch (key2) {
|
|
26526
26526
|
case KeyCode.PAGE_HOME:
|
|
26527
26527
|
case KeyCode.PAGE_END:
|
|
26528
26528
|
case KeyCode.PAGE_UP:
|
|
@@ -27700,17 +27700,17 @@ var NavigationService = class extends BeanStub {
|
|
|
27700
27700
|
});
|
|
27701
27701
|
}
|
|
27702
27702
|
handlePageScrollingKey(event, fromFullWidth = false) {
|
|
27703
|
-
const
|
|
27703
|
+
const key2 = event.key;
|
|
27704
27704
|
const alt = event.altKey;
|
|
27705
27705
|
const ctrl = event.ctrlKey || event.metaKey;
|
|
27706
27706
|
const rangeServiceShouldHandleShift = !!this.rangeService && event.shiftKey;
|
|
27707
27707
|
const currentCell = this.mouseEventService.getCellPositionForEvent(event);
|
|
27708
27708
|
let processed = false;
|
|
27709
|
-
switch (
|
|
27709
|
+
switch (key2) {
|
|
27710
27710
|
case KeyCode.PAGE_HOME:
|
|
27711
27711
|
case KeyCode.PAGE_END:
|
|
27712
27712
|
if (!ctrl && !alt) {
|
|
27713
|
-
this.onHomeOrEndKey(
|
|
27713
|
+
this.onHomeOrEndKey(key2);
|
|
27714
27714
|
processed = true;
|
|
27715
27715
|
}
|
|
27716
27716
|
break;
|
|
@@ -27722,14 +27722,14 @@ var NavigationService = class extends BeanStub {
|
|
|
27722
27722
|
return false;
|
|
27723
27723
|
}
|
|
27724
27724
|
if (ctrl && !alt && !rangeServiceShouldHandleShift) {
|
|
27725
|
-
this.onCtrlUpDownLeftRight(
|
|
27725
|
+
this.onCtrlUpDownLeftRight(key2, currentCell);
|
|
27726
27726
|
processed = true;
|
|
27727
27727
|
}
|
|
27728
27728
|
break;
|
|
27729
27729
|
case KeyCode.PAGE_DOWN:
|
|
27730
27730
|
case KeyCode.PAGE_UP:
|
|
27731
27731
|
if (!ctrl && !alt) {
|
|
27732
|
-
processed = this.handlePageUpDown(
|
|
27732
|
+
processed = this.handlePageUpDown(key2, currentCell, fromFullWidth);
|
|
27733
27733
|
}
|
|
27734
27734
|
break;
|
|
27735
27735
|
}
|
|
@@ -27738,14 +27738,14 @@ var NavigationService = class extends BeanStub {
|
|
|
27738
27738
|
}
|
|
27739
27739
|
return processed;
|
|
27740
27740
|
}
|
|
27741
|
-
handlePageUpDown(
|
|
27741
|
+
handlePageUpDown(key2, currentCell, fromFullWidth) {
|
|
27742
27742
|
if (fromFullWidth) {
|
|
27743
27743
|
currentCell = this.focusService.getFocusedCell();
|
|
27744
27744
|
}
|
|
27745
27745
|
if (!currentCell) {
|
|
27746
27746
|
return false;
|
|
27747
27747
|
}
|
|
27748
|
-
if (
|
|
27748
|
+
if (key2 === KeyCode.PAGE_UP) {
|
|
27749
27749
|
this.onPageUp(currentCell);
|
|
27750
27750
|
} else {
|
|
27751
27751
|
this.onPageDown(currentCell);
|
|
@@ -27904,8 +27904,8 @@ var NavigationService = class extends BeanStub {
|
|
|
27904
27904
|
}
|
|
27905
27905
|
return rowHeight > this.getViewportHeight();
|
|
27906
27906
|
}
|
|
27907
|
-
onCtrlUpDownLeftRight(
|
|
27908
|
-
const cellToFocus = this.cellNavigationService.getNextCellToFocus(
|
|
27907
|
+
onCtrlUpDownLeftRight(key2, gridCell) {
|
|
27908
|
+
const cellToFocus = this.cellNavigationService.getNextCellToFocus(key2, gridCell, true);
|
|
27909
27909
|
const { rowIndex } = cellToFocus;
|
|
27910
27910
|
const column = cellToFocus.column;
|
|
27911
27911
|
this.navigateTo({
|
|
@@ -27918,8 +27918,8 @@ var NavigationService = class extends BeanStub {
|
|
|
27918
27918
|
}
|
|
27919
27919
|
// home brings focus to top left cell, end brings focus to bottom right, grid scrolled to bring
|
|
27920
27920
|
// same cell into view (which means either scroll all the way up, or all the way down).
|
|
27921
|
-
onHomeOrEndKey(
|
|
27922
|
-
const homeKey =
|
|
27921
|
+
onHomeOrEndKey(key2) {
|
|
27922
|
+
const homeKey = key2 === KeyCode.PAGE_HOME;
|
|
27923
27923
|
const allColumns = this.visibleColsService.getAllCols();
|
|
27924
27924
|
const columnToSelect = homeKey ? allColumns[0] : _last(allColumns);
|
|
27925
27925
|
const scrollIndex = homeKey ? this.pageBoundsService.getFirstRow() : this.pageBoundsService.getLastRow();
|
|
@@ -28175,18 +28175,18 @@ var NavigationService = class extends BeanStub {
|
|
|
28175
28175
|
}
|
|
28176
28176
|
// we use index for rows, but column object for columns, as the next column (by index) might not
|
|
28177
28177
|
// be visible (header grouping) so it's not reliable, so using the column object instead.
|
|
28178
|
-
navigateToNextCell(event,
|
|
28178
|
+
navigateToNextCell(event, key2, currentCell, allowUserOverride) {
|
|
28179
28179
|
let nextCell = currentCell;
|
|
28180
28180
|
let hitEdgeOfGrid = false;
|
|
28181
28181
|
while (nextCell && (nextCell === currentCell || !this.isValidNavigateCell(nextCell))) {
|
|
28182
28182
|
if (this.gos.get("enableRtl")) {
|
|
28183
|
-
if (
|
|
28183
|
+
if (key2 === KeyCode.LEFT) {
|
|
28184
28184
|
nextCell = this.getLastCellOfColSpan(nextCell);
|
|
28185
28185
|
}
|
|
28186
|
-
} else if (
|
|
28186
|
+
} else if (key2 === KeyCode.RIGHT) {
|
|
28187
28187
|
nextCell = this.getLastCellOfColSpan(nextCell);
|
|
28188
28188
|
}
|
|
28189
|
-
nextCell = this.cellNavigationService.getNextCellToFocus(
|
|
28189
|
+
nextCell = this.cellNavigationService.getNextCellToFocus(key2, nextCell);
|
|
28190
28190
|
hitEdgeOfGrid = _missing(nextCell);
|
|
28191
28191
|
}
|
|
28192
28192
|
if (hitEdgeOfGrid && event && event.key === KeyCode.UP) {
|
|
@@ -28200,7 +28200,7 @@ var NavigationService = class extends BeanStub {
|
|
|
28200
28200
|
const userFunc = this.gos.getCallback("navigateToNextCell");
|
|
28201
28201
|
if (_exists(userFunc)) {
|
|
28202
28202
|
const params = {
|
|
28203
|
-
key,
|
|
28203
|
+
key: key2,
|
|
28204
28204
|
previousCellPosition: currentCell,
|
|
28205
28205
|
nextCellPosition: nextCell ? nextCell : null,
|
|
28206
28206
|
event
|
|
@@ -28981,8 +28981,8 @@ var LargeTextCellEditor = class extends PopupComponent {
|
|
|
28981
28981
|
this.activateTabIndex();
|
|
28982
28982
|
}
|
|
28983
28983
|
onKeyDown(event) {
|
|
28984
|
-
const
|
|
28985
|
-
if (
|
|
28984
|
+
const key2 = event.key;
|
|
28985
|
+
if (key2 === KeyCode.LEFT || key2 === KeyCode.UP || key2 === KeyCode.RIGHT || key2 === KeyCode.DOWN || event.shiftKey && key2 === KeyCode.ENTER) {
|
|
28986
28986
|
event.stopPropagation();
|
|
28987
28987
|
}
|
|
28988
28988
|
}
|
|
@@ -29143,8 +29143,8 @@ var SimpleCellEditor = class extends PopupComponent {
|
|
|
29143
29143
|
}
|
|
29144
29144
|
this.addManagedElementListeners(eInput.getGui(), {
|
|
29145
29145
|
keydown: (event) => {
|
|
29146
|
-
const { key } = event;
|
|
29147
|
-
if (
|
|
29146
|
+
const { key: key2 } = event;
|
|
29147
|
+
if (key2 === KeyCode.PAGE_UP || key2 === KeyCode.PAGE_DOWN) {
|
|
29148
29148
|
event.preventDefault();
|
|
29149
29149
|
}
|
|
29150
29150
|
}
|
|
@@ -29790,9 +29790,9 @@ function getVerticalPixelRange(beans) {
|
|
|
29790
29790
|
function getHorizontalPixelRange(beans) {
|
|
29791
29791
|
return beans.ctrlsService.getGridBodyCtrl().getScrollFeature().getHScrollPosition();
|
|
29792
29792
|
}
|
|
29793
|
-
function ensureColumnVisible(beans,
|
|
29793
|
+
function ensureColumnVisible(beans, key2, position = "auto") {
|
|
29794
29794
|
beans.frameworkOverrides.wrapIncoming(
|
|
29795
|
-
() => beans.ctrlsService.getGridBodyCtrl().getScrollFeature().ensureColumnVisible(
|
|
29795
|
+
() => beans.ctrlsService.getGridBodyCtrl().getScrollFeature().ensureColumnVisible(key2, position),
|
|
29796
29796
|
"ensureVisible"
|
|
29797
29797
|
);
|
|
29798
29798
|
}
|
|
@@ -29881,9 +29881,9 @@ var EditService = class extends BeanStub {
|
|
|
29881
29881
|
this.userComponentFactory = beans.userComponentFactory;
|
|
29882
29882
|
this.valueService = beans.valueService;
|
|
29883
29883
|
}
|
|
29884
|
-
startEditing(cellCtrl,
|
|
29884
|
+
startEditing(cellCtrl, key2 = null, cellStartedEdit = false, event = null) {
|
|
29885
29885
|
var _a2;
|
|
29886
|
-
const editorParams = this.createCellEditorParams(cellCtrl,
|
|
29886
|
+
const editorParams = this.createCellEditorParams(cellCtrl, key2, cellStartedEdit);
|
|
29887
29887
|
const colDef = cellCtrl.getColumn().getColDef();
|
|
29888
29888
|
const compDetails = this.userComponentFactory.getCellEditorDetails(colDef, editorParams);
|
|
29889
29889
|
const popup = (compDetails == null ? void 0 : compDetails.popupFromSelector) != null ? compDetails.popupFromSelector : !!colDef.cellEditorPopup;
|
|
@@ -29985,12 +29985,12 @@ var EditService = class extends BeanStub {
|
|
|
29985
29985
|
cellCtrl.setSuppressRefreshCell(false);
|
|
29986
29986
|
return valueChanged;
|
|
29987
29987
|
}
|
|
29988
|
-
createCellEditorParams(cellCtrl,
|
|
29988
|
+
createCellEditorParams(cellCtrl, key2, cellStartedEdit) {
|
|
29989
29989
|
const column = cellCtrl.getColumn();
|
|
29990
29990
|
const rowNode = cellCtrl.getRowNode();
|
|
29991
29991
|
return this.gos.addGridCommonParams({
|
|
29992
29992
|
value: this.valueService.getValueForDisplay(column, rowNode),
|
|
29993
|
-
eventKey:
|
|
29993
|
+
eventKey: key2,
|
|
29994
29994
|
column,
|
|
29995
29995
|
colDef: column.getColDef(),
|
|
29996
29996
|
rowIndex: cellCtrl.getCellPosition().rowIndex,
|
|
@@ -30007,8 +30007,8 @@ var EditService = class extends BeanStub {
|
|
|
30007
30007
|
navigateAfterEdit(shiftKey, cellPosition) {
|
|
30008
30008
|
const enterNavigatesVerticallyAfterEdit = this.gos.get("enterNavigatesVerticallyAfterEdit");
|
|
30009
30009
|
if (enterNavigatesVerticallyAfterEdit) {
|
|
30010
|
-
const
|
|
30011
|
-
this.navigationService.navigateToNextCell(null,
|
|
30010
|
+
const key2 = shiftKey ? KeyCode.UP : KeyCode.DOWN;
|
|
30011
|
+
this.navigationService.navigateToNextCell(null, key2, cellPosition, false);
|
|
30012
30012
|
}
|
|
30013
30013
|
}
|
|
30014
30014
|
};
|
|
@@ -30017,12 +30017,12 @@ var RowEditService = class extends BeanStub {
|
|
|
30017
30017
|
super(...arguments);
|
|
30018
30018
|
this.beanName = "rowEditService";
|
|
30019
30019
|
}
|
|
30020
|
-
startEditing(rowCtrl,
|
|
30020
|
+
startEditing(rowCtrl, key2 = null, sourceRenderedCell = null, event = null) {
|
|
30021
30021
|
let preventDefault = true;
|
|
30022
30022
|
const atLeastOneEditing = rowCtrl.getAllCellCtrls().reduce((prev, cellCtrl) => {
|
|
30023
30023
|
const cellStartedEdit = cellCtrl === sourceRenderedCell;
|
|
30024
30024
|
if (cellStartedEdit) {
|
|
30025
|
-
preventDefault = cellCtrl.startEditing(
|
|
30025
|
+
preventDefault = cellCtrl.startEditing(key2, cellStartedEdit, event);
|
|
30026
30026
|
} else {
|
|
30027
30027
|
cellCtrl.startEditing(null, cellStartedEdit, event);
|
|
30028
30028
|
}
|
|
@@ -31129,8 +31129,8 @@ var RowRenderer = class extends BeanStub {
|
|
|
31129
31129
|
const stickyTopRowCtrls = this.stickyRowFeature && this.stickyRowFeature.getStickyTopRowCtrls() || [];
|
|
31130
31130
|
const stickyBottomRowCtrls = this.stickyRowFeature && this.stickyRowFeature.getStickyBottomRowCtrls() || [];
|
|
31131
31131
|
const res = [...this.topRowCtrls, ...this.bottomRowCtrls, ...stickyTopRowCtrls, ...stickyBottomRowCtrls];
|
|
31132
|
-
for (const
|
|
31133
|
-
res.push(this.rowCtrlsByRowIndex[
|
|
31132
|
+
for (const key2 in this.rowCtrlsByRowIndex) {
|
|
31133
|
+
res.push(this.rowCtrlsByRowIndex[key2]);
|
|
31134
31134
|
}
|
|
31135
31135
|
return res;
|
|
31136
31136
|
}
|
|
@@ -32875,8 +32875,8 @@ var PopupService = class extends BeanStub {
|
|
|
32875
32875
|
if (!wrapperEl.contains(_getActiveDomElement(this.gos))) {
|
|
32876
32876
|
return;
|
|
32877
32877
|
}
|
|
32878
|
-
const
|
|
32879
|
-
if (
|
|
32878
|
+
const key2 = event.key;
|
|
32879
|
+
if (key2 === KeyCode.ESCAPE && !_isStopPropagationForAgGrid(event)) {
|
|
32880
32880
|
removeListeners({ keyboardEvent: event });
|
|
32881
32881
|
}
|
|
32882
32882
|
};
|
|
@@ -33173,16 +33173,16 @@ var CellNavigationService = class extends BeanStub {
|
|
|
33173
33173
|
this.pageBoundsService = beans.pageBoundsService;
|
|
33174
33174
|
}
|
|
33175
33175
|
// returns null if no cell to focus on, ie at the end of the grid
|
|
33176
|
-
getNextCellToFocus(
|
|
33176
|
+
getNextCellToFocus(key2, focusedCell, ctrlPressed = false) {
|
|
33177
33177
|
if (ctrlPressed) {
|
|
33178
|
-
return this.getNextCellToFocusWithCtrlPressed(
|
|
33178
|
+
return this.getNextCellToFocusWithCtrlPressed(key2, focusedCell);
|
|
33179
33179
|
}
|
|
33180
|
-
return this.getNextCellToFocusWithoutCtrlPressed(
|
|
33180
|
+
return this.getNextCellToFocusWithoutCtrlPressed(key2, focusedCell);
|
|
33181
33181
|
}
|
|
33182
|
-
getNextCellToFocusWithCtrlPressed(
|
|
33183
|
-
const upKey =
|
|
33184
|
-
const downKey =
|
|
33185
|
-
const leftKey =
|
|
33182
|
+
getNextCellToFocusWithCtrlPressed(key2, focusedCell) {
|
|
33183
|
+
const upKey = key2 === KeyCode.UP;
|
|
33184
|
+
const downKey = key2 === KeyCode.DOWN;
|
|
33185
|
+
const leftKey = key2 === KeyCode.LEFT;
|
|
33186
33186
|
let column;
|
|
33187
33187
|
let rowIndex;
|
|
33188
33188
|
if (upKey || downKey) {
|
|
@@ -33200,11 +33200,11 @@ var CellNavigationService = class extends BeanStub {
|
|
|
33200
33200
|
column
|
|
33201
33201
|
};
|
|
33202
33202
|
}
|
|
33203
|
-
getNextCellToFocusWithoutCtrlPressed(
|
|
33203
|
+
getNextCellToFocusWithoutCtrlPressed(key2, focusedCell) {
|
|
33204
33204
|
let pointer = focusedCell;
|
|
33205
33205
|
let finished = false;
|
|
33206
33206
|
while (!finished) {
|
|
33207
|
-
switch (
|
|
33207
|
+
switch (key2) {
|
|
33208
33208
|
case KeyCode.UP:
|
|
33209
33209
|
pointer = this.getCellAbove(pointer);
|
|
33210
33210
|
break;
|
|
@@ -33227,7 +33227,7 @@ var CellNavigationService = class extends BeanStub {
|
|
|
33227
33227
|
break;
|
|
33228
33228
|
default:
|
|
33229
33229
|
pointer = null;
|
|
33230
|
-
_warnOnce("unknown key for navigation ",
|
|
33230
|
+
_warnOnce("unknown key for navigation ", key2);
|
|
33231
33231
|
break;
|
|
33232
33232
|
}
|
|
33233
33233
|
if (pointer) {
|
|
@@ -33470,8 +33470,8 @@ var CellNavigationService = class extends BeanStub {
|
|
|
33470
33470
|
}
|
|
33471
33471
|
};
|
|
33472
33472
|
var mod = (moduleName, input) => {
|
|
33473
|
-
for (const
|
|
33474
|
-
input[
|
|
33473
|
+
for (const key2 in input) {
|
|
33474
|
+
input[key2] = moduleName;
|
|
33475
33475
|
}
|
|
33476
33476
|
return input;
|
|
33477
33477
|
};
|
|
@@ -33790,8 +33790,8 @@ var ApiFunctionService = class extends BeanStub {
|
|
|
33790
33790
|
this.beans = null;
|
|
33791
33791
|
this.preDestroyLink = "";
|
|
33792
33792
|
const { api } = this;
|
|
33793
|
-
for (const
|
|
33794
|
-
api[
|
|
33793
|
+
for (const key2 in gridApiFunctionsMap) {
|
|
33794
|
+
api[key2] = this.makeApi(key2)[key2];
|
|
33795
33795
|
}
|
|
33796
33796
|
}
|
|
33797
33797
|
wireBeans(beans) {
|
|
@@ -35268,10 +35268,10 @@ var _FocusService = class _FocusService2 extends BeanStub {
|
|
|
35268
35268
|
}
|
|
35269
35269
|
return this.focusedHeaderPosition;
|
|
35270
35270
|
}
|
|
35271
|
-
isDomDataMissingInHierarchy(eBrowserCell,
|
|
35271
|
+
isDomDataMissingInHierarchy(eBrowserCell, key2) {
|
|
35272
35272
|
let ePointer = eBrowserCell;
|
|
35273
35273
|
while (ePointer) {
|
|
35274
|
-
const data = _getDomData(this.gos, ePointer,
|
|
35274
|
+
const data = _getDomData(this.gos, ePointer, key2);
|
|
35275
35275
|
if (data) {
|
|
35276
35276
|
return false;
|
|
35277
35277
|
}
|
|
@@ -36182,8 +36182,8 @@ var AlignedGridsModule = _defineModule({
|
|
|
36182
36182
|
moduleName: "@ag-grid-community/aligned-grid",
|
|
36183
36183
|
beans: [AlignedGridsService]
|
|
36184
36184
|
});
|
|
36185
|
-
function getColumnDef(beans,
|
|
36186
|
-
const column = beans.columnModel.getColDefCol(
|
|
36185
|
+
function getColumnDef(beans, key2) {
|
|
36186
|
+
const column = beans.columnModel.getColDefCol(key2);
|
|
36187
36187
|
if (column) {
|
|
36188
36188
|
return column.getColDef();
|
|
36189
36189
|
}
|
|
@@ -36214,8 +36214,8 @@ function getDisplayNameForColumn(beans, column, location) {
|
|
|
36214
36214
|
function getDisplayNameForColumnGroup(beans, columnGroup, location) {
|
|
36215
36215
|
return beans.columnNameService.getDisplayNameForColumnGroup(columnGroup, location) || "";
|
|
36216
36216
|
}
|
|
36217
|
-
function getColumn(beans,
|
|
36218
|
-
return beans.columnModel.getColDefCol(
|
|
36217
|
+
function getColumn(beans, key2) {
|
|
36218
|
+
return beans.columnModel.getColDefCol(key2);
|
|
36219
36219
|
}
|
|
36220
36220
|
function getColumns(beans) {
|
|
36221
36221
|
return beans.columnModel.getColDefCols();
|
|
@@ -36253,14 +36253,14 @@ function getDisplayedColAfter(beans, col) {
|
|
|
36253
36253
|
function getDisplayedColBefore(beans, col) {
|
|
36254
36254
|
return beans.visibleColsService.getColBefore(col);
|
|
36255
36255
|
}
|
|
36256
|
-
function setColumnVisible(beans,
|
|
36257
|
-
beans.columnModel.setColsVisible([
|
|
36256
|
+
function setColumnVisible(beans, key2, visible) {
|
|
36257
|
+
beans.columnModel.setColsVisible([key2], visible, "api");
|
|
36258
36258
|
}
|
|
36259
36259
|
function setColumnsVisible(beans, keys, visible) {
|
|
36260
36260
|
beans.columnModel.setColsVisible(keys, visible, "api");
|
|
36261
36261
|
}
|
|
36262
|
-
function setColumnPinned(beans,
|
|
36263
|
-
beans.columnModel.setColsPinned([
|
|
36262
|
+
function setColumnPinned(beans, key2, pinned) {
|
|
36263
|
+
beans.columnModel.setColsPinned([key2], pinned, "api");
|
|
36264
36264
|
}
|
|
36265
36265
|
function setColumnsPinned(beans, keys, pinned) {
|
|
36266
36266
|
beans.columnModel.setColsPinned(keys, pinned, "api");
|
|
@@ -36283,8 +36283,8 @@ function getAllDisplayedColumns(beans) {
|
|
|
36283
36283
|
function getAllDisplayedVirtualColumns(beans) {
|
|
36284
36284
|
return beans.columnViewportService.getViewportColumns();
|
|
36285
36285
|
}
|
|
36286
|
-
function moveColumn(beans,
|
|
36287
|
-
beans.columnMoveService.moveColumns([
|
|
36286
|
+
function moveColumn(beans, key2, toIndex) {
|
|
36287
|
+
beans.columnMoveService.moveColumns([key2], toIndex, "api");
|
|
36288
36288
|
}
|
|
36289
36289
|
function moveColumnByIndex(beans, fromIndex, toIndex) {
|
|
36290
36290
|
beans.columnMoveService.moveColumnByIndex(fromIndex, toIndex, "api");
|
|
@@ -36292,8 +36292,8 @@ function moveColumnByIndex(beans, fromIndex, toIndex) {
|
|
|
36292
36292
|
function moveColumns(beans, columnsToMoveKeys, toIndex) {
|
|
36293
36293
|
beans.columnMoveService.moveColumns(columnsToMoveKeys, toIndex, "api");
|
|
36294
36294
|
}
|
|
36295
|
-
function setColumnWidth(beans,
|
|
36296
|
-
beans.columnSizeService.setColumnWidths([{ key, newWidth }], false, finished, source);
|
|
36295
|
+
function setColumnWidth(beans, key2, newWidth, finished = true, source = "api") {
|
|
36296
|
+
beans.columnSizeService.setColumnWidths([{ key: key2, newWidth }], false, finished, source);
|
|
36297
36297
|
}
|
|
36298
36298
|
function setColumnWidths(beans, columnWidths, finished = true, source = "api") {
|
|
36299
36299
|
beans.columnSizeService.setColumnWidths(columnWidths, false, finished, source);
|
|
@@ -36310,8 +36310,8 @@ function getRightDisplayedColumnGroups(beans) {
|
|
|
36310
36310
|
function getAllDisplayedColumnGroups(beans) {
|
|
36311
36311
|
return beans.visibleColsService.getAllTrees();
|
|
36312
36312
|
}
|
|
36313
|
-
function autoSizeColumn(beans,
|
|
36314
|
-
return beans.columnAutosizeService.autoSizeCols({ colKeys: [
|
|
36313
|
+
function autoSizeColumn(beans, key2, skipHeader) {
|
|
36314
|
+
return beans.columnAutosizeService.autoSizeCols({ colKeys: [key2], skipHeader, source: "api" });
|
|
36315
36315
|
}
|
|
36316
36316
|
function autoSizeColumns(beans, keys, skipHeader) {
|
|
36317
36317
|
beans.columnAutosizeService.autoSizeCols({ colKeys: keys, skipHeader, source: "api" });
|
|
@@ -36710,11 +36710,11 @@ var DataTypeService = class extends BeanStub {
|
|
|
36710
36710
|
}
|
|
36711
36711
|
getUpdatedColumnState(column, columnStateUpdates) {
|
|
36712
36712
|
const columnState = this.columnApplyStateService.getColumnStateFromColDef(column);
|
|
36713
|
-
columnStateUpdates.forEach((
|
|
36714
|
-
delete columnState[
|
|
36715
|
-
if (
|
|
36713
|
+
columnStateUpdates.forEach((key2) => {
|
|
36714
|
+
delete columnState[key2];
|
|
36715
|
+
if (key2 === "rowGroup") {
|
|
36716
36716
|
delete columnState.rowGroupIndex;
|
|
36717
|
-
} else if (
|
|
36717
|
+
} else if (key2 === "pivot") {
|
|
36718
36718
|
delete columnState.pivotIndex;
|
|
36719
36719
|
}
|
|
36720
36720
|
});
|
|
@@ -37109,11 +37109,11 @@ function destroy(beans) {
|
|
|
37109
37109
|
function isDestroyed(beans) {
|
|
37110
37110
|
return beans.gridDestroyService.isDestroyCalled();
|
|
37111
37111
|
}
|
|
37112
|
-
function getGridOption(beans,
|
|
37113
|
-
return beans.gos.get(
|
|
37112
|
+
function getGridOption(beans, key2) {
|
|
37113
|
+
return beans.gos.get(key2);
|
|
37114
37114
|
}
|
|
37115
|
-
function setGridOption(beans,
|
|
37116
|
-
updateGridOptions(beans, { [
|
|
37115
|
+
function setGridOption(beans, key2, value) {
|
|
37116
|
+
updateGridOptions(beans, { [key2]: value });
|
|
37117
37117
|
}
|
|
37118
37118
|
function updateGridOptions(beans, options) {
|
|
37119
37119
|
beans.gos.updateGridOptions({ options });
|
|
@@ -37419,9 +37419,9 @@ function migrateV32_1(state) {
|
|
|
37419
37419
|
state.cellSelection = jsonGet(state, "rangeSelection");
|
|
37420
37420
|
return state;
|
|
37421
37421
|
}
|
|
37422
|
-
function jsonGet(json,
|
|
37422
|
+
function jsonGet(json, key2) {
|
|
37423
37423
|
if (json && typeof json === "object") {
|
|
37424
|
-
return json[
|
|
37424
|
+
return json[key2];
|
|
37425
37425
|
}
|
|
37426
37426
|
}
|
|
37427
37427
|
var StateService = class extends BeanStub {
|
|
@@ -38026,8 +38026,8 @@ var StateService = class extends BeanStub {
|
|
|
38026
38026
|
updateColumnState(features) {
|
|
38027
38027
|
const newColumnState = this.getColumnState();
|
|
38028
38028
|
let hasChanged = false;
|
|
38029
|
-
Object.entries(newColumnState).forEach(([
|
|
38030
|
-
if (!_jsonEquals(value, this.cachedState[
|
|
38029
|
+
Object.entries(newColumnState).forEach(([key2, value]) => {
|
|
38030
|
+
if (!_jsonEquals(value, this.cachedState[key2])) {
|
|
38031
38031
|
hasChanged = true;
|
|
38032
38032
|
}
|
|
38033
38033
|
});
|
|
@@ -38039,24 +38039,24 @@ var StateService = class extends BeanStub {
|
|
|
38039
38039
|
this.dispatchStateUpdateEvent(features);
|
|
38040
38040
|
}
|
|
38041
38041
|
}
|
|
38042
|
-
updateCachedState(
|
|
38043
|
-
const existingValue = this.cachedState[
|
|
38044
|
-
this.setCachedStateValue(
|
|
38042
|
+
updateCachedState(key2, value) {
|
|
38043
|
+
const existingValue = this.cachedState[key2];
|
|
38044
|
+
this.setCachedStateValue(key2, value);
|
|
38045
38045
|
if (!_jsonEquals(value, existingValue)) {
|
|
38046
|
-
this.dispatchStateUpdateEvent([
|
|
38046
|
+
this.dispatchStateUpdateEvent([key2]);
|
|
38047
38047
|
}
|
|
38048
38048
|
}
|
|
38049
|
-
setCachedStateValue(
|
|
38049
|
+
setCachedStateValue(key2, value) {
|
|
38050
38050
|
this.cachedState = {
|
|
38051
38051
|
...this.cachedState,
|
|
38052
|
-
[
|
|
38052
|
+
[key2]: value
|
|
38053
38053
|
};
|
|
38054
38054
|
}
|
|
38055
38055
|
refreshStaleState() {
|
|
38056
|
-
this.staleStateKeys.forEach((
|
|
38057
|
-
switch (
|
|
38056
|
+
this.staleStateKeys.forEach((key2) => {
|
|
38057
|
+
switch (key2) {
|
|
38058
38058
|
case "rowSelection":
|
|
38059
|
-
this.setCachedStateValue(
|
|
38059
|
+
this.setCachedStateValue(key2, this.getRowSelectionState());
|
|
38060
38060
|
break;
|
|
38061
38061
|
}
|
|
38062
38062
|
});
|
|
@@ -39743,25 +39743,25 @@ var ValidationService = class extends BeanStub {
|
|
|
39743
39743
|
}
|
|
39744
39744
|
const warnings = /* @__PURE__ */ new Set();
|
|
39745
39745
|
const optionKeys = Object.keys(options);
|
|
39746
|
-
optionKeys.forEach((
|
|
39747
|
-
const deprecation = deprecations[
|
|
39746
|
+
optionKeys.forEach((key2) => {
|
|
39747
|
+
const deprecation = deprecations[key2];
|
|
39748
39748
|
if (deprecation) {
|
|
39749
39749
|
if ("renamed" in deprecation) {
|
|
39750
39750
|
const { renamed, version } = deprecation;
|
|
39751
39751
|
warnings.add(
|
|
39752
|
-
`As of v${version}, ${String(
|
|
39752
|
+
`As of v${version}, ${String(key2)} is deprecated. Please use ${String(renamed)} instead.`
|
|
39753
39753
|
);
|
|
39754
|
-
options[renamed] = options[
|
|
39754
|
+
options[renamed] = options[key2];
|
|
39755
39755
|
} else {
|
|
39756
39756
|
const { message, version } = deprecation;
|
|
39757
|
-
warnings.add(`As of v${version}, ${String(
|
|
39757
|
+
warnings.add(`As of v${version}, ${String(key2)} is deprecated. ${message ?? ""}`);
|
|
39758
39758
|
}
|
|
39759
39759
|
}
|
|
39760
|
-
const value = options[
|
|
39760
|
+
const value = options[key2];
|
|
39761
39761
|
if (value == null || value === false) {
|
|
39762
39762
|
return;
|
|
39763
39763
|
}
|
|
39764
|
-
const rulesOrGetter = validations[
|
|
39764
|
+
const rulesOrGetter = validations[key2];
|
|
39765
39765
|
let rules;
|
|
39766
39766
|
if (!rulesOrGetter) {
|
|
39767
39767
|
return;
|
|
@@ -39771,14 +39771,14 @@ var ValidationService = class extends BeanStub {
|
|
|
39771
39771
|
return;
|
|
39772
39772
|
}
|
|
39773
39773
|
if ("objectName" in fromGetter) {
|
|
39774
|
-
const value2 = options[
|
|
39774
|
+
const value2 = options[key2];
|
|
39775
39775
|
if (Array.isArray(value2)) {
|
|
39776
39776
|
value2.forEach((item) => {
|
|
39777
39777
|
this.processOptions(item, fromGetter);
|
|
39778
39778
|
});
|
|
39779
39779
|
return;
|
|
39780
39780
|
}
|
|
39781
|
-
this.processOptions(options[
|
|
39781
|
+
this.processOptions(options[key2], fromGetter);
|
|
39782
39782
|
return;
|
|
39783
39783
|
}
|
|
39784
39784
|
rules = fromGetter;
|
|
@@ -39789,7 +39789,7 @@ var ValidationService = class extends BeanStub {
|
|
|
39789
39789
|
if (supportedRowModels) {
|
|
39790
39790
|
const rowModel = this.gridOptions.rowModelType ?? "clientSide";
|
|
39791
39791
|
if (!supportedRowModels.includes(rowModel)) {
|
|
39792
|
-
warnings.add(`${String(
|
|
39792
|
+
warnings.add(`${String(key2)} is not supported with the '${rowModel}' row model.`);
|
|
39793
39793
|
return;
|
|
39794
39794
|
}
|
|
39795
39795
|
}
|
|
@@ -39797,9 +39797,9 @@ var ValidationService = class extends BeanStub {
|
|
|
39797
39797
|
const modules = Array.isArray(module2) ? module2 : [module2];
|
|
39798
39798
|
let allRegistered = true;
|
|
39799
39799
|
modules.forEach((m2) => {
|
|
39800
|
-
if (!this.gos.assertModuleRegistered(m2, String(
|
|
39800
|
+
if (!this.gos.assertModuleRegistered(m2, String(key2))) {
|
|
39801
39801
|
allRegistered = false;
|
|
39802
|
-
warnings.add(`${String(
|
|
39802
|
+
warnings.add(`${String(key2)} is only available when ${m2} is loaded.`);
|
|
39803
39803
|
}
|
|
39804
39804
|
});
|
|
39805
39805
|
if (!allRegistered) {
|
|
@@ -39807,7 +39807,7 @@ var ValidationService = class extends BeanStub {
|
|
|
39807
39807
|
}
|
|
39808
39808
|
}
|
|
39809
39809
|
if (dependencies) {
|
|
39810
|
-
const warning = this.checkForRequiredDependencies(
|
|
39810
|
+
const warning = this.checkForRequiredDependencies(key2, dependencies, options);
|
|
39811
39811
|
if (warning) {
|
|
39812
39812
|
warnings.add(warning);
|
|
39813
39813
|
return;
|
|
@@ -39827,10 +39827,10 @@ var ValidationService = class extends BeanStub {
|
|
|
39827
39827
|
});
|
|
39828
39828
|
}
|
|
39829
39829
|
}
|
|
39830
|
-
checkForRequiredDependencies(
|
|
39830
|
+
checkForRequiredDependencies(key2, validator, options) {
|
|
39831
39831
|
const optionEntries = Object.entries(validator);
|
|
39832
|
-
const failed = optionEntries.find(([
|
|
39833
|
-
const gridOptionValue = options[
|
|
39832
|
+
const failed = optionEntries.find(([key22, value]) => {
|
|
39833
|
+
const gridOptionValue = options[key22];
|
|
39834
39834
|
return !value.includes(gridOptionValue);
|
|
39835
39835
|
});
|
|
39836
39836
|
if (!failed) {
|
|
@@ -39838,9 +39838,9 @@ var ValidationService = class extends BeanStub {
|
|
|
39838
39838
|
}
|
|
39839
39839
|
const [failedKey, possibleOptions] = failed;
|
|
39840
39840
|
if (possibleOptions.length > 1) {
|
|
39841
|
-
return `'${String(
|
|
39841
|
+
return `'${String(key2)}' requires '${failedKey}' to be one of [${possibleOptions.join(", ")}].`;
|
|
39842
39842
|
}
|
|
39843
|
-
return `'${String(
|
|
39843
|
+
return `'${String(key2)}' requires '${failedKey}' to be ${possibleOptions[0]}.`;
|
|
39844
39844
|
}
|
|
39845
39845
|
checkProperties(object, exceptions, validProperties, containerName, docsUrl) {
|
|
39846
39846
|
const VUE_FRAMEWORK_PROPS = ["__ob__", "__v_skip", "__metadata__"];
|
|
@@ -39849,8 +39849,8 @@ var ValidationService = class extends BeanStub {
|
|
|
39849
39849
|
[...VUE_FRAMEWORK_PROPS, ...exceptions, ...validProperties],
|
|
39850
39850
|
validProperties
|
|
39851
39851
|
);
|
|
39852
|
-
_iterateObject(invalidProperties, (
|
|
39853
|
-
let message = `invalid ${containerName} property '${
|
|
39852
|
+
_iterateObject(invalidProperties, (key2, value) => {
|
|
39853
|
+
let message = `invalid ${containerName} property '${key2}' did you mean any of these: ${value.slice(0, 8).join(", ")}.`;
|
|
39854
39854
|
if (validProperties.includes("context")) {
|
|
39855
39855
|
message += `
|
|
39856
39856
|
If you are trying to annotate ${containerName} with application data, use the '${containerName}.context' property instead.`;
|
|
@@ -39932,8 +39932,8 @@ var isSelectionUIEvent = (source) => {
|
|
|
39932
39932
|
return source === "checkboxSelected" || source === "rowClicked" || source === "spaceKey" || source === "uiSelectAll" || source === "uiSelectAllCurrentPage" || source === "uiSelectAllFiltered";
|
|
39933
39933
|
};
|
|
39934
39934
|
var PROPERTY_COERCIONS = new Map([
|
|
39935
|
-
...PropertyKeys.BOOLEAN_PROPERTIES.map((
|
|
39936
|
-
...PropertyKeys.NUMBER_PROPERTIES.map((
|
|
39935
|
+
...PropertyKeys.BOOLEAN_PROPERTIES.map((key2) => [key2, toBoolean]),
|
|
39936
|
+
...PropertyKeys.NUMBER_PROPERTIES.map((key2) => [key2, toNumber]),
|
|
39937
39937
|
["groupAggFiltering", (val) => typeof val === "function" ? val : toBoolean(val)],
|
|
39938
39938
|
["pageSize", toConstrainedNum(1)],
|
|
39939
39939
|
["autoSizePadding", toConstrainedNum(0)],
|
|
@@ -39946,8 +39946,8 @@ var PROPERTY_COERCIONS = new Map([
|
|
|
39946
39946
|
["viewportRowModelPageSize", toConstrainedNum(1)],
|
|
39947
39947
|
["viewportRowModelBufferSize", toConstrainedNum(0)]
|
|
39948
39948
|
]);
|
|
39949
|
-
function getCoercedValue(
|
|
39950
|
-
const coerceFunc = PROPERTY_COERCIONS.get(
|
|
39949
|
+
function getCoercedValue(key2, value) {
|
|
39950
|
+
const coerceFunc = PROPERTY_COERCIONS.get(key2);
|
|
39951
39951
|
if (!coerceFunc) {
|
|
39952
39952
|
return value;
|
|
39953
39953
|
}
|
|
@@ -39955,9 +39955,9 @@ function getCoercedValue(key, value) {
|
|
|
39955
39955
|
}
|
|
39956
39956
|
function getCoercedGridOptions(gridOptions) {
|
|
39957
39957
|
const newGo = {};
|
|
39958
|
-
Object.entries(gridOptions).forEach(([
|
|
39959
|
-
const coercedValue = getCoercedValue(
|
|
39960
|
-
newGo[
|
|
39958
|
+
Object.entries(gridOptions).forEach(([key2, value]) => {
|
|
39959
|
+
const coercedValue = getCoercedValue(key2, value);
|
|
39960
|
+
newGo[key2] = coercedValue;
|
|
39961
39961
|
});
|
|
39962
39962
|
return newGo;
|
|
39963
39963
|
}
|
|
@@ -40055,17 +40055,17 @@ var _GridOptionsService = class _GridOptionsService2 extends BeanStub {
|
|
|
40055
40055
|
var _a2;
|
|
40056
40056
|
const changeSet = { id: _GridOptionsService2.changeSetId++, properties: [] };
|
|
40057
40057
|
const events = [];
|
|
40058
|
-
Object.entries(options).forEach(([
|
|
40059
|
-
if (source === "api" && INITIAL_GRID_OPTION_KEYS[
|
|
40060
|
-
_warnOnce(`${
|
|
40058
|
+
Object.entries(options).forEach(([key2, value]) => {
|
|
40059
|
+
if (source === "api" && INITIAL_GRID_OPTION_KEYS[key2]) {
|
|
40060
|
+
_warnOnce(`${key2} is an initial property and cannot be updated.`);
|
|
40061
40061
|
}
|
|
40062
|
-
const coercedValue = getCoercedValue(
|
|
40062
|
+
const coercedValue = getCoercedValue(key2, value);
|
|
40063
40063
|
const shouldForce = force || typeof coercedValue === "object" && source === "api";
|
|
40064
|
-
const previousValue = this.gridOptions[
|
|
40064
|
+
const previousValue = this.gridOptions[key2];
|
|
40065
40065
|
if (shouldForce || previousValue !== coercedValue) {
|
|
40066
|
-
this.gridOptions[
|
|
40066
|
+
this.gridOptions[key2] = coercedValue;
|
|
40067
40067
|
const event = {
|
|
40068
|
-
type:
|
|
40068
|
+
type: key2,
|
|
40069
40069
|
currentValue: coercedValue,
|
|
40070
40070
|
previousValue,
|
|
40071
40071
|
changeSet,
|
|
@@ -40083,11 +40083,11 @@ var _GridOptionsService = class _GridOptionsService2 extends BeanStub {
|
|
|
40083
40083
|
this.propertyEventService.dispatchEvent(event);
|
|
40084
40084
|
});
|
|
40085
40085
|
}
|
|
40086
|
-
addPropertyEventListener(
|
|
40087
|
-
this.propertyEventService.addEventListener(
|
|
40086
|
+
addPropertyEventListener(key2, listener) {
|
|
40087
|
+
this.propertyEventService.addEventListener(key2, listener);
|
|
40088
40088
|
}
|
|
40089
|
-
removePropertyEventListener(
|
|
40090
|
-
this.propertyEventService.removeEventListener(
|
|
40089
|
+
removePropertyEventListener(key2, listener) {
|
|
40090
|
+
this.propertyEventService.removeEventListener(key2, listener);
|
|
40091
40091
|
}
|
|
40092
40092
|
getDomDataKey() {
|
|
40093
40093
|
return this.domDataKey;
|
|
@@ -40261,9 +40261,9 @@ var LocaleService = class extends BeanStub {
|
|
|
40261
40261
|
getLocaleTextFunc() {
|
|
40262
40262
|
const getLocaleText = this.gos.getCallback("getLocaleText");
|
|
40263
40263
|
if (getLocaleText) {
|
|
40264
|
-
return (
|
|
40264
|
+
return (key2, defaultValue, variableValues) => {
|
|
40265
40265
|
const params = {
|
|
40266
|
-
key,
|
|
40266
|
+
key: key2,
|
|
40267
40267
|
defaultValue,
|
|
40268
40268
|
variableValues
|
|
40269
40269
|
};
|
|
@@ -40271,8 +40271,8 @@ var LocaleService = class extends BeanStub {
|
|
|
40271
40271
|
};
|
|
40272
40272
|
}
|
|
40273
40273
|
const localeText = this.gos.get("localeText");
|
|
40274
|
-
return (
|
|
40275
|
-
let localisedText = localeText && localeText[
|
|
40274
|
+
return (key2, defaultValue, variableValues) => {
|
|
40275
|
+
let localisedText = localeText && localeText[key2];
|
|
40276
40276
|
if (localisedText && variableValues && variableValues.length) {
|
|
40277
40277
|
let found = 0;
|
|
40278
40278
|
while (true) {
|
|
@@ -40488,8 +40488,8 @@ var AriaAnnouncementService = class extends BeanStub {
|
|
|
40488
40488
|
/**
|
|
40489
40489
|
* @param key used for debouncing calls
|
|
40490
40490
|
*/
|
|
40491
|
-
announceValue(value,
|
|
40492
|
-
this.pendingAnnouncements.set(
|
|
40491
|
+
announceValue(value, key2) {
|
|
40492
|
+
this.pendingAnnouncements.set(key2, value);
|
|
40493
40493
|
this.updateAnnouncement();
|
|
40494
40494
|
}
|
|
40495
40495
|
updateAnnouncement() {
|
|
@@ -41416,10 +41416,10 @@ var SelectionService = class extends BeanStub {
|
|
|
41416
41416
|
*/
|
|
41417
41417
|
filterFromSelection(predicate) {
|
|
41418
41418
|
const newSelectedNodes = /* @__PURE__ */ new Map();
|
|
41419
|
-
this.selectedNodes.forEach((rowNode,
|
|
41419
|
+
this.selectedNodes.forEach((rowNode, key2) => {
|
|
41420
41420
|
const passesPredicate = rowNode && predicate(rowNode);
|
|
41421
41421
|
if (passesPredicate) {
|
|
41422
|
-
newSelectedNodes.set(
|
|
41422
|
+
newSelectedNodes.set(key2, rowNode);
|
|
41423
41423
|
}
|
|
41424
41424
|
});
|
|
41425
41425
|
this.selectedNodes = newSelectedNodes;
|
|
@@ -43568,7 +43568,7 @@ var VirtualList = class extends TabGuardComp$1 {
|
|
|
43568
43568
|
this.focusRow(nextRow);
|
|
43569
43569
|
return true;
|
|
43570
43570
|
}
|
|
43571
|
-
navigateToPage(
|
|
43571
|
+
navigateToPage(key2, fromItem = "focused") {
|
|
43572
43572
|
let hasFocus = false;
|
|
43573
43573
|
if (fromItem === "focused") {
|
|
43574
43574
|
fromItem = this.getLastFocusedRow();
|
|
@@ -43576,13 +43576,13 @@ var VirtualList = class extends TabGuardComp$1 {
|
|
|
43576
43576
|
}
|
|
43577
43577
|
const rowCount = this.model.getRowCount() - 1;
|
|
43578
43578
|
let newIndex = -1;
|
|
43579
|
-
if (
|
|
43579
|
+
if (key2 === KeyCode.PAGE_HOME) {
|
|
43580
43580
|
newIndex = 0;
|
|
43581
|
-
} else if (
|
|
43581
|
+
} else if (key2 === KeyCode.PAGE_END) {
|
|
43582
43582
|
newIndex = rowCount;
|
|
43583
|
-
} else if (
|
|
43583
|
+
} else if (key2 === KeyCode.PAGE_DOWN) {
|
|
43584
43584
|
newIndex = Math.min(fromItem + this.pageSize, rowCount);
|
|
43585
|
-
} else if (
|
|
43585
|
+
} else if (key2 === KeyCode.PAGE_UP) {
|
|
43586
43586
|
newIndex = Math.max(fromItem - this.pageSize, 0);
|
|
43587
43587
|
}
|
|
43588
43588
|
if (newIndex === -1) {
|
|
@@ -43620,7 +43620,7 @@ var VirtualList = class extends TabGuardComp$1 {
|
|
|
43620
43620
|
return comp && comp.rowComponent;
|
|
43621
43621
|
}
|
|
43622
43622
|
forEachRenderedRow(func) {
|
|
43623
|
-
this.renderedRows.forEach((value,
|
|
43623
|
+
this.renderedRows.forEach((value, key2) => func(value.rowComponent, key2));
|
|
43624
43624
|
}
|
|
43625
43625
|
getItemHeight() {
|
|
43626
43626
|
if (!this.isHeightFromTheme) {
|
|
@@ -44022,14 +44022,14 @@ var PillDropZonePanel = class extends Component {
|
|
|
44022
44022
|
}
|
|
44023
44023
|
}
|
|
44024
44024
|
onKeyDown(e) {
|
|
44025
|
-
const { key } = e;
|
|
44025
|
+
const { key: key2 } = e;
|
|
44026
44026
|
const isVertical = !this.horizontal;
|
|
44027
|
-
let isNext =
|
|
44028
|
-
let isPrevious =
|
|
44027
|
+
let isNext = key2 === KeyCode.DOWN;
|
|
44028
|
+
let isPrevious = key2 === KeyCode.UP;
|
|
44029
44029
|
if (!isVertical) {
|
|
44030
44030
|
const isRtl = this.gos.get("enableRtl");
|
|
44031
|
-
isNext = !isRtl &&
|
|
44032
|
-
isPrevious = !isRtl &&
|
|
44031
|
+
isNext = !isRtl && key2 === KeyCode.RIGHT || isRtl && key2 === KeyCode.LEFT;
|
|
44032
|
+
isPrevious = !isRtl && key2 === KeyCode.LEFT || isRtl && key2 === KeyCode.RIGHT;
|
|
44033
44033
|
}
|
|
44034
44034
|
if (!isNext && !isPrevious) {
|
|
44035
44035
|
return;
|
|
@@ -44659,11 +44659,11 @@ var AgMenuList = class extends TabGuardComp$1 {
|
|
|
44659
44659
|
);
|
|
44660
44660
|
return _loadTemplate(separatorHtml);
|
|
44661
44661
|
}
|
|
44662
|
-
handleNavKey(
|
|
44663
|
-
switch (
|
|
44662
|
+
handleNavKey(key2) {
|
|
44663
|
+
switch (key2) {
|
|
44664
44664
|
case KeyCode.UP:
|
|
44665
44665
|
case KeyCode.DOWN: {
|
|
44666
|
-
const nextItem = this.findNextItem(
|
|
44666
|
+
const nextItem = this.findNextItem(key2 === KeyCode.UP);
|
|
44667
44667
|
if (nextItem && nextItem !== this.activeMenuItem) {
|
|
44668
44668
|
nextItem.activate();
|
|
44669
44669
|
}
|
|
@@ -44671,7 +44671,7 @@ var AgMenuList = class extends TabGuardComp$1 {
|
|
|
44671
44671
|
}
|
|
44672
44672
|
}
|
|
44673
44673
|
const left = this.gos.get("enableRtl") ? KeyCode.RIGHT : KeyCode.LEFT;
|
|
44674
|
-
if (
|
|
44674
|
+
if (key2 === left) {
|
|
44675
44675
|
this.closeIfIsChild();
|
|
44676
44676
|
} else {
|
|
44677
44677
|
this.openChild();
|
|
@@ -45835,9 +45835,9 @@ shouldUseNative() ? Object.assign : function(target, source) {
|
|
|
45835
45835
|
var symbols;
|
|
45836
45836
|
for (var s = 1; s < arguments.length; s++) {
|
|
45837
45837
|
from = Object(arguments[s]);
|
|
45838
|
-
for (var
|
|
45839
|
-
if (hasOwnProperty.call(from,
|
|
45840
|
-
to[
|
|
45838
|
+
for (var key2 in from) {
|
|
45839
|
+
if (hasOwnProperty.call(from, key2)) {
|
|
45840
|
+
to[key2] = from[key2];
|
|
45841
45841
|
}
|
|
45842
45842
|
}
|
|
45843
45843
|
if (getOwnPropertySymbols) {
|
|
@@ -45914,7 +45914,7 @@ const createProxyHandler = (origObj, isTargetCopied) => {
|
|
|
45914
45914
|
[IS_TARGET_COPIED_PROPERTY]: isTargetCopied
|
|
45915
45915
|
};
|
|
45916
45916
|
let trackObject = false;
|
|
45917
|
-
const recordUsage = (type,
|
|
45917
|
+
const recordUsage = (type, key2) => {
|
|
45918
45918
|
if (!trackObject) {
|
|
45919
45919
|
let used = state[AFFECTED_PROPERTY$1].get(origObj);
|
|
45920
45920
|
if (!used) {
|
|
@@ -45929,7 +45929,7 @@ const createProxyHandler = (origObj, isTargetCopied) => {
|
|
|
45929
45929
|
set = /* @__PURE__ */ new Set();
|
|
45930
45930
|
used[type] = set;
|
|
45931
45931
|
}
|
|
45932
|
-
set.add(
|
|
45932
|
+
set.add(key2);
|
|
45933
45933
|
}
|
|
45934
45934
|
}
|
|
45935
45935
|
};
|
|
@@ -45938,24 +45938,24 @@ const createProxyHandler = (origObj, isTargetCopied) => {
|
|
|
45938
45938
|
state[AFFECTED_PROPERTY$1].delete(origObj);
|
|
45939
45939
|
};
|
|
45940
45940
|
const handler = {
|
|
45941
|
-
get(target,
|
|
45942
|
-
if (
|
|
45941
|
+
get(target, key2) {
|
|
45942
|
+
if (key2 === GET_ORIGINAL_SYMBOL) {
|
|
45943
45943
|
return origObj;
|
|
45944
45944
|
}
|
|
45945
|
-
recordUsage(KEYS_PROPERTY$1,
|
|
45946
|
-
return createProxy(Reflect.get(target,
|
|
45945
|
+
recordUsage(KEYS_PROPERTY$1, key2);
|
|
45946
|
+
return createProxy(Reflect.get(target, key2), state[AFFECTED_PROPERTY$1], state[PROXY_CACHE_PROPERTY], state[TARGET_CACHE_PROPERTY]);
|
|
45947
45947
|
},
|
|
45948
|
-
has(target,
|
|
45949
|
-
if (
|
|
45948
|
+
has(target, key2) {
|
|
45949
|
+
if (key2 === TRACK_MEMO_SYMBOL) {
|
|
45950
45950
|
recordObjectAsUsed();
|
|
45951
45951
|
return true;
|
|
45952
45952
|
}
|
|
45953
|
-
recordUsage(HAS_KEY_PROPERTY$1,
|
|
45954
|
-
return Reflect.has(target,
|
|
45953
|
+
recordUsage(HAS_KEY_PROPERTY$1, key2);
|
|
45954
|
+
return Reflect.has(target, key2);
|
|
45955
45955
|
},
|
|
45956
|
-
getOwnPropertyDescriptor(target,
|
|
45957
|
-
recordUsage(HAS_OWN_KEY_PROPERTY$1,
|
|
45958
|
-
return Reflect.getOwnPropertyDescriptor(target,
|
|
45956
|
+
getOwnPropertyDescriptor(target, key2) {
|
|
45957
|
+
recordUsage(HAS_OWN_KEY_PROPERTY$1, key2);
|
|
45958
|
+
return Reflect.getOwnPropertyDescriptor(target, key2);
|
|
45959
45959
|
},
|
|
45960
45960
|
ownKeys(target) {
|
|
45961
45961
|
recordUsage(ALL_OWN_KEYS_PROPERTY$1);
|
|
@@ -46021,8 +46021,8 @@ const isChanged = (prevObj, nextObj, affected, cache, isEqual = Object.is) => {
|
|
|
46021
46021
|
cache.set(prevObj, nextObj);
|
|
46022
46022
|
}
|
|
46023
46023
|
let changed = null;
|
|
46024
|
-
for (const
|
|
46025
|
-
changed = Reflect.has(prevObj,
|
|
46024
|
+
for (const key2 of used[HAS_KEY_PROPERTY$1] || []) {
|
|
46025
|
+
changed = Reflect.has(prevObj, key2) !== Reflect.has(nextObj, key2);
|
|
46026
46026
|
if (changed)
|
|
46027
46027
|
return changed;
|
|
46028
46028
|
}
|
|
@@ -46031,16 +46031,16 @@ const isChanged = (prevObj, nextObj, affected, cache, isEqual = Object.is) => {
|
|
|
46031
46031
|
if (changed)
|
|
46032
46032
|
return changed;
|
|
46033
46033
|
} else {
|
|
46034
|
-
for (const
|
|
46035
|
-
const hasPrev = !!Reflect.getOwnPropertyDescriptor(prevObj,
|
|
46036
|
-
const hasNext = !!Reflect.getOwnPropertyDescriptor(nextObj,
|
|
46034
|
+
for (const key2 of used[HAS_OWN_KEY_PROPERTY$1] || []) {
|
|
46035
|
+
const hasPrev = !!Reflect.getOwnPropertyDescriptor(prevObj, key2);
|
|
46036
|
+
const hasNext = !!Reflect.getOwnPropertyDescriptor(nextObj, key2);
|
|
46037
46037
|
changed = hasPrev !== hasNext;
|
|
46038
46038
|
if (changed)
|
|
46039
46039
|
return changed;
|
|
46040
46040
|
}
|
|
46041
46041
|
}
|
|
46042
|
-
for (const
|
|
46043
|
-
changed = isChanged(prevObj[
|
|
46042
|
+
for (const key2 of used[KEYS_PROPERTY$1] || []) {
|
|
46043
|
+
changed = isChanged(prevObj[key2], nextObj[key2], affected, cache, isEqual);
|
|
46044
46044
|
if (changed)
|
|
46045
46045
|
return changed;
|
|
46046
46046
|
}
|
|
@@ -46098,17 +46098,17 @@ const touchAffected = (dst, src, affected) => {
|
|
|
46098
46098
|
}
|
|
46099
46099
|
return;
|
|
46100
46100
|
}
|
|
46101
|
-
(_a2 = used[HAS_KEY_PROPERTY]) === null || _a2 === void 0 ? void 0 : _a2.forEach((
|
|
46102
|
-
Reflect.has(dst,
|
|
46101
|
+
(_a2 = used[HAS_KEY_PROPERTY]) === null || _a2 === void 0 ? void 0 : _a2.forEach((key2) => {
|
|
46102
|
+
Reflect.has(dst, key2);
|
|
46103
46103
|
});
|
|
46104
46104
|
if (used[ALL_OWN_KEYS_PROPERTY] === true) {
|
|
46105
46105
|
Reflect.ownKeys(dst);
|
|
46106
46106
|
}
|
|
46107
|
-
(_b = used[HAS_OWN_KEY_PROPERTY]) === null || _b === void 0 ? void 0 : _b.forEach((
|
|
46108
|
-
Reflect.getOwnPropertyDescriptor(dst,
|
|
46107
|
+
(_b = used[HAS_OWN_KEY_PROPERTY]) === null || _b === void 0 ? void 0 : _b.forEach((key2) => {
|
|
46108
|
+
Reflect.getOwnPropertyDescriptor(dst, key2);
|
|
46109
46109
|
});
|
|
46110
|
-
(_c = used[KEYS_PROPERTY]) === null || _c === void 0 ? void 0 : _c.forEach((
|
|
46111
|
-
touchAffected(dst[
|
|
46110
|
+
(_c = used[KEYS_PROPERTY]) === null || _c === void 0 ? void 0 : _c.forEach((key2) => {
|
|
46111
|
+
touchAffected(dst[key2], src[key2], affected);
|
|
46112
46112
|
});
|
|
46113
46113
|
};
|
|
46114
46114
|
const isOriginalEqual = (x, y) => {
|
|
@@ -46172,26 +46172,26 @@ function ownKeys$1(object, enumerableOnly) {
|
|
|
46172
46172
|
function _objectSpread$1(target) {
|
|
46173
46173
|
for (var i = 1; i < arguments.length; i++) {
|
|
46174
46174
|
var source = null != arguments[i] ? arguments[i] : {};
|
|
46175
|
-
i % 2 ? ownKeys$1(Object(source), true).forEach(function(
|
|
46176
|
-
_defineProperty$e(target,
|
|
46177
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function(
|
|
46178
|
-
Object.defineProperty(target,
|
|
46175
|
+
i % 2 ? ownKeys$1(Object(source), true).forEach(function(key2) {
|
|
46176
|
+
_defineProperty$e(target, key2, source[key2]);
|
|
46177
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function(key2) {
|
|
46178
|
+
Object.defineProperty(target, key2, Object.getOwnPropertyDescriptor(source, key2));
|
|
46179
46179
|
});
|
|
46180
46180
|
}
|
|
46181
46181
|
return target;
|
|
46182
46182
|
}
|
|
46183
|
-
function _defineProperty$e(obj,
|
|
46184
|
-
|
|
46185
|
-
if (
|
|
46186
|
-
Object.defineProperty(obj,
|
|
46183
|
+
function _defineProperty$e(obj, key2, value) {
|
|
46184
|
+
key2 = _toPropertyKey$e(key2);
|
|
46185
|
+
if (key2 in obj) {
|
|
46186
|
+
Object.defineProperty(obj, key2, { value, enumerable: true, configurable: true, writable: true });
|
|
46187
46187
|
} else {
|
|
46188
|
-
obj[
|
|
46188
|
+
obj[key2] = value;
|
|
46189
46189
|
}
|
|
46190
46190
|
return obj;
|
|
46191
46191
|
}
|
|
46192
46192
|
function _toPropertyKey$e(arg) {
|
|
46193
|
-
var
|
|
46194
|
-
return typeof
|
|
46193
|
+
var key2 = _toPrimitive$e(arg, "string");
|
|
46194
|
+
return typeof key2 === "symbol" ? key2 : String(key2);
|
|
46195
46195
|
}
|
|
46196
46196
|
function _toPrimitive$e(input, hint) {
|
|
46197
46197
|
if (typeof input !== "object" || input === null) return input;
|
|
@@ -46216,9 +46216,9 @@ var getSettings = memoize$1((store) => {
|
|
|
46216
46216
|
var settings = _objectSpread$1({}, getDefaultWorkspaceSettings(store));
|
|
46217
46217
|
var keys = Object.keys(customizedSettings);
|
|
46218
46218
|
for (var i = 0; i < keys.length; i += 1) {
|
|
46219
|
-
var
|
|
46220
|
-
if (customizedSettings[
|
|
46221
|
-
settings[
|
|
46219
|
+
var key2 = keys[i];
|
|
46220
|
+
if (customizedSettings[key2] !== void 0) {
|
|
46221
|
+
settings[key2] = customizedSettings[key2];
|
|
46222
46222
|
}
|
|
46223
46223
|
}
|
|
46224
46224
|
return settings;
|
|
@@ -46567,11 +46567,11 @@ var clamp = (value, min, max) => Math.max(min, Math.min(max, value));
|
|
|
46567
46567
|
var memoize = (fn) => {
|
|
46568
46568
|
const values = /* @__PURE__ */ new Map();
|
|
46569
46569
|
return (a) => {
|
|
46570
|
-
const
|
|
46571
|
-
if (!values.has(
|
|
46572
|
-
values.set(
|
|
46570
|
+
const key2 = a;
|
|
46571
|
+
if (!values.has(key2)) {
|
|
46572
|
+
values.set(key2, fn(a));
|
|
46573
46573
|
}
|
|
46574
|
-
return values.get(
|
|
46574
|
+
return values.get(key2);
|
|
46575
46575
|
};
|
|
46576
46576
|
};
|
|
46577
46577
|
var getParamType = memoize((param) => {
|
|
@@ -46861,12 +46861,12 @@ var ThemeImpl = class _ThemeImpl {
|
|
|
46861
46861
|
var makeVariablesChunk = (theme) => {
|
|
46862
46862
|
let variablesCss = "";
|
|
46863
46863
|
let inheritanceCss = "";
|
|
46864
|
-
for (const [
|
|
46865
|
-
const cssValue = paramValueToCss(
|
|
46864
|
+
for (const [key2, value] of Object.entries(theme.getParams())) {
|
|
46865
|
+
const cssValue = paramValueToCss(key2, value);
|
|
46866
46866
|
if (cssValue === false) {
|
|
46867
|
-
_errorOnce(`Invalid value for param ${
|
|
46867
|
+
_errorOnce(`Invalid value for param ${key2} - ${describeValue(value)}`);
|
|
46868
46868
|
} else {
|
|
46869
|
-
const cssName = paramToVariableName(
|
|
46869
|
+
const cssName = paramToVariableName(key2);
|
|
46870
46870
|
const inheritedName = cssName.replace("--ag-", "--ag-inherited-");
|
|
46871
46871
|
variablesCss += ` ${cssName}: var(${inheritedName}, ${cssValue});
|
|
46872
46872
|
`;
|
|
@@ -47539,8 +47539,8 @@ var AggFuncService = class extends BeanStub {
|
|
|
47539
47539
|
}
|
|
47540
47540
|
addAggFuncs(aggFuncs) {
|
|
47541
47541
|
this.init();
|
|
47542
|
-
_iterateObject(aggFuncs, (
|
|
47543
|
-
this.aggFuncsMap[
|
|
47542
|
+
_iterateObject(aggFuncs, (key2, aggFunc) => {
|
|
47543
|
+
this.aggFuncsMap[key2] = aggFunc;
|
|
47544
47544
|
});
|
|
47545
47545
|
}
|
|
47546
47546
|
getAggFunc(name) {
|
|
@@ -47827,8 +47827,8 @@ var AggregationStage = class extends BeanStub {
|
|
|
47827
47827
|
getValuesFromMappedSet(mappedSet, keys, valueColumn) {
|
|
47828
47828
|
let mapPointer = mappedSet;
|
|
47829
47829
|
for (let i = 0; i < keys.length; i++) {
|
|
47830
|
-
const
|
|
47831
|
-
mapPointer = mapPointer ? mapPointer[
|
|
47830
|
+
const key2 = keys[i];
|
|
47831
|
+
mapPointer = mapPointer ? mapPointer[key2] : null;
|
|
47832
47832
|
}
|
|
47833
47833
|
if (!mapPointer) {
|
|
47834
47834
|
return [];
|
|
@@ -49449,8 +49449,8 @@ var GroupStrategy = class extends BeanStub {
|
|
|
49449
49449
|
}
|
|
49450
49450
|
getOrCreateNextNode(parentGroup, groupInfo, level, details) {
|
|
49451
49451
|
var _a2;
|
|
49452
|
-
const
|
|
49453
|
-
let nextNode = (_a2 = parentGroup == null ? void 0 : parentGroup.childrenMapped) == null ? void 0 : _a2[
|
|
49452
|
+
const key2 = this.getChildrenMappedKey(groupInfo.key, groupInfo.rowGroupColumn);
|
|
49453
|
+
let nextNode = (_a2 = parentGroup == null ? void 0 : parentGroup.childrenMapped) == null ? void 0 : _a2[key2];
|
|
49454
49454
|
if (!nextNode) {
|
|
49455
49455
|
nextNode = this.createGroup(groupInfo, parentGroup, level, details);
|
|
49456
49456
|
this.addToParent(nextNode, parentGroup);
|
|
@@ -49502,8 +49502,8 @@ var GroupStrategy = class extends BeanStub {
|
|
|
49502
49502
|
}
|
|
49503
49503
|
});
|
|
49504
49504
|
}
|
|
49505
|
-
getChildrenMappedKey(
|
|
49506
|
-
return rowGroupColumn ? rowGroupColumn.getId() + "-" +
|
|
49505
|
+
getChildrenMappedKey(key2, rowGroupColumn) {
|
|
49506
|
+
return rowGroupColumn ? rowGroupColumn.getId() + "-" + key2 : key2;
|
|
49507
49507
|
}
|
|
49508
49508
|
setExpandedInitialValue(details, groupNode) {
|
|
49509
49509
|
if (details.pivotMode && groupNode.leafGroup) {
|
|
@@ -49531,16 +49531,16 @@ var GroupStrategy = class extends BeanStub {
|
|
|
49531
49531
|
getGroupInfo(rowNode, details) {
|
|
49532
49532
|
const res = [];
|
|
49533
49533
|
details.groupedCols.forEach((groupCol) => {
|
|
49534
|
-
let
|
|
49535
|
-
let keyExists =
|
|
49534
|
+
let key2 = this.valueService.getKeyForNode(groupCol, rowNode);
|
|
49535
|
+
let keyExists = key2 !== null && key2 !== void 0 && key2 !== "";
|
|
49536
49536
|
const createGroupForEmpty = details.pivotMode || !details.groupAllowUnbalanced;
|
|
49537
49537
|
if (createGroupForEmpty && !keyExists) {
|
|
49538
|
-
|
|
49538
|
+
key2 = "";
|
|
49539
49539
|
keyExists = true;
|
|
49540
49540
|
}
|
|
49541
49541
|
if (keyExists) {
|
|
49542
49542
|
const item = {
|
|
49543
|
-
key,
|
|
49543
|
+
key: key2,
|
|
49544
49544
|
field: groupCol.getColDef().field,
|
|
49545
49545
|
rowGroupColumn: groupCol,
|
|
49546
49546
|
leafNode: rowNode
|
|
@@ -49566,9 +49566,9 @@ var orphanRow = (row, root) => {
|
|
|
49566
49566
|
}
|
|
49567
49567
|
};
|
|
49568
49568
|
var TreeNode = class _TreeNode {
|
|
49569
|
-
constructor(parent,
|
|
49569
|
+
constructor(parent, key2, level) {
|
|
49570
49570
|
this.parent = parent;
|
|
49571
|
-
this.key =
|
|
49571
|
+
this.key = key2;
|
|
49572
49572
|
this.level = level;
|
|
49573
49573
|
this.children = null;
|
|
49574
49574
|
this.invalidatedHead = null;
|
|
@@ -49601,14 +49601,14 @@ var TreeNode = class _TreeNode {
|
|
|
49601
49601
|
* We cast to string just to be sure the user passed a string correctly and not a number or something else.
|
|
49602
49602
|
* @returns the node at the given key, or a new filler node inserted there if it does not exist.
|
|
49603
49603
|
*/
|
|
49604
|
-
upsertKey(
|
|
49604
|
+
upsertKey(key2) {
|
|
49605
49605
|
var _a2, _b;
|
|
49606
|
-
if (typeof
|
|
49607
|
-
|
|
49606
|
+
if (typeof key2 !== "string") {
|
|
49607
|
+
key2 = String(key2);
|
|
49608
49608
|
}
|
|
49609
|
-
let node = (_a2 = this.children) == null ? void 0 : _a2.get(
|
|
49609
|
+
let node = (_a2 = this.children) == null ? void 0 : _a2.get(key2);
|
|
49610
49610
|
if (!node) {
|
|
49611
|
-
node = new _TreeNode(this,
|
|
49611
|
+
node = new _TreeNode(this, key2, this.level + 1);
|
|
49612
49612
|
(_b = this.children ?? (this.children = /* @__PURE__ */ new Map())) == null ? void 0 : _b.set(node.key, node);
|
|
49613
49613
|
}
|
|
49614
49614
|
return node;
|
|
@@ -50223,13 +50223,13 @@ var TreeStrategy = class extends BeanStub {
|
|
|
50223
50223
|
}
|
|
50224
50224
|
}
|
|
50225
50225
|
}
|
|
50226
|
-
const
|
|
50227
|
-
if (row.key !==
|
|
50228
|
-
row.key =
|
|
50226
|
+
const key2 = node.key;
|
|
50227
|
+
if (row.key !== key2) {
|
|
50228
|
+
row.key = key2;
|
|
50229
50229
|
setTreeRowKeyChanged(row);
|
|
50230
|
-
this.setGroupData(row,
|
|
50230
|
+
this.setGroupData(row, key2);
|
|
50231
50231
|
} else if (!row.groupData) {
|
|
50232
|
-
this.setGroupData(row,
|
|
50232
|
+
this.setGroupData(row, key2);
|
|
50233
50233
|
}
|
|
50234
50234
|
}
|
|
50235
50235
|
commitNodePostOrder(details, parent, node) {
|
|
@@ -50334,14 +50334,14 @@ var TreeStrategy = class extends BeanStub {
|
|
|
50334
50334
|
row.id = RowNode.ID_PREFIX_ROW_GROUP + id;
|
|
50335
50335
|
return row;
|
|
50336
50336
|
}
|
|
50337
|
-
setGroupData(row,
|
|
50337
|
+
setGroupData(row, key2) {
|
|
50338
50338
|
var _a2;
|
|
50339
50339
|
const groupData = {};
|
|
50340
50340
|
row.groupData = groupData;
|
|
50341
50341
|
const groupDisplayCols = (_a2 = this.showRowGroupColsService) == null ? void 0 : _a2.getShowRowGroupCols();
|
|
50342
50342
|
if (groupDisplayCols) {
|
|
50343
50343
|
for (const col of groupDisplayCols) {
|
|
50344
|
-
groupData[col.getColId()] =
|
|
50344
|
+
groupData[col.getColId()] = key2;
|
|
50345
50345
|
}
|
|
50346
50346
|
}
|
|
50347
50347
|
}
|
|
@@ -50528,9 +50528,9 @@ var PivotColDefService = class extends BeanStub {
|
|
|
50528
50528
|
const comparator = this.headerNameComparator.bind(this, primaryPivotColumnDefs.pivotComparator);
|
|
50529
50529
|
if (measureColumns.length === 1 && this.gos.get("removePivotHeaderRowWhenSingleValueColumn") && index === maxDepth - 1) {
|
|
50530
50530
|
const leafCols = [];
|
|
50531
|
-
_iterateObject(uniqueValue, (
|
|
50532
|
-
const newPivotKeys = [...pivotKeys,
|
|
50533
|
-
const colDef = this.createColDef(measureColumns[0],
|
|
50531
|
+
_iterateObject(uniqueValue, (key2) => {
|
|
50532
|
+
const newPivotKeys = [...pivotKeys, key2];
|
|
50533
|
+
const colDef = this.createColDef(measureColumns[0], key2, newPivotKeys);
|
|
50534
50534
|
colDef.columnGroupShow = "open";
|
|
50535
50535
|
leafCols.push(colDef);
|
|
50536
50536
|
});
|
|
@@ -50538,12 +50538,12 @@ var PivotColDefService = class extends BeanStub {
|
|
|
50538
50538
|
return leafCols;
|
|
50539
50539
|
}
|
|
50540
50540
|
const groups = [];
|
|
50541
|
-
_iterateObject(uniqueValue, (
|
|
50541
|
+
_iterateObject(uniqueValue, (key2, value) => {
|
|
50542
50542
|
const openByDefault = this.pivotDefaultExpanded === -1 || index < this.pivotDefaultExpanded;
|
|
50543
|
-
const newPivotKeys = [...pivotKeys,
|
|
50543
|
+
const newPivotKeys = [...pivotKeys, key2];
|
|
50544
50544
|
groups.push({
|
|
50545
50545
|
children: this.recursivelyBuildGroup(index + 1, value, newPivotKeys, maxDepth, primaryPivotColumns),
|
|
50546
|
-
headerName:
|
|
50546
|
+
headerName: key2,
|
|
50547
50547
|
pivotKeys: newPivotKeys,
|
|
50548
50548
|
columnGroupShow: "open",
|
|
50549
50549
|
openByDefault,
|
|
@@ -50745,10 +50745,10 @@ var PivotColDefService = class extends BeanStub {
|
|
|
50745
50745
|
}
|
|
50746
50746
|
}
|
|
50747
50747
|
merge(m1, m2) {
|
|
50748
|
-
m2.forEach((value,
|
|
50749
|
-
const existingList = m1.has(
|
|
50748
|
+
m2.forEach((value, key2) => {
|
|
50749
|
+
const existingList = m1.has(key2) ? m1.get(key2) : [];
|
|
50750
50750
|
const updatedList = [...existingList, ...value];
|
|
50751
|
-
m1.set(
|
|
50751
|
+
m1.set(key2, updatedList);
|
|
50752
50752
|
});
|
|
50753
50753
|
}
|
|
50754
50754
|
generateColumnGroupId(pivotKeys) {
|
|
@@ -50777,17 +50777,17 @@ var PivotColDefService = class extends BeanStub {
|
|
|
50777
50777
|
level = level[part];
|
|
50778
50778
|
}
|
|
50779
50779
|
}
|
|
50780
|
-
const uniqueValuesToGroups = (id,
|
|
50780
|
+
const uniqueValuesToGroups = (id, key2, uniqueValues2, depth) => {
|
|
50781
50781
|
const children = [];
|
|
50782
|
-
for (const
|
|
50783
|
-
const item = uniqueValues2[
|
|
50784
|
-
const child = uniqueValuesToGroups(`${id}${this.fieldSeparator}${
|
|
50782
|
+
for (const key22 in uniqueValues2) {
|
|
50783
|
+
const item = uniqueValues2[key22];
|
|
50784
|
+
const child = uniqueValuesToGroups(`${id}${this.fieldSeparator}${key22}`, key22, item, depth + 1);
|
|
50785
50785
|
children.push(child);
|
|
50786
50786
|
}
|
|
50787
50787
|
if (children.length === 0) {
|
|
50788
|
-
const potentialAggCol = this.columnModel.getColDefCol(
|
|
50788
|
+
const potentialAggCol = this.columnModel.getColDefCol(key2);
|
|
50789
50789
|
if (potentialAggCol) {
|
|
50790
|
-
const headerName = this.columnNameService.getDisplayNameForColumn(potentialAggCol, "header") ??
|
|
50790
|
+
const headerName = this.columnNameService.getDisplayNameForColumn(potentialAggCol, "header") ?? key2;
|
|
50791
50791
|
const colDef = this.createColDef(potentialAggCol, headerName, void 0, false);
|
|
50792
50792
|
colDef.colId = id;
|
|
50793
50793
|
colDef.aggFunc = potentialAggCol.getAggFunc();
|
|
@@ -50799,7 +50799,7 @@ var PivotColDefService = class extends BeanStub {
|
|
|
50799
50799
|
}
|
|
50800
50800
|
const col = {
|
|
50801
50801
|
colId: id,
|
|
50802
|
-
headerName:
|
|
50802
|
+
headerName: key2,
|
|
50803
50803
|
// this is to support using pinned rows, normally the data will be extracted from the aggData object using the colId
|
|
50804
50804
|
// however pinned rows still access the data object by field, this prevents values with dots from being treated as complex objects
|
|
50805
50805
|
valueGetter: (params) => {
|
|
@@ -50811,21 +50811,21 @@ var PivotColDefService = class extends BeanStub {
|
|
|
50811
50811
|
}
|
|
50812
50812
|
const collapseSingleChildren = this.gos.get("removePivotHeaderRowWhenSingleValueColumn");
|
|
50813
50813
|
if (collapseSingleChildren && children.length === 1 && "colId" in children[0]) {
|
|
50814
|
-
children[0].headerName =
|
|
50814
|
+
children[0].headerName = key2;
|
|
50815
50815
|
return children[0];
|
|
50816
50816
|
}
|
|
50817
50817
|
const group = {
|
|
50818
50818
|
openByDefault: this.pivotDefaultExpanded === -1 || depth < this.pivotDefaultExpanded,
|
|
50819
50819
|
groupId: id,
|
|
50820
|
-
headerName:
|
|
50820
|
+
headerName: key2,
|
|
50821
50821
|
children
|
|
50822
50822
|
};
|
|
50823
50823
|
return group;
|
|
50824
50824
|
};
|
|
50825
50825
|
const res = [];
|
|
50826
|
-
for (const
|
|
50827
|
-
const item = uniqueValues[
|
|
50828
|
-
const col = uniqueValuesToGroups(
|
|
50826
|
+
for (const key2 in uniqueValues) {
|
|
50827
|
+
const item = uniqueValues[key2];
|
|
50828
|
+
const col = uniqueValuesToGroups(key2, key2, item, 0);
|
|
50829
50829
|
res.push(col);
|
|
50830
50830
|
}
|
|
50831
50831
|
return res;
|
|
@@ -50962,30 +50962,30 @@ var PivotStage = class extends BeanStub {
|
|
|
50962
50962
|
const mappedChildren = {};
|
|
50963
50963
|
const pivotColumn = pivotColumns[pivotIndex];
|
|
50964
50964
|
children.forEach((child) => {
|
|
50965
|
-
let
|
|
50966
|
-
if (_missing(
|
|
50967
|
-
|
|
50965
|
+
let key2 = this.valueService.getKeyForNode(pivotColumn, child);
|
|
50966
|
+
if (_missing(key2)) {
|
|
50967
|
+
key2 = "";
|
|
50968
50968
|
}
|
|
50969
|
-
if (!uniqueValues[
|
|
50969
|
+
if (!uniqueValues[key2]) {
|
|
50970
50970
|
this.currentUniqueCount += 1;
|
|
50971
|
-
uniqueValues[
|
|
50971
|
+
uniqueValues[key2] = {};
|
|
50972
50972
|
const doesGeneratedColMaxExist = this.maxUniqueValues !== -1;
|
|
50973
50973
|
const hasExceededColMax = this.currentUniqueCount > this.maxUniqueValues;
|
|
50974
50974
|
if (doesGeneratedColMaxExist && hasExceededColMax) {
|
|
50975
50975
|
throw Error(EXCEEDED_MAX_UNIQUE_VALUES);
|
|
50976
50976
|
}
|
|
50977
50977
|
}
|
|
50978
|
-
if (!mappedChildren[
|
|
50979
|
-
mappedChildren[
|
|
50978
|
+
if (!mappedChildren[key2]) {
|
|
50979
|
+
mappedChildren[key2] = [];
|
|
50980
50980
|
}
|
|
50981
|
-
mappedChildren[
|
|
50981
|
+
mappedChildren[key2].push(child);
|
|
50982
50982
|
});
|
|
50983
50983
|
if (pivotIndex === pivotColumns.length - 1) {
|
|
50984
50984
|
return mappedChildren;
|
|
50985
50985
|
} else {
|
|
50986
50986
|
const result = {};
|
|
50987
|
-
_iterateObject(mappedChildren, (
|
|
50988
|
-
result[
|
|
50987
|
+
_iterateObject(mappedChildren, (key2, value) => {
|
|
50988
|
+
result[key2] = this.bucketChildren(value, pivotColumns, pivotIndex + 1, uniqueValues[key2]);
|
|
50989
50989
|
});
|
|
50990
50990
|
return result;
|
|
50991
50991
|
}
|
|
@@ -50994,7 +50994,7 @@ var PivotStage = class extends BeanStub {
|
|
|
50994
50994
|
return this.pivotColumnDefs;
|
|
50995
50995
|
}
|
|
50996
50996
|
};
|
|
50997
|
-
function addAggFunc(beans,
|
|
50997
|
+
function addAggFunc(beans, key2, aggFunc) {
|
|
50998
50998
|
if (beans.aggFuncService) {
|
|
50999
50999
|
beans.aggFuncService.addAggFuncs({ key: aggFunc });
|
|
51000
51000
|
}
|
|
@@ -51009,8 +51009,8 @@ function clearAggFuncs(beans) {
|
|
|
51009
51009
|
beans.aggFuncService.clear();
|
|
51010
51010
|
}
|
|
51011
51011
|
}
|
|
51012
|
-
function setColumnAggFunc(beans,
|
|
51013
|
-
beans.funcColsService.setColumnAggFunc(
|
|
51012
|
+
function setColumnAggFunc(beans, key2, aggFunc) {
|
|
51013
|
+
beans.funcColsService.setColumnAggFunc(key2, aggFunc, "api");
|
|
51014
51014
|
}
|
|
51015
51015
|
function isPivotMode(beans) {
|
|
51016
51016
|
return beans.columnModel.isPivotMode();
|
|
@@ -51336,8 +51336,8 @@ var ToolPanelColDefService = class extends BeanStub {
|
|
|
51336
51336
|
return group;
|
|
51337
51337
|
} else {
|
|
51338
51338
|
const colDef = abstractColDef;
|
|
51339
|
-
const
|
|
51340
|
-
const column = this.columnModel.getColDefCol(
|
|
51339
|
+
const key2 = colDef.colId ? colDef.colId : colDef.field;
|
|
51340
|
+
const column = this.columnModel.getColDefCol(key2);
|
|
51341
51341
|
if (!column) {
|
|
51342
51342
|
invalidColIds.push(colDef);
|
|
51343
51343
|
}
|
|
@@ -51405,9 +51405,9 @@ function setSideBarPosition(beans, position) {
|
|
|
51405
51405
|
var _a2;
|
|
51406
51406
|
(_a2 = beans.sideBarService) == null ? void 0 : _a2.getSideBarComp().setSideBarPosition(position);
|
|
51407
51407
|
}
|
|
51408
|
-
function openToolPanel(beans,
|
|
51408
|
+
function openToolPanel(beans, key2) {
|
|
51409
51409
|
var _a2;
|
|
51410
|
-
(_a2 = beans.sideBarService) == null ? void 0 : _a2.getSideBarComp().openToolPanel(
|
|
51410
|
+
(_a2 = beans.sideBarService) == null ? void 0 : _a2.getSideBarComp().openToolPanel(key2, "api");
|
|
51411
51411
|
}
|
|
51412
51412
|
function closeToolPanel(beans) {
|
|
51413
51413
|
var _a2;
|
|
@@ -51574,10 +51574,10 @@ function parseSideBarDef(toParse) {
|
|
|
51574
51574
|
}
|
|
51575
51575
|
if (Array.isArray(toParse)) {
|
|
51576
51576
|
const comps = [];
|
|
51577
|
-
toParse.forEach((
|
|
51578
|
-
const lookupResult = DEFAULT_BY_KEY[
|
|
51577
|
+
toParse.forEach((key2) => {
|
|
51578
|
+
const lookupResult = DEFAULT_BY_KEY[key2];
|
|
51579
51579
|
if (!lookupResult) {
|
|
51580
|
-
logMissingKey(
|
|
51580
|
+
logMissingKey(key2);
|
|
51581
51581
|
return;
|
|
51582
51582
|
}
|
|
51583
51583
|
comps.push(lookupResult);
|
|
@@ -51598,9 +51598,9 @@ function parseSideBarDef(toParse) {
|
|
|
51598
51598
|
};
|
|
51599
51599
|
return result;
|
|
51600
51600
|
}
|
|
51601
|
-
function logMissingKey(
|
|
51601
|
+
function logMissingKey(key2) {
|
|
51602
51602
|
_warnOnce(
|
|
51603
|
-
`the key ${
|
|
51603
|
+
`the key ${key2} is not a valid key for specifying a tool panel, valid keys are: ${Object.keys(DEFAULT_BY_KEY).join(",")}`
|
|
51604
51604
|
);
|
|
51605
51605
|
}
|
|
51606
51606
|
function parseComponents(from) {
|
|
@@ -51994,32 +51994,32 @@ var AgSideBar = class extends Component {
|
|
|
51994
51994
|
refresh() {
|
|
51995
51995
|
this.toolPanelWrappers.forEach((wrapper) => wrapper.refresh());
|
|
51996
51996
|
}
|
|
51997
|
-
openToolPanel(
|
|
51997
|
+
openToolPanel(key2, source = "api") {
|
|
51998
51998
|
const currentlyOpenedKey = this.openedItem();
|
|
51999
|
-
if (currentlyOpenedKey ===
|
|
51999
|
+
if (currentlyOpenedKey === key2) {
|
|
52000
52000
|
return;
|
|
52001
52001
|
}
|
|
52002
52002
|
this.toolPanelWrappers.forEach((wrapper) => {
|
|
52003
|
-
const show =
|
|
52003
|
+
const show = key2 === wrapper.getToolPanelId();
|
|
52004
52004
|
wrapper.setDisplayed(show);
|
|
52005
52005
|
});
|
|
52006
52006
|
const newlyOpenedKey = this.openedItem();
|
|
52007
52007
|
const openToolPanelChanged = currentlyOpenedKey !== newlyOpenedKey;
|
|
52008
52008
|
if (openToolPanelChanged) {
|
|
52009
|
-
this.sideBarButtons.setActiveButton(
|
|
52010
|
-
this.raiseToolPanelVisibleEvent(
|
|
52009
|
+
this.sideBarButtons.setActiveButton(key2);
|
|
52010
|
+
this.raiseToolPanelVisibleEvent(key2, currentlyOpenedKey ?? void 0, source);
|
|
52011
52011
|
}
|
|
52012
52012
|
}
|
|
52013
|
-
getToolPanelInstance(
|
|
52014
|
-
const toolPanelWrapper = this.toolPanelWrappers.filter((toolPanel) => toolPanel.getToolPanelId() ===
|
|
52013
|
+
getToolPanelInstance(key2) {
|
|
52014
|
+
const toolPanelWrapper = this.toolPanelWrappers.filter((toolPanel) => toolPanel.getToolPanelId() === key2)[0];
|
|
52015
52015
|
if (!toolPanelWrapper) {
|
|
52016
|
-
_warnOnce(`unable to lookup Tool Panel as invalid key supplied: ${
|
|
52016
|
+
_warnOnce(`unable to lookup Tool Panel as invalid key supplied: ${key2}`);
|
|
52017
52017
|
return;
|
|
52018
52018
|
}
|
|
52019
52019
|
return toolPanelWrapper.getToolPanelInstance();
|
|
52020
52020
|
}
|
|
52021
|
-
raiseToolPanelVisibleEvent(
|
|
52022
|
-
const switchingToolPanel = !!
|
|
52021
|
+
raiseToolPanelVisibleEvent(key2, previousKey, source) {
|
|
52022
|
+
const switchingToolPanel = !!key2 && !!previousKey;
|
|
52023
52023
|
if (previousKey) {
|
|
52024
52024
|
this.eventService.dispatchEvent({
|
|
52025
52025
|
type: "toolPanelVisibleChanged",
|
|
@@ -52029,11 +52029,11 @@ var AgSideBar = class extends Component {
|
|
|
52029
52029
|
switchingToolPanel
|
|
52030
52030
|
});
|
|
52031
52031
|
}
|
|
52032
|
-
if (
|
|
52032
|
+
if (key2) {
|
|
52033
52033
|
this.eventService.dispatchEvent({
|
|
52034
52034
|
type: "toolPanelVisibleChanged",
|
|
52035
52035
|
source,
|
|
52036
|
-
key,
|
|
52036
|
+
key: key2,
|
|
52037
52037
|
visible: true,
|
|
52038
52038
|
switchingToolPanel
|
|
52039
52039
|
});
|
|
@@ -54060,18 +54060,18 @@ function removeNullAndUndefined() {
|
|
|
54060
54060
|
}
|
|
54061
54061
|
return maybeDefined.filter((m2) => m2 != null);
|
|
54062
54062
|
}
|
|
54063
|
-
function _defineProperty$d(obj,
|
|
54064
|
-
|
|
54065
|
-
if (
|
|
54066
|
-
Object.defineProperty(obj,
|
|
54063
|
+
function _defineProperty$d(obj, key2, value) {
|
|
54064
|
+
key2 = _toPropertyKey$d(key2);
|
|
54065
|
+
if (key2 in obj) {
|
|
54066
|
+
Object.defineProperty(obj, key2, { value, enumerable: true, configurable: true, writable: true });
|
|
54067
54067
|
} else {
|
|
54068
|
-
obj[
|
|
54068
|
+
obj[key2] = value;
|
|
54069
54069
|
}
|
|
54070
54070
|
return obj;
|
|
54071
54071
|
}
|
|
54072
54072
|
function _toPropertyKey$d(arg) {
|
|
54073
|
-
var
|
|
54074
|
-
return typeof
|
|
54073
|
+
var key2 = _toPrimitive$d(arg, "string");
|
|
54074
|
+
return typeof key2 === "symbol" ? key2 : String(key2);
|
|
54075
54075
|
}
|
|
54076
54076
|
function _toPrimitive$d(input, hint) {
|
|
54077
54077
|
if (typeof input !== "object" || input === null) return input;
|
|
@@ -54113,18 +54113,18 @@ function getAllMethodNames(instance, traversePrototypeChain) {
|
|
|
54113
54113
|
}
|
|
54114
54114
|
return [...methodNames.keys()];
|
|
54115
54115
|
}
|
|
54116
|
-
function _defineProperty$c(obj,
|
|
54117
|
-
|
|
54118
|
-
if (
|
|
54119
|
-
Object.defineProperty(obj,
|
|
54116
|
+
function _defineProperty$c(obj, key2, value) {
|
|
54117
|
+
key2 = _toPropertyKey$c(key2);
|
|
54118
|
+
if (key2 in obj) {
|
|
54119
|
+
Object.defineProperty(obj, key2, { value, enumerable: true, configurable: true, writable: true });
|
|
54120
54120
|
} else {
|
|
54121
|
-
obj[
|
|
54121
|
+
obj[key2] = value;
|
|
54122
54122
|
}
|
|
54123
54123
|
return obj;
|
|
54124
54124
|
}
|
|
54125
54125
|
function _toPropertyKey$c(arg) {
|
|
54126
|
-
var
|
|
54127
|
-
return typeof
|
|
54126
|
+
var key2 = _toPrimitive$c(arg, "string");
|
|
54127
|
+
return typeof key2 === "symbol" ? key2 : String(key2);
|
|
54128
54128
|
}
|
|
54129
54129
|
function _toPrimitive$c(input, hint) {
|
|
54130
54130
|
if (typeof input !== "object" || input === null) return input;
|
|
@@ -54264,18 +54264,18 @@ class TextUtils {
|
|
|
54264
54264
|
return 0;
|
|
54265
54265
|
}
|
|
54266
54266
|
}
|
|
54267
|
-
function _defineProperty$b(obj,
|
|
54268
|
-
|
|
54269
|
-
if (
|
|
54270
|
-
Object.defineProperty(obj,
|
|
54267
|
+
function _defineProperty$b(obj, key2, value) {
|
|
54268
|
+
key2 = _toPropertyKey$b(key2);
|
|
54269
|
+
if (key2 in obj) {
|
|
54270
|
+
Object.defineProperty(obj, key2, { value, enumerable: true, configurable: true, writable: true });
|
|
54271
54271
|
} else {
|
|
54272
|
-
obj[
|
|
54272
|
+
obj[key2] = value;
|
|
54273
54273
|
}
|
|
54274
54274
|
return obj;
|
|
54275
54275
|
}
|
|
54276
54276
|
function _toPropertyKey$b(arg) {
|
|
54277
|
-
var
|
|
54278
|
-
return typeof
|
|
54277
|
+
var key2 = _toPrimitive$b(arg, "string");
|
|
54278
|
+
return typeof key2 === "symbol" ? key2 : String(key2);
|
|
54279
54279
|
}
|
|
54280
54280
|
function _toPrimitive$b(input, hint) {
|
|
54281
54281
|
if (typeof input !== "object" || input === null) return input;
|
|
@@ -54351,18 +54351,18 @@ class CharColumnFormatter extends TableColumnFormatter {
|
|
|
54351
54351
|
return String.fromCharCode(value);
|
|
54352
54352
|
}
|
|
54353
54353
|
}
|
|
54354
|
-
function _defineProperty$a(obj,
|
|
54355
|
-
|
|
54356
|
-
if (
|
|
54357
|
-
Object.defineProperty(obj,
|
|
54354
|
+
function _defineProperty$a(obj, key2, value) {
|
|
54355
|
+
key2 = _toPropertyKey$a(key2);
|
|
54356
|
+
if (key2 in obj) {
|
|
54357
|
+
Object.defineProperty(obj, key2, { value, enumerable: true, configurable: true, writable: true });
|
|
54358
54358
|
} else {
|
|
54359
|
-
obj[
|
|
54359
|
+
obj[key2] = value;
|
|
54360
54360
|
}
|
|
54361
54361
|
return obj;
|
|
54362
54362
|
}
|
|
54363
54363
|
function _toPropertyKey$a(arg) {
|
|
54364
|
-
var
|
|
54365
|
-
return typeof
|
|
54364
|
+
var key2 = _toPrimitive$a(arg, "string");
|
|
54365
|
+
return typeof key2 === "symbol" ? key2 : String(key2);
|
|
54366
54366
|
}
|
|
54367
54367
|
function _toPrimitive$a(input, hint) {
|
|
54368
54368
|
if (typeof input !== "object" || input === null) return input;
|
|
@@ -54473,18 +54473,18 @@ class DateTimeColumnFormatter extends TableColumnFormatter {
|
|
|
54473
54473
|
}
|
|
54474
54474
|
_defineProperty$a(DateTimeColumnFormatter, "DEFAULT_DATETIME_FORMAT_STRING", "yyyy-MM-dd HH:mm:ss.SSS");
|
|
54475
54475
|
_defineProperty$a(DateTimeColumnFormatter, "DEFAULT_TIME_ZONE_ID", "America/New_York");
|
|
54476
|
-
function _defineProperty$9(obj,
|
|
54477
|
-
|
|
54478
|
-
if (
|
|
54479
|
-
Object.defineProperty(obj,
|
|
54476
|
+
function _defineProperty$9(obj, key2, value) {
|
|
54477
|
+
key2 = _toPropertyKey$9(key2);
|
|
54478
|
+
if (key2 in obj) {
|
|
54479
|
+
Object.defineProperty(obj, key2, { value, enumerable: true, configurable: true, writable: true });
|
|
54480
54480
|
} else {
|
|
54481
|
-
obj[
|
|
54481
|
+
obj[key2] = value;
|
|
54482
54482
|
}
|
|
54483
54483
|
return obj;
|
|
54484
54484
|
}
|
|
54485
54485
|
function _toPropertyKey$9(arg) {
|
|
54486
|
-
var
|
|
54487
|
-
return typeof
|
|
54486
|
+
var key2 = _toPrimitive$9(arg, "string");
|
|
54487
|
+
return typeof key2 === "symbol" ? key2 : String(key2);
|
|
54488
54488
|
}
|
|
54489
54489
|
function _toPrimitive$9(input, hint) {
|
|
54490
54490
|
if (typeof input !== "object" || input === null) return input;
|
|
@@ -54607,18 +54607,18 @@ class DefaultColumnFormatter extends TableColumnFormatter {
|
|
|
54607
54607
|
return "".concat(value);
|
|
54608
54608
|
}
|
|
54609
54609
|
}
|
|
54610
|
-
function _defineProperty$8(obj,
|
|
54611
|
-
|
|
54612
|
-
if (
|
|
54613
|
-
Object.defineProperty(obj,
|
|
54610
|
+
function _defineProperty$8(obj, key2, value) {
|
|
54611
|
+
key2 = _toPropertyKey$8(key2);
|
|
54612
|
+
if (key2 in obj) {
|
|
54613
|
+
Object.defineProperty(obj, key2, { value, enumerable: true, configurable: true, writable: true });
|
|
54614
54614
|
} else {
|
|
54615
|
-
obj[
|
|
54615
|
+
obj[key2] = value;
|
|
54616
54616
|
}
|
|
54617
54617
|
return obj;
|
|
54618
54618
|
}
|
|
54619
54619
|
function _toPropertyKey$8(arg) {
|
|
54620
|
-
var
|
|
54621
|
-
return typeof
|
|
54620
|
+
var key2 = _toPrimitive$8(arg, "string");
|
|
54621
|
+
return typeof key2 === "symbol" ? key2 : String(key2);
|
|
54622
54622
|
}
|
|
54623
54623
|
function _toPrimitive$8(input, hint) {
|
|
54624
54624
|
if (typeof input !== "object" || input === null) return input;
|
|
@@ -54749,26 +54749,26 @@ function ownKeys(object, enumerableOnly) {
|
|
|
54749
54749
|
function _objectSpread(target) {
|
|
54750
54750
|
for (var i = 1; i < arguments.length; i++) {
|
|
54751
54751
|
var source = null != arguments[i] ? arguments[i] : {};
|
|
54752
|
-
i % 2 ? ownKeys(Object(source), true).forEach(function(
|
|
54753
|
-
_defineProperty$7(target,
|
|
54754
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function(
|
|
54755
|
-
Object.defineProperty(target,
|
|
54752
|
+
i % 2 ? ownKeys(Object(source), true).forEach(function(key2) {
|
|
54753
|
+
_defineProperty$7(target, key2, source[key2]);
|
|
54754
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function(key2) {
|
|
54755
|
+
Object.defineProperty(target, key2, Object.getOwnPropertyDescriptor(source, key2));
|
|
54756
54756
|
});
|
|
54757
54757
|
}
|
|
54758
54758
|
return target;
|
|
54759
54759
|
}
|
|
54760
|
-
function _defineProperty$7(obj,
|
|
54761
|
-
|
|
54762
|
-
if (
|
|
54763
|
-
Object.defineProperty(obj,
|
|
54760
|
+
function _defineProperty$7(obj, key2, value) {
|
|
54761
|
+
key2 = _toPropertyKey$7(key2);
|
|
54762
|
+
if (key2 in obj) {
|
|
54763
|
+
Object.defineProperty(obj, key2, { value, enumerable: true, configurable: true, writable: true });
|
|
54764
54764
|
} else {
|
|
54765
|
-
obj[
|
|
54765
|
+
obj[key2] = value;
|
|
54766
54766
|
}
|
|
54767
54767
|
return obj;
|
|
54768
54768
|
}
|
|
54769
54769
|
function _toPropertyKey$7(arg) {
|
|
54770
|
-
var
|
|
54771
|
-
return typeof
|
|
54770
|
+
var key2 = _toPrimitive$7(arg, "string");
|
|
54771
|
+
return typeof key2 === "symbol" ? key2 : String(key2);
|
|
54772
54772
|
}
|
|
54773
54773
|
function _toPrimitive$7(input, hint) {
|
|
54774
54774
|
if (typeof input !== "object" || input === null) return input;
|
|
@@ -55044,18 +55044,18 @@ function createFilterConditionFactory(columnNames, createColumnCondition) {
|
|
|
55044
55044
|
function createValueFilter(tableUtils, columnNames, value, operator) {
|
|
55045
55045
|
return createFilterConditionFactory(columnNames, (col) => col.filter()[operator](tableUtils.makeFilterValue(col.type, value)), "or");
|
|
55046
55046
|
}
|
|
55047
|
-
function _defineProperty$6(obj,
|
|
55048
|
-
|
|
55049
|
-
if (
|
|
55050
|
-
Object.defineProperty(obj,
|
|
55047
|
+
function _defineProperty$6(obj, key2, value) {
|
|
55048
|
+
key2 = _toPropertyKey$6(key2);
|
|
55049
|
+
if (key2 in obj) {
|
|
55050
|
+
Object.defineProperty(obj, key2, { value, enumerable: true, configurable: true, writable: true });
|
|
55051
55051
|
} else {
|
|
55052
|
-
obj[
|
|
55052
|
+
obj[key2] = value;
|
|
55053
55053
|
}
|
|
55054
55054
|
return obj;
|
|
55055
55055
|
}
|
|
55056
55056
|
function _toPropertyKey$6(arg) {
|
|
55057
|
-
var
|
|
55058
|
-
return typeof
|
|
55057
|
+
var key2 = _toPrimitive$6(arg, "string");
|
|
55058
|
+
return typeof key2 === "symbol" ? key2 : String(key2);
|
|
55059
55059
|
}
|
|
55060
55060
|
function _toPrimitive$6(input, hint) {
|
|
55061
55061
|
if (typeof input !== "object" || input === null) return input;
|
|
@@ -55072,18 +55072,18 @@ class Operator {
|
|
|
55072
55072
|
_defineProperty$6(Operator, "not", "not");
|
|
55073
55073
|
_defineProperty$6(Operator, "and", "and");
|
|
55074
55074
|
_defineProperty$6(Operator, "or", "or");
|
|
55075
|
-
function _defineProperty$5(obj,
|
|
55076
|
-
|
|
55077
|
-
if (
|
|
55078
|
-
Object.defineProperty(obj,
|
|
55075
|
+
function _defineProperty$5(obj, key2, value) {
|
|
55076
|
+
key2 = _toPropertyKey$5(key2);
|
|
55077
|
+
if (key2 in obj) {
|
|
55078
|
+
Object.defineProperty(obj, key2, { value, enumerable: true, configurable: true, writable: true });
|
|
55079
55079
|
} else {
|
|
55080
|
-
obj[
|
|
55080
|
+
obj[key2] = value;
|
|
55081
55081
|
}
|
|
55082
55082
|
return obj;
|
|
55083
55083
|
}
|
|
55084
55084
|
function _toPropertyKey$5(arg) {
|
|
55085
|
-
var
|
|
55086
|
-
return typeof
|
|
55085
|
+
var key2 = _toPrimitive$5(arg, "string");
|
|
55086
|
+
return typeof key2 === "symbol" ? key2 : String(key2);
|
|
55087
55087
|
}
|
|
55088
55088
|
function _toPrimitive$5(input, hint) {
|
|
55089
55089
|
if (typeof input !== "object" || input === null) return input;
|
|
@@ -55129,9 +55129,9 @@ function isClosed(table) {
|
|
|
55129
55129
|
}
|
|
55130
55130
|
return false;
|
|
55131
55131
|
}
|
|
55132
|
-
function asyncGeneratorStep(gen, resolve, reject, _next, _throw,
|
|
55132
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key2, arg) {
|
|
55133
55133
|
try {
|
|
55134
|
-
var info = gen[
|
|
55134
|
+
var info = gen[key2](arg);
|
|
55135
55135
|
var value = info.value;
|
|
55136
55136
|
} catch (error) {
|
|
55137
55137
|
reject(error);
|
|
@@ -55158,18 +55158,18 @@ function _asyncToGenerator(fn) {
|
|
|
55158
55158
|
});
|
|
55159
55159
|
};
|
|
55160
55160
|
}
|
|
55161
|
-
function _defineProperty$4(obj,
|
|
55162
|
-
|
|
55163
|
-
if (
|
|
55164
|
-
Object.defineProperty(obj,
|
|
55161
|
+
function _defineProperty$4(obj, key2, value) {
|
|
55162
|
+
key2 = _toPropertyKey$4(key2);
|
|
55163
|
+
if (key2 in obj) {
|
|
55164
|
+
Object.defineProperty(obj, key2, { value, enumerable: true, configurable: true, writable: true });
|
|
55165
55165
|
} else {
|
|
55166
|
-
obj[
|
|
55166
|
+
obj[key2] = value;
|
|
55167
55167
|
}
|
|
55168
55168
|
return obj;
|
|
55169
55169
|
}
|
|
55170
55170
|
function _toPropertyKey$4(arg) {
|
|
55171
|
-
var
|
|
55172
|
-
return typeof
|
|
55171
|
+
var key2 = _toPrimitive$4(arg, "string");
|
|
55172
|
+
return typeof key2 === "symbol" ? key2 : String(key2);
|
|
55173
55173
|
}
|
|
55174
55174
|
function _toPrimitive$4(input, hint) {
|
|
55175
55175
|
if (typeof input !== "object" || input === null) return input;
|
|
@@ -56614,18 +56614,18 @@ _defineProperty$4(TableUtils, "executeAndWaitForEvent", /* @__PURE__ */ function
|
|
|
56614
56614
|
return _ref2.apply(this, arguments);
|
|
56615
56615
|
};
|
|
56616
56616
|
}());
|
|
56617
|
-
function _defineProperty$3(obj,
|
|
56618
|
-
|
|
56619
|
-
if (
|
|
56620
|
-
Object.defineProperty(obj,
|
|
56617
|
+
function _defineProperty$3(obj, key2, value) {
|
|
56618
|
+
key2 = _toPropertyKey$3(key2);
|
|
56619
|
+
if (key2 in obj) {
|
|
56620
|
+
Object.defineProperty(obj, key2, { value, enumerable: true, configurable: true, writable: true });
|
|
56621
56621
|
} else {
|
|
56622
|
-
obj[
|
|
56622
|
+
obj[key2] = value;
|
|
56623
56623
|
}
|
|
56624
56624
|
return obj;
|
|
56625
56625
|
}
|
|
56626
56626
|
function _toPropertyKey$3(arg) {
|
|
56627
|
-
var
|
|
56628
|
-
return typeof
|
|
56627
|
+
var key2 = _toPrimitive$3(arg, "string");
|
|
56628
|
+
return typeof key2 === "symbol" ? key2 : String(key2);
|
|
56629
56629
|
}
|
|
56630
56630
|
function _toPrimitive$3(input, hint) {
|
|
56631
56631
|
if (typeof input !== "object" || input === null) return input;
|
|
@@ -56865,7 +56865,7 @@ var CssClasses = class _CssClasses {
|
|
|
56865
56865
|
return res;
|
|
56866
56866
|
}
|
|
56867
56867
|
toString() {
|
|
56868
|
-
const res = Object.keys(this.classesMap).filter((
|
|
56868
|
+
const res = Object.keys(this.classesMap).filter((key2) => this.classesMap[key2]).join(" ");
|
|
56869
56869
|
return res;
|
|
56870
56870
|
}
|
|
56871
56871
|
};
|
|
@@ -57030,11 +57030,11 @@ var CustomContext = React12.createContext({
|
|
|
57030
57030
|
});
|
|
57031
57031
|
var CustomWrapperComp = (params) => {
|
|
57032
57032
|
const { initialProps, addUpdateCallback, CustomComponentClass, setMethods } = params;
|
|
57033
|
-
const [{ key, ...props }, setProps] = React12.useState(initialProps);
|
|
57033
|
+
const [{ key: key2, ...props }, setProps] = React12.useState(initialProps);
|
|
57034
57034
|
React12.useEffect(() => {
|
|
57035
57035
|
addUpdateCallback((newProps) => setProps(newProps));
|
|
57036
57036
|
}, []);
|
|
57037
|
-
return /* @__PURE__ */ React12.createElement(CustomContext.Provider, { value: { setMethods } }, /* @__PURE__ */ React12.createElement(CustomComponentClass, { key, ...props }));
|
|
57037
|
+
return /* @__PURE__ */ React12.createElement(CustomContext.Provider, { value: { setMethods } }, /* @__PURE__ */ React12.createElement(CustomComponentClass, { key: key2, ...props }));
|
|
57038
57038
|
};
|
|
57039
57039
|
var customWrapperComp_default = React12.memo(CustomWrapperComp);
|
|
57040
57040
|
var counter = 0;
|
|
@@ -58241,13 +58241,13 @@ var jsxEditValue = (editDetails, setCellEditorRef, eGui, cellCtrl, jsEditorComp)
|
|
|
58241
58241
|
}
|
|
58242
58242
|
));
|
|
58243
58243
|
};
|
|
58244
|
-
var jsxShowValue = (showDetails,
|
|
58244
|
+
var jsxShowValue = (showDetails, key2, parentId, cellRendererRef, showCellWrapper, reactCellRendererStateless, setECellValue) => {
|
|
58245
58245
|
const { compDetails, value } = showDetails;
|
|
58246
58246
|
const noCellRenderer = !compDetails;
|
|
58247
58247
|
const reactCellRenderer = compDetails && compDetails.componentFromFramework;
|
|
58248
58248
|
const CellRendererClass = compDetails && compDetails.componentClass;
|
|
58249
58249
|
const valueForNoCellRenderer = (value == null ? void 0 : value.toString) ? value.toString() : value;
|
|
58250
|
-
const bodyJsxFunc = () => /* @__PURE__ */ React12.createElement(React12.Fragment, null, noCellRenderer && /* @__PURE__ */ React12.createElement(React12.Fragment, null, valueForNoCellRenderer), reactCellRenderer && !reactCellRendererStateless && /* @__PURE__ */ React12.createElement(CellRendererClass, { ...compDetails.params, key, ref: cellRendererRef }), reactCellRenderer && reactCellRendererStateless && /* @__PURE__ */ React12.createElement(CellRendererClass, { ...compDetails.params, key }));
|
|
58250
|
+
const bodyJsxFunc = () => /* @__PURE__ */ React12.createElement(React12.Fragment, null, noCellRenderer && /* @__PURE__ */ React12.createElement(React12.Fragment, null, valueForNoCellRenderer), reactCellRenderer && !reactCellRendererStateless && /* @__PURE__ */ React12.createElement(CellRendererClass, { ...compDetails.params, key: key2, ref: cellRendererRef }), reactCellRenderer && reactCellRendererStateless && /* @__PURE__ */ React12.createElement(CellRendererClass, { ...compDetails.params, key: key2 }));
|
|
58251
58251
|
return /* @__PURE__ */ React12.createElement(React12.Fragment, null, showCellWrapper ? /* @__PURE__ */ React12.createElement("span", { role: "presentation", id: `cell-${parentId}`, className: "ag-cell-value", ref: setECellValue }, bodyJsxFunc()) : bodyJsxFunc());
|
|
58252
58252
|
};
|
|
58253
58253
|
var CellComp = ({
|
|
@@ -59735,18 +59735,18 @@ function extractViewportRow(row, columns) {
|
|
|
59735
59735
|
}
|
|
59736
59736
|
return data;
|
|
59737
59737
|
}
|
|
59738
|
-
function _defineProperty$2(obj,
|
|
59739
|
-
|
|
59740
|
-
if (
|
|
59741
|
-
Object.defineProperty(obj,
|
|
59738
|
+
function _defineProperty$2(obj, key2, value) {
|
|
59739
|
+
key2 = _toPropertyKey$2(key2);
|
|
59740
|
+
if (key2 in obj) {
|
|
59741
|
+
Object.defineProperty(obj, key2, { value, enumerable: true, configurable: true, writable: true });
|
|
59742
59742
|
} else {
|
|
59743
|
-
obj[
|
|
59743
|
+
obj[key2] = value;
|
|
59744
59744
|
}
|
|
59745
59745
|
return obj;
|
|
59746
59746
|
}
|
|
59747
59747
|
function _toPropertyKey$2(arg) {
|
|
59748
|
-
var
|
|
59749
|
-
return typeof
|
|
59748
|
+
var key2 = _toPrimitive$2(arg, "string");
|
|
59749
|
+
return typeof key2 === "symbol" ? key2 : String(key2);
|
|
59750
59750
|
}
|
|
59751
59751
|
function _toPrimitive$2(input, hint) {
|
|
59752
59752
|
if (typeof input !== "object" || input === null) return input;
|
|
@@ -59764,18 +59764,18 @@ class CanceledPromiseError2 extends Error {
|
|
|
59764
59764
|
_defineProperty$2(this, "isCanceled", true);
|
|
59765
59765
|
}
|
|
59766
59766
|
}
|
|
59767
|
-
function _defineProperty$1(obj,
|
|
59768
|
-
|
|
59769
|
-
if (
|
|
59770
|
-
Object.defineProperty(obj,
|
|
59767
|
+
function _defineProperty$1(obj, key2, value) {
|
|
59768
|
+
key2 = _toPropertyKey$1(key2);
|
|
59769
|
+
if (key2 in obj) {
|
|
59770
|
+
Object.defineProperty(obj, key2, { value, enumerable: true, configurable: true, writable: true });
|
|
59771
59771
|
} else {
|
|
59772
|
-
obj[
|
|
59772
|
+
obj[key2] = value;
|
|
59773
59773
|
}
|
|
59774
59774
|
return obj;
|
|
59775
59775
|
}
|
|
59776
59776
|
function _toPropertyKey$1(arg) {
|
|
59777
|
-
var
|
|
59778
|
-
return typeof
|
|
59777
|
+
var key2 = _toPrimitive$1(arg, "string");
|
|
59778
|
+
return typeof key2 === "symbol" ? key2 : String(key2);
|
|
59779
59779
|
}
|
|
59780
59780
|
function _toPrimitive$1(input, hint) {
|
|
59781
59781
|
if (typeof input !== "object" || input === null) return input;
|
|
@@ -59849,18 +59849,18 @@ class PromiseUtils2 {
|
|
|
59849
59849
|
});
|
|
59850
59850
|
}
|
|
59851
59851
|
}
|
|
59852
|
-
function _defineProperty(obj,
|
|
59853
|
-
|
|
59854
|
-
if (
|
|
59855
|
-
Object.defineProperty(obj,
|
|
59852
|
+
function _defineProperty(obj, key2, value) {
|
|
59853
|
+
key2 = _toPropertyKey(key2);
|
|
59854
|
+
if (key2 in obj) {
|
|
59855
|
+
Object.defineProperty(obj, key2, { value, enumerable: true, configurable: true, writable: true });
|
|
59856
59856
|
} else {
|
|
59857
|
-
obj[
|
|
59857
|
+
obj[key2] = value;
|
|
59858
59858
|
}
|
|
59859
59859
|
return obj;
|
|
59860
59860
|
}
|
|
59861
59861
|
function _toPropertyKey(arg) {
|
|
59862
|
-
var
|
|
59863
|
-
return typeof
|
|
59862
|
+
var key2 = _toPrimitive(arg, "string");
|
|
59863
|
+
return typeof key2 === "symbol" ? key2 : String(key2);
|
|
59864
59864
|
}
|
|
59865
59865
|
function _toPrimitive(input, hint) {
|
|
59866
59866
|
if (typeof input !== "object" || input === null) return input;
|
|
@@ -60529,7 +60529,7 @@ function AgGridView({
|
|
|
60529
60529
|
}
|
|
60530
60530
|
]
|
|
60531
60531
|
}),
|
|
60532
|
-
[]
|
|
60532
|
+
[table]
|
|
60533
60533
|
);
|
|
60534
60534
|
const autoSizeAllColumns2 = () => {
|
|
60535
60535
|
const gridApi = gridApiRef.current;
|
|
@@ -60692,7 +60692,10 @@ function AgGridWidget(props) {
|
|
|
60692
60692
|
}, [dh, fetch]);
|
|
60693
60693
|
return table != null ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "ui-table-container", children: /* @__PURE__ */ jsxRuntimeExports.jsx(AgGridView, { table, settings, agGridProps }) }) : /* @__PURE__ */ jsxRuntimeExports.jsx(components.LoadingOverlay, {});
|
|
60694
60694
|
}
|
|
60695
|
-
|
|
60695
|
+
const key = "";
|
|
60696
|
+
if (key != null && key !== "") {
|
|
60697
|
+
GridLicenseManager.setLicenseKey(key);
|
|
60698
|
+
}
|
|
60696
60699
|
const AgGridPlugin = {
|
|
60697
60700
|
name: "@deephaven/js-plugin-ag-grid",
|
|
60698
60701
|
type: plugin.PluginType.WIDGET_PLUGIN,
|