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