@genesislcap/grid-pro 15.71.1-alpha-71cb16e4d3.0 → 15.73.0
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/custom-elements.json +495 -350
- package/dist/dts/context-menu/context-menu.d.ts +69 -0
- package/dist/dts/context-menu/context-menu.d.ts.map +1 -0
- package/dist/dts/context-menu/index.d.ts +2 -0
- package/dist/dts/context-menu/index.d.ts.map +1 -0
- package/dist/dts/grid-pro.d.ts +39 -2
- package/dist/dts/grid-pro.d.ts.map +1 -1
- package/dist/dts/index.d.ts +1 -0
- package/dist/dts/index.d.ts.map +1 -1
- package/dist/dts/react.d.ts +9 -9
- package/dist/esm/context-menu/context-menu.js +379 -0
- package/dist/esm/context-menu/index.js +1 -0
- package/dist/esm/grid-pro.js +81 -3
- package/dist/esm/index.js +1 -0
- package/dist/grid-pro.api.json +401 -1
- package/dist/grid-pro.d.ts +80 -3
- package/dist/react.cjs +6 -6
- package/dist/react.mjs +5 -5
- package/package.json +12 -12
package/dist/esm/grid-pro.js
CHANGED
|
@@ -13,6 +13,7 @@ import { GridProColumn, resolveVisibleColumnFields } from './column';
|
|
|
13
13
|
import { EnumColumnFilter, EnumColumnFloatingFilter, GridProFilterTypes } from './column-filters';
|
|
14
14
|
import { ColumnSelection, gridProColumnSelectionHostStyles } from './column-selection';
|
|
15
15
|
import { GRID_PRO_COLUMN_DRAG_BRIDGE_CONTEXT_KEY, gridProColumnDragBridgeModule, } from './column-selection/grid-pro-column-drag-bridge';
|
|
16
|
+
import { openGridContextMenu } from './context-menu/context-menu';
|
|
16
17
|
import { GridProClientSideDatasource, GridProInfiniteDatasource, GridProServerSideDatasource, } from './datasource';
|
|
17
18
|
import { baseDatasourceEventNames } from './datasource/base.types';
|
|
18
19
|
import { errorHandlerDialogStyles } from './datasource/error-handler.dialog';
|
|
@@ -159,6 +160,9 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
|
|
|
159
160
|
}
|
|
160
161
|
return undefined;
|
|
161
162
|
}
|
|
163
|
+
contextMenuItemsChanged() {
|
|
164
|
+
this.syncContextMenuSuppression();
|
|
165
|
+
}
|
|
162
166
|
enableColumnSelectionChanged() {
|
|
163
167
|
this.syncColumnSelectionHostLayout();
|
|
164
168
|
}
|
|
@@ -234,6 +238,8 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
|
|
|
234
238
|
this.statusPanelState = {};
|
|
235
239
|
this.warnedUnregisteredStatusBar = false;
|
|
236
240
|
this.warnedGridOptionsStatusBar = false;
|
|
241
|
+
/** Whether the AG grid instance was created with its own context menu suppressed. */
|
|
242
|
+
this.gridCreatedWithMenuSuppressed = false;
|
|
237
243
|
/**
|
|
238
244
|
* Shows a Columns side panel on the trailing edge of the grid.
|
|
239
245
|
* @public
|
|
@@ -247,6 +253,15 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
|
|
|
247
253
|
this.registeredGridEvents = new Set();
|
|
248
254
|
this.gridEventListeners = new Map();
|
|
249
255
|
this.boundGlobalEventListener = this.globalEventListener.bind(this);
|
|
256
|
+
/**
|
|
257
|
+
* `globalListener` runs on a timeout, which is too late to cancel the browser menu.
|
|
258
|
+
* This one runs inside the right-click event.
|
|
259
|
+
*/
|
|
260
|
+
this.boundContextMenuListener = (eventType, event) => {
|
|
261
|
+
if (eventType === 'cellContextMenu') {
|
|
262
|
+
this.showContextMenu(event);
|
|
263
|
+
}
|
|
264
|
+
};
|
|
250
265
|
this._filterConfig = undefined;
|
|
251
266
|
this.handleLuminanceChange = (record) => {
|
|
252
267
|
const luminance = baseLayerLuminance.getValueFor(record.target);
|
|
@@ -414,11 +429,13 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
|
|
|
414
429
|
this.toggleDatasourceEventListeners(true);
|
|
415
430
|
}
|
|
416
431
|
disconnectedCallback() {
|
|
417
|
-
var _a;
|
|
432
|
+
var _a, _b;
|
|
433
|
+
(_a = this.closeContextMenu) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
434
|
+
this.closeContextMenu = undefined;
|
|
418
435
|
this.disposed = true;
|
|
419
436
|
this.debouncedSaveColumnState.cancel();
|
|
420
437
|
this.debouncedSaveFilterModel.cancel();
|
|
421
|
-
const luminanceTarget = (
|
|
438
|
+
const luminanceTarget = (_b = this.provider) !== null && _b !== void 0 ? _b : this;
|
|
422
439
|
baseLayerLuminance.unsubscribe(this.luminanceObserver, luminanceTarget);
|
|
423
440
|
if (this.luminanceSubscription) {
|
|
424
441
|
this.luminanceSubscription.unsubscribe();
|
|
@@ -1171,6 +1188,7 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
|
|
|
1171
1188
|
get gridParams() {
|
|
1172
1189
|
return {
|
|
1173
1190
|
globalListener: this.boundGlobalEventListener,
|
|
1191
|
+
globalSyncListener: this.boundContextMenuListener,
|
|
1174
1192
|
modules: [gridProColumnDragBridgeModule, ColumnMoveModule, DragAndDropModule],
|
|
1175
1193
|
};
|
|
1176
1194
|
}
|
|
@@ -1238,6 +1256,9 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
|
|
|
1238
1256
|
const derivedOptions = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, this.gridOptionsConfig), { defaultColDef: Object.assign({ enableCellChangeFlash: this.enableCellFlashing, filter: true, resizable: true, sortable: true }, defaultColDef), components: this.combineAllGridComponents(components), headerHeight: this.headerHeight, rowHeight: this.rowHeight, animateRows: false, suppressDragLeaveHidesColumns: true }), this.eventsAndCallbacks), { onGridReady: (event) => __awaiter(this, void 0, void 0, function* () {
|
|
1239
1257
|
var _a, _b, _c;
|
|
1240
1258
|
this.gridApi = event.api;
|
|
1259
|
+
if (!!this.contextMenuItems !== this.gridCreatedWithMenuSuppressed) {
|
|
1260
|
+
this.syncContextMenuSuppression();
|
|
1261
|
+
}
|
|
1241
1262
|
this.applyStatusBarMode();
|
|
1242
1263
|
if (this.gridEventsQueue.length) {
|
|
1243
1264
|
this.gridEventsQueue.forEach((type) => {
|
|
@@ -1374,7 +1395,9 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
|
|
|
1374
1395
|
this.gridSlot.removeChild(this.gridSlot.firstChild);
|
|
1375
1396
|
}
|
|
1376
1397
|
}
|
|
1377
|
-
this.
|
|
1398
|
+
this.gridCreatedWithMenuSuppressed = !!this.contextMenuItems;
|
|
1399
|
+
this.agGrid = createGrid(this.gridSlot, this.gridCreatedWithMenuSuppressed
|
|
1400
|
+
? Object.assign(Object.assign({}, this.agGridOptions), { suppressContextMenu: true }) : this.agGridOptions, this.gridParams);
|
|
1378
1401
|
this.initialised = true;
|
|
1379
1402
|
});
|
|
1380
1403
|
}
|
|
@@ -1508,9 +1531,61 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
|
|
|
1508
1531
|
if (this.initialised) {
|
|
1509
1532
|
// for subsequent (post gridOptions) changes - use setGridOption API for v35
|
|
1510
1533
|
(_a = this.gridApi) === null || _a === void 0 ? void 0 : _a.setGridOption(gridPropertyName, newValue);
|
|
1534
|
+
if (gridPropertyName === 'suppressContextMenu' && this.contextMenuItems) {
|
|
1535
|
+
this.syncContextMenuSuppression();
|
|
1536
|
+
}
|
|
1511
1537
|
}
|
|
1512
1538
|
}
|
|
1513
1539
|
}
|
|
1540
|
+
/**
|
|
1541
|
+
* AG Grid draws its own menu when `ContextMenu` is registered, so it is suppressed while
|
|
1542
|
+
* `contextMenuItems` is set and the app's own `suppressContextMenu` restored when it is cleared.
|
|
1543
|
+
* The suppression goes to AG Grid only, never into `agGridOptions`: that object is what the
|
|
1544
|
+
* `gridOptions` getter returns, and an app re-applying it would otherwise adopt the setting.
|
|
1545
|
+
* @internal
|
|
1546
|
+
*/
|
|
1547
|
+
syncContextMenuSuppression() {
|
|
1548
|
+
var _a, _b, _c, _d;
|
|
1549
|
+
const appSetting = (_c = (_a = this.agAttributes.suppressContextMenu) !== null && _a !== void 0 ? _a : (_b = this.agGridOptions) === null || _b === void 0 ? void 0 : _b.suppressContextMenu) !== null && _c !== void 0 ? _c : false;
|
|
1550
|
+
(_d = this.gridApi) === null || _d === void 0 ? void 0 : _d.setGridOption('suppressContextMenu', this.contextMenuItems ? true : appSetting);
|
|
1551
|
+
}
|
|
1552
|
+
/**
|
|
1553
|
+
* Opens the grid's right-click menu for a cell. Called from the synchronous grid listener so
|
|
1554
|
+
* `preventDefault` still cancels the browser menu.
|
|
1555
|
+
* @internal
|
|
1556
|
+
*/
|
|
1557
|
+
showContextMenu(event) {
|
|
1558
|
+
var _a, _b, _c, _d, _e;
|
|
1559
|
+
const items = (_a = this.contextMenuItems) === null || _a === void 0 ? void 0 : _a.call(this, event);
|
|
1560
|
+
if (!(items === null || items === void 0 ? void 0 : items.length)) {
|
|
1561
|
+
return;
|
|
1562
|
+
}
|
|
1563
|
+
const mouse = event.event instanceof MouseEvent ? event.event : null;
|
|
1564
|
+
const pathTarget = mouse === null || mouse === void 0 ? void 0 : mouse.composedPath()[0];
|
|
1565
|
+
const target = pathTarget instanceof Element ? pathTarget : null;
|
|
1566
|
+
let x = (_b = mouse === null || mouse === void 0 ? void 0 : mouse.clientX) !== null && _b !== void 0 ? _b : 0;
|
|
1567
|
+
let y = (_c = mouse === null || mouse === void 0 ? void 0 : mouse.clientY) !== null && _c !== void 0 ? _c : 0;
|
|
1568
|
+
// A menu opened from the keyboard can arrive without a pointer position.
|
|
1569
|
+
const cell = target === null || target === void 0 ? void 0 : target.closest('.ag-cell');
|
|
1570
|
+
if (x === 0 && y === 0 && cell) {
|
|
1571
|
+
const rect = cell.getBoundingClientRect();
|
|
1572
|
+
x = rect.left;
|
|
1573
|
+
y = rect.bottom;
|
|
1574
|
+
}
|
|
1575
|
+
(_d = this.closeContextMenu) === null || _d === void 0 ? void 0 : _d.call(this);
|
|
1576
|
+
const [prefix = 'foundation'] = this.tagName.toLowerCase().split('-');
|
|
1577
|
+
this.closeContextMenu = openGridContextMenu({
|
|
1578
|
+
prefix,
|
|
1579
|
+
x,
|
|
1580
|
+
y,
|
|
1581
|
+
items,
|
|
1582
|
+
container: (_e = this.shadowRoot) !== null && _e !== void 0 ? _e : undefined,
|
|
1583
|
+
themeSource: target,
|
|
1584
|
+
});
|
|
1585
|
+
if (this.closeContextMenu && (mouse === null || mouse === void 0 ? void 0 : mouse.cancelable)) {
|
|
1586
|
+
mouse.preventDefault();
|
|
1587
|
+
}
|
|
1588
|
+
}
|
|
1514
1589
|
globalEventListener(eventType, event) {
|
|
1515
1590
|
const eventLowerCase = eventType.toLowerCase();
|
|
1516
1591
|
const browserEvent = new Event(eventLowerCase);
|
|
@@ -1597,6 +1672,9 @@ __decorate([
|
|
|
1597
1672
|
__decorate([
|
|
1598
1673
|
observable
|
|
1599
1674
|
], GridPro.prototype, "statusBarMode", void 0);
|
|
1675
|
+
__decorate([
|
|
1676
|
+
observable
|
|
1677
|
+
], GridPro.prototype, "contextMenuItems", void 0);
|
|
1600
1678
|
__decorate([
|
|
1601
1679
|
attr({ mode: 'boolean', attribute: 'enable-column-selection' })
|
|
1602
1680
|
], GridPro.prototype, "enableColumnSelection", void 0);
|
package/dist/esm/index.js
CHANGED
package/dist/grid-pro.api.json
CHANGED
|
@@ -7315,6 +7315,57 @@
|
|
|
7315
7315
|
"endIndex": 0
|
|
7316
7316
|
}
|
|
7317
7317
|
},
|
|
7318
|
+
{
|
|
7319
|
+
"kind": "Function",
|
|
7320
|
+
"canonicalReference": "@genesislcap/grid-pro!defaultGridContextMenuItems:function(1)",
|
|
7321
|
+
"docComment": "/**\n * A CSV Export item, using AG Grid's community CSV export. Assign it to `contextMenuItems` as the whole menu, or spread its result into a menu of your own. Empty when the grid sets `suppressCsvExport`.\n *\n * @public\n */\n",
|
|
7322
|
+
"excerptTokens": [
|
|
7323
|
+
{
|
|
7324
|
+
"kind": "Content",
|
|
7325
|
+
"text": "export declare function defaultGridContextMenuItems(event: "
|
|
7326
|
+
},
|
|
7327
|
+
{
|
|
7328
|
+
"kind": "Reference",
|
|
7329
|
+
"text": "CellContextMenuEvent",
|
|
7330
|
+
"canonicalReference": "ag-grid-community!CellContextMenuEvent:interface"
|
|
7331
|
+
},
|
|
7332
|
+
{
|
|
7333
|
+
"kind": "Content",
|
|
7334
|
+
"text": "): "
|
|
7335
|
+
},
|
|
7336
|
+
{
|
|
7337
|
+
"kind": "Reference",
|
|
7338
|
+
"text": "GridProContextMenuItem",
|
|
7339
|
+
"canonicalReference": "@genesislcap/grid-pro!GridProContextMenuItem:interface"
|
|
7340
|
+
},
|
|
7341
|
+
{
|
|
7342
|
+
"kind": "Content",
|
|
7343
|
+
"text": "[]"
|
|
7344
|
+
},
|
|
7345
|
+
{
|
|
7346
|
+
"kind": "Content",
|
|
7347
|
+
"text": ";"
|
|
7348
|
+
}
|
|
7349
|
+
],
|
|
7350
|
+
"fileUrlPath": "src/context-menu/context-menu.ts",
|
|
7351
|
+
"returnTypeTokenRange": {
|
|
7352
|
+
"startIndex": 3,
|
|
7353
|
+
"endIndex": 5
|
|
7354
|
+
},
|
|
7355
|
+
"releaseTag": "Public",
|
|
7356
|
+
"overloadIndex": 1,
|
|
7357
|
+
"parameters": [
|
|
7358
|
+
{
|
|
7359
|
+
"parameterName": "event",
|
|
7360
|
+
"parameterTypeTokenRange": {
|
|
7361
|
+
"startIndex": 1,
|
|
7362
|
+
"endIndex": 2
|
|
7363
|
+
},
|
|
7364
|
+
"isOptional": false
|
|
7365
|
+
}
|
|
7366
|
+
],
|
|
7367
|
+
"name": "defaultGridContextMenuItems"
|
|
7368
|
+
},
|
|
7318
7369
|
{
|
|
7319
7370
|
"kind": "Variable",
|
|
7320
7371
|
"canonicalReference": "@genesislcap/grid-pro!defaultGridOptionsConfig:var",
|
|
@@ -16405,6 +16456,68 @@
|
|
|
16405
16456
|
"isAbstract": false,
|
|
16406
16457
|
"name": "connectedCallback"
|
|
16407
16458
|
},
|
|
16459
|
+
{
|
|
16460
|
+
"kind": "Property",
|
|
16461
|
+
"canonicalReference": "@genesislcap/grid-pro!GridPro#contextMenuItems:member",
|
|
16462
|
+
"docComment": "/**\n * Opts the grid into its own right-click menu, built from these items for each cell. It needs no AG Grid Enterprise module, and replaces AG Grid's context menu while set. Assign {@link defaultGridContextMenuItems} for a CSV Export menu, or return an empty list to show the browser's menu for that cell.\n *\n * Unset, right-click is left alone: AG Grid's menu when its `ContextMenu` module is registered, otherwise the browser's.\n *\n * @public\n */\n",
|
|
16463
|
+
"excerptTokens": [
|
|
16464
|
+
{
|
|
16465
|
+
"kind": "Content",
|
|
16466
|
+
"text": "contextMenuItems?: "
|
|
16467
|
+
},
|
|
16468
|
+
{
|
|
16469
|
+
"kind": "Reference",
|
|
16470
|
+
"text": "GridProContextMenuItems",
|
|
16471
|
+
"canonicalReference": "@genesislcap/grid-pro!GridProContextMenuItems:type"
|
|
16472
|
+
},
|
|
16473
|
+
{
|
|
16474
|
+
"kind": "Content",
|
|
16475
|
+
"text": ";"
|
|
16476
|
+
}
|
|
16477
|
+
],
|
|
16478
|
+
"isReadonly": false,
|
|
16479
|
+
"isOptional": true,
|
|
16480
|
+
"releaseTag": "Public",
|
|
16481
|
+
"name": "contextMenuItems",
|
|
16482
|
+
"propertyTypeTokenRange": {
|
|
16483
|
+
"startIndex": 1,
|
|
16484
|
+
"endIndex": 2
|
|
16485
|
+
},
|
|
16486
|
+
"isStatic": false,
|
|
16487
|
+
"isProtected": false,
|
|
16488
|
+
"isAbstract": false
|
|
16489
|
+
},
|
|
16490
|
+
{
|
|
16491
|
+
"kind": "Method",
|
|
16492
|
+
"canonicalReference": "@genesislcap/grid-pro!GridPro#contextMenuItemsChanged:member(1)",
|
|
16493
|
+
"docComment": "",
|
|
16494
|
+
"excerptTokens": [
|
|
16495
|
+
{
|
|
16496
|
+
"kind": "Content",
|
|
16497
|
+
"text": "contextMenuItemsChanged(): "
|
|
16498
|
+
},
|
|
16499
|
+
{
|
|
16500
|
+
"kind": "Content",
|
|
16501
|
+
"text": "void"
|
|
16502
|
+
},
|
|
16503
|
+
{
|
|
16504
|
+
"kind": "Content",
|
|
16505
|
+
"text": ";"
|
|
16506
|
+
}
|
|
16507
|
+
],
|
|
16508
|
+
"isStatic": false,
|
|
16509
|
+
"returnTypeTokenRange": {
|
|
16510
|
+
"startIndex": 1,
|
|
16511
|
+
"endIndex": 2
|
|
16512
|
+
},
|
|
16513
|
+
"releaseTag": "Public",
|
|
16514
|
+
"isProtected": false,
|
|
16515
|
+
"overloadIndex": 1,
|
|
16516
|
+
"parameters": [],
|
|
16517
|
+
"isOptional": false,
|
|
16518
|
+
"isAbstract": false,
|
|
16519
|
+
"name": "contextMenuItemsChanged"
|
|
16520
|
+
},
|
|
16408
16521
|
{
|
|
16409
16522
|
"kind": "Property",
|
|
16410
16523
|
"canonicalReference": "@genesislcap/grid-pro!GridPro#customErrorHandlerTemplate:member",
|
|
@@ -17765,7 +17878,7 @@
|
|
|
17765
17878
|
},
|
|
17766
17879
|
{
|
|
17767
17880
|
"kind": "Content",
|
|
17768
|
-
"text": "<any, any>) => void) | ((event:
|
|
17881
|
+
"text": "<any, any>) => void) | ((event: "
|
|
17769
17882
|
},
|
|
17770
17883
|
{
|
|
17771
17884
|
"kind": "Reference",
|
|
@@ -21231,6 +21344,293 @@
|
|
|
21231
21344
|
"endIndex": 3
|
|
21232
21345
|
}
|
|
21233
21346
|
},
|
|
21347
|
+
{
|
|
21348
|
+
"kind": "TypeAlias",
|
|
21349
|
+
"canonicalReference": "@genesislcap/grid-pro!GridProContextMenuEntry:type",
|
|
21350
|
+
"docComment": "/**\n * An item, or `'separator'` for a dividing line between groups of items.\n *\n * @public\n */\n",
|
|
21351
|
+
"excerptTokens": [
|
|
21352
|
+
{
|
|
21353
|
+
"kind": "Content",
|
|
21354
|
+
"text": "export type GridProContextMenuEntry = "
|
|
21355
|
+
},
|
|
21356
|
+
{
|
|
21357
|
+
"kind": "Reference",
|
|
21358
|
+
"text": "GridProContextMenuItem",
|
|
21359
|
+
"canonicalReference": "@genesislcap/grid-pro!GridProContextMenuItem:interface"
|
|
21360
|
+
},
|
|
21361
|
+
{
|
|
21362
|
+
"kind": "Content",
|
|
21363
|
+
"text": " | 'separator'"
|
|
21364
|
+
},
|
|
21365
|
+
{
|
|
21366
|
+
"kind": "Content",
|
|
21367
|
+
"text": ";"
|
|
21368
|
+
}
|
|
21369
|
+
],
|
|
21370
|
+
"fileUrlPath": "src/context-menu/context-menu.ts",
|
|
21371
|
+
"releaseTag": "Public",
|
|
21372
|
+
"name": "GridProContextMenuEntry",
|
|
21373
|
+
"typeTokenRange": {
|
|
21374
|
+
"startIndex": 1,
|
|
21375
|
+
"endIndex": 3
|
|
21376
|
+
}
|
|
21377
|
+
},
|
|
21378
|
+
{
|
|
21379
|
+
"kind": "Interface",
|
|
21380
|
+
"canonicalReference": "@genesislcap/grid-pro!GridProContextMenuItem:interface",
|
|
21381
|
+
"docComment": "/**\n * One entry in grid-pro's right-click menu.\n *\n * @public\n */\n",
|
|
21382
|
+
"excerptTokens": [
|
|
21383
|
+
{
|
|
21384
|
+
"kind": "Content",
|
|
21385
|
+
"text": "export interface GridProContextMenuItem "
|
|
21386
|
+
}
|
|
21387
|
+
],
|
|
21388
|
+
"fileUrlPath": "src/context-menu/context-menu.ts",
|
|
21389
|
+
"releaseTag": "Public",
|
|
21390
|
+
"name": "GridProContextMenuItem",
|
|
21391
|
+
"preserveMemberOrder": false,
|
|
21392
|
+
"members": [
|
|
21393
|
+
{
|
|
21394
|
+
"kind": "PropertySignature",
|
|
21395
|
+
"canonicalReference": "@genesislcap/grid-pro!GridProContextMenuItem#action:member",
|
|
21396
|
+
"docComment": "",
|
|
21397
|
+
"excerptTokens": [
|
|
21398
|
+
{
|
|
21399
|
+
"kind": "Content",
|
|
21400
|
+
"text": "action?: "
|
|
21401
|
+
},
|
|
21402
|
+
{
|
|
21403
|
+
"kind": "Content",
|
|
21404
|
+
"text": "() => void"
|
|
21405
|
+
},
|
|
21406
|
+
{
|
|
21407
|
+
"kind": "Content",
|
|
21408
|
+
"text": ";"
|
|
21409
|
+
}
|
|
21410
|
+
],
|
|
21411
|
+
"isReadonly": false,
|
|
21412
|
+
"isOptional": true,
|
|
21413
|
+
"releaseTag": "Public",
|
|
21414
|
+
"name": "action",
|
|
21415
|
+
"propertyTypeTokenRange": {
|
|
21416
|
+
"startIndex": 1,
|
|
21417
|
+
"endIndex": 2
|
|
21418
|
+
}
|
|
21419
|
+
},
|
|
21420
|
+
{
|
|
21421
|
+
"kind": "PropertySignature",
|
|
21422
|
+
"canonicalReference": "@genesislcap/grid-pro!GridProContextMenuItem#checked:member",
|
|
21423
|
+
"docComment": "/**\n * Set to `true` or `false` to make the item a checkbox; leave unset for a plain item.\n */\n",
|
|
21424
|
+
"excerptTokens": [
|
|
21425
|
+
{
|
|
21426
|
+
"kind": "Content",
|
|
21427
|
+
"text": "checked?: "
|
|
21428
|
+
},
|
|
21429
|
+
{
|
|
21430
|
+
"kind": "Content",
|
|
21431
|
+
"text": "boolean"
|
|
21432
|
+
},
|
|
21433
|
+
{
|
|
21434
|
+
"kind": "Content",
|
|
21435
|
+
"text": ";"
|
|
21436
|
+
}
|
|
21437
|
+
],
|
|
21438
|
+
"isReadonly": false,
|
|
21439
|
+
"isOptional": true,
|
|
21440
|
+
"releaseTag": "Public",
|
|
21441
|
+
"name": "checked",
|
|
21442
|
+
"propertyTypeTokenRange": {
|
|
21443
|
+
"startIndex": 1,
|
|
21444
|
+
"endIndex": 2
|
|
21445
|
+
}
|
|
21446
|
+
},
|
|
21447
|
+
{
|
|
21448
|
+
"kind": "PropertySignature",
|
|
21449
|
+
"canonicalReference": "@genesislcap/grid-pro!GridProContextMenuItem#disabled:member",
|
|
21450
|
+
"docComment": "",
|
|
21451
|
+
"excerptTokens": [
|
|
21452
|
+
{
|
|
21453
|
+
"kind": "Content",
|
|
21454
|
+
"text": "disabled?: "
|
|
21455
|
+
},
|
|
21456
|
+
{
|
|
21457
|
+
"kind": "Content",
|
|
21458
|
+
"text": "boolean"
|
|
21459
|
+
},
|
|
21460
|
+
{
|
|
21461
|
+
"kind": "Content",
|
|
21462
|
+
"text": ";"
|
|
21463
|
+
}
|
|
21464
|
+
],
|
|
21465
|
+
"isReadonly": false,
|
|
21466
|
+
"isOptional": true,
|
|
21467
|
+
"releaseTag": "Public",
|
|
21468
|
+
"name": "disabled",
|
|
21469
|
+
"propertyTypeTokenRange": {
|
|
21470
|
+
"startIndex": 1,
|
|
21471
|
+
"endIndex": 2
|
|
21472
|
+
}
|
|
21473
|
+
},
|
|
21474
|
+
{
|
|
21475
|
+
"kind": "PropertySignature",
|
|
21476
|
+
"canonicalReference": "@genesislcap/grid-pro!GridProContextMenuItem#name:member",
|
|
21477
|
+
"docComment": "",
|
|
21478
|
+
"excerptTokens": [
|
|
21479
|
+
{
|
|
21480
|
+
"kind": "Content",
|
|
21481
|
+
"text": "name: "
|
|
21482
|
+
},
|
|
21483
|
+
{
|
|
21484
|
+
"kind": "Content",
|
|
21485
|
+
"text": "string"
|
|
21486
|
+
},
|
|
21487
|
+
{
|
|
21488
|
+
"kind": "Content",
|
|
21489
|
+
"text": ";"
|
|
21490
|
+
}
|
|
21491
|
+
],
|
|
21492
|
+
"isReadonly": false,
|
|
21493
|
+
"isOptional": false,
|
|
21494
|
+
"releaseTag": "Public",
|
|
21495
|
+
"name": "name",
|
|
21496
|
+
"propertyTypeTokenRange": {
|
|
21497
|
+
"startIndex": 1,
|
|
21498
|
+
"endIndex": 2
|
|
21499
|
+
}
|
|
21500
|
+
},
|
|
21501
|
+
{
|
|
21502
|
+
"kind": "PropertySignature",
|
|
21503
|
+
"canonicalReference": "@genesislcap/grid-pro!GridProContextMenuItem#shortcut:member",
|
|
21504
|
+
"docComment": "/**\n * Drawn to the right of the name, for example a key combination.\n */\n",
|
|
21505
|
+
"excerptTokens": [
|
|
21506
|
+
{
|
|
21507
|
+
"kind": "Content",
|
|
21508
|
+
"text": "shortcut?: "
|
|
21509
|
+
},
|
|
21510
|
+
{
|
|
21511
|
+
"kind": "Content",
|
|
21512
|
+
"text": "string"
|
|
21513
|
+
},
|
|
21514
|
+
{
|
|
21515
|
+
"kind": "Content",
|
|
21516
|
+
"text": ";"
|
|
21517
|
+
}
|
|
21518
|
+
],
|
|
21519
|
+
"isReadonly": false,
|
|
21520
|
+
"isOptional": true,
|
|
21521
|
+
"releaseTag": "Public",
|
|
21522
|
+
"name": "shortcut",
|
|
21523
|
+
"propertyTypeTokenRange": {
|
|
21524
|
+
"startIndex": 1,
|
|
21525
|
+
"endIndex": 2
|
|
21526
|
+
}
|
|
21527
|
+
},
|
|
21528
|
+
{
|
|
21529
|
+
"kind": "PropertySignature",
|
|
21530
|
+
"canonicalReference": "@genesislcap/grid-pro!GridProContextMenuItem#subMenu:member",
|
|
21531
|
+
"docComment": "",
|
|
21532
|
+
"excerptTokens": [
|
|
21533
|
+
{
|
|
21534
|
+
"kind": "Content",
|
|
21535
|
+
"text": "subMenu?: "
|
|
21536
|
+
},
|
|
21537
|
+
{
|
|
21538
|
+
"kind": "Reference",
|
|
21539
|
+
"text": "GridProContextMenuEntry",
|
|
21540
|
+
"canonicalReference": "@genesislcap/grid-pro!GridProContextMenuEntry:type"
|
|
21541
|
+
},
|
|
21542
|
+
{
|
|
21543
|
+
"kind": "Content",
|
|
21544
|
+
"text": "[]"
|
|
21545
|
+
},
|
|
21546
|
+
{
|
|
21547
|
+
"kind": "Content",
|
|
21548
|
+
"text": ";"
|
|
21549
|
+
}
|
|
21550
|
+
],
|
|
21551
|
+
"isReadonly": false,
|
|
21552
|
+
"isOptional": true,
|
|
21553
|
+
"releaseTag": "Public",
|
|
21554
|
+
"name": "subMenu",
|
|
21555
|
+
"propertyTypeTokenRange": {
|
|
21556
|
+
"startIndex": 1,
|
|
21557
|
+
"endIndex": 3
|
|
21558
|
+
}
|
|
21559
|
+
},
|
|
21560
|
+
{
|
|
21561
|
+
"kind": "PropertySignature",
|
|
21562
|
+
"canonicalReference": "@genesislcap/grid-pro!GridProContextMenuItem#tooltip:member",
|
|
21563
|
+
"docComment": "/**\n * Shown on hover, including while the item is disabled — say why it cannot be chosen.\n */\n",
|
|
21564
|
+
"excerptTokens": [
|
|
21565
|
+
{
|
|
21566
|
+
"kind": "Content",
|
|
21567
|
+
"text": "tooltip?: "
|
|
21568
|
+
},
|
|
21569
|
+
{
|
|
21570
|
+
"kind": "Content",
|
|
21571
|
+
"text": "string"
|
|
21572
|
+
},
|
|
21573
|
+
{
|
|
21574
|
+
"kind": "Content",
|
|
21575
|
+
"text": ";"
|
|
21576
|
+
}
|
|
21577
|
+
],
|
|
21578
|
+
"isReadonly": false,
|
|
21579
|
+
"isOptional": true,
|
|
21580
|
+
"releaseTag": "Public",
|
|
21581
|
+
"name": "tooltip",
|
|
21582
|
+
"propertyTypeTokenRange": {
|
|
21583
|
+
"startIndex": 1,
|
|
21584
|
+
"endIndex": 2
|
|
21585
|
+
}
|
|
21586
|
+
}
|
|
21587
|
+
],
|
|
21588
|
+
"extendsTokenRanges": []
|
|
21589
|
+
},
|
|
21590
|
+
{
|
|
21591
|
+
"kind": "TypeAlias",
|
|
21592
|
+
"canonicalReference": "@genesislcap/grid-pro!GridProContextMenuItems:type",
|
|
21593
|
+
"docComment": "/**\n * Builds the right-click menu for one cell. Return an empty list to show the browser's menu.\n *\n * @public\n */\n",
|
|
21594
|
+
"excerptTokens": [
|
|
21595
|
+
{
|
|
21596
|
+
"kind": "Content",
|
|
21597
|
+
"text": "export type GridProContextMenuItems = "
|
|
21598
|
+
},
|
|
21599
|
+
{
|
|
21600
|
+
"kind": "Content",
|
|
21601
|
+
"text": "(event: "
|
|
21602
|
+
},
|
|
21603
|
+
{
|
|
21604
|
+
"kind": "Reference",
|
|
21605
|
+
"text": "CellContextMenuEvent",
|
|
21606
|
+
"canonicalReference": "ag-grid-community!CellContextMenuEvent:interface"
|
|
21607
|
+
},
|
|
21608
|
+
{
|
|
21609
|
+
"kind": "Content",
|
|
21610
|
+
"text": ") => "
|
|
21611
|
+
},
|
|
21612
|
+
{
|
|
21613
|
+
"kind": "Reference",
|
|
21614
|
+
"text": "GridProContextMenuEntry",
|
|
21615
|
+
"canonicalReference": "@genesislcap/grid-pro!GridProContextMenuEntry:type"
|
|
21616
|
+
},
|
|
21617
|
+
{
|
|
21618
|
+
"kind": "Content",
|
|
21619
|
+
"text": "[]"
|
|
21620
|
+
},
|
|
21621
|
+
{
|
|
21622
|
+
"kind": "Content",
|
|
21623
|
+
"text": ";"
|
|
21624
|
+
}
|
|
21625
|
+
],
|
|
21626
|
+
"fileUrlPath": "src/context-menu/context-menu.ts",
|
|
21627
|
+
"releaseTag": "Public",
|
|
21628
|
+
"name": "GridProContextMenuItems",
|
|
21629
|
+
"typeTokenRange": {
|
|
21630
|
+
"startIndex": 1,
|
|
21631
|
+
"endIndex": 6
|
|
21632
|
+
}
|
|
21633
|
+
},
|
|
21234
21634
|
{
|
|
21235
21635
|
"kind": "TypeAlias",
|
|
21236
21636
|
"canonicalReference": "@genesislcap/grid-pro!GridProErrorEvent:type",
|