@scrumble-nl/gatherer-frontend 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 (289) hide show
  1. package/README.md +159 -0
  2. package/lib/commonjs/context/picker-context.js +85 -0
  3. package/lib/commonjs/context/picker-context.js.map +1 -0
  4. package/lib/commonjs/context/scan-context.js +20 -0
  5. package/lib/commonjs/context/scan-context.js.map +1 -0
  6. package/lib/commonjs/hooks/use-instance.js +28 -0
  7. package/lib/commonjs/hooks/use-instance.js.map +1 -0
  8. package/lib/commonjs/hooks/use-pick-item-switch.js +53 -0
  9. package/lib/commonjs/hooks/use-pick-item-switch.js.map +1 -0
  10. package/lib/commonjs/hooks/use-picker.js +13 -0
  11. package/lib/commonjs/hooks/use-picker.js.map +1 -0
  12. package/lib/commonjs/hooks/use-scanner.js +35 -0
  13. package/lib/commonjs/hooks/use-scanner.js.map +1 -0
  14. package/lib/commonjs/index.js +41 -0
  15. package/lib/commonjs/index.js.map +1 -0
  16. package/lib/commonjs/lang/en/components/pick-list.js +14 -0
  17. package/lib/commonjs/lang/en/components/pick-list.js.map +1 -0
  18. package/lib/commonjs/lang/en/components/picker.js +16 -0
  19. package/lib/commonjs/lang/en/components/picker.js.map +1 -0
  20. package/lib/commonjs/lang/en/english.js +16 -0
  21. package/lib/commonjs/lang/en/english.js.map +1 -0
  22. package/lib/commonjs/lang/nl/components/pick-list.js +14 -0
  23. package/lib/commonjs/lang/nl/components/pick-list.js.map +1 -0
  24. package/lib/commonjs/lang/nl/components/picker.js +16 -0
  25. package/lib/commonjs/lang/nl/components/picker.js.map +1 -0
  26. package/lib/commonjs/lang/nl/dutch.js +16 -0
  27. package/lib/commonjs/lang/nl/dutch.js.map +1 -0
  28. package/lib/commonjs/lang/translations.js +15 -0
  29. package/lib/commonjs/lang/translations.js.map +1 -0
  30. package/lib/commonjs/pick-list/partials/empty-list.js +23 -0
  31. package/lib/commonjs/pick-list/partials/empty-list.js.map +1 -0
  32. package/lib/commonjs/pick-list/partials/pick-group-item.js +45 -0
  33. package/lib/commonjs/pick-list/partials/pick-group-item.js.map +1 -0
  34. package/lib/commonjs/pick-list/partials/search.js +64 -0
  35. package/lib/commonjs/pick-list/partials/search.js.map +1 -0
  36. package/lib/commonjs/pick-list/pick-list.js +80 -0
  37. package/lib/commonjs/pick-list/pick-list.js.map +1 -0
  38. package/lib/commonjs/pick-list/styles/empty-list-styles.js +19 -0
  39. package/lib/commonjs/pick-list/styles/empty-list-styles.js.map +1 -0
  40. package/lib/commonjs/pick-list/styles/pick-group-item-styles.js +24 -0
  41. package/lib/commonjs/pick-list/styles/pick-group-item-styles.js.map +1 -0
  42. package/lib/commonjs/pick-list/styles/search-styles.js +34 -0
  43. package/lib/commonjs/pick-list/styles/search-styles.js.map +1 -0
  44. package/lib/commonjs/picker/partials/modal/pick-modal.js +44 -0
  45. package/lib/commonjs/picker/partials/modal/pick-modal.js.map +1 -0
  46. package/lib/commonjs/picker/partials/modal/pick-quantity-select.js +132 -0
  47. package/lib/commonjs/picker/partials/modal/pick-quantity-select.js.map +1 -0
  48. package/lib/commonjs/picker/partials/pick-amount.js +33 -0
  49. package/lib/commonjs/picker/partials/pick-amount.js.map +1 -0
  50. package/lib/commonjs/picker/partials/product-info.js +38 -0
  51. package/lib/commonjs/picker/partials/product-info.js.map +1 -0
  52. package/lib/commonjs/picker/partials/progress-bar.js +37 -0
  53. package/lib/commonjs/picker/partials/progress-bar.js.map +1 -0
  54. package/lib/commonjs/picker/picker.js +67 -0
  55. package/lib/commonjs/picker/picker.js.map +1 -0
  56. package/lib/commonjs/picker/styles/pick-amount-styles.js +31 -0
  57. package/lib/commonjs/picker/styles/pick-amount-styles.js.map +1 -0
  58. package/lib/commonjs/picker/styles/pick-modal-styles.js +81 -0
  59. package/lib/commonjs/picker/styles/pick-modal-styles.js.map +1 -0
  60. package/lib/commonjs/picker/styles/picker-styles.js +14 -0
  61. package/lib/commonjs/picker/styles/picker-styles.js.map +1 -0
  62. package/lib/commonjs/picker/styles/product-info-styles.js +27 -0
  63. package/lib/commonjs/picker/styles/product-info-styles.js.map +1 -0
  64. package/lib/commonjs/picker/styles/progress-bar-styles.js +19 -0
  65. package/lib/commonjs/picker/styles/progress-bar-styles.js.map +1 -0
  66. package/lib/commonjs/shared/api/api-urls.js +22 -0
  67. package/lib/commonjs/shared/api/api-urls.js.map +1 -0
  68. package/lib/commonjs/shared/badge/badge.js +44 -0
  69. package/lib/commonjs/shared/badge/badge.js.map +1 -0
  70. package/lib/commonjs/shared/badge/styles/badge-styles.js +24 -0
  71. package/lib/commonjs/shared/badge/styles/badge-styles.js.map +1 -0
  72. package/lib/commonjs/shared/constants.js +37 -0
  73. package/lib/commonjs/shared/constants.js.map +1 -0
  74. package/lib/commonjs/shared/default-pick-group-item.js +22 -0
  75. package/lib/commonjs/shared/default-pick-group-item.js.map +1 -0
  76. package/lib/commonjs/shared/layout/data-column.js +26 -0
  77. package/lib/commonjs/shared/layout/data-column.js.map +1 -0
  78. package/lib/commonjs/shared/layout/data-format.js +22 -0
  79. package/lib/commonjs/shared/layout/data-format.js.map +1 -0
  80. package/lib/commonjs/shared/layout/data-row.js +36 -0
  81. package/lib/commonjs/shared/layout/data-row.js.map +1 -0
  82. package/lib/commonjs/shared/layout/styles/layout-styles.js +26 -0
  83. package/lib/commonjs/shared/layout/styles/layout-styles.js.map +1 -0
  84. package/lib/commonjs/shared/press-button/press-button.js +34 -0
  85. package/lib/commonjs/shared/press-button/press-button.js.map +1 -0
  86. package/lib/commonjs/types/badge/badge.d.js +2 -0
  87. package/lib/commonjs/types/badge/badge.d.js.map +1 -0
  88. package/lib/commonjs/types/config/config.d.js +2 -0
  89. package/lib/commonjs/types/config/config.d.js.map +1 -0
  90. package/lib/commonjs/types/control/control.d.js +2 -0
  91. package/lib/commonjs/types/control/control.d.js.map +1 -0
  92. package/lib/commonjs/types/pick-group/pick-group.d.js +2 -0
  93. package/lib/commonjs/types/pick-group/pick-group.d.js.map +1 -0
  94. package/lib/commonjs/types/pick-group/search-params.d.js +2 -0
  95. package/lib/commonjs/types/pick-group/search-params.d.js.map +1 -0
  96. package/lib/commonjs/types/pick-item/pick-item.d.js +2 -0
  97. package/lib/commonjs/types/pick-item/pick-item.d.js.map +1 -0
  98. package/lib/commonjs/types/scanner/scanner.d.js +2 -0
  99. package/lib/commonjs/types/scanner/scanner.d.js.map +1 -0
  100. package/lib/module/context/picker-context.js +74 -0
  101. package/lib/module/context/picker-context.js.map +1 -0
  102. package/lib/module/context/scan-context.js +10 -0
  103. package/lib/module/context/scan-context.js.map +1 -0
  104. package/lib/module/hooks/use-instance.js +20 -0
  105. package/lib/module/hooks/use-instance.js.map +1 -0
  106. package/lib/module/hooks/use-pick-item-switch.js +46 -0
  107. package/lib/module/hooks/use-pick-item-switch.js.map +1 -0
  108. package/lib/module/hooks/use-picker.js +6 -0
  109. package/lib/module/hooks/use-picker.js.map +1 -0
  110. package/lib/module/hooks/use-scanner.js +28 -0
  111. package/lib/module/hooks/use-scanner.js.map +1 -0
  112. package/lib/module/index.js +6 -0
  113. package/lib/module/index.js.map +1 -0
  114. package/lib/module/lang/en/components/pick-list.js +7 -0
  115. package/lib/module/lang/en/components/pick-list.js.map +1 -0
  116. package/lib/module/lang/en/components/picker.js +9 -0
  117. package/lib/module/lang/en/components/picker.js.map +1 -0
  118. package/lib/module/lang/en/english.js +9 -0
  119. package/lib/module/lang/en/english.js.map +1 -0
  120. package/lib/module/lang/nl/components/pick-list.js +7 -0
  121. package/lib/module/lang/nl/components/pick-list.js.map +1 -0
  122. package/lib/module/lang/nl/components/picker.js +9 -0
  123. package/lib/module/lang/nl/components/picker.js.map +1 -0
  124. package/lib/module/lang/nl/dutch.js +9 -0
  125. package/lib/module/lang/nl/dutch.js.map +1 -0
  126. package/lib/module/lang/translations.js +8 -0
  127. package/lib/module/lang/translations.js.map +1 -0
  128. package/lib/module/pick-list/partials/empty-list.js +15 -0
  129. package/lib/module/pick-list/partials/empty-list.js.map +1 -0
  130. package/lib/module/pick-list/partials/pick-group-item.js +37 -0
  131. package/lib/module/pick-list/partials/pick-group-item.js.map +1 -0
  132. package/lib/module/pick-list/partials/search.js +54 -0
  133. package/lib/module/pick-list/partials/search.js.map +1 -0
  134. package/lib/module/pick-list/pick-list.js +71 -0
  135. package/lib/module/pick-list/pick-list.js.map +1 -0
  136. package/lib/module/pick-list/styles/empty-list-styles.js +12 -0
  137. package/lib/module/pick-list/styles/empty-list-styles.js.map +1 -0
  138. package/lib/module/pick-list/styles/pick-group-item-styles.js +17 -0
  139. package/lib/module/pick-list/styles/pick-group-item-styles.js.map +1 -0
  140. package/lib/module/pick-list/styles/search-styles.js +27 -0
  141. package/lib/module/pick-list/styles/search-styles.js.map +1 -0
  142. package/lib/module/picker/partials/modal/pick-modal.js +36 -0
  143. package/lib/module/picker/partials/modal/pick-modal.js.map +1 -0
  144. package/lib/module/picker/partials/modal/pick-quantity-select.js +122 -0
  145. package/lib/module/picker/partials/modal/pick-quantity-select.js.map +1 -0
  146. package/lib/module/picker/partials/pick-amount.js +25 -0
  147. package/lib/module/picker/partials/pick-amount.js.map +1 -0
  148. package/lib/module/picker/partials/product-info.js +30 -0
  149. package/lib/module/picker/partials/product-info.js.map +1 -0
  150. package/lib/module/picker/partials/progress-bar.js +29 -0
  151. package/lib/module/picker/partials/progress-bar.js.map +1 -0
  152. package/lib/module/picker/picker.js +59 -0
  153. package/lib/module/picker/picker.js.map +1 -0
  154. package/lib/module/picker/styles/pick-amount-styles.js +24 -0
  155. package/lib/module/picker/styles/pick-amount-styles.js.map +1 -0
  156. package/lib/module/picker/styles/pick-modal-styles.js +74 -0
  157. package/lib/module/picker/styles/pick-modal-styles.js.map +1 -0
  158. package/lib/module/picker/styles/picker-styles.js +7 -0
  159. package/lib/module/picker/styles/picker-styles.js.map +1 -0
  160. package/lib/module/picker/styles/product-info-styles.js +20 -0
  161. package/lib/module/picker/styles/product-info-styles.js.map +1 -0
  162. package/lib/module/picker/styles/progress-bar-styles.js +12 -0
  163. package/lib/module/picker/styles/progress-bar-styles.js.map +1 -0
  164. package/lib/module/shared/api/api-urls.js +9 -0
  165. package/lib/module/shared/api/api-urls.js.map +1 -0
  166. package/lib/module/shared/badge/badge.js +36 -0
  167. package/lib/module/shared/badge/badge.js.map +1 -0
  168. package/lib/module/shared/badge/styles/badge-styles.js +17 -0
  169. package/lib/module/shared/badge/styles/badge-styles.js.map +1 -0
  170. package/lib/module/shared/constants.js +16 -0
  171. package/lib/module/shared/constants.js.map +1 -0
  172. package/lib/module/shared/default-pick-group-item.js +15 -0
  173. package/lib/module/shared/default-pick-group-item.js.map +1 -0
  174. package/lib/module/shared/layout/data-column.js +18 -0
  175. package/lib/module/shared/layout/data-column.js.map +1 -0
  176. package/lib/module/shared/layout/data-format.js +14 -0
  177. package/lib/module/shared/layout/data-format.js.map +1 -0
  178. package/lib/module/shared/layout/data-row.js +28 -0
  179. package/lib/module/shared/layout/data-row.js.map +1 -0
  180. package/lib/module/shared/layout/styles/layout-styles.js +19 -0
  181. package/lib/module/shared/layout/styles/layout-styles.js.map +1 -0
  182. package/lib/module/shared/press-button/press-button.js +25 -0
  183. package/lib/module/shared/press-button/press-button.js.map +1 -0
  184. package/lib/module/types/badge/badge.d.js +2 -0
  185. package/lib/module/types/badge/badge.d.js.map +1 -0
  186. package/lib/module/types/config/config.d.js +2 -0
  187. package/lib/module/types/config/config.d.js.map +1 -0
  188. package/lib/module/types/control/control.d.js +2 -0
  189. package/lib/module/types/control/control.d.js.map +1 -0
  190. package/lib/module/types/pick-group/pick-group.d.js +2 -0
  191. package/lib/module/types/pick-group/pick-group.d.js.map +1 -0
  192. package/lib/module/types/pick-group/search-params.d.js +2 -0
  193. package/lib/module/types/pick-group/search-params.d.js.map +1 -0
  194. package/lib/module/types/pick-item/pick-item.d.js +2 -0
  195. package/lib/module/types/pick-item/pick-item.d.js.map +1 -0
  196. package/lib/module/types/scanner/scanner.d.js +2 -0
  197. package/lib/module/types/scanner/scanner.d.js.map +1 -0
  198. package/lib/typescript/context/picker-context.d.ts +18 -0
  199. package/lib/typescript/context/scan-context.d.ts +11 -0
  200. package/lib/typescript/hooks/use-instance.d.ts +2 -0
  201. package/lib/typescript/hooks/use-pick-item-switch.d.ts +1 -0
  202. package/lib/typescript/hooks/use-picker.d.ts +2 -0
  203. package/lib/typescript/hooks/use-scanner.d.ts +3 -0
  204. package/lib/typescript/index.d.ts +5 -0
  205. package/lib/typescript/lang/en/components/pick-list.d.ts +6 -0
  206. package/lib/typescript/lang/en/components/picker.d.ts +8 -0
  207. package/lib/typescript/lang/en/english.d.ts +14 -0
  208. package/lib/typescript/lang/nl/components/pick-list.d.ts +6 -0
  209. package/lib/typescript/lang/nl/components/picker.d.ts +8 -0
  210. package/lib/typescript/lang/nl/dutch.d.ts +14 -0
  211. package/lib/typescript/lang/translations.d.ts +2 -0
  212. package/lib/typescript/pick-list/partials/empty-list.d.ts +5 -0
  213. package/lib/typescript/pick-list/partials/pick-group-item.d.ts +6 -0
  214. package/lib/typescript/pick-list/partials/search.d.ts +5 -0
  215. package/lib/typescript/pick-list/pick-list.d.ts +9 -0
  216. package/lib/typescript/pick-list/styles/empty-list-styles.d.ts +9 -0
  217. package/lib/typescript/pick-list/styles/pick-group-item-styles.d.ts +14 -0
  218. package/lib/typescript/pick-list/styles/search-styles.d.ts +24 -0
  219. package/lib/typescript/picker/partials/modal/pick-modal.d.ts +6 -0
  220. package/lib/typescript/picker/partials/modal/pick-quantity-select.d.ts +6 -0
  221. package/lib/typescript/picker/partials/pick-amount.d.ts +1 -0
  222. package/lib/typescript/picker/partials/product-info.d.ts +1 -0
  223. package/lib/typescript/picker/partials/progress-bar.d.ts +5 -0
  224. package/lib/typescript/picker/picker.d.ts +16 -0
  225. package/lib/typescript/picker/styles/pick-amount-styles.d.ts +21 -0
  226. package/lib/typescript/picker/styles/pick-modal-styles.d.ts +71 -0
  227. package/lib/typescript/picker/styles/picker-styles.d.ts +5 -0
  228. package/lib/typescript/picker/styles/product-info-styles.d.ts +17 -0
  229. package/lib/typescript/picker/styles/progress-bar-styles.d.ts +9 -0
  230. package/lib/typescript/shared/api/api-urls.d.ts +7 -0
  231. package/lib/typescript/shared/badge/badge.d.ts +6 -0
  232. package/lib/typescript/shared/badge/styles/badge-styles.d.ts +14 -0
  233. package/lib/typescript/shared/constants.d.ts +15 -0
  234. package/lib/typescript/shared/default-pick-group-item.d.ts +1 -0
  235. package/lib/typescript/shared/layout/data-column.d.ts +7 -0
  236. package/lib/typescript/shared/layout/data-format.d.ts +5 -0
  237. package/lib/typescript/shared/layout/data-row.d.ts +10 -0
  238. package/lib/typescript/shared/layout/styles/layout-styles.d.ts +16 -0
  239. package/lib/typescript/shared/press-button/press-button.d.ts +8 -0
  240. package/package.json +133 -0
  241. package/src/context/picker-context.tsx +117 -0
  242. package/src/context/scan-context.tsx +16 -0
  243. package/src/hooks/use-instance.tsx +23 -0
  244. package/src/hooks/use-pick-item-switch.tsx +55 -0
  245. package/src/hooks/use-picker.tsx +8 -0
  246. package/src/hooks/use-scanner.tsx +33 -0
  247. package/src/index.tsx +5 -0
  248. package/src/lang/en/components/pick-list.ts +6 -0
  249. package/src/lang/en/components/picker.ts +8 -0
  250. package/src/lang/en/english.ts +9 -0
  251. package/src/lang/nl/components/pick-list.ts +6 -0
  252. package/src/lang/nl/components/picker.ts +8 -0
  253. package/src/lang/nl/dutch.ts +9 -0
  254. package/src/lang/translations.ts +9 -0
  255. package/src/pick-list/partials/empty-list.tsx +18 -0
  256. package/src/pick-list/partials/pick-group-item.tsx +45 -0
  257. package/src/pick-list/partials/search.tsx +52 -0
  258. package/src/pick-list/pick-list.tsx +92 -0
  259. package/src/pick-list/styles/empty-list-styles.ts +13 -0
  260. package/src/pick-list/styles/pick-group-item-styles.ts +18 -0
  261. package/src/pick-list/styles/search-styles.ts +28 -0
  262. package/src/picker/partials/modal/pick-modal.tsx +31 -0
  263. package/src/picker/partials/modal/pick-quantity-select.tsx +129 -0
  264. package/src/picker/partials/pick-amount.tsx +23 -0
  265. package/src/picker/partials/product-info.tsx +29 -0
  266. package/src/picker/partials/progress-bar.tsx +39 -0
  267. package/src/picker/picker.tsx +67 -0
  268. package/src/picker/styles/pick-amount-styles.ts +25 -0
  269. package/src/picker/styles/pick-modal-styles.ts +75 -0
  270. package/src/picker/styles/picker-styles.ts +7 -0
  271. package/src/picker/styles/product-info-styles.ts +21 -0
  272. package/src/picker/styles/progress-bar-styles.ts +13 -0
  273. package/src/shared/api/api-urls.ts +9 -0
  274. package/src/shared/badge/badge.tsx +45 -0
  275. package/src/shared/badge/styles/badge-styles.ts +18 -0
  276. package/src/shared/constants.ts +16 -0
  277. package/src/shared/default-pick-group-item.ts +14 -0
  278. package/src/shared/layout/data-column.tsx +22 -0
  279. package/src/shared/layout/data-format.tsx +16 -0
  280. package/src/shared/layout/data-row.tsx +27 -0
  281. package/src/shared/layout/styles/layout-styles.ts +20 -0
  282. package/src/shared/press-button/press-button.tsx +30 -0
  283. package/src/types/badge/badge.d.ts +1 -0
  284. package/src/types/config/config.d.ts +17 -0
  285. package/src/types/control/control.d.ts +6 -0
  286. package/src/types/pick-group/pick-group.d.ts +9 -0
  287. package/src/types/pick-group/search-params.d.ts +4 -0
  288. package/src/types/pick-item/pick-item.d.ts +14 -0
  289. package/src/types/scanner/scanner.d.ts +4 -0
@@ -0,0 +1 @@
1
+ {"version":3,"names":["StyleSheet","BIG_FONT","BLACK","DANGER_COLOR","TEXT_COLOR","WHITE","styles","create","background","flex","backgroundColor","justifyContent","alignItems","container","width","marginLeft","marginRight","borderRadius","innerContainer","padding","flexDirection","title","textAlign","marginBottom","fontWeight","fontSize","amountSelectRow","button","overflow","borderWidth","borderColor","paddingVertical","subtractButton","borderTopLeftRadius","borderBottomLeftRadius","addButton","borderTopRightRadius","borderBottomRightRadius","amountText","pickButtonContainer","marginTop","error","color","pickButton","paddingHorizontal"],"sources":["pick-modal-styles.ts"],"sourcesContent":["import {StyleSheet} from 'react-native';\n\nimport {BIG_FONT, BLACK, DANGER_COLOR, TEXT_COLOR, WHITE} from '../../shared/constants';\n\nexport const styles = StyleSheet.create({\n background: {\n flex: 1,\n backgroundColor: 'rgba(0, 0, 0, 0.3)',\n justifyContent: 'center',\n alignItems: 'center',\n },\n container: {\n width: '100%',\n marginLeft: 10,\n marginRight: 10,\n backgroundColor: WHITE,\n borderRadius: 3,\n },\n innerContainer: {\n padding: 10,\n flex: 1,\n flexDirection: 'column',\n },\n title: {\n textAlign: 'center',\n marginBottom: 20,\n fontWeight: 'bold',\n fontSize: BIG_FONT,\n },\n amountSelectRow: {\n width: '100%',\n flexDirection: 'row',\n },\n button: {\n flex: 1,\n overflow: 'hidden',\n alignItems: 'center',\n justifyContent: 'center',\n backgroundColor: BLACK,\n borderWidth: 1,\n borderColor: BLACK,\n paddingVertical: 15,\n },\n subtractButton: {\n borderTopLeftRadius: 3,\n borderBottomLeftRadius: 3,\n },\n addButton: {\n borderTopRightRadius: 3,\n borderBottomRightRadius: 3,\n },\n amountText: {\n textAlign: 'center',\n borderWidth: 1,\n borderColor: BLACK,\n flex: 1,\n justifyContent: 'center',\n paddingVertical: 15,\n fontSize: BIG_FONT,\n fontWeight: '500',\n },\n pickButtonContainer: {\n marginTop: 'auto',\n },\n error: {\n textAlign: 'center',\n color: DANGER_COLOR,\n },\n pickButton: {\n borderRadius: 50,\n paddingHorizontal: 40,\n paddingVertical: 15,\n backgroundColor: TEXT_COLOR,\n },\n});\n"],"mappings":"AAAA,SAAQA,UAAU,QAAO,cAAc;AAEvC,SAAQC,QAAQ,EAAEC,KAAK,EAAEC,YAAY,EAAEC,UAAU,EAAEC,KAAK,QAAO,wBAAwB;AAEvF,OAAO,MAAMC,MAAM,GAAGN,UAAU,CAACO,MAAM,CAAC;EACpCC,UAAU,EAAE;IACRC,IAAI,EAAE,CAAC;IACPC,eAAe,EAAE,oBAAoB;IACrCC,cAAc,EAAE,QAAQ;IACxBC,UAAU,EAAE;EAChB,CAAC;EACDC,SAAS,EAAE;IACPC,KAAK,EAAE,MAAM;IACbC,UAAU,EAAE,EAAE;IACdC,WAAW,EAAE,EAAE;IACfN,eAAe,EAAEL,KAAK;IACtBY,YAAY,EAAE;EAClB,CAAC;EACDC,cAAc,EAAE;IACZC,OAAO,EAAE,EAAE;IACXV,IAAI,EAAE,CAAC;IACPW,aAAa,EAAE;EACnB,CAAC;EACDC,KAAK,EAAE;IACHC,SAAS,EAAE,QAAQ;IACnBC,YAAY,EAAE,EAAE;IAChBC,UAAU,EAAE,MAAM;IAClBC,QAAQ,EAAExB;EACd,CAAC;EACDyB,eAAe,EAAE;IACbZ,KAAK,EAAE,MAAM;IACbM,aAAa,EAAE;EACnB,CAAC;EACDO,MAAM,EAAE;IACJlB,IAAI,EAAE,CAAC;IACPmB,QAAQ,EAAE,QAAQ;IAClBhB,UAAU,EAAE,QAAQ;IACpBD,cAAc,EAAE,QAAQ;IACxBD,eAAe,EAAER,KAAK;IACtB2B,WAAW,EAAE,CAAC;IACdC,WAAW,EAAE5B,KAAK;IAClB6B,eAAe,EAAE;EACrB,CAAC;EACDC,cAAc,EAAE;IACZC,mBAAmB,EAAE,CAAC;IACtBC,sBAAsB,EAAE;EAC5B,CAAC;EACDC,SAAS,EAAE;IACPC,oBAAoB,EAAE,CAAC;IACvBC,uBAAuB,EAAE;EAC7B,CAAC;EACDC,UAAU,EAAE;IACRhB,SAAS,EAAE,QAAQ;IACnBO,WAAW,EAAE,CAAC;IACdC,WAAW,EAAE5B,KAAK;IAClBO,IAAI,EAAE,CAAC;IACPE,cAAc,EAAE,QAAQ;IACxBoB,eAAe,EAAE,EAAE;IACnBN,QAAQ,EAAExB,QAAQ;IAClBuB,UAAU,EAAE;EAChB,CAAC;EACDe,mBAAmB,EAAE;IACjBC,SAAS,EAAE;EACf,CAAC;EACDC,KAAK,EAAE;IACHnB,SAAS,EAAE,QAAQ;IACnBoB,KAAK,EAAEvC;EACX,CAAC;EACDwC,UAAU,EAAE;IACR1B,YAAY,EAAE,EAAE;IAChB2B,iBAAiB,EAAE,EAAE;IACrBb,eAAe,EAAE,EAAE;IACnBrB,eAAe,EAAEN;EACrB;AACJ,CAAC,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { StyleSheet } from 'react-native';
2
+ export const styles = StyleSheet.create({
3
+ container: {
4
+ flex: 1
5
+ }
6
+ });
7
+ //# sourceMappingURL=picker-styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["StyleSheet","styles","create","container","flex"],"sources":["picker-styles.ts"],"sourcesContent":["import {StyleSheet} from 'react-native';\n\nexport const styles = StyleSheet.create({\n container: {\n flex: 1,\n },\n});\n"],"mappings":"AAAA,SAAQA,UAAU,QAAO,cAAc;AAEvC,OAAO,MAAMC,MAAM,GAAGD,UAAU,CAACE,MAAM,CAAC;EACpCC,SAAS,EAAE;IACPC,IAAI,EAAE;EACV;AACJ,CAAC,CAAC"}
@@ -0,0 +1,20 @@
1
+ import { StyleSheet } from 'react-native';
2
+ import { BIG_FONT } from '../../shared/constants';
3
+ export const styles = StyleSheet.create({
4
+ container: {
5
+ flex: 1,
6
+ paddingHorizontal: 15,
7
+ paddingVertical: 10
8
+ },
9
+ productName: {
10
+ textAlign: 'center',
11
+ marginBottom: 30,
12
+ fontSize: BIG_FONT
13
+ },
14
+ productInfo: {
15
+ flex: 1,
16
+ marginBottom: 30,
17
+ justifyContent: 'center'
18
+ }
19
+ });
20
+ //# sourceMappingURL=product-info-styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["StyleSheet","BIG_FONT","styles","create","container","flex","paddingHorizontal","paddingVertical","productName","textAlign","marginBottom","fontSize","productInfo","justifyContent"],"sources":["product-info-styles.ts"],"sourcesContent":["import {StyleSheet} from 'react-native';\n\nimport {BIG_FONT} from '../../shared/constants';\n\nexport const styles = StyleSheet.create({\n container: {\n flex: 1,\n paddingHorizontal: 15,\n paddingVertical: 10,\n },\n productName: {\n textAlign: 'center',\n marginBottom: 30,\n fontSize: BIG_FONT,\n },\n productInfo: {\n flex: 1,\n marginBottom: 30,\n justifyContent: 'center',\n },\n});\n"],"mappings":"AAAA,SAAQA,UAAU,QAAO,cAAc;AAEvC,SAAQC,QAAQ,QAAO,wBAAwB;AAE/C,OAAO,MAAMC,MAAM,GAAGF,UAAU,CAACG,MAAM,CAAC;EACpCC,SAAS,EAAE;IACPC,IAAI,EAAE,CAAC;IACPC,iBAAiB,EAAE,EAAE;IACrBC,eAAe,EAAE;EACrB,CAAC;EACDC,WAAW,EAAE;IACTC,SAAS,EAAE,QAAQ;IACnBC,YAAY,EAAE,EAAE;IAChBC,QAAQ,EAAEV;EACd,CAAC;EACDW,WAAW,EAAE;IACTP,IAAI,EAAE,CAAC;IACPK,YAAY,EAAE,EAAE;IAChBG,cAAc,EAAE;EACpB;AACJ,CAAC,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { StyleSheet } from 'react-native';
2
+ import { SMALLEST_FONT, WHITE } from '../../shared/constants';
3
+ export const styles = StyleSheet.create({
4
+ progressText: {
5
+ color: WHITE,
6
+ fontSize: SMALLEST_FONT,
7
+ alignSelf: 'center',
8
+ position: 'absolute',
9
+ top: 4
10
+ }
11
+ });
12
+ //# sourceMappingURL=progress-bar-styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["StyleSheet","SMALLEST_FONT","WHITE","styles","create","progressText","color","fontSize","alignSelf","position","top"],"sources":["progress-bar-styles.ts"],"sourcesContent":["import {StyleSheet} from 'react-native';\n\nimport {SMALLEST_FONT, WHITE} from '../../shared/constants';\n\nexport const styles = StyleSheet.create({\n progressText: {\n color: WHITE,\n fontSize: SMALLEST_FONT,\n alignSelf: 'center',\n position: 'absolute',\n top: 4,\n },\n});\n"],"mappings":"AAAA,SAAQA,UAAU,QAAO,cAAc;AAEvC,SAAQC,aAAa,EAAEC,KAAK,QAAO,wBAAwB;AAE3D,OAAO,MAAMC,MAAM,GAAGH,UAAU,CAACI,MAAM,CAAC;EACpCC,YAAY,EAAE;IACVC,KAAK,EAAEJ,KAAK;IACZK,QAAQ,EAAEN,aAAa;IACvBO,SAAS,EAAE,QAAQ;IACnBC,QAAQ,EAAE,UAAU;IACpBC,GAAG,EAAE;EACT;AACJ,CAAC,CAAC"}
@@ -0,0 +1,9 @@
1
+ const BASE_URL = '/api/gatherer';
2
+ export const GET_PICKLIST_URL = `${BASE_URL}/picklist`;
3
+ export const NEXT_PICK_ITEM_URL = `${BASE_URL}/pick-item/next`;
4
+ export const START_PICKING_URL = `${BASE_URL}/pick-group/start`;
5
+ export const SET_ITEM_PICKED_URL = `${BASE_URL}/pick-item/picked`;
6
+ export const PREV_PICK_ITEM_URL = `${BASE_URL}/pick-item/previous`;
7
+ export const GET_AFTER_PICKLIST_URL = `${BASE_URL}/after-picklist`;
8
+ export const SET_GROUP_PICKED_URL = `${BASE_URL}/pick-group/picked`;
9
+ //# sourceMappingURL=api-urls.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["BASE_URL","GET_PICKLIST_URL","NEXT_PICK_ITEM_URL","START_PICKING_URL","SET_ITEM_PICKED_URL","PREV_PICK_ITEM_URL","GET_AFTER_PICKLIST_URL","SET_GROUP_PICKED_URL"],"sources":["api-urls.ts"],"sourcesContent":["const BASE_URL = '/api/gatherer';\n\nexport const GET_PICKLIST_URL = `${BASE_URL}/picklist`;\nexport const NEXT_PICK_ITEM_URL = `${BASE_URL}/pick-item/next`;\nexport const START_PICKING_URL = `${BASE_URL}/pick-group/start`;\nexport const SET_ITEM_PICKED_URL = `${BASE_URL}/pick-item/picked`;\nexport const PREV_PICK_ITEM_URL = `${BASE_URL}/pick-item/previous`;\nexport const GET_AFTER_PICKLIST_URL = `${BASE_URL}/after-picklist`;\nexport const SET_GROUP_PICKED_URL = `${BASE_URL}/pick-group/picked`;\n"],"mappings":"AAAA,MAAMA,QAAQ,GAAG,eAAe;AAEhC,OAAO,MAAMC,gBAAgB,GAAI,GAAED,QAAS,WAAU;AACtD,OAAO,MAAME,kBAAkB,GAAI,GAAEF,QAAS,iBAAgB;AAC9D,OAAO,MAAMG,iBAAiB,GAAI,GAAEH,QAAS,mBAAkB;AAC/D,OAAO,MAAMI,mBAAmB,GAAI,GAAEJ,QAAS,mBAAkB;AACjE,OAAO,MAAMK,kBAAkB,GAAI,GAAEL,QAAS,qBAAoB;AAClE,OAAO,MAAMM,sBAAsB,GAAI,GAAEN,QAAS,iBAAgB;AAClE,OAAO,MAAMO,oBAAoB,GAAI,GAAEP,QAAS,oBAAmB"}
@@ -0,0 +1,36 @@
1
+ import React from 'react';
2
+ import { Text, View } from 'react-native';
3
+ import { styles } from './styles/badge-styles';
4
+ import { DANGER_COLOR, PRIMARY_COLOR, SECONDARY_COLOR, SUCCESS_COLOR, TEXT_COLOR, WARNING_COLOR, WHITE } from '../constants';
5
+ const backgroundMap = {
6
+ primary: PRIMARY_COLOR,
7
+ secondary: SECONDARY_COLOR,
8
+ success: SUCCESS_COLOR,
9
+ danger: DANGER_COLOR,
10
+ warning: WARNING_COLOR
11
+ };
12
+ const colorMap = {
13
+ primary: WHITE,
14
+ secondary: WHITE,
15
+ success: WHITE,
16
+ danger: WHITE,
17
+ warning: TEXT_COLOR
18
+ };
19
+ const {
20
+ badge,
21
+ text
22
+ } = styles;
23
+ export const Badge = props => {
24
+ const background = {
25
+ backgroundColor: backgroundMap[props.variant ?? 'primary']
26
+ };
27
+ const color = {
28
+ color: colorMap[props.variant ?? 'primary']
29
+ };
30
+ return /*#__PURE__*/React.createElement(View, {
31
+ style: [badge, background]
32
+ }, /*#__PURE__*/React.createElement(Text, {
33
+ style: [text, color]
34
+ }, props.children ?? '-'));
35
+ };
36
+ //# sourceMappingURL=badge.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","Text","View","styles","DANGER_COLOR","PRIMARY_COLOR","SECONDARY_COLOR","SUCCESS_COLOR","TEXT_COLOR","WARNING_COLOR","WHITE","backgroundMap","primary","secondary","success","danger","warning","colorMap","badge","text","Badge","props","background","backgroundColor","variant","color","children"],"sources":["badge.tsx"],"sourcesContent":["import React from 'react';\nimport {Text, View} from 'react-native';\n\nimport {styles} from './styles/badge-styles';\nimport {\n DANGER_COLOR,\n PRIMARY_COLOR,\n SECONDARY_COLOR,\n SUCCESS_COLOR,\n TEXT_COLOR,\n WARNING_COLOR,\n WHITE,\n} from '../constants';\n\ninterface props {\n variant: BadgeVariant;\n children: string | number;\n}\n\nconst backgroundMap: Record<BadgeVariant, string> = {\n primary: PRIMARY_COLOR,\n secondary: SECONDARY_COLOR,\n success: SUCCESS_COLOR,\n danger: DANGER_COLOR,\n warning: WARNING_COLOR,\n};\nconst colorMap: Record<BadgeVariant, string> = {\n primary: WHITE,\n secondary: WHITE,\n success: WHITE,\n danger: WHITE,\n warning: TEXT_COLOR,\n};\nconst {badge, text} = styles;\n\nexport const Badge = (props: props): JSX.Element => {\n const background = {backgroundColor: backgroundMap[props.variant ?? 'primary']};\n const color = {color: colorMap[props.variant ?? 'primary']};\n\n return (\n <View style={[badge, background]}>\n <Text style={[text, color]}>{props.children ?? '-'}</Text>\n </View>\n );\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAAQC,IAAI,EAAEC,IAAI,QAAO,cAAc;AAEvC,SAAQC,MAAM,QAAO,uBAAuB;AAC5C,SACIC,YAAY,EACZC,aAAa,EACbC,eAAe,EACfC,aAAa,EACbC,UAAU,EACVC,aAAa,EACbC,KAAK,QACF,cAAc;AAOrB,MAAMC,aAA2C,GAAG;EAChDC,OAAO,EAAEP,aAAa;EACtBQ,SAAS,EAAEP,eAAe;EAC1BQ,OAAO,EAAEP,aAAa;EACtBQ,MAAM,EAAEX,YAAY;EACpBY,OAAO,EAAEP;AACb,CAAC;AACD,MAAMQ,QAAsC,GAAG;EAC3CL,OAAO,EAAEF,KAAK;EACdG,SAAS,EAAEH,KAAK;EAChBI,OAAO,EAAEJ,KAAK;EACdK,MAAM,EAAEL,KAAK;EACbM,OAAO,EAAER;AACb,CAAC;AACD,MAAM;EAACU,KAAK;EAAEC;AAAI,CAAC,GAAGhB,MAAM;AAE5B,OAAO,MAAMiB,KAAK,GAAIC,KAAY,IAAkB;EAChD,MAAMC,UAAU,GAAG;IAACC,eAAe,EAAEZ,aAAa,CAACU,KAAK,CAACG,OAAO,IAAI,SAAS;EAAC,CAAC;EAC/E,MAAMC,KAAK,GAAG;IAACA,KAAK,EAAER,QAAQ,CAACI,KAAK,CAACG,OAAO,IAAI,SAAS;EAAC,CAAC;EAE3D,oBACI,oBAAC,IAAI;IAAC,KAAK,EAAE,CAACN,KAAK,EAAEI,UAAU;EAAE,gBAC7B,oBAAC,IAAI;IAAC,KAAK,EAAE,CAACH,IAAI,EAAEM,KAAK;EAAE,GAAEJ,KAAK,CAACK,QAAQ,IAAI,GAAG,CAAQ,CACvD;AAEf,CAAC"}
@@ -0,0 +1,17 @@
1
+ import { StyleSheet } from 'react-native';
2
+ import { SMALLEST_FONT } from '../../constants';
3
+ export const styles = StyleSheet.create({
4
+ badge: {
5
+ paddingVertical: 4,
6
+ paddingHorizontal: 10,
7
+ borderRadius: 30,
8
+ alignSelf: 'flex-start'
9
+ },
10
+ text: {
11
+ textAlign: 'center',
12
+ fontSize: SMALLEST_FONT,
13
+ fontWeight: '600',
14
+ textTransform: 'uppercase'
15
+ }
16
+ });
17
+ //# sourceMappingURL=badge-styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["StyleSheet","SMALLEST_FONT","styles","create","badge","paddingVertical","paddingHorizontal","borderRadius","alignSelf","text","textAlign","fontSize","fontWeight","textTransform"],"sources":["badge-styles.ts"],"sourcesContent":["import {StyleSheet} from 'react-native';\n\nimport {SMALLEST_FONT} from '../../constants';\n\nexport const styles = StyleSheet.create({\n badge: {\n paddingVertical: 4,\n paddingHorizontal: 10,\n borderRadius: 30,\n alignSelf: 'flex-start',\n },\n text: {\n textAlign: 'center',\n fontSize: SMALLEST_FONT,\n fontWeight: '600',\n textTransform: 'uppercase',\n },\n});\n"],"mappings":"AAAA,SAAQA,UAAU,QAAO,cAAc;AAEvC,SAAQC,aAAa,QAAO,iBAAiB;AAE7C,OAAO,MAAMC,MAAM,GAAGF,UAAU,CAACG,MAAM,CAAC;EACpCC,KAAK,EAAE;IACHC,eAAe,EAAE,CAAC;IAClBC,iBAAiB,EAAE,EAAE;IACrBC,YAAY,EAAE,EAAE;IAChBC,SAAS,EAAE;EACf,CAAC;EACDC,IAAI,EAAE;IACFC,SAAS,EAAE,QAAQ;IACnBC,QAAQ,EAAEV,aAAa;IACvBW,UAAU,EAAE,KAAK;IACjBC,aAAa,EAAE;EACnB;AACJ,CAAC,CAAC"}
@@ -0,0 +1,16 @@
1
+ export const WHITE = '#fff';
2
+ export const BLACK = '#000';
3
+ export const NEAR_WHITE = '#f4f4f4';
4
+ export const GREY = '#94999b';
5
+ export const LIGHT_GREY = '#d9d9d9';
6
+ export const TEXT_COLOR = '#282525';
7
+ export const PRIMARY_COLOR = '#4fc3f7';
8
+ export const SECONDARY_COLOR = '#6c757d';
9
+ export const SUCCESS_COLOR = '#66bb6a';
10
+ export const DANGER_COLOR = '#f44336';
11
+ export const WARNING_COLOR = '#ffa726';
12
+ export const BIG_FONT = 20;
13
+ export const SMALL_FONT = 12;
14
+ export const SMALLEST_FONT = 10;
15
+ export const BIGGEST_FONT = 26;
16
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["WHITE","BLACK","NEAR_WHITE","GREY","LIGHT_GREY","TEXT_COLOR","PRIMARY_COLOR","SECONDARY_COLOR","SUCCESS_COLOR","DANGER_COLOR","WARNING_COLOR","BIG_FONT","SMALL_FONT","SMALLEST_FONT","BIGGEST_FONT"],"sources":["constants.ts"],"sourcesContent":["export const WHITE = '#fff';\nexport const BLACK = '#000';\nexport const NEAR_WHITE = '#f4f4f4';\nexport const GREY = '#94999b';\nexport const LIGHT_GREY = '#d9d9d9';\nexport const TEXT_COLOR = '#282525';\nexport const PRIMARY_COLOR = '#4fc3f7';\nexport const SECONDARY_COLOR = '#6c757d';\nexport const SUCCESS_COLOR = '#66bb6a';\nexport const DANGER_COLOR = '#f44336';\nexport const WARNING_COLOR = '#ffa726';\n\nexport const BIG_FONT = 20;\nexport const SMALL_FONT = 12;\nexport const SMALLEST_FONT = 10;\nexport const BIGGEST_FONT = 26;\n"],"mappings":"AAAA,OAAO,MAAMA,KAAK,GAAG,MAAM;AAC3B,OAAO,MAAMC,KAAK,GAAG,MAAM;AAC3B,OAAO,MAAMC,UAAU,GAAG,SAAS;AACnC,OAAO,MAAMC,IAAI,GAAG,SAAS;AAC7B,OAAO,MAAMC,UAAU,GAAG,SAAS;AACnC,OAAO,MAAMC,UAAU,GAAG,SAAS;AACnC,OAAO,MAAMC,aAAa,GAAG,SAAS;AACtC,OAAO,MAAMC,eAAe,GAAG,SAAS;AACxC,OAAO,MAAMC,aAAa,GAAG,SAAS;AACtC,OAAO,MAAMC,YAAY,GAAG,SAAS;AACrC,OAAO,MAAMC,aAAa,GAAG,SAAS;AAEtC,OAAO,MAAMC,QAAQ,GAAG,EAAE;AAC1B,OAAO,MAAMC,UAAU,GAAG,EAAE;AAC5B,OAAO,MAAMC,aAAa,GAAG,EAAE;AAC/B,OAAO,MAAMC,YAAY,GAAG,EAAE"}
@@ -0,0 +1,15 @@
1
+ export const defaultPickGroupItem = {
2
+ pickItem: {
3
+ id: 0,
4
+ ean: '',
5
+ name: ''
6
+ },
7
+ quantity: 0,
8
+ quantityPicked: 0,
9
+ barcode: '',
10
+ pickItemIndex: 0,
11
+ totalPickItems: 0,
12
+ previous: null,
13
+ next: null
14
+ };
15
+ //# sourceMappingURL=default-pick-group-item.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["defaultPickGroupItem","pickItem","id","ean","name","quantity","quantityPicked","barcode","pickItemIndex","totalPickItems","previous","next"],"sources":["default-pick-group-item.ts"],"sourcesContent":["export const defaultPickGroupItem: PickGroupItem<any> = {\n pickItem: {\n id: 0,\n ean: '',\n name: '',\n },\n quantity: 0,\n quantityPicked: 0,\n barcode: '',\n pickItemIndex: 0,\n totalPickItems: 0,\n previous: null,\n next: null,\n};\n"],"mappings":"AAAA,OAAO,MAAMA,oBAAwC,GAAG;EACpDC,QAAQ,EAAE;IACNC,EAAE,EAAE,CAAC;IACLC,GAAG,EAAE,EAAE;IACPC,IAAI,EAAE;EACV,CAAC;EACDC,QAAQ,EAAE,CAAC;EACXC,cAAc,EAAE,CAAC;EACjBC,OAAO,EAAE,EAAE;EACXC,aAAa,EAAE,CAAC;EAChBC,cAAc,EAAE,CAAC;EACjBC,QAAQ,EAAE,IAAI;EACdC,IAAI,EAAE;AACV,CAAC"}
@@ -0,0 +1,18 @@
1
+ import React from 'react';
2
+ import { View, Text } from 'react-native';
3
+ import { DataFormat } from './data-format';
4
+ import { styles } from './styles/layout-styles';
5
+ const {
6
+ dataColumn,
7
+ dataTitle
8
+ } = styles;
9
+ export const DataColumn = props => {
10
+ return /*#__PURE__*/React.createElement(View, {
11
+ style: [dataColumn, props.columnStyles ?? {}]
12
+ }, /*#__PURE__*/React.createElement(Text, {
13
+ style: dataTitle
14
+ }, props.title), /*#__PURE__*/React.createElement(DataFormat, {
15
+ data: props.data
16
+ }));
17
+ };
18
+ //# sourceMappingURL=data-column.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","View","Text","DataFormat","styles","dataColumn","dataTitle","DataColumn","props","columnStyles","title","data"],"sources":["data-column.tsx"],"sourcesContent":["import React from 'react';\nimport {View, ViewStyle, Text} from 'react-native';\n\nimport {DataFormat} from './data-format';\nimport {styles} from './styles/layout-styles';\n\nexport interface columnProps {\n title: string;\n data: JSX.Element | string | number;\n columnStyles?: ViewStyle;\n}\n\nconst {dataColumn, dataTitle} = styles;\n\nexport const DataColumn = (props: columnProps): JSX.Element => {\n return (\n <View style={[dataColumn, props.columnStyles ?? {}]}>\n <Text style={dataTitle}>{props.title}</Text>\n <DataFormat data={props.data} />\n </View>\n );\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAAQC,IAAI,EAAaC,IAAI,QAAO,cAAc;AAElD,SAAQC,UAAU,QAAO,eAAe;AACxC,SAAQC,MAAM,QAAO,wBAAwB;AAQ7C,MAAM;EAACC,UAAU;EAAEC;AAAS,CAAC,GAAGF,MAAM;AAEtC,OAAO,MAAMG,UAAU,GAAIC,KAAkB,IAAkB;EAC3D,oBACI,oBAAC,IAAI;IAAC,KAAK,EAAE,CAACH,UAAU,EAAEG,KAAK,CAACC,YAAY,IAAI,CAAC,CAAC;EAAE,gBAChD,oBAAC,IAAI;IAAC,KAAK,EAAEH;EAAU,GAAEE,KAAK,CAACE,KAAK,CAAQ,eAC5C,oBAAC,UAAU;IAAC,IAAI,EAAEF,KAAK,CAACG;EAAK,EAAG,CAC7B;AAEf,CAAC"}
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ import { Text } from 'react-native';
3
+ export const DataFormat = props => {
4
+ const {
5
+ data
6
+ } = props;
7
+ if (typeof data === 'string' || typeof data === 'number') {
8
+ return /*#__PURE__*/React.createElement(Text, {
9
+ numberOfLines: 1
10
+ }, data);
11
+ }
12
+ return data;
13
+ };
14
+ //# sourceMappingURL=data-format.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","Text","DataFormat","props","data"],"sources":["data-format.tsx"],"sourcesContent":["import React from 'react';\nimport {Text} from 'react-native';\n\ninterface props {\n data: JSX.Element | string | number;\n}\n\nexport const DataFormat = (props: props): JSX.Element => {\n const {data} = props;\n\n if (typeof data === 'string' || typeof data === 'number') {\n return <Text numberOfLines={1}>{data}</Text>;\n }\n\n return data;\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAAQC,IAAI,QAAO,cAAc;AAMjC,OAAO,MAAMC,UAAU,GAAIC,KAAY,IAAkB;EACrD,MAAM;IAACC;EAAI,CAAC,GAAGD,KAAK;EAEpB,IAAI,OAAOC,IAAI,KAAK,QAAQ,IAAI,OAAOA,IAAI,KAAK,QAAQ,EAAE;IACtD,oBAAO,oBAAC,IAAI;MAAC,aAAa,EAAE;IAAE,GAAEA,IAAI,CAAQ;EAChD;EAEA,OAAOA,IAAI;AACf,CAAC"}
@@ -0,0 +1,28 @@
1
+ import React from 'react';
2
+ import { View } from 'react-native';
3
+ import { DataColumn } from './data-column';
4
+ import { styles } from './styles/layout-styles';
5
+ const {
6
+ dataRow
7
+ } = styles;
8
+ export const DataRow = props => {
9
+ const {
10
+ leftTitle,
11
+ leftContent,
12
+ rightTitle,
13
+ rightContent,
14
+ rowStyles,
15
+ columnStyles
16
+ } = props;
17
+ return /*#__PURE__*/React.createElement(View, {
18
+ style: [dataRow, rowStyles ?? {}]
19
+ }, /*#__PURE__*/React.createElement(DataColumn, {
20
+ title: leftTitle,
21
+ data: leftContent,
22
+ columnStyles: columnStyles
23
+ }), !!rightTitle && !!rightContent && /*#__PURE__*/React.createElement(DataColumn, {
24
+ title: rightTitle,
25
+ data: rightContent
26
+ }));
27
+ };
28
+ //# sourceMappingURL=data-row.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","View","DataColumn","styles","dataRow","DataRow","props","leftTitle","leftContent","rightTitle","rightContent","rowStyles","columnStyles"],"sources":["data-row.tsx"],"sourcesContent":["import React from 'react';\nimport {View, ViewStyle} from 'react-native';\n\nimport {DataColumn} from './data-column';\nimport {styles} from './styles/layout-styles';\n\nexport interface rowProps {\n leftTitle: string;\n leftContent: JSX.Element | string | number;\n rightTitle?: string | null;\n rightContent?: JSX.Element | string | number;\n rowStyles?: ViewStyle;\n columnStyles?: ViewStyle;\n}\n\nconst {dataRow} = styles;\n\nexport const DataRow = (props: rowProps): JSX.Element => {\n const {leftTitle, leftContent, rightTitle, rightContent, rowStyles, columnStyles} = props;\n\n return (\n <View style={[dataRow, rowStyles ?? {}]}>\n <DataColumn title={leftTitle} data={leftContent} columnStyles={columnStyles} />\n {!!rightTitle && !!rightContent && <DataColumn title={rightTitle} data={rightContent} />}\n </View>\n );\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAAQC,IAAI,QAAkB,cAAc;AAE5C,SAAQC,UAAU,QAAO,eAAe;AACxC,SAAQC,MAAM,QAAO,wBAAwB;AAW7C,MAAM;EAACC;AAAO,CAAC,GAAGD,MAAM;AAExB,OAAO,MAAME,OAAO,GAAIC,KAAe,IAAkB;EACrD,MAAM;IAACC,SAAS;IAAEC,WAAW;IAAEC,UAAU;IAAEC,YAAY;IAAEC,SAAS;IAAEC;EAAY,CAAC,GAAGN,KAAK;EAEzF,oBACI,oBAAC,IAAI;IAAC,KAAK,EAAE,CAACF,OAAO,EAAEO,SAAS,IAAI,CAAC,CAAC;EAAE,gBACpC,oBAAC,UAAU;IAAC,KAAK,EAAEJ,SAAU;IAAC,IAAI,EAAEC,WAAY;IAAC,YAAY,EAAEI;EAAa,EAAG,EAC9E,CAAC,CAACH,UAAU,IAAI,CAAC,CAACC,YAAY,iBAAI,oBAAC,UAAU;IAAC,KAAK,EAAED,UAAW;IAAC,IAAI,EAAEC;EAAa,EAAG,CACrF;AAEf,CAAC"}
@@ -0,0 +1,19 @@
1
+ import { StyleSheet } from 'react-native';
2
+ import { GREY, SMALL_FONT } from '../../constants';
3
+ export const styles = StyleSheet.create({
4
+ dataRow: {
5
+ flexDirection: 'row'
6
+ },
7
+ dataColumn: {
8
+ flex: 0,
9
+ flexBasis: '50%',
10
+ maxWidth: '50%',
11
+ paddingHorizontal: 15
12
+ },
13
+ dataTitle: {
14
+ color: GREY,
15
+ fontStyle: 'italic',
16
+ fontSize: SMALL_FONT
17
+ }
18
+ });
19
+ //# sourceMappingURL=layout-styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["StyleSheet","GREY","SMALL_FONT","styles","create","dataRow","flexDirection","dataColumn","flex","flexBasis","maxWidth","paddingHorizontal","dataTitle","color","fontStyle","fontSize"],"sources":["layout-styles.ts"],"sourcesContent":["import {StyleSheet} from 'react-native';\n\nimport {GREY, SMALL_FONT} from '../../constants';\n\nexport const styles = StyleSheet.create({\n dataRow: {\n flexDirection: 'row',\n },\n dataColumn: {\n flex: 0,\n flexBasis: '50%',\n maxWidth: '50%',\n paddingHorizontal: 15,\n },\n dataTitle: {\n color: GREY,\n fontStyle: 'italic',\n fontSize: SMALL_FONT,\n },\n});\n"],"mappings":"AAAA,SAAQA,UAAU,QAAO,cAAc;AAEvC,SAAQC,IAAI,EAAEC,UAAU,QAAO,iBAAiB;AAEhD,OAAO,MAAMC,MAAM,GAAGH,UAAU,CAACI,MAAM,CAAC;EACpCC,OAAO,EAAE;IACLC,aAAa,EAAE;EACnB,CAAC;EACDC,UAAU,EAAE;IACRC,IAAI,EAAE,CAAC;IACPC,SAAS,EAAE,KAAK;IAChBC,QAAQ,EAAE,KAAK;IACfC,iBAAiB,EAAE;EACvB,CAAC;EACDC,SAAS,EAAE;IACPC,KAAK,EAAEZ,IAAI;IACXa,SAAS,EAAE,QAAQ;IACnBC,QAAQ,EAAEb;EACd;AACJ,CAAC,CAAC"}
@@ -0,0 +1,25 @@
1
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
+ import React, { useState } from 'react';
3
+ import { Pressable } from 'react-native';
4
+ import { GREY, NEAR_WHITE, WHITE } from '../constants';
5
+ export const PressButton = props => {
6
+ const [buttonPressed, setButtonPressed] = useState(false);
7
+ const buttonBackground = {
8
+ backgroundColor: buttonPressed ? NEAR_WHITE : WHITE
9
+ };
10
+ const toggleButtonPress = () => {
11
+ setButtonPressed(prevState => !prevState);
12
+ };
13
+ return /*#__PURE__*/React.createElement(Pressable, _extends({}, props, {
14
+ android_ripple: {
15
+ color: GREY
16
+ },
17
+ onPressIn: toggleButtonPress,
18
+ onPressOut: toggleButtonPress,
19
+ style: {
20
+ ...buttonBackground,
21
+ ...props.style
22
+ }
23
+ }), props.children);
24
+ };
25
+ //# sourceMappingURL=press-button.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","useState","Pressable","GREY","NEAR_WHITE","WHITE","PressButton","props","buttonPressed","setButtonPressed","buttonBackground","backgroundColor","toggleButtonPress","prevState","color","style","children"],"sources":["press-button.tsx"],"sourcesContent":["import React, {ReactNode, useState} from 'react';\nimport {Pressable, PressableProps, ViewStyle} from 'react-native';\n\nimport {GREY, NEAR_WHITE, WHITE} from '../constants';\n\ninterface props extends PressableProps {\n children: ReactNode;\n style: ViewStyle;\n}\n\nexport const PressButton = (props: props): JSX.Element => {\n const [buttonPressed, setButtonPressed] = useState<boolean>(false);\n const buttonBackground: ViewStyle = {backgroundColor: buttonPressed ? NEAR_WHITE : WHITE};\n\n const toggleButtonPress = (): void => {\n setButtonPressed(prevState => !prevState);\n };\n\n return (\n <Pressable\n {...props}\n android_ripple={{color: GREY}}\n onPressIn={toggleButtonPress}\n onPressOut={toggleButtonPress}\n style={{...buttonBackground, ...props.style}}\n >\n {props.children}\n </Pressable>\n );\n};\n"],"mappings":";AAAA,OAAOA,KAAK,IAAcC,QAAQ,QAAO,OAAO;AAChD,SAAQC,SAAS,QAAkC,cAAc;AAEjE,SAAQC,IAAI,EAAEC,UAAU,EAAEC,KAAK,QAAO,cAAc;AAOpD,OAAO,MAAMC,WAAW,GAAIC,KAAY,IAAkB;EACtD,MAAM,CAACC,aAAa,EAAEC,gBAAgB,CAAC,GAAGR,QAAQ,CAAU,KAAK,CAAC;EAClE,MAAMS,gBAA2B,GAAG;IAACC,eAAe,EAAEH,aAAa,GAAGJ,UAAU,GAAGC;EAAK,CAAC;EAEzF,MAAMO,iBAAiB,GAAG,MAAY;IAClCH,gBAAgB,CAACI,SAAS,IAAI,CAACA,SAAS,CAAC;EAC7C,CAAC;EAED,oBACI,oBAAC,SAAS,eACFN,KAAK;IACT,cAAc,EAAE;MAACO,KAAK,EAAEX;IAAI,CAAE;IAC9B,SAAS,EAAES,iBAAkB;IAC7B,UAAU,EAAEA,iBAAkB;IAC9B,KAAK,EAAE;MAAC,GAAGF,gBAAgB;MAAE,GAAGH,KAAK,CAACQ;IAAK;EAAE,IAE5CR,KAAK,CAACS,QAAQ,CACP;AAEpB,CAAC"}
@@ -0,0 +1,2 @@
1
+
2
+ //# sourceMappingURL=badge.d.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sources":["badge.d.ts"],"sourcesContent":["type BadgeVariant = 'primary' | 'secondary' | 'success' | 'danger' | 'warning';\n"],"mappings":""}
@@ -0,0 +1,2 @@
1
+
2
+ //# sourceMappingURL=config.d.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sources":["config.d.ts"],"sourcesContent":["type GathererConfig = {\n baseURL: string;\n scanImplementation: any;\n onLastPick: () => void;\n language?: LanguageConfig;\n};\n\ntype LanguageConfig = 'nl' | 'en';\n\ntype Translation = {\n [key: string]: string;\n};\n\ntype Translations = {\n en: Translation;\n nl: Translation;\n};\n"],"mappings":""}
@@ -0,0 +1,2 @@
1
+
2
+ //# sourceMappingURL=control.d.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sources":["control.d.ts"],"sourcesContent":["type ControlDir = 'prev' | 'next';\n\ntype ProductSwitch = {\n nextPickItem: (isSkip: boolean, quantityPicked?: number, metaData?: any) => void;\n previousPickItem: () => void;\n};\n"],"mappings":""}
@@ -0,0 +1,2 @@
1
+
2
+ //# sourceMappingURL=pick-group.d.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sources":["pick-group.d.ts"],"sourcesContent":["type PickGroup = {\n id: number;\n is_picked: boolean;\n};\n\ntype PickGroupItem<T> = PickItem<T> & {\n previous: PickItem<T> | null;\n next: PickItem<T> | null;\n};\n"],"mappings":""}
@@ -0,0 +1,2 @@
1
+
2
+ //# sourceMappingURL=search-params.d.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sources":["search-params.d.ts"],"sourcesContent":["type SearchParams = {\n searchField: string;\n searchValue: string;\n};\n"],"mappings":""}
@@ -0,0 +1,2 @@
1
+
2
+ //# sourceMappingURL=pick-item.d.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sources":["pick-item.d.ts"],"sourcesContent":["type PickItem<T extends DefaultPickItem> = {\n pickItem: T;\n quantity: number;\n quantityPicked: number;\n barcode: string;\n pickItemIndex: number;\n totalPickItems: number;\n};\n\ntype DefaultPickItem = {\n id: number;\n ean: string;\n name: string;\n};\n"],"mappings":""}
@@ -0,0 +1,2 @@
1
+
2
+ //# sourceMappingURL=scanner.d.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sources":["scanner.d.ts"],"sourcesContent":["type Scanner = {\n startScanner: () => void;\n stopScanner: () => void;\n};\n"],"mappings":""}
@@ -0,0 +1,18 @@
1
+ import React, { ReactNode } from 'react';
2
+ export interface IPickerContext {
3
+ baseURL: string;
4
+ scanImplementation: any;
5
+ pickItem: PickGroupItem<any>;
6
+ currentPickGroupId: number;
7
+ onLastPick: () => void;
8
+ savePickGroupData: (data: PickGroupItem<any>) => void;
9
+ startPicking: (pickGroupId: number) => Promise<PickGroupItem<DefaultPickItem>>;
10
+ switchPickItem: (dir: ControlDir) => Promise<PickGroupItem<DefaultPickItem>>;
11
+ }
12
+ interface props {
13
+ children: ReactNode;
14
+ config: GathererConfig;
15
+ }
16
+ export declare const PickerContext: React.Context<IPickerContext>;
17
+ export declare const PickerContextProvider: <T extends DefaultPickItem>(props: props) => JSX.Element;
18
+ export {};
@@ -0,0 +1,11 @@
1
+ import React, { ReactNode } from 'react';
2
+ export type IScanContext = {
3
+ scanner: any;
4
+ };
5
+ interface props {
6
+ scanner: any;
7
+ children: ReactNode;
8
+ }
9
+ export declare const ScanContext: React.Context<IScanContext>;
10
+ export declare const ScanContextProvider: (props: props) => JSX.Element;
11
+ export {};
@@ -0,0 +1,2 @@
1
+ import { AxiosInstance } from 'axios';
2
+ export declare const useInstance: () => AxiosInstance;
@@ -0,0 +1 @@
1
+ export declare const usePickItemSwitch: () => ProductSwitch;
@@ -0,0 +1,2 @@
1
+ import type { IPickerContext } from '../context/picker-context';
2
+ export declare const usePicker: () => IPickerContext;
@@ -0,0 +1,3 @@
1
+ type ScanCallback = (scan: string) => void;
2
+ export declare const useScanner: (onScan: ScanCallback) => Scanner;
3
+ export {};
@@ -0,0 +1,5 @@
1
+ export { Picker } from './picker/picker';
2
+ export { usePicker } from './hooks/use-picker';
3
+ export { PickList } from './pick-list/pick-list';
4
+ export { usePickItemSwitch } from './hooks/use-pick-item-switch';
5
+ export { PickerContextProvider } from './context/picker-context';
@@ -0,0 +1,6 @@
1
+ export declare const pickList: {
2
+ 'pick-list.empty-list.loading': string;
3
+ 'pick-list.empty-list.not-found': string;
4
+ 'pick-list.item.is-picked.true': string;
5
+ 'pick-list.item.is-picked.false': string;
6
+ };
@@ -0,0 +1,8 @@
1
+ export declare const picker: {
2
+ 'picker.modal.picked': string;
3
+ 'picker.modal.pick-items': string;
4
+ 'picker.modal.not-enough-pick': string;
5
+ 'picker.modal.confirm-error': string;
6
+ 'picker.product-info.barcode': string;
7
+ 'picker.product-info.pick-quantity': string;
8
+ };
@@ -0,0 +1,14 @@
1
+ export declare const englishTranslations: {
2
+ en: {
3
+ 'picker.modal.picked': string;
4
+ 'picker.modal.pick-items': string;
5
+ 'picker.modal.not-enough-pick': string;
6
+ 'picker.modal.confirm-error': string;
7
+ 'picker.product-info.barcode': string;
8
+ 'picker.product-info.pick-quantity': string;
9
+ 'pick-list.empty-list.loading': string;
10
+ 'pick-list.empty-list.not-found': string;
11
+ 'pick-list.item.is-picked.true': string;
12
+ 'pick-list.item.is-picked.false': string;
13
+ };
14
+ };
@@ -0,0 +1,6 @@
1
+ export declare const pickList: {
2
+ 'pick-list.empty-list.loading': string;
3
+ 'pick-list.empty-list.not-found': string;
4
+ 'pick-list.item.is-picked.true': string;
5
+ 'pick-list.item.is-picked.false': string;
6
+ };
@@ -0,0 +1,8 @@
1
+ export declare const picker: {
2
+ 'picker.modal.picked': string;
3
+ 'picker.modal.pick-items': string;
4
+ 'picker.modal.not-enough-pick': string;
5
+ 'picker.modal.confirm-error': string;
6
+ 'picker.product-info.barcode': string;
7
+ 'picker.product-info.pick-quantity': string;
8
+ };
@@ -0,0 +1,14 @@
1
+ export declare const dutchTranslations: {
2
+ nl: {
3
+ 'picker.modal.picked': string;
4
+ 'picker.modal.pick-items': string;
5
+ 'picker.modal.not-enough-pick': string;
6
+ 'picker.modal.confirm-error': string;
7
+ 'picker.product-info.barcode': string;
8
+ 'picker.product-info.pick-quantity': string;
9
+ 'pick-list.empty-list.loading': string;
10
+ 'pick-list.empty-list.not-found': string;
11
+ 'pick-list.item.is-picked.true': string;
12
+ 'pick-list.item.is-picked.false': string;
13
+ };
14
+ };
@@ -0,0 +1,2 @@
1
+ declare const translations: Translations;
2
+ export default translations;
@@ -0,0 +1,5 @@
1
+ interface props {
2
+ text: string;
3
+ }
4
+ export declare const EmptyList: (props: props) => JSX.Element;
5
+ export {};
@@ -0,0 +1,6 @@
1
+ import { ListRenderItemInfo } from 'react-native';
2
+ export interface props {
3
+ renderProps: ListRenderItemInfo<PickGroup>;
4
+ onPress?: (pickGroup: PickGroup) => void;
5
+ }
6
+ export declare const PickGroupItem: (props: props) => JSX.Element;
@@ -0,0 +1,5 @@
1
+ interface props {
2
+ onSearch: (text: string) => void;
3
+ }
4
+ export declare const Search: (props: props) => JSX.Element;
5
+ export {};
@@ -0,0 +1,9 @@
1
+ import { ListRenderItem } from 'react-native';
2
+ interface props {
3
+ isAfterPickList?: boolean;
4
+ renderItem?: ListRenderItem<PickGroup>;
5
+ searchParams?: SearchParams;
6
+ onItemPress?: (pickGroup: PickGroup) => void;
7
+ }
8
+ export declare const PickList: (props: props) => JSX.Element;
9
+ export {};
@@ -0,0 +1,9 @@
1
+ export declare const styles: {
2
+ container: {
3
+ marginTop: number;
4
+ };
5
+ text: {
6
+ textAlign: "center";
7
+ fontSize: number;
8
+ };
9
+ };
@@ -0,0 +1,14 @@
1
+ export declare const styles: {
2
+ listItem: {
3
+ backgroundColor: string;
4
+ flexDirection: "row";
5
+ justifyContent: "space-between";
6
+ padding: number;
7
+ margin: number;
8
+ borderRadius: number;
9
+ elevation: number;
10
+ };
11
+ label: {
12
+ fontSize: number;
13
+ };
14
+ };
@@ -0,0 +1,24 @@
1
+ export declare const styles: {
2
+ container: {
3
+ padding: number;
4
+ flexDirection: "row";
5
+ alignItems: "center";
6
+ };
7
+ iconColumn: {
8
+ flex: number;
9
+ minWidth: number;
10
+ };
11
+ searchColumn: {
12
+ flex: number;
13
+ borderRadius: number;
14
+ backgroundColor: string;
15
+ paddingVertical: number;
16
+ paddingHorizontal: number;
17
+ flexDirection: "row";
18
+ alignItems: "center";
19
+ };
20
+ search: {
21
+ flex: number;
22
+ color: string;
23
+ };
24
+ };
@@ -0,0 +1,6 @@
1
+ interface props {
2
+ visible: boolean;
3
+ closeModal: () => void;
4
+ }
5
+ export declare const PickModal: (props: props) => JSX.Element;
6
+ export {};