@genesislcap/foundation-entity-management 14.92.0 → 14.92.1-pa-913.2
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 +1 -1
- package/dist/dts/entities/entities.d.ts +7 -38
- package/dist/dts/entities/entities.d.ts.map +1 -1
- package/dist/dts/entities/entities.template.d.ts.map +1 -1
- package/dist/dts/users/users.d.ts +8 -5
- package/dist/dts/users/users.d.ts.map +1 -1
- package/dist/esm/entities/entities.js +27 -29
- package/dist/esm/entities/entities.template.js +0 -1
- package/dist/esm/users/users.js +5 -5
- package/dist/foundation-entity-management.d.ts +14 -43
- package/docs/api-report.md +0 -3
- package/package.json +15 -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 :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
|
|
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 ></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
|
],
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ColDef, GridOptions } from '@ag-grid-community/core';
|
|
2
|
-
import { Connect, DatasourceOptions
|
|
2
|
+
import { Connect, DatasourceOptions } from '@genesislcap/foundation-comms';
|
|
3
3
|
import { RendererEntry } from '@genesislcap/foundation-forms';
|
|
4
4
|
import { FASTElement } from '@microsoft/fast-element';
|
|
5
5
|
/**
|
|
@@ -35,11 +35,11 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
35
35
|
readonly shouldRunConnect: boolean;
|
|
36
36
|
"__#1@#_blockLifecycleDueToTokenChange"(lifecycleType: "connect" | "disconnect" | "reconnect"): boolean;
|
|
37
37
|
"__#1@#_tryFindContainingLayout"(e: Element): import("@genesislcap/foundation-utils").FoundationLayoutContainer | import("@genesislcap/foundation-utils").LayoutCacheContainer | import("@genesislcap/foundation-utils").DOMContainer;
|
|
38
|
-
connectedCallback(): void;
|
|
39
|
-
readonly $fastController: import("@microsoft/fast-element").Controller; /**
|
|
38
|
+
connectedCallback(): void; /**
|
|
40
39
|
* If true, will enable row flashing for all rows for `add` async transactions
|
|
41
40
|
* @public
|
|
42
41
|
*/
|
|
42
|
+
readonly $fastController: import("@microsoft/fast-element").Controller;
|
|
43
43
|
$emit(type: string, detail?: any, options?: Omit<CustomEventInit<any>, "detail">): boolean | void;
|
|
44
44
|
disconnectedCallback(): void;
|
|
45
45
|
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
@@ -75,20 +75,9 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
75
75
|
readonly clientTop: number;
|
|
76
76
|
readonly clientWidth: number;
|
|
77
77
|
id: string;
|
|
78
|
-
/**
|
|
79
|
-
* Array with renderers used by foundation-forms
|
|
80
|
-
* @public
|
|
81
|
-
*/
|
|
82
78
|
readonly localName: string;
|
|
83
79
|
readonly namespaceURI: string;
|
|
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
|
-
*/
|
|
80
|
+
onfullscreenchange: (this: Element, ev: Event) => any;
|
|
92
81
|
onfullscreenerror: (this: Element, ev: Event) => any;
|
|
93
82
|
outerHTML: string;
|
|
94
83
|
readonly ownerDocument: Document;
|
|
@@ -99,10 +88,7 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
99
88
|
scrollTop: number;
|
|
100
89
|
readonly scrollWidth: number;
|
|
101
90
|
readonly shadowRoot: ShadowRoot;
|
|
102
|
-
slot: string;
|
|
103
|
-
* Disables the form while enabled to stop the user dispatching a large number of duplicate events
|
|
104
|
-
* @public
|
|
105
|
-
*/
|
|
91
|
+
slot: string;
|
|
106
92
|
readonly tagName: string;
|
|
107
93
|
attachShadow(init: ShadowRootInit): ShadowRoot;
|
|
108
94
|
closest<K_2 extends keyof HTMLElementTagNameMap>(selector: K_2): HTMLElementTagNameMap[K_2];
|
|
@@ -170,12 +156,6 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
170
156
|
hasChildNodes(): boolean;
|
|
171
157
|
insertBefore<T_2 extends Node>(node: T_2, child: Node): T_2;
|
|
172
158
|
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
|
-
*/
|
|
179
159
|
isEqualNode(otherNode: Node): boolean;
|
|
180
160
|
isSameNode(otherNode: Node): boolean;
|
|
181
161
|
lookupNamespaceURI(prefix: string): string;
|
|
@@ -222,12 +202,7 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
222
202
|
ariaLive: string;
|
|
223
203
|
ariaModal: string;
|
|
224
204
|
ariaMultiLine: 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
|
-
*/
|
|
205
|
+
ariaMultiSelectable: string;
|
|
231
206
|
ariaOrientation: string;
|
|
232
207
|
ariaPlaceholder: string;
|
|
233
208
|
ariaPosInSet: string;
|
|
@@ -272,9 +247,7 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
272
247
|
readonly assignedSlot: HTMLSlotElement;
|
|
273
248
|
oncopy: (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any;
|
|
274
249
|
oncut: (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any;
|
|
275
|
-
onpaste: (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any;
|
|
276
|
-
* @internal
|
|
277
|
-
*/
|
|
250
|
+
onpaste: (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any;
|
|
278
251
|
readonly style: CSSStyleDeclaration;
|
|
279
252
|
contentEditable: string;
|
|
280
253
|
enterKeyHint: string;
|
|
@@ -620,10 +593,6 @@ export declare class EntityManagement extends EntityManagement_base {
|
|
|
620
593
|
* @internal
|
|
621
594
|
*/
|
|
622
595
|
errorNotify(request: any): void;
|
|
623
|
-
/**
|
|
624
|
-
* @internal
|
|
625
|
-
*/
|
|
626
|
-
errorSnack(ERROR: MessageError[]): void;
|
|
627
596
|
}
|
|
628
597
|
export {};
|
|
629
598
|
//# sourceMappingURL=entities.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entities.d.ts","sourceRoot":"","sources":["../../../src/entities/entities.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,
|
|
1
|
+
{"version":3,"file":"entities.d.ts","sourceRoot":"","sources":["../../../src/entities/entities.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAS3E,OAAO,EAAa,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAEzE,OAAO,EAAuB,WAAW,EAAc,MAAM,yBAAyB,CAAC;AAKvF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,MAAM,uBAAuB,GAAG,IAAI,CAAC,iBAAiB,EAAE,cAAc,GAAG,SAAS,CAAC,CAAC;;;;;;;;;;;;;+BAoHxF;;;OAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AArHL;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,qBAKa,gBAAiB,SAAQ,qBAA2B;IAC/D;;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B,EAAE,OAAO,CAAS;IAC9C,uBAAuB;IAShB,eAAe,EAAE,GAAG,CAAC;IAEiC,gBAAgB,EAAE,OAAO,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;IA6B/C;;;;;OAKG;IACG,YAAY,CAAC,CAAC,EAAE,WAAW;IAK3B,aAAa;IAoBnB,OAAO,CAAC,sBAAsB;IAgB9B;;;OAGG;IACI,WAAW,CAAC,OAAO,KAAA;CAsB3B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entities.template.d.ts","sourceRoot":"","sources":["../../../src/entities/entities.template.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"entities.template.d.ts","sourceRoot":"","sources":["../../../src/entities/entities.template.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAmB9C;;;GAGG;AACH,eAAO,MAAM,QAAQ,uEAmDpB,CAAC"}
|
|
@@ -75,7 +75,10 @@ declare const Users_base: (new (...args: any[]) => {
|
|
|
75
75
|
readonly clientLeft: number;
|
|
76
76
|
readonly clientTop: number;
|
|
77
77
|
readonly clientWidth: number;
|
|
78
|
-
id: string;
|
|
78
|
+
id: string; /**
|
|
79
|
+
* entityID used to control the definition of an optional entity column which is created with the {@link Users.entityColumn} function.
|
|
80
|
+
* @internal
|
|
81
|
+
*/
|
|
79
82
|
readonly localName: string;
|
|
80
83
|
readonly namespaceURI: string;
|
|
81
84
|
onfullscreenchange: (this: Element, ev: Event) => any;
|
|
@@ -84,10 +87,7 @@ declare const Users_base: (new (...args: any[]) => {
|
|
|
84
87
|
readonly ownerDocument: Document;
|
|
85
88
|
readonly part: DOMTokenList;
|
|
86
89
|
readonly prefix: string;
|
|
87
|
-
readonly scrollHeight: number;
|
|
88
|
-
* entityID used to control the definition of an optional entity column which is created with the {@link Users.entityColumn} function.
|
|
89
|
-
* @internal
|
|
90
|
-
*/
|
|
90
|
+
readonly scrollHeight: number;
|
|
91
91
|
scrollLeft: number;
|
|
92
92
|
scrollTop: number;
|
|
93
93
|
readonly scrollWidth: number;
|
|
@@ -154,6 +154,9 @@ declare const Users_base: (new (...args: any[]) => {
|
|
|
154
154
|
readonly previousSibling: ChildNode;
|
|
155
155
|
textContent: string;
|
|
156
156
|
appendChild<T_1 extends Node>(node: T_1): T_1;
|
|
157
|
+
/**
|
|
158
|
+
* @internal
|
|
159
|
+
*/
|
|
157
160
|
compareDocumentPosition(other: Node): number;
|
|
158
161
|
contains(other: Node): boolean;
|
|
159
162
|
getRootNode(options?: GetRootNodeOptions): Node;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../../../src/users/users.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAC7E,OAAO,EAA4B,WAAW,EAAc,MAAM,yBAAyB,CAAC;AAC5F,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAWtD;;;;;;;GAOG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;IAoC7B,CAAC
|
|
1
|
+
{"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../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AO,CAAC;IACnC,OAAO,CAAC,aAAa,CAAS;IAE9B;;OAEG;IACS,WAAW,EAAE,MAAM,CAAC;IAEhC;;OAEG;IACS,WAAW,EAAE,MAAM,CAAC;IAEhC;;OAEG;IACS,WAAW,EAAE,MAAM,CAAC;IAEhC;;;OAGG;IACG,QAAQ,EAAE,MAAM,CAAqB;IAE3C;;;OAGG;IACG,cAAc,EAAE,MAAM,CAAU;IAEtC;;;OAGG;IACG,WAAW,EAAE,MAAM,CAAkB;IAE3C;;;OAGG;IACG,yBAAyB,EAAE,MAAM,CAAuB;IAE9D;;OAEG;;IAaG,iBAAiB;IAcd,SAAS,IAAI,IAAI;IAc1B;;;OAGG;IACH,sBAAsB,CAAC,MAAM,KAAA;;;;;;;;IAW7B;;;;;;;;OAQG;IACG,YAAY,CAAC,MAAM,KAAA;IAwCzB;;OAEG;IACG,YAAY,CAAC,IAAI,KAAA;;;;;;;;;;;;;;;CAwBxB"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { __awaiter, __decorate, __rest } from "tslib";
|
|
2
2
|
import { Connect } from '@genesislcap/foundation-comms';
|
|
3
|
-
import {
|
|
4
|
-
import { showDialog } from '@genesislcap/foundation-errors';
|
|
3
|
+
import { getToastBuilder, getSnackbarBuilder, getNotificationBuilder, showNotification, showDialog, getDialogBuilder, } from '@genesislcap/foundation-notifications';
|
|
5
4
|
import { renderers } from '@genesislcap/foundation-forms';
|
|
6
5
|
import { LifecycleMixin } from '@genesislcap/foundation-utils';
|
|
7
6
|
import { attr, customElement, FASTElement, observable } from '@microsoft/fast-element';
|
|
@@ -217,13 +216,25 @@ let EntityManagement = class EntityManagement extends LifecycleMixin(FASTElement
|
|
|
217
216
|
this.datasourceConfig = Object.assign(Object.assign({}, this.datasourceConfig), { criteria: e.detail });
|
|
218
217
|
}
|
|
219
218
|
submitFailureNotification(e) {
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
219
|
+
e.detail.errors.forEach((submitFailureError) => {
|
|
220
|
+
if (submitFailureError.CODE === 'OPTIMISTIC_CONCURRENCY_ERROR') {
|
|
221
|
+
showNotification(getNotificationBuilder()
|
|
222
|
+
.withTitle('Warning')
|
|
223
|
+
.withBody(`You’re editing an old revision. Please close the form and try editing again`)
|
|
224
|
+
.withSnackbar(getSnackbarBuilder().withType('error').build())
|
|
225
|
+
.build(), 'zero');
|
|
226
|
+
}
|
|
227
|
+
else {
|
|
228
|
+
showNotification(getNotificationBuilder()
|
|
229
|
+
.withTitle('Error submitting form')
|
|
230
|
+
.withBody(submitFailureError.map((x) => x.CODE + ': ' + x.TEXT).toString())
|
|
231
|
+
.withSnackbar(getSnackbarBuilder()
|
|
232
|
+
.withType('error')
|
|
233
|
+
.withConfirmingAction({ label: '', action: () => { } })
|
|
234
|
+
.build())
|
|
235
|
+
.build(), 'zero');
|
|
236
|
+
}
|
|
237
|
+
});
|
|
227
238
|
}
|
|
228
239
|
/**
|
|
229
240
|
* Handler for deleting the entity. Added as an event listener on the class when receiving the `delete-entity` event.
|
|
@@ -259,10 +270,10 @@ let EntityManagement = class EntityManagement extends LifecycleMixin(FASTElement
|
|
|
259
270
|
});
|
|
260
271
|
}
|
|
261
272
|
showDeleteConfirmation() {
|
|
262
|
-
showDialog(
|
|
273
|
+
showDialog(getNotificationBuilder()
|
|
263
274
|
.withTitle(`Confirm Delete`)
|
|
264
|
-
.
|
|
265
|
-
.withDialog(
|
|
275
|
+
.withBody('Do you really want to delete this entity?')
|
|
276
|
+
.withDialog(getDialogBuilder()
|
|
266
277
|
.withDismissingAction({ label: 'Dismiss', action: () => (this.selectedEntity = null) })
|
|
267
278
|
.withConfirmingAction({ label: 'Confirm', action: () => this.confirmDelete() })
|
|
268
279
|
.build())
|
|
@@ -277,31 +288,18 @@ let EntityManagement = class EntityManagement extends LifecycleMixin(FASTElement
|
|
|
277
288
|
if (request.ERROR) {
|
|
278
289
|
logger.error(request.ERROR);
|
|
279
290
|
request.ERROR.forEach((err) => {
|
|
280
|
-
|
|
291
|
+
showNotification(getNotificationBuilder()
|
|
281
292
|
.withTitle(err.CODE)
|
|
282
|
-
.
|
|
283
|
-
.
|
|
293
|
+
.withBody(getErrorFormat(err))
|
|
294
|
+
.withToast(getToastBuilder()
|
|
284
295
|
.withType('warning')
|
|
285
296
|
.withAutoClose(true)
|
|
286
297
|
.withCloseTimeout(notificationCloseTimeout)
|
|
287
298
|
.build())
|
|
288
|
-
.build());
|
|
299
|
+
.build(), 'zero');
|
|
289
300
|
});
|
|
290
301
|
}
|
|
291
302
|
}
|
|
292
|
-
/**
|
|
293
|
-
* @internal
|
|
294
|
-
*/
|
|
295
|
-
errorSnack(ERROR) {
|
|
296
|
-
this.$emit(ErrorBoundaryEvent.ERROR_BOUNDARY_EVENT, getErrorBuilder()
|
|
297
|
-
.withTitle('Error submitting form')
|
|
298
|
-
.withErrorDetails(ERROR.map((x) => x.CODE + ': ' + x.TEXT).toString())
|
|
299
|
-
.withSnackbar(getSnackbarBuilder()
|
|
300
|
-
.withType('error')
|
|
301
|
-
.withConfirmingAction({ label: '', action: () => { } })
|
|
302
|
-
.build())
|
|
303
|
-
.build());
|
|
304
|
-
}
|
|
305
303
|
};
|
|
306
304
|
__decorate([
|
|
307
305
|
Connect
|
|
@@ -60,7 +60,6 @@ export const template = html `
|
|
|
60
60
|
:uischema=${(x) => x.formUiSchema}
|
|
61
61
|
readonly=${(x) => x.readonly}
|
|
62
62
|
@submit-success=${(x, c) => x.submitEntityChanges(c.event)}
|
|
63
|
-
@submit-failure=${(x, c) => x.errorSnack(c.event.detail.errors)}
|
|
64
63
|
></foundation-form>
|
|
65
64
|
`)}
|
|
66
65
|
</slot>
|
package/dist/esm/users/users.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __awaiter, __decorate } from "tslib";
|
|
2
2
|
import { Auth, Connect } from '@genesislcap/foundation-comms';
|
|
3
|
-
import {
|
|
3
|
+
import { getNotificationBuilder, getToastBuilder, showNotification, } from '@genesislcap/foundation-notifications';
|
|
4
4
|
import { LifecycleMixin } from '@genesislcap/foundation-utils';
|
|
5
5
|
import { GridProRendererTypes } from '@genesislcap/foundation-zero-grid-pro';
|
|
6
6
|
import { attr, css, customElement, FASTElement, observable } from '@microsoft/fast-element';
|
|
@@ -217,15 +217,15 @@ let Users = class Users extends LifecycleMixin(FASTElement) {
|
|
|
217
217
|
logger.error(changeStatusRequest.ERROR);
|
|
218
218
|
const notificationCloseTimeout = 5000;
|
|
219
219
|
changeStatusRequest.ERROR.forEach((err) => {
|
|
220
|
-
|
|
220
|
+
showNotification(getNotificationBuilder()
|
|
221
221
|
.withTitle(err.CODE)
|
|
222
|
-
.
|
|
223
|
-
.
|
|
222
|
+
.withBody(getErrorFormat(err))
|
|
223
|
+
.withToast(getToastBuilder()
|
|
224
224
|
.withType('warning')
|
|
225
225
|
.withAutoClose(true)
|
|
226
226
|
.withCloseTimeout(notificationCloseTimeout)
|
|
227
227
|
.build())
|
|
228
|
-
.build());
|
|
228
|
+
.build(), 'zero');
|
|
229
229
|
});
|
|
230
230
|
// bring back original value
|
|
231
231
|
params.setValue(previousValue);
|
|
@@ -13,7 +13,6 @@ import { GridOptions } from '@ag-grid-community/core';
|
|
|
13
13
|
import { GridProRendererTypes } from '@genesislcap/foundation-zero-grid-pro';
|
|
14
14
|
import { LayoutCacheContainer } from '@genesislcap/foundation-utils';
|
|
15
15
|
import { Logger } from '@genesislcap/foundation-logger';
|
|
16
|
-
import { MessageError } from '@genesislcap/foundation-comms';
|
|
17
16
|
import { PartialFASTElementDefinition } from '@microsoft/fast-element';
|
|
18
17
|
import { RendererEntry } from '@genesislcap/foundation-forms';
|
|
19
18
|
import { RouterConfiguration } from '@microsoft/fast-router';
|
|
@@ -288,10 +287,6 @@ export declare class EntityManagement extends EntityManagement_base {
|
|
|
288
287
|
* @internal
|
|
289
288
|
*/
|
|
290
289
|
errorNotify(request: any): void;
|
|
291
|
-
/**
|
|
292
|
-
* @internal
|
|
293
|
-
*/
|
|
294
|
-
errorSnack(ERROR: MessageError[]): void;
|
|
295
290
|
}
|
|
296
291
|
|
|
297
292
|
declare const EntityManagement_base: (new (...args: any[]) => {
|
|
@@ -306,11 +301,11 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
306
301
|
readonly shouldRunConnect: boolean;
|
|
307
302
|
"__#1@#_blockLifecycleDueToTokenChange"(lifecycleType: "connect" | "disconnect" | "reconnect"): boolean;
|
|
308
303
|
"__#1@#_tryFindContainingLayout"(e: Element): FoundationLayoutContainer | LayoutCacheContainer | DOMContainer;
|
|
309
|
-
connectedCallback(): void;
|
|
310
|
-
readonly $fastController: Controller; /**
|
|
304
|
+
connectedCallback(): void; /**
|
|
311
305
|
* If true, will enable row flashing for all rows for `add` async transactions
|
|
312
306
|
* @public
|
|
313
307
|
*/
|
|
308
|
+
readonly $fastController: Controller;
|
|
314
309
|
$emit(type: string, detail?: any, options?: Omit<CustomEventInit<any>, "detail">): boolean | void;
|
|
315
310
|
disconnectedCallback(): void;
|
|
316
311
|
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
@@ -346,20 +341,9 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
346
341
|
readonly clientTop: number;
|
|
347
342
|
readonly clientWidth: number;
|
|
348
343
|
id: string;
|
|
349
|
-
/**
|
|
350
|
-
* Array with renderers used by foundation-forms
|
|
351
|
-
* @public
|
|
352
|
-
*/
|
|
353
344
|
readonly localName: string;
|
|
354
345
|
readonly namespaceURI: string;
|
|
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
|
-
*/
|
|
346
|
+
onfullscreenchange: (this: Element, ev: Event) => any;
|
|
363
347
|
onfullscreenerror: (this: Element, ev: Event) => any;
|
|
364
348
|
outerHTML: string;
|
|
365
349
|
readonly ownerDocument: Document;
|
|
@@ -370,10 +354,7 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
370
354
|
scrollTop: number;
|
|
371
355
|
readonly scrollWidth: number;
|
|
372
356
|
readonly shadowRoot: ShadowRoot;
|
|
373
|
-
slot: string;
|
|
374
|
-
* Disables the form while enabled to stop the user dispatching a large number of duplicate events
|
|
375
|
-
* @public
|
|
376
|
-
*/
|
|
357
|
+
slot: string;
|
|
377
358
|
readonly tagName: string;
|
|
378
359
|
attachShadow(init: ShadowRootInit): ShadowRoot;
|
|
379
360
|
closest<K_2 extends keyof HTMLElementTagNameMap>(selector: K_2): HTMLElementTagNameMap[K_2];
|
|
@@ -441,12 +422,6 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
441
422
|
hasChildNodes(): boolean;
|
|
442
423
|
insertBefore<T_2 extends Node>(node: T_2, child: Node): T_2;
|
|
443
424
|
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
|
-
*/
|
|
450
425
|
isEqualNode(otherNode: Node): boolean;
|
|
451
426
|
isSameNode(otherNode: Node): boolean;
|
|
452
427
|
lookupNamespaceURI(prefix: string): string;
|
|
@@ -493,12 +468,7 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
493
468
|
ariaLive: string;
|
|
494
469
|
ariaModal: string;
|
|
495
470
|
ariaMultiLine: 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
|
-
*/
|
|
471
|
+
ariaMultiSelectable: string;
|
|
502
472
|
ariaOrientation: string;
|
|
503
473
|
ariaPlaceholder: string;
|
|
504
474
|
ariaPosInSet: string;
|
|
@@ -543,9 +513,7 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
543
513
|
readonly assignedSlot: HTMLSlotElement;
|
|
544
514
|
oncopy: (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any;
|
|
545
515
|
oncut: (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any;
|
|
546
|
-
onpaste: (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any;
|
|
547
|
-
* @internal
|
|
548
|
-
*/
|
|
516
|
+
onpaste: (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any;
|
|
549
517
|
readonly style: CSSStyleDeclaration;
|
|
550
518
|
contentEditable: string;
|
|
551
519
|
enterKeyHint: string;
|
|
@@ -1014,7 +982,10 @@ declare const Users_base: (new (...args: any[]) => {
|
|
|
1014
982
|
readonly clientLeft: number;
|
|
1015
983
|
readonly clientTop: number;
|
|
1016
984
|
readonly clientWidth: number;
|
|
1017
|
-
id: string;
|
|
985
|
+
id: string; /**
|
|
986
|
+
* entityID used to control the definition of an optional entity column which is created with the {@link Users.entityColumn} function.
|
|
987
|
+
* @internal
|
|
988
|
+
*/
|
|
1018
989
|
readonly localName: string;
|
|
1019
990
|
readonly namespaceURI: string;
|
|
1020
991
|
onfullscreenchange: (this: Element, ev: Event) => any;
|
|
@@ -1023,10 +994,7 @@ declare const Users_base: (new (...args: any[]) => {
|
|
|
1023
994
|
readonly ownerDocument: Document;
|
|
1024
995
|
readonly part: DOMTokenList;
|
|
1025
996
|
readonly prefix: string;
|
|
1026
|
-
readonly scrollHeight: number;
|
|
1027
|
-
* entityID used to control the definition of an optional entity column which is created with the {@link Users.entityColumn} function.
|
|
1028
|
-
* @internal
|
|
1029
|
-
*/
|
|
997
|
+
readonly scrollHeight: number;
|
|
1030
998
|
scrollLeft: number;
|
|
1031
999
|
scrollTop: number;
|
|
1032
1000
|
readonly scrollWidth: number;
|
|
@@ -1093,6 +1061,9 @@ declare const Users_base: (new (...args: any[]) => {
|
|
|
1093
1061
|
readonly previousSibling: ChildNode;
|
|
1094
1062
|
textContent: string;
|
|
1095
1063
|
appendChild<T_1 extends Node>(node: T_1): T_1;
|
|
1064
|
+
/**
|
|
1065
|
+
* @internal
|
|
1066
|
+
*/
|
|
1096
1067
|
compareDocumentPosition(other: Node): number;
|
|
1097
1068
|
contains(other: Node): boolean;
|
|
1098
1069
|
getRootNode(options?: GetRootNodeOptions): Node;
|
package/docs/api-report.md
CHANGED
|
@@ -19,7 +19,6 @@ import { GridOptions } from '@ag-grid-community/core';
|
|
|
19
19
|
import { GridProRendererTypes } from '@genesislcap/foundation-zero-grid-pro';
|
|
20
20
|
import { LayoutCacheContainer } from '@genesislcap/foundation-utils';
|
|
21
21
|
import { Logger } from '@genesislcap/foundation-logger';
|
|
22
|
-
import { MessageError } from '@genesislcap/foundation-comms';
|
|
23
22
|
import { PartialFASTElementDefinition } from '@microsoft/fast-element';
|
|
24
23
|
import { RendererEntry } from '@genesislcap/foundation-forms';
|
|
25
24
|
import { RouterConfiguration } from '@microsoft/fast-router';
|
|
@@ -81,8 +80,6 @@ export class EntityManagement extends EntityManagement_base {
|
|
|
81
80
|
entityLabel: string;
|
|
82
81
|
// @internal
|
|
83
82
|
errorNotify(request: any): void;
|
|
84
|
-
// @internal (undocumented)
|
|
85
|
-
errorSnack(ERROR: MessageError[]): void;
|
|
86
83
|
formRenderers: RendererEntry[];
|
|
87
84
|
// @internal
|
|
88
85
|
formResourceName: string;
|
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.92.
|
|
4
|
+
"version": "14.92.1-pa-913.2",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -44,22 +44,23 @@
|
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@genesislcap/foundation-login": "^14.40.0",
|
|
47
|
-
"@genesislcap/foundation-testing": "14.92.
|
|
48
|
-
"@genesislcap/genx": "14.92.
|
|
47
|
+
"@genesislcap/foundation-testing": "14.92.1-pa-913.2",
|
|
48
|
+
"@genesislcap/genx": "14.92.1-pa-913.2",
|
|
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.92.
|
|
54
|
-
"@genesislcap/foundation-errors": "14.92.
|
|
55
|
-
"@genesislcap/foundation-forms": "14.92.
|
|
56
|
-
"@genesislcap/foundation-logger": "14.92.
|
|
57
|
-
"@genesislcap/foundation-login": "14.92.
|
|
58
|
-
"@genesislcap/foundation-
|
|
59
|
-
"@genesislcap/foundation-
|
|
60
|
-
"@genesislcap/foundation-
|
|
61
|
-
"@genesislcap/foundation-zero
|
|
62
|
-
"@genesislcap/grid-pro": "14.92.
|
|
53
|
+
"@genesislcap/foundation-comms": "14.92.1-pa-913.2",
|
|
54
|
+
"@genesislcap/foundation-errors": "14.92.1-pa-913.2",
|
|
55
|
+
"@genesislcap/foundation-forms": "14.92.1-pa-913.2",
|
|
56
|
+
"@genesislcap/foundation-logger": "14.92.1-pa-913.2",
|
|
57
|
+
"@genesislcap/foundation-login": "14.92.1-pa-913.2",
|
|
58
|
+
"@genesislcap/foundation-notifications": "14.92.1-pa-913.2",
|
|
59
|
+
"@genesislcap/foundation-ui": "14.92.1-pa-913.2",
|
|
60
|
+
"@genesislcap/foundation-utils": "14.92.1-pa-913.2",
|
|
61
|
+
"@genesislcap/foundation-zero": "14.92.1-pa-913.2",
|
|
62
|
+
"@genesislcap/foundation-zero-grid-pro": "14.92.1-pa-913.2",
|
|
63
|
+
"@genesislcap/grid-pro": "14.92.1-pa-913.2",
|
|
63
64
|
"@microsoft/fast-components": "^2.21.3",
|
|
64
65
|
"@microsoft/fast-element": "^1.7.0",
|
|
65
66
|
"@microsoft/fast-foundation": "^2.33.2",
|
|
@@ -75,5 +76,5 @@
|
|
|
75
76
|
"access": "public"
|
|
76
77
|
},
|
|
77
78
|
"customElements": "dist/custom-elements.json",
|
|
78
|
-
"gitHead": "
|
|
79
|
+
"gitHead": "38fd18f9abdcc65707463162b94222b5563fcaab"
|
|
79
80
|
}
|