@acorex-platform/module-maintenance-management-client 0.0.32 → 0.0.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entities-activity-type-asset-type.mjs +361 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entities-activity-type-asset-type.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entities-activity-type-resource.mjs +432 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entities-activity-type-resource.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entities-activity-type.mjs +471 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entities-activity-type.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entities-failure-cause.mjs +491 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entities-failure-cause.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entities-failure-detection.mjs +491 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entities-failure-detection.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entities-failure-effect.mjs +371 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entities-failure-effect.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entities-failure-mechanism.mjs +491 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entities-failure-mechanism.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entities-failure-mode-asset-type.mjs +453 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entities-failure-mode-asset-type.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entities-failure-mode-mechanism.mjs +328 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entities-failure-mode-mechanism.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entities-failure-mode-solution.mjs +496 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entities-failure-mode-solution.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entities-failure-mode.mjs +723 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entities-failure-mode.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entities-failure-register-cause.mjs +328 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entities-failure-register-cause.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entities-failure-register-effect.mjs +328 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entities-failure-register-effect.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entities-failure-register-mechanism.mjs +328 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entities-failure-register-mechanism.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entities-failure-register.mjs +809 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entities-failure-register.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entities-failure-severity.mjs +339 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entities-failure-severity.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entities-failure-type.mjs +496 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entities-failure-type.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entities-maintenance-plan.mjs +613 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entities-maintenance-plan.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entities-maintenance-template-activity-type.mjs +401 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entities-maintenance-template-activity-type.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entities-maintenance-template-failure-mode.mjs +356 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entities-maintenance-template-failure-mode.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entities-maintenance-template-resource.mjs +458 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entities-maintenance-template-resource.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entities-maintenance-template.mjs +622 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entities-maintenance-template.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entities-maintenance-type.mjs +412 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entities-maintenance-type.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entities-work-order.mjs +893 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entities-work-order.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entities-work-package.mjs +452 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entities-work-package.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entities-work-report.mjs +570 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entities-work-report.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entity-catalog-acorex-platform-module-maintenance-management-client-contracts-entity-catalog-DJkKh0Qa.mjs +248 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entity-catalog-acorex-platform-module-maintenance-management-client-contracts-entity-catalog-DJkKh0Qa.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entity-catalog-activity-type-asset-type.entity--Kz4Kqqe.mjs +157 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entity-catalog-activity-type-asset-type.entity--Kz4Kqqe.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entity-catalog-activity-type-resource.entity-C2OP2EN0.mjs +228 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entity-catalog-activity-type-resource.entity-C2OP2EN0.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entity-catalog-activity-type.entity-D9UUDRIS.mjs +267 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entity-catalog-activity-type.entity-D9UUDRIS.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-cause.entity-glUcXwS9.mjs +287 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-cause.entity-glUcXwS9.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-detection.entity-CTp1voFW.mjs +287 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-detection.entity-CTp1voFW.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-effect.entity-ClD09en8.mjs +167 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-effect.entity-ClD09en8.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-mechanism.entity-BcU0-nFS.mjs +287 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-mechanism.entity-BcU0-nFS.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-mode-asset-type.entity-N37srLVb.mjs +249 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-mode-asset-type.entity-N37srLVb.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-mode-mechanism.entity-BkkvXk03.mjs +124 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-mode-mechanism.entity-BkkvXk03.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-mode-solution.entity-HlVVBMTA.mjs +292 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-mode-solution.entity-HlVVBMTA.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-mode.entity-BGJP73yC.mjs +519 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-mode.entity-BGJP73yC.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-register-cause.entity-CLM9YuYF.mjs +124 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-register-cause.entity-CLM9YuYF.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-register-effect.entity-DpLYMLsi.mjs +124 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-register-effect.entity-DpLYMLsi.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-register-mechanism.entity-DqU2wP0I.mjs +124 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-register-mechanism.entity-DqU2wP0I.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-register.entity-BPZwEGE9.mjs +605 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-register.entity-BPZwEGE9.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-severity.entity-DaMUJOID.mjs +135 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-severity.entity-DaMUJOID.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-type.entity-DkhVvBOh.mjs +292 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entity-catalog-failure-type.entity-DkhVvBOh.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entity-catalog-maintenance-plan.entity-WCiP2h8H.mjs +409 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entity-catalog-maintenance-plan.entity-WCiP2h8H.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entity-catalog-maintenance-template-activity-type.entity-FWn7bmMX.mjs +197 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entity-catalog-maintenance-template-activity-type.entity-FWn7bmMX.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entity-catalog-maintenance-template-failure-mode.entity-DC5GTHYM.mjs +152 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entity-catalog-maintenance-template-failure-mode.entity-DC5GTHYM.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entity-catalog-maintenance-template-resource.entity-O6y3Q3U6.mjs +254 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entity-catalog-maintenance-template-resource.entity-O6y3Q3U6.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entity-catalog-maintenance-template.entity-DFDajM9U.mjs +418 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entity-catalog-maintenance-template.entity-DFDajM9U.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entity-catalog-maintenance-type.entity-CGSHreth.mjs +208 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entity-catalog-maintenance-type.entity-CGSHreth.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entity-catalog-work-order.entity-GaQSPAmn.mjs +689 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entity-catalog-work-order.entity-GaQSPAmn.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entity-catalog-work-package.entity-CJE8Txjo.mjs +248 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entity-catalog-work-package.entity-CJE8Txjo.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entity-catalog-work-report.entity-BrActlGh.mjs +366 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entity-catalog-work-report.entity-BrActlGh.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entity-catalog.mjs +2 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-contracts-entity-catalog.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-local-entities.mjs +54 -0
- package/fesm2022/acorex-platform-module-maintenance-management-client-local-entities.mjs.map +1 -0
- package/package.json +113 -1
- package/types/acorex-platform-module-maintenance-management-client-contracts-entities-activity-type-asset-type.d.ts +5 -0
- package/types/acorex-platform-module-maintenance-management-client-contracts-entities-activity-type-resource.d.ts +5 -0
- package/types/acorex-platform-module-maintenance-management-client-contracts-entities-activity-type.d.ts +5 -0
- package/types/acorex-platform-module-maintenance-management-client-contracts-entities-failure-cause.d.ts +5 -0
- package/types/acorex-platform-module-maintenance-management-client-contracts-entities-failure-detection.d.ts +5 -0
- package/types/acorex-platform-module-maintenance-management-client-contracts-entities-failure-effect.d.ts +5 -0
- package/types/acorex-platform-module-maintenance-management-client-contracts-entities-failure-mechanism.d.ts +5 -0
- package/types/acorex-platform-module-maintenance-management-client-contracts-entities-failure-mode-asset-type.d.ts +5 -0
- package/types/acorex-platform-module-maintenance-management-client-contracts-entities-failure-mode-mechanism.d.ts +5 -0
- package/types/acorex-platform-module-maintenance-management-client-contracts-entities-failure-mode-solution.d.ts +5 -0
- package/types/acorex-platform-module-maintenance-management-client-contracts-entities-failure-mode.d.ts +5 -0
- package/types/acorex-platform-module-maintenance-management-client-contracts-entities-failure-register-cause.d.ts +5 -0
- package/types/acorex-platform-module-maintenance-management-client-contracts-entities-failure-register-effect.d.ts +5 -0
- package/types/acorex-platform-module-maintenance-management-client-contracts-entities-failure-register-mechanism.d.ts +5 -0
- package/types/acorex-platform-module-maintenance-management-client-contracts-entities-failure-register.d.ts +5 -0
- package/types/acorex-platform-module-maintenance-management-client-contracts-entities-failure-severity.d.ts +5 -0
- package/types/acorex-platform-module-maintenance-management-client-contracts-entities-failure-type.d.ts +5 -0
- package/types/acorex-platform-module-maintenance-management-client-contracts-entities-maintenance-plan.d.ts +5 -0
- package/types/acorex-platform-module-maintenance-management-client-contracts-entities-maintenance-template-activity-type.d.ts +5 -0
- package/types/acorex-platform-module-maintenance-management-client-contracts-entities-maintenance-template-failure-mode.d.ts +5 -0
- package/types/acorex-platform-module-maintenance-management-client-contracts-entities-maintenance-template-resource.d.ts +5 -0
- package/types/acorex-platform-module-maintenance-management-client-contracts-entities-maintenance-template.d.ts +5 -0
- package/types/acorex-platform-module-maintenance-management-client-contracts-entities-maintenance-type.d.ts +9 -0
- package/types/acorex-platform-module-maintenance-management-client-contracts-entities-work-order.d.ts +7 -0
- package/types/acorex-platform-module-maintenance-management-client-contracts-entities-work-package.d.ts +5 -0
- package/types/acorex-platform-module-maintenance-management-client-contracts-entities-work-report.d.ts +5 -0
- package/types/acorex-platform-module-maintenance-management-client-contracts-entity-catalog.d.ts +10 -0
- package/types/acorex-platform-module-maintenance-management-client-local-entities.d.ts +12 -0
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
import { AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';
|
|
2
|
+
import { createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';
|
|
3
|
+
import { R as RootConfig } from './acorex-platform-module-maintenance-management-client-contracts-entity-catalog-acorex-platform-module-maintenance-management-client-contracts-entity-catalog-DJkKh0Qa.mjs';
|
|
4
|
+
|
|
5
|
+
const RESOURCE_TYPE_OPTIONS = [
|
|
6
|
+
{
|
|
7
|
+
id: 'assettype',
|
|
8
|
+
title: '@maintenance-management:activity-type-resources.entities.activity-type-resource.fields.resource-type.options.assettype',
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
id: 'jobdefinition',
|
|
12
|
+
title: '@maintenance-management:activity-type-resources.entities.activity-type-resource.fields.resource-type.options.jobdefinition',
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
id: 'inventoryitem',
|
|
16
|
+
title: '@maintenance-management:activity-type-resources.entities.activity-type-resource.fields.resource-type.options.inventoryitem',
|
|
17
|
+
},
|
|
18
|
+
];
|
|
19
|
+
async function factoryActivityTypeResource() {
|
|
20
|
+
const entityDef = {
|
|
21
|
+
module: RootConfig.module.name,
|
|
22
|
+
name: RootConfig.entities.activityTypeResource.name,
|
|
23
|
+
title: RootConfig.entities.activityTypeResource.title,
|
|
24
|
+
icon: RootConfig.entities.activityTypeResource.icon,
|
|
25
|
+
formats: {
|
|
26
|
+
individual: RootConfig.entities.activityTypeResource.title,
|
|
27
|
+
plural: RootConfig.entities.activityTypeResource.titlePlural,
|
|
28
|
+
searchResult: {
|
|
29
|
+
title: '{{ resourceId }}',
|
|
30
|
+
description: '{{ activityType.title }}',
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
groups: [{ id: 'basic-info', title: '@general:terms.interface.basic-info' }],
|
|
34
|
+
properties: [
|
|
35
|
+
{
|
|
36
|
+
name: 'activityTypeId',
|
|
37
|
+
title: '@maintenance-management:activity-type-resources.entities.activity-type-resource.fields.activity-type-id.title',
|
|
38
|
+
groupId: 'basic-info',
|
|
39
|
+
schema: {
|
|
40
|
+
dataType: 'string',
|
|
41
|
+
interface: {
|
|
42
|
+
type: AXPWidgetsCatalog.lookup,
|
|
43
|
+
options: {
|
|
44
|
+
look: 'select',
|
|
45
|
+
entity: `${RootConfig.module.name}.${RootConfig.entities.activityType.name}`,
|
|
46
|
+
textField: 'title',
|
|
47
|
+
valueField: 'id',
|
|
48
|
+
expose: [
|
|
49
|
+
{ source: 'id', target: 'activityType.id' },
|
|
50
|
+
{ source: 'title', target: 'activityType.title' },
|
|
51
|
+
],
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
validations: [{ rule: 'required' }],
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
name: 'resourceType',
|
|
59
|
+
title: '@maintenance-management:activity-type-resources.entities.activity-type-resource.fields.resource-type.title',
|
|
60
|
+
groupId: 'basic-info',
|
|
61
|
+
schema: {
|
|
62
|
+
dataType: 'string',
|
|
63
|
+
interface: {
|
|
64
|
+
type: AXPWidgetsCatalog.select,
|
|
65
|
+
options: {
|
|
66
|
+
valueField: 'id',
|
|
67
|
+
textField: 'title',
|
|
68
|
+
allowSearch: true,
|
|
69
|
+
dataSource: RESOURCE_TYPE_OPTIONS,
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
validations: [{ rule: 'required' }],
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
name: 'count',
|
|
77
|
+
title: '@maintenance-management:activity-type-resources.entities.activity-type-resource.fields.count.title',
|
|
78
|
+
groupId: 'basic-info',
|
|
79
|
+
schema: {
|
|
80
|
+
dataType: 'number',
|
|
81
|
+
interface: {
|
|
82
|
+
type: AXPWidgetsCatalog.number,
|
|
83
|
+
options: {
|
|
84
|
+
min: 0,
|
|
85
|
+
placeholder: '@maintenance-management:activity-type-resources.entities.activity-type-resource.fields.count.placeholder',
|
|
86
|
+
},
|
|
87
|
+
},
|
|
88
|
+
},
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
name: 'resourceId',
|
|
92
|
+
title: '@maintenance-management:activity-type-resources.entities.activity-type-resource.fields.resource-id.title',
|
|
93
|
+
groupId: 'basic-info',
|
|
94
|
+
schema: {
|
|
95
|
+
dataType: 'string',
|
|
96
|
+
visible: '{{ ((context.eval("resourceType") && context.eval("resourceType").id) || context.eval("resourceType")) === "inventoryitem" }}',
|
|
97
|
+
interface: {
|
|
98
|
+
type: AXPWidgetsCatalog.text,
|
|
99
|
+
options: {
|
|
100
|
+
placeholder: '@maintenance-management:activity-type-resources.entities.activity-type-resource.fields.resource-id.placeholder',
|
|
101
|
+
},
|
|
102
|
+
},
|
|
103
|
+
},
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
name: 'resourceSelectionIds',
|
|
107
|
+
title: '@maintenance-management:activity-type-resources.entities.activity-type-resource.fields.resource-id.title',
|
|
108
|
+
groupId: 'basic-info',
|
|
109
|
+
schema: {
|
|
110
|
+
dataType: 'array',
|
|
111
|
+
visible: '{{ ["assettype","jobdefinition"].includes((context.eval("resourceType") && context.eval("resourceType").id) || context.eval("resourceType")) }}',
|
|
112
|
+
interface: {
|
|
113
|
+
type: AXPWidgetsCatalog.lookup,
|
|
114
|
+
options: {
|
|
115
|
+
look: 'drop-down',
|
|
116
|
+
multiple: true,
|
|
117
|
+
entity: '{{ (((context.eval("resourceType") && context.eval("resourceType").id) || context.eval("resourceType")) === "assettype") ? "AssetManagement.AssetType" : "OrganizationManagement.JobDefinition" }}',
|
|
118
|
+
textField: 'title',
|
|
119
|
+
valueField: 'id',
|
|
120
|
+
},
|
|
121
|
+
},
|
|
122
|
+
},
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
name: 'initialEstimatedTime',
|
|
126
|
+
title: '@maintenance-management:activity-type-resources.entities.activity-type-resource.fields.initial-estimated-time.title',
|
|
127
|
+
groupId: 'basic-info',
|
|
128
|
+
schema: {
|
|
129
|
+
dataType: 'number',
|
|
130
|
+
interface: {
|
|
131
|
+
type: AXPWidgetsCatalog.number,
|
|
132
|
+
options: {
|
|
133
|
+
min: 0,
|
|
134
|
+
placeholder: '@maintenance-management:activity-type-resources.entities.activity-type-resource.fields.initial-estimated-time.placeholder',
|
|
135
|
+
},
|
|
136
|
+
},
|
|
137
|
+
},
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
name: 'description',
|
|
141
|
+
title: '@general:terms.common.description',
|
|
142
|
+
groupId: 'basic-info',
|
|
143
|
+
schema: {
|
|
144
|
+
dataType: 'string',
|
|
145
|
+
interface: {
|
|
146
|
+
type: AXPWidgetsCatalog.largeText,
|
|
147
|
+
options: {
|
|
148
|
+
placeholder: '@maintenance-management:activity-type-resources.entities.activity-type-resource.fields.description.placeholder',
|
|
149
|
+
},
|
|
150
|
+
},
|
|
151
|
+
},
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
name: 'resourceSummary',
|
|
155
|
+
title: '@maintenance-management:activity-type-resources.entities.activity-type-resource.fields.resource-summary.title',
|
|
156
|
+
groupId: 'basic-info',
|
|
157
|
+
schema: {
|
|
158
|
+
dataType: 'string',
|
|
159
|
+
interface: {
|
|
160
|
+
type: AXPWidgetsCatalog.text,
|
|
161
|
+
options: {
|
|
162
|
+
readonly: true,
|
|
163
|
+
},
|
|
164
|
+
},
|
|
165
|
+
},
|
|
166
|
+
},
|
|
167
|
+
],
|
|
168
|
+
columns: [
|
|
169
|
+
{ name: 'activityTypeId', options: { dataPath: 'activityType.title' } },
|
|
170
|
+
{ name: 'resourceType' },
|
|
171
|
+
{ name: 'resourceSummary' },
|
|
172
|
+
{ name: 'count' },
|
|
173
|
+
{ name: 'initialEstimatedTime' },
|
|
174
|
+
{ name: 'description' },
|
|
175
|
+
],
|
|
176
|
+
interfaces: {
|
|
177
|
+
master: {
|
|
178
|
+
create: {
|
|
179
|
+
sections: [{ id: 'basic-info' }],
|
|
180
|
+
properties: [
|
|
181
|
+
{ name: 'resourceType', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
|
|
182
|
+
{ name: 'count', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
|
|
183
|
+
{ name: 'resourceSelectionIds', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
|
|
184
|
+
{ name: 'resourceId', layout: { positions: { lg: { colSpan: 12, order: 4 } } } },
|
|
185
|
+
{ name: 'initialEstimatedTime', layout: { positions: { lg: { colSpan: 6, order: 5 } } } },
|
|
186
|
+
{ name: 'description', layout: { positions: { lg: { colSpan: 12, order: 6 } } } },
|
|
187
|
+
],
|
|
188
|
+
},
|
|
189
|
+
update: {
|
|
190
|
+
sections: [{ id: 'basic-info' }],
|
|
191
|
+
properties: [
|
|
192
|
+
{ name: 'resourceType', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
|
|
193
|
+
{ name: 'count', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
|
|
194
|
+
{ name: 'resourceSelectionIds', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
|
|
195
|
+
{ name: 'resourceId', layout: { positions: { lg: { colSpan: 12, order: 4 } } } },
|
|
196
|
+
{ name: 'initialEstimatedTime', layout: { positions: { lg: { colSpan: 6, order: 5 } } } },
|
|
197
|
+
{ name: 'description', layout: { positions: { lg: { colSpan: 12, order: 6 } } } },
|
|
198
|
+
],
|
|
199
|
+
},
|
|
200
|
+
single: {
|
|
201
|
+
title: '{{ resourceId }}',
|
|
202
|
+
sections: [{ id: 'basic-info' }],
|
|
203
|
+
properties: [
|
|
204
|
+
{ name: 'resourceType', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
|
|
205
|
+
{ name: 'count', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
|
|
206
|
+
{ name: 'resourceSelectionIds', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
|
|
207
|
+
{ name: 'resourceId', layout: { positions: { lg: { colSpan: 12, order: 4 } } } },
|
|
208
|
+
{ name: 'initialEstimatedTime', layout: { positions: { lg: { colSpan: 6, order: 5 } } } },
|
|
209
|
+
{ name: 'description', layout: { positions: { lg: { colSpan: 12, order: 6 } } } },
|
|
210
|
+
],
|
|
211
|
+
actions: [...entityMasterRecordActions()],
|
|
212
|
+
},
|
|
213
|
+
list: {
|
|
214
|
+
actions: [...entityMasterCrudActions()],
|
|
215
|
+
views: [
|
|
216
|
+
createAllQueryView({
|
|
217
|
+
sorts: [{ name: 'resourceType', dir: 'asc' }],
|
|
218
|
+
}),
|
|
219
|
+
],
|
|
220
|
+
},
|
|
221
|
+
},
|
|
222
|
+
},
|
|
223
|
+
};
|
|
224
|
+
return entityDef;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
export { factoryActivityTypeResource };
|
|
228
|
+
//# sourceMappingURL=acorex-platform-module-maintenance-management-client-contracts-entity-catalog-activity-type-resource.entity-C2OP2EN0.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-maintenance-management-client-contracts-entity-catalog-activity-type-resource.entity-C2OP2EN0.mjs","sources":["../../../../libs/modules/maintenance-management/contracts/src/entities/activity-type-resource/activity-type-resource.entity.ts"],"sourcesContent":["import { AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';\nimport { RootConfig } from '../../root-config';\n\nconst RESOURCE_TYPE_OPTIONS = [\n {\n id: 'assettype',\n title:\n '@maintenance-management:activity-type-resources.entities.activity-type-resource.fields.resource-type.options.assettype',\n },\n {\n id: 'jobdefinition',\n title:\n '@maintenance-management:activity-type-resources.entities.activity-type-resource.fields.resource-type.options.jobdefinition',\n },\n {\n id: 'inventoryitem',\n title:\n '@maintenance-management:activity-type-resources.entities.activity-type-resource.fields.resource-type.options.inventoryitem',\n },\n];\n\nexport async function factoryActivityTypeResource(): Promise<AXPEntity | null> {\n\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.activityTypeResource.name,\n title: RootConfig.entities.activityTypeResource.title,\n icon: RootConfig.entities.activityTypeResource.icon,\n formats: {\n individual: RootConfig.entities.activityTypeResource.title,\n plural: RootConfig.entities.activityTypeResource.titlePlural,\n searchResult: {\n title: '{{ resourceId }}',\n description: '{{ activityType.title }}',\n },\n },\n groups: [{ id: 'basic-info', title: '@general:terms.interface.basic-info' }],\n properties: [\n {\n name: 'activityTypeId',\n title:\n '@maintenance-management:activity-type-resources.entities.activity-type-resource.fields.activity-type-id.title',\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsCatalog.lookup,\n options: {\n look: 'select',\n entity: `${RootConfig.module.name}.${RootConfig.entities.activityType.name}`,\n textField: 'title',\n valueField: 'id',\n expose: [\n { source: 'id', target: 'activityType.id' },\n { source: 'title', target: 'activityType.title' },\n ],\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'resourceType',\n title:\n '@maintenance-management:activity-type-resources.entities.activity-type-resource.fields.resource-type.title',\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsCatalog.select,\n options: {\n valueField: 'id',\n textField: 'title',\n allowSearch: true,\n dataSource: RESOURCE_TYPE_OPTIONS,\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'count',\n title: '@maintenance-management:activity-type-resources.entities.activity-type-resource.fields.count.title',\n groupId: 'basic-info',\n schema: {\n dataType: 'number',\n interface: {\n type: AXPWidgetsCatalog.number,\n options: {\n min: 0,\n placeholder:\n '@maintenance-management:activity-type-resources.entities.activity-type-resource.fields.count.placeholder',\n },\n },\n },\n },\n {\n name: 'resourceId',\n title:\n '@maintenance-management:activity-type-resources.entities.activity-type-resource.fields.resource-id.title',\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n visible:\n '{{ ((context.eval(\"resourceType\") && context.eval(\"resourceType\").id) || context.eval(\"resourceType\")) === \"inventoryitem\" }}',\n interface: {\n type: AXPWidgetsCatalog.text,\n options: {\n placeholder:\n '@maintenance-management:activity-type-resources.entities.activity-type-resource.fields.resource-id.placeholder',\n },\n },\n },\n },\n {\n name: 'resourceSelectionIds',\n title:\n '@maintenance-management:activity-type-resources.entities.activity-type-resource.fields.resource-id.title',\n groupId: 'basic-info',\n schema: {\n dataType: 'array',\n visible:\n '{{ [\"assettype\",\"jobdefinition\"].includes((context.eval(\"resourceType\") && context.eval(\"resourceType\").id) || context.eval(\"resourceType\")) }}',\n interface: {\n type: AXPWidgetsCatalog.lookup,\n options: {\n look: 'drop-down',\n multiple: true,\n entity:\n '{{ (((context.eval(\"resourceType\") && context.eval(\"resourceType\").id) || context.eval(\"resourceType\")) === \"assettype\") ? \"AssetManagement.AssetType\" : \"OrganizationManagement.JobDefinition\" }}',\n textField: 'title',\n valueField: 'id',\n },\n },\n },\n },\n {\n name: 'initialEstimatedTime',\n title:\n '@maintenance-management:activity-type-resources.entities.activity-type-resource.fields.initial-estimated-time.title',\n groupId: 'basic-info',\n schema: {\n dataType: 'number',\n interface: {\n type: AXPWidgetsCatalog.number,\n options: {\n min: 0,\n placeholder:\n '@maintenance-management:activity-type-resources.entities.activity-type-resource.fields.initial-estimated-time.placeholder',\n },\n },\n },\n },\n {\n name: 'description',\n title: '@general:terms.common.description',\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsCatalog.largeText,\n options: {\n placeholder:\n '@maintenance-management:activity-type-resources.entities.activity-type-resource.fields.description.placeholder',\n },\n },\n },\n },\n {\n name: 'resourceSummary',\n title:\n '@maintenance-management:activity-type-resources.entities.activity-type-resource.fields.resource-summary.title',\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsCatalog.text,\n options: {\n readonly: true,\n },\n },\n },\n },\n ],\n columns: [\n { name: 'activityTypeId', options: { dataPath: 'activityType.title' } },\n { name: 'resourceType' },\n { name: 'resourceSummary' },\n { name: 'count' },\n { name: 'initialEstimatedTime' },\n { name: 'description' },\n ],\n\n interfaces: {\n master: {\n create: {\n sections: [{ id: 'basic-info' }],\n properties: [\n { name: 'resourceType', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'count', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },\n { name: 'resourceSelectionIds', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },\n { name: 'resourceId', layout: { positions: { lg: { colSpan: 12, order: 4 } } } },\n { name: 'initialEstimatedTime', layout: { positions: { lg: { colSpan: 6, order: 5 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 6 } } } },\n ],\n },\n update: {\n sections: [{ id: 'basic-info' }],\n properties: [\n { name: 'resourceType', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'count', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },\n { name: 'resourceSelectionIds', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },\n { name: 'resourceId', layout: { positions: { lg: { colSpan: 12, order: 4 } } } },\n { name: 'initialEstimatedTime', layout: { positions: { lg: { colSpan: 6, order: 5 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 6 } } } },\n ],\n },\n single: {\n title: '{{ resourceId }}',\n sections: [{ id: 'basic-info' }],\n properties: [\n { name: 'resourceType', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'count', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },\n { name: 'resourceSelectionIds', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },\n { name: 'resourceId', layout: { positions: { lg: { colSpan: 12, order: 4 } } } },\n { name: 'initialEstimatedTime', layout: { positions: { lg: { colSpan: 6, order: 5 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 6 } } } },\n ],\n actions: [...entityMasterRecordActions()],\n },\n list: {\n actions: [...entityMasterCrudActions()],\n views: [\n createAllQueryView({\n sorts: [{ name: 'resourceType', dir: 'asc' }],\n }),\n ],\n },\n },\n },\n };\n\n return entityDef;\n}\n"],"names":[],"mappings":";;;;AAIA,MAAM,qBAAqB,GAAG;AAC5B,IAAA;AACE,QAAA,EAAE,EAAE,WAAW;AACf,QAAA,KAAK,EACH,wHAAwH;AAC3H,KAAA;AACD,IAAA;AACE,QAAA,EAAE,EAAE,eAAe;AACnB,QAAA,KAAK,EACH,4HAA4H;AAC/H,KAAA;AACD,IAAA;A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M,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;wBAC1F,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;wBAChF,EAAE,IAAI,EAAE,sBAAsB,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;wBACzF,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;AAClF,qBAAA;AACD,oBAAA,OAAO,EAAE,CAAC,GAAG,yBAAyB,EAAE,CAAC;AAC1C,iBAAA;AACD,gBAAA,IAAI,EAAE;AACJ,oBAAA,OAAO,EAAE,CAAC,GAAG,uBAAuB,EAAE,CAAC;AACvC,oBAAA,KAAK,EAAE;AACL,wBAAA,kBAAkB,CAAC;4BACjB,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,cAAc,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;yBAC9C,CAAC;AACH,qBAAA;AACF,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AAED,IAAA,OAAO,SAAS;AAClB;;;;"}
|
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
import { AXPWidgetsCatalog, AXPSystemActionType } from '@acorex-platform/framework-shared/core';
|
|
2
|
+
import { createAllQueryView, entityMasterCrudActions, entityMasterRecordActions, AXPEntityCommandScope, entityDetailsCrudActions } from '@acorex-platform/framework-shared/entity';
|
|
3
|
+
import { R as RootConfig } from './acorex-platform-module-maintenance-management-client-contracts-entity-catalog-acorex-platform-module-maintenance-management-client-contracts-entity-catalog-DJkKh0Qa.mjs';
|
|
4
|
+
|
|
5
|
+
async function factoryActivityType() {
|
|
6
|
+
const entityRef = `${RootConfig.module.name}.${RootConfig.entities.activityType.name}`;
|
|
7
|
+
const entityDef = {
|
|
8
|
+
module: RootConfig.module.name,
|
|
9
|
+
name: RootConfig.entities.activityType.name,
|
|
10
|
+
title: RootConfig.entities.activityType.title,
|
|
11
|
+
icon: RootConfig.entities.activityType.icon,
|
|
12
|
+
formats: {
|
|
13
|
+
individual: RootConfig.entities.activityType.title,
|
|
14
|
+
plural: RootConfig.entities.activityType.titlePlural,
|
|
15
|
+
searchResult: {
|
|
16
|
+
title: '{{ title }}',
|
|
17
|
+
description: '{{ activityType.title }}',
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
plugins: [{ name: 'history' }, { name: 'category', options: { appearance: { icon: true, color: true } } }],
|
|
21
|
+
relatedEntities: [
|
|
22
|
+
{
|
|
23
|
+
entity: `${RootConfig.module.name}.${RootConfig.entities.activityTypeResource.name}`,
|
|
24
|
+
title: '@maintenance-management:activity-types.entities.activity-type.related-entities.resources.title',
|
|
25
|
+
columns: ['resourceType', 'resourceSummary', 'count', 'initialEstimatedTime'],
|
|
26
|
+
conditions: [{ name: 'activityTypeId', operator: { type: 'equal' }, value: '{{ context.eval("id") }}' }],
|
|
27
|
+
actions: [
|
|
28
|
+
{
|
|
29
|
+
title: '@general:actions.create.title',
|
|
30
|
+
command: {
|
|
31
|
+
name: 'Entity:Create',
|
|
32
|
+
options: {
|
|
33
|
+
process: {
|
|
34
|
+
redirect: false,
|
|
35
|
+
canCreateNewOne: true,
|
|
36
|
+
data: {
|
|
37
|
+
activityTypeId: '{{ context.eval("id") }}',
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
priority: 'primary',
|
|
43
|
+
type: AXPSystemActionType.Create,
|
|
44
|
+
scope: AXPEntityCommandScope.TypeLevel,
|
|
45
|
+
},
|
|
46
|
+
...entityDetailsCrudActions('activityTypeId', { create: false }),
|
|
47
|
+
],
|
|
48
|
+
excludeProperties: ['activityTypeId'],
|
|
49
|
+
layout: {
|
|
50
|
+
type: 'page-list',
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
],
|
|
54
|
+
groups: [
|
|
55
|
+
{ id: 'basic-info', title: '@maintenance-management:activity-types.entities.activity-type.groups.basic-info' },
|
|
56
|
+
{ id: 'scheduling', title: '@maintenance-management:activity-types.entities.activity-type.groups.scheduling' },
|
|
57
|
+
{
|
|
58
|
+
id: 'execution-planning',
|
|
59
|
+
title: '@maintenance-management:activity-types.entities.activity-type.groups.execution-planning',
|
|
60
|
+
},
|
|
61
|
+
],
|
|
62
|
+
properties: [
|
|
63
|
+
{
|
|
64
|
+
name: 'id',
|
|
65
|
+
title: 'ID',
|
|
66
|
+
schema: { dataType: 'uuid', visible: false, nullable: false, readonly: true, unique: { enabled: true } },
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
name: 'code',
|
|
70
|
+
title: '@maintenance-management:activity-types.entities.activity-type.fields.code.title',
|
|
71
|
+
groupId: 'basic-info',
|
|
72
|
+
options: {
|
|
73
|
+
sort: { enabled: true },
|
|
74
|
+
filter: {
|
|
75
|
+
advance: { enabled: true },
|
|
76
|
+
inline: { enabled: true },
|
|
77
|
+
},
|
|
78
|
+
},
|
|
79
|
+
schema: {
|
|
80
|
+
dataType: 'string',
|
|
81
|
+
interface: {
|
|
82
|
+
type: AXPWidgetsCatalog.text,
|
|
83
|
+
options: {
|
|
84
|
+
placeholder: '@maintenance-management:activity-types.entities.activity-type.fields.code.placeholder',
|
|
85
|
+
},
|
|
86
|
+
},
|
|
87
|
+
},
|
|
88
|
+
validations: [{ rule: 'required' }],
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
name: 'title',
|
|
92
|
+
title: '@maintenance-management:activity-types.entities.activity-type.fields.title.title',
|
|
93
|
+
groupId: 'basic-info',
|
|
94
|
+
options: {
|
|
95
|
+
sort: { enabled: true },
|
|
96
|
+
filter: {
|
|
97
|
+
advance: { enabled: true },
|
|
98
|
+
inline: { enabled: true },
|
|
99
|
+
},
|
|
100
|
+
},
|
|
101
|
+
schema: {
|
|
102
|
+
dataType: 'string',
|
|
103
|
+
interface: {
|
|
104
|
+
type: AXPWidgetsCatalog.text,
|
|
105
|
+
options: {
|
|
106
|
+
placeholder: '@maintenance-management:activity-types.entities.activity-type.fields.title.placeholder',
|
|
107
|
+
},
|
|
108
|
+
},
|
|
109
|
+
},
|
|
110
|
+
validations: [{ rule: 'required' }],
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
name: 'description',
|
|
114
|
+
title: '@general:terms.common.description',
|
|
115
|
+
groupId: 'basic-info',
|
|
116
|
+
options: {
|
|
117
|
+
sort: { enabled: false },
|
|
118
|
+
filter: {
|
|
119
|
+
advance: { enabled: false },
|
|
120
|
+
inline: { enabled: false },
|
|
121
|
+
},
|
|
122
|
+
},
|
|
123
|
+
schema: {
|
|
124
|
+
dataType: 'string',
|
|
125
|
+
interface: {
|
|
126
|
+
type: AXPWidgetsCatalog.largeText,
|
|
127
|
+
options: {
|
|
128
|
+
placeholder: '@maintenance-management:activity-types.entities.activity-type.fields.description.placeholder',
|
|
129
|
+
},
|
|
130
|
+
},
|
|
131
|
+
},
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
name: 'scheduleId',
|
|
135
|
+
title: '@maintenance-management:activity-types.entities.activity-type.fields.schedule-id.title',
|
|
136
|
+
groupId: 'scheduling',
|
|
137
|
+
options: {
|
|
138
|
+
sort: { enabled: true },
|
|
139
|
+
filter: {
|
|
140
|
+
advance: { enabled: true },
|
|
141
|
+
inline: { enabled: true },
|
|
142
|
+
},
|
|
143
|
+
},
|
|
144
|
+
schema: {
|
|
145
|
+
dataType: 'object',
|
|
146
|
+
// defaultValue: {
|
|
147
|
+
// mode: 'daily',
|
|
148
|
+
// interval: 1,
|
|
149
|
+
// startCondition: {
|
|
150
|
+
// type: 'byDate',
|
|
151
|
+
// startDate: new Date(),
|
|
152
|
+
// },
|
|
153
|
+
// endCondition: { type: 'never' },
|
|
154
|
+
// },
|
|
155
|
+
interface: {
|
|
156
|
+
type: AXPWidgetsCatalog.schedulerPicker,
|
|
157
|
+
options: {
|
|
158
|
+
placeholder: '@maintenance-management:activity-types.entities.activity-type.fields.schadule-id.placeholder',
|
|
159
|
+
},
|
|
160
|
+
},
|
|
161
|
+
},
|
|
162
|
+
validations: [{ rule: 'required' }],
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
name: 'initialEstimatedTime',
|
|
166
|
+
title: '@maintenance-management:activity-types.entities.activity-type.fields.initial-estimated-time.title',
|
|
167
|
+
groupId: 'execution-planning',
|
|
168
|
+
options: {
|
|
169
|
+
sort: { enabled: true },
|
|
170
|
+
filter: {
|
|
171
|
+
advance: { enabled: true },
|
|
172
|
+
inline: { enabled: false },
|
|
173
|
+
},
|
|
174
|
+
},
|
|
175
|
+
schema: {
|
|
176
|
+
dataType: 'number',
|
|
177
|
+
interface: {
|
|
178
|
+
type: AXPWidgetsCatalog.number,
|
|
179
|
+
options: {
|
|
180
|
+
min: 0,
|
|
181
|
+
placeholder: '@maintenance-management:activity-types.entities.activity-type.fields.initial-estimated-time.placeholder',
|
|
182
|
+
},
|
|
183
|
+
},
|
|
184
|
+
},
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
name: 'shutDownFlag',
|
|
188
|
+
title: '@maintenance-management:activity-types.entities.activity-type.fields.shut-down-flag.title',
|
|
189
|
+
groupId: 'execution-planning',
|
|
190
|
+
options: {
|
|
191
|
+
sort: { enabled: true },
|
|
192
|
+
filter: {
|
|
193
|
+
advance: { enabled: true },
|
|
194
|
+
inline: { enabled: true },
|
|
195
|
+
},
|
|
196
|
+
},
|
|
197
|
+
schema: {
|
|
198
|
+
dataType: 'boolean',
|
|
199
|
+
defaultValue: false,
|
|
200
|
+
interface: {
|
|
201
|
+
type: AXPWidgetsCatalog.toggle,
|
|
202
|
+
options: {},
|
|
203
|
+
},
|
|
204
|
+
},
|
|
205
|
+
},
|
|
206
|
+
],
|
|
207
|
+
columns: [
|
|
208
|
+
{ name: 'code' },
|
|
209
|
+
{ name: 'title' },
|
|
210
|
+
{ name: 'description' },
|
|
211
|
+
{ name: 'scheduleId' },
|
|
212
|
+
{ name: 'initialEstimatedTime' },
|
|
213
|
+
{ name: 'shutDownFlag' },
|
|
214
|
+
],
|
|
215
|
+
interfaces: {
|
|
216
|
+
master: {
|
|
217
|
+
create: {
|
|
218
|
+
sections: [{ id: 'basic-info' }, { id: 'scheduling' }, { id: 'execution-planning' }],
|
|
219
|
+
properties: [
|
|
220
|
+
{ name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
|
|
221
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
|
|
222
|
+
{ name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
|
|
223
|
+
{ name: 'scheduleId', layout: { positions: { lg: { colSpan: 6, order: 4 } }, label: { visible: false } } },
|
|
224
|
+
{ name: 'initialEstimatedTime', layout: { positions: { lg: { colSpan: 6, order: 5 } } } },
|
|
225
|
+
{ name: 'shutDownFlag', layout: { positions: { lg: { colSpan: 6, order: 7 } } } },
|
|
226
|
+
],
|
|
227
|
+
},
|
|
228
|
+
update: {
|
|
229
|
+
sections: [{ id: 'basic-info' }, { id: 'scheduling' }, { id: 'execution-planning' }],
|
|
230
|
+
properties: [
|
|
231
|
+
{ name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
|
|
232
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
|
|
233
|
+
{ name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
|
|
234
|
+
{ name: 'scheduleId', layout: { positions: { lg: { colSpan: 6, order: 4 } }, label: { visible: false } } },
|
|
235
|
+
{ name: 'initialEstimatedTime', layout: { positions: { lg: { colSpan: 6, order: 5 } } } },
|
|
236
|
+
{ name: 'shutDownFlag', layout: { positions: { lg: { colSpan: 6, order: 7 } } } },
|
|
237
|
+
],
|
|
238
|
+
},
|
|
239
|
+
single: {
|
|
240
|
+
title: '{{ title }}',
|
|
241
|
+
sections: [{ id: 'basic-info' }, { id: 'scheduling' }, { id: 'execution-planning' }],
|
|
242
|
+
properties: [
|
|
243
|
+
{ name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
|
|
244
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
|
|
245
|
+
{ name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
|
|
246
|
+
{ name: 'scheduleId', layout: { positions: { lg: { colSpan: 6, order: 4 } }, label: { visible: false } } },
|
|
247
|
+
{ name: 'initialEstimatedTime', layout: { positions: { lg: { colSpan: 6, order: 5 } } } },
|
|
248
|
+
{ name: 'shutDownFlag', layout: { positions: { lg: { colSpan: 6, order: 7 } } } },
|
|
249
|
+
],
|
|
250
|
+
actions: [...entityMasterRecordActions()],
|
|
251
|
+
},
|
|
252
|
+
list: {
|
|
253
|
+
actions: [...entityMasterCrudActions()],
|
|
254
|
+
views: [
|
|
255
|
+
createAllQueryView({
|
|
256
|
+
sorts: [{ name: 'title', dir: 'asc' }],
|
|
257
|
+
}),
|
|
258
|
+
],
|
|
259
|
+
},
|
|
260
|
+
},
|
|
261
|
+
},
|
|
262
|
+
};
|
|
263
|
+
return entityDef;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
export { factoryActivityType };
|
|
267
|
+
//# sourceMappingURL=acorex-platform-module-maintenance-management-client-contracts-entity-catalog-activity-type.entity-D9UUDRIS.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-maintenance-management-client-contracts-entity-catalog-activity-type.entity-D9UUDRIS.mjs","sources":["../../../../libs/modules/maintenance-management/contracts/src/entities/activity-type/activity-type.entity.ts"],"sourcesContent":["import { AXPSystemActionType, AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, AXPEntityCommandScope, createAllQueryView, entityDetailsCrudActions, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';\nimport { RootConfig } from '../../root-config';\n\nexport async function factoryActivityType(): Promise<AXPEntity | null> {\n const entityRef = `${RootConfig.module.name}.${RootConfig.entities.activityType.name}`;\n\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.activityType.name,\n title: RootConfig.entities.activityType.title,\n icon: RootConfig.entities.activityType.icon,\n formats: {\n individual: RootConfig.entities.activityType.title,\n plural: RootConfig.entities.activityType.titlePlural,\n searchResult: {\n title: '{{ title }}',\n description: '{{ activityType.title }}',\n },\n },\n plugins: [{ name: 'history' }, { name: 'category', options: { appearance: { icon: true, color: true } } }],\n relatedEntities: [\n {\n entity: `${RootConfig.module.name}.${RootConfig.entities.activityTypeResource.name}`,\n title: '@maintenance-management:activity-types.entities.activity-type.related-entities.resources.title',\n columns: ['resourceType', 'resourceSummary', 'count', 'initialEstimatedTime'],\n conditions: [{ name: 'activityTypeId', operator: { type: 'equal' }, value: '{{ context.eval(\"id\") }}' }],\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 activityTypeId: '{{ context.eval(\"id\") }}',\n },\n },\n },\n },\n priority: 'primary',\n type: AXPSystemActionType.Create,\n scope: AXPEntityCommandScope.TypeLevel,\n },\n ...entityDetailsCrudActions('activityTypeId', { create: false }),\n ],\n excludeProperties: ['activityTypeId'],\n layout: {\n type: 'page-list',\n },\n },\n ],\n groups: [\n { id: 'basic-info', title: '@maintenance-management:activity-types.entities.activity-type.groups.basic-info' },\n { id: 'scheduling', title: '@maintenance-management:activity-types.entities.activity-type.groups.scheduling' },\n {\n id: 'execution-planning',\n title: '@maintenance-management:activity-types.entities.activity-type.groups.execution-planning',\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: 'code',\n title: '@maintenance-management:activity-types.entities.activity-type.fields.code.title',\n groupId: 'basic-info',\n options: {\n sort: { enabled: true },\n filter: {\n advance: { enabled: true },\n inline: { enabled: true },\n },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsCatalog.text,\n options: {\n placeholder: '@maintenance-management:activity-types.entities.activity-type.fields.code.placeholder',\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'title',\n title: '@maintenance-management:activity-types.entities.activity-type.fields.title.title',\n groupId: 'basic-info',\n options: {\n sort: { enabled: true },\n filter: {\n advance: { enabled: true },\n inline: { enabled: true },\n },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsCatalog.text,\n options: {\n placeholder: '@maintenance-management:activity-types.entities.activity-type.fields.title.placeholder',\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'description',\n title: '@general:terms.common.description',\n groupId: 'basic-info',\n options: {\n sort: { enabled: false },\n filter: {\n advance: { enabled: false },\n inline: { enabled: false },\n },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsCatalog.largeText,\n options: {\n placeholder:\n '@maintenance-management:activity-types.entities.activity-type.fields.description.placeholder',\n },\n },\n },\n },\n {\n name: 'scheduleId',\n title: '@maintenance-management:activity-types.entities.activity-type.fields.schedule-id.title',\n groupId: 'scheduling',\n options: {\n sort: { enabled: true },\n filter: {\n advance: { enabled: true },\n inline: { enabled: true },\n },\n },\n schema: {\n dataType: 'object',\n // defaultValue: {\n // mode: 'daily',\n // interval: 1,\n // startCondition: {\n // type: 'byDate',\n // startDate: new Date(),\n // },\n // endCondition: { type: 'never' },\n // },\n interface: {\n type: AXPWidgetsCatalog.schedulerPicker,\n options: {\n placeholder:\n '@maintenance-management:activity-types.entities.activity-type.fields.schadule-id.placeholder',\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'initialEstimatedTime',\n title: '@maintenance-management:activity-types.entities.activity-type.fields.initial-estimated-time.title',\n groupId: 'execution-planning',\n options: {\n sort: { enabled: true },\n filter: {\n advance: { enabled: true },\n inline: { enabled: false },\n },\n },\n schema: {\n dataType: 'number',\n interface: {\n type: AXPWidgetsCatalog.number,\n options: {\n min: 0,\n placeholder:\n '@maintenance-management:activity-types.entities.activity-type.fields.initial-estimated-time.placeholder',\n },\n },\n },\n },\n {\n name: 'shutDownFlag',\n title: '@maintenance-management:activity-types.entities.activity-type.fields.shut-down-flag.title',\n groupId: 'execution-planning',\n options: {\n sort: { enabled: true },\n filter: {\n advance: { enabled: true },\n inline: { enabled: true },\n },\n },\n schema: {\n dataType: 'boolean',\n defaultValue: false,\n interface: {\n type: AXPWidgetsCatalog.toggle,\n options: {},\n },\n },\n },\n ],\n columns: [\n { name: 'code' },\n { name: 'title' },\n { name: 'description' },\n { name: 'scheduleId' },\n { name: 'initialEstimatedTime' },\n { name: 'shutDownFlag' },\n ],\n interfaces: {\n master: {\n create: {\n sections: [{ id: 'basic-info' }, { id: 'scheduling' }, { id: 'execution-planning' }],\n properties: [\n { name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },\n { name: 'scheduleId', layout: { positions: { lg: { colSpan: 6, order: 4 } }, label: { visible: false } } },\n { name: 'initialEstimatedTime', layout: { positions: { lg: { colSpan: 6, order: 5 } } } },\n { name: 'shutDownFlag', layout: { positions: { lg: { colSpan: 6, order: 7 } } } },\n ],\n },\n update: {\n sections: [{ id: 'basic-info' }, { id: 'scheduling' }, { id: 'execution-planning' }],\n properties: [\n { name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },\n { name: 'scheduleId', layout: { positions: { lg: { colSpan: 6, order: 4 } }, label: { visible: false } } },\n { name: 'initialEstimatedTime', layout: { positions: { lg: { colSpan: 6, order: 5 } } } },\n { name: 'shutDownFlag', layout: { positions: { lg: { colSpan: 6, order: 7 } } } },\n ],\n },\n single: {\n title: '{{ title }}',\n sections: [{ id: 'basic-info' }, { id: 'scheduling' }, { id: 'execution-planning' }],\n properties: [\n { name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },\n { name: 'scheduleId', layout: { positions: { lg: { colSpan: 6, order: 4 } }, label: { visible: false } } },\n { name: 'initialEstimatedTime', layout: { positions: { lg: { colSpan: 6, order: 5 } } } },\n { name: 'shutDownFlag', layout: { positions: { lg: { colSpan: 6, order: 7 } } } },\n ],\n actions: [...entityMasterRecordActions()],\n },\n list: {\n actions: [...entityMasterCrudActions()],\n views: [\n createAllQueryView({\n sorts: [{ name: 'title', dir: 'asc' }],\n }),\n ],\n },\n },\n },\n };\n\n return entityDef;\n}\n"],"names":[],"mappings":";;;;AAIO,eAAe,mBAAmB,GAAA;AACvC,IAAA,MAAM,SAAS,GAAG,CAAA,EAAG,UAAU,CAAC,MAAM,CAAC,IAAI,CAAA,CAAA,EAAI,UAAU,CAAC,QAAQ,CAAC,YAAY,CAAC,IAAI,EAAE;AAEtF,IAAA,MAAM,SAAS,GAAc;AAC3B,QAAA,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAC9B,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,YAAY,CAAC,IAAI;AAC3C,QAAA,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC,YAAY,CAAC,KAAK;AAC7C,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ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