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