@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
@@ -1,10 +1,10 @@
1
- import { AXPWidgetsCatalog, AXPWidgetsList } from '@acorex-platform/framework-shared/core';
1
+ import { AXPWidgetsList, AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';
2
2
  import { createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';
3
- import { R as RootConfig } from './acorex-platform-module-risk-management-client-contracts-entity-catalog-acorex-platform-module-risk-management-client-contracts-entity-catalog-Dc6Me3H6.mjs';
3
+ import { R as RootConfig } from './acorex-platform-module-risk-management-client-contracts-entity-catalog-acorex-platform-module-risk-management-client-contracts-entity-catalog-D6WaBLYS.mjs';
4
4
 
5
- //#region ---- Types ----
5
+ //#region ----- Types -----
6
6
  //#endregion
7
- //#region ---- Constants ----
7
+ //#region ----- Constants -----
8
8
  const RISK_MATRIX_AXIS_PROPERTIES = [
9
9
  'likelihoodId',
10
10
  'severityId',
@@ -15,37 +15,26 @@ const DEFAULT_RISK_MATRIX_AXIS_MAPPING = {
15
15
  columnProperty: 'severityId',
16
16
  depthProperty: 'riskRatingId',
17
17
  };
18
- const RISK_MATRIX_AXIS_PROPERTY_SELECT_OPTIONS = [
19
- {
20
- id: 'likelihoodId',
21
- title: '@risk-management:risk-matrix-cells.entities.risk-matrix-cell.fields.likelihood-id.title',
22
- },
23
- {
24
- id: 'severityId',
25
- title: '@risk-management:risk-matrix-cells.entities.risk-matrix-cell.fields.severity-id.title',
26
- },
27
- {
28
- id: 'riskRatingId',
29
- title: '@risk-management:risk-matrix-cells.entities.risk-matrix-cell.fields.risk-rating-id.title',
30
- },
31
- ];
18
+ const I18N_RISK_MATRIX_ENTITY = '@risk-management:risk-matrices.entities.risk-matrix';
19
+ const I18N_RISK_MATRIX_COMPONENT = '@risk-management:risk-matrices.components.risk-matrix';
32
20
  const DEFAULT_RISK_MATRIX_ORIENTATION = 'likelihood-rows';
33
21
  const RISK_MATRIX_ORIENTATION_OPTIONS = [
34
22
  {
35
23
  id: 'likelihood-rows',
36
- title: '@risk-management:risk-matrix-cells.entities.risk-matrix-cell.fields.matrix-orientation.options.likelihood-rows',
24
+ title: `${I18N_RISK_MATRIX_ENTITY}.fields.matrix-orientation.options.likelihood-rows`,
37
25
  },
38
26
  {
39
27
  id: 'severity-rows',
40
- title: '@risk-management:risk-matrix-cells.entities.risk-matrix-cell.fields.matrix-orientation.options.severity-rows',
28
+ title: `${I18N_RISK_MATRIX_ENTITY}.fields.matrix-orientation.options.severity-rows`,
41
29
  },
42
30
  ];
43
31
  const RISK_MATRIX_ORIENTATION_TITLE_KEYS = {
44
- 'likelihood-rows': '@risk-management:risk-matrix-cells.components.risk-matrix.titles.likelihood-rows',
45
- 'severity-rows': '@risk-management:risk-matrix-cells.components.risk-matrix.titles.severity-rows',
32
+ 'likelihood-rows': `${I18N_RISK_MATRIX_COMPONENT}.titles.likelihood-rows`,
33
+ 'severity-rows': `${I18N_RISK_MATRIX_COMPONENT}.titles.severity-rows`,
46
34
  };
47
35
  //#endregion
48
36
 
37
+ //#region ---- Imports ----
49
38
  //#endregion
50
39
  //#region ---- Constants ----
51
40
  const listSortAndFilterOptions = {
@@ -54,40 +43,100 @@ const listSortAndFilterOptions = {
54
43
  };
55
44
  const lookupPropertyLayout = (name, order) => ({
56
45
  name,
57
- layout: { positions: { lg: { colSpan: 6, order } } },
46
+ layout: { positions: { lg: { colSpan: 4, order } } },
58
47
  });
59
- const matrixPropertyLayout = {
60
- name: 'matrix',
61
- layout: { positions: { lg: { colSpan: 12, order: 7 } } },
48
+ const cellsPropertyLayout = {
49
+ name: 'cells',
50
+ layout: { positions: { lg: { colSpan: 12, order: 8 } } },
62
51
  };
63
52
  const matrixOrientationPropertyLayout = {
64
53
  name: 'matrixOrientation',
65
- layout: { positions: { lg: { colSpan: 12, order: 3 } } },
54
+ layout: { positions: { lg: { colSpan: 12, order: 4 } } },
66
55
  };
67
- const riskMatrixAxisLookupOptions = (entityKey, exposeCollection) => ({
68
- look: 'drop-down',
69
- multiple: true,
56
+ const riskMatrixScaleLookupOptions = (entityKey, exposeTarget) => ({
57
+ look: 'select',
58
+ multiple: false,
70
59
  textField: 'title',
71
60
  valueField: 'id',
72
61
  entity: `${RootConfig.module.name}.${RootConfig.entities[entityKey].name}`,
73
- columns: ['code', 'title'],
62
+ allowCreate: 'quick',
63
+ columns: [
64
+ 'code',
65
+ 'title',
66
+ { name: 'levels', visible: false },
67
+ { name: 'levels.id', visible: false },
68
+ { name: 'levels.code', visible: false },
69
+ { name: 'levels.title', visible: false },
70
+ { name: 'levels.score', visible: false },
71
+ { name: 'levels.color', visible: false },
72
+ { name: 'levels.order', visible: false },
73
+ ],
74
74
  expose: [
75
- { source: 'id', target: `${exposeCollection}.{id}` },
76
- { source: 'title', target: `${exposeCollection}.{title}` },
77
- { source: 'code', target: `${exposeCollection}.{code}` },
75
+ { source: 'id', target: `${exposeTarget}.id` },
76
+ { source: 'title', target: `${exposeTarget}.title` },
77
+ { source: 'code', target: `${exposeTarget}.code` },
78
+ { source: 'levels', target: `${exposeTarget}.levels` },
78
79
  ],
79
80
  });
81
+ const scaleLookupProperty = (name, entityKey, exposeTarget, titleKey) => ({
82
+ name,
83
+ title: titleKey,
84
+ groupId: 'matrix-definition',
85
+ options: {
86
+ sort: { enabled: false },
87
+ filter: { advance: { enabled: true }, inline: { enabled: true } },
88
+ },
89
+ schema: {
90
+ dataType: 'string',
91
+ nullable: false,
92
+ interface: {
93
+ type: AXPWidgetsList.Editors.LookupBox,
94
+ options: riskMatrixScaleLookupOptions(entityKey, exposeTarget),
95
+ },
96
+ },
97
+ validations: [{ rule: 'required' }],
98
+ });
99
+ const SCALE_FORM_PROPERTIES = [
100
+ lookupPropertyLayout('likelihoodScaleId', 5),
101
+ lookupPropertyLayout('severityScaleId', 6),
102
+ lookupPropertyLayout('ratingScaleId', 7),
103
+ ];
104
+ const MASTER_FORM_PROPERTIES = [
105
+ { name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
106
+ { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
107
+ { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
108
+ matrixOrientationPropertyLayout,
109
+ ...SCALE_FORM_PROPERTIES,
110
+ cellsPropertyLayout,
111
+ ];
112
+ const I18N_ENTITY = '@risk-management:risk-matrices.entities.risk-matrix';
80
113
  //#endregion
81
114
  //#region ---- Entity factory ----
82
- async function factoryRiskMatrixCell() {
115
+ async function factoryRiskMatrix() {
83
116
  const entityDef = {
84
117
  module: RootConfig.module.name,
85
- name: RootConfig.entities.riskMatrixCell.name,
86
- title: RootConfig.entities.riskMatrixCell.title,
87
- icon: RootConfig.entities.riskMatrixCell.icon,
118
+ name: RootConfig.entities.riskMatrix.name,
119
+ title: RootConfig.entities.riskMatrix.title,
120
+ icon: RootConfig.entities.riskMatrix.icon,
121
+ searchTags: [
122
+ 'risk-matrix',
123
+ 'matrix',
124
+ 'likelihood-scale',
125
+ 'severity-scale',
126
+ 'rating-scale',
127
+ 'likelihood',
128
+ 'severity',
129
+ 'risk-rating',
130
+ 'matrix-orientation',
131
+ 'hazard-assessment',
132
+ 'ماتریس ریسک',
133
+ 'مقیاس احتمال',
134
+ 'مقیاس شدت',
135
+ 'مقیاس رتبه',
136
+ ],
88
137
  formats: {
89
- individual: RootConfig.entities.riskMatrixCell.title,
90
- plural: RootConfig.entities.riskMatrixCell.titlePlural,
138
+ individual: RootConfig.entities.riskMatrix.title,
139
+ plural: RootConfig.entities.riskMatrix.titlePlural,
91
140
  searchResult: {
92
141
  title: '{{ title }}',
93
142
  description: '{{ code }}',
@@ -95,7 +144,7 @@ async function factoryRiskMatrixCell() {
95
144
  },
96
145
  plugins: [
97
146
  { name: 'history' },
98
- { name: 'identifier', options: { field: 'code', rule: 'risk-matrix-cell-code' } },
147
+ { name: 'identifier', options: { field: 'code', rule: 'risk-matrix-code' } },
99
148
  { name: 'unique-fields', options: { fields: 'code', scope: 'global' } },
100
149
  {
101
150
  name: 'category',
@@ -109,11 +158,11 @@ async function factoryRiskMatrixCell() {
109
158
  groups: [
110
159
  {
111
160
  id: 'basic-info',
112
- title: '@risk-management:risk-matrix-cells.entities.risk-matrix-cell.groups.basic-info',
161
+ title: `${I18N_ENTITY}.groups.basic-info`,
113
162
  },
114
163
  {
115
164
  id: 'matrix-definition',
116
- title: '@risk-management:risk-matrix-cells.entities.risk-matrix-cell.groups.matrix-definition',
165
+ title: `${I18N_ENTITY}.groups.matrix-definition`,
117
166
  },
118
167
  ],
119
168
  properties: [
@@ -125,7 +174,7 @@ async function factoryRiskMatrixCell() {
125
174
  },
126
175
  {
127
176
  name: 'code',
128
- title: '@risk-management:risk-matrix-cells.entities.risk-matrix-cell.fields.code.title',
177
+ title: `${I18N_ENTITY}.fields.code.title`,
129
178
  groupId: 'basic-info',
130
179
  options: listSortAndFilterOptions,
131
180
  schema: {
@@ -135,7 +184,7 @@ async function factoryRiskMatrixCell() {
135
184
  type: AXPWidgetsCatalog.text,
136
185
  options: {
137
186
  disabled: true,
138
- placeholder: '@risk-management:risk-matrix-cells.entities.risk-matrix-cell.fields.code.placeholder',
187
+ placeholder: `${I18N_ENTITY}.fields.code.placeholder`,
139
188
  },
140
189
  },
141
190
  },
@@ -143,7 +192,7 @@ async function factoryRiskMatrixCell() {
143
192
  },
144
193
  {
145
194
  name: 'title',
146
- title: '@risk-management:risk-matrix-cells.entities.risk-matrix-cell.fields.title.title',
195
+ title: `${I18N_ENTITY}.fields.title.title`,
147
196
  groupId: 'basic-info',
148
197
  options: listSortAndFilterOptions,
149
198
  schema: {
@@ -151,15 +200,34 @@ async function factoryRiskMatrixCell() {
151
200
  interface: {
152
201
  type: AXPWidgetsCatalog.text,
153
202
  options: {
154
- placeholder: '@risk-management:risk-matrix-cells.entities.risk-matrix-cell.fields.title.placeholder',
203
+ placeholder: `${I18N_ENTITY}.fields.title.placeholder`,
155
204
  },
156
205
  },
157
206
  },
158
207
  validations: [{ rule: 'required' }],
159
208
  },
209
+ {
210
+ name: 'description',
211
+ title: '@general:terms.common.description',
212
+ groupId: 'basic-info',
213
+ options: {
214
+ sort: { enabled: false },
215
+ filter: { advance: { enabled: true }, inline: { enabled: false } },
216
+ },
217
+ schema: {
218
+ dataType: 'string',
219
+ nullable: true,
220
+ interface: {
221
+ type: AXPWidgetsCatalog.largeText,
222
+ options: {
223
+ placeholder: `${I18N_ENTITY}.fields.description.placeholder`,
224
+ },
225
+ },
226
+ },
227
+ },
160
228
  {
161
229
  name: 'matrixOrientation',
162
- title: '@risk-management:risk-matrix-cells.entities.risk-matrix-cell.fields.matrix-orientation.title',
230
+ title: `${I18N_ENTITY}.fields.matrix-orientation.title`,
163
231
  groupId: 'matrix-definition',
164
232
  options: {
165
233
  sort: { enabled: false },
@@ -182,52 +250,20 @@ async function factoryRiskMatrixCell() {
182
250
  },
183
251
  validations: [{ rule: 'required' }],
184
252
  },
253
+ scaleLookupProperty('likelihoodScaleId', 'riskLikelihoodScale', 'likelihoodScale', `${I18N_ENTITY}.fields.likelihood-scale-id.title`),
254
+ scaleLookupProperty('severityScaleId', 'riskSeverityScale', 'severityScale', `${I18N_ENTITY}.fields.severity-scale-id.title`),
255
+ scaleLookupProperty('ratingScaleId', 'riskRatingScale', 'ratingScale', `${I18N_ENTITY}.fields.rating-scale-id.title`),
185
256
  {
186
- name: 'likelihoodIds',
187
- title: '@risk-management:risk-matrix-cells.entities.risk-matrix-cell.fields.likelihood-id.title',
257
+ name: 'cells',
258
+ title: `${I18N_ENTITY}.fields.cells.title`,
188
259
  groupId: 'matrix-definition',
189
260
  options: {
190
261
  sort: { enabled: false },
191
- filter: { advance: { enabled: true }, inline: { enabled: true } },
192
- },
193
- schema: {
194
- dataType: 'array',
195
- defaultValue: [],
196
- interface: {
197
- type: AXPWidgetsList.Editors.LookupBox,
198
- options: riskMatrixAxisLookupOptions('riskLikelihood', 'likelihoodList'),
199
- },
200
- },
201
- validations: [{ rule: 'required' }],
202
- },
203
- {
204
- name: 'severityIds',
205
- title: '@risk-management:risk-matrix-cells.entities.risk-matrix-cell.fields.severity-id.title',
206
- groupId: 'matrix-definition',
207
- options: {
208
- sort: { enabled: false },
209
- filter: { advance: { enabled: true }, inline: { enabled: true } },
262
+ filter: { advance: { enabled: false }, inline: { enabled: false } },
210
263
  },
211
264
  schema: {
212
265
  dataType: 'array',
213
266
  defaultValue: [],
214
- interface: {
215
- type: AXPWidgetsList.Editors.LookupBox,
216
- options: riskMatrixAxisLookupOptions('riskSeverity', 'severityList'),
217
- },
218
- },
219
- validations: [{ rule: 'required' }],
220
- },
221
- {
222
- name: 'matrix',
223
- title: '@risk-management:risk-matrix-cells.entities.risk-matrix-cell.fields.matrix.title',
224
- groupId: 'matrix-definition',
225
- options: {
226
- sort: { enabled: false },
227
- filter: { advance: { enabled: false }, inline: { enabled: false } },
228
- },
229
- schema: {
230
- dataType: 'object',
231
267
  interface: {
232
268
  type: AXPWidgetsList.Editors.RiskMatrix,
233
269
  options: {},
@@ -238,45 +274,25 @@ async function factoryRiskMatrixCell() {
238
274
  columns: [
239
275
  { name: 'code' },
240
276
  { name: 'title' },
241
- { name: 'likelihoodIds', options: { dataPath: 'likelihoodList' } },
242
- { name: 'severityIds', options: { dataPath: 'severityList' } },
243
- { name: 'matrix', options: { order: 5 } },
277
+ { name: 'likelihoodScaleId', options: { dataPath: 'likelihoodScale.title' } },
278
+ { name: 'severityScaleId', options: { dataPath: 'severityScale.title' } },
279
+ { name: 'ratingScaleId', options: { dataPath: 'ratingScale.title' } },
280
+ { name: 'cells', options: { order: 5 } },
244
281
  ],
245
282
  interfaces: {
246
283
  master: {
247
284
  create: {
248
285
  sections: [{ id: 'basic-info' }, { id: 'matrix-definition' }],
249
- properties: [
250
- { name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
251
- { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
252
- matrixOrientationPropertyLayout,
253
- lookupPropertyLayout('likelihoodIds', 4),
254
- lookupPropertyLayout('severityIds', 5),
255
- matrixPropertyLayout,
256
- ],
286
+ properties: [...MASTER_FORM_PROPERTIES],
257
287
  },
258
288
  update: {
259
289
  sections: [{ id: 'basic-info' }, { id: 'matrix-definition' }],
260
- properties: [
261
- { name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
262
- { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
263
- matrixOrientationPropertyLayout,
264
- lookupPropertyLayout('likelihoodIds', 4),
265
- lookupPropertyLayout('severityIds', 5),
266
- matrixPropertyLayout,
267
- ],
290
+ properties: [...MASTER_FORM_PROPERTIES],
268
291
  },
269
292
  single: {
270
293
  title: '{{ title }}',
271
294
  sections: [{ id: 'basic-info' }, { id: 'matrix-definition' }],
272
- properties: [
273
- { name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
274
- { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
275
- matrixOrientationPropertyLayout,
276
- lookupPropertyLayout('likelihoodIds', 4),
277
- lookupPropertyLayout('severityIds', 5),
278
- matrixPropertyLayout,
279
- ],
295
+ properties: [...MASTER_FORM_PROPERTIES],
280
296
  actions: [...entityMasterRecordActions()],
281
297
  },
282
298
  list: {
@@ -294,5 +310,5 @@ async function factoryRiskMatrixCell() {
294
310
  }
295
311
  //#endregion
296
312
 
297
- export { factoryRiskMatrixCell };
298
- //# sourceMappingURL=acorex-platform-module-risk-management-client-contracts-entity-catalog-risk-matrix-cell.entity-b97tbRDA.mjs.map
313
+ export { factoryRiskMatrix };
314
+ //# sourceMappingURL=acorex-platform-module-risk-management-client-contracts-entity-catalog-risk-matrix.entity-Chp-843O.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-risk-management-client-contracts-entity-catalog-risk-matrix.entity-Chp-843O.mjs","sources":["../../../../libs/modules/risk-management/contracts/src/risk-matrix-axis-mapping.ts","../../../../libs/modules/risk-management/contracts/src/entities/risk-matrix/risk-matrix.entity.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 ---- 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"],"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,MAAM,kCAAkC,GAA6C;IAC1F,iBAAiB,EAAE,CAAA,EAAG,0BAA0B,CAAA,uBAAA,CAAyB;IACzE,eAAe,EAAE,CAAA,EAAG,0BAA0B,CAAA,qBAAA,CAAuB;CACtE;AAED;;AClDA;AAoBA;AAEA;AAEA,MAAM,wBAAwB,GAAG;AAC/B,IAAA,IAAI,EAAE,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