@genesislcap/foundation-entity-management 14.41.0 → 14.41.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.
- package/dist/custom-elements.json +81 -2
- package/dist/dts/entities/entities.d.ts +25 -8
- package/dist/dts/entities/entities.d.ts.map +1 -1
- package/dist/dts/entities/entities.template.d.ts.map +1 -1
- package/dist/dts/list/list.d.ts +2 -1
- package/dist/dts/list/list.d.ts.map +1 -1
- package/dist/dts/list/list.template.d.ts.map +1 -1
- package/dist/esm/entities/entities.js +14 -2
- package/dist/esm/entities/entities.template.js +2 -0
- package/dist/esm/list/list.js +3 -0
- package/dist/esm/list/list.template.js +1 -0
- package/dist/foundation-entity-management.api.json +115 -0
- package/dist/foundation-entity-management.d.ts +26 -8
- package/docs/api/foundation-entity-management.entitymanagement.criteriachanged.md +22 -0
- package/docs/api/foundation-entity-management.entitymanagement.editentityform.md +11 -0
- package/docs/api/foundation-entity-management.entitymanagement.gridoptions.md +13 -0
- package/docs/api/foundation-entity-management.entitymanagement.md +3 -0
- package/docs/api-report.md +8 -1
- package/package.json +13 -13
|
@@ -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"
|
|
@@ -711,7 +741,7 @@
|
|
|
711
741
|
{
|
|
712
742
|
"kind": "variable",
|
|
713
743
|
"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`"
|
|
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`"
|
|
715
745
|
}
|
|
716
746
|
],
|
|
717
747
|
"exports": [
|
|
@@ -794,6 +824,13 @@
|
|
|
794
824
|
},
|
|
795
825
|
"privacy": "public"
|
|
796
826
|
},
|
|
827
|
+
{
|
|
828
|
+
"kind": "field",
|
|
829
|
+
"name": "gridOptions",
|
|
830
|
+
"type": {
|
|
831
|
+
"text": "GridOptions"
|
|
832
|
+
}
|
|
833
|
+
},
|
|
797
834
|
{
|
|
798
835
|
"kind": "field",
|
|
799
836
|
"name": "columns",
|
|
@@ -1317,6 +1354,19 @@
|
|
|
1317
1354
|
"module": "src/entities/entities.ts"
|
|
1318
1355
|
}
|
|
1319
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
|
+
},
|
|
1320
1370
|
{
|
|
1321
1371
|
"kind": "field",
|
|
1322
1372
|
"name": "columns",
|
|
@@ -1446,6 +1496,18 @@
|
|
|
1446
1496
|
"module": "src/entities/entities.ts"
|
|
1447
1497
|
}
|
|
1448
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
|
+
},
|
|
1449
1511
|
{
|
|
1450
1512
|
"kind": "field",
|
|
1451
1513
|
"name": "sizeColumnsToFit",
|
|
@@ -1553,6 +1615,23 @@
|
|
|
1553
1615
|
"module": "src/entities/entities.ts"
|
|
1554
1616
|
}
|
|
1555
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
|
+
},
|
|
1556
1635
|
{
|
|
1557
1636
|
"kind": "method",
|
|
1558
1637
|
"name": "showDeleteConfirmation",
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
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
|
*
|
|
@@ -75,6 +76,10 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
75
76
|
readonly scrollHeight: number;
|
|
76
77
|
scrollLeft: number;
|
|
77
78
|
scrollTop: number;
|
|
79
|
+
/**
|
|
80
|
+
* Disables the form while enabled to stop the user dispatching a large number of duplicate events
|
|
81
|
+
* @public
|
|
82
|
+
*/
|
|
78
83
|
readonly scrollWidth: number;
|
|
79
84
|
readonly shadowRoot: ShadowRoot;
|
|
80
85
|
slot: string;
|
|
@@ -91,9 +96,18 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
91
96
|
getBoundingClientRect(): DOMRect;
|
|
92
97
|
getClientRects(): DOMRectList;
|
|
93
98
|
getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
|
|
94
|
-
getElementsByTagName<K_4 extends keyof HTMLElementTagNameMap>(qualifiedName: K_4): HTMLCollectionOf<HTMLElementTagNameMap[K_4]>;
|
|
95
|
-
|
|
96
|
-
|
|
99
|
+
getElementsByTagName<K_4 extends keyof HTMLElementTagNameMap>(qualifiedName: K_4): HTMLCollectionOf<HTMLElementTagNameMap[K_4]>; /**
|
|
100
|
+
* Determines where the modal dialog will appear on screen
|
|
101
|
+
* @public
|
|
102
|
+
*/
|
|
103
|
+
getElementsByTagName<K_5 extends keyof SVGElementTagNameMap>(qualifiedName: K_5): HTMLCollectionOf<SVGElementTagNameMap[K_5]>; /**
|
|
104
|
+
* Determines where the modal dialog will appear on screen
|
|
105
|
+
* @public
|
|
106
|
+
*/
|
|
107
|
+
getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>; /**
|
|
108
|
+
* Determines where the modal dialog will appear on screen
|
|
109
|
+
* @public
|
|
110
|
+
*/
|
|
97
111
|
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
|
|
98
112
|
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
|
|
99
113
|
getElementsByTagNameNS(namespace: string, localName: string): HTMLCollectionOf<Element>;
|
|
@@ -208,10 +222,6 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
208
222
|
ariaSort: string;
|
|
209
223
|
ariaValueMax: string;
|
|
210
224
|
ariaValueMin: string;
|
|
211
|
-
/**
|
|
212
|
-
* Show notifications if the executed event returned an error.
|
|
213
|
-
* @internal
|
|
214
|
-
*/
|
|
215
225
|
ariaValueNow: string;
|
|
216
226
|
ariaValueText: string;
|
|
217
227
|
role: string;
|
|
@@ -436,6 +446,11 @@ export declare class EntityManagement extends EntityManagement_base {
|
|
|
436
446
|
* @public
|
|
437
447
|
*/
|
|
438
448
|
persistColumnStateKey: string;
|
|
449
|
+
/**
|
|
450
|
+
* GridOptions to be passed down from application
|
|
451
|
+
* @public
|
|
452
|
+
*/
|
|
453
|
+
gridOptions: GridOptions;
|
|
439
454
|
/**
|
|
440
455
|
* Array which holds the column definitions.
|
|
441
456
|
* @public
|
|
@@ -481,6 +496,7 @@ export declare class EntityManagement extends EntityManagement_base {
|
|
|
481
496
|
editModalVisible: boolean;
|
|
482
497
|
editModalVisibleChanged(): void;
|
|
483
498
|
editEntityModal: any;
|
|
499
|
+
editEntityForm: Form;
|
|
484
500
|
sizeColumnsToFit: boolean;
|
|
485
501
|
enableFilterBar: boolean;
|
|
486
502
|
enableCellFlashing: boolean;
|
|
@@ -530,6 +546,7 @@ export declare class EntityManagement extends EntityManagement_base {
|
|
|
530
546
|
private editEntity;
|
|
531
547
|
private readEntity;
|
|
532
548
|
closeModal(): void;
|
|
549
|
+
criteriaChanged(e: CustomEvent<string>): void;
|
|
533
550
|
/**
|
|
534
551
|
* Handler for deleting the entity. Added as an event listener on the class when receiving the `delete-entity` event.
|
|
535
552
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entities.d.ts","sourceRoot":"","sources":["../../../src/entities/entities.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"entities.d.ts","sourceRoot":"","sources":["../../../src/entities/entities.ts"],"names":[],"mappings":"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"}
|
|
@@ -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,
|
|
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"}
|
package/dist/dts/list/list.d.ts
CHANGED
|
@@ -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';
|
|
@@ -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":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;
|
|
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;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,
|
|
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"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { __awaiter, __decorate, __rest } from "tslib";
|
|
2
2
|
import { Connect } from '@genesislcap/foundation-comms';
|
|
3
3
|
import { ErrorBoundaryEvent, getErrorBuilder, getErrorDialogBuilder, getNotificationBuilder, getSnackbarBuilder, } from '@genesislcap/foundation-errors';
|
|
4
|
+
import { showDialog } from '@genesislcap/foundation-errors';
|
|
4
5
|
import { LifecycleMixin } from '@genesislcap/foundation-utils';
|
|
5
6
|
import { attr, customElement, FASTElement, observable } from '@microsoft/fast-element';
|
|
6
7
|
import { getErrorFormat, logger } from '../utils';
|
|
@@ -88,6 +89,7 @@ let EntityManagement = class EntityManagement extends LifecycleMixin(FASTElement
|
|
|
88
89
|
this.addEventListener('create-entity', this.createEntity);
|
|
89
90
|
this.addEventListener('edit-entity', this.editEntity);
|
|
90
91
|
this.addEventListener('read-entity', this.readEntity);
|
|
92
|
+
this.addEventListener('criteria-changed', this.criteriaChanged);
|
|
91
93
|
});
|
|
92
94
|
}
|
|
93
95
|
/**
|
|
@@ -158,6 +160,9 @@ let EntityManagement = class EntityManagement extends LifecycleMixin(FASTElement
|
|
|
158
160
|
this.editedEntity = Object.assign(Object.assign({}, this.editedEntity), readEventReq.REPLY[0]);
|
|
159
161
|
}
|
|
160
162
|
}
|
|
163
|
+
else {
|
|
164
|
+
this.editedEntity = Object.assign({}, this.defaultEntityValues);
|
|
165
|
+
}
|
|
161
166
|
this.editModalVisible = true;
|
|
162
167
|
});
|
|
163
168
|
}
|
|
@@ -167,9 +172,13 @@ let EntityManagement = class EntityManagement extends LifecycleMixin(FASTElement
|
|
|
167
172
|
this.editDialogTitle = '';
|
|
168
173
|
}
|
|
169
174
|
closeModal() {
|
|
175
|
+
this.editEntityForm.reset();
|
|
170
176
|
this.readonly = false;
|
|
171
177
|
this.editModalVisible = false;
|
|
172
178
|
}
|
|
179
|
+
criteriaChanged(e) {
|
|
180
|
+
this.datasourceConfig = Object.assign(Object.assign({}, this.datasourceConfig), { criteria: e.detail });
|
|
181
|
+
}
|
|
173
182
|
/**
|
|
174
183
|
* Handler for deleting the entity. Added as an event listener on the class when receiving the `delete-entity` event.
|
|
175
184
|
*
|
|
@@ -204,14 +213,14 @@ let EntityManagement = class EntityManagement extends LifecycleMixin(FASTElement
|
|
|
204
213
|
});
|
|
205
214
|
}
|
|
206
215
|
showDeleteConfirmation() {
|
|
207
|
-
|
|
216
|
+
showDialog(getErrorBuilder()
|
|
208
217
|
.withTitle(`Confirm Delete`)
|
|
209
218
|
.withErrorDetails('Do you really want to delete this entity?')
|
|
210
219
|
.withDialog(getErrorDialogBuilder()
|
|
211
220
|
.withDismissingAction({ label: 'Dismiss', action: () => (this.selectedEntity = null) })
|
|
212
221
|
.withConfirmingAction({ label: 'Confirm', action: () => this.confirmDelete() })
|
|
213
222
|
.build())
|
|
214
|
-
.build());
|
|
223
|
+
.build(), 'zero');
|
|
215
224
|
}
|
|
216
225
|
/**
|
|
217
226
|
* Show notifications if the executed event returned an error.
|
|
@@ -281,6 +290,9 @@ __decorate([
|
|
|
281
290
|
__decorate([
|
|
282
291
|
attr({ attribute: 'persist-column-state-key' })
|
|
283
292
|
], EntityManagement.prototype, "persistColumnStateKey", void 0);
|
|
293
|
+
__decorate([
|
|
294
|
+
observable
|
|
295
|
+
], EntityManagement.prototype, "gridOptions", void 0);
|
|
284
296
|
__decorate([
|
|
285
297
|
observable
|
|
286
298
|
], 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}
|
package/dist/esm/list/list.js
CHANGED
|
@@ -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",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Auth } from '@genesislcap/foundation-comms';
|
|
2
|
-
import
|
|
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';
|
|
@@ -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/foundation-zero-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
|
*
|
|
@@ -325,6 +334,10 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
325
334
|
readonly scrollHeight: number;
|
|
326
335
|
scrollLeft: number;
|
|
327
336
|
scrollTop: number;
|
|
337
|
+
/**
|
|
338
|
+
* Disables the form while enabled to stop the user dispatching a large number of duplicate events
|
|
339
|
+
* @public
|
|
340
|
+
*/
|
|
328
341
|
readonly scrollWidth: number;
|
|
329
342
|
readonly shadowRoot: ShadowRoot;
|
|
330
343
|
slot: string;
|
|
@@ -341,9 +354,18 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
341
354
|
getBoundingClientRect(): DOMRect;
|
|
342
355
|
getClientRects(): DOMRectList;
|
|
343
356
|
getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
|
|
344
|
-
getElementsByTagName<K_4 extends keyof HTMLElementTagNameMap>(qualifiedName: K_4): HTMLCollectionOf<HTMLElementTagNameMap[K_4]>;
|
|
345
|
-
|
|
346
|
-
|
|
357
|
+
getElementsByTagName<K_4 extends keyof HTMLElementTagNameMap>(qualifiedName: K_4): HTMLCollectionOf<HTMLElementTagNameMap[K_4]>; /**
|
|
358
|
+
* Determines where the modal dialog will appear on screen
|
|
359
|
+
* @public
|
|
360
|
+
*/
|
|
361
|
+
getElementsByTagName<K_5 extends keyof SVGElementTagNameMap>(qualifiedName: K_5): HTMLCollectionOf<SVGElementTagNameMap[K_5]>; /**
|
|
362
|
+
* Determines where the modal dialog will appear on screen
|
|
363
|
+
* @public
|
|
364
|
+
*/
|
|
365
|
+
getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>; /**
|
|
366
|
+
* Determines where the modal dialog will appear on screen
|
|
367
|
+
* @public
|
|
368
|
+
*/
|
|
347
369
|
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
|
|
348
370
|
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
|
|
349
371
|
getElementsByTagNameNS(namespace: string, localName: string): HTMLCollectionOf<Element>;
|
|
@@ -458,10 +480,6 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
458
480
|
ariaSort: string;
|
|
459
481
|
ariaValueMax: string;
|
|
460
482
|
ariaValueMin: string;
|
|
461
|
-
/**
|
|
462
|
-
* Show notifications if the executed event returned an error.
|
|
463
|
-
* @internal
|
|
464
|
-
*/
|
|
465
483
|
ariaValueNow: string;
|
|
466
484
|
ariaValueText: string;
|
|
467
485
|
role: string;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-entity-management](./foundation-entity-management.md) > [EntityManagement](./foundation-entity-management.entitymanagement.md) > [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<string> | |
|
|
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) > [@genesislcap/foundation-entity-management](./foundation-entity-management.md) > [EntityManagement](./foundation-entity-management.entitymanagement.md) > [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) > [@genesislcap/foundation-entity-management](./foundation-entity-management.md) > [EntityManagement](./foundation-entity-management.entitymanagement.md) > [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 |
|
package/docs/api-report.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
```ts
|
|
6
6
|
|
|
7
7
|
import { Auth } from '@genesislcap/foundation-comms';
|
|
8
|
-
import
|
|
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';
|
|
@@ -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/foundation-zero-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.41.
|
|
4
|
+
"version": "14.41.2-bny.1",
|
|
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": "
|
|
45
|
-
"@genesislcap/genx": "
|
|
44
|
+
"@genesislcap/foundation-testing": "14.41.2-bny.1",
|
|
45
|
+
"@genesislcap/genx": "14.41.2-bny.1",
|
|
46
46
|
"bulma": "^0.9.3"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@ag-grid-community/core": "29.2.0",
|
|
50
|
-
"@genesislcap/foundation-comms": "
|
|
51
|
-
"@genesislcap/foundation-errors": "
|
|
52
|
-
"@genesislcap/foundation-forms": "
|
|
53
|
-
"@genesislcap/foundation-login": "
|
|
54
|
-
"@genesislcap/foundation-ui": "
|
|
55
|
-
"@genesislcap/foundation-utils": "
|
|
56
|
-
"@genesislcap/foundation-zero": "
|
|
57
|
-
"@genesislcap/foundation-zero-grid-pro": "
|
|
58
|
-
"@genesislcap/grid-pro": "
|
|
50
|
+
"@genesislcap/foundation-comms": "14.41.2-bny.1",
|
|
51
|
+
"@genesislcap/foundation-errors": "14.41.2-bny.1",
|
|
52
|
+
"@genesislcap/foundation-forms": "14.41.2-bny.1",
|
|
53
|
+
"@genesislcap/foundation-login": "14.41.2-bny.1",
|
|
54
|
+
"@genesislcap/foundation-ui": "14.41.2-bny.1",
|
|
55
|
+
"@genesislcap/foundation-utils": "14.41.2-bny.1",
|
|
56
|
+
"@genesislcap/foundation-zero": "14.41.2-bny.1",
|
|
57
|
+
"@genesislcap/foundation-zero-grid-pro": "14.41.2-bny.1",
|
|
58
|
+
"@genesislcap/grid-pro": "14.41.2-bny.1",
|
|
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": "
|
|
74
|
+
"gitHead": "4892bb140cea556c54d4a816abe774da574e9eb1"
|
|
75
75
|
}
|