@genesislcap/foundation-entity-management 14.151.1 → 14.151.2-alpha-6dc6e2c.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.
@@ -87,6 +87,41 @@
87
87
  }
88
88
  ]
89
89
  },
90
+ {
91
+ "kind": "javascript-module",
92
+ "path": "src/components/components.ts",
93
+ "declarations": [
94
+ {
95
+ "kind": "function",
96
+ "name": "loadRemotes"
97
+ }
98
+ ],
99
+ "exports": [
100
+ {
101
+ "kind": "js",
102
+ "name": "loadRemotes",
103
+ "declaration": {
104
+ "name": "loadRemotes",
105
+ "module": "src/components/components.ts"
106
+ }
107
+ }
108
+ ]
109
+ },
110
+ {
111
+ "kind": "javascript-module",
112
+ "path": "src/components/index.ts",
113
+ "declarations": [],
114
+ "exports": [
115
+ {
116
+ "kind": "js",
117
+ "name": "*",
118
+ "declaration": {
119
+ "name": "*",
120
+ "package": "./components"
121
+ }
122
+ }
123
+ ]
124
+ },
90
125
  {
91
126
  "kind": "javascript-module",
92
127
  "path": "src/entities/entities.styles.ts",
@@ -116,7 +151,7 @@
116
151
  {
117
152
  "kind": "variable",
118
153
  "name": "template",
119
- "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`",
120
155
  "description": "Defines the html of the entity component as a ViewTemplate object"
121
156
  }
122
157
  ],
@@ -284,6 +319,15 @@
284
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.",
285
320
  "privacy": "public"
286
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
+ },
287
331
  {
288
332
  "kind": "field",
289
333
  "name": "gridOptions",
@@ -682,6 +726,15 @@
682
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.",
683
727
  "fieldName": "persistColumnStateKey"
684
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
+ },
685
738
  {
686
739
  "name": "size-columns-to-fit",
687
740
  "type": {
@@ -895,7 +948,7 @@
895
948
  {
896
949
  "kind": "variable",
897
950
  "name": "listTemplate",
898
- "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 rowHeight=\"36\"\n headerHeight=\"36\"\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 rowHeight=\"36\"\n headerHeight=\"36\"\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`"
899
952
  }
900
953
  ],
901
954
  "exports": [
@@ -1018,6 +1071,14 @@
1018
1071
  "text": "GridProCaseType"
1019
1072
  }
1020
1073
  },
1074
+ {
1075
+ "kind": "field",
1076
+ "name": "blockScrollingOnContextMenu",
1077
+ "type": {
1078
+ "text": "boolean"
1079
+ },
1080
+ "default": "false"
1081
+ },
1021
1082
  {
1022
1083
  "kind": "field",
1023
1084
  "name": "grid",
@@ -1243,6 +1304,14 @@
1243
1304
  "text": "GridProCaseType"
1244
1305
  },
1245
1306
  "fieldName": "headerCaseType"
1307
+ },
1308
+ {
1309
+ "name": "block-scrolling-on-context-menu",
1310
+ "type": {
1311
+ "text": "boolean"
1312
+ },
1313
+ "default": "false",
1314
+ "fieldName": "blockScrollingOnContextMenu"
1246
1315
  }
1247
1316
  ],
1248
1317
  "superclass": {
@@ -1272,41 +1341,6 @@
1272
1341
  }
1273
1342
  ]
1274
1343
  },
1275
- {
1276
- "kind": "javascript-module",
1277
- "path": "src/components/components.ts",
1278
- "declarations": [
1279
- {
1280
- "kind": "function",
1281
- "name": "loadRemotes"
1282
- }
1283
- ],
1284
- "exports": [
1285
- {
1286
- "kind": "js",
1287
- "name": "loadRemotes",
1288
- "declaration": {
1289
- "name": "loadRemotes",
1290
- "module": "src/components/components.ts"
1291
- }
1292
- }
1293
- ]
1294
- },
1295
- {
1296
- "kind": "javascript-module",
1297
- "path": "src/components/index.ts",
1298
- "declarations": [],
1299
- "exports": [
1300
- {
1301
- "kind": "js",
1302
- "name": "*",
1303
- "declaration": {
1304
- "name": "*",
1305
- "package": "./components"
1306
- }
1307
- }
1308
- ]
1309
- },
1310
1344
  {
1311
1345
  "kind": "javascript-module",
1312
1346
  "path": "src/main/index.ts",
@@ -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": {
@@ -2414,6 +2474,27 @@
2414
2474
  }
2415
2475
  ]
2416
2476
  },
2477
+ {
2478
+ "kind": "javascript-module",
2479
+ "path": "src/routes/config.ts",
2480
+ "declarations": [],
2481
+ "exports": []
2482
+ },
2483
+ {
2484
+ "kind": "javascript-module",
2485
+ "path": "src/routes/index.ts",
2486
+ "declarations": [],
2487
+ "exports": [
2488
+ {
2489
+ "kind": "js",
2490
+ "name": "*",
2491
+ "declaration": {
2492
+ "name": "*",
2493
+ "package": "./config"
2494
+ }
2495
+ }
2496
+ ]
2497
+ },
2417
2498
  {
2418
2499
  "kind": "javascript-module",
2419
2500
  "path": "src/users/users.template.ts",
@@ -2621,27 +2702,6 @@
2621
2702
  }
2622
2703
  ]
2623
2704
  },
2624
- {
2625
- "kind": "javascript-module",
2626
- "path": "src/routes/config.ts",
2627
- "declarations": [],
2628
- "exports": []
2629
- },
2630
- {
2631
- "kind": "javascript-module",
2632
- "path": "src/routes/index.ts",
2633
- "declarations": [],
2634
- "exports": [
2635
- {
2636
- "kind": "js",
2637
- "name": "*",
2638
- "declaration": {
2639
- "name": "*",
2640
- "package": "./config"
2641
- }
2642
- }
2643
- ]
2644
- },
2645
2705
  {
2646
2706
  "kind": "javascript-module",
2647
2707
  "path": "src/utils/formatting.ts",
@@ -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;;;;;;;;;;;;;;;;;;;GAm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c9B;;;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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B,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;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,YAAY,2DA2DxB,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,2DA4DxB,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);
@@ -26,6 +26,7 @@ export const listTemplate = html `
26
26
  enable-cell-flashing=${(x) => x.enableCellFlashing}
27
27
  enable-row-flashing=${(x) => x.enableRowFlashing}
28
28
  header-case-type=${(x) => x.headerCaseType}
29
+ block-scrolling-on-context-menu=${(x) => x.blockScrollingOnContextMenu}
29
30
  >
30
31
  <grid-pro-genesis-datasource
31
32
  ${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.151.1",
4
+ "version": "14.151.2-alpha-6dc6e2c.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.151.1",
47
- "@genesislcap/genx": "14.151.1",
48
- "@genesislcap/rollup-builder": "14.151.1",
49
- "@genesislcap/ts-builder": "14.151.1",
50
- "@genesislcap/uvu-playwright-builder": "14.151.1",
51
- "@genesislcap/vite-builder": "14.151.1",
52
- "@genesislcap/webpack-builder": "14.151.1",
46
+ "@genesislcap/foundation-testing": "14.151.2-alpha-6dc6e2c.0",
47
+ "@genesislcap/genx": "14.151.2-alpha-6dc6e2c.0",
48
+ "@genesislcap/rollup-builder": "14.151.2-alpha-6dc6e2c.0",
49
+ "@genesislcap/ts-builder": "14.151.2-alpha-6dc6e2c.0",
50
+ "@genesislcap/uvu-playwright-builder": "14.151.2-alpha-6dc6e2c.0",
51
+ "@genesislcap/vite-builder": "14.151.2-alpha-6dc6e2c.0",
52
+ "@genesislcap/webpack-builder": "14.151.2-alpha-6dc6e2c.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.151.1",
58
- "@genesislcap/foundation-errors": "14.151.1",
59
- "@genesislcap/foundation-events": "14.151.1",
60
- "@genesislcap/foundation-forms": "14.151.1",
61
- "@genesislcap/foundation-logger": "14.151.1",
62
- "@genesislcap/foundation-login": "14.151.1",
63
- "@genesislcap/foundation-notifications": "14.151.1",
64
- "@genesislcap/foundation-ui": "14.151.1",
65
- "@genesislcap/foundation-utils": "14.151.1",
66
- "@genesislcap/foundation-zero": "14.151.1",
67
- "@genesislcap/foundation-zero-grid-pro": "14.151.1",
68
- "@genesislcap/grid-pro": "14.151.1",
57
+ "@genesislcap/foundation-comms": "14.151.2-alpha-6dc6e2c.0",
58
+ "@genesislcap/foundation-errors": "14.151.2-alpha-6dc6e2c.0",
59
+ "@genesislcap/foundation-events": "14.151.2-alpha-6dc6e2c.0",
60
+ "@genesislcap/foundation-forms": "14.151.2-alpha-6dc6e2c.0",
61
+ "@genesislcap/foundation-logger": "14.151.2-alpha-6dc6e2c.0",
62
+ "@genesislcap/foundation-login": "14.151.2-alpha-6dc6e2c.0",
63
+ "@genesislcap/foundation-notifications": "14.151.2-alpha-6dc6e2c.0",
64
+ "@genesislcap/foundation-ui": "14.151.2-alpha-6dc6e2c.0",
65
+ "@genesislcap/foundation-utils": "14.151.2-alpha-6dc6e2c.0",
66
+ "@genesislcap/foundation-zero": "14.151.2-alpha-6dc6e2c.0",
67
+ "@genesislcap/foundation-zero-grid-pro": "14.151.2-alpha-6dc6e2c.0",
68
+ "@genesislcap/grid-pro": "14.151.2-alpha-6dc6e2c.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": "b56ae0d22c24098e5fd2e771a9ec1749de9cabbf"
84
+ "gitHead": "ead29961faf124f80ee8195b7f318586cc51c71f"
85
85
  }