techlify-inventory-common 18.0.1 → 18.2.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/inventory-common-routing.module.mjs +11 -1
- package/esm2022/lib/inventory-common/inventory-common.module.mjs +8 -4
- package/esm2022/lib/inventory-common/inventory-dashboard-page/inventory-dashboard-page.component.mjs +10 -8
- package/esm2022/lib/inventory-common/inventory-value-report.service.mjs +21 -0
- package/esm2022/lib/inventory-common/low-stock-report.service.mjs +23 -0
- package/esm2022/lib/inventory-common/product/low-stock-products-widget/low-stock-products-widget.component.mjs +9 -7
- package/esm2022/lib/inventory-common/product/product-list/product-list.component.mjs +30 -40
- package/esm2022/lib/inventory-common/product/product-quick-search/product-quick-search.component.mjs +92 -0
- package/esm2022/lib/inventory-common/product/product.module.mjs +7 -4
- package/esm2022/lib/inventory-common/product/widgets/product-category-badges/product-category-badges.component.mjs +18 -0
- package/esm2022/lib/inventory-common/reports/inventory-value-report/inventory-value-report.component.mjs +170 -0
- package/esm2022/lib/inventory-common/reports/low-stock-report/low-stock-report.component.mjs +165 -0
- package/esm2022/lib/inventory-common/supplier/supplier-delete-button/supplier-delete-button.component.mjs +64 -0
- package/esm2022/lib/inventory-common/supplier/supplier-form/supplier-form-button/supplier-form-button.component.mjs +43 -0
- package/esm2022/lib/inventory-common/supplier/supplier-form/supplier-form.component.mjs +9 -10
- package/esm2022/lib/inventory-common/supplier/supplier.module.mjs +15 -3
- package/esm2022/lib/inventory-common/supplier/suppliers-list/suppliers-list.component.mjs +65 -165
- package/fesm2022/{techlify-inventory-common-category.module-Stn6e73V.mjs → techlify-inventory-common-category.module-BKEBFEeZ.mjs} +9 -9
- package/fesm2022/{techlify-inventory-common-category.module-Stn6e73V.mjs.map → techlify-inventory-common-category.module-BKEBFEeZ.mjs.map} +1 -1
- package/fesm2022/{techlify-inventory-common-measure.module-CirswKXn.mjs → techlify-inventory-common-measure.module-CZHhYoQd.mjs} +9 -9
- package/fesm2022/{techlify-inventory-common-measure.module-CirswKXn.mjs.map → techlify-inventory-common-measure.module-CZHhYoQd.mjs.map} +1 -1
- package/fesm2022/{techlify-inventory-common-stock-issuances.module-Dm9i2kcf.mjs → techlify-inventory-common-stock-issuances.module-BjPbzqUW.mjs} +2 -4
- package/fesm2022/{techlify-inventory-common-stock-issuances.module-Dm9i2kcf.mjs.map → techlify-inventory-common-stock-issuances.module-BjPbzqUW.mjs.map} +1 -1
- package/fesm2022/{techlify-inventory-common-supplier.module-gzHesNtQ.mjs → techlify-inventory-common-supplier.module-CFDwJ-TS.mjs} +268 -292
- package/fesm2022/techlify-inventory-common-supplier.module-CFDwJ-TS.mjs.map +1 -0
- package/fesm2022/techlify-inventory-common-techlify-inventory-common-CYiCJfk9.mjs +3143 -0
- package/fesm2022/techlify-inventory-common-techlify-inventory-common-CYiCJfk9.mjs.map +1 -0
- package/fesm2022/techlify-inventory-common.mjs +1 -1
- package/lib/inventory-common/inventory-common.module.d.ts +2 -1
- package/lib/inventory-common/inventory-value-report.service.d.ts +9 -0
- package/lib/inventory-common/low-stock-report.service.d.ts +10 -0
- package/lib/inventory-common/product/product-list/product-list.component.d.ts +5 -7
- package/lib/inventory-common/product/product-quick-search/product-quick-search.component.d.ts +15 -0
- package/lib/inventory-common/product/product.module.d.ts +1 -1
- package/lib/inventory-common/product/widgets/product-category-badges/product-category-badges.component.d.ts +6 -0
- package/lib/inventory-common/reports/inventory-value-report/inventory-value-report.component.d.ts +26 -0
- package/lib/inventory-common/reports/low-stock-report/low-stock-report.component.d.ts +26 -0
- package/lib/inventory-common/supplier/supplier-delete-button/supplier-delete-button.component.d.ts +18 -0
- package/lib/inventory-common/supplier/supplier-form/supplier-form-button/supplier-form-button.component.d.ts +13 -0
- package/lib/inventory-common/supplier/supplier.module.d.ts +4 -1
- package/lib/inventory-common/supplier/suppliers-list/suppliers-list.component.d.ts +14 -32
- package/package.json +1 -1
- package/esm2022/lib/inventory-common/supplier/supplier-type.service.mjs +0 -25
- package/fesm2022/techlify-inventory-common-product.module-qdeafFV5.mjs +0 -1172
- package/fesm2022/techlify-inventory-common-product.module-qdeafFV5.mjs.map +0 -1
- package/fesm2022/techlify-inventory-common-stock-issuances-list.module-CyFDxARk.mjs +0 -436
- package/fesm2022/techlify-inventory-common-stock-issuances-list.module-CyFDxARk.mjs.map +0 -1
- package/fesm2022/techlify-inventory-common-stock-receipt-form.module-BZDrN7la.mjs +0 -302
- package/fesm2022/techlify-inventory-common-stock-receipt-form.module-BZDrN7la.mjs.map +0 -1
- package/fesm2022/techlify-inventory-common-stock-receipts.module-CUPdWteR.mjs +0 -253
- package/fesm2022/techlify-inventory-common-stock-receipts.module-CUPdWteR.mjs.map +0 -1
- package/fesm2022/techlify-inventory-common-supplier-form.component-CHmMG7O8.mjs +0 -178
- package/fesm2022/techlify-inventory-common-supplier-form.component-CHmMG7O8.mjs.map +0 -1
- package/fesm2022/techlify-inventory-common-supplier.module-gzHesNtQ.mjs.map +0 -1
- package/fesm2022/techlify-inventory-common-techlify-form-service-CiVfwYTS.mjs +0 -14
- package/fesm2022/techlify-inventory-common-techlify-form-service-CiVfwYTS.mjs.map +0 -1
- package/fesm2022/techlify-inventory-common-techlify-inventory-common-Czyc0jLI.mjs +0 -495
- package/fesm2022/techlify-inventory-common-techlify-inventory-common-Czyc0jLI.mjs.map +0 -1
- package/lib/inventory-common/supplier/supplier-type.service.d.ts +0 -13
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { h as InventoryCommonModule, I as InventoryCommonRoutingModule, i as StockSummaryService, b as TechlifyFilterComponent, c as TechlifyFilterModule } from './techlify-inventory-common-techlify-inventory-common-CYiCJfk9.mjs';
|
|
2
2
|
//# sourceMappingURL=techlify-inventory-common.mjs.map
|
|
@@ -6,8 +6,9 @@ import * as i4 from "ngx-techlify-core";
|
|
|
6
6
|
import * as i5 from "./product/low-stock-products-widget/low-stock-products-widget.module";
|
|
7
7
|
import * as i6 from "./product/product-summary-chart/product-summary-chart.module";
|
|
8
8
|
import * as i7 from "./product/product-summary-chart/product-summary-chart.component";
|
|
9
|
+
import * as i8 from "./product/product-quick-search/product-quick-search.component";
|
|
9
10
|
export declare class InventoryCommonModule {
|
|
10
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<InventoryCommonModule, never>;
|
|
11
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<InventoryCommonModule, [typeof i1.InventoryDashboardPageComponent], [typeof i2.CommonModule, typeof i3.InventoryCommonRoutingModule, typeof i4.MaterialModule, typeof i5.LowStockProductsWidgetModule, typeof i6.ProductSummaryChartModule, typeof i7.ProductSummaryChartComponent], never>;
|
|
12
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<InventoryCommonModule, [typeof i1.InventoryDashboardPageComponent], [typeof i2.CommonModule, typeof i3.InventoryCommonRoutingModule, typeof i4.MaterialModule, typeof i5.LowStockProductsWidgetModule, typeof i6.ProductSummaryChartModule, typeof i7.ProductSummaryChartComponent, typeof i8.ProductQuickSearchComponent], never>;
|
|
12
13
|
static ɵinj: i0.ɵɵInjectorDeclaration<InventoryCommonModule>;
|
|
13
14
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { HttpService, TechlifyServiceBaseClass } from 'ngx-techlify-core';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class InventoryValueReportService extends TechlifyServiceBaseClass {
|
|
5
|
+
constructor(httpService: HttpService);
|
|
6
|
+
export(params?: any): Observable<any>;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InventoryValueReportService, never>;
|
|
8
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<InventoryValueReportService>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { HttpService, TechlifyServiceBaseClass } from 'ngx-techlify-core';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class LowStockReportService extends TechlifyServiceBaseClass {
|
|
5
|
+
protected httpService: HttpService;
|
|
6
|
+
constructor(httpService: HttpService);
|
|
7
|
+
export(params?: any): Observable<any>;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LowStockReportService, never>;
|
|
9
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<LowStockReportService>;
|
|
10
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { OnInit } from "@angular/core";
|
|
2
|
-
import { FormBuilder,
|
|
2
|
+
import { FormBuilder, FormGroup } from "@angular/forms";
|
|
3
3
|
import { MatDialog } from "@angular/material/dialog";
|
|
4
4
|
import { MatTableDataSource } from "@angular/material/table";
|
|
5
5
|
import { ActivatedRoute } from "@angular/router";
|
|
6
|
-
import { RequestHelperService } from "ngx-techlify-core";
|
|
6
|
+
import { ColumnConfig, RequestHelperService } from "ngx-techlify-core";
|
|
7
7
|
import { ProductService } from "../product.service";
|
|
8
8
|
import { ProductFormService } from "../product-form.service";
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
@@ -25,11 +25,9 @@ export declare class ProductListComponent implements OnInit {
|
|
|
25
25
|
products: any[];
|
|
26
26
|
dataSource: MatTableDataSource<unknown, import("@angular/material/paginator").MatPaginator>;
|
|
27
27
|
isLoading: boolean;
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}[];
|
|
32
|
-
displayedColumns: FormControl;
|
|
28
|
+
columnConfig: ColumnConfig[];
|
|
29
|
+
selectedColumns: ColumnConfig[];
|
|
30
|
+
get displayedColumns(): string[];
|
|
33
31
|
importId: number;
|
|
34
32
|
constructor(fb: FormBuilder, dialog: MatDialog, activatedRoute: ActivatedRoute, productService: ProductService, requestHelperService: RequestHelperService, productFormService: ProductFormService);
|
|
35
33
|
ngOnInit(): void;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { TechlifyListingControllerInterface } from 'ngx-techlify-core';
|
|
3
|
+
import { FormControl } from '@angular/forms';
|
|
4
|
+
import { ProductService } from "../product.service";
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class ProductQuickSearchComponent extends TechlifyListingControllerInterface implements OnInit {
|
|
7
|
+
private productService;
|
|
8
|
+
displayedColumns: string[];
|
|
9
|
+
searchControl: FormControl<any>;
|
|
10
|
+
constructor(productService: ProductService);
|
|
11
|
+
ngOnInit(): void;
|
|
12
|
+
loadData(): void;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProductQuickSearchComponent, never>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProductQuickSearchComponent, "app-product-quick-search", never, {}, {}, never, never, true, never>;
|
|
15
|
+
}
|
|
@@ -23,6 +23,6 @@ import * as i21 from "@angular/flex-layout";
|
|
|
23
23
|
import * as i22 from "@angular/forms";
|
|
24
24
|
export declare class ProductModule {
|
|
25
25
|
static ɵfac: i0.ɵɵFactoryDeclaration<ProductModule, never>;
|
|
26
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ProductModule, [typeof i1.ProductListComponent, typeof i2.ProductFormComponent, typeof i3.ProductNavBarComponent, typeof i4.ProductMeasuresListComponent, typeof i5.ProductMeasureFormComponent, typeof i6.ProductViewPageComponent, typeof i7.ProductFormButtonComponent, typeof i8.ProductDeleteButtonComponent, typeof i9.ProductBasicInfoComponent, typeof i10.ProductImportPageComponent], [typeof i11.CommonModule, typeof i12.ProductRoutingModule, typeof i13.SearchableSelectorModule, typeof i13.TimelineFilterModule, typeof i14.StockReceiptFormModule, typeof i15.StockIssueFormModule, typeof i13.ImportCsvModule, typeof i16.StockReceiptsModule, typeof i17.StockIssuancesListModule, typeof i18.ProductTaxModule, typeof i13.MaterialModule, typeof i19.MatProgressBarModule, typeof i20.InfiniteScrollModule, typeof i21.FlexModule, typeof i22.ReactiveFormsModule, typeof i22.FormsModule], [typeof i2.ProductFormComponent, typeof i9.ProductBasicInfoComponent, typeof i7.ProductFormButtonComponent]>;
|
|
26
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ProductModule, [typeof i1.ProductListComponent, typeof i2.ProductFormComponent, typeof i3.ProductNavBarComponent, typeof i4.ProductMeasuresListComponent, typeof i5.ProductMeasureFormComponent, typeof i6.ProductViewPageComponent, typeof i7.ProductFormButtonComponent, typeof i8.ProductDeleteButtonComponent, typeof i9.ProductBasicInfoComponent, typeof i10.ProductImportPageComponent], [typeof i11.CommonModule, typeof i12.ProductRoutingModule, typeof i13.SearchableSelectorModule, typeof i13.TimelineFilterModule, typeof i14.StockReceiptFormModule, typeof i15.StockIssueFormModule, typeof i13.ImportCsvModule, typeof i16.StockReceiptsModule, typeof i17.StockIssuancesListModule, typeof i18.ProductTaxModule, typeof i13.MaterialModule, typeof i19.MatProgressBarModule, typeof i20.InfiniteScrollModule, typeof i21.FlexModule, typeof i22.ReactiveFormsModule, typeof i22.FormsModule, typeof i13.ColumnSelectorModule], [typeof i2.ProductFormComponent, typeof i9.ProductBasicInfoComponent, typeof i7.ProductFormButtonComponent]>;
|
|
27
27
|
static ɵinj: i0.ɵɵInjectorDeclaration<ProductModule>;
|
|
28
28
|
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class ProductCategoryBadgesComponent {
|
|
3
|
+
product: any;
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProductCategoryBadgesComponent, never>;
|
|
5
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProductCategoryBadgesComponent, "app-product-category-badges", never, { "product": { "alias": "product"; "required": false; }; }, {}, never, never, true, never>;
|
|
6
|
+
}
|
package/lib/inventory-common/reports/inventory-value-report/inventory-value-report.component.d.ts
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { RequestHelperService, TechlifyListingControllerInterface } from 'ngx-techlify-core';
|
|
3
|
+
import { InventoryValueReportService } from '../../inventory-value-report.service';
|
|
4
|
+
import { ActivatedRoute } from '@angular/router';
|
|
5
|
+
import { FormBuilder } from '@angular/forms';
|
|
6
|
+
import { Sort } from '@angular/material/sort';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class InventoryValueReportComponent extends TechlifyListingControllerInterface implements OnInit {
|
|
9
|
+
private service;
|
|
10
|
+
private activatedRoute;
|
|
11
|
+
private requestHelperService;
|
|
12
|
+
private formBuilder;
|
|
13
|
+
displayedColumns: string[];
|
|
14
|
+
totalInventoryValue: number;
|
|
15
|
+
isExporting: boolean;
|
|
16
|
+
constructor(service: InventoryValueReportService, activatedRoute: ActivatedRoute, requestHelperService: RequestHelperService, formBuilder: FormBuilder);
|
|
17
|
+
ngOnInit(): void;
|
|
18
|
+
loadData(): void;
|
|
19
|
+
private updateFormWithQueryParams;
|
|
20
|
+
private subscribeToFormChanges;
|
|
21
|
+
private subscribeToRouteChanges;
|
|
22
|
+
onSortChange(sort: Sort): void;
|
|
23
|
+
export(type?: string): void;
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InventoryValueReportComponent, never>;
|
|
25
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InventoryValueReportComponent, "app-inventory-value-report", never, {}, {}, never, never, true, never>;
|
|
26
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { FormBuilder } from "@angular/forms";
|
|
3
|
+
import { Sort } from "@angular/material/sort";
|
|
4
|
+
import { RequestHelperService, TechlifyListingControllerInterface } from "ngx-techlify-core";
|
|
5
|
+
import { ActivatedRoute } from '@angular/router';
|
|
6
|
+
import { LowStockReportService } from '../../low-stock-report.service';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class LowStockReportComponent extends TechlifyListingControllerInterface implements OnInit {
|
|
9
|
+
private service;
|
|
10
|
+
private activatedRoute;
|
|
11
|
+
private requestHelperService;
|
|
12
|
+
private formBuilder;
|
|
13
|
+
displayedColumns: string[];
|
|
14
|
+
totalInventoryValue: number;
|
|
15
|
+
isExporting: boolean;
|
|
16
|
+
constructor(service: LowStockReportService, activatedRoute: ActivatedRoute, requestHelperService: RequestHelperService, formBuilder: FormBuilder);
|
|
17
|
+
ngOnInit(): void;
|
|
18
|
+
loadData(): void;
|
|
19
|
+
onSortChange(sort: Sort): void;
|
|
20
|
+
export(): void;
|
|
21
|
+
private updateFormWithQueryParams;
|
|
22
|
+
private subscribeToFormChanges;
|
|
23
|
+
private subscribeToRouteChanges;
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LowStockReportComponent, never>;
|
|
25
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LowStockReportComponent, "app-low-stock-report", never, {}, {}, never, never, true, never>;
|
|
26
|
+
}
|
package/lib/inventory-common/supplier/supplier-delete-button/supplier-delete-button.component.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { AlertService, ErrorHandlerService } from 'ngx-techlify-core';
|
|
3
|
+
import { MatDialog } from '@angular/material/dialog';
|
|
4
|
+
import { SupplierService } from '../supplier.service';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class SupplierDeleteButtonComponent implements OnInit {
|
|
7
|
+
private dialog;
|
|
8
|
+
private alertService;
|
|
9
|
+
private errorHandler;
|
|
10
|
+
private supplierService;
|
|
11
|
+
supplier: any;
|
|
12
|
+
onDelete: EventEmitter<any>;
|
|
13
|
+
constructor(dialog: MatDialog, alertService: AlertService, errorHandler: ErrorHandlerService, supplierService: SupplierService);
|
|
14
|
+
ngOnInit(): void;
|
|
15
|
+
openDialog(): void;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SupplierDeleteButtonComponent, never>;
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SupplierDeleteButtonComponent, "app-supplier-delete-button", never, { "supplier": { "alias": "supplier"; "required": false; }; }, { "onDelete": "onDelete"; }, never, never, true, never>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { MatDialog } from '@angular/material/dialog';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class SupplierFormButtonComponent implements OnInit {
|
|
5
|
+
private matDialog;
|
|
6
|
+
supplier: any;
|
|
7
|
+
onSaved: EventEmitter<any>;
|
|
8
|
+
constructor(matDialog: MatDialog);
|
|
9
|
+
ngOnInit(): void;
|
|
10
|
+
openDialog(): void;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SupplierFormButtonComponent, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SupplierFormButtonComponent, "app-supplier-form-button", never, { "supplier": { "alias": "supplier"; "required": false; }; }, { "onSaved": "onSaved"; }, never, never, true, never>;
|
|
13
|
+
}
|
|
@@ -11,8 +11,11 @@ import * as i9 from "ngx-techlify-core";
|
|
|
11
11
|
import * as i10 from "@angular/flex-layout";
|
|
12
12
|
import * as i11 from "@angular/forms";
|
|
13
13
|
import * as i12 from "ngx-infinite-scroll";
|
|
14
|
+
import * as i13 from "ngx-permissions";
|
|
15
|
+
import * as i14 from "./supplier-form/supplier-form-button/supplier-form-button.component";
|
|
16
|
+
import * as i15 from "./supplier-delete-button/supplier-delete-button.component";
|
|
14
17
|
export declare class SupplierModule {
|
|
15
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<SupplierModule, never>;
|
|
16
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SupplierModule, [typeof i1.SupplierComponent, typeof i2.SupplierViewComponent, typeof i3.SuppliersListComponent, typeof i4.SupplierFormComponent, typeof i5.SupplierInformationComponent], [typeof i6.CommonModule, typeof i7.SupplierRoutingModule, typeof i8.MaterialModule, typeof i9.SearchableSelectorModule, typeof i9.AuditLogForModelModule, typeof i9.NoteModule, typeof i10.FlexModule, typeof i11.ReactiveFormsModule, typeof i12.InfiniteScrollModule], never>;
|
|
19
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SupplierModule, [typeof i1.SupplierComponent, typeof i2.SupplierViewComponent, typeof i3.SuppliersListComponent, typeof i4.SupplierFormComponent, typeof i5.SupplierInformationComponent], [typeof i6.CommonModule, typeof i7.SupplierRoutingModule, typeof i8.MaterialModule, typeof i9.SearchableSelectorModule, typeof i9.AuditLogForModelModule, typeof i9.NoteModule, typeof i10.FlexModule, typeof i11.ReactiveFormsModule, typeof i12.InfiniteScrollModule, typeof i13.NgxPermissionsModule, typeof i14.SupplierFormButtonComponent, typeof i15.SupplierDeleteButtonComponent], never>;
|
|
17
20
|
static ɵinj: i0.ɵɵInjectorDeclaration<SupplierModule>;
|
|
18
21
|
}
|
|
@@ -1,51 +1,33 @@
|
|
|
1
|
-
import { OnInit } from
|
|
2
|
-
import {
|
|
3
|
-
import { MatDialog } from
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { SupplierService } from "../supplier.service";
|
|
10
|
-
import { SupplierFormService } from "../supplier-form/supplier-form.service";
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { FormBuilder } from '@angular/forms';
|
|
3
|
+
import { MatDialog } from '@angular/material/dialog';
|
|
4
|
+
import { ActivatedRoute } from '@angular/router';
|
|
5
|
+
import { NgxSpinnerService } from 'ngx-spinner';
|
|
6
|
+
import { AlertService, ErrorHandlerService, FilterService, RequestHelperService, TechlifyListingControllerInterface } from 'ngx-techlify-core';
|
|
7
|
+
import { SupplierService } from '../supplier.service';
|
|
8
|
+
import { SupplierFormService } from '../supplier-form/supplier-form.service';
|
|
11
9
|
import * as i0 from "@angular/core";
|
|
12
10
|
export declare class SuppliersListComponent extends TechlifyListingControllerInterface implements OnInit {
|
|
13
11
|
private spinner;
|
|
14
12
|
private fb;
|
|
15
13
|
private supplierService;
|
|
16
|
-
private supplierTypeService;
|
|
17
14
|
private errorHandler;
|
|
18
15
|
private filterService;
|
|
19
16
|
private activatedRoute;
|
|
20
17
|
private alertService;
|
|
21
18
|
private dialog;
|
|
22
19
|
private supplierFormService;
|
|
20
|
+
private requestHelperService;
|
|
23
21
|
displayedColumns: string[];
|
|
24
|
-
|
|
25
|
-
dataSource: MatTableDataSource<unknown, import("@angular/material/paginator").MatPaginator>;
|
|
26
|
-
totalItems: number;
|
|
27
|
-
currentPage: number;
|
|
28
|
-
routeFilters: any;
|
|
29
|
-
supplierTypes: any;
|
|
30
|
-
isLoading: boolean;
|
|
31
|
-
constructor(spinner: NgxSpinnerService, fb: FormBuilder, supplierService: SupplierService, supplierTypeService: SupplierTypeService, errorHandler: ErrorHandlerService, filterService: FilterService, activatedRoute: ActivatedRoute, alertService: AlertService, dialog: MatDialog, supplierFormService: SupplierFormService);
|
|
22
|
+
constructor(spinner: NgxSpinnerService, fb: FormBuilder, supplierService: SupplierService, errorHandler: ErrorHandlerService, filterService: FilterService, activatedRoute: ActivatedRoute, alertService: AlertService, dialog: MatDialog, supplierFormService: SupplierFormService, requestHelperService: RequestHelperService);
|
|
32
23
|
ngOnInit(): void;
|
|
33
24
|
listenForChanges(): void;
|
|
34
|
-
patchFiltersFromRoute(): void;
|
|
35
25
|
sortColumn(event: any): void;
|
|
36
|
-
assignFilter(column: any, direction: any):
|
|
37
|
-
getSupplierTypes(): Promise<void>;
|
|
26
|
+
assignFilter(column: any, direction: any): any;
|
|
38
27
|
loadData(): Promise<void>;
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
deleteForm(supplier: any): void;
|
|
43
|
-
/**
|
|
44
|
-
* Show the supplier create form.
|
|
45
|
-
*
|
|
46
|
-
* @param model
|
|
47
|
-
*/
|
|
48
|
-
showAddSupplierDialog(model?: any): void;
|
|
28
|
+
private updateFormWithQueryParams;
|
|
29
|
+
private subscribeToFormChanges;
|
|
30
|
+
private subscribeToRouteChanges;
|
|
49
31
|
static ɵfac: i0.ɵɵFactoryDeclaration<SuppliersListComponent, never>;
|
|
50
32
|
static ɵcmp: i0.ɵɵComponentDeclaration<SuppliersListComponent, "app-suppliers-list", never, {}, {}, never, never, false, never>;
|
|
51
33
|
}
|
package/package.json
CHANGED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { Injectable } from "@angular/core";
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "ngx-techlify-core";
|
|
4
|
-
export class SupplierTypeService {
|
|
5
|
-
httpService;
|
|
6
|
-
constructor(httpService) {
|
|
7
|
-
this.httpService = httpService;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* get all suppliers from API
|
|
11
|
-
*
|
|
12
|
-
*/
|
|
13
|
-
index() {
|
|
14
|
-
return this.httpService.get(`api/supplier-types`);
|
|
15
|
-
}
|
|
16
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SupplierTypeService, deps: [{ token: i1.HttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
17
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SupplierTypeService, providedIn: "root" });
|
|
18
|
-
}
|
|
19
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SupplierTypeService, decorators: [{
|
|
20
|
-
type: Injectable,
|
|
21
|
-
args: [{
|
|
22
|
-
providedIn: "root",
|
|
23
|
-
}]
|
|
24
|
-
}], ctorParameters: () => [{ type: i1.HttpService }] });
|
|
25
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3VwcGxpZXItdHlwZS5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvaW52ZW50b3J5LWNvbW1vbi9zcmMvbGliL2ludmVudG9yeS1jb21tb24vc3VwcGxpZXIvc3VwcGxpZXItdHlwZS5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7OztBQU0zQyxNQUFNLE9BQU8sbUJBQW1CO0lBQ1Y7SUFBcEIsWUFBb0IsV0FBd0I7UUFBeEIsZ0JBQVcsR0FBWCxXQUFXLENBQWE7SUFBRyxDQUFDO0lBRWhEOzs7T0FHRztJQUNILEtBQUs7UUFDSCxPQUFPLElBQUksQ0FBQyxXQUFXLENBQUMsR0FBRyxDQUFDLG9CQUFvQixDQUFDLENBQUM7SUFDcEQsQ0FBQzt3R0FUVSxtQkFBbUI7NEdBQW5CLG1CQUFtQixjQUZsQixNQUFNOzs0RkFFUCxtQkFBbUI7a0JBSC9CLFVBQVU7bUJBQUM7b0JBQ1YsVUFBVSxFQUFFLE1BQU07aUJBQ25CIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgSW5qZWN0YWJsZSB9IGZyb20gXCJAYW5ndWxhci9jb3JlXCI7XG5pbXBvcnQgeyBIdHRwU2VydmljZSB9IGZyb20gXCJuZ3gtdGVjaGxpZnktY29yZVwiO1xuXG5ASW5qZWN0YWJsZSh7XG4gIHByb3ZpZGVkSW46IFwicm9vdFwiLFxufSlcbmV4cG9ydCBjbGFzcyBTdXBwbGllclR5cGVTZXJ2aWNlIHtcbiAgY29uc3RydWN0b3IocHJpdmF0ZSBodHRwU2VydmljZTogSHR0cFNlcnZpY2UpIHt9XG5cbiAgLyoqXG4gICAqIGdldCBhbGwgc3VwcGxpZXJzIGZyb20gQVBJXG4gICAqXG4gICAqL1xuICBpbmRleCgpIHtcbiAgICByZXR1cm4gdGhpcy5odHRwU2VydmljZS5nZXQoYGFwaS9zdXBwbGllci10eXBlc2ApO1xuICB9XG59XG4iXX0=
|