@cbm-common/cbm-types 0.0.193 → 0.0.195
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-item-search-modal/item-list/item-list.d.ts +11 -1
- package/lib/components/documents-reference/components/delete/delete.d.ts +6 -6
- package/lib/directives/text-input/text-input.directive.d.ts +3 -2
- package/lib/domain/models/item.domain.model.d.ts +3 -0
- package/lib/domain/models/provider.domain.model.d.ts +14 -0
- package/package.json +1 -1
|
@@ -11,11 +11,14 @@ import { CbmNotificationService } from '../../../domain/services/notification/no
|
|
|
11
11
|
import { CbmModalConfirmComponent } from '../../modal-confirm/modal-confirm';
|
|
12
12
|
import { CbmTreeSelect } from '../../tree-select/types';
|
|
13
13
|
import { IPagination, TStatus } from '../types';
|
|
14
|
+
import { CbmManufacturerModel } from '../../../domain/models/manufacturer.domain.model';
|
|
15
|
+
import { CbmManufacturerRepository } from '../../../domain/repositories/manufacturer.domain.repository';
|
|
14
16
|
interface IItemWithChecked extends CbmItemModel.ListResponse.Item {
|
|
15
17
|
checked: boolean;
|
|
16
18
|
}
|
|
17
19
|
export declare class ItemListComponent {
|
|
18
20
|
private priceListRepository;
|
|
21
|
+
private manufacturerRepository;
|
|
19
22
|
private groupRepository;
|
|
20
23
|
private itemRepository;
|
|
21
24
|
private notificationService;
|
|
@@ -38,25 +41,31 @@ export declare class ItemListComponent {
|
|
|
38
41
|
items: import("@angular/core").WritableSignal<IItemWithChecked[]>;
|
|
39
42
|
checkedItems: import("@angular/core").WritableSignal<CbmItemModel.ListResponse.Item[]>;
|
|
40
43
|
priceLists: import("@angular/core").WritableSignal<CbmPriceListModel.ListResponse.Data[] | null>;
|
|
44
|
+
manufacturers: import("@angular/core").WritableSignal<CbmManufacturerModel.ListResponse.Item[]>;
|
|
41
45
|
statusOfFetchCategories: import("@angular/core").WritableSignal<TStatus>;
|
|
42
46
|
statusOfFetchItems: import("@angular/core").WritableSignal<TStatus>;
|
|
43
47
|
statusOfFetchPriceLists: import("@angular/core").WritableSignal<TStatus>;
|
|
48
|
+
statusOfFetchManufacturers: import("@angular/core").WritableSignal<TStatus>;
|
|
44
49
|
itemsPagination: import("@angular/core").WritableSignal<IPagination>;
|
|
50
|
+
manufacturerPagination: import("@angular/core").WritableSignal<IPagination>;
|
|
45
51
|
isSmallScreen: import("@angular/core").WritableSignal<boolean>;
|
|
46
52
|
computedItems: import("@angular/core").Signal<IItemWithChecked[]>;
|
|
47
53
|
subjectToSearchCategory$: Subject<string>;
|
|
48
54
|
subjectToSearchPriceLists$: Subject<string>;
|
|
55
|
+
subjectToSearchManufacturers$: Subject<string>;
|
|
49
56
|
formToFilter: FormGroup<{
|
|
50
57
|
priceList: FormControl<CbmPriceListModel.ListResponse.Data | null>;
|
|
58
|
+
manufacturer: FormControl<CbmManufacturerModel.ListResponse.Item | null>;
|
|
51
59
|
category: FormControl<CbmGroupModel.ListAsTreeResponse.Category | null>;
|
|
52
60
|
nameCode: FormControl<string | null>;
|
|
53
61
|
code: FormControl<string | null>;
|
|
54
62
|
checked: FormControl<boolean | null>;
|
|
55
63
|
}>;
|
|
56
|
-
constructor(priceListRepository: CbmPriceListDomainRepository, groupRepository: CbmGroupDomainRepository, itemRepository: CbmItemDomainRepository, notificationService: CbmNotificationService, destroyRef: DestroyRef);
|
|
64
|
+
constructor(priceListRepository: CbmPriceListDomainRepository, manufacturerRepository: CbmManufacturerRepository, groupRepository: CbmGroupDomainRepository, itemRepository: CbmItemDomainRepository, notificationService: CbmNotificationService, destroyRef: DestroyRef);
|
|
57
65
|
ngOnInit(): void;
|
|
58
66
|
ngOnChanges(changes: SimpleChanges): void;
|
|
59
67
|
get priceListControl(): FormControl<CbmPriceListModel.ListResponse.Data | null>;
|
|
68
|
+
get manufacturerControl(): FormControl<CbmManufacturerModel.ListResponse.Item | null>;
|
|
60
69
|
get nameCodeControl(): FormControl<string | null>;
|
|
61
70
|
get codeControl(): FormControl<string | null>;
|
|
62
71
|
compareWithId(a: {
|
|
@@ -73,6 +82,7 @@ export declare class ItemListComponent {
|
|
|
73
82
|
onPreviousPage(page: number): void;
|
|
74
83
|
onPageSizeChange(size: number): void;
|
|
75
84
|
fetchPriceLists(searchTerm?: string): void;
|
|
85
|
+
fetchManufacturers(searchTerm?: string): void;
|
|
76
86
|
fetchCategories(searchTerm?: string): void;
|
|
77
87
|
_addItem(item: CbmItemModel.ListResponse.Item): void;
|
|
78
88
|
validateConfirmToAddAllItems(): Promise<void>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { DestroyRef, OnInit } from '@angular/core';
|
|
2
2
|
import { FormControl, ValidatorFn } from '@angular/forms';
|
|
3
|
-
import { TLabels } from
|
|
4
|
-
import { CbmModalConfirmComponent } from
|
|
5
|
-
import { CbmRecordDetailMetadataModel } from
|
|
6
|
-
import { CbmDocumentReferenceModel } from
|
|
7
|
-
import { CbmDocumentReferenceDomainRepository } from
|
|
8
|
-
import { CbmNotificationService } from
|
|
3
|
+
import { TLabels } from '../../types';
|
|
4
|
+
import { CbmModalConfirmComponent } from '../../../modal-confirm/modal-confirm';
|
|
5
|
+
import { CbmRecordDetailMetadataModel } from '../../../record-detail-metadata/types';
|
|
6
|
+
import { CbmDocumentReferenceModel } from '../../../../domain/models/document-reference.domain.model';
|
|
7
|
+
import { CbmDocumentReferenceDomainRepository } from '../../../../domain/repositories/document-reference.domain.repository';
|
|
8
|
+
import { CbmNotificationService } from '../../../../domain/services/notification/notification.service';
|
|
9
9
|
export declare class DeleteComponent implements OnInit {
|
|
10
10
|
private notificationService;
|
|
11
11
|
private documentReferenceRepository;
|
|
@@ -2,8 +2,8 @@ import { ElementRef } from '@angular/core';
|
|
|
2
2
|
import { TCbmTextInputTransform } from './types';
|
|
3
3
|
export declare class CbmTextInputDirective {
|
|
4
4
|
private elementRef;
|
|
5
|
-
maxTextLength: import("@angular/core").InputSignal<number
|
|
6
|
-
maxWordLength: import("@angular/core").InputSignal<number
|
|
5
|
+
maxTextLength: import("@angular/core").InputSignal<number>;
|
|
6
|
+
maxWordLength: import("@angular/core").InputSignal<number>;
|
|
7
7
|
transform: import("@angular/core").InputSignal<TCbmTextInputTransform | undefined>;
|
|
8
8
|
pattern: import("@angular/core").InputSignal<string | RegExp | undefined>;
|
|
9
9
|
selfReference: boolean;
|
|
@@ -11,4 +11,5 @@ export declare class CbmTextInputDirective {
|
|
|
11
11
|
onKeyDown(event: KeyboardEvent): void;
|
|
12
12
|
onPaste(event: ClipboardEvent): void;
|
|
13
13
|
onInput(): void;
|
|
14
|
+
onBlur(): void;
|
|
14
15
|
}
|
|
@@ -21,6 +21,7 @@ export declare namespace CbmItemModel {
|
|
|
21
21
|
category_id?: string;
|
|
22
22
|
code_filter?: string;
|
|
23
23
|
name_code_filter?: string;
|
|
24
|
+
manufacturer_id?: string;
|
|
24
25
|
}
|
|
25
26
|
interface ListResponse {
|
|
26
27
|
success: boolean;
|
|
@@ -93,6 +94,8 @@ export declare namespace CbmItemModel {
|
|
|
93
94
|
tax_ice_type?: string;
|
|
94
95
|
tax_ice_vehicle?: boolean;
|
|
95
96
|
disabled_reason?: string;
|
|
97
|
+
manufacturer_name?: string;
|
|
98
|
+
manufacturer_code?: string;
|
|
96
99
|
}
|
|
97
100
|
namespace Item {
|
|
98
101
|
interface Category {
|
|
@@ -119,6 +119,13 @@ export declare namespace CbmProviderModel {
|
|
|
119
119
|
updated_at?: number;
|
|
120
120
|
updated_user?: string;
|
|
121
121
|
document_name_pay?: string;
|
|
122
|
+
foreign_tax_regime_type?: string;
|
|
123
|
+
payment_country_code?: string;
|
|
124
|
+
payment_country_name?: string;
|
|
125
|
+
payment_destination_country_code?: string;
|
|
126
|
+
payment_destination_country_name?: string;
|
|
127
|
+
double_taxation_treaty_applies?: boolean;
|
|
128
|
+
legal_withholding_applies?: string;
|
|
122
129
|
provider_contact?: Data.ProviderContact[];
|
|
123
130
|
provider_category?: Data.ProviderCategory;
|
|
124
131
|
}
|
|
@@ -225,6 +232,13 @@ export declare namespace CbmProviderModel {
|
|
|
225
232
|
bank_account_number?: string;
|
|
226
233
|
document_type_pay_code?: string;
|
|
227
234
|
document_type_pay_name?: string;
|
|
235
|
+
foreign_tax_regime_type?: string;
|
|
236
|
+
payment_country_code?: string;
|
|
237
|
+
payment_country_name?: string;
|
|
238
|
+
payment_destination_country_code?: string;
|
|
239
|
+
payment_destination_country_name?: string;
|
|
240
|
+
double_taxation_treaty_applies?: boolean;
|
|
241
|
+
legal_withholding_applies?: string;
|
|
228
242
|
contacts?: UpdateManagementBody.Contact[];
|
|
229
243
|
delete_contacts?: string;
|
|
230
244
|
}
|