@acorex-platform/module-reservation-management-client 0.0.32 → 0.0.33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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,125 @@
1
+ //#region ---- Root Configuration ----
2
+ const config = {
3
+ i18n: 'reservation-management',
4
+ module: 'ReservationManagement',
5
+ route: 'reservation-management',
6
+ };
7
+ const RootConfig = {
8
+ config,
9
+ module: {
10
+ route: config.route,
11
+ name: config.module,
12
+ title: '@reservation-management:module.title',
13
+ icon: 'fa-light fa-calendar-check',
14
+ },
15
+ entities: {
16
+ reservationType: {
17
+ name: 'ReservationType',
18
+ source: `${config.module}.ReservationType`,
19
+ title: '@reservation-management:reservation-types.entities.reservation-type.title',
20
+ titlePlural: '@reservation-management:reservation-types.entities.reservation-type.plural',
21
+ icon: 'fa-light fa-list',
22
+ },
23
+ reservationStatus: {
24
+ name: 'ReservationStatus',
25
+ source: `${config.module}.ReservationStatus`,
26
+ title: '@reservation-management:reservation-statuses.entities.reservation-status.title',
27
+ titlePlural: '@reservation-management:reservation-statuses.entities.reservation-status.plural',
28
+ icon: 'fa-light fa-flag',
29
+ },
30
+ reservationClass: {
31
+ name: 'ReservationClass',
32
+ source: `${config.module}.ReservationClass`,
33
+ title: '@reservation-management:reservation-classes.entities.reservation-class.title',
34
+ titlePlural: '@reservation-management:reservation-classes.entities.reservation-class.plural',
35
+ icon: 'fa-light fa-tag',
36
+ },
37
+ reservation: {
38
+ name: 'Reservation',
39
+ source: `${config.module}.Reservation`,
40
+ title: '@reservation-management:reservations.entities.reservation.title',
41
+ titlePlural: '@reservation-management:reservations.entities.reservation.plural',
42
+ icon: 'fa-light fa-calendar-check',
43
+ },
44
+ reservationEvent: {
45
+ name: 'ReservationEvent',
46
+ source: `${config.module}.ReservationEvent`,
47
+ title: '@reservation-management:reservation-events.entities.reservation-event.title',
48
+ titlePlural: '@reservation-management:reservation-events.entities.reservation-event.plural',
49
+ icon: 'fa-light fa-calendar-alt',
50
+ },
51
+ reservationHold: {
52
+ name: 'ReservationHold',
53
+ source: `${config.module}.ReservationHold`,
54
+ title: '@reservation-management:reservation-holds.entities.reservation-hold.title',
55
+ titlePlural: '@reservation-management:reservation-holds.entities.reservation-hold.plural',
56
+ icon: 'fa-light fa-pause-circle',
57
+ },
58
+ reservationStatusTransition: {
59
+ name: 'ReservationStatusTransition',
60
+ source: `${config.module}.ReservationStatusTransition`,
61
+ title: '@reservation-management:reservation-status-transitions.entities.reservation-status-transition.title',
62
+ titlePlural: '@reservation-management:reservation-status-transitions.entities.reservation-status-transition.plural',
63
+ icon: 'fa-light fa-right-left',
64
+ },
65
+ reservationResourceType: {
66
+ name: 'ReservationResourceType',
67
+ source: `${config.module}.ReservationResourceType`,
68
+ title: '@reservation-management:reservation-resource-types.entities.reservation-resource-type.title',
69
+ titlePlural: '@reservation-management:reservation-resource-types.entities.reservation-resource-type.plural',
70
+ icon: 'fa-light fa-cube',
71
+ },
72
+ reservationClassStatus: {
73
+ name: 'ReservationClassStatus',
74
+ source: `${config.module}.ReservationClassStatus`,
75
+ title: '@reservation-management:reservation-class-statuses.entities.reservation-class-status.title',
76
+ titlePlural: '@reservation-management:reservation-class-statuses.entities.reservation-class-status.plural',
77
+ icon: 'fa-light fa-circle-nodes',
78
+ },
79
+ reservationClassType: {
80
+ name: 'ReservationClassType',
81
+ source: `${config.module}.ReservationClassType`,
82
+ title: '@reservation-management:reservation-class-types.entities.reservation-class-type.title',
83
+ titlePlural: '@reservation-management:reservation-class-types.entities.reservation-class-type.plural',
84
+ icon: 'fa-light fa-layer-group',
85
+ },
86
+ },
87
+ pages: {
88
+ reservationBoard: {
89
+ path: 'reservation-board',
90
+ title: '@reservation-management:reservation-board.page-title',
91
+ icon: 'fa-light fa-calendar-lines',
92
+ },
93
+ },
94
+ };
95
+ //#endregion
96
+
97
+ //#region ----- Imports -----
98
+ //#endregion
99
+ //#region ----- Local entity catalog -----
100
+ /**
101
+ * Lazy per-entity layout factories. Do not re-export from the contracts barrel
102
+ * so RootConfig imports stay light. Server seed and client `local-entities`
103
+ * consume this catalog explicitly.
104
+ */
105
+ const reservationManagementLocalEntityCatalog = {
106
+ moduleName: RootConfig.module.name,
107
+ loaders: {
108
+ [RootConfig.entities.reservation.name]: () => import('./acorex-platform-module-reservation-management-client-contracts-entity-catalog-reservation.entity-BGyEKYTi.mjs').then((m) => m.reservationFactory()),
109
+ [RootConfig.entities.reservationClass.name]: () => import('./acorex-platform-module-reservation-management-client-contracts-entity-catalog-reservation-class.entity-BzQdba-o.mjs').then((m) => m.reservationClassFactory()),
110
+ [RootConfig.entities.reservationClassStatus.name]: () => import('./acorex-platform-module-reservation-management-client-contracts-entity-catalog-reservation-class-status.entity-B9O13iXo.mjs').then((m) => m.reservationClassStatusFactory()),
111
+ [RootConfig.entities.reservationEvent.name]: () => import('./acorex-platform-module-reservation-management-client-contracts-entity-catalog-reservation-event.entity-DcyBMFnq.mjs').then((m) => m.reservationEventFactory()),
112
+ [RootConfig.entities.reservationResourceType.name]: () => import('./acorex-platform-module-reservation-management-client-contracts-entity-catalog-reservation-resource-type.entity-A2sVNQ7U.mjs').then((m) => m.reservationResourceTypeFactory()),
113
+ [RootConfig.entities.reservationStatus.name]: () => import('./acorex-platform-module-reservation-management-client-contracts-entity-catalog-reservation-status.entity-xwHV_Iox.mjs').then((m) => m.reservationStatusFactory()),
114
+ [RootConfig.entities.reservationStatusTransition.name]: () => import('./acorex-platform-module-reservation-management-client-contracts-entity-catalog-reservation-status-transition.entity-CkzevvFk.mjs').then((m) => m.reservationStatusTransitionFactory()),
115
+ [RootConfig.entities.reservationType.name]: () => import('./acorex-platform-module-reservation-management-client-contracts-entity-catalog-reservation-type.entity-C7dA0pmR.mjs').then((m) => m.reservationTypeFactory()),
116
+ },
117
+ };
118
+ //#endregion
119
+
120
+ /**
121
+ * Generated bundle index. Do not edit.
122
+ */
123
+
124
+ export { RootConfig as R, reservationManagementLocalEntityCatalog as r };
125
+ //# sourceMappingURL=acorex-platform-module-reservation-management-client-contracts-entity-catalog-acorex-platform-module-reservation-management-client-contracts-entity-catalog-C0xNOaEL.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-reservation-management-client-contracts-entity-catalog-acorex-platform-module-reservation-management-client-contracts-entity-catalog-C0xNOaEL.mjs","sources":["../../../../libs/modules/reservation-management/contracts/src/root-config.ts","../../../../libs/modules/reservation-management/contracts/src/entity-catalog.ts","../../../../libs/modules/reservation-management/contracts/src/acorex-platform-module-reservation-management-client-contracts-entity-catalog.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","//#region ----- Imports -----\n\nimport type { AXPLocalEntityCatalog } from '@acorex-platform/framework-shared/entity';\n\nimport { RootConfig } from './root-config';\n\n//#endregion\n\n//#region ----- Local entity catalog -----\n\n/**\n * Lazy per-entity layout factories. Do not re-export from the contracts barrel\n * so RootConfig imports stay light. Server seed and client `local-entities`\n * consume this catalog explicitly.\n */\nexport const reservationManagementLocalEntityCatalog: AXPLocalEntityCatalog = {\n moduleName: RootConfig.module.name,\n loaders: {\n [RootConfig.entities.reservation.name]: () =>\n import('./entities/reservation/reservation.entity.js').then((m) => m.reservationFactory()),\n [RootConfig.entities.reservationClass.name]: () =>\n import('./entities/reservation-class/reservation-class.entity.js').then((m) => m.reservationClassFactory()),\n [RootConfig.entities.reservationClassStatus.name]: () =>\n import('./entities/reservation-class-status/reservation-class-status.entity.js').then((m) => m.reservationClassStatusFactory()),\n [RootConfig.entities.reservationEvent.name]: () =>\n import('./entities/reservation-event/reservation-event.entity.js').then((m) => m.reservationEventFactory()),\n [RootConfig.entities.reservationResourceType.name]: () =>\n import('./entities/reservation-resource-type/reservation-resource-type.entity.js').then((m) => m.reservationResourceTypeFactory()),\n [RootConfig.entities.reservationStatus.name]: () =>\n import('./entities/reservation-status/reservation-status.entity.js').then((m) => m.reservationStatusFactory()),\n [RootConfig.entities.reservationStatusTransition.name]: () =>\n import('./entities/reservation-status-transition/reservation-status-transition.entity.js').then((m) => m.reservationStatusTransitionFactory()),\n [RootConfig.entities.reservationType.name]: () =>\n import('./entities/reservation-type/reservation-type.entity.js').then((m) => m.reservationTypeFactory()),\n },\n};\n\n//#endregion\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './entity-catalog';\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,kBAAA,CAAoB;AAC5C,YAAA,KAAK,EAAE,gFAAgF;AACvF,YA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EG;;;;"}
@@ -0,0 +1,223 @@
1
+ import { AXPWidgetsCatalog, AXPWidgetsList } 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 reservationClassStatusFactory() {
8
+ const i18n = RootConfig.config.i18n;
9
+ const entityDef = {
10
+ module: RootConfig.module.name,
11
+ name: RootConfig.entities.reservationClassStatus.name,
12
+ title: RootConfig.entities.reservationClassStatus.title,
13
+ icon: RootConfig.entities.reservationClassStatus.icon,
14
+ formats: {
15
+ individual: RootConfig.entities.reservationClassStatus.title,
16
+ plural: RootConfig.entities.reservationClassStatus.titlePlural,
17
+ searchResult: {
18
+ title: '{{ reservationStatus.title }}',
19
+ description: '{{ reservationClass.title }}',
20
+ },
21
+ },
22
+ groups: [
23
+ {
24
+ id: 'basic-information',
25
+ title: '@reservation-management:reservation-class-statuses.entities.reservation-class-status.groups.basic-information',
26
+ },
27
+ {
28
+ id: 'status-settings',
29
+ title: '@reservation-management:reservation-class-statuses.entities.reservation-class-status.groups.status-settings',
30
+ },
31
+ ],
32
+ properties: [
33
+ {
34
+ name: 'id',
35
+ title: '@general:terms.common.id',
36
+ schema: { dataType: 'uuid', visible: false, nullable: false, readonly: true },
37
+ },
38
+ {
39
+ name: 'reservationClassId',
40
+ title: '@reservation-management:reservation-class-statuses.entities.reservation-class-status.fields.reservation-class-id.title',
41
+ groupId: 'basic-information',
42
+ schema: {
43
+ dataType: 'string',
44
+ visible: false,
45
+ interface: {
46
+ type: AXPWidgetsCatalog.lookup,
47
+ options: {
48
+ entity: `${RootConfig.module.name}.${RootConfig.entities.reservationClass.name}`,
49
+ textField: 'title',
50
+ valueField: 'id',
51
+ columns: ['name', 'title'],
52
+ readonly: true,
53
+ expose: [
54
+ { source: 'id', target: 'reservationClass.id' },
55
+ { source: 'title', target: 'reservationClass.title' },
56
+ { source: 'name', target: 'reservationClass.name' },
57
+ ],
58
+ },
59
+ },
60
+ },
61
+ options: {
62
+ sort: { enabled: true },
63
+ filter: { advance: { enabled: true }, inline: { enabled: true } },
64
+ },
65
+ validations: [{ rule: 'required' }],
66
+ },
67
+ {
68
+ name: 'reservationStatusId',
69
+ title: '@reservation-management:reservation-class-statuses.entities.reservation-class-status.fields.reservation-status-id.title',
70
+ groupId: 'basic-information',
71
+ schema: {
72
+ dataType: 'object',
73
+ interface: {
74
+ type: AXPWidgetsCatalog.lookup,
75
+ options: {
76
+ entity: `${RootConfig.module.name}.${RootConfig.entities.reservationStatus.name}`,
77
+ look: 'select',
78
+ textField: 'title',
79
+ valueField: 'id',
80
+ columns: ['name', 'title', 'color', 'icon'],
81
+ expose: [
82
+ { source: 'id', target: 'reservationStatus.id' },
83
+ { source: 'title', target: 'reservationStatus.title' },
84
+ { source: 'name', target: 'reservationStatus.name' },
85
+ { source: 'color', target: 'reservationStatus.color' },
86
+ { source: 'icon', target: 'reservationStatus.icon' },
87
+ ],
88
+ },
89
+ },
90
+ },
91
+ options: {
92
+ sort: { enabled: true },
93
+ filter: { advance: { enabled: true }, inline: { enabled: true } },
94
+ },
95
+ validations: [{ rule: 'required' }],
96
+ },
97
+ {
98
+ name: 'order',
99
+ title: '@reservation-management:reservation-class-statuses.entities.reservation-class-status.fields.order.title',
100
+ groupId: 'status-settings',
101
+ schema: {
102
+ dataType: 'number',
103
+ interface: {
104
+ type: AXPWidgetsList.Editors.NumberBox,
105
+ options: {
106
+ minValue: 0,
107
+ maxvalue: 10,
108
+ triggers: [
109
+ {
110
+ event: "{{ events.context('reservationClassId') }}",
111
+ //action:"{{console.log(context.eval('reservationClassId'))}}"
112
+ action: `{{ widget.refresh() }}`,
113
+ },
114
+ ],
115
+ },
116
+ },
117
+ },
118
+ options: {
119
+ sort: { enabled: true },
120
+ filter: { advance: { enabled: true }, inline: { enabled: true } },
121
+ },
122
+ },
123
+ {
124
+ name: 'isInitial',
125
+ title: '@reservation-management:reservation-class-statuses.entities.reservation-class-status.fields.is-initial.title',
126
+ groupId: 'status-settings',
127
+ schema: {
128
+ dataType: 'boolean',
129
+ interface: {
130
+ type: AXPWidgetsList.Editors.ToggleSwitch,
131
+ options: {},
132
+ },
133
+ },
134
+ options: {
135
+ sort: { enabled: true },
136
+ filter: { advance: { enabled: true }, inline: { enabled: true } },
137
+ },
138
+ },
139
+ {
140
+ name: 'isFinal',
141
+ title: '@reservation-management:reservation-class-statuses.entities.reservation-class-status.fields.is-final.title',
142
+ groupId: 'status-settings',
143
+ schema: {
144
+ dataType: 'boolean',
145
+ interface: {
146
+ type: AXPWidgetsList.Editors.ToggleSwitch,
147
+ options: {},
148
+ },
149
+ },
150
+ options: {
151
+ sort: { enabled: true },
152
+ filter: { advance: { enabled: true }, inline: { enabled: true } },
153
+ },
154
+ },
155
+ ],
156
+ columns: [
157
+ { name: 'reservationStatusId', options: { dataPath: 'reservationStatus' } },
158
+ { name: 'order' },
159
+ { name: 'isInitial' },
160
+ { name: 'isFinal' },
161
+ ],
162
+ interfaces: {
163
+ master: {
164
+ create: {
165
+ sections: [
166
+ { id: 'basic-information', order: 1 },
167
+ { id: 'status-settings', order: 2 },
168
+ ],
169
+ properties: [
170
+ { name: 'reservationClassId', layout: { positions: { lg: { colSpan: 12 } } } },
171
+ { name: 'reservationStatusId', layout: { positions: { lg: { colSpan: 12 } } } },
172
+ { name: 'order', layout: { positions: { lg: { colSpan: 4 } } } },
173
+ { name: 'isInitial', layout: { positions: { lg: { colSpan: 4 } } } },
174
+ { name: 'isFinal', layout: { positions: { lg: { colSpan: 4 } } } },
175
+ ],
176
+ },
177
+ update: {
178
+ sections: [
179
+ { id: 'basic-information', order: 1 },
180
+ { id: 'status-settings', order: 2 },
181
+ ],
182
+ properties: [
183
+ { name: 'reservationClassId', layout: { positions: { lg: { colSpan: 12 } } } },
184
+ { name: 'reservationStatusId', layout: { positions: { lg: { colSpan: 12 } } } },
185
+ { name: 'order', layout: { positions: { lg: { colSpan: 4 } } } },
186
+ { name: 'isInitial', layout: { positions: { lg: { colSpan: 4 } } } },
187
+ { name: 'isFinal', layout: { positions: { lg: { colSpan: 4 } } } },
188
+ ],
189
+ },
190
+ single: {
191
+ title: '{{ reservationStatus.title }}',
192
+ sections: [
193
+ { id: 'basic-information', order: 1 },
194
+ { id: 'status-settings', order: 2 },
195
+ ],
196
+ properties: [
197
+ { name: 'reservationClassId', layout: { positions: { lg: { colSpan: 12 } } } },
198
+ { name: 'reservationStatusId', layout: { positions: { lg: { colSpan: 12 } } } },
199
+ { name: 'order', layout: { positions: { lg: { colSpan: 4 } } } },
200
+ { name: 'isInitial', layout: { positions: { lg: { colSpan: 4 } } } },
201
+ { name: 'isFinal', layout: { positions: { lg: { colSpan: 4 } } } },
202
+ ],
203
+ actions: [...entityMasterRecordActions()],
204
+ },
205
+ list: {
206
+ actions: [...entityMasterCrudActions()],
207
+ views: [
208
+ createAllQueryView({
209
+ sorts: [
210
+ { name: 'order', dir: 'asc' },
211
+ ],
212
+ }),
213
+ ],
214
+ },
215
+ },
216
+ },
217
+ };
218
+ return entityDef;
219
+ }
220
+ //#endregion
221
+
222
+ export { reservationClassStatusFactory };
223
+ //# sourceMappingURL=acorex-platform-module-reservation-management-client-contracts-entity-catalog-reservation-class-status.entity-B9O13iXo.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-reservation-management-client-contracts-entity-catalog-reservation-class-status.entity-B9O13iXo.mjs","sources":["../../../../libs/modules/reservation-management/contracts/src/entities/reservation-class-status/reservation-class-status.entity.ts"],"sourcesContent":["import { AXPWidgetsCatalog, AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';\n//#region ---- Imports ----\nimport { RootConfig } from '../../root-config';\n\n//#endregion\n\n//#region ---- Entity Factory ----\n\nexport async function reservationClassStatusFactory(): Promise<AXPEntity | null> {\n const i18n = RootConfig.config.i18n;\n\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.reservationClassStatus.name,\n title: RootConfig.entities.reservationClassStatus.title,\n icon: RootConfig.entities.reservationClassStatus.icon,\n formats: {\n individual: RootConfig.entities.reservationClassStatus.title,\n plural: RootConfig.entities.reservationClassStatus.titlePlural,\n searchResult: {\n title: '{{ reservationStatus.title }}',\n description: '{{ reservationClass.title }}',\n },\n },\n groups: [\n {\n id: 'basic-information',\n title: '@reservation-management:reservation-class-statuses.entities.reservation-class-status.groups.basic-information',\n },\n {\n id: 'status-settings',\n title: '@reservation-management:reservation-class-statuses.entities.reservation-class-status.groups.status-settings',\n },\n ],\n properties: [\n {\n name: 'id',\n title: '@general:terms.common.id',\n schema: { dataType: 'uuid', visible: false, nullable: false, readonly: true },\n },\n {\n name: 'reservationClassId',\n title: '@reservation-management:reservation-class-statuses.entities.reservation-class-status.fields.reservation-class-id.title',\n groupId: 'basic-information',\n schema: {\n dataType: 'string',\n visible: false,\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: ['name', 'title'],\n readonly: true,\n expose: [\n { source: 'id', target: 'reservationClass.id' },\n { source: 'title', target: 'reservationClass.title' },\n { source: 'name', target: 'reservationClass.name' },\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: 'reservationStatusId',\n title: '@reservation-management:reservation-class-statuses.entities.reservation-class-status.fields.reservation-status-id.title',\n groupId: 'basic-information',\n schema: {\n dataType: 'object',\n interface: {\n type: AXPWidgetsCatalog.lookup,\n options: {\n entity: `${RootConfig.module.name}.${RootConfig.entities.reservationStatus.name}`,\n look: 'select',\n textField: 'title',\n valueField: 'id',\n columns: ['name', 'title', 'color', 'icon'],\n expose: [\n { source: 'id', target: 'reservationStatus.id' },\n { source: 'title', target: 'reservationStatus.title' },\n { source: 'name', target: 'reservationStatus.name' },\n { source: 'color', target: 'reservationStatus.color' },\n { source: 'icon', target: 'reservationStatus.icon' },\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: 'order',\n title: '@reservation-management:reservation-class-statuses.entities.reservation-class-status.fields.order.title',\n groupId: 'status-settings',\n schema: {\n dataType: 'number',\n interface: {\n type: AXPWidgetsList.Editors.NumberBox,\n options: {\n minValue: 0,\n maxvalue: 10,\n triggers: [\n {\n event: \"{{ events.context('reservationClassId') }}\",\n //action:\"{{console.log(context.eval('reservationClassId'))}}\"\n action: `{{ widget.refresh() }}`,\n },\n ],\n },\n },\n },\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n },\n {\n name: 'isInitial',\n title: '@reservation-management:reservation-class-statuses.entities.reservation-class-status.fields.is-initial.title',\n groupId: 'status-settings',\n schema: {\n dataType: 'boolean',\n interface: {\n type: AXPWidgetsList.Editors.ToggleSwitch,\n options: {},\n },\n },\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n },\n {\n name: 'isFinal',\n title: '@reservation-management:reservation-class-statuses.entities.reservation-class-status.fields.is-final.title',\n groupId: 'status-settings',\n schema: {\n dataType: 'boolean',\n interface: {\n type: AXPWidgetsList.Editors.ToggleSwitch,\n options: {},\n },\n },\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n },\n ],\n columns: [\n { name: 'reservationStatusId' , options:{dataPath: 'reservationStatus'} },\n { name: 'order' },\n { name: 'isInitial' },\n { name: 'isFinal' },\n ],\n\n interfaces: {\n master: {\n create: {\n sections: [\n { id: 'basic-information', order: 1 },\n { id: 'status-settings', order: 2 },\n ],\n properties: [\n { name: 'reservationClassId', layout: { positions: { lg: { colSpan: 12 } } } },\n { name: 'reservationStatusId', layout: { positions: { lg: { colSpan: 12 } } } },\n { name: 'order', layout: { positions: { lg: { colSpan: 4 } } } },\n { name: 'isInitial', layout: { positions: { lg: { colSpan: 4 } } } },\n { name: 'isFinal', layout: { positions: { lg: { colSpan: 4 } } } },\n ],\n },\n update: {\n sections: [\n { id: 'basic-information', order: 1 },\n { id: 'status-settings', order: 2 },\n ],\n properties: [\n { name: 'reservationClassId', layout: { positions: { lg: { colSpan: 12 } } } },\n { name: 'reservationStatusId', layout: { positions: { lg: { colSpan: 12 } } } },\n { name: 'order', layout: { positions: { lg: { colSpan: 4 } } } },\n { name: 'isInitial', layout: { positions: { lg: { colSpan: 4 } } } },\n { name: 'isFinal', layout: { positions: { lg: { colSpan: 4 } } } },\n ],\n },\n single: {\n title: '{{ reservationStatus.title }}',\n sections: [\n { id: 'basic-information', order: 1 },\n { id: 'status-settings', order: 2 },\n ],\n properties: [\n { name: 'reservationClassId', layout: { positions: { lg: { colSpan: 12 } } } },\n { name: 'reservationStatusId', layout: { positions: { lg: { colSpan: 12 } } } },\n { name: 'order', layout: { positions: { lg: { colSpan: 4 } } } },\n { name: 'isInitial', layout: { positions: { lg: { colSpan: 4 } } } },\n { name: 'isFinal', layout: { positions: { lg: { colSpan: 4 } } } },\n ],\n actions: [...entityMasterRecordActions()],\n },\n list: {\n actions: [...entityMasterCrudActions()],\n views: [\n createAllQueryView({\n sorts: [\n { name: 'order', dir: 'asc' }, \n ],\n }),\n ],\n },\n },\n },\n };\n\n return entityDef;\n}\n\n//#endregion\n\n"],"names":[],"mappings":";;;;AAKA;AAEA;AAEO,eAAe,6BAA6B,GAAA;AACjD,IAAA,MAAM,IAAI,GAAG,UAAU,CAAC,MAAM,CAAC,IAAI;AAEnC,IAAA,MAAM,SAAS,GAAc;AAC3B,QAAA,MAAM,EAAE,UAAU,CAA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AAE;AACL,gCAAA,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE;AAC9B,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AAED,IAAA,OAAO,SAAS;AAClB;AAEA;;;;"}
@@ -0,0 +1,197 @@
1
+ import { AXPSystemActionType, AXPWidgetsList, AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';
2
+ import { createAllQueryView, AXPEntityCommandScope, entityMasterCrudActions, entityMasterRecordActions, entityDetailsCrudActions, entityDetailsSimpleCondition } 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 reservationClassFactory() {
8
+ const entityDef = {
9
+ module: RootConfig.module.name,
10
+ name: RootConfig.entities.reservationClass.name,
11
+ title: RootConfig.entities.reservationClass.title,
12
+ icon: RootConfig.entities.reservationClass.icon,
13
+ plugins: [{ name: 'archive' }],
14
+ formats: {
15
+ individual: RootConfig.entities.reservationClass.title,
16
+ plural: RootConfig.entities.reservationClass.titlePlural,
17
+ searchResult: {
18
+ title: '{{ title }}',
19
+ description: '{{ code }}',
20
+ },
21
+ },
22
+ relatedEntities: [
23
+ {
24
+ entity: `${RootConfig.module.name}.${RootConfig.entities.reservationClassStatus.name}`,
25
+ title: '@reservation-management:reservation-classes.entities.reservation-class.related-entities.reservation-class-statuses.title',
26
+ icon: RootConfig.entities.reservationClassStatus.icon,
27
+ conditions: [entityDetailsSimpleCondition('reservationClassId')],
28
+ actions: [...entityDetailsCrudActions('reservationClassId')],
29
+ layout: { type: 'page-list', position: 'after', order: 1 },
30
+ },
31
+ {
32
+ entity: `${RootConfig.module.name}.${RootConfig.entities.reservationStatusTransition.name}`,
33
+ title: '@reservation-management:reservation-classes.entities.reservation-class.related-entities.reservation-status-transitions.title',
34
+ icon: RootConfig.entities.reservationStatusTransition.icon,
35
+ conditions: [entityDetailsSimpleCondition('reservationClassId')],
36
+ actions: [...entityDetailsCrudActions('reservationClassId')],
37
+ layout: { type: 'page-list', position: 'after', order: 2 },
38
+ },
39
+ ],
40
+ groups: [
41
+ {
42
+ id: 'basic-information',
43
+ title: '@reservation-management:reservation-classes.entities.reservation-class.groups.basic-information',
44
+ },
45
+ ],
46
+ properties: [
47
+ {
48
+ name: 'id',
49
+ title: '@general:terms.common.id',
50
+ schema: { dataType: 'uuid', visible: false, nullable: false, readonly: true, unique: { enabled: true } },
51
+ },
52
+ {
53
+ name: 'name',
54
+ title: '@reservation-management:reservation-classes.entities.reservation-class.fields.name.title',
55
+ groupId: 'basic-information',
56
+ schema: {
57
+ dataType: 'string',
58
+ interface: {
59
+ type: AXPWidgetsList.Editors.TextBox,
60
+ options: {
61
+ placeholder: '@reservation-management:reservation-classes.entities.reservation-class.fields.name.placeholder',
62
+ },
63
+ },
64
+ },
65
+ options: {
66
+ sort: { enabled: true },
67
+ filter: { advance: { enabled: true }, inline: { enabled: true } },
68
+ },
69
+ validations: [{ rule: 'required' }],
70
+ },
71
+ {
72
+ name: 'title',
73
+ title: '@reservation-management:reservation-classes.entities.reservation-class.fields.title.title',
74
+ groupId: 'basic-information',
75
+ schema: {
76
+ dataType: 'string',
77
+ interface: {
78
+ type: AXPWidgetsList.Editors.TextBox,
79
+ options: {
80
+ placeholder: '@reservation-management:reservation-classes.entities.reservation-class.fields.title.placeholder',
81
+ },
82
+ },
83
+ },
84
+ options: {
85
+ sort: { enabled: true },
86
+ filter: { advance: { enabled: true }, inline: { enabled: true } },
87
+ },
88
+ validations: [{ rule: 'required' }],
89
+ },
90
+ {
91
+ name: 'reservationTypeIds',
92
+ title: '@reservation-management:reservation-classes.entities.reservation-class.fields.reservation-type-ids.title',
93
+ groupId: 'basic-information',
94
+ schema: {
95
+ dataType: 'object',
96
+ interface: {
97
+ type: AXPWidgetsCatalog.lookup,
98
+ options: {
99
+ entity: `${RootConfig.module.name}.${RootConfig.entities.reservationType.name}`,
100
+ textField: 'title',
101
+ valueField: 'id',
102
+ columns: ['name', 'title'],
103
+ multiple: true,
104
+ expose: [
105
+ { source: 'id', target: 'reservationTypes.{id}' },
106
+ { source: 'title', target: 'reservationTypes.{title}' },
107
+ { source: 'name', target: 'reservationTypes.{name}' },
108
+ ],
109
+ },
110
+ },
111
+ },
112
+ options: {
113
+ sort: { enabled: true },
114
+ filter: { advance: { enabled: true }, inline: { enabled: true } },
115
+ },
116
+ validations: [{ rule: 'required' }],
117
+ },
118
+ {
119
+ name: 'reservationTypes',
120
+ title: '@reservation-management:reservation-classes.entities.reservation-class.fields.reservation-type-ids.title',
121
+ schema: {
122
+ dataType: 'array',
123
+ interface: {
124
+ type: AXPWidgetsCatalog.text,
125
+ },
126
+ },
127
+ options: {
128
+ sort: { enabled: false },
129
+ filter: { advance: { enabled: false }, inline: { enabled: false } },
130
+ },
131
+ },
132
+ ],
133
+ columns: [
134
+ { name: 'name', options: { order: 1 } },
135
+ { name: 'title', options: { order: 2 } },
136
+ { name: 'reservationTypeIds', options: { order: 3, dataPath: 'reservationTypes' } }
137
+ ],
138
+ interfaces: {
139
+ master: {
140
+ create: {
141
+ sections: [
142
+ { id: 'basic-information', order: 1 },
143
+ ],
144
+ properties: [
145
+ { name: 'name', layout: { positions: { lg: { colSpan: 6 } } } },
146
+ { name: 'title', layout: { positions: { lg: { colSpan: 6 } } } },
147
+ { name: 'reservationTypeIds', layout: { positions: { lg: { colSpan: 12 } } } },
148
+ ],
149
+ },
150
+ update: {
151
+ sections: [
152
+ { id: 'basic-information', order: 1 },
153
+ ],
154
+ properties: [
155
+ { name: 'name', layout: { positions: { lg: { colSpan: 6 } } } },
156
+ { name: 'title', layout: { positions: { lg: { colSpan: 6 } } } },
157
+ { name: 'reservationTypeIds', layout: { positions: { lg: { colSpan: 12 } } } },
158
+ ],
159
+ },
160
+ single: {
161
+ title: '{{ title }}',
162
+ sections: [
163
+ { id: 'basic-information', order: 1 },
164
+ ],
165
+ properties: [
166
+ { name: 'name', layout: { positions: { lg: { colSpan: 6 } } } },
167
+ { name: 'title', layout: { positions: { lg: { colSpan: 6 } } } },
168
+ { name: 'reservationTypeIds', layout: { positions: { lg: { colSpan: 12 } } } },
169
+ ],
170
+ actions: [...entityMasterRecordActions()],
171
+ },
172
+ list: {
173
+ actions: [
174
+ ...entityMasterCrudActions(),
175
+ {
176
+ title: '@general:actions.archive.title',
177
+ command: 'archive-entity',
178
+ priority: 'secondary',
179
+ type: AXPSystemActionType.Archive,
180
+ scope: AXPEntityCommandScope.Individual,
181
+ },
182
+ ],
183
+ views: [
184
+ createAllQueryView({
185
+ sorts: [{ name: 'name', dir: 'asc' }],
186
+ }),
187
+ ],
188
+ },
189
+ },
190
+ },
191
+ };
192
+ return entityDef;
193
+ }
194
+ //#endregion
195
+
196
+ export { reservationClassFactory };
197
+ //# sourceMappingURL=acorex-platform-module-reservation-management-client-contracts-entity-catalog-reservation-class.entity-BzQdba-o.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-reservation-management-client-contracts-entity-catalog-reservation-class.entity-BzQdba-o.mjs","sources":["../../../../libs/modules/reservation-management/contracts/src/entities/reservation-class/reservation-class.entity.ts"],"sourcesContent":["import { AXPSystemActionType, AXPWidgetsCatalog, AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, AXPEntityCommandScope, createAllQueryView, entityDetailsCrudActions, entityDetailsSimpleCondition, 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 reservationClassFactory(): Promise<AXPEntity | null> {\n\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.reservationClass.name,\n title: RootConfig.entities.reservationClass.title,\n icon: RootConfig.entities.reservationClass.icon,\n plugins: [{ name: 'archive' }],\n formats: {\n individual: RootConfig.entities.reservationClass.title,\n plural: RootConfig.entities.reservationClass.titlePlural,\n searchResult: {\n title: '{{ title }}',\n description: '{{ code }}',\n },\n },\n relatedEntities: [\n {\n entity: `${RootConfig.module.name}.${RootConfig.entities.reservationClassStatus.name}`,\n title: '@reservation-management:reservation-classes.entities.reservation-class.related-entities.reservation-class-statuses.title',\n icon: RootConfig.entities.reservationClassStatus.icon,\n conditions: [entityDetailsSimpleCondition('reservationClassId')],\n actions: [...entityDetailsCrudActions('reservationClassId')],\n layout: { type: 'page-list', position: 'after', order: 1 },\n },\n {\n entity: `${RootConfig.module.name}.${RootConfig.entities.reservationStatusTransition.name}`,\n title: '@reservation-management:reservation-classes.entities.reservation-class.related-entities.reservation-status-transitions.title',\n icon: RootConfig.entities.reservationStatusTransition.icon,\n conditions: [entityDetailsSimpleCondition('reservationClassId')],\n actions: [...entityDetailsCrudActions('reservationClassId')],\n layout: { type: 'page-list', position: 'after', order: 2 },\n },\n ],\n groups: [\n {\n id: 'basic-information',\n title: '@reservation-management:reservation-classes.entities.reservation-class.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: 'name',\n title: '@reservation-management:reservation-classes.entities.reservation-class.fields.name.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-classes.entities.reservation-class.fields.name.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: 'title',\n title: '@reservation-management:reservation-classes.entities.reservation-class.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-classes.entities.reservation-class.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: 'reservationTypeIds',\n title:\n '@reservation-management:reservation-classes.entities.reservation-class.fields.reservation-type-ids.title',\n groupId: 'basic-information',\n schema: {\n dataType: 'object',\n interface: {\n type: AXPWidgetsCatalog.lookup,\n options: {\n entity: `${RootConfig.module.name}.${RootConfig.entities.reservationType.name}`,\n textField: 'title',\n valueField: 'id',\n columns: ['name', 'title'],\n multiple: true,\n expose: [\n { source: 'id', target: 'reservationTypes.{id}' },\n { source: 'title', target: 'reservationTypes.{title}' },\n { source: 'name', target: 'reservationTypes.{name}' },\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: 'reservationTypes',\n title: '@reservation-management:reservation-classes.entities.reservation-class.fields.reservation-type-ids.title',\n schema: {\n dataType: 'array',\n interface: {\n type: AXPWidgetsCatalog.text,\n },\n },\n options: {\n sort: { enabled: false },\n filter: { advance: { enabled: false }, inline: { enabled: false } },\n },\n },\n ],\n columns: [\n { name: 'name', options: { order: 1 } },\n { name: 'title', options: { order: 2 } },\n { name: 'reservationTypeIds', options: { order: 3, dataPath: 'reservationTypes' } }\n ],\n interfaces: {\n master: {\n create: {\n sections: [\n { id: 'basic-information', order: 1 },\n ],\n properties: [\n { name: 'name', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'reservationTypeIds', layout: { positions: { lg: { colSpan: 12 } } } },\n ],\n },\n update: {\n sections: [\n { id: 'basic-information', order: 1 },\n ],\n properties: [\n { name: 'name', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'reservationTypeIds', layout: { positions: { lg: { colSpan: 12 } } } },\n ],\n },\n single: {\n title: '{{ title }}',\n sections: [\n { id: 'basic-information', order: 1 },\n ],\n properties: [\n { name: 'name', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'reservationTypeIds', layout: { positions: { lg: { colSpan: 12 } } } },\n ],\n actions: [...entityMasterRecordActions()],\n },\n list: {\n actions: [\n ...entityMasterCrudActions(),\n {\n title: '@general:actions.archive.title',\n command: 'archive-entity',\n priority: 'secondary',\n type: AXPSystemActionType.Archive,\n scope: AXPEntityCommandScope.Individual,\n },\n ],\n views: [\n createAllQueryView({\n sorts: [{ name: 'name', 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;AAE3C,IAAA,MAAM,SAAS,GAAc;AAC3B,QAAA,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAC9B,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,gBAAgB,CAAC,IAAI;AAC/C,QAAA,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC,gBAAgB,CAAC,KAAK;AACjD,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,gBAAgB,CAAC,IAAI;AAC/C,QAAA,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;AAC9B,QAAA,OAAO,EAAE;AACP,YAAA,UAAU,EAAE,UAAU,CAAC,QAAQ,CAAC,gBAAgB,CAAC,KAAK;AACtD,YAAA,MAAM,EAAE,UAAU,CAAC,QAAQ,CAAC,gBAAgB,CAAC,WAAW;AACxD,YAAA,YAAY,EAAE;AACZ,gBAAA,KAAK,EAAE,aAAa;AACpB,gBAAA,WAAW,EAAE,YAAY;AAC1B,aAAA;AACF,SAAA;AACD,QAAA,eAAe,EAAE;AACf,YAAA;AACE,gBAAA,MAAM,EAAE,CAAA,EAAG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