@cbm-common/cbm-types 0.0.1
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/package.json +12 -0
- package/src/lib/index.d.ts +25 -0
- package/src/lib/types/app/app.config.d.ts +2 -0
- package/src/lib/types/app/app.d.ts +3 -0
- package/src/lib/types/app/app.routes.d.ts +2 -0
- package/src/lib/types/app/components/empty/empty.d.ts +17 -0
- package/src/lib/types/app/components/json-modal/json-modal.d.ts +14 -0
- package/src/lib/types/app/components/pagination-nav/pagination-nav.d.ts +27 -0
- package/src/lib/types/app/components/pagination-nav/pagination-nav.model.d.ts +8 -0
- package/src/lib/types/app/components/tab-item/tab-item.component.d.ts +7 -0
- package/src/lib/types/app/components/tabs/tabs.component.d.ts +7 -0
- package/src/lib/types/app/components/user-history/components/email-history/email-history.component.d.ts +66 -0
- package/src/lib/types/app/components/user-history/components/email-history/emails-modal/emails-modal.component.d.ts +13 -0
- package/src/lib/types/app/components/user-history/components/general-history/general-history.component.d.ts +58 -0
- package/src/lib/types/app/components/user-history/components/print-history/print-history.component.d.ts +58 -0
- package/src/lib/types/app/components/user-history/components/sri-history/sri-history.component.d.ts +63 -0
- package/src/lib/types/app/components/user-history/components/tab-item/tab-item.component.d.ts +7 -0
- package/src/lib/types/app/components/user-history/components/tabs/tabs.component.d.ts +7 -0
- package/src/lib/types/app/components/user-history/constants.d.ts +1 -0
- package/src/lib/types/app/components/user-history/directives/drop-down.directive.d.ts +9 -0
- package/src/lib/types/app/components/user-history/types.d.ts +14 -0
- package/src/lib/types/app/components/user-history/user-history.d.ts +30 -0
- package/src/lib/types/app/directives/horizontal-overflow/components/arrow-left/arrow-left.component.d.ts +5 -0
- package/src/lib/types/app/directives/horizontal-overflow/components/arrow-right/arrow-right.component.d.ts +5 -0
- package/src/lib/types/app/directives/horizontal-overflow/horizontal-overflow-arrows.directive.d.ts +23 -0
- package/src/lib/types/app/directives/horizontal-overflow/horizontal-overflow-shadow.directive.d.ts +8 -0
- package/src/lib/types/app/directives/number-input.directive.d.ts +23 -0
- package/src/lib/types/app/directives/resize-container/resize-container.directive.d.ts +20 -0
- package/src/lib/types/app/directives/resize-container/resize-container.model.d.ts +6 -0
- package/src/lib/types/app/directives/tooltip/tooltip/tooltip.d.ts +9 -0
- package/src/lib/types/app/directives/tooltip/tooltip/types.d.ts +2 -0
- package/src/lib/types/app/directives/tooltip/tooltip.directive.d.ts +26 -0
- package/src/lib/types/app/domain/models/email-settings.domain.repository.d.ts +86 -0
- package/src/lib/types/app/domain/models/history.domain.repository.d.ts +66 -0
- package/src/lib/types/app/domain/models/sri-history.domain.model.d.ts +298 -0
- package/src/lib/types/app/domain/models/user.domain.repository.d.ts +260 -0
- package/src/lib/types/app/domain/repositories/email-settings.domain.repository.d.ts +13 -0
- package/src/lib/types/app/domain/repositories/history.domain.repository.d.ts +11 -0
- package/src/lib/types/app/domain/repositories/sri-history.domain.repository.d.ts +9 -0
- package/src/lib/types/app/domain/repositories/user.domain.repository.d.ts +22 -0
- package/src/lib/types/app/domain/services/notification/notification.model.d.ts +15 -0
- package/src/lib/types/app/domain/services/notification/notification.service.d.ts +4 -0
- package/src/lib/types/app/infrastructure/repositories/email-settings.infrastructure.repository.d.ts +10 -0
- package/src/lib/types/app/infrastructure/repositories/history.infrastructure.repository.d.ts +7 -0
- package/src/lib/types/app/infrastructure/repositories/sri-history.infrastructure.repository.d.ts +5 -0
- package/src/lib/types/app/infrastructure/repositories/user.infrastructure.repository.d.ts +18 -0
- package/src/lib/types/app/infrastructure/services/email-settings.infrastruture.service.d.ts +14 -0
- package/src/lib/types/app/infrastructure/services/history.infrastructure.service.d.ts +11 -0
- package/src/lib/types/app/infrastructure/services/sri-history.infrastructure.service.d.ts +9 -0
- package/src/lib/types/app/infrastructure/services/user.infrastructure.service.d.ts +22 -0
- package/src/lib/types/environments/environment.d.ts +29 -0
- package/src/public-api.d.ts +1 -0
- package/tsconfig.lib.tsbuildinfo +1 -0
package/package.json
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export * from './types/app/domain/models/user.domain.repository';
|
|
2
|
+
export * from './types/app/domain/models/history.domain.repository';
|
|
3
|
+
export * from './types/app/domain/models/sri-history.domain.model';
|
|
4
|
+
export * from './types/app/domain/models/email-settings.domain.repository';
|
|
5
|
+
export * from './types/app/domain/repositories/user.domain.repository';
|
|
6
|
+
export * from './types/app/domain/repositories/history.domain.repository';
|
|
7
|
+
export * from './types/app/domain/repositories/sri-history.domain.repository';
|
|
8
|
+
export * from './types/app/domain/repositories/email-settings.domain.repository';
|
|
9
|
+
export * from './types/app/domain/services/notification/notification.service';
|
|
10
|
+
export * from './types/app/domain/services/notification/notification.model';
|
|
11
|
+
export * from './types/app/infrastructure/repositories/user.infrastructure.repository';
|
|
12
|
+
export * from './types/app/infrastructure/repositories/history.infrastructure.repository';
|
|
13
|
+
export * from './types/app/infrastructure/repositories/sri-history.infrastructure.repository';
|
|
14
|
+
export * from './types/app/infrastructure/repositories/email-settings.infrastructure.repository';
|
|
15
|
+
export * from './types/app/infrastructure/services/user.infrastructure.service';
|
|
16
|
+
export * from './types/app/infrastructure/services/history.infrastructure.service';
|
|
17
|
+
export * from './types/app/infrastructure/services/sri-history.infrastructure.service';
|
|
18
|
+
export * from './types/app/infrastructure/services/email-settings.infrastruture.service';
|
|
19
|
+
export * from './types/app/components/user-history/user-history';
|
|
20
|
+
export * from './types/app/components/user-history/types';
|
|
21
|
+
export * from './types/app/components/user-history/constants';
|
|
22
|
+
export * from './types/app/app.config';
|
|
23
|
+
export * from './types/app/app.routes';
|
|
24
|
+
export * from './types/app/app';
|
|
25
|
+
export * from './types/environments/environment';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare class CbmEmptyComponent {
|
|
2
|
+
title: import("@angular/core").InputSignal<string>;
|
|
3
|
+
isMessageShown: import("@angular/core").InputSignal<boolean>;
|
|
4
|
+
message: import("@angular/core").InputSignal<string>;
|
|
5
|
+
messageStyle: import("@angular/core").InputSignal<{
|
|
6
|
+
[klass: string]: any;
|
|
7
|
+
} | null | undefined>;
|
|
8
|
+
titleStyle: import("@angular/core").InputSignal<{
|
|
9
|
+
[klass: string]: any;
|
|
10
|
+
} | null | undefined>;
|
|
11
|
+
iconStyle: import("@angular/core").InputSignal<{
|
|
12
|
+
[klass: string]: any;
|
|
13
|
+
} | null | undefined>;
|
|
14
|
+
containerStyle: import("@angular/core").InputSignal<{
|
|
15
|
+
[klass: string]: any;
|
|
16
|
+
} | null | undefined>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { CbmNotificationService } from '@services/notification/notification.service';
|
|
2
|
+
export declare class CbmJsonModalComponent {
|
|
3
|
+
private notificationService;
|
|
4
|
+
isOpen: import("@angular/core").InputSignal<boolean | undefined>;
|
|
5
|
+
json: import("@angular/core").InputSignal<object>;
|
|
6
|
+
titleText: import("@angular/core").InputSignal<string>;
|
|
7
|
+
open: import("@angular/core").OutputEmitterRef<void>;
|
|
8
|
+
close: import("@angular/core").OutputEmitterRef<void>;
|
|
9
|
+
isVisible: import("@angular/core").WritableSignal<boolean>;
|
|
10
|
+
constructor(notificationService: CbmNotificationService);
|
|
11
|
+
openModal(): void;
|
|
12
|
+
closeModal(): void;
|
|
13
|
+
copyJSON(): void;
|
|
14
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { SimpleChanges, WritableSignal } from '@angular/core';
|
|
2
|
+
import { FormControl } from '@angular/forms';
|
|
3
|
+
import { CbmPaginationNavModel } from './pagination-nav.model';
|
|
4
|
+
export declare class CbmPaginationNavComponent {
|
|
5
|
+
'signal-pagination': import("@angular/core").InputSignal<WritableSignal<CbmPaginationNavModel.Paginated> | null>;
|
|
6
|
+
current: import("@angular/core").InputSignal<number>;
|
|
7
|
+
total: import("@angular/core").InputSignal<number>;
|
|
8
|
+
totalRecords: import("@angular/core").InputSignal<number>;
|
|
9
|
+
shownRecords: import("@angular/core").InputSignal<number>;
|
|
10
|
+
pageSize: import("@angular/core").InputSignal<number>;
|
|
11
|
+
darkMode: import("@angular/core").InputSignal<boolean>;
|
|
12
|
+
'change-signal': import("@angular/core").OutputEmitterRef<WritableSignal<CbmPaginationNavModel.Paginated>>;
|
|
13
|
+
goTo: import("@angular/core").OutputEmitterRef<number>;
|
|
14
|
+
next: import("@angular/core").OutputEmitterRef<number>;
|
|
15
|
+
previous: import("@angular/core").OutputEmitterRef<number>;
|
|
16
|
+
pageSizeChange: import("@angular/core").OutputEmitterRef<number>;
|
|
17
|
+
pages: WritableSignal<number[]>;
|
|
18
|
+
pageSizeControl: FormControl<string | null>;
|
|
19
|
+
private signalPagination;
|
|
20
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
21
|
+
emitPageSize(): void;
|
|
22
|
+
onGoTo(page: number): void;
|
|
23
|
+
onNext(): void;
|
|
24
|
+
onPrevious(): void;
|
|
25
|
+
private getPages;
|
|
26
|
+
onButtonClick(event: MouseEvent, rippleClass: string): void;
|
|
27
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { TemplateRef } from '@angular/core';
|
|
2
|
+
export declare class TabItemComponent {
|
|
3
|
+
hasPrintReports: import("@angular/core").InputSignal<boolean>;
|
|
4
|
+
hasEmailReports: import("@angular/core").InputSignal<boolean>;
|
|
5
|
+
tabName: import("@angular/core").InputSignal<string>;
|
|
6
|
+
templateRef: import("@angular/core").InputSignal<TemplateRef<any>>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { AfterContentInit } from '@angular/core';
|
|
2
|
+
import { TabItemComponent } from '../tab-item/tab-item.component';
|
|
3
|
+
export declare class TabsComponent implements AfterContentInit {
|
|
4
|
+
tabs: import("@angular/core").Signal<readonly TabItemComponent[]>;
|
|
5
|
+
activeTab: import("@angular/core").WritableSignal<TabItemComponent | null>;
|
|
6
|
+
ngAfterContentInit(): void;
|
|
7
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { DestroyRef, OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { FormGroup, FormControl } from '@angular/forms';
|
|
3
|
+
import { Subject } from 'rxjs';
|
|
4
|
+
import { CbmUserHistory } from '../../types';
|
|
5
|
+
import { EmailsModalComponent } from './emails-modal/emails-modal.component';
|
|
6
|
+
import { CbmHistoryModel } from '@models/history.domain.repository';
|
|
7
|
+
import { CbmUserModel } from '@models/user.domain.repository';
|
|
8
|
+
import { CbmHistoryDomainRepository } from '@repositories/history.domain.repository';
|
|
9
|
+
import { CbmNotificationService } from '@services/notification/notification.service';
|
|
10
|
+
import { CbmUserDomainRepository } from '@repositories/user.domain.repository';
|
|
11
|
+
export declare class EmailHistoryComponent implements OnChanges, OnInit {
|
|
12
|
+
private historyRepository;
|
|
13
|
+
private notificationService;
|
|
14
|
+
private userRepository;
|
|
15
|
+
private destroyRef;
|
|
16
|
+
emailsModalRef: import("@angular/core").Signal<EmailsModalComponent | undefined>;
|
|
17
|
+
collection_id: import("@angular/core").InputSignal<string | undefined>;
|
|
18
|
+
event_module: import("@angular/core").InputSignal<string | undefined>;
|
|
19
|
+
collection_name: import("@angular/core").InputSignal<string | undefined>;
|
|
20
|
+
translation: import("@angular/core").InputSignal<CbmUserHistory.Translation[] | undefined>;
|
|
21
|
+
event: import("@angular/core").InputSignal<string | undefined>;
|
|
22
|
+
paginationSize: import("@angular/core").InputSignal<number>;
|
|
23
|
+
tab: import("@angular/core").OutputEmitterRef<string>;
|
|
24
|
+
pressJson: import("@angular/core").OutputEmitterRef<CbmHistoryModel.ListResponse.Item>;
|
|
25
|
+
close: import("@angular/core").OutputEmitterRef<void>;
|
|
26
|
+
statusOfFetchHistory: import("@angular/core").WritableSignal<CbmUserHistory.Status>;
|
|
27
|
+
statusOfFetchUsers: import("@angular/core").WritableSignal<CbmUserHistory.Status>;
|
|
28
|
+
json: import("@angular/core").WritableSignal<object>;
|
|
29
|
+
history: import("@angular/core").WritableSignal<CbmHistoryModel.ListResponse.Item[]>;
|
|
30
|
+
users: import("@angular/core").WritableSignal<CbmUserModel.ListResponse.Item[]>;
|
|
31
|
+
usersPagination: import("@angular/core").WritableSignal<CbmUserHistory.IPagination>;
|
|
32
|
+
isFilterVisible: import("@angular/core").WritableSignal<boolean>;
|
|
33
|
+
rowEmails: import("@angular/core").WritableSignal<string | undefined>;
|
|
34
|
+
historyPagination: import("@angular/core").WritableSignal<CbmUserHistory.IPagination>;
|
|
35
|
+
subjectToSearchUser$: Subject<string>;
|
|
36
|
+
indexRowEmail$: Subject<{
|
|
37
|
+
index: number;
|
|
38
|
+
emails?: string;
|
|
39
|
+
}>;
|
|
40
|
+
now: Date;
|
|
41
|
+
formToFilter: FormGroup<{
|
|
42
|
+
fromDate: FormControl<string | null>;
|
|
43
|
+
toDate: FormControl<string | null>;
|
|
44
|
+
user: FormControl<CbmUserModel.ListResponse.Item | null>;
|
|
45
|
+
}>;
|
|
46
|
+
constructor(historyRepository: CbmHistoryDomainRepository, notificationService: CbmNotificationService, userRepository: CbmUserDomainRepository, destroyRef: DestroyRef);
|
|
47
|
+
ngOnInit(): void;
|
|
48
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
49
|
+
get userControl(): FormControl<CbmUserModel.ListResponse.Item | null>;
|
|
50
|
+
compareWithId(a: {
|
|
51
|
+
_id: string;
|
|
52
|
+
}, b: {
|
|
53
|
+
_id: string;
|
|
54
|
+
}): boolean;
|
|
55
|
+
makeSubscriptions(): void;
|
|
56
|
+
makeInitialRequests(): void;
|
|
57
|
+
searchHistory(): void;
|
|
58
|
+
fetchHistory(): void;
|
|
59
|
+
fetchUsers(searchTerm?: string): void;
|
|
60
|
+
onGoToPage(page: number): void;
|
|
61
|
+
onNextPage(page: number): void;
|
|
62
|
+
onPreviousPage(page: number): void;
|
|
63
|
+
onPageSizeChange(size: number): void;
|
|
64
|
+
translate(response: CbmHistoryModel.ListResponse.Item[], translation: CbmUserHistory.Translation[]): CbmHistoryModel.ListResponse.Item[];
|
|
65
|
+
openModalEmails(index: number, emails?: string): void;
|
|
66
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
+
export declare class EmailsModalComponent implements OnChanges {
|
|
3
|
+
isOpen: import("@angular/core").InputSignal<boolean | undefined>;
|
|
4
|
+
emailsString: import("@angular/core").InputSignal<string | undefined>;
|
|
5
|
+
emails: import("@angular/core").WritableSignal<string[]>;
|
|
6
|
+
open: import("@angular/core").OutputEmitterRef<void>;
|
|
7
|
+
close: import("@angular/core").OutputEmitterRef<void>;
|
|
8
|
+
isVisible: import("@angular/core").WritableSignal<boolean>;
|
|
9
|
+
constructor();
|
|
10
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
11
|
+
openModal(): void;
|
|
12
|
+
closeModal(): void;
|
|
13
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { DestroyRef, OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { FormControl, FormGroup } from '@angular/forms';
|
|
3
|
+
import { Subject } from 'rxjs';
|
|
4
|
+
import { CbmUserHistory } from '../../types';
|
|
5
|
+
import { CbmHistoryModel } from '@models/history.domain.repository';
|
|
6
|
+
import { CbmUserModel } from '@models/user.domain.repository';
|
|
7
|
+
import { CbmNotificationService } from '@services/notification/notification.service';
|
|
8
|
+
import { CbmHistoryDomainRepository } from '@repositories/history.domain.repository';
|
|
9
|
+
import { CbmUserDomainRepository } from '@repositories/user.domain.repository';
|
|
10
|
+
export declare class GeneralHistoryComponent implements OnChanges, OnInit {
|
|
11
|
+
private historyRepository;
|
|
12
|
+
private notificationService;
|
|
13
|
+
private userRepository;
|
|
14
|
+
private destroyRef;
|
|
15
|
+
collection_id: import("@angular/core").InputSignal<string | undefined>;
|
|
16
|
+
event_module: import("@angular/core").InputSignal<string | undefined>;
|
|
17
|
+
collection_name: import("@angular/core").InputSignal<string | undefined>;
|
|
18
|
+
translation: import("@angular/core").InputSignal<CbmUserHistory.Translation[] | undefined>;
|
|
19
|
+
event: import("@angular/core").InputSignal<string | undefined>;
|
|
20
|
+
paginationSize: import("@angular/core").InputSignal<number>;
|
|
21
|
+
tab: import("@angular/core").OutputEmitterRef<string>;
|
|
22
|
+
pressJson: import("@angular/core").OutputEmitterRef<CbmHistoryModel.ListResponse.Item>;
|
|
23
|
+
close: import("@angular/core").OutputEmitterRef<void>;
|
|
24
|
+
statusOfFetchHistory: import("@angular/core").WritableSignal<CbmUserHistory.Status>;
|
|
25
|
+
statusOfFetchUsers: import("@angular/core").WritableSignal<CbmUserHistory.Status>;
|
|
26
|
+
json: import("@angular/core").WritableSignal<object>;
|
|
27
|
+
history: import("@angular/core").WritableSignal<CbmHistoryModel.ListResponse.Item[]>;
|
|
28
|
+
users: import("@angular/core").WritableSignal<CbmUserModel.ListResponse.Item[]>;
|
|
29
|
+
usersPagination: import("@angular/core").WritableSignal<CbmUserHistory.IPagination>;
|
|
30
|
+
isFilterVisible: import("@angular/core").WritableSignal<boolean>;
|
|
31
|
+
historyPagination: import("@angular/core").WritableSignal<CbmUserHistory.IPagination>;
|
|
32
|
+
subjectToSearchUser$: Subject<string>;
|
|
33
|
+
now: Date;
|
|
34
|
+
formToFilter: FormGroup<{
|
|
35
|
+
fromDate: FormControl<string | null>;
|
|
36
|
+
toDate: FormControl<string | null>;
|
|
37
|
+
user: FormControl<CbmUserModel.ListResponse.Item | null>;
|
|
38
|
+
}>;
|
|
39
|
+
constructor(historyRepository: CbmHistoryDomainRepository, notificationService: CbmNotificationService, userRepository: CbmUserDomainRepository, destroyRef: DestroyRef);
|
|
40
|
+
ngOnInit(): void;
|
|
41
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
42
|
+
get userControl(): FormControl<CbmUserModel.ListResponse.Item | null>;
|
|
43
|
+
compareWithId(a: {
|
|
44
|
+
_id: string;
|
|
45
|
+
}, b: {
|
|
46
|
+
_id: string;
|
|
47
|
+
}): boolean;
|
|
48
|
+
makeSubscriptions(): void;
|
|
49
|
+
makeInitialRequests(): void;
|
|
50
|
+
searchHistory(): void;
|
|
51
|
+
fetchHistory(): void;
|
|
52
|
+
fetchUsers(searchTerm?: string): void;
|
|
53
|
+
onGoToPage(page: number): void;
|
|
54
|
+
onNextPage(page: number): void;
|
|
55
|
+
onPreviousPage(page: number): void;
|
|
56
|
+
onPageSizeChange(size: number): void;
|
|
57
|
+
translate(response: CbmHistoryModel.ListResponse.Item[], translation: CbmUserHistory.Translation[]): CbmHistoryModel.ListResponse.Item[];
|
|
58
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { DestroyRef, OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { FormControl, FormGroup } from '@angular/forms';
|
|
3
|
+
import { Subject } from 'rxjs';
|
|
4
|
+
import { CbmUserHistory } from '../../types';
|
|
5
|
+
import { CbmHistoryModel } from '@models/history.domain.repository';
|
|
6
|
+
import { CbmUserModel } from '@models/user.domain.repository';
|
|
7
|
+
import { CbmHistoryDomainRepository } from '@repositories/history.domain.repository';
|
|
8
|
+
import { CbmNotificationService } from '@services/notification/notification.service';
|
|
9
|
+
import { CbmUserDomainRepository } from '@repositories/user.domain.repository';
|
|
10
|
+
export declare class PrintHistoryComponent implements OnChanges, OnInit {
|
|
11
|
+
private historyRepository;
|
|
12
|
+
private notificationService;
|
|
13
|
+
private userRepository;
|
|
14
|
+
private destroyRef;
|
|
15
|
+
collection_id: import("@angular/core").InputSignal<string | undefined>;
|
|
16
|
+
event_module: import("@angular/core").InputSignal<string | undefined>;
|
|
17
|
+
collection_name: import("@angular/core").InputSignal<string | undefined>;
|
|
18
|
+
translation: import("@angular/core").InputSignal<CbmUserHistory.Translation[] | undefined>;
|
|
19
|
+
event: import("@angular/core").InputSignal<string | undefined>;
|
|
20
|
+
paginationSize: import("@angular/core").InputSignal<number>;
|
|
21
|
+
tab: import("@angular/core").OutputEmitterRef<string>;
|
|
22
|
+
pressJson: import("@angular/core").OutputEmitterRef<CbmHistoryModel.ListResponse.Item>;
|
|
23
|
+
close: import("@angular/core").OutputEmitterRef<void>;
|
|
24
|
+
statusOfFetchHistory: import("@angular/core").WritableSignal<CbmUserHistory.Status>;
|
|
25
|
+
statusOfFetchUsers: import("@angular/core").WritableSignal<CbmUserHistory.Status>;
|
|
26
|
+
json: import("@angular/core").WritableSignal<object>;
|
|
27
|
+
history: import("@angular/core").WritableSignal<CbmHistoryModel.ListResponse.Item[]>;
|
|
28
|
+
users: import("@angular/core").WritableSignal<CbmUserModel.ListResponse.Item[]>;
|
|
29
|
+
usersPagination: import("@angular/core").WritableSignal<CbmUserHistory.IPagination>;
|
|
30
|
+
isFilterVisible: import("@angular/core").WritableSignal<boolean>;
|
|
31
|
+
historyPagination: import("@angular/core").WritableSignal<CbmUserHistory.IPagination>;
|
|
32
|
+
subjectToSearchUser$: Subject<string>;
|
|
33
|
+
now: Date;
|
|
34
|
+
formToFilter: FormGroup<{
|
|
35
|
+
fromDate: FormControl<string | null>;
|
|
36
|
+
toDate: FormControl<string | null>;
|
|
37
|
+
user: FormControl<CbmUserModel.ListResponse.Item | null>;
|
|
38
|
+
}>;
|
|
39
|
+
constructor(historyRepository: CbmHistoryDomainRepository, notificationService: CbmNotificationService, userRepository: CbmUserDomainRepository, destroyRef: DestroyRef);
|
|
40
|
+
ngOnInit(): void;
|
|
41
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
42
|
+
get userControl(): FormControl<CbmUserModel.ListResponse.Item | null>;
|
|
43
|
+
compareWithId(a: {
|
|
44
|
+
_id: string;
|
|
45
|
+
}, b: {
|
|
46
|
+
_id: string;
|
|
47
|
+
}): boolean;
|
|
48
|
+
makeSubscriptions(): void;
|
|
49
|
+
makeInitialRequests(): void;
|
|
50
|
+
searchHistory(): void;
|
|
51
|
+
fetchHistory(): void;
|
|
52
|
+
fetchUsers(searchTerm?: string): void;
|
|
53
|
+
onGoToPage(page: number): void;
|
|
54
|
+
onNextPage(page: number): void;
|
|
55
|
+
onPreviousPage(page: number): void;
|
|
56
|
+
onPageSizeChange(size: number): void;
|
|
57
|
+
translate(response: CbmHistoryModel.ListResponse.Item[], translation: CbmUserHistory.Translation[]): CbmHistoryModel.ListResponse.Item[];
|
|
58
|
+
}
|
package/src/lib/types/app/components/user-history/components/sri-history/sri-history.component.d.ts
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { DestroyRef, ElementRef, OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { FormControl, FormGroup } from '@angular/forms';
|
|
3
|
+
import { Subject } from 'rxjs';
|
|
4
|
+
import { CbmUserHistory } from '../../types';
|
|
5
|
+
import { CbmSriHistoryModel } from '@models/sri-history.domain.model';
|
|
6
|
+
import { CbmUserModel } from '@models/user.domain.repository';
|
|
7
|
+
import { CbmSriHistoryDomainRepository } from '@repositories/sri-history.domain.repository';
|
|
8
|
+
import { CbmNotificationService } from '@services/notification/notification.service';
|
|
9
|
+
import { CbmUserDomainRepository } from '@repositories/user.domain.repository';
|
|
10
|
+
export declare class SriHistoryComponent implements OnChanges, OnInit {
|
|
11
|
+
private sriHistoryRepository;
|
|
12
|
+
private notificationService;
|
|
13
|
+
private userRepository;
|
|
14
|
+
private destroyRef;
|
|
15
|
+
dropdownMenus: import("@angular/core").Signal<readonly ElementRef<any>[]>;
|
|
16
|
+
collection_id: import("@angular/core").InputSignal<string | undefined>;
|
|
17
|
+
event_module: import("@angular/core").InputSignal<string | undefined>;
|
|
18
|
+
collection_name: import("@angular/core").InputSignal<string | undefined>;
|
|
19
|
+
translation: import("@angular/core").InputSignal<CbmUserHistory.Translation[] | undefined>;
|
|
20
|
+
event: import("@angular/core").InputSignal<string | undefined>;
|
|
21
|
+
paginationSize: import("@angular/core").InputSignal<number>;
|
|
22
|
+
pressJsonRequest: import("@angular/core").OutputEmitterRef<CbmSriHistoryModel.ListResponse.Item.Request>;
|
|
23
|
+
pressJsonResponseSri: import("@angular/core").OutputEmitterRef<CbmSriHistoryModel.ListResponse.Item.Response>;
|
|
24
|
+
close: import("@angular/core").OutputEmitterRef<void>;
|
|
25
|
+
statusOfFetchSriHistory: import("@angular/core").WritableSignal<CbmUserHistory.Status>;
|
|
26
|
+
statusOfFetchUsers: import("@angular/core").WritableSignal<CbmUserHistory.Status>;
|
|
27
|
+
json: import("@angular/core").WritableSignal<object>;
|
|
28
|
+
tittleJson: import("@angular/core").WritableSignal<string | null>;
|
|
29
|
+
sriHistory: import("@angular/core").WritableSignal<CbmSriHistoryModel.ListResponse.Item[]>;
|
|
30
|
+
users: import("@angular/core").WritableSignal<CbmUserModel.ListResponse.Item[]>;
|
|
31
|
+
usersPagination: import("@angular/core").WritableSignal<CbmUserHistory.IPagination>;
|
|
32
|
+
isFilterVisible: import("@angular/core").WritableSignal<boolean>;
|
|
33
|
+
sriHistoryPagination: import("@angular/core").WritableSignal<CbmUserHistory.IPagination>;
|
|
34
|
+
subjectToSearchUser$: Subject<string>;
|
|
35
|
+
now: Date;
|
|
36
|
+
descriptionTranslate: {
|
|
37
|
+
[key: string]: string;
|
|
38
|
+
};
|
|
39
|
+
formToFilter: FormGroup<{
|
|
40
|
+
fromDate: FormControl<string | null>;
|
|
41
|
+
toDate: FormControl<string | null>;
|
|
42
|
+
user: FormControl<CbmUserModel.ListResponse.Item | null>;
|
|
43
|
+
}>;
|
|
44
|
+
constructor(sriHistoryRepository: CbmSriHistoryDomainRepository, notificationService: CbmNotificationService, userRepository: CbmUserDomainRepository, destroyRef: DestroyRef);
|
|
45
|
+
ngOnInit(): void;
|
|
46
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
47
|
+
get userControl(): FormControl<CbmUserModel.ListResponse.Item | null>;
|
|
48
|
+
compareWithId(a: {
|
|
49
|
+
_id: string;
|
|
50
|
+
}, b: {
|
|
51
|
+
_id: string;
|
|
52
|
+
}): boolean;
|
|
53
|
+
makeSubscriptions(): void;
|
|
54
|
+
makeInitialRequests(): void;
|
|
55
|
+
searchSriHistory(): void;
|
|
56
|
+
fetchSriHistory(): void;
|
|
57
|
+
fetchUsers(searchTerm?: string): void;
|
|
58
|
+
onGoToPage(page: number): void;
|
|
59
|
+
onNextPage(page: number): void;
|
|
60
|
+
onPreviousPage(page: number): void;
|
|
61
|
+
onPageSizeChange(size: number): void;
|
|
62
|
+
onDropdownMenuClick(event: MouseEvent, dropdownMenu: HTMLUListElement): void;
|
|
63
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { TemplateRef } from '@angular/core';
|
|
2
|
+
export declare class TabItemComponent {
|
|
3
|
+
hasPrintReports: import("@angular/core").InputSignal<boolean>;
|
|
4
|
+
hasEmailReports: import("@angular/core").InputSignal<boolean>;
|
|
5
|
+
tabName: import("@angular/core").InputSignal<string>;
|
|
6
|
+
templateRef: import("@angular/core").InputSignal<TemplateRef<any>>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { AfterContentInit } from '@angular/core';
|
|
2
|
+
import { TabItemComponent } from '../tab-item/tab-item.component';
|
|
3
|
+
export declare class TabsComponent implements AfterContentInit {
|
|
4
|
+
tabs: import("@angular/core").Signal<readonly TabItemComponent[]>;
|
|
5
|
+
activeTab: import("@angular/core").WritableSignal<TabItemComponent | null>;
|
|
6
|
+
ngAfterContentInit(): void;
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PAGE_SIZE = 5;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ElementRef, Renderer2 } from '@angular/core';
|
|
2
|
+
export declare class DropdownDirective {
|
|
3
|
+
private elementRef;
|
|
4
|
+
private renderer;
|
|
5
|
+
private isOpen;
|
|
6
|
+
constructor(elementRef: ElementRef, renderer: Renderer2);
|
|
7
|
+
toggleDropdown(event: MouseEvent): void;
|
|
8
|
+
closeDropdown(event: MouseEvent): void;
|
|
9
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare namespace CbmUserHistory {
|
|
2
|
+
interface Translation {
|
|
3
|
+
event: string;
|
|
4
|
+
translation: string;
|
|
5
|
+
enabled?: 'ACTIVE' | 'INACTIVE';
|
|
6
|
+
}
|
|
7
|
+
type Status = 'init' | 'loading' | 'success' | 'failed';
|
|
8
|
+
interface IPagination {
|
|
9
|
+
page: number;
|
|
10
|
+
size: number;
|
|
11
|
+
totalPages: number | null;
|
|
12
|
+
totalRecords: number;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { CbmUserHistory } from './types';
|
|
2
|
+
import { CbmHistoryModel } from '@models/history.domain.repository';
|
|
3
|
+
import { GeneralHistoryComponent } from './components/general-history/general-history.component';
|
|
4
|
+
import { PrintHistoryComponent } from './components/print-history/print-history.component';
|
|
5
|
+
import { EmailHistoryComponent } from './components/email-history/email-history.component';
|
|
6
|
+
import { SriHistoryComponent } from './components/sri-history/sri-history.component';
|
|
7
|
+
export declare class CbmUserHistoryComponent {
|
|
8
|
+
generalHistoryTabRef: import("@angular/core").Signal<GeneralHistoryComponent | undefined>;
|
|
9
|
+
printHistoryTabRef: import("@angular/core").Signal<PrintHistoryComponent | undefined>;
|
|
10
|
+
emailHistoryTabRef: import("@angular/core").Signal<EmailHistoryComponent | undefined>;
|
|
11
|
+
sriHistoryTabRef: import("@angular/core").Signal<SriHistoryComponent | undefined>;
|
|
12
|
+
isSriHistory: import("@angular/core").InputSignal<boolean>;
|
|
13
|
+
collection_id: import("@angular/core").InputSignal<string | undefined>;
|
|
14
|
+
event_module: import("@angular/core").InputSignal<string | undefined>;
|
|
15
|
+
event_module_report: import("@angular/core").InputSignal<string | undefined>;
|
|
16
|
+
collection_name: import("@angular/core").InputSignal<string | undefined>;
|
|
17
|
+
collection_name_email: import("@angular/core").InputSignal<string | undefined>;
|
|
18
|
+
collection_name_report: import("@angular/core").InputSignal<string | undefined>;
|
|
19
|
+
translation: import("@angular/core").InputSignal<CbmUserHistory.Translation[] | undefined>;
|
|
20
|
+
event: import("@angular/core").InputSignal<string | undefined>;
|
|
21
|
+
paginationSize: import("@angular/core").InputSignal<number>;
|
|
22
|
+
hasPrintReport: import("@angular/core").InputSignal<boolean>;
|
|
23
|
+
hasEmailReport: import("@angular/core").InputSignal<boolean>;
|
|
24
|
+
pressJson: import("@angular/core").OutputEmitterRef<CbmHistoryModel.ListResponse.Item>;
|
|
25
|
+
close: import("@angular/core").OutputEmitterRef<void>;
|
|
26
|
+
tab: import("@angular/core").OutputEmitterRef<string>;
|
|
27
|
+
fetchHistory: () => void;
|
|
28
|
+
fetchPrintHistory: () => void;
|
|
29
|
+
fetchSriHistory: () => void;
|
|
30
|
+
}
|
package/src/lib/types/app/directives/horizontal-overflow/horizontal-overflow-arrows.directive.d.ts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { AfterViewInit, ComponentFactoryResolver, ComponentRef, ElementRef, ViewContainerRef } from '@angular/core';
|
|
2
|
+
import { ArrowLeftComponent } from './components/arrow-left/arrow-left.component';
|
|
3
|
+
import { ArrowRightComponent } from './components/arrow-right/arrow-right.component';
|
|
4
|
+
export declare class CbmHorizontalOverflowArrowsDirective implements AfterViewInit {
|
|
5
|
+
private elementRef;
|
|
6
|
+
private componentFactoryResolver;
|
|
7
|
+
private viewContainerRef;
|
|
8
|
+
arrowsSize: import("@angular/core").InputSignal<number>;
|
|
9
|
+
arrowsPadding: import("@angular/core").InputSignal<number | undefined>;
|
|
10
|
+
scrollStep: import("@angular/core").InputSignal<number>;
|
|
11
|
+
arrowLeftRef?: ComponentRef<ArrowLeftComponent>;
|
|
12
|
+
arrowRightRef?: ComponentRef<ArrowRightComponent>;
|
|
13
|
+
constructor(elementRef: ElementRef<HTMLElement>, componentFactoryResolver: ComponentFactoryResolver, viewContainerRef: ViewContainerRef);
|
|
14
|
+
ngAfterViewInit(): void;
|
|
15
|
+
private createArrowLeft;
|
|
16
|
+
private createArrowRight;
|
|
17
|
+
onScroll(event: Event): void;
|
|
18
|
+
private showArrowRight;
|
|
19
|
+
private showArrowLeft;
|
|
20
|
+
private hideArrowRight;
|
|
21
|
+
private hideArrowLeft;
|
|
22
|
+
onWindowResize(event: Event): void;
|
|
23
|
+
}
|
package/src/lib/types/app/directives/horizontal-overflow/horizontal-overflow-shadow.directive.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AfterViewChecked, ElementRef } from '@angular/core';
|
|
2
|
+
export declare class CbmHorizontalOverflowShadowDirective implements AfterViewChecked {
|
|
3
|
+
private elementRef;
|
|
4
|
+
constructor(elementRef: ElementRef);
|
|
5
|
+
ngAfterViewChecked(): void;
|
|
6
|
+
onScroll(event: Event): void;
|
|
7
|
+
onWindowResize(event: Event): void;
|
|
8
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ElementRef, OnInit } from '@angular/core';
|
|
2
|
+
import { NgControl } from '@angular/forms';
|
|
3
|
+
export declare class CbmNumberInputDirective implements OnInit {
|
|
4
|
+
private elementRef;
|
|
5
|
+
private ngControl;
|
|
6
|
+
maxDecimalPlaces?: number;
|
|
7
|
+
negative: boolean;
|
|
8
|
+
max?: number;
|
|
9
|
+
zeroOnBlur?: boolean;
|
|
10
|
+
numberOnBlur?: number;
|
|
11
|
+
allowPasteArray?: boolean;
|
|
12
|
+
onPasteArray: import("@angular/core").OutputEmitterRef<string[]>;
|
|
13
|
+
private regex;
|
|
14
|
+
constructor(elementRef: ElementRef, ngControl: NgControl);
|
|
15
|
+
ngOnInit(): void;
|
|
16
|
+
onKeyDown(event: KeyboardEvent): void;
|
|
17
|
+
onPaste(event: ClipboardEvent): void;
|
|
18
|
+
aClipboardItem(pastedInput: string, event: ClipboardEvent): void;
|
|
19
|
+
multipleClipboardItems(pastedInput: string[], event: ClipboardEvent): void;
|
|
20
|
+
onDrop(event: DragEvent): void;
|
|
21
|
+
onBlur(): void;
|
|
22
|
+
format(value: string): void;
|
|
23
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { AfterViewInit, ElementRef, OnDestroy, Renderer2 } from '@angular/core';
|
|
2
|
+
import { ResizeContainerModel } from './resize-container.model';
|
|
3
|
+
export declare class CbmResizeContainerDirective implements AfterViewInit, OnDestroy {
|
|
4
|
+
private elementRef;
|
|
5
|
+
private renderer2;
|
|
6
|
+
observerAttributes: import("@angular/core").InputSignal<boolean>;
|
|
7
|
+
resizeHeight: import("@angular/core").InputSignal<string | number>;
|
|
8
|
+
resizeEvent: import("@angular/core").InputSignal<string | undefined>;
|
|
9
|
+
'child-list': import("@angular/core").InputSignal<boolean | ResizeContainerModel.Boolean>;
|
|
10
|
+
'sub-tree': import("@angular/core").InputSignal<boolean | ResizeContainerModel.Boolean>;
|
|
11
|
+
'center-scroll': import("@angular/core").InputSignal<boolean>;
|
|
12
|
+
childList: import("@angular/core").Signal<boolean>;
|
|
13
|
+
subtree: import("@angular/core").Signal<boolean>;
|
|
14
|
+
constructor(elementRef: ElementRef<HTMLElement>, renderer2: Renderer2);
|
|
15
|
+
mutationObserver: MutationObserver;
|
|
16
|
+
ngAfterViewInit(): void;
|
|
17
|
+
ngOnDestroy(): void;
|
|
18
|
+
private updateContainer;
|
|
19
|
+
private controlScroll;
|
|
20
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TCbmTooltipPosition, TCbmTooltipTheme } from './types';
|
|
2
|
+
export declare class CbmTooltipComponent {
|
|
3
|
+
tooltip: import("@angular/core").WritableSignal<string>;
|
|
4
|
+
position: import("@angular/core").WritableSignal<TCbmTooltipPosition>;
|
|
5
|
+
theme: import("@angular/core").WritableSignal<TCbmTooltipTheme>;
|
|
6
|
+
left: import("@angular/core").WritableSignal<number>;
|
|
7
|
+
top: import("@angular/core").WritableSignal<number>;
|
|
8
|
+
visible: import("@angular/core").WritableSignal<boolean>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { OnChanges, ElementRef, ApplicationRef, ComponentFactoryResolver, Injector, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { TCbmTooltipPosition, TCbmTooltipTheme } from './tooltip/types';
|
|
3
|
+
export declare class CbmTooltipDirective implements OnChanges {
|
|
4
|
+
private elementRef;
|
|
5
|
+
private appRef;
|
|
6
|
+
private componentFactoryResolver;
|
|
7
|
+
private injector;
|
|
8
|
+
cbmTooltip: string;
|
|
9
|
+
tooltipPosition: TCbmTooltipPosition;
|
|
10
|
+
tooltipTheme: TCbmTooltipTheme;
|
|
11
|
+
tooltipShowDelay: number;
|
|
12
|
+
tooltipHideDelay: number;
|
|
13
|
+
appendTo?: Element | string;
|
|
14
|
+
private componentRef;
|
|
15
|
+
private showTimeout?;
|
|
16
|
+
private hideTimeout?;
|
|
17
|
+
private appendToElement;
|
|
18
|
+
constructor(elementRef: ElementRef, appRef: ApplicationRef, componentFactoryResolver: ComponentFactoryResolver, injector: Injector);
|
|
19
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
20
|
+
onMouseEnter(): void;
|
|
21
|
+
private showTooltip;
|
|
22
|
+
private setTooltipComponentProperties;
|
|
23
|
+
onMouseLeave(): void;
|
|
24
|
+
ngOnDestroy(): void;
|
|
25
|
+
destroy(): void;
|
|
26
|
+
}
|