@acorex/modules 20.1.0 → 20.2.0-next.0

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 (42) hide show
  1. package/auth/index.d.ts +4 -57
  2. package/conversation/index.d.ts +69 -9
  3. package/dashboard-management/index.d.ts +2 -0
  4. package/fesm2022/{acorex-modules-auth-acorex-modules-auth-5TIjp5UG.mjs → acorex-modules-auth-acorex-modules-auth-y6rICHrT.mjs} +84 -201
  5. package/fesm2022/acorex-modules-auth-acorex-modules-auth-y6rICHrT.mjs.map +1 -0
  6. package/fesm2022/{acorex-modules-auth-app-chooser.component-B0w1Xzx7.mjs → acorex-modules-auth-app-chooser.component-Cpy0VN6n.mjs} +4 -4
  7. package/fesm2022/{acorex-modules-auth-app-chooser.component-B0w1Xzx7.mjs.map → acorex-modules-auth-app-chooser.component-Cpy0VN6n.mjs.map} +1 -1
  8. package/fesm2022/{acorex-modules-auth-login.module-B8sVVZHV.mjs → acorex-modules-auth-login.module-ZEX4NMuJ.mjs} +4 -4
  9. package/fesm2022/{acorex-modules-auth-login.module-B8sVVZHV.mjs.map → acorex-modules-auth-login.module-ZEX4NMuJ.mjs.map} +1 -1
  10. package/fesm2022/{acorex-modules-auth-master.layout-CMKxj1Qo.mjs → acorex-modules-auth-master.layout-D-lIn4Pl.mjs} +2 -2
  11. package/fesm2022/{acorex-modules-auth-master.layout-CMKxj1Qo.mjs.map → acorex-modules-auth-master.layout-D-lIn4Pl.mjs.map} +1 -1
  12. package/fesm2022/{acorex-modules-auth-password.component-DH0qKunk.mjs → acorex-modules-auth-password.component-CafZfqKe.mjs} +7 -7
  13. package/fesm2022/{acorex-modules-auth-password.component-DH0qKunk.mjs.map → acorex-modules-auth-password.component-CafZfqKe.mjs.map} +1 -1
  14. package/fesm2022/acorex-modules-auth-password.component-DLCb0_6e.mjs +134 -0
  15. package/fesm2022/acorex-modules-auth-password.component-DLCb0_6e.mjs.map +1 -0
  16. package/fesm2022/{acorex-modules-auth-routes-Q9zaIiBS.mjs → acorex-modules-auth-routes-D9-qfC3V.mjs} +2 -2
  17. package/fesm2022/{acorex-modules-auth-routes-Q9zaIiBS.mjs.map → acorex-modules-auth-routes-D9-qfC3V.mjs.map} +1 -1
  18. package/fesm2022/{acorex-modules-auth-tenant-chooser.component-wp7OOLsH.mjs → acorex-modules-auth-tenant-chooser.component-B1aE-TOD.mjs} +10 -13
  19. package/fesm2022/acorex-modules-auth-tenant-chooser.component-B1aE-TOD.mjs.map +1 -0
  20. package/fesm2022/{acorex-modules-auth-two-factor-code.component-DSWd06bn.mjs → acorex-modules-auth-two-factor-code.component-BglerlU-.mjs} +6 -6
  21. package/fesm2022/{acorex-modules-auth-two-factor-code.component-DSWd06bn.mjs.map → acorex-modules-auth-two-factor-code.component-BglerlU-.mjs.map} +1 -1
  22. package/fesm2022/{acorex-modules-auth-two-factor.module-oRixkeAn.mjs → acorex-modules-auth-two-factor.module-D3N2XyOH.mjs} +3 -3
  23. package/fesm2022/{acorex-modules-auth-two-factor.module-oRixkeAn.mjs.map → acorex-modules-auth-two-factor.module-D3N2XyOH.mjs.map} +1 -1
  24. package/fesm2022/acorex-modules-auth.mjs +1 -1
  25. package/fesm2022/acorex-modules-conversation.mjs +487 -57
  26. package/fesm2022/acorex-modules-conversation.mjs.map +1 -1
  27. package/fesm2022/acorex-modules-notification-management.mjs +109 -3
  28. package/fesm2022/acorex-modules-notification-management.mjs.map +1 -1
  29. package/fesm2022/acorex-modules-security-management.mjs +301 -837
  30. package/fesm2022/acorex-modules-security-management.mjs.map +1 -1
  31. package/notification-management/index.d.ts +125 -29
  32. package/package.json +5 -5
  33. package/report-management/index.d.ts +2 -0
  34. package/security-management/index.d.ts +4 -13
  35. package/fesm2022/acorex-modules-auth-acorex-modules-auth-5TIjp5UG.mjs.map +0 -1
  36. package/fesm2022/acorex-modules-auth-oauth-callback.component-C95YLpI_.mjs +0 -101
  37. package/fesm2022/acorex-modules-auth-oauth-callback.component-C95YLpI_.mjs.map +0 -1
  38. package/fesm2022/acorex-modules-auth-password.component-Du0EBIiw.mjs +0 -239
  39. package/fesm2022/acorex-modules-auth-password.component-Du0EBIiw.mjs.map +0 -1
  40. package/fesm2022/acorex-modules-auth-tenant-chooser.component-wp7OOLsH.mjs.map +0 -1
  41. package/fesm2022/acorex-modules-auth-user-sessions.component-8wwWI0cQ.mjs +0 -135
  42. package/fesm2022/acorex-modules-auth-user-sessions.component-8wwWI0cQ.mjs.map +0 -1
package/auth/index.d.ts CHANGED
@@ -6,9 +6,7 @@ import { AuthConfig } from 'angular-oauth2-oidc';
6
6
  import * as i1$1 from '@angular/common';
7
7
  import * as i1 from '@angular/router';
8
8
  import * as i2 from '@acorex/platform/layout/components';
9
- import { AXPEntityModel, AXMEntityCrudServiceImpl } from '@acorex/platform/layout/entity';
10
9
  import { Observable } from 'rxjs';
11
- import { HttpClient } from '@angular/common/http';
12
10
 
13
11
  declare class AXMAuthErrorHandler implements AXPErrorHandler {
14
12
  private router;
@@ -27,9 +25,6 @@ declare enum AXMAuthenticationTypes {
27
25
  MobileCode = 5
28
26
  }
29
27
  declare const AXM_AUTH_CONFIG_TOKEN: InjectionToken<AXMAuthConfigs>;
30
- interface AXMExternalProviderConfig {
31
- providerName: string;
32
- }
33
28
  interface AXMAuthConfigs {
34
29
  type: AXMAuthenticationTypes;
35
30
  authConfig?: AuthConfig;
@@ -38,9 +33,8 @@ interface AXMAuthConfigs {
38
33
  enable: boolean;
39
34
  url?: string;
40
35
  };
41
- externalProviders?: {
42
- [provider: string]: AXMExternalProviderConfig;
43
- };
36
+ signin_google?: boolean;
37
+ signin_apple?: boolean;
44
38
  signinPage?: {
45
39
  description: string;
46
40
  slogan: string;
@@ -62,40 +56,6 @@ declare class AXMAuthModule {
62
56
  static ɵinj: i0.ɵɵInjectorDeclaration<AXMAuthModule>;
63
57
  }
64
58
 
65
- declare enum AXMSessionStatusTypes {
66
- revoked = "revoked",
67
- expired = "expired",
68
- active = "active"
69
- }
70
- interface AXMSecurityManagementDeviceSessionsEntityModel extends AXPEntityModel<string> {
71
- clientName: string;
72
- ipAddress: string;
73
- userAgent: string;
74
- authorizationId: string;
75
- status: string;
76
- userId: string;
77
- user: {
78
- id: string;
79
- name: string;
80
- };
81
- applicationId: string;
82
- application: {
83
- id: string;
84
- name: string;
85
- };
86
- tenantId: string;
87
- tenant: {
88
- id: string;
89
- name: string;
90
- };
91
- isActiveSession: boolean;
92
- deviceName: string;
93
- operatingSystem: string;
94
- browser: string;
95
- location: string;
96
- lastLoginDate: Date;
97
- }
98
-
99
59
  declare class AXPIdleService {
100
60
  private configs;
101
61
  private idle$;
@@ -112,18 +72,5 @@ declare class AXPIdleService {
112
72
  static ɵprov: i0.ɵɵInjectableDeclaration<AXPIdleService>;
113
73
  }
114
74
 
115
- declare abstract class AXMDeviceSessionsService extends AXMEntityCrudServiceImpl<string, AXMSecurityManagementDeviceSessionsEntityModel> {
116
- abstract terminate(id: string): Promise<boolean>;
117
- abstract terminateAllCurrentUserSessions(): Promise<boolean>;
118
- }
119
- declare class AXMDeviceSessionsServiceImpl extends AXMDeviceSessionsService {
120
- private http;
121
- constructor(http: HttpClient);
122
- terminate(id: string): Promise<boolean>;
123
- terminateAllCurrentUserSessions(): Promise<boolean>;
124
- static ɵfac: i0.ɵɵFactoryDeclaration<AXMDeviceSessionsServiceImpl, never>;
125
- static ɵprov: i0.ɵɵInjectableDeclaration<AXMDeviceSessionsServiceImpl>;
126
- }
127
-
128
- export { AXMAuthErrorHandler, AXMAuthModule, AXMAuthenticationTypes, AXMDefaultAuthConfigs, AXMDeviceSessionsService, AXMDeviceSessionsServiceImpl, AXMSessionStatusTypes, AXM_AUTH_CONFIG_TOKEN, AXPIdleService, configAuthModule };
129
- export type { AXMAuthConfigs, AXMExternalProviderConfig, AXMSecurityManagementDeviceSessionsEntityModel };
75
+ export { AXMAuthErrorHandler, AXMAuthModule, AXMAuthenticationTypes, AXMDefaultAuthConfigs, AXM_AUTH_CONFIG_TOKEN, AXPIdleService, configAuthModule };
76
+ export type { AXMAuthConfigs };
@@ -9,7 +9,7 @@ import { AXPEntity } from '@acorex/platform/common';
9
9
  import { AXPEntityModel, AXMEntityCrudServiceImpl } from '@acorex/platform/layout/entity';
10
10
  import * as _acorex_platform_core from '@acorex/platform/core';
11
11
  import { AXPContent, AXPUserReference, AXPEntityReference, AXPBackButton, AXPActionMenuItem, AXPExecuteCommand, AXPContentType } from '@acorex/platform/core';
12
- import { AXTabsComponent, AXTabStripChangedEvent } from '@acorex/components/tabs';
12
+ import { AXTabsComponent } from '@acorex/components/tabs';
13
13
  import { AXPPageLayoutBaseComponent, AXPPageLayoutComponent } from '@acorex/platform/layout/views';
14
14
  import { Observable } from 'rxjs';
15
15
  import * as _acorex_modules_conversation from '@acorex/modules/conversation';
@@ -45,6 +45,12 @@ declare const RootConfig: {
45
45
  source: string;
46
46
  icon: string;
47
47
  };
48
+ tab: {
49
+ name: string;
50
+ title: string;
51
+ source: string;
52
+ icon: string;
53
+ };
48
54
  };
49
55
  };
50
56
 
@@ -102,6 +108,25 @@ declare class AXMRoomServiceImpl extends AXMRoomService {
102
108
  static ɵprov: _angular_core.ɵɵInjectableDeclaration<AXMRoomServiceImpl>;
103
109
  }
104
110
 
111
+ declare function tabFactory(injector: Injector): Promise<AXPEntity | null>;
112
+
113
+ interface AXMConversationTab {
114
+ id: string;
115
+ name: string;
116
+ title: string;
117
+ color?: string;
118
+ excludeRooms: AXMConversationRoom[];
119
+ includeRooms: AXMConversationRoom[];
120
+ }
121
+
122
+ declare abstract class AXMConversationTabService extends AXMEntityCrudServiceImpl<string, AXMConversationTab> {
123
+ }
124
+ declare class AXMConversationTabServiceImpl extends AXMConversationTabService {
125
+ constructor();
126
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXMConversationTabServiceImpl, never>;
127
+ static ɵprov: _angular_core.ɵɵInjectableDeclaration<AXMConversationTabServiceImpl>;
128
+ }
129
+
105
130
  /**
106
131
  * Extended message interface for chat messages with UI-specific properties
107
132
  */
@@ -115,17 +140,20 @@ interface AXMChatRoom extends AXMConversationRoom {
115
140
  unreadCount: number;
116
141
  }
117
142
 
118
- declare class AXMChatComponent extends AXPPageLayoutBaseComponent implements OnInit, OnDestroy {
143
+ declare class AXMChatComponent extends AXPPageLayoutBaseComponent implements OnInit {
119
144
  private activatedRoute;
120
145
  private chatService;
121
146
  private popupService;
122
147
  private dialogService;
123
148
  private router;
124
149
  private unsubscribe;
150
+ private osNotificationService;
151
+ private notificationConnectorService;
125
152
  tab: _angular_core.Signal<AXTabsComponent | undefined>;
126
153
  container: _angular_core.Signal<AXPPageLayoutComponent | undefined>;
127
154
  rooms: _angular_core.WritableSignal<AXMChatRoom[]>;
128
155
  allRooms: _angular_core.WritableSignal<AXMChatRoom[]>;
156
+ tabs: _angular_core.WritableSignal<AXMConversationTab[]>;
129
157
  selectedRoom: _angular_core.WritableSignal<AXMChatRoom | null>;
130
158
  isLoading: _angular_core.WritableSignal<boolean>;
131
159
  typingStatus: _angular_core.WritableSignal<{
@@ -135,20 +163,19 @@ declare class AXMChatComponent extends AXPPageLayoutBaseComponent implements OnI
135
163
  };
136
164
  }>;
137
165
  error: _angular_core.WritableSignal<string | null>;
138
- activeTab: _angular_core.WritableSignal<number>;
166
+ activeTabIndex: _angular_core.WritableSignal<number>;
139
167
  isSearching: _angular_core.WritableSignal<boolean>;
140
168
  searchQuery: _angular_core.WritableSignal<string>;
141
169
  showSearch: _angular_core.WritableSignal<boolean>;
142
170
  placeholder: _angular_core.WritableSignal<string>;
171
+ activeTab: _angular_core.Signal<AXMConversationTab | undefined>;
143
172
  filteredRooms: _angular_core.WritableSignal<AXMChatRoom[]>;
144
173
  searchEffect: _angular_core.EffectRef;
174
+ deleteTab(tab: AXMConversationTab): Promise<void>;
145
175
  unreadCount: _angular_core.Signal<number>;
146
176
  allCount: _angular_core.Signal<number>;
147
177
  hasUnread: _angular_core.Signal<boolean>;
148
178
  totalCount: _angular_core.Signal<number>;
149
- private autoSwitchTab;
150
- af: _angular_core.AfterRenderRef;
151
- onTabChange(event: AXTabStripChangedEvent): void;
152
179
  ngOnInit(): Promise<void>;
153
180
  private loadFromRoute;
154
181
  getPageTitle(): Promise<string>;
@@ -158,6 +185,8 @@ declare class AXMChatComponent extends AXPPageLayoutBaseComponent implements OnI
158
185
  execute(command: AXPExecuteCommand): Promise<void>;
159
186
  onBackButtonClick(): void | Promise<void>;
160
187
  onKeydownHandler(event: KeyboardEvent): void;
188
+ getRoomCountForTab(tab: AXMConversationTab): number;
189
+ loadTabs(): Promise<void>;
161
190
  loadChats(): Promise<void>;
162
191
  refreshChat(): Promise<void>;
163
192
  openChat(chatId: string): Promise<void>;
@@ -165,7 +194,6 @@ declare class AXMChatComponent extends AXPPageLayoutBaseComponent implements OnI
165
194
  onSearch(query: string): void;
166
195
  clearSearch(): void;
167
196
  onNewConversation(): Promise<void>;
168
- ngOnDestroy(): void;
169
197
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXMChatComponent, never>;
170
198
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXMChatComponent, "axm-chat", never, {}, {}, never, never, true, never>;
171
199
  }
@@ -181,6 +209,18 @@ declare abstract class AXMChatService {
181
209
  abstract deleteRoom(roomId: string): Promise<boolean>;
182
210
  abstract addParticipant(roomId: string, userId: string): Promise<AXMConversationRoom>;
183
211
  abstract removeParticipant(roomId: string, userId: string): Promise<AXMConversationRoom>;
212
+ abstract createTab(data: Omit<AXMConversationTab, 'id'>): Promise<AXMConversationTab>;
213
+ abstract getTab(tabId: string): Promise<AXMConversationTab>;
214
+ abstract listTabs(skip?: number, take?: number): Promise<{
215
+ items: AXMConversationTab[];
216
+ total: number;
217
+ }>;
218
+ abstract updateTab(tabId: string, data: Partial<AXMConversationTab>): Promise<AXMConversationTab>;
219
+ abstract deleteTab(tabId: string): Promise<boolean>;
220
+ abstract addIncludeRoomToTab(tabId: string, roomId: string): Promise<AXMConversationTab>;
221
+ abstract removeIncludeRoomFromTab(tabId: string, roomId: string): Promise<AXMConversationTab>;
222
+ abstract addExcludeRoomToTab(tabId: string, roomId: string): Promise<AXMConversationTab>;
223
+ abstract removeExcludeRoomFromTab(tabId: string, roomId: string): Promise<AXMConversationTab>;
184
224
  abstract sendMessage(roomId: string, content: string, contentType?: AXPContentType, replyId?: string, userId?: string): Promise<AXMChatMessage>;
185
225
  abstract getMessages(roomId: string, skip?: number, take?: number): Promise<{
186
226
  items: AXMChatMessage[];
@@ -205,6 +245,8 @@ declare abstract class AXMChatService {
205
245
  abstract readonly roomRemoved$: Observable<string>;
206
246
  abstract readonly roomSeen$: Observable<string>;
207
247
  abstract readonly messageReacted$: Observable<AXMConversationMessage>;
248
+ abstract readonly tabAdded$: Observable<AXMConversationTab>;
249
+ abstract readonly tabRemoved$: Observable<string>;
208
250
  abstract readonly typingStatus$: Observable<{
209
251
  roomId: string;
210
252
  user: AXPUserReference;
@@ -216,6 +258,7 @@ declare abstract class AXMChatService {
216
258
  declare class AXMChatServiceImpl implements AXMChatService {
217
259
  private readonly roomService;
218
260
  private readonly messageService;
261
+ private readonly tabService;
219
262
  private readonly sessionService;
220
263
  private readonly usersService;
221
264
  private readonly _messageSent$;
@@ -232,6 +275,10 @@ declare class AXMChatServiceImpl implements AXMChatService {
232
275
  readonly roomSeen$: Observable<string>;
233
276
  private readonly _messageReacted$;
234
277
  readonly messageReacted$: Observable<AXMConversationMessage>;
278
+ private readonly _tabAdded$;
279
+ readonly tabAdded$: Observable<AXMConversationTab>;
280
+ private readonly _tabRemoved$;
281
+ readonly tabRemoved$: Observable<string>;
235
282
  private readonly _typingStatus$;
236
283
  readonly typingStatus$: Observable<{
237
284
  roomId: string;
@@ -252,6 +299,18 @@ declare class AXMChatServiceImpl implements AXMChatService {
252
299
  deleteRoom(roomId: string): Promise<boolean>;
253
300
  addParticipant(roomId: string, userId: string): Promise<AXMConversationRoom>;
254
301
  removeParticipant(roomId: string, userId: string): Promise<AXMConversationRoom>;
302
+ createTab(data: Omit<AXMConversationTab, 'id'>): Promise<AXMConversationTab>;
303
+ getTab(tabId: string): Promise<AXMConversationTab>;
304
+ listTabs(skip?: number, take?: number): Promise<{
305
+ items: AXMConversationTab[];
306
+ total: number;
307
+ }>;
308
+ updateTab(tabId: string, data: Partial<AXMConversationTab>): Promise<AXMConversationTab>;
309
+ deleteTab(tabId: string): Promise<boolean>;
310
+ addIncludeRoomToTab(tabId: string, roomId: string): Promise<AXMConversationTab>;
311
+ removeIncludeRoomFromTab(tabId: string, roomId: string): Promise<AXMConversationTab>;
312
+ addExcludeRoomToTab(tabId: string, roomId: string): Promise<AXMConversationTab>;
313
+ removeExcludeRoomFromTab(tabId: string, roomId: string): Promise<AXMConversationTab>;
255
314
  sendMessage(roomId: string, content: string, contentType?: AXPContentType, replyId?: string, userId?: string): Promise<AXMChatMessage>;
256
315
  getMessages(roomId: string, skip?: number, take?: number): Promise<{
257
316
  items: AXMChatMessage[];
@@ -312,6 +371,7 @@ declare class AXMChatItemComponent {
312
371
  }
313
372
 
314
373
  declare class AXMChatPreviewComponent implements OnInit, OnDestroy {
374
+ #private;
315
375
  private activatedRoute;
316
376
  private fileService;
317
377
  private chatService;
@@ -557,5 +617,5 @@ declare class AXMCommentPopupStartAction extends AXPWorkflowAction {
557
617
  }
558
618
  declare const AXMCommentPopupWorkflow: AXPWorkflow;
559
619
 
560
- export { AXMChatComponent, AXMChatItemComponent, AXMChatPreviewComponent, AXMChatService, AXMChatServiceImpl, AXMCommentComponent, AXMCommentPopupComponent, AXMCommentPopupStartAction, AXMCommentPopupWorkflow, AXMCommentService, AXMCommentServiceImpl, AXMCommentWidgetViewComponent, AXMConversationModule, AXMMessageService, AXMMessageServiceImpl, AXMRoomService, AXMRoomServiceImpl, AXMUserLookupPopup, AXPCommentWidget, RootConfig, messageFactory, roomFactory };
561
- export type { AXMChatMessage, AXMChatRoom, AXMComment, AXMCommentThread, AXMConversationMessage, AXMConversationReaction, AXMConversationRoom, AXMConversationSeen, AXMReactionType, AXMSeenType };
620
+ export { AXMChatComponent, AXMChatItemComponent, AXMChatPreviewComponent, AXMChatService, AXMChatServiceImpl, AXMCommentComponent, AXMCommentPopupComponent, AXMCommentPopupStartAction, AXMCommentPopupWorkflow, AXMCommentService, AXMCommentServiceImpl, AXMCommentWidgetViewComponent, AXMConversationModule, AXMConversationTabService, AXMConversationTabServiceImpl, AXMMessageService, AXMMessageServiceImpl, AXMRoomService, AXMRoomServiceImpl, AXMUserLookupPopup, AXPCommentWidget, RootConfig, messageFactory, roomFactory, tabFactory };
621
+ export type { AXMChatMessage, AXMChatRoom, AXMComment, AXMCommentThread, AXMConversationMessage, AXMConversationReaction, AXMConversationRoom, AXMConversationSeen, AXMConversationTab, AXMReactionType, AXMSeenType };
@@ -169,6 +169,7 @@ declare class AXMDashboardHomeComponent extends AXPPageLayoutBaseComponent imple
169
169
  sideMenuState: _angular_core.Signal<_acorex_platform_themes_shared.AXPSideMenuState>;
170
170
  sideMenuWidth: _angular_core.Signal<number>;
171
171
  menuOrientation: _angular_core.Signal<_acorex_platform_themes_shared.AXPMenuOrientation>;
172
+ isPrinting: _angular_core.Signal<boolean>;
172
173
  isDarkMode: _angular_core.Signal<boolean>;
173
174
  isLightMode: _angular_core.Signal<boolean>;
174
175
  isSystemMode: _angular_core.Signal<boolean>;
@@ -210,6 +211,7 @@ declare class AXMDashboardHomeComponent extends AXPPageLayoutBaseComponent imple
210
211
  sideMenuState: _acorex_platform_themes_shared.AXPSideMenuState;
211
212
  sideMenuWidth: number;
212
213
  menuOrientation: _acorex_platform_themes_shared.AXPMenuOrientation;
214
+ isPrinting: boolean;
213
215
  }>;
214
216
  protected readonly context: _angular_core.WritableSignal<{}>;
215
217
  private dashboardsLoaded;