@acorex-platform/module-asset-management-client 0.0.30 → 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.
Files changed (51) hide show
  1. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entities-asset-rental-history.mjs +536 -0
  2. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entities-asset-rental-history.mjs.map +1 -0
  3. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entities-asset-system-assignment.mjs +294 -0
  4. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entities-asset-system-assignment.mjs.map +1 -0
  5. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entities-asset-system-type.mjs +328 -0
  6. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entities-asset-system-type.mjs.map +1 -0
  7. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entities-asset-system.mjs +316 -0
  8. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entities-asset-system.mjs.map +1 -0
  9. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entities-asset-type-section-component.mjs +348 -0
  10. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entities-asset-type-section-component.mjs.map +1 -0
  11. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entities-asset-type-section.mjs +252 -0
  12. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entities-asset-type-section.mjs.map +1 -0
  13. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entities-asset-type.mjs +476 -0
  14. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entities-asset-type.mjs.map +1 -0
  15. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entities-asset.mjs +1123 -0
  16. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entities-asset.mjs.map +1 -0
  17. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entity-catalog-ASSET_TYPE_COMPONENTS_PAGE_COMPONENT_KEY-Jlv8czA2.mjs +5 -0
  18. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entity-catalog-ASSET_TYPE_COMPONENTS_PAGE_COMPONENT_KEY-Jlv8czA2.mjs.map +1 -0
  19. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entity-catalog-acorex-platform-module-asset-management-client-contracts-entity-catalog-BnFLQIiP.mjs +131 -0
  20. 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
  21. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entity-catalog-asset-rental-history.entity-DVDZBUtV.mjs +431 -0
  22. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entity-catalog-asset-rental-history.entity-DVDZBUtV.mjs.map +1 -0
  23. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entity-catalog-asset-system-assignment.entity-C2TD0S1M.mjs +189 -0
  24. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entity-catalog-asset-system-assignment.entity-C2TD0S1M.mjs.map +1 -0
  25. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entity-catalog-asset-system-type.entity-DszmKgyy.mjs +223 -0
  26. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entity-catalog-asset-system-type.entity-DszmKgyy.mjs.map +1 -0
  27. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entity-catalog-asset-system.entity-BgUe0-L9.mjs +211 -0
  28. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entity-catalog-asset-system.entity-BgUe0-L9.mjs.map +1 -0
  29. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entity-catalog-asset-type-section-component.entity-DsHwYpDP.mjs +243 -0
  30. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entity-catalog-asset-type-section-component.entity-DsHwYpDP.mjs.map +1 -0
  31. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entity-catalog-asset-type-section.entity-BdXjYYDS.mjs +145 -0
  32. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entity-catalog-asset-type-section.entity-BdXjYYDS.mjs.map +1 -0
  33. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entity-catalog-asset-type.entity-BJr-OLKa.mjs +369 -0
  34. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entity-catalog-asset-type.entity-BJr-OLKa.mjs.map +1 -0
  35. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entity-catalog-asset.entity-yXy3-Jbq.mjs +1016 -0
  36. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entity-catalog-asset.entity-yXy3-Jbq.mjs.map +1 -0
  37. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entity-catalog.mjs +2 -0
  38. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entity-catalog.mjs.map +1 -0
  39. package/fesm2022/acorex-platform-module-asset-management-client-local-entities.mjs +36 -0
  40. package/fesm2022/acorex-platform-module-asset-management-client-local-entities.mjs.map +1 -0
  41. package/package.json +42 -2
  42. package/types/acorex-platform-module-asset-management-client-contracts-entities-asset-rental-history.d.ts +5 -0
  43. package/types/acorex-platform-module-asset-management-client-contracts-entities-asset-system-assignment.d.ts +5 -0
  44. package/types/acorex-platform-module-asset-management-client-contracts-entities-asset-system-type.d.ts +5 -0
  45. package/types/acorex-platform-module-asset-management-client-contracts-entities-asset-system.d.ts +5 -0
  46. package/types/acorex-platform-module-asset-management-client-contracts-entities-asset-type-section-component.d.ts +10 -0
  47. package/types/acorex-platform-module-asset-management-client-contracts-entities-asset-type-section.d.ts +10 -0
  48. package/types/acorex-platform-module-asset-management-client-contracts-entities-asset-type.d.ts +9 -0
  49. package/types/acorex-platform-module-asset-management-client-contracts-entities-asset.d.ts +5 -0
  50. package/types/acorex-platform-module-asset-management-client-contracts-entity-catalog.d.ts +10 -0
  51. package/types/acorex-platform-module-asset-management-client-local-entities.d.ts +12 -0
@@ -0,0 +1,348 @@
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
+ /**
109
+ * Outer group aligns with {@link AXMAssetManagementAssetTypeSectionEntityModel} (section folder in UI);
110
+ * inner group holds {@link AXMAssetManagementAssetTypeSectionComponentEntityModel} fields. Navigation
111
+ * for this entity is nested under the Asset Type Sections menu folder (see menu provider).
112
+ */
113
+ async function factoryAssetTypeSectionComponent() {
114
+ const sectionEntity = `${RootConfig.module.name}.${RootConfig.entities.assetTypeSection.name}`;
115
+ const entityDef = {
116
+ module: RootConfig.module.name,
117
+ name: RootConfig.entities.assetTypeSectionComponent.name,
118
+ title: RootConfig.entities.assetTypeSectionComponent.title,
119
+ icon: RootConfig.entities.assetTypeSectionComponent.icon,
120
+ relatedEntities: [],
121
+ formats: {
122
+ individual: RootConfig.entities.assetTypeSectionComponent.title,
123
+ plural: RootConfig.entities.assetTypeSectionComponent.titlePlural,
124
+ searchResult: {
125
+ title: '{{ roleName }}',
126
+ description: '{{ assetTypeSection.title }}',
127
+ },
128
+ },
129
+ groups: [
130
+ {
131
+ id: 'section-folder',
132
+ title: '@asset-management:assetTypeSectionComponents.entities.assetTypeSectionComponent.groups.section-folder',
133
+ },
134
+ {
135
+ id: 'component-content',
136
+ title: '@asset-management:assetTypeSectionComponents.entities.assetTypeSectionComponent.groups.component-content',
137
+ },
138
+ ],
139
+ properties: [
140
+ {
141
+ name: 'id',
142
+ title: 'ID',
143
+ schema: { dataType: 'uuid', visible: false, nullable: false, readonly: true, unique: { enabled: true } },
144
+ },
145
+ {
146
+ name: 'assetTypeId',
147
+ title: 'Asset Type ID',
148
+ schema: { dataType: 'uuid', visible: false, nullable: false, readonly: true },
149
+ options: { sort: { enabled: false }, filter: { advance: { enabled: false }, inline: { enabled: false } } },
150
+ },
151
+ {
152
+ name: 'assetTypeSectionId',
153
+ title: '@asset-management:assetTypeSectionComponents.entities.assetTypeSectionComponent.fields.assetTypeSectionId.title',
154
+ groupId: 'section-folder',
155
+ schema: {
156
+ dataType: 'string',
157
+ interface: {
158
+ type: AXPWidgetsList.Editors.LookupBox,
159
+ options: {
160
+ entity: sectionEntity,
161
+ textField: 'title',
162
+ valueField: 'id',
163
+ look: 'select',
164
+ multiple: false,
165
+ expose: [
166
+ { source: 'id', target: 'assetTypeSection.id' },
167
+ { source: 'code', target: 'assetTypeSection.code' },
168
+ { source: 'title', target: 'assetTypeSection.title' },
169
+ { source: 'description', target: 'assetTypeSection.description' },
170
+ ],
171
+ },
172
+ },
173
+ },
174
+ options: {
175
+ sort: { enabled: true },
176
+ filter: { advance: { enabled: true }, inline: { enabled: true } },
177
+ },
178
+ validations: [{ rule: 'required' }],
179
+ },
180
+ {
181
+ name: 'assetTypeSection.code',
182
+ title: '@asset-management:assetTypeSections.entities.assetTypeSection.fields.code.title',
183
+ groupId: 'section-folder',
184
+ schema: {
185
+ dataType: 'string',
186
+ readonly: true,
187
+ interface: {
188
+ type: AXPWidgetsList.Editors.TextBox,
189
+ options: { readOnly: true },
190
+ },
191
+ },
192
+ options: { sort: { enabled: true }, filter: { advance: { enabled: true }, inline: { enabled: false } } },
193
+ },
194
+ {
195
+ name: 'assetTypeSection.title',
196
+ title: '@asset-management:assetTypeSections.entities.assetTypeSection.fields.title.title',
197
+ groupId: 'section-folder',
198
+ schema: {
199
+ dataType: 'string',
200
+ readonly: true,
201
+ interface: {
202
+ type: AXPWidgetsList.Editors.TextBox,
203
+ options: { readOnly: true },
204
+ },
205
+ },
206
+ options: { sort: { enabled: true }, filter: { advance: { enabled: true }, inline: { enabled: false } } },
207
+ },
208
+ {
209
+ name: 'assetTypeSection.description',
210
+ title: '@asset-management:assetTypeSections.entities.assetTypeSection.fields.description.title',
211
+ groupId: 'section-folder',
212
+ schema: {
213
+ dataType: 'string',
214
+ nullable: true,
215
+ readonly: true,
216
+ interface: {
217
+ type: AXPWidgetsList.Editors.LargeTextBox,
218
+ options: { readOnly: true, rows: 3 },
219
+ },
220
+ },
221
+ options: { sort: { enabled: false }, filter: { advance: { enabled: false }, inline: { enabled: false } } },
222
+ },
223
+ {
224
+ name: 'count',
225
+ title: '@asset-management:assetTypeSectionComponents.entities.assetTypeSectionComponent.fields.count.title',
226
+ groupId: 'component-content',
227
+ schema: {
228
+ dataType: 'number',
229
+ defaultValue: 0,
230
+ interface: {
231
+ type: AXPWidgetsList.Editors.NumberBox,
232
+ options: { minValue: 0, step: 1 },
233
+ },
234
+ },
235
+ options: {
236
+ sort: { enabled: true },
237
+ filter: { advance: { enabled: true } },
238
+ },
239
+ validations: [{ rule: 'required' }],
240
+ },
241
+ {
242
+ name: 'hasMaintenance',
243
+ title: '@asset-management:assetTypeSectionComponents.entities.assetTypeSectionComponent.fields.hasMaintenance.title',
244
+ groupId: 'component-content',
245
+ schema: {
246
+ dataType: 'boolean',
247
+ defaultValue: false,
248
+ interface: { type: AXPWidgetsList.Editors.ToggleSwitch },
249
+ },
250
+ options: {
251
+ sort: { enabled: true },
252
+ filter: { advance: { enabled: true } },
253
+ },
254
+ },
255
+ {
256
+ name: 'roleName',
257
+ title: '@asset-management:assetTypeSectionComponents.entities.assetTypeSectionComponent.fields.roleName.title',
258
+ groupId: 'component-content',
259
+ schema: {
260
+ dataType: 'string',
261
+ nullable: true,
262
+ interface: {
263
+ type: AXPWidgetsList.Editors.LargeTextBox,
264
+ options: {
265
+ placeholder: '@asset-management:assetTypeSectionComponents.entities.assetTypeSectionComponent.fields.roleName.placeholder',
266
+ rows: 4,
267
+ },
268
+ },
269
+ },
270
+ options: {
271
+ sort: { enabled: true },
272
+ filter: { advance: { enabled: true }, inline: { enabled: true } },
273
+ },
274
+ },
275
+ ],
276
+ columns: [
277
+ { name: 'assetTypeSectionId', options: { dataPath: 'assetTypeSection.title' } },
278
+ { name: 'count' },
279
+ { name: 'hasMaintenance' },
280
+ { name: 'roleName' },
281
+ ],
282
+ queries: {},
283
+ interfaces: {
284
+ master: {
285
+ create: {
286
+ sections: [
287
+ { id: 'section-folder', order: 1, layout: { positions: { lg: { colSpan: 12 } } } },
288
+ { id: 'component-content', order: 2, layout: { positions: { lg: { colSpan: 12 } } } },
289
+ ],
290
+ properties: [
291
+ { name: 'assetTypeSectionId', layout: { positions: { lg: { colSpan: 12, order: 1 } } } },
292
+ { name: 'assetTypeSection.code', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
293
+ { name: 'assetTypeSection.title', layout: { positions: { lg: { colSpan: 6, order: 3 } } } },
294
+ { name: 'assetTypeSection.description', layout: { positions: { lg: { colSpan: 12, order: 4 } } } },
295
+ { name: 'count', layout: { positions: { lg: { colSpan: 6, order: 5 } } } },
296
+ { name: 'hasMaintenance', layout: { positions: { lg: { colSpan: 6, order: 6 } } } },
297
+ { name: 'roleName', layout: { positions: { lg: { colSpan: 12, order: 7 } } } },
298
+ ],
299
+ },
300
+ update: {
301
+ sections: [
302
+ { id: 'section-folder', order: 1, layout: { positions: { lg: { colSpan: 12 } } } },
303
+ { id: 'component-content', order: 2, layout: { positions: { lg: { colSpan: 12 } } } },
304
+ ],
305
+ properties: [
306
+ { name: 'assetTypeSectionId', layout: { positions: { lg: { colSpan: 12, order: 1 } } } },
307
+ { name: 'assetTypeSection.code', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
308
+ { name: 'assetTypeSection.title', layout: { positions: { lg: { colSpan: 6, order: 3 } } } },
309
+ { name: 'assetTypeSection.description', layout: { positions: { lg: { colSpan: 12, order: 4 } } } },
310
+ { name: 'count', layout: { positions: { lg: { colSpan: 6, order: 5 } } } },
311
+ { name: 'hasMaintenance', layout: { positions: { lg: { colSpan: 6, order: 6 } } } },
312
+ { name: 'roleName', layout: { positions: { lg: { colSpan: 12, order: 7 } } } },
313
+ ],
314
+ },
315
+ single: {
316
+ title: '{{ roleName }}',
317
+ sections: [
318
+ { id: 'section-folder', order: 1, layout: { positions: { lg: { colSpan: 12 } } } },
319
+ { id: 'component-content', order: 2, layout: { positions: { lg: { colSpan: 12 } } } },
320
+ ],
321
+ properties: [
322
+ { name: 'assetTypeSectionId', layout: { positions: { lg: { colSpan: 12, order: 1 } } } },
323
+ { name: 'assetTypeSection.code', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
324
+ { name: 'assetTypeSection.title', layout: { positions: { lg: { colSpan: 6, order: 3 } } } },
325
+ { name: 'assetTypeSection.description', layout: { positions: { lg: { colSpan: 12, order: 4 } } } },
326
+ { name: 'count', layout: { positions: { lg: { colSpan: 6, order: 5 } } } },
327
+ { name: 'hasMaintenance', layout: { positions: { lg: { colSpan: 6, order: 6 } } } },
328
+ { name: 'roleName', layout: { positions: { lg: { colSpan: 12, order: 7 } } } },
329
+ ],
330
+ actions: [...entityMasterRecordActions()],
331
+ },
332
+ list: {
333
+ actions: [...entityMasterCrudActions()],
334
+ views: [createAllQueryView({ sorts: [{ name: 'roleName', dir: 'asc' }] })],
335
+ },
336
+ },
337
+ },
338
+ };
339
+ return entityDef;
340
+ }
341
+ //#endregion
342
+
343
+ /**
344
+ * Generated bundle index. Do not edit.
345
+ */
346
+
347
+ export { factoryAssetTypeSectionComponent };
348
+ //# sourceMappingURL=acorex-platform-module-asset-management-client-contracts-entities-asset-type-section-component.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-asset-management-client-contracts-entities-asset-type-section-component.mjs","sources":["../../../../libs/modules/asset-management/contracts/src/root-config.ts","../../../../libs/modules/asset-management/contracts/src/entities/asset-type-section-component/asset-type-section-component.entity.ts","../../../../libs/modules/asset-management/contracts/src/acorex-platform-module-asset-management-client-contracts-entities-asset-type-section-component.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\n/**\n * Outer group aligns with {@link AXMAssetManagementAssetTypeSectionEntityModel} (section folder in UI);\n * inner group holds {@link AXMAssetManagementAssetTypeSectionComponentEntityModel} fields. Navigation\n * for this entity is nested under the Asset Type Sections menu folder (see menu provider).\n */\nexport async function factoryAssetTypeSectionComponent(): Promise<AXPEntity | null> {\n const sectionEntity = `${RootConfig.module.name}.${RootConfig.entities.assetTypeSection.name}`;\n\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.assetTypeSectionComponent.name,\n title: RootConfig.entities.assetTypeSectionComponent.title,\n icon: RootConfig.entities.assetTypeSectionComponent.icon,\n relatedEntities: [],\n formats: {\n individual: RootConfig.entities.assetTypeSectionComponent.title,\n plural: RootConfig.entities.assetTypeSectionComponent.titlePlural,\n searchResult: {\n title: '{{ roleName }}',\n description: '{{ assetTypeSection.title }}',\n },\n },\n groups: [\n {\n id: 'section-folder',\n title: '@asset-management:assetTypeSectionComponents.entities.assetTypeSectionComponent.groups.section-folder',\n },\n {\n id: 'component-content',\n title: '@asset-management:assetTypeSectionComponents.entities.assetTypeSectionComponent.groups.component-content',\n },\n ],\n properties: [\n {\n name: 'id',\n title: 'ID',\n schema: { dataType: 'uuid', visible: false, nullable: false, readonly: true, unique: { enabled: true } },\n },\n {\n name: 'assetTypeId',\n title: 'Asset Type ID',\n schema: { dataType: 'uuid', visible: false, nullable: false, readonly: true },\n options: { sort: { enabled: false }, filter: { advance: { enabled: false }, inline: { enabled: false } } },\n },\n {\n name: 'assetTypeSectionId',\n title: '@asset-management:assetTypeSectionComponents.entities.assetTypeSectionComponent.fields.assetTypeSectionId.title',\n groupId: 'section-folder',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.LookupBox,\n options: {\n entity: sectionEntity,\n textField: 'title',\n valueField: 'id',\n look: 'select',\n multiple: false,\n expose: [\n { source: 'id', target: 'assetTypeSection.id' },\n { source: 'code', target: 'assetTypeSection.code' },\n { source: 'title', target: 'assetTypeSection.title' },\n { source: 'description', target: 'assetTypeSection.description' },\n ],\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: 'assetTypeSection.code',\n title: '@asset-management:assetTypeSections.entities.assetTypeSection.fields.code.title',\n groupId: 'section-folder',\n schema: {\n dataType: 'string',\n readonly: true,\n interface: {\n type: AXPWidgetsList.Editors.TextBox,\n options: { readOnly: true },\n },\n },\n options: { sort: { enabled: true }, filter: { advance: { enabled: true }, inline: { enabled: false } } },\n },\n {\n name: 'assetTypeSection.title',\n title: '@asset-management:assetTypeSections.entities.assetTypeSection.fields.title.title',\n groupId: 'section-folder',\n schema: {\n dataType: 'string',\n readonly: true,\n interface: {\n type: AXPWidgetsList.Editors.TextBox,\n options: { readOnly: true },\n },\n },\n options: { sort: { enabled: true }, filter: { advance: { enabled: true }, inline: { enabled: false } } },\n },\n {\n name: 'assetTypeSection.description',\n title: '@asset-management:assetTypeSections.entities.assetTypeSection.fields.description.title',\n groupId: 'section-folder',\n schema: {\n dataType: 'string',\n nullable: true,\n readonly: true,\n interface: {\n type: AXPWidgetsList.Editors.LargeTextBox,\n options: { readOnly: true, rows: 3 },\n },\n },\n options: { sort: { enabled: false }, filter: { advance: { enabled: false }, inline: { enabled: false } } },\n },\n {\n name: 'count',\n title: '@asset-management:assetTypeSectionComponents.entities.assetTypeSectionComponent.fields.count.title',\n groupId: 'component-content',\n schema: {\n dataType: 'number',\n defaultValue: 0,\n interface: {\n type: AXPWidgetsList.Editors.NumberBox,\n options: { minValue: 0, step: 1 },\n },\n },\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true } },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'hasMaintenance',\n title: '@asset-management:assetTypeSectionComponents.entities.assetTypeSectionComponent.fields.hasMaintenance.title',\n groupId: 'component-content',\n schema: {\n dataType: 'boolean',\n defaultValue: false,\n interface: { type: AXPWidgetsList.Editors.ToggleSwitch },\n },\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true } },\n },\n },\n {\n name: 'roleName',\n title: '@asset-management:assetTypeSectionComponents.entities.assetTypeSectionComponent.fields.roleName.title',\n groupId: 'component-content',\n schema: {\n dataType: 'string',\n nullable: true,\n interface: {\n type: AXPWidgetsList.Editors.LargeTextBox,\n options: {\n placeholder:\n '@asset-management:assetTypeSectionComponents.entities.assetTypeSectionComponent.fields.roleName.placeholder',\n rows: 4,\n },\n },\n },\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n },\n ],\n columns: [\n { name: 'assetTypeSectionId', options: { dataPath: 'assetTypeSection.title' } },\n { name: 'count' },\n { name: 'hasMaintenance' },\n { name: 'roleName' },\n ],\n queries: {},\n interfaces: {\n master: {\n create: {\n sections: [\n { id: 'section-folder', order: 1, layout: { positions: { lg: { colSpan: 12 } } } },\n { id: 'component-content', order: 2, layout: { positions: { lg: { colSpan: 12 } } } },\n ],\n properties: [\n { name: 'assetTypeSectionId', layout: { positions: { lg: { colSpan: 12, order: 1 } } } },\n { name: 'assetTypeSection.code', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },\n { name: 'assetTypeSection.title', layout: { positions: { lg: { colSpan: 6, order: 3 } } } },\n { name: 'assetTypeSection.description', layout: { positions: { lg: { colSpan: 12, order: 4 } } } },\n { name: 'count', layout: { positions: { lg: { colSpan: 6, order: 5 } } } },\n { name: 'hasMaintenance', layout: { positions: { lg: { colSpan: 6, order: 6 } } } },\n { name: 'roleName', layout: { positions: { lg: { colSpan: 12, order: 7 } } } },\n ],\n },\n update: {\n sections: [\n { id: 'section-folder', order: 1, layout: { positions: { lg: { colSpan: 12 } } } },\n { id: 'component-content', order: 2, layout: { positions: { lg: { colSpan: 12 } } } },\n ],\n properties: [\n { name: 'assetTypeSectionId', layout: { positions: { lg: { colSpan: 12, order: 1 } } } },\n { name: 'assetTypeSection.code', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },\n { name: 'assetTypeSection.title', layout: { positions: { lg: { colSpan: 6, order: 3 } } } },\n { name: 'assetTypeSection.description', layout: { positions: { lg: { colSpan: 12, order: 4 } } } },\n { name: 'count', layout: { positions: { lg: { colSpan: 6, order: 5 } } } },\n { name: 'hasMaintenance', layout: { positions: { lg: { colSpan: 6, order: 6 } } } },\n { name: 'roleName', layout: { positions: { lg: { colSpan: 12, order: 7 } } } },\n ],\n },\n single: {\n title: '{{ roleName }}',\n sections: [\n { id: 'section-folder', order: 1, layout: { positions: { lg: { colSpan: 12 } } } },\n { id: 'component-content', order: 2, layout: { positions: { lg: { colSpan: 12 } } } },\n ],\n properties: [\n { name: 'assetTypeSectionId', layout: { positions: { lg: { colSpan: 12, order: 1 } } } },\n { name: 'assetTypeSection.code', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },\n { name: 'assetTypeSection.title', layout: { positions: { lg: { colSpan: 6, order: 3 } } } },\n { name: 'assetTypeSection.description', layout: { positions: { lg: { colSpan: 12, order: 4 } } } },\n { name: 'count', layout: { positions: { lg: { colSpan: 6, order: 5 } } } },\n { name: 'hasMaintenance', layout: { positions: { lg: { colSpan: 6, order: 6 } } } },\n { name: 'roleName', layout: { positions: { lg: { colSpan: 12, order: 7 } } } },\n ],\n actions: [...entityMasterRecordActions()],\n },\n list: {\n actions: [...entityMasterCrudActions()],\n views: [createAllQueryView({ sorts: [{ name: 'roleName', dir: 'asc' }] })],\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-type-section-component';\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,WAAW,EAAE,gFAAgF;AAC7F,YAAA,IAAI,EAAE,kBAAkB;AACzB,SAAA;AACD,QAAA,KAA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AClB;AAEA;;ACtPA;;AAEG;;;;"}
@@ -0,0 +1,252 @@
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
+ /** Registry key for the asset type Components custom page tab. */
107
+ const ASSET_TYPE_COMPONENTS_PAGE_COMPONENT_KEY = 'asset-type-components-page';
108
+
109
+ //#endregion
110
+ //#region ---- Entity Factory ----
111
+ /**
112
+ * Section header/metadata ({@link AXMAssetManagementAssetTypeSectionEntityModel}) with related
113
+ * component rows ({@link AXMAssetManagementAssetTypeSectionComponentEntityModel}), similar in spirit
114
+ * to report parameter groups (title + nested items) in report-management report definitions.
115
+ */
116
+ async function factoryAssetTypeSection() {
117
+ const entityDef = {
118
+ module: RootConfig.module.name,
119
+ name: RootConfig.entities.assetTypeSection.name,
120
+ title: RootConfig.entities.assetTypeSection.title,
121
+ icon: RootConfig.entities.assetTypeSection.icon,
122
+ plugins: [{ name: 'unique-fields', options: { fields: 'code', scope: 'global' } },
123
+ { name: 'notes' }
124
+ ],
125
+ pages: [
126
+ {
127
+ componentKey: ASSET_TYPE_COMPONENTS_PAGE_COMPONENT_KEY,
128
+ field: 'questions',
129
+ title: '@assessment-management:questionnaires.entities.questionnaire.fields.questions.title',
130
+ icon: 'fa-light fa-list-check',
131
+ layout: { order: 1, position: 'after' },
132
+ },
133
+ ],
134
+ relatedEntities: [
135
+ // {
136
+ // entity: `${RootConfig.module.name}.${RootConfig.entities.assetTypeSectionComponent.name}`,
137
+ // title:
138
+ // '@asset-management:assetTypeSections.entities.assetTypeSection.related-entities.assetTypeSectionComponents.title',
139
+ // //icon: RootConfig.entities.assetTypeSectionComponent.icon,
140
+ // //columns: ['roleName', 'count', 'hasMaintenance'],
141
+ // conditions: [entityDetailsSimpleCondition('assetTypeSectionId')],
142
+ // actions: [...entityDetailsCrudActions('assetTypeSectionId')],
143
+ // layout: { type: 'tab-list' },
144
+ // },
145
+ ],
146
+ formats: {
147
+ individual: RootConfig.entities.assetTypeSection.title,
148
+ plural: RootConfig.entities.assetTypeSection.titlePlural,
149
+ searchResult: { title: '{{ title }}' },
150
+ },
151
+ groups: [
152
+ {
153
+ id: 'basic-info',
154
+ title: '@asset-management:assetTypeSections.entities.assetTypeSection.groups.basic-info',
155
+ },
156
+ ],
157
+ properties: [
158
+ {
159
+ name: 'id',
160
+ title: 'ID',
161
+ schema: { dataType: 'uuid', visible: false, nullable: false, readonly: true, unique: { enabled: true } },
162
+ },
163
+ {
164
+ name: 'assetTypeId',
165
+ title: 'Asset Type ID',
166
+ schema: { dataType: 'uuid', visible: false, nullable: false, readonly: true },
167
+ options: { sort: { enabled: false }, filter: { advance: { enabled: false }, inline: { enabled: false } } },
168
+ },
169
+ {
170
+ name: 'code',
171
+ title: '@asset-management:assetTypeSections.entities.assetTypeSection.fields.code.title',
172
+ groupId: 'basic-info',
173
+ schema: {
174
+ dataType: 'number',
175
+ unique: { enabled: true },
176
+ interface: {
177
+ type: AXPWidgetsList.Editors.NumberBox,
178
+ options: {
179
+ placeholder: '@asset-management:assetTypeSections.entities.assetTypeSection.fields.code.placeholder',
180
+ },
181
+ },
182
+ },
183
+ options: {
184
+ sort: { enabled: true },
185
+ filter: { advance: { enabled: true }, inline: { enabled: true } },
186
+ },
187
+ validations: [{ rule: 'required' }],
188
+ },
189
+ {
190
+ name: 'title',
191
+ title: '@asset-management:assetTypeSections.entities.assetTypeSection.fields.title.title',
192
+ groupId: 'basic-info',
193
+ schema: {
194
+ dataType: 'string',
195
+ interface: {
196
+ type: AXPWidgetsList.Editors.TextBox,
197
+ options: {
198
+ placeholder: '@asset-management:assetTypeSections.entities.assetTypeSection.fields.title.placeholder',
199
+ },
200
+ },
201
+ },
202
+ options: {
203
+ sort: { enabled: true },
204
+ filter: { advance: { enabled: true }, inline: { enabled: true } },
205
+ },
206
+ validations: [{ rule: 'required' }],
207
+ },
208
+ ],
209
+ columns: [{ name: 'code' }, { name: 'title' }],
210
+ queries: {},
211
+ interfaces: {
212
+ master: {
213
+ create: {
214
+ sections: [{ id: 'basic-info', order: 1, layout: { positions: { lg: { colSpan: 12 } } } }],
215
+ properties: [
216
+ { name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
217
+ { name: 'title', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
218
+ ],
219
+ },
220
+ update: {
221
+ sections: [{ id: 'basic-info', order: 1, layout: { positions: { lg: { colSpan: 12 } } } }],
222
+ properties: [
223
+ { name: 'code', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
224
+ { name: 'title', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
225
+ ],
226
+ },
227
+ single: {
228
+ title: '{{ title }}',
229
+ sections: [{ id: 'basic-info', order: 1, layout: { positions: { lg: { colSpan: 12 } } } }],
230
+ properties: [
231
+ { name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
232
+ { name: 'title', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
233
+ ],
234
+ actions: [...entityMasterRecordActions()],
235
+ },
236
+ list: {
237
+ actions: [...entityMasterCrudActions()],
238
+ views: [createAllQueryView({ sorts: [{ name: 'title', dir: 'asc' }] })],
239
+ },
240
+ },
241
+ },
242
+ };
243
+ return entityDef;
244
+ }
245
+ //#endregion
246
+
247
+ /**
248
+ * Generated bundle index. Do not edit.
249
+ */
250
+
251
+ export { factoryAssetTypeSection };
252
+ //# sourceMappingURL=acorex-platform-module-asset-management-client-contracts-entities-asset-type-section.mjs.map