@acorex-platform/module-reservation-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 (52) hide show
  1. package/fesm2022/acorex-platform-module-reservation-management-client-contracts-entities-reservation-class-status.mjs +322 -0
  2. package/fesm2022/acorex-platform-module-reservation-management-client-contracts-entities-reservation-class-status.mjs.map +1 -0
  3. package/fesm2022/acorex-platform-module-reservation-management-client-contracts-entities-reservation-class.mjs +296 -0
  4. package/fesm2022/acorex-platform-module-reservation-management-client-contracts-entities-reservation-class.mjs.map +1 -0
  5. package/fesm2022/acorex-platform-module-reservation-management-client-contracts-entities-reservation-event.mjs +341 -0
  6. package/fesm2022/acorex-platform-module-reservation-management-client-contracts-entities-reservation-event.mjs.map +1 -0
  7. package/fesm2022/acorex-platform-module-reservation-management-client-contracts-entities-reservation-resource-type.mjs +245 -0
  8. package/fesm2022/acorex-platform-module-reservation-management-client-contracts-entities-reservation-resource-type.mjs.map +1 -0
  9. package/fesm2022/acorex-platform-module-reservation-management-client-contracts-entities-reservation-status-transition.mjs +305 -0
  10. package/fesm2022/acorex-platform-module-reservation-management-client-contracts-entities-reservation-status-transition.mjs.map +1 -0
  11. package/fesm2022/acorex-platform-module-reservation-management-client-contracts-entities-reservation-status.mjs +250 -0
  12. package/fesm2022/acorex-platform-module-reservation-management-client-contracts-entities-reservation-status.mjs.map +1 -0
  13. package/fesm2022/acorex-platform-module-reservation-management-client-contracts-entities-reservation-type.mjs +242 -0
  14. package/fesm2022/acorex-platform-module-reservation-management-client-contracts-entities-reservation-type.mjs.map +1 -0
  15. package/fesm2022/acorex-platform-module-reservation-management-client-contracts-entities-reservation.mjs +491 -0
  16. package/fesm2022/acorex-platform-module-reservation-management-client-contracts-entities-reservation.mjs.map +1 -0
  17. package/fesm2022/acorex-platform-module-reservation-management-client-contracts-entity-catalog-acorex-platform-module-reservation-management-client-contracts-entity-catalog-ClAI9Vjo.mjs +125 -0
  18. package/fesm2022/acorex-platform-module-reservation-management-client-contracts-entity-catalog-acorex-platform-module-reservation-management-client-contracts-entity-catalog-ClAI9Vjo.mjs.map +1 -0
  19. package/fesm2022/acorex-platform-module-reservation-management-client-contracts-entity-catalog-reservation-class-status.entity-DxL8xo19.mjs +223 -0
  20. package/fesm2022/acorex-platform-module-reservation-management-client-contracts-entity-catalog-reservation-class-status.entity-DxL8xo19.mjs.map +1 -0
  21. package/fesm2022/acorex-platform-module-reservation-management-client-contracts-entity-catalog-reservation-class.entity-CcH8dDaj.mjs +197 -0
  22. package/fesm2022/acorex-platform-module-reservation-management-client-contracts-entity-catalog-reservation-class.entity-CcH8dDaj.mjs.map +1 -0
  23. package/fesm2022/acorex-platform-module-reservation-management-client-contracts-entity-catalog-reservation-event.entity-CuSeIX8T.mjs +242 -0
  24. package/fesm2022/acorex-platform-module-reservation-management-client-contracts-entity-catalog-reservation-event.entity-CuSeIX8T.mjs.map +1 -0
  25. package/fesm2022/acorex-platform-module-reservation-management-client-contracts-entity-catalog-reservation-resource-type.entity-Ck2vLXdx.mjs +146 -0
  26. package/fesm2022/acorex-platform-module-reservation-management-client-contracts-entity-catalog-reservation-resource-type.entity-Ck2vLXdx.mjs.map +1 -0
  27. package/fesm2022/acorex-platform-module-reservation-management-client-contracts-entity-catalog-reservation-status-transition.entity-BtLUko4J.mjs +206 -0
  28. package/fesm2022/acorex-platform-module-reservation-management-client-contracts-entity-catalog-reservation-status-transition.entity-BtLUko4J.mjs.map +1 -0
  29. package/fesm2022/acorex-platform-module-reservation-management-client-contracts-entity-catalog-reservation-status.entity-CJ26bHTc.mjs +151 -0
  30. package/fesm2022/acorex-platform-module-reservation-management-client-contracts-entity-catalog-reservation-status.entity-CJ26bHTc.mjs.map +1 -0
  31. package/fesm2022/acorex-platform-module-reservation-management-client-contracts-entity-catalog-reservation-type.entity-CKv5nyxw.mjs +143 -0
  32. package/fesm2022/acorex-platform-module-reservation-management-client-contracts-entity-catalog-reservation-type.entity-CKv5nyxw.mjs.map +1 -0
  33. package/fesm2022/acorex-platform-module-reservation-management-client-contracts-entity-catalog-reservation.entity-BQ019c2A.mjs +392 -0
  34. package/fesm2022/acorex-platform-module-reservation-management-client-contracts-entity-catalog-reservation.entity-BQ019c2A.mjs.map +1 -0
  35. package/fesm2022/acorex-platform-module-reservation-management-client-contracts-entity-catalog.mjs +2 -0
  36. package/fesm2022/acorex-platform-module-reservation-management-client-contracts-entity-catalog.mjs.map +1 -0
  37. package/fesm2022/acorex-platform-module-reservation-management-client-contracts.mjs.map +1 -1
  38. package/fesm2022/acorex-platform-module-reservation-management-client-local-entities.mjs +36 -0
  39. package/fesm2022/acorex-platform-module-reservation-management-client-local-entities.mjs.map +1 -0
  40. package/fesm2022/acorex-platform-module-reservation-management-client.mjs.map +1 -1
  41. package/package.json +41 -1
  42. package/types/acorex-platform-module-reservation-management-client-contracts-entities-reservation-class-status.d.ts +5 -0
  43. package/types/acorex-platform-module-reservation-management-client-contracts-entities-reservation-class.d.ts +5 -0
  44. package/types/acorex-platform-module-reservation-management-client-contracts-entities-reservation-event.d.ts +5 -0
  45. package/types/acorex-platform-module-reservation-management-client-contracts-entities-reservation-resource-type.d.ts +5 -0
  46. package/types/acorex-platform-module-reservation-management-client-contracts-entities-reservation-status-transition.d.ts +5 -0
  47. package/types/acorex-platform-module-reservation-management-client-contracts-entities-reservation-status.d.ts +5 -0
  48. package/types/acorex-platform-module-reservation-management-client-contracts-entities-reservation-type.d.ts +5 -0
  49. package/types/acorex-platform-module-reservation-management-client-contracts-entities-reservation.d.ts +5 -0
  50. package/types/acorex-platform-module-reservation-management-client-contracts-entity-catalog.d.ts +10 -0
  51. package/types/acorex-platform-module-reservation-management-client-contracts.d.ts +6 -0
  52. package/types/acorex-platform-module-reservation-management-client-local-entities.d.ts +12 -0
@@ -0,0 +1,341 @@
1
+ import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';
2
+ import { createAllQueryView, AXPEntityCommandScope } from '@acorex-platform/framework-shared/entity';
3
+
4
+ //#region ---- Root Configuration ----
5
+ const config = {
6
+ i18n: 'reservation-management',
7
+ module: 'ReservationManagement',
8
+ route: 'reservation-management',
9
+ };
10
+ const RootConfig = {
11
+ config,
12
+ module: {
13
+ route: config.route,
14
+ name: config.module,
15
+ title: '@reservation-management:module.title',
16
+ icon: 'fa-light fa-calendar-check',
17
+ },
18
+ entities: {
19
+ reservationType: {
20
+ name: 'ReservationType',
21
+ source: `${config.module}.ReservationType`,
22
+ title: '@reservation-management:reservation-types.entities.reservation-type.title',
23
+ titlePlural: '@reservation-management:reservation-types.entities.reservation-type.plural',
24
+ icon: 'fa-light fa-list',
25
+ },
26
+ reservationStatus: {
27
+ name: 'ReservationStatus',
28
+ source: `${config.module}.ReservationStatus`,
29
+ title: '@reservation-management:reservation-statuses.entities.reservation-status.title',
30
+ titlePlural: '@reservation-management:reservation-statuses.entities.reservation-status.plural',
31
+ icon: 'fa-light fa-flag',
32
+ },
33
+ reservationClass: {
34
+ name: 'ReservationClass',
35
+ source: `${config.module}.ReservationClass`,
36
+ title: '@reservation-management:reservation-classes.entities.reservation-class.title',
37
+ titlePlural: '@reservation-management:reservation-classes.entities.reservation-class.plural',
38
+ icon: 'fa-light fa-tag',
39
+ },
40
+ reservation: {
41
+ name: 'Reservation',
42
+ source: `${config.module}.Reservation`,
43
+ title: '@reservation-management:reservations.entities.reservation.title',
44
+ titlePlural: '@reservation-management:reservations.entities.reservation.plural',
45
+ icon: 'fa-light fa-calendar-check',
46
+ },
47
+ reservationEvent: {
48
+ name: 'ReservationEvent',
49
+ source: `${config.module}.ReservationEvent`,
50
+ title: '@reservation-management:reservation-events.entities.reservation-event.title',
51
+ titlePlural: '@reservation-management:reservation-events.entities.reservation-event.plural',
52
+ icon: 'fa-light fa-calendar-alt',
53
+ },
54
+ reservationHold: {
55
+ name: 'ReservationHold',
56
+ source: `${config.module}.ReservationHold`,
57
+ title: '@reservation-management:reservation-holds.entities.reservation-hold.title',
58
+ titlePlural: '@reservation-management:reservation-holds.entities.reservation-hold.plural',
59
+ icon: 'fa-light fa-pause-circle',
60
+ },
61
+ reservationStatusTransition: {
62
+ name: 'ReservationStatusTransition',
63
+ source: `${config.module}.ReservationStatusTransition`,
64
+ title: '@reservation-management:reservation-status-transitions.entities.reservation-status-transition.title',
65
+ titlePlural: '@reservation-management:reservation-status-transitions.entities.reservation-status-transition.plural',
66
+ icon: 'fa-light fa-right-left',
67
+ },
68
+ reservationResourceType: {
69
+ name: 'ReservationResourceType',
70
+ source: `${config.module}.ReservationResourceType`,
71
+ title: '@reservation-management:reservation-resource-types.entities.reservation-resource-type.title',
72
+ titlePlural: '@reservation-management:reservation-resource-types.entities.reservation-resource-type.plural',
73
+ icon: 'fa-light fa-cube',
74
+ },
75
+ reservationClassStatus: {
76
+ name: 'ReservationClassStatus',
77
+ source: `${config.module}.ReservationClassStatus`,
78
+ title: '@reservation-management:reservation-class-statuses.entities.reservation-class-status.title',
79
+ titlePlural: '@reservation-management:reservation-class-statuses.entities.reservation-class-status.plural',
80
+ icon: 'fa-light fa-circle-nodes',
81
+ },
82
+ reservationClassType: {
83
+ name: 'ReservationClassType',
84
+ source: `${config.module}.ReservationClassType`,
85
+ title: '@reservation-management:reservation-class-types.entities.reservation-class-type.title',
86
+ titlePlural: '@reservation-management:reservation-class-types.entities.reservation-class-type.plural',
87
+ icon: 'fa-light fa-layer-group',
88
+ },
89
+ },
90
+ pages: {
91
+ reservationBoard: {
92
+ path: 'reservation-board',
93
+ title: '@reservation-management:reservation-board.page-title',
94
+ icon: 'fa-light fa-calendar-lines',
95
+ },
96
+ },
97
+ };
98
+ //#endregion
99
+
100
+ //#endregion
101
+ //#region ---- Entity Factory ----
102
+ async function reservationEventFactory() {
103
+ const i18n = RootConfig.config.i18n;
104
+ const entityDef = {
105
+ module: RootConfig.module.name,
106
+ name: RootConfig.entities.reservationEvent.name,
107
+ title: RootConfig.entities.reservationEvent.title,
108
+ icon: RootConfig.entities.reservationEvent.icon,
109
+ formats: {
110
+ individual: RootConfig.entities.reservationEvent.title,
111
+ plural: RootConfig.entities.reservationEvent.titlePlural,
112
+ searchResult: {
113
+ title: '',
114
+ },
115
+ },
116
+ // Property groups
117
+ groups: [
118
+ {
119
+ id: 'basic-information',
120
+ title: '@reservation-management:reservation-events.entities.reservation-event.groups.basic-information',
121
+ },
122
+ ],
123
+ // Entity properties
124
+ properties: [
125
+ {
126
+ name: 'id',
127
+ title: '@general:terms.common.id',
128
+ groupId: 'basic-information',
129
+ options: {
130
+ sort: { enabled: true },
131
+ filter: {
132
+ advance: { enabled: true },
133
+ inline: { enabled: true },
134
+ },
135
+ },
136
+ schema: {
137
+ dataType: 'string',
138
+ visible: false,
139
+ interface: {
140
+ type: AXPWidgetsList.Editors.TextBox,
141
+ options: {
142
+ readonly: true,
143
+ visible: false,
144
+ },
145
+ },
146
+ },
147
+ },
148
+ {
149
+ name: 'reservationId',
150
+ title: '@ ',
151
+ groupId: 'basic-information',
152
+ options: {
153
+ sort: { enabled: true },
154
+ filter: {
155
+ advance: { enabled: true },
156
+ inline: { enabled: true },
157
+ },
158
+ },
159
+ schema: {
160
+ dataType: 'object',
161
+ interface: {
162
+ type: AXPWidgetsList.Editors.LookupBox,
163
+ options: {
164
+ entity: `${RootConfig.module.name}.${RootConfig.entities.reservation.name}`,
165
+ expose: [
166
+ { source: 'id', target: 'reservation.{id}' },
167
+ { source: 'resource', target: 'reservation.{resource}' },
168
+ ],
169
+ },
170
+ },
171
+ },
172
+ validations: [{ rule: 'required' }],
173
+ },
174
+ ],
175
+ // Columns for list views
176
+ columns: [
177
+ { name: 'reservationId', options: { dataPath: 'reservation' } },
178
+ { name: 'reservationEventId', options: { dataPath: 'reservationEvent' } },
179
+ { name: 'eventDate' },
180
+ { name: 'actorId', options: { dataPath: 'actor' } },
181
+ { name: 'fromStatusId', options: { dataPath: 'fromStatus' } },
182
+ { name: 'toStatusId', options: { dataPath: 'toStatus' } },
183
+ ],
184
+ // Commands
185
+ // Queries
186
+ // Interfaces
187
+ interfaces: {
188
+ master: {
189
+ create: {
190
+ sections: [{ id: 'basic-information', order: 1, layout: { positions: { lg: { colSpan: 12 } } } }],
191
+ properties: [
192
+ {
193
+ name: 'id',
194
+ layout: { positions: { lg: { colSpan: 6 } } },
195
+ },
196
+ {
197
+ name: 'reservationId',
198
+ layout: { positions: { lg: { colSpan: 12 } } },
199
+ },
200
+ {
201
+ name: 'reservationEventId',
202
+ layout: { positions: { lg: { colSpan: 12 } } },
203
+ },
204
+ {
205
+ name: 'eventDate',
206
+ layout: { positions: { lg: { colSpan: 12 } } },
207
+ },
208
+ {
209
+ name: 'actorId',
210
+ layout: { positions: { lg: { colSpan: 12 } } },
211
+ },
212
+ {
213
+ name: 'fromStatusId',
214
+ layout: { positions: { lg: { colSpan: 12 } } },
215
+ },
216
+ {
217
+ name: 'toStatusId',
218
+ layout: { positions: { lg: { colSpan: 12 } } },
219
+ },
220
+ ],
221
+ },
222
+ update: {
223
+ sections: [{ id: 'basic-information', order: 1, layout: { positions: { lg: { colSpan: 12 } } } }],
224
+ properties: [
225
+ {
226
+ name: 'id',
227
+ layout: { positions: { lg: { colSpan: 6 } } },
228
+ },
229
+ {
230
+ name: 'reservationId',
231
+ layout: { positions: { lg: { colSpan: 12 } } },
232
+ },
233
+ {
234
+ name: 'reservationEventId',
235
+ layout: { positions: { lg: { colSpan: 12 } } },
236
+ },
237
+ {
238
+ name: 'eventDate',
239
+ layout: { positions: { lg: { colSpan: 12 } } },
240
+ },
241
+ {
242
+ name: 'actorId',
243
+ layout: { positions: { lg: { colSpan: 12 } } },
244
+ },
245
+ {
246
+ name: 'fromStatusId',
247
+ layout: { positions: { lg: { colSpan: 12 } } },
248
+ },
249
+ {
250
+ name: 'toStatusId',
251
+ layout: { positions: { lg: { colSpan: 12 } } },
252
+ },
253
+ ],
254
+ },
255
+ single: {
256
+ title: '{{ resource }}',
257
+ sections: [{ id: 'basic-information', order: 1, layout: { positions: { lg: { colSpan: 12 } } } }],
258
+ properties: [
259
+ {
260
+ name: 'id',
261
+ layout: { positions: { lg: { colSpan: 6 } } },
262
+ },
263
+ {
264
+ name: 'reservationId',
265
+ layout: { positions: { lg: { colSpan: 12 } } },
266
+ },
267
+ {
268
+ name: 'reservationEventId',
269
+ layout: { positions: { lg: { colSpan: 12 } } },
270
+ },
271
+ {
272
+ name: 'eventDate',
273
+ layout: { positions: { lg: { colSpan: 12 } } },
274
+ },
275
+ {
276
+ name: 'actorId',
277
+ layout: { positions: { lg: { colSpan: 12 } } },
278
+ },
279
+ {
280
+ name: 'fromStatusId',
281
+ layout: { positions: { lg: { colSpan: 12 } } },
282
+ },
283
+ {
284
+ name: 'toStatusId',
285
+ layout: { positions: { lg: { colSpan: 12 } } },
286
+ },
287
+ ],
288
+ actions: [
289
+ {
290
+ title: '@general:actions.edit.title',
291
+ command: 'Entity:Edit',
292
+ priority: 'primary',
293
+ type: 'update',
294
+ scope: AXPEntityCommandScope.Individual,
295
+ },
296
+ ],
297
+ },
298
+ list: {
299
+ actions: [
300
+ {
301
+ title: '@general:actions.create.title',
302
+ command: 'Entity:Create',
303
+ priority: 'primary',
304
+ type: 'create',
305
+ scope: AXPEntityCommandScope.TypeLevel,
306
+ },
307
+ {
308
+ title: '@general:actions.edit.title',
309
+ command: 'Entity:Edit',
310
+ priority: 'primary',
311
+ type: 'update',
312
+ scope: AXPEntityCommandScope.Individual,
313
+ default: true, // Enable double-click to open edit mode
314
+ },
315
+ {
316
+ title: '@general:actions.delete.title',
317
+ command: 'Entity:Remove',
318
+ priority: 'secondary',
319
+ type: 'delete',
320
+ scope: AXPEntityCommandScope.Individual,
321
+ },
322
+ ],
323
+ views: [
324
+ createAllQueryView({
325
+ sorts: [{ name: 'title', dir: 'asc' }],
326
+ }),
327
+ ],
328
+ },
329
+ },
330
+ },
331
+ };
332
+ return entityDef;
333
+ }
334
+ //#endregion
335
+
336
+ /**
337
+ * Generated bundle index. Do not edit.
338
+ */
339
+
340
+ export { reservationEventFactory };
341
+ //# sourceMappingURL=acorex-platform-module-reservation-management-client-contracts-entities-reservation-event.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-reservation-management-client-contracts-entities-reservation-event.mjs","sources":["../../../../libs/modules/reservation-management/contracts/src/root-config.ts","../../../../libs/modules/reservation-management/contracts/src/entities/reservation-event/reservation-event.entity.ts","../../../../libs/modules/reservation-management/contracts/src/acorex-platform-module-reservation-management-client-contracts-entities-reservation-event.ts"],"sourcesContent":["//#region ---- Root Configuration ----\n\nconst config = {\n i18n: 'reservation-management',\n module: 'ReservationManagement',\n route: 'reservation-management',\n};\n\nexport const RootConfig = {\n config,\n module: {\n route: config.route,\n name: config.module,\n title: '@reservation-management:module.title',\n icon: 'fa-light fa-calendar-check',\n },\n entities: {\n reservationType: {\n name: 'ReservationType',\n source: `${config.module}.ReservationType`,\n title: '@reservation-management:reservation-types.entities.reservation-type.title',\n titlePlural: '@reservation-management:reservation-types.entities.reservation-type.plural',\n icon: 'fa-light fa-list',\n },\n reservationStatus: {\n name: 'ReservationStatus',\n source: `${config.module}.ReservationStatus`,\n title: '@reservation-management:reservation-statuses.entities.reservation-status.title',\n titlePlural: '@reservation-management:reservation-statuses.entities.reservation-status.plural',\n icon: 'fa-light fa-flag',\n },\n reservationClass: {\n name: 'ReservationClass',\n source: `${config.module}.ReservationClass`,\n title: '@reservation-management:reservation-classes.entities.reservation-class.title',\n titlePlural: '@reservation-management:reservation-classes.entities.reservation-class.plural',\n icon: 'fa-light fa-tag',\n },\n reservation: {\n name: 'Reservation',\n source: `${config.module}.Reservation`,\n title: '@reservation-management:reservations.entities.reservation.title',\n titlePlural: '@reservation-management:reservations.entities.reservation.plural',\n icon: 'fa-light fa-calendar-check',\n },\n reservationEvent: {\n name: 'ReservationEvent',\n source: `${config.module}.ReservationEvent`,\n title: '@reservation-management:reservation-events.entities.reservation-event.title',\n titlePlural: '@reservation-management:reservation-events.entities.reservation-event.plural',\n icon: 'fa-light fa-calendar-alt',\n },\n reservationHold: {\n name: 'ReservationHold',\n source: `${config.module}.ReservationHold`,\n title: '@reservation-management:reservation-holds.entities.reservation-hold.title',\n titlePlural: '@reservation-management:reservation-holds.entities.reservation-hold.plural',\n icon: 'fa-light fa-pause-circle',\n },\n reservationStatusTransition: {\n name: 'ReservationStatusTransition',\n source: `${config.module}.ReservationStatusTransition`,\n title: '@reservation-management:reservation-status-transitions.entities.reservation-status-transition.title',\n titlePlural: '@reservation-management:reservation-status-transitions.entities.reservation-status-transition.plural',\n icon: 'fa-light fa-right-left',\n },\n reservationResourceType: {\n name: 'ReservationResourceType',\n source: `${config.module}.ReservationResourceType`,\n title: '@reservation-management:reservation-resource-types.entities.reservation-resource-type.title',\n titlePlural: '@reservation-management:reservation-resource-types.entities.reservation-resource-type.plural',\n icon: 'fa-light fa-cube',\n },\n reservationClassStatus: {\n name: 'ReservationClassStatus',\n source: `${config.module}.ReservationClassStatus`,\n title: '@reservation-management:reservation-class-statuses.entities.reservation-class-status.title',\n titlePlural: '@reservation-management:reservation-class-statuses.entities.reservation-class-status.plural',\n icon: 'fa-light fa-circle-nodes',\n },\n reservationClassType: {\n name: 'ReservationClassType',\n source: `${config.module}.ReservationClassType`,\n title: '@reservation-management:reservation-class-types.entities.reservation-class-type.title',\n titlePlural: '@reservation-management:reservation-class-types.entities.reservation-class-type.plural',\n icon: 'fa-light fa-layer-group',\n },\n },\n pages: {\n reservationBoard: {\n path: 'reservation-board',\n title: '@reservation-management:reservation-board.page-title',\n icon: 'fa-light fa-calendar-lines',\n },\n },\n};\n\n//#endregion\n","import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, AXPEntityCommandScope, createAllQueryView } 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 reservationEventFactory(): Promise<AXPEntity | null> {\n const i18n = RootConfig.config.i18n;\n\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.reservationEvent.name,\n title: RootConfig.entities.reservationEvent.title,\n icon: RootConfig.entities.reservationEvent.icon,\n formats: {\n individual: RootConfig.entities.reservationEvent.title,\n plural: RootConfig.entities.reservationEvent.titlePlural,\n searchResult: {\n title: '',\n },\n },\n\n // Property groups\n groups: [\n {\n id: 'basic-information',\n title: '@reservation-management:reservation-events.entities.reservation-event.groups.basic-information',\n },\n ],\n\n // Entity properties\n properties: [\n {\n name: 'id',\n title: '@general:terms.common.id',\n groupId: 'basic-information',\n options: {\n sort: { enabled: true },\n filter: {\n advance: { enabled: true },\n inline: { enabled: true },\n },\n },\n schema: {\n dataType: 'string',\n visible: false,\n interface: {\n type: AXPWidgetsList.Editors.TextBox,\n options: {\n readonly: true,\n visible: false,\n },\n },\n },\n },\n {\n name: 'reservationId',\n title: '@ ',\n groupId: 'basic-information',\n options: {\n sort: { enabled: true },\n filter: {\n advance: { enabled: true },\n inline: { enabled: true },\n },\n },\n schema: {\n dataType: 'object',\n interface: {\n type: AXPWidgetsList.Editors.LookupBox,\n options: {\n entity: `${RootConfig.module.name}.${RootConfig.entities.reservation.name}`,\n expose: [\n { source: 'id', target: 'reservation.{id}' },\n { source: 'resource', target: 'reservation.{resource}' },\n ],\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n ],\n\n // Columns for list views\n columns: [\n { name: 'reservationId', options: { dataPath: 'reservation' } },\n { name: 'reservationEventId', options: { dataPath: 'reservationEvent' } },\n { name: 'eventDate' },\n { name: 'actorId', options: { dataPath: 'actor' } },\n { name: 'fromStatusId', options: { dataPath: 'fromStatus' } },\n { name: 'toStatusId', options: { dataPath: 'toStatus' } },\n ],\n\n // Commands\n\n // Queries\n\n // Interfaces\n interfaces: {\n master: {\n create: {\n sections: [{ id: 'basic-information', order: 1, layout: { positions: { lg: { colSpan: 12 } } } }],\n properties: [\n {\n name: 'id',\n layout: { positions: { lg: { colSpan: 6 } } },\n },\n {\n name: 'reservationId',\n layout: { positions: { lg: { colSpan: 12 } } },\n },\n {\n name: 'reservationEventId',\n layout: { positions: { lg: { colSpan: 12 } } },\n },\n {\n name: 'eventDate',\n layout: { positions: { lg: { colSpan: 12 } } },\n },\n {\n name: 'actorId',\n layout: { positions: { lg: { colSpan: 12 } } },\n },\n {\n name: 'fromStatusId',\n layout: { positions: { lg: { colSpan: 12 } } },\n },\n {\n name: 'toStatusId',\n layout: { positions: { lg: { colSpan: 12 } } },\n },\n ],\n },\n update: {\n sections: [{ id: 'basic-information', order: 1, layout: { positions: { lg: { colSpan: 12 } } } }],\n properties: [\n {\n name: 'id',\n layout: { positions: { lg: { colSpan: 6 } } },\n },\n {\n name: 'reservationId',\n layout: { positions: { lg: { colSpan: 12 } } },\n },\n {\n name: 'reservationEventId',\n layout: { positions: { lg: { colSpan: 12 } } },\n },\n {\n name: 'eventDate',\n layout: { positions: { lg: { colSpan: 12 } } },\n },\n {\n name: 'actorId',\n layout: { positions: { lg: { colSpan: 12 } } },\n },\n {\n name: 'fromStatusId',\n layout: { positions: { lg: { colSpan: 12 } } },\n },\n {\n name: 'toStatusId',\n layout: { positions: { lg: { colSpan: 12 } } },\n },\n ],\n },\n single: {\n title: '{{ resource }}',\n sections: [{ id: 'basic-information', order: 1, layout: { positions: { lg: { colSpan: 12 } } } }],\n properties: [\n {\n name: 'id',\n layout: { positions: { lg: { colSpan: 6 } } },\n },\n {\n name: 'reservationId',\n layout: { positions: { lg: { colSpan: 12 } } },\n },\n {\n name: 'reservationEventId',\n layout: { positions: { lg: { colSpan: 12 } } },\n },\n {\n name: 'eventDate',\n layout: { positions: { lg: { colSpan: 12 } } },\n },\n {\n name: 'actorId',\n layout: { positions: { lg: { colSpan: 12 } } },\n },\n {\n name: 'fromStatusId',\n layout: { positions: { lg: { colSpan: 12 } } },\n },\n {\n name: 'toStatusId',\n layout: { positions: { lg: { colSpan: 12 } } },\n },\n ],\n actions: [\n {\n title: '@general:actions.edit.title',\n command: 'Entity:Edit',\n priority: 'primary',\n type: 'update',\n scope: AXPEntityCommandScope.Individual,\n },\n ],\n },\n list: {\n actions: [\n {\n title: '@general:actions.create.title',\n command: 'Entity:Create',\n priority: 'primary',\n type: 'create',\n scope: AXPEntityCommandScope.TypeLevel,\n },\n {\n title: '@general:actions.edit.title',\n command: 'Entity:Edit',\n priority: 'primary',\n type: 'update',\n scope: AXPEntityCommandScope.Individual,\n default: true, // Enable double-click to open edit mode\n },\n {\n title: '@general:actions.delete.title',\n command: 'Entity:Remove',\n priority: 'secondary',\n type: 'delete',\n scope: AXPEntityCommandScope.Individual,\n },\n ],\n views: [\n createAllQueryView({\n sorts: [{ name: 'title', dir: 'asc' }],\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.reservation-event';\n"],"names":[],"mappings":";;;AAAA;AAEA,MAAM,MAAM,GAAG;AACb,IAAA,IAAI,EAAE,wBAAwB;AAC9B,IAAA,MAAM,EAAE,uBAAuB;AAC/B,IAAA,KAAK,EAAE,wBAAwB;CAChC;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,sCAAsC;AAC7C,QAAA,IAAI,EAAE,4BAA4B;AACnC,KAAA;AACD,IAAA,QAAQ,EAAE;AACR,QAAA,eAAe,EAAE;AACf,YAAA,IAAI,EAAE,iBAAiB;AACvB,YAAA,MAAM,EAAE,CAAA,EAAG,MAAM,CAAC,MAAM,CAAA,gBAAA,CAAkB;AAC1C,YAAA,KAAK,EAAE,2EAA2E;AAClF,YAAA,WAAW,EAAE,4EAA4E;AACzF,YAAA,IAAI,EAAE,kBAAkB;AACzB,SAAA;AACD,QAAA,iBAAiB,EAAE;AACjB,YAAA,IAAI,EAAE,mBAAmB;AACzB,YAAA,MAAM,EAAE,CAAA,EAAG,MAAM,CAAC,MAAM,CAAA,kBA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AA;AACE,4BAAA,KAAK,EAAE,6BAA6B;AACpC,4BAAA,OAAO,EAAE,aAAa;AACtB,4BAAA,QAAQ,EAAE,SAAS;AACnB,4BAAA,IAAI,EAAE,QAAQ;4BACd,KAAK,EAAE,qBAAqB,CAAC,UAAU;4BACvC,OAAO,EAAE,IAAI;AACd,yBAAA;AACD,wBAAA;AACE,4BAAA,KAAK,EAAE,+BAA+B;AACtC,4BAAA,OAAO,EAAE,eAAe;AACxB,4BAAA,QAAQ,EAAE,WAAW;AACrB,4BAAA,IAAI,EAAE,QAAQ;4BACd,KAAK,EAAE,qBAAqB,CAAC,UAAU;AACxC,yBAAA;AACF,qBAAA;AACD,oBAAA,KAAK,EAAE;AACL,wBAAA,kBAAkB,CAAC;4BACjB,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;yBACvC,CAAC;AACH,qBAAA;AACF,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AAED,IAAA,OAAO,SAAS;AAClB;AAEA;;AC1PA;;AAEG;;"}
@@ -0,0 +1,245 @@
1
+ import { AXPWidgetsList, AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';
2
+ import { createAllQueryView, entityMasterCrudActions } from '@acorex-platform/framework-shared/entity';
3
+
4
+ //#region ---- Root Configuration ----
5
+ const config = {
6
+ i18n: 'reservation-management',
7
+ module: 'ReservationManagement',
8
+ route: 'reservation-management',
9
+ };
10
+ const RootConfig = {
11
+ config,
12
+ module: {
13
+ route: config.route,
14
+ name: config.module,
15
+ title: '@reservation-management:module.title',
16
+ icon: 'fa-light fa-calendar-check',
17
+ },
18
+ entities: {
19
+ reservationType: {
20
+ name: 'ReservationType',
21
+ source: `${config.module}.ReservationType`,
22
+ title: '@reservation-management:reservation-types.entities.reservation-type.title',
23
+ titlePlural: '@reservation-management:reservation-types.entities.reservation-type.plural',
24
+ icon: 'fa-light fa-list',
25
+ },
26
+ reservationStatus: {
27
+ name: 'ReservationStatus',
28
+ source: `${config.module}.ReservationStatus`,
29
+ title: '@reservation-management:reservation-statuses.entities.reservation-status.title',
30
+ titlePlural: '@reservation-management:reservation-statuses.entities.reservation-status.plural',
31
+ icon: 'fa-light fa-flag',
32
+ },
33
+ reservationClass: {
34
+ name: 'ReservationClass',
35
+ source: `${config.module}.ReservationClass`,
36
+ title: '@reservation-management:reservation-classes.entities.reservation-class.title',
37
+ titlePlural: '@reservation-management:reservation-classes.entities.reservation-class.plural',
38
+ icon: 'fa-light fa-tag',
39
+ },
40
+ reservation: {
41
+ name: 'Reservation',
42
+ source: `${config.module}.Reservation`,
43
+ title: '@reservation-management:reservations.entities.reservation.title',
44
+ titlePlural: '@reservation-management:reservations.entities.reservation.plural',
45
+ icon: 'fa-light fa-calendar-check',
46
+ },
47
+ reservationEvent: {
48
+ name: 'ReservationEvent',
49
+ source: `${config.module}.ReservationEvent`,
50
+ title: '@reservation-management:reservation-events.entities.reservation-event.title',
51
+ titlePlural: '@reservation-management:reservation-events.entities.reservation-event.plural',
52
+ icon: 'fa-light fa-calendar-alt',
53
+ },
54
+ reservationHold: {
55
+ name: 'ReservationHold',
56
+ source: `${config.module}.ReservationHold`,
57
+ title: '@reservation-management:reservation-holds.entities.reservation-hold.title',
58
+ titlePlural: '@reservation-management:reservation-holds.entities.reservation-hold.plural',
59
+ icon: 'fa-light fa-pause-circle',
60
+ },
61
+ reservationStatusTransition: {
62
+ name: 'ReservationStatusTransition',
63
+ source: `${config.module}.ReservationStatusTransition`,
64
+ title: '@reservation-management:reservation-status-transitions.entities.reservation-status-transition.title',
65
+ titlePlural: '@reservation-management:reservation-status-transitions.entities.reservation-status-transition.plural',
66
+ icon: 'fa-light fa-right-left',
67
+ },
68
+ reservationResourceType: {
69
+ name: 'ReservationResourceType',
70
+ source: `${config.module}.ReservationResourceType`,
71
+ title: '@reservation-management:reservation-resource-types.entities.reservation-resource-type.title',
72
+ titlePlural: '@reservation-management:reservation-resource-types.entities.reservation-resource-type.plural',
73
+ icon: 'fa-light fa-cube',
74
+ },
75
+ reservationClassStatus: {
76
+ name: 'ReservationClassStatus',
77
+ source: `${config.module}.ReservationClassStatus`,
78
+ title: '@reservation-management:reservation-class-statuses.entities.reservation-class-status.title',
79
+ titlePlural: '@reservation-management:reservation-class-statuses.entities.reservation-class-status.plural',
80
+ icon: 'fa-light fa-circle-nodes',
81
+ },
82
+ reservationClassType: {
83
+ name: 'ReservationClassType',
84
+ source: `${config.module}.ReservationClassType`,
85
+ title: '@reservation-management:reservation-class-types.entities.reservation-class-type.title',
86
+ titlePlural: '@reservation-management:reservation-class-types.entities.reservation-class-type.plural',
87
+ icon: 'fa-light fa-layer-group',
88
+ },
89
+ },
90
+ pages: {
91
+ reservationBoard: {
92
+ path: 'reservation-board',
93
+ title: '@reservation-management:reservation-board.page-title',
94
+ icon: 'fa-light fa-calendar-lines',
95
+ },
96
+ },
97
+ };
98
+ //#endregion
99
+
100
+ //#endregion
101
+ //#region ---- Entity Factory ----
102
+ async function reservationResourceTypeFactory() {
103
+ const i18n = RootConfig.config.i18n;
104
+ const entityDef = {
105
+ module: RootConfig.module.name,
106
+ name: RootConfig.entities.reservationResourceType.name,
107
+ title: RootConfig.entities.reservationResourceType.title,
108
+ icon: RootConfig.entities.reservationResourceType.icon,
109
+ formats: {
110
+ individual: RootConfig.entities.reservationResourceType.title,
111
+ plural: RootConfig.entities.reservationResourceType.titlePlural,
112
+ searchResult: {
113
+ title: '{{ title }}',
114
+ description: '{{ entityId }}',
115
+ },
116
+ },
117
+ groups: [
118
+ {
119
+ id: 'basic-information',
120
+ title: '@reservation-management:reservation-resource-types.entities.reservation-resource-type.groups.basic-information',
121
+ },
122
+ ],
123
+ properties: [
124
+ {
125
+ name: 'id',
126
+ title: '@general:terms.common.id',
127
+ schema: { dataType: 'uuid', visible: false, nullable: false, readonly: true, unique: { enabled: true } },
128
+ },
129
+ {
130
+ name: 'title',
131
+ title: '@reservation-management:reservation-resource-types.entities.reservation-resource-type.fields.title.title',
132
+ groupId: 'basic-information',
133
+ schema: {
134
+ dataType: 'string',
135
+ interface: {
136
+ type: AXPWidgetsList.Editors.TextBox,
137
+ options: {
138
+ placeholder: '@reservation-management:reservation-resource-types.entities.reservation-resource-type.fields.title.placeholder',
139
+ },
140
+ },
141
+ },
142
+ options: {
143
+ sort: { enabled: true },
144
+ filter: { advance: { enabled: true }, inline: { enabled: true } },
145
+ },
146
+ validations: [{ rule: 'required' }],
147
+ },
148
+ {
149
+ name: 'entityId',
150
+ title: '@reservation-management:reservation-resource-types.entities.reservation-resource-type.fields.entity-id.title',
151
+ groupId: 'basic-information',
152
+ schema: {
153
+ dataType: 'string',
154
+ interface: {
155
+ type: AXPWidgetsCatalog.lookup,
156
+ options: {
157
+ entity: 'PlatformManagement.EntityDefinition',
158
+ look: 'select',
159
+ textField: 'id',
160
+ valueField: 'id',
161
+ columns: ['name', 'module_id'],
162
+ allowSearch: true,
163
+ },
164
+ },
165
+ },
166
+ validations: [{ rule: 'required' }],
167
+ },
168
+ {
169
+ name: 'reservationClassId',
170
+ title: '@reservation-management:reservation-resource-types.entities.reservation-resource-type.fields.reservation-class-id.title',
171
+ groupId: 'basic-information',
172
+ schema: {
173
+ dataType: 'string',
174
+ interface: {
175
+ type: AXPWidgetsCatalog.lookup,
176
+ options: {
177
+ entity: `${RootConfig.module.name}.${RootConfig.entities.reservationClass.name}`,
178
+ textField: 'title',
179
+ valueField: 'id',
180
+ columns: ['code', 'title'],
181
+ expose: [
182
+ { source: 'id', target: 'reservationClass.id' },
183
+ { source: 'title', target: 'reservationClass.title' },
184
+ ],
185
+ },
186
+ },
187
+ },
188
+ options: {
189
+ sort: { enabled: true },
190
+ filter: { advance: { enabled: true }, inline: { enabled: true } },
191
+ },
192
+ validations: [{ rule: 'required' }],
193
+ },
194
+ ],
195
+ columns: [{ name: 'title' },
196
+ { name: 'entityId' },
197
+ { name: 'reservationClassId', options: { dataPath: 'reservationClass' } }],
198
+ interfaces: {
199
+ master: {
200
+ create: {
201
+ sections: [{ id: 'basic-information' }],
202
+ properties: [
203
+ { name: 'title', layout: { positions: { lg: { colSpan: 6 } } } },
204
+ { name: 'entityId', layout: { positions: { lg: { colSpan: 6 } } } },
205
+ { name: 'reservationClassId', layout: { positions: { lg: { colSpan: 6 } } } },
206
+ ],
207
+ },
208
+ update: {
209
+ sections: [{ id: 'basic-information' }],
210
+ properties: [
211
+ { name: 'title', layout: { positions: { lg: { colSpan: 6 } } } },
212
+ { name: 'entityId', layout: { positions: { lg: { colSpan: 6 } } } },
213
+ { name: 'reservationClassId', layout: { positions: { lg: { colSpan: 6 } } } },
214
+ ],
215
+ },
216
+ single: {
217
+ title: '{{ title }}',
218
+ sections: [{ id: 'basic-information' }],
219
+ properties: [
220
+ { name: 'title', layout: { positions: { lg: { colSpan: 6 } } } },
221
+ { name: 'entityId', layout: { positions: { lg: { colSpan: 6 } } } },
222
+ { name: 'reservationClassId', layout: { positions: { lg: { colSpan: 6 } } } },
223
+ ],
224
+ },
225
+ list: {
226
+ actions: [...entityMasterCrudActions()],
227
+ views: [
228
+ createAllQueryView({
229
+ sorts: [{ name: 'title', dir: 'asc' }],
230
+ }),
231
+ ],
232
+ },
233
+ },
234
+ },
235
+ };
236
+ return entityDef;
237
+ }
238
+ //#endregion
239
+
240
+ /**
241
+ * Generated bundle index. Do not edit.
242
+ */
243
+
244
+ export { reservationResourceTypeFactory };
245
+ //# sourceMappingURL=acorex-platform-module-reservation-management-client-contracts-entities-reservation-resource-type.mjs.map