@genesislcap/foundation-entity-management 14.91.3 → 14.91.4-alpha-3764fc6.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.
- package/dist/custom-elements.json +25 -1
- package/dist/dts/entities/entities.d.ts +44 -19
- package/dist/dts/entities/entities.d.ts.map +1 -1
- package/dist/dts/entities/entities.template.d.ts.map +1 -1
- package/dist/esm/entities/entities.js +9 -0
- package/dist/esm/entities/entities.template.js +1 -0
- package/dist/foundation-entity-management.api.json +35 -0
- package/dist/foundation-entity-management.d.ts +44 -19
- package/docs/api/foundation-entity-management.entitymanagement.formrenderers.md +13 -0
- package/docs/api/foundation-entity-management.entitymanagement.md +1 -0
- package/docs/api-report.md +2 -0
- package/package.json +14 -14
|
@@ -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 async-add=${(x) => x.asyncAdd}\n async-remove=${(x) => x.asyncRemove}\n async-update=${(x) => x.asyncUpdate}\n enable-cell-flashing=${(x) => x.enableCellFlashing}\n enable-row-flashing=${(x) => x.enableRowFlashing}\n persist-column-state-key=${(x) => x.persistColumnStateKey}\n size-columns-to-fit=${(x) => x.sizeColumnsToFit}\n enable-filter-bar=${(x) => x.enableFilterBar}\n resourceName=${(x) => x.resourceName}\n :deleteEvent=${(x) => x.deleteEvent}\n :updateEvent=${(x) => x.updateEvent}\n :gridOptions=${(x) => x.gridOptions}\n :columns=${(x) => x.columns}\n :datasourceConfig=${(x) => x.datasourceConfig}\n data-test-id=\"entity-list\"\n hide-edit=${(x) => x.hideEdit}\n hide-delete=${(x) => x.hideDelete}\n >\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 readonly=${(x) => x.readonly}\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 async-add=${(x) => x.asyncAdd}\n async-remove=${(x) => x.asyncRemove}\n async-update=${(x) => x.asyncUpdate}\n enable-cell-flashing=${(x) => x.enableCellFlashing}\n enable-row-flashing=${(x) => x.enableRowFlashing}\n persist-column-state-key=${(x) => x.persistColumnStateKey}\n size-columns-to-fit=${(x) => x.sizeColumnsToFit}\n enable-filter-bar=${(x) => x.enableFilterBar}\n resourceName=${(x) => x.resourceName}\n :deleteEvent=${(x) => x.deleteEvent}\n :updateEvent=${(x) => x.updateEvent}\n :gridOptions=${(x) => x.gridOptions}\n :columns=${(x) => x.columns}\n :datasourceConfig=${(x) => x.datasourceConfig}\n data-test-id=\"entity-list\"\n hide-edit=${(x) => x.hideEdit}\n hide-delete=${(x) => x.hideDelete}\n >\n <slot name=\"header\" slot=\"header\">${defaultHeader}</slot>\n </entity-list>\n <zero-modal\n ${ref('editEntityModal')}\n position=${(x) => x.modalPosition}\n :onCloseCallback=${(x) => x.closeModal.bind(x)}\n data-test-id=\"edit-entity-modal\"\n >\n <div slot=\"top\" data-test-id=\"dialog-title\">${(x) => x.editDialogTitle}</div>\n\n <slot name=\"edit\">\n ${when(\n (x) => x.editModalVisible,\n html<EntityManagement>`\n <foundation-form\n part=\"form\"\n renderers=${(x) => x.formRenderers}\n resourceName=${(x) => x.formResourceName}\n :data=${(x) => x.editedEntity}\n :uischema=${(x) => x.formUiSchema}\n readonly=${(x) => x.readonly}\n @submit-success=${(x, c) => x.submitEntityChanges(c.event as CustomEvent)}\n @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
|
],
|
|
@@ -367,6 +367,16 @@
|
|
|
367
367
|
"text": "any"
|
|
368
368
|
}
|
|
369
369
|
},
|
|
370
|
+
{
|
|
371
|
+
"kind": "field",
|
|
372
|
+
"name": "formRenderers",
|
|
373
|
+
"type": {
|
|
374
|
+
"text": "RendererEntry[]"
|
|
375
|
+
},
|
|
376
|
+
"default": "renderers",
|
|
377
|
+
"description": "Array with renderers used by foundation-forms",
|
|
378
|
+
"privacy": "public"
|
|
379
|
+
},
|
|
370
380
|
{
|
|
371
381
|
"kind": "field",
|
|
372
382
|
"name": "selectedEntity",
|
|
@@ -1690,6 +1700,20 @@
|
|
|
1690
1700
|
"module": "src/entities/entities.ts"
|
|
1691
1701
|
}
|
|
1692
1702
|
},
|
|
1703
|
+
{
|
|
1704
|
+
"kind": "field",
|
|
1705
|
+
"name": "formRenderers",
|
|
1706
|
+
"type": {
|
|
1707
|
+
"text": "RendererEntry[]"
|
|
1708
|
+
},
|
|
1709
|
+
"default": "renderers",
|
|
1710
|
+
"description": "Array with renderers used by foundation-forms",
|
|
1711
|
+
"privacy": "public",
|
|
1712
|
+
"inheritedFrom": {
|
|
1713
|
+
"name": "EntityManagement",
|
|
1714
|
+
"module": "src/entities/entities.ts"
|
|
1715
|
+
}
|
|
1716
|
+
},
|
|
1693
1717
|
{
|
|
1694
1718
|
"kind": "field",
|
|
1695
1719
|
"name": "selectedEntity",
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ColDef, GridOptions } from '@ag-grid-community/core';
|
|
2
2
|
import { Connect, DatasourceOptions, MessageError } from '@genesislcap/foundation-comms';
|
|
3
|
+
import { RendererEntry } from '@genesislcap/foundation-forms';
|
|
3
4
|
import { FASTElement } from '@microsoft/fast-element';
|
|
4
5
|
/**
|
|
5
6
|
* The attribute which is set to configure the resource that the entity manager is working with
|
|
@@ -35,7 +36,10 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
35
36
|
"__#1@#_blockLifecycleDueToTokenChange"(lifecycleType: "connect" | "disconnect" | "reconnect"): boolean;
|
|
36
37
|
"__#1@#_tryFindContainingLayout"(e: Element): import("@genesislcap/foundation-utils").FoundationLayoutContainer | import("@genesislcap/foundation-utils").LayoutCacheContainer | import("@genesislcap/foundation-utils").DOMContainer;
|
|
37
38
|
connectedCallback(): void;
|
|
38
|
-
readonly $fastController: import("@microsoft/fast-element").Controller;
|
|
39
|
+
readonly $fastController: import("@microsoft/fast-element").Controller; /**
|
|
40
|
+
* If true, will enable row flashing for all rows for `add` async transactions
|
|
41
|
+
* @public
|
|
42
|
+
*/
|
|
39
43
|
$emit(type: string, detail?: any, options?: Omit<CustomEventInit<any>, "detail">): boolean | void;
|
|
40
44
|
disconnectedCallback(): void;
|
|
41
45
|
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
@@ -59,14 +63,8 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
59
63
|
translate: boolean;
|
|
60
64
|
attachInternals(): ElementInternals;
|
|
61
65
|
click(): void;
|
|
62
|
-
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
63
|
-
|
|
64
|
-
* @public
|
|
65
|
-
*/
|
|
66
|
-
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; /**
|
|
67
|
-
* Array which holds the column definitions.
|
|
68
|
-
* @public
|
|
69
|
-
*/
|
|
66
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
67
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
70
68
|
removeEventListener<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions): void;
|
|
71
69
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
72
70
|
readonly attributes: NamedNodeMap;
|
|
@@ -77,9 +75,20 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
77
75
|
readonly clientTop: number;
|
|
78
76
|
readonly clientWidth: number;
|
|
79
77
|
id: string;
|
|
78
|
+
/**
|
|
79
|
+
* Array with renderers used by foundation-forms
|
|
80
|
+
* @public
|
|
81
|
+
*/
|
|
80
82
|
readonly localName: string;
|
|
81
83
|
readonly namespaceURI: string;
|
|
82
|
-
onfullscreenchange: (this: Element, ev: Event) => any;
|
|
84
|
+
onfullscreenchange: (this: Element, ev: Event) => any; /**
|
|
85
|
+
* Reference to the currently selected entity from the grid.
|
|
86
|
+
*
|
|
87
|
+
* @remarks
|
|
88
|
+
*
|
|
89
|
+
* When the user attempts to initiate functionality such as deleting or editing an entity, the entity which will be deleted/edited is the one which is referenced by this variable
|
|
90
|
+
* @public
|
|
91
|
+
*/
|
|
83
92
|
onfullscreenerror: (this: Element, ev: Event) => any;
|
|
84
93
|
outerHTML: string;
|
|
85
94
|
readonly ownerDocument: Document;
|
|
@@ -90,7 +99,10 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
90
99
|
scrollTop: number;
|
|
91
100
|
readonly scrollWidth: number;
|
|
92
101
|
readonly shadowRoot: ShadowRoot;
|
|
93
|
-
slot: string;
|
|
102
|
+
slot: string; /**
|
|
103
|
+
* Disables the form while enabled to stop the user dispatching a large number of duplicate events
|
|
104
|
+
* @public
|
|
105
|
+
*/
|
|
94
106
|
readonly tagName: string;
|
|
95
107
|
attachShadow(init: ShadowRootInit): ShadowRoot;
|
|
96
108
|
closest<K_2 extends keyof HTMLElementTagNameMap>(selector: K_2): HTMLElementTagNameMap[K_2];
|
|
@@ -158,6 +170,12 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
158
170
|
hasChildNodes(): boolean;
|
|
159
171
|
insertBefore<T_2 extends Node>(node: T_2, child: Node): T_2;
|
|
160
172
|
isDefaultNamespace(namespace: string): boolean;
|
|
173
|
+
/**
|
|
174
|
+
* Opens the model to edit an entity. Added as an event listener on the class when receiving the `edit-entity` event.
|
|
175
|
+
*
|
|
176
|
+
* @param e - CustomEvent where `e.detail` is the entity to edit.
|
|
177
|
+
* @internal
|
|
178
|
+
*/
|
|
161
179
|
isEqualNode(otherNode: Node): boolean;
|
|
162
180
|
isSameNode(otherNode: Node): boolean;
|
|
163
181
|
lookupNamespaceURI(prefix: string): string;
|
|
@@ -197,19 +215,19 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
197
215
|
ariaExpanded: string;
|
|
198
216
|
ariaHasPopup: string;
|
|
199
217
|
ariaHidden: string;
|
|
200
|
-
ariaInvalid: string;
|
|
201
|
-
* Handler for deleting the entity. Added as an event listener on the class when receiving the `delete-entity` event.
|
|
202
|
-
*
|
|
203
|
-
* @param e - CustomEvent where `e.detail` contains data to update the selectedEntity reference with the entity to delete.
|
|
204
|
-
* @internal
|
|
205
|
-
*/
|
|
218
|
+
ariaInvalid: string;
|
|
206
219
|
ariaKeyShortcuts: string;
|
|
207
220
|
ariaLabel: string;
|
|
208
221
|
ariaLevel: string;
|
|
209
222
|
ariaLive: string;
|
|
210
223
|
ariaModal: string;
|
|
211
224
|
ariaMultiLine: string;
|
|
212
|
-
ariaMultiSelectable: string;
|
|
225
|
+
ariaMultiSelectable: string; /**
|
|
226
|
+
* Handler for deleting the entity. Added as an event listener on the class when receiving the `delete-entity` event.
|
|
227
|
+
*
|
|
228
|
+
* @param e - CustomEvent where `e.detail` contains data to update the selectedEntity reference with the entity to delete.
|
|
229
|
+
* @internal
|
|
230
|
+
*/
|
|
213
231
|
ariaOrientation: string;
|
|
214
232
|
ariaPlaceholder: string;
|
|
215
233
|
ariaPosInSet: string;
|
|
@@ -254,7 +272,9 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
254
272
|
readonly assignedSlot: HTMLSlotElement;
|
|
255
273
|
oncopy: (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any;
|
|
256
274
|
oncut: (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any;
|
|
257
|
-
onpaste: (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any;
|
|
275
|
+
onpaste: (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any; /**
|
|
276
|
+
* @internal
|
|
277
|
+
*/
|
|
258
278
|
readonly style: CSSStyleDeclaration;
|
|
259
279
|
contentEditable: string;
|
|
260
280
|
enterKeyHint: string;
|
|
@@ -506,6 +526,11 @@ export declare class EntityManagement extends EntityManagement_base {
|
|
|
506
526
|
* @internal
|
|
507
527
|
*/
|
|
508
528
|
formResourceName: string;
|
|
529
|
+
/**
|
|
530
|
+
* Array with renderers used by foundation-forms
|
|
531
|
+
* @public
|
|
532
|
+
*/
|
|
533
|
+
formRenderers: RendererEntry[];
|
|
509
534
|
/**
|
|
510
535
|
* Reference to the currently selected entity from the grid.
|
|
511
536
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entities.d.ts","sourceRoot":"","sources":["../../../src/entities/entities.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;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CAAC;IAC5B,eAAe,EAAE,OAAO,CAAC;IACjC,QAAQ,EAAE,OAAO,CAAS;IACxB,UAAU,EAAE,OAAO,CAAS;IAEjF;;;OAGG;IACoC,aAAa,EAAE,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAW;IAE5F;;;OAGG;IACG,iBAAiB;IAevB;;;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;IAItC,yBAAyB,CAAC,CAAC,EAAE,WAAW;IAe/C;;;;;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,
|
|
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,uEAqDpB,CAAC"}
|
|
@@ -2,6 +2,7 @@ import { __awaiter, __decorate, __rest } from "tslib";
|
|
|
2
2
|
import { Connect } from '@genesislcap/foundation-comms';
|
|
3
3
|
import { ErrorBoundaryEvent, getErrorBuilder, getErrorDialogBuilder, getNotificationBuilder, getSnackbarBuilder, showNotification, } from '@genesislcap/foundation-errors';
|
|
4
4
|
import { showDialog } from '@genesislcap/foundation-errors';
|
|
5
|
+
import { renderers } from '@genesislcap/foundation-forms';
|
|
5
6
|
import { LifecycleMixin } from '@genesislcap/foundation-utils';
|
|
6
7
|
import { attr, customElement, FASTElement, observable } from '@microsoft/fast-element';
|
|
7
8
|
import { getErrorFormat, logger } from '../utils';
|
|
@@ -75,6 +76,11 @@ let EntityManagement = class EntityManagement extends LifecycleMixin(FASTElement
|
|
|
75
76
|
* @public
|
|
76
77
|
*/
|
|
77
78
|
this.enableRowFlashing = false;
|
|
79
|
+
/**
|
|
80
|
+
* Array with renderers used by foundation-forms
|
|
81
|
+
* @public
|
|
82
|
+
*/
|
|
83
|
+
this.formRenderers = renderers;
|
|
78
84
|
this.editModalVisible = false;
|
|
79
85
|
this.hideEdit = false;
|
|
80
86
|
this.hideDelete = false;
|
|
@@ -366,6 +372,9 @@ __decorate([
|
|
|
366
372
|
__decorate([
|
|
367
373
|
observable
|
|
368
374
|
], EntityManagement.prototype, "formResourceName", void 0);
|
|
375
|
+
__decorate([
|
|
376
|
+
observable
|
|
377
|
+
], EntityManagement.prototype, "formRenderers", void 0);
|
|
369
378
|
__decorate([
|
|
370
379
|
observable
|
|
371
380
|
], EntityManagement.prototype, "selectedEntity", void 0);
|
|
@@ -54,6 +54,7 @@ export const template = html `
|
|
|
54
54
|
${when((x) => x.editModalVisible, html `
|
|
55
55
|
<foundation-form
|
|
56
56
|
part="form"
|
|
57
|
+
renderers=${(x) => x.formRenderers}
|
|
57
58
|
resourceName=${(x) => x.formResourceName}
|
|
58
59
|
:data=${(x) => x.editedEntity}
|
|
59
60
|
:uischema=${(x) => x.formUiSchema}
|
|
@@ -995,6 +995,41 @@
|
|
|
995
995
|
"isProtected": false,
|
|
996
996
|
"isAbstract": false
|
|
997
997
|
},
|
|
998
|
+
{
|
|
999
|
+
"kind": "Property",
|
|
1000
|
+
"canonicalReference": "@genesislcap/foundation-entity-management!EntityManagement#formRenderers:member",
|
|
1001
|
+
"docComment": "/**\n * Array with renderers used by foundation-forms\n *\n * @public\n */\n",
|
|
1002
|
+
"excerptTokens": [
|
|
1003
|
+
{
|
|
1004
|
+
"kind": "Content",
|
|
1005
|
+
"text": "formRenderers: "
|
|
1006
|
+
},
|
|
1007
|
+
{
|
|
1008
|
+
"kind": "Reference",
|
|
1009
|
+
"text": "RendererEntry",
|
|
1010
|
+
"canonicalReference": "@genesislcap/foundation-forms!RendererEntry:type"
|
|
1011
|
+
},
|
|
1012
|
+
{
|
|
1013
|
+
"kind": "Content",
|
|
1014
|
+
"text": "[]"
|
|
1015
|
+
},
|
|
1016
|
+
{
|
|
1017
|
+
"kind": "Content",
|
|
1018
|
+
"text": ";"
|
|
1019
|
+
}
|
|
1020
|
+
],
|
|
1021
|
+
"isReadonly": false,
|
|
1022
|
+
"isOptional": false,
|
|
1023
|
+
"releaseTag": "Public",
|
|
1024
|
+
"name": "formRenderers",
|
|
1025
|
+
"propertyTypeTokenRange": {
|
|
1026
|
+
"startIndex": 1,
|
|
1027
|
+
"endIndex": 3
|
|
1028
|
+
},
|
|
1029
|
+
"isStatic": false,
|
|
1030
|
+
"isProtected": false,
|
|
1031
|
+
"isAbstract": false
|
|
1032
|
+
},
|
|
998
1033
|
{
|
|
999
1034
|
"kind": "Property",
|
|
1000
1035
|
"canonicalReference": "@genesislcap/foundation-entity-management!EntityManagement#formUiSchema:member",
|
|
@@ -15,6 +15,7 @@ import { LayoutCacheContainer } from '@genesislcap/foundation-utils';
|
|
|
15
15
|
import { Logger } from '@genesislcap/foundation-logger';
|
|
16
16
|
import { MessageError } from '@genesislcap/foundation-comms';
|
|
17
17
|
import { PartialFASTElementDefinition } from '@microsoft/fast-element';
|
|
18
|
+
import { RendererEntry } from '@genesislcap/foundation-forms';
|
|
18
19
|
import { RouterConfiguration } from '@microsoft/fast-router';
|
|
19
20
|
import { Session } from '@genesislcap/foundation-comms';
|
|
20
21
|
import { ViewTemplate } from '@microsoft/fast-element';
|
|
@@ -193,6 +194,11 @@ export declare class EntityManagement extends EntityManagement_base {
|
|
|
193
194
|
* @internal
|
|
194
195
|
*/
|
|
195
196
|
formResourceName: string;
|
|
197
|
+
/**
|
|
198
|
+
* Array with renderers used by foundation-forms
|
|
199
|
+
* @public
|
|
200
|
+
*/
|
|
201
|
+
formRenderers: RendererEntry[];
|
|
196
202
|
/**
|
|
197
203
|
* Reference to the currently selected entity from the grid.
|
|
198
204
|
*
|
|
@@ -301,7 +307,10 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
301
307
|
"__#1@#_blockLifecycleDueToTokenChange"(lifecycleType: "connect" | "disconnect" | "reconnect"): boolean;
|
|
302
308
|
"__#1@#_tryFindContainingLayout"(e: Element): FoundationLayoutContainer | LayoutCacheContainer | DOMContainer;
|
|
303
309
|
connectedCallback(): void;
|
|
304
|
-
readonly $fastController: Controller;
|
|
310
|
+
readonly $fastController: Controller; /**
|
|
311
|
+
* If true, will enable row flashing for all rows for `add` async transactions
|
|
312
|
+
* @public
|
|
313
|
+
*/
|
|
305
314
|
$emit(type: string, detail?: any, options?: Omit<CustomEventInit<any>, "detail">): boolean | void;
|
|
306
315
|
disconnectedCallback(): void;
|
|
307
316
|
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
@@ -325,14 +334,8 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
325
334
|
translate: boolean;
|
|
326
335
|
attachInternals(): ElementInternals;
|
|
327
336
|
click(): void;
|
|
328
|
-
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
329
|
-
|
|
330
|
-
* @public
|
|
331
|
-
*/
|
|
332
|
-
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; /**
|
|
333
|
-
* Array which holds the column definitions.
|
|
334
|
-
* @public
|
|
335
|
-
*/
|
|
337
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
338
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
336
339
|
removeEventListener<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions): void;
|
|
337
340
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
338
341
|
readonly attributes: NamedNodeMap;
|
|
@@ -343,9 +346,20 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
343
346
|
readonly clientTop: number;
|
|
344
347
|
readonly clientWidth: number;
|
|
345
348
|
id: string;
|
|
349
|
+
/**
|
|
350
|
+
* Array with renderers used by foundation-forms
|
|
351
|
+
* @public
|
|
352
|
+
*/
|
|
346
353
|
readonly localName: string;
|
|
347
354
|
readonly namespaceURI: string;
|
|
348
|
-
onfullscreenchange: (this: Element, ev: Event) => any;
|
|
355
|
+
onfullscreenchange: (this: Element, ev: Event) => any; /**
|
|
356
|
+
* Reference to the currently selected entity from the grid.
|
|
357
|
+
*
|
|
358
|
+
* @remarks
|
|
359
|
+
*
|
|
360
|
+
* When the user attempts to initiate functionality such as deleting or editing an entity, the entity which will be deleted/edited is the one which is referenced by this variable
|
|
361
|
+
* @public
|
|
362
|
+
*/
|
|
349
363
|
onfullscreenerror: (this: Element, ev: Event) => any;
|
|
350
364
|
outerHTML: string;
|
|
351
365
|
readonly ownerDocument: Document;
|
|
@@ -356,7 +370,10 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
356
370
|
scrollTop: number;
|
|
357
371
|
readonly scrollWidth: number;
|
|
358
372
|
readonly shadowRoot: ShadowRoot;
|
|
359
|
-
slot: string;
|
|
373
|
+
slot: string; /**
|
|
374
|
+
* Disables the form while enabled to stop the user dispatching a large number of duplicate events
|
|
375
|
+
* @public
|
|
376
|
+
*/
|
|
360
377
|
readonly tagName: string;
|
|
361
378
|
attachShadow(init: ShadowRootInit): ShadowRoot;
|
|
362
379
|
closest<K_2 extends keyof HTMLElementTagNameMap>(selector: K_2): HTMLElementTagNameMap[K_2];
|
|
@@ -424,6 +441,12 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
424
441
|
hasChildNodes(): boolean;
|
|
425
442
|
insertBefore<T_2 extends Node>(node: T_2, child: Node): T_2;
|
|
426
443
|
isDefaultNamespace(namespace: string): boolean;
|
|
444
|
+
/**
|
|
445
|
+
* Opens the model to edit an entity. Added as an event listener on the class when receiving the `edit-entity` event.
|
|
446
|
+
*
|
|
447
|
+
* @param e - CustomEvent where `e.detail` is the entity to edit.
|
|
448
|
+
* @internal
|
|
449
|
+
*/
|
|
427
450
|
isEqualNode(otherNode: Node): boolean;
|
|
428
451
|
isSameNode(otherNode: Node): boolean;
|
|
429
452
|
lookupNamespaceURI(prefix: string): string;
|
|
@@ -463,19 +486,19 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
463
486
|
ariaExpanded: string;
|
|
464
487
|
ariaHasPopup: string;
|
|
465
488
|
ariaHidden: string;
|
|
466
|
-
ariaInvalid: string;
|
|
467
|
-
* Handler for deleting the entity. Added as an event listener on the class when receiving the `delete-entity` event.
|
|
468
|
-
*
|
|
469
|
-
* @param e - CustomEvent where `e.detail` contains data to update the selectedEntity reference with the entity to delete.
|
|
470
|
-
* @internal
|
|
471
|
-
*/
|
|
489
|
+
ariaInvalid: string;
|
|
472
490
|
ariaKeyShortcuts: string;
|
|
473
491
|
ariaLabel: string;
|
|
474
492
|
ariaLevel: string;
|
|
475
493
|
ariaLive: string;
|
|
476
494
|
ariaModal: string;
|
|
477
495
|
ariaMultiLine: string;
|
|
478
|
-
ariaMultiSelectable: string;
|
|
496
|
+
ariaMultiSelectable: string; /**
|
|
497
|
+
* Handler for deleting the entity. Added as an event listener on the class when receiving the `delete-entity` event.
|
|
498
|
+
*
|
|
499
|
+
* @param e - CustomEvent where `e.detail` contains data to update the selectedEntity reference with the entity to delete.
|
|
500
|
+
* @internal
|
|
501
|
+
*/
|
|
479
502
|
ariaOrientation: string;
|
|
480
503
|
ariaPlaceholder: string;
|
|
481
504
|
ariaPosInSet: string;
|
|
@@ -520,7 +543,9 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
520
543
|
readonly assignedSlot: HTMLSlotElement;
|
|
521
544
|
oncopy: (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any;
|
|
522
545
|
oncut: (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any;
|
|
523
|
-
onpaste: (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any;
|
|
546
|
+
onpaste: (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any; /**
|
|
547
|
+
* @internal
|
|
548
|
+
*/
|
|
524
549
|
readonly style: CSSStyleDeclaration;
|
|
525
550
|
contentEditable: string;
|
|
526
551
|
enterKeyHint: string;
|
|
@@ -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) > [formRenderers](./foundation-entity-management.entitymanagement.formrenderers.md)
|
|
4
|
+
|
|
5
|
+
## EntityManagement.formRenderers property
|
|
6
|
+
|
|
7
|
+
Array with renderers used by foundation-forms
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
formRenderers: RendererEntry[];
|
|
13
|
+
```
|
|
@@ -54,6 +54,7 @@ Where:<br /> - the title of the grid is `Counterparty Management`<br /> - the na
|
|
|
54
54
|
| [enableFilterBar](./foundation-entity-management.entitymanagement.enablefilterbar.md) | | boolean | |
|
|
55
55
|
| [enableRowFlashing](./foundation-entity-management.entitymanagement.enablerowflashing.md) | | boolean | If true, will enable row flashing for all rows for <code>add</code> async transactions |
|
|
56
56
|
| [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 |
|
|
57
|
+
| [formRenderers](./foundation-entity-management.entitymanagement.formrenderers.md) | | RendererEntry\[\] | Array with renderers used by foundation-forms |
|
|
57
58
|
| [formUiSchema](./foundation-entity-management.entitymanagement.formuischema.md) | | any | |
|
|
58
59
|
| [gridOptions](./foundation-entity-management.entitymanagement.gridoptions.md) | | GridOptions | GridOptions to be passed down from application |
|
|
59
60
|
| [hideDelete](./foundation-entity-management.entitymanagement.hidedelete.md) | | boolean | |
|
package/docs/api-report.md
CHANGED
|
@@ -21,6 +21,7 @@ import { LayoutCacheContainer } from '@genesislcap/foundation-utils';
|
|
|
21
21
|
import { Logger } from '@genesislcap/foundation-logger';
|
|
22
22
|
import { MessageError } from '@genesislcap/foundation-comms';
|
|
23
23
|
import { PartialFASTElementDefinition } from '@microsoft/fast-element';
|
|
24
|
+
import { RendererEntry } from '@genesislcap/foundation-forms';
|
|
24
25
|
import { RouterConfiguration } from '@microsoft/fast-router';
|
|
25
26
|
import { Session } from '@genesislcap/foundation-comms';
|
|
26
27
|
import { ViewTemplate } from '@microsoft/fast-element';
|
|
@@ -82,6 +83,7 @@ export class EntityManagement extends EntityManagement_base {
|
|
|
82
83
|
errorNotify(request: any): void;
|
|
83
84
|
// @internal (undocumented)
|
|
84
85
|
errorSnack(ERROR: MessageError[]): void;
|
|
86
|
+
formRenderers: RendererEntry[];
|
|
85
87
|
// @internal
|
|
86
88
|
formResourceName: string;
|
|
87
89
|
// (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.91.
|
|
4
|
+
"version": "14.91.4-alpha-3764fc6.0",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -44,22 +44,22 @@
|
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@genesislcap/foundation-login": "^14.40.0",
|
|
47
|
-
"@genesislcap/foundation-testing": "14.91.
|
|
48
|
-
"@genesislcap/genx": "14.91.
|
|
47
|
+
"@genesislcap/foundation-testing": "14.91.4-alpha-3764fc6.0",
|
|
48
|
+
"@genesislcap/genx": "14.91.4-alpha-3764fc6.0",
|
|
49
49
|
"rimraf": "^3.0.2"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
52
|
"@ag-grid-community/core": "29.2.0",
|
|
53
|
-
"@genesislcap/foundation-comms": "14.91.
|
|
54
|
-
"@genesislcap/foundation-errors": "14.91.
|
|
55
|
-
"@genesislcap/foundation-forms": "14.91.
|
|
56
|
-
"@genesislcap/foundation-logger": "14.91.
|
|
57
|
-
"@genesislcap/foundation-login": "14.91.
|
|
58
|
-
"@genesislcap/foundation-ui": "14.91.
|
|
59
|
-
"@genesislcap/foundation-utils": "14.91.
|
|
60
|
-
"@genesislcap/foundation-zero": "14.91.
|
|
61
|
-
"@genesislcap/foundation-zero-grid-pro": "14.91.
|
|
62
|
-
"@genesislcap/grid-pro": "14.91.
|
|
53
|
+
"@genesislcap/foundation-comms": "14.91.4-alpha-3764fc6.0",
|
|
54
|
+
"@genesislcap/foundation-errors": "14.91.4-alpha-3764fc6.0",
|
|
55
|
+
"@genesislcap/foundation-forms": "14.91.4-alpha-3764fc6.0",
|
|
56
|
+
"@genesislcap/foundation-logger": "14.91.4-alpha-3764fc6.0",
|
|
57
|
+
"@genesislcap/foundation-login": "14.91.4-alpha-3764fc6.0",
|
|
58
|
+
"@genesislcap/foundation-ui": "14.91.4-alpha-3764fc6.0",
|
|
59
|
+
"@genesislcap/foundation-utils": "14.91.4-alpha-3764fc6.0",
|
|
60
|
+
"@genesislcap/foundation-zero": "14.91.4-alpha-3764fc6.0",
|
|
61
|
+
"@genesislcap/foundation-zero-grid-pro": "14.91.4-alpha-3764fc6.0",
|
|
62
|
+
"@genesislcap/grid-pro": "14.91.4-alpha-3764fc6.0",
|
|
63
63
|
"@microsoft/fast-components": "^2.21.3",
|
|
64
64
|
"@microsoft/fast-element": "^1.7.0",
|
|
65
65
|
"@microsoft/fast-foundation": "^2.33.2",
|
|
@@ -75,5 +75,5 @@
|
|
|
75
75
|
"access": "public"
|
|
76
76
|
},
|
|
77
77
|
"customElements": "dist/custom-elements.json",
|
|
78
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "2972668355841360753a27e44c3c74f6f5062970"
|
|
79
79
|
}
|