@acorex-platform/module-risk-management-client 0.0.30 → 0.0.33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/fesm2022/acorex-platform-module-risk-management-client-contracts-entities-risk-likelihood.mjs +222 -0
  2. package/fesm2022/acorex-platform-module-risk-management-client-contracts-entities-risk-likelihood.mjs.map +1 -0
  3. package/fesm2022/acorex-platform-module-risk-management-client-contracts-entities-risk-matrix-cell.mjs +348 -0
  4. package/fesm2022/acorex-platform-module-risk-management-client-contracts-entities-risk-matrix-cell.mjs.map +1 -0
  5. package/fesm2022/acorex-platform-module-risk-management-client-contracts-entities-risk-rating.mjs +227 -0
  6. package/fesm2022/acorex-platform-module-risk-management-client-contracts-entities-risk-rating.mjs.map +1 -0
  7. package/fesm2022/acorex-platform-module-risk-management-client-contracts-entities-risk-severity.mjs +222 -0
  8. package/fesm2022/acorex-platform-module-risk-management-client-contracts-entities-risk-severity.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-Dc6Me3H6.mjs +72 -0
  10. package/fesm2022/acorex-platform-module-risk-management-client-contracts-entity-catalog-acorex-platform-module-risk-management-client-contracts-entity-catalog-Dc6Me3H6.mjs.map +1 -0
  11. package/fesm2022/acorex-platform-module-risk-management-client-contracts-entity-catalog-risk-likelihood.entity-DzwLi3Ga.mjs +172 -0
  12. package/fesm2022/acorex-platform-module-risk-management-client-contracts-entity-catalog-risk-likelihood.entity-DzwLi3Ga.mjs.map +1 -0
  13. package/fesm2022/acorex-platform-module-risk-management-client-contracts-entity-catalog-risk-matrix-cell.entity-b97tbRDA.mjs +298 -0
  14. package/fesm2022/acorex-platform-module-risk-management-client-contracts-entity-catalog-risk-matrix-cell.entity-b97tbRDA.mjs.map +1 -0
  15. package/fesm2022/acorex-platform-module-risk-management-client-contracts-entity-catalog-risk-rating.entity-CreMsiCu.mjs +177 -0
  16. package/fesm2022/acorex-platform-module-risk-management-client-contracts-entity-catalog-risk-rating.entity-CreMsiCu.mjs.map +1 -0
  17. package/fesm2022/acorex-platform-module-risk-management-client-contracts-entity-catalog-risk-severity.entity-bEyLH8dE.mjs +172 -0
  18. package/fesm2022/acorex-platform-module-risk-management-client-contracts-entity-catalog-risk-severity.entity-bEyLH8dE.mjs.map +1 -0
  19. package/fesm2022/acorex-platform-module-risk-management-client-contracts-entity-catalog.mjs +2 -0
  20. package/fesm2022/acorex-platform-module-risk-management-client-contracts-entity-catalog.mjs.map +1 -0
  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 +32 -0
  23. package/fesm2022/acorex-platform-module-risk-management-client-local-entities.mjs.map +1 -0
  24. package/fesm2022/acorex-platform-module-risk-management-client.mjs +36 -37
  25. package/fesm2022/acorex-platform-module-risk-management-client.mjs.map +1 -1
  26. package/package.json +25 -1
  27. package/types/acorex-platform-module-risk-management-client-contracts-entities-risk-likelihood.d.ts +5 -0
  28. package/types/acorex-platform-module-risk-management-client-contracts-entities-risk-matrix-cell.d.ts +5 -0
  29. package/types/acorex-platform-module-risk-management-client-contracts-entities-risk-rating.d.ts +5 -0
  30. package/types/acorex-platform-module-risk-management-client-contracts-entities-risk-severity.d.ts +5 -0
  31. package/types/acorex-platform-module-risk-management-client-contracts-entity-catalog.d.ts +10 -0
  32. package/types/acorex-platform-module-risk-management-client-contracts.d.ts +9 -5
  33. package/types/acorex-platform-module-risk-management-client-local-entities.d.ts +12 -0
  34. package/types/acorex-platform-module-risk-management-client.d.ts +6 -3
@@ -0,0 +1,172 @@
1
+ import { 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-Dc6Me3H6.mjs';
4
+
5
+ //#endregion
6
+ //#region ---- Constants ----
7
+ const listSortAndFilterOptions = {
8
+ sort: { enabled: true },
9
+ filter: { advance: { enabled: true }, inline: { enabled: true } },
10
+ };
11
+ //#endregion
12
+ //#region ---- Entity factory ----
13
+ async function factoryRiskLikelihood() {
14
+ const entityDef = {
15
+ module: RootConfig.module.name,
16
+ name: RootConfig.entities.riskLikelihood.name,
17
+ title: RootConfig.entities.riskLikelihood.title,
18
+ icon: RootConfig.entities.riskLikelihood.icon,
19
+ formats: {
20
+ individual: RootConfig.entities.riskLikelihood.title,
21
+ plural: RootConfig.entities.riskLikelihood.titlePlural,
22
+ searchResult: {
23
+ title: '{{ title }}',
24
+ description: '{{ code }}',
25
+ },
26
+ },
27
+ plugins: [
28
+ { name: 'history' },
29
+ { name: 'unique-fields', options: { fields: 'code', scope: 'global' } },
30
+ { name: 'archive' },
31
+ ],
32
+ groups: [
33
+ {
34
+ id: 'basic-info',
35
+ title: '@risk-management:risk-likelihoods.entities.risk-likelihood.groups.basic-info',
36
+ },
37
+ {
38
+ id: 'classification',
39
+ title: '@risk-management:risk-likelihoods.entities.risk-likelihood.groups.classification',
40
+ },
41
+ ],
42
+ properties: [
43
+ {
44
+ name: 'id',
45
+ title: '@general:terms.common.id',
46
+ groupId: 'basic-info',
47
+ schema: { dataType: 'uuid', visible: false, nullable: false, readonly: true, unique: { enabled: true } },
48
+ },
49
+ {
50
+ name: 'code',
51
+ title: '@risk-management:risk-likelihoods.entities.risk-likelihood.fields.code.title',
52
+ groupId: 'basic-info',
53
+ options: listSortAndFilterOptions,
54
+ schema: {
55
+ dataType: 'string',
56
+ unique: { enabled: true },
57
+ interface: {
58
+ type: AXPWidgetsCatalog.text,
59
+ options: {
60
+ placeholder: '@risk-management:risk-likelihoods.entities.risk-likelihood.fields.code.placeholder',
61
+ },
62
+ },
63
+ },
64
+ validations: [{ rule: 'required' }],
65
+ },
66
+ {
67
+ name: 'title',
68
+ title: '@risk-management:risk-likelihoods.entities.risk-likelihood.fields.title.title',
69
+ groupId: 'basic-info',
70
+ options: listSortAndFilterOptions,
71
+ schema: {
72
+ dataType: 'string',
73
+ interface: {
74
+ type: AXPWidgetsCatalog.text,
75
+ options: {
76
+ placeholder: '@risk-management:risk-likelihoods.entities.risk-likelihood.fields.title.placeholder',
77
+ },
78
+ },
79
+ },
80
+ validations: [{ rule: 'required' }],
81
+ },
82
+ {
83
+ name: 'description',
84
+ title: '@general:terms.common.description',
85
+ groupId: 'basic-info',
86
+ options: {
87
+ sort: { enabled: false },
88
+ filter: { advance: { enabled: true }, inline: { enabled: false } },
89
+ },
90
+ schema: {
91
+ dataType: 'string',
92
+ nullable: true,
93
+ interface: {
94
+ type: AXPWidgetsCatalog.largeText,
95
+ options: {
96
+ placeholder: '@risk-management:risk-likelihoods.entities.risk-likelihood.fields.description.placeholder',
97
+ },
98
+ },
99
+ },
100
+ },
101
+ {
102
+ name: 'levelValue',
103
+ title: '@risk-management:risk-likelihoods.entities.risk-likelihood.fields.level-value.title',
104
+ groupId: 'classification',
105
+ options: listSortAndFilterOptions,
106
+ schema: {
107
+ dataType: 'number',
108
+ interface: {
109
+ type: AXPWidgetsCatalog.number,
110
+ options: {
111
+ minValue: 0,
112
+ maxValue: 99,
113
+ placeholder: '@risk-management:risk-likelihoods.entities.risk-likelihood.fields.level-value.placeholder',
114
+ },
115
+ },
116
+ },
117
+ validations: [{ rule: 'required' }],
118
+ },
119
+ ],
120
+ columns: [
121
+ { name: 'code' },
122
+ { name: 'title' },
123
+ { name: 'levelValue' },
124
+ ],
125
+ interfaces: {
126
+ master: {
127
+ create: {
128
+ sections: [{ id: 'basic-info' }, { id: 'classification' }],
129
+ properties: [
130
+ { name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
131
+ { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
132
+ { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
133
+ { name: 'levelValue', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },
134
+ ],
135
+ },
136
+ update: {
137
+ sections: [{ id: 'basic-info' }, { id: 'classification' }],
138
+ properties: [
139
+ { name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
140
+ { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
141
+ { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
142
+ { name: 'levelValue', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },
143
+ ],
144
+ },
145
+ single: {
146
+ title: '{{ title }}',
147
+ sections: [{ id: 'basic-info' }, { id: 'classification' }],
148
+ properties: [
149
+ { name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
150
+ { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
151
+ { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
152
+ { name: 'levelValue', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },
153
+ ],
154
+ actions: [...entityMasterRecordActions()],
155
+ },
156
+ list: {
157
+ actions: [...entityMasterCrudActions()],
158
+ views: [
159
+ createAllQueryView({
160
+ sorts: [{ name: 'levelValue', dir: 'asc' }],
161
+ }),
162
+ ],
163
+ },
164
+ },
165
+ },
166
+ };
167
+ return entityDef;
168
+ }
169
+ //#endregion
170
+
171
+ export { factoryRiskLikelihood };
172
+ //# sourceMappingURL=acorex-platform-module-risk-management-client-contracts-entity-catalog-risk-likelihood.entity-DzwLi3Ga.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-risk-management-client-contracts-entity-catalog-risk-likelihood.entity-DzwLi3Ga.mjs","sources":["../../../../libs/modules/risk-management/contracts/src/entities/risk-likelihood/risk-likelihood.entity.ts"],"sourcesContent":["import { AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';\n//#region ---- Imports ----\nimport { RootConfig } from '../../root-config';\n\n//#endregion\n\n//#region ---- Constants ----\n\nconst listSortAndFilterOptions = {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n};\n\n//#endregion\n\n//#region ---- Entity factory ----\n\nexport async function factoryRiskLikelihood(): Promise<AXPEntity | null> {\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.riskLikelihood.name,\n title: RootConfig.entities.riskLikelihood.title,\n icon: RootConfig.entities.riskLikelihood.icon,\n formats: {\n individual: RootConfig.entities.riskLikelihood.title,\n plural: RootConfig.entities.riskLikelihood.titlePlural,\n searchResult: {\n title: '{{ title }}',\n description: '{{ code }}',\n },\n },\n plugins: [\n { name: 'history' },\n { name: 'unique-fields', options: { fields: 'code', scope: 'global' } },\n { name: 'archive' },\n ],\n groups: [\n {\n id: 'basic-info',\n title: '@risk-management:risk-likelihoods.entities.risk-likelihood.groups.basic-info',\n },\n {\n id: 'classification',\n title: '@risk-management:risk-likelihoods.entities.risk-likelihood.groups.classification',\n },\n ],\n properties: [\n {\n name: 'id',\n title: '@general:terms.common.id',\n groupId: 'basic-info',\n schema: { dataType: 'uuid', visible: false, nullable: false, readonly: true, unique: { enabled: true } },\n },\n {\n name: 'code',\n title: '@risk-management:risk-likelihoods.entities.risk-likelihood.fields.code.title',\n groupId: 'basic-info',\n options: listSortAndFilterOptions,\n schema: {\n dataType: 'string',\n unique: { enabled: true },\n interface: {\n type: AXPWidgetsCatalog.text,\n options: {\n placeholder: '@risk-management:risk-likelihoods.entities.risk-likelihood.fields.code.placeholder',\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'title',\n title: '@risk-management:risk-likelihoods.entities.risk-likelihood.fields.title.title',\n groupId: 'basic-info',\n options: listSortAndFilterOptions,\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsCatalog.text,\n options: {\n placeholder: '@risk-management:risk-likelihoods.entities.risk-likelihood.fields.title.placeholder',\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'description',\n title: '@general:terms.common.description',\n groupId: 'basic-info',\n options: {\n sort: { enabled: false },\n filter: { advance: { enabled: true }, inline: { enabled: false } },\n },\n schema: {\n dataType: 'string',\n nullable: true,\n interface: {\n type: AXPWidgetsCatalog.largeText,\n options: {\n placeholder: '@risk-management:risk-likelihoods.entities.risk-likelihood.fields.description.placeholder',\n },\n },\n },\n },\n {\n name: 'levelValue',\n title: '@risk-management:risk-likelihoods.entities.risk-likelihood.fields.level-value.title',\n groupId: 'classification',\n options: listSortAndFilterOptions,\n schema: {\n dataType: 'number',\n interface: {\n type: AXPWidgetsCatalog.number,\n options: {\n minValue: 0,\n maxValue: 99,\n placeholder: '@risk-management:risk-likelihoods.entities.risk-likelihood.fields.level-value.placeholder',\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n ],\n columns: [\n { name: 'code' },\n { name: 'title' },\n { name: 'levelValue' },\n ],\n interfaces: {\n master: {\n create: {\n sections: [{ id: 'basic-info' }, { id: 'classification' }],\n properties: [\n { name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },\n { name: 'levelValue', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },\n ],\n },\n update: {\n sections: [{ id: 'basic-info' }, { id: 'classification' }],\n properties: [\n { name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },\n { name: 'levelValue', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },\n ],\n },\n single: {\n title: '{{ title }}',\n sections: [{ id: 'basic-info' }, { id: 'classification' }],\n properties: [\n { name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },\n { name: 'levelValue', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },\n ],\n actions: [...entityMasterRecordActions()],\n },\n list: {\n actions: [...entityMasterCrudActions()],\n views: [\n createAllQueryView({\n sorts: [{ name: 'levelValue', dir: 'asc' }],\n }),\n ],\n },\n },\n },\n };\n\n return entityDef;\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;AAKA;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;AAEA;AAEO,eAAe,qBAAqB,GAAA;AACzC,IAAA,MAAM,SAAS,GAAc;AAC3B,QAAA,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAC9B,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,cAAc,CAAC,IAAI;AAC7C,QAAA,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC,cAAc,CAAC,KAAK;AAC/C,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,cAAc,CAAC,IAAI;AAC7C,QAAA,OAAO,EAAE;AACP,YAAA,UAAU,EAAE,UAAU,CAAC,QAAQ,CAAC,cAAc,CAAC,KAAK;AACpD,YAAA,MAAM,EAAE,UAAU,CAAC,QAAQ,CAAC,cAAc,CAAC,WAAW;AACtD,YAAA,YAAY,EAAE;AACZ,gBAAA,KAAK,EAAE,aAAa;AACpB,gBAAA,WAAW,EAAE,YAAY;AAC1B,aAAA;AACF,SAAA;AACD,QAAA,OAAO,EAAE;YACP,EAAE,IAAI,EAAE,SAAS,EAAE;AACnB,YAAA,EAAE,IAAI,EAAE,eAAe,EAAE,OAAO,EAAE,E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AAK,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;wBAC1E,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;wBACjF,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;AAChF,qBAAA;AACD,oBAAA,OAAO,EAAE,CAAC,GAAG,yBAAyB,EAAE,CAAC;AAC1C,iBAAA;AACD,gBAAA,IAAI,EAAE;AACJ,oBAAA,OAAO,EAAE,CAAC,GAAG,uBAAuB,EAAE,CAAC;AACvC,oBAAA,KAAK,EAAE;AACL,wBAAA,kBAAkB,CAAC;4BACjB,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;yBAC5C,CAAC;AACH,qBAAA;AACF,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AAED,IAAA,OAAO,SAAS;AAClB;AAEA;;;;"}
@@ -0,0 +1,298 @@
1
+ import { AXPWidgetsCatalog, AXPWidgetsList } 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-Dc6Me3H6.mjs';
4
+
5
+ //#region ---- Types ----
6
+ //#endregion
7
+ //#region ---- Constants ----
8
+ const RISK_MATRIX_AXIS_PROPERTIES = [
9
+ 'likelihoodId',
10
+ 'severityId',
11
+ 'riskRatingId',
12
+ ];
13
+ const DEFAULT_RISK_MATRIX_AXIS_MAPPING = {
14
+ rowProperty: 'likelihoodId',
15
+ columnProperty: 'severityId',
16
+ depthProperty: 'riskRatingId',
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
+ ];
32
+ const DEFAULT_RISK_MATRIX_ORIENTATION = 'likelihood-rows';
33
+ const RISK_MATRIX_ORIENTATION_OPTIONS = [
34
+ {
35
+ id: 'likelihood-rows',
36
+ title: '@risk-management:risk-matrix-cells.entities.risk-matrix-cell.fields.matrix-orientation.options.likelihood-rows',
37
+ },
38
+ {
39
+ id: 'severity-rows',
40
+ title: '@risk-management:risk-matrix-cells.entities.risk-matrix-cell.fields.matrix-orientation.options.severity-rows',
41
+ },
42
+ ];
43
+ 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',
46
+ };
47
+ //#endregion
48
+
49
+ //#endregion
50
+ //#region ---- Constants ----
51
+ const listSortAndFilterOptions = {
52
+ sort: { enabled: true },
53
+ filter: { advance: { enabled: true }, inline: { enabled: true } },
54
+ };
55
+ const lookupPropertyLayout = (name, order) => ({
56
+ name,
57
+ layout: { positions: { lg: { colSpan: 6, order } } },
58
+ });
59
+ const matrixPropertyLayout = {
60
+ name: 'matrix',
61
+ layout: { positions: { lg: { colSpan: 12, order: 7 } } },
62
+ };
63
+ const matrixOrientationPropertyLayout = {
64
+ name: 'matrixOrientation',
65
+ layout: { positions: { lg: { colSpan: 12, order: 3 } } },
66
+ };
67
+ const riskMatrixAxisLookupOptions = (entityKey, exposeCollection) => ({
68
+ look: 'drop-down',
69
+ multiple: true,
70
+ textField: 'title',
71
+ valueField: 'id',
72
+ entity: `${RootConfig.module.name}.${RootConfig.entities[entityKey].name}`,
73
+ columns: ['code', 'title'],
74
+ expose: [
75
+ { source: 'id', target: `${exposeCollection}.{id}` },
76
+ { source: 'title', target: `${exposeCollection}.{title}` },
77
+ { source: 'code', target: `${exposeCollection}.{code}` },
78
+ ],
79
+ });
80
+ //#endregion
81
+ //#region ---- Entity factory ----
82
+ async function factoryRiskMatrixCell() {
83
+ const entityDef = {
84
+ module: RootConfig.module.name,
85
+ name: RootConfig.entities.riskMatrixCell.name,
86
+ title: RootConfig.entities.riskMatrixCell.title,
87
+ icon: RootConfig.entities.riskMatrixCell.icon,
88
+ formats: {
89
+ individual: RootConfig.entities.riskMatrixCell.title,
90
+ plural: RootConfig.entities.riskMatrixCell.titlePlural,
91
+ searchResult: {
92
+ title: '{{ title }}',
93
+ description: '{{ code }}',
94
+ },
95
+ },
96
+ plugins: [
97
+ { name: 'history' },
98
+ { name: 'identifier', options: { field: 'code', rule: 'risk-matrix-cell-code' } },
99
+ { name: 'unique-fields', options: { fields: 'code', scope: 'global' } },
100
+ {
101
+ name: 'category',
102
+ options: {
103
+ appearance: { icon: true, color: true },
104
+ },
105
+ },
106
+ { name: 'catalog-scope' },
107
+ { name: 'archive' },
108
+ ],
109
+ groups: [
110
+ {
111
+ id: 'basic-info',
112
+ title: '@risk-management:risk-matrix-cells.entities.risk-matrix-cell.groups.basic-info',
113
+ },
114
+ {
115
+ id: 'matrix-definition',
116
+ title: '@risk-management:risk-matrix-cells.entities.risk-matrix-cell.groups.matrix-definition',
117
+ },
118
+ ],
119
+ properties: [
120
+ {
121
+ name: 'id',
122
+ title: '@general:terms.common.id',
123
+ groupId: 'basic-info',
124
+ schema: { dataType: 'uuid', visible: false, nullable: false, readonly: true, unique: { enabled: true } },
125
+ },
126
+ {
127
+ name: 'code',
128
+ title: '@risk-management:risk-matrix-cells.entities.risk-matrix-cell.fields.code.title',
129
+ groupId: 'basic-info',
130
+ options: listSortAndFilterOptions,
131
+ schema: {
132
+ dataType: 'string',
133
+ unique: { enabled: true },
134
+ interface: {
135
+ type: AXPWidgetsCatalog.text,
136
+ options: {
137
+ disabled: true,
138
+ placeholder: '@risk-management:risk-matrix-cells.entities.risk-matrix-cell.fields.code.placeholder',
139
+ },
140
+ },
141
+ },
142
+ validations: [{ rule: 'required' }],
143
+ },
144
+ {
145
+ name: 'title',
146
+ title: '@risk-management:risk-matrix-cells.entities.risk-matrix-cell.fields.title.title',
147
+ groupId: 'basic-info',
148
+ options: listSortAndFilterOptions,
149
+ schema: {
150
+ dataType: 'string',
151
+ interface: {
152
+ type: AXPWidgetsCatalog.text,
153
+ options: {
154
+ placeholder: '@risk-management:risk-matrix-cells.entities.risk-matrix-cell.fields.title.placeholder',
155
+ },
156
+ },
157
+ },
158
+ validations: [{ rule: 'required' }],
159
+ },
160
+ {
161
+ name: 'matrixOrientation',
162
+ title: '@risk-management:risk-matrix-cells.entities.risk-matrix-cell.fields.matrix-orientation.title',
163
+ groupId: 'matrix-definition',
164
+ options: {
165
+ sort: { enabled: false },
166
+ filter: { advance: { enabled: false }, inline: { enabled: false } },
167
+ },
168
+ schema: {
169
+ dataType: 'string',
170
+ defaultValue: DEFAULT_RISK_MATRIX_ORIENTATION,
171
+ interface: {
172
+ type: AXPWidgetsList.Editors.SelectionList,
173
+ options: {
174
+ multiple: false,
175
+ showControl: true,
176
+ direction: { id: 'horizontal' },
177
+ valueField: 'id',
178
+ textField: 'title',
179
+ dataSource: [...RISK_MATRIX_ORIENTATION_OPTIONS],
180
+ },
181
+ },
182
+ },
183
+ validations: [{ rule: 'required' }],
184
+ },
185
+ {
186
+ name: 'likelihoodIds',
187
+ title: '@risk-management:risk-matrix-cells.entities.risk-matrix-cell.fields.likelihood-id.title',
188
+ groupId: 'matrix-definition',
189
+ options: {
190
+ 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 } },
210
+ },
211
+ schema: {
212
+ dataType: 'array',
213
+ 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
+ interface: {
232
+ type: AXPWidgetsList.Editors.RiskMatrix,
233
+ options: {},
234
+ },
235
+ },
236
+ },
237
+ ],
238
+ columns: [
239
+ { name: 'code' },
240
+ { name: 'title' },
241
+ { name: 'likelihoodIds', options: { dataPath: 'likelihoodList' } },
242
+ { name: 'severityIds', options: { dataPath: 'severityList' } },
243
+ { name: 'matrix', options: { order: 5 } },
244
+ ],
245
+ interfaces: {
246
+ master: {
247
+ create: {
248
+ 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
+ ],
257
+ },
258
+ update: {
259
+ 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
+ ],
268
+ },
269
+ single: {
270
+ title: '{{ title }}',
271
+ 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
+ ],
280
+ actions: [...entityMasterRecordActions()],
281
+ },
282
+ list: {
283
+ actions: [...entityMasterCrudActions()],
284
+ views: [
285
+ createAllQueryView({
286
+ sorts: [{ name: 'title', dir: 'asc' }],
287
+ }),
288
+ ],
289
+ },
290
+ },
291
+ },
292
+ };
293
+ return entityDef;
294
+ }
295
+ //#endregion
296
+
297
+ export { factoryRiskMatrixCell };
298
+ //# sourceMappingURL=acorex-platform-module-risk-management-client-contracts-entity-catalog-risk-matrix-cell.entity-b97tbRDA.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-risk-management-client-contracts-entity-catalog-risk-matrix-cell.entity-b97tbRDA.mjs","sources":["../../../../libs/modules/risk-management/contracts/src/risk-matrix-axis-mapping.ts","../../../../libs/modules/risk-management/contracts/src/entities/risk-matrix-cell/risk-matrix-cell.entity.ts"],"sourcesContent":["//#region ---- Types ----\n\n/** Lookup properties on RiskMatrixCell that can be assigned to matrix axes. */\nexport type AXMRiskMatrixAxisProperty = 'likelihoodId' | 'severityId' | 'riskRatingId';\n\nexport interface AXMRiskMatrixAxisMapping {\n rowProperty: AXMRiskMatrixAxisProperty;\n columnProperty: AXMRiskMatrixAxisProperty;\n depthProperty: AXMRiskMatrixAxisProperty;\n}\n\nexport type AXMRiskMatrixOrientation = 'likelihood-rows' | 'severity-rows';\n\n//#endregion\n\n//#region ---- Constants ----\n\nexport const RISK_MATRIX_AXIS_PROPERTIES: readonly AXMRiskMatrixAxisProperty[] = [\n 'likelihoodId',\n 'severityId',\n 'riskRatingId',\n] as const;\n\nexport const DEFAULT_RISK_MATRIX_AXIS_MAPPING: AXMRiskMatrixAxisMapping = {\n rowProperty: 'likelihoodId',\n columnProperty: 'severityId',\n depthProperty: 'riskRatingId',\n};\n\nexport const RISK_MATRIX_AXIS_PROPERTY_SELECT_OPTIONS = [\n {\n id: 'likelihoodId',\n title: '@risk-management:risk-matrix-cells.entities.risk-matrix-cell.fields.likelihood-id.title',\n },\n {\n id: 'severityId',\n title: '@risk-management:risk-matrix-cells.entities.risk-matrix-cell.fields.severity-id.title',\n },\n {\n id: 'riskRatingId',\n title: '@risk-management:risk-matrix-cells.entities.risk-matrix-cell.fields.risk-rating-id.title',\n },\n] as const;\n\nexport const DEFAULT_RISK_MATRIX_ORIENTATION: AXMRiskMatrixOrientation = 'likelihood-rows';\n\nexport const RISK_MATRIX_ORIENTATION_OPTIONS: Array<{ id: AXMRiskMatrixOrientation; title: string }> = [\n {\n id: 'likelihood-rows',\n title:\n '@risk-management:risk-matrix-cells.entities.risk-matrix-cell.fields.matrix-orientation.options.likelihood-rows',\n },\n {\n id: 'severity-rows',\n title:\n '@risk-management:risk-matrix-cells.entities.risk-matrix-cell.fields.matrix-orientation.options.severity-rows',\n },\n];\n\nexport const RISK_MATRIX_ORIENTATION_TITLE_KEYS: Record<AXMRiskMatrixOrientation, string> = {\n 'likelihood-rows': '@risk-management:risk-matrix-cells.components.risk-matrix.titles.likelihood-rows',\n 'severity-rows': '@risk-management:risk-matrix-cells.components.risk-matrix.titles.severity-rows',\n};\n\n//#endregion\n","import { AXPWidgetsCatalog, AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';\n//#region ---- Imports ----\nimport { DEFAULT_RISK_MATRIX_ORIENTATION, RISK_MATRIX_ORIENTATION_OPTIONS } from '../../risk-matrix-axis-mapping';\nimport { RootConfig } from '../../root-config';\n\n//#endregion\n\n//#region ---- Constants ----\n\nconst listSortAndFilterOptions = {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n};\n\nconst lookupPropertyLayout = (name: string, order: number) => ({\n name,\n layout: { positions: { lg: { colSpan: 6, order } } },\n});\n\nconst matrixPropertyLayout = {\n name: 'matrix',\n layout: { positions: { lg: { colSpan: 12, order: 7 } } },\n};\n\nconst matrixOrientationPropertyLayout = {\n name: 'matrixOrientation',\n layout: { positions: { lg: { colSpan: 12, order: 3 } } },\n};\n\nconst riskMatrixAxisLookupOptions = (\n entityKey: keyof typeof RootConfig.entities,\n exposeCollection: string,\n) => ({\n look: 'drop-down' as const,\n multiple: true,\n textField: 'title',\n valueField: 'id',\n entity: `${RootConfig.module.name}.${RootConfig.entities[entityKey].name}`,\n columns: ['code', 'title'],\n expose: [\n { source: 'id', target: `${exposeCollection}.{id}` },\n { source: 'title', target: `${exposeCollection}.{title}` },\n { source: 'code', target: `${exposeCollection}.{code}` },\n ],\n});\n\n//#endregion\n\n//#region ---- Entity factory ----\n\nexport async function factoryRiskMatrixCell(): Promise<AXPEntity | null> {\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.riskMatrixCell.name,\n title: RootConfig.entities.riskMatrixCell.title,\n icon: RootConfig.entities.riskMatrixCell.icon,\n formats: {\n individual: RootConfig.entities.riskMatrixCell.title,\n plural: RootConfig.entities.riskMatrixCell.titlePlural,\n searchResult: {\n title: '{{ title }}',\n description: '{{ code }}',\n },\n },\n plugins: [\n { name: 'history' },\n { name: 'identifier', options: { field: 'code', rule: 'risk-matrix-cell-code' } },\n { name: 'unique-fields', options: { fields: 'code', scope: 'global' } },\n {\n name: 'category',\n options: {\n appearance: { icon: true, color: true },\n },\n },\n { name: 'catalog-scope' },\n { name: 'archive' },\n ],\n groups: [\n {\n id: 'basic-info',\n title: '@risk-management:risk-matrix-cells.entities.risk-matrix-cell.groups.basic-info',\n },\n {\n id: 'matrix-definition',\n title: '@risk-management:risk-matrix-cells.entities.risk-matrix-cell.groups.matrix-definition',\n },\n ],\n properties: [\n {\n name: 'id',\n title: '@general:terms.common.id',\n groupId: 'basic-info',\n schema: { dataType: 'uuid', visible: false, nullable: false, readonly: true, unique: { enabled: true } },\n },\n {\n name: 'code',\n title: '@risk-management:risk-matrix-cells.entities.risk-matrix-cell.fields.code.title',\n groupId: 'basic-info',\n options: listSortAndFilterOptions,\n schema: {\n dataType: 'string',\n unique: { enabled: true },\n interface: {\n type: AXPWidgetsCatalog.text,\n options: {\n disabled: true,\n placeholder: '@risk-management:risk-matrix-cells.entities.risk-matrix-cell.fields.code.placeholder',\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'title',\n title: '@risk-management:risk-matrix-cells.entities.risk-matrix-cell.fields.title.title',\n groupId: 'basic-info',\n options: listSortAndFilterOptions,\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsCatalog.text,\n options: {\n placeholder: '@risk-management:risk-matrix-cells.entities.risk-matrix-cell.fields.title.placeholder',\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'matrixOrientation',\n title: '@risk-management:risk-matrix-cells.entities.risk-matrix-cell.fields.matrix-orientation.title',\n groupId: 'matrix-definition',\n options: {\n sort: { enabled: false },\n filter: { advance: { enabled: false }, inline: { enabled: false } },\n },\n schema: {\n dataType: 'string',\n defaultValue: DEFAULT_RISK_MATRIX_ORIENTATION,\n interface: {\n type: AXPWidgetsList.Editors.SelectionList,\n options: {\n multiple: false,\n showControl: true,\n direction: { id: 'horizontal' },\n valueField: 'id',\n textField: 'title',\n dataSource: [...RISK_MATRIX_ORIENTATION_OPTIONS],\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'likelihoodIds',\n title: '@risk-management:risk-matrix-cells.entities.risk-matrix-cell.fields.likelihood-id.title',\n groupId: 'matrix-definition',\n options: {\n sort: { enabled: false },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'array',\n defaultValue: [],\n interface: {\n type: AXPWidgetsList.Editors.LookupBox,\n options: riskMatrixAxisLookupOptions('riskLikelihood', 'likelihoodList'),\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'severityIds',\n title: '@risk-management:risk-matrix-cells.entities.risk-matrix-cell.fields.severity-id.title',\n groupId: 'matrix-definition',\n options: {\n sort: { enabled: false },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'array',\n defaultValue: [],\n interface: {\n type: AXPWidgetsList.Editors.LookupBox,\n options: riskMatrixAxisLookupOptions('riskSeverity', 'severityList'),\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'matrix',\n title: '@risk-management:risk-matrix-cells.entities.risk-matrix-cell.fields.matrix.title',\n groupId: 'matrix-definition',\n options: {\n sort: { enabled: false },\n filter: { advance: { enabled: false }, inline: { enabled: false } },\n },\n schema: {\n dataType: 'object',\n interface: {\n type: AXPWidgetsList.Editors.RiskMatrix,\n options: {},\n },\n },\n },\n ],\n columns: [\n { name: 'code' },\n { name: 'title' },\n { name: 'likelihoodIds', options: { dataPath: 'likelihoodList' } },\n { name: 'severityIds', options: { dataPath: 'severityList' } },\n { name: 'matrix', options: { order: 5 } },\n ],\n interfaces: {\n master: {\n create: {\n sections: [{ id: 'basic-info' }, { id: 'matrix-definition' }],\n properties: [\n { name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },\n matrixOrientationPropertyLayout,\n lookupPropertyLayout('likelihoodIds', 4),\n lookupPropertyLayout('severityIds', 5),\n matrixPropertyLayout,\n ],\n },\n update: {\n sections: [{ id: 'basic-info' }, { id: 'matrix-definition' }],\n properties: [\n { name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },\n matrixOrientationPropertyLayout,\n lookupPropertyLayout('likelihoodIds', 4),\n lookupPropertyLayout('severityIds', 5),\n matrixPropertyLayout,\n ],\n },\n single: {\n title: '{{ title }}',\n sections: [{ id: 'basic-info' }, { id: 'matrix-definition' }],\n properties: [\n { name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },\n matrixOrientationPropertyLayout,\n lookupPropertyLayout('likelihoodIds', 4),\n lookupPropertyLayout('severityIds', 5),\n matrixPropertyLayout,\n ],\n actions: [...entityMasterRecordActions()],\n },\n list: {\n actions: [...entityMasterCrudActions()],\n views: [\n createAllQueryView({\n sorts: [{ name: 'title', dir: 'asc' }],\n }),\n ],\n },\n },\n },\n };\n\n return entityDef;\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;AAAA;AAaA;AAEA;AAEO,MAAM,2BAA2B,GAAyC;IAC/E,cAAc;IACd,YAAY;IACZ,cAAc;CACN;AAEH,MAAM,gCAAgC,GAA6B;AACxE,IAAA,WAAW,EAAE,cAAc;AAC3B,IAAA,cAAc,EAAE,YAAY;AAC5B,IAAA,aAAa,EAAE,cAAc;CAC9B;AAEM,MAAM,wCAAwC,GAAG;AACtD,IAAA;AACE,QAAA,EAAE,EAAE,cAAc;AAClB,QAAA,KAAK,EAAE,yFAAyF;AACjG,KAAA;AACD,IAAA;AACE,QAAA,EAAE,EAAE,YAAY;AAChB,QAAA,KAAK,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