techlify-inventory-common 18.47.0 → 18.49.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.
- package/esm2022/lib/inventory-common/incident/incident-form/incident-form.component.mjs +2 -2
- package/esm2022/lib/inventory-common/incident/incident-list/incident-list.component.mjs +2 -2
- package/esm2022/lib/inventory-common/inventory-common-routing.module.mjs +5 -1
- package/esm2022/lib/inventory-common/location/location-form/location-form.component.mjs +2 -2
- package/esm2022/lib/inventory-common/location/location-selector/location-selector.component.mjs +5 -4
- package/esm2022/lib/inventory-common/location/location-status-changer/location-status-changer.component.mjs +1 -1
- package/esm2022/lib/inventory-common/location/shelf/shelf-form/shelf-form.component.mjs +1 -1
- package/esm2022/lib/inventory-common/location/shelf/shelf-list/shelf-list.component.mjs +2 -2
- package/esm2022/lib/inventory-common/product/product-batch-update-form/product-batch-update-form.component.mjs +1 -1
- package/esm2022/lib/inventory-common/product/product-form/product-form.component.mjs +1 -1
- package/esm2022/lib/inventory-common/product/product-list/product-list.component.mjs +1 -1
- package/esm2022/lib/inventory-common/rating/rating-form/rating-form.component.mjs +2 -2
- package/esm2022/lib/inventory-common/rating/rating-list/rating-list.component.mjs +2 -2
- package/esm2022/lib/inventory-common/recipient/recipient-form/recipient-form.component.mjs +59 -0
- package/esm2022/lib/inventory-common/recipient/recipient-list/recipient-list.component.mjs +49 -0
- package/esm2022/lib/inventory-common/recipient/recipient-routing.module.mjs +24 -0
- package/esm2022/lib/inventory-common/recipient/recipient.module.mjs +18 -0
- package/esm2022/lib/inventory-common/recipient/recipient.service.mjs +18 -0
- package/esm2022/lib/inventory-common/reports/inventory-value-report/inventory-value-report.component.mjs +2 -2
- package/esm2022/lib/inventory-common/reports/low-stock-report/low-stock-report.component.mjs +2 -2
- package/esm2022/lib/inventory-common/reports/stock-issue-summary-report/stock-issue-summary-report.component.mjs +31 -32
- package/esm2022/lib/inventory-common/shared.module.mjs +17 -4
- package/esm2022/lib/inventory-common/stock-issue/stock-issue-form/stock-issue-form.component.mjs +29 -19
- package/esm2022/lib/inventory-common/stock-issue/stock-issue-list/stock-issue-list.component.mjs +6 -7
- package/esm2022/lib/inventory-common/stock-issue/stock-issue-page/stock-issue-page.component.mjs +3 -3
- package/esm2022/lib/inventory-common/stock-issue/stock-issue-product-form/stock-issue-product-form.component.mjs +6 -6
- package/esm2022/lib/inventory-common/stock-issue/stock-issue-product-view/stock-issue-product-view.component.mjs +2 -2
- package/esm2022/lib/inventory-common/stock-issue/stock-issue-products-list/stock-issue-products-list.component.mjs +7 -7
- package/esm2022/lib/inventory-common/stock-issue/stock-issue-single-product-form/stock-issue-single-product-form.component.mjs +38 -17
- package/esm2022/lib/inventory-common/stock-issue/stock-issue-view/stock-issue-view.component.mjs +2 -2
- package/esm2022/lib/inventory-common/stock-receipts/stock-receipt-form/stock-receipt-form.component.mjs +2 -2
- package/esm2022/lib/inventory-common/stock-receipts/stock-receipt-list/stock-receipt-list.component.mjs +5 -5
- package/esm2022/lib/inventory-common/stock-receipts/stock-receipt-product-form/stock-receipt-product-form.component.mjs +1 -1
- package/esm2022/lib/inventory-common/stock-receipts/stock-receipt-product-list/stock-receipt-product-list.component.mjs +6 -6
- package/esm2022/lib/inventory-common/stock-receipts/stock-receipt-product-view/stock-receipt-product-view.component.mjs +2 -2
- package/esm2022/lib/inventory-common/stock-receipts/stock-receipt-single-product-form/stock-receipt-simple-form/stock-receipt-single-product-form.component.mjs +2 -2
- package/esm2022/lib/inventory-common/stock-receipts/stock-receipt-view/stock-receipt-view.component.mjs +1 -1
- package/esm2022/lib/inventory-common/stock-receipts/stock-receipts-page/stock-receipts-page.component.mjs +1 -1
- package/esm2022/lib/inventory-common/stock-transfer/stock-transfer-form/stock-transfer-form.component.mjs +2 -2
- package/esm2022/lib/inventory-common/stock-transfer/stock-transfer-list/stock-transfer-list.component.mjs +1 -1
- package/esm2022/lib/inventory-common/supplier/payee-selector/payee-selector/payee-selector.component.mjs +1 -1
- package/esm2022/lib/inventory-common/supplier/purchase-order/purchase-order-form/purchase-order-form.component.mjs +2 -2
- package/esm2022/lib/inventory-common/supplier/purchase-order/purchase-order-listing/purchase-order-listing.component.mjs +2 -2
- package/esm2022/lib/inventory-common/supplier/purchase-order/purchase-order-product-list/purchase-order-product-form/purchase-order-product-form.component.mjs +1 -1
- package/esm2022/lib/inventory-common/supplier/supplier-branches-list/supplier-branches-list.component.mjs +12 -12
- package/esm2022/lib/inventory-common/supplier/supplier-form/supplier-form.component.mjs +47 -56
- package/esm2022/lib/inventory-common/supplier/supplier-information/supplier-information.component.mjs +1 -1
- package/esm2022/lib/inventory-common/supplier/supplier-list/supplier-list.component.mjs +68 -0
- package/esm2022/lib/inventory-common/supplier/supplier-routing.module.mjs +3 -3
- package/esm2022/lib/inventory-common/supplier/supplier-view/supplier-view.component.mjs +11 -11
- package/esm2022/lib/inventory-common/supplier/supplier.module.mjs +10 -45
- package/esm2022/lib/inventory-common/techlify-filter/techlify-filter.component.mjs +1 -1
- package/esm2022/public-api.mjs +2 -3
- package/fesm2022/{techlify-inventory-common-category.module-BL0mKMMU.mjs → techlify-inventory-common-category.module-BBpgG9L3.mjs} +9 -9
- package/fesm2022/{techlify-inventory-common-category.module-BL0mKMMU.mjs.map → techlify-inventory-common-category.module-BBpgG9L3.mjs.map} +1 -1
- package/fesm2022/{techlify-inventory-common-purchase-order-view.component-BDdTC81P.mjs → techlify-inventory-common-purchase-order-view.component-6qbMJdAs.mjs} +8 -8
- package/fesm2022/{techlify-inventory-common-purchase-order-view.component-BDdTC81P.mjs.map → techlify-inventory-common-purchase-order-view.component-6qbMJdAs.mjs.map} +1 -1
- package/fesm2022/techlify-inventory-common-recipient.module-DsYw54Uj.mjs +147 -0
- package/fesm2022/techlify-inventory-common-recipient.module-DsYw54Uj.mjs.map +1 -0
- package/fesm2022/techlify-inventory-common-stock-issue-form.component-C3RoFfcY.mjs +194 -0
- package/fesm2022/techlify-inventory-common-stock-issue-form.component-C3RoFfcY.mjs.map +1 -0
- package/fesm2022/{techlify-inventory-common-stock-issue-product-view.component-Di1fJWqD.mjs → techlify-inventory-common-stock-issue-product-view.component-b_8gpI7x.mjs} +3 -3
- package/fesm2022/{techlify-inventory-common-stock-issue-product-view.component-Di1fJWqD.mjs.map → techlify-inventory-common-stock-issue-product-view.component-b_8gpI7x.mjs.map} +1 -1
- package/fesm2022/{techlify-inventory-common-stock-issue-view.component-DfntkifG.mjs → techlify-inventory-common-stock-issue-view.component-BDOR4X49.mjs} +3 -3
- package/fesm2022/{techlify-inventory-common-stock-issue-view.component-DfntkifG.mjs.map → techlify-inventory-common-stock-issue-view.component-BDOR4X49.mjs.map} +1 -1
- package/fesm2022/{techlify-inventory-common-techlify-inventory-common-BbtWdC-G.mjs → techlify-inventory-common-techlify-inventory-common-Bveawfj2.mjs} +284 -311
- package/fesm2022/techlify-inventory-common-techlify-inventory-common-Bveawfj2.mjs.map +1 -0
- package/fesm2022/techlify-inventory-common.mjs +1 -1
- package/lib/inventory-common/location/location-selector/location-selector.component.d.ts +2 -1
- package/lib/inventory-common/recipient/recipient-form/recipient-form.component.d.ts +21 -0
- package/lib/inventory-common/recipient/recipient-list/recipient-list.component.d.ts +16 -0
- package/lib/inventory-common/recipient/recipient-routing.module.d.ts +7 -0
- package/lib/inventory-common/recipient/recipient.module.d.ts +9 -0
- package/lib/inventory-common/recipient/recipient.service.d.ts +7 -0
- package/lib/inventory-common/reports/stock-issue-summary-report/stock-issue-summary-report.component.d.ts +4 -10
- package/lib/inventory-common/shared.module.d.ts +4 -3
- package/lib/inventory-common/stock-issue/stock-issue-form/stock-issue-form.component.d.ts +5 -3
- package/lib/inventory-common/stock-issue/stock-issue-list/stock-issue-list.component.d.ts +2 -2
- package/lib/inventory-common/stock-issue/stock-issue-products-list/stock-issue-products-list.component.d.ts +2 -2
- package/lib/inventory-common/stock-issue/stock-issue-single-product-form/stock-issue-single-product-form.component.d.ts +5 -3
- package/lib/inventory-common/stock-receipts/stock-receipt-list/stock-receipt-list.component.d.ts +2 -2
- package/lib/inventory-common/stock-receipts/stock-receipt-product-list/stock-receipt-product-list.component.d.ts +2 -2
- package/lib/inventory-common/stock-receipts/stock-receipts.module.d.ts +1 -1
- package/lib/inventory-common/supplier/supplier-form/supplier-form.component.d.ts +13 -12
- package/lib/inventory-common/supplier/supplier-list/supplier-list.component.d.ts +20 -0
- package/lib/inventory-common/supplier/supplier.module.d.ts +13 -20
- package/package.json +1 -1
- package/public-api.d.ts +1 -2
- package/esm2022/lib/inventory-common/supplier/supplier-form/supplier-form-button/supplier-form-button.component.mjs +0 -43
- package/esm2022/lib/inventory-common/supplier/suppliers-list/suppliers-list.component.mjs +0 -59
- package/fesm2022/techlify-inventory-common-stock-issue-form.component-B-5myP-N.mjs +0 -183
- package/fesm2022/techlify-inventory-common-stock-issue-form.component-B-5myP-N.mjs.map +0 -1
- package/fesm2022/techlify-inventory-common-techlify-inventory-common-BbtWdC-G.mjs.map +0 -1
- package/lib/inventory-common/supplier/supplier-form/supplier-form-button/supplier-form-button.component.d.ts +0 -13
- package/lib/inventory-common/supplier/suppliers-list/suppliers-list.component.d.ts +0 -15
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { a9 as ExportToExcelButtonComponent, a3 as IncidentFormButtonComponent, a2 as IncidentFormComponent, a1 as IncidentListComponent, $ as IncidentModule, a0 as IncidentService, f as InventoryCommonModule, I as InventoryCommonRoutingModule, ad as LocationFormButtonComponent, ac as LocationFormComponent, ab as LocationListComponent, aa as LocationModule, L as LocationService, R as MeasureModule, U as MeasureService, _ as PayeeSelectorComponent, Z as PayeeSelectorModule, j as ProductBasicInfoComponent, r as ProductBatchUpdateFormComponent, k as ProductFormButtonComponent, i as ProductFormComponent, q as ProductFormService, s as ProductImportPageComponent, o as ProductListComponent, h as ProductModule, l as ProductQuickSearchComponent, n as ProductSearchComponent, m as ProductSearchModule, p as ProductService, t as ProductViewPageComponent, a8 as RatingFormButtonComponent, a7 as RatingFormComponent, a6 as RatingListComponent, a4 as RatingModule, a5 as RatingService, ai as ShelfFormButtonComponent, ah as ShelfFormComponent, ag as ShelfListComponent, ae as ShelfModule, af as ShelfService, y as StockIssueListComponent, u as StockIssueModule, v as StockIssuePageComponent, w as StockIssuePageModule, B as StockIssueProductFormButtonComponent, A as StockIssueProductFormComponent, z as StockIssueProductListComponent, d as StockIssueProductService, x as StockIssueSingleProductFormComponent, E as StockReceiptListComponent, D as StockReceiptPageComponent, K as StockReceiptProductFormButtonComponent, J as StockReceiptProductFormComponent, F as StockReceiptProductsListComponent, G as StockReceiptSingleProductFormComponent, H as StockReceiptViewComponent, C as StockReceiptsModule, g as StockSummaryService, O as StockTransferFormComponent, N as StockTransferListComponent, Q as StockTransferService, W as SupplierFormComponent, X as SupplierListComponent, V as SupplierModule, Y as SupplierTypeService, T as TechlifyFilterComponent, a as TechlifyFilterModule } from './techlify-inventory-common-techlify-inventory-common-Bveawfj2.mjs';
|
|
2
2
|
//# sourceMappingURL=techlify-inventory-common.mjs.map
|
|
@@ -16,6 +16,7 @@ export declare class LocationSelectorComponent implements ControlValueAccessor,
|
|
|
16
16
|
appearance: import("@angular/core").InputSignal<MatFormFieldAppearance>;
|
|
17
17
|
label: import("@angular/core").InputSignal<string>;
|
|
18
18
|
placeholder: import("@angular/core").InputSignal<string>;
|
|
19
|
+
hint: import("@angular/core").InputSignal<string | undefined>;
|
|
19
20
|
includeNone: import("@angular/core").InputSignal<boolean>;
|
|
20
21
|
isSubLocationEnabled: import("@angular/core").WritableSignal<boolean>;
|
|
21
22
|
locations: HierarchicalLocation[];
|
|
@@ -40,6 +41,6 @@ export declare class LocationSelectorComponent implements ControlValueAccessor,
|
|
|
40
41
|
registerOnTouched(fn: () => void): void;
|
|
41
42
|
setDisabledState(isDisabled: boolean): void;
|
|
42
43
|
static ɵfac: i0.ɵɵFactoryDeclaration<LocationSelectorComponent, never>;
|
|
43
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LocationSelectorComponent, "app-location-selector", never, { "appearance": { "alias": "appearance"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "includeNone": { "alias": "includeNone"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
44
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LocationSelectorComponent, "app-location-selector", never, { "appearance": { "alias": "appearance"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "hint": { "alias": "hint"; "required": false; "isSignal": true; }; "includeNone": { "alias": "includeNone"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
44
45
|
}
|
|
45
46
|
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { FormBuilder } from '@angular/forms';
|
|
3
|
+
import { MatDialogRef } from '@angular/material/dialog';
|
|
4
|
+
import { FormValidatorService, TechlifyFormComponent } from 'ngx-techlify-core';
|
|
5
|
+
import { RecipientService } from '../recipient.service';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class RecipientFormComponent extends TechlifyFormComponent implements OnInit {
|
|
8
|
+
protected formValidatorService: FormValidatorService;
|
|
9
|
+
private formBuilder;
|
|
10
|
+
protected service: RecipientService;
|
|
11
|
+
dialogRef: MatDialogRef<RecipientFormComponent>;
|
|
12
|
+
data: {
|
|
13
|
+
model?: any;
|
|
14
|
+
};
|
|
15
|
+
constructor(formValidatorService: FormValidatorService, formBuilder: FormBuilder, service: RecipientService, dialogRef: MatDialogRef<RecipientFormComponent>, data: {
|
|
16
|
+
model?: any;
|
|
17
|
+
});
|
|
18
|
+
ngOnInit(): void;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RecipientFormComponent, [null, null, null, null, { optional: true; }]>;
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RecipientFormComponent, "app-recipient-form", never, {}, {}, never, never, true, never>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { FormBuilder } from '@angular/forms';
|
|
3
|
+
import { TechlifyListComponent } from 'ngx-techlify-core';
|
|
4
|
+
import { RecipientService } from '../recipient.service';
|
|
5
|
+
import { RecipientFormComponent } from '../recipient-form/recipient-form.component';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class RecipientListComponent extends TechlifyListComponent implements OnInit {
|
|
8
|
+
private fb;
|
|
9
|
+
protected service: RecipientService;
|
|
10
|
+
recipientForm: import("@angular/core").WritableSignal<typeof RecipientFormComponent>;
|
|
11
|
+
displayedColumns: string[];
|
|
12
|
+
constructor(fb: FormBuilder, service: RecipientService);
|
|
13
|
+
ngOnInit(): void;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RecipientListComponent, never>;
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RecipientListComponent, "app-recipient-list", never, {}, {}, never, never, false, never>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "@angular/router";
|
|
3
|
+
export declare class RecipientRoutingModule {
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RecipientRoutingModule, never>;
|
|
5
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<RecipientRoutingModule, never, [typeof i1.RouterModule], [typeof i1.RouterModule]>;
|
|
6
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<RecipientRoutingModule>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./recipient-list/recipient-list.component";
|
|
3
|
+
import * as i2 from "./recipient-routing.module";
|
|
4
|
+
import * as i3 from "../shared.module";
|
|
5
|
+
export declare class RecipientModule {
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RecipientModule, never>;
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<RecipientModule, [typeof i1.RecipientListComponent], [typeof i2.RecipientRoutingModule, typeof i3.SharedModule], never>;
|
|
8
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<RecipientModule>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { HttpService, TechlifyService } from 'ngx-techlify-core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class RecipientService extends TechlifyService {
|
|
4
|
+
constructor(httpService: HttpService);
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RecipientService, never>;
|
|
6
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<RecipientService>;
|
|
7
|
+
}
|
|
@@ -3,8 +3,9 @@ import { TechlifyListComponent } from 'ngx-techlify-core';
|
|
|
3
3
|
import { StockIssueProductDataService } from './stock-issue-product-data.service';
|
|
4
4
|
import { FormBuilder } from '@angular/forms';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
|
-
interface
|
|
7
|
-
|
|
6
|
+
interface PrimaryGroup {
|
|
7
|
+
id: number | null;
|
|
8
|
+
label: string;
|
|
8
9
|
models: any[];
|
|
9
10
|
grand_total_quantity: number;
|
|
10
11
|
grand_total_avco: number;
|
|
@@ -14,16 +15,9 @@ export declare class StockIssueSummaryReportComponent extends TechlifyListCompon
|
|
|
14
15
|
protected service: StockIssueProductDataService;
|
|
15
16
|
private fb;
|
|
16
17
|
displayedColumns: string[];
|
|
17
|
-
|
|
18
|
-
selectedLocations: any[];
|
|
18
|
+
primaryGroups: import("@angular/core").WritableSignal<PrimaryGroup[]>;
|
|
19
19
|
constructor(service: StockIssueProductDataService, fb: FormBuilder);
|
|
20
20
|
ngOnInit(): void;
|
|
21
|
-
onLocationsChange(locations: any[]): void;
|
|
22
|
-
/**
|
|
23
|
-
* For each selected location we hit the API once, so every location gets its
|
|
24
|
-
* own aggregated result set (and its own table). Data is only loaded once at
|
|
25
|
-
* least one location is selected.
|
|
26
|
-
*/
|
|
27
21
|
loadData(): void;
|
|
28
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<StockIssueSummaryReportComponent, never>;
|
|
29
23
|
static ɵcmp: i0.ɵɵComponentDeclaration<StockIssueSummaryReportComponent, "app-stock-issue-summary-report", never, {}, {}, never, never, true, never>;
|
|
@@ -3,10 +3,11 @@ import * as i1 from "ngx-techlify-core";
|
|
|
3
3
|
import * as i2 from "ngx-infinite-scroll";
|
|
4
4
|
import * as i3 from "@angular/common";
|
|
5
5
|
import * as i4 from "./material.module";
|
|
6
|
-
import * as i5 from "
|
|
7
|
-
import * as i6 from "@angular/
|
|
6
|
+
import * as i5 from "ngx-permissions";
|
|
7
|
+
import * as i6 from "@angular/forms";
|
|
8
|
+
import * as i7 from "@angular/router";
|
|
8
9
|
export declare class SharedModule {
|
|
9
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<SharedModule, never>;
|
|
10
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SharedModule, never, [typeof i1.TechlifyDeleteButtonComponent, typeof i1.TechlifyFormButtonComponent, typeof i2.InfiniteScrollDirective], [typeof i3.CommonModule, typeof i2.InfiniteScrollDirective, typeof i4.MaterialModule, typeof i5.
|
|
11
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SharedModule, never, [typeof i1.TechlifyDeleteButtonComponent, typeof i1.TechlifyFormButtonComponent, typeof i2.InfiniteScrollDirective], [typeof i1.AuditLogForModelModule, typeof i3.CommonModule, typeof i1.FormConfigurationForFormModule, typeof i2.InfiniteScrollDirective, typeof i4.MaterialModule, typeof i5.NgxPermissionsModule, typeof i1.NoteModule, typeof i6.ReactiveFormsModule, typeof i7.RouterModule, typeof i1.SearchableSelectorModule, typeof i1.TechlifyDeleteButtonComponent, typeof i1.TechlifyFormButtonComponent, typeof i1.TechlifyIconModule, typeof i1.TimelineFilterModule]>;
|
|
11
12
|
static ɵinj: i0.ɵɵInjectorDeclaration<SharedModule>;
|
|
12
13
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { OnInit } from "@angular/core";
|
|
2
2
|
import { FormArray, FormBuilder } from '@angular/forms';
|
|
3
|
-
import { FormValidatorService, TechlifyFormComponent } from "ngx-techlify-core";
|
|
3
|
+
import { FormConfigurationFormService, FormConfigurationUtilityService, FormValidatorService, TechlifyFormComponent } from "ngx-techlify-core";
|
|
4
4
|
import { Location } from '@angular/common';
|
|
5
5
|
import { StockIssueService } from '../stock-issue.service';
|
|
6
6
|
import { ActivatedRoute } from '@angular/router';
|
|
@@ -13,20 +13,22 @@ export declare class StockIssueFormComponent extends TechlifyFormComponent imple
|
|
|
13
13
|
private route;
|
|
14
14
|
private locationService;
|
|
15
15
|
private location;
|
|
16
|
+
private formConfigService;
|
|
16
17
|
locationCount: import("@angular/core").WritableSignal<number>;
|
|
17
18
|
stockIssue: import("@angular/core").WritableSignal<any>;
|
|
18
19
|
issuableData: import("@angular/core").WritableSignal<{
|
|
19
20
|
issuable_type: String;
|
|
20
21
|
issuable_id: number;
|
|
21
22
|
} | null>;
|
|
22
|
-
|
|
23
|
+
formConfigurationUtilityService: FormConfigurationUtilityService;
|
|
24
|
+
constructor(formValidatorService: FormValidatorService, fb: FormBuilder, stockIssueService: StockIssueService, route: ActivatedRoute, locationService: LocationService, location: Location, formConfigService: FormConfigurationFormService);
|
|
23
25
|
ngOnInit(): void;
|
|
24
26
|
private loadStockIssue;
|
|
25
27
|
get stockIssueProducts(): FormArray;
|
|
26
28
|
createStockIssueProduct(): import("@angular/forms").FormGroup<{
|
|
27
29
|
id: import("@angular/forms").FormControl<string | null>;
|
|
28
30
|
product_id: import("@angular/forms").FormControl<string | null>;
|
|
29
|
-
|
|
31
|
+
location_from_id: import("@angular/forms").FormControl<string | null>;
|
|
30
32
|
quantity: import("@angular/forms").FormControl<number | null>;
|
|
31
33
|
particulars: import("@angular/forms").FormControl<string | null>;
|
|
32
34
|
issuable_id: import("@angular/forms").FormControl<string | number | null>;
|
|
@@ -9,7 +9,7 @@ export declare class StockIssueListComponent extends TechlifyListComponent imple
|
|
|
9
9
|
private formBuilder;
|
|
10
10
|
private router;
|
|
11
11
|
private featureService;
|
|
12
|
-
|
|
12
|
+
filtersInput: import("@angular/core").InputSignal<any>;
|
|
13
13
|
selectedColumns: import("@angular/core").InputSignal<ColumnConfig[]>;
|
|
14
14
|
exportInProgress: import("@angular/core").InputSignal<boolean>;
|
|
15
15
|
listUpdated: import("@angular/core").OutputEmitterRef<any>;
|
|
@@ -29,5 +29,5 @@ export declare class StockIssueListComponent extends TechlifyListComponent imple
|
|
|
29
29
|
private loadFeatures;
|
|
30
30
|
redirectToView(model: any): void;
|
|
31
31
|
static ɵfac: i0.ɵɵFactoryDeclaration<StockIssueListComponent, never>;
|
|
32
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<StockIssueListComponent, "app-stock-issue-list", never, { "
|
|
32
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<StockIssueListComponent, "app-stock-issue-list", never, { "filtersInput": { "alias": "filters"; "required": false; "isSignal": true; }; "selectedColumns": { "alias": "selectedColumns"; "required": false; "isSignal": true; }; "exportInProgress": { "alias": "exportInProgress"; "required": false; "isSignal": true; }; "issuableData": { "alias": "issuableData"; "required": false; "isSignal": true; }; }, { "listUpdated": "listUpdated"; "columnConfigReady": "columnConfigReady"; }, never, never, false, never>;
|
|
33
33
|
}
|
|
@@ -11,7 +11,7 @@ export declare class StockIssueProductListComponent extends TechlifyListComponen
|
|
|
11
11
|
private formBuilder;
|
|
12
12
|
private featureService;
|
|
13
13
|
private datePipe;
|
|
14
|
-
|
|
14
|
+
filtersInput: import("@angular/core").InputSignal<any>;
|
|
15
15
|
isProductView: import("@angular/core").InputSignal<boolean>;
|
|
16
16
|
product: import("@angular/core").InputSignal<any>;
|
|
17
17
|
stockIssueSingleProductForm: import("@angular/core").WritableSignal<typeof StockIssueSingleProductFormComponent>;
|
|
@@ -36,5 +36,5 @@ export declare class StockIssueProductListComponent extends TechlifyListComponen
|
|
|
36
36
|
loadData(): void;
|
|
37
37
|
private loadFeatures;
|
|
38
38
|
static ɵfac: i0.ɵɵFactoryDeclaration<StockIssueProductListComponent, never>;
|
|
39
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<StockIssueProductListComponent, "app-stock-issue-products-list", never, { "
|
|
39
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<StockIssueProductListComponent, "app-stock-issue-products-list", never, { "filtersInput": { "alias": "filters"; "required": false; "isSignal": true; }; "isProductView": { "alias": "isProductView"; "required": false; "isSignal": true; }; "product": { "alias": "product"; "required": false; "isSignal": true; }; "selectedColumns": { "alias": "selectedColumns"; "required": false; "isSignal": true; }; "exportInProgress": { "alias": "exportInProgress"; "required": false; "isSignal": true; }; "issuableData": { "alias": "issuableData"; "required": false; "isSignal": true; }; }, { "selectedColumns": "selectedColumnsChange"; "listUpdated": "listUpdated"; "columnConfigReady": "columnConfigReady"; }, never, never, false, never>;
|
|
40
40
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
-
import { DateUtils, FormValidatorService, SearchableSelectorComponent, TechlifyFormComponent } from 'ngx-techlify-core';
|
|
2
|
+
import { DateUtils, FormConfigurationFormService, FormConfigurationUtilityService, FormValidatorService, SearchableSelectorComponent, TechlifyFormComponent } from 'ngx-techlify-core';
|
|
3
3
|
import { FormBuilder } from '@angular/forms';
|
|
4
4
|
import { MatDialogRef } from '@angular/material/dialog';
|
|
5
5
|
import { StockIssueService } from '../stock-issue.service';
|
|
@@ -11,6 +11,7 @@ export declare class StockIssueSingleProductFormComponent extends TechlifyFormCo
|
|
|
11
11
|
private formBuilder;
|
|
12
12
|
private dateUtils;
|
|
13
13
|
private locationService;
|
|
14
|
+
private formConfigService;
|
|
14
15
|
dialogRef: MatDialogRef<StockIssueSingleProductFormComponent>;
|
|
15
16
|
data: {
|
|
16
17
|
model?: any;
|
|
@@ -22,7 +23,8 @@ export declare class StockIssueSingleProductFormComponent extends TechlifyFormCo
|
|
|
22
23
|
private locationsCountValue;
|
|
23
24
|
batchesApiUrl: string;
|
|
24
25
|
isBatchPatched: boolean;
|
|
25
|
-
|
|
26
|
+
formConfigurationUtilityService: FormConfigurationUtilityService;
|
|
27
|
+
constructor(formValidatorService: FormValidatorService, service: StockIssueService, formBuilder: FormBuilder, dateUtils: DateUtils, locationService: LocationService, formConfigService: FormConfigurationFormService, dialogRef: MatDialogRef<StockIssueSingleProductFormComponent>, data: {
|
|
26
28
|
model?: any;
|
|
27
29
|
product?: any;
|
|
28
30
|
});
|
|
@@ -35,6 +37,6 @@ export declare class StockIssueSingleProductFormComponent extends TechlifyFormCo
|
|
|
35
37
|
onProductChange(product: any): void;
|
|
36
38
|
onBatchItemsChange(): void;
|
|
37
39
|
private resetBatchSelector;
|
|
38
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<StockIssueSingleProductFormComponent, [null, null, null, null, null, { optional: true; }, { optional: true; }]>;
|
|
40
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StockIssueSingleProductFormComponent, [null, null, null, null, null, null, { optional: true; }, { optional: true; }]>;
|
|
39
41
|
static ɵcmp: i0.ɵɵComponentDeclaration<StockIssueSingleProductFormComponent, "app-stock-issue-single-product-form", never, {}, {}, never, never, true, never>;
|
|
40
42
|
}
|
package/lib/inventory-common/stock-receipts/stock-receipt-list/stock-receipt-list.component.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export declare class StockReceiptListComponent extends TechlifyListComponent imp
|
|
|
9
9
|
private formBuilder;
|
|
10
10
|
private router;
|
|
11
11
|
private featureService;
|
|
12
|
-
|
|
12
|
+
filtersInput: import("@angular/core").InputSignal<any>;
|
|
13
13
|
selectedColumns: import("@angular/core").InputSignal<ColumnConfig[]>;
|
|
14
14
|
exportInProgress: import("@angular/core").InputSignal<boolean>;
|
|
15
15
|
listUpdated: import("@angular/core").OutputEmitterRef<any>;
|
|
@@ -26,5 +26,5 @@ export declare class StockReceiptListComponent extends TechlifyListComponent imp
|
|
|
26
26
|
redirectToView(model: any): void;
|
|
27
27
|
getStockReceiptDeleteTitle(model: any): string;
|
|
28
28
|
static ɵfac: i0.ɵɵFactoryDeclaration<StockReceiptListComponent, never>;
|
|
29
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<StockReceiptListComponent, "app-stock-receipt-list", never, { "
|
|
29
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<StockReceiptListComponent, "app-stock-receipt-list", never, { "filtersInput": { "alias": "filters"; "required": false; "isSignal": true; }; "selectedColumns": { "alias": "selectedColumns"; "required": false; "isSignal": true; }; "exportInProgress": { "alias": "exportInProgress"; "required": false; "isSignal": true; }; }, { "listUpdated": "listUpdated"; "columnConfigReady": "columnConfigReady"; }, never, never, false, never>;
|
|
30
30
|
}
|
|
@@ -8,7 +8,7 @@ export declare class StockReceiptProductsListComponent extends TechlifyListCompo
|
|
|
8
8
|
protected service: StockReceiptProductService;
|
|
9
9
|
private formBuilder;
|
|
10
10
|
private featureService;
|
|
11
|
-
|
|
11
|
+
filtersInput: import("@angular/core").InputSignal<any>;
|
|
12
12
|
isProductView: import("@angular/core").InputSignal<boolean>;
|
|
13
13
|
selectedColumns: import("@angular/core").InputSignal<ColumnConfig[]>;
|
|
14
14
|
exportInProgress: import("@angular/core").InputSignal<boolean>;
|
|
@@ -27,5 +27,5 @@ export declare class StockReceiptProductsListComponent extends TechlifyListCompo
|
|
|
27
27
|
ngOnInit(): void;
|
|
28
28
|
private loadFeatures;
|
|
29
29
|
static ɵfac: i0.ɵɵFactoryDeclaration<StockReceiptProductsListComponent, never>;
|
|
30
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<StockReceiptProductsListComponent, "app-stock-receipt-product-list", never, { "
|
|
30
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<StockReceiptProductsListComponent, "app-stock-receipt-product-list", never, { "filtersInput": { "alias": "filters"; "required": false; "isSignal": true; }; "isProductView": { "alias": "isProductView"; "required": false; "isSignal": true; }; "selectedColumns": { "alias": "selectedColumns"; "required": false; "isSignal": true; }; "exportInProgress": { "alias": "exportInProgress"; "required": false; "isSignal": true; }; "product": { "alias": "product"; "required": false; "isSignal": true; }; }, { "listUpdated": "listUpdated"; "columnConfigReady": "columnConfigReady"; }, never, never, false, never>;
|
|
31
31
|
}
|
|
@@ -17,6 +17,6 @@ import * as i15 from "../shared/export-to-excel-button/export-to-excel-button.co
|
|
|
17
17
|
import * as i16 from "./stock-receipt-product-form/stock-receipt-product-form-button/stock-receipt-product-form-button.component";
|
|
18
18
|
export declare class StockReceiptsModule {
|
|
19
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<StockReceiptsModule, never>;
|
|
20
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<StockReceiptsModule, [typeof i1.StockReceiptPageComponent, typeof i2.StockReceiptViewComponent, typeof i3.StockReceiptListComponent, typeof i4.StockReceiptProductsListComponent], [typeof i5.CommonModule, typeof i6.MaterialModule, typeof i7.StockReceiptsRoutingModule, typeof i8.TechlifyFilterModule, typeof i9.SearchableSelectorModule, typeof i9.TimelineFilterModule, typeof i10.ReactiveFormsModule, typeof i11.PayeeSelectorModule, typeof i12.InfiniteScrollDirective, typeof i13.ProductCategoryBadgesComponent, typeof i9.ColumnSelectorModule, typeof i9.
|
|
20
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<StockReceiptsModule, [typeof i1.StockReceiptPageComponent, typeof i2.StockReceiptViewComponent, typeof i3.StockReceiptListComponent, typeof i4.StockReceiptProductsListComponent], [typeof i5.CommonModule, typeof i6.MaterialModule, typeof i7.StockReceiptsRoutingModule, typeof i8.TechlifyFilterModule, typeof i9.SearchableSelectorModule, typeof i9.TimelineFilterModule, typeof i10.ReactiveFormsModule, typeof i11.PayeeSelectorModule, typeof i12.InfiniteScrollDirective, typeof i13.ProductCategoryBadgesComponent, typeof i9.ColumnSelectorModule, typeof i9.EntityFileListModule, typeof i9.TechlifyFeatureModule, typeof i9.NoteModule, typeof i9.TechlifyIconModule, typeof i14.RouterModule, typeof i15.ExportToExcelButtonComponent, typeof i9.TechlifyDeleteButtonComponent, typeof i16.StockReceiptProductFormButtonComponent, typeof i9.TechlifyFormButtonComponent], [typeof i1.StockReceiptPageComponent, typeof i3.StockReceiptListComponent, typeof i4.StockReceiptProductsListComponent]>;
|
|
21
21
|
static ɵinj: i0.ɵɵInjectorDeclaration<StockReceiptsModule>;
|
|
22
22
|
}
|
|
@@ -1,24 +1,25 @@
|
|
|
1
|
-
import { SupplierService } from '../supplier.service';
|
|
2
1
|
import { OnInit } from '@angular/core';
|
|
3
2
|
import { FormBuilder, FormControl } from '@angular/forms';
|
|
4
3
|
import { MatDialogRef } from '@angular/material/dialog';
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
4
|
+
import { FormValidatorService, TechlifyFormComponent } from 'ngx-techlify-core';
|
|
5
|
+
import { SupplierService } from '../supplier.service';
|
|
7
6
|
import * as i0 from "@angular/core";
|
|
8
7
|
export declare class SupplierFormComponent extends TechlifyFormComponent implements OnInit {
|
|
8
|
+
protected formValidatorService: FormValidatorService;
|
|
9
9
|
private fb;
|
|
10
|
-
|
|
10
|
+
protected service: SupplierService;
|
|
11
11
|
dialogRef: MatDialogRef<SupplierFormComponent>;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
data: {
|
|
13
|
+
model?: any;
|
|
14
|
+
};
|
|
15
15
|
errorMessages: any;
|
|
16
|
-
isUpdateMode: boolean;
|
|
17
16
|
isCreateAnother: FormControl;
|
|
18
17
|
totalRecordSaved: import("@angular/core").WritableSignal<number>;
|
|
19
|
-
constructor(
|
|
18
|
+
constructor(formValidatorService: FormValidatorService, fb: FormBuilder, service: SupplierService, dialogRef: MatDialogRef<SupplierFormComponent>, data: {
|
|
19
|
+
model?: any;
|
|
20
|
+
});
|
|
20
21
|
ngOnInit(): void;
|
|
21
|
-
submit():
|
|
22
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SupplierFormComponent,
|
|
23
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SupplierFormComponent, "app-supplier-form", never, {}, {}, never, never,
|
|
22
|
+
submit(): void;
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SupplierFormComponent, [null, null, null, null, { optional: true; }]>;
|
|
24
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SupplierFormComponent, "app-supplier-form", never, {}, {}, never, never, true, never>;
|
|
24
25
|
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { FormBuilder } from '@angular/forms';
|
|
3
|
+
import { Router } from '@angular/router';
|
|
4
|
+
import { TechlifyListComponent } from 'ngx-techlify-core';
|
|
5
|
+
import { SupplierService } from '../supplier.service';
|
|
6
|
+
import { SupplierFormComponent } from '../supplier-form/supplier-form.component';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class SupplierListComponent extends TechlifyListComponent implements OnInit {
|
|
9
|
+
private fb;
|
|
10
|
+
private router;
|
|
11
|
+
protected service: SupplierService;
|
|
12
|
+
supplierForm: import("@angular/core").WritableSignal<typeof SupplierFormComponent>;
|
|
13
|
+
displayedColumns: string[];
|
|
14
|
+
filterFormConfiguration: any;
|
|
15
|
+
constructor(fb: FormBuilder, router: Router, service: SupplierService);
|
|
16
|
+
ngOnInit(): void;
|
|
17
|
+
onSaved(model: any): void;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SupplierListComponent, never>;
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SupplierListComponent, "app-supplier-list", never, {}, {}, never, never, false, never>;
|
|
20
|
+
}
|
|
@@ -1,27 +1,20 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./supplier.component";
|
|
3
3
|
import * as i2 from "./supplier-view/supplier-view.component";
|
|
4
|
-
import * as i3 from "./
|
|
5
|
-
import * as i4 from "./supplier-
|
|
6
|
-
import * as i5 from "./supplier-
|
|
7
|
-
import * as i6 from "./supplier-
|
|
8
|
-
import * as i7 from "./supplier-
|
|
9
|
-
import * as i8 from "@angular/
|
|
10
|
-
import * as i9 from "
|
|
11
|
-
import * as i10 from "../
|
|
12
|
-
import * as i11 from "
|
|
13
|
-
import * as i12 from "
|
|
14
|
-
import * as i13 from "
|
|
15
|
-
import * as i14 from "
|
|
16
|
-
import * as i15 from "ngx-permissions";
|
|
17
|
-
import * as i16 from "./supplier-form/supplier-form-button/supplier-form-button.component";
|
|
18
|
-
import * as i17 from "../stock-receipts/stock-receipts.module";
|
|
19
|
-
import * as i18 from "../incident/incident-list/incident-list.component";
|
|
20
|
-
import * as i19 from "../rating/rating-list/rating-list.component";
|
|
21
|
-
import * as i20 from "./supplier-branch-form/supplier-branch-form-button/supplier-branch-form-button.component";
|
|
22
|
-
import * as i21 from "./supplier-branch-delete-button/supplier-branch-delete-button.component";
|
|
4
|
+
import * as i3 from "./supplier-list/supplier-list.component";
|
|
5
|
+
import * as i4 from "./supplier-information/supplier-information.component";
|
|
6
|
+
import * as i5 from "./supplier-branches-list/supplier-branches-list.component";
|
|
7
|
+
import * as i6 from "./supplier-branch-form/supplier-branch-form.component";
|
|
8
|
+
import * as i7 from "./supplier-routing.module";
|
|
9
|
+
import * as i8 from "@angular/flex-layout";
|
|
10
|
+
import * as i9 from "../stock-receipts/stock-receipts.module";
|
|
11
|
+
import * as i10 from "../incident/incident-list/incident-list.component";
|
|
12
|
+
import * as i11 from "../rating/rating-list/rating-list.component";
|
|
13
|
+
import * as i12 from "./supplier-branch-form/supplier-branch-form-button/supplier-branch-form-button.component";
|
|
14
|
+
import * as i13 from "./supplier-branch-delete-button/supplier-branch-delete-button.component";
|
|
15
|
+
import * as i14 from "../shared.module";
|
|
23
16
|
export declare class SupplierModule {
|
|
24
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<SupplierModule, never>;
|
|
25
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SupplierModule, [typeof i1.SupplierComponent, typeof i2.SupplierViewComponent, typeof i3.
|
|
18
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SupplierModule, [typeof i1.SupplierComponent, typeof i2.SupplierViewComponent, typeof i3.SupplierListComponent, typeof i4.SupplierInformationComponent, typeof i5.SupplierBranchesListComponent, typeof i6.SupplierBranchFormComponent], [typeof i7.SupplierRoutingModule, typeof i8.FlexModule, typeof i9.StockReceiptsModule, typeof i10.IncidentListComponent, typeof i11.RatingListComponent, typeof i12.SupplierBranchFormButtonComponent, typeof i13.SupplierBranchDeleteButtonComponent, typeof i14.SharedModule], never>;
|
|
26
19
|
static ɵinj: i0.ɵɵInjectorDeclaration<SupplierModule>;
|
|
27
20
|
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -39,9 +39,8 @@ export * from './lib/inventory-common/stock-transfer/stock-transfer.service';
|
|
|
39
39
|
export * from './lib/inventory-common/measure/measure.module';
|
|
40
40
|
export * from './lib/inventory-common/measure/measure.service';
|
|
41
41
|
export * from './lib/inventory-common/supplier/supplier.module';
|
|
42
|
-
export * from './lib/inventory-common/supplier/supplier-form/supplier-form-button/supplier-form-button.component';
|
|
43
42
|
export * from './lib/inventory-common/supplier/supplier-form/supplier-form.component';
|
|
44
|
-
export * from './lib/inventory-common/supplier/
|
|
43
|
+
export * from './lib/inventory-common/supplier/supplier-list/supplier-list.component';
|
|
45
44
|
export * from './lib/inventory-common/supplier/supplier-type.service';
|
|
46
45
|
export * from './lib/inventory-common/supplier/payee-selector/payee-selector.module';
|
|
47
46
|
export * from './lib/inventory-common/supplier/payee-selector/payee-selector/payee-selector.component';
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { CommonModule } from '@angular/common';
|
|
2
|
-
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
|
3
|
-
import { MaterialModule } from '../../../material.module';
|
|
4
|
-
import { SupplierFormComponent } from '../supplier-form.component';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
import * as i1 from "@angular/material/dialog";
|
|
7
|
-
import * as i2 from "@angular/material/icon";
|
|
8
|
-
export class SupplierFormButtonComponent {
|
|
9
|
-
matDialog;
|
|
10
|
-
supplier;
|
|
11
|
-
onSaved = new EventEmitter();
|
|
12
|
-
constructor(matDialog) {
|
|
13
|
-
this.matDialog = matDialog;
|
|
14
|
-
}
|
|
15
|
-
ngOnInit() {
|
|
16
|
-
}
|
|
17
|
-
openDialog() {
|
|
18
|
-
this.matDialog.open(SupplierFormComponent, {
|
|
19
|
-
width: '600px',
|
|
20
|
-
data: {
|
|
21
|
-
details: this.supplier
|
|
22
|
-
},
|
|
23
|
-
}).afterClosed().subscribe((result) => {
|
|
24
|
-
if (result) {
|
|
25
|
-
this.onSaved.emit(result);
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SupplierFormButtonComponent, deps: [{ token: i1.MatDialog }], target: i0.ɵɵFactoryTarget.Component });
|
|
30
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: SupplierFormButtonComponent, isStandalone: true, selector: "app-supplier-form-button", inputs: { supplier: "supplier" }, outputs: { onSaved: "onSaved" }, ngImport: i0, template: "<mat-icon color=\"primary\" class=\"cursor-pointer\" [class.text-secondary]=\"supplier\" (click)=\"openDialog()\">\n {{ supplier ? \"edit\" : \"add\" }}\n</mat-icon>", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: MaterialModule }, { kind: "component", type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], preserveWhitespaces: true });
|
|
31
|
-
}
|
|
32
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SupplierFormButtonComponent, decorators: [{
|
|
33
|
-
type: Component,
|
|
34
|
-
args: [{ selector: 'app-supplier-form-button', standalone: true, imports: [
|
|
35
|
-
CommonModule,
|
|
36
|
-
MaterialModule
|
|
37
|
-
], template: "<mat-icon color=\"primary\" class=\"cursor-pointer\" [class.text-secondary]=\"supplier\" (click)=\"openDialog()\">\n {{ supplier ? \"edit\" : \"add\" }}\n</mat-icon>" }]
|
|
38
|
-
}], ctorParameters: () => [{ type: i1.MatDialog }], propDecorators: { supplier: [{
|
|
39
|
-
type: Input
|
|
40
|
-
}], onSaved: [{
|
|
41
|
-
type: Output
|
|
42
|
-
}] } });
|
|
43
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3VwcGxpZXItZm9ybS1idXR0b24uY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvaW52ZW50b3J5LWNvbW1vbi9zcmMvbGliL2ludmVudG9yeS1jb21tb24vc3VwcGxpZXIvc3VwcGxpZXItZm9ybS9zdXBwbGllci1mb3JtLWJ1dHRvbi9zdXBwbGllci1mb3JtLWJ1dHRvbi5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9pbnZlbnRvcnktY29tbW9uL3NyYy9saWIvaW52ZW50b3J5LWNvbW1vbi9zdXBwbGllci9zdXBwbGllci1mb3JtL3N1cHBsaWVyLWZvcm0tYnV0dG9uL3N1cHBsaWVyLWZvcm0tYnV0dG9uLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUMvQyxPQUFPLEVBQUUsU0FBUyxFQUFFLFlBQVksRUFBRSxLQUFLLEVBQVUsTUFBTSxFQUFFLE1BQU0sZUF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