@cbm-common/cbm-types 0.0.161 → 0.0.162
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/lib/components/advanced-account-search-modal/advanced-account-search-modal.d.ts +61 -0
- package/lib/components/advanced-account-search-modal/constants.d.ts +1 -0
- package/lib/components/advanced-account-search-modal/types.d.ts +7 -0
- package/lib/domain/models/sales-pending-document.domain.model.d.ts +2 -1
- package/package.json +1 -1
- package/public-api.d.ts +4 -1
- package/lib/components/accounting-seat/directives/drop-down-menu.directive.d.ts +0 -13
- package/lib/components/accounting-seat/directives/drop-down.directive.d.ts +0 -10
- package/lib/components/record-detail-metadata/components/options/options.d.ts +0 -13
- package/lib/components/record-detail-metadata/directives/drop-down-menu.directive.d.ts +0 -13
- package/lib/components/record-detail-metadata/directives/drop-down.directive.d.ts +0 -9
- package/lib/infrastructure/repositories/blanket-agreement-category-service..infrastructure.repository.d.ts +0 -7
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { DestroyRef, OnInit } from '@angular/core';
|
|
2
|
+
import { Subject } from 'rxjs';
|
|
3
|
+
import { CbmAccountRepository } from '../../domain/repositories/account.domain.repository';
|
|
4
|
+
import { CbmAccountModel } from '../../domain/models/account.domain.model';
|
|
5
|
+
import { CbmModalConfirmComponent } from '../modal-confirm/modal-confirm';
|
|
6
|
+
import { FormControl, FormGroup } from '@angular/forms';
|
|
7
|
+
import { CbmNotificationService } from '../../domain/services/notification/notification.service';
|
|
8
|
+
import { PaginatedListService } from '@cbm-common/data-access';
|
|
9
|
+
interface IAccountWithChecked extends CbmAccountModel.ListPaginatedResponse.Item {
|
|
10
|
+
checked: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare class AdvancedAccountSearchModal implements OnInit {
|
|
13
|
+
private readonly destroyRef;
|
|
14
|
+
private accountRepository;
|
|
15
|
+
private notificationService;
|
|
16
|
+
constructor(destroyRef: DestroyRef, accountRepository: CbmAccountRepository, notificationService: CbmNotificationService);
|
|
17
|
+
modalConfirmRef: import("@angular/core").Signal<CbmModalConfirmComponent>;
|
|
18
|
+
'modal-id': import("@angular/core").InputSignal<string>;
|
|
19
|
+
isOpen: import("@angular/core").InputSignal<boolean | undefined>;
|
|
20
|
+
addedAccountsIds: import("@angular/core").InputSignal<string[]>;
|
|
21
|
+
hideTable: import("@angular/core").InputSignal<boolean>;
|
|
22
|
+
codeFilter: import("@angular/core").WritableSignal<string | undefined>;
|
|
23
|
+
nameCodeFilter: import("@angular/core").InputSignal<string | undefined>;
|
|
24
|
+
isOnlyOneAccountCoincidence: import("@angular/core").OutputEmitterRef<CbmAccountModel.ListPaginatedResponse.Item | undefined>;
|
|
25
|
+
addAccount: import("@angular/core").OutputEmitterRef<CbmAccountModel.ListPaginatedResponse.Item>;
|
|
26
|
+
addAllAccounts: import("@angular/core").OutputEmitterRef<CbmAccountModel.ListPaginatedResponse.Item[]>;
|
|
27
|
+
selectAccount: import("@angular/core").OutputEmitterRef<CbmAccountModel.ListPaginatedResponse.Item>;
|
|
28
|
+
open: import("@angular/core").OutputEmitterRef<void>;
|
|
29
|
+
close: import("@angular/core").OutputEmitterRef<void>;
|
|
30
|
+
checkAllAccounts: import("@angular/core").WritableSignal<boolean>;
|
|
31
|
+
isTableHide: import("@angular/core").WritableSignal<boolean>;
|
|
32
|
+
isFilterVisible: import("@angular/core").WritableSignal<boolean>;
|
|
33
|
+
accounts: import("@angular/core").WritableSignal<IAccountWithChecked[]>;
|
|
34
|
+
account: import("@angular/core").OutputEmitterRef<CbmAccountModel.ListPaginatedResponse.Item | undefined>;
|
|
35
|
+
checkedAccounts: import("@angular/core").WritableSignal<CbmAccountModel.ListPaginatedResponse.Item[]>;
|
|
36
|
+
isSmallScreen: import("@angular/core").WritableSignal<boolean>;
|
|
37
|
+
modalId: import("@angular/core").Signal<string>;
|
|
38
|
+
computedAccounts: import("@angular/core").Signal<IAccountWithChecked[]>;
|
|
39
|
+
isVisible: Subject<boolean>;
|
|
40
|
+
selectedAccount: import("@angular/core").WritableSignal<CbmAccountModel.ListPaginatedResponse.Item | null>;
|
|
41
|
+
accounts$: PaginatedListService<CbmAccountModel.ListPaginatedResponse, CbmAccountModel.ListPaginatedParams, CbmAccountModel.ListPaginatedResponse>;
|
|
42
|
+
formToFilter: FormGroup<{
|
|
43
|
+
nameCode: FormControl<string | null>;
|
|
44
|
+
code: FormControl<string | null>;
|
|
45
|
+
checked: FormControl<boolean | null>;
|
|
46
|
+
}>;
|
|
47
|
+
get nameCodeControl(): FormControl<string | null>;
|
|
48
|
+
get codeControl(): FormControl<string | null>;
|
|
49
|
+
ngOnInit(): void;
|
|
50
|
+
makeSubscriptions(): void;
|
|
51
|
+
makeInitialRequests(): void;
|
|
52
|
+
searchAccounts(): void;
|
|
53
|
+
fetchAccounts(rp?: boolean): Promise<void>;
|
|
54
|
+
_addAccount(account: CbmAccountModel.ListPaginatedResponse.Item): void;
|
|
55
|
+
validateConfirmToAddAllAccounts(): Promise<void>;
|
|
56
|
+
_addAllAccounts(): void;
|
|
57
|
+
_checkItem(item: IAccountWithChecked): void;
|
|
58
|
+
openModal(codeFilter?: string): void;
|
|
59
|
+
closeModal(): void;
|
|
60
|
+
}
|
|
61
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PAGE_SIZE = 20;
|
|
@@ -24,8 +24,10 @@ export declare namespace CbmSalesPendingDocumentModel {
|
|
|
24
24
|
_id: string;
|
|
25
25
|
created_at: number;
|
|
26
26
|
document_nomenclature: string;
|
|
27
|
+
document_number: string;
|
|
27
28
|
document_emission_point_number: string;
|
|
28
29
|
document_sequence: string;
|
|
30
|
+
new_document_number: string;
|
|
29
31
|
balance: number;
|
|
30
32
|
client_id: string;
|
|
31
33
|
client_payment_deadline?: number;
|
|
@@ -73,7 +75,6 @@ export declare namespace CbmSalesPendingDocumentModel {
|
|
|
73
75
|
client_branch_contact_full_name?: string;
|
|
74
76
|
client_branch_contact_cellphone?: string;
|
|
75
77
|
client_branch_contact_email?: string[];
|
|
76
|
-
new_document_number: string;
|
|
77
78
|
date: number;
|
|
78
79
|
type: string;
|
|
79
80
|
checked?: boolean;
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -511,4 +511,7 @@ export * from './lib/domain/models/blanket-agreement.domain.model';
|
|
|
511
511
|
|
|
512
512
|
//#region manufacturer repository
|
|
513
513
|
export * from './lib/domain/repositories/manufacturer.domain.repository';
|
|
514
|
-
export * from './lib/domain/models/manufacturer.domain.model';
|
|
514
|
+
export * from './lib/domain/models/manufacturer.domain.model';
|
|
515
|
+
|
|
516
|
+
//#region Adavnced account search modal component
|
|
517
|
+
export * from './lib/components/advanced-account-search-modal/advanced-account-search-modal';
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { AfterViewInit, ElementRef, OnChanges, Renderer2, SimpleChanges } from '@angular/core';
|
|
2
|
-
export declare class DropdownMenuDirective implements OnChanges, AfterViewInit {
|
|
3
|
-
private element;
|
|
4
|
-
private renderer2;
|
|
5
|
-
hiddenMenu: import("@angular/core").InputSignal<boolean>;
|
|
6
|
-
hiddenMenuOp: import("@angular/core").WritableSignal<boolean>;
|
|
7
|
-
constructor(element: ElementRef, renderer2: Renderer2);
|
|
8
|
-
ngAfterViewInit(): void;
|
|
9
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
10
|
-
toggle(event: Event): void;
|
|
11
|
-
private toggleMenu;
|
|
12
|
-
initStyle(): void;
|
|
13
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { AfterViewInit, ElementRef, Renderer2 } from '@angular/core';
|
|
2
|
-
export declare class DropdownDirective implements AfterViewInit {
|
|
3
|
-
private elementRef;
|
|
4
|
-
private renderer;
|
|
5
|
-
private isOpen;
|
|
6
|
-
constructor(elementRef: ElementRef, renderer: Renderer2);
|
|
7
|
-
ngAfterViewInit(): void;
|
|
8
|
-
toggleDropdown(event: MouseEvent): void;
|
|
9
|
-
closeDropdown(event: MouseEvent): void;
|
|
10
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { WritableSignal } from '@angular/core';
|
|
2
|
-
import { Router, ActivatedRoute, Params } from '@angular/router';
|
|
3
|
-
import { CbmRecordDetailMetadataModel } from "../../types";
|
|
4
|
-
export declare class OptionsComponent {
|
|
5
|
-
private router;
|
|
6
|
-
private route;
|
|
7
|
-
constructor(router: Router, route: ActivatedRoute);
|
|
8
|
-
metadata: import("@angular/core").InputSignal<CbmRecordDetailMetadataModel.metadata | null>;
|
|
9
|
-
options: import("@angular/core").InputSignal<CbmRecordDetailMetadataModel.options[] | undefined>;
|
|
10
|
-
optionInSignals: WritableSignal<WritableSignal<CbmRecordDetailMetadataModel.options>[]>;
|
|
11
|
-
executeFunction(option: WritableSignal<CbmRecordDetailMetadataModel.options>): void;
|
|
12
|
-
navigate(routerLink?: string, queryParams?: Params): void;
|
|
13
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { AfterViewInit, ElementRef, OnChanges, Renderer2, SimpleChanges } from '@angular/core';
|
|
2
|
-
export declare class DropdownMenuDirective implements OnChanges, AfterViewInit {
|
|
3
|
-
private element;
|
|
4
|
-
private renderer2;
|
|
5
|
-
hiddenMenu: import("@angular/core").InputSignal<boolean>;
|
|
6
|
-
hiddenMenuOp: import("@angular/core").WritableSignal<boolean>;
|
|
7
|
-
constructor(element: ElementRef, renderer2: Renderer2);
|
|
8
|
-
ngAfterViewInit(): void;
|
|
9
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
10
|
-
toggle(event: Event): void;
|
|
11
|
-
private toggleMenu;
|
|
12
|
-
initStyle(): void;
|
|
13
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Observable } from "rxjs";
|
|
2
|
-
import { CbmBlanketAgreementCategoryServiceModel } from "../../domain/models/blanket-agreement-category-service.domain.model";
|
|
3
|
-
export interface ICbmBlanketAgreementCategoryServiceRepository {
|
|
4
|
-
list(params: CbmBlanketAgreementCategoryServiceModel.ListParams): Observable<CbmBlanketAgreementCategoryServiceModel.ListResponse>;
|
|
5
|
-
save(data: CbmBlanketAgreementCategoryServiceModel.SaveBody): Observable<CbmBlanketAgreementCategoryServiceModel.ConfirmResponse>;
|
|
6
|
-
delete(id: string): Observable<CbmBlanketAgreementCategoryServiceModel.ConfirmResponse>;
|
|
7
|
-
}
|