@wavemaker/app-rn-runtime 11.4.0-next.141707 → 11.4.0-next.1417071

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 (502) hide show
  1. app-rn-runtime/actions/base-action.js.map +1 -1
  2. app-rn-runtime/actions/login-action.js.map +1 -1
  3. app-rn-runtime/actions/logout-action.js.map +1 -1
  4. app-rn-runtime/actions/navigation-action.js.map +1 -1
  5. app-rn-runtime/actions/notification-action.js +5 -4
  6. app-rn-runtime/actions/notification-action.js.map +1 -1
  7. app-rn-runtime/actions/timer-action.js.map +1 -1
  8. app-rn-runtime/components/advanced/carousel/carousel-content/carousel-content.component.js +1 -1
  9. app-rn-runtime/components/advanced/carousel/carousel-content/carousel-content.component.js.map +1 -1
  10. app-rn-runtime/components/advanced/carousel/carousel-content/carousel-content.props.js.map +1 -1
  11. app-rn-runtime/components/advanced/carousel/carousel-template/carousel-template.component.js +1 -1
  12. app-rn-runtime/components/advanced/carousel/carousel-template/carousel-template.component.js.map +1 -1
  13. app-rn-runtime/components/advanced/carousel/carousel-template/carousel-template.props.js.map +1 -1
  14. app-rn-runtime/components/advanced/carousel/carousel.component.js +2 -2
  15. app-rn-runtime/components/advanced/carousel/carousel.component.js.map +1 -1
  16. app-rn-runtime/components/advanced/carousel/carousel.props.js.map +1 -1
  17. app-rn-runtime/components/advanced/carousel/carousel.styles.js +16 -0
  18. app-rn-runtime/components/advanced/carousel/carousel.styles.js.map +1 -1
  19. app-rn-runtime/components/advanced/login/login.component.js +1 -1
  20. app-rn-runtime/components/advanced/login/login.component.js.map +1 -1
  21. app-rn-runtime/components/advanced/login/login.props.js.map +1 -1
  22. app-rn-runtime/components/advanced/network-info-toaster/network-info-toaster.component.js +5 -5
  23. app-rn-runtime/components/advanced/network-info-toaster/network-info-toaster.component.js.map +1 -1
  24. app-rn-runtime/components/advanced/network-info-toaster/network-info-toaster.props.js.map +1 -1
  25. app-rn-runtime/components/advanced/webview/webview.component.js +1 -1
  26. app-rn-runtime/components/advanced/webview/webview.component.js.map +1 -1
  27. app-rn-runtime/components/advanced/webview/webview.props.js.map +1 -1
  28. app-rn-runtime/components/basic/anchor/anchor.component.js +1 -1
  29. app-rn-runtime/components/basic/anchor/anchor.component.js.map +1 -1
  30. app-rn-runtime/components/basic/anchor/anchor.props.js.map +1 -1
  31. app-rn-runtime/components/basic/anchor/anchor.styles.js +5 -0
  32. app-rn-runtime/components/basic/anchor/anchor.styles.js.map +1 -1
  33. app-rn-runtime/components/basic/animatedview.component.js +1 -3
  34. app-rn-runtime/components/basic/animatedview.component.js.map +1 -1
  35. app-rn-runtime/components/basic/audio/audio.component.js +232 -0
  36. app-rn-runtime/components/basic/audio/audio.component.js.map +1 -0
  37. app-rn-runtime/components/basic/audio/audio.props.js +15 -0
  38. app-rn-runtime/components/basic/audio/audio.props.js.map +1 -0
  39. app-rn-runtime/components/basic/audio/audio.styles.js +61 -0
  40. app-rn-runtime/components/basic/audio/audio.styles.js.map +1 -0
  41. app-rn-runtime/components/basic/button/button.component.js +1 -1
  42. app-rn-runtime/components/basic/button/button.component.js.map +1 -1
  43. app-rn-runtime/components/basic/button/button.props.js.map +1 -1
  44. app-rn-runtime/components/basic/button/button.styles.js.map +1 -1
  45. app-rn-runtime/components/basic/buttongroup/buttongroup.component.js +1 -1
  46. app-rn-runtime/components/basic/buttongroup/buttongroup.component.js.map +1 -1
  47. app-rn-runtime/components/basic/buttongroup/buttongroup.props.js.map +1 -1
  48. app-rn-runtime/components/basic/buttongroup/buttongroup.styles.js.map +1 -1
  49. app-rn-runtime/components/basic/custom/custom.component.js +25 -0
  50. app-rn-runtime/components/basic/custom/custom.component.js.map +1 -0
  51. app-rn-runtime/components/basic/custom/custom.props.js +16 -0
  52. app-rn-runtime/components/basic/custom/custom.props.js.map +1 -0
  53. app-rn-runtime/components/basic/custom/custom.styles.js +18 -0
  54. app-rn-runtime/components/basic/custom/custom.styles.js.map +1 -0
  55. app-rn-runtime/components/basic/icon/icon.component.js +1 -1
  56. app-rn-runtime/components/basic/icon/icon.component.js.map +1 -1
  57. app-rn-runtime/components/basic/icon/icon.props.js.map +1 -1
  58. app-rn-runtime/components/basic/icon/icon.styles.js +5 -0
  59. app-rn-runtime/components/basic/icon/icon.styles.js.map +1 -1
  60. app-rn-runtime/components/basic/label/label.component.js +3 -2
  61. app-rn-runtime/components/basic/label/label.component.js.map +1 -1
  62. app-rn-runtime/components/basic/label/label.props.js.map +1 -1
  63. app-rn-runtime/components/basic/label/label.styles.js +8 -0
  64. app-rn-runtime/components/basic/label/label.styles.js.map +1 -1
  65. app-rn-runtime/components/basic/lottie/lottie.component.js +137 -0
  66. app-rn-runtime/components/basic/lottie/lottie.component.js.map +1 -0
  67. app-rn-runtime/components/basic/lottie/lottie.props.js +14 -0
  68. app-rn-runtime/components/basic/lottie/lottie.props.js.map +1 -0
  69. app-rn-runtime/components/basic/lottie/lottie.styles.js +11 -0
  70. app-rn-runtime/components/basic/lottie/lottie.styles.js.map +1 -0
  71. app-rn-runtime/components/basic/message/message.component.js +1 -1
  72. app-rn-runtime/components/basic/message/message.component.js.map +1 -1
  73. app-rn-runtime/components/basic/message/message.props.js.map +1 -1
  74. app-rn-runtime/components/basic/message/message.styles.js +22 -0
  75. app-rn-runtime/components/basic/message/message.styles.js.map +1 -1
  76. app-rn-runtime/components/basic/modal/modal.component.js.map +1 -1
  77. app-rn-runtime/components/basic/modal/modal.props.js.map +1 -1
  78. app-rn-runtime/components/basic/modal/modal.styles.js.map +1 -1
  79. app-rn-runtime/components/basic/picture/picture.component.js +40 -29
  80. app-rn-runtime/components/basic/picture/picture.component.js.map +1 -1
  81. app-rn-runtime/components/basic/picture/picture.props.js.map +1 -1
  82. app-rn-runtime/components/basic/picture/picture.styles.js.map +1 -1
  83. app-rn-runtime/components/basic/progress-bar/progress-bar.component.js +3 -2
  84. app-rn-runtime/components/basic/progress-bar/progress-bar.component.js.map +1 -1
  85. app-rn-runtime/components/basic/progress-bar/progress-bar.props.js.map +1 -1
  86. app-rn-runtime/components/basic/progress-bar/progress-bar.styles.js.map +1 -1
  87. app-rn-runtime/components/basic/progress-circle/progress-circle.component.js +1 -1
  88. app-rn-runtime/components/basic/progress-circle/progress-circle.component.js.map +1 -1
  89. app-rn-runtime/components/basic/progress-circle/progress-circle.props.js.map +1 -1
  90. app-rn-runtime/components/basic/progress-circle/progress-circle.styles.js.map +1 -1
  91. app-rn-runtime/components/basic/search/local-data-provider.js.map +1 -1
  92. app-rn-runtime/components/basic/search/search.component.js +5 -2
  93. app-rn-runtime/components/basic/search/search.component.js.map +1 -1
  94. app-rn-runtime/components/basic/search/search.props.js +1 -0
  95. app-rn-runtime/components/basic/search/search.props.js.map +1 -1
  96. app-rn-runtime/components/basic/search/search.styles.js +47 -0
  97. app-rn-runtime/components/basic/search/search.styles.js.map +1 -1
  98. app-rn-runtime/components/basic/skeleton/skeleton.component.js.map +1 -1
  99. app-rn-runtime/components/basic/spinner/spinner.component.js +13 -11
  100. app-rn-runtime/components/basic/spinner/spinner.component.js.map +1 -1
  101. app-rn-runtime/components/basic/spinner/spinner.props.js.map +1 -1
  102. app-rn-runtime/components/basic/spinner/spinner.styles.js +8 -0
  103. app-rn-runtime/components/basic/spinner/spinner.styles.js.map +1 -1
  104. app-rn-runtime/components/basic/video/video.component.js +56 -0
  105. app-rn-runtime/components/basic/video/video.component.js.map +1 -0
  106. app-rn-runtime/components/basic/video/video.props.js +22 -0
  107. app-rn-runtime/components/basic/video/video.props.js.map +1 -0
  108. app-rn-runtime/components/basic/video/video.styles.js +11 -0
  109. app-rn-runtime/components/basic/video/video.styles.js.map +1 -0
  110. app-rn-runtime/components/chart/area-chart/area-chart.component.js.map +1 -1
  111. app-rn-runtime/components/chart/bar-chart/bar-chart.component.js.map +1 -1
  112. app-rn-runtime/components/chart/bar-chart/bar-chart.props.js.map +1 -1
  113. app-rn-runtime/components/chart/basechart.component.js.map +1 -1
  114. app-rn-runtime/components/chart/basechart.props.js.map +1 -1
  115. app-rn-runtime/components/chart/bubble-chart/bubble-chart.component.js.map +1 -1
  116. app-rn-runtime/components/chart/column-chart/column-chart.component.js.map +1 -1
  117. app-rn-runtime/components/chart/donut-chart/donut-chart.component.js.map +1 -1
  118. app-rn-runtime/components/chart/donut-chart/donut-chart.props.js.map +1 -1
  119. app-rn-runtime/components/chart/line-chart/line-chart.component.js.map +1 -1
  120. app-rn-runtime/components/chart/line-chart/line-chart.props.js.map +1 -1
  121. app-rn-runtime/components/chart/pie-chart/pie-chart.component.js +1 -1
  122. app-rn-runtime/components/chart/pie-chart/pie-chart.component.js.map +1 -1
  123. app-rn-runtime/components/chart/pie-chart/pie-chart.props.js.map +1 -1
  124. app-rn-runtime/components/chart/theme/chart.theme.js.map +1 -1
  125. app-rn-runtime/components/container/accordion/accordion.component.js +63 -119
  126. app-rn-runtime/components/container/accordion/accordion.component.js.map +1 -1
  127. app-rn-runtime/components/container/accordion/accordion.props.js +1 -0
  128. app-rn-runtime/components/container/accordion/accordion.props.js.map +1 -1
  129. app-rn-runtime/components/container/accordion/accordion.styles.js +14 -4
  130. app-rn-runtime/components/container/accordion/accordion.styles.js.map +1 -1
  131. app-rn-runtime/components/container/accordion/accordionpane/accordionpane.component.js +43 -8
  132. app-rn-runtime/components/container/accordion/accordionpane/accordionpane.component.js.map +1 -1
  133. app-rn-runtime/components/container/accordion/accordionpane/accordionpane.props.js.map +1 -1
  134. app-rn-runtime/components/container/container.component.js +1 -1
  135. app-rn-runtime/components/container/container.component.js.map +1 -1
  136. app-rn-runtime/components/container/container.props.js.map +1 -1
  137. app-rn-runtime/components/container/container.styles.js.map +1 -1
  138. app-rn-runtime/components/container/layoutgrid/gridcolumn/gridcolumn.component.js +1 -1
  139. app-rn-runtime/components/container/layoutgrid/gridcolumn/gridcolumn.component.js.map +1 -1
  140. app-rn-runtime/components/container/layoutgrid/gridcolumn/gridcolumn.props.js.map +1 -1
  141. app-rn-runtime/components/container/layoutgrid/gridrow/gridrow.component.js +1 -1
  142. app-rn-runtime/components/container/layoutgrid/gridrow/gridrow.component.js.map +1 -1
  143. app-rn-runtime/components/container/layoutgrid/gridrow/gridrow.props.js.map +1 -1
  144. app-rn-runtime/components/container/layoutgrid/layoutgrid.component.js +1 -1
  145. app-rn-runtime/components/container/layoutgrid/layoutgrid.component.js.map +1 -1
  146. app-rn-runtime/components/container/layoutgrid/layoutgrid.props.js.map +1 -1
  147. app-rn-runtime/components/container/layoutgrid/layoutgrid.styles.js.map +1 -1
  148. app-rn-runtime/components/container/linearlayout/linearlayout.component.js +1 -1
  149. app-rn-runtime/components/container/linearlayout/linearlayout.component.js.map +1 -1
  150. app-rn-runtime/components/container/linearlayout/linearlayout.props.js.map +1 -1
  151. app-rn-runtime/components/container/linearlayout/linearlayoutitem/linearlayoutitem.component.js +1 -1
  152. app-rn-runtime/components/container/linearlayout/linearlayoutitem/linearlayoutitem.component.js.map +1 -1
  153. app-rn-runtime/components/container/linearlayout/linearlayoutitem/linearlayoutitem.props.js.map +1 -1
  154. app-rn-runtime/components/container/panel/panel-content/panel-content.component.js +1 -1
  155. app-rn-runtime/components/container/panel/panel-content/panel-content.component.js.map +1 -1
  156. app-rn-runtime/components/container/panel/panel-content/panel-content.props.js.map +1 -1
  157. app-rn-runtime/components/container/panel/panel-footer/panel-footer.component.js +1 -1
  158. app-rn-runtime/components/container/panel/panel-footer/panel-footer.component.js.map +1 -1
  159. app-rn-runtime/components/container/panel/panel-footer/panel-footer.props.js.map +1 -1
  160. app-rn-runtime/components/container/panel/panel.component.js +1 -1
  161. app-rn-runtime/components/container/panel/panel.component.js.map +1 -1
  162. app-rn-runtime/components/container/panel/panel.props.js.map +1 -1
  163. app-rn-runtime/components/container/panel/panel.styles.js +9 -0
  164. app-rn-runtime/components/container/panel/panel.styles.js.map +1 -1
  165. app-rn-runtime/components/container/partial-host.component.js.map +1 -1
  166. app-rn-runtime/components/container/tabs/tabheader/tabheader.component.js +42 -9
  167. app-rn-runtime/components/container/tabs/tabheader/tabheader.component.js.map +1 -1
  168. app-rn-runtime/components/container/tabs/tabheader/tabheader.props.js.map +1 -1
  169. app-rn-runtime/components/container/tabs/tabheader/tabheader.styles.js +12 -2
  170. app-rn-runtime/components/container/tabs/tabheader/tabheader.styles.js.map +1 -1
  171. app-rn-runtime/components/container/tabs/tabpane/tabpane.component.js +5 -2
  172. app-rn-runtime/components/container/tabs/tabpane/tabpane.component.js.map +1 -1
  173. app-rn-runtime/components/container/tabs/tabpane/tabpane.props.js.map +1 -1
  174. app-rn-runtime/components/container/tabs/tabs.component.js +84 -65
  175. app-rn-runtime/components/container/tabs/tabs.component.js.map +1 -1
  176. app-rn-runtime/components/container/tabs/tabs.props.js +1 -0
  177. app-rn-runtime/components/container/tabs/tabs.props.js.map +1 -1
  178. app-rn-runtime/components/container/tabs/tabs.styles.js +40 -1
  179. app-rn-runtime/components/container/tabs/tabs.styles.js.map +1 -1
  180. app-rn-runtime/components/container/tile/tile.component.js +1 -1
  181. app-rn-runtime/components/container/tile/tile.component.js.map +1 -1
  182. app-rn-runtime/components/container/tile/tile.props.js.map +1 -1
  183. app-rn-runtime/components/container/tile/tile.styles.js.map +1 -1
  184. app-rn-runtime/components/container/wizard/wizard.component.js +16 -7
  185. app-rn-runtime/components/container/wizard/wizard.component.js.map +1 -1
  186. app-rn-runtime/components/container/wizard/wizard.props.js.map +1 -1
  187. app-rn-runtime/components/container/wizard/wizard.styles.js +53 -1
  188. app-rn-runtime/components/container/wizard/wizard.styles.js.map +1 -1
  189. app-rn-runtime/components/container/wizard/wizardstep/wizardstep.component.js +1 -1
  190. app-rn-runtime/components/container/wizard/wizardstep/wizardstep.component.js.map +1 -1
  191. app-rn-runtime/components/container/wizard/wizardstep/wizardstep.props.js.map +1 -1
  192. app-rn-runtime/components/data/card/card-content/card-content.component.js +1 -1
  193. app-rn-runtime/components/data/card/card-content/card-content.component.js.map +1 -1
  194. app-rn-runtime/components/data/card/card-content/card-content.props.js.map +1 -1
  195. app-rn-runtime/components/data/card/card-footer/card-footer.component.js +1 -1
  196. app-rn-runtime/components/data/card/card-footer/card-footer.component.js.map +1 -1
  197. app-rn-runtime/components/data/card/card-footer/card-footer.props.js.map +1 -1
  198. app-rn-runtime/components/data/card/card.component.js +1 -1
  199. app-rn-runtime/components/data/card/card.component.js.map +1 -1
  200. app-rn-runtime/components/data/card/card.props.js.map +1 -1
  201. app-rn-runtime/components/data/form/form-action/form-action.component.js +0 -6
  202. app-rn-runtime/components/data/form/form-action/form-action.component.js.map +1 -1
  203. app-rn-runtime/components/data/form/form-action/form-action.props.js.map +1 -1
  204. app-rn-runtime/components/data/form/form-action/form-action.styles.js.map +1 -1
  205. app-rn-runtime/components/data/form/form-body/form-body.component.js +1 -1
  206. app-rn-runtime/components/data/form/form-body/form-body.component.js.map +1 -1
  207. app-rn-runtime/components/data/form/form-body/form-body.props.js.map +1 -1
  208. app-rn-runtime/components/data/form/form-field/form-field.component.js +3 -3
  209. app-rn-runtime/components/data/form/form-field/form-field.component.js.map +1 -1
  210. app-rn-runtime/components/data/form/form-field/form-field.props.js.map +1 -1
  211. app-rn-runtime/components/data/form/form-field/form-field.styles.js.map +1 -1
  212. app-rn-runtime/components/data/form/form-footer/form-footer.component.js +1 -1
  213. app-rn-runtime/components/data/form/form-footer/form-footer.component.js.map +1 -1
  214. app-rn-runtime/components/data/form/form-footer/form-footer.props.js.map +1 -1
  215. app-rn-runtime/components/data/form/form.component.js +3 -33
  216. app-rn-runtime/components/data/form/form.component.js.map +1 -1
  217. app-rn-runtime/components/data/form/form.props.js.map +1 -1
  218. app-rn-runtime/components/data/form/form.styles.js.map +1 -1
  219. app-rn-runtime/components/data/list/list-template/list-template.component.js +1 -1
  220. app-rn-runtime/components/data/list/list-template/list-template.component.js.map +1 -1
  221. app-rn-runtime/components/data/list/list-template/list-template.props.js.map +1 -1
  222. app-rn-runtime/components/data/list/list-template/list-template.styles.js.map +1 -1
  223. app-rn-runtime/components/data/list/list.component.js +86 -21
  224. app-rn-runtime/components/data/list/list.component.js.map +1 -1
  225. app-rn-runtime/components/data/list/list.props.js +2 -0
  226. app-rn-runtime/components/data/list/list.props.js.map +1 -1
  227. app-rn-runtime/components/data/list/list.styles.js.map +1 -1
  228. app-rn-runtime/components/device/barcodescanner/barcodescanner.component.js +3 -2
  229. app-rn-runtime/components/device/barcodescanner/barcodescanner.component.js.map +1 -1
  230. app-rn-runtime/components/device/barcodescanner/barcodescanner.props.js.map +1 -1
  231. app-rn-runtime/components/device/camera/camera.component.js +9 -4
  232. app-rn-runtime/components/device/camera/camera.component.js.map +1 -1
  233. app-rn-runtime/components/device/camera/camera.props.js +0 -1
  234. app-rn-runtime/components/device/camera/camera.props.js.map +1 -1
  235. app-rn-runtime/components/dialogs/alertdialog/alertdialog.component.js.map +1 -1
  236. app-rn-runtime/components/dialogs/alertdialog/alertdialog.props.js.map +1 -1
  237. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.component.js.map +1 -1
  238. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.props.js.map +1 -1
  239. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.styles.js +9 -0
  240. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.styles.js.map +1 -1
  241. app-rn-runtime/components/dialogs/dialog/dialog.component.js +1 -1
  242. app-rn-runtime/components/dialogs/dialog/dialog.component.js.map +1 -1
  243. app-rn-runtime/components/dialogs/dialog/dialog.props.js.map +1 -1
  244. app-rn-runtime/components/dialogs/dialogactions/dialogactions.component.js +1 -1
  245. app-rn-runtime/components/dialogs/dialogactions/dialogactions.component.js.map +1 -1
  246. app-rn-runtime/components/dialogs/dialogactions/dialogactions.props.js.map +1 -1
  247. app-rn-runtime/components/dialogs/dialogcontent/dialogcontent.component.js +1 -1
  248. app-rn-runtime/components/dialogs/dialogcontent/dialogcontent.component.js.map +1 -1
  249. app-rn-runtime/components/dialogs/dialogcontent/dialogcontent.props.js.map +1 -1
  250. app-rn-runtime/components/input/basedataset/basedataset.component.js.map +1 -1
  251. app-rn-runtime/components/input/basedataset/basedataset.props.js.map +1 -1
  252. app-rn-runtime/components/input/baseinput/baseinput.component.js +8 -1
  253. app-rn-runtime/components/input/baseinput/baseinput.component.js.map +1 -1
  254. app-rn-runtime/components/input/baseinput/baseinput.props.js.map +1 -1
  255. app-rn-runtime/components/input/basenumber/basenumber.component.js +1 -1
  256. app-rn-runtime/components/input/basenumber/basenumber.component.js.map +1 -1
  257. app-rn-runtime/components/input/basenumber/basenumber.props.js.map +1 -1
  258. app-rn-runtime/components/input/calendar/calendar.component.js +1 -1
  259. app-rn-runtime/components/input/calendar/calendar.component.js.map +1 -1
  260. app-rn-runtime/components/input/calendar/calendar.props.js.map +1 -1
  261. app-rn-runtime/components/input/calendar/calendar.styles.js +22 -0
  262. app-rn-runtime/components/input/calendar/calendar.styles.js.map +1 -1
  263. app-rn-runtime/components/input/calendar/views/month-view.js +1 -0
  264. app-rn-runtime/components/input/calendar/views/month-view.js.map +1 -1
  265. app-rn-runtime/components/input/checkbox/checkbox.component.js +1 -16
  266. app-rn-runtime/components/input/checkbox/checkbox.component.js.map +1 -1
  267. app-rn-runtime/components/input/checkbox/checkbox.props.js.map +1 -1
  268. app-rn-runtime/components/input/checkboxset/checkboxset.component.js +0 -38
  269. app-rn-runtime/components/input/checkboxset/checkboxset.component.js.map +1 -1
  270. app-rn-runtime/components/input/checkboxset/checkboxset.props.js.map +1 -1
  271. app-rn-runtime/components/input/chips/chips.component.js +1 -0
  272. app-rn-runtime/components/input/chips/chips.component.js.map +1 -1
  273. app-rn-runtime/components/input/chips/chips.props.js.map +1 -1
  274. app-rn-runtime/components/input/composite/composite.component.js +1 -1
  275. app-rn-runtime/components/input/composite/composite.component.js.map +1 -1
  276. app-rn-runtime/components/input/composite/composite.props.js.map +1 -1
  277. app-rn-runtime/components/input/currency/currency.component.js +6 -4
  278. app-rn-runtime/components/input/currency/currency.component.js.map +1 -1
  279. app-rn-runtime/components/input/currency/currency.props.js +1 -1
  280. app-rn-runtime/components/input/currency/currency.props.js.map +1 -1
  281. app-rn-runtime/components/input/currency/currency.styles.js +9 -0
  282. app-rn-runtime/components/input/currency/currency.styles.js.map +1 -1
  283. app-rn-runtime/components/input/epoch/base-datetime.component.js +6 -3
  284. app-rn-runtime/components/input/epoch/base-datetime.component.js.map +1 -1
  285. app-rn-runtime/components/input/epoch/date/date.component.js.map +1 -1
  286. app-rn-runtime/components/input/epoch/date/date.props.js.map +1 -1
  287. app-rn-runtime/components/input/epoch/date/date.styles.js +9 -0
  288. app-rn-runtime/components/input/epoch/date/date.styles.js.map +1 -1
  289. app-rn-runtime/components/input/epoch/date-picker.component.js.map +1 -1
  290. app-rn-runtime/components/input/epoch/datetime/datetime.component.js.map +1 -1
  291. app-rn-runtime/components/input/epoch/datetime/datetime.props.js.map +1 -1
  292. app-rn-runtime/components/input/epoch/datetime/datetime.styles.js +9 -0
  293. app-rn-runtime/components/input/epoch/datetime/datetime.styles.js.map +1 -1
  294. app-rn-runtime/components/input/epoch/time/time.component.js.map +1 -1
  295. app-rn-runtime/components/input/epoch/time/time.props.js.map +1 -1
  296. app-rn-runtime/components/input/epoch/time/time.styles.js +9 -0
  297. app-rn-runtime/components/input/epoch/time/time.styles.js.map +1 -1
  298. app-rn-runtime/components/input/fileupload/fileupload.component.js +1 -1
  299. app-rn-runtime/components/input/fileupload/fileupload.component.js.map +1 -1
  300. app-rn-runtime/components/input/fileupload/fileupload.props.js.map +1 -1
  301. app-rn-runtime/components/input/number/number.component.js +6 -13
  302. app-rn-runtime/components/input/number/number.component.js.map +1 -1
  303. app-rn-runtime/components/input/number/number.props.js +1 -1
  304. app-rn-runtime/components/input/number/number.props.js.map +1 -1
  305. app-rn-runtime/components/input/number/number.styles.js +5 -0
  306. app-rn-runtime/components/input/number/number.styles.js.map +1 -1
  307. app-rn-runtime/components/input/radioset/radioset.component.js +0 -40
  308. app-rn-runtime/components/input/radioset/radioset.component.js.map +1 -1
  309. app-rn-runtime/components/input/radioset/radioset.props.js.map +1 -1
  310. app-rn-runtime/components/input/rating/rating.component.js +2 -2
  311. app-rn-runtime/components/input/rating/rating.component.js.map +1 -1
  312. app-rn-runtime/components/input/rating/rating.props.js.map +1 -1
  313. app-rn-runtime/components/input/select/select.component.js +1 -1
  314. app-rn-runtime/components/input/select/select.component.js.map +1 -1
  315. app-rn-runtime/components/input/select/select.props.js.map +1 -1
  316. app-rn-runtime/components/input/select/select.styles.js +10 -0
  317. app-rn-runtime/components/input/select/select.styles.js.map +1 -1
  318. app-rn-runtime/components/input/slider/slider.component.js +3 -2
  319. app-rn-runtime/components/input/slider/slider.component.js.map +1 -1
  320. app-rn-runtime/components/input/slider/slider.props.js.map +1 -1
  321. app-rn-runtime/components/input/switch/switch.component.js +19 -22
  322. app-rn-runtime/components/input/switch/switch.component.js.map +1 -1
  323. app-rn-runtime/components/input/switch/switch.props.js.map +1 -1
  324. app-rn-runtime/components/input/switch/switch.styles.js +43 -7
  325. app-rn-runtime/components/input/switch/switch.styles.js.map +1 -1
  326. app-rn-runtime/components/input/text/text.component.js +6 -13
  327. app-rn-runtime/components/input/text/text.component.js.map +1 -1
  328. app-rn-runtime/components/input/text/text.props.js.map +1 -1
  329. app-rn-runtime/components/input/text/text.styles.js +5 -0
  330. app-rn-runtime/components/input/text/text.styles.js.map +1 -1
  331. app-rn-runtime/components/input/textarea/textarea.component.js +5 -13
  332. app-rn-runtime/components/input/textarea/textarea.component.js.map +1 -1
  333. app-rn-runtime/components/input/textarea/textarea.props.js.map +1 -1
  334. app-rn-runtime/components/input/textarea/textarea.styles.js +5 -0
  335. app-rn-runtime/components/input/textarea/textarea.styles.js.map +1 -1
  336. app-rn-runtime/components/input/toggle/toggle.component.js +17 -11
  337. app-rn-runtime/components/input/toggle/toggle.component.js.map +1 -1
  338. app-rn-runtime/components/input/toggle/toggle.props.js.map +1 -1
  339. app-rn-runtime/components/input/toggle/toggle.styles.js +28 -3
  340. app-rn-runtime/components/input/toggle/toggle.styles.js.map +1 -1
  341. app-rn-runtime/components/navigation/appnavbar/appnavbar.component.js +1 -1
  342. app-rn-runtime/components/navigation/appnavbar/appnavbar.component.js.map +1 -1
  343. app-rn-runtime/components/navigation/appnavbar/appnavbar.props.js.map +1 -1
  344. app-rn-runtime/components/navigation/appnavbar/appnavbar.styles.js.map +1 -1
  345. app-rn-runtime/components/navigation/basenav/basenav.component.js.map +1 -1
  346. app-rn-runtime/components/navigation/basenav/basenav.props.js +1 -0
  347. app-rn-runtime/components/navigation/basenav/basenav.props.js.map +1 -1
  348. app-rn-runtime/components/navigation/menu/menu.component.js +2 -1
  349. app-rn-runtime/components/navigation/menu/menu.component.js.map +1 -1
  350. app-rn-runtime/components/navigation/menu/menu.props.js.map +1 -1
  351. app-rn-runtime/components/navigation/menu/menu.styles.js +6 -0
  352. app-rn-runtime/components/navigation/menu/menu.styles.js.map +1 -1
  353. app-rn-runtime/components/navigation/navbar/navbar.component.js +2 -0
  354. app-rn-runtime/components/navigation/navbar/navbar.component.js.map +1 -1
  355. app-rn-runtime/components/navigation/navbar/navbar.props.js.map +1 -1
  356. app-rn-runtime/components/navigation/navbar/navbar.styles.js.map +1 -1
  357. app-rn-runtime/components/navigation/navitem/navitem.component.js +4 -3
  358. app-rn-runtime/components/navigation/navitem/navitem.component.js.map +1 -1
  359. app-rn-runtime/components/navigation/navitem/navitem.props.js +1 -0
  360. app-rn-runtime/components/navigation/navitem/navitem.props.js.map +1 -1
  361. app-rn-runtime/components/navigation/navitem/navitem.styles.js.map +1 -1
  362. app-rn-runtime/components/navigation/popover/popover.component.js +1 -1
  363. app-rn-runtime/components/navigation/popover/popover.component.js.map +1 -1
  364. app-rn-runtime/components/navigation/popover/popover.props.js.map +1 -1
  365. app-rn-runtime/components/navigation/popover/popover.styles.js.map +1 -1
  366. app-rn-runtime/components/page/content/content.component.js +1 -1
  367. app-rn-runtime/components/page/content/content.component.js.map +1 -1
  368. app-rn-runtime/components/page/left-panel/left-panel.component.js +1 -1
  369. app-rn-runtime/components/page/left-panel/left-panel.component.js.map +1 -1
  370. app-rn-runtime/components/page/left-panel/left-panel.props.js.map +1 -1
  371. app-rn-runtime/components/page/page-content/page-content.component.js +2 -2
  372. app-rn-runtime/components/page/page-content/page-content.component.js.map +1 -1
  373. app-rn-runtime/components/page/page-content/page-content.props.js.map +1 -1
  374. app-rn-runtime/components/page/page.component.js +1 -1
  375. app-rn-runtime/components/page/page.component.js.map +1 -1
  376. app-rn-runtime/components/page/partial/partial.component.js +1 -1
  377. app-rn-runtime/components/page/partial/partial.component.js.map +1 -1
  378. app-rn-runtime/components/page/partial-container/partial-container.component.js +1 -1
  379. app-rn-runtime/components/page/partial-container/partial-container.component.js.map +1 -1
  380. app-rn-runtime/components/page/partial-container/partial-container.props.js.map +1 -1
  381. app-rn-runtime/components/page/partial-container/partial-container.styles.js +2 -1
  382. app-rn-runtime/components/page/partial-container/partial-container.styles.js.map +1 -1
  383. app-rn-runtime/components/page/tabbar/tabbar.component.js +2 -1
  384. app-rn-runtime/components/page/tabbar/tabbar.component.js.map +1 -1
  385. app-rn-runtime/components/page/tabbar/tabbar.props.js.map +1 -1
  386. app-rn-runtime/components/prefab/prefab-container.component.js +1 -1
  387. app-rn-runtime/components/prefab/prefab-container.component.js.map +1 -1
  388. app-rn-runtime/core/asset.provider.js +5 -0
  389. app-rn-runtime/core/asset.provider.js.map +1 -0
  390. app-rn-runtime/core/base.component.js +131 -54
  391. app-rn-runtime/core/base.component.js.map +1 -1
  392. app-rn-runtime/core/components/textinput.component.js +37 -0
  393. app-rn-runtime/core/components/textinput.component.js.map +1 -0
  394. app-rn-runtime/core/device/camera-service.js.map +1 -1
  395. app-rn-runtime/core/device/scan-service.js.map +1 -1
  396. app-rn-runtime/core/display.manager.js.map +1 -1
  397. app-rn-runtime/core/event-notifier.js.map +1 -1
  398. app-rn-runtime/core/fixed-view.component.js.map +1 -1
  399. app-rn-runtime/core/formatters.js.map +1 -1
  400. app-rn-runtime/core/i18n.service.js +2 -0
  401. app-rn-runtime/core/i18n.service.js.map +1 -0
  402. app-rn-runtime/core/if.component.js +3 -3
  403. app-rn-runtime/core/if.component.js.map +1 -1
  404. app-rn-runtime/core/imageSizeEstimator.js +1 -0
  405. app-rn-runtime/core/imageSizeEstimator.js.map +1 -1
  406. app-rn-runtime/core/injector.js +16 -1
  407. app-rn-runtime/core/injector.js.map +1 -1
  408. app-rn-runtime/core/logger.js +4 -1
  409. app-rn-runtime/core/logger.js.map +1 -1
  410. app-rn-runtime/core/modal.service.js.map +1 -1
  411. app-rn-runtime/core/navigation.service.js.map +1 -1
  412. app-rn-runtime/core/network.service.js +17 -15
  413. app-rn-runtime/core/network.service.js.map +1 -1
  414. app-rn-runtime/core/partial.service.js.map +1 -1
  415. app-rn-runtime/core/props.provider.js.map +1 -1
  416. app-rn-runtime/core/scroll-view.component.js.map +1 -1
  417. app-rn-runtime/core/security.service.js.map +1 -1
  418. app-rn-runtime/core/spinner.service.js.map +1 -1
  419. app-rn-runtime/core/storage.service.js.map +1 -1
  420. app-rn-runtime/core/tappable.component.js +20 -4
  421. app-rn-runtime/core/tappable.component.js.map +1 -1
  422. app-rn-runtime/core/toast.service.js.map +1 -1
  423. app-rn-runtime/core/utils.js +9 -0
  424. app-rn-runtime/core/utils.js.map +1 -1
  425. app-rn-runtime/core/viewport.js.map +1 -1
  426. app-rn-runtime/gestures/swipe.animation.js +110 -0
  427. app-rn-runtime/gestures/swipe.animation.js.map +1 -0
  428. app-rn-runtime/package.json +33 -32
  429. app-rn-runtime/runtime/App.js +38 -22
  430. app-rn-runtime/runtime/App.js.map +1 -1
  431. app-rn-runtime/runtime/App.navigator.js +13 -14
  432. app-rn-runtime/runtime/App.navigator.js.map +1 -1
  433. app-rn-runtime/runtime/base-fragment.component.js +10 -8
  434. app-rn-runtime/runtime/base-fragment.component.js.map +1 -1
  435. app-rn-runtime/runtime/base-page.component.js.map +1 -1
  436. app-rn-runtime/runtime/base-partial.component.js.map +1 -1
  437. app-rn-runtime/runtime/base-prefab.component.js +1 -5
  438. app-rn-runtime/runtime/base-prefab.component.js.map +1 -1
  439. app-rn-runtime/runtime/lib-patch.js.map +1 -1
  440. app-rn-runtime/runtime/memo.component.js.map +1 -1
  441. app-rn-runtime/runtime/navigator/drawer.navigator.js +4 -0
  442. app-rn-runtime/runtime/navigator/drawer.navigator.js.map +1 -1
  443. app-rn-runtime/runtime/navigator/stack.navigator.js +5 -1
  444. app-rn-runtime/runtime/navigator/stack.navigator.js.map +1 -1
  445. app-rn-runtime/runtime/services/app-display-manager.service.js.map +1 -1
  446. app-rn-runtime/runtime/services/app-i18n.service.js +20 -0
  447. app-rn-runtime/runtime/services/app-i18n.service.js.map +1 -1
  448. app-rn-runtime/runtime/services/app-modal.service.js.map +1 -1
  449. app-rn-runtime/runtime/services/app-security.service.js +7 -7
  450. app-rn-runtime/runtime/services/app-security.service.js.map +1 -1
  451. app-rn-runtime/runtime/services/app-spinner.service.js +8 -3
  452. app-rn-runtime/runtime/services/app-spinner.service.js.map +1 -1
  453. app-rn-runtime/runtime/services/app-toast.service.js +1 -1
  454. app-rn-runtime/runtime/services/app-toast.service.js.map +1 -1
  455. app-rn-runtime/runtime/services/device/calendar-service.js.map +1 -1
  456. app-rn-runtime/runtime/services/device/camera-service.js +30 -9
  457. app-rn-runtime/runtime/services/device/camera-service.js.map +1 -1
  458. app-rn-runtime/runtime/services/device/contacts-service.js.map +1 -1
  459. app-rn-runtime/runtime/services/device/location-service.js.map +1 -1
  460. app-rn-runtime/runtime/services/device/permissions.js.map +1 -1
  461. app-rn-runtime/runtime/services/device/scan-service.js +15 -14
  462. app-rn-runtime/runtime/services/device/scan-service.js.map +1 -1
  463. app-rn-runtime/runtime/services/partial.service.js.map +1 -1
  464. app-rn-runtime/runtime/services/webprocess.service.js.map +1 -1
  465. app-rn-runtime/runtime/watcher.js.map +1 -1
  466. app-rn-runtime/styles/MediaQueryList.js.map +1 -1
  467. app-rn-runtime/styles/background.component.js +298 -0
  468. app-rn-runtime/styles/background.component.js.map +1 -0
  469. app-rn-runtime/styles/style-prop.validator.js +42 -8
  470. app-rn-runtime/styles/style-prop.validator.js.map +1 -1
  471. app-rn-runtime/styles/style-props.js +93 -0
  472. app-rn-runtime/styles/style-props.js.map +1 -0
  473. app-rn-runtime/styles/theme.js +14 -40
  474. app-rn-runtime/styles/theme.js.map +1 -1
  475. app-rn-runtime/styles/theme.variables.js +53 -1
  476. app-rn-runtime/styles/theme.variables.js.map +1 -1
  477. app-rn-runtime/variables/base-variable.js +3 -3
  478. app-rn-runtime/variables/base-variable.js.map +1 -1
  479. app-rn-runtime/variables/device/calendar/create-event.operation.js.map +1 -1
  480. app-rn-runtime/variables/device/calendar/delete-event.operation.js.map +1 -1
  481. app-rn-runtime/variables/device/calendar/get-events.operation.js.map +1 -1
  482. app-rn-runtime/variables/device/camera/capture-image.operation.js.map +1 -1
  483. app-rn-runtime/variables/device/camera/capture-video.operation.js.map +1 -1
  484. app-rn-runtime/variables/device/contacts/get-contacts.operation.js.map +1 -1
  485. app-rn-runtime/variables/device/device/app-info.operation.js.map +1 -1
  486. app-rn-runtime/variables/device/device/current-geo-position.operation.js.map +1 -1
  487. app-rn-runtime/variables/device/device/device-info.operation.js.map +1 -1
  488. app-rn-runtime/variables/device/device/network-info.operation.js.map +1 -1
  489. app-rn-runtime/variables/device/device/vibrate.operation.js.map +1 -1
  490. app-rn-runtime/variables/device/file/upload-file.operation.js +43 -21
  491. app-rn-runtime/variables/device/file/upload-file.operation.js.map +1 -1
  492. app-rn-runtime/variables/device/operation.provider.js.map +1 -1
  493. app-rn-runtime/variables/device/scan/scan.operation.js.map +1 -1
  494. app-rn-runtime/variables/device-variable.js.map +1 -1
  495. app-rn-runtime/variables/http.service.js +4 -13
  496. app-rn-runtime/variables/http.service.js.map +1 -1
  497. app-rn-runtime/variables/model-variable.js.map +1 -1
  498. app-rn-runtime/variables/service-variable.js +22 -11
  499. app-rn-runtime/variables/service-variable.js.map +1 -1
  500. app-rn-runtime/variables/utils/dataset-util.js.map +1 -1
  501. app-rn-runtime/variables/utils/inflight-queue.js.map +1 -1
  502. app-rn-runtime/variables/utils/variable.utils.js.map +1 -1
@@ -1 +1 @@
1
- {"version":3,"names":["Camera","Ionicons","BarCodeScanner","Platform","StyleSheet","TouchableOpacity","View","React","permissionManager","appDisplayManagerService","barcodeFormatOptions","opacity","styles","create","container","flex","flexDirection","closeWrapper","alignItems","paddingRight","topWrapper","backgroundColor","centerWrapper","leftWrapper","focused","rightWrapper","bottomWrapper","ScanService","constructor","displayManager","scanBarcode","params","format","barcodeFormat","OS","undefined","Promise","resolve","reject","requestPermissions","then","destroy","show","content","barCodeTypes","Constants","BarCodeType","result","call","absoluteFillObject","response","type","values","Object","index","indexOf","keys","text","data","cancelled","scanService"],"sources":["scan-service.tsx"],"sourcesContent":["import { Camera } from 'expo-camera';\nimport { Ionicons } from '@expo/vector-icons';\nimport { BarCodeScanner } from 'expo-barcode-scanner';\nimport { Platform, StyleSheet, TouchableOpacity, View } from 'react-native';\nimport React from 'react';\nimport { ScanInput, ScanOutput } from '@wavemaker/app-rn-runtime/variables/device/scan/scan.operation';\nimport { DisplayManager } from '@wavemaker/app-rn-runtime/core/display.manager';\nimport permissionManager from '@wavemaker/app-rn-runtime/runtime/services/device/permissions';\nimport appDisplayManagerService from '@wavemaker/app-rn-runtime/runtime/services/app-display-manager.service';\n\ninterface objectMap {\n [key: string]: string\n}\n\nconst barcodeFormatOptions: objectMap = {\n 'ALL': 'ALL',\n 'CODABAR': 'codabar',\n 'CODE_39': 'code39',\n 'CODE_93': 'code93',\n 'CODE_128': 'code128',\n 'DATA_MATRIX': 'datamatrix',\n 'EAN_8': 'ean8',\n 'EAN_13': 'ean13',\n 'ITF': 'itf14',\n 'PDF_417': 'pdf417',\n 'QR_CODE': 'qr',\n 'RSS14': 'rss14',\n 'RSS_EXPANDED': 'rssexpanded',\n 'UPC_E': 'upc_e',\n 'UPC_A': 'upc_a'\n};\nconst opacity = 'rgba(0, 0, 0, 0.6)';\nconst styles = StyleSheet.create({\n container: {\n flex: 1,\n flexDirection: 'column'\n },\n closeWrapper: {\n flex: 1,\n alignItems: 'flex-end',\n paddingRight: 10\n },\n topWrapper: {\n flex: 2,\n backgroundColor: opacity\n },\n centerWrapper: {\n flex: 2,\n flexDirection: 'row'\n },\n leftWrapper: {\n flex: 2,\n backgroundColor: opacity\n },\n focused: {\n flex: 10\n },\n rightWrapper: {\n flex: 2,\n backgroundColor: opacity\n },\n bottomWrapper: {\n flex: 2,\n backgroundColor: opacity\n },\n});\n\nexport class ScanService {\n\n constructor(private displayManager: DisplayManager) {}\n\n public scanBarcode(params: ScanInput): Promise<ScanOutput> {\n const format = params?.barcodeFormat || 'ALL';\n const barcodeFormat: string | undefined = Platform.OS === 'ios' ? undefined : barcodeFormatOptions[format];\n return new Promise((resolve, reject) => {\n permissionManager.requestPermissions('camera').then(() => {\n const destroy = this.displayManager.show({\n content: (<Camera\n barCodeScannerSettings={barcodeFormat ? {\n barCodeTypes: [BarCodeScanner.Constants.BarCodeType[barcodeFormat]],\n }: undefined}\n onBarCodeScanned={(result) => {\n destroy.call(this.displayManager);\n resolve(result);\n }}\n style={StyleSheet.absoluteFillObject}\n >\n <View style={styles.topWrapper}>\n <View style={styles.closeWrapper}>\n <TouchableOpacity\n onPress={() => {\n destroy.call(this.displayManager);\n }}>\n <Ionicons name='close-circle' size={32} color='white' />\n </TouchableOpacity>\n </View>\n </View>\n <View style={styles.centerWrapper}>\n <View style={styles.leftWrapper}/>\n <View style={styles.focused}/>\n <View style={styles.rightWrapper}/>\n </View>\n <View style={styles.bottomWrapper}/>\n </Camera>)\n });\n }, reject)\n }).then((response: any) => {\n let format;\n if (response.type) {\n const values = Object.values(BarCodeScanner.Constants.BarCodeType);\n const index = values.indexOf(response.type);\n format = index > -1 ? Object.keys(BarCodeScanner.Constants.BarCodeType)[index] : '';\n }\n return Promise.resolve({\n text: response.data,\n format : format || response.type,\n cancelled : false\n });\n });\n }\n}\nconst scanService = new ScanService(appDisplayManagerService);\nexport default scanService;\n"],"mappings":"AAAA,SAASA,MAAM,QAAQ,aAAa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StyleSheet","TouchableOpacity","View","React","permissionManager","appDisplayManagerService","barcodeFormatOptions","opacity","styles","create","container","flex","flexDirection","closeWrapper","justifyContent","alignItems","paddingBottom","topWrapper","backgroundColor","centerWrapper","leftWrapper","focused","rightWrapper","bottomWrapper","ScanService","constructor","displayManager","scanBarcode","params","format","barcodeFormat","OS","undefined","Promise","resolve","reject","requestPermissions","then","destroy","show","content","createElement","barCodeScannerSettings","barCodeTypes","Constants","BarCodeType","onBarCodeScanned","result","call","style","absoluteFillObject","onPress","name","size","color","response","type","values","Object","index","indexOf","keys","text","data","cancelled","scanService"],"sources":["scan-service.tsx"],"sourcesContent":["import { Camera } from 'expo-camera';\nimport { Ionicons } from '@expo/vector-icons';\nimport { BarCodeScanner } from 'expo-barcode-scanner';\nimport { Platform, StyleSheet, TouchableOpacity, View } from 'react-native';\nimport React from 'react';\nimport { ScanInput, ScanOutput } from '@wavemaker/app-rn-runtime/variables/device/scan/scan.operation';\nimport { DisplayManager } from '@wavemaker/app-rn-runtime/core/display.manager';\nimport permissionManager from '@wavemaker/app-rn-runtime/runtime/services/device/permissions';\nimport appDisplayManagerService from '@wavemaker/app-rn-runtime/runtime/services/app-display-manager.service';\n\ninterface objectMap {\n [key: string]: string\n}\n\nconst barcodeFormatOptions: objectMap = {\n 'ALL': 'ALL',\n 'CODABAR': 'codabar',\n 'CODE_39': 'code39',\n 'CODE_93': 'code93',\n 'CODE_128': 'code128',\n 'DATA_MATRIX': 'datamatrix',\n 'EAN_8': 'ean8',\n 'EAN_13': 'ean13',\n 'ITF': 'itf14',\n 'PDF_417': 'pdf417',\n 'QR_CODE': 'qr',\n 'RSS14': 'rss14',\n 'RSS_EXPANDED': 'rssexpanded',\n 'UPC_E': 'upc_e',\n 'UPC_A': 'upc_a'\n};\nconst opacity = 'rgba(0, 0, 0, 0.6)';\nconst styles = StyleSheet.create({\n container: {\n flex: 1,\n flexDirection: 'column'\n },\n closeWrapper: {\n flex: 1,\n justifyContent: 'flex-end',\n alignItems: 'center',\n paddingBottom: 32\n },\n topWrapper: {\n flex: 2,\n backgroundColor: opacity\n },\n centerWrapper: {\n flex: 2,\n flexDirection: 'row'\n },\n leftWrapper: {\n flex: 2,\n backgroundColor: opacity\n },\n focused: {\n flex: 10\n },\n rightWrapper: {\n flex: 2,\n backgroundColor: opacity\n },\n bottomWrapper: {\n flex: 2,\n backgroundColor: opacity\n },\n});\n\nexport class ScanService {\n\n constructor(private displayManager: DisplayManager) {}\n\n public scanBarcode(params: ScanInput): Promise<ScanOutput> {\n const format = params?.barcodeFormat || 'ALL';\n const barcodeFormat: string | undefined = Platform.OS === 'ios' ? undefined : barcodeFormatOptions[format];\n return new Promise((resolve, reject) => {\n permissionManager.requestPermissions('camera').then(() => {\n const destroy = this.displayManager.show({\n content: (<Camera\n barCodeScannerSettings={barcodeFormat ? {\n barCodeTypes: [BarCodeScanner.Constants.BarCodeType[barcodeFormat]],\n }: undefined}\n onBarCodeScanned={(result) => {\n destroy.call(this.displayManager);\n resolve(result);\n }}\n style={StyleSheet.absoluteFillObject}\n >\n <View style={styles.topWrapper}>\n </View>\n <View style={styles.centerWrapper}>\n <View style={styles.leftWrapper}/>\n <View style={styles.focused}/>\n <View style={styles.rightWrapper}/>\n </View>\n <View style={styles.bottomWrapper}>\n \n <View style={styles.closeWrapper}>\n <TouchableOpacity\n onPress={() => {\n destroy.call(this.displayManager);\n }}>\n <Ionicons name='close-circle' size={48} color='white' />\n </TouchableOpacity>\n </View>\n </View>\n </Camera>)\n });\n }, reject)\n }).then((response: any) => {\n let format;\n if (response.type) {\n const values = Object.values(BarCodeScanner.Constants.BarCodeType);\n const index = values.indexOf(response.type);\n format = index > -1 ? Object.keys(BarCodeScanner.Constants.BarCodeType)[index] : '';\n }\n return Promise.resolve({\n text: response.data,\n format : format || response.type,\n cancelled : false\n });\n });\n }\n}\nconst scanService = new ScanService(appDisplayManagerService);\nexport default scanService;\n"],"mappings":"AAAA,SAASA,MAAM,QAAQ,aAAa;AACpC,SAASC,QA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O,CAACC,OAAO,CAAC;QACrB4B,IAAI,EAAEP,QAAQ,CAACQ,IAAI;QACnBlC,MAAM,EAAGA,MAAM,IAAI0B,QAAQ,CAACC,IAAI;QAChCQ,SAAS,EAAG;MACd,CAAC,CAAC;IACJ,CAAC,CAAC;EACJ;AACF;AACA,MAAMC,WAAW,GAAG,IAAIzC,WAAW,CAACnB,wBAAwB,CAAC;AAC7D,eAAe4D,WAAW"}
@@ -1 +1 @@
1
- {"version":3,"names":["injector","PartialServiceImpl","constructor","partials","get","partialName","partial","find","p","name","component"],"sources":["partial.service.tsx"],"sourcesContent":["import injector from '@wavemaker/app-rn-runtime/core/injector';\nimport PartialService from '@wavemaker/app-rn-runtime/core/partial.service';\nimport AppConfig from '@wavemaker/app-rn-runtime/core/AppConfig';\n\nexport class PartialServiceImpl implements PartialService {\n\n public constructor(private partials = null as any) {\n\n }\n\n get(partialName: string) {\n if (!this.partials) {\n this.partials = injector.get<AppConfig>('APP_CONFIG').partials;\n }\n const partial = this.partials.find((p: any) => p.name === partialName);\n return partial?.component;\n }\n}\n\nexport default new PartialServiceImpl();"],"mappings":"AAAA,OAAOA,QAAQ,MAAM,yCAAyC;AAI9D,OAAO,MAAMC,kBAAkB,CAA2B;EAE/CC,WAAW,GAAiC;IAAA,IAAxBC,QAAQ,uEAAG,IAAI;IAAA,KAAfA,QAAQ,GAARA,QAAQ;EAEnC;EAEAC,GAAG,CAACC,WAAmB,EAAE;IACrB,IAAI,CAAC,IAAI,CAACF,QAAQ,EAAE;MAChB,IAAI,CAACA,QAAQ,GAAGH,QAAQ,CAACI,GAAG,CAAY,YAAY,CAAC,CAACD,QAAQ;IAClE;IACA,MAAMG,OAAO,GAAG,IAAI,CAACH,QAAQ,CAACI,IAAI,CAAEC,CAAM,IAAKA,CAAC,CAACC,IAAI,KAAKJ,WAAW,CAAC;IACtE,OAAOC,OAAO,aAAPA,OAAO,uBAAPA,OAAO,CAAEI,SAAS;EAC7B;AACJ;AAEA,eAAe,IAAIT,kBAAkB,EAAE"}
1
+ {"version":3,"names":["injector","PartialServiceImpl","constructor","partials","arguments","length","undefined","get","partialName","partial","find","p","name","component"],"sources":["partial.service.tsx"],"sourcesContent":["import injector from '@wavemaker/app-rn-runtime/core/injector';\nimport PartialService from '@wavemaker/app-rn-runtime/core/partial.service';\nimport AppConfig from '@wavemaker/app-rn-runtime/core/AppConfig';\n\nexport class PartialServiceImpl implements PartialService {\n\n public constructor(private partials = null as any) {\n\n }\n\n get(partialName: string) {\n if (!this.partials) {\n this.partials = injector.get<AppConfig>('APP_CONFIG').partials;\n }\n const partial = this.partials.find((p: any) => p.name === partialName);\n return partial?.component;\n }\n}\n\nexport default new PartialServiceImpl();"],"mappings":"AAAA,OAAOA,QAAQ,MAAM,yCAAyC;AAI9D,OAAO,MAAMC,kBAAkB,CAA2B;EAE/CC,WAAWA,CAAA,EAAiC;IAAA,IAAxBC,QAAQ,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,IAAI;IAAA,KAAfD,QAAQ,GAARA,QAAQ;EAEnC;EAEAI,GAAGA,CAACC,WAAmB,EAAE;IACrB,IAAI,CAAC,IAAI,CAACL,QAAQ,EAAE;MAChB,IAAI,CAACA,QAAQ,GAAGH,QAAQ,CAACO,GAAG,CAAY,YAAY,CAAC,CAACJ,QAAQ;IAClE;IACA,MAAMM,OAAO,GAAG,IAAI,CAACN,QAAQ,CAACO,IAAI,CAAEC,CAAM,IAAKA,CAAC,CAACC,IAAI,KAAKJ,WAAW,CAAC;IACtE,OAAOC,OAAO,aAAPA,OAAO,uBAAPA,OAAO,CAAEI,SAAS;EAC7B;AACJ;AAEA,eAAe,IAAIZ,kBAAkB,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"names":["axios","React","Component","Dimensions","View","WmWebview","injector","AppDisplayManagerService","windowWidth","get","width","windowHeight","height","WebProcessWebViewProps","WebProcessWebView","constructor","props","getScriptToInject","process","render","src","incognito","root","e","w","setTimeout","executeScript","then","output","onComplete","WebProcessService","execute","hookUrl","useSystemBrowser","baseUrl","url","withCredentials","response","executeWithSystemBrowser","data","executeWithInAppBrowser","processInfo","Promise","reject","resolve","destroyFn","show","content","encodeURIComponent","ouput","call"],"sources":["webprocess.service.tsx"],"sourcesContent":["import axios from \"axios\";\nimport React, { Component } from \"react\";\nimport { Dimensions, View } from \"react-native\";\n\nimport WmWebview from \"@wavemaker/app-rn-runtime/components/advanced/webview/webview.component\";\nimport AppConfig from \"@wavemaker/app-rn-runtime/core/AppConfig\";\nimport injector from \"@wavemaker/app-rn-runtime/core/injector\";\n\nimport AppDisplayManagerService from \"./app-display-manager.service\";\n\ndeclare const window: any, document: any, alert: any;\n\nconst windowWidth = Dimensions.get('window').width;\nconst windowHeight = Dimensions.get('window').height;\n\nclass WebProcessWebViewProps {\n src: string = \"\";\n process: string = \"\";\n incognito = false;\n onComplete?: (output: string) => any = null as any;\n}\n \nclass WebProcessWebView extends Component<WebProcessWebViewProps> {\n\n constructor(props: WebProcessWebViewProps) {\n super(props);\n }\n\n private getScriptToInject(process: string): string {\n return `(function() {\n var elements = document.querySelectorAll('body.flex>a.link');\n for (var i = 0; i < elements.length; i++) {\n var href = elements[i].href;\n if (href && href.indexOf('://services/webprocess/${process}?process_output=')) {\n return href.split('process_output=')[1];\n }\n }\n window.isWebLoginProcess = true;\n })()`;\n }\n\n render() {\n return(\n <View style={{\n width: windowWidth,\n height: windowHeight\n }}>\n <WmWebview src={this.props.src}\n incognito={this.props.incognito}\n title=\"\"\n styles={{\n root: {\n width: '100%',\n height: '100%'\n }\n }}\n onLoad={(e, w) => {\n setTimeout(() => {\n w.executeScript(this.getScriptToInject(this.props.process))\n .then((output) => {\n if (output) {\n const onComplete = this.props.onComplete;\n onComplete && onComplete(output as string);\n }\n });\n }, 1000);\n }}></WmWebview>\n </View>\n );\n }\n}\n\nexport class WebProcessService {\n\n baseUrl: string | null = null;\n\n constructor() {}\n\n public execute(process: string, hookUrl: string, useSystemBrowser = false, incognito = false): Promise<any> {\n if (!this.baseUrl) {\n this.baseUrl = injector.get<AppConfig>('APP_CONFIG').url;\n }\n return axios.get(this.baseUrl + `/services/webprocess/prepare?processName=${process}&hookUrl=${hookUrl}&requestSourceType=MOBILE`, {\n withCredentials: true\n })\n .then((response) => {\n if (useSystemBrowser) {\n return this.executeWithSystemBrowser(response.data);\n } else {\n return this.executeWithInAppBrowser(response.data, process, incognito);\n }\n }).then(output => {\n return axios.get(this.baseUrl + '/services/webprocess/decode?encodedProcessdata=' + output, {\n withCredentials: true\n });\n });\n }\n\n private executeWithSystemBrowser(processInfo: string): Promise<any> {\n return Promise.reject('Web Process in System browser is nor ready yet');\n }\n\n private executeWithInAppBrowser(processInfo: string, process: string, incognito: boolean): Promise<any> {\n return new Promise((resolve, reject) => {\n let destroyFn = () => {};\n destroyFn = AppDisplayManagerService.show({\n content: (\n <WebProcessWebView \n src={this.baseUrl + '/services/webprocess/start?process=' + encodeURIComponent(processInfo)}\n incognito={incognito}\n process={process}\n onComplete={(ouput) => {\n resolve(ouput);\n destroyFn.call(AppDisplayManagerService);\n }}></WebProcessWebView>\n ),\n \n });\n });\n }\n}\n\nexport default new WebProcessService();"],"mappings":";;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,KAAK,IAAIC,SAAS,QAAQ,OAAO;AACxC,SAASC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAE/C,OAAOC,SAAS,MAAM,yEAAyE;AAE/F,OAAOC,QAAQ,MAAM,yCAAyC;AAE9D,OAAOC,wBAAwB,MAAM,+BAA+B;AAIpE,MAAMC,WAAW,GAAGL,UAAU,CAACM,GAAG,CAAC,QAAQ,CAAC,CAACC,KAAK;AAClD,MAAMC,YAAY,GAAGR,UAAU,CAACM,GAAG,CAAC,QAAQ,CAAC,CAACG,MAAM;AAEpD,MAAMC,sBAAsB,CAAC;EAAA;IAAA,6BACX,EAAE;IAAA,iCACE,EAAE;IAAA,mCACR,KAAK;IAAA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ACrBL,OAAO,CAACK,KAAK,CAAC;YACdJ,SAAS,CAACK,IAAI,CAAC3C,wBAAwB,CAAC;UAC1C;QAAE;MAGR,CAAC,CAAC;IACR,CAAC,CAAC;EACN;AACJ;AAEA,eAAe,IAAIuB,iBAAiB,EAAE"}
1
+ {"version":3,"names":["axios","React","Component","Dimensions","View","WmWebview","injector","AppDisplayManagerService","windowWidth","get","width","windowHeight","height","WebProcessWebViewProps","constructor","_defineProperty","WebProcessWebView","props","getScriptToInject","process","render","createElement","style","src","incognito","title","styles","root","onLoad","e","w","setTimeout","executeScript","then","output","onComplete","WebProcessService","execute","hookUrl","useSystemBrowser","arguments","length","undefined","baseUrl","url","withCredentials","response","executeWithSystemBrowser","data","executeWithInAppBrowser","processInfo","Promise","reject","resolve","destroyFn","show","content","encodeURIComponent","ouput","call"],"sources":["webprocess.service.tsx"],"sourcesContent":["import axios from \"axios\";\nimport React, { Component } from \"react\";\nimport { Dimensions, View } from \"react-native\";\n\nimport WmWebview from \"@wavemaker/app-rn-runtime/components/advanced/webview/webview.component\";\nimport AppConfig from \"@wavemaker/app-rn-runtime/core/AppConfig\";\nimport injector from \"@wavemaker/app-rn-runtime/core/injector\";\n\nimport AppDisplayManagerService from \"./app-display-manager.service\";\n\ndeclare const window: any, document: any, alert: any;\n\nconst windowWidth = Dimensions.get('window').width;\nconst windowHeight = Dimensions.get('window').height;\n\nclass WebProcessWebViewProps {\n src: string = \"\";\n process: string = \"\";\n incognito = false;\n onComplete?: (output: string) => any = null as any;\n}\n \nclass WebProcessWebView extends Component<WebProcessWebViewProps> {\n\n constructor(props: WebProcessWebViewProps) {\n super(props);\n }\n\n private getScriptToInject(process: string): string {\n return `(function() {\n var elements = document.querySelectorAll('body.flex>a.link');\n for (var i = 0; i < elements.length; i++) {\n var href = elements[i].href;\n if (href && href.indexOf('://services/webprocess/${process}?process_output=')) {\n return href.split('process_output=')[1];\n }\n }\n window.isWebLoginProcess = true;\n })()`;\n }\n\n render() {\n return(\n <View style={{\n width: windowWidth,\n height: windowHeight\n }}>\n <WmWebview src={this.props.src}\n incognito={this.props.incognito}\n title=\"\"\n styles={{\n root: {\n width: '100%',\n height: '100%'\n }\n }}\n onLoad={(e, w) => {\n setTimeout(() => {\n w.executeScript(this.getScriptToInject(this.props.process))\n .then((output) => {\n if (output) {\n const onComplete = this.props.onComplete;\n onComplete && onComplete(output as string);\n }\n });\n }, 1000);\n }}></WmWebview>\n </View>\n );\n }\n}\n\nexport class WebProcessService {\n\n baseUrl: string | null = null;\n\n constructor() {}\n\n public execute(process: string, hookUrl: string, useSystemBrowser = false, incognito = false): Promise<any> {\n if (!this.baseUrl) {\n this.baseUrl = injector.get<AppConfig>('APP_CONFIG').url;\n }\n return axios.get(this.baseUrl + `/services/webprocess/prepare?processName=${process}&hookUrl=${hookUrl}&requestSourceType=MOBILE`, {\n withCredentials: true\n })\n .then((response) => {\n if (useSystemBrowser) {\n return this.executeWithSystemBrowser(response.data);\n } else {\n return this.executeWithInAppBrowser(response.data, process, incognito);\n }\n }).then(output => {\n return axios.get(this.baseUrl + '/services/webprocess/decode?encodedProcessdata=' + output, {\n withCredentials: true\n });\n });\n }\n\n private executeWithSystemBrowser(processInfo: string): Promise<any> {\n return Promise.reject('Web Process in System browser is nor ready yet');\n }\n\n private executeWithInAppBrowser(processInfo: string, process: string, incognito: boolean): Promise<any> {\n return new Promise((resolve, reject) => {\n let destroyFn = () => {};\n destroyFn = AppDisplayManagerService.show({\n content: (\n <WebProcessWebView \n src={this.baseUrl + '/services/webprocess/start?process=' + encodeURIComponent(processInfo)}\n incognito={incognito}\n process={process}\n onComplete={(ouput) => {\n resolve(ouput);\n destroyFn.call(AppDisplayManagerService);\n }}></WebProcessWebView>\n ),\n \n });\n });\n }\n}\n\nexport default new WebProcessService();"],"mappings":";;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,KAAK,IAAIC,SAAS,QAAQ,OAAO;AACxC,SAASC,UAAU,EAAEC,IAAI,QAAQ,cAAc;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GAAG,iDAAiD,GAAGT,MAAM,EAAE;QAC1FW,eAAe,EAAE;MACnB,CAAC,CAAC;IACN,CAAC,CAAC;EACV;EAEQE,wBAAwBA,CAACG,WAAmB,EAAgB;IAChE,OAAOC,OAAO,CAACC,MAAM,CAAC,gDAAgD,CAAC;EAC3E;EAEQH,uBAAuBA,CAACC,WAAmB,EAAE/B,OAAe,EAAEK,SAAkB,EAAgB;IACpG,OAAO,IAAI2B,OAAO,CAAC,CAACE,OAAO,EAAED,MAAM,KAAK;MACpC,IAAIE,SAAS,GAAGA,CAAA,KAAM,CAAC,CAAC;MACxBA,SAAS,GAAG/C,wBAAwB,CAACgD,IAAI,CAAC;QACtCC,OAAO,eACLvD,KAAA,CAAAoB,aAAA,CAACL,iBAAiB;UAChBO,GAAG,EAAE,IAAI,CAACoB,OAAO,GAAI,qCAAqC,GAAGc,kBAAkB,CAACP,WAAW,CAAE;UAC7F1B,SAAS,EAAEA,SAAU;UACrBL,OAAO,EAAEA,OAAQ;UACjBgB,UAAU,EAAGuB,KAAK,IAAK;YACrBL,OAAO,CAACK,KAAK,CAAC;YACdJ,SAAS,CAACK,IAAI,CAACpD,wBAAwB,CAAC;UAC1C;QAAE,CAAoB;MAG5B,CAAC,CAAC;IACR,CAAC,CAAC;EACN;AACJ;AAEA,eAAe,IAAI6B,iBAAiB,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"names":["isArray","clone","useEffect","useState","WIDGET_LOGGER","WATCH_LOGGER","extend","WatchExpression","constructor","fn","onChange","last","execute","getExpBody","expBody","expStr","toString","substring","indexOf","lastIndexOf","e","isEqual","$old","$new","isArrayObj","length","i","value","check","start","Date","now","changed","lastExecutionTime","debug","Watcher","isActive","expressions","forEach","expression","children","child","create","parent","push","remove","splice","destroy","clear","watch","count","useWatcher","change","watcher"],"sources":["watcher.ts"],"sourcesContent":["import { isEqual as _isEqual, isArray, isObject, clone, remove, reverse, sortBy } from 'lodash';\nimport { useEffect, useMemo, useState } from 'react';\nimport { WIDGET_LOGGER } from '@wavemaker/app-rn-runtime/core/base.component';\n\nconst WATCH_LOGGER = WIDGET_LOGGER.extend(\"watch\");\n\nclass WatchExpression {\n private last: any = null;\n private expBody: string = null as any;\n public lastExecutionTime = 0;\n\n constructor(private fn: Function, private onChange: (prev: any, now: any) => any) {\n this.last = this.execute();\n if (isArray(this.last)) {\n this.last = clone(this.last);\n }\n }\n\n private getExpBody() {\n if (!this.expBody) {\n const expStr = this.fn.toString();\n this.expBody = expStr.substring(\n expStr.indexOf('return ') + 7,\n expStr.lastIndexOf(';'));\n }\n return this.expBody;\n }\n \n private execute() {\n try {\n return this.fn();\n } catch(e) {\n //do nothing\n return null;\n }\n }\n\n private isEqual($old: any, $new: any) {\n const isArrayObj = isArray($old) || isArray($new);\n if (isArrayObj) {\n if (($old && !$new) \n || (!$old && $new)\n || $old.length !== $new.length) {\n return false;\n }\n for(let i = 0; i < $old.length; i++) {\n if ($old[i] !== $new[i]) {\n return false;\n }\n }\n return true;\n }\n return $old === $new;\n }\n\n get value() {\n return this.last;\n }\n\n public check() {\n const start = Date.now();\n const now = this.execute();\n const changed = !this.isEqual(this.last, now);\n this.lastExecutionTime = Date.now() - start;\n if (changed) {\n WATCH_LOGGER.debug(() => {\n if (this.getExpBody() !== 'fragment') {\n return `Watcher: <${this.getExpBody()}> Changed from ${this.last} to ${now} `;\n }\n return '';\n });\n this.onChange(this.last, now);\n this.last = now;\n if (isArray(this.last)) {\n this.last = clone(this.last);\n }\n return true;\n }\n return false;\n }\n}\n\nexport class Watcher {\n public static ROOT = new Watcher();\n public expressions = [] as WatchExpression[];\n public isActive = true;\n public parent: Watcher = null as any;\n public children = [] as Watcher[];\n private constructor() {}\n\n check() {\n if (this.isActive) {\n this.expressions.forEach(expression => expression.check());\n this.children.forEach(child => {\n child.check();\n });\n }\n }\n \n create() {\n const child = new Watcher();\n child.parent = this;\n this.children.push(child);\n return child;\n }\n\n remove(child: Watcher) {\n if (this.children.length > 0) {\n const i = this.children.indexOf(child);\n if (i >= 0) {\n this.children.splice(i, 1);\n }\n }\n }\n\n destroy() {\n this.clear();\n this.parent && this.parent.remove(this);\n }\n\n clear() {\n this.children = [];\n this.expressions = [];\n }\n\n watch(fn: Function, onChange: (prev: any, now: any) => any) {\n const expression = new WatchExpression(fn, onChange);\n this.expressions.push(expression);\n return expression;\n }\n\n count() {\n if (!this.isActive) {\n return 0;\n }\n let count = this.expressions.length;\n this.children.forEach(child => {\n count += child.count();\n });\n return count;\n }\n}\n\nexport function useWatcher(parent: Watcher) {\n const [change, onChange] = useState({});\n let [ watcher ] = useState(() => parent.create());\n watcher.clear();\n useEffect(() => { \n return () => {\n watcher.destroy();\n };\n }, []);\n return {\n watch: (fn: Function) => {\n return watcher.watch(fn, () => onChange({})).value;\n }\n };\n};"],"mappings":";;;AAAA,SAA8BA,OAAO,EAAYC,KAAK,QAAiC,QAAQ;AAC/F,SAASC,SAAS,EAAWC,QAAQ,QAAQ,OAAO;AACpD,SAASC,aAAa,QAAQ,+CAA+C;AAE7E,MAAMC,YAAY,GAAGD,aAAa,CAACE,MAAM,CAAC,OAAO,CAAC;AAElD,MAAMC,eAAe,CAAC;EAKlBC,WAAW,CAASC,EAAY,EAAUC,QAAsC,EAAE;IAAA,KAA9DD,EAAY,GAAZA,EAAY;IAAA,KAAUC,QAAsC,GAAtCA,QAAsC;IAAA,8BAJ5D,IAAI;IAAA,iCACE,IAAI;IAAA,2CACH,CAAC;IAGxB,IAAI,CAACC,IAAI,GAAG,IAAI,CAACC,OAAO,EAAE;IAC1B,IAAIZ,OAAO,CAAC,IAAI,CAACW,IAAI,CAAC,EAAE;MACpB,IAAI,CAACA,IAAI,GAAGV,KAAK,CAAC,IAAI,CAACU,IAAI,CAAC;IAChC;EACJ;EAEQE,UAAU,GAAG;IACjB,IAAI,CAAC,IAAI,CAACC,OAAO,EAAE;MACf,MAAMC,MAAM,GAAG,IAAI,CAACN,EAAE,CAACO,QAAQ,EAAE;MACjC,IAAI,CAACF,OAAO,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,OAAO,MAAM;MACTmD,OAAO,CAACN,OAAO,EAAE;IACrB,CAAC;EACL,CAAC,EAAE,EAAE,CAAC;EACN,OAAO;IACHE,KAAK,EAAGxC,EAAY,IAAK;MACrB,OAAO4C,OAAO,CAACJ,KAAK,CAACxC,EAAE,EAAE,MAAMC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAACiB,KAAK;IACtD;EACJ,CAAC;AACL;AAAC"}
1
+ {"version":3,"names":["isArray","clone","useEffect","useState","WIDGET_LOGGER","WATCH_LOGGER","extend","WatchExpression","constructor","fn","onChange","_defineProperty","last","execute","getExpBody","expBody","expStr","toString","substring","indexOf","lastIndexOf","e","isEqual","$old","$new","isArrayObj","length","i","value","check","start","Date","now","changed","lastExecutionTime","debug","Watcher","isActive","expressions","forEach","expression","children","child","create","parent","push","remove","splice","destroy","clear","watch","count","useWatcher","change","watcher"],"sources":["watcher.ts"],"sourcesContent":["import { isEqual as _isEqual, isArray, isObject, clone, remove, reverse, sortBy } from 'lodash';\nimport { useEffect, useMemo, useState } from 'react';\nimport { WIDGET_LOGGER } from '@wavemaker/app-rn-runtime/core/base.component';\n\nconst WATCH_LOGGER = WIDGET_LOGGER.extend(\"watch\");\n\nclass WatchExpression {\n private last: any = null;\n private expBody: string = null as any;\n public lastExecutionTime = 0;\n\n constructor(private fn: Function, private onChange: (prev: any, now: any) => any) {\n this.last = this.execute();\n if (isArray(this.last)) {\n this.last = clone(this.last);\n }\n }\n\n private getExpBody() {\n if (!this.expBody) {\n const expStr = this.fn.toString();\n this.expBody = expStr.substring(\n expStr.indexOf('return ') + 7,\n expStr.lastIndexOf(';'));\n }\n return this.expBody;\n }\n \n private execute() {\n try {\n return this.fn();\n } catch(e) {\n //do nothing\n return null;\n }\n }\n\n private isEqual($old: any, $new: any) {\n const isArrayObj = isArray($old) || isArray($new);\n if (isArrayObj) {\n if (($old && !$new) \n || (!$old && $new)\n || $old.length !== $new.length) {\n return false;\n }\n for(let i = 0; i < $old.length; i++) {\n if ($old[i] !== $new[i]) {\n return false;\n }\n }\n return true;\n }\n return $old === $new;\n }\n\n get value() {\n return this.last;\n }\n\n public check() {\n const start = Date.now();\n const now = this.execute();\n const changed = !this.isEqual(this.last, now);\n this.lastExecutionTime = Date.now() - start;\n if (changed) {\n WATCH_LOGGER.debug(() => {\n if (this.getExpBody() !== 'fragment') {\n return `Watcher: <${this.getExpBody()}> Changed from ${this.last} to ${now} `;\n }\n return '';\n });\n this.onChange(this.last, now);\n this.last = now;\n if (isArray(this.last)) {\n this.last = clone(this.last);\n }\n return true;\n }\n return false;\n }\n}\n\nexport class Watcher {\n public static ROOT = new Watcher();\n public expressions = [] as WatchExpression[];\n public isActive = true;\n public parent: Watcher = null as any;\n public children = [] as Watcher[];\n private constructor() {}\n\n check() {\n if (this.isActive) {\n this.expressions.forEach(expression => expression.check());\n this.children.forEach(child => {\n child.check();\n });\n }\n }\n \n create() {\n const child = new Watcher();\n child.parent = this;\n this.children.push(child);\n return child;\n }\n\n remove(child: Watcher) {\n if (this.children.length > 0) {\n const i = this.children.indexOf(child);\n if (i >= 0) {\n this.children.splice(i, 1);\n }\n }\n }\n\n destroy() {\n this.clear();\n this.parent && this.parent.remove(this);\n }\n\n clear() {\n this.children = [];\n this.expressions = [];\n }\n\n watch(fn: Function, onChange: (prev: any, now: any) => any) {\n const expression = new WatchExpression(fn, onChange);\n this.expressions.push(expression);\n return expression;\n }\n\n count() {\n if (!this.isActive) {\n return 0;\n }\n let count = this.expressions.length;\n this.children.forEach(child => {\n count += child.count();\n });\n return count;\n }\n}\n\nexport function useWatcher(parent: Watcher) {\n const [change, onChange] = useState({});\n let [ watcher ] = useState(() => parent.create());\n watcher.clear();\n useEffect(() => { \n return () => {\n watcher.destroy();\n };\n }, []);\n return {\n watch: (fn: Function) => {\n return watcher.watch(fn, () => onChange({})).value;\n }\n };\n};"],"mappings":";;;AAAA,SAA8BA,OAAO,EAAYC,KAAK,QAAiC,QAAQ;AAC/F,SAASC,SAAS,EAAWC,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","matches","windowDimensions","get","match","type","orientation","width","height"],"sources":["MediaQueryList.ts"],"sourcesContent":["import mediaQuery from \"css-mediaquery\";\nimport { Dimensions } from \"react-native\";\nimport viewport from \"@wavemaker/app-rn-runtime/core/viewport\";\n\nexport default class MediaQueryList /* extends MediaQueryList */ {\n\n constructor(private query: string) {}\n\n public get matches(): boolean {\n const windowDimensions = Dimensions.get(\"window\");\n return mediaQuery.match(this.query, {\n type: \"screen\",\n orientation: viewport.orientation,\n ...windowDimensions,\n \"device-width\": viewport.width,\n \"device-height\": viewport.height,\n } as any);\n }\n}"],"mappings":"AAAA,OAAOA,UAAU,MAAM,gBAAgB;AACvC,SAASC,UAAU,QAAQ,cAAc;AACzC,OAAOC,QAAQ,MAAM,yCAAyC;AAE9D,eAAe,MAAMC,cAAc,CAAC,6BAA6B;EAE/DC,WAAW,CAASC,KAAa,EAAE;IAAA,KAAfA,KAAa,GAAbA,KAAa;EAAG;EAEpC,IAAWC,OAAO,GAAY;IAC5B,MAAMC,gBAAgB,GAAGN,UAAU,CAACO,GAAG,CAAC,QAAQ,CAAC;IACjD,OAAOR,UAAU,CAACS,KAAK,CAAC,IAAI,CAACJ,KAAK,EAAE;MAClCK,IAAI,EAAE,QAAQ;MACdC,WAAW,EAAET,QAAQ,CAACS,WAAW;MACjC,GAAGJ,gBAAgB;MACnB,cAAc,EAAEL,QAAQ,CAACU,KAAK;MAC9B,eAAe,EAAEV,QAAQ,CAACW;IAC5B,CAAC,CAAQ;EACX;AACF"}
1
+ {"version":3,"names":["mediaQuery","Dimensions","viewport","MediaQueryList","constructor","query","matches","windowDimensions","get","match","type","orientation","width","height"],"sources":["MediaQueryList.ts"],"sourcesContent":["import mediaQuery from \"css-mediaquery\";\nimport { Dimensions } from \"react-native\";\nimport viewport from \"@wavemaker/app-rn-runtime/core/viewport\";\n\nexport default class MediaQueryList /* extends MediaQueryList */ {\n\n constructor(private query: string) {}\n\n public get matches(): boolean {\n const windowDimensions = Dimensions.get(\"window\");\n return mediaQuery.match(this.query, {\n type: \"screen\",\n orientation: viewport.orientation,\n ...windowDimensions,\n \"device-width\": viewport.width,\n \"device-height\": viewport.height,\n } as any);\n }\n}"],"mappings":"AAAA,OAAOA,UAAU,MAAM,gBAAgB;AACvC,SAASC,UAAU,QAAQ,cAAc;AACzC,OAAOC,QAAQ,MAAM,yCAAyC;AAE9D,eAAe,MAAMC,cAAc,CAAC,6BAA6B;EAE/DC,WAAWA,CAASC,KAAa,EAAE;IAAA,KAAfA,KAAa,GAAbA,KAAa;EAAG;EAEpC,IAAWC,OAAOA,CAAA,EAAY;IAC5B,MAAMC,gBAAgB,GAAGN,UAAU,CAACO,GAAG,CAAC,QAAQ,CAAC;IACjD,OAAOR,UAAU,CAACS,KAAK,CAAC,IAAI,CAACJ,KAAK,EAAE;MAClCK,IAAI,EAAE,QAAQ;MACdC,WAAW,EAAET,QAAQ,CAACS,WAAW;MACjC,GAAGJ,gBAAgB;MACnB,cAAc,EAAEL,QAAQ,CAACU,KAAK;MAC9B,eAAe,EAAEV,QAAQ,CAACW;IAC5B,CAAQ,CAAC;EACX;AACF"}
@@ -0,0 +1,298 @@
1
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
2
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
3
+ function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
4
+ import * as React from 'react';
5
+ import { LinearGradient as ExpoLinearGradient } from 'expo-linear-gradient';
6
+ import { Image, StyleSheet, View } from 'react-native';
7
+ import { isEmpty, isNil, isNumber } from 'lodash-es';
8
+ import imageSizeEstimator from '@wavemaker/app-rn-runtime/core/imageSizeEstimator';
9
+ import { AssetConsumer } from '@wavemaker/app-rn-runtime/core/asset.provider';
10
+ import { isFullPathUrl } from '@wavemaker/app-rn-runtime/core/utils';
11
+ const IMAGE_URL_REGEX = /url\(['|"]?(.+)['|"]?\)$/gi;
12
+ const LINEAT_GRADIENT_REGEX = /linear-gradient\((.+)\)$/gi;
13
+ const DIMENSION_REGEX = /([0-9%]+)[a-z]*/g;
14
+ const BACKGROUND_POSITION_REGEX = /([0-9%]+)[a-z]*\s*([0-9%]+)[a-z]*/g;
15
+ const BACKGROUND_SIZE_REGEX = /([0-9%]+)[a-z]*\s*([0-9%]+)[a-z]*/g;
16
+ export class LinearGradient extends React.Component {
17
+ constructor(props) {
18
+ super(props);
19
+ this.state = this.parse();
20
+ }
21
+ parse() {
22
+ let val = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.props.value;
23
+ let state = {};
24
+ const splits = val.split(',').map(v => v.trim());
25
+ let angle = 0;
26
+ const locations = [];
27
+ if (splits[0].endsWith('deg')) {
28
+ angle = parseInt(splits[0].split('deg')[0]) % 360;
29
+ angle = angle < 0 ? 360 + angle : angle;
30
+ splits.shift();
31
+ }
32
+ angle += 90;
33
+ const delta = Math.round(Math.tan(angle * Math.PI / 180) * 100) / 100;
34
+ if (Math.abs(delta) > 1) {
35
+ state = {
36
+ end: {
37
+ x: -0.5 / delta + 0.5,
38
+ y: 0
39
+ },
40
+ start: {
41
+ x: 0.5 / delta + 0.5,
42
+ y: 1
43
+ }
44
+ };
45
+ } else {
46
+ state = {
47
+ start: {
48
+ x: 0,
49
+ y: -0.5 * delta + 0.5
50
+ },
51
+ end: {
52
+ x: 1,
53
+ y: 0.5 * delta + 0.5
54
+ }
55
+ };
56
+ }
57
+ if (angle >= 270 && angle <= 450) {
58
+ state = {
59
+ start: state.end,
60
+ end: state.start
61
+ };
62
+ }
63
+ state.colors = [];
64
+ state.locations = [];
65
+ splits.map(s => {
66
+ var _s$matchAll$next;
67
+ const p = (_s$matchAll$next = s.matchAll(/\s*([0-9]+)%/g).next()) === null || _s$matchAll$next === void 0 ? void 0 : _s$matchAll$next.value;
68
+ if (p) {
69
+ state.locations.push(parseInt(p[1]) / 100);
70
+ state.colors.push(s.replace(p[0], ''));
71
+ } else {
72
+ state.locations.push(null);
73
+ state.colors.push(s);
74
+ }
75
+ });
76
+ return state;
77
+ }
78
+ componentDidUpdate(prevProps, prevState, snapshot) {
79
+ if (prevProps.value !== this.props.value) {
80
+ this.setState(this.parse());
81
+ }
82
+ }
83
+ render() {
84
+ var _this$props$size, _this$props$style;
85
+ return /*#__PURE__*/React.createElement(View, {
86
+ style: [{
87
+ borderWidth: 0,
88
+ overflow: 'hidden'
89
+ }, StyleSheet.absoluteFill, this.props.style]
90
+ }, /*#__PURE__*/React.createElement(View, {
91
+ style: [StyleSheet.absoluteFill, this.props.middle ? {
92
+ flexDirection: 'row',
93
+ justifyContent: 'center',
94
+ alignItems: 'center'
95
+ } : null]
96
+ }, /*#__PURE__*/React.createElement(ExpoLinearGradient, {
97
+ colors: this.state.colors,
98
+ locations: this.state.locations,
99
+ start: this.state.start,
100
+ end: this.state.end,
101
+ style: [(_this$props$size = this.props.size) !== null && _this$props$size !== void 0 && _this$props$size.width ? this.props.size : StyleSheet.absoluteFill, this.props.position, {
102
+ position: 'absolute',
103
+ borderRadius: (_this$props$style = this.props.style) === null || _this$props$style === void 0 ? void 0 : _this$props$style.borderRadius
104
+ }]
105
+ })), this.props.children);
106
+ }
107
+ }
108
+ export class BackgroundComponent extends React.Component {
109
+ constructor(props) {
110
+ super(props);
111
+ _defineProperty(this, "loadAsset", null);
112
+ this.state = {};
113
+ }
114
+ caluculateSize(imageSrc) {
115
+ if (isNumber(imageSrc)) {
116
+ const {
117
+ width,
118
+ height
119
+ } = Image.resolveAssetSource(imageSrc);
120
+ this.setState({
121
+ naturalImageWidth: width,
122
+ naturalImageHeight: height
123
+ });
124
+ } else if (!isNil(imageSrc)) {
125
+ imageSizeEstimator.getSize(imageSrc.uri, (width, height) => {
126
+ this.setState({
127
+ naturalImageWidth: width,
128
+ naturalImageHeight: height
129
+ });
130
+ });
131
+ }
132
+ }
133
+ getDimension(dim) {
134
+ if (dim) {
135
+ const value = dim.matchAll(DIMENSION_REGEX).next().value;
136
+ if (value[1]) {
137
+ return value[1].endsWith('%') ? value[1] : parseInt(value[1]);
138
+ }
139
+ }
140
+ return null;
141
+ }
142
+ getPosition() {
143
+ const result = {};
144
+ if (!this.props.position) {
145
+ return result;
146
+ }
147
+ const position = this.props.position.split(' ').map(s => s.trim());
148
+ if (position[0] === 'center') {
149
+ result.alignItems = 'center';
150
+ } else if (position[0] === 'top') {
151
+ result.top = 0;
152
+ } else if (position[0] === 'bottom') {
153
+ result.bottom = 0;
154
+ } else {
155
+ result.top = this.getDimension(position[0]);
156
+ }
157
+ if (position[1] === 'center') {
158
+ result.justifyContent = 'center';
159
+ } else if (position[1] === 'left') {
160
+ result.left = 0;
161
+ } else if (position[1] === 'bottom') {
162
+ result.right = 0;
163
+ } else {
164
+ result.left = this.getDimension(position[1]);
165
+ }
166
+ return result;
167
+ }
168
+ getPositionAndSize() {
169
+ var _this$props$size2, _this$getGradient;
170
+ const result = {};
171
+ if (this.props.resizeMode) {
172
+ result.resizeMode = this.props.resizeMode;
173
+ return result;
174
+ } else if (this.props.position === 'center') {
175
+ result.resizeMode = 'center';
176
+ result.position = {
177
+ justifyContent: 'center',
178
+ alignItems: 'center'
179
+ };
180
+ } else if (this.props.size === 'contain' || this.props.size === 'cover') {
181
+ result.resizeMode = this.props.size;
182
+ return result;
183
+ }
184
+ const size = (_this$props$size2 = this.props.size) === null || _this$props$size2 === void 0 ? void 0 : _this$props$size2.matchAll(BACKGROUND_SIZE_REGEX).next().value;
185
+ result.size = {};
186
+ if (size) {
187
+ result.size.width = size[1].endsWith('%') ? size[1] : parseInt(size[1]);
188
+ result.size.height = size[2].endsWith('%') ? size[2] : parseInt(size[2]);
189
+ }
190
+ if (!result.resizeMode && this.props.position) {
191
+ result.position = this.getPosition();
192
+ }
193
+ if (!((_this$getGradient = this.getGradient()) !== null && _this$getGradient !== void 0 && (_this$getGradient = _this$getGradient.value) !== null && _this$getGradient !== void 0 && _this$getGradient.length)) {
194
+ if (this.props.repeat === 'no-repeat') {
195
+ result.size.width = result.size.width || this.state.naturalImageWidth;
196
+ result.size.height = result.size.height || this.state.naturalImageHeight;
197
+ } else if (this.props.repeat === 'repeat-x') {
198
+ result.resizeMode = 'repeat';
199
+ result.size.width = result.size.width || '100%';
200
+ result.size.height = result.size.height || this.state.naturalImageHeight;
201
+ } else if (this.props.repeat === 'repeat-y') {
202
+ result.resizeMode = 'repeat';
203
+ result.size.width = result.size.width || this.state.naturalImageWidth;
204
+ result.size.height = result.size.height || '100%';
205
+ } else {
206
+ result.resizeMode = 'repeat';
207
+ }
208
+ }
209
+ return result;
210
+ }
211
+ renderLinearGradient(data) {
212
+ const psresult = this.getPositionAndSize();
213
+ return /*#__PURE__*/React.createElement(LinearGradient, {
214
+ value: data || '',
215
+ style: this.props.style,
216
+ size: psresult.size,
217
+ position: psresult.position,
218
+ middle: psresult.resizeMode === 'center'
219
+ });
220
+ }
221
+ componentDidUpdate(prevProps, prevState, snapshot) {
222
+ if (prevProps.image !== this.props.image) {
223
+ this.setImage();
224
+ }
225
+ }
226
+ componentDidMount() {
227
+ setTimeout(() => this.setImage(), 100);
228
+ }
229
+ setImage() {
230
+ var _this$props$image, _source;
231
+ let source = (_this$props$image = this.props.image) === null || _this$props$image === void 0 ? void 0 : _this$props$image.trim();
232
+ if ((_source = source) !== null && _source !== void 0 && _source.startsWith('url')) {
233
+ var _this$props$image2;
234
+ source = (_this$props$image2 = this.props.image) === null || _this$props$image2 === void 0 ? void 0 : _this$props$image2.matchAll(IMAGE_URL_REGEX).next().value[1];
235
+ }
236
+ if (this.loadAsset) {
237
+ source = this.loadAsset(source);
238
+ }
239
+ if (isFullPathUrl(source)) {
240
+ source = {
241
+ uri: source
242
+ };
243
+ }
244
+ this.caluculateSize(source);
245
+ this.setState({
246
+ imageSrc: source
247
+ });
248
+ }
249
+ getGradient() {
250
+ var _this$props$image3;
251
+ return (_this$props$image3 = this.props.image) === null || _this$props$image3 === void 0 ? void 0 : _this$props$image3.trim().matchAll(LINEAT_GRADIENT_REGEX).next();
252
+ }
253
+ renderImage() {
254
+ const psresult = this.getPositionAndSize();
255
+ return /*#__PURE__*/React.createElement(AssetConsumer, null, loadAsset => {
256
+ var _psresult$position, _psresult$position2;
257
+ this.loadAsset = loadAsset;
258
+ return /*#__PURE__*/React.createElement(View, {
259
+ style: [{
260
+ borderWidth: 0,
261
+ overflow: 'hidden'
262
+ }, StyleSheet.absoluteFill, this.props.style]
263
+ }, /*#__PURE__*/React.createElement(View, {
264
+ style: [StyleSheet.absoluteFill, {
265
+ flexDirection: 'row',
266
+ justifyContent: (_psresult$position = psresult.position) === null || _psresult$position === void 0 ? void 0 : _psresult$position.justifyContent,
267
+ alignItems: (_psresult$position2 = psresult.position) === null || _psresult$position2 === void 0 ? void 0 : _psresult$position2.alignItems
268
+ }]
269
+ }, /*#__PURE__*/React.createElement(View, {
270
+ style: [{
271
+ position: 'absolute',
272
+ overflow: 'hidden'
273
+ }, psresult.position, isEmpty(psresult.size) ? StyleSheet.absoluteFill : psresult.size]
274
+ }, /*#__PURE__*/React.createElement(Image, {
275
+ source: this.state.imageSrc,
276
+ resizeMode: psresult.resizeMode || 'cover',
277
+ style: [{
278
+ width: '100%',
279
+ height: '100%'
280
+ }, isEmpty(psresult.size) ? {
281
+ minWidth: this.state.naturalImageWidth,
282
+ minHeight: this.state.naturalImageHeight
283
+ } : null]
284
+ }))));
285
+ });
286
+ }
287
+ render() {
288
+ var _gradientData$value;
289
+ const gradientData = this.getGradient();
290
+ if (gradientData !== null && gradientData !== void 0 && (_gradientData$value = gradientData.value) !== null && _gradientData$value !== void 0 && _gradientData$value.length) {
291
+ return this.renderLinearGradient(gradientData.value[1]);
292
+ } else if (this.props.image) {
293
+ return this.renderImage();
294
+ }
295
+ return null;
296
+ }
297
+ }
298
+ //# sourceMappingURL=background.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","LinearGradient","ExpoLinearGradient","Image","StyleSheet","View","isEmpty","isNil","isNumber","imageSizeEstimator","AssetConsumer","isFullPathUrl","IMAGE_URL_REGEX","LINEAT_GRADIENT_REGEX","DIMENSION_REGEX","BACKGROUND_POSITION_REGEX","BACKGROUND_SIZE_REGEX","Component","constructor","props","state","parse","val","arguments","length","undefined","value","splits","split","map","v","trim","angle","locations","endsWith","parseInt","shift","delta","Math","round","tan","PI","abs","end","x","y","start","colors","s","_s$matchAll$next","p","matchAll","next","push","replace","componentDidUpdate","prevProps","prevState","snapshot","setState","render","_this$props$size","_this$props$style","createElement","style","borderWidth","overflow","absoluteFill","middle","flexDirection","justifyContent","alignItems","size","width","position","borderRadius","children","BackgroundComponent","_defineProperty","caluculateSize","imageSrc","height","resolveAssetSource","naturalImageWidth","naturalImageHeight","getSize","uri","getDimension","dim","getPosition","result","top","bottom","left","right","getPositionAndSize","_this$props$size2","_this$getGradient","resizeMode","getGradient","repeat","renderLinearGradient","data","psresult","image","setImage","componentDidMount","setTimeout","_this$props$image","_source","source","startsWith","_this$props$image2","loadAsset","_this$props$image3","renderImage","_psresult$position","_psresult$position2","minWidth","minHeight","_gradientData$value","gradientData"],"sources":["background.component.tsx"],"sourcesContent":["import * as React from 'react';\nimport { LinearGradient as ExpoLinearGradient, LinearGradientPoint } from 'expo-linear-gradient';\nimport { Image, StyleSheet, View, ViewStyle } from 'react-native';\nimport { isEmpty, isNil, isNumber, isString } from 'lodash-es';\nimport imageSizeEstimator from '@wavemaker/app-rn-runtime/core/imageSizeEstimator';\nimport { AssetConsumer } from '@wavemaker/app-rn-runtime/core/asset.provider';\nimport { isFullPathUrl } from '@wavemaker/app-rn-runtime/core/utils';\n\nexport interface LinearGradientProps {\n value: string;\n children: any;\n style?: ViewStyle;\n size?: ViewStyle;\n position?: ViewStyle;\n middle?: boolean;\n}\n\nexport interface LinearGradientState {\n colors: string[];\n locations: number[];\n start: LinearGradientPoint;\n end: LinearGradientPoint;\n}\n\nconst IMAGE_URL_REGEX = /url\\(['|\"]?(.+)['|\"]?\\)$/gi;\nconst LINEAT_GRADIENT_REGEX = /linear-gradient\\((.+)\\)$/gi;\nconst DIMENSION_REGEX = /([0-9%]+)[a-z]*/g;\nconst BACKGROUND_POSITION_REGEX = /([0-9%]+)[a-z]*\\s*([0-9%]+)[a-z]*/g;\nconst BACKGROUND_SIZE_REGEX = /([0-9%]+)[a-z]*\\s*([0-9%]+)[a-z]*/g;\n\nexport class LinearGradient extends React.Component<LinearGradientProps, LinearGradientState> {\n\n constructor(props: LinearGradientProps) {\n super(props);\n this.state = this.parse();\n }\n\n parse(val = this.props.value) {\n let state = {} as LinearGradientState;\n const splits = val.split(',').map(v => v.trim());\n let angle = 0;\n const locations: LinearGradientPoint[] = [];\n if (splits[0].endsWith('deg')) {\n angle = (parseInt(splits[0].split('deg')[0]))%360;\n angle = angle < 0 ? (360 + angle) : angle;\n splits.shift();\n }\n angle += 90;\n const delta = Math.round(Math.tan((angle * Math.PI) / 180) * 100)/100;\n if (Math.abs(delta) > 1) {\n state = {\n end: {\n x: -0.5 / delta + 0.5,\n y: 0\n },\n start: {\n x: 0.5 / delta + 0.5,\n y: 1\n }\n } as LinearGradientState;\n } else {\n state = {\n start: {\n x: 0,\n y: -0.5 * delta + 0.5\n },\n end: {\n x: 1,\n y: 0.5 * delta + 0.5\n }\n } as LinearGradientState;\n }\n if (angle >= 270 && angle <= 450) {\n state = {\n start : state.end,\n end: state.start\n } as LinearGradientState;\n }\n state.colors = [];\n state.locations = [];\n splits.map(s => {\n const p = s.matchAll(/\\s*([0-9]+)%/g).next()?.value;\n if (p) {\n state.locations.push(parseInt(p[1]) / 100);\n state.colors.push(s.replace(p[0], ''));\n } else {\n state.locations.push(null as any);\n state.colors.push(s);\n }\n });\n return state;\n }\n\n componentDidUpdate(prevProps: Readonly<LinearGradientProps>, prevState: Readonly<{}>, snapshot?: any): void {\n if (prevProps.value !== this.props.value) {\n this.setState(this.parse());\n }\n }\n \n\n public render() {\n return (\n <View style={[{borderWidth: 0, overflow: 'hidden'}, StyleSheet.absoluteFill, this.props.style]}>\n <View style={[\n StyleSheet.absoluteFill, this.props.middle ? {\n flexDirection: 'row',\n justifyContent: 'center',\n alignItems: 'center'\n } : null]}>\n <ExpoLinearGradient\n colors={this.state.colors}\n locations={this.state.locations}\n start={this.state.start}\n end={this.state.end}\n style={[\n this.props.size?.width ? this.props.size : StyleSheet.absoluteFill,\n this.props.position,\n {position: 'absolute', borderRadius: this.props.style?.borderRadius}\n ]}\n />\n </View>\n {this.props.children}\n </View>\n );\n }\n}\n\nexport interface BackgroundProps {\n image?: string;\n position?: string;\n children?: any;\n resizeMode?: string;\n repeat?: string;\n style?: ViewStyle;\n size: string;\n}\n\nexport interface BackgroundState {\n imageSrc: any;\n naturalImageWidth: number,\n naturalImageHeight: number\n}\n\nexport class BackgroundComponent extends React.Component<BackgroundProps, BackgroundState> {\n\n private loadAsset: (path: string) => number | string = null as any;\n\n constructor(props: BackgroundProps) {\n super(props);\n this.state = {} as BackgroundState;\n }\n\n public caluculateSize(imageSrc: any) {\n if (isNumber(imageSrc)) {\n const {width, height} = Image.resolveAssetSource(imageSrc);\n this.setState({\n naturalImageWidth: width,\n naturalImageHeight: height\n } as BackgroundState);\n } else if (!isNil(imageSrc)) {\n imageSizeEstimator.getSize(imageSrc.uri, (width: number, height: number) => {\n this.setState({\n naturalImageWidth: width,\n naturalImageHeight: height\n } as BackgroundState);\n });\n }\n }\n\n getDimension(dim: string) {\n if (dim) {\n const value = dim.matchAll(DIMENSION_REGEX).next().value;\n if (value[1]) {\n return value[1].endsWith('%') ? value[1] : parseInt(value[1]);\n }\n }\n return null;\n }\n\n public getPosition() {\n const result = {} as ViewStyle;\n if (!this.props.position) {\n return result;\n }\n const position = this.props.position.split(' ').map(s => s.trim());\n if (position[0] === 'center') {\n result.alignItems = 'center';\n } else if (position[0] === 'top') {\n result.top = 0;\n } else if (position[0] === 'bottom') {\n result.bottom = 0;\n } else {\n result.top = this.getDimension(position[0]);\n }\n if (position[1] === 'center') {\n result.justifyContent = 'center';\n } else if (position[1] === 'left') {\n result.left = 0;\n } else if (position[1] === 'bottom') {\n result.right = 0;\n } else {\n result.left = this.getDimension(position[1]);\n }\n return result;\n }\n\n public getPositionAndSize() {\n const result: {\n resizeMode? : string,\n position?: ViewStyle,\n size?: ViewStyle\n } = {} as any;\n if (this.props.resizeMode) {\n result.resizeMode = this.props.resizeMode;\n return result;\n } else if (this.props.position === 'center') {\n result.resizeMode = 'center';\n result.position = {\n justifyContent: 'center',\n alignItems: 'center'\n };\n } else if (this.props.size === 'contain' || this.props.size === 'cover') {\n result.resizeMode = this.props.size;\n return result;\n }\n const size = this.props.size?.matchAll(BACKGROUND_SIZE_REGEX).next().value;\n result.size = {};\n if (size) {\n result.size.width = size[1].endsWith('%') ? size[1] : parseInt(size[1]);\n result.size.height = size[2].endsWith('%') ? size[2] : parseInt(size[2]);\n }\n if (!result.resizeMode && this.props.position) {\n result.position = this.getPosition();\n }\n if (!this.getGradient()?.value?.length) {\n if (this.props.repeat === 'no-repeat') {\n result.size.width = result.size.width || this.state.naturalImageWidth; \n result.size.height = result.size.height || this.state.naturalImageHeight; \n } else if (this.props.repeat === 'repeat-x') {\n result.resizeMode = 'repeat';\n result.size.width = result.size.width || '100%'; \n result.size.height = result.size.height || this.state.naturalImageHeight; \n } else if (this.props.repeat === 'repeat-y') {\n result.resizeMode = 'repeat';\n result.size.width = result.size.width || this.state.naturalImageWidth; \n result.size.height = result.size.height || '100%'; \n } else {\n result.resizeMode = 'repeat';\n }\n }\n return result;\n }\n\n public renderLinearGradient(data: string) {\n const psresult = this.getPositionAndSize();\n return (\n <LinearGradient\n value={data || ''}\n style={this.props.style}\n size={psresult.size}\n position={psresult.position}\n middle={psresult.resizeMode === 'center'}>\n </LinearGradient>\n );\n }\n\n componentDidUpdate(prevProps: Readonly<BackgroundProps>, prevState: Readonly<{}>, snapshot?: any): void {\n if (prevProps.image !== this.props.image) {\n this.setImage();\n }\n }\n\n componentDidMount(): void {\n setTimeout(() => this.setImage(), 100);\n }\n\n setImage() {\n let source = this.props.image?.trim() as any;\n if (source?.startsWith('url')) {\n source = this.props.image?.matchAll(IMAGE_URL_REGEX).next().value[1];\n }\n if (this.loadAsset) {\n source = this.loadAsset(source);\n }\n if (isFullPathUrl(source)) {\n source = {\n uri: source\n };\n }\n this.caluculateSize(source);\n this.setState({\n imageSrc: source\n } as BackgroundState);\n }\n\n public getGradient() {\n return this.props.image?.trim().matchAll(LINEAT_GRADIENT_REGEX).next();\n }\n\n public renderImage() {\n const psresult = this.getPositionAndSize();\n return (\n <AssetConsumer>\n {(loadAsset) => {\n this.loadAsset = loadAsset;\n return (<View style={[{borderWidth: 0, overflow: 'hidden'}, StyleSheet.absoluteFill, this.props.style]}>\n <View style={[\n StyleSheet.absoluteFill, {\n flexDirection: 'row',\n justifyContent: psresult.position?.justifyContent,\n alignItems: psresult.position?.alignItems\n }]}>\n <View style={[\n { position: 'absolute', overflow: 'hidden' },\n psresult.position,\n isEmpty(psresult.size) ? StyleSheet.absoluteFill : psresult.size\n ]}>\n <Image\n source={this.state.imageSrc}\n resizeMode={psresult.resizeMode as any || 'cover'}\n style={[\n { \n width: '100%',\n height: '100%'\n }, \n isEmpty(psresult.size) ? {\n minWidth: this.state.naturalImageWidth,\n minHeight: this.state.naturalImageHeight\n } : null\n ]}/>\n </View>\n </View>\n </View>);\n }}\n </AssetConsumer>\n );\n }\n\n public render() {\n const gradientData = this.getGradient();\n if (gradientData?.value?.length) {\n return this.renderLinearGradient(gradientData.value[1]);\n } else if (this.props.image) {\n return this.renderImage();\n }\n return null;\n }\n}\n\n"],"mappings":";;;AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,cAAc,IAAIC,kBAAkB,QAA6B,sBAAsB;AAChG,SAASC,KAAK,EAAEC,UAAU,EAAE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