@axelor/aos-mobile-stock 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (373) hide show
  1. package/README.md +44 -0
  2. package/lib/api/customer-delivery-api.d.ts +16 -0
  3. package/lib/api/customer-delivery-api.js +122 -0
  4. package/lib/api/customer-delivery-api.js.map +1 -0
  5. package/lib/api/customer-delivery-line-api.d.ts +9 -0
  6. package/lib/api/customer-delivery-line-api.js +65 -0
  7. package/lib/api/customer-delivery-line-api.js.map +1 -0
  8. package/lib/api/index.d.ts +18 -0
  9. package/lib/api/index.js +36 -0
  10. package/lib/api/index.js.map +1 -0
  11. package/lib/api/internal-move-api.d.ts +20 -0
  12. package/lib/api/internal-move-api.js +112 -0
  13. package/lib/api/internal-move-api.js.map +1 -0
  14. package/lib/api/internal-move-line-api.d.ts +4 -0
  15. package/lib/api/internal-move-line-api.js +53 -0
  16. package/lib/api/internal-move-line-api.js.map +1 -0
  17. package/lib/api/inventory-api.d.ts +18 -0
  18. package/lib/api/inventory-api.js +121 -0
  19. package/lib/api/inventory-api.js.map +1 -0
  20. package/lib/api/inventory-line-api.d.ts +18 -0
  21. package/lib/api/inventory-line-api.js +76 -0
  22. package/lib/api/inventory-line-api.js.map +1 -0
  23. package/lib/api/partner-api.d.ts +8 -0
  24. package/lib/api/partner-api.js +155 -0
  25. package/lib/api/partner-api.js.map +1 -0
  26. package/lib/api/product-api.d.ts +26 -0
  27. package/lib/api/product-api.js +189 -0
  28. package/lib/api/product-api.js.map +1 -0
  29. package/lib/api/stock-correction-api.d.ts +17 -0
  30. package/lib/api/stock-correction-api.js +73 -0
  31. package/lib/api/stock-correction-api.js.map +1 -0
  32. package/lib/api/stock-correction-reason-api.d.ts +1 -0
  33. package/lib/api/stock-correction-reason-api.js +24 -0
  34. package/lib/api/stock-correction-reason-api.js.map +1 -0
  35. package/lib/api/stock-location-api.d.ts +7 -0
  36. package/lib/api/stock-location-api.js +121 -0
  37. package/lib/api/stock-location-api.js.map +1 -0
  38. package/lib/api/stock-location-line-api.d.ts +6 -0
  39. package/lib/api/stock-location-line-api.js +114 -0
  40. package/lib/api/stock-location-line-api.js.map +1 -0
  41. package/lib/api/supplier-arrival-api.d.ts +17 -0
  42. package/lib/api/supplier-arrival-api.js +121 -0
  43. package/lib/api/supplier-arrival-api.js.map +1 -0
  44. package/lib/api/supplier-arrival-line-api.d.ts +10 -0
  45. package/lib/api/supplier-arrival-line-api.js +67 -0
  46. package/lib/api/supplier-arrival-line-api.js.map +1 -0
  47. package/lib/api/supplier-catalog-api.d.ts +4 -0
  48. package/lib/api/supplier-catalog-api.js +49 -0
  49. package/lib/api/supplier-catalog-api.js.map +1 -0
  50. package/lib/api/supplychain-config-api.d.ts +1 -0
  51. package/lib/api/supplychain-config-api.js +24 -0
  52. package/lib/api/supplychain-config-api.js.map +1 -0
  53. package/lib/api/tracking-number-api.d.ts +16 -0
  54. package/lib/api/tracking-number-api.js +107 -0
  55. package/lib/api/tracking-number-api.js.map +1 -0
  56. package/lib/api/unit-api.d.ts +1 -0
  57. package/lib/api/unit-api.js +22 -0
  58. package/lib/api/unit-api.js.map +1 -0
  59. package/lib/components/index.d.ts +2 -0
  60. package/lib/components/index.js +20 -0
  61. package/lib/components/index.js.map +1 -0
  62. package/lib/components/molecules/CarrierCard/CarrierCard.d.ts +6 -0
  63. package/lib/components/molecules/CarrierCard/CarrierCard.js +46 -0
  64. package/lib/components/molecules/CarrierCard/CarrierCard.js.map +1 -0
  65. package/lib/components/molecules/LocationsMoveCard/LocationsMoveCard.d.ts +14 -0
  66. package/lib/components/molecules/LocationsMoveCard/LocationsMoveCard.js +82 -0
  67. package/lib/components/molecules/LocationsMoveCard/LocationsMoveCard.js.map +1 -0
  68. package/lib/components/molecules/ProductCardDetails/ProductCardDetails.d.ts +7 -0
  69. package/lib/components/molecules/ProductCardDetails/ProductCardDetails.js +42 -0
  70. package/lib/components/molecules/ProductCardDetails/ProductCardDetails.js.map +1 -0
  71. package/lib/components/molecules/StockCorrectionCard/StockCorrectionCard.d.ts +10 -0
  72. package/lib/components/molecules/StockCorrectionCard/StockCorrectionCard.js +75 -0
  73. package/lib/components/molecules/StockCorrectionCard/StockCorrectionCard.js.map +1 -0
  74. package/lib/components/molecules/index.d.ts +4 -0
  75. package/lib/components/molecules/index.js +22 -0
  76. package/lib/components/molecules/index.js.map +1 -0
  77. package/lib/components/organisms/CardStockIndicator/CardStockIndicator.d.ts +6 -0
  78. package/lib/components/organisms/CardStockIndicator/CardStockIndicator.js +72 -0
  79. package/lib/components/organisms/CardStockIndicator/CardStockIndicator.js.map +1 -0
  80. package/lib/components/organisms/CustomerDeliveryCard/CustomerDeliveryCard.d.ts +12 -0
  81. package/lib/components/organisms/CustomerDeliveryCard/CustomerDeliveryCard.js +94 -0
  82. package/lib/components/organisms/CustomerDeliveryCard/CustomerDeliveryCard.js.map +1 -0
  83. package/lib/components/organisms/CustomerDeliveryLineCard/CustomerDeliveryLineCard.d.ts +14 -0
  84. package/lib/components/organisms/CustomerDeliveryLineCard/CustomerDeliveryLineCard.js +81 -0
  85. package/lib/components/organisms/CustomerDeliveryLineCard/CustomerDeliveryLineCard.js.map +1 -0
  86. package/lib/components/organisms/DescriptionCard/DescriptionCard.d.ts +7 -0
  87. package/lib/components/organisms/DescriptionCard/DescriptionCard.js +42 -0
  88. package/lib/components/organisms/DescriptionCard/DescriptionCard.js.map +1 -0
  89. package/lib/components/organisms/InternalMoveCard/InternalMoveCard.d.ts +13 -0
  90. package/lib/components/organisms/InternalMoveCard/InternalMoveCard.js +94 -0
  91. package/lib/components/organisms/InternalMoveCard/InternalMoveCard.js.map +1 -0
  92. package/lib/components/organisms/InternalMoveLineCard/InternalMoveLineCard.d.ts +13 -0
  93. package/lib/components/organisms/InternalMoveLineCard/InternalMoveLineCard.js +101 -0
  94. package/lib/components/organisms/InternalMoveLineCard/InternalMoveLineCard.js.map +1 -0
  95. package/lib/components/organisms/InventoryCard/InventoryCard.d.ts +10 -0
  96. package/lib/components/organisms/InventoryCard/InventoryCard.js +88 -0
  97. package/lib/components/organisms/InventoryCard/InventoryCard.js.map +1 -0
  98. package/lib/components/organisms/InventoryHeader/InventoryHeader.d.ts +8 -0
  99. package/lib/components/organisms/InventoryHeader/InventoryHeader.js +77 -0
  100. package/lib/components/organisms/InventoryHeader/InventoryHeader.js.map +1 -0
  101. package/lib/components/organisms/InventoryLineCard/InventoryLineCard.d.ts +14 -0
  102. package/lib/components/organisms/InventoryLineCard/InventoryLineCard.js +72 -0
  103. package/lib/components/organisms/InventoryLineCard/InventoryLineCard.js.map +1 -0
  104. package/lib/components/organisms/ProductCard/ProductCard.d.ts +10 -0
  105. package/lib/components/organisms/ProductCard/ProductCard.js +77 -0
  106. package/lib/components/organisms/ProductCard/ProductCard.js.map +1 -0
  107. package/lib/components/organisms/ProductCardInfo/ProductCardInfo.d.ts +10 -0
  108. package/lib/components/organisms/ProductCardInfo/ProductCardInfo.js +74 -0
  109. package/lib/components/organisms/ProductCardInfo/ProductCardInfo.js.map +1 -0
  110. package/lib/components/organisms/ProductCharacteristics/ProductCharacteristics.d.ts +13 -0
  111. package/lib/components/organisms/ProductCharacteristics/ProductCharacteristics.js +79 -0
  112. package/lib/components/organisms/ProductCharacteristics/ProductCharacteristics.js.map +1 -0
  113. package/lib/components/organisms/ProductStockLocationCard/ProductStockLocationCard.d.ts +10 -0
  114. package/lib/components/organisms/ProductStockLocationCard/ProductStockLocationCard.js +89 -0
  115. package/lib/components/organisms/ProductStockLocationCard/ProductStockLocationCard.js.map +1 -0
  116. package/lib/components/organisms/ProductVariantCard/ProductVariantCard.d.ts +19 -0
  117. package/lib/components/organisms/ProductVariantCard/ProductVariantCard.js +128 -0
  118. package/lib/components/organisms/ProductVariantCard/ProductVariantCard.js.map +1 -0
  119. package/lib/components/organisms/QuantityCard/QuantityCard.d.ts +12 -0
  120. package/lib/components/organisms/QuantityCard/QuantityCard.js +98 -0
  121. package/lib/components/organisms/QuantityCard/QuantityCard.js.map +1 -0
  122. package/lib/components/organisms/SmallPropertyCard/SmallPropertyCard.d.ts +9 -0
  123. package/lib/components/organisms/SmallPropertyCard/SmallPropertyCard.js +63 -0
  124. package/lib/components/organisms/SmallPropertyCard/SmallPropertyCard.js.map +1 -0
  125. package/lib/components/organisms/StockMoveHeader/StockMoveHeader.d.ts +9 -0
  126. package/lib/components/organisms/StockMoveHeader/StockMoveHeader.js +71 -0
  127. package/lib/components/organisms/StockMoveHeader/StockMoveHeader.js.map +1 -0
  128. package/lib/components/organisms/SupplierArrivalCard/SupplierArrivalCard.d.ts +11 -0
  129. package/lib/components/organisms/SupplierArrivalCard/SupplierArrivalCard.js +93 -0
  130. package/lib/components/organisms/SupplierArrivalCard/SupplierArrivalCard.js.map +1 -0
  131. package/lib/components/organisms/SupplierArrivalLineCard/SupplierArrivalLineCard.d.ts +13 -0
  132. package/lib/components/organisms/SupplierArrivalLineCard/SupplierArrivalLineCard.js +78 -0
  133. package/lib/components/organisms/SupplierArrivalLineCard/SupplierArrivalLineCard.js.map +1 -0
  134. package/lib/components/organisms/index.d.ts +19 -0
  135. package/lib/components/organisms/index.js +37 -0
  136. package/lib/components/organisms/index.js.map +1 -0
  137. package/lib/features/asyncFunctions-index.d.ts +21 -0
  138. package/lib/features/asyncFunctions-index.js +39 -0
  139. package/lib/features/asyncFunctions-index.js.map +1 -0
  140. package/lib/features/customerDeliveryLineSlice.d.ts +27 -0
  141. package/lib/features/customerDeliveryLineSlice.js +88 -0
  142. package/lib/features/customerDeliveryLineSlice.js.map +1 -0
  143. package/lib/features/customerDeliverySlice.d.ts +38 -0
  144. package/lib/features/customerDeliverySlice.js +102 -0
  145. package/lib/features/customerDeliverySlice.js.map +1 -0
  146. package/lib/features/index.d.ts +21 -0
  147. package/lib/features/index.js +39 -0
  148. package/lib/features/index.js.map +1 -0
  149. package/lib/features/internalMoveLineSlice.d.ts +16 -0
  150. package/lib/features/internalMoveLineSlice.js +71 -0
  151. package/lib/features/internalMoveLineSlice.js.map +1 -0
  152. package/lib/features/internalMoveSlice.d.ts +38 -0
  153. package/lib/features/internalMoveSlice.js +105 -0
  154. package/lib/features/internalMoveSlice.js.map +1 -0
  155. package/lib/features/inventoryLineSlice.d.ts +38 -0
  156. package/lib/features/inventoryLineSlice.js +105 -0
  157. package/lib/features/inventoryLineSlice.js.map +1 -0
  158. package/lib/features/inventorySlice.d.ts +47 -0
  159. package/lib/features/inventorySlice.js +129 -0
  160. package/lib/features/inventorySlice.js.map +1 -0
  161. package/lib/features/partnerSlice.d.ts +25 -0
  162. package/lib/features/partnerSlice.js +65 -0
  163. package/lib/features/partnerSlice.js.map +1 -0
  164. package/lib/features/productIndicatorsSlice.d.ts +37 -0
  165. package/lib/features/productIndicatorsSlice.js +101 -0
  166. package/lib/features/productIndicatorsSlice.js.map +1 -0
  167. package/lib/features/productSlice.d.ts +39 -0
  168. package/lib/features/productSlice.js +105 -0
  169. package/lib/features/productSlice.js.map +1 -0
  170. package/lib/features/productVariantSlice.d.ts +27 -0
  171. package/lib/features/productVariantSlice.js +98 -0
  172. package/lib/features/productVariantSlice.js.map +1 -0
  173. package/lib/features/racksListSlice.d.ts +14 -0
  174. package/lib/features/racksListSlice.js +63 -0
  175. package/lib/features/racksListSlice.js.map +1 -0
  176. package/lib/features/stockAppConfigSlice.d.ts +14 -0
  177. package/lib/features/stockAppConfigSlice.js +49 -0
  178. package/lib/features/stockAppConfigSlice.js.map +1 -0
  179. package/lib/features/stockCorrectionReasonSlice.d.ts +14 -0
  180. package/lib/features/stockCorrectionReasonSlice.js +48 -0
  181. package/lib/features/stockCorrectionReasonSlice.js.map +1 -0
  182. package/lib/features/stockCorrectionSlice.d.ts +38 -0
  183. package/lib/features/stockCorrectionSlice.js +105 -0
  184. package/lib/features/stockCorrectionSlice.js.map +1 -0
  185. package/lib/features/stockLocationLineSlice.d.ts +16 -0
  186. package/lib/features/stockLocationLineSlice.js +71 -0
  187. package/lib/features/stockLocationLineSlice.js.map +1 -0
  188. package/lib/features/stockLocationSlice.d.ts +25 -0
  189. package/lib/features/stockLocationSlice.js +65 -0
  190. package/lib/features/stockLocationSlice.js.map +1 -0
  191. package/lib/features/supplierArrivalLineSlice.d.ts +27 -0
  192. package/lib/features/supplierArrivalLineSlice.js +88 -0
  193. package/lib/features/supplierArrivalLineSlice.js.map +1 -0
  194. package/lib/features/supplierArrivalSlice.d.ts +38 -0
  195. package/lib/features/supplierArrivalSlice.js +105 -0
  196. package/lib/features/supplierArrivalSlice.js.map +1 -0
  197. package/lib/features/supplierCatalogSlice.d.ts +14 -0
  198. package/lib/features/supplierCatalogSlice.js +48 -0
  199. package/lib/features/supplierCatalogSlice.js.map +1 -0
  200. package/lib/features/trackingNumberSlice.d.ts +35 -0
  201. package/lib/features/trackingNumberSlice.js +96 -0
  202. package/lib/features/trackingNumberSlice.js.map +1 -0
  203. package/lib/features/unitSlice.d.ts +14 -0
  204. package/lib/features/unitSlice.js +48 -0
  205. package/lib/features/unitSlice.js.map +1 -0
  206. package/lib/i18n/en.json +103 -0
  207. package/lib/i18n/fr.json +103 -0
  208. package/lib/index.d.ts +14 -0
  209. package/lib/index.js +97 -0
  210. package/lib/index.js.map +1 -0
  211. package/lib/screens/auth/UserScreen.d.ts +4 -0
  212. package/lib/screens/auth/UserScreen.js +54 -0
  213. package/lib/screens/auth/UserScreen.js.map +1 -0
  214. package/lib/screens/customerDeliveries/CustomerDeliveryDetailScreen.d.ts +5 -0
  215. package/lib/screens/customerDeliveries/CustomerDeliveryDetailScreen.js +149 -0
  216. package/lib/screens/customerDeliveries/CustomerDeliveryDetailScreen.js.map +1 -0
  217. package/lib/screens/customerDeliveries/CustomerDeliveryLineDetailScreen.d.ts +5 -0
  218. package/lib/screens/customerDeliveries/CustomerDeliveryLineDetailScreen.js +140 -0
  219. package/lib/screens/customerDeliveries/CustomerDeliveryLineDetailScreen.js.map +1 -0
  220. package/lib/screens/customerDeliveries/CustomerDeliveryLineListScreen.d.ts +5 -0
  221. package/lib/screens/customerDeliveries/CustomerDeliveryLineListScreen.js +116 -0
  222. package/lib/screens/customerDeliveries/CustomerDeliveryLineListScreen.js.map +1 -0
  223. package/lib/screens/customerDeliveries/CustomerDeliveryListScreen.d.ts +4 -0
  224. package/lib/screens/customerDeliveries/CustomerDeliveryListScreen.js +130 -0
  225. package/lib/screens/customerDeliveries/CustomerDeliveryListScreen.js.map +1 -0
  226. package/lib/screens/customerDeliveries/CustomerDeliverySelectProductScreen.d.ts +5 -0
  227. package/lib/screens/customerDeliveries/CustomerDeliverySelectProductScreen.js +76 -0
  228. package/lib/screens/customerDeliveries/CustomerDeliverySelectProductScreen.js.map +1 -0
  229. package/lib/screens/customerDeliveries/CustomerDeliverySelectTrackingScreen.d.ts +5 -0
  230. package/lib/screens/customerDeliveries/CustomerDeliverySelectTrackingScreen.js +79 -0
  231. package/lib/screens/customerDeliveries/CustomerDeliverySelectTrackingScreen.js.map +1 -0
  232. package/lib/screens/customerDeliveries/index.d.ts +66 -0
  233. package/lib/screens/customerDeliveries/index.js +68 -0
  234. package/lib/screens/customerDeliveries/index.js.map +1 -0
  235. package/lib/screens/internalMoves/InternalMoveDetailsGeneralScreen.d.ts +5 -0
  236. package/lib/screens/internalMoves/InternalMoveDetailsGeneralScreen.js +102 -0
  237. package/lib/screens/internalMoves/InternalMoveDetailsGeneralScreen.js.map +1 -0
  238. package/lib/screens/internalMoves/InternalMoveLineDetailsScreen.d.ts +5 -0
  239. package/lib/screens/internalMoves/InternalMoveLineDetailsScreen.js +296 -0
  240. package/lib/screens/internalMoves/InternalMoveLineDetailsScreen.js.map +1 -0
  241. package/lib/screens/internalMoves/InternalMoveLineListScreen.d.ts +5 -0
  242. package/lib/screens/internalMoves/InternalMoveLineListScreen.js +107 -0
  243. package/lib/screens/internalMoves/InternalMoveLineListScreen.js.map +1 -0
  244. package/lib/screens/internalMoves/InternalMoveListScreen.d.ts +4 -0
  245. package/lib/screens/internalMoves/InternalMoveListScreen.js +162 -0
  246. package/lib/screens/internalMoves/InternalMoveListScreen.js.map +1 -0
  247. package/lib/screens/internalMoves/InternalMoveSelectFromLocationScreen.d.ts +5 -0
  248. package/lib/screens/internalMoves/InternalMoveSelectFromLocationScreen.js +48 -0
  249. package/lib/screens/internalMoves/InternalMoveSelectFromLocationScreen.js.map +1 -0
  250. package/lib/screens/internalMoves/InternalMoveSelectProductScreen.d.ts +5 -0
  251. package/lib/screens/internalMoves/InternalMoveSelectProductScreen.js +98 -0
  252. package/lib/screens/internalMoves/InternalMoveSelectProductScreen.js.map +1 -0
  253. package/lib/screens/internalMoves/InternalMoveSelectToLocationScreen.d.ts +5 -0
  254. package/lib/screens/internalMoves/InternalMoveSelectToLocationScreen.js +53 -0
  255. package/lib/screens/internalMoves/InternalMoveSelectToLocationScreen.js.map +1 -0
  256. package/lib/screens/internalMoves/InternalMoveSelectTrackingScreen.d.ts +5 -0
  257. package/lib/screens/internalMoves/InternalMoveSelectTrackingScreen.js +101 -0
  258. package/lib/screens/internalMoves/InternalMoveSelectTrackingScreen.js.map +1 -0
  259. package/lib/screens/internalMoves/index.d.ts +78 -0
  260. package/lib/screens/internalMoves/index.js +78 -0
  261. package/lib/screens/internalMoves/index.js.map +1 -0
  262. package/lib/screens/inventories/InventoryLineDetailsScreen.d.ts +5 -0
  263. package/lib/screens/inventories/InventoryLineDetailsScreen.js +98 -0
  264. package/lib/screens/inventories/InventoryLineDetailsScreen.js.map +1 -0
  265. package/lib/screens/inventories/InventoryLineListScreen.d.ts +5 -0
  266. package/lib/screens/inventories/InventoryLineListScreen.js +122 -0
  267. package/lib/screens/inventories/InventoryLineListScreen.js.map +1 -0
  268. package/lib/screens/inventories/InventoryListScreen.d.ts +4 -0
  269. package/lib/screens/inventories/InventoryListScreen.js +148 -0
  270. package/lib/screens/inventories/InventoryListScreen.js.map +1 -0
  271. package/lib/screens/inventories/InventoryPlannedDetailsScreen.d.ts +5 -0
  272. package/lib/screens/inventories/InventoryPlannedDetailsScreen.js +81 -0
  273. package/lib/screens/inventories/InventoryPlannedDetailsScreen.js.map +1 -0
  274. package/lib/screens/inventories/InventorySelectProductScreen.d.ts +5 -0
  275. package/lib/screens/inventories/InventorySelectProductScreen.js +83 -0
  276. package/lib/screens/inventories/InventorySelectProductScreen.js.map +1 -0
  277. package/lib/screens/inventories/InventorySelectTrackingScreen.d.ts +5 -0
  278. package/lib/screens/inventories/InventorySelectTrackingScreen.js +81 -0
  279. package/lib/screens/inventories/InventorySelectTrackingScreen.js.map +1 -0
  280. package/lib/screens/inventories/InventoryStartedDetailsScreen.d.ts +5 -0
  281. package/lib/screens/inventories/InventoryStartedDetailsScreen.js +110 -0
  282. package/lib/screens/inventories/InventoryStartedDetailsScreen.js.map +1 -0
  283. package/lib/screens/inventories/index.d.ts +77 -0
  284. package/lib/screens/inventories/index.js +76 -0
  285. package/lib/screens/inventories/index.js.map +1 -0
  286. package/lib/screens/products/ProductDetailsScreen.d.ts +5 -0
  287. package/lib/screens/products/ProductDetailsScreen.js +135 -0
  288. package/lib/screens/products/ProductDetailsScreen.js.map +1 -0
  289. package/lib/screens/products/ProductImageScreen.d.ts +4 -0
  290. package/lib/screens/products/ProductImageScreen.js +62 -0
  291. package/lib/screens/products/ProductImageScreen.js.map +1 -0
  292. package/lib/screens/products/ProductListScreen.d.ts +4 -0
  293. package/lib/screens/products/ProductListScreen.js +72 -0
  294. package/lib/screens/products/ProductListScreen.js.map +1 -0
  295. package/lib/screens/products/ProductListVariantScreen.d.ts +5 -0
  296. package/lib/screens/products/ProductListVariantScreen.js +66 -0
  297. package/lib/screens/products/ProductListVariantScreen.js.map +1 -0
  298. package/lib/screens/products/ProductStockDetailsScreen.d.ts +5 -0
  299. package/lib/screens/products/ProductStockDetailsScreen.js +201 -0
  300. package/lib/screens/products/ProductStockDetailsScreen.js.map +1 -0
  301. package/lib/screens/products/ProductStockLocationDetailsScreen.d.ts +4 -0
  302. package/lib/screens/products/ProductStockLocationDetailsScreen.js +110 -0
  303. package/lib/screens/products/ProductStockLocationDetailsScreen.js.map +1 -0
  304. package/lib/screens/products/index.d.ts +46 -0
  305. package/lib/screens/products/index.js +56 -0
  306. package/lib/screens/products/index.js.map +1 -0
  307. package/lib/screens/stockCorrections/StockCorrectionDetailsScreen.d.ts +5 -0
  308. package/lib/screens/stockCorrections/StockCorrectionDetailsScreen.js +271 -0
  309. package/lib/screens/stockCorrections/StockCorrectionDetailsScreen.js.map +1 -0
  310. package/lib/screens/stockCorrections/StockCorrectionListScreen.d.ts +4 -0
  311. package/lib/screens/stockCorrections/StockCorrectionListScreen.js +140 -0
  312. package/lib/screens/stockCorrections/StockCorrectionListScreen.js.map +1 -0
  313. package/lib/screens/stockCorrections/StockCorrectionNewLocationScreen.d.ts +5 -0
  314. package/lib/screens/stockCorrections/StockCorrectionNewLocationScreen.js +48 -0
  315. package/lib/screens/stockCorrections/StockCorrectionNewLocationScreen.js.map +1 -0
  316. package/lib/screens/stockCorrections/StockCorrectionNewProductScreen.d.ts +5 -0
  317. package/lib/screens/stockCorrections/StockCorrectionNewProductScreen.js +55 -0
  318. package/lib/screens/stockCorrections/StockCorrectionNewProductScreen.js.map +1 -0
  319. package/lib/screens/stockCorrections/StockCorrectionNewTrackingScreen.d.ts +5 -0
  320. package/lib/screens/stockCorrections/StockCorrectionNewTrackingScreen.js +54 -0
  321. package/lib/screens/stockCorrections/StockCorrectionNewTrackingScreen.js.map +1 -0
  322. package/lib/screens/stockCorrections/index.d.ts +40 -0
  323. package/lib/screens/stockCorrections/index.js +51 -0
  324. package/lib/screens/stockCorrections/index.js.map +1 -0
  325. package/lib/screens/supplierArrivals/SupplierArrivalAddTrackingScreen.d.ts +5 -0
  326. package/lib/screens/supplierArrivals/SupplierArrivalAddTrackingScreen.js +87 -0
  327. package/lib/screens/supplierArrivals/SupplierArrivalAddTrackingScreen.js.map +1 -0
  328. package/lib/screens/supplierArrivals/SupplierArrivalDetailsScreen.d.ts +5 -0
  329. package/lib/screens/supplierArrivals/SupplierArrivalDetailsScreen.js +120 -0
  330. package/lib/screens/supplierArrivals/SupplierArrivalDetailsScreen.js.map +1 -0
  331. package/lib/screens/supplierArrivals/SupplierArrivalLineDetailScreen.d.ts +5 -0
  332. package/lib/screens/supplierArrivals/SupplierArrivalLineDetailScreen.js +167 -0
  333. package/lib/screens/supplierArrivals/SupplierArrivalLineDetailScreen.js.map +1 -0
  334. package/lib/screens/supplierArrivals/SupplierArrivalLineListScreen.d.ts +5 -0
  335. package/lib/screens/supplierArrivals/SupplierArrivalLineListScreen.js +107 -0
  336. package/lib/screens/supplierArrivals/SupplierArrivalLineListScreen.js.map +1 -0
  337. package/lib/screens/supplierArrivals/SupplierArrivalListScreen.d.ts +4 -0
  338. package/lib/screens/supplierArrivals/SupplierArrivalListScreen.js +126 -0
  339. package/lib/screens/supplierArrivals/SupplierArrivalListScreen.js.map +1 -0
  340. package/lib/screens/supplierArrivals/SupplierArrivalSelectProductScreen.d.ts +5 -0
  341. package/lib/screens/supplierArrivals/SupplierArrivalSelectProductScreen.js +79 -0
  342. package/lib/screens/supplierArrivals/SupplierArrivalSelectProductScreen.js.map +1 -0
  343. package/lib/screens/supplierArrivals/SupplierArrivalSelectTrackingScreen.d.ts +5 -0
  344. package/lib/screens/supplierArrivals/SupplierArrivalSelectTrackingScreen.js +106 -0
  345. package/lib/screens/supplierArrivals/SupplierArrivalSelectTrackingScreen.js.map +1 -0
  346. package/lib/screens/supplierArrivals/index.d.ts +77 -0
  347. package/lib/screens/supplierArrivals/index.js +76 -0
  348. package/lib/screens/supplierArrivals/index.js.map +1 -0
  349. package/lib/types/index.d.ts +5 -0
  350. package/lib/types/index.js +23 -0
  351. package/lib/types/index.js.map +1 -0
  352. package/lib/types/inventory.d.ts +16 -0
  353. package/lib/types/inventory.js +88 -0
  354. package/lib/types/inventory.js.map +1 -0
  355. package/lib/types/product.d.ts +16 -0
  356. package/lib/types/product.js +62 -0
  357. package/lib/types/product.js.map +1 -0
  358. package/lib/types/stock-corrrection.d.ts +11 -0
  359. package/lib/types/stock-corrrection.js +47 -0
  360. package/lib/types/stock-corrrection.js.map +1 -0
  361. package/lib/types/stock-location.d.ts +8 -0
  362. package/lib/types/stock-location.js +26 -0
  363. package/lib/types/stock-location.js.map +1 -0
  364. package/lib/types/stock-move.d.ts +36 -0
  365. package/lib/types/stock-move.js +124 -0
  366. package/lib/types/stock-move.js.map +1 -0
  367. package/lib/utils/displayers.d.ts +4 -0
  368. package/lib/utils/displayers.js +22 -0
  369. package/lib/utils/displayers.js.map +1 -0
  370. package/lib/utils/filters.d.ts +6 -0
  371. package/lib/utils/filters.js +77 -0
  372. package/lib/utils/filters.js.map +1 -0
  373. package/package.json +48 -0
@@ -0,0 +1,107 @@
1
+ /*
2
+ * Axelor Business Solutions
3
+ *
4
+ * Copyright (C) 2023 Axelor (<http://axelor.com>).
5
+ *
6
+ * This program is free software: you can redistribute it and/or modify
7
+ * it under the terms of the GNU Affero General Public License, version 3,
8
+ * as published by the Free Software Foundation.
9
+ *
10
+ * This program is distributed in the hope that it will be useful,
11
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ * GNU Affero General Public License for more details.
14
+ *
15
+ * You should have received a copy of the GNU Affero General Public License
16
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
17
+ */
18
+ import { axiosApiProvider, getApiResponseData, getFirstData, } from '@axelor/aos-mobile-core';
19
+ const trackingNumberFields = ['id', 'trackingNumberSeq', 'serialNumber'];
20
+ export async function searchTrackingNumberFilter({ productId, searchValue, page = 0, }) {
21
+ return axiosApiProvider.post({
22
+ url: '/ws/rest/com.axelor.apps.stock.db.TrackingNumber/search',
23
+ data: {
24
+ data: {
25
+ criteria: [
26
+ {
27
+ operator: 'and',
28
+ criteria: [
29
+ {
30
+ fieldName: 'product.id',
31
+ operator: '=',
32
+ value: productId,
33
+ },
34
+ {
35
+ operator: 'or',
36
+ criteria: [
37
+ {
38
+ fieldName: 'trackingNumberSeq',
39
+ operator: 'like',
40
+ value: searchValue,
41
+ },
42
+ {
43
+ fieldName: 'serialNumber',
44
+ operator: 'like',
45
+ value: searchValue,
46
+ },
47
+ ],
48
+ },
49
+ ],
50
+ },
51
+ ],
52
+ },
53
+ fields: trackingNumberFields,
54
+ sortBy: ['id', 'trackingNumberSeq'],
55
+ limit: 10,
56
+ offset: 10 * page,
57
+ },
58
+ });
59
+ }
60
+ export function searchTrackingNumberBySerialNumber(serialNumber) {
61
+ return axiosApiProvider
62
+ .post({
63
+ url: '/ws/rest/com.axelor.apps.stock.db.TrackingNumber/search',
64
+ data: {
65
+ data: {
66
+ criteria: [
67
+ {
68
+ fieldName: 'serialNumber',
69
+ operator: '=',
70
+ value: serialNumber,
71
+ },
72
+ ],
73
+ },
74
+ fields: trackingNumberFields,
75
+ sortBy: ['id', 'trackingNumberSeq'],
76
+ limit: 1,
77
+ offset: 0,
78
+ },
79
+ })
80
+ .then(getApiResponseData)
81
+ .then(getFirstData);
82
+ }
83
+ export async function createTrackingNumber({ qty, product, trackingNumberSeq }) {
84
+ return axiosApiProvider.post({
85
+ url: '/ws/rest/com.axelor.apps.stock.db.TrackingNumber',
86
+ data: {
87
+ data: {
88
+ counter: qty,
89
+ product: product,
90
+ trackingNumberSeq: trackingNumberSeq,
91
+ },
92
+ },
93
+ });
94
+ }
95
+ export async function updateStockMoveLineTrackingNumber({ stockMoveLineId, stockMoveLineVersion, trackingNumber, }) {
96
+ return axiosApiProvider.post({
97
+ url: `/ws/rest/com.axelor.apps.stock.db.StockMoveLine/${stockMoveLineId}`,
98
+ data: {
99
+ data: {
100
+ id: stockMoveLineId,
101
+ version: stockMoveLineVersion,
102
+ trackingNumber: trackingNumber,
103
+ },
104
+ },
105
+ });
106
+ }
107
+ //# sourceMappingURL=tracking-number-api.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tracking-number-api.js","sourceRoot":"","sources":["../../src/api/tracking-number-api.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EACL,gBAAg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CAAC,IAAI,EAAE,mBAAmB,CAAC;YACnC,KAAK,EAAE,CAAC;YACR,MAAM,EAAE,CAAC;SACV;KACF,CAAC;SACD,IAAI,CAAC,kBAAkB,CAAC;SACxB,IAAI,CAAC,YAAY,CAAC,CAAC;AACxB,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,oBAAoB,CAAC,EAAC,GAAG,EAAE,OAAO,EAAE,iBAAiB,EAAC;IAC1E,OAAO,gBAAgB,CAAC,IAAI,CAAC;QAC3B,GAAG,EAAE,kDAAkD;QACvD,IAAI,EAAE;YACJ,IAAI,EAAE;gBACJ,OAAO,EAAE,GAAG;gBACZ,OAAO,EAAE,OAAO;gBAChB,iBAAiB,EAAE,iBAAiB;aACrC;SACF;KACF,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,iCAAiC,CAAC,EACtD,eAAe,EACf,oBAAoB,EACpB,cAAc,GACf;IACC,OAAO,gBAAgB,CAAC,IAAI,CAAC;QAC3B,GAAG,EAAE,mDAAmD,eAAe,EAAE;QACzE,IAAI,EAAE;YACJ,IAAI,EAAE;gBACJ,EAAE,EAAE,eAAe;gBACnB,OAAO,EAAE,oBAAoB;gBAC7B,cAAc,EAAE,cAAc;aAC/B;SACF;KACF,CAAC,CAAC;AACL,CAAC"}
@@ -0,0 +1 @@
1
+ export function searchUnit(): Promise<any>;
@@ -0,0 +1,22 @@
1
+ /*
2
+ * Axelor Business Solutions
3
+ *
4
+ * Copyright (C) 2023 Axelor (<http://axelor.com>).
5
+ *
6
+ * This program is free software: you can redistribute it and/or modify
7
+ * it under the terms of the GNU Affero General Public License, version 3,
8
+ * as published by the Free Software Foundation.
9
+ *
10
+ * This program is distributed in the hope that it will be useful,
11
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ * GNU Affero General Public License for more details.
14
+ *
15
+ * You should have received a copy of the GNU Affero General Public License
16
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
17
+ */
18
+ import { axiosApiProvider } from '@axelor/aos-mobile-core';
19
+ export async function searchUnit() {
20
+ return axiosApiProvider.get({ url: '/ws/rest/com.axelor.apps.base.db.Unit' });
21
+ }
22
+ //# sourceMappingURL=unit-api.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unit-api.js","sourceRoot":"","sources":["../../src/api/unit-api.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,gBAAgB,EAAC,MAAM,yBAAyB,CAAC;AAEzD,MAAM,CAAC,KAAK,UAAU,UAAU;IAC9B,OAAO,gBAAgB,CAAC,GAAG,CAAC,EAAC,GAAG,EAAE,uCAAuC,EAAC,CAAC,CAAC;AAC9E,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from "./molecules";
2
+ export * from "./organisms";
@@ -0,0 +1,20 @@
1
+ /*
2
+ * Axelor Business Solutions
3
+ *
4
+ * Copyright (C) 2023 Axelor (<http://axelor.com>).
5
+ *
6
+ * This program is free software: you can redistribute it and/or modify
7
+ * it under the terms of the GNU Affero General Public License, version 3,
8
+ * as published by the Free Software Foundation.
9
+ *
10
+ * This program is distributed in the hope that it will be useful,
11
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ * GNU Affero General Public License for more details.
14
+ *
15
+ * You should have received a copy of the GNU Affero General Public License
16
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
17
+ */
18
+ export * from './molecules';
19
+ export * from './organisms';
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/components/index.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC"}
@@ -0,0 +1,6 @@
1
+ interface CarrierCardProps {
2
+ style?: any;
3
+ onPress: () => void;
4
+ }
5
+ declare const CarrierCard: ({ style, onPress }: CarrierCardProps) => JSX.Element;
6
+ export default CarrierCard;
@@ -0,0 +1,46 @@
1
+ /*
2
+ * Axelor Business Solutions
3
+ *
4
+ * Copyright (C) 2023 Axelor (<http://axelor.com>).
5
+ *
6
+ * This program is free software: you can redistribute it and/or modify
7
+ * it under the terms of the GNU Affero General Public License, version 3,
8
+ * as published by the Free Software Foundation.
9
+ *
10
+ * This program is distributed in the hope that it will be useful,
11
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ * GNU Affero General Public License for more details.
14
+ *
15
+ * You should have received a copy of the GNU Affero General Public License
16
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
17
+ */
18
+ import React from 'react';
19
+ import { StyleSheet, TouchableOpacity } from 'react-native';
20
+ import { Card, Icon, Text } from '@axelor/aos-mobile-ui';
21
+ import { useTranslator } from '@axelor/aos-mobile-core';
22
+ const CarrierCard = ({ style, onPress }) => {
23
+ const I18n = useTranslator();
24
+ return (<TouchableOpacity onPress={onPress} activeOpacity={0.9}>
25
+ <Card style={[styles.container, style]}>
26
+ <Icon name="truck"/>
27
+ <Text style={styles.text}>{I18n.t('Stock_Carrier')}</Text>
28
+ <Icon name="chevron-right"/>
29
+ </Card>
30
+ </TouchableOpacity>);
31
+ };
32
+ const styles = StyleSheet.create({
33
+ container: {
34
+ width: '60%',
35
+ flexDirection: 'row',
36
+ justifyContent: 'space-between',
37
+ alignItems: 'center',
38
+ paddingLeft: 15,
39
+ paddingRight: 15,
40
+ },
41
+ text: {
42
+ marginHorizontal: '5%',
43
+ },
44
+ });
45
+ export default CarrierCard;
46
+ //# sourceMappingURL=CarrierCard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CarrierCard.js","sourceRoot":"","sources":["../../../../src/components/molecules/CarrierCard/CarrierCard.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;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2
+ style?: any;
3
+ fromStockLocation: string;
4
+ toStockLocation: string;
5
+ isLockerCard?: boolean;
6
+ touchableFrom?: boolean;
7
+ editIconFrom?: boolean;
8
+ touchableTo?: boolean;
9
+ editIconTo?: boolean;
10
+ onPressFrom?: () => void;
11
+ onPressTo?: () => void;
12
+ }
13
+ declare const LocationsMoveCard: ({ style, fromStockLocation, toStockLocation, isLockerCard, touchableFrom, editIconFrom, touchableTo, editIconTo, onPressFrom, onPressTo, }: LocationsMoveCardProps) => JSX.Element;
14
+ export default LocationsMoveCard;
@@ -0,0 +1,82 @@
1
+ /*
2
+ * Axelor Business Solutions
3
+ *
4
+ * Copyright (C) 2023 Axelor (<http://axelor.com>).
5
+ *
6
+ * This program is free software: you can redistribute it and/or modify
7
+ * it under the terms of the GNU Affero General Public License, version 3,
8
+ * as published by the Free Software Foundation.
9
+ *
10
+ * This program is distributed in the hope that it will be useful,
11
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ * GNU Affero General Public License for more details.
14
+ *
15
+ * You should have received a copy of the GNU Affero General Public License
16
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
17
+ */
18
+ import React from 'react';
19
+ import { StyleSheet, TouchableOpacity, View, Dimensions } from 'react-native';
20
+ import { Icon, Text, useThemeColor } from '@axelor/aos-mobile-ui';
21
+ import { useTranslator } from '@axelor/aos-mobile-core';
22
+ const LocationsMoveCard = ({ style, fromStockLocation, toStockLocation, isLockerCard = false, touchableFrom = false, editIconFrom = false, touchableTo = false, editIconTo = false, onPressFrom = () => { }, onPressTo = () => { }, }) => {
23
+ const Colors = useThemeColor();
24
+ const I18n = useTranslator();
25
+ return (<View style={[styles.container, style]}>
26
+ <View style={styles.card}>
27
+ <TouchableOpacity onPress={onPressFrom} activeOpacity={0.9} style={styles.editableCard} disabled={!touchableFrom}>
28
+ <View style={styles.editableText}>
29
+ {isLockerCard && (<Text style={styles.text}>{I18n.t('Stock_FromLocker')}</Text>)}
30
+ <Text numberOfLines={3} style={styles.text}>
31
+ {fromStockLocation}
32
+ </Text>
33
+ </View>
34
+ {editIconFrom && <Icon name="pencil-alt" size={14}/>}
35
+ </TouchableOpacity>
36
+ </View>
37
+ <Icon name="chevron-right" color={Colors.primaryColor.background} size={Dimensions.get('window').width * 0.05} style={styles.icon}/>
38
+ <View style={styles.card}>
39
+ <TouchableOpacity onPress={onPressTo} activeOpacity={0.9} style={styles.editableCard} disabled={!touchableTo}>
40
+ <View style={styles.editableText}>
41
+ {isLockerCard && (<Text style={styles.text}>{I18n.t('Stock_ToLocker')}</Text>)}
42
+ <Text numberOfLines={3} style={styles.text}>
43
+ {toStockLocation}
44
+ </Text>
45
+ </View>
46
+ {editIconTo && <Icon name="pencil-alt" size={14}/>}
47
+ </TouchableOpacity>
48
+ </View>
49
+ </View>);
50
+ };
51
+ const styles = StyleSheet.create({
52
+ container: {
53
+ flexDirection: 'row',
54
+ justifyContent: 'center',
55
+ alignItems: 'center',
56
+ width: '100%',
57
+ },
58
+ card: {
59
+ flexDirection: 'row',
60
+ justifyContent: 'center',
61
+ alignItems: 'center',
62
+ width: Dimensions.get('window').width * 0.41,
63
+ },
64
+ editableCard: {
65
+ flexDirection: 'row',
66
+ alignItems: 'center',
67
+ },
68
+ text: {
69
+ fontSize: 16,
70
+ fontWeight: 'bold',
71
+ },
72
+ editableText: {
73
+ flexDirection: 'column',
74
+ alignItems: 'center',
75
+ marginHorizontal: '2%',
76
+ },
77
+ icon: {
78
+ marginHorizontal: '4%',
79
+ },
80
+ });
81
+ export default LocationsMoveCard;
82
+ //# sourceMappingURL=LocationsMoveCard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LocationsMoveCard.js","sourceRoot":"","sources":["../../../../src/components/molecules/LocationsMoveCard/LocationsMoveCard.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B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AAE,IAAI,CACN;UAAA,CAAC,UAAU,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,EAAG,CACrD;QAAA,EAAE,gBAAgB,CACpB;MAAA,EAAE,IAAI,CACR;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,SAAS,EAAE;QACT,aAAa,EAAE,KAAK;QACpB,cAAc,EAAE,QAAQ;QACxB,UAAU,EAAE,QAAQ;QACpB,KAAK,EAAE,MAAM;KACd;IACD,IAAI,EAAE;QACJ,aAAa,EAAE,KAAK;QACpB,cAAc,EAAE,QAAQ;QACxB,UAAU,EAAE,QAAQ;QACpB,KAAK,EAAE,UAAU,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,KAAK,GAAG,IAAI;KAC7C;IACD,YAAY,EAAE;QACZ,aAAa,EAAE,KAAK;QACpB,UAAU,EAAE,QAAQ;KACrB;IACD,IAAI,EAAE;QACJ,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE,MAAM;KACnB;IACD,YAAY,EAAE;QACZ,aAAa,EAAE,QAAQ;QACvB,UAAU,EAAE,QAAQ;QACpB,gBAAgB,EAAE,IAAI;KACvB;IACD,IAAI,EAAE;QACJ,gBAAgB,EAAE,IAAI;KACvB;CACF,CAAC,CAAC;AAEH,eAAe,iBAAiB,CAAC"}
@@ -0,0 +1,7 @@
1
+ interface ProductCardDetailsProps {
2
+ style?: any;
3
+ children: any;
4
+ onPress: () => void;
5
+ }
6
+ declare const ProductCardDetails: ({ style, children, onPress, }: ProductCardDetailsProps) => JSX.Element;
7
+ export default ProductCardDetails;
@@ -0,0 +1,42 @@
1
+ /*
2
+ * Axelor Business Solutions
3
+ *
4
+ * Copyright (C) 2023 Axelor (<http://axelor.com>).
5
+ *
6
+ * This program is free software: you can redistribute it and/or modify
7
+ * it under the terms of the GNU Affero General Public License, version 3,
8
+ * as published by the Free Software Foundation.
9
+ *
10
+ * This program is distributed in the hope that it will be useful,
11
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ * GNU Affero General Public License for more details.
14
+ *
15
+ * You should have received a copy of the GNU Affero General Public License
16
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
17
+ */
18
+ import React from 'react';
19
+ import { StyleSheet, TouchableOpacity, View } from 'react-native';
20
+ import { Icon } from '@axelor/aos-mobile-ui';
21
+ const ProductCardDetails = ({ style, children, onPress, }) => {
22
+ return (<TouchableOpacity onPress={onPress} activeOpacity={0.9}>
23
+ <View style={[styles.container, style]}>
24
+ <View style={styles.textContainer}>{children}</View>
25
+ <Icon name="chevron-right" size={20}/>
26
+ </View>
27
+ </TouchableOpacity>);
28
+ };
29
+ const styles = StyleSheet.create({
30
+ container: {
31
+ flexDirection: 'row',
32
+ justifyContent: 'center',
33
+ alignItems: 'center',
34
+ },
35
+ textContainer: {
36
+ width: '80%',
37
+ flexDirection: 'column',
38
+ justifyContent: 'space-between',
39
+ },
40
+ });
41
+ export default ProductCardDetails;
42
+ //# sourceMappingURL=ProductCardDetails.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProductCardDetails.js","sourceRoot":"","sources":["../../../../src/components/molecules/ProductCardDetails/ProductCardDetails.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,UAAU,EAAE,gBAAgB,EAAE,IAAI,EAAC,MAAM,cAAc,CAAC;AAChE,OAAO,EAAC,IAAI,EAAC,MAAM,uBAAuB,CAAC;AAQ3C,MAAM,kBAAkB,GAAG,CAAC,EAC1B,KAAK,EACL,QAAQ,EACR,OAAO,GACiB,EAAE,EAAE;IAC5B,OAAO,CACL,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC,aAAa,CAAC,CAAC,GAAG,CAAC,CACrD;MAAA,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC,CACrC;QAAA,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,IAAI,CACnD;QAAA,CAAC,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,EACtC;MAAA,EAAE,IAAI,CACR;IAAA,EAAE,gBAAgB,CAAC,CACpB,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,SAAS,EAAE;QACT,aAAa,EAAE,KAAK;QACpB,cAAc,EAAE,QAAQ;QACxB,UAAU,EAAE,QAAQ;KACrB;IACD,aAAa,EAAE;QACb,KAAK,EAAE,KAAK;QACZ,aAAa,EAAE,QAAQ;QACvB,cAAc,EAAE,eAAe;KAChC;CACF,CAAC,CAAC;AAEH,eAAe,kBAAkB,CAAC"}
@@ -0,0 +1,10 @@
1
+ interface StockCorrectionCardProps {
2
+ style?: any;
3
+ status: number;
4
+ productFullname: string;
5
+ stockLocation: string;
6
+ date: string;
7
+ onPress: () => void;
8
+ }
9
+ declare const StockCorrectionCard: ({ style, status, productFullname, stockLocation, date, onPress, }: StockCorrectionCardProps) => JSX.Element;
10
+ export default StockCorrectionCard;
@@ -0,0 +1,75 @@
1
+ /*
2
+ * Axelor Business Solutions
3
+ *
4
+ * Copyright (C) 2023 Axelor (<http://axelor.com>).
5
+ *
6
+ * This program is free software: you can redistribute it and/or modify
7
+ * it under the terms of the GNU Affero General Public License, version 3,
8
+ * as published by the Free Software Foundation.
9
+ *
10
+ * This program is distributed in the hope that it will be useful,
11
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ * GNU Affero General Public License for more details.
14
+ *
15
+ * You should have received a copy of the GNU Affero General Public License
16
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
17
+ */
18
+ import React, { useMemo } from 'react';
19
+ import { StyleSheet, TouchableOpacity, View } from 'react-native';
20
+ import { Card, Icon, Text, useThemeColor } from '@axelor/aos-mobile-ui';
21
+ import { formatDate, useTranslator } from '@axelor/aos-mobile-core';
22
+ import StockCorrection from '../../../types/stock-corrrection';
23
+ const StockCorrectionCard = ({ style, status, productFullname, stockLocation, date, onPress, }) => {
24
+ const Colors = useThemeColor();
25
+ const I18n = useTranslator();
26
+ const borderStyle = useMemo(() => {
27
+ return getStyles(StockCorrection.getStatusColor(status, Colors).background)
28
+ ?.border;
29
+ }, [Colors, status]);
30
+ return (<TouchableOpacity onPress={onPress} activeOpacity={0.9}>
31
+ <Card style={[styles.container, borderStyle, style]}>
32
+ <View style={styles.textContainer}>
33
+ <Text style={styles.txtImportant}>{productFullname}</Text>
34
+ <Text style={styles.txtDetails}>{stockLocation}</Text>
35
+ {status === StockCorrection.status.Draft ? (<Text style={[styles.txtDetails, styles.creationDate]}>
36
+ {`${I18n.t('Base_CreatedOn')} ${formatDate(date, I18n.t('Base_DateFormat'))}`}
37
+ </Text>) : (<Text style={styles.txtDetails}>
38
+ {`${I18n.t('Base_ValidatedOn')} ${formatDate(date, I18n.t('Base_DateFormat'))}`}
39
+ </Text>)}
40
+ </View>
41
+ <Icon name="chevron-right" color={Colors.secondaryColor.background_light} size={20}/>
42
+ </Card>
43
+ </TouchableOpacity>);
44
+ };
45
+ const getStyles = color => StyleSheet.create({
46
+ border: {
47
+ borderLeftWidth: 7,
48
+ borderLeftColor: color,
49
+ },
50
+ });
51
+ const styles = StyleSheet.create({
52
+ container: {
53
+ flexDirection: 'row',
54
+ justifyContent: 'space-between',
55
+ alignItems: 'center',
56
+ paddingRight: 15,
57
+ },
58
+ textContainer: {
59
+ width: '90%',
60
+ flexDirection: 'column',
61
+ justifyContent: 'space-between',
62
+ },
63
+ txtImportant: {
64
+ fontSize: 18,
65
+ fontWeight: 'bold',
66
+ },
67
+ txtDetails: {
68
+ fontSize: 14,
69
+ },
70
+ creationDate: {
71
+ fontStyle: 'italic',
72
+ },
73
+ });
74
+ export default StockCorrectionCard;
75
+ //# sourceMappingURL=StockCorrectionCard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StockCorrectionCard.js","sourceRoot":"","sources":["../../../../src/components/molecules/StockCorrectionCard/StockCorrectionCard.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,OAAO,EAAC,MAAM,OAAO,CAAC;AACrC,OAAO,EAAC,UAAU,EAAE,gBAAgB,EAAE,IAAI,EAAC,MAAM,cAAc,CAAC;AAChE,OAAO,EAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,aAAa,EAAC,MAAM,uBAAuB,CAAC;AACtE,OAAO,EAAC,UAAU,EAAE,aAAa,EAAC,MAAM,yBAAyB,CAAC;AAClE,OAAO,eAAe,MAAM,kCAAkC,CAAC;AAW/D,MAAM,mBAAmB,GAAG,CAAC,EAC3B,KAAK,EACL,MAAM,EACN,eAAe,EACf,aAAa,EACb,IAAI,EACJ,OAAO,GACkB,EAAE,EAAE;IAC7B,MAAM,MAAM,GAAG,aAAa,EAAE,CAAC;IAC/B,MAAM,IAAI,GAAG,aAAa,EAAE,CAAC;IAC7B,MAAM,WAAW,GAAG,OAAO,CAAC,GAAG,EAAE;QAC/B,OAAO,SAAS,CAAC,eAAe,CAAC,cAAc,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,UAAU,CAAC;YACzE,EAAE,MAAM,CAAC;IACb,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IAErB,OAAO,CACL,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC,aAAa,CAAC,CAAC,GAAG,CAAC,CAC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B,CAAC,CACpB,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,SAAS,GAAG,KAAK,CAAC,EAAE,CACxB,UAAU,CAAC,MAAM,CAAC;IAChB,MAAM,EAAE;QACN,eAAe,EAAE,CAAC;QAClB,eAAe,EAAE,KAAK;KACvB;CACF,CAAC,CAAC;AAEL,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,SAAS,EAAE;QACT,aAAa,EAAE,KAAK;QACpB,cAAc,EAAE,eAAe;QAC/B,UAAU,EAAE,QAAQ;QACpB,YAAY,EAAE,EAAE;KACjB;IACD,aAAa,EAAE;QACb,KAAK,EAAE,KAAK;QACZ,aAAa,EAAE,QAAQ;QACvB,cAAc,EAAE,eAAe;KAChC;IACD,YAAY,EAAE;QACZ,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE,MAAM;KACnB;IACD,UAAU,EAAE;QACV,QAAQ,EAAE,EAAE;KACb;IACD,YAAY,EAAE;QACZ,SAAS,EAAE,QAAQ;KACpB;CACF,CAAC,CAAC;AAEH,eAAe,mBAAmB,CAAC"}
@@ -0,0 +1,4 @@
1
+ export { default as CarrierCard } from "./CarrierCard/CarrierCard";
2
+ export { default as LocationsMoveCard } from "./LocationsMoveCard/LocationsMoveCard";
3
+ export { default as ProductCardDetails } from "./ProductCardDetails/ProductCardDetails";
4
+ export { default as StockCorrectionCard } from "./StockCorrectionCard/StockCorrectionCard";
@@ -0,0 +1,22 @@
1
+ /*
2
+ * Axelor Business Solutions
3
+ *
4
+ * Copyright (C) 2023 Axelor (<http://axelor.com>).
5
+ *
6
+ * This program is free software: you can redistribute it and/or modify
7
+ * it under the terms of the GNU Affero General Public License, version 3,
8
+ * as published by the Free Software Foundation.
9
+ *
10
+ * This program is distributed in the hope that it will be useful,
11
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ * GNU Affero General Public License for more details.
14
+ *
15
+ * You should have received a copy of the GNU Affero General Public License
16
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
17
+ */
18
+ export { default as CarrierCard } from './CarrierCard/CarrierCard';
19
+ export { default as LocationsMoveCard } from './LocationsMoveCard/LocationsMoveCard';
20
+ export { default as ProductCardDetails } from './ProductCardDetails/ProductCardDetails';
21
+ export { default as StockCorrectionCard } from './StockCorrectionCard/StockCorrectionCard';
22
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/molecules/index.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,OAAO,IAAI,WAAW,EAAC,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAC,OAAO,IAAI,iBAAiB,EAAC,MAAM,uCAAuC,CAAC;AACnF,OAAO,EAAC,OAAO,IAAI,kBAAkB,EAAC,MAAM,yCAAyC,CAAC;AACtF,OAAO,EAAC,OAAO,IAAI,mBAAmB,EAAC,MAAM,2CAA2C,CAAC"}
@@ -0,0 +1,6 @@
1
+ interface CardStockIndicatorProps {
2
+ title: string;
3
+ number: string;
4
+ }
5
+ declare const CardStockIndicator: ({ title, number }: CardStockIndicatorProps) => JSX.Element;
6
+ export default CardStockIndicator;
@@ -0,0 +1,72 @@
1
+ /*
2
+ * Axelor Business Solutions
3
+ *
4
+ * Copyright (C) 2023 Axelor (<http://axelor.com>).
5
+ *
6
+ * This program is free software: you can redistribute it and/or modify
7
+ * it under the terms of the GNU Affero General Public License, version 3,
8
+ * as published by the Free Software Foundation.
9
+ *
10
+ * This program is distributed in the hope that it will be useful,
11
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ * GNU Affero General Public License for more details.
14
+ *
15
+ * You should have received a copy of the GNU Affero General Public License
16
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
17
+ */
18
+ import React, { useState } from 'react';
19
+ import { View, StyleSheet, TouchableOpacity } from 'react-native';
20
+ import { Card, PopUpOneButton, Text } from '@axelor/aos-mobile-ui';
21
+ import { useTranslator } from '@axelor/aos-mobile-core';
22
+ const CardStockIndicator = ({ title, number }) => {
23
+ const [popUp, setPopUp] = useState(false);
24
+ const I18n = useTranslator();
25
+ const handlePress = () => {
26
+ setPopUp(true);
27
+ };
28
+ return (<Card style={styles.card}>
29
+ <PopUpOneButton visible={popUp} data={number} title={title} btnTitle={I18n.t('Auth_Close')} onPress={() => setPopUp(!popUp)}/>
30
+ <TouchableOpacity activeOpacity={0.9} onPress={handlePress}>
31
+ <View style={styles.infos}>
32
+ <Text style={styles.text} numberOfLines={2}>
33
+ {title}
34
+ </Text>
35
+ <Text style={styles.qty} adjustsFontSizeToFit={true}>
36
+ {number}
37
+ </Text>
38
+ </View>
39
+ </TouchableOpacity>
40
+ </Card>);
41
+ };
42
+ const styles = StyleSheet.create({
43
+ card: {
44
+ paddingHorizontal: 0,
45
+ paddingVertical: 8,
46
+ paddingRight: 4,
47
+ paddingLeft: 4,
48
+ flexDirection: 'column',
49
+ alignItems: 'center',
50
+ justifyContent: 'space-between',
51
+ marginHorizontal: '1%',
52
+ marginVertical: '1%',
53
+ width: '28.2%',
54
+ height: 90,
55
+ },
56
+ infos: {
57
+ flex: 1,
58
+ },
59
+ text: {
60
+ flex: 1,
61
+ fontSize: 12,
62
+ textAlign: 'center',
63
+ },
64
+ qty: {
65
+ flex: 1,
66
+ fontSize: 24,
67
+ fontWeight: 'bold',
68
+ textAlign: 'center',
69
+ },
70
+ });
71
+ export default CardStockIndicator;
72
+ //# sourceMappingURL=CardStockIndicator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CardStockIndicator.js","sourceRoot":"","sources":["../../../../src/components/organisms/CardStockIndicator/CardStockIndicator.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,QAAQ,EAAC,MAAM,O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AM,CAAC,GAAG,CAAC,CAAC,oBAAoB,CAAC,CAAC,IAAI,CAAC,CAClD;YAAA,CAAC,MAAM,CACT;UAAA,EAAE,IAAI,CACR;QAAA,EAAE,IAAI,CACR;MAAA,EAAE,gBAAgB,CACpB;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,IAAI,EAAE;QACJ,iBAAiB,EAAE,CAAC;QACpB,eAAe,EAAE,CAAC;QAClB,YAAY,EAAE,CAAC;QACf,WAAW,EAAE,CAAC;QACd,aAAa,EAAE,QAAQ;QACvB,UAAU,EAAE,QAAQ;QACpB,cAAc,EAAE,eAAe;QAC/B,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE,IAAI;QACpB,KAAK,EAAE,OAAO;QACd,MAAM,EAAE,EAAE;KACX;IACD,KAAK,EAAE;QACL,IAAI,EAAE,CAAC;KACR;IACD,IAAI,EAAE;QACJ,IAAI,EAAE,CAAC;QACP,QAAQ,EAAE,EAAE;QACZ,SAAS,EAAE,QAAQ;KACpB;IACD,GAAG,EAAE;QACH,IAAI,EAAE,CAAC;QACP,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE,MAAM;QAClB,SAAS,EAAE,QAAQ;KACpB;CACF,CAAC,CAAC;AAEH,eAAe,kBAAkB,CAAC"}
@@ -0,0 +1,12 @@
1
+ interface CustomerDeliveryCardProps {
2
+ style?: any;
3
+ reference: string;
4
+ status: number;
5
+ availability: number;
6
+ client: string;
7
+ origin: string;
8
+ date: string;
9
+ onPress: () => void;
10
+ }
11
+ declare const CustomerDeliveryCard: ({ style, reference, status, availability, client, origin, date, onPress, }: CustomerDeliveryCardProps) => JSX.Element;
12
+ export default CustomerDeliveryCard;