@wavemaker/app-rn-runtime 11.4.0-next.28152 → 11.4.0-rc.121

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 (453) 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 +14 -2
  5. app-rn-runtime/actions/navigation-action.js.map +1 -1
  6. app-rn-runtime/actions/notification-action.js.map +1 -1
  7. app-rn-runtime/actions/timer-action.js.map +1 -1
  8. app-rn-runtime/components/advanced/carousel/carousel-content/carousel-content.component.js.map +1 -1
  9. app-rn-runtime/components/advanced/carousel/carousel-content/carousel-content.props.js.map +1 -1
  10. app-rn-runtime/components/advanced/carousel/carousel-template/carousel-template.component.js.map +1 -1
  11. app-rn-runtime/components/advanced/carousel/carousel-template/carousel-template.props.js.map +1 -1
  12. app-rn-runtime/components/advanced/carousel/carousel.component.js +1 -1
  13. app-rn-runtime/components/advanced/carousel/carousel.component.js.map +1 -1
  14. app-rn-runtime/components/advanced/carousel/carousel.props.js.map +1 -1
  15. app-rn-runtime/components/advanced/carousel/carousel.styles.js +16 -0
  16. app-rn-runtime/components/advanced/carousel/carousel.styles.js.map +1 -1
  17. app-rn-runtime/components/advanced/login/login.component.js.map +1 -1
  18. app-rn-runtime/components/advanced/login/login.props.js.map +1 -1
  19. app-rn-runtime/components/advanced/network-info-toaster/network-info-toaster.component.js.map +1 -1
  20. app-rn-runtime/components/advanced/network-info-toaster/network-info-toaster.props.js.map +1 -1
  21. app-rn-runtime/components/advanced/webview/webview.component.js.map +1 -1
  22. app-rn-runtime/components/advanced/webview/webview.props.js.map +1 -1
  23. app-rn-runtime/components/basic/anchor/anchor.component.js +1 -0
  24. app-rn-runtime/components/basic/anchor/anchor.component.js.map +1 -1
  25. app-rn-runtime/components/basic/anchor/anchor.props.js.map +1 -1
  26. app-rn-runtime/components/basic/anchor/anchor.styles.js +5 -0
  27. app-rn-runtime/components/basic/anchor/anchor.styles.js.map +1 -1
  28. app-rn-runtime/components/basic/animatedview.component.js +1 -3
  29. app-rn-runtime/components/basic/animatedview.component.js.map +1 -1
  30. app-rn-runtime/components/basic/audio/audio.component.js +240 -0
  31. app-rn-runtime/components/basic/audio/audio.component.js.map +1 -0
  32. app-rn-runtime/components/basic/audio/audio.props.js +15 -0
  33. app-rn-runtime/components/basic/audio/audio.props.js.map +1 -0
  34. app-rn-runtime/components/basic/audio/audio.styles.js +61 -0
  35. app-rn-runtime/components/basic/audio/audio.styles.js.map +1 -0
  36. app-rn-runtime/components/basic/button/button.component.js.map +1 -1
  37. app-rn-runtime/components/basic/button/button.props.js.map +1 -1
  38. app-rn-runtime/components/basic/button/button.styles.js.map +1 -1
  39. app-rn-runtime/components/basic/buttongroup/buttongroup.component.js.map +1 -1
  40. app-rn-runtime/components/basic/buttongroup/buttongroup.props.js.map +1 -1
  41. app-rn-runtime/components/basic/buttongroup/buttongroup.styles.js.map +1 -1
  42. app-rn-runtime/components/basic/custom/custom.component.js.map +1 -1
  43. app-rn-runtime/components/basic/custom/custom.props.js.map +1 -1
  44. app-rn-runtime/components/basic/icon/icon.component.js.map +1 -1
  45. app-rn-runtime/components/basic/icon/icon.props.js.map +1 -1
  46. app-rn-runtime/components/basic/icon/icon.styles.js +5 -0
  47. app-rn-runtime/components/basic/icon/icon.styles.js.map +1 -1
  48. app-rn-runtime/components/basic/label/label.component.js +2 -1
  49. app-rn-runtime/components/basic/label/label.component.js.map +1 -1
  50. app-rn-runtime/components/basic/label/label.props.js.map +1 -1
  51. app-rn-runtime/components/basic/label/label.styles.js +8 -0
  52. app-rn-runtime/components/basic/label/label.styles.js.map +1 -1
  53. app-rn-runtime/components/basic/lottie/lottie.component.js.map +1 -1
  54. app-rn-runtime/components/basic/lottie/lottie.props.js.map +1 -1
  55. app-rn-runtime/components/basic/message/message.component.js.map +1 -1
  56. app-rn-runtime/components/basic/message/message.props.js.map +1 -1
  57. app-rn-runtime/components/basic/message/message.styles.js +22 -0
  58. app-rn-runtime/components/basic/message/message.styles.js.map +1 -1
  59. app-rn-runtime/components/basic/modal/modal.component.js.map +1 -1
  60. app-rn-runtime/components/basic/modal/modal.props.js.map +1 -1
  61. app-rn-runtime/components/basic/modal/modal.styles.js.map +1 -1
  62. app-rn-runtime/components/basic/picture/picture.component.js +7 -11
  63. app-rn-runtime/components/basic/picture/picture.component.js.map +1 -1
  64. app-rn-runtime/components/basic/picture/picture.props.js.map +1 -1
  65. app-rn-runtime/components/basic/picture/picture.styles.js.map +1 -1
  66. app-rn-runtime/components/basic/progress-bar/progress-bar.component.js.map +1 -1
  67. app-rn-runtime/components/basic/progress-bar/progress-bar.props.js.map +1 -1
  68. app-rn-runtime/components/basic/progress-bar/progress-bar.styles.js.map +1 -1
  69. app-rn-runtime/components/basic/progress-circle/progress-circle.component.js.map +1 -1
  70. app-rn-runtime/components/basic/progress-circle/progress-circle.props.js.map +1 -1
  71. app-rn-runtime/components/basic/progress-circle/progress-circle.styles.js.map +1 -1
  72. app-rn-runtime/components/basic/search/local-data-provider.js.map +1 -1
  73. app-rn-runtime/components/basic/search/search.component.js +1 -1
  74. app-rn-runtime/components/basic/search/search.component.js.map +1 -1
  75. app-rn-runtime/components/basic/search/search.props.js +1 -0
  76. app-rn-runtime/components/basic/search/search.props.js.map +1 -1
  77. app-rn-runtime/components/basic/search/search.styles.js +47 -0
  78. app-rn-runtime/components/basic/search/search.styles.js.map +1 -1
  79. app-rn-runtime/components/basic/skeleton/skeleton.component.js.map +1 -1
  80. app-rn-runtime/components/basic/spinner/spinner.component.js +3 -1
  81. app-rn-runtime/components/basic/spinner/spinner.component.js.map +1 -1
  82. app-rn-runtime/components/basic/spinner/spinner.props.js.map +1 -1
  83. app-rn-runtime/components/basic/spinner/spinner.styles.js +8 -0
  84. app-rn-runtime/components/basic/spinner/spinner.styles.js.map +1 -1
  85. app-rn-runtime/components/basic/video/video.component.js +2 -2
  86. app-rn-runtime/components/basic/video/video.component.js.map +1 -1
  87. app-rn-runtime/components/basic/video/video.props.js.map +1 -1
  88. app-rn-runtime/components/chart/area-chart/area-chart.component.js.map +1 -1
  89. app-rn-runtime/components/chart/bar-chart/bar-chart.component.js.map +1 -1
  90. app-rn-runtime/components/chart/bar-chart/bar-chart.props.js.map +1 -1
  91. app-rn-runtime/components/chart/basechart.component.js +6 -2
  92. app-rn-runtime/components/chart/basechart.component.js.map +1 -1
  93. app-rn-runtime/components/chart/basechart.props.js +1 -0
  94. app-rn-runtime/components/chart/basechart.props.js.map +1 -1
  95. app-rn-runtime/components/chart/basechart.styles.js +17 -0
  96. app-rn-runtime/components/chart/basechart.styles.js.map +1 -1
  97. app-rn-runtime/components/chart/bubble-chart/bubble-chart.component.js.map +1 -1
  98. app-rn-runtime/components/chart/column-chart/column-chart.component.js.map +1 -1
  99. app-rn-runtime/components/chart/donut-chart/donut-chart.component.js.map +1 -1
  100. app-rn-runtime/components/chart/donut-chart/donut-chart.props.js +0 -1
  101. app-rn-runtime/components/chart/donut-chart/donut-chart.props.js.map +1 -1
  102. app-rn-runtime/components/chart/legend/legend.component.js +36 -0
  103. app-rn-runtime/components/chart/legend/legend.component.js.map +1 -0
  104. app-rn-runtime/components/chart/line-chart/line-chart.component.js.map +1 -1
  105. app-rn-runtime/components/chart/line-chart/line-chart.props.js.map +1 -1
  106. app-rn-runtime/components/chart/pie-chart/pie-chart.component.js +119 -40
  107. app-rn-runtime/components/chart/pie-chart/pie-chart.component.js.map +1 -1
  108. app-rn-runtime/components/chart/pie-chart/pie-chart.props.js +1 -2
  109. app-rn-runtime/components/chart/pie-chart/pie-chart.props.js.map +1 -1
  110. app-rn-runtime/components/chart/theme/chart.theme.js.map +1 -1
  111. app-rn-runtime/components/container/accordion/accordion.component.js +75 -119
  112. app-rn-runtime/components/container/accordion/accordion.component.js.map +1 -1
  113. app-rn-runtime/components/container/accordion/accordion.props.js +1 -0
  114. app-rn-runtime/components/container/accordion/accordion.props.js.map +1 -1
  115. app-rn-runtime/components/container/accordion/accordion.styles.js +14 -4
  116. app-rn-runtime/components/container/accordion/accordion.styles.js.map +1 -1
  117. app-rn-runtime/components/container/accordion/accordionpane/accordionpane.component.js +48 -7
  118. app-rn-runtime/components/container/accordion/accordionpane/accordionpane.component.js.map +1 -1
  119. app-rn-runtime/components/container/accordion/accordionpane/accordionpane.props.js.map +1 -1
  120. app-rn-runtime/components/container/container.component.js.map +1 -1
  121. app-rn-runtime/components/container/container.props.js.map +1 -1
  122. app-rn-runtime/components/container/container.styles.js.map +1 -1
  123. app-rn-runtime/components/container/layoutgrid/gridcolumn/gridcolumn.component.js.map +1 -1
  124. app-rn-runtime/components/container/layoutgrid/gridcolumn/gridcolumn.props.js.map +1 -1
  125. app-rn-runtime/components/container/layoutgrid/gridrow/gridrow.component.js.map +1 -1
  126. app-rn-runtime/components/container/layoutgrid/gridrow/gridrow.props.js.map +1 -1
  127. app-rn-runtime/components/container/layoutgrid/layoutgrid.component.js.map +1 -1
  128. app-rn-runtime/components/container/layoutgrid/layoutgrid.props.js.map +1 -1
  129. app-rn-runtime/components/container/layoutgrid/layoutgrid.styles.js.map +1 -1
  130. app-rn-runtime/components/container/linearlayout/linearlayout.component.js +1 -0
  131. app-rn-runtime/components/container/linearlayout/linearlayout.component.js.map +1 -1
  132. app-rn-runtime/components/container/linearlayout/linearlayout.props.js.map +1 -1
  133. app-rn-runtime/components/container/linearlayout/linearlayoutitem/linearlayoutitem.component.js +2 -2
  134. app-rn-runtime/components/container/linearlayout/linearlayoutitem/linearlayoutitem.component.js.map +1 -1
  135. app-rn-runtime/components/container/linearlayout/linearlayoutitem/linearlayoutitem.props.js.map +1 -1
  136. app-rn-runtime/components/container/panel/panel-content/panel-content.component.js.map +1 -1
  137. app-rn-runtime/components/container/panel/panel-content/panel-content.props.js.map +1 -1
  138. app-rn-runtime/components/container/panel/panel-footer/panel-footer.component.js.map +1 -1
  139. app-rn-runtime/components/container/panel/panel-footer/panel-footer.props.js.map +1 -1
  140. app-rn-runtime/components/container/panel/panel.component.js.map +1 -1
  141. app-rn-runtime/components/container/panel/panel.props.js.map +1 -1
  142. app-rn-runtime/components/container/panel/panel.styles.js +9 -0
  143. app-rn-runtime/components/container/panel/panel.styles.js.map +1 -1
  144. app-rn-runtime/components/container/partial-host.component.js.map +1 -1
  145. app-rn-runtime/components/container/tabs/tabheader/tabheader.component.js +30 -5
  146. app-rn-runtime/components/container/tabs/tabheader/tabheader.component.js.map +1 -1
  147. app-rn-runtime/components/container/tabs/tabheader/tabheader.props.js.map +1 -1
  148. app-rn-runtime/components/container/tabs/tabheader/tabheader.styles.js +10 -1
  149. app-rn-runtime/components/container/tabs/tabheader/tabheader.styles.js.map +1 -1
  150. app-rn-runtime/components/container/tabs/tabpane/tabpane.component.js.map +1 -1
  151. app-rn-runtime/components/container/tabs/tabpane/tabpane.props.js.map +1 -1
  152. app-rn-runtime/components/container/tabs/tabs.component.js +5 -2
  153. app-rn-runtime/components/container/tabs/tabs.component.js.map +1 -1
  154. app-rn-runtime/components/container/tabs/tabs.props.js.map +1 -1
  155. app-rn-runtime/components/container/tabs/tabs.styles.js +39 -0
  156. app-rn-runtime/components/container/tabs/tabs.styles.js.map +1 -1
  157. app-rn-runtime/components/container/tile/tile.component.js.map +1 -1
  158. app-rn-runtime/components/container/tile/tile.props.js.map +1 -1
  159. app-rn-runtime/components/container/tile/tile.styles.js.map +1 -1
  160. app-rn-runtime/components/container/wizard/wizard.component.js +15 -6
  161. app-rn-runtime/components/container/wizard/wizard.component.js.map +1 -1
  162. app-rn-runtime/components/container/wizard/wizard.props.js.map +1 -1
  163. app-rn-runtime/components/container/wizard/wizard.styles.js +53 -1
  164. app-rn-runtime/components/container/wizard/wizard.styles.js.map +1 -1
  165. app-rn-runtime/components/container/wizard/wizardstep/wizardstep.component.js.map +1 -1
  166. app-rn-runtime/components/container/wizard/wizardstep/wizardstep.props.js.map +1 -1
  167. app-rn-runtime/components/data/card/card-content/card-content.component.js.map +1 -1
  168. app-rn-runtime/components/data/card/card-content/card-content.props.js.map +1 -1
  169. app-rn-runtime/components/data/card/card-footer/card-footer.component.js.map +1 -1
  170. app-rn-runtime/components/data/card/card-footer/card-footer.props.js.map +1 -1
  171. app-rn-runtime/components/data/card/card.component.js.map +1 -1
  172. app-rn-runtime/components/data/card/card.props.js.map +1 -1
  173. app-rn-runtime/components/data/card/card.styles.js.map +1 -1
  174. app-rn-runtime/components/data/form/form-action/form-action.component.js +1 -0
  175. app-rn-runtime/components/data/form/form-action/form-action.component.js.map +1 -1
  176. app-rn-runtime/components/data/form/form-action/form-action.props.js +3 -1
  177. app-rn-runtime/components/data/form/form-action/form-action.props.js.map +1 -1
  178. app-rn-runtime/components/data/form/form-action/form-action.styles.js.map +1 -1
  179. app-rn-runtime/components/data/form/form-body/form-body.component.js.map +1 -1
  180. app-rn-runtime/components/data/form/form-body/form-body.props.js.map +1 -1
  181. app-rn-runtime/components/data/form/form-field/form-field.component.js +23 -2
  182. app-rn-runtime/components/data/form/form-field/form-field.component.js.map +1 -1
  183. app-rn-runtime/components/data/form/form-field/form-field.props.js +8 -0
  184. app-rn-runtime/components/data/form/form-field/form-field.props.js.map +1 -1
  185. app-rn-runtime/components/data/form/form-field/form-field.styles.js.map +1 -1
  186. app-rn-runtime/components/data/form/form-footer/form-footer.component.js.map +1 -1
  187. app-rn-runtime/components/data/form/form-footer/form-footer.props.js.map +1 -1
  188. app-rn-runtime/components/data/form/form.component.js +94 -4
  189. app-rn-runtime/components/data/form/form.component.js.map +1 -1
  190. app-rn-runtime/components/data/form/form.props.js +2 -0
  191. app-rn-runtime/components/data/form/form.props.js.map +1 -1
  192. app-rn-runtime/components/data/form/form.styles.js +6 -0
  193. app-rn-runtime/components/data/form/form.styles.js.map +1 -1
  194. app-rn-runtime/components/data/list/list-template/list-template.component.js.map +1 -1
  195. app-rn-runtime/components/data/list/list-template/list-template.props.js.map +1 -1
  196. app-rn-runtime/components/data/list/list-template/list-template.styles.js.map +1 -1
  197. app-rn-runtime/components/data/list/list.component.js +77 -16
  198. app-rn-runtime/components/data/list/list.component.js.map +1 -1
  199. app-rn-runtime/components/data/list/list.props.js +2 -0
  200. app-rn-runtime/components/data/list/list.props.js.map +1 -1
  201. app-rn-runtime/components/data/list/list.styles.js.map +1 -1
  202. app-rn-runtime/components/data/liveform/liveform.component.js +102 -0
  203. app-rn-runtime/components/data/liveform/liveform.component.js.map +1 -0
  204. app-rn-runtime/components/device/barcodescanner/barcodescanner.component.js.map +1 -1
  205. app-rn-runtime/components/device/barcodescanner/barcodescanner.props.js.map +1 -1
  206. app-rn-runtime/components/device/camera/camera.component.js.map +1 -1
  207. app-rn-runtime/components/device/camera/camera.props.js.map +1 -1
  208. app-rn-runtime/components/dialogs/alertdialog/alertdialog.component.js.map +1 -1
  209. app-rn-runtime/components/dialogs/alertdialog/alertdialog.props.js.map +1 -1
  210. app-rn-runtime/components/dialogs/alertdialog/alertdialog.styles.js.map +1 -1
  211. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.component.js.map +1 -1
  212. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.props.js.map +1 -1
  213. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.styles.js +9 -0
  214. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.styles.js.map +1 -1
  215. app-rn-runtime/components/dialogs/dialog/dialog.component.js +5 -2
  216. app-rn-runtime/components/dialogs/dialog/dialog.component.js.map +1 -1
  217. app-rn-runtime/components/dialogs/dialog/dialog.props.js.map +1 -1
  218. app-rn-runtime/components/dialogs/dialogactions/dialogactions.component.js.map +1 -1
  219. app-rn-runtime/components/dialogs/dialogactions/dialogactions.props.js.map +1 -1
  220. app-rn-runtime/components/dialogs/dialogcontent/dialogcontent.component.js.map +1 -1
  221. app-rn-runtime/components/dialogs/dialogcontent/dialogcontent.props.js.map +1 -1
  222. app-rn-runtime/components/input/basedataset/basedataset.component.js.map +1 -1
  223. app-rn-runtime/components/input/basedataset/basedataset.props.js.map +1 -1
  224. app-rn-runtime/components/input/baseinput/baseinput.component.js +4 -4
  225. app-rn-runtime/components/input/baseinput/baseinput.component.js.map +1 -1
  226. app-rn-runtime/components/input/baseinput/baseinput.props.js.map +1 -1
  227. app-rn-runtime/components/input/basenumber/basenumber.component.js +1 -1
  228. app-rn-runtime/components/input/basenumber/basenumber.component.js.map +1 -1
  229. app-rn-runtime/components/input/basenumber/basenumber.props.js.map +1 -1
  230. app-rn-runtime/components/input/calendar/calendar.component.js.map +1 -1
  231. app-rn-runtime/components/input/calendar/calendar.props.js.map +1 -1
  232. app-rn-runtime/components/input/calendar/calendar.styles.js +22 -0
  233. app-rn-runtime/components/input/calendar/calendar.styles.js.map +1 -1
  234. app-rn-runtime/components/input/calendar/views/month-view.js +1 -0
  235. app-rn-runtime/components/input/calendar/views/month-view.js.map +1 -1
  236. app-rn-runtime/components/input/checkbox/checkbox.component.js.map +1 -1
  237. app-rn-runtime/components/input/checkbox/checkbox.props.js +1 -1
  238. app-rn-runtime/components/input/checkbox/checkbox.props.js.map +1 -1
  239. app-rn-runtime/components/input/checkbox/checkbox.styles.js.map +1 -1
  240. app-rn-runtime/components/input/checkboxset/checkboxset.component.js.map +1 -1
  241. app-rn-runtime/components/input/checkboxset/checkboxset.props.js.map +1 -1
  242. app-rn-runtime/components/input/checkboxset/checkboxset.styles.js.map +1 -1
  243. app-rn-runtime/components/input/chips/chips.component.js +1 -0
  244. app-rn-runtime/components/input/chips/chips.component.js.map +1 -1
  245. app-rn-runtime/components/input/chips/chips.props.js.map +1 -1
  246. app-rn-runtime/components/input/composite/composite.component.js.map +1 -1
  247. app-rn-runtime/components/input/composite/composite.props.js.map +1 -1
  248. app-rn-runtime/components/input/currency/currency.component.js +6 -4
  249. app-rn-runtime/components/input/currency/currency.component.js.map +1 -1
  250. app-rn-runtime/components/input/currency/currency.props.js +1 -1
  251. app-rn-runtime/components/input/currency/currency.props.js.map +1 -1
  252. app-rn-runtime/components/input/currency/currency.styles.js +9 -0
  253. app-rn-runtime/components/input/currency/currency.styles.js.map +1 -1
  254. app-rn-runtime/components/input/epoch/base-datetime.component.js +5 -2
  255. app-rn-runtime/components/input/epoch/base-datetime.component.js.map +1 -1
  256. app-rn-runtime/components/input/epoch/date/date.component.js.map +1 -1
  257. app-rn-runtime/components/input/epoch/date/date.props.js.map +1 -1
  258. app-rn-runtime/components/input/epoch/date/date.styles.js +9 -0
  259. app-rn-runtime/components/input/epoch/date/date.styles.js.map +1 -1
  260. app-rn-runtime/components/input/epoch/date-picker.component.js.map +1 -1
  261. app-rn-runtime/components/input/epoch/datetime/datetime.component.js.map +1 -1
  262. app-rn-runtime/components/input/epoch/datetime/datetime.props.js.map +1 -1
  263. app-rn-runtime/components/input/epoch/datetime/datetime.styles.js +9 -0
  264. app-rn-runtime/components/input/epoch/datetime/datetime.styles.js.map +1 -1
  265. app-rn-runtime/components/input/epoch/time/time.component.js.map +1 -1
  266. app-rn-runtime/components/input/epoch/time/time.props.js.map +1 -1
  267. app-rn-runtime/components/input/epoch/time/time.styles.js +9 -0
  268. app-rn-runtime/components/input/epoch/time/time.styles.js.map +1 -1
  269. app-rn-runtime/components/input/fileupload/fileupload.component.js.map +1 -1
  270. app-rn-runtime/components/input/fileupload/fileupload.props.js.map +1 -1
  271. app-rn-runtime/components/input/number/number.component.js +6 -4
  272. app-rn-runtime/components/input/number/number.component.js.map +1 -1
  273. app-rn-runtime/components/input/number/number.props.js +1 -1
  274. app-rn-runtime/components/input/number/number.props.js.map +1 -1
  275. app-rn-runtime/components/input/number/number.styles.js +5 -0
  276. app-rn-runtime/components/input/number/number.styles.js.map +1 -1
  277. app-rn-runtime/components/input/radioset/radioset.component.js +3 -1
  278. app-rn-runtime/components/input/radioset/radioset.component.js.map +1 -1
  279. app-rn-runtime/components/input/radioset/radioset.props.js.map +1 -1
  280. app-rn-runtime/components/input/radioset/radioset.styles.js +8 -0
  281. app-rn-runtime/components/input/radioset/radioset.styles.js.map +1 -1
  282. app-rn-runtime/components/input/rating/rating.component.js +1 -1
  283. app-rn-runtime/components/input/rating/rating.component.js.map +1 -1
  284. app-rn-runtime/components/input/rating/rating.props.js.map +1 -1
  285. app-rn-runtime/components/input/select/select.component.js +14 -2
  286. app-rn-runtime/components/input/select/select.component.js.map +1 -1
  287. app-rn-runtime/components/input/select/select.props.js.map +1 -1
  288. app-rn-runtime/components/input/select/select.styles.js +18 -1
  289. app-rn-runtime/components/input/select/select.styles.js.map +1 -1
  290. app-rn-runtime/components/input/slider/slider.component.js +2 -1
  291. app-rn-runtime/components/input/slider/slider.component.js.map +1 -1
  292. app-rn-runtime/components/input/slider/slider.props.js.map +1 -1
  293. app-rn-runtime/components/input/switch/switch.component.js.map +1 -1
  294. app-rn-runtime/components/input/switch/switch.props.js.map +1 -1
  295. app-rn-runtime/components/input/switch/switch.styles.js +36 -0
  296. app-rn-runtime/components/input/switch/switch.styles.js.map +1 -1
  297. app-rn-runtime/components/input/text/text.component.js +5 -3
  298. app-rn-runtime/components/input/text/text.component.js.map +1 -1
  299. app-rn-runtime/components/input/text/text.props.js.map +1 -1
  300. app-rn-runtime/components/input/text/text.styles.js +5 -0
  301. app-rn-runtime/components/input/text/text.styles.js.map +1 -1
  302. app-rn-runtime/components/input/textarea/textarea.component.js +5 -3
  303. app-rn-runtime/components/input/textarea/textarea.component.js.map +1 -1
  304. app-rn-runtime/components/input/textarea/textarea.props.js.map +1 -1
  305. app-rn-runtime/components/input/textarea/textarea.styles.js +5 -0
  306. app-rn-runtime/components/input/textarea/textarea.styles.js.map +1 -1
  307. app-rn-runtime/components/input/toggle/toggle.component.js +17 -11
  308. app-rn-runtime/components/input/toggle/toggle.component.js.map +1 -1
  309. app-rn-runtime/components/input/toggle/toggle.props.js.map +1 -1
  310. app-rn-runtime/components/input/toggle/toggle.styles.js +28 -3
  311. app-rn-runtime/components/input/toggle/toggle.styles.js.map +1 -1
  312. app-rn-runtime/components/navigation/appnavbar/appnavbar.component.js.map +1 -1
  313. app-rn-runtime/components/navigation/appnavbar/appnavbar.props.js.map +1 -1
  314. app-rn-runtime/components/navigation/appnavbar/appnavbar.styles.js.map +1 -1
  315. app-rn-runtime/components/navigation/basenav/basenav.component.js.map +1 -1
  316. app-rn-runtime/components/navigation/basenav/basenav.props.js.map +1 -1
  317. app-rn-runtime/components/navigation/menu/menu.component.js.map +1 -1
  318. app-rn-runtime/components/navigation/menu/menu.props.js.map +1 -1
  319. app-rn-runtime/components/navigation/menu/menu.styles.js +6 -0
  320. app-rn-runtime/components/navigation/menu/menu.styles.js.map +1 -1
  321. app-rn-runtime/components/navigation/navbar/navbar.component.js.map +1 -1
  322. app-rn-runtime/components/navigation/navbar/navbar.props.js.map +1 -1
  323. app-rn-runtime/components/navigation/navbar/navbar.styles.js.map +1 -1
  324. app-rn-runtime/components/navigation/navitem/navitem.component.js.map +1 -1
  325. app-rn-runtime/components/navigation/navitem/navitem.props.js.map +1 -1
  326. app-rn-runtime/components/navigation/navitem/navitem.styles.js.map +1 -1
  327. app-rn-runtime/components/navigation/popover/popover.component.js.map +1 -1
  328. app-rn-runtime/components/navigation/popover/popover.props.js.map +1 -1
  329. app-rn-runtime/components/navigation/popover/popover.styles.js.map +1 -1
  330. app-rn-runtime/components/page/content/content.component.js.map +1 -1
  331. app-rn-runtime/components/page/left-panel/left-panel.component.js.map +1 -1
  332. app-rn-runtime/components/page/left-panel/left-panel.props.js.map +1 -1
  333. app-rn-runtime/components/page/page-content/page-content.component.js.map +1 -1
  334. app-rn-runtime/components/page/page-content/page-content.props.js.map +1 -1
  335. app-rn-runtime/components/page/page.component.js.map +1 -1
  336. app-rn-runtime/components/page/partial/partial.component.js.map +1 -1
  337. app-rn-runtime/components/page/partial-container/partial-container.component.js.map +1 -1
  338. app-rn-runtime/components/page/partial-container/partial-container.props.js.map +1 -1
  339. app-rn-runtime/components/page/tabbar/tabbar.component.js.map +1 -1
  340. app-rn-runtime/components/page/tabbar/tabbar.props.js.map +1 -1
  341. app-rn-runtime/components/prefab/prefab-container.component.js.map +1 -1
  342. app-rn-runtime/core/asset.provider.js.map +1 -1
  343. app-rn-runtime/core/base.component.js +29 -17
  344. app-rn-runtime/core/base.component.js.map +1 -1
  345. app-rn-runtime/core/components/textinput.component.js +37 -0
  346. app-rn-runtime/core/components/textinput.component.js.map +1 -0
  347. app-rn-runtime/core/device/camera-service.js.map +1 -1
  348. app-rn-runtime/core/device/scan-service.js.map +1 -1
  349. app-rn-runtime/core/display.manager.js.map +1 -1
  350. app-rn-runtime/core/event-notifier.js.map +1 -1
  351. app-rn-runtime/core/fixed-view.component.js.map +1 -1
  352. app-rn-runtime/core/formatters.js.map +1 -1
  353. app-rn-runtime/core/i18n.service.js +2 -0
  354. app-rn-runtime/core/i18n.service.js.map +1 -0
  355. app-rn-runtime/core/if.component.js +3 -3
  356. app-rn-runtime/core/if.component.js.map +1 -1
  357. app-rn-runtime/core/imageSizeEstimator.js.map +1 -1
  358. app-rn-runtime/core/injector.js +2 -1
  359. app-rn-runtime/core/injector.js.map +1 -1
  360. app-rn-runtime/core/logger.js +4 -1
  361. app-rn-runtime/core/logger.js.map +1 -1
  362. app-rn-runtime/core/modal.service.js.map +1 -1
  363. app-rn-runtime/core/navigation.service.js.map +1 -1
  364. app-rn-runtime/core/network.service.js +17 -15
  365. app-rn-runtime/core/network.service.js.map +1 -1
  366. app-rn-runtime/core/partial.service.js.map +1 -1
  367. app-rn-runtime/core/props.provider.js +1 -1
  368. app-rn-runtime/core/props.provider.js.map +1 -1
  369. app-rn-runtime/core/scroll-view.component.js.map +1 -1
  370. app-rn-runtime/core/security.service.js.map +1 -1
  371. app-rn-runtime/core/spinner.service.js.map +1 -1
  372. app-rn-runtime/core/storage.service.js.map +1 -1
  373. app-rn-runtime/core/tappable.component.js +11 -2
  374. app-rn-runtime/core/tappable.component.js.map +1 -1
  375. app-rn-runtime/core/toast.service.js.map +1 -1
  376. app-rn-runtime/core/utils.js +22 -0
  377. app-rn-runtime/core/utils.js.map +1 -1
  378. app-rn-runtime/core/viewport.js.map +1 -1
  379. app-rn-runtime/gestures/swipe.animation.js +9 -4
  380. app-rn-runtime/gestures/swipe.animation.js.map +1 -1
  381. app-rn-runtime/package.json +42 -42
  382. app-rn-runtime/runtime/App.js +14 -6
  383. app-rn-runtime/runtime/App.js.map +1 -1
  384. app-rn-runtime/runtime/App.navigator.js +11 -2
  385. app-rn-runtime/runtime/App.navigator.js.map +1 -1
  386. app-rn-runtime/runtime/base-fragment.component.js +20 -7
  387. app-rn-runtime/runtime/base-fragment.component.js.map +1 -1
  388. app-rn-runtime/runtime/base-page.component.js +2 -0
  389. app-rn-runtime/runtime/base-page.component.js.map +1 -1
  390. app-rn-runtime/runtime/base-partial.component.js.map +1 -1
  391. app-rn-runtime/runtime/base-prefab.component.js +5 -7
  392. app-rn-runtime/runtime/base-prefab.component.js.map +1 -1
  393. app-rn-runtime/runtime/lib-patch.js.map +1 -1
  394. app-rn-runtime/runtime/memo.component.js.map +1 -1
  395. app-rn-runtime/runtime/navigator/drawer.navigator.js.map +1 -1
  396. app-rn-runtime/runtime/navigator/stack.navigator.js.map +1 -1
  397. app-rn-runtime/runtime/services/app-display-manager.service.js.map +1 -1
  398. app-rn-runtime/runtime/services/app-i18n.service.js +26 -3
  399. app-rn-runtime/runtime/services/app-i18n.service.js.map +1 -1
  400. app-rn-runtime/runtime/services/app-modal.service.js.map +1 -1
  401. app-rn-runtime/runtime/services/app-security.service.js +7 -7
  402. app-rn-runtime/runtime/services/app-security.service.js.map +1 -1
  403. app-rn-runtime/runtime/services/app-spinner.service.js +3 -2
  404. app-rn-runtime/runtime/services/app-spinner.service.js.map +1 -1
  405. app-rn-runtime/runtime/services/app-toast.service.js.map +1 -1
  406. app-rn-runtime/runtime/services/device/calendar-service.js.map +1 -1
  407. app-rn-runtime/runtime/services/device/camera-service.js +2 -3
  408. app-rn-runtime/runtime/services/device/camera-service.js.map +1 -1
  409. app-rn-runtime/runtime/services/device/contacts-service.js.map +1 -1
  410. app-rn-runtime/runtime/services/device/location-service.js.map +1 -1
  411. app-rn-runtime/runtime/services/device/permissions.js.map +1 -1
  412. app-rn-runtime/runtime/services/device/scan-service.js.map +1 -1
  413. app-rn-runtime/runtime/services/partial.service.js.map +1 -1
  414. app-rn-runtime/runtime/services/webprocess.service.js.map +1 -1
  415. app-rn-runtime/runtime/watcher.js +3 -1
  416. app-rn-runtime/runtime/watcher.js.map +1 -1
  417. app-rn-runtime/styles/MediaQueryList.js.map +1 -1
  418. app-rn-runtime/styles/background.component.js +51 -12
  419. app-rn-runtime/styles/background.component.js.map +1 -1
  420. app-rn-runtime/styles/style-prop.validator.js +4 -0
  421. app-rn-runtime/styles/style-prop.validator.js.map +1 -1
  422. app-rn-runtime/styles/style-props.js.map +1 -1
  423. app-rn-runtime/styles/theme.js +12 -5
  424. app-rn-runtime/styles/theme.js.map +1 -1
  425. app-rn-runtime/styles/theme.variables.js +58 -2
  426. app-rn-runtime/styles/theme.variables.js.map +1 -1
  427. app-rn-runtime/variables/base-variable.js +3 -3
  428. app-rn-runtime/variables/base-variable.js.map +1 -1
  429. app-rn-runtime/variables/device/calendar/create-event.operation.js.map +1 -1
  430. app-rn-runtime/variables/device/calendar/delete-event.operation.js.map +1 -1
  431. app-rn-runtime/variables/device/calendar/get-events.operation.js.map +1 -1
  432. app-rn-runtime/variables/device/camera/capture-image.operation.js.map +1 -1
  433. app-rn-runtime/variables/device/camera/capture-video.operation.js.map +1 -1
  434. app-rn-runtime/variables/device/contacts/get-contacts.operation.js.map +1 -1
  435. app-rn-runtime/variables/device/device/app-info.operation.js.map +1 -1
  436. app-rn-runtime/variables/device/device/current-geo-position.operation.js.map +1 -1
  437. app-rn-runtime/variables/device/device/device-info.operation.js.map +1 -1
  438. app-rn-runtime/variables/device/device/network-info.operation.js.map +1 -1
  439. app-rn-runtime/variables/device/device/vibrate.operation.js.map +1 -1
  440. app-rn-runtime/variables/device/file/upload-file.operation.js.map +1 -1
  441. app-rn-runtime/variables/device/operation.provider.js.map +1 -1
  442. app-rn-runtime/variables/device/scan/scan.operation.js.map +1 -1
  443. app-rn-runtime/variables/device-variable.js.map +1 -1
  444. app-rn-runtime/variables/http.service.js +7 -3
  445. app-rn-runtime/variables/http.service.js.map +1 -1
  446. app-rn-runtime/variables/live-variable.js +115 -0
  447. app-rn-runtime/variables/live-variable.js.map +1 -0
  448. app-rn-runtime/variables/model-variable.js.map +1 -1
  449. app-rn-runtime/variables/service-variable.js +14 -4
  450. app-rn-runtime/variables/service-variable.js.map +1 -1
  451. app-rn-runtime/variables/utils/dataset-util.js.map +1 -1
  452. app-rn-runtime/variables/utils/inflight-queue.js.map +1 -1
  453. app-rn-runtime/variables/utils/variable.utils.js.map +1 -1
@@ -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,SA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E;EACV,CAAC;EACD1B,oBAAoB,EAAE;IACpB9B,QAAQ,EAAE,UAAU;IACpBsD,cAAc,EAAE,QAAQ;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,MAA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AA,CAACvJ,oBAAoB;QAAEqO,SAAS,EAAEvB,MAAI,CAAC/J,SAAS,CAACsL;MAAU,CAAuB,CAChE,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,CA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E,IAAI,EAAEb,KAAK,CAACc,UAAW;IACvB,OAAO,EAAE,MAAOd,KAAK,CAACe,aAAa,IAAIf,KAAK,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,EAA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C,CAACd,IAAI,CAAC,GAAGc,CAAC,CAACd,IAAI;EACxB,CAAC,CAAC;EACF,MAAM6C,KAAK,gBAAI9D,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';
@@ -15,6 +15,7 @@ import WmForm from '@wavemaker/app-rn-runtime/components/data/form/form.componen
15
15
  import { ToastConsumer } from '@wavemaker/app-rn-runtime/core/toast.service';
16
16
  import spinnerService from '@wavemaker/app-rn-runtime/runtime/services/app-spinner.service';
17
17
  import AppI18nService from './services/app-i18n.service';
18
+ import WmFormAction from '@wavemaker/app-rn-runtime/components/data/form/form-action/form-action.component';
18
19
  export class FragmentProps extends BaseProps {}
19
20
  export default class BaseFragment extends BaseComponent {
20
21
  constructor(props, defaultProps) {
@@ -100,6 +101,7 @@ export default class BaseFragment extends BaseComponent {
100
101
  }
101
102
  const formWidgets = this.Widgets[id].formWidgets;
102
103
  const formFields = this.Widgets[id].formFields;
104
+ const formActions = this.Widgets[id].buttonArray;
103
105
  this.Widgets[id] = w;
104
106
  if (w.parentFormRef) {
105
107
  let pid = w.parentFormRef.props.id || w.parentFormRef.props.name;
@@ -110,6 +112,7 @@ export default class BaseFragment extends BaseComponent {
110
112
  });
111
113
  }
112
114
  w.registerFormFields(formFields, formWidgets);
115
+ w.registerFormActions(formActions);
113
116
  return;
114
117
  }
115
118
  if (w.props.formfield) {
@@ -124,6 +127,16 @@ export default class BaseFragment extends BaseComponent {
124
127
  this.Widgets[w.props.formRef].formWidgets[w.props.name] = w;
125
128
  return;
126
129
  }
130
+ if (w instanceof WmFormAction) {
131
+ if (!this.Widgets[w.props.formKey]) {
132
+ this.Widgets[w.props.formKey] = {};
133
+ }
134
+ if (!this.Widgets[w.props.formKey].buttonArray) {
135
+ this.Widgets[w.props.formKey].buttonArray = [];
136
+ }
137
+ this.Widgets[w.props.formKey].buttonArray.push(w);
138
+ return;
139
+ }
127
140
  if (w instanceof WmFormField) {
128
141
  if (!this.Widgets[w.props.formRef]) {
129
142
  this.Widgets[w.props.formRef] = {};
@@ -153,10 +166,10 @@ export default class BaseFragment extends BaseComponent {
153
166
  }
154
167
  }
155
168
  handleUrl(url) {
156
- if (!url.startsWith('http') && !url.startsWith('file:')) {
157
- return this.appConfig.url + (url.startsWith('/') ? '' : '/') + url;
169
+ if (isFullPathUrl(url)) {
170
+ return url;
158
171
  }
159
- return url;
172
+ return this.appConfig.url + (url.startsWith('/') ? '' : '/') + url;
160
173
  }
161
174
  getDateFormat(fmt) {
162
175
  // getting formats from appLocale when app locale is loaded locally.
@@ -196,7 +209,7 @@ export default class BaseFragment extends BaseComponent {
196
209
  }
197
210
  toBoolean(val) {
198
211
  if (isNil(val)) {
199
- return val;
212
+ return false;
200
213
  }
201
214
  return toBoolean(val);
202
215
  }
@@ -306,12 +319,12 @@ export default class BaseFragment extends BaseComponent {
306
319
  return (_this$Variables$value = this.Variables[value]) === null || _this$Variables$value === void 0 ? void 0 : _this$Variables$value.invokeOnParamChange();
307
320
  });
308
321
  }
309
- return /*#__PURE__*/React.createElement(ThemeProvider, {
322
+ return this.isVisible() ? /*#__PURE__*/React.createElement(ThemeProvider, {
310
323
  value: this.theme
311
324
  }, /*#__PURE__*/React.createElement(ToastConsumer, null, toastService => {
312
325
  this.toaster = toastService;
313
326
  return this.renderWidget(this.props);
314
- }));
327
+ })) : null;
315
328
  }
316
329
  }
317
330
  //# sourceMappingURL=base-fragment.component.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["React","Text","get","filter","isNil","injector","toBoolean","toNumber","BaseComponent","BaseProps","BASE_THEME","ThemeProvider","VariableEvents","default","_viewPort","EVENTS","viewportEvents","WmFormField","WmForm","ToastConsumer","spinnerService","AppI18nService","FragmentProps","BaseFragment","constructor","props","defaultProps","createElement","text","title","okButtonText","cancelButtonText","onOk","onCancel","onClose","App","appConfig","app","formatters","Actions","Object","assign","Variables","cleanup","push","subscribe","ORIENTATION_CHANGE","$new","$old","isDetached","targetWidget","invokeEventCallback","proxy","screenWidth","width","screenHeight","height","SIZE_CHANGE","theme","destroy","baseUrl","url","resourceBaseUrl","onDestroy","onContentReady","onReady","refresh","onComponentChange","w","onComponentInit","id","name","Widgets","formWidgets","formFields","parentFormRef","pid","forEach","ff","formKey","registerFormFields","formfield","formRef","fragments","onComponentDestroy","formfields","handleUrl","startsWith","getDateFormat","fmt","dateFormat","replace","getTimeFormat","timeFormat","getDateTimeFormat","dateTimeFormat","getCurrencySymbol","currencyCode","getStyle","classes","inlineStyles","trim","length","mergeStyle","resetAppLocale","appLocale","messages","values","f","eval","fn","failOnError","call","e","val","componentWillUnmount","componentDidMount","memoize","key","o","_memoize","initVariableSpinner","variables","v","actions","concat","map","BEFORE_INVOKE","show","message","spinner","AFTER_INVOKE","hide","onFragmentReady","cleanUpVariablesandActions","fragmentVariables","fragmentActions","startUpActions","a","invoke","Promise","all","startUpVariables","s","catch","then","startUpVariablesLoaded","showContent","onAttach","watcher","isActive","unmute","refreshdataonattach","componentWillAttach","onDetach","mute","componentWillDetach","forceUpdate","render","autoUpdateVariables","value","invokeOnParamChange","toastService","toaster","renderWidget"],"sources":["base-fragment.component.tsx"],"sourcesContent":["import React from 'react';\nimport { Text } from 'react-native';\nimport { get, filter, isNil } from 'lodash';\n\nimport AppConfig from '@wavemaker/app-rn-runtime/core/AppConfig';\nimport { Formatter } from '@wavemaker/app-rn-runtime/core/formatters';\nimport injector from '@wavemaker/app-rn-runtime/core/injector';\nimport { toBoolean, toNumber } from '@wavemaker/app-rn-runtime/core/utils';\nimport { BaseComponent, BaseComponentState, BaseStyles, BaseProps, LifecycleListener } from '@wavemaker/app-rn-runtime/core/base.component';\nimport BASE_THEME, { Theme, ThemeProvider } from '@wavemaker/app-rn-runtime/styles/theme';\nimport { BaseVariable, VariableEvents } from '@wavemaker/app-rn-runtime/variables/base-variable';\nimport { default as _viewPort, EVENTS as viewportEvents } from '@wavemaker/app-rn-runtime/core/viewport';\nimport App from './App';\nimport WmFormField from '@wavemaker/app-rn-runtime/components/data/form/form-field/form-field.component';\nimport WmForm from '@wavemaker/app-rn-runtime/components/data/form/form.component';\nimport { ToastConsumer, ToastService } from '@wavemaker/app-rn-runtime/core/toast.service';\nimport spinnerService from '@wavemaker/app-rn-runtime/runtime/services/app-spinner.service';\n\nimport AppI18nService from './services/app-i18n.service';\nimport { Watcher } from './watcher';\n\nexport class FragmentProps extends BaseProps {\n\n}\n\nexport interface FragmentState<T extends FragmentProps> extends BaseComponentState<T> {}\n\nexport type FragmentStyles = BaseStyles & {};\nexport default abstract class BaseFragment<P extends FragmentProps, S extends FragmentState<P>> extends BaseComponent<P, S, FragmentStyles> implements LifecycleListener {\n public App: App;\n public onReady: Function = () => {};\n public baseUrl = '';\n public resourceBaseUrl = '';\n public targetWidget = null as unknown as BaseComponent<any, any, any>;\n public Widgets: any = {};\n public Variables: any = {};\n public theme: Theme = BASE_THEME;\n public appLocale: any = {};\n private startUpVariables: string[] = [];\n private startUpVariablesLoaded = false;\n private startUpActions: string[] = [];\n private autoUpdateVariables: string[] = [];\n private cleanUpVariablesandActions: BaseVariable<any>[] = [];\n public fragmentVariables: any = {};\n public fragmentActions: any = {};\n public Actions: any = {};\n public appConfig = injector.get<AppConfig>('APP_CONFIG');\n public cache = false;\n public refreshdataonattach= true;\n public isReactNativeApp = true;\n public fragments: any = {};\n public isDetached = false;\n public _memoize = {} as any;\n public toaster: any;\n public formatters: Map<string, Formatter>;\n public serviceDefinitions = {} as any;\n public Viewport = _viewPort;\n public loadingMessage = React.createElement(Text, [] as any, ['loading...']);\n public showContent = false;\n public notification = {\n text: '',\n title: '',\n okButtonText: '',\n cancelButtonText: '',\n onOk: () => {},\n onCancel: () => {},\n onClose: () => {}\n };\n public watcher: Watcher = null as any;\n constructor(props: P, defaultProps?: P) {\n super(props, null as any, defaultProps);\n this.App = this.appConfig.app;\n this.formatters = this.App.formatters;\n this.Actions = Object.assign({}, this.App.Actions);\n this.Variables = Object.assign({}, this.App.Variables);\n this.cleanup.push(_viewPort.subscribe(viewportEvents.ORIENTATION_CHANGE, ($new: any, $old: any) => {\n !this.isDetached && this.targetWidget && this.targetWidget.invokeEventCallback('onOrientationchange', [null, this.proxy,\n {screenWidth: _viewPort.width,\n screenHeight: _viewPort.height}]);\n }));\n this.cleanup.push(_viewPort.subscribe(viewportEvents.SIZE_CHANGE, ($new: any, $old: any) => {\n !this.isDetached && this.targetWidget && this.targetWidget.invokeEventCallback('onResize', [null, this.proxy,\n {screenWidth: $new.width,\n screenHeight: $new.height}]);\n }));\n this.cleanup.push(() => this.theme?.destroy());\n this.baseUrl = this.appConfig.url;\n this.resourceBaseUrl = this.appConfig.url;\n this.cleanup.push(() => this.onDestroy());\n }\n\n onContentReady() {\n this.onReady();\n this.appConfig.refresh();\n this.targetWidget && this.targetWidget.invokeEventCallback('onLoad', [null, this.proxy]);\n this.onContentReady = () => {};\n }\n\n onComponentChange(w: BaseComponent<any, any, any>) {\n this.refresh();\n }\n\n onComponentInit(w: BaseComponent<any, any, any>) {\n const id = w.props.id || w.props.name;\n\n if (w instanceof WmForm) {\n if (!this.Widgets[id]) {\n this.Widgets[id] = w;\n }\n const formWidgets = this.Widgets[id].formWidgets;\n const formFields = this.Widgets[id].formFields;\n this.Widgets[id] = w;\n if (w.parentFormRef) {\n let pid = w.parentFormRef.props.id || w.parentFormRef.props.name;\n formFields.forEach((ff: any) => {\n const formKey = ff.props.formKey || ff.props.name;\n this.Widgets[pid].formFields.push(ff);\n this.Widgets[pid].formWidgets[formKey] = formWidgets[ff.props.name];\n });\n }\n w.registerFormFields(formFields, formWidgets);\n return;\n }\n if (w.props.formfield) {\n if (!this.Widgets[w.props.formRef]) {\n this.Widgets[w.props.formRef] = {formFields: [], formWidgets: {}};\n } else if (!this.Widgets[w.props.formRef].formFields) {\n this.Widgets[w.props.formRef].formFields = [];\n }\n this.Widgets[w.props.formRef].formWidgets[w.props.name] = w;\n return;\n }\n if (w instanceof WmFormField) {\n if (!this.Widgets[w.props.formRef]) {\n this.Widgets[w.props.formRef] = {};\n }\n if (!this.Widgets[w.props.formRef].formFields) {\n this.Widgets[w.props.formRef].formFields = [];\n }\n this.Widgets[w.props.formRef].formWidgets = this.Widgets[w.props.formRef].formWidgets || {};\n this.Widgets[w.props.formRef].formFields.push(w);\n return;\n }\n this.Widgets[id] = w;\n if (w instanceof BaseFragment && w !== this) {\n this.fragments[id] = w;\n }\n }\n\n onComponentDestroy(w: BaseComponent<any, any, any>) {\n const id = w.props.id || w.props.name;\n delete this.Widgets[id];\n if (w instanceof BaseFragment) {\n delete this.fragments[id];\n }\n if (w instanceof WmForm) {\n w.formWidgets = {};\n w.formFields = [];\n w.formfields = {};\n }\n }\n\n handleUrl(url: string) {\n if (!url.startsWith('http') && !url.startsWith('file:')) {\n return this.appConfig.url + (url.startsWith('/') ? '' : '/') + url;\n }\n return url;\n }\n\n getDateFormat(fmt?: string) {\n // getting formats from appLocale when app locale is loaded locally.\n return (fmt || AppI18nService.dateFormat || get(this.appConfig, 'appLocale.formats.date')).replace(/d/g, 'D').replace(/E/g, 'd').replace(/y/g, 'Y');\n }\n\n getTimeFormat(fmt?: string) {\n return fmt || AppI18nService.timeFormat || get(this.appConfig, 'appLocale.formats.time');\n }\n\n getDateTimeFormat(fmt?: string) {\n return (fmt || AppI18nService.dateTimeFormat || (get(this.appConfig, 'appLocale.formats.date') + ' ' + get(this.appConfig, 'appLocale.formats.time'))).replace(/d/g, 'D').replace(/E/g, 'd').replace(/y/g, 'Y');\n }\n\n getCurrencySymbol(fmt?: string) {\n return (fmt || AppI18nService.currencyCode || 'USD');\n }\n\n getStyle(classes: string, inlineStyles:any = {}) {\n if (classes && classes.trim().length > 0) {\n return this.theme.mergeStyle({}, this.theme.getStyle(classes), inlineStyles);\n }\n return inlineStyles;\n }\n\n resetAppLocale() {\n this.appLocale = this.appConfig.appLocale.messages;\n Object.values(this.fragments).forEach((f: any) => (f as BaseFragment<any, any>).resetAppLocale());\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 toBoolean(val: any) {\n if (isNil(val)) {\n return val;\n }\n return toBoolean(val);\n }\n\n toNumber(val: any) {\n if (isNil(val)) {\n return val;\n }\n return toNumber(val);\n }\n\n componentWillUnmount() {\n super.componentWillUnmount();\n this.targetWidget && this.targetWidget.invokeEventCallback('onDestroy', [null, this.proxy]);\n }\n\n componentDidMount(): void {\n this.resetAppLocale();\n super.componentDidMount();\n }\n\n memoize(key: string, o: any) {\n if (!this._memoize[key]) {\n this._memoize[key] = o;\n }\n return this._memoize[key];\n }\n\n initVariableSpinner() {\n let variables = filter(this.Variables, (v: BaseVariable<any>) => !!get(v, 'config.spinnerContext'));\n const actions = filter(this.Actions, (v: BaseVariable<any>) => !!get(v, 'config.spinnerContext'));\n variables = variables.concat(actions);\n if (!variables.length) {\n return;\n }\n this.cleanup.push(...variables.map(v => {\n return ((v as BaseVariable<any>)\n .subscribe(VariableEvents.BEFORE_INVOKE, () => {\n spinnerService.show({\n message: get(v, 'config.spinnerMessage'),\n spinner: this.App.appConfig.spinner\n });\n }))\n }));\n this.cleanup.push(...variables.map(v => {\n return ((v as BaseVariable<any>)\n .subscribe(VariableEvents.AFTER_INVOKE, () => {\n spinnerService.hide();\n }));\n }));\n }\n\n onFragmentReady() {\n this.cleanup.push(...Object.values({...this.Variables, ...this.Actions}).map(v => {\n return ((v as BaseVariable<any>)\n .subscribe(VariableEvents.AFTER_INVOKE, () => this.App.refresh()));\n }));\n this.initVariableSpinner();\n this.cleanUpVariablesandActions.push(...Object.values({...this.fragmentVariables, ...this.fragmentActions} as BaseVariable<any>));\n this.startUpActions.map(a => this.Actions[a] && this.Actions[a].invoke());\n return Promise.all(this.startUpVariables.map(s => this.Variables[s] && this.Variables[s].invoke()))\n .catch(() => {\n // catch errors and show content\n })\n .then(() => {\n this.startUpVariablesLoaded = true;\n this.showContent = true;\n this.appConfig.refresh();\n });\n }\n\n onAttach() {\n this.isDetached = false;\n this.watcher.isActive = true;\n this.resetAppLocale();\n Object.values(this.fragments).forEach((f: any) => f.onAttach());\n this.cleanUpVariablesandActions.forEach((v: any) => v.unmute && v.unmute());\n this.targetWidget?.invokeEventCallback('onAttach', [null, this.proxy]);\n if (this.refreshdataonattach) {\n Promise.all(this.startUpVariables.map(s => this.Variables[s] && this.Variables[s].invoke()));\n }\n Object.values(this.Widgets).forEach((w: any) => { \n w.componentWillAttach && w.componentWillAttach();\n });\n }\n\n onDetach() {\n this.isDetached = true;\n this.watcher.isActive = false;\n Object.values(this.fragments).forEach((f: any) => f.onDetach());\n this.cleanUpVariablesandActions.forEach((v: any) => v.mute && v.mute());\n this.targetWidget?.invokeEventCallback('onDetach', [null, this.proxy]);\n Object.values(this.Widgets).forEach((w: any) => { \n w.componentWillDetach && w.componentWillDetach();\n });\n }\n\n onDestroy() {\n this.cleanUpVariablesandActions.forEach((v: any) => v.destroy());\n this.watcher.destroy();\n }\n\n refresh() {\n (injector.get('AppConfig') as AppConfig).refresh();\n }\n\n forceUpdate() {\n super.forceUpdate();\n Object.values(this.fragments).forEach((f: any) => (f as BaseFragment<any, any>).forceUpdate());\n }\n\n render() {\n if (this.startUpVariablesLoaded) {\n this.autoUpdateVariables\n .forEach(value => this.Variables[value]?.invokeOnParamChange());\n }\n return (<ThemeProvider value={this.theme}>\n <ToastConsumer>\n {(toastService: ToastService) => {\n this.toaster = toastService;\n return this.renderWidget(this.props);\n }}\n </ToastConsumer>\n\n </ThemeProvider>);\n }\n}\n\n\n"],"mappings":";;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,QAAQ,cAAc;AACnC,SAASC,GAAG,EAAEC,MAAM,EAAEC,KAAK,QAAQ,QAAQ;AAI3C,OAAOC,QAAQ,MAAM,yCAAyC;AAC9D,SAASC,SAAS,EAAEC,QAAQ,QAAQ,sCAAsC;AAC1E,SAASC,aAAa,EAAkCC,SAAS,QAA2B,+CAA+C;AAC3I,OAAOC,UAAU,IAAWC,aAAa,QAAQ,wCAAwC;AACzF,SAAuBC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AI,IAAI,CAACtH,SAAS,CAACsH,KAAK,CAAC,0DAArB,sBAAuBC,mBAAmB,EAAE;MAAA,EAAC;IACnE;IACA,oBAAQ,oBAAC,aAAa;MAAC,KAAK,EAAE,IAAI,CAACvG;IAAM,gBACvC,oBAAC,aAAa,QACRwG,YAA0B,IAAK;MAC/B,IAAI,CAACC,OAAO,GAAGD,YAAY;MAC3B,OAAO,IAAI,CAACE,YAAY,CAAC,IAAI,CAAC3I,KAAK,CAAC;IACtC,CAAC,CACa,CAEJ;EAClB;AACJ"}
1
+ {"version":3,"names":["React","Text","get","filter","isNil","injector","toBoolean","toNumber","isFullPathUrl","BaseComponent","BaseProps","BASE_THEME","ThemeProvider","VariableEvents","default","_viewPort","EVENTS","viewportEvents","WmFormField","WmForm","ToastConsumer","spinnerService","AppI18nService","WmFormAction","FragmentProps","BaseFragment","constructor","props","defaultProps","_defineProperty","createElement","text","title","okButtonText","cancelButtonText","onOk","onCancel","onClose","App","appConfig","app","formatters","Actions","Object","assign","Variables","cleanup","push","subscribe","ORIENTATION_CHANGE","$new","$old","isDetached","targetWidget","invokeEventCallback","proxy","screenWidth","width","screenHeight","height","SIZE_CHANGE","_this$theme","theme","destroy","baseUrl","url","resourceBaseUrl","onDestroy","onContentReady","onReady","refresh","onComponentChange","w","onComponentInit","id","name","Widgets","formWidgets","formFields","formActions","buttonArray","parentFormRef","pid","forEach","ff","formKey","registerFormFields","registerFormActions","formfield","formRef","fragments","onComponentDestroy","formfields","handleUrl","startsWith","getDateFormat","fmt","dateFormat","replace","getTimeFormat","timeFormat","getDateTimeFormat","dateTimeFormat","getCurrencySymbol","currencyCode","getStyle","classes","inlineStyles","arguments","length","undefined","trim","mergeStyle","resetAppLocale","appLocale","messages","values","f","eval","fn","failOnError","call","e","val","componentWillUnmount","componentDidMount","memoize","key","o","_memoize","initVariableSpinner","variables","v","actions","concat","map","BEFORE_INVOKE","show","message","spinner","AFTER_INVOKE","hide","onFragmentReady","cleanUpVariablesandActions","fragmentVariables","fragmentActions","startUpActions","a","invoke","Promise","all","startUpVariables","s","catch","then","startUpVariablesLoaded","showContent","onAttach","_this$targetWidget","watcher","isActive","unmute","refreshdataonattach","componentWillAttach","onDetach","_this$targetWidget2","mute","componentWillDetach","forceUpdate","render","autoUpdateVariables","value","_this$Variables$value","invokeOnParamChange","isVisible","toastService","toaster","renderWidget"],"sources":["base-fragment.component.tsx"],"sourcesContent":["import React from 'react';\nimport { Text } from 'react-native';\nimport { get, filter, isNil } from 'lodash';\n\nimport AppConfig from '@wavemaker/app-rn-runtime/core/AppConfig';\nimport { Formatter } from '@wavemaker/app-rn-runtime/core/formatters';\nimport injector from '@wavemaker/app-rn-runtime/core/injector';\nimport { toBoolean, toNumber, isFullPathUrl } from '@wavemaker/app-rn-runtime/core/utils';\nimport { BaseComponent, BaseComponentState, BaseStyles, BaseProps, LifecycleListener } from '@wavemaker/app-rn-runtime/core/base.component';\nimport BASE_THEME, { Theme, ThemeProvider } from '@wavemaker/app-rn-runtime/styles/theme';\nimport { BaseVariable, VariableEvents } from '@wavemaker/app-rn-runtime/variables/base-variable';\nimport { default as _viewPort, EVENTS as viewportEvents } from '@wavemaker/app-rn-runtime/core/viewport';\nimport App from './App';\nimport WmFormField from '@wavemaker/app-rn-runtime/components/data/form/form-field/form-field.component';\nimport WmForm from '@wavemaker/app-rn-runtime/components/data/form/form.component';\nimport { ToastConsumer, ToastService } from '@wavemaker/app-rn-runtime/core/toast.service';\nimport spinnerService from '@wavemaker/app-rn-runtime/runtime/services/app-spinner.service';\n\nimport AppI18nService from './services/app-i18n.service';\nimport { Watcher } from './watcher';\nimport WmFormAction from '@wavemaker/app-rn-runtime/components/data/form/form-action/form-action.component';\n\nexport class FragmentProps extends BaseProps {\n\n}\n\nexport interface FragmentState<T extends FragmentProps> extends BaseComponentState<T> {}\n\nexport type FragmentStyles = BaseStyles & {};\nexport default abstract class BaseFragment<P extends FragmentProps, S extends FragmentState<P>> extends BaseComponent<P, S, FragmentStyles> implements LifecycleListener {\n public App: App;\n public onReady: Function = () => {};\n public baseUrl = '';\n public resourceBaseUrl = '';\n public targetWidget = null as unknown as BaseComponent<any, any, any>;\n public Widgets: any = {};\n public Variables: any = {};\n public theme: Theme = BASE_THEME;\n public appLocale: any = {};\n private startUpVariables: string[] = [];\n private startUpVariablesLoaded = false;\n private startUpActions: string[] = [];\n private autoUpdateVariables: string[] = [];\n private cleanUpVariablesandActions: BaseVariable<any>[] = [];\n public fragmentVariables: any = {};\n public fragmentActions: any = {};\n public Actions: any = {};\n public appConfig = injector.get<AppConfig>('APP_CONFIG');\n public cache = false;\n public refreshdataonattach= true;\n public isReactNativeApp = true;\n public fragments: any = {};\n public isDetached = false;\n public _memoize = {} as any;\n public toaster: any;\n public formatters: Map<string, Formatter>;\n public serviceDefinitions = {} as any;\n public Viewport = _viewPort;\n public loadingMessage = React.createElement(Text, [] as any, ['loading...']);\n public showContent = false;\n public notification = {\n text: '',\n title: '',\n okButtonText: '',\n cancelButtonText: '',\n onOk: () => {},\n onCancel: () => {},\n onClose: () => {}\n };\n public watcher: Watcher = null as any;\n constructor(props: P, defaultProps?: P) {\n super(props, null as any, defaultProps);\n this.App = this.appConfig.app;\n this.formatters = this.App.formatters;\n this.Actions = Object.assign({}, this.App.Actions);\n this.Variables = Object.assign({}, this.App.Variables);\n this.cleanup.push(_viewPort.subscribe(viewportEvents.ORIENTATION_CHANGE, ($new: any, $old: any) => {\n !this.isDetached && this.targetWidget && this.targetWidget.invokeEventCallback('onOrientationchange', [null, this.proxy,\n {screenWidth: _viewPort.width,\n screenHeight: _viewPort.height}]);\n }));\n this.cleanup.push(_viewPort.subscribe(viewportEvents.SIZE_CHANGE, ($new: any, $old: any) => {\n !this.isDetached && this.targetWidget && this.targetWidget.invokeEventCallback('onResize', [null, this.proxy,\n {screenWidth: $new.width,\n screenHeight: $new.height}]);\n }));\n this.cleanup.push(() => this.theme?.destroy());\n this.baseUrl = this.appConfig.url;\n this.resourceBaseUrl = this.appConfig.url;\n this.cleanup.push(() => this.onDestroy());\n }\n\n onContentReady() {\n this.onReady();\n this.appConfig.refresh();\n this.targetWidget && this.targetWidget.invokeEventCallback('onLoad', [null, this.proxy]);\n this.onContentReady = () => {};\n }\n\n onComponentChange(w: BaseComponent<any, any, any>) {\n this.refresh();\n }\n\n onComponentInit(w: BaseComponent<any, any, any>) {\n const id = w.props.id || w.props.name;\n\n if (w instanceof WmForm) {\n if (!this.Widgets[id]) {\n this.Widgets[id] = w;\n }\n const formWidgets = this.Widgets[id].formWidgets;\n const formFields = this.Widgets[id].formFields;\n const formActions = this.Widgets[id].buttonArray;\n this.Widgets[id] = w;\n if (w.parentFormRef) {\n let pid = w.parentFormRef.props.id || w.parentFormRef.props.name;\n formFields.forEach((ff: any) => {\n const formKey = ff.props.formKey || ff.props.name;\n this.Widgets[pid].formFields.push(ff);\n this.Widgets[pid].formWidgets[formKey] = formWidgets[ff.props.name];\n });\n }\n w.registerFormFields(formFields, formWidgets);\n w.registerFormActions(formActions);\n return;\n }\n if (w.props.formfield) {\n if (!this.Widgets[w.props.formRef]) {\n this.Widgets[w.props.formRef] = {formFields: [], formWidgets: {}};\n } else if (!this.Widgets[w.props.formRef].formFields) {\n this.Widgets[w.props.formRef].formFields = [];\n }\n this.Widgets[w.props.formRef].formWidgets[w.props.name] = w;\n return;\n }\n if (w instanceof WmFormAction) {\n if (!this.Widgets[w.props.formKey]) {\n this.Widgets[w.props.formKey] = {};\n }\n if (!this.Widgets[w.props.formKey].buttonArray) {\n this.Widgets[w.props.formKey].buttonArray = [];\n }\n this.Widgets[w.props.formKey].buttonArray.push(w);\n return;\n }\n\n if (w instanceof WmFormField) {\n if (!this.Widgets[w.props.formRef]) {\n this.Widgets[w.props.formRef] = {};\n }\n if (!this.Widgets[w.props.formRef].formFields) {\n this.Widgets[w.props.formRef].formFields = [];\n }\n this.Widgets[w.props.formRef].formWidgets = this.Widgets[w.props.formRef].formWidgets || {};\n this.Widgets[w.props.formRef].formFields.push(w);\n return;\n }\n this.Widgets[id] = w;\n if (w instanceof BaseFragment && w !== this) {\n this.fragments[id] = w;\n }\n }\n\n onComponentDestroy(w: BaseComponent<any, any, any>) {\n const id = w.props.id || w.props.name;\n delete this.Widgets[id];\n if (w instanceof BaseFragment) {\n delete this.fragments[id];\n }\n if (w instanceof WmForm) {\n w.formWidgets = {};\n w.formFields = [];\n w.formfields = {};\n }\n }\n\n handleUrl(url: string) {\n if (isFullPathUrl(url)) {\n return url;\n }\n return this.appConfig.url + (url.startsWith('/') ? '' : '/') + url;\n }\n\n getDateFormat(fmt?: string) {\n // getting formats from appLocale when app locale is loaded locally.\n return (fmt || AppI18nService.dateFormat || get(this.appConfig, 'appLocale.formats.date')).replace(/d/g, 'D').replace(/E/g, 'd').replace(/y/g, 'Y');\n }\n\n getTimeFormat(fmt?: string) {\n return fmt || AppI18nService.timeFormat || get(this.appConfig, 'appLocale.formats.time');\n }\n\n getDateTimeFormat(fmt?: string) {\n return (fmt || AppI18nService.dateTimeFormat || (get(this.appConfig, 'appLocale.formats.date') + ' ' + get(this.appConfig, 'appLocale.formats.time'))).replace(/d/g, 'D').replace(/E/g, 'd').replace(/y/g, 'Y');\n }\n\n getCurrencySymbol(fmt?: string) {\n return (fmt || AppI18nService.currencyCode || 'USD');\n }\n\n getStyle(classes: string, inlineStyles:any = {}) {\n if (classes && classes.trim().length > 0) {\n return this.theme.mergeStyle({}, this.theme.getStyle(classes), inlineStyles);\n }\n return inlineStyles;\n }\n\n resetAppLocale() {\n this.appLocale = this.appConfig.appLocale.messages;\n Object.values(this.fragments).forEach((f: any) => (f as BaseFragment<any, any>).resetAppLocale());\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 toBoolean(val: any) {\n if (isNil(val)) {\n return false;\n }\n return toBoolean(val);\n }\n\n toNumber(val: any) {\n if (isNil(val)) {\n return val;\n }\n return toNumber(val);\n }\n\n componentWillUnmount() {\n super.componentWillUnmount();\n this.targetWidget && this.targetWidget.invokeEventCallback('onDestroy', [null, this.proxy]);\n }\n\n componentDidMount(): void {\n this.resetAppLocale();\n super.componentDidMount();\n }\n\n memoize(key: string, o: any) {\n if (!this._memoize[key]) {\n this._memoize[key] = o;\n }\n return this._memoize[key];\n }\n\n initVariableSpinner() {\n let variables = filter(this.Variables, (v: BaseVariable<any>) => !!get(v, 'config.spinnerContext'));\n const actions = filter(this.Actions, (v: BaseVariable<any>) => !!get(v, 'config.spinnerContext'));\n variables = variables.concat(actions);\n if (!variables.length) {\n return;\n }\n this.cleanup.push(...variables.map(v => {\n return ((v as BaseVariable<any>)\n .subscribe(VariableEvents.BEFORE_INVOKE, () => {\n spinnerService.show({\n message: get(v, 'config.spinnerMessage'),\n spinner: this.App.appConfig.spinner\n });\n }))\n }));\n this.cleanup.push(...variables.map(v => {\n return ((v as BaseVariable<any>)\n .subscribe(VariableEvents.AFTER_INVOKE, () => {\n spinnerService.hide();\n }));\n }));\n }\n\n onFragmentReady() {\n this.cleanup.push(...Object.values({...this.Variables, ...this.Actions}).map(v => {\n return ((v as BaseVariable<any>)\n .subscribe(VariableEvents.AFTER_INVOKE, () => this.App.refresh()));\n }));\n this.initVariableSpinner();\n this.cleanUpVariablesandActions.push(...Object.values({...this.fragmentVariables, ...this.fragmentActions} as BaseVariable<any>));\n this.startUpActions.map(a => this.Actions[a] && this.Actions[a].invoke());\n return Promise.all(this.startUpVariables.map(s => this.Variables[s] && this.Variables[s].invoke()))\n .catch(() => {\n // catch errors and show content\n })\n .then(() => {\n this.startUpVariablesLoaded = true;\n this.showContent = true;\n this.appConfig.refresh();\n });\n }\n\n onAttach() {\n this.isDetached = false;\n this.watcher.isActive = true;\n this.resetAppLocale();\n Object.values(this.fragments).forEach((f: any) => f.onAttach());\n this.cleanUpVariablesandActions.forEach((v: any) => v.unmute && v.unmute());\n this.targetWidget?.invokeEventCallback('onAttach', [null, this.proxy]);\n if (this.refreshdataonattach) {\n Promise.all(this.startUpVariables.map(s => this.Variables[s] && this.Variables[s].invoke()));\n }\n Object.values(this.Widgets).forEach((w: any) => {\n w.componentWillAttach && w.componentWillAttach();\n });\n }\n\n onDetach() {\n this.isDetached = true;\n this.watcher.isActive = false;\n Object.values(this.fragments).forEach((f: any) => f.onDetach());\n this.cleanUpVariablesandActions.forEach((v: any) => v.mute && v.mute());\n this.targetWidget?.invokeEventCallback('onDetach', [null, this.proxy]);\n Object.values(this.Widgets).forEach((w: any) => {\n w.componentWillDetach && w.componentWillDetach();\n });\n }\n\n onDestroy() {\n this.cleanUpVariablesandActions.forEach((v: any) => v.destroy());\n this.watcher.destroy();\n }\n\n refresh() {\n (injector.get('AppConfig') as AppConfig).refresh();\n }\n\n forceUpdate() {\n super.forceUpdate();\n Object.values(this.fragments).forEach((f: any) => (f as BaseFragment<any, any>).forceUpdate());\n }\n\n render() {\n if (this.startUpVariablesLoaded) {\n this.autoUpdateVariables\n .forEach(value => this.Variables[value]?.invokeOnParamChange());\n }\n return this.isVisible() ? (<ThemeProvider value={this.theme}>\n <ToastConsumer>\n {(toastService: ToastService) => {\n this.toaster = toastService;\n return this.renderWidget(this.props);\n }}\n </ToastConsumer>\n\n </ThemeProvider>) : null;\n }\n}\n\n\n"],"mappings":";;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,QAAQ,cAAc;AACnC,SAASC,GAAG,EAAEC,MAAM,EAAEC,KAAK,QAAQ,QAAQ;AAI3C,OAAOC,QAAQ,MAAM,yCAAyC;AAC9D,SAASC,SAAS,EAAEC,QAAQ,EAAEC,aAAa,QAAQ,sCAAsC;AACzF,SAASC,aAAa,EAAkCC,SAAS,QAA2B,+CAA+C;AAC3I,OAAOC,UAAU,IAAWC,aAAa,QAAQ,wCAAwC;AACzF,SAAuBC,cAAc,QAAQ,mDAAmD;AAChG,SAASC,OAAO,IAAIC,SAAS,EAAEC,MAAM,IAAIC,cAAc,QAAQ,yCAAyC;AAExG,OAAOC,WAAW,MAAM,g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ChG;EAEAC,MAAMA,CAAA,EAAG;IACP,IAAI,IAAI,CAACd,sBAAsB,EAAE;MAC/B,IAAI,CAACe,mBAAmB,CACrBvF,OAAO,CAACwF,KAAK;QAAA,IAAAC,qBAAA;QAAA,QAAAA,qBAAA,GAAI,IAAI,CAAC/H,SAAS,CAAC8H,KAAK,CAAC,cAAAC,qBAAA,uBAArBA,qBAAA,CAAuBC,mBAAmB,CAAC,CAAC;MAAA,EAAC;IACnE;IACA,OAAO,IAAI,CAACC,SAAS,CAAC,CAAC,gBAAI9K,KAAA,CAAA8B,aAAA,CAAClB,aAAa;MAAC+J,KAAK,EAAE,IAAI,CAAC7G;IAAM,gBAC1D9D,KAAA,CAAA8B,aAAA,CAACV,aAAa,QACR2J,YAA0B,IAAK;MAC/B,IAAI,CAACC,OAAO,GAAGD,YAAY;MAC3B,OAAO,IAAI,CAACE,YAAY,CAAC,IAAI,CAACtJ,KAAK,CAAC;IACtC,CACa,CAEJ,CAAC,GAAI,IAAI;EAC1B;AACJ"}
@@ -96,6 +96,8 @@ export default class BasePage extends BaseFragment {
96
96
  } else {
97
97
  this.props.destroyMe();
98
98
  }
99
+ } else {
100
+ this.props.navigation.closeDrawer();
99
101
  }
100
102
  return Promise.resolve();
101
103
  }
@@ -1 +1 @@
1
- {"version":3,"names":["clone","isEqual","React","WmPage","NavigationServiceProvider","AppSpinnerService","BaseFragment","Watcher","BasePage","constructor","props","pageName","route","name","pageParams","params","appConfig","currentPage","drawer","setContent","serviceDefinitions","App","watcher","ROOT","create","onComponentInit","w","targetWidget","cache","refreshdataonattach","toggleDrawer","navigation","setDrawerContent","content","drawerContent","drawerType","hasDrawer","setTimeout","proxy","setAnimation","onAttach","onFragmentReady","then","onContentReady","onPageReady","hide","cleanup","push","addListener","refresh","componentWillUnmount","goToPage","_params","navigate","onDetach","destroyMe","Promise","resolve","goBack","canGoBack","window","history","back","openUrl","url","startsWith","substring","splits","split","length","map","p","forEach","openBrowser","isCurrentPage","link","includes","renderWidget","renderPage"],"sources":["base-page.component.tsx"],"sourcesContent":["import { clone, isEqual } from 'lodash';\nimport React, { ReactNode } from 'react';\nimport { BaseComponent } from '@wavemaker/app-rn-runtime/core/base.component';\n\nimport WmPage from '@wavemaker/app-rn-runtime/components/page/page.component';\nimport NavigationService, { NavigationServiceProvider } from '@wavemaker/app-rn-runtime/core/navigation.service';\n\nimport AppSpinnerService from './services/app-spinner.service';\nimport BaseFragment, { FragmentProps, FragmentState } from './base-fragment.component';\nimport { Watcher } from './watcher';\n\ndeclare const window: any;\n\nexport interface PageProps extends FragmentProps {\n route: any;\n navigation: any;\n destroyMe: Function;\n}\n\nexport interface PageState extends FragmentState<PageProps> {}\n\nexport default abstract class BasePage extends BaseFragment<PageProps, PageState> implements NavigationService {\n private pageName = null as unknown as string;\n private pageParams: any = {};\n private hasDrawer = false;\n private hasTabbar = false;\n private drawerContent = null as React.ReactNode;\n private drawerType = '';\n\n constructor(props: PageProps) {\n super(props);\n this.pageName = props.route.name;\n this.pageParams = props.route.params;\n this.appConfig.currentPage = this;\n this.appConfig.drawer?.setContent(null);\n this.serviceDefinitions = this.App.serviceDefinitions;\n this.watcher = Watcher.ROOT.create();\n }\n\n onComponentInit(w: BaseComponent<any, any, any>) {\n super.onComponentInit(w);\n if (w instanceof WmPage) {\n this.targetWidget = w;\n const props = w.props as any;\n this.cache = !(props.cache === false);\n this.refreshdataonattach = !(props.refreshdataonattach === false);\n }\n }\n\n toggleDrawer() {\n (this.props as PageProps).navigation.toggleDrawer();\n }\n\n setDrawerContent(content = this.drawerContent, drawerType = this.drawerType) {\n if (!content) {\n return;\n }\n this.drawerContent = content;\n this.drawerType = drawerType;\n this.hasDrawer = true;\n setTimeout(() => {\n if (this.appConfig.currentPage === this \n || this.appConfig.currentPage.proxy === this) {\n this.appConfig.drawer?.setContent(null);\n setTimeout(() => {\n this.appConfig.drawer?.setContent((\n <NavigationServiceProvider value={this}>\n {content}\n </NavigationServiceProvider>));\n }, 500);\n this.appConfig.drawer?.setAnimation(drawerType);\n }\n }, 10);\n }\n\n onAttach() {\n super.onAttach();\n this.setDrawerContent();\n }\n\n onFragmentReady() {\n return super.onFragmentReady().then(() => {\n this.onContentReady();\n this.App.onPageReady(this.pageName, this.proxy as BasePage);\n AppSpinnerService.hide(); \n this.cleanup.push((this.props as PageProps).navigation.addListener('focus', () => {\n if (this.appConfig.currentPage !== this) {\n this.appConfig.currentPage = this;\n this.onAttach();\n this.appConfig.refresh();\n }\n }));\n });\n }\n\n componentWillUnmount() {\n super.componentWillUnmount();\n }\n\n goToPage(pageName: string, params: any) {\n const navigation = (this.props as PageProps).navigation;\n const _params = clone(params);\n _params && delete _params['pageName'];\n if (pageName !== this.pageName || !isEqual(_params, this.pageParams)) {\n if (pageName === this.pageName) {\n navigation.push(pageName, _params);\n } else {\n navigation.navigate(pageName, _params);\n }\n if (this.cache) {\n this.onDetach();\n } else {\n this.props.destroyMe();\n }\n }\n return Promise.resolve();\n }\n\n goBack() {\n const navigation = (this.props as PageProps).navigation;\n if (navigation.canGoBack()) {\n navigation.goBack();\n } else if (window && window.history) {\n window.history.back();\n }\n return Promise.resolve();\n }\n\n openUrl(url: string, params = {} as any) {\n if (url) {\n if (url.startsWith('#')) {\n url = url.substring(1);\n url = url.startsWith('/') ? url.substring(1) : url;\n const splits = url.split('?');\n const pageName = splits[0];\n let params = {} as any;\n if (splits.length > 1) {\n splits[1].split('&')\n .map(p => p.split('='))\n .forEach(p => params[p[0]] = p[1]);\n }\n return this.goToPage(pageName, params);\n } else {\n this.App.openBrowser(url, params);\n }\n }\n return Promise.resolve();\n }\n\n isCurrentPage(link: string) {\n const pageName = this.pageName;\n return [pageName, '#' + pageName, '#/' + pageName].includes(link)\n }\n\n abstract renderPage(): ReactNode;\n\n renderWidget(props: PageProps) {\n return this.renderPage();\n }\n}\n"],"mappings":";;;AAAA,SAASA,KAAK,EAAEC,OAAO,QAAQ,QAAQ;AACvC,OAAOC,KAAK,MAAqB,OAAO;AAGxC,OAAOC,MAAM,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QAAQ,EAAE,GAAG,GAAGA,QAAQ,EAAE,IAAI,GAAGA,QAAQ,CAAC,CAACiE,QAAQ,CAACD,IAAI,CAAC;EACnE;EAIAE,YAAY,CAACnE,KAAgB,EAAE;IAC7B,OAAO,IAAI,CAACoE,UAAU,EAAE;EAC1B;AACJ"}
1
+ {"version":3,"names":["clone","isEqual","React","WmPage","NavigationServiceProvider","AppSpinnerService","BaseFragment","Watcher","BasePage","constructor","props","_this$appConfig$drawe","_defineProperty","pageName","route","name","pageParams","params","appConfig","currentPage","drawer","setContent","serviceDefinitions","App","watcher","ROOT","create","onComponentInit","w","targetWidget","cache","refreshdataonattach","toggleDrawer","navigation","setDrawerContent","content","arguments","length","undefined","drawerContent","drawerType","hasDrawer","setTimeout","proxy","_this$appConfig$drawe2","_this$appConfig$drawe4","_this$appConfig$drawe3","createElement","value","setAnimation","onAttach","onFragmentReady","then","onContentReady","onPageReady","hide","cleanup","push","addListener","refresh","componentWillUnmount","goToPage","_params","navigate","onDetach","destroyMe","closeDrawer","Promise","resolve","goBack","canGoBack","window","history","back","openUrl","url","startsWith","substring","splits","split","map","p","forEach","openBrowser","isCurrentPage","link","includes","renderWidget","renderPage"],"sources":["base-page.component.tsx"],"sourcesContent":["import { clone, isEqual } from 'lodash';\nimport React, { ReactNode } from 'react';\nimport { BaseComponent } from '@wavemaker/app-rn-runtime/core/base.component';\n\nimport WmPage from '@wavemaker/app-rn-runtime/components/page/page.component';\nimport NavigationService, { NavigationServiceProvider } from '@wavemaker/app-rn-runtime/core/navigation.service';\n\nimport AppSpinnerService from './services/app-spinner.service';\nimport BaseFragment, { FragmentProps, FragmentState } from './base-fragment.component';\nimport { Watcher } from './watcher';\n\ndeclare const window: any;\n\nexport interface PageProps extends FragmentProps {\n route: any;\n navigation: any;\n destroyMe: Function;\n}\n\nexport interface PageState extends FragmentState<PageProps> {}\n\nexport default abstract class BasePage extends BaseFragment<PageProps, PageState> implements NavigationService {\n private pageName = null as unknown as string;\n private pageParams: any = {};\n private hasDrawer = false;\n private hasTabbar = false;\n private drawerContent = null as React.ReactNode;\n private drawerType = '';\n\n constructor(props: PageProps) {\n super(props);\n this.pageName = props.route.name;\n this.pageParams = props.route.params;\n this.appConfig.currentPage = this;\n this.appConfig.drawer?.setContent(null);\n this.serviceDefinitions = this.App.serviceDefinitions;\n this.watcher = Watcher.ROOT.create();\n }\n\n onComponentInit(w: BaseComponent<any, any, any>) {\n super.onComponentInit(w);\n if (w instanceof WmPage) {\n this.targetWidget = w;\n const props = w.props as any;\n this.cache = !(props.cache === false);\n this.refreshdataonattach = !(props.refreshdataonattach === false);\n }\n }\n\n toggleDrawer() {\n (this.props as PageProps).navigation.toggleDrawer();\n }\n\n setDrawerContent(content = this.drawerContent, drawerType = this.drawerType) {\n if (!content) {\n return;\n }\n this.drawerContent = content;\n this.drawerType = drawerType;\n this.hasDrawer = true;\n setTimeout(() => {\n if (this.appConfig.currentPage === this \n || this.appConfig.currentPage.proxy === this) {\n this.appConfig.drawer?.setContent(null);\n setTimeout(() => {\n this.appConfig.drawer?.setContent((\n <NavigationServiceProvider value={this}>\n {content}\n </NavigationServiceProvider>));\n }, 500);\n this.appConfig.drawer?.setAnimation(drawerType);\n }\n }, 10);\n }\n\n onAttach() {\n super.onAttach();\n this.setDrawerContent();\n }\n\n onFragmentReady() {\n return super.onFragmentReady().then(() => {\n this.onContentReady();\n this.App.onPageReady(this.pageName, this.proxy as BasePage);\n AppSpinnerService.hide(); \n this.cleanup.push((this.props as PageProps).navigation.addListener('focus', () => {\n if (this.appConfig.currentPage !== this) {\n this.appConfig.currentPage = this;\n this.onAttach();\n this.appConfig.refresh();\n }\n }));\n });\n }\n\n componentWillUnmount() {\n super.componentWillUnmount();\n }\n\n goToPage(pageName: string, params: any) {\n const navigation = (this.props as PageProps).navigation;\n const _params = clone(params);\n _params && delete _params['pageName'];\n if (pageName !== this.pageName || !isEqual(_params, this.pageParams)) {\n if (pageName === this.pageName) {\n navigation.push(pageName, _params);\n } else {\n navigation.navigate(pageName, _params);\n }\n if (this.cache) {\n this.onDetach();\n } else {\n this.props.destroyMe();\n }\n } else {\n (this.props as PageProps).navigation.closeDrawer();\n }\n return Promise.resolve();\n }\n\n goBack() {\n const navigation = (this.props as PageProps).navigation;\n if (navigation.canGoBack()) {\n navigation.goBack();\n } else if (window && window.history) {\n window.history.back();\n }\n return Promise.resolve();\n }\n\n openUrl(url: string, params = {} as any) {\n if (url) {\n if (url.startsWith('#')) {\n url = url.substring(1);\n url = url.startsWith('/') ? url.substring(1) : url;\n const splits = url.split('?');\n const pageName = splits[0];\n let params = {} as any;\n if (splits.length > 1) {\n splits[1].split('&')\n .map(p => p.split('='))\n .forEach(p => params[p[0]] = p[1]);\n }\n return this.goToPage(pageName, params);\n } else {\n this.App.openBrowser(url, params);\n }\n }\n return Promise.resolve();\n }\n\n isCurrentPage(link: string) {\n const pageName = this.pageName;\n return [pageName, '#' + pageName, '#/' + pageName].includes(link)\n }\n\n abstract renderPage(): ReactNode;\n\n renderWidget(props: PageProps) {\n return this.renderPage();\n }\n}\n"],"mappings":";;;AAAA,SAASA,KAAK,EAAEC,OAAO,QAAQ,QAAQ;AACvC,OAAOC,KAAK,MAAqB,OAAO;AAGxC,OAAOC,MAAM,MAAM,0DAA0D;AAC7E,SAA4BC,yBAAyB,QAAQ,mDAAmD;AAEhH,OAAOC,iBAAiB,MAAM,gCAAgC;AAC9D,OAAOC,YAAY,MAAwC,2BAA2B;AACtF,SAASC,OAAO,QAAQ,WAAW;AAYnC,eAAe,MAAeC,QAAQ,SAASF,YAAY,CAAoD;EAQ3GG,WAAWA,CAACC,KAAgB,EAAE;IAAA,IAAAC,qBAAA;IAC5B,KAAK,CAACD,KAAK,CAAC;IAACE,eAAA,mBARI,IAAI;IAAAA,eAAA,qBACG,CAAC,CAAC;IAAAA,eAAA,oBACR,KAAK;IAAAA,eAAA,oBACL,KAAK;IAAAA,eAAA,wBACD,IAAI;IAAAA,eAAA,qBACP,EAAE;IAIrB,IAAI,CAACC,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