@acorex-platform/module-risk-management-client 0.0.37 → 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.
- package/fesm2022/acorex-platform-module-risk-management-client-contracts-entities-risk-likelihood-scale.mjs +361 -0
- package/fesm2022/acorex-platform-module-risk-management-client-contracts-entities-risk-likelihood-scale.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-risk-management-client-contracts-entities-risk-matrix.mjs +364 -0
- package/fesm2022/acorex-platform-module-risk-management-client-contracts-entities-risk-matrix.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-risk-management-client-contracts-entities-risk-rating-scale.mjs +388 -0
- package/fesm2022/acorex-platform-module-risk-management-client-contracts-entities-risk-rating-scale.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-risk-management-client-contracts-entities-risk-severity-scale.mjs +361 -0
- package/fesm2022/acorex-platform-module-risk-management-client-contracts-entities-risk-severity-scale.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-risk-management-client-contracts-entity-catalog-acorex-platform-module-risk-management-client-contracts-entity-catalog-D6WaBLYS.mjs +72 -0
- 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
- package/fesm2022/acorex-platform-module-risk-management-client-contracts-entity-catalog-risk-likelihood-scale.entity-CVdw2sfd.mjs +311 -0
- package/fesm2022/acorex-platform-module-risk-management-client-contracts-entity-catalog-risk-likelihood-scale.entity-CVdw2sfd.mjs.map +1 -0
- 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
- package/fesm2022/acorex-platform-module-risk-management-client-contracts-entity-catalog-risk-matrix.entity-Chp-843O.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-risk-management-client-contracts-entity-catalog-risk-rating-scale.entity-Cjg7aGMl.mjs +338 -0
- package/fesm2022/acorex-platform-module-risk-management-client-contracts-entity-catalog-risk-rating-scale.entity-Cjg7aGMl.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-risk-management-client-contracts-entity-catalog-risk-severity-scale.entity-Cgti6Xeo.mjs +311 -0
- package/fesm2022/acorex-platform-module-risk-management-client-contracts-entity-catalog-risk-severity-scale.entity-Cgti6Xeo.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-risk-management-client-contracts-entity-catalog.mjs +1 -1
- package/fesm2022/acorex-platform-module-risk-management-client-contracts.mjs +233 -49
- package/fesm2022/acorex-platform-module-risk-management-client-contracts.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-risk-management-client-local-entities.mjs +4 -4
- package/fesm2022/acorex-platform-module-risk-management-client-local-entities.mjs.map +1 -1
- 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
- package/fesm2022/acorex-platform-module-risk-management-client-preview-risk-matrix.command-gVKnE3c0.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-risk-management-client.mjs +439 -230
- package/fesm2022/acorex-platform-module-risk-management-client.mjs.map +1 -1
- package/package.json +13 -13
- package/types/acorex-platform-module-risk-management-client-contracts-entities-risk-likelihood-scale.d.ts +5 -0
- package/types/acorex-platform-module-risk-management-client-contracts-entities-risk-matrix.d.ts +5 -0
- package/types/acorex-platform-module-risk-management-client-contracts-entities-risk-rating-scale.d.ts +5 -0
- package/types/acorex-platform-module-risk-management-client-contracts-entities-risk-severity-scale.d.ts +5 -0
- package/types/acorex-platform-module-risk-management-client-contracts.d.ts +157 -65
- package/types/acorex-platform-module-risk-management-client.d.ts +77 -31
- package/fesm2022/acorex-platform-module-risk-management-client-contracts-entities-risk-likelihood.mjs +0 -222
- package/fesm2022/acorex-platform-module-risk-management-client-contracts-entities-risk-likelihood.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-risk-management-client-contracts-entities-risk-matrix-cell.mjs +0 -348
- package/fesm2022/acorex-platform-module-risk-management-client-contracts-entities-risk-matrix-cell.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-risk-management-client-contracts-entities-risk-rating.mjs +0 -227
- package/fesm2022/acorex-platform-module-risk-management-client-contracts-entities-risk-rating.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-risk-management-client-contracts-entities-risk-severity.mjs +0 -222
- package/fesm2022/acorex-platform-module-risk-management-client-contracts-entities-risk-severity.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-risk-management-client-contracts-entity-catalog-acorex-platform-module-risk-management-client-contracts-entity-catalog-Dc6Me3H6.mjs +0 -72
- 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
- package/fesm2022/acorex-platform-module-risk-management-client-contracts-entity-catalog-risk-likelihood.entity-DzwLi3Ga.mjs +0 -172
- package/fesm2022/acorex-platform-module-risk-management-client-contracts-entity-catalog-risk-likelihood.entity-DzwLi3Ga.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-risk-management-client-contracts-entity-catalog-risk-matrix-cell.entity-b97tbRDA.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-risk-management-client-contracts-entity-catalog-risk-rating.entity-CreMsiCu.mjs +0 -177
- package/fesm2022/acorex-platform-module-risk-management-client-contracts-entity-catalog-risk-rating.entity-CreMsiCu.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-risk-management-client-contracts-entity-catalog-risk-severity.entity-bEyLH8dE.mjs +0 -172
- package/fesm2022/acorex-platform-module-risk-management-client-contracts-entity-catalog-risk-severity.entity-bEyLH8dE.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-risk-management-client-preview-risk-matrix-cell.command-CTGIFUIa.mjs.map +0 -1
- package/types/acorex-platform-module-risk-management-client-contracts-entities-risk-likelihood.d.ts +0 -5
- package/types/acorex-platform-module-risk-management-client-contracts-entities-risk-matrix-cell.d.ts +0 -5
- package/types/acorex-platform-module-risk-management-client-contracts-entities-risk-rating.d.ts +0 -5
- package/types/acorex-platform-module-risk-management-client-contracts-entities-risk-severity.d.ts +0 -5
|
@@ -0,0 +1,311 @@
|
|
|
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-likelihood-scales.entities.risk-likelihood-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-likelihood-scales.entities.risk-likelihood-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-likelihood-scales.entities.risk-likelihood-scale.fields.levels.fields.code.placeholder',
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
],
|
|
54
|
+
},
|
|
55
|
+
],
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
type: AXPWidgetsList.Layouts.GridItemLayout,
|
|
59
|
+
mode: 'edit',
|
|
60
|
+
options: { colSpan: 7 },
|
|
61
|
+
children: [
|
|
62
|
+
{
|
|
63
|
+
type: AXPWidgetsList.Layouts.FormField,
|
|
64
|
+
mode: 'edit',
|
|
65
|
+
options: {
|
|
66
|
+
label: '@risk-management:risk-likelihood-scales.entities.risk-likelihood-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-likelihood-scales.entities.risk-likelihood-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: 3 },
|
|
88
|
+
children: [
|
|
89
|
+
{
|
|
90
|
+
type: AXPWidgetsList.Layouts.FormField,
|
|
91
|
+
mode: 'edit',
|
|
92
|
+
options: {
|
|
93
|
+
label: '@risk-management:risk-likelihood-scales.entities.risk-likelihood-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-likelihood-scales.entities.risk-likelihood-scale.fields.levels.fields.score.placeholder',
|
|
106
|
+
validations: [{ rule: 'required' }],
|
|
107
|
+
},
|
|
108
|
+
},
|
|
109
|
+
],
|
|
110
|
+
},
|
|
111
|
+
],
|
|
112
|
+
},
|
|
113
|
+
],
|
|
114
|
+
},
|
|
115
|
+
];
|
|
116
|
+
//#endregion
|
|
117
|
+
//#region ---- Entity factory ----
|
|
118
|
+
async function factoryRiskLikelihoodScale() {
|
|
119
|
+
const entityDef = {
|
|
120
|
+
module: RootConfig.module.name,
|
|
121
|
+
name: RootConfig.entities.riskLikelihoodScale.name,
|
|
122
|
+
title: RootConfig.entities.riskLikelihoodScale.title,
|
|
123
|
+
icon: RootConfig.entities.riskLikelihoodScale.icon,
|
|
124
|
+
searchTags: [
|
|
125
|
+
'risk-likelihood-scale',
|
|
126
|
+
'likelihood-scale',
|
|
127
|
+
'likelihood',
|
|
128
|
+
'probability',
|
|
129
|
+
'occurrence',
|
|
130
|
+
'frequency',
|
|
131
|
+
'risk-scale',
|
|
132
|
+
'score',
|
|
133
|
+
'assessment',
|
|
134
|
+
'احتمال ریسک',
|
|
135
|
+
'مقیاس احتمال',
|
|
136
|
+
'ریسک',
|
|
137
|
+
'طبقهبندی',
|
|
138
|
+
],
|
|
139
|
+
formats: {
|
|
140
|
+
individual: RootConfig.entities.riskLikelihoodScale.title,
|
|
141
|
+
plural: RootConfig.entities.riskLikelihoodScale.titlePlural,
|
|
142
|
+
searchResult: {
|
|
143
|
+
title: '{{ title }}',
|
|
144
|
+
description: '{{ code }}',
|
|
145
|
+
},
|
|
146
|
+
},
|
|
147
|
+
plugins: [
|
|
148
|
+
{ name: 'history' },
|
|
149
|
+
{ name: 'identifier', options: { field: 'code', rule: 'risk-likelihood-scale-code' } },
|
|
150
|
+
{ name: 'unique-fields', options: { fields: 'code', scope: 'global' } },
|
|
151
|
+
{ name: 'archive' },
|
|
152
|
+
],
|
|
153
|
+
groups: [
|
|
154
|
+
{
|
|
155
|
+
id: 'basic-info',
|
|
156
|
+
title: '@risk-management:risk-likelihood-scales.entities.risk-likelihood-scale.groups.basic-info',
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
id: 'levels',
|
|
160
|
+
title: '@risk-management:risk-likelihood-scales.entities.risk-likelihood-scale.groups.levels',
|
|
161
|
+
},
|
|
162
|
+
],
|
|
163
|
+
properties: [
|
|
164
|
+
{
|
|
165
|
+
name: 'id',
|
|
166
|
+
title: '@general:terms.common.id',
|
|
167
|
+
groupId: 'basic-info',
|
|
168
|
+
schema: { dataType: 'uuid', visible: false, nullable: false, readonly: true, unique: { enabled: true } },
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
name: 'code',
|
|
172
|
+
title: '@risk-management:risk-likelihood-scales.entities.risk-likelihood-scale.fields.code.title',
|
|
173
|
+
groupId: 'basic-info',
|
|
174
|
+
options: listSortAndFilterOptions,
|
|
175
|
+
schema: {
|
|
176
|
+
dataType: 'string',
|
|
177
|
+
unique: { enabled: true },
|
|
178
|
+
interface: {
|
|
179
|
+
type: AXPWidgetsCatalog.text,
|
|
180
|
+
options: {
|
|
181
|
+
disabled: true,
|
|
182
|
+
placeholder: '@risk-management:risk-likelihood-scales.entities.risk-likelihood-scale.fields.code.placeholder',
|
|
183
|
+
},
|
|
184
|
+
},
|
|
185
|
+
},
|
|
186
|
+
validations: [{ rule: 'required' }],
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
name: 'title',
|
|
190
|
+
title: '@risk-management:risk-likelihood-scales.entities.risk-likelihood-scale.fields.title.title',
|
|
191
|
+
groupId: 'basic-info',
|
|
192
|
+
options: listSortAndFilterOptions,
|
|
193
|
+
schema: {
|
|
194
|
+
dataType: 'string',
|
|
195
|
+
interface: {
|
|
196
|
+
type: AXPWidgetsCatalog.text,
|
|
197
|
+
options: {
|
|
198
|
+
placeholder: '@risk-management:risk-likelihood-scales.entities.risk-likelihood-scale.fields.title.placeholder',
|
|
199
|
+
},
|
|
200
|
+
},
|
|
201
|
+
},
|
|
202
|
+
validations: [{ rule: 'required' }],
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
name: 'description',
|
|
206
|
+
title: '@general:terms.common.description',
|
|
207
|
+
groupId: 'basic-info',
|
|
208
|
+
options: {
|
|
209
|
+
sort: { enabled: false },
|
|
210
|
+
filter: { advance: { enabled: true }, inline: { enabled: false } },
|
|
211
|
+
},
|
|
212
|
+
schema: {
|
|
213
|
+
dataType: 'string',
|
|
214
|
+
nullable: true,
|
|
215
|
+
interface: {
|
|
216
|
+
type: AXPWidgetsCatalog.largeText,
|
|
217
|
+
options: {
|
|
218
|
+
placeholder: '@risk-management:risk-likelihood-scales.entities.risk-likelihood-scale.fields.description.placeholder',
|
|
219
|
+
},
|
|
220
|
+
},
|
|
221
|
+
},
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
name: 'levels',
|
|
225
|
+
title: '@risk-management:risk-likelihood-scales.entities.risk-likelihood-scale.fields.levels.title',
|
|
226
|
+
groupId: 'levels',
|
|
227
|
+
schema: {
|
|
228
|
+
defaultValue: [],
|
|
229
|
+
dataType: 'array',
|
|
230
|
+
nullable: false,
|
|
231
|
+
interface: {
|
|
232
|
+
type: AXPWidgetsList.Layouts.RepeaterLayout,
|
|
233
|
+
options: { hasControls: true, allowReorder: true },
|
|
234
|
+
children: [...LEVELS_REPEATER_CHILDREN],
|
|
235
|
+
},
|
|
236
|
+
},
|
|
237
|
+
validations: [
|
|
238
|
+
{ rule: 'required' },
|
|
239
|
+
{
|
|
240
|
+
rule: 'callback',
|
|
241
|
+
message: SCORE_UNIQUE_MESSAGE,
|
|
242
|
+
options: {
|
|
243
|
+
validate: `(val) => {
|
|
244
|
+
const levels = Array.isArray(val) ? val : [];
|
|
245
|
+
const values = levels
|
|
246
|
+
.map((level) => level && level.score)
|
|
247
|
+
.filter((value) => value != null && value !== '')
|
|
248
|
+
.map((value) => Number(value));
|
|
249
|
+
const unique = new Set(values);
|
|
250
|
+
return { result: unique.size === values.length };
|
|
251
|
+
}`,
|
|
252
|
+
},
|
|
253
|
+
},
|
|
254
|
+
],
|
|
255
|
+
},
|
|
256
|
+
],
|
|
257
|
+
columns: [
|
|
258
|
+
{ name: 'code' },
|
|
259
|
+
{ name: 'title' },
|
|
260
|
+
],
|
|
261
|
+
interfaces: {
|
|
262
|
+
master: {
|
|
263
|
+
create: {
|
|
264
|
+
sections: [{ id: 'basic-info' }, { id: 'levels' }],
|
|
265
|
+
properties: [
|
|
266
|
+
{ name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
|
|
267
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
|
|
268
|
+
{ name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
|
|
269
|
+
LEVELS_LAYOUT,
|
|
270
|
+
],
|
|
271
|
+
},
|
|
272
|
+
update: {
|
|
273
|
+
sections: [{ id: 'basic-info' }, { id: 'levels' }],
|
|
274
|
+
properties: [
|
|
275
|
+
{ name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
|
|
276
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
|
|
277
|
+
{ name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
|
|
278
|
+
LEVELS_LAYOUT,
|
|
279
|
+
],
|
|
280
|
+
},
|
|
281
|
+
single: {
|
|
282
|
+
title: '{{ title }}',
|
|
283
|
+
sections: [
|
|
284
|
+
{ id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } },
|
|
285
|
+
{ id: 'levels', layout: { positions: { lg: { colSpan: 12 } } } },
|
|
286
|
+
],
|
|
287
|
+
properties: [
|
|
288
|
+
{ name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
|
|
289
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
|
|
290
|
+
{ name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
|
|
291
|
+
LEVELS_LAYOUT,
|
|
292
|
+
],
|
|
293
|
+
actions: [...entityMasterRecordActions()],
|
|
294
|
+
},
|
|
295
|
+
list: {
|
|
296
|
+
actions: [...entityMasterCrudActions()],
|
|
297
|
+
views: [
|
|
298
|
+
createAllQueryView({
|
|
299
|
+
sorts: [{ name: 'code', dir: 'asc' }],
|
|
300
|
+
}),
|
|
301
|
+
],
|
|
302
|
+
},
|
|
303
|
+
},
|
|
304
|
+
},
|
|
305
|
+
};
|
|
306
|
+
return entityDef;
|
|
307
|
+
}
|
|
308
|
+
//#endregion
|
|
309
|
+
|
|
310
|
+
export { factoryRiskLikelihoodScale };
|
|
311
|
+
//# sourceMappingURL=acorex-platform-module-risk-management-client-contracts-entity-catalog-risk-likelihood-scale.entity-CVdw2sfd.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-risk-management-client-contracts-entity-catalog-risk-likelihood-scale.entity-CVdw2sfd.mjs","sources":["../../../../libs/modules/risk-management/contracts/src/entities/risk-likelihood-scale/risk-likelihood-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-likelihood-scales.entities.risk-likelihood-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-likelihood-scales.entities.risk-likelihood-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-likelihood-scales.entities.risk-likelihood-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: 7 },\n children: [\n {\n type: AXPWidgetsList.Layouts.FormField,\n mode: 'edit' as const,\n options: {\n label:\n '@risk-management:risk-likelihood-scales.entities.risk-likelihood-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-likelihood-scales.entities.risk-likelihood-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: 3 },\n children: [\n {\n type: AXPWidgetsList.Layouts.FormField,\n mode: 'edit' as const,\n options: {\n label:\n '@risk-management:risk-likelihood-scales.entities.risk-likelihood-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-likelihood-scales.entities.risk-likelihood-scale.fields.levels.fields.score.placeholder',\n validations: [{ rule: 'required' }],\n },\n },\n ],\n },\n ],\n },\n ],\n },\n];\n\n//#endregion\n\n//#region ---- Entity factory ----\n\nexport async function factoryRiskLikelihoodScale(): Promise<AXPEntity | null> {\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.riskLikelihoodScale.name,\n title: RootConfig.entities.riskLikelihoodScale.title,\n icon: RootConfig.entities.riskLikelihoodScale.icon,\n searchTags: [\n 'risk-likelihood-scale',\n 'likelihood-scale',\n 'likelihood',\n 'probability',\n 'occurrence',\n 'frequency',\n 'risk-scale',\n 'score',\n 'assessment',\n 'احتمال ریسک',\n 'مقیاس احتمال',\n 'ریسک',\n 'طبقهبندی',\n ],\n formats: {\n individual: RootConfig.entities.riskLikelihoodScale.title,\n plural: RootConfig.entities.riskLikelihoodScale.titlePlural,\n searchResult: {\n title: '{{ title }}',\n description: '{{ code }}',\n },\n },\n plugins: [\n { name: 'history' },\n { name: 'identifier', options: { field: 'code', rule: 'risk-likelihood-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-likelihood-scales.entities.risk-likelihood-scale.groups.basic-info',\n },\n {\n id: 'levels',\n title: '@risk-management:risk-likelihood-scales.entities.risk-likelihood-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-likelihood-scales.entities.risk-likelihood-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-likelihood-scales.entities.risk-likelihood-scale.fields.code.placeholder',\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'title',\n title: '@risk-management:risk-likelihood-scales.entities.risk-likelihood-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-likelihood-scales.entities.risk-likelihood-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-likelihood-scales.entities.risk-likelihood-scale.fields.description.placeholder',\n },\n },\n },\n },\n {\n name: 'levels',\n title: '@risk-management:risk-likelihood-scales.entities.risk-likelihood-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,EA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