@wavemaker/app-rn-runtime 11.4.0-next.28151 → 11.4.0-next.28701

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 (423) 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.map +1 -1
  6. app-rn-runtime/actions/timer-action.js.map +1 -1
  7. app-rn-runtime/components/advanced/carousel/carousel-content/carousel-content.component.js.map +1 -1
  8. app-rn-runtime/components/advanced/carousel/carousel-content/carousel-content.props.js.map +1 -1
  9. app-rn-runtime/components/advanced/carousel/carousel-template/carousel-template.component.js.map +1 -1
  10. app-rn-runtime/components/advanced/carousel/carousel-template/carousel-template.props.js.map +1 -1
  11. app-rn-runtime/components/advanced/carousel/carousel.component.js +1 -1
  12. app-rn-runtime/components/advanced/carousel/carousel.component.js.map +1 -1
  13. app-rn-runtime/components/advanced/carousel/carousel.props.js.map +1 -1
  14. app-rn-runtime/components/advanced/carousel/carousel.styles.js +16 -0
  15. app-rn-runtime/components/advanced/carousel/carousel.styles.js.map +1 -1
  16. app-rn-runtime/components/advanced/login/login.component.js.map +1 -1
  17. app-rn-runtime/components/advanced/login/login.props.js.map +1 -1
  18. app-rn-runtime/components/advanced/network-info-toaster/network-info-toaster.component.js.map +1 -1
  19. app-rn-runtime/components/advanced/network-info-toaster/network-info-toaster.props.js.map +1 -1
  20. app-rn-runtime/components/advanced/webview/webview.component.js.map +1 -1
  21. app-rn-runtime/components/advanced/webview/webview.props.js.map +1 -1
  22. app-rn-runtime/components/basic/anchor/anchor.component.js +1 -0
  23. app-rn-runtime/components/basic/anchor/anchor.component.js.map +1 -1
  24. app-rn-runtime/components/basic/anchor/anchor.props.js.map +1 -1
  25. app-rn-runtime/components/basic/anchor/anchor.styles.js +5 -0
  26. app-rn-runtime/components/basic/anchor/anchor.styles.js.map +1 -1
  27. app-rn-runtime/components/basic/animatedview.component.js +1 -3
  28. app-rn-runtime/components/basic/animatedview.component.js.map +1 -1
  29. app-rn-runtime/components/basic/audio/audio.component.js +232 -0
  30. app-rn-runtime/components/basic/audio/audio.component.js.map +1 -0
  31. app-rn-runtime/components/basic/audio/audio.props.js +15 -0
  32. app-rn-runtime/components/basic/audio/audio.props.js.map +1 -0
  33. app-rn-runtime/components/basic/audio/audio.styles.js +61 -0
  34. app-rn-runtime/components/basic/audio/audio.styles.js.map +1 -0
  35. app-rn-runtime/components/basic/button/button.component.js.map +1 -1
  36. app-rn-runtime/components/basic/button/button.props.js.map +1 -1
  37. app-rn-runtime/components/basic/button/button.styles.js.map +1 -1
  38. app-rn-runtime/components/basic/buttongroup/buttongroup.component.js.map +1 -1
  39. app-rn-runtime/components/basic/buttongroup/buttongroup.props.js.map +1 -1
  40. app-rn-runtime/components/basic/buttongroup/buttongroup.styles.js.map +1 -1
  41. app-rn-runtime/components/basic/custom/custom.component.js.map +1 -1
  42. app-rn-runtime/components/basic/custom/custom.props.js.map +1 -1
  43. app-rn-runtime/components/basic/icon/icon.component.js.map +1 -1
  44. app-rn-runtime/components/basic/icon/icon.props.js.map +1 -1
  45. app-rn-runtime/components/basic/icon/icon.styles.js +5 -0
  46. app-rn-runtime/components/basic/icon/icon.styles.js.map +1 -1
  47. app-rn-runtime/components/basic/label/label.component.js +2 -1
  48. app-rn-runtime/components/basic/label/label.component.js.map +1 -1
  49. app-rn-runtime/components/basic/label/label.props.js.map +1 -1
  50. app-rn-runtime/components/basic/label/label.styles.js +8 -0
  51. app-rn-runtime/components/basic/label/label.styles.js.map +1 -1
  52. app-rn-runtime/components/basic/lottie/lottie.component.js.map +1 -1
  53. app-rn-runtime/components/basic/lottie/lottie.props.js.map +1 -1
  54. app-rn-runtime/components/basic/message/message.component.js.map +1 -1
  55. app-rn-runtime/components/basic/message/message.props.js.map +1 -1
  56. app-rn-runtime/components/basic/message/message.styles.js +22 -0
  57. app-rn-runtime/components/basic/message/message.styles.js.map +1 -1
  58. app-rn-runtime/components/basic/modal/modal.component.js.map +1 -1
  59. app-rn-runtime/components/basic/modal/modal.props.js.map +1 -1
  60. app-rn-runtime/components/basic/modal/modal.styles.js.map +1 -1
  61. app-rn-runtime/components/basic/picture/picture.component.js +3 -3
  62. app-rn-runtime/components/basic/picture/picture.component.js.map +1 -1
  63. app-rn-runtime/components/basic/picture/picture.props.js.map +1 -1
  64. app-rn-runtime/components/basic/picture/picture.styles.js.map +1 -1
  65. app-rn-runtime/components/basic/progress-bar/progress-bar.component.js.map +1 -1
  66. app-rn-runtime/components/basic/progress-bar/progress-bar.props.js.map +1 -1
  67. app-rn-runtime/components/basic/progress-bar/progress-bar.styles.js.map +1 -1
  68. app-rn-runtime/components/basic/progress-circle/progress-circle.component.js.map +1 -1
  69. app-rn-runtime/components/basic/progress-circle/progress-circle.props.js.map +1 -1
  70. app-rn-runtime/components/basic/progress-circle/progress-circle.styles.js.map +1 -1
  71. app-rn-runtime/components/basic/search/local-data-provider.js.map +1 -1
  72. app-rn-runtime/components/basic/search/search.component.js +1 -1
  73. app-rn-runtime/components/basic/search/search.component.js.map +1 -1
  74. app-rn-runtime/components/basic/search/search.props.js +1 -0
  75. app-rn-runtime/components/basic/search/search.props.js.map +1 -1
  76. app-rn-runtime/components/basic/search/search.styles.js +47 -0
  77. app-rn-runtime/components/basic/search/search.styles.js.map +1 -1
  78. app-rn-runtime/components/basic/skeleton/skeleton.component.js.map +1 -1
  79. app-rn-runtime/components/basic/spinner/spinner.component.js +3 -1
  80. app-rn-runtime/components/basic/spinner/spinner.component.js.map +1 -1
  81. app-rn-runtime/components/basic/spinner/spinner.props.js.map +1 -1
  82. app-rn-runtime/components/basic/spinner/spinner.styles.js +8 -0
  83. app-rn-runtime/components/basic/spinner/spinner.styles.js.map +1 -1
  84. app-rn-runtime/components/basic/video/video.component.js +2 -2
  85. app-rn-runtime/components/basic/video/video.component.js.map +1 -1
  86. app-rn-runtime/components/basic/video/video.props.js.map +1 -1
  87. app-rn-runtime/components/chart/area-chart/area-chart.component.js.map +1 -1
  88. app-rn-runtime/components/chart/bar-chart/bar-chart.component.js.map +1 -1
  89. app-rn-runtime/components/chart/bar-chart/bar-chart.props.js.map +1 -1
  90. app-rn-runtime/components/chart/basechart.component.js.map +1 -1
  91. app-rn-runtime/components/chart/basechart.props.js.map +1 -1
  92. app-rn-runtime/components/chart/bubble-chart/bubble-chart.component.js.map +1 -1
  93. app-rn-runtime/components/chart/column-chart/column-chart.component.js.map +1 -1
  94. app-rn-runtime/components/chart/donut-chart/donut-chart.component.js.map +1 -1
  95. app-rn-runtime/components/chart/donut-chart/donut-chart.props.js.map +1 -1
  96. app-rn-runtime/components/chart/line-chart/line-chart.component.js.map +1 -1
  97. app-rn-runtime/components/chart/line-chart/line-chart.props.js.map +1 -1
  98. app-rn-runtime/components/chart/pie-chart/pie-chart.component.js +1 -1
  99. app-rn-runtime/components/chart/pie-chart/pie-chart.component.js.map +1 -1
  100. app-rn-runtime/components/chart/pie-chart/pie-chart.props.js.map +1 -1
  101. app-rn-runtime/components/chart/theme/chart.theme.js.map +1 -1
  102. app-rn-runtime/components/container/accordion/accordion.component.js +63 -119
  103. app-rn-runtime/components/container/accordion/accordion.component.js.map +1 -1
  104. app-rn-runtime/components/container/accordion/accordion.props.js +1 -0
  105. app-rn-runtime/components/container/accordion/accordion.props.js.map +1 -1
  106. app-rn-runtime/components/container/accordion/accordion.styles.js +14 -4
  107. app-rn-runtime/components/container/accordion/accordion.styles.js.map +1 -1
  108. app-rn-runtime/components/container/accordion/accordionpane/accordionpane.component.js +42 -7
  109. app-rn-runtime/components/container/accordion/accordionpane/accordionpane.component.js.map +1 -1
  110. app-rn-runtime/components/container/accordion/accordionpane/accordionpane.props.js.map +1 -1
  111. app-rn-runtime/components/container/container.component.js.map +1 -1
  112. app-rn-runtime/components/container/container.props.js.map +1 -1
  113. app-rn-runtime/components/container/container.styles.js.map +1 -1
  114. app-rn-runtime/components/container/layoutgrid/gridcolumn/gridcolumn.component.js.map +1 -1
  115. app-rn-runtime/components/container/layoutgrid/gridcolumn/gridcolumn.props.js.map +1 -1
  116. app-rn-runtime/components/container/layoutgrid/gridrow/gridrow.component.js.map +1 -1
  117. app-rn-runtime/components/container/layoutgrid/gridrow/gridrow.props.js.map +1 -1
  118. app-rn-runtime/components/container/layoutgrid/layoutgrid.component.js.map +1 -1
  119. app-rn-runtime/components/container/layoutgrid/layoutgrid.props.js.map +1 -1
  120. app-rn-runtime/components/container/layoutgrid/layoutgrid.styles.js.map +1 -1
  121. app-rn-runtime/components/container/linearlayout/linearlayout.component.js.map +1 -1
  122. app-rn-runtime/components/container/linearlayout/linearlayout.props.js.map +1 -1
  123. app-rn-runtime/components/container/linearlayout/linearlayoutitem/linearlayoutitem.component.js.map +1 -1
  124. app-rn-runtime/components/container/linearlayout/linearlayoutitem/linearlayoutitem.props.js.map +1 -1
  125. app-rn-runtime/components/container/panel/panel-content/panel-content.component.js.map +1 -1
  126. app-rn-runtime/components/container/panel/panel-content/panel-content.props.js.map +1 -1
  127. app-rn-runtime/components/container/panel/panel-footer/panel-footer.component.js.map +1 -1
  128. app-rn-runtime/components/container/panel/panel-footer/panel-footer.props.js.map +1 -1
  129. app-rn-runtime/components/container/panel/panel.component.js.map +1 -1
  130. app-rn-runtime/components/container/panel/panel.props.js.map +1 -1
  131. app-rn-runtime/components/container/panel/panel.styles.js +9 -0
  132. app-rn-runtime/components/container/panel/panel.styles.js.map +1 -1
  133. app-rn-runtime/components/container/partial-host.component.js.map +1 -1
  134. app-rn-runtime/components/container/tabs/tabheader/tabheader.component.js +30 -5
  135. app-rn-runtime/components/container/tabs/tabheader/tabheader.component.js.map +1 -1
  136. app-rn-runtime/components/container/tabs/tabheader/tabheader.props.js.map +1 -1
  137. app-rn-runtime/components/container/tabs/tabheader/tabheader.styles.js +10 -1
  138. app-rn-runtime/components/container/tabs/tabheader/tabheader.styles.js.map +1 -1
  139. app-rn-runtime/components/container/tabs/tabpane/tabpane.component.js.map +1 -1
  140. app-rn-runtime/components/container/tabs/tabpane/tabpane.props.js.map +1 -1
  141. app-rn-runtime/components/container/tabs/tabs.component.js +5 -2
  142. app-rn-runtime/components/container/tabs/tabs.component.js.map +1 -1
  143. app-rn-runtime/components/container/tabs/tabs.props.js.map +1 -1
  144. app-rn-runtime/components/container/tabs/tabs.styles.js +39 -0
  145. app-rn-runtime/components/container/tabs/tabs.styles.js.map +1 -1
  146. app-rn-runtime/components/container/tile/tile.component.js.map +1 -1
  147. app-rn-runtime/components/container/tile/tile.props.js.map +1 -1
  148. app-rn-runtime/components/container/tile/tile.styles.js.map +1 -1
  149. app-rn-runtime/components/container/wizard/wizard.component.js +15 -6
  150. app-rn-runtime/components/container/wizard/wizard.component.js.map +1 -1
  151. app-rn-runtime/components/container/wizard/wizard.props.js.map +1 -1
  152. app-rn-runtime/components/container/wizard/wizard.styles.js +53 -1
  153. app-rn-runtime/components/container/wizard/wizard.styles.js.map +1 -1
  154. app-rn-runtime/components/container/wizard/wizardstep/wizardstep.component.js.map +1 -1
  155. app-rn-runtime/components/container/wizard/wizardstep/wizardstep.props.js.map +1 -1
  156. app-rn-runtime/components/data/card/card-content/card-content.component.js.map +1 -1
  157. app-rn-runtime/components/data/card/card-content/card-content.props.js.map +1 -1
  158. app-rn-runtime/components/data/card/card-footer/card-footer.component.js.map +1 -1
  159. app-rn-runtime/components/data/card/card-footer/card-footer.props.js.map +1 -1
  160. app-rn-runtime/components/data/card/card.component.js.map +1 -1
  161. app-rn-runtime/components/data/card/card.props.js.map +1 -1
  162. app-rn-runtime/components/data/form/form-action/form-action.component.js.map +1 -1
  163. app-rn-runtime/components/data/form/form-action/form-action.props.js.map +1 -1
  164. app-rn-runtime/components/data/form/form-action/form-action.styles.js.map +1 -1
  165. app-rn-runtime/components/data/form/form-body/form-body.component.js.map +1 -1
  166. app-rn-runtime/components/data/form/form-body/form-body.props.js.map +1 -1
  167. app-rn-runtime/components/data/form/form-field/form-field.component.js +2 -2
  168. app-rn-runtime/components/data/form/form-field/form-field.component.js.map +1 -1
  169. app-rn-runtime/components/data/form/form-field/form-field.props.js.map +1 -1
  170. app-rn-runtime/components/data/form/form-field/form-field.styles.js.map +1 -1
  171. app-rn-runtime/components/data/form/form-footer/form-footer.component.js.map +1 -1
  172. app-rn-runtime/components/data/form/form-footer/form-footer.props.js.map +1 -1
  173. app-rn-runtime/components/data/form/form.component.js +1 -2
  174. app-rn-runtime/components/data/form/form.component.js.map +1 -1
  175. app-rn-runtime/components/data/form/form.props.js.map +1 -1
  176. app-rn-runtime/components/data/form/form.styles.js.map +1 -1
  177. app-rn-runtime/components/data/list/list-template/list-template.component.js.map +1 -1
  178. app-rn-runtime/components/data/list/list-template/list-template.props.js.map +1 -1
  179. app-rn-runtime/components/data/list/list-template/list-template.styles.js.map +1 -1
  180. app-rn-runtime/components/data/list/list.component.js +77 -16
  181. app-rn-runtime/components/data/list/list.component.js.map +1 -1
  182. app-rn-runtime/components/data/list/list.props.js +2 -0
  183. app-rn-runtime/components/data/list/list.props.js.map +1 -1
  184. app-rn-runtime/components/data/list/list.styles.js.map +1 -1
  185. app-rn-runtime/components/device/barcodescanner/barcodescanner.component.js.map +1 -1
  186. app-rn-runtime/components/device/barcodescanner/barcodescanner.props.js.map +1 -1
  187. app-rn-runtime/components/device/camera/camera.component.js.map +1 -1
  188. app-rn-runtime/components/device/camera/camera.props.js.map +1 -1
  189. app-rn-runtime/components/dialogs/alertdialog/alertdialog.component.js.map +1 -1
  190. app-rn-runtime/components/dialogs/alertdialog/alertdialog.props.js.map +1 -1
  191. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.component.js.map +1 -1
  192. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.props.js.map +1 -1
  193. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.styles.js +9 -0
  194. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.styles.js.map +1 -1
  195. app-rn-runtime/components/dialogs/dialog/dialog.component.js +5 -2
  196. app-rn-runtime/components/dialogs/dialog/dialog.component.js.map +1 -1
  197. app-rn-runtime/components/dialogs/dialog/dialog.props.js.map +1 -1
  198. app-rn-runtime/components/dialogs/dialogactions/dialogactions.component.js.map +1 -1
  199. app-rn-runtime/components/dialogs/dialogactions/dialogactions.props.js.map +1 -1
  200. app-rn-runtime/components/dialogs/dialogcontent/dialogcontent.component.js.map +1 -1
  201. app-rn-runtime/components/dialogs/dialogcontent/dialogcontent.props.js.map +1 -1
  202. app-rn-runtime/components/input/basedataset/basedataset.component.js.map +1 -1
  203. app-rn-runtime/components/input/basedataset/basedataset.props.js.map +1 -1
  204. app-rn-runtime/components/input/baseinput/baseinput.component.js +2 -2
  205. app-rn-runtime/components/input/baseinput/baseinput.component.js.map +1 -1
  206. app-rn-runtime/components/input/baseinput/baseinput.props.js.map +1 -1
  207. app-rn-runtime/components/input/basenumber/basenumber.component.js +1 -1
  208. app-rn-runtime/components/input/basenumber/basenumber.component.js.map +1 -1
  209. app-rn-runtime/components/input/basenumber/basenumber.props.js.map +1 -1
  210. app-rn-runtime/components/input/calendar/calendar.component.js.map +1 -1
  211. app-rn-runtime/components/input/calendar/calendar.props.js.map +1 -1
  212. app-rn-runtime/components/input/calendar/calendar.styles.js +22 -0
  213. app-rn-runtime/components/input/calendar/calendar.styles.js.map +1 -1
  214. app-rn-runtime/components/input/calendar/views/month-view.js +1 -0
  215. app-rn-runtime/components/input/calendar/views/month-view.js.map +1 -1
  216. app-rn-runtime/components/input/checkbox/checkbox.component.js.map +1 -1
  217. app-rn-runtime/components/input/checkbox/checkbox.props.js.map +1 -1
  218. app-rn-runtime/components/input/checkboxset/checkboxset.component.js.map +1 -1
  219. app-rn-runtime/components/input/checkboxset/checkboxset.props.js.map +1 -1
  220. app-rn-runtime/components/input/chips/chips.component.js +1 -0
  221. app-rn-runtime/components/input/chips/chips.component.js.map +1 -1
  222. app-rn-runtime/components/input/chips/chips.props.js.map +1 -1
  223. app-rn-runtime/components/input/composite/composite.component.js.map +1 -1
  224. app-rn-runtime/components/input/composite/composite.props.js.map +1 -1
  225. app-rn-runtime/components/input/currency/currency.component.js +6 -4
  226. app-rn-runtime/components/input/currency/currency.component.js.map +1 -1
  227. app-rn-runtime/components/input/currency/currency.props.js +1 -1
  228. app-rn-runtime/components/input/currency/currency.props.js.map +1 -1
  229. app-rn-runtime/components/input/currency/currency.styles.js +9 -0
  230. app-rn-runtime/components/input/currency/currency.styles.js.map +1 -1
  231. app-rn-runtime/components/input/epoch/base-datetime.component.js +5 -2
  232. app-rn-runtime/components/input/epoch/base-datetime.component.js.map +1 -1
  233. app-rn-runtime/components/input/epoch/date/date.component.js.map +1 -1
  234. app-rn-runtime/components/input/epoch/date/date.props.js.map +1 -1
  235. app-rn-runtime/components/input/epoch/date/date.styles.js +9 -0
  236. app-rn-runtime/components/input/epoch/date/date.styles.js.map +1 -1
  237. app-rn-runtime/components/input/epoch/date-picker.component.js.map +1 -1
  238. app-rn-runtime/components/input/epoch/datetime/datetime.component.js.map +1 -1
  239. app-rn-runtime/components/input/epoch/datetime/datetime.props.js.map +1 -1
  240. app-rn-runtime/components/input/epoch/datetime/datetime.styles.js +9 -0
  241. app-rn-runtime/components/input/epoch/datetime/datetime.styles.js.map +1 -1
  242. app-rn-runtime/components/input/epoch/time/time.component.js.map +1 -1
  243. app-rn-runtime/components/input/epoch/time/time.props.js.map +1 -1
  244. app-rn-runtime/components/input/epoch/time/time.styles.js +9 -0
  245. app-rn-runtime/components/input/epoch/time/time.styles.js.map +1 -1
  246. app-rn-runtime/components/input/fileupload/fileupload.component.js.map +1 -1
  247. app-rn-runtime/components/input/fileupload/fileupload.props.js.map +1 -1
  248. app-rn-runtime/components/input/number/number.component.js +6 -4
  249. app-rn-runtime/components/input/number/number.component.js.map +1 -1
  250. app-rn-runtime/components/input/number/number.props.js +1 -1
  251. app-rn-runtime/components/input/number/number.props.js.map +1 -1
  252. app-rn-runtime/components/input/number/number.styles.js +5 -0
  253. app-rn-runtime/components/input/number/number.styles.js.map +1 -1
  254. app-rn-runtime/components/input/radioset/radioset.component.js.map +1 -1
  255. app-rn-runtime/components/input/radioset/radioset.props.js.map +1 -1
  256. app-rn-runtime/components/input/rating/rating.component.js +1 -1
  257. app-rn-runtime/components/input/rating/rating.component.js.map +1 -1
  258. app-rn-runtime/components/input/rating/rating.props.js.map +1 -1
  259. app-rn-runtime/components/input/select/select.component.js +1 -1
  260. app-rn-runtime/components/input/select/select.component.js.map +1 -1
  261. app-rn-runtime/components/input/select/select.props.js.map +1 -1
  262. app-rn-runtime/components/input/select/select.styles.js +10 -0
  263. app-rn-runtime/components/input/select/select.styles.js.map +1 -1
  264. app-rn-runtime/components/input/slider/slider.component.js +2 -1
  265. app-rn-runtime/components/input/slider/slider.component.js.map +1 -1
  266. app-rn-runtime/components/input/slider/slider.props.js.map +1 -1
  267. app-rn-runtime/components/input/switch/switch.component.js.map +1 -1
  268. app-rn-runtime/components/input/switch/switch.props.js.map +1 -1
  269. app-rn-runtime/components/input/switch/switch.styles.js +36 -0
  270. app-rn-runtime/components/input/switch/switch.styles.js.map +1 -1
  271. app-rn-runtime/components/input/text/text.component.js +5 -3
  272. app-rn-runtime/components/input/text/text.component.js.map +1 -1
  273. app-rn-runtime/components/input/text/text.props.js.map +1 -1
  274. app-rn-runtime/components/input/text/text.styles.js +5 -0
  275. app-rn-runtime/components/input/text/text.styles.js.map +1 -1
  276. app-rn-runtime/components/input/textarea/textarea.component.js +5 -3
  277. app-rn-runtime/components/input/textarea/textarea.component.js.map +1 -1
  278. app-rn-runtime/components/input/textarea/textarea.props.js.map +1 -1
  279. app-rn-runtime/components/input/textarea/textarea.styles.js +5 -0
  280. app-rn-runtime/components/input/textarea/textarea.styles.js.map +1 -1
  281. app-rn-runtime/components/input/toggle/toggle.component.js +17 -11
  282. app-rn-runtime/components/input/toggle/toggle.component.js.map +1 -1
  283. app-rn-runtime/components/input/toggle/toggle.props.js.map +1 -1
  284. app-rn-runtime/components/input/toggle/toggle.styles.js +28 -3
  285. app-rn-runtime/components/input/toggle/toggle.styles.js.map +1 -1
  286. app-rn-runtime/components/navigation/appnavbar/appnavbar.component.js.map +1 -1
  287. app-rn-runtime/components/navigation/appnavbar/appnavbar.props.js.map +1 -1
  288. app-rn-runtime/components/navigation/appnavbar/appnavbar.styles.js.map +1 -1
  289. app-rn-runtime/components/navigation/basenav/basenav.component.js.map +1 -1
  290. app-rn-runtime/components/navigation/basenav/basenav.props.js.map +1 -1
  291. app-rn-runtime/components/navigation/menu/menu.component.js.map +1 -1
  292. app-rn-runtime/components/navigation/menu/menu.props.js.map +1 -1
  293. app-rn-runtime/components/navigation/menu/menu.styles.js +6 -0
  294. app-rn-runtime/components/navigation/menu/menu.styles.js.map +1 -1
  295. app-rn-runtime/components/navigation/navbar/navbar.component.js.map +1 -1
  296. app-rn-runtime/components/navigation/navbar/navbar.props.js.map +1 -1
  297. app-rn-runtime/components/navigation/navbar/navbar.styles.js.map +1 -1
  298. app-rn-runtime/components/navigation/navitem/navitem.component.js.map +1 -1
  299. app-rn-runtime/components/navigation/navitem/navitem.props.js.map +1 -1
  300. app-rn-runtime/components/navigation/navitem/navitem.styles.js.map +1 -1
  301. app-rn-runtime/components/navigation/popover/popover.component.js.map +1 -1
  302. app-rn-runtime/components/navigation/popover/popover.props.js.map +1 -1
  303. app-rn-runtime/components/navigation/popover/popover.styles.js.map +1 -1
  304. app-rn-runtime/components/page/content/content.component.js.map +1 -1
  305. app-rn-runtime/components/page/left-panel/left-panel.component.js.map +1 -1
  306. app-rn-runtime/components/page/left-panel/left-panel.props.js.map +1 -1
  307. app-rn-runtime/components/page/page-content/page-content.component.js.map +1 -1
  308. app-rn-runtime/components/page/page-content/page-content.props.js.map +1 -1
  309. app-rn-runtime/components/page/page.component.js.map +1 -1
  310. app-rn-runtime/components/page/partial/partial.component.js.map +1 -1
  311. app-rn-runtime/components/page/partial-container/partial-container.component.js.map +1 -1
  312. app-rn-runtime/components/page/partial-container/partial-container.props.js.map +1 -1
  313. app-rn-runtime/components/page/tabbar/tabbar.component.js.map +1 -1
  314. app-rn-runtime/components/page/tabbar/tabbar.props.js.map +1 -1
  315. app-rn-runtime/components/prefab/prefab-container.component.js.map +1 -1
  316. app-rn-runtime/core/asset.provider.js.map +1 -1
  317. app-rn-runtime/core/base.component.js +19 -14
  318. app-rn-runtime/core/base.component.js.map +1 -1
  319. app-rn-runtime/core/components/textinput.component.js +37 -0
  320. app-rn-runtime/core/components/textinput.component.js.map +1 -0
  321. app-rn-runtime/core/device/camera-service.js.map +1 -1
  322. app-rn-runtime/core/device/scan-service.js.map +1 -1
  323. app-rn-runtime/core/display.manager.js.map +1 -1
  324. app-rn-runtime/core/event-notifier.js.map +1 -1
  325. app-rn-runtime/core/fixed-view.component.js.map +1 -1
  326. app-rn-runtime/core/formatters.js.map +1 -1
  327. app-rn-runtime/core/i18n.service.js +2 -0
  328. app-rn-runtime/core/i18n.service.js.map +1 -0
  329. app-rn-runtime/core/if.component.js +3 -3
  330. app-rn-runtime/core/if.component.js.map +1 -1
  331. app-rn-runtime/core/imageSizeEstimator.js.map +1 -1
  332. app-rn-runtime/core/injector.js +2 -1
  333. app-rn-runtime/core/injector.js.map +1 -1
  334. app-rn-runtime/core/logger.js +4 -1
  335. app-rn-runtime/core/logger.js.map +1 -1
  336. app-rn-runtime/core/modal.service.js.map +1 -1
  337. app-rn-runtime/core/navigation.service.js.map +1 -1
  338. app-rn-runtime/core/network.service.js +17 -15
  339. app-rn-runtime/core/network.service.js.map +1 -1
  340. app-rn-runtime/core/partial.service.js.map +1 -1
  341. app-rn-runtime/core/props.provider.js.map +1 -1
  342. app-rn-runtime/core/scroll-view.component.js.map +1 -1
  343. app-rn-runtime/core/security.service.js.map +1 -1
  344. app-rn-runtime/core/spinner.service.js.map +1 -1
  345. app-rn-runtime/core/storage.service.js.map +1 -1
  346. app-rn-runtime/core/tappable.component.js +11 -2
  347. app-rn-runtime/core/tappable.component.js.map +1 -1
  348. app-rn-runtime/core/toast.service.js.map +1 -1
  349. app-rn-runtime/core/utils.js +3 -0
  350. app-rn-runtime/core/utils.js.map +1 -1
  351. app-rn-runtime/core/viewport.js.map +1 -1
  352. app-rn-runtime/gestures/swipe.animation.js +9 -4
  353. app-rn-runtime/gestures/swipe.animation.js.map +1 -1
  354. app-rn-runtime/package.json +30 -30
  355. app-rn-runtime/runtime/App.js +14 -6
  356. app-rn-runtime/runtime/App.js.map +1 -1
  357. app-rn-runtime/runtime/App.navigator.js +11 -2
  358. app-rn-runtime/runtime/App.navigator.js.map +1 -1
  359. app-rn-runtime/runtime/base-fragment.component.js +4 -4
  360. app-rn-runtime/runtime/base-fragment.component.js.map +1 -1
  361. app-rn-runtime/runtime/base-page.component.js +2 -0
  362. app-rn-runtime/runtime/base-page.component.js.map +1 -1
  363. app-rn-runtime/runtime/base-partial.component.js.map +1 -1
  364. app-rn-runtime/runtime/base-prefab.component.js +1 -5
  365. app-rn-runtime/runtime/base-prefab.component.js.map +1 -1
  366. app-rn-runtime/runtime/lib-patch.js.map +1 -1
  367. app-rn-runtime/runtime/memo.component.js.map +1 -1
  368. app-rn-runtime/runtime/navigator/drawer.navigator.js.map +1 -1
  369. app-rn-runtime/runtime/navigator/stack.navigator.js.map +1 -1
  370. app-rn-runtime/runtime/services/app-display-manager.service.js.map +1 -1
  371. app-rn-runtime/runtime/services/app-i18n.service.js +20 -0
  372. app-rn-runtime/runtime/services/app-i18n.service.js.map +1 -1
  373. app-rn-runtime/runtime/services/app-modal.service.js.map +1 -1
  374. app-rn-runtime/runtime/services/app-security.service.js +7 -7
  375. app-rn-runtime/runtime/services/app-security.service.js.map +1 -1
  376. app-rn-runtime/runtime/services/app-spinner.service.js +3 -2
  377. app-rn-runtime/runtime/services/app-spinner.service.js.map +1 -1
  378. app-rn-runtime/runtime/services/app-toast.service.js.map +1 -1
  379. app-rn-runtime/runtime/services/device/calendar-service.js.map +1 -1
  380. app-rn-runtime/runtime/services/device/camera-service.js +2 -3
  381. app-rn-runtime/runtime/services/device/camera-service.js.map +1 -1
  382. app-rn-runtime/runtime/services/device/contacts-service.js.map +1 -1
  383. app-rn-runtime/runtime/services/device/location-service.js.map +1 -1
  384. app-rn-runtime/runtime/services/device/permissions.js.map +1 -1
  385. app-rn-runtime/runtime/services/device/scan-service.js.map +1 -1
  386. app-rn-runtime/runtime/services/partial.service.js.map +1 -1
  387. app-rn-runtime/runtime/services/webprocess.service.js.map +1 -1
  388. app-rn-runtime/runtime/watcher.js.map +1 -1
  389. app-rn-runtime/styles/MediaQueryList.js.map +1 -1
  390. app-rn-runtime/styles/background.component.js +51 -12
  391. app-rn-runtime/styles/background.component.js.map +1 -1
  392. app-rn-runtime/styles/style-prop.validator.js +4 -0
  393. app-rn-runtime/styles/style-prop.validator.js.map +1 -1
  394. app-rn-runtime/styles/style-props.js.map +1 -1
  395. app-rn-runtime/styles/theme.js +8 -3
  396. app-rn-runtime/styles/theme.js.map +1 -1
  397. app-rn-runtime/styles/theme.variables.js +53 -1
  398. app-rn-runtime/styles/theme.variables.js.map +1 -1
  399. app-rn-runtime/variables/base-variable.js +3 -3
  400. app-rn-runtime/variables/base-variable.js.map +1 -1
  401. app-rn-runtime/variables/device/calendar/create-event.operation.js.map +1 -1
  402. app-rn-runtime/variables/device/calendar/delete-event.operation.js.map +1 -1
  403. app-rn-runtime/variables/device/calendar/get-events.operation.js.map +1 -1
  404. app-rn-runtime/variables/device/camera/capture-image.operation.js.map +1 -1
  405. app-rn-runtime/variables/device/camera/capture-video.operation.js.map +1 -1
  406. app-rn-runtime/variables/device/contacts/get-contacts.operation.js.map +1 -1
  407. app-rn-runtime/variables/device/device/app-info.operation.js.map +1 -1
  408. app-rn-runtime/variables/device/device/current-geo-position.operation.js.map +1 -1
  409. app-rn-runtime/variables/device/device/device-info.operation.js.map +1 -1
  410. app-rn-runtime/variables/device/device/network-info.operation.js.map +1 -1
  411. app-rn-runtime/variables/device/device/vibrate.operation.js.map +1 -1
  412. app-rn-runtime/variables/device/file/upload-file.operation.js.map +1 -1
  413. app-rn-runtime/variables/device/operation.provider.js.map +1 -1
  414. app-rn-runtime/variables/device/scan/scan.operation.js.map +1 -1
  415. app-rn-runtime/variables/device-variable.js.map +1 -1
  416. app-rn-runtime/variables/http.service.js +1 -1
  417. app-rn-runtime/variables/http.service.js.map +1 -1
  418. app-rn-runtime/variables/model-variable.js.map +1 -1
  419. app-rn-runtime/variables/service-variable.js +8 -3
  420. app-rn-runtime/variables/service-variable.js.map +1 -1
  421. app-rn-runtime/variables/utils/dataset-util.js.map +1 -1
  422. app-rn-runtime/variables/utils/inflight-queue.js.map +1 -1
  423. app-rn-runtime/variables/utils/variable.utils.js.map +1 -1
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wavemaker/app-rn-runtime",
3
- "version": "11.4.0-next.28151",
3
+ "version": "11.4.0-next.28701",
4
4
  "description": "''",
5
5
  "main": "index",
6
6
  "module": "index",
@@ -41,16 +41,16 @@
41
41
  "dependencies": {
42
42
  "@expo/vector-icons": "~13.0.0",
43
43
  "@react-native-async-storage/async-storage": "^1.17.11",
44
- "@react-native-community/datetimepicker": "^6.7.1",
44
+ "@react-native-community/datetimepicker": "^6.7.3",
45
45
  "@react-native-community/netinfo": "^9.3.7",
46
- "@react-native-community/slider": "^4.2.1",
46
+ "@react-native-community/slider": "^4.4.1",
47
47
  "@react-native-masked-view/masked-view": "^0.2.8",
48
- "@react-navigation/drawer": "^6.5.3",
48
+ "@react-navigation/drawer": "^6.6.2",
49
49
  "@react-navigation/native": "^6.0.16",
50
50
  "@react-navigation/stack": "^6.3.7",
51
51
  "@types/lodash-es": "^4.17.6",
52
- "@wavemaker/variables": "11.4.0-next.28151",
53
- "axios": "^0.21.1",
52
+ "@wavemaker/variables": "11.4.0-next.28701",
53
+ "axios": "^1.4.0",
54
54
  "color": "4.2.3",
55
55
  "cross-env": "^5.2.0",
56
56
  "css-mediaquery": "^0.1.2",
@@ -59,20 +59,20 @@
59
59
  "expo-modules-core": "~1.1.0",
60
60
  "fast-xml-parser": "^3.17.6",
61
61
  "lodash-es": "^4.17.21",
62
- "lottie-react-native": "^5.1.5",
62
+ "lottie-react-native": "^5.1.4",
63
63
  "moment": "^2.29.1",
64
64
  "react-lottie-player": "^1.5.4",
65
65
  "react-native-animatable": "^1.3.3",
66
- "react-native-circular-progress": "^1.3.7",
66
+ "react-native-circular-progress": "^1.3.9",
67
67
  "react-native-logs": "^4.0.1",
68
68
  "react-native-paper": "^4.11.1",
69
69
  "react-native-paper-dates": "^0.8.0",
70
- "react-native-reanimated": "~2.12.0",
71
- "react-native-screens": "~3.18.2",
70
+ "react-native-reanimated": "~2.14.4",
71
+ "react-native-screens": "~3.20.0",
72
72
  "react-native-snap-carousel": "^3.9.1",
73
73
  "react-native-svg": "13.4.0",
74
- "react-native-web": "~0.18.10",
75
- "react-native-webview": "~11.25.0",
74
+ "react-native-web": "~0.18.12",
75
+ "react-native-webview": "~11.26.0",
76
76
  "react-xml-parser": "^1.1.8",
77
77
  "xml2js": "^0.4.23"
78
78
  },
@@ -99,35 +99,35 @@
99
99
  "eslint-config-prettier": "^7.0.0",
100
100
  "eslint-plugin-prettier": "^3.1.3",
101
101
  "execa": "^5.0.0",
102
- "expo-av": "~13.0.1",
103
- "expo-barcode-scanner": "~12.1.0",
104
- "expo-calendar": "~11.0.1",
105
- "expo-camera": "~13.1.0",
106
- "expo-contacts": "~11.0.1",
107
- "expo-device": "~5.0.0",
108
- "expo-document-picker": "~11.0.1",
102
+ "expo-av": "~13.2.1",
103
+ "expo-barcode-scanner": "~12.3.2",
104
+ "expo-calendar": "~11.1.1",
105
+ "expo-camera": "~13.2.1",
106
+ "expo-contacts": "~12.0.1",
107
+ "expo-device": "~5.2.1",
108
+ "expo-document-picker": "~11.2.2",
109
109
  "expo-file-system": "^15.1.1",
110
- "expo-location": "~15.0.1",
111
- "expo-network": "~5.0.0",
112
- "expo-splash-screen": "~0.17.5",
113
- "expo-web-browser": "~12.0.0",
110
+ "expo-location": "~15.1.1",
111
+ "expo-network": "~5.2.1",
112
+ "expo-splash-screen": "~0.18.2",
113
+ "expo-web-browser": "~12.1.1",
114
114
  "handlebars": "^4.7.7",
115
115
  "jest": "^29.3.1",
116
116
  "jest-html-reporter": "^3.7.0",
117
117
  "ncp": "^2.0.0",
118
- "react": "18.1.0",
119
- "react-dom": "18.1.0",
120
- "react-native": "0.70.5",
118
+ "react": "18.2.0",
119
+ "react-dom": "18.2.0",
120
+ "react-native": "0.71.8",
121
121
  "react-native-builder-bob": "^0.18.1",
122
- "react-native-gesture-handler": "~2.2.1",
123
- "react-native-safe-area-context": "4.2.4",
122
+ "react-native-gesture-handler": "~2.9.0",
123
+ "react-native-safe-area-context": "4.5.3",
124
124
  "react-test-renderer": "18.1.0",
125
125
  "release-it": "^14.2.2",
126
126
  "tar": "^6.1.0",
127
127
  "typescript": "^4.9.3",
128
- "victory-native": "^36.5.3",
128
+ "victory-native": "^36.6.11",
129
129
  "yargs": "^16.2.0",
130
- "@wavemaker/variables": "11.4.0-next.28151"
130
+ "@wavemaker/variables": "11.4.0-next.28701"
131
131
  },
132
132
  "jest": {
133
133
  "preset": "react-native",
@@ -154,16 +154,20 @@ export default class BaseApp extends React.Component {
154
154
  return (_this$appConfig$curre4 = this.appConfig.currentPage) === null || _this$appConfig$curre4 === void 0 ? void 0 : _this$appConfig$curre4.openUrl(url, params);
155
155
  }
156
156
  onBeforeServiceCall(config) {
157
- if (config.headers) config.headers['X-Requested-With'] = 'XMLHttpRequest';
158
- console.log('onBeforeService call invoked on ' + config.url);
157
+ //DO NOT WRITE CODE HERE:
158
+ //This is a placeholder for the WaveMaker developer.
159
159
  return config;
160
160
  }
161
161
  isSkeletonEnabled() {
162
162
  return this.appConfig.spinner.loader == "skeleton";
163
163
  }
164
- onServiceSuccess(data, response) {}
164
+ onServiceSuccess(data, response) {
165
+ //DO NOT WRITE CODE HERE:
166
+ //This is a placeholder for the WaveMaker developer.
167
+ }
165
168
  onServiceError(errorMsg, error) {
166
- console.error(`Error ${errorMsg} recieved from ${error.request.url}`);
169
+ //DO NOT WRITE CODE HERE:
170
+ //This is a placeholder for the WaveMaker developer.
167
171
  }
168
172
  invokeNativeApi(key, data) {
169
173
  if (NativeModulesProxy.EmbedCommModule && (Platform.OS === 'android' || Platform.OS === 'ios')) {
@@ -198,12 +202,15 @@ export default class BaseApp extends React.Component {
198
202
  if (!(url.startsWith('http://') || url.startsWith("https://"))) {
199
203
  config.url = this.appConfig.url + '/' + url;
200
204
  }
205
+ config.headers = config.headers || {};
206
+ config.headers['X-Requested-With'] = 'XMLHttpRequest';
207
+ console.log('onBeforeService call invoked on ' + config.url);
201
208
  return this.onBeforeServiceCall(config);
202
209
  }), axios.interceptors.response.use(response => {
203
210
  this.onServiceSuccess(response.data, response);
204
211
  return response;
205
212
  }, error => {
206
- var _errorDetails, _errorDetails2, _error$response, _error$response$confi, _error$response2;
213
+ var _errorDetails, _errorDetails2, _error$response, _error$response2, _error$response3;
207
214
  let errorDetails = error.response,
208
215
  errMsg;
209
216
  errorDetails = getValidJSON((_errorDetails = errorDetails) === null || _errorDetails === void 0 ? void 0 : _errorDetails.data) || ((_errorDetails2 = errorDetails) === null || _errorDetails2 === void 0 ? void 0 : _errorDetails2.data);
@@ -213,8 +220,9 @@ export default class BaseApp extends React.Component {
213
220
  errMsg = error.message || "Service Call Failed";
214
221
  }
215
222
  error.message = errMsg;
223
+ console.error(`Error ${errMsg} recieved from ${(_error$response = error.response) === null || _error$response === void 0 || (_error$response = _error$response.config) === null || _error$response === void 0 ? void 0 : _error$response.url}`);
216
224
  this.onServiceError(error.message, error);
217
- if ((_error$response = error.response) !== null && _error$response !== void 0 && (_error$response$confi = _error$response.config.url) !== null && _error$response$confi !== void 0 && _error$response$confi.startsWith(this.appConfig.url) && ((_error$response2 = error.response) === null || _error$response2 === void 0 ? void 0 : _error$response2.status) === 401) {
225
+ if ((_error$response2 = error.response) !== null && _error$response2 !== void 0 && (_error$response2 = _error$response2.config.url) !== null && _error$response2 !== void 0 && _error$response2.startsWith(this.appConfig.url) && ((_error$response3 = error.response) === null || _error$response3 === void 0 ? void 0 : _error$response3.status) === 401) {
218
226
  var _this$appConfig$curre5, _this$appConfig$curre6;
219
227
  ((_this$appConfig$curre5 = this.appConfig.currentPage) === null || _this$appConfig$curre5 === void 0 ? void 0 : _this$appConfig$curre5.pageName) !== 'Login' && ((_this$appConfig$curre6 = this.appConfig.currentPage) === null || _this$appConfig$curre6 === void 0 ? void 0 : _this$appConfig$curre6.goToPage('Login'));
220
228
  }
@@ -1 +1 @@
1
- {"version":3,"names":["React","axios","Platform","TouchableOpacity","View","StatusBar","ProtoTypes","SafeAreaProvider","SafeAreaInsetsContext","SafeAreaView","DefaultTheme","Provider","PaperProvider","Linking","NativeModulesProxy","WebBrowser","get","last","RENDER_LOGGER","ThemeProvider","StorageService","injector","formatters","deepCopy","isWebPreviewMode","Utils","ModalProvider","FixedViewContainer","ToastProvider","NavigationServiceProvider","PartialProvider","WmNetworkInfoToaster","ThemeVariables","WmMessage","Animatedview","Watcher","preparePatch","AppDisplayManagerService","AppModalService","AppToastService","AppPartialService","AppSpinnerService","AppNavigator","SecurityProvider","CameraProvider","CameraService","ScanProvider","ScanService","AppSecurityService","getValidJSON","parseErrors","MaterialCommunityIconsFont","SplashScreen","WmMemo","style","any","MIN_TIME_BETWEEN_REFRESH_CYCLES","DrawerImpl","constructor","onChange","setContent","content","getContent","setAnimation","animation","getAnimation","SUPPORTED_SERVICES","BaseApp","Component","props","ROOT","refresh","preventAutoHideAsync","setTimeout","hideAsync","appConfig","app","drawer","setDefaultOptions","spinner","refreshAfterWait","baseUrl","url","wait","bindServiceInterceptors","complete","reload","debug","forceUpdate","commonPartial","currentPage","watcher","check","goToPage","pageName","params","goBack","openUrl","onBeforeServiceCall","config","headers","console","log","isSkeletonEnabled","loader","onServiceSuccess","data","response","onServiceError","errorMsg","error","request","invokeNativeApi","key","EmbedCommModule","OS","sendToNative","Promise","reject","onPageReady","activePageName","activePageScope","openBrowser","window","open","startsWith","target","openBrowserAsync","openURL","resolve","axiosInterceptorIds","interceptors","use","errorDetails","errMsg","errors","message","status","eval","fn","failOnError","call","e","componentDidMount","show","all","startUpVariables","map","s","Variables","invoke","catch","then","onAppVariablesReady","isStarted","startUpActions","a","Actions","componentWillUnmount","id","eject","cleanup","forEach","getProviders","renderToasters","toastsOpened","length","watch","refreshCount","o","i","position","width","bottom","elevation","elevationIndex","zIndex","styles","onClick","text","type","renderDialogs","modalsOpened","animatedRefs","modalOptions","name","isModal","hideModal","appModal","centered","centeredModal","modalStyle","ref","animatedRef","appModalContent","contentStyle","evt","stopPropagation","renderDisplayManager","displayOptions","theme","displayViewContainer","renderIconsViewSupportForWeb","getSelectedLocale","selectedLocale","getDependency","serviceName","service","renderApp","autoUpdateVariables","value","invokeOnParamChange","colors","primary","INSTANCE","primaryColor","insets","top","left","right","flex","container","appLocale","alignItems","flexDirection","justifyContent","backgroundColor","height"],"sources":["App.tsx"],"sourcesContent":["import React, { ReactNode } from 'react';\nimport axios, { AxiosError, AxiosRequestConfig, AxiosResponse } from 'axios';\nimport { Platform, TouchableOpacity, View, ViewStyle, StatusBar } from 'react-native';\nimport ProtoTypes from 'prop-types';\nimport { SafeAreaProvider, SafeAreaInsetsContext, SafeAreaView } from 'react-native-safe-area-context';\nimport { DefaultTheme, Provider as PaperProvider } from 'react-native-paper';\nimport { Linking } from 'react-native';\nimport { NativeModulesProxy } from 'expo-modules-core';\nimport * as WebBrowser from 'expo-web-browser';\nimport { get, last } from 'lodash';\nimport { RENDER_LOGGER } from '@wavemaker/app-rn-runtime/core/logger';\nimport { ThemeProvider } from '@wavemaker/app-rn-runtime/styles/theme';\nimport AppConfig, { Drawer } from '@wavemaker/app-rn-runtime/core/AppConfig';\nimport StorageService from '@wavemaker/app-rn-runtime/core/storage.service';\nimport NetworkService from '@wavemaker/app-rn-runtime/core/network.service';\nimport injector from '@wavemaker/app-rn-runtime/core/injector';\nimport formatters from '@wavemaker/app-rn-runtime/core/formatters';\nimport { deepCopy, isWebPreviewMode } from '@wavemaker/app-rn-runtime/core/utils';\nimport * as Utils from '@wavemaker/app-rn-runtime/core/utils';\nimport { ModalProvider } from '@wavemaker/app-rn-runtime/core/modal.service';\nimport { FixedViewContainer } from '@wavemaker/app-rn-runtime/core/fixed-view.component';\nimport { ToastProvider } from '@wavemaker/app-rn-runtime/core/toast.service';\nimport NavigationService, { NavigationServiceProvider } from '@wavemaker/app-rn-runtime/core/navigation.service';\nimport { PartialProvider } from '@wavemaker/app-rn-runtime/core/partial.service';\nimport WmNetworkInfoToaster from '@wavemaker/app-rn-runtime/components/advanced/network-info-toaster/network-info-toaster.component';\nimport ThemeVariables from '@wavemaker/app-rn-runtime/styles/theme.variables';\nimport WmMessage from '@wavemaker/app-rn-runtime/components/basic/message/message.component';\nimport { Animatedview } from '@wavemaker/app-rn-runtime/components/basic/animatedview.component';\n\nimport { Watcher } from './watcher';\nimport { preparePatch } from './lib-patch';\nimport AppDisplayManagerService from './services/app-display-manager.service';\nimport AppModalService from './services/app-modal.service';\nimport AppToastService from './services/app-toast.service';\nimport AppPartialService from './services/partial.service';\nimport AppSpinnerService from './services/app-spinner.service';\nimport { AppNavigator } from './App.navigator';\nimport { SecurityProvider } from '../core/security.service';\nimport { CameraProvider } from '../core/device/camera-service';\nimport CameraService from './services/device/camera-service';\nimport { ScanProvider } from '../core/device/scan-service';\nimport ScanService from './services/device/scan-service';\nimport AppSecurityService from './services/app-security.service';\nimport {getValidJSON, parseErrors} from '@wavemaker/app-rn-runtime/variables/utils/variable.utils';\nimport MaterialCommunityIconsFont from '@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/MaterialCommunityIcons.ttf';\n\nimport * as SplashScreen from 'expo-splash-screen';\nimport BasePartial from './base-partial.component';\nimport BasePage from './base-page.component';\nimport { WmMemo } from './memo.component';\n\ndeclare const window: any;\n\n//some old react libraries need this\n((View as any)['propTypes'] = { style: ProtoTypes.any})\n\nconst MIN_TIME_BETWEEN_REFRESH_CYCLES = 200;\n\nclass DrawerImpl implements Drawer {\n content: ReactNode;\n animation: string = 'slide-in';\n\n constructor(private onChange: () => void) {\n\n }\n\n setContent(content: ReactNode) {\n this.content = content;\n this.onChange();\n }\n\n getContent() {\n return this.content;\n }\n\n setAnimation(animation: string) {\n this.animation = animation;\n this.onChange();\n }\n\n getAnimation() {\n return this.animation;\n }\n}\nconst SUPPORTED_SERVICES = {\n Utils: Utils,\n StorageService: StorageService,\n AppDisplayManagerService: AppDisplayManagerService\n};\n\nexport default abstract class BaseApp extends React.Component implements NavigationService {\n\n Actions: any = {};\n Variables: any = {};\n onAppVariablesReady = () => {};\n isStarted = false;\n appConfig = injector.get<AppConfig>('APP_CONFIG');\n public baseUrl = '';\n public targetPlatform = 'NATIVE_MOBILE';\n public cleanup = [] as Function[];\n public commonPartial: BasePartial = null as any;\n private startUpVariables: string[] = [];\n private startUpActions: string[] = [];\n private autoUpdateVariables: string[] = [];\n private axiosInterceptorIds: number[] = [];\n public formatters = formatters;\n public serviceDefinitions = {} as any;\n private animatedRef: any;\n public modalsOpened: number = 0;\n public toastsOpened: number = 0;\n public watcher: Watcher = Watcher.ROOT;\n public lib = preparePatch(() => {\n this.refresh();\n });\n\n constructor(props: any) {\n super(props);\n SplashScreen.preventAutoHideAsync();\n setTimeout(() => SplashScreen.hideAsync(), 10000);\n this.appConfig.app = this;\n this.appConfig.drawer = new DrawerImpl(() => this.refresh());\n AppSpinnerService.setDefaultOptions({\n spinner: this.appConfig.spinner\n });\n let refreshAfterWait = false;\n this.baseUrl = this.appConfig.url;\n let wait = 0;\n this.bindServiceInterceptors();\n this.appConfig.refresh = (complete = false) => {\n if (complete) {\n this.reload();\n return;\n }\n if (!wait) {\n RENDER_LOGGER.debug('refreshing the app...');\n wait = MIN_TIME_BETWEEN_REFRESH_CYCLES;\n refreshAfterWait = false;\n setTimeout(() => {\n this.forceUpdate();\n this.commonPartial?.forceUpdate();\n this.appConfig.currentPage?.forceUpdate();\n this.watcher.check();\n });\n setTimeout(() => {\n wait = 0;\n refreshAfterWait && this.appConfig.refresh();\n }, wait);\n } else {\n RENDER_LOGGER.debug('will refresh the app in the next cycle.');\n refreshAfterWait = true;\n }\n }\n }\n\n goToPage(pageName: string, params: any) {\n return this.appConfig.currentPage?.goToPage(pageName, params);\n }\n\n goBack(pageName: string, params: any) {\n return this.appConfig.currentPage?.goBack(pageName, params);\n }\n\n openUrl(url: string, params?: any) {\n return this.appConfig.currentPage?.openUrl(url, params);\n }\n\n onBeforeServiceCall(config: AxiosRequestConfig) {\n if(config.headers) config.headers['X-Requested-With'] = 'XMLHttpRequest';\n console.log('onBeforeService call invoked on ' + config.url);\n return config\n }\n\n isSkeletonEnabled() {\n return this.appConfig.spinner.loader == \"skeleton\";\n }\n\n onServiceSuccess(data: any, response: AxiosResponse) {\n\n }\n\n onServiceError(errorMsg: any, error: AxiosError<any>) {\n console.error(`Error ${errorMsg} recieved from ${error.request.url}`);\n }\n\n invokeNativeApi(key: string, data: Object) {\n if (NativeModulesProxy.EmbedCommModule \n && (Platform.OS === 'android' || Platform.OS === 'ios')) {\n return NativeModulesProxy.EmbedCommModule.sendToNative(key, data || {});\n } else {\n return Promise.reject('Not able to invoke Native API in this platform.');\n }\n }\n\n onPageReady(activePageName: string, activePageScope: BasePage) {\n\n }\n\n get spinner() {\n return AppSpinnerService;\n }\n\n openBrowser(url: string, params = {} as any) {\n if (url) {\n if (isWebPreviewMode()) {\n window.open(url, '_blank');\n } else if (url.startsWith('http') && params.target === '_blank') {\n WebBrowser.openBrowserAsync(url);\n } else {\n return Linking.openURL(url);\n }\n }\n return Promise.resolve();\n }\n\n // To support old api\n reload() {}\n\n bindServiceInterceptors() {\n this.axiosInterceptorIds = [\n axios.interceptors.request.use((config: AxiosRequestConfig) => {\n const url = config.url as string;\n if (!(url.startsWith('http://') || url.startsWith(\"https://\"))) {\n config.url = this.appConfig.url + '/' + url;\n }\n return this.onBeforeServiceCall(config);\n }),\n axios.interceptors.response.use(\n (response: AxiosResponse) => {\n this.onServiceSuccess(response.data, response);\n return response;\n },(error: AxiosError<any>) => {\n let errorDetails: any = error.response, errMsg;\n errorDetails = getValidJSON(errorDetails?.data) || errorDetails?.data;\n if (errorDetails && errorDetails.errors) {\n errMsg = parseErrors(errorDetails.errors) || \"Service Call Failed\";\n } else {\n errMsg = error.message || \"Service Call Failed\";\n }\n error.message = errMsg;\n this.onServiceError(error.message, error);\n if (error.response?.config.url?.startsWith(this.appConfig.url) && error.response?.status === 401) {\n this.appConfig.currentPage?.pageName !== 'Login' && this.appConfig.currentPage?.goToPage('Login');\n }\n return Promise.reject(error)\n })\n ];\n }\n\n eval(fn: Function, failOnError = false) {\n try {\n return fn.call(this);\n } catch (e) {\n if (failOnError) {\n throw e;\n } else {\n return null;\n }\n }\n }\n\n componentDidMount() {\n AppSpinnerService.show({\n spinner: this.appConfig.spinner\n });\n Promise.all(this.startUpVariables.map(s => this.Variables[s] && this.Variables[s].invoke()))\n .catch(() => {})\n .then(() => {\n this.onAppVariablesReady();\n this.isStarted = true;\n this.forceUpdate();\n }, () => {}).then(() => {\n SplashScreen.hideAsync().then(() => {});\n });\n this.startUpActions.map(a => this.Actions[a] && this.Actions[a].invoke());\n }\n\n componentWillUnmount(): void {\n this.axiosInterceptorIds.map(id => {\n axios.interceptors.request.eject(id);\n });\n this.cleanup.forEach(fn => fn());\n }\n\n refresh() {\n this.appConfig.refresh();\n }\n\n getProviders(content: React.ReactNode) {\n return (\n <NavigationServiceProvider value={this}>\n <ToastProvider value={AppToastService}>\n <PartialProvider value={AppPartialService}>\n <SecurityProvider value={AppSecurityService}>\n <CameraProvider value={CameraService}>\n <ScanProvider value={ScanService}>\n <ModalProvider value={AppModalService}>\n { content }\n </ModalProvider>\n </ScanProvider>\n </CameraProvider>\n </SecurityProvider>\n </PartialProvider>\n </ToastProvider>\n </NavigationServiceProvider>\n );\n }\n\n renderToasters() {\n this.toastsOpened = AppToastService.toastsOpened.length;\n return <WmMemo watcher={this.watcher} render={(watch) => {\n watch(() => AppToastService.refreshCount);\n return (\n <>\n {AppToastService.toastsOpened.map((o, i) =>\n this.getProviders((\n <View key={i} style={[{\n position: 'absolute',\n width: '100%',\n bottom: 0,\n elevation: o.elevationIndex,\n zIndex: o.elevationIndex\n }, o.styles]}>\n <TouchableOpacity onPress={() => o.onClick && o.onClick()}>\n {o.content}\n {o.text && <WmMessage type={o.type} caption={o.text} hideclose={true}></WmMessage>}\n </TouchableOpacity>\n </View>\n )\n ))}\n </>);\n }}/>;\n }\n\n renderDialogs(): ReactNode {\n return <WmMemo watcher={this.watcher} render={(watch) => {\n watch(() => last(AppModalService.modalsOpened)?.content);\n this.modalsOpened = AppModalService.modalsOpened.length;\n AppModalService.animatedRefs.length = 0;\n return(\n <>\n {AppModalService.modalOptions.content &&\n AppModalService.modalsOpened.map((o, i) => {\n return (\n <View key={(o.name || '') + i}\n onStartShouldSetResponder={() => true}\n onResponderEnd={() => o.isModal && AppModalService.hideModal(o)}\n style={deepCopy(styles.appModal,\n o.centered ? styles.centeredModal: null,\n o.modalStyle,\n { elevation: o.elevationIndex,\n zIndex: o.elevationIndex })}>\n <Animatedview entryanimation={o.animation || 'fadeIn'}\n ref={ref => {\n this.animatedRef = ref;\n AppModalService.animatedRefs[i] = ref;\n }}\n style={[styles.appModalContent, o.contentStyle]}>\n <View\n onStartShouldSetResponder={evt => true}\n onResponderEnd={(e) => e.stopPropagation()}\n style={{width: '100%', 'alignItems': 'center'}}>\n {this.getProviders(o.content)}\n </View>\n </Animatedview>\n </View>\n )}\n )\n }\n </>);\n }}/>;\n }\n\n renderDisplayManager(): ReactNode {\n return <WmMemo watcher={this.watcher} render={(watch) => {\n watch(() => AppDisplayManagerService.displayOptions.content);\n return AppDisplayManagerService.displayOptions.content\n ? (\n <ThemeProvider value={this.appConfig.theme}>\n <View style={[styles.displayViewContainer, {\n elevation: this.toastsOpened + this.modalsOpened + 1,\n zIndex: this.toastsOpened + this.modalsOpened + 1\n }]}>\n {AppDisplayManagerService.displayOptions.content}\n </View>\n </ThemeProvider>) : null;\n }}/>\n }\n\n renderIconsViewSupportForWeb() {\n try {\n return (<style type=\"text/css\">{`\n @font-face {\n font-family: 'MaterialCommunityIcons';\n src: url(${MaterialCommunityIconsFont}) format('truetype');\n }\n `}</style>);\n } catch (e) {\n console.log('require react-native-vector-icons could not be loaded.');\n }\n return null;\n }\n\n getSelectedLocale() {\n return this.appConfig.selectedLocale;\n }\n\n getDependency(serviceName: string): any {\n const service = get(SUPPORTED_SERVICES, serviceName);\n if (service) {\n return service;\n }\n }\n\n renderApp(commonPartial:React.ReactNode) {\n this.autoUpdateVariables.forEach(value => this.Variables[value]?.invokeOnParamChange());\n return (\n <SafeAreaProvider>\n <PaperProvider theme={{\n ...DefaultTheme,\n colors: {\n ...DefaultTheme.colors,\n primary: ThemeVariables.INSTANCE.primaryColor\n }}}>\n <React.Fragment>\n {Platform.OS === 'web' ? this.renderIconsViewSupportForWeb() : null}\n <SafeAreaInsetsContext.Consumer>\n {(insets = {top: 0, bottom: 0, left: 0, right: 0}) =>\n (this.getProviders(\n (<SafeAreaView style={{flex: 1}}>\n <StatusBar />\n <FixedViewContainer>\n <View style={styles.container}>\n <AppNavigator\n app={this}\n landingPage={(this.props as any).pageName}\n landingPageParams={(this.props as any)?.pageName && this.props}\n hideDrawer={this.appConfig.drawer?.getContent() === null}\n drawerContent={() => this.appConfig.drawer? this.getProviders(this.appConfig.drawer.getContent()) : null}\n drawerAnimation={this.appConfig.drawer?.getAnimation()}></AppNavigator>\n {commonPartial}\n {this.renderToasters()}\n {this.renderDialogs()}\n {this.renderDisplayManager()}\n </View>\n <WmNetworkInfoToaster appLocale={this.appConfig.appLocale}></WmNetworkInfoToaster>\n </FixedViewContainer>\n </SafeAreaView>))\n )\n }\n </SafeAreaInsetsContext.Consumer>\n </React.Fragment>\n </PaperProvider>\n </SafeAreaProvider>\n );\n }\n}\n\nconst styles = {\n container: {\n flex: 1\n },\n appModal: {\n position: 'absolute',\n width: '100%'\n },\n appModalContent : {\n flex: 1,\n width: '100%',\n alignItems: 'center',\n flexDirection: 'column',\n justifyContent: 'center'\n },\n centeredModal: {\n flex: 1,\n position: 'absolute',\n top: 0,\n flexDirection: 'row',\n justifyContent: 'center',\n alignItems: 'center',\n backgroundColor: 'rgba(0, 0, 0, 0.4)',\n height: '100%'\n },\n displayViewContainer: {\n position: 'absolute',\n justifyContent: 'center',\n width: '100%',\n left: 0,\n right: 0,\n top: 0,\n bottom:0\n } as ViewStyle\n};\n"],"mappings":";;;AAAA,OAAOA,KAAK,MAAsB,OAAO;AACzC,OAAOC,KAAK,MAAyD,OAAO;AAC5E,SAASC,QAAQ,EAAEC,gBAAgB,EAAEC,IAAI,EAAaC,SAAS,QAAQ,cAAc;AACrF,OAAOC,UAAU,MAAM,YAAY;AACnC,SAASC,gBAAgB,EAAEC,qBAAqB,EAAEC,YAAY,QAAQ,gCAAgC;AACtG,SAASC,YAAY,EAAEC,QAAQ,IAAIC,aAAa,QAAQ,oBAAoB;AAC5E,SAASC,OAAO,QAAQ,cAAc;AACtC,SAASC,kBAAkB,QAAQ,mBAAmB;AACtD,OAAO,KAAKC,UAAU,MAAM,kBAAkB;AAC9C,SAASC,GAAG,EAAEC,IAAI,QAAQ,QAAQ;AAClC,SAASC,aAAa,QAAQ,uCAAuC;AACrE,SAASC,aAAa,QAAQ,wCAAwC;AAEtE,OAAOC,cAAc,MAAM,gDAAgD;AAE3E,OAAOC,QAAQ,MAAM,yCAAyC;AAC9D,OAAOC,UAAU,MAAM,2CAA2C;AAClE,SAASC,QAAQ,EAAEC,gBAAgB,QAAQ,sCAAsC;AACjF,OAAO,KAAKC,KAAK,MAAO,sCAAsC;AAC9D,SAASC,aAAa,QAAQ,8CAA8C;AAC5E,SAASC,kBAAkB,QAAQ,qDAAqD;AACxF,SAASC,aAAa,QAAQ,8CAA8C;AAC5E,SAA4BC,yBAAyB,QAAQ,mDAAmD;AAChH,SAASC,eAAe,QAAQ,gDAAgD;AAChF,OAAOC,oBAAoB,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AQ;IACxBrD,KAAK,EAAE,MAAM;IACb8C,IAAI,EAAE,CAAC;IACPC,KAAK,EAAE,CAAC;IACRF,GAAG,EAAE,CAAC;IACN5C,MAAM,EAAC;EACT;AACF,CAAC"}
1
+ {"version":3,"names":["React","axios","Platform","TouchableOpacity","View","StatusBar","ProtoTypes","SafeAreaProvider","SafeAreaInsetsContext","SafeAreaView","DefaultTheme","Provider","PaperProvider","Linking","NativeModulesProxy","WebBrowser","get","last","RENDER_LOGGER","ThemeProvider","StorageService","injector","formatters","deepCopy","isWebPreviewMode","Utils","ModalProvider","FixedViewContainer","ToastProvider","NavigationServiceProvider","PartialProvider","WmNetworkInfoToaster","ThemeVariables","WmMessage","Animatedview","Watcher","preparePatch","AppDisplayManagerService","AppModalService","AppToastService","AppPartialService","AppSpinnerService","AppNavigator","SecurityProvider","CameraProvider","CameraService","ScanProvider","ScanService","AppSecurityService","getValidJSON","parseErrors","MaterialCommunityIconsFont","SplashScreen","WmMemo","style","any","MIN_TIME_BETWEEN_REFRESH_CYCLES","DrawerImpl","constructor","onChange","_defineProperty","setContent","content","getContent","setAnimation","animation","getAnimation","SUPPORTED_SERVICES","BaseApp","Component","props","_this","this","ROOT","refresh","preventAutoHideAsync","setTimeout","hideAsync","appConfig","app","drawer","setDefaultOptions","spinner","refreshAfterWait","baseUrl","url","wait","bindServiceInterceptors","complete","arguments","length","undefined","reload","debug","_this$commonPartial","_this$appConfig$curre","forceUpdate","commonPartial","currentPage","watcher","check","goToPage","pageName","params","_this$appConfig$curre2","goBack","_this$appConfig$curre3","openUrl","_this$appConfig$curre4","onBeforeServiceCall","config","isSkeletonEnabled","loader","onServiceSuccess","data","response","onServiceError","errorMsg","error","invokeNativeApi","key","EmbedCommModule","OS","sendToNative","Promise","reject","onPageReady","activePageName","activePageScope","openBrowser","window","open","startsWith","target","openBrowserAsync","openURL","resolve","axiosInterceptorIds","interceptors","request","use","headers","console","log","_errorDetails","_errorDetails2","_error$response","_error$response2","_error$response3","errorDetails","errMsg","errors","message","status","_this$appConfig$curre5","_this$appConfig$curre6","eval","fn","failOnError","call","e","componentDidMount","show","all","startUpVariables","map","s","Variables","invoke","catch","then","onAppVariablesReady","isStarted","startUpActions","a","Actions","componentWillUnmount","id","eject","cleanup","forEach","getProviders","createElement","value","renderToasters","toastsOpened","render","watch","refreshCount","Fragment","o","i","position","width","bottom","elevation","elevationIndex","zIndex","styles","onPress","onClick","text","type","caption","hideclose","renderDialogs","_last","modalsOpened","animatedRefs","modalOptions","name","onStartShouldSetResponder","onResponderEnd","isModal","hideModal","appModal","centered","centeredModal","modalStyle","entryanimation","ref","animatedRef","appModalContent","contentStyle","evt","stopPropagation","renderDisplayManager","displayOptions","theme","displayViewContainer","renderIconsViewSupportForWeb","getSelectedLocale","selectedLocale","getDependency","serviceName","service","renderApp","_this2","autoUpdateVariables","_this$Variables$value","invokeOnParamChange","colors","primary","INSTANCE","primaryColor","Consumer","_this2$props","_this2$appConfig$draw","_this2$appConfig$draw2","insets","top","left","right","flex","container","landingPage","landingPageParams","hideDrawer","drawerContent","drawerAnimation","appLocale","alignItems","flexDirection","justifyContent","backgroundColor","height"],"sources":["App.tsx"],"sourcesContent":["import React, { ReactNode } from 'react';\nimport axios, { AxiosError, InternalAxiosRequestConfig, AxiosResponse } from 'axios';\nimport { Platform, TouchableOpacity, View, ViewStyle, StatusBar } from 'react-native';\nimport ProtoTypes from 'prop-types';\nimport { SafeAreaProvider, SafeAreaInsetsContext, SafeAreaView } from 'react-native-safe-area-context';\nimport { DefaultTheme, Provider as PaperProvider } from 'react-native-paper';\nimport { Linking } from 'react-native';\nimport { NativeModulesProxy } from 'expo-modules-core';\nimport * as WebBrowser from 'expo-web-browser';\nimport { get, last } from 'lodash';\nimport { RENDER_LOGGER } from '@wavemaker/app-rn-runtime/core/logger';\nimport { ThemeProvider } from '@wavemaker/app-rn-runtime/styles/theme';\nimport AppConfig, { Drawer } from '@wavemaker/app-rn-runtime/core/AppConfig';\nimport StorageService from '@wavemaker/app-rn-runtime/core/storage.service';\nimport NetworkService from '@wavemaker/app-rn-runtime/core/network.service';\nimport injector from '@wavemaker/app-rn-runtime/core/injector';\nimport formatters from '@wavemaker/app-rn-runtime/core/formatters';\nimport { deepCopy, isWebPreviewMode } from '@wavemaker/app-rn-runtime/core/utils';\nimport * as Utils from '@wavemaker/app-rn-runtime/core/utils';\nimport { ModalProvider } from '@wavemaker/app-rn-runtime/core/modal.service';\nimport { FixedViewContainer } from '@wavemaker/app-rn-runtime/core/fixed-view.component';\nimport { ToastProvider } from '@wavemaker/app-rn-runtime/core/toast.service';\nimport NavigationService, { NavigationServiceProvider } from '@wavemaker/app-rn-runtime/core/navigation.service';\nimport { PartialProvider } from '@wavemaker/app-rn-runtime/core/partial.service';\nimport WmNetworkInfoToaster from '@wavemaker/app-rn-runtime/components/advanced/network-info-toaster/network-info-toaster.component';\nimport ThemeVariables from '@wavemaker/app-rn-runtime/styles/theme.variables';\nimport WmMessage from '@wavemaker/app-rn-runtime/components/basic/message/message.component';\nimport { Animatedview } from '@wavemaker/app-rn-runtime/components/basic/animatedview.component';\n\nimport { Watcher } from './watcher';\nimport { preparePatch } from './lib-patch';\nimport AppDisplayManagerService from './services/app-display-manager.service';\nimport AppModalService from './services/app-modal.service';\nimport AppToastService from './services/app-toast.service';\nimport AppPartialService from './services/partial.service';\nimport AppSpinnerService from './services/app-spinner.service';\nimport { AppNavigator } from './App.navigator';\nimport { SecurityProvider } from '../core/security.service';\nimport { CameraProvider } from '../core/device/camera-service';\nimport CameraService from './services/device/camera-service';\nimport { ScanProvider } from '../core/device/scan-service';\nimport ScanService from './services/device/scan-service';\nimport AppSecurityService from './services/app-security.service';\nimport {getValidJSON, parseErrors} from '@wavemaker/app-rn-runtime/variables/utils/variable.utils';\nimport MaterialCommunityIconsFont from '@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/MaterialCommunityIcons.ttf';\n\nimport * as SplashScreen from 'expo-splash-screen';\nimport BasePartial from './base-partial.component';\nimport BasePage from './base-page.component';\nimport { WmMemo } from './memo.component';\n\ndeclare const window: any;\n\n//some old react libraries need this\n((View as any)['propTypes'] = { style: ProtoTypes.any})\n\nconst MIN_TIME_BETWEEN_REFRESH_CYCLES = 200;\n\nclass DrawerImpl implements Drawer {\n content: ReactNode;\n animation: string = 'slide-in';\n\n constructor(private onChange: () => void) {\n\n }\n\n setContent(content: ReactNode) {\n this.content = content;\n this.onChange();\n }\n\n getContent() {\n return this.content;\n }\n\n setAnimation(animation: string) {\n this.animation = animation;\n this.onChange();\n }\n\n getAnimation() {\n return this.animation;\n }\n}\nconst SUPPORTED_SERVICES = {\n Utils: Utils,\n StorageService: StorageService,\n AppDisplayManagerService: AppDisplayManagerService\n};\n\nexport default abstract class BaseApp extends React.Component implements NavigationService {\n\n Actions: any = {};\n Variables: any = {};\n onAppVariablesReady = () => {};\n isStarted = false;\n appConfig = injector.get<AppConfig>('APP_CONFIG');\n public baseUrl = '';\n public targetPlatform = 'NATIVE_MOBILE';\n public cleanup = [] as Function[];\n public commonPartial: BasePartial = null as any;\n private startUpVariables: string[] = [];\n private startUpActions: string[] = [];\n private autoUpdateVariables: string[] = [];\n private axiosInterceptorIds: number[] = [];\n public formatters = formatters;\n public serviceDefinitions = {} as any;\n private animatedRef: any;\n public modalsOpened: number = 0;\n public toastsOpened: number = 0;\n public watcher: Watcher = Watcher.ROOT;\n public lib = preparePatch(() => {\n this.refresh();\n });\n\n constructor(props: any) {\n super(props);\n SplashScreen.preventAutoHideAsync();\n setTimeout(() => SplashScreen.hideAsync(), 10000);\n this.appConfig.app = this;\n this.appConfig.drawer = new DrawerImpl(() => this.refresh());\n AppSpinnerService.setDefaultOptions({\n spinner: this.appConfig.spinner\n });\n let refreshAfterWait = false;\n this.baseUrl = this.appConfig.url;\n let wait = 0;\n this.bindServiceInterceptors();\n this.appConfig.refresh = (complete = false) => {\n if (complete) {\n this.reload();\n return;\n }\n if (!wait) {\n RENDER_LOGGER.debug('refreshing the app...');\n wait = MIN_TIME_BETWEEN_REFRESH_CYCLES;\n refreshAfterWait = false;\n setTimeout(() => {\n this.forceUpdate();\n this.commonPartial?.forceUpdate();\n this.appConfig.currentPage?.forceUpdate();\n this.watcher.check();\n });\n setTimeout(() => {\n wait = 0;\n refreshAfterWait && this.appConfig.refresh();\n }, wait);\n } else {\n RENDER_LOGGER.debug('will refresh the app in the next cycle.');\n refreshAfterWait = true;\n }\n }\n }\n\n goToPage(pageName: string, params: any) {\n return this.appConfig.currentPage?.goToPage(pageName, params);\n }\n\n goBack(pageName: string, params: any) {\n return this.appConfig.currentPage?.goBack(pageName, params);\n }\n\n openUrl(url: string, params?: any) {\n return this.appConfig.currentPage?.openUrl(url, params);\n }\n\n onBeforeServiceCall(config: InternalAxiosRequestConfig) {\n //DO NOT WRITE CODE HERE:\n //This is a placeholder for the WaveMaker developer.\n return config;\n }\n\n isSkeletonEnabled() {\n return this.appConfig.spinner.loader == \"skeleton\";\n }\n\n onServiceSuccess(data: any, response: AxiosResponse) {\n //DO NOT WRITE CODE HERE:\n //This is a placeholder for the WaveMaker developer.\n }\n\n onServiceError(errorMsg: any, error: AxiosError<any>) {\n //DO NOT WRITE CODE HERE:\n //This is a placeholder for the WaveMaker developer.\n }\n\n invokeNativeApi(key: string, data: Object) {\n if (NativeModulesProxy.EmbedCommModule \n && (Platform.OS === 'android' || Platform.OS === 'ios')) {\n return NativeModulesProxy.EmbedCommModule.sendToNative(key, data || {});\n } else {\n return Promise.reject('Not able to invoke Native API in this platform.');\n }\n }\n\n onPageReady(activePageName: string, activePageScope: BasePage) {\n\n }\n\n get spinner() {\n return AppSpinnerService;\n }\n\n openBrowser(url: string, params = {} as any) {\n if (url) {\n if (isWebPreviewMode()) {\n window.open(url, '_blank');\n } else if (url.startsWith('http') && params.target === '_blank') {\n WebBrowser.openBrowserAsync(url);\n } else {\n return Linking.openURL(url);\n }\n }\n return Promise.resolve();\n }\n\n // To support old api\n reload() {}\n\n bindServiceInterceptors() {\n this.axiosInterceptorIds = [\n axios.interceptors.request.use((config: InternalAxiosRequestConfig) => {\n const url = config.url as string;\n if (!(url.startsWith('http://') || url.startsWith(\"https://\"))) {\n config.url = this.appConfig.url + '/' + url;\n }\n config.headers = config.headers || {};\n config.headers['X-Requested-With'] = 'XMLHttpRequest';\n console.log('onBeforeService call invoked on ' + config.url);\n return this.onBeforeServiceCall(config);\n }),\n axios.interceptors.response.use(\n (response: AxiosResponse) => {\n this.onServiceSuccess(response.data, response);\n return response;\n },(error: AxiosError<any>) => {\n let errorDetails: any = error.response, errMsg;\n errorDetails = getValidJSON(errorDetails?.data) || errorDetails?.data;\n if (errorDetails && errorDetails.errors) {\n errMsg = parseErrors(errorDetails.errors) || \"Service Call Failed\";\n } else {\n errMsg = error.message || \"Service Call Failed\";\n }\n error.message = errMsg;\n console.error(`Error ${errMsg} recieved from ${error.response?.config?.url}`);\n this.onServiceError(error.message, error);\n if (error.response?.config.url?.startsWith(this.appConfig.url) && error.response?.status === 401) {\n this.appConfig.currentPage?.pageName !== 'Login' && this.appConfig.currentPage?.goToPage('Login');\n }\n return Promise.reject(error)\n })\n ];\n }\n\n eval(fn: Function, failOnError = false) {\n try {\n return fn.call(this);\n } catch (e) {\n if (failOnError) {\n throw e;\n } else {\n return null;\n }\n }\n }\n\n componentDidMount() {\n AppSpinnerService.show({\n spinner: this.appConfig.spinner\n });\n Promise.all(this.startUpVariables.map(s => this.Variables[s] && this.Variables[s].invoke()))\n .catch(() => {})\n .then(() => {\n this.onAppVariablesReady();\n this.isStarted = true;\n this.forceUpdate();\n }, () => {}).then(() => {\n SplashScreen.hideAsync().then(() => {});\n });\n this.startUpActions.map(a => this.Actions[a] && this.Actions[a].invoke());\n }\n\n componentWillUnmount(): void {\n this.axiosInterceptorIds.map(id => {\n axios.interceptors.request.eject(id);\n });\n this.cleanup.forEach(fn => fn());\n }\n\n refresh() {\n this.appConfig.refresh();\n }\n\n getProviders(content: React.ReactNode) {\n return (\n <NavigationServiceProvider value={this}>\n <ToastProvider value={AppToastService}>\n <PartialProvider value={AppPartialService}>\n <SecurityProvider value={AppSecurityService}>\n <CameraProvider value={CameraService}>\n <ScanProvider value={ScanService}>\n <ModalProvider value={AppModalService}>\n { content }\n </ModalProvider>\n </ScanProvider>\n </CameraProvider>\n </SecurityProvider>\n </PartialProvider>\n </ToastProvider>\n </NavigationServiceProvider>\n );\n }\n\n renderToasters() {\n this.toastsOpened = AppToastService.toastsOpened.length;\n return <WmMemo watcher={this.watcher} render={(watch) => {\n watch(() => AppToastService.refreshCount);\n return (\n <>\n {AppToastService.toastsOpened.map((o, i) =>\n this.getProviders((\n <View key={i} style={[{\n position: 'absolute',\n width: '100%',\n bottom: 0,\n elevation: o.elevationIndex,\n zIndex: o.elevationIndex\n }, o.styles]}>\n <TouchableOpacity onPress={() => o.onClick && o.onClick()}>\n {o.content}\n {o.text && <WmMessage type={o.type} caption={o.text} hideclose={true}></WmMessage>}\n </TouchableOpacity>\n </View>\n )\n ))}\n </>);\n }}/>;\n }\n\n renderDialogs(): ReactNode {\n return <WmMemo watcher={this.watcher} render={(watch) => {\n watch(() => last(AppModalService.modalsOpened)?.content);\n this.modalsOpened = AppModalService.modalsOpened.length;\n AppModalService.animatedRefs.length = 0;\n return(\n <>\n {AppModalService.modalOptions.content &&\n AppModalService.modalsOpened.map((o, i) => {\n return (\n <View key={(o.name || '') + i}\n onStartShouldSetResponder={() => true}\n onResponderEnd={() => o.isModal && AppModalService.hideModal(o)}\n style={deepCopy(styles.appModal,\n o.centered ? styles.centeredModal: null,\n o.modalStyle,\n { elevation: o.elevationIndex,\n zIndex: o.elevationIndex })}>\n <Animatedview entryanimation={o.animation || 'fadeIn'}\n ref={ref => {\n this.animatedRef = ref;\n AppModalService.animatedRefs[i] = ref;\n }}\n style={[styles.appModalContent, o.contentStyle]}>\n <View\n onStartShouldSetResponder={evt => true}\n onResponderEnd={(e) => e.stopPropagation()}\n style={{width: '100%', 'alignItems': 'center'}}>\n {this.getProviders(o.content)}\n </View>\n </Animatedview>\n </View>\n )}\n )\n }\n </>);\n }}/>;\n }\n\n renderDisplayManager(): ReactNode {\n return <WmMemo watcher={this.watcher} render={(watch) => {\n watch(() => AppDisplayManagerService.displayOptions.content);\n return AppDisplayManagerService.displayOptions.content\n ? (\n <ThemeProvider value={this.appConfig.theme}>\n <View style={[styles.displayViewContainer, {\n elevation: this.toastsOpened + this.modalsOpened + 1,\n zIndex: this.toastsOpened + this.modalsOpened + 1\n }]}>\n {AppDisplayManagerService.displayOptions.content}\n </View>\n </ThemeProvider>) : null;\n }}/>\n }\n\n renderIconsViewSupportForWeb() {\n try {\n return (<style type=\"text/css\">{`\n @font-face {\n font-family: 'MaterialCommunityIcons';\n src: url(${MaterialCommunityIconsFont}) format('truetype');\n }\n `}</style>);\n } catch (e) {\n console.log('require react-native-vector-icons could not be loaded.');\n }\n return null;\n }\n\n getSelectedLocale() {\n return this.appConfig.selectedLocale;\n }\n\n getDependency(serviceName: string): any {\n const service = get(SUPPORTED_SERVICES, serviceName);\n if (service) {\n return service;\n }\n }\n\n renderApp(commonPartial:React.ReactNode) {\n this.autoUpdateVariables.forEach(value => this.Variables[value]?.invokeOnParamChange());\n return (\n <SafeAreaProvider>\n <PaperProvider theme={{\n ...DefaultTheme,\n colors: {\n ...DefaultTheme.colors,\n primary: ThemeVariables.INSTANCE.primaryColor\n }}}>\n <React.Fragment>\n {Platform.OS === 'web' ? this.renderIconsViewSupportForWeb() : null}\n <SafeAreaInsetsContext.Consumer>\n {(insets = {top: 0, bottom: 0, left: 0, right: 0}) =>\n (this.getProviders(\n (<SafeAreaView style={{flex: 1}}>\n <StatusBar />\n <FixedViewContainer>\n <View style={styles.container}>\n <AppNavigator\n app={this}\n landingPage={(this.props as any).pageName}\n landingPageParams={(this.props as any)?.pageName && this.props}\n hideDrawer={this.appConfig.drawer?.getContent() === null}\n drawerContent={() => this.appConfig.drawer? this.getProviders(this.appConfig.drawer.getContent()) : null}\n drawerAnimation={this.appConfig.drawer?.getAnimation()}></AppNavigator>\n {commonPartial}\n {this.renderToasters()}\n {this.renderDialogs()}\n {this.renderDisplayManager()}\n </View>\n <WmNetworkInfoToaster appLocale={this.appConfig.appLocale}></WmNetworkInfoToaster>\n </FixedViewContainer>\n </SafeAreaView>))\n )\n }\n </SafeAreaInsetsContext.Consumer>\n </React.Fragment>\n </PaperProvider>\n </SafeAreaProvider>\n );\n }\n}\n\nconst styles = {\n container: {\n flex: 1\n },\n appModal: {\n position: 'absolute',\n width: '100%'\n },\n appModalContent : {\n flex: 1,\n width: '100%',\n alignItems: 'center',\n flexDirection: 'column',\n justifyContent: 'center'\n },\n centeredModal: {\n flex: 1,\n position: 'absolute',\n top: 0,\n flexDirection: 'row',\n justifyContent: 'center',\n alignItems: 'center',\n backgroundColor: 'rgba(0, 0, 0, 0.4)',\n height: '100%'\n },\n displayViewContainer: {\n position: 'absolute',\n justifyContent: 'center',\n width: '100%',\n left: 0,\n right: 0,\n top: 0,\n bottom:0\n } as ViewStyle\n};\n"],"mappings":";;;AAAA,OAAOA,KAAK,MAAsB,OAAO;AACzC,OAAOC,KAAK,MAAiE,OAAO;AACpF,SAASC,QAAQ,EAAEC,gBAAgB,EAAEC,IAAI,EAAaC,SAAS,QAAQ,cAAc;AACrF,OAAOC,UAAU,MAAM,YAAY;AACnC,SAASC,gBAAgB,EAAEC,qBAAqB,EAAEC,YAAY,QAAQ,gCAAgC;AACtG,SAASC,YAAY,EAAEC,QAAQ,IAAIC,aAAa,QAAQ,oBAAoB;AAC5E,SAASC,OAAO,QAAQ,cAAc;AACtC,SAASC,kBAAkB,QAAQ,mBAAmB;AACtD,OAAO,KAAKC,UAAU,MAAM,kBAAkB;AAC9C,SAASC,GAAG,EAAEC,IAAI,QAAQ,QAAQ;AAClC,SAASC,aAAa,QAAQ,uCAAuC;AACrE,SAASC,aAAa,QAAQ,wCAAwC;AAEtE,OAAOC,cAAc,MAAM,gDAAgD;AAE3E,OAAOC,QAAQ,MAAM,yCAAyC;AAC9D,OAAOC,UAAU,MAAM,2CAA2C;AACl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AChE,CACR,CAAE,CAAC;IAAA,CAGS,CAChB,CACH,CACC,CAAC;EAEvB;AACF;AAEA,MAAM9D,MAAM,GAAG;EACbwD,SAAS,EAAE;IACTD,IAAI,EAAE;EACR,CAAC;EACDtC,QAAQ,EAAE;IACRvB,QAAQ,EAAE,UAAU;IACpBC,KAAK,EAAE;EACT,CAAC;EACD6B,eAAe,EAAG;IAChB+B,IAAI,EAAE,CAAC;IACP5D,KAAK,EAAE,MAAM;IACboE,UAAU,EAAE,QAAQ;IACpBC,aAAa,EAAE,QAAQ;IACvBC,cAAc,EAAE;EAClB,CAAC;EACD9C,aAAa,EAAE;IACboC,IAAI,EAAE,CAAC;IACP7D,QAAQ,EAAE,UAAU;IACpB0D,GAAG,EAAE,CAAC;IACNY,aAAa,EAAE,KAAK;IACpBC,cAAc,EAAE,QAAQ;IACxBF,UAAU,EAAE,QAAQ;IACpBG,eAAe,EAAE,oBAAoB;IACrCC,MAAM,EAAE;EACV,CAAC;EACDpC,oBAAoB,EAAE;IACpBrC,QAAQ,EAAE,UAAU;IACpBuE,cAAc,EAAE,QAAQ;IACxBtE,KAAK,EAAE,MAAM;IACb0D,IAAI,EAAE,CAAC;IACPC,KAAK,EAAE,CAAC;IACRF,GAAG,EAAE,CAAC;IACNxD,MAAM,EAAC;EACT;AACF,CAAC"}
@@ -1,11 +1,12 @@
1
1
  import React from 'react';
2
2
  import { Platform, View } from 'react-native';
3
- import { NavigationContainer } from '@react-navigation/native';
3
+ import { NavigationContainer, DefaultTheme } from '@react-navigation/native';
4
4
  import { isWebPreviewMode } from '@wavemaker/app-rn-runtime/core/utils';
5
5
  import injector from '@wavemaker/app-rn-runtime/core/injector';
6
6
  import AppDrawerNavigator from './navigator/drawer.navigator';
7
7
  import AppStackNavigator from './navigator/stack.navigator';
8
8
  import { isEmpty, keys, last } from 'lodash';
9
+ import ThemeVariables from '../styles/theme.variables';
9
10
  const getNavigationState = (pageName, params) => {
10
11
  return {
11
12
  routes: [{
@@ -77,6 +78,13 @@ export const AppNavigator = props => {
77
78
  getStateFromPath: isWebPreviewMode() ? getStateFromPath : undefined,
78
79
  getPathFromState: isWebPreviewMode() ? getPathFromState : undefined
79
80
  };
81
+ const navigationTheme = {
82
+ ...DefaultTheme,
83
+ colors: {
84
+ ...DefaultTheme.colors,
85
+ background: ThemeVariables.INSTANCE.pageContentBgColor
86
+ }
87
+ };
80
88
  (_appConfig$pages = appConfig.pages) === null || _appConfig$pages === void 0 ? void 0 : _appConfig$pages.forEach(p => {
81
89
  //@ts-ignore
82
90
  pages[p.name] = p.name;
@@ -94,7 +102,8 @@ export const AppNavigator = props => {
94
102
  const initialState = props.landingPage && Platform.OS !== 'web' ? getNavigationState(props.landingPage, props.landingPageParams) : undefined;
95
103
  return /*#__PURE__*/React.createElement(NavigationContainer, {
96
104
  initialState: initialState,
97
- linking: linking
105
+ linking: linking,
106
+ theme: navigationTheme
98
107
  }, leftNav);
99
108
  };
100
109
  //# sourceMappingURL=App.navigator.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["React","Platform","View","NavigationContainer","isWebPreviewMode","injector","AppDrawerNavigator","AppStackNavigator","isEmpty","keys","last","getNavigationState","pageName","params","routes","name","state","index","getStateFromPath","path","options","hash","window","location","substring","startsWith","paramstr","split","forEach","p","k","v","getPathFromState","pagesRoute","pageRoute","href","map","join","setTimeout","id","history","replaceState","AppNavigator","props","appConfig","get","pages","linking","prefixes","appId","config","screens","undefined","stack","landingPage","leftNav","drawerAnimation","hideDrawer","drawerContent","initialState","OS","landingPageParams"],"sources":["App.navigator.tsx"],"sourcesContent":["import React, { ReactNode } from 'react';\nimport { Platform, View } from 'react-native';\nimport { NavigationContainer } from '@react-navigation/native';\nimport { isWebPreviewMode } from '@wavemaker/app-rn-runtime/core/utils';\nimport AppConfig from '@wavemaker/app-rn-runtime/core/AppConfig';\nimport injector from '@wavemaker/app-rn-runtime/core/injector';\nimport AppDrawerNavigator from './navigator/drawer.navigator';\nimport AppStackNavigator from './navigator/stack.navigator';\nimport { isEmpty, keys, last } from 'lodash';\n\ndeclare const window: any;\n\nexport interface AppNavigatorProps {\n drawerContent: () => ReactNode;\n drawerAnimation: string;\n hideDrawer: boolean;\n landingPage?: string;\n landingPageParams?: any;\n app: any;\n}\n\nconst getNavigationState = (pageName: string, params: any) => {\n return {\n routes: [{\n name: 'pages',\n state: {\n index: 0,\n routes: [{\n name: pageName,\n params: params\n }]\n }\n }]\n };\n};\n\nconst getStateFromPath = (path: string, options?: any) => {\n let hash: string = window.location.hash;\n hash = hash.substring(1);\n if (hash && hash.startsWith('/')) {\n hash = hash.substring(1);\n }\n if (!hash) {\n return;\n }\n let [pageName, paramstr] = hash.split('?');\n let params = {} as any;\n if (paramstr) {\n paramstr.split('&').forEach((p) => {\n const [k, v] = p.split('=');\n params[k] = v;\n });\n }\n return getNavigationState(pageName, params);\n};\n\nconst getPathFromState = (state: any, options: any) => {\n const pagesRoute = state?.routes[0];\n const pageRoute: any = last(pagesRoute?.state.routes);\n let path = '';\n if (pageRoute) {\n path = window.location.href.split('#')[0] + '#/'+ pageRoute.name;\n if (!isEmpty(pageRoute.params)) {\n path += '?' + keys(pageRoute.params).map((k) => {\n return `${k}=${pageRoute.params[k]}`\n }).join('&');\n }\n }\n setTimeout(() => { \n const id = window.history.state?.id;\n window.history.replaceState({id}, null, path);\n });\n return path;\n};\n\nexport const AppNavigator = (props: AppNavigatorProps) => {\n const appConfig = injector.get<AppConfig>('APP_CONFIG');\n const pages = {};\n const linking = {\n prefixes: [`${appConfig.appId}://`],\n config: {\n screens: {\n \"pages\": {\n path: \"pages\",\n screens: pages\n }\n }\n },\n getStateFromPath: isWebPreviewMode() ? getStateFromPath : undefined,\n getPathFromState: isWebPreviewMode()? getPathFromState: undefined\n } as any;\n appConfig.pages?.forEach((p) => {\n //@ts-ignore\n pages[p.name] = p.name;\n });\n const stack = (<AppStackNavigator\n pages={appConfig.pages || []}\n landingPage={appConfig.landingPage}></AppStackNavigator>);\n const leftNav = (<AppDrawerNavigator\n type={props.drawerAnimation === 'slide-over' ? 'front' : 'slide'}\n hide={props.hideDrawer}\n content={() => (props.drawerContent && props.drawerContent()) || (<View/>)}\n rootComponent={stack}/>);\n const initialState = props.landingPage && Platform.OS !== 'web' ? \n getNavigationState(props.landingPage, props.landingPageParams)\n : undefined;\n return (<NavigationContainer initialState={initialState} linking={linking}>{leftNav}</NavigationContainer>);\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAqB,OAAO;AACxC,SAASC,QAAQ,EAAEC,IAAI,QAAQ,cAAc;AAC7C,SAASC,mBAAmB,QAAQ,0BAA0B;AAC9D,SAASC,gBAAgB,QAAQ,sCAAsC;AAEvE,OAAOC,QAAQ,MAAM,yCAAyC;AAC9D,OAAOC,kBAAkB,MAAM,8BAA8B;AAC7D,OAAOC,iBAAiB,MAAM,6BAA6B;AAC3D,SAASC,OAAO,EAAEC,IAAI,EAAEC,IAAI,QAAQ,QAAQ;AAa5C,MAAMC,kBAAkB,GAAG,CAACC,QAAgB,EAAEC,MAAW,KAAK;EAC5D,OAAO;IACLC,MAAM,EAAE,CAAC;MACPC,IAAI,EAAE,OAAO;MACbC,KAAK,EAAE;QACLC,KAAK,EAAE,CAAC;QACRH,MAAM,EAAE,CAAC;UACPC,IAAI,EAAEH,QAAQ;UACdC,MAAM,EAAEA;QACV,CAAC;MACH;IACF,CAAC;EACH,CAAC;AACH,CAAC;AAED,MAAMK,gBAAgB,GAAG,CAACC,IAAY,EAAEC,OAAa,KAAK;EACxD,IAAIC,IAAY,GAAGC,MAAM,CAACC,QAAQ,CAACF,IAAI;EACvCA,IAAI,GAAGA,IAAI,CAACG,SAAS,CAAC,CAAC,CAAC;EACxB,IAAIH,IAAI,IAAIA,IAAI,CAACI,UAAU,CAAC,GAAG,CAAC,EAAE;IAChCJ,IAAI,GAAGA,IAAI,CAACG,SAAS,CAAC,CAAC,CAAC;EAC1B;EACA,IAAI,CAACH,IAAI,EAAE;IACT;EACF;EACA,IAAI,CAACT,QAAQ,EAAEc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AAK,CAACe,aAAa,EAAE,iBAAO,oBAAC,IAAI,OAAI;IAC5E,aAAa,EAAEL;EAAM,EAAG;EACxB,MAAMM,YAAY,GAAGhB,KAAK,CAACW,WAAW,IAAIrD,QAAQ,CAAC2D,EAAE,KAAK,KAAK,GAC7DjD,kBAAkB,CAACgC,KAAK,CAACW,WAAW,EAAEX,KAAK,CAACkB,iBAAiB,CAAC,GAC9DT,SAAS;EACf,oBAAQ,oBAAC,mBAAmB;IAAC,YAAY,EAAEO,YAAa;IAAC,OAAO,EAAEZ;EAAQ,GAAEQ,OAAO,CAAuB;AAC5G,CAAC"}
1
+ {"version":3,"names":["React","Platform","View","NavigationContainer","DefaultTheme","isWebPreviewMode","injector","AppDrawerNavigator","AppStackNavigator","isEmpty","keys","last","ThemeVariables","getNavigationState","pageName","params","routes","name","state","index","getStateFromPath","path","options","hash","window","location","substring","startsWith","paramstr","split","forEach","p","k","v","getPathFromState","pagesRoute","pageRoute","href","map","join","setTimeout","_window$history$state","id","history","replaceState","AppNavigator","props","_appConfig$pages","appConfig","get","pages","linking","prefixes","appId","config","screens","undefined","navigationTheme","colors","background","INSTANCE","pageContentBgColor","stack","createElement","landingPage","leftNav","type","drawerAnimation","hide","hideDrawer","content","drawerContent","rootComponent","initialState","OS","landingPageParams","theme"],"sources":["App.navigator.tsx"],"sourcesContent":["import React, { ReactNode } from 'react';\nimport { Platform, View } from 'react-native';\nimport { NavigationContainer, DefaultTheme } from '@react-navigation/native';\nimport { isWebPreviewMode } from '@wavemaker/app-rn-runtime/core/utils';\nimport AppConfig from '@wavemaker/app-rn-runtime/core/AppConfig';\nimport injector from '@wavemaker/app-rn-runtime/core/injector';\nimport AppDrawerNavigator from './navigator/drawer.navigator';\nimport AppStackNavigator from './navigator/stack.navigator';\nimport { isEmpty, keys, last } from 'lodash';\nimport ThemeVariables from '../styles/theme.variables';\n\ndeclare const window: any;\n\nexport interface AppNavigatorProps {\n drawerContent: () => ReactNode;\n drawerAnimation: string;\n hideDrawer: boolean;\n landingPage?: string;\n landingPageParams?: any;\n app: any;\n}\n\nconst getNavigationState = (pageName: string, params: any) => {\n return {\n routes: [{\n name: 'pages',\n state: {\n index: 0,\n routes: [{\n name: pageName,\n params: params\n }]\n }\n }]\n };\n};\n\nconst getStateFromPath = (path: string, options?: any) => {\n let hash: string = window.location.hash;\n hash = hash.substring(1);\n if (hash && hash.startsWith('/')) {\n hash = hash.substring(1);\n }\n if (!hash) {\n return;\n }\n let [pageName, paramstr] = hash.split('?');\n let params = {} as any;\n if (paramstr) {\n paramstr.split('&').forEach((p) => {\n const [k, v] = p.split('=');\n params[k] = v;\n });\n }\n return getNavigationState(pageName, params);\n};\n\nconst getPathFromState = (state: any, options: any) => {\n const pagesRoute = state?.routes[0];\n const pageRoute: any = last(pagesRoute?.state.routes);\n let path = '';\n if (pageRoute) {\n path = window.location.href.split('#')[0] + '#/'+ pageRoute.name;\n if (!isEmpty(pageRoute.params)) {\n path += '?' + keys(pageRoute.params).map((k) => {\n return `${k}=${pageRoute.params[k]}`\n }).join('&');\n }\n }\n setTimeout(() => { \n const id = window.history.state?.id;\n window.history.replaceState({id}, null, path);\n });\n return path;\n};\n\nexport const AppNavigator = (props: AppNavigatorProps) => {\n const appConfig = injector.get<AppConfig>('APP_CONFIG');\n const pages = {};\n const linking = {\n prefixes: [`${appConfig.appId}://`],\n config: {\n screens: {\n \"pages\": {\n path: \"pages\",\n screens: pages\n }\n }\n },\n getStateFromPath: isWebPreviewMode() ? getStateFromPath : undefined,\n getPathFromState: isWebPreviewMode()? getPathFromState: undefined\n } as any;\n\n const navigationTheme = {\n ...DefaultTheme,\n colors: {\n ...DefaultTheme.colors,\n background: ThemeVariables.INSTANCE.pageContentBgColor\n },\n };\n \n appConfig.pages?.forEach((p) => {\n //@ts-ignore\n pages[p.name] = p.name;\n });\n const stack = (<AppStackNavigator\n pages={appConfig.pages || []}\n landingPage={appConfig.landingPage}></AppStackNavigator>);\n const leftNav = (<AppDrawerNavigator\n type={props.drawerAnimation === 'slide-over' ? 'front' : 'slide'}\n hide={props.hideDrawer}\n content={() => (props.drawerContent && props.drawerContent()) || (<View/>)}\n rootComponent={stack}/>);\n const initialState = props.landingPage && Platform.OS !== 'web' ? \n getNavigationState(props.landingPage, props.landingPageParams)\n : undefined;\n return (<NavigationContainer initialState={initialState} linking={linking} theme={navigationTheme}>{leftNav}</NavigationContainer>);\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAqB,OAAO;AACxC,SAASC,QAAQ,EAAEC,IAAI,QAAQ,cAAc;AAC7C,SAASC,mBAAmB,EAAEC,YAAY,QAAQ,0BAA0B;AAC5E,SAASC,gBAAgB,QAAQ,sCAAsC;AAEvE,OAAOC,QAAQ,MAAM,yCAAyC;AAC9D,OAAOC,kBAAkB,MAAM,8BAA8B;AAC7D,OAAOC,iBAAiB,MAAM,6BAA6B;AAC3D,SAASC,OAAO,EAAEC,IAAI,EAAEC,IAAI,QAAQ,QAAQ;AAC5C,OAAOC,cAAc,MAAM,2BAA2B;AAatD,MAAMC,kBAAkB,GAAGA,CAACC,QAAgB,EAAEC,MAAW,KAAK;EAC5D,OAAO;IACLC,MAAM,EAAE,CAAC;MACPC,IAAI,EAAE,OAAO;MACbC,KAAK,EAAE;QACLC,KAAK,EAAE,CAAC;QACRH,MAAM,EAAE,CAAC;UACPC,IAAI,EAAEH,QAAQ;UACdC,MAAM,EAAEA;QACV,CAAC;MACH;IACF,CAAC;EACH,CAAC;AACH,CAAC;AAED,MAAMK,gBAAgB,GAAGA,CAACC,IAAY,EAAEC,OAAa,KAAK;EACxD,IAAIC,IAAY,GAAGC,MAAM,CAACC,QAAQ,CAACF,IAAI;EACvCA,IAAI,GAAGA,IAAI,CAACG,SAAS,CAAC,CAAC,CAAC;EACxB,IAAIH,IAAI,IAAIA,IAAI,CAACI,UAAU,CAAC,GAAG,CAAC,EAAE;IAChCJ,IAAI,GAAGA,IAAI,CAACG,SAAS,CAAC,CAAC,CAAC;EAC1B;EACA,IAAI,CAACH,I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AAI9D,KAAA,CAAA+D,aAAA,CAACvD,iBAAiB;IAC/B0C,KAAK,EAAEF,SAAS,CAACE,KAAK,IAAI,EAAG;IAC7Bc,WAAW,EAAEhB,SAAS,CAACgB;EAAY,CAAoB,CAAE;EAC3D,MAAMC,OAAO,gBAAIjE,KAAA,CAAA+D,aAAA,CAACxD,kBAAkB;IAChC2D,IAAI,EAAEpB,KAAK,CAACqB,eAAe,KAAK,YAAY,GAAG,OAAO,GAAG,OAAQ;IACjEC,IAAI,EAAEtB,KAAK,CAACuB,UAAW;IACvBC,OAAO,EAAEA,CAAA,KAAOxB,KAAK,CAACyB,aAAa,IAAIzB,KAAK,CAACyB,aAAa,CAAC,CAAC,iBAAOvE,KAAA,CAAA+D,aAAA,CAAC7D,IAAI,MAAC,CAAG;IAC5EsE,aAAa,EAAEV;EAAM,CAAC,CAAE;EACxB,MAAMW,YAAY,GAAG3B,KAAK,CAACkB,WAAW,IAAI/D,QAAQ,CAACyE,EAAE,KAAK,KAAK,GAC7D7D,kBAAkB,CAACiC,KAAK,CAACkB,WAAW,EAAElB,KAAK,CAAC6B,iBAAiB,CAAC,GAC9DnB,SAAS;EACf,oBAAQxD,KAAA,CAAA+D,aAAA,CAAC5D,mBAAmB;IAACsE,YAAY,EAAEA,YAAa;IAACtB,OAAO,EAAEA,OAAQ;IAACyB,KAAK,EAAEnB;EAAgB,GAAEQ,OAA6B,CAAC;AACpI,CAAC"}
@@ -5,7 +5,7 @@ import React from 'react';
5
5
  import { Text } from 'react-native';
6
6
  import { get, filter, isNil } from 'lodash';
7
7
  import injector from '@wavemaker/app-rn-runtime/core/injector';
8
- import { toBoolean, toNumber } from '@wavemaker/app-rn-runtime/core/utils';
8
+ import { toBoolean, toNumber, isFullPathUrl } from '@wavemaker/app-rn-runtime/core/utils';
9
9
  import { BaseComponent, BaseProps } from '@wavemaker/app-rn-runtime/core/base.component';
10
10
  import BASE_THEME, { ThemeProvider } from '@wavemaker/app-rn-runtime/styles/theme';
11
11
  import { VariableEvents } from '@wavemaker/app-rn-runtime/variables/base-variable';
@@ -153,10 +153,10 @@ export default class BaseFragment extends BaseComponent {
153
153
  }
154
154
  }
155
155
  handleUrl(url) {
156
- if (!url.startsWith('http') && !url.startsWith('file:')) {
157
- return this.appConfig.url + (url.startsWith('/') ? '' : '/') + url;
156
+ if (isFullPathUrl(url)) {
157
+ return url;
158
158
  }
159
- return url;
159
+ return this.appConfig.url + (url.startsWith('/') ? '' : '/') + url;
160
160
  }
161
161
  getDateFormat(fmt) {
162
162
  // getting formats from appLocale when app locale is loaded locally.