@genesislcap/foundation-entity-management 14.46.0 → 14.47.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\">${defaultHeader}</slot>\n <entity-list\n title=${(x) => x.title}\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 :columns=${(x) => x.columns}\n :datasourceConfig=${(x) => x.datasourceConfig}\n data-test-id=\"entity-list\"\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 resourceName=${(x) => x.formResourceName}\n :data=${(x) => x.editedEntity}\n :uischema=${(x) => x.formUiSchema}\n @submit-success=${(x, c) => x.submitEntityChanges(c.event as CustomEvent)}\n @submit-failure=${(x, c) =>\n x.errorSnack((c.event as CustomEvent<{ errors: MessageError[] }>).detail.errors)}\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\">${defaultHeader}</slot>\n <entity-list\n title=${(x) => x.title}\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 >\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 resourceName=${(x) => x.formResourceName}\n :data=${(x) => x.editedEntity}\n :uischema=${(x) => x.formUiSchema}\n @submit-success=${(x, c) => x.submitEntityChanges(c.event as CustomEvent)}\n @submit-failure=${(x, c) =>\n x.errorSnack((c.event as CustomEvent<{ errors: MessageError[] }>).detail.errors)}\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
  ],
@@ -269,6 +269,15 @@
269
269
  "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.",
270
270
  "privacy": "public"
271
271
  },
272
+ {
273
+ "kind": "field",
274
+ "name": "gridOptions",
275
+ "type": {
276
+ "text": "GridOptions"
277
+ },
278
+ "description": "GridOptions to be passed down from application",
279
+ "privacy": "public"
280
+ },
272
281
  {
273
282
  "kind": "field",
274
283
  "name": "columns",
@@ -389,6 +398,22 @@
389
398
  "text": "boolean"
390
399
  }
391
400
  },
401
+ {
402
+ "kind": "field",
403
+ "name": "hideEdit",
404
+ "type": {
405
+ "text": "boolean"
406
+ },
407
+ "default": "false"
408
+ },
409
+ {
410
+ "kind": "field",
411
+ "name": "hideDelete",
412
+ "type": {
413
+ "text": "boolean"
414
+ },
415
+ "default": "false"
416
+ },
392
417
  {
393
418
  "kind": "field",
394
419
  "name": "modalPosition",
@@ -443,6 +468,19 @@
443
468
  "name": "closeModal",
444
469
  "privacy": "public"
445
470
  },
471
+ {
472
+ "kind": "method",
473
+ "name": "criteriaChanged",
474
+ "privacy": "public",
475
+ "parameters": [
476
+ {
477
+ "name": "e",
478
+ "type": {
479
+ "text": "CustomEvent<string>"
480
+ }
481
+ }
482
+ ]
483
+ },
446
484
  {
447
485
  "kind": "method",
448
486
  "name": "confirmDelete"
@@ -545,6 +583,22 @@
545
583
  },
546
584
  "fieldName": "enableCellFlashing"
547
585
  },
586
+ {
587
+ "name": "hide-edit",
588
+ "type": {
589
+ "text": "boolean"
590
+ },
591
+ "default": "false",
592
+ "fieldName": "hideEdit"
593
+ },
594
+ {
595
+ "name": "hide-delete",
596
+ "type": {
597
+ "text": "boolean"
598
+ },
599
+ "default": "false",
600
+ "fieldName": "hideDelete"
601
+ },
548
602
  {
549
603
  "name": "modal-position",
550
604
  "type": {
@@ -711,7 +765,7 @@
711
765
  {
712
766
  "kind": "variable",
713
767
  "name": "listTemplate",
714
- "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 suppressCellFocus=\"true\"\n suppressRowDeselection=\"true\"\n enable-cell-flashing=${(x) => x.enableCellFlashing}\n >\n <grid-pro-genesis-datasource\n ${ref('datasource')}\n resource-name=${(x) => x.resourceName}\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 order-by=${(x) => x.datasourceConfig?.orderBy}\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`"
768
+ "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 suppressCellFocus=\"true\"\n suppressRowDeselection=\"true\"\n enable-cell-flashing=${(x) => x.enableCellFlashing}\n >\n <grid-pro-genesis-datasource\n ${ref('datasource')}\n :deferredGridOptions=${(x) => x.gridOptions}\n resource-name=${(x) => x.resourceName}\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 order-by=${(x) => x.datasourceConfig?.orderBy}\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`"
715
769
  }
716
770
  ],
717
771
  "exports": [
@@ -778,6 +832,22 @@
778
832
  "text": "boolean"
779
833
  }
780
834
  },
835
+ {
836
+ "kind": "field",
837
+ "name": "hideEdit",
838
+ "type": {
839
+ "text": "boolean"
840
+ },
841
+ "default": "false"
842
+ },
843
+ {
844
+ "kind": "field",
845
+ "name": "hideDelete",
846
+ "type": {
847
+ "text": "boolean"
848
+ },
849
+ "default": "false"
850
+ },
781
851
  {
782
852
  "kind": "field",
783
853
  "name": "grid",
@@ -794,6 +864,13 @@
794
864
  },
795
865
  "privacy": "public"
796
866
  },
867
+ {
868
+ "kind": "field",
869
+ "name": "gridOptions",
870
+ "type": {
871
+ "text": "GridOptions"
872
+ }
873
+ },
797
874
  {
798
875
  "kind": "field",
799
876
  "name": "columns",
@@ -919,6 +996,22 @@
919
996
  "text": "boolean"
920
997
  },
921
998
  "fieldName": "enableCellFlashing"
999
+ },
1000
+ {
1001
+ "name": "hide-edit",
1002
+ "type": {
1003
+ "text": "boolean"
1004
+ },
1005
+ "default": "false",
1006
+ "fieldName": "hideEdit"
1007
+ },
1008
+ {
1009
+ "name": "hide-delete",
1010
+ "type": {
1011
+ "text": "boolean"
1012
+ },
1013
+ "default": "false",
1014
+ "fieldName": "hideDelete"
922
1015
  }
923
1016
  ],
924
1017
  "superclass": {
@@ -1101,27 +1194,6 @@
1101
1194
  }
1102
1195
  ]
1103
1196
  },
1104
- {
1105
- "kind": "javascript-module",
1106
- "path": "src/routes/config.ts",
1107
- "declarations": [],
1108
- "exports": []
1109
- },
1110
- {
1111
- "kind": "javascript-module",
1112
- "path": "src/routes/index.ts",
1113
- "declarations": [],
1114
- "exports": [
1115
- {
1116
- "kind": "js",
1117
- "name": "*",
1118
- "declaration": {
1119
- "name": "*",
1120
- "package": "./config"
1121
- }
1122
- }
1123
- ]
1124
- },
1125
1197
  {
1126
1198
  "kind": "javascript-module",
1127
1199
  "path": "src/profiles/editProfileSchema.ts",
@@ -1338,6 +1410,19 @@
1338
1410
  "module": "src/entities/entities.ts"
1339
1411
  }
1340
1412
  },
1413
+ {
1414
+ "kind": "field",
1415
+ "name": "gridOptions",
1416
+ "type": {
1417
+ "text": "GridOptions"
1418
+ },
1419
+ "description": "GridOptions to be passed down from application",
1420
+ "privacy": "public",
1421
+ "inheritedFrom": {
1422
+ "name": "EntityManagement",
1423
+ "module": "src/entities/entities.ts"
1424
+ }
1425
+ },
1341
1426
  {
1342
1427
  "kind": "field",
1343
1428
  "name": "columns",
@@ -1500,6 +1585,30 @@
1500
1585
  "module": "src/entities/entities.ts"
1501
1586
  }
1502
1587
  },
1588
+ {
1589
+ "kind": "field",
1590
+ "name": "hideEdit",
1591
+ "type": {
1592
+ "text": "boolean"
1593
+ },
1594
+ "default": "false",
1595
+ "inheritedFrom": {
1596
+ "name": "EntityManagement",
1597
+ "module": "src/entities/entities.ts"
1598
+ }
1599
+ },
1600
+ {
1601
+ "kind": "field",
1602
+ "name": "hideDelete",
1603
+ "type": {
1604
+ "text": "boolean"
1605
+ },
1606
+ "default": "false",
1607
+ "inheritedFrom": {
1608
+ "name": "EntityManagement",
1609
+ "module": "src/entities/entities.ts"
1610
+ }
1611
+ },
1503
1612
  {
1504
1613
  "kind": "field",
1505
1614
  "name": "modalPosition",
@@ -1574,6 +1683,23 @@
1574
1683
  "module": "src/entities/entities.ts"
1575
1684
  }
1576
1685
  },
1686
+ {
1687
+ "kind": "method",
1688
+ "name": "criteriaChanged",
1689
+ "privacy": "public",
1690
+ "parameters": [
1691
+ {
1692
+ "name": "e",
1693
+ "type": {
1694
+ "text": "CustomEvent<string>"
1695
+ }
1696
+ }
1697
+ ],
1698
+ "inheritedFrom": {
1699
+ "name": "EntityManagement",
1700
+ "module": "src/entities/entities.ts"
1701
+ }
1702
+ },
1577
1703
  {
1578
1704
  "kind": "method",
1579
1705
  "name": "showDeleteConfirmation",
@@ -1730,6 +1856,30 @@
1730
1856
  "module": "src/entities/entities.ts"
1731
1857
  }
1732
1858
  },
1859
+ {
1860
+ "name": "hide-edit",
1861
+ "type": {
1862
+ "text": "boolean"
1863
+ },
1864
+ "default": "false",
1865
+ "fieldName": "hideEdit",
1866
+ "inheritedFrom": {
1867
+ "name": "EntityManagement",
1868
+ "module": "src/entities/entities.ts"
1869
+ }
1870
+ },
1871
+ {
1872
+ "name": "hide-delete",
1873
+ "type": {
1874
+ "text": "boolean"
1875
+ },
1876
+ "default": "false",
1877
+ "fieldName": "hideDelete",
1878
+ "inheritedFrom": {
1879
+ "name": "EntityManagement",
1880
+ "module": "src/entities/entities.ts"
1881
+ }
1882
+ },
1733
1883
  {
1734
1884
  "name": "modal-position",
1735
1885
  "type": {
@@ -1765,6 +1915,27 @@
1765
1915
  }
1766
1916
  ]
1767
1917
  },
1918
+ {
1919
+ "kind": "javascript-module",
1920
+ "path": "src/routes/config.ts",
1921
+ "declarations": [],
1922
+ "exports": []
1923
+ },
1924
+ {
1925
+ "kind": "javascript-module",
1926
+ "path": "src/routes/index.ts",
1927
+ "declarations": [],
1928
+ "exports": [
1929
+ {
1930
+ "kind": "js",
1931
+ "name": "*",
1932
+ "declaration": {
1933
+ "name": "*",
1934
+ "package": "./config"
1935
+ }
1936
+ }
1937
+ ]
1938
+ },
1768
1939
  {
1769
1940
  "kind": "javascript-module",
1770
1941
  "path": "src/users/users.template.ts",
@@ -1,4 +1,4 @@
1
- import type { ColDef } from '@ag-grid-community/core';
1
+ import { ColDef, GridOptions } from '@ag-grid-community/core';
2
2
  import { Connect, DatasourceOptions, MessageError } from '@genesislcap/foundation-comms';
3
3
  import { FASTElement } from '@microsoft/fast-element';
4
4
  /**
@@ -29,6 +29,10 @@ declare const EntityManagement_base: (new (...args: any[]) => {
29
29
  "__#1@#_tryFindContainingLayout"(e: Element): import("@genesislcap/foundation-utils").FoundationLayoutContainer | import("@genesislcap/foundation-utils").LayoutCacheContainer | import("@genesislcap/foundation-utils").DOMContainer;
30
30
  connectedCallback(): void;
31
31
  readonly $fastController: import("@microsoft/fast-element").Controller;
32
+ /**
33
+ * Title of the grid
34
+ * @public
35
+ */
32
36
  $emit(type: string, detail?: any, options?: Omit<CustomEventInit<any>, "detail">): boolean | void;
33
37
  disconnectedCallback(): void;
34
38
  attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
@@ -59,7 +63,10 @@ declare const EntityManagement_base: (new (...args: any[]) => {
59
63
  readonly attributes: NamedNodeMap;
60
64
  readonly classList: DOMTokenList;
61
65
  className: string;
62
- readonly clientHeight: number;
66
+ readonly clientHeight: number; /**
67
+ * The name of the resource in the backend to interact with when dispatching actions from the update/create modal
68
+ * @internal
69
+ */
63
70
  readonly clientLeft: number;
64
71
  readonly clientTop: number;
65
72
  readonly clientWidth: number;
@@ -73,6 +80,10 @@ declare const EntityManagement_base: (new (...args: any[]) => {
73
80
  readonly part: DOMTokenList;
74
81
  readonly prefix: string;
75
82
  readonly scrollHeight: number;
83
+ /**
84
+ * Disables the form while enabled to stop the user dispatching a large number of duplicate events
85
+ * @public
86
+ */
76
87
  scrollLeft: number;
77
88
  scrollTop: number;
78
89
  readonly scrollWidth: number;
@@ -432,6 +443,11 @@ export declare class EntityManagement extends EntityManagement_base {
432
443
  * @public
433
444
  */
434
445
  persistColumnStateKey: string;
446
+ /**
447
+ * GridOptions to be passed down from application
448
+ * @public
449
+ */
450
+ gridOptions: GridOptions;
435
451
  /**
436
452
  * Array which holds the column definitions.
437
453
  * @public
@@ -480,6 +496,8 @@ export declare class EntityManagement extends EntityManagement_base {
480
496
  sizeColumnsToFit: boolean;
481
497
  enableFilterBar: boolean;
482
498
  enableCellFlashing: boolean;
499
+ hideEdit: boolean;
500
+ hideDelete: boolean;
483
501
  /**
484
502
  * Determines where the modal dialog will appear on screen
485
503
  * @public
@@ -526,6 +544,7 @@ export declare class EntityManagement extends EntityManagement_base {
526
544
  private editEntity;
527
545
  private readEntity;
528
546
  closeModal(): void;
547
+ criteriaChanged(e: CustomEvent<string>): void;
529
548
  /**
530
549
  * Handler for deleting the entity. Added as an event listener on the class when receiving the `delete-entity` event.
531
550
  *
@@ -1 +1 @@
1
- {"version":3,"file":"entities.d.ts","sourceRoot":"","sources":["../../../src/entities/entities.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAUzF,OAAO,EAAuB,WAAW,EAAc,MAAM,yBAAyB,CAAC;AAKvF;;;;;;;;;;;;;;;;;GAiBG;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,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EAAE,OAAO,CAAS;IAEjF;;;OAGG;IACoC,aAAa,EAAE,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAW;IAE5F;;;OAGG;IACG,iBAAiB;IAcvB;;;OAGG;IACM,SAAS,IAAI,IAAI;IAe1B;;;;;;;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;IAKV,eAAe,CAAC,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC;IAI7C;;;;;OAKG;IACG,YAAY,CAAC,CAAC,EAAE,WAAW;IAK3B,aAAa;IAoBnB,OAAO,CAAC,sBAAsB;IAgB9B;;;OAGG;IACI,WAAW,CAAC,OAAO,KAAA;IAuB1B;;OAEG;IACI,UAAU,CAAC,KAAK,EAAE,YAAY,EAAE;CAexC"}
@@ -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;AAmB9C;;;GAGG;AACH,eAAO,MAAM,QAAQ,uEA2CpB,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;AAmB9C;;;GAGG;AACH,eAAO,MAAM,QAAQ,uEA8CpB,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { ColDef } from '@ag-grid-community/core';
1
+ import type { ColDef, GridOptions } from '@ag-grid-community/core';
2
2
  import { GridProGenesisDatasource, ZeroGridPro } from '@genesislcap/foundation-zero-grid-pro';
3
3
  import { FASTElement } from '@microsoft/fast-element';
4
4
  import { DatasourceConfiguration } from '../entities/entities';
@@ -9,8 +9,11 @@ export declare class List extends FASTElement {
9
9
  sizeColumnsToFit: boolean;
10
10
  enableFilterBar: boolean;
11
11
  enableCellFlashing: boolean;
12
+ hideEdit: boolean;
13
+ hideDelete: boolean;
12
14
  grid: ZeroGridPro;
13
15
  datasource: GridProGenesisDatasource;
16
+ gridOptions: GridOptions;
14
17
  columns: ColDef[];
15
18
  datasourceConfig: DatasourceConfiguration;
16
19
  actionButtonsConfig: any[];
@@ -1 +1 @@
1
- {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/list/list.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAAE,wBAAwB,EAAE,WAAW,EAAE,MAAM,uCAAuC,CAAC;AAC9F,OAAO,EAAuB,WAAW,EAAc,MAAM,yBAAyB,CAAC;AACvF,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;IACtB,kBAAkB,EAAE,OAAO,CAAC;IACnF,IAAI,EAAG,WAAW,CAAC;IACnB,UAAU,EAAG,wBAAwB,CAAC;IACjC,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,gBAAgB,EAAE,uBAAuB,CAAC;IAC1C,mBAAmB,QAAM;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IAEhC,iBAAiB;IA4BjB,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
+ {"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,wBAAwB,EAAE,WAAW,EAAE,MAAM,uCAAuC,CAAC;AAC9F,OAAO,EAAuB,WAAW,EAAc,MAAM,yBAAyB,CAAC;AACvF,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;IACtB,kBAAkB,EAAE,OAAO,CAAC;IACvC,QAAQ,EAAE,OAAO,CAAS;IACxB,UAAU,EAAE,OAAO,CAAS;IAC1E,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;IAEhC,iBAAiB;IA4BjB,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,2DAkDxB,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,2DAmDxB,CAAC"}
@@ -47,6 +47,8 @@ let EntityManagement = class EntityManagement extends LifecycleMixin(FASTElement
47
47
  */
48
48
  this.entityLabel = '';
49
49
  this.editModalVisible = false;
50
+ this.hideEdit = false;
51
+ this.hideDelete = false;
50
52
  /**
51
53
  * Determines where the modal dialog will appear on screen
52
54
  * @public
@@ -89,6 +91,7 @@ let EntityManagement = class EntityManagement extends LifecycleMixin(FASTElement
89
91
  this.addEventListener('create-entity', this.createEntity);
90
92
  this.addEventListener('edit-entity', this.editEntity);
91
93
  this.addEventListener('read-entity', this.readEntity);
94
+ this.addEventListener('criteria-changed', this.criteriaChanged);
92
95
  });
93
96
  }
94
97
  /**
@@ -159,6 +162,9 @@ let EntityManagement = class EntityManagement extends LifecycleMixin(FASTElement
159
162
  this.editedEntity = Object.assign(Object.assign({}, this.editedEntity), readEventReq.REPLY[0]);
160
163
  }
161
164
  }
165
+ else {
166
+ this.editedEntity = Object.assign({}, this.defaultEntityValues);
167
+ }
162
168
  this.editModalVisible = true;
163
169
  });
164
170
  }
@@ -171,6 +177,9 @@ let EntityManagement = class EntityManagement extends LifecycleMixin(FASTElement
171
177
  this.readonly = false;
172
178
  this.editModalVisible = false;
173
179
  }
180
+ criteriaChanged(e) {
181
+ this.datasourceConfig = Object.assign(Object.assign({}, this.datasourceConfig), { criteria: e.detail });
182
+ }
174
183
  /**
175
184
  * Handler for deleting the entity. Added as an event listener on the class when receiving the `delete-entity` event.
176
185
  *
@@ -282,6 +291,9 @@ __decorate([
282
291
  __decorate([
283
292
  attr({ attribute: 'persist-column-state-key' })
284
293
  ], EntityManagement.prototype, "persistColumnStateKey", void 0);
294
+ __decorate([
295
+ observable
296
+ ], EntityManagement.prototype, "gridOptions", void 0);
285
297
  __decorate([
286
298
  observable
287
299
  ], EntityManagement.prototype, "columns", void 0);
@@ -327,6 +339,12 @@ __decorate([
327
339
  __decorate([
328
340
  attr({ mode: 'boolean', attribute: 'enable-cell-flashing' })
329
341
  ], EntityManagement.prototype, "enableCellFlashing", void 0);
342
+ __decorate([
343
+ attr({ mode: 'boolean', attribute: 'hide-edit' })
344
+ ], EntityManagement.prototype, "hideEdit", void 0);
345
+ __decorate([
346
+ attr({ mode: 'boolean', attribute: 'hide-delete' })
347
+ ], EntityManagement.prototype, "hideDelete", void 0);
330
348
  __decorate([
331
349
  attr({ attribute: 'modal-position' })
332
350
  ], EntityManagement.prototype, "modalPosition", void 0);
@@ -28,9 +28,12 @@ export const template = html `
28
28
  resourceName=${(x) => x.resourceName}
29
29
  :deleteEvent=${(x) => x.deleteEvent}
30
30
  :updateEvent=${(x) => x.updateEvent}
31
+ :gridOptions=${(x) => x.gridOptions}
31
32
  :columns=${(x) => x.columns}
32
33
  :datasourceConfig=${(x) => x.datasourceConfig}
33
34
  data-test-id="entity-list"
35
+ hide-edit=${(x) => x.hideEdit}
36
+ hide-delete=${(x) => x.hideDelete}
34
37
  >
35
38
  <slot name="header" slot="header">${defaultHeader}</slot>
36
39
  </entity-list>
@@ -9,6 +9,8 @@ let List = class List extends FASTElement {
9
9
  super(...arguments);
10
10
  this.resourceName = '';
11
11
  this.title = '';
12
+ this.hideEdit = false;
13
+ this.hideDelete = false;
12
14
  this.actionButtonsConfig = [];
13
15
  this.edit = (e) => {
14
16
  this.$emit('edit-entity', e);
@@ -24,10 +26,10 @@ let List = class List extends FASTElement {
24
26
  });
25
27
  this.grid.gridApi.addEventListener('rowClicked', (e) => this.select(e));
26
28
  this.actionButtonsConfig = [];
27
- if (this.deleteEvent) {
29
+ if (this.deleteEvent && !this.hideDelete) {
28
30
  this.actionButtonsConfig.push(buttonCellRenderer('Delete', (e) => this.delete(e)));
29
31
  }
30
- if (this.updateEvent) {
32
+ if (this.updateEvent && !this.hideEdit) {
31
33
  this.actionButtonsConfig.push(buttonCellRenderer('Edit', this.edit));
32
34
  }
33
35
  if (this.enableFilterBar) {
@@ -81,6 +83,15 @@ __decorate([
81
83
  __decorate([
82
84
  attr({ mode: 'boolean', attribute: 'enable-cell-flashing' })
83
85
  ], List.prototype, "enableCellFlashing", void 0);
86
+ __decorate([
87
+ attr({ mode: 'boolean', attribute: 'hide-edit' })
88
+ ], List.prototype, "hideEdit", void 0);
89
+ __decorate([
90
+ attr({ mode: 'boolean', attribute: 'hide-delete' })
91
+ ], List.prototype, "hideDelete", void 0);
92
+ __decorate([
93
+ observable
94
+ ], List.prototype, "gridOptions", void 0);
84
95
  __decorate([
85
96
  observable
86
97
  ], List.prototype, "columns", void 0);
@@ -23,6 +23,7 @@ export const listTemplate = html `
23
23
  >
24
24
  <grid-pro-genesis-datasource
25
25
  ${ref('datasource')}
26
+ :deferredGridOptions=${(x) => x.gridOptions}
26
27
  resource-name=${(x) => x.resourceName}
27
28
  criteria=${(x) => { var _a; return (_a = x.datasourceConfig) === null || _a === void 0 ? void 0 : _a.criteria; }}
28
29
  fields=${(x) => { var _a; return (_a = x.datasourceConfig) === null || _a === void 0 ? void 0 : _a.fields; }}
@@ -453,6 +453,59 @@
453
453
  "isProtected": false,
454
454
  "isAbstract": false
455
455
  },
456
+ {
457
+ "kind": "Method",
458
+ "canonicalReference": "@genesislcap/foundation-entity-management!EntityManagement#criteriaChanged:member(1)",
459
+ "docComment": "",
460
+ "excerptTokens": [
461
+ {
462
+ "kind": "Content",
463
+ "text": "criteriaChanged(e: "
464
+ },
465
+ {
466
+ "kind": "Reference",
467
+ "text": "CustomEvent",
468
+ "canonicalReference": "!CustomEvent:interface"
469
+ },
470
+ {
471
+ "kind": "Content",
472
+ "text": "<string>"
473
+ },
474
+ {
475
+ "kind": "Content",
476
+ "text": "): "
477
+ },
478
+ {
479
+ "kind": "Content",
480
+ "text": "void"
481
+ },
482
+ {
483
+ "kind": "Content",
484
+ "text": ";"
485
+ }
486
+ ],
487
+ "isStatic": false,
488
+ "returnTypeTokenRange": {
489
+ "startIndex": 4,
490
+ "endIndex": 5
491
+ },
492
+ "releaseTag": "Public",
493
+ "isProtected": false,
494
+ "overloadIndex": 1,
495
+ "parameters": [
496
+ {
497
+ "parameterName": "e",
498
+ "parameterTypeTokenRange": {
499
+ "startIndex": 1,
500
+ "endIndex": 3
501
+ },
502
+ "isOptional": false
503
+ }
504
+ ],
505
+ "isOptional": false,
506
+ "isAbstract": false,
507
+ "name": "criteriaChanged"
508
+ },
456
509
  {
457
510
  "kind": "Property",
458
511
  "canonicalReference": "@genesislcap/foundation-entity-management!EntityManagement#datasourceConfig:member",
@@ -847,6 +900,97 @@
847
900
  "isProtected": false,
848
901
  "isAbstract": false
849
902
  },
903
+ {
904
+ "kind": "Property",
905
+ "canonicalReference": "@genesislcap/foundation-entity-management!EntityManagement#gridOptions:member",
906
+ "docComment": "/**\n * GridOptions to be passed down from application\n *\n * @public\n */\n",
907
+ "excerptTokens": [
908
+ {
909
+ "kind": "Content",
910
+ "text": "gridOptions: "
911
+ },
912
+ {
913
+ "kind": "Reference",
914
+ "text": "GridOptions",
915
+ "canonicalReference": "@ag-grid-community/core!GridOptions:interface"
916
+ },
917
+ {
918
+ "kind": "Content",
919
+ "text": ";"
920
+ }
921
+ ],
922
+ "isReadonly": false,
923
+ "isOptional": false,
924
+ "releaseTag": "Public",
925
+ "name": "gridOptions",
926
+ "propertyTypeTokenRange": {
927
+ "startIndex": 1,
928
+ "endIndex": 2
929
+ },
930
+ "isStatic": false,
931
+ "isProtected": false,
932
+ "isAbstract": false
933
+ },
934
+ {
935
+ "kind": "Property",
936
+ "canonicalReference": "@genesislcap/foundation-entity-management!EntityManagement#hideDelete:member",
937
+ "docComment": "",
938
+ "excerptTokens": [
939
+ {
940
+ "kind": "Content",
941
+ "text": "hideDelete: "
942
+ },
943
+ {
944
+ "kind": "Content",
945
+ "text": "boolean"
946
+ },
947
+ {
948
+ "kind": "Content",
949
+ "text": ";"
950
+ }
951
+ ],
952
+ "isReadonly": false,
953
+ "isOptional": false,
954
+ "releaseTag": "Public",
955
+ "name": "hideDelete",
956
+ "propertyTypeTokenRange": {
957
+ "startIndex": 1,
958
+ "endIndex": 2
959
+ },
960
+ "isStatic": false,
961
+ "isProtected": false,
962
+ "isAbstract": false
963
+ },
964
+ {
965
+ "kind": "Property",
966
+ "canonicalReference": "@genesislcap/foundation-entity-management!EntityManagement#hideEdit:member",
967
+ "docComment": "",
968
+ "excerptTokens": [
969
+ {
970
+ "kind": "Content",
971
+ "text": "hideEdit: "
972
+ },
973
+ {
974
+ "kind": "Content",
975
+ "text": "boolean"
976
+ },
977
+ {
978
+ "kind": "Content",
979
+ "text": ";"
980
+ }
981
+ ],
982
+ "isReadonly": false,
983
+ "isOptional": false,
984
+ "releaseTag": "Public",
985
+ "name": "hideEdit",
986
+ "propertyTypeTokenRange": {
987
+ "startIndex": 1,
988
+ "endIndex": 2
989
+ },
990
+ "isStatic": false,
991
+ "isProtected": false,
992
+ "isAbstract": false
993
+ },
850
994
  {
851
995
  "kind": "Property",
852
996
  "canonicalReference": "@genesislcap/foundation-entity-management!EntityManagement#modalPosition:member",
@@ -1,5 +1,5 @@
1
1
  import { Auth } from '@genesislcap/foundation-comms';
2
- import type { ColDef } from '@ag-grid-community/core';
2
+ import { ColDef } from '@ag-grid-community/core';
3
3
  import { Connect } from '@genesislcap/foundation-comms';
4
4
  import { Constructable } from '@microsoft/fast-element';
5
5
  import { Container } from '@microsoft/fast-foundation';
@@ -9,6 +9,7 @@ import { DOMContainer } from '@genesislcap/foundation-utils';
9
9
  import { FASTElement } from '@microsoft/fast-element';
10
10
  import { FoundationAnalytics } from '@genesislcap/foundation-comms';
11
11
  import { FoundationLayoutContainer } from '@genesislcap/foundation-utils';
12
+ import { GridOptions } from '@ag-grid-community/core';
12
13
  import { GridProRendererTypes } from '@genesislcap/foundation-zero-grid-pro';
13
14
  import { LayoutCacheContainer } from '@genesislcap/foundation-utils';
14
15
  import { Logger } from '@genesislcap/foundation-utils';
@@ -156,6 +157,11 @@ export declare class EntityManagement extends EntityManagement_base {
156
157
  * @public
157
158
  */
158
159
  persistColumnStateKey: string;
160
+ /**
161
+ * GridOptions to be passed down from application
162
+ * @public
163
+ */
164
+ gridOptions: GridOptions;
159
165
  /**
160
166
  * Array which holds the column definitions.
161
167
  * @public
@@ -204,6 +210,8 @@ export declare class EntityManagement extends EntityManagement_base {
204
210
  sizeColumnsToFit: boolean;
205
211
  enableFilterBar: boolean;
206
212
  enableCellFlashing: boolean;
213
+ hideEdit: boolean;
214
+ hideDelete: boolean;
207
215
  /**
208
216
  * Determines where the modal dialog will appear on screen
209
217
  * @public
@@ -250,6 +258,7 @@ export declare class EntityManagement extends EntityManagement_base {
250
258
  private editEntity;
251
259
  private readEntity;
252
260
  closeModal(): void;
261
+ criteriaChanged(e: CustomEvent<string>): void;
253
262
  /**
254
263
  * Handler for deleting the entity. Added as an event listener on the class when receiving the `delete-entity` event.
255
264
  *
@@ -279,6 +288,10 @@ declare const EntityManagement_base: (new (...args: any[]) => {
279
288
  "__#1@#_tryFindContainingLayout"(e: Element): FoundationLayoutContainer | LayoutCacheContainer | DOMContainer;
280
289
  connectedCallback(): void;
281
290
  readonly $fastController: Controller;
291
+ /**
292
+ * Title of the grid
293
+ * @public
294
+ */
282
295
  $emit(type: string, detail?: any, options?: Omit<CustomEventInit<any>, "detail">): boolean | void;
283
296
  disconnectedCallback(): void;
284
297
  attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
@@ -309,7 +322,10 @@ declare const EntityManagement_base: (new (...args: any[]) => {
309
322
  readonly attributes: NamedNodeMap;
310
323
  readonly classList: DOMTokenList;
311
324
  className: string;
312
- readonly clientHeight: number;
325
+ readonly clientHeight: number; /**
326
+ * The name of the resource in the backend to interact with when dispatching actions from the update/create modal
327
+ * @internal
328
+ */
313
329
  readonly clientLeft: number;
314
330
  readonly clientTop: number;
315
331
  readonly clientWidth: number;
@@ -323,6 +339,10 @@ declare const EntityManagement_base: (new (...args: any[]) => {
323
339
  readonly part: DOMTokenList;
324
340
  readonly prefix: string;
325
341
  readonly scrollHeight: number;
342
+ /**
343
+ * Disables the form while enabled to stop the user dispatching a large number of duplicate events
344
+ * @public
345
+ */
326
346
  scrollLeft: number;
327
347
  scrollTop: number;
328
348
  readonly scrollWidth: number;
@@ -0,0 +1,22 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-entity-management](./foundation-entity-management.md) &gt; [EntityManagement](./foundation-entity-management.entitymanagement.md) &gt; [criteriaChanged](./foundation-entity-management.entitymanagement.criteriachanged.md)
4
+
5
+ ## EntityManagement.criteriaChanged() method
6
+
7
+ **Signature:**
8
+
9
+ ```typescript
10
+ criteriaChanged(e: CustomEvent<string>): void;
11
+ ```
12
+
13
+ ## Parameters
14
+
15
+ | Parameter | Type | Description |
16
+ | --- | --- | --- |
17
+ | e | CustomEvent&lt;string&gt; | |
18
+
19
+ **Returns:**
20
+
21
+ void
22
+
@@ -0,0 +1,13 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-entity-management](./foundation-entity-management.md) &gt; [EntityManagement](./foundation-entity-management.entitymanagement.md) &gt; [gridOptions](./foundation-entity-management.entitymanagement.gridoptions.md)
4
+
5
+ ## EntityManagement.gridOptions property
6
+
7
+ GridOptions to be passed down from application
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ gridOptions: GridOptions;
13
+ ```
@@ -0,0 +1,11 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-entity-management](./foundation-entity-management.md) &gt; [EntityManagement](./foundation-entity-management.entitymanagement.md) &gt; [hideDelete](./foundation-entity-management.entitymanagement.hidedelete.md)
4
+
5
+ ## EntityManagement.hideDelete property
6
+
7
+ **Signature:**
8
+
9
+ ```typescript
10
+ hideDelete: boolean;
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/foundation-entity-management](./foundation-entity-management.md) &gt; [EntityManagement](./foundation-entity-management.entitymanagement.md) &gt; [hideEdit](./foundation-entity-management.entitymanagement.hideedit.md)
4
+
5
+ ## EntityManagement.hideEdit property
6
+
7
+ **Signature:**
8
+
9
+ ```typescript
10
+ hideEdit: boolean;
11
+ ```
@@ -51,6 +51,9 @@ Where:<br /> - the title of the grid is `Counterparty Management`<br /> - the na
51
51
  | [enableFilterBar](./foundation-entity-management.entitymanagement.enablefilterbar.md) | | boolean | |
52
52
  | [entityLabel](./foundation-entity-management.entitymanagement.entitylabel.md) | | string | Label for the entity which has usages such as being shown in the title of the modal wen editing the entity |
53
53
  | [formUiSchema](./foundation-entity-management.entitymanagement.formuischema.md) | | any | |
54
+ | [gridOptions](./foundation-entity-management.entitymanagement.gridoptions.md) | | GridOptions | GridOptions to be passed down from application |
55
+ | [hideDelete](./foundation-entity-management.entitymanagement.hidedelete.md) | | boolean | |
56
+ | [hideEdit](./foundation-entity-management.entitymanagement.hideedit.md) | | boolean | |
54
57
  | [modalPosition](./foundation-entity-management.entitymanagement.modalposition.md) | | 'centre' \| 'left' \| 'right' | Determines where the modal dialog will appear on screen |
55
58
  | [persistColumnStateKey](./foundation-entity-management.entitymanagement.persistcolumnstatekey.md) | | string | 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. |
56
59
  | [readEvent](./foundation-entity-management.entitymanagement.readevent.md) | | string | |
@@ -70,6 +73,7 @@ Where:<br /> - the title of the grid is `Counterparty Management`<br /> - the na
70
73
  | --- | --- | --- |
71
74
  | [closeModal()](./foundation-entity-management.entitymanagement.closemodal.md) | | |
72
75
  | [confirmDelete()](./foundation-entity-management.entitymanagement.confirmdelete.md) | | |
76
+ | [criteriaChanged(e)](./foundation-entity-management.entitymanagement.criteriachanged.md) | | |
73
77
  | [deepClone()](./foundation-entity-management.entitymanagement.deepclone.md) | | Override the deepClone method to ensure that observable attributes are cloned |
74
78
  | [editModalVisibleChanged()](./foundation-entity-management.entitymanagement.editmodalvisiblechanged.md) | | |
75
79
  | [submitEntityChanges(e)](./foundation-entity-management.entitymanagement.submitentitychanges.md) | | Event handler for when the user submits the action for the currently open form, either editing or adding the entity |
@@ -5,7 +5,7 @@
5
5
  ```ts
6
6
 
7
7
  import { Auth } from '@genesislcap/foundation-comms';
8
- import type { ColDef } from '@ag-grid-community/core';
8
+ import { ColDef } from '@ag-grid-community/core';
9
9
  import { Connect } from '@genesislcap/foundation-comms';
10
10
  import { Constructable } from '@microsoft/fast-element';
11
11
  import { Container } from '@microsoft/fast-foundation';
@@ -15,6 +15,7 @@ import { DOMContainer } from '@genesislcap/foundation-utils';
15
15
  import { FASTElement } from '@microsoft/fast-element';
16
16
  import { FoundationAnalytics } from '@genesislcap/foundation-comms';
17
17
  import { FoundationLayoutContainer } from '@genesislcap/foundation-utils';
18
+ import { GridOptions } from '@ag-grid-community/core';
18
19
  import { GridProRendererTypes } from '@genesislcap/foundation-zero-grid-pro';
19
20
  import { LayoutCacheContainer } from '@genesislcap/foundation-utils';
20
21
  import { Logger } from '@genesislcap/foundation-utils';
@@ -74,6 +75,8 @@ export class EntityManagement extends EntityManagement_base {
74
75
  createEvent: string;
75
76
  // (undocumented)
76
77
  createFormUiSchema: any;
78
+ // (undocumented)
79
+ criteriaChanged(e: CustomEvent<string>): void;
77
80
  datasourceConfig: DatasourceConfiguration;
78
81
  deepClone(): Node;
79
82
  // (undocumented)
@@ -102,6 +105,11 @@ export class EntityManagement extends EntityManagement_base {
102
105
  formResourceName: string;
103
106
  // (undocumented)
104
107
  formUiSchema: any;
108
+ gridOptions: GridOptions;
109
+ // (undocumented)
110
+ hideDelete: boolean;
111
+ // (undocumented)
112
+ hideEdit: boolean;
105
113
  modalPosition: 'centre' | 'left' | 'right';
106
114
  persistColumnStateKey: string;
107
115
  // (undocumented)
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.46.0",
4
+ "version": "14.47.0",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -41,21 +41,21 @@
41
41
  },
42
42
  "devDependencies": {
43
43
  "@genesislcap/foundation-login": "^14.40.0",
44
- "@genesislcap/foundation-testing": "^14.46.0",
45
- "@genesislcap/genx": "^14.46.0",
44
+ "@genesislcap/foundation-testing": "^14.47.0",
45
+ "@genesislcap/genx": "^14.47.0",
46
46
  "bulma": "^0.9.3"
47
47
  },
48
48
  "dependencies": {
49
49
  "@ag-grid-community/core": "29.2.0",
50
- "@genesislcap/foundation-comms": "^14.46.0",
51
- "@genesislcap/foundation-errors": "^14.46.0",
52
- "@genesislcap/foundation-forms": "^14.46.0",
53
- "@genesislcap/foundation-login": "^14.46.0",
54
- "@genesislcap/foundation-ui": "^14.46.0",
55
- "@genesislcap/foundation-utils": "^14.46.0",
56
- "@genesislcap/foundation-zero": "^14.46.0",
57
- "@genesislcap/foundation-zero-grid-pro": "^14.46.0",
58
- "@genesislcap/grid-pro": "^14.46.0",
50
+ "@genesislcap/foundation-comms": "^14.47.0",
51
+ "@genesislcap/foundation-errors": "^14.47.0",
52
+ "@genesislcap/foundation-forms": "^14.47.0",
53
+ "@genesislcap/foundation-login": "^14.47.0",
54
+ "@genesislcap/foundation-ui": "^14.47.0",
55
+ "@genesislcap/foundation-utils": "^14.47.0",
56
+ "@genesislcap/foundation-zero": "^14.47.0",
57
+ "@genesislcap/foundation-zero-grid-pro": "^14.47.0",
58
+ "@genesislcap/grid-pro": "^14.47.0",
59
59
  "@microsoft/fast-components": "^2.21.3",
60
60
  "@microsoft/fast-element": "^1.7.0",
61
61
  "@microsoft/fast-foundation": "^2.33.2",
@@ -71,5 +71,5 @@
71
71
  "access": "public"
72
72
  },
73
73
  "customElements": "dist/custom-elements.json",
74
- "gitHead": "aaaf1e3338854f98d7a05fbf4f5bba0a015a8cd7"
74
+ "gitHead": "9bad5fe39b5b4dccad1d61226c0d767b0fce383c"
75
75
  }