@acorex-platform/module-organization-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 (110) hide show
  1. package/fesm2022/{acorex-platform-module-organization-management-client-acorex-platform-module-organization-management-client-UGWNdPxI.mjs → acorex-platform-module-organization-management-client-acorex-platform-module-organization-management-client-ZM6X7IDO.mjs} +11 -11
  2. package/fesm2022/{acorex-platform-module-organization-management-client-acorex-platform-module-organization-management-client-UGWNdPxI.mjs.map → acorex-platform-module-organization-management-client-acorex-platform-module-organization-management-client-ZM6X7IDO.mjs.map} +1 -1
  3. package/fesm2022/acorex-platform-module-organization-management-client-add-business-unit-to-business-unit.command-CA2uZQyC.mjs.map +1 -1
  4. package/fesm2022/acorex-platform-module-organization-management-client-add-position-to-business-unit.command-F7jD3jKs.mjs.map +1 -1
  5. package/fesm2022/acorex-platform-module-organization-management-client-add-team-to-business-unit.command-BLQFjhS5.mjs.map +1 -1
  6. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-business-unit-type.mjs +318 -0
  7. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-business-unit-type.mjs.map +1 -0
  8. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-business-unit.mjs +516 -0
  9. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-business-unit.mjs.map +1 -0
  10. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-chart.mjs +314 -0
  11. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-chart.mjs.map +1 -0
  12. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-company.mjs +250 -0
  13. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-company.mjs.map +1 -0
  14. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-job-definition.mjs +439 -0
  15. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-job-definition.mjs.map +1 -0
  16. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-job-level.mjs +385 -0
  17. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-job-level.mjs.map +1 -0
  18. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-position.mjs +657 -0
  19. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-position.mjs.map +1 -0
  20. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-responsibility-level.mjs +248 -0
  21. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-responsibility-level.mjs.map +1 -0
  22. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-responsibility.mjs +317 -0
  23. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-responsibility.mjs.map +1 -0
  24. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-team-business-unit.mjs +413 -0
  25. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-team-business-unit.mjs.map +1 -0
  26. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-team-member-role.mjs +220 -0
  27. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-team-member-role.mjs.map +1 -0
  28. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-team-member.mjs +366 -0
  29. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-team-member.mjs.map +1 -0
  30. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-team.mjs +421 -0
  31. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-team.mjs.map +1 -0
  32. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-acorex-platform-module-organization-management-client-contracts-entity-catalog-vMiwmkDK.mjs +146 -0
  33. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-acorex-platform-module-organization-management-client-contracts-entity-catalog-vMiwmkDK.mjs.map +1 -0
  34. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-business-unit-type.entity-BmhCZeXd.mjs +203 -0
  35. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-business-unit-type.entity-BmhCZeXd.mjs.map +1 -0
  36. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-business-unit.entity-CIPmfbsM.mjs +401 -0
  37. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-business-unit.entity-CIPmfbsM.mjs.map +1 -0
  38. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-chart.entity-sg_rI9It.mjs +199 -0
  39. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-chart.entity-sg_rI9It.mjs.map +1 -0
  40. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-company.entity-BSDO_7eL.mjs +135 -0
  41. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-company.entity-BSDO_7eL.mjs.map +1 -0
  42. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-job-definition.entity-0W6OSQH-.mjs +324 -0
  43. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-job-definition.entity-0W6OSQH-.mjs.map +1 -0
  44. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-job-level.entity-DbMjRbn9.mjs +270 -0
  45. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-job-level.entity-DbMjRbn9.mjs.map +1 -0
  46. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-position.entity-BkauiyPn.mjs +542 -0
  47. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-position.entity-BkauiyPn.mjs.map +1 -0
  48. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-responsibility-level.entity-BagFwJmO.mjs +133 -0
  49. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-responsibility-level.entity-BagFwJmO.mjs.map +1 -0
  50. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-responsibility.entity-DHhT7rSq.mjs +202 -0
  51. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-responsibility.entity-DHhT7rSq.mjs.map +1 -0
  52. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-team-business-unit.entity-hkCAl8so.mjs +298 -0
  53. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-team-business-unit.entity-hkCAl8so.mjs.map +1 -0
  54. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-team-member-role.entity-BeGE4JUl.mjs +105 -0
  55. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-team-member-role.entity-BeGE4JUl.mjs.map +1 -0
  56. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-team-member.entity-10nYBrN4.mjs +251 -0
  57. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-team-member.entity-10nYBrN4.mjs.map +1 -0
  58. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-team.entity-Bygn5B_k.mjs +306 -0
  59. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-team.entity-Bygn5B_k.mjs.map +1 -0
  60. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog.mjs +2 -0
  61. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog.mjs.map +1 -0
  62. package/fesm2022/acorex-platform-module-organization-management-client-contracts.mjs.map +1 -1
  63. package/fesm2022/acorex-platform-module-organization-management-client-feature-definition.provider-BQKtvXOM.mjs.map +1 -1
  64. package/fesm2022/acorex-platform-module-organization-management-client-generate-org-chart.command-DJnFJKuo.mjs.map +1 -1
  65. package/fesm2022/acorex-platform-module-organization-management-client-job-definition-matrix-page.utils-CGRJXMOn.mjs.map +1 -1
  66. package/fesm2022/{acorex-platform-module-organization-management-client-job-definition-pages-component.provider-TIHOAeAI.mjs → acorex-platform-module-organization-management-client-job-definition-pages-component.provider-XH_rXGwz.mjs} +2 -2
  67. package/fesm2022/{acorex-platform-module-organization-management-client-job-definition-pages-component.provider-TIHOAeAI.mjs.map → acorex-platform-module-organization-management-client-job-definition-pages-component.provider-XH_rXGwz.mjs.map} +1 -1
  68. package/fesm2022/{acorex-platform-module-organization-management-client-job-definition-responsibilities-page.component-KwOQXdX0.mjs → acorex-platform-module-organization-management-client-job-definition-responsibilities-page.component-CpirrInU.mjs} +2 -2
  69. package/fesm2022/{acorex-platform-module-organization-management-client-job-definition-responsibilities-page.component-KwOQXdX0.mjs.map → acorex-platform-module-organization-management-client-job-definition-responsibilities-page.component-CpirrInU.mjs.map} +1 -1
  70. package/fesm2022/acorex-platform-module-organization-management-client-job-definition-skills-page.component-bQOqP1Tx.mjs.map +1 -1
  71. package/fesm2022/acorex-platform-module-organization-management-client-local-entities.mjs +41 -0
  72. package/fesm2022/acorex-platform-module-organization-management-client-local-entities.mjs.map +1 -0
  73. package/fesm2022/acorex-platform-module-organization-management-client-menu.provider-BgRoEC48.mjs.map +1 -1
  74. package/fesm2022/acorex-platform-module-organization-management-client-org-chart-default-node-contribution.provider-BQ0ihb43.mjs.map +1 -1
  75. package/fesm2022/{acorex-platform-module-organization-management-client-org-chart-employee-flyout-contribution.provider-DZs4VB50.mjs → acorex-platform-module-organization-management-client-org-chart-employee-flyout-contribution.provider-ZnMtkQSg.mjs} +2 -2
  76. package/fesm2022/{acorex-platform-module-organization-management-client-org-chart-employee-flyout-contribution.provider-DZs4VB50.mjs.map → acorex-platform-module-organization-management-client-org-chart-employee-flyout-contribution.provider-ZnMtkQSg.mjs.map} +1 -1
  77. package/fesm2022/acorex-platform-module-organization-management-client-org-chart-position-employee-node-contribution.provider-BTicXn9n.mjs.map +1 -1
  78. package/fesm2022/{acorex-platform-module-organization-management-client-org-chart-ux-node-contribution.provider-ISEbvMkZ.mjs → acorex-platform-module-organization-management-client-org-chart-ux-node-contribution.provider-uZkFZFPA.mjs} +2 -2
  79. package/fesm2022/{acorex-platform-module-organization-management-client-org-chart-ux-node-contribution.provider-ISEbvMkZ.mjs.map → acorex-platform-module-organization-management-client-org-chart-ux-node-contribution.provider-uZkFZFPA.mjs.map} +1 -1
  80. package/fesm2022/{acorex-platform-module-organization-management-client-org-chart.page-CMd5nTa7.mjs → acorex-platform-module-organization-management-client-org-chart.page-BhXvP2qN.mjs} +7 -7
  81. package/fesm2022/{acorex-platform-module-organization-management-client-org-chart.page-CMd5nTa7.mjs.map → acorex-platform-module-organization-management-client-org-chart.page-BhXvP2qN.mjs.map} +1 -1
  82. package/fesm2022/acorex-platform-module-organization-management-client-permission-definition.provider-CiCdTBGo.mjs.map +1 -1
  83. package/fesm2022/acorex-platform-module-organization-management-client-remove-position-from-business-unit.command-BFQVTpfy.mjs.map +1 -1
  84. package/fesm2022/acorex-platform-module-organization-management-client-replace-position-assignee.command-CSgERqLG.mjs.map +1 -1
  85. package/fesm2022/acorex-platform-module-organization-management-client-responsibilities-matrix-widget-column.component-C5H0kcVW.mjs.map +1 -1
  86. package/fesm2022/{acorex-platform-module-organization-management-client-responsibilities-matrix-widget-edit.component-DmDQSgYC.mjs → acorex-platform-module-organization-management-client-responsibilities-matrix-widget-edit.component-m4S5GRko.mjs} +2 -2
  87. package/fesm2022/{acorex-platform-module-organization-management-client-responsibilities-matrix-widget-edit.component-DmDQSgYC.mjs.map → acorex-platform-module-organization-management-client-responsibilities-matrix-widget-edit.component-m4S5GRko.mjs.map} +1 -1
  88. package/fesm2022/{acorex-platform-module-organization-management-client-responsibilities-matrix-widget-view.component-BkLZhXhM.mjs → acorex-platform-module-organization-management-client-responsibilities-matrix-widget-view.component-Cbua852d.mjs} +2 -2
  89. package/fesm2022/{acorex-platform-module-organization-management-client-responsibilities-matrix-widget-view.component-BkLZhXhM.mjs.map → acorex-platform-module-organization-management-client-responsibilities-matrix-widget-view.component-Cbua852d.mjs.map} +1 -1
  90. package/fesm2022/{acorex-platform-module-organization-management-client-responsibilities-matrix.component-DqO6xE2p.mjs → acorex-platform-module-organization-management-client-responsibilities-matrix.component-Cpgdxtw-.mjs} +2 -2
  91. package/fesm2022/{acorex-platform-module-organization-management-client-responsibilities-matrix.component-DqO6xE2p.mjs.map → acorex-platform-module-organization-management-client-responsibilities-matrix.component-Cpgdxtw-.mjs.map} +1 -1
  92. package/fesm2022/acorex-platform-module-organization-management-client-settings.provider-B3nDm32f.mjs.map +1 -1
  93. package/fesm2022/acorex-platform-module-organization-management-client.mjs +1 -1
  94. package/package.json +62 -2
  95. package/types/acorex-platform-module-organization-management-client-contracts-entities-business-unit-type.d.ts +5 -0
  96. package/types/acorex-platform-module-organization-management-client-contracts-entities-business-unit.d.ts +5 -0
  97. package/types/acorex-platform-module-organization-management-client-contracts-entities-chart.d.ts +5 -0
  98. package/types/acorex-platform-module-organization-management-client-contracts-entities-company.d.ts +5 -0
  99. package/types/acorex-platform-module-organization-management-client-contracts-entities-job-definition.d.ts +5 -0
  100. package/types/acorex-platform-module-organization-management-client-contracts-entities-job-level.d.ts +5 -0
  101. package/types/acorex-platform-module-organization-management-client-contracts-entities-position.d.ts +5 -0
  102. package/types/acorex-platform-module-organization-management-client-contracts-entities-responsibility-level.d.ts +5 -0
  103. package/types/acorex-platform-module-organization-management-client-contracts-entities-responsibility.d.ts +5 -0
  104. package/types/acorex-platform-module-organization-management-client-contracts-entities-team-business-unit.d.ts +5 -0
  105. package/types/acorex-platform-module-organization-management-client-contracts-entities-team-member-role.d.ts +5 -0
  106. package/types/acorex-platform-module-organization-management-client-contracts-entities-team-member.d.ts +5 -0
  107. package/types/acorex-platform-module-organization-management-client-contracts-entities-team.d.ts +5 -0
  108. package/types/acorex-platform-module-organization-management-client-contracts-entity-catalog.d.ts +10 -0
  109. package/types/acorex-platform-module-organization-management-client-contracts.d.ts +2 -2
  110. package/types/acorex-platform-module-organization-management-client-local-entities.d.ts +12 -0
@@ -0,0 +1,298 @@
1
+ import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';
2
+ import { createAllQueryView, entityMasterCrudActions, entityMasterDeleteAction } from '@acorex-platform/framework-shared/entity';
3
+ import { R as RootConfig } from './acorex-platform-module-organization-management-client-contracts-entity-catalog-acorex-platform-module-organization-management-client-contracts-entity-catalog-vMiwmkDK.mjs';
4
+
5
+ //#endregion
6
+ //#region ---- Entity factory ----
7
+ async function factoryTeamBusinessUnit() {
8
+ const entityDef = {
9
+ module: RootConfig.module.name,
10
+ name: RootConfig.entities.teamBusinessUnit.name,
11
+ title: '@organization-management:team-business-units.entities.team-business-unit.title',
12
+ icon: RootConfig.entities.teamBusinessUnit.icon,
13
+ plugins: [
14
+ { name: 'history' },
15
+ {
16
+ name: 'unique-fields',
17
+ options: { fields: ['teamId', 'businessUnitId'], scope: 'global' },
18
+ },
19
+ ],
20
+ formats: {
21
+ individual: '@organization-management:team-business-units.entities.team-business-unit.title',
22
+ plural: '@organization-management:team-business-units.entities.team-business-unit.plural',
23
+ searchResult: {
24
+ title: '@organization-management:team-business-units.entities.team-business-unit.title',
25
+ description: RootConfig.module.title,
26
+ },
27
+ },
28
+ groups: [
29
+ {
30
+ id: 'basic-info',
31
+ title: '@general:terms.interface.basic-info',
32
+ },
33
+ ],
34
+ properties: [
35
+ {
36
+ name: 'id',
37
+ title: 'ID',
38
+ groupId: 'basic-info',
39
+ schema: {
40
+ dataType: 'uuid',
41
+ visible: false,
42
+ nullable: false,
43
+ readonly: true,
44
+ unique: {
45
+ enabled: true,
46
+ },
47
+ },
48
+ },
49
+ {
50
+ name: 'teamId',
51
+ title: '@organization-management:team-business-units.entities.team-business-unit.fields.team.title',
52
+ groupId: 'basic-info',
53
+ description: 'Sample description text for the code field',
54
+ options: {
55
+ sort: { enabled: true },
56
+ filter: { advance: { enabled: true }, inline: { enabled: true } },
57
+ },
58
+ schema: {
59
+ dataType: 'string',
60
+ interface: {
61
+ type: AXPWidgetsList.Editors.LookupBox,
62
+ options: {
63
+ entity: `${RootConfig.module.name}.${RootConfig.entities.team.name}`,
64
+ textField: 'title',
65
+ valueField: 'id',
66
+ expose: [
67
+ { source: 'id', target: 'team.id' },
68
+ { source: 'title', target: 'team.title' },
69
+ ],
70
+ },
71
+ },
72
+ },
73
+ validations: [{ rule: 'required' }],
74
+ },
75
+ {
76
+ name: 'businessUnitId',
77
+ title: '@organization-management:team-business-units.entities.team-business-unit.fields.business-unit.title',
78
+ groupId: 'basic-info',
79
+ options: {
80
+ sort: { enabled: true },
81
+ filter: { advance: { enabled: true }, inline: { enabled: true } },
82
+ },
83
+ schema: {
84
+ dataType: 'string',
85
+ interface: {
86
+ type: AXPWidgetsList.Editors.LookupBox,
87
+ options: {
88
+ entity: `${RootConfig.module.name}.${RootConfig.entities.businessUnit.name}`,
89
+ textField: 'title',
90
+ valueField: 'id',
91
+ expose: [
92
+ { source: 'id', target: 'businessUnit.id' },
93
+ { source: 'title', target: 'businessUnit.title' },
94
+ ],
95
+ },
96
+ },
97
+ },
98
+ validations: [{ rule: 'required' }],
99
+ },
100
+ {
101
+ name: 'isPrimary',
102
+ title: '@organization-management:team-business-units.entities.team-business-unit.fields.is-primary.title',
103
+ groupId: 'basic-info',
104
+ schema: {
105
+ dataType: 'boolean',
106
+ interface: { type: AXPWidgetsList.Editors.ToggleSwitch },
107
+ defaultValue: false,
108
+ },
109
+ },
110
+ {
111
+ name: 'effectiveFrom',
112
+ title: '@organization-management:team-business-units.entities.team-business-unit.fields.effective-from.title',
113
+ groupId: 'basic-info',
114
+ schema: {
115
+ dataType: 'date',
116
+ interface: {
117
+ type: AXPWidgetsList.Editors.DateTimeBox,
118
+ },
119
+ },
120
+ },
121
+ {
122
+ name: 'effectiveTo',
123
+ title: '@organization-management:team-business-units.entities.team-business-unit.fields.effective-to.title',
124
+ groupId: 'basic-info',
125
+ schema: {
126
+ dataType: 'date',
127
+ interface: {
128
+ type: AXPWidgetsList.Editors.DateTimeBox,
129
+ },
130
+ },
131
+ },
132
+ ],
133
+ columns: [
134
+ { name: 'teamId', options: { dataPath: 'team.title' } },
135
+ { name: 'businessUnitId', options: { dataPath: 'businessUnit.title' } },
136
+ { name: 'isPrimary' },
137
+ { name: 'effectiveFrom' },
138
+ { name: 'effectiveTo' },
139
+ ],
140
+ interfaces: {
141
+ master: {
142
+ create: {
143
+ sections: [{ id: 'basic-info' }],
144
+ properties: [
145
+ {
146
+ name: 'teamId',
147
+ layout: {
148
+ positions: {
149
+ lg: { colSpan: 12, order: 1 },
150
+ },
151
+ },
152
+ },
153
+ {
154
+ name: 'businessUnitId',
155
+ layout: {
156
+ positions: {
157
+ lg: { colSpan: 12, order: 2 },
158
+ },
159
+ },
160
+ },
161
+ {
162
+ name: 'isPrimary',
163
+ layout: {
164
+ positions: {
165
+ lg: { colSpan: 12, order: 3 },
166
+ },
167
+ },
168
+ },
169
+ {
170
+ name: 'effectiveFrom',
171
+ layout: {
172
+ positions: {
173
+ lg: { colSpan: 6, order: 4 },
174
+ },
175
+ },
176
+ },
177
+ {
178
+ name: 'effectiveTo',
179
+ layout: {
180
+ positions: {
181
+ lg: { colSpan: 6, order: 5 },
182
+ },
183
+ },
184
+ },
185
+ ],
186
+ },
187
+ update: {
188
+ sections: [{ id: 'basic-info' }],
189
+ properties: [
190
+ {
191
+ name: 'teamId',
192
+ layout: {
193
+ positions: {
194
+ lg: { colSpan: 12, order: 1 },
195
+ },
196
+ },
197
+ },
198
+ {
199
+ name: 'businessUnitId',
200
+ layout: {
201
+ positions: {
202
+ lg: { colSpan: 12, order: 2 },
203
+ },
204
+ },
205
+ },
206
+ {
207
+ name: 'isPrimary',
208
+ layout: {
209
+ positions: {
210
+ lg: { colSpan: 12, order: 3 },
211
+ },
212
+ },
213
+ },
214
+ {
215
+ name: 'effectiveFrom',
216
+ layout: {
217
+ positions: {
218
+ lg: { colSpan: 6, order: 4 },
219
+ },
220
+ },
221
+ },
222
+ {
223
+ name: 'effectiveTo',
224
+ layout: {
225
+ positions: {
226
+ lg: { colSpan: 6, order: 5 },
227
+ },
228
+ },
229
+ },
230
+ ],
231
+ },
232
+ single: {
233
+ title: '{{ context.eval("team.code") + " — " + context.eval("businessUnit.code") }}',
234
+ sections: [{ id: 'basic-info' }],
235
+ properties: [
236
+ {
237
+ name: 'teamId',
238
+ layout: {
239
+ positions: {
240
+ lg: { colSpan: 12, order: 1 },
241
+ },
242
+ },
243
+ },
244
+ {
245
+ name: 'businessUnitId',
246
+ layout: {
247
+ positions: {
248
+ lg: { colSpan: 12, order: 2 },
249
+ },
250
+ },
251
+ },
252
+ {
253
+ name: 'isPrimary',
254
+ layout: {
255
+ positions: {
256
+ lg: { colSpan: 12, order: 3 },
257
+ },
258
+ },
259
+ },
260
+ {
261
+ name: 'effectiveFrom',
262
+ layout: {
263
+ positions: {
264
+ lg: { colSpan: 6, order: 4 },
265
+ },
266
+ },
267
+ },
268
+ {
269
+ name: 'effectiveTo',
270
+ layout: {
271
+ positions: {
272
+ lg: { colSpan: 6, order: 5 },
273
+ },
274
+ },
275
+ },
276
+ ],
277
+ actions: [entityMasterDeleteAction()],
278
+ },
279
+ list: {
280
+ actions: [...entityMasterCrudActions()],
281
+ views: [
282
+ createAllQueryView({
283
+ sorts: [
284
+ { name: 'isPrimary', dir: 'desc' },
285
+ { name: 'teamId', dir: 'asc' },
286
+ ],
287
+ }),
288
+ ],
289
+ },
290
+ },
291
+ },
292
+ };
293
+ return entityDef;
294
+ }
295
+ //#endregion
296
+
297
+ export { factoryTeamBusinessUnit };
298
+ //# sourceMappingURL=acorex-platform-module-organization-management-client-contracts-entity-catalog-team-business-unit.entity-hkCAl8so.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-organization-management-client-contracts-entity-catalog-team-business-unit.entity-hkCAl8so.mjs","sources":["../../../../libs/modules/organization-management/contracts/src/entities/team-business-unit/team-business-unit.entity.ts"],"sourcesContent":["import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, createAllQueryView, entityMasterCrudActions, entityMasterDeleteAction } 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 factoryTeamBusinessUnit(): Promise<AXPEntity | null> {\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.teamBusinessUnit.name,\n title: '@organization-management:team-business-units.entities.team-business-unit.title',\n icon: RootConfig.entities.teamBusinessUnit.icon,\n plugins: [\n { name: 'history' },\n {\n name: 'unique-fields',\n options: { fields: ['teamId', 'businessUnitId'], scope: 'global' },\n },\n ],\n formats: {\n individual: '@organization-management:team-business-units.entities.team-business-unit.title',\n plural: '@organization-management:team-business-units.entities.team-business-unit.plural',\n searchResult: {\n title: '@organization-management:team-business-units.entities.team-business-unit.title',\n description: RootConfig.module.title,\n },\n },\n groups: [\n {\n id: 'basic-info',\n title: '@general:terms.interface.basic-info',\n },\n ],\n properties: [\n {\n name: 'id',\n title: 'ID',\n groupId: 'basic-info',\n schema: {\n dataType: 'uuid',\n visible: false,\n nullable: false,\n readonly: true,\n unique: {\n enabled: true,\n },\n },\n },\n {\n name: 'teamId',\n title: '@organization-management:team-business-units.entities.team-business-unit.fields.team.title',\n groupId: 'basic-info',\n description: 'Sample description text for the code field',\n\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.LookupBox,\n options: {\n entity: `${RootConfig.module.name}.${RootConfig.entities.team.name}`,\n textField: 'title',\n valueField: 'id',\n expose: [\n { source: 'id', target: 'team.id' },\n { source: 'title', target: 'team.title' },\n ],\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'businessUnitId',\n title: '@organization-management:team-business-units.entities.team-business-unit.fields.business-unit.title',\n groupId: 'basic-info',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.LookupBox,\n options: {\n entity: `${RootConfig.module.name}.${RootConfig.entities.businessUnit.name}`,\n textField: 'title',\n valueField: 'id',\n expose: [\n { source: 'id', target: 'businessUnit.id' },\n { source: 'title', target: 'businessUnit.title' },\n ],\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'isPrimary',\n title: '@organization-management:team-business-units.entities.team-business-unit.fields.is-primary.title',\n groupId: 'basic-info',\n schema: {\n dataType: 'boolean',\n interface: { type: AXPWidgetsList.Editors.ToggleSwitch },\n defaultValue: false,\n },\n },\n {\n name: 'effectiveFrom',\n title: '@organization-management:team-business-units.entities.team-business-unit.fields.effective-from.title',\n groupId: 'basic-info',\n schema: {\n dataType: 'date',\n interface: {\n type: AXPWidgetsList.Editors.DateTimeBox,\n },\n },\n },\n {\n name: 'effectiveTo',\n title: '@organization-management:team-business-units.entities.team-business-unit.fields.effective-to.title',\n groupId: 'basic-info',\n schema: {\n dataType: 'date',\n interface: {\n type: AXPWidgetsList.Editors.DateTimeBox,\n },\n },\n },\n ],\n columns: [\n { name: 'teamId', options: { dataPath: 'team.title' } },\n { name: 'businessUnitId', options: { dataPath: 'businessUnit.title' } },\n { name: 'isPrimary' },\n { name: 'effectiveFrom' },\n { name: 'effectiveTo' },\n ],\n interfaces: {\n master: {\n create: {\n sections: [{ id: 'basic-info' }],\n properties: [\n {\n name: 'teamId',\n layout: {\n positions: {\n lg: { colSpan: 12, order: 1 },\n },\n },\n },\n {\n name: 'businessUnitId',\n layout: {\n positions: {\n lg: { colSpan: 12, order: 2 },\n },\n },\n },\n {\n name: 'isPrimary',\n layout: {\n positions: {\n lg: { colSpan: 12, order: 3 },\n },\n },\n },\n {\n name: 'effectiveFrom',\n layout: {\n positions: {\n lg: { colSpan: 6, order: 4 },\n },\n },\n },\n {\n name: 'effectiveTo',\n layout: {\n positions: {\n lg: { colSpan: 6, order: 5 },\n },\n },\n },\n ],\n },\n update: {\n sections: [{ id: 'basic-info' }],\n properties: [\n {\n name: 'teamId',\n layout: {\n positions: {\n lg: { colSpan: 12, order: 1 },\n },\n },\n },\n {\n name: 'businessUnitId',\n layout: {\n positions: {\n lg: { colSpan: 12, order: 2 },\n },\n },\n },\n {\n name: 'isPrimary',\n layout: {\n positions: {\n lg: { colSpan: 12, order: 3 },\n },\n },\n },\n {\n name: 'effectiveFrom',\n layout: {\n positions: {\n lg: { colSpan: 6, order: 4 },\n },\n },\n },\n {\n name: 'effectiveTo',\n layout: {\n positions: {\n lg: { colSpan: 6, order: 5 },\n },\n },\n },\n ],\n },\n single: {\n title: '{{ context.eval(\"team.code\") + \" — \" + context.eval(\"businessUnit.code\") }}',\n sections: [{ id: 'basic-info' }],\n properties: [\n {\n name: 'teamId',\n layout: {\n positions: {\n lg: { colSpan: 12, order: 1 },\n },\n },\n },\n {\n name: 'businessUnitId',\n layout: {\n positions: {\n lg: { colSpan: 12, order: 2 },\n },\n },\n },\n {\n name: 'isPrimary',\n layout: {\n positions: {\n lg: { colSpan: 12, order: 3 },\n },\n },\n },\n {\n name: 'effectiveFrom',\n layout: {\n positions: {\n lg: { colSpan: 6, order: 4 },\n },\n },\n },\n {\n name: 'effectiveTo',\n layout: {\n positions: {\n lg: { colSpan: 6, order: 5 },\n },\n },\n },\n ],\n actions: [entityMasterDeleteAction()],\n },\n list: {\n actions: [...entityMasterCrudActions()],\n views: [\n createAllQueryView({\n sorts: [\n { name: 'isPrimary', dir: 'desc' },\n { name: 'teamId', dir: 'asc' },\n ],\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,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,gFAAgF;AACvF,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,gBAAgB,CAAC,IAAI;AAC/C,QAAA,OAAO,EAAE;YACP,EAAE,IAAI,EAAE,SAAS,EAAE;AACnB,YAAA;AACE,gBAAA,IAAI,EAAE,eAAe;AACrB,gBAAA,OAAO,EA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AS,EAAE;oCACT,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE;AAC7B,iCAAA;AACF,6BAAA;AACF,yBAAA;AACF,qBAAA;AACD,oBAAA,OAAO,EAAE,CAAC,wBAAwB,EAAE,CAAC;AACtC,iBAAA;AACD,gBAAA,IAAI,EAAE;AACJ,oBAAA,OAAO,EAAE,CAAC,GAAG,uBAAuB,EAAE,CAAC;AACvC,oBAAA,KAAK,EAAE;AACL,wBAAA,kBAAkB,CAAC;AACjB,4BAAA,KAAK,EAAE;AACL,gCAAA,EAAE,IAAI,EAAE,WAAW,EAAE,GAAG,EAAE,MAAM,EAAE;AAClC,gCAAA,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,EAAE,KAAK,EAAE;AAC/B,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AAED,IAAA,OAAO,SAAS;AAClB;AAEA;;"}
@@ -0,0 +1,105 @@
1
+ import { 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-organization-management-client-contracts-entity-catalog-acorex-platform-module-organization-management-client-contracts-entity-catalog-vMiwmkDK.mjs';
4
+
5
+ async function factoryTeamMemberRole() {
6
+ const entityDef = {
7
+ module: RootConfig.module.name,
8
+ name: RootConfig.entities.teamMemberRole.name,
9
+ title: '@organization-management:team-member-roles.entities.team-member-role.title',
10
+ icon: 'fa-light fa-user-tag',
11
+ formats: {
12
+ individual: '@organization-management:team-member-roles.entities.team-member-role.title',
13
+ plural: '@organization-management:team-member-roles.entities.team-member-role.plural',
14
+ searchResult: { title: '{{ title }}', description: RootConfig.module.title },
15
+ },
16
+ groups: [{ id: 'basic-info', title: '@general:terms.interface.basic-info' }],
17
+ properties: [
18
+ {
19
+ name: 'id',
20
+ title: 'ID',
21
+ groupId: 'basic-info',
22
+ schema: { dataType: 'uuid', visible: false, nullable: false, readonly: true, unique: { enabled: true } },
23
+ },
24
+ {
25
+ name: 'title',
26
+ title: '@general:terms.common.title',
27
+ groupId: 'basic-info',
28
+ schema: {
29
+ dataType: 'string',
30
+ interface: {
31
+ type: AXPWidgetsList.Editors.TextBox,
32
+ },
33
+ },
34
+ validations: [{ rule: 'required' }],
35
+ options: {
36
+ sort: { enabled: true },
37
+ filter: { advance: { enabled: true }, inline: { enabled: true } },
38
+ },
39
+ },
40
+ ],
41
+ columns: [{ name: 'title' }],
42
+ interfaces: {
43
+ master: {
44
+ create: {
45
+ sections: [{ id: 'basic-info' }],
46
+ properties: [
47
+ {
48
+ name: 'title',
49
+ layout: {
50
+ order: 1,
51
+ positions: {
52
+ sm: { colSpan: 12, order: 1 },
53
+ md: { colSpan: 12, order: 1 },
54
+ lg: { colSpan: 12, order: 1 },
55
+ },
56
+ },
57
+ },
58
+ ],
59
+ },
60
+ update: {
61
+ sections: [{ id: 'basic-info' }],
62
+ properties: [
63
+ {
64
+ name: 'title',
65
+ layout: {
66
+ order: 1,
67
+ positions: {
68
+ sm: { colSpan: 12, order: 1 },
69
+ md: { colSpan: 12, order: 1 },
70
+ lg: { colSpan: 12, order: 1 },
71
+ },
72
+ },
73
+ },
74
+ ],
75
+ },
76
+ single: {
77
+ title: '{{title}}',
78
+ sections: [{ id: 'basic-info' }],
79
+ properties: [
80
+ {
81
+ name: 'title',
82
+ layout: {
83
+ order: 1,
84
+ positions: {
85
+ sm: { colSpan: 12, order: 1 },
86
+ md: { colSpan: 12, order: 1 },
87
+ lg: { colSpan: 12, order: 1 },
88
+ },
89
+ },
90
+ },
91
+ ],
92
+ actions: [...entityMasterRecordActions()],
93
+ },
94
+ list: {
95
+ actions: [...entityMasterCrudActions()],
96
+ views: [createAllQueryView({ sorts: [{ name: 'title', dir: 'asc' }] })],
97
+ },
98
+ },
99
+ },
100
+ };
101
+ return entityDef;
102
+ }
103
+
104
+ export { factoryTeamMemberRole };
105
+ //# sourceMappingURL=acorex-platform-module-organization-management-client-contracts-entity-catalog-team-member-role.entity-BeGE4JUl.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-organization-management-client-contracts-entity-catalog-team-member-role.entity-BeGE4JUl.mjs","sources":["../../../../libs/modules/organization-management/contracts/src/entities/team-member-role/team-member-role.entity.ts"],"sourcesContent":["import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';\nimport { RootConfig } from '../../root-config';\n\nexport async function factoryTeamMemberRole(): Promise<AXPEntity | null> {\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.teamMemberRole.name,\n title: '@organization-management:team-member-roles.entities.team-member-role.title',\n icon: 'fa-light fa-user-tag',\n formats: {\n individual: '@organization-management:team-member-roles.entities.team-member-role.title',\n plural: '@organization-management:team-member-roles.entities.team-member-role.plural',\n searchResult: { title: '{{ title }}', description: RootConfig.module.title },\n },\n groups: [{ id: 'basic-info', title: '@general:terms.interface.basic-info' }],\n properties: [\n {\n name: 'id',\n title: 'ID',\n groupId: 'basic-info',\n schema: { dataType: 'uuid', visible: false, nullable: false, readonly: true, unique: { enabled: true } },\n },\n {\n name: 'title',\n title: '@general:terms.common.title',\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.TextBox,\n },\n },\n validations: [{ rule: 'required' }],\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n },\n ],\n columns: [{ name: 'title' }],\n interfaces: {\n master: {\n create: {\n sections: [{ id: 'basic-info' }],\n properties: [\n {\n name: 'title',\n layout: {\n order: 1,\n positions: {\n sm: { colSpan: 12, order: 1 },\n md: { colSpan: 12, order: 1 },\n lg: { colSpan: 12, order: 1 },\n },\n },\n },\n ],\n },\n update: {\n sections: [{ id: 'basic-info' }],\n properties: [\n {\n name: 'title',\n layout: {\n order: 1,\n positions: {\n sm: { colSpan: 12, order: 1 },\n md: { colSpan: 12, order: 1 },\n lg: { colSpan: 12, order: 1 },\n },\n },\n },\n ],\n },\n single: {\n title: '{{title}}',\n sections: [{ id: 'basic-info' }],\n properties: [\n {\n name: 'title',\n layout: {\n order: 1,\n positions: {\n sm: { colSpan: 12, order: 1 },\n md: { colSpan: 12, order: 1 },\n lg: { colSpan: 12, order: 1 },\n },\n },\n },\n ],\n actions: [...entityMasterRecordActions()],\n },\n list: {\n actions: [...entityMasterCrudActions()],\n views: [createAllQueryView({ sorts: [{ name: 'title', dir: 'asc' }] })],\n },\n },\n },\n };\n\n return entityDef;\n}\n\n"],"names":[],"mappings":";;;;AAIO,eAAe,qBAAqB,GAAA;AACzC,IAAA,MAAM,SAAS,GAAc;AAC3B,QAAA,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAC9B,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,cAAc,CAAC,IAAI;AAC7C,QAAA,KAAK,EAAE,4EAA4E;AACnF,QAAA,IAAI,EAAE,sBAAsB;AAC5B,QAAA,OAAO,EAAE;AACP,YAAA,UAAU,EAAE,4EAA4E;AACxF,YAAA,MAAM,EAAE,6EAA6E;AACrF,YAAA,YAAY,EAAE,EAAE,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,UAAU,CAAC,MAAM,CAAC,KAAK,EAAE;AAC7E,SAAA;QACD,MAAM,EAAE,CAAC,EAAE,EAAE,EAAE,YAAY,EAAE,KAAK,EAAE,qCAAqC,EAAE,CAAC;AAC5E,QAAA,UAAU,EAAE;AACV,YAAA;AACE,gBAAA,IAAI,EAAE,IAAI;AACV,gBAAA,KAAK,EAAE,IAAI;AACX,gBAAA,OAAO,EAAE,YAAY;gBACrB,MAAM,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,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