@acorex-platform/module-risk-management-client 0.0.38 → 0.0.46

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.
Files changed (56) hide show
  1. package/fesm2022/acorex-platform-module-risk-management-client-contracts-entities-risk-likelihood-scale.mjs +361 -0
  2. package/fesm2022/acorex-platform-module-risk-management-client-contracts-entities-risk-likelihood-scale.mjs.map +1 -0
  3. package/fesm2022/acorex-platform-module-risk-management-client-contracts-entities-risk-matrix.mjs +364 -0
  4. package/fesm2022/acorex-platform-module-risk-management-client-contracts-entities-risk-matrix.mjs.map +1 -0
  5. package/fesm2022/acorex-platform-module-risk-management-client-contracts-entities-risk-rating-scale.mjs +388 -0
  6. package/fesm2022/acorex-platform-module-risk-management-client-contracts-entities-risk-rating-scale.mjs.map +1 -0
  7. package/fesm2022/acorex-platform-module-risk-management-client-contracts-entities-risk-severity-scale.mjs +361 -0
  8. package/fesm2022/acorex-platform-module-risk-management-client-contracts-entities-risk-severity-scale.mjs.map +1 -0
  9. package/fesm2022/acorex-platform-module-risk-management-client-contracts-entity-catalog-acorex-platform-module-risk-management-client-contracts-entity-catalog-D6WaBLYS.mjs +72 -0
  10. package/fesm2022/acorex-platform-module-risk-management-client-contracts-entity-catalog-acorex-platform-module-risk-management-client-contracts-entity-catalog-D6WaBLYS.mjs.map +1 -0
  11. package/fesm2022/acorex-platform-module-risk-management-client-contracts-entity-catalog-risk-likelihood-scale.entity-CVdw2sfd.mjs +311 -0
  12. package/fesm2022/acorex-platform-module-risk-management-client-contracts-entity-catalog-risk-likelihood-scale.entity-CVdw2sfd.mjs.map +1 -0
  13. package/fesm2022/{acorex-platform-module-risk-management-client-contracts-entity-catalog-risk-matrix-cell.entity-b97tbRDA.mjs → acorex-platform-module-risk-management-client-contracts-entity-catalog-risk-matrix.entity-Chp-843O.mjs} +131 -115
  14. package/fesm2022/acorex-platform-module-risk-management-client-contracts-entity-catalog-risk-matrix.entity-Chp-843O.mjs.map +1 -0
  15. package/fesm2022/acorex-platform-module-risk-management-client-contracts-entity-catalog-risk-rating-scale.entity-Cjg7aGMl.mjs +338 -0
  16. package/fesm2022/acorex-platform-module-risk-management-client-contracts-entity-catalog-risk-rating-scale.entity-Cjg7aGMl.mjs.map +1 -0
  17. package/fesm2022/acorex-platform-module-risk-management-client-contracts-entity-catalog-risk-severity-scale.entity-Cgti6Xeo.mjs +311 -0
  18. package/fesm2022/acorex-platform-module-risk-management-client-contracts-entity-catalog-risk-severity-scale.entity-Cgti6Xeo.mjs.map +1 -0
  19. package/fesm2022/acorex-platform-module-risk-management-client-contracts-entity-catalog.mjs +1 -1
  20. package/fesm2022/acorex-platform-module-risk-management-client-contracts.mjs +233 -49
  21. package/fesm2022/acorex-platform-module-risk-management-client-contracts.mjs.map +1 -1
  22. package/fesm2022/acorex-platform-module-risk-management-client-local-entities.mjs +4 -4
  23. package/fesm2022/acorex-platform-module-risk-management-client-local-entities.mjs.map +1 -1
  24. package/fesm2022/{acorex-platform-module-risk-management-client-preview-risk-matrix-cell.command-CTGIFUIa.mjs → acorex-platform-module-risk-management-client-preview-risk-matrix.command-gVKnE3c0.mjs} +14 -12
  25. package/fesm2022/acorex-platform-module-risk-management-client-preview-risk-matrix.command-gVKnE3c0.mjs.map +1 -0
  26. package/fesm2022/acorex-platform-module-risk-management-client.mjs +439 -230
  27. package/fesm2022/acorex-platform-module-risk-management-client.mjs.map +1 -1
  28. package/package.json +13 -13
  29. package/types/acorex-platform-module-risk-management-client-contracts-entities-risk-likelihood-scale.d.ts +5 -0
  30. package/types/acorex-platform-module-risk-management-client-contracts-entities-risk-matrix.d.ts +5 -0
  31. package/types/acorex-platform-module-risk-management-client-contracts-entities-risk-rating-scale.d.ts +5 -0
  32. package/types/acorex-platform-module-risk-management-client-contracts-entities-risk-severity-scale.d.ts +5 -0
  33. package/types/acorex-platform-module-risk-management-client-contracts.d.ts +157 -65
  34. package/types/acorex-platform-module-risk-management-client.d.ts +77 -31
  35. package/fesm2022/acorex-platform-module-risk-management-client-contracts-entities-risk-likelihood.mjs +0 -222
  36. package/fesm2022/acorex-platform-module-risk-management-client-contracts-entities-risk-likelihood.mjs.map +0 -1
  37. package/fesm2022/acorex-platform-module-risk-management-client-contracts-entities-risk-matrix-cell.mjs +0 -348
  38. package/fesm2022/acorex-platform-module-risk-management-client-contracts-entities-risk-matrix-cell.mjs.map +0 -1
  39. package/fesm2022/acorex-platform-module-risk-management-client-contracts-entities-risk-rating.mjs +0 -227
  40. package/fesm2022/acorex-platform-module-risk-management-client-contracts-entities-risk-rating.mjs.map +0 -1
  41. package/fesm2022/acorex-platform-module-risk-management-client-contracts-entities-risk-severity.mjs +0 -222
  42. package/fesm2022/acorex-platform-module-risk-management-client-contracts-entities-risk-severity.mjs.map +0 -1
  43. package/fesm2022/acorex-platform-module-risk-management-client-contracts-entity-catalog-acorex-platform-module-risk-management-client-contracts-entity-catalog-Dc6Me3H6.mjs +0 -72
  44. package/fesm2022/acorex-platform-module-risk-management-client-contracts-entity-catalog-acorex-platform-module-risk-management-client-contracts-entity-catalog-Dc6Me3H6.mjs.map +0 -1
  45. package/fesm2022/acorex-platform-module-risk-management-client-contracts-entity-catalog-risk-likelihood.entity-DzwLi3Ga.mjs +0 -172
  46. package/fesm2022/acorex-platform-module-risk-management-client-contracts-entity-catalog-risk-likelihood.entity-DzwLi3Ga.mjs.map +0 -1
  47. package/fesm2022/acorex-platform-module-risk-management-client-contracts-entity-catalog-risk-matrix-cell.entity-b97tbRDA.mjs.map +0 -1
  48. package/fesm2022/acorex-platform-module-risk-management-client-contracts-entity-catalog-risk-rating.entity-CreMsiCu.mjs +0 -177
  49. package/fesm2022/acorex-platform-module-risk-management-client-contracts-entity-catalog-risk-rating.entity-CreMsiCu.mjs.map +0 -1
  50. package/fesm2022/acorex-platform-module-risk-management-client-contracts-entity-catalog-risk-severity.entity-bEyLH8dE.mjs +0 -172
  51. package/fesm2022/acorex-platform-module-risk-management-client-contracts-entity-catalog-risk-severity.entity-bEyLH8dE.mjs.map +0 -1
  52. package/fesm2022/acorex-platform-module-risk-management-client-preview-risk-matrix-cell.command-CTGIFUIa.mjs.map +0 -1
  53. package/types/acorex-platform-module-risk-management-client-contracts-entities-risk-likelihood.d.ts +0 -5
  54. package/types/acorex-platform-module-risk-management-client-contracts-entities-risk-matrix-cell.d.ts +0 -5
  55. package/types/acorex-platform-module-risk-management-client-contracts-entities-risk-rating.d.ts +0 -5
  56. package/types/acorex-platform-module-risk-management-client-contracts-entities-risk-severity.d.ts +0 -5
@@ -0,0 +1,364 @@
1
+ import { AXPWidgetsList, AXPWidgetsCatalog } 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 I18N_RISK_MATRIX_ENTITY = '@risk-management:risk-matrices.entities.risk-matrix';
18
+ const I18N_RISK_MATRIX_COMPONENT = '@risk-management:risk-matrices.components.risk-matrix';
19
+ const DEFAULT_RISK_MATRIX_ORIENTATION = 'likelihood-rows';
20
+ const RISK_MATRIX_ORIENTATION_OPTIONS = [
21
+ {
22
+ id: 'likelihood-rows',
23
+ title: `${I18N_RISK_MATRIX_ENTITY}.fields.matrix-orientation.options.likelihood-rows`,
24
+ },
25
+ {
26
+ id: 'severity-rows',
27
+ title: `${I18N_RISK_MATRIX_ENTITY}.fields.matrix-orientation.options.severity-rows`,
28
+ },
29
+ ];
30
+ const RISK_MATRIX_ORIENTATION_TITLE_KEYS = {
31
+ 'likelihood-rows': `${I18N_RISK_MATRIX_COMPONENT}.titles.likelihood-rows`,
32
+ 'severity-rows': `${I18N_RISK_MATRIX_COMPONENT}.titles.severity-rows`,
33
+ };
34
+ //#endregion
35
+
36
+ //#region ---- Root Configuration ----
37
+ const config = {
38
+ i18n: 'risk-management',
39
+ module: 'RiskManagement',
40
+ route: 'risk-management',
41
+ };
42
+ const RootConfig = {
43
+ config,
44
+ module: {
45
+ route: config.route,
46
+ name: config.module,
47
+ title: '@risk-management:module.title',
48
+ icon: 'fa-light fa-chart-line',
49
+ },
50
+ entities: {
51
+ riskLikelihoodScale: {
52
+ name: 'RiskLikelihoodScale',
53
+ source: `${config.module}.RiskLikelihoodScale`,
54
+ title: '@risk-management:risk-likelihood-scales.entities.risk-likelihood-scale.title',
55
+ titlePlural: '@risk-management:risk-likelihood-scales.entities.risk-likelihood-scale.plural',
56
+ icon: 'fa-light fa-signal',
57
+ },
58
+ riskSeverityScale: {
59
+ name: 'RiskSeverityScale',
60
+ source: `${config.module}.RiskSeverityScale`,
61
+ title: '@risk-management:risk-severity-scales.entities.risk-severity-scale.title',
62
+ titlePlural: '@risk-management:risk-severity-scales.entities.risk-severity-scale.plural',
63
+ icon: 'fa-light fa-gauge-high',
64
+ },
65
+ riskRatingScale: {
66
+ name: 'RiskRatingScale',
67
+ source: `${config.module}.RiskRatingScale`,
68
+ title: '@risk-management:risk-rating-scales.entities.risk-rating-scale.title',
69
+ titlePlural: '@risk-management:risk-rating-scales.entities.risk-rating-scale.plural',
70
+ icon: 'fa-light fa-ranking-star',
71
+ },
72
+ riskMatrix: {
73
+ name: 'RiskMatrix',
74
+ source: `${config.module}.RiskMatrix`,
75
+ title: '@risk-management:risk-matrices.entities.risk-matrix.title',
76
+ titlePlural: '@risk-management:risk-matrices.entities.risk-matrix.plural',
77
+ icon: 'fa-light fa-table-cells',
78
+ },
79
+ },
80
+ };
81
+ //#endregion
82
+
83
+ //#region ---- Imports ----
84
+ //#endregion
85
+ //#region ---- Constants ----
86
+ const listSortAndFilterOptions = {
87
+ sort: { enabled: true },
88
+ filter: { advance: { enabled: true }, inline: { enabled: true } },
89
+ };
90
+ const lookupPropertyLayout = (name, order) => ({
91
+ name,
92
+ layout: { positions: { lg: { colSpan: 4, order } } },
93
+ });
94
+ const cellsPropertyLayout = {
95
+ name: 'cells',
96
+ layout: { positions: { lg: { colSpan: 12, order: 8 } } },
97
+ };
98
+ const matrixOrientationPropertyLayout = {
99
+ name: 'matrixOrientation',
100
+ layout: { positions: { lg: { colSpan: 12, order: 4 } } },
101
+ };
102
+ const riskMatrixScaleLookupOptions = (entityKey, exposeTarget) => ({
103
+ look: 'select',
104
+ multiple: false,
105
+ textField: 'title',
106
+ valueField: 'id',
107
+ entity: `${RootConfig.module.name}.${RootConfig.entities[entityKey].name}`,
108
+ allowCreate: 'quick',
109
+ columns: [
110
+ 'code',
111
+ 'title',
112
+ { name: 'levels', visible: false },
113
+ { name: 'levels.id', visible: false },
114
+ { name: 'levels.code', visible: false },
115
+ { name: 'levels.title', visible: false },
116
+ { name: 'levels.score', visible: false },
117
+ { name: 'levels.color', visible: false },
118
+ { name: 'levels.order', visible: false },
119
+ ],
120
+ expose: [
121
+ { source: 'id', target: `${exposeTarget}.id` },
122
+ { source: 'title', target: `${exposeTarget}.title` },
123
+ { source: 'code', target: `${exposeTarget}.code` },
124
+ { source: 'levels', target: `${exposeTarget}.levels` },
125
+ ],
126
+ });
127
+ const scaleLookupProperty = (name, entityKey, exposeTarget, titleKey) => ({
128
+ name,
129
+ title: titleKey,
130
+ groupId: 'matrix-definition',
131
+ options: {
132
+ sort: { enabled: false },
133
+ filter: { advance: { enabled: true }, inline: { enabled: true } },
134
+ },
135
+ schema: {
136
+ dataType: 'string',
137
+ nullable: false,
138
+ interface: {
139
+ type: AXPWidgetsList.Editors.LookupBox,
140
+ options: riskMatrixScaleLookupOptions(entityKey, exposeTarget),
141
+ },
142
+ },
143
+ validations: [{ rule: 'required' }],
144
+ });
145
+ const SCALE_FORM_PROPERTIES = [
146
+ lookupPropertyLayout('likelihoodScaleId', 5),
147
+ lookupPropertyLayout('severityScaleId', 6),
148
+ lookupPropertyLayout('ratingScaleId', 7),
149
+ ];
150
+ const MASTER_FORM_PROPERTIES = [
151
+ { name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
152
+ { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
153
+ { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
154
+ matrixOrientationPropertyLayout,
155
+ ...SCALE_FORM_PROPERTIES,
156
+ cellsPropertyLayout,
157
+ ];
158
+ const I18N_ENTITY = '@risk-management:risk-matrices.entities.risk-matrix';
159
+ //#endregion
160
+ //#region ---- Entity factory ----
161
+ async function factoryRiskMatrix() {
162
+ const entityDef = {
163
+ module: RootConfig.module.name,
164
+ name: RootConfig.entities.riskMatrix.name,
165
+ title: RootConfig.entities.riskMatrix.title,
166
+ icon: RootConfig.entities.riskMatrix.icon,
167
+ searchTags: [
168
+ 'risk-matrix',
169
+ 'matrix',
170
+ 'likelihood-scale',
171
+ 'severity-scale',
172
+ 'rating-scale',
173
+ 'likelihood',
174
+ 'severity',
175
+ 'risk-rating',
176
+ 'matrix-orientation',
177
+ 'hazard-assessment',
178
+ 'ماتریس ریسک',
179
+ 'مقیاس احتمال',
180
+ 'مقیاس شدت',
181
+ 'مقیاس رتبه',
182
+ ],
183
+ formats: {
184
+ individual: RootConfig.entities.riskMatrix.title,
185
+ plural: RootConfig.entities.riskMatrix.titlePlural,
186
+ searchResult: {
187
+ title: '{{ title }}',
188
+ description: '{{ code }}',
189
+ },
190
+ },
191
+ plugins: [
192
+ { name: 'history' },
193
+ { name: 'identifier', options: { field: 'code', rule: 'risk-matrix-code' } },
194
+ { name: 'unique-fields', options: { fields: 'code', scope: 'global' } },
195
+ {
196
+ name: 'category',
197
+ options: {
198
+ appearance: { icon: true, color: true },
199
+ },
200
+ },
201
+ { name: 'catalog-scope' },
202
+ { name: 'archive' },
203
+ ],
204
+ groups: [
205
+ {
206
+ id: 'basic-info',
207
+ title: `${I18N_ENTITY}.groups.basic-info`,
208
+ },
209
+ {
210
+ id: 'matrix-definition',
211
+ title: `${I18N_ENTITY}.groups.matrix-definition`,
212
+ },
213
+ ],
214
+ properties: [
215
+ {
216
+ name: 'id',
217
+ title: '@general:terms.common.id',
218
+ groupId: 'basic-info',
219
+ schema: { dataType: 'uuid', visible: false, nullable: false, readonly: true, unique: { enabled: true } },
220
+ },
221
+ {
222
+ name: 'code',
223
+ title: `${I18N_ENTITY}.fields.code.title`,
224
+ groupId: 'basic-info',
225
+ options: listSortAndFilterOptions,
226
+ schema: {
227
+ dataType: 'string',
228
+ unique: { enabled: true },
229
+ interface: {
230
+ type: AXPWidgetsCatalog.text,
231
+ options: {
232
+ disabled: true,
233
+ placeholder: `${I18N_ENTITY}.fields.code.placeholder`,
234
+ },
235
+ },
236
+ },
237
+ validations: [{ rule: 'required' }],
238
+ },
239
+ {
240
+ name: 'title',
241
+ title: `${I18N_ENTITY}.fields.title.title`,
242
+ groupId: 'basic-info',
243
+ options: listSortAndFilterOptions,
244
+ schema: {
245
+ dataType: 'string',
246
+ interface: {
247
+ type: AXPWidgetsCatalog.text,
248
+ options: {
249
+ placeholder: `${I18N_ENTITY}.fields.title.placeholder`,
250
+ },
251
+ },
252
+ },
253
+ validations: [{ rule: 'required' }],
254
+ },
255
+ {
256
+ name: 'description',
257
+ title: '@general:terms.common.description',
258
+ groupId: 'basic-info',
259
+ options: {
260
+ sort: { enabled: false },
261
+ filter: { advance: { enabled: true }, inline: { enabled: false } },
262
+ },
263
+ schema: {
264
+ dataType: 'string',
265
+ nullable: true,
266
+ interface: {
267
+ type: AXPWidgetsCatalog.largeText,
268
+ options: {
269
+ placeholder: `${I18N_ENTITY}.fields.description.placeholder`,
270
+ },
271
+ },
272
+ },
273
+ },
274
+ {
275
+ name: 'matrixOrientation',
276
+ title: `${I18N_ENTITY}.fields.matrix-orientation.title`,
277
+ groupId: 'matrix-definition',
278
+ options: {
279
+ sort: { enabled: false },
280
+ filter: { advance: { enabled: false }, inline: { enabled: false } },
281
+ },
282
+ schema: {
283
+ dataType: 'string',
284
+ defaultValue: DEFAULT_RISK_MATRIX_ORIENTATION,
285
+ interface: {
286
+ type: AXPWidgetsList.Editors.SelectionList,
287
+ options: {
288
+ multiple: false,
289
+ showControl: true,
290
+ direction: { id: 'horizontal' },
291
+ valueField: 'id',
292
+ textField: 'title',
293
+ dataSource: [...RISK_MATRIX_ORIENTATION_OPTIONS],
294
+ },
295
+ },
296
+ },
297
+ validations: [{ rule: 'required' }],
298
+ },
299
+ scaleLookupProperty('likelihoodScaleId', 'riskLikelihoodScale', 'likelihoodScale', `${I18N_ENTITY}.fields.likelihood-scale-id.title`),
300
+ scaleLookupProperty('severityScaleId', 'riskSeverityScale', 'severityScale', `${I18N_ENTITY}.fields.severity-scale-id.title`),
301
+ scaleLookupProperty('ratingScaleId', 'riskRatingScale', 'ratingScale', `${I18N_ENTITY}.fields.rating-scale-id.title`),
302
+ {
303
+ name: 'cells',
304
+ title: `${I18N_ENTITY}.fields.cells.title`,
305
+ groupId: 'matrix-definition',
306
+ options: {
307
+ sort: { enabled: false },
308
+ filter: { advance: { enabled: false }, inline: { enabled: false } },
309
+ },
310
+ schema: {
311
+ dataType: 'array',
312
+ defaultValue: [],
313
+ interface: {
314
+ type: AXPWidgetsList.Editors.RiskMatrix,
315
+ options: {},
316
+ },
317
+ },
318
+ },
319
+ ],
320
+ columns: [
321
+ { name: 'code' },
322
+ { name: 'title' },
323
+ { name: 'likelihoodScaleId', options: { dataPath: 'likelihoodScale.title' } },
324
+ { name: 'severityScaleId', options: { dataPath: 'severityScale.title' } },
325
+ { name: 'ratingScaleId', options: { dataPath: 'ratingScale.title' } },
326
+ { name: 'cells', options: { order: 5 } },
327
+ ],
328
+ interfaces: {
329
+ master: {
330
+ create: {
331
+ sections: [{ id: 'basic-info' }, { id: 'matrix-definition' }],
332
+ properties: [...MASTER_FORM_PROPERTIES],
333
+ },
334
+ update: {
335
+ sections: [{ id: 'basic-info' }, { id: 'matrix-definition' }],
336
+ properties: [...MASTER_FORM_PROPERTIES],
337
+ },
338
+ single: {
339
+ title: '{{ title }}',
340
+ sections: [{ id: 'basic-info' }, { id: 'matrix-definition' }],
341
+ properties: [...MASTER_FORM_PROPERTIES],
342
+ actions: [...entityMasterRecordActions()],
343
+ },
344
+ list: {
345
+ actions: [...entityMasterCrudActions()],
346
+ views: [
347
+ createAllQueryView({
348
+ sorts: [{ name: 'title', dir: 'asc' }],
349
+ }),
350
+ ],
351
+ },
352
+ },
353
+ },
354
+ };
355
+ return entityDef;
356
+ }
357
+ //#endregion
358
+
359
+ /**
360
+ * Generated bundle index. Do not edit.
361
+ */
362
+
363
+ export { factoryRiskMatrix };
364
+ //# sourceMappingURL=acorex-platform-module-risk-management-client-contracts-entities-risk-matrix.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-risk-management-client-contracts-entities-risk-matrix.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/risk-matrix.entity.ts","../../../../libs/modules/risk-management/contracts/src/acorex-platform-module-risk-management-client-contracts-entities-risk-matrix.ts"],"sourcesContent":["//#region ----- Types -----\n\n/** Spreadsheet axis slots. Values are display keys, not RiskMatrix FK field names. */\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\nconst I18N_RISK_MATRIX_ENTITY = '@risk-management:risk-matrices.entities.risk-matrix';\nconst I18N_RISK_MATRIX_COMPONENT = '@risk-management:risk-matrices.components.risk-matrix';\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: `${I18N_RISK_MATRIX_ENTITY}.fields.matrix-orientation.options.likelihood-rows`,\n },\n {\n id: 'severity-rows',\n title: `${I18N_RISK_MATRIX_ENTITY}.fields.matrix-orientation.options.severity-rows`,\n },\n];\n\nexport const RISK_MATRIX_ORIENTATION_TITLE_KEYS: Record<AXMRiskMatrixOrientation, string> = {\n 'likelihood-rows': `${I18N_RISK_MATRIX_COMPONENT}.titles.likelihood-rows`,\n 'severity-rows': `${I18N_RISK_MATRIX_COMPONENT}.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 riskLikelihoodScale: {\n name: 'RiskLikelihoodScale',\n source: `${config.module}.RiskLikelihoodScale`,\n title: '@risk-management:risk-likelihood-scales.entities.risk-likelihood-scale.title',\n titlePlural: '@risk-management:risk-likelihood-scales.entities.risk-likelihood-scale.plural',\n icon: 'fa-light fa-signal',\n },\n riskSeverityScale: {\n name: 'RiskSeverityScale',\n source: `${config.module}.RiskSeverityScale`,\n title: '@risk-management:risk-severity-scales.entities.risk-severity-scale.title',\n titlePlural: '@risk-management:risk-severity-scales.entities.risk-severity-scale.plural',\n icon: 'fa-light fa-gauge-high',\n },\n riskRatingScale: {\n name: 'RiskRatingScale',\n source: `${config.module}.RiskRatingScale`,\n title: '@risk-management:risk-rating-scales.entities.risk-rating-scale.title',\n titlePlural: '@risk-management:risk-rating-scales.entities.risk-rating-scale.plural',\n icon: 'fa-light fa-ranking-star',\n },\n riskMatrix: {\n name: 'RiskMatrix',\n source: `${config.module}.RiskMatrix`,\n title: '@risk-management:risk-matrices.entities.risk-matrix.title',\n titlePlural: '@risk-management:risk-matrices.entities.risk-matrix.plural',\n icon: 'fa-light fa-table-cells',\n },\n },\n};\n\n//#endregion\n","//#region ---- Imports ----\n\nimport { AXPWidgetsCatalog, AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport {\n AXPEntity,\n createAllQueryView,\n entityMasterCrudActions,\n entityMasterRecordActions,\n} from '@acorex-platform/framework-shared/entity';\n\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 ---- Types ----\n\ntype RiskMatrixScaleEntityKey = 'riskLikelihoodScale' | 'riskSeverityScale' | 'riskRatingScale';\ntype RiskMatrixScaleExposeTarget = 'likelihoodScale' | 'severityScale' | 'ratingScale';\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: 4, order } } },\n});\n\nconst cellsPropertyLayout = {\n name: 'cells',\n layout: { positions: { lg: { colSpan: 12, order: 8 } } },\n};\n\nconst matrixOrientationPropertyLayout = {\n name: 'matrixOrientation',\n layout: { positions: { lg: { colSpan: 12, order: 4 } } },\n};\n\nconst riskMatrixScaleLookupOptions = (\n entityKey: RiskMatrixScaleEntityKey,\n exposeTarget: RiskMatrixScaleExposeTarget,\n) => ({\n look: 'select' as const,\n multiple: false,\n textField: 'title',\n valueField: 'id',\n entity: `${RootConfig.module.name}.${RootConfig.entities[entityKey].name}`,\n allowCreate: 'quick' as const,\n columns: [\n 'code',\n 'title',\n { name: 'levels', visible: false },\n { name: 'levels.id', visible: false },\n { name: 'levels.code', visible: false },\n { name: 'levels.title', visible: false },\n { name: 'levels.score', visible: false },\n { name: 'levels.color', visible: false },\n { name: 'levels.order', visible: false },\n ],\n expose: [\n { source: 'id', target: `${exposeTarget}.id` },\n { source: 'title', target: `${exposeTarget}.title` },\n { source: 'code', target: `${exposeTarget}.code` },\n { source: 'levels', target: `${exposeTarget}.levels` },\n ],\n});\n\nconst scaleLookupProperty = (\n name: 'likelihoodScaleId' | 'severityScaleId' | 'ratingScaleId',\n entityKey: RiskMatrixScaleEntityKey,\n exposeTarget: RiskMatrixScaleExposeTarget,\n titleKey: string,\n) => ({\n name,\n title: titleKey,\n groupId: 'matrix-definition',\n options: {\n sort: { enabled: false },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'string' as const,\n nullable: false,\n interface: {\n type: AXPWidgetsList.Editors.LookupBox,\n options: riskMatrixScaleLookupOptions(entityKey, exposeTarget),\n },\n },\n validations: [{ rule: 'required' }],\n});\n\nconst SCALE_FORM_PROPERTIES = [\n lookupPropertyLayout('likelihoodScaleId', 5),\n lookupPropertyLayout('severityScaleId', 6),\n lookupPropertyLayout('ratingScaleId', 7),\n];\n\nconst MASTER_FORM_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 matrixOrientationPropertyLayout,\n ...SCALE_FORM_PROPERTIES,\n cellsPropertyLayout,\n];\n\nconst I18N_ENTITY = '@risk-management:risk-matrices.entities.risk-matrix';\n\n//#endregion\n\n//#region ---- Entity factory ----\n\nexport async function factoryRiskMatrix(): Promise<AXPEntity | null> {\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.riskMatrix.name,\n title: RootConfig.entities.riskMatrix.title,\n icon: RootConfig.entities.riskMatrix.icon,\n searchTags: [\n 'risk-matrix',\n 'matrix',\n 'likelihood-scale',\n 'severity-scale',\n 'rating-scale',\n 'likelihood',\n 'severity',\n 'risk-rating',\n 'matrix-orientation',\n 'hazard-assessment',\n 'ماتریس ریسک',\n 'مقیاس احتمال',\n 'مقیاس شدت',\n 'مقیاس رتبه',\n ],\n formats: {\n individual: RootConfig.entities.riskMatrix.title,\n plural: RootConfig.entities.riskMatrix.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-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: `${I18N_ENTITY}.groups.basic-info`,\n },\n {\n id: 'matrix-definition',\n title: `${I18N_ENTITY}.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: `${I18N_ENTITY}.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: `${I18N_ENTITY}.fields.code.placeholder`,\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'title',\n title: `${I18N_ENTITY}.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: `${I18N_ENTITY}.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: `${I18N_ENTITY}.fields.description.placeholder`,\n },\n },\n },\n },\n {\n name: 'matrixOrientation',\n title: `${I18N_ENTITY}.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 scaleLookupProperty(\n 'likelihoodScaleId',\n 'riskLikelihoodScale',\n 'likelihoodScale',\n `${I18N_ENTITY}.fields.likelihood-scale-id.title`,\n ),\n scaleLookupProperty(\n 'severityScaleId',\n 'riskSeverityScale',\n 'severityScale',\n `${I18N_ENTITY}.fields.severity-scale-id.title`,\n ),\n scaleLookupProperty(\n 'ratingScaleId',\n 'riskRatingScale',\n 'ratingScale',\n `${I18N_ENTITY}.fields.rating-scale-id.title`,\n ),\n {\n name: 'cells',\n title: `${I18N_ENTITY}.fields.cells.title`,\n groupId: 'matrix-definition',\n options: {\n sort: { enabled: false },\n filter: { advance: { enabled: false }, inline: { enabled: false } },\n },\n schema: {\n dataType: 'array',\n defaultValue: [],\n interface: {\n type: AXPWidgetsList.Editors.RiskMatrix,\n options: {},\n },\n },\n },\n ],\n columns: [\n { name: 'code' },\n { name: 'title' },\n { name: 'likelihoodScaleId', options: { dataPath: 'likelihoodScale.title' } },\n { name: 'severityScaleId', options: { dataPath: 'severityScale.title' } },\n { name: 'ratingScaleId', options: { dataPath: 'ratingScale.title' } },\n { name: 'cells', options: { order: 5 } },\n ],\n interfaces: {\n master: {\n create: {\n sections: [{ id: 'basic-info' }, { id: 'matrix-definition' }],\n properties: [...MASTER_FORM_PROPERTIES],\n },\n update: {\n sections: [{ id: 'basic-info' }, { id: 'matrix-definition' }],\n properties: [...MASTER_FORM_PROPERTIES],\n },\n single: {\n title: '{{ title }}',\n sections: [{ id: 'basic-info' }, { id: 'matrix-definition' }],\n properties: [...MASTER_FORM_PROPERTIES],\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';\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;AAED,MAAM,uBAAuB,GAAG,qDAAqD;AACrF,MAAM,0BAA0B,GAAG,uDAAuD;AAEnF,MAAM,+BAA+B,GAA6B,iBAAiB;AAEnF,MAAM,+BAA+B,GAA2D;AACrG,IAAA;AACE,QAAA,EAAE,EAAE,iBAAiB;QACrB,KAAK,EAAE,CAAA,EAAG,uBAAuB,CAAA,kDAAA,CAAoD;AACtF,KAAA;AACD,IAAA;AACE,QAAA,EAAE,EAAE,eAAe;QACnB,KAAK,EAAE,CAAA,EAAG,uBAAuB,CAAA,gDAAA,CAAkD;AACpF,KAAA;CACF;AAEM,M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