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