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
|
@@ -0,0 +1,442 @@
|
|
|
1
|
+
<form
|
|
2
|
+
[formGroup]="filterForm"
|
|
3
|
+
fxLayout
|
|
4
|
+
fxLayoutAlign="start center"
|
|
5
|
+
fxLayoutGap="10px"
|
|
6
|
+
>
|
|
7
|
+
<mat-form-field
|
|
8
|
+
*ngIf="filterForm.get('search')"
|
|
9
|
+
[appearance]="getFilterConfig('appearance', 'search')"
|
|
10
|
+
>
|
|
11
|
+
<mat-label>Search</mat-label>
|
|
12
|
+
<input
|
|
13
|
+
formControlName="search"
|
|
14
|
+
matInput
|
|
15
|
+
[placeholder]="getFilterConfig('placeholder', 'search')"
|
|
16
|
+
/>
|
|
17
|
+
<button
|
|
18
|
+
*ngIf="filterForm.value?.search"
|
|
19
|
+
mat-icon-button
|
|
20
|
+
matSuffix
|
|
21
|
+
(click)="resetField('search')"
|
|
22
|
+
>
|
|
23
|
+
<mat-icon>close</mat-icon>
|
|
24
|
+
</button>
|
|
25
|
+
</mat-form-field>
|
|
26
|
+
|
|
27
|
+
<app-timeline-filter
|
|
28
|
+
*ngIf="filterForm?.get('duration')"
|
|
29
|
+
appearance="fill"
|
|
30
|
+
[labelText]="getFilterConfig('label', 'duration')"
|
|
31
|
+
[appearance]="getFilterConfig('appearance', 'duration')"
|
|
32
|
+
formControlName="duration"
|
|
33
|
+
(selectionChange)="onDurationChange($event)"
|
|
34
|
+
[showClearButton]="true"
|
|
35
|
+
[dateFrom]="filterForm.value?.date_from"
|
|
36
|
+
[dateTo]="filterForm.value?.date_to"
|
|
37
|
+
></app-timeline-filter>
|
|
38
|
+
|
|
39
|
+
<mat-form-field *ngIf="filterForm.get('payment_method_ids')">
|
|
40
|
+
<mat-label>Payment Method</mat-label>
|
|
41
|
+
<app-searchable-selector
|
|
42
|
+
formControlName="payment_method_ids"
|
|
43
|
+
apiUrl="api/payment-methods"
|
|
44
|
+
[multiple]="true"
|
|
45
|
+
[enableSearch]="false"
|
|
46
|
+
></app-searchable-selector>
|
|
47
|
+
<button
|
|
48
|
+
*ngIf="filterForm.value?.payment_method_ids"
|
|
49
|
+
mat-icon-button
|
|
50
|
+
matSuffix
|
|
51
|
+
(click)="resetField('payment_method_ids')"
|
|
52
|
+
>
|
|
53
|
+
<mat-icon>close</mat-icon>
|
|
54
|
+
</button>
|
|
55
|
+
</mat-form-field>
|
|
56
|
+
|
|
57
|
+
<ng-container *ngIf="filterForm.get('payment_account_ids')">
|
|
58
|
+
<mat-form-field *ngxPermissionsOnly="['accountingcommon_account.read']">
|
|
59
|
+
<mat-label>{{
|
|
60
|
+
getFilterConfig("label", "payment_account_ids") || "Payment Account"
|
|
61
|
+
}}</mat-label>
|
|
62
|
+
<app-searchable-selector
|
|
63
|
+
formControlName="payment_account_ids"
|
|
64
|
+
[apiUrl]="
|
|
65
|
+
getFilterConfig('apiUrl', 'payment_account_ids') || 'api/accounts'
|
|
66
|
+
"
|
|
67
|
+
[multiple]="true"
|
|
68
|
+
></app-searchable-selector>
|
|
69
|
+
<button
|
|
70
|
+
*ngIf="filterForm.value?.payment_account_ids"
|
|
71
|
+
mat-icon-button
|
|
72
|
+
matSuffix
|
|
73
|
+
(click)="resetField('payment_account_ids')"
|
|
74
|
+
>
|
|
75
|
+
<mat-icon>close</mat-icon>
|
|
76
|
+
</button>
|
|
77
|
+
</mat-form-field>
|
|
78
|
+
</ng-container>
|
|
79
|
+
|
|
80
|
+
<mat-form-field *ngIf="filterForm.get('invoice_status_ids')">
|
|
81
|
+
<mat-label>Invoice Status</mat-label>
|
|
82
|
+
<app-searchable-selector
|
|
83
|
+
formControlName="invoice_status_ids"
|
|
84
|
+
apiUrl="api/invoice-statuses"
|
|
85
|
+
[multiple]="true"
|
|
86
|
+
></app-searchable-selector>
|
|
87
|
+
<button
|
|
88
|
+
*ngIf="filterForm.value?.invoice_status_ids"
|
|
89
|
+
mat-icon-button
|
|
90
|
+
matSuffix
|
|
91
|
+
(click)="resetField('invoice_status_ids')"
|
|
92
|
+
>
|
|
93
|
+
<mat-icon>close</mat-icon>
|
|
94
|
+
</button>
|
|
95
|
+
</mat-form-field>
|
|
96
|
+
|
|
97
|
+
<ng-container *ngIf="filterForm.get('customer_ids')">
|
|
98
|
+
<mat-form-field *ngxPermissionsOnly="['customer_read']">
|
|
99
|
+
<mat-label>Customer</mat-label>
|
|
100
|
+
<app-searchable-selector
|
|
101
|
+
formControlName="customer_ids"
|
|
102
|
+
titleField="name"
|
|
103
|
+
apiUrl="api/customers"
|
|
104
|
+
[multiple]="true"
|
|
105
|
+
></app-searchable-selector>
|
|
106
|
+
<button
|
|
107
|
+
*ngIf="filterForm.value?.customer_ids"
|
|
108
|
+
mat-icon-button
|
|
109
|
+
matSuffix
|
|
110
|
+
(click)="resetField('customer_ids')"
|
|
111
|
+
>
|
|
112
|
+
<mat-icon>close</mat-icon>
|
|
113
|
+
</button>
|
|
114
|
+
</mat-form-field>
|
|
115
|
+
</ng-container>
|
|
116
|
+
|
|
117
|
+
<ng-container
|
|
118
|
+
*ngIf="
|
|
119
|
+
filterForm.get('project_ids') &&
|
|
120
|
+
getFilterConfig('disabled', 'project_ids') === false
|
|
121
|
+
"
|
|
122
|
+
>
|
|
123
|
+
<mat-form-field *ngxPermissionsOnly="['project.read']">
|
|
124
|
+
<mat-label>Project</mat-label>
|
|
125
|
+
<app-searchable-selector
|
|
126
|
+
formControlName="project_ids"
|
|
127
|
+
apiUrl="api/projects"
|
|
128
|
+
titleField="project_name"
|
|
129
|
+
[multiple]="true"
|
|
130
|
+
></app-searchable-selector>
|
|
131
|
+
<button
|
|
132
|
+
*ngIf="filterForm.value?.project_ids"
|
|
133
|
+
mat-icon-button
|
|
134
|
+
matSuffix
|
|
135
|
+
(click)="resetField('project_ids')"
|
|
136
|
+
>
|
|
137
|
+
<mat-icon>close</mat-icon>
|
|
138
|
+
</button>
|
|
139
|
+
</mat-form-field>
|
|
140
|
+
</ng-container>
|
|
141
|
+
|
|
142
|
+
<mat-form-field *ngIf="filterForm.get('product_ids')">
|
|
143
|
+
<mat-label>Product</mat-label>
|
|
144
|
+
<app-searchable-selector
|
|
145
|
+
formControlName="product_ids"
|
|
146
|
+
apiUrl="api/products"
|
|
147
|
+
titleField="name"
|
|
148
|
+
[multiple]="true"
|
|
149
|
+
></app-searchable-selector>
|
|
150
|
+
<button
|
|
151
|
+
*ngIf="filterForm.value?.product_ids"
|
|
152
|
+
mat-icon-button
|
|
153
|
+
matSuffix
|
|
154
|
+
(click)="resetField('product_ids')"
|
|
155
|
+
>
|
|
156
|
+
<mat-icon>close</mat-icon>
|
|
157
|
+
</button>
|
|
158
|
+
</mat-form-field>
|
|
159
|
+
|
|
160
|
+
<mat-form-field *ngIf="filterForm.get('measure_ids')">
|
|
161
|
+
<mat-label>Measure</mat-label>
|
|
162
|
+
<app-searchable-selector
|
|
163
|
+
formControlName="measure_ids"
|
|
164
|
+
apiUrl="api/product-measures"
|
|
165
|
+
[multiple]="true"
|
|
166
|
+
></app-searchable-selector>
|
|
167
|
+
<button
|
|
168
|
+
*ngIf="filterForm.value?.measure_ids"
|
|
169
|
+
mat-icon-button
|
|
170
|
+
matSuffix
|
|
171
|
+
(click)="resetField('measure_ids')"
|
|
172
|
+
>
|
|
173
|
+
<mat-icon>close</mat-icon>
|
|
174
|
+
</button>
|
|
175
|
+
</mat-form-field>
|
|
176
|
+
|
|
177
|
+
<ng-container *ngxPermissionsOnly="['supplier.read']">
|
|
178
|
+
<mat-form-field
|
|
179
|
+
*ngIf="filterForm.get('supplier_ids')"
|
|
180
|
+
[appearance]="getFilterConfig('appearance', 'supplier_ids')"
|
|
181
|
+
>
|
|
182
|
+
<mat-label>Supplier</mat-label>
|
|
183
|
+
<app-searchable-selector
|
|
184
|
+
formControlName="supplier_ids"
|
|
185
|
+
titleField="company_name"
|
|
186
|
+
apiUrl="api/suppliers"
|
|
187
|
+
[multiple]="true"
|
|
188
|
+
></app-searchable-selector>
|
|
189
|
+
<button
|
|
190
|
+
*ngIf="filterForm.value?.supplier_ids"
|
|
191
|
+
mat-icon-button
|
|
192
|
+
matSuffix
|
|
193
|
+
(click)="resetField('supplier_ids')"
|
|
194
|
+
>
|
|
195
|
+
<mat-icon>close</mat-icon>
|
|
196
|
+
</button>
|
|
197
|
+
</mat-form-field>
|
|
198
|
+
</ng-container>
|
|
199
|
+
|
|
200
|
+
<app-timeline-filter
|
|
201
|
+
appearance="fill"
|
|
202
|
+
[labelText]="getFilterConfig('label', 'expiry_duration')"
|
|
203
|
+
*ngIf="filterForm?.get('expiry_duration')"
|
|
204
|
+
formControlName="expiry_duration"
|
|
205
|
+
(selectionChange)="onExpiryDurationChange($event)"
|
|
206
|
+
[showClearButton]="true"
|
|
207
|
+
[dateFrom]="filterForm.value?.expiry_date_from"
|
|
208
|
+
[dateTo]="filterForm.value?.expiry_date_to"
|
|
209
|
+
></app-timeline-filter>
|
|
210
|
+
|
|
211
|
+
<mat-form-field
|
|
212
|
+
*ngIf="filterForm.get('cost_category_ids')"
|
|
213
|
+
style="width: 150px"
|
|
214
|
+
>
|
|
215
|
+
<mat-label>Cost Category</mat-label>
|
|
216
|
+
<app-searchable-selector
|
|
217
|
+
formControlName="cost_category_ids"
|
|
218
|
+
apiUrl="api/cost-code-categories"
|
|
219
|
+
[multiple]="true"
|
|
220
|
+
></app-searchable-selector>
|
|
221
|
+
<button
|
|
222
|
+
*ngIf="filterForm.value?.cost_category_ids"
|
|
223
|
+
mat-icon-button
|
|
224
|
+
matSuffix
|
|
225
|
+
(click)="resetField('cost_category_ids')"
|
|
226
|
+
>
|
|
227
|
+
<mat-icon>close</mat-icon>
|
|
228
|
+
</button>
|
|
229
|
+
</mat-form-field>
|
|
230
|
+
|
|
231
|
+
<mat-form-field *ngIf="filterForm.get('milestone_ids')" style="width: 150px">
|
|
232
|
+
<mat-label>Milestone</mat-label>
|
|
233
|
+
<app-searchable-selector
|
|
234
|
+
formControlName="milestone_ids"
|
|
235
|
+
apiUrl="api/milestones"
|
|
236
|
+
[multiple]="true"
|
|
237
|
+
></app-searchable-selector>
|
|
238
|
+
<button
|
|
239
|
+
*ngIf="filterForm.value?.milestone_ids"
|
|
240
|
+
mat-icon-button
|
|
241
|
+
matSuffix
|
|
242
|
+
(click)="resetField('milestone_ids')"
|
|
243
|
+
>
|
|
244
|
+
<mat-icon>close</mat-icon>
|
|
245
|
+
</button>
|
|
246
|
+
</mat-form-field>
|
|
247
|
+
|
|
248
|
+
<mat-form-field *ngIf="filterForm.get('team_member_ids')">
|
|
249
|
+
<mat-label>Assignee</mat-label>
|
|
250
|
+
<app-searchable-selector
|
|
251
|
+
apiUrl="api/persons"
|
|
252
|
+
formControlName="team_member_ids"
|
|
253
|
+
titleField="name"
|
|
254
|
+
[multiple]="true"
|
|
255
|
+
>
|
|
256
|
+
</app-searchable-selector>
|
|
257
|
+
<button
|
|
258
|
+
*ngIf="filterForm.value?.team_member_ids"
|
|
259
|
+
mat-icon-button
|
|
260
|
+
matSuffix
|
|
261
|
+
(click)="resetField('team_member_ids')"
|
|
262
|
+
>
|
|
263
|
+
<mat-icon>close</mat-icon>
|
|
264
|
+
</button>
|
|
265
|
+
</mat-form-field>
|
|
266
|
+
|
|
267
|
+
<mat-form-field *ngIf="filterForm.get('fixed_asset_type_ids')">
|
|
268
|
+
<mat-label>Type</mat-label>
|
|
269
|
+
<app-searchable-selector
|
|
270
|
+
formControlName="fixed_asset_type_ids"
|
|
271
|
+
apiUrl="api/accounting-plus/fixed-asset-types"
|
|
272
|
+
[multiple]="true"
|
|
273
|
+
></app-searchable-selector>
|
|
274
|
+
<button
|
|
275
|
+
*ngIf="filterForm.value?.fixed_asset_type_ids"
|
|
276
|
+
mat-icon-button
|
|
277
|
+
matSuffix
|
|
278
|
+
(click)="resetField('fixed_asset_type_ids')"
|
|
279
|
+
>
|
|
280
|
+
<mat-icon>close</mat-icon>
|
|
281
|
+
</button>
|
|
282
|
+
</mat-form-field>
|
|
283
|
+
|
|
284
|
+
<mat-form-field *ngIf="filterForm.get('fixed_asset_document_type_ids')">
|
|
285
|
+
<mat-label>Type</mat-label>
|
|
286
|
+
<app-searchable-selector
|
|
287
|
+
formControlName="fixed_asset_document_type_ids"
|
|
288
|
+
apiUrl="api/accounting-plus/fixed-asset-document-types"
|
|
289
|
+
[multiple]="true"
|
|
290
|
+
[enableSearch]="
|
|
291
|
+
getFilterConfig('enableSearch', 'fixed_asset_document_type_ids')
|
|
292
|
+
"
|
|
293
|
+
></app-searchable-selector>
|
|
294
|
+
<button
|
|
295
|
+
*ngIf="filterForm.value?.fixed_asset_document_type_ids"
|
|
296
|
+
mat-icon-button
|
|
297
|
+
matSuffix
|
|
298
|
+
(click)="resetField('fixed_asset_document_type_ids')"
|
|
299
|
+
>
|
|
300
|
+
<mat-icon>close</mat-icon>
|
|
301
|
+
</button>
|
|
302
|
+
</mat-form-field>
|
|
303
|
+
|
|
304
|
+
<div *ngIf="filterForm.get('fixed_asset_document_status')">
|
|
305
|
+
<small
|
|
306
|
+
class="mr-2 text-secondary"
|
|
307
|
+
*ngIf="getFilterConfig('showLabel', 'fixed_asset_document_status')"
|
|
308
|
+
>
|
|
309
|
+
Status
|
|
310
|
+
</small>
|
|
311
|
+
<mat-button-toggle-group
|
|
312
|
+
formControlName="fixed_asset_document_status"
|
|
313
|
+
[multiple]="false"
|
|
314
|
+
>
|
|
315
|
+
<mat-button-toggle value="all">All</mat-button-toggle>
|
|
316
|
+
<mat-button-toggle value="active">Active</mat-button-toggle>
|
|
317
|
+
<mat-button-toggle value="expired">Expired</mat-button-toggle>
|
|
318
|
+
</mat-button-toggle-group>
|
|
319
|
+
</div>
|
|
320
|
+
|
|
321
|
+
<mat-form-field *ngIf="filterForm.get('asset_account_ids')">
|
|
322
|
+
<mat-label>Asset Account</mat-label>
|
|
323
|
+
<app-searchable-selector
|
|
324
|
+
formControlName="asset_account_ids"
|
|
325
|
+
apiUrl="api/accounts"
|
|
326
|
+
[multiple]="true"
|
|
327
|
+
></app-searchable-selector>
|
|
328
|
+
<button
|
|
329
|
+
*ngIf="filterForm.value?.asset_account_ids"
|
|
330
|
+
mat-icon-button
|
|
331
|
+
matSuffix
|
|
332
|
+
(click)="resetField('asset_account_ids')"
|
|
333
|
+
>
|
|
334
|
+
<mat-icon>close</mat-icon>
|
|
335
|
+
</button>
|
|
336
|
+
</mat-form-field>
|
|
337
|
+
|
|
338
|
+
<mat-form-field *ngIf="filterForm.get('depreciation_expense_account_ids')">
|
|
339
|
+
<mat-label>Depreciation Expense Account</mat-label>
|
|
340
|
+
<app-searchable-selector
|
|
341
|
+
[multiple]="true"
|
|
342
|
+
apiUrl="api/accounts"
|
|
343
|
+
formControlName="depreciation_expense_account_ids"
|
|
344
|
+
></app-searchable-selector>
|
|
345
|
+
<button
|
|
346
|
+
*ngIf="filterForm.value?.depreciation_expense_account_ids"
|
|
347
|
+
mat-icon-button
|
|
348
|
+
matSuffix
|
|
349
|
+
(click)="resetField('depreciation_expense_account_ids')"
|
|
350
|
+
>
|
|
351
|
+
<mat-icon>close</mat-icon>
|
|
352
|
+
</button>
|
|
353
|
+
</mat-form-field>
|
|
354
|
+
|
|
355
|
+
<mat-form-field *ngIf="filterForm.get('depreciation_method_ids')">
|
|
356
|
+
<mat-label>Depreciation Method</mat-label>
|
|
357
|
+
<app-searchable-selector
|
|
358
|
+
formControlName="depreciation_method_ids"
|
|
359
|
+
apiUrl="api/accounting-plus/depreciation-methods"
|
|
360
|
+
[multiple]="true"
|
|
361
|
+
></app-searchable-selector>
|
|
362
|
+
<button
|
|
363
|
+
(click)="resetField('depreciation_method_ids')"
|
|
364
|
+
*ngIf="filterForm.value?.depreciation_method_ids"
|
|
365
|
+
mat-icon-button
|
|
366
|
+
matSuffix
|
|
367
|
+
>
|
|
368
|
+
<mat-icon>close</mat-icon>
|
|
369
|
+
</button>
|
|
370
|
+
</mat-form-field>
|
|
371
|
+
|
|
372
|
+
<mat-form-field
|
|
373
|
+
*ngIf="filterForm.get('task_status_ids')"
|
|
374
|
+
style="width: 150px"
|
|
375
|
+
>
|
|
376
|
+
<mat-label>Status</mat-label>
|
|
377
|
+
<app-searchable-selector
|
|
378
|
+
apiUrl="api/task-statuses"
|
|
379
|
+
formControlName="task_status_ids"
|
|
380
|
+
titleField="title"
|
|
381
|
+
[multiple]="true"
|
|
382
|
+
[enableSearch]="false"
|
|
383
|
+
>
|
|
384
|
+
</app-searchable-selector>
|
|
385
|
+
<button
|
|
386
|
+
*ngIf="filterForm.value?.task_status_ids"
|
|
387
|
+
mat-icon-button
|
|
388
|
+
matSuffix
|
|
389
|
+
(click)="resetField('task_status_ids')"
|
|
390
|
+
>
|
|
391
|
+
<mat-icon>close</mat-icon>
|
|
392
|
+
</button>
|
|
393
|
+
</mat-form-field>
|
|
394
|
+
|
|
395
|
+
<mat-form-field *ngIf="filterForm.get('service_center_ids')">
|
|
396
|
+
<mat-label>Service Center</mat-label>
|
|
397
|
+
<app-searchable-selector
|
|
398
|
+
apiUrl="api/accounting-plus/service-centers"
|
|
399
|
+
formControlName="service_center_ids"
|
|
400
|
+
titleField="name"
|
|
401
|
+
[enableSearch]="false"
|
|
402
|
+
[multiple]="true"
|
|
403
|
+
>
|
|
404
|
+
</app-searchable-selector>
|
|
405
|
+
<button
|
|
406
|
+
*ngIf="filterForm.value?.service_center_ids"
|
|
407
|
+
mat-icon-button
|
|
408
|
+
matSuffix
|
|
409
|
+
(click)="resetField('service_center_ids')"
|
|
410
|
+
>
|
|
411
|
+
<mat-icon>close</mat-icon>
|
|
412
|
+
</button>
|
|
413
|
+
</mat-form-field>
|
|
414
|
+
|
|
415
|
+
<mat-form-field *ngIf="filterForm.get('fixed_asset_maintenance_status_ids')">
|
|
416
|
+
<mat-label>Status</mat-label>
|
|
417
|
+
<app-searchable-selector
|
|
418
|
+
apiUrl="api/accounting-plus/fixed-asset-maintenance-statuses"
|
|
419
|
+
formControlName="fixed_asset_maintenance_status_ids"
|
|
420
|
+
[multiple]="true"
|
|
421
|
+
[enableSearch]="false"
|
|
422
|
+
>
|
|
423
|
+
</app-searchable-selector>
|
|
424
|
+
<button
|
|
425
|
+
*ngIf="filterForm.value?.fixed_asset_maintenance_status_ids"
|
|
426
|
+
mat-icon-button
|
|
427
|
+
matSuffix
|
|
428
|
+
(click)="resetField('fixed_asset_maintenance_status_ids')"
|
|
429
|
+
>
|
|
430
|
+
<mat-icon>close</mat-icon>
|
|
431
|
+
</button>
|
|
432
|
+
</mat-form-field>
|
|
433
|
+
|
|
434
|
+
<mat-form-field *ngIf="filterForm.get('group_by')">
|
|
435
|
+
<mat-label>Group By</mat-label>
|
|
436
|
+
<mat-select formControlName="group_by">
|
|
437
|
+
<mat-option value="week">Week</mat-option>
|
|
438
|
+
<mat-option value="month">Month</mat-option>
|
|
439
|
+
<mat-option value="year">Year</mat-option>
|
|
440
|
+
</mat-select>
|
|
441
|
+
</mat-form-field>
|
|
442
|
+
</form>
|
|
File without changes
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { Component, EventEmitter, Input, OnInit, Output } from "@angular/core";
|
|
2
|
+
import { FormGroup } from "@angular/forms";
|
|
3
|
+
import { RequestHelperService, TimelineValue } from "ngx-techlify-core";
|
|
4
|
+
import { ActivatedRoute } from "@angular/router";
|
|
5
|
+
import { debounceTime, distinctUntilChanged } from "rxjs";
|
|
6
|
+
import moment from "moment";
|
|
7
|
+
|
|
8
|
+
@Component({
|
|
9
|
+
selector: "app-techlify-filter",
|
|
10
|
+
templateUrl: "./techlify-filter.component.html",
|
|
11
|
+
styleUrls: ["./techlify-filter.component.scss"],
|
|
12
|
+
})
|
|
13
|
+
export class TechlifyFilterComponent implements OnInit {
|
|
14
|
+
@Input() filterForm!: FormGroup;
|
|
15
|
+
@Input() filterConfig: any;
|
|
16
|
+
@Output() filterUpdated: EventEmitter<any> = new EventEmitter();
|
|
17
|
+
|
|
18
|
+
constructor(
|
|
19
|
+
private requestHelperService: RequestHelperService,
|
|
20
|
+
private activatedRoute: ActivatedRoute
|
|
21
|
+
) {}
|
|
22
|
+
|
|
23
|
+
ngOnInit(): void {
|
|
24
|
+
// listen for filter changes
|
|
25
|
+
this.filterForm.valueChanges.subscribe({
|
|
26
|
+
next: (value: any) => {
|
|
27
|
+
const params: any = this.requestHelperService.convertToFormData(value);
|
|
28
|
+
this.requestHelperService.updateQueryParams(params);
|
|
29
|
+
},
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
// update form with query params
|
|
33
|
+
this.requestHelperService.updateFormWithQueryParams(this.filterForm, {
|
|
34
|
+
duration: { number: true },
|
|
35
|
+
expiry_duration: { number: true },
|
|
36
|
+
payment_method_ids: { multiple: true },
|
|
37
|
+
payment_account_ids: { multiple: true },
|
|
38
|
+
project_ids: { multiple: true },
|
|
39
|
+
invoice_status_ids: { multiple: true },
|
|
40
|
+
customer_ids: { multiple: true },
|
|
41
|
+
cost_category_ids: { multiple: true },
|
|
42
|
+
team_member_ids: { multiple: true },
|
|
43
|
+
task_status_ids: { multiple: true },
|
|
44
|
+
asset_account_ids: { multiple: true },
|
|
45
|
+
depreciation_method_ids: { multiple: true },
|
|
46
|
+
depreciation_expense_account_ids: { multiple: true },
|
|
47
|
+
fixed_asset_type_ids: { multiple: true },
|
|
48
|
+
fixed_asset_document_type_ids: { multiple: true },
|
|
49
|
+
service_center_ids: { multiple: true },
|
|
50
|
+
fixed_asset_maintenance_status_ids: { multiple: true },
|
|
51
|
+
milestone_ids: { multiple: true },
|
|
52
|
+
product_ids: { multiple: true },
|
|
53
|
+
supplier_ids: { multiple: true },
|
|
54
|
+
measure_ids: { multiple: true },
|
|
55
|
+
type_ids: { multiple: true },
|
|
56
|
+
fixed_asset_ids: { multiple: true },
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
// listen for route change
|
|
60
|
+
this.activatedRoute.queryParams
|
|
61
|
+
.pipe(debounceTime(800), distinctUntilChanged())
|
|
62
|
+
.subscribe((val: any) => {
|
|
63
|
+
this.filterUpdated.emit(this.filterForm.value);
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
resetField(field: string) {
|
|
68
|
+
this.filterForm.get(field)?.setValue("");
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
onDurationChange(timelineValue: TimelineValue) {
|
|
72
|
+
let { date_to, date_from } = timelineValue;
|
|
73
|
+
this.filterForm.patchValue(
|
|
74
|
+
{
|
|
75
|
+
date_from: date_from ? moment(date_from).format("YYYY-MM-DD") : "",
|
|
76
|
+
date_to: date_to ? moment(date_to).format("YYYY-MM-DD") : "",
|
|
77
|
+
},
|
|
78
|
+
{ emitEvent: false }
|
|
79
|
+
);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Update expiry date from and date to on value change.
|
|
84
|
+
*
|
|
85
|
+
* @param timelineValue
|
|
86
|
+
*/
|
|
87
|
+
onExpiryDurationChange(timelineValue: TimelineValue) {
|
|
88
|
+
let { date_to, date_from } = timelineValue;
|
|
89
|
+
this.filterForm.patchValue({
|
|
90
|
+
expiry_date_from: date_from ? moment(date_from).format("YYYY-MM-DD") : "",
|
|
91
|
+
expiry_date_to: date_to ? moment(date_to).format("YYYY-MM-DD") : "",
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Get the attribute value for the field.
|
|
97
|
+
*
|
|
98
|
+
* @param attribute
|
|
99
|
+
* @param field
|
|
100
|
+
*/
|
|
101
|
+
getFilterConfig(attribute: string, field: string) {
|
|
102
|
+
if (!this.filterConfig) return "";
|
|
103
|
+
// Check if the field and attribute exist in the filter config, return the value or an empty string
|
|
104
|
+
return this.filterConfig[field] &&
|
|
105
|
+
this.filterConfig[field][attribute] !== undefined
|
|
106
|
+
? this.filterConfig[field][attribute]
|
|
107
|
+
: "";
|
|
108
|
+
}
|
|
109
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { NgModule } from "@angular/core";
|
|
2
|
+
import { CommonModule } from "@angular/common";
|
|
3
|
+
import { TechlifyFilterComponent } from "./techlify-filter.component";
|
|
4
|
+
import { ReactiveFormsModule } from "@angular/forms";
|
|
5
|
+
import { FlexLayoutModule } from "@angular/flex-layout";
|
|
6
|
+
import {
|
|
7
|
+
MaterialModule,
|
|
8
|
+
SearchableSelectorModule,
|
|
9
|
+
TimelineFilterModule,
|
|
10
|
+
} from "ngx-techlify-core";
|
|
11
|
+
|
|
12
|
+
@NgModule({
|
|
13
|
+
declarations: [TechlifyFilterComponent],
|
|
14
|
+
imports: [
|
|
15
|
+
CommonModule,
|
|
16
|
+
ReactiveFormsModule,
|
|
17
|
+
FlexLayoutModule,
|
|
18
|
+
SearchableSelectorModule,
|
|
19
|
+
TimelineFilterModule,
|
|
20
|
+
MaterialModule,
|
|
21
|
+
],
|
|
22
|
+
exports: [TechlifyFilterComponent],
|
|
23
|
+
})
|
|
24
|
+
export class TechlifyFilterModule {}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<div class="p-3 horizontal-navbar position-fixed">
|
|
2
|
+
<a
|
|
3
|
+
class="nav-item"
|
|
4
|
+
fxLayout
|
|
5
|
+
fxLayoutAlign="start center"
|
|
6
|
+
fxLayoutGap="5px"
|
|
7
|
+
routerLink="/techlify-rbac"
|
|
8
|
+
>
|
|
9
|
+
<mat-icon>group</mat-icon>
|
|
10
|
+
<span>Users</span>
|
|
11
|
+
</a>
|
|
12
|
+
</div>
|
|
13
|
+
<div fxLayoutGap="10px" class="p-2" style="margin-top: 57px">
|
|
14
|
+
<router-outlet></router-outlet>
|
|
15
|
+
</div>
|
|
File without changes
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Component, OnInit } from "@angular/core";
|
|
2
|
+
|
|
3
|
+
@Component({
|
|
4
|
+
selector: "app-user-layout",
|
|
5
|
+
templateUrl: "./user-layout.component.html",
|
|
6
|
+
styleUrls: ["./user-layout.component.scss"],
|
|
7
|
+
})
|
|
8
|
+
export class UserLayoutComponent implements OnInit {
|
|
9
|
+
constructor() {}
|
|
10
|
+
|
|
11
|
+
ngOnInit(): void {}
|
|
12
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { NgModule } from "@angular/core";
|
|
2
|
+
import { RouterModule, Routes } from "@angular/router";
|
|
3
|
+
import { UserLayoutComponent } from "@modules/user/user-layout/user-layout.component";
|
|
4
|
+
|
|
5
|
+
const routes: Routes = [
|
|
6
|
+
{
|
|
7
|
+
path: "",
|
|
8
|
+
component: UserLayoutComponent,
|
|
9
|
+
children: [
|
|
10
|
+
{
|
|
11
|
+
path: "",
|
|
12
|
+
loadChildren: () =>
|
|
13
|
+
import("ngx-techlify-core").then((mod) => mod.NgxTechlifyUsersModule),
|
|
14
|
+
},
|
|
15
|
+
],
|
|
16
|
+
},
|
|
17
|
+
];
|
|
18
|
+
|
|
19
|
+
@NgModule({
|
|
20
|
+
imports: [RouterModule.forChild(routes)],
|
|
21
|
+
exports: [RouterModule],
|
|
22
|
+
})
|
|
23
|
+
export class UserRoutingModule {}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { NgModule } from "@angular/core";
|
|
2
|
+
import { CommonModule } from "@angular/common";
|
|
3
|
+
|
|
4
|
+
import { UserRoutingModule } from "./user-routing.module";
|
|
5
|
+
import { UserLayoutComponent } from "./user-layout/user-layout.component";
|
|
6
|
+
import { MatIconModule } from "@angular/material/icon";
|
|
7
|
+
import { FlexLayoutModule } from "@angular/flex-layout";
|
|
8
|
+
|
|
9
|
+
@NgModule({
|
|
10
|
+
declarations: [UserLayoutComponent],
|
|
11
|
+
imports: [CommonModule, UserRoutingModule, MatIconModule, FlexLayoutModule],
|
|
12
|
+
})
|
|
13
|
+
export class UserModule {}
|
package/src/app/@modules/user-setting-button/user-setting-button/user-setting-button.component.html
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<mat-icon class="cursor-pointer" [matMenuTriggerFor]="settingsMenu">
|
|
2
|
+
<span class="material-icons-outlined"> settings </span>
|
|
3
|
+
</mat-icon>
|
|
4
|
+
<mat-menu #settingsMenu="matMenu">
|
|
5
|
+
<button mat-menu-item routerLink="/customers" routerLinkActive="active">
|
|
6
|
+
Customers
|
|
7
|
+
</button>
|
|
8
|
+
<button
|
|
9
|
+
mat-menu-item
|
|
10
|
+
routerLink="/email-subscriptions"
|
|
11
|
+
routerLinkActive="active"
|
|
12
|
+
>
|
|
13
|
+
Email Subscriptions
|
|
14
|
+
</button>
|
|
15
|
+
</mat-menu>
|
package/src/app/@modules/user-setting-button/user-setting-button/user-setting-button.component.scss
ADDED
|
File without changes
|
package/src/app/@modules/user-setting-button/user-setting-button/user-setting-button.component.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Component, OnInit } from "@angular/core";
|
|
2
|
+
|
|
3
|
+
@Component({
|
|
4
|
+
selector: "app-user-setting-button",
|
|
5
|
+
templateUrl: "./user-setting-button.component.html",
|
|
6
|
+
styleUrls: ["./user-setting-button.component.scss"],
|
|
7
|
+
})
|
|
8
|
+
export class UserSettingButtonComponent implements OnInit {
|
|
9
|
+
constructor() {}
|
|
10
|
+
|
|
11
|
+
ngOnInit(): void {}
|
|
12
|
+
}
|