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,302 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { Injectable, forwardRef, Input, Component, EventEmitter, Output, NgModule } from '@angular/core';
|
|
3
|
-
import * as i4 from '@angular/common';
|
|
4
|
-
import { CommonModule } from '@angular/common';
|
|
5
|
-
import * as i1 from 'ngx-techlify-core';
|
|
6
|
-
import { TechlifyServiceBaseClass, TechlifyFormComponentInterface, SearchableSelectorModule } from 'ngx-techlify-core';
|
|
7
|
-
import * as i2 from '@angular/forms';
|
|
8
|
-
import { NG_VALUE_ACCESSOR, Validators, ReactiveFormsModule, FormsModule } from '@angular/forms';
|
|
9
|
-
import { debounceTime } from 'rxjs';
|
|
10
|
-
import { S as SupplierFormComponent } from './techlify-inventory-common-supplier-form.component-CHmMG7O8.mjs';
|
|
11
|
-
import * as i6 from '@angular/material/form-field';
|
|
12
|
-
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
13
|
-
import * as i7 from '@angular/material/input';
|
|
14
|
-
import { MatInputModule } from '@angular/material/input';
|
|
15
|
-
import * as i9 from '@angular/material/datepicker';
|
|
16
|
-
import { MatDatepickerModule } from '@angular/material/datepicker';
|
|
17
|
-
import * as i7$1 from '@angular/material/button';
|
|
18
|
-
import { MatButtonModule } from '@angular/material/button';
|
|
19
|
-
import * as i1$1 from '@angular/material/dialog';
|
|
20
|
-
import { MatDialogModule } from '@angular/material/dialog';
|
|
21
|
-
import * as i2$1 from '@angular/material/tooltip';
|
|
22
|
-
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
23
|
-
|
|
24
|
-
class StockReceiptService extends TechlifyServiceBaseClass {
|
|
25
|
-
constructor(httpService) {
|
|
26
|
-
super(httpService, "stock-receipts");
|
|
27
|
-
}
|
|
28
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: StockReceiptService, deps: [{ token: i1.HttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
29
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: StockReceiptService, providedIn: "root" });
|
|
30
|
-
}
|
|
31
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: StockReceiptService, decorators: [{
|
|
32
|
-
type: Injectable,
|
|
33
|
-
args: [{
|
|
34
|
-
providedIn: "root",
|
|
35
|
-
}]
|
|
36
|
-
}], ctorParameters: () => [{ type: i1.HttpService }] });
|
|
37
|
-
|
|
38
|
-
class PayeeSelectorComponent {
|
|
39
|
-
label = "Payee";
|
|
40
|
-
appearance = "fill";
|
|
41
|
-
required = false;
|
|
42
|
-
showAddButton = false;
|
|
43
|
-
multiple = false;
|
|
44
|
-
value;
|
|
45
|
-
onChange = () => { };
|
|
46
|
-
onTouch = () => { };
|
|
47
|
-
writeValue(value) {
|
|
48
|
-
this.value = value;
|
|
49
|
-
this.onChange(value);
|
|
50
|
-
this.onTouch(value);
|
|
51
|
-
}
|
|
52
|
-
registerOnChange(fn) {
|
|
53
|
-
this.onChange = fn;
|
|
54
|
-
}
|
|
55
|
-
registerOnTouched(fn) {
|
|
56
|
-
this.onTouch = fn;
|
|
57
|
-
}
|
|
58
|
-
SupplierFormComponent = SupplierFormComponent;
|
|
59
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: PayeeSelectorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
60
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: PayeeSelectorComponent, selector: "app-payee-selector", inputs: { label: "label", appearance: "appearance", required: "required", showAddButton: "showAddButton", multiple: "multiple" }, providers: [
|
|
61
|
-
{
|
|
62
|
-
provide: NG_VALUE_ACCESSOR,
|
|
63
|
-
useExisting: forwardRef(() => PayeeSelectorComponent),
|
|
64
|
-
multi: true,
|
|
65
|
-
},
|
|
66
|
-
], ngImport: i0, template: "<mat-form-field [appearance]=\"appearance\" class=\"w-100\">\n <mat-label>{{ label }}</mat-label>\n <app-searchable-selector\n apiUrl=\"api/suppliers\"\n titleField=\"company_name\"\n sortBy=\"company_name|asc\"\n [required]=\"required\"\n [(ngModel)]=\"value\"\n #payeeSelector=\"ngModel\"\n name=\"payeeSelector\"\n [add]=\"showAddButton\"\n [itemComponent]=\"SupplierFormComponent\"\n (ngModelChange)=\"onChange($event)\"\n [addConfig]=\"{ width: '600px' }\"\n [ngModelOptions]=\"{ standalone: true }\"\n [multiple]=\"multiple\"\n >\n </app-searchable-selector>\n <mat-error *ngIf=\"payeeSelector.invalid && payeeSelector.touched\">\n The payee field is required.\n </mat-error>\n</mat-form-field>\n", styles: [""], dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i6.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i6.MatLabel, selector: "mat-label" }, { kind: "directive", type: i6.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "component", type: i1.SearchableSelectorComponent, selector: "app-searchable-selector", inputs: ["valueField", "titleField", "subtitleField", "apiUrl", "multiple", "selectedValue", "enableSearch", "add", "addConfig", "edit", "editConfig", "sort", "sortBy", "searchField", "itemComponent", "items", "apiDataProperty", "cache", "perPage", "inDataSearch", "panelWidth", "focusSearchOnOpen", "required", "disabled", "value"], outputs: ["selectedValueChange", "selectionChange", "itemsChange"] }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], preserveWhitespaces: true });
|
|
67
|
-
}
|
|
68
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: PayeeSelectorComponent, decorators: [{
|
|
69
|
-
type: Component,
|
|
70
|
-
args: [{ selector: "app-payee-selector", providers: [
|
|
71
|
-
{
|
|
72
|
-
provide: NG_VALUE_ACCESSOR,
|
|
73
|
-
useExisting: forwardRef(() => PayeeSelectorComponent),
|
|
74
|
-
multi: true,
|
|
75
|
-
},
|
|
76
|
-
], template: "<mat-form-field [appearance]=\"appearance\" class=\"w-100\">\n <mat-label>{{ label }}</mat-label>\n <app-searchable-selector\n apiUrl=\"api/suppliers\"\n titleField=\"company_name\"\n sortBy=\"company_name|asc\"\n [required]=\"required\"\n [(ngModel)]=\"value\"\n #payeeSelector=\"ngModel\"\n name=\"payeeSelector\"\n [add]=\"showAddButton\"\n [itemComponent]=\"SupplierFormComponent\"\n (ngModelChange)=\"onChange($event)\"\n [addConfig]=\"{ width: '600px' }\"\n [ngModelOptions]=\"{ standalone: true }\"\n [multiple]=\"multiple\"\n >\n </app-searchable-selector>\n <mat-error *ngIf=\"payeeSelector.invalid && payeeSelector.touched\">\n The payee field is required.\n </mat-error>\n</mat-form-field>\n" }]
|
|
77
|
-
}], propDecorators: { label: [{
|
|
78
|
-
type: Input
|
|
79
|
-
}], appearance: [{
|
|
80
|
-
type: Input
|
|
81
|
-
}], required: [{
|
|
82
|
-
type: Input
|
|
83
|
-
}], showAddButton: [{
|
|
84
|
-
type: Input
|
|
85
|
-
}], multiple: [{
|
|
86
|
-
type: Input
|
|
87
|
-
}] } });
|
|
88
|
-
|
|
89
|
-
class StockReceiptFormComponent extends TechlifyFormComponentInterface {
|
|
90
|
-
formBuilder;
|
|
91
|
-
stockReceiptService;
|
|
92
|
-
alertService;
|
|
93
|
-
dateUtils;
|
|
94
|
-
product;
|
|
95
|
-
stockReceipt;
|
|
96
|
-
saved = new EventEmitter();
|
|
97
|
-
cancelled = new EventEmitter();
|
|
98
|
-
isWorking;
|
|
99
|
-
constructor(formValidatorService, formBuilder, stockReceiptService, alertService, dateUtils) {
|
|
100
|
-
super(formValidatorService);
|
|
101
|
-
this.formBuilder = formBuilder;
|
|
102
|
-
this.stockReceiptService = stockReceiptService;
|
|
103
|
-
this.alertService = alertService;
|
|
104
|
-
this.dateUtils = dateUtils;
|
|
105
|
-
this.errorMessages = {
|
|
106
|
-
date: {
|
|
107
|
-
required: "The date field is required.",
|
|
108
|
-
},
|
|
109
|
-
quantity: {
|
|
110
|
-
required: "The quantity field is required.",
|
|
111
|
-
},
|
|
112
|
-
purchase_price: {
|
|
113
|
-
required: "The purchase price field is required.",
|
|
114
|
-
},
|
|
115
|
-
};
|
|
116
|
-
this.form = this.formBuilder.group({
|
|
117
|
-
id: [""],
|
|
118
|
-
supplier_id: [""],
|
|
119
|
-
date: [new Date(), Validators.required],
|
|
120
|
-
quantity: [1, Validators.required],
|
|
121
|
-
purchase_price: [0, Validators.required],
|
|
122
|
-
amount: [0],
|
|
123
|
-
particulars: [""],
|
|
124
|
-
});
|
|
125
|
-
}
|
|
126
|
-
ngOnInit() {
|
|
127
|
-
this.form
|
|
128
|
-
.get("quantity")
|
|
129
|
-
?.valueChanges.pipe(debounceTime(500))
|
|
130
|
-
.subscribe(() => this.updateTotalAmount());
|
|
131
|
-
this.form
|
|
132
|
-
.get("purchase_price")
|
|
133
|
-
?.valueChanges.pipe(debounceTime(500))
|
|
134
|
-
.subscribe(() => this.updateTotalAmount());
|
|
135
|
-
if (this.stockReceipt) {
|
|
136
|
-
let data = { ...this.stockReceipt };
|
|
137
|
-
if (data.date) {
|
|
138
|
-
data.date = new Date(data.date);
|
|
139
|
-
}
|
|
140
|
-
this.form.patchValue(data);
|
|
141
|
-
}
|
|
142
|
-
else {
|
|
143
|
-
// on create for set default quantity and purchase price from last record
|
|
144
|
-
if (this.product?.last_stock_receipt) {
|
|
145
|
-
const { quantity, purchase_price } = this.product.last_stock_receipt;
|
|
146
|
-
this.form.patchValue({
|
|
147
|
-
quantity,
|
|
148
|
-
purchase_price,
|
|
149
|
-
});
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
save() {
|
|
154
|
-
if (this.form.invalid) {
|
|
155
|
-
this.alertService.addAlert("Please check the form for errors", "error");
|
|
156
|
-
return;
|
|
157
|
-
}
|
|
158
|
-
const data = {
|
|
159
|
-
product_id: this.product?.id,
|
|
160
|
-
...this.form.value,
|
|
161
|
-
};
|
|
162
|
-
if (data.date) {
|
|
163
|
-
data.date = this.dateUtils.getYYYYMMDDString(data.date);
|
|
164
|
-
}
|
|
165
|
-
this.isWorking = true;
|
|
166
|
-
let request = this.stockReceiptService.store(data);
|
|
167
|
-
if (this.stockReceipt?.id) {
|
|
168
|
-
request = this.stockReceiptService.update(data);
|
|
169
|
-
}
|
|
170
|
-
request.subscribe({
|
|
171
|
-
next: (response) => {
|
|
172
|
-
this.isWorking = false;
|
|
173
|
-
this.saved.emit(response?.item);
|
|
174
|
-
this.alertService.addAlert("Stock Receipt Saved Successfully!", "success");
|
|
175
|
-
},
|
|
176
|
-
error: () => (this.isWorking = false),
|
|
177
|
-
});
|
|
178
|
-
}
|
|
179
|
-
updateTotalAmount() {
|
|
180
|
-
const { purchase_price, quantity } = this.form.value;
|
|
181
|
-
const amount = parseFloat(purchase_price) * parseFloat(quantity) || 0;
|
|
182
|
-
this.form.get("amount")?.setValue(amount);
|
|
183
|
-
}
|
|
184
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: StockReceiptFormComponent, deps: [{ token: i1.FormValidatorService }, { token: i2.FormBuilder }, { token: StockReceiptService }, { token: i1.AlertService }, { token: i1.DateUtils }], target: i0.ɵɵFactoryTarget.Component });
|
|
185
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: StockReceiptFormComponent, selector: "app-stock-receipt-form", inputs: { product: "product", stockReceipt: "stockReceipt" }, outputs: { saved: "saved", cancelled: "cancelled" }, usesInheritance: true, ngImport: i0, template: "<h3 class=\"text-center\">\n {{ stockReceipt?.id ? \"Edit\" : \"Receive\" }} Stock for {{ product?.name }}\n</h3>\n<form\n [formGroup]=\"form\"\n class=\"d-flex flex-column gap-1 justify-content-start\"\n (submit)=\"save()\"\n>\n <app-payee-selector\n label=\"Supplier\"\n formControlName=\"supplier_id\"\n appearance=\"fill\"\n [showAddButton]=\"true\"\n ></app-payee-selector>\n\n <mat-form-field>\n <mat-label>Date</mat-label>\n <input\n matInput\n [matDatepicker]=\"datePicker\"\n formControlName=\"date\"\n (focus)=\"datePicker.open()\"\n />\n <mat-datepicker #datePicker></mat-datepicker>\n <mat-error *ngIf=\"isFieldValid('date')\">\n {{ getErrorMessage(\"date\") }}\n </mat-error>\n </mat-form-field>\n\n <mat-form-field>\n <mat-label>Quantity</mat-label>\n <input matInput formControlName=\"quantity\" type=\"number\" min=\"0\" />\n <mat-error *ngIf=\"isFieldValid('quantity')\">\n {{ getErrorMessage(\"quantity\") }}\n </mat-error>\n </mat-form-field>\n\n <mat-form-field>\n <mat-label>Purchase Price</mat-label>\n <input matInput formControlName=\"purchase_price\" type=\"number\" min=\"0\" />\n <mat-error *ngIf=\"isFieldValid('purchase_price')\">\n {{ getErrorMessage(\"purchase_price\") }}\n </mat-error>\n </mat-form-field>\n\n <mat-form-field>\n <mat-label>Total Value</mat-label>\n <input matInput formControlName=\"amount\" readonly type=\"number\" min=\"0\" />\n </mat-form-field>\n\n <mat-form-field>\n <mat-label>Particulars</mat-label>\n <textarea matInput formControlName=\"particulars\" rows=\"3\"></textarea>\n </mat-form-field>\n\n <div class=\"d-flex justify-content-end align-items-center gap-2\">\n <button\n [disabled]=\"isWorking\"\n mat-raised-button\n color=\"primary\"\n type=\"submit\"\n >\n Save\n </button>\n <button\n [disabled]=\"isWorking\"\n (click)=\"cancelled.emit()\"\n mat-flat-button\n type=\"button\"\n >\n Cancel\n </button>\n </div>\n</form>\n", styles: [""], dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: PayeeSelectorComponent, selector: "app-payee-selector", inputs: ["label", "appearance", "required", "showAddButton", "multiple"] }, { kind: "directive", type: i2.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NumberValueAccessor, selector: "input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2.MinValidator, selector: "input[type=number][min][formControlName],input[type=number][min][formControl],input[type=number][min][ngModel]", inputs: ["min"] }, { kind: "directive", type: i2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i6.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i6.MatLabel, selector: "mat-label" }, { kind: "directive", type: i6.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i7.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "component", type: i9.MatDatepicker, selector: "mat-datepicker", exportAs: ["matDatepicker"] }, { kind: "directive", type: i9.MatDatepickerInput, selector: "input[matDatepicker]", inputs: ["matDatepicker", "min", "max", "matDatepickerFilter"], exportAs: ["matDatepickerInput"] }, { kind: "component", type: i7$1.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }], preserveWhitespaces: true });
|
|
186
|
-
}
|
|
187
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: StockReceiptFormComponent, decorators: [{
|
|
188
|
-
type: Component,
|
|
189
|
-
args: [{ selector: "app-stock-receipt-form", template: "<h3 class=\"text-center\">\n {{ stockReceipt?.id ? \"Edit\" : \"Receive\" }} Stock for {{ product?.name }}\n</h3>\n<form\n [formGroup]=\"form\"\n class=\"d-flex flex-column gap-1 justify-content-start\"\n (submit)=\"save()\"\n>\n <app-payee-selector\n label=\"Supplier\"\n formControlName=\"supplier_id\"\n appearance=\"fill\"\n [showAddButton]=\"true\"\n ></app-payee-selector>\n\n <mat-form-field>\n <mat-label>Date</mat-label>\n <input\n matInput\n [matDatepicker]=\"datePicker\"\n formControlName=\"date\"\n (focus)=\"datePicker.open()\"\n />\n <mat-datepicker #datePicker></mat-datepicker>\n <mat-error *ngIf=\"isFieldValid('date')\">\n {{ getErrorMessage(\"date\") }}\n </mat-error>\n </mat-form-field>\n\n <mat-form-field>\n <mat-label>Quantity</mat-label>\n <input matInput formControlName=\"quantity\" type=\"number\" min=\"0\" />\n <mat-error *ngIf=\"isFieldValid('quantity')\">\n {{ getErrorMessage(\"quantity\") }}\n </mat-error>\n </mat-form-field>\n\n <mat-form-field>\n <mat-label>Purchase Price</mat-label>\n <input matInput formControlName=\"purchase_price\" type=\"number\" min=\"0\" />\n <mat-error *ngIf=\"isFieldValid('purchase_price')\">\n {{ getErrorMessage(\"purchase_price\") }}\n </mat-error>\n </mat-form-field>\n\n <mat-form-field>\n <mat-label>Total Value</mat-label>\n <input matInput formControlName=\"amount\" readonly type=\"number\" min=\"0\" />\n </mat-form-field>\n\n <mat-form-field>\n <mat-label>Particulars</mat-label>\n <textarea matInput formControlName=\"particulars\" rows=\"3\"></textarea>\n </mat-form-field>\n\n <div class=\"d-flex justify-content-end align-items-center gap-2\">\n <button\n [disabled]=\"isWorking\"\n mat-raised-button\n color=\"primary\"\n type=\"submit\"\n >\n Save\n </button>\n <button\n [disabled]=\"isWorking\"\n (click)=\"cancelled.emit()\"\n mat-flat-button\n type=\"button\"\n >\n Cancel\n </button>\n </div>\n</form>\n" }]
|
|
190
|
-
}], ctorParameters: () => [{ type: i1.FormValidatorService }, { type: i2.FormBuilder }, { type: StockReceiptService }, { type: i1.AlertService }, { type: i1.DateUtils }], propDecorators: { product: [{
|
|
191
|
-
type: Input
|
|
192
|
-
}], stockReceipt: [{
|
|
193
|
-
type: Input
|
|
194
|
-
}], saved: [{
|
|
195
|
-
type: Output
|
|
196
|
-
}], cancelled: [{
|
|
197
|
-
type: Output
|
|
198
|
-
}] } });
|
|
199
|
-
|
|
200
|
-
class StockReceiptFormButtonComponent {
|
|
201
|
-
matDialog;
|
|
202
|
-
product;
|
|
203
|
-
stockReceipt;
|
|
204
|
-
icon;
|
|
205
|
-
saved = new EventEmitter();
|
|
206
|
-
matDialogRef;
|
|
207
|
-
constructor(matDialog) {
|
|
208
|
-
this.matDialog = matDialog;
|
|
209
|
-
}
|
|
210
|
-
showStockReceiptForm(templateRef) {
|
|
211
|
-
this.matDialogRef = this.matDialog.open(templateRef, { width: "500px" });
|
|
212
|
-
}
|
|
213
|
-
onStockReceiptSaved(item) {
|
|
214
|
-
this.matDialogRef.close();
|
|
215
|
-
this.saved.emit(item);
|
|
216
|
-
}
|
|
217
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: StockReceiptFormButtonComponent, deps: [{ token: i1$1.MatDialog }], target: i0.ɵɵFactoryTarget.Component });
|
|
218
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: StockReceiptFormButtonComponent, selector: "app-stock-receipt-form-button", inputs: { product: "product", stockReceipt: "stockReceipt", icon: "icon" }, outputs: { saved: "saved" }, ngImport: i0, template: "<span\n class=\"material-symbols-outlined cursor-pointer\"\n [class.text-primary]=\"icon\"\n matTooltip=\"Stock Receipt\"\n (click)=\"showStockReceiptForm(stockReceiptFormTemplate)\"\n>\n {{ stockReceipt ? \"edit\" : icon ?? \"download\" }}\n</span>\n\n<ng-template #stockReceiptFormTemplate>\n <app-stock-receipt-form\n mat-dialog-content\n [product]=\"product\"\n [stockReceipt]=\"stockReceipt\"\n (cancelled)=\"matDialogRef.close()\"\n (saved)=\"onStockReceiptSaved($event)\"\n ></app-stock-receipt-form>\n</ng-template>\n", styles: [""], dependencies: [{ kind: "directive", type: i2$1.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "directive", type: i1$1.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "component", type: StockReceiptFormComponent, selector: "app-stock-receipt-form", inputs: ["product", "stockReceipt"], outputs: ["saved", "cancelled"] }], preserveWhitespaces: true });
|
|
219
|
-
}
|
|
220
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: StockReceiptFormButtonComponent, decorators: [{
|
|
221
|
-
type: Component,
|
|
222
|
-
args: [{ selector: "app-stock-receipt-form-button", template: "<span\n class=\"material-symbols-outlined cursor-pointer\"\n [class.text-primary]=\"icon\"\n matTooltip=\"Stock Receipt\"\n (click)=\"showStockReceiptForm(stockReceiptFormTemplate)\"\n>\n {{ stockReceipt ? \"edit\" : icon ?? \"download\" }}\n</span>\n\n<ng-template #stockReceiptFormTemplate>\n <app-stock-receipt-form\n mat-dialog-content\n [product]=\"product\"\n [stockReceipt]=\"stockReceipt\"\n (cancelled)=\"matDialogRef.close()\"\n (saved)=\"onStockReceiptSaved($event)\"\n ></app-stock-receipt-form>\n</ng-template>\n" }]
|
|
223
|
-
}], ctorParameters: () => [{ type: i1$1.MatDialog }], propDecorators: { product: [{
|
|
224
|
-
type: Input
|
|
225
|
-
}], stockReceipt: [{
|
|
226
|
-
type: Input
|
|
227
|
-
}], icon: [{
|
|
228
|
-
type: Input
|
|
229
|
-
}], saved: [{
|
|
230
|
-
type: Output
|
|
231
|
-
}] } });
|
|
232
|
-
|
|
233
|
-
class PayeeSelectorModule {
|
|
234
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: PayeeSelectorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
235
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: PayeeSelectorModule, declarations: [PayeeSelectorComponent], imports: [CommonModule,
|
|
236
|
-
MatFormFieldModule,
|
|
237
|
-
ReactiveFormsModule,
|
|
238
|
-
SearchableSelectorModule,
|
|
239
|
-
FormsModule], exports: [PayeeSelectorComponent] });
|
|
240
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: PayeeSelectorModule, imports: [CommonModule,
|
|
241
|
-
MatFormFieldModule,
|
|
242
|
-
ReactiveFormsModule,
|
|
243
|
-
SearchableSelectorModule,
|
|
244
|
-
FormsModule] });
|
|
245
|
-
}
|
|
246
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: PayeeSelectorModule, decorators: [{
|
|
247
|
-
type: NgModule,
|
|
248
|
-
args: [{
|
|
249
|
-
declarations: [PayeeSelectorComponent],
|
|
250
|
-
exports: [PayeeSelectorComponent],
|
|
251
|
-
imports: [
|
|
252
|
-
CommonModule,
|
|
253
|
-
MatFormFieldModule,
|
|
254
|
-
ReactiveFormsModule,
|
|
255
|
-
SearchableSelectorModule,
|
|
256
|
-
FormsModule,
|
|
257
|
-
],
|
|
258
|
-
}]
|
|
259
|
-
}] });
|
|
260
|
-
|
|
261
|
-
class StockReceiptFormModule {
|
|
262
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: StockReceiptFormModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
263
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: StockReceiptFormModule, declarations: [StockReceiptFormComponent, StockReceiptFormButtonComponent], imports: [CommonModule,
|
|
264
|
-
MatTooltipModule,
|
|
265
|
-
MatDialogModule,
|
|
266
|
-
PayeeSelectorModule,
|
|
267
|
-
ReactiveFormsModule,
|
|
268
|
-
MatFormFieldModule,
|
|
269
|
-
MatInputModule,
|
|
270
|
-
MatDatepickerModule,
|
|
271
|
-
MatButtonModule], exports: [StockReceiptFormButtonComponent] });
|
|
272
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: StockReceiptFormModule, imports: [CommonModule,
|
|
273
|
-
MatTooltipModule,
|
|
274
|
-
MatDialogModule,
|
|
275
|
-
PayeeSelectorModule,
|
|
276
|
-
ReactiveFormsModule,
|
|
277
|
-
MatFormFieldModule,
|
|
278
|
-
MatInputModule,
|
|
279
|
-
MatDatepickerModule,
|
|
280
|
-
MatButtonModule] });
|
|
281
|
-
}
|
|
282
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: StockReceiptFormModule, decorators: [{
|
|
283
|
-
type: NgModule,
|
|
284
|
-
args: [{
|
|
285
|
-
declarations: [StockReceiptFormComponent, StockReceiptFormButtonComponent],
|
|
286
|
-
exports: [StockReceiptFormButtonComponent],
|
|
287
|
-
imports: [
|
|
288
|
-
CommonModule,
|
|
289
|
-
MatTooltipModule,
|
|
290
|
-
MatDialogModule,
|
|
291
|
-
PayeeSelectorModule,
|
|
292
|
-
ReactiveFormsModule,
|
|
293
|
-
MatFormFieldModule,
|
|
294
|
-
MatInputModule,
|
|
295
|
-
MatDatepickerModule,
|
|
296
|
-
MatButtonModule,
|
|
297
|
-
],
|
|
298
|
-
}]
|
|
299
|
-
}] });
|
|
300
|
-
|
|
301
|
-
export { PayeeSelectorModule as P, StockReceiptFormModule as S, StockReceiptFormButtonComponent as a, StockReceiptService as b };
|
|
302
|
-
//# sourceMappingURL=techlify-inventory-common-stock-receipt-form.module-BZDrN7la.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"techlify-inventory-common-stock-receipt-form.module-BZDrN7la.mjs","sources":["../../../projects/inventory-common/src/lib/inventory-common/stock-receipts/stock-receipt.service.ts","../../../projects/inventory-common/src/lib/inventory-common/supplier/payee-selector/payee-selector/payee-selector.component.ts","../../../projects/inventory-common/src/lib/inventory-common/supplier/payee-selector/payee-selector/payee-selector.component.html","../../../projects/inventory-common/src/lib/inventory-common/stock-receipts/stock-receipt-form/stock-receipt-form/stock-receipt-form.component.ts","../../../projects/inventory-common/src/lib/inventory-common/stock-receipts/stock-receipt-form/stock-receipt-form/stock-receipt-form.component.html","../../../projects/inventory-common/src/lib/inventory-common/stock-receipts/stock-receipt-form/stock-receipt-form-button/stock-receipt-form-button.component.ts","../../../projects/inventory-common/src/lib/inventory-common/stock-receipts/stock-receipt-form/stock-receipt-form-button/stock-receipt-form-button.component.html","../../../projects/inventory-common/src/lib/inventory-common/supplier/payee-selector/payee-selector.module.ts","../../../projects/inventory-common/src/lib/inventory-common/stock-receipts/stock-receipt-form/stock-receipt-form.module.ts"],"sourcesContent":["import { Injectable } from \"@angular/core\";\nimport { HttpService, TechlifyServiceBaseClass } from \"ngx-techlify-core\";\n\n@Injectable({\n providedIn: \"root\",\n})\nexport class StockReceiptService extends TechlifyServiceBaseClass {\n constructor(httpService: HttpService) {\n super(httpService, \"stock-receipts\");\n }\n}\n","import { Component, forwardRef, Input, OnInit } from \"@angular/core\";\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from \"@angular/forms\";\nimport { SupplierFormComponent } from \"../../supplier-form/supplier-form.component\";\nimport { MatFormFieldAppearance } from \"@angular/material/form-field\";\n\n@Component({\n selector: \"app-payee-selector\",\n templateUrl: \"./payee-selector.component.html\",\n styleUrls: [\"./payee-selector.component.scss\"],\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => PayeeSelectorComponent),\n multi: true,\n },\n ],\n})\nexport class PayeeSelectorComponent implements ControlValueAccessor {\n @Input() label = \"Payee\";\n @Input() appearance: MatFormFieldAppearance = \"fill\";\n @Input() required: boolean = false;\n @Input() showAddButton: boolean = false;\n @Input() multiple: boolean = false;\n\n value: any;\n onChange: any = () => {};\n onTouch: any = () => {};\n\n writeValue(value: any): void {\n this.value = value;\n this.onChange(value);\n this.onTouch(value);\n }\n\n registerOnChange(fn: any): void {\n this.onChange = fn;\n }\n\n registerOnTouched(fn: any): void {\n this.onTouch = fn;\n }\n\n protected readonly SupplierFormComponent = SupplierFormComponent;\n}\n","<mat-form-field [appearance]=\"appearance\" class=\"w-100\">\n <mat-label>{{ label }}</mat-label>\n <app-searchable-selector\n apiUrl=\"api/suppliers\"\n titleField=\"company_name\"\n sortBy=\"company_name|asc\"\n [required]=\"required\"\n [(ngModel)]=\"value\"\n #payeeSelector=\"ngModel\"\n name=\"payeeSelector\"\n [add]=\"showAddButton\"\n [itemComponent]=\"SupplierFormComponent\"\n (ngModelChange)=\"onChange($event)\"\n [addConfig]=\"{ width: '600px' }\"\n [ngModelOptions]=\"{ standalone: true }\"\n [multiple]=\"multiple\"\n >\n </app-searchable-selector>\n <mat-error *ngIf=\"payeeSelector.invalid && payeeSelector.touched\">\n The payee field is required.\n </mat-error>\n</mat-form-field>\n","import { Component, EventEmitter, Input, OnInit, Output } from \"@angular/core\";\nimport {\n AlertService,\n DateUtils,\n FormValidatorService,\n TechlifyFormComponentInterface,\n} from \"ngx-techlify-core\";\nimport { FormBuilder, Validators } from \"@angular/forms\";\nimport { StockReceiptService } from \"../../stock-receipt.service\";\nimport { debounceTime, Observable } from \"rxjs\";\n\n@Component({\n selector: \"app-stock-receipt-form\",\n templateUrl: \"./stock-receipt-form.component.html\",\n styleUrls: [\"./stock-receipt-form.component.scss\"],\n})\nexport class StockReceiptFormComponent\n extends TechlifyFormComponentInterface\n implements OnInit\n{\n @Input() product: any;\n @Input() stockReceipt: any;\n @Output() saved: EventEmitter<any> = new EventEmitter<any>();\n @Output() cancelled: EventEmitter<any> = new EventEmitter<any>();\n\n isWorking!: boolean;\n\n constructor(\n formValidatorService: FormValidatorService,\n private formBuilder: FormBuilder,\n private stockReceiptService: StockReceiptService,\n private alertService: AlertService,\n private dateUtils: DateUtils\n ) {\n super(formValidatorService);\n this.errorMessages = {\n date: {\n required: \"The date field is required.\",\n },\n quantity: {\n required: \"The quantity field is required.\",\n },\n purchase_price: {\n required: \"The purchase price field is required.\",\n },\n };\n\n this.form = this.formBuilder.group({\n id: [\"\"],\n supplier_id: [\"\"],\n date: [new Date(), Validators.required],\n quantity: [1, Validators.required],\n purchase_price: [0, Validators.required],\n amount: [0],\n particulars: [\"\"],\n });\n }\n\n ngOnInit() {\n this.form\n .get(\"quantity\")\n ?.valueChanges.pipe(debounceTime(500))\n .subscribe(() => this.updateTotalAmount());\n this.form\n .get(\"purchase_price\")\n ?.valueChanges.pipe(debounceTime(500))\n .subscribe(() => this.updateTotalAmount());\n\n if (this.stockReceipt) {\n let data: any = { ...this.stockReceipt };\n if (data.date) {\n data.date = new Date(data.date);\n }\n this.form.patchValue(data);\n } else {\n // on create for set default quantity and purchase price from last record\n if (this.product?.last_stock_receipt) {\n const { quantity, purchase_price } = this.product.last_stock_receipt;\n this.form.patchValue({\n quantity,\n purchase_price,\n });\n }\n }\n }\n\n save() {\n if (this.form.invalid) {\n this.alertService.addAlert(\"Please check the form for errors\", \"error\");\n return;\n }\n const data: any = {\n product_id: this.product?.id,\n ...this.form.value,\n };\n if (data.date) {\n data.date = this.dateUtils.getYYYYMMDDString(data.date);\n }\n this.isWorking = true;\n let request: Observable<any> = this.stockReceiptService.store(data);\n if (this.stockReceipt?.id) {\n request = this.stockReceiptService.update(data);\n }\n request.subscribe({\n next: (response: any) => {\n this.isWorking = false;\n this.saved.emit(response?.item);\n this.alertService.addAlert(\n \"Stock Receipt Saved Successfully!\",\n \"success\"\n );\n },\n error: () => (this.isWorking = false),\n });\n }\n\n private updateTotalAmount() {\n const { purchase_price, quantity } = this.form.value;\n const amount: any = parseFloat(purchase_price) * parseFloat(quantity) || 0;\n this.form.get(\"amount\")?.setValue(amount);\n }\n}\n","<h3 class=\"text-center\">\n {{ stockReceipt?.id ? \"Edit\" : \"Receive\" }} Stock for {{ product?.name }}\n</h3>\n<form\n [formGroup]=\"form\"\n class=\"d-flex flex-column gap-1 justify-content-start\"\n (submit)=\"save()\"\n>\n <app-payee-selector\n label=\"Supplier\"\n formControlName=\"supplier_id\"\n appearance=\"fill\"\n [showAddButton]=\"true\"\n ></app-payee-selector>\n\n <mat-form-field>\n <mat-label>Date</mat-label>\n <input\n matInput\n [matDatepicker]=\"datePicker\"\n formControlName=\"date\"\n (focus)=\"datePicker.open()\"\n />\n <mat-datepicker #datePicker></mat-datepicker>\n <mat-error *ngIf=\"isFieldValid('date')\">\n {{ getErrorMessage(\"date\") }}\n </mat-error>\n </mat-form-field>\n\n <mat-form-field>\n <mat-label>Quantity</mat-label>\n <input matInput formControlName=\"quantity\" type=\"number\" min=\"0\" />\n <mat-error *ngIf=\"isFieldValid('quantity')\">\n {{ getErrorMessage(\"quantity\") }}\n </mat-error>\n </mat-form-field>\n\n <mat-form-field>\n <mat-label>Purchase Price</mat-label>\n <input matInput formControlName=\"purchase_price\" type=\"number\" min=\"0\" />\n <mat-error *ngIf=\"isFieldValid('purchase_price')\">\n {{ getErrorMessage(\"purchase_price\") }}\n </mat-error>\n </mat-form-field>\n\n <mat-form-field>\n <mat-label>Total Value</mat-label>\n <input matInput formControlName=\"amount\" readonly type=\"number\" min=\"0\" />\n </mat-form-field>\n\n <mat-form-field>\n <mat-label>Particulars</mat-label>\n <textarea matInput formControlName=\"particulars\" rows=\"3\"></textarea>\n </mat-form-field>\n\n <div class=\"d-flex justify-content-end align-items-center gap-2\">\n <button\n [disabled]=\"isWorking\"\n mat-raised-button\n color=\"primary\"\n type=\"submit\"\n >\n Save\n </button>\n <button\n [disabled]=\"isWorking\"\n (click)=\"cancelled.emit()\"\n mat-flat-button\n type=\"button\"\n >\n Cancel\n </button>\n </div>\n</form>\n","import {\n Component,\n EventEmitter,\n Input,\n Output,\n TemplateRef,\n} from \"@angular/core\";\nimport { MatDialog, MatDialogRef } from \"@angular/material/dialog\";\n\n@Component({\n selector: \"app-stock-receipt-form-button\",\n templateUrl: \"./stock-receipt-form-button.component.html\",\n styleUrls: [\"./stock-receipt-form-button.component.scss\"],\n})\nexport class StockReceiptFormButtonComponent {\n @Input() product: any;\n @Input() stockReceipt: any;\n @Input() icon!: string | null;\n @Output() saved: EventEmitter<any> = new EventEmitter<any>();\n\n matDialogRef!: MatDialogRef<any>;\n\n constructor(private matDialog: MatDialog) {}\n\n showStockReceiptForm(templateRef: TemplateRef<any>) {\n this.matDialogRef = this.matDialog.open(templateRef, { width: \"500px\" });\n }\n\n onStockReceiptSaved(item: any) {\n this.matDialogRef.close();\n this.saved.emit(item);\n }\n}\n","<span\n class=\"material-symbols-outlined cursor-pointer\"\n [class.text-primary]=\"icon\"\n matTooltip=\"Stock Receipt\"\n (click)=\"showStockReceiptForm(stockReceiptFormTemplate)\"\n>\n {{ stockReceipt ? \"edit\" : icon ?? \"download\" }}\n</span>\n\n<ng-template #stockReceiptFormTemplate>\n <app-stock-receipt-form\n mat-dialog-content\n [product]=\"product\"\n [stockReceipt]=\"stockReceipt\"\n (cancelled)=\"matDialogRef.close()\"\n (saved)=\"onStockReceiptSaved($event)\"\n ></app-stock-receipt-form>\n</ng-template>\n","import { NgModule } from \"@angular/core\";\nimport { CommonModule } from \"@angular/common\";\nimport { PayeeSelectorComponent } from \"./payee-selector/payee-selector.component\";\nimport { MatFormFieldModule } from \"@angular/material/form-field\";\nimport { FormsModule, ReactiveFormsModule } from \"@angular/forms\";\nimport { SearchableSelectorModule } from \"ngx-techlify-core\";\n\n@NgModule({\n declarations: [PayeeSelectorComponent],\n exports: [PayeeSelectorComponent],\n imports: [\n CommonModule,\n MatFormFieldModule,\n ReactiveFormsModule,\n SearchableSelectorModule,\n FormsModule,\n ],\n})\nexport class PayeeSelectorModule {}\n","import { NgModule } from \"@angular/core\";\nimport { CommonModule } from \"@angular/common\";\nimport { StockReceiptFormComponent } from \"./stock-receipt-form/stock-receipt-form.component\";\nimport { StockReceiptFormButtonComponent } from \"./stock-receipt-form-button/stock-receipt-form-button.component\";\nimport { MatTooltipModule } from \"@angular/material/tooltip\";\nimport { MatDialogModule } from \"@angular/material/dialog\";\nimport { ReactiveFormsModule } from \"@angular/forms\";\nimport { MatFormFieldModule } from \"@angular/material/form-field\";\nimport { MatInputModule } from \"@angular/material/input\";\nimport { MatDatepickerModule } from \"@angular/material/datepicker\";\nimport { MatButtonModule } from \"@angular/material/button\";\nimport { PayeeSelectorModule } from '../../supplier/payee-selector/payee-selector.module';\n\n@NgModule({\n declarations: [StockReceiptFormComponent, StockReceiptFormButtonComponent],\n exports: [StockReceiptFormButtonComponent],\n imports: [\n CommonModule,\n MatTooltipModule,\n MatDialogModule,\n PayeeSelectorModule,\n ReactiveFormsModule,\n MatFormFieldModule,\n MatInputModule,\n MatDatepickerModule,\n MatButtonModule,\n ],\n})\nexport class StockReceiptFormModule {}\n"],"names":["i1","i2","i3","i4","i3.StockReceiptService","i5.PayeeSelectorComponent","i8","i9","i3.StockReceiptFormComponent"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAMM,MAAO,mBAAoB,SAAQ,wBAAwB,CAAA;AAC/D,IAAA,WAAA,CAAY,WAAwB,EAAA;AAClC,QAAA,KAAK,CAAC,WAAW,EAAE,gBAAgB,CAAC;;wGAF3B,mBAAmB,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,WAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UA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