@genesislcap/foundation-entity-management 14.176.0 → 14.176.1-alpha-6ef4895.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.
@@ -343,6 +343,15 @@
343
343
  "description": "This attribute controls whether and how the entity manager stores the state of the columns when the user edits them. Omit this attribute to disable the functionality, set it to a unique value to enable it.",
344
344
  "privacy": "public"
345
345
  },
346
+ {
347
+ "kind": "field",
348
+ "name": "blockScrollingOnContextMenu",
349
+ "type": {
350
+ "text": "boolean"
351
+ },
352
+ "default": "false",
353
+ "description": "If true, will block scrolling when context menu is open and keep the grid in the same position without scrolling to new records"
354
+ },
346
355
  {
347
356
  "kind": "field",
348
357
  "name": "gridOptions",
@@ -759,6 +768,15 @@
759
768
  "description": "This attribute controls whether and how the entity manager stores the state of the columns when the user edits them. Omit this attribute to disable the functionality, set it to a unique value to enable it.",
760
769
  "fieldName": "persistColumnStateKey"
761
770
  },
771
+ {
772
+ "name": "block-scrolling-on-context-menu",
773
+ "type": {
774
+ "text": "boolean"
775
+ },
776
+ "default": "false",
777
+ "description": "If true, will block scrolling when context menu is open and keep the grid in the same position without scrolling to new records",
778
+ "fieldName": "blockScrollingOnContextMenu"
779
+ },
762
780
  {
763
781
  "name": "size-columns-to-fit",
764
782
  "type": {
@@ -1116,6 +1134,14 @@
1116
1134
  "text": "GridProCaseType"
1117
1135
  }
1118
1136
  },
1137
+ {
1138
+ "kind": "field",
1139
+ "name": "blockScrollingOnContextMenu",
1140
+ "type": {
1141
+ "text": "boolean"
1142
+ },
1143
+ "default": "false"
1144
+ },
1119
1145
  {
1120
1146
  "kind": "field",
1121
1147
  "name": "grid",
@@ -1357,6 +1383,14 @@
1357
1383
  "text": "GridProCaseType"
1358
1384
  },
1359
1385
  "fieldName": "headerCaseType"
1386
+ },
1387
+ {
1388
+ "name": "block-scrolling-on-context-menu",
1389
+ "type": {
1390
+ "text": "boolean"
1391
+ },
1392
+ "default": "false",
1393
+ "fieldName": "blockScrollingOnContextMenu"
1360
1394
  }
1361
1395
  ],
1362
1396
  "superclass": {
@@ -1853,6 +1887,19 @@
1853
1887
  "module": "src/entities/entities.ts"
1854
1888
  }
1855
1889
  },
1890
+ {
1891
+ "kind": "field",
1892
+ "name": "blockScrollingOnContextMenu",
1893
+ "type": {
1894
+ "text": "boolean"
1895
+ },
1896
+ "default": "false",
1897
+ "description": "If true, will block scrolling when context menu is open and keep the grid in the same position without scrolling to new records",
1898
+ "inheritedFrom": {
1899
+ "name": "EntityManagement",
1900
+ "module": "src/entities/entities.ts"
1901
+ }
1902
+ },
1856
1903
  {
1857
1904
  "kind": "field",
1858
1905
  "name": "gridOptions",
@@ -2442,6 +2489,19 @@
2442
2489
  "module": "src/entities/entities.ts"
2443
2490
  }
2444
2491
  },
2492
+ {
2493
+ "name": "block-scrolling-on-context-menu",
2494
+ "type": {
2495
+ "text": "boolean"
2496
+ },
2497
+ "default": "false",
2498
+ "description": "If true, will block scrolling when context menu is open and keep the grid in the same position without scrolling to new records",
2499
+ "fieldName": "blockScrollingOnContextMenu",
2500
+ "inheritedFrom": {
2501
+ "name": "EntityManagement",
2502
+ "module": "src/entities/entities.ts"
2503
+ }
2504
+ },
2445
2505
  {
2446
2506
  "name": "size-columns-to-fit",
2447
2507
  "type": {
@@ -68,10 +68,7 @@ declare const EntityManagement_base: (new (...args: any[]) => {
68
68
  removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
69
69
  readonly attributes: NamedNodeMap;
70
70
  readonly classList: DOMTokenList;
71
- className: string; /**
72
- * Array which holds the column definitions.
73
- * @public
74
- */
71
+ className: string;
75
72
  readonly clientHeight: number;
76
73
  readonly clientLeft: number;
77
74
  readonly clientTop: number;
@@ -97,6 +94,14 @@ declare const EntityManagement_base: (new (...args: any[]) => {
97
94
  closest<K_3 extends keyof SVGElementTagNameMap>(selector: K_3): SVGElementTagNameMap[K_3];
98
95
  closest<E extends Element = Element>(selectors: string): E;
99
96
  getAttribute(qualifiedName: string): string;
97
+ /**
98
+ * Reference to the currently selected entity from the grid.
99
+ *
100
+ * @remarks
101
+ *
102
+ * When the user attempts to initiate functionality such as deleting or editing an entity, the entity which will be deleted/edited is the one which is referenced by this variable
103
+ * @public
104
+ */
100
105
  getAttributeNS(namespace: string, localName: string): string;
101
106
  getAttributeNames(): string[];
102
107
  getAttributeNode(qualifiedName: string): Attr;
@@ -122,10 +127,7 @@ declare const EntityManagement_base: (new (...args: any[]) => {
122
127
  removeAttribute(qualifiedName: string): void;
123
128
  removeAttributeNS(namespace: string, localName: string): void;
124
129
  removeAttributeNode(attr: Attr): Attr;
125
- requestFullscreen(options?: FullscreenOptions): Promise<void>; /**
126
- * Set up the web component
127
- * @internal
128
- */
130
+ requestFullscreen(options?: FullscreenOptions): Promise<void>;
129
131
  requestPointerLock(): void;
130
132
  scroll(options?: ScrollToOptions): void;
131
133
  scroll(x: number, y: number): void;
@@ -187,14 +189,7 @@ declare const EntityManagement_base: (new (...args: any[]) => {
187
189
  readonly PROCESSING_INSTRUCTION_NODE: number;
188
190
  readonly TEXT_NODE: number;
189
191
  dispatchEvent(event: Event): boolean;
190
- ariaAtomic: string; /**
191
- * Event handler for when the user submits the action for the currently open form, either editing or adding the entity
192
- *
193
- * @param e - CustomEvent which contains the payload for the entity to submit to the backend
194
- *
195
- * Emits an event upon error
196
- * @public
197
- */
192
+ ariaAtomic: string;
198
193
  ariaAutoComplete: string;
199
194
  ariaBusy: string;
200
195
  ariaChecked: string;
@@ -205,14 +200,16 @@ declare const EntityManagement_base: (new (...args: any[]) => {
205
200
  ariaCurrent: string;
206
201
  ariaDisabled: string;
207
202
  ariaExpanded: string;
208
- ariaHasPopup: string;
209
- ariaHidden: string;
210
203
  /**
211
- * Updates the reference to the current entity stored in the class. Added as an event listener on the class when receiving the `rowSelected` event.
204
+ * Event handler for when the user submits the action for the currently open form, either editing or adding the entity
212
205
  *
213
- * @param e - CustomEvent which contains data about the selected entity. If the row is not selected then the reference will be set to an empty object.
214
- * @internal
206
+ * @param e - CustomEvent which contains the payload for the entity to submit to the backend
207
+ *
208
+ * Emits an event upon error
209
+ * @public
215
210
  */
211
+ ariaHasPopup: string;
212
+ ariaHidden: string;
216
213
  ariaInvalid: string;
217
214
  ariaKeyShortcuts: string;
218
215
  ariaLabel: string;
@@ -223,6 +220,12 @@ declare const EntityManagement_base: (new (...args: any[]) => {
223
220
  ariaMultiSelectable: string;
224
221
  ariaOrientation: string;
225
222
  ariaPlaceholder: string;
223
+ /**
224
+ * Updates the reference to the current entity stored in the class. Added as an event listener on the class when receiving the `rowSelected` event.
225
+ *
226
+ * @param e - CustomEvent which contains data about the selected entity. If the row is not selected then the reference will be set to an empty object.
227
+ * @internal
228
+ */
226
229
  ariaPosInSet: string;
227
230
  ariaPressed: string;
228
231
  ariaReadOnly: string;
@@ -308,10 +311,7 @@ declare const EntityManagement_base: (new (...args: any[]) => {
308
311
  onkeypress: (this: GlobalEventHandlers, ev: KeyboardEvent) => any;
309
312
  onkeyup: (this: GlobalEventHandlers, ev: KeyboardEvent) => any;
310
313
  onload: (this: GlobalEventHandlers, ev: Event) => any;
311
- onloadeddata: (this: GlobalEventHandlers, ev: Event) => any; /**
312
- * Show notifications if the executed event returned an error.
313
- * @internal
314
- */
314
+ onloadeddata: (this: GlobalEventHandlers, ev: Event) => any;
315
315
  onloadedmetadata: (this: GlobalEventHandlers, ev: Event) => any;
316
316
  onloadstart: (this: GlobalEventHandlers, ev: Event) => any;
317
317
  onlostpointercapture: (this: GlobalEventHandlers, ev: PointerEvent) => any;
@@ -504,6 +504,12 @@ export declare class EntityManagement extends EntityManagement_base {
504
504
  * @public
505
505
  */
506
506
  persistColumnStateKey: string;
507
+ /**
508
+ * If true, will block scrolling when context menu is open and keep the grid in the same position without scrolling to new records
509
+ * @remarks Defaults to false
510
+ * @alpha
511
+ */
512
+ blockScrollingOnContextMenu: boolean;
507
513
  /**
508
514
  * GridOptions to be passed down from application
509
515
  * @public
@@ -1 +1 @@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CAAS;IAE5F;;;;OAIG;IACsC,cAAc,EAAE,eAAe,CAAC;IAE7D,eAAe,EAAE,eAAe,EAAE,CAAC;IAE/C;;;OAGG;IACoC,aAAa,EAAE,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAW;IAE5F;;;OAGG;IACG,iBAAiB;IAmBvB;;;OAGG;YACW,yBAAyB;IAwBvC;;;OAGG;IACM,SAAS,IAAI,IAAI;IA4B1B;;;;;;;OAOG;IACU,mBAAmB,CAAC,CAAC,EAAE,WAAW;IAI/C;;;;;OAKG;IACH,OAAO,CAAC,YAAY,CAElB;IAEF;;;;OAIG;IACI,YAAY;IASnB;;;;;OAKG;YACW,UAAU;IA4BxB,OAAO,CAAC,UAAU;IAMX,UAAU;IAKjB,IACI,eAAe,0EAElB;IAEM,aAAa,CAAC,KAAK,EAAE,WAAW,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC;IAmBvD,eAAe,CAAC,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC;IAItC,yBAAyB,CAAC,CAAC,EAAE,WAAW;IAiC/C;;;;;OAKG;IACG,YAAY,CAAC,CAAC,EAAE,WAAW;IAK3B,aAAa;IAoBnB,OAAO,CAAC,sBAAsB;IAc9B;;;OAGG;IACI,WAAW,CAAC,OAAO,KAAA;CAkB3B"}
@@ -1 +1 @@
1
- {"version":3,"file":"entities.template.d.ts","sourceRoot":"","sources":["../../../src/entities/entities.template.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAK9C;;;GAGG;AACH,eAAO,MAAM,aAAa,wFAWzB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,eAAe,wFAiB3B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,mBAAmB,wFAuD/B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,QAAQ,uEAEpB,CAAC"}
1
+ {"version":3,"file":"entities.template.d.ts","sourceRoot":"","sources":["../../../src/entities/entities.template.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAK9C;;;GAGG;AACH,eAAO,MAAM,aAAa,wFAWzB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,eAAe,wFAiB3B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,mBAAmB,wFAwD/B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,QAAQ,uEAEpB,CAAC"}
@@ -24,6 +24,7 @@ export declare class List extends FASTElement {
24
24
  hideEdit: boolean;
25
25
  hideDelete: boolean;
26
26
  headerCaseType: GridProCaseType;
27
+ blockScrollingOnContextMenu: boolean;
27
28
  grid: ZeroGridPro;
28
29
  datasource: GridProGenesisDatasource;
29
30
  gridOptions: GridOptions;
@@ -1 +1 @@
1
- {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/list/list.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEnE,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AACxD,OAAO,EAEL,wBAAwB,EACxB,WAAW,EACZ,MAAM,uCAAuC,CAAC;AAC/C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAE7D,OAAO,EAAuB,WAAW,EAAoB,MAAM,yBAAyB,CAAC;AAC7F,OAAO,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAK/D,qBAKa,IAAK,SAAQ,WAAW;IACnC;;;OAGG;IAC0C,MAAM,EAAE,MAAM,CAAU;IAE/D,YAAY,EAAE,MAAM,CAAM;IAC1B,KAAK,EAAE,MAAM,CAAM;IACwB,qBAAqB,EAAE,MAAM,CAAC;IAClB,gBAAgB,EAAE,OAAO,CAAC;IACjD,YAAY,EAAE,MAAM,CAAC;IACA,eAAe,EAAE,OAAO,CAAC;IACjC,QAAQ,UAAS;IACd,WAAW,UAAS;IACpB,WAAW,UAAQ;IAC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ACjD,YAAY,EAAE,MAAM,CAAC;IACA,eAAe,EAAE,OAAO,CAAC;IACjC,QAAQ,UAAS;IACd,WAAW,UAAS;IACpB,WAAW,UAAQ;IACX,kBAAkB,UAAS;IAC5B,iBAAiB,UAAS;IACpC,QAAQ,UAAS;IACf,UAAU,UAAS;IAC/B,cAAc,EAAE,eAAe,CAAC;IAEzE,2BAA2B,UAAS;IAC7B,IAAI,EAAG,WAAW,CAAC;IACnB,UAAU,EAAG,wBAAwB,CAAC;IACjC,WAAW,EAAE,WAAW,CAAC;IACzB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,gBAAgB,EAAE,uBAAuB,CAAC;IAC1C,mBAAmB,QAAM;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IAEvB,SAAS,CAAC,OAAO,EAAG,OAAO,CAAC;IAErC,iBAAiB;YA6DH,oBAAoB;IA+ClC,oBAAoB,IAAI,IAAI;IAQ5B,OAAO,CAAC,mBAAmB;IAM3B,OAAO,CAAC,mBAAmB;IAK3B,OAAO,CAAC,MAAM;IAId,OAAO,CAAC,IAAI,CAEV;IAEI,MAAM,CAAC,CAAC,KAAA;CAGf"}
@@ -1 +1 @@
1
- {"version":3,"file":"list.template.d.ts","sourceRoot":"","sources":["../../../src/list/list.template.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,eAAO,MAAM,eAAe,4EAyD3B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,YAAY,2DAExB,CAAC"}
1
+ {"version":3,"file":"list.template.d.ts","sourceRoot":"","sources":["../../../src/list/list.template.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,eAAO,MAAM,eAAe,4EA0D3B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,YAAY,2DAExB,CAAC"}
@@ -87,6 +87,12 @@ let EntityManagement = class EntityManagement extends LifecycleMixin(FASTElement
87
87
  * @public
88
88
  */
89
89
  this.enableRowFlashing = false;
90
+ /**
91
+ * If true, will block scrolling when context menu is open and keep the grid in the same position without scrolling to new records
92
+ * @remarks Defaults to false
93
+ * @alpha
94
+ */
95
+ this.blockScrollingOnContextMenu = false;
90
96
  /**
91
97
  * Array with renderers used by foundation-forms
92
98
  * @public
@@ -437,6 +443,9 @@ __decorate([
437
443
  __decorate([
438
444
  attr({ attribute: 'persist-column-state-key' })
439
445
  ], EntityManagement.prototype, "persistColumnStateKey", void 0);
446
+ __decorate([
447
+ attr({ attribute: 'block-scrolling-on-context-menu', mode: 'boolean' })
448
+ ], EntityManagement.prototype, "blockScrollingOnContextMenu", void 0);
440
449
  __decorate([
441
450
  observable
442
451
  ], EntityManagement.prototype, "gridOptions", void 0);
@@ -65,6 +65,7 @@ export const getPrefixedEntities = (prefix) => html `
65
65
  hide-edit=${(x) => x.hideEdit}
66
66
  hide-delete=${(x) => x.hideDelete}
67
67
  header-case-type=${(x) => x.headerCaseType}
68
+ block-scrolling-on-context-menu=${(x) => x.blockScrollingOnContextMenu}
68
69
  >
69
70
  <slot name="header" slot="header">${defaultHeader}</slot>
70
71
  </entity-list>
@@ -24,6 +24,7 @@ let List = class List extends FASTElement {
24
24
  this.enableRowFlashing = false;
25
25
  this.hideEdit = false;
26
26
  this.hideDelete = false;
27
+ this.blockScrollingOnContextMenu = false;
27
28
  this.actionButtonsConfig = [];
28
29
  this.edit = (e) => {
29
30
  this.$emit('edit-entity', e);
@@ -172,6 +173,9 @@ __decorate([
172
173
  __decorate([
173
174
  attr({ attribute: 'header-case-type' })
174
175
  ], List.prototype, "headerCaseType", void 0);
176
+ __decorate([
177
+ attr({ attribute: 'block-scrolling-on-context-menu', mode: 'boolean' })
178
+ ], List.prototype, "blockScrollingOnContextMenu", void 0);
175
179
  __decorate([
176
180
  observable
177
181
  ], List.prototype, "gridOptions", void 0);
@@ -24,6 +24,7 @@ export const getPrefixedList = (prefix) => html `
24
24
  enable-cell-flashing=${(x) => x.enableCellFlashing}
25
25
  enable-row-flashing=${(x) => x.enableRowFlashing}
26
26
  header-case-type=${(x) => x.headerCaseType}
27
+ block-scrolling-on-context-menu=${(x) => x.blockScrollingOnContextMenu}
27
28
  >
28
29
  <grid-pro-genesis-datasource
29
30
  ${ref('datasource')}
@@ -180,6 +180,12 @@ export declare class EntityManagement extends EntityManagement_base {
180
180
  * @public
181
181
  */
182
182
  persistColumnStateKey: string;
183
+ /**
184
+ * If true, will block scrolling when context menu is open and keep the grid in the same position without scrolling to new records
185
+ * @remarks Defaults to false
186
+ * @alpha
187
+ */
188
+ blockScrollingOnContextMenu: boolean;
183
189
  /**
184
190
  * GridOptions to be passed down from application
185
191
  * @public
@@ -365,10 +371,7 @@ declare const EntityManagement_base: (new (...args: any[]) => {
365
371
  removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
366
372
  readonly attributes: NamedNodeMap;
367
373
  readonly classList: DOMTokenList;
368
- className: string; /**
369
- * Array which holds the column definitions.
370
- * @public
371
- */
374
+ className: string;
372
375
  readonly clientHeight: number;
373
376
  readonly clientLeft: number;
374
377
  readonly clientTop: number;
@@ -394,6 +397,14 @@ declare const EntityManagement_base: (new (...args: any[]) => {
394
397
  closest<K_3 extends keyof SVGElementTagNameMap>(selector: K_3): SVGElementTagNameMap[K_3];
395
398
  closest<E extends Element = Element>(selectors: string): E;
396
399
  getAttribute(qualifiedName: string): string;
400
+ /**
401
+ * Reference to the currently selected entity from the grid.
402
+ *
403
+ * @remarks
404
+ *
405
+ * When the user attempts to initiate functionality such as deleting or editing an entity, the entity which will be deleted/edited is the one which is referenced by this variable
406
+ * @public
407
+ */
397
408
  getAttributeNS(namespace: string, localName: string): string;
398
409
  getAttributeNames(): string[];
399
410
  getAttributeNode(qualifiedName: string): Attr;
@@ -419,10 +430,7 @@ declare const EntityManagement_base: (new (...args: any[]) => {
419
430
  removeAttribute(qualifiedName: string): void;
420
431
  removeAttributeNS(namespace: string, localName: string): void;
421
432
  removeAttributeNode(attr: Attr): Attr;
422
- requestFullscreen(options?: FullscreenOptions): Promise<void>; /**
423
- * Set up the web component
424
- * @internal
425
- */
433
+ requestFullscreen(options?: FullscreenOptions): Promise<void>;
426
434
  requestPointerLock(): void;
427
435
  scroll(options?: ScrollToOptions): void;
428
436
  scroll(x: number, y: number): void;
@@ -484,14 +492,7 @@ declare const EntityManagement_base: (new (...args: any[]) => {
484
492
  readonly PROCESSING_INSTRUCTION_NODE: number;
485
493
  readonly TEXT_NODE: number;
486
494
  dispatchEvent(event: Event): boolean;
487
- ariaAtomic: string; /**
488
- * Event handler for when the user submits the action for the currently open form, either editing or adding the entity
489
- *
490
- * @param e - CustomEvent which contains the payload for the entity to submit to the backend
491
- *
492
- * Emits an event upon error
493
- * @public
494
- */
495
+ ariaAtomic: string;
495
496
  ariaAutoComplete: string;
496
497
  ariaBusy: string;
497
498
  ariaChecked: string;
@@ -502,14 +503,16 @@ declare const EntityManagement_base: (new (...args: any[]) => {
502
503
  ariaCurrent: string;
503
504
  ariaDisabled: string;
504
505
  ariaExpanded: string;
505
- ariaHasPopup: string;
506
- ariaHidden: string;
507
506
  /**
508
- * Updates the reference to the current entity stored in the class. Added as an event listener on the class when receiving the `rowSelected` event.
507
+ * Event handler for when the user submits the action for the currently open form, either editing or adding the entity
509
508
  *
510
- * @param e - CustomEvent which contains data about the selected entity. If the row is not selected then the reference will be set to an empty object.
511
- * @internal
509
+ * @param e - CustomEvent which contains the payload for the entity to submit to the backend
510
+ *
511
+ * Emits an event upon error
512
+ * @public
512
513
  */
514
+ ariaHasPopup: string;
515
+ ariaHidden: string;
513
516
  ariaInvalid: string;
514
517
  ariaKeyShortcuts: string;
515
518
  ariaLabel: string;
@@ -520,6 +523,12 @@ declare const EntityManagement_base: (new (...args: any[]) => {
520
523
  ariaMultiSelectable: string;
521
524
  ariaOrientation: string;
522
525
  ariaPlaceholder: string;
526
+ /**
527
+ * Updates the reference to the current entity stored in the class. Added as an event listener on the class when receiving the `rowSelected` event.
528
+ *
529
+ * @param e - CustomEvent which contains data about the selected entity. If the row is not selected then the reference will be set to an empty object.
530
+ * @internal
531
+ */
523
532
  ariaPosInSet: string;
524
533
  ariaPressed: string;
525
534
  ariaReadOnly: string;
@@ -605,10 +614,7 @@ declare const EntityManagement_base: (new (...args: any[]) => {
605
614
  onkeypress: (this: GlobalEventHandlers, ev: KeyboardEvent) => any;
606
615
  onkeyup: (this: GlobalEventHandlers, ev: KeyboardEvent) => any;
607
616
  onload: (this: GlobalEventHandlers, ev: Event) => any;
608
- onloadeddata: (this: GlobalEventHandlers, ev: Event) => any; /**
609
- * Show notifications if the executed event returned an error.
610
- * @internal
611
- */
617
+ onloadeddata: (this: GlobalEventHandlers, ev: Event) => any;
612
618
  onloadedmetadata: (this: GlobalEventHandlers, ev: Event) => any;
613
619
  onloadstart: (this: GlobalEventHandlers, ev: Event) => any;
614
620
  onlostpointercapture: (this: GlobalEventHandlers, ev: PointerEvent) => any;
@@ -46,6 +46,8 @@ export class EntityManagement extends EntityManagement_base {
46
46
  asyncAdd: boolean;
47
47
  asyncRemove: boolean;
48
48
  asyncUpdate: boolean;
49
+ // @alpha
50
+ blockScrollingOnContextMenu: boolean;
49
51
  // (undocumented)
50
52
  closeModal(): void;
51
53
  columns: ColDef[];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/foundation-entity-management",
3
3
  "description": "Genesis Foundation Entity Management",
4
- "version": "14.176.0",
4
+ "version": "14.176.1-alpha-6ef4895.0",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -43,29 +43,29 @@
43
43
  "test:debug": "genx test --debug"
44
44
  },
45
45
  "devDependencies": {
46
- "@genesislcap/foundation-testing": "14.176.0",
47
- "@genesislcap/genx": "14.176.0",
48
- "@genesislcap/rollup-builder": "14.176.0",
49
- "@genesislcap/ts-builder": "14.176.0",
50
- "@genesislcap/uvu-playwright-builder": "14.176.0",
51
- "@genesislcap/vite-builder": "14.176.0",
52
- "@genesislcap/webpack-builder": "14.176.0",
46
+ "@genesislcap/foundation-testing": "14.176.1-alpha-6ef4895.0",
47
+ "@genesislcap/genx": "14.176.1-alpha-6ef4895.0",
48
+ "@genesislcap/rollup-builder": "14.176.1-alpha-6ef4895.0",
49
+ "@genesislcap/ts-builder": "14.176.1-alpha-6ef4895.0",
50
+ "@genesislcap/uvu-playwright-builder": "14.176.1-alpha-6ef4895.0",
51
+ "@genesislcap/vite-builder": "14.176.1-alpha-6ef4895.0",
52
+ "@genesislcap/webpack-builder": "14.176.1-alpha-6ef4895.0",
53
53
  "rimraf": "^3.0.2"
54
54
  },
55
55
  "dependencies": {
56
56
  "@ag-grid-community/core": "29.2.0",
57
- "@genesislcap/foundation-comms": "14.176.0",
58
- "@genesislcap/foundation-errors": "14.176.0",
59
- "@genesislcap/foundation-events": "14.176.0",
60
- "@genesislcap/foundation-forms": "14.176.0",
61
- "@genesislcap/foundation-logger": "14.176.0",
62
- "@genesislcap/foundation-login": "14.176.0",
63
- "@genesislcap/foundation-notifications": "14.176.0",
64
- "@genesislcap/foundation-ui": "14.176.0",
65
- "@genesislcap/foundation-utils": "14.176.0",
66
- "@genesislcap/foundation-zero": "14.176.0",
67
- "@genesislcap/foundation-zero-grid-pro": "14.176.0",
68
- "@genesislcap/grid-pro": "14.176.0",
57
+ "@genesislcap/foundation-comms": "14.176.1-alpha-6ef4895.0",
58
+ "@genesislcap/foundation-errors": "14.176.1-alpha-6ef4895.0",
59
+ "@genesislcap/foundation-events": "14.176.1-alpha-6ef4895.0",
60
+ "@genesislcap/foundation-forms": "14.176.1-alpha-6ef4895.0",
61
+ "@genesislcap/foundation-logger": "14.176.1-alpha-6ef4895.0",
62
+ "@genesislcap/foundation-login": "14.176.1-alpha-6ef4895.0",
63
+ "@genesislcap/foundation-notifications": "14.176.1-alpha-6ef4895.0",
64
+ "@genesislcap/foundation-ui": "14.176.1-alpha-6ef4895.0",
65
+ "@genesislcap/foundation-utils": "14.176.1-alpha-6ef4895.0",
66
+ "@genesislcap/foundation-zero": "14.176.1-alpha-6ef4895.0",
67
+ "@genesislcap/foundation-zero-grid-pro": "14.176.1-alpha-6ef4895.0",
68
+ "@genesislcap/grid-pro": "14.176.1-alpha-6ef4895.0",
69
69
  "@microsoft/fast-components": "^2.30.6",
70
70
  "@microsoft/fast-element": "^1.12.0",
71
71
  "@microsoft/fast-foundation": "^2.49.4",
@@ -81,5 +81,5 @@
81
81
  "access": "public"
82
82
  },
83
83
  "customElements": "dist/custom-elements.json",
84
- "gitHead": "e8d311eaf27cd3d155813081ad70a18aa0a826fd"
84
+ "gitHead": "7576777c410789f2699b2522129c8a206f3ccacf"
85
85
  }