@acorex-platform/module-reservation-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 (49) 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-C0xNOaEL.mjs +125 -0
  18. package/fesm2022/acorex-platform-module-reservation-management-client-contracts-entity-catalog-acorex-platform-module-reservation-management-client-contracts-entity-catalog-C0xNOaEL.mjs.map +1 -0
  19. package/fesm2022/acorex-platform-module-reservation-management-client-contracts-entity-catalog-reservation-class-status.entity-B9O13iXo.mjs +223 -0
  20. package/fesm2022/acorex-platform-module-reservation-management-client-contracts-entity-catalog-reservation-class-status.entity-B9O13iXo.mjs.map +1 -0
  21. package/fesm2022/acorex-platform-module-reservation-management-client-contracts-entity-catalog-reservation-class.entity-BzQdba-o.mjs +197 -0
  22. package/fesm2022/acorex-platform-module-reservation-management-client-contracts-entity-catalog-reservation-class.entity-BzQdba-o.mjs.map +1 -0
  23. package/fesm2022/acorex-platform-module-reservation-management-client-contracts-entity-catalog-reservation-event.entity-DcyBMFnq.mjs +242 -0
  24. package/fesm2022/acorex-platform-module-reservation-management-client-contracts-entity-catalog-reservation-event.entity-DcyBMFnq.mjs.map +1 -0
  25. package/fesm2022/acorex-platform-module-reservation-management-client-contracts-entity-catalog-reservation-resource-type.entity-A2sVNQ7U.mjs +146 -0
  26. package/fesm2022/acorex-platform-module-reservation-management-client-contracts-entity-catalog-reservation-resource-type.entity-A2sVNQ7U.mjs.map +1 -0
  27. package/fesm2022/acorex-platform-module-reservation-management-client-contracts-entity-catalog-reservation-status-transition.entity-CkzevvFk.mjs +206 -0
  28. package/fesm2022/acorex-platform-module-reservation-management-client-contracts-entity-catalog-reservation-status-transition.entity-CkzevvFk.mjs.map +1 -0
  29. package/fesm2022/acorex-platform-module-reservation-management-client-contracts-entity-catalog-reservation-status.entity-xwHV_Iox.mjs +151 -0
  30. package/fesm2022/acorex-platform-module-reservation-management-client-contracts-entity-catalog-reservation-status.entity-xwHV_Iox.mjs.map +1 -0
  31. package/fesm2022/acorex-platform-module-reservation-management-client-contracts-entity-catalog-reservation-type.entity-C7dA0pmR.mjs +143 -0
  32. package/fesm2022/acorex-platform-module-reservation-management-client-contracts-entity-catalog-reservation-type.entity-C7dA0pmR.mjs.map +1 -0
  33. package/fesm2022/acorex-platform-module-reservation-management-client-contracts-entity-catalog-reservation.entity-BGyEKYTi.mjs +392 -0
  34. package/fesm2022/acorex-platform-module-reservation-management-client-contracts-entity-catalog-reservation.entity-BGyEKYTi.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-local-entities.mjs +36 -0
  38. package/fesm2022/acorex-platform-module-reservation-management-client-local-entities.mjs.map +1 -0
  39. package/package.json +41 -1
  40. package/types/acorex-platform-module-reservation-management-client-contracts-entities-reservation-class-status.d.ts +5 -0
  41. package/types/acorex-platform-module-reservation-management-client-contracts-entities-reservation-class.d.ts +5 -0
  42. package/types/acorex-platform-module-reservation-management-client-contracts-entities-reservation-event.d.ts +5 -0
  43. package/types/acorex-platform-module-reservation-management-client-contracts-entities-reservation-resource-type.d.ts +5 -0
  44. package/types/acorex-platform-module-reservation-management-client-contracts-entities-reservation-status-transition.d.ts +5 -0
  45. package/types/acorex-platform-module-reservation-management-client-contracts-entities-reservation-status.d.ts +5 -0
  46. package/types/acorex-platform-module-reservation-management-client-contracts-entities-reservation-type.d.ts +5 -0
  47. package/types/acorex-platform-module-reservation-management-client-contracts-entities-reservation.d.ts +5 -0
  48. package/types/acorex-platform-module-reservation-management-client-contracts-entity-catalog.d.ts +10 -0
  49. package/types/acorex-platform-module-reservation-management-client-local-entities.d.ts +12 -0
@@ -0,0 +1,242 @@
1
+ import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';
2
+ import { createAllQueryView, AXPEntityCommandScope } from '@acorex-platform/framework-shared/entity';
3
+ import { R as RootConfig } from './acorex-platform-module-reservation-management-client-contracts-entity-catalog-acorex-platform-module-reservation-management-client-contracts-entity-catalog-C0xNOaEL.mjs';
4
+
5
+ //#endregion
6
+ //#region ---- Entity Factory ----
7
+ async function reservationEventFactory() {
8
+ const i18n = RootConfig.config.i18n;
9
+ const entityDef = {
10
+ module: RootConfig.module.name,
11
+ name: RootConfig.entities.reservationEvent.name,
12
+ title: RootConfig.entities.reservationEvent.title,
13
+ icon: RootConfig.entities.reservationEvent.icon,
14
+ formats: {
15
+ individual: RootConfig.entities.reservationEvent.title,
16
+ plural: RootConfig.entities.reservationEvent.titlePlural,
17
+ searchResult: {
18
+ title: '',
19
+ },
20
+ },
21
+ // Property groups
22
+ groups: [
23
+ {
24
+ id: 'basic-information',
25
+ title: '@reservation-management:reservation-events.entities.reservation-event.groups.basic-information',
26
+ },
27
+ ],
28
+ // Entity properties
29
+ properties: [
30
+ {
31
+ name: 'id',
32
+ title: '@general:terms.common.id',
33
+ groupId: 'basic-information',
34
+ options: {
35
+ sort: { enabled: true },
36
+ filter: {
37
+ advance: { enabled: true },
38
+ inline: { enabled: true },
39
+ },
40
+ },
41
+ schema: {
42
+ dataType: 'string',
43
+ visible: false,
44
+ interface: {
45
+ type: AXPWidgetsList.Editors.TextBox,
46
+ options: {
47
+ readonly: true,
48
+ visible: false,
49
+ },
50
+ },
51
+ },
52
+ },
53
+ {
54
+ name: 'reservationId',
55
+ title: '@ ',
56
+ groupId: 'basic-information',
57
+ options: {
58
+ sort: { enabled: true },
59
+ filter: {
60
+ advance: { enabled: true },
61
+ inline: { enabled: true },
62
+ },
63
+ },
64
+ schema: {
65
+ dataType: 'object',
66
+ interface: {
67
+ type: AXPWidgetsList.Editors.LookupBox,
68
+ options: {
69
+ entity: `${RootConfig.module.name}.${RootConfig.entities.reservation.name}`,
70
+ expose: [
71
+ { source: 'id', target: 'reservation.{id}' },
72
+ { source: 'resource', target: 'reservation.{resource}' },
73
+ ],
74
+ },
75
+ },
76
+ },
77
+ validations: [{ rule: 'required' }],
78
+ },
79
+ ],
80
+ // Columns for list views
81
+ columns: [
82
+ { name: 'reservationId', options: { dataPath: 'reservation' } },
83
+ { name: 'reservationEventId', options: { dataPath: 'reservationEvent' } },
84
+ { name: 'eventDate' },
85
+ { name: 'actorId', options: { dataPath: 'actor' } },
86
+ { name: 'fromStatusId', options: { dataPath: 'fromStatus' } },
87
+ { name: 'toStatusId', options: { dataPath: 'toStatus' } },
88
+ ],
89
+ // Commands
90
+ // Queries
91
+ // Interfaces
92
+ interfaces: {
93
+ master: {
94
+ create: {
95
+ sections: [{ id: 'basic-information', order: 1, layout: { positions: { lg: { colSpan: 12 } } } }],
96
+ properties: [
97
+ {
98
+ name: 'id',
99
+ layout: { positions: { lg: { colSpan: 6 } } },
100
+ },
101
+ {
102
+ name: 'reservationId',
103
+ layout: { positions: { lg: { colSpan: 12 } } },
104
+ },
105
+ {
106
+ name: 'reservationEventId',
107
+ layout: { positions: { lg: { colSpan: 12 } } },
108
+ },
109
+ {
110
+ name: 'eventDate',
111
+ layout: { positions: { lg: { colSpan: 12 } } },
112
+ },
113
+ {
114
+ name: 'actorId',
115
+ layout: { positions: { lg: { colSpan: 12 } } },
116
+ },
117
+ {
118
+ name: 'fromStatusId',
119
+ layout: { positions: { lg: { colSpan: 12 } } },
120
+ },
121
+ {
122
+ name: 'toStatusId',
123
+ layout: { positions: { lg: { colSpan: 12 } } },
124
+ },
125
+ ],
126
+ },
127
+ update: {
128
+ sections: [{ id: 'basic-information', order: 1, layout: { positions: { lg: { colSpan: 12 } } } }],
129
+ properties: [
130
+ {
131
+ name: 'id',
132
+ layout: { positions: { lg: { colSpan: 6 } } },
133
+ },
134
+ {
135
+ name: 'reservationId',
136
+ layout: { positions: { lg: { colSpan: 12 } } },
137
+ },
138
+ {
139
+ name: 'reservationEventId',
140
+ layout: { positions: { lg: { colSpan: 12 } } },
141
+ },
142
+ {
143
+ name: 'eventDate',
144
+ layout: { positions: { lg: { colSpan: 12 } } },
145
+ },
146
+ {
147
+ name: 'actorId',
148
+ layout: { positions: { lg: { colSpan: 12 } } },
149
+ },
150
+ {
151
+ name: 'fromStatusId',
152
+ layout: { positions: { lg: { colSpan: 12 } } },
153
+ },
154
+ {
155
+ name: 'toStatusId',
156
+ layout: { positions: { lg: { colSpan: 12 } } },
157
+ },
158
+ ],
159
+ },
160
+ single: {
161
+ title: '{{ resource }}',
162
+ sections: [{ id: 'basic-information', order: 1, layout: { positions: { lg: { colSpan: 12 } } } }],
163
+ properties: [
164
+ {
165
+ name: 'id',
166
+ layout: { positions: { lg: { colSpan: 6 } } },
167
+ },
168
+ {
169
+ name: 'reservationId',
170
+ layout: { positions: { lg: { colSpan: 12 } } },
171
+ },
172
+ {
173
+ name: 'reservationEventId',
174
+ layout: { positions: { lg: { colSpan: 12 } } },
175
+ },
176
+ {
177
+ name: 'eventDate',
178
+ layout: { positions: { lg: { colSpan: 12 } } },
179
+ },
180
+ {
181
+ name: 'actorId',
182
+ layout: { positions: { lg: { colSpan: 12 } } },
183
+ },
184
+ {
185
+ name: 'fromStatusId',
186
+ layout: { positions: { lg: { colSpan: 12 } } },
187
+ },
188
+ {
189
+ name: 'toStatusId',
190
+ layout: { positions: { lg: { colSpan: 12 } } },
191
+ },
192
+ ],
193
+ actions: [
194
+ {
195
+ title: '@general:actions.edit.title',
196
+ command: 'Entity:Edit',
197
+ priority: 'primary',
198
+ type: 'update',
199
+ scope: AXPEntityCommandScope.Individual,
200
+ },
201
+ ],
202
+ },
203
+ list: {
204
+ actions: [
205
+ {
206
+ title: '@general:actions.create.title',
207
+ command: 'Entity:Create',
208
+ priority: 'primary',
209
+ type: 'create',
210
+ scope: AXPEntityCommandScope.TypeLevel,
211
+ },
212
+ {
213
+ title: '@general:actions.edit.title',
214
+ command: 'Entity:Edit',
215
+ priority: 'primary',
216
+ type: 'update',
217
+ scope: AXPEntityCommandScope.Individual,
218
+ default: true, // Enable double-click to open edit mode
219
+ },
220
+ {
221
+ title: '@general:actions.delete.title',
222
+ command: 'Entity:Remove',
223
+ priority: 'secondary',
224
+ type: 'delete',
225
+ scope: AXPEntityCommandScope.Individual,
226
+ },
227
+ ],
228
+ views: [
229
+ createAllQueryView({
230
+ sorts: [{ name: 'title', dir: 'asc' }],
231
+ }),
232
+ ],
233
+ },
234
+ },
235
+ },
236
+ };
237
+ return entityDef;
238
+ }
239
+ //#endregion
240
+
241
+ export { reservationEventFactory };
242
+ //# sourceMappingURL=acorex-platform-module-reservation-management-client-contracts-entity-catalog-reservation-event.entity-DcyBMFnq.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-reservation-management-client-contracts-entity-catalog-reservation-event.entity-DcyBMFnq.mjs","sources":["../../../../libs/modules/reservation-management/contracts/src/entities/reservation-event/reservation-event.entity.ts"],"sourcesContent":["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"],"names":[],"mappings":";;;;AAKA;AAEA;AAEO,eAAe,uBAAuB,GAAA;AAC3C,IAAA,MAAM,IAAI,GAAG,UAAU,CAAC,MAAM,CAAC,IAAI;AAEnC,IAAA,MAAM,SAAS,GAAc;A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,EAAE,QAAQ;4BACd,KAAK,EAAE,qBAAqB,CAAC,SAAS;AACvC,yBAAA;AACD,wBAAA;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;;;;"}
@@ -0,0 +1,146 @@
1
+ import { AXPWidgetsList, AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';
2
+ import { createAllQueryView, entityMasterCrudActions } from '@acorex-platform/framework-shared/entity';
3
+ import { R as RootConfig } from './acorex-platform-module-reservation-management-client-contracts-entity-catalog-acorex-platform-module-reservation-management-client-contracts-entity-catalog-C0xNOaEL.mjs';
4
+
5
+ //#endregion
6
+ //#region ---- Entity Factory ----
7
+ async function reservationResourceTypeFactory() {
8
+ const i18n = RootConfig.config.i18n;
9
+ const entityDef = {
10
+ module: RootConfig.module.name,
11
+ name: RootConfig.entities.reservationResourceType.name,
12
+ title: RootConfig.entities.reservationResourceType.title,
13
+ icon: RootConfig.entities.reservationResourceType.icon,
14
+ formats: {
15
+ individual: RootConfig.entities.reservationResourceType.title,
16
+ plural: RootConfig.entities.reservationResourceType.titlePlural,
17
+ searchResult: {
18
+ title: '{{ title }}',
19
+ description: '{{ entityId }}',
20
+ },
21
+ },
22
+ groups: [
23
+ {
24
+ id: 'basic-information',
25
+ title: '@reservation-management:reservation-resource-types.entities.reservation-resource-type.groups.basic-information',
26
+ },
27
+ ],
28
+ properties: [
29
+ {
30
+ name: 'id',
31
+ title: '@general:terms.common.id',
32
+ schema: { dataType: 'uuid', visible: false, nullable: false, readonly: true, unique: { enabled: true } },
33
+ },
34
+ {
35
+ name: 'title',
36
+ title: '@reservation-management:reservation-resource-types.entities.reservation-resource-type.fields.title.title',
37
+ groupId: 'basic-information',
38
+ schema: {
39
+ dataType: 'string',
40
+ interface: {
41
+ type: AXPWidgetsList.Editors.TextBox,
42
+ options: {
43
+ placeholder: '@reservation-management:reservation-resource-types.entities.reservation-resource-type.fields.title.placeholder',
44
+ },
45
+ },
46
+ },
47
+ options: {
48
+ sort: { enabled: true },
49
+ filter: { advance: { enabled: true }, inline: { enabled: true } },
50
+ },
51
+ validations: [{ rule: 'required' }],
52
+ },
53
+ {
54
+ name: 'entityId',
55
+ title: '@reservation-management:reservation-resource-types.entities.reservation-resource-type.fields.entity-id.title',
56
+ groupId: 'basic-information',
57
+ schema: {
58
+ dataType: 'string',
59
+ interface: {
60
+ type: AXPWidgetsCatalog.lookup,
61
+ options: {
62
+ entity: 'PlatformManagement.EntityDefinition',
63
+ look: 'select',
64
+ textField: 'id',
65
+ valueField: 'id',
66
+ columns: ['name', 'module_id'],
67
+ allowSearch: true,
68
+ },
69
+ },
70
+ },
71
+ validations: [{ rule: 'required' }],
72
+ },
73
+ {
74
+ name: 'reservationClassId',
75
+ title: '@reservation-management:reservation-resource-types.entities.reservation-resource-type.fields.reservation-class-id.title',
76
+ groupId: 'basic-information',
77
+ schema: {
78
+ dataType: 'string',
79
+ interface: {
80
+ type: AXPWidgetsCatalog.lookup,
81
+ options: {
82
+ entity: `${RootConfig.module.name}.${RootConfig.entities.reservationClass.name}`,
83
+ textField: 'title',
84
+ valueField: 'id',
85
+ columns: ['code', 'title'],
86
+ expose: [
87
+ { source: 'id', target: 'reservationClass.id' },
88
+ { source: 'title', target: 'reservationClass.title' },
89
+ ],
90
+ },
91
+ },
92
+ },
93
+ options: {
94
+ sort: { enabled: true },
95
+ filter: { advance: { enabled: true }, inline: { enabled: true } },
96
+ },
97
+ validations: [{ rule: 'required' }],
98
+ },
99
+ ],
100
+ columns: [{ name: 'title' },
101
+ { name: 'entityId' },
102
+ { name: 'reservationClassId', options: { dataPath: 'reservationClass' } }],
103
+ interfaces: {
104
+ master: {
105
+ create: {
106
+ sections: [{ id: 'basic-information' }],
107
+ properties: [
108
+ { name: 'title', layout: { positions: { lg: { colSpan: 6 } } } },
109
+ { name: 'entityId', layout: { positions: { lg: { colSpan: 6 } } } },
110
+ { name: 'reservationClassId', layout: { positions: { lg: { colSpan: 6 } } } },
111
+ ],
112
+ },
113
+ update: {
114
+ sections: [{ id: 'basic-information' }],
115
+ properties: [
116
+ { name: 'title', layout: { positions: { lg: { colSpan: 6 } } } },
117
+ { name: 'entityId', layout: { positions: { lg: { colSpan: 6 } } } },
118
+ { name: 'reservationClassId', layout: { positions: { lg: { colSpan: 6 } } } },
119
+ ],
120
+ },
121
+ single: {
122
+ title: '{{ title }}',
123
+ sections: [{ id: 'basic-information' }],
124
+ properties: [
125
+ { name: 'title', layout: { positions: { lg: { colSpan: 6 } } } },
126
+ { name: 'entityId', layout: { positions: { lg: { colSpan: 6 } } } },
127
+ { name: 'reservationClassId', layout: { positions: { lg: { colSpan: 6 } } } },
128
+ ],
129
+ },
130
+ list: {
131
+ actions: [...entityMasterCrudActions()],
132
+ views: [
133
+ createAllQueryView({
134
+ sorts: [{ name: 'title', dir: 'asc' }],
135
+ }),
136
+ ],
137
+ },
138
+ },
139
+ },
140
+ };
141
+ return entityDef;
142
+ }
143
+ //#endregion
144
+
145
+ export { reservationResourceTypeFactory };
146
+ //# sourceMappingURL=acorex-platform-module-reservation-management-client-contracts-entity-catalog-reservation-resource-type.entity-A2sVNQ7U.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-reservation-management-client-contracts-entity-catalog-reservation-resource-type.entity-A2sVNQ7U.mjs","sources":["../../../../libs/modules/reservation-management/contracts/src/entities/reservation-resource-type/reservation-resource-type.entity.ts"],"sourcesContent":["import { AXPSystemActionType, AXPWidgetsCatalog, AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, AXPEntityAction, AXPEntityCommandScope, createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';\n//#region ---- Imports ----\nimport { RootConfig } from '../../root-config';\n\n//#endregion\n\n//#region ---- Entity Factory ----\n\nexport async function reservationResourceTypeFactory(): Promise<AXPEntity | null> {\n const i18n = RootConfig.config.i18n;\n\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.reservationResourceType.name,\n title: RootConfig.entities.reservationResourceType.title,\n icon: RootConfig.entities.reservationResourceType.icon,\n formats: {\n individual: RootConfig.entities.reservationResourceType.title,\n plural: RootConfig.entities.reservationResourceType.titlePlural,\n searchResult: {\n title: '{{ title }}',\n description: '{{ entityId }}',\n },\n },\n groups: [\n {\n id: 'basic-information',\n title: '@reservation-management:reservation-resource-types.entities.reservation-resource-type.groups.basic-information',\n },\n ],\n properties: [\n {\n name: 'id',\n title: '@general:terms.common.id',\n schema: { dataType: 'uuid', visible: false, nullable: false, readonly: true, unique: { enabled: true } },\n },\n {\n name: 'title',\n title: '@reservation-management:reservation-resource-types.entities.reservation-resource-type.fields.title.title',\n groupId: 'basic-information',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.TextBox,\n options: {\n placeholder:\n '@reservation-management:reservation-resource-types.entities.reservation-resource-type.fields.title.placeholder',\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: 'entityId',\n title: '@reservation-management:reservation-resource-types.entities.reservation-resource-type.fields.entity-id.title',\n groupId: 'basic-information',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsCatalog.lookup,\n options: {\n entity: 'PlatformManagement.EntityDefinition',\n look: 'select',\n textField: 'id',\n valueField: 'id',\n columns: ['name', 'module_id'],\n allowSearch: true,\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'reservationClassId',\n title: '@reservation-management:reservation-resource-types.entities.reservation-resource-type.fields.reservation-class-id.title',\n groupId: 'basic-information',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsCatalog.lookup,\n options: {\n entity: `${RootConfig.module.name}.${RootConfig.entities.reservationClass.name}`,\n textField: 'title',\n valueField: 'id',\n columns: ['code', 'title'],\n expose: [\n { source: 'id', target: 'reservationClass.id' },\n { source: 'title', target: 'reservationClass.title' },\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 columns: [{ name: 'title' }, \n { name: 'entityId' } ,\n { name: 'reservationClassId' , options: { dataPath: 'reservationClass' } }],\n\n interfaces: {\n master: {\n create: {\n sections: [{ id: 'basic-information' }],\n properties: [\n { name: 'title', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'entityId', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'reservationClassId', layout: { positions: { lg: { colSpan: 6 } } } },\n ],\n },\n update: {\n sections: [{ id: 'basic-information' }],\n properties: [\n { name: 'title', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'entityId', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'reservationClassId', layout: { positions: { lg: { colSpan: 6 } } } },\n ],\n },\n single: {\n title: '{{ title }}',\n sections: [{ id: 'basic-information' }],\n properties: [\n { name: 'title', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'entityId', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'reservationClassId', layout: { positions: { lg: { colSpan: 6 } } } },\n ],\n },\n list: {\n actions: [...entityMasterCrudActions()],\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"],"names":[],"mappings":";;;;AAKA;AAEA;AAEO,eAAe,8BAA8B,GAAA;AAClD,IAAA,MAAM,IAAI,GAAG,UAAU,CAAC,MAAM,CAAC,IAAI;AAEnC,IAAA,MAAM,SAAS,GAAc;AAC3B,QAAA,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAC9B,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,uBAAuB,CAAC,IAAI;AACtD,QAAA,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC,uBAAuB,CAAC,KAAK;AACxD,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,uBAAuB,CAAC,IAAI;AACtD,QAAA,OAAO,EAAE;AACP,YAAA,UAAU,EAAE,UAAU,CAAC,QAAQ,CAAC,uBAAuB,CAAC,KAAK;AAC7D,YAAA,MAAM,EAAE,UAAU,CAAC,QAAQ,CAAC,uBAAuB,CAAC,WAAW;AAC/D,YAAA,YAAY,EAAE;AACZ,gBAAA,KAAK,EAAE,aAAa;AACpB,gBAAA,WAAW,EAAE,gBAAgB;AAC9B,aAAA;AACF,SAAA;AACD,QAAA,MAAM,EAAE;AACN,YAAA;AACE,gBAAA,EAAE,EAAE,mBAAmB;AACvB,gBAAA,KAAK,EAAE,gHAAgH;AACxH,aAAA;AACF,SAAA;AACD,QAAA,UAAU,EAAE;AACV,YAAA;AACE,gBAAA,IAAI,EAAE,IAAI;AACV,gBAAA,KAAK,EAAE,0BAA0B;gBACjC,MAAM,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,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iBAAA;AACD,gBAAA,MAAM,EAAE;AACN,oBAAA,KAAK,EAAE,aAAa;AACpB,oBAAA,QAAQ,EAAE,CAAC,EAAE,EAAE,EAAE,mBAAmB,EAAE,CAAC;AACvC,oBAAA,UAAU,EAAE;AACV,wBAAA,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;AAChE,wBAAA,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;AACnE,wBAAA,EAAE,IAAI,EAAE,oBAAoB,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;AAC9E,qBAAA;AACF,iBAAA;AACD,gBAAA,IAAI,EAAE;AACJ,oBAAA,OAAO,EAAE,CAAC,GAAG,uBAAuB,EAAE,CAAC;AACvC,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;;;;"}
@@ -0,0 +1,206 @@
1
+ import { AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';
2
+ import { createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';
3
+ import { R as RootConfig } from './acorex-platform-module-reservation-management-client-contracts-entity-catalog-acorex-platform-module-reservation-management-client-contracts-entity-catalog-C0xNOaEL.mjs';
4
+
5
+ //#endregion
6
+ //#region ---- Entity Factory ----
7
+ async function reservationStatusTransitionFactory() {
8
+ const entityDef = {
9
+ module: RootConfig.module.name,
10
+ name: RootConfig.entities.reservationStatusTransition.name,
11
+ title: RootConfig.entities.reservationStatusTransition.title,
12
+ icon: RootConfig.entities.reservationStatusTransition.icon,
13
+ formats: {
14
+ individual: RootConfig.entities.reservationStatusTransition.title,
15
+ plural: RootConfig.entities.reservationStatusTransition.titlePlural,
16
+ searchResult: {
17
+ title: '{{ title || (fromStatus?.title + " → " + toStatus?.title) }}',
18
+ description: '{{ reservationClass?.title }}',
19
+ },
20
+ },
21
+ groups: [
22
+ {
23
+ id: 'transition-details',
24
+ title: '@reservation-management:reservation-status-transitions.entities.reservation-status-transition.groups.transition-details',
25
+ },
26
+ ],
27
+ plugins: [],
28
+ properties: [
29
+ {
30
+ name: 'id',
31
+ title: '@general:terms.common.id',
32
+ schema: { dataType: 'uuid', visible: false, nullable: false, readonly: true, unique: { enabled: true } },
33
+ },
34
+ {
35
+ name: 'reservationClassId',
36
+ title: '@reservation-management:reservation-status-transitions.entities.reservation-status-transition.fields.reservation-class-id.title',
37
+ groupId: 'transition-details',
38
+ schema: {
39
+ dataType: 'string',
40
+ visible: false,
41
+ interface: {
42
+ type: AXPWidgetsCatalog.lookup,
43
+ options: {
44
+ entity: `${RootConfig.module.name}.${RootConfig.entities.reservationClass.name}`,
45
+ textField: 'title',
46
+ valueField: 'id',
47
+ columns: ['code', 'title'],
48
+ expose: [
49
+ { source: 'id', target: 'reservationClass.id' },
50
+ { source: 'title', target: 'reservationClass.title' },
51
+ { source: 'code', target: 'reservationClass.code' },
52
+ ],
53
+ },
54
+ },
55
+ },
56
+ options: {
57
+ sort: { enabled: true },
58
+ filter: { advance: { enabled: true }, inline: { enabled: true } },
59
+ },
60
+ validations: [{ rule: 'required' }],
61
+ },
62
+ {
63
+ name: 'fromStatusId',
64
+ title: '@reservation-management:reservation-status-transitions.entities.reservation-status-transition.fields.from-status-id.title',
65
+ groupId: 'transition-details',
66
+ schema: {
67
+ dataType: 'object',
68
+ interface: {
69
+ type: AXPWidgetsCatalog.lookup,
70
+ options: {
71
+ entity: `${RootConfig.module.name}.${RootConfig.entities.reservationClassStatus.name}`,
72
+ look: 'select',
73
+ textField: 'title',
74
+ valueField: 'id',
75
+ columns: ['name', 'title', 'color'],
76
+ expose: [
77
+ { source: 'id', target: 'fromStatus.id' },
78
+ { source: 'title', target: 'fromStatus.title' },
79
+ { source: 'name', target: 'fromStatus.name' },
80
+ ],
81
+ filter: {
82
+ logic: 'and',
83
+ filters: [
84
+ {
85
+ field: 'reservationClassId',
86
+ operator: { type: 'equal' },
87
+ value: '{{ context.eval("reservationClassId.value") }}',
88
+ },
89
+ ],
90
+ },
91
+ triggers: [
92
+ {
93
+ event: "{{ events.context('reservationClassId') }}",
94
+ //action:"{{console.log(context.eval('reservationClassId'))}}"
95
+ action: `{{ widget.refresh() }}`,
96
+ },
97
+ ],
98
+ },
99
+ },
100
+ },
101
+ options: {
102
+ sort: { enabled: true },
103
+ filter: { advance: { enabled: true }, inline: { enabled: true } },
104
+ },
105
+ validations: [{ rule: 'required' }],
106
+ },
107
+ {
108
+ name: 'toStatusId',
109
+ title: '@reservation-management:reservation-status-transitions.entities.reservation-status-transition.fields.to-status-id.title',
110
+ groupId: 'transition-details',
111
+ schema: {
112
+ dataType: 'object',
113
+ interface: {
114
+ type: AXPWidgetsCatalog.lookup,
115
+ options: {
116
+ entity: `${RootConfig.module.name}.${RootConfig.entities.reservationClassStatus.name}`,
117
+ look: 'select',
118
+ textField: 'title',
119
+ valueField: 'id',
120
+ columns: ['name', 'title'],
121
+ expose: [
122
+ { source: 'id', target: 'toStatus.id' },
123
+ { source: 'title', target: 'toStatus.title' },
124
+ { source: 'name', target: 'toStatus.name' },
125
+ ],
126
+ filter: {
127
+ logic: 'and',
128
+ filters: [
129
+ {
130
+ field: 'reservationClassId',
131
+ operator: { type: 'equal' },
132
+ value: '{{ context.eval("reservationClassId.value") }}',
133
+ },
134
+ ],
135
+ },
136
+ triggers: [
137
+ {
138
+ event: "{{ events.context('reservationClassId') }}",
139
+ action: "{{console.log(context.eval('reservationClassId'))}}" //action: `{{ !context.eval('reservationClassId.value') ? widget.setValue(null) : widget.refresh() }}`,
140
+ },
141
+ ],
142
+ },
143
+ },
144
+ },
145
+ options: {
146
+ sort: { enabled: true },
147
+ filter: { advance: { enabled: true }, inline: { enabled: true } },
148
+ },
149
+ validations: [{ rule: 'required' }],
150
+ },
151
+ ],
152
+ columns: [
153
+ { name: 'fromStatusId', options: { dataPath: 'fromStatus.title' } },
154
+ { name: 'toStatusId', options: { dataPath: 'toStatus.title' } },
155
+ ],
156
+ interfaces: {
157
+ master: {
158
+ create: {
159
+ sections: [{ id: 'transition-details' }],
160
+ properties: [
161
+ { name: 'reservationClassId', layout: { positions: { lg: { colSpan: 12 } } } },
162
+ { name: 'title', layout: { positions: { lg: { colSpan: 6 } } } },
163
+ { name: 'fromStatusId', layout: { positions: { lg: { colSpan: 6 } } } },
164
+ { name: 'toStatusId', layout: { positions: { lg: { colSpan: 6 } } } },
165
+ ],
166
+ },
167
+ update: {
168
+ sections: [{ id: 'transition-details' }],
169
+ properties: [
170
+ { name: 'reservationClassId', layout: { positions: { lg: { colSpan: 12 } } } },
171
+ { name: 'title', layout: { positions: { lg: { colSpan: 6 } } } },
172
+ { name: 'fromStatusId', layout: { positions: { lg: { colSpan: 6 } } } },
173
+ { name: 'toStatusId', layout: { positions: { lg: { colSpan: 6 } } } },
174
+ ],
175
+ },
176
+ single: {
177
+ title: '{{ title || (fromStatus?.title + " → " + toStatus?.title) }}',
178
+ sections: [{ id: 'transition-details' }],
179
+ properties: [
180
+ { name: 'reservationClassId', layout: { positions: { lg: { colSpan: 12 } } } },
181
+ { name: 'title', layout: { positions: { lg: { colSpan: 6 } } } },
182
+ { name: 'fromStatusId', layout: { positions: { lg: { colSpan: 6 } } } },
183
+ { name: 'toStatusId', layout: { positions: { lg: { colSpan: 6 } } } },
184
+ ],
185
+ actions: [...entityMasterRecordActions()],
186
+ },
187
+ list: {
188
+ actions: [...entityMasterCrudActions()],
189
+ views: [
190
+ createAllQueryView({
191
+ sorts: [
192
+ { name: 'fromStatusId', dir: 'asc' },
193
+ { name: 'toStatusId', dir: 'asc' },
194
+ ],
195
+ }),
196
+ ],
197
+ },
198
+ },
199
+ },
200
+ };
201
+ return entityDef;
202
+ }
203
+ //#endregion
204
+
205
+ export { reservationStatusTransitionFactory };
206
+ //# sourceMappingURL=acorex-platform-module-reservation-management-client-contracts-entity-catalog-reservation-status-transition.entity-CkzevvFk.mjs.map