techlify-inventory-common 0.0.1
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/.editorconfig +13 -0
- package/README.md +27 -0
- package/angular.json +207 -0
- package/e2e/protractor.conf.js +28 -0
- package/e2e/src/app.e2e-spec.ts +14 -0
- package/e2e/src/app.po.ts +11 -0
- package/e2e/tsconfig.e2e.json +13 -0
- package/ng-package.json +6 -0
- package/package.json +92 -0
- package/projects/inventory-common/README.md +24 -0
- package/projects/inventory-common/ng-package.json +7 -0
- package/projects/inventory-common/package.json +12 -0
- package/projects/inventory-common/src/lib/inventory-common/category/category-form/category-form.component.html +41 -0
- package/projects/inventory-common/src/lib/inventory-common/category/category-form/category-form.component.scss +0 -0
- package/projects/inventory-common/src/lib/inventory-common/category/category-form/category-form.component.ts +75 -0
- package/projects/inventory-common/src/lib/inventory-common/category/category-form-button/category-form-button.component.html +32 -0
- package/projects/inventory-common/src/lib/inventory-common/category/category-form-button/category-form-button.component.scss +0 -0
- package/projects/inventory-common/src/lib/inventory-common/category/category-form-button/category-form-button.component.ts +29 -0
- package/projects/inventory-common/src/lib/inventory-common/category/category-list-page/category-list-page.component.html +79 -0
- package/projects/inventory-common/src/lib/inventory-common/category/category-list-page/category-list-page.component.scss +0 -0
- package/projects/inventory-common/src/lib/inventory-common/category/category-list-page/category-list-page.component.ts +61 -0
- package/projects/inventory-common/src/lib/inventory-common/category/category-routing.module.ts +16 -0
- package/projects/inventory-common/src/lib/inventory-common/category/category.module.ts +36 -0
- package/projects/inventory-common/src/lib/inventory-common/category/category.service.ts +11 -0
- package/projects/inventory-common/src/lib/inventory-common/inventory-common-routing.module.ts +65 -0
- package/projects/inventory-common/src/lib/inventory-common/inventory-common.module.ts +24 -0
- package/projects/inventory-common/src/lib/inventory-common/inventory-dashboard-page/inventory-dashboard-page.component.html +88 -0
- package/projects/inventory-common/src/lib/inventory-common/inventory-dashboard-page/inventory-dashboard-page.component.scss +0 -0
- package/projects/inventory-common/src/lib/inventory-common/inventory-dashboard-page/inventory-dashboard-page.component.ts +36 -0
- package/projects/inventory-common/src/lib/inventory-common/inventory-value-report.service.ts +19 -0
- package/projects/inventory-common/src/lib/inventory-common/low-stock-report.service.ts +19 -0
- package/projects/inventory-common/src/lib/inventory-common/material.module.ts +95 -0
- package/projects/inventory-common/src/lib/inventory-common/measure/measure-delete/measure-delete-button/measure-delete-button.component.html +37 -0
- package/projects/inventory-common/src/lib/inventory-common/measure/measure-delete/measure-delete-button/measure-delete-button.component.scss +0 -0
- package/projects/inventory-common/src/lib/inventory-common/measure/measure-delete/measure-delete-button/measure-delete-button.component.ts +44 -0
- package/projects/inventory-common/src/lib/inventory-common/measure/measure-delete/measure-delete.module.ts +11 -0
- package/projects/inventory-common/src/lib/inventory-common/measure/measure-form/measure-form/measure-form.component.html +66 -0
- package/projects/inventory-common/src/lib/inventory-common/measure/measure-form/measure-form/measure-form.component.scss +0 -0
- package/projects/inventory-common/src/lib/inventory-common/measure/measure-form/measure-form/measure-form.component.ts +78 -0
- package/projects/inventory-common/src/lib/inventory-common/measure/measure-form/measure-form-button/measure-form-button.component.html +16 -0
- package/projects/inventory-common/src/lib/inventory-common/measure/measure-form/measure-form-button/measure-form-button.component.scss +0 -0
- package/projects/inventory-common/src/lib/inventory-common/measure/measure-form/measure-form-button/measure-form-button.component.ts +29 -0
- package/projects/inventory-common/src/lib/inventory-common/measure/measure-form/measure-form.module.ts +13 -0
- package/projects/inventory-common/src/lib/inventory-common/measure/measure-routing.module.ts +16 -0
- package/projects/inventory-common/src/lib/inventory-common/measure/measure.module.ts +26 -0
- package/projects/inventory-common/src/lib/inventory-common/measure/measure.service.ts +11 -0
- package/projects/inventory-common/src/lib/inventory-common/measure/measures-list/measures-list.component.html +88 -0
- package/projects/inventory-common/src/lib/inventory-common/measure/measures-list/measures-list.component.scss +0 -0
- package/projects/inventory-common/src/lib/inventory-common/measure/measures-list/measures-list.component.ts +67 -0
- package/projects/inventory-common/src/lib/inventory-common/product/low-stock-products-widget/low-stock-products-widget.component.html +52 -0
- package/projects/inventory-common/src/lib/inventory-common/product/low-stock-products-widget/low-stock-products-widget.component.scss +0 -0
- package/projects/inventory-common/src/lib/inventory-common/product/low-stock-products-widget/low-stock-products-widget.component.ts +42 -0
- package/projects/inventory-common/src/lib/inventory-common/product/low-stock-products-widget/low-stock-products-widget.module.ts +20 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-basic-info/product-basic-info.component.html +114 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-basic-info/product-basic-info.component.scss +0 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-basic-info/product-basic-info.component.ts +43 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-delete-button/product-delete-button.component.html +33 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-delete-button/product-delete-button.component.scss +0 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-delete-button/product-delete-button.component.ts +53 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-form/product-form.component.html +209 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-form/product-form.component.spec.ts +24 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-form/product-form.component.ts +182 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-form-button/product-form-button.component.html +17 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-form-button/product-form-button.component.scss +0 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-form-button/product-form-button.component.ts +39 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-form.service.ts +11 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-import-page/product-import-page.component.html +1 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-import-page/product-import-page.component.scss +0 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-import-page/product-import-page.component.ts +66 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-list/product-list.component.html +254 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-list/product-list.component.spec.ts +24 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-list/product-list.component.ts +171 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-measure-form/product-measure-form.component.html +44 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-measure-form/product-measure-form.component.spec.ts +24 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-measure-form/product-measure-form.component.ts +93 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-measures-list/product-measures-list.component.html +90 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-measures-list/product-measures-list.component.spec.ts +24 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-measures-list/product-measures-list.component.ts +153 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-nav-bar/product-nav-bar.component.html +3 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-nav-bar/product-nav-bar.component.spec.ts +24 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-nav-bar/product-nav-bar.component.ts +7 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-quick-search/product-quick-search.component.html +110 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-quick-search/product-quick-search.component.scss +0 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-quick-search/product-quick-search.component.ts +102 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-routing.module.ts +49 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-search/product-search.component.html +78 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-search/product-search.component.scss +12 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-search/product-search.component.ts +153 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-search/product-search.module.ts +22 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-summary-chart/product-summary-chart.component.html +11 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-summary-chart/product-summary-chart.component.scss +0 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-summary-chart/product-summary-chart.component.ts +62 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-summary-chart/product-summary-chart.module.ts +15 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-summary-widget/product-summary-widget.component.html +9 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-summary-widget/product-summary-widget.component.scss +0 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-summary-widget/product-summary-widget.component.ts +39 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-tax/product-tax-delete-button/product-tax-delete-button.component.html +32 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-tax/product-tax-delete-button/product-tax-delete-button.component.scss +0 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-tax/product-tax-delete-button/product-tax-delete-button.component.ts +55 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-tax/product-tax-form-button/product-tax-form-button.component.html +49 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-tax/product-tax-form-button/product-tax-form-button.component.scss +0 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-tax/product-tax-form-button/product-tax-form-button.component.ts +87 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-tax/product-tax-list/product-tax-list.component.html +48 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-tax/product-tax-list/product-tax-list.component.scss +0 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-tax/product-tax-list/product-tax-list.component.ts +33 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-tax/product-tax.module.ts +23 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-tax/product-tax.service.ts +11 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-view-page/product-view-page.component.html +34 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-view-page/product-view-page.component.ts +63 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product.module.ts +69 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product.service.ts +54 -0
- package/projects/inventory-common/src/lib/inventory-common/product/widgets/product-category-badges/product-category-badges.component.html +8 -0
- package/projects/inventory-common/src/lib/inventory-common/product/widgets/product-category-badges/product-category-badges.component.scss +0 -0
- package/projects/inventory-common/src/lib/inventory-common/product/widgets/product-category-badges/product-category-badges.component.ts +16 -0
- package/projects/inventory-common/src/lib/inventory-common/reports/inventory-value-report/inventory-value-report.component.html +140 -0
- package/projects/inventory-common/src/lib/inventory-common/reports/inventory-value-report/inventory-value-report.component.scss +0 -0
- package/projects/inventory-common/src/lib/inventory-common/reports/inventory-value-report/inventory-value-report.component.ts +191 -0
- package/projects/inventory-common/src/lib/inventory-common/reports/low-stock-report/low-stock-report.component.html +158 -0
- package/projects/inventory-common/src/lib/inventory-common/reports/low-stock-report/low-stock-report.component.scss +0 -0
- package/projects/inventory-common/src/lib/inventory-common/reports/low-stock-report/low-stock-report.component.ts +191 -0
- package/projects/inventory-common/src/lib/inventory-common/services/techlify-form-service.ts +14 -0
- package/projects/inventory-common/src/lib/inventory-common/stock-issuances/stock-issuance-delete-button/stock-issuance-delete-button.component.html +32 -0
- package/projects/inventory-common/src/lib/inventory-common/stock-issuances/stock-issuance-delete-button/stock-issuance-delete-button.component.scss +0 -0
- package/projects/inventory-common/src/lib/inventory-common/stock-issuances/stock-issuance-delete-button/stock-issuance-delete-button.component.ts +49 -0
- package/projects/inventory-common/src/lib/inventory-common/stock-issuances/stock-issuance-delete-button/stock-issuance-delete-button.module.ts +11 -0
- package/projects/inventory-common/src/lib/inventory-common/stock-issuances/stock-issuance.service.ts +11 -0
- package/projects/inventory-common/src/lib/inventory-common/stock-issuances/stock-issuances-list/stock-issuances-list.component.html +165 -0
- package/projects/inventory-common/src/lib/inventory-common/stock-issuances/stock-issuances-list/stock-issuances-list.component.scss +0 -0
- package/projects/inventory-common/src/lib/inventory-common/stock-issuances/stock-issuances-list/stock-issuances-list.component.ts +113 -0
- package/projects/inventory-common/src/lib/inventory-common/stock-issuances/stock-issuances-list/stock-issuances-list.module.ts +26 -0
- package/projects/inventory-common/src/lib/inventory-common/stock-issuances/stock-issuances-routing.module.ts +16 -0
- package/projects/inventory-common/src/lib/inventory-common/stock-issuances/stock-issuances.module.ts +36 -0
- package/projects/inventory-common/src/lib/inventory-common/stock-issuances/stock-issue-form/stock-issue-form/stock-issue-form.component.html +64 -0
- package/projects/inventory-common/src/lib/inventory-common/stock-issuances/stock-issue-form/stock-issue-form/stock-issue-form.component.scss +0 -0
- package/projects/inventory-common/src/lib/inventory-common/stock-issuances/stock-issue-form/stock-issue-form/stock-issue-form.component.ts +115 -0
- package/projects/inventory-common/src/lib/inventory-common/stock-issuances/stock-issue-form/stock-issue-form-button/stock-issue-form-button.component.html +20 -0
- package/projects/inventory-common/src/lib/inventory-common/stock-issuances/stock-issue-form/stock-issue-form-button/stock-issue-form-button.component.scss +0 -0
- package/projects/inventory-common/src/lib/inventory-common/stock-issuances/stock-issue-form/stock-issue-form-button/stock-issue-form-button.component.ts +35 -0
- package/projects/inventory-common/src/lib/inventory-common/stock-issuances/stock-issue-form/stock-issue-form.module.ts +29 -0
- package/projects/inventory-common/src/lib/inventory-common/stock-receipts/stock-receipt-delete-button/stock-receipt-delete-button.component.html +32 -0
- package/projects/inventory-common/src/lib/inventory-common/stock-receipts/stock-receipt-delete-button/stock-receipt-delete-button.component.scss +0 -0
- package/projects/inventory-common/src/lib/inventory-common/stock-receipts/stock-receipt-delete-button/stock-receipt-delete-button.component.ts +49 -0
- package/projects/inventory-common/src/lib/inventory-common/stock-receipts/stock-receipt-form/stock-receipt-form/stock-receipt-form.component.html +74 -0
- package/projects/inventory-common/src/lib/inventory-common/stock-receipts/stock-receipt-form/stock-receipt-form/stock-receipt-form.component.scss +0 -0
- package/projects/inventory-common/src/lib/inventory-common/stock-receipts/stock-receipt-form/stock-receipt-form/stock-receipt-form.component.ts +122 -0
- package/projects/inventory-common/src/lib/inventory-common/stock-receipts/stock-receipt-form/stock-receipt-form-button/stock-receipt-form-button.component.html +18 -0
- package/projects/inventory-common/src/lib/inventory-common/stock-receipts/stock-receipt-form/stock-receipt-form-button/stock-receipt-form-button.component.scss +0 -0
- package/projects/inventory-common/src/lib/inventory-common/stock-receipts/stock-receipt-form/stock-receipt-form-button/stock-receipt-form-button.component.ts +33 -0
- package/projects/inventory-common/src/lib/inventory-common/stock-receipts/stock-receipt-form/stock-receipt-form.module.ts +29 -0
- package/projects/inventory-common/src/lib/inventory-common/stock-receipts/stock-receipt.service.ts +11 -0
- package/projects/inventory-common/src/lib/inventory-common/stock-receipts/stock-receipts-list-page/stock-receipts-list-page.component.html +139 -0
- package/projects/inventory-common/src/lib/inventory-common/stock-receipts/stock-receipts-list-page/stock-receipts-list-page.component.scss +0 -0
- package/projects/inventory-common/src/lib/inventory-common/stock-receipts/stock-receipts-list-page/stock-receipts-list-page.component.ts +109 -0
- package/projects/inventory-common/src/lib/inventory-common/stock-receipts/stock-receipts-routing.module.ts +16 -0
- package/projects/inventory-common/src/lib/inventory-common/stock-receipts/stock-receipts.module.ts +45 -0
- package/projects/inventory-common/src/lib/inventory-common/stock-summary.service.ts +18 -0
- package/projects/inventory-common/src/lib/inventory-common/supplier/payee-selector/payee-selector/payee-selector.component.html +22 -0
- package/projects/inventory-common/src/lib/inventory-common/supplier/payee-selector/payee-selector/payee-selector.component.scss +0 -0
- package/projects/inventory-common/src/lib/inventory-common/supplier/payee-selector/payee-selector/payee-selector.component.ts +44 -0
- package/projects/inventory-common/src/lib/inventory-common/supplier/payee-selector/payee-selector.module.ts +19 -0
- package/projects/inventory-common/src/lib/inventory-common/supplier/supplier-delete-button/supplier-delete-button.component.css +0 -0
- package/projects/inventory-common/src/lib/inventory-common/supplier/supplier-delete-button/supplier-delete-button.component.html +3 -0
- package/projects/inventory-common/src/lib/inventory-common/supplier/supplier-delete-button/supplier-delete-button.component.spec.ts +28 -0
- package/projects/inventory-common/src/lib/inventory-common/supplier/supplier-delete-button/supplier-delete-button.component.ts +56 -0
- package/projects/inventory-common/src/lib/inventory-common/supplier/supplier-form/supplier-form-button/supplier-form-button.component.css +0 -0
- package/projects/inventory-common/src/lib/inventory-common/supplier/supplier-form/supplier-form-button/supplier-form-button.component.html +3 -0
- package/projects/inventory-common/src/lib/inventory-common/supplier/supplier-form/supplier-form-button/supplier-form-button.component.spec.ts +28 -0
- package/projects/inventory-common/src/lib/inventory-common/supplier/supplier-form/supplier-form-button/supplier-form-button.component.ts +40 -0
- package/projects/inventory-common/src/lib/inventory-common/supplier/supplier-form/supplier-form.component.html +100 -0
- package/projects/inventory-common/src/lib/inventory-common/supplier/supplier-form/supplier-form.component.ts +116 -0
- package/projects/inventory-common/src/lib/inventory-common/supplier/supplier-form/supplier-form.service.ts +11 -0
- package/projects/inventory-common/src/lib/inventory-common/supplier/supplier-information/supplier-information.component.html +67 -0
- package/projects/inventory-common/src/lib/inventory-common/supplier/supplier-information/supplier-information.component.scss +0 -0
- package/projects/inventory-common/src/lib/inventory-common/supplier/supplier-information/supplier-information.component.ts +68 -0
- package/projects/inventory-common/src/lib/inventory-common/supplier/supplier-routing.module.ts +32 -0
- package/projects/inventory-common/src/lib/inventory-common/supplier/supplier-type.service.ts +17 -0
- package/projects/inventory-common/src/lib/inventory-common/supplier/supplier-view/supplier-view.component.html +60 -0
- package/projects/inventory-common/src/lib/inventory-common/supplier/supplier-view/supplier-view.component.ts +58 -0
- package/projects/inventory-common/src/lib/inventory-common/supplier/supplier.component.html +3 -0
- package/projects/inventory-common/src/lib/inventory-common/supplier/supplier.component.scss +0 -0
- package/projects/inventory-common/src/lib/inventory-common/supplier/supplier.component.ts +16 -0
- package/projects/inventory-common/src/lib/inventory-common/supplier/supplier.module.ts +46 -0
- package/projects/inventory-common/src/lib/inventory-common/supplier/supplier.service.ts +57 -0
- package/projects/inventory-common/src/lib/inventory-common/supplier/suppliers-list/suppliers-list.component.html +98 -0
- package/projects/inventory-common/src/lib/inventory-common/supplier/suppliers-list/suppliers-list.component.ts +126 -0
- package/projects/inventory-common/src/lib/inventory-common/techlify-filter/techlify-filter.component.html +442 -0
- package/projects/inventory-common/src/lib/inventory-common/techlify-filter/techlify-filter.component.scss +0 -0
- package/projects/inventory-common/src/lib/inventory-common/techlify-filter/techlify-filter.component.ts +109 -0
- package/projects/inventory-common/src/lib/inventory-common/techlify-filter/techlify-filter.module.ts +24 -0
- package/projects/inventory-common/src/public-api.ts +10 -0
- package/projects/inventory-common/tsconfig.lib.json +17 -0
- package/projects/inventory-common/tsconfig.lib.prod.json +13 -0
- package/projects/inventory-common/tsconfig.spec.json +17 -0
- package/public_api.ts +23 -0
- package/releases/techlify-ng-users-0.0.4.tgz +0 -0
- package/releases/techlify-ng-users-0.0.5.tgz +0 -0
- package/src/.htaccess +19 -0
- package/src/app/@modules/@shared/print-button/print-button/print-button.component.html +3 -0
- package/src/app/@modules/@shared/print-button/print-button/print-button.component.scss +0 -0
- package/src/app/@modules/@shared/print-button/print-button/print-button.component.ts +11 -0
- package/src/app/@modules/@shared/print-button/print-button.module.ts +11 -0
- package/src/app/@modules/@shared/print-button/print.service.ts +38 -0
- package/src/app/@modules/@shared/techlify-form-service.ts +14 -0
- package/src/app/@modules/@shared/user-menu/user-menu.component.html +26 -0
- package/src/app/@modules/@shared/user-menu/user-menu.component.spec.ts +23 -0
- package/src/app/@modules/@shared/user-menu/user-menu.component.ts +46 -0
- package/src/app/@modules/@shared/user-menu/user-menu.module.ts +20 -0
- package/src/app/@modules/administration/administration-routing.module.ts +44 -0
- package/src/app/@modules/administration/administration.component.html +3 -0
- package/src/app/@modules/administration/administration.component.ts +11 -0
- package/src/app/@modules/administration/administration.module.ts +18 -0
- package/src/app/@modules/administration/administration.service.ts +33 -0
- package/src/app/@modules/auth/auth-routing.module.ts +17 -0
- package/src/app/@modules/auth/auth.module.ts +12 -0
- package/src/app/@modules/auth/login/login.component.html +302 -0
- package/src/app/@modules/auth/login/login.component.scss +43 -0
- package/src/app/@modules/auth/login/login.component.ts +57 -0
- package/src/app/@modules/inventory-common/category/category-form/category-form.component.html +41 -0
- package/src/app/@modules/inventory-common/category/category-form/category-form.component.scss +0 -0
- package/src/app/@modules/inventory-common/category/category-form/category-form.component.ts +75 -0
- package/src/app/@modules/inventory-common/category/category-form-button/category-form-button.component.html +32 -0
- package/src/app/@modules/inventory-common/category/category-form-button/category-form-button.component.scss +0 -0
- package/src/app/@modules/inventory-common/category/category-form-button/category-form-button.component.ts +29 -0
- package/src/app/@modules/inventory-common/category/category-list-page/category-list-page.component.html +79 -0
- package/src/app/@modules/inventory-common/category/category-list-page/category-list-page.component.scss +0 -0
- package/src/app/@modules/inventory-common/category/category-list-page/category-list-page.component.ts +61 -0
- package/src/app/@modules/inventory-common/category/category-routing.module.ts +16 -0
- package/src/app/@modules/inventory-common/category/category.module.ts +36 -0
- package/src/app/@modules/inventory-common/category/category.service.ts +11 -0
- package/src/app/@modules/inventory-common/inventory-common-routing.module.ts +55 -0
- package/src/app/@modules/inventory-common/inventory-common.module.ts +20 -0
- package/src/app/@modules/inventory-common/inventory-dashboard-page/inventory-dashboard-page.component.html +88 -0
- package/src/app/@modules/inventory-common/inventory-dashboard-page/inventory-dashboard-page.component.scss +0 -0
- package/src/app/@modules/inventory-common/inventory-dashboard-page/inventory-dashboard-page.component.ts +35 -0
- package/src/app/@modules/inventory-common/measure/measure-delete/measure-delete-button/measure-delete-button.component.html +37 -0
- package/src/app/@modules/inventory-common/measure/measure-delete/measure-delete-button/measure-delete-button.component.scss +0 -0
- package/src/app/@modules/inventory-common/measure/measure-delete/measure-delete-button/measure-delete-button.component.ts +44 -0
- package/src/app/@modules/inventory-common/measure/measure-delete/measure-delete.module.ts +11 -0
- package/src/app/@modules/inventory-common/measure/measure-form/measure-form/measure-form.component.html +66 -0
- package/src/app/@modules/inventory-common/measure/measure-form/measure-form/measure-form.component.scss +0 -0
- package/src/app/@modules/inventory-common/measure/measure-form/measure-form/measure-form.component.ts +78 -0
- package/src/app/@modules/inventory-common/measure/measure-form/measure-form-button/measure-form-button.component.html +16 -0
- package/src/app/@modules/inventory-common/measure/measure-form/measure-form-button/measure-form-button.component.scss +0 -0
- package/src/app/@modules/inventory-common/measure/measure-form/measure-form-button/measure-form-button.component.ts +29 -0
- package/src/app/@modules/inventory-common/measure/measure-form/measure-form.module.ts +13 -0
- package/src/app/@modules/inventory-common/measure/measure-routing.module.ts +16 -0
- package/src/app/@modules/inventory-common/measure/measure.module.ts +26 -0
- package/src/app/@modules/inventory-common/measure/measure.service.ts +11 -0
- package/src/app/@modules/inventory-common/measure/measures-list/measures-list.component.html +88 -0
- package/src/app/@modules/inventory-common/measure/measures-list/measures-list.component.scss +0 -0
- package/src/app/@modules/inventory-common/measure/measures-list/measures-list.component.ts +67 -0
- package/src/app/@modules/inventory-common/product/low-stock-products-widget/low-stock-products-widget.component.html +52 -0
- package/src/app/@modules/inventory-common/product/low-stock-products-widget/low-stock-products-widget.component.scss +0 -0
- package/src/app/@modules/inventory-common/product/low-stock-products-widget/low-stock-products-widget.component.ts +42 -0
- package/src/app/@modules/inventory-common/product/low-stock-products-widget/low-stock-products-widget.module.ts +20 -0
- package/src/app/@modules/inventory-common/product/product-basic-info/product-basic-info.component.html +114 -0
- package/src/app/@modules/inventory-common/product/product-basic-info/product-basic-info.component.scss +0 -0
- package/src/app/@modules/inventory-common/product/product-basic-info/product-basic-info.component.ts +43 -0
- package/src/app/@modules/inventory-common/product/product-delete-button/product-delete-button.component.html +33 -0
- package/src/app/@modules/inventory-common/product/product-delete-button/product-delete-button.component.scss +0 -0
- package/src/app/@modules/inventory-common/product/product-delete-button/product-delete-button.component.ts +53 -0
- package/src/app/@modules/inventory-common/product/product-form/product-form.component.html +209 -0
- package/src/app/@modules/inventory-common/product/product-form/product-form.component.spec.ts +24 -0
- package/src/app/@modules/inventory-common/product/product-form/product-form.component.ts +182 -0
- package/src/app/@modules/inventory-common/product/product-form-button/product-form-button.component.html +17 -0
- package/src/app/@modules/inventory-common/product/product-form-button/product-form-button.component.scss +0 -0
- package/src/app/@modules/inventory-common/product/product-form-button/product-form-button.component.ts +39 -0
- package/src/app/@modules/inventory-common/product/product-form.service.ts +11 -0
- package/src/app/@modules/inventory-common/product/product-import-page/product-import-page.component.html +1 -0
- package/src/app/@modules/inventory-common/product/product-import-page/product-import-page.component.scss +0 -0
- package/src/app/@modules/inventory-common/product/product-import-page/product-import-page.component.ts +66 -0
- package/src/app/@modules/inventory-common/product/product-list/product-list.component.html +229 -0
- package/src/app/@modules/inventory-common/product/product-list/product-list.component.spec.ts +24 -0
- package/src/app/@modules/inventory-common/product/product-list/product-list.component.ts +176 -0
- package/src/app/@modules/inventory-common/product/product-measure-form/product-measure-form.component.html +44 -0
- package/src/app/@modules/inventory-common/product/product-measure-form/product-measure-form.component.spec.ts +24 -0
- package/src/app/@modules/inventory-common/product/product-measure-form/product-measure-form.component.ts +93 -0
- package/src/app/@modules/inventory-common/product/product-measures-list/product-measures-list.component.html +90 -0
- package/src/app/@modules/inventory-common/product/product-measures-list/product-measures-list.component.spec.ts +24 -0
- package/src/app/@modules/inventory-common/product/product-measures-list/product-measures-list.component.ts +153 -0
- package/src/app/@modules/inventory-common/product/product-nav-bar/product-nav-bar.component.html +3 -0
- package/src/app/@modules/inventory-common/product/product-nav-bar/product-nav-bar.component.spec.ts +24 -0
- package/src/app/@modules/inventory-common/product/product-nav-bar/product-nav-bar.component.ts +7 -0
- package/src/app/@modules/inventory-common/product/product-routing.module.ts +49 -0
- package/src/app/@modules/inventory-common/product/product-search/product-search.component.html +78 -0
- package/src/app/@modules/inventory-common/product/product-search/product-search.component.scss +12 -0
- package/src/app/@modules/inventory-common/product/product-search/product-search.component.ts +153 -0
- package/src/app/@modules/inventory-common/product/product-search/product-search.module.ts +22 -0
- package/src/app/@modules/inventory-common/product/product-summary-chart/product-summary-chart.component.html +17 -0
- package/src/app/@modules/inventory-common/product/product-summary-chart/product-summary-chart.component.scss +0 -0
- package/src/app/@modules/inventory-common/product/product-summary-chart/product-summary-chart.component.ts +45 -0
- package/src/app/@modules/inventory-common/product/product-summary-chart/product-summary-chart.module.ts +18 -0
- package/src/app/@modules/inventory-common/product/product-tax/product-tax-delete-button/product-tax-delete-button.component.html +32 -0
- package/src/app/@modules/inventory-common/product/product-tax/product-tax-delete-button/product-tax-delete-button.component.scss +0 -0
- package/src/app/@modules/inventory-common/product/product-tax/product-tax-delete-button/product-tax-delete-button.component.ts +55 -0
- package/src/app/@modules/inventory-common/product/product-tax/product-tax-form-button/product-tax-form-button.component.html +49 -0
- package/src/app/@modules/inventory-common/product/product-tax/product-tax-form-button/product-tax-form-button.component.scss +0 -0
- package/src/app/@modules/inventory-common/product/product-tax/product-tax-form-button/product-tax-form-button.component.ts +87 -0
- package/src/app/@modules/inventory-common/product/product-tax/product-tax-list/product-tax-list.component.html +48 -0
- package/src/app/@modules/inventory-common/product/product-tax/product-tax-list/product-tax-list.component.scss +0 -0
- package/src/app/@modules/inventory-common/product/product-tax/product-tax-list/product-tax-list.component.ts +33 -0
- package/src/app/@modules/inventory-common/product/product-tax/product-tax.module.ts +23 -0
- package/src/app/@modules/inventory-common/product/product-tax/product-tax.service.ts +11 -0
- package/src/app/@modules/inventory-common/product/product-view-page/product-view-page.component.html +34 -0
- package/src/app/@modules/inventory-common/product/product-view-page/product-view-page.component.ts +63 -0
- package/src/app/@modules/inventory-common/product/product.module.ts +67 -0
- package/src/app/@modules/inventory-common/product/product.service.ts +54 -0
- package/src/app/@modules/inventory-common/stock-issuances/stock-issuance-delete-button/stock-issuance-delete-button.component.html +32 -0
- package/src/app/@modules/inventory-common/stock-issuances/stock-issuance-delete-button/stock-issuance-delete-button.component.scss +0 -0
- package/src/app/@modules/inventory-common/stock-issuances/stock-issuance-delete-button/stock-issuance-delete-button.component.ts +49 -0
- package/src/app/@modules/inventory-common/stock-issuances/stock-issuance-delete-button/stock-issuance-delete-button.module.ts +11 -0
- package/src/app/@modules/inventory-common/stock-issuances/stock-issuance.service.ts +11 -0
- package/src/app/@modules/inventory-common/stock-issuances/stock-issuances-list/stock-issuances-list.component.html +165 -0
- package/src/app/@modules/inventory-common/stock-issuances/stock-issuances-list/stock-issuances-list.component.scss +0 -0
- package/src/app/@modules/inventory-common/stock-issuances/stock-issuances-list/stock-issuances-list.component.ts +113 -0
- package/src/app/@modules/inventory-common/stock-issuances/stock-issuances-list/stock-issuances-list.module.ts +26 -0
- package/src/app/@modules/inventory-common/stock-issuances/stock-issuances-routing.module.ts +16 -0
- package/src/app/@modules/inventory-common/stock-issuances/stock-issuances.module.ts +36 -0
- package/src/app/@modules/inventory-common/stock-issuances/stock-issue-form/stock-issue-form/stock-issue-form.component.html +64 -0
- package/src/app/@modules/inventory-common/stock-issuances/stock-issue-form/stock-issue-form/stock-issue-form.component.scss +0 -0
- package/src/app/@modules/inventory-common/stock-issuances/stock-issue-form/stock-issue-form/stock-issue-form.component.ts +115 -0
- package/src/app/@modules/inventory-common/stock-issuances/stock-issue-form/stock-issue-form-button/stock-issue-form-button.component.html +20 -0
- package/src/app/@modules/inventory-common/stock-issuances/stock-issue-form/stock-issue-form-button/stock-issue-form-button.component.scss +0 -0
- package/src/app/@modules/inventory-common/stock-issuances/stock-issue-form/stock-issue-form-button/stock-issue-form-button.component.ts +35 -0
- package/src/app/@modules/inventory-common/stock-issuances/stock-issue-form/stock-issue-form.module.ts +29 -0
- package/src/app/@modules/inventory-common/stock-receipts/stock-receipt-delete-button/stock-receipt-delete-button.component.html +32 -0
- package/src/app/@modules/inventory-common/stock-receipts/stock-receipt-delete-button/stock-receipt-delete-button.component.scss +0 -0
- package/src/app/@modules/inventory-common/stock-receipts/stock-receipt-delete-button/stock-receipt-delete-button.component.ts +49 -0
- package/src/app/@modules/inventory-common/stock-receipts/stock-receipt-form/stock-receipt-form/stock-receipt-form.component.html +74 -0
- package/src/app/@modules/inventory-common/stock-receipts/stock-receipt-form/stock-receipt-form/stock-receipt-form.component.scss +0 -0
- package/src/app/@modules/inventory-common/stock-receipts/stock-receipt-form/stock-receipt-form/stock-receipt-form.component.ts +122 -0
- package/src/app/@modules/inventory-common/stock-receipts/stock-receipt-form/stock-receipt-form-button/stock-receipt-form-button.component.html +18 -0
- package/src/app/@modules/inventory-common/stock-receipts/stock-receipt-form/stock-receipt-form-button/stock-receipt-form-button.component.scss +0 -0
- package/src/app/@modules/inventory-common/stock-receipts/stock-receipt-form/stock-receipt-form-button/stock-receipt-form-button.component.ts +33 -0
- package/src/app/@modules/inventory-common/stock-receipts/stock-receipt-form/stock-receipt-form.module.ts +29 -0
- package/src/app/@modules/inventory-common/stock-receipts/stock-receipt.service.ts +11 -0
- package/src/app/@modules/inventory-common/stock-receipts/stock-receipts-list-page/stock-receipts-list-page.component.html +139 -0
- package/src/app/@modules/inventory-common/stock-receipts/stock-receipts-list-page/stock-receipts-list-page.component.scss +0 -0
- package/src/app/@modules/inventory-common/stock-receipts/stock-receipts-list-page/stock-receipts-list-page.component.ts +109 -0
- package/src/app/@modules/inventory-common/stock-receipts/stock-receipts-routing.module.ts +16 -0
- package/src/app/@modules/inventory-common/stock-receipts/stock-receipts.module.ts +45 -0
- package/src/app/@modules/inventory-common/stock-summary.service.ts +18 -0
- package/src/app/@modules/inventory-common/supplier/payee-selector/payee-selector/payee-selector.component.html +22 -0
- package/src/app/@modules/inventory-common/supplier/payee-selector/payee-selector/payee-selector.component.scss +0 -0
- package/src/app/@modules/inventory-common/supplier/payee-selector/payee-selector/payee-selector.component.ts +44 -0
- package/src/app/@modules/inventory-common/supplier/payee-selector/payee-selector.module.ts +19 -0
- package/src/app/@modules/inventory-common/supplier/supplier-form/supplier-form.component.html +133 -0
- package/src/app/@modules/inventory-common/supplier/supplier-form/supplier-form.component.ts +116 -0
- package/src/app/@modules/inventory-common/supplier/supplier-form/supplier-form.service.ts +11 -0
- package/src/app/@modules/inventory-common/supplier/supplier-information/supplier-information.component.html +67 -0
- package/src/app/@modules/inventory-common/supplier/supplier-information/supplier-information.component.scss +0 -0
- package/src/app/@modules/inventory-common/supplier/supplier-information/supplier-information.component.ts +68 -0
- package/src/app/@modules/inventory-common/supplier/supplier-routing.module.ts +32 -0
- package/src/app/@modules/inventory-common/supplier/supplier-type.service.ts +17 -0
- package/src/app/@modules/inventory-common/supplier/supplier-view/supplier-view.component.html +60 -0
- package/src/app/@modules/inventory-common/supplier/supplier-view/supplier-view.component.ts +58 -0
- package/src/app/@modules/inventory-common/supplier/supplier.component.html +3 -0
- package/src/app/@modules/inventory-common/supplier/supplier.component.scss +0 -0
- package/src/app/@modules/inventory-common/supplier/supplier.component.ts +16 -0
- package/src/app/@modules/inventory-common/supplier/supplier.module.ts +42 -0
- package/src/app/@modules/inventory-common/supplier/supplier.service.ts +57 -0
- package/src/app/@modules/inventory-common/supplier/suppliers-list/suppliers-list.component.html +140 -0
- package/src/app/@modules/inventory-common/supplier/suppliers-list/suppliers-list.component.ts +240 -0
- package/src/app/@modules/sidebar-layout/expandable-menu/expandable-menu.component.html +10 -0
- package/src/app/@modules/sidebar-layout/expandable-menu/expandable-menu.component.scss +20 -0
- package/src/app/@modules/sidebar-layout/expandable-menu/expandable-menu.component.ts +24 -0
- package/src/app/@modules/sidebar-layout/menu-item.model.ts +12 -0
- package/src/app/@modules/sidebar-layout/sidebar-administration-menu/sidebar-administration-menu.component.html +26 -0
- package/src/app/@modules/sidebar-layout/sidebar-administration-menu/sidebar-administration-menu.component.ts +23 -0
- package/src/app/@modules/sidebar-layout/sidebar-layout/sidebar-layout.component.html +32 -0
- package/src/app/@modules/sidebar-layout/sidebar-layout/sidebar-layout.component.scss +48 -0
- package/src/app/@modules/sidebar-layout/sidebar-layout/sidebar-layout.component.ts +173 -0
- package/src/app/@modules/sidebar-layout/sidebar-layout-routing.module.ts +52 -0
- package/src/app/@modules/sidebar-layout/sidebar-layout.module.ts +52 -0
- package/src/app/@modules/sidebar-layout/top-menu/top-menu.component.html +85 -0
- package/src/app/@modules/sidebar-layout/top-menu/top-menu.component.scss +0 -0
- package/src/app/@modules/sidebar-layout/top-menu/top-menu.component.ts +46 -0
- package/src/app/@modules/sidebar-layout/top-menu/top-menu.service.ts +29 -0
- package/src/app/@modules/techlify-filter/techlify-filter.component.html +442 -0
- package/src/app/@modules/techlify-filter/techlify-filter.component.scss +0 -0
- package/src/app/@modules/techlify-filter/techlify-filter.component.ts +109 -0
- package/src/app/@modules/techlify-filter/techlify-filter.module.ts +24 -0
- package/src/app/@modules/user/user-layout/user-layout.component.html +15 -0
- package/src/app/@modules/user/user-layout/user-layout.component.scss +0 -0
- package/src/app/@modules/user/user-layout/user-layout.component.ts +12 -0
- package/src/app/@modules/user/user-routing.module.ts +23 -0
- package/src/app/@modules/user/user.module.ts +13 -0
- package/src/app/@modules/user-setting-button/user-setting-button/user-setting-button.component.html +15 -0
- package/src/app/@modules/user-setting-button/user-setting-button/user-setting-button.component.scss +0 -0
- package/src/app/@modules/user-setting-button/user-setting-button/user-setting-button.component.ts +12 -0
- package/src/app/@modules/user-setting-button/user-setting-button.module.ts +20 -0
- package/src/app/app-routing.module.ts +28 -0
- package/src/app/app.component.html +1 -0
- package/src/app/app.component.scss +43 -0
- package/src/app/app.component.spec.ts +18 -0
- package/src/app/app.component.ts +62 -0
- package/src/app/app.module.ts +73 -0
- package/src/app/material.module.ts +95 -0
- package/src/assets/.gitkeep +0 -0
- package/src/assets/images/techlify-logo-xs.png +0 -0
- package/src/assets/product/product-import-sample.csv +1 -0
- package/src/environments/common-environment.ts +36 -0
- package/src/environments/environment.prod.ts +10 -0
- package/src/environments/environment.staging.ts +19 -0
- package/src/environments/environment.ts +18 -0
- package/src/favicon.ico +0 -0
- package/src/index.html +34 -0
- package/src/main.ts +19 -0
- package/src/polyfills.ts +57 -0
- package/src/styles.scss +366 -0
- package/src/test.ts +12 -0
- package/src/theme/theme-variables.scss +132 -0
- package/src/theme/theme.scss +17 -0
- package/src/tsconfig.app.json +15 -0
- package/src/tsconfig.spec.json +14 -0
- package/tsconfig.app.json +17 -0
- package/tsconfig.json +69 -0
- package/tslint.json +130 -0
package/.editorconfig
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Editor configuration, see http://editorconfig.org
|
|
2
|
+
root = true
|
|
3
|
+
|
|
4
|
+
[*]
|
|
5
|
+
charset = utf-8
|
|
6
|
+
indent_style = space
|
|
7
|
+
indent_size = 2
|
|
8
|
+
insert_final_newline = true
|
|
9
|
+
trim_trailing_whitespace = true
|
|
10
|
+
|
|
11
|
+
[*.md]
|
|
12
|
+
max_line_length = off
|
|
13
|
+
trim_trailing_whitespace = false
|
package/README.md
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# TechlifyServices
|
|
2
|
+
|
|
3
|
+
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 6.0.7.
|
|
4
|
+
|
|
5
|
+
## Development server
|
|
6
|
+
|
|
7
|
+
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.
|
|
8
|
+
|
|
9
|
+
## Code scaffolding
|
|
10
|
+
|
|
11
|
+
Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`.
|
|
12
|
+
|
|
13
|
+
## Build
|
|
14
|
+
|
|
15
|
+
Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--prod` flag for a production build.
|
|
16
|
+
|
|
17
|
+
## Running unit tests
|
|
18
|
+
|
|
19
|
+
Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).
|
|
20
|
+
|
|
21
|
+
## Running end-to-end tests
|
|
22
|
+
|
|
23
|
+
Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).
|
|
24
|
+
|
|
25
|
+
## Further help
|
|
26
|
+
|
|
27
|
+
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).
|
package/angular.json
ADDED
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
|
|
3
|
+
"version": 1,
|
|
4
|
+
"newProjectRoot": "projects",
|
|
5
|
+
"projects": {
|
|
6
|
+
"techlify-inventory-common": {
|
|
7
|
+
"root": "",
|
|
8
|
+
"sourceRoot": "src",
|
|
9
|
+
"projectType": "application",
|
|
10
|
+
"prefix": "app",
|
|
11
|
+
"schematics": {},
|
|
12
|
+
"architect": {
|
|
13
|
+
"build": {
|
|
14
|
+
"builder": "@angular-devkit/build-angular:browser",
|
|
15
|
+
"options": {
|
|
16
|
+
"outputPath": "dist/techlify-inventory-common",
|
|
17
|
+
"index": "src/index.html",
|
|
18
|
+
"main": "src/main.ts",
|
|
19
|
+
"polyfills": "src/polyfills.ts",
|
|
20
|
+
"tsConfig": "tsconfig.app.json",
|
|
21
|
+
"inlineStyleLanguage": "scss",
|
|
22
|
+
"assets": [
|
|
23
|
+
"src/favicon.ico",
|
|
24
|
+
"src/assets",
|
|
25
|
+
"src/.htaccess"
|
|
26
|
+
],
|
|
27
|
+
"styles": [
|
|
28
|
+
"src/styles.scss",
|
|
29
|
+
"node_modules/bootstrap/dist/css/bootstrap.min.css"
|
|
30
|
+
],
|
|
31
|
+
"scripts": [
|
|
32
|
+
"node_modules/bootstrap/dist/js/bootstrap.min.js"
|
|
33
|
+
]
|
|
34
|
+
},
|
|
35
|
+
"configurations": {
|
|
36
|
+
"production": {
|
|
37
|
+
"budgets": [
|
|
38
|
+
{
|
|
39
|
+
"type": "initial",
|
|
40
|
+
"maximumWarning": "2mb",
|
|
41
|
+
"maximumError": "5mb"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"type": "anyComponentStyle",
|
|
45
|
+
"maximumWarning": "6kb",
|
|
46
|
+
"maximumError": "10kb"
|
|
47
|
+
}
|
|
48
|
+
],
|
|
49
|
+
"serviceWorker": false,
|
|
50
|
+
"fileReplacements": [
|
|
51
|
+
{
|
|
52
|
+
"replace": "src/environments/environment.ts",
|
|
53
|
+
"with": "src/environments/environment.prod.ts"
|
|
54
|
+
}
|
|
55
|
+
],
|
|
56
|
+
"outputHashing": "all"
|
|
57
|
+
},
|
|
58
|
+
"staging": {
|
|
59
|
+
"budgets": [
|
|
60
|
+
{
|
|
61
|
+
"type": "initial",
|
|
62
|
+
"maximumWarning": "2mb",
|
|
63
|
+
"maximumError": "5mb"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"type": "anyComponentStyle",
|
|
67
|
+
"maximumWarning": "6kb",
|
|
68
|
+
"maximumError": "10kb"
|
|
69
|
+
}
|
|
70
|
+
],
|
|
71
|
+
"serviceWorker": false,
|
|
72
|
+
"fileReplacements": [
|
|
73
|
+
{
|
|
74
|
+
"replace": "src/environments/environment.ts",
|
|
75
|
+
"with": "src/environments/environment.staging.ts"
|
|
76
|
+
}
|
|
77
|
+
],
|
|
78
|
+
"outputHashing": "all"
|
|
79
|
+
},
|
|
80
|
+
"development": {
|
|
81
|
+
"buildOptimizer": false,
|
|
82
|
+
"optimization": false,
|
|
83
|
+
"vendorChunk": true,
|
|
84
|
+
"extractLicenses": false,
|
|
85
|
+
"sourceMap": true,
|
|
86
|
+
"namedChunks": true
|
|
87
|
+
},
|
|
88
|
+
"ci": {
|
|
89
|
+
"progress": false
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
"defaultConfiguration": "production"
|
|
93
|
+
},
|
|
94
|
+
"serve": {
|
|
95
|
+
"builder": "@angular-devkit/build-angular:dev-server",
|
|
96
|
+
"configurations": {
|
|
97
|
+
"production": {
|
|
98
|
+
"buildTarget": "techlify-inventory-common:build:production"
|
|
99
|
+
},
|
|
100
|
+
"development": {
|
|
101
|
+
"buildTarget": "techlify-inventory-common:build:development"
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
"defaultConfiguration": "development"
|
|
105
|
+
},
|
|
106
|
+
"extract-i18n": {
|
|
107
|
+
"builder": "@angular-devkit/build-angular:extract-i18n",
|
|
108
|
+
"options": {
|
|
109
|
+
"browserTarget": "techlify-inventory-common:build"
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
"test": {
|
|
113
|
+
"builder": "@angular-devkit/build-angular:karma",
|
|
114
|
+
"options": {
|
|
115
|
+
"main": "src/test.ts",
|
|
116
|
+
"polyfills": "src/polyfills.ts",
|
|
117
|
+
"tsConfig": "src/tsconfig.spec.json",
|
|
118
|
+
"karmaConfig": "src/karma.conf.js",
|
|
119
|
+
"styles": [
|
|
120
|
+
"src/styles.css"
|
|
121
|
+
],
|
|
122
|
+
"scripts": [],
|
|
123
|
+
"assets": [
|
|
124
|
+
"src/favicon.ico",
|
|
125
|
+
"src/assets"
|
|
126
|
+
]
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
"lint": {
|
|
130
|
+
"builder": "@angular-devkit/build-angular:tslint",
|
|
131
|
+
"options": {
|
|
132
|
+
"tsConfig": [
|
|
133
|
+
"src/tsconfig.app.json",
|
|
134
|
+
"src/tsconfig.spec.json"
|
|
135
|
+
],
|
|
136
|
+
"exclude": [
|
|
137
|
+
"**/node_modules/**"
|
|
138
|
+
]
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
"techlify-inventory-common-e2e": {
|
|
144
|
+
"root": "e2e/",
|
|
145
|
+
"projectType": "application",
|
|
146
|
+
"architect": {
|
|
147
|
+
"e2e": {
|
|
148
|
+
"builder": "@angular-devkit/build-angular:protractor",
|
|
149
|
+
"options": {
|
|
150
|
+
"protractorConfig": "e2e/protractor.conf.js",
|
|
151
|
+
"devServerTarget": "techlify-inventory-common:serve"
|
|
152
|
+
},
|
|
153
|
+
"configurations": {
|
|
154
|
+
"production": {
|
|
155
|
+
"devServerTarget": "techlify-inventory-common:serve:production"
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
"lint": {
|
|
160
|
+
"builder": "@angular-devkit/build-angular:tslint",
|
|
161
|
+
"options": {
|
|
162
|
+
"tsConfig": "e2e/tsconfig.e2e.json",
|
|
163
|
+
"exclude": [
|
|
164
|
+
"**/node_modules/**"
|
|
165
|
+
]
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
"inventory-common": {
|
|
171
|
+
"projectType": "library",
|
|
172
|
+
"root": "projects/inventory-common",
|
|
173
|
+
"sourceRoot": "projects/inventory-common/src",
|
|
174
|
+
"prefix": "lib",
|
|
175
|
+
"architect": {
|
|
176
|
+
"build": {
|
|
177
|
+
"builder": "@angular-devkit/build-angular:ng-packagr",
|
|
178
|
+
"options": {
|
|
179
|
+
"project": "projects/inventory-common/ng-package.json"
|
|
180
|
+
},
|
|
181
|
+
"configurations": {
|
|
182
|
+
"production": {
|
|
183
|
+
"tsConfig": "projects/inventory-common/tsconfig.lib.prod.json"
|
|
184
|
+
},
|
|
185
|
+
"development": {
|
|
186
|
+
"tsConfig": "projects/inventory-common/tsconfig.lib.json"
|
|
187
|
+
}
|
|
188
|
+
},
|
|
189
|
+
"defaultConfiguration": "production"
|
|
190
|
+
},
|
|
191
|
+
"test": {
|
|
192
|
+
"builder": "@angular-devkit/build-angular:karma",
|
|
193
|
+
"options": {
|
|
194
|
+
"tsConfig": "projects/inventory-common/tsconfig.spec.json",
|
|
195
|
+
"polyfills": [
|
|
196
|
+
"zone.js",
|
|
197
|
+
"zone.js/testing"
|
|
198
|
+
]
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
},
|
|
204
|
+
"cli": {
|
|
205
|
+
"analytics": "7345b177-b652-463a-b3a9-86a94e3dc50a"
|
|
206
|
+
}
|
|
207
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// Protractor configuration file, see link for more information
|
|
2
|
+
// https://github.com/angular/protractor/blob/master/lib/config.ts
|
|
3
|
+
|
|
4
|
+
const { SpecReporter } = require('jasmine-spec-reporter');
|
|
5
|
+
|
|
6
|
+
exports.config = {
|
|
7
|
+
allScriptsTimeout: 11000,
|
|
8
|
+
specs: [
|
|
9
|
+
'./src/**/*.e2e-spec.ts'
|
|
10
|
+
],
|
|
11
|
+
capabilities: {
|
|
12
|
+
'browserName': 'chrome'
|
|
13
|
+
},
|
|
14
|
+
directConnect: true,
|
|
15
|
+
baseUrl: 'http://localhost:4200/',
|
|
16
|
+
framework: 'jasmine',
|
|
17
|
+
jasmineNodeOpts: {
|
|
18
|
+
showColors: true,
|
|
19
|
+
defaultTimeoutInterval: 30000,
|
|
20
|
+
print: function() {}
|
|
21
|
+
},
|
|
22
|
+
onPrepare() {
|
|
23
|
+
require('ts-node').register({
|
|
24
|
+
project: require('path').join(__dirname, './tsconfig.e2e.json')
|
|
25
|
+
});
|
|
26
|
+
jasmine.getEnv().addReporter(new SpecReporter({ spec: { displayStacktrace: true } }));
|
|
27
|
+
}
|
|
28
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { AppPage } from './app.po';
|
|
2
|
+
|
|
3
|
+
describe('workspace-project App', () => {
|
|
4
|
+
let page: AppPage;
|
|
5
|
+
|
|
6
|
+
beforeEach(() => {
|
|
7
|
+
page = new AppPage();
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
it('should display welcome message', () => {
|
|
11
|
+
page.navigateTo();
|
|
12
|
+
expect(page.getParagraphText()).toEqual('Welcome to techlify-services!');
|
|
13
|
+
});
|
|
14
|
+
});
|
package/ng-package.json
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "techlify-inventory-common",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"scripts": {
|
|
5
|
+
"ng": "ng",
|
|
6
|
+
"start": "ng serve",
|
|
7
|
+
"build:prod": "ng build -c production",
|
|
8
|
+
"build:staging": "ng build -c staging",
|
|
9
|
+
"watch": "ng build --watch --configuration development",
|
|
10
|
+
"lint": "ng lint && stylelint \"src/**/*.scss\"",
|
|
11
|
+
"test": "ng test",
|
|
12
|
+
"test:ci": "ng run ap-ui:test:ci",
|
|
13
|
+
"translations:extract": "ngx-translate-extract --input ./src --output ./src/translations/template.json --format=json --clean --sort",
|
|
14
|
+
"prettier": "prettier --write \"./src/**/*.{ts,js,html,scss}\"",
|
|
15
|
+
"prettier:check": "prettier --list-different \"./src/**/*.{ts,js,html,scss}\"",
|
|
16
|
+
"postinstall": "npm run prettier -s && husky install"
|
|
17
|
+
},
|
|
18
|
+
"private": false,
|
|
19
|
+
"dependencies": {
|
|
20
|
+
"@angular/animations": "~18.2.13",
|
|
21
|
+
"@angular/cdk": "~18.2.14",
|
|
22
|
+
"@angular/common": "~18.2.13",
|
|
23
|
+
"@angular/compiler": "~18.2.13",
|
|
24
|
+
"@angular/core": "~18.2.13",
|
|
25
|
+
"@angular/flex-layout": "^14.0.0-beta.40",
|
|
26
|
+
"@angular/forms": "~18.2.13",
|
|
27
|
+
"@angular/localize": "~18.2.13",
|
|
28
|
+
"@angular/material": "^18.2.14",
|
|
29
|
+
"@angular/platform-browser": "~18.2.13",
|
|
30
|
+
"@angular/platform-browser-dynamic": "~18.2.13",
|
|
31
|
+
"@angular/router": "~18.2.13",
|
|
32
|
+
"@ngx-translate/core": "^14.0.0",
|
|
33
|
+
"angular-google-charts": "^16.0.2",
|
|
34
|
+
"bootstrap": "5.3",
|
|
35
|
+
"dayjs": "^1.11.7",
|
|
36
|
+
"install": "^0.13.0",
|
|
37
|
+
"material-design-icons-iconfont": "^6.1.0",
|
|
38
|
+
"ngx-avatars": "^1.8.0",
|
|
39
|
+
"ngx-infinite-scroll": "^19.0.0",
|
|
40
|
+
"ngx-permissions": "^19.0.0",
|
|
41
|
+
"ngx-spinner": "^14.0.0",
|
|
42
|
+
"ngx-techlify-core": "^18.3.2",
|
|
43
|
+
"npm": "^11.3.0",
|
|
44
|
+
"rxjs": "^7.5.0",
|
|
45
|
+
"tslib": "^2.3.0",
|
|
46
|
+
"zone.js": "~0.14.10"
|
|
47
|
+
},
|
|
48
|
+
"devDependencies": {
|
|
49
|
+
"@angular-devkit/build-angular": "~18.2.18",
|
|
50
|
+
"@angular-devkit/build-ng-packagr": "^0.1002.0",
|
|
51
|
+
"@angular-eslint/builder": "~14.0.3",
|
|
52
|
+
"@angular-eslint/eslint-plugin": "~14.0.3",
|
|
53
|
+
"@angular-eslint/eslint-plugin-template": "~14.0.3",
|
|
54
|
+
"@angular-eslint/schematics": "~14.0.3",
|
|
55
|
+
"@angular-eslint/template-parser": "~14.0.3",
|
|
56
|
+
"@angular/cli": "~18.2.18",
|
|
57
|
+
"@angular/compiler-cli": "~18.2.13",
|
|
58
|
+
"@angular/language-service": "~18.2.13",
|
|
59
|
+
"@biesbjerg/ngx-translate-extract": "^7.0.3",
|
|
60
|
+
"@biesbjerg/ngx-translate-extract-marker": "^1.0.0",
|
|
61
|
+
"@ngneat/until-destroy": "^9.0.0",
|
|
62
|
+
"@types/jasmine": "^4.0.0",
|
|
63
|
+
"@types/jasminewd2": "^2.0.8",
|
|
64
|
+
"@types/node": "^14.18.26",
|
|
65
|
+
"@typescript-eslint/eslint-plugin": "~5.34.0",
|
|
66
|
+
"@typescript-eslint/parser": "~5.34.0",
|
|
67
|
+
"eslint": "^8.3.0",
|
|
68
|
+
"eslint-plugin-import": "latest",
|
|
69
|
+
"eslint-plugin-jsdoc": "latest",
|
|
70
|
+
"eslint-plugin-prefer-arrow": "latest",
|
|
71
|
+
"https-proxy-agent": "^5.0.0",
|
|
72
|
+
"husky": "^8.0.1",
|
|
73
|
+
"jasmine-core": "~4.2.0",
|
|
74
|
+
"jasmine-spec-reporter": "~7.0.0",
|
|
75
|
+
"karma": "~6.4.0",
|
|
76
|
+
"karma-chrome-launcher": "~3.1.0",
|
|
77
|
+
"karma-coverage": "~2.2.0",
|
|
78
|
+
"karma-jasmine": "~5.1.0",
|
|
79
|
+
"karma-jasmine-html-reporter": "~2.0.0",
|
|
80
|
+
"karma-junit-reporter": "^2.0.1",
|
|
81
|
+
"ng-packagr": "^18.2.1",
|
|
82
|
+
"postcss": "^8.4.5",
|
|
83
|
+
"prettier": "^2.2.1",
|
|
84
|
+
"pretty-quick": "^3.1.0",
|
|
85
|
+
"stylelint": "~14.11.0",
|
|
86
|
+
"stylelint-config-prettier": "^9.0.3",
|
|
87
|
+
"stylelint-config-recommended-scss": "~7.0.0",
|
|
88
|
+
"stylelint-config-standard": "~28.0.0",
|
|
89
|
+
"ts-node": "^10.1.0",
|
|
90
|
+
"typescript": "~5.4.5"
|
|
91
|
+
}
|
|
92
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# InventoryCommon
|
|
2
|
+
|
|
3
|
+
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 18.2.0.
|
|
4
|
+
|
|
5
|
+
## Code scaffolding
|
|
6
|
+
|
|
7
|
+
Run `ng generate component component-name --project inventory-common` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project inventory-common`.
|
|
8
|
+
> Note: Don't forget to add `--project inventory-common` or else it will be added to the default project in your `angular.json` file.
|
|
9
|
+
|
|
10
|
+
## Build
|
|
11
|
+
|
|
12
|
+
Run `ng build inventory-common` to build the project. The build artifacts will be stored in the `dist/` directory.
|
|
13
|
+
|
|
14
|
+
## Publishing
|
|
15
|
+
|
|
16
|
+
After building your library with `ng build inventory-common`, go to the dist folder `cd dist/inventory-common` and run `npm publish`.
|
|
17
|
+
|
|
18
|
+
## Running unit tests
|
|
19
|
+
|
|
20
|
+
Run `ng test inventory-common` to execute the unit tests via [Karma](https://karma-runner.github.io).
|
|
21
|
+
|
|
22
|
+
## Further help
|
|
23
|
+
|
|
24
|
+
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.dev/tools/cli) page.
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
<form
|
|
2
|
+
[formGroup]="form"
|
|
3
|
+
(submit)="save()"
|
|
4
|
+
class="d-flex flex-column justify-content-start"
|
|
5
|
+
>
|
|
6
|
+
<mat-form-field>
|
|
7
|
+
<mat-label>Title</mat-label>
|
|
8
|
+
<input type="text" matInput formControlName="title" placeholder="Title" />
|
|
9
|
+
<mat-error *ngIf="isFieldValid('title')">
|
|
10
|
+
{{ getErrorMessage("title") }}
|
|
11
|
+
</mat-error>
|
|
12
|
+
</mat-form-field>
|
|
13
|
+
|
|
14
|
+
<mat-form-field>
|
|
15
|
+
<mat-label>Description</mat-label>
|
|
16
|
+
<textarea
|
|
17
|
+
matInput
|
|
18
|
+
formControlName="description"
|
|
19
|
+
placeholder="Description"
|
|
20
|
+
></textarea>
|
|
21
|
+
</mat-form-field>
|
|
22
|
+
|
|
23
|
+
<div class="d-flex justify-content-end align-items-center gap-2">
|
|
24
|
+
<button
|
|
25
|
+
[disabled]="isSaving"
|
|
26
|
+
type="submit"
|
|
27
|
+
mat-raised-button
|
|
28
|
+
color="primary"
|
|
29
|
+
>
|
|
30
|
+
Save
|
|
31
|
+
</button>
|
|
32
|
+
<button
|
|
33
|
+
[disabled]="isSaving"
|
|
34
|
+
type="button"
|
|
35
|
+
mat-flat-button
|
|
36
|
+
(click)="cancelled.emit()"
|
|
37
|
+
>
|
|
38
|
+
Cancel
|
|
39
|
+
</button>
|
|
40
|
+
</div>
|
|
41
|
+
</form>
|
|
File without changes
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { Component, EventEmitter, Input, OnInit, Output } from "@angular/core";
|
|
2
|
+
import {
|
|
3
|
+
AlertService,
|
|
4
|
+
FormValidatorService,
|
|
5
|
+
TechlifyFormComponentInterface,
|
|
6
|
+
} from "ngx-techlify-core";
|
|
7
|
+
import { FormBuilder, Validators } from "@angular/forms";
|
|
8
|
+
import { CategoryService } from "../category.service";
|
|
9
|
+
import { Observable } from "rxjs";
|
|
10
|
+
|
|
11
|
+
@Component({
|
|
12
|
+
selector: "app-category-form",
|
|
13
|
+
templateUrl: "./category-form.component.html",
|
|
14
|
+
styleUrls: ["./category-form.component.scss"],
|
|
15
|
+
})
|
|
16
|
+
export class CategoryFormComponent
|
|
17
|
+
extends TechlifyFormComponentInterface
|
|
18
|
+
implements OnInit
|
|
19
|
+
{
|
|
20
|
+
@Input() category: any;
|
|
21
|
+
@Output() saved: EventEmitter<any> = new EventEmitter<any>();
|
|
22
|
+
@Output() cancelled: EventEmitter<any> = new EventEmitter<any>();
|
|
23
|
+
|
|
24
|
+
isSaving: boolean = false;
|
|
25
|
+
constructor(
|
|
26
|
+
formValidatorService: FormValidatorService,
|
|
27
|
+
private formBuilder: FormBuilder,
|
|
28
|
+
private categoryService: CategoryService,
|
|
29
|
+
private alertService: AlertService
|
|
30
|
+
) {
|
|
31
|
+
super(formValidatorService);
|
|
32
|
+
this.errorMessages = {
|
|
33
|
+
title: {
|
|
34
|
+
required: "The title field is required.",
|
|
35
|
+
},
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
this.form = this.formBuilder.group({
|
|
39
|
+
id: [""],
|
|
40
|
+
title: ["", Validators.required],
|
|
41
|
+
description: [""],
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
save() {
|
|
46
|
+
this.form.markAllAsTouched();
|
|
47
|
+
if (this.form.invalid) {
|
|
48
|
+
this.alertService.addAlert("Please check the form for errors.", "error");
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
this.isSaving = true;
|
|
53
|
+
const data: any = { ...this.form.value };
|
|
54
|
+
let request: Observable<any> = this.categoryService.store(data);
|
|
55
|
+
if (this.category?.id) {
|
|
56
|
+
request = this.categoryService.update(data);
|
|
57
|
+
}
|
|
58
|
+
request.subscribe({
|
|
59
|
+
next: (response: any) => {
|
|
60
|
+
this.isSaving = false;
|
|
61
|
+
this.alertService.addAlert("Category saved successfully!", "success");
|
|
62
|
+
this.saved.emit(response?.item);
|
|
63
|
+
},
|
|
64
|
+
error: () => {
|
|
65
|
+
this.isSaving = false;
|
|
66
|
+
},
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
ngOnInit(): void {
|
|
71
|
+
if (this.category) {
|
|
72
|
+
this.form.patchValue({ ...this.category });
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
<mat-icon
|
|
2
|
+
*ngIf="!category"
|
|
3
|
+
color="primary"
|
|
4
|
+
class="cursor-pointer"
|
|
5
|
+
(click)="showCategoryForm(categoryFormTemplate)"
|
|
6
|
+
>
|
|
7
|
+
add
|
|
8
|
+
</mat-icon>
|
|
9
|
+
|
|
10
|
+
<mat-icon
|
|
11
|
+
*ngIf="category"
|
|
12
|
+
class="cursor-pointer"
|
|
13
|
+
(click)="showCategoryForm(categoryFormTemplate)"
|
|
14
|
+
>
|
|
15
|
+
edit
|
|
16
|
+
</mat-icon>
|
|
17
|
+
|
|
18
|
+
<ng-template #categoryFormTemplate>
|
|
19
|
+
<h3 mat-dialog-title class="mb-0">
|
|
20
|
+
{{ category ? "Edit" : "Create" }} Category
|
|
21
|
+
</h3>
|
|
22
|
+
<small class="text-secondary mb-1">
|
|
23
|
+
Note that category names are unique and cannot be duplicated.
|
|
24
|
+
</small>
|
|
25
|
+
<div mat-dialog-content>
|
|
26
|
+
<app-category-form
|
|
27
|
+
[category]="category"
|
|
28
|
+
(saved)="onCategorySaved($event)"
|
|
29
|
+
(cancelled)="matDialog.closeAll()"
|
|
30
|
+
></app-category-form>
|
|
31
|
+
</div>
|
|
32
|
+
</ng-template>
|
|
File without changes
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Component,
|
|
3
|
+
EventEmitter,
|
|
4
|
+
Input,
|
|
5
|
+
Output,
|
|
6
|
+
TemplateRef,
|
|
7
|
+
} from "@angular/core";
|
|
8
|
+
import { MatDialog } from "@angular/material/dialog";
|
|
9
|
+
|
|
10
|
+
@Component({
|
|
11
|
+
selector: "app-category-form-button",
|
|
12
|
+
templateUrl: "./category-form-button.component.html",
|
|
13
|
+
styleUrls: ["./category-form-button.component.scss"],
|
|
14
|
+
})
|
|
15
|
+
export class CategoryFormButtonComponent {
|
|
16
|
+
@Input() category: any;
|
|
17
|
+
@Output() saved: EventEmitter<any> = new EventEmitter<any>();
|
|
18
|
+
|
|
19
|
+
constructor(public matDialog: MatDialog) {}
|
|
20
|
+
|
|
21
|
+
showCategoryForm(templateRef: TemplateRef<any>) {
|
|
22
|
+
this.matDialog.open(templateRef, { width: "400px" });
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
onCategorySaved(category: any) {
|
|
26
|
+
this.matDialog.closeAll();
|
|
27
|
+
this.saved.emit(category);
|
|
28
|
+
}
|
|
29
|
+
}
|