@acorex/modules 21.0.0-next.10 → 21.0.0-next.11
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/asset-management/index.d.ts +53 -62
- package/document-management/index.d.ts +24 -134
- package/fesm2022/{acorex-modules-asset-management-asset.entity-B9ckElN7.mjs → acorex-modules-asset-management-asset.entity-C57iN3Bo.mjs} +22 -22
- package/fesm2022/acorex-modules-asset-management-asset.entity-C57iN3Bo.mjs.map +1 -0
- package/fesm2022/{acorex-modules-asset-management-inspection.entity-CkNt44Ee.mjs → acorex-modules-asset-management-inspection.entity-CpDuN-qj.mjs} +3 -13
- package/fesm2022/acorex-modules-asset-management-inspection.entity-CpDuN-qj.mjs.map +1 -0
- package/fesm2022/{acorex-modules-asset-management-maintenance-type.entity-V9ErcTNL.mjs → acorex-modules-asset-management-maintenance-type.entity-T3iF8l5n.mjs} +3 -13
- package/fesm2022/acorex-modules-asset-management-maintenance-type.entity-T3iF8l5n.mjs.map +1 -0
- package/fesm2022/{acorex-modules-asset-management-maintenance.entity-Ctt12a9H.mjs → acorex-modules-asset-management-maintenance.entity-Cxzcn0Ae.mjs} +3 -13
- package/fesm2022/acorex-modules-asset-management-maintenance.entity-Cxzcn0Ae.mjs.map +1 -0
- package/fesm2022/acorex-modules-asset-management.mjs +620 -1
- package/fesm2022/acorex-modules-asset-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-content-management.mjs +7 -6
- package/fesm2022/acorex-modules-content-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-document-management.mjs +483 -2002
- package/fesm2022/acorex-modules-document-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-human-capital-management.mjs +4 -0
- package/fesm2022/acorex-modules-human-capital-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-meeting-management.mjs +489 -212
- package/fesm2022/acorex-modules-meeting-management.mjs.map +1 -1
- package/fesm2022/{acorex-modules-order-management-bulk-buy-order-item.entity-CS8G9l7a.mjs → acorex-modules-order-management-bulk-buy-order-item.entity-Cqsc1tku.mjs} +39 -29
- package/fesm2022/acorex-modules-order-management-bulk-buy-order-item.entity-Cqsc1tku.mjs.map +1 -0
- package/fesm2022/{acorex-modules-order-management-bulk-buy-order.entity-BAagygjM.mjs → acorex-modules-order-management-bulk-buy-order.entity-BMvkJRpA.mjs} +30 -12
- package/fesm2022/acorex-modules-order-management-bulk-buy-order.entity-BMvkJRpA.mjs.map +1 -0
- package/fesm2022/{acorex-modules-order-management-entity.provider-BXeXMpey.mjs → acorex-modules-order-management-entity.provider-CUq01hQo.mjs} +3 -3
- package/fesm2022/{acorex-modules-order-management-entity.provider-BXeXMpey.mjs.map → acorex-modules-order-management-entity.provider-CUq01hQo.mjs.map} +1 -1
- package/fesm2022/acorex-modules-order-management.mjs +2 -2
- package/fesm2022/{acorex-modules-person-management-person.entity-T3pPeC5H.mjs → acorex-modules-person-management-person.entity-BtaGNj8n.mjs} +12 -56
- package/fesm2022/acorex-modules-person-management-person.entity-BtaGNj8n.mjs.map +1 -0
- package/fesm2022/acorex-modules-person-management.mjs +1 -1
- package/fesm2022/acorex-modules-report-management.mjs.map +1 -1
- package/fesm2022/{acorex-modules-reservation-management-acorex-modules-reservation-management-DgIxX2nQ.mjs → acorex-modules-reservation-management-acorex-modules-reservation-management-C7jb3vLV.mjs} +5 -2
- package/fesm2022/acorex-modules-reservation-management-acorex-modules-reservation-management-C7jb3vLV.mjs.map +1 -0
- package/fesm2022/{acorex-modules-reservation-management-event-type.entity-Ddr2JufJ.mjs → acorex-modules-reservation-management-event-type.entity-Dj6e-Iay.mjs} +2 -2
- package/fesm2022/{acorex-modules-reservation-management-event-type.entity-Ddr2JufJ.mjs.map → acorex-modules-reservation-management-event-type.entity-Dj6e-Iay.mjs.map} +1 -1
- package/fesm2022/acorex-modules-reservation-management.mjs +1 -1
- package/fesm2022/acorex-modules-task-management.mjs +39 -16
- package/fesm2022/acorex-modules-task-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-workflow-management.mjs +0 -2
- package/fesm2022/acorex-modules-workflow-management.mjs.map +1 -1
- package/meeting-management/index.d.ts +29 -6
- package/package.json +2 -2
- package/report-management/index.d.ts +2 -2
- package/fesm2022/acorex-modules-asset-management-acorex-modules-asset-management-CZchW21Z.mjs +0 -752
- package/fesm2022/acorex-modules-asset-management-acorex-modules-asset-management-CZchW21Z.mjs.map +0 -1
- package/fesm2022/acorex-modules-asset-management-asset.entity-B9ckElN7.mjs.map +0 -1
- package/fesm2022/acorex-modules-asset-management-inspection.entity-CkNt44Ee.mjs.map +0 -1
- package/fesm2022/acorex-modules-asset-management-maintenance-type.entity-V9ErcTNL.mjs.map +0 -1
- package/fesm2022/acorex-modules-asset-management-maintenance.entity-Ctt12a9H.mjs.map +0 -1
- package/fesm2022/acorex-modules-document-management-document-signature-popup.component-Stt6Gx2C.mjs +0 -145
- package/fesm2022/acorex-modules-document-management-document-signature-popup.component-Stt6Gx2C.mjs.map +0 -1
- package/fesm2022/acorex-modules-order-management-bulk-buy-order-item.entity-CS8G9l7a.mjs.map +0 -1
- package/fesm2022/acorex-modules-order-management-bulk-buy-order.entity-BAagygjM.mjs.map +0 -1
- package/fesm2022/acorex-modules-person-management-person.entity-T3pPeC5H.mjs.map +0 -1
- package/fesm2022/acorex-modules-reservation-management-acorex-modules-reservation-management-DgIxX2nQ.mjs.map +0 -1
package/fesm2022/acorex-modules-asset-management-acorex-modules-asset-management-CZchW21Z.mjs
DELETED
|
@@ -1,752 +0,0 @@
|
|
|
1
|
-
import { AXP_PERMISSION_DEFINITION_PROVIDER } from '@acorex/platform/auth';
|
|
2
|
-
import { AXP_MENU_PROVIDER, AXP_SEARCH_PROVIDER, AXP_STATUS_PROVIDERS, AXPSearchCommandProvider, AXPStatusProvider } from '@acorex/platform/common';
|
|
3
|
-
import { AXP_MODULE_MANIFEST_PROVIDER, provideLazyProvider } from '@acorex/platform/core';
|
|
4
|
-
import { AXMEntityCrudServiceImpl, AXP_ENTITY_DEFINITION_LOADER, AXPEntityService } from '@acorex/platform/layout/entity';
|
|
5
|
-
import * as i0 from '@angular/core';
|
|
6
|
-
import { Injectable, NgModule, inject, Injector } from '@angular/core';
|
|
7
|
-
import { AXTranslationService } from '@acorex/core/translation';
|
|
8
|
-
|
|
9
|
-
//#region ---- Root Configuration ----
|
|
10
|
-
const config = {
|
|
11
|
-
i18n: 'asset-management',
|
|
12
|
-
module: 'AssetManagement',
|
|
13
|
-
route: 'asset-management',
|
|
14
|
-
};
|
|
15
|
-
const RootConfig = {
|
|
16
|
-
config,
|
|
17
|
-
module: {
|
|
18
|
-
route: config.route,
|
|
19
|
-
name: config.module,
|
|
20
|
-
title: '@asset-management:module.title',
|
|
21
|
-
icon: 'fa-light fa-box',
|
|
22
|
-
},
|
|
23
|
-
entities: {
|
|
24
|
-
asset: {
|
|
25
|
-
name: 'Asset',
|
|
26
|
-
source: `${config.module}.Asset`,
|
|
27
|
-
title: '@asset-management:assets.entities.asset.title',
|
|
28
|
-
titlePlural: '@asset-management:assets.entities.asset.plural',
|
|
29
|
-
icon: 'fa-light fa-boxes-stacked',
|
|
30
|
-
},
|
|
31
|
-
maintenance: {
|
|
32
|
-
name: 'Maintenance',
|
|
33
|
-
source: `${config.module}.Maintenance`,
|
|
34
|
-
title: '@asset-management:maintenances.entities.maintenance.title',
|
|
35
|
-
titlePlural: '@asset-management:maintenances.entities.maintenance.plural',
|
|
36
|
-
icon: 'fa-light fa-clipboard-list',
|
|
37
|
-
},
|
|
38
|
-
maintenanceType: {
|
|
39
|
-
name: 'MaintenanceType',
|
|
40
|
-
source: `${config.module}.MaintenanceType`,
|
|
41
|
-
title: '@asset-management:maintenance-types.entities.maintenance-type.title',
|
|
42
|
-
titlePlural: '@asset-management:maintenance-types.entities.maintenance-type.plural',
|
|
43
|
-
icon: 'fa-light fa-tags',
|
|
44
|
-
},
|
|
45
|
-
inspection: {
|
|
46
|
-
name: 'Inspection',
|
|
47
|
-
source: `${config.module}.Inspection`,
|
|
48
|
-
title: '@asset-management:inspections.entities.inspection.title',
|
|
49
|
-
titlePlural: '@asset-management:inspections.entities.inspection.plural',
|
|
50
|
-
icon: 'fa-light fa-clipboard-check',
|
|
51
|
-
},
|
|
52
|
-
// assetStatus: {
|
|
53
|
-
// name: 'AssetStatus',
|
|
54
|
-
// source: `${config.module}.AssetStatus`,
|
|
55
|
-
// title: '@asset-management:asset-statuses.entities.asset-status.title',
|
|
56
|
-
// titlePlural: '@asset-management:asset-statuses.entities.asset-status.plural',
|
|
57
|
-
// icon: 'fa-light fa-signal',
|
|
58
|
-
// },
|
|
59
|
-
},
|
|
60
|
-
};
|
|
61
|
-
//#endregion
|
|
62
|
-
|
|
63
|
-
//#region ---- Imports ----
|
|
64
|
-
//#endregion
|
|
65
|
-
//#region ---- Manifest Definition ----
|
|
66
|
-
/**
|
|
67
|
-
* Asset Management Module Manifest.
|
|
68
|
-
* Defines module metadata, features, and provider references.
|
|
69
|
-
*/
|
|
70
|
-
const AssetManagementManifest = {
|
|
71
|
-
name: RootConfig.module.name,
|
|
72
|
-
version: '1.0.0',
|
|
73
|
-
title: RootConfig.module.title,
|
|
74
|
-
icon: RootConfig.module.icon,
|
|
75
|
-
i18n: RootConfig.config.i18n,
|
|
76
|
-
required: false,
|
|
77
|
-
// Module dependencies (optional)
|
|
78
|
-
};
|
|
79
|
-
//#endregion
|
|
80
|
-
|
|
81
|
-
//#region ---- Imports ----
|
|
82
|
-
//#endregion
|
|
83
|
-
//#region ---- Service ----
|
|
84
|
-
class AXMAssetManagementAssetEntityService extends AXMEntityCrudServiceImpl {
|
|
85
|
-
}
|
|
86
|
-
class AXMAssetManagementAssetEntityServiceImpl extends AXMAssetManagementAssetEntityService {
|
|
87
|
-
constructor() {
|
|
88
|
-
super(`${RootConfig.module.name}.${RootConfig.entities.asset.name}`);
|
|
89
|
-
}
|
|
90
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXMAssetManagementAssetEntityServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
91
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXMAssetManagementAssetEntityServiceImpl }); }
|
|
92
|
-
}
|
|
93
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXMAssetManagementAssetEntityServiceImpl, decorators: [{
|
|
94
|
-
type: Injectable
|
|
95
|
-
}], ctorParameters: () => [] });
|
|
96
|
-
|
|
97
|
-
class AXMAssetManagementAssetEntityModule {
|
|
98
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXMAssetManagementAssetEntityModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
99
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.15", ngImport: i0, type: AXMAssetManagementAssetEntityModule }); }
|
|
100
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXMAssetManagementAssetEntityModule, providers: [
|
|
101
|
-
{
|
|
102
|
-
provide: AXMAssetManagementAssetEntityService,
|
|
103
|
-
useClass: AXMAssetManagementAssetEntityServiceImpl,
|
|
104
|
-
},
|
|
105
|
-
] }); }
|
|
106
|
-
}
|
|
107
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXMAssetManagementAssetEntityModule, decorators: [{
|
|
108
|
-
type: NgModule,
|
|
109
|
-
args: [{
|
|
110
|
-
providers: [
|
|
111
|
-
{
|
|
112
|
-
provide: AXMAssetManagementAssetEntityService,
|
|
113
|
-
useClass: AXMAssetManagementAssetEntityServiceImpl,
|
|
114
|
-
},
|
|
115
|
-
],
|
|
116
|
-
}]
|
|
117
|
-
}] });
|
|
118
|
-
|
|
119
|
-
//#region ---- Imports ----
|
|
120
|
-
//#endregion
|
|
121
|
-
//#region ---- Service ----
|
|
122
|
-
class AXMAssetManagementInspectionEntityService extends AXMEntityCrudServiceImpl {
|
|
123
|
-
}
|
|
124
|
-
class AXMAssetManagementInspectionEntityServiceImpl extends AXMAssetManagementInspectionEntityService {
|
|
125
|
-
constructor() {
|
|
126
|
-
super(`${RootConfig.module.name}.${RootConfig.entities.inspection.name}`);
|
|
127
|
-
}
|
|
128
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXMAssetManagementInspectionEntityServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
129
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXMAssetManagementInspectionEntityServiceImpl }); }
|
|
130
|
-
}
|
|
131
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXMAssetManagementInspectionEntityServiceImpl, decorators: [{
|
|
132
|
-
type: Injectable
|
|
133
|
-
}], ctorParameters: () => [] });
|
|
134
|
-
|
|
135
|
-
//#region ---- Imports ----
|
|
136
|
-
//#endregion
|
|
137
|
-
//#region ---- Module ----
|
|
138
|
-
class AXMAssetManagementInspectionEntityModule {
|
|
139
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXMAssetManagementInspectionEntityModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
140
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.15", ngImport: i0, type: AXMAssetManagementInspectionEntityModule }); }
|
|
141
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXMAssetManagementInspectionEntityModule, providers: [
|
|
142
|
-
{
|
|
143
|
-
provide: AXMAssetManagementInspectionEntityService,
|
|
144
|
-
useClass: AXMAssetManagementInspectionEntityServiceImpl,
|
|
145
|
-
},
|
|
146
|
-
] }); }
|
|
147
|
-
}
|
|
148
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXMAssetManagementInspectionEntityModule, decorators: [{
|
|
149
|
-
type: NgModule,
|
|
150
|
-
args: [{
|
|
151
|
-
providers: [
|
|
152
|
-
{
|
|
153
|
-
provide: AXMAssetManagementInspectionEntityService,
|
|
154
|
-
useClass: AXMAssetManagementInspectionEntityServiceImpl,
|
|
155
|
-
},
|
|
156
|
-
],
|
|
157
|
-
}]
|
|
158
|
-
}] });
|
|
159
|
-
|
|
160
|
-
//#region ---- Imports ----
|
|
161
|
-
//#endregion
|
|
162
|
-
//#region ---- Service ----
|
|
163
|
-
class AXMAssetManagementMaintenanceEntityService extends AXMEntityCrudServiceImpl {
|
|
164
|
-
}
|
|
165
|
-
class AXMAssetManagementMaintenanceEntityServiceImpl extends AXMAssetManagementMaintenanceEntityService {
|
|
166
|
-
constructor() {
|
|
167
|
-
super(`${RootConfig.module.name}.${RootConfig.entities.maintenance.name}`);
|
|
168
|
-
}
|
|
169
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXMAssetManagementMaintenanceEntityServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
170
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXMAssetManagementMaintenanceEntityServiceImpl }); }
|
|
171
|
-
}
|
|
172
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXMAssetManagementMaintenanceEntityServiceImpl, decorators: [{
|
|
173
|
-
type: Injectable
|
|
174
|
-
}], ctorParameters: () => [] });
|
|
175
|
-
|
|
176
|
-
//#region ---- Imports ----
|
|
177
|
-
//#endregion
|
|
178
|
-
//#region ---- Module ----
|
|
179
|
-
class AXMAssetManagementMaintenanceEntityModule {
|
|
180
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXMAssetManagementMaintenanceEntityModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
181
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.15", ngImport: i0, type: AXMAssetManagementMaintenanceEntityModule }); }
|
|
182
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXMAssetManagementMaintenanceEntityModule, providers: [
|
|
183
|
-
{
|
|
184
|
-
provide: AXMAssetManagementMaintenanceEntityService,
|
|
185
|
-
useClass: AXMAssetManagementMaintenanceEntityServiceImpl,
|
|
186
|
-
},
|
|
187
|
-
] }); }
|
|
188
|
-
}
|
|
189
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXMAssetManagementMaintenanceEntityModule, decorators: [{
|
|
190
|
-
type: NgModule,
|
|
191
|
-
args: [{
|
|
192
|
-
providers: [
|
|
193
|
-
{
|
|
194
|
-
provide: AXMAssetManagementMaintenanceEntityService,
|
|
195
|
-
useClass: AXMAssetManagementMaintenanceEntityServiceImpl,
|
|
196
|
-
},
|
|
197
|
-
],
|
|
198
|
-
}]
|
|
199
|
-
}] });
|
|
200
|
-
|
|
201
|
-
//#region ---- Imports ----
|
|
202
|
-
//#endregion
|
|
203
|
-
//#region ---- Service ----
|
|
204
|
-
class AXMAssetManagementMaintenanceTypeEntityService extends AXMEntityCrudServiceImpl {
|
|
205
|
-
}
|
|
206
|
-
class AXMAssetManagementMaintenanceTypeEntityServiceImpl extends AXMAssetManagementMaintenanceTypeEntityService {
|
|
207
|
-
constructor() {
|
|
208
|
-
super(`${RootConfig.module.name}.${RootConfig.entities.maintenanceType.name}`);
|
|
209
|
-
}
|
|
210
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXMAssetManagementMaintenanceTypeEntityServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
211
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXMAssetManagementMaintenanceTypeEntityServiceImpl }); }
|
|
212
|
-
}
|
|
213
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXMAssetManagementMaintenanceTypeEntityServiceImpl, decorators: [{
|
|
214
|
-
type: Injectable
|
|
215
|
-
}], ctorParameters: () => [] });
|
|
216
|
-
|
|
217
|
-
//#region ---- Imports ----
|
|
218
|
-
//#endregion
|
|
219
|
-
//#region ---- Module ----
|
|
220
|
-
class AXMAssetManagementMaintenanceTypeEntityModule {
|
|
221
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXMAssetManagementMaintenanceTypeEntityModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
222
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.15", ngImport: i0, type: AXMAssetManagementMaintenanceTypeEntityModule }); }
|
|
223
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXMAssetManagementMaintenanceTypeEntityModule, providers: [
|
|
224
|
-
{
|
|
225
|
-
provide: AXMAssetManagementMaintenanceTypeEntityService,
|
|
226
|
-
useClass: AXMAssetManagementMaintenanceTypeEntityServiceImpl,
|
|
227
|
-
},
|
|
228
|
-
] }); }
|
|
229
|
-
}
|
|
230
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXMAssetManagementMaintenanceTypeEntityModule, decorators: [{
|
|
231
|
-
type: NgModule,
|
|
232
|
-
args: [{
|
|
233
|
-
providers: [
|
|
234
|
-
{
|
|
235
|
-
provide: AXMAssetManagementMaintenanceTypeEntityService,
|
|
236
|
-
useClass: AXMAssetManagementMaintenanceTypeEntityServiceImpl,
|
|
237
|
-
},
|
|
238
|
-
],
|
|
239
|
-
}]
|
|
240
|
-
}] });
|
|
241
|
-
|
|
242
|
-
//#region ---- Imports ----
|
|
243
|
-
//#endregion
|
|
244
|
-
//#region ---- Module ----
|
|
245
|
-
class AXMAssetManagementModule {
|
|
246
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXMAssetManagementModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
247
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.15", ngImport: i0, type: AXMAssetManagementModule, imports: [AXMAssetManagementAssetEntityModule,
|
|
248
|
-
AXMAssetManagementInspectionEntityModule,
|
|
249
|
-
AXMAssetManagementMaintenanceEntityModule,
|
|
250
|
-
AXMAssetManagementMaintenanceTypeEntityModule] }); }
|
|
251
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXMAssetManagementModule, providers: [
|
|
252
|
-
// Module Manifest Provider
|
|
253
|
-
{
|
|
254
|
-
provide: AXP_MODULE_MANIFEST_PROVIDER,
|
|
255
|
-
useValue: AssetManagementManifest,
|
|
256
|
-
multi: true,
|
|
257
|
-
},
|
|
258
|
-
// Provider references (now using tokens)
|
|
259
|
-
provideLazyProvider(AXP_PERMISSION_DEFINITION_PROVIDER, () => Promise.resolve().then(function () { return permissionDefinition_provider; }).then((m) => m.AXMAssetManagementPermissionDefinitionProvider)),
|
|
260
|
-
provideLazyProvider(AXP_MENU_PROVIDER, () => Promise.resolve().then(function () { return menu_provider; }).then((m) => m.AXMAssetManagementMenuProvider)),
|
|
261
|
-
provideLazyProvider(AXP_ENTITY_DEFINITION_LOADER, () => Promise.resolve().then(function () { return entity_provider; }).then((m) => m.AXMAssetManagementEntityProvider)),
|
|
262
|
-
provideLazyProvider(AXP_SEARCH_PROVIDER, () => Promise.resolve().then(function () { return search_provider; }).then((m) => m.AXMAssetManagementSearchCommandProvider)),
|
|
263
|
-
// Status Providers
|
|
264
|
-
provideLazyProvider(AXP_STATUS_PROVIDERS, () => Promise.resolve().then(function () { return assetStatus_provider; }).then((m) => m.AXMAssetManagementAssetStatusProvider)),
|
|
265
|
-
], imports: [AXMAssetManagementAssetEntityModule,
|
|
266
|
-
AXMAssetManagementInspectionEntityModule,
|
|
267
|
-
AXMAssetManagementMaintenanceEntityModule,
|
|
268
|
-
AXMAssetManagementMaintenanceTypeEntityModule] }); }
|
|
269
|
-
}
|
|
270
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXMAssetManagementModule, decorators: [{
|
|
271
|
-
type: NgModule,
|
|
272
|
-
args: [{
|
|
273
|
-
imports: [
|
|
274
|
-
AXMAssetManagementAssetEntityModule,
|
|
275
|
-
AXMAssetManagementInspectionEntityModule,
|
|
276
|
-
AXMAssetManagementMaintenanceEntityModule,
|
|
277
|
-
AXMAssetManagementMaintenanceTypeEntityModule,
|
|
278
|
-
],
|
|
279
|
-
providers: [
|
|
280
|
-
// Module Manifest Provider
|
|
281
|
-
{
|
|
282
|
-
provide: AXP_MODULE_MANIFEST_PROVIDER,
|
|
283
|
-
useValue: AssetManagementManifest,
|
|
284
|
-
multi: true,
|
|
285
|
-
},
|
|
286
|
-
// Provider references (now using tokens)
|
|
287
|
-
provideLazyProvider(AXP_PERMISSION_DEFINITION_PROVIDER, () => Promise.resolve().then(function () { return permissionDefinition_provider; }).then((m) => m.AXMAssetManagementPermissionDefinitionProvider)),
|
|
288
|
-
provideLazyProvider(AXP_MENU_PROVIDER, () => Promise.resolve().then(function () { return menu_provider; }).then((m) => m.AXMAssetManagementMenuProvider)),
|
|
289
|
-
provideLazyProvider(AXP_ENTITY_DEFINITION_LOADER, () => Promise.resolve().then(function () { return entity_provider; }).then((m) => m.AXMAssetManagementEntityProvider)),
|
|
290
|
-
provideLazyProvider(AXP_SEARCH_PROVIDER, () => Promise.resolve().then(function () { return search_provider; }).then((m) => m.AXMAssetManagementSearchCommandProvider)),
|
|
291
|
-
// Status Providers
|
|
292
|
-
provideLazyProvider(AXP_STATUS_PROVIDERS, () => Promise.resolve().then(function () { return assetStatus_provider; }).then((m) => m.AXMAssetManagementAssetStatusProvider)),
|
|
293
|
-
],
|
|
294
|
-
}]
|
|
295
|
-
}] });
|
|
296
|
-
|
|
297
|
-
//#region ---- Imports ----
|
|
298
|
-
//#endregion
|
|
299
|
-
//#region ---- Entity Provider ----
|
|
300
|
-
class AXMAssetManagementEntityProvider {
|
|
301
|
-
constructor() {
|
|
302
|
-
this.injector = inject(Injector);
|
|
303
|
-
}
|
|
304
|
-
async get(moduleName, entityName) {
|
|
305
|
-
if (moduleName === RootConfig.module.name) {
|
|
306
|
-
switch (entityName) {
|
|
307
|
-
case RootConfig.entities.asset.name:
|
|
308
|
-
return (await import('./acorex-modules-asset-management-asset.entity-B9ckElN7.mjs')).factory(this.injector);
|
|
309
|
-
case RootConfig.entities.maintenance.name:
|
|
310
|
-
return (await import('./acorex-modules-asset-management-maintenance.entity-Ctt12a9H.mjs')).factory(this.injector);
|
|
311
|
-
case RootConfig.entities.maintenanceType.name:
|
|
312
|
-
return (await import('./acorex-modules-asset-management-maintenance-type.entity-V9ErcTNL.mjs')).factory(this.injector);
|
|
313
|
-
case RootConfig.entities.inspection.name:
|
|
314
|
-
return (await import('./acorex-modules-asset-management-inspection.entity-CkNt44Ee.mjs')).factory(this.injector);
|
|
315
|
-
// case RootConfig.entities.assetStatus.name:
|
|
316
|
-
// return (await import('./entities/asset-status/asset-status.entity')).factory(this.injector);
|
|
317
|
-
}
|
|
318
|
-
}
|
|
319
|
-
return null;
|
|
320
|
-
}
|
|
321
|
-
}
|
|
322
|
-
//#endregion
|
|
323
|
-
|
|
324
|
-
var entity_provider = /*#__PURE__*/Object.freeze({
|
|
325
|
-
__proto__: null,
|
|
326
|
-
AXMAssetManagementEntityProvider: AXMAssetManagementEntityProvider
|
|
327
|
-
});
|
|
328
|
-
|
|
329
|
-
const AXMAssetManagementMenuKeys = {
|
|
330
|
-
Root: 'asset-management:menu',
|
|
331
|
-
Assets: 'asset-management:menu:assets',
|
|
332
|
-
// AssetStatuses: 'asset-management:menu:asset-statuses',
|
|
333
|
-
Maintenances: 'asset-management:menu:maintenances',
|
|
334
|
-
MaintenanceTypes: 'asset-management:menu:maintenance-types',
|
|
335
|
-
Inspections: 'asset-management:menu:inspections',
|
|
336
|
-
};
|
|
337
|
-
|
|
338
|
-
//#region ---- Imports ----
|
|
339
|
-
//#endregion
|
|
340
|
-
//#region ---- Menu Provider ----
|
|
341
|
-
class AXMAssetManagementMenuProvider {
|
|
342
|
-
constructor() {
|
|
343
|
-
this.entityService = inject(AXPEntityService);
|
|
344
|
-
}
|
|
345
|
-
async provide(context) {
|
|
346
|
-
const module = RootConfig.module;
|
|
347
|
-
context.addItems([
|
|
348
|
-
{
|
|
349
|
-
name: AXMAssetManagementMenuKeys.Root,
|
|
350
|
-
priority: 9050,
|
|
351
|
-
text: module.title,
|
|
352
|
-
icon: module.icon,
|
|
353
|
-
children: [
|
|
354
|
-
{
|
|
355
|
-
name: AXMAssetManagementMenuKeys.Assets,
|
|
356
|
-
text: '@asset-management:assets.menus.root.title',
|
|
357
|
-
path: this.entityService.createPath(module.name, RootConfig.entities.asset.name),
|
|
358
|
-
icon: 'fa-light fa-pallet',
|
|
359
|
-
priority: 1,
|
|
360
|
-
children: [
|
|
361
|
-
{
|
|
362
|
-
name: `${AXMAssetManagementMenuKeys.Assets}:assets`,
|
|
363
|
-
text: RootConfig.entities.asset.titlePlural,
|
|
364
|
-
icon: RootConfig.entities.asset.icon,
|
|
365
|
-
path: this.entityService.createPath(module.name, RootConfig.entities.asset.name),
|
|
366
|
-
priority: 1,
|
|
367
|
-
},
|
|
368
|
-
],
|
|
369
|
-
},
|
|
370
|
-
{
|
|
371
|
-
name: AXMAssetManagementMenuKeys.Maintenances,
|
|
372
|
-
text: '@asset-management:maintenances.menus.root.title',
|
|
373
|
-
icon: 'fa-light fa-signal-stream',
|
|
374
|
-
priority: 2,
|
|
375
|
-
children: [
|
|
376
|
-
{
|
|
377
|
-
name: `${AXMAssetManagementMenuKeys.Maintenances}:maintenances`,
|
|
378
|
-
text: RootConfig.entities.maintenance.titlePlural,
|
|
379
|
-
icon: RootConfig.entities.maintenance.icon,
|
|
380
|
-
path: this.entityService.createPath(module.name, RootConfig.entities.maintenance.name),
|
|
381
|
-
priority: 1,
|
|
382
|
-
},
|
|
383
|
-
{
|
|
384
|
-
name: `${AXMAssetManagementMenuKeys.MaintenanceTypes}:maintenance-types`,
|
|
385
|
-
text: RootConfig.entities.maintenanceType.titlePlural,
|
|
386
|
-
icon: RootConfig.entities.maintenanceType.icon,
|
|
387
|
-
path: this.entityService.createPath(module.name, RootConfig.entities.maintenanceType.name),
|
|
388
|
-
priority: 2,
|
|
389
|
-
},
|
|
390
|
-
],
|
|
391
|
-
},
|
|
392
|
-
{
|
|
393
|
-
name: AXMAssetManagementMenuKeys.Inspections,
|
|
394
|
-
text: '@asset-management:inspections.menus.root.title',
|
|
395
|
-
icon: 'fa-light fa-clipboard-check',
|
|
396
|
-
priority: 3,
|
|
397
|
-
children: [
|
|
398
|
-
{
|
|
399
|
-
name: `${AXMAssetManagementMenuKeys.Inspections}:inspections`,
|
|
400
|
-
text: RootConfig.entities.inspection.titlePlural,
|
|
401
|
-
icon: RootConfig.entities.inspection.icon,
|
|
402
|
-
path: this.entityService.createPath(module.name, RootConfig.entities.inspection.name),
|
|
403
|
-
priority: 1,
|
|
404
|
-
},
|
|
405
|
-
],
|
|
406
|
-
},
|
|
407
|
-
],
|
|
408
|
-
},
|
|
409
|
-
]);
|
|
410
|
-
}
|
|
411
|
-
}
|
|
412
|
-
//#endregion
|
|
413
|
-
|
|
414
|
-
var menu_provider = /*#__PURE__*/Object.freeze({
|
|
415
|
-
__proto__: null,
|
|
416
|
-
AXMAssetManagementMenuProvider: AXMAssetManagementMenuProvider
|
|
417
|
-
});
|
|
418
|
-
|
|
419
|
-
const AXMAssetManagementPermissionKeys = {
|
|
420
|
-
AssetManagement: {
|
|
421
|
-
Management: 'asset-management',
|
|
422
|
-
Asset: {
|
|
423
|
-
Management: 'asset.management',
|
|
424
|
-
View: 'asset.view',
|
|
425
|
-
Create: 'asset.create',
|
|
426
|
-
Update: 'asset.update',
|
|
427
|
-
Delete: 'asset.delete',
|
|
428
|
-
},
|
|
429
|
-
MaintenanceType: {
|
|
430
|
-
Management: 'maintetance-type.management',
|
|
431
|
-
View: 'maintetance-type.view',
|
|
432
|
-
Create: 'maintetance-type.create',
|
|
433
|
-
Update: 'maintetance-type.update',
|
|
434
|
-
Delete: 'maintetance-type.delete',
|
|
435
|
-
},
|
|
436
|
-
Maintenance: {
|
|
437
|
-
Management: 'maintetance.management',
|
|
438
|
-
View: 'maintetance.view',
|
|
439
|
-
Create: 'maintetance.create',
|
|
440
|
-
Update: 'maintetance.update',
|
|
441
|
-
Delete: 'maintetance.delete',
|
|
442
|
-
},
|
|
443
|
-
Inspection: {
|
|
444
|
-
Management: 'inspection.management',
|
|
445
|
-
View: 'inspection.view',
|
|
446
|
-
Create: 'inspection.create',
|
|
447
|
-
Update: 'inspection.update',
|
|
448
|
-
Delete: 'inspection.delete',
|
|
449
|
-
},
|
|
450
|
-
// AssetStatus: {
|
|
451
|
-
// Management: 'asset-status.management',
|
|
452
|
-
// View: 'asset-status.view',
|
|
453
|
-
// Create: 'asset-status.create',
|
|
454
|
-
// Update: 'asset-status.update',
|
|
455
|
-
// Delete: 'asset-status.delete',
|
|
456
|
-
// },
|
|
457
|
-
},
|
|
458
|
-
};
|
|
459
|
-
|
|
460
|
-
//#region ---- Imports ----
|
|
461
|
-
//#endregion
|
|
462
|
-
//#region ---- Permission Definition Provider ----
|
|
463
|
-
class AXMAssetManagementPermissionDefinitionProvider {
|
|
464
|
-
constructor() {
|
|
465
|
-
this.translationService = inject(AXTranslationService);
|
|
466
|
-
}
|
|
467
|
-
async define(context) {
|
|
468
|
-
const keys = AXMAssetManagementPermissionKeys.AssetManagement;
|
|
469
|
-
const moduleTitle = await this.translationService.translateAsync('@asset-management:module.title');
|
|
470
|
-
const assetTrans = async (action) => await this.translationService.translateAsync(`@asset-management:assets.permissions.asset.actions.${action}.title`);
|
|
471
|
-
const maintenanceTypeTrans = async (action) => await this.translationService.translateAsync(`@asset-management:maintenancetype.permissions.asset.actions.${action}.title`);
|
|
472
|
-
const maintenanceTrans = async (action) => await this.translationService.translateAsync(`@asset-management:maintenance.permissions.maintenance.actions.${action}.title`);
|
|
473
|
-
const inspectionTrans = async (action) => await this.translationService.translateAsync(`@asset-management:inspections.permissions.inspection.actions.${action}.title`);
|
|
474
|
-
// const assetStatusTrans = async (action: string) =>
|
|
475
|
-
// await this.translationService.translateAsync(
|
|
476
|
-
// `@asset-management:asset-statuses.permissions.asset-status.actions.${action}.title`,
|
|
477
|
-
// );
|
|
478
|
-
context
|
|
479
|
-
.addGroup(keys.Management, moduleTitle)
|
|
480
|
-
.addPermission(keys.Asset.Management, await assetTrans('manage'))
|
|
481
|
-
.addChild(keys.Asset.View, await assetTrans('view'))
|
|
482
|
-
.addChild(keys.Asset.Create, await assetTrans('create'))
|
|
483
|
-
.addChild(keys.Asset.Update, await assetTrans('update'))
|
|
484
|
-
.addChild(keys.Asset.Delete, await assetTrans('delete'))
|
|
485
|
-
.endPermission()
|
|
486
|
-
.addPermission(keys.MaintenanceType.Management, await maintenanceTypeTrans('manage'))
|
|
487
|
-
.addChild(keys.MaintenanceType.View, await maintenanceTypeTrans('view'))
|
|
488
|
-
.addChild(keys.MaintenanceType.Create, await maintenanceTypeTrans('create'))
|
|
489
|
-
.addChild(keys.MaintenanceType.Update, await maintenanceTypeTrans('update'))
|
|
490
|
-
.addChild(keys.MaintenanceType.Delete, await maintenanceTypeTrans('delete'))
|
|
491
|
-
.endPermission()
|
|
492
|
-
.addPermission(keys.Maintenance.Management, await maintenanceTrans('manage'))
|
|
493
|
-
.addChild(keys.Maintenance.View, await maintenanceTrans('view'))
|
|
494
|
-
.addChild(keys.Maintenance.Create, await maintenanceTrans('create'))
|
|
495
|
-
.addChild(keys.Maintenance.Update, await maintenanceTrans('update'))
|
|
496
|
-
.addChild(keys.Maintenance.Delete, await maintenanceTrans('delete'))
|
|
497
|
-
.endPermission()
|
|
498
|
-
.addPermission(keys.Inspection.Management, await inspectionTrans('manage'))
|
|
499
|
-
.addChild(keys.Inspection.View, await inspectionTrans('view'))
|
|
500
|
-
.addChild(keys.Inspection.Create, await inspectionTrans('create'))
|
|
501
|
-
.addChild(keys.Inspection.Update, await inspectionTrans('update'))
|
|
502
|
-
.addChild(keys.Inspection.Delete, await inspectionTrans('delete'))
|
|
503
|
-
.endPermission()
|
|
504
|
-
// .addPermission(keys.AssetStatus.Management, await assetStatusTrans('manage'))
|
|
505
|
-
// .addChild(keys.AssetStatus.View, await assetStatusTrans('view'))
|
|
506
|
-
// .addChild(keys.AssetStatus.Create, await assetStatusTrans('create'))
|
|
507
|
-
// .addChild(keys.AssetStatus.Update, await assetStatusTrans('update'))
|
|
508
|
-
// .addChild(keys.AssetStatus.Delete, await assetStatusTrans('delete'))
|
|
509
|
-
// .endPermission()
|
|
510
|
-
.endGroup();
|
|
511
|
-
}
|
|
512
|
-
}
|
|
513
|
-
//#endregion
|
|
514
|
-
|
|
515
|
-
var permissionDefinition_provider = /*#__PURE__*/Object.freeze({
|
|
516
|
-
__proto__: null,
|
|
517
|
-
AXMAssetManagementPermissionDefinitionProvider: AXMAssetManagementPermissionDefinitionProvider
|
|
518
|
-
});
|
|
519
|
-
|
|
520
|
-
//#region ---- Imports ----
|
|
521
|
-
//#endregion
|
|
522
|
-
//#region ---- Search Provider ----
|
|
523
|
-
class AXMAssetManagementSearchCommandProvider extends AXPSearchCommandProvider {
|
|
524
|
-
constructor() {
|
|
525
|
-
super(...arguments);
|
|
526
|
-
this.commands = [
|
|
527
|
-
{
|
|
528
|
-
group: 'entity',
|
|
529
|
-
title: '@asset-management:assets.search.create-asset.title',
|
|
530
|
-
icon: RootConfig.entities.asset.icon,
|
|
531
|
-
description: '@asset-management:assets.search.create-asset.description',
|
|
532
|
-
command: {
|
|
533
|
-
name: 'create-entity',
|
|
534
|
-
options: {
|
|
535
|
-
entity: `${RootConfig.module.name}.${RootConfig.entities.asset.name}`,
|
|
536
|
-
},
|
|
537
|
-
},
|
|
538
|
-
},
|
|
539
|
-
// {
|
|
540
|
-
// group: 'entity',
|
|
541
|
-
// title: '@asset-management:asset-statuses.search.create-asset-status.title',
|
|
542
|
-
// icon: RootConfig.entities.assetStatus.icon,
|
|
543
|
-
// description: '@asset-management:asset-statuses.search.create-asset-status.description',
|
|
544
|
-
// command: {
|
|
545
|
-
// name: 'create-entity',
|
|
546
|
-
// options: {
|
|
547
|
-
// entity: `${RootConfig.module.name}.${RootConfig.entities.assetStatus.name}`,
|
|
548
|
-
// },
|
|
549
|
-
// },
|
|
550
|
-
// },
|
|
551
|
-
];
|
|
552
|
-
}
|
|
553
|
-
}
|
|
554
|
-
//#endregion
|
|
555
|
-
|
|
556
|
-
var search_provider = /*#__PURE__*/Object.freeze({
|
|
557
|
-
__proto__: null,
|
|
558
|
-
AXMAssetManagementSearchCommandProvider: AXMAssetManagementSearchCommandProvider
|
|
559
|
-
});
|
|
560
|
-
|
|
561
|
-
// import { AXPStatusProvider, AXPStatusTransition } from '@acorex/platform/core';
|
|
562
|
-
var AXMAssetStatus;
|
|
563
|
-
(function (AXMAssetStatus) {
|
|
564
|
-
AXMAssetStatus["Available"] = "available";
|
|
565
|
-
AXMAssetStatus["Inactive"] = "inactive";
|
|
566
|
-
AXMAssetStatus["Suspended"] = "suspended";
|
|
567
|
-
AXMAssetStatus["Transferring"] = "transferring";
|
|
568
|
-
AXMAssetStatus["UnderRepair"] = "under-repair";
|
|
569
|
-
AXMAssetStatus["OutOfOrder"] = "out-of-order";
|
|
570
|
-
AXMAssetStatus["Retired"] = "retired";
|
|
571
|
-
AXMAssetStatus["Archived"] = "archived";
|
|
572
|
-
})(AXMAssetStatus || (AXMAssetStatus = {}));
|
|
573
|
-
class AXMAssetManagementAssetStatusProvider extends AXPStatusProvider {
|
|
574
|
-
constructor() {
|
|
575
|
-
super(...arguments);
|
|
576
|
-
this.key = 'asset-management.status.asset';
|
|
577
|
-
this.statuses = [
|
|
578
|
-
{
|
|
579
|
-
name: AXMAssetStatus.Available,
|
|
580
|
-
title: '@asset-management:assets.states.available',
|
|
581
|
-
icon: 'fa-light fa-circle-check',
|
|
582
|
-
color: 'success',
|
|
583
|
-
order: 1,
|
|
584
|
-
isInitial: true,
|
|
585
|
-
isFinal: false,
|
|
586
|
-
generateView: true,
|
|
587
|
-
},
|
|
588
|
-
{
|
|
589
|
-
name: AXMAssetStatus.Inactive,
|
|
590
|
-
title: '@asset-management:assets.states.inactive',
|
|
591
|
-
icon: 'fa-light fa-circle',
|
|
592
|
-
color: 'secondary',
|
|
593
|
-
order: 2,
|
|
594
|
-
isInitial: false,
|
|
595
|
-
isFinal: false,
|
|
596
|
-
generateView: true,
|
|
597
|
-
},
|
|
598
|
-
{
|
|
599
|
-
name: AXMAssetStatus.Suspended,
|
|
600
|
-
title: '@asset-management:assets.states.suspended',
|
|
601
|
-
icon: 'fa-light fa-circle-pause',
|
|
602
|
-
color: 'warning',
|
|
603
|
-
order: 3,
|
|
604
|
-
isInitial: false,
|
|
605
|
-
isFinal: false,
|
|
606
|
-
generateView: true,
|
|
607
|
-
},
|
|
608
|
-
{
|
|
609
|
-
name: AXMAssetStatus.Transferring,
|
|
610
|
-
title: '@asset-management:assets.states.transferring',
|
|
611
|
-
icon: 'fa-light fa-truck',
|
|
612
|
-
color: 'info',
|
|
613
|
-
order: 4,
|
|
614
|
-
isInitial: false,
|
|
615
|
-
isFinal: false,
|
|
616
|
-
generateView: true,
|
|
617
|
-
},
|
|
618
|
-
{
|
|
619
|
-
name: AXMAssetStatus.UnderRepair,
|
|
620
|
-
title: '@asset-management:assets.states.under-repair',
|
|
621
|
-
icon: 'fa-light fa-screwdriver-wrench',
|
|
622
|
-
color: 'warning',
|
|
623
|
-
order: 5,
|
|
624
|
-
isInitial: false,
|
|
625
|
-
isFinal: false,
|
|
626
|
-
generateView: true,
|
|
627
|
-
},
|
|
628
|
-
{
|
|
629
|
-
name: AXMAssetStatus.OutOfOrder,
|
|
630
|
-
title: '@asset-management:assets.states.out-of-order',
|
|
631
|
-
icon: 'fa-light fa-triangle-exclamation',
|
|
632
|
-
color: 'danger',
|
|
633
|
-
order: 6,
|
|
634
|
-
isInitial: false,
|
|
635
|
-
isFinal: false,
|
|
636
|
-
generateView: true,
|
|
637
|
-
},
|
|
638
|
-
{
|
|
639
|
-
name: AXMAssetStatus.Retired,
|
|
640
|
-
title: '@asset-management:assets.states.retired',
|
|
641
|
-
icon: 'fa-light fa-ban',
|
|
642
|
-
color: 'neutral',
|
|
643
|
-
order: 7,
|
|
644
|
-
isInitial: false,
|
|
645
|
-
isFinal: true,
|
|
646
|
-
generateView: true,
|
|
647
|
-
},
|
|
648
|
-
{
|
|
649
|
-
name: AXMAssetStatus.Archived,
|
|
650
|
-
title: '@asset-management:assets.states.archived',
|
|
651
|
-
icon: 'fa-light fa-box-archive',
|
|
652
|
-
color: 'neutral',
|
|
653
|
-
order: 8,
|
|
654
|
-
isInitial: false,
|
|
655
|
-
isFinal: true,
|
|
656
|
-
generateView: true,
|
|
657
|
-
},
|
|
658
|
-
];
|
|
659
|
-
this.transitions = [
|
|
660
|
-
// ---- Availability flow
|
|
661
|
-
{
|
|
662
|
-
from: AXMAssetStatus.Available,
|
|
663
|
-
to: AXMAssetStatus.Transferring,
|
|
664
|
-
title: '@asset-management:assets.transitions.start-transfer',
|
|
665
|
-
// color: 'info' as AXStyleColorType,
|
|
666
|
-
},
|
|
667
|
-
{
|
|
668
|
-
from: AXMAssetStatus.Transferring,
|
|
669
|
-
to: AXMAssetStatus.Available,
|
|
670
|
-
title: '@asset-management:assets.transitions.transfer-complete',
|
|
671
|
-
// color: 'success' as AXStyleColorType,
|
|
672
|
-
},
|
|
673
|
-
// ---- Repair flow
|
|
674
|
-
{
|
|
675
|
-
from: AXMAssetStatus.Available,
|
|
676
|
-
to: AXMAssetStatus.UnderRepair,
|
|
677
|
-
title: '@asset-management:assets.transitions.send-to-repair',
|
|
678
|
-
// color: 'warning' as AXStyleColorType,
|
|
679
|
-
},
|
|
680
|
-
{
|
|
681
|
-
from: AXMAssetStatus.UnderRepair,
|
|
682
|
-
to: AXMAssetStatus.Available,
|
|
683
|
-
title: '@asset-management:assets.transitions.repair-complete',
|
|
684
|
-
// color: 'success' as AXStyleColorType,
|
|
685
|
-
},
|
|
686
|
-
{
|
|
687
|
-
from: AXMAssetStatus.Available,
|
|
688
|
-
to: AXMAssetStatus.OutOfOrder,
|
|
689
|
-
title: '@asset-management:assets.transitions.mark-out-of-order',
|
|
690
|
-
// color: 'danger' as AXStyleColorType,
|
|
691
|
-
},
|
|
692
|
-
{
|
|
693
|
-
from: AXMAssetStatus.OutOfOrder,
|
|
694
|
-
to: AXMAssetStatus.UnderRepair,
|
|
695
|
-
title: '@asset-management:assets.transitions.send-to-repair',
|
|
696
|
-
// color: 'warning' as AXStyleColorType,
|
|
697
|
-
},
|
|
698
|
-
// ---- Enable / disable
|
|
699
|
-
{
|
|
700
|
-
from: AXMAssetStatus.Available,
|
|
701
|
-
to: AXMAssetStatus.Inactive,
|
|
702
|
-
title: '@general:statuses.transitions.deactivate',
|
|
703
|
-
// color: 'secondary' as AXStyleColorType,
|
|
704
|
-
},
|
|
705
|
-
{
|
|
706
|
-
from: AXMAssetStatus.Inactive,
|
|
707
|
-
to: AXMAssetStatus.Available,
|
|
708
|
-
title: '@general:statuses.transitions.activate',
|
|
709
|
-
// color: 'success' as AXStyleColorType,
|
|
710
|
-
},
|
|
711
|
-
{
|
|
712
|
-
from: AXMAssetStatus.Available,
|
|
713
|
-
to: AXMAssetStatus.Suspended,
|
|
714
|
-
title: '@general:statuses.transitions.suspend',
|
|
715
|
-
// color: 'warning' as AXStyleColorType,
|
|
716
|
-
},
|
|
717
|
-
{
|
|
718
|
-
from: AXMAssetStatus.Suspended,
|
|
719
|
-
to: AXMAssetStatus.Available,
|
|
720
|
-
title: '@general:statuses.transitions.activate',
|
|
721
|
-
// color: 'success' as AXStyleColorType,
|
|
722
|
-
},
|
|
723
|
-
// ---- End of lifecycle
|
|
724
|
-
{
|
|
725
|
-
from: AXMAssetStatus.Available,
|
|
726
|
-
to: AXMAssetStatus.Retired,
|
|
727
|
-
title: '@asset-management:assets.transitions.retire',
|
|
728
|
-
// color: 'neutral' as AXStyleColorType,
|
|
729
|
-
},
|
|
730
|
-
{
|
|
731
|
-
from: AXMAssetStatus.Retired,
|
|
732
|
-
to: AXMAssetStatus.Archived,
|
|
733
|
-
title: '@general:statuses.transitions.archive',
|
|
734
|
-
// color: 'neutral' as AXStyleColorType,
|
|
735
|
-
},
|
|
736
|
-
];
|
|
737
|
-
this.defaultStatus = AXMAssetStatus.Available;
|
|
738
|
-
}
|
|
739
|
-
}
|
|
740
|
-
|
|
741
|
-
var assetStatus_provider = /*#__PURE__*/Object.freeze({
|
|
742
|
-
__proto__: null,
|
|
743
|
-
AXMAssetManagementAssetStatusProvider: AXMAssetManagementAssetStatusProvider,
|
|
744
|
-
get AXMAssetStatus () { return AXMAssetStatus; }
|
|
745
|
-
});
|
|
746
|
-
|
|
747
|
-
/**
|
|
748
|
-
* Generated bundle index. Do not edit.
|
|
749
|
-
*/
|
|
750
|
-
|
|
751
|
-
export { AXMAssetManagementMaintenanceEntityService as A, RootConfig as R, AXMAssetManagementMaintenanceTypeEntityService as a, AXMAssetManagementInspectionEntityService as b, AXMAssetManagementModule as c, AXMAssetManagementEntityProvider as d, AXMAssetManagementMenuKeys as e, AXMAssetManagementMenuProvider as f, AXMAssetManagementPermissionDefinitionProvider as g, AXMAssetManagementPermissionKeys as h, AXMAssetManagementSearchCommandProvider as i, AXMAssetManagementAssetEntityService as j, AXMAssetManagementAssetEntityServiceImpl as k, AXMAssetStatus as l, AXMAssetManagementAssetStatusProvider as m };
|
|
752
|
-
//# sourceMappingURL=acorex-modules-asset-management-acorex-modules-asset-management-CZchW21Z.mjs.map
|