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.
Files changed (418) hide show
  1. package/.editorconfig +13 -0
  2. package/README.md +27 -0
  3. package/angular.json +207 -0
  4. package/e2e/protractor.conf.js +28 -0
  5. package/e2e/src/app.e2e-spec.ts +14 -0
  6. package/e2e/src/app.po.ts +11 -0
  7. package/e2e/tsconfig.e2e.json +13 -0
  8. package/ng-package.json +6 -0
  9. package/package.json +92 -0
  10. package/projects/inventory-common/README.md +24 -0
  11. package/projects/inventory-common/ng-package.json +7 -0
  12. package/projects/inventory-common/package.json +12 -0
  13. package/projects/inventory-common/src/lib/inventory-common/category/category-form/category-form.component.html +41 -0
  14. package/projects/inventory-common/src/lib/inventory-common/category/category-form/category-form.component.scss +0 -0
  15. package/projects/inventory-common/src/lib/inventory-common/category/category-form/category-form.component.ts +75 -0
  16. package/projects/inventory-common/src/lib/inventory-common/category/category-form-button/category-form-button.component.html +32 -0
  17. package/projects/inventory-common/src/lib/inventory-common/category/category-form-button/category-form-button.component.scss +0 -0
  18. package/projects/inventory-common/src/lib/inventory-common/category/category-form-button/category-form-button.component.ts +29 -0
  19. package/projects/inventory-common/src/lib/inventory-common/category/category-list-page/category-list-page.component.html +79 -0
  20. package/projects/inventory-common/src/lib/inventory-common/category/category-list-page/category-list-page.component.scss +0 -0
  21. package/projects/inventory-common/src/lib/inventory-common/category/category-list-page/category-list-page.component.ts +61 -0
  22. package/projects/inventory-common/src/lib/inventory-common/category/category-routing.module.ts +16 -0
  23. package/projects/inventory-common/src/lib/inventory-common/category/category.module.ts +36 -0
  24. package/projects/inventory-common/src/lib/inventory-common/category/category.service.ts +11 -0
  25. package/projects/inventory-common/src/lib/inventory-common/inventory-common-routing.module.ts +65 -0
  26. package/projects/inventory-common/src/lib/inventory-common/inventory-common.module.ts +24 -0
  27. package/projects/inventory-common/src/lib/inventory-common/inventory-dashboard-page/inventory-dashboard-page.component.html +88 -0
  28. package/projects/inventory-common/src/lib/inventory-common/inventory-dashboard-page/inventory-dashboard-page.component.scss +0 -0
  29. package/projects/inventory-common/src/lib/inventory-common/inventory-dashboard-page/inventory-dashboard-page.component.ts +36 -0
  30. package/projects/inventory-common/src/lib/inventory-common/inventory-value-report.service.ts +19 -0
  31. package/projects/inventory-common/src/lib/inventory-common/low-stock-report.service.ts +19 -0
  32. package/projects/inventory-common/src/lib/inventory-common/material.module.ts +95 -0
  33. package/projects/inventory-common/src/lib/inventory-common/measure/measure-delete/measure-delete-button/measure-delete-button.component.html +37 -0
  34. package/projects/inventory-common/src/lib/inventory-common/measure/measure-delete/measure-delete-button/measure-delete-button.component.scss +0 -0
  35. package/projects/inventory-common/src/lib/inventory-common/measure/measure-delete/measure-delete-button/measure-delete-button.component.ts +44 -0
  36. package/projects/inventory-common/src/lib/inventory-common/measure/measure-delete/measure-delete.module.ts +11 -0
  37. package/projects/inventory-common/src/lib/inventory-common/measure/measure-form/measure-form/measure-form.component.html +66 -0
  38. package/projects/inventory-common/src/lib/inventory-common/measure/measure-form/measure-form/measure-form.component.scss +0 -0
  39. package/projects/inventory-common/src/lib/inventory-common/measure/measure-form/measure-form/measure-form.component.ts +78 -0
  40. package/projects/inventory-common/src/lib/inventory-common/measure/measure-form/measure-form-button/measure-form-button.component.html +16 -0
  41. package/projects/inventory-common/src/lib/inventory-common/measure/measure-form/measure-form-button/measure-form-button.component.scss +0 -0
  42. package/projects/inventory-common/src/lib/inventory-common/measure/measure-form/measure-form-button/measure-form-button.component.ts +29 -0
  43. package/projects/inventory-common/src/lib/inventory-common/measure/measure-form/measure-form.module.ts +13 -0
  44. package/projects/inventory-common/src/lib/inventory-common/measure/measure-routing.module.ts +16 -0
  45. package/projects/inventory-common/src/lib/inventory-common/measure/measure.module.ts +26 -0
  46. package/projects/inventory-common/src/lib/inventory-common/measure/measure.service.ts +11 -0
  47. package/projects/inventory-common/src/lib/inventory-common/measure/measures-list/measures-list.component.html +88 -0
  48. package/projects/inventory-common/src/lib/inventory-common/measure/measures-list/measures-list.component.scss +0 -0
  49. package/projects/inventory-common/src/lib/inventory-common/measure/measures-list/measures-list.component.ts +67 -0
  50. package/projects/inventory-common/src/lib/inventory-common/product/low-stock-products-widget/low-stock-products-widget.component.html +52 -0
  51. package/projects/inventory-common/src/lib/inventory-common/product/low-stock-products-widget/low-stock-products-widget.component.scss +0 -0
  52. package/projects/inventory-common/src/lib/inventory-common/product/low-stock-products-widget/low-stock-products-widget.component.ts +42 -0
  53. package/projects/inventory-common/src/lib/inventory-common/product/low-stock-products-widget/low-stock-products-widget.module.ts +20 -0
  54. package/projects/inventory-common/src/lib/inventory-common/product/product-basic-info/product-basic-info.component.html +114 -0
  55. package/projects/inventory-common/src/lib/inventory-common/product/product-basic-info/product-basic-info.component.scss +0 -0
  56. package/projects/inventory-common/src/lib/inventory-common/product/product-basic-info/product-basic-info.component.ts +43 -0
  57. package/projects/inventory-common/src/lib/inventory-common/product/product-delete-button/product-delete-button.component.html +33 -0
  58. package/projects/inventory-common/src/lib/inventory-common/product/product-delete-button/product-delete-button.component.scss +0 -0
  59. package/projects/inventory-common/src/lib/inventory-common/product/product-delete-button/product-delete-button.component.ts +53 -0
  60. package/projects/inventory-common/src/lib/inventory-common/product/product-form/product-form.component.html +209 -0
  61. package/projects/inventory-common/src/lib/inventory-common/product/product-form/product-form.component.spec.ts +24 -0
  62. package/projects/inventory-common/src/lib/inventory-common/product/product-form/product-form.component.ts +182 -0
  63. package/projects/inventory-common/src/lib/inventory-common/product/product-form-button/product-form-button.component.html +17 -0
  64. package/projects/inventory-common/src/lib/inventory-common/product/product-form-button/product-form-button.component.scss +0 -0
  65. package/projects/inventory-common/src/lib/inventory-common/product/product-form-button/product-form-button.component.ts +39 -0
  66. package/projects/inventory-common/src/lib/inventory-common/product/product-form.service.ts +11 -0
  67. package/projects/inventory-common/src/lib/inventory-common/product/product-import-page/product-import-page.component.html +1 -0
  68. package/projects/inventory-common/src/lib/inventory-common/product/product-import-page/product-import-page.component.scss +0 -0
  69. package/projects/inventory-common/src/lib/inventory-common/product/product-import-page/product-import-page.component.ts +66 -0
  70. package/projects/inventory-common/src/lib/inventory-common/product/product-list/product-list.component.html +254 -0
  71. package/projects/inventory-common/src/lib/inventory-common/product/product-list/product-list.component.spec.ts +24 -0
  72. package/projects/inventory-common/src/lib/inventory-common/product/product-list/product-list.component.ts +171 -0
  73. package/projects/inventory-common/src/lib/inventory-common/product/product-measure-form/product-measure-form.component.html +44 -0
  74. package/projects/inventory-common/src/lib/inventory-common/product/product-measure-form/product-measure-form.component.spec.ts +24 -0
  75. package/projects/inventory-common/src/lib/inventory-common/product/product-measure-form/product-measure-form.component.ts +93 -0
  76. package/projects/inventory-common/src/lib/inventory-common/product/product-measures-list/product-measures-list.component.html +90 -0
  77. package/projects/inventory-common/src/lib/inventory-common/product/product-measures-list/product-measures-list.component.spec.ts +24 -0
  78. package/projects/inventory-common/src/lib/inventory-common/product/product-measures-list/product-measures-list.component.ts +153 -0
  79. package/projects/inventory-common/src/lib/inventory-common/product/product-nav-bar/product-nav-bar.component.html +3 -0
  80. package/projects/inventory-common/src/lib/inventory-common/product/product-nav-bar/product-nav-bar.component.spec.ts +24 -0
  81. package/projects/inventory-common/src/lib/inventory-common/product/product-nav-bar/product-nav-bar.component.ts +7 -0
  82. package/projects/inventory-common/src/lib/inventory-common/product/product-quick-search/product-quick-search.component.html +110 -0
  83. package/projects/inventory-common/src/lib/inventory-common/product/product-quick-search/product-quick-search.component.scss +0 -0
  84. package/projects/inventory-common/src/lib/inventory-common/product/product-quick-search/product-quick-search.component.ts +102 -0
  85. package/projects/inventory-common/src/lib/inventory-common/product/product-routing.module.ts +49 -0
  86. package/projects/inventory-common/src/lib/inventory-common/product/product-search/product-search.component.html +78 -0
  87. package/projects/inventory-common/src/lib/inventory-common/product/product-search/product-search.component.scss +12 -0
  88. package/projects/inventory-common/src/lib/inventory-common/product/product-search/product-search.component.ts +153 -0
  89. package/projects/inventory-common/src/lib/inventory-common/product/product-search/product-search.module.ts +22 -0
  90. package/projects/inventory-common/src/lib/inventory-common/product/product-summary-chart/product-summary-chart.component.html +11 -0
  91. package/projects/inventory-common/src/lib/inventory-common/product/product-summary-chart/product-summary-chart.component.scss +0 -0
  92. package/projects/inventory-common/src/lib/inventory-common/product/product-summary-chart/product-summary-chart.component.ts +62 -0
  93. package/projects/inventory-common/src/lib/inventory-common/product/product-summary-chart/product-summary-chart.module.ts +15 -0
  94. package/projects/inventory-common/src/lib/inventory-common/product/product-summary-widget/product-summary-widget.component.html +9 -0
  95. package/projects/inventory-common/src/lib/inventory-common/product/product-summary-widget/product-summary-widget.component.scss +0 -0
  96. package/projects/inventory-common/src/lib/inventory-common/product/product-summary-widget/product-summary-widget.component.ts +39 -0
  97. package/projects/inventory-common/src/lib/inventory-common/product/product-tax/product-tax-delete-button/product-tax-delete-button.component.html +32 -0
  98. package/projects/inventory-common/src/lib/inventory-common/product/product-tax/product-tax-delete-button/product-tax-delete-button.component.scss +0 -0
  99. package/projects/inventory-common/src/lib/inventory-common/product/product-tax/product-tax-delete-button/product-tax-delete-button.component.ts +55 -0
  100. package/projects/inventory-common/src/lib/inventory-common/product/product-tax/product-tax-form-button/product-tax-form-button.component.html +49 -0
  101. package/projects/inventory-common/src/lib/inventory-common/product/product-tax/product-tax-form-button/product-tax-form-button.component.scss +0 -0
  102. package/projects/inventory-common/src/lib/inventory-common/product/product-tax/product-tax-form-button/product-tax-form-button.component.ts +87 -0
  103. package/projects/inventory-common/src/lib/inventory-common/product/product-tax/product-tax-list/product-tax-list.component.html +48 -0
  104. package/projects/inventory-common/src/lib/inventory-common/product/product-tax/product-tax-list/product-tax-list.component.scss +0 -0
  105. package/projects/inventory-common/src/lib/inventory-common/product/product-tax/product-tax-list/product-tax-list.component.ts +33 -0
  106. package/projects/inventory-common/src/lib/inventory-common/product/product-tax/product-tax.module.ts +23 -0
  107. package/projects/inventory-common/src/lib/inventory-common/product/product-tax/product-tax.service.ts +11 -0
  108. package/projects/inventory-common/src/lib/inventory-common/product/product-view-page/product-view-page.component.html +34 -0
  109. package/projects/inventory-common/src/lib/inventory-common/product/product-view-page/product-view-page.component.ts +63 -0
  110. package/projects/inventory-common/src/lib/inventory-common/product/product.module.ts +69 -0
  111. package/projects/inventory-common/src/lib/inventory-common/product/product.service.ts +54 -0
  112. package/projects/inventory-common/src/lib/inventory-common/product/widgets/product-category-badges/product-category-badges.component.html +8 -0
  113. package/projects/inventory-common/src/lib/inventory-common/product/widgets/product-category-badges/product-category-badges.component.scss +0 -0
  114. package/projects/inventory-common/src/lib/inventory-common/product/widgets/product-category-badges/product-category-badges.component.ts +16 -0
  115. package/projects/inventory-common/src/lib/inventory-common/reports/inventory-value-report/inventory-value-report.component.html +140 -0
  116. package/projects/inventory-common/src/lib/inventory-common/reports/inventory-value-report/inventory-value-report.component.scss +0 -0
  117. package/projects/inventory-common/src/lib/inventory-common/reports/inventory-value-report/inventory-value-report.component.ts +191 -0
  118. package/projects/inventory-common/src/lib/inventory-common/reports/low-stock-report/low-stock-report.component.html +158 -0
  119. package/projects/inventory-common/src/lib/inventory-common/reports/low-stock-report/low-stock-report.component.scss +0 -0
  120. package/projects/inventory-common/src/lib/inventory-common/reports/low-stock-report/low-stock-report.component.ts +191 -0
  121. package/projects/inventory-common/src/lib/inventory-common/services/techlify-form-service.ts +14 -0
  122. package/projects/inventory-common/src/lib/inventory-common/stock-issuances/stock-issuance-delete-button/stock-issuance-delete-button.component.html +32 -0
  123. package/projects/inventory-common/src/lib/inventory-common/stock-issuances/stock-issuance-delete-button/stock-issuance-delete-button.component.scss +0 -0
  124. package/projects/inventory-common/src/lib/inventory-common/stock-issuances/stock-issuance-delete-button/stock-issuance-delete-button.component.ts +49 -0
  125. package/projects/inventory-common/src/lib/inventory-common/stock-issuances/stock-issuance-delete-button/stock-issuance-delete-button.module.ts +11 -0
  126. package/projects/inventory-common/src/lib/inventory-common/stock-issuances/stock-issuance.service.ts +11 -0
  127. package/projects/inventory-common/src/lib/inventory-common/stock-issuances/stock-issuances-list/stock-issuances-list.component.html +165 -0
  128. package/projects/inventory-common/src/lib/inventory-common/stock-issuances/stock-issuances-list/stock-issuances-list.component.scss +0 -0
  129. package/projects/inventory-common/src/lib/inventory-common/stock-issuances/stock-issuances-list/stock-issuances-list.component.ts +113 -0
  130. package/projects/inventory-common/src/lib/inventory-common/stock-issuances/stock-issuances-list/stock-issuances-list.module.ts +26 -0
  131. package/projects/inventory-common/src/lib/inventory-common/stock-issuances/stock-issuances-routing.module.ts +16 -0
  132. package/projects/inventory-common/src/lib/inventory-common/stock-issuances/stock-issuances.module.ts +36 -0
  133. package/projects/inventory-common/src/lib/inventory-common/stock-issuances/stock-issue-form/stock-issue-form/stock-issue-form.component.html +64 -0
  134. package/projects/inventory-common/src/lib/inventory-common/stock-issuances/stock-issue-form/stock-issue-form/stock-issue-form.component.scss +0 -0
  135. package/projects/inventory-common/src/lib/inventory-common/stock-issuances/stock-issue-form/stock-issue-form/stock-issue-form.component.ts +115 -0
  136. 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
  137. 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
  138. 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
  139. package/projects/inventory-common/src/lib/inventory-common/stock-issuances/stock-issue-form/stock-issue-form.module.ts +29 -0
  140. package/projects/inventory-common/src/lib/inventory-common/stock-receipts/stock-receipt-delete-button/stock-receipt-delete-button.component.html +32 -0
  141. package/projects/inventory-common/src/lib/inventory-common/stock-receipts/stock-receipt-delete-button/stock-receipt-delete-button.component.scss +0 -0
  142. package/projects/inventory-common/src/lib/inventory-common/stock-receipts/stock-receipt-delete-button/stock-receipt-delete-button.component.ts +49 -0
  143. package/projects/inventory-common/src/lib/inventory-common/stock-receipts/stock-receipt-form/stock-receipt-form/stock-receipt-form.component.html +74 -0
  144. package/projects/inventory-common/src/lib/inventory-common/stock-receipts/stock-receipt-form/stock-receipt-form/stock-receipt-form.component.scss +0 -0
  145. package/projects/inventory-common/src/lib/inventory-common/stock-receipts/stock-receipt-form/stock-receipt-form/stock-receipt-form.component.ts +122 -0
  146. 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
  147. 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
  148. 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
  149. package/projects/inventory-common/src/lib/inventory-common/stock-receipts/stock-receipt-form/stock-receipt-form.module.ts +29 -0
  150. package/projects/inventory-common/src/lib/inventory-common/stock-receipts/stock-receipt.service.ts +11 -0
  151. package/projects/inventory-common/src/lib/inventory-common/stock-receipts/stock-receipts-list-page/stock-receipts-list-page.component.html +139 -0
  152. package/projects/inventory-common/src/lib/inventory-common/stock-receipts/stock-receipts-list-page/stock-receipts-list-page.component.scss +0 -0
  153. package/projects/inventory-common/src/lib/inventory-common/stock-receipts/stock-receipts-list-page/stock-receipts-list-page.component.ts +109 -0
  154. package/projects/inventory-common/src/lib/inventory-common/stock-receipts/stock-receipts-routing.module.ts +16 -0
  155. package/projects/inventory-common/src/lib/inventory-common/stock-receipts/stock-receipts.module.ts +45 -0
  156. package/projects/inventory-common/src/lib/inventory-common/stock-summary.service.ts +18 -0
  157. package/projects/inventory-common/src/lib/inventory-common/supplier/payee-selector/payee-selector/payee-selector.component.html +22 -0
  158. package/projects/inventory-common/src/lib/inventory-common/supplier/payee-selector/payee-selector/payee-selector.component.scss +0 -0
  159. package/projects/inventory-common/src/lib/inventory-common/supplier/payee-selector/payee-selector/payee-selector.component.ts +44 -0
  160. package/projects/inventory-common/src/lib/inventory-common/supplier/payee-selector/payee-selector.module.ts +19 -0
  161. package/projects/inventory-common/src/lib/inventory-common/supplier/supplier-delete-button/supplier-delete-button.component.css +0 -0
  162. package/projects/inventory-common/src/lib/inventory-common/supplier/supplier-delete-button/supplier-delete-button.component.html +3 -0
  163. package/projects/inventory-common/src/lib/inventory-common/supplier/supplier-delete-button/supplier-delete-button.component.spec.ts +28 -0
  164. package/projects/inventory-common/src/lib/inventory-common/supplier/supplier-delete-button/supplier-delete-button.component.ts +56 -0
  165. package/projects/inventory-common/src/lib/inventory-common/supplier/supplier-form/supplier-form-button/supplier-form-button.component.css +0 -0
  166. package/projects/inventory-common/src/lib/inventory-common/supplier/supplier-form/supplier-form-button/supplier-form-button.component.html +3 -0
  167. package/projects/inventory-common/src/lib/inventory-common/supplier/supplier-form/supplier-form-button/supplier-form-button.component.spec.ts +28 -0
  168. package/projects/inventory-common/src/lib/inventory-common/supplier/supplier-form/supplier-form-button/supplier-form-button.component.ts +40 -0
  169. package/projects/inventory-common/src/lib/inventory-common/supplier/supplier-form/supplier-form.component.html +100 -0
  170. package/projects/inventory-common/src/lib/inventory-common/supplier/supplier-form/supplier-form.component.ts +116 -0
  171. package/projects/inventory-common/src/lib/inventory-common/supplier/supplier-form/supplier-form.service.ts +11 -0
  172. package/projects/inventory-common/src/lib/inventory-common/supplier/supplier-information/supplier-information.component.html +67 -0
  173. package/projects/inventory-common/src/lib/inventory-common/supplier/supplier-information/supplier-information.component.scss +0 -0
  174. package/projects/inventory-common/src/lib/inventory-common/supplier/supplier-information/supplier-information.component.ts +68 -0
  175. package/projects/inventory-common/src/lib/inventory-common/supplier/supplier-routing.module.ts +32 -0
  176. package/projects/inventory-common/src/lib/inventory-common/supplier/supplier-type.service.ts +17 -0
  177. package/projects/inventory-common/src/lib/inventory-common/supplier/supplier-view/supplier-view.component.html +60 -0
  178. package/projects/inventory-common/src/lib/inventory-common/supplier/supplier-view/supplier-view.component.ts +58 -0
  179. package/projects/inventory-common/src/lib/inventory-common/supplier/supplier.component.html +3 -0
  180. package/projects/inventory-common/src/lib/inventory-common/supplier/supplier.component.scss +0 -0
  181. package/projects/inventory-common/src/lib/inventory-common/supplier/supplier.component.ts +16 -0
  182. package/projects/inventory-common/src/lib/inventory-common/supplier/supplier.module.ts +46 -0
  183. package/projects/inventory-common/src/lib/inventory-common/supplier/supplier.service.ts +57 -0
  184. package/projects/inventory-common/src/lib/inventory-common/supplier/suppliers-list/suppliers-list.component.html +98 -0
  185. package/projects/inventory-common/src/lib/inventory-common/supplier/suppliers-list/suppliers-list.component.ts +126 -0
  186. package/projects/inventory-common/src/lib/inventory-common/techlify-filter/techlify-filter.component.html +442 -0
  187. package/projects/inventory-common/src/lib/inventory-common/techlify-filter/techlify-filter.component.scss +0 -0
  188. package/projects/inventory-common/src/lib/inventory-common/techlify-filter/techlify-filter.component.ts +109 -0
  189. package/projects/inventory-common/src/lib/inventory-common/techlify-filter/techlify-filter.module.ts +24 -0
  190. package/projects/inventory-common/src/public-api.ts +10 -0
  191. package/projects/inventory-common/tsconfig.lib.json +17 -0
  192. package/projects/inventory-common/tsconfig.lib.prod.json +13 -0
  193. package/projects/inventory-common/tsconfig.spec.json +17 -0
  194. package/public_api.ts +23 -0
  195. package/releases/techlify-ng-users-0.0.4.tgz +0 -0
  196. package/releases/techlify-ng-users-0.0.5.tgz +0 -0
  197. package/src/.htaccess +19 -0
  198. package/src/app/@modules/@shared/print-button/print-button/print-button.component.html +3 -0
  199. package/src/app/@modules/@shared/print-button/print-button/print-button.component.scss +0 -0
  200. package/src/app/@modules/@shared/print-button/print-button/print-button.component.ts +11 -0
  201. package/src/app/@modules/@shared/print-button/print-button.module.ts +11 -0
  202. package/src/app/@modules/@shared/print-button/print.service.ts +38 -0
  203. package/src/app/@modules/@shared/techlify-form-service.ts +14 -0
  204. package/src/app/@modules/@shared/user-menu/user-menu.component.html +26 -0
  205. package/src/app/@modules/@shared/user-menu/user-menu.component.spec.ts +23 -0
  206. package/src/app/@modules/@shared/user-menu/user-menu.component.ts +46 -0
  207. package/src/app/@modules/@shared/user-menu/user-menu.module.ts +20 -0
  208. package/src/app/@modules/administration/administration-routing.module.ts +44 -0
  209. package/src/app/@modules/administration/administration.component.html +3 -0
  210. package/src/app/@modules/administration/administration.component.ts +11 -0
  211. package/src/app/@modules/administration/administration.module.ts +18 -0
  212. package/src/app/@modules/administration/administration.service.ts +33 -0
  213. package/src/app/@modules/auth/auth-routing.module.ts +17 -0
  214. package/src/app/@modules/auth/auth.module.ts +12 -0
  215. package/src/app/@modules/auth/login/login.component.html +302 -0
  216. package/src/app/@modules/auth/login/login.component.scss +43 -0
  217. package/src/app/@modules/auth/login/login.component.ts +57 -0
  218. package/src/app/@modules/inventory-common/category/category-form/category-form.component.html +41 -0
  219. package/src/app/@modules/inventory-common/category/category-form/category-form.component.scss +0 -0
  220. package/src/app/@modules/inventory-common/category/category-form/category-form.component.ts +75 -0
  221. package/src/app/@modules/inventory-common/category/category-form-button/category-form-button.component.html +32 -0
  222. package/src/app/@modules/inventory-common/category/category-form-button/category-form-button.component.scss +0 -0
  223. package/src/app/@modules/inventory-common/category/category-form-button/category-form-button.component.ts +29 -0
  224. package/src/app/@modules/inventory-common/category/category-list-page/category-list-page.component.html +79 -0
  225. package/src/app/@modules/inventory-common/category/category-list-page/category-list-page.component.scss +0 -0
  226. package/src/app/@modules/inventory-common/category/category-list-page/category-list-page.component.ts +61 -0
  227. package/src/app/@modules/inventory-common/category/category-routing.module.ts +16 -0
  228. package/src/app/@modules/inventory-common/category/category.module.ts +36 -0
  229. package/src/app/@modules/inventory-common/category/category.service.ts +11 -0
  230. package/src/app/@modules/inventory-common/inventory-common-routing.module.ts +55 -0
  231. package/src/app/@modules/inventory-common/inventory-common.module.ts +20 -0
  232. package/src/app/@modules/inventory-common/inventory-dashboard-page/inventory-dashboard-page.component.html +88 -0
  233. package/src/app/@modules/inventory-common/inventory-dashboard-page/inventory-dashboard-page.component.scss +0 -0
  234. package/src/app/@modules/inventory-common/inventory-dashboard-page/inventory-dashboard-page.component.ts +35 -0
  235. package/src/app/@modules/inventory-common/measure/measure-delete/measure-delete-button/measure-delete-button.component.html +37 -0
  236. package/src/app/@modules/inventory-common/measure/measure-delete/measure-delete-button/measure-delete-button.component.scss +0 -0
  237. package/src/app/@modules/inventory-common/measure/measure-delete/measure-delete-button/measure-delete-button.component.ts +44 -0
  238. package/src/app/@modules/inventory-common/measure/measure-delete/measure-delete.module.ts +11 -0
  239. package/src/app/@modules/inventory-common/measure/measure-form/measure-form/measure-form.component.html +66 -0
  240. package/src/app/@modules/inventory-common/measure/measure-form/measure-form/measure-form.component.scss +0 -0
  241. package/src/app/@modules/inventory-common/measure/measure-form/measure-form/measure-form.component.ts +78 -0
  242. package/src/app/@modules/inventory-common/measure/measure-form/measure-form-button/measure-form-button.component.html +16 -0
  243. package/src/app/@modules/inventory-common/measure/measure-form/measure-form-button/measure-form-button.component.scss +0 -0
  244. package/src/app/@modules/inventory-common/measure/measure-form/measure-form-button/measure-form-button.component.ts +29 -0
  245. package/src/app/@modules/inventory-common/measure/measure-form/measure-form.module.ts +13 -0
  246. package/src/app/@modules/inventory-common/measure/measure-routing.module.ts +16 -0
  247. package/src/app/@modules/inventory-common/measure/measure.module.ts +26 -0
  248. package/src/app/@modules/inventory-common/measure/measure.service.ts +11 -0
  249. package/src/app/@modules/inventory-common/measure/measures-list/measures-list.component.html +88 -0
  250. package/src/app/@modules/inventory-common/measure/measures-list/measures-list.component.scss +0 -0
  251. package/src/app/@modules/inventory-common/measure/measures-list/measures-list.component.ts +67 -0
  252. package/src/app/@modules/inventory-common/product/low-stock-products-widget/low-stock-products-widget.component.html +52 -0
  253. package/src/app/@modules/inventory-common/product/low-stock-products-widget/low-stock-products-widget.component.scss +0 -0
  254. package/src/app/@modules/inventory-common/product/low-stock-products-widget/low-stock-products-widget.component.ts +42 -0
  255. package/src/app/@modules/inventory-common/product/low-stock-products-widget/low-stock-products-widget.module.ts +20 -0
  256. package/src/app/@modules/inventory-common/product/product-basic-info/product-basic-info.component.html +114 -0
  257. package/src/app/@modules/inventory-common/product/product-basic-info/product-basic-info.component.scss +0 -0
  258. package/src/app/@modules/inventory-common/product/product-basic-info/product-basic-info.component.ts +43 -0
  259. package/src/app/@modules/inventory-common/product/product-delete-button/product-delete-button.component.html +33 -0
  260. package/src/app/@modules/inventory-common/product/product-delete-button/product-delete-button.component.scss +0 -0
  261. package/src/app/@modules/inventory-common/product/product-delete-button/product-delete-button.component.ts +53 -0
  262. package/src/app/@modules/inventory-common/product/product-form/product-form.component.html +209 -0
  263. package/src/app/@modules/inventory-common/product/product-form/product-form.component.spec.ts +24 -0
  264. package/src/app/@modules/inventory-common/product/product-form/product-form.component.ts +182 -0
  265. package/src/app/@modules/inventory-common/product/product-form-button/product-form-button.component.html +17 -0
  266. package/src/app/@modules/inventory-common/product/product-form-button/product-form-button.component.scss +0 -0
  267. package/src/app/@modules/inventory-common/product/product-form-button/product-form-button.component.ts +39 -0
  268. package/src/app/@modules/inventory-common/product/product-form.service.ts +11 -0
  269. package/src/app/@modules/inventory-common/product/product-import-page/product-import-page.component.html +1 -0
  270. package/src/app/@modules/inventory-common/product/product-import-page/product-import-page.component.scss +0 -0
  271. package/src/app/@modules/inventory-common/product/product-import-page/product-import-page.component.ts +66 -0
  272. package/src/app/@modules/inventory-common/product/product-list/product-list.component.html +229 -0
  273. package/src/app/@modules/inventory-common/product/product-list/product-list.component.spec.ts +24 -0
  274. package/src/app/@modules/inventory-common/product/product-list/product-list.component.ts +176 -0
  275. package/src/app/@modules/inventory-common/product/product-measure-form/product-measure-form.component.html +44 -0
  276. package/src/app/@modules/inventory-common/product/product-measure-form/product-measure-form.component.spec.ts +24 -0
  277. package/src/app/@modules/inventory-common/product/product-measure-form/product-measure-form.component.ts +93 -0
  278. package/src/app/@modules/inventory-common/product/product-measures-list/product-measures-list.component.html +90 -0
  279. package/src/app/@modules/inventory-common/product/product-measures-list/product-measures-list.component.spec.ts +24 -0
  280. package/src/app/@modules/inventory-common/product/product-measures-list/product-measures-list.component.ts +153 -0
  281. package/src/app/@modules/inventory-common/product/product-nav-bar/product-nav-bar.component.html +3 -0
  282. package/src/app/@modules/inventory-common/product/product-nav-bar/product-nav-bar.component.spec.ts +24 -0
  283. package/src/app/@modules/inventory-common/product/product-nav-bar/product-nav-bar.component.ts +7 -0
  284. package/src/app/@modules/inventory-common/product/product-routing.module.ts +49 -0
  285. package/src/app/@modules/inventory-common/product/product-search/product-search.component.html +78 -0
  286. package/src/app/@modules/inventory-common/product/product-search/product-search.component.scss +12 -0
  287. package/src/app/@modules/inventory-common/product/product-search/product-search.component.ts +153 -0
  288. package/src/app/@modules/inventory-common/product/product-search/product-search.module.ts +22 -0
  289. package/src/app/@modules/inventory-common/product/product-summary-chart/product-summary-chart.component.html +17 -0
  290. package/src/app/@modules/inventory-common/product/product-summary-chart/product-summary-chart.component.scss +0 -0
  291. package/src/app/@modules/inventory-common/product/product-summary-chart/product-summary-chart.component.ts +45 -0
  292. package/src/app/@modules/inventory-common/product/product-summary-chart/product-summary-chart.module.ts +18 -0
  293. package/src/app/@modules/inventory-common/product/product-tax/product-tax-delete-button/product-tax-delete-button.component.html +32 -0
  294. package/src/app/@modules/inventory-common/product/product-tax/product-tax-delete-button/product-tax-delete-button.component.scss +0 -0
  295. package/src/app/@modules/inventory-common/product/product-tax/product-tax-delete-button/product-tax-delete-button.component.ts +55 -0
  296. package/src/app/@modules/inventory-common/product/product-tax/product-tax-form-button/product-tax-form-button.component.html +49 -0
  297. package/src/app/@modules/inventory-common/product/product-tax/product-tax-form-button/product-tax-form-button.component.scss +0 -0
  298. package/src/app/@modules/inventory-common/product/product-tax/product-tax-form-button/product-tax-form-button.component.ts +87 -0
  299. package/src/app/@modules/inventory-common/product/product-tax/product-tax-list/product-tax-list.component.html +48 -0
  300. package/src/app/@modules/inventory-common/product/product-tax/product-tax-list/product-tax-list.component.scss +0 -0
  301. package/src/app/@modules/inventory-common/product/product-tax/product-tax-list/product-tax-list.component.ts +33 -0
  302. package/src/app/@modules/inventory-common/product/product-tax/product-tax.module.ts +23 -0
  303. package/src/app/@modules/inventory-common/product/product-tax/product-tax.service.ts +11 -0
  304. package/src/app/@modules/inventory-common/product/product-view-page/product-view-page.component.html +34 -0
  305. package/src/app/@modules/inventory-common/product/product-view-page/product-view-page.component.ts +63 -0
  306. package/src/app/@modules/inventory-common/product/product.module.ts +67 -0
  307. package/src/app/@modules/inventory-common/product/product.service.ts +54 -0
  308. package/src/app/@modules/inventory-common/stock-issuances/stock-issuance-delete-button/stock-issuance-delete-button.component.html +32 -0
  309. package/src/app/@modules/inventory-common/stock-issuances/stock-issuance-delete-button/stock-issuance-delete-button.component.scss +0 -0
  310. package/src/app/@modules/inventory-common/stock-issuances/stock-issuance-delete-button/stock-issuance-delete-button.component.ts +49 -0
  311. package/src/app/@modules/inventory-common/stock-issuances/stock-issuance-delete-button/stock-issuance-delete-button.module.ts +11 -0
  312. package/src/app/@modules/inventory-common/stock-issuances/stock-issuance.service.ts +11 -0
  313. package/src/app/@modules/inventory-common/stock-issuances/stock-issuances-list/stock-issuances-list.component.html +165 -0
  314. package/src/app/@modules/inventory-common/stock-issuances/stock-issuances-list/stock-issuances-list.component.scss +0 -0
  315. package/src/app/@modules/inventory-common/stock-issuances/stock-issuances-list/stock-issuances-list.component.ts +113 -0
  316. package/src/app/@modules/inventory-common/stock-issuances/stock-issuances-list/stock-issuances-list.module.ts +26 -0
  317. package/src/app/@modules/inventory-common/stock-issuances/stock-issuances-routing.module.ts +16 -0
  318. package/src/app/@modules/inventory-common/stock-issuances/stock-issuances.module.ts +36 -0
  319. package/src/app/@modules/inventory-common/stock-issuances/stock-issue-form/stock-issue-form/stock-issue-form.component.html +64 -0
  320. package/src/app/@modules/inventory-common/stock-issuances/stock-issue-form/stock-issue-form/stock-issue-form.component.scss +0 -0
  321. package/src/app/@modules/inventory-common/stock-issuances/stock-issue-form/stock-issue-form/stock-issue-form.component.ts +115 -0
  322. package/src/app/@modules/inventory-common/stock-issuances/stock-issue-form/stock-issue-form-button/stock-issue-form-button.component.html +20 -0
  323. package/src/app/@modules/inventory-common/stock-issuances/stock-issue-form/stock-issue-form-button/stock-issue-form-button.component.scss +0 -0
  324. package/src/app/@modules/inventory-common/stock-issuances/stock-issue-form/stock-issue-form-button/stock-issue-form-button.component.ts +35 -0
  325. package/src/app/@modules/inventory-common/stock-issuances/stock-issue-form/stock-issue-form.module.ts +29 -0
  326. package/src/app/@modules/inventory-common/stock-receipts/stock-receipt-delete-button/stock-receipt-delete-button.component.html +32 -0
  327. package/src/app/@modules/inventory-common/stock-receipts/stock-receipt-delete-button/stock-receipt-delete-button.component.scss +0 -0
  328. package/src/app/@modules/inventory-common/stock-receipts/stock-receipt-delete-button/stock-receipt-delete-button.component.ts +49 -0
  329. package/src/app/@modules/inventory-common/stock-receipts/stock-receipt-form/stock-receipt-form/stock-receipt-form.component.html +74 -0
  330. package/src/app/@modules/inventory-common/stock-receipts/stock-receipt-form/stock-receipt-form/stock-receipt-form.component.scss +0 -0
  331. package/src/app/@modules/inventory-common/stock-receipts/stock-receipt-form/stock-receipt-form/stock-receipt-form.component.ts +122 -0
  332. package/src/app/@modules/inventory-common/stock-receipts/stock-receipt-form/stock-receipt-form-button/stock-receipt-form-button.component.html +18 -0
  333. package/src/app/@modules/inventory-common/stock-receipts/stock-receipt-form/stock-receipt-form-button/stock-receipt-form-button.component.scss +0 -0
  334. package/src/app/@modules/inventory-common/stock-receipts/stock-receipt-form/stock-receipt-form-button/stock-receipt-form-button.component.ts +33 -0
  335. package/src/app/@modules/inventory-common/stock-receipts/stock-receipt-form/stock-receipt-form.module.ts +29 -0
  336. package/src/app/@modules/inventory-common/stock-receipts/stock-receipt.service.ts +11 -0
  337. package/src/app/@modules/inventory-common/stock-receipts/stock-receipts-list-page/stock-receipts-list-page.component.html +139 -0
  338. package/src/app/@modules/inventory-common/stock-receipts/stock-receipts-list-page/stock-receipts-list-page.component.scss +0 -0
  339. package/src/app/@modules/inventory-common/stock-receipts/stock-receipts-list-page/stock-receipts-list-page.component.ts +109 -0
  340. package/src/app/@modules/inventory-common/stock-receipts/stock-receipts-routing.module.ts +16 -0
  341. package/src/app/@modules/inventory-common/stock-receipts/stock-receipts.module.ts +45 -0
  342. package/src/app/@modules/inventory-common/stock-summary.service.ts +18 -0
  343. package/src/app/@modules/inventory-common/supplier/payee-selector/payee-selector/payee-selector.component.html +22 -0
  344. package/src/app/@modules/inventory-common/supplier/payee-selector/payee-selector/payee-selector.component.scss +0 -0
  345. package/src/app/@modules/inventory-common/supplier/payee-selector/payee-selector/payee-selector.component.ts +44 -0
  346. package/src/app/@modules/inventory-common/supplier/payee-selector/payee-selector.module.ts +19 -0
  347. package/src/app/@modules/inventory-common/supplier/supplier-form/supplier-form.component.html +133 -0
  348. package/src/app/@modules/inventory-common/supplier/supplier-form/supplier-form.component.ts +116 -0
  349. package/src/app/@modules/inventory-common/supplier/supplier-form/supplier-form.service.ts +11 -0
  350. package/src/app/@modules/inventory-common/supplier/supplier-information/supplier-information.component.html +67 -0
  351. package/src/app/@modules/inventory-common/supplier/supplier-information/supplier-information.component.scss +0 -0
  352. package/src/app/@modules/inventory-common/supplier/supplier-information/supplier-information.component.ts +68 -0
  353. package/src/app/@modules/inventory-common/supplier/supplier-routing.module.ts +32 -0
  354. package/src/app/@modules/inventory-common/supplier/supplier-type.service.ts +17 -0
  355. package/src/app/@modules/inventory-common/supplier/supplier-view/supplier-view.component.html +60 -0
  356. package/src/app/@modules/inventory-common/supplier/supplier-view/supplier-view.component.ts +58 -0
  357. package/src/app/@modules/inventory-common/supplier/supplier.component.html +3 -0
  358. package/src/app/@modules/inventory-common/supplier/supplier.component.scss +0 -0
  359. package/src/app/@modules/inventory-common/supplier/supplier.component.ts +16 -0
  360. package/src/app/@modules/inventory-common/supplier/supplier.module.ts +42 -0
  361. package/src/app/@modules/inventory-common/supplier/supplier.service.ts +57 -0
  362. package/src/app/@modules/inventory-common/supplier/suppliers-list/suppliers-list.component.html +140 -0
  363. package/src/app/@modules/inventory-common/supplier/suppliers-list/suppliers-list.component.ts +240 -0
  364. package/src/app/@modules/sidebar-layout/expandable-menu/expandable-menu.component.html +10 -0
  365. package/src/app/@modules/sidebar-layout/expandable-menu/expandable-menu.component.scss +20 -0
  366. package/src/app/@modules/sidebar-layout/expandable-menu/expandable-menu.component.ts +24 -0
  367. package/src/app/@modules/sidebar-layout/menu-item.model.ts +12 -0
  368. package/src/app/@modules/sidebar-layout/sidebar-administration-menu/sidebar-administration-menu.component.html +26 -0
  369. package/src/app/@modules/sidebar-layout/sidebar-administration-menu/sidebar-administration-menu.component.ts +23 -0
  370. package/src/app/@modules/sidebar-layout/sidebar-layout/sidebar-layout.component.html +32 -0
  371. package/src/app/@modules/sidebar-layout/sidebar-layout/sidebar-layout.component.scss +48 -0
  372. package/src/app/@modules/sidebar-layout/sidebar-layout/sidebar-layout.component.ts +173 -0
  373. package/src/app/@modules/sidebar-layout/sidebar-layout-routing.module.ts +52 -0
  374. package/src/app/@modules/sidebar-layout/sidebar-layout.module.ts +52 -0
  375. package/src/app/@modules/sidebar-layout/top-menu/top-menu.component.html +85 -0
  376. package/src/app/@modules/sidebar-layout/top-menu/top-menu.component.scss +0 -0
  377. package/src/app/@modules/sidebar-layout/top-menu/top-menu.component.ts +46 -0
  378. package/src/app/@modules/sidebar-layout/top-menu/top-menu.service.ts +29 -0
  379. package/src/app/@modules/techlify-filter/techlify-filter.component.html +442 -0
  380. package/src/app/@modules/techlify-filter/techlify-filter.component.scss +0 -0
  381. package/src/app/@modules/techlify-filter/techlify-filter.component.ts +109 -0
  382. package/src/app/@modules/techlify-filter/techlify-filter.module.ts +24 -0
  383. package/src/app/@modules/user/user-layout/user-layout.component.html +15 -0
  384. package/src/app/@modules/user/user-layout/user-layout.component.scss +0 -0
  385. package/src/app/@modules/user/user-layout/user-layout.component.ts +12 -0
  386. package/src/app/@modules/user/user-routing.module.ts +23 -0
  387. package/src/app/@modules/user/user.module.ts +13 -0
  388. package/src/app/@modules/user-setting-button/user-setting-button/user-setting-button.component.html +15 -0
  389. package/src/app/@modules/user-setting-button/user-setting-button/user-setting-button.component.scss +0 -0
  390. package/src/app/@modules/user-setting-button/user-setting-button/user-setting-button.component.ts +12 -0
  391. package/src/app/@modules/user-setting-button/user-setting-button.module.ts +20 -0
  392. package/src/app/app-routing.module.ts +28 -0
  393. package/src/app/app.component.html +1 -0
  394. package/src/app/app.component.scss +43 -0
  395. package/src/app/app.component.spec.ts +18 -0
  396. package/src/app/app.component.ts +62 -0
  397. package/src/app/app.module.ts +73 -0
  398. package/src/app/material.module.ts +95 -0
  399. package/src/assets/.gitkeep +0 -0
  400. package/src/assets/images/techlify-logo-xs.png +0 -0
  401. package/src/assets/product/product-import-sample.csv +1 -0
  402. package/src/environments/common-environment.ts +36 -0
  403. package/src/environments/environment.prod.ts +10 -0
  404. package/src/environments/environment.staging.ts +19 -0
  405. package/src/environments/environment.ts +18 -0
  406. package/src/favicon.ico +0 -0
  407. package/src/index.html +34 -0
  408. package/src/main.ts +19 -0
  409. package/src/polyfills.ts +57 -0
  410. package/src/styles.scss +366 -0
  411. package/src/test.ts +12 -0
  412. package/src/theme/theme-variables.scss +132 -0
  413. package/src/theme/theme.scss +17 -0
  414. package/src/tsconfig.app.json +15 -0
  415. package/src/tsconfig.spec.json +14 -0
  416. package/tsconfig.app.json +17 -0
  417. package/tsconfig.json +69 -0
  418. 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>
@@ -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,10 @@
1
+ /*
2
+ * Public API Surface of inventory-common
3
+ */
4
+
5
+ export * from './lib/inventory-common/inventory-common-routing.module';
6
+ export * from './lib/inventory-common/inventory-common.module';
7
+ export * from './lib/inventory-common/stock-summary.service';
8
+
9
+ export * from './lib/inventory-common/techlify-filter/techlify-filter.module';
10
+ export * from './lib/inventory-common/techlify-filter/techlify-filter.component';
@@ -0,0 +1,17 @@
1
+ /* To learn more about Typescript configuration file: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */
2
+ /* To learn more about Angular compiler options: https://angular.dev/reference/configs/angular-compiler-options. */
3
+ {
4
+ "extends": "../../tsconfig.json",
5
+ "compilerOptions": {
6
+ "outDir": "../../out-tsc/lib",
7
+ "declaration": true,
8
+ "declarationMap": true,
9
+ "inlineSources": true,
10
+ "esModuleInterop": true,
11
+ "allowSyntheticDefaultImports": true,
12
+ "types": []
13
+ },
14
+ "exclude": [
15
+ "**/*.spec.ts"
16
+ ]
17
+ }
@@ -0,0 +1,13 @@
1
+ /* To learn more about Typescript configuration file: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */
2
+ /* To learn more about Angular compiler options: https://angular.dev/reference/configs/angular-compiler-options. */
3
+ {
4
+ "extends": "./tsconfig.lib.json",
5
+ "compilerOptions": {
6
+ "declarationMap": false,
7
+ "esModuleInterop": true,
8
+ "allowSyntheticDefaultImports": true,
9
+ },
10
+ "angularCompilerOptions": {
11
+ "compilationMode": "partial"
12
+ }
13
+ }
@@ -0,0 +1,17 @@
1
+ /* To learn more about Typescript configuration file: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */
2
+ /* To learn more about Angular compiler options: https://angular.dev/reference/configs/angular-compiler-options. */
3
+ {
4
+ "extends": "../../tsconfig.json",
5
+ "compilerOptions": {
6
+ "outDir": "../../out-tsc/spec",
7
+ "types": [
8
+ "jasmine"
9
+ ],
10
+ "esModuleInterop": true,
11
+ "allowSyntheticDefaultImports": true,
12
+ },
13
+ "include": [
14
+ "**/*.spec.ts",
15
+ "**/*.d.ts"
16
+ ]
17
+ }
package/public_api.ts ADDED
@@ -0,0 +1,23 @@
1
+ export * from './src/app/modules/inventory/inventory.module'
2
+
3
+ /* Inventory Item */
4
+ export * from './src/app/modules/inventory/inventory-item.model';
5
+ export * from './src/app/modules/inventory/inventory-items.component';
6
+ export * from './src/app/modules/inventory/inventory-item-add.component';
7
+ export * from './src/app/modules/inventory/inventory-item-edit.component';
8
+ export * from './src/app/modules/inventory/inventory-item-view.component';
9
+ export * from './src/app/modules/inventory/inventory-item-selector.component';
10
+
11
+ /* Item In */
12
+ export * from './src/app/modules/inventory/item-in/inventory-in.model';
13
+ export * from './src/app/modules/inventory/item-in/inventory-in-add.component';
14
+ export * from './src/app/modules/inventory/item-in/inventory-in-edit.component';
15
+ export * from './src/app/modules/inventory/item-in/inventory-in-delete.component';
16
+ export * from './src/app/modules/inventory/item-in/inventory-in-view-all.component';
17
+
18
+ /* Item Out */
19
+ export * from './src/app/modules/inventory/item-out/inventory-out.model';
20
+ export * from './src/app/modules/inventory/item-out/inventory-out-add.component';
21
+ export * from './src/app/modules/inventory/item-out/inventory-out-delete.component';
22
+ export * from './src/app/modules/inventory/item-out/inventory-out-edit.component';
23
+ export * from './src/app/modules/inventory/item-out/inventory-out-view-all.component';
package/src/.htaccess ADDED
@@ -0,0 +1,19 @@
1
+
2
+ <IfModule mod_rewrite.c>
3
+ RewriteEngine On
4
+
5
+ # -- Redirection to https (optional):
6
+ # Notice: We have to set base-href attribute correctly:
7
+ # a) If app is on the root of the domain, can just use "/"
8
+ # b) If not, we need to set "https://" instead of "http://" in base-href attribute
9
+ # If need this, uncomment the next two commands
10
+
11
+ RewriteCond %{HTTPS} !on
12
+ RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
13
+
14
+ RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -f [OR]
15
+ RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -d
16
+
17
+ RewriteRule ^.*$ - [NC,L]
18
+ RewriteRule ^(.*) index.html [NC,L]
19
+ </IfModule>