@cbm-common/cbm-types 0.0.255 → 0.0.256
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/additional-data-modal/additional-data/additional-data.d.ts +13 -0
- package/lib/components/additional-data-modal/additional-data-modal.d.ts +8 -0
- package/lib/components/advanced-item-search-modal/item-list/item-list.d.ts +4 -1
- package/lib/components/stock-by-warehouse/stock-by-warehouse.d.ts +7 -1
- package/package.json +1 -1
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
import { FormControl } from '@angular/forms';
|
|
2
|
+
import { CbmCostCenterModel } from '../../../domain/models/cost-center.domain.model';
|
|
3
|
+
import { Subject } from 'rxjs';
|
|
2
4
|
export declare class AdditionalDataComponent {
|
|
3
5
|
replaceItemNameControl: import("@angular/core").InputSignal<FormControl<string | null>>;
|
|
4
6
|
commentaryItemControl: import("@angular/core").InputSignal<FormControl<string | null>>;
|
|
7
|
+
costCenterControl: import("@angular/core").InputSignal<FormControl<CbmCostCenterModel.ListResponse.Data | null> | undefined>;
|
|
8
|
+
costCenterControlConfig: import("@angular/core").InputSignal<{
|
|
9
|
+
loading: boolean;
|
|
10
|
+
searchCostCenterInput$: Subject<string>;
|
|
11
|
+
data: CbmCostCenterModel.ListResponse.Data[];
|
|
12
|
+
} | undefined>;
|
|
5
13
|
iceItemControl: import("@angular/core").InputSignal<FormControl<string | null> | undefined>;
|
|
6
14
|
irbpnrItemControl: import("@angular/core").InputSignal<FormControl<string | null> | undefined>;
|
|
7
15
|
unitDiscountControl: import("@angular/core").InputSignal<FormControl<string | null> | undefined>;
|
|
@@ -10,4 +18,9 @@ export declare class AdditionalDataComponent {
|
|
|
10
18
|
onBlurUnitDiscount: import("@angular/core").OutputEmitterRef<void>;
|
|
11
19
|
onBlurPriceWithIva: import("@angular/core").OutputEmitterRef<void>;
|
|
12
20
|
onBlurUnitPriceWithIva: import("@angular/core").OutputEmitterRef<void>;
|
|
21
|
+
protected compareWithId(a: {
|
|
22
|
+
_id: string;
|
|
23
|
+
}, b: {
|
|
24
|
+
_id: string;
|
|
25
|
+
}): boolean;
|
|
13
26
|
}
|
|
@@ -1,11 +1,19 @@
|
|
|
1
1
|
import { ElementRef } from '@angular/core';
|
|
2
2
|
import { FormControl } from '@angular/forms';
|
|
3
3
|
import { IItemInformation } from './additional-data-modal.model';
|
|
4
|
+
import { CbmCostCenterModel } from '../../domain/models/cost-center.domain.model';
|
|
5
|
+
import { Subject } from 'rxjs';
|
|
4
6
|
export declare class CbmAdditionalDataModalComponent {
|
|
5
7
|
modalId: import("@angular/core").InputSignal<string>;
|
|
6
8
|
isOpen: import("@angular/core").InputSignal<boolean | undefined>;
|
|
7
9
|
replaceItemNameControl: import("@angular/core").InputSignal<FormControl<string | null>>;
|
|
8
10
|
commentaryItemControl: import("@angular/core").InputSignal<FormControl<string | null>>;
|
|
11
|
+
costCenterControl: import("@angular/core").InputSignal<FormControl<CbmCostCenterModel.ListResponse.Data | null> | undefined>;
|
|
12
|
+
costCenterControlConfig: import("@angular/core").InputSignal<{
|
|
13
|
+
loading: boolean;
|
|
14
|
+
searchCostCenterInput$: Subject<string>;
|
|
15
|
+
data: CbmCostCenterModel.ListResponse.Data[];
|
|
16
|
+
} | undefined>;
|
|
9
17
|
unitDiscountControl: import("@angular/core").InputSignal<FormControl<string | null> | undefined>;
|
|
10
18
|
priceWithIvaControl: import("@angular/core").InputSignal<FormControl<string | null> | undefined>;
|
|
11
19
|
unitPriceWithIvaControl: import("@angular/core").InputSignal<FormControl<string | null> | undefined>;
|
|
@@ -20,6 +20,7 @@ import { CbmModalConfirmComponent } from '../../modal-confirm/modal-confirm';
|
|
|
20
20
|
import { StockByWarehouseModalCompModel } from '../../stock-by-warehouse-modal/stock-by-warehouse-modal.model';
|
|
21
21
|
import { ConfigFilters, ITableColumnAdvancedItemSearchModal } from '../advanced-item-search-modal';
|
|
22
22
|
import { IPagination, TStatus } from '../types';
|
|
23
|
+
import { Router } from '@angular/router';
|
|
23
24
|
interface IItemWithChecked extends CbmItemModel.AdvancedItemListResponse.Item {
|
|
24
25
|
checked: boolean;
|
|
25
26
|
}
|
|
@@ -34,7 +35,8 @@ export declare class ItemListComponent implements OnInit {
|
|
|
34
35
|
private destroyRef;
|
|
35
36
|
private readonly warehouseRepository;
|
|
36
37
|
private readonly authReactiveService;
|
|
37
|
-
|
|
38
|
+
private router;
|
|
39
|
+
constructor(priceListRepository: CbmPriceListDomainRepository, manufacturerRepository: CbmManufacturerRepository, groupRepository: CbmGroupDomainRepository, itemRepository: CbmItemDomainRepository, providerRepository: CbmProviderRepository, notificationService: CbmNotificationService, tableConfigService: TableConfigurationService, destroyRef: DestroyRef, warehouseRepository: CbmWarehouseDomainRepository, authReactiveService: CbmAuthReactiveService, router: Router);
|
|
38
40
|
private readonly CACHE_TTL_MS;
|
|
39
41
|
private searchCache;
|
|
40
42
|
private getCacheKey;
|
|
@@ -129,6 +131,7 @@ export declare class ItemListComponent implements OnInit {
|
|
|
129
131
|
removeRememberedItem(item: IItemWithChecked): void;
|
|
130
132
|
/** Marca/desmarca todos los items visibles (no agregados aún) */
|
|
131
133
|
toggleCheckAll(): void;
|
|
134
|
+
redirectToMovements(item: CbmItemModel.ListResponse.Item): void;
|
|
132
135
|
newWindowWithItem(item: CbmItemModel.ListResponse.Item): void;
|
|
133
136
|
}
|
|
134
137
|
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { DestroyRef, ElementRef } from '@angular/core';
|
|
2
|
+
import { Router } from '@angular/router';
|
|
2
3
|
import { CbmStockItemModel } from '../../domain/models/stock-item.domain.model';
|
|
3
4
|
import { CbmStockItemRepository } from '../../domain/repositories/stock-item.domain.repository';
|
|
4
5
|
import { CbmNotificationService } from '../../domain/services/notification/notification.service';
|
|
@@ -7,6 +8,7 @@ export declare class StockByWarehouse {
|
|
|
7
8
|
private stockItemRepository;
|
|
8
9
|
private destroyRef;
|
|
9
10
|
private notificationService;
|
|
11
|
+
private router;
|
|
10
12
|
statusOfGetWarehouseStock: import("@angular/core").WritableSignal<status>;
|
|
11
13
|
statusOfGetBatchStock: import("@angular/core").WritableSignal<status>;
|
|
12
14
|
statusOfGetSerieStock: import("@angular/core").WritableSignal<status>;
|
|
@@ -23,8 +25,9 @@ export declare class StockByWarehouse {
|
|
|
23
25
|
modalId: import("@angular/core").InputSignal<string>;
|
|
24
26
|
data: import("@angular/core").InputSignal<cbmStockWarehouseModalModel.item | null>;
|
|
25
27
|
viewModal: import("@angular/core").InputSignal<boolean>;
|
|
28
|
+
showActions: import("@angular/core").InputSignal<boolean>;
|
|
26
29
|
modalRef: import("@angular/core").Signal<ElementRef<any> | undefined>;
|
|
27
|
-
constructor(stockItemRepository: CbmStockItemRepository, destroyRef: DestroyRef, notificationService: CbmNotificationService);
|
|
30
|
+
constructor(stockItemRepository: CbmStockItemRepository, destroyRef: DestroyRef, notificationService: CbmNotificationService, router: Router);
|
|
28
31
|
getWarehouseStock(): void;
|
|
29
32
|
getBatchStock(): void;
|
|
30
33
|
getSerieStock(): void;
|
|
@@ -41,4 +44,7 @@ export declare class StockByWarehouse {
|
|
|
41
44
|
onNextPageWarehouse(page: number): void;
|
|
42
45
|
onPreviousPageWarehouse(page: number): void;
|
|
43
46
|
onPageSizeChangeWarehouse(size: number): void;
|
|
47
|
+
navigateToProductMovement(): void;
|
|
48
|
+
navigateToCommittedProductMovement(): void;
|
|
49
|
+
navigateToTransitProductMovement(): void;
|
|
44
50
|
}
|