@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,338 @@
1
+ import { AXPWidgetsList, AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';
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-D6WaBLYS.mjs';
4
+
5
+ //#region ---- Imports ----
6
+ //#endregion
7
+ //#region ---- Constants ----
8
+ const listSortAndFilterOptions = {
9
+ sort: { enabled: true },
10
+ filter: { advance: { enabled: true }, inline: { enabled: true } },
11
+ };
12
+ const LEVELS_LAYOUT = {
13
+ name: 'levels',
14
+ layout: { label: { visible: false }, order: 4, positions: { lg: { colSpan: 12 } } },
15
+ };
16
+ const SCORE_UNIQUE_MESSAGE = '@risk-management:risk-rating-scales.entities.risk-rating-scale.validations.score-unique';
17
+ const LEVELS_REPEATER_CHILDREN = [
18
+ {
19
+ type: AXPWidgetsList.Layouts.GridLayout,
20
+ mode: 'edit',
21
+ name: 'levelRow',
22
+ options: {
23
+ grid: {
24
+ default: {
25
+ columns: 12,
26
+ gap: '1rem',
27
+ },
28
+ },
29
+ },
30
+ children: [
31
+ {
32
+ type: AXPWidgetsList.Layouts.GridItemLayout,
33
+ mode: 'edit',
34
+ options: { colSpan: 2 },
35
+ children: [
36
+ {
37
+ type: AXPWidgetsList.Layouts.FormField,
38
+ mode: 'edit',
39
+ options: {
40
+ label: '@risk-management:risk-rating-scales.entities.risk-rating-scale.fields.levels.fields.code.title',
41
+ showLabel: true,
42
+ },
43
+ children: [
44
+ {
45
+ type: AXPWidgetsList.Editors.TextBox,
46
+ mode: 'edit',
47
+ path: 'code',
48
+ name: 'code',
49
+ options: {
50
+ placeholder: '@risk-management:risk-rating-scales.entities.risk-rating-scale.fields.levels.fields.code.placeholder',
51
+ },
52
+ },
53
+ ],
54
+ },
55
+ ],
56
+ },
57
+ {
58
+ type: AXPWidgetsList.Layouts.GridItemLayout,
59
+ mode: 'edit',
60
+ options: { colSpan: 5 },
61
+ children: [
62
+ {
63
+ type: AXPWidgetsList.Layouts.FormField,
64
+ mode: 'edit',
65
+ options: {
66
+ label: '@risk-management:risk-rating-scales.entities.risk-rating-scale.fields.levels.fields.title.title',
67
+ showLabel: true,
68
+ },
69
+ children: [
70
+ {
71
+ type: AXPWidgetsList.Editors.TextBox,
72
+ mode: 'edit',
73
+ path: 'title',
74
+ name: 'title',
75
+ options: {
76
+ placeholder: '@risk-management:risk-rating-scales.entities.risk-rating-scale.fields.levels.fields.title.placeholder',
77
+ validations: [{ rule: 'required' }],
78
+ },
79
+ },
80
+ ],
81
+ },
82
+ ],
83
+ },
84
+ {
85
+ type: AXPWidgetsList.Layouts.GridItemLayout,
86
+ mode: 'edit',
87
+ options: { colSpan: 2 },
88
+ children: [
89
+ {
90
+ type: AXPWidgetsList.Layouts.FormField,
91
+ mode: 'edit',
92
+ options: {
93
+ label: '@risk-management:risk-rating-scales.entities.risk-rating-scale.fields.levels.fields.score.title',
94
+ showLabel: true,
95
+ },
96
+ children: [
97
+ {
98
+ type: AXPWidgetsList.Editors.NumberBox,
99
+ mode: 'edit',
100
+ path: 'score',
101
+ name: 'score',
102
+ options: {
103
+ minValue: 0,
104
+ maxValue: 99,
105
+ placeholder: '@risk-management:risk-rating-scales.entities.risk-rating-scale.fields.levels.fields.score.placeholder',
106
+ validations: [{ rule: 'required' }],
107
+ },
108
+ },
109
+ ],
110
+ },
111
+ ],
112
+ },
113
+ {
114
+ type: AXPWidgetsList.Layouts.GridItemLayout,
115
+ mode: 'edit',
116
+ options: { colSpan: 3 },
117
+ children: [
118
+ {
119
+ type: AXPWidgetsList.Layouts.FormField,
120
+ mode: 'edit',
121
+ options: {
122
+ label: '@general:terms.common.color',
123
+ showLabel: true,
124
+ },
125
+ children: [
126
+ {
127
+ type: AXPWidgetsList.Editors.ColorChooser,
128
+ mode: 'edit',
129
+ path: 'color',
130
+ name: 'color',
131
+ options: {
132
+ palette: ['theme', 'pastel'],
133
+ },
134
+ },
135
+ ],
136
+ },
137
+ ],
138
+ },
139
+ ],
140
+ },
141
+ ];
142
+ //#endregion
143
+ //#region ---- Entity factory ----
144
+ async function factoryRiskRatingScale() {
145
+ const entityDef = {
146
+ module: RootConfig.module.name,
147
+ name: RootConfig.entities.riskRatingScale.name,
148
+ title: RootConfig.entities.riskRatingScale.title,
149
+ icon: RootConfig.entities.riskRatingScale.icon,
150
+ searchTags: [
151
+ 'risk-rating-scale',
152
+ 'rating-scale',
153
+ 'risk-rating',
154
+ 'risk-ratings',
155
+ 'rating-level',
156
+ 'risk-level',
157
+ 'assessment-outcome',
158
+ 'classification',
159
+ 'priority-band',
160
+ 'score',
161
+ 'رتبه ریسک',
162
+ 'مقیاس رتبه',
163
+ 'ریسک',
164
+ 'ارزیابی ریسک',
165
+ ],
166
+ formats: {
167
+ individual: RootConfig.entities.riskRatingScale.title,
168
+ plural: RootConfig.entities.riskRatingScale.titlePlural,
169
+ searchResult: {
170
+ title: '{{ title }}',
171
+ description: '{{ code }}',
172
+ },
173
+ },
174
+ plugins: [
175
+ { name: 'history' },
176
+ { name: 'identifier', options: { field: 'code', rule: 'risk-rating-scale-code' } },
177
+ { name: 'unique-fields', options: { fields: 'code', scope: 'global' } },
178
+ { name: 'archive' },
179
+ ],
180
+ groups: [
181
+ {
182
+ id: 'basic-info',
183
+ title: '@risk-management:risk-rating-scales.entities.risk-rating-scale.groups.basic-info',
184
+ },
185
+ {
186
+ id: 'levels',
187
+ title: '@risk-management:risk-rating-scales.entities.risk-rating-scale.groups.levels',
188
+ },
189
+ ],
190
+ properties: [
191
+ {
192
+ name: 'id',
193
+ title: '@general:terms.common.id',
194
+ groupId: 'basic-info',
195
+ schema: { dataType: 'uuid', visible: false, nullable: false, readonly: true, unique: { enabled: true } },
196
+ },
197
+ {
198
+ name: 'code',
199
+ title: '@risk-management:risk-rating-scales.entities.risk-rating-scale.fields.code.title',
200
+ groupId: 'basic-info',
201
+ options: listSortAndFilterOptions,
202
+ schema: {
203
+ dataType: 'string',
204
+ unique: { enabled: true },
205
+ interface: {
206
+ type: AXPWidgetsCatalog.text,
207
+ options: {
208
+ disabled: true,
209
+ placeholder: '@risk-management:risk-rating-scales.entities.risk-rating-scale.fields.code.placeholder',
210
+ },
211
+ },
212
+ },
213
+ validations: [{ rule: 'required' }],
214
+ },
215
+ {
216
+ name: 'title',
217
+ title: '@risk-management:risk-rating-scales.entities.risk-rating-scale.fields.title.title',
218
+ groupId: 'basic-info',
219
+ options: listSortAndFilterOptions,
220
+ schema: {
221
+ dataType: 'string',
222
+ interface: {
223
+ type: AXPWidgetsCatalog.text,
224
+ options: {
225
+ placeholder: '@risk-management:risk-rating-scales.entities.risk-rating-scale.fields.title.placeholder',
226
+ },
227
+ },
228
+ },
229
+ validations: [{ rule: 'required' }],
230
+ },
231
+ {
232
+ name: 'description',
233
+ title: '@general:terms.common.description',
234
+ groupId: 'basic-info',
235
+ options: {
236
+ sort: { enabled: false },
237
+ filter: { advance: { enabled: true }, inline: { enabled: false } },
238
+ },
239
+ schema: {
240
+ dataType: 'string',
241
+ nullable: true,
242
+ interface: {
243
+ type: AXPWidgetsCatalog.largeText,
244
+ options: {
245
+ placeholder: '@risk-management:risk-rating-scales.entities.risk-rating-scale.fields.description.placeholder',
246
+ },
247
+ },
248
+ },
249
+ },
250
+ {
251
+ name: 'levels',
252
+ title: '@risk-management:risk-rating-scales.entities.risk-rating-scale.fields.levels.title',
253
+ groupId: 'levels',
254
+ schema: {
255
+ defaultValue: [],
256
+ dataType: 'array',
257
+ nullable: false,
258
+ interface: {
259
+ type: AXPWidgetsList.Layouts.RepeaterLayout,
260
+ options: { hasControls: true, allowReorder: true },
261
+ children: [...LEVELS_REPEATER_CHILDREN],
262
+ },
263
+ },
264
+ validations: [
265
+ { rule: 'required' },
266
+ {
267
+ rule: 'callback',
268
+ message: SCORE_UNIQUE_MESSAGE,
269
+ options: {
270
+ validate: `(val) => {
271
+ const levels = Array.isArray(val) ? val : [];
272
+ const values = levels
273
+ .map((level) => level && level.score)
274
+ .filter((value) => value != null && value !== '')
275
+ .map((value) => Number(value));
276
+ const unique = new Set(values);
277
+ return { result: unique.size === values.length };
278
+ }`,
279
+ },
280
+ },
281
+ ],
282
+ },
283
+ ],
284
+ columns: [
285
+ { name: 'code' },
286
+ { name: 'title' },
287
+ ],
288
+ interfaces: {
289
+ master: {
290
+ create: {
291
+ sections: [{ id: 'basic-info' }, { id: 'levels' }],
292
+ properties: [
293
+ { name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
294
+ { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
295
+ { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
296
+ LEVELS_LAYOUT,
297
+ ],
298
+ },
299
+ update: {
300
+ sections: [{ id: 'basic-info' }, { id: 'levels' }],
301
+ properties: [
302
+ { name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
303
+ { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
304
+ { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
305
+ LEVELS_LAYOUT,
306
+ ],
307
+ },
308
+ single: {
309
+ title: '{{ title }}',
310
+ sections: [
311
+ { id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } },
312
+ { id: 'levels', layout: { positions: { lg: { colSpan: 12 } } } },
313
+ ],
314
+ properties: [
315
+ { name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
316
+ { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
317
+ { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
318
+ LEVELS_LAYOUT,
319
+ ],
320
+ actions: [...entityMasterRecordActions()],
321
+ },
322
+ list: {
323
+ actions: [...entityMasterCrudActions()],
324
+ views: [
325
+ createAllQueryView({
326
+ sorts: [{ name: 'code', dir: 'asc' }],
327
+ }),
328
+ ],
329
+ },
330
+ },
331
+ },
332
+ };
333
+ return entityDef;
334
+ }
335
+ //#endregion
336
+
337
+ export { factoryRiskRatingScale };
338
+ //# sourceMappingURL=acorex-platform-module-risk-management-client-contracts-entity-catalog-risk-rating-scale.entity-Cjg7aGMl.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-risk-management-client-contracts-entity-catalog-risk-rating-scale.entity-Cjg7aGMl.mjs","sources":["../../../../libs/modules/risk-management/contracts/src/entities/risk-rating-scale/risk-rating-scale.entity.ts"],"sourcesContent":["//#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 { 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 LEVELS_LAYOUT = {\n name: 'levels',\n layout: { label: { visible: false }, order: 4, positions: { lg: { colSpan: 12 } } },\n};\n\nconst SCORE_UNIQUE_MESSAGE =\n '@risk-management:risk-rating-scales.entities.risk-rating-scale.validations.score-unique';\n\nconst LEVELS_REPEATER_CHILDREN = [\n {\n type: AXPWidgetsList.Layouts.GridLayout,\n mode: 'edit' as const,\n name: 'levelRow',\n options: {\n grid: {\n default: {\n columns: 12,\n gap: '1rem',\n },\n },\n },\n children: [\n {\n type: AXPWidgetsList.Layouts.GridItemLayout,\n mode: 'edit' as const,\n options: { colSpan: 2 },\n children: [\n {\n type: AXPWidgetsList.Layouts.FormField,\n mode: 'edit' as const,\n options: {\n label:\n '@risk-management:risk-rating-scales.entities.risk-rating-scale.fields.levels.fields.code.title',\n showLabel: true,\n },\n children: [\n {\n type: AXPWidgetsList.Editors.TextBox,\n mode: 'edit' as const,\n path: 'code',\n name: 'code',\n options: {\n placeholder:\n '@risk-management:risk-rating-scales.entities.risk-rating-scale.fields.levels.fields.code.placeholder',\n },\n },\n ],\n },\n ],\n },\n {\n type: AXPWidgetsList.Layouts.GridItemLayout,\n mode: 'edit' as const,\n options: { colSpan: 5 },\n children: [\n {\n type: AXPWidgetsList.Layouts.FormField,\n mode: 'edit' as const,\n options: {\n label:\n '@risk-management:risk-rating-scales.entities.risk-rating-scale.fields.levels.fields.title.title',\n showLabel: true,\n },\n children: [\n {\n type: AXPWidgetsList.Editors.TextBox,\n mode: 'edit' as const,\n path: 'title',\n name: 'title',\n options: {\n placeholder:\n '@risk-management:risk-rating-scales.entities.risk-rating-scale.fields.levels.fields.title.placeholder',\n validations: [{ rule: 'required' }],\n },\n },\n ],\n },\n ],\n },\n {\n type: AXPWidgetsList.Layouts.GridItemLayout,\n mode: 'edit' as const,\n options: { colSpan: 2 },\n children: [\n {\n type: AXPWidgetsList.Layouts.FormField,\n mode: 'edit' as const,\n options: {\n label:\n '@risk-management:risk-rating-scales.entities.risk-rating-scale.fields.levels.fields.score.title',\n showLabel: true,\n },\n children: [\n {\n type: AXPWidgetsList.Editors.NumberBox,\n mode: 'edit' as const,\n path: 'score',\n name: 'score',\n options: {\n minValue: 0,\n maxValue: 99,\n placeholder:\n '@risk-management:risk-rating-scales.entities.risk-rating-scale.fields.levels.fields.score.placeholder',\n validations: [{ rule: 'required' }],\n },\n },\n ],\n },\n ],\n },\n {\n type: AXPWidgetsList.Layouts.GridItemLayout,\n mode: 'edit' as const,\n options: { colSpan: 3 },\n children: [\n {\n type: AXPWidgetsList.Layouts.FormField,\n mode: 'edit' as const,\n options: {\n label: '@general:terms.common.color',\n showLabel: true,\n },\n children: [\n {\n type: AXPWidgetsList.Editors.ColorChooser,\n mode: 'edit' as const,\n path: 'color',\n name: 'color',\n options: {\n palette: ['theme', 'pastel'],\n },\n },\n ],\n },\n ],\n },\n ],\n },\n];\n\n//#endregion\n\n//#region ---- Entity factory ----\n\nexport async function factoryRiskRatingScale(): Promise<AXPEntity | null> {\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.riskRatingScale.name,\n title: RootConfig.entities.riskRatingScale.title,\n icon: RootConfig.entities.riskRatingScale.icon,\n searchTags: [\n 'risk-rating-scale',\n 'rating-scale',\n 'risk-rating',\n 'risk-ratings',\n 'rating-level',\n 'risk-level',\n 'assessment-outcome',\n 'classification',\n 'priority-band',\n 'score',\n 'رتبه ریسک',\n 'مقیاس رتبه',\n 'ریسک',\n 'ارزیابی ریسک',\n ],\n formats: {\n individual: RootConfig.entities.riskRatingScale.title,\n plural: RootConfig.entities.riskRatingScale.titlePlural,\n searchResult: {\n title: '{{ title }}',\n description: '{{ code }}',\n },\n },\n plugins: [\n { name: 'history' },\n { name: 'identifier', options: { field: 'code', rule: 'risk-rating-scale-code' } },\n { name: 'unique-fields', options: { fields: 'code', scope: 'global' } },\n { name: 'archive' },\n ],\n groups: [\n {\n id: 'basic-info',\n title:\n '@risk-management:risk-rating-scales.entities.risk-rating-scale.groups.basic-info',\n },\n {\n id: 'levels',\n title: '@risk-management:risk-rating-scales.entities.risk-rating-scale.groups.levels',\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-rating-scales.entities.risk-rating-scale.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:\n '@risk-management:risk-rating-scales.entities.risk-rating-scale.fields.code.placeholder',\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'title',\n title: '@risk-management:risk-rating-scales.entities.risk-rating-scale.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:\n '@risk-management:risk-rating-scales.entities.risk-rating-scale.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:\n '@risk-management:risk-rating-scales.entities.risk-rating-scale.fields.description.placeholder',\n },\n },\n },\n },\n {\n name: 'levels',\n title: '@risk-management:risk-rating-scales.entities.risk-rating-scale.fields.levels.title',\n groupId: 'levels',\n schema: {\n defaultValue: [],\n dataType: 'array',\n nullable: false,\n interface: {\n type: AXPWidgetsList.Layouts.RepeaterLayout,\n options: { hasControls: true, allowReorder: true },\n children: [...LEVELS_REPEATER_CHILDREN],\n },\n },\n validations: [\n { rule: 'required' },\n {\n rule: 'callback',\n message: SCORE_UNIQUE_MESSAGE,\n options: {\n validate: `(val) => {\n const levels = Array.isArray(val) ? val : [];\n const values = levels\n .map((level) => level && level.score)\n .filter((value) => value != null && value !== '')\n .map((value) => Number(value));\n const unique = new Set(values);\n return { result: unique.size === values.length };\n }`,\n },\n },\n ],\n },\n ],\n columns: [\n { name: 'code' },\n { name: 'title' },\n ],\n interfaces: {\n master: {\n create: {\n sections: [{ id: 'basic-info' }, { id: 'levels' }],\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 LEVELS_LAYOUT,\n ],\n },\n update: {\n sections: [{ id: 'basic-info' }, { id: 'levels' }],\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 LEVELS_LAYOUT,\n ],\n },\n single: {\n title: '{{ title }}',\n sections: [\n { id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } },\n { id: 'levels', layout: { positions: { lg: { colSpan: 12 } } } },\n ],\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 LEVELS_LAYOUT,\n ],\n actions: [...entityMasterRecordActions()],\n },\n list: {\n actions: [...entityMasterCrudActions()],\n views: [\n createAllQueryView({\n sorts: [{ name: 'code', dir: 'asc' }],\n }),\n ],\n },\n },\n },\n };\n\n return entityDef;\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;AAAA;AAYA;AAEA;AAEA,MAAM,wBAAwB,GAAG;AAC/B,IAAA,IAAI,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;AACvB,IAAA,MAAM,EAAE,EAAE,OAAO,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;CAClE;AAED,MAAM,aAAa,GAAG;AACpB,IAAA,IAAI,EAAE,QAAQ;IACd,MAAM,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,EA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