techlify-inventory-common 18.50.0 → 22.0.0

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 (356) hide show
  1. package/fesm2022/techlify-inventory-common-category.module-Dtn1604q.mjs +842 -0
  2. package/fesm2022/techlify-inventory-common-category.module-Dtn1604q.mjs.map +1 -0
  3. package/fesm2022/techlify-inventory-common-location.service-C99J8Lje.mjs +50 -0
  4. package/fesm2022/techlify-inventory-common-location.service-C99J8Lje.mjs.map +1 -0
  5. package/fesm2022/techlify-inventory-common-material.module-ClupVm7-.mjs +190 -0
  6. package/fesm2022/techlify-inventory-common-material.module-ClupVm7-.mjs.map +1 -0
  7. package/fesm2022/techlify-inventory-common-measure.service-DvJUGa0i.mjs +38 -0
  8. package/fesm2022/techlify-inventory-common-measure.service-DvJUGa0i.mjs.map +1 -0
  9. package/fesm2022/techlify-inventory-common-product-category-badges.component-VnfnNhtV.mjs +133 -0
  10. package/fesm2022/techlify-inventory-common-product-category-badges.component-VnfnNhtV.mjs.map +1 -0
  11. package/fesm2022/techlify-inventory-common-product.module-MZoVK3bN.mjs +4278 -0
  12. package/fesm2022/techlify-inventory-common-product.module-MZoVK3bN.mjs.map +1 -0
  13. package/fesm2022/techlify-inventory-common-purchase-order-view.component-CjED8n4_.mjs +852 -0
  14. package/fesm2022/techlify-inventory-common-purchase-order-view.component-CjED8n4_.mjs.map +1 -0
  15. package/fesm2022/techlify-inventory-common-purchase-order.service-ztJ5RRH5.mjs +40 -0
  16. package/fesm2022/techlify-inventory-common-purchase-order.service-ztJ5RRH5.mjs.map +1 -0
  17. package/fesm2022/techlify-inventory-common-recipient.module-gxR77BIj.mjs +647 -0
  18. package/fesm2022/techlify-inventory-common-recipient.module-gxR77BIj.mjs.map +1 -0
  19. package/fesm2022/techlify-inventory-common-shared.module-DP-FVqea.mjs +102 -0
  20. package/fesm2022/techlify-inventory-common-shared.module-DP-FVqea.mjs.map +1 -0
  21. package/fesm2022/techlify-inventory-common-stock-allocation-list.component-Du-VCtbs.mjs +382 -0
  22. package/fesm2022/techlify-inventory-common-stock-allocation-list.component-Du-VCtbs.mjs.map +1 -0
  23. package/fesm2022/techlify-inventory-common-stock-issue-form.component-DfgbqIKn.mjs +486 -0
  24. package/fesm2022/techlify-inventory-common-stock-issue-form.component-DfgbqIKn.mjs.map +1 -0
  25. package/fesm2022/techlify-inventory-common-stock-issue-page.module-DX9n3X1T.mjs +2509 -0
  26. package/fesm2022/techlify-inventory-common-stock-issue-page.module-DX9n3X1T.mjs.map +1 -0
  27. package/fesm2022/techlify-inventory-common-stock-issue-product-view.component-D8aIc5Oh.mjs +208 -0
  28. package/fesm2022/techlify-inventory-common-stock-issue-product-view.component-D8aIc5Oh.mjs.map +1 -0
  29. package/fesm2022/techlify-inventory-common-stock-issue-product.service-BRbfc5KP.mjs +38 -0
  30. package/fesm2022/techlify-inventory-common-stock-issue-product.service-BRbfc5KP.mjs.map +1 -0
  31. package/fesm2022/techlify-inventory-common-stock-issue-view.component-Cp_0YkKh.mjs +239 -0
  32. package/fesm2022/techlify-inventory-common-stock-issue-view.component-Cp_0YkKh.mjs.map +1 -0
  33. package/fesm2022/techlify-inventory-common-stock-issue.service-CLHasWVp.mjs +38 -0
  34. package/fesm2022/techlify-inventory-common-stock-issue.service-CLHasWVp.mjs.map +1 -0
  35. package/fesm2022/techlify-inventory-common-stock-receipts.module-BPxUGNbD.mjs +4195 -0
  36. package/fesm2022/techlify-inventory-common-stock-receipts.module-BPxUGNbD.mjs.map +1 -0
  37. package/fesm2022/techlify-inventory-common-techlify-filter.module-BdRNWNHi.mjs +464 -0
  38. package/fesm2022/techlify-inventory-common-techlify-filter.module-BdRNWNHi.mjs.map +1 -0
  39. package/fesm2022/techlify-inventory-common-techlify-form-service-D9K3W2jt.mjs +13 -0
  40. package/fesm2022/techlify-inventory-common-techlify-form-service-D9K3W2jt.mjs.map +1 -0
  41. package/fesm2022/techlify-inventory-common.mjs +10803 -2
  42. package/fesm2022/techlify-inventory-common.mjs.map +1 -1
  43. package/package.json +9 -11
  44. package/types/techlify-inventory-common.d.ts +1792 -0
  45. package/esm2022/lib/inventory-common/category/category-form/category-form.component.mjs +0 -75
  46. package/esm2022/lib/inventory-common/category/category-form-button/category-form-button.component.mjs +0 -32
  47. package/esm2022/lib/inventory-common/category/category-list-page/category-list-page.component.mjs +0 -64
  48. package/esm2022/lib/inventory-common/category/category-routing.module.mjs +0 -29
  49. package/esm2022/lib/inventory-common/category/category-view/category-view.component.mjs +0 -46
  50. package/esm2022/lib/inventory-common/category/category.module.mjs +0 -62
  51. package/esm2022/lib/inventory-common/category/category.service.mjs +0 -18
  52. package/esm2022/lib/inventory-common/incident/incident-form/incident-form.component.mjs +0 -113
  53. package/esm2022/lib/inventory-common/incident/incident-form-button/incident-form-button.component.mjs +0 -45
  54. package/esm2022/lib/inventory-common/incident/incident-list/incident-list.component.mjs +0 -140
  55. package/esm2022/lib/inventory-common/incident/incident-routing.module.mjs +0 -24
  56. package/esm2022/lib/inventory-common/incident/incident.module.mjs +0 -22
  57. package/esm2022/lib/inventory-common/incident/incident.service.mjs +0 -18
  58. package/esm2022/lib/inventory-common/inventory-common-routing.module.mjs +0 -81
  59. package/esm2022/lib/inventory-common/inventory-common.module.mjs +0 -43
  60. package/esm2022/lib/inventory-common/inventory-dashboard-page/inventory-dashboard-page.component.mjs +0 -44
  61. package/esm2022/lib/inventory-common/inventory-value-report.service.mjs +0 -21
  62. package/esm2022/lib/inventory-common/location/location-form/location-form.component.mjs +0 -63
  63. package/esm2022/lib/inventory-common/location/location-form-button/location-form-button.component.mjs +0 -47
  64. package/esm2022/lib/inventory-common/location/location-information/location-information.component.mjs +0 -36
  65. package/esm2022/lib/inventory-common/location/location-list/location-list.component.mjs +0 -81
  66. package/esm2022/lib/inventory-common/location/location-product-statistics/location-product-statistics.component.mjs +0 -80
  67. package/esm2022/lib/inventory-common/location/location-routing.module.mjs +0 -38
  68. package/esm2022/lib/inventory-common/location/location-status-changer/location-status-changer.component.mjs +0 -64
  69. package/esm2022/lib/inventory-common/location/location-view/location-view.component.mjs +0 -52
  70. package/esm2022/lib/inventory-common/location/location.module.mjs +0 -22
  71. package/esm2022/lib/inventory-common/location/location.service.mjs +0 -33
  72. package/esm2022/lib/inventory-common/location/shelf/shelf-form/shelf-form.component.mjs +0 -86
  73. package/esm2022/lib/inventory-common/location/shelf/shelf-form-button/shelf-form-button.component.mjs +0 -39
  74. package/esm2022/lib/inventory-common/location/shelf/shelf-list/shelf-list.component.mjs +0 -103
  75. package/esm2022/lib/inventory-common/location/shelf/shelf-routing.module.mjs +0 -24
  76. package/esm2022/lib/inventory-common/location/shelf/shelf.module.mjs +0 -22
  77. package/esm2022/lib/inventory-common/location/shelf/shelf.service.mjs +0 -20
  78. package/esm2022/lib/inventory-common/low-stock-report.service.mjs +0 -23
  79. package/esm2022/lib/inventory-common/material.module.mjs +0 -172
  80. package/esm2022/lib/inventory-common/measure/measure-form/measure-form.component.mjs +0 -63
  81. package/esm2022/lib/inventory-common/measure/measure-list/measure-list.component.mjs +0 -75
  82. package/esm2022/lib/inventory-common/measure/measure-routing.module.mjs +0 -24
  83. package/esm2022/lib/inventory-common/measure/measure.module.mjs +0 -43
  84. package/esm2022/lib/inventory-common/measure/measure.service.mjs +0 -18
  85. package/esm2022/lib/inventory-common/product/low-stock-products-widget/low-stock-products-widget.component.mjs +0 -47
  86. package/esm2022/lib/inventory-common/product/low-stock-products-widget/low-stock-products-widget.module.mjs +0 -22
  87. package/esm2022/lib/inventory-common/product/product-basic-info/product-basic-info.component.mjs +0 -58
  88. package/esm2022/lib/inventory-common/product/product-batch-update-form/product-batch-update-form.component.mjs +0 -54
  89. package/esm2022/lib/inventory-common/product/product-delete-button/product-delete-button.component.mjs +0 -54
  90. package/esm2022/lib/inventory-common/product/product-form/product-form.component.mjs +0 -258
  91. package/esm2022/lib/inventory-common/product/product-form-button/product-form-button.component.mjs +0 -15
  92. package/esm2022/lib/inventory-common/product/product-form.service.mjs +0 -17
  93. package/esm2022/lib/inventory-common/product/product-import-page/product-import-page.component.mjs +0 -66
  94. package/esm2022/lib/inventory-common/product/product-list/product-list.component.mjs +0 -177
  95. package/esm2022/lib/inventory-common/product/product-location/product-location-list/product-location-list.component.mjs +0 -61
  96. package/esm2022/lib/inventory-common/product/product-measure-form/product-measure-form.component.mjs +0 -101
  97. package/esm2022/lib/inventory-common/product/product-measures-list/product-measures-list.component.mjs +0 -145
  98. package/esm2022/lib/inventory-common/product/product-nav-bar/product-nav-bar.component.mjs +0 -12
  99. package/esm2022/lib/inventory-common/product/product-quick-search/product-quick-search.component.mjs +0 -69
  100. package/esm2022/lib/inventory-common/product/product-routing.module.mjs +0 -68
  101. package/esm2022/lib/inventory-common/product/product-search/product-search.component.mjs +0 -151
  102. package/esm2022/lib/inventory-common/product/product-search/product-search.module.mjs +0 -39
  103. package/esm2022/lib/inventory-common/product/product-statistics.service.mjs +0 -23
  104. package/esm2022/lib/inventory-common/product/product-summary-chart/product-summary-chart.component.mjs +0 -57
  105. package/esm2022/lib/inventory-common/product/product-summary-chart/product-summary-chart.module.mjs +0 -18
  106. package/esm2022/lib/inventory-common/product/product-summary.service.mjs +0 -20
  107. package/esm2022/lib/inventory-common/product/product-view-page/product-view-page.component.mjs +0 -98
  108. package/esm2022/lib/inventory-common/product/product.module.mjs +0 -145
  109. package/esm2022/lib/inventory-common/product/product.service.mjs +0 -20
  110. package/esm2022/lib/inventory-common/product/widgets/product-category-badges/product-category-badges.component.mjs +0 -15
  111. package/esm2022/lib/inventory-common/product-batch.service.mjs +0 -20
  112. package/esm2022/lib/inventory-common/rating/rating-form/rating-form.component.mjs +0 -112
  113. package/esm2022/lib/inventory-common/rating/rating-form-button/rating-form-button.component.mjs +0 -45
  114. package/esm2022/lib/inventory-common/rating/rating-list/rating-list.component.mjs +0 -135
  115. package/esm2022/lib/inventory-common/rating/rating-routing.module.mjs +0 -23
  116. package/esm2022/lib/inventory-common/rating/rating.module.mjs +0 -22
  117. package/esm2022/lib/inventory-common/rating/rating.service.mjs +0 -18
  118. package/esm2022/lib/inventory-common/recipient/recipient-form/recipient-form.component.mjs +0 -59
  119. package/esm2022/lib/inventory-common/recipient/recipient-list/recipient-list.component.mjs +0 -49
  120. package/esm2022/lib/inventory-common/recipient/recipient-routing.module.mjs +0 -24
  121. package/esm2022/lib/inventory-common/recipient/recipient.module.mjs +0 -18
  122. package/esm2022/lib/inventory-common/recipient/recipient.service.mjs +0 -18
  123. package/esm2022/lib/inventory-common/reports/inventory-value-report/inventory-value-report.component.mjs +0 -152
  124. package/esm2022/lib/inventory-common/reports/low-stock-report/low-stock-report.component.mjs +0 -161
  125. package/esm2022/lib/inventory-common/reports/stock-issue-summary-report/stock-issue-product-data.service.mjs +0 -20
  126. package/esm2022/lib/inventory-common/reports/stock-issue-summary-report/stock-issue-summary-report.component.mjs +0 -98
  127. package/esm2022/lib/inventory-common/services/techlify-form-service.mjs +0 -11
  128. package/esm2022/lib/inventory-common/shared/export-to-excel-button/export-to-excel-button.component.mjs +0 -58
  129. package/esm2022/lib/inventory-common/shared.module.mjs +0 -67
  130. package/esm2022/lib/inventory-common/stock-allocation/stock-allocation-list/stock-allocation-list.component.mjs +0 -81
  131. package/esm2022/lib/inventory-common/stock-allocation/stock-allocation.service.mjs +0 -16
  132. package/esm2022/lib/inventory-common/stock-issue/stock-issue-form/stock-issue-form.component.mjs +0 -198
  133. package/esm2022/lib/inventory-common/stock-issue/stock-issue-import-page/stock-issue-import-page.component.mjs +0 -59
  134. package/esm2022/lib/inventory-common/stock-issue/stock-issue-list/stock-issue-list.component.mjs +0 -149
  135. package/esm2022/lib/inventory-common/stock-issue/stock-issue-page/stock-issue-page.component.mjs +0 -91
  136. package/esm2022/lib/inventory-common/stock-issue/stock-issue-page/stock-issue-page.module.mjs +0 -82
  137. package/esm2022/lib/inventory-common/stock-issue/stock-issue-product-form/stock-issue-product-form-button/stock-issue-product-form-button.component.mjs +0 -35
  138. package/esm2022/lib/inventory-common/stock-issue/stock-issue-product-form/stock-issue-product-form.component.mjs +0 -102
  139. package/esm2022/lib/inventory-common/stock-issue/stock-issue-product-view/stock-issue-product-view.component.mjs +0 -59
  140. package/esm2022/lib/inventory-common/stock-issue/stock-issue-product.service.mjs +0 -16
  141. package/esm2022/lib/inventory-common/stock-issue/stock-issue-products-list/stock-issue-products-list.component.mjs +0 -163
  142. package/esm2022/lib/inventory-common/stock-issue/stock-issue-routing.module.mjs +0 -51
  143. package/esm2022/lib/inventory-common/stock-issue/stock-issue-single-product-form/stock-issue-single-product-form.component.mjs +0 -201
  144. package/esm2022/lib/inventory-common/stock-issue/stock-issue-view/stock-issue-view.component.mjs +0 -64
  145. package/esm2022/lib/inventory-common/stock-issue/stock-issue.module.mjs +0 -47
  146. package/esm2022/lib/inventory-common/stock-issue/stock-issue.service.mjs +0 -18
  147. package/esm2022/lib/inventory-common/stock-receipts/stock-receipt-form/stock-receipt-form.component.mjs +0 -226
  148. package/esm2022/lib/inventory-common/stock-receipts/stock-receipt-import-page/stock-receipt-import-page.component.mjs +0 -74
  149. package/esm2022/lib/inventory-common/stock-receipts/stock-receipt-list/stock-receipt-list.component.mjs +0 -152
  150. package/esm2022/lib/inventory-common/stock-receipts/stock-receipt-product-form/stock-receipt-product-form-button/stock-receipt-product-form-button.component.mjs +0 -37
  151. package/esm2022/lib/inventory-common/stock-receipts/stock-receipt-product-form/stock-receipt-product-form.component.mjs +0 -80
  152. package/esm2022/lib/inventory-common/stock-receipts/stock-receipt-product-list/stock-receipt-product-list.component.mjs +0 -149
  153. package/esm2022/lib/inventory-common/stock-receipts/stock-receipt-product-view/stock-receipt-product-view.component.mjs +0 -59
  154. package/esm2022/lib/inventory-common/stock-receipts/stock-receipt-product.service.mjs +0 -18
  155. package/esm2022/lib/inventory-common/stock-receipts/stock-receipt-single-product-form/stock-receipt-simple-form/stock-receipt-single-product-form.component.mjs +0 -181
  156. package/esm2022/lib/inventory-common/stock-receipts/stock-receipt-view/stock-receipt-view.component.mjs +0 -54
  157. package/esm2022/lib/inventory-common/stock-receipts/stock-receipt.service.mjs +0 -18
  158. package/esm2022/lib/inventory-common/stock-receipts/stock-receipts-page/stock-receipts-page.component.mjs +0 -70
  159. package/esm2022/lib/inventory-common/stock-receipts/stock-receipts-routing.module.mjs +0 -52
  160. package/esm2022/lib/inventory-common/stock-receipts/stock-receipts.module.mjs +0 -104
  161. package/esm2022/lib/inventory-common/stock-summary.service.mjs +0 -26
  162. package/esm2022/lib/inventory-common/stock-transfer/stock-transfer-form/stock-transfer-form.component.mjs +0 -98
  163. package/esm2022/lib/inventory-common/stock-transfer/stock-transfer-list/stock-transfer-list.component.mjs +0 -139
  164. package/esm2022/lib/inventory-common/stock-transfer/stock-transfer.service.mjs +0 -18
  165. package/esm2022/lib/inventory-common/supplier/payee-selector/payee-selector/payee-selector.component.mjs +0 -59
  166. package/esm2022/lib/inventory-common/supplier/payee-selector/payee-selector.module.mjs +0 -21
  167. package/esm2022/lib/inventory-common/supplier/purchase-order/purchase-order-form/purchase-order-form.component.mjs +0 -156
  168. package/esm2022/lib/inventory-common/supplier/purchase-order/purchase-order-listing/purchase-order-listing.component.mjs +0 -67
  169. package/esm2022/lib/inventory-common/supplier/purchase-order/purchase-order-product-list/purchase-order-product-form/purchase-order-product-form.component.mjs +0 -74
  170. package/esm2022/lib/inventory-common/supplier/purchase-order/purchase-order-product-list/purchase-order-product-form-button/purchase-order-product-form-button.component.mjs +0 -38
  171. package/esm2022/lib/inventory-common/supplier/purchase-order/purchase-order-product-list/purchase-order-product-list.component.mjs +0 -61
  172. package/esm2022/lib/inventory-common/supplier/purchase-order/purchase-order-product-list/purchase-order-product.service.mjs +0 -20
  173. package/esm2022/lib/inventory-common/supplier/purchase-order/purchase-order-view/purchase-order-view.component.mjs +0 -64
  174. package/esm2022/lib/inventory-common/supplier/purchase-order/purchase-order.service.mjs +0 -20
  175. package/esm2022/lib/inventory-common/supplier/supplier-branch-delete-button/supplier-branch-delete-button.component.mjs +0 -63
  176. package/esm2022/lib/inventory-common/supplier/supplier-branch-form/supplier-branch-form-button/supplier-branch-form-button.component.mjs +0 -47
  177. package/esm2022/lib/inventory-common/supplier/supplier-branch-form/supplier-branch-form.component.mjs +0 -79
  178. package/esm2022/lib/inventory-common/supplier/supplier-branch.service.mjs +0 -18
  179. package/esm2022/lib/inventory-common/supplier/supplier-branches-list/supplier-branches-list.component.mjs +0 -79
  180. package/esm2022/lib/inventory-common/supplier/supplier-form/supplier-form.component.mjs +0 -94
  181. package/esm2022/lib/inventory-common/supplier/supplier-form/supplier-form.service.mjs +0 -17
  182. package/esm2022/lib/inventory-common/supplier/supplier-information/supplier-information.component.mjs +0 -73
  183. package/esm2022/lib/inventory-common/supplier/supplier-list/supplier-list.component.mjs +0 -68
  184. package/esm2022/lib/inventory-common/supplier/supplier-routing.module.mjs +0 -51
  185. package/esm2022/lib/inventory-common/supplier/supplier-type.service.mjs +0 -25
  186. package/esm2022/lib/inventory-common/supplier/supplier-view/supplier-view.component.mjs +0 -70
  187. package/esm2022/lib/inventory-common/supplier/supplier.component.mjs +0 -20
  188. package/esm2022/lib/inventory-common/supplier/supplier.module.mjs +0 -64
  189. package/esm2022/lib/inventory-common/supplier/supplier.service.mjs +0 -20
  190. package/esm2022/lib/inventory-common/techlify-filter/techlify-filter.component.mjs +0 -116
  191. package/esm2022/lib/inventory-common/techlify-filter/techlify-filter.module.mjs +0 -42
  192. package/esm2022/public-api.mjs +0 -71
  193. package/esm2022/techlify-inventory-common.mjs +0 -5
  194. package/fesm2022/techlify-inventory-common-category.module-CGzFP2S_.mjs +0 -288
  195. package/fesm2022/techlify-inventory-common-category.module-CGzFP2S_.mjs.map +0 -1
  196. package/fesm2022/techlify-inventory-common-purchase-order-view.component-5mLg0IvH.mjs +0 -227
  197. package/fesm2022/techlify-inventory-common-purchase-order-view.component-5mLg0IvH.mjs.map +0 -1
  198. package/fesm2022/techlify-inventory-common-recipient.module-DLoP6xI3.mjs +0 -147
  199. package/fesm2022/techlify-inventory-common-recipient.module-DLoP6xI3.mjs.map +0 -1
  200. package/fesm2022/techlify-inventory-common-stock-issue-form.component-MYEKRteU.mjs +0 -199
  201. package/fesm2022/techlify-inventory-common-stock-issue-form.component-MYEKRteU.mjs.map +0 -1
  202. package/fesm2022/techlify-inventory-common-stock-issue-product-view.component-C-c83FEn.mjs +0 -60
  203. package/fesm2022/techlify-inventory-common-stock-issue-product-view.component-C-c83FEn.mjs.map +0 -1
  204. package/fesm2022/techlify-inventory-common-stock-issue-view.component-Co7hXpDq.mjs +0 -66
  205. package/fesm2022/techlify-inventory-common-stock-issue-view.component-Co7hXpDq.mjs.map +0 -1
  206. package/fesm2022/techlify-inventory-common-techlify-inventory-common-CWxzlvVi.mjs +0 -7214
  207. package/fesm2022/techlify-inventory-common-techlify-inventory-common-CWxzlvVi.mjs.map +0 -1
  208. package/index.d.ts +0 -5
  209. package/lib/inventory-common/category/category-form/category-form.component.d.ts +0 -18
  210. package/lib/inventory-common/category/category-form-button/category-form-button.component.d.ts +0 -13
  211. package/lib/inventory-common/category/category-list-page/category-list-page.component.d.ts +0 -20
  212. package/lib/inventory-common/category/category-routing.module.d.ts +0 -7
  213. package/lib/inventory-common/category/category-view/category-view.component.d.ts +0 -16
  214. package/lib/inventory-common/category/category.module.d.ts +0 -20
  215. package/lib/inventory-common/category/category.service.d.ts +0 -7
  216. package/lib/inventory-common/incident/incident-form/incident-form.component.d.ts +0 -19
  217. package/lib/inventory-common/incident/incident-form-button/incident-form-button.component.d.ts +0 -15
  218. package/lib/inventory-common/incident/incident-list/incident-list.component.d.ts +0 -22
  219. package/lib/inventory-common/incident/incident-routing.module.d.ts +0 -7
  220. package/lib/inventory-common/incident/incident.module.d.ts +0 -8
  221. package/lib/inventory-common/incident/incident.service.d.ts +0 -7
  222. package/lib/inventory-common/inventory-common-routing.module.d.ts +0 -7
  223. package/lib/inventory-common/inventory-common.module.d.ts +0 -14
  224. package/lib/inventory-common/inventory-dashboard-page/inventory-dashboard-page.component.d.ts +0 -14
  225. package/lib/inventory-common/inventory-value-report.service.d.ts +0 -9
  226. package/lib/inventory-common/location/location-form/location-form.component.d.ts +0 -18
  227. package/lib/inventory-common/location/location-form-button/location-form-button.component.d.ts +0 -13
  228. package/lib/inventory-common/location/location-information/location-information.component.d.ts +0 -12
  229. package/lib/inventory-common/location/location-list/location-list.component.d.ts +0 -18
  230. package/lib/inventory-common/location/location-product-statistics/location-product-statistics.component.d.ts +0 -18
  231. package/lib/inventory-common/location/location-routing.module.d.ts +0 -7
  232. package/lib/inventory-common/location/location-status-changer/location-status-changer.component.d.ts +0 -17
  233. package/lib/inventory-common/location/location-view/location-view.component.d.ts +0 -16
  234. package/lib/inventory-common/location/location.module.d.ts +0 -8
  235. package/lib/inventory-common/location/location.service.d.ts +0 -15
  236. package/lib/inventory-common/location/shelf/shelf-form/shelf-form.component.d.ts +0 -18
  237. package/lib/inventory-common/location/shelf/shelf-form-button/shelf-form-button.component.d.ts +0 -13
  238. package/lib/inventory-common/location/shelf/shelf-list/shelf-list.component.d.ts +0 -19
  239. package/lib/inventory-common/location/shelf/shelf-routing.module.d.ts +0 -7
  240. package/lib/inventory-common/location/shelf/shelf.module.d.ts +0 -8
  241. package/lib/inventory-common/location/shelf/shelf.service.d.ts +0 -8
  242. package/lib/inventory-common/low-stock-report.service.d.ts +0 -10
  243. package/lib/inventory-common/material.module.d.ts +0 -40
  244. package/lib/inventory-common/measure/measure-form/measure-form.component.d.ts +0 -21
  245. package/lib/inventory-common/measure/measure-list/measure-list.component.d.ts +0 -19
  246. package/lib/inventory-common/measure/measure-routing.module.d.ts +0 -7
  247. package/lib/inventory-common/measure/measure.module.d.ts +0 -14
  248. package/lib/inventory-common/measure/measure.service.d.ts +0 -7
  249. package/lib/inventory-common/product/low-stock-products-widget/low-stock-products-widget.component.d.ts +0 -13
  250. package/lib/inventory-common/product/low-stock-products-widget/low-stock-products-widget.module.d.ts +0 -12
  251. package/lib/inventory-common/product/product-basic-info/product-basic-info.component.d.ts +0 -21
  252. package/lib/inventory-common/product/product-batch-update-form/product-batch-update-form.component.d.ts +0 -17
  253. package/lib/inventory-common/product/product-delete-button/product-delete-button.component.d.ts +0 -26
  254. package/lib/inventory-common/product/product-form/product-form.component.d.ts +0 -46
  255. package/lib/inventory-common/product/product-form-button/product-form-button.component.d.ts +0 -7
  256. package/lib/inventory-common/product/product-form.service.d.ts +0 -7
  257. package/lib/inventory-common/product/product-import-page/product-import-page.component.d.ts +0 -10
  258. package/lib/inventory-common/product/product-list/product-list.component.d.ts +0 -34
  259. package/lib/inventory-common/product/product-location/product-location-list/product-location-list.component.d.ts +0 -18
  260. package/lib/inventory-common/product/product-measure-form/product-measure-form.component.d.ts +0 -33
  261. package/lib/inventory-common/product/product-measures-list/product-measures-list.component.d.ts +0 -43
  262. package/lib/inventory-common/product/product-nav-bar/product-nav-bar.component.d.ts +0 -5
  263. package/lib/inventory-common/product/product-quick-search/product-quick-search.component.d.ts +0 -15
  264. package/lib/inventory-common/product/product-routing.module.d.ts +0 -7
  265. package/lib/inventory-common/product/product-search/product-search.component.d.ts +0 -48
  266. package/lib/inventory-common/product/product-search/product-search.module.d.ts +0 -13
  267. package/lib/inventory-common/product/product-statistics.service.d.ts +0 -9
  268. package/lib/inventory-common/product/product-summary-chart/product-summary-chart.component.d.ts +0 -15
  269. package/lib/inventory-common/product/product-summary-chart/product-summary-chart.module.d.ts +0 -10
  270. package/lib/inventory-common/product/product-summary.service.d.ts +0 -8
  271. package/lib/inventory-common/product/product-view-page/product-view-page.component.d.ts +0 -44
  272. package/lib/inventory-common/product/product.module.d.ts +0 -31
  273. package/lib/inventory-common/product/product.service.d.ts +0 -8
  274. package/lib/inventory-common/product/widgets/product-category-badges/product-category-badges.component.d.ts +0 -6
  275. package/lib/inventory-common/product-batch.service.d.ts +0 -8
  276. package/lib/inventory-common/rating/rating-form/rating-form.component.d.ts +0 -19
  277. package/lib/inventory-common/rating/rating-form-button/rating-form-button.component.d.ts +0 -15
  278. package/lib/inventory-common/rating/rating-list/rating-list.component.d.ts +0 -22
  279. package/lib/inventory-common/rating/rating-routing.module.d.ts +0 -7
  280. package/lib/inventory-common/rating/rating.module.d.ts +0 -8
  281. package/lib/inventory-common/rating/rating.service.d.ts +0 -7
  282. package/lib/inventory-common/recipient/recipient-form/recipient-form.component.d.ts +0 -21
  283. package/lib/inventory-common/recipient/recipient-list/recipient-list.component.d.ts +0 -16
  284. package/lib/inventory-common/recipient/recipient-routing.module.d.ts +0 -7
  285. package/lib/inventory-common/recipient/recipient.module.d.ts +0 -9
  286. package/lib/inventory-common/recipient/recipient.service.d.ts +0 -7
  287. package/lib/inventory-common/reports/inventory-value-report/inventory-value-report.component.d.ts +0 -27
  288. package/lib/inventory-common/reports/low-stock-report/low-stock-report.component.d.ts +0 -25
  289. package/lib/inventory-common/reports/stock-issue-summary-report/stock-issue-product-data.service.d.ts +0 -8
  290. package/lib/inventory-common/reports/stock-issue-summary-report/stock-issue-summary-report.component.d.ts +0 -25
  291. package/lib/inventory-common/services/techlify-form-service.d.ts +0 -5
  292. package/lib/inventory-common/shared/export-to-excel-button/export-to-excel-button.component.d.ts +0 -12
  293. package/lib/inventory-common/shared.module.d.ts +0 -13
  294. package/lib/inventory-common/stock-allocation/stock-allocation-list/stock-allocation-list.component.d.ts +0 -19
  295. package/lib/inventory-common/stock-allocation/stock-allocation.service.d.ts +0 -7
  296. package/lib/inventory-common/stock-issue/stock-issue-form/stock-issue-form.component.d.ts +0 -45
  297. package/lib/inventory-common/stock-issue/stock-issue-import-page/stock-issue-import-page.component.d.ts +0 -10
  298. package/lib/inventory-common/stock-issue/stock-issue-list/stock-issue-list.component.d.ts +0 -33
  299. package/lib/inventory-common/stock-issue/stock-issue-page/stock-issue-page.component.d.ts +0 -30
  300. package/lib/inventory-common/stock-issue/stock-issue-page/stock-issue-page.module.d.ts +0 -18
  301. package/lib/inventory-common/stock-issue/stock-issue-product-form/stock-issue-product-form-button/stock-issue-product-form-button.component.d.ts +0 -12
  302. package/lib/inventory-common/stock-issue/stock-issue-product-form/stock-issue-product-form.component.d.ts +0 -21
  303. package/lib/inventory-common/stock-issue/stock-issue-product-view/stock-issue-product-view.component.d.ts +0 -19
  304. package/lib/inventory-common/stock-issue/stock-issue-product.service.d.ts +0 -7
  305. package/lib/inventory-common/stock-issue/stock-issue-products-list/stock-issue-products-list.component.d.ts +0 -40
  306. package/lib/inventory-common/stock-issue/stock-issue-routing.module.d.ts +0 -7
  307. package/lib/inventory-common/stock-issue/stock-issue-single-product-form/stock-issue-single-product-form.component.d.ts +0 -42
  308. package/lib/inventory-common/stock-issue/stock-issue-view/stock-issue-view.component.d.ts +0 -19
  309. package/lib/inventory-common/stock-issue/stock-issue.module.d.ts +0 -14
  310. package/lib/inventory-common/stock-issue/stock-issue.service.d.ts +0 -7
  311. package/lib/inventory-common/stock-receipts/stock-receipt-form/stock-receipt-form.component.d.ts +0 -48
  312. package/lib/inventory-common/stock-receipts/stock-receipt-import-page/stock-receipt-import-page.component.d.ts +0 -10
  313. package/lib/inventory-common/stock-receipts/stock-receipt-list/stock-receipt-list.component.d.ts +0 -30
  314. package/lib/inventory-common/stock-receipts/stock-receipt-product-form/stock-receipt-product-form-button/stock-receipt-product-form-button.component.d.ts +0 -12
  315. package/lib/inventory-common/stock-receipts/stock-receipt-product-form/stock-receipt-product-form.component.d.ts +0 -17
  316. package/lib/inventory-common/stock-receipts/stock-receipt-product-list/stock-receipt-product-list.component.d.ts +0 -31
  317. package/lib/inventory-common/stock-receipts/stock-receipt-product-view/stock-receipt-product-view.component.d.ts +0 -19
  318. package/lib/inventory-common/stock-receipts/stock-receipt-product.service.d.ts +0 -7
  319. package/lib/inventory-common/stock-receipts/stock-receipt-single-product-form/stock-receipt-simple-form/stock-receipt-single-product-form.component.d.ts +0 -33
  320. package/lib/inventory-common/stock-receipts/stock-receipt-view/stock-receipt-view.component.d.ts +0 -19
  321. package/lib/inventory-common/stock-receipts/stock-receipt.service.d.ts +0 -7
  322. package/lib/inventory-common/stock-receipts/stock-receipts-page/stock-receipts-page.component.d.ts +0 -21
  323. package/lib/inventory-common/stock-receipts/stock-receipts-routing.module.d.ts +0 -7
  324. package/lib/inventory-common/stock-receipts/stock-receipts.module.d.ts +0 -22
  325. package/lib/inventory-common/stock-summary.service.d.ts +0 -14
  326. package/lib/inventory-common/stock-transfer/stock-transfer-form/stock-transfer-form.component.d.ts +0 -19
  327. package/lib/inventory-common/stock-transfer/stock-transfer-list/stock-transfer-list.component.d.ts +0 -28
  328. package/lib/inventory-common/stock-transfer/stock-transfer.service.d.ts +0 -7
  329. package/lib/inventory-common/supplier/payee-selector/payee-selector/payee-selector.component.d.ts +0 -20
  330. package/lib/inventory-common/supplier/payee-selector/payee-selector.module.d.ts +0 -11
  331. package/lib/inventory-common/supplier/purchase-order/purchase-order-form/purchase-order-form.component.d.ts +0 -30
  332. package/lib/inventory-common/supplier/purchase-order/purchase-order-listing/purchase-order-listing.component.d.ts +0 -16
  333. package/lib/inventory-common/supplier/purchase-order/purchase-order-product-list/purchase-order-product-form/purchase-order-product-form.component.d.ts +0 -16
  334. package/lib/inventory-common/supplier/purchase-order/purchase-order-product-list/purchase-order-product-form-button/purchase-order-product-form-button.component.d.ts +0 -12
  335. package/lib/inventory-common/supplier/purchase-order/purchase-order-product-list/purchase-order-product-list.component.d.ts +0 -15
  336. package/lib/inventory-common/supplier/purchase-order/purchase-order-product-list/purchase-order-product.service.d.ts +0 -8
  337. package/lib/inventory-common/supplier/purchase-order/purchase-order-view/purchase-order-view.component.d.ts +0 -19
  338. package/lib/inventory-common/supplier/purchase-order/purchase-order.service.d.ts +0 -8
  339. package/lib/inventory-common/supplier/supplier-branch-delete-button/supplier-branch-delete-button.component.d.ts +0 -18
  340. package/lib/inventory-common/supplier/supplier-branch-form/supplier-branch-form-button/supplier-branch-form-button.component.d.ts +0 -13
  341. package/lib/inventory-common/supplier/supplier-branch-form/supplier-branch-form.component.d.ts +0 -22
  342. package/lib/inventory-common/supplier/supplier-branch.service.d.ts +0 -7
  343. package/lib/inventory-common/supplier/supplier-branches-list/supplier-branches-list.component.d.ts +0 -18
  344. package/lib/inventory-common/supplier/supplier-form/supplier-form.component.d.ts +0 -25
  345. package/lib/inventory-common/supplier/supplier-form/supplier-form.service.d.ts +0 -7
  346. package/lib/inventory-common/supplier/supplier-information/supplier-information.component.d.ts +0 -18
  347. package/lib/inventory-common/supplier/supplier-list/supplier-list.component.d.ts +0 -20
  348. package/lib/inventory-common/supplier/supplier-routing.module.d.ts +0 -7
  349. package/lib/inventory-common/supplier/supplier-type.service.d.ts +0 -13
  350. package/lib/inventory-common/supplier/supplier-view/supplier-view.component.d.ts +0 -20
  351. package/lib/inventory-common/supplier/supplier.component.d.ts +0 -10
  352. package/lib/inventory-common/supplier/supplier.module.d.ts +0 -20
  353. package/lib/inventory-common/supplier/supplier.service.d.ts +0 -8
  354. package/lib/inventory-common/techlify-filter/techlify-filter.component.d.ts +0 -31
  355. package/lib/inventory-common/techlify-filter/techlify-filter.module.d.ts +0 -12
  356. package/public-api.d.ts +0 -67
@@ -0,0 +1,852 @@
1
+ import { t as MaterialModule$1 } from "./techlify-inventory-common-material.module-ClupVm7-.mjs";
2
+ import { t as PurchaseOrderService } from "./techlify-inventory-common-purchase-order.service-ztJ5RRH5.mjs";
3
+ import * as i0 from "@angular/core";
4
+ import { ChangeDetectionStrategy, Component, Inject, Injectable, effect, input, output } from "@angular/core";
5
+ import * as i1 from "@angular/router";
6
+ import { RouterLink } from "@angular/router";
7
+ import * as i1$1 from "ngx-techlify-core";
8
+ import { NoteModule, SearchableSelectorModule, TechlifyDeleteButtonComponent, TechlifyFormComponent, TechlifyIconModule, TechlifyListComponent, TechlifyService } from "ngx-techlify-core";
9
+ import * as i3$1 from "@angular/material/card";
10
+ import * as i6 from "@angular/material/table";
11
+ import * as i4 from "@angular/material/progress-bar";
12
+ import * as i2 from "@angular/forms";
13
+ import { ReactiveFormsModule, Validators } from "@angular/forms";
14
+ import * as i4$1 from "@angular/material/dialog";
15
+ import { MAT_DIALOG_DATA, MatDialogContent, MatDialogTitle } from "@angular/material/dialog";
16
+ import * as i5$1 from "@angular/material/button";
17
+ import * as i6$1 from "@angular/material/form-field";
18
+ import * as i7 from "@angular/material/input";
19
+ import * as i5 from "@angular/material/sort";
20
+ import * as i3 from "@angular/common";
21
+ import { CommonModule } from "@angular/common";
22
+ var PurchaseOrderProductService = class PurchaseOrderProductService extends TechlifyService {
23
+ http;
24
+ constructor(http) {
25
+ super(http, "purchase-order-products");
26
+ this.http = http;
27
+ }
28
+ static ɵfac = i0.ɵɵngDeclareFactory({
29
+ minVersion: "12.0.0",
30
+ version: "22.2.5",
31
+ ngImport: i0,
32
+ type: PurchaseOrderProductService,
33
+ deps: [{ token: i1$1.HttpService }],
34
+ target: i0.ɵɵFactoryTarget.Injectable
35
+ });
36
+ static ɵprov = i0.ɵɵngDeclareInjectable({
37
+ minVersion: "12.0.0",
38
+ version: "22.2.5",
39
+ ngImport: i0,
40
+ type: PurchaseOrderProductService,
41
+ providedIn: "root"
42
+ });
43
+ };
44
+ i0.ɵɵngDeclareClassMetadata({
45
+ minVersion: "12.0.0",
46
+ version: "22.2.5",
47
+ ngImport: i0,
48
+ type: PurchaseOrderProductService,
49
+ decorators: [{
50
+ type: Injectable,
51
+ args: [{ providedIn: "root" }]
52
+ }],
53
+ ctorParameters: () => [{ type: i1$1.HttpService }]
54
+ });
55
+ var PurchaseOrderProductFormComponent = class PurchaseOrderProductFormComponent extends TechlifyFormComponent {
56
+ fb;
57
+ service;
58
+ data;
59
+ constructor(formValidatorService, fb, service, dialogRef, data) {
60
+ super(formValidatorService);
61
+ this.fb = fb;
62
+ this.service = service;
63
+ this.data = data;
64
+ this.dialogRef = dialogRef;
65
+ this.errorMessages = {
66
+ product_id: { required: "Product is required." },
67
+ quantity: {
68
+ required: "Quantity is required.",
69
+ min: "Quantity must be at least 1."
70
+ },
71
+ unit_id: { required: "Unit is required." }
72
+ };
73
+ this.form = this.fb.group({
74
+ id: [""],
75
+ purchase_order_id: ["", Validators.required],
76
+ product_id: ["", Validators.required],
77
+ quantity: [1, [Validators.required, Validators.min(1)]],
78
+ unit_id: ["", Validators.required],
79
+ details: [""]
80
+ });
81
+ }
82
+ ngOnInit() {
83
+ this.form.patchValue({ purchase_order_id: this.data.purchaseOrderId });
84
+ const product = this.data.purchaseOrderProduct;
85
+ if (product) {
86
+ this.isUpdate = true;
87
+ this.form.patchValue({
88
+ id: product.id,
89
+ product_id: product.product_id,
90
+ quantity: product.quantity,
91
+ unit_id: product.unit_id,
92
+ details: product.details ?? ""
93
+ });
94
+ }
95
+ }
96
+ cancel() {
97
+ this.dialogRef.close();
98
+ }
99
+ static ɵfac = i0.ɵɵngDeclareFactory({
100
+ minVersion: "12.0.0",
101
+ version: "22.2.5",
102
+ ngImport: i0,
103
+ type: PurchaseOrderProductFormComponent,
104
+ deps: [
105
+ { token: i1$1.FormValidatorService },
106
+ { token: i2.FormBuilder },
107
+ { token: PurchaseOrderProductService },
108
+ { token: i4$1.MatDialogRef },
109
+ { token: MAT_DIALOG_DATA }
110
+ ],
111
+ target: i0.ɵɵFactoryTarget.Component
112
+ });
113
+ static ɵcmp = i0.ɵɵngDeclareComponent({
114
+ minVersion: "17.0.0",
115
+ version: "22.2.5",
116
+ type: PurchaseOrderProductFormComponent,
117
+ isStandalone: true,
118
+ selector: "app-purchase-order-product-form",
119
+ usesInheritance: true,
120
+ ngImport: i0,
121
+ template: "<h3 mat-dialog-title class='text-center'> Product Form </h3>\n\n<mat-dialog-content>\n <form [formGroup]=\"form\" (submit)=\"submit(form.value)\" class=\"d-flex flex-column gap-3 mt-2\">\n\n <mat-form-field class=\"w-100\">\n <mat-label>Product</mat-label>\n <app-searchable-selector formControlName=\"product_id\" apiUrl=\"api/products\" titleField=\"name\"\n [cache]=\"true\"></app-searchable-selector>\n @if (isFieldValid('product_id')) {\n <mat-error>{{ getErrorMessage('product_id') }}</mat-error>\n }\n </mat-form-field>\n\n <mat-form-field class=\"w-100\">\n <mat-label>Quantity</mat-label>\n <input matInput type=\"number\" formControlName=\"quantity\" min=\"1\">\n @if (isFieldValid('quantity')) {\n <mat-error>{{ getErrorMessage('quantity') }}</mat-error>\n }\n </mat-form-field>\n\n <mat-form-field class=\"w-100\">\n <mat-label>Unit</mat-label>\n <app-searchable-selector formControlName=\"unit_id\" apiUrl=\"api/product-measures\"\n titleField=\"title\"></app-searchable-selector>\n @if (isFieldValid('unit_id')) {\n <mat-error>{{ getErrorMessage('unit_id') }}</mat-error>\n }\n </mat-form-field>\n\n <mat-form-field class=\"w-100\">\n <mat-label>Details</mat-label>\n <textarea matInput formControlName=\"details\" rows=\"3\"></textarea>\n </mat-form-field>\n\n <div class=\"d-flex justify-content-end gap-2\">\n <button mat-flat-button type=\"button\" [disabled]=\"isWorking\" (click)=\"cancel()\">Cancel</button>\n <button mat-raised-button color=\"primary\" type=\"submit\" [disabled]=\"isWorking\">Save</button>\n </div>\n\n </form>\n</mat-dialog-content>",
122
+ dependencies: [
123
+ {
124
+ kind: "ngmodule",
125
+ type: ReactiveFormsModule
126
+ },
127
+ {
128
+ kind: "directive",
129
+ type: i2.ɵNgNoValidate,
130
+ selector: "form:not([ngNoForm]):not([ngNativeValidate])"
131
+ },
132
+ {
133
+ kind: "directive",
134
+ type: i2.DefaultValueAccessor,
135
+ selector: "input:not([type=checkbox]):not([ngNoCva])[formControlName],textarea:not([ngNoCva])[formControlName],input:not([type=checkbox]):not([ngNoCva])[formControl],textarea:not([ngNoCva])[formControl],input:not([type=checkbox]):not([ngNoCva])[ngModel],textarea:not([ngNoCva])[ngModel],[ngDefaultControl]"
136
+ },
137
+ {
138
+ kind: "directive",
139
+ type: i2.NumberValueAccessor,
140
+ selector: "input[type=number]:not([ngNoCva])[formControlName],input[type=number]:not([ngNoCva])[formControl],input[type=number]:not([ngNoCva])[ngModel]"
141
+ },
142
+ {
143
+ kind: "directive",
144
+ type: i2.NgControlStatus,
145
+ selector: "[formControlName],[ngModel],[formControl]"
146
+ },
147
+ {
148
+ kind: "directive",
149
+ type: i2.NgControlStatusGroup,
150
+ selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]"
151
+ },
152
+ {
153
+ kind: "directive",
154
+ type: i2.MinValidator,
155
+ selector: "input[type=number][min][formControlName],input[type=number][min][formControl],input[type=number][min][ngModel]",
156
+ inputs: ["min"]
157
+ },
158
+ {
159
+ kind: "directive",
160
+ type: i2.FormGroupDirective,
161
+ selector: "[formGroup]",
162
+ inputs: ["formGroup"],
163
+ outputs: ["ngSubmit"],
164
+ exportAs: ["ngForm"]
165
+ },
166
+ {
167
+ kind: "directive",
168
+ type: i2.FormControlName,
169
+ selector: "[formControlName]",
170
+ inputs: [
171
+ "formControlName",
172
+ "disabled",
173
+ "ngModel"
174
+ ],
175
+ outputs: ["ngModelChange"]
176
+ },
177
+ {
178
+ kind: "ngmodule",
179
+ type: MaterialModule$1
180
+ },
181
+ {
182
+ kind: "component",
183
+ type: i5$1.MatButton,
184
+ selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ",
185
+ inputs: ["matButton"],
186
+ exportAs: ["matButton", "matAnchor"]
187
+ },
188
+ {
189
+ kind: "directive",
190
+ type: i4$1.MatDialogTitle,
191
+ selector: "[mat-dialog-title], [matDialogTitle]",
192
+ inputs: ["id"],
193
+ exportAs: ["matDialogTitle"]
194
+ },
195
+ {
196
+ kind: "directive",
197
+ type: i4$1.MatDialogContent,
198
+ selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]"
199
+ },
200
+ {
201
+ kind: "component",
202
+ type: i6$1.MatFormField,
203
+ selector: "mat-form-field",
204
+ inputs: [
205
+ "hideRequiredMarker",
206
+ "color",
207
+ "floatLabel",
208
+ "appearance",
209
+ "subscriptSizing",
210
+ "hintLabel"
211
+ ],
212
+ exportAs: ["matFormField"]
213
+ },
214
+ {
215
+ kind: "directive",
216
+ type: i6$1.MatLabel,
217
+ selector: "mat-label"
218
+ },
219
+ {
220
+ kind: "directive",
221
+ type: i6$1.MatError,
222
+ selector: "mat-error, [matError]",
223
+ inputs: ["id"]
224
+ },
225
+ {
226
+ kind: "directive",
227
+ type: i7.MatInput,
228
+ selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]",
229
+ inputs: [
230
+ "disabled",
231
+ "id",
232
+ "placeholder",
233
+ "name",
234
+ "required",
235
+ "type",
236
+ "errorStateMatcher",
237
+ "aria-describedby",
238
+ "value",
239
+ "readonly",
240
+ "disabledInteractive"
241
+ ],
242
+ exportAs: ["matInput"]
243
+ },
244
+ {
245
+ kind: "ngmodule",
246
+ type: SearchableSelectorModule
247
+ },
248
+ {
249
+ kind: "component",
250
+ type: i1$1.SearchableSelectorComponent,
251
+ selector: "app-searchable-selector",
252
+ inputs: [
253
+ "valueField",
254
+ "titleField",
255
+ "subtitleField",
256
+ "apiUrl",
257
+ "multiple",
258
+ "selectedValue",
259
+ "enableSearch",
260
+ "add",
261
+ "addConfig",
262
+ "edit",
263
+ "editConfig",
264
+ "sort",
265
+ "sortBy",
266
+ "searchField",
267
+ "itemComponent",
268
+ "items",
269
+ "apiDataProperty",
270
+ "cache",
271
+ "perPage",
272
+ "inDataSearch",
273
+ "panelWidth",
274
+ "focusSearchOnOpen",
275
+ "isEmitInitialEvent",
276
+ "required",
277
+ "disabled",
278
+ "value"
279
+ ],
280
+ outputs: [
281
+ "selectedValueChange",
282
+ "selectionChange",
283
+ "itemsChange",
284
+ "isItemsEmpty"
285
+ ]
286
+ }
287
+ ],
288
+ changeDetection: i0.ChangeDetectionStrategy.Eager,
289
+ preserveWhitespaces: true
290
+ });
291
+ };
292
+ i0.ɵɵngDeclareClassMetadata({
293
+ minVersion: "12.0.0",
294
+ version: "22.2.5",
295
+ ngImport: i0,
296
+ type: PurchaseOrderProductFormComponent,
297
+ decorators: [{
298
+ type: Component,
299
+ args: [{
300
+ selector: "app-purchase-order-product-form",
301
+ changeDetection: ChangeDetectionStrategy.Eager,
302
+ imports: [
303
+ ReactiveFormsModule,
304
+ MaterialModule$1,
305
+ SearchableSelectorModule,
306
+ MatDialogTitle,
307
+ MatDialogContent
308
+ ],
309
+ template: "<h3 mat-dialog-title class='text-center'> Product Form </h3>\n\n<mat-dialog-content>\n <form [formGroup]=\"form\" (submit)=\"submit(form.value)\" class=\"d-flex flex-column gap-3 mt-2\">\n\n <mat-form-field class=\"w-100\">\n <mat-label>Product</mat-label>\n <app-searchable-selector formControlName=\"product_id\" apiUrl=\"api/products\" titleField=\"name\"\n [cache]=\"true\"></app-searchable-selector>\n @if (isFieldValid('product_id')) {\n <mat-error>{{ getErrorMessage('product_id') }}</mat-error>\n }\n </mat-form-field>\n\n <mat-form-field class=\"w-100\">\n <mat-label>Quantity</mat-label>\n <input matInput type=\"number\" formControlName=\"quantity\" min=\"1\">\n @if (isFieldValid('quantity')) {\n <mat-error>{{ getErrorMessage('quantity') }}</mat-error>\n }\n </mat-form-field>\n\n <mat-form-field class=\"w-100\">\n <mat-label>Unit</mat-label>\n <app-searchable-selector formControlName=\"unit_id\" apiUrl=\"api/product-measures\"\n titleField=\"title\"></app-searchable-selector>\n @if (isFieldValid('unit_id')) {\n <mat-error>{{ getErrorMessage('unit_id') }}</mat-error>\n }\n </mat-form-field>\n\n <mat-form-field class=\"w-100\">\n <mat-label>Details</mat-label>\n <textarea matInput formControlName=\"details\" rows=\"3\"></textarea>\n </mat-form-field>\n\n <div class=\"d-flex justify-content-end gap-2\">\n <button mat-flat-button type=\"button\" [disabled]=\"isWorking\" (click)=\"cancel()\">Cancel</button>\n <button mat-raised-button color=\"primary\" type=\"submit\" [disabled]=\"isWorking\">Save</button>\n </div>\n\n </form>\n</mat-dialog-content>"
310
+ }]
311
+ }],
312
+ ctorParameters: () => [
313
+ { type: i1$1.FormValidatorService },
314
+ { type: i2.FormBuilder },
315
+ { type: PurchaseOrderProductService },
316
+ { type: i4$1.MatDialogRef },
317
+ {
318
+ type: void 0,
319
+ decorators: [{
320
+ type: Inject,
321
+ args: [MAT_DIALOG_DATA]
322
+ }]
323
+ }
324
+ ]
325
+ });
326
+ var PurchaseOrderProductFormButtonComponent = class PurchaseOrderProductFormButtonComponent {
327
+ dialog;
328
+ purchaseOrderProduct = input(...ngDevMode ? [void 0, { debugName: "purchaseOrderProduct" }] : /* istanbul ignore next */ []);
329
+ purchaseOrderId = input.required(...ngDevMode ? [{ debugName: "purchaseOrderId" }] : /* istanbul ignore next */ []);
330
+ saved = output();
331
+ constructor(dialog) {
332
+ this.dialog = dialog;
333
+ }
334
+ open() {
335
+ this.dialog.open(PurchaseOrderProductFormComponent, {
336
+ width: "500px",
337
+ data: {
338
+ purchaseOrderId: this.purchaseOrderId(),
339
+ purchaseOrderProduct: this.purchaseOrderProduct()
340
+ }
341
+ }).afterClosed().subscribe((item) => {
342
+ if (item) this.saved.emit(item);
343
+ });
344
+ }
345
+ static ɵfac = i0.ɵɵngDeclareFactory({
346
+ minVersion: "12.0.0",
347
+ version: "22.2.5",
348
+ ngImport: i0,
349
+ type: PurchaseOrderProductFormButtonComponent,
350
+ deps: [{ token: i4$1.MatDialog }],
351
+ target: i0.ɵɵFactoryTarget.Component
352
+ });
353
+ static ɵcmp = i0.ɵɵngDeclareComponent({
354
+ minVersion: "17.1.0",
355
+ version: "22.2.5",
356
+ type: PurchaseOrderProductFormButtonComponent,
357
+ isStandalone: true,
358
+ selector: "app-purchase-order-product-form-button",
359
+ inputs: {
360
+ purchaseOrderProduct: {
361
+ classPropertyName: "purchaseOrderProduct",
362
+ publicName: "purchaseOrderProduct",
363
+ isSignal: true,
364
+ isRequired: false,
365
+ transformFunction: null
366
+ },
367
+ purchaseOrderId: {
368
+ classPropertyName: "purchaseOrderId",
369
+ publicName: "purchaseOrderId",
370
+ isSignal: true,
371
+ isRequired: true,
372
+ transformFunction: null
373
+ }
374
+ },
375
+ outputs: { saved: "saved" },
376
+ ngImport: i0,
377
+ template: "<app-techlify-icon\n role=\"button\"\n [name]=\"purchaseOrderProduct() ? 'edit' : 'add'\"\n (click)=\"open()\">\n</app-techlify-icon>\n",
378
+ dependencies: [{
379
+ kind: "ngmodule",
380
+ type: TechlifyIconModule
381
+ }, {
382
+ kind: "component",
383
+ type: i1$1.TechlifyIconComponent,
384
+ selector: "app-techlify-icon",
385
+ inputs: ["name", "size"]
386
+ }],
387
+ changeDetection: i0.ChangeDetectionStrategy.Eager,
388
+ preserveWhitespaces: true
389
+ });
390
+ };
391
+ i0.ɵɵngDeclareClassMetadata({
392
+ minVersion: "12.0.0",
393
+ version: "22.2.5",
394
+ ngImport: i0,
395
+ type: PurchaseOrderProductFormButtonComponent,
396
+ decorators: [{
397
+ type: Component,
398
+ args: [{
399
+ selector: "app-purchase-order-product-form-button",
400
+ changeDetection: ChangeDetectionStrategy.Eager,
401
+ imports: [TechlifyIconModule],
402
+ template: "<app-techlify-icon\n role=\"button\"\n [name]=\"purchaseOrderProduct() ? 'edit' : 'add'\"\n (click)=\"open()\">\n</app-techlify-icon>\n"
403
+ }]
404
+ }],
405
+ ctorParameters: () => [{ type: i4$1.MatDialog }],
406
+ propDecorators: {
407
+ purchaseOrderProduct: [{
408
+ type: i0.Input,
409
+ args: [{
410
+ isSignal: true,
411
+ alias: "purchaseOrderProduct",
412
+ required: false
413
+ }]
414
+ }],
415
+ purchaseOrderId: [{
416
+ type: i0.Input,
417
+ args: [{
418
+ isSignal: true,
419
+ alias: "purchaseOrderId",
420
+ required: true
421
+ }]
422
+ }],
423
+ saved: [{
424
+ type: i0.Output,
425
+ args: ["saved"]
426
+ }]
427
+ }
428
+ });
429
+ var PurchaseOrderProductListComponent = class PurchaseOrderProductListComponent extends TechlifyListComponent {
430
+ service;
431
+ fb;
432
+ purchaseOrderId = input(...ngDevMode ? [void 0, { debugName: "purchaseOrderId" }] : /* istanbul ignore next */ []);
433
+ displayedColumns = [
434
+ "#",
435
+ "product",
436
+ "quantity",
437
+ "unit",
438
+ "details",
439
+ "actions"
440
+ ];
441
+ constructor(service, fb) {
442
+ super(service);
443
+ this.service = service;
444
+ this.fb = fb;
445
+ this.isFilterPatchFromRoute = false;
446
+ this.filterForm = this.fb.group({
447
+ purchase_order_id: [""],
448
+ sort_by: ["product|ASC"]
449
+ });
450
+ effect(() => {
451
+ const id = this.purchaseOrderId();
452
+ if (id) {
453
+ this.filterForm.get("purchase_order_id")?.setValue(id, { emitEvent: false });
454
+ this.reload();
455
+ }
456
+ });
457
+ }
458
+ ngOnInit() {
459
+ this.listenFilterChanges();
460
+ }
461
+ static ɵfac = i0.ɵɵngDeclareFactory({
462
+ minVersion: "12.0.0",
463
+ version: "22.2.5",
464
+ ngImport: i0,
465
+ type: PurchaseOrderProductListComponent,
466
+ deps: [{ token: PurchaseOrderProductService }, { token: i2.FormBuilder }],
467
+ target: i0.ɵɵFactoryTarget.Component
468
+ });
469
+ static ɵcmp = i0.ɵɵngDeclareComponent({
470
+ minVersion: "17.0.0",
471
+ version: "22.2.5",
472
+ type: PurchaseOrderProductListComponent,
473
+ isStandalone: true,
474
+ selector: "app-purchase-order-product-list",
475
+ inputs: { purchaseOrderId: {
476
+ classPropertyName: "purchaseOrderId",
477
+ publicName: "purchaseOrderId",
478
+ isSignal: true,
479
+ isRequired: false,
480
+ transformFunction: null
481
+ } },
482
+ usesInheritance: true,
483
+ ngImport: i0,
484
+ template: "<mat-card class=\"w-100\">\n <mat-card-content>\n <div class=\"d-flex justify-content-between align-items-center mb-2\">\n <div class=\"d-flex flex-row gap-2\">\n <h5>Products</h5>\n <app-purchase-order-product-form-button [purchaseOrderId]=\"purchaseOrderId()!\"\n (saved)=\"reload()\">\n </app-purchase-order-product-form-button>\n </div>\n </div>\n\n <table mat-table [dataSource]=\"models\" class=\"w-100\" matSort (matSortChange)=\"sortColumn($event)\">\n <!-- # Column -->\n <ng-container matColumnDef=\"#\">\n <th mat-header-cell *matHeaderCellDef>#</th>\n <td mat-cell *matCellDef=\"let element; let i = index\">{{ i + 1 }}</td>\n </ng-container>\n\n <!-- Product Column -->\n <ng-container matColumnDef=\"product\">\n <th mat-header-cell *matHeaderCellDef mat-sort-header=\"product\" disableClear>Product</th>\n <td mat-cell *matCellDef=\"let element\">{{ element?.product?.name }}</td>\n </ng-container>\n\n <!-- Quantity Column -->\n <ng-container matColumnDef=\"quantity\">\n <th mat-header-cell *matHeaderCellDef mat-sort-header=\"quantity\" disableClear>Quantity</th>\n <td mat-cell *matCellDef=\"let element\">{{ element?.quantity }}</td>\n </ng-container>\n\n <!-- Unit Column -->\n <ng-container matColumnDef=\"unit\">\n <th mat-header-cell *matHeaderCellDef mat-sort-header=\"unit\" disableClear>Unit</th>\n <td mat-cell *matCellDef=\"let element\">{{ element?.unit?.title }}</td>\n </ng-container>\n\n <!-- Details Column -->\n <ng-container matColumnDef=\"details\">\n <th mat-header-cell *matHeaderCellDef>Details</th>\n <td mat-cell *matCellDef=\"let element\">{{ element?.details }}</td>\n </ng-container>\n\n <!-- Actions Column -->\n <ng-container matColumnDef=\"actions\">\n <th mat-header-cell *matHeaderCellDef>Actions</th>\n <td mat-cell *matCellDef=\"let element; let i = index\">\n <span class=\"text-secondary d-flex align-items-center gap-2\">\n <app-purchase-order-product-form-button [purchaseOrderId]=\"purchaseOrderId()!\"\n [purchaseOrderProduct]=\"element\" (saved)=\"reload()\">\n </app-purchase-order-product-form-button>\n\n <app-techlify-delete-button (deleted)=\"reload()\" [service]=\"service\" [model]=\"element\"\n [data]=\"{ title: $safeNavigationMigration(element?.product?.name), type: 'Purchase Order Product' }\"></app-techlify-delete-button>\n </span>\n </td>\n </ng-container>\n\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: displayedColumns\"></tr>\n </table>\n\n @if (isWorking) {\n <mat-progress-bar mode=\"indeterminate\"></mat-progress-bar>\n }\n </mat-card-content>\n</mat-card>",
485
+ dependencies: [
486
+ {
487
+ kind: "ngmodule",
488
+ type: MaterialModule$1
489
+ },
490
+ {
491
+ kind: "component",
492
+ type: i3$1.MatCard,
493
+ selector: "mat-card",
494
+ inputs: ["appearance"],
495
+ exportAs: ["matCard"]
496
+ },
497
+ {
498
+ kind: "directive",
499
+ type: i3$1.MatCardContent,
500
+ selector: "mat-card-content"
501
+ },
502
+ {
503
+ kind: "component",
504
+ type: i4.MatProgressBar,
505
+ selector: "mat-progress-bar",
506
+ inputs: [
507
+ "color",
508
+ "value",
509
+ "bufferValue",
510
+ "mode"
511
+ ],
512
+ outputs: ["animationEnd"],
513
+ exportAs: ["matProgressBar"]
514
+ },
515
+ {
516
+ kind: "directive",
517
+ type: i5.MatSort,
518
+ selector: "[matSort]",
519
+ inputs: [
520
+ "matSortActive",
521
+ "matSortStart",
522
+ "matSortDirection",
523
+ "matSortDisableClear",
524
+ "matSortDisabled"
525
+ ],
526
+ outputs: ["matSortChange"],
527
+ exportAs: ["matSort"]
528
+ },
529
+ {
530
+ kind: "component",
531
+ type: i5.MatSortHeader,
532
+ selector: "[mat-sort-header]",
533
+ inputs: [
534
+ "mat-sort-header",
535
+ "arrowPosition",
536
+ "start",
537
+ "disabled",
538
+ "sortActionDescription",
539
+ "disableClear"
540
+ ],
541
+ exportAs: ["matSortHeader"]
542
+ },
543
+ {
544
+ kind: "component",
545
+ type: i6.MatTable,
546
+ selector: "mat-table, table[mat-table]",
547
+ exportAs: ["matTable"]
548
+ },
549
+ {
550
+ kind: "directive",
551
+ type: i6.MatHeaderCellDef,
552
+ selector: "[matHeaderCellDef]"
553
+ },
554
+ {
555
+ kind: "directive",
556
+ type: i6.MatHeaderRowDef,
557
+ selector: "[matHeaderRowDef]",
558
+ inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"]
559
+ },
560
+ {
561
+ kind: "directive",
562
+ type: i6.MatColumnDef,
563
+ selector: "[matColumnDef]",
564
+ inputs: ["matColumnDef"]
565
+ },
566
+ {
567
+ kind: "directive",
568
+ type: i6.MatCellDef,
569
+ selector: "[matCellDef]"
570
+ },
571
+ {
572
+ kind: "directive",
573
+ type: i6.MatRowDef,
574
+ selector: "[matRowDef]",
575
+ inputs: ["matRowDefColumns", "matRowDefWhen"]
576
+ },
577
+ {
578
+ kind: "directive",
579
+ type: i6.MatHeaderCell,
580
+ selector: "mat-header-cell, th[mat-header-cell]"
581
+ },
582
+ {
583
+ kind: "directive",
584
+ type: i6.MatCell,
585
+ selector: "mat-cell, td[mat-cell]"
586
+ },
587
+ {
588
+ kind: "component",
589
+ type: i6.MatHeaderRow,
590
+ selector: "mat-header-row, tr[mat-header-row]",
591
+ exportAs: ["matHeaderRow"]
592
+ },
593
+ {
594
+ kind: "component",
595
+ type: i6.MatRow,
596
+ selector: "mat-row, tr[mat-row]",
597
+ exportAs: ["matRow"]
598
+ },
599
+ {
600
+ kind: "ngmodule",
601
+ type: ReactiveFormsModule
602
+ },
603
+ {
604
+ kind: "ngmodule",
605
+ type: TechlifyIconModule
606
+ },
607
+ {
608
+ kind: "component",
609
+ type: PurchaseOrderProductFormButtonComponent,
610
+ selector: "app-purchase-order-product-form-button",
611
+ inputs: ["purchaseOrderProduct", "purchaseOrderId"],
612
+ outputs: ["saved"]
613
+ },
614
+ {
615
+ kind: "component",
616
+ type: TechlifyDeleteButtonComponent,
617
+ selector: "app-techlify-delete-button",
618
+ inputs: [
619
+ "data",
620
+ "model",
621
+ "message",
622
+ "service"
623
+ ],
624
+ outputs: ["deleted", "loading"]
625
+ }
626
+ ],
627
+ changeDetection: i0.ChangeDetectionStrategy.Eager,
628
+ preserveWhitespaces: true
629
+ });
630
+ };
631
+ i0.ɵɵngDeclareClassMetadata({
632
+ minVersion: "12.0.0",
633
+ version: "22.2.5",
634
+ ngImport: i0,
635
+ type: PurchaseOrderProductListComponent,
636
+ decorators: [{
637
+ type: Component,
638
+ args: [{
639
+ selector: "app-purchase-order-product-list",
640
+ changeDetection: ChangeDetectionStrategy.Eager,
641
+ imports: [
642
+ MaterialModule$1,
643
+ ReactiveFormsModule,
644
+ TechlifyIconModule,
645
+ PurchaseOrderProductFormButtonComponent,
646
+ TechlifyDeleteButtonComponent
647
+ ],
648
+ template: "<mat-card class=\"w-100\">\n <mat-card-content>\n <div class=\"d-flex justify-content-between align-items-center mb-2\">\n <div class=\"d-flex flex-row gap-2\">\n <h5>Products</h5>\n <app-purchase-order-product-form-button [purchaseOrderId]=\"purchaseOrderId()!\"\n (saved)=\"reload()\">\n </app-purchase-order-product-form-button>\n </div>\n </div>\n\n <table mat-table [dataSource]=\"models\" class=\"w-100\" matSort (matSortChange)=\"sortColumn($event)\">\n <!-- # Column -->\n <ng-container matColumnDef=\"#\">\n <th mat-header-cell *matHeaderCellDef>#</th>\n <td mat-cell *matCellDef=\"let element; let i = index\">{{ i + 1 }}</td>\n </ng-container>\n\n <!-- Product Column -->\n <ng-container matColumnDef=\"product\">\n <th mat-header-cell *matHeaderCellDef mat-sort-header=\"product\" disableClear>Product</th>\n <td mat-cell *matCellDef=\"let element\">{{ element?.product?.name }}</td>\n </ng-container>\n\n <!-- Quantity Column -->\n <ng-container matColumnDef=\"quantity\">\n <th mat-header-cell *matHeaderCellDef mat-sort-header=\"quantity\" disableClear>Quantity</th>\n <td mat-cell *matCellDef=\"let element\">{{ element?.quantity }}</td>\n </ng-container>\n\n <!-- Unit Column -->\n <ng-container matColumnDef=\"unit\">\n <th mat-header-cell *matHeaderCellDef mat-sort-header=\"unit\" disableClear>Unit</th>\n <td mat-cell *matCellDef=\"let element\">{{ element?.unit?.title }}</td>\n </ng-container>\n\n <!-- Details Column -->\n <ng-container matColumnDef=\"details\">\n <th mat-header-cell *matHeaderCellDef>Details</th>\n <td mat-cell *matCellDef=\"let element\">{{ element?.details }}</td>\n </ng-container>\n\n <!-- Actions Column -->\n <ng-container matColumnDef=\"actions\">\n <th mat-header-cell *matHeaderCellDef>Actions</th>\n <td mat-cell *matCellDef=\"let element; let i = index\">\n <span class=\"text-secondary d-flex align-items-center gap-2\">\n <app-purchase-order-product-form-button [purchaseOrderId]=\"purchaseOrderId()!\"\n [purchaseOrderProduct]=\"element\" (saved)=\"reload()\">\n </app-purchase-order-product-form-button>\n\n <app-techlify-delete-button (deleted)=\"reload()\" [service]=\"service\" [model]=\"element\"\n [data]=\"{ title: $safeNavigationMigration(element?.product?.name), type: 'Purchase Order Product' }\"></app-techlify-delete-button>\n </span>\n </td>\n </ng-container>\n\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: displayedColumns\"></tr>\n </table>\n\n @if (isWorking) {\n <mat-progress-bar mode=\"indeterminate\"></mat-progress-bar>\n }\n </mat-card-content>\n</mat-card>"
649
+ }]
650
+ }],
651
+ ctorParameters: () => [{ type: PurchaseOrderProductService }, { type: i2.FormBuilder }],
652
+ propDecorators: { purchaseOrderId: [{
653
+ type: i0.Input,
654
+ args: [{
655
+ isSignal: true,
656
+ alias: "purchaseOrderId",
657
+ required: false
658
+ }]
659
+ }] }
660
+ });
661
+ var PurchaseOrderViewComponent = class PurchaseOrderViewComponent {
662
+ activatedRoute;
663
+ service;
664
+ location;
665
+ id;
666
+ isLoading;
667
+ purchaseOrder;
668
+ constructor(activatedRoute, service, location) {
669
+ this.activatedRoute = activatedRoute;
670
+ this.service = service;
671
+ this.location = location;
672
+ }
673
+ ngOnInit() {
674
+ this.activatedRoute.params.subscribe((params) => {
675
+ this.id = parseInt(params["id"]);
676
+ if (this.id) this.loadData();
677
+ });
678
+ }
679
+ loadData() {
680
+ this.isLoading = true;
681
+ this.service.show(this.id, { with: "supplier" }).subscribe({
682
+ next: (response) => {
683
+ this.purchaseOrder = response?.item;
684
+ this.isLoading = false;
685
+ },
686
+ error: () => {
687
+ this.isLoading = false;
688
+ }
689
+ });
690
+ }
691
+ redirectBack() {
692
+ this.location.back();
693
+ }
694
+ static ɵfac = i0.ɵɵngDeclareFactory({
695
+ minVersion: "12.0.0",
696
+ version: "22.2.5",
697
+ ngImport: i0,
698
+ type: PurchaseOrderViewComponent,
699
+ deps: [
700
+ { token: i1.ActivatedRoute },
701
+ { token: PurchaseOrderService },
702
+ { token: i3.Location }
703
+ ],
704
+ target: i0.ɵɵFactoryTarget.Component
705
+ });
706
+ static ɵcmp = i0.ɵɵngDeclareComponent({
707
+ minVersion: "17.0.0",
708
+ version: "22.2.5",
709
+ type: PurchaseOrderViewComponent,
710
+ isStandalone: true,
711
+ selector: "app-purchase-order-view",
712
+ ngImport: i0,
713
+ template: "@if (isLoading) {\n<mat-progress-bar mode=\"indeterminate\"></mat-progress-bar>\n} @if (purchaseOrder) {\n<div class=\"d-flex flex-column justify-content-start gap-2\">\n <div class=\"d-flex justify-content-start align-items-start gap-2\">\n <div class=\"d-flex flex-column gap-2\" style=\"width: 400px\">\n <mat-card>\n <mat-card-content class=\"d-flex justify-content-between align-items-center gap-2\">\n <div class=\"d-flex justify-content-start align-items-center gap-2\">\n <span class=\"material-symbols-outlined\">ungroup</span>\n <strong class=\"mb-0 text-dark\">PO #{{ purchaseOrder?.po_number }}</strong>\n </div>\n <div class=\"d-flex justify-content-start align-items-center gap-2 text-secondary\">\n <app-techlify-icon role='button' name='edit' class='text-secondary'\n [routerLink]=\"['/inventory/suppliers/purchase-orders/form', $safeNavigationMigration(purchaseOrder?.id)]\"></app-techlify-icon>\n\n <app-techlify-delete-button [service]=\"service\" [model]=\"purchaseOrder\"\n [data]=\"{ title: $safeNavigationMigration(purchaseOrder?.po_number), type: 'Purchase Order' }\"\n (deleted)=\"redirectBack()\"></app-techlify-delete-button>\n </div>\n </mat-card-content>\n <mat-card-content class=\"d-flex flex-wrap justify-content-between gap-2 mt-3\">\n <!-- Date -->\n @if (purchaseOrder?.date) {\n <div class=\"row\">\n <div class=\"col-12\">\n <div class=\"d-flex flex-column gap-0\">\n <small class=\"text-secondary\">Date</small>\n <p class=\"mb-0\">{{ $safeNavigationMigration(purchaseOrder?.date) | date : 'mediumDate' }}</p>\n </div>\n </div>\n </div>\n }\n <!-- PO # -->\n @if (purchaseOrder?.po_number) {\n <div class=\"row\">\n <div class=\"col-12\">\n <div class=\"d-flex flex-column gap-0\">\n <small class=\"text-secondary\">PO #</small>\n <p class=\"mb-0\">{{ purchaseOrder?.po_number }}</p>\n </div>\n </div>\n </div>\n }\n <!-- Supplier -->\n @if (purchaseOrder?.supplier) {\n <div class=\"row\">\n <div class=\"col-12\">\n <div class=\"d-flex flex-column gap-0\">\n <small class=\"text-secondary\">Supplier</small>\n <a class=\"text-decoration-none text-dark\"\n [routerLink]=\"['/inventory/suppliers', $safeNavigationMigration(purchaseOrder?.supplier?.id), 'view']\">\n {{ purchaseOrder?.supplier?.company_name }}\n </a>\n </div>\n </div>\n </div>\n }\n <!-- Details -->\n @if (purchaseOrder?.details) {\n <div class=\"row\">\n <div class=\"col-12\">\n <div class=\"d-flex flex-column gap-0\">\n <small class=\"text-secondary\">Details</small>\n <p class=\"mb-0\">{{ purchaseOrder?.details }}</p>\n </div>\n </div>\n </div>\n }\n </mat-card-content>\n </mat-card>\n\n <app-note-list labelText=\"Notes\" viewMode=\"timeline\" modelType=\"PurchaseOrder\"\n [relatedModelId]=\"$safeNavigationMigration(purchaseOrder?.id)\"></app-note-list>\n </div>\n\n <app-purchase-order-product-list class='w-100'\n [purchaseOrderId]=\"$safeNavigationMigration(purchaseOrder?.id)\"></app-purchase-order-product-list>\n </div>\n</div>\n}",
714
+ dependencies: [
715
+ {
716
+ kind: "ngmodule",
717
+ type: CommonModule
718
+ },
719
+ {
720
+ kind: "ngmodule",
721
+ type: MaterialModule$1
722
+ },
723
+ {
724
+ kind: "component",
725
+ type: i3$1.MatCard,
726
+ selector: "mat-card",
727
+ inputs: ["appearance"],
728
+ exportAs: ["matCard"]
729
+ },
730
+ {
731
+ kind: "directive",
732
+ type: i3$1.MatCardContent,
733
+ selector: "mat-card-content"
734
+ },
735
+ {
736
+ kind: "component",
737
+ type: i4.MatProgressBar,
738
+ selector: "mat-progress-bar",
739
+ inputs: [
740
+ "color",
741
+ "value",
742
+ "bufferValue",
743
+ "mode"
744
+ ],
745
+ outputs: ["animationEnd"],
746
+ exportAs: ["matProgressBar"]
747
+ },
748
+ {
749
+ kind: "directive",
750
+ type: RouterLink,
751
+ selector: "[routerLink]",
752
+ inputs: [
753
+ "target",
754
+ "queryParams",
755
+ "fragment",
756
+ "queryParamsHandling",
757
+ "state",
758
+ "info",
759
+ "relativeTo",
760
+ "preserveFragment",
761
+ "skipLocationChange",
762
+ "replaceUrl",
763
+ "browserUrl",
764
+ "routerLink"
765
+ ]
766
+ },
767
+ {
768
+ kind: "ngmodule",
769
+ type: NoteModule
770
+ },
771
+ {
772
+ kind: "component",
773
+ type: i1$1.NoteListComponent,
774
+ selector: "app-note-list",
775
+ inputs: [
776
+ "relatedModelId",
777
+ "modelType",
778
+ "readonly",
779
+ "labelText",
780
+ "commentsView",
781
+ "viewMode"
782
+ ]
783
+ },
784
+ {
785
+ kind: "ngmodule",
786
+ type: TechlifyIconModule
787
+ },
788
+ {
789
+ kind: "component",
790
+ type: i1$1.TechlifyIconComponent,
791
+ selector: "app-techlify-icon",
792
+ inputs: ["name", "size"]
793
+ },
794
+ {
795
+ kind: "component",
796
+ type: PurchaseOrderProductListComponent,
797
+ selector: "app-purchase-order-product-list",
798
+ inputs: ["purchaseOrderId"]
799
+ },
800
+ {
801
+ kind: "component",
802
+ type: TechlifyDeleteButtonComponent,
803
+ selector: "app-techlify-delete-button",
804
+ inputs: [
805
+ "data",
806
+ "model",
807
+ "message",
808
+ "service"
809
+ ],
810
+ outputs: ["deleted", "loading"]
811
+ },
812
+ {
813
+ kind: "pipe",
814
+ type: i3.DatePipe,
815
+ name: "date"
816
+ }
817
+ ],
818
+ changeDetection: i0.ChangeDetectionStrategy.Eager,
819
+ preserveWhitespaces: true
820
+ });
821
+ };
822
+ i0.ɵɵngDeclareClassMetadata({
823
+ minVersion: "12.0.0",
824
+ version: "22.2.5",
825
+ ngImport: i0,
826
+ type: PurchaseOrderViewComponent,
827
+ decorators: [{
828
+ type: Component,
829
+ args: [{
830
+ selector: "app-purchase-order-view",
831
+ changeDetection: ChangeDetectionStrategy.Eager,
832
+ imports: [
833
+ CommonModule,
834
+ MaterialModule$1,
835
+ RouterLink,
836
+ NoteModule,
837
+ TechlifyIconModule,
838
+ PurchaseOrderProductListComponent,
839
+ TechlifyDeleteButtonComponent
840
+ ],
841
+ template: "@if (isLoading) {\n<mat-progress-bar mode=\"indeterminate\"></mat-progress-bar>\n} @if (purchaseOrder) {\n<div class=\"d-flex flex-column justify-content-start gap-2\">\n <div class=\"d-flex justify-content-start align-items-start gap-2\">\n <div class=\"d-flex flex-column gap-2\" style=\"width: 400px\">\n <mat-card>\n <mat-card-content class=\"d-flex justify-content-between align-items-center gap-2\">\n <div class=\"d-flex justify-content-start align-items-center gap-2\">\n <span class=\"material-symbols-outlined\">ungroup</span>\n <strong class=\"mb-0 text-dark\">PO #{{ purchaseOrder?.po_number }}</strong>\n </div>\n <div class=\"d-flex justify-content-start align-items-center gap-2 text-secondary\">\n <app-techlify-icon role='button' name='edit' class='text-secondary'\n [routerLink]=\"['/inventory/suppliers/purchase-orders/form', $safeNavigationMigration(purchaseOrder?.id)]\"></app-techlify-icon>\n\n <app-techlify-delete-button [service]=\"service\" [model]=\"purchaseOrder\"\n [data]=\"{ title: $safeNavigationMigration(purchaseOrder?.po_number), type: 'Purchase Order' }\"\n (deleted)=\"redirectBack()\"></app-techlify-delete-button>\n </div>\n </mat-card-content>\n <mat-card-content class=\"d-flex flex-wrap justify-content-between gap-2 mt-3\">\n <!-- Date -->\n @if (purchaseOrder?.date) {\n <div class=\"row\">\n <div class=\"col-12\">\n <div class=\"d-flex flex-column gap-0\">\n <small class=\"text-secondary\">Date</small>\n <p class=\"mb-0\">{{ $safeNavigationMigration(purchaseOrder?.date) | date : 'mediumDate' }}</p>\n </div>\n </div>\n </div>\n }\n <!-- PO # -->\n @if (purchaseOrder?.po_number) {\n <div class=\"row\">\n <div class=\"col-12\">\n <div class=\"d-flex flex-column gap-0\">\n <small class=\"text-secondary\">PO #</small>\n <p class=\"mb-0\">{{ purchaseOrder?.po_number }}</p>\n </div>\n </div>\n </div>\n }\n <!-- Supplier -->\n @if (purchaseOrder?.supplier) {\n <div class=\"row\">\n <div class=\"col-12\">\n <div class=\"d-flex flex-column gap-0\">\n <small class=\"text-secondary\">Supplier</small>\n <a class=\"text-decoration-none text-dark\"\n [routerLink]=\"['/inventory/suppliers', $safeNavigationMigration(purchaseOrder?.supplier?.id), 'view']\">\n {{ purchaseOrder?.supplier?.company_name }}\n </a>\n </div>\n </div>\n </div>\n }\n <!-- Details -->\n @if (purchaseOrder?.details) {\n <div class=\"row\">\n <div class=\"col-12\">\n <div class=\"d-flex flex-column gap-0\">\n <small class=\"text-secondary\">Details</small>\n <p class=\"mb-0\">{{ purchaseOrder?.details }}</p>\n </div>\n </div>\n </div>\n }\n </mat-card-content>\n </mat-card>\n\n <app-note-list labelText=\"Notes\" viewMode=\"timeline\" modelType=\"PurchaseOrder\"\n [relatedModelId]=\"$safeNavigationMigration(purchaseOrder?.id)\"></app-note-list>\n </div>\n\n <app-purchase-order-product-list class='w-100'\n [purchaseOrderId]=\"$safeNavigationMigration(purchaseOrder?.id)\"></app-purchase-order-product-list>\n </div>\n</div>\n}"
842
+ }]
843
+ }],
844
+ ctorParameters: () => [
845
+ { type: i1.ActivatedRoute },
846
+ { type: PurchaseOrderService },
847
+ { type: i3.Location }
848
+ ]
849
+ });
850
+ export { PurchaseOrderViewComponent };
851
+
852
+ //# sourceMappingURL=techlify-inventory-common-purchase-order-view.component-CjED8n4_.mjs.map