@genesislcap/foundation-entity-management 14.82.0 → 14.83.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.
@@ -524,6 +524,19 @@
524
524
  }
525
525
  ]
526
526
  },
527
+ {
528
+ "kind": "method",
529
+ "name": "submitFailureNotification",
530
+ "privacy": "public",
531
+ "parameters": [
532
+ {
533
+ "name": "e",
534
+ "type": {
535
+ "text": "CustomEvent"
536
+ }
537
+ }
538
+ ]
539
+ },
527
540
  {
528
541
  "kind": "method",
529
542
  "name": "confirmDelete"
@@ -1906,6 +1919,23 @@
1906
1919
  "module": "src/entities/entities.ts"
1907
1920
  }
1908
1921
  },
1922
+ {
1923
+ "kind": "method",
1924
+ "name": "submitFailureNotification",
1925
+ "privacy": "public",
1926
+ "parameters": [
1927
+ {
1928
+ "name": "e",
1929
+ "type": {
1930
+ "text": "CustomEvent"
1931
+ }
1932
+ }
1933
+ ],
1934
+ "inheritedFrom": {
1935
+ "name": "EntityManagement",
1936
+ "module": "src/entities/entities.ts"
1937
+ }
1938
+ },
1909
1939
  {
1910
1940
  "kind": "method",
1911
1941
  "name": "showDeleteConfirmation",
@@ -31,11 +31,6 @@ declare const EntityManagement_base: (new (...args: any[]) => {
31
31
  cloneNode(deep?: boolean): Node;
32
32
  deepClone(): Node;
33
33
  readonly shouldRunDisconnect: boolean;
34
- /**
35
- * Whether to use the `applyTransactionAsync` function for *add* transactions
36
- * @remarks Defaults to false
37
- * @public
38
- */
39
34
  readonly shouldRunConnect: boolean;
40
35
  "__#1@#_blockLifecycleDueToTokenChange"(lifecycleType: "connect" | "disconnect" | "reconnect"): boolean;
41
36
  "__#1@#_tryFindContainingLayout"(e: Element): import("@genesislcap/foundation-utils").FoundationLayoutContainer | import("@genesislcap/foundation-utils").LayoutCacheContainer | import("@genesislcap/foundation-utils").DOMContainer;
@@ -64,8 +59,14 @@ declare const EntityManagement_base: (new (...args: any[]) => {
64
59
  translate: boolean;
65
60
  attachInternals(): ElementInternals;
66
61
  click(): void;
67
- addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
68
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
62
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; /**
63
+ * Array which holds the column definitions.
64
+ * @public
65
+ */
66
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; /**
67
+ * Array which holds the column definitions.
68
+ * @public
69
+ */
69
70
  removeEventListener<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions): void;
70
71
  removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
71
72
  readonly attributes: NamedNodeMap;
@@ -73,14 +74,6 @@ declare const EntityManagement_base: (new (...args: any[]) => {
73
74
  className: string;
74
75
  readonly clientHeight: number;
75
76
  readonly clientLeft: number;
76
- /**
77
- * Reference to the currently selected entity from the grid.
78
- *
79
- * @remarks
80
- *
81
- * 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
82
- * @public
83
- */
84
77
  readonly clientTop: number;
85
78
  readonly clientWidth: number;
86
79
  id: string;
@@ -204,7 +197,12 @@ declare const EntityManagement_base: (new (...args: any[]) => {
204
197
  ariaExpanded: string;
205
198
  ariaHasPopup: string;
206
199
  ariaHidden: string;
207
- ariaInvalid: 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
+ */
208
206
  ariaKeyShortcuts: string;
209
207
  ariaLabel: string;
210
208
  ariaLevel: string;
@@ -234,10 +232,7 @@ declare const EntityManagement_base: (new (...args: any[]) => {
234
232
  animate(keyframes: PropertyIndexedKeyframes | Keyframe[], options?: number | KeyframeAnimationOptions): Animation;
235
233
  getAnimations(options?: GetAnimationsOptions): Animation[];
236
234
  after(...nodes: (string | Node)[]): void;
237
- before(...nodes: (string | Node)[]): void; /**
238
- * Show notifications if the executed event returned an error.
239
- * @internal
240
- */
235
+ before(...nodes: (string | Node)[]): void;
241
236
  remove(): void;
242
237
  replaceWith(...nodes: (string | Node)[]): void;
243
238
  innerHTML: string;
@@ -585,6 +580,7 @@ export declare class EntityManagement extends EntityManagement_base {
585
580
  private readEntity;
586
581
  closeModal(): void;
587
582
  criteriaChanged(e: CustomEvent<string>): void;
583
+ submitFailureNotification(e: CustomEvent): void;
588
584
  /**
589
585
  * Handler for deleting the entity. Added as an event listener on the class when receiving the `delete-entity` event.
590
586
  *
@@ -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,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAUzF,OAAO,EAAuB,WAAW,EAAc,MAAM,yBAAyB,CAAC;AAKvF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,MAAM,uBAAuB,GAAG,IAAI,CAAC,iBAAiB,EAAE,cAAc,GAAG,SAAS,CAAC,CAAC;;;;;;;;;;IAwFxF;;;;OAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA0EH;;;;;;;OAOG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,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,6 +1,6 @@
1
1
  import { __awaiter, __decorate, __rest } from "tslib";
2
2
  import { Connect } from '@genesislcap/foundation-comms';
3
- import { ErrorBoundaryEvent, getErrorBuilder, getErrorDialogBuilder, getNotificationBuilder, getSnackbarBuilder, } from '@genesislcap/foundation-errors';
3
+ import { ErrorBoundaryEvent, getErrorBuilder, getErrorDialogBuilder, getNotificationBuilder, getSnackbarBuilder, showNotification, } from '@genesislcap/foundation-errors';
4
4
  import { showDialog } from '@genesislcap/foundation-errors';
5
5
  import { LifecycleMixin } from '@genesislcap/foundation-utils';
6
6
  import { attr, customElement, FASTElement, observable } from '@microsoft/fast-element';
@@ -121,6 +121,7 @@ let EntityManagement = class EntityManagement extends LifecycleMixin(FASTElement
121
121
  this.addEventListener('edit-entity', this.editEntity);
122
122
  this.addEventListener('read-entity', this.readEntity);
123
123
  this.addEventListener('criteria-changed', this.criteriaChanged);
124
+ this.addEventListener('submit-failure', this.submitFailureNotification);
124
125
  });
125
126
  }
126
127
  /**
@@ -209,6 +210,15 @@ let EntityManagement = class EntityManagement extends LifecycleMixin(FASTElement
209
210
  criteriaChanged(e) {
210
211
  this.datasourceConfig = Object.assign(Object.assign({}, this.datasourceConfig), { criteria: e.detail });
211
212
  }
213
+ submitFailureNotification(e) {
214
+ const submitFailureError = e.detail.errors[0];
215
+ showNotification(getErrorBuilder()
216
+ .withTitle(submitFailureError.CODE)
217
+ .withErrorDetails(`${submitFailureError.TEXT} Please try again.`)
218
+ .withNotification(getNotificationBuilder().withType('warning').build())
219
+ .build(), 'zero');
220
+ this.closeModal();
221
+ }
212
222
  /**
213
223
  * Handler for deleting the entity. Added as an event listener on the class when receiving the `delete-entity` event.
214
224
  *
@@ -1410,6 +1410,55 @@
1410
1410
  "isAbstract": false,
1411
1411
  "name": "submitEntityChanges"
1412
1412
  },
1413
+ {
1414
+ "kind": "Method",
1415
+ "canonicalReference": "@genesislcap/foundation-entity-management!EntityManagement#submitFailureNotification:member(1)",
1416
+ "docComment": "",
1417
+ "excerptTokens": [
1418
+ {
1419
+ "kind": "Content",
1420
+ "text": "submitFailureNotification(e: "
1421
+ },
1422
+ {
1423
+ "kind": "Reference",
1424
+ "text": "CustomEvent",
1425
+ "canonicalReference": "!CustomEvent:interface"
1426
+ },
1427
+ {
1428
+ "kind": "Content",
1429
+ "text": "): "
1430
+ },
1431
+ {
1432
+ "kind": "Content",
1433
+ "text": "void"
1434
+ },
1435
+ {
1436
+ "kind": "Content",
1437
+ "text": ";"
1438
+ }
1439
+ ],
1440
+ "isStatic": false,
1441
+ "returnTypeTokenRange": {
1442
+ "startIndex": 3,
1443
+ "endIndex": 4
1444
+ },
1445
+ "releaseTag": "Public",
1446
+ "isProtected": false,
1447
+ "overloadIndex": 1,
1448
+ "parameters": [
1449
+ {
1450
+ "parameterName": "e",
1451
+ "parameterTypeTokenRange": {
1452
+ "startIndex": 1,
1453
+ "endIndex": 2
1454
+ },
1455
+ "isOptional": false
1456
+ }
1457
+ ],
1458
+ "isOptional": false,
1459
+ "isAbstract": false,
1460
+ "name": "submitFailureNotification"
1461
+ },
1413
1462
  {
1414
1463
  "kind": "Property",
1415
1464
  "canonicalReference": "@genesislcap/foundation-entity-management!EntityManagement#submitting:member",
@@ -267,6 +267,7 @@ export declare class EntityManagement extends EntityManagement_base {
267
267
  private readEntity;
268
268
  closeModal(): void;
269
269
  criteriaChanged(e: CustomEvent<string>): void;
270
+ submitFailureNotification(e: CustomEvent): void;
270
271
  /**
271
272
  * Handler for deleting the entity. Added as an event listener on the class when receiving the `delete-entity` event.
272
273
  *
@@ -296,11 +297,6 @@ declare const EntityManagement_base: (new (...args: any[]) => {
296
297
  cloneNode(deep?: boolean): Node;
297
298
  deepClone(): Node;
298
299
  readonly shouldRunDisconnect: boolean;
299
- /**
300
- * Whether to use the `applyTransactionAsync` function for *add* transactions
301
- * @remarks Defaults to false
302
- * @public
303
- */
304
300
  readonly shouldRunConnect: boolean;
305
301
  "__#1@#_blockLifecycleDueToTokenChange"(lifecycleType: "connect" | "disconnect" | "reconnect"): boolean;
306
302
  "__#1@#_tryFindContainingLayout"(e: Element): FoundationLayoutContainer | LayoutCacheContainer | DOMContainer;
@@ -329,8 +325,14 @@ declare const EntityManagement_base: (new (...args: any[]) => {
329
325
  translate: boolean;
330
326
  attachInternals(): ElementInternals;
331
327
  click(): void;
332
- addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
333
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
328
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; /**
329
+ * Array which holds the column definitions.
330
+ * @public
331
+ */
332
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; /**
333
+ * Array which holds the column definitions.
334
+ * @public
335
+ */
334
336
  removeEventListener<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions): void;
335
337
  removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
336
338
  readonly attributes: NamedNodeMap;
@@ -338,14 +340,6 @@ declare const EntityManagement_base: (new (...args: any[]) => {
338
340
  className: string;
339
341
  readonly clientHeight: number;
340
342
  readonly clientLeft: number;
341
- /**
342
- * Reference to the currently selected entity from the grid.
343
- *
344
- * @remarks
345
- *
346
- * 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
347
- * @public
348
- */
349
343
  readonly clientTop: number;
350
344
  readonly clientWidth: number;
351
345
  id: string;
@@ -469,7 +463,12 @@ declare const EntityManagement_base: (new (...args: any[]) => {
469
463
  ariaExpanded: string;
470
464
  ariaHasPopup: string;
471
465
  ariaHidden: string;
472
- ariaInvalid: 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
+ */
473
472
  ariaKeyShortcuts: string;
474
473
  ariaLabel: string;
475
474
  ariaLevel: string;
@@ -499,10 +498,7 @@ declare const EntityManagement_base: (new (...args: any[]) => {
499
498
  animate(keyframes: PropertyIndexedKeyframes | Keyframe[], options?: number | KeyframeAnimationOptions): Animation;
500
499
  getAnimations(options?: GetAnimationsOptions): Animation[];
501
500
  after(...nodes: (string | Node)[]): void;
502
- before(...nodes: (string | Node)[]): void; /**
503
- * Show notifications if the executed event returned an error.
504
- * @internal
505
- */
501
+ before(...nodes: (string | Node)[]): void;
506
502
  remove(): void;
507
503
  replaceWith(...nodes: (string | Node)[]): void;
508
504
  innerHTML: string;
@@ -81,4 +81,5 @@ Where:<br /> - the title of the grid is `Counterparty Management`<br /> - the na
81
81
  | [deepClone()](./foundation-entity-management.entitymanagement.deepclone.md) | | Override the deepClone method to ensure that observable attributes are cloned |
82
82
  | [editModalVisibleChanged()](./foundation-entity-management.entitymanagement.editmodalvisiblechanged.md) | | |
83
83
  | [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 |
84
+ | [submitFailureNotification(e)](./foundation-entity-management.entitymanagement.submitfailurenotification.md) | | |
84
85
 
@@ -0,0 +1,22 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-entity-management](./foundation-entity-management.md) &gt; [EntityManagement](./foundation-entity-management.entitymanagement.md) &gt; [submitFailureNotification](./foundation-entity-management.entitymanagement.submitfailurenotification.md)
4
+
5
+ ## EntityManagement.submitFailureNotification() method
6
+
7
+ **Signature:**
8
+
9
+ ```typescript
10
+ submitFailureNotification(e: CustomEvent): void;
11
+ ```
12
+
13
+ ## Parameters
14
+
15
+ | Parameter | Type | Description |
16
+ | --- | --- | --- |
17
+ | e | CustomEvent | |
18
+
19
+ **Returns:**
20
+
21
+ void
22
+
@@ -105,6 +105,8 @@ export class EntityManagement extends EntityManagement_base {
105
105
  sizeColumnsToFit: boolean;
106
106
  submitEntityChanges(e: CustomEvent): Promise<void>;
107
107
  // (undocumented)
108
+ submitFailureNotification(e: CustomEvent): void;
109
+ // (undocumented)
108
110
  submitting: boolean;
109
111
  title: string;
110
112
  updateEvent: string;
package/package.json CHANGED
@@ -1,11 +1,14 @@
1
1
  {
2
2
  "name": "@genesislcap/foundation-entity-management",
3
3
  "description": "Genesis Foundation Entity Management",
4
- "version": "14.82.0",
4
+ "version": "14.83.1",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
8
8
  "types": "dist/foundation-entity-management.d.ts",
9
+ "engines": {
10
+ "node": ">=18.0.0"
11
+ },
9
12
  "config": {
10
13
  "PORT": 5080
11
14
  },
@@ -41,22 +44,22 @@
41
44
  },
42
45
  "devDependencies": {
43
46
  "@genesislcap/foundation-login": "^14.40.0",
44
- "@genesislcap/foundation-testing": "14.82.0",
45
- "@genesislcap/genx": "14.82.0",
47
+ "@genesislcap/foundation-testing": "14.83.1",
48
+ "@genesislcap/genx": "14.83.1",
46
49
  "rimraf": "^3.0.2"
47
50
  },
48
51
  "dependencies": {
49
52
  "@ag-grid-community/core": "29.2.0",
50
- "@genesislcap/foundation-comms": "14.82.0",
51
- "@genesislcap/foundation-errors": "14.82.0",
52
- "@genesislcap/foundation-forms": "14.82.0",
53
- "@genesislcap/foundation-logger": "14.82.0",
54
- "@genesislcap/foundation-login": "14.82.0",
55
- "@genesislcap/foundation-ui": "14.82.0",
56
- "@genesislcap/foundation-utils": "14.82.0",
57
- "@genesislcap/foundation-zero": "14.82.0",
58
- "@genesislcap/foundation-zero-grid-pro": "14.82.0",
59
- "@genesislcap/grid-pro": "14.82.0",
53
+ "@genesislcap/foundation-comms": "14.83.1",
54
+ "@genesislcap/foundation-errors": "14.83.1",
55
+ "@genesislcap/foundation-forms": "14.83.1",
56
+ "@genesislcap/foundation-logger": "14.83.1",
57
+ "@genesislcap/foundation-login": "14.83.1",
58
+ "@genesislcap/foundation-ui": "14.83.1",
59
+ "@genesislcap/foundation-utils": "14.83.1",
60
+ "@genesislcap/foundation-zero": "14.83.1",
61
+ "@genesislcap/foundation-zero-grid-pro": "14.83.1",
62
+ "@genesislcap/grid-pro": "14.83.1",
60
63
  "@microsoft/fast-components": "^2.21.3",
61
64
  "@microsoft/fast-element": "^1.7.0",
62
65
  "@microsoft/fast-foundation": "^2.33.2",
@@ -72,5 +75,5 @@
72
75
  "access": "public"
73
76
  },
74
77
  "customElements": "dist/custom-elements.json",
75
- "gitHead": "69108b95942ed1e47c3cf1eaf9fd3c3ed9188de0"
78
+ "gitHead": "e5ec1e7cf529aea9309fcdd896bdb4fddf0d81ce"
76
79
  }