techlify-inventory-common 18.51.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 -167
  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-oi41ku5U.mjs +0 -288
  195. package/fesm2022/techlify-inventory-common-category.module-oi41ku5U.mjs.map +0 -1
  196. package/fesm2022/techlify-inventory-common-purchase-order-view.component-DkWmMRaW.mjs +0 -227
  197. package/fesm2022/techlify-inventory-common-purchase-order-view.component-DkWmMRaW.mjs.map +0 -1
  198. package/fesm2022/techlify-inventory-common-recipient.module-v77bDJCC.mjs +0 -147
  199. package/fesm2022/techlify-inventory-common-recipient.module-v77bDJCC.mjs.map +0 -1
  200. package/fesm2022/techlify-inventory-common-stock-issue-form.component-ABIh_GkN.mjs +0 -199
  201. package/fesm2022/techlify-inventory-common-stock-issue-form.component-ABIh_GkN.mjs.map +0 -1
  202. package/fesm2022/techlify-inventory-common-stock-issue-product-view.component-3FB_GfyZ.mjs +0 -60
  203. package/fesm2022/techlify-inventory-common-stock-issue-product-view.component-3FB_GfyZ.mjs.map +0 -1
  204. package/fesm2022/techlify-inventory-common-stock-issue-view.component-D4AloV4G.mjs +0 -66
  205. package/fesm2022/techlify-inventory-common-stock-issue-view.component-D4AloV4G.mjs.map +0 -1
  206. package/fesm2022/techlify-inventory-common-techlify-inventory-common-B_42CQL_.mjs +0 -7218
  207. package/fesm2022/techlify-inventory-common-techlify-inventory-common-B_42CQL_.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 -41
  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,842 @@
1
+ import { n as TechlifyFilterComponent, t as TechlifyFilterModule } from "./techlify-inventory-common-techlify-filter.module-BdRNWNHi.mjs";
2
+ import * as i0 from "@angular/core";
3
+ import { ChangeDetectionStrategy, Component, EventEmitter, Injectable, Input, NgModule, Output } from "@angular/core";
4
+ import * as i3 from "@angular/router";
5
+ import { RouterModule } from "@angular/router";
6
+ import * as i1$1 from "ngx-techlify-core";
7
+ import { MaterialModule, NoteModule, TechlifyFormComponent, TechlifyListComponent, TechlifyService } from "ngx-techlify-core";
8
+ import * as i2 from "@angular/material/icon";
9
+ import { MatIconModule } from "@angular/material/icon";
10
+ import * as i4$1 from "@angular/material/card";
11
+ import { MatCardModule } from "@angular/material/card";
12
+ import * as i7 from "@angular/material/table";
13
+ import * as i8 from "@angular/material/progress-bar";
14
+ import { MatProgressBarModule } from "@angular/material/progress-bar";
15
+ import * as i10 from "ngx-infinite-scroll";
16
+ import { InfiniteScrollModule } from "ngx-infinite-scroll";
17
+ import * as i2$1 from "@angular/forms";
18
+ import { ReactiveFormsModule, Validators } from "@angular/forms";
19
+ import * as i1 from "@angular/material/dialog";
20
+ import { MatDialogModule } from "@angular/material/dialog";
21
+ import * as i4$2 from "@angular/material/button";
22
+ import * as i5 from "@angular/material/form-field";
23
+ import * as i6$1 from "@angular/material/input";
24
+ import * as i6 from "@angular/material/sort";
25
+ import * as i4 from "@angular/material/divider";
26
+ import { CommonModule } from "@angular/common";
27
+ var CategoryService = class CategoryService extends TechlifyService {
28
+ constructor(httpService) {
29
+ super(httpService, "product-categories");
30
+ }
31
+ static ɵfac = i0.ɵɵngDeclareFactory({
32
+ minVersion: "12.0.0",
33
+ version: "22.2.5",
34
+ ngImport: i0,
35
+ type: CategoryService,
36
+ deps: [{ token: i1$1.HttpService }],
37
+ target: i0.ɵɵFactoryTarget.Injectable
38
+ });
39
+ static ɵprov = i0.ɵɵngDeclareInjectable({
40
+ minVersion: "12.0.0",
41
+ version: "22.2.5",
42
+ ngImport: i0,
43
+ type: CategoryService,
44
+ providedIn: "root"
45
+ });
46
+ };
47
+ i0.ɵɵngDeclareClassMetadata({
48
+ minVersion: "12.0.0",
49
+ version: "22.2.5",
50
+ ngImport: i0,
51
+ type: CategoryService,
52
+ decorators: [{
53
+ type: Injectable,
54
+ args: [{ providedIn: "root" }]
55
+ }],
56
+ ctorParameters: () => [{ type: i1$1.HttpService }]
57
+ });
58
+ var CategoryFormComponent = class CategoryFormComponent extends TechlifyFormComponent {
59
+ formBuilder;
60
+ categoryService;
61
+ category;
62
+ saved = new EventEmitter();
63
+ cancelled = new EventEmitter();
64
+ isSaving = false;
65
+ constructor(formValidatorService, formBuilder, categoryService) {
66
+ super(formValidatorService);
67
+ this.formBuilder = formBuilder;
68
+ this.categoryService = categoryService;
69
+ this.errorMessages = { title: { required: "The title field is required." } };
70
+ this.form = this.formBuilder.group({
71
+ id: [""],
72
+ title: ["", Validators.required],
73
+ description: [""]
74
+ });
75
+ }
76
+ save() {
77
+ this.form.markAllAsTouched();
78
+ if (this.form.invalid) {
79
+ this.alertService.addAlert("Please check the form for errors.", "error");
80
+ return;
81
+ }
82
+ this.isSaving = true;
83
+ const data = { ...this.form.value };
84
+ let request = this.categoryService.store(data);
85
+ if (this.category?.id) request = this.categoryService.update(data);
86
+ request.subscribe({
87
+ next: (response) => {
88
+ this.isSaving = false;
89
+ this.alertService.addAlert("Category saved successfully!", "success");
90
+ this.saved.emit(response?.item);
91
+ },
92
+ error: () => {
93
+ this.isSaving = false;
94
+ }
95
+ });
96
+ }
97
+ ngOnInit() {
98
+ if (this.category) this.form.patchValue({ ...this.category });
99
+ }
100
+ static ɵfac = i0.ɵɵngDeclareFactory({
101
+ minVersion: "12.0.0",
102
+ version: "22.2.5",
103
+ ngImport: i0,
104
+ type: CategoryFormComponent,
105
+ deps: [
106
+ { token: i1$1.FormValidatorService },
107
+ { token: i2$1.FormBuilder },
108
+ { token: CategoryService }
109
+ ],
110
+ target: i0.ɵɵFactoryTarget.Component
111
+ });
112
+ static ɵcmp = i0.ɵɵngDeclareComponent({
113
+ minVersion: "17.0.0",
114
+ version: "22.2.5",
115
+ type: CategoryFormComponent,
116
+ isStandalone: false,
117
+ selector: "app-category-form",
118
+ inputs: { category: "category" },
119
+ outputs: {
120
+ saved: "saved",
121
+ cancelled: "cancelled"
122
+ },
123
+ usesInheritance: true,
124
+ ngImport: i0,
125
+ template: "<form [formGroup]=\"form\" (submit)=\"save()\" class=\"d-flex flex-column justify-content-start\">\n <mat-form-field>\n <mat-label>Title</mat-label>\n <input type=\"text\" matInput formControlName=\"title\" placeholder=\"Title\" />\n @if (isFieldValid('title')) {\n <mat-error>\n {{ getErrorMessage('title') }}\n </mat-error>\n }\n </mat-form-field>\n\n <mat-form-field>\n <mat-label>Description</mat-label>\n <textarea matInput formControlName=\"description\" placeholder=\"Description\"></textarea>\n </mat-form-field>\n\n <div class=\"d-flex justify-content-end align-items-center gap-2\">\n <button [disabled]=\"isSaving\" type=\"submit\" mat-raised-button color=\"primary\">Save</button>\n <button [disabled]=\"isSaving\" type=\"button\" mat-flat-button (click)=\"cancelled.emit()\">Cancel</button>\n </div>\n</form>\n",
126
+ styles: [""],
127
+ dependencies: [
128
+ {
129
+ kind: "directive",
130
+ type: i2$1.ɵNgNoValidate,
131
+ selector: "form:not([ngNoForm]):not([ngNativeValidate])"
132
+ },
133
+ {
134
+ kind: "directive",
135
+ type: i2$1.DefaultValueAccessor,
136
+ 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]"
137
+ },
138
+ {
139
+ kind: "directive",
140
+ type: i2$1.NgControlStatus,
141
+ selector: "[formControlName],[ngModel],[formControl]"
142
+ },
143
+ {
144
+ kind: "directive",
145
+ type: i2$1.NgControlStatusGroup,
146
+ selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]"
147
+ },
148
+ {
149
+ kind: "directive",
150
+ type: i2$1.FormGroupDirective,
151
+ selector: "[formGroup]",
152
+ inputs: ["formGroup"],
153
+ outputs: ["ngSubmit"],
154
+ exportAs: ["ngForm"]
155
+ },
156
+ {
157
+ kind: "directive",
158
+ type: i2$1.FormControlName,
159
+ selector: "[formControlName]",
160
+ inputs: [
161
+ "formControlName",
162
+ "disabled",
163
+ "ngModel"
164
+ ],
165
+ outputs: ["ngModelChange"]
166
+ },
167
+ {
168
+ kind: "component",
169
+ type: i4$2.MatButton,
170
+ 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] ",
171
+ inputs: ["matButton"],
172
+ exportAs: ["matButton", "matAnchor"]
173
+ },
174
+ {
175
+ kind: "component",
176
+ type: i5.MatFormField,
177
+ selector: "mat-form-field",
178
+ inputs: [
179
+ "hideRequiredMarker",
180
+ "color",
181
+ "floatLabel",
182
+ "appearance",
183
+ "subscriptSizing",
184
+ "hintLabel"
185
+ ],
186
+ exportAs: ["matFormField"]
187
+ },
188
+ {
189
+ kind: "directive",
190
+ type: i5.MatLabel,
191
+ selector: "mat-label"
192
+ },
193
+ {
194
+ kind: "directive",
195
+ type: i5.MatError,
196
+ selector: "mat-error, [matError]",
197
+ inputs: ["id"]
198
+ },
199
+ {
200
+ kind: "directive",
201
+ type: i6$1.MatInput,
202
+ selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]",
203
+ inputs: [
204
+ "disabled",
205
+ "id",
206
+ "placeholder",
207
+ "name",
208
+ "required",
209
+ "type",
210
+ "errorStateMatcher",
211
+ "aria-describedby",
212
+ "value",
213
+ "readonly",
214
+ "disabledInteractive"
215
+ ],
216
+ exportAs: ["matInput"]
217
+ }
218
+ ],
219
+ changeDetection: i0.ChangeDetectionStrategy.Eager,
220
+ preserveWhitespaces: true
221
+ });
222
+ };
223
+ i0.ɵɵngDeclareClassMetadata({
224
+ minVersion: "12.0.0",
225
+ version: "22.2.5",
226
+ ngImport: i0,
227
+ type: CategoryFormComponent,
228
+ decorators: [{
229
+ type: Component,
230
+ args: [{
231
+ selector: "app-category-form",
232
+ changeDetection: ChangeDetectionStrategy.Eager,
233
+ standalone: false,
234
+ template: "<form [formGroup]=\"form\" (submit)=\"save()\" class=\"d-flex flex-column justify-content-start\">\n <mat-form-field>\n <mat-label>Title</mat-label>\n <input type=\"text\" matInput formControlName=\"title\" placeholder=\"Title\" />\n @if (isFieldValid('title')) {\n <mat-error>\n {{ getErrorMessage('title') }}\n </mat-error>\n }\n </mat-form-field>\n\n <mat-form-field>\n <mat-label>Description</mat-label>\n <textarea matInput formControlName=\"description\" placeholder=\"Description\"></textarea>\n </mat-form-field>\n\n <div class=\"d-flex justify-content-end align-items-center gap-2\">\n <button [disabled]=\"isSaving\" type=\"submit\" mat-raised-button color=\"primary\">Save</button>\n <button [disabled]=\"isSaving\" type=\"button\" mat-flat-button (click)=\"cancelled.emit()\">Cancel</button>\n </div>\n</form>\n"
235
+ }]
236
+ }],
237
+ ctorParameters: () => [
238
+ { type: i1$1.FormValidatorService },
239
+ { type: i2$1.FormBuilder },
240
+ { type: CategoryService }
241
+ ],
242
+ propDecorators: {
243
+ category: [{ type: Input }],
244
+ saved: [{ type: Output }],
245
+ cancelled: [{ type: Output }]
246
+ }
247
+ });
248
+ var CategoryFormButtonComponent = class CategoryFormButtonComponent {
249
+ matDialog;
250
+ category;
251
+ saved = new EventEmitter();
252
+ constructor(matDialog) {
253
+ this.matDialog = matDialog;
254
+ }
255
+ showCategoryForm(templateRef) {
256
+ this.matDialog.open(templateRef, { width: "500px" });
257
+ }
258
+ onCategorySaved(category) {
259
+ this.matDialog.closeAll();
260
+ this.saved.emit(category);
261
+ }
262
+ static ɵfac = i0.ɵɵngDeclareFactory({
263
+ minVersion: "12.0.0",
264
+ version: "22.2.5",
265
+ ngImport: i0,
266
+ type: CategoryFormButtonComponent,
267
+ deps: [{ token: i1.MatDialog }],
268
+ target: i0.ɵɵFactoryTarget.Component
269
+ });
270
+ static ɵcmp = i0.ɵɵngDeclareComponent({
271
+ minVersion: "17.0.0",
272
+ version: "22.2.5",
273
+ type: CategoryFormButtonComponent,
274
+ isStandalone: false,
275
+ selector: "app-category-form-button",
276
+ inputs: { category: "category" },
277
+ outputs: { saved: "saved" },
278
+ ngImport: i0,
279
+ template: "@if (!category) {\n<mat-icon color=\"primary\" class=\"cursor-pointer\" (click)=\"showCategoryForm(categoryFormTemplate)\"> add </mat-icon>\n} @if (category) {\n<mat-icon class=\"cursor-pointer\" (click)=\"showCategoryForm(categoryFormTemplate)\"> edit </mat-icon>\n}\n\n<ng-template #categoryFormTemplate>\n <h3 class=\"mb-0\" mat-dialog-title>{{ category ? 'Edit' : 'Create' }} Category</h3>\n <small class=\"text-secondary px-4\"> Note that category names are unique and cannot be duplicated. </small>\n <div mat-dialog-content>\n <app-category-form\n class=\"mt-3\"\n [category]=\"category\"\n (saved)=\"onCategorySaved($event)\"\n (cancelled)=\"matDialog.closeAll()\"\n ></app-category-form>\n </div>\n</ng-template>\n",
280
+ styles: [""],
281
+ dependencies: [
282
+ {
283
+ kind: "component",
284
+ type: i2.MatIcon,
285
+ selector: "mat-icon",
286
+ inputs: [
287
+ "color",
288
+ "inline",
289
+ "svgIcon",
290
+ "fontSet",
291
+ "fontIcon"
292
+ ],
293
+ exportAs: ["matIcon"]
294
+ },
295
+ {
296
+ kind: "directive",
297
+ type: i1.MatDialogTitle,
298
+ selector: "[mat-dialog-title], [matDialogTitle]",
299
+ inputs: ["id"],
300
+ exportAs: ["matDialogTitle"]
301
+ },
302
+ {
303
+ kind: "directive",
304
+ type: i1.MatDialogContent,
305
+ selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]"
306
+ },
307
+ {
308
+ kind: "component",
309
+ type: CategoryFormComponent,
310
+ selector: "app-category-form",
311
+ inputs: ["category"],
312
+ outputs: ["saved", "cancelled"]
313
+ }
314
+ ],
315
+ changeDetection: i0.ChangeDetectionStrategy.Eager,
316
+ preserveWhitespaces: true
317
+ });
318
+ };
319
+ i0.ɵɵngDeclareClassMetadata({
320
+ minVersion: "12.0.0",
321
+ version: "22.2.5",
322
+ ngImport: i0,
323
+ type: CategoryFormButtonComponent,
324
+ decorators: [{
325
+ type: Component,
326
+ args: [{
327
+ selector: "app-category-form-button",
328
+ changeDetection: ChangeDetectionStrategy.Eager,
329
+ standalone: false,
330
+ template: "@if (!category) {\n<mat-icon color=\"primary\" class=\"cursor-pointer\" (click)=\"showCategoryForm(categoryFormTemplate)\"> add </mat-icon>\n} @if (category) {\n<mat-icon class=\"cursor-pointer\" (click)=\"showCategoryForm(categoryFormTemplate)\"> edit </mat-icon>\n}\n\n<ng-template #categoryFormTemplate>\n <h3 class=\"mb-0\" mat-dialog-title>{{ category ? 'Edit' : 'Create' }} Category</h3>\n <small class=\"text-secondary px-4\"> Note that category names are unique and cannot be duplicated. </small>\n <div mat-dialog-content>\n <app-category-form\n class=\"mt-3\"\n [category]=\"category\"\n (saved)=\"onCategorySaved($event)\"\n (cancelled)=\"matDialog.closeAll()\"\n ></app-category-form>\n </div>\n</ng-template>\n"
331
+ }]
332
+ }],
333
+ ctorParameters: () => [{ type: i1.MatDialog }],
334
+ propDecorators: {
335
+ category: [{ type: Input }],
336
+ saved: [{ type: Output }]
337
+ }
338
+ });
339
+ var CategoryListPageComponent = class CategoryListPageComponent extends TechlifyListComponent {
340
+ formBuilder;
341
+ categoryService;
342
+ filterConfig = { search: { placeholder: "Search category title, description" } };
343
+ displayedColumns = [
344
+ "no",
345
+ "title",
346
+ "description",
347
+ "products",
348
+ "actions"
349
+ ];
350
+ constructor(formBuilder, categoryService) {
351
+ super();
352
+ this.formBuilder = formBuilder;
353
+ this.categoryService = categoryService;
354
+ this.filterForm = this.formBuilder.group({
355
+ search: [""],
356
+ sort_by: ["created_at|desc"]
357
+ });
358
+ }
359
+ loadData() {
360
+ this.isWorking = true;
361
+ const params = { ...this.filterForm.value };
362
+ params.perPage = this.perPage;
363
+ params.page = this.page;
364
+ params.withCount = "products";
365
+ this.categoryService.index(params).subscribe({
366
+ next: (response) => {
367
+ this.models = this.models.concat(response?.data);
368
+ this.lastPage = response?.last_page;
369
+ this.isWorking = false;
370
+ },
371
+ error: () => this.isWorking = false
372
+ });
373
+ }
374
+ onSortChange(sort) {
375
+ let { active, direction } = sort;
376
+ if (!active) active = "created_at";
377
+ if (!direction) direction = "desc";
378
+ this.filterForm.get("sort_by").setValue(active + "|" + direction);
379
+ }
380
+ static ɵfac = i0.ɵɵngDeclareFactory({
381
+ minVersion: "12.0.0",
382
+ version: "22.2.5",
383
+ ngImport: i0,
384
+ type: CategoryListPageComponent,
385
+ deps: [{ token: i2$1.FormBuilder }, { token: CategoryService }],
386
+ target: i0.ɵɵFactoryTarget.Component
387
+ });
388
+ static ɵcmp = i0.ɵɵngDeclareComponent({
389
+ minVersion: "17.0.0",
390
+ version: "22.2.5",
391
+ type: CategoryListPageComponent,
392
+ isStandalone: false,
393
+ selector: "app-category-list-page",
394
+ usesInheritance: true,
395
+ ngImport: i0,
396
+ template: "<mat-card>\n <mat-card-content class=\"d-flex justify-content-between align-items-center gap-3\">\n <div class=\"d-flex justify-content-start align-items-center gap-2\">\n <h3 class=\"mb-0\">Product Categories</h3>\n <app-category-form-button (saved)=\"reload()\"></app-category-form-button>\n </div>\n <app-techlify-filter\n [filterForm]=\"filterForm\"\n (filterUpdated)=\"reload()\"\n [filterConfig]=\"filterConfig\"\n ></app-techlify-filter>\n </mat-card-content>\n</mat-card>\n\n<mat-card class=\"mt-2\">\n <mat-card-content class=\"p-0\">\n <table\n mat-table\n [dataSource]=\"models\"\n class=\"w-100\"\n aria-describedby=\"Product Categories\"\n infiniteScroll\n [infiniteScrollDistance]=\"2\"\n [infiniteScrollThrottle]=\"50\"\n (scrolled)=\"onScroll()\"\n matSort\n (matSortChange)=\"onSortChange($event)\"\n >\n <!-- # Column -->\n <ng-container matColumnDef=\"no\">\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 <!-- Title Column -->\n <ng-container matColumnDef=\"title\">\n <th mat-header-cell *matHeaderCellDef mat-sort-header>Title</th>\n <td mat-cell *matCellDef=\"let element\">{{ element?.title }}</td>\n </ng-container>\n\n <!-- Description Column -->\n <ng-container matColumnDef=\"description\">\n <th mat-header-cell *matHeaderCellDef>Description</th>\n <td mat-cell *matCellDef=\"let element\">{{ element?.description }}</td>\n </ng-container>\n\n <!-- Products Column -->\n <ng-container matColumnDef=\"products\">\n <th mat-header-cell *matHeaderCellDef mat-sort-header=\"products_count\">Products</th>\n <td mat-cell *matCellDef=\"let element\">\n {{ element?.products_count }}\n </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\">\n <div class=\"d-flex justify-content-start align-items-center gap-2\">\n <app-category-form-button [category]=\"element\" (saved)=\"reload()\"></app-category-form-button>\n <a class=\"text-decoration-none text-dark\" [routerLink]=\"[$safeNavigationMigration(element?.id), 'view']\">\n <mat-icon class=\"text-dark\">visibility</mat-icon>\n </a>\n </div>\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>\n",
397
+ styles: [""],
398
+ dependencies: [
399
+ {
400
+ kind: "directive",
401
+ type: i3.RouterLink,
402
+ selector: "[routerLink]",
403
+ inputs: [
404
+ "target",
405
+ "queryParams",
406
+ "fragment",
407
+ "queryParamsHandling",
408
+ "state",
409
+ "info",
410
+ "relativeTo",
411
+ "preserveFragment",
412
+ "skipLocationChange",
413
+ "replaceUrl",
414
+ "browserUrl",
415
+ "routerLink"
416
+ ]
417
+ },
418
+ {
419
+ kind: "component",
420
+ type: i4$1.MatCard,
421
+ selector: "mat-card",
422
+ inputs: ["appearance"],
423
+ exportAs: ["matCard"]
424
+ },
425
+ {
426
+ kind: "directive",
427
+ type: i4$1.MatCardContent,
428
+ selector: "mat-card-content"
429
+ },
430
+ {
431
+ kind: "component",
432
+ type: i2.MatIcon,
433
+ selector: "mat-icon",
434
+ inputs: [
435
+ "color",
436
+ "inline",
437
+ "svgIcon",
438
+ "fontSet",
439
+ "fontIcon"
440
+ ],
441
+ exportAs: ["matIcon"]
442
+ },
443
+ {
444
+ kind: "directive",
445
+ type: i6.MatSort,
446
+ selector: "[matSort]",
447
+ inputs: [
448
+ "matSortActive",
449
+ "matSortStart",
450
+ "matSortDirection",
451
+ "matSortDisableClear",
452
+ "matSortDisabled"
453
+ ],
454
+ outputs: ["matSortChange"],
455
+ exportAs: ["matSort"]
456
+ },
457
+ {
458
+ kind: "component",
459
+ type: i6.MatSortHeader,
460
+ selector: "[mat-sort-header]",
461
+ inputs: [
462
+ "mat-sort-header",
463
+ "arrowPosition",
464
+ "start",
465
+ "disabled",
466
+ "sortActionDescription",
467
+ "disableClear"
468
+ ],
469
+ exportAs: ["matSortHeader"]
470
+ },
471
+ {
472
+ kind: "component",
473
+ type: i7.MatTable,
474
+ selector: "mat-table, table[mat-table]",
475
+ exportAs: ["matTable"]
476
+ },
477
+ {
478
+ kind: "directive",
479
+ type: i7.MatHeaderCellDef,
480
+ selector: "[matHeaderCellDef]"
481
+ },
482
+ {
483
+ kind: "directive",
484
+ type: i7.MatHeaderRowDef,
485
+ selector: "[matHeaderRowDef]",
486
+ inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"]
487
+ },
488
+ {
489
+ kind: "directive",
490
+ type: i7.MatColumnDef,
491
+ selector: "[matColumnDef]",
492
+ inputs: ["matColumnDef"]
493
+ },
494
+ {
495
+ kind: "directive",
496
+ type: i7.MatCellDef,
497
+ selector: "[matCellDef]"
498
+ },
499
+ {
500
+ kind: "directive",
501
+ type: i7.MatRowDef,
502
+ selector: "[matRowDef]",
503
+ inputs: ["matRowDefColumns", "matRowDefWhen"]
504
+ },
505
+ {
506
+ kind: "directive",
507
+ type: i7.MatHeaderCell,
508
+ selector: "mat-header-cell, th[mat-header-cell]"
509
+ },
510
+ {
511
+ kind: "directive",
512
+ type: i7.MatCell,
513
+ selector: "mat-cell, td[mat-cell]"
514
+ },
515
+ {
516
+ kind: "component",
517
+ type: i7.MatHeaderRow,
518
+ selector: "mat-header-row, tr[mat-header-row]",
519
+ exportAs: ["matHeaderRow"]
520
+ },
521
+ {
522
+ kind: "component",
523
+ type: i7.MatRow,
524
+ selector: "mat-row, tr[mat-row]",
525
+ exportAs: ["matRow"]
526
+ },
527
+ {
528
+ kind: "component",
529
+ type: i8.MatProgressBar,
530
+ selector: "mat-progress-bar",
531
+ inputs: [
532
+ "color",
533
+ "value",
534
+ "bufferValue",
535
+ "mode"
536
+ ],
537
+ outputs: ["animationEnd"],
538
+ exportAs: ["matProgressBar"]
539
+ },
540
+ {
541
+ kind: "component",
542
+ type: TechlifyFilterComponent,
543
+ selector: "app-techlify-filter",
544
+ inputs: ["filterForm", "filterConfig"],
545
+ outputs: ["filterUpdated"]
546
+ },
547
+ {
548
+ kind: "directive",
549
+ type: i10.InfiniteScrollDirective,
550
+ selector: "[infiniteScroll], [infinite-scroll], [data-infinite-scroll]",
551
+ inputs: [
552
+ "infiniteScrollDistance",
553
+ "infiniteScrollUpDistance",
554
+ "infiniteScrollThrottle",
555
+ "infiniteScrollDisabled",
556
+ "infiniteScrollContainer",
557
+ "scrollWindow",
558
+ "immediateCheck",
559
+ "horizontal",
560
+ "alwaysCallback",
561
+ "fromRoot"
562
+ ],
563
+ outputs: ["scrolled", "scrolledUp"]
564
+ },
565
+ {
566
+ kind: "component",
567
+ type: CategoryFormButtonComponent,
568
+ selector: "app-category-form-button",
569
+ inputs: ["category"],
570
+ outputs: ["saved"]
571
+ }
572
+ ],
573
+ changeDetection: i0.ChangeDetectionStrategy.Eager,
574
+ preserveWhitespaces: true
575
+ });
576
+ };
577
+ i0.ɵɵngDeclareClassMetadata({
578
+ minVersion: "12.0.0",
579
+ version: "22.2.5",
580
+ ngImport: i0,
581
+ type: CategoryListPageComponent,
582
+ decorators: [{
583
+ type: Component,
584
+ args: [{
585
+ selector: "app-category-list-page",
586
+ changeDetection: ChangeDetectionStrategy.Eager,
587
+ standalone: false,
588
+ template: "<mat-card>\n <mat-card-content class=\"d-flex justify-content-between align-items-center gap-3\">\n <div class=\"d-flex justify-content-start align-items-center gap-2\">\n <h3 class=\"mb-0\">Product Categories</h3>\n <app-category-form-button (saved)=\"reload()\"></app-category-form-button>\n </div>\n <app-techlify-filter\n [filterForm]=\"filterForm\"\n (filterUpdated)=\"reload()\"\n [filterConfig]=\"filterConfig\"\n ></app-techlify-filter>\n </mat-card-content>\n</mat-card>\n\n<mat-card class=\"mt-2\">\n <mat-card-content class=\"p-0\">\n <table\n mat-table\n [dataSource]=\"models\"\n class=\"w-100\"\n aria-describedby=\"Product Categories\"\n infiniteScroll\n [infiniteScrollDistance]=\"2\"\n [infiniteScrollThrottle]=\"50\"\n (scrolled)=\"onScroll()\"\n matSort\n (matSortChange)=\"onSortChange($event)\"\n >\n <!-- # Column -->\n <ng-container matColumnDef=\"no\">\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 <!-- Title Column -->\n <ng-container matColumnDef=\"title\">\n <th mat-header-cell *matHeaderCellDef mat-sort-header>Title</th>\n <td mat-cell *matCellDef=\"let element\">{{ element?.title }}</td>\n </ng-container>\n\n <!-- Description Column -->\n <ng-container matColumnDef=\"description\">\n <th mat-header-cell *matHeaderCellDef>Description</th>\n <td mat-cell *matCellDef=\"let element\">{{ element?.description }}</td>\n </ng-container>\n\n <!-- Products Column -->\n <ng-container matColumnDef=\"products\">\n <th mat-header-cell *matHeaderCellDef mat-sort-header=\"products_count\">Products</th>\n <td mat-cell *matCellDef=\"let element\">\n {{ element?.products_count }}\n </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\">\n <div class=\"d-flex justify-content-start align-items-center gap-2\">\n <app-category-form-button [category]=\"element\" (saved)=\"reload()\"></app-category-form-button>\n <a class=\"text-decoration-none text-dark\" [routerLink]=\"[$safeNavigationMigration(element?.id), 'view']\">\n <mat-icon class=\"text-dark\">visibility</mat-icon>\n </a>\n </div>\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>\n"
589
+ }]
590
+ }],
591
+ ctorParameters: () => [{ type: i2$1.FormBuilder }, { type: CategoryService }]
592
+ });
593
+ var CategoryViewComponent = class CategoryViewComponent {
594
+ activatedRoute;
595
+ service;
596
+ id;
597
+ isWorking = false;
598
+ model;
599
+ constructor(activatedRoute, service) {
600
+ this.activatedRoute = activatedRoute;
601
+ this.service = service;
602
+ this.id = parseInt(this.activatedRoute.snapshot.params["id"]);
603
+ }
604
+ ngOnInit() {
605
+ if (this.id) this.loadData();
606
+ }
607
+ loadData() {
608
+ this.isWorking = true;
609
+ this.service.show(this.id).subscribe({
610
+ next: (response) => {
611
+ this.isWorking = false;
612
+ this.model = response?.item;
613
+ },
614
+ error: (error) => {
615
+ this.isWorking = false;
616
+ }
617
+ });
618
+ }
619
+ static ɵfac = i0.ɵɵngDeclareFactory({
620
+ minVersion: "12.0.0",
621
+ version: "22.2.5",
622
+ ngImport: i0,
623
+ type: CategoryViewComponent,
624
+ deps: [{ token: i3.ActivatedRoute }, { token: CategoryService }],
625
+ target: i0.ɵɵFactoryTarget.Component
626
+ });
627
+ static ɵcmp = i0.ɵɵngDeclareComponent({
628
+ minVersion: "17.0.0",
629
+ version: "22.2.5",
630
+ type: CategoryViewComponent,
631
+ isStandalone: false,
632
+ selector: "app-category-view",
633
+ ngImport: i0,
634
+ template: "@if (isWorking) {\n<mat-progress-bar mode=\"indeterminate\"></mat-progress-bar>\n} @if (model) {\n<div style=\"max-width: 250px\" class=\"d-flex flex-column gap-3\">\n <mat-card>\n <mat-card-content class=\"d-flex justify-content-between align-items-center gap-2\">\n <h3 class=\"fw-bold\">Information</h3>\n <div class=\"d-flex justify-content-end align-items-center\">\n <app-category-form-button [category]=\"model\" (saved)=\"loadData()\"></app-category-form-button>\n </div>\n </mat-card-content>\n <mat-divider class=\"mt-2\"></mat-divider>\n <mat-card-content class=\"mt-3\">\n <div class=\"d-flex flex-column justify-content-start gap-0\">\n <small class=\"text-secondary\">Title</small>\n <p>{{ model?.title }}</p>\n </div>\n @if (model?.description) {\n <div class=\"d-flex flex-column justify-content-start gap-0\">\n <small class=\"text-secondary\">Description</small>\n <p>{{ model?.description }}</p>\n </div>\n }\n </mat-card-content>\n </mat-card>\n\n <app-note-list\n labelText=\"Notes\"\n viewMode=\"timeline\"\n modelType=\"ProductCategory\"\n [relatedModelId]=\"$safeNavigationMigration(model?.id)\"\n ></app-note-list>\n</div>\n}\n",
635
+ styles: [""],
636
+ dependencies: [
637
+ {
638
+ kind: "component",
639
+ type: i4$1.MatCard,
640
+ selector: "mat-card",
641
+ inputs: ["appearance"],
642
+ exportAs: ["matCard"]
643
+ },
644
+ {
645
+ kind: "directive",
646
+ type: i4$1.MatCardContent,
647
+ selector: "mat-card-content"
648
+ },
649
+ {
650
+ kind: "component",
651
+ type: i4.MatDivider,
652
+ selector: "mat-divider",
653
+ inputs: ["vertical", "inset"]
654
+ },
655
+ {
656
+ kind: "component",
657
+ type: i8.MatProgressBar,
658
+ selector: "mat-progress-bar",
659
+ inputs: [
660
+ "color",
661
+ "value",
662
+ "bufferValue",
663
+ "mode"
664
+ ],
665
+ outputs: ["animationEnd"],
666
+ exportAs: ["matProgressBar"]
667
+ },
668
+ {
669
+ kind: "component",
670
+ type: i1$1.NoteListComponent,
671
+ selector: "app-note-list",
672
+ inputs: [
673
+ "relatedModelId",
674
+ "modelType",
675
+ "readonly",
676
+ "labelText",
677
+ "commentsView",
678
+ "viewMode"
679
+ ]
680
+ },
681
+ {
682
+ kind: "component",
683
+ type: CategoryFormButtonComponent,
684
+ selector: "app-category-form-button",
685
+ inputs: ["category"],
686
+ outputs: ["saved"]
687
+ }
688
+ ],
689
+ changeDetection: i0.ChangeDetectionStrategy.Eager,
690
+ preserveWhitespaces: true
691
+ });
692
+ };
693
+ i0.ɵɵngDeclareClassMetadata({
694
+ minVersion: "12.0.0",
695
+ version: "22.2.5",
696
+ ngImport: i0,
697
+ type: CategoryViewComponent,
698
+ decorators: [{
699
+ type: Component,
700
+ args: [{
701
+ selector: "app-category-view",
702
+ changeDetection: ChangeDetectionStrategy.Eager,
703
+ standalone: false,
704
+ template: "@if (isWorking) {\n<mat-progress-bar mode=\"indeterminate\"></mat-progress-bar>\n} @if (model) {\n<div style=\"max-width: 250px\" class=\"d-flex flex-column gap-3\">\n <mat-card>\n <mat-card-content class=\"d-flex justify-content-between align-items-center gap-2\">\n <h3 class=\"fw-bold\">Information</h3>\n <div class=\"d-flex justify-content-end align-items-center\">\n <app-category-form-button [category]=\"model\" (saved)=\"loadData()\"></app-category-form-button>\n </div>\n </mat-card-content>\n <mat-divider class=\"mt-2\"></mat-divider>\n <mat-card-content class=\"mt-3\">\n <div class=\"d-flex flex-column justify-content-start gap-0\">\n <small class=\"text-secondary\">Title</small>\n <p>{{ model?.title }}</p>\n </div>\n @if (model?.description) {\n <div class=\"d-flex flex-column justify-content-start gap-0\">\n <small class=\"text-secondary\">Description</small>\n <p>{{ model?.description }}</p>\n </div>\n }\n </mat-card-content>\n </mat-card>\n\n <app-note-list\n labelText=\"Notes\"\n viewMode=\"timeline\"\n modelType=\"ProductCategory\"\n [relatedModelId]=\"$safeNavigationMigration(model?.id)\"\n ></app-note-list>\n</div>\n}\n"
705
+ }]
706
+ }],
707
+ ctorParameters: () => [{ type: i3.ActivatedRoute }, { type: CategoryService }]
708
+ });
709
+ const routes = [{
710
+ path: "",
711
+ component: CategoryListPageComponent
712
+ }, {
713
+ path: ":id/view",
714
+ component: CategoryViewComponent
715
+ }];
716
+ var CategoryRoutingModule = class CategoryRoutingModule {
717
+ static ɵfac = i0.ɵɵngDeclareFactory({
718
+ minVersion: "12.0.0",
719
+ version: "22.2.5",
720
+ ngImport: i0,
721
+ type: CategoryRoutingModule,
722
+ deps: [],
723
+ target: i0.ɵɵFactoryTarget.NgModule
724
+ });
725
+ static ɵmod = i0.ɵɵngDeclareNgModule({
726
+ minVersion: "14.0.0",
727
+ version: "22.2.5",
728
+ ngImport: i0,
729
+ type: CategoryRoutingModule,
730
+ imports: [i3.RouterModule],
731
+ exports: [RouterModule]
732
+ });
733
+ static ɵinj = i0.ɵɵngDeclareInjector({
734
+ minVersion: "12.0.0",
735
+ version: "22.2.5",
736
+ ngImport: i0,
737
+ type: CategoryRoutingModule,
738
+ imports: [RouterModule.forChild(routes), RouterModule]
739
+ });
740
+ };
741
+ i0.ɵɵngDeclareClassMetadata({
742
+ minVersion: "12.0.0",
743
+ version: "22.2.5",
744
+ ngImport: i0,
745
+ type: CategoryRoutingModule,
746
+ decorators: [{
747
+ type: NgModule,
748
+ args: [{
749
+ imports: [RouterModule.forChild(routes)],
750
+ exports: [RouterModule]
751
+ }]
752
+ }]
753
+ });
754
+ var CategoryModule = class CategoryModule {
755
+ static ɵfac = i0.ɵɵngDeclareFactory({
756
+ minVersion: "12.0.0",
757
+ version: "22.2.5",
758
+ ngImport: i0,
759
+ type: CategoryModule,
760
+ deps: [],
761
+ target: i0.ɵɵFactoryTarget.NgModule
762
+ });
763
+ static ɵmod = i0.ɵɵngDeclareNgModule({
764
+ minVersion: "14.0.0",
765
+ version: "22.2.5",
766
+ ngImport: i0,
767
+ type: CategoryModule,
768
+ declarations: [
769
+ CategoryListPageComponent,
770
+ CategoryFormButtonComponent,
771
+ CategoryFormComponent,
772
+ CategoryViewComponent
773
+ ],
774
+ imports: [
775
+ CommonModule,
776
+ CategoryRoutingModule,
777
+ MatCardModule,
778
+ MatIconModule,
779
+ MatDialogModule,
780
+ ReactiveFormsModule,
781
+ MaterialModule,
782
+ TechlifyFilterModule,
783
+ InfiniteScrollModule,
784
+ MatProgressBarModule,
785
+ NoteModule
786
+ ],
787
+ exports: [CategoryFormButtonComponent]
788
+ });
789
+ static ɵinj = i0.ɵɵngDeclareInjector({
790
+ minVersion: "12.0.0",
791
+ version: "22.2.5",
792
+ ngImport: i0,
793
+ type: CategoryModule,
794
+ imports: [
795
+ CommonModule,
796
+ CategoryRoutingModule,
797
+ MatCardModule,
798
+ MatIconModule,
799
+ MatDialogModule,
800
+ ReactiveFormsModule,
801
+ MaterialModule,
802
+ TechlifyFilterModule,
803
+ InfiniteScrollModule,
804
+ MatProgressBarModule,
805
+ NoteModule
806
+ ]
807
+ });
808
+ };
809
+ i0.ɵɵngDeclareClassMetadata({
810
+ minVersion: "12.0.0",
811
+ version: "22.2.5",
812
+ ngImport: i0,
813
+ type: CategoryModule,
814
+ decorators: [{
815
+ type: NgModule,
816
+ args: [{
817
+ declarations: [
818
+ CategoryListPageComponent,
819
+ CategoryFormButtonComponent,
820
+ CategoryFormComponent,
821
+ CategoryViewComponent
822
+ ],
823
+ imports: [
824
+ CommonModule,
825
+ CategoryRoutingModule,
826
+ MatCardModule,
827
+ MatIconModule,
828
+ MatDialogModule,
829
+ ReactiveFormsModule,
830
+ MaterialModule,
831
+ TechlifyFilterModule,
832
+ InfiniteScrollModule,
833
+ MatProgressBarModule,
834
+ NoteModule
835
+ ],
836
+ exports: [CategoryFormButtonComponent]
837
+ }]
838
+ }]
839
+ });
840
+ export { CategoryModule };
841
+
842
+ //# sourceMappingURL=techlify-inventory-common-category.module-Dtn1604q.mjs.map