techlify-inventory-common 18.0.1 → 18.1.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 (37) hide show
  1. package/esm2022/lib/inventory-common/product/product-list/product-list.component.mjs +30 -40
  2. package/esm2022/lib/inventory-common/product/product.module.mjs +7 -4
  3. package/esm2022/lib/inventory-common/supplier/supplier-form/supplier-form.component.mjs +9 -10
  4. package/esm2022/lib/inventory-common/supplier/supplier.module.mjs +7 -3
  5. package/esm2022/lib/inventory-common/supplier/suppliers-list/suppliers-list.component.mjs +77 -118
  6. package/fesm2022/{techlify-inventory-common-category.module-Stn6e73V.mjs → techlify-inventory-common-category.module-CNm2bEsx.mjs} +2 -2
  7. package/fesm2022/{techlify-inventory-common-category.module-Stn6e73V.mjs.map → techlify-inventory-common-category.module-CNm2bEsx.mjs.map} +1 -1
  8. package/fesm2022/{techlify-inventory-common-measure.module-CirswKXn.mjs → techlify-inventory-common-measure.module-BEaRHh5Z.mjs} +2 -2
  9. package/fesm2022/{techlify-inventory-common-measure.module-CirswKXn.mjs.map → techlify-inventory-common-measure.module-BEaRHh5Z.mjs.map} +1 -1
  10. package/fesm2022/{techlify-inventory-common-product.module-qdeafFV5.mjs → techlify-inventory-common-product.module-BV9Cy88x.mjs} +34 -38
  11. package/fesm2022/techlify-inventory-common-product.module-BV9Cy88x.mjs.map +1 -0
  12. package/fesm2022/{techlify-inventory-common-stock-issuances-list.module-CyFDxARk.mjs → techlify-inventory-common-stock-issuances-list.module-Dt6gx-ji.mjs} +2 -2
  13. package/fesm2022/{techlify-inventory-common-stock-issuances-list.module-CyFDxARk.mjs.map → techlify-inventory-common-stock-issuances-list.module-Dt6gx-ji.mjs.map} +1 -1
  14. package/fesm2022/{techlify-inventory-common-stock-issuances.module-Dm9i2kcf.mjs → techlify-inventory-common-stock-issuances.module-BQRRP-hW.mjs} +4 -4
  15. package/fesm2022/{techlify-inventory-common-stock-issuances.module-Dm9i2kcf.mjs.map → techlify-inventory-common-stock-issuances.module-BQRRP-hW.mjs.map} +1 -1
  16. package/fesm2022/{techlify-inventory-common-stock-receipt-form.module-BZDrN7la.mjs → techlify-inventory-common-stock-receipt-form.module-DND0GNlf.mjs} +2 -2
  17. package/fesm2022/{techlify-inventory-common-stock-receipt-form.module-BZDrN7la.mjs.map → techlify-inventory-common-stock-receipt-form.module-DND0GNlf.mjs.map} +1 -1
  18. package/fesm2022/{techlify-inventory-common-stock-receipts.module-CUPdWteR.mjs → techlify-inventory-common-stock-receipts.module-BvYaKITT.mjs} +3 -3
  19. package/fesm2022/{techlify-inventory-common-stock-receipts.module-CUPdWteR.mjs.map → techlify-inventory-common-stock-receipts.module-BvYaKITT.mjs.map} +1 -1
  20. package/fesm2022/techlify-inventory-common-supplier-form.component-DVBnhiyH.mjs +177 -0
  21. package/fesm2022/techlify-inventory-common-supplier-form.component-DVBnhiyH.mjs.map +1 -0
  22. package/fesm2022/{techlify-inventory-common-supplier.module-gzHesNtQ.mjs → techlify-inventory-common-supplier.module-Bwa7gx14.mjs} +73 -130
  23. package/fesm2022/techlify-inventory-common-supplier.module-Bwa7gx14.mjs.map +1 -0
  24. package/fesm2022/{techlify-inventory-common-techlify-inventory-common-Czyc0jLI.mjs → techlify-inventory-common-techlify-inventory-common-GFYF7JCA.mjs} +7 -7
  25. package/fesm2022/{techlify-inventory-common-techlify-inventory-common-Czyc0jLI.mjs.map → techlify-inventory-common-techlify-inventory-common-GFYF7JCA.mjs.map} +1 -1
  26. package/fesm2022/techlify-inventory-common.mjs +1 -1
  27. package/lib/inventory-common/product/product-list/product-list.component.d.ts +5 -7
  28. package/lib/inventory-common/product/product.module.d.ts +1 -1
  29. package/lib/inventory-common/supplier/supplier.module.d.ts +2 -1
  30. package/lib/inventory-common/supplier/suppliers-list/suppliers-list.component.d.ts +14 -24
  31. package/package.json +1 -1
  32. package/esm2022/lib/inventory-common/supplier/supplier-type.service.mjs +0 -25
  33. package/fesm2022/techlify-inventory-common-product.module-qdeafFV5.mjs.map +0 -1
  34. package/fesm2022/techlify-inventory-common-supplier-form.component-CHmMG7O8.mjs +0 -178
  35. package/fesm2022/techlify-inventory-common-supplier-form.component-CHmMG7O8.mjs.map +0 -1
  36. package/fesm2022/techlify-inventory-common-supplier.module-gzHesNtQ.mjs.map +0 -1
  37. package/lib/inventory-common/supplier/supplier-type.service.d.ts +0 -13
@@ -4,8 +4,8 @@ import * as i0 from '@angular/core';
4
4
  import { Input, Component, Injectable, NgModule } from '@angular/core';
5
5
  import * as i4 from '@angular/common';
6
6
  import { CommonModule } from '@angular/common';
7
- import { lastValueFrom, debounceTime } from 'rxjs';
8
- import { S as SupplierFormComponent, a as SupplierService } from './techlify-inventory-common-supplier-form.component-CHmMG7O8.mjs';
7
+ import { lastValueFrom, debounceTime, distinctUntilChanged } from 'rxjs';
8
+ import { S as SupplierFormComponent, a as SupplierService } from './techlify-inventory-common-supplier-form.component-DVBnhiyH.mjs';
9
9
  import * as i2 from '@angular/router';
10
10
  import { RouterModule } from '@angular/router';
11
11
  import * as i3 from '@angular/material/card';
@@ -22,31 +22,30 @@ import * as i3$1 from '@angular/material/icon';
22
22
  import { MatIconModule } from '@angular/material/icon';
23
23
  import { T as TechlifyFormService } from './techlify-inventory-common-techlify-form-service-CiVfwYTS.mjs';
24
24
  import { __decorate } from 'tslib';
25
- import * as i6$3 from '@angular/material/table';
26
- import { MatTableDataSource, MatTableModule } from '@angular/material/table';
27
25
  import { untilDestroyed, UntilDestroy } from '@ngneat/until-destroy';
28
26
  import * as i3$2 from 'ngx-spinner';
29
27
  import * as i2$1 from '@angular/forms';
30
28
  import { ReactiveFormsModule } from '@angular/forms';
31
- import * as i7$1 from '@angular/material/button';
32
- import { MatButtonModule } from '@angular/material/button';
33
- import * as i12 from '@angular/material/button-toggle';
34
- import { MatButtonToggleModule } from '@angular/material/button-toggle';
35
29
  import * as i6$2 from '@angular/material/form-field';
36
30
  import { MatFormFieldModule } from '@angular/material/form-field';
37
- import * as i7$2 from '@angular/material/input';
31
+ import * as i7$1 from '@angular/material/input';
38
32
  import { MatInputModule } from '@angular/material/input';
39
33
  import * as i5 from '@angular/material/sort';
40
34
  import { MatSortModule } from '@angular/material/sort';
35
+ import * as i6$3 from '@angular/material/table';
36
+ import { MatTableModule } from '@angular/material/table';
41
37
  import * as i2$2 from '@angular/material/tooltip';
42
38
  import { MatTooltipModule } from '@angular/material/tooltip';
43
- import * as i10 from '@angular/flex-layout';
44
- import { FlexModule } from '@angular/flex-layout';
45
- import * as i10$1 from 'ngx-infinite-scroll';
39
+ import * as i10 from 'ngx-infinite-scroll';
46
40
  import { InfiniteScrollModule } from 'ngx-infinite-scroll';
41
+ import * as i18 from 'ngx-permissions';
42
+ import { NgxPermissionsModule } from 'ngx-permissions';
43
+ import { FlexModule } from '@angular/flex-layout';
47
44
  import { MatCommonModule, MatLineModule, MatNativeDateModule, MatOptionModule, MatPseudoCheckboxModule, MatRippleModule } from '@angular/material/core';
48
45
  import { MatAutocompleteModule } from '@angular/material/autocomplete';
49
46
  import { MatBadgeModule } from '@angular/material/badge';
47
+ import { MatButtonModule } from '@angular/material/button';
48
+ import { MatButtonToggleModule } from '@angular/material/button-toggle';
50
49
  import { MatCheckboxModule } from '@angular/material/checkbox';
51
50
  import { MatChipsModule } from '@angular/material/chips';
52
51
  import { MatDatepickerModule } from '@angular/material/datepicker';
@@ -211,145 +210,82 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
211
210
  args: [{ selector: "app-supplier", template: "<div>\n <router-outlet></router-outlet>\n</div>\n" }]
212
211
  }], ctorParameters: () => [{ type: i1.MatDialog }, { type: SupplierFormService }] });
213
212
 
214
- class SupplierTypeService {
215
- httpService;
216
- constructor(httpService) {
217
- this.httpService = httpService;
218
- }
219
- /**
220
- * get all suppliers from API
221
- *
222
- */
223
- index() {
224
- return this.httpService.get(`api/supplier-types`);
225
- }
226
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SupplierTypeService, deps: [{ token: i1$1.HttpService }], target: i0.ɵɵFactoryTarget.Injectable });
227
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SupplierTypeService, providedIn: "root" });
228
- }
229
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SupplierTypeService, decorators: [{
230
- type: Injectable,
231
- args: [{
232
- providedIn: "root",
233
- }]
234
- }], ctorParameters: () => [{ type: i1$1.HttpService }] });
235
-
236
213
  let SuppliersListComponent = class SuppliersListComponent extends TechlifyListingControllerInterface {
237
214
  spinner;
238
215
  fb;
239
216
  supplierService;
240
- supplierTypeService;
241
217
  errorHandler;
242
218
  filterService;
243
219
  activatedRoute;
244
220
  alertService;
245
221
  dialog;
246
222
  supplierFormService;
223
+ requestHelperService;
247
224
  displayedColumns = [
248
- "#",
249
- "company_name",
250
- "contact_name",
251
- "phone",
252
- "address",
253
- "email",
254
- "details",
255
- "actions",
225
+ '#',
226
+ 'company_name',
227
+ 'type',
228
+ 'contact_name',
229
+ 'phone',
230
+ 'address',
231
+ 'email',
232
+ 'details',
233
+ 'actions',
256
234
  ];
257
- filterFormGroup;
258
- dataSource = new MatTableDataSource();
259
- totalItems = 0;
260
- currentPage = 1;
261
- routeFilters;
262
- supplierTypes;
263
- isLoading = false;
264
- constructor(spinner, fb, supplierService, supplierTypeService, errorHandler, filterService, activatedRoute, alertService, dialog, supplierFormService) {
235
+ constructor(spinner, fb, supplierService, errorHandler, filterService, activatedRoute, alertService, dialog, supplierFormService, requestHelperService) {
265
236
  super();
266
237
  this.spinner = spinner;
267
238
  this.fb = fb;
268
239
  this.supplierService = supplierService;
269
- this.supplierTypeService = supplierTypeService;
270
240
  this.errorHandler = errorHandler;
271
241
  this.filterService = filterService;
272
242
  this.activatedRoute = activatedRoute;
273
243
  this.alertService = alertService;
274
244
  this.dialog = dialog;
275
245
  this.supplierFormService = supplierFormService;
246
+ this.requestHelperService = requestHelperService;
276
247
  this.page = 1;
277
248
  this.perPage = 25;
278
249
  this.models = [];
279
- this.filterFormGroup = this.fb.group({
280
- search: [""],
281
- supplier_type_ids: ["1,2"],
282
- num_items: [this.perPage + "|" + this.currentPage],
283
- sort_by: [""],
250
+ this.filterForm = this.fb.group({
251
+ search: [''],
252
+ supplier_type_ids: [''],
253
+ sort_by: ['created_at|desc'],
284
254
  });
285
- this.supplierTypes = [];
286
255
  }
287
256
  ngOnInit() {
288
- this.patchFiltersFromRoute();
289
- this.listenForChanges();
290
- this.getSupplierTypes();
291
- this.loadData();
257
+ this.updateFormWithQueryParams();
258
+ this.subscribeToFormChanges();
259
+ this.subscribeToRouteChanges();
292
260
  }
293
261
  listenForChanges() {
294
262
  // listen for supplier added event to update the list.
295
263
  this.supplierFormService.isListUpdated().subscribe((val) => {
296
- if (val && !this.isLoading)
264
+ if (val && !this.isWorking)
297
265
  this.reload();
298
266
  });
299
267
  // listen for form group changes.
300
- this.filterFormGroup.valueChanges
301
- .pipe(debounceTime(500), untilDestroyed(this))
302
- .subscribe((changes) => {
303
- this.filterService.applyFilterToRoute(this.activatedRoute, this.filterFormGroup.value);
268
+ this.filterForm.valueChanges.pipe(debounceTime(500), untilDestroyed(this)).subscribe(() => {
269
+ this.filterService.applyFilterToRoute(this.activatedRoute, this.filterForm.value);
304
270
  this.reload();
305
271
  });
306
272
  }
307
- patchFiltersFromRoute() {
308
- this.routeFilters = this.filterService.getFiltersFromRoute(this.activatedRoute, this.filterFormGroup.value);
309
- this.filterFormGroup.setValue(this.routeFilters);
310
- if (this.routeFilters.supplier_type_ids) {
311
- this.filterFormGroup
312
- .get("supplier_type_ids")
313
- .setValue(this.routeFilters.supplier_type_ids.split(",").map(Number));
314
- }
315
- }
316
273
  sortColumn(event) {
317
274
  var direction = event.direction.toString().toUpperCase();
318
275
  this.assignFilter(event.active, direction);
319
276
  }
320
277
  assignFilter(column, direction) {
321
- return this.filterFormGroup
322
- .get("sort_by")
323
- ?.setValue(column + "|" + direction);
324
- }
325
- async getSupplierTypes() {
326
- try {
327
- let res = await lastValueFrom(this.supplierTypeService.index());
328
- this.supplierTypes = res.data;
329
- console.log(this.supplierTypes);
330
- }
331
- catch (error) {
332
- this.errorHandler.handleError(error);
333
- }
278
+ return this.filterForm.get('sort_by')?.setValue(column + '|' + direction);
334
279
  }
335
280
  async loadData() {
336
- let filters = this.filterFormGroup.value;
281
+ let filters = { ...this.requestHelperService.convertToFormData(this.filterForm.value) };
337
282
  filters.page = this.page = 1;
338
- filters.per_page = this.perPage;
339
- filters.supplier_type_ids = filters?.supplier_type_ids?.toString();
340
- filters.num_items = this.perPage + "|" + this.currentPage;
283
+ filters.perPage = this.perPage;
341
284
  try {
342
- this.isLoading = true;
285
+ this.isWorking = true;
343
286
  let res = await lastValueFrom(this.supplierService.index(filters));
344
- if (this.models.length < 1) {
345
- this.models = res.data;
346
- }
347
- else {
348
- res.data.forEach((item) => this.models.push(item));
349
- }
350
- this.dataSource = new MatTableDataSource(this.models);
351
- this.totalItems = res.total;
352
- this.lastPage = res.last_page || this.page;
287
+ this.models = this.models?.concat(res?.data);
288
+ this.lastPage = res.last_page;
353
289
  // list is updated do not listen form isListUpdated
354
290
  this.supplierFormService.listUpdated(false);
355
291
  }
@@ -357,25 +293,12 @@ let SuppliersListComponent = class SuppliersListComponent extends TechlifyListin
357
293
  this.errorHandler.handleError(error);
358
294
  }
359
295
  finally {
360
- this.isLoading = false;
361
- }
362
- }
363
- reload() {
364
- if (this.isLoading)
365
- return;
366
- this.models = [];
367
- this.currentPage = 1;
368
- this.loadData();
369
- }
370
- onScroll() {
371
- if (this.totalItems > this.models.length && !this.isLoading) {
372
- this.currentPage += 1;
373
- this.loadData();
296
+ this.isWorking = false;
374
297
  }
375
298
  }
376
299
  editForm(model) {
377
300
  const dialogRef = this.dialog.open(SupplierFormComponent, {
378
- width: "400px",
301
+ width: '400px',
379
302
  autoFocus: false,
380
303
  data: {
381
304
  details: model,
@@ -389,10 +312,10 @@ let SuppliersListComponent = class SuppliersListComponent extends TechlifyListin
389
312
  }
390
313
  deleteForm(supplier) {
391
314
  const dialogRef = this.dialog.open(ActionPopupComponent, {
392
- width: "400px",
315
+ width: '400px',
393
316
  data: {
394
- title: "Delete Supplier",
395
- message: "Are you sure you want to delete the Supplier?",
317
+ title: 'Delete Supplier',
318
+ message: 'Are you sure you want to delete the Supplier?',
396
319
  },
397
320
  autoFocus: false,
398
321
  });
@@ -401,7 +324,7 @@ let SuppliersListComponent = class SuppliersListComponent extends TechlifyListin
401
324
  this.spinner.show();
402
325
  try {
403
326
  const result = await lastValueFrom(this.supplierService.destroy(supplier.id));
404
- this.alertService.addAlert("Successfully deleted the Supplier", "success");
327
+ this.alertService.addAlert('Successfully deleted the Supplier', 'success');
405
328
  this.reload();
406
329
  }
407
330
  catch (error) {
@@ -420,7 +343,7 @@ let SuppliersListComponent = class SuppliersListComponent extends TechlifyListin
420
343
  */
421
344
  showAddSupplierDialog(model) {
422
345
  const dialogRef = this.dialog.open(SupplierFormComponent, {
423
- width: "400px",
346
+ width: '400px',
424
347
  autoFocus: false,
425
348
  data: {
426
349
  model,
@@ -433,16 +356,33 @@ let SuppliersListComponent = class SuppliersListComponent extends TechlifyListin
433
356
  }
434
357
  });
435
358
  }
436
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SuppliersListComponent, deps: [{ token: i3$2.NgxSpinnerService }, { token: i2$1.FormBuilder }, { token: SupplierService }, { token: SupplierTypeService }, { token: i1$1.ErrorHandlerService }, { token: i1$1.FilterService }, { token: i2.ActivatedRoute }, { token: i1$1.AlertService }, { token: i1.MatDialog }, { token: SupplierFormService }], target: i0.ɵɵFactoryTarget.Component });
437
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: SuppliersListComponent, selector: "app-suppliers-list", usesInheritance: true, ngImport: i0, template: "<div class=\"d-flex justify-content-center align-items-center gap-3 mb-3\">\n <h2 class=\"mb-0\">Suppliers</h2>\n <mat-icon\n color=\"primary\"\n class=\"cursor-pointer\"\n (click)=\"showAddSupplierDialog()\"\n >\n add\n </mat-icon>\n</div>\n<mat-card class=\"mb-3\">\n <mat-card-content>\n <form\n [formGroup]=\"filterFormGroup\"\n fxLayout\n fxLayoutGap=\"1rem\"\n fxLayoutAlign=\"start center\"\n >\n <mat-form-field fxFlex=\"24\">\n <input\n matInput\n placeholder=\"Search Supplier by Name, Phone, Address, Email, Description\"\n formControlName=\"search\"\n />\n <mat-icon matSuffix>search</mat-icon>\n </mat-form-field>\n <mat-label class=\"ml-4\">Type</mat-label>\n <mat-button-toggle-group formControlName=\"supplier_type_ids\" multiple>\n <mat-button-toggle\n *ngFor=\"let item of supplierTypes\"\n [value]=\"item.id\"\n >{{ item.title }}</mat-button-toggle\n >\n </mat-button-toggle-group>\n </form>\n </mat-card-content>\n</mat-card>\n<mat-card>\n <mat-card-content class=\"p-0\">\n <table\n mat-table\n #table\n [dataSource]=\"dataSource\"\n class=\"w-100 table-hover\"\n infiniteScroll\n [infiniteScrollDistance]=\"2\"\n [infiniteScrollThrottle]=\"50\"\n (scrolled)=\"onScroll()\"\n [fromRoot]=\"true\"\n matSort\n (matSortChange)=\"sortColumn($event)\"\n aria-describedby=\"Suppliers List\"\n >\n <ng-container matColumnDef=\"#\">\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 <ng-container matColumnDef=\"company_name\">\n <th mat-header-cell *matHeaderCellDef mat-sort-header>Company</th>\n <td mat-cell *matCellDef=\"let element\">\n <div class=\"d-flex flex-column gap-1\">\n <strong>{{ element?.company_name }}</strong>\n <span class=\"status-pill status-pill-sm status-ongoing\">\n {{ element?.type?.title }}\n </span>\n </div>\n </td>\n </ng-container>\n\n <ng-container matColumnDef=\"contact_name\">\n <th mat-header-cell *matHeaderCellDef mat-sort-header>Contact Name</th>\n <td mat-cell *matCellDef=\"let element\">\n {{ element?.contact_name }}\n </td>\n </ng-container>\n\n <ng-container matColumnDef=\"phone\">\n <th mat-header-cell *matHeaderCellDef>Phone</th>\n <td mat-cell *matCellDef=\"let element\">{{ element?.phone }}</td>\n </ng-container>\n\n <ng-container matColumnDef=\"address\">\n <th mat-header-cell *matHeaderCellDef mat-sort-header>Address</th>\n <td mat-cell *matCellDef=\"let element\">{{ element?.address }}</td>\n </ng-container>\n\n <ng-container matColumnDef=\"email\">\n <th mat-header-cell *matHeaderCellDef mat-sort-header>Email</th>\n <td mat-cell *matCellDef=\"let element\">{{ element?.email }}</td>\n </ng-container>\n\n <ng-container matColumnDef=\"details\">\n <th mat-header-cell *matHeaderCellDef>Description</th>\n <td mat-cell *matCellDef=\"let element\">{{ element?.details }}</td>\n </ng-container>\n\n <ng-container matColumnDef=\"actions\">\n <th mat-header-cell *matHeaderCellDef>Actions</th>\n <td mat-cell *matCellDef=\"let element\">\n <div class=\"text-secondary\" fxLayoutGap=\"1rem\">\n <app-audit-log-for-model\n [modelId]=\"element?.id\"\n modelType=\"Supplier\"\n logView=\"all\"\n ></app-audit-log-for-model>\n <button\n mat-icon-button\n [routerLink]=\"['/suppliers', element.id, 'view']\"\n routerLinkActive=\"route-link-active\"\n *ngxPermissionsOnly=\"['supplier.read']\"\n >\n <mat-icon matTooltip=\"View\">remove_red_eye</mat-icon>\n </button>\n <button\n *ngxPermissionsOnly=\"['supplier.update']\"\n mat-icon-button\n (click)=\"editForm(element)\"\n >\n <mat-icon>edit</mat-icon>\n </button>\n <button\n *ngxPermissionsOnly=\"['supplier.delete']\"\n type=\"button\"\n mat-icon-button\n (click)=\"deleteForm(element)\"\n >\n <mat-icon>delete</mat-icon>\n </button>\n </div>\n </td>\n </ng-container>\n\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns; sticky: true\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: displayedColumns\"></tr>\n </table>\n\n <mat-progress-bar mode=\"indeterminate\" *ngIf=\"isLoading\"></mat-progress-bar>\n </mat-card-content>\n</mat-card>\n", dependencies: [{ kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: i2.RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }, { kind: "component", type: i7$1.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "directive", type: i12.MatButtonToggleGroup, selector: "mat-button-toggle-group", inputs: ["appearance", "name", "vertical", "value", "multiple", "disabled", "disabledInteractive", "hideSingleSelectionIndicator", "hideMultipleSelectionIndicator"], outputs: ["valueChange", "change"], exportAs: ["matButtonToggleGroup"] }, { kind: "component", type: i12.MatButtonToggle, selector: "mat-button-toggle", inputs: ["aria-label", "aria-labelledby", "id", "name", "value", "tabIndex", "disableRipple", "appearance", "checked", "disabled", "disabledInteractive"], outputs: ["change"], exportAs: ["matButtonToggle"] }, { kind: "component", type: i3.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "directive", type: i3.MatCardContent, selector: "mat-card-content" }, { kind: "component", type: i6$2.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i6$2.MatLabel, selector: "mat-label" }, { kind: "directive", type: i6$2.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "component", type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i7$2.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: i7.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }, { kind: "directive", type: i5.MatSort, selector: "[matSort]", inputs: ["matSortActive", "matSortStart", "matSortDirection", "matSortDisableClear", "matSortDisabled"], outputs: ["matSortChange"], exportAs: ["matSort"] }, { kind: "component", type: i5.MatSortHeader, selector: "[mat-sort-header]", inputs: ["mat-sort-header", "arrowPosition", "start", "disabled", "sortActionDescription", "disableClear"], exportAs: ["matSortHeader"] }, { kind: "component", type: i6$3.MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "directive", type: i6$3.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: i6$3.MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { kind: "directive", type: i6$3.MatColumnDef, selector: "[matColumnDef]", inputs: ["matColumnDef"] }, { kind: "directive", type: i6$3.MatCellDef, selector: "[matCellDef]" }, { kind: "directive", type: i6$3.MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "directive", type: i6$3.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i6$3.MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "component", type: i6$3.MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "component", type: i6$3.MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }, { kind: "directive", type: i2$2.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "component", type: i1$1.AuditLogForModelComponent, selector: "app-audit-log-for-model", inputs: ["modelType", "modelId", "logView"] }, { kind: "directive", type: i10.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i10.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { kind: "directive", type: i10.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { kind: "directive", type: i10.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { kind: "directive", type: i2$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i2$1.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$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i2$1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i10$1.InfiniteScrollDirective, selector: "[infiniteScroll], [infinite-scroll], [data-infinite-scroll]", inputs: ["infiniteScrollDistance", "infiniteScrollUpDistance", "infiniteScrollThrottle", "infiniteScrollDisabled", "infiniteScrollContainer", "scrollWindow", "immediateCheck", "horizontal", "alwaysCallback", "fromRoot"], outputs: ["scrolled", "scrolledUp"] }], preserveWhitespaces: true });
359
+ updateFormWithQueryParams() {
360
+ this.requestHelperService.updateFormWithQueryParams(this.filterForm, {
361
+ supplier_type_ids: { multiple: true },
362
+ });
363
+ }
364
+ subscribeToFormChanges() {
365
+ this.filterForm.valueChanges.pipe(debounceTime(800)).subscribe({
366
+ next: () => {
367
+ this.requestHelperService.updateQueryParams(this.requestHelperService.convertToFormData(this.filterForm.value));
368
+ },
369
+ });
370
+ }
371
+ subscribeToRouteChanges() {
372
+ this.activatedRoute.queryParams.pipe(debounceTime(500), distinctUntilChanged()).subscribe(() => {
373
+ this.reload();
374
+ });
375
+ }
376
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SuppliersListComponent, deps: [{ token: i3$2.NgxSpinnerService }, { token: i2$1.FormBuilder }, { token: SupplierService }, { token: i1$1.ErrorHandlerService }, { token: i1$1.FilterService }, { token: i2.ActivatedRoute }, { token: i1$1.AlertService }, { token: i1.MatDialog }, { token: SupplierFormService }, { token: i1$1.RequestHelperService }], target: i0.ɵɵFactoryTarget.Component });
377
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: SuppliersListComponent, selector: "app-suppliers-list", usesInheritance: true, ngImport: i0, template: "<mat-card class=\"mb-3\">\n <mat-card-content class=\"d-flex justify-content-between align-items-center gap-3\">\n <div class=\"d-flex justify-content-start align-items-center gap-3\">\n <h3 class=\"mb-0\">Suppliers</h3>\n <mat-icon\n color=\"primary\"\n class=\"cursor-pointer\"\n (click)=\"showAddSupplierDialog()\"\n >\n add\n </mat-icon>\n </div>\n <form\n [formGroup]=\"filterForm\"\n class=\"d-flex justify-content-end align-items-center gap-2\"\n >\n <mat-form-field>\n <mat-label>Search</mat-label>\n <input\n matInput\n placeholder=\"Search Supplier by Name, Phone, Address, Email, Description\"\n formControlName=\"search\"\n />\n <mat-icon matSuffix>search</mat-icon>\n </mat-form-field>\n <mat-form-field>\n <mat-label>Type</mat-label>\n <app-searchable-selector\n apiUrl=\"api/supplier-types\"\n formControlName=\"supplier_type_ids\"\n [multiple]=\"true\"\n >\n </app-searchable-selector>\n </mat-form-field>\n </form>\n </mat-card-content>\n</mat-card>\n<mat-card>\n <mat-card-content class=\"p-0\">\n <table\n mat-table\n #table\n [dataSource]=\"models\"\n class=\"w-100 table-hover\"\n infiniteScroll\n [infiniteScrollDistance]=\"2\"\n [infiniteScrollThrottle]=\"50\"\n (scrolled)=\"onScroll()\"\n [fromRoot]=\"true\"\n matSort\n (matSortChange)=\"sortColumn($event)\"\n aria-describedby=\"Suppliers List\"\n >\n <ng-container matColumnDef=\"#\">\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 <ng-container matColumnDef=\"company_name\">\n <th mat-header-cell *matHeaderCellDef mat-sort-header>Name</th>\n <td mat-cell *matCellDef=\"let element\">\n {{ element?.company_name }}\n </td>\n </ng-container>\n\n <ng-container matColumnDef=\"type\">\n <th mat-header-cell *matHeaderCellDef>Type</th>\n <td mat-cell *matCellDef=\"let element\">\n {{ element?.type?.title }}\n </td>\n </ng-container>\n\n <ng-container matColumnDef=\"contact_name\">\n <th mat-header-cell *matHeaderCellDef>Contact</th>\n <td mat-cell *matCellDef=\"let element\">\n {{ element?.contact_name }}\n </td>\n </ng-container>\n\n <ng-container matColumnDef=\"phone\">\n <th mat-header-cell *matHeaderCellDef mat-sort-header>Phone</th>\n <td mat-cell *matCellDef=\"let element\">{{ element?.phone }}</td>\n </ng-container>\n\n <ng-container matColumnDef=\"address\">\n <th mat-header-cell *matHeaderCellDef>Address</th>\n <td mat-cell *matCellDef=\"let element\">{{ element?.address }}</td>\n </ng-container>\n\n <ng-container matColumnDef=\"email\">\n <th mat-header-cell *matHeaderCellDef mat-sort-header>Email</th>\n <td mat-cell *matCellDef=\"let element\">{{ element?.email }}</td>\n </ng-container>\n\n <ng-container matColumnDef=\"details\">\n <th mat-header-cell *matHeaderCellDef>Details</th>\n <td mat-cell *matCellDef=\"let element\">{{ element?.details }}</td>\n </ng-container>\n\n <ng-container matColumnDef=\"actions\">\n <th mat-header-cell *matHeaderCellDef>Actions</th>\n <td mat-cell *matCellDef=\"let element\">\n <div class=\"text-secondary d-flex justify-content-start align-items-center gap-2\">\n <a\n class=\"text-decoration-none text-dark mt-2\"\n [routerLink]=\"['/suppliers', element.id, 'view']\"\n routerLinkActive=\"route-link-active\"\n *ngxPermissionsOnly=\"['supplier.read']\"\n >\n <mat-icon matTooltip=\"View\">remove_red_eye</mat-icon>\n </a>\n <mat-icon\n *ngxPermissionsOnly=\"['supplier.update']\"\n class=\"cursor-pointer\"\n (click)=\"editForm(element)\"\n >\n edit\n </mat-icon>\n <mat-icon\n class=\"cursor-pointer\"\n *ngxPermissionsOnly=\"['supplier.delete']\"\n (click)=\"deleteForm(element)\"\n >\n delete\n </mat-icon>\n <app-audit-log-for-model\n [modelId]=\"element?.id\"\n modelType=\"Supplier\"\n logView=\"all\"\n ></app-audit-log-for-model>\n </div>\n </td>\n </ng-container>\n\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns; sticky: true\"></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", dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: i2.RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }, { kind: "component", type: i3.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "directive", type: i3.MatCardContent, selector: "mat-card-content" }, { kind: "component", type: i6$2.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i6$2.MatLabel, selector: "mat-label" }, { kind: "directive", type: i6$2.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "component", type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i7$1.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: i7.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }, { kind: "directive", type: i5.MatSort, selector: "[matSort]", inputs: ["matSortActive", "matSortStart", "matSortDirection", "matSortDisableClear", "matSortDisabled"], outputs: ["matSortChange"], exportAs: ["matSort"] }, { kind: "component", type: i5.MatSortHeader, selector: "[mat-sort-header]", inputs: ["mat-sort-header", "arrowPosition", "start", "disabled", "sortActionDescription", "disableClear"], exportAs: ["matSortHeader"] }, { kind: "component", type: i6$3.MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "directive", type: i6$3.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: i6$3.MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { kind: "directive", type: i6$3.MatColumnDef, selector: "[matColumnDef]", inputs: ["matColumnDef"] }, { kind: "directive", type: i6$3.MatCellDef, selector: "[matCellDef]" }, { kind: "directive", type: i6$3.MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "directive", type: i6$3.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i6$3.MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "component", type: i6$3.MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "component", type: i6$3.MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }, { kind: "directive", type: i2$2.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "component", type: i1$1.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: "component", type: i1$1.AuditLogForModelComponent, selector: "app-audit-log-for-model", inputs: ["modelType", "modelId", "logView"] }, { kind: "directive", type: i2$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i2$1.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$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i2$1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i10.InfiniteScrollDirective, selector: "[infiniteScroll], [infinite-scroll], [data-infinite-scroll]", inputs: ["infiniteScrollDistance", "infiniteScrollUpDistance", "infiniteScrollThrottle", "infiniteScrollDisabled", "infiniteScrollContainer", "scrollWindow", "immediateCheck", "horizontal", "alwaysCallback", "fromRoot"], outputs: ["scrolled", "scrolledUp"] }, { kind: "directive", type: i18.NgxPermissionsDirective, selector: "[ngxPermissionsOnly],[ngxPermissionsExcept]", inputs: ["ngxPermissionsOnly", "ngxPermissionsOnlyThen", "ngxPermissionsOnlyElse", "ngxPermissionsExcept", "ngxPermissionsExceptElse", "ngxPermissionsExceptThen", "ngxPermissionsThen", "ngxPermissionsElse", "ngxPermissionsOnlyAuthorisedStrategy", "ngxPermissionsOnlyUnauthorisedStrategy", "ngxPermissionsExceptUnauthorisedStrategy", "ngxPermissionsExceptAuthorisedStrategy", "ngxPermissionsUnauthorisedStrategy", "ngxPermissionsAuthorisedStrategy"], outputs: ["permissionsAuthorized", "permissionsUnauthorized"] }], preserveWhitespaces: true });
438
378
  };
439
379
  SuppliersListComponent = __decorate([
440
380
  UntilDestroy()
441
381
  ], SuppliersListComponent);
442
382
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SuppliersListComponent, decorators: [{
443
383
  type: Component,
444
- args: [{ selector: "app-suppliers-list", template: "<div class=\"d-flex justify-content-center align-items-center gap-3 mb-3\">\n <h2 class=\"mb-0\">Suppliers</h2>\n <mat-icon\n color=\"primary\"\n class=\"cursor-pointer\"\n (click)=\"showAddSupplierDialog()\"\n >\n add\n </mat-icon>\n</div>\n<mat-card class=\"mb-3\">\n <mat-card-content>\n <form\n [formGroup]=\"filterFormGroup\"\n fxLayout\n fxLayoutGap=\"1rem\"\n fxLayoutAlign=\"start center\"\n >\n <mat-form-field fxFlex=\"24\">\n <input\n matInput\n placeholder=\"Search Supplier by Name, Phone, Address, Email, Description\"\n formControlName=\"search\"\n />\n <mat-icon matSuffix>search</mat-icon>\n </mat-form-field>\n <mat-label class=\"ml-4\">Type</mat-label>\n <mat-button-toggle-group formControlName=\"supplier_type_ids\" multiple>\n <mat-button-toggle\n *ngFor=\"let item of supplierTypes\"\n [value]=\"item.id\"\n >{{ item.title }}</mat-button-toggle\n >\n </mat-button-toggle-group>\n </form>\n </mat-card-content>\n</mat-card>\n<mat-card>\n <mat-card-content class=\"p-0\">\n <table\n mat-table\n #table\n [dataSource]=\"dataSource\"\n class=\"w-100 table-hover\"\n infiniteScroll\n [infiniteScrollDistance]=\"2\"\n [infiniteScrollThrottle]=\"50\"\n (scrolled)=\"onScroll()\"\n [fromRoot]=\"true\"\n matSort\n (matSortChange)=\"sortColumn($event)\"\n aria-describedby=\"Suppliers List\"\n >\n <ng-container matColumnDef=\"#\">\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 <ng-container matColumnDef=\"company_name\">\n <th mat-header-cell *matHeaderCellDef mat-sort-header>Company</th>\n <td mat-cell *matCellDef=\"let element\">\n <div class=\"d-flex flex-column gap-1\">\n <strong>{{ element?.company_name }}</strong>\n <span class=\"status-pill status-pill-sm status-ongoing\">\n {{ element?.type?.title }}\n </span>\n </div>\n </td>\n </ng-container>\n\n <ng-container matColumnDef=\"contact_name\">\n <th mat-header-cell *matHeaderCellDef mat-sort-header>Contact Name</th>\n <td mat-cell *matCellDef=\"let element\">\n {{ element?.contact_name }}\n </td>\n </ng-container>\n\n <ng-container matColumnDef=\"phone\">\n <th mat-header-cell *matHeaderCellDef>Phone</th>\n <td mat-cell *matCellDef=\"let element\">{{ element?.phone }}</td>\n </ng-container>\n\n <ng-container matColumnDef=\"address\">\n <th mat-header-cell *matHeaderCellDef mat-sort-header>Address</th>\n <td mat-cell *matCellDef=\"let element\">{{ element?.address }}</td>\n </ng-container>\n\n <ng-container matColumnDef=\"email\">\n <th mat-header-cell *matHeaderCellDef mat-sort-header>Email</th>\n <td mat-cell *matCellDef=\"let element\">{{ element?.email }}</td>\n </ng-container>\n\n <ng-container matColumnDef=\"details\">\n <th mat-header-cell *matHeaderCellDef>Description</th>\n <td mat-cell *matCellDef=\"let element\">{{ element?.details }}</td>\n </ng-container>\n\n <ng-container matColumnDef=\"actions\">\n <th mat-header-cell *matHeaderCellDef>Actions</th>\n <td mat-cell *matCellDef=\"let element\">\n <div class=\"text-secondary\" fxLayoutGap=\"1rem\">\n <app-audit-log-for-model\n [modelId]=\"element?.id\"\n modelType=\"Supplier\"\n logView=\"all\"\n ></app-audit-log-for-model>\n <button\n mat-icon-button\n [routerLink]=\"['/suppliers', element.id, 'view']\"\n routerLinkActive=\"route-link-active\"\n *ngxPermissionsOnly=\"['supplier.read']\"\n >\n <mat-icon matTooltip=\"View\">remove_red_eye</mat-icon>\n </button>\n <button\n *ngxPermissionsOnly=\"['supplier.update']\"\n mat-icon-button\n (click)=\"editForm(element)\"\n >\n <mat-icon>edit</mat-icon>\n </button>\n <button\n *ngxPermissionsOnly=\"['supplier.delete']\"\n type=\"button\"\n mat-icon-button\n (click)=\"deleteForm(element)\"\n >\n <mat-icon>delete</mat-icon>\n </button>\n </div>\n </td>\n </ng-container>\n\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns; sticky: true\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: displayedColumns\"></tr>\n </table>\n\n <mat-progress-bar mode=\"indeterminate\" *ngIf=\"isLoading\"></mat-progress-bar>\n </mat-card-content>\n</mat-card>\n" }]
445
- }], ctorParameters: () => [{ type: i3$2.NgxSpinnerService }, { type: i2$1.FormBuilder }, { type: SupplierService }, { type: SupplierTypeService }, { type: i1$1.ErrorHandlerService }, { type: i1$1.FilterService }, { type: i2.ActivatedRoute }, { type: i1$1.AlertService }, { type: i1.MatDialog }, { type: SupplierFormService }] });
384
+ args: [{ selector: 'app-suppliers-list', template: "<mat-card class=\"mb-3\">\n <mat-card-content class=\"d-flex justify-content-between align-items-center gap-3\">\n <div class=\"d-flex justify-content-start align-items-center gap-3\">\n <h3 class=\"mb-0\">Suppliers</h3>\n <mat-icon\n color=\"primary\"\n class=\"cursor-pointer\"\n (click)=\"showAddSupplierDialog()\"\n >\n add\n </mat-icon>\n </div>\n <form\n [formGroup]=\"filterForm\"\n class=\"d-flex justify-content-end align-items-center gap-2\"\n >\n <mat-form-field>\n <mat-label>Search</mat-label>\n <input\n matInput\n placeholder=\"Search Supplier by Name, Phone, Address, Email, Description\"\n formControlName=\"search\"\n />\n <mat-icon matSuffix>search</mat-icon>\n </mat-form-field>\n <mat-form-field>\n <mat-label>Type</mat-label>\n <app-searchable-selector\n apiUrl=\"api/supplier-types\"\n formControlName=\"supplier_type_ids\"\n [multiple]=\"true\"\n >\n </app-searchable-selector>\n </mat-form-field>\n </form>\n </mat-card-content>\n</mat-card>\n<mat-card>\n <mat-card-content class=\"p-0\">\n <table\n mat-table\n #table\n [dataSource]=\"models\"\n class=\"w-100 table-hover\"\n infiniteScroll\n [infiniteScrollDistance]=\"2\"\n [infiniteScrollThrottle]=\"50\"\n (scrolled)=\"onScroll()\"\n [fromRoot]=\"true\"\n matSort\n (matSortChange)=\"sortColumn($event)\"\n aria-describedby=\"Suppliers List\"\n >\n <ng-container matColumnDef=\"#\">\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 <ng-container matColumnDef=\"company_name\">\n <th mat-header-cell *matHeaderCellDef mat-sort-header>Name</th>\n <td mat-cell *matCellDef=\"let element\">\n {{ element?.company_name }}\n </td>\n </ng-container>\n\n <ng-container matColumnDef=\"type\">\n <th mat-header-cell *matHeaderCellDef>Type</th>\n <td mat-cell *matCellDef=\"let element\">\n {{ element?.type?.title }}\n </td>\n </ng-container>\n\n <ng-container matColumnDef=\"contact_name\">\n <th mat-header-cell *matHeaderCellDef>Contact</th>\n <td mat-cell *matCellDef=\"let element\">\n {{ element?.contact_name }}\n </td>\n </ng-container>\n\n <ng-container matColumnDef=\"phone\">\n <th mat-header-cell *matHeaderCellDef mat-sort-header>Phone</th>\n <td mat-cell *matCellDef=\"let element\">{{ element?.phone }}</td>\n </ng-container>\n\n <ng-container matColumnDef=\"address\">\n <th mat-header-cell *matHeaderCellDef>Address</th>\n <td mat-cell *matCellDef=\"let element\">{{ element?.address }}</td>\n </ng-container>\n\n <ng-container matColumnDef=\"email\">\n <th mat-header-cell *matHeaderCellDef mat-sort-header>Email</th>\n <td mat-cell *matCellDef=\"let element\">{{ element?.email }}</td>\n </ng-container>\n\n <ng-container matColumnDef=\"details\">\n <th mat-header-cell *matHeaderCellDef>Details</th>\n <td mat-cell *matCellDef=\"let element\">{{ element?.details }}</td>\n </ng-container>\n\n <ng-container matColumnDef=\"actions\">\n <th mat-header-cell *matHeaderCellDef>Actions</th>\n <td mat-cell *matCellDef=\"let element\">\n <div class=\"text-secondary d-flex justify-content-start align-items-center gap-2\">\n <a\n class=\"text-decoration-none text-dark mt-2\"\n [routerLink]=\"['/suppliers', element.id, 'view']\"\n routerLinkActive=\"route-link-active\"\n *ngxPermissionsOnly=\"['supplier.read']\"\n >\n <mat-icon matTooltip=\"View\">remove_red_eye</mat-icon>\n </a>\n <mat-icon\n *ngxPermissionsOnly=\"['supplier.update']\"\n class=\"cursor-pointer\"\n (click)=\"editForm(element)\"\n >\n edit\n </mat-icon>\n <mat-icon\n class=\"cursor-pointer\"\n *ngxPermissionsOnly=\"['supplier.delete']\"\n (click)=\"deleteForm(element)\"\n >\n delete\n </mat-icon>\n <app-audit-log-for-model\n [modelId]=\"element?.id\"\n modelType=\"Supplier\"\n logView=\"all\"\n ></app-audit-log-for-model>\n </div>\n </td>\n </ng-container>\n\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns; sticky: true\"></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" }]
385
+ }], ctorParameters: () => [{ type: i3$2.NgxSpinnerService }, { type: i2$1.FormBuilder }, { type: SupplierService }, { type: i1$1.ErrorHandlerService }, { type: i1$1.FilterService }, { type: i2.ActivatedRoute }, { type: i1$1.AlertService }, { type: i1.MatDialog }, { type: SupplierFormService }, { type: i1$1.RequestHelperService }] });
446
386
 
447
387
  const routes = [
448
388
  {
@@ -626,7 +566,8 @@ class SupplierModule {
626
566
  NoteModule,
627
567
  FlexModule,
628
568
  ReactiveFormsModule,
629
- InfiniteScrollModule] });
569
+ InfiniteScrollModule,
570
+ NgxPermissionsModule] });
630
571
  static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SupplierModule, imports: [CommonModule,
631
572
  SupplierRoutingModule,
632
573
  MaterialModule,
@@ -635,7 +576,8 @@ class SupplierModule {
635
576
  NoteModule,
636
577
  FlexModule,
637
578
  ReactiveFormsModule,
638
- InfiniteScrollModule] });
579
+ InfiniteScrollModule,
580
+ NgxPermissionsModule] });
639
581
  }
640
582
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SupplierModule, decorators: [{
641
583
  type: NgModule,
@@ -657,9 +599,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
657
599
  FlexModule,
658
600
  ReactiveFormsModule,
659
601
  InfiniteScrollModule,
602
+ NgxPermissionsModule,
660
603
  ],
661
604
  }]
662
605
  }] });
663
606
 
664
607
  export { SupplierModule };
665
- //# sourceMappingURL=techlify-inventory-common-supplier.module-gzHesNtQ.mjs.map
608
+ //# sourceMappingURL=techlify-inventory-common-supplier.module-Bwa7gx14.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"techlify-inventory-common-supplier.module-Bwa7gx14.mjs","sources":["../../../projects/inventory-common/src/lib/inventory-common/supplier/supplier-information/supplier-information.component.ts","../../../projects/inventory-common/src/lib/inventory-common/supplier/supplier-information/supplier-information.component.html","../../../projects/inventory-common/src/lib/inventory-common/supplier/supplier-view/supplier-view.component.ts","../../../projects/inventory-common/src/lib/inventory-common/supplier/supplier-view/supplier-view.component.html","../../../projects/inventory-common/src/lib/inventory-common/supplier/supplier-form/supplier-form.service.ts","../../../projects/inventory-common/src/lib/inventory-common/supplier/supplier.component.ts","../../../projects/inventory-common/src/lib/inventory-common/supplier/supplier.component.html","../../../projects/inventory-common/src/lib/inventory-common/supplier/suppliers-list/suppliers-list.component.ts","../../../projects/inventory-common/src/lib/inventory-common/supplier/suppliers-list/suppliers-list.component.html","../../../projects/inventory-common/src/lib/inventory-common/supplier/supplier-routing.module.ts","../../../projects/inventory-common/src/lib/inventory-common/material.module.ts","../../../projects/inventory-common/src/lib/inventory-common/supplier/supplier.module.ts"],"sourcesContent":["import { Component, Input } from \"@angular/core\";\nimport {\n ActionPopup,\n ActionPopupComponent,\n AlertService,\n ErrorHandlerService,\n} from \"ngx-techlify-core\";\nimport { SupplierFormComponent } from \"../supplier-form/supplier-form.component\";\nimport { MatDialog } from \"@angular/material/dialog\";\nimport { SupplierService } from \"../supplier.service\";\nimport { Router } from \"@angular/router\";\n\n@Component({\n selector: \"app-supplier-information\",\n templateUrl: \"./supplier-information.component.html\",\n})\nexport class SupplierInformationComponent {\n @Input() supplier!: any;\n\n constructor(\n private dialog: MatDialog,\n private supplierService: SupplierService,\n private alertService: AlertService,\n private router: Router,\n private errorService: ErrorHandlerService\n ) {}\n\n modifySupplier(model?: any) {\n const dialogRef = this.dialog.open(SupplierFormComponent, {\n width: \"600px\",\n data: {\n details: model,\n },\n });\n dialogRef.afterClosed().subscribe((result: any) => {\n if (result) {\n location.reload();\n }\n });\n }\n\n deleteSupplier(id: any) {\n const dialogRef = this.dialog.open(ActionPopupComponent, {\n width: \"400px\",\n data: <ActionPopup>{\n title: \"Delete Supplier\",\n message: \"Are you sure you want to delete this supplier?\",\n },\n autoFocus: false,\n });\n\n dialogRef.afterClosed().subscribe(async (result: any) => {\n if (result) {\n try {\n const result = await this.supplierService.destroy(id);\n this.alertService.addAlert(\n \"Successfully Deleted Supplier\",\n \"success\"\n );\n } catch (error) {\n this.errorService.handleError(error);\n } finally {\n this.router.navigateByUrl(\"/suppliers\");\n }\n }\n });\n }\n}\n","<mat-card>\n <mat-card-content>\n <div class=\"d-flex justify-content-between align-items-center\">\n <h3 class=\"mb-0\">Personal Information</h3>\n <div class=\"d-flex justify-content-end align-items-center gap-1\">\n <app-audit-log-for-model\n [modelId]=\"supplier?.id\"\n modelType=\"Supplier\"\n logView=\"all\"\n ></app-audit-log-for-model>\n <mat-icon\n class=\"material-icons cursor-pointer\"\n (click)=\"modifySupplier(supplier)\"\n >\n edit\n </mat-icon>\n <mat-icon\n class=\"material-icons cursor-pointer\"\n (click)=\"deleteSupplier(supplier)\"\n >\n delete\n </mat-icon>\n </div>\n </div>\n\n <mat-divider></mat-divider>\n\n <div class=\"mt-2\">\n <div class=\"d-flex justify-content-start gap-2\">\n <div>\n <h3 class=\"mb-0\">{{ supplier?.company_name }}</h3>\n <span class=\"status-pill-sm status-light-orange\">{{\n supplier?.type?.title\n }}</span>\n </div>\n </div>\n </div>\n\n <div class=\"row mt-3\">\n <div class=\"col-6\">\n <p class=\"text-muted mb-0\">Contact Name</p>\n <p class=\"text-wrap\">{{ supplier?.contact_name }}</p>\n </div>\n <div class=\"col-6\">\n <p class=\"text-muted mb-0\">Email</p>\n <p class=\"text-wrap\">{{ supplier?.email }}</p>\n </div>\n <div class=\"col-6\">\n <p class=\"text-muted mb-0\">Phone</p>\n <p class=\"text-wrap\">{{ supplier?.phone }}</p>\n </div>\n <div class=\"col-6\">\n <p class=\"text-muted mb-0\">Details</p>\n <p class=\"text-wrap\">{{ supplier?.details }}</p>\n </div>\n </div>\n\n <div class=\"row mt-2 h-100\">\n <div class=\"d-flex\">\n <mat-icon class=\"material-icons text-primary my-auto\"\n >location_on</mat-icon\n >\n <p class=\"ms-2 my-auto\">{{ supplier?.address }}</p>\n </div>\n </div>\n </mat-card-content>\n</mat-card>\n","import { lastValueFrom } from \"rxjs\";\nimport { Component, OnInit } from \"@angular/core\";\nimport { ActivatedRoute, Router } from \"@angular/router\";\nimport { SupplierService } from \"../supplier.service\";\nimport { MatTabChangeEvent } from \"@angular/material/tabs\";\n\n@Component({\n selector: \"app-supplier-view\",\n templateUrl: \"./supplier-view.component.html\",\n})\nexport class SupplierViewComponent implements OnInit {\n supplier: any;\n supplierId: number = 0;\n selectedTabIndex: number = 0;\n isLoading: boolean = false;\n\n constructor(\n private supplierService: SupplierService,\n private route: ActivatedRoute,\n private router: Router\n ) {}\n\n ngOnInit(): void {\n this.route.firstChild?.url.subscribe((url) => {\n if (url[0].path === \"ratings\") {\n this.selectedTabIndex = 1;\n } else if (url[0].path === \"estimates\") {\n this.selectedTabIndex = 2;\n } else {\n this.selectedTabIndex = 0;\n }\n });\n\n this.supplierId = this.route.snapshot.params[\"id\"];\n this.getSupplier(this.supplierId);\n }\n\n onTabChange(event: MatTabChangeEvent) {\n switch (event.index) {\n case 0:\n this.router.navigate([\"incidents\"], { relativeTo: this.route });\n return;\n case 1:\n this.router.navigate([\"ratings\"], { relativeTo: this.route });\n return;\n case 2:\n this.router.navigate([\"estimates\"], { relativeTo: this.route });\n return;\n }\n }\n\n async getSupplier(id: number) {\n this.isLoading = true;\n let result: any = await lastValueFrom(this.supplierService.show(id));\n this.isLoading = false;\n this.supplier = result.item;\n }\n}\n","<mat-progress-bar *ngIf=\"isLoading\" mode=\"indeterminate\"></mat-progress-bar>\n\n<div *ngIf=\"supplier\" class=\"d-flex justify-content-start gap-3\">\n <div style=\"width: 300px\">\n <app-supplier-information [supplier]=\"supplier\"></app-supplier-information>\n <mat-card class=\"mt-3\">\n <mat-card-content class=\"p-0\">\n <app-note-list\n modelType=\"Supplier\"\n [relatedModelId]=\"supplier?.id\"\n ></app-note-list>\n </mat-card-content>\n </mat-card>\n </div>\n\n <div style=\"width: calc(100% - 300px - 1rem)\">\n <mat-card style=\"width: fit-content\">\n <mat-card-content class=\"p-0\">\n <mat-tab-group\n mat-stretch-tabs=\"false\"\n mat-align-tabs=\"start\"\n [selectedIndex]=\"selectedTabIndex\"\n (selectedTabChange)=\"onTabChange($event)\"\n >\n <mat-tab>\n <ng-template mat-tab-label>\n <div\n class=\"d-flex justify-content-start align-items-center gap-1\"\n >\n <span class=\"material-symbols-outlined\">unknown_document</span>\n <span class=\"pl-2\">Incidents</span>\n </div>\n </ng-template>\n </mat-tab>\n <mat-tab>\n <ng-template mat-tab-label>\n <div\n class=\"d-flex justify-content-start align-items-center gap-1\"\n >\n <span class=\"material-symbols-outlined\">star</span>\n <span class=\"pl-2\">Ratings</span>\n </div>\n </ng-template>\n </mat-tab>\n <mat-tab>\n <ng-template mat-tab-label>\n <div\n class=\"d-flex justify-content-start align-items-center gap-1\"\n >\n <span class=\"material-symbols-outlined\">price_change</span>\n <span class=\"pl-2\">Estimates</span>\n </div>\n </ng-template>\n </mat-tab>\n </mat-tab-group>\n </mat-card-content>\n </mat-card>\n <router-outlet></router-outlet>\n </div>\n</div>\n","import { Injectable } from \"@angular/core\";\nimport TechlifyFormService from '../../services/techlify-form-service';\n\n@Injectable({\n providedIn: \"root\",\n})\nexport class SupplierFormService extends TechlifyFormService {\n constructor() {\n super();\n }\n}\n","import { Component } from \"@angular/core\";\nimport { SupplierFormComponent } from \"./supplier-form/supplier-form.component\";\nimport { MatDialog } from \"@angular/material/dialog\";\nimport { SupplierFormService } from \"./supplier-form/supplier-form.service\";\n\n@Component({\n selector: \"app-supplier\",\n templateUrl: \"./supplier.component.html\",\n styleUrls: [\"./supplier.component.scss\"],\n})\nexport class SupplierComponent {\n constructor(\n public dialog: MatDialog,\n private supplierFormService: SupplierFormService\n ) {}\n}\n","<div>\n <router-outlet></router-outlet>\n</div>\n","import { Component, OnInit } from '@angular/core';\nimport { FormBuilder, FormGroup } from '@angular/forms';\nimport { MatDialog } from '@angular/material/dialog';\nimport { ActivatedRoute } from '@angular/router';\nimport { UntilDestroy, untilDestroyed } from '@ngneat/until-destroy';\nimport { NgxSpinnerService } from 'ngx-spinner';\nimport {\n ActionPopup,\n ActionPopupComponent,\n AlertService,\n ErrorHandlerService,\n FilterService,\n RequestHelperService,\n TechlifyListingControllerInterface,\n} from 'ngx-techlify-core';\nimport { debounceTime, distinctUntilChanged, lastValueFrom } from 'rxjs';\nimport { SupplierFormComponent } from '../supplier-form/supplier-form.component';\nimport { SupplierService } from '../supplier.service';\nimport { SupplierFormService } from '../supplier-form/supplier-form.service';\n\n@UntilDestroy()\n@Component({\n selector: 'app-suppliers-list',\n templateUrl: './suppliers-list.component.html',\n})\nexport class SuppliersListComponent extends TechlifyListingControllerInterface implements OnInit {\n displayedColumns: string[] = [\n '#',\n 'company_name',\n 'type',\n 'contact_name',\n 'phone',\n 'address',\n 'email',\n 'details',\n 'actions',\n ];\n\n constructor(\n private spinner: NgxSpinnerService,\n private fb: FormBuilder,\n private supplierService: SupplierService,\n private errorHandler: ErrorHandlerService,\n private filterService: FilterService,\n private activatedRoute: ActivatedRoute,\n private alertService: AlertService,\n private dialog: MatDialog,\n private supplierFormService: SupplierFormService,\n private requestHelperService: RequestHelperService\n ) {\n super();\n this.page = 1;\n this.perPage = 25;\n this.models = [];\n this.filterForm = this.fb.group({\n search: [''],\n supplier_type_ids: [''],\n sort_by: ['created_at|desc'],\n });\n }\n\n ngOnInit(): void {\n this.updateFormWithQueryParams();\n this.subscribeToFormChanges();\n this.subscribeToRouteChanges();\n }\n\n override listenForChanges() {\n // listen for supplier added event to update the list.\n this.supplierFormService.isListUpdated().subscribe((val: boolean) => {\n if (val && !this.isWorking) this.reload();\n });\n // listen for form group changes.\n this.filterForm.valueChanges.pipe(debounceTime(500), untilDestroyed(this)).subscribe(() => {\n this.filterService.applyFilterToRoute(this.activatedRoute, this.filterForm.value);\n this.reload();\n });\n }\n\n sortColumn(event: any) {\n var direction = event.direction.toString().toUpperCase();\n this.assignFilter(event.active, direction);\n }\n\n assignFilter(column: any, direction: any) {\n return this.filterForm.get('sort_by')?.setValue(column + '|' + direction);\n }\n\n async loadData() {\n let filters = { ...this.requestHelperService.convertToFormData(this.filterForm.value) };\n filters.page = this.page = 1;\n filters.perPage = this.perPage;\n try {\n this.isWorking = true;\n let res: any = await lastValueFrom(this.supplierService.index(filters));\n this.models = this.models?.concat(res?.data);\n this.lastPage = res.last_page;\n // list is updated do not listen form isListUpdated\n this.supplierFormService.listUpdated(false);\n } catch (error) {\n this.errorHandler.handleError(error);\n } finally {\n this.isWorking = false;\n }\n }\n\n editForm(model?: any): void {\n const dialogRef = this.dialog.open(SupplierFormComponent, {\n width: '400px',\n autoFocus: false,\n data: {\n details: model,\n },\n });\n\n dialogRef.afterClosed().subscribe((result: any) => {\n if (result) {\n this.reload();\n }\n });\n }\n\n deleteForm(supplier: any): void {\n const dialogRef = this.dialog.open(ActionPopupComponent, {\n width: '400px',\n data: <ActionPopup>{\n title: 'Delete Supplier',\n message: 'Are you sure you want to delete the Supplier?',\n },\n autoFocus: false,\n });\n\n dialogRef.afterClosed().subscribe(async (result) => {\n if (result) {\n this.spinner.show();\n try {\n const result = await lastValueFrom(this.supplierService.destroy(supplier.id));\n this.alertService.addAlert('Successfully deleted the Supplier', 'success');\n this.reload();\n } catch (error) {\n this.errorHandler.handleError(error);\n } finally {\n this.spinner.hide();\n }\n }\n });\n }\n\n /**\n * Show the supplier create form.\n *\n * @param model\n */\n showAddSupplierDialog(model?: any) {\n const dialogRef = this.dialog.open(SupplierFormComponent, {\n width: '400px',\n autoFocus: false,\n data: {\n model,\n },\n });\n\n dialogRef.afterClosed().subscribe((result: any) => {\n if (result) {\n // record added successfully, inform the list component.\n this.supplierFormService.listUpdated(true);\n }\n });\n }\n\n private updateFormWithQueryParams(): void {\n this.requestHelperService.updateFormWithQueryParams(this.filterForm, {\n supplier_type_ids: { multiple: true },\n });\n }\n\n private subscribeToFormChanges(): void {\n (this.filterForm as FormGroup).valueChanges.pipe(debounceTime(800)).subscribe({\n next: () => {\n this.requestHelperService.updateQueryParams(this.requestHelperService.convertToFormData(this.filterForm.value));\n },\n });\n }\n\n private subscribeToRouteChanges(): void {\n this.activatedRoute.queryParams.pipe(debounceTime(500), distinctUntilChanged()).subscribe(() => {\n this.reload();\n });\n }\n}\n","<mat-card class=\"mb-3\">\n <mat-card-content class=\"d-flex justify-content-between align-items-center gap-3\">\n <div class=\"d-flex justify-content-start align-items-center gap-3\">\n <h3 class=\"mb-0\">Suppliers</h3>\n <mat-icon\n color=\"primary\"\n class=\"cursor-pointer\"\n (click)=\"showAddSupplierDialog()\"\n >\n add\n </mat-icon>\n </div>\n <form\n [formGroup]=\"filterForm\"\n class=\"d-flex justify-content-end align-items-center gap-2\"\n >\n <mat-form-field>\n <mat-label>Search</mat-label>\n <input\n matInput\n placeholder=\"Search Supplier by Name, Phone, Address, Email, Description\"\n formControlName=\"search\"\n />\n <mat-icon matSuffix>search</mat-icon>\n </mat-form-field>\n <mat-form-field>\n <mat-label>Type</mat-label>\n <app-searchable-selector\n apiUrl=\"api/supplier-types\"\n formControlName=\"supplier_type_ids\"\n [multiple]=\"true\"\n >\n </app-searchable-selector>\n </mat-form-field>\n </form>\n </mat-card-content>\n</mat-card>\n<mat-card>\n <mat-card-content class=\"p-0\">\n <table\n mat-table\n #table\n [dataSource]=\"models\"\n class=\"w-100 table-hover\"\n infiniteScroll\n [infiniteScrollDistance]=\"2\"\n [infiniteScrollThrottle]=\"50\"\n (scrolled)=\"onScroll()\"\n [fromRoot]=\"true\"\n matSort\n (matSortChange)=\"sortColumn($event)\"\n aria-describedby=\"Suppliers List\"\n >\n <ng-container matColumnDef=\"#\">\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 <ng-container matColumnDef=\"company_name\">\n <th mat-header-cell *matHeaderCellDef mat-sort-header>Name</th>\n <td mat-cell *matCellDef=\"let element\">\n {{ element?.company_name }}\n </td>\n </ng-container>\n\n <ng-container matColumnDef=\"type\">\n <th mat-header-cell *matHeaderCellDef>Type</th>\n <td mat-cell *matCellDef=\"let element\">\n {{ element?.type?.title }}\n </td>\n </ng-container>\n\n <ng-container matColumnDef=\"contact_name\">\n <th mat-header-cell *matHeaderCellDef>Contact</th>\n <td mat-cell *matCellDef=\"let element\">\n {{ element?.contact_name }}\n </td>\n </ng-container>\n\n <ng-container matColumnDef=\"phone\">\n <th mat-header-cell *matHeaderCellDef mat-sort-header>Phone</th>\n <td mat-cell *matCellDef=\"let element\">{{ element?.phone }}</td>\n </ng-container>\n\n <ng-container matColumnDef=\"address\">\n <th mat-header-cell *matHeaderCellDef>Address</th>\n <td mat-cell *matCellDef=\"let element\">{{ element?.address }}</td>\n </ng-container>\n\n <ng-container matColumnDef=\"email\">\n <th mat-header-cell *matHeaderCellDef mat-sort-header>Email</th>\n <td mat-cell *matCellDef=\"let element\">{{ element?.email }}</td>\n </ng-container>\n\n <ng-container matColumnDef=\"details\">\n <th mat-header-cell *matHeaderCellDef>Details</th>\n <td mat-cell *matCellDef=\"let element\">{{ element?.details }}</td>\n </ng-container>\n\n <ng-container matColumnDef=\"actions\">\n <th mat-header-cell *matHeaderCellDef>Actions</th>\n <td mat-cell *matCellDef=\"let element\">\n <div class=\"text-secondary d-flex justify-content-start align-items-center gap-2\">\n <a\n class=\"text-decoration-none text-dark mt-2\"\n [routerLink]=\"['/suppliers', element.id, 'view']\"\n routerLinkActive=\"route-link-active\"\n *ngxPermissionsOnly=\"['supplier.read']\"\n >\n <mat-icon matTooltip=\"View\">remove_red_eye</mat-icon>\n </a>\n <mat-icon\n *ngxPermissionsOnly=\"['supplier.update']\"\n class=\"cursor-pointer\"\n (click)=\"editForm(element)\"\n >\n edit\n </mat-icon>\n <mat-icon\n class=\"cursor-pointer\"\n *ngxPermissionsOnly=\"['supplier.delete']\"\n (click)=\"deleteForm(element)\"\n >\n delete\n </mat-icon>\n <app-audit-log-for-model\n [modelId]=\"element?.id\"\n modelType=\"Supplier\"\n logView=\"all\"\n ></app-audit-log-for-model>\n </div>\n </td>\n </ng-container>\n\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns; sticky: true\"></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","import { SupplierViewComponent } from \"./supplier-view/supplier-view.component\";\nimport { NgModule } from \"@angular/core\";\nimport { RouterModule, Routes } from \"@angular/router\";\nimport { SupplierComponent } from \"./supplier.component\";\nimport { SuppliersListComponent } from \"./suppliers-list/suppliers-list.component\";\n\nconst routes: Routes = [\n {\n path: \"\",\n component: SupplierComponent,\n children: [\n { path: \"\", component: SuppliersListComponent },\n {\n path: \":id/view\",\n component: SupplierViewComponent,\n children: [\n {\n path: \"\",\n redirectTo: \"incidents\",\n pathMatch: \"full\",\n },\n ],\n },\n ],\n },\n];\n\n@NgModule({\n imports: [RouterModule.forChild(routes)],\n exports: [RouterModule],\n})\nexport class SupplierRoutingModule {}\n","/*\n * This module imports and re-exports all Angular Material modules for convenience,\n * so only 1 module import is needed in your feature modules.\n * See https://material.angular.io/guide/getting-started#step-3-import-the-component-modules.\n *\n * To optimize your production builds, you should only import the components used in your app.\n */\n\nimport { NgModule } from \"@angular/core\";\nimport {\n MatCommonModule,\n MatLineModule,\n MatNativeDateModule,\n MatPseudoCheckboxModule,\n MatRippleModule,\n} from \"@angular/material/core\";\nimport { MatOptionModule } from \"@angular/material/core\";\nimport { MatAutocompleteModule } from \"@angular/material/autocomplete\";\nimport { MatBadgeModule } from \"@angular/material/badge\";\nimport { MatButtonModule } from \"@angular/material/button\";\nimport { MatButtonToggleModule } from \"@angular/material/button-toggle\";\nimport { MatCardModule } from \"@angular/material/card\";\nimport { MatCheckboxModule } from \"@angular/material/checkbox\";\nimport { MatChipsModule } from \"@angular/material/chips\";\nimport { MatDatepickerModule } from \"@angular/material/datepicker\";\nimport { MatDialogModule } from \"@angular/material/dialog\";\nimport { MatDividerModule } from \"@angular/material/divider\";\nimport { MatExpansionModule } from \"@angular/material/expansion\";\nimport { MatFormFieldModule } from \"@angular/material/form-field\";\nimport { MatGridListModule } from \"@angular/material/grid-list\";\nimport { MatIconModule } from \"@angular/material/icon\";\nimport { MatInputModule } from \"@angular/material/input\";\nimport { MatListModule } from \"@angular/material/list\";\nimport { MatMenuModule } from \"@angular/material/menu\";\nimport { MatPaginatorModule } from \"@angular/material/paginator\";\nimport { MatProgressBarModule } from \"@angular/material/progress-bar\";\nimport { MatProgressSpinnerModule } from \"@angular/material/progress-spinner\";\nimport { MatRadioModule } from \"@angular/material/radio\";\nimport { MatSelectModule } from \"@angular/material/select\";\nimport { MatSidenavModule } from \"@angular/material/sidenav\";\nimport { MatSlideToggleModule } from \"@angular/material/slide-toggle\";\nimport { MatSliderModule } from \"@angular/material/slider\";\nimport { MatSnackBarModule } from \"@angular/material/snack-bar\";\nimport { MatSortModule } from \"@angular/material/sort\";\nimport { MatStepperModule } from \"@angular/material/stepper\";\nimport { MatTableModule } from \"@angular/material/table\";\nimport { MatTabsModule } from \"@angular/material/tabs\";\nimport { MatToolbarModule } from \"@angular/material/toolbar\";\nimport { MatTooltipModule } from \"@angular/material/tooltip\";\nimport { MatTreeModule } from \"@angular/material/tree\";\n\n@NgModule({\n exports: [\n MatAutocompleteModule,\n MatBadgeModule,\n MatButtonModule,\n MatButtonToggleModule,\n MatCardModule,\n MatCheckboxModule,\n MatChipsModule,\n MatCommonModule,\n MatDatepickerModule,\n MatDialogModule,\n MatDividerModule,\n MatExpansionModule,\n MatFormFieldModule,\n MatGridListModule,\n MatIconModule,\n MatInputModule,\n MatLineModule,\n MatListModule,\n MatMenuModule,\n MatNativeDateModule,\n MatOptionModule,\n MatPaginatorModule,\n MatProgressBarModule,\n MatProgressSpinnerModule,\n MatPseudoCheckboxModule,\n MatRadioModule,\n MatRippleModule,\n MatSelectModule,\n MatSidenavModule,\n MatSlideToggleModule,\n MatSliderModule,\n MatSnackBarModule,\n MatSortModule,\n MatStepperModule,\n MatTableModule,\n MatTabsModule,\n MatToolbarModule,\n MatTooltipModule,\n MatTreeModule,\n ],\n})\nexport class MaterialModule {}\n","import {\n AuditLogForModelModule,\n NoteModule,\n SearchableSelectorModule,\n} from \"ngx-techlify-core\";\nimport { NgModule } from \"@angular/core\";\nimport { CommonModule } from \"@angular/common\";\n\nimport { SupplierRoutingModule } from \"./supplier-routing.module\";\nimport { SupplierComponent } from \"./supplier.component\";\nimport { SupplierViewComponent } from \"./supplier-view/supplier-view.component\";\nimport { SuppliersListComponent } from \"./suppliers-list/suppliers-list.component\";\nimport { SupplierFormComponent } from \"./supplier-form/supplier-form.component\";\nimport { SupplierInformationComponent } from \"./supplier-information/supplier-information.component\";\nimport { FlexModule } from \"@angular/flex-layout\";\nimport { ReactiveFormsModule } from \"@angular/forms\";\nimport { InfiniteScrollModule } from \"ngx-infinite-scroll\";\nimport { MaterialModule } from '../material.module';\nimport { NgxPermissionsModule } from 'ngx-permissions';\n\n@NgModule({\n declarations: [\n SupplierComponent,\n SupplierViewComponent,\n SuppliersListComponent,\n SupplierFormComponent,\n SupplierInformationComponent,\n ],\n imports: [\n CommonModule,\n SupplierRoutingModule,\n MaterialModule,\n SearchableSelectorModule,\n AuditLogForModelModule,\n NoteModule,\n FlexModule,\n ReactiveFormsModule,\n InfiniteScrollModule,\n NgxPermissionsModule,\n ],\n})\nexport class SupplierModule {}\n"],"names":["i2.SupplierService","i3","i4","i5","i7","i1.SupplierService","i6","i8.SupplierInformationComponent","i2.SupplierFormService","i1","i2","i3.SupplierService","i7.SupplierFormService","i8","i9","i10","i11","i12","i13","i14","i15","i16","i17"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAgBa,4BAA4B,CAAA;AAI7B,IAAA,MAAA;AACA,IAAA,eAAA;AACA,IAAA,YAAA;AACA,IAAA,MAAA;AACA,IAAA,YAAA;AAPD,IAAA,QAAQ;IAEjB,WACU,CAAA,MAAiB,EACjB,eAAgC,EAChC,YAA0B,EAC1B,MAAc,EACd,YAAiC,EAAA;QAJjC,IAAM,CAAA,MAAA,GAAN,MAAM;QACN,IAAe,CAAA,eAAA,GAAf,eAAe;QACf,IAAY,CAAA,YAAA,GAAZ,YAAY;QACZ,IAAM,CAAA,MAAA,GAAN,MAAM;QACN,IAAY,CAAA,YAAA,GAAZ,YAAY;;AAGtB,IAAA,cAAc,CAAC,KAAW,EAAA;QACxB,MAAM,SAAS,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,qBAAqB,EAAE;AACxD,YAAA,KAAK,EAAE,OAAO;AACd,YAAA,IAAI,EAAE;AACJ,gBAAA,OAAO,EAAE,KAAK;AACf,aAAA;AACF,SAAA,CAAC;QACF,SAAS,CAAC,WAAW,EAAE,CAAC,SAAS,CAAC,CAAC,MAAW,KAAI;YAChD,IAAI,MAAM,EAAE;g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AA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE;wBACZ,iBAAiB;wBACjB,qBAAqB;wBACrB,sBAAsB;wBACtB,qBAAqB;wBACrB,4BAA4B;AAC7B,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,qBAAqB;wBACrB,cAAc;wBACd,wBAAwB;wBACxB,sBAAsB;wBACtB,UAAU;wBACV,UAAU;wBACV,mBAAmB;wBACnB,oBAAoB;wBACpB,oBAAoB;AACrB,qBAAA;AACF,iBAAA;;;;;"}
@@ -201,27 +201,27 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
201
201
  const routes = [
202
202
  {
203
203
  path: "suppliers",
204
- loadChildren: () => import('./techlify-inventory-common-supplier.module-gzHesNtQ.mjs').then((m) => m.SupplierModule),
204
+ loadChildren: () => import('./techlify-inventory-common-supplier.module-Bwa7gx14.mjs').then((m) => m.SupplierModule),
205
205
  },
206
206
  {
207
207
  path: "measures",
208
- loadChildren: () => import('./techlify-inventory-common-measure.module-CirswKXn.mjs').then((mod) => mod.MeasureModule),
208
+ loadChildren: () => import('./techlify-inventory-common-measure.module-BEaRHh5Z.mjs').then((mod) => mod.MeasureModule),
209
209
  },
210
210
  {
211
211
  path: "stock-issuances",
212
- loadChildren: () => import('./techlify-inventory-common-stock-issuances.module-Dm9i2kcf.mjs').then((mod) => mod.StockIssuancesModule),
212
+ loadChildren: () => import('./techlify-inventory-common-stock-issuances.module-BQRRP-hW.mjs').then((mod) => mod.StockIssuancesModule),
213
213
  },
214
214
  {
215
215
  path: "stock-receipts",
216
- loadChildren: () => import('./techlify-inventory-common-stock-receipts.module-CUPdWteR.mjs').then(function (n) { return n.s; }).then((mod) => mod.StockReceiptsModule),
216
+ loadChildren: () => import('./techlify-inventory-common-stock-receipts.module-BvYaKITT.mjs').then(function (n) { return n.s; }).then((mod) => mod.StockReceiptsModule),
217
217
  },
218
218
  {
219
219
  path: "categories",
220
- loadChildren: () => import('./techlify-inventory-common-category.module-Stn6e73V.mjs').then((mod) => mod.CategoryModule),
220
+ loadChildren: () => import('./techlify-inventory-common-category.module-CNm2bEsx.mjs').then((mod) => mod.CategoryModule),
221
221
  },
222
222
  {
223
223
  path: "products",
224
- loadChildren: () => import('./techlify-inventory-common-product.module-qdeafFV5.mjs').then((mod) => mod.ProductModule),
224
+ loadChildren: () => import('./techlify-inventory-common-product.module-BV9Cy88x.mjs').then((mod) => mod.ProductModule),
225
225
  },
226
226
  {
227
227
  path: "dashboard",
@@ -492,4 +492,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
492
492
  */
493
493
 
494
494
  export { InventoryCommonRoutingModule as I, ProductService as P, StockSummaryService as S, TechlifyFilterComponent as T, TechlifyFilterModule as a, InventoryCommonModule as b };
495
- //# sourceMappingURL=techlify-inventory-common-techlify-inventory-common-Czyc0jLI.mjs.map
495
+ //# sourceMappingURL=techlify-inventory-common-techlify-inventory-common-GFYF7JCA.mjs.map