@acorex-platform/module-health-core-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.
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entities-blood-type.mjs +222 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entities-blood-type.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entities-body-part.mjs +169 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entities-body-part.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entities-disability-status.mjs +222 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entities-disability-status.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entities-health-condition-type.mjs +242 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entities-health-condition-type.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entities-health-condition.mjs +450 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entities-health-condition.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entities-health-event.mjs +458 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entities-health-event.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entities-health-profile.mjs +462 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entities-health-profile.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entities-health-record-type.mjs +199 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entities-health-record-type.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entities-health-restriction.mjs +189 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entities-health-restriction.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entities-injury-type.mjs +169 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entities-injury-type.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entities-vaccination-type.mjs +169 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entities-vaccination-type.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog-acorex-platform-module-health-core-client-contracts-entity-catalog-DDEtVb1s.mjs +128 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog-acorex-platform-module-health-core-client-contracts-entity-catalog-DDEtVb1s.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog-blood-type.entity-p2zIcAHU.mjs +123 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog-blood-type.entity-p2zIcAHU.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog-body-part.entity-DjkZjrxE.mjs +70 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog-body-part.entity-DjkZjrxE.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog-disability-status.entity-qJAaog7k.mjs +123 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog-disability-status.entity-qJAaog7k.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog-health-condition-type.entity-KXSdNV9C.mjs +143 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog-health-condition-type.entity-KXSdNV9C.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog-health-condition.entity-CWaIy5Km.mjs +272 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog-health-condition.entity-CWaIy5Km.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog-health-event.entity-CtfvxfTO.mjs +280 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog-health-event.entity-CtfvxfTO.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog-health-profile.entity-1jLe_zQB.mjs +284 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog-health-profile.entity-1jLe_zQB.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog-health-record-type.entity-3PXrfa-P.mjs +100 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog-health-record-type.entity-3PXrfa-P.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog-health-restriction.entity-Cd-Ntuzb.mjs +90 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog-health-restriction.entity-Cd-Ntuzb.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog-health-subject-form-layout.utils-BOm1lGPF.mjs +84 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog-health-subject-form-layout.utils-BOm1lGPF.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog-injury-type.entity-D75KtQB2.mjs +70 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog-injury-type.entity-D75KtQB2.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog-vaccination-type.entity-BetHc463.mjs +70 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog-vaccination-type.entity-BetHc463.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog.mjs +2 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-health-core-client-local-entities.mjs +39 -0
- package/fesm2022/acorex-platform-module-health-core-client-local-entities.mjs.map +1 -0
- package/package.json +54 -2
- package/types/acorex-platform-module-health-core-client-contracts-entities-blood-type.d.ts +5 -0
- package/types/acorex-platform-module-health-core-client-contracts-entities-body-part.d.ts +5 -0
- package/types/acorex-platform-module-health-core-client-contracts-entities-disability-status.d.ts +5 -0
- package/types/acorex-platform-module-health-core-client-contracts-entities-health-condition-type.d.ts +5 -0
- package/types/acorex-platform-module-health-core-client-contracts-entities-health-condition.d.ts +5 -0
- package/types/acorex-platform-module-health-core-client-contracts-entities-health-event.d.ts +5 -0
- package/types/acorex-platform-module-health-core-client-contracts-entities-health-profile.d.ts +5 -0
- package/types/acorex-platform-module-health-core-client-contracts-entities-health-record-type.d.ts +5 -0
- package/types/acorex-platform-module-health-core-client-contracts-entities-health-restriction.d.ts +5 -0
- package/types/acorex-platform-module-health-core-client-contracts-entities-injury-type.d.ts +5 -0
- package/types/acorex-platform-module-health-core-client-contracts-entities-vaccination-type.d.ts +5 -0
- package/types/acorex-platform-module-health-core-client-contracts-entity-catalog.d.ts +10 -0
- package/types/acorex-platform-module-health-core-client-local-entities.d.ts +12 -0
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { 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-health-core-client-contracts-entity-catalog-acorex-platform-module-health-core-client-contracts-entity-catalog-DDEtVb1s.mjs';
|
|
4
|
+
|
|
5
|
+
/** Health catalog scope for questionnaires, question bank items, and workflow definitions. */
|
|
6
|
+
const HEALTH_CATALOG_SCOPE = 'health-core.health';
|
|
7
|
+
|
|
8
|
+
//#region ---- Imports ----
|
|
9
|
+
//#endregion
|
|
10
|
+
//#region ---- Entity Factory ----
|
|
11
|
+
async function healthRecordTypeFactory() {
|
|
12
|
+
const sections = [{ id: 'basic-info' }];
|
|
13
|
+
const propertyLayouts = [
|
|
14
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 12 } } } },
|
|
15
|
+
{ name: 'description', layout: { positions: { lg: { colSpan: 12 } } } },
|
|
16
|
+
];
|
|
17
|
+
const entityDef = {
|
|
18
|
+
module: RootConfig.module.name,
|
|
19
|
+
name: RootConfig.entities.healthRecordType.name,
|
|
20
|
+
title: RootConfig.entities.healthRecordType.title,
|
|
21
|
+
icon: RootConfig.entities.healthRecordType.icon,
|
|
22
|
+
plugins: [
|
|
23
|
+
{ name: 'meta-data-builder', options: { display: 'page' } },
|
|
24
|
+
{ name: 'icon' },
|
|
25
|
+
{ name: 'clone' },
|
|
26
|
+
{ name: 'history' },
|
|
27
|
+
{
|
|
28
|
+
name: 'workflow-selector',
|
|
29
|
+
options: {
|
|
30
|
+
templateInputNames: ['questionnaireId', 'requireEmployeeSignature', 'requireManagerSignature'],
|
|
31
|
+
catalogScopeKeys: [HEALTH_CATALOG_SCOPE],
|
|
32
|
+
templateInputFilters: {
|
|
33
|
+
questionnaireId: {
|
|
34
|
+
catalogScopeKeys: [HEALTH_CATALOG_SCOPE],
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
],
|
|
40
|
+
formats: {
|
|
41
|
+
individual: RootConfig.entities.healthRecordType.title,
|
|
42
|
+
plural: RootConfig.entities.healthRecordType.titlePlural,
|
|
43
|
+
searchResult: { title: '{{ title }}', description: '{{ description }}' },
|
|
44
|
+
},
|
|
45
|
+
groups: [{ id: 'basic-info', title: '@general:terms.interface.basic-info' }],
|
|
46
|
+
properties: [
|
|
47
|
+
{
|
|
48
|
+
name: 'id',
|
|
49
|
+
title: '@general:terms.common.id',
|
|
50
|
+
schema: { dataType: 'uuid', visible: false, readonly: true, unique: { enabled: true } },
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
name: 'title',
|
|
54
|
+
title: '@general:terms.common.title',
|
|
55
|
+
groupId: 'basic-info',
|
|
56
|
+
schema: {
|
|
57
|
+
dataType: 'string',
|
|
58
|
+
interface: { type: AXPWidgetsList.Editors.TextBox },
|
|
59
|
+
},
|
|
60
|
+
options: { sort: { enabled: true }, filter: { advance: { enabled: true }, inline: { enabled: true } } },
|
|
61
|
+
validations: [{ rule: 'required' }],
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
name: 'description',
|
|
65
|
+
title: '@general:terms.common.description',
|
|
66
|
+
groupId: 'basic-info',
|
|
67
|
+
options: {
|
|
68
|
+
sort: { enabled: false },
|
|
69
|
+
filter: { advance: { enabled: true }, inline: { enabled: false } },
|
|
70
|
+
},
|
|
71
|
+
schema: {
|
|
72
|
+
dataType: 'string',
|
|
73
|
+
interface: { type: AXPWidgetsList.Editors.LargeTextBox, options: { rows: 3 } },
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
],
|
|
77
|
+
columns: [{ name: 'title' }, { name: 'description' }],
|
|
78
|
+
interfaces: {
|
|
79
|
+
master: {
|
|
80
|
+
create: { sections, properties: propertyLayouts },
|
|
81
|
+
update: { sections, properties: propertyLayouts },
|
|
82
|
+
single: {
|
|
83
|
+
title: '{{ title }}',
|
|
84
|
+
sections: [{ id: 'basic-info', order: 1, layout: { positions: { lg: { colSpan: 12 } } } }],
|
|
85
|
+
properties: propertyLayouts,
|
|
86
|
+
actions: [...entityMasterRecordActions()],
|
|
87
|
+
},
|
|
88
|
+
list: {
|
|
89
|
+
actions: [...entityMasterCrudActions()],
|
|
90
|
+
views: [createAllQueryView({ sorts: [{ name: 'title', dir: 'asc' }] })],
|
|
91
|
+
},
|
|
92
|
+
},
|
|
93
|
+
},
|
|
94
|
+
};
|
|
95
|
+
return entityDef;
|
|
96
|
+
}
|
|
97
|
+
//#endregion
|
|
98
|
+
|
|
99
|
+
export { healthRecordTypeFactory };
|
|
100
|
+
//# sourceMappingURL=acorex-platform-module-health-core-client-contracts-entity-catalog-health-record-type.entity-3PXrfa-P.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-health-core-client-contracts-entity-catalog-health-record-type.entity-3PXrfa-P.mjs","sources":["../../../../libs/modules/health-core/contracts/src/catalog-scope.keys.ts","../../../../libs/modules/health-core/contracts/src/entities/health-record-type/health-record-type.entity.ts"],"sourcesContent":["/** Health catalog scope for questionnaires, question bank items, and workflow definitions. */\nexport const HEALTH_CATALOG_SCOPE = 'health-core.health';\n","//#region ---- Imports ----\n\nimport { AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';\n\nimport { HEALTH_CATALOG_SCOPE } from '../../catalog-scope.keys';\nimport { RootConfig } from '../../root-config';\n\n//#endregion\n\n//#region ---- Entity Factory ----\n\nexport async function healthRecordTypeFactory(): Promise<AXPEntity> {\n const sections = [{ id: 'basic-info' }];\n const propertyLayouts = [\n { name: 'title', layout: { positions: { lg: { colSpan: 12 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12 } } } },\n ];\n\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.healthRecordType.name,\n title: RootConfig.entities.healthRecordType.title,\n icon: RootConfig.entities.healthRecordType.icon,\n plugins: [\n { name: 'meta-data-builder', options: { display: 'page' } },\n { name: 'icon' },\n { name: 'clone' },\n { name: 'history' },\n {\n name: 'workflow-selector',\n options: {\n templateInputNames: ['questionnaireId', 'requireEmployeeSignature', 'requireManagerSignature'],\n catalogScopeKeys: [HEALTH_CATALOG_SCOPE],\n templateInputFilters: {\n questionnaireId: {\n catalogScopeKeys: [HEALTH_CATALOG_SCOPE],\n },\n },\n },\n },\n ],\n formats: {\n individual: RootConfig.entities.healthRecordType.title,\n plural: RootConfig.entities.healthRecordType.titlePlural,\n searchResult: { title: '{{ title }}', description: '{{ description }}' },\n },\n groups: [{ id: 'basic-info', title: '@general:terms.interface.basic-info' }],\n properties: [\n {\n name: 'id',\n title: '@general:terms.common.id',\n schema: { dataType: 'uuid', visible: false, readonly: true, unique: { enabled: true } },\n },\n {\n name: 'title',\n title: '@general:terms.common.title',\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n interface: { type: AXPWidgetsList.Editors.TextBox },\n },\n options: { sort: { enabled: true }, filter: { advance: { enabled: true }, inline: { enabled: true } } },\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 interface: { type: AXPWidgetsList.Editors.LargeTextBox, options: { rows: 3 } },\n },\n },\n ],\n columns: [{ name: 'title' }, { name: 'description' }],\n interfaces: {\n master: {\n create: { sections, properties: propertyLayouts },\n update: { sections, properties: propertyLayouts },\n single: {\n title: '{{ title }}',\n sections: [{ id: 'basic-info', order: 1, layout: { positions: { lg: { colSpan: 12 } } } }],\n properties: propertyLayouts,\n actions: [...entityMasterRecordActions()],\n },\n list: {\n actions: [...entityMasterCrudActions()],\n views: [createAllQueryView({ sorts: [{ name: 'title', dir: 'asc' }] })],\n },\n },\n },\n };\n\n return entityDef;\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;AAAA;AACO,MAAM,oBAAoB,GAAG,oBAAoB;;ACDxD;AAQA;AAEA;AAEO,eAAe,uBAAuB,GAAA;IAC3C,MAAM,QAAQ,GAAG,CAAC,EAAE,EAAE,EAAE,YAAY,EAAE,CAAC;AACvC,IAAA,MAAM,eAAe,GAAG;AACtB,QAAA,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE;AACjE,QAAA,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE;KACxE;AAED,IAAA,MAAM,SAAS,GAAc;AAC3B,QAAA,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAC9B,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,gBAAgB,CAAC,IAAI;AAC/C,QAAA,KAAK,EAA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,EAAE;AACV,YAAA,MAAM,EAAE;AACN,gBAAA,MAAM,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE,eAAe,EAAE;AACjD,gBAAA,MAAM,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE,eAAe,EAAE;AACjD,gBAAA,MAAM,EAAE;AACN,oBAAA,KAAK,EAAE,aAAa;oBACpB,QAAQ,EAAE,CAAC,EAAE,EAAE,EAAE,YAAY,EAAE,KAAK,EAAE,CAAC,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC;AAC1F,oBAAA,UAAU,EAAE,eAAe;AAC3B,oBAAA,OAAO,EAAE,CAAC,GAAG,yBAAyB,EAAE,CAAC;AAC1C,iBAAA;AACD,gBAAA,IAAI,EAAE;AACJ,oBAAA,OAAO,EAAE,CAAC,GAAG,uBAAuB,EAAE,CAAC;oBACvC,KAAK,EAAE,CAAC,kBAAkB,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;AACxE,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AAED,IAAA,OAAO,SAAS;AAClB;AAEA;;;;"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { 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-health-core-client-contracts-entity-catalog-acorex-platform-module-health-core-client-contracts-entity-catalog-DDEtVb1s.mjs';
|
|
4
|
+
|
|
5
|
+
//#region ---- Imports ----
|
|
6
|
+
//#endregion
|
|
7
|
+
//#region ---- Entity Factory ----
|
|
8
|
+
async function healthRestrictionFactory() {
|
|
9
|
+
const sections = [{ id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } }];
|
|
10
|
+
const propertyLayouts = [
|
|
11
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 12, order: 1 } } } },
|
|
12
|
+
{ name: 'description', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },
|
|
13
|
+
];
|
|
14
|
+
const entityDef = {
|
|
15
|
+
module: RootConfig.module.name,
|
|
16
|
+
name: RootConfig.entities.healthRestriction.name,
|
|
17
|
+
title: RootConfig.entities.healthRestriction.title,
|
|
18
|
+
icon: RootConfig.entities.healthRestriction.icon,
|
|
19
|
+
formats: {
|
|
20
|
+
individual: RootConfig.entities.healthRestriction.title,
|
|
21
|
+
plural: RootConfig.entities.healthRestriction.titlePlural,
|
|
22
|
+
searchResult: { title: '{{ title }}', description: '{{ description }}' },
|
|
23
|
+
},
|
|
24
|
+
plugins: [
|
|
25
|
+
{ name: 'history' },
|
|
26
|
+
{ name: 'compare' },
|
|
27
|
+
{ name: 'clone' },
|
|
28
|
+
{ name: 'category', options: { appearance: { icon: true, color: true }, metaData: { enabled: true } } },
|
|
29
|
+
{ name: 'meta-data-form', options: { path: 'categoryIds' } },
|
|
30
|
+
],
|
|
31
|
+
groups: [{ id: 'basic-info', title: '@general:terms.interface.basic-info' }],
|
|
32
|
+
properties: [
|
|
33
|
+
{
|
|
34
|
+
name: 'id',
|
|
35
|
+
title: '@general:terms.common.id',
|
|
36
|
+
groupId: 'basic-info',
|
|
37
|
+
schema: { dataType: 'uuid', visible: false, readonly: true, unique: { enabled: true } },
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
name: 'title',
|
|
41
|
+
title: '@general:terms.common.title',
|
|
42
|
+
groupId: 'basic-info',
|
|
43
|
+
options: { sort: { enabled: true }, filter: { advance: { enabled: true }, inline: { enabled: true } } },
|
|
44
|
+
schema: {
|
|
45
|
+
dataType: 'string',
|
|
46
|
+
interface: { type: AXPWidgetsList.Editors.TextBox, options: { placeholder: '@general:terms.common.title' } },
|
|
47
|
+
},
|
|
48
|
+
validations: [{ rule: 'required' }],
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
name: 'description',
|
|
52
|
+
title: '@general:terms.common.description',
|
|
53
|
+
groupId: 'basic-info',
|
|
54
|
+
options: {
|
|
55
|
+
sort: { enabled: false },
|
|
56
|
+
filter: { advance: { enabled: true }, inline: { enabled: false } },
|
|
57
|
+
},
|
|
58
|
+
schema: {
|
|
59
|
+
dataType: 'string',
|
|
60
|
+
interface: { type: AXPWidgetsList.Editors.LargeTextBox, options: { rows: 3 } },
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
],
|
|
64
|
+
columns: [
|
|
65
|
+
{ name: 'title', options: { width: '260px', order: 1 } },
|
|
66
|
+
{ name: 'description', options: { width: '320px', order: 2 } },
|
|
67
|
+
],
|
|
68
|
+
interfaces: {
|
|
69
|
+
master: {
|
|
70
|
+
create: { sections, properties: propertyLayouts },
|
|
71
|
+
update: { sections, properties: propertyLayouts },
|
|
72
|
+
single: {
|
|
73
|
+
title: '{{ title }}',
|
|
74
|
+
sections,
|
|
75
|
+
properties: propertyLayouts,
|
|
76
|
+
actions: [...entityMasterRecordActions()],
|
|
77
|
+
},
|
|
78
|
+
list: {
|
|
79
|
+
actions: [...entityMasterCrudActions()],
|
|
80
|
+
views: [createAllQueryView({ sorts: [{ name: 'title', dir: 'asc' }] })],
|
|
81
|
+
},
|
|
82
|
+
},
|
|
83
|
+
},
|
|
84
|
+
};
|
|
85
|
+
return entityDef;
|
|
86
|
+
}
|
|
87
|
+
//#endregion
|
|
88
|
+
|
|
89
|
+
export { healthRestrictionFactory };
|
|
90
|
+
//# sourceMappingURL=acorex-platform-module-health-core-client-contracts-entity-catalog-health-restriction.entity-Cd-Ntuzb.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-health-core-client-contracts-entity-catalog-health-restriction.entity-Cd-Ntuzb.mjs","sources":["../../../../libs/modules/health-core/contracts/src/entities/health-restriction/health-restriction.entity.ts"],"sourcesContent":["//#region ---- Imports ----\n\nimport { AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';\n\nimport { RootConfig } from '../../root-config';\n\n//#endregion\n\n//#region ---- Entity Factory ----\n\nexport async function healthRestrictionFactory(): Promise<AXPEntity> {\n const sections = [{ id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } }];\n const propertyLayouts = [\n { name: 'title', layout: { positions: { lg: { colSpan: 12, order: 1 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },\n ];\n\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.healthRestriction.name,\n title: RootConfig.entities.healthRestriction.title,\n icon: RootConfig.entities.healthRestriction.icon,\n formats: {\n individual: RootConfig.entities.healthRestriction.title,\n plural: RootConfig.entities.healthRestriction.titlePlural,\n searchResult: { title: '{{ title }}', description: '{{ description }}' },\n },\n plugins: [\n { name: 'history' },\n { name: 'compare' },\n { name: 'clone' },\n { name: 'category', options: { appearance: { icon: true, color: true }, metaData: { enabled: true } } },\n { name: 'meta-data-form', options: { path: 'categoryIds' } },\n ],\n groups: [{ id: 'basic-info', title: '@general:terms.interface.basic-info' }],\n properties: [\n {\n name: 'id',\n title: '@general:terms.common.id',\n groupId: 'basic-info',\n schema: { dataType: 'uuid', visible: false, readonly: true, unique: { enabled: true } },\n },\n {\n name: 'title',\n title: '@general:terms.common.title',\n groupId: 'basic-info',\n options: { sort: { enabled: true }, filter: { advance: { enabled: true }, inline: { enabled: true } } },\n schema: {\n dataType: 'string',\n interface: { type: AXPWidgetsList.Editors.TextBox, options: { placeholder: '@general:terms.common.title' } },\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 interface: { type: AXPWidgetsList.Editors.LargeTextBox, options: { rows: 3 } },\n },\n },\n ],\n columns: [\n { name: 'title', options: { width: '260px', order: 1 } },\n { name: 'description', options: { width: '320px', order: 2 } },\n ],\n interfaces: {\n master: {\n create: { sections, properties: propertyLayouts },\n update: { sections, properties: propertyLayouts },\n single: {\n title: '{{ title }}',\n sections,\n properties: propertyLayouts,\n actions: [...entityMasterRecordActions()],\n },\n list: {\n actions: [...entityMasterCrudActions()],\n views: [createAllQueryView({ sorts: [{ name: 'title', dir: 'asc' }] })],\n },\n },\n },\n };\n\n return entityDef;\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;AAAA;AAOA;AAEA;AAEO,eAAe,wBAAwB,GAAA;IAC5C,MAAM,QAAQ,GAAG,CAAC,EAAE,EAAE,EAAE,YAAY,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC;AACvF,IAAA,MAAM,eAAe,GAAG;QACtB,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;QAC3E,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;KAClF;AAED,IAAA,MAAM,SAAS,GAAc;AAC3B,QAAA,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAC9B,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,iBAAiB,CAAC,IAAI;AAChD,QAAA,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC,iBAAiB,CAAC,KAAK;AAClD,QAAA,IAAI,EAAE,UAAU,CAAC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A;AACD,QAAA,UAAU,EAAE;AACV,YAAA,MAAM,EAAE;AACN,gBAAA,MAAM,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE,eAAe,EAAE;AACjD,gBAAA,MAAM,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE,eAAe,EAAE;AACjD,gBAAA,MAAM,EAAE;AACN,oBAAA,KAAK,EAAE,aAAa;oBACpB,QAAQ;AACR,oBAAA,UAAU,EAAE,eAAe;AAC3B,oBAAA,OAAO,EAAE,CAAC,GAAG,yBAAyB,EAAE,CAAC;AAC1C,iBAAA;AACD,gBAAA,IAAI,EAAE;AACJ,oBAAA,OAAO,EAAE,CAAC,GAAG,uBAAuB,EAAE,CAAC;oBACvC,KAAK,EAAE,CAAC,kBAAkB,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;AACxE,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AAED,IAAA,OAAO,SAAS;AAClB;AAEA;;;;"}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';
|
|
2
|
+
|
|
3
|
+
//#region ---- Imports ----
|
|
4
|
+
//#endregion
|
|
5
|
+
//#region ---- Subject filter helpers ----
|
|
6
|
+
/** Person subject type for health records shared between My Profile and employee detail. */
|
|
7
|
+
const HEALTH_PERSON_SUBJECT_TYPE = 'PersonCore.Person';
|
|
8
|
+
/** Filters child health records by polymorphic subject on a parent entity detail context. */
|
|
9
|
+
function healthSubjectReferenceConditions(subjectType) {
|
|
10
|
+
return [
|
|
11
|
+
{
|
|
12
|
+
name: 'subject.type',
|
|
13
|
+
operator: { type: 'equal' },
|
|
14
|
+
value: subjectType,
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
name: 'subject.id',
|
|
18
|
+
operator: { type: 'equal' },
|
|
19
|
+
value: '{{context.eval("id")}}',
|
|
20
|
+
},
|
|
21
|
+
];
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Filters health records for an employee's linked person (`personId` on employee context).
|
|
25
|
+
* Use for all person-scoped health records on employee detail so data matches My Profile.
|
|
26
|
+
*/
|
|
27
|
+
function healthPersonSubjectReferenceConditions(personIdExpression = '{{context.eval("personId")}}') {
|
|
28
|
+
return [
|
|
29
|
+
{
|
|
30
|
+
name: 'subject.type',
|
|
31
|
+
operator: { type: 'equal' },
|
|
32
|
+
value: HEALTH_PERSON_SUBJECT_TYPE,
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
name: 'subject.id',
|
|
36
|
+
operator: { type: 'equal' },
|
|
37
|
+
value: personIdExpression,
|
|
38
|
+
},
|
|
39
|
+
];
|
|
40
|
+
}
|
|
41
|
+
//#endregion
|
|
42
|
+
//#region ---- Subject lookup property ----
|
|
43
|
+
/** Single polymorphic subject lookup (assessment-case `subjectRef.id` pattern). */
|
|
44
|
+
function createHealthSubjectLookupProperty(groupId, options = {}) {
|
|
45
|
+
const readonly = options.readonly ?? false;
|
|
46
|
+
return {
|
|
47
|
+
name: 'subject.id',
|
|
48
|
+
title: '@health-core:terms.subject.title',
|
|
49
|
+
groupId,
|
|
50
|
+
options: readonly
|
|
51
|
+
? { sort: { enabled: false }, filter: { advance: { enabled: false }, inline: { enabled: false } } }
|
|
52
|
+
: undefined,
|
|
53
|
+
schema: {
|
|
54
|
+
dataType: 'string',
|
|
55
|
+
readonly,
|
|
56
|
+
interface: {
|
|
57
|
+
type: AXPWidgetsList.Editors.LookupBox,
|
|
58
|
+
options: {
|
|
59
|
+
readonly,
|
|
60
|
+
entity: "{{ context.eval('subject.type') }}",
|
|
61
|
+
valueField: 'id',
|
|
62
|
+
expose: [
|
|
63
|
+
{ source: 'id', target: 'subject.id' },
|
|
64
|
+
{ source: 'title', target: 'subject.title' },
|
|
65
|
+
],
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
validations: [{ rule: 'required' }],
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
//#endregion
|
|
73
|
+
|
|
74
|
+
//#region ---- Subject form layout helpers ----
|
|
75
|
+
/** Subject lookup field omitted from create/update when injected from parent context. */
|
|
76
|
+
const HEALTH_SUBJECT_PROPERTY_NAMES = ['subject.id'];
|
|
77
|
+
/** Omits subject lookup from master create/update layouts (subject is injected from context). */
|
|
78
|
+
function omitHealthSubjectFromEditLayouts(layouts) {
|
|
79
|
+
return layouts.filter((layout) => !HEALTH_SUBJECT_PROPERTY_NAMES.includes(layout.name));
|
|
80
|
+
}
|
|
81
|
+
//#endregion
|
|
82
|
+
|
|
83
|
+
export { createHealthSubjectLookupProperty as c, omitHealthSubjectFromEditLayouts as o };
|
|
84
|
+
//# sourceMappingURL=acorex-platform-module-health-core-client-contracts-entity-catalog-health-subject-form-layout.utils-BOm1lGPF.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-health-core-client-contracts-entity-catalog-health-subject-form-layout.utils-BOm1lGPF.mjs","sources":["../../../../libs/modules/health-core/contracts/src/health-subject.utils.ts","../../../../libs/modules/health-core/contracts/src/health-subject-form-layout.utils.ts"],"sourcesContent":["//#region ---- Imports ----\n\nimport { AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport type { AXPEntityProperty, AXPQueryFilter } from '@acorex-platform/framework-shared/entity';\n\n//#endregion\n\n//#region ---- Subject filter helpers ----\n\n/** Person subject type for health records shared between My Profile and employee detail. */\nexport const HEALTH_PERSON_SUBJECT_TYPE = 'PersonCore.Person';\n\n/** Filters child health records by polymorphic subject on a parent entity detail context. */\nexport function healthSubjectReferenceConditions(subjectType: string): AXPQueryFilter[] {\n return [\n {\n name: 'subject.type',\n operator: { type: 'equal' },\n value: subjectType,\n },\n {\n name: 'subject.id',\n operator: { type: 'equal' },\n value: '{{context.eval(\"id\")}}',\n },\n ];\n}\n\n/**\n * Filters health records for an employee's linked person (`personId` on employee context).\n * Use for all person-scoped health records on employee detail so data matches My Profile.\n */\nexport function healthPersonSubjectReferenceConditions(\n personIdExpression = '{{context.eval(\"personId\")}}',\n): AXPQueryFilter[] {\n return [\n {\n name: 'subject.type',\n operator: { type: 'equal' },\n value: HEALTH_PERSON_SUBJECT_TYPE,\n },\n {\n name: 'subject.id',\n operator: { type: 'equal' },\n value: personIdExpression,\n },\n ];\n}\n\n//#endregion\n\n//#region ---- Subject lookup property ----\n\n/** Single polymorphic subject lookup (assessment-case `subjectRef.id` pattern). */\nexport function createHealthSubjectLookupProperty(\n groupId: string,\n options: { readonly?: boolean } = {},\n): AXPEntityProperty {\n const readonly = options.readonly ?? false;\n\n return {\n name: 'subject.id',\n title: '@health-core:terms.subject.title',\n groupId,\n options: readonly\n ? { sort: { enabled: false }, filter: { advance: { enabled: false }, inline: { enabled: false } } }\n : undefined,\n schema: {\n dataType: 'string',\n readonly,\n interface: {\n type: AXPWidgetsList.Editors.LookupBox,\n options: {\n readonly,\n entity: \"{{ context.eval('subject.type') }}\",\n valueField: 'id',\n expose: [\n { source: 'id', target: 'subject.id' },\n { source: 'title', target: 'subject.title' },\n ],\n },\n },\n },\n validations: [{ rule: 'required' }],\n };\n}\n\n//#endregion\n","//#region ---- Subject form layout helpers ----\n\n/** Subject lookup field omitted from create/update when injected from parent context. */\nexport const HEALTH_SUBJECT_PROPERTY_NAMES = ['subject.id'] as const;\n\ntype PropertyLayoutRef = { name: string; layout?: Record<string, unknown> };\n\n/** Omits subject lookup from master create/update layouts (subject is injected from context). */\nexport function omitHealthSubjectFromEditLayouts<T extends PropertyLayoutRef>(layouts: T[]): T[] {\n return layouts.filter(\n (layout) => !HEALTH_SUBJECT_PROPERTY_NAMES.includes(layout.name as (typeof HEALTH_SUBJECT_PROPERTY_NAMES)[number]),\n );\n}\n\n//#endregion\n"],"names":[],"mappings":";;AAAA;AAKA;AAEA;AAEA;AACO,MAAM,0BAA0B,GAAG,mBAAmB;AAE7D;AACM,SAAU,gC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ACT,gBAAA,IAAI,EAAE,cAAc,CAAC,OAAO,CAAC,SAAS;AACtC,gBAAA,OAAO,EAAE;oBACP,QAAQ;AACR,oBAAA,MAAM,EAAE,oCAAoC;AAC5C,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,MAAM,EAAE;AACN,wBAAA,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,YAAY,EAAE;AACtC,wBAAA,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,eAAe,EAAE;AAC7C,qBAAA;AACF,iBAAA;AACF,aAAA;AACF,SAAA;AACD,QAAA,WAAW,EAAE,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC;KACpC;AACH;AAEA;;ACvFA;AAEA;AACO,MAAM,6BAA6B,GAAG,CAAC,YAAY,CAAU;AAIpE;AACM,SAAU,gCAAgC,CAA8B,OAAY,EAAA;AACxF,IAAA,OAAO,OAAO,CAAC,MAAM,CACnB,CAAC,MAAM,KAAK,CAAC,6BAA6B,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAsD,CAAC,CACnH;AACH;AAEA;;;;"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { 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-health-core-client-contracts-entity-catalog-acorex-platform-module-health-core-client-contracts-entity-catalog-DDEtVb1s.mjs';
|
|
4
|
+
|
|
5
|
+
//#endregion
|
|
6
|
+
//#region ---- Entity Factory ----
|
|
7
|
+
async function injuryTypeFactory() {
|
|
8
|
+
const sections = [{ id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } }];
|
|
9
|
+
const propertyLayouts = [
|
|
10
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 12, order: 1 } } } },
|
|
11
|
+
{ name: 'description', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },
|
|
12
|
+
];
|
|
13
|
+
const entityDef = {
|
|
14
|
+
module: RootConfig.module.name,
|
|
15
|
+
name: RootConfig.entities.injuryType.name,
|
|
16
|
+
title: RootConfig.entities.injuryType.title,
|
|
17
|
+
icon: RootConfig.entities.injuryType.icon,
|
|
18
|
+
formats: {
|
|
19
|
+
individual: RootConfig.entities.injuryType.title,
|
|
20
|
+
plural: RootConfig.entities.injuryType.titlePlural,
|
|
21
|
+
searchResult: { title: '{{ title }}', description: RootConfig.module.title },
|
|
22
|
+
},
|
|
23
|
+
plugins: [{ name: 'history' }, { name: 'compare' }, { name: 'clone' }],
|
|
24
|
+
groups: [{ id: 'basic-info', title: '@health-core:injury-types.entities.injury-type.groups.basic-info' }],
|
|
25
|
+
properties: [
|
|
26
|
+
{ name: 'id', title: '@general:terms.common.id', groupId: 'basic-info', schema: { dataType: 'uuid', visible: false, readonly: true, unique: { enabled: true } } },
|
|
27
|
+
{
|
|
28
|
+
name: 'title',
|
|
29
|
+
title: '@general:terms.common.title',
|
|
30
|
+
groupId: 'basic-info',
|
|
31
|
+
options: { sort: { enabled: true }, filter: { advance: { enabled: true }, inline: { enabled: true } } },
|
|
32
|
+
schema: {
|
|
33
|
+
dataType: 'string',
|
|
34
|
+
interface: { type: AXPWidgetsList.Editors.TextBox, options: { placeholder: '@general:terms.common.title' } },
|
|
35
|
+
},
|
|
36
|
+
validations: [{ rule: 'required' }],
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
name: 'description',
|
|
40
|
+
title: '@general:terms.common.description',
|
|
41
|
+
groupId: 'basic-info',
|
|
42
|
+
options: {
|
|
43
|
+
sort: { enabled: false },
|
|
44
|
+
filter: { advance: { enabled: true }, inline: { enabled: false } },
|
|
45
|
+
},
|
|
46
|
+
schema: {
|
|
47
|
+
dataType: 'string',
|
|
48
|
+
interface: { type: AXPWidgetsList.Editors.LargeTextBox, options: { rows: 3, placeholder: '@general:terms.common.description' } },
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
],
|
|
52
|
+
columns: [
|
|
53
|
+
{ name: 'title', options: { width: '220px', order: 1 } },
|
|
54
|
+
{ name: 'description', options: { width: '280px', order: 2 } },
|
|
55
|
+
],
|
|
56
|
+
interfaces: {
|
|
57
|
+
master: {
|
|
58
|
+
create: { sections, properties: propertyLayouts },
|
|
59
|
+
update: { sections, properties: propertyLayouts },
|
|
60
|
+
single: { title: '{{ title }}', sections, properties: propertyLayouts, actions: [...entityMasterRecordActions()] },
|
|
61
|
+
list: { actions: [...entityMasterCrudActions()], views: [createAllQueryView({ sorts: [{ name: 'title', dir: 'asc' }] })] },
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
};
|
|
65
|
+
return entityDef;
|
|
66
|
+
}
|
|
67
|
+
//#endregion
|
|
68
|
+
|
|
69
|
+
export { injuryTypeFactory };
|
|
70
|
+
//# sourceMappingURL=acorex-platform-module-health-core-client-contracts-entity-catalog-injury-type.entity-D75KtQB2.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-health-core-client-contracts-entity-catalog-injury-type.entity-D75KtQB2.mjs","sources":["../../../../libs/modules/health-core/contracts/src/entities/injury-type/injury-type.entity.ts"],"sourcesContent":["import { 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 ---- Entity Factory ----\n\nexport async function injuryTypeFactory(): Promise<AXPEntity> {\n const sections = [{ id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } }];\n const propertyLayouts = [\n { name: 'title', layout: { positions: { lg: { colSpan: 12, order: 1 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },\n ];\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.injuryType.name,\n title: RootConfig.entities.injuryType.title,\n icon: RootConfig.entities.injuryType.icon,\n formats: {\n individual: RootConfig.entities.injuryType.title,\n plural: RootConfig.entities.injuryType.titlePlural,\n searchResult: { title: '{{ title }}', description: RootConfig.module.title },\n },\n plugins: [{ name: 'history' }, { name: 'compare' }, { name: 'clone' }],\n groups: [{ id: 'basic-info', title: '@health-core:injury-types.entities.injury-type.groups.basic-info' }],\n properties: [\n { name: 'id', title: '@general:terms.common.id', groupId: 'basic-info', schema: { dataType: 'uuid', visible: false, readonly: true, unique: { enabled: true } } },\n {\n name: 'title',\n title: '@general:terms.common.title',\n groupId: 'basic-info',\n options: { sort: { enabled: true }, filter: { advance: { enabled: true }, inline: { enabled: true } } },\n schema: {\n dataType: 'string',\n interface: { type: AXPWidgetsList.Editors.TextBox, options: { placeholder: '@general:terms.common.title' } },\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 interface: { type: AXPWidgetsList.Editors.LargeTextBox, options: { rows: 3, placeholder: '@general:terms.common.description' } },\n },\n },\n ],\n columns: [\n { name: 'title', options: { width: '220px', order: 1 } },\n { name: 'description', options: { width: '280px', order: 2 } },\n ],\n interfaces: {\n master: {\n create: { sections, properties: propertyLayouts },\n update: { sections, properties: propertyLayouts },\n single: { title: '{{ title }}', sections, properties: propertyLayouts, actions: [...entityMasterRecordActions()] },\n list: { actions: [...entityMasterCrudActions()], views: [createAllQueryView({ sorts: [{ name: 'title', dir: 'asc' }] })] },\n },\n },\n };\n return entityDef;\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;AAKA;AAEA;AAEO,eAAe,iBAAiB,GAAA;IACrC,MAAM,QAAQ,GAAG,CAAC,EAAE,EAAE,EAAE,YAAY,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE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Y,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,WAAW,EAAE,mCAAmC,EAAE,EAAE;AACjI,iBAAA;AACF,aAAA;AACF,SAAA;AACD,QAAA,OAAO,EAAE;AACP,YAAA,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE;AACxD,YAAA,EAAE,IAAI,EAAE,aAAa,EAAE,OAAO,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE;AAC/D,SAAA;AACD,QAAA,UAAU,EAAE;AACV,YAAA,MAAM,EAAE;AACN,gBAAA,MAAM,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE,eAAe,EAAE;AACjD,gBAAA,MAAM,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE,eAAe,EAAE;AACjD,gBAAA,MAAM,EAAE,EAAE,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,UAAU,EAAE,eAAe,EAAE,OAAO,EAAE,CAAC,GAAG,yBAAyB,EAAE,CAAC,EAAE;AAClH,gBAAA,IAAI,EAAE,EAAE,OAAO,EAAE,CAAC,GAAG,uBAAuB,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,kBAAkB,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE;AAC3H,aAAA;AACF,SAAA;KACF;AACD,IAAA,OAAO,SAAS;AAClB;AAEA;;;;"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { 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-health-core-client-contracts-entity-catalog-acorex-platform-module-health-core-client-contracts-entity-catalog-DDEtVb1s.mjs';
|
|
4
|
+
|
|
5
|
+
//#endregion
|
|
6
|
+
//#region ---- Entity Factory ----
|
|
7
|
+
async function vaccinationTypeFactory() {
|
|
8
|
+
const sections = [{ id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } }];
|
|
9
|
+
const propertyLayouts = [
|
|
10
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 12, order: 1 } } } },
|
|
11
|
+
{ name: 'description', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },
|
|
12
|
+
];
|
|
13
|
+
const entityDef = {
|
|
14
|
+
module: RootConfig.module.name,
|
|
15
|
+
name: RootConfig.entities.vaccinationType.name,
|
|
16
|
+
title: RootConfig.entities.vaccinationType.title,
|
|
17
|
+
icon: RootConfig.entities.vaccinationType.icon,
|
|
18
|
+
formats: {
|
|
19
|
+
individual: RootConfig.entities.vaccinationType.title,
|
|
20
|
+
plural: RootConfig.entities.vaccinationType.titlePlural,
|
|
21
|
+
searchResult: { title: '{{ title }}', description: RootConfig.module.title },
|
|
22
|
+
},
|
|
23
|
+
plugins: [{ name: 'history' }, { name: 'compare' }, { name: 'clone' }],
|
|
24
|
+
groups: [{ id: 'basic-info', title: '@health-core:vaccination-types.entities.vaccination-type.groups.basic-info' }],
|
|
25
|
+
properties: [
|
|
26
|
+
{ name: 'id', title: '@general:terms.common.id', groupId: 'basic-info', schema: { dataType: 'uuid', visible: false, readonly: true, unique: { enabled: true } } },
|
|
27
|
+
{
|
|
28
|
+
name: 'title',
|
|
29
|
+
title: '@general:terms.common.title',
|
|
30
|
+
groupId: 'basic-info',
|
|
31
|
+
options: { sort: { enabled: true }, filter: { advance: { enabled: true }, inline: { enabled: true } } },
|
|
32
|
+
schema: {
|
|
33
|
+
dataType: 'string',
|
|
34
|
+
interface: { type: AXPWidgetsList.Editors.TextBox, options: { placeholder: '@general:terms.common.title' } },
|
|
35
|
+
},
|
|
36
|
+
validations: [{ rule: 'required' }],
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
name: 'description',
|
|
40
|
+
title: '@general:terms.common.description',
|
|
41
|
+
groupId: 'basic-info',
|
|
42
|
+
options: {
|
|
43
|
+
sort: { enabled: false },
|
|
44
|
+
filter: { advance: { enabled: true }, inline: { enabled: false } },
|
|
45
|
+
},
|
|
46
|
+
schema: {
|
|
47
|
+
dataType: 'string',
|
|
48
|
+
interface: { type: AXPWidgetsList.Editors.LargeTextBox, options: { rows: 3, placeholder: '@general:terms.common.description' } },
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
],
|
|
52
|
+
columns: [
|
|
53
|
+
{ name: 'title', options: { width: '220px', order: 1 } },
|
|
54
|
+
{ name: 'description', options: { width: '280px', order: 2 } },
|
|
55
|
+
],
|
|
56
|
+
interfaces: {
|
|
57
|
+
master: {
|
|
58
|
+
create: { sections, properties: propertyLayouts },
|
|
59
|
+
update: { sections, properties: propertyLayouts },
|
|
60
|
+
single: { title: '{{ title }}', sections, properties: propertyLayouts, actions: [...entityMasterRecordActions()] },
|
|
61
|
+
list: { actions: [...entityMasterCrudActions()], views: [createAllQueryView({ sorts: [{ name: 'title', dir: 'asc' }] })] },
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
};
|
|
65
|
+
return entityDef;
|
|
66
|
+
}
|
|
67
|
+
//#endregion
|
|
68
|
+
|
|
69
|
+
export { vaccinationTypeFactory };
|
|
70
|
+
//# sourceMappingURL=acorex-platform-module-health-core-client-contracts-entity-catalog-vaccination-type.entity-BetHc463.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-health-core-client-contracts-entity-catalog-vaccination-type.entity-BetHc463.mjs","sources":["../../../../libs/modules/health-core/contracts/src/entities/vaccination-type/vaccination-type.entity.ts"],"sourcesContent":["import { 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 ---- Entity Factory ----\n\nexport async function vaccinationTypeFactory(): Promise<AXPEntity> {\n const sections = [{ id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } }];\n const propertyLayouts = [\n { name: 'title', layout: { positions: { lg: { colSpan: 12, order: 1 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },\n ];\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.vaccinationType.name,\n title: RootConfig.entities.vaccinationType.title,\n icon: RootConfig.entities.vaccinationType.icon,\n formats: {\n individual: RootConfig.entities.vaccinationType.title,\n plural: RootConfig.entities.vaccinationType.titlePlural,\n searchResult: { title: '{{ title }}', description: RootConfig.module.title },\n },\n plugins: [{ name: 'history' }, { name: 'compare' }, { name: 'clone' }],\n groups: [{ id: 'basic-info', title: '@health-core:vaccination-types.entities.vaccination-type.groups.basic-info' }],\n properties: [\n { name: 'id', title: '@general:terms.common.id', groupId: 'basic-info', schema: { dataType: 'uuid', visible: false, readonly: true, unique: { enabled: true } } },\n {\n name: 'title',\n title: '@general:terms.common.title',\n groupId: 'basic-info',\n options: { sort: { enabled: true }, filter: { advance: { enabled: true }, inline: { enabled: true } } },\n schema: {\n dataType: 'string',\n interface: { type: AXPWidgetsList.Editors.TextBox, options: { placeholder: '@general:terms.common.title' } },\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 interface: { type: AXPWidgetsList.Editors.LargeTextBox, options: { rows: 3, placeholder: '@general:terms.common.description' } },\n },\n },\n ],\n columns: [\n { name: 'title', options: { width: '220px', order: 1 } },\n { name: 'description', options: { width: '280px', order: 2 } },\n ],\n interfaces: {\n master: {\n create: { sections, properties: propertyLayouts },\n update: { sections, properties: propertyLayouts },\n single: { title: '{{ title }}', sections, properties: propertyLayouts, actions: [...entityMasterRecordActions()] },\n list: { actions: [...entityMasterCrudActions()], views: [createAllQueryView({ sorts: [{ name: 'title', dir: 'asc' }] })] },\n },\n },\n };\n return entityDef;\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;AAKA;AAEA;AAEO,eAAe,sBAAsB,GAAA;IAC1C,MAAM,QAAQ,GAAG,CAAC,EAAE,EAAE,EAAE,YAAY,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC;AACvF,IAAA,MAAM,eAAe,GAAG;QACtB,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;QAC3E,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;KAClF;AACD,IAAA,MAAM,SAAS,GAAc;AAC3B,QAAA,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAC9B,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,eAAe,CAAC,IAAI;AAC9C,QAAA,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC,eAAe,CAAC,KAAK;AAChD,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,eAAe,CAAC,IAAI;AAC9C,QAAA,OAAO,EAAE;AACP,YAAA,UAAU,EAAE,UAAU,CAAC,QAAQ,CAAC,eAAe,CAAC,KAAK;AACrD,YAAA,MAAM,EAAE,UAAU,CAAC,QAAQ,CAAC,eAAe,CAAC,WAAW;AACvD,YAAA,YAAY,EAAE,EAAE,KAAK,EAAE,aAAa,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AAG,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE;AAC3H,aAAA;AACF,SAAA;KACF;AACD,IAAA,OAAO,SAAS;AAClB;AAEA;;;;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { h as healthCoreLocalEntityCatalog } from './acorex-platform-module-health-core-client-contracts-entity-catalog-acorex-platform-module-health-core-client-contracts-entity-catalog-DDEtVb1s.mjs';
|
|
2
|
+
//# sourceMappingURL=acorex-platform-module-health-core-client-contracts-entity-catalog.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-health-core-client-contracts-entity-catalog.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { provideLocalEntityCatalog } from '@acorex-platform/framework-client/layout/entity';
|
|
2
|
+
import { RootConfig } from '@acorex-platform/module-health-core-client/contracts';
|
|
3
|
+
export { healthCoreLocalEntityCatalog } from '@acorex-platform/module-health-core-client/contracts/entity-catalog';
|
|
4
|
+
|
|
5
|
+
//#region ----- Imports -----
|
|
6
|
+
//#endregion
|
|
7
|
+
//#region ----- Provide local entities -----
|
|
8
|
+
/**
|
|
9
|
+
* Registers health-core 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 provideHealthCoreLocalEntities() {
|
|
15
|
+
return provideLocalEntityCatalog({
|
|
16
|
+
moduleName: RootConfig.module.name,
|
|
17
|
+
loaders: {
|
|
18
|
+
[RootConfig.entities.bloodType.name]: () => import('@acorex-platform/module-health-core-client/contracts/entities/blood-type').then((m) => m.bloodTypeFactory()),
|
|
19
|
+
[RootConfig.entities.bodyPart.name]: () => import('@acorex-platform/module-health-core-client/contracts/entities/body-part').then((m) => m.bodyPartFactory()),
|
|
20
|
+
[RootConfig.entities.disabilityStatus.name]: () => import('@acorex-platform/module-health-core-client/contracts/entities/disability-status').then((m) => m.disabilityStatusFactory()),
|
|
21
|
+
[RootConfig.entities.healthCondition.name]: () => import('@acorex-platform/module-health-core-client/contracts/entities/health-condition').then((m) => m.healthConditionFactory()),
|
|
22
|
+
[RootConfig.entities.healthConditionType.name]: () => import('@acorex-platform/module-health-core-client/contracts/entities/health-condition-type').then((m) => m.healthConditionTypeFactory()),
|
|
23
|
+
[RootConfig.entities.healthEvent.name]: () => import('@acorex-platform/module-health-core-client/contracts/entities/health-event').then((m) => m.healthEventFactory()),
|
|
24
|
+
[RootConfig.entities.healthProfile.name]: () => import('@acorex-platform/module-health-core-client/contracts/entities/health-profile').then((m) => m.healthProfileFactory()),
|
|
25
|
+
[RootConfig.entities.healthRecordType.name]: () => import('@acorex-platform/module-health-core-client/contracts/entities/health-record-type').then((m) => m.healthRecordTypeFactory()),
|
|
26
|
+
[RootConfig.entities.healthRestriction.name]: () => import('@acorex-platform/module-health-core-client/contracts/entities/health-restriction').then((m) => m.healthRestrictionFactory()),
|
|
27
|
+
[RootConfig.entities.injuryType.name]: () => import('@acorex-platform/module-health-core-client/contracts/entities/injury-type').then((m) => m.injuryTypeFactory()),
|
|
28
|
+
[RootConfig.entities.vaccinationType.name]: () => import('@acorex-platform/module-health-core-client/contracts/entities/vaccination-type').then((m) => m.vaccinationTypeFactory()),
|
|
29
|
+
},
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
//#endregion
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Generated bundle index. Do not edit.
|
|
36
|
+
*/
|
|
37
|
+
|
|
38
|
+
export { provideHealthCoreLocalEntities };
|
|
39
|
+
//# sourceMappingURL=acorex-platform-module-health-core-client-local-entities.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-health-core-client-local-entities.mjs","sources":["../../../../libs/modules/health-core/client/src/lib/provide-local-entities.ts","../../../../libs/modules/health-core/client/src/lib/acorex-platform-module-health-core-client-local-entities.ts"],"sourcesContent":["//#region ----- Imports -----\n\nimport { provideLocalEntityCatalog } from '@acorex-platform/framework-client/layout/entity';\nimport { RootConfig } from '@acorex-platform/module-health-core-client/contracts';\n\n//#endregion\n\n//#region ----- Provide local entities -----\n\n/**\n * Registers health-core 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 provideHealthCoreLocalEntities() {\n return provideLocalEntityCatalog({\n moduleName: RootConfig.module.name,\n loaders: {\n [RootConfig.entities.bloodType.name]: () =>\n import('@acorex-platform/module-health-core-client/contracts/entities/blood-type').then((m) => m.bloodTypeFactory()),\n [RootConfig.entities.bodyPart.name]: () =>\n import('@acorex-platform/module-health-core-client/contracts/entities/body-part').then((m) => m.bodyPartFactory()),\n [RootConfig.entities.disabilityStatus.name]: () =>\n import('@acorex-platform/module-health-core-client/contracts/entities/disability-status').then((m) => m.disabilityStatusFactory()),\n [RootConfig.entities.healthCondition.name]: () =>\n import('@acorex-platform/module-health-core-client/contracts/entities/health-condition').then((m) => m.healthConditionFactory()),\n [RootConfig.entities.healthConditionType.name]: () =>\n import('@acorex-platform/module-health-core-client/contracts/entities/health-condition-type').then((m) => m.healthConditionTypeFactory()),\n [RootConfig.entities.healthEvent.name]: () =>\n import('@acorex-platform/module-health-core-client/contracts/entities/health-event').then((m) => m.healthEventFactory()),\n [RootConfig.entities.healthProfile.name]: () =>\n import('@acorex-platform/module-health-core-client/contracts/entities/health-profile').then((m) => m.healthProfileFactory()),\n [RootConfig.entities.healthRecordType.name]: () =>\n import('@acorex-platform/module-health-core-client/contracts/entities/health-record-type').then((m) => m.healthRecordTypeFactory()),\n [RootConfig.entities.healthRestriction.name]: () =>\n import('@acorex-platform/module-health-core-client/contracts/entities/health-restriction').then((m) => m.healthRestrictionFactory()),\n [RootConfig.entities.injuryType.name]: () =>\n import('@acorex-platform/module-health-core-client/contracts/entities/injury-type').then((m) => m.injuryTypeFactory()),\n [RootConfig.entities.vaccinationType.name]: () =>\n import('@acorex-platform/module-health-core-client/contracts/entities/vaccination-type').then((m) => m.vaccinationTypeFactory()),\n },\n });\n}\n\nexport { healthCoreLocalEntityCatalog } from '@acorex-platform/module-health-core-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,8BAA8B,GAAA;AAC5C,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,SAAS,CAAC,IAAI,GAAG,MACpC,OAAO,0EAA0E,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,gBAAgB,EAAE,CAAC;AACtH,YAAA,CAAC,UAAU,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,GAAG,MACnC,OAAO,yEAAyE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,eAAe,EAAE,CAAC;AACpH,YAAA,CAAC,UAAU,CAAC,QAAQ,CAAC,gBAAgB,CAAC,IAAI,GAAG,MAC3C,OAAO,iFAAiF,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,uBAAuB,EAAE,CAAC;AACpI,YAAA,CAAC,UAAU,CAAC,QAAQ,CAAC,eAAe,CAAC,IAAI,GAAG,MAC1C,OAAO,gFAAgF,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,sBAAsB,EAAE,CAAC;AAClI,YAAA,CAAC,UAAU,CAAC,QAAQ,CAAC,mBAAmB,CAAC,IAAI,GAAG,MAC9C,OAAO,qFA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