@acorex-platform/module-organization-management-client 0.0.21

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 (53) hide show
  1. package/fesm2022/acorex-platform-module-organization-management-client-acorex-platform-module-organization-management-client-Dn8Ss1nL.mjs +433 -0
  2. package/fesm2022/acorex-platform-module-organization-management-client-acorex-platform-module-organization-management-client-Dn8Ss1nL.mjs.map +1 -0
  3. package/fesm2022/acorex-platform-module-organization-management-client-add-business-unit-to-business-unit.command-CA2uZQyC.mjs +161 -0
  4. package/fesm2022/acorex-platform-module-organization-management-client-add-business-unit-to-business-unit.command-CA2uZQyC.mjs.map +1 -0
  5. package/fesm2022/acorex-platform-module-organization-management-client-add-position-to-business-unit.command-F7jD3jKs.mjs +137 -0
  6. package/fesm2022/acorex-platform-module-organization-management-client-add-position-to-business-unit.command-F7jD3jKs.mjs.map +1 -0
  7. package/fesm2022/acorex-platform-module-organization-management-client-add-team-to-business-unit.command-BLQFjhS5.mjs +127 -0
  8. package/fesm2022/acorex-platform-module-organization-management-client-add-team-to-business-unit.command-BLQFjhS5.mjs.map +1 -0
  9. package/fesm2022/acorex-platform-module-organization-management-client-contracts.mjs +468 -0
  10. package/fesm2022/acorex-platform-module-organization-management-client-contracts.mjs.map +1 -0
  11. package/fesm2022/acorex-platform-module-organization-management-client-feature-definition.provider-BQKtvXOM.mjs +19 -0
  12. package/fesm2022/acorex-platform-module-organization-management-client-feature-definition.provider-BQKtvXOM.mjs.map +1 -0
  13. package/fesm2022/acorex-platform-module-organization-management-client-generate-org-chart.command-DJnFJKuo.mjs +91 -0
  14. package/fesm2022/acorex-platform-module-organization-management-client-generate-org-chart.command-DJnFJKuo.mjs.map +1 -0
  15. package/fesm2022/acorex-platform-module-organization-management-client-job-definition-matrix-page.utils-DD3jLujN.mjs +61 -0
  16. package/fesm2022/acorex-platform-module-organization-management-client-job-definition-matrix-page.utils-DD3jLujN.mjs.map +1 -0
  17. package/fesm2022/acorex-platform-module-organization-management-client-job-definition-pages-component.provider-BNhXJfjr.mjs +28 -0
  18. package/fesm2022/acorex-platform-module-organization-management-client-job-definition-pages-component.provider-BNhXJfjr.mjs.map +1 -0
  19. package/fesm2022/acorex-platform-module-organization-management-client-job-definition-responsibilities-page.component-BlUzsSy3.mjs +237 -0
  20. package/fesm2022/acorex-platform-module-organization-management-client-job-definition-responsibilities-page.component-BlUzsSy3.mjs.map +1 -0
  21. package/fesm2022/acorex-platform-module-organization-management-client-job-definition-skills-page.component--pyAaXB4.mjs +233 -0
  22. package/fesm2022/acorex-platform-module-organization-management-client-job-definition-skills-page.component--pyAaXB4.mjs.map +1 -0
  23. package/fesm2022/acorex-platform-module-organization-management-client-menu.provider-BgRoEC48.mjs +175 -0
  24. package/fesm2022/acorex-platform-module-organization-management-client-menu.provider-BgRoEC48.mjs.map +1 -0
  25. package/fesm2022/acorex-platform-module-organization-management-client-org-chart-default-node-contribution.provider-BQ0ihb43.mjs +229 -0
  26. package/fesm2022/acorex-platform-module-organization-management-client-org-chart-default-node-contribution.provider-BQ0ihb43.mjs.map +1 -0
  27. package/fesm2022/acorex-platform-module-organization-management-client-org-chart-employee-flyout-contribution.provider-Bz8nVm04.mjs +179 -0
  28. package/fesm2022/acorex-platform-module-organization-management-client-org-chart-employee-flyout-contribution.provider-Bz8nVm04.mjs.map +1 -0
  29. package/fesm2022/acorex-platform-module-organization-management-client-org-chart-position-employee-node-contribution.provider-BTicXn9n.mjs +168 -0
  30. package/fesm2022/acorex-platform-module-organization-management-client-org-chart-position-employee-node-contribution.provider-BTicXn9n.mjs.map +1 -0
  31. package/fesm2022/acorex-platform-module-organization-management-client-org-chart-ux-node-contribution.provider-C5TItnOp.mjs +338 -0
  32. package/fesm2022/acorex-platform-module-organization-management-client-org-chart-ux-node-contribution.provider-C5TItnOp.mjs.map +1 -0
  33. package/fesm2022/acorex-platform-module-organization-management-client-org-chart.page-g_3oPPH0.mjs +3744 -0
  34. package/fesm2022/acorex-platform-module-organization-management-client-org-chart.page-g_3oPPH0.mjs.map +1 -0
  35. package/fesm2022/acorex-platform-module-organization-management-client-permission-definition.provider-CiCdTBGo.mjs +43 -0
  36. package/fesm2022/acorex-platform-module-organization-management-client-permission-definition.provider-CiCdTBGo.mjs.map +1 -0
  37. package/fesm2022/acorex-platform-module-organization-management-client-remove-position-from-business-unit.command-BFQVTpfy.mjs +91 -0
  38. package/fesm2022/acorex-platform-module-organization-management-client-remove-position-from-business-unit.command-BFQVTpfy.mjs.map +1 -0
  39. package/fesm2022/acorex-platform-module-organization-management-client-replace-position-assignee.command-CSgERqLG.mjs +64 -0
  40. package/fesm2022/acorex-platform-module-organization-management-client-replace-position-assignee.command-CSgERqLG.mjs.map +1 -0
  41. package/fesm2022/acorex-platform-module-organization-management-client-responsibilities-matrix-widget-edit.component-DHmUxlnu.mjs +143 -0
  42. package/fesm2022/acorex-platform-module-organization-management-client-responsibilities-matrix-widget-edit.component-DHmUxlnu.mjs.map +1 -0
  43. package/fesm2022/acorex-platform-module-organization-management-client-responsibilities-matrix-widget-view.component-BkLZhXhM.mjs +65 -0
  44. package/fesm2022/acorex-platform-module-organization-management-client-responsibilities-matrix-widget-view.component-BkLZhXhM.mjs.map +1 -0
  45. package/fesm2022/acorex-platform-module-organization-management-client-responsibilities-matrix.component-DqO6xE2p.mjs +400 -0
  46. package/fesm2022/acorex-platform-module-organization-management-client-responsibilities-matrix.component-DqO6xE2p.mjs.map +1 -0
  47. package/fesm2022/acorex-platform-module-organization-management-client-settings.provider-Dnrkq9Ku.mjs +432 -0
  48. package/fesm2022/acorex-platform-module-organization-management-client-settings.provider-Dnrkq9Ku.mjs.map +1 -0
  49. package/fesm2022/acorex-platform-module-organization-management-client.mjs +2 -0
  50. package/fesm2022/acorex-platform-module-organization-management-client.mjs.map +1 -0
  51. package/package.json +28 -0
  52. package/types/acorex-platform-module-organization-management-client-contracts.d.ts +501 -0
  53. package/types/acorex-platform-module-organization-management-client.d.ts +273 -0
@@ -0,0 +1,433 @@
1
+ import * as i0 from '@angular/core';
2
+ import { InjectionToken, signal, Injectable, inject, NgModule } from '@angular/core';
3
+ import { AXPSettingsService, AXP_PROTECTED_ROUTE_GUARDS, AXP_MENU_PROVIDER, AXP_SETTING_DEFINITION_PROVIDER } from '@acorex-platform/framework-client/common';
4
+ import { AXP_ENTITY_CONFIG_TOKEN } from '@acorex-platform/framework-client/layout/entity';
5
+ import { provideLazyProvider, AXP_MODULE_MANIFEST_PROVIDER, AXP_FEATURE_DEFINITION_PROVIDER } from '@acorex-platform/framework-client/core';
6
+ import { AXPPlatformScope } from '@acorex-platform/framework-shared/core';
7
+ import { AXPOrganizationManagementSettings, RootConfig, AXMOrganizationManagementCommandKeys } from '@acorex-platform/module-organization-management-client/contracts';
8
+ import { AXP_PERMISSION_DEFINITION_PROVIDER } from '@acorex-platform/framework-client/auth';
9
+ import { AXP_PAGE_COMPONENT_PROVIDER } from '@acorex-platform/framework-client/layout/components';
10
+ import { AXP_WIDGETS_EDITOR_CATEGORY, AXPWidgetCoreModule, AXP_WIDGET_DEFINITION_PROVIDER } from '@acorex-platform/framework-client/layout/widget-core';
11
+ import { CommonModule } from '@angular/common';
12
+ import { ROUTES } from '@angular/router';
13
+ import { AXPWidgetGroupEnum } from '@acorex-platform/framework-shared/widget-core';
14
+ import { AXP_NAME_PROPERTY, AXP_DATA_PATH_PROPERTY, AXP_LABEL_PROPERTY, AXP_READONLY_PROPERTY, AXP_DISABLED_PROPERTY } from '@acorex-platform/framework-client/layout/widgets';
15
+ import { provideCommand } from '@acorex-platform/framework-client/runtime';
16
+
17
+ /**
18
+ * Chart nodes use {@link AXPMultiLanguageString} for every user-visible string on the card
19
+ * (`title`, `subtitle`, `description`) so stored chart JSON and the UI respect locale.
20
+ *
21
+ * - Prefer **locale maps** `{ 'en-US': '…', 'fa-IR': '…' }` (see `createMultiLanguageString` in platform core).
22
+ * - A **plain string** is allowed as a narrow fallback; the resolver treats it as the value for any locale.
23
+ * - **`metadata`** fields that are shown in templates must also be `AXPMultiLanguageString` (or plain string
24
+ * with the same rules), not English-only literals baked into feature code.
25
+ */
26
+ var AXMOrgChartNodeType;
27
+ (function (AXMOrgChartNodeType) {
28
+ AXMOrgChartNodeType["Company"] = "Company";
29
+ AXMOrgChartNodeType["BusinessUnit"] = "BusinessUnit";
30
+ AXMOrgChartNodeType["Position"] = "Position";
31
+ AXMOrgChartNodeType["Employee"] = "Employee";
32
+ })(AXMOrgChartNodeType || (AXMOrgChartNodeType = {}));
33
+ // Minimal high-level categories for rendering/legend only
34
+ var AXMOrgChartCategory;
35
+ (function (AXMOrgChartCategory) {
36
+ AXMOrgChartCategory["Company"] = "Company";
37
+ AXMOrgChartCategory["BusinessUnit"] = "BusinessUnit";
38
+ AXMOrgChartCategory["Position"] = "Position";
39
+ AXMOrgChartCategory["Employee"] = "Employee";
40
+ })(AXMOrgChartCategory || (AXMOrgChartCategory = {}));
41
+
42
+ //#region ---- Imports ----
43
+ //#endregion
44
+ const HCM_EMPLOYEE_SOURCE = 'HumanCapitalManagement.Employee';
45
+ //#region ---- Resolve flyout employee ----
46
+ /**
47
+ * Employee id for org chart **Employee** flyout actions: card occupant, unit head, top role, or an `employee` node.
48
+ * Returns undefined when the seat is vacant or no person is linked.
49
+ */
50
+ function axmResolveOrgChartFlyoutEmployeeId(context) {
51
+ if (context.nodeKind === 'employee') {
52
+ const entity = context.node.entity;
53
+ if (entity?.id != null && axmIsEmployeeEntityType(entity.type)) {
54
+ const id = String(entity.id).trim();
55
+ return id.length > 0 ? id : undefined;
56
+ }
57
+ return undefined;
58
+ }
59
+ if (context.nodeKind === 'company-root') {
60
+ const topRole = context.node.metadata?.['topRole'];
61
+ if (!topRole || topRole['vacant'] === true) {
62
+ return undefined;
63
+ }
64
+ const raw = topRole['employeeId'];
65
+ return typeof raw === 'string' && raw.trim().length > 0 ? raw.trim() : undefined;
66
+ }
67
+ if (context.nodeKind === 'business-unit') {
68
+ const unitHead = context.node.metadata?.['unitHead'];
69
+ if (!unitHead || unitHead['vacant'] === true) {
70
+ return undefined;
71
+ }
72
+ const raw = unitHead['employeeId'];
73
+ return typeof raw === 'string' && raw.trim().length > 0 ? raw.trim() : undefined;
74
+ }
75
+ if (context.nodeKind === 'position') {
76
+ if (context.node.metadata?.['vacant'] === true) {
77
+ return undefined;
78
+ }
79
+ const occ = context.node.metadata?.['occupant'];
80
+ const raw = occ?.['employeeId'];
81
+ return typeof raw === 'string' && raw.trim().length > 0 ? raw.trim() : undefined;
82
+ }
83
+ return undefined;
84
+ }
85
+ function axmIsEmployeeEntityType(entityType) {
86
+ if (!entityType || typeof entityType !== 'string') {
87
+ return false;
88
+ }
89
+ return entityType === HCM_EMPLOYEE_SOURCE || entityType.endsWith('.Employee');
90
+ }
91
+ //#endregion
92
+
93
+ //#region ---- Org chart: employee flyout (assigned person + employee nodes) ----
94
+ /**
95
+ * Stable {@link AXMOrgChartNodeMenuAction.submenuGroupId} for actions that target the person on a card
96
+ * (chief executive, unit head, seat occupant) or the {@link AXMOrgChartNodeKind} `employee` node itself.
97
+ * Private chat/email move here from the Communication group.
98
+ */
99
+ const AXM_ORG_CHART_EMPLOYEE_SUBMENU_GROUP_ID = 'organization-management.org-chart.employee-submenu';
100
+ /**
101
+ * i18n key: `organization-chart.employee-submenu.title` in `organization-management` assets.
102
+ */
103
+ const AXM_ORG_CHART_EMPLOYEE_SUBMENU_TITLE_I18N_KEY = '@organization-management:organization-chart.employee-submenu.title';
104
+ const AXM_ORG_CHART_EMPLOYEE_SUBMENU_ICON = 'fa-light fa-user';
105
+ //#endregion
106
+
107
+ //#region ---- Org chart: view / layout flyout ----
108
+ /**
109
+ * Stable {@link AXMOrgChartNodeMenuAction.submenuGroupId} for panel toggle and branch expand/collapse.
110
+ */
111
+ const AXM_ORG_CHART_LAYOUT_SUBMENU_GROUP_ID = 'organization-management.org-chart.layout-submenu';
112
+ /**
113
+ * i18n key: `organization-chart.layout-submenu.title` in `organization-management` assets.
114
+ */
115
+ const AXM_ORG_CHART_LAYOUT_SUBMENU_TITLE_I18N_KEY = '@organization-management:organization-chart.layout-submenu.title';
116
+ const AXM_ORG_CHART_LAYOUT_SUBMENU_ICON = 'fa-light fa-sidebar';
117
+ //#endregion
118
+
119
+ //#region ---- Org chart: shared communication flyout ----
120
+ /**
121
+ * Stable {@link AXMOrgChartNodeMenuAction.submenuGroupId} so chat and email extensions merge
122
+ * their org-chart context actions under one parent flyout.
123
+ */
124
+ const AXM_ORG_CHART_COMMUNICATION_SUBMENU_GROUP_ID = 'organization-management.org-chart.communication-submenu';
125
+ /**
126
+ * i18n key for the flyout parent label (`apps/.../organization-management.json`:
127
+ * `organization-chart.communication-submenu.title`).
128
+ */
129
+ const AXM_ORG_CHART_COMMUNICATION_SUBMENU_TITLE_I18N_KEY = '@organization-management:organization-chart.communication-submenu.title';
130
+ /** Parent row icon when actions from multiple modules supply the same group id. */
131
+ const AXM_ORG_CHART_COMMUNICATION_SUBMENU_ICON = 'fa-light fa-comments';
132
+ //#endregion
133
+
134
+ //#region ---- Imports ----
135
+ //#endregion
136
+ //#region ---- Tokens ----
137
+ const AXM_ORG_CHART_NODE_CONTRIBUTOR = new InjectionToken('AXM_ORG_CHART_NODE_CONTRIBUTOR');
138
+ //#endregion
139
+
140
+ /**
141
+ * Broadcasts when persisted org chart structure was rebuilt (server regen or optional client listener template).
142
+ * The chart page reloads from storage when {@link structureDataRevision} increments.
143
+ */
144
+ class AXMOrgChartStructureRefreshHub {
145
+ constructor() {
146
+ this.revision = signal(0, /* @ts-ignore */
147
+ ...(ngDevMode ? [{ debugName: "revision" }] : /* istanbul ignore next */ []));
148
+ this.structureDataRevision = this.revision.asReadonly();
149
+ }
150
+ notifyStructureRebuilt() {
151
+ this.revision.update((v) => v + 1);
152
+ }
153
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXMOrgChartStructureRefreshHub, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
154
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXMOrgChartStructureRefreshHub, providedIn: 'root' }); }
155
+ }
156
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXMOrgChartStructureRefreshHub, decorators: [{
157
+ type: Injectable,
158
+ args: [{ providedIn: 'root' }]
159
+ }] });
160
+
161
+ function parseOrgChartMode(value) {
162
+ if (value === 'structure' ||
163
+ value === 'location' ||
164
+ value === 'reporting' ||
165
+ value === 'positionHierarchy') {
166
+ return value;
167
+ }
168
+ return undefined;
169
+ }
170
+ /**
171
+ * Normalizes vacant-toggle values from persisted settings or UI widgets (some paths use strings).
172
+ */
173
+ function normalizeVacantLeafSeatsSetting(value) {
174
+ if (value === true || value === 1) {
175
+ return true;
176
+ }
177
+ if (value === false || value === 0) {
178
+ return false;
179
+ }
180
+ if (typeof value === 'string') {
181
+ const s = value.trim().toLowerCase();
182
+ if (s === 'true' || s === '1' || s === 'yes' || s === 'on') {
183
+ return true;
184
+ }
185
+ if (s === 'false' || s === '0' || s === 'no' || s === 'off') {
186
+ return false;
187
+ }
188
+ }
189
+ return undefined;
190
+ }
191
+
192
+ /**
193
+ * Loads user chart UI preferences before {@link AXMOrgChartPage} is created so the first render matches saved state.
194
+ */
195
+ const orgChartUiPrefsResolver = async () => {
196
+ const settingsService = inject(AXPSettingsService);
197
+ await settingsService.load();
198
+ const userScope = settingsService.scope(AXPPlatformScope.User);
199
+ const modeRaw = await userScope.get(AXPOrganizationManagementSettings.HierarchyChartMode);
200
+ const vacantRaw = await userScope.get(AXPOrganizationManagementSettings.HierarchyChartShowVacantLeafSeats);
201
+ const prefs = {};
202
+ const mode = parseOrgChartMode(modeRaw);
203
+ if (mode !== undefined) {
204
+ prefs.selectedMode = mode;
205
+ }
206
+ const vacant = normalizeVacantLeafSeatsSetting(vacantRaw);
207
+ if (vacant !== undefined) {
208
+ prefs.showVacantLeafSeats = vacant;
209
+ }
210
+ return prefs;
211
+ };
212
+
213
+ //#region ---- Imports ----
214
+ //#endregion
215
+ //#region ---- Manifest Definition ----
216
+ /**
217
+ * Organization Management Module Manifest.
218
+ * Defines module metadata, features, and provider references.
219
+ */
220
+ const OrganizationManagementManifest = {
221
+ name: RootConfig.module.name,
222
+ version: '1.0.0',
223
+ title: RootConfig.module.title,
224
+ icon: RootConfig.module.icon,
225
+ i18n: RootConfig.config.i18n,
226
+ type: 'platform',
227
+ domain: 'platform',
228
+ // LearningManagement is optional (job-definition skills page). Do not list it as a
229
+ // hard dependency — feature resolution would auto-enable Learning for every tenant
230
+ // that has OrganizationManagement (e.g. Safetyminder without Learning).
231
+ };
232
+ //#endregion
233
+
234
+ const AXMResponsibilitiesMatrixWidget = {
235
+ name: 'responsibilities-matrix-editor',
236
+ title: 'Responsibilities Matrix',
237
+ categories: AXP_WIDGETS_EDITOR_CATEGORY,
238
+ groups: [AXPWidgetGroupEnum.UtilityWidget],
239
+ description: 'Matrix widget for managing responsibility levels',
240
+ icon: 'fa-light fa-table',
241
+ type: 'editor',
242
+ options: {
243
+ needLabel: false,
244
+ },
245
+ properties: [
246
+ AXP_NAME_PROPERTY,
247
+ AXP_DATA_PATH_PROPERTY,
248
+ AXP_LABEL_PROPERTY,
249
+ AXP_READONLY_PROPERTY,
250
+ AXP_DISABLED_PROPERTY,
251
+ ],
252
+ components: {
253
+ view: {
254
+ component: () => import('./acorex-platform-module-organization-management-client-responsibilities-matrix-widget-view.component-BkLZhXhM.mjs').then((c) => c.AXMResponsibilitiesMatrixWidgetViewComponent),
255
+ },
256
+ edit: {
257
+ component: () => import('./acorex-platform-module-organization-management-client-responsibilities-matrix-widget-edit.component-DHmUxlnu.mjs').then((c) => c.AXMResponsibilitiesMatrixWidgetEditComponent),
258
+ },
259
+ },
260
+ };
261
+
262
+ //#endregion
263
+ //#region ---- Organization Management Widgets Provider ----
264
+ class AXMOrganizationManagementWidgetsProvider {
265
+ getWidgets() {
266
+ return [AXMResponsibilitiesMatrixWidget];
267
+ }
268
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXMOrganizationManagementWidgetsProvider, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
269
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXMOrganizationManagementWidgetsProvider }); }
270
+ }
271
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXMOrganizationManagementWidgetsProvider, decorators: [{
272
+ type: Injectable
273
+ }] });
274
+
275
+ //#region ---- Imports ----
276
+ //#endregion
277
+ //#region ---- NgModule ----
278
+ /**
279
+ * Registers organization chart node contributors and chart-scoped commands for Organization Management.
280
+ */
281
+ class AXMOrganizationChartModule {
282
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXMOrganizationChartModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
283
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.8", ngImport: i0, type: AXMOrganizationChartModule }); }
284
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXMOrganizationChartModule, providers: [
285
+ // AXM_ORG_CHART_EVENT_LISTENER_GENERATE_PROVIDER,
286
+ // AXM_ORG_CHART_EVENT_LISTENER_RELOAD_PROVIDER,
287
+ provideLazyProvider(AXM_ORG_CHART_NODE_CONTRIBUTOR, () => import('./acorex-platform-module-organization-management-client-org-chart-default-node-contribution.provider-BQ0ihb43.mjs').then((m) => m.AXMOrgChartDefaultNodeContributionProvider)),
288
+ provideLazyProvider(AXM_ORG_CHART_NODE_CONTRIBUTOR, () => import('./acorex-platform-module-organization-management-client-org-chart-position-employee-node-contribution.provider-BTicXn9n.mjs').then((m) => m.AXMOrgChartPositionEmployeeNodeContributionProvider)),
289
+ provideLazyProvider(AXM_ORG_CHART_NODE_CONTRIBUTOR, () => import('./acorex-platform-module-organization-management-client-org-chart-employee-flyout-contribution.provider-Bz8nVm04.mjs').then((m) => m.AXMOrgChartEmployeeFlyoutContributionProvider)),
290
+ provideLazyProvider(AXM_ORG_CHART_NODE_CONTRIBUTOR, () => import('./acorex-platform-module-organization-management-client-org-chart-ux-node-contribution.provider-C5TItnOp.mjs').then((m) => m.AXMOrgChartUxNodeContributionProvider)),
291
+ provideCommand(AXMOrganizationManagementCommandKeys.OrganizationChart.Generate, () => import('./acorex-platform-module-organization-management-client-generate-org-chart.command-DJnFJKuo.mjs').then((m) => m.AXMGenerateOrgChartCommand)),
292
+ provideCommand(AXMOrganizationManagementCommandKeys.OrganizationChart.AddPositionToBusinessUnit, () => import('./acorex-platform-module-organization-management-client-add-position-to-business-unit.command-F7jD3jKs.mjs').then((m) => m.AXMAddPositionToBusinessUnitCommand)),
293
+ provideCommand(AXMOrganizationManagementCommandKeys.OrganizationChart.AddBusinessUnitToBusinessUnit, () => import('./acorex-platform-module-organization-management-client-add-business-unit-to-business-unit.command-CA2uZQyC.mjs').then((m) => m.AXMAddBusinessUnitToBusinessUnitCommand)),
294
+ provideCommand(AXMOrganizationManagementCommandKeys.OrganizationChart.AddTeamToBusinessUnit, () => import('./acorex-platform-module-organization-management-client-add-team-to-business-unit.command-BLQFjhS5.mjs').then((m) => m.AXMAddTeamToBusinessUnitCommand)),
295
+ provideCommand(AXMOrganizationManagementCommandKeys.OrganizationChart.RemovePositionFromBusinessUnit, () => import('./acorex-platform-module-organization-management-client-remove-position-from-business-unit.command-BFQVTpfy.mjs').then((m) => m.AXMRemovePositionFromBusinessUnitCommand)),
296
+ provideCommand(AXMOrganizationManagementCommandKeys.OrganizationChart.ReplacePositionAssignee, () => import('./acorex-platform-module-organization-management-client-replace-position-assignee.command-CSgERqLG.mjs').then((m) => m.AXMReplacePositionAssigneeCommand)),
297
+ ] }); }
298
+ }
299
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXMOrganizationChartModule, decorators: [{
300
+ type: NgModule,
301
+ args: [{
302
+ providers: [
303
+ // AXM_ORG_CHART_EVENT_LISTENER_GENERATE_PROVIDER,
304
+ // AXM_ORG_CHART_EVENT_LISTENER_RELOAD_PROVIDER,
305
+ provideLazyProvider(AXM_ORG_CHART_NODE_CONTRIBUTOR, () => import('./acorex-platform-module-organization-management-client-org-chart-default-node-contribution.provider-BQ0ihb43.mjs').then((m) => m.AXMOrgChartDefaultNodeContributionProvider)),
306
+ provideLazyProvider(AXM_ORG_CHART_NODE_CONTRIBUTOR, () => import('./acorex-platform-module-organization-management-client-org-chart-position-employee-node-contribution.provider-BTicXn9n.mjs').then((m) => m.AXMOrgChartPositionEmployeeNodeContributionProvider)),
307
+ provideLazyProvider(AXM_ORG_CHART_NODE_CONTRIBUTOR, () => import('./acorex-platform-module-organization-management-client-org-chart-employee-flyout-contribution.provider-Bz8nVm04.mjs').then((m) => m.AXMOrgChartEmployeeFlyoutContributionProvider)),
308
+ provideLazyProvider(AXM_ORG_CHART_NODE_CONTRIBUTOR, () => import('./acorex-platform-module-organization-management-client-org-chart-ux-node-contribution.provider-C5TItnOp.mjs').then((m) => m.AXMOrgChartUxNodeContributionProvider)),
309
+ provideCommand(AXMOrganizationManagementCommandKeys.OrganizationChart.Generate, () => import('./acorex-platform-module-organization-management-client-generate-org-chart.command-DJnFJKuo.mjs').then((m) => m.AXMGenerateOrgChartCommand)),
310
+ provideCommand(AXMOrganizationManagementCommandKeys.OrganizationChart.AddPositionToBusinessUnit, () => import('./acorex-platform-module-organization-management-client-add-position-to-business-unit.command-F7jD3jKs.mjs').then((m) => m.AXMAddPositionToBusinessUnitCommand)),
311
+ provideCommand(AXMOrganizationManagementCommandKeys.OrganizationChart.AddBusinessUnitToBusinessUnit, () => import('./acorex-platform-module-organization-management-client-add-business-unit-to-business-unit.command-CA2uZQyC.mjs').then((m) => m.AXMAddBusinessUnitToBusinessUnitCommand)),
312
+ provideCommand(AXMOrganizationManagementCommandKeys.OrganizationChart.AddTeamToBusinessUnit, () => import('./acorex-platform-module-organization-management-client-add-team-to-business-unit.command-BLQFjhS5.mjs').then((m) => m.AXMAddTeamToBusinessUnitCommand)),
313
+ provideCommand(AXMOrganizationManagementCommandKeys.OrganizationChart.RemovePositionFromBusinessUnit, () => import('./acorex-platform-module-organization-management-client-remove-position-from-business-unit.command-BFQVTpfy.mjs').then((m) => m.AXMRemovePositionFromBusinessUnitCommand)),
314
+ provideCommand(AXMOrganizationManagementCommandKeys.OrganizationChart.ReplacePositionAssignee, () => import('./acorex-platform-module-organization-management-client-replace-position-assignee.command-CSgERqLG.mjs').then((m) => m.AXMReplacePositionAssigneeCommand)),
315
+ ],
316
+ }]
317
+ }] });
318
+
319
+ function routesFacory() {
320
+ const config = inject(AXP_ENTITY_CONFIG_TOKEN);
321
+ const routes = [
322
+ {
323
+ loadComponent: () => {
324
+ return config.viewers.root();
325
+ },
326
+ path: ':app/organization',
327
+ canActivate: [...AXP_PROTECTED_ROUTE_GUARDS],
328
+ data: { rootLayout: true },
329
+ children: [
330
+ {
331
+ path: 'chart',
332
+ resolve: { orgChartUi: orgChartUiPrefsResolver },
333
+ loadComponent: () => import('./acorex-platform-module-organization-management-client-org-chart.page-g_3oPPH0.mjs').then((c) => c.AXMOrgChartPage),
334
+ },
335
+ ],
336
+ },
337
+ ];
338
+ return routes;
339
+ }
340
+ function routesFactory() {
341
+ const config = inject(AXP_ENTITY_CONFIG_TOKEN);
342
+ return {
343
+ path: ':app/organization',
344
+ loadComponent: () => {
345
+ return config.viewers.root();
346
+ },
347
+ data: { rootLayout: true },
348
+ children: [
349
+ {
350
+ path: 'chart',
351
+ resolve: { orgChartUi: orgChartUiPrefsResolver },
352
+ loadComponent: () => import('./acorex-platform-module-organization-management-client-org-chart.page-g_3oPPH0.mjs').then((c) => c.AXMOrgChartPage),
353
+ },
354
+ ],
355
+ };
356
+ }
357
+ class AXMOrganizationManagementModule {
358
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXMOrganizationManagementModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
359
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.8", ngImport: i0, type: AXMOrganizationManagementModule, imports: [CommonModule,
360
+ AXPWidgetCoreModule,
361
+ AXMOrganizationChartModule] }); }
362
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXMOrganizationManagementModule, providers: [
363
+ // Module-specific providers (not part of manifest system)
364
+ {
365
+ provide: ROUTES,
366
+ multi: true,
367
+ useFactory: routesFacory,
368
+ },
369
+ // Module Manifest Provider
370
+ {
371
+ provide: AXP_MODULE_MANIFEST_PROVIDER,
372
+ useValue: OrganizationManagementManifest,
373
+ multi: true,
374
+ },
375
+ provideLazyProvider(AXP_PERMISSION_DEFINITION_PROVIDER, () => import('./acorex-platform-module-organization-management-client-permission-definition.provider-CiCdTBGo.mjs').then((m) => m.AXMPermissionDefinitionProvider)),
376
+ provideLazyProvider(AXP_MENU_PROVIDER, () => import('./acorex-platform-module-organization-management-client-menu.provider-BgRoEC48.mjs').then((m) => m.AXMMenuProvider)),
377
+ provideLazyProvider(AXP_FEATURE_DEFINITION_PROVIDER, () => import('./acorex-platform-module-organization-management-client-feature-definition.provider-BQKtvXOM.mjs').then((m) => m.AXPOrganizationManagementFeatureDefinitionProvider)),
378
+ provideLazyProvider(AXP_PAGE_COMPONENT_PROVIDER, () => import('./acorex-platform-module-organization-management-client-job-definition-pages-component.provider-BNhXJfjr.mjs').then((m) => m.AXMJobDefinitionPagesComponentProvider)),
379
+ provideLazyProvider(AXP_SETTING_DEFINITION_PROVIDER, () => import('./acorex-platform-module-organization-management-client-settings.provider-Dnrkq9Ku.mjs').then((m) => m.AXMSettingProvider)),
380
+ // Widgets must register eagerly: lazy registration can resolve after entity forms bind,
381
+ // so module editors like responsibilities-matrix-editor would not be found (blank UI).
382
+ {
383
+ provide: AXP_WIDGET_DEFINITION_PROVIDER,
384
+ useClass: AXMOrganizationManagementWidgetsProvider,
385
+ multi: true,
386
+ },
387
+ ], imports: [CommonModule,
388
+ AXPWidgetCoreModule,
389
+ AXMOrganizationChartModule] }); }
390
+ }
391
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXMOrganizationManagementModule, decorators: [{
392
+ type: NgModule,
393
+ args: [{
394
+ imports: [
395
+ CommonModule,
396
+ AXPWidgetCoreModule,
397
+ AXMOrganizationChartModule,
398
+ ],
399
+ providers: [
400
+ // Module-specific providers (not part of manifest system)
401
+ {
402
+ provide: ROUTES,
403
+ multi: true,
404
+ useFactory: routesFacory,
405
+ },
406
+ // Module Manifest Provider
407
+ {
408
+ provide: AXP_MODULE_MANIFEST_PROVIDER,
409
+ useValue: OrganizationManagementManifest,
410
+ multi: true,
411
+ },
412
+ provideLazyProvider(AXP_PERMISSION_DEFINITION_PROVIDER, () => import('./acorex-platform-module-organization-management-client-permission-definition.provider-CiCdTBGo.mjs').then((m) => m.AXMPermissionDefinitionProvider)),
413
+ provideLazyProvider(AXP_MENU_PROVIDER, () => import('./acorex-platform-module-organization-management-client-menu.provider-BgRoEC48.mjs').then((m) => m.AXMMenuProvider)),
414
+ provideLazyProvider(AXP_FEATURE_DEFINITION_PROVIDER, () => import('./acorex-platform-module-organization-management-client-feature-definition.provider-BQKtvXOM.mjs').then((m) => m.AXPOrganizationManagementFeatureDefinitionProvider)),
415
+ provideLazyProvider(AXP_PAGE_COMPONENT_PROVIDER, () => import('./acorex-platform-module-organization-management-client-job-definition-pages-component.provider-BNhXJfjr.mjs').then((m) => m.AXMJobDefinitionPagesComponentProvider)),
416
+ provideLazyProvider(AXP_SETTING_DEFINITION_PROVIDER, () => import('./acorex-platform-module-organization-management-client-settings.provider-Dnrkq9Ku.mjs').then((m) => m.AXMSettingProvider)),
417
+ // Widgets must register eagerly: lazy registration can resolve after entity forms bind,
418
+ // so module editors like responsibilities-matrix-editor would not be found (blank UI).
419
+ {
420
+ provide: AXP_WIDGET_DEFINITION_PROVIDER,
421
+ useClass: AXMOrganizationManagementWidgetsProvider,
422
+ multi: true,
423
+ },
424
+ ],
425
+ }]
426
+ }] });
427
+
428
+ /**
429
+ * Generated bundle index. Do not edit.
430
+ */
431
+
432
+ export { AXMOrgChartNodeType as A, AXM_ORG_CHART_NODE_CONTRIBUTOR as a, AXMOrgChartStructureRefreshHub as b, AXMOrgChartCategory as c, AXM_ORG_CHART_EMPLOYEE_SUBMENU_GROUP_ID as d, axmResolveOrgChartFlyoutEmployeeId as e, AXM_ORG_CHART_EMPLOYEE_SUBMENU_ICON as f, AXM_ORG_CHART_EMPLOYEE_SUBMENU_TITLE_I18N_KEY as g, AXM_ORG_CHART_LAYOUT_SUBMENU_ICON as h, AXM_ORG_CHART_LAYOUT_SUBMENU_TITLE_I18N_KEY as i, AXM_ORG_CHART_LAYOUT_SUBMENU_GROUP_ID as j, AXMOrganizationManagementModule as k, AXM_ORG_CHART_COMMUNICATION_SUBMENU_GROUP_ID as l, AXM_ORG_CHART_COMMUNICATION_SUBMENU_ICON as m, normalizeVacantLeafSeatsSetting as n, AXM_ORG_CHART_COMMUNICATION_SUBMENU_TITLE_I18N_KEY as o, parseOrgChartMode as p };
433
+ //# sourceMappingURL=acorex-platform-module-organization-management-client-acorex-platform-module-organization-management-client-Dn8Ss1nL.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-organization-management-client-acorex-platform-module-organization-management-client-Dn8Ss1nL.mjs","sources":["../../../../libs/modules/organization-management/client/src/lib/features/organization-chart/model/org-chart.type.ts","../../../../libs/modules/organization-management/client/src/lib/features/organization-chart/utils/org-chart-resolve-flyout-employee-id.util.ts","../../../../libs/modules/organization-management/client/src/lib/features/organization-chart/constants/org-chart-employee-submenu.const.ts","../../../../libs/modules/organization-management/client/src/lib/features/organization-chart/constants/org-chart-layout-submenu.const.ts","../../../../libs/modules/organization-management/client/src/lib/features/organization-chart/constants/org-chart-communication-submenu.const.ts","../../../../libs/modules/organization-management/client/src/lib/features/organization-chart/tokens/org-chart-node-contribution.token.ts","../../../../libs/modules/organization-management/client/src/lib/features/organization-chart/model/org-chart-structure-refresh.hub.ts","../../../../libs/modules/organization-management/client/src/lib/features/organization-chart/ui/org-chart-user-ui.helper.ts","../../../../libs/modules/organization-management/client/src/lib/features/organization-chart/ui/org-chart-ui.resolver.ts","../../../../libs/modules/organization-management/client/src/lib/manifest.ts","../../../../libs/modules/organization-management/client/src/lib/features/responsibilities-matrix/responsibilities-matrix-widget.config.ts","../../../../libs/modules/organization-management/client/src/lib/widget-definition.provider.ts","../../../../libs/modules/organization-management/client/src/lib/features/organization-chart/organization-chart.module.ts","../../../../libs/modules/organization-management/client/src/lib/organization-management.module.ts","../../../../libs/modules/organization-management/client/src/acorex-platform-module-organization-management-client.ts"],"sourcesContent":["/**\n * Chart node data types for organization chart.\n */\nimport type { AXPEntityReference, AXPMultiLanguageString } from '@acorex-platform/framework-shared/core';\n\n/**\n * Chart nodes use {@link AXPMultiLanguageString} for every user-visible string on the card\n * (`title`, `subtitle`, `description`) so stored chart JSON and the UI respect locale.\n *\n * - Prefer **locale maps** `{ 'en-US': '…', 'fa-IR': '…' }` (see `createMultiLanguageString` in platform core).\n * - A **plain string** is allowed as a narrow fallback; the resolver treats it as the value for any locale.\n * - **`metadata`** fields that are shown in templates must also be `AXPMultiLanguageString` (or plain string\n * with the same rules), not English-only literals baked into feature code.\n */\nexport enum AXMOrgChartNodeType {\n Company = 'Company',\n BusinessUnit = 'BusinessUnit',\n Position = 'Position',\n Employee = 'Employee',\n}\n\n/** Card layout for organizational (and compatible geographic) charts — see README merging strategy. */\nexport type AXMOrgChartCardTemplate =\n | 'merged-executive'\n | 'merged-unit'\n | 'merged-manager'\n | 'position-ic'\n | 'employee-card'\n | 'compact';\n\n/** Structured head / CEO block for merged cards; `positionTitle` is always localized. */\nexport interface AXMOrgChartMergedRoleBlock {\n positionTitle: AXPMultiLanguageString;\n positionId?: string;\n employeeName?: string;\n employeeId?: string;\n vacant: boolean;\n}\n\n// Minimal high-level categories for rendering/legend only\nexport enum AXMOrgChartCategory {\n Company = 'Company',\n BusinessUnit = 'BusinessUnit',\n Position = 'Position',\n Employee = 'Employee',\n}\n\n/** User-selectable hierarchy chart view in the organization chart page. */\nexport type OrgChartMode = 'location' | 'structure' | 'reporting' | 'positionHierarchy';\n\nexport interface AXMOrganizationNode {\n id: string; // Unique identifier for the node\n /** Primary label; must be multi-language when content is not a proper name. */\n title: AXPMultiLanguageString;\n /** Secondary line (e.g. head summary); use locale map when mixing labels and entity titles. */\n subtitle?: AXPMultiLanguageString;\n /** Body / mission text. */\n description?: AXPMultiLanguageString;\n isExpanded?: boolean; // Add this property\n children?: AXMOrganizationNode[];\n icon?: string;\n type?: AXMOrgChartNodeType; // Type of the node\n parentId?: string | null; // ID of the parent node (null for root)\n entity?: AXPEntityReference;\n /** Rich card data; any **display** field here should use `AXPMultiLanguageString` like the core node fields. */\n metadata?: Record<string, any>;\n}\n\n/**\n * Pill badge on org chart node cards (icon + label). {@link title} is translated in the template.\n */\nexport interface AXMOrgChartNodeBadgeItem {\n /** Font Awesome class segment (e.g. `fa-light fa-building`). */\n icon: string;\n title: AXPMultiLanguageString;\n}\n\n/**\n * Footer metric cell: icon, numeric or short value, and translated label.\n */\nexport interface AXMOrgChartNodeFooterMetric {\n icon: string;\n /** Plain display value (formatted number or short text). */\n value: string;\n title: AXPMultiLanguageString;\n}\n","//#region ---- Imports ----\n\nimport { AXMOrgChartNodeContributionContext } from '../tokens/org-chart-node-contribution.token';\n\n//#endregion\n\nconst HCM_EMPLOYEE_SOURCE = 'HumanCapitalManagement.Employee';\n\n//#region ---- Resolve flyout employee ----\n\n/**\n * Employee id for org chart **Employee** flyout actions: card occupant, unit head, top role, or an `employee` node.\n * Returns undefined when the seat is vacant or no person is linked.\n */\nexport function axmResolveOrgChartFlyoutEmployeeId(\n context: AXMOrgChartNodeContributionContext,\n): string | undefined {\n if (context.nodeKind === 'employee') {\n const entity = context.node.entity;\n if (entity?.id != null && axmIsEmployeeEntityType(entity.type)) {\n const id = String(entity.id).trim();\n return id.length > 0 ? id : undefined;\n }\n return undefined;\n }\n\n if (context.nodeKind === 'company-root') {\n const topRole = context.node.metadata?.['topRole'] as Record<string, unknown> | undefined;\n if (!topRole || topRole['vacant'] === true) {\n return undefined;\n }\n const raw = topRole['employeeId'];\n return typeof raw === 'string' && raw.trim().length > 0 ? raw.trim() : undefined;\n }\n\n if (context.nodeKind === 'business-unit') {\n const unitHead = context.node.metadata?.['unitHead'] as Record<string, unknown> | undefined;\n if (!unitHead || unitHead['vacant'] === true) {\n return undefined;\n }\n const raw = unitHead['employeeId'];\n return typeof raw === 'string' && raw.trim().length > 0 ? raw.trim() : undefined;\n }\n\n if (context.nodeKind === 'position') {\n if (context.node.metadata?.['vacant'] === true) {\n return undefined;\n }\n const occ = context.node.metadata?.['occupant'] as Record<string, unknown> | undefined;\n const raw = occ?.['employeeId'];\n return typeof raw === 'string' && raw.trim().length > 0 ? raw.trim() : undefined;\n }\n\n return undefined;\n}\n\nfunction axmIsEmployeeEntityType(entityType: string | undefined): boolean {\n if (!entityType || typeof entityType !== 'string') {\n return false;\n }\n return entityType === HCM_EMPLOYEE_SOURCE || entityType.endsWith('.Employee');\n}\n\n//#endregion\n","//#region ---- Org chart: employee flyout (assigned person + employee nodes) ----\n\n/**\n * Stable {@link AXMOrgChartNodeMenuAction.submenuGroupId} for actions that target the person on a card\n * (chief executive, unit head, seat occupant) or the {@link AXMOrgChartNodeKind} `employee` node itself.\n * Private chat/email move here from the Communication group.\n */\nexport const AXM_ORG_CHART_EMPLOYEE_SUBMENU_GROUP_ID =\n 'organization-management.org-chart.employee-submenu' as const;\n\n/**\n * i18n key: `organization-chart.employee-submenu.title` in `organization-management` assets.\n */\nexport const AXM_ORG_CHART_EMPLOYEE_SUBMENU_TITLE_I18N_KEY =\n '@organization-management:organization-chart.employee-submenu.title' as const;\n\nexport const AXM_ORG_CHART_EMPLOYEE_SUBMENU_ICON = 'fa-light fa-user' as const;\n\n//#endregion\n","//#region ---- Org chart: view / layout flyout ----\n\n/**\n * Stable {@link AXMOrgChartNodeMenuAction.submenuGroupId} for panel toggle and branch expand/collapse.\n */\nexport const AXM_ORG_CHART_LAYOUT_SUBMENU_GROUP_ID =\n 'organization-management.org-chart.layout-submenu' as const;\n\n/**\n * i18n key: `organization-chart.layout-submenu.title` in `organization-management` assets.\n */\nexport const AXM_ORG_CHART_LAYOUT_SUBMENU_TITLE_I18N_KEY =\n '@organization-management:organization-chart.layout-submenu.title' as const;\n\nexport const AXM_ORG_CHART_LAYOUT_SUBMENU_ICON = 'fa-light fa-sidebar' as const;\n\n//#endregion\n","//#region ---- Org chart: shared communication flyout ----\n\n/**\n * Stable {@link AXMOrgChartNodeMenuAction.submenuGroupId} so chat and email extensions merge\n * their org-chart context actions under one parent flyout.\n */\nexport const AXM_ORG_CHART_COMMUNICATION_SUBMENU_GROUP_ID =\n 'organization-management.org-chart.communication-submenu' as const;\n\n/**\n * i18n key for the flyout parent label (`apps/.../organization-management.json`:\n * `organization-chart.communication-submenu.title`).\n */\nexport const AXM_ORG_CHART_COMMUNICATION_SUBMENU_TITLE_I18N_KEY =\n '@organization-management:organization-chart.communication-submenu.title' as const;\n\n/** Parent row icon when actions from multiple modules supply the same group id. */\nexport const AXM_ORG_CHART_COMMUNICATION_SUBMENU_ICON = 'fa-light fa-comments' as const;\n\n//#endregion\n","//#region ---- Imports ----\n\nimport { AXStyleColorType } from '@acorex/cdk/common';\nimport { AXPMultiLanguageString } from '@acorex-platform/framework-shared/core';\nimport { InjectionToken } from '@angular/core';\nimport type { AXMOrgChartHostApi } from './org-chart-host.token';\nimport { AXMOrganizationNode } from '../model/org-chart.type';\n\n//#endregion\n\n//#region ---- Types ----\n\nexport type AXMOrgChartNodeKind = 'company-root' | 'business-unit' | 'position' | 'employee' | 'other';\n\n/** Section separator for org chart context menu rows built from {@link AXMOrgChartNodeMenuAction}. */\nexport type AXMOrgChartNodeMenuBreak = 'before' | 'after' | 'both';\n\nexport interface AXMOrgChartNodeContributionContext {\n node: AXMOrganizationNode;\n nodeKind: AXMOrgChartNodeKind;\n selectedMode: 'location' | 'structure' | 'reporting' | 'positionHierarchy';\n refreshChart: () => Promise<void>;\n /** Page host (detail panel, branch expand/collapse, selection). */\n host: AXMOrgChartHostApi;\n}\n\nexport interface AXMOrgChartNodeMenuAction {\n id: string;\n /** i18n key (`@scope:...`) or {@link AXPMultiLanguageString} locale map (`ax-menu-item` pipes `translate` without forwarding params — use maps for interpolated copy). */\n title: string | AXPMultiLanguageString;\n /** Interpolation helper for contributors; the org chart host does not pipe params into menu `translate` (use `title` maps). */\n titleParams?: Record<string, string | number>;\n icon?: string;\n color?: AXStyleColorType;\n order?: number;\n disabled?: boolean;\n /**\n * Section separator for this row (and for `submenuGroupId` buckets: `before` / `after` / `both` also move the\n * parent flyout's separator relative to siblings). `before` is implemented by setting `AXMenuItem.break` on the\n * **previous** sibling at the same level (no-op when first).\n */\n break?: AXMOrgChartNodeMenuBreak;\n /**\n * Adds a separator after this row. Applies at any menu level (including root when a `submenuGroupId` flyout is\n * flattened, e.g. Employee actions on an employee node). Does not set the parent bucket's trailing break; use\n * {@link break} `after` / `both` on a member when the parent flyout row should also end a section.\n */\n submenuSectionBreak?: boolean;\n /**\n * When true, nested under the chart **Add …** submenu (business unit kinds, add position, and similar).\n */\n nestedInAddFlyout?: boolean;\n /**\n * Optional flyout: actions that share the same `submenuGroupId` render as children of one parent row.\n * Use the same `submenuGroupTitle` for every member; `submenuGroupIcon` may be set on any member (first wins).\n * On grouped members: {@link break} `after` / `both` adds a line inside the flyout below that child and sets the\n * parent row's section break after the flyout; `before` / `both` on any member adds a line before the parent row\n * (previous top-level sibling gets `break`). Use {@link submenuSectionBreak} for a separator after that child\n * without affecting the parent bucket's trailing break.\n * Cross-module chat + email on the org chart should use the communication constants in\n * `org-chart-communication-submenu.const.ts` (`AXM_ORG_CHART_COMMUNICATION_SUBMENU_GROUP_ID`, title key, icon).\n */\n submenuGroupId?: string;\n submenuGroupTitle?: string | AXPMultiLanguageString;\n submenuGroupIcon?: string;\n execute: (context: AXMOrgChartNodeContributionContext) => Promise<void>;\n}\n\nexport interface AXMOrgChartNodeInfoContribution {\n id: string;\n title: AXPMultiLanguageString;\n order?: number;\n load: (context: AXMOrgChartNodeContributionContext) => Promise<unknown>;\n}\n\nexport interface AXMOrgChartNodeContributionProvider {\n getMenuActions(context: AXMOrgChartNodeContributionContext): Promise<AXMOrgChartNodeMenuAction[]>;\n getInfoContributions?(context: AXMOrgChartNodeContributionContext): Promise<AXMOrgChartNodeInfoContribution[]>;\n}\n\n/**\n * One multi-provider slot: an eager instance or a promise from a lazy provider factory (`provideLazyProvider`).\n */\nexport type AXMOrgChartNodeContributorRef =\n | AXMOrgChartNodeContributionProvider\n | Promise<AXMOrgChartNodeContributionProvider>;\n\n//#endregion\n\n//#region ---- Tokens ----\n\nexport const AXM_ORG_CHART_NODE_CONTRIBUTOR = new InjectionToken<AXMOrgChartNodeContributorRef>(\n 'AXM_ORG_CHART_NODE_CONTRIBUTOR',\n);\n\n//#endregion\n","import { Injectable, signal } from '@angular/core';\n\n/**\n * Broadcasts when persisted org chart structure was rebuilt (server regen or optional client listener template).\n * The chart page reloads from storage when {@link structureDataRevision} increments.\n */\n@Injectable({ providedIn: 'root' })\nexport class AXMOrgChartStructureRefreshHub {\n private readonly revision = signal(0);\n\n readonly structureDataRevision = this.revision.asReadonly();\n\n notifyStructureRebuilt(): void {\n this.revision.update((v) => v + 1);\n }\n}\n","import type { OrgChartMode } from '../model/org-chart.type';\n\n/**\n * Chart mode + vacant-seat visibility restored from user settings (route resolver or post-load hydrate).\n */\nexport interface OrgChartHydratedUiPrefs {\n selectedMode?: OrgChartMode;\n showVacantLeafSeats?: boolean;\n}\n\nexport function parseOrgChartMode(value: unknown): OrgChartMode | undefined {\n if (\n value === 'structure' ||\n value === 'location' ||\n value === 'reporting' ||\n value === 'positionHierarchy'\n ) {\n return value;\n }\n return undefined;\n}\n\n/**\n * Normalizes vacant-toggle values from persisted settings or UI widgets (some paths use strings).\n */\nexport function normalizeVacantLeafSeatsSetting(value: unknown): boolean | undefined {\n if (value === true || value === 1) {\n return true;\n }\n if (value === false || value === 0) {\n return false;\n }\n if (typeof value === 'string') {\n const s = value.trim().toLowerCase();\n if (s === 'true' || s === '1' || s === 'yes' || s === 'on') {\n return true;\n }\n if (s === 'false' || s === '0' || s === 'no' || s === 'off') {\n return false;\n }\n }\n return undefined;\n}\n","import { inject } from '@angular/core';\nimport { ResolveFn } from '@angular/router';\nimport { AXPSettingsService } from '@acorex-platform/framework-client/common';\nimport { AXPPlatformScope } from '@acorex-platform/framework-shared/core';\nimport { AXPOrganizationManagementSettings } from '@acorex-platform/module-organization-management-client/contracts';\nimport {\n normalizeVacantLeafSeatsSetting,\n type OrgChartHydratedUiPrefs,\n parseOrgChartMode,\n} from './org-chart-user-ui.helper';\n\n/**\n * Loads user chart UI preferences before {@link AXMOrgChartPage} is created so the first render matches saved state.\n */\nexport const orgChartUiPrefsResolver: ResolveFn<OrgChartHydratedUiPrefs> = async () => {\n const settingsService = inject(AXPSettingsService);\n await settingsService.load();\n\n const userScope = settingsService.scope(AXPPlatformScope.User);\n const modeRaw = await userScope.get<string | undefined>(\n AXPOrganizationManagementSettings.HierarchyChartMode,\n );\n const vacantRaw = await userScope.get<unknown>(\n AXPOrganizationManagementSettings.HierarchyChartShowVacantLeafSeats,\n );\n\n const prefs: OrgChartHydratedUiPrefs = {};\n const mode = parseOrgChartMode(modeRaw);\n if (mode !== undefined) {\n prefs.selectedMode = mode;\n }\n const vacant = normalizeVacantLeafSeatsSetting(vacantRaw);\n if (vacant !== undefined) {\n prefs.showVacantLeafSeats = vacant;\n }\n return prefs;\n};\n","//#region ---- Imports ----\n\nimport { AXPModuleManifest } from '@acorex-platform/framework-client/core';\nimport { RootConfig } from '@acorex-platform/module-organization-management-client/contracts';\n\n//#endregion\n\n//#region ---- Manifest Definition ----\n\n/**\n * Organization Management Module Manifest.\n * Defines module metadata, features, and provider references.\n */\nexport const OrganizationManagementManifest: AXPModuleManifest = {\n name: RootConfig.module.name,\n version: '1.0.0',\n title: RootConfig.module.title,\n icon: RootConfig.module.icon,\n i18n: RootConfig.config.i18n,\n\n type: 'platform',\n domain: 'platform',\n // LearningManagement is optional (job-definition skills page). Do not list it as a\n // hard dependency — feature resolution would auto-enable Learning for every tenant\n // that has OrganizationManagement (e.g. Safetyminder without Learning).\n};\n\n//#endregion\n\n","import { AXPWidgetConfig, AXPWidgetGroupEnum } from '@acorex-platform/framework-shared/widget-core';\nimport { AXP_WIDGETS_EDITOR_CATEGORY } from '@acorex-platform/framework-client/layout/widget-core';\nimport { AXP_DATA_PATH_PROPERTY, AXP_DISABLED_PROPERTY, AXP_LABEL_PROPERTY, AXP_NAME_PROPERTY, AXP_READONLY_PROPERTY } from '@acorex-platform/framework-client/layout/widgets';\n\nexport const AXMResponsibilitiesMatrixWidget: AXPWidgetConfig<AXMResponsibilitiesMatrixWidgetConfigType> = {\n name: 'responsibilities-matrix-editor',\n title: 'Responsibilities Matrix',\n categories: AXP_WIDGETS_EDITOR_CATEGORY,\n groups: [AXPWidgetGroupEnum.UtilityWidget],\n description: 'Matrix widget for managing responsibility levels',\n icon: 'fa-light fa-table',\n type: 'editor',\n options: {\n needLabel: false,\n },\n properties: [\n AXP_NAME_PROPERTY,\n AXP_DATA_PATH_PROPERTY,\n AXP_LABEL_PROPERTY,\n AXP_READONLY_PROPERTY,\n AXP_DISABLED_PROPERTY,\n ],\n components: {\n view: {\n component: () => import('./responsibilities-matrix-widget-view.component').then((c) => c.AXMResponsibilitiesMatrixWidgetViewComponent),\n },\n edit: {\n component: () => import('./responsibilities-matrix-widget-edit.component').then((c) => c.AXMResponsibilitiesMatrixWidgetEditComponent),\n },\n },\n};\n\nexport type AXMResponsibilitiesMatrixWidgetConfigType = {\n type: 'editor';\n};\n\n","//#region ---- Imports ----\n\nimport { AXPWidgetDefinitionProvider } from '@acorex-platform/framework-client/layout/widget-core';\nimport { Injectable } from '@angular/core';\nimport { AXMResponsibilitiesMatrixWidget } from './features/responsibilities-matrix/responsibilities-matrix-widget.config';\n\n//#endregion\n\n//#region ---- Organization Management Widgets Provider ----\n\n@Injectable()\nexport class AXMOrganizationManagementWidgetsProvider implements AXPWidgetDefinitionProvider {\n getWidgets() {\n return [AXMResponsibilitiesMatrixWidget];\n }\n}\n\n//#endregion\n","//#region ---- Imports ----\n\nimport { provideCommand } from '@acorex-platform/framework-client/runtime';\nimport { provideLazyProvider } from '@acorex-platform/framework-client/core';\n\nimport { NgModule } from '@angular/core';\nimport { AXMOrganizationManagementCommandKeys } from '@acorex-platform/module-organization-management-client/contracts';\n// import {\n// AXM_ORG_CHART_EVENT_LISTENER_GENERATE_PROVIDER,\n// AXM_ORG_CHART_EVENT_LISTENER_RELOAD_PROVIDER,\n// } from './listeners/org-chart-event.listener';\nimport { AXM_ORG_CHART_NODE_CONTRIBUTOR } from './tokens/org-chart-node-contribution.token';\n\n//#endregion\n\n//#region ---- NgModule ----\n\n/**\n * Registers organization chart node contributors and chart-scoped commands for Organization Management.\n */\n@NgModule({\n providers: [\n // AXM_ORG_CHART_EVENT_LISTENER_GENERATE_PROVIDER,\n // AXM_ORG_CHART_EVENT_LISTENER_RELOAD_PROVIDER,\n provideLazyProvider(AXM_ORG_CHART_NODE_CONTRIBUTOR, () =>\n import('./contributions/org-chart-default-node-contribution.provider').then(\n (m) => m.AXMOrgChartDefaultNodeContributionProvider,\n ),\n ),\n provideLazyProvider(AXM_ORG_CHART_NODE_CONTRIBUTOR, () =>\n import('./contributions/org-chart-position-employee-node-contribution.provider').then(\n (m) => m.AXMOrgChartPositionEmployeeNodeContributionProvider,\n ),\n ),\n provideLazyProvider(AXM_ORG_CHART_NODE_CONTRIBUTOR, () =>\n import('./contributions/org-chart-employee-flyout-contribution.provider').then(\n (m) => m.AXMOrgChartEmployeeFlyoutContributionProvider,\n ),\n ),\n provideLazyProvider(AXM_ORG_CHART_NODE_CONTRIBUTOR, () =>\n import('./contributions/org-chart-ux-node-contribution.provider').then(\n (m) => m.AXMOrgChartUxNodeContributionProvider,\n ),\n ),\n provideCommand(AXMOrganizationManagementCommandKeys.OrganizationChart.Generate, () =>\n import('./commands/generate-org-chart.command').then((m) => m.AXMGenerateOrgChartCommand),\n ),\n provideCommand(AXMOrganizationManagementCommandKeys.OrganizationChart.AddPositionToBusinessUnit, () =>\n import('./commands/add-position-to-business-unit.command').then((m) => m.AXMAddPositionToBusinessUnitCommand),\n ),\n provideCommand(AXMOrganizationManagementCommandKeys.OrganizationChart.AddBusinessUnitToBusinessUnit, () =>\n import('./commands/add-business-unit-to-business-unit.command').then(\n (m) => m.AXMAddBusinessUnitToBusinessUnitCommand,\n ),\n ),\n provideCommand(AXMOrganizationManagementCommandKeys.OrganizationChart.AddTeamToBusinessUnit, () =>\n import('./commands/add-team-to-business-unit.command').then((m) => m.AXMAddTeamToBusinessUnitCommand),\n ),\n provideCommand(AXMOrganizationManagementCommandKeys.OrganizationChart.RemovePositionFromBusinessUnit, () =>\n import('./commands/remove-position-from-business-unit.command').then(\n (m) => m.AXMRemovePositionFromBusinessUnitCommand,\n ),\n ),\n provideCommand(AXMOrganizationManagementCommandKeys.OrganizationChart.ReplacePositionAssignee, () =>\n import('./commands/replace-position-assignee.command').then((m) => m.AXMReplacePositionAssigneeCommand),\n ),\n ],\n})\nexport class AXMOrganizationChartModule {}\n\n//#endregion\n","import { AXP_HOME_PAGES, AXP_MENU_PROVIDER, AXP_PROTECTED_ROUTE_GUARDS, AXP_SETTING_DEFINITION_PROVIDER } from '@acorex-platform/framework-client/common';\nimport { AXP_ENTITY_CONFIG_TOKEN } from '@acorex-platform/framework-client/layout/entity';\nimport {\n AXP_MODULE_MANIFEST_PROVIDER,\n AXP_FEATURE_DEFINITION_PROVIDER,\n provideLazyProvider,\n} from '@acorex-platform/framework-client/core';\nimport { orgChartUiPrefsResolver } from './features/organization-chart/ui/org-chart-ui.resolver';\nimport { OrganizationManagementManifest } from './manifest';\nimport { AXP_PERMISSION_DEFINITION_PROVIDER } from '@acorex-platform/framework-client/auth';\nimport { AXP_PAGE_COMPONENT_PROVIDER } from '@acorex-platform/framework-client/layout/components';\nimport { AXP_WIDGET_DEFINITION_PROVIDER, AXPWidgetCoreModule } from '@acorex-platform/framework-client/layout/widget-core';\nimport { CommonModule } from '@angular/common';\nimport { inject, NgModule } from '@angular/core';\nimport { Route, Routes, ROUTES } from '@angular/router';\nimport { AXMOrganizationManagementWidgetsProvider } from './widget-definition.provider';\nimport { AXMOrganizationChartModule } from './features/organization-chart/organization-chart.module';\n\nfunction routesFacory() {\n const config = inject(AXP_ENTITY_CONFIG_TOKEN);\n const routes: Routes = [\n {\n loadComponent: () => {\n return config.viewers.root();\n },\n path: ':app/organization',\n canActivate: [...AXP_PROTECTED_ROUTE_GUARDS],\n data: { rootLayout: true },\n children: [\n {\n path: 'chart',\n resolve: { orgChartUi: orgChartUiPrefsResolver },\n loadComponent: () => import('./features/organization-chart/page/org-chart.page').then((c) => c.AXMOrgChartPage),\n },\n ],\n },\n ];\n return routes;\n}\n\nfunction routesFactory(): Route {\n const config = inject(AXP_ENTITY_CONFIG_TOKEN);\n return {\n path: ':app/organization',\n loadComponent: () => {\n return config.viewers.root();\n },\n data: { rootLayout: true },\n children: [\n {\n path: 'chart',\n resolve: { orgChartUi: orgChartUiPrefsResolver },\n loadComponent: () => import('./features/organization-chart/page/org-chart.page').then((c) => c.AXMOrgChartPage),\n },\n ],\n };\n}\n\n@NgModule({\n imports: [\n CommonModule,\n AXPWidgetCoreModule,\n AXMOrganizationChartModule,\n ],\n providers: [\n // Module-specific providers (not part of manifest system)\n {\n provide: ROUTES,\n multi: true,\n useFactory: routesFacory,\n },\n\n // Module Manifest Provider\n {\n provide: AXP_MODULE_MANIFEST_PROVIDER,\n useValue: OrganizationManagementManifest,\n multi: true,\n },\n provideLazyProvider(AXP_PERMISSION_DEFINITION_PROVIDER, () =>\n import('./permission-definition.provider').then((m) => m.AXMPermissionDefinitionProvider),\n ),\n provideLazyProvider(AXP_MENU_PROVIDER, () => import('./menu.provider').then((m) => m.AXMMenuProvider)),\n \n provideLazyProvider(AXP_FEATURE_DEFINITION_PROVIDER, () =>\n import('./feature-definition.provider').then((m) => m.AXPOrganizationManagementFeatureDefinitionProvider),\n ),\n provideLazyProvider(AXP_PAGE_COMPONENT_PROVIDER, () =>\n import('./features/job-definition-pages/job-definition-pages-component.provider').then(\n (m) => m.AXMJobDefinitionPagesComponentProvider,\n ),\n ),\n provideLazyProvider(\n AXP_SETTING_DEFINITION_PROVIDER,\n () => import('./settings.provider').then((m) => m.AXMSettingProvider),\n ),\n // Widgets must register eagerly: lazy registration can resolve after entity forms bind,\n // so module editors like responsibilities-matrix-editor would not be found (blank UI).\n {\n provide: AXP_WIDGET_DEFINITION_PROVIDER,\n useClass: AXMOrganizationManagementWidgetsProvider,\n multi: true,\n },\n ],\n})\nexport class AXMOrganizationManagementModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAKA;;;;;;;;AAQG;IACS;AAAZ,CAAA,UAAY,mBAAmB,EAAA;AAC3B,IAAA,mBAAA,CAAA,SAAA,CAAA,GAAA,SAAmB;AACnB,IAAA,mBAAA,CAAA,cAAA,CAAA,GAAA,cAA6B;AAC7B,IAAA,mBAAA,CAAA,UAAA,CAAA,GAAA,UAAqB;AACrB,IAAA,mBAAA,CAAA,UAAA,CAAA,GAAA,UAAqB;AACzB,CAAC,EALW,mBAAmB,KAAnB,mBAAmB,GAAA,EAAA,CAAA,CAAA;AAyB/B;IACY;AAAZ,CAAA,UAAY,mBAAmB,EAAA;AAC3B,IAAA,mBAAA,CAAA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