@genesislcap/foundation-entity-management 14.30.1 → 14.30.2-bny.1

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 >\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 ${ref('editEntityForm')}\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",
@@ -368,6 +377,14 @@
368
377
  },
369
378
  "privacy": "public"
370
379
  },
380
+ {
381
+ "kind": "field",
382
+ "name": "editEntityForm",
383
+ "type": {
384
+ "text": "Form"
385
+ },
386
+ "privacy": "public"
387
+ },
371
388
  {
372
389
  "kind": "field",
373
390
  "name": "sizeColumnsToFit",
@@ -443,6 +460,19 @@
443
460
  "name": "closeModal",
444
461
  "privacy": "public"
445
462
  },
463
+ {
464
+ "kind": "method",
465
+ "name": "criteriaChanged",
466
+ "privacy": "public",
467
+ "parameters": [
468
+ {
469
+ "name": "e",
470
+ "type": {
471
+ "text": "CustomEvent<string>"
472
+ }
473
+ }
474
+ ]
475
+ },
446
476
  {
447
477
  "kind": "method",
448
478
  "name": "confirmDelete"
@@ -619,6 +649,55 @@
619
649
  }
620
650
  ]
621
651
  },
652
+ {
653
+ "kind": "javascript-module",
654
+ "path": "src/layouts/default.ts",
655
+ "declarations": [
656
+ {
657
+ "kind": "variable",
658
+ "name": "loginLayout",
659
+ "default": "new FASTElementLayout(\n html`\n <div class=\"container\">\n <div class=\"content\">\n <slot></slot>\n </div>\n </div>\n `,\n baseLayoutCss\n)"
660
+ },
661
+ {
662
+ "kind": "variable",
663
+ "name": "defaultLayout",
664
+ "default": "new FASTElementLayout(\n html`\n <div class=\"container\">\n <div class=\"content\">\n <slot></slot>\n </div>\n </div>\n `,\n css`\n ${baseLayoutCss}\n `\n)"
665
+ }
666
+ ],
667
+ "exports": [
668
+ {
669
+ "kind": "js",
670
+ "name": "loginLayout",
671
+ "declaration": {
672
+ "name": "loginLayout",
673
+ "module": "src/layouts/default.ts"
674
+ }
675
+ },
676
+ {
677
+ "kind": "js",
678
+ "name": "defaultLayout",
679
+ "declaration": {
680
+ "name": "defaultLayout",
681
+ "module": "src/layouts/default.ts"
682
+ }
683
+ }
684
+ ]
685
+ },
686
+ {
687
+ "kind": "javascript-module",
688
+ "path": "src/layouts/index.ts",
689
+ "declarations": [],
690
+ "exports": [
691
+ {
692
+ "kind": "js",
693
+ "name": "*",
694
+ "declaration": {
695
+ "name": "*",
696
+ "package": "./default"
697
+ }
698
+ }
699
+ ]
700
+ },
622
701
  {
623
702
  "kind": "javascript-module",
624
703
  "path": "src/list/index.ts",
@@ -662,7 +741,7 @@
662
741
  {
663
742
  "kind": "variable",
664
743
  "name": "listTemplate",
665
- "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`"
744
+ "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`"
666
745
  }
667
746
  ],
668
747
  "exports": [
@@ -745,6 +824,13 @@
745
824
  },
746
825
  "privacy": "public"
747
826
  },
827
+ {
828
+ "kind": "field",
829
+ "name": "gridOptions",
830
+ "type": {
831
+ "text": "GridOptions"
832
+ }
833
+ },
748
834
  {
749
835
  "kind": "field",
750
836
  "name": "columns",
@@ -1268,6 +1354,19 @@
1268
1354
  "module": "src/entities/entities.ts"
1269
1355
  }
1270
1356
  },
1357
+ {
1358
+ "kind": "field",
1359
+ "name": "gridOptions",
1360
+ "type": {
1361
+ "text": "GridOptions"
1362
+ },
1363
+ "description": "GridOptions to be passed down from application",
1364
+ "privacy": "public",
1365
+ "inheritedFrom": {
1366
+ "name": "EntityManagement",
1367
+ "module": "src/entities/entities.ts"
1368
+ }
1369
+ },
1271
1370
  {
1272
1371
  "kind": "field",
1273
1372
  "name": "columns",
@@ -1397,6 +1496,18 @@
1397
1496
  "module": "src/entities/entities.ts"
1398
1497
  }
1399
1498
  },
1499
+ {
1500
+ "kind": "field",
1501
+ "name": "editEntityForm",
1502
+ "type": {
1503
+ "text": "Form"
1504
+ },
1505
+ "privacy": "public",
1506
+ "inheritedFrom": {
1507
+ "name": "EntityManagement",
1508
+ "module": "src/entities/entities.ts"
1509
+ }
1510
+ },
1400
1511
  {
1401
1512
  "kind": "field",
1402
1513
  "name": "sizeColumnsToFit",
@@ -1504,6 +1615,23 @@
1504
1615
  "module": "src/entities/entities.ts"
1505
1616
  }
1506
1617
  },
1618
+ {
1619
+ "kind": "method",
1620
+ "name": "criteriaChanged",
1621
+ "privacy": "public",
1622
+ "parameters": [
1623
+ {
1624
+ "name": "e",
1625
+ "type": {
1626
+ "text": "CustomEvent<string>"
1627
+ }
1628
+ }
1629
+ ],
1630
+ "inheritedFrom": {
1631
+ "name": "EntityManagement",
1632
+ "module": "src/entities/entities.ts"
1633
+ }
1634
+ },
1507
1635
  {
1508
1636
  "kind": "method",
1509
1637
  "name": "showDeleteConfirmation",
@@ -1716,55 +1844,6 @@
1716
1844
  }
1717
1845
  ]
1718
1846
  },
1719
- {
1720
- "kind": "javascript-module",
1721
- "path": "src/layouts/default.ts",
1722
- "declarations": [
1723
- {
1724
- "kind": "variable",
1725
- "name": "loginLayout",
1726
- "default": "new FASTElementLayout(\n html`\n <div class=\"container\">\n <div class=\"content\">\n <slot></slot>\n </div>\n </div>\n `,\n baseLayoutCss\n)"
1727
- },
1728
- {
1729
- "kind": "variable",
1730
- "name": "defaultLayout",
1731
- "default": "new FASTElementLayout(\n html`\n <div class=\"container\">\n <div class=\"content\">\n <slot></slot>\n </div>\n </div>\n `,\n css`\n ${baseLayoutCss}\n `\n)"
1732
- }
1733
- ],
1734
- "exports": [
1735
- {
1736
- "kind": "js",
1737
- "name": "loginLayout",
1738
- "declaration": {
1739
- "name": "loginLayout",
1740
- "module": "src/layouts/default.ts"
1741
- }
1742
- },
1743
- {
1744
- "kind": "js",
1745
- "name": "defaultLayout",
1746
- "declaration": {
1747
- "name": "defaultLayout",
1748
- "module": "src/layouts/default.ts"
1749
- }
1750
- }
1751
- ]
1752
- },
1753
- {
1754
- "kind": "javascript-module",
1755
- "path": "src/layouts/index.ts",
1756
- "declarations": [],
1757
- "exports": [
1758
- {
1759
- "kind": "js",
1760
- "name": "*",
1761
- "declaration": {
1762
- "name": "*",
1763
- "package": "./default"
1764
- }
1765
- }
1766
- ]
1767
- },
1768
1847
  {
1769
1848
  "kind": "javascript-module",
1770
1849
  "path": "src/users/users.template.ts",
@@ -1,6 +1,7 @@
1
- import { 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
+ import { Form } from '@genesislcap/foundation-forms';
4
5
  /**
5
6
  * The attribute which is set to configure the resource that the entity manager is working with
6
7
  *
@@ -28,10 +29,7 @@ declare const EntityManagement_base: (new (...args: any[]) => {
28
29
  readonly shouldRunConnect: boolean;
29
30
  "__#1@#_tryFindContainingLayout"(e: Element): import("@genesislcap/foundation-utils").FoundationLayoutContainer | import("@genesislcap/foundation-utils").LayoutCacheContainer | import("@genesislcap/foundation-utils").DOMContainer;
30
31
  connectedCallback(): void;
31
- readonly $fastController: import("@microsoft/fast-element").Controller; /**
32
- * Label for the entity which has usages such as being shown in the title of the modal wen editing the entity
33
- * @public
34
- */
32
+ readonly $fastController: import("@microsoft/fast-element").Controller;
35
33
  $emit(type: string, detail?: any, options?: Omit<CustomEventInit<any>, "detail">): boolean | void;
36
34
  disconnectedCallback(): void;
37
35
  attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
@@ -55,8 +53,14 @@ declare const EntityManagement_base: (new (...args: any[]) => {
55
53
  translate: boolean;
56
54
  attachInternals(): ElementInternals;
57
55
  click(): void;
58
- addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
59
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
56
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; /**
57
+ * GridOptions to be passed down from application
58
+ * @public
59
+ */
60
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; /**
61
+ * GridOptions to be passed down from application
62
+ * @public
63
+ */
60
64
  removeEventListener<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions): void;
61
65
  removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
62
66
  readonly attributes: NamedNodeMap;
@@ -435,6 +439,11 @@ export declare class EntityManagement extends EntityManagement_base {
435
439
  * @public
436
440
  */
437
441
  persistColumnStateKey: string;
442
+ /**
443
+ * GridOptions to be passed down from application
444
+ * @public
445
+ */
446
+ gridOptions: GridOptions;
438
447
  /**
439
448
  * Array which holds the column definitions.
440
449
  * @public
@@ -480,6 +489,7 @@ export declare class EntityManagement extends EntityManagement_base {
480
489
  editModalVisible: boolean;
481
490
  editModalVisibleChanged(): void;
482
491
  editEntityModal: any;
492
+ editEntityForm: Form;
483
493
  sizeColumnsToFit: boolean;
484
494
  enableFilterBar: boolean;
485
495
  enableCellFlashing: boolean;
@@ -529,6 +539,7 @@ export declare class EntityManagement extends EntityManagement_base {
529
539
  private editEntity;
530
540
  private readEntity;
531
541
  closeModal(): void;
542
+ criteriaChanged(e: CustomEvent<string>): void;
532
543
  /**
533
544
  * Handler for deleting the entity. Added as an event listener on the class when receiving the `delete-entity` event.
534
545
  *
@@ -1 +1 @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IAEF;;;;OAIG;IACI,YAAY;IASnB;;;;;OAKG;YACW,UAAU;IA4BxB,OAAO,CAAC,UAAU;IAMX,UAAU;IAMV,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,uEA6CpB,CAAC"}
@@ -1,4 +1,4 @@
1
- import { ColDef } from '@ag-grid-community/core';
1
+ import { 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';
@@ -11,6 +11,7 @@ export declare class List extends FASTElement {
11
11
  enableCellFlashing: boolean;
12
12
  grid: ZeroGridPro;
13
13
  datasource: GridProGenesisDatasource;
14
+ gridOptions: GridOptions;
14
15
  columns: ColDef[];
15
16
  datasourceConfig: DatasourceConfiguration;
16
17
  actionButtonsConfig: any[];
@@ -1 +1 @@
1
- {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/list/list.ts"],"names":[],"mapp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B,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,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"}
@@ -88,6 +88,7 @@ let EntityManagement = class EntityManagement extends LifecycleMixin(FASTElement
88
88
  this.addEventListener('create-entity', this.createEntity);
89
89
  this.addEventListener('edit-entity', this.editEntity);
90
90
  this.addEventListener('read-entity', this.readEntity);
91
+ this.addEventListener('criteria-changed', this.criteriaChanged);
91
92
  });
92
93
  }
93
94
  /**
@@ -158,6 +159,9 @@ let EntityManagement = class EntityManagement extends LifecycleMixin(FASTElement
158
159
  this.editedEntity = Object.assign(Object.assign({}, this.editedEntity), readEventReq.REPLY[0]);
159
160
  }
160
161
  }
162
+ else {
163
+ this.editedEntity = Object.assign({}, this.defaultEntityValues);
164
+ }
161
165
  this.editModalVisible = true;
162
166
  });
163
167
  }
@@ -167,9 +171,13 @@ let EntityManagement = class EntityManagement extends LifecycleMixin(FASTElement
167
171
  this.editDialogTitle = '';
168
172
  }
169
173
  closeModal() {
174
+ this.editEntityForm.reset();
170
175
  this.readonly = false;
171
176
  this.editModalVisible = false;
172
177
  }
178
+ criteriaChanged(e) {
179
+ this.datasourceConfig = Object.assign(Object.assign({}, this.datasourceConfig), { criteria: e.detail });
180
+ }
173
181
  /**
174
182
  * Handler for deleting the entity. Added as an event listener on the class when receiving the `delete-entity` event.
175
183
  *
@@ -281,6 +289,9 @@ __decorate([
281
289
  __decorate([
282
290
  attr({ attribute: 'persist-column-state-key' })
283
291
  ], EntityManagement.prototype, "persistColumnStateKey", void 0);
292
+ __decorate([
293
+ observable
294
+ ], EntityManagement.prototype, "gridOptions", void 0);
284
295
  __decorate([
285
296
  observable
286
297
  ], EntityManagement.prototype, "columns", void 0);
@@ -28,6 +28,7 @@ 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"
@@ -46,6 +47,7 @@ export const template = html `
46
47
  ${when((x) => x.editModalVisible, html `
47
48
  <foundation-form
48
49
  part="form"
50
+ ${ref('editEntityForm')}
49
51
  resourceName=${(x) => x.formResourceName}
50
52
  :data=${(x) => x.editedEntity}
51
53
  :uischema=${(x) => x.formUiSchema}
@@ -81,6 +81,9 @@ __decorate([
81
81
  __decorate([
82
82
  attr({ mode: 'boolean', attribute: 'enable-cell-flashing' })
83
83
  ], List.prototype, "enableCellFlashing", void 0);
84
+ __decorate([
85
+ observable
86
+ ], List.prototype, "gridOptions", void 0);
84
87
  __decorate([
85
88
  observable
86
89
  ], 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",
@@ -636,6 +689,37 @@
636
689
  "isProtected": false,
637
690
  "isAbstract": false
638
691
  },
692
+ {
693
+ "kind": "Property",
694
+ "canonicalReference": "@genesislcap/foundation-entity-management!EntityManagement#editEntityForm:member",
695
+ "docComment": "",
696
+ "excerptTokens": [
697
+ {
698
+ "kind": "Content",
699
+ "text": "editEntityForm: "
700
+ },
701
+ {
702
+ "kind": "Reference",
703
+ "text": "Form",
704
+ "canonicalReference": "@genesislcap/foundation-forms!Form:class"
705
+ },
706
+ {
707
+ "kind": "Content",
708
+ "text": ";"
709
+ }
710
+ ],
711
+ "isReadonly": false,
712
+ "isOptional": false,
713
+ "releaseTag": "Public",
714
+ "name": "editEntityForm",
715
+ "propertyTypeTokenRange": {
716
+ "startIndex": 1,
717
+ "endIndex": 2
718
+ },
719
+ "isStatic": false,
720
+ "isProtected": false,
721
+ "isAbstract": false
722
+ },
639
723
  {
640
724
  "kind": "Property",
641
725
  "canonicalReference": "@genesislcap/foundation-entity-management!EntityManagement#editEntityModal:member",
@@ -847,6 +931,37 @@
847
931
  "isProtected": false,
848
932
  "isAbstract": false
849
933
  },
934
+ {
935
+ "kind": "Property",
936
+ "canonicalReference": "@genesislcap/foundation-entity-management!EntityManagement#gridOptions:member",
937
+ "docComment": "/**\n * GridOptions to be passed down from application\n *\n * @public\n */\n",
938
+ "excerptTokens": [
939
+ {
940
+ "kind": "Content",
941
+ "text": "gridOptions: "
942
+ },
943
+ {
944
+ "kind": "Reference",
945
+ "text": "GridOptions",
946
+ "canonicalReference": "@ag-grid-community/core!GridOptions:interface"
947
+ },
948
+ {
949
+ "kind": "Content",
950
+ "text": ";"
951
+ }
952
+ ],
953
+ "isReadonly": false,
954
+ "isOptional": false,
955
+ "releaseTag": "Public",
956
+ "name": "gridOptions",
957
+ "propertyTypeTokenRange": {
958
+ "startIndex": 1,
959
+ "endIndex": 2
960
+ },
961
+ "isStatic": false,
962
+ "isProtected": false,
963
+ "isAbstract": false
964
+ },
850
965
  {
851
966
  "kind": "Property",
852
967
  "canonicalReference": "@genesislcap/foundation-entity-management!EntityManagement#modalPosition:member",
@@ -7,8 +7,10 @@ import { Controller } from '@microsoft/fast-element';
7
7
  import { DatasourceOptions } from '@genesislcap/foundation-comms';
8
8
  import { DOMContainer } from '@genesislcap/foundation-utils';
9
9
  import { FASTElement } from '@microsoft/fast-element';
10
+ import { Form } from '@genesislcap/foundation-forms';
10
11
  import { FoundationAnalytics } from '@genesislcap/foundation-comms';
11
12
  import { FoundationLayoutContainer } from '@genesislcap/foundation-utils';
13
+ import { GridOptions } from '@ag-grid-community/core';
12
14
  import { GridProRendererTypes } from '@genesislcap/grid-pro';
13
15
  import { LayoutCacheContainer } from '@genesislcap/foundation-utils';
14
16
  import { Logger } from '@genesislcap/foundation-utils';
@@ -156,6 +158,11 @@ export declare class EntityManagement extends EntityManagement_base {
156
158
  * @public
157
159
  */
158
160
  persistColumnStateKey: string;
161
+ /**
162
+ * GridOptions to be passed down from application
163
+ * @public
164
+ */
165
+ gridOptions: GridOptions;
159
166
  /**
160
167
  * Array which holds the column definitions.
161
168
  * @public
@@ -201,6 +208,7 @@ export declare class EntityManagement extends EntityManagement_base {
201
208
  editModalVisible: boolean;
202
209
  editModalVisibleChanged(): void;
203
210
  editEntityModal: any;
211
+ editEntityForm: Form;
204
212
  sizeColumnsToFit: boolean;
205
213
  enableFilterBar: boolean;
206
214
  enableCellFlashing: boolean;
@@ -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
  *
@@ -278,10 +287,7 @@ declare const EntityManagement_base: (new (...args: any[]) => {
278
287
  readonly shouldRunConnect: boolean;
279
288
  "__#1@#_tryFindContainingLayout"(e: Element): FoundationLayoutContainer | LayoutCacheContainer | DOMContainer;
280
289
  connectedCallback(): void;
281
- readonly $fastController: Controller; /**
282
- * Label for the entity which has usages such as being shown in the title of the modal wen editing the entity
283
- * @public
284
- */
290
+ readonly $fastController: Controller;
285
291
  $emit(type: string, detail?: any, options?: Omit<CustomEventInit<any>, "detail">): boolean | void;
286
292
  disconnectedCallback(): void;
287
293
  attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
@@ -305,8 +311,14 @@ declare const EntityManagement_base: (new (...args: any[]) => {
305
311
  translate: boolean;
306
312
  attachInternals(): ElementInternals;
307
313
  click(): void;
308
- addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
309
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
314
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; /**
315
+ * GridOptions to be passed down from application
316
+ * @public
317
+ */
318
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; /**
319
+ * GridOptions to be passed down from application
320
+ * @public
321
+ */
310
322
  removeEventListener<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions): void;
311
323
  removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
312
324
  readonly attributes: NamedNodeMap;
@@ -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,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; [editEntityForm](./foundation-entity-management.entitymanagement.editentityform.md)
4
+
5
+ ## EntityManagement.editEntityForm property
6
+
7
+ **Signature:**
8
+
9
+ ```typescript
10
+ editEntityForm: Form;
11
+ ```
@@ -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
+ ```
@@ -45,12 +45,14 @@ Where:<br /> - the title of the grid is `Counterparty Management`<br /> - the na
45
45
  | [deleteEvent](./foundation-entity-management.entitymanagement.deleteevent.md) | | string | Name of the event handler on the Genesis server which handles deleting the entity |
46
46
  | [editDialogTitle](./foundation-entity-management.entitymanagement.editdialogtitle.md) | | string | String which contains the text of the popup modal when the user is adding or editing an entity |
47
47
  | [editedEntity](./foundation-entity-management.entitymanagement.editedentity.md) | | any | Disables the form while enabled to stop the user dispatching a large number of duplicate events |
48
+ | [editEntityForm](./foundation-entity-management.entitymanagement.editentityform.md) | | Form | |
48
49
  | [editEntityModal](./foundation-entity-management.entitymanagement.editentitymodal.md) | | any | |
49
50
  | [editModalVisible](./foundation-entity-management.entitymanagement.editmodalvisible.md) | | boolean | |
50
51
  | [enableCellFlashing](./foundation-entity-management.entitymanagement.enablecellflashing.md) | | boolean | |
51
52
  | [enableFilterBar](./foundation-entity-management.entitymanagement.enablefilterbar.md) | | boolean | |
52
53
  | [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
54
  | [formUiSchema](./foundation-entity-management.entitymanagement.formuischema.md) | | any | |
55
+ | [gridOptions](./foundation-entity-management.entitymanagement.gridoptions.md) | | GridOptions | GridOptions to be passed down from application |
54
56
  | [modalPosition](./foundation-entity-management.entitymanagement.modalposition.md) | | 'centre' \| 'left' \| 'right' | Determines where the modal dialog will appear on screen |
55
57
  | [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
58
  | [readEvent](./foundation-entity-management.entitymanagement.readevent.md) | | string | |
@@ -70,6 +72,7 @@ Where:<br /> - the title of the grid is `Counterparty Management`<br /> - the na
70
72
  | --- | --- | --- |
71
73
  | [closeModal()](./foundation-entity-management.entitymanagement.closemodal.md) | | |
72
74
  | [confirmDelete()](./foundation-entity-management.entitymanagement.confirmdelete.md) | | |
75
+ | [criteriaChanged(e)](./foundation-entity-management.entitymanagement.criteriachanged.md) | | |
73
76
  | [deepClone()](./foundation-entity-management.entitymanagement.deepclone.md) | | Override the deepClone method to ensure that observable attributes are cloned |
74
77
  | [editModalVisibleChanged()](./foundation-entity-management.entitymanagement.editmodalvisiblechanged.md) | | |
75
78
  | [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 |
@@ -13,8 +13,10 @@ import { Controller } from '@microsoft/fast-element';
13
13
  import { DatasourceOptions } from '@genesislcap/foundation-comms';
14
14
  import { DOMContainer } from '@genesislcap/foundation-utils';
15
15
  import { FASTElement } from '@microsoft/fast-element';
16
+ import { Form } from '@genesislcap/foundation-forms';
16
17
  import { FoundationAnalytics } from '@genesislcap/foundation-comms';
17
18
  import { FoundationLayoutContainer } from '@genesislcap/foundation-utils';
19
+ import { GridOptions } from '@ag-grid-community/core';
18
20
  import { GridProRendererTypes } from '@genesislcap/grid-pro';
19
21
  import { LayoutCacheContainer } from '@genesislcap/foundation-utils';
20
22
  import { Logger } from '@genesislcap/foundation-utils';
@@ -74,6 +76,8 @@ export class EntityManagement extends EntityManagement_base {
74
76
  createEvent: string;
75
77
  // (undocumented)
76
78
  createFormUiSchema: any;
79
+ // (undocumented)
80
+ criteriaChanged(e: CustomEvent<string>): void;
77
81
  datasourceConfig: DatasourceConfiguration;
78
82
  deepClone(): Node;
79
83
  // (undocumented)
@@ -84,6 +88,8 @@ export class EntityManagement extends EntityManagement_base {
84
88
  editDialogTitle: string;
85
89
  editedEntity: any;
86
90
  // (undocumented)
91
+ editEntityForm: Form;
92
+ // (undocumented)
87
93
  editEntityModal: any;
88
94
  // (undocumented)
89
95
  editModalVisible: boolean;
@@ -102,6 +108,7 @@ export class EntityManagement extends EntityManagement_base {
102
108
  formResourceName: string;
103
109
  // (undocumented)
104
110
  formUiSchema: any;
111
+ gridOptions: GridOptions;
105
112
  modalPosition: 'centre' | 'left' | 'right';
106
113
  persistColumnStateKey: string;
107
114
  // (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.30.1",
4
+ "version": "14.30.2-bny.1",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -48,8 +48,8 @@
48
48
  "test:unit:watch": "watchlist src test -- npm run test:unit"
49
49
  },
50
50
  "devDependencies": {
51
- "@genesislcap/foundation-testing": "^14.30.1",
52
- "@genesislcap/genx": "^14.30.1",
51
+ "@genesislcap/foundation-testing": "14.30.2-bny.1",
52
+ "@genesislcap/genx": "14.30.2-bny.1",
53
53
  "@playwright/test": "^1.18.1",
54
54
  "bulma": "^0.9.3",
55
55
  "c8": "^7.11.0",
@@ -65,15 +65,15 @@
65
65
  "watchlist": "^0.3.1"
66
66
  },
67
67
  "dependencies": {
68
- "@genesislcap/foundation-comms": "^14.30.1",
69
- "@genesislcap/foundation-errors": "^14.30.1",
70
- "@genesislcap/foundation-forms": "^14.30.1",
71
- "@genesislcap/foundation-login": "^14.30.1",
72
- "@genesislcap/foundation-ui": "^14.30.1",
73
- "@genesislcap/foundation-utils": "^14.30.1",
74
- "@genesislcap/foundation-zero": "^14.30.1",
75
- "@genesislcap/foundation-zero-grid-pro": "^14.30.1",
76
- "@genesislcap/grid-pro": "^14.30.1",
68
+ "@genesislcap/foundation-comms": "14.30.2-bny.1",
69
+ "@genesislcap/foundation-errors": "14.30.2-bny.1",
70
+ "@genesislcap/foundation-forms": "14.30.2-bny.1",
71
+ "@genesislcap/foundation-login": "14.30.2-bny.1",
72
+ "@genesislcap/foundation-ui": "14.30.2-bny.1",
73
+ "@genesislcap/foundation-utils": "14.30.2-bny.1",
74
+ "@genesislcap/foundation-zero": "14.30.2-bny.1",
75
+ "@genesislcap/foundation-zero-grid-pro": "14.30.2-bny.1",
76
+ "@genesislcap/grid-pro": "14.30.2-bny.1",
77
77
  "@microsoft/fast-components": "^2.21.3",
78
78
  "@microsoft/fast-element": "^1.7.0",
79
79
  "@microsoft/fast-foundation": "^2.33.2",
@@ -98,5 +98,5 @@
98
98
  "access": "public"
99
99
  },
100
100
  "customElements": "dist/custom-elements.json",
101
- "gitHead": "fbb28aece6d8e5ab4584018421c910a4a23c1723"
101
+ "gitHead": "63f9dfb5e58f87fc514c73b185788088b7fac94a"
102
102
  }