@acorex-platform/module-risk-management-client 0.0.30 → 0.0.33
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/fesm2022/acorex-platform-module-risk-management-client-contracts-entities-risk-likelihood.mjs +222 -0
- package/fesm2022/acorex-platform-module-risk-management-client-contracts-entities-risk-likelihood.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-risk-management-client-contracts-entities-risk-matrix-cell.mjs +348 -0
- package/fesm2022/acorex-platform-module-risk-management-client-contracts-entities-risk-matrix-cell.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-risk-management-client-contracts-entities-risk-rating.mjs +227 -0
- package/fesm2022/acorex-platform-module-risk-management-client-contracts-entities-risk-rating.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-risk-management-client-contracts-entities-risk-severity.mjs +222 -0
- package/fesm2022/acorex-platform-module-risk-management-client-contracts-entities-risk-severity.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-risk-management-client-contracts-entity-catalog-acorex-platform-module-risk-management-client-contracts-entity-catalog-Dc6Me3H6.mjs +72 -0
- package/fesm2022/acorex-platform-module-risk-management-client-contracts-entity-catalog-acorex-platform-module-risk-management-client-contracts-entity-catalog-Dc6Me3H6.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-risk-management-client-contracts-entity-catalog-risk-likelihood.entity-DzwLi3Ga.mjs +172 -0
- package/fesm2022/acorex-platform-module-risk-management-client-contracts-entity-catalog-risk-likelihood.entity-DzwLi3Ga.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-risk-management-client-contracts-entity-catalog-risk-matrix-cell.entity-b97tbRDA.mjs +298 -0
- package/fesm2022/acorex-platform-module-risk-management-client-contracts-entity-catalog-risk-matrix-cell.entity-b97tbRDA.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-risk-management-client-contracts-entity-catalog-risk-rating.entity-CreMsiCu.mjs +177 -0
- package/fesm2022/acorex-platform-module-risk-management-client-contracts-entity-catalog-risk-rating.entity-CreMsiCu.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-risk-management-client-contracts-entity-catalog-risk-severity.entity-bEyLH8dE.mjs +172 -0
- package/fesm2022/acorex-platform-module-risk-management-client-contracts-entity-catalog-risk-severity.entity-bEyLH8dE.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-risk-management-client-contracts-entity-catalog.mjs +2 -0
- package/fesm2022/acorex-platform-module-risk-management-client-contracts-entity-catalog.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-risk-management-client-contracts.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-risk-management-client-local-entities.mjs +32 -0
- package/fesm2022/acorex-platform-module-risk-management-client-local-entities.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-risk-management-client.mjs +36 -37
- package/fesm2022/acorex-platform-module-risk-management-client.mjs.map +1 -1
- package/package.json +25 -1
- package/types/acorex-platform-module-risk-management-client-contracts-entities-risk-likelihood.d.ts +5 -0
- package/types/acorex-platform-module-risk-management-client-contracts-entities-risk-matrix-cell.d.ts +5 -0
- package/types/acorex-platform-module-risk-management-client-contracts-entities-risk-rating.d.ts +5 -0
- package/types/acorex-platform-module-risk-management-client-contracts-entities-risk-severity.d.ts +5 -0
- package/types/acorex-platform-module-risk-management-client-contracts-entity-catalog.d.ts +10 -0
- package/types/acorex-platform-module-risk-management-client-contracts.d.ts +9 -5
- package/types/acorex-platform-module-risk-management-client-local-entities.d.ts +12 -0
- package/types/acorex-platform-module-risk-management-client.d.ts +6 -3
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
import { AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';
|
|
2
|
+
import { createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';
|
|
3
|
+
|
|
4
|
+
//#region ---- Root Configuration ----
|
|
5
|
+
const config = {
|
|
6
|
+
i18n: 'risk-management',
|
|
7
|
+
module: 'RiskManagement',
|
|
8
|
+
route: 'risk-management',
|
|
9
|
+
};
|
|
10
|
+
const RootConfig = {
|
|
11
|
+
config,
|
|
12
|
+
module: {
|
|
13
|
+
route: config.route,
|
|
14
|
+
name: config.module,
|
|
15
|
+
title: '@risk-management:module.title',
|
|
16
|
+
icon: 'fa-light fa-chart-line',
|
|
17
|
+
},
|
|
18
|
+
entities: {
|
|
19
|
+
riskLikelihood: {
|
|
20
|
+
name: 'RiskLikelihood',
|
|
21
|
+
source: `${config.module}.RiskLikelihood`,
|
|
22
|
+
title: '@risk-management:risk-likelihoods.entities.risk-likelihood.title',
|
|
23
|
+
titlePlural: '@risk-management:risk-likelihoods.entities.risk-likelihood.plural',
|
|
24
|
+
icon: 'fa-light fa-signal',
|
|
25
|
+
},
|
|
26
|
+
riskSeverity: {
|
|
27
|
+
name: 'RiskSeverity',
|
|
28
|
+
source: `${config.module}.RiskSeverity`,
|
|
29
|
+
title: '@risk-management:risk-severities.entities.risk-severity.title',
|
|
30
|
+
titlePlural: '@risk-management:risk-severities.entities.risk-severity.plural',
|
|
31
|
+
icon: 'fa-light fa-gauge-high',
|
|
32
|
+
},
|
|
33
|
+
riskRating: {
|
|
34
|
+
name: 'RiskRating',
|
|
35
|
+
source: `${config.module}.RiskRating`,
|
|
36
|
+
title: '@risk-management:risk-ratings.entities.risk-rating.title',
|
|
37
|
+
titlePlural: '@risk-management:risk-ratings.entities.risk-rating.plural',
|
|
38
|
+
icon: 'fa-light fa-ranking-star',
|
|
39
|
+
},
|
|
40
|
+
riskMatrixCell: {
|
|
41
|
+
name: 'RiskMatrixCell',
|
|
42
|
+
source: `${config.module}.RiskMatrixCell`,
|
|
43
|
+
title: '@risk-management:risk-matrix-cells.entities.risk-matrix-cell.title',
|
|
44
|
+
titlePlural: '@risk-management:risk-matrix-cells.entities.risk-matrix-cell.plural',
|
|
45
|
+
icon: 'fa-light fa-table-cells',
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
};
|
|
49
|
+
//#endregion
|
|
50
|
+
|
|
51
|
+
//#endregion
|
|
52
|
+
//#region ---- Constants ----
|
|
53
|
+
const listSortAndFilterOptions = {
|
|
54
|
+
sort: { enabled: true },
|
|
55
|
+
filter: { advance: { enabled: true }, inline: { enabled: true } },
|
|
56
|
+
};
|
|
57
|
+
//#endregion
|
|
58
|
+
//#region ---- Entity factory ----
|
|
59
|
+
async function factoryRiskLikelihood() {
|
|
60
|
+
const entityDef = {
|
|
61
|
+
module: RootConfig.module.name,
|
|
62
|
+
name: RootConfig.entities.riskLikelihood.name,
|
|
63
|
+
title: RootConfig.entities.riskLikelihood.title,
|
|
64
|
+
icon: RootConfig.entities.riskLikelihood.icon,
|
|
65
|
+
formats: {
|
|
66
|
+
individual: RootConfig.entities.riskLikelihood.title,
|
|
67
|
+
plural: RootConfig.entities.riskLikelihood.titlePlural,
|
|
68
|
+
searchResult: {
|
|
69
|
+
title: '{{ title }}',
|
|
70
|
+
description: '{{ code }}',
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
plugins: [
|
|
74
|
+
{ name: 'history' },
|
|
75
|
+
{ name: 'unique-fields', options: { fields: 'code', scope: 'global' } },
|
|
76
|
+
{ name: 'archive' },
|
|
77
|
+
],
|
|
78
|
+
groups: [
|
|
79
|
+
{
|
|
80
|
+
id: 'basic-info',
|
|
81
|
+
title: '@risk-management:risk-likelihoods.entities.risk-likelihood.groups.basic-info',
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
id: 'classification',
|
|
85
|
+
title: '@risk-management:risk-likelihoods.entities.risk-likelihood.groups.classification',
|
|
86
|
+
},
|
|
87
|
+
],
|
|
88
|
+
properties: [
|
|
89
|
+
{
|
|
90
|
+
name: 'id',
|
|
91
|
+
title: '@general:terms.common.id',
|
|
92
|
+
groupId: 'basic-info',
|
|
93
|
+
schema: { dataType: 'uuid', visible: false, nullable: false, readonly: true, unique: { enabled: true } },
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
name: 'code',
|
|
97
|
+
title: '@risk-management:risk-likelihoods.entities.risk-likelihood.fields.code.title',
|
|
98
|
+
groupId: 'basic-info',
|
|
99
|
+
options: listSortAndFilterOptions,
|
|
100
|
+
schema: {
|
|
101
|
+
dataType: 'string',
|
|
102
|
+
unique: { enabled: true },
|
|
103
|
+
interface: {
|
|
104
|
+
type: AXPWidgetsCatalog.text,
|
|
105
|
+
options: {
|
|
106
|
+
placeholder: '@risk-management:risk-likelihoods.entities.risk-likelihood.fields.code.placeholder',
|
|
107
|
+
},
|
|
108
|
+
},
|
|
109
|
+
},
|
|
110
|
+
validations: [{ rule: 'required' }],
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
name: 'title',
|
|
114
|
+
title: '@risk-management:risk-likelihoods.entities.risk-likelihood.fields.title.title',
|
|
115
|
+
groupId: 'basic-info',
|
|
116
|
+
options: listSortAndFilterOptions,
|
|
117
|
+
schema: {
|
|
118
|
+
dataType: 'string',
|
|
119
|
+
interface: {
|
|
120
|
+
type: AXPWidgetsCatalog.text,
|
|
121
|
+
options: {
|
|
122
|
+
placeholder: '@risk-management:risk-likelihoods.entities.risk-likelihood.fields.title.placeholder',
|
|
123
|
+
},
|
|
124
|
+
},
|
|
125
|
+
},
|
|
126
|
+
validations: [{ rule: 'required' }],
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
name: 'description',
|
|
130
|
+
title: '@general:terms.common.description',
|
|
131
|
+
groupId: 'basic-info',
|
|
132
|
+
options: {
|
|
133
|
+
sort: { enabled: false },
|
|
134
|
+
filter: { advance: { enabled: true }, inline: { enabled: false } },
|
|
135
|
+
},
|
|
136
|
+
schema: {
|
|
137
|
+
dataType: 'string',
|
|
138
|
+
nullable: true,
|
|
139
|
+
interface: {
|
|
140
|
+
type: AXPWidgetsCatalog.largeText,
|
|
141
|
+
options: {
|
|
142
|
+
placeholder: '@risk-management:risk-likelihoods.entities.risk-likelihood.fields.description.placeholder',
|
|
143
|
+
},
|
|
144
|
+
},
|
|
145
|
+
},
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
name: 'levelValue',
|
|
149
|
+
title: '@risk-management:risk-likelihoods.entities.risk-likelihood.fields.level-value.title',
|
|
150
|
+
groupId: 'classification',
|
|
151
|
+
options: listSortAndFilterOptions,
|
|
152
|
+
schema: {
|
|
153
|
+
dataType: 'number',
|
|
154
|
+
interface: {
|
|
155
|
+
type: AXPWidgetsCatalog.number,
|
|
156
|
+
options: {
|
|
157
|
+
minValue: 0,
|
|
158
|
+
maxValue: 99,
|
|
159
|
+
placeholder: '@risk-management:risk-likelihoods.entities.risk-likelihood.fields.level-value.placeholder',
|
|
160
|
+
},
|
|
161
|
+
},
|
|
162
|
+
},
|
|
163
|
+
validations: [{ rule: 'required' }],
|
|
164
|
+
},
|
|
165
|
+
],
|
|
166
|
+
columns: [
|
|
167
|
+
{ name: 'code' },
|
|
168
|
+
{ name: 'title' },
|
|
169
|
+
{ name: 'levelValue' },
|
|
170
|
+
],
|
|
171
|
+
interfaces: {
|
|
172
|
+
master: {
|
|
173
|
+
create: {
|
|
174
|
+
sections: [{ id: 'basic-info' }, { id: 'classification' }],
|
|
175
|
+
properties: [
|
|
176
|
+
{ name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
|
|
177
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
|
|
178
|
+
{ name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
|
|
179
|
+
{ name: 'levelValue', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },
|
|
180
|
+
],
|
|
181
|
+
},
|
|
182
|
+
update: {
|
|
183
|
+
sections: [{ id: 'basic-info' }, { id: 'classification' }],
|
|
184
|
+
properties: [
|
|
185
|
+
{ name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
|
|
186
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
|
|
187
|
+
{ name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
|
|
188
|
+
{ name: 'levelValue', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },
|
|
189
|
+
],
|
|
190
|
+
},
|
|
191
|
+
single: {
|
|
192
|
+
title: '{{ title }}',
|
|
193
|
+
sections: [{ id: 'basic-info' }, { id: 'classification' }],
|
|
194
|
+
properties: [
|
|
195
|
+
{ name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
|
|
196
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
|
|
197
|
+
{ name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
|
|
198
|
+
{ name: 'levelValue', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },
|
|
199
|
+
],
|
|
200
|
+
actions: [...entityMasterRecordActions()],
|
|
201
|
+
},
|
|
202
|
+
list: {
|
|
203
|
+
actions: [...entityMasterCrudActions()],
|
|
204
|
+
views: [
|
|
205
|
+
createAllQueryView({
|
|
206
|
+
sorts: [{ name: 'levelValue', dir: 'asc' }],
|
|
207
|
+
}),
|
|
208
|
+
],
|
|
209
|
+
},
|
|
210
|
+
},
|
|
211
|
+
},
|
|
212
|
+
};
|
|
213
|
+
return entityDef;
|
|
214
|
+
}
|
|
215
|
+
//#endregion
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* Generated bundle index. Do not edit.
|
|
219
|
+
*/
|
|
220
|
+
|
|
221
|
+
export { factoryRiskLikelihood };
|
|
222
|
+
//# sourceMappingURL=acorex-platform-module-risk-management-client-contracts-entities-risk-likelihood.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-risk-management-client-contracts-entities-risk-likelihood.mjs","sources":["../../../../libs/modules/risk-management/contracts/src/root-config.ts","../../../../libs/modules/risk-management/contracts/src/entities/risk-likelihood/risk-likelihood.entity.ts","../../../../libs/modules/risk-management/contracts/src/acorex-platform-module-risk-management-client-contracts-entities-risk-likelihood.ts"],"sourcesContent":["//#region ---- Root Configuration ----\n\nconst config = {\n i18n: 'risk-management',\n module: 'RiskManagement',\n route: 'risk-management',\n};\n\nexport const RootConfig = {\n config,\n module: {\n route: config.route,\n name: config.module,\n title: '@risk-management:module.title',\n icon: 'fa-light fa-chart-line',\n },\n entities: {\n riskLikelihood: {\n name: 'RiskLikelihood',\n source: `${config.module}.RiskLikelihood`,\n title: '@risk-management:risk-likelihoods.entities.risk-likelihood.title',\n titlePlural: '@risk-management:risk-likelihoods.entities.risk-likelihood.plural',\n icon: 'fa-light fa-signal',\n },\n riskSeverity: {\n name: 'RiskSeverity',\n source: `${config.module}.RiskSeverity`,\n title: '@risk-management:risk-severities.entities.risk-severity.title',\n titlePlural: '@risk-management:risk-severities.entities.risk-severity.plural',\n icon: 'fa-light fa-gauge-high',\n },\n riskRating: {\n name: 'RiskRating',\n source: `${config.module}.RiskRating`,\n title: '@risk-management:risk-ratings.entities.risk-rating.title',\n titlePlural: '@risk-management:risk-ratings.entities.risk-rating.plural',\n icon: 'fa-light fa-ranking-star',\n },\n riskMatrixCell: {\n name: 'RiskMatrixCell',\n source: `${config.module}.RiskMatrixCell`,\n title: '@risk-management:risk-matrix-cells.entities.risk-matrix-cell.title',\n titlePlural: '@risk-management:risk-matrix-cells.entities.risk-matrix-cell.plural',\n icon: 'fa-light fa-table-cells',\n },\n },\n};\n\n//#endregion\n","import { AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';\n//#region ---- Imports ----\nimport { RootConfig } from '../../root-config';\n\n//#endregion\n\n//#region ---- Constants ----\n\nconst listSortAndFilterOptions = {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n};\n\n//#endregion\n\n//#region ---- Entity factory ----\n\nexport async function factoryRiskLikelihood(): Promise<AXPEntity | null> {\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.riskLikelihood.name,\n title: RootConfig.entities.riskLikelihood.title,\n icon: RootConfig.entities.riskLikelihood.icon,\n formats: {\n individual: RootConfig.entities.riskLikelihood.title,\n plural: RootConfig.entities.riskLikelihood.titlePlural,\n searchResult: {\n title: '{{ title }}',\n description: '{{ code }}',\n },\n },\n plugins: [\n { name: 'history' },\n { name: 'unique-fields', options: { fields: 'code', scope: 'global' } },\n { name: 'archive' },\n ],\n groups: [\n {\n id: 'basic-info',\n title: '@risk-management:risk-likelihoods.entities.risk-likelihood.groups.basic-info',\n },\n {\n id: 'classification',\n title: '@risk-management:risk-likelihoods.entities.risk-likelihood.groups.classification',\n },\n ],\n properties: [\n {\n name: 'id',\n title: '@general:terms.common.id',\n groupId: 'basic-info',\n schema: { dataType: 'uuid', visible: false, nullable: false, readonly: true, unique: { enabled: true } },\n },\n {\n name: 'code',\n title: '@risk-management:risk-likelihoods.entities.risk-likelihood.fields.code.title',\n groupId: 'basic-info',\n options: listSortAndFilterOptions,\n schema: {\n dataType: 'string',\n unique: { enabled: true },\n interface: {\n type: AXPWidgetsCatalog.text,\n options: {\n placeholder: '@risk-management:risk-likelihoods.entities.risk-likelihood.fields.code.placeholder',\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'title',\n title: '@risk-management:risk-likelihoods.entities.risk-likelihood.fields.title.title',\n groupId: 'basic-info',\n options: listSortAndFilterOptions,\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsCatalog.text,\n options: {\n placeholder: '@risk-management:risk-likelihoods.entities.risk-likelihood.fields.title.placeholder',\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'description',\n title: '@general:terms.common.description',\n groupId: 'basic-info',\n options: {\n sort: { enabled: false },\n filter: { advance: { enabled: true }, inline: { enabled: false } },\n },\n schema: {\n dataType: 'string',\n nullable: true,\n interface: {\n type: AXPWidgetsCatalog.largeText,\n options: {\n placeholder: '@risk-management:risk-likelihoods.entities.risk-likelihood.fields.description.placeholder',\n },\n },\n },\n },\n {\n name: 'levelValue',\n title: '@risk-management:risk-likelihoods.entities.risk-likelihood.fields.level-value.title',\n groupId: 'classification',\n options: listSortAndFilterOptions,\n schema: {\n dataType: 'number',\n interface: {\n type: AXPWidgetsCatalog.number,\n options: {\n minValue: 0,\n maxValue: 99,\n placeholder: '@risk-management:risk-likelihoods.entities.risk-likelihood.fields.level-value.placeholder',\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n ],\n columns: [\n { name: 'code' },\n { name: 'title' },\n { name: 'levelValue' },\n ],\n interfaces: {\n master: {\n create: {\n sections: [{ id: 'basic-info' }, { id: 'classification' }],\n properties: [\n { name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },\n { name: 'levelValue', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },\n ],\n },\n update: {\n sections: [{ id: 'basic-info' }, { id: 'classification' }],\n properties: [\n { name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },\n { name: 'levelValue', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },\n ],\n },\n single: {\n title: '{{ title }}',\n sections: [{ id: 'basic-info' }, { id: 'classification' }],\n properties: [\n { name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },\n { name: 'levelValue', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },\n ],\n actions: [...entityMasterRecordActions()],\n },\n list: {\n actions: [...entityMasterCrudActions()],\n views: [\n createAllQueryView({\n sorts: [{ name: 'levelValue', dir: 'asc' }],\n }),\n ],\n },\n },\n },\n };\n\n return entityDef;\n}\n\n//#endregion\n","/**\n * Generated bundle index. Do not edit.\n */\n\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AE,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;wBACjF,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;AAChF,qBAAA;AACD,oBAAA,OAAO,EAAE,CAAC,GAAG,yBAAyB,EAAE,CAAC;AAC1C,iBAAA;AACD,gBAAA,IAAI,EAAE;AACJ,oBAAA,OAAO,EAAE,CAAC,GAAG,uBAAuB,EAAE,CAAC;AACvC,oBAAA,KAAK,EAAE;AACL,wBAAA,kBAAkB,CAAC;4BACjB,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;yBAC5C,CAAC;AACH,qBAAA;AACF,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AAED,IAAA,OAAO,SAAS;AAClB;AAEA;;AChLA;;AAEG;;;;"}
|
|
@@ -0,0 +1,348 @@
|
|
|
1
|
+
import { AXPWidgetsCatalog, AXPWidgetsList } from '@acorex-platform/framework-shared/core';
|
|
2
|
+
import { createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';
|
|
3
|
+
|
|
4
|
+
//#region ---- Types ----
|
|
5
|
+
//#endregion
|
|
6
|
+
//#region ---- Constants ----
|
|
7
|
+
const RISK_MATRIX_AXIS_PROPERTIES = [
|
|
8
|
+
'likelihoodId',
|
|
9
|
+
'severityId',
|
|
10
|
+
'riskRatingId',
|
|
11
|
+
];
|
|
12
|
+
const DEFAULT_RISK_MATRIX_AXIS_MAPPING = {
|
|
13
|
+
rowProperty: 'likelihoodId',
|
|
14
|
+
columnProperty: 'severityId',
|
|
15
|
+
depthProperty: 'riskRatingId',
|
|
16
|
+
};
|
|
17
|
+
const RISK_MATRIX_AXIS_PROPERTY_SELECT_OPTIONS = [
|
|
18
|
+
{
|
|
19
|
+
id: 'likelihoodId',
|
|
20
|
+
title: '@risk-management:risk-matrix-cells.entities.risk-matrix-cell.fields.likelihood-id.title',
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
id: 'severityId',
|
|
24
|
+
title: '@risk-management:risk-matrix-cells.entities.risk-matrix-cell.fields.severity-id.title',
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
id: 'riskRatingId',
|
|
28
|
+
title: '@risk-management:risk-matrix-cells.entities.risk-matrix-cell.fields.risk-rating-id.title',
|
|
29
|
+
},
|
|
30
|
+
];
|
|
31
|
+
const DEFAULT_RISK_MATRIX_ORIENTATION = 'likelihood-rows';
|
|
32
|
+
const RISK_MATRIX_ORIENTATION_OPTIONS = [
|
|
33
|
+
{
|
|
34
|
+
id: 'likelihood-rows',
|
|
35
|
+
title: '@risk-management:risk-matrix-cells.entities.risk-matrix-cell.fields.matrix-orientation.options.likelihood-rows',
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
id: 'severity-rows',
|
|
39
|
+
title: '@risk-management:risk-matrix-cells.entities.risk-matrix-cell.fields.matrix-orientation.options.severity-rows',
|
|
40
|
+
},
|
|
41
|
+
];
|
|
42
|
+
const RISK_MATRIX_ORIENTATION_TITLE_KEYS = {
|
|
43
|
+
'likelihood-rows': '@risk-management:risk-matrix-cells.components.risk-matrix.titles.likelihood-rows',
|
|
44
|
+
'severity-rows': '@risk-management:risk-matrix-cells.components.risk-matrix.titles.severity-rows',
|
|
45
|
+
};
|
|
46
|
+
//#endregion
|
|
47
|
+
|
|
48
|
+
//#region ---- Root Configuration ----
|
|
49
|
+
const config = {
|
|
50
|
+
i18n: 'risk-management',
|
|
51
|
+
module: 'RiskManagement',
|
|
52
|
+
route: 'risk-management',
|
|
53
|
+
};
|
|
54
|
+
const RootConfig = {
|
|
55
|
+
config,
|
|
56
|
+
module: {
|
|
57
|
+
route: config.route,
|
|
58
|
+
name: config.module,
|
|
59
|
+
title: '@risk-management:module.title',
|
|
60
|
+
icon: 'fa-light fa-chart-line',
|
|
61
|
+
},
|
|
62
|
+
entities: {
|
|
63
|
+
riskLikelihood: {
|
|
64
|
+
name: 'RiskLikelihood',
|
|
65
|
+
source: `${config.module}.RiskLikelihood`,
|
|
66
|
+
title: '@risk-management:risk-likelihoods.entities.risk-likelihood.title',
|
|
67
|
+
titlePlural: '@risk-management:risk-likelihoods.entities.risk-likelihood.plural',
|
|
68
|
+
icon: 'fa-light fa-signal',
|
|
69
|
+
},
|
|
70
|
+
riskSeverity: {
|
|
71
|
+
name: 'RiskSeverity',
|
|
72
|
+
source: `${config.module}.RiskSeverity`,
|
|
73
|
+
title: '@risk-management:risk-severities.entities.risk-severity.title',
|
|
74
|
+
titlePlural: '@risk-management:risk-severities.entities.risk-severity.plural',
|
|
75
|
+
icon: 'fa-light fa-gauge-high',
|
|
76
|
+
},
|
|
77
|
+
riskRating: {
|
|
78
|
+
name: 'RiskRating',
|
|
79
|
+
source: `${config.module}.RiskRating`,
|
|
80
|
+
title: '@risk-management:risk-ratings.entities.risk-rating.title',
|
|
81
|
+
titlePlural: '@risk-management:risk-ratings.entities.risk-rating.plural',
|
|
82
|
+
icon: 'fa-light fa-ranking-star',
|
|
83
|
+
},
|
|
84
|
+
riskMatrixCell: {
|
|
85
|
+
name: 'RiskMatrixCell',
|
|
86
|
+
source: `${config.module}.RiskMatrixCell`,
|
|
87
|
+
title: '@risk-management:risk-matrix-cells.entities.risk-matrix-cell.title',
|
|
88
|
+
titlePlural: '@risk-management:risk-matrix-cells.entities.risk-matrix-cell.plural',
|
|
89
|
+
icon: 'fa-light fa-table-cells',
|
|
90
|
+
},
|
|
91
|
+
},
|
|
92
|
+
};
|
|
93
|
+
//#endregion
|
|
94
|
+
|
|
95
|
+
//#endregion
|
|
96
|
+
//#region ---- Constants ----
|
|
97
|
+
const listSortAndFilterOptions = {
|
|
98
|
+
sort: { enabled: true },
|
|
99
|
+
filter: { advance: { enabled: true }, inline: { enabled: true } },
|
|
100
|
+
};
|
|
101
|
+
const lookupPropertyLayout = (name, order) => ({
|
|
102
|
+
name,
|
|
103
|
+
layout: { positions: { lg: { colSpan: 6, order } } },
|
|
104
|
+
});
|
|
105
|
+
const matrixPropertyLayout = {
|
|
106
|
+
name: 'matrix',
|
|
107
|
+
layout: { positions: { lg: { colSpan: 12, order: 7 } } },
|
|
108
|
+
};
|
|
109
|
+
const matrixOrientationPropertyLayout = {
|
|
110
|
+
name: 'matrixOrientation',
|
|
111
|
+
layout: { positions: { lg: { colSpan: 12, order: 3 } } },
|
|
112
|
+
};
|
|
113
|
+
const riskMatrixAxisLookupOptions = (entityKey, exposeCollection) => ({
|
|
114
|
+
look: 'drop-down',
|
|
115
|
+
multiple: true,
|
|
116
|
+
textField: 'title',
|
|
117
|
+
valueField: 'id',
|
|
118
|
+
entity: `${RootConfig.module.name}.${RootConfig.entities[entityKey].name}`,
|
|
119
|
+
columns: ['code', 'title'],
|
|
120
|
+
expose: [
|
|
121
|
+
{ source: 'id', target: `${exposeCollection}.{id}` },
|
|
122
|
+
{ source: 'title', target: `${exposeCollection}.{title}` },
|
|
123
|
+
{ source: 'code', target: `${exposeCollection}.{code}` },
|
|
124
|
+
],
|
|
125
|
+
});
|
|
126
|
+
//#endregion
|
|
127
|
+
//#region ---- Entity factory ----
|
|
128
|
+
async function factoryRiskMatrixCell() {
|
|
129
|
+
const entityDef = {
|
|
130
|
+
module: RootConfig.module.name,
|
|
131
|
+
name: RootConfig.entities.riskMatrixCell.name,
|
|
132
|
+
title: RootConfig.entities.riskMatrixCell.title,
|
|
133
|
+
icon: RootConfig.entities.riskMatrixCell.icon,
|
|
134
|
+
formats: {
|
|
135
|
+
individual: RootConfig.entities.riskMatrixCell.title,
|
|
136
|
+
plural: RootConfig.entities.riskMatrixCell.titlePlural,
|
|
137
|
+
searchResult: {
|
|
138
|
+
title: '{{ title }}',
|
|
139
|
+
description: '{{ code }}',
|
|
140
|
+
},
|
|
141
|
+
},
|
|
142
|
+
plugins: [
|
|
143
|
+
{ name: 'history' },
|
|
144
|
+
{ name: 'identifier', options: { field: 'code', rule: 'risk-matrix-cell-code' } },
|
|
145
|
+
{ name: 'unique-fields', options: { fields: 'code', scope: 'global' } },
|
|
146
|
+
{
|
|
147
|
+
name: 'category',
|
|
148
|
+
options: {
|
|
149
|
+
appearance: { icon: true, color: true },
|
|
150
|
+
},
|
|
151
|
+
},
|
|
152
|
+
{ name: 'catalog-scope' },
|
|
153
|
+
{ name: 'archive' },
|
|
154
|
+
],
|
|
155
|
+
groups: [
|
|
156
|
+
{
|
|
157
|
+
id: 'basic-info',
|
|
158
|
+
title: '@risk-management:risk-matrix-cells.entities.risk-matrix-cell.groups.basic-info',
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
id: 'matrix-definition',
|
|
162
|
+
title: '@risk-management:risk-matrix-cells.entities.risk-matrix-cell.groups.matrix-definition',
|
|
163
|
+
},
|
|
164
|
+
],
|
|
165
|
+
properties: [
|
|
166
|
+
{
|
|
167
|
+
name: 'id',
|
|
168
|
+
title: '@general:terms.common.id',
|
|
169
|
+
groupId: 'basic-info',
|
|
170
|
+
schema: { dataType: 'uuid', visible: false, nullable: false, readonly: true, unique: { enabled: true } },
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
name: 'code',
|
|
174
|
+
title: '@risk-management:risk-matrix-cells.entities.risk-matrix-cell.fields.code.title',
|
|
175
|
+
groupId: 'basic-info',
|
|
176
|
+
options: listSortAndFilterOptions,
|
|
177
|
+
schema: {
|
|
178
|
+
dataType: 'string',
|
|
179
|
+
unique: { enabled: true },
|
|
180
|
+
interface: {
|
|
181
|
+
type: AXPWidgetsCatalog.text,
|
|
182
|
+
options: {
|
|
183
|
+
disabled: true,
|
|
184
|
+
placeholder: '@risk-management:risk-matrix-cells.entities.risk-matrix-cell.fields.code.placeholder',
|
|
185
|
+
},
|
|
186
|
+
},
|
|
187
|
+
},
|
|
188
|
+
validations: [{ rule: 'required' }],
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
name: 'title',
|
|
192
|
+
title: '@risk-management:risk-matrix-cells.entities.risk-matrix-cell.fields.title.title',
|
|
193
|
+
groupId: 'basic-info',
|
|
194
|
+
options: listSortAndFilterOptions,
|
|
195
|
+
schema: {
|
|
196
|
+
dataType: 'string',
|
|
197
|
+
interface: {
|
|
198
|
+
type: AXPWidgetsCatalog.text,
|
|
199
|
+
options: {
|
|
200
|
+
placeholder: '@risk-management:risk-matrix-cells.entities.risk-matrix-cell.fields.title.placeholder',
|
|
201
|
+
},
|
|
202
|
+
},
|
|
203
|
+
},
|
|
204
|
+
validations: [{ rule: 'required' }],
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
name: 'matrixOrientation',
|
|
208
|
+
title: '@risk-management:risk-matrix-cells.entities.risk-matrix-cell.fields.matrix-orientation.title',
|
|
209
|
+
groupId: 'matrix-definition',
|
|
210
|
+
options: {
|
|
211
|
+
sort: { enabled: false },
|
|
212
|
+
filter: { advance: { enabled: false }, inline: { enabled: false } },
|
|
213
|
+
},
|
|
214
|
+
schema: {
|
|
215
|
+
dataType: 'string',
|
|
216
|
+
defaultValue: DEFAULT_RISK_MATRIX_ORIENTATION,
|
|
217
|
+
interface: {
|
|
218
|
+
type: AXPWidgetsList.Editors.SelectionList,
|
|
219
|
+
options: {
|
|
220
|
+
multiple: false,
|
|
221
|
+
showControl: true,
|
|
222
|
+
direction: { id: 'horizontal' },
|
|
223
|
+
valueField: 'id',
|
|
224
|
+
textField: 'title',
|
|
225
|
+
dataSource: [...RISK_MATRIX_ORIENTATION_OPTIONS],
|
|
226
|
+
},
|
|
227
|
+
},
|
|
228
|
+
},
|
|
229
|
+
validations: [{ rule: 'required' }],
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
name: 'likelihoodIds',
|
|
233
|
+
title: '@risk-management:risk-matrix-cells.entities.risk-matrix-cell.fields.likelihood-id.title',
|
|
234
|
+
groupId: 'matrix-definition',
|
|
235
|
+
options: {
|
|
236
|
+
sort: { enabled: false },
|
|
237
|
+
filter: { advance: { enabled: true }, inline: { enabled: true } },
|
|
238
|
+
},
|
|
239
|
+
schema: {
|
|
240
|
+
dataType: 'array',
|
|
241
|
+
defaultValue: [],
|
|
242
|
+
interface: {
|
|
243
|
+
type: AXPWidgetsList.Editors.LookupBox,
|
|
244
|
+
options: riskMatrixAxisLookupOptions('riskLikelihood', 'likelihoodList'),
|
|
245
|
+
},
|
|
246
|
+
},
|
|
247
|
+
validations: [{ rule: 'required' }],
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
name: 'severityIds',
|
|
251
|
+
title: '@risk-management:risk-matrix-cells.entities.risk-matrix-cell.fields.severity-id.title',
|
|
252
|
+
groupId: 'matrix-definition',
|
|
253
|
+
options: {
|
|
254
|
+
sort: { enabled: false },
|
|
255
|
+
filter: { advance: { enabled: true }, inline: { enabled: true } },
|
|
256
|
+
},
|
|
257
|
+
schema: {
|
|
258
|
+
dataType: 'array',
|
|
259
|
+
defaultValue: [],
|
|
260
|
+
interface: {
|
|
261
|
+
type: AXPWidgetsList.Editors.LookupBox,
|
|
262
|
+
options: riskMatrixAxisLookupOptions('riskSeverity', 'severityList'),
|
|
263
|
+
},
|
|
264
|
+
},
|
|
265
|
+
validations: [{ rule: 'required' }],
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
name: 'matrix',
|
|
269
|
+
title: '@risk-management:risk-matrix-cells.entities.risk-matrix-cell.fields.matrix.title',
|
|
270
|
+
groupId: 'matrix-definition',
|
|
271
|
+
options: {
|
|
272
|
+
sort: { enabled: false },
|
|
273
|
+
filter: { advance: { enabled: false }, inline: { enabled: false } },
|
|
274
|
+
},
|
|
275
|
+
schema: {
|
|
276
|
+
dataType: 'object',
|
|
277
|
+
interface: {
|
|
278
|
+
type: AXPWidgetsList.Editors.RiskMatrix,
|
|
279
|
+
options: {},
|
|
280
|
+
},
|
|
281
|
+
},
|
|
282
|
+
},
|
|
283
|
+
],
|
|
284
|
+
columns: [
|
|
285
|
+
{ name: 'code' },
|
|
286
|
+
{ name: 'title' },
|
|
287
|
+
{ name: 'likelihoodIds', options: { dataPath: 'likelihoodList' } },
|
|
288
|
+
{ name: 'severityIds', options: { dataPath: 'severityList' } },
|
|
289
|
+
{ name: 'matrix', options: { order: 5 } },
|
|
290
|
+
],
|
|
291
|
+
interfaces: {
|
|
292
|
+
master: {
|
|
293
|
+
create: {
|
|
294
|
+
sections: [{ id: 'basic-info' }, { id: 'matrix-definition' }],
|
|
295
|
+
properties: [
|
|
296
|
+
{ name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
|
|
297
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
|
|
298
|
+
matrixOrientationPropertyLayout,
|
|
299
|
+
lookupPropertyLayout('likelihoodIds', 4),
|
|
300
|
+
lookupPropertyLayout('severityIds', 5),
|
|
301
|
+
matrixPropertyLayout,
|
|
302
|
+
],
|
|
303
|
+
},
|
|
304
|
+
update: {
|
|
305
|
+
sections: [{ id: 'basic-info' }, { id: 'matrix-definition' }],
|
|
306
|
+
properties: [
|
|
307
|
+
{ name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
|
|
308
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
|
|
309
|
+
matrixOrientationPropertyLayout,
|
|
310
|
+
lookupPropertyLayout('likelihoodIds', 4),
|
|
311
|
+
lookupPropertyLayout('severityIds', 5),
|
|
312
|
+
matrixPropertyLayout,
|
|
313
|
+
],
|
|
314
|
+
},
|
|
315
|
+
single: {
|
|
316
|
+
title: '{{ title }}',
|
|
317
|
+
sections: [{ id: 'basic-info' }, { id: 'matrix-definition' }],
|
|
318
|
+
properties: [
|
|
319
|
+
{ name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
|
|
320
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
|
|
321
|
+
matrixOrientationPropertyLayout,
|
|
322
|
+
lookupPropertyLayout('likelihoodIds', 4),
|
|
323
|
+
lookupPropertyLayout('severityIds', 5),
|
|
324
|
+
matrixPropertyLayout,
|
|
325
|
+
],
|
|
326
|
+
actions: [...entityMasterRecordActions()],
|
|
327
|
+
},
|
|
328
|
+
list: {
|
|
329
|
+
actions: [...entityMasterCrudActions()],
|
|
330
|
+
views: [
|
|
331
|
+
createAllQueryView({
|
|
332
|
+
sorts: [{ name: 'title', dir: 'asc' }],
|
|
333
|
+
}),
|
|
334
|
+
],
|
|
335
|
+
},
|
|
336
|
+
},
|
|
337
|
+
},
|
|
338
|
+
};
|
|
339
|
+
return entityDef;
|
|
340
|
+
}
|
|
341
|
+
//#endregion
|
|
342
|
+
|
|
343
|
+
/**
|
|
344
|
+
* Generated bundle index. Do not edit.
|
|
345
|
+
*/
|
|
346
|
+
|
|
347
|
+
export { factoryRiskMatrixCell };
|
|
348
|
+
//# sourceMappingURL=acorex-platform-module-risk-management-client-contracts-entities-risk-matrix-cell.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-risk-management-client-contracts-entities-risk-matrix-cell.mjs","sources":["../../../../libs/modules/risk-management/contracts/src/risk-matrix-axis-mapping.ts","../../../../libs/modules/risk-management/contracts/src/root-config.ts","../../../../libs/modules/risk-management/contracts/src/entities/risk-matrix-cell/risk-matrix-cell.entity.ts","../../../../libs/modules/risk-management/contracts/src/acorex-platform-module-risk-management-client-contracts-entities-risk-matrix-cell.ts"],"sourcesContent":["//#region ---- Types ----\n\n/** Lookup properties on RiskMatrixCell that can be assigned to matrix axes. */\nexport type AXMRiskMatrixAxisProperty = 'likelihoodId' | 'severityId' | 'riskRatingId';\n\nexport interface AXMRiskMatrixAxisMapping {\n rowProperty: AXMRiskMatrixAxisProperty;\n columnProperty: AXMRiskMatrixAxisProperty;\n depthProperty: AXMRiskMatrixAxisProperty;\n}\n\nexport type AXMRiskMatrixOrientation = 'likelihood-rows' | 'severity-rows';\n\n//#endregion\n\n//#region ---- Constants ----\n\nexport const RISK_MATRIX_AXIS_PROPERTIES: readonly AXMRiskMatrixAxisProperty[] = [\n 'likelihoodId',\n 'severityId',\n 'riskRatingId',\n] as const;\n\nexport const DEFAULT_RISK_MATRIX_AXIS_MAPPING: AXMRiskMatrixAxisMapping = {\n rowProperty: 'likelihoodId',\n columnProperty: 'severityId',\n depthProperty: 'riskRatingId',\n};\n\nexport const RISK_MATRIX_AXIS_PROPERTY_SELECT_OPTIONS = [\n {\n id: 'likelihoodId',\n title: '@risk-management:risk-matrix-cells.entities.risk-matrix-cell.fields.likelihood-id.title',\n },\n {\n id: 'severityId',\n title: '@risk-management:risk-matrix-cells.entities.risk-matrix-cell.fields.severity-id.title',\n },\n {\n id: 'riskRatingId',\n title: '@risk-management:risk-matrix-cells.entities.risk-matrix-cell.fields.risk-rating-id.title',\n },\n] as const;\n\nexport const DEFAULT_RISK_MATRIX_ORIENTATION: AXMRiskMatrixOrientation = 'likelihood-rows';\n\nexport const RISK_MATRIX_ORIENTATION_OPTIONS: Array<{ id: AXMRiskMatrixOrientation; title: string }> = [\n {\n id: 'likelihood-rows',\n title:\n '@risk-management:risk-matrix-cells.entities.risk-matrix-cell.fields.matrix-orientation.options.likelihood-rows',\n },\n {\n id: 'severity-rows',\n title:\n '@risk-management:risk-matrix-cells.entities.risk-matrix-cell.fields.matrix-orientation.options.severity-rows',\n },\n];\n\nexport const RISK_MATRIX_ORIENTATION_TITLE_KEYS: Record<AXMRiskMatrixOrientation, string> = {\n 'likelihood-rows': '@risk-management:risk-matrix-cells.components.risk-matrix.titles.likelihood-rows',\n 'severity-rows': '@risk-management:risk-matrix-cells.components.risk-matrix.titles.severity-rows',\n};\n\n//#endregion\n","//#region ---- Root Configuration ----\n\nconst config = {\n i18n: 'risk-management',\n module: 'RiskManagement',\n route: 'risk-management',\n};\n\nexport const RootConfig = {\n config,\n module: {\n route: config.route,\n name: config.module,\n title: '@risk-management:module.title',\n icon: 'fa-light fa-chart-line',\n },\n entities: {\n riskLikelihood: {\n name: 'RiskLikelihood',\n source: `${config.module}.RiskLikelihood`,\n title: '@risk-management:risk-likelihoods.entities.risk-likelihood.title',\n titlePlural: '@risk-management:risk-likelihoods.entities.risk-likelihood.plural',\n icon: 'fa-light fa-signal',\n },\n riskSeverity: {\n name: 'RiskSeverity',\n source: `${config.module}.RiskSeverity`,\n title: '@risk-management:risk-severities.entities.risk-severity.title',\n titlePlural: '@risk-management:risk-severities.entities.risk-severity.plural',\n icon: 'fa-light fa-gauge-high',\n },\n riskRating: {\n name: 'RiskRating',\n source: `${config.module}.RiskRating`,\n title: '@risk-management:risk-ratings.entities.risk-rating.title',\n titlePlural: '@risk-management:risk-ratings.entities.risk-rating.plural',\n icon: 'fa-light fa-ranking-star',\n },\n riskMatrixCell: {\n name: 'RiskMatrixCell',\n source: `${config.module}.RiskMatrixCell`,\n title: '@risk-management:risk-matrix-cells.entities.risk-matrix-cell.title',\n titlePlural: '@risk-management:risk-matrix-cells.entities.risk-matrix-cell.plural',\n icon: 'fa-light fa-table-cells',\n },\n },\n};\n\n//#endregion\n","import { AXPWidgetsCatalog, AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';\n//#region ---- Imports ----\nimport { DEFAULT_RISK_MATRIX_ORIENTATION, RISK_MATRIX_ORIENTATION_OPTIONS } from '../../risk-matrix-axis-mapping';\nimport { RootConfig } from '../../root-config';\n\n//#endregion\n\n//#region ---- Constants ----\n\nconst listSortAndFilterOptions = {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n};\n\nconst lookupPropertyLayout = (name: string, order: number) => ({\n name,\n layout: { positions: { lg: { colSpan: 6, order } } },\n});\n\nconst matrixPropertyLayout = {\n name: 'matrix',\n layout: { positions: { lg: { colSpan: 12, order: 7 } } },\n};\n\nconst matrixOrientationPropertyLayout = {\n name: 'matrixOrientation',\n layout: { positions: { lg: { colSpan: 12, order: 3 } } },\n};\n\nconst riskMatrixAxisLookupOptions = (\n entityKey: keyof typeof RootConfig.entities,\n exposeCollection: string,\n) => ({\n look: 'drop-down' as const,\n multiple: true,\n textField: 'title',\n valueField: 'id',\n entity: `${RootConfig.module.name}.${RootConfig.entities[entityKey].name}`,\n columns: ['code', 'title'],\n expose: [\n { source: 'id', target: `${exposeCollection}.{id}` },\n { source: 'title', target: `${exposeCollection}.{title}` },\n { source: 'code', target: `${exposeCollection}.{code}` },\n ],\n});\n\n//#endregion\n\n//#region ---- Entity factory ----\n\nexport async function factoryRiskMatrixCell(): Promise<AXPEntity | null> {\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.riskMatrixCell.name,\n title: RootConfig.entities.riskMatrixCell.title,\n icon: RootConfig.entities.riskMatrixCell.icon,\n formats: {\n individual: RootConfig.entities.riskMatrixCell.title,\n plural: RootConfig.entities.riskMatrixCell.titlePlural,\n searchResult: {\n title: '{{ title }}',\n description: '{{ code }}',\n },\n },\n plugins: [\n { name: 'history' },\n { name: 'identifier', options: { field: 'code', rule: 'risk-matrix-cell-code' } },\n { name: 'unique-fields', options: { fields: 'code', scope: 'global' } },\n {\n name: 'category',\n options: {\n appearance: { icon: true, color: true },\n },\n },\n { name: 'catalog-scope' },\n { name: 'archive' },\n ],\n groups: [\n {\n id: 'basic-info',\n title: '@risk-management:risk-matrix-cells.entities.risk-matrix-cell.groups.basic-info',\n },\n {\n id: 'matrix-definition',\n title: '@risk-management:risk-matrix-cells.entities.risk-matrix-cell.groups.matrix-definition',\n },\n ],\n properties: [\n {\n name: 'id',\n title: '@general:terms.common.id',\n groupId: 'basic-info',\n schema: { dataType: 'uuid', visible: false, nullable: false, readonly: true, unique: { enabled: true } },\n },\n {\n name: 'code',\n title: '@risk-management:risk-matrix-cells.entities.risk-matrix-cell.fields.code.title',\n groupId: 'basic-info',\n options: listSortAndFilterOptions,\n schema: {\n dataType: 'string',\n unique: { enabled: true },\n interface: {\n type: AXPWidgetsCatalog.text,\n options: {\n disabled: true,\n placeholder: '@risk-management:risk-matrix-cells.entities.risk-matrix-cell.fields.code.placeholder',\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'title',\n title: '@risk-management:risk-matrix-cells.entities.risk-matrix-cell.fields.title.title',\n groupId: 'basic-info',\n options: listSortAndFilterOptions,\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsCatalog.text,\n options: {\n placeholder: '@risk-management:risk-matrix-cells.entities.risk-matrix-cell.fields.title.placeholder',\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'matrixOrientation',\n title: '@risk-management:risk-matrix-cells.entities.risk-matrix-cell.fields.matrix-orientation.title',\n groupId: 'matrix-definition',\n options: {\n sort: { enabled: false },\n filter: { advance: { enabled: false }, inline: { enabled: false } },\n },\n schema: {\n dataType: 'string',\n defaultValue: DEFAULT_RISK_MATRIX_ORIENTATION,\n interface: {\n type: AXPWidgetsList.Editors.SelectionList,\n options: {\n multiple: false,\n showControl: true,\n direction: { id: 'horizontal' },\n valueField: 'id',\n textField: 'title',\n dataSource: [...RISK_MATRIX_ORIENTATION_OPTIONS],\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'likelihoodIds',\n title: '@risk-management:risk-matrix-cells.entities.risk-matrix-cell.fields.likelihood-id.title',\n groupId: 'matrix-definition',\n options: {\n sort: { enabled: false },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'array',\n defaultValue: [],\n interface: {\n type: AXPWidgetsList.Editors.LookupBox,\n options: riskMatrixAxisLookupOptions('riskLikelihood', 'likelihoodList'),\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'severityIds',\n title: '@risk-management:risk-matrix-cells.entities.risk-matrix-cell.fields.severity-id.title',\n groupId: 'matrix-definition',\n options: {\n sort: { enabled: false },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'array',\n defaultValue: [],\n interface: {\n type: AXPWidgetsList.Editors.LookupBox,\n options: riskMatrixAxisLookupOptions('riskSeverity', 'severityList'),\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'matrix',\n title: '@risk-management:risk-matrix-cells.entities.risk-matrix-cell.fields.matrix.title',\n groupId: 'matrix-definition',\n options: {\n sort: { enabled: false },\n filter: { advance: { enabled: false }, inline: { enabled: false } },\n },\n schema: {\n dataType: 'object',\n interface: {\n type: AXPWidgetsList.Editors.RiskMatrix,\n options: {},\n },\n },\n },\n ],\n columns: [\n { name: 'code' },\n { name: 'title' },\n { name: 'likelihoodIds', options: { dataPath: 'likelihoodList' } },\n { name: 'severityIds', options: { dataPath: 'severityList' } },\n { name: 'matrix', options: { order: 5 } },\n ],\n interfaces: {\n master: {\n create: {\n sections: [{ id: 'basic-info' }, { id: 'matrix-definition' }],\n properties: [\n { name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },\n matrixOrientationPropertyLayout,\n lookupPropertyLayout('likelihoodIds', 4),\n lookupPropertyLayout('severityIds', 5),\n matrixPropertyLayout,\n ],\n },\n update: {\n sections: [{ id: 'basic-info' }, { id: 'matrix-definition' }],\n properties: [\n { name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },\n matrixOrientationPropertyLayout,\n lookupPropertyLayout('likelihoodIds', 4),\n lookupPropertyLayout('severityIds', 5),\n matrixPropertyLayout,\n ],\n },\n single: {\n title: '{{ title }}',\n sections: [{ id: 'basic-info' }, { id: 'matrix-definition' }],\n properties: [\n { name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },\n matrixOrientationPropertyLayout,\n lookupPropertyLayout('likelihoodIds', 4),\n lookupPropertyLayout('severityIds', 5),\n matrixPropertyLayout,\n ],\n actions: [...entityMasterRecordActions()],\n },\n list: {\n actions: [...entityMasterCrudActions()],\n views: [\n createAllQueryView({\n sorts: [{ name: 'title', dir: 'asc' }],\n }),\n ],\n },\n },\n },\n };\n\n return entityDef;\n}\n\n//#endregion\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './entity-entry.risk-matrix-cell';\n"],"names":[],"mappings":";;;AAAA;AAaA;AAEA;AAEO,MAAM,2BAA2B,GAAyC;IAC/E,cAAc;IACd,YAAY;IACZ,cAAc;CACN;AAEH,MAAM,gCAAgC,GAA6B;AACxE,IAAA,WAAW,EAAE,cAAc;AAC3B,IAAA,cAAc,EAAE,YAAY;AAC5B,IAAA,aAAa,EAAE,cAAc;CAC9B;AAEM,MAAM,wCAAwC,GAAG;AACtD,IAAA;AACE,QAAA,EAAE,EAAE,cAAc;AAClB,QAAA,KAAK,EAAE,yFAAyF;AACjG,KAAA;AACD,IAAA;AACE,QAAA,EAAE,EAAE,YAAY;AAChB,QAAA,KAAK,EAAE,uFAAuF;AAC/F,KAAA;AACD,IAAA;AACE,QAAA,EAAE,EAAE,cAAc;AAClB,QAAA,KAAK,EAAE,0FAA0F;AAClG,KAAA;CACO;AAEH,MAAM,+BAA+B,GAA6B,iBAAiB;AAEnF,MAAM,+BAA+B,GAA2D;AACrG,IAAA;AACE,QAAA,EAAE,EAAE,iBAAiB;AACrB,QAAA,KAAK,EACH,gHAAgH;AACnH,KAAA;AACD,IAAA;AACE,QAAA,EAAE,EAAE,eAAe;AACnB,QAAA,KAAK,EACH,8GAA8G;AACjH,KAAA;CACF;AAEM,MAAM,kCAAkC,GAA6C;AAC1F,IAAA,iBAAiB,EAAE,kFAAkF;AACrG,IAAA,eAAe,EAAE,gFAAgF;CAClG;AAED;;AChEA;AAEA,MAAM,MAAM,GAAG;AACb,IAAA,IAAI,EAAE,iBAAiB;AACvB,IAAA,MAAM,EAAE,gBAAgB;AACxB,IAAA,KAAK,EAAE,iBAAiB;CACzB;AAEM,MAAM,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