@genesislcap/grid-pro 14.194.0 → 14.194.1-alpha-5e85261f157.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.
@@ -523,6 +523,15 @@
523
523
  }
524
524
  ]
525
525
  },
526
+ {
527
+ "kind": "field",
528
+ "name": "blockScrollingOnContextMenu",
529
+ "type": {
530
+ "text": "boolean"
531
+ },
532
+ "default": "false",
533
+ "description": "If true, will block scrolling when context menu is open and keep the grid in the same position without scrolling to new records"
534
+ },
526
535
  {
527
536
  "kind": "field",
528
537
  "name": "classNames",
@@ -654,6 +663,20 @@
654
663
  }
655
664
  ]
656
665
  },
666
+ {
667
+ "kind": "field",
668
+ "name": "selectedRowId",
669
+ "type": {
670
+ "text": "string"
671
+ }
672
+ },
673
+ {
674
+ "kind": "field",
675
+ "name": "selectedColId",
676
+ "type": {
677
+ "text": "string"
678
+ }
679
+ },
657
680
  {
658
681
  "kind": "field",
659
682
  "name": "gridOptionsConfig",
@@ -1281,6 +1304,15 @@
1281
1304
  "text": "string"
1282
1305
  },
1283
1306
  "fieldName": "theme"
1307
+ },
1308
+ {
1309
+ "name": "block-scrolling-on-context-menu",
1310
+ "type": {
1311
+ "text": "boolean"
1312
+ },
1313
+ "default": "false",
1314
+ "description": "If true, will block scrolling when context menu is open and keep the grid in the same position without scrolling to new records",
1315
+ "fieldName": "blockScrollingOnContextMenu"
1284
1316
  }
1285
1317
  ],
1286
1318
  "mixins": [
@@ -6286,6 +6318,11 @@
6286
6318
  }
6287
6319
  ]
6288
6320
  },
6321
+ {
6322
+ "kind": "method",
6323
+ "name": "setPreviouslySelectedCell",
6324
+ "privacy": "private"
6325
+ },
6289
6326
  {
6290
6327
  "kind": "method",
6291
6328
  "name": "applyTransaction",
@@ -7713,6 +7750,15 @@
7713
7750
  "module": "src/datasource/base.datasource.ts"
7714
7751
  }
7715
7752
  },
7753
+ {
7754
+ "kind": "method",
7755
+ "name": "setPreviouslySelectedCell",
7756
+ "privacy": "private",
7757
+ "inheritedFrom": {
7758
+ "name": "GridProBaseDatasource",
7759
+ "module": "src/datasource/base.datasource.ts"
7760
+ }
7761
+ },
7716
7762
  {
7717
7763
  "kind": "method",
7718
7764
  "name": "mapTransaction",
@@ -9146,6 +9192,15 @@
9146
9192
  "module": "src/datasource/base.datasource.ts"
9147
9193
  }
9148
9194
  },
9195
+ {
9196
+ "kind": "method",
9197
+ "name": "setPreviouslySelectedCell",
9198
+ "privacy": "private",
9199
+ "inheritedFrom": {
9200
+ "name": "GridProBaseDatasource",
9201
+ "module": "src/datasource/base.datasource.ts"
9202
+ }
9203
+ },
9149
9204
  {
9150
9205
  "kind": "method",
9151
9206
  "name": "mapTransaction",
@@ -10693,6 +10748,15 @@
10693
10748
  "module": "src/datasource/base.datasource.ts"
10694
10749
  }
10695
10750
  },
10751
+ {
10752
+ "kind": "method",
10753
+ "name": "setPreviouslySelectedCell",
10754
+ "privacy": "private",
10755
+ "inheritedFrom": {
10756
+ "name": "GridProBaseDatasource",
10757
+ "module": "src/datasource/base.datasource.ts"
10758
+ }
10759
+ },
10696
10760
  {
10697
10761
  "kind": "method",
10698
10762
  "name": "mapTransaction",
@@ -1,4 +1,4 @@
1
- import type { ColDef, ColumnState, GridOptions, RowDataTransaction, ServerSideTransaction } from '@ag-grid-community/core';
1
+ import { ColDef, ColumnState, GridOptions, RowDataTransaction, ServerSideTransaction } from '@ag-grid-community/core';
2
2
  import { DatasourceStatus, FieldMetadata } from '@genesislcap/foundation-comms';
3
3
  import { Connect } from '@genesislcap/foundation-comms';
4
4
  import type { GridPro } from '../grid-pro';
@@ -10,6 +10,10 @@ declare const GenesisGridDatasourceElement_base: new () => {
10
10
  connectedCallback(): void;
11
11
  disconnectedCallback(): void;
12
12
  accessKey: string;
13
+ /**
14
+ * Returns whether the `row-id` attribute is the default one, depending on the resource type.
15
+ * @internal
16
+ */
13
17
  readonly accessKeyLabel: string;
14
18
  autocapitalize: string;
15
19
  dir: string;
@@ -378,6 +382,7 @@ export declare class GridProBaseDatasource extends GenesisGridDatasourceElement
378
382
  protected applyAllAgTransactions(): void;
379
383
  private flashAddedCells;
380
384
  private applyMappedAgTransaction;
385
+ private setPreviouslySelectedCell;
381
386
  protected applyTransaction(agTransaction: RowDataTransaction): any;
382
387
  protected applyTransactionAsync(agTransaction: RowDataTransaction, callback?: (res: any) => void): void;
383
388
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"base.datasource.d.ts","sourceRoot":"","sources":["../../../src/datasource/base.datasource.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,MAAM,EACN,WAAW,EACX,WAAW,EACX,kBAAkB,EAClB,qBAAqB,EACtB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAGL,gBAAgB,EAChB,aAAa,EAId,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAIxD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAS3C,qBAAa,4BAA6B,SAAQ,iCAAyC;IAChF,OAAO,EAAG,OAAO,CAAC;IAEf,mBAAmB,EAAE,WAAW,CAAC;IACjC,oBAAoB,EAAE,WAAW,EAAE,CAAC;IAEhD;;OAEG;IACS,aAAa,EAAE,QAAQ,CAAC;IAE9B,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MA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,EAAE,GAAG,EAAE;IAgBhD,SAAS,CAAC,mBAAmB,CAAC,WAAW,EAAE,GAAG,EAAE;IAuBhD,SAAS,CAAC,sBAAsB;IAsChC,OAAO,CAAC,eAAe;IAMvB,OAAO,CAAC,wBAAwB;IAqChC,OAAO,CAAC,yBAAyB;IAejC,SAAS,CAAC,gBAAgB,CAAC,aAAa,EAAE,kBAAkB,GAAG,GAAG;IAIlE,SAAS,CAAC,qBAAqB,CAAC,aAAa,EAAE,kBAAkB,EAAE,QAAQ,CAAC,EAAE,CAAC,GAAG,KAAA,KAAK,IAAI;IAI3F;;;;;OAKG;IACH,OAAO,CAAC,cAAc;CAwBvB;AAED,qBAAa,oBAAoB;IAC/B,SAAS,CAAC,KAAK,EAAE,MAAM,CAAC;IACxB,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,CAAa;CACvC"}
@@ -169,7 +169,11 @@ declare const GridPro_base: (new (...args: any[]) => {
169
169
  readonly TEXT_NODE: number;
170
170
  dispatchEvent(event: Event): boolean;
171
171
  ariaAtomic: string;
172
- ariaAutoComplete: string;
172
+ ariaAutoComplete: string; /**
173
+ * Because we try and resize the grid to fit using callbacks on events, this will cause
174
+ * a stack overflow of calls to resize, so we need to debounce it.
175
+ * @internal
176
+ */
173
177
  ariaBusy: string;
174
178
  ariaChecked: string;
175
179
  ariaColCount: string;
@@ -286,13 +290,6 @@ declare const GridPro_base: (new (...args: any[]) => {
286
290
  onmousemove: (this: GlobalEventHandlers, ev: MouseEvent) => any;
287
291
  onmouseout: (this: GlobalEventHandlers, ev: MouseEvent) => any;
288
292
  onmouseover: (this: GlobalEventHandlers, ev: MouseEvent) => any;
289
- /**
290
- * Will merge templated column definitions with `columnDefs` plus localStorage's column state or `deferredColumnStates`.
291
- * @deprecated use `applyTemplateDefinitions` instead.
292
- * @param columnDefs - The column definitions to apply to the grid.
293
- * @param deferredColumnDefsOrState - If true, will merge the column definitions with the saved column state or the `deferredColumnStates` property on the `grid-pro-genesis-datasource` element.
294
- * @returns The merged column definitions.
295
- */
296
293
  onmouseup: (this: GlobalEventHandlers, ev: MouseEvent) => any;
297
294
  onpause: (this: GlobalEventHandlers, ev: Event) => any;
298
295
  onplay: (this: GlobalEventHandlers, ev: Event) => any;
@@ -428,6 +425,12 @@ export declare class GridPro extends GridPro_base {
428
425
  rowHeight: number;
429
426
  theme: string;
430
427
  themeChanged(oldValue: string, newValue: string): void;
428
+ /**
429
+ * If true, will block scrolling when context menu is open and keep the grid in the same position without scrolling to new records
430
+ * @remarks Defaults to false
431
+ * @alpha
432
+ */
433
+ blockScrollingOnContextMenu: boolean;
431
434
  classNames: string;
432
435
  agGrid: Grid;
433
436
  gridSlot: HTMLSlotElement;
@@ -449,6 +452,8 @@ export declare class GridPro extends GridPro_base {
449
452
  setFilterModel(value: {
450
453
  [key: string]: any;
451
454
  }): Promise<void>;
455
+ selectedRowId: string;
456
+ selectedColId: string;
452
457
  /**
453
458
  * Injectable config that allows to change grid options on an app level basis
454
459
  * To modify options, register instance of the config in DOM container that is
@@ -1 +1 @@
1
- {"version":3,"file":"grid-pro.d.ts","sourceRoot":"","sources":["../../src/grid-pro.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAiB,IAAI,EAAkB,MAAM,yBAAyB,CAAC;AAC3F,OAAO,KAAK,EACV,MAAM,EACN,SAAS,EAET,OAAO,EACP,WAAW,EACX,UAAU,EAEX,MAAM,yBAAyB,CAAC;AAQjC,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAoB/D,OAAO,EAAE,2BAA2B,EAAE,2BAA2B,EAAE,MAAM,cAAc,CAAC;AAExF,OAAO,EACL,wBAAwB,EAEzB,MAAM,+BAA+B,CAAC;AAQvC,OAAO,EAKL,cAAc,EAId,iBAAiB,EACjB,eAAe,EAEf,gBAAgB,EAChB,iBAAiB,EAElB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;A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iBAAiB;IAInB,yBAAyB,IAAI,OAAO,CAAC,IAAI,CAAC;IAShD;;OAEG;IACH,IAAI,WAAW,IAAI,WAAW,CAE7B;IAED;;OAEG;IACH,IAAI,UAAU,IAAI,UAAU,CAI3B;IAED;;;;OAIG;IACH,IAAI,iBAAiB,IACjB,wBAAwB,GACxB,2BAA2B,GAC3B,2BAA2B,CAM9B;IAED,IAAI,WAAW,CAAC,OAAO,EAAE,WAAW,EAgHnC;IAED,OAAO,CAAC,mBAAmB;IAO3B,OAAO,CAAC,QAAQ;IAehB;;;;;;OAMG;IACH,wBAAwB,CAAC,UAAU,EAAE,MAAM,EAAE,EAAE,yBAAyB,UAAQ;IAKhF;;;;;;;;OAQG;IACG,2BAA2B,CAAC,UAAU,EAAE,MAAM,EAAE,EAAE,yBAAyB,UAAQ;IAuFzF,IAAI,kBAAkB,aAarB;IAED,0BAA0B,CAAC,OAAO,KAAA,EAAE,QAAQ,KAAA,EAAE,QAAQ,KAAA;IAqBtD,mBAAmB,CAAC,SAAS,KAAA,EAAE,KAAK,KAAA;IAiBpC,OAAO,CAAC,eAAe,CAAa;IAEpC,OAAO,CAAC,cAAc;IAStB,OAAO,CAAC,eAAe;CAMxB;AAED;;;;;GAKG;AACH,eAAO,MAAM,8BAA8B,EAAE,cAA0B,CAAC;AAExE;;;GAGG;AACH,eAAO,MAAM,oBAAoB;;CAEhC,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;kBAM5B,CAAC"}
@@ -1,7 +1,8 @@
1
1
  import { __decorate } from "tslib";
2
+ import { Events, } from '@ag-grid-community/core';
2
3
  import { DatasourceDefaults, DatasourceEventHandler, FieldTypeEnum, logger, ResourceType, } from '@genesislcap/foundation-comms';
3
4
  import { Connect } from '@genesislcap/foundation-comms';
4
- import { attr, observable } from '@microsoft/fast-element';
5
+ import { attr, DOM, observable } from '@microsoft/fast-element';
5
6
  import { FoundationElement } from '@microsoft/fast-foundation';
6
7
  import { dateValueFormatter, dateTimeValueFormatter, getColumnType, getFilterByFieldType, } from '../grid-pro.definitions';
7
8
  import { GridProRendererTypes } from '../grid-pro.types';
@@ -235,12 +236,35 @@ export class GridProBaseDatasource extends GenesisGridDatasourceElement {
235
236
  this.applyTransactionAsync(this.mapTransaction(agTransaction, [operation]), (changedNodes) => {
236
237
  this.flashAddedCells(changedNodes.add);
237
238
  });
239
+ if (this.agGrid.blockScrollingOnContextMenu) {
240
+ const listenerEvent = (e) => {
241
+ e.results.forEach((result) => {
242
+ if (result.add.length || result.remove.length) {
243
+ this.setPreviouslySelectedCell();
244
+ }
245
+ });
246
+ };
247
+ this.agGrid.gridApi.addEventListener(Events.EVENT_ASYNC_TRANSACTIONS_FLUSHED, listenerEvent);
248
+ }
238
249
  }
239
250
  else {
240
251
  const changedNodes = this.applyTransaction(this.mapTransaction(agTransaction, [operation]));
241
252
  this.flashAddedCells(changedNodes.add);
253
+ if (this.agGrid.blockScrollingOnContextMenu) {
254
+ this.setPreviouslySelectedCell();
255
+ }
242
256
  }
243
257
  }
258
+ setPreviouslySelectedCell() {
259
+ const previouslySelectedRowNode = this.agGrid.gridApi.getRowNode(this.agGrid.selectedRowId);
260
+ const previouslySelectedColId = this.agGrid.selectedColId;
261
+ if (!previouslySelectedRowNode || !previouslySelectedColId)
262
+ return;
263
+ DOM.queueUpdate(() => {
264
+ this.agGrid.gridApi.setFocusedCell(previouslySelectedRowNode.rowIndex, previouslySelectedColId);
265
+ this.agGrid.gridApi.ensureIndexVisible(previouslySelectedRowNode.rowIndex, 'middle');
266
+ });
267
+ }
244
268
  applyTransaction(agTransaction) {
245
269
  throw new Error('Method not implemented.');
246
270
  }
@@ -121,6 +121,12 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
121
121
  this.gridFontFace = defaultAgGridFontFace;
122
122
  this.columnComponentName = 'grid-pro-column';
123
123
  this.theme = AgGridTheme.alpine;
124
+ /**
125
+ * If true, will block scrolling when context menu is open and keep the grid in the same position without scrolling to new records
126
+ * @remarks Defaults to false
127
+ * @alpha
128
+ */
129
+ this.blockScrollingOnContextMenu = false;
124
130
  this.rehydrationAttempted = false;
125
131
  this.rootEventsListeners = [];
126
132
  this.gridEventsQueue = [];
@@ -335,8 +341,26 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
335
341
  return;
336
342
  this.agAttributes[attrName] = attribute.value;
337
343
  });
338
- const { columnDefs, components, defaultColDef, getRowId, onGridReady, onFilterChanged } = options, rest = __rest(options, ["columnDefs", "components", "defaultColDef", "getRowId", "onGridReady", "onFilterChanged"]);
339
- const derivedOptions = 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), suppressDragLeaveHidesColumns: true }), this.eventsAndCallbacks), { onGridReady: (event) => {
344
+ const { columnDefs, components, defaultColDef, getRowId, onCellContextMenu, onFilterChanged, onGridReady } = options, rest = __rest(options, ["columnDefs", "components", "defaultColDef", "getRowId", "onCellContextMenu", "onFilterChanged", "onGridReady"]);
345
+ const derivedOptions = 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), suppressDragLeaveHidesColumns: true }), this.eventsAndCallbacks), { onCellContextMenu: (event) => {
346
+ if (this.blockScrollingOnContextMenu) {
347
+ debugger;
348
+ this.selectedRowId = event.node.id;
349
+ this.selectedColId = event.colDef.colId;
350
+ this.addEventListener('click', (e) => {
351
+ this.selectedRowId = undefined;
352
+ this.selectedColId = undefined;
353
+ }, { once: true });
354
+ }
355
+ if (onCellContextMenu) {
356
+ onCellContextMenu(event);
357
+ }
358
+ }, onColumnPinned: gridOnChangeCallback, onColumnResized: gridOnChangeCallback, onColumnMoved: gridOnChangeCallback, onDisplayedColumnsChanged: gridOnChangeCallback, onFilterChanged: (filterChangedEvent) => {
359
+ debouceSaveFiltermodel();
360
+ if (onFilterChanged) {
361
+ onFilterChanged(filterChangedEvent);
362
+ }
363
+ }, onGridReady: (event) => {
340
364
  var _a, _b;
341
365
  this.gridApi = (_a = options.api) !== null && _a !== void 0 ? _a : event.api;
342
366
  this.columnApi = (_b = options.columnApi) !== null && _b !== void 0 ? _b : event.columnApi;
@@ -357,11 +381,6 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
357
381
  });
358
382
  this.restoreColumnState.bind(this)();
359
383
  this.debouncedColumnAutosize.bind(this)();
360
- }, onColumnPinned: gridOnChangeCallback, onColumnResized: gridOnChangeCallback, onColumnMoved: gridOnChangeCallback, onDisplayedColumnsChanged: gridOnChangeCallback, onFilterChanged: (filterChangedEvent) => {
361
- debouceSaveFiltermodel();
362
- if (onFilterChanged) {
363
- onFilterChanged(filterChangedEvent);
364
- }
365
384
  }, onGridSizeChanged: gridOnChangeCallback, onSortChanged: gridOnChangeCallback }), rest);
366
385
  if (this.gridProDatasource) {
367
386
  derivedOptions.columnDefs = columnDefs;
@@ -607,6 +626,9 @@ __decorate([
607
626
  __decorate([
608
627
  attr
609
628
  ], GridPro.prototype, "theme", void 0);
629
+ __decorate([
630
+ attr({ attribute: 'block-scrolling-on-context-menu', mode: 'boolean' })
631
+ ], GridPro.prototype, "blockScrollingOnContextMenu", void 0);
610
632
  __decorate([
611
633
  observable
612
634
  ], GridPro.prototype, "classNames", void 0);
@@ -9424,6 +9424,66 @@
9424
9424
  "isProtected": false,
9425
9425
  "isAbstract": false
9426
9426
  },
9427
+ {
9428
+ "kind": "Property",
9429
+ "canonicalReference": "@genesislcap/grid-pro!GridPro#selectedColId:member",
9430
+ "docComment": "",
9431
+ "excerptTokens": [
9432
+ {
9433
+ "kind": "Content",
9434
+ "text": "selectedColId: "
9435
+ },
9436
+ {
9437
+ "kind": "Content",
9438
+ "text": "string"
9439
+ },
9440
+ {
9441
+ "kind": "Content",
9442
+ "text": ";"
9443
+ }
9444
+ ],
9445
+ "isReadonly": false,
9446
+ "isOptional": false,
9447
+ "releaseTag": "Public",
9448
+ "name": "selectedColId",
9449
+ "propertyTypeTokenRange": {
9450
+ "startIndex": 1,
9451
+ "endIndex": 2
9452
+ },
9453
+ "isStatic": false,
9454
+ "isProtected": false,
9455
+ "isAbstract": false
9456
+ },
9457
+ {
9458
+ "kind": "Property",
9459
+ "canonicalReference": "@genesislcap/grid-pro!GridPro#selectedRowId:member",
9460
+ "docComment": "",
9461
+ "excerptTokens": [
9462
+ {
9463
+ "kind": "Content",
9464
+ "text": "selectedRowId: "
9465
+ },
9466
+ {
9467
+ "kind": "Content",
9468
+ "text": "string"
9469
+ },
9470
+ {
9471
+ "kind": "Content",
9472
+ "text": ";"
9473
+ }
9474
+ ],
9475
+ "isReadonly": false,
9476
+ "isOptional": false,
9477
+ "releaseTag": "Public",
9478
+ "name": "selectedRowId",
9479
+ "propertyTypeTokenRange": {
9480
+ "startIndex": 1,
9481
+ "endIndex": 2
9482
+ },
9483
+ "isStatic": false,
9484
+ "isProtected": false,
9485
+ "isAbstract": false
9486
+ },
9427
9487
  {
9428
9488
  "kind": "Method",
9429
9489
  "canonicalReference": "@genesislcap/grid-pro!GridPro#setFilterModel:member(1)",
@@ -42,9 +42,9 @@ import { LayoutCacheContainer } from '@genesislcap/foundation-utils';
42
42
  import { Logger } from '@genesislcap/foundation-logger';
43
43
  import { MetadataDetail } from '@genesislcap/foundation-comms';
44
44
  import { OverrideFoundationElementDefinition } from '@microsoft/fast-foundation';
45
- import type { RowDataTransaction } from '@ag-grid-community/core';
45
+ import { RowDataTransaction } from '@ag-grid-community/core';
46
46
  import type { RowNodeTransaction } from '@ag-grid-community/core';
47
- import type { ServerSideTransaction } from '@ag-grid-community/core';
47
+ import { ServerSideTransaction } from '@ag-grid-community/core';
48
48
  import type { ServerSideTransactionResult } from '@ag-grid-community/core';
49
49
  import { Session } from '@genesislcap/foundation-comms';
50
50
  import { SocketObservable } from '@genesislcap/foundation-comms';
@@ -1011,6 +1011,10 @@ declare const GenesisGridDatasourceElement_base: new () => {
1011
1011
  connectedCallback(): void;
1012
1012
  disconnectedCallback(): void;
1013
1013
  accessKey: string;
1014
+ /**
1015
+ * Returns whether the `row-id` attribute is the default one, depending on the resource type.
1016
+ * @internal
1017
+ */
1014
1018
  readonly accessKeyLabel: string;
1015
1019
  autocapitalize: string;
1016
1020
  dir: string;
@@ -1591,6 +1595,12 @@ export declare class GridPro extends GridPro_base {
1591
1595
  rowHeight: number;
1592
1596
  theme: string;
1593
1597
  themeChanged(oldValue: string, newValue: string): void;
1598
+ /**
1599
+ * If true, will block scrolling when context menu is open and keep the grid in the same position without scrolling to new records
1600
+ * @remarks Defaults to false
1601
+ * @alpha
1602
+ */
1603
+ blockScrollingOnContextMenu: boolean;
1594
1604
  classNames: string;
1595
1605
  agGrid: Grid;
1596
1606
  gridSlot: HTMLSlotElement;
@@ -1612,6 +1622,8 @@ export declare class GridPro extends GridPro_base {
1612
1622
  setFilterModel(value: {
1613
1623
  [key: string]: any;
1614
1624
  }): Promise<void>;
1625
+ selectedRowId: string;
1626
+ selectedColId: string;
1615
1627
  /**
1616
1628
  * Injectable config that allows to change grid options on an app level basis
1617
1629
  * To modify options, register instance of the config in DOM container that is
@@ -1860,7 +1872,11 @@ declare const GridPro_base: (new (...args: any[]) => {
1860
1872
  readonly TEXT_NODE: number;
1861
1873
  dispatchEvent(event: Event): boolean;
1862
1874
  ariaAtomic: string;
1863
- ariaAutoComplete: string;
1875
+ ariaAutoComplete: string; /**
1876
+ * Because we try and resize the grid to fit using callbacks on events, this will cause
1877
+ * a stack overflow of calls to resize, so we need to debounce it.
1878
+ * @internal
1879
+ */
1864
1880
  ariaBusy: string;
1865
1881
  ariaChecked: string;
1866
1882
  ariaColCount: string;
@@ -1977,13 +1993,6 @@ declare const GridPro_base: (new (...args: any[]) => {
1977
1993
  onmousemove: (this: GlobalEventHandlers, ev: MouseEvent) => any;
1978
1994
  onmouseout: (this: GlobalEventHandlers, ev: MouseEvent) => any;
1979
1995
  onmouseover: (this: GlobalEventHandlers, ev: MouseEvent) => any;
1980
- /**
1981
- * Will merge templated column definitions with `columnDefs` plus localStorage's column state or `deferredColumnStates`.
1982
- * @deprecated use `applyTemplateDefinitions` instead.
1983
- * @param columnDefs - The column definitions to apply to the grid.
1984
- * @param deferredColumnDefsOrState - If true, will merge the column definitions with the saved column state or the `deferredColumnStates` property on the `grid-pro-genesis-datasource` element.
1985
- * @returns The merged column definitions.
1986
- */
1987
1996
  onmouseup: (this: GlobalEventHandlers, ev: MouseEvent) => any;
1988
1997
  onpause: (this: GlobalEventHandlers, ev: Event) => any;
1989
1998
  onplay: (this: GlobalEventHandlers, ev: Event) => any;
@@ -2049,6 +2058,7 @@ declare class GridProBaseDatasource extends GenesisGridDatasourceElement {
2049
2058
  protected applyAllAgTransactions(): void;
2050
2059
  private flashAddedCells;
2051
2060
  private applyMappedAgTransaction;
2061
+ private setPreviouslySelectedCell;
2052
2062
  protected applyTransaction(agTransaction: RowDataTransaction): any;
2053
2063
  protected applyTransactionAsync(agTransaction: RowDataTransaction, callback?: (res: any) => void): void;
2054
2064
  /**
@@ -62,6 +62,8 @@ Grid Pro is a Web Component wrapper around the AG Grid Community library.
62
62
  | [persistFilterModelKey](./grid-pro.gridpro.persistfiltermodelkey.md) | | string | The key to use for persisting the filter model in local browser or KV storage. |
63
63
  | [rowData](./grid-pro.gridpro.rowdata.md) | | any\[\] | The row data to display in the grid. |
64
64
  | [rowHeight](./grid-pro.gridpro.rowheight.md) | | number | |
65
+ | [selectedColId](./grid-pro.gridpro.selectedcolid.md) | | string | |
66
+ | [selectedRowId](./grid-pro.gridpro.selectedrowid.md) | | string | |
65
67
  | [statePersistence](./grid-pro.gridpro.statepersistence.md) | | [StatePersistence](./grid-pro.statepersistence.md) | |
66
68
  | [theme](./grid-pro.gridpro.theme.md) | | string | |
67
69
 
@@ -0,0 +1,11 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/grid-pro](./grid-pro.md) &gt; [GridPro](./grid-pro.gridpro.md) &gt; [selectedColId](./grid-pro.gridpro.selectedcolid.md)
4
+
5
+ ## GridPro.selectedColId property
6
+
7
+ **Signature:**
8
+
9
+ ```typescript
10
+ selectedColId: string;
11
+ ```
@@ -0,0 +1,11 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/grid-pro](./grid-pro.md) &gt; [GridPro](./grid-pro.gridpro.md) &gt; [selectedRowId](./grid-pro.gridpro.selectedrowid.md)
4
+
5
+ ## GridPro.selectedRowId property
6
+
7
+ **Signature:**
8
+
9
+ ```typescript
10
+ selectedRowId: string;
11
+ ```
@@ -48,9 +48,9 @@ import { LayoutCacheContainer } from '@genesislcap/foundation-utils';
48
48
  import { Logger } from '@genesislcap/foundation-logger';
49
49
  import { MetadataDetail } from '@genesislcap/foundation-comms';
50
50
  import { OverrideFoundationElementDefinition } from '@microsoft/fast-foundation';
51
- import type { RowDataTransaction } from '@ag-grid-community/core';
51
+ import { RowDataTransaction } from '@ag-grid-community/core';
52
52
  import type { RowNodeTransaction } from '@ag-grid-community/core';
53
- import type { ServerSideTransaction } from '@ag-grid-community/core';
53
+ import { ServerSideTransaction } from '@ag-grid-community/core';
54
54
  import type { ServerSideTransactionResult } from '@ag-grid-community/core';
55
55
  import { Session } from '@genesislcap/foundation-comms';
56
56
  import { SocketObservable } from '@genesislcap/foundation-comms';
@@ -825,6 +825,8 @@ export class GridPro extends GridPro_base {
825
825
  asyncUpdate: boolean;
826
826
  // (undocumented)
827
827
  autoCellRendererByType: boolean;
828
+ // @alpha
829
+ blockScrollingOnContextMenu: boolean;
828
830
  // (undocumented)
829
831
  classNames: string;
830
832
  // (undocumented)
@@ -893,6 +895,10 @@ export class GridPro extends GridPro_base {
893
895
  // (undocumented)
894
896
  rowHeight: number;
895
897
  // (undocumented)
898
+ selectedColId: string;
899
+ // (undocumented)
900
+ selectedRowId: string;
901
+ // (undocumented)
896
902
  setFilterModel(value: {
897
903
  [key: string]: any;
898
904
  }): Promise<void>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/grid-pro",
3
3
  "description": "Genesis Foundation AG Grid",
4
- "version": "14.194.0",
4
+ "version": "14.194.1-alpha-5e85261f157.0",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -38,20 +38,20 @@
38
38
  }
39
39
  },
40
40
  "devDependencies": {
41
- "@genesislcap/foundation-testing": "14.194.0",
42
- "@genesislcap/genx": "14.194.0",
43
- "@genesislcap/rollup-builder": "14.194.0",
44
- "@genesislcap/ts-builder": "14.194.0",
45
- "@genesislcap/uvu-playwright-builder": "14.194.0",
46
- "@genesislcap/vite-builder": "14.194.0",
47
- "@genesislcap/webpack-builder": "14.194.0",
41
+ "@genesislcap/foundation-testing": "14.194.1-alpha-5e85261f157.0",
42
+ "@genesislcap/genx": "14.194.1-alpha-5e85261f157.0",
43
+ "@genesislcap/rollup-builder": "14.194.1-alpha-5e85261f157.0",
44
+ "@genesislcap/ts-builder": "14.194.1-alpha-5e85261f157.0",
45
+ "@genesislcap/uvu-playwright-builder": "14.194.1-alpha-5e85261f157.0",
46
+ "@genesislcap/vite-builder": "14.194.1-alpha-5e85261f157.0",
47
+ "@genesislcap/webpack-builder": "14.194.1-alpha-5e85261f157.0",
48
48
  "rimraf": "^5.0.0"
49
49
  },
50
50
  "dependencies": {
51
- "@genesislcap/foundation-comms": "14.194.0",
52
- "@genesislcap/foundation-logger": "14.194.0",
53
- "@genesislcap/foundation-ui": "14.194.0",
54
- "@genesislcap/foundation-utils": "14.194.0",
51
+ "@genesislcap/foundation-comms": "14.194.1-alpha-5e85261f157.0",
52
+ "@genesislcap/foundation-logger": "14.194.1-alpha-5e85261f157.0",
53
+ "@genesislcap/foundation-ui": "14.194.1-alpha-5e85261f157.0",
54
+ "@genesislcap/foundation-utils": "14.194.1-alpha-5e85261f157.0",
55
55
  "@microsoft/fast-colors": "^5.3.1",
56
56
  "@microsoft/fast-components": "^2.30.6",
57
57
  "@microsoft/fast-element": "^1.12.0",
@@ -77,5 +77,5 @@
77
77
  "access": "public"
78
78
  },
79
79
  "customElements": "dist/custom-elements.json",
80
- "gitHead": "8820d1e55e6cd53e293e819bb3a629c70fda5b76"
80
+ "gitHead": "fc63f45882ed00fd7df36e5f613a058ad2540b0f"
81
81
  }