techlify-inventory-common 18.29.0 → 18.31.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/location/location-form-button/location-form-button.component.mjs +7 -4
- package/esm2022/lib/inventory-common/location/location-information/location-information.component.mjs +17 -15
- package/esm2022/lib/inventory-common/location/location-list/location-list.component.mjs +7 -7
- package/esm2022/lib/inventory-common/location/location-selector/location-selector.component.mjs +6 -5
- package/esm2022/lib/inventory-common/location/location-view/location-view.component.mjs +8 -9
- package/esm2022/lib/inventory-common/location/shelf/shelf-form-button/shelf-form-button.component.mjs +10 -6
- package/esm2022/lib/inventory-common/location/shelf/shelf-list/shelf-list.component.mjs +17 -16
- package/esm2022/lib/inventory-common/product/product-basic-info/product-basic-info.component.mjs +15 -11
- package/esm2022/lib/inventory-common/product/product-form/product-form.component.mjs +136 -108
- package/esm2022/lib/inventory-common/product/product-form-button/product-form-button.component.mjs +10 -35
- package/esm2022/lib/inventory-common/product/product-list/product-list.component.mjs +1 -1
- package/esm2022/lib/inventory-common/product/product-routing.module.mjs +12 -1
- package/esm2022/lib/inventory-common/product/product-view-page/product-view-page.component.mjs +2 -2
- package/esm2022/lib/inventory-common/product/product.module.mjs +16 -5
- package/esm2022/lib/inventory-common/stock-issuances/stock-issue-batch-form/stock-issue-batch-form.component.mjs +120 -0
- package/esm2022/lib/inventory-common/stock-issuances/stock-issue-form/stock-issue-form-button/stock-issue-form-button.component.mjs +5 -4
- package/esm2022/lib/inventory-common/stock-issuances/stock-issue-form/stock-issue-form.module.mjs +7 -4
- package/esm2022/lib/inventory-common/stock-issuances/stock-issue-list/stock-issue-list.component.mjs +21 -12
- package/esm2022/lib/inventory-common/stock-issuances/stock-issue-routing.module.mjs +6 -1
- package/esm2022/lib/inventory-common/stock-receipts/stock-receipt-batch-form/stock-receipt-batch-form.component.mjs +152 -0
- package/esm2022/lib/inventory-common/stock-receipts/stock-receipt-form/stock-receipt-form/stock-receipt-form.component.mjs +3 -3
- 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-list-page/stock-receipts-list-page.component.mjs +59 -100
- package/esm2022/lib/inventory-common/stock-receipts/stock-receipts-routing.module.mjs +7 -1
- package/esm2022/lib/inventory-common/stock-receipts/stock-receipts.module.mjs +35 -30
- package/esm2022/lib/inventory-common/supplier/purchase-order/purchase-order-form/purchase-order-form.component.mjs +156 -0
- package/esm2022/lib/inventory-common/supplier/purchase-order/purchase-order-listing/purchase-order-listing.component.mjs +9 -5
- package/esm2022/lib/inventory-common/supplier/purchase-order/purchase-order-product-list/purchase-order-product-list.component.mjs +27 -0
- package/esm2022/lib/inventory-common/supplier/purchase-order/purchase-order-view/purchase-order-view.component.mjs +63 -0
- package/esm2022/lib/inventory-common/supplier/supplier-routing.module.mjs +14 -1
- package/esm2022/public-api.mjs +1 -3
- package/fesm2022/{techlify-inventory-common-category.module-BT3uLLqI.mjs → techlify-inventory-common-category.module-CMCZ_60M.mjs} +13 -13
- package/fesm2022/{techlify-inventory-common-category.module-BT3uLLqI.mjs.map → techlify-inventory-common-category.module-CMCZ_60M.mjs.map} +1 -1
- package/fesm2022/{techlify-inventory-common-measure.module-s9xhNWZM.mjs → techlify-inventory-common-measure.module-6JtrzPaD.mjs} +7 -7
- package/fesm2022/{techlify-inventory-common-measure.module-s9xhNWZM.mjs.map → techlify-inventory-common-measure.module-6JtrzPaD.mjs.map} +1 -1
- package/fesm2022/techlify-inventory-common-purchase-order-view.component-PylRUv5V.mjs +86 -0
- package/fesm2022/techlify-inventory-common-purchase-order-view.component-PylRUv5V.mjs.map +1 -0
- package/fesm2022/techlify-inventory-common-stock-issue-batch-form.component-B_KbA68z.mjs +119 -0
- package/fesm2022/techlify-inventory-common-stock-issue-batch-form.component-B_KbA68z.mjs.map +1 -0
- package/fesm2022/{techlify-inventory-common-stock-issue-view.component-CNrY99hf.mjs → techlify-inventory-common-stock-issue-view.component-Ca_lo9Mo.mjs} +7 -7
- package/fesm2022/{techlify-inventory-common-stock-issue-view.component-CNrY99hf.mjs.map → techlify-inventory-common-stock-issue-view.component-Ca_lo9Mo.mjs.map} +1 -1
- package/fesm2022/{techlify-inventory-common-techlify-inventory-common-DRw7na0D.mjs → techlify-inventory-common-techlify-inventory-common-BRqmW8Lo.mjs} +865 -679
- package/fesm2022/techlify-inventory-common-techlify-inventory-common-BRqmW8Lo.mjs.map +1 -0
- package/fesm2022/techlify-inventory-common.mjs +1 -1
- package/lib/inventory-common/location/location-information/location-information.component.d.ts +3 -1
- package/lib/inventory-common/location/location-selector/location-selector.component.d.ts +3 -1
- package/lib/inventory-common/product/product-basic-info/product-basic-info.component.d.ts +3 -1
- package/lib/inventory-common/product/product-form/product-form.component.d.ts +23 -27
- package/lib/inventory-common/product/product-form-button/product-form-button.component.d.ts +3 -16
- package/lib/inventory-common/product/product.module.d.ts +3 -1
- package/lib/inventory-common/stock-issuances/stock-issue-batch-form/stock-issue-batch-form.component.d.ts +31 -0
- package/lib/inventory-common/stock-issuances/stock-issue-form/stock-issue-form.module.d.ts +1 -1
- package/lib/inventory-common/stock-issuances/stock-issue-list/stock-issue-list.component.d.ts +0 -1
- package/lib/inventory-common/stock-receipts/stock-receipt-batch-form/stock-receipt-batch-form.component.d.ts +39 -0
- package/lib/inventory-common/stock-receipts/stock-receipts-list-page/stock-receipts-list-page.component.d.ts +5 -11
- package/lib/inventory-common/stock-receipts/stock-receipts.module.d.ts +11 -12
- package/lib/inventory-common/supplier/purchase-order/purchase-order-form/purchase-order-form.component.d.ts +30 -0
- package/lib/inventory-common/supplier/purchase-order/purchase-order-product-list/purchase-order-product-list.component.d.ts +7 -0
- package/lib/inventory-common/supplier/purchase-order/purchase-order-view/purchase-order-view.component.d.ts +19 -0
- package/package.json +1 -1
- package/public-api.d.ts +0 -2
- package/esm2022/lib/inventory-common/location/location-delete-button/location-delete-button.component.mjs +0 -68
- package/esm2022/lib/inventory-common/location/shelf/shelf-delete-button/shelf-delete-button.component.mjs +0 -60
- package/fesm2022/techlify-inventory-common-techlify-inventory-common-DRw7na0D.mjs.map +0 -1
- package/lib/inventory-common/location/location-delete-button/location-delete-button.component.d.ts +0 -28
- package/lib/inventory-common/location/shelf/shelf-delete-button/shelf-delete-button.component.d.ts +0 -20
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { a4 as ExportToExcelButtonComponent, _ as IncidentFormButtonComponent, Z as IncidentFormComponent, Y as IncidentListComponent, W as IncidentModule, X as IncidentService, h as InventoryCommonModule, I as InventoryCommonRoutingModule, a8 as LocationFormButtonComponent, a7 as LocationFormComponent, a6 as LocationListComponent, a5 as LocationModule, L as LocationService, M as MeasureService, V as PayeeSelectorComponent, U as PayeeSelectorModule, l as ProductBasicInfoComponent, t as ProductBatchUpdateFormComponent, m as ProductFormButtonComponent, k as ProductFormComponent, s as ProductFormService, u as ProductImportPageComponent, q as ProductListComponent, j as ProductModule, n as ProductQuickSearchComponent, p as ProductSearchComponent, o as ProductSearchModule, r as ProductService, v as ProductViewPageComponent, a3 as RatingFormButtonComponent, a2 as RatingFormComponent, a1 as RatingListComponent, $ as RatingModule, a0 as RatingService, ad as ShelfFormButtonComponent, ac as ShelfFormComponent, ab as ShelfListComponent, a9 as ShelfModule, aa as ShelfService, e as StockIssueFormButtonComponent, d as StockIssueFormModule, x as StockIssueListComponent, y as StockIssueListModule, w as StockIssueModule, A as StockReceiptDeleteButtonComponent, D as StockReceiptFormButtonComponent, C as StockReceiptFormModule, E as StockReceiptViewComponent, B as StockReceiptsListPageComponent, z as StockReceiptsModule, i as StockSummaryService, H as StockTransferFormButtonComponent, G as StockTransferFormComponent, F as StockTransferListComponent, J as StockTransferService, N as SupplierFormButtonComponent, O as SupplierFormComponent, K as SupplierModule, R as SupplierTypeService, Q as SuppliersListComponent, T as TechlifyFilterComponent, a as TechlifyFilterModule } from './techlify-inventory-common-techlify-inventory-common-BRqmW8Lo.mjs';
|
|
2
2
|
//# sourceMappingURL=techlify-inventory-common.mjs.map
|
package/lib/inventory-common/location/location-information/location-information.component.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { Location } from '@angular/common';
|
|
2
|
+
import { LocationService } from '../location.service';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class LocationInformationComponent {
|
|
4
5
|
private location;
|
|
6
|
+
service: LocationService;
|
|
5
7
|
model: any;
|
|
6
|
-
constructor(location: Location);
|
|
8
|
+
constructor(location: Location, service: LocationService);
|
|
7
9
|
redirectBack(): void;
|
|
8
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<LocationInformationComponent, never>;
|
|
9
11
|
static ɵcmp: i0.ɵɵComponentDeclaration<LocationInformationComponent, "app-location-information", never, { "model": { "alias": "model"; "required": false; }; }, {}, never, never, true, never>;
|
|
@@ -2,6 +2,7 @@ import { OnInit } from '@angular/core';
|
|
|
2
2
|
import { ControlValueAccessor, FormControl } from '@angular/forms';
|
|
3
3
|
import { LocationService } from '../location.service';
|
|
4
4
|
import { TechlifyFeatureService } from 'ngx-techlify-core';
|
|
5
|
+
import { MatFormFieldAppearance } from '@angular/material/form-field';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
interface HierarchicalLocation {
|
|
7
8
|
id: number;
|
|
@@ -12,6 +13,7 @@ interface HierarchicalLocation {
|
|
|
12
13
|
export declare class LocationSelectorComponent implements ControlValueAccessor, OnInit {
|
|
13
14
|
private locationService;
|
|
14
15
|
private featureService;
|
|
16
|
+
appearance: import("@angular/core").InputSignal<MatFormFieldAppearance>;
|
|
15
17
|
label: import("@angular/core").InputSignal<string>;
|
|
16
18
|
placeholder: import("@angular/core").InputSignal<string>;
|
|
17
19
|
includeNone: import("@angular/core").InputSignal<boolean>;
|
|
@@ -38,6 +40,6 @@ export declare class LocationSelectorComponent implements ControlValueAccessor,
|
|
|
38
40
|
registerOnTouched(fn: () => void): void;
|
|
39
41
|
setDisabledState(isDisabled: boolean): void;
|
|
40
42
|
static ɵfac: i0.ɵɵFactoryDeclaration<LocationSelectorComponent, never>;
|
|
41
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LocationSelectorComponent, "app-location-selector", never, { "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>;
|
|
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>;
|
|
42
44
|
}
|
|
43
45
|
export {};
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
2
|
import { StockSummaryService } from '../../stock-summary.service';
|
|
3
|
+
import { ProductService } from '../product.service';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class ProductBasicInfoComponent implements OnInit {
|
|
5
6
|
private stockSummaryService;
|
|
7
|
+
protected service: ProductService;
|
|
6
8
|
product: any;
|
|
7
9
|
saved: EventEmitter<any>;
|
|
8
10
|
deleted: EventEmitter<any>;
|
|
9
11
|
stockSummary: any;
|
|
10
|
-
constructor(stockSummaryService: StockSummaryService);
|
|
12
|
+
constructor(stockSummaryService: StockSummaryService, service: ProductService);
|
|
11
13
|
ngOnInit(): void;
|
|
12
14
|
onProductSaved(product: any): void;
|
|
13
15
|
/**
|
|
@@ -1,36 +1,32 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { FormBuilder,
|
|
3
|
-
import {
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { FormBuilder, FormControl } from '@angular/forms';
|
|
3
|
+
import { ErrorHandlerService, FormValidatorService, TechlifyFormComponentInterface, FormConfigurationFormService, FormConfigurationUtilityService } from 'ngx-techlify-core';
|
|
4
4
|
import { ProductService } from '../product.service';
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { ActivatedRoute, Router } from '@angular/router';
|
|
6
|
+
import { Location } from '@angular/common';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
|
-
export declare class ProductFormComponent implements OnInit {
|
|
9
|
-
private productService;
|
|
8
|
+
export declare class ProductFormComponent extends TechlifyFormComponentInterface implements OnInit {
|
|
10
9
|
private fb;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
private
|
|
14
|
-
private
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
saved: EventEmitter<any>;
|
|
19
|
-
cancelled: EventEmitter<any>;
|
|
20
|
-
product: any;
|
|
10
|
+
protected formValidatorService: FormValidatorService;
|
|
11
|
+
protected service: ProductService;
|
|
12
|
+
private activatedRoute;
|
|
13
|
+
private errorHandler;
|
|
14
|
+
location: Location;
|
|
15
|
+
private router;
|
|
16
|
+
private formConfigService;
|
|
21
17
|
displayedFormFields: any[];
|
|
22
18
|
displayedFormSections: any[];
|
|
23
|
-
|
|
19
|
+
product: import("@angular/core").WritableSignal<any>;
|
|
20
|
+
isFormSetup: import("@angular/core").WritableSignal<boolean>;
|
|
21
|
+
errorMessages: any;
|
|
22
|
+
isCreateAnother: FormControl<boolean | null>;
|
|
23
|
+
savedCount: number;
|
|
24
|
+
formConfigurationUtilityService: FormConfigurationUtilityService;
|
|
25
|
+
constructor(fb: FormBuilder, formValidatorService: FormValidatorService, service: ProductService, activatedRoute: ActivatedRoute, errorHandler: ErrorHandlerService, location: Location, router: Router, formConfigService: FormConfigurationFormService);
|
|
24
26
|
ngOnInit(): void;
|
|
27
|
+
loadProduct(): void;
|
|
28
|
+
patchProduct(): void;
|
|
25
29
|
save(): Promise<void>;
|
|
26
|
-
/**
|
|
27
|
-
* Method to evaluate form fields
|
|
28
|
-
*/
|
|
29
|
-
isFieldValid(field: string): any;
|
|
30
|
-
/**
|
|
31
|
-
* Method to find error in form fields
|
|
32
|
-
*/
|
|
33
|
-
getErrorMessage(field: string): any;
|
|
34
30
|
/**
|
|
35
31
|
* Checks displayed Form Fields array for form field and returns boolean result
|
|
36
32
|
*/
|
|
@@ -40,5 +36,5 @@ export declare class ProductFormComponent implements OnInit {
|
|
|
40
36
|
*/
|
|
41
37
|
isFormSectionShown(sectionName: string): boolean;
|
|
42
38
|
static ɵfac: i0.ɵɵFactoryDeclaration<ProductFormComponent, never>;
|
|
43
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ProductFormComponent, "app-product-form", never, { "
|
|
39
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProductFormComponent, "app-product-form", never, { "displayedFormFields": { "alias": "displayedFormFields"; "required": false; }; "displayedFormSections": { "alias": "displayedFormSections"; "required": false; }; }, {}, never, never, false, never>;
|
|
44
40
|
}
|
|
@@ -1,20 +1,7 @@
|
|
|
1
|
-
import { EventEmitter, TemplateRef } from '@angular/core';
|
|
2
|
-
import { MatDialog } from '@angular/material/dialog';
|
|
3
|
-
import { ProductFormService } from '../product-form.service';
|
|
4
1
|
import * as i0 from "@angular/core";
|
|
5
2
|
export declare class ProductFormButtonComponent {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
product: any;
|
|
9
|
-
saved: EventEmitter<any>;
|
|
10
|
-
constructor(matDialog: MatDialog, productFormService: ProductFormService);
|
|
11
|
-
showForm(templateRef: TemplateRef<any>): void;
|
|
12
|
-
/**
|
|
13
|
-
* Handle on product saved event.
|
|
14
|
-
*
|
|
15
|
-
* @param product
|
|
16
|
-
*/
|
|
17
|
-
onProductSaved(product: any): void;
|
|
3
|
+
product: import("@angular/core").InputSignal<any>;
|
|
4
|
+
constructor();
|
|
18
5
|
static ɵfac: i0.ɵɵFactoryDeclaration<ProductFormButtonComponent, never>;
|
|
19
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ProductFormButtonComponent, "app-product-form-button", never, { "product": { "alias": "product"; "required": false; }; }, {
|
|
6
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProductFormButtonComponent, "app-product-form-button", never, { "product": { "alias": "product"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>;
|
|
20
7
|
}
|
|
@@ -24,8 +24,10 @@ import * as i22 from "@angular/forms";
|
|
|
24
24
|
import * as i23 from "./product-location/product-location-list/product-location-list.component";
|
|
25
25
|
import * as i24 from "../stock-transfer/stock-transfer-list/stock-transfer-list.component";
|
|
26
26
|
import * as i25 from "../shared/export-to-excel-button/export-to-excel-button.component";
|
|
27
|
+
import * as i26 from "angularx-qrcode";
|
|
28
|
+
import * as i27 from "ngx-barcode6";
|
|
27
29
|
export declare class ProductModule {
|
|
28
30
|
static ɵfac: i0.ɵɵFactoryDeclaration<ProductModule, never>;
|
|
29
|
-
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.ProductBatchUpdateFormComponent], [typeof i12.CommonModule, typeof i13.ProductRoutingModule, typeof i14.SearchableSelectorModule, typeof i14.TimelineFilterModule, typeof i15.StockReceiptFormModule, typeof i16.StockIssueFormModule, typeof i14.ImportCsvModule, typeof i17.StockReceiptsModule, typeof i18.StockIssueListModule, typeof i14.MaterialModule, typeof i19.MatProgressBarModule, typeof i20.InfiniteScrollModule, typeof i21.FlexModule, typeof i22.ReactiveFormsModule, typeof i22.FormsModule, typeof i14.ColumnSelectorModule, typeof i23.ProductLocationListComponent, typeof i24.StockTransferListComponent, typeof i25.ExportToExcelButtonComponent, typeof i14.NoteModule, typeof i14.TechlifyIconModule], [typeof i2.ProductFormComponent, typeof i9.ProductBasicInfoComponent, typeof i7.ProductFormButtonComponent, typeof i11.ProductBatchUpdateFormComponent]>;
|
|
31
|
+
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.ProductBatchUpdateFormComponent], [typeof i12.CommonModule, typeof i13.ProductRoutingModule, typeof i14.SearchableSelectorModule, typeof i14.TimelineFilterModule, typeof i15.StockReceiptFormModule, typeof i16.StockIssueFormModule, typeof i14.ImportCsvModule, typeof i17.StockReceiptsModule, typeof i18.StockIssueListModule, typeof i14.MaterialModule, typeof i19.MatProgressBarModule, typeof i20.InfiniteScrollModule, typeof i21.FlexModule, typeof i22.ReactiveFormsModule, typeof i22.FormsModule, typeof i14.ColumnSelectorModule, typeof i23.ProductLocationListComponent, typeof i24.StockTransferListComponent, typeof i25.ExportToExcelButtonComponent, typeof i14.NoteModule, typeof i14.TechlifyIconModule, typeof i26.QRCodeComponent, typeof i27.NgxBarcode6, typeof i14.TechlifyDeleteButtonComponent], [typeof i2.ProductFormComponent, typeof i9.ProductBasicInfoComponent, typeof i7.ProductFormButtonComponent, typeof i11.ProductBatchUpdateFormComponent]>;
|
|
30
32
|
static ɵinj: i0.ɵɵInjectorDeclaration<ProductModule>;
|
|
31
33
|
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { OnInit } from "@angular/core";
|
|
2
|
+
import { FormArray, FormBuilder } from '@angular/forms';
|
|
3
|
+
import { FormValidatorService, TechlifyFormComponentInterface } from "ngx-techlify-core";
|
|
4
|
+
import { StockIssueService } from '../stock-issue.service';
|
|
5
|
+
import { Router } from '@angular/router';
|
|
6
|
+
import { LocationService } from '../../location/location.service';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class StockIssueBatchFormComponent extends TechlifyFormComponentInterface implements OnInit {
|
|
9
|
+
protected formValidatorService: FormValidatorService;
|
|
10
|
+
private fb;
|
|
11
|
+
private stockIssueService;
|
|
12
|
+
private router;
|
|
13
|
+
private locationService;
|
|
14
|
+
locationCount: import("@angular/core").WritableSignal<number>;
|
|
15
|
+
constructor(formValidatorService: FormValidatorService, fb: FormBuilder, stockIssueService: StockIssueService, router: Router, locationService: LocationService);
|
|
16
|
+
ngOnInit(): void;
|
|
17
|
+
get stockIssueProducts(): FormArray;
|
|
18
|
+
createStockIssueProduct(): import("@angular/forms").FormGroup<{
|
|
19
|
+
product_id: import("@angular/forms").FormControl<string | null>;
|
|
20
|
+
location_id: import("@angular/forms").FormControl<string | null>;
|
|
21
|
+
quantity: import("@angular/forms").FormControl<number | null>;
|
|
22
|
+
particulars: import("@angular/forms").FormControl<string | null>;
|
|
23
|
+
}>;
|
|
24
|
+
addStockIssueProduct(): void;
|
|
25
|
+
removeStockIssueProduct(index: number): void;
|
|
26
|
+
clearProducts(): void;
|
|
27
|
+
save(): void;
|
|
28
|
+
cancel(): void;
|
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StockIssueBatchFormComponent, never>;
|
|
30
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<StockIssueBatchFormComponent, "app-stock-issue-batch-form", never, {}, {}, never, never, true, never>;
|
|
31
|
+
}
|
|
@@ -7,6 +7,6 @@ import * as i5 from "../../material.module";
|
|
|
7
7
|
import * as i6 from "ngx-techlify-core";
|
|
8
8
|
export declare class StockIssueFormModule {
|
|
9
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<StockIssueFormModule, never>;
|
|
10
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<StockIssueFormModule, [typeof i1.StockIssueFormComponent, typeof i2.StockIssueFormButtonComponent], [typeof i3.CommonModule, typeof i4.ReactiveFormsModule, typeof i5.MaterialModule, typeof i6.SearchableSelectorModule, typeof i6.TechlifyFeatureModule], [typeof i2.StockIssueFormButtonComponent]>;
|
|
10
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<StockIssueFormModule, [typeof i1.StockIssueFormComponent, typeof i2.StockIssueFormButtonComponent], [typeof i3.CommonModule, typeof i4.ReactiveFormsModule, typeof i5.MaterialModule, typeof i6.SearchableSelectorModule, typeof i6.TechlifyFeatureModule, typeof i6.TechlifyIconModule], [typeof i2.StockIssueFormButtonComponent]>;
|
|
11
11
|
static ɵinj: i0.ɵɵInjectorDeclaration<StockIssueFormModule>;
|
|
12
12
|
}
|
package/lib/inventory-common/stock-issuances/stock-issue-list/stock-issue-list.component.d.ts
CHANGED
|
@@ -17,7 +17,6 @@ export declare class StockIssueListComponent extends TechlifyListingControllerIn
|
|
|
17
17
|
showActions: boolean;
|
|
18
18
|
showFilters: boolean;
|
|
19
19
|
listUpdated: EventEmitter<any>;
|
|
20
|
-
defaultSelectedColumns: string[];
|
|
21
20
|
columnConfig: ColumnConfig[];
|
|
22
21
|
selectedColumns: ColumnConfig[];
|
|
23
22
|
get displayedColumns(): string[];
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { OnInit } from "@angular/core";
|
|
2
|
+
import { FormArray, FormBuilder } from '@angular/forms';
|
|
3
|
+
import { FormValidatorService, TechlifyFormComponentInterface } from "ngx-techlify-core";
|
|
4
|
+
import { StockReceiptService } from '../stock-receipt.service';
|
|
5
|
+
import { Router } from '@angular/router';
|
|
6
|
+
import { LocationService } from '../../location/location.service';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class StockReceiptBatchFormComponent extends TechlifyFormComponentInterface implements OnInit {
|
|
9
|
+
protected formValidatorService: FormValidatorService;
|
|
10
|
+
private fb;
|
|
11
|
+
private stockReceiptService;
|
|
12
|
+
private router;
|
|
13
|
+
private locationService;
|
|
14
|
+
locationCount: import("@angular/core").WritableSignal<number>;
|
|
15
|
+
constructor(formValidatorService: FormValidatorService, fb: FormBuilder, stockReceiptService: StockReceiptService, router: Router, locationService: LocationService);
|
|
16
|
+
ngOnInit(): void;
|
|
17
|
+
get stockReceiptProducts(): FormArray;
|
|
18
|
+
createStockReceiptProduct(): import("@angular/forms").FormGroup<{
|
|
19
|
+
product_id: import("@angular/forms").FormControl<string | null>;
|
|
20
|
+
location_id: import("@angular/forms").FormControl<string | null>;
|
|
21
|
+
quantity: import("@angular/forms").FormControl<number | null>;
|
|
22
|
+
purchase_price: import("@angular/forms").FormControl<number | null>;
|
|
23
|
+
total_amount: import("@angular/forms").FormControl<number | null>;
|
|
24
|
+
particulars: import("@angular/forms").FormControl<string | null>;
|
|
25
|
+
}>;
|
|
26
|
+
addStockReceiptProduct(): void;
|
|
27
|
+
removeStockReceiptProduct(index: number): void;
|
|
28
|
+
clearProducts(): void;
|
|
29
|
+
getRowTotal(index: number): number;
|
|
30
|
+
updateRowTotal(index: number): void;
|
|
31
|
+
/**
|
|
32
|
+
* We're doing a little more than a normal submit so we won't use the
|
|
33
|
+
* techlify-form's submit method
|
|
34
|
+
*/
|
|
35
|
+
save(): void;
|
|
36
|
+
cancel(): void;
|
|
37
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StockReceiptBatchFormComponent, never>;
|
|
38
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<StockReceiptBatchFormComponent, "app-stock-receipt-batch-form", never, {}, {}, never, never, true, never>;
|
|
39
|
+
}
|
|
@@ -2,33 +2,27 @@ import { EventEmitter, OnInit } from "@angular/core";
|
|
|
2
2
|
import { ColumnConfig, TechlifyFeatureService, TechlifyListingControllerInterface } from 'ngx-techlify-core';
|
|
3
3
|
import { StockReceiptService } from "../stock-receipt.service";
|
|
4
4
|
import { FormBuilder } from "@angular/forms";
|
|
5
|
-
import {
|
|
6
|
-
import { ActivatedRoute, Router } from '@angular/router';
|
|
5
|
+
import { Router } from '@angular/router';
|
|
7
6
|
import * as i0 from "@angular/core";
|
|
8
7
|
export declare class StockReceiptsListPageComponent extends TechlifyListingControllerInterface implements OnInit {
|
|
9
|
-
|
|
8
|
+
protected service: StockReceiptService;
|
|
10
9
|
private formBuilder;
|
|
11
|
-
private activatedRoute;
|
|
12
10
|
private router;
|
|
13
11
|
private featureService;
|
|
14
12
|
product: any;
|
|
15
13
|
supplierId?: number;
|
|
16
14
|
listUpdated: EventEmitter<any>;
|
|
17
|
-
|
|
15
|
+
exportInProgress: import("@angular/core").WritableSignal<boolean>;
|
|
18
16
|
columnConfig: ColumnConfig[];
|
|
19
17
|
selectedColumns: ColumnConfig[];
|
|
20
18
|
get displayedColumns(): string[];
|
|
21
19
|
get totalPurchasePrice(): number;
|
|
22
20
|
get totalValue(): number;
|
|
23
21
|
get footerColumns(): string[];
|
|
24
|
-
constructor(
|
|
22
|
+
constructor(service: StockReceiptService, formBuilder: FormBuilder, router: Router, featureService: TechlifyFeatureService);
|
|
25
23
|
ngOnInit(): void;
|
|
26
|
-
loadData(): void;
|
|
27
|
-
onSortChange(sort: Sort): void;
|
|
28
|
-
private updateFormWithQueryParams;
|
|
29
|
-
private subscribeToFormChanges;
|
|
30
|
-
private subscribeToRouteChanges;
|
|
31
24
|
private loadFeatures;
|
|
25
|
+
handleExport(hideColumns: boolean): void;
|
|
32
26
|
redirectToView(model: any): void;
|
|
33
27
|
static ɵfac: i0.ɵɵFactoryDeclaration<StockReceiptsListPageComponent, never>;
|
|
34
28
|
static ɵcmp: i0.ɵɵComponentDeclaration<StockReceiptsListPageComponent, "app-stock-receipts-list-page", never, { "product": { "alias": "product"; "required": false; }; "supplierId": { "alias": "supplierId"; "required": false; }; }, { "listUpdated": "listUpdated"; }, never, never, false, never>;
|
|
@@ -3,20 +3,19 @@ import * as i1 from "./stock-receipts-list-page/stock-receipts-list-page.compone
|
|
|
3
3
|
import * as i2 from "./stock-receipt-delete-button/stock-receipt-delete-button.component";
|
|
4
4
|
import * as i3 from "./stock-receipt-view/stock-receipt-view.component";
|
|
5
5
|
import * as i4 from "@angular/common";
|
|
6
|
-
import * as i5 from "
|
|
7
|
-
import * as i6 from "
|
|
6
|
+
import * as i5 from "../material.module";
|
|
7
|
+
import * as i6 from "./stock-receipts-routing.module";
|
|
8
8
|
import * as i7 from "../techlify-filter/techlify-filter.module";
|
|
9
|
-
import * as i8 from "
|
|
10
|
-
import * as i9 from "@angular/
|
|
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 "
|
|
17
|
-
import * as i16 from "../product/widgets/product-category-badges/product-category-badges.component";
|
|
9
|
+
import * as i8 from "ngx-techlify-core";
|
|
10
|
+
import * as i9 from "@angular/forms";
|
|
11
|
+
import * as i10 from "../supplier/payee-selector/payee-selector.module";
|
|
12
|
+
import * as i11 from "ngx-infinite-scroll";
|
|
13
|
+
import * as i12 from "./stock-receipt-form/stock-receipt-form.module";
|
|
14
|
+
import * as i13 from "../product/widgets/product-category-badges/product-category-badges.component";
|
|
15
|
+
import * as i14 from "@angular/router";
|
|
16
|
+
import * as i15 from "../shared/export-to-excel-button/export-to-excel-button.component";
|
|
18
17
|
export declare class StockReceiptsModule {
|
|
19
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<StockReceiptsModule, never>;
|
|
20
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<StockReceiptsModule, [typeof i1.StockReceiptsListPageComponent, typeof i2.StockReceiptDeleteButtonComponent, typeof i3.StockReceiptViewComponent], [typeof i4.CommonModule, typeof i5.
|
|
19
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<StockReceiptsModule, [typeof i1.StockReceiptsListPageComponent, typeof i2.StockReceiptDeleteButtonComponent, typeof i3.StockReceiptViewComponent], [typeof i4.CommonModule, typeof i5.MaterialModule, typeof i6.StockReceiptsRoutingModule, typeof i7.TechlifyFilterModule, typeof i8.SearchableSelectorModule, typeof i8.TimelineFilterModule, typeof i9.ReactiveFormsModule, typeof i10.PayeeSelectorModule, typeof i11.InfiniteScrollDirective, typeof i12.StockReceiptFormModule, typeof i13.ProductCategoryBadgesComponent, typeof i8.ColumnSelectorModule, typeof i8.EntityFilesViewAllModule, typeof i8.TechlifyFeatureModule, typeof i8.NoteModule, typeof i8.TechlifyIconModule, typeof i14.RouterModule, typeof i15.ExportToExcelButtonComponent], [typeof i2.StockReceiptDeleteButtonComponent, typeof i1.StockReceiptsListPageComponent]>;
|
|
21
20
|
static ɵinj: i0.ɵɵInjectorDeclaration<StockReceiptsModule>;
|
|
22
21
|
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { OnInit } from "@angular/core";
|
|
2
|
+
import { FormArray, FormBuilder } from '@angular/forms';
|
|
3
|
+
import { FormValidatorService, TechlifyFormComponentInterface } from "ngx-techlify-core";
|
|
4
|
+
import { PurchaseOrderService } from '../purchase-order.service';
|
|
5
|
+
import { ActivatedRoute, Router } from '@angular/router';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class PurchaseOrderFormComponent extends TechlifyFormComponentInterface implements OnInit {
|
|
8
|
+
protected formValidatorService: FormValidatorService;
|
|
9
|
+
private fb;
|
|
10
|
+
private purchaseOrderService;
|
|
11
|
+
private router;
|
|
12
|
+
private route;
|
|
13
|
+
constructor(formValidatorService: FormValidatorService, fb: FormBuilder, purchaseOrderService: PurchaseOrderService, router: Router, route: ActivatedRoute);
|
|
14
|
+
ngOnInit(): void;
|
|
15
|
+
get purchaseOrderProducts(): FormArray;
|
|
16
|
+
createPurchaseOrderProduct(): import("@angular/forms").FormGroup<{
|
|
17
|
+
product_id: import("@angular/forms").FormControl<string | null>;
|
|
18
|
+
quantity: import("@angular/forms").FormControl<number | null>;
|
|
19
|
+
unit_id: import("@angular/forms").FormControl<string | null>;
|
|
20
|
+
details: import("@angular/forms").FormControl<string | null>;
|
|
21
|
+
}>;
|
|
22
|
+
addPurchaseOrderProduct(): void;
|
|
23
|
+
removePurchaseOrderProduct(index: number): void;
|
|
24
|
+
clearProducts(): void;
|
|
25
|
+
loadData(id: number): void;
|
|
26
|
+
save(): void;
|
|
27
|
+
cancel(): void;
|
|
28
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PurchaseOrderFormComponent, never>;
|
|
29
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PurchaseOrderFormComponent, "app-purchase-order-form", never, {}, {}, never, never, true, never>;
|
|
30
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class PurchaseOrderProductListComponent {
|
|
3
|
+
products: import("@angular/core").InputSignal<any>;
|
|
4
|
+
displayedColumns: string[];
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PurchaseOrderProductListComponent, never>;
|
|
6
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PurchaseOrderProductListComponent, "app-purchase-order-product-list", never, { "products": { "alias": "products"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { Location } from '@angular/common';
|
|
3
|
+
import { ActivatedRoute } from '@angular/router';
|
|
4
|
+
import { PurchaseOrderService } from '../purchase-order.service';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class PurchaseOrderViewComponent implements OnInit {
|
|
7
|
+
private activatedRoute;
|
|
8
|
+
private service;
|
|
9
|
+
private location;
|
|
10
|
+
id: number;
|
|
11
|
+
isLoading: boolean;
|
|
12
|
+
purchaseOrder: any;
|
|
13
|
+
constructor(activatedRoute: ActivatedRoute, service: PurchaseOrderService, location: Location);
|
|
14
|
+
ngOnInit(): void;
|
|
15
|
+
loadData(): void;
|
|
16
|
+
redirectBack(): void;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PurchaseOrderViewComponent, never>;
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PurchaseOrderViewComponent, "app-purchase-order-view", never, {}, {}, never, never, true, never>;
|
|
19
|
+
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -55,10 +55,8 @@ export * from './lib/inventory-common/location/location.service';
|
|
|
55
55
|
export * from './lib/inventory-common/location/location-list/location-list.component';
|
|
56
56
|
export * from './lib/inventory-common/location/location-form/location-form.component';
|
|
57
57
|
export * from './lib/inventory-common/location/location-form-button/location-form-button.component';
|
|
58
|
-
export * from './lib/inventory-common/location/location-delete-button/location-delete-button.component';
|
|
59
58
|
export * from './lib/inventory-common/location/shelf/shelf.module';
|
|
60
59
|
export * from './lib/inventory-common/location/shelf/shelf.service';
|
|
61
60
|
export * from './lib/inventory-common/location/shelf/shelf-list/shelf-list.component';
|
|
62
61
|
export * from './lib/inventory-common/location/shelf/shelf-form/shelf-form.component';
|
|
63
62
|
export * from './lib/inventory-common/location/shelf/shelf-form-button/shelf-form-button.component';
|
|
64
|
-
export * from './lib/inventory-common/location/shelf/shelf-delete-button/shelf-delete-button.component';
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
|
2
|
-
import { MatDialogActions, MatDialogClose, MatDialogContent, MatDialogTitle } from '@angular/material/dialog';
|
|
3
|
-
import { MatButton } from '@angular/material/button';
|
|
4
|
-
import { MatIcon } from '@angular/material/icon';
|
|
5
|
-
import { NgIf } from '@angular/common';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
import * as i1 from "@angular/material/dialog";
|
|
8
|
-
import * as i2 from "../location.service";
|
|
9
|
-
import * as i3 from "ngx-techlify-core";
|
|
10
|
-
export class LocationDeleteButtonComponent {
|
|
11
|
-
matDialog;
|
|
12
|
-
service;
|
|
13
|
-
alertService;
|
|
14
|
-
credentialsService;
|
|
15
|
-
model;
|
|
16
|
-
deleted = new EventEmitter();
|
|
17
|
-
isDeleting;
|
|
18
|
-
user;
|
|
19
|
-
constructor(matDialog, service, alertService, credentialsService) {
|
|
20
|
-
this.matDialog = matDialog;
|
|
21
|
-
this.service = service;
|
|
22
|
-
this.alertService = alertService;
|
|
23
|
-
this.credentialsService = credentialsService;
|
|
24
|
-
this.user = this.credentialsService.credentials?.user;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Delete the product.
|
|
28
|
-
*/
|
|
29
|
-
delete() {
|
|
30
|
-
this.isDeleting = true;
|
|
31
|
-
this.service.delete(this.model).subscribe({
|
|
32
|
-
next: () => {
|
|
33
|
-
this.deleted.emit();
|
|
34
|
-
this.isDeleting = false;
|
|
35
|
-
this.matDialog.closeAll();
|
|
36
|
-
this.alertService.addAlert('Location deleted successfully!', 'success');
|
|
37
|
-
},
|
|
38
|
-
error: () => (this.isDeleting = false)
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* Show delete product dialog.
|
|
43
|
-
*
|
|
44
|
-
* @param templateRef
|
|
45
|
-
*/
|
|
46
|
-
showDeleteDialog(templateRef) {
|
|
47
|
-
this.matDialog.open(templateRef, { width: '500px' });
|
|
48
|
-
}
|
|
49
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: LocationDeleteButtonComponent, deps: [{ token: i1.MatDialog }, { token: i2.LocationService }, { token: i3.AlertService }, { token: i3.CredentialsService }], target: i0.ɵɵFactoryTarget.Component });
|
|
50
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: LocationDeleteButtonComponent, isStandalone: true, selector: "app-location-delete-button", inputs: { model: "model" }, outputs: { deleted: "deleted" }, ngImport: i0, template: "<mat-icon\n *ngIf=\"model?.client_id === user?.client_id\"\n class=\"cursor-pointer text-dark\"\n (click)=\"showDeleteDialog(deleteConfirmDialog)\"\n>\n delete\n</mat-icon>\n\n<ng-template #deleteConfirmDialog>\n <h3 mat-dialog-title>Delete Location</h3>\n <div mat-dialog-content>\n Are you sure? You want to delete the location\n <strong>{{ model?.title }}</strong> ?\n </div>\n <div mat-dialog-actions class=\"d-flex justify-content-end gap-1 mb-2\">\n <button\n [disabled]=\"isDeleting\"\n type=\"button\"\n mat-raised-button\n color=\"warn\"\n (click)=\"delete()\"\n >\n Delete\n </button>\n <button\n [disabled]=\"isDeleting\"\n type=\"button\"\n mat-flat-button\n mat-dialog-close\n >\n Cancel\n </button>\n </div>\n</ng-template>\n", styles: [""], dependencies: [{ kind: "component", type: MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "directive", type: MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "directive", type: MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["aria-label", "type", "mat-dialog-close", "matDialogClose"], exportAs: ["matDialogClose"] }, { kind: "directive", type: MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "directive", type: MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "component", type: MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], preserveWhitespaces: true });
|
|
51
|
-
}
|
|
52
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: LocationDeleteButtonComponent, decorators: [{
|
|
53
|
-
type: Component,
|
|
54
|
-
args: [{ selector: 'app-location-delete-button', standalone: true, imports: [
|
|
55
|
-
MatButton,
|
|
56
|
-
MatDialogActions,
|
|
57
|
-
MatDialogClose,
|
|
58
|
-
MatDialogContent,
|
|
59
|
-
MatDialogTitle,
|
|
60
|
-
MatIcon,
|
|
61
|
-
NgIf
|
|
62
|
-
], template: "<mat-icon\n *ngIf=\"model?.client_id === user?.client_id\"\n class=\"cursor-pointer text-dark\"\n (click)=\"showDeleteDialog(deleteConfirmDialog)\"\n>\n delete\n</mat-icon>\n\n<ng-template #deleteConfirmDialog>\n <h3 mat-dialog-title>Delete Location</h3>\n <div mat-dialog-content>\n Are you sure? You want to delete the location\n <strong>{{ model?.title }}</strong> ?\n </div>\n <div mat-dialog-actions class=\"d-flex justify-content-end gap-1 mb-2\">\n <button\n [disabled]=\"isDeleting\"\n type=\"button\"\n mat-raised-button\n color=\"warn\"\n (click)=\"delete()\"\n >\n Delete\n </button>\n <button\n [disabled]=\"isDeleting\"\n type=\"button\"\n mat-flat-button\n mat-dialog-close\n >\n Cancel\n </button>\n </div>\n</ng-template>\n" }]
|
|
63
|
-
}], ctorParameters: () => [{ type: i1.MatDialog }, { type: i2.LocationService }, { type: i3.AlertService }, { type: i3.CredentialsService }], propDecorators: { model: [{
|
|
64
|
-
type: Input
|
|
65
|
-
}], deleted: [{
|
|
66
|
-
type: Output
|
|
67
|
-
}] } });
|
|
68
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibG9jYXRpb24tZGVsZXRlLWJ1dHRvbi5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9pbnZlbnRvcnktY29tbW9uL3NyYy9saWIvaW52ZW50b3J5LWNvbW1vbi9sb2NhdGlvbi9sb2NhdGlvbi1kZWxldGUtYnV0dG9uL2xvY2F0aW9uLWRlbGV0ZS1idXR0b24uY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvaW52ZW50b3J5LWNvbW1vbi9zcmMvbGliL2ludmVudG9yeS1jb21tb24vbG9jYXRpb24vbG9jYXRpb24tZGVsZXRlLWJ1dHRvbi9sb2NhdGlvbi1kZWxldGUtYnV0dG9uLmNvb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gICBjb2xvcj1cIndhcm5cIlxuICAgICAgKGNsaWNrKT1cImRlbGV0ZSgpXCJcbiAgICA+XG4gICAgICBEZWxldGVcbiAgICA8L2J1dHRvbj5cbiAgICA8YnV0dG9uXG4gICAgICBbZGlzYWJsZWRdPVwiaXNEZWxldGluZ1wiXG4gICAgICB0eXBlPVwiYnV0dG9uXCJcbiAgICAgIG1hdC1mbGF0LWJ1dHRvblxuICAgICAgbWF0LWRpYWxvZy1jbG9zZVxuICAgID5cbiAgICAgIENhbmNlbFxuICAgIDwvYnV0dG9uPlxuICA8L2Rpdj5cbjwvbmctdGVtcGxhdGU+XG4iXX0=
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
|
2
|
-
import { MatDialogActions, MatDialogClose, MatDialogContent, MatDialogTitle } from '@angular/material/dialog';
|
|
3
|
-
import { MatButton } from '@angular/material/button';
|
|
4
|
-
import { MatIcon } from '@angular/material/icon';
|
|
5
|
-
import { NgIf } from '@angular/common';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
import * as i1 from "@angular/material/dialog";
|
|
8
|
-
import * as i2 from "../shelf.service";
|
|
9
|
-
import * as i3 from "ngx-techlify-core";
|
|
10
|
-
export class ShelfDeleteButtonComponent {
|
|
11
|
-
matDialog;
|
|
12
|
-
service;
|
|
13
|
-
alertService;
|
|
14
|
-
credentialsService;
|
|
15
|
-
model;
|
|
16
|
-
deleted = new EventEmitter();
|
|
17
|
-
isDeleting;
|
|
18
|
-
user;
|
|
19
|
-
constructor(matDialog, service, alertService, credentialsService) {
|
|
20
|
-
this.matDialog = matDialog;
|
|
21
|
-
this.service = service;
|
|
22
|
-
this.alertService = alertService;
|
|
23
|
-
this.credentialsService = credentialsService;
|
|
24
|
-
this.user = this.credentialsService.credentials?.user;
|
|
25
|
-
}
|
|
26
|
-
delete() {
|
|
27
|
-
this.isDeleting = true;
|
|
28
|
-
this.service.delete(this.model).subscribe({
|
|
29
|
-
next: () => {
|
|
30
|
-
this.deleted.emit();
|
|
31
|
-
this.isDeleting = false;
|
|
32
|
-
this.matDialog.closeAll();
|
|
33
|
-
this.alertService.addAlert('Shelf deleted successfully!', 'success');
|
|
34
|
-
},
|
|
35
|
-
error: () => (this.isDeleting = false)
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
showDeleteDialog(templateRef) {
|
|
39
|
-
this.matDialog.open(templateRef, { width: '500px' });
|
|
40
|
-
}
|
|
41
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ShelfDeleteButtonComponent, deps: [{ token: i1.MatDialog }, { token: i2.ShelfService }, { token: i3.AlertService }, { token: i3.CredentialsService }], target: i0.ɵɵFactoryTarget.Component });
|
|
42
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: ShelfDeleteButtonComponent, isStandalone: true, selector: "app-shelf-delete-button", inputs: { model: "model" }, outputs: { deleted: "deleted" }, ngImport: i0, template: "<mat-icon\n *ngIf=\"model?.client_id === user?.client_id\"\n class=\"cursor-pointer\"\n (click)=\"showDeleteDialog(deleteConfirmDialog)\"\n>\n delete\n</mat-icon>\n\n<ng-template #deleteConfirmDialog>\n <h3 mat-dialog-title>Delete Shelf</h3>\n <div mat-dialog-content>\n Are you sure? You want to delete the shelf\n <strong>{{ model?.title }}</strong> ?\n </div>\n <div mat-dialog-actions class=\"d-flex justify-content-end gap-1 mb-2\">\n <button [disabled]=\"isDeleting\" type=\"button\" mat-raised-button color=\"warn\" (click)=\"delete()\">\n Delete\n </button>\n <button [disabled]=\"isDeleting\" type=\"button\" mat-flat-button mat-dialog-close>\n Cancel\n </button>\n </div>\n</ng-template>\n", styles: [""], dependencies: [{ kind: "component", type: MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "directive", type: MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "directive", type: MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["aria-label", "type", "mat-dialog-close", "matDialogClose"], exportAs: ["matDialogClose"] }, { kind: "directive", type: MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "directive", type: MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "component", type: MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], preserveWhitespaces: true });
|
|
43
|
-
}
|
|
44
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ShelfDeleteButtonComponent, decorators: [{
|
|
45
|
-
type: Component,
|
|
46
|
-
args: [{ selector: 'app-shelf-delete-button', standalone: true, imports: [
|
|
47
|
-
MatButton,
|
|
48
|
-
MatDialogActions,
|
|
49
|
-
MatDialogClose,
|
|
50
|
-
MatDialogContent,
|
|
51
|
-
MatDialogTitle,
|
|
52
|
-
MatIcon,
|
|
53
|
-
NgIf
|
|
54
|
-
], template: "<mat-icon\n *ngIf=\"model?.client_id === user?.client_id\"\n class=\"cursor-pointer\"\n (click)=\"showDeleteDialog(deleteConfirmDialog)\"\n>\n delete\n</mat-icon>\n\n<ng-template #deleteConfirmDialog>\n <h3 mat-dialog-title>Delete Shelf</h3>\n <div mat-dialog-content>\n Are you sure? You want to delete the shelf\n <strong>{{ model?.title }}</strong> ?\n </div>\n <div mat-dialog-actions class=\"d-flex justify-content-end gap-1 mb-2\">\n <button [disabled]=\"isDeleting\" type=\"button\" mat-raised-button color=\"warn\" (click)=\"delete()\">\n Delete\n </button>\n <button [disabled]=\"isDeleting\" type=\"button\" mat-flat-button mat-dialog-close>\n Cancel\n </button>\n </div>\n</ng-template>\n" }]
|
|
55
|
-
}], ctorParameters: () => [{ type: i1.MatDialog }, { type: i2.ShelfService }, { type: i3.AlertService }, { type: i3.CredentialsService }], propDecorators: { model: [{
|
|
56
|
-
type: Input
|
|
57
|
-
}], deleted: [{
|
|
58
|
-
type: Output
|
|
59
|
-
}] } });
|
|
60
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2hlbGYtZGVsZXRlLWJ1dHRvbi5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9pbnZlbnRvcnktY29tbW9uL3NyYy9saWIvaW52ZW50b3J5LWNvbW1vbi9sb2NhdGlvbi9zaGVsZi9zaGVsZi1kZWxldGUtYnV0dG9uL3NoZWxmLWRlbGV0ZS1idXR0b24uY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvaW52ZW50b3J5LWNvbW1vbi9zcmMvbGliL2ludmVudG9yeS1jb21tb24vbG9jYXRpb24vc2hlbGYvc2hlbGYtZGVsZXRlLWJ1dHRvbi9zaGVsZi1kZWxldGUtYnV0dG9uLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsWUFBWSxFQUFFLEtBQUssRUFBRSxNQUFNLEVBQWUsTUFBTSxlQUFlLENBQUM7QUFDcEYsT0FBTyxFQUFhLGdCQUFnQixFQUFFLGNBQWMsRUFBRSxnQkFBZ0IsRUFBRSxjQUFjLEVBQUUsTUFBTSwwQkFBMEIsQ0FBQztBQUV6SCxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sMEJBQTBCLENBQUM7QUFDckQsT0FBTyxFQUFFLE9BQU8sRUFBRSxNQUFNLHdCQUF3QixDQUFDO0FBQ2pELE9BQ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