@acorex-platform/module-organization-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 (106) hide show
  1. package/fesm2022/{acorex-platform-module-organization-management-client-acorex-platform-module-organization-management-client-C01dBcYi.mjs → acorex-platform-module-organization-management-client-acorex-platform-module-organization-management-client-UGWNdPxI.mjs} +15 -12
  2. package/fesm2022/acorex-platform-module-organization-management-client-acorex-platform-module-organization-management-client-UGWNdPxI.mjs.map +1 -0
  3. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-business-unit-type.mjs +318 -0
  4. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-business-unit-type.mjs.map +1 -0
  5. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-business-unit.mjs +516 -0
  6. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-business-unit.mjs.map +1 -0
  7. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-chart.mjs +314 -0
  8. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-chart.mjs.map +1 -0
  9. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-company.mjs +250 -0
  10. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-company.mjs.map +1 -0
  11. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-job-definition.mjs +439 -0
  12. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-job-definition.mjs.map +1 -0
  13. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-job-level.mjs +385 -0
  14. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-job-level.mjs.map +1 -0
  15. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-position.mjs +657 -0
  16. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-position.mjs.map +1 -0
  17. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-responsibility-level.mjs +248 -0
  18. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-responsibility-level.mjs.map +1 -0
  19. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-responsibility.mjs +317 -0
  20. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-responsibility.mjs.map +1 -0
  21. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-team-business-unit.mjs +413 -0
  22. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-team-business-unit.mjs.map +1 -0
  23. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-team-member-role.mjs +220 -0
  24. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-team-member-role.mjs.map +1 -0
  25. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-team-member.mjs +366 -0
  26. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-team-member.mjs.map +1 -0
  27. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-team.mjs +421 -0
  28. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-team.mjs.map +1 -0
  29. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-acorex-platform-module-organization-management-client-contracts-entity-catalog-xL4H41ft.mjs +146 -0
  30. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-acorex-platform-module-organization-management-client-contracts-entity-catalog-xL4H41ft.mjs.map +1 -0
  31. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-business-unit-type.entity-BE6ZOUYI.mjs +203 -0
  32. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-business-unit-type.entity-BE6ZOUYI.mjs.map +1 -0
  33. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-business-unit.entity-CzApxGMJ.mjs +401 -0
  34. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-business-unit.entity-CzApxGMJ.mjs.map +1 -0
  35. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-chart.entity-BWocZ2iP.mjs +199 -0
  36. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-chart.entity-BWocZ2iP.mjs.map +1 -0
  37. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-company.entity-tU-53b9G.mjs +135 -0
  38. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-company.entity-tU-53b9G.mjs.map +1 -0
  39. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-job-definition.entity-sOUJWK_4.mjs +324 -0
  40. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-job-definition.entity-sOUJWK_4.mjs.map +1 -0
  41. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-job-level.entity-C866Av4K.mjs +270 -0
  42. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-job-level.entity-C866Av4K.mjs.map +1 -0
  43. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-position.entity-DI5SQJdb.mjs +542 -0
  44. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-position.entity-DI5SQJdb.mjs.map +1 -0
  45. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-responsibility-level.entity-DHyK2SPK.mjs +133 -0
  46. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-responsibility-level.entity-DHyK2SPK.mjs.map +1 -0
  47. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-responsibility.entity-B3UAoNc6.mjs +202 -0
  48. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-responsibility.entity-B3UAoNc6.mjs.map +1 -0
  49. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-team-business-unit.entity-CCSV3xtX.mjs +298 -0
  50. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-team-business-unit.entity-CCSV3xtX.mjs.map +1 -0
  51. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-team-member-role.entity-vnO44D26.mjs +105 -0
  52. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-team-member-role.entity-vnO44D26.mjs.map +1 -0
  53. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-team-member.entity-j7Zu11Fo.mjs +251 -0
  54. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-team-member.entity-j7Zu11Fo.mjs.map +1 -0
  55. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-team.entity-BBdUYFU0.mjs +306 -0
  56. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-team.entity-BBdUYFU0.mjs.map +1 -0
  57. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog.mjs +2 -0
  58. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog.mjs.map +1 -0
  59. package/fesm2022/acorex-platform-module-organization-management-client-contracts.mjs +23 -5
  60. package/fesm2022/acorex-platform-module-organization-management-client-contracts.mjs.map +1 -1
  61. package/fesm2022/{acorex-platform-module-organization-management-client-job-definition-matrix-page.utils-DD3jLujN.mjs → acorex-platform-module-organization-management-client-job-definition-matrix-page.utils-CGRJXMOn.mjs} +3 -3
  62. package/fesm2022/acorex-platform-module-organization-management-client-job-definition-matrix-page.utils-CGRJXMOn.mjs.map +1 -0
  63. package/fesm2022/{acorex-platform-module-organization-management-client-job-definition-pages-component.provider-BNhXJfjr.mjs → acorex-platform-module-organization-management-client-job-definition-pages-component.provider-TIHOAeAI.mjs} +3 -3
  64. package/fesm2022/{acorex-platform-module-organization-management-client-job-definition-pages-component.provider-BNhXJfjr.mjs.map → acorex-platform-module-organization-management-client-job-definition-pages-component.provider-TIHOAeAI.mjs.map} +1 -1
  65. package/fesm2022/{acorex-platform-module-organization-management-client-job-definition-responsibilities-page.component-BlUzsSy3.mjs → acorex-platform-module-organization-management-client-job-definition-responsibilities-page.component-KwOQXdX0.mjs} +3 -3
  66. package/fesm2022/acorex-platform-module-organization-management-client-job-definition-responsibilities-page.component-KwOQXdX0.mjs.map +1 -0
  67. package/fesm2022/{acorex-platform-module-organization-management-client-job-definition-skills-page.component--pyAaXB4.mjs → acorex-platform-module-organization-management-client-job-definition-skills-page.component-bQOqP1Tx.mjs} +3 -3
  68. package/fesm2022/acorex-platform-module-organization-management-client-job-definition-skills-page.component-bQOqP1Tx.mjs.map +1 -0
  69. package/fesm2022/acorex-platform-module-organization-management-client-local-entities.mjs +41 -0
  70. package/fesm2022/acorex-platform-module-organization-management-client-local-entities.mjs.map +1 -0
  71. package/fesm2022/{acorex-platform-module-organization-management-client-org-chart-employee-flyout-contribution.provider-B-PC-9aB.mjs → acorex-platform-module-organization-management-client-org-chart-employee-flyout-contribution.provider-DZs4VB50.mjs} +2 -2
  72. package/fesm2022/{acorex-platform-module-organization-management-client-org-chart-employee-flyout-contribution.provider-B-PC-9aB.mjs.map → acorex-platform-module-organization-management-client-org-chart-employee-flyout-contribution.provider-DZs4VB50.mjs.map} +1 -1
  73. package/fesm2022/{acorex-platform-module-organization-management-client-org-chart-ux-node-contribution.provider-DB8ki5My.mjs → acorex-platform-module-organization-management-client-org-chart-ux-node-contribution.provider-ISEbvMkZ.mjs} +2 -2
  74. package/fesm2022/{acorex-platform-module-organization-management-client-org-chart-ux-node-contribution.provider-DB8ki5My.mjs.map → acorex-platform-module-organization-management-client-org-chart-ux-node-contribution.provider-ISEbvMkZ.mjs.map} +1 -1
  75. package/fesm2022/{acorex-platform-module-organization-management-client-org-chart.page-DlpHwt9h.mjs → acorex-platform-module-organization-management-client-org-chart.page-CMd5nTa7.mjs} +7 -7
  76. package/fesm2022/acorex-platform-module-organization-management-client-org-chart.page-CMd5nTa7.mjs.map +1 -0
  77. package/fesm2022/acorex-platform-module-organization-management-client-responsibilities-matrix-widget-column.component-C5H0kcVW.mjs +64 -0
  78. package/fesm2022/acorex-platform-module-organization-management-client-responsibilities-matrix-widget-column.component-C5H0kcVW.mjs.map +1 -0
  79. package/fesm2022/{acorex-platform-module-organization-management-client-responsibilities-matrix-widget-edit.component-DHmUxlnu.mjs → acorex-platform-module-organization-management-client-responsibilities-matrix-widget-edit.component-DmDQSgYC.mjs} +3 -3
  80. package/fesm2022/acorex-platform-module-organization-management-client-responsibilities-matrix-widget-edit.component-DmDQSgYC.mjs.map +1 -0
  81. package/fesm2022/{acorex-platform-module-organization-management-client-settings.provider-C2VaHJ4K.mjs → acorex-platform-module-organization-management-client-settings.provider-B3nDm32f.mjs} +17 -1
  82. package/fesm2022/{acorex-platform-module-organization-management-client-settings.provider-C2VaHJ4K.mjs.map → acorex-platform-module-organization-management-client-settings.provider-B3nDm32f.mjs.map} +1 -1
  83. package/fesm2022/acorex-platform-module-organization-management-client.mjs +1 -1
  84. package/package.json +62 -2
  85. package/types/acorex-platform-module-organization-management-client-contracts-entities-business-unit-type.d.ts +5 -0
  86. package/types/acorex-platform-module-organization-management-client-contracts-entities-business-unit.d.ts +5 -0
  87. package/types/acorex-platform-module-organization-management-client-contracts-entities-chart.d.ts +5 -0
  88. package/types/acorex-platform-module-organization-management-client-contracts-entities-company.d.ts +5 -0
  89. package/types/acorex-platform-module-organization-management-client-contracts-entities-job-definition.d.ts +5 -0
  90. package/types/acorex-platform-module-organization-management-client-contracts-entities-job-level.d.ts +5 -0
  91. package/types/acorex-platform-module-organization-management-client-contracts-entities-position.d.ts +5 -0
  92. package/types/acorex-platform-module-organization-management-client-contracts-entities-responsibility-level.d.ts +5 -0
  93. package/types/acorex-platform-module-organization-management-client-contracts-entities-responsibility.d.ts +5 -0
  94. package/types/acorex-platform-module-organization-management-client-contracts-entities-team-business-unit.d.ts +5 -0
  95. package/types/acorex-platform-module-organization-management-client-contracts-entities-team-member-role.d.ts +5 -0
  96. package/types/acorex-platform-module-organization-management-client-contracts-entities-team-member.d.ts +5 -0
  97. package/types/acorex-platform-module-organization-management-client-contracts-entities-team.d.ts +5 -0
  98. package/types/acorex-platform-module-organization-management-client-contracts-entity-catalog.d.ts +10 -0
  99. package/types/acorex-platform-module-organization-management-client-contracts.d.ts +13 -2
  100. package/types/acorex-platform-module-organization-management-client-local-entities.d.ts +12 -0
  101. package/fesm2022/acorex-platform-module-organization-management-client-acorex-platform-module-organization-management-client-C01dBcYi.mjs.map +0 -1
  102. package/fesm2022/acorex-platform-module-organization-management-client-job-definition-matrix-page.utils-DD3jLujN.mjs.map +0 -1
  103. package/fesm2022/acorex-platform-module-organization-management-client-job-definition-responsibilities-page.component-BlUzsSy3.mjs.map +0 -1
  104. package/fesm2022/acorex-platform-module-organization-management-client-job-definition-skills-page.component--pyAaXB4.mjs.map +0 -1
  105. package/fesm2022/acorex-platform-module-organization-management-client-org-chart.page-DlpHwt9h.mjs.map +0 -1
  106. package/fesm2022/acorex-platform-module-organization-management-client-responsibilities-matrix-widget-edit.component-DHmUxlnu.mjs.map +0 -1
@@ -0,0 +1,203 @@
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-xL4H41ft.mjs';
4
+
5
+ async function factoryBusinessUnitType() {
6
+ const entityDef = {
7
+ module: RootConfig.module.name,
8
+ name: RootConfig.entities.businessUnitType.name,
9
+ title: '@organization-management:business-unit-types.entities.business-unit-type.title',
10
+ icon: 'fa-light fa-tags',
11
+ formats: {
12
+ individual: '@organization-management:business-unit-types.entities.business-unit-type.title',
13
+ plural: '@organization-management:business-unit-types.entities.business-unit-type.plural',
14
+ searchResult: { title: '{{ title }}', description: RootConfig.module.title },
15
+ },
16
+ groups: [{ id: 'basic-info', title: '@general:terms.interface.basic-info' }],
17
+ plugins: [{ name: 'color' }, { name: 'icon' }],
18
+ properties: [
19
+ {
20
+ name: 'id',
21
+ title: 'ID',
22
+ groupId: 'basic-info',
23
+ schema: { dataType: 'uuid', visible: false, nullable: false, readonly: true, unique: { enabled: true } },
24
+ },
25
+ {
26
+ name: 'title',
27
+ title: '@general:terms.common.title',
28
+ groupId: 'basic-info',
29
+ schema: {
30
+ dataType: 'string',
31
+ interface: { type: AXPWidgetsList.Editors.TextBox },
32
+ },
33
+ validations: [{ rule: 'required' }],
34
+ },
35
+ {
36
+ name: 'isLocationBased',
37
+ title: '@organization-management:business-unit-types.entities.business-unit-type.fields.is-location-based.title',
38
+ groupId: 'basic-info',
39
+ schema: {
40
+ dataType: 'boolean',
41
+ interface: {
42
+ type: AXPWidgetsList.Editors.ToggleSwitch,
43
+ options: {
44
+ trulyText: '@general:terms.common.yes-no.yes',
45
+ falsyText: '@general:terms.common.yes-no.no',
46
+ },
47
+ },
48
+ defaultValue: false,
49
+ },
50
+ },
51
+ {
52
+ name: 'allowsDirectPositions',
53
+ title: '@organization-management:business-unit-types.entities.business-unit-type.fields.allows-direct-positions.title',
54
+ groupId: 'basic-info',
55
+ schema: {
56
+ dataType: 'boolean',
57
+ interface: {
58
+ type: AXPWidgetsList.Editors.ToggleSwitch,
59
+ options: {
60
+ trulyText: '@general:terms.common.yes-no.yes',
61
+ falsyText: '@general:terms.common.yes-no.no',
62
+ },
63
+ },
64
+ defaultValue: true,
65
+ },
66
+ },
67
+ ],
68
+ columns: [
69
+ { name: 'title' },
70
+ { name: 'isLocationBased' },
71
+ { name: 'allowsDirectPositions' },
72
+ { name: 'color' },
73
+ ],
74
+ interfaces: {
75
+ master: {
76
+ create: {
77
+ sections: [{ id: 'basic-info' }],
78
+ properties: [
79
+ {
80
+ name: 'title',
81
+ layout: {
82
+ order: 1,
83
+ positions: {
84
+ sm: { colSpan: 12, order: 1 },
85
+ md: { colSpan: 12, order: 1 },
86
+ lg: { colSpan: 12, order: 1 },
87
+ },
88
+ },
89
+ },
90
+ {
91
+ name: 'isLocationBased',
92
+ layout: {
93
+ order: 2,
94
+ positions: {
95
+ sm: { colSpan: 12, order: 2 },
96
+ md: { colSpan: 6, order: 2 },
97
+ lg: { colSpan: 6, order: 2 },
98
+ },
99
+ },
100
+ },
101
+ {
102
+ name: 'allowsDirectPositions',
103
+ layout: {
104
+ order: 3,
105
+ positions: {
106
+ sm: { colSpan: 12, order: 3 },
107
+ md: { colSpan: 6, order: 3 },
108
+ lg: { colSpan: 6, order: 3 },
109
+ },
110
+ },
111
+ },
112
+ ],
113
+ },
114
+ update: {
115
+ sections: [{ id: 'basic-info' }],
116
+ properties: [
117
+ {
118
+ name: 'title',
119
+ layout: {
120
+ order: 1,
121
+ positions: {
122
+ sm: { colSpan: 12, order: 1 },
123
+ md: { colSpan: 12, order: 1 },
124
+ lg: { colSpan: 12, order: 1 },
125
+ },
126
+ },
127
+ },
128
+ {
129
+ name: 'isLocationBased',
130
+ layout: {
131
+ order: 2,
132
+ positions: {
133
+ sm: { colSpan: 12, order: 2 },
134
+ md: { colSpan: 6, order: 2 },
135
+ lg: { colSpan: 6, order: 2 },
136
+ },
137
+ },
138
+ },
139
+ {
140
+ name: 'allowsDirectPositions',
141
+ layout: {
142
+ order: 3,
143
+ positions: {
144
+ sm: { colSpan: 12, order: 3 },
145
+ md: { colSpan: 6, order: 3 },
146
+ lg: { colSpan: 6, order: 3 },
147
+ },
148
+ },
149
+ },
150
+ ],
151
+ },
152
+ single: {
153
+ title: '{{title}}',
154
+ sections: [{ id: 'basic-info' }],
155
+ properties: [
156
+ {
157
+ name: 'title',
158
+ layout: {
159
+ order: 1,
160
+ positions: {
161
+ sm: { colSpan: 12, order: 1 },
162
+ md: { colSpan: 12, order: 1 },
163
+ lg: { colSpan: 12, order: 1 },
164
+ },
165
+ },
166
+ },
167
+ {
168
+ name: 'isLocationBased',
169
+ layout: {
170
+ order: 2,
171
+ positions: {
172
+ sm: { colSpan: 12, order: 2 },
173
+ md: { colSpan: 6, order: 2 },
174
+ lg: { colSpan: 6, order: 2 },
175
+ },
176
+ },
177
+ },
178
+ {
179
+ name: 'allowsDirectPositions',
180
+ layout: {
181
+ order: 3,
182
+ positions: {
183
+ sm: { colSpan: 12, order: 3 },
184
+ md: { colSpan: 6, order: 3 },
185
+ lg: { colSpan: 6, order: 3 },
186
+ },
187
+ },
188
+ },
189
+ ],
190
+ actions: [...entityMasterRecordActions()],
191
+ },
192
+ list: {
193
+ actions: [...entityMasterCrudActions()],
194
+ views: [createAllQueryView({ sorts: [{ name: 'title', dir: 'asc' }] })],
195
+ },
196
+ },
197
+ },
198
+ };
199
+ return entityDef;
200
+ }
201
+
202
+ export { factoryBusinessUnitType };
203
+ //# sourceMappingURL=acorex-platform-module-organization-management-client-contracts-entity-catalog-business-unit-type.entity-BE6ZOUYI.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-organization-management-client-contracts-entity-catalog-business-unit-type.entity-BE6ZOUYI.mjs","sources":["../../../../libs/modules/organization-management/contracts/src/entities/business-unit-type/business-unit-type.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 factoryBusinessUnitType(): Promise<AXPEntity | null> {\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.businessUnitType.name,\n title: '@organization-management:business-unit-types.entities.business-unit-type.title',\n icon: 'fa-light fa-tags',\n formats: {\n individual: '@organization-management:business-unit-types.entities.business-unit-type.title',\n plural: '@organization-management:business-unit-types.entities.business-unit-type.plural',\n searchResult: { title: '{{ title }}', description: RootConfig.module.title },\n },\n groups: [{ id: 'basic-info', title: '@general:terms.interface.basic-info' }],\n plugins: [{ name: 'color' }, { name: 'icon' }],\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: { type: AXPWidgetsList.Editors.TextBox },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'isLocationBased',\n title:\n '@organization-management:business-unit-types.entities.business-unit-type.fields.is-location-based.title',\n groupId: 'basic-info',\n schema: {\n dataType: 'boolean',\n interface: {\n type: AXPWidgetsList.Editors.ToggleSwitch,\n options: {\n trulyText: '@general:terms.common.yes-no.yes',\n falsyText: '@general:terms.common.yes-no.no',\n },\n },\n defaultValue: false,\n },\n },\n {\n name: 'allowsDirectPositions',\n title:\n '@organization-management:business-unit-types.entities.business-unit-type.fields.allows-direct-positions.title',\n groupId: 'basic-info',\n schema: {\n dataType: 'boolean',\n interface: {\n type: AXPWidgetsList.Editors.ToggleSwitch,\n options: {\n trulyText: '@general:terms.common.yes-no.yes',\n falsyText: '@general:terms.common.yes-no.no',\n },\n },\n defaultValue: true,\n },\n },\n ],\n columns: [\n { name: 'title' },\n { name: 'isLocationBased' },\n { name: 'allowsDirectPositions' },\n { name: 'color' },\n ],\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 name: 'isLocationBased',\n layout: {\n order: 2,\n positions: {\n sm: { colSpan: 12, order: 2 },\n md: { colSpan: 6, order: 2 },\n lg: { colSpan: 6, order: 2 },\n },\n },\n },\n {\n name: 'allowsDirectPositions',\n layout: {\n order: 3,\n positions: {\n sm: { colSpan: 12, order: 3 },\n md: { colSpan: 6, order: 3 },\n lg: { colSpan: 6, order: 3 },\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 name: 'isLocationBased',\n layout: {\n order: 2,\n positions: {\n sm: { colSpan: 12, order: 2 },\n md: { colSpan: 6, order: 2 },\n lg: { colSpan: 6, order: 2 },\n },\n },\n },\n {\n name: 'allowsDirectPositions',\n layout: {\n order: 3,\n positions: {\n sm: { colSpan: 12, order: 3 },\n md: { colSpan: 6, order: 3 },\n lg: { colSpan: 6, order: 3 },\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 name: 'isLocationBased',\n layout: {\n order: 2,\n positions: {\n sm: { colSpan: 12, order: 2 },\n md: { colSpan: 6, order: 2 },\n lg: { colSpan: 6, order: 2 },\n },\n },\n },\n {\n name: 'allowsDirectPositions',\n layout: {\n order: 3,\n positions: {\n sm: { colSpan: 12, order: 3 },\n md: { colSpan: 6, order: 3 },\n lg: { colSpan: 6, order: 3 },\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"],"names":[],"mappings":";;;;AAIO,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,kBAAkB;AACxB,QAAA,OAAO,EAAE;AACP,YAAA,UAAU,EAAE,gFAAgF;AAC5F,YAAA,MAAM,EAAE,iFAAiF;AACzF,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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orex-platform/framework-shared/core';
2
+ import { createAllQueryView, entityMasterCrudActions, entityMasterRecordActions, entityDetailsCrudActions, entityDetailsSimpleCondition } 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-xL4H41ft.mjs';
4
+
5
+ async function factoryBusinessUnit() {
6
+ const i18n = RootConfig.config.i18n;
7
+ const entityName = 'business-unit';
8
+ const entityDef = {
9
+ module: RootConfig.module.name,
10
+ name: RootConfig.entities.businessUnit.name,
11
+ title: '@organization-management:business-units.entities.business-unit.title',
12
+ icon: 'fa-light fa-building-columns',
13
+ parentKey: 'parentId',
14
+ plugins: [
15
+ { name: 'identifier', options: { field: 'code', rule: 'organization-business-unit-code' } },
16
+ { name: 'unique-fields', options: { fields: 'code', scope: 'global' } },
17
+ { name: 'reports' },
18
+ ],
19
+ formats: {
20
+ individual: '@organization-management:business-units.entities.business-unit.title',
21
+ plural: '@organization-management:business-units.entities.business-unit.plural',
22
+ searchResult: { title: '{{ title }}', description: RootConfig.module.title },
23
+ },
24
+ relatedEntities: [
25
+ {
26
+ entity: `${RootConfig.module.name}.${RootConfig.entities.teamBusinessUnit.name}`,
27
+ title: '@organization-management:business-units.related-entities.teams.title',
28
+ columns: ['teamId', 'isPrimary', 'effectiveFrom', 'effectiveTo'],
29
+ conditions: [entityDetailsSimpleCondition('businessUnitId')],
30
+ actions: [...entityDetailsCrudActions('businessUnitId')],
31
+ layout: { type: 'page-list' },
32
+ excludeProperties: ['businessUnitId'],
33
+ },
34
+ ],
35
+ groups: [
36
+ { id: 'basic-info', title: '@general:terms.interface.basic-info' },
37
+ {
38
+ id: 'classification',
39
+ title: '@organization-management:business-units.entities.business-unit.groups.classification',
40
+ },
41
+ {
42
+ id: 'positions',
43
+ title: '@organization-management:business-units.entities.business-unit.fields.positions.title',
44
+ },
45
+ ],
46
+ properties: [
47
+ {
48
+ name: 'id',
49
+ title: 'ID',
50
+ groupId: 'basic-info',
51
+ schema: { dataType: 'uuid', visible: false, nullable: false, readonly: true, unique: { enabled: true } },
52
+ },
53
+ {
54
+ name: 'code',
55
+ title: '@organization-management:business-units.entities.business-unit.fields.code.title',
56
+ groupId: 'basic-info',
57
+ options: {
58
+ sort: { enabled: true },
59
+ filter: { advance: { enabled: true }, inline: { enabled: true } },
60
+ },
61
+ schema: {
62
+ dataType: 'string',
63
+ interface: {
64
+ type: AXPWidgetsList.Editors.TextBox,
65
+ options: {
66
+ placeholder: '@organization-management:business-units.entities.business-unit.fields.code.placeholder',
67
+ },
68
+ },
69
+ },
70
+ validations: [{ rule: 'required' }],
71
+ },
72
+ {
73
+ name: 'title',
74
+ title: '@general:terms.common.title',
75
+ groupId: 'basic-info',
76
+ schema: {
77
+ dataType: 'string',
78
+ interface: { type: AXPWidgetsList.Editors.TextBox },
79
+ },
80
+ validations: [{ rule: 'required' }],
81
+ },
82
+ {
83
+ name: 'description',
84
+ title: '@general:terms.common.description',
85
+ groupId: 'basic-info',
86
+ schema: {
87
+ dataType: 'string',
88
+ interface: { type: AXPWidgetsList.Editors.LargeTextBox },
89
+ },
90
+ },
91
+ {
92
+ name: 'parentId',
93
+ title: '@general:terms.classification.parent',
94
+ groupId: 'basic-info',
95
+ schema: {
96
+ dataType: 'string',
97
+ interface: {
98
+ type: AXPWidgetsList.Editors.LookupBox,
99
+ options: {
100
+ entity: `${RootConfig.module.name}.BusinessUnit`,
101
+ textField: 'title',
102
+ valueField: 'id',
103
+ expose: [
104
+ { source: 'id', target: 'parent.id' },
105
+ { source: 'title', target: 'parent.title' },
106
+ ],
107
+ },
108
+ },
109
+ },
110
+ },
111
+ {
112
+ name: 'typeId',
113
+ title: '@general:terms.common.type',
114
+ groupId: 'classification',
115
+ schema: {
116
+ dataType: 'string',
117
+ interface: {
118
+ type: AXPWidgetsList.Editors.LookupBox,
119
+ options: {
120
+ entity: `${RootConfig.module.name}.BusinessUnitType`,
121
+ textField: 'title',
122
+ valueField: 'id',
123
+ look: 'select',
124
+ expose: [
125
+ { source: 'id', target: 'type.id' },
126
+ { source: 'title', target: 'type.title' },
127
+ { source: 'isLocationBased', target: 'type.isLocationBased' },
128
+ { source: 'allowsDirectPositions', target: 'type.allowsDirectPositions' },
129
+ ],
130
+ },
131
+ },
132
+ },
133
+ validations: [{ rule: 'required' }],
134
+ },
135
+ {
136
+ name: 'geographicRegionId',
137
+ title: '@location-management:geographic-regions.entities.geographic-region.title',
138
+ groupId: 'classification',
139
+ schema: {
140
+ dataType: 'string',
141
+ visible: `{{ context.eval('type.isLocationBased') }}`,
142
+ interface: {
143
+ type: AXPWidgetsList.Editors.LookupBox,
144
+ options: {
145
+ entity: `LocationManagement.GeographicRegion`,
146
+ textField: 'title',
147
+ valueField: 'id',
148
+ look: 'lookup',
149
+ expose: [
150
+ { source: 'id', target: 'geographicRegion.id' },
151
+ { source: 'title', target: 'geographicRegion.title' },
152
+ ],
153
+ },
154
+ },
155
+ },
156
+ },
157
+ {
158
+ name: 'positionIds',
159
+ title: '@general:terms.organizations.positions',
160
+ groupId: 'positions',
161
+ schema: {
162
+ visible: `{{ context.eval('type.allowsDirectPositions') !== false }}`,
163
+ dataType: 'string',
164
+ interface: {
165
+ type: AXPWidgetsList.Editors.LookupBox,
166
+ options: {
167
+ entity: `${RootConfig.module.name}.${RootConfig.entities.position.name}`,
168
+ textField: 'title',
169
+ valueField: 'id',
170
+ look: 'select',
171
+ multiple: true,
172
+ expose: [
173
+ { source: 'id', target: 'positions.{id}' },
174
+ { source: 'title', target: 'positions.{title}' },
175
+ ],
176
+ },
177
+ },
178
+ },
179
+ },
180
+ {
181
+ name: 'headPositionId',
182
+ title: '@organization-management:business-units.entities.business-unit.fields.head-position.title',
183
+ groupId: 'positions',
184
+ schema: {
185
+ visible: `{{ context.eval('type.allowsDirectPositions') !== false }}`,
186
+ dataType: 'string',
187
+ interface: {
188
+ type: AXPWidgetsList.Editors.LookupBox,
189
+ options: {
190
+ entity: `${RootConfig.module.name}.${RootConfig.entities.position.name}`,
191
+ textField: 'title',
192
+ valueField: 'id',
193
+ look: 'select',
194
+ expose: [
195
+ { source: 'id', target: 'headPosition.id' },
196
+ { source: 'title', target: 'headPosition.title' },
197
+ ],
198
+ filter: {
199
+ logic: 'and',
200
+ filters: [
201
+ {
202
+ field: 'id',
203
+ operator: { type: 'in' },
204
+ value: '{{ context.eval("positionIds") }}',
205
+ },
206
+ {
207
+ field: 'isManager',
208
+ operator: { type: 'equal' },
209
+ value: true,
210
+ },
211
+ ],
212
+ },
213
+ },
214
+ triggers: [{ event: "{{ events.context('positionIds') }}", action: `{{ widget.refresh() }}` }],
215
+ },
216
+ },
217
+ },
218
+ ],
219
+ columns: [
220
+ { name: 'code' },
221
+ { name: 'title' },
222
+ { name: 'typeId', options: { dataPath: 'type.title' } },
223
+ { name: 'geographicRegionId', options: { dataPath: 'geographicRegion.title' } },
224
+ { name: 'headPositionId', options: { dataPath: 'headPosition.title' } },
225
+ { name: 'positionIds', options: { dataPath: 'positions' } },
226
+ ],
227
+ interfaces: {
228
+ master: {
229
+ create: {
230
+ sections: [
231
+ { id: 'basic-info', order: 1 },
232
+ { id: 'classification', order: 2 },
233
+ {
234
+ id: 'positions',
235
+ order: 3,
236
+ layout: {
237
+ visible: `{{ context.eval('type.allowsDirectPositions') !== false }}`,
238
+ },
239
+ },
240
+ ],
241
+ properties: [
242
+ {
243
+ name: 'title',
244
+ layout: {
245
+ order: 1,
246
+ positions: {
247
+ sm: { colSpan: 12, order: 1 },
248
+ md: { colSpan: 8, order: 1 },
249
+ lg: { colSpan: 8, order: 1 },
250
+ },
251
+ },
252
+ },
253
+ {
254
+ name: 'code',
255
+ layout: {
256
+ order: 2,
257
+ positions: {
258
+ sm: { colSpan: 12, order: 2 },
259
+ md: { colSpan: 4, order: 2 },
260
+ lg: { colSpan: 4, order: 2 },
261
+ },
262
+ },
263
+ },
264
+ {
265
+ name: 'description',
266
+ layout: {
267
+ order: 3,
268
+ positions: {
269
+ sm: { colSpan: 12, order: 3 },
270
+ md: { colSpan: 12, order: 3 },
271
+ lg: { colSpan: 12, order: 3 },
272
+ },
273
+ },
274
+ },
275
+ { name: 'parentId', layout: { positions: { lg: { colSpan: 6 } } } },
276
+ { name: 'typeId', layout: { positions: { lg: { colSpan: 6 } } } },
277
+ { name: 'geographicRegionId', layout: { positions: { lg: { colSpan: 6 } } } },
278
+ { name: 'positionIds', layout: { positions: { lg: { colSpan: 12 } } } },
279
+ { name: 'headPositionId', layout: { positions: { lg: { colSpan: 12 } } } },
280
+ ],
281
+ },
282
+ update: {
283
+ sections: [
284
+ { id: 'basic-info', order: 1 },
285
+ { id: 'classification', order: 2 },
286
+ {
287
+ id: 'positions',
288
+ order: 3,
289
+ layout: {
290
+ visible: `{{ context.eval('type.allowsDirectPositions') !== false }}`,
291
+ },
292
+ },
293
+ ],
294
+ properties: [
295
+ {
296
+ name: 'title',
297
+ layout: {
298
+ order: 1,
299
+ positions: {
300
+ sm: { colSpan: 12, order: 1 },
301
+ md: { colSpan: 8, order: 1 },
302
+ lg: { colSpan: 8, order: 1 },
303
+ },
304
+ },
305
+ },
306
+ {
307
+ name: 'code',
308
+ layout: {
309
+ order: 2,
310
+ positions: {
311
+ sm: { colSpan: 12, order: 2 },
312
+ md: { colSpan: 4, order: 2 },
313
+ lg: { colSpan: 4, order: 2 },
314
+ },
315
+ },
316
+ },
317
+ {
318
+ name: 'description',
319
+ layout: {
320
+ order: 3,
321
+ positions: {
322
+ sm: { colSpan: 12, order: 3 },
323
+ md: { colSpan: 12, order: 3 },
324
+ lg: { colSpan: 12, order: 3 },
325
+ },
326
+ },
327
+ },
328
+ { name: 'parentId', layout: { positions: { lg: { colSpan: 6 } } } },
329
+ { name: 'typeId', layout: { positions: { lg: { colSpan: 6 } } } },
330
+ { name: 'geographicRegionId', layout: { positions: { lg: { colSpan: 6 } } } },
331
+ { name: 'positionIds', layout: { positions: { lg: { colSpan: 12 } } } },
332
+ { name: 'headPositionId', layout: { positions: { lg: { colSpan: 12 } } } },
333
+ ],
334
+ },
335
+ single: {
336
+ title: '{{title}}',
337
+ sections: [
338
+ { id: 'basic-info', order: 1 },
339
+ { id: 'classification', order: 2 },
340
+ {
341
+ id: 'positions',
342
+ order: 3,
343
+ layout: {
344
+ visible: `{{ context.eval('type.allowsDirectPositions') !== false }}`,
345
+ },
346
+ },
347
+ ],
348
+ properties: [
349
+ {
350
+ name: 'title',
351
+ layout: {
352
+ order: 1,
353
+ positions: {
354
+ sm: { colSpan: 12, order: 1 },
355
+ md: { colSpan: 8, order: 1 },
356
+ lg: { colSpan: 8, order: 1 },
357
+ },
358
+ },
359
+ },
360
+ {
361
+ name: 'code',
362
+ layout: {
363
+ order: 2,
364
+ positions: {
365
+ sm: { colSpan: 12, order: 2 },
366
+ md: { colSpan: 4, order: 2 },
367
+ lg: { colSpan: 4, order: 2 },
368
+ },
369
+ },
370
+ },
371
+ {
372
+ name: 'description',
373
+ layout: {
374
+ order: 3,
375
+ positions: {
376
+ sm: { colSpan: 12, order: 3 },
377
+ md: { colSpan: 12, order: 3 },
378
+ lg: { colSpan: 12, order: 3 },
379
+ },
380
+ },
381
+ },
382
+ { name: 'parentId', layout: { positions: { lg: { colSpan: 6 } } } },
383
+ { name: 'typeId', layout: { positions: { lg: { colSpan: 6 } } } },
384
+ { name: 'geographicRegionId', layout: { positions: { lg: { colSpan: 6 } } } },
385
+ { name: 'positionIds', layout: { positions: { lg: { colSpan: 12 } } } },
386
+ { name: 'headPositionId', layout: { positions: { lg: { colSpan: 12 } } } },
387
+ ],
388
+ actions: [...entityMasterRecordActions()],
389
+ },
390
+ list: {
391
+ actions: [...entityMasterCrudActions()],
392
+ views: [createAllQueryView({ sorts: [{ name: 'title', dir: 'asc' }] })],
393
+ },
394
+ },
395
+ },
396
+ };
397
+ return entityDef;
398
+ }
399
+
400
+ export { factoryBusinessUnit };
401
+ //# sourceMappingURL=acorex-platform-module-organization-management-client-contracts-entity-catalog-business-unit.entity-CzApxGMJ.mjs.map