techlify-inventory-common 18.21.0 → 18.23.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 (17) hide show
  1. package/esm2022/lib/inventory-common/location/shelf/shelf-list/shelf-list.component.mjs +3 -3
  2. package/esm2022/lib/inventory-common/product/product-list/product-list.component.mjs +1 -1
  3. package/esm2022/lib/inventory-common/product/product-quick-search/product-quick-search.component.mjs +1 -1
  4. package/esm2022/lib/inventory-common/stock-issuances/stock-issuances-list/stock-issuances-list.component.mjs +5 -8
  5. package/esm2022/lib/inventory-common/stock-issuances/stock-issue-form/stock-issue-form/stock-issue-form.component.mjs +41 -14
  6. package/esm2022/lib/inventory-common/stock-issuances/stock-issue-form/stock-issue-form-button/stock-issue-form-button.component.mjs +8 -5
  7. package/esm2022/lib/inventory-common/stock-receipts/stock-receipt-form/stock-receipt-form/stock-receipt-form.component.mjs +37 -4
  8. package/esm2022/lib/inventory-common/stock-receipts/stock-receipt-form/stock-receipt-form-button/stock-receipt-form-button.component.mjs +1 -1
  9. package/esm2022/lib/inventory-common/stock-receipts/stock-receipts-list-page/stock-receipts-list-page.component.mjs +4 -4
  10. package/esm2022/lib/inventory-common/stock-transfer/stock-transfer-list/stock-transfer-list.component.mjs +18 -5
  11. package/fesm2022/techlify-inventory-common.mjs +110 -38
  12. package/fesm2022/techlify-inventory-common.mjs.map +1 -1
  13. package/lib/inventory-common/stock-issuances/stock-issue-form/stock-issue-form/stock-issue-form.component.d.ts +6 -2
  14. package/lib/inventory-common/stock-issuances/stock-issue-form/stock-issue-form-button/stock-issue-form-button.component.d.ts +3 -2
  15. package/lib/inventory-common/stock-receipts/stock-receipt-form/stock-receipt-form/stock-receipt-form.component.d.ts +4 -1
  16. package/lib/inventory-common/stock-transfer/stock-transfer-list/stock-transfer-list.component.d.ts +2 -0
  17. package/package.json +1 -1
@@ -11,7 +11,8 @@ export declare class StockIssueFormComponent extends TechlifyFormComponentInterf
11
11
  private dateUtils;
12
12
  private locationService;
13
13
  product: any;
14
- stockIssuance: any;
14
+ stockIssueProduct: any;
15
+ stockIssue: any;
15
16
  issuableType: string;
16
17
  issuableId: number;
17
18
  saved: EventEmitter<any>;
@@ -22,10 +23,13 @@ export declare class StockIssueFormComponent extends TechlifyFormComponentInterf
22
23
  batchesApiUrl: string;
23
24
  constructor(formValidatorService: FormValidatorService, formBuilder: FormBuilder, stockIssuanceService: StockIssuanceService, alertService: AlertService, dateUtils: DateUtils, locationService: LocationService);
24
25
  ngOnInit(): void;
26
+ patchFormData(): void;
27
+ patchFormProducts(stockIssuance: any): void;
28
+ updateFormWithProductArray(stockIssueProduct: any): void;
25
29
  get locationsCount(): number;
26
30
  save(): void;
27
31
  onProductChange(product: any): void;
28
32
  private resetBatchSelector;
29
33
  static ɵfac: i0.ɵɵFactoryDeclaration<StockIssueFormComponent, never>;
30
- static ɵcmp: i0.ɵɵComponentDeclaration<StockIssueFormComponent, "app-stock-issue-form", never, { "product": { "alias": "product"; "required": false; }; "stockIssuance": { "alias": "stockIssuance"; "required": false; }; "issuableType": { "alias": "issuableType"; "required": false; }; "issuableId": { "alias": "issuableId"; "required": false; }; }, { "saved": "saved"; "cancelled": "cancelled"; }, never, never, false, never>;
34
+ static ɵcmp: i0.ɵɵComponentDeclaration<StockIssueFormComponent, "app-stock-issue-form", never, { "product": { "alias": "product"; "required": false; }; "stockIssueProduct": { "alias": "stockIssueProduct"; "required": false; }; "stockIssue": { "alias": "stockIssue"; "required": false; }; "issuableType": { "alias": "issuableType"; "required": false; }; "issuableId": { "alias": "issuableId"; "required": false; }; }, { "saved": "saved"; "cancelled": "cancelled"; }, never, never, false, never>;
31
35
  }
@@ -4,7 +4,8 @@ import * as i0 from "@angular/core";
4
4
  export declare class StockIssueFormButtonComponent {
5
5
  private matDialog;
6
6
  product: any;
7
- stockIssuance: any;
7
+ stockIssueProduct: any;
8
+ stockIssue: any;
8
9
  icon: string | null;
9
10
  issuableType: string;
10
11
  issuableId: number;
@@ -14,5 +15,5 @@ export declare class StockIssueFormButtonComponent {
14
15
  showStockIssuanceForm(templateRef: TemplateRef<any>): void;
15
16
  onStockIssuanceSaved(item: any): void;
16
17
  static ɵfac: i0.ɵɵFactoryDeclaration<StockIssueFormButtonComponent, never>;
17
- static ɵcmp: i0.ɵɵComponentDeclaration<StockIssueFormButtonComponent, "app-stock-issue-form-button", never, { "product": { "alias": "product"; "required": false; }; "stockIssuance": { "alias": "stockIssuance"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "issuableType": { "alias": "issuableType"; "required": false; }; "issuableId": { "alias": "issuableId"; "required": false; }; }, { "saved": "saved"; }, never, never, false, never>;
18
+ static ɵcmp: i0.ɵɵComponentDeclaration<StockIssueFormButtonComponent, "app-stock-issue-form-button", never, { "product": { "alias": "product"; "required": false; }; "stockIssueProduct": { "alias": "stockIssueProduct"; "required": false; }; "stockIssue": { "alias": "stockIssue"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "issuableType": { "alias": "issuableType"; "required": false; }; "issuableId": { "alias": "issuableId"; "required": false; }; }, { "saved": "saved"; }, never, never, false, never>;
18
19
  }
@@ -12,6 +12,7 @@ export declare class StockReceiptFormComponent extends TechlifyFormComponentInte
12
12
  private locationService;
13
13
  product: any;
14
14
  stockReceipt: any;
15
+ stockReceiptProduct: any;
15
16
  latestLocationId: any;
16
17
  saved: EventEmitter<any>;
17
18
  cancelled: EventEmitter<any>;
@@ -19,9 +20,11 @@ export declare class StockReceiptFormComponent extends TechlifyFormComponentInte
19
20
  private locationsCountValue;
20
21
  constructor(formValidatorService: FormValidatorService, formBuilder: FormBuilder, stockReceiptService: StockReceiptService, alertService: AlertService, dateUtils: DateUtils, locationService: LocationService);
21
22
  ngOnInit(): void;
23
+ patchFormProducts(stockReceiptProduct: any): void;
24
+ updateFormWithProductArray(stockReceiptProduct: any): void;
22
25
  get locationsCount(): number;
23
26
  save(): void;
24
27
  private updateTotalAmount;
25
28
  static ɵfac: i0.ɵɵFactoryDeclaration<StockReceiptFormComponent, never>;
26
- static ɵcmp: i0.ɵɵComponentDeclaration<StockReceiptFormComponent, "app-stock-receipt-form", never, { "product": { "alias": "product"; "required": false; }; "stockReceipt": { "alias": "stockReceipt"; "required": false; }; "latestLocationId": { "alias": "latestLocationId"; "required": false; }; }, { "saved": "saved"; "cancelled": "cancelled"; }, never, never, false, never>;
29
+ static ɵcmp: i0.ɵɵComponentDeclaration<StockReceiptFormComponent, "app-stock-receipt-form", never, { "product": { "alias": "product"; "required": false; }; "stockReceipt": { "alias": "stockReceipt"; "required": false; }; "stockReceiptProduct": { "alias": "stockReceiptProduct"; "required": false; }; "latestLocationId": { "alias": "latestLocationId"; "required": false; }; }, { "saved": "saved"; "cancelled": "cancelled"; }, never, never, false, never>;
27
30
  }
@@ -3,6 +3,7 @@ import { StockTransferService } from '../stock-transfer.service';
3
3
  import { ErrorHandlerService, RequestHelperService, TechlifyListingControllerInterface } from 'ngx-techlify-core';
4
4
  import { FormBuilder } from '@angular/forms';
5
5
  import { ActivatedRoute } from "@angular/router";
6
+ import { Sort } from "@angular/material/sort";
6
7
  import * as i0 from "@angular/core";
7
8
  export declare class StockTransferListComponent extends TechlifyListingControllerInterface implements OnInit {
8
9
  private service;
@@ -18,6 +19,7 @@ export declare class StockTransferListComponent extends TechlifyListingControlle
18
19
  private updateFormWithQueryParams;
19
20
  private subscribeToFormChanges;
20
21
  private subscribeToRouteChanges;
22
+ onSortChange(sort: Sort): void;
21
23
  static ɵfac: i0.ɵɵFactoryDeclaration<StockTransferListComponent, never>;
22
24
  static ɵcmp: i0.ɵɵComponentDeclaration<StockTransferListComponent, "app-stock-transfer-list", never, { "productId": { "alias": "productId"; "required": false; }; }, {}, never, never, true, never>;
23
25
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "techlify-inventory-common",
3
- "version": "18.21.0",
3
+ "version": "18.23.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^18.2.0",
6
6
  "@angular/core": "^18.2.0"