@genesislcap/foundation-entity-management 14.210.1-alpha-d058de3.0 → 14.210.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.
|
@@ -87,6 +87,41 @@
|
|
|
87
87
|
}
|
|
88
88
|
]
|
|
89
89
|
},
|
|
90
|
+
{
|
|
91
|
+
"kind": "javascript-module",
|
|
92
|
+
"path": "src/components/components.ts",
|
|
93
|
+
"declarations": [
|
|
94
|
+
{
|
|
95
|
+
"kind": "function",
|
|
96
|
+
"name": "loadRemotes"
|
|
97
|
+
}
|
|
98
|
+
],
|
|
99
|
+
"exports": [
|
|
100
|
+
{
|
|
101
|
+
"kind": "js",
|
|
102
|
+
"name": "loadRemotes",
|
|
103
|
+
"declaration": {
|
|
104
|
+
"name": "loadRemotes",
|
|
105
|
+
"module": "src/components/components.ts"
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
]
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"kind": "javascript-module",
|
|
112
|
+
"path": "src/components/index.ts",
|
|
113
|
+
"declarations": [],
|
|
114
|
+
"exports": [
|
|
115
|
+
{
|
|
116
|
+
"kind": "js",
|
|
117
|
+
"name": "*",
|
|
118
|
+
"declaration": {
|
|
119
|
+
"name": "*",
|
|
120
|
+
"package": "./components"
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
]
|
|
124
|
+
},
|
|
90
125
|
{
|
|
91
126
|
"kind": "javascript-module",
|
|
92
127
|
"path": "src/entities/entities.styles.ts",
|
|
@@ -761,6 +796,19 @@
|
|
|
761
796
|
}
|
|
762
797
|
]
|
|
763
798
|
},
|
|
799
|
+
{
|
|
800
|
+
"kind": "method",
|
|
801
|
+
"name": "submitErrorHandler",
|
|
802
|
+
"privacy": "private",
|
|
803
|
+
"parameters": [
|
|
804
|
+
{
|
|
805
|
+
"name": "e",
|
|
806
|
+
"type": {
|
|
807
|
+
"text": "CustomEvent"
|
|
808
|
+
}
|
|
809
|
+
}
|
|
810
|
+
]
|
|
811
|
+
},
|
|
764
812
|
{
|
|
765
813
|
"kind": "method",
|
|
766
814
|
"name": "confirmDelete"
|
|
@@ -1088,41 +1136,6 @@
|
|
|
1088
1136
|
}
|
|
1089
1137
|
]
|
|
1090
1138
|
},
|
|
1091
|
-
{
|
|
1092
|
-
"kind": "javascript-module",
|
|
1093
|
-
"path": "src/components/components.ts",
|
|
1094
|
-
"declarations": [
|
|
1095
|
-
{
|
|
1096
|
-
"kind": "function",
|
|
1097
|
-
"name": "loadRemotes"
|
|
1098
|
-
}
|
|
1099
|
-
],
|
|
1100
|
-
"exports": [
|
|
1101
|
-
{
|
|
1102
|
-
"kind": "js",
|
|
1103
|
-
"name": "loadRemotes",
|
|
1104
|
-
"declaration": {
|
|
1105
|
-
"name": "loadRemotes",
|
|
1106
|
-
"module": "src/components/components.ts"
|
|
1107
|
-
}
|
|
1108
|
-
}
|
|
1109
|
-
]
|
|
1110
|
-
},
|
|
1111
|
-
{
|
|
1112
|
-
"kind": "javascript-module",
|
|
1113
|
-
"path": "src/components/index.ts",
|
|
1114
|
-
"declarations": [],
|
|
1115
|
-
"exports": [
|
|
1116
|
-
{
|
|
1117
|
-
"kind": "js",
|
|
1118
|
-
"name": "*",
|
|
1119
|
-
"declaration": {
|
|
1120
|
-
"name": "*",
|
|
1121
|
-
"package": "./components"
|
|
1122
|
-
}
|
|
1123
|
-
}
|
|
1124
|
-
]
|
|
1125
|
-
},
|
|
1126
1139
|
{
|
|
1127
1140
|
"kind": "javascript-module",
|
|
1128
1141
|
"path": "src/list/index.ts",
|
|
@@ -2723,6 +2736,23 @@
|
|
|
2723
2736
|
"module": "src/entities/entities.ts"
|
|
2724
2737
|
}
|
|
2725
2738
|
},
|
|
2739
|
+
{
|
|
2740
|
+
"kind": "method",
|
|
2741
|
+
"name": "submitErrorHandler",
|
|
2742
|
+
"privacy": "private",
|
|
2743
|
+
"parameters": [
|
|
2744
|
+
{
|
|
2745
|
+
"name": "e",
|
|
2746
|
+
"type": {
|
|
2747
|
+
"text": "CustomEvent"
|
|
2748
|
+
}
|
|
2749
|
+
}
|
|
2750
|
+
],
|
|
2751
|
+
"inheritedFrom": {
|
|
2752
|
+
"name": "EntityManagement",
|
|
2753
|
+
"module": "src/entities/entities.ts"
|
|
2754
|
+
}
|
|
2755
|
+
},
|
|
2726
2756
|
{
|
|
2727
2757
|
"kind": "method",
|
|
2728
2758
|
"name": "showDeleteConfirmation",
|
|
@@ -681,6 +681,7 @@ export declare class EntityManagement extends EntityManagement_base {
|
|
|
681
681
|
requestChanged(e: CustomEvent<string>): void;
|
|
682
682
|
criteriaChanged(e: CustomEvent<string>): void;
|
|
683
683
|
submitFailureNotification(e: CustomEvent): void;
|
|
684
|
+
private submitErrorHandler;
|
|
684
685
|
/**
|
|
685
686
|
* Handler for deleting the entity. Added as an event listener on the class when receiving the `delete-entity` event.
|
|
686
687
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entities.d.ts","sourceRoot":"","sources":["../../../src/entities/entities.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AACrF,OAAO,EACL,OAAO,EACP,iBAAiB,EAEjB,YAAY,EAEb,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAa,MAAM,+BAA+B,CAAC;AAEzE,OAAO,EAAE,KAAK,EAAe,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAE7E,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC7E,OAAO,EAIL,WAAW,EAGZ,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,aAAa,EAAE,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AC,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC;IAIrC,eAAe,CAAC,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC;IAItC,yBAAyB,CAAC,CAAC,EAAE,WAAW;IAgC/C,OAAO,CAAC,kBAAkB;IAiB1B;;;;;OAKG;IACG,YAAY,CAAC,CAAC,EAAE,WAAW;IAK3B,aAAa;IAwBnB,OAAO,CAAC,sBAAsB;IAc9B;;;OAGG;IACI,QAAQ,CAAC,MAAM,EAAE,QAAQ,GAAG,MAAM,GAAG,QAAQ;IAIpD;;;OAGG;IACI,YAAY,CAAC,IAAI,EAAE,aAAa,GAAG,UAAU,CAAC,MAAM,EAAE,YAAY,CAAC,EAAE,YAAY,EAAE;IA8C1F;;;OAGG;IACH,OAAO,CAAC,mBAAmB;IAI3B;;;;OAIG;IACH,OAAO,CAAC,uBAAuB;IAkC/B;;OAEG;IACI,gBAAgB,CAAC,KAAK,EAAE,WAAW,CAAC,qBAAqB,CAAC;CASlE"}
|
|
@@ -214,14 +214,13 @@ let EntityManagement = class EntityManagement extends LifecycleMixin(FASTElement
|
|
|
214
214
|
return __awaiter(this, void 0, void 0, function* () {
|
|
215
215
|
_super.connectedCallback.call(this);
|
|
216
216
|
this.addEventListener('rowSelected', this.selectEntity);
|
|
217
|
-
|
|
218
|
-
this.addEventListener('delete-entity', this.deleteEntity);
|
|
219
|
-
}
|
|
217
|
+
this.addEventListener('delete-entity', this.deleteEntity);
|
|
220
218
|
this.addEventListener('create-entity', this.createEntity);
|
|
221
219
|
this.addEventListener('edit-entity', this.editEntity);
|
|
222
220
|
this.addEventListener('read-entity', this.readEntity);
|
|
223
221
|
this.addEventListener('criteria-changed', this.criteriaChanged);
|
|
224
222
|
this.addEventListener('request-changed', this.requestChanged);
|
|
223
|
+
this.addEventListener('submit', this.submitErrorHandler);
|
|
225
224
|
this.addEventListener('submit-failure', this.submitFailureNotification);
|
|
226
225
|
if (!this.searchBarConfig) {
|
|
227
226
|
this.getDefaultSearchBarConfig();
|
|
@@ -241,6 +240,15 @@ let EntityManagement = class EntityManagement extends LifecycleMixin(FASTElement
|
|
|
241
240
|
if (!shouldRunDisconnect || !this.isConnected)
|
|
242
241
|
return;
|
|
243
242
|
_super.disconnectedCallback.call(this);
|
|
243
|
+
this.removeEventListener('rowSelected', this.selectEntity);
|
|
244
|
+
this.removeEventListener('delete-entity', this.deleteEntity);
|
|
245
|
+
this.removeEventListener('create-entity', this.createEntity);
|
|
246
|
+
this.removeEventListener('edit-entity', this.editEntity);
|
|
247
|
+
this.removeEventListener('read-entity', this.readEntity);
|
|
248
|
+
this.removeEventListener('criteria-changed', this.criteriaChanged);
|
|
249
|
+
this.removeEventListener('request-changed', this.requestChanged);
|
|
250
|
+
this.removeEventListener('submit', this.submitErrorHandler);
|
|
251
|
+
this.removeEventListener('submit-failure', this.submitFailureNotification);
|
|
244
252
|
});
|
|
245
253
|
});
|
|
246
254
|
}
|
|
@@ -435,6 +443,20 @@ let EntityManagement = class EntityManagement extends LifecycleMixin(FASTElement
|
|
|
435
443
|
}
|
|
436
444
|
});
|
|
437
445
|
}
|
|
446
|
+
submitErrorHandler(e) {
|
|
447
|
+
var _a;
|
|
448
|
+
(_a = e.detail.errors) === null || _a === void 0 ? void 0 : _a.forEach((error) => {
|
|
449
|
+
showNotification({
|
|
450
|
+
title: 'Error submitting form',
|
|
451
|
+
body: error.message,
|
|
452
|
+
config: {
|
|
453
|
+
snackbar: {
|
|
454
|
+
type: 'error',
|
|
455
|
+
},
|
|
456
|
+
},
|
|
457
|
+
}, this.prefix);
|
|
458
|
+
});
|
|
459
|
+
}
|
|
438
460
|
/**
|
|
439
461
|
* Handler for deleting the entity. Added as an event listener on the class when receiving the `delete-entity` event.
|
|
440
462
|
*
|
|
@@ -409,6 +409,7 @@ export declare class EntityManagement extends EntityManagement_base {
|
|
|
409
409
|
requestChanged(e: CustomEvent<string>): void;
|
|
410
410
|
criteriaChanged(e: CustomEvent<string>): void;
|
|
411
411
|
submitFailureNotification(e: CustomEvent): void;
|
|
412
|
+
private submitErrorHandler;
|
|
412
413
|
/**
|
|
413
414
|
* Handler for deleting the entity. Added as an event listener on the class when receiving the `delete-entity` event.
|
|
414
415
|
*
|
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.210.
|
|
4
|
+
"version": "14.210.2",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -52,29 +52,29 @@
|
|
|
52
52
|
}
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@genesislcap/foundation-testing": "14.210.
|
|
56
|
-
"@genesislcap/genx": "14.210.
|
|
57
|
-
"@genesislcap/rollup-builder": "14.210.
|
|
58
|
-
"@genesislcap/ts-builder": "14.210.
|
|
59
|
-
"@genesislcap/uvu-playwright-builder": "14.210.
|
|
60
|
-
"@genesislcap/vite-builder": "14.210.
|
|
61
|
-
"@genesislcap/webpack-builder": "14.210.
|
|
55
|
+
"@genesislcap/foundation-testing": "14.210.2",
|
|
56
|
+
"@genesislcap/genx": "14.210.2",
|
|
57
|
+
"@genesislcap/rollup-builder": "14.210.2",
|
|
58
|
+
"@genesislcap/ts-builder": "14.210.2",
|
|
59
|
+
"@genesislcap/uvu-playwright-builder": "14.210.2",
|
|
60
|
+
"@genesislcap/vite-builder": "14.210.2",
|
|
61
|
+
"@genesislcap/webpack-builder": "14.210.2",
|
|
62
62
|
"rimraf": "^5.0.0"
|
|
63
63
|
},
|
|
64
64
|
"dependencies": {
|
|
65
65
|
"@ag-grid-community/core": "29.2.0",
|
|
66
|
-
"@genesislcap/foundation-comms": "14.210.
|
|
67
|
-
"@genesislcap/foundation-errors": "14.210.
|
|
68
|
-
"@genesislcap/foundation-events": "14.210.
|
|
69
|
-
"@genesislcap/foundation-forms": "14.210.
|
|
70
|
-
"@genesislcap/foundation-logger": "14.210.
|
|
71
|
-
"@genesislcap/foundation-login": "14.210.
|
|
72
|
-
"@genesislcap/foundation-notifications": "14.210.
|
|
73
|
-
"@genesislcap/foundation-ui": "14.210.
|
|
74
|
-
"@genesislcap/foundation-utils": "14.210.
|
|
75
|
-
"@genesislcap/foundation-zero": "14.210.
|
|
76
|
-
"@genesislcap/foundation-zero-grid-pro": "14.210.
|
|
77
|
-
"@genesislcap/grid-pro": "14.210.
|
|
66
|
+
"@genesislcap/foundation-comms": "14.210.2",
|
|
67
|
+
"@genesislcap/foundation-errors": "14.210.2",
|
|
68
|
+
"@genesislcap/foundation-events": "14.210.2",
|
|
69
|
+
"@genesislcap/foundation-forms": "14.210.2",
|
|
70
|
+
"@genesislcap/foundation-logger": "14.210.2",
|
|
71
|
+
"@genesislcap/foundation-login": "14.210.2",
|
|
72
|
+
"@genesislcap/foundation-notifications": "14.210.2",
|
|
73
|
+
"@genesislcap/foundation-ui": "14.210.2",
|
|
74
|
+
"@genesislcap/foundation-utils": "14.210.2",
|
|
75
|
+
"@genesislcap/foundation-zero": "14.210.2",
|
|
76
|
+
"@genesislcap/foundation-zero-grid-pro": "14.210.2",
|
|
77
|
+
"@genesislcap/grid-pro": "14.210.2",
|
|
78
78
|
"@microsoft/fast-components": "^2.30.6",
|
|
79
79
|
"@microsoft/fast-element": "^1.12.0",
|
|
80
80
|
"@microsoft/fast-foundation": "^2.49.4",
|
|
@@ -91,5 +91,5 @@
|
|
|
91
91
|
"access": "public"
|
|
92
92
|
},
|
|
93
93
|
"customElements": "dist/custom-elements.json",
|
|
94
|
-
"gitHead": "
|
|
94
|
+
"gitHead": "4820ba557919bf13d7dccdd0a133317479694429"
|
|
95
95
|
}
|