@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,468 @@
1
+ import { resolveMultiLanguageString } from '@acorex-platform/framework-shared/core';
2
+
3
+ //#region ---- Client command keys ----
4
+ /**
5
+ * Client-side command keys (UI, dialogs, orchestration).
6
+ * Server handlers use {@link AXMOrganizationManagementServerCommands} — never reuse these strings.
7
+ */
8
+ const AXMOrganizationManagementCommandKeys = {
9
+ OrganizationChart: {
10
+ Generate: 'OrganizationManagement.OrgChart:Generate',
11
+ AddPositionToBusinessUnit: 'OrganizationManagement.OrgChart:AddPositionToBusinessUnit',
12
+ AddBusinessUnitToBusinessUnit: 'OrganizationManagement.OrgChart:AddBusinessUnitToBusinessUnit',
13
+ AddTeamToBusinessUnit: 'OrganizationManagement.OrgChart:AddTeamToBusinessUnit',
14
+ RemovePositionFromBusinessUnit: 'OrganizationManagement.OrgChart:RemovePositionFromBusinessUnit',
15
+ ReplacePositionAssignee: 'OrganizationManagement.OrgChart:ReplacePositionAssignee',
16
+ },
17
+ };
18
+ //#endregion
19
+ /** HCM command key (string only; avoid importing HCM from org-management). */
20
+ const AXM_HCM_POSITION_ASSIGNMENT_ASSIGN_COMMAND = 'HumanCapitalManagement.PositionAssignment:Assign';
21
+ /** HCM command key (string only; avoid importing HCM from org-management). */
22
+ const AXM_HCM_POSITION_ASSIGNMENT_REVOKE_COMMAND = 'HumanCapitalManagement.PositionAssignment:Revoke';
23
+
24
+ //#region ---- Server command keys ----
25
+ /**
26
+ * Server-only runtime command keys for Organization Management.
27
+ * Must stay distinct from client {@link AXMOrganizationManagementCommandKeys}.
28
+ */
29
+ const AXMOrganizationManagementServerCommands = {
30
+ OrganizationChart: {
31
+ Generate: 'OrganizationManagement:Server:OrgChart:Generate',
32
+ },
33
+ };
34
+ //#endregion
35
+
36
+ var AXPOrganizationManagementSettings;
37
+ (function (AXPOrganizationManagementSettings) {
38
+ AXPOrganizationManagementSettings["OrganizationName"] = "OrganizationManagement:Setting:Organization.OrganizationName";
39
+ AXPOrganizationManagementSettings["OrganizationNameDisplay"] = "OrganizationManagement:Setting:Organization.OrganizationNameDisplay";
40
+ AXPOrganizationManagementSettings["TradingName"] = "OrganizationManagement:Setting:Organization.TradingName";
41
+ AXPOrganizationManagementSettings["TradingNameDisplay"] = "OrganizationManagement:Setting:Organization.TradingNameDisplay";
42
+ AXPOrganizationManagementSettings["CompanyBio"] = "OrganizationManagement:Setting:Organization.CompanyBio";
43
+ AXPOrganizationManagementSettings["BusinessRegistrationNumber"] = "OrganizationManagement:Setting:Organization.BusinessRegistrationNumber";
44
+ AXPOrganizationManagementSettings["CompanyRegistrationNumber"] = "OrganizationManagement:Setting:Organization.CompanyRegistrationNumber";
45
+ AXPOrganizationManagementSettings["LicenceNumber"] = "OrganizationManagement:Setting:Organization.LicenceNumber";
46
+ AXPOrganizationManagementSettings["OrganizationID"] = "OrganizationManagement:Setting:Organization.OrganizationID";
47
+ AXPOrganizationManagementSettings["ContactEmail"] = "OrganizationManagement:Setting:Organization.ContactEmail";
48
+ AXPOrganizationManagementSettings["ContactPhone"] = "OrganizationManagement:Setting:Organization.ContactPhone";
49
+ AXPOrganizationManagementSettings["OrganizationStreet1"] = "OrganizationManagement:Setting:Organization.Street1";
50
+ AXPOrganizationManagementSettings["OrganizationStreet2"] = "OrganizationManagement:Setting:Organization.Street2";
51
+ AXPOrganizationManagementSettings["OrganizationCountryId"] = "OrganizationManagement:Setting:Organization.CountryId";
52
+ AXPOrganizationManagementSettings["OrganizationStateId"] = "OrganizationManagement:Setting:Organization.StateId";
53
+ AXPOrganizationManagementSettings["OrganizationCityId"] = "OrganizationManagement:Setting:Organization.CityId";
54
+ AXPOrganizationManagementSettings["OrganizationPostalCode"] = "OrganizationManagement:Setting:Organization.PostalCode";
55
+ AXPOrganizationManagementSettings["BrandingColor"] = "OrganizationManagement:Setting:Organization.Branding.Color";
56
+ AXPOrganizationManagementSettings["BrandingLogo"] = "OrganizationManagement:Setting:Organization.Branding.Logo";
57
+ AXPOrganizationManagementSettings["CopyrightText"] = "OrganizationManagement:Setting:Organization.CopyrightText";
58
+ AXPOrganizationManagementSettings["SupportEmail"] = "OrganizationManagement:Setting:Organization.SupportEmail";
59
+ AXPOrganizationManagementSettings["InfoEmail"] = "OrganizationManagement:Setting:Organization.InfoEmail";
60
+ AXPOrganizationManagementSettings["FaxNumber"] = "OrganizationManagement:Setting:Organization.FaxNumber";
61
+ AXPOrganizationManagementSettings["Relations"] = "OrganizationManagement:Setting:Organization.Relations";
62
+ /** User preference: organization hierarchy chart mode (`structure` | `location` | `reporting` | `positionHierarchy`). */
63
+ AXPOrganizationManagementSettings["HierarchyChartMode"] = "OrganizationManagement:Setting:User.HierarchyChart.Mode";
64
+ /** User preference: show vacant leaf seats (structure / geographic modes). */
65
+ AXPOrganizationManagementSettings["HierarchyChartShowVacantLeafSeats"] = "OrganizationManagement:Setting:User.HierarchyChart.ShowVacantLeafSeats";
66
+ })(AXPOrganizationManagementSettings || (AXPOrganizationManagementSettings = {}));
67
+
68
+ //#region ---- Company email merge from organization settings (leaf) ----
69
+ /** Keys read from platform/tenant settings for company email master tokens. */
70
+ const COMPANY_EMAIL_ORG_SETTING_KEYS = {
71
+ OrganizationName: AXPOrganizationManagementSettings.OrganizationName,
72
+ BrandingLogo: AXPOrganizationManagementSettings.BrandingLogo,
73
+ BrandingColor: AXPOrganizationManagementSettings.BrandingColor,
74
+ ContactEmail: AXPOrganizationManagementSettings.ContactEmail,
75
+ ContactPhone: AXPOrganizationManagementSettings.ContactPhone,
76
+ SupportEmail: AXPOrganizationManagementSettings.SupportEmail,
77
+ InfoEmail: AXPOrganizationManagementSettings.InfoEmail,
78
+ Street1: AXPOrganizationManagementSettings.OrganizationStreet1,
79
+ Street2: AXPOrganizationManagementSettings.OrganizationStreet2,
80
+ PostalCode: AXPOrganizationManagementSettings.OrganizationPostalCode,
81
+ CopyrightText: AXPOrganizationManagementSettings.CopyrightText,
82
+ };
83
+ /**
84
+ * Definition default for {@link AXPOrganizationManagementSettings.CopyrightText}.
85
+ * Used when the key is not yet persisted (inherited settings often stay client-only).
86
+ */
87
+ const AXP_ORGANIZATION_COPYRIGHT_TEXT_DEFAULT = '© 2026 Your Company';
88
+ /** Matches platform file-storage ids (and optional `file:` cast prefix). */
89
+ const FILE_STORAGE_ID_PATTERN = /^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;
90
+ function coerceString(value, fallback = '', locale = 'en-US') {
91
+ if (typeof value === 'string') {
92
+ return value.trim() || fallback;
93
+ }
94
+ return resolveMultiLanguageString(value, locale).trim() || fallback;
95
+ }
96
+ function pickSetting(values, key, locale) {
97
+ return coerceString(values?.[key], '', locale);
98
+ }
99
+ function normalizeLogoRef(value) {
100
+ const trimmed = value.trim();
101
+ return trimmed.startsWith('file:') ? trimmed.slice('file:'.length).trim() : trimmed;
102
+ }
103
+ function isFileStorageId(value) {
104
+ return FILE_STORAGE_ID_PATTERN.test(normalizeLogoRef(value));
105
+ }
106
+ /** Relative download path served by `FileStorageController.download`. */
107
+ function buildCompanyLogoFileDownloadPath(fileId) {
108
+ const id = normalizeLogoRef(fileId);
109
+ return `/api/v1/file-storage/download/${encodeURIComponent(id)}`;
110
+ }
111
+ function extractLogoRef(value) {
112
+ if (typeof value === 'string') {
113
+ return value.trim();
114
+ }
115
+ if (value && typeof value === 'object') {
116
+ const record = value;
117
+ return (coerceString(record.url, '') ||
118
+ coerceString(record.fileId, '') ||
119
+ coerceString(record.id, ''));
120
+ }
121
+ return '';
122
+ }
123
+ function buildAddressFromSettings(values, locale) {
124
+ return [
125
+ pickSetting(values, COMPANY_EMAIL_ORG_SETTING_KEYS.Street1, locale),
126
+ pickSetting(values, COMPANY_EMAIL_ORG_SETTING_KEYS.Street2, locale),
127
+ pickSetting(values, COMPANY_EMAIL_ORG_SETTING_KEYS.PostalCode, locale),
128
+ ]
129
+ .filter(Boolean)
130
+ .join(', ');
131
+ }
132
+ function buildAddressFromTenant(tenant, locale) {
133
+ if (!tenant) {
134
+ return '';
135
+ }
136
+ return [tenant.city?.title, tenant.state?.title, tenant.country?.title]
137
+ .map((part) => coerceString(part, '', locale))
138
+ .filter(Boolean)
139
+ .join(', ');
140
+ }
141
+ function buildInitials(name) {
142
+ const parts = name.split(/\s+/).filter(Boolean);
143
+ if (!parts.length) {
144
+ return 'CO';
145
+ }
146
+ if (parts.length === 1) {
147
+ return parts[0].slice(0, 2).toUpperCase();
148
+ }
149
+ return `${parts[0][0] ?? ''}${parts[1][0] ?? ''}`.toUpperCase();
150
+ }
151
+ function isLocalWebOrigin(webOrigin) {
152
+ const origin = coerceString(webOrigin, '');
153
+ if (!origin) {
154
+ return true;
155
+ }
156
+ try {
157
+ const host = new URL(origin).hostname.toLowerCase();
158
+ return host === 'localhost' || host === '127.0.0.1' || host === '::1' || host.endsWith('.local');
159
+ }
160
+ catch {
161
+ return true;
162
+ }
163
+ }
164
+ /**
165
+ * Resolves a logo URL for template merge / preview.
166
+ * - File-storage ids → `/api/v1/file-storage/download/{id}` (absolutized with apiOrigin).
167
+ * - Keep app-relative paths (`/assets/...`) as-is for in-app preview.
168
+ * - Absolutize asset paths only against a public (non-localhost) web origin for outbound email.
169
+ */
170
+ function resolveLogoUrl(logo, options = {}) {
171
+ if (!logo) {
172
+ return '';
173
+ }
174
+ if (isFileStorageId(logo)) {
175
+ const path = buildCompanyLogoFileDownloadPath(logo);
176
+ const apiOrigin = coerceString(options.apiOrigin, '').replace(/\/$/, '');
177
+ return apiOrigin ? `${apiOrigin}${path}` : path;
178
+ }
179
+ if (/^https?:\/\//i.test(logo) || logo.startsWith('data:')) {
180
+ if (/^https?:\/\//i.test(logo) && isLocalWebOrigin(logo)) {
181
+ return '';
182
+ }
183
+ return logo;
184
+ }
185
+ if (logo.startsWith('/')) {
186
+ if (isLocalWebOrigin(options.webOrigin)) {
187
+ return logo;
188
+ }
189
+ const origin = coerceString(options.webOrigin, '').replace(/\/$/, '');
190
+ return origin ? `${origin}${logo}` : logo;
191
+ }
192
+ return logo;
193
+ }
194
+ function escapeHtmlAttribute(value) {
195
+ return value
196
+ .replace(/&/g, '&')
197
+ .replace(/"/g, '"')
198
+ .replace(/</g, '&lt;')
199
+ .replace(/>/g, '&gt;');
200
+ }
201
+ function escapeHtmlText(value) {
202
+ return value
203
+ .replace(/&/g, '&amp;')
204
+ .replace(/</g, '&lt;')
205
+ .replace(/>/g, '&gt;');
206
+ }
207
+ function buildLogoMarkHtml(companyName, initials, logoUrl, brandColor) {
208
+ if (logoUrl) {
209
+ return (`<img src="${escapeHtmlAttribute(logoUrl)}" alt="${escapeHtmlAttribute(companyName)}" width="40" height="40" ` +
210
+ `style="display:inline-block;border:0;outline:none;height:40px;width:40px;object-fit:contain;" />`);
211
+ }
212
+ return (`<div style="font-family:Arial,Helvetica,sans-serif;font-size:16px;font-weight:700;` +
213
+ `line-height:56px;color:${escapeHtmlAttribute(brandColor)};letter-spacing:0.5px;">` +
214
+ `${escapeHtmlText(initials)}</div>`);
215
+ }
216
+ /**
217
+ * Builds merge tokens for the company email master from organization settings,
218
+ * falling back to tenant snapshot fields when settings are empty (common after seed).
219
+ */
220
+ function buildCompanyEmailMergeFromOrganization(input = {}) {
221
+ const values = input.settingsValues ?? {};
222
+ const tenant = input.tenant ?? null;
223
+ const locale = (typeof input.locale === 'string' && input.locale.trim()) || 'en-US';
224
+ const year = String(new Date().getFullYear());
225
+ const companyName = pickSetting(values, COMPANY_EMAIL_ORG_SETTING_KEYS.OrganizationName, locale) ||
226
+ coerceString(tenant?.title, '', locale) ||
227
+ 'Your Company';
228
+ const companyEmail = pickSetting(values, COMPANY_EMAIL_ORG_SETTING_KEYS.ContactEmail, locale) ||
229
+ pickSetting(values, COMPANY_EMAIL_ORG_SETTING_KEYS.InfoEmail, locale) ||
230
+ pickSetting(values, COMPANY_EMAIL_ORG_SETTING_KEYS.SupportEmail, locale) ||
231
+ coerceString(tenant?.email, '', locale) ||
232
+ coerceString(tenant?.supportEmail, '', locale);
233
+ const companyPhone = pickSetting(values, COMPANY_EMAIL_ORG_SETTING_KEYS.ContactPhone, locale) ||
234
+ coerceString(tenant?.phone, '', locale);
235
+ const companyAddress = buildAddressFromSettings(values, locale) || buildAddressFromTenant(tenant, locale);
236
+ const companyBrandColor = pickSetting(values, COMPANY_EMAIL_ORG_SETTING_KEYS.BrandingColor, locale) ||
237
+ coerceString(tenant?.color, '', locale) ||
238
+ '#0f172a';
239
+ const rawLogo = extractLogoRef(values[COMPANY_EMAIL_ORG_SETTING_KEYS.BrandingLogo]) ||
240
+ extractLogoRef(tenant?.logo);
241
+ const companyLogoUrl = resolveLogoUrl(rawLogo, {
242
+ webOrigin: input.webOrigin,
243
+ apiOrigin: input.apiOrigin,
244
+ });
245
+ const companyNameInitials = buildInitials(companyName);
246
+ const copyrightText = pickSetting(values, COMPANY_EMAIL_ORG_SETTING_KEYS.CopyrightText, locale) ||
247
+ AXP_ORGANIZATION_COPYRIGHT_TEXT_DEFAULT;
248
+ return {
249
+ companyName,
250
+ companyNameInitials,
251
+ companyLogoUrl,
252
+ companyLogoMarkHtml: buildLogoMarkHtml(companyName, companyNameInitials, companyLogoUrl, companyBrandColor),
253
+ companyBrandColor,
254
+ companyPhone,
255
+ companyAddress,
256
+ companyEmail,
257
+ copyrightText,
258
+ currentYear: year,
259
+ ...(input.overrides ?? {}),
260
+ };
261
+ }
262
+ /** @deprecated Prefer {@link buildCompanyEmailMergeFromOrganization}. */
263
+ function buildCompanyEmailMergeDefaults(overrides = {}) {
264
+ return buildCompanyEmailMergeFromOrganization({ overrides });
265
+ }
266
+ //#endregion
267
+
268
+ //#region ---- Feature Keys ----
269
+ /**
270
+ * Organization Management Module Feature Keys.
271
+ * Defines all available features for the Organization Management module.
272
+ */
273
+ // Management feature removed - module name is used directly as feature key
274
+ const AXPOrganizationManagementFeatureKeys = {};
275
+ //#endregion
276
+
277
+ /** Page tab for editing job-definition responsibilities matrix. Registered via {@link AXP_PAGE_COMPONENT_PROVIDER}. */
278
+ const JOB_DEFINITION_RESPONSIBILITIES_PAGE_COMPONENT_KEY = 'job-definition-responsibilities-page';
279
+
280
+ /** Page tab for editing job-definition skills matrix. Registered via {@link AXP_PAGE_COMPONENT_PROVIDER}. */
281
+ const JOB_DEFINITION_SKILLS_PAGE_COMPONENT_KEY = 'job-definition-skills-page';
282
+
283
+ const AXPOrganizationManagementMenuKeys = {
284
+ Root: 'OrganizationManagement:Menu',
285
+ ConfigurationRoot: 'OrganizationManagement:Menu:Configuration',
286
+ Teams: 'OrganizationManagement:Menu:Teams',
287
+ TeamMemberRoles: 'OrganizationManagement:Menu:TeamMemberRoles',
288
+ Positions: 'OrganizationManagement:Menu:Positions',
289
+ JobDefinitions: 'OrganizationManagement:Menu:JobDefinitions',
290
+ JobLevels: 'OrganizationManagement:Menu:JobLevels',
291
+ Responsibilities: 'OrganizationManagement:Menu:Responsibilities',
292
+ ResponsibilityLevels: 'OrganizationManagement:Menu:ResponsibilityLevels',
293
+ Divider1: 'OrganizationManagement:Menu:Divider1',
294
+ BusinessUnits: 'OrganizationManagement:Menu:BusinessUnits',
295
+ BusinessUnitTypes: 'OrganizationManagement:Menu:BusinessUnitTypes',
296
+ Divider2: 'OrganizationManagement:Menu:Divider2',
297
+ OrganizationChart: 'OrganizationManagement:Menu:OrganizationChart',
298
+ };
299
+
300
+ //#region ----- Org-chart merged corporate business unit id -----
301
+ /**
302
+ * Optional id of the enterprise-root / corporate HQ business unit that org-chart
303
+ * builders merge into the company node (skip a separate chart card).
304
+ *
305
+ * Empty default (`null`) = no merge. Product/demo apps call
306
+ * {@link configureOrgChartMergedBusinessUnitId} at boot with their seed id.
307
+ */
308
+ let orgChartMergedBusinessUnitId = null;
309
+ /**
310
+ * Configure the business-unit id treated as the merged corporate root on org charts.
311
+ * Pass `null` (or empty string) to disable merge behavior.
312
+ */
313
+ function configureOrgChartMergedBusinessUnitId(id) {
314
+ orgChartMergedBusinessUnitId =
315
+ typeof id === 'string' && id.trim().length > 0 ? id.trim() : null;
316
+ }
317
+ /** Configured merged corporate business-unit id, or `null` when merge is disabled. */
318
+ function getOrgChartMergedBusinessUnitId() {
319
+ return orgChartMergedBusinessUnitId;
320
+ }
321
+ //#endregion
322
+
323
+ /**
324
+ * People & Organization capabilities used by this module.
325
+ * Domain capability keys for this module. Root groups live in `AXPCommonPermissionGroupKeys` (common contracts).
326
+ */
327
+ const AXPPeopleOrganizationPermissionKeys = {
328
+ Access: 'PeopleOrganization:Permission:Access',
329
+ ViewOrganization: 'PeopleOrganization:Permission:ViewOrganization',
330
+ MaintainOrganization: 'PeopleOrganization:Permission:MaintainOrganization',
331
+ MaintainTeams: 'PeopleOrganization:Permission:MaintainTeams',
332
+ MaintainEmployees: 'PeopleOrganization:Permission:MaintainEmployees',
333
+ ManageEmployeeActions: 'PeopleOrganization:Permission:ManageEmployeeActions',
334
+ MaintainPersons: 'PeopleOrganization:Permission:MaintainPersons',
335
+ MaintainAttendance: 'PeopleOrganization:Permission:MaintainAttendance',
336
+ ManageAttendanceActions: 'PeopleOrganization:Permission:ManageAttendanceActions',
337
+ DesignJobs: 'PeopleOrganization:Permission:DesignJobs',
338
+ Setup: 'PeopleOrganization:Permission:Setup',
339
+ };
340
+ /**
341
+ * @deprecated Prefer {@link AXPPeopleOrganizationPermissionKeys}.
342
+ * Alias of the full People & Organization key set (including persons/attendance caps).
343
+ */
344
+ const AXPOrganizationManagementPermissionKeys = AXPPeopleOrganizationPermissionKeys;
345
+
346
+ const config = {
347
+ i18n: 'organization-management',
348
+ module: 'OrganizationManagement',
349
+ };
350
+ const RootConfig = {
351
+ config,
352
+ module: {
353
+ route: 'organization-management',
354
+ name: config.module,
355
+ title: '@organization-management:module.title',
356
+ icon: 'fa-light fa-sitemap',
357
+ },
358
+ entities: {
359
+ responsibility: {
360
+ name: 'Responsibility',
361
+ title: '@organization-management:responsibilities.entities.responsibility.title',
362
+ source: `${config.module}.Responsibility`,
363
+ icon: 'fa-light fa-tasks',
364
+ },
365
+ jobDefinition: {
366
+ name: 'JobDefinition',
367
+ title: '@organization-management:job-definitions.entities.job-definition.title',
368
+ source: `${config.module}.JobDefinition`,
369
+ icon: 'fa-light fa-user-tie',
370
+ },
371
+ jobLevel: {
372
+ name: 'JobLevel',
373
+ title: '@organization-management:job-levels.entities.job-level.title',
374
+ source: `${config.module}.JobLevel`,
375
+ icon: 'fa-light fa-layer-group',
376
+ },
377
+ responsibilityLevel: {
378
+ name: 'ResponsibilityLevel',
379
+ title: '@organization-management:responsibility-levels.entities.responsibility-level.title',
380
+ titlePlural: '@organization-management:responsibility-levels.entities.responsibility-level.plural',
381
+ source: `${config.module}.ResponsibilityLevel`,
382
+ icon: 'fa-light fa-layer-group',
383
+ },
384
+ company: {
385
+ name: 'Company',
386
+ source: `${config.module}.Company`,
387
+ title: '@organization-management:companies.entities.company.title',
388
+ icon: 'fa-light fa-building',
389
+ },
390
+ team: {
391
+ name: 'Team',
392
+ source: `${config.module}.Team`,
393
+ title: '@organization-management:teams.entities.team.title',
394
+ icon: 'fa-light fa-people-group',
395
+ },
396
+ teamMemberRole: {
397
+ name: 'TeamMemberRole',
398
+ source: `${config.module}.TeamMemberRole`,
399
+ title: '@organization-management:team-member-roles.entities.team-member-role.title',
400
+ icon: 'fa-light fa-user-tag',
401
+ },
402
+ teamMember: {
403
+ name: 'TeamMember',
404
+ source: `${config.module}.TeamMember`,
405
+ title: '@organization-management:team-members.entities.team-member.title',
406
+ icon: 'fa-light fa-users',
407
+ },
408
+ teamBusinessUnit: {
409
+ name: 'TeamBusinessUnit',
410
+ source: `${config.module}.TeamBusinessUnit`,
411
+ title: '@organization-management:team-business-units.entities.team-business-unit.title',
412
+ icon: 'fa-light fa-link',
413
+ },
414
+ position: {
415
+ name: 'Position',
416
+ source: `${config.module}.Position`,
417
+ title: '@organization-management:positions.entities.position.title',
418
+ icon: 'fa-light fa-briefcase',
419
+ },
420
+ businessUnitType: {
421
+ name: 'BusinessUnitType',
422
+ source: `${config.module}.BusinessUnitType`,
423
+ title: '@organization-management:business-unit-types.entities.business-unit-type.title',
424
+ icon: 'fa-light fa-tag',
425
+ },
426
+ businessUnit: {
427
+ name: 'BusinessUnit',
428
+ source: `${config.module}.BusinessUnit`,
429
+ title: '@organization-management:business-units.entities.business-unit.title',
430
+ icon: 'fa-light fa-sitemap',
431
+ },
432
+ structure: {
433
+ name: 'ChartStructure',
434
+ source: `${config.module}.ChartStructure`,
435
+ title: '@organization-management:chart-configuration.components.chart-configuration.title',
436
+ menu: {
437
+ title: '@organization-management:chart-configuration.menus.chart-configuration.title',
438
+ },
439
+ icon: 'fa-light fa-gear',
440
+ },
441
+ chart: {
442
+ name: 'Chart',
443
+ source: `${config.module}.Chart`,
444
+ title: '@organization-management:organization-chart.components.chart.title',
445
+ menu: {
446
+ title: '@organization-management:organization-chart.menus.chart.title',
447
+ },
448
+ icon: 'fa-light fa-chart-diagram',
449
+ },
450
+ },
451
+ queries: {
452
+ dashboard: {
453
+ teamsBar: `${config.module}:Dashboard:TeamsBar`,
454
+ },
455
+ },
456
+ };
457
+
458
+ /** Persisted org-chart JSON: all chart modes in one row (`structure` column). */
459
+ const AXM_ORG_CHART_STRUCTURE_SCHEMA_VERSION = 1;
460
+
461
+ //#region ---- Contracts barrel ----
462
+
463
+ /**
464
+ * Generated bundle index. Do not edit.
465
+ */
466
+
467
+ export { AXMOrganizationManagementCommandKeys, AXMOrganizationManagementServerCommands, AXM_HCM_POSITION_ASSIGNMENT_ASSIGN_COMMAND, AXM_HCM_POSITION_ASSIGNMENT_REVOKE_COMMAND, AXM_ORG_CHART_STRUCTURE_SCHEMA_VERSION, AXPOrganizationManagementFeatureKeys, AXPOrganizationManagementMenuKeys, AXPOrganizationManagementPermissionKeys, AXPOrganizationManagementSettings, AXPPeopleOrganizationPermissionKeys, AXP_ORGANIZATION_COPYRIGHT_TEXT_DEFAULT, COMPANY_EMAIL_ORG_SETTING_KEYS, JOB_DEFINITION_RESPONSIBILITIES_PAGE_COMPONENT_KEY, JOB_DEFINITION_SKILLS_PAGE_COMPONENT_KEY, RootConfig, buildCompanyEmailMergeDefaults, buildCompanyEmailMergeFromOrganization, buildCompanyLogoFileDownloadPath, configureOrgChartMergedBusinessUnitId, getOrgChartMergedBusinessUnitId };
468
+ //# sourceMappingURL=acorex-platform-module-organization-management-client-contracts.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-organization-management-client-contracts.mjs","sources":["../../../../libs/modules/organization-management/contracts/src/commands.keys.ts","../../../../libs/modules/organization-management/contracts/src/server-commands.ts","../../../../libs/modules/organization-management/contracts/src/settings.keys.ts","../../../../libs/modules/organization-management/contracts/src/company-email-merge.util.ts","../../../../libs/modules/organization-management/contracts/src/features.keys.ts","../../../../libs/modules/organization-management/contracts/src/JOB_DEFINITION_RESPONSIBILITIES_PAGE_COMPONENT_KEY.ts","../../../../libs/modules/organization-management/contracts/src/JOB_DEFINITION_SKILLS_PAGE_COMPONENT_KEY.ts","../../../../libs/modules/organization-management/contracts/src/menu.keys.ts","../../../../libs/modules/organization-management/contracts/src/org-chart-merged-business-unit.configure.ts","../../../../libs/modules/organization-management/contracts/src/permission.keys.ts","../../../../libs/modules/organization-management/contracts/src/root-config.ts","../../../../libs/modules/organization-management/contracts/src/entities/chart/chart.types.ts","../../../../libs/modules/organization-management/contracts/src/index.ts","../../../../libs/modules/organization-management/contracts/src/acorex-platform-module-organization-management-client-contracts.ts"],"sourcesContent":["//#region ---- Client command keys ----\n\n/**\n * Client-side command keys (UI, dialogs, orchestration).\n * Server handlers use {@link AXMOrganizationManagementServerCommands} — never reuse these strings.\n */\nexport const AXMOrganizationManagementCommandKeys = {\n OrganizationChart: {\n Generate: 'OrganizationManagement.OrgChart:Generate',\n AddPositionToBusinessUnit: 'OrganizationManagement.OrgChart:AddPositionToBusinessUnit',\n AddBusinessUnitToBusinessUnit: 'OrganizationManagement.OrgChart:AddBusinessUnitToBusinessUnit',\n AddTeamToBusinessUnit: 'OrganizationManagement.OrgChart:AddTeamToBusinessUnit',\n RemovePositionFromBusinessUnit: 'OrganizationManagement.OrgChart:RemovePositionFromBusinessUnit',\n ReplacePositionAssignee: 'OrganizationManagement.OrgChart:ReplacePositionAssignee',\n },\n} as const;\n\n//#endregion\n\n/** HCM command key (string only; avoid importing HCM from org-management). */\nexport const AXM_HCM_POSITION_ASSIGNMENT_ASSIGN_COMMAND =\n 'HumanCapitalManagement.PositionAssignment:Assign' as const;\n\n/** HCM command key (string only; avoid importing HCM from org-management). */\nexport const AXM_HCM_POSITION_ASSIGNMENT_REVOKE_COMMAND =\n 'HumanCapitalManagement.PositionAssignment:Revoke' as const;\n","//#region ---- Server command keys ----\n\n/**\n * Server-only runtime command keys for Organization Management.\n * Must stay distinct from client {@link AXMOrganizationManagementCommandKeys}.\n */\nexport const AXMOrganizationManagementServerCommands = {\n OrganizationChart: {\n Generate: 'OrganizationManagement:Server:OrgChart:Generate',\n },\n} as const;\n\n//#endregion\n","export enum AXPOrganizationManagementSettings {\n OrganizationName = 'OrganizationManagement:Setting:Organization.OrganizationName',\n OrganizationNameDisplay = 'OrganizationManagement:Setting:Organization.OrganizationNameDisplay',\n TradingName = 'OrganizationManagement:Setting:Organization.TradingName',\n TradingNameDisplay = 'OrganizationManagement:Setting:Organization.TradingNameDisplay',\n CompanyBio = 'OrganizationManagement:Setting:Organization.CompanyBio',\n BusinessRegistrationNumber = 'OrganizationManagement:Setting:Organization.BusinessRegistrationNumber',\n CompanyRegistrationNumber = 'OrganizationManagement:Setting:Organization.CompanyRegistrationNumber',\n LicenceNumber = 'OrganizationManagement:Setting:Organization.LicenceNumber',\n OrganizationID = 'OrganizationManagement:Setting:Organization.OrganizationID',\n ContactEmail = 'OrganizationManagement:Setting:Organization.ContactEmail',\n ContactPhone = 'OrganizationManagement:Setting:Organization.ContactPhone',\n OrganizationStreet1 = 'OrganizationManagement:Setting:Organization.Street1',\n OrganizationStreet2 = 'OrganizationManagement:Setting:Organization.Street2',\n OrganizationCountryId = 'OrganizationManagement:Setting:Organization.CountryId',\n OrganizationStateId = 'OrganizationManagement:Setting:Organization.StateId',\n OrganizationCityId = 'OrganizationManagement:Setting:Organization.CityId',\n OrganizationPostalCode = 'OrganizationManagement:Setting:Organization.PostalCode',\n BrandingColor = 'OrganizationManagement:Setting:Organization.Branding.Color',\n BrandingLogo = 'OrganizationManagement:Setting:Organization.Branding.Logo',\n CopyrightText = 'OrganizationManagement:Setting:Organization.CopyrightText',\n SupportEmail = 'OrganizationManagement:Setting:Organization.SupportEmail',\n InfoEmail = 'OrganizationManagement:Setting:Organization.InfoEmail',\n FaxNumber = 'OrganizationManagement:Setting:Organization.FaxNumber',\n Relations = 'OrganizationManagement:Setting:Organization.Relations',\n\n /** User preference: organization hierarchy chart mode (`structure` | `location` | `reporting` | `positionHierarchy`). */\n HierarchyChartMode = 'OrganizationManagement:Setting:User.HierarchyChart.Mode',\n /** User preference: show vacant leaf seats (structure / geographic modes). */\n HierarchyChartShowVacantLeafSeats = 'OrganizationManagement:Setting:User.HierarchyChart.ShowVacantLeafSeats',\n}\n","import { AXPOrganizationManagementSettings } from './settings.keys';\nimport {\n resolveMultiLanguageString,\n type AXPMultiLanguageString,\n} from '@acorex-platform/framework-shared/core';\n\n//#region ---- Company email merge from organization settings (leaf) ----\n\n/** Keys read from platform/tenant settings for company email master tokens. */\nexport const COMPANY_EMAIL_ORG_SETTING_KEYS = {\n OrganizationName: AXPOrganizationManagementSettings.OrganizationName,\n BrandingLogo: AXPOrganizationManagementSettings.BrandingLogo,\n BrandingColor: AXPOrganizationManagementSettings.BrandingColor,\n ContactEmail: AXPOrganizationManagementSettings.ContactEmail,\n ContactPhone: AXPOrganizationManagementSettings.ContactPhone,\n SupportEmail: AXPOrganizationManagementSettings.SupportEmail,\n InfoEmail: AXPOrganizationManagementSettings.InfoEmail,\n Street1: AXPOrganizationManagementSettings.OrganizationStreet1,\n Street2: AXPOrganizationManagementSettings.OrganizationStreet2,\n PostalCode: AXPOrganizationManagementSettings.OrganizationPostalCode,\n CopyrightText: AXPOrganizationManagementSettings.CopyrightText,\n} as const;\n\n/**\n * Definition default for {@link AXPOrganizationManagementSettings.CopyrightText}.\n * Used when the key is not yet persisted (inherited settings often stay client-only).\n */\nexport const AXP_ORGANIZATION_COPYRIGHT_TEXT_DEFAULT = '© 2026 Your Company';\n\nexport interface CompanyEmailTenantSnapshot {\n title?: AXPMultiLanguageString | null;\n email?: string | null;\n phone?: string | null;\n supportEmail?: string | null;\n logo?: string | null;\n color?: string | null;\n city?: { title?: AXPMultiLanguageString | null } | null;\n state?: { title?: AXPMultiLanguageString | null } | null;\n country?: { title?: AXPMultiLanguageString | null } | null;\n}\n\nexport interface BuildCompanyEmailMergeInput {\n settingsValues?: Record<string, unknown> | null;\n tenant?: CompanyEmailTenantSnapshot | null;\n /** UI origin for absolutizing `/assets/...` logo paths in outbound email. */\n webOrigin?: string | null;\n /**\n * API origin (no trailing slash, no `/api` suffix) used to absolutize\n * file-storage download URLs for logo file ids.\n */\n apiOrigin?: string | null;\n /**\n * Locale for resolving multi-language organization settings / tenant title\n * (`companyName`, `copyrightText`, address region titles, …).\n * Defaults to `en-US` when omitted.\n */\n locale?: string | null;\n overrides?: Record<string, string>;\n}\n\n/** Matches platform file-storage ids (and optional `file:` cast prefix). */\nconst FILE_STORAGE_ID_PATTERN =\n /^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;\n\nfunction coerceString(value: unknown, fallback = '', locale = 'en-US'): string {\n if (typeof value === 'string') {\n return value.trim() || fallback;\n }\n return resolveMultiLanguageString(value, locale).trim() || fallback;\n}\n\nfunction pickSetting(\n values: Record<string, unknown> | null | undefined,\n key: string,\n locale: string,\n): string {\n return coerceString(values?.[key], '', locale);\n}\n\nfunction normalizeLogoRef(value: string): string {\n const trimmed = value.trim();\n return trimmed.startsWith('file:') ? trimmed.slice('file:'.length).trim() : trimmed;\n}\n\nfunction isFileStorageId(value: string): boolean {\n return FILE_STORAGE_ID_PATTERN.test(normalizeLogoRef(value));\n}\n\n/** Relative download path served by `FileStorageController.download`. */\nexport function buildCompanyLogoFileDownloadPath(fileId: string): string {\n const id = normalizeLogoRef(fileId);\n return `/api/v1/file-storage/download/${encodeURIComponent(id)}`;\n}\n\nfunction extractLogoRef(value: unknown): string {\n if (typeof value === 'string') {\n return value.trim();\n }\n if (value && typeof value === 'object') {\n const record = value as { url?: unknown; fileId?: unknown; id?: unknown };\n return (\n coerceString(record.url, '') ||\n coerceString(record.fileId, '') ||\n coerceString(record.id, '')\n );\n }\n return '';\n}\n\nfunction buildAddressFromSettings(\n values: Record<string, unknown> | null | undefined,\n locale: string,\n): string {\n return [\n pickSetting(values, COMPANY_EMAIL_ORG_SETTING_KEYS.Street1, locale),\n pickSetting(values, COMPANY_EMAIL_ORG_SETTING_KEYS.Street2, locale),\n pickSetting(values, COMPANY_EMAIL_ORG_SETTING_KEYS.PostalCode, locale),\n ]\n .filter(Boolean)\n .join(', ');\n}\n\nfunction buildAddressFromTenant(\n tenant: CompanyEmailTenantSnapshot | null | undefined,\n locale: string,\n): string {\n if (!tenant) {\n return '';\n }\n return [tenant.city?.title, tenant.state?.title, tenant.country?.title]\n .map((part) => coerceString(part, '', locale))\n .filter(Boolean)\n .join(', ');\n}\n\nfunction buildInitials(name: string): string {\n const parts = name.split(/\\s+/).filter(Boolean);\n if (!parts.length) {\n return 'CO';\n }\n if (parts.length === 1) {\n return parts[0]!.slice(0, 2).toUpperCase();\n }\n return `${parts[0]![0] ?? ''}${parts[1]![0] ?? ''}`.toUpperCase();\n}\n\nfunction isLocalWebOrigin(webOrigin?: string | null): boolean {\n const origin = coerceString(webOrigin, '');\n if (!origin) {\n return true;\n }\n try {\n const host = new URL(origin).hostname.toLowerCase();\n return host === 'localhost' || host === '127.0.0.1' || host === '::1' || host.endsWith('.local');\n } catch {\n return true;\n }\n}\n\n/**\n * Resolves a logo URL for template merge / preview.\n * - File-storage ids → `/api/v1/file-storage/download/{id}` (absolutized with apiOrigin).\n * - Keep app-relative paths (`/assets/...`) as-is for in-app preview.\n * - Absolutize asset paths only against a public (non-localhost) web origin for outbound email.\n */\nfunction resolveLogoUrl(\n logo: string,\n options: { webOrigin?: string | null; apiOrigin?: string | null } = {},\n): string {\n if (!logo) {\n return '';\n }\n if (isFileStorageId(logo)) {\n const path = buildCompanyLogoFileDownloadPath(logo);\n const apiOrigin = coerceString(options.apiOrigin, '').replace(/\\/$/, '');\n return apiOrigin ? `${apiOrigin}${path}` : path;\n }\n if (/^https?:\\/\\//i.test(logo) || logo.startsWith('data:')) {\n if (/^https?:\\/\\//i.test(logo) && isLocalWebOrigin(logo)) {\n return '';\n }\n return logo;\n }\n if (logo.startsWith('/')) {\n if (isLocalWebOrigin(options.webOrigin)) {\n return logo;\n }\n const origin = coerceString(options.webOrigin, '').replace(/\\/$/, '');\n return origin ? `${origin}${logo}` : logo;\n }\n return logo;\n}\n\nfunction escapeHtmlAttribute(value: string): string {\n return value\n .replace(/&/g, '&amp;')\n .replace(/\"/g, '&quot;')\n .replace(/</g, '&lt;')\n .replace(/>/g, '&gt;');\n}\n\nfunction escapeHtmlText(value: string): string {\n return value\n .replace(/&/g, '&amp;')\n .replace(/</g, '&lt;')\n .replace(/>/g, '&gt;');\n}\n\nfunction buildLogoMarkHtml(companyName: string, initials: string, logoUrl: string, brandColor: string): string {\n if (logoUrl) {\n return (\n `<img src=\"${escapeHtmlAttribute(logoUrl)}\" alt=\"${escapeHtmlAttribute(companyName)}\" width=\"40\" height=\"40\" ` +\n `style=\"display:inline-block;border:0;outline:none;height:40px;width:40px;object-fit:contain;\" />`\n );\n }\n return (\n `<div style=\"font-family:Arial,Helvetica,sans-serif;font-size:16px;font-weight:700;` +\n `line-height:56px;color:${escapeHtmlAttribute(brandColor)};letter-spacing:0.5px;\">` +\n `${escapeHtmlText(initials)}</div>`\n );\n}\n\n/**\n * Builds merge tokens for the company email master from organization settings,\n * falling back to tenant snapshot fields when settings are empty (common after seed).\n */\nexport function buildCompanyEmailMergeFromOrganization(\n input: BuildCompanyEmailMergeInput = {},\n): Record<string, string> {\n const values = input.settingsValues ?? {};\n const tenant = input.tenant ?? null;\n const locale =\n (typeof input.locale === 'string' && input.locale.trim()) || 'en-US';\n const year = String(new Date().getFullYear());\n\n const companyName =\n pickSetting(values, COMPANY_EMAIL_ORG_SETTING_KEYS.OrganizationName, locale) ||\n coerceString(tenant?.title, '', locale) ||\n 'Your Company';\n\n const companyEmail =\n pickSetting(values, COMPANY_EMAIL_ORG_SETTING_KEYS.ContactEmail, locale) ||\n pickSetting(values, COMPANY_EMAIL_ORG_SETTING_KEYS.InfoEmail, locale) ||\n pickSetting(values, COMPANY_EMAIL_ORG_SETTING_KEYS.SupportEmail, locale) ||\n coerceString(tenant?.email, '', locale) ||\n coerceString(tenant?.supportEmail, '', locale);\n\n const companyPhone =\n pickSetting(values, COMPANY_EMAIL_ORG_SETTING_KEYS.ContactPhone, locale) ||\n coerceString(tenant?.phone, '', locale);\n\n const companyAddress =\n buildAddressFromSettings(values, locale) || buildAddressFromTenant(tenant, locale);\n\n const companyBrandColor =\n pickSetting(values, COMPANY_EMAIL_ORG_SETTING_KEYS.BrandingColor, locale) ||\n coerceString(tenant?.color, '', locale) ||\n '#0f172a';\n\n const rawLogo =\n extractLogoRef(values[COMPANY_EMAIL_ORG_SETTING_KEYS.BrandingLogo]) ||\n extractLogoRef(tenant?.logo);\n const companyLogoUrl = resolveLogoUrl(rawLogo, {\n webOrigin: input.webOrigin,\n apiOrigin: input.apiOrigin,\n });\n const companyNameInitials = buildInitials(companyName);\n\n const copyrightText =\n pickSetting(values, COMPANY_EMAIL_ORG_SETTING_KEYS.CopyrightText, locale) ||\n AXP_ORGANIZATION_COPYRIGHT_TEXT_DEFAULT;\n\n return {\n companyName,\n companyNameInitials,\n companyLogoUrl,\n companyLogoMarkHtml: buildLogoMarkHtml(\n companyName,\n companyNameInitials,\n companyLogoUrl,\n companyBrandColor,\n ),\n companyBrandColor,\n companyPhone,\n companyAddress,\n companyEmail,\n copyrightText,\n currentYear: year,\n ...(input.overrides ?? {}),\n };\n}\n\n/** @deprecated Prefer {@link buildCompanyEmailMergeFromOrganization}. */\nexport function buildCompanyEmailMergeDefaults(\n overrides: Record<string, string> = {},\n): Record<string, string> {\n return buildCompanyEmailMergeFromOrganization({ overrides });\n}\n\n//#endregion\n","//#region ---- Feature Keys ----\n\n/**\n * Organization Management Module Feature Keys.\n * Defines all available features for the Organization Management module.\n */\n// Management feature removed - module name is used directly as feature key\nexport const AXPOrganizationManagementFeatureKeys = {} as const;\n\n//#endregion\n\n","/** Page tab for editing job-definition responsibilities matrix. Registered via {@link AXP_PAGE_COMPONENT_PROVIDER}. */\nexport const JOB_DEFINITION_RESPONSIBILITIES_PAGE_COMPONENT_KEY = 'job-definition-responsibilities-page';\n","/** Page tab for editing job-definition skills matrix. Registered via {@link AXP_PAGE_COMPONENT_PROVIDER}. */\nexport const JOB_DEFINITION_SKILLS_PAGE_COMPONENT_KEY = 'job-definition-skills-page';\n","export const AXPOrganizationManagementMenuKeys = {\n Root: 'OrganizationManagement:Menu',\n ConfigurationRoot: 'OrganizationManagement:Menu:Configuration',\n Teams: 'OrganizationManagement:Menu:Teams',\n TeamMemberRoles: 'OrganizationManagement:Menu:TeamMemberRoles',\n Positions: 'OrganizationManagement:Menu:Positions',\n JobDefinitions: 'OrganizationManagement:Menu:JobDefinitions',\n JobLevels: 'OrganizationManagement:Menu:JobLevels',\n Responsibilities: 'OrganizationManagement:Menu:Responsibilities',\n ResponsibilityLevels: 'OrganizationManagement:Menu:ResponsibilityLevels',\n Divider1: 'OrganizationManagement:Menu:Divider1',\n BusinessUnits: 'OrganizationManagement:Menu:BusinessUnits',\n BusinessUnitTypes: 'OrganizationManagement:Menu:BusinessUnitTypes',\n Divider2: 'OrganizationManagement:Menu:Divider2',\n OrganizationChart: 'OrganizationManagement:Menu:OrganizationChart',\n} as const;\n\n","//#region ----- Org-chart merged corporate business unit id -----\n\n/**\n * Optional id of the enterprise-root / corporate HQ business unit that org-chart\n * builders merge into the company node (skip a separate chart card).\n *\n * Empty default (`null`) = no merge. Product/demo apps call\n * {@link configureOrgChartMergedBusinessUnitId} at boot with their seed id.\n */\nlet orgChartMergedBusinessUnitId: string | null = null;\n\n/**\n * Configure the business-unit id treated as the merged corporate root on org charts.\n * Pass `null` (or empty string) to disable merge behavior.\n */\nexport function configureOrgChartMergedBusinessUnitId(id: string | null): void {\n orgChartMergedBusinessUnitId =\n typeof id === 'string' && id.trim().length > 0 ? id.trim() : null;\n}\n\n/** Configured merged corporate business-unit id, or `null` when merge is disabled. */\nexport function getOrgChartMergedBusinessUnitId(): string | null {\n return orgChartMergedBusinessUnitId;\n}\n\n//#endregion\n","/**\n * People & Organization capabilities used by this module.\n * Domain capability keys for this module. Root groups live in `AXPCommonPermissionGroupKeys` (common contracts).\n */\nexport const AXPPeopleOrganizationPermissionKeys = {\n Access: 'PeopleOrganization:Permission:Access',\n ViewOrganization: 'PeopleOrganization:Permission:ViewOrganization',\n MaintainOrganization: 'PeopleOrganization:Permission:MaintainOrganization',\n MaintainTeams: 'PeopleOrganization:Permission:MaintainTeams',\n MaintainEmployees: 'PeopleOrganization:Permission:MaintainEmployees',\n ManageEmployeeActions: 'PeopleOrganization:Permission:ManageEmployeeActions',\n MaintainPersons: 'PeopleOrganization:Permission:MaintainPersons',\n MaintainAttendance: 'PeopleOrganization:Permission:MaintainAttendance',\n ManageAttendanceActions: 'PeopleOrganization:Permission:ManageAttendanceActions',\n DesignJobs: 'PeopleOrganization:Permission:DesignJobs',\n Setup: 'PeopleOrganization:Permission:Setup',\n} as const;\n\n/**\n * @deprecated Prefer {@link AXPPeopleOrganizationPermissionKeys}.\n * Alias of the full People & Organization key set (including persons/attendance caps).\n */\nexport const AXPOrganizationManagementPermissionKeys = AXPPeopleOrganizationPermissionKeys;\n","const config = {\n i18n: 'organization-management',\n module: 'OrganizationManagement',\n};\nexport const RootConfig = {\n config,\n module: {\n route: 'organization-management',\n name: config.module,\n title: '@organization-management:module.title',\n icon: 'fa-light fa-sitemap',\n },\n entities: {\n responsibility: {\n name: 'Responsibility',\n title: '@organization-management:responsibilities.entities.responsibility.title',\n source: `${config.module}.Responsibility`,\n icon: 'fa-light fa-tasks',\n },\n jobDefinition: {\n name: 'JobDefinition',\n title: '@organization-management:job-definitions.entities.job-definition.title',\n source: `${config.module}.JobDefinition`,\n icon: 'fa-light fa-user-tie',\n },\n jobLevel: {\n name: 'JobLevel',\n title: '@organization-management:job-levels.entities.job-level.title',\n source: `${config.module}.JobLevel`,\n icon: 'fa-light fa-layer-group',\n },\n responsibilityLevel: {\n name: 'ResponsibilityLevel',\n title: '@organization-management:responsibility-levels.entities.responsibility-level.title',\n titlePlural: '@organization-management:responsibility-levels.entities.responsibility-level.plural',\n source: `${config.module}.ResponsibilityLevel`,\n icon: 'fa-light fa-layer-group',\n },\n company: {\n name: 'Company',\n source: `${config.module}.Company`,\n title: '@organization-management:companies.entities.company.title',\n icon: 'fa-light fa-building',\n },\n team: {\n name: 'Team',\n source: `${config.module}.Team`,\n title: '@organization-management:teams.entities.team.title',\n icon: 'fa-light fa-people-group',\n },\n teamMemberRole: {\n name: 'TeamMemberRole',\n source: `${config.module}.TeamMemberRole`,\n title: '@organization-management:team-member-roles.entities.team-member-role.title',\n icon: 'fa-light fa-user-tag',\n },\n teamMember: {\n name: 'TeamMember',\n source: `${config.module}.TeamMember`,\n title: '@organization-management:team-members.entities.team-member.title',\n icon: 'fa-light fa-users',\n },\n teamBusinessUnit: {\n name: 'TeamBusinessUnit',\n source: `${config.module}.TeamBusinessUnit`,\n title: '@organization-management:team-business-units.entities.team-business-unit.title',\n icon: 'fa-light fa-link',\n },\n position: {\n name: 'Position',\n source: `${config.module}.Position`,\n title: '@organization-management:positions.entities.position.title',\n icon: 'fa-light fa-briefcase',\n },\n businessUnitType: {\n name: 'BusinessUnitType',\n source: `${config.module}.BusinessUnitType`,\n title: '@organization-management:business-unit-types.entities.business-unit-type.title',\n icon: 'fa-light fa-tag',\n },\n businessUnit: {\n name: 'BusinessUnit',\n source: `${config.module}.BusinessUnit`,\n title: '@organization-management:business-units.entities.business-unit.title',\n icon: 'fa-light fa-sitemap',\n },\n\n structure: {\n name: 'ChartStructure',\n source: `${config.module}.ChartStructure`,\n title: '@organization-management:chart-configuration.components.chart-configuration.title',\n menu: {\n title: '@organization-management:chart-configuration.menus.chart-configuration.title',\n },\n icon: 'fa-light fa-gear',\n },\n chart: {\n name: 'Chart',\n source: `${config.module}.Chart`,\n title: '@organization-management:organization-chart.components.chart.title',\n menu: {\n title: '@organization-management:organization-chart.menus.chart.title',\n },\n icon: 'fa-light fa-chart-diagram',\n },\n },\n queries: {\n dashboard: {\n teamsBar: `${config.module}:Dashboard:TeamsBar`,\n },\n },\n} as const;\n","import { type AXPEntityReference, AXPMultiLanguageString } from '@acorex-platform/framework-shared/core';\nimport { AXPEntityModel } from '@acorex-platform/framework-shared/entity';\n/** Persisted org-chart JSON: all chart modes in one row (`structure` column). */\nexport const AXM_ORG_CHART_STRUCTURE_SCHEMA_VERSION = 1 as const;\n\nexport interface AXMOrgChartStructurePayload {\n schemaVersion: typeof AXM_ORG_CHART_STRUCTURE_SCHEMA_VERSION;\n modes: {\n structure: AXMOrganizationManagementChartNodeEntityModel;\n location: AXMOrganizationManagementChartNodeEntityModel;\n reporting: AXMOrganizationManagementChartNodeEntityModel;\n positionHierarchy: AXMOrganizationManagementChartNodeEntityModel;\n };\n}\n\nexport interface AXMOrganizationManagementChartEntityModel extends AXPEntityModel<string> {\n version: string;\n structure: AXMOrgChartStructurePayload;\n}\n\nexport interface AXMOrganizationManagementChartNodeEntityModel extends AXPEntityModel<string> {\n id: string; // Unique identifier for the node\n title: AXPMultiLanguageString;\n subtitle?: AXPMultiLanguageString;\n description?: AXPMultiLanguageString;\n isExpanded?: boolean; // Add this property\n children?: AXMOrganizationManagementChartNodeEntityModel[];\n icon?: string;\n type?: string; // Type of the node\n parentId?: string | null; // ID of the parent node (null for root)\n entity?: AXPEntityReference;\n metadata?: Record<string, any>; // Additional metadata (e.g., roles, counts, etc.)\n}\n","//#region ---- Contracts barrel ----\n\nexport * from './commands.keys';\nexport * from './server-commands';\nexport * from './company-email-merge.util';\nexport * from './features.keys';\nexport * from './JOB_DEFINITION_RESPONSIBILITIES_PAGE_COMPONENT_KEY';\nexport * from './JOB_DEFINITION_SKILLS_PAGE_COMPONENT_KEY';\nexport * from './menu.keys';\nexport * from './org-chart-merged-business-unit.configure';\nexport * from './permission.keys';\nexport * from './settings.keys';\n\nexport * from './root-config';\n\n//#endregion\n\nexport * from './entities';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;AAAA;AAEA;;;AAGG;AACI,MAAM,oCAAoC,GAAG;AAClD,IAAA,iBAAiB,EAAE;AACjB,QAAA,QAAQ,EAAE,0CAA0C;AACpD,QAAA,yBAAyB,EAAE,2DAA2D;AACtF,QAAA,6BAA6B,EAAE,+DAA+D;AAC9F,QAAA,qBAAqB,EAAE,uDAAuD;AAC9E,QAAA,8BAA8B,EAAE,gEAAgE;AAChG,QAAA,uBAAuB,EAAE,yDAAyD;AACnF,KAAA;;AAGH;AAEA;AACO,MAAM,0CAA0C,GACrD;AAEF;AACO,MAAM,0CAA0C,GACrD;;ACzBF;AAEA;;;AAGG;AACI,MAAM,uCAAuC,GAAG;AACrD,IAAA,iBAAiB,EAAE;AACjB,QAAA,QAAQ,EAAE,iDAAiD;AAC5D,KAAA;;AAGH;;ICZY;AAAZ,CAAA,UAAY,iCAAiC,EAAA;AACzC,IAAA,iCAAA,CAAA,kBAAA,CAAA,GAAA,8DAAiF;AACjF,IAAA,iCAAA,CAAA,yBAAA,CAAA,GAAA,qEAA+F;AAC/F,IAAA,iCAAA,CAAA,aAAA,CAAA,GAAA,yDAAuE;AACvE,IAAA,iCAAA,CAAA,oBAAA,CAAA,GAAA,gEAAqF;AACrF,IAAA,iCAAA,CAAA,YAAA,CAAA,GAAA,wDAAqE;AACrE,IAAA,iCAAA,CAAA,4BAAA,CAAA,GAAA,wEAAqG;AACrG,IAAA,iC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A,IAAI,EAAE,OAAO;AACb,YAAA,MAAM,EAAE,CAAA,EAAG,MAAM,CAAC,MAAM,CAAA,MAAA,CAAQ;AAChC,YAAA,KAAK,EAAE,oEAAoE;AAC3E,YAAA,IAAI,EAAE;AACJ,gBAAA,KAAK,EAAE,+DAA+D;AACvE,aAAA;AACD,YAAA,IAAI,EAAE,2BAA2B;AAClC,SAAA;AACF,KAAA;AACD,IAAA,OAAO,EAAE;AACP,QAAA,SAAS,EAAE;AACT,YAAA,QAAQ,EAAE,CAAA,EAAG,MAAM,CAAC,MAAM,CAAA,mBAAA,CAAqB;AAChD,SAAA;AACF,KAAA;;;AC5GH;AACO,MAAM,sCAAsC,GAAG;;ACHtD;;ACAA;;AAEG;;;;"}
@@ -0,0 +1,19 @@
1
+ import { RootConfig } from '@acorex-platform/module-organization-management-client/contracts';
2
+
3
+ //#region ---- Imports ----
4
+ //#endregion
5
+ //#region ---- Feature Definition Provider ----
6
+ /**
7
+ * Organization Management Module Feature Definition Provider.
8
+ * Provides feature definitions for the Organization Management module.
9
+ */
10
+ class AXPOrganizationManagementFeatureDefinitionProvider {
11
+ async provide(context) {
12
+ const i18n = RootConfig.config.i18n;
13
+ // Management feature removed - module name is used directly as feature key
14
+ }
15
+ }
16
+ //#endregion
17
+
18
+ export { AXPOrganizationManagementFeatureDefinitionProvider };
19
+ //# sourceMappingURL=acorex-platform-module-organization-management-client-feature-definition.provider-BQKtvXOM.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-organization-management-client-feature-definition.provider-BQKtvXOM.mjs","sources":["../../../../libs/modules/organization-management/client/src/lib/feature-definition.provider.ts"],"sourcesContent":["//#region ---- Imports ----\n\nimport {\n AXPFeatureDefinitionProvider,\n AXPFeatureDefinitionProviderContext,\n} from '@acorex-platform/framework-client/core';\nimport { RootConfig } from '@acorex-platform/module-organization-management-client/contracts';\n\n//#endregion\n\n//#region ---- Feature Definition Provider ----\n\n/**\n * Organization Management Module Feature Definition Provider.\n * Provides feature definitions for the Organization Management module.\n */\nexport class AXPOrganizationManagementFeatureDefinitionProvider\n implements AXPFeatureDefinitionProvider {\n async provide(context: AXPFeatureDefinitionProviderContext): Promise<void> {\n const i18n = RootConfig.config.i18n;\n\n // Management feature removed - module name is used directly as feature key\n }\n}\n\n//#endregion\n\n"],"names":[],"mappings":";;AAAA;AAQA;AAEA;AAEA;;;AAGG;MACU,kDAAkD,CAAA;IAE3D,MAAM,OAAO,CAAC,OAA4C,EAAA;AACtD,QAAA,MAAM,IAAI,GAAG,UAAU,CAAC,MAAM,CAAC,IAAI;;IAGvC;AACH;AAED;;;;"}