@acorex/modules 20.6.0-next.7 → 20.6.0-next.9
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.
- package/conversation/index.d.ts +77 -240
- package/fesm2022/acorex-modules-conversation.mjs +193 -1750
- package/fesm2022/acorex-modules-conversation.mjs.map +1 -1
- package/fesm2022/{acorex-modules-dashboard-management-acorex-modules-dashboard-management-BXVW5pTF.mjs → acorex-modules-dashboard-management-acorex-modules-dashboard-management-JeQW5e5t.mjs} +4 -4
- package/fesm2022/{acorex-modules-dashboard-management-acorex-modules-dashboard-management-BXVW5pTF.mjs.map → acorex-modules-dashboard-management-acorex-modules-dashboard-management-JeQW5e5t.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-dashboard-management-permission-definition.provider-DTQ1D_Uh.mjs → acorex-modules-dashboard-management-permission-definition.provider-CP1sPn-5.mjs} +2 -2
- package/fesm2022/{acorex-modules-dashboard-management-permission-definition.provider-DTQ1D_Uh.mjs.map → acorex-modules-dashboard-management-permission-definition.provider-CP1sPn-5.mjs.map} +1 -1
- package/fesm2022/acorex-modules-dashboard-management.mjs +1 -1
- package/fesm2022/{acorex-modules-data-management-acorex-modules-data-management-Ci9W347D.mjs → acorex-modules-data-management-acorex-modules-data-management-BTZVbtCd.mjs} +4 -4
- package/fesm2022/acorex-modules-data-management-acorex-modules-data-management-BTZVbtCd.mjs.map +1 -0
- package/fesm2022/{acorex-modules-data-management-permission-definition.provider-BmfgERqu.mjs → acorex-modules-data-management-permission-definition.provider-Ba0RXefU.mjs} +2 -2
- package/fesm2022/{acorex-modules-data-management-permission-definition.provider-BmfgERqu.mjs.map → acorex-modules-data-management-permission-definition.provider-Ba0RXefU.mjs.map} +1 -1
- package/fesm2022/acorex-modules-data-management.mjs +1 -1
- package/fesm2022/{acorex-modules-document-management-acorex-modules-document-management-CTpQGWrH.mjs → acorex-modules-document-management-acorex-modules-document-management-ZU1fqI_q.mjs} +37 -27
- package/fesm2022/acorex-modules-document-management-acorex-modules-document-management-ZU1fqI_q.mjs.map +1 -0
- package/fesm2022/{acorex-modules-document-management-attachment-widget.component-DHnJ-wG_.mjs → acorex-modules-document-management-attachment-widget.component-DMCcZ53H.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-attachment-widget.component-DHnJ-wG_.mjs.map → acorex-modules-document-management-attachment-widget.component-DMCcZ53H.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-details-view.component-D4LY1WdL.mjs → acorex-modules-document-management-details-view.component-iov9ayCy.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-details-view.component-D4LY1WdL.mjs.map → acorex-modules-document-management-details-view.component-iov9ayCy.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-document-signature-popup.component-rsZh53Ys.mjs → acorex-modules-document-management-document-signature-popup.component-DoeU-5S2.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-document-signature-popup.component-rsZh53Ys.mjs.map → acorex-modules-document-management-document-signature-popup.component-DoeU-5S2.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-drive-choose.component-Lc6Kjy_S.mjs → acorex-modules-document-management-drive-choose.component-0UN17SNF.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-drive-choose.component-Lc6Kjy_S.mjs.map → acorex-modules-document-management-drive-choose.component-0UN17SNF.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-drive.component-D8MZClH0.mjs → acorex-modules-document-management-drive.component-DzikECQB.mjs} +3 -3
- package/fesm2022/acorex-modules-document-management-drive.component-DzikECQB.mjs.map +1 -0
- package/fesm2022/{acorex-modules-document-management-large-icons-view.component-BkZfQg0H.mjs → acorex-modules-document-management-large-icons-view.component-B2zaP-ye.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-large-icons-view.component-BkZfQg0H.mjs.map → acorex-modules-document-management-large-icons-view.component-B2zaP-ye.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-large-tiles-view.component-DSnB8pwb.mjs → acorex-modules-document-management-large-tiles-view.component-h0N92C7a.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-large-tiles-view.component-DSnB8pwb.mjs.map → acorex-modules-document-management-large-tiles-view.component-h0N92C7a.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-list-view.component-CCWk2Ulv.mjs → acorex-modules-document-management-list-view.component-Cq-FBKuo.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-list-view.component-CCWk2Ulv.mjs.map → acorex-modules-document-management-list-view.component-Cq-FBKuo.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-permission-definition.provider-BC7Og6_y.mjs → acorex-modules-document-management-permission-definition.provider-DWID2ajQ.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-permission-definition.provider-BC7Og6_y.mjs.map → acorex-modules-document-management-permission-definition.provider-DWID2ajQ.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-small-icons-view.component-D6hWuJG8.mjs → acorex-modules-document-management-small-icons-view.component-Crb7NDuY.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-small-icons-view.component-D6hWuJG8.mjs.map → acorex-modules-document-management-small-icons-view.component-Crb7NDuY.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-small-tiles-view.component-DVEftaGK.mjs → acorex-modules-document-management-small-tiles-view.component-AhGebx78.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-small-tiles-view.component-DVEftaGK.mjs.map → acorex-modules-document-management-small-tiles-view.component-AhGebx78.mjs.map} +1 -1
- package/fesm2022/acorex-modules-document-management.mjs +1 -1
- package/fesm2022/acorex-modules-locale-management.mjs +1 -1
- package/fesm2022/acorex-modules-locale-management.mjs.map +1 -1
- package/fesm2022/{acorex-modules-notification-management-notification-page.component-BTSv9-bI.mjs → acorex-modules-notification-management-notification-page.component-Lz8J7q4k.mjs} +2 -2
- package/fesm2022/acorex-modules-notification-management-notification-page.component-Lz8J7q4k.mjs.map +1 -0
- package/fesm2022/acorex-modules-notification-management.mjs +1 -1
- package/fesm2022/{acorex-modules-platform-management-acorex-modules-platform-management-Nq9gX7zW.mjs → acorex-modules-platform-management-acorex-modules-platform-management-BSFwJPkW.mjs} +5 -5
- package/fesm2022/{acorex-modules-platform-management-acorex-modules-platform-management-Nq9gX7zW.mjs.map → acorex-modules-platform-management-acorex-modules-platform-management-BSFwJPkW.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-platform-management-list-version.component-CtJOnijq.mjs → acorex-modules-platform-management-list-version.component-CcrYZek9.mjs} +2 -2
- package/fesm2022/{acorex-modules-platform-management-list-version.component-CtJOnijq.mjs.map → acorex-modules-platform-management-list-version.component-CcrYZek9.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-platform-management-menu-list.component-BwnDs_72.mjs → acorex-modules-platform-management-menu-list.component-CaQSt7lg.mjs} +3 -3
- package/fesm2022/acorex-modules-platform-management-menu-list.component-CaQSt7lg.mjs.map +1 -0
- package/fesm2022/{acorex-modules-platform-management-permission-definition.provider-DJ5bCaS9.mjs → acorex-modules-platform-management-permission-definition.provider-Oa9-EQjN.mjs} +2 -2
- package/fesm2022/{acorex-modules-platform-management-permission-definition.provider-DJ5bCaS9.mjs.map → acorex-modules-platform-management-permission-definition.provider-Oa9-EQjN.mjs.map} +1 -1
- package/fesm2022/acorex-modules-platform-management.mjs +1 -1
- package/fesm2022/acorex-modules-report-management.mjs +2 -2
- package/fesm2022/acorex-modules-report-management.mjs.map +1 -1
- package/fesm2022/{acorex-modules-security-management-acorex-modules-security-management-B6bWjwlY.mjs → acorex-modules-security-management-acorex-modules-security-management-Dh6b7amt.mjs} +32 -48
- package/fesm2022/{acorex-modules-security-management-acorex-modules-security-management-B6bWjwlY.mjs.map → acorex-modules-security-management-acorex-modules-security-management-Dh6b7amt.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-security-management-permission-definition.provider-DPI8gT7K.mjs → acorex-modules-security-management-permission-definition.provider-DJvuPqFx.mjs} +2 -2
- package/fesm2022/{acorex-modules-security-management-permission-definition.provider-DPI8gT7K.mjs.map → acorex-modules-security-management-permission-definition.provider-DJvuPqFx.mjs.map} +1 -1
- package/fesm2022/acorex-modules-security-management.mjs +1 -1
- package/package.json +10 -10
- package/report-management/index.d.ts +3 -4
- package/fesm2022/acorex-modules-data-management-acorex-modules-data-management-Ci9W347D.mjs.map +0 -1
- package/fesm2022/acorex-modules-document-management-acorex-modules-document-management-CTpQGWrH.mjs.map +0 -1
- package/fesm2022/acorex-modules-document-management-drive.component-D8MZClH0.mjs.map +0 -1
- package/fesm2022/acorex-modules-notification-management-notification-page.component-BTSv9-bI.mjs.map +0 -1
- package/fesm2022/acorex-modules-platform-management-menu-list.component-BwnDs_72.mjs.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AXMDeviceSessionsService, AXMDeviceSessionsServiceImpl } from '@acorex/modules/auth';
|
|
2
|
-
import { createAllQueryView, AXPEntityCommandScope, AXPEntityQueryType, AXPSearchCommandProvider, AXPRefreshEvent,
|
|
2
|
+
import { createAllQueryView, AXPEntityCommandScope, AXPEntityQueryType, AXPSearchCommandProvider, AXPRefreshEvent, AXP_MENU_PROVIDER, AXP_SEARCH_PROVIDER } from '@acorex/platform/common';
|
|
3
3
|
import * as i2 from '@acorex/platform/layout/widget-core';
|
|
4
4
|
import { AXPWidgetsCatalog, AXPWidgetGroupEnum, AXPWidgetCoreModule, AXPValueWidgetComponent, AXPColumnWidgetComponent, AXPLayoutBaseWidgetComponent } from '@acorex/platform/layout/widget-core';
|
|
5
5
|
import { entityMasterCrudActions, AXMEntityCrudServiceImpl, entityMasterRecordActions, AXPEntityService, AXPEntityResolver, AXPEntityDefinitionRegistryService, AXP_ENTITY_DEFINITION_LOADER } from '@acorex/platform/layout/entity';
|
|
@@ -12,8 +12,6 @@ import { AXDialogService } from '@acorex/components/dialog';
|
|
|
12
12
|
import { AXLoadingDialogService } from '@acorex/components/loading-dialog';
|
|
13
13
|
import * as i2$2 from '@acorex/core/translation';
|
|
14
14
|
import { AXTranslationService, AXTranslationModule } from '@acorex/core/translation';
|
|
15
|
-
import { HttpClient, HttpHeaders } from '@angular/common/http';
|
|
16
|
-
import { firstValueFrom } from 'rxjs';
|
|
17
15
|
import { AXPDataGenerator, AXP_DATASOURCE_DEFINITION_PROVIDER, AXP_EXPRESSION_EVALUATOR_SCOPE_PROVIDER } from '@acorex/platform/core';
|
|
18
16
|
import { AXP_USER_AVATAR_PROVIDER, AXPThemeLayoutBlockComponent, AXPStateMessageComponent } from '@acorex/platform/layout/components';
|
|
19
17
|
import { AXP_NAME_PROPERTY, AXP_DATA_PATH_PROPERTY, AXP_DISABLED_PROPERTY } from '@acorex/platform/layout/widgets';
|
|
@@ -2170,56 +2168,42 @@ class AXMUserAvatarProvider {
|
|
|
2170
2168
|
constructor() {
|
|
2171
2169
|
this.userService = inject(AXMUsersEntityService);
|
|
2172
2170
|
this.sessionService = inject(AXPSessionService);
|
|
2173
|
-
this.http = inject(HttpClient);
|
|
2174
|
-
this.configs = inject(AXP_ROOT_CONFIG_TOKEN);
|
|
2175
|
-
this.baseUrl = this.configs.baseUrl;
|
|
2176
2171
|
}
|
|
2177
2172
|
async provide(userId) {
|
|
2178
|
-
//
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
try {
|
|
2184
|
-
// Extract base URL without /api suffix and add /connect/userinfo
|
|
2185
|
-
const authority = this.baseUrl.replace(/\/api$/, '');
|
|
2186
|
-
const userInfoUrl = `${authority}/connect/userinfo`;
|
|
2187
|
-
const token = this.sessionService.getToken();
|
|
2188
|
-
// Add Authorization header if token exists (interceptor will also add it, but explicit is better)
|
|
2189
|
-
const headers = new HttpHeaders();
|
|
2190
|
-
if (token) {
|
|
2191
|
-
headers.set('Authorization', `Bearer ${token}`);
|
|
2192
|
-
}
|
|
2193
|
-
const userInfo = await firstValueFrom(this.http.get(userInfoUrl, { headers }));
|
|
2194
|
-
const [firstName, lastName] = (userInfo.name || userInfo.sub || '').split(' ') || ['', ''];
|
|
2173
|
+
// Try entity service first
|
|
2174
|
+
try {
|
|
2175
|
+
const user = await this.userService.getOne(userId);
|
|
2176
|
+
if (user) {
|
|
2177
|
+
const [firstName, lastName] = user.displayName.split(' ') || ['', ''];
|
|
2195
2178
|
return {
|
|
2196
|
-
id:
|
|
2197
|
-
username:
|
|
2198
|
-
firstName: firstName ||
|
|
2199
|
-
lastName: lastName ||
|
|
2179
|
+
id: user.id,
|
|
2180
|
+
username: user.username,
|
|
2181
|
+
firstName: firstName || '',
|
|
2182
|
+
lastName: lastName || '',
|
|
2200
2183
|
status: 'online',
|
|
2201
|
-
avatarUrl:
|
|
2184
|
+
avatarUrl: `https://avatar.iran.liara.run/public/${AXPDataGenerator.pick([35, 22, 16, 6, 31])}`,
|
|
2202
2185
|
};
|
|
2203
2186
|
}
|
|
2204
|
-
catch (error) {
|
|
2205
|
-
console.error('Failed to load userinfo from /connect/userinfo, falling back to entity service', error);
|
|
2206
|
-
// Fallback to entity service if userinfo endpoint fails
|
|
2207
|
-
}
|
|
2208
2187
|
}
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2188
|
+
catch (error) {
|
|
2189
|
+
// If entity service fails, fallback to session service for current user
|
|
2190
|
+
console.debug('Failed to load user from entity service, falling back to session data', error);
|
|
2191
|
+
}
|
|
2192
|
+
// Fallback: Use session service data for current user (mock mode)
|
|
2193
|
+
const currentUser = this.sessionService.user;
|
|
2194
|
+
if (currentUser && currentUser.id === userId) {
|
|
2195
|
+
const [firstName, lastName] = (currentUser.title || currentUser.name || '').split(' ') || ['', ''];
|
|
2196
|
+
return {
|
|
2197
|
+
id: currentUser.id,
|
|
2198
|
+
username: currentUser.name || '',
|
|
2199
|
+
firstName: firstName || '',
|
|
2200
|
+
lastName: lastName || '',
|
|
2201
|
+
status: 'online',
|
|
2202
|
+
avatarUrl: currentUser.avatar || `https://avatar.iran.liara.run/public/${AXPDataGenerator.pick([35, 22, 16, 6, 31])}`,
|
|
2203
|
+
};
|
|
2213
2204
|
}
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
id: user.id,
|
|
2217
|
-
username: user.username,
|
|
2218
|
-
firstName: firstName,
|
|
2219
|
-
lastName: lastName,
|
|
2220
|
-
status: 'online',
|
|
2221
|
-
avatarUrl: `https://avatar.iran.liara.run/public/${AXPDataGenerator.pick([35, 22, 16, 6, 31])}`,
|
|
2222
|
-
};
|
|
2205
|
+
// If all fallbacks fail, throw error
|
|
2206
|
+
throw new Error(`User not found for ${userId}`);
|
|
2223
2207
|
}
|
|
2224
2208
|
}
|
|
2225
2209
|
|
|
@@ -2516,7 +2500,7 @@ class AXMSecurityManagementModule {
|
|
|
2516
2500
|
multi: true,
|
|
2517
2501
|
useFactory: async () => {
|
|
2518
2502
|
const injector = inject(Injector);
|
|
2519
|
-
const provider = (await import('./acorex-modules-security-management-permission-definition.provider-
|
|
2503
|
+
const provider = (await import('./acorex-modules-security-management-permission-definition.provider-DJvuPqFx.mjs')).AXMPermissionDefinitionProvider;
|
|
2520
2504
|
return new provider(injector);
|
|
2521
2505
|
},
|
|
2522
2506
|
},
|
|
@@ -2594,7 +2578,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImpo
|
|
|
2594
2578
|
multi: true,
|
|
2595
2579
|
useFactory: async () => {
|
|
2596
2580
|
const injector = inject(Injector);
|
|
2597
|
-
const provider = (await import('./acorex-modules-security-management-permission-definition.provider-
|
|
2581
|
+
const provider = (await import('./acorex-modules-security-management-permission-definition.provider-DJvuPqFx.mjs')).AXMPermissionDefinitionProvider;
|
|
2598
2582
|
return new provider(injector);
|
|
2599
2583
|
},
|
|
2600
2584
|
},
|
|
@@ -3134,4 +3118,4 @@ var permissionsWidgetDesigner_component = /*#__PURE__*/Object.freeze({
|
|
|
3134
3118
|
*/
|
|
3135
3119
|
|
|
3136
3120
|
export { AXMPermissionsKeys as A, RootConfig as R, AXMSecurityManagementDeviceSessionsEntityModule as a, AXMSecurityManagementRolesEntityService as b, AXMSecurityManagementRolesEntityServiceImpl as c, AXMUsersEntityService as d, AXMUsersEntityServiceImpl as e, factory$3 as f, AXMPolicyService as g, AXMPolicyServiceImpl as h, AXPSecurityManagementMenuKeys as i, AXMSecurityManagementModule as j, AXPPermissionsEditorComponent as k, AXPPermissionsEditorPopupComponent as l, AXMPermissionsModule as m, AXPPermissionsWidgetViewComponent as n, AXPPermissionsWidgetEditComponent as o, policyFactory as p, AXPPermissionsWidgetColumnComponent as q, AXPPermissionsWidgetPrintComponent as r, AXPPermissionsWidgetDesignerComponent as s, AXPPermissionsWidget as t };
|
|
3137
|
-
//# sourceMappingURL=acorex-modules-security-management-acorex-modules-security-management-
|
|
3121
|
+
//# sourceMappingURL=acorex-modules-security-management-acorex-modules-security-management-Dh6b7amt.mjs.map
|