@acorex-platform/module-asset-management-client 0.0.32 → 0.0.37

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 (57) hide show
  1. package/fesm2022/acorex-platform-module-asset-management-client-asset-lifecycle.provider-BDaCpGsv.mjs.map +1 -1
  2. package/fesm2022/acorex-platform-module-asset-management-client-asset-rental-history-status.provider-DwhQPb0-.mjs.map +1 -1
  3. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entities-asset-rental-history.mjs +536 -0
  4. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entities-asset-rental-history.mjs.map +1 -0
  5. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entities-asset-system-assignment.mjs +294 -0
  6. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entities-asset-system-assignment.mjs.map +1 -0
  7. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entities-asset-system-type.mjs +328 -0
  8. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entities-asset-system-type.mjs.map +1 -0
  9. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entities-asset-system.mjs +316 -0
  10. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entities-asset-system.mjs.map +1 -0
  11. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entities-asset-type-section-component.mjs +348 -0
  12. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entities-asset-type-section-component.mjs.map +1 -0
  13. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entities-asset-type-section.mjs +252 -0
  14. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entities-asset-type-section.mjs.map +1 -0
  15. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entities-asset-type.mjs +476 -0
  16. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entities-asset-type.mjs.map +1 -0
  17. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entities-asset.mjs +1123 -0
  18. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entities-asset.mjs.map +1 -0
  19. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entity-catalog-ASSET_TYPE_COMPONENTS_PAGE_COMPONENT_KEY-Jlv8czA2.mjs +5 -0
  20. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entity-catalog-ASSET_TYPE_COMPONENTS_PAGE_COMPONENT_KEY-Jlv8czA2.mjs.map +1 -0
  21. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entity-catalog-acorex-platform-module-asset-management-client-contracts-entity-catalog-zq5ishZC.mjs +131 -0
  22. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entity-catalog-acorex-platform-module-asset-management-client-contracts-entity-catalog-zq5ishZC.mjs.map +1 -0
  23. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entity-catalog-asset-rental-history.entity-CldKruJ6.mjs +431 -0
  24. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entity-catalog-asset-rental-history.entity-CldKruJ6.mjs.map +1 -0
  25. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entity-catalog-asset-system-assignment.entity-BVmBaNdk.mjs +189 -0
  26. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entity-catalog-asset-system-assignment.entity-BVmBaNdk.mjs.map +1 -0
  27. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entity-catalog-asset-system-type.entity-CXBtrDgS.mjs +223 -0
  28. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entity-catalog-asset-system-type.entity-CXBtrDgS.mjs.map +1 -0
  29. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entity-catalog-asset-system.entity-Bc8WJQff.mjs +211 -0
  30. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entity-catalog-asset-system.entity-Bc8WJQff.mjs.map +1 -0
  31. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entity-catalog-asset-type-section-component.entity-BJ-kv3eg.mjs +243 -0
  32. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entity-catalog-asset-type-section-component.entity-BJ-kv3eg.mjs.map +1 -0
  33. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entity-catalog-asset-type-section.entity-Bkgb9pRD.mjs +145 -0
  34. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entity-catalog-asset-type-section.entity-Bkgb9pRD.mjs.map +1 -0
  35. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entity-catalog-asset-type.entity-9gozE1Z0.mjs +369 -0
  36. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entity-catalog-asset-type.entity-9gozE1Z0.mjs.map +1 -0
  37. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entity-catalog-asset.entity-JDs4GpIw.mjs +1016 -0
  38. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entity-catalog-asset.entity-JDs4GpIw.mjs.map +1 -0
  39. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entity-catalog.mjs +2 -0
  40. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entity-catalog.mjs.map +1 -0
  41. package/fesm2022/acorex-platform-module-asset-management-client-contracts.mjs.map +1 -1
  42. package/fesm2022/acorex-platform-module-asset-management-client-local-entities.mjs +36 -0
  43. package/fesm2022/acorex-platform-module-asset-management-client-local-entities.mjs.map +1 -0
  44. package/fesm2022/acorex-platform-module-asset-management-client-recalculate-asset-operational-status.activity-ueTauO_k.mjs.map +1 -1
  45. package/fesm2022/acorex-platform-module-asset-management-client.mjs +1 -1
  46. package/fesm2022/acorex-platform-module-asset-management-client.mjs.map +1 -1
  47. package/package.json +42 -2
  48. package/types/acorex-platform-module-asset-management-client-contracts-entities-asset-rental-history.d.ts +5 -0
  49. package/types/acorex-platform-module-asset-management-client-contracts-entities-asset-system-assignment.d.ts +5 -0
  50. package/types/acorex-platform-module-asset-management-client-contracts-entities-asset-system-type.d.ts +5 -0
  51. package/types/acorex-platform-module-asset-management-client-contracts-entities-asset-system.d.ts +5 -0
  52. package/types/acorex-platform-module-asset-management-client-contracts-entities-asset-type-section-component.d.ts +10 -0
  53. package/types/acorex-platform-module-asset-management-client-contracts-entities-asset-type-section.d.ts +10 -0
  54. package/types/acorex-platform-module-asset-management-client-contracts-entities-asset-type.d.ts +9 -0
  55. package/types/acorex-platform-module-asset-management-client-contracts-entities-asset.d.ts +5 -0
  56. package/types/acorex-platform-module-asset-management-client-contracts-entity-catalog.d.ts +10 -0
  57. package/types/acorex-platform-module-asset-management-client-local-entities.d.ts +12 -0
@@ -0,0 +1,145 @@
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-asset-management-client-contracts-entity-catalog-acorex-platform-module-asset-management-client-contracts-entity-catalog-zq5ishZC.mjs';
4
+ import { A as ASSET_TYPE_COMPONENTS_PAGE_COMPONENT_KEY } from './acorex-platform-module-asset-management-client-contracts-entity-catalog-ASSET_TYPE_COMPONENTS_PAGE_COMPONENT_KEY-Jlv8czA2.mjs';
5
+
6
+ //#endregion
7
+ //#region ---- Entity Factory ----
8
+ /**
9
+ * Section header/metadata ({@link AXMAssetManagementAssetTypeSectionEntityModel}) with related
10
+ * component rows ({@link AXMAssetManagementAssetTypeSectionComponentEntityModel}), similar in spirit
11
+ * to report parameter groups (title + nested items) in report-management report definitions.
12
+ */
13
+ async function factoryAssetTypeSection() {
14
+ const entityDef = {
15
+ module: RootConfig.module.name,
16
+ name: RootConfig.entities.assetTypeSection.name,
17
+ title: RootConfig.entities.assetTypeSection.title,
18
+ icon: RootConfig.entities.assetTypeSection.icon,
19
+ plugins: [{ name: 'unique-fields', options: { fields: 'code', scope: 'global' } },
20
+ { name: 'notes' }
21
+ ],
22
+ pages: [
23
+ {
24
+ componentKey: ASSET_TYPE_COMPONENTS_PAGE_COMPONENT_KEY,
25
+ field: 'questions',
26
+ title: '@assessment-management:questionnaires.entities.questionnaire.fields.questions.title',
27
+ icon: 'fa-light fa-list-check',
28
+ layout: { order: 1, position: 'after' },
29
+ },
30
+ ],
31
+ relatedEntities: [
32
+ // {
33
+ // entity: `${RootConfig.module.name}.${RootConfig.entities.assetTypeSectionComponent.name}`,
34
+ // title:
35
+ // '@asset-management:assetTypeSections.entities.assetTypeSection.related-entities.assetTypeSectionComponents.title',
36
+ // //icon: RootConfig.entities.assetTypeSectionComponent.icon,
37
+ // //columns: ['roleName', 'count', 'hasMaintenance'],
38
+ // conditions: [entityDetailsSimpleCondition('assetTypeSectionId')],
39
+ // actions: [...entityDetailsCrudActions('assetTypeSectionId')],
40
+ // layout: { type: 'tab-list' },
41
+ // },
42
+ ],
43
+ formats: {
44
+ individual: RootConfig.entities.assetTypeSection.title,
45
+ plural: RootConfig.entities.assetTypeSection.titlePlural,
46
+ searchResult: { title: '{{ title }}' },
47
+ },
48
+ groups: [
49
+ {
50
+ id: 'basic-info',
51
+ title: '@asset-management:assetTypeSections.entities.assetTypeSection.groups.basic-info',
52
+ },
53
+ ],
54
+ properties: [
55
+ {
56
+ name: 'id',
57
+ title: 'ID',
58
+ schema: { dataType: 'uuid', visible: false, nullable: false, readonly: true, unique: { enabled: true } },
59
+ },
60
+ {
61
+ name: 'assetTypeId',
62
+ title: 'Asset Type ID',
63
+ schema: { dataType: 'uuid', visible: false, nullable: false, readonly: true },
64
+ options: { sort: { enabled: false }, filter: { advance: { enabled: false }, inline: { enabled: false } } },
65
+ },
66
+ {
67
+ name: 'code',
68
+ title: '@asset-management:assetTypeSections.entities.assetTypeSection.fields.code.title',
69
+ groupId: 'basic-info',
70
+ schema: {
71
+ dataType: 'number',
72
+ unique: { enabled: true },
73
+ interface: {
74
+ type: AXPWidgetsList.Editors.NumberBox,
75
+ options: {
76
+ placeholder: '@asset-management:assetTypeSections.entities.assetTypeSection.fields.code.placeholder',
77
+ },
78
+ },
79
+ },
80
+ options: {
81
+ sort: { enabled: true },
82
+ filter: { advance: { enabled: true }, inline: { enabled: true } },
83
+ },
84
+ validations: [{ rule: 'required' }],
85
+ },
86
+ {
87
+ name: 'title',
88
+ title: '@asset-management:assetTypeSections.entities.assetTypeSection.fields.title.title',
89
+ groupId: 'basic-info',
90
+ schema: {
91
+ dataType: 'string',
92
+ interface: {
93
+ type: AXPWidgetsList.Editors.TextBox,
94
+ options: {
95
+ placeholder: '@asset-management:assetTypeSections.entities.assetTypeSection.fields.title.placeholder',
96
+ },
97
+ },
98
+ },
99
+ options: {
100
+ sort: { enabled: true },
101
+ filter: { advance: { enabled: true }, inline: { enabled: true } },
102
+ },
103
+ validations: [{ rule: 'required' }],
104
+ },
105
+ ],
106
+ columns: [{ name: 'code' }, { name: 'title' }],
107
+ queries: {},
108
+ interfaces: {
109
+ master: {
110
+ create: {
111
+ sections: [{ id: 'basic-info', order: 1, layout: { positions: { lg: { colSpan: 12 } } } }],
112
+ properties: [
113
+ { name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
114
+ { name: 'title', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
115
+ ],
116
+ },
117
+ update: {
118
+ sections: [{ id: 'basic-info', order: 1, layout: { positions: { lg: { colSpan: 12 } } } }],
119
+ properties: [
120
+ { name: 'code', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
121
+ { name: 'title', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
122
+ ],
123
+ },
124
+ single: {
125
+ title: '{{ title }}',
126
+ sections: [{ id: 'basic-info', order: 1, layout: { positions: { lg: { colSpan: 12 } } } }],
127
+ properties: [
128
+ { name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
129
+ { name: 'title', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
130
+ ],
131
+ actions: [...entityMasterRecordActions()],
132
+ },
133
+ list: {
134
+ actions: [...entityMasterCrudActions()],
135
+ views: [createAllQueryView({ sorts: [{ name: 'title', dir: 'asc' }] })],
136
+ },
137
+ },
138
+ },
139
+ };
140
+ return entityDef;
141
+ }
142
+ //#endregion
143
+
144
+ export { factoryAssetTypeSection };
145
+ //# sourceMappingURL=acorex-platform-module-asset-management-client-contracts-entity-catalog-asset-type-section.entity-Bkgb9pRD.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-asset-management-client-contracts-entity-catalog-asset-type-section.entity-Bkgb9pRD.mjs","sources":["../../../../libs/modules/asset-management/contracts/src/entities/asset-type-section/asset-type-section.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';\nimport { ASSET_TYPE_COMPONENTS_PAGE_COMPONENT_KEY } from '../../ASSET_TYPE_COMPONENTS_PAGE_COMPONENT_KEY';\n\n//#endregion\n\n//#region ---- Entity Factory ----\n\n/**\n * Section header/metadata ({@link AXMAssetManagementAssetTypeSectionEntityModel}) with related\n * component rows ({@link AXMAssetManagementAssetTypeSectionComponentEntityModel}), similar in spirit\n * to report parameter groups (title + nested items) in report-management report definitions.\n */\nexport async function factoryAssetTypeSection(): Promise<AXPEntity | null> {\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.assetTypeSection.name,\n title: RootConfig.entities.assetTypeSection.title,\n icon: RootConfig.entities.assetTypeSection.icon,\n plugins: [{ name: 'unique-fields', options: { fields: 'code', scope: 'global' } } ,\n {name : 'notes'}\n ],\n pages: [\n {\n componentKey: ASSET_TYPE_COMPONENTS_PAGE_COMPONENT_KEY,\n field: 'questions',\n title: '@assessment-management:questionnaires.entities.questionnaire.fields.questions.title',\n icon: 'fa-light fa-list-check',\n layout: { order: 1, position: 'after' },\n },\n ],\n relatedEntities: [\n // {\n // entity: `${RootConfig.module.name}.${RootConfig.entities.assetTypeSectionComponent.name}`,\n // title:\n // '@asset-management:assetTypeSections.entities.assetTypeSection.related-entities.assetTypeSectionComponents.title',\n // //icon: RootConfig.entities.assetTypeSectionComponent.icon,\n // //columns: ['roleName', 'count', 'hasMaintenance'],\n // conditions: [entityDetailsSimpleCondition('assetTypeSectionId')],\n // actions: [...entityDetailsCrudActions('assetTypeSectionId')],\n // layout: { type: 'tab-list' },\n // },\n ],\n formats: {\n individual: RootConfig.entities.assetTypeSection.title,\n plural: RootConfig.entities.assetTypeSection.titlePlural,\n searchResult: { title: '{{ title }}' },\n },\n groups: [\n {\n id: 'basic-info',\n title: '@asset-management:assetTypeSections.entities.assetTypeSection.groups.basic-info',\n },\n ],\n properties: [\n {\n name: 'id',\n title: 'ID',\n schema: { dataType: 'uuid', visible: false, nullable: false, readonly: true, unique: { enabled: true } },\n },\n {\n name: 'assetTypeId',\n title: 'Asset Type ID',\n schema: { dataType: 'uuid', visible: false, nullable: false, readonly: true },\n options: { sort: { enabled: false }, filter: { advance: { enabled: false }, inline: { enabled: false } } },\n },\n {\n name: 'code',\n title: '@asset-management:assetTypeSections.entities.assetTypeSection.fields.code.title',\n groupId: 'basic-info',\n schema: {\n dataType: 'number',\n unique: { enabled: true },\n interface: {\n type: AXPWidgetsList.Editors.NumberBox,\n options: {\n placeholder: '@asset-management:assetTypeSections.entities.assetTypeSection.fields.code.placeholder',\n },\n },\n },\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'title',\n title: '@asset-management:assetTypeSections.entities.assetTypeSection.fields.title.title',\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.TextBox,\n options: {\n placeholder: '@asset-management:assetTypeSections.entities.assetTypeSection.fields.title.placeholder',\n },\n },\n },\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n validations: [{ rule: 'required' }],\n },\n ],\n columns: [{ name: 'code' }, { name: 'title' } ],\n queries: {},\n interfaces: {\n master: {\n create: {\n sections: [{ id: 'basic-info', order: 1, layout: { positions: { lg: { colSpan: 12 } } } }],\n properties: [\n { name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },\n ],\n },\n update: {\n sections: [{ id: 'basic-info', order: 1, layout: { positions: { lg: { colSpan: 12 } } } }],\n properties: [\n { name: 'code', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },\n ],\n },\n single: {\n title: '{{ title }}',\n sections: [{ id: 'basic-info', order: 1, layout: { positions: { lg: { colSpan: 12 } } } }],\n properties: [\n { name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },\n ],\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":";;;;;AAMA;AAEA;AAEA;;;;AAIG;AACI,eAAe,uBAAuB,GAAA;AAC3C,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,EAAE,UAAU,CAAC,QAAQ,CAAC,gBAAgB,CAAC,KAAK;AACjD,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,gBAAgB,CAAC,IAAI;AAC/C,QAAA,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,eAAe,EAAE,OAAO,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE;YACvE,EAAC,IAAI,EAAG,OAAO;AACxB,SAAA;AACD,QAAA,KAAK,EAAE;AACL,YAAA;AACE,gBAAA,YAAY,EAAE,wCAAwC;AACtD,gBAAA,KAAK,EAAE,WAAW;AAClB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ActionType } from '@acorex-platform/framework-shared/core';
2
+ import { createAllQueryView, entityMasterCrudActions, entityMasterRecordActions, AXPEntityCommandScope, entityDetailsCrudActions, entityDetailsSimpleCondition } from '@acorex-platform/framework-shared/entity';
3
+ import { R as RootConfig } from './acorex-platform-module-asset-management-client-contracts-entity-catalog-acorex-platform-module-asset-management-client-contracts-entity-catalog-zq5ishZC.mjs';
4
+ import { A as ASSET_TYPE_COMPONENTS_PAGE_COMPONENT_KEY } from './acorex-platform-module-asset-management-client-contracts-entity-catalog-ASSET_TYPE_COMPONENTS_PAGE_COMPONENT_KEY-Jlv8czA2.mjs';
5
+
6
+ //#endregion
7
+ //#region ---- Entity Factory ----
8
+ /**
9
+ * Entity definition aligned with {@link AXMAssetManagementAssetTypeEntityModel}.
10
+ * Categories use `categoryIds` (see category plugin `propertyName`). `maintenanceTypeIds` is shown when `hasMaintenance` is enabled.
11
+ */
12
+ async function factoryAssetType() {
13
+ const entityDef = {
14
+ module: RootConfig.module.name,
15
+ name: RootConfig.entities.assetType.name,
16
+ title: RootConfig.entities.assetType.title,
17
+ icon: RootConfig.entities.assetType.icon,
18
+ plugins: [
19
+ // { name: 'unique-fields', options: { fields: 'code', scope: 'global' } },
20
+ { name: 'history' },
21
+ {
22
+ name: 'category',
23
+ options: { appearance: { icon: true, color: true } },
24
+ },
25
+ {
26
+ name: 'meta-data-builder',
27
+ options: {
28
+ display: 'page',
29
+ order: 3,
30
+ },
31
+ },
32
+ // { name: 'identifier', options: { field: 'code', rule: 'asset-type-code' } },
33
+ { name: 'reports' },
34
+ ],
35
+ pages: [
36
+ {
37
+ componentKey: ASSET_TYPE_COMPONENTS_PAGE_COMPONENT_KEY,
38
+ field: 'components',
39
+ title: '@asset-management:assetTypes.entities.assetType.components.components.title',
40
+ icon: 'fa-light fa-sitemap',
41
+ layout: { order: 2, position: 'after' },
42
+ options: { order: 2, allowEditSection: false },
43
+ },
44
+ ],
45
+ relatedEntities: [
46
+ {
47
+ entity: 'MaintenanceManagement.ActivityTypeAssetType',
48
+ title: '@asset-management:assetTypes.entities.assetType.related-entities.activity-type-asset-types.title',
49
+ icon: 'fa-light fa-link',
50
+ hidden: `{{ ![true, "true", 1, "1"].includes(context.eval("hasMaintenance")) }}`,
51
+ conditions: [entityDetailsSimpleCondition('assetTypeId')],
52
+ actions: [...entityDetailsCrudActions('assetTypeId')],
53
+ layout: { type: 'page-list', position: 'after', order: 4 },
54
+ },
55
+ {
56
+ entity: 'MaintenanceManagement.MaintenanceTemplate',
57
+ title: '@asset-management:assetTypes.entities.assetType.related-entities.maintenance-templates.title',
58
+ icon: 'fa-light fa-clipboard-list',
59
+ hidden: `{{ ![true, "true", 1, "1"].includes(context.eval("hasMaintenance")) }}`,
60
+ conditions: [entityDetailsSimpleCondition('assetTypeId')],
61
+ actions: [
62
+ {
63
+ title: '@general:actions.create.title',
64
+ command: {
65
+ name: 'Entity:Create',
66
+ options: {
67
+ process: {
68
+ redirect: false,
69
+ canCreateNewOne: true,
70
+ data: {
71
+ assetTypeId: '{{ context.eval("id") }}',
72
+ assetType: {
73
+ id: '{{ context.eval("id") }}',
74
+ title: '{{ context.eval("title", { pipes: ["translate"] }) }}',
75
+ maintenanceTypeIds: '{{ context.eval("maintenanceTypeIds") }}',
76
+ },
77
+ },
78
+ },
79
+ },
80
+ },
81
+ priority: 'primary',
82
+ type: AXPSystemActionType.Create,
83
+ scope: AXPEntityCommandScope.TypeLevel,
84
+ },
85
+ ...entityDetailsCrudActions('assetTypeId', { create: false }),
86
+ ],
87
+ layout: { type: 'page-list', position: 'after', order: 6 },
88
+ },
89
+ ],
90
+ formats: {
91
+ individual: RootConfig.entities.assetType.title,
92
+ plural: RootConfig.entities.assetType.titlePlural,
93
+ searchResult: { title: '{{ title }}' },
94
+ displayName: '@general:terms.common.overview',
95
+ },
96
+ groups: [
97
+ {
98
+ id: 'basic-info',
99
+ title: '@asset-management:assetTypes.entities.assetType.groups.basic-info',
100
+ },
101
+ {
102
+ id: 'maintenance-info',
103
+ title: '@asset-management:assetTypes.entities.assetType.groups.maintenance-info',
104
+ },
105
+ {
106
+ id: 'components',
107
+ title: '@asset-management:assetTypes.entities.assetType.groups.components',
108
+ },
109
+ ],
110
+ properties: [
111
+ {
112
+ name: 'id',
113
+ title: 'ID',
114
+ schema: {
115
+ dataType: 'uuid',
116
+ visible: false,
117
+ nullable: false,
118
+ readonly: true,
119
+ unique: { enabled: true },
120
+ },
121
+ },
122
+ // {
123
+ // name: 'code',
124
+ // title: '@asset-management:assetTypes.entities.assetType.fields.code.title',
125
+ // groupId: 'basic-info',
126
+ // schema: {
127
+ // dataType: 'string',
128
+ // unique: { enabled: true },
129
+ // interface: {
130
+ // type: AXPWidgetsCatalog.text,
131
+ // options: {
132
+ // disabled: true,
133
+ // },
134
+ // },
135
+ // },
136
+ // options: {
137
+ // sort: { enabled: true },
138
+ // filter: { advance: { enabled: true }, inline: { enabled: true } },
139
+ // },
140
+ // validations: [{ rule: 'required' }],
141
+ // },
142
+ {
143
+ name: 'name',
144
+ title: '@asset-management:assetTypes.entities.assetType.fields.name.title',
145
+ groupId: 'basic-info',
146
+ schema: {
147
+ dataType: 'string',
148
+ interface: {
149
+ type: AXPWidgetsCatalog.text,
150
+ },
151
+ },
152
+ options: {
153
+ sort: { enabled: true },
154
+ filter: { advance: { enabled: true }, inline: { enabled: true } },
155
+ },
156
+ validations: [{ rule: 'required' }],
157
+ },
158
+ {
159
+ name: 'title',
160
+ title: '@asset-management:assetTypes.entities.assetType.fields.title.title',
161
+ groupId: 'basic-info',
162
+ schema: {
163
+ dataType: 'string',
164
+ interface: {
165
+ type: AXPWidgetsCatalog.text,
166
+ },
167
+ },
168
+ options: {
169
+ sort: { enabled: true },
170
+ filter: { advance: { enabled: true }, inline: { enabled: true } },
171
+ },
172
+ validations: [{ rule: 'required' }],
173
+ },
174
+ {
175
+ name: 'hasMaintenance',
176
+ title: '@asset-management:assetTypes.entities.assetType.fields.hasMaintenance.title',
177
+ groupId: 'maintenance-info',
178
+ schema: {
179
+ dataType: 'boolean',
180
+ defaultValue: false,
181
+ interface: {
182
+ type: AXPWidgetsCatalog.toggle,
183
+ },
184
+ },
185
+ options: {
186
+ sort: { enabled: true },
187
+ filter: { advance: { enabled: true }, inline: { enabled: true } },
188
+ },
189
+ validations: [{ rule: 'required' }],
190
+ },
191
+ {
192
+ name: 'maintenanceTypeIds',
193
+ title: '@asset-management:assetTypes.entities.assetType.fields.maintenanceTypeIds.title',
194
+ groupId: 'maintenance-info',
195
+ schema: {
196
+ dataType: 'array',
197
+ nullable: true,
198
+ defaultValue: [],
199
+ visible: `{{ [true, "true"].includes(context.eval("hasMaintenance")) }}`,
200
+ interface: {
201
+ type: AXPWidgetsCatalog.lookup,
202
+ options: {
203
+ entity: 'MaintenanceManagement.MaintenanceType',
204
+ textField: 'title',
205
+ valueField: 'id',
206
+ look: 'drop-down',
207
+ multiple: true,
208
+ },
209
+ },
210
+ },
211
+ options: {
212
+ sort: { enabled: false },
213
+ filter: { advance: { enabled: false }, inline: { enabled: false } },
214
+ },
215
+ },
216
+ {
217
+ name: 'description',
218
+ title: '@asset-management:assetTypes.entities.assetType.fields.description.title',
219
+ groupId: 'basic-info',
220
+ schema: {
221
+ dataType: 'string',
222
+ interface: {
223
+ type: AXPWidgetsCatalog.largeText,
224
+ options: {
225
+ rows: 4,
226
+ },
227
+ },
228
+ },
229
+ options: {
230
+ sort: { enabled: false },
231
+ filter: { advance: { enabled: true }, inline: { enabled: false } },
232
+ },
233
+ },
234
+ {
235
+ name: 'components',
236
+ title: '@asset-management:assetTypes.entities.assetType.components.components.title',
237
+ groupId: 'components',
238
+ options: {
239
+ sort: { enabled: false },
240
+ filter: { advance: { enabled: false }, inline: { enabled: false } },
241
+ },
242
+ schema: {
243
+ dataType: 'object',
244
+ defaultValue: { sections: [] },
245
+ visible: false,
246
+ nullable: true,
247
+ },
248
+ },
249
+ ],
250
+ columns: [
251
+ { name: 'name', options: { order: 1 } },
252
+ { name: 'title', options: { order: 2 } },
253
+ { name: 'description', options: { order: 3 } },
254
+ {
255
+ name: 'hasMaintenance',
256
+ title: '@asset-management:assetTypes.entities.assetType.fields.hasMaintenance.gridTitle',
257
+ options: { order: 4 },
258
+ },
259
+ {
260
+ name: 'maintenanceTypeIds',
261
+ title: '@asset-management:assetTypes.entities.assetType.fields.maintenanceTypeIds.gridTitle',
262
+ options: { order: 5 },
263
+ },
264
+ ],
265
+ queries: {},
266
+ interfaces: {
267
+ master: {
268
+ create: {
269
+ sections: [
270
+ { id: 'basic-info', order: 1 },
271
+ { id: 'maintenance-info', order: 2 },
272
+ ],
273
+ properties: [
274
+ {
275
+ name: 'name',
276
+ layout: { positions: { lg: { colSpan: 6, order: 2 } } },
277
+ },
278
+ {
279
+ name: 'title',
280
+ layout: { positions: { lg: { colSpan: 6, order: 3 } } },
281
+ },
282
+ {
283
+ name: 'description',
284
+ layout: { positions: { lg: { colSpan: 12, order: 4 } } },
285
+ },
286
+ {
287
+ name: 'hasMaintenance',
288
+ layout: { positions: { lg: { colSpan: 12, order: 5 } } },
289
+ },
290
+ {
291
+ name: 'maintenanceTypeIds',
292
+ layout: { positions: { lg: { colSpan: 12, order: 6 } } },
293
+ },
294
+ ],
295
+ },
296
+ update: {
297
+ sections: [
298
+ { id: 'basic-info', order: 1 },
299
+ { id: 'maintenance-info', order: 2 },
300
+ ],
301
+ properties: [
302
+ {
303
+ name: 'name',
304
+ layout: { positions: { lg: { colSpan: 6, order: 2 } } },
305
+ },
306
+ {
307
+ name: 'title',
308
+ layout: { positions: { lg: { colSpan: 6, order: 3 } } },
309
+ },
310
+ {
311
+ name: 'description',
312
+ layout: { positions: { lg: { colSpan: 12, order: 4 } } },
313
+ },
314
+ {
315
+ name: 'hasMaintenance',
316
+ layout: { positions: { lg: { colSpan: 12, order: 5 } } },
317
+ },
318
+ {
319
+ name: 'maintenanceTypeIds',
320
+ layout: { positions: { lg: { colSpan: 12, order: 6 } } },
321
+ },
322
+ ],
323
+ },
324
+ single: {
325
+ title: '{{ title }}',
326
+ sections: [
327
+ { id: 'basic-info', order: 1 },
328
+ { id: 'maintenance-info', order: 2 },
329
+ ],
330
+ properties: [
331
+ // { name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
332
+ {
333
+ name: 'name',
334
+ layout: { positions: { lg: { colSpan: 6, order: 2 } } },
335
+ },
336
+ {
337
+ name: 'title',
338
+ layout: { positions: { lg: { colSpan: 6, order: 3 } } },
339
+ },
340
+ {
341
+ name: 'description',
342
+ layout: { positions: { lg: { colSpan: 12, order: 4 } } },
343
+ },
344
+ {
345
+ name: 'hasMaintenance',
346
+ layout: { positions: { lg: { colSpan: 12, order: 5 } } },
347
+ },
348
+ {
349
+ name: 'maintenanceTypeIds',
350
+ layout: { positions: { lg: { colSpan: 12, order: 6 } } },
351
+ },
352
+ ],
353
+ actions: [...entityMasterRecordActions()],
354
+ },
355
+ list: {
356
+ actions: [...entityMasterCrudActions()],
357
+ views: [
358
+ createAllQueryView({ sorts: [{ name: 'name', dir: 'asc' }] }),
359
+ ],
360
+ },
361
+ },
362
+ },
363
+ };
364
+ return entityDef;
365
+ }
366
+ //#endregion
367
+
368
+ export { factoryAssetType };
369
+ //# sourceMappingURL=acorex-platform-module-asset-management-client-contracts-entity-catalog-asset-type.entity-9gozE1Z0.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-asset-management-client-contracts-entity-catalog-asset-type.entity-9gozE1Z0.mjs","sources":["../../../../libs/modules/asset-management/contracts/src/entities/asset-type/asset-type.entity.ts"],"sourcesContent":["import {\n AXPSystemActionType,\n AXPWidgetsCatalog,\n} from '@acorex-platform/framework-shared/core';\nimport {\n AXPEntity,\n AXPEntityCommandScope,\n createAllQueryView,\n entityDetailsCrudActions,\n entityDetailsSimpleCondition,\n entityMasterCrudActions,\n entityMasterRecordActions,\n} from '@acorex-platform/framework-shared/entity';\n//#region ---- Imports ----\nimport { RootConfig } from '../../root-config';\nimport { ASSET_TYPE_COMPONENTS_PAGE_COMPONENT_KEY } from '../../ASSET_TYPE_COMPONENTS_PAGE_COMPONENT_KEY';\n\n//#endregion\n\n//#region ---- Entity Factory ----\n\n/**\n * Entity definition aligned with {@link AXMAssetManagementAssetTypeEntityModel}.\n * Categories use `categoryIds` (see category plugin `propertyName`). `maintenanceTypeIds` is shown when `hasMaintenance` is enabled.\n */\nexport async function factoryAssetType(): Promise<AXPEntity | null> {\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.assetType.name,\n title: RootConfig.entities.assetType.title,\n icon: RootConfig.entities.assetType.icon,\n plugins: [\n // { name: 'unique-fields', options: { fields: 'code', scope: 'global' } },\n { name: 'history' },\n {\n name: 'category',\n options: { appearance: { icon: true, color: true } },\n },\n {\n name: 'meta-data-builder',\n options: {\n display: 'page',\n order: 3,\n },\n },\n // { name: 'identifier', options: { field: 'code', rule: 'asset-type-code' } },\n { name: 'reports' },\n ],\n pages: [\n {\n componentKey: ASSET_TYPE_COMPONENTS_PAGE_COMPONENT_KEY,\n field: 'components',\n title:\n '@asset-management:assetTypes.entities.assetType.components.components.title',\n icon: 'fa-light fa-sitemap',\n layout: { order: 2, position: 'after' },\n options: { order: 2, allowEditSection: false },\n },\n ],\n relatedEntities: [\n {\n entity: 'MaintenanceManagement.ActivityTypeAssetType',\n title:\n '@asset-management:assetTypes.entities.assetType.related-entities.activity-type-asset-types.title',\n icon: 'fa-light fa-link',\n hidden: `{{ ![true, \"true\", 1, \"1\"].includes(context.eval(\"hasMaintenance\")) }}`,\n conditions: [entityDetailsSimpleCondition('assetTypeId')],\n actions: [...entityDetailsCrudActions('assetTypeId')],\n layout: { type: 'page-list', position: 'after', order: 4 },\n },\n {\n entity: 'MaintenanceManagement.MaintenanceTemplate',\n title:\n '@asset-management:assetTypes.entities.assetType.related-entities.maintenance-templates.title',\n icon: 'fa-light fa-clipboard-list',\n hidden: `{{ ![true, \"true\", 1, \"1\"].includes(context.eval(\"hasMaintenance\")) }}`,\n conditions: [entityDetailsSimpleCondition('assetTypeId')],\n actions: [\n {\n title: '@general:actions.create.title',\n command: {\n name: 'Entity:Create',\n options: {\n process: {\n redirect: false,\n canCreateNewOne: true,\n data: {\n assetTypeId: '{{ context.eval(\"id\") }}',\n assetType: {\n id: '{{ context.eval(\"id\") }}',\n title:\n '{{ context.eval(\"title\", { pipes: [\"translate\"] }) }}',\n maintenanceTypeIds:\n '{{ context.eval(\"maintenanceTypeIds\") }}',\n },\n },\n },\n },\n },\n priority: 'primary',\n type: AXPSystemActionType.Create,\n scope: AXPEntityCommandScope.TypeLevel,\n },\n ...entityDetailsCrudActions('assetTypeId', { create: false }),\n ],\n layout: { type: 'page-list', position: 'after', order: 6 },\n },\n ],\n formats: {\n individual: RootConfig.entities.assetType.title,\n plural: RootConfig.entities.assetType.titlePlural,\n searchResult: { title: '{{ title }}' },\n displayName: '@general:terms.common.overview',\n },\n groups: [\n {\n id: 'basic-info',\n title:\n '@asset-management:assetTypes.entities.assetType.groups.basic-info',\n },\n {\n id: 'maintenance-info',\n title:\n '@asset-management:assetTypes.entities.assetType.groups.maintenance-info',\n },\n {\n id: 'components',\n title:\n '@asset-management:assetTypes.entities.assetType.groups.components',\n },\n ],\n properties: [\n {\n name: 'id',\n title: 'ID',\n schema: {\n dataType: 'uuid',\n visible: false,\n nullable: false,\n readonly: true,\n unique: { enabled: true },\n },\n },\n // {\n // name: 'code',\n // title: '@asset-management:assetTypes.entities.assetType.fields.code.title',\n // groupId: 'basic-info',\n // schema: {\n // dataType: 'string',\n // unique: { enabled: true },\n // interface: {\n // type: AXPWidgetsCatalog.text,\n // options: {\n // disabled: true,\n // },\n // },\n // },\n // options: {\n // sort: { enabled: true },\n // filter: { advance: { enabled: true }, inline: { enabled: true } },\n // },\n // validations: [{ rule: 'required' }],\n // },\n {\n name: 'name',\n title:\n '@asset-management:assetTypes.entities.assetType.fields.name.title',\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsCatalog.text,\n },\n },\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'title',\n title:\n '@asset-management:assetTypes.entities.assetType.fields.title.title',\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsCatalog.text,\n },\n },\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'hasMaintenance',\n title:\n '@asset-management:assetTypes.entities.assetType.fields.hasMaintenance.title',\n groupId: 'maintenance-info',\n schema: {\n dataType: 'boolean',\n defaultValue: false,\n interface: {\n type: AXPWidgetsCatalog.toggle,\n },\n },\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'maintenanceTypeIds',\n title:\n '@asset-management:assetTypes.entities.assetType.fields.maintenanceTypeIds.title',\n groupId: 'maintenance-info',\n schema: {\n dataType: 'array',\n nullable: true,\n defaultValue: [],\n visible: `{{ [true, \"true\"].includes(context.eval(\"hasMaintenance\")) }}`,\n interface: {\n type: AXPWidgetsCatalog.lookup,\n options: {\n entity: 'MaintenanceManagement.MaintenanceType',\n textField: 'title',\n valueField: 'id',\n look: 'drop-down',\n multiple: true,\n },\n },\n },\n options: {\n sort: { enabled: false },\n filter: { advance: { enabled: false }, inline: { enabled: false } },\n },\n },\n {\n name: 'description',\n title:\n '@asset-management:assetTypes.entities.assetType.fields.description.title',\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsCatalog.largeText,\n options: {\n rows: 4,\n },\n },\n },\n options: {\n sort: { enabled: false },\n filter: { advance: { enabled: true }, inline: { enabled: false } },\n },\n },\n {\n name: 'components',\n title:\n '@asset-management:assetTypes.entities.assetType.components.components.title',\n groupId: 'components',\n options: {\n sort: { enabled: false },\n filter: { advance: { enabled: false }, inline: { enabled: false } },\n },\n schema: {\n dataType: 'object',\n defaultValue: { sections: [] },\n visible: false,\n nullable: true,\n },\n },\n ],\n columns: [\n { name: 'name', options: { order: 1 } },\n { name: 'title', options: { order: 2 } },\n { name: 'description', options: { order: 3 } },\n {\n name: 'hasMaintenance',\n title:\n '@asset-management:assetTypes.entities.assetType.fields.hasMaintenance.gridTitle',\n options: { order: 4 },\n },\n {\n name: 'maintenanceTypeIds',\n title:\n '@asset-management:assetTypes.entities.assetType.fields.maintenanceTypeIds.gridTitle',\n options: { order: 5 },\n },\n ],\n queries: {},\n interfaces: {\n master: {\n create: {\n sections: [\n { id: 'basic-info', order: 1 },\n { id: 'maintenance-info', order: 2 },\n ],\n properties: [\n {\n name: 'name',\n layout: { positions: { lg: { colSpan: 6, order: 2 } } },\n },\n {\n name: 'title',\n layout: { positions: { lg: { colSpan: 6, order: 3 } } },\n },\n {\n name: 'description',\n layout: { positions: { lg: { colSpan: 12, order: 4 } } },\n },\n {\n name: 'hasMaintenance',\n layout: { positions: { lg: { colSpan: 12, order: 5 } } },\n },\n {\n name: 'maintenanceTypeIds',\n layout: { positions: { lg: { colSpan: 12, order: 6 } } },\n },\n ],\n },\n update: {\n sections: [\n { id: 'basic-info', order: 1 },\n { id: 'maintenance-info', order: 2 },\n ],\n properties: [\n {\n name: 'name',\n layout: { positions: { lg: { colSpan: 6, order: 2 } } },\n },\n {\n name: 'title',\n layout: { positions: { lg: { colSpan: 6, order: 3 } } },\n },\n {\n name: 'description',\n layout: { positions: { lg: { colSpan: 12, order: 4 } } },\n },\n {\n name: 'hasMaintenance',\n layout: { positions: { lg: { colSpan: 12, order: 5 } } },\n },\n {\n name: 'maintenanceTypeIds',\n layout: { positions: { lg: { colSpan: 12, order: 6 } } },\n },\n ],\n },\n single: {\n title: '{{ title }}',\n sections: [\n { id: 'basic-info', order: 1 },\n { id: 'maintenance-info', order: 2 },\n ],\n properties: [\n // { name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n {\n name: 'name',\n layout: { positions: { lg: { colSpan: 6, order: 2 } } },\n },\n {\n name: 'title',\n layout: { positions: { lg: { colSpan: 6, order: 3 } } },\n },\n {\n name: 'description',\n layout: { positions: { lg: { colSpan: 12, order: 4 } } },\n },\n {\n name: 'hasMaintenance',\n layout: { positions: { lg: { colSpan: 12, order: 5 } } },\n },\n {\n name: 'maintenanceTypeIds',\n layout: { positions: { lg: { colSpan: 12, order: 6 } } },\n },\n ],\n actions: [...entityMasterRecordActions()],\n },\n list: {\n actions: [...entityMasterCrudActions()],\n views: [\n createAllQueryView({ sorts: [{ name: 'name', dir: 'asc' }] }),\n ],\n },\n },\n },\n };\n\n return entityDef;\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;;AAiBA;AAEA;AAEA;;;AAGG;AACI,eAAe,gBAAgB,GAAA;AACpC,IAAA,MAAM,SAAS,GAAc;AAC3B,QAAA,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAC9B,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,SAAS,CAAC,IAAI;AACxC,QAAA,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC,SAAS,CAAC,KAAK;AAC1C,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,SAAS,CAAC,IAAI;AACxC,QAAA,OAAO,EAAE;;YAEP,EAAE,IAAI,EAAE,SAAS,EAAE;AACnB,YAAA;AACE,gBAAA,IAAI,EAAE,UAAU;AAChB,gBAAA,OAAO,EAAE,EAAE,UAAU,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE;AACrD,aAAA;AACD,YAAA;AACE,gBAAA,IAAI,EAAE,mBAAmB;AACzB,gBAAA,OAAO,EAAE;AACP,oBAAA,OAAO,EAAE,MAAM;AACf,oBAAA,KAAK,EAAE,CAAC;AACT,iBAAA;AACF,aAAA;;YAED,EAAE,IAAI,EAAE,SAAS,EAAE;AACpB,SAAA;AACD,QAAA,KAAK,EAAE;AACL,YAAA;AACE,gBAAA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