techlify-inventory-common 18.43.0 → 18.45.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/esm2022/lib/inventory-common/inventory-dashboard-page/inventory-dashboard-page.component.mjs +6 -6
  2. package/esm2022/lib/inventory-common/measure/measure-form/measure-form.component.mjs +63 -0
  3. package/esm2022/lib/inventory-common/measure/measure.module.mjs +5 -9
  4. package/esm2022/lib/inventory-common/measure/measures-list/measures-list.component.mjs +13 -12
  5. package/esm2022/lib/inventory-common/product/product-basic-info/product-basic-info.component.mjs +4 -4
  6. package/esm2022/lib/inventory-common/product/product-view-page/product-view-page.component.mjs +7 -7
  7. package/esm2022/lib/inventory-common/shared.module.mjs +9 -4
  8. package/esm2022/lib/inventory-common/stock-issue/stock-issue-products-list/stock-issue-products-list.component.mjs +4 -4
  9. package/esm2022/lib/inventory-common/stock-issue/stock-issue-single-product-form/stock-issue-single-product-form.component.mjs +180 -0
  10. package/esm2022/lib/inventory-common/stock-receipts/stock-receipt-product-list/stock-receipt-product-list.component.mjs +3 -3
  11. package/esm2022/public-api.mjs +3 -2
  12. package/fesm2022/{techlify-inventory-common-category.module-BAv_zX8Q.mjs → techlify-inventory-common-category.module-D1l7dua9.mjs} +2 -2
  13. package/fesm2022/{techlify-inventory-common-category.module-BAv_zX8Q.mjs.map → techlify-inventory-common-category.module-D1l7dua9.mjs.map} +1 -1
  14. package/fesm2022/{techlify-inventory-common-purchase-order-view.component-BSrVKxdr.mjs → techlify-inventory-common-purchase-order-view.component-Bumakb5M.mjs} +2 -2
  15. package/fesm2022/{techlify-inventory-common-purchase-order-view.component-BSrVKxdr.mjs.map → techlify-inventory-common-purchase-order-view.component-Bumakb5M.mjs.map} +1 -1
  16. package/fesm2022/{techlify-inventory-common-stock-issue-form.component-qViURcnj.mjs → techlify-inventory-common-stock-issue-form.component-BeTQ9t-g.mjs} +2 -2
  17. package/fesm2022/{techlify-inventory-common-stock-issue-form.component-qViURcnj.mjs.map → techlify-inventory-common-stock-issue-form.component-BeTQ9t-g.mjs.map} +1 -1
  18. package/fesm2022/{techlify-inventory-common-stock-issue-view.component-BlmkYmV0.mjs → techlify-inventory-common-stock-issue-view.component--rs8hgm5.mjs} +2 -2
  19. package/fesm2022/{techlify-inventory-common-stock-issue-view.component-BlmkYmV0.mjs.map → techlify-inventory-common-stock-issue-view.component--rs8hgm5.mjs.map} +1 -1
  20. package/fesm2022/{techlify-inventory-common-techlify-inventory-common-EM-86Ss5.mjs → techlify-inventory-common-techlify-inventory-common-dhFANY2r.mjs} +217 -47
  21. package/fesm2022/techlify-inventory-common-techlify-inventory-common-dhFANY2r.mjs.map +1 -0
  22. package/fesm2022/techlify-inventory-common.mjs +1 -1
  23. package/lib/inventory-common/inventory-dashboard-page/inventory-dashboard-page.component.d.ts +1 -1
  24. package/lib/inventory-common/measure/measure-form/measure-form.component.d.ts +21 -0
  25. package/lib/inventory-common/measure/measure.module.d.ts +3 -4
  26. package/lib/inventory-common/measure/measures-list/measures-list.component.d.ts +4 -2
  27. package/lib/inventory-common/product/product-view-page/product-view-page.component.d.ts +1 -1
  28. package/lib/inventory-common/shared.module.d.ts +1 -1
  29. package/lib/inventory-common/stock-issue/stock-issue-products-list/stock-issue-products-list.component.d.ts +1 -1
  30. package/lib/inventory-common/stock-issue/stock-issue-single-product-form/{stock-issue-simple-form/stock-issue-single-product-form.component.d.ts → stock-issue-single-product-form.component.d.ts} +3 -3
  31. package/package.json +1 -1
  32. package/public-api.d.ts +2 -1
  33. package/esm2022/lib/inventory-common/measure/measure-delete/measure-delete-button/measure-delete-button.component.mjs +0 -44
  34. package/esm2022/lib/inventory-common/measure/measure-delete/measure-delete.module.mjs +0 -19
  35. package/esm2022/lib/inventory-common/measure/measure-form/measure-form/measure-form.component.mjs +0 -77
  36. package/esm2022/lib/inventory-common/measure/measure-form/measure-form-button/measure-form-button.component.mjs +0 -30
  37. package/esm2022/lib/inventory-common/measure/measure-form/measure-form.module.mjs +0 -21
  38. package/esm2022/lib/inventory-common/stock-issue/stock-issue-single-product-form/stock-issue-simple-form/stock-issue-single-product-form.component.mjs +0 -180
  39. package/fesm2022/techlify-inventory-common-measure.module-BvCXv-OU.mjs +0 -298
  40. package/fesm2022/techlify-inventory-common-measure.module-BvCXv-OU.mjs.map +0 -1
  41. package/fesm2022/techlify-inventory-common-techlify-inventory-common-EM-86Ss5.mjs.map +0 -1
  42. package/lib/inventory-common/measure/measure-delete/measure-delete-button/measure-delete-button.component.d.ts +0 -19
  43. package/lib/inventory-common/measure/measure-delete/measure-delete.module.d.ts +0 -9
  44. package/lib/inventory-common/measure/measure-form/measure-form/measure-form.component.d.ts +0 -17
  45. package/lib/inventory-common/measure/measure-form/measure-form-button/measure-form-button.component.d.ts +0 -13
  46. package/lib/inventory-common/measure/measure-form/measure-form.module.d.ts +0 -11
@@ -1,180 +0,0 @@
1
- import { Component, Inject, Optional, ViewChild } from '@angular/core';
2
- import { SearchableSelectorModule, TechlifyFeatureModule, TechlifyFormComponent, } from 'ngx-techlify-core';
3
- import { CommonModule } from '@angular/common';
4
- import { ReactiveFormsModule, Validators } from '@angular/forms';
5
- import { MAT_DIALOG_DATA, MatDialogModule } from '@angular/material/dialog';
6
- import { MaterialModule } from '../../../material.module';
7
- import { debounceTime, distinctUntilChanged } from 'rxjs';
8
- import * as i0 from "@angular/core";
9
- import * as i1 from "ngx-techlify-core";
10
- import * as i2 from "../../stock-issue.service";
11
- import * as i3 from "@angular/forms";
12
- import * as i4 from "../../../location/location.service";
13
- import * as i5 from "@angular/material/dialog";
14
- import * as i6 from "@angular/common";
15
- import * as i7 from "@angular/material/button";
16
- import * as i8 from "@angular/material/card";
17
- import * as i9 from "@angular/material/datepicker";
18
- import * as i10 from "@angular/material/form-field";
19
- import * as i11 from "@angular/material/input";
20
- export class StockIssueSingleProductFormComponent extends TechlifyFormComponent {
21
- formValidatorService;
22
- service;
23
- formBuilder;
24
- dateUtils;
25
- locationService;
26
- dialogRef;
27
- data;
28
- batchSearchableSelector;
29
- product;
30
- stockIssue;
31
- locationsCountValue = 0;
32
- batchesApiUrl = '';
33
- isBatchPatched = false;
34
- constructor(formValidatorService, service, formBuilder, dateUtils, locationService, dialogRef, data) {
35
- super(formValidatorService);
36
- this.formValidatorService = formValidatorService;
37
- this.service = service;
38
- this.formBuilder = formBuilder;
39
- this.dateUtils = dateUtils;
40
- this.locationService = locationService;
41
- this.dialogRef = dialogRef;
42
- this.data = data;
43
- this.errorMessages = {
44
- date: { required: 'The date field is required.' },
45
- quantity: { required: 'The quantity field is required.' },
46
- };
47
- this.form = this.formBuilder.group({
48
- id: [''],
49
- product_id: [''],
50
- location_id: [''],
51
- batch_id: [''],
52
- date: [new Date(), Validators.required],
53
- quantity: [0, Validators.required],
54
- particulars: [''],
55
- });
56
- }
57
- ngOnInit() {
58
- this.product = this.data?.product;
59
- this.stockIssue = this.data?.model;
60
- this.form.get('location_id')?.valueChanges?.pipe(debounceTime(50), distinctUntilChanged()).subscribe((val) => {
61
- this.resetBatchSelector(val);
62
- });
63
- this.locationService.count().subscribe((count) => {
64
- this.locationsCountValue = count;
65
- });
66
- if (this.product) {
67
- this.form.patchValue({ product_id: this.product.id });
68
- }
69
- this.patchFormData();
70
- }
71
- patchFormData() {
72
- if (this.stockIssue) {
73
- const data = { ...this.stockIssue };
74
- if (data.date) {
75
- data.date = new Date(data.date);
76
- }
77
- this.isUpdate = true;
78
- this.form.patchValue(data, { emitEvent: false });
79
- this.resetBatchSelector(data.location_id, false);
80
- this.patchFormProducts(this.stockIssue);
81
- }
82
- else {
83
- if (this.product?.last_stock_issuance) {
84
- const { quantity, location_id } = this.product.last_stock_issuance;
85
- this.form.patchValue({ quantity, location_id });
86
- }
87
- }
88
- }
89
- patchFormProducts(stockIssuance) {
90
- if (stockIssuance.stock_issue_products?.length > 0) {
91
- this.updateFormWithProductArray(stockIssuance.stock_issue_products[0]);
92
- this.product = stockIssuance.stock_issue_products[0].product;
93
- }
94
- }
95
- updateFormWithProductArray(stockIssueProduct) {
96
- this.form.patchValue({
97
- product_id: stockIssueProduct.product_id,
98
- quantity: stockIssueProduct.quantity,
99
- location_id: stockIssueProduct.location_id,
100
- batch_id: stockIssueProduct.batch_id,
101
- particulars: stockIssueProduct.particulars,
102
- });
103
- }
104
- get locationsCount() {
105
- return this.locationsCountValue;
106
- }
107
- save() {
108
- if (this.form.invalid) {
109
- this.form.markAllAsTouched();
110
- this.alertService.addAlert('Please check the form for errors', 'error');
111
- return;
112
- }
113
- const data = {
114
- ...this.form.value,
115
- products: [{ ...this.form.value, id: this.form.value.product_id }],
116
- };
117
- if (data.date) {
118
- data.date = this.dateUtils.getYYYYMMDDString(data.date);
119
- }
120
- this.isWorking = true;
121
- const request = this.isUpdate ? this.service.update(data) : this.service.store(data);
122
- request.subscribe({
123
- next: (response) => {
124
- this.isWorking = false;
125
- this.dialogRef.close(response?.item.stock_issue_products);
126
- this.alertService.addAlert('Stock Issuance Saved Successfully!', 'success');
127
- },
128
- error: () => (this.isWorking = false),
129
- });
130
- }
131
- onProductChange(product) {
132
- this.product = product;
133
- }
134
- onBatchItemsChange() {
135
- if (this.stockIssue && !this.isBatchPatched) {
136
- this.form.get('batch_id')?.setValue(this.stockIssue?.stock_issue_products[0]?.batch_id);
137
- this.batchSearchableSelector.selectedValue = this.stockIssue?.stock_issue_products[0]?.batch;
138
- this.isBatchPatched = true;
139
- }
140
- }
141
- resetBatchSelector(val, reset = true) {
142
- if (reset) {
143
- this.form.get('batch_id')?.setValue(null, { emitEvent: false });
144
- }
145
- this.batchesApiUrl = val ? `api/stock-receipt-batches?location_ids=${val}` : '';
146
- Promise.resolve().then(() => {
147
- if (this.batchSearchableSelector) {
148
- if (reset) {
149
- this.batchSearchableSelector.selectedValue = null;
150
- }
151
- this.batchSearchableSelector.apiUrl = this.batchesApiUrl;
152
- this.batchSearchableSelector?.reloadData();
153
- }
154
- });
155
- }
156
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: StockIssueSingleProductFormComponent, deps: [{ token: i1.FormValidatorService }, { token: i2.StockIssueService }, { token: i3.FormBuilder }, { token: i1.DateUtils }, { token: i4.LocationService }, { token: i5.MatDialogRef, optional: true }, { token: MAT_DIALOG_DATA, optional: true }], target: i0.ɵɵFactoryTarget.Component });
157
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: StockIssueSingleProductFormComponent, isStandalone: true, selector: "app-stock-issue-single-product-form", viewQueries: [{ propertyName: "batchSearchableSelector", first: true, predicate: ["batchSearchableSelector"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<mat-card-content>\n <h5 class=\"text-center\">\n Stock Issue form\n\n @if (data.product) {\n for {{ data.product?.name }}\n }\n </h5>\n <form [formGroup]=\"form\" class=\"d-flex flex-column gap-1 justify-content-start\" (submit)=\"save()\">\n <mat-form-field *ngIf=\"!product\">\n <mat-label>Product</mat-label>\n <app-searchable-selector formControlName=\"product_id\" apiUrl=\"api/products\" titleField=\"name\"\n (selectedValueChange)=\"onProductChange($event)\"></app-searchable-selector>\n </mat-form-field>\n\n <mat-form-field *ngIf=\"locationsCount > 1\">\n <mat-label>Location</mat-label>\n <app-searchable-selector formControlName=\"location_id\" apiUrl=\"api/inventory-locations\"\n [selectedValue]=\"stockIssue?.stock_issue_products[0]?.location\"></app-searchable-selector>\n </mat-form-field>\n\n <ng-container *ngIf=\"locationsCount > 1 && form.value?.location_id && batchesApiUrl\">\n <mat-form-field techlifyFeatureEnabled=\"product-batch-numbers\">\n <mat-label>Batch</mat-label>\n <app-searchable-selector #batchSearchableSelector formControlName=\"batch_id\" [apiUrl]=\"batchesApiUrl\"\n [enableSearch]=\"false\" (itemsChange)=\"onBatchItemsChange()\">\n </app-searchable-selector>\n </mat-form-field>\n </ng-container>\n\n <mat-form-field>\n <mat-label>Date</mat-label>\n <input matInput [matDatepicker]=\"datePicker\" formControlName=\"date\" (focus)=\"datePicker.open()\" />\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>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 [disabled]=\"isWorking\" mat-raised-button color=\"primary\" type=\"submit\">Save</button>\n <button [disabled]=\"isWorking\" (click)=\"dialogRef.close()\" mat-flat-button type=\"button\">Cancel</button>\n </div>\n </form>\n</mat-card-content>", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i3.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i3.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: i3.NumberValueAccessor, selector: "input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i3.MinValidator, selector: "input[type=number][min][formControlName],input[type=number][min][formControl],input[type=number][min][ngModel]", inputs: ["min"] }, { kind: "directive", type: i3.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: MaterialModule }, { kind: "component", type: i7.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "directive", type: i8.MatCardContent, selector: "mat-card-content" }, { 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: i10.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i10.MatLabel, selector: "mat-label" }, { kind: "directive", type: i10.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i11.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: "ngmodule", type: MatDialogModule }, { kind: "ngmodule", type: SearchableSelectorModule }, { 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", "isEmitInitialEvent", "required", "disabled", "value"], outputs: ["selectedValueChange", "selectionChange", "itemsChange"] }, { kind: "ngmodule", type: TechlifyFeatureModule }, { kind: "directive", type: i1.TechlifyFeatureEnabledDirective, selector: "[techlifyFeatureEnabled]", inputs: ["techlifyFeatureEnabled"] }], preserveWhitespaces: true });
158
- }
159
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: StockIssueSingleProductFormComponent, decorators: [{
160
- type: Component,
161
- args: [{ selector: 'app-stock-issue-single-product-form', standalone: true, imports: [
162
- CommonModule,
163
- ReactiveFormsModule,
164
- MaterialModule,
165
- MatDialogModule,
166
- SearchableSelectorModule,
167
- TechlifyFeatureModule,
168
- ], template: "<mat-card-content>\n <h5 class=\"text-center\">\n Stock Issue form\n\n @if (data.product) {\n for {{ data.product?.name }}\n }\n </h5>\n <form [formGroup]=\"form\" class=\"d-flex flex-column gap-1 justify-content-start\" (submit)=\"save()\">\n <mat-form-field *ngIf=\"!product\">\n <mat-label>Product</mat-label>\n <app-searchable-selector formControlName=\"product_id\" apiUrl=\"api/products\" titleField=\"name\"\n (selectedValueChange)=\"onProductChange($event)\"></app-searchable-selector>\n </mat-form-field>\n\n <mat-form-field *ngIf=\"locationsCount > 1\">\n <mat-label>Location</mat-label>\n <app-searchable-selector formControlName=\"location_id\" apiUrl=\"api/inventory-locations\"\n [selectedValue]=\"stockIssue?.stock_issue_products[0]?.location\"></app-searchable-selector>\n </mat-form-field>\n\n <ng-container *ngIf=\"locationsCount > 1 && form.value?.location_id && batchesApiUrl\">\n <mat-form-field techlifyFeatureEnabled=\"product-batch-numbers\">\n <mat-label>Batch</mat-label>\n <app-searchable-selector #batchSearchableSelector formControlName=\"batch_id\" [apiUrl]=\"batchesApiUrl\"\n [enableSearch]=\"false\" (itemsChange)=\"onBatchItemsChange()\">\n </app-searchable-selector>\n </mat-form-field>\n </ng-container>\n\n <mat-form-field>\n <mat-label>Date</mat-label>\n <input matInput [matDatepicker]=\"datePicker\" formControlName=\"date\" (focus)=\"datePicker.open()\" />\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>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 [disabled]=\"isWorking\" mat-raised-button color=\"primary\" type=\"submit\">Save</button>\n <button [disabled]=\"isWorking\" (click)=\"dialogRef.close()\" mat-flat-button type=\"button\">Cancel</button>\n </div>\n </form>\n</mat-card-content>" }]
169
- }], ctorParameters: () => [{ type: i1.FormValidatorService }, { type: i2.StockIssueService }, { type: i3.FormBuilder }, { type: i1.DateUtils }, { type: i4.LocationService }, { type: i5.MatDialogRef, decorators: [{
170
- type: Optional
171
- }] }, { type: undefined, decorators: [{
172
- type: Inject,
173
- args: [MAT_DIALOG_DATA]
174
- }, {
175
- type: Optional
176
- }] }], propDecorators: { batchSearchableSelector: [{
177
- type: ViewChild,
178
- args: ['batchSearchableSelector']
179
- }] } });
180
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RvY2staXNzdWUtc2luZ2xlLXByb2R1Y3QtZm9ybS5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9pbnZlbnRvcnktY29tbW9uL3NyYy9saWIvaW52ZW50b3J5LWNvbW1vbi9zdG9jay1pc3N1ZS9zdG9jay1pc3N1ZS1zaW5nbGUtcHJvZHVjdC1mb3JtL3N0b2NrLWlzc3VlLXNpbXBsZS1mb3JtL3N0b2NrLWlzc3VlLXNpbmdsZS1wcm9kdWN0LWZvcm0uY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVj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FuY2VsPC9idXR0b24+XG4gICAgPC9kaXY+XG4gIDwvZm9ybT5cbjwvbWF0LWNhcmQtY29udGVudD4iXX0=
@@ -1,298 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { EventEmitter, Component, Input, Output, NgModule } from '@angular/core';
3
- import * as i3 from '@angular/common';
4
- import { CommonModule } from '@angular/common';
5
- import * as i4 from '@angular/router';
6
- import { RouterModule } from '@angular/router';
7
- import * as i1 from 'ngx-techlify-core';
8
- import { TechlifyFormComponent, TechlifyListComponent, MaterialModule } from 'ngx-techlify-core';
9
- import * as i2 from '@angular/forms';
10
- import { Validators, ReactiveFormsModule } from '@angular/forms';
11
- import { M as MeasureService, T as TechlifyFilterComponent, a as TechlifyFilterModule } from './techlify-inventory-common-techlify-inventory-common-EM-86Ss5.mjs';
12
- import * as i10 from '@angular/material/sort';
13
- import * as i8$1 from '@angular/material/table';
14
- import * as i4$1 from '@angular/material/card';
15
- import * as i9 from '@angular/material/progress-bar';
16
- import { MatProgressBarModule } from '@angular/material/progress-bar';
17
- import * as i1$1 from '@angular/material/dialog';
18
- import * as i7 from '@angular/material/button';
19
- import * as i6 from '@angular/material/form-field';
20
- import * as i8 from '@angular/material/input';
21
- import * as i11 from 'ngx-infinite-scroll';
22
- import { InfiniteScrollModule } from 'ngx-infinite-scroll';
23
-
24
- class MeasureFormComponent extends TechlifyFormComponent {
25
- formBuilder;
26
- measureService;
27
- measure;
28
- saved = new EventEmitter();
29
- cancelled = new EventEmitter();
30
- constructor(formValidatorService, formBuilder, measureService) {
31
- super(formValidatorService);
32
- this.formBuilder = formBuilder;
33
- this.measureService = measureService;
34
- this.errorMessages = {
35
- title: {
36
- required: 'The title field is required.',
37
- },
38
- quantity_measure: {
39
- required: 'The quantity measure field is required.',
40
- },
41
- };
42
- this.form = this.formBuilder.group({
43
- id: [''],
44
- title: ['', Validators.required],
45
- quantity_measure: ['', Validators.required],
46
- description: [''],
47
- });
48
- }
49
- ngOnInit() {
50
- if (this.measure) {
51
- this.form.patchValue({ ...this.measure });
52
- }
53
- }
54
- save() {
55
- if (this.form.invalid) {
56
- this.alertService.addAlert('Please check the form for errors.', 'error');
57
- return;
58
- }
59
- const data = {
60
- ...this.form.value,
61
- };
62
- this.isWorking = true;
63
- let request = this.measureService.store(data);
64
- if (this.measure?.id) {
65
- request = this.measureService.update(data);
66
- }
67
- request.subscribe({
68
- next: (response) => {
69
- this.alertService.addAlert('Measure saved successfully!', 'success');
70
- this.isWorking = false;
71
- this.saved.emit(response?.item);
72
- },
73
- error: () => (this.isWorking = false),
74
- });
75
- }
76
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MeasureFormComponent, deps: [{ token: i1.FormValidatorService }, { token: i2.FormBuilder }, { token: MeasureService }], target: i0.ɵɵFactoryTarget.Component });
77
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: MeasureFormComponent, selector: "app-measure-form", inputs: { measure: "measure" }, outputs: { saved: "saved", cancelled: "cancelled" }, usesInheritance: true, ngImport: i0, template: "<h3 class=\"text-center mb-1\">{{ measure?.id ? 'Edit' : 'Create' }} Measure</h3>\n<p class=\"text-center text-secondary\">Measures are used throughout the app. ONLY create measure as is applicable.</p>\n\n<form [formGroup]=\"form\" class=\"d-flex flex-row flex-wrap justify-content-start gap-2\" (submit)=\"save()\">\n <mat-form-field style=\"width: calc(100%)\">\n <mat-label>Title</mat-label>\n <input formControlName=\"title\" type=\"text\" matInput placeholder=\"Title\" />\n <mat-error *ngIf=\"isFieldValid('title')\">\n {{ getErrorMessage('title') }}\n </mat-error>\n </mat-form-field>\n\n <mat-form-field style=\"width: calc(100%)\">\n <mat-label>Quantity Measure</mat-label>\n <input formControlName=\"quantity_measure\" type=\"text\" matInput placeholder=\"Quantity Measure\" />\n <mat-hint> What is this measure for? eg: Unit, Length, Mass, Capacity. </mat-hint>\n <mat-error *ngIf=\"isFieldValid('quantity_measure')\">\n {{ getErrorMessage('quantity_measure') }}\n </mat-error>\n </mat-form-field>\n\n <mat-form-field style=\"width: calc(100%)\">\n <mat-label>Description</mat-label>\n <textarea matInput formControlName=\"description\" placeholder=\"Description\" rows=\"3\"></textarea>\n </mat-form-field>\n\n <div class=\"d-flex justify-content-end align-items-center gap-2\" style=\"width: calc(100%)\">\n <button [disabled]=\"isWorking\" type=\"submit\" mat-raised-button color=\"primary\">Save</button>\n <button [disabled]=\"isWorking\" type=\"button\" mat-flat-button (click)=\"cancelled.emit()\">Cancel</button>\n </div>\n</form>\n", styles: [""], dependencies: [{ kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i7.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { 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.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i6.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i8.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: "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.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { 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"] }], preserveWhitespaces: true });
78
- }
79
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MeasureFormComponent, decorators: [{
80
- type: Component,
81
- args: [{ selector: 'app-measure-form', template: "<h3 class=\"text-center mb-1\">{{ measure?.id ? 'Edit' : 'Create' }} Measure</h3>\n<p class=\"text-center text-secondary\">Measures are used throughout the app. ONLY create measure as is applicable.</p>\n\n<form [formGroup]=\"form\" class=\"d-flex flex-row flex-wrap justify-content-start gap-2\" (submit)=\"save()\">\n <mat-form-field style=\"width: calc(100%)\">\n <mat-label>Title</mat-label>\n <input formControlName=\"title\" type=\"text\" matInput placeholder=\"Title\" />\n <mat-error *ngIf=\"isFieldValid('title')\">\n {{ getErrorMessage('title') }}\n </mat-error>\n </mat-form-field>\n\n <mat-form-field style=\"width: calc(100%)\">\n <mat-label>Quantity Measure</mat-label>\n <input formControlName=\"quantity_measure\" type=\"text\" matInput placeholder=\"Quantity Measure\" />\n <mat-hint> What is this measure for? eg: Unit, Length, Mass, Capacity. </mat-hint>\n <mat-error *ngIf=\"isFieldValid('quantity_measure')\">\n {{ getErrorMessage('quantity_measure') }}\n </mat-error>\n </mat-form-field>\n\n <mat-form-field style=\"width: calc(100%)\">\n <mat-label>Description</mat-label>\n <textarea matInput formControlName=\"description\" placeholder=\"Description\" rows=\"3\"></textarea>\n </mat-form-field>\n\n <div class=\"d-flex justify-content-end align-items-center gap-2\" style=\"width: calc(100%)\">\n <button [disabled]=\"isWorking\" type=\"submit\" mat-raised-button color=\"primary\">Save</button>\n <button [disabled]=\"isWorking\" type=\"button\" mat-flat-button (click)=\"cancelled.emit()\">Cancel</button>\n </div>\n</form>\n" }]
82
- }], ctorParameters: () => [{ type: i1.FormValidatorService }, { type: i2.FormBuilder }, { type: MeasureService }], propDecorators: { measure: [{
83
- type: Input
84
- }], saved: [{
85
- type: Output
86
- }], cancelled: [{
87
- type: Output
88
- }] } });
89
-
90
- class MeasureFormButtonComponent {
91
- matDialog;
92
- measure;
93
- saved = new EventEmitter();
94
- constructor(matDialog) {
95
- this.matDialog = matDialog;
96
- }
97
- showForm(templateRef) {
98
- this.matDialog.open(templateRef, { width: '500px' });
99
- }
100
- onSave(measure) {
101
- this.matDialog.closeAll();
102
- this.saved.emit(measure);
103
- }
104
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MeasureFormButtonComponent, deps: [{ token: i1$1.MatDialog }], target: i0.ɵɵFactoryTarget.Component });
105
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: MeasureFormButtonComponent, selector: "app-measure-form-button", inputs: { measure: "measure" }, outputs: { saved: "saved" }, ngImport: i0, template: "<span\n class=\"material-symbols-outlined cursor-pointer\"\n (click)=\"showForm(measureFormTemplate)\"\n [class.text-primary]=\"!measure?.id\"\n>\n {{ measure?.id ? 'edit' : 'add' }}\n</span>\n\n<ng-template #measureFormTemplate>\n <app-measure-form\n [measure]=\"measure\"\n mat-dialog-content\n (saved)=\"onSave($event)\"\n (cancelled)=\"matDialog.closeAll()\"\n ></app-measure-form>\n</ng-template>\n", styles: [""], dependencies: [{ kind: "directive", type: i1$1.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "component", type: MeasureFormComponent, selector: "app-measure-form", inputs: ["measure"], outputs: ["saved", "cancelled"] }], preserveWhitespaces: true });
106
- }
107
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MeasureFormButtonComponent, decorators: [{
108
- type: Component,
109
- args: [{ selector: 'app-measure-form-button', template: "<span\n class=\"material-symbols-outlined cursor-pointer\"\n (click)=\"showForm(measureFormTemplate)\"\n [class.text-primary]=\"!measure?.id\"\n>\n {{ measure?.id ? 'edit' : 'add' }}\n</span>\n\n<ng-template #measureFormTemplate>\n <app-measure-form\n [measure]=\"measure\"\n mat-dialog-content\n (saved)=\"onSave($event)\"\n (cancelled)=\"matDialog.closeAll()\"\n ></app-measure-form>\n</ng-template>\n" }]
110
- }], ctorParameters: () => [{ type: i1$1.MatDialog }], propDecorators: { measure: [{
111
- type: Input
112
- }], saved: [{
113
- type: Output
114
- }] } });
115
-
116
- class MeasureDeleteButtonComponent {
117
- measureService;
118
- matDialog;
119
- measure;
120
- deleted = new EventEmitter();
121
- isDeleting = false;
122
- constructor(measureService, matDialog) {
123
- this.measureService = measureService;
124
- this.matDialog = matDialog;
125
- }
126
- /**
127
- * Delete the expense record.
128
- */
129
- deleteMeasure() {
130
- this.isDeleting = true;
131
- this.measureService.delete(this.measure).subscribe({
132
- next: () => {
133
- this.matDialog.closeAll();
134
- this.isDeleting = false;
135
- this.deleted.emit();
136
- },
137
- error: () => (this.isDeleting = false),
138
- });
139
- }
140
- showConfirmDialog(templateRef) {
141
- this.matDialog.open(templateRef);
142
- }
143
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MeasureDeleteButtonComponent, deps: [{ token: MeasureService }, { token: i1$1.MatDialog }], target: i0.ɵɵFactoryTarget.Component });
144
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: MeasureDeleteButtonComponent, selector: "app-measure-delete-button", inputs: { measure: "measure" }, outputs: { deleted: "deleted" }, ngImport: i0, template: "<span\n (click)=\"showConfirmDialog(deleteMeasureTemplate)\"\n class=\"material-symbols-outlined cursor-pointer text-secondary\"\n>\n delete\n</span>\n\n<ng-template #deleteMeasureTemplate>\n <h3 mat-dialog-title>Delete Measure</h3>\n <div mat-dialog-content>\n <p>Deleting this measure cannot be undone, are you sure you want to proceed?</p>\n </div>\n <div mat-dialog-actions class=\"d-flex justify-content-end align-items-center gap-2\">\n <button [disabled]=\"isDeleting\" mat-flat-button type=\"button\" mat-dialog-close>Cancel</button>\n <button [disabled]=\"isDeleting\" mat-raised-button color=\"warn\" type=\"button\" (click)=\"deleteMeasure()\">\n Delete\n </button>\n </div>\n</ng-template>\n", styles: [""], dependencies: [{ kind: "component", type: i7.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "directive", type: i1$1.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["aria-label", "type", "mat-dialog-close", "matDialogClose"], exportAs: ["matDialogClose"] }, { kind: "directive", type: i1$1.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "directive", type: i1$1.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "directive", type: i1$1.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }], preserveWhitespaces: true });
145
- }
146
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MeasureDeleteButtonComponent, decorators: [{
147
- type: Component,
148
- args: [{ selector: 'app-measure-delete-button', template: "<span\n (click)=\"showConfirmDialog(deleteMeasureTemplate)\"\n class=\"material-symbols-outlined cursor-pointer text-secondary\"\n>\n delete\n</span>\n\n<ng-template #deleteMeasureTemplate>\n <h3 mat-dialog-title>Delete Measure</h3>\n <div mat-dialog-content>\n <p>Deleting this measure cannot be undone, are you sure you want to proceed?</p>\n </div>\n <div mat-dialog-actions class=\"d-flex justify-content-end align-items-center gap-2\">\n <button [disabled]=\"isDeleting\" mat-flat-button type=\"button\" mat-dialog-close>Cancel</button>\n <button [disabled]=\"isDeleting\" mat-raised-button color=\"warn\" type=\"button\" (click)=\"deleteMeasure()\">\n Delete\n </button>\n </div>\n</ng-template>\n" }]
149
- }], ctorParameters: () => [{ type: MeasureService }, { type: i1$1.MatDialog }], propDecorators: { measure: [{
150
- type: Input
151
- }], deleted: [{
152
- type: Output
153
- }] } });
154
-
155
- class MeasuresListComponent extends TechlifyListComponent {
156
- formBuilder;
157
- measureService;
158
- displayedColumns = [
159
- 'no',
160
- 'title',
161
- 'products',
162
- 'quantity_measure',
163
- 'description',
164
- 'actions'
165
- ];
166
- constructor(formBuilder, measureService) {
167
- super();
168
- this.formBuilder = formBuilder;
169
- this.measureService = measureService;
170
- this.filterForm = this.formBuilder.group({
171
- search: [''],
172
- sort_by: ['created_at|desc'],
173
- });
174
- }
175
- ngOnInit() {
176
- this.loadData();
177
- }
178
- loadData() {
179
- const params = {
180
- page: this.page,
181
- perPage: this.perPage,
182
- withCount: 'products',
183
- ...this.filterForm.value,
184
- };
185
- this.isWorking = true;
186
- this.measureService.index(params).subscribe({
187
- next: (response) => {
188
- this.isWorking = false;
189
- this.models = this.models.concat(response?.data);
190
- this.lastPage = response?.last_page;
191
- },
192
- error: () => (this.isWorking = false),
193
- });
194
- }
195
- onSortChange(sort) {
196
- let { active, direction } = sort;
197
- if (!active) {
198
- active = 'created_at';
199
- }
200
- if (!direction) {
201
- direction = 'desc';
202
- active = 'created_at';
203
- }
204
- this.filterForm.get('sort_by').setValue(active + '|' + direction);
205
- }
206
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MeasuresListComponent, deps: [{ token: i2.FormBuilder }, { token: MeasureService }], target: i0.ɵɵFactoryTarget.Component });
207
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: MeasuresListComponent, selector: "app-measure-list", usesInheritance: true, ngImport: i0, template: "<mat-card class=\"mb-2\">\n <mat-card-content class=\"d-flex justify-content-between align-items-center gap-3\">\n <div class=\"d-flex justify-content-center align-items-center gap-2\">\n <h3 class=\"mb-0\">Measures</h3>\n <app-measure-form-button (saved)=\"reload()\"></app-measure-form-button>\n </div>\n <app-techlify-filter [filterForm]=\"filterForm\" (filterUpdated)=\"reload()\"></app-techlify-filter>\n </mat-card-content>\n</mat-card>\n\n<mat-card class=\"p-0\">\n <mat-card-content>\n <table mat-table [dataSource]=\"models\" class=\"w-100\" aria-describedby=\"Service Centers\" infiniteScroll\n [infiniteScrollDistance]=\"2\" [infiniteScrollThrottle]=\"50\" (scrolled)=\"onScroll()\" matSort\n (matSortChange)=\"onSortChange($event)\">\n <!-- # Column -->\n <ng-container matColumnDef=\"no\">\n <th mat-header-cell *matHeaderCellDef>#</th>\n <td mat-cell *matCellDef=\"let element; let i = index\">{{ i + 1 }}</td>\n </ng-container>\n\n <!-- Title Column -->\n <ng-container matColumnDef=\"title\">\n <th mat-header-cell *matHeaderCellDef mat-sort-header>Title</th>\n <td mat-cell *matCellDef=\"let element\">\n {{ element?.title }}\n </td>\n </ng-container>\n\n <ng-container matColumnDef=\"products\">\n <th mat-header-cell *matHeaderCellDef>Products</th>\n <td mat-cell *matCellDef=\"let element\">\n <a\n class=\"cursor-pointer text-dark text-decoration-none\"\n [routerLink]=\"['/inventory/products']\"\n [queryParams]=\"{ measure_ids: element.id }\"\n >\n {{ element?.products_count }} products\n </a>\n </td>\n </ng-container>\n\n <!-- Quantity Measure Column -->\n <ng-container matColumnDef=\"quantity_measure\">\n <th mat-header-cell *matHeaderCellDef mat-sort-header>Quantity Measure</th>\n <td mat-cell *matCellDef=\"let element\">\n {{ element?.quantity_measure }}\n </td>\n </ng-container>\n\n <!-- Description Column -->\n <ng-container matColumnDef=\"description\">\n <th mat-header-cell *matHeaderCellDef>Description</th>\n <td mat-cell *matCellDef=\"let element\">{{ element?.description }}</td>\n </ng-container>\n\n <!-- Actions Column -->\n <ng-container matColumnDef=\"actions\">\n <th mat-header-cell *matHeaderCellDef>Actions</th>\n <td mat-cell *matCellDef=\"let element\">\n <div class=\"d-flex justify-content-start align-items-center gap-2\">\n <app-measure-form-button [measure]=\"element\" (saved)=\"reload()\"\n *ngIf=\"element?.client_id\"></app-measure-form-button>\n <app-measure-delete-button [measure]=\"element\" (deleted)=\"reload()\"\n *ngIf=\"element?.client_id && element?.products_count == 0\"></app-measure-delete-button>\n </div>\n </td>\n </ng-container>\n\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: displayedColumns\"></tr>\n </table>\n\n <mat-progress-bar mode=\"indeterminate\" *ngIf=\"isWorking\"></mat-progress-bar>\n </mat-card-content>\n</mat-card>\n", styles: [""], dependencies: [{ kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i4.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: i10.MatSort, selector: "[matSort]", inputs: ["matSortActive", "matSortStart", "matSortDirection", "matSortDisableClear", "matSortDisabled"], outputs: ["matSortChange"], exportAs: ["matSort"] }, { kind: "component", type: i10.MatSortHeader, selector: "[mat-sort-header]", inputs: ["mat-sort-header", "arrowPosition", "start", "disabled", "sortActionDescription", "disableClear"], exportAs: ["matSortHeader"] }, { kind: "component", type: i8$1.MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "directive", type: i8$1.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: i8$1.MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { kind: "directive", type: i8$1.MatColumnDef, selector: "[matColumnDef]", inputs: ["matColumnDef"] }, { kind: "directive", type: i8$1.MatCellDef, selector: "[matCellDef]" }, { kind: "directive", type: i8$1.MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "directive", type: i8$1.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i8$1.MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "component", type: i8$1.MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "component", type: i8$1.MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }, { kind: "component", type: i4$1.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "directive", type: i4$1.MatCardContent, selector: "mat-card-content" }, { kind: "component", type: i9.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }, { kind: "component", type: MeasureFormButtonComponent, selector: "app-measure-form-button", inputs: ["measure"], outputs: ["saved"] }, { kind: "component", type: TechlifyFilterComponent, selector: "app-techlify-filter", inputs: ["filterForm", "filterConfig"], outputs: ["filterUpdated"] }, { kind: "directive", type: i11.InfiniteScrollDirective, selector: "[infiniteScroll], [infinite-scroll], [data-infinite-scroll]", inputs: ["infiniteScrollDistance", "infiniteScrollUpDistance", "infiniteScrollThrottle", "infiniteScrollDisabled", "infiniteScrollContainer", "scrollWindow", "immediateCheck", "horizontal", "alwaysCallback", "fromRoot"], outputs: ["scrolled", "scrolledUp"] }, { kind: "component", type: MeasureDeleteButtonComponent, selector: "app-measure-delete-button", inputs: ["measure"], outputs: ["deleted"] }], preserveWhitespaces: true });
208
- }
209
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MeasuresListComponent, decorators: [{
210
- type: Component,
211
- args: [{ selector: 'app-measure-list', template: "<mat-card class=\"mb-2\">\n <mat-card-content class=\"d-flex justify-content-between align-items-center gap-3\">\n <div class=\"d-flex justify-content-center align-items-center gap-2\">\n <h3 class=\"mb-0\">Measures</h3>\n <app-measure-form-button (saved)=\"reload()\"></app-measure-form-button>\n </div>\n <app-techlify-filter [filterForm]=\"filterForm\" (filterUpdated)=\"reload()\"></app-techlify-filter>\n </mat-card-content>\n</mat-card>\n\n<mat-card class=\"p-0\">\n <mat-card-content>\n <table mat-table [dataSource]=\"models\" class=\"w-100\" aria-describedby=\"Service Centers\" infiniteScroll\n [infiniteScrollDistance]=\"2\" [infiniteScrollThrottle]=\"50\" (scrolled)=\"onScroll()\" matSort\n (matSortChange)=\"onSortChange($event)\">\n <!-- # Column -->\n <ng-container matColumnDef=\"no\">\n <th mat-header-cell *matHeaderCellDef>#</th>\n <td mat-cell *matCellDef=\"let element; let i = index\">{{ i + 1 }}</td>\n </ng-container>\n\n <!-- Title Column -->\n <ng-container matColumnDef=\"title\">\n <th mat-header-cell *matHeaderCellDef mat-sort-header>Title</th>\n <td mat-cell *matCellDef=\"let element\">\n {{ element?.title }}\n </td>\n </ng-container>\n\n <ng-container matColumnDef=\"products\">\n <th mat-header-cell *matHeaderCellDef>Products</th>\n <td mat-cell *matCellDef=\"let element\">\n <a\n class=\"cursor-pointer text-dark text-decoration-none\"\n [routerLink]=\"['/inventory/products']\"\n [queryParams]=\"{ measure_ids: element.id }\"\n >\n {{ element?.products_count }} products\n </a>\n </td>\n </ng-container>\n\n <!-- Quantity Measure Column -->\n <ng-container matColumnDef=\"quantity_measure\">\n <th mat-header-cell *matHeaderCellDef mat-sort-header>Quantity Measure</th>\n <td mat-cell *matCellDef=\"let element\">\n {{ element?.quantity_measure }}\n </td>\n </ng-container>\n\n <!-- Description Column -->\n <ng-container matColumnDef=\"description\">\n <th mat-header-cell *matHeaderCellDef>Description</th>\n <td mat-cell *matCellDef=\"let element\">{{ element?.description }}</td>\n </ng-container>\n\n <!-- Actions Column -->\n <ng-container matColumnDef=\"actions\">\n <th mat-header-cell *matHeaderCellDef>Actions</th>\n <td mat-cell *matCellDef=\"let element\">\n <div class=\"d-flex justify-content-start align-items-center gap-2\">\n <app-measure-form-button [measure]=\"element\" (saved)=\"reload()\"\n *ngIf=\"element?.client_id\"></app-measure-form-button>\n <app-measure-delete-button [measure]=\"element\" (deleted)=\"reload()\"\n *ngIf=\"element?.client_id && element?.products_count == 0\"></app-measure-delete-button>\n </div>\n </td>\n </ng-container>\n\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: displayedColumns\"></tr>\n </table>\n\n <mat-progress-bar mode=\"indeterminate\" *ngIf=\"isWorking\"></mat-progress-bar>\n </mat-card-content>\n</mat-card>\n" }]
212
- }], ctorParameters: () => [{ type: i2.FormBuilder }, { type: MeasureService }] });
213
-
214
- const routes = [
215
- {
216
- path: '',
217
- component: MeasuresListComponent,
218
- },
219
- ];
220
- class MeasureRoutingModule {
221
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MeasureRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
222
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: MeasureRoutingModule, imports: [i4.RouterModule], exports: [RouterModule] });
223
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MeasureRoutingModule, imports: [RouterModule.forChild(routes), RouterModule] });
224
- }
225
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MeasureRoutingModule, decorators: [{
226
- type: NgModule,
227
- args: [{
228
- imports: [RouterModule.forChild(routes)],
229
- exports: [RouterModule],
230
- }]
231
- }] });
232
-
233
- class MeasureFormModule {
234
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MeasureFormModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
235
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: MeasureFormModule, declarations: [MeasureFormComponent, MeasureFormButtonComponent], imports: [CommonModule, MaterialModule, ReactiveFormsModule], exports: [MeasureFormComponent, MeasureFormButtonComponent] });
236
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MeasureFormModule, imports: [CommonModule, MaterialModule, ReactiveFormsModule] });
237
- }
238
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MeasureFormModule, decorators: [{
239
- type: NgModule,
240
- args: [{
241
- declarations: [MeasureFormComponent, MeasureFormButtonComponent],
242
- imports: [CommonModule, MaterialModule, ReactiveFormsModule],
243
- exports: [MeasureFormComponent, MeasureFormButtonComponent],
244
- }]
245
- }] });
246
-
247
- class MeasureDeleteModule {
248
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MeasureDeleteModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
249
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: MeasureDeleteModule, declarations: [MeasureDeleteButtonComponent], imports: [CommonModule, MaterialModule], exports: [MeasureDeleteButtonComponent] });
250
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MeasureDeleteModule, imports: [CommonModule, MaterialModule] });
251
- }
252
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MeasureDeleteModule, decorators: [{
253
- type: NgModule,
254
- args: [{
255
- declarations: [MeasureDeleteButtonComponent],
256
- imports: [CommonModule, MaterialModule],
257
- exports: [MeasureDeleteButtonComponent],
258
- }]
259
- }] });
260
-
261
- class MeasureModule {
262
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MeasureModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
263
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: MeasureModule, declarations: [MeasuresListComponent], imports: [CommonModule,
264
- MeasureRoutingModule,
265
- MaterialModule,
266
- MeasureFormModule,
267
- TechlifyFilterModule,
268
- InfiniteScrollModule,
269
- MeasureDeleteModule,
270
- MatProgressBarModule] });
271
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MeasureModule, imports: [CommonModule,
272
- MeasureRoutingModule,
273
- MaterialModule,
274
- MeasureFormModule,
275
- TechlifyFilterModule,
276
- InfiniteScrollModule,
277
- MeasureDeleteModule,
278
- MatProgressBarModule] });
279
- }
280
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MeasureModule, decorators: [{
281
- type: NgModule,
282
- args: [{
283
- declarations: [MeasuresListComponent],
284
- imports: [
285
- CommonModule,
286
- MeasureRoutingModule,
287
- MaterialModule,
288
- MeasureFormModule,
289
- TechlifyFilterModule,
290
- InfiniteScrollModule,
291
- MeasureDeleteModule,
292
- MatProgressBarModule,
293
- ],
294
- }]
295
- }] });
296
-
297
- export { MeasureModule };
298
- //# sourceMappingURL=techlify-inventory-common-measure.module-BvCXv-OU.mjs.map