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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/fesm2022/acorex-platform-module-asset-management-client-asset-lifecycle.provider-BDaCpGsv.mjs.map +1 -1
  2. package/fesm2022/acorex-platform-module-asset-management-client-asset-rental-history-status.provider-DwhQPb0-.mjs.map +1 -1
  3. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entities-asset-rental-history.mjs +536 -0
  4. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entities-asset-rental-history.mjs.map +1 -0
  5. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entities-asset-system-assignment.mjs +294 -0
  6. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entities-asset-system-assignment.mjs.map +1 -0
  7. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entities-asset-system-type.mjs +328 -0
  8. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entities-asset-system-type.mjs.map +1 -0
  9. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entities-asset-system.mjs +316 -0
  10. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entities-asset-system.mjs.map +1 -0
  11. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entities-asset-type-section-component.mjs +348 -0
  12. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entities-asset-type-section-component.mjs.map +1 -0
  13. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entities-asset-type-section.mjs +252 -0
  14. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entities-asset-type-section.mjs.map +1 -0
  15. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entities-asset-type.mjs +476 -0
  16. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entities-asset-type.mjs.map +1 -0
  17. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entities-asset.mjs +1123 -0
  18. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entities-asset.mjs.map +1 -0
  19. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entity-catalog-ASSET_TYPE_COMPONENTS_PAGE_COMPONENT_KEY-Jlv8czA2.mjs +5 -0
  20. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entity-catalog-ASSET_TYPE_COMPONENTS_PAGE_COMPONENT_KEY-Jlv8czA2.mjs.map +1 -0
  21. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entity-catalog-acorex-platform-module-asset-management-client-contracts-entity-catalog-zq5ishZC.mjs +131 -0
  22. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entity-catalog-acorex-platform-module-asset-management-client-contracts-entity-catalog-zq5ishZC.mjs.map +1 -0
  23. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entity-catalog-asset-rental-history.entity-CldKruJ6.mjs +431 -0
  24. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entity-catalog-asset-rental-history.entity-CldKruJ6.mjs.map +1 -0
  25. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entity-catalog-asset-system-assignment.entity-BVmBaNdk.mjs +189 -0
  26. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entity-catalog-asset-system-assignment.entity-BVmBaNdk.mjs.map +1 -0
  27. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entity-catalog-asset-system-type.entity-CXBtrDgS.mjs +223 -0
  28. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entity-catalog-asset-system-type.entity-CXBtrDgS.mjs.map +1 -0
  29. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entity-catalog-asset-system.entity-Bc8WJQff.mjs +211 -0
  30. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entity-catalog-asset-system.entity-Bc8WJQff.mjs.map +1 -0
  31. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entity-catalog-asset-type-section-component.entity-BJ-kv3eg.mjs +243 -0
  32. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entity-catalog-asset-type-section-component.entity-BJ-kv3eg.mjs.map +1 -0
  33. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entity-catalog-asset-type-section.entity-Bkgb9pRD.mjs +145 -0
  34. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entity-catalog-asset-type-section.entity-Bkgb9pRD.mjs.map +1 -0
  35. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entity-catalog-asset-type.entity-9gozE1Z0.mjs +369 -0
  36. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entity-catalog-asset-type.entity-9gozE1Z0.mjs.map +1 -0
  37. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entity-catalog-asset.entity-JDs4GpIw.mjs +1016 -0
  38. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entity-catalog-asset.entity-JDs4GpIw.mjs.map +1 -0
  39. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entity-catalog.mjs +2 -0
  40. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entity-catalog.mjs.map +1 -0
  41. package/fesm2022/acorex-platform-module-asset-management-client-contracts.mjs.map +1 -1
  42. package/fesm2022/acorex-platform-module-asset-management-client-local-entities.mjs +36 -0
  43. package/fesm2022/acorex-platform-module-asset-management-client-local-entities.mjs.map +1 -0
  44. package/fesm2022/acorex-platform-module-asset-management-client-recalculate-asset-operational-status.activity-ueTauO_k.mjs.map +1 -1
  45. package/fesm2022/acorex-platform-module-asset-management-client.mjs +1 -1
  46. package/fesm2022/acorex-platform-module-asset-management-client.mjs.map +1 -1
  47. package/package.json +42 -2
  48. package/types/acorex-platform-module-asset-management-client-contracts-entities-asset-rental-history.d.ts +5 -0
  49. package/types/acorex-platform-module-asset-management-client-contracts-entities-asset-system-assignment.d.ts +5 -0
  50. package/types/acorex-platform-module-asset-management-client-contracts-entities-asset-system-type.d.ts +5 -0
  51. package/types/acorex-platform-module-asset-management-client-contracts-entities-asset-system.d.ts +5 -0
  52. package/types/acorex-platform-module-asset-management-client-contracts-entities-asset-type-section-component.d.ts +10 -0
  53. package/types/acorex-platform-module-asset-management-client-contracts-entities-asset-type-section.d.ts +10 -0
  54. package/types/acorex-platform-module-asset-management-client-contracts-entities-asset-type.d.ts +9 -0
  55. package/types/acorex-platform-module-asset-management-client-contracts-entities-asset.d.ts +5 -0
  56. package/types/acorex-platform-module-asset-management-client-contracts-entity-catalog.d.ts +10 -0
  57. package/types/acorex-platform-module-asset-management-client-local-entities.d.ts +12 -0
@@ -0,0 +1,1123 @@
1
+ import { AXPSystemActionType, AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';
2
+ import { AXPEntityCommandScope, entityMasterCrudActions, createAllQueryView, entityMasterRecordActions, entityDetailsEditAction, entityDetailsSimpleCondition, entityDetailsCrudActions } from '@acorex-platform/framework-shared/entity';
3
+
4
+ /** Asset booking catalog scope for questionnaires, question bank items, and workflow definitions. */
5
+ const ASSET_CATALOG_SCOPE_BOOKING = 'asset-management.booking';
6
+
7
+ /** Registry key for the asset type Components custom page tab. */
8
+ const ASSET_TYPE_COMPONENTS_PAGE_COMPONENT_KEY = 'asset-type-components-page';
9
+
10
+ //#region ---- Command keys ----
11
+ const AXMAssetManagementCommandKeys = {
12
+ AssetRentalHistory: {
13
+ RentFrom: 'AssetManagement.AssetRentalHistory:RentFrom',
14
+ RentTo: 'AssetManagement.AssetRentalHistory:RentTo',
15
+ },
16
+ WorkflowActivity: {
17
+ RecalculateOperationalStatus: 'workflow-activity:recalculate-asset-operational-status',
18
+ },
19
+ };
20
+ //#endregion
21
+
22
+ //#region ---- Rent list actions ----
23
+ /** Type-level create actions for rent-from / rent-to (list and asset related-entity). */
24
+ const assetRentalHistoryRentActions = [
25
+ {
26
+ name: 'rent-from',
27
+ title: '@asset-management:assetRentalHistories.entities.assetRentalHistory.actions.rent-from.title',
28
+ command: {
29
+ name: AXMAssetManagementCommandKeys.AssetRentalHistory.RentFrom,
30
+ options: {
31
+ process: {
32
+ redirect: false,
33
+ canCreateNewOne: true,
34
+ data: { assetId: '{{context.eval("id")}}' },
35
+ },
36
+ },
37
+ },
38
+ priority: 'primary',
39
+ type: AXPSystemActionType.Create,
40
+ scope: AXPEntityCommandScope.TypeLevel,
41
+ },
42
+ {
43
+ name: 'rent-to',
44
+ title: '@asset-management:assetRentalHistories.entities.assetRentalHistory.actions.rent-to.title',
45
+ command: {
46
+ name: AXMAssetManagementCommandKeys.AssetRentalHistory.RentTo,
47
+ options: {
48
+ process: {
49
+ redirect: false,
50
+ canCreateNewOne: true,
51
+ data: { assetId: '{{context.eval("id")}}' },
52
+ },
53
+ },
54
+ },
55
+ priority: 'primary',
56
+ type: AXPSystemActionType.Create,
57
+ scope: AXPEntityCommandScope.TypeLevel,
58
+ },
59
+ ...entityMasterCrudActions({ create: false, view: false }),
60
+ ];
61
+ //#endregion
62
+
63
+ /** Status provider key for `lifecycleStatusId` on AssetManagement.Asset (lifecycle status). */
64
+ const AXM_ASSET_LIFECYCLE_STATUS_DEFINITION_KEY = 'asset-management.status.asset-lifecycle';
65
+
66
+ /** Status provider key for `statusId` on AssetManagement.Asset (operational status). */
67
+ const AXM_ASSET_STATUS_DEFINITION_KEY = 'asset-management.status.asset';
68
+
69
+ //#region ---- Status enum ----
70
+ var AXMAssetLifecycleStatus;
71
+ (function (AXMAssetLifecycleStatus) {
72
+ AXMAssetLifecycleStatus["Created"] = "created";
73
+ AXMAssetLifecycleStatus["Active"] = "active";
74
+ AXMAssetLifecycleStatus["Retired"] = "retired";
75
+ AXMAssetLifecycleStatus["Disposed"] = "disposed";
76
+ })(AXMAssetLifecycleStatus || (AXMAssetLifecycleStatus = {}));
77
+
78
+ //#region ---- Status enum ----
79
+ var AXMAssetStatus;
80
+ (function (AXMAssetStatus) {
81
+ AXMAssetStatus["Available"] = "available";
82
+ AXMAssetStatus["Assigned"] = "assigned";
83
+ AXMAssetStatus["UnderMaintenanceInspection"] = "underMaintenanceInspection";
84
+ AXMAssetStatus["OutOfService"] = "outOfService";
85
+ AXMAssetStatus["Lost"] = "lost";
86
+ })(AXMAssetStatus || (AXMAssetStatus = {}));
87
+ //#endregion
88
+
89
+ //#region ---- Root Configuration ----
90
+ const config = {
91
+ i18n: 'asset-management',
92
+ module: 'AssetManagement',
93
+ route: 'asset-management',
94
+ };
95
+ const RootConfig = {
96
+ config,
97
+ module: {
98
+ route: config.route,
99
+ name: config.module,
100
+ title: '@asset-management:module.title',
101
+ icon: 'fa-light fa-industry',
102
+ },
103
+ entities: {
104
+ assetRentalHistory: {
105
+ name: 'AssetRentalHistory',
106
+ source: `${config.module}.AssetRentalHistory`,
107
+ title: '@asset-management:assetRentalHistories.entities.assetRentalHistory.title',
108
+ titlePlural: '@asset-management:assetRentalHistories.entities.assetRentalHistory.plural',
109
+ icon: 'fa-light fa-file-contract',
110
+ },
111
+ assetSystemAssignment: {
112
+ name: 'AssetSystemAssignment',
113
+ source: `${config.module}.AssetSystemAssignment`,
114
+ title: '@asset-management:assetSystemAssignments.entities.assetSystemAssignment.title',
115
+ titlePlural: '@asset-management:assetSystemAssignments.entities.assetSystemAssignment.plural',
116
+ icon: 'fa-light fa-link',
117
+ },
118
+ asset: {
119
+ name: 'Asset',
120
+ source: `${config.module}.Asset`,
121
+ title: '@asset-management:assets.entities.asset.title',
122
+ titlePlural: '@asset-management:assets.entities.asset.plural',
123
+ icon: 'fa-light fa-box',
124
+ },
125
+ assetType: {
126
+ name: 'AssetType',
127
+ source: `${config.module}.AssetType`,
128
+ title: '@asset-management:assetTypes.entities.assetType.title',
129
+ titlePlural: '@asset-management:assetTypes.entities.assetType.plural',
130
+ icon: 'fa-light fa-cubes',
131
+ },
132
+ assetTypeSection: {
133
+ name: 'AssetTypeSection',
134
+ source: `${config.module}.AssetTypeSection`,
135
+ title: '@asset-management:assetTypeSections.entities.assetTypeSection.title',
136
+ titlePlural: '@asset-management:assetTypeSections.entities.assetTypeSection.plural',
137
+ icon: 'fa-light fa-layer-group',
138
+ },
139
+ assetTypeSectionComponent: {
140
+ name: 'AssetTypeSectionComponent',
141
+ source: `${config.module}.AssetTypeSectionComponent`,
142
+ title: '@asset-management:assetTypeSectionComponents.entities.assetTypeSectionComponent.title',
143
+ titlePlural: '@asset-management:assetTypeSectionComponents.entities.assetTypeSectionComponent.plural',
144
+ icon: 'fa-light fa-puzzle-piece',
145
+ },
146
+ assetSystemType: {
147
+ name: 'AssetSystemType',
148
+ source: `${config.module}.AssetSystemType`,
149
+ title: '@asset-management:assetSystemTypes.entities.assetSystemType.title',
150
+ titlePlural: '@asset-management:assetSystemTypes.entities.assetSystemType.plural',
151
+ icon: 'fa-light fa-diagram-subtask',
152
+ },
153
+ assetSystem: {
154
+ name: 'AssetSystem',
155
+ source: `${config.module}.AssetSystem`,
156
+ title: 'Asset System',
157
+ titlePlural: 'Asset Systems',
158
+ icon: 'fa-light fa-diagram-project',
159
+ },
160
+ manualAssetCategory: {
161
+ name: 'ManualAssetCategory',
162
+ source: `${config.module}.ManualAssetCategory`,
163
+ title: '@asset-management:asset-categories.entities.asset-category.title',
164
+ titlePlural: '@asset-management:asset-categories.entities.asset-category.plural',
165
+ icon: 'fa-light fa-tags',
166
+ },
167
+ // inspection: {
168
+ // name: 'Inspection',
169
+ // source: `${config.module}.Inspection`,
170
+ // title: '@asset-management:inspections.entities.inspection.title',
171
+ // titlePlural: '@asset-management:inspections.entities.inspection.plural',
172
+ // icon: 'fa-light fa-clipboard-check',
173
+ // },
174
+ // assetStatus: {
175
+ // name: 'AssetStatus',
176
+ // source: `${config.module}.AssetStatus`,
177
+ // title: '@asset-management:asset-statuses.entities.asset-status.title',
178
+ // titlePlural: '@asset-management:asset-statuses.entities.asset-status.plural',
179
+ // icon: 'fa-light fa-signal',
180
+ // },
181
+ },
182
+ queries: {
183
+ reports: {
184
+ getAssetsByStatus: `${config.module}:Reports:GetAssetsByStatus`,
185
+ getRentalUtilization: `${config.module}:Reports:GetRentalUtilization`,
186
+ },
187
+ },
188
+ };
189
+ //#endregion
190
+
191
+ //#endregion
192
+ async function factoryAsset() {
193
+ const hideMaintenanceRelatedEntities = '{{ ![true, "true", 1, "1"].includes(context.eval("assetType.hasMaintenance")) && ![true, "true", 1, "1"].includes(context.eval("hasMaintenance")) }}';
194
+ const entityDef = {
195
+ module: RootConfig.module.name,
196
+ name: RootConfig.entities.asset.name,
197
+ title: RootConfig.entities.asset.title,
198
+ icon: RootConfig.entities.asset.icon,
199
+ plugins: [
200
+ { name: 'history' },
201
+ { name: 'compare' },
202
+ { name: 'identifier', options: { field: 'code', rule: 'asset-code' } },
203
+ { name: 'unique-fields', options: { fields: 'code', scope: 'global' } },
204
+ {
205
+ name: 'meta-data-form',
206
+ options: {
207
+ path: 'assetTypeId',
208
+ title: '@asset-management:assets.entities.asset.components.meta-data-form.title',
209
+ display: {
210
+ section: {
211
+ order: 3,
212
+ },
213
+ },
214
+ },
215
+ },
216
+ {
217
+ name: 'status',
218
+ options: {
219
+ field: 'lifecycleStatusId',
220
+ definition: AXM_ASSET_LIFECYCLE_STATUS_DEFINITION_KEY,
221
+ defaultStatus: AXMAssetLifecycleStatus.Created,
222
+ isPrimary: false,
223
+ groupId: 'lifecycle-status',
224
+ title: '@asset-management:assets.entities.asset.fields.lifecycle-status.title',
225
+ showInCreate: false,
226
+ readonly: false,
227
+ generate: { views: { enabled: false } },
228
+ },
229
+ },
230
+ {
231
+ name: 'status',
232
+ options: {
233
+ field: 'statusId',
234
+ definition: AXM_ASSET_STATUS_DEFINITION_KEY,
235
+ defaultStatus: AXMAssetStatus.Available,
236
+ isPrimary: true,
237
+ groupId: 'lifecycle-status',
238
+ title: '@asset-management:assets.entities.asset.fields.status.title',
239
+ showInCreate: false,
240
+ readonly: false,
241
+ generate: { views: { enabled: true } },
242
+ },
243
+ },
244
+ { name: 'tags' },
245
+ {
246
+ name: 'documents',
247
+ options: { documentTypeNames: ['manualEquipment'], order: 50 },
248
+ },
249
+ { name: 'comments', options: { display: 'page', order: 60 } },
250
+ { name: 'reports' },
251
+ ],
252
+ relatedEntities: [
253
+ {
254
+ entity: `${RootConfig.module.name}.${RootConfig.entities.assetRentalHistory.name}`,
255
+ title: RootConfig.entities.assetRentalHistory.titlePlural,
256
+ icon: RootConfig.entities.assetRentalHistory.icon,
257
+ hidden: `{{ !context.eval("id") || ![true, "true", 1, "1"].includes(context.eval("isRented")) }}`,
258
+ conditions: [entityDetailsSimpleCondition('assetId')],
259
+ persistence: { foreignKeyField: 'assetId' },
260
+ excludeProperties: ['assetId'],
261
+ actions: [...assetRentalHistoryRentActions, entityDetailsEditAction()],
262
+ layout: { type: 'page-list', position: 'after', order: 10 },
263
+ },
264
+ {
265
+ entity: 'MaintenanceManagement.MaintenancePlan',
266
+ title: '@asset-management:assets.entities.asset.related-entities.maintenance-plans.title',
267
+ icon: 'fa-light fa-calendar-check',
268
+ hidden: hideMaintenanceRelatedEntities,
269
+ conditions: [entityDetailsSimpleCondition('assetId')],
270
+ actions: [
271
+ {
272
+ title: '@general:actions.create.title',
273
+ command: {
274
+ name: 'Entity:Create',
275
+ options: {
276
+ process: {
277
+ redirect: false,
278
+ canCreateNewOne: true,
279
+ data: {
280
+ assetId: '{{ context.eval("id") }}',
281
+ asset: {
282
+ id: '{{ context.eval("id") }}',
283
+ title: '{{ context.eval("title", { pipes: ["translate"] }) }}',
284
+ assetTypeId: '{{ context.eval("assetTypeId") }}',
285
+ assetType: {
286
+ maintenanceTypeIds: '{{ context.eval("assetType.maintenanceTypeIds") }}',
287
+ },
288
+ },
289
+ },
290
+ },
291
+ },
292
+ },
293
+ priority: 'primary',
294
+ type: AXPSystemActionType.Create,
295
+ scope: AXPEntityCommandScope.TypeLevel,
296
+ },
297
+ ...entityDetailsCrudActions('assetId', { create: false }),
298
+ ],
299
+ layout: { type: 'page-list', position: 'after', order: 15 },
300
+ },
301
+ {
302
+ entity: 'MaintenanceManagement.WorkOrder',
303
+ title: '@asset-management:assets.entities.asset.related-entities.work-orders.title',
304
+ icon: 'fa-light fa-clipboard-check',
305
+ hidden: hideMaintenanceRelatedEntities,
306
+ conditions: [entityDetailsSimpleCondition('assetId')],
307
+ actions: [...entityDetailsCrudActions('assetId', { create: false })],
308
+ layout: { type: 'page-list', position: 'after', order: 20 },
309
+ },
310
+ {
311
+ entity: 'MaintenanceManagement.FailureRegister',
312
+ title: '@maintenance-management:failure-registers.entities.failure-register.plural',
313
+ icon: 'fa-light fa-file-waveform',
314
+ hidden: hideMaintenanceRelatedEntities,
315
+ conditions: [entityDetailsSimpleCondition('assetId')],
316
+ excludeProperties: ['assetId', 'assetSystemId'],
317
+ columns: [
318
+ { name: 'code' },
319
+ { name: 'date' },
320
+ { name: 'failureModeId', options: { dataPath: 'failureMode.title' } },
321
+ {
322
+ name: 'failureDetectionId',
323
+ options: { dataPath: 'failureDetection.title' },
324
+ },
325
+ { name: 'priorityId' },
326
+ {
327
+ name: 'failureSeverityId',
328
+ options: { dataPath: 'failureSeverity.title' },
329
+ },
330
+ { name: 'description' },
331
+ ],
332
+ actions: [...entityDetailsCrudActions('assetId')],
333
+ layout: { type: 'page-list', position: 'after', order: 30 },
334
+ },
335
+ ],
336
+ pages: [
337
+ {
338
+ componentKey: ASSET_TYPE_COMPONENTS_PAGE_COMPONENT_KEY,
339
+ field: 'components',
340
+ title: '@asset-management:assets.entities.asset.components.asset-component.title',
341
+ icon: 'fa-light fa-cubes',
342
+ layout: { order: 2, position: 'after' },
343
+ options: {
344
+ order: 1,
345
+ linkAssetMode: true,
346
+ sourceField: 'components',
347
+ field: 'assetComponents',
348
+ sourceEntity: `${RootConfig.module.name}.${RootConfig.entities.assetType.name}`,
349
+ sourceIdPath: 'assetTypeId',
350
+ targetEntity: `${RootConfig.module.name}.${RootConfig.entities.asset.name}`,
351
+ targetIdPath: 'id',
352
+ allowAddSection: false,
353
+ allowEditSection: false,
354
+ allowAddItems: false,
355
+ allowReorderSections: false,
356
+ },
357
+ },
358
+ ],
359
+ formats: {
360
+ individual: RootConfig.entities.asset.title,
361
+ plural: RootConfig.entities.asset.titlePlural,
362
+ searchResult: { title: '{{ title }}' },
363
+ },
364
+ groups: [
365
+ {
366
+ id: 'basic-info',
367
+ title: '@asset-management:assets.entities.asset.groups.basic-info',
368
+ },
369
+ {
370
+ id: 'qr-code',
371
+ title: '@asset-management:assets.entities.asset.fields.qr-code.title',
372
+ },
373
+ // {
374
+ // id: 'description-info',
375
+ // title:
376
+ // '@asset-management:assets.entities.asset.groups.description-info',
377
+ // },
378
+ {
379
+ id: 'ownership',
380
+ title: '@asset-management:assets.entities.asset.groups.ownership',
381
+ },
382
+ {
383
+ id: 'placement',
384
+ title: '@asset-management:assets.entities.asset.groups.placement',
385
+ },
386
+ {
387
+ id: 'booking',
388
+ title: '@asset-management:assets.entities.asset.groups.booking',
389
+ },
390
+ {
391
+ id: 'rental',
392
+ title: '@asset-management:assets.entities.asset.groups.rental',
393
+ },
394
+ {
395
+ id: 'operation-requirements',
396
+ title: '@asset-management:assets.entities.asset.groups.operation-requirements',
397
+ },
398
+ {
399
+ id: 'lifecycle-status',
400
+ title: '@asset-management:assets.entities.asset.groups.lifecycle-status',
401
+ },
402
+ {
403
+ id: 'media',
404
+ title: '@asset-management:assets.entities.asset.groups.media',
405
+ },
406
+ ],
407
+ properties: [
408
+ {
409
+ name: 'id',
410
+ title: 'ID',
411
+ schema: {
412
+ dataType: 'uuid',
413
+ visible: false,
414
+ nullable: false,
415
+ readonly: true,
416
+ unique: { enabled: true },
417
+ },
418
+ },
419
+ {
420
+ name: 'code',
421
+ title: '@asset-management:assets.entities.asset.fields.code.title',
422
+ groupId: 'basic-info',
423
+ schema: {
424
+ dataType: 'string',
425
+ unique: { enabled: true },
426
+ interface: {
427
+ type: AXPWidgetsCatalog.text,
428
+ options: {
429
+ //disabled: true,
430
+ placeholder: '@asset-management:assets.entities.asset.fields.code.placeholder',
431
+ },
432
+ },
433
+ },
434
+ options: {
435
+ sort: { enabled: true },
436
+ filter: { advance: { enabled: true }, inline: { enabled: true } },
437
+ },
438
+ validations: [{ rule: 'required' }, { rule: 'unique' }],
439
+ },
440
+ {
441
+ name: 'assetTypeId',
442
+ title: '@asset-management:assets.entities.asset.fields.assetTypeId.title',
443
+ groupId: 'basic-info',
444
+ schema: {
445
+ dataType: 'string',
446
+ interface: {
447
+ type: AXPWidgetsCatalog.lookup,
448
+ options: {
449
+ disabled: `{{ !!context.eval('id') }}`,
450
+ look: 'select',
451
+ placeholder: '@asset-management:assets.entities.asset.fields.assetTypeId.placeholder',
452
+ entity: `${RootConfig.module.name}.${RootConfig.entities.assetType.name}`,
453
+ textField: 'title',
454
+ valueField: 'id',
455
+ allowCreate: 'quick',
456
+ expose: [
457
+ { source: 'id', target: 'assetType.id' },
458
+ { source: 'code', target: 'assetType.code' },
459
+ { source: 'title', target: 'assetType.title' },
460
+ { source: 'categoryIds', target: 'assetType.categoryIds' },
461
+ {
462
+ source: 'hasMaintenance',
463
+ target: 'assetType.hasMaintenance',
464
+ },
465
+ {
466
+ source: 'maintenanceTypeIds',
467
+ target: 'assetType.maintenanceTypeIds',
468
+ },
469
+ ],
470
+ },
471
+ triggers: [
472
+ {
473
+ event: '{{ events.context("assetTypeId") }}',
474
+ action: '{{ context.set("hasMaintenance", [true, "true", 1, "1"].includes(context.eval("assetType.hasMaintenance"))) }}',
475
+ },
476
+ ],
477
+ },
478
+ },
479
+ options: {
480
+ sort: { enabled: true },
481
+ filter: { advance: { enabled: true }, inline: { enabled: true } },
482
+ },
483
+ validations: [{ rule: 'required' }],
484
+ },
485
+ {
486
+ name: 'title',
487
+ title: '@asset-management:assets.entities.asset.fields.title.title',
488
+ groupId: 'basic-info',
489
+ schema: {
490
+ dataType: 'string',
491
+ interface: {
492
+ type: AXPWidgetsCatalog.text,
493
+ options: {
494
+ placeholder: '@asset-management:assets.entities.asset.fields.title.placeholder',
495
+ },
496
+ },
497
+ },
498
+ options: {
499
+ sort: { enabled: true },
500
+ filter: { advance: { enabled: true }, inline: { enabled: true } },
501
+ },
502
+ validations: [{ rule: 'required' }],
503
+ },
504
+ {
505
+ name: 'serialNumber',
506
+ title: '@asset-management:assets.entities.asset.fields.serial-number.title',
507
+ groupId: 'basic-info',
508
+ schema: {
509
+ dataType: 'string',
510
+ interface: {
511
+ type: AXPWidgetsCatalog.text,
512
+ options: {
513
+ placeholder: '@asset-management:assets.entities.asset.fields.serial-number.placeholder',
514
+ },
515
+ },
516
+ },
517
+ validations: [{ rule: 'required' }],
518
+ },
519
+ {
520
+ name: 'testTagIdentificationNumber',
521
+ title: '@asset-management:assets.entities.asset.fields.test-tag-identification-number.title',
522
+ groupId: 'basic-info',
523
+ schema: {
524
+ dataType: 'string',
525
+ interface: {
526
+ type: AXPWidgetsCatalog.text,
527
+ options: {
528
+ placeholder: '@asset-management:assets.entities.asset.fields.test-tag-identification-number.placeholder',
529
+ },
530
+ },
531
+ },
532
+ },
533
+ {
534
+ name: 'qrCode',
535
+ title: '@asset-management:assets.entities.asset.fields.qr-code.title',
536
+ groupId: 'qr-code',
537
+ schema: {
538
+ dataType: 'string',
539
+ interface: {
540
+ type: AXPWidgetsCatalog.qrcode,
541
+ options: {
542
+ size: 200,
543
+ outputType: 'canvas',
544
+ readonly: true,
545
+ },
546
+ triggers: [
547
+ {
548
+ event: '{{ events.context("code") }}',
549
+ action: '{{ context.set("qrCode", context.eval("code")) }}',
550
+ },
551
+ ],
552
+ },
553
+ },
554
+ },
555
+ {
556
+ name: 'description',
557
+ title: '@asset-management:assets.entities.asset.fields.description.title',
558
+ groupId: 'basic-info',
559
+ schema: {
560
+ dataType: 'string',
561
+ interface: {
562
+ type: AXPWidgetsCatalog.largeText,
563
+ options: {
564
+ rows: 4,
565
+ placeholder: '@asset-management:assets.entities.asset.fields.description.placeholder',
566
+ },
567
+ },
568
+ },
569
+ options: {
570
+ sort: { enabled: false },
571
+ filter: { advance: { enabled: true }, inline: { enabled: false } },
572
+ },
573
+ },
574
+ {
575
+ name: 'assignedToEmployeeId',
576
+ title: '@asset-management:assets.entities.asset.fields.assigned-to-employee-id.title',
577
+ groupId: 'ownership',
578
+ schema: {
579
+ dataType: 'string',
580
+ interface: {
581
+ type: AXPWidgetsCatalog.lookup,
582
+ options: {
583
+ entity: 'HumanCapitalManagement.Employee',
584
+ textField: 'person.fullName',
585
+ valueField: 'id',
586
+ // columns: ['person.displayName', 'employeeCode'],
587
+ look: 'select',
588
+ expose: [
589
+ { source: 'id', target: 'assignedToEmployee.id' },
590
+ {
591
+ source: 'person.fullName',
592
+ target: 'assignedToEmployee.displayName',
593
+ },
594
+ ],
595
+ },
596
+ },
597
+ },
598
+ options: {
599
+ sort: { enabled: true },
600
+ filter: { advance: { enabled: true }, inline: { enabled: true } },
601
+ },
602
+ },
603
+ {
604
+ name: 'locationId',
605
+ title: '@asset-management:assets.entities.asset.fields.location-id.title',
606
+ groupId: 'placement',
607
+ schema: {
608
+ dataType: 'string',
609
+ interface: {
610
+ type: AXPWidgetsCatalog.lookup,
611
+ options: {
612
+ entity: 'LocationManagement.Location',
613
+ textField: 'title',
614
+ valueField: 'id',
615
+ allowCreate: 'quick',
616
+ look: 'select',
617
+ expose: [
618
+ { source: 'id', target: 'location.id' },
619
+ { source: 'title', target: 'location.title' },
620
+ ],
621
+ },
622
+ },
623
+ },
624
+ options: {
625
+ sort: { enabled: true },
626
+ filter: { advance: { enabled: true }, inline: { enabled: true } },
627
+ },
628
+ },
629
+ {
630
+ name: 'isBookable',
631
+ title: '@asset-management:assets.entities.asset.fields.is-bookable.title',
632
+ groupId: 'booking',
633
+ schema: {
634
+ dataType: 'boolean',
635
+ interface: {
636
+ type: AXPWidgetsCatalog.toggle,
637
+ },
638
+ },
639
+ },
640
+ {
641
+ name: 'preBookQuestionnaireId',
642
+ title: '@asset-management:assets.entities.asset.fields.pre-book-questionnaire-id.title',
643
+ groupId: 'booking',
644
+ schema: {
645
+ dataType: 'string',
646
+ visible: `{{ !!context.eval('isBookable') }}`,
647
+ interface: {
648
+ type: AXPWidgetsCatalog.lookup,
649
+ options: {
650
+ entity: `${'AssessmentManagement'}.${'Questionnaire'}`,
651
+ textField: 'title',
652
+ valueField: 'id',
653
+ look: 'select',
654
+ filter: {
655
+ field: 'catalogScopeKeys',
656
+ operator: { type: 'arrayOverlaps' },
657
+ value: [ASSET_CATALOG_SCOPE_BOOKING],
658
+ },
659
+ expose: [
660
+ { source: 'id', target: 'preBookQuestionnaire.id' },
661
+ { source: 'title', target: 'preBookQuestionnaire.title' },
662
+ ],
663
+ },
664
+ },
665
+ },
666
+ },
667
+ {
668
+ name: 'postBookQuestionnaireId',
669
+ title: '@asset-management:assets.entities.asset.fields.post-book-questionnaire-id.title',
670
+ groupId: 'booking',
671
+ schema: {
672
+ dataType: 'string',
673
+ visible: `{{ !!context.eval('isBookable') }}`,
674
+ interface: {
675
+ type: AXPWidgetsCatalog.lookup,
676
+ options: {
677
+ entity: `${'AssessmentManagement'}.${'Questionnaire'}`,
678
+ textField: 'title',
679
+ valueField: 'id',
680
+ look: 'select',
681
+ filter: {
682
+ field: 'catalogScopeKeys',
683
+ operator: { type: 'arrayOverlaps' },
684
+ value: [ASSET_CATALOG_SCOPE_BOOKING],
685
+ },
686
+ expose: [
687
+ { source: 'id', target: 'postBookQuestionnaire.id' },
688
+ { source: 'title', target: 'postBookQuestionnaire.title' },
689
+ ],
690
+ },
691
+ },
692
+ },
693
+ },
694
+ {
695
+ name: 'isRented',
696
+ title: '@asset-management:assets.entities.asset.fields.is-rented.title',
697
+ groupId: 'rental',
698
+ schema: {
699
+ dataType: 'boolean',
700
+ interface: {
701
+ type: AXPWidgetsCatalog.toggle,
702
+ },
703
+ },
704
+ },
705
+ {
706
+ name: 'licenseTypeId',
707
+ title: '@asset-management:assets.entities.asset.fields.license-type-id.title',
708
+ groupId: 'operation-requirements',
709
+ schema: {
710
+ dataType: 'string',
711
+ interface: {
712
+ type: AXPWidgetsCatalog.lookup,
713
+ options: {
714
+ entity: 'LearningManagement.LicenseType',
715
+ textField: 'title',
716
+ valueField: 'id',
717
+ look: 'select',
718
+ expose: [
719
+ { source: 'id', target: 'licenseType.id' },
720
+ { source: 'title', target: 'licenseType.title' },
721
+ ],
722
+ },
723
+ },
724
+ },
725
+ options: {
726
+ sort: { enabled: true },
727
+ filter: { advance: { enabled: true }, inline: { enabled: true } },
728
+ },
729
+ },
730
+ {
731
+ name: 'images',
732
+ title: '@asset-management:assets.entities.asset.fields.images.title',
733
+ groupId: 'media',
734
+ options: {
735
+ sort: { enabled: false },
736
+ filter: {
737
+ advance: { enabled: false },
738
+ inline: { enabled: false },
739
+ },
740
+ },
741
+ schema: {
742
+ dataType: 'array',
743
+ interface: {
744
+ type: AXPWidgetsCatalog.fileViewer,
745
+ },
746
+ },
747
+ },
748
+ {
749
+ name: 'components',
750
+ title: '@asset-management:assets.entities.asset.components.meta-data-form.title',
751
+ options: {
752
+ sort: { enabled: false },
753
+ filter: { advance: { enabled: false }, inline: { enabled: false } },
754
+ },
755
+ schema: {
756
+ dataType: 'object',
757
+ defaultValue: { sections: [] },
758
+ visible: false,
759
+ nullable: true,
760
+ },
761
+ },
762
+ {
763
+ name: 'assetComponents',
764
+ title: '@asset-management:assets.entities.asset.components.asset-component.title',
765
+ schema: {
766
+ dataType: 'array',
767
+ visible: false,
768
+ nullable: true,
769
+ },
770
+ options: {
771
+ sort: { enabled: false },
772
+ filter: { advance: { enabled: false }, inline: { enabled: false } },
773
+ },
774
+ },
775
+ ],
776
+ columns: [
777
+ { name: 'code', options: { order: 1 } },
778
+ { name: 'title', options: { order: 2 } },
779
+ {
780
+ name: 'assetTypeId',
781
+ options: { dataPath: 'assetType.title', order: 3 },
782
+ },
783
+ { name: 'serialNumber', options: { order: 4 } },
784
+ { name: 'testTagIdentificationNumber', options: { order: 5 } },
785
+ { name: 'qrCode', options: { order: 6 } },
786
+ { name: 'description', options: { order: 7 } },
787
+ { name: 'lifecycleStatusId', options: { order: 8 } },
788
+ {
789
+ name: 'assignedToEmployeeId',
790
+ options: { dataPath: 'assignedToEmployee.displayName', order: 9 },
791
+ },
792
+ { name: 'licenseTypeId', options: { dataPath: 'licenseType.title', order: 10 } },
793
+ { name: 'locationId', options: { dataPath: 'location.title', order: 11 } },
794
+ { name: 'isBookable', options: { order: 13 } },
795
+ { name: 'isRented', options: { order: 14 } },
796
+ ],
797
+ queries: {},
798
+ interfaces: {
799
+ master: {
800
+ create: {
801
+ sections: [
802
+ {
803
+ id: 'basic-info',
804
+ order: 1,
805
+ layout: { positions: { lg: { colSpan: 8, colStart: 1 } } },
806
+ },
807
+ {
808
+ id: 'qr-code',
809
+ order: 2,
810
+ layout: {
811
+ positions: { lg: { colSpan: 4, colStart: 9, rowSpan: 2 } },
812
+ },
813
+ },
814
+ // {
815
+ // id: 'description-info',
816
+ // order: 3,
817
+ // layout: { positions: { lg: { colSpan: 12, colStart: 13 } } },
818
+ // },
819
+ { id: 'ownership', order: 4 },
820
+ { id: 'placement', order: 5 },
821
+ { id: 'booking', order: 6 },
822
+ { id: 'rental', order: 7 },
823
+ { id: 'operation-requirements', order: 8 },
824
+ { id: 'media', order: 9 },
825
+ ],
826
+ properties: [
827
+ {
828
+ name: 'code',
829
+ layout: { positions: { lg: { colSpan: 6, order: 1 } } },
830
+ },
831
+ {
832
+ name: 'assetTypeId',
833
+ layout: { positions: { lg: { colSpan: 6, order: 2 } } },
834
+ },
835
+ {
836
+ name: 'title',
837
+ layout: { positions: { lg: { colSpan: 12, order: 3 } } },
838
+ },
839
+ {
840
+ name: 'serialNumber',
841
+ layout: { positions: { lg: { colSpan: 6, order: 4 } } },
842
+ },
843
+ {
844
+ name: 'testTagIdentificationNumber',
845
+ layout: { positions: { lg: { colSpan: 6, order: 5 } } },
846
+ },
847
+ {
848
+ name: 'description',
849
+ layout: {
850
+ positions: { lg: { colSpan: 12, order: 7 } },
851
+ },
852
+ },
853
+ {
854
+ name: 'assignedToEmployeeId',
855
+ layout: { positions: { lg: { colSpan: 6, order: 8 } } },
856
+ },
857
+ {
858
+ name: 'locationId',
859
+ layout: { positions: { lg: { colSpan: 12, order: 9 } } },
860
+ },
861
+ {
862
+ name: 'isBookable',
863
+ layout: { positions: { lg: { colSpan: 12, order: 10 } } },
864
+ },
865
+ {
866
+ name: 'preBookQuestionnaireId',
867
+ layout: { positions: { lg: { colSpan: 6, order: 11 } } },
868
+ },
869
+ {
870
+ name: 'postBookQuestionnaireId',
871
+ layout: { positions: { lg: { colSpan: 6, order: 12 } } },
872
+ },
873
+ {
874
+ name: 'isRented',
875
+ layout: { positions: { lg: { colSpan: 12, order: 13 } } },
876
+ },
877
+ {
878
+ name: 'licenseTypeId',
879
+ layout: { positions: { lg: { colSpan: 6, order: 14 } } },
880
+ },
881
+ {
882
+ name: 'qrCode',
883
+ layout: {
884
+ label: { visible: false },
885
+ positions: { lg: { colSpan: 14 } },
886
+ },
887
+ },
888
+ {
889
+ name: 'images',
890
+ layout: { positions: { lg: { colSpan: 12, order: 25 } } },
891
+ },
892
+ ],
893
+ },
894
+ update: {
895
+ sections: [
896
+ {
897
+ id: 'basic-info',
898
+ order: 1,
899
+ layout: { positions: { lg: { colSpan: 8, colStart: 1 } } },
900
+ },
901
+ {
902
+ id: 'qr-code',
903
+ order: 2,
904
+ layout: { positions: { lg: { colSpan: 4, colStart: 9 } } },
905
+ },
906
+ // {
907
+ // id: 'description-info',
908
+ // order: 3,
909
+ // layout: { positions: { lg: { colSpan: 12, colStart: 13 } } },
910
+ // },
911
+ { id: 'ownership', order: 4 },
912
+ { id: 'placement', order: 5 },
913
+ { id: 'booking', order: 6 },
914
+ { id: 'rental', order: 7 },
915
+ { id: 'operation-requirements', order: 8 },
916
+ { id: 'media', order: 9 },
917
+ {
918
+ id: 'lifecycle-status',
919
+ order: 10,
920
+ layout: { positions: { lg: { colSpan: 12, colStart: 1 } } },
921
+ },
922
+ ],
923
+ properties: [
924
+ {
925
+ name: 'code',
926
+ layout: { positions: { lg: { colSpan: 6, order: 1 } } },
927
+ },
928
+ {
929
+ name: 'assetTypeId',
930
+ layout: { positions: { lg: { colSpan: 6, order: 2 } } },
931
+ },
932
+ {
933
+ name: 'title',
934
+ layout: { positions: { lg: { colSpan: 12, order: 3 } } },
935
+ },
936
+ {
937
+ name: 'serialNumber',
938
+ layout: { positions: { lg: { colSpan: 6, order: 4 } } },
939
+ },
940
+ {
941
+ name: 'testTagIdentificationNumber',
942
+ layout: { positions: { lg: { colSpan: 6, order: 5 } } },
943
+ },
944
+ {
945
+ name: 'description',
946
+ layout: {
947
+ positions: { lg: { colSpan: 12, order: 7 } },
948
+ // label: { visible: false },
949
+ },
950
+ },
951
+ {
952
+ name: 'assignedToEmployeeId',
953
+ layout: { positions: { lg: { colSpan: 6, order: 8 } } },
954
+ },
955
+ {
956
+ name: 'locationId',
957
+ layout: { positions: { lg: { colSpan: 12, order: 9 } } },
958
+ },
959
+ {
960
+ name: 'isBookable',
961
+ layout: { positions: { lg: { colSpan: 12, order: 10 } } },
962
+ },
963
+ {
964
+ name: 'preBookQuestionnaireId',
965
+ layout: { positions: { lg: { colSpan: 6, order: 11 } } },
966
+ },
967
+ {
968
+ name: 'postBookQuestionnaireId',
969
+ layout: { positions: { lg: { colSpan: 6, order: 12 } } },
970
+ },
971
+ {
972
+ name: 'isRented',
973
+ layout: { positions: { lg: { colSpan: 12, order: 13 } } },
974
+ },
975
+ {
976
+ name: 'licenseTypeId',
977
+ layout: { positions: { lg: { colSpan: 6, order: 14 } } },
978
+ },
979
+ {
980
+ name: 'lifecycleStatusId',
981
+ layout: { positions: { lg: { colSpan: 6, order: 15 } } },
982
+ },
983
+ // {
984
+ // name: 'statusId',
985
+ // layout: { positions: { lg: { colSpan: 6, order: 16 } } },
986
+ // },
987
+ {
988
+ name: 'qrCode',
989
+ layout: {
990
+ label: { visible: false },
991
+ positions: { lg: { colSpan: 14 } },
992
+ },
993
+ },
994
+ {
995
+ name: 'images',
996
+ layout: { positions: { lg: { colSpan: 12, order: 25 } } },
997
+ },
998
+ ],
999
+ },
1000
+ single: {
1001
+ title: '{{ title }}',
1002
+ sections: [
1003
+ {
1004
+ id: 'basic-info',
1005
+ order: 1,
1006
+ layout: { positions: { lg: { colSpan: 8, colStart: 1 } } },
1007
+ },
1008
+ {
1009
+ id: 'qr-code',
1010
+ order: 2,
1011
+ layout: { positions: { lg: { colSpan: 4, colStart: 9 } } },
1012
+ },
1013
+ // {
1014
+ // id: 'description-info',
1015
+ // order: 3,
1016
+ // layout: { positions: { lg: { colSpan: 12, colStart: 13 } } },
1017
+ // },
1018
+ { id: 'ownership', order: 4 },
1019
+ { id: 'placement', order: 5 },
1020
+ { id: 'booking', order: 6 },
1021
+ { id: 'rental', order: 7 },
1022
+ { id: 'operation-requirements', order: 8 },
1023
+ { id: 'media', order: 9 },
1024
+ {
1025
+ id: 'lifecycle-status',
1026
+ order: 10,
1027
+ layout: { positions: { lg: { colSpan: 12, colStart: 1 } } },
1028
+ },
1029
+ ],
1030
+ properties: [
1031
+ {
1032
+ name: 'code',
1033
+ layout: { positions: { lg: { colSpan: 6, order: 1 } } },
1034
+ },
1035
+ {
1036
+ name: 'assetTypeId',
1037
+ layout: { positions: { lg: { colSpan: 6, order: 2 } } },
1038
+ },
1039
+ {
1040
+ name: 'title',
1041
+ layout: { positions: { lg: { colSpan: 12, order: 3 } } },
1042
+ },
1043
+ {
1044
+ name: 'serialNumber',
1045
+ layout: { positions: { lg: { colSpan: 6, order: 4 } } },
1046
+ },
1047
+ {
1048
+ name: 'testTagIdentificationNumber',
1049
+ layout: { positions: { lg: { colSpan: 6, order: 5 } } },
1050
+ },
1051
+ {
1052
+ name: 'description',
1053
+ layout: {
1054
+ positions: { lg: { colSpan: 12, order: 7 } },
1055
+ // label: { visible: false },
1056
+ },
1057
+ },
1058
+ {
1059
+ name: 'assignedToEmployeeId',
1060
+ layout: { positions: { lg: { colSpan: 6, order: 8 } } },
1061
+ },
1062
+ {
1063
+ name: 'locationId',
1064
+ layout: { positions: { lg: { colSpan: 12, order: 9 } } },
1065
+ },
1066
+ {
1067
+ name: 'isBookable',
1068
+ layout: { positions: { lg: { colSpan: 12, order: 10 } } },
1069
+ },
1070
+ {
1071
+ name: 'preBookQuestionnaireId',
1072
+ layout: { positions: { lg: { colSpan: 6, order: 11 } } },
1073
+ },
1074
+ {
1075
+ name: 'postBookQuestionnaireId',
1076
+ layout: { positions: { lg: { colSpan: 6, order: 12 } } },
1077
+ },
1078
+ {
1079
+ name: 'isRented',
1080
+ layout: { positions: { lg: { colSpan: 12, order: 13 } } },
1081
+ },
1082
+ {
1083
+ name: 'licenseTypeId',
1084
+ layout: { positions: { lg: { colSpan: 6, order: 14 } } },
1085
+ },
1086
+ {
1087
+ name: 'lifecycleStatusId',
1088
+ layout: { positions: { lg: { colSpan: 6, order: 15 } } },
1089
+ },
1090
+ // {
1091
+ // name: 'statusId',
1092
+ // layout: { positions: { lg: { colSpan: 6, order: 16 } } },
1093
+ // },
1094
+ {
1095
+ name: 'qrCode',
1096
+ layout: {
1097
+ label: { visible: false },
1098
+ positions: { lg: { colSpan: 14 } },
1099
+ },
1100
+ },
1101
+ {
1102
+ name: 'images',
1103
+ layout: { positions: { lg: { colSpan: 12, order: 25 } } },
1104
+ },
1105
+ ],
1106
+ actions: [...entityMasterRecordActions()],
1107
+ },
1108
+ list: {
1109
+ actions: [...entityMasterCrudActions()],
1110
+ views: [createAllQueryView({ sorts: [{ name: 'title', dir: 'asc' }] })],
1111
+ },
1112
+ },
1113
+ },
1114
+ };
1115
+ return entityDef;
1116
+ }
1117
+
1118
+ /**
1119
+ * Generated bundle index. Do not edit.
1120
+ */
1121
+
1122
+ export { factoryAsset };
1123
+ //# sourceMappingURL=acorex-platform-module-asset-management-client-contracts-entities-asset.mjs.map