techlify-inventory-common 18.1.0 → 18.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/lib/inventory-common/category/category-form/category-form.component.mjs +12 -12
- package/esm2022/lib/inventory-common/category/category-form-button/category-form-button.component.mjs +5 -5
- package/esm2022/lib/inventory-common/category/category-list-page/category-list-page.component.mjs +22 -26
- package/esm2022/lib/inventory-common/category/category-routing.module.mjs +10 -5
- package/esm2022/lib/inventory-common/category/category-view/category-view.component.mjs +46 -0
- package/esm2022/lib/inventory-common/category/category.module.mjs +23 -24
- package/esm2022/lib/inventory-common/category/category.service.mjs +6 -6
- package/esm2022/lib/inventory-common/inventory-common-routing.module.mjs +32 -18
- package/esm2022/lib/inventory-common/inventory-common.module.mjs +13 -9
- package/esm2022/lib/inventory-common/inventory-dashboard-page/inventory-dashboard-page.component.mjs +12 -10
- package/esm2022/lib/inventory-common/inventory-value-report.service.mjs +21 -0
- package/esm2022/lib/inventory-common/location/location-delete-button/location-delete-button.component.mjs +68 -0
- package/esm2022/lib/inventory-common/location/location-form/location-form.component.mjs +86 -0
- package/esm2022/lib/inventory-common/location/location-form-button/location-form-button.component.mjs +35 -0
- package/esm2022/lib/inventory-common/location/location-information/location-information.component.mjs +34 -0
- package/esm2022/lib/inventory-common/location/location-list/location-list.component.mjs +121 -0
- package/esm2022/lib/inventory-common/location/location-product-statistics/location-product-statistics.component.mjs +127 -0
- package/esm2022/lib/inventory-common/location/location-routing.module.mjs +29 -0
- package/esm2022/lib/inventory-common/location/location-view/location-view.component.mjs +53 -0
- package/esm2022/lib/inventory-common/location/location.module.mjs +22 -0
- package/esm2022/lib/inventory-common/location/location.service.mjs +23 -0
- package/esm2022/lib/inventory-common/low-stock-report.service.mjs +23 -0
- package/esm2022/lib/inventory-common/material.module.mjs +37 -37
- package/esm2022/lib/inventory-common/measure/measure-delete/measure-delete-button/measure-delete-button.component.mjs +4 -4
- package/esm2022/lib/inventory-common/measure/measure-delete/measure-delete.module.mjs +4 -4
- package/esm2022/lib/inventory-common/measure/measure-form/measure-form/measure-form.component.mjs +14 -14
- package/esm2022/lib/inventory-common/measure/measure-form/measure-form-button/measure-form-button.component.mjs +5 -5
- package/esm2022/lib/inventory-common/measure/measure-form/measure-form.module.mjs +6 -6
- package/esm2022/lib/inventory-common/measure/measure-routing.module.mjs +5 -5
- package/esm2022/lib/inventory-common/measure/measure.module.mjs +10 -10
- package/esm2022/lib/inventory-common/measure/measure.service.mjs +6 -6
- package/esm2022/lib/inventory-common/measure/measures-list/measures-list.component.mjs +12 -18
- package/esm2022/lib/inventory-common/product/low-stock-products-widget/low-stock-products-widget.component.mjs +13 -11
- package/esm2022/lib/inventory-common/product/low-stock-products-widget/low-stock-products-widget.module.mjs +10 -24
- package/esm2022/lib/inventory-common/product/product-basic-info/product-basic-info.component.mjs +5 -5
- package/esm2022/lib/inventory-common/product/product-batch-update-form/product-batch-update-form.component.mjs +56 -0
- package/esm2022/lib/inventory-common/product/product-delete-button/product-delete-button.component.mjs +6 -6
- package/esm2022/lib/inventory-common/product/product-form/product-form.component.mjs +43 -45
- package/esm2022/lib/inventory-common/product/product-form-button/product-form-button.component.mjs +5 -5
- package/esm2022/lib/inventory-common/product/product-form.service.mjs +4 -4
- package/esm2022/lib/inventory-common/product/product-import-page/product-import-page.component.mjs +32 -32
- package/esm2022/lib/inventory-common/product/product-list/product-list.component.mjs +65 -87
- package/esm2022/lib/inventory-common/product/product-location/product-location-list/product-location-list.component.mjs +56 -0
- package/esm2022/lib/inventory-common/product/product-measure-form/product-measure-form.component.mjs +12 -12
- package/esm2022/lib/inventory-common/product/product-measures-list/product-measures-list.component.mjs +22 -28
- package/esm2022/lib/inventory-common/product/product-nav-bar/product-nav-bar.component.mjs +3 -3
- package/esm2022/lib/inventory-common/product/product-quick-search/product-quick-search.component.mjs +92 -0
- package/esm2022/lib/inventory-common/product/product-routing.module.mjs +17 -17
- package/esm2022/lib/inventory-common/product/product-statistics.service.mjs +23 -0
- package/esm2022/lib/inventory-common/product/product-summary-chart/product-summary-chart.component.mjs +10 -16
- package/esm2022/lib/inventory-common/product/product-summary-chart/product-summary-chart.module.mjs +9 -20
- package/esm2022/lib/inventory-common/product/product-tax/product-tax-delete-button/product-tax-delete-button.component.mjs +6 -6
- package/esm2022/lib/inventory-common/product/product-tax/product-tax-form-button/product-tax-form-button.component.mjs +14 -14
- package/esm2022/lib/inventory-common/product/product-tax/product-tax-list/product-tax-list.component.mjs +6 -6
- package/esm2022/lib/inventory-common/product/product-tax/product-tax.module.mjs +9 -26
- package/esm2022/lib/inventory-common/product/product-tax/product-tax.service.mjs +6 -6
- package/esm2022/lib/inventory-common/product/product-view-page/product-view-page.component.mjs +9 -7
- package/esm2022/lib/inventory-common/product/product.module.mjs +37 -26
- package/esm2022/lib/inventory-common/product/product.service.mjs +7 -7
- package/esm2022/lib/inventory-common/product/widgets/product-category-badges/product-category-badges.component.mjs +15 -0
- package/esm2022/lib/inventory-common/product-batch.service.mjs +20 -0
- package/esm2022/lib/inventory-common/reports/inventory-value-report/inventory-value-report.component.mjs +168 -0
- package/esm2022/lib/inventory-common/reports/low-stock-report/low-stock-report.component.mjs +163 -0
- package/esm2022/lib/inventory-common/services/techlify-form-service.mjs +2 -2
- package/esm2022/lib/inventory-common/stock-issuances/stock-issuance-delete-button/stock-issuance-delete-button.component.mjs +6 -6
- package/esm2022/lib/inventory-common/stock-issuances/stock-issuance-delete-button/stock-issuance-delete-button.module.mjs +5 -5
- package/esm2022/lib/inventory-common/stock-issuances/stock-issuance.service.mjs +6 -6
- package/esm2022/lib/inventory-common/stock-issuances/stock-issuances-list/stock-issuances-list.component.mjs +84 -56
- package/esm2022/lib/inventory-common/stock-issuances/stock-issuances-list/stock-issuances-list.module.mjs +28 -12
- package/esm2022/lib/inventory-common/stock-issuances/stock-issuances-routing.module.mjs +5 -5
- package/esm2022/lib/inventory-common/stock-issuances/stock-issuances.module.mjs +14 -14
- package/esm2022/lib/inventory-common/stock-issuances/stock-issue-form/stock-issue-form/stock-issue-form.component.mjs +14 -14
- package/esm2022/lib/inventory-common/stock-issuances/stock-issue-form/stock-issue-form-button/stock-issue-form-button.component.mjs +5 -5
- package/esm2022/lib/inventory-common/stock-issuances/stock-issue-form/stock-issue-form.module.mjs +13 -13
- package/esm2022/lib/inventory-common/stock-receipts/stock-receipt-delete-button/stock-receipt-delete-button.component.mjs +6 -6
- package/esm2022/lib/inventory-common/stock-receipts/stock-receipt-form/stock-receipt-form/stock-receipt-form.component.mjs +18 -18
- package/esm2022/lib/inventory-common/stock-receipts/stock-receipt-form/stock-receipt-form-button/stock-receipt-form-button.component.mjs +5 -5
- package/esm2022/lib/inventory-common/stock-receipts/stock-receipt-form/stock-receipt-form.module.mjs +12 -12
- package/esm2022/lib/inventory-common/stock-receipts/stock-receipt.service.mjs +6 -6
- package/esm2022/lib/inventory-common/stock-receipts/stock-receipts-list-page/stock-receipts-list-page.component.mjs +82 -44
- package/esm2022/lib/inventory-common/stock-receipts/stock-receipts-routing.module.mjs +5 -5
- package/esm2022/lib/inventory-common/stock-receipts/stock-receipts.module.mjs +24 -22
- package/esm2022/lib/inventory-common/stock-summary.service.mjs +5 -5
- package/esm2022/lib/inventory-common/stock-transfer/stock-transfer-form/stock-transfer-form.component.mjs +105 -0
- package/esm2022/lib/inventory-common/stock-transfer/stock-transfer-form-button/stock-transfer-form-button.component.mjs +38 -0
- package/esm2022/lib/inventory-common/stock-transfer/stock-transfer-list/stock-transfer-list.component.mjs +77 -0
- package/esm2022/lib/inventory-common/stock-transfer/stock-transfer.service.mjs +18 -0
- package/esm2022/lib/inventory-common/supplier/payee-selector/payee-selector/payee-selector.component.mjs +9 -9
- package/esm2022/lib/inventory-common/supplier/payee-selector/payee-selector.module.mjs +10 -24
- package/esm2022/lib/inventory-common/supplier/supplier-delete-button/supplier-delete-button.component.mjs +64 -0
- package/esm2022/lib/inventory-common/supplier/supplier-form/supplier-form-button/supplier-form-button.component.mjs +43 -0
- package/esm2022/lib/inventory-common/supplier/supplier-form/supplier-form.component.mjs +24 -24
- package/esm2022/lib/inventory-common/supplier/supplier-form/supplier-form.service.mjs +4 -4
- package/esm2022/lib/inventory-common/supplier/supplier-information/supplier-information.component.mjs +16 -15
- package/esm2022/lib/inventory-common/supplier/supplier-routing.module.mjs +9 -16
- package/esm2022/lib/inventory-common/supplier/supplier-view/supplier-view.component.mjs +13 -14
- package/esm2022/lib/inventory-common/supplier/supplier.component.mjs +3 -3
- package/esm2022/lib/inventory-common/supplier/supplier.module.mjs +23 -15
- package/esm2022/lib/inventory-common/supplier/supplier.service.mjs +5 -5
- package/esm2022/lib/inventory-common/supplier/suppliers-list/suppliers-list.component.mjs +6 -65
- package/esm2022/lib/inventory-common/techlify-filter/techlify-filter.component.mjs +16 -18
- package/esm2022/lib/inventory-common/techlify-filter/techlify-filter.module.mjs +13 -9
- package/fesm2022/techlify-inventory-common-category.module-BsvJ6rVx.mjs +290 -0
- package/fesm2022/techlify-inventory-common-category.module-BsvJ6rVx.mjs.map +1 -0
- package/fesm2022/techlify-inventory-common-location.module-Cwx9mHKE.mjs +529 -0
- package/fesm2022/techlify-inventory-common-location.module-Cwx9mHKE.mjs.map +1 -0
- package/fesm2022/techlify-inventory-common-measure.module-C2v0-n_m.mjs +307 -0
- package/fesm2022/techlify-inventory-common-measure.module-C2v0-n_m.mjs.map +1 -0
- package/fesm2022/{techlify-inventory-common-stock-issuances.module-BQRRP-hW.mjs → techlify-inventory-common-stock-issuances.module-CPccetrp.mjs} +3 -5
- package/fesm2022/techlify-inventory-common-stock-issuances.module-CPccetrp.mjs.map +1 -0
- package/fesm2022/techlify-inventory-common-supplier.module-CYq-2pV1.mjs +464 -0
- package/fesm2022/techlify-inventory-common-supplier.module-CYq-2pV1.mjs.map +1 -0
- package/fesm2022/techlify-inventory-common-techlify-inventory-common-BMNkSTd6.mjs +3620 -0
- package/fesm2022/techlify-inventory-common-techlify-inventory-common-BMNkSTd6.mjs.map +1 -0
- package/fesm2022/techlify-inventory-common.mjs +1 -1
- package/lib/inventory-common/category/category-form/category-form.component.d.ts +4 -4
- package/lib/inventory-common/category/category-form-button/category-form-button.component.d.ts +2 -2
- package/lib/inventory-common/category/category-list-page/category-list-page.component.d.ts +4 -4
- package/lib/inventory-common/category/category-view/category-view.component.d.ts +16 -0
- package/lib/inventory-common/category/category.module.d.ts +12 -11
- package/lib/inventory-common/category/category.service.d.ts +1 -1
- package/lib/inventory-common/inventory-common.module.d.ts +2 -1
- package/lib/inventory-common/inventory-dashboard-page/inventory-dashboard-page.component.d.ts +1 -1
- package/lib/inventory-common/inventory-value-report.service.d.ts +9 -0
- package/lib/inventory-common/location/location-delete-button/location-delete-button.component.d.ts +28 -0
- package/lib/inventory-common/location/location-form/location-form.component.d.ts +19 -0
- package/lib/inventory-common/location/location-form-button/location-form-button.component.d.ts +13 -0
- package/lib/inventory-common/location/location-information/location-information.component.d.ts +10 -0
- package/lib/inventory-common/location/location-list/location-list.component.d.ts +20 -0
- package/lib/inventory-common/location/location-product-statistics/location-product-statistics.component.d.ts +21 -0
- package/lib/inventory-common/location/location-routing.module.d.ts +7 -0
- package/lib/inventory-common/location/location-view/location-view.component.d.ts +16 -0
- package/lib/inventory-common/location/location.module.d.ts +8 -0
- package/lib/inventory-common/location/location.service.d.ts +10 -0
- package/lib/inventory-common/low-stock-report.service.d.ts +10 -0
- package/lib/inventory-common/measure/measure-delete/measure-delete-button/measure-delete-button.component.d.ts +3 -3
- package/lib/inventory-common/measure/measure-form/measure-form/measure-form.component.d.ts +4 -4
- package/lib/inventory-common/measure/measure-form/measure-form-button/measure-form-button.component.d.ts +2 -2
- package/lib/inventory-common/measure/measure.service.d.ts +1 -1
- package/lib/inventory-common/measure/measures-list/measures-list.component.d.ts +5 -5
- package/lib/inventory-common/product/low-stock-products-widget/low-stock-products-widget.component.d.ts +3 -3
- package/lib/inventory-common/product/product-basic-info/product-basic-info.component.d.ts +2 -2
- package/lib/inventory-common/product/product-batch-update-form/product-batch-update-form.component.d.ts +18 -0
- package/lib/inventory-common/product/product-delete-button/product-delete-button.component.d.ts +4 -4
- package/lib/inventory-common/product/product-form/product-form.component.d.ts +6 -6
- package/lib/inventory-common/product/product-form-button/product-form-button.component.d.ts +3 -3
- package/lib/inventory-common/product/product-import-page/product-import-page.component.d.ts +2 -2
- package/lib/inventory-common/product/product-list/product-list.component.d.ts +15 -24
- package/lib/inventory-common/product/product-location/product-location-list/product-location-list.component.d.ts +15 -0
- package/lib/inventory-common/product/product-measure-form/product-measure-form.component.d.ts +6 -6
- package/lib/inventory-common/product/product-measures-list/product-measures-list.component.d.ts +7 -7
- package/lib/inventory-common/product/product-quick-search/product-quick-search.component.d.ts +15 -0
- package/lib/inventory-common/product/product-statistics.service.d.ts +9 -0
- package/lib/inventory-common/product/product-summary-chart/product-summary-chart.component.d.ts +1 -1
- package/lib/inventory-common/product/product-tax/product-tax-delete-button/product-tax-delete-button.component.d.ts +4 -4
- package/lib/inventory-common/product/product-tax/product-tax-form-button/product-tax-form-button.component.d.ts +5 -5
- package/lib/inventory-common/product/product-tax/product-tax-list/product-tax-list.component.d.ts +2 -2
- package/lib/inventory-common/product/product-tax/product-tax.service.d.ts +1 -1
- package/lib/inventory-common/product/product-view-page/product-view-page.component.d.ts +4 -4
- package/lib/inventory-common/product/product.module.d.ts +16 -13
- package/lib/inventory-common/product/product.service.d.ts +2 -2
- package/lib/inventory-common/product/widgets/product-category-badges/product-category-badges.component.d.ts +6 -0
- package/lib/inventory-common/product-batch.service.d.ts +8 -0
- package/lib/inventory-common/reports/inventory-value-report/inventory-value-report.component.d.ts +26 -0
- package/lib/inventory-common/reports/low-stock-report/low-stock-report.component.d.ts +26 -0
- package/lib/inventory-common/stock-issuances/stock-issuance-delete-button/stock-issuance-delete-button.component.d.ts +4 -4
- package/lib/inventory-common/stock-issuances/stock-issuance.service.d.ts +1 -1
- package/lib/inventory-common/stock-issuances/stock-issuances-list/stock-issuances-list.component.d.ts +16 -8
- package/lib/inventory-common/stock-issuances/stock-issuances-list/stock-issuances-list.module.d.ts +3 -1
- package/lib/inventory-common/stock-issuances/stock-issue-form/stock-issue-form/stock-issue-form.component.d.ts +4 -4
- package/lib/inventory-common/stock-issuances/stock-issue-form/stock-issue-form-button/stock-issue-form-button.component.d.ts +2 -2
- package/lib/inventory-common/stock-receipts/stock-receipt-delete-button/stock-receipt-delete-button.component.d.ts +4 -4
- package/lib/inventory-common/stock-receipts/stock-receipt-form/stock-receipt-form/stock-receipt-form.component.d.ts +4 -4
- package/lib/inventory-common/stock-receipts/stock-receipt-form/stock-receipt-form-button/stock-receipt-form-button.component.d.ts +2 -2
- package/lib/inventory-common/stock-receipts/stock-receipt.service.d.ts +1 -1
- package/lib/inventory-common/stock-receipts/stock-receipts-list-page/stock-receipts-list-page.component.d.ts +12 -4
- package/lib/inventory-common/stock-receipts/stock-receipts.module.d.ts +2 -1
- package/lib/inventory-common/stock-summary.service.d.ts +1 -1
- package/lib/inventory-common/stock-transfer/stock-transfer-form/stock-transfer-form.component.d.ts +19 -0
- package/lib/inventory-common/stock-transfer/stock-transfer-form-button/stock-transfer-form-button.component.d.ts +14 -0
- package/lib/inventory-common/stock-transfer/stock-transfer-list/stock-transfer-list.component.d.ts +17 -0
- package/lib/inventory-common/stock-transfer/stock-transfer.service.d.ts +7 -0
- package/lib/inventory-common/supplier/payee-selector/payee-selector/payee-selector.component.d.ts +3 -3
- package/lib/inventory-common/supplier/supplier-delete-button/supplier-delete-button.component.d.ts +18 -0
- package/lib/inventory-common/supplier/supplier-form/supplier-form-button/supplier-form-button.component.d.ts +13 -0
- package/lib/inventory-common/supplier/supplier-form/supplier-form.component.d.ts +6 -6
- package/lib/inventory-common/supplier/supplier-information/supplier-information.component.d.ts +4 -4
- package/lib/inventory-common/supplier/supplier-view/supplier-view.component.d.ts +4 -4
- package/lib/inventory-common/supplier/supplier.component.d.ts +2 -2
- package/lib/inventory-common/supplier/supplier.module.d.ts +3 -1
- package/lib/inventory-common/supplier/supplier.service.d.ts +1 -1
- package/lib/inventory-common/supplier/suppliers-list/suppliers-list.component.d.ts +0 -8
- package/lib/inventory-common/techlify-filter/techlify-filter.component.d.ts +4 -4
- package/lib/inventory-common/techlify-filter/techlify-filter.module.d.ts +2 -1
- package/package.json +1 -1
- package/fesm2022/techlify-inventory-common-category.module-CNm2bEsx.mjs +0 -257
- package/fesm2022/techlify-inventory-common-category.module-CNm2bEsx.mjs.map +0 -1
- package/fesm2022/techlify-inventory-common-measure.module-BEaRHh5Z.mjs +0 -313
- package/fesm2022/techlify-inventory-common-measure.module-BEaRHh5Z.mjs.map +0 -1
- package/fesm2022/techlify-inventory-common-product.module-BV9Cy88x.mjs +0 -1168
- package/fesm2022/techlify-inventory-common-product.module-BV9Cy88x.mjs.map +0 -1
- package/fesm2022/techlify-inventory-common-stock-issuances-list.module-Dt6gx-ji.mjs +0 -436
- package/fesm2022/techlify-inventory-common-stock-issuances-list.module-Dt6gx-ji.mjs.map +0 -1
- package/fesm2022/techlify-inventory-common-stock-issuances.module-BQRRP-hW.mjs.map +0 -1
- package/fesm2022/techlify-inventory-common-stock-receipt-form.module-DND0GNlf.mjs +0 -302
- package/fesm2022/techlify-inventory-common-stock-receipt-form.module-DND0GNlf.mjs.map +0 -1
- package/fesm2022/techlify-inventory-common-stock-receipts.module-BvYaKITT.mjs +0 -253
- package/fesm2022/techlify-inventory-common-stock-receipts.module-BvYaKITT.mjs.map +0 -1
- package/fesm2022/techlify-inventory-common-supplier-form.component-DVBnhiyH.mjs +0 -177
- package/fesm2022/techlify-inventory-common-supplier-form.component-DVBnhiyH.mjs.map +0 -1
- package/fesm2022/techlify-inventory-common-supplier.module-Bwa7gx14.mjs +0 -608
- package/fesm2022/techlify-inventory-common-supplier.module-Bwa7gx14.mjs.map +0 -1
- package/fesm2022/techlify-inventory-common-techlify-form-service-CiVfwYTS.mjs +0 -14
- package/fesm2022/techlify-inventory-common-techlify-form-service-CiVfwYTS.mjs.map +0 -1
- package/fesm2022/techlify-inventory-common-techlify-inventory-common-GFYF7JCA.mjs +0 -495
- package/fesm2022/techlify-inventory-common-techlify-inventory-common-GFYF7JCA.mjs.map +0 -1
|
@@ -1,608 +0,0 @@
|
|
|
1
|
-
import * as i1$1 from 'ngx-techlify-core';
|
|
2
|
-
import { ActionPopupComponent, TechlifyListingControllerInterface, SearchableSelectorModule, AuditLogForModelModule, NoteModule } from 'ngx-techlify-core';
|
|
3
|
-
import * as i0 from '@angular/core';
|
|
4
|
-
import { Input, Component, Injectable, NgModule } from '@angular/core';
|
|
5
|
-
import * as i4 from '@angular/common';
|
|
6
|
-
import { CommonModule } from '@angular/common';
|
|
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
|
-
import * as i2 from '@angular/router';
|
|
10
|
-
import { RouterModule } from '@angular/router';
|
|
11
|
-
import * as i3 from '@angular/material/card';
|
|
12
|
-
import { MatCardModule } from '@angular/material/card';
|
|
13
|
-
import * as i7 from '@angular/material/progress-bar';
|
|
14
|
-
import { MatProgressBarModule } from '@angular/material/progress-bar';
|
|
15
|
-
import * as i6$1 from '@angular/material/tabs';
|
|
16
|
-
import { MatTabsModule } from '@angular/material/tabs';
|
|
17
|
-
import * as i1 from '@angular/material/dialog';
|
|
18
|
-
import { MatDialogModule } from '@angular/material/dialog';
|
|
19
|
-
import * as i6 from '@angular/material/divider';
|
|
20
|
-
import { MatDividerModule } from '@angular/material/divider';
|
|
21
|
-
import * as i3$1 from '@angular/material/icon';
|
|
22
|
-
import { MatIconModule } from '@angular/material/icon';
|
|
23
|
-
import { T as TechlifyFormService } from './techlify-inventory-common-techlify-form-service-CiVfwYTS.mjs';
|
|
24
|
-
import { __decorate } from 'tslib';
|
|
25
|
-
import { untilDestroyed, UntilDestroy } from '@ngneat/until-destroy';
|
|
26
|
-
import * as i3$2 from 'ngx-spinner';
|
|
27
|
-
import * as i2$1 from '@angular/forms';
|
|
28
|
-
import { ReactiveFormsModule } from '@angular/forms';
|
|
29
|
-
import * as i6$2 from '@angular/material/form-field';
|
|
30
|
-
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
31
|
-
import * as i7$1 from '@angular/material/input';
|
|
32
|
-
import { MatInputModule } from '@angular/material/input';
|
|
33
|
-
import * as i5 from '@angular/material/sort';
|
|
34
|
-
import { MatSortModule } from '@angular/material/sort';
|
|
35
|
-
import * as i6$3 from '@angular/material/table';
|
|
36
|
-
import { MatTableModule } from '@angular/material/table';
|
|
37
|
-
import * as i2$2 from '@angular/material/tooltip';
|
|
38
|
-
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
39
|
-
import * as i10 from 'ngx-infinite-scroll';
|
|
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';
|
|
44
|
-
import { MatCommonModule, MatLineModule, MatNativeDateModule, MatOptionModule, MatPseudoCheckboxModule, MatRippleModule } from '@angular/material/core';
|
|
45
|
-
import { MatAutocompleteModule } from '@angular/material/autocomplete';
|
|
46
|
-
import { MatBadgeModule } from '@angular/material/badge';
|
|
47
|
-
import { MatButtonModule } from '@angular/material/button';
|
|
48
|
-
import { MatButtonToggleModule } from '@angular/material/button-toggle';
|
|
49
|
-
import { MatCheckboxModule } from '@angular/material/checkbox';
|
|
50
|
-
import { MatChipsModule } from '@angular/material/chips';
|
|
51
|
-
import { MatDatepickerModule } from '@angular/material/datepicker';
|
|
52
|
-
import { MatExpansionModule } from '@angular/material/expansion';
|
|
53
|
-
import { MatGridListModule } from '@angular/material/grid-list';
|
|
54
|
-
import { MatListModule } from '@angular/material/list';
|
|
55
|
-
import { MatMenuModule } from '@angular/material/menu';
|
|
56
|
-
import { MatPaginatorModule } from '@angular/material/paginator';
|
|
57
|
-
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
|
58
|
-
import { MatRadioModule } from '@angular/material/radio';
|
|
59
|
-
import { MatSelectModule } from '@angular/material/select';
|
|
60
|
-
import { MatSidenavModule } from '@angular/material/sidenav';
|
|
61
|
-
import { MatSlideToggleModule } from '@angular/material/slide-toggle';
|
|
62
|
-
import { MatSliderModule } from '@angular/material/slider';
|
|
63
|
-
import { MatSnackBarModule } from '@angular/material/snack-bar';
|
|
64
|
-
import { MatStepperModule } from '@angular/material/stepper';
|
|
65
|
-
import { MatToolbarModule } from '@angular/material/toolbar';
|
|
66
|
-
import { MatTreeModule } from '@angular/material/tree';
|
|
67
|
-
|
|
68
|
-
class SupplierInformationComponent {
|
|
69
|
-
dialog;
|
|
70
|
-
supplierService;
|
|
71
|
-
alertService;
|
|
72
|
-
router;
|
|
73
|
-
errorService;
|
|
74
|
-
supplier;
|
|
75
|
-
constructor(dialog, supplierService, alertService, router, errorService) {
|
|
76
|
-
this.dialog = dialog;
|
|
77
|
-
this.supplierService = supplierService;
|
|
78
|
-
this.alertService = alertService;
|
|
79
|
-
this.router = router;
|
|
80
|
-
this.errorService = errorService;
|
|
81
|
-
}
|
|
82
|
-
modifySupplier(model) {
|
|
83
|
-
const dialogRef = this.dialog.open(SupplierFormComponent, {
|
|
84
|
-
width: "600px",
|
|
85
|
-
data: {
|
|
86
|
-
details: model,
|
|
87
|
-
},
|
|
88
|
-
});
|
|
89
|
-
dialogRef.afterClosed().subscribe((result) => {
|
|
90
|
-
if (result) {
|
|
91
|
-
location.reload();
|
|
92
|
-
}
|
|
93
|
-
});
|
|
94
|
-
}
|
|
95
|
-
deleteSupplier(id) {
|
|
96
|
-
const dialogRef = this.dialog.open(ActionPopupComponent, {
|
|
97
|
-
width: "400px",
|
|
98
|
-
data: {
|
|
99
|
-
title: "Delete Supplier",
|
|
100
|
-
message: "Are you sure you want to delete this supplier?",
|
|
101
|
-
},
|
|
102
|
-
autoFocus: false,
|
|
103
|
-
});
|
|
104
|
-
dialogRef.afterClosed().subscribe(async (result) => {
|
|
105
|
-
if (result) {
|
|
106
|
-
try {
|
|
107
|
-
const result = await this.supplierService.destroy(id);
|
|
108
|
-
this.alertService.addAlert("Successfully Deleted Supplier", "success");
|
|
109
|
-
}
|
|
110
|
-
catch (error) {
|
|
111
|
-
this.errorService.handleError(error);
|
|
112
|
-
}
|
|
113
|
-
finally {
|
|
114
|
-
this.router.navigateByUrl("/suppliers");
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
});
|
|
118
|
-
}
|
|
119
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SupplierInformationComponent, deps: [{ token: i1.MatDialog }, { token: SupplierService }, { token: i1$1.AlertService }, { token: i2.Router }, { token: i1$1.ErrorHandlerService }], target: i0.ɵɵFactoryTarget.Component });
|
|
120
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: SupplierInformationComponent, selector: "app-supplier-information", inputs: { supplier: "supplier" }, ngImport: i0, template: "<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", dependencies: [{ 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.MatDivider, selector: "mat-divider", inputs: ["vertical", "inset"] }, { kind: "component", type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i1$1.AuditLogForModelComponent, selector: "app-audit-log-for-model", inputs: ["modelType", "modelId", "logView"] }], preserveWhitespaces: true });
|
|
121
|
-
}
|
|
122
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SupplierInformationComponent, decorators: [{
|
|
123
|
-
type: Component,
|
|
124
|
-
args: [{ selector: "app-supplier-information", template: "<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" }]
|
|
125
|
-
}], ctorParameters: () => [{ type: i1.MatDialog }, { type: SupplierService }, { type: i1$1.AlertService }, { type: i2.Router }, { type: i1$1.ErrorHandlerService }], propDecorators: { supplier: [{
|
|
126
|
-
type: Input
|
|
127
|
-
}] } });
|
|
128
|
-
|
|
129
|
-
class SupplierViewComponent {
|
|
130
|
-
supplierService;
|
|
131
|
-
route;
|
|
132
|
-
router;
|
|
133
|
-
supplier;
|
|
134
|
-
supplierId = 0;
|
|
135
|
-
selectedTabIndex = 0;
|
|
136
|
-
isLoading = false;
|
|
137
|
-
constructor(supplierService, route, router) {
|
|
138
|
-
this.supplierService = supplierService;
|
|
139
|
-
this.route = route;
|
|
140
|
-
this.router = router;
|
|
141
|
-
}
|
|
142
|
-
ngOnInit() {
|
|
143
|
-
this.route.firstChild?.url.subscribe((url) => {
|
|
144
|
-
if (url[0].path === "ratings") {
|
|
145
|
-
this.selectedTabIndex = 1;
|
|
146
|
-
}
|
|
147
|
-
else if (url[0].path === "estimates") {
|
|
148
|
-
this.selectedTabIndex = 2;
|
|
149
|
-
}
|
|
150
|
-
else {
|
|
151
|
-
this.selectedTabIndex = 0;
|
|
152
|
-
}
|
|
153
|
-
});
|
|
154
|
-
this.supplierId = this.route.snapshot.params["id"];
|
|
155
|
-
this.getSupplier(this.supplierId);
|
|
156
|
-
}
|
|
157
|
-
onTabChange(event) {
|
|
158
|
-
switch (event.index) {
|
|
159
|
-
case 0:
|
|
160
|
-
this.router.navigate(["incidents"], { relativeTo: this.route });
|
|
161
|
-
return;
|
|
162
|
-
case 1:
|
|
163
|
-
this.router.navigate(["ratings"], { relativeTo: this.route });
|
|
164
|
-
return;
|
|
165
|
-
case 2:
|
|
166
|
-
this.router.navigate(["estimates"], { relativeTo: this.route });
|
|
167
|
-
return;
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
async getSupplier(id) {
|
|
171
|
-
this.isLoading = true;
|
|
172
|
-
let result = await lastValueFrom(this.supplierService.show(id));
|
|
173
|
-
this.isLoading = false;
|
|
174
|
-
this.supplier = result.item;
|
|
175
|
-
}
|
|
176
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SupplierViewComponent, deps: [{ token: SupplierService }, { token: i2.ActivatedRoute }, { token: i2.Router }], target: i0.ɵɵFactoryTarget.Component });
|
|
177
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: SupplierViewComponent, selector: "app-supplier-view", ngImport: i0, template: "<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", dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.RouterOutlet, selector: "router-outlet", inputs: ["name"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }, { kind: "component", type: i3.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "directive", type: i3.MatCardContent, selector: "mat-card-content" }, { kind: "component", type: i7.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }, { kind: "directive", type: i6$1.MatTabLabel, selector: "[mat-tab-label], [matTabLabel]" }, { kind: "component", type: i6$1.MatTab, selector: "mat-tab", inputs: ["disabled", "label", "aria-label", "aria-labelledby", "labelClass", "bodyClass"], exportAs: ["matTab"] }, { kind: "component", type: i6$1.MatTabGroup, selector: "mat-tab-group", inputs: ["color", "fitInkBarToContent", "mat-stretch-tabs", "dynamicHeight", "selectedIndex", "headerPosition", "animationDuration", "contentTabIndex", "disablePagination", "disableRipple", "preserveContent", "backgroundColor", "aria-label", "aria-labelledby"], outputs: ["selectedIndexChange", "focusChange", "animationDone", "selectedTabChange"], exportAs: ["matTabGroup"] }, { kind: "component", type: i1$1.NoteListComponent, selector: "app-note-list", inputs: ["relatedModelId", "modelType", "readonly", "labelText", "commentsView", "viewMode"] }, { kind: "component", type: SupplierInformationComponent, selector: "app-supplier-information", inputs: ["supplier"] }], preserveWhitespaces: true });
|
|
178
|
-
}
|
|
179
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SupplierViewComponent, decorators: [{
|
|
180
|
-
type: Component,
|
|
181
|
-
args: [{ selector: "app-supplier-view", template: "<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" }]
|
|
182
|
-
}], ctorParameters: () => [{ type: SupplierService }, { type: i2.ActivatedRoute }, { type: i2.Router }] });
|
|
183
|
-
|
|
184
|
-
class SupplierFormService extends TechlifyFormService {
|
|
185
|
-
constructor() {
|
|
186
|
-
super();
|
|
187
|
-
}
|
|
188
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SupplierFormService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
189
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SupplierFormService, providedIn: "root" });
|
|
190
|
-
}
|
|
191
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SupplierFormService, decorators: [{
|
|
192
|
-
type: Injectable,
|
|
193
|
-
args: [{
|
|
194
|
-
providedIn: "root",
|
|
195
|
-
}]
|
|
196
|
-
}], ctorParameters: () => [] });
|
|
197
|
-
|
|
198
|
-
class SupplierComponent {
|
|
199
|
-
dialog;
|
|
200
|
-
supplierFormService;
|
|
201
|
-
constructor(dialog, supplierFormService) {
|
|
202
|
-
this.dialog = dialog;
|
|
203
|
-
this.supplierFormService = supplierFormService;
|
|
204
|
-
}
|
|
205
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SupplierComponent, deps: [{ token: i1.MatDialog }, { token: SupplierFormService }], target: i0.ɵɵFactoryTarget.Component });
|
|
206
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: SupplierComponent, selector: "app-supplier", ngImport: i0, template: "<div>\n <router-outlet></router-outlet>\n</div>\n", styles: [""], dependencies: [{ kind: "directive", type: i2.RouterOutlet, selector: "router-outlet", inputs: ["name"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }], preserveWhitespaces: true });
|
|
207
|
-
}
|
|
208
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SupplierComponent, decorators: [{
|
|
209
|
-
type: Component,
|
|
210
|
-
args: [{ selector: "app-supplier", template: "<div>\n <router-outlet></router-outlet>\n</div>\n" }]
|
|
211
|
-
}], ctorParameters: () => [{ type: i1.MatDialog }, { type: SupplierFormService }] });
|
|
212
|
-
|
|
213
|
-
let SuppliersListComponent = class SuppliersListComponent extends TechlifyListingControllerInterface {
|
|
214
|
-
spinner;
|
|
215
|
-
fb;
|
|
216
|
-
supplierService;
|
|
217
|
-
errorHandler;
|
|
218
|
-
filterService;
|
|
219
|
-
activatedRoute;
|
|
220
|
-
alertService;
|
|
221
|
-
dialog;
|
|
222
|
-
supplierFormService;
|
|
223
|
-
requestHelperService;
|
|
224
|
-
displayedColumns = [
|
|
225
|
-
'#',
|
|
226
|
-
'company_name',
|
|
227
|
-
'type',
|
|
228
|
-
'contact_name',
|
|
229
|
-
'phone',
|
|
230
|
-
'address',
|
|
231
|
-
'email',
|
|
232
|
-
'details',
|
|
233
|
-
'actions',
|
|
234
|
-
];
|
|
235
|
-
constructor(spinner, fb, supplierService, errorHandler, filterService, activatedRoute, alertService, dialog, supplierFormService, requestHelperService) {
|
|
236
|
-
super();
|
|
237
|
-
this.spinner = spinner;
|
|
238
|
-
this.fb = fb;
|
|
239
|
-
this.supplierService = supplierService;
|
|
240
|
-
this.errorHandler = errorHandler;
|
|
241
|
-
this.filterService = filterService;
|
|
242
|
-
this.activatedRoute = activatedRoute;
|
|
243
|
-
this.alertService = alertService;
|
|
244
|
-
this.dialog = dialog;
|
|
245
|
-
this.supplierFormService = supplierFormService;
|
|
246
|
-
this.requestHelperService = requestHelperService;
|
|
247
|
-
this.page = 1;
|
|
248
|
-
this.perPage = 25;
|
|
249
|
-
this.models = [];
|
|
250
|
-
this.filterForm = this.fb.group({
|
|
251
|
-
search: [''],
|
|
252
|
-
supplier_type_ids: [''],
|
|
253
|
-
sort_by: ['created_at|desc'],
|
|
254
|
-
});
|
|
255
|
-
}
|
|
256
|
-
ngOnInit() {
|
|
257
|
-
this.updateFormWithQueryParams();
|
|
258
|
-
this.subscribeToFormChanges();
|
|
259
|
-
this.subscribeToRouteChanges();
|
|
260
|
-
}
|
|
261
|
-
listenForChanges() {
|
|
262
|
-
// listen for supplier added event to update the list.
|
|
263
|
-
this.supplierFormService.isListUpdated().subscribe((val) => {
|
|
264
|
-
if (val && !this.isWorking)
|
|
265
|
-
this.reload();
|
|
266
|
-
});
|
|
267
|
-
// listen for form group changes.
|
|
268
|
-
this.filterForm.valueChanges.pipe(debounceTime(500), untilDestroyed(this)).subscribe(() => {
|
|
269
|
-
this.filterService.applyFilterToRoute(this.activatedRoute, this.filterForm.value);
|
|
270
|
-
this.reload();
|
|
271
|
-
});
|
|
272
|
-
}
|
|
273
|
-
sortColumn(event) {
|
|
274
|
-
var direction = event.direction.toString().toUpperCase();
|
|
275
|
-
this.assignFilter(event.active, direction);
|
|
276
|
-
}
|
|
277
|
-
assignFilter(column, direction) {
|
|
278
|
-
return this.filterForm.get('sort_by')?.setValue(column + '|' + direction);
|
|
279
|
-
}
|
|
280
|
-
async loadData() {
|
|
281
|
-
let filters = { ...this.requestHelperService.convertToFormData(this.filterForm.value) };
|
|
282
|
-
filters.page = this.page = 1;
|
|
283
|
-
filters.perPage = this.perPage;
|
|
284
|
-
try {
|
|
285
|
-
this.isWorking = true;
|
|
286
|
-
let res = await lastValueFrom(this.supplierService.index(filters));
|
|
287
|
-
this.models = this.models?.concat(res?.data);
|
|
288
|
-
this.lastPage = res.last_page;
|
|
289
|
-
// list is updated do not listen form isListUpdated
|
|
290
|
-
this.supplierFormService.listUpdated(false);
|
|
291
|
-
}
|
|
292
|
-
catch (error) {
|
|
293
|
-
this.errorHandler.handleError(error);
|
|
294
|
-
}
|
|
295
|
-
finally {
|
|
296
|
-
this.isWorking = false;
|
|
297
|
-
}
|
|
298
|
-
}
|
|
299
|
-
editForm(model) {
|
|
300
|
-
const dialogRef = this.dialog.open(SupplierFormComponent, {
|
|
301
|
-
width: '400px',
|
|
302
|
-
autoFocus: false,
|
|
303
|
-
data: {
|
|
304
|
-
details: model,
|
|
305
|
-
},
|
|
306
|
-
});
|
|
307
|
-
dialogRef.afterClosed().subscribe((result) => {
|
|
308
|
-
if (result) {
|
|
309
|
-
this.reload();
|
|
310
|
-
}
|
|
311
|
-
});
|
|
312
|
-
}
|
|
313
|
-
deleteForm(supplier) {
|
|
314
|
-
const dialogRef = this.dialog.open(ActionPopupComponent, {
|
|
315
|
-
width: '400px',
|
|
316
|
-
data: {
|
|
317
|
-
title: 'Delete Supplier',
|
|
318
|
-
message: 'Are you sure you want to delete the Supplier?',
|
|
319
|
-
},
|
|
320
|
-
autoFocus: false,
|
|
321
|
-
});
|
|
322
|
-
dialogRef.afterClosed().subscribe(async (result) => {
|
|
323
|
-
if (result) {
|
|
324
|
-
this.spinner.show();
|
|
325
|
-
try {
|
|
326
|
-
const result = await lastValueFrom(this.supplierService.destroy(supplier.id));
|
|
327
|
-
this.alertService.addAlert('Successfully deleted the Supplier', 'success');
|
|
328
|
-
this.reload();
|
|
329
|
-
}
|
|
330
|
-
catch (error) {
|
|
331
|
-
this.errorHandler.handleError(error);
|
|
332
|
-
}
|
|
333
|
-
finally {
|
|
334
|
-
this.spinner.hide();
|
|
335
|
-
}
|
|
336
|
-
}
|
|
337
|
-
});
|
|
338
|
-
}
|
|
339
|
-
/**
|
|
340
|
-
* Show the supplier create form.
|
|
341
|
-
*
|
|
342
|
-
* @param model
|
|
343
|
-
*/
|
|
344
|
-
showAddSupplierDialog(model) {
|
|
345
|
-
const dialogRef = this.dialog.open(SupplierFormComponent, {
|
|
346
|
-
width: '400px',
|
|
347
|
-
autoFocus: false,
|
|
348
|
-
data: {
|
|
349
|
-
model,
|
|
350
|
-
},
|
|
351
|
-
});
|
|
352
|
-
dialogRef.afterClosed().subscribe((result) => {
|
|
353
|
-
if (result) {
|
|
354
|
-
// record added successfully, inform the list component.
|
|
355
|
-
this.supplierFormService.listUpdated(true);
|
|
356
|
-
}
|
|
357
|
-
});
|
|
358
|
-
}
|
|
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 });
|
|
378
|
-
};
|
|
379
|
-
SuppliersListComponent = __decorate([
|
|
380
|
-
UntilDestroy()
|
|
381
|
-
], SuppliersListComponent);
|
|
382
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SuppliersListComponent, decorators: [{
|
|
383
|
-
type: Component,
|
|
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 }] });
|
|
386
|
-
|
|
387
|
-
const routes = [
|
|
388
|
-
{
|
|
389
|
-
path: "",
|
|
390
|
-
component: SupplierComponent,
|
|
391
|
-
children: [
|
|
392
|
-
{ path: "", component: SuppliersListComponent },
|
|
393
|
-
{
|
|
394
|
-
path: ":id/view",
|
|
395
|
-
component: SupplierViewComponent,
|
|
396
|
-
children: [
|
|
397
|
-
{
|
|
398
|
-
path: "",
|
|
399
|
-
redirectTo: "incidents",
|
|
400
|
-
pathMatch: "full",
|
|
401
|
-
},
|
|
402
|
-
],
|
|
403
|
-
},
|
|
404
|
-
],
|
|
405
|
-
},
|
|
406
|
-
];
|
|
407
|
-
class SupplierRoutingModule {
|
|
408
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SupplierRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
409
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: SupplierRoutingModule, imports: [i2.RouterModule], exports: [RouterModule] });
|
|
410
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SupplierRoutingModule, imports: [RouterModule.forChild(routes), RouterModule] });
|
|
411
|
-
}
|
|
412
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SupplierRoutingModule, decorators: [{
|
|
413
|
-
type: NgModule,
|
|
414
|
-
args: [{
|
|
415
|
-
imports: [RouterModule.forChild(routes)],
|
|
416
|
-
exports: [RouterModule],
|
|
417
|
-
}]
|
|
418
|
-
}] });
|
|
419
|
-
|
|
420
|
-
/*
|
|
421
|
-
* This module imports and re-exports all Angular Material modules for convenience,
|
|
422
|
-
* so only 1 module import is needed in your feature modules.
|
|
423
|
-
* See https://material.angular.io/guide/getting-started#step-3-import-the-component-modules.
|
|
424
|
-
*
|
|
425
|
-
* To optimize your production builds, you should only import the components used in your app.
|
|
426
|
-
*/
|
|
427
|
-
class MaterialModule {
|
|
428
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: MaterialModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
429
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: MaterialModule, exports: [MatAutocompleteModule,
|
|
430
|
-
MatBadgeModule,
|
|
431
|
-
MatButtonModule,
|
|
432
|
-
MatButtonToggleModule,
|
|
433
|
-
MatCardModule,
|
|
434
|
-
MatCheckboxModule,
|
|
435
|
-
MatChipsModule,
|
|
436
|
-
MatCommonModule,
|
|
437
|
-
MatDatepickerModule,
|
|
438
|
-
MatDialogModule,
|
|
439
|
-
MatDividerModule,
|
|
440
|
-
MatExpansionModule,
|
|
441
|
-
MatFormFieldModule,
|
|
442
|
-
MatGridListModule,
|
|
443
|
-
MatIconModule,
|
|
444
|
-
MatInputModule,
|
|
445
|
-
MatLineModule,
|
|
446
|
-
MatListModule,
|
|
447
|
-
MatMenuModule,
|
|
448
|
-
MatNativeDateModule,
|
|
449
|
-
MatOptionModule,
|
|
450
|
-
MatPaginatorModule,
|
|
451
|
-
MatProgressBarModule,
|
|
452
|
-
MatProgressSpinnerModule,
|
|
453
|
-
MatPseudoCheckboxModule,
|
|
454
|
-
MatRadioModule,
|
|
455
|
-
MatRippleModule,
|
|
456
|
-
MatSelectModule,
|
|
457
|
-
MatSidenavModule,
|
|
458
|
-
MatSlideToggleModule,
|
|
459
|
-
MatSliderModule,
|
|
460
|
-
MatSnackBarModule,
|
|
461
|
-
MatSortModule,
|
|
462
|
-
MatStepperModule,
|
|
463
|
-
MatTableModule,
|
|
464
|
-
MatTabsModule,
|
|
465
|
-
MatToolbarModule,
|
|
466
|
-
MatTooltipModule,
|
|
467
|
-
MatTreeModule] });
|
|
468
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: MaterialModule, imports: [MatAutocompleteModule,
|
|
469
|
-
MatBadgeModule,
|
|
470
|
-
MatButtonModule,
|
|
471
|
-
MatButtonToggleModule,
|
|
472
|
-
MatCardModule,
|
|
473
|
-
MatCheckboxModule,
|
|
474
|
-
MatChipsModule,
|
|
475
|
-
MatCommonModule,
|
|
476
|
-
MatDatepickerModule,
|
|
477
|
-
MatDialogModule,
|
|
478
|
-
MatDividerModule,
|
|
479
|
-
MatExpansionModule,
|
|
480
|
-
MatFormFieldModule,
|
|
481
|
-
MatGridListModule,
|
|
482
|
-
MatIconModule,
|
|
483
|
-
MatInputModule,
|
|
484
|
-
MatLineModule,
|
|
485
|
-
MatListModule,
|
|
486
|
-
MatMenuModule,
|
|
487
|
-
MatNativeDateModule,
|
|
488
|
-
MatOptionModule,
|
|
489
|
-
MatPaginatorModule,
|
|
490
|
-
MatProgressBarModule,
|
|
491
|
-
MatProgressSpinnerModule,
|
|
492
|
-
MatPseudoCheckboxModule,
|
|
493
|
-
MatRadioModule,
|
|
494
|
-
MatRippleModule,
|
|
495
|
-
MatSelectModule,
|
|
496
|
-
MatSidenavModule,
|
|
497
|
-
MatSlideToggleModule,
|
|
498
|
-
MatSliderModule,
|
|
499
|
-
MatSnackBarModule,
|
|
500
|
-
MatSortModule,
|
|
501
|
-
MatStepperModule,
|
|
502
|
-
MatTableModule,
|
|
503
|
-
MatTabsModule,
|
|
504
|
-
MatToolbarModule,
|
|
505
|
-
MatTooltipModule,
|
|
506
|
-
MatTreeModule] });
|
|
507
|
-
}
|
|
508
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: MaterialModule, decorators: [{
|
|
509
|
-
type: NgModule,
|
|
510
|
-
args: [{
|
|
511
|
-
exports: [
|
|
512
|
-
MatAutocompleteModule,
|
|
513
|
-
MatBadgeModule,
|
|
514
|
-
MatButtonModule,
|
|
515
|
-
MatButtonToggleModule,
|
|
516
|
-
MatCardModule,
|
|
517
|
-
MatCheckboxModule,
|
|
518
|
-
MatChipsModule,
|
|
519
|
-
MatCommonModule,
|
|
520
|
-
MatDatepickerModule,
|
|
521
|
-
MatDialogModule,
|
|
522
|
-
MatDividerModule,
|
|
523
|
-
MatExpansionModule,
|
|
524
|
-
MatFormFieldModule,
|
|
525
|
-
MatGridListModule,
|
|
526
|
-
MatIconModule,
|
|
527
|
-
MatInputModule,
|
|
528
|
-
MatLineModule,
|
|
529
|
-
MatListModule,
|
|
530
|
-
MatMenuModule,
|
|
531
|
-
MatNativeDateModule,
|
|
532
|
-
MatOptionModule,
|
|
533
|
-
MatPaginatorModule,
|
|
534
|
-
MatProgressBarModule,
|
|
535
|
-
MatProgressSpinnerModule,
|
|
536
|
-
MatPseudoCheckboxModule,
|
|
537
|
-
MatRadioModule,
|
|
538
|
-
MatRippleModule,
|
|
539
|
-
MatSelectModule,
|
|
540
|
-
MatSidenavModule,
|
|
541
|
-
MatSlideToggleModule,
|
|
542
|
-
MatSliderModule,
|
|
543
|
-
MatSnackBarModule,
|
|
544
|
-
MatSortModule,
|
|
545
|
-
MatStepperModule,
|
|
546
|
-
MatTableModule,
|
|
547
|
-
MatTabsModule,
|
|
548
|
-
MatToolbarModule,
|
|
549
|
-
MatTooltipModule,
|
|
550
|
-
MatTreeModule,
|
|
551
|
-
],
|
|
552
|
-
}]
|
|
553
|
-
}] });
|
|
554
|
-
|
|
555
|
-
class SupplierModule {
|
|
556
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SupplierModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
557
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: SupplierModule, declarations: [SupplierComponent,
|
|
558
|
-
SupplierViewComponent,
|
|
559
|
-
SuppliersListComponent,
|
|
560
|
-
SupplierFormComponent,
|
|
561
|
-
SupplierInformationComponent], imports: [CommonModule,
|
|
562
|
-
SupplierRoutingModule,
|
|
563
|
-
MaterialModule,
|
|
564
|
-
SearchableSelectorModule,
|
|
565
|
-
AuditLogForModelModule,
|
|
566
|
-
NoteModule,
|
|
567
|
-
FlexModule,
|
|
568
|
-
ReactiveFormsModule,
|
|
569
|
-
InfiniteScrollModule,
|
|
570
|
-
NgxPermissionsModule] });
|
|
571
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SupplierModule, imports: [CommonModule,
|
|
572
|
-
SupplierRoutingModule,
|
|
573
|
-
MaterialModule,
|
|
574
|
-
SearchableSelectorModule,
|
|
575
|
-
AuditLogForModelModule,
|
|
576
|
-
NoteModule,
|
|
577
|
-
FlexModule,
|
|
578
|
-
ReactiveFormsModule,
|
|
579
|
-
InfiniteScrollModule,
|
|
580
|
-
NgxPermissionsModule] });
|
|
581
|
-
}
|
|
582
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SupplierModule, decorators: [{
|
|
583
|
-
type: NgModule,
|
|
584
|
-
args: [{
|
|
585
|
-
declarations: [
|
|
586
|
-
SupplierComponent,
|
|
587
|
-
SupplierViewComponent,
|
|
588
|
-
SuppliersListComponent,
|
|
589
|
-
SupplierFormComponent,
|
|
590
|
-
SupplierInformationComponent,
|
|
591
|
-
],
|
|
592
|
-
imports: [
|
|
593
|
-
CommonModule,
|
|
594
|
-
SupplierRoutingModule,
|
|
595
|
-
MaterialModule,
|
|
596
|
-
SearchableSelectorModule,
|
|
597
|
-
AuditLogForModelModule,
|
|
598
|
-
NoteModule,
|
|
599
|
-
FlexModule,
|
|
600
|
-
ReactiveFormsModule,
|
|
601
|
-
InfiniteScrollModule,
|
|
602
|
-
NgxPermissionsModule,
|
|
603
|
-
],
|
|
604
|
-
}]
|
|
605
|
-
}] });
|
|
606
|
-
|
|
607
|
-
export { SupplierModule };
|
|
608
|
-
//# sourceMappingURL=techlify-inventory-common-supplier.module-Bwa7gx14.mjs.map
|