@acorex-platform/module-risk-management-client 0.0.32 → 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 (29) 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-local-entities.mjs +32 -0
  22. package/fesm2022/acorex-platform-module-risk-management-client-local-entities.mjs.map +1 -0
  23. package/package.json +25 -1
  24. package/types/acorex-platform-module-risk-management-client-contracts-entities-risk-likelihood.d.ts +5 -0
  25. package/types/acorex-platform-module-risk-management-client-contracts-entities-risk-matrix-cell.d.ts +5 -0
  26. package/types/acorex-platform-module-risk-management-client-contracts-entities-risk-rating.d.ts +5 -0
  27. package/types/acorex-platform-module-risk-management-client-contracts-entities-risk-severity.d.ts +5 -0
  28. package/types/acorex-platform-module-risk-management-client-contracts-entity-catalog.d.ts +10 -0
  29. package/types/acorex-platform-module-risk-management-client-local-entities.d.ts +12 -0
@@ -0,0 +1,177 @@
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 factoryRiskRating() {
14
+ const entityDef = {
15
+ module: RootConfig.module.name,
16
+ name: RootConfig.entities.riskRating.name,
17
+ title: RootConfig.entities.riskRating.title,
18
+ icon: RootConfig.entities.riskRating.icon,
19
+ formats: {
20
+ individual: RootConfig.entities.riskRating.title,
21
+ plural: RootConfig.entities.riskRating.titlePlural,
22
+ searchResult: {
23
+ title: '{{ title }}',
24
+ description: '{{ code }}',
25
+ },
26
+ },
27
+ plugins: [
28
+ { name: 'history' },
29
+ { name: 'identifier', options: { field: 'code', rule: 'risk-rating-code' } },
30
+ { name: 'unique-fields', options: { fields: 'code', scope: 'global' } },
31
+ {
32
+ name: 'color',
33
+ options: {
34
+ group: 'classification',
35
+ palette: ['theme', 'pastel'],
36
+ },
37
+ },
38
+ { name: 'archive' },
39
+ ],
40
+ groups: [
41
+ {
42
+ id: 'basic-info',
43
+ title: '@risk-management:risk-ratings.entities.risk-rating.groups.basic-info',
44
+ },
45
+ {
46
+ id: 'classification',
47
+ title: '@risk-management:risk-ratings.entities.risk-rating.groups.classification',
48
+ },
49
+ ],
50
+ properties: [
51
+ {
52
+ name: 'id',
53
+ title: '@general:terms.common.id',
54
+ groupId: 'basic-info',
55
+ schema: { dataType: 'uuid', visible: false, nullable: false, readonly: true, unique: { enabled: true } },
56
+ },
57
+ {
58
+ name: 'code',
59
+ title: '@risk-management:risk-ratings.entities.risk-rating.fields.code.title',
60
+ groupId: 'basic-info',
61
+ options: listSortAndFilterOptions,
62
+ schema: {
63
+ dataType: 'string',
64
+ unique: { enabled: true },
65
+ interface: {
66
+ type: AXPWidgetsCatalog.text,
67
+ options: {
68
+ disabled: true,
69
+ placeholder: '@risk-management:risk-ratings.entities.risk-rating.fields.code.placeholder',
70
+ },
71
+ },
72
+ },
73
+ validations: [{ rule: 'required' }],
74
+ },
75
+ {
76
+ name: 'title',
77
+ title: '@risk-management:risk-ratings.entities.risk-rating.fields.title.title',
78
+ groupId: 'basic-info',
79
+ options: listSortAndFilterOptions,
80
+ schema: {
81
+ dataType: 'string',
82
+ interface: {
83
+ type: AXPWidgetsCatalog.text,
84
+ options: {
85
+ placeholder: '@risk-management:risk-ratings.entities.risk-rating.fields.title.placeholder',
86
+ },
87
+ },
88
+ },
89
+ validations: [{ rule: 'required' }],
90
+ },
91
+ {
92
+ name: 'description',
93
+ title: '@general:terms.common.description',
94
+ groupId: 'basic-info',
95
+ options: {
96
+ sort: { enabled: false },
97
+ filter: { advance: { enabled: true }, inline: { enabled: false } },
98
+ },
99
+ schema: {
100
+ dataType: 'string',
101
+ nullable: true,
102
+ interface: {
103
+ type: AXPWidgetsCatalog.largeText,
104
+ options: {
105
+ placeholder: '@risk-management:risk-ratings.entities.risk-rating.fields.description.placeholder',
106
+ },
107
+ },
108
+ },
109
+ },
110
+ {
111
+ name: 'levelValue',
112
+ title: '@risk-management:risk-ratings.entities.risk-rating.fields.level-value.title',
113
+ groupId: 'classification',
114
+ options: listSortAndFilterOptions,
115
+ schema: {
116
+ dataType: 'number',
117
+ interface: {
118
+ type: AXPWidgetsCatalog.number,
119
+ options: {
120
+ minValue: 1,
121
+ maxValue: 99,
122
+ placeholder: '@risk-management:risk-ratings.entities.risk-rating.fields.level-value.placeholder',
123
+ },
124
+ },
125
+ },
126
+ validations: [{ rule: 'required' }],
127
+ },
128
+ ],
129
+ columns: [{ name: 'code' }, { name: 'title' }, { name: 'levelValue' }, { name: 'color' }],
130
+ interfaces: {
131
+ master: {
132
+ create: {
133
+ sections: [{ id: 'basic-info' }, { id: 'classification' }],
134
+ properties: [
135
+ { name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
136
+ { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
137
+ { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
138
+ { name: 'levelValue', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },
139
+ ],
140
+ },
141
+ update: {
142
+ sections: [{ id: 'basic-info' }, { id: 'classification' }],
143
+ properties: [
144
+ { name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
145
+ { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
146
+ { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
147
+ { name: 'levelValue', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },
148
+ ],
149
+ },
150
+ single: {
151
+ title: '{{ title }}',
152
+ sections: [{ id: 'basic-info' }, { id: 'classification' }],
153
+ properties: [
154
+ { name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
155
+ { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
156
+ { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
157
+ { name: 'levelValue', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },
158
+ ],
159
+ actions: [...entityMasterRecordActions()],
160
+ },
161
+ list: {
162
+ actions: [...entityMasterCrudActions()],
163
+ views: [
164
+ createAllQueryView({
165
+ sorts: [{ name: 'levelValue', dir: 'asc' }],
166
+ }),
167
+ ],
168
+ },
169
+ },
170
+ },
171
+ };
172
+ return entityDef;
173
+ }
174
+ //#endregion
175
+
176
+ export { factoryRiskRating };
177
+ //# sourceMappingURL=acorex-platform-module-risk-management-client-contracts-entity-catalog-risk-rating.entity-CreMsiCu.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-risk-management-client-contracts-entity-catalog-risk-rating.entity-CreMsiCu.mjs","sources":["../../../../libs/modules/risk-management/contracts/src/entities/risk-rating/risk-rating.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 factoryRiskRating(): Promise<AXPEntity | null> {\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.riskRating.name,\n title: RootConfig.entities.riskRating.title,\n icon: RootConfig.entities.riskRating.icon,\n formats: {\n individual: RootConfig.entities.riskRating.title,\n plural: RootConfig.entities.riskRating.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-code' } },\n { name: 'unique-fields', options: { fields: 'code', scope: 'global' } },\n {\n name: 'color',\n options: {\n group: 'classification',\n palette: ['theme', 'pastel'],\n },\n },\n { name: 'archive' },\n ],\n groups: [\n {\n id: 'basic-info',\n title: '@risk-management:risk-ratings.entities.risk-rating.groups.basic-info',\n },\n {\n id: 'classification',\n title: '@risk-management:risk-ratings.entities.risk-rating.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-ratings.entities.risk-rating.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-ratings.entities.risk-rating.fields.code.placeholder',\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'title',\n title: '@risk-management:risk-ratings.entities.risk-rating.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-ratings.entities.risk-rating.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-ratings.entities.risk-rating.fields.description.placeholder',\n },\n },\n },\n },\n {\n name: 'levelValue',\n title: '@risk-management:risk-ratings.entities.risk-rating.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: 1,\n maxValue: 99,\n placeholder: '@risk-management:risk-ratings.entities.risk-rating.fields.level-value.placeholder',\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n ],\n columns: [{ name: 'code' }, { name: 'title' }, { name: 'levelValue' }, { name: 'color' }],\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,iBAAiB,GAAA;AACrC,IAAA,MAAM,SAAS,GAAc;AAC3B,QAAA,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAC9B,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAI;AACzC,QAAA,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC,UAAU,CAAC,KAAK;AAC3C,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAI;AACzC,QAAA,OAAO,EAAE;AACP,YAAA,UAAU,EAAE,UAAU,CAAC,QAAQ,CAAC,UAAU,CAAC,KAAK;AAChD,YAAA,MAAM,EAAE,UAAU,CAAC,QAAQ,CAAC,UAAU,CAAC,WAAW;AAClD,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,YAAY,EAAE,OAAO,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,kBAAkB,EAAE,EAAE;AAC5E,YAAA,EAAE,IAAI,EAAE,eAAe,EAAE,OAAO,EAAE,EAAE,MAAM,E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AE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;wBACzE,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,KAAK,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,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 factoryRiskSeverity() {
14
+ const entityDef = {
15
+ module: RootConfig.module.name,
16
+ name: RootConfig.entities.riskSeverity.name,
17
+ title: RootConfig.entities.riskSeverity.title,
18
+ icon: RootConfig.entities.riskSeverity.icon,
19
+ formats: {
20
+ individual: RootConfig.entities.riskSeverity.title,
21
+ plural: RootConfig.entities.riskSeverity.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-severities.entities.risk-severity.groups.basic-info',
36
+ },
37
+ {
38
+ id: 'classification',
39
+ title: '@risk-management:risk-severities.entities.risk-severity.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-severities.entities.risk-severity.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-severities.entities.risk-severity.fields.code.placeholder',
61
+ },
62
+ },
63
+ },
64
+ validations: [{ rule: 'required' }],
65
+ },
66
+ {
67
+ name: 'title',
68
+ title: '@risk-management:risk-severities.entities.risk-severity.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-severities.entities.risk-severity.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-severities.entities.risk-severity.fields.description.placeholder',
97
+ },
98
+ },
99
+ },
100
+ },
101
+ {
102
+ name: 'levelValue',
103
+ title: '@risk-management:risk-severities.entities.risk-severity.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: 1,
112
+ maxValue: 99,
113
+ placeholder: '@risk-management:risk-severities.entities.risk-severity.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 { factoryRiskSeverity };
172
+ //# sourceMappingURL=acorex-platform-module-risk-management-client-contracts-entity-catalog-risk-severity.entity-bEyLH8dE.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-risk-management-client-contracts-entity-catalog-risk-severity.entity-bEyLH8dE.mjs","sources":["../../../../libs/modules/risk-management/contracts/src/entities/risk-severity/risk-severity.entity.ts"],"sourcesContent":["import { AXPWidgetsCatalog, AXPWidgetsList } 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 factoryRiskSeverity(): Promise<AXPEntity | null> {\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.riskSeverity.name,\n title: RootConfig.entities.riskSeverity.title,\n icon: RootConfig.entities.riskSeverity.icon,\n formats: {\n individual: RootConfig.entities.riskSeverity.title,\n plural: RootConfig.entities.riskSeverity.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-severities.entities.risk-severity.groups.basic-info',\n },\n {\n id: 'classification',\n title: '@risk-management:risk-severities.entities.risk-severity.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-severities.entities.risk-severity.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-severities.entities.risk-severity.fields.code.placeholder',\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'title',\n title: '@risk-management:risk-severities.entities.risk-severity.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-severities.entities.risk-severity.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-severities.entities.risk-severity.fields.description.placeholder',\n },\n },\n },\n },\n {\n name: 'levelValue',\n title: '@risk-management:risk-severities.entities.risk-severity.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: 1,\n maxValue: 99,\n placeholder: '@risk-management:risk-severities.entities.risk-severity.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,mBAAmB,GAAA;AACvC,IAAA,MAAM,SAAS,GAAc;AAC3B,QAAA,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAC9B,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,YAAY,CAAC,IAAI;AAC3C,QAAA,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC,YAAY,CAAC,KAAK;AAC7C,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,YAAY,CAAC,IAAI;AAC3C,QAAA,OAAO,EAAE;AACP,YAAA,UAAU,EAAE,UAAU,CAAC,QAAQ,CAAC,YAAY,CAAC,KAAK;AAClD,YAAA,MAAM,EAAE,UAAU,CAAC,QAAQ,CAAC,YAAY,CAAC,WAAW;AACpD,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,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE;YACvE,EAAE,IAAI,EAAE,SAAS,EAAE;AACpB,SAAA;AACD,QAAA,MAAM,EAAE;AACN,YAAA;AACE,gBAAA,EAAE,E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,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,2 @@
1
+ export { r as riskManagementLocalEntityCatalog } from './acorex-platform-module-risk-management-client-contracts-entity-catalog-acorex-platform-module-risk-management-client-contracts-entity-catalog-Dc6Me3H6.mjs';
2
+ //# sourceMappingURL=acorex-platform-module-risk-management-client-contracts-entity-catalog.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-risk-management-client-contracts-entity-catalog.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,32 @@
1
+ import { provideLocalEntityCatalog } from '@acorex-platform/framework-client/layout/entity';
2
+ import { RootConfig } from '@acorex-platform/module-risk-management-client/contracts';
3
+ export { riskManagementLocalEntityCatalog } from '@acorex-platform/module-risk-management-client/contracts/entity-catalog';
4
+
5
+ //#region ----- Imports -----
6
+ //#endregion
7
+ //#region ----- Provide local entities -----
8
+ /**
9
+ * Registers risk-management layouts on the client from packaged factories.
10
+ * Each `import()` targets a secondary entry so unused entities stay out of the
11
+ * bundle. Do not add this to the demo app; demo continues to load layouts via
12
+ * `Domain:GetEntityLayout`.
13
+ */
14
+ function provideRiskManagementLocalEntities() {
15
+ return provideLocalEntityCatalog({
16
+ moduleName: RootConfig.module.name,
17
+ loaders: {
18
+ [RootConfig.entities.riskLikelihood.name]: () => import('@acorex-platform/module-risk-management-client/contracts/entities/risk-likelihood').then((m) => m.factoryRiskLikelihood()),
19
+ [RootConfig.entities.riskMatrixCell.name]: () => import('@acorex-platform/module-risk-management-client/contracts/entities/risk-matrix-cell').then((m) => m.factoryRiskMatrixCell()),
20
+ [RootConfig.entities.riskRating.name]: () => import('@acorex-platform/module-risk-management-client/contracts/entities/risk-rating').then((m) => m.factoryRiskRating()),
21
+ [RootConfig.entities.riskSeverity.name]: () => import('@acorex-platform/module-risk-management-client/contracts/entities/risk-severity').then((m) => m.factoryRiskSeverity()),
22
+ },
23
+ });
24
+ }
25
+ //#endregion
26
+
27
+ /**
28
+ * Generated bundle index. Do not edit.
29
+ */
30
+
31
+ export { provideRiskManagementLocalEntities };
32
+ //# sourceMappingURL=acorex-platform-module-risk-management-client-local-entities.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-risk-management-client-local-entities.mjs","sources":["../../../../libs/modules/risk-management/client/src/lib/provide-local-entities.ts","../../../../libs/modules/risk-management/client/src/lib/acorex-platform-module-risk-management-client-local-entities.ts"],"sourcesContent":["//#region ----- Imports -----\n\nimport { provideLocalEntityCatalog } from '@acorex-platform/framework-client/layout/entity';\nimport { RootConfig } from '@acorex-platform/module-risk-management-client/contracts';\n\n//#endregion\n\n//#region ----- Provide local entities -----\n\n/**\n * Registers risk-management layouts on the client from packaged factories.\n * Each `import()` targets a secondary entry so unused entities stay out of the\n * bundle. Do not add this to the demo app; demo continues to load layouts via\n * `Domain:GetEntityLayout`.\n */\nexport function provideRiskManagementLocalEntities() {\n return provideLocalEntityCatalog({\n moduleName: RootConfig.module.name,\n loaders: {\n [RootConfig.entities.riskLikelihood.name]: () =>\n import('@acorex-platform/module-risk-management-client/contracts/entities/risk-likelihood').then((m) => m.factoryRiskLikelihood()),\n [RootConfig.entities.riskMatrixCell.name]: () =>\n import('@acorex-platform/module-risk-management-client/contracts/entities/risk-matrix-cell').then((m) => m.factoryRiskMatrixCell()),\n [RootConfig.entities.riskRating.name]: () =>\n import('@acorex-platform/module-risk-management-client/contracts/entities/risk-rating').then((m) => m.factoryRiskRating()),\n [RootConfig.entities.riskSeverity.name]: () =>\n import('@acorex-platform/module-risk-management-client/contracts/entities/risk-severity').then((m) => m.factoryRiskSeverity()),\n },\n });\n}\n\nexport { riskManagementLocalEntityCatalog } from '@acorex-platform/module-risk-management-client/contracts/entity-catalog';\n\n//#endregion\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './provide-local-entities';\n"],"names":[],"mappings":";;;;AAAA;AAKA;AAEA;AAEA;;;;;AAKG;SACa,kCAAkC,GAAA;AAChD,IAAA,OAAO,yBAAyB,CAAC;AAC/B,QAAA,UAAU,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAClC,QAAA,OAAO,EAAE;AACP,YAAA,CAAC,UAAU,CAAC,QAAQ,CAAC,cAAc,CAAC,IAAI,GAAG,MACzC,OAAO,mFAAmF,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,qBAAqB,EAAE,CAAC;AACpI,YAAA,CAAC,UAAU,CAAC,QAAQ,CAAC,cAAc,CAAC,IAAI,GAAG,MACzC,OAAO,oFAAoF,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,qBAAqB,EAAE,CAAC;AACrI,YAAA,CAAC,UAAU,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAI,GAAG,MACrC,OAAO,+EAA+E,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,iBAAiB,EAAE,CAAC;AAC5H,YAAA,CAAC,UAAU,CAAC,QAAQ,CAAC,YAAY,CAAC,IAAI,GAAG,MACvC,OAAO,iFAAiF,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,mBAAmB,EAAE,CAAC;AACjI,SAAA;AACF,KAAA,CAAC;AACJ;AAIA;;ACjCA;;AAEG;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acorex-platform/module-risk-management-client",
3
- "version": "0.0.32",
3
+ "version": "0.0.33",
4
4
  "sideEffects": false,
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^21.0.0 || ^22.0.0",
@@ -22,6 +22,30 @@
22
22
  "./contracts": {
23
23
  "types": "./types/acorex-platform-module-risk-management-client-contracts.d.ts",
24
24
  "default": "./fesm2022/acorex-platform-module-risk-management-client-contracts.mjs"
25
+ },
26
+ "./contracts/entities/risk-likelihood": {
27
+ "types": "./types/acorex-platform-module-risk-management-client-contracts-entities-risk-likelihood.d.ts",
28
+ "default": "./fesm2022/acorex-platform-module-risk-management-client-contracts-entities-risk-likelihood.mjs"
29
+ },
30
+ "./contracts/entities/risk-matrix-cell": {
31
+ "types": "./types/acorex-platform-module-risk-management-client-contracts-entities-risk-matrix-cell.d.ts",
32
+ "default": "./fesm2022/acorex-platform-module-risk-management-client-contracts-entities-risk-matrix-cell.mjs"
33
+ },
34
+ "./contracts/entities/risk-rating": {
35
+ "types": "./types/acorex-platform-module-risk-management-client-contracts-entities-risk-rating.d.ts",
36
+ "default": "./fesm2022/acorex-platform-module-risk-management-client-contracts-entities-risk-rating.mjs"
37
+ },
38
+ "./contracts/entities/risk-severity": {
39
+ "types": "./types/acorex-platform-module-risk-management-client-contracts-entities-risk-severity.d.ts",
40
+ "default": "./fesm2022/acorex-platform-module-risk-management-client-contracts-entities-risk-severity.mjs"
41
+ },
42
+ "./contracts/entity-catalog": {
43
+ "types": "./types/acorex-platform-module-risk-management-client-contracts-entity-catalog.d.ts",
44
+ "default": "./fesm2022/acorex-platform-module-risk-management-client-contracts-entity-catalog.mjs"
45
+ },
46
+ "./local-entities": {
47
+ "types": "./types/acorex-platform-module-risk-management-client-local-entities.d.ts",
48
+ "default": "./fesm2022/acorex-platform-module-risk-management-client-local-entities.mjs"
25
49
  }
26
50
  },
27
51
  "type": "module"
@@ -0,0 +1,5 @@
1
+ import { AXPEntity } from '@acorex-platform/framework-shared/entity';
2
+
3
+ declare function factoryRiskLikelihood(): Promise<AXPEntity | null>;
4
+
5
+ export { factoryRiskLikelihood };
@@ -0,0 +1,5 @@
1
+ import { AXPEntity } from '@acorex-platform/framework-shared/entity';
2
+
3
+ declare function factoryRiskMatrixCell(): Promise<AXPEntity | null>;
4
+
5
+ export { factoryRiskMatrixCell };
@@ -0,0 +1,5 @@
1
+ import { AXPEntity } from '@acorex-platform/framework-shared/entity';
2
+
3
+ declare function factoryRiskRating(): Promise<AXPEntity | null>;
4
+
5
+ export { factoryRiskRating };
@@ -0,0 +1,5 @@
1
+ import { AXPEntity } from '@acorex-platform/framework-shared/entity';
2
+
3
+ declare function factoryRiskSeverity(): Promise<AXPEntity | null>;
4
+
5
+ export { factoryRiskSeverity };
@@ -0,0 +1,10 @@
1
+ import { AXPLocalEntityCatalog } from '@acorex-platform/framework-shared/entity';
2
+
3
+ /**
4
+ * Lazy per-entity layout factories. Do not re-export from the contracts barrel
5
+ * so RootConfig imports stay light. Server seed and client `local-entities`
6
+ * consume this catalog explicitly.
7
+ */
8
+ declare const riskManagementLocalEntityCatalog: AXPLocalEntityCatalog;
9
+
10
+ export { riskManagementLocalEntityCatalog };
@@ -0,0 +1,12 @@
1
+ import * as _angular_core from '@angular/core';
2
+ export { riskManagementLocalEntityCatalog } from '@acorex-platform/module-risk-management-client/contracts/entity-catalog';
3
+
4
+ /**
5
+ * Registers risk-management layouts on the client from packaged factories.
6
+ * Each `import()` targets a secondary entry so unused entities stay out of the
7
+ * bundle. Do not add this to the demo app; demo continues to load layouts via
8
+ * `Domain:GetEntityLayout`.
9
+ */
10
+ declare function provideRiskManagementLocalEntities(): _angular_core.EnvironmentProviders;
11
+
12
+ export { provideRiskManagementLocalEntities };