@acorex-platform/module-asset-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-asset-management-client-contracts-entities-asset-rental-history.mjs +536 -0
- package/fesm2022/acorex-platform-module-asset-management-client-contracts-entities-asset-rental-history.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-asset-management-client-contracts-entities-asset-system-assignment.mjs +294 -0
- package/fesm2022/acorex-platform-module-asset-management-client-contracts-entities-asset-system-assignment.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-asset-management-client-contracts-entities-asset-system-type.mjs +328 -0
- package/fesm2022/acorex-platform-module-asset-management-client-contracts-entities-asset-system-type.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-asset-management-client-contracts-entities-asset-system.mjs +316 -0
- package/fesm2022/acorex-platform-module-asset-management-client-contracts-entities-asset-system.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-asset-management-client-contracts-entities-asset-type-section-component.mjs +348 -0
- package/fesm2022/acorex-platform-module-asset-management-client-contracts-entities-asset-type-section-component.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-asset-management-client-contracts-entities-asset-type-section.mjs +252 -0
- package/fesm2022/acorex-platform-module-asset-management-client-contracts-entities-asset-type-section.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-asset-management-client-contracts-entities-asset-type.mjs +476 -0
- package/fesm2022/acorex-platform-module-asset-management-client-contracts-entities-asset-type.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-asset-management-client-contracts-entities-asset.mjs +1123 -0
- package/fesm2022/acorex-platform-module-asset-management-client-contracts-entities-asset.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-asset-management-client-contracts-entity-catalog-ASSET_TYPE_COMPONENTS_PAGE_COMPONENT_KEY-Jlv8czA2.mjs +5 -0
- package/fesm2022/acorex-platform-module-asset-management-client-contracts-entity-catalog-ASSET_TYPE_COMPONENTS_PAGE_COMPONENT_KEY-Jlv8czA2.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-asset-management-client-contracts-entity-catalog-acorex-platform-module-asset-management-client-contracts-entity-catalog-BnFLQIiP.mjs +131 -0
- package/fesm2022/acorex-platform-module-asset-management-client-contracts-entity-catalog-acorex-platform-module-asset-management-client-contracts-entity-catalog-BnFLQIiP.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-asset-management-client-contracts-entity-catalog-asset-rental-history.entity-DVDZBUtV.mjs +431 -0
- package/fesm2022/acorex-platform-module-asset-management-client-contracts-entity-catalog-asset-rental-history.entity-DVDZBUtV.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-asset-management-client-contracts-entity-catalog-asset-system-assignment.entity-C2TD0S1M.mjs +189 -0
- package/fesm2022/acorex-platform-module-asset-management-client-contracts-entity-catalog-asset-system-assignment.entity-C2TD0S1M.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-asset-management-client-contracts-entity-catalog-asset-system-type.entity-DszmKgyy.mjs +223 -0
- package/fesm2022/acorex-platform-module-asset-management-client-contracts-entity-catalog-asset-system-type.entity-DszmKgyy.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-asset-management-client-contracts-entity-catalog-asset-system.entity-BgUe0-L9.mjs +211 -0
- package/fesm2022/acorex-platform-module-asset-management-client-contracts-entity-catalog-asset-system.entity-BgUe0-L9.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-asset-management-client-contracts-entity-catalog-asset-type-section-component.entity-DsHwYpDP.mjs +243 -0
- package/fesm2022/acorex-platform-module-asset-management-client-contracts-entity-catalog-asset-type-section-component.entity-DsHwYpDP.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-asset-management-client-contracts-entity-catalog-asset-type-section.entity-BdXjYYDS.mjs +145 -0
- package/fesm2022/acorex-platform-module-asset-management-client-contracts-entity-catalog-asset-type-section.entity-BdXjYYDS.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-asset-management-client-contracts-entity-catalog-asset-type.entity-BJr-OLKa.mjs +369 -0
- package/fesm2022/acorex-platform-module-asset-management-client-contracts-entity-catalog-asset-type.entity-BJr-OLKa.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-asset-management-client-contracts-entity-catalog-asset.entity-yXy3-Jbq.mjs +1016 -0
- package/fesm2022/acorex-platform-module-asset-management-client-contracts-entity-catalog-asset.entity-yXy3-Jbq.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-asset-management-client-contracts-entity-catalog.mjs +2 -0
- package/fesm2022/acorex-platform-module-asset-management-client-contracts-entity-catalog.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-asset-management-client-local-entities.mjs +36 -0
- package/fesm2022/acorex-platform-module-asset-management-client-local-entities.mjs.map +1 -0
- package/package.json +42 -2
- package/types/acorex-platform-module-asset-management-client-contracts-entities-asset-rental-history.d.ts +5 -0
- package/types/acorex-platform-module-asset-management-client-contracts-entities-asset-system-assignment.d.ts +5 -0
- package/types/acorex-platform-module-asset-management-client-contracts-entities-asset-system-type.d.ts +5 -0
- package/types/acorex-platform-module-asset-management-client-contracts-entities-asset-system.d.ts +5 -0
- package/types/acorex-platform-module-asset-management-client-contracts-entities-asset-type-section-component.d.ts +10 -0
- package/types/acorex-platform-module-asset-management-client-contracts-entities-asset-type-section.d.ts +10 -0
- package/types/acorex-platform-module-asset-management-client-contracts-entities-asset-type.d.ts +9 -0
- package/types/acorex-platform-module-asset-management-client-contracts-entities-asset.d.ts +5 -0
- package/types/acorex-platform-module-asset-management-client-contracts-entity-catalog.d.ts +10 -0
- package/types/acorex-platform-module-asset-management-client-local-entities.d.ts +12 -0
|
@@ -0,0 +1,294 @@
|
|
|
1
|
+
import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';
|
|
2
|
+
import { createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';
|
|
3
|
+
|
|
4
|
+
//#region ---- Root Configuration ----
|
|
5
|
+
const config = {
|
|
6
|
+
i18n: 'asset-management',
|
|
7
|
+
module: 'AssetManagement',
|
|
8
|
+
route: 'asset-management',
|
|
9
|
+
};
|
|
10
|
+
const RootConfig = {
|
|
11
|
+
config,
|
|
12
|
+
module: {
|
|
13
|
+
route: config.route,
|
|
14
|
+
name: config.module,
|
|
15
|
+
title: '@asset-management:module.title',
|
|
16
|
+
icon: 'fa-light fa-industry',
|
|
17
|
+
},
|
|
18
|
+
entities: {
|
|
19
|
+
assetRentalHistory: {
|
|
20
|
+
name: 'AssetRentalHistory',
|
|
21
|
+
source: `${config.module}.AssetRentalHistory`,
|
|
22
|
+
title: '@asset-management:assetRentalHistories.entities.assetRentalHistory.title',
|
|
23
|
+
titlePlural: '@asset-management:assetRentalHistories.entities.assetRentalHistory.plural',
|
|
24
|
+
icon: 'fa-light fa-file-contract',
|
|
25
|
+
},
|
|
26
|
+
assetSystemAssignment: {
|
|
27
|
+
name: 'AssetSystemAssignment',
|
|
28
|
+
source: `${config.module}.AssetSystemAssignment`,
|
|
29
|
+
title: '@asset-management:assetSystemAssignments.entities.assetSystemAssignment.title',
|
|
30
|
+
titlePlural: '@asset-management:assetSystemAssignments.entities.assetSystemAssignment.plural',
|
|
31
|
+
icon: 'fa-light fa-link',
|
|
32
|
+
},
|
|
33
|
+
asset: {
|
|
34
|
+
name: 'Asset',
|
|
35
|
+
source: `${config.module}.Asset`,
|
|
36
|
+
title: '@asset-management:assets.entities.asset.title',
|
|
37
|
+
titlePlural: '@asset-management:assets.entities.asset.plural',
|
|
38
|
+
icon: 'fa-light fa-box',
|
|
39
|
+
},
|
|
40
|
+
assetType: {
|
|
41
|
+
name: 'AssetType',
|
|
42
|
+
source: `${config.module}.AssetType`,
|
|
43
|
+
title: '@asset-management:assetTypes.entities.assetType.title',
|
|
44
|
+
titlePlural: '@asset-management:assetTypes.entities.assetType.plural',
|
|
45
|
+
icon: 'fa-light fa-cubes',
|
|
46
|
+
},
|
|
47
|
+
assetTypeSection: {
|
|
48
|
+
name: 'AssetTypeSection',
|
|
49
|
+
source: `${config.module}.AssetTypeSection`,
|
|
50
|
+
title: '@asset-management:assetTypeSections.entities.assetTypeSection.title',
|
|
51
|
+
titlePlural: '@asset-management:assetTypeSections.entities.assetTypeSection.plural',
|
|
52
|
+
icon: 'fa-light fa-layer-group',
|
|
53
|
+
},
|
|
54
|
+
assetTypeSectionComponent: {
|
|
55
|
+
name: 'AssetTypeSectionComponent',
|
|
56
|
+
source: `${config.module}.AssetTypeSectionComponent`,
|
|
57
|
+
title: '@asset-management:assetTypeSectionComponents.entities.assetTypeSectionComponent.title',
|
|
58
|
+
titlePlural: '@asset-management:assetTypeSectionComponents.entities.assetTypeSectionComponent.plural',
|
|
59
|
+
icon: 'fa-light fa-puzzle-piece',
|
|
60
|
+
},
|
|
61
|
+
assetSystemType: {
|
|
62
|
+
name: 'AssetSystemType',
|
|
63
|
+
source: `${config.module}.AssetSystemType`,
|
|
64
|
+
title: '@asset-management:assetSystemTypes.entities.assetSystemType.title',
|
|
65
|
+
titlePlural: '@asset-management:assetSystemTypes.entities.assetSystemType.plural',
|
|
66
|
+
icon: 'fa-light fa-diagram-subtask',
|
|
67
|
+
},
|
|
68
|
+
assetSystem: {
|
|
69
|
+
name: 'AssetSystem',
|
|
70
|
+
source: `${config.module}.AssetSystem`,
|
|
71
|
+
title: 'Asset System',
|
|
72
|
+
titlePlural: 'Asset Systems',
|
|
73
|
+
icon: 'fa-light fa-diagram-project',
|
|
74
|
+
},
|
|
75
|
+
manualAssetCategory: {
|
|
76
|
+
name: 'ManualAssetCategory',
|
|
77
|
+
source: `${config.module}.ManualAssetCategory`,
|
|
78
|
+
title: '@asset-management:asset-categories.entities.asset-category.title',
|
|
79
|
+
titlePlural: '@asset-management:asset-categories.entities.asset-category.plural',
|
|
80
|
+
icon: 'fa-light fa-tags',
|
|
81
|
+
},
|
|
82
|
+
// inspection: {
|
|
83
|
+
// name: 'Inspection',
|
|
84
|
+
// source: `${config.module}.Inspection`,
|
|
85
|
+
// title: '@asset-management:inspections.entities.inspection.title',
|
|
86
|
+
// titlePlural: '@asset-management:inspections.entities.inspection.plural',
|
|
87
|
+
// icon: 'fa-light fa-clipboard-check',
|
|
88
|
+
// },
|
|
89
|
+
// assetStatus: {
|
|
90
|
+
// name: 'AssetStatus',
|
|
91
|
+
// source: `${config.module}.AssetStatus`,
|
|
92
|
+
// title: '@asset-management:asset-statuses.entities.asset-status.title',
|
|
93
|
+
// titlePlural: '@asset-management:asset-statuses.entities.asset-status.plural',
|
|
94
|
+
// icon: 'fa-light fa-signal',
|
|
95
|
+
// },
|
|
96
|
+
},
|
|
97
|
+
queries: {
|
|
98
|
+
reports: {
|
|
99
|
+
getAssetsByStatus: `${config.module}:Reports:GetAssetsByStatus`,
|
|
100
|
+
getRentalUtilization: `${config.module}:Reports:GetRentalUtilization`,
|
|
101
|
+
},
|
|
102
|
+
},
|
|
103
|
+
};
|
|
104
|
+
//#endregion
|
|
105
|
+
|
|
106
|
+
//#endregion
|
|
107
|
+
//#region ---- Entity Factory ----
|
|
108
|
+
async function factoryAssetSystemAssignment() {
|
|
109
|
+
const entityDef = {
|
|
110
|
+
module: RootConfig.module.name,
|
|
111
|
+
name: RootConfig.entities.assetSystemAssignment.name,
|
|
112
|
+
title: RootConfig.entities.assetSystemAssignment.title,
|
|
113
|
+
icon: RootConfig.entities.assetSystemAssignment.icon,
|
|
114
|
+
plugins: [],
|
|
115
|
+
relatedEntities: [],
|
|
116
|
+
formats: {
|
|
117
|
+
individual: RootConfig.entities.assetSystemAssignment.title,
|
|
118
|
+
plural: RootConfig.entities.assetSystemAssignment.titlePlural,
|
|
119
|
+
searchResult: { title: '{{ startDate }}' },
|
|
120
|
+
},
|
|
121
|
+
groups: [
|
|
122
|
+
{
|
|
123
|
+
id: 'basic-info',
|
|
124
|
+
title: '@asset-management:assetSystemAssignments.entities.assetSystemAssignment.groups.basic-info',
|
|
125
|
+
},
|
|
126
|
+
],
|
|
127
|
+
properties: [
|
|
128
|
+
{
|
|
129
|
+
name: 'id',
|
|
130
|
+
title: '@asset-management:assetSystemAssignments.entities.assetSystemAssignment.fields.id.title',
|
|
131
|
+
schema: { dataType: 'uuid', visible: false, nullable: false, readonly: true, unique: { enabled: true } },
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
name: 'assetSystemId',
|
|
135
|
+
title: '@asset-management:assetSystemAssignments.entities.assetSystemAssignment.fields.assetSystemId.title',
|
|
136
|
+
groupId: 'basic-info',
|
|
137
|
+
schema: {
|
|
138
|
+
dataType: 'string',
|
|
139
|
+
interface: {
|
|
140
|
+
type: AXPWidgetsList.Editors.LookupBox,
|
|
141
|
+
options: {
|
|
142
|
+
entity: `${RootConfig.module.name}.${RootConfig.entities.assetSystem.name}`,
|
|
143
|
+
textField: 'title',
|
|
144
|
+
valueField: 'id',
|
|
145
|
+
expose: [{ source: 'title', target: 'assetSystem.title' }],
|
|
146
|
+
disabled: true,
|
|
147
|
+
look: 'select',
|
|
148
|
+
},
|
|
149
|
+
},
|
|
150
|
+
},
|
|
151
|
+
options: {
|
|
152
|
+
sort: { enabled: true },
|
|
153
|
+
filter: { advance: { enabled: true }, inline: { enabled: true } },
|
|
154
|
+
},
|
|
155
|
+
validations: [{ rule: 'required' }],
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
name: 'assetId',
|
|
159
|
+
title: '@asset-management:assetSystemAssignments.entities.assetSystemAssignment.fields.assetId.title',
|
|
160
|
+
groupId: 'basic-info',
|
|
161
|
+
schema: {
|
|
162
|
+
dataType: 'string',
|
|
163
|
+
interface: {
|
|
164
|
+
type: AXPWidgetsList.Editors.LookupBox,
|
|
165
|
+
options: {
|
|
166
|
+
entity: `${RootConfig.module.name}.${RootConfig.entities.asset.name}`,
|
|
167
|
+
textField: 'title',
|
|
168
|
+
valueField: 'id',
|
|
169
|
+
expose: [{ source: 'title', target: 'asset.title' }],
|
|
170
|
+
},
|
|
171
|
+
},
|
|
172
|
+
},
|
|
173
|
+
options: {
|
|
174
|
+
sort: { enabled: true },
|
|
175
|
+
filter: { advance: { enabled: true }, inline: { enabled: true } },
|
|
176
|
+
},
|
|
177
|
+
validations: [{ rule: 'required' }],
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
name: 'startDate',
|
|
181
|
+
title: '@asset-management:assetSystemAssignments.entities.assetSystemAssignment.fields.startDate.title',
|
|
182
|
+
groupId: 'basic-info',
|
|
183
|
+
schema: {
|
|
184
|
+
dataType: 'date',
|
|
185
|
+
interface: {
|
|
186
|
+
type: AXPWidgetsList.Editors.DateTimeBox,
|
|
187
|
+
options: { format: 'date' },
|
|
188
|
+
},
|
|
189
|
+
},
|
|
190
|
+
options: {
|
|
191
|
+
sort: { enabled: true },
|
|
192
|
+
filter: { advance: { enabled: true }, inline: { enabled: true } },
|
|
193
|
+
},
|
|
194
|
+
validations: [{ rule: 'required' }],
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
name: 'endDate',
|
|
198
|
+
title: '@asset-management:assetSystemAssignments.entities.assetSystemAssignment.fields.endDate.title',
|
|
199
|
+
groupId: 'basic-info',
|
|
200
|
+
schema: {
|
|
201
|
+
dataType: 'date',
|
|
202
|
+
nullable: true,
|
|
203
|
+
interface: {
|
|
204
|
+
type: AXPWidgetsList.Editors.DateTimeBox,
|
|
205
|
+
options: { format: 'date' },
|
|
206
|
+
},
|
|
207
|
+
},
|
|
208
|
+
options: {
|
|
209
|
+
sort: { enabled: true },
|
|
210
|
+
filter: { advance: { enabled: true }, inline: { enabled: true } },
|
|
211
|
+
},
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
name: 'description',
|
|
215
|
+
title: '@asset-management:assetSystemAssignments.entities.assetSystemAssignment.fields.description.title',
|
|
216
|
+
groupId: 'basic-info',
|
|
217
|
+
schema: {
|
|
218
|
+
dataType: 'string',
|
|
219
|
+
interface: {
|
|
220
|
+
type: AXPWidgetsList.Editors.LargeTextBox,
|
|
221
|
+
options: { rows: 3 },
|
|
222
|
+
},
|
|
223
|
+
},
|
|
224
|
+
options: {
|
|
225
|
+
sort: { enabled: true },
|
|
226
|
+
filter: { advance: { enabled: true }, inline: { enabled: true } },
|
|
227
|
+
},
|
|
228
|
+
},
|
|
229
|
+
],
|
|
230
|
+
columns: [
|
|
231
|
+
{ name: 'assetId', options: { dataPath: 'asset.title', order: 1 } },
|
|
232
|
+
{ name: 'startDate', options: { order: 2 } },
|
|
233
|
+
{ name: 'endDate', options: { order: 3 } },
|
|
234
|
+
{ name: 'description', options: { order: 4 } },
|
|
235
|
+
],
|
|
236
|
+
queries: {},
|
|
237
|
+
interfaces: {
|
|
238
|
+
master: {
|
|
239
|
+
create: {
|
|
240
|
+
sections: [{ id: 'basic-info', order: 1 }],
|
|
241
|
+
properties: [
|
|
242
|
+
{ name: 'assetSystemId', layout: { positions: { lg: { colSpan: 12, order: 1 } } } },
|
|
243
|
+
{ name: 'assetId', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },
|
|
244
|
+
{ name: 'startDate', layout: { positions: { lg: { colSpan: 6, order: 3 } } } },
|
|
245
|
+
{ name: 'endDate', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },
|
|
246
|
+
{ name: 'description', layout: { positions: { lg: { colSpan: 12, order: 5 } } } },
|
|
247
|
+
],
|
|
248
|
+
},
|
|
249
|
+
update: {
|
|
250
|
+
sections: [{ id: 'basic-info', order: 1 }],
|
|
251
|
+
properties: [
|
|
252
|
+
{ name: 'assetSystemId', layout: { positions: { lg: { colSpan: 12, order: 1 } } } },
|
|
253
|
+
{ name: 'assetId', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },
|
|
254
|
+
{ name: 'startDate', layout: { positions: { lg: { colSpan: 6, order: 3 } } } },
|
|
255
|
+
{ name: 'endDate', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },
|
|
256
|
+
{ name: 'description', layout: { positions: { lg: { colSpan: 12, order: 5 } } } },
|
|
257
|
+
],
|
|
258
|
+
},
|
|
259
|
+
single: {
|
|
260
|
+
title: '{{ startDate }}',
|
|
261
|
+
sections: [{ id: 'basic-info', order: 1 }],
|
|
262
|
+
properties: [
|
|
263
|
+
{ name: 'assetSystemId', layout: { positions: { lg: { colSpan: 12, order: 1 } } } },
|
|
264
|
+
{ name: 'assetId', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },
|
|
265
|
+
{ name: 'startDate', layout: { positions: { lg: { colSpan: 6, order: 3 } } } },
|
|
266
|
+
{ name: 'endDate', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },
|
|
267
|
+
{ name: 'description', layout: { positions: { lg: { colSpan: 12, order: 5 } } } },
|
|
268
|
+
],
|
|
269
|
+
actions: [...entityMasterRecordActions()],
|
|
270
|
+
},
|
|
271
|
+
list: {
|
|
272
|
+
actions: [...entityMasterCrudActions()],
|
|
273
|
+
views: [
|
|
274
|
+
createAllQueryView({
|
|
275
|
+
sorts: [
|
|
276
|
+
{ name: 'startDate', dir: 'desc' },
|
|
277
|
+
{ name: 'endDate', dir: 'desc' },
|
|
278
|
+
],
|
|
279
|
+
}),
|
|
280
|
+
],
|
|
281
|
+
},
|
|
282
|
+
},
|
|
283
|
+
},
|
|
284
|
+
};
|
|
285
|
+
return entityDef;
|
|
286
|
+
}
|
|
287
|
+
//#endregion
|
|
288
|
+
|
|
289
|
+
/**
|
|
290
|
+
* Generated bundle index. Do not edit.
|
|
291
|
+
*/
|
|
292
|
+
|
|
293
|
+
export { factoryAssetSystemAssignment };
|
|
294
|
+
//# sourceMappingURL=acorex-platform-module-asset-management-client-contracts-entities-asset-system-assignment.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-asset-management-client-contracts-entities-asset-system-assignment.mjs","sources":["../../../../libs/modules/asset-management/contracts/src/root-config.ts","../../../../libs/modules/asset-management/contracts/src/entities/asset-system-assignment/asset-system-assignment.entity.ts","../../../../libs/modules/asset-management/contracts/src/acorex-platform-module-asset-management-client-contracts-entities-asset-system-assignment.ts"],"sourcesContent":["//#region ---- Root Configuration ----\n\nconst config = {\n i18n: 'asset-management',\n module: 'AssetManagement',\n route: 'asset-management',\n};\n\nexport const RootConfig = {\n config,\n module: {\n route: config.route,\n name: config.module,\n title: '@asset-management:module.title',\n icon: 'fa-light fa-industry',\n },\n entities: {\n assetRentalHistory: {\n name: 'AssetRentalHistory',\n source: `${config.module}.AssetRentalHistory`,\n title: '@asset-management:assetRentalHistories.entities.assetRentalHistory.title',\n titlePlural: '@asset-management:assetRentalHistories.entities.assetRentalHistory.plural',\n icon: 'fa-light fa-file-contract',\n },\n assetSystemAssignment: {\n name: 'AssetSystemAssignment',\n source: `${config.module}.AssetSystemAssignment`,\n title: '@asset-management:assetSystemAssignments.entities.assetSystemAssignment.title',\n titlePlural: '@asset-management:assetSystemAssignments.entities.assetSystemAssignment.plural',\n icon: 'fa-light fa-link',\n },\n asset: {\n name: 'Asset',\n source: `${config.module}.Asset`,\n title: '@asset-management:assets.entities.asset.title',\n titlePlural: '@asset-management:assets.entities.asset.plural',\n icon: 'fa-light fa-box',\n },\n assetType: {\n name: 'AssetType',\n source: `${config.module}.AssetType`,\n title: '@asset-management:assetTypes.entities.assetType.title',\n titlePlural: '@asset-management:assetTypes.entities.assetType.plural',\n icon: 'fa-light fa-cubes',\n },\n assetTypeSection: {\n name: 'AssetTypeSection',\n source: `${config.module}.AssetTypeSection`,\n title: '@asset-management:assetTypeSections.entities.assetTypeSection.title',\n titlePlural: '@asset-management:assetTypeSections.entities.assetTypeSection.plural',\n icon: 'fa-light fa-layer-group',\n },\n assetTypeSectionComponent: {\n name: 'AssetTypeSectionComponent',\n source: `${config.module}.AssetTypeSectionComponent`,\n title: '@asset-management:assetTypeSectionComponents.entities.assetTypeSectionComponent.title',\n titlePlural: '@asset-management:assetTypeSectionComponents.entities.assetTypeSectionComponent.plural',\n icon: 'fa-light fa-puzzle-piece',\n },\n assetSystemType: {\n name: 'AssetSystemType',\n source: `${config.module}.AssetSystemType`,\n title: '@asset-management:assetSystemTypes.entities.assetSystemType.title',\n titlePlural: '@asset-management:assetSystemTypes.entities.assetSystemType.plural',\n icon: 'fa-light fa-diagram-subtask',\n },\n assetSystem: {\n name: 'AssetSystem',\n source: `${config.module}.AssetSystem`,\n title: 'Asset System',\n titlePlural: 'Asset Systems',\n icon: 'fa-light fa-diagram-project',\n },\n manualAssetCategory: {\n name: 'ManualAssetCategory',\n source: `${config.module}.ManualAssetCategory`,\n title: '@asset-management:asset-categories.entities.asset-category.title',\n titlePlural: '@asset-management:asset-categories.entities.asset-category.plural',\n icon: 'fa-light fa-tags',\n },\n // inspection: {\n // name: 'Inspection',\n // source: `${config.module}.Inspection`,\n // title: '@asset-management:inspections.entities.inspection.title',\n // titlePlural: '@asset-management:inspections.entities.inspection.plural',\n // icon: 'fa-light fa-clipboard-check',\n // },\n // assetStatus: {\n // name: 'AssetStatus',\n // source: `${config.module}.AssetStatus`,\n // title: '@asset-management:asset-statuses.entities.asset-status.title',\n // titlePlural: '@asset-management:asset-statuses.entities.asset-status.plural',\n // icon: 'fa-light fa-signal',\n // },\n },\n queries: {\n reports: {\n getAssetsByStatus: `${config.module}:Reports:GetAssetsByStatus`,\n getRentalUtilization: `${config.module}:Reports:GetRentalUtilization`,\n },\n },\n} as const;\n\n//#endregion\n","import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';\n//#region ---- Imports ----\nimport { RootConfig } from '../../root-config';\n\n//#endregion\n\n//#region ---- Entity Factory ----\n\nexport async function factoryAssetSystemAssignment(): Promise<AXPEntity | null> {\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.assetSystemAssignment.name,\n title: RootConfig.entities.assetSystemAssignment.title,\n icon: RootConfig.entities.assetSystemAssignment.icon,\n plugins: [],\n relatedEntities: [],\n formats: {\n individual: RootConfig.entities.assetSystemAssignment.title,\n plural: RootConfig.entities.assetSystemAssignment.titlePlural,\n searchResult: { title: '{{ startDate }}' },\n },\n groups: [\n {\n id: 'basic-info',\n title: '@asset-management:assetSystemAssignments.entities.assetSystemAssignment.groups.basic-info',\n },\n ],\n properties: [\n {\n name: 'id',\n title: '@asset-management:assetSystemAssignments.entities.assetSystemAssignment.fields.id.title',\n schema: { dataType: 'uuid', visible: false, nullable: false, readonly: true, unique: { enabled: true } },\n },\n {\n name: 'assetSystemId',\n title: '@asset-management:assetSystemAssignments.entities.assetSystemAssignment.fields.assetSystemId.title',\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.LookupBox,\n options: {\n entity: `${RootConfig.module.name}.${RootConfig.entities.assetSystem.name}`,\n textField: 'title',\n valueField: 'id',\n expose: [{ source: 'title', target: 'assetSystem.title' }],\n disabled: true,\n look: 'select',\n },\n },\n },\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'assetId',\n title: '@asset-management:assetSystemAssignments.entities.assetSystemAssignment.fields.assetId.title',\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.LookupBox,\n options: {\n entity: `${RootConfig.module.name}.${RootConfig.entities.asset.name}`,\n textField: 'title',\n valueField: 'id',\n expose: [{ source: 'title', target: 'asset.title' }],\n },\n },\n },\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'startDate',\n title: '@asset-management:assetSystemAssignments.entities.assetSystemAssignment.fields.startDate.title',\n groupId: 'basic-info',\n schema: {\n dataType: 'date',\n interface: {\n type: AXPWidgetsList.Editors.DateTimeBox,\n options: { format: 'date' },\n },\n },\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'endDate',\n title: '@asset-management:assetSystemAssignments.entities.assetSystemAssignment.fields.endDate.title',\n groupId: 'basic-info',\n schema: {\n dataType: 'date',\n nullable: true,\n interface: {\n type: AXPWidgetsList.Editors.DateTimeBox,\n options: { format: 'date' },\n },\n },\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n },\n {\n name: 'description',\n title: '@asset-management:assetSystemAssignments.entities.assetSystemAssignment.fields.description.title',\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.LargeTextBox,\n options: { rows: 3 },\n },\n },\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n },\n ],\n columns: [\n { name: 'assetId', options: { dataPath: 'asset.title', order: 1 } },\n { name: 'startDate', options: { order: 2 } },\n { name: 'endDate', options: { order: 3 } },\n { name: 'description', options: { order: 4 } },\n ],\n queries: {},\n interfaces: {\n master: {\n create: {\n sections: [{ id: 'basic-info', order: 1 }],\n properties: [\n { name: 'assetSystemId', layout: { positions: { lg: { colSpan: 12, order: 1 } } } },\n { name: 'assetId', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },\n { name: 'startDate', layout: { positions: { lg: { colSpan: 6, order: 3 } } } },\n { name: 'endDate', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 5 } } } },\n ],\n },\n update: {\n sections: [{ id: 'basic-info', order: 1 }],\n properties: [\n { name: 'assetSystemId', layout: { positions: { lg: { colSpan: 12, order: 1 } } } },\n { name: 'assetId', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },\n { name: 'startDate', layout: { positions: { lg: { colSpan: 6, order: 3 } } } },\n { name: 'endDate', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 5 } } } },\n ],\n },\n single: {\n title: '{{ startDate }}',\n sections: [{ id: 'basic-info', order: 1 }],\n properties: [\n { name: 'assetSystemId', layout: { positions: { lg: { colSpan: 12, order: 1 } } } },\n { name: 'assetId', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },\n { name: 'startDate', layout: { positions: { lg: { colSpan: 6, order: 3 } } } },\n { name: 'endDate', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 5 } } } },\n ],\n actions: [...entityMasterRecordActions()],\n },\n list: {\n actions: [...entityMasterCrudActions()],\n views: [\n createAllQueryView({\n sorts: [\n { name: 'startDate', dir: 'desc' },\n { name: 'endDate', dir: 'desc' },\n ],\n }),\n ],\n },\n },\n },\n };\n\n return entityDef;\n}\n\n//#endregion\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './entity-entry.asset-system-assignment';\n"],"names":[],"mappings":";;;AAAA;AAEA,MAAM,MAAM,GAAG;AACb,IAAA,IAAI,EAAE,kBAAkB;AACxB,IAAA,MAAM,EAAE,iBAAiB;AACzB,IAAA,KAAK,EAAE,kBAAkB;CAC1B;AAEM,MAAM,UAAU,GAAG;IACxB,MAAM;AACN,IAAA,MAAM,EAAE;QACN,KAAK,EAAE,MAAM,CAAC,KAAK;QACnB,IAAI,EAAE,MAAM,CAAC,MAAM;AACnB,QAAA,KAAK,EAAE,gCAAgC;AACvC,QAAA,IAAI,EAAE,sBAAsB;AAC7B,KAAA;AACD,IAAA,QAAQ,EAAE;AACR,QAAA,kBAAkB,EAAE;AAClB,YAAA,IAAI,EAAE,oBAAoB;AAC1B,YAAA,MAAM,EAAE,CAAA,EAAG,MAAM,CAAC,MAAM,CAAA,mBAAA,CAAqB;AAC7C,YAAA,KAAK,EAAE,0EAA0E;AACjF,YAAA,WAAW,EAAE,2EAA2E;AACxF,YAAA,IAAI,EAAE,2BAA2B;AAClC,SAAA;AACD,QAAA,qBAAqB,EAAE;AACrB,YAAA,IAAI,EAAE,uBAAuB;AAC7B,YAAA,MAAM,EAAE,CAAA,EAAG,MAAM,CAAC,MAAM,CAAA,sBAAA,CAAwB;AAChD,YAAA,KAAK,EAAE,+EAA+E;AACtF,YAAA,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AE,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;AACjB,4BAAA,KAAK,EAAE;AACL,gCAAA,EAAE,IAAI,EAAE,WAAW,EAAE,GAAG,EAAE,MAAM,EAAE;AAClC,gCAAA,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,EAAE;AACjC,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AAED,IAAA,OAAO,SAAS;AAClB;AAEA;;AC9LA;;AAEG;;;;"}
|
|
@@ -0,0 +1,328 @@
|
|
|
1
|
+
import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';
|
|
2
|
+
import { createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';
|
|
3
|
+
|
|
4
|
+
//#region ---- Root Configuration ----
|
|
5
|
+
const config = {
|
|
6
|
+
i18n: 'asset-management',
|
|
7
|
+
module: 'AssetManagement',
|
|
8
|
+
route: 'asset-management',
|
|
9
|
+
};
|
|
10
|
+
const RootConfig = {
|
|
11
|
+
config,
|
|
12
|
+
module: {
|
|
13
|
+
route: config.route,
|
|
14
|
+
name: config.module,
|
|
15
|
+
title: '@asset-management:module.title',
|
|
16
|
+
icon: 'fa-light fa-industry',
|
|
17
|
+
},
|
|
18
|
+
entities: {
|
|
19
|
+
assetRentalHistory: {
|
|
20
|
+
name: 'AssetRentalHistory',
|
|
21
|
+
source: `${config.module}.AssetRentalHistory`,
|
|
22
|
+
title: '@asset-management:assetRentalHistories.entities.assetRentalHistory.title',
|
|
23
|
+
titlePlural: '@asset-management:assetRentalHistories.entities.assetRentalHistory.plural',
|
|
24
|
+
icon: 'fa-light fa-file-contract',
|
|
25
|
+
},
|
|
26
|
+
assetSystemAssignment: {
|
|
27
|
+
name: 'AssetSystemAssignment',
|
|
28
|
+
source: `${config.module}.AssetSystemAssignment`,
|
|
29
|
+
title: '@asset-management:assetSystemAssignments.entities.assetSystemAssignment.title',
|
|
30
|
+
titlePlural: '@asset-management:assetSystemAssignments.entities.assetSystemAssignment.plural',
|
|
31
|
+
icon: 'fa-light fa-link',
|
|
32
|
+
},
|
|
33
|
+
asset: {
|
|
34
|
+
name: 'Asset',
|
|
35
|
+
source: `${config.module}.Asset`,
|
|
36
|
+
title: '@asset-management:assets.entities.asset.title',
|
|
37
|
+
titlePlural: '@asset-management:assets.entities.asset.plural',
|
|
38
|
+
icon: 'fa-light fa-box',
|
|
39
|
+
},
|
|
40
|
+
assetType: {
|
|
41
|
+
name: 'AssetType',
|
|
42
|
+
source: `${config.module}.AssetType`,
|
|
43
|
+
title: '@asset-management:assetTypes.entities.assetType.title',
|
|
44
|
+
titlePlural: '@asset-management:assetTypes.entities.assetType.plural',
|
|
45
|
+
icon: 'fa-light fa-cubes',
|
|
46
|
+
},
|
|
47
|
+
assetTypeSection: {
|
|
48
|
+
name: 'AssetTypeSection',
|
|
49
|
+
source: `${config.module}.AssetTypeSection`,
|
|
50
|
+
title: '@asset-management:assetTypeSections.entities.assetTypeSection.title',
|
|
51
|
+
titlePlural: '@asset-management:assetTypeSections.entities.assetTypeSection.plural',
|
|
52
|
+
icon: 'fa-light fa-layer-group',
|
|
53
|
+
},
|
|
54
|
+
assetTypeSectionComponent: {
|
|
55
|
+
name: 'AssetTypeSectionComponent',
|
|
56
|
+
source: `${config.module}.AssetTypeSectionComponent`,
|
|
57
|
+
title: '@asset-management:assetTypeSectionComponents.entities.assetTypeSectionComponent.title',
|
|
58
|
+
titlePlural: '@asset-management:assetTypeSectionComponents.entities.assetTypeSectionComponent.plural',
|
|
59
|
+
icon: 'fa-light fa-puzzle-piece',
|
|
60
|
+
},
|
|
61
|
+
assetSystemType: {
|
|
62
|
+
name: 'AssetSystemType',
|
|
63
|
+
source: `${config.module}.AssetSystemType`,
|
|
64
|
+
title: '@asset-management:assetSystemTypes.entities.assetSystemType.title',
|
|
65
|
+
titlePlural: '@asset-management:assetSystemTypes.entities.assetSystemType.plural',
|
|
66
|
+
icon: 'fa-light fa-diagram-subtask',
|
|
67
|
+
},
|
|
68
|
+
assetSystem: {
|
|
69
|
+
name: 'AssetSystem',
|
|
70
|
+
source: `${config.module}.AssetSystem`,
|
|
71
|
+
title: 'Asset System',
|
|
72
|
+
titlePlural: 'Asset Systems',
|
|
73
|
+
icon: 'fa-light fa-diagram-project',
|
|
74
|
+
},
|
|
75
|
+
manualAssetCategory: {
|
|
76
|
+
name: 'ManualAssetCategory',
|
|
77
|
+
source: `${config.module}.ManualAssetCategory`,
|
|
78
|
+
title: '@asset-management:asset-categories.entities.asset-category.title',
|
|
79
|
+
titlePlural: '@asset-management:asset-categories.entities.asset-category.plural',
|
|
80
|
+
icon: 'fa-light fa-tags',
|
|
81
|
+
},
|
|
82
|
+
// inspection: {
|
|
83
|
+
// name: 'Inspection',
|
|
84
|
+
// source: `${config.module}.Inspection`,
|
|
85
|
+
// title: '@asset-management:inspections.entities.inspection.title',
|
|
86
|
+
// titlePlural: '@asset-management:inspections.entities.inspection.plural',
|
|
87
|
+
// icon: 'fa-light fa-clipboard-check',
|
|
88
|
+
// },
|
|
89
|
+
// assetStatus: {
|
|
90
|
+
// name: 'AssetStatus',
|
|
91
|
+
// source: `${config.module}.AssetStatus`,
|
|
92
|
+
// title: '@asset-management:asset-statuses.entities.asset-status.title',
|
|
93
|
+
// titlePlural: '@asset-management:asset-statuses.entities.asset-status.plural',
|
|
94
|
+
// icon: 'fa-light fa-signal',
|
|
95
|
+
// },
|
|
96
|
+
},
|
|
97
|
+
queries: {
|
|
98
|
+
reports: {
|
|
99
|
+
getAssetsByStatus: `${config.module}:Reports:GetAssetsByStatus`,
|
|
100
|
+
getRentalUtilization: `${config.module}:Reports:GetRentalUtilization`,
|
|
101
|
+
},
|
|
102
|
+
},
|
|
103
|
+
};
|
|
104
|
+
//#endregion
|
|
105
|
+
|
|
106
|
+
//#endregion
|
|
107
|
+
//#region ---- Entity Factory ----
|
|
108
|
+
async function factoryAssetSystemType() {
|
|
109
|
+
const entityDef = {
|
|
110
|
+
module: RootConfig.module.name,
|
|
111
|
+
name: RootConfig.entities.assetSystemType.name,
|
|
112
|
+
title: RootConfig.entities.assetSystemType.title,
|
|
113
|
+
icon: RootConfig.entities.assetSystemType.icon,
|
|
114
|
+
parentKey: 'parentId',
|
|
115
|
+
plugins: [
|
|
116
|
+
{ name: 'history' },
|
|
117
|
+
{ name: 'unique-fields', options: { fields: 'code', scope: 'global' } },
|
|
118
|
+
{ name: 'meta-data-builder', options: { display: 'page' } },
|
|
119
|
+
{
|
|
120
|
+
name: 'identifier',
|
|
121
|
+
options: { field: 'code', rule: 'asset-system-type-code' },
|
|
122
|
+
},
|
|
123
|
+
],
|
|
124
|
+
relatedEntities: [],
|
|
125
|
+
formats: {
|
|
126
|
+
individual: RootConfig.entities.assetSystemType.title,
|
|
127
|
+
plural: RootConfig.entities.assetSystemType.titlePlural,
|
|
128
|
+
searchResult: { title: '{{ title }}' },
|
|
129
|
+
},
|
|
130
|
+
groups: [
|
|
131
|
+
{
|
|
132
|
+
id: 'basic-info',
|
|
133
|
+
title: '@asset-management:assetSystemTypes.entities.assetSystemType.groups.basic-info',
|
|
134
|
+
},
|
|
135
|
+
],
|
|
136
|
+
properties: [
|
|
137
|
+
{
|
|
138
|
+
name: 'id',
|
|
139
|
+
title: '@asset-management:assetSystemTypes.entities.assetSystemType.fields.id.title',
|
|
140
|
+
schema: {
|
|
141
|
+
dataType: 'uuid',
|
|
142
|
+
visible: false,
|
|
143
|
+
nullable: false,
|
|
144
|
+
readonly: true,
|
|
145
|
+
unique: { enabled: true },
|
|
146
|
+
},
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
name: 'code',
|
|
150
|
+
title: '@asset-management:assetSystemTypes.entities.assetSystemType.fields.code.title',
|
|
151
|
+
groupId: 'basic-info',
|
|
152
|
+
schema: {
|
|
153
|
+
dataType: 'string',
|
|
154
|
+
unique: { enabled: true },
|
|
155
|
+
interface: {
|
|
156
|
+
type: AXPWidgetsList.Editors.TextBox,
|
|
157
|
+
options: {
|
|
158
|
+
disabled: true,
|
|
159
|
+
},
|
|
160
|
+
},
|
|
161
|
+
},
|
|
162
|
+
options: {
|
|
163
|
+
sort: { enabled: true },
|
|
164
|
+
filter: { advance: { enabled: true }, inline: { enabled: true } },
|
|
165
|
+
},
|
|
166
|
+
validations: [{ rule: 'required' }],
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
name: 'title',
|
|
170
|
+
title: '@asset-management:assetSystemTypes.entities.assetSystemType.fields.title.title',
|
|
171
|
+
groupId: 'basic-info',
|
|
172
|
+
schema: {
|
|
173
|
+
dataType: 'string',
|
|
174
|
+
interface: {
|
|
175
|
+
type: AXPWidgetsList.Editors.TextBox,
|
|
176
|
+
},
|
|
177
|
+
},
|
|
178
|
+
options: {
|
|
179
|
+
sort: { enabled: true },
|
|
180
|
+
filter: { advance: { enabled: true }, inline: { enabled: true } },
|
|
181
|
+
},
|
|
182
|
+
validations: [{ rule: 'required' }],
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
name: 'description',
|
|
186
|
+
title: '@asset-management:assetSystemTypes.entities.assetSystemType.fields.description.title',
|
|
187
|
+
groupId: 'basic-info',
|
|
188
|
+
schema: {
|
|
189
|
+
dataType: 'string',
|
|
190
|
+
interface: {
|
|
191
|
+
type: AXPWidgetsList.Editors.LargeTextBox,
|
|
192
|
+
},
|
|
193
|
+
},
|
|
194
|
+
options: {
|
|
195
|
+
sort: { enabled: false },
|
|
196
|
+
filter: { advance: { enabled: true }, inline: { enabled: false } },
|
|
197
|
+
},
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
name: 'parentId',
|
|
201
|
+
title: '@asset-management:assetSystemTypes.entities.assetSystemType.fields.parentId.title',
|
|
202
|
+
groupId: 'basic-info',
|
|
203
|
+
schema: {
|
|
204
|
+
dataType: 'string',
|
|
205
|
+
nullable: true,
|
|
206
|
+
interface: {
|
|
207
|
+
type: AXPWidgetsList.Editors.LookupBox,
|
|
208
|
+
options: {
|
|
209
|
+
entity: `${RootConfig.module.name}.${RootConfig.entities.assetSystemType.name}`,
|
|
210
|
+
textField: 'title',
|
|
211
|
+
valueField: 'id',
|
|
212
|
+
look: 'select',
|
|
213
|
+
expose: [
|
|
214
|
+
{ source: 'id', target: 'parent.id' },
|
|
215
|
+
{ source: 'title', target: 'parent.title' },
|
|
216
|
+
],
|
|
217
|
+
triggers: [
|
|
218
|
+
{
|
|
219
|
+
event: "{{ events.context('parentId') }}",
|
|
220
|
+
action: '{{ context.set("parent.hasChild", context.eval("parentId") ? true : null) }}',
|
|
221
|
+
},
|
|
222
|
+
],
|
|
223
|
+
},
|
|
224
|
+
},
|
|
225
|
+
},
|
|
226
|
+
options: {
|
|
227
|
+
sort: { enabled: true },
|
|
228
|
+
filter: { advance: { enabled: true }, inline: { enabled: true } },
|
|
229
|
+
},
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
name: 'parent',
|
|
233
|
+
title: '@asset-management:assetSystemTypes.entities.assetSystemType.fields.parent.title',
|
|
234
|
+
schema: { dataType: 'object', visible: false, readonly: true },
|
|
235
|
+
},
|
|
236
|
+
],
|
|
237
|
+
columns: [
|
|
238
|
+
{ name: 'code' },
|
|
239
|
+
{ name: 'title' },
|
|
240
|
+
{ name: 'description' },
|
|
241
|
+
{ name: 'parentId', options: { dataPath: 'parent' } },
|
|
242
|
+
],
|
|
243
|
+
interfaces: {
|
|
244
|
+
master: {
|
|
245
|
+
create: {
|
|
246
|
+
sections: [{ id: 'basic-info', order: 1 }],
|
|
247
|
+
properties: [
|
|
248
|
+
{
|
|
249
|
+
name: 'code',
|
|
250
|
+
layout: { positions: { lg: { colSpan: 6, order: 1 } } },
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
name: 'title',
|
|
254
|
+
layout: { positions: { lg: { colSpan: 6, order: 2 } } },
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
name: 'description',
|
|
258
|
+
layout: { positions: { lg: { colSpan: 12, order: 3 } } },
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
name: 'parentId',
|
|
262
|
+
layout: { positions: { lg: { colSpan: 6, order: 4 } } },
|
|
263
|
+
},
|
|
264
|
+
],
|
|
265
|
+
},
|
|
266
|
+
update: {
|
|
267
|
+
sections: [{ id: 'basic-info', order: 1 }],
|
|
268
|
+
properties: [
|
|
269
|
+
{
|
|
270
|
+
name: 'code',
|
|
271
|
+
layout: { positions: { lg: { colSpan: 6, order: 1 } } },
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
name: 'title',
|
|
275
|
+
layout: { positions: { lg: { colSpan: 6, order: 2 } } },
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
name: 'description',
|
|
279
|
+
layout: { positions: { lg: { colSpan: 12, order: 3 } } },
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
name: 'parentId',
|
|
283
|
+
layout: { positions: { lg: { colSpan: 6, order: 4 } } },
|
|
284
|
+
},
|
|
285
|
+
],
|
|
286
|
+
},
|
|
287
|
+
single: {
|
|
288
|
+
title: '{{ title }}',
|
|
289
|
+
sections: [{ id: 'basic-info', order: 1 }],
|
|
290
|
+
properties: [
|
|
291
|
+
{
|
|
292
|
+
name: 'code',
|
|
293
|
+
layout: { positions: { lg: { colSpan: 6, order: 1 } } },
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
name: 'title',
|
|
297
|
+
layout: { positions: { lg: { colSpan: 6, order: 2 } } },
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
name: 'description',
|
|
301
|
+
layout: { positions: { lg: { colSpan: 12, order: 3 } } },
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
name: 'parentId',
|
|
305
|
+
layout: { positions: { lg: { colSpan: 6, order: 4 } } },
|
|
306
|
+
},
|
|
307
|
+
],
|
|
308
|
+
actions: [...entityMasterRecordActions()],
|
|
309
|
+
},
|
|
310
|
+
list: {
|
|
311
|
+
actions: [...entityMasterCrudActions()],
|
|
312
|
+
views: [
|
|
313
|
+
createAllQueryView({ sorts: [{ name: 'code', dir: 'asc' }] }),
|
|
314
|
+
],
|
|
315
|
+
},
|
|
316
|
+
},
|
|
317
|
+
},
|
|
318
|
+
};
|
|
319
|
+
return entityDef;
|
|
320
|
+
}
|
|
321
|
+
//#endregion
|
|
322
|
+
|
|
323
|
+
/**
|
|
324
|
+
* Generated bundle index. Do not edit.
|
|
325
|
+
*/
|
|
326
|
+
|
|
327
|
+
export { factoryAssetSystemType };
|
|
328
|
+
//# sourceMappingURL=acorex-platform-module-asset-management-client-contracts-entities-asset-system-type.mjs.map
|