@genesislcap/foundation-entity-management 14.162.1 → 14.162.2-alpha-37a3d46.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.
@@ -151,7 +151,7 @@
151
151
  {
152
152
  "kind": "variable",
153
153
  "name": "template",
154
- "default": "html<EntityManagement>`\n <div class=\"container\">\n <slot name=\"header\" part=\"header\">${(x) => x.headerTempalate}</slot>\n <entity-list\n title=${(x) => x.title}\n async-add=${(x) => x.asyncAdd}\n async-remove=${(x) => x.asyncRemove}\n async-update=${(x) => x.asyncUpdate}\n enable-cell-flashing=${(x) => x.enableCellFlashing}\n enable-row-flashing=${(x) => x.enableRowFlashing}\n persist-column-state-key=${(x) => x.persistColumnStateKey}\n size-columns-to-fit=${(x) => x.sizeColumnsToFit}\n enable-filter-bar=${(x) => x.enableFilterBar}\n resourceName=${(x) => x.resourceName}\n :deleteEvent=${(x) => x.deleteEvent}\n :updateEvent=${(x) => x.updateEvent}\n :gridOptions=${(x) => x.gridOptions}\n :columns=${(x) => x.columns}\n :datasourceConfig=${(x) => x.datasourceConfig}\n data-test-id=\"entity-list\"\n hide-edit=${(x) => x.hideEdit}\n hide-delete=${(x) => x.hideDelete}\n header-case-type=${(x) => x.headerCaseType}\n >\n <slot name=\"header\" slot=\"header\">${defaultHeader}</slot>\n </entity-list>\n <zero-modal\n ${ref('editEntityModal')}\n position=${(x) => x.modalPosition}\n :onCloseCallback=${(x) => x.closeModal.bind(x)}\n data-test-id=\"edit-entity-modal\"\n >\n <div slot=\"top\" data-test-id=\"dialog-title\">${(x) => x.editDialogTitle}</div>\n\n <slot name=\"edit\">\n ${when(\n (x) => x.editModalVisible,\n html<EntityManagement>`\n <foundation-form\n part=\"form\"\n :renderers=${(x) => x.formRenderers}\n resourceName=${(x) => x.formResourceName}\n :data=${(x) => x.editedEntity}\n :uischema=${(x) => x.formUiSchema}\n readonly=${(x) => x.readonly}\n @submit-success=${(x, c) => x.submitEntityChanges(c.event as CustomEvent)}\n ></foundation-form>\n `,\n )}\n </slot>\n </zero-modal>\n </div>\n`",
154
+ "default": "html<EntityManagement>`\n <div class=\"container\">\n <slot name=\"header\" part=\"header\">${(x) => x.headerTempalate}</slot>\n <entity-list\n title=${(x) => x.title}\n async-add=${(x) => x.asyncAdd}\n async-remove=${(x) => x.asyncRemove}\n async-update=${(x) => x.asyncUpdate}\n enable-cell-flashing=${(x) => x.enableCellFlashing}\n enable-row-flashing=${(x) => x.enableRowFlashing}\n persist-column-state-key=${(x) => x.persistColumnStateKey}\n size-columns-to-fit=${(x) => x.sizeColumnsToFit}\n enable-filter-bar=${(x) => x.enableFilterBar}\n resourceName=${(x) => x.resourceName}\n :deleteEvent=${(x) => x.deleteEvent}\n :updateEvent=${(x) => x.updateEvent}\n :gridOptions=${(x) => x.gridOptions}\n :columns=${(x) => x.columns}\n :datasourceConfig=${(x) => x.datasourceConfig}\n data-test-id=\"entity-list\"\n hide-edit=${(x) => x.hideEdit}\n hide-delete=${(x) => x.hideDelete}\n header-case-type=${(x) => x.headerCaseType}\n block-scrolling-on-context-menu=${(x) => x.blockScrollingOnContextMenu}\n >\n <slot name=\"header\" slot=\"header\">${defaultHeader}</slot>\n </entity-list>\n <zero-modal\n ${ref('editEntityModal')}\n position=${(x) => x.modalPosition}\n :onCloseCallback=${(x) => x.closeModal.bind(x)}\n data-test-id=\"edit-entity-modal\"\n >\n <div slot=\"top\" data-test-id=\"dialog-title\">${(x) => x.editDialogTitle}</div>\n\n <slot name=\"edit\">\n ${when(\n (x) => x.editModalVisible,\n html<EntityManagement>`\n <foundation-form\n part=\"form\"\n :renderers=${(x) => x.formRenderers}\n resourceName=${(x) => x.formResourceName}\n :data=${(x) => x.editedEntity}\n :uischema=${(x) => x.formUiSchema}\n readonly=${(x) => x.readonly}\n @submit-success=${(x, c) => x.submitEntityChanges(c.event as CustomEvent)}\n ></foundation-form>\n `,\n )}\n </slot>\n </zero-modal>\n </div>\n`",
155
155
  "description": "Defines the html of the entity component as a ViewTemplate object"
156
156
  }
157
157
  ],
@@ -319,6 +319,15 @@
319
319
  "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.",
320
320
  "privacy": "public"
321
321
  },
322
+ {
323
+ "kind": "field",
324
+ "name": "blockScrollingOnContextMenu",
325
+ "type": {
326
+ "text": "boolean"
327
+ },
328
+ "default": "false",
329
+ "description": "If true, will block scrolling when context menu is open and keep the grid in the same position without scrolling to new records"
330
+ },
322
331
  {
323
332
  "kind": "field",
324
333
  "name": "gridOptions",
@@ -717,6 +726,15 @@
717
726
  "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.",
718
727
  "fieldName": "persistColumnStateKey"
719
728
  },
729
+ {
730
+ "name": "block-scrolling-on-context-menu",
731
+ "type": {
732
+ "text": "boolean"
733
+ },
734
+ "default": "false",
735
+ "description": "If true, will block scrolling when context menu is open and keep the grid in the same position without scrolling to new records",
736
+ "fieldName": "blockScrollingOnContextMenu"
737
+ },
720
738
  {
721
739
  "name": "size-columns-to-fit",
722
740
  "type": {
@@ -930,7 +948,7 @@
930
948
  {
931
949
  "kind": "variable",
932
950
  "name": "listTemplate",
933
- "default": "html<List>`\n <div class=\"container\">\n ${when(\n (x) => x.enableFilterBar,\n html<List>`\n <zero-filter-bar\n resource=${(x) => x.resourceName}\n only=${(x) => x.columns?.map((colDef) => colDef.field).filter((field) => !!field)}\n labels=${(x) => x.columns?.map((colDef) => colDef.headerName || '')}\n target=\"datasource\"\n ></zero-filter-bar>\n `,\n )}\n <zero-grid-pro\n ${ref('grid')}\n auto-cell-renderer-by-type\n rowSelection=\"single\"\n persist-column-state-key=${(x) => x.persistColumnStateKey}\n ?only-template-col-defs=${(x) => !!x.columns}\n readOnlyEdit=\"true\"\n tooltipMouseTrack=\"true\"\n tooltipShowDelay=\"0\"\n async-add=${(x) => x.asyncAdd}\n async-remove=${(x) => x.asyncRemove}\n async-update=${(x) => x.asyncUpdate}\n enable-cell-flashing=${(x) => x.enableCellFlashing}\n enable-row-flashing=${(x) => x.enableRowFlashing}\n header-case-type=${(x) => x.headerCaseType}\n >\n <grid-pro-genesis-datasource\n ${ref('datasource')}\n :deferredGridOptions=${(x) => x.gridOptions}\n criteria=${(x) => x.datasourceConfig?.criteria}\n fields=${(x) => x.datasourceConfig?.fields}\n is-snapshot=${(x) => x.datasourceConfig?.isSnapshot}\n max-rows=${(x) => x.datasourceConfig?.maxRows}\n max-view=${(x) => x.datasourceConfig?.maxView}\n moving-view=${(x) => x.datasourceConfig?.movingView}\n order-by=${(x) => x.datasourceConfig?.orderBy}\n polling-interval=${(x) => x.datasourceConfig?.pollingInterval}\n resource-name=${(x) => x.resourceName}\n reverse=${(x) => x.datasourceConfig?.reverse}\n ></grid-pro-genesis-datasource>\n ${repeat(\n (x) => x.columns,\n html`\n <grid-pro-column :definition=${(x) => x}></grid-pro-column>\n `,\n )}\n ${repeat(\n (x) => x.actionButtonsConfig,\n html`\n <grid-pro-column :definition=${(x) => x}></grid-pro-column>\n `,\n )}\n </zero-grid-pro>\n </div>\n`"
951
+ "default": "html<List>`\n <div class=\"container\">\n ${when(\n (x) => x.enableFilterBar,\n html<List>`\n <zero-filter-bar\n resource=${(x) => x.resourceName}\n only=${(x) => x.columns?.map((colDef) => colDef.field).filter((field) => !!field)}\n labels=${(x) => x.columns?.map((colDef) => colDef.headerName || '')}\n target=\"datasource\"\n ></zero-filter-bar>\n `,\n )}\n <zero-grid-pro\n ${ref('grid')}\n auto-cell-renderer-by-type\n rowSelection=\"single\"\n persist-column-state-key=${(x) => x.persistColumnStateKey}\n ?only-template-col-defs=${(x) => !!x.columns}\n readOnlyEdit=\"true\"\n tooltipMouseTrack=\"true\"\n tooltipShowDelay=\"0\"\n async-add=${(x) => x.asyncAdd}\n async-remove=${(x) => x.asyncRemove}\n async-update=${(x) => x.asyncUpdate}\n enable-cell-flashing=${(x) => x.enableCellFlashing}\n enable-row-flashing=${(x) => x.enableRowFlashing}\n header-case-type=${(x) => x.headerCaseType}\n block-scrolling-on-context-menu=${(x) => x.blockScrollingOnContextMenu}\n >\n <grid-pro-genesis-datasource\n ${ref('datasource')}\n :deferredGridOptions=${(x) => x.gridOptions}\n criteria=${(x) => x.datasourceConfig?.criteria}\n fields=${(x) => x.datasourceConfig?.fields}\n is-snapshot=${(x) => x.datasourceConfig?.isSnapshot}\n max-rows=${(x) => x.datasourceConfig?.maxRows}\n max-view=${(x) => x.datasourceConfig?.maxView}\n moving-view=${(x) => x.datasourceConfig?.movingView}\n order-by=${(x) => x.datasourceConfig?.orderBy}\n polling-interval=${(x) => x.datasourceConfig?.pollingInterval}\n resource-name=${(x) => x.resourceName}\n reverse=${(x) => x.datasourceConfig?.reverse}\n ></grid-pro-genesis-datasource>\n ${repeat(\n (x) => x.columns,\n html`\n <grid-pro-column :definition=${(x) => x}></grid-pro-column>\n `,\n )}\n ${repeat(\n (x) => x.actionButtonsConfig,\n html`\n <grid-pro-column :definition=${(x) => x}></grid-pro-column>\n `,\n )}\n </zero-grid-pro>\n </div>\n`"
934
952
  }
935
953
  ],
936
954
  "exports": [
@@ -1053,6 +1071,14 @@
1053
1071
  "text": "GridProCaseType"
1054
1072
  }
1055
1073
  },
1074
+ {
1075
+ "kind": "field",
1076
+ "name": "blockScrollingOnContextMenu",
1077
+ "type": {
1078
+ "text": "boolean"
1079
+ },
1080
+ "default": "false"
1081
+ },
1056
1082
  {
1057
1083
  "kind": "field",
1058
1084
  "name": "grid",
@@ -1278,6 +1304,14 @@
1278
1304
  "text": "GridProCaseType"
1279
1305
  },
1280
1306
  "fieldName": "headerCaseType"
1307
+ },
1308
+ {
1309
+ "name": "block-scrolling-on-context-menu",
1310
+ "type": {
1311
+ "text": "boolean"
1312
+ },
1313
+ "default": "false",
1314
+ "fieldName": "blockScrollingOnContextMenu"
1281
1315
  }
1282
1316
  ],
1283
1317
  "superclass": {
@@ -1746,6 +1780,19 @@
1746
1780
  "module": "src/entities/entities.ts"
1747
1781
  }
1748
1782
  },
1783
+ {
1784
+ "kind": "field",
1785
+ "name": "blockScrollingOnContextMenu",
1786
+ "type": {
1787
+ "text": "boolean"
1788
+ },
1789
+ "default": "false",
1790
+ "description": "If true, will block scrolling when context menu is open and keep the grid in the same position without scrolling to new records",
1791
+ "inheritedFrom": {
1792
+ "name": "EntityManagement",
1793
+ "module": "src/entities/entities.ts"
1794
+ }
1795
+ },
1749
1796
  {
1750
1797
  "kind": "field",
1751
1798
  "name": "gridOptions",
@@ -2308,6 +2355,19 @@
2308
2355
  "module": "src/entities/entities.ts"
2309
2356
  }
2310
2357
  },
2358
+ {
2359
+ "name": "block-scrolling-on-context-menu",
2360
+ "type": {
2361
+ "text": "boolean"
2362
+ },
2363
+ "default": "false",
2364
+ "description": "If true, will block scrolling when context menu is open and keep the grid in the same position without scrolling to new records",
2365
+ "fieldName": "blockScrollingOnContextMenu",
2366
+ "inheritedFrom": {
2367
+ "name": "EntityManagement",
2368
+ "module": "src/entities/entities.ts"
2369
+ }
2370
+ },
2311
2371
  {
2312
2372
  "name": "size-columns-to-fit",
2313
2373
  "type": {
@@ -77,7 +77,10 @@ declare const EntityManagement_base: (new (...args: any[]) => {
77
77
  readonly localName: string;
78
78
  readonly namespaceURI: string;
79
79
  onfullscreenchange: (this: Element, ev: Event) => any;
80
- onfullscreenerror: (this: Element, ev: Event) => any;
80
+ onfullscreenerror: (this: Element, ev: Event) => any; /**
81
+ * The name of the resource in the backend to interact with when dispatching actions from the update/create modal
82
+ * @internal
83
+ */
81
84
  outerHTML: string;
82
85
  readonly ownerDocument: Document;
83
86
  readonly part: DOMTokenList;
@@ -471,6 +474,12 @@ export declare class EntityManagement extends EntityManagement_base {
471
474
  * @public
472
475
  */
473
476
  persistColumnStateKey: string;
477
+ /**
478
+ * If true, will block scrolling when context menu is open and keep the grid in the same position without scrolling to new records
479
+ * @remarks Defaults to false
480
+ * @alpha
481
+ */
482
+ blockScrollingOnContextMenu: boolean;
474
483
  /**
475
484
  * GridOptions to be passed down from application
476
485
  * @public
@@ -1 +1 @@
1
- {"version":3,"file":"entities.d.ts","sourceRoot":"","sources":["../../../src/entities/entities.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAkB,MAAM,+BAA+B,CAAC;AAC3F,OAAO,EAAa,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAEzE,OAAO,EACL,eAAe,EAGf,cAAc,EACf,MAAM,4BAA4B,CAAC;AAEpC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAAuB,WAAW,EAAwB,MAAM,yBAAyB,CAAC;AAKjG;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,MAAM,uBAAuB,GAAG,IAAI,CAAC,iBAAiB,EAAE,cAAc,GAAG,SAAS,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAE1F;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,qBAKa,gBAAiB,SAAQ,qBAA2B;IAC/D;;;;;;;OAOG;IACM,SAAS,CAAC,OAAO,EAAG,OAAO,CAAC;IAErC;;;OAGG;IACG,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;I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;;OAGG;IACM,SAAS,IAAI,IAAI;IAmB1B;;;;;;;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,uEAWzB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,eAAe,uEAiB3B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,QAAQ,uEAoDpB,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,uEAWzB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,eAAe,uEAiB3B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,QAAQ,uEAqDpB,CAAC"}
@@ -18,6 +18,7 @@ export declare class List extends FASTElement {
18
18
  hideEdit: boolean;
19
19
  hideDelete: boolean;
20
20
  headerCaseType: GridProCaseType;
21
+ blockScrollingOnContextMenu: boolean;
21
22
  grid: ZeroGridPro;
22
23
  datasource: GridProGenesisDatasource;
23
24
  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;IAC7B,YAAY,EAAE,MAAM,CAAM;IAC1B,KAAK,EAAE,MAAM,CAAM;IACwB,qBAAqB,EAAE,MAAM,CAAC;IAClB,gBAAgB,EAAE,OAAO,CAAC;IAC5B,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;IAClE,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;YA6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AC;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,YAAY,2DAyDxB,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,YAAY,2DA0DxB,CAAC"}
@@ -76,6 +76,12 @@ let EntityManagement = class EntityManagement extends LifecycleMixin(FASTElement
76
76
  * @public
77
77
  */
78
78
  this.enableRowFlashing = false;
79
+ /**
80
+ * If true, will block scrolling when context menu is open and keep the grid in the same position without scrolling to new records
81
+ * @remarks Defaults to false
82
+ * @alpha
83
+ */
84
+ this.blockScrollingOnContextMenu = false;
79
85
  /**
80
86
  * Array with renderers used by foundation-forms
81
87
  * @public
@@ -410,6 +416,9 @@ __decorate([
410
416
  __decorate([
411
417
  attr({ attribute: 'persist-column-state-key' })
412
418
  ], EntityManagement.prototype, "persistColumnStateKey", void 0);
419
+ __decorate([
420
+ attr({ attribute: 'block-scrolling-on-context-menu', mode: 'boolean' })
421
+ ], EntityManagement.prototype, "blockScrollingOnContextMenu", void 0);
413
422
  __decorate([
414
423
  observable
415
424
  ], EntityManagement.prototype, "gridOptions", void 0);
@@ -63,6 +63,7 @@ export const template = html `
63
63
  hide-edit=${(x) => x.hideEdit}
64
64
  hide-delete=${(x) => x.hideDelete}
65
65
  header-case-type=${(x) => x.headerCaseType}
66
+ block-scrolling-on-context-menu=${(x) => x.blockScrollingOnContextMenu}
66
67
  >
67
68
  <slot name="header" slot="header">${defaultHeader}</slot>
68
69
  </entity-list>
@@ -19,6 +19,7 @@ let List = class List extends FASTElement {
19
19
  this.enableRowFlashing = false;
20
20
  this.hideEdit = false;
21
21
  this.hideDelete = false;
22
+ this.blockScrollingOnContextMenu = false;
22
23
  this.actionButtonsConfig = [];
23
24
  this.edit = (e) => {
24
25
  this.$emit('edit-entity', e);
@@ -161,6 +162,9 @@ __decorate([
161
162
  __decorate([
162
163
  attr({ attribute: 'header-case-type' })
163
164
  ], List.prototype, "headerCaseType", void 0);
165
+ __decorate([
166
+ attr({ attribute: 'block-scrolling-on-context-menu', mode: 'boolean' })
167
+ ], List.prototype, "blockScrollingOnContextMenu", void 0);
164
168
  __decorate([
165
169
  observable
166
170
  ], List.prototype, "gridOptions", void 0);
@@ -24,6 +24,7 @@ export const listTemplate = 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')}
@@ -169,6 +169,12 @@ export declare class EntityManagement extends EntityManagement_base {
169
169
  * @public
170
170
  */
171
171
  persistColumnStateKey: string;
172
+ /**
173
+ * If true, will block scrolling when context menu is open and keep the grid in the same position without scrolling to new records
174
+ * @remarks Defaults to false
175
+ * @alpha
176
+ */
177
+ blockScrollingOnContextMenu: boolean;
172
178
  /**
173
179
  * GridOptions to be passed down from application
174
180
  * @public
@@ -363,7 +369,10 @@ declare const EntityManagement_base: (new (...args: any[]) => {
363
369
  readonly localName: string;
364
370
  readonly namespaceURI: string;
365
371
  onfullscreenchange: (this: Element, ev: Event) => any;
366
- onfullscreenerror: (this: Element, ev: Event) => any;
372
+ onfullscreenerror: (this: Element, ev: Event) => any; /**
373
+ * The name of the resource in the backend to interact with when dispatching actions from the update/create modal
374
+ * @internal
375
+ */
367
376
  outerHTML: string;
368
377
  readonly ownerDocument: Document;
369
378
  readonly part: DOMTokenList;
@@ -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.162.1",
4
+ "version": "14.162.2-alpha-37a3d46.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.162.1",
47
- "@genesislcap/genx": "14.162.1",
48
- "@genesislcap/rollup-builder": "14.162.1",
49
- "@genesislcap/ts-builder": "14.162.1",
50
- "@genesislcap/uvu-playwright-builder": "14.162.1",
51
- "@genesislcap/vite-builder": "14.162.1",
52
- "@genesislcap/webpack-builder": "14.162.1",
46
+ "@genesislcap/foundation-testing": "14.162.2-alpha-37a3d46.0",
47
+ "@genesislcap/genx": "14.162.2-alpha-37a3d46.0",
48
+ "@genesislcap/rollup-builder": "14.162.2-alpha-37a3d46.0",
49
+ "@genesislcap/ts-builder": "14.162.2-alpha-37a3d46.0",
50
+ "@genesislcap/uvu-playwright-builder": "14.162.2-alpha-37a3d46.0",
51
+ "@genesislcap/vite-builder": "14.162.2-alpha-37a3d46.0",
52
+ "@genesislcap/webpack-builder": "14.162.2-alpha-37a3d46.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.162.1",
58
- "@genesislcap/foundation-errors": "14.162.1",
59
- "@genesislcap/foundation-events": "14.162.1",
60
- "@genesislcap/foundation-forms": "14.162.1",
61
- "@genesislcap/foundation-logger": "14.162.1",
62
- "@genesislcap/foundation-login": "14.162.1",
63
- "@genesislcap/foundation-notifications": "14.162.1",
64
- "@genesislcap/foundation-ui": "14.162.1",
65
- "@genesislcap/foundation-utils": "14.162.1",
66
- "@genesislcap/foundation-zero": "14.162.1",
67
- "@genesislcap/foundation-zero-grid-pro": "14.162.1",
68
- "@genesislcap/grid-pro": "14.162.1",
57
+ "@genesislcap/foundation-comms": "14.162.2-alpha-37a3d46.0",
58
+ "@genesislcap/foundation-errors": "14.162.2-alpha-37a3d46.0",
59
+ "@genesislcap/foundation-events": "14.162.2-alpha-37a3d46.0",
60
+ "@genesislcap/foundation-forms": "14.162.2-alpha-37a3d46.0",
61
+ "@genesislcap/foundation-logger": "14.162.2-alpha-37a3d46.0",
62
+ "@genesislcap/foundation-login": "14.162.2-alpha-37a3d46.0",
63
+ "@genesislcap/foundation-notifications": "14.162.2-alpha-37a3d46.0",
64
+ "@genesislcap/foundation-ui": "14.162.2-alpha-37a3d46.0",
65
+ "@genesislcap/foundation-utils": "14.162.2-alpha-37a3d46.0",
66
+ "@genesislcap/foundation-zero": "14.162.2-alpha-37a3d46.0",
67
+ "@genesislcap/foundation-zero-grid-pro": "14.162.2-alpha-37a3d46.0",
68
+ "@genesislcap/grid-pro": "14.162.2-alpha-37a3d46.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": "3bdf3555a95a41116950dde7656081b9b693ffbc"
84
+ "gitHead": "1ca1f5a8c54489a32e5bf7ca9cb0182a7822eaa0"
85
85
  }