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,32 @@
1
+ <span
2
+ class="material-symbols-outlined cursor-pointer"
3
+ (click)="showDeleteConfirmModel(deleteModelTemplate)"
4
+ >
5
+ delete
6
+ </span>
7
+
8
+ <ng-template #deleteModelTemplate>
9
+ <h3 mat-dialog-title>Delete Stock Issuance</h3>
10
+ <div mat-dialog-content>
11
+ <p>Are you sure you want to delete the stock issuance record?</p>
12
+ </div>
13
+ <div mat-dialog-actions class="d-flex justify-content-end gap-2">
14
+ <button
15
+ [disabled]="isDeleting"
16
+ mat-raised-button
17
+ type="button"
18
+ color="warn"
19
+ (click)="delete()"
20
+ >
21
+ Delete
22
+ </button>
23
+ <button
24
+ [disabled]="isDeleting"
25
+ mat-flat-button
26
+ mat-dialog-close
27
+ type="button"
28
+ >
29
+ Cancel
30
+ </button>
31
+ </div>
32
+ </ng-template>
@@ -0,0 +1,49 @@
1
+ import {
2
+ Component,
3
+ EventEmitter,
4
+ Input,
5
+ Output,
6
+ TemplateRef,
7
+ } from "@angular/core";
8
+ import { MatDialog } from "@angular/material/dialog";
9
+ import { StockIssuanceService } from "../stock-issuance.service";
10
+ import { AlertService } from "ngx-techlify-core";
11
+
12
+ @Component({
13
+ selector: "app-stock-issuance-delete-button",
14
+ templateUrl: "./stock-issuance-delete-button.component.html",
15
+ styleUrls: ["./stock-issuance-delete-button.component.scss"],
16
+ })
17
+ export class StockIssuanceDeleteButtonComponent {
18
+ @Input() stockIssuance: any;
19
+ @Output() deleted: EventEmitter<any> = new EventEmitter<any>();
20
+ isDeleting: boolean = false;
21
+
22
+ constructor(
23
+ private matDialog: MatDialog,
24
+ private stockIssuanceService: StockIssuanceService,
25
+ private alertService: AlertService
26
+ ) {}
27
+
28
+ showDeleteConfirmModel(templateRef: TemplateRef<any>) {
29
+ this.matDialog.open(templateRef, { width: "400px" });
30
+ }
31
+
32
+ delete() {
33
+ this.isDeleting = true;
34
+ this.stockIssuanceService.delete(this.stockIssuance).subscribe({
35
+ next: () => {
36
+ this.matDialog.closeAll();
37
+ this.isDeleting = false;
38
+ this.deleted.emit();
39
+ this.alertService.addAlert(
40
+ "Stock Issuance deleted successfully!",
41
+ "success"
42
+ );
43
+ },
44
+ error: () => {
45
+ this.isDeleting = false;
46
+ },
47
+ });
48
+ }
49
+ }
@@ -0,0 +1,11 @@
1
+ import { NgModule } from "@angular/core";
2
+ import { CommonModule } from "@angular/common";
3
+ import { StockIssuanceDeleteButtonComponent } from "./stock-issuance-delete-button.component";
4
+ import { MaterialModule } from "ngx-techlify-core";
5
+
6
+ @NgModule({
7
+ declarations: [StockIssuanceDeleteButtonComponent],
8
+ imports: [CommonModule, MaterialModule],
9
+ exports: [StockIssuanceDeleteButtonComponent],
10
+ })
11
+ export class StockIssuanceDeleteButtonModule {}
@@ -0,0 +1,11 @@
1
+ import { Injectable } from "@angular/core";
2
+ import { HttpService, TechlifyServiceBaseClass } from "ngx-techlify-core";
3
+
4
+ @Injectable({
5
+ providedIn: "root",
6
+ })
7
+ export class StockIssuanceService extends TechlifyServiceBaseClass {
8
+ constructor(httpService: HttpService) {
9
+ super(httpService, "stock-issuances");
10
+ }
11
+ }
@@ -0,0 +1,165 @@
1
+ <mat-card *ngIf="!product" class="mb-2">
2
+ <mat-card-content
3
+ class="d-flex justify-content-between align-items-center gap-3"
4
+ >
5
+ <div class="d-flex justify-content-start align-items-center gap-2">
6
+ <h3 class="mb-0">{{ label }}</h3>
7
+
8
+ <app-stock-issue-form-button
9
+ icon="add"
10
+ [issuableType]="issuableType"
11
+ [issuableId]="issuableId"
12
+ (saved)="reload()"
13
+ ></app-stock-issue-form-button>
14
+ </div>
15
+
16
+ <app-techlify-filter
17
+ [filterForm]="filterForm"
18
+ [filterConfig]="filterConfig"
19
+ (filterUpdated)="reload()"
20
+ ></app-techlify-filter>
21
+ </mat-card-content>
22
+ </mat-card>
23
+
24
+ <mat-card>
25
+ <mat-card-content *ngIf="product" class="mb-0">
26
+ <div class="d-flex justify-content-start align-items-center gap-2 mb-2">
27
+ <span class="material-symbols-outlined"> ungroup </span>
28
+ <h3 class="mb-0">Stock Issuances</h3>
29
+
30
+ <app-stock-issue-form-button
31
+ [product]="product"
32
+ icon="add"
33
+ (saved)="reload(); listUpdated.emit()"
34
+ ></app-stock-issue-form-button>
35
+ </div>
36
+ </mat-card-content>
37
+ <mat-card-content class="p-0">
38
+ <table
39
+ mat-table
40
+ [dataSource]="models"
41
+ class="w-100"
42
+ aria-describedby="Stock Issuances"
43
+ infiniteScroll
44
+ [infiniteScrollDistance]="2"
45
+ [infiniteScrollThrottle]="50"
46
+ (scrolled)="onScroll()"
47
+ matSort
48
+ (matSortChange)="onSortChange($event)"
49
+ >
50
+ <!-- # Column -->
51
+ <ng-container matColumnDef="no">
52
+ <th mat-header-cell *matHeaderCellDef>#</th>
53
+ <td mat-cell *matCellDef="let element; let i = index">{{ i + 1 }}</td>
54
+ </ng-container>
55
+
56
+ <!-- Product Column -->
57
+ <ng-container matColumnDef="product">
58
+ <th mat-header-cell *matHeaderCellDef mat-sort-header>Product</th>
59
+ <td mat-cell *matCellDef="let element">
60
+ <a
61
+ [routerLink]="[
62
+ '/inventory/products/',
63
+ element?.product?.id,
64
+ 'view'
65
+ ]"
66
+ >
67
+ {{ element?.product?.name }}
68
+ </a>
69
+ </td>
70
+ </ng-container>
71
+
72
+ <!-- Date Column -->
73
+ <ng-container matColumnDef="date">
74
+ <th mat-header-cell *matHeaderCellDef mat-sort-header>Date</th>
75
+ <td mat-cell *matCellDef="let element">{{ element?.date | date }}</td>
76
+ </ng-container>
77
+
78
+ <!-- Related Column -->
79
+ <ng-container matColumnDef="related">
80
+ <th mat-header-cell *matHeaderCellDef mat-sort-header>Related</th>
81
+ <td mat-cell *matCellDef="let element">
82
+ <a
83
+ class="text-dark"
84
+ *ngIf="element?.issuable"
85
+ [routerLink]="['/maintenances', element?.issuable_id, 'view']"
86
+ >
87
+ Maintenance for {{ element?.issuable?.fixed_asset?.name }}
88
+ </a>
89
+ </td>
90
+ </ng-container>
91
+
92
+ <!-- Quantity Column -->
93
+ <ng-container matColumnDef="quantity">
94
+ <th mat-header-cell *matHeaderCellDef mat-sort-header>Quantity</th>
95
+ <td mat-cell *matCellDef="let element">
96
+ {{ element?.quantity }} {{ element?.product?.measure?.title }}
97
+ </td>
98
+ </ng-container>
99
+
100
+ <!-- Purchase Price Column -->
101
+ <ng-container matColumnDef="purchase_price">
102
+ <th mat-header-cell *matHeaderCellDef mat-sort-header>
103
+ Purchase Price
104
+ </th>
105
+ <td mat-cell *matCellDef="let element">
106
+ {{ element?.purchase_price | currency }}
107
+ </td>
108
+ </ng-container>
109
+
110
+ <!-- Total Value Column -->
111
+ <ng-container matColumnDef="amount">
112
+ <th mat-header-cell *matHeaderCellDef mat-sort-header>Total Value</th>
113
+ <td mat-cell *matCellDef="let element">
114
+ {{ element?.amount | currency }}
115
+ </td>
116
+ </ng-container>
117
+
118
+ <!-- Particulars Column -->
119
+ <ng-container matColumnDef="particulars">
120
+ <th mat-header-cell *matHeaderCellDef>Particulars</th>
121
+ <td mat-cell *matCellDef="let element">{{ element?.particulars }}</td>
122
+ </ng-container>
123
+
124
+ <!-- Supplier Column -->
125
+ <ng-container matColumnDef="supplier">
126
+ <th mat-header-cell *matHeaderCellDef mat-sort-header>Supplier</th>
127
+ <td mat-cell *matCellDef="let element">
128
+ {{ element?.supplier?.company_name }}
129
+ </td>
130
+ </ng-container>
131
+
132
+ <!-- Creator Column -->
133
+ <ng-container matColumnDef="creator">
134
+ <th mat-header-cell *matHeaderCellDef>Creator</th>
135
+ <td mat-cell *matCellDef="let element">
136
+ <p class="mb-1">{{ element?.creator?.name }}</p>
137
+ <small class="text-secondary">{{ element?.created_at | date }}</small>
138
+ </td>
139
+ </ng-container>
140
+
141
+ <!-- Actions Column -->
142
+ <ng-container matColumnDef="actions">
143
+ <th mat-header-cell *matHeaderCellDef>Actions</th>
144
+ <td mat-cell *matCellDef="let element">
145
+ <div class="d-flex gap-1">
146
+ <app-stock-issue-form-button
147
+ [product]="element.product"
148
+ [stockIssuance]="element"
149
+ (saved)="reload(); listUpdated.emit()"
150
+ ></app-stock-issue-form-button>
151
+ <app-stock-issuance-delete-button
152
+ [stockIssuance]="element"
153
+ (deleted)="reload(); listUpdated.emit()"
154
+ ></app-stock-issuance-delete-button>
155
+ </div>
156
+ </td>
157
+ </ng-container>
158
+
159
+ <tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>
160
+ <tr mat-row *matRowDef="let row; columns: displayedColumns"></tr>
161
+ </table>
162
+
163
+ <mat-progress-bar *ngIf="isWorking" mode="indeterminate"></mat-progress-bar>
164
+ </mat-card-content>
165
+ </mat-card>
@@ -0,0 +1,113 @@
1
+ import { Component, EventEmitter, Input, OnInit, Output } from "@angular/core";
2
+ import {
3
+ RequestHelperService,
4
+ TechlifyListingControllerInterface,
5
+ Timeline,
6
+ } from "ngx-techlify-core";
7
+ import { FormBuilder, FormGroup } from "@angular/forms";
8
+ import { debounceTime } from "rxjs";
9
+ import { Sort } from "@angular/material/sort";
10
+ import { StockIssuanceService } from "../stock-issuance.service";
11
+
12
+ @Component({
13
+ selector: "app-stock-issuances-list",
14
+ templateUrl: "./stock-issuances-list.component.html",
15
+ styleUrls: ["./stock-issuances-list.component.scss"],
16
+ })
17
+ export class StockIssuancesListComponent
18
+ extends TechlifyListingControllerInterface
19
+ implements OnInit
20
+ {
21
+ @Input() product: any;
22
+ @Input() issuableType!: string;
23
+ @Input() issuableId!: number;
24
+ @Input() label = "Stock Issuances";
25
+ @Output() listUpdated: EventEmitter<any> = new EventEmitter<any>();
26
+
27
+ filterConfig: any = {
28
+ duration: {
29
+ label: "Date",
30
+ },
31
+ search: {
32
+ placeholder: "Search Product Name, SKU, Description, etc",
33
+ },
34
+ };
35
+ displayedColumns: string[] = [
36
+ "no",
37
+ "product",
38
+ "date",
39
+ "quantity",
40
+ "related",
41
+ "particulars",
42
+ "creator",
43
+ "actions",
44
+ ];
45
+ constructor(
46
+ private formBuilder: FormBuilder,
47
+ private requestHelperService: RequestHelperService,
48
+ private stockIssuanceService: StockIssuanceService
49
+ ) {
50
+ super();
51
+ this.lastPage = 0;
52
+ this.filterForm = this.formBuilder.group({
53
+ duration: [Timeline.THIS_MONTH],
54
+ date_from: [""],
55
+ date_to: [""],
56
+ measure_ids: [""],
57
+ product_ids: [""],
58
+ search: [""],
59
+ sort_by: ["date|desc"],
60
+ });
61
+ }
62
+
63
+ ngOnInit(): void {
64
+ (this.filterForm as FormGroup).valueChanges
65
+ .pipe(debounceTime(500))
66
+ .subscribe({
67
+ next: () => this.reload(),
68
+ });
69
+ if (this.product) {
70
+ this.filterForm.get("product_ids")?.setValue(this.product?.id);
71
+ const index = this.displayedColumns.indexOf("product");
72
+ if (index !== -1) {
73
+ this.displayedColumns.splice(index, 1);
74
+ }
75
+ }
76
+ }
77
+
78
+ loadData(): void {
79
+ const params: any = {
80
+ page: this.page,
81
+ perPage: this.perPage,
82
+ with: "creator,product.measure,issuable.fixedAsset",
83
+ ...this.requestHelperService.convertToFormData(this.filterForm.value),
84
+ };
85
+ if (this.issuableId && this.issuableType) {
86
+ params.issuable_ids = this.issuableId;
87
+ params.issuable_types = this.issuableType;
88
+ }
89
+ this.isWorking = true;
90
+ this.stockIssuanceService.index(params).subscribe({
91
+ next: (response: any) => {
92
+ this.models = this.models.concat(response?.data);
93
+ this.lastPage = response?.last_page;
94
+ this.isWorking = false;
95
+ },
96
+ error: () => {
97
+ this.isWorking = false;
98
+ },
99
+ });
100
+ }
101
+
102
+ onSortChange(sort: Sort) {
103
+ let { active, direction } = sort;
104
+ if (!active) {
105
+ active = "date";
106
+ }
107
+ if (!direction) {
108
+ direction = "desc";
109
+ active = "date";
110
+ }
111
+ this.filterForm.get("sort_by").setValue(active + "|" + direction);
112
+ }
113
+ }
@@ -0,0 +1,26 @@
1
+ import { NgModule } from "@angular/core";
2
+ import { CommonModule } from "@angular/common";
3
+ import { StockIssuancesListComponent } from "./stock-issuances-list.component";
4
+ import { StockIssueFormModule } from "../stock-issue-form/stock-issue-form.module";
5
+ import { InfiniteScrollModule } from "ngx-infinite-scroll";
6
+ import { StockIssuanceDeleteButtonModule } from "../stock-issuance-delete-button/stock-issuance-delete-button.module";
7
+ import { MaterialModule } from "ngx-techlify-core";
8
+ import { TechlifyFilterModule } from "@modules/techlify-filter/techlify-filter.module";
9
+ import { MatProgressBarModule } from "@angular/material/progress-bar";
10
+ import { RouterModule } from "@angular/router";
11
+
12
+ @NgModule({
13
+ declarations: [StockIssuancesListComponent],
14
+ imports: [
15
+ CommonModule,
16
+ MaterialModule,
17
+ TechlifyFilterModule,
18
+ StockIssueFormModule,
19
+ InfiniteScrollModule,
20
+ StockIssuanceDeleteButtonModule,
21
+ MatProgressBarModule,
22
+ RouterModule,
23
+ ],
24
+ exports: [StockIssuancesListComponent],
25
+ })
26
+ export class StockIssuancesListModule {}
@@ -0,0 +1,16 @@
1
+ import { NgModule } from "@angular/core";
2
+ import { RouterModule, Routes } from "@angular/router";
3
+ import { StockIssuancesListComponent } from "./stock-issuances-list/stock-issuances-list.component";
4
+
5
+ const routes: Routes = [
6
+ {
7
+ path: "",
8
+ component: StockIssuancesListComponent,
9
+ },
10
+ ];
11
+
12
+ @NgModule({
13
+ imports: [RouterModule.forChild(routes)],
14
+ exports: [RouterModule],
15
+ })
16
+ export class StockIssuancesRoutingModule {}
@@ -0,0 +1,36 @@
1
+ import { NgModule } from "@angular/core";
2
+ import { CommonModule } from "@angular/common";
3
+
4
+ import { StockIssuancesRoutingModule } from "./stock-issuances-routing.module";
5
+ import { MatCardModule } from "@angular/material/card";
6
+ import { InfiniteScrollModule } from "ngx-infinite-scroll";
7
+ import { MatProgressBarModule } from "@angular/material/progress-bar";
8
+ import { MatSortModule } from "@angular/material/sort";
9
+ import { MatTableModule } from "@angular/material/table";
10
+ import { StockReceiptFormModule } from "../stock-receipts/stock-receipt-form/stock-receipt-form.module";
11
+ import { StockIssueFormModule } from "./stock-issue-form/stock-issue-form.module";
12
+ import { MatDialogModule } from "@angular/material/dialog";
13
+ import { MatButtonModule } from "@angular/material/button";
14
+ import { StockIssuancesListModule } from "./stock-issuances-list/stock-issuances-list.module";
15
+ import { TechlifyFilterModule } from "@modules/techlify-filter/techlify-filter.module";
16
+
17
+ @NgModule({
18
+ declarations: [],
19
+ exports: [],
20
+ imports: [
21
+ CommonModule,
22
+ StockIssuancesRoutingModule,
23
+ MatCardModule,
24
+ TechlifyFilterModule,
25
+ InfiniteScrollModule,
26
+ MatProgressBarModule,
27
+ MatSortModule,
28
+ MatTableModule,
29
+ StockReceiptFormModule,
30
+ StockIssueFormModule,
31
+ MatDialogModule,
32
+ MatButtonModule,
33
+ StockIssuancesListModule,
34
+ ],
35
+ })
36
+ export class StockIssuancesModule {}
@@ -0,0 +1,64 @@
1
+ <h3 class="text-center">
2
+ {{ stockIssuance?.id ? "Edit" : "Issue" }} Stock for {{ product?.name }}
3
+ </h3>
4
+ <form
5
+ [formGroup]="form"
6
+ class="d-flex flex-column gap-1 justify-content-start"
7
+ (submit)="save()"
8
+ >
9
+ <mat-form-field *ngIf="!product">
10
+ <mat-label>Product</mat-label>
11
+ <app-searchable-selector
12
+ formControlName="product_id"
13
+ apiUrl="api/products"
14
+ titleField="name"
15
+ (selectedValueChange)="onProductChange($event)"
16
+ ></app-searchable-selector>
17
+ </mat-form-field>
18
+
19
+ <mat-form-field>
20
+ <mat-label>Date</mat-label>
21
+ <input
22
+ matInput
23
+ [matDatepicker]="datePicker"
24
+ formControlName="date"
25
+ (focus)="datePicker.open()"
26
+ />
27
+ <mat-datepicker #datePicker></mat-datepicker>
28
+ <mat-error *ngIf="isFieldValid('date')">
29
+ {{ getErrorMessage("date") }}
30
+ </mat-error>
31
+ </mat-form-field>
32
+
33
+ <mat-form-field>
34
+ <mat-label>Quantity</mat-label>
35
+ <input matInput formControlName="quantity" type="number" min="0" />
36
+ <mat-error *ngIf="isFieldValid('quantity')">
37
+ {{ getErrorMessage("quantity") }}
38
+ </mat-error>
39
+ </mat-form-field>
40
+
41
+ <mat-form-field>
42
+ <mat-label>Particulars</mat-label>
43
+ <textarea matInput formControlName="particulars" rows="3"></textarea>
44
+ </mat-form-field>
45
+
46
+ <div class="d-flex justify-content-end align-items-center gap-2">
47
+ <button
48
+ [disabled]="isWorking"
49
+ mat-raised-button
50
+ color="primary"
51
+ type="submit"
52
+ >
53
+ Save
54
+ </button>
55
+ <button
56
+ [disabled]="isWorking"
57
+ (click)="cancelled.emit()"
58
+ mat-flat-button
59
+ type="button"
60
+ >
61
+ Cancel
62
+ </button>
63
+ </div>
64
+ </form>
@@ -0,0 +1,115 @@
1
+ import { Component, EventEmitter, Input, OnInit, Output } from "@angular/core";
2
+ import {
3
+ AlertService,
4
+ DateUtils,
5
+ FormValidatorService,
6
+ TechlifyFormComponentInterface,
7
+ } from "ngx-techlify-core";
8
+ import { FormBuilder, Validators } from "@angular/forms";
9
+ import { Observable } from "rxjs";
10
+ import { StockIssuanceService } from "../../stock-issuance.service";
11
+
12
+ @Component({
13
+ selector: "app-stock-issue-form",
14
+ templateUrl: "./stock-issue-form.component.html",
15
+ styleUrls: ["./stock-issue-form.component.scss"],
16
+ })
17
+ export class StockIssueFormComponent
18
+ extends TechlifyFormComponentInterface
19
+ implements OnInit
20
+ {
21
+ @Input() product: any;
22
+ @Input() stockIssuance: any;
23
+ @Input() issuableType!: string;
24
+ @Input() issuableId!: number;
25
+ @Output() saved: EventEmitter<any> = new EventEmitter<any>();
26
+ @Output() cancelled: EventEmitter<any> = new EventEmitter<any>();
27
+
28
+ isWorking!: boolean;
29
+
30
+ constructor(
31
+ formValidatorService: FormValidatorService,
32
+ private formBuilder: FormBuilder,
33
+ private stockIssuanceService: StockIssuanceService,
34
+ private alertService: AlertService,
35
+ private dateUtils: DateUtils
36
+ ) {
37
+ super(formValidatorService);
38
+ this.errorMessages = {
39
+ date: {
40
+ required: "The date field is required.",
41
+ },
42
+ quantity: {
43
+ required: "The quantity field is required.",
44
+ },
45
+ };
46
+
47
+ this.form = this.formBuilder.group({
48
+ id: [""],
49
+ product_id: [""],
50
+ date: [new Date(), Validators.required],
51
+ quantity: [1, Validators.required],
52
+ particulars: [""],
53
+ });
54
+ }
55
+
56
+ ngOnInit() {
57
+ if (this.product) {
58
+ this.form.get("product_id")?.setValue(this.product?.id);
59
+ }
60
+ if (this.stockIssuance) {
61
+ let data: any = { ...this.stockIssuance };
62
+ if (data.date) {
63
+ data.date = new Date(data.date);
64
+ }
65
+ this.form.patchValue(data);
66
+ } else {
67
+ // on create for set default quantity from last record
68
+ if (this.product?.last_stock_issuance) {
69
+ const { quantity } = this.product.last_stock_issuance;
70
+ this.form.patchValue({
71
+ quantity,
72
+ });
73
+ }
74
+ }
75
+ }
76
+
77
+ save() {
78
+ if (this.form.invalid) {
79
+ this.alertService.addAlert("Please check the form for errors", "error");
80
+ return;
81
+ }
82
+ const data: any = {
83
+ product_id: this.product?.id,
84
+ ...this.form.value,
85
+ };
86
+ if (data.date) {
87
+ data.date = this.dateUtils.getYYYYMMDDString(data.date);
88
+ }
89
+ if (this.issuableId && this.issuableType) {
90
+ data.issuable_type = this.issuableType;
91
+ data.issuable_id = this.issuableId;
92
+ }
93
+
94
+ this.isWorking = true;
95
+ let request: Observable<any> = this.stockIssuanceService.store(data);
96
+ if (this.stockIssuance?.id) {
97
+ request = this.stockIssuanceService.update(data);
98
+ }
99
+ request.subscribe({
100
+ next: (response: any) => {
101
+ this.isWorking = false;
102
+ this.saved.emit(response?.item);
103
+ this.alertService.addAlert(
104
+ "Stock Issuance Saved Successfully!",
105
+ "success"
106
+ );
107
+ },
108
+ error: () => (this.isWorking = false),
109
+ });
110
+ }
111
+
112
+ onProductChange(product: any) {
113
+ this.product = product;
114
+ }
115
+ }
@@ -0,0 +1,20 @@
1
+ <span
2
+ class="material-symbols-outlined cursor-pointer"
3
+ [class.text-primary]="icon"
4
+ matTooltip="Stock Issuance"
5
+ (click)="showStockIssuanceForm(stockIssuanceFormTemplate)"
6
+ >
7
+ {{ stockIssuance ? "edit" : icon ?? "upload" }}
8
+ </span>
9
+
10
+ <ng-template #stockIssuanceFormTemplate>
11
+ <app-stock-issue-form
12
+ mat-dialog-content
13
+ [product]="product"
14
+ [stockIssuance]="stockIssuance"
15
+ [issuableType]="issuableType"
16
+ [issuableId]="issuableId"
17
+ (cancelled)="matDialogRef.close()"
18
+ (saved)="onStockIssuanceSaved($event)"
19
+ ></app-stock-issue-form>
20
+ </ng-template>