@wavemaker/app-rn-runtime 11.5.0-next.40301 → 11.5.0-next.NULL

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 (363) hide show
  1. app-rn-runtime/actions/login-action.js +4 -0
  2. app-rn-runtime/actions/login-action.js.map +1 -1
  3. app-rn-runtime/actions/logout-action.js +4 -0
  4. app-rn-runtime/actions/logout-action.js.map +1 -1
  5. app-rn-runtime/actions/notification-action.js.map +1 -1
  6. app-rn-runtime/components/advanced/carousel/carousel-template/carousel-template.component.js +4 -1
  7. app-rn-runtime/components/advanced/carousel/carousel-template/carousel-template.component.js.map +1 -1
  8. app-rn-runtime/components/advanced/carousel/carousel-template/carousel-template.styles.js +1 -2
  9. app-rn-runtime/components/advanced/carousel/carousel-template/carousel-template.styles.js.map +1 -1
  10. app-rn-runtime/components/advanced/carousel/carousel.component.js +214 -69
  11. app-rn-runtime/components/advanced/carousel/carousel.component.js.map +1 -1
  12. app-rn-runtime/components/advanced/carousel/carousel.props.js +3 -0
  13. app-rn-runtime/components/advanced/carousel/carousel.props.js.map +1 -1
  14. app-rn-runtime/components/advanced/carousel/carousel.styles.js +22 -10
  15. app-rn-runtime/components/advanced/carousel/carousel.styles.js.map +1 -1
  16. app-rn-runtime/components/advanced/login/login.component.js +3 -2
  17. app-rn-runtime/components/advanced/login/login.component.js.map +1 -1
  18. app-rn-runtime/components/advanced/network-info-toaster/network-info-toaster.component.js +17 -16
  19. app-rn-runtime/components/advanced/network-info-toaster/network-info-toaster.component.js.map +1 -1
  20. app-rn-runtime/components/advanced/webview/webview.component.js +28 -11
  21. app-rn-runtime/components/advanced/webview/webview.component.js.map +1 -1
  22. app-rn-runtime/components/advanced/webview/webview.props.js +0 -1
  23. app-rn-runtime/components/advanced/webview/webview.props.js.map +1 -1
  24. app-rn-runtime/components/basic/anchor/anchor.component.js +7 -5
  25. app-rn-runtime/components/basic/anchor/anchor.component.js.map +1 -1
  26. app-rn-runtime/components/basic/animatedview.component.js +50 -0
  27. app-rn-runtime/components/basic/animatedview.component.js.map +1 -1
  28. app-rn-runtime/components/basic/audio/audio.component.js +5 -0
  29. app-rn-runtime/components/basic/audio/audio.component.js.map +1 -1
  30. app-rn-runtime/components/basic/button/button.component.js +20 -7
  31. app-rn-runtime/components/basic/button/button.component.js.map +1 -1
  32. app-rn-runtime/components/basic/button/button.styles.js +15 -5
  33. app-rn-runtime/components/basic/button/button.styles.js.map +1 -1
  34. app-rn-runtime/components/basic/buttongroup/buttongroup.styles.js +11 -5
  35. app-rn-runtime/components/basic/buttongroup/buttongroup.styles.js.map +1 -1
  36. app-rn-runtime/components/basic/icon/icon.component.js +11 -5
  37. app-rn-runtime/components/basic/icon/icon.component.js.map +1 -1
  38. app-rn-runtime/components/basic/icon/icon.props.js +1 -0
  39. app-rn-runtime/components/basic/icon/icon.props.js.map +1 -1
  40. app-rn-runtime/components/basic/icon/icon.styles.js +2 -1
  41. app-rn-runtime/components/basic/icon/icon.styles.js.map +1 -1
  42. app-rn-runtime/components/basic/label/label.component.js +79 -11
  43. app-rn-runtime/components/basic/label/label.component.js.map +1 -1
  44. app-rn-runtime/components/basic/label/label.props.js +1 -0
  45. app-rn-runtime/components/basic/label/label.props.js.map +1 -1
  46. app-rn-runtime/components/basic/label/label.styles.js +5 -0
  47. app-rn-runtime/components/basic/label/label.styles.js.map +1 -1
  48. app-rn-runtime/components/basic/message/message.component.js +6 -3
  49. app-rn-runtime/components/basic/message/message.component.js.map +1 -1
  50. app-rn-runtime/components/basic/picture/picture.component.js +7 -5
  51. app-rn-runtime/components/basic/picture/picture.component.js.map +1 -1
  52. app-rn-runtime/components/basic/progress-bar/progress-bar.component.js +4 -3
  53. app-rn-runtime/components/basic/progress-bar/progress-bar.component.js.map +1 -1
  54. app-rn-runtime/components/basic/progress-bar/progress-bar.styles.js +1 -1
  55. app-rn-runtime/components/basic/progress-bar/progress-bar.styles.js.map +1 -1
  56. app-rn-runtime/components/basic/progress-circle/progress-circle.component.js +3 -2
  57. app-rn-runtime/components/basic/progress-circle/progress-circle.component.js.map +1 -1
  58. app-rn-runtime/components/basic/search/search.component.js +12 -6
  59. app-rn-runtime/components/basic/search/search.component.js.map +1 -1
  60. app-rn-runtime/components/basic/search/search.styles.js +11 -10
  61. app-rn-runtime/components/basic/search/search.styles.js.map +1 -1
  62. app-rn-runtime/components/basic/spinner/spinner.component.js +6 -2
  63. app-rn-runtime/components/basic/spinner/spinner.component.js.map +1 -1
  64. app-rn-runtime/components/basic/spinner/spinner.styles.js +3 -2
  65. app-rn-runtime/components/basic/spinner/spinner.styles.js.map +1 -1
  66. app-rn-runtime/components/basic/video/video.component.js +2 -1
  67. app-rn-runtime/components/basic/video/video.component.js.map +1 -1
  68. app-rn-runtime/components/chart/area-chart/area-chart.component.js +42 -14
  69. app-rn-runtime/components/chart/area-chart/area-chart.component.js.map +1 -1
  70. app-rn-runtime/components/chart/area-chart/area-chart.props.js +10 -1
  71. app-rn-runtime/components/chart/area-chart/area-chart.props.js.map +1 -1
  72. app-rn-runtime/components/chart/bar-chart/bar-chart.component.js +42 -4
  73. app-rn-runtime/components/chart/bar-chart/bar-chart.component.js.map +1 -1
  74. app-rn-runtime/components/chart/bar-chart/bar-chart.props.js +1 -2
  75. app-rn-runtime/components/chart/bar-chart/bar-chart.props.js.map +1 -1
  76. app-rn-runtime/components/chart/basechart.component.js +158 -46
  77. app-rn-runtime/components/chart/basechart.component.js.map +1 -1
  78. app-rn-runtime/components/chart/basechart.props.js +18 -4
  79. app-rn-runtime/components/chart/basechart.props.js.map +1 -1
  80. app-rn-runtime/components/chart/basechart.styles.js +44 -2
  81. app-rn-runtime/components/chart/basechart.styles.js.map +1 -1
  82. app-rn-runtime/components/chart/bubble-chart/bubble-chart.component.js +25 -3
  83. app-rn-runtime/components/chart/bubble-chart/bubble-chart.component.js.map +1 -1
  84. app-rn-runtime/components/chart/bubble-chart/bubble-chart.props.js +9 -1
  85. app-rn-runtime/components/chart/bubble-chart/bubble-chart.props.js.map +1 -1
  86. app-rn-runtime/components/chart/line-chart/line-chart.component.js +28 -6
  87. app-rn-runtime/components/chart/line-chart/line-chart.component.js.map +1 -1
  88. app-rn-runtime/components/chart/line-chart/line-chart.props.js +1 -0
  89. app-rn-runtime/components/chart/line-chart/line-chart.props.js.map +1 -1
  90. app-rn-runtime/components/chart/pie-chart/pie-chart.component.js +25 -3
  91. app-rn-runtime/components/chart/pie-chart/pie-chart.component.js.map +1 -1
  92. app-rn-runtime/components/chart/pie-chart/pie-chart.props.js +1 -0
  93. app-rn-runtime/components/chart/pie-chart/pie-chart.props.js.map +1 -1
  94. app-rn-runtime/components/chart/stack-chart/stack-chart.component.js +275 -0
  95. app-rn-runtime/components/chart/stack-chart/stack-chart.component.js.map +1 -0
  96. app-rn-runtime/components/chart/stack-chart/stack-chart.props.js +17 -0
  97. app-rn-runtime/components/chart/stack-chart/stack-chart.props.js.map +1 -0
  98. app-rn-runtime/components/chart/stack-chart/stack-chart.styles.js +7 -0
  99. app-rn-runtime/components/chart/stack-chart/stack-chart.styles.js.map +1 -0
  100. app-rn-runtime/components/container/accordion/accordion.component.js +22 -15
  101. app-rn-runtime/components/container/accordion/accordion.component.js.map +1 -1
  102. app-rn-runtime/components/container/accordion/accordionpane/accordionpane.component.js +6 -24
  103. app-rn-runtime/components/container/accordion/accordionpane/accordionpane.component.js.map +1 -1
  104. app-rn-runtime/components/container/container.component.js +14 -4
  105. app-rn-runtime/components/container/container.component.js.map +1 -1
  106. app-rn-runtime/components/container/container.props.js +1 -0
  107. app-rn-runtime/components/container/container.props.js.map +1 -1
  108. app-rn-runtime/components/container/panel/collapsible-pane.component.js +26 -0
  109. app-rn-runtime/components/container/panel/collapsible-pane.component.js.map +1 -0
  110. app-rn-runtime/components/container/panel/panel.component.js +44 -62
  111. app-rn-runtime/components/container/panel/panel.component.js.map +1 -1
  112. app-rn-runtime/components/container/panel/panel.styles.js +9 -2
  113. app-rn-runtime/components/container/panel/panel.styles.js.map +1 -1
  114. app-rn-runtime/components/container/partial-host.component.js +1 -1
  115. app-rn-runtime/components/container/partial-host.component.js.map +1 -1
  116. app-rn-runtime/components/container/tabs/tabheader/tabheader.component.js +29 -15
  117. app-rn-runtime/components/container/tabs/tabheader/tabheader.component.js.map +1 -1
  118. app-rn-runtime/components/container/tabs/tabheader/tabheader.styles.js +15 -10
  119. app-rn-runtime/components/container/tabs/tabheader/tabheader.styles.js.map +1 -1
  120. app-rn-runtime/components/container/tabs/tabpane/tabpane.component.js +1 -1
  121. app-rn-runtime/components/container/tabs/tabpane/tabpane.component.js.map +1 -1
  122. app-rn-runtime/components/container/tabs/tabs.component.js +18 -10
  123. app-rn-runtime/components/container/tabs/tabs.component.js.map +1 -1
  124. app-rn-runtime/components/container/tabs/tabs.styles.js +1 -0
  125. app-rn-runtime/components/container/tabs/tabs.styles.js.map +1 -1
  126. app-rn-runtime/components/container/tile/tile.component.js +3 -2
  127. app-rn-runtime/components/container/tile/tile.component.js.map +1 -1
  128. app-rn-runtime/components/container/wizard/wizard.component.js +139 -22
  129. app-rn-runtime/components/container/wizard/wizard.component.js.map +1 -1
  130. app-rn-runtime/components/container/wizard/wizard.props.js +4 -0
  131. app-rn-runtime/components/container/wizard/wizard.props.js.map +1 -1
  132. app-rn-runtime/components/container/wizard/wizard.styles.js +117 -6
  133. app-rn-runtime/components/container/wizard/wizard.styles.js.map +1 -1
  134. app-rn-runtime/components/container/wizard/wizardstep/wizardstep.component.js +22 -3
  135. app-rn-runtime/components/container/wizard/wizardstep/wizardstep.component.js.map +1 -1
  136. app-rn-runtime/components/container/wizard/wizardstep/wizardstep.props.js +4 -0
  137. app-rn-runtime/components/container/wizard/wizardstep/wizardstep.props.js.map +1 -1
  138. app-rn-runtime/components/data/card/card-content/card-content.component.js +1 -1
  139. app-rn-runtime/components/data/card/card-content/card-content.component.js.map +1 -1
  140. app-rn-runtime/components/data/card/card.component.js +3 -2
  141. app-rn-runtime/components/data/card/card.component.js.map +1 -1
  142. app-rn-runtime/components/data/form/form-action/form-action.component.js +1 -0
  143. app-rn-runtime/components/data/form/form-action/form-action.component.js.map +1 -1
  144. app-rn-runtime/components/data/form/form-field/form-field.component.js +9 -7
  145. app-rn-runtime/components/data/form/form-field/form-field.component.js.map +1 -1
  146. app-rn-runtime/components/data/form/form.component.js +12 -6
  147. app-rn-runtime/components/data/form/form.component.js.map +1 -1
  148. app-rn-runtime/components/data/list/list-template/list-template.component.js +15 -1
  149. app-rn-runtime/components/data/list/list-template/list-template.component.js.map +1 -1
  150. app-rn-runtime/components/data/list/list-template/list-template.styles.js +9 -1
  151. app-rn-runtime/components/data/list/list-template/list-template.styles.js.map +1 -1
  152. app-rn-runtime/components/data/list/list.component.js +93 -31
  153. app-rn-runtime/components/data/list/list.component.js.map +1 -1
  154. app-rn-runtime/components/data/list/list.props.js +7 -0
  155. app-rn-runtime/components/data/list/list.props.js.map +1 -1
  156. app-rn-runtime/components/data/list/list.styles.js +12 -5
  157. app-rn-runtime/components/data/list/list.styles.js.map +1 -1
  158. app-rn-runtime/components/device/barcodescanner/barcodescanner.component.js +1 -0
  159. app-rn-runtime/components/device/barcodescanner/barcodescanner.component.js.map +1 -1
  160. app-rn-runtime/components/device/barcodescanner/barcodescanner.styles.js +2 -1
  161. app-rn-runtime/components/device/barcodescanner/barcodescanner.styles.js.map +1 -1
  162. app-rn-runtime/components/device/camera/camera.component.js +1 -0
  163. app-rn-runtime/components/device/camera/camera.component.js.map +1 -1
  164. app-rn-runtime/components/device/camera/camera.styles.js +2 -1
  165. app-rn-runtime/components/device/camera/camera.styles.js.map +1 -1
  166. app-rn-runtime/components/dialogs/alertdialog/alertdialog.component.js +4 -1
  167. app-rn-runtime/components/dialogs/alertdialog/alertdialog.component.js.map +1 -1
  168. app-rn-runtime/components/dialogs/alertdialog/alertdialog.styles.js +9 -3
  169. app-rn-runtime/components/dialogs/alertdialog/alertdialog.styles.js.map +1 -1
  170. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.component.js +6 -2
  171. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.component.js.map +1 -1
  172. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.styles.js +10 -10
  173. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.styles.js.map +1 -1
  174. app-rn-runtime/components/dialogs/dialog/dialog.component.js +2 -0
  175. app-rn-runtime/components/dialogs/dialog/dialog.component.js.map +1 -1
  176. app-rn-runtime/components/dialogs/dialog/dialog.styles.js +25 -8
  177. app-rn-runtime/components/dialogs/dialog/dialog.styles.js.map +1 -1
  178. app-rn-runtime/components/dialogs/dialogcontent/dialogcontent.component.js +4 -2
  179. app-rn-runtime/components/dialogs/dialogcontent/dialogcontent.component.js.map +1 -1
  180. app-rn-runtime/components/dialogs/dialogcontent/dialogcontent.styles.js +2 -1
  181. app-rn-runtime/components/dialogs/dialogcontent/dialogcontent.styles.js.map +1 -1
  182. app-rn-runtime/components/input/baseinput/baseinput.component.js +6 -2
  183. app-rn-runtime/components/input/baseinput/baseinput.component.js.map +1 -1
  184. app-rn-runtime/components/input/basenumber/basenumber.component.js +45 -6
  185. app-rn-runtime/components/input/basenumber/basenumber.component.js.map +1 -1
  186. app-rn-runtime/components/input/basenumber/basenumber.props.js +1 -0
  187. app-rn-runtime/components/input/basenumber/basenumber.props.js.map +1 -1
  188. app-rn-runtime/components/input/calendar/calendar.component.js +4 -0
  189. app-rn-runtime/components/input/calendar/calendar.component.js.map +1 -1
  190. app-rn-runtime/components/input/calendar/calendar.styles.js +22 -11
  191. app-rn-runtime/components/input/calendar/calendar.styles.js.map +1 -1
  192. app-rn-runtime/components/input/calendar/views/month-view.js +4 -0
  193. app-rn-runtime/components/input/calendar/views/month-view.js.map +1 -1
  194. app-rn-runtime/components/input/checkbox/checkbox.component.js +6 -6
  195. app-rn-runtime/components/input/checkbox/checkbox.component.js.map +1 -1
  196. app-rn-runtime/components/input/checkboxset/checkboxset.component.js +14 -7
  197. app-rn-runtime/components/input/checkboxset/checkboxset.component.js.map +1 -1
  198. app-rn-runtime/components/input/checkboxset/checkboxset.styles.js +2 -1
  199. app-rn-runtime/components/input/checkboxset/checkboxset.styles.js.map +1 -1
  200. app-rn-runtime/components/input/chips/chips.component.js +15 -4
  201. app-rn-runtime/components/input/chips/chips.component.js.map +1 -1
  202. app-rn-runtime/components/input/chips/chips.styles.js +20 -12
  203. app-rn-runtime/components/input/chips/chips.styles.js.map +1 -1
  204. app-rn-runtime/components/input/composite/composite.component.js +8 -1
  205. app-rn-runtime/components/input/composite/composite.component.js.map +1 -1
  206. app-rn-runtime/components/input/composite/composite.props.js +1 -0
  207. app-rn-runtime/components/input/composite/composite.props.js.map +1 -1
  208. app-rn-runtime/components/input/composite/composite.styles.js +16 -1
  209. app-rn-runtime/components/input/composite/composite.styles.js.map +1 -1
  210. app-rn-runtime/components/input/currency/currency.component.js +21 -3
  211. app-rn-runtime/components/input/currency/currency.component.js.map +1 -1
  212. app-rn-runtime/components/input/currency/currency.props.js +1 -0
  213. app-rn-runtime/components/input/currency/currency.props.js.map +1 -1
  214. app-rn-runtime/components/input/currency/currency.styles.js +31 -5
  215. app-rn-runtime/components/input/currency/currency.styles.js.map +1 -1
  216. app-rn-runtime/components/input/epoch/base-datetime.component.js +32 -9
  217. app-rn-runtime/components/input/epoch/base-datetime.component.js.map +1 -1
  218. app-rn-runtime/components/input/epoch/date/date.component.js +8 -0
  219. app-rn-runtime/components/input/epoch/date/date.component.js.map +1 -1
  220. app-rn-runtime/components/input/epoch/date/date.styles.js +16 -0
  221. app-rn-runtime/components/input/epoch/date/date.styles.js.map +1 -1
  222. app-rn-runtime/components/input/epoch/datetime/datetime.component.js +8 -0
  223. app-rn-runtime/components/input/epoch/datetime/datetime.component.js.map +1 -1
  224. app-rn-runtime/components/input/epoch/datetime/datetime.props.js +1 -0
  225. app-rn-runtime/components/input/epoch/datetime/datetime.props.js.map +1 -1
  226. app-rn-runtime/components/input/epoch/datetime/datetime.styles.js +21 -1
  227. app-rn-runtime/components/input/epoch/datetime/datetime.styles.js.map +1 -1
  228. app-rn-runtime/components/input/epoch/time/time.component.js +8 -0
  229. app-rn-runtime/components/input/epoch/time/time.component.js.map +1 -1
  230. app-rn-runtime/components/input/epoch/time/time.styles.js +16 -0
  231. app-rn-runtime/components/input/epoch/time/time.styles.js.map +1 -1
  232. app-rn-runtime/components/input/fileupload/fileupload.component.js +1 -0
  233. app-rn-runtime/components/input/fileupload/fileupload.component.js.map +1 -1
  234. app-rn-runtime/components/input/number/number.component.js +16 -2
  235. app-rn-runtime/components/input/number/number.component.js.map +1 -1
  236. app-rn-runtime/components/input/number/number.props.js +1 -0
  237. app-rn-runtime/components/input/number/number.props.js.map +1 -1
  238. app-rn-runtime/components/input/number/number.styles.js +23 -2
  239. app-rn-runtime/components/input/number/number.styles.js.map +1 -1
  240. app-rn-runtime/components/input/radioset/radioset.component.js +13 -6
  241. app-rn-runtime/components/input/radioset/radioset.component.js.map +1 -1
  242. app-rn-runtime/components/input/radioset/radioset.props.js +6 -0
  243. app-rn-runtime/components/input/radioset/radioset.props.js.map +1 -1
  244. app-rn-runtime/components/input/radioset/radioset.styles.js +6 -9
  245. app-rn-runtime/components/input/radioset/radioset.styles.js.map +1 -1
  246. app-rn-runtime/components/input/rating/rating.component.js +2 -0
  247. app-rn-runtime/components/input/rating/rating.component.js.map +1 -1
  248. app-rn-runtime/components/input/select/select.component.js +17 -13
  249. app-rn-runtime/components/input/select/select.component.js.map +1 -1
  250. app-rn-runtime/components/input/select/select.styles.js +8 -4
  251. app-rn-runtime/components/input/select/select.styles.js.map +1 -1
  252. app-rn-runtime/components/input/slider/slider.component.js +99 -23
  253. app-rn-runtime/components/input/slider/slider.component.js.map +1 -1
  254. app-rn-runtime/components/input/slider/slider.styles.js +30 -3
  255. app-rn-runtime/components/input/slider/slider.styles.js.map +1 -1
  256. app-rn-runtime/components/input/switch/switch.component.js +11 -5
  257. app-rn-runtime/components/input/switch/switch.component.js.map +1 -1
  258. app-rn-runtime/components/input/switch/switch.styles.js +15 -9
  259. app-rn-runtime/components/input/switch/switch.styles.js.map +1 -1
  260. app-rn-runtime/components/input/text/text.component.js +12 -1
  261. app-rn-runtime/components/input/text/text.component.js.map +1 -1
  262. app-rn-runtime/components/input/text/text.props.js +1 -0
  263. app-rn-runtime/components/input/text/text.props.js.map +1 -1
  264. app-rn-runtime/components/input/text/text.styles.js +22 -1
  265. app-rn-runtime/components/input/text/text.styles.js.map +1 -1
  266. app-rn-runtime/components/input/textarea/textarea.component.js +12 -1
  267. app-rn-runtime/components/input/textarea/textarea.component.js.map +1 -1
  268. app-rn-runtime/components/input/textarea/textarea.props.js +1 -0
  269. app-rn-runtime/components/input/textarea/textarea.props.js.map +1 -1
  270. app-rn-runtime/components/input/textarea/textarea.styles.js +17 -0
  271. app-rn-runtime/components/input/textarea/textarea.styles.js.map +1 -1
  272. app-rn-runtime/components/input/toggle/toggle.component.js +44 -5
  273. app-rn-runtime/components/input/toggle/toggle.component.js.map +1 -1
  274. app-rn-runtime/components/input/toggle/toggle.styles.js +16 -11
  275. app-rn-runtime/components/input/toggle/toggle.styles.js.map +1 -1
  276. app-rn-runtime/components/navigation/appnavbar/appnavbar.component.js +16 -3
  277. app-rn-runtime/components/navigation/appnavbar/appnavbar.component.js.map +1 -1
  278. app-rn-runtime/components/navigation/appnavbar/appnavbar.styles.js +1 -1
  279. app-rn-runtime/components/navigation/appnavbar/appnavbar.styles.js.map +1 -1
  280. app-rn-runtime/components/navigation/basenav/basenav.component.js +2 -0
  281. app-rn-runtime/components/navigation/basenav/basenav.component.js.map +1 -1
  282. app-rn-runtime/components/navigation/menu/menu.component.js +5 -3
  283. app-rn-runtime/components/navigation/menu/menu.component.js.map +1 -1
  284. app-rn-runtime/components/navigation/menu/menu.styles.js +10 -6
  285. app-rn-runtime/components/navigation/menu/menu.styles.js.map +1 -1
  286. app-rn-runtime/components/navigation/navbar/navbar.component.js +7 -4
  287. app-rn-runtime/components/navigation/navbar/navbar.component.js.map +1 -1
  288. app-rn-runtime/components/navigation/navitem/navitem.component.js +6 -3
  289. app-rn-runtime/components/navigation/navitem/navitem.component.js.map +1 -1
  290. app-rn-runtime/components/navigation/navitem/navitem.styles.js +14 -10
  291. app-rn-runtime/components/navigation/navitem/navitem.styles.js.map +1 -1
  292. app-rn-runtime/components/navigation/popover/popover.component.js +10 -5
  293. app-rn-runtime/components/navigation/popover/popover.component.js.map +1 -1
  294. app-rn-runtime/components/navigation/popover/popover.props.js.map +1 -1
  295. app-rn-runtime/components/navigation/popover/popover.styles.js +8 -2
  296. app-rn-runtime/components/navigation/popover/popover.styles.js.map +1 -1
  297. app-rn-runtime/components/page/left-panel/left-panel.component.js +2 -2
  298. app-rn-runtime/components/page/left-panel/left-panel.component.js.map +1 -1
  299. app-rn-runtime/components/page/left-panel/left-panel.styles.js +6 -1
  300. app-rn-runtime/components/page/left-panel/left-panel.styles.js.map +1 -1
  301. app-rn-runtime/components/page/page-content/page-content.component.js +11 -3
  302. app-rn-runtime/components/page/page-content/page-content.component.js.map +1 -1
  303. app-rn-runtime/components/page/tabbar/curve.js +84 -0
  304. app-rn-runtime/components/page/tabbar/curve.js.map +1 -0
  305. app-rn-runtime/components/page/tabbar/tabbar.component.js +47 -12
  306. app-rn-runtime/components/page/tabbar/tabbar.component.js.map +1 -1
  307. app-rn-runtime/components/page/tabbar/tabbar.props.js +1 -0
  308. app-rn-runtime/components/page/tabbar/tabbar.props.js.map +1 -1
  309. app-rn-runtime/components/page/tabbar/tabbar.styles.js +76 -1
  310. app-rn-runtime/components/page/tabbar/tabbar.styles.js.map +1 -1
  311. app-rn-runtime/core/base.component.js +84 -37
  312. app-rn-runtime/core/base.component.js.map +1 -1
  313. app-rn-runtime/core/components/floatinglabel.component.js +45 -0
  314. app-rn-runtime/core/components/floatinglabel.component.js.map +1 -0
  315. app-rn-runtime/core/components/textinput.component.js +25 -2
  316. app-rn-runtime/core/components/textinput.component.js.map +1 -1
  317. app-rn-runtime/core/constant.service.js +22 -0
  318. app-rn-runtime/core/constant.service.js.map +1 -0
  319. app-rn-runtime/core/formatters.js +9 -2
  320. app-rn-runtime/core/formatters.js.map +1 -1
  321. app-rn-runtime/core/imageSizeEstimator.js +4 -0
  322. app-rn-runtime/core/imageSizeEstimator.js.map +1 -1
  323. app-rn-runtime/core/key.extractor.js +22 -0
  324. app-rn-runtime/core/key.extractor.js.map +1 -0
  325. app-rn-runtime/core/tappable.component.js +49 -12
  326. app-rn-runtime/core/tappable.component.js.map +1 -1
  327. app-rn-runtime/core/testid.provider.js +5 -0
  328. app-rn-runtime/core/testid.provider.js.map +1 -0
  329. app-rn-runtime/core/utils.js +16 -0
  330. app-rn-runtime/core/utils.js.map +1 -1
  331. app-rn-runtime/gestures/swipe.animation.js +90 -16
  332. app-rn-runtime/gestures/swipe.animation.js.map +1 -1
  333. app-rn-runtime/package.json +6 -3
  334. app-rn-runtime/runtime/App.js +55 -22
  335. app-rn-runtime/runtime/App.js.map +1 -1
  336. app-rn-runtime/runtime/base-fragment.component.js +27 -6
  337. app-rn-runtime/runtime/base-fragment.component.js.map +1 -1
  338. app-rn-runtime/runtime/base-page.component.js +25 -2
  339. app-rn-runtime/runtime/base-page.component.js.map +1 -1
  340. app-rn-runtime/runtime/services/app-i18n.service.js +7 -0
  341. app-rn-runtime/runtime/services/app-i18n.service.js.map +1 -1
  342. app-rn-runtime/runtime/services/app-modal.service.js +1 -1
  343. app-rn-runtime/runtime/services/app-modal.service.js.map +1 -1
  344. app-rn-runtime/runtime/services/app-security.service.js +14 -3
  345. app-rn-runtime/runtime/services/app-security.service.js.map +1 -1
  346. app-rn-runtime/runtime/services/device/camera-service.js +26 -9
  347. app-rn-runtime/runtime/services/device/camera-service.js.map +1 -1
  348. app-rn-runtime/runtime/services/device/scan-service.js +16 -2
  349. app-rn-runtime/runtime/services/device/scan-service.js.map +1 -1
  350. app-rn-runtime/runtime/services/webprocess.service.js +0 -1
  351. app-rn-runtime/runtime/services/webprocess.service.js.map +1 -1
  352. app-rn-runtime/styles/theme.js +66 -1
  353. app-rn-runtime/styles/theme.js.map +1 -1
  354. app-rn-runtime/styles/theme.variables.js +24 -3
  355. app-rn-runtime/styles/theme.variables.js.map +1 -1
  356. app-rn-runtime/variables/http.service.js +1 -1
  357. app-rn-runtime/variables/http.service.js.map +1 -1
  358. app-rn-runtime/variables/live-variable.js +1 -0
  359. app-rn-runtime/variables/live-variable.js.map +1 -1
  360. app-rn-runtime/variables/model-variable.js +13 -1
  361. app-rn-runtime/variables/model-variable.js.map +1 -1
  362. app-rn-runtime/variables/service-variable.js +1 -0
  363. app-rn-runtime/variables/service-variable.js.map +1 -1
@@ -1 +1 @@
1
- {"version":3,"names":["isNil","React","Animated","Easing","Gesture","GestureDetector","isWebPreviewMode","injector","Handlers","constructor","_defineProperty","Props","State","View","Component","props","Pan","Value","I18nService","get","state","isHorizontal","direction","threshold","bounds","gesture","maxPointers","minDistance","enabled","enableGestures","onChange","e","_this$props$handlers","_this$props$handlers2","handlers","position","setValue","isRTL","center","translationX","translationY","onEnd","_this$props$handlers3","_this$props$handlers4","onAnimation","goToLower","goToUpper","i18nService","isRTLLocale","_this$props$handlers5","_this$props$handlers6","setPosition","lower","then","_this$props$handlers7","_this$props$handlers8","onLower","_this$props$handlers9","_this$props$handlers10","upper","_this$props$handlers11","_this$props$handlers12","onUpper","value","Promise","reject","resolve","timing","useNativeDriver","toValue","duration","easing","out","linear","start","render","createElement","style","transform","translateX","translateY","children"],"sources":["swipe.animation.tsx"],"sourcesContent":["import { isNil } from 'lodash-es';\nimport React from 'react';\nimport { Animated, Easing, ViewStyle, I18nManager, Platform } from 'react-native';\nimport { Gesture, GestureDetector, GestureUpdateEvent } from 'react-native-gesture-handler';\nimport { isWebPreviewMode } from '@wavemaker/app-rn-runtime/core/utils';\nimport injector from '@wavemaker/app-rn-runtime/core/injector';\n\nexport class Handlers {\n bounds?: (g: GestureUpdateEvent<any>) => Bounds = null as any;\n onAnimation?: (g: GestureUpdateEvent<any>) => any = () => {};\n onLower?: (g: GestureUpdateEvent<any>) => any = () => {};\n onUpper?: (g: GestureUpdateEvent<any>) => any = () => {};\n}\n\nexport interface Bounds {\n upper?: number;\n center?: number;\n lower?: number;\n}\n\nexport class Props {\n threshold?: number = 30;\n direction?: 'horizontal' | 'vertical' = 'horizontal';\n handlers?: Handlers = {} as any;\n style?: ViewStyle = {} as any;\n children: any;\n enableGestures: any;\n}\n\nexport class State {\n threshold = 30;\n isHorizontal = false;\n bounds: Bounds = {} as any;\n}\n\nexport class View extends React.Component<Props, State> {\n\n private gesture = Gesture.Pan();\n private position = new Animated.Value(0);\n private i18nService = injector.I18nService.get();\n\n constructor(props: Props) {\n super(props);\n this.state = {\n isHorizontal: props.direction === 'horizontal',\n threshold: props.threshold || 30,\n bounds: {} as any\n } as State;\n this.gesture\n .maxPointers(1)\n .minDistance(this.state.threshold)\n .enabled(this.props.enableGestures && !isWebPreviewMode())\n .onChange(e => {\n const bounds = (this.props.handlers?.bounds && this.props.handlers?.bounds(e)) || {};\n this.position.setValue(\n (this.isRTL()?-bounds?.center! :bounds?.center || 0) +\n (this.state.isHorizontal ? e.translationX : e.translationY));\n })\n .onEnd(e => {\n this.props.handlers?.onAnimation && \n this.props.handlers?.onAnimation(e);\n if (e.translationX < 0) {\n this.isRTL()?this.goToLower(e):this.goToUpper(e);\n } else if (e.translationX > 0) {\n this.isRTL()?this.goToUpper(e):this.goToLower(e);\n }\n })\n\n }\n\n isRTL(){\n return this.i18nService.isRTLLocale();\n }\n\n goToLower(e?: any) {\n const bounds = (this.props.handlers?.bounds && this.props.handlers?.bounds(e)) || {};\n this.setPosition(bounds.lower)\n .then(() => {\n this.props.handlers?.onLower && \n this.props.handlers?.onLower(e);\n });\n }\n\n goToUpper(e?: any) {\n const bounds = (this.props.handlers?.bounds && this.props.handlers?.bounds(e)) || {};\n this.setPosition(bounds.upper)\n .then(() => {\n this.props.handlers?.onUpper && \n this.props.handlers?.onUpper(e);\n });\n }\n \n setPosition(value: number | undefined) {\n if (isNil(value)) {\n return Promise.reject();\n }\n return new Promise((resolve) => {\n Animated.timing(this.position, {\n useNativeDriver: true,\n toValue: this.isRTL()?-value:value,\n duration: 200,\n easing: Easing.out(Easing.linear)\n }).start(resolve);\n });\n }\n\n public render() {\n return (\n //@ts-ignore\n <GestureDetector gesture={this.gesture}>\n <Animated.View style={[\n this.props.style, \n {\n transform: this.state.isHorizontal ? [{\n translateX: this.position\n }] : [{\n translateY: this.position\n }]\n }]}>\n {this.props.children}\n </Animated.View>\n </GestureDetector>\n );\n }\n\n}"],"mappings":";;;AAAA,SAASA,KAAK,QAAQ,WAAW;AACjC,OAAOC,KAAK,MAAO,OAAO;AAC1B,SAASC,QAAQ,EAAEC,MAAM,QAA0C,cAAc;AACjF,SAASC,OAAO,EAAEC,eAAe,QAA4B,8BAA8B;AAC3F,SAASC,gBAAgB,QAAQ,sCAAsC;AACvE,OAAOC,QAAQ,MAAM,yCAAyC;AAE9D,OAAO,MAAMC,QAAQ,CAAC;EAAAC,YAAA;IAAAC,eAAA,iBACgC,IAAI;IAAAA,eAAA,sBACF,MAAM,CAAC,CAAC;IAAAA,eAAA,kBACX,MAAM,CAAC,CAAC;IAAAA,eAAA,kBACR,MAAM,CAAC,CAAC;EAAA;AAC7D;AAQA,OAAO,MAAMC,KAAK,CAAC;EAAAF,YAAA;IAAAC,eAAA,oBACM,EAAE;IAAAA,eAAA,oBACiB,YAAY;IAAAA,eAAA,mBAC9B,CAAC,CAAC;IAAAA,eAAA,gBACJ,CAAC,CAAC;IAAAA,eAAA;IAAAA,eAAA;EAAA;AAG1B;AAEA,OAAO,MAAME,KAAK,CAAC;EAAAH,YAAA;IAAAC,eAAA,oBACH,EAAE;IAAAA,eAAA,uBACC,KAAK;IAAAA,eAAA,iBACH,CAAC,CAAC;EAAA;AACvB;AAEA,OAAO,MAAMG,IAAI,SAASZ,KAAK,CAACa,SAAS,CAAe;EAMpDL,WAAWA,CAACM,KAAY,EAAE;IACtB,KAAK,CAACA,KAAK,CAAC;IAACL,eAAA,kBALCN,OAAO,CAACY,G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AAM,EAAEpE,MAAM,CAACqE,GAAG,CAACrE,MAAM,CAACsE,MAAM;MACpC,CAAC,CAAC,CAACC,KAAK,CAACR,OAAO,CAAC;IACrB,CAAC,CAAC;EACN;EAEOS,MAAMA,CAAA,EAAG;IACZ;MAAA;MACI;MACA1E,KAAA,CAAA2E,aAAA,CAACvE,eAAe;QAACoB,OAAO,EAAE,IAAI,CAACA;MAAQ,gBACnCxB,KAAA,CAAA2E,aAAA,CAAC1E,QAAQ,CAACW,IAAI;QAACgE,KAAK,EAAE,CAClB,IAAI,CAAC9D,KAAK,CAAC8D,KAAK,EAChB;UACIC,SAAS,EAAE,IAAI,CAAC1D,KAAK,CAACC,YAAY,GAAG,CAAC;YAClC0D,UAAU,EAAE,IAAI,CAAC5C;UACrB,CAAC,CAAC,GAAG,CAAC;YACF6C,UAAU,EAAE,IAAI,CAAC7C;UACrB,CAAC;QACL,CAAC;MAAE,GACF,IAAI,CAACpB,KAAK,CAACkE,QACD,CACF;IAAC;EAE1B;AAEJ"}
1
+ {"version":3,"names":["isNil","React","Animated","Easing","View","RNView","Gesture","GestureDetector","isWebPreviewMode","injector","Handlers","constructor","_defineProperty","Props","undefined","State","Number","MAX_VALUE","Component","props","Pan","Value","I18nService","get","state","isHorizontal","direction","threshold","bounds","gesture","maxPointers","minDistance","enabled","enableGestures","onChange","e","_this$props$handlers","_this$props$handlers2","handlers","d","translationX","translationY","phase","computePhase","center","lower","upper","animationPhase","setValue","position","isRTL","onEnd","_this$props$handlers3","_this$props$handlers4","onAnimation","goToLower","goToUpper","computeMaxScroll","_this$viewLayout2","max","childrenWidth","childrenLayout","reduce","s","v","width","childrenHeight","height","_this$viewLayout","viewLayout","setState","maxPosition","setChildrenLayout","event","index","nativeEvent","layout","setViewLayout","value","_this$props$handlers5","_this$props$handlers6","i18nService","isRTLLocale","_this$props$handlers7","_this$props$handlers8","setPosition","then","_this$props$handlers9","_this$props$handlers10","onLower","_this$props$handlers11","_this$props$handlers12","_this$props$handlers13","_this$props$handlers14","onUpper","Promise","reject","isNaN","Math","resolve","parallel","timing","useNativeDriver","toValue","duration","easing","out","linear","start","render","createElement","style","flexDirection","flexWrap","alignItems","transform","translateX","translateY","onLayout","bind","children","map","c","i","_this$props$style","key","slideMinWidth","minWidth","slideWidth"],"sources":["swipe.animation.tsx"],"sourcesContent":["import { isNil } from 'lodash-es';\nimport React from 'react';\nimport { Animated, Easing, View as RNView, ViewStyle, LayoutChangeEvent, LayoutRectangle, DimensionValue } from 'react-native';\nimport { Gesture, GestureDetector, GestureUpdateEvent } from 'react-native-gesture-handler';\nimport { isWebPreviewMode } from '@wavemaker/app-rn-runtime/core/utils';\nimport injector from '@wavemaker/app-rn-runtime/core/injector';\n\nexport class Handlers {\n bounds?: (g: GestureUpdateEvent<any>) => Bounds = null as any;\n onAnimation?: (g: GestureUpdateEvent<any>) => any = () => {};\n onLower?: (g: GestureUpdateEvent<any>) => any = () => {};\n onUpper?: (g: GestureUpdateEvent<any>) => any = () => {};\n computePhase?: (value: number) => number = null as any;\n}\n\nexport interface Bounds {\n upper?: number;\n center?: number;\n lower?: number;\n}\n\nexport class Props {\n threshold?: number = 30;\n direction?: 'horizontal' | 'vertical' = 'horizontal';\n handlers?: Handlers = {} as any;\n style?: ViewStyle = {} as any;\n children: any;\n enableGestures: any;\n slideWidth?: DimensionValue = '100%'; \n slideMinWidth?: DimensionValue = undefined; \n}\n\nexport class State {\n threshold = 30;\n isHorizontal = false;\n bounds: Bounds = {} as any;\n maxPosition = Number.MAX_VALUE;\n}\n\nexport class View extends React.Component<Props, State> {\n\n static defaultProps = new Props();\n\n private gesture = Gesture.Pan();\n private position = new Animated.Value(0);\n public animationPhase = new Animated.Value(0);\n private i18nService = injector.I18nService.get();\n private childrenLayout: LayoutRectangle[] = [];\n private viewLayout: LayoutRectangle = null as any;\n\n constructor(props: Props) {\n super(props);\n this.state = {\n isHorizontal: props.direction === 'horizontal',\n threshold: props.threshold || 30,\n bounds: {} as any\n } as State;\n this.gesture\n .maxPointers(1)\n .minDistance(this.state.threshold)\n .enabled(this.props.enableGestures && !isWebPreviewMode())\n .onChange(e => {\n const bounds = (this.props.handlers?.bounds && this.props.handlers?.bounds(e)) || {};\n const d = (this.state.isHorizontal ? e.translationX : e.translationY);\n let phase = this.computePhase(bounds?.center || 0);\n if (d && d < 0 && !isNil(bounds.center) && !isNil(bounds.lower)\n && bounds.center !== bounds.lower) {\n phase += (d / (bounds.center - bounds.lower)) || 0;\n } else if (d && d > 0 && !isNil(bounds.center) && !isNil(bounds.upper)\n && bounds.center !== bounds.upper) {\n phase += (d / (bounds.upper - bounds.center)) || 0;\n }\n this.animationPhase.setValue(phase);\n this.position.setValue(\n (this.isRTL()?-bounds?.center! :bounds?.center || 0) + d);\n })\n .onEnd(e => {\n this.props.handlers?.onAnimation && \n this.props.handlers?.onAnimation(e);\n if (e.translationX < 0) {\n this.isRTL()?this.goToLower(e):this.goToUpper(e);\n } else if (e.translationX > 0) {\n this.isRTL()?this.goToUpper(e):this.goToLower(e);\n }\n })\n\n }\n\n computeMaxScroll() {\n let max = Number.MAX_VALUE;\n const childrenWidth = this.childrenLayout.reduce((s, v) => s + v.width, 0);\n const childrenHeight = this.childrenLayout.reduce((s, v) => s + v.height, 0);\n if (this.props.direction === 'horizontal') {\n if (childrenWidth && this.viewLayout?.width) {\n max = childrenWidth - this.viewLayout.width;\n }\n } else if (childrenHeight && this.viewLayout?.height) {\n max = childrenHeight - this.viewLayout.height;\n }\n this.setState({maxPosition: -1 * max});\n }\n\n setChildrenLayout(event: LayoutChangeEvent, index: number) {\n this.childrenLayout[index] = event.nativeEvent.layout;\n this.computeMaxScroll();\n }\n\n setViewLayout(event: LayoutChangeEvent) {\n this.viewLayout = event.nativeEvent.layout;\n this.computeMaxScroll();\n }\n\n computePhase(value: number) {\n return (this.props.handlers?.computePhase && \n this.props.handlers?.computePhase(value)) || 0;\n }\n\n isRTL(){\n return this.i18nService.isRTLLocale();\n }\n\n goToLower(e?: any) {\n const bounds = (this.props.handlers?.bounds && this.props.handlers?.bounds(e)) || {};\n this.setPosition(bounds.lower)\n .then(() => {\n if (!isNil(bounds.lower) && bounds.center !== bounds.lower) {\n this.props.handlers?.onLower && \n this.props.handlers?.onLower(e);\n }\n });\n }\n\n goToUpper(e?: any) {\n const bounds = (this.props.handlers?.bounds && this.props.handlers?.bounds(e)) || {};\n this.setPosition(bounds.upper)\n .then(() => {\n if (!isNil(bounds.upper) && bounds.center !== bounds.upper) {\n this.props.handlers?.onUpper && \n this.props.handlers?.onUpper(e);\n }\n });\n }\n \n setPosition(value: number | undefined) {\n if (isNil(value)) {\n return Promise.reject();\n }\n let position = isNaN(this.state.maxPosition) ? value : Math.max(this.state.maxPosition, value);\n return new Promise((resolve) => {\n Animated.parallel([\n Animated.timing(this.animationPhase, {\n useNativeDriver: true,\n toValue: this.computePhase(value),\n duration: 200,\n easing: Easing.out(Easing.linear)\n }),\n Animated.timing(this.position, {\n useNativeDriver: true,\n toValue: (this.isRTL() ? -1: 1) * position,\n duration: 200,\n easing: Easing.out(Easing.linear)\n })\n ]).start(resolve);\n });\n }\n\n public render() {\n const isHorizontal = this.props.direction === 'horizontal';\n return (\n //@ts-ignore\n <GestureDetector gesture={this.gesture}>\n <Animated.View style={[\n isHorizontal ? {\n flexDirection: 'row',\n flexWrap: 'nowrap',\n alignItems: 'center',\n } : null,\n this.props.style, \n {\n transform: this.state.isHorizontal ? [{\n translateX: this.position\n }] : [{\n translateY: this.position\n }]\n }]} onLayout={this.setViewLayout.bind(this)}>\n {this.props.children.map((c: any, i: number) => {\n return (<RNView onLayout={(e) => this.setChildrenLayout(e, i)} key={c.key} \n style={[this.props.slideMinWidth ? {\n minWidth: this.props.slideMinWidth\n } : {\n width: this.props.slideWidth\n },\n this.props.style?.height === '100%' ? {\n height: '100%'\n } : null\n ]}>\n {c}\n </RNView>);\n })}\n </Animated.View>\n </GestureDetector>\n );\n }\n\n}"],"mappings":";;;AAAA,SAASA,KAAK,QAAQ,WAAW;AACjC,OAAO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AAK,CAACC,YAAY,GAAG,CAAC;YAClC2F,UAAU,EAAE,IAAI,CAACnE;UACrB,CAAC,CAAC,GAAG,CAAC;YACFoE,UAAU,EAAE,IAAI,CAACpE;UACrB,CAAC;QACL,CAAC,CAAE;QAACqE,QAAQ,EAAE,IAAI,CAACzC,aAAa,CAAC0C,IAAI,CAAC,IAAI;MAAE,GAC3C,IAAI,CAACpG,KAAK,CAACqG,QAAQ,CAACC,GAAG,CAAC,CAACC,CAAM,EAAEC,CAAS,KAAK;QAAA,IAAAC,iBAAA;QAC5C,oBAAQ3H,KAAA,CAAA6G,aAAA,CAACzG,MAAM;UAACiH,QAAQ,EAAGnF,CAAC,IAAK,IAAI,CAACqC,iBAAiB,CAACrC,CAAC,EAAEwF,CAAC,CAAE;UAACE,GAAG,EAAEH,CAAC,CAACG,GAAI;UACtEd,KAAK,EAAE,CAAC,IAAI,CAAC5F,KAAK,CAAC2G,aAAa,GAAG;YAC/BC,QAAQ,EAAE,IAAI,CAAC5G,KAAK,CAAC2G;UACzB,CAAC,GAAG;YACA7D,KAAK,EAAE,IAAI,CAAC9C,KAAK,CAAC6G;UACtB,CAAC,EACD,EAAAJ,iBAAA,OAAI,CAACzG,KAAK,CAAC4F,KAAK,cAAAa,iBAAA,uBAAhBA,iBAAA,CAAkBzD,MAAM,MAAK,MAAM,GAAG;YAClCA,MAAM,EAAE;UACZ,CAAC,GAAG,IAAI;QACV,GACGuD,CACG,CAAC;MACb,CAAC,CACU,CACF;IAAC;EAE1B;AAEJ;AAAC9G,eAAA,CArKYR,IAAI,kBAES,IAAIS,KAAK,CAAC,CAAC"}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wavemaker/app-rn-runtime",
3
- "version": "11.5.0-next.40301",
3
+ "version": "11.5.0-next.NULL",
4
4
  "description": "''",
5
5
  "main": "index",
6
6
  "module": "index",
@@ -49,11 +49,13 @@
49
49
  "@react-navigation/native": "6.1.7",
50
50
  "@react-navigation/stack": "^6.3.7",
51
51
  "@types/lodash-es": "^4.17.6",
52
- "@wavemaker/variables": "11.5.0-next.40301",
52
+ "@wavemaker/variables": "11.5.0-next.NULL",
53
53
  "axios": "^1.4.0",
54
54
  "color": "4.2.3",
55
55
  "cross-env": "^5.2.0",
56
56
  "css-mediaquery": "^0.1.2",
57
+ "d3-shape": "^3.2.0",
58
+ "expo-application": "^5.4.0",
57
59
  "expo-font": "11.4.0",
58
60
  "expo-linear-gradient": "12.3.0",
59
61
  "expo-modules-core": "~1.1.0",
@@ -69,6 +71,7 @@
69
71
  "react-native-paper-dates": "^0.8.0",
70
72
  "react-native-reanimated": "3.3.0",
71
73
  "react-native-screens": "3.22.0",
74
+ "react-native-size-scaling": "^0.5.1",
72
75
  "react-native-snap-carousel": "3.9.1",
73
76
  "react-native-svg": "13.9.0",
74
77
  "react-native-web": "0.18.12",
@@ -127,7 +130,7 @@
127
130
  "typescript": "^5.1.3",
128
131
  "victory-native": "36.6.11",
129
132
  "yargs": "^16.2.0",
130
- "@wavemaker/variables": "11.5.0-next.40301"
133
+ "@wavemaker/variables": "11.5.0-next.NULL"
131
134
  },
132
135
  "jest": {
133
136
  "preset": "react-native",
@@ -3,7 +3,7 @@ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typ
3
3
  function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
4
4
  import React from 'react';
5
5
  import axios from 'axios';
6
- import { Platform, TouchableOpacity, View, StatusBar } from 'react-native';
6
+ import { Platform, TouchableOpacity, View, StatusBar, KeyboardAvoidingView } from 'react-native';
7
7
  import ProtoTypes from 'prop-types';
8
8
  import { SafeAreaProvider, SafeAreaInsetsContext, SafeAreaView } from 'react-native-safe-area-context';
9
9
  import { DefaultTheme, Provider as PaperProvider } from 'react-native-paper';
@@ -12,8 +12,10 @@ import { NativeModulesProxy } from 'expo-modules-core';
12
12
  import * as WebBrowser from 'expo-web-browser';
13
13
  import { get, last } from 'lodash';
14
14
  import { RENDER_LOGGER } from '@wavemaker/app-rn-runtime/core/logger';
15
+ import EventNotifier from '@wavemaker/app-rn-runtime/core/event-notifier';
15
16
  import { ThemeProvider } from '@wavemaker/app-rn-runtime/styles/theme';
16
17
  import StorageService from '@wavemaker/app-rn-runtime/core/storage.service';
18
+ import ConstantService from '@wavemaker/app-rn-runtime/core/constant.service';
17
19
  import injector from '@wavemaker/app-rn-runtime/core/injector';
18
20
  import formatters from '@wavemaker/app-rn-runtime/core/formatters';
19
21
  import { deepCopy, isWebPreviewMode } from '@wavemaker/app-rn-runtime/core/utils';
@@ -27,6 +29,7 @@ import WmNetworkInfoToaster from '@wavemaker/app-rn-runtime/components/advanced/
27
29
  import ThemeVariables from '@wavemaker/app-rn-runtime/styles/theme.variables';
28
30
  import WmMessage from '@wavemaker/app-rn-runtime/components/basic/message/message.component';
29
31
  import { Animatedview } from '@wavemaker/app-rn-runtime/components/basic/animatedview.component';
32
+ import AppI18nService from '@wavemaker/app-rn-runtime/runtime/services/app-i18n.service';
30
33
  import { Watcher } from './watcher';
31
34
  import { preparePatch } from './lib-patch';
32
35
  import AppDisplayManagerService from './services/app-display-manager.service';
@@ -73,6 +76,7 @@ class DrawerImpl {
73
76
  }
74
77
  const SUPPORTED_SERVICES = {
75
78
  Utils: Utils,
79
+ CONSTANTS: ConstantService,
76
80
  StorageService: StorageService,
77
81
  AppDisplayManagerService: AppDisplayManagerService
78
82
  };
@@ -86,6 +90,7 @@ export default class BaseApp extends React.Component {
86
90
  _defineProperty(this, "onAppVariablesReady", () => {});
87
91
  _defineProperty(this, "isStarted", false);
88
92
  _defineProperty(this, "appConfig", injector.get('APP_CONFIG'));
93
+ _defineProperty(this, "eventNotifier", new EventNotifier());
89
94
  _defineProperty(this, "baseUrl", '');
90
95
  _defineProperty(this, "targetPlatform", 'NATIVE_MOBILE');
91
96
  _defineProperty(this, "cleanup", []);
@@ -141,6 +146,18 @@ export default class BaseApp extends React.Component {
141
146
  }
142
147
  };
143
148
  }
149
+ subscribe(event, fn) {
150
+ return this.eventNotifier.subscribe(event, fn);
151
+ }
152
+ notify(event) {
153
+ for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
154
+ args[_key - 1] = arguments[_key];
155
+ }
156
+ return this.eventNotifier.notify(event, args);
157
+ }
158
+ get activePage() {
159
+ return this.appConfig.currentPage;
160
+ }
144
161
  goToPage(pageName, params) {
145
162
  var _this$appConfig$curre2;
146
163
  return (_this$appConfig$curre2 = this.appConfig.currentPage) === null || _this$appConfig$curre2 === void 0 ? void 0 : _this$appConfig$curre2.goToPage(pageName, params);
@@ -177,6 +194,9 @@ export default class BaseApp extends React.Component {
177
194
  }
178
195
  }
179
196
  onPageReady(activePageName, activePageScope) {}
197
+ setTimezone(timezone) {
198
+ AppI18nService.setTimezone(timezone);
199
+ }
180
200
  get spinner() {
181
201
  return AppSpinnerService;
182
202
  }
@@ -210,7 +230,7 @@ export default class BaseApp extends React.Component {
210
230
  this.onServiceSuccess(response.data, response);
211
231
  return response;
212
232
  }, error => {
213
- var _errorDetails, _errorDetails2, _error$response, _error$response2, _error$response3;
233
+ var _errorDetails, _errorDetails2, _error$response, _error$response2, _error$response3, _error$response4;
214
234
  let errorDetails = error.response,
215
235
  errMsg;
216
236
  errorDetails = getValidJSON((_errorDetails = errorDetails) === null || _errorDetails === void 0 ? void 0 : _errorDetails.data) || ((_errorDetails2 = errorDetails) === null || _errorDetails2 === void 0 ? void 0 : _errorDetails2.data);
@@ -222,7 +242,7 @@ export default class BaseApp extends React.Component {
222
242
  error.message = errMsg;
223
243
  console.error(`Error ${errMsg} recieved from ${(_error$response = error.response) === null || _error$response === void 0 || (_error$response = _error$response.config) === null || _error$response === void 0 ? void 0 : _error$response.url}`);
224
244
  this.onServiceError(error.message, error);
225
- if ((_error$response2 = error.response) !== null && _error$response2 !== void 0 && (_error$response2 = _error$response2.config.url) !== null && _error$response2 !== void 0 && _error$response2.startsWith(this.appConfig.url) && ((_error$response3 = error.response) === null || _error$response3 === void 0 ? void 0 : _error$response3.status) === 401) {
245
+ if ((_error$response2 = error.response) !== null && _error$response2 !== void 0 && (_error$response2 = _error$response2.config.url) !== null && _error$response2 !== void 0 && _error$response2.startsWith(this.appConfig.url) && !((_error$response3 = error.response) !== null && _error$response3 !== void 0 && (_error$response3 = _error$response3.config.url) !== null && _error$response3 !== void 0 && _error$response3.includes('/services/')) && ((_error$response4 = error.response) === null || _error$response4 === void 0 ? void 0 : _error$response4.status) === 401) {
226
246
  var _this$appConfig$curre5, _this$appConfig$curre6;
227
247
  ((_this$appConfig$curre5 = this.appConfig.currentPage) === null || _this$appConfig$curre5 === void 0 ? void 0 : _this$appConfig$curre5.pageName) !== 'Login' && ((_this$appConfig$curre6 = this.appConfig.currentPage) === null || _this$appConfig$curre6 === void 0 ? void 0 : _this$appConfig$curre6.goToPage('Login'));
228
248
  }
@@ -241,11 +261,14 @@ export default class BaseApp extends React.Component {
241
261
  }
242
262
  }
243
263
  }
264
+ triggerStartUpVariables() {
265
+ return Promise.all(this.startUpVariables.map(s => this.Variables[s] && this.Variables[s].invoke())).catch(() => {});
266
+ }
244
267
  componentDidMount() {
245
268
  AppSpinnerService.show({
246
269
  spinner: this.appConfig.spinner
247
270
  });
248
- Promise.all(this.startUpVariables.map(s => this.Variables[s] && this.Variables[s].invoke())).catch(() => {}).then(() => {
271
+ this.triggerStartUpVariables().then(() => {
249
272
  this.onAppVariablesReady();
250
273
  this.isStarted = true;
251
274
  this.forceUpdate();
@@ -286,22 +309,27 @@ export default class BaseApp extends React.Component {
286
309
  watcher: this.watcher,
287
310
  render: watch => {
288
311
  watch(() => AppToastService.refreshCount);
289
- return /*#__PURE__*/React.createElement(React.Fragment, null, AppToastService.toastsOpened.map((o, i) => this.getProviders( /*#__PURE__*/React.createElement(View, {
290
- key: i,
291
- style: [{
292
- position: 'absolute',
293
- width: '100%',
294
- bottom: 0,
295
- elevation: o.elevationIndex,
296
- zIndex: o.elevationIndex
297
- }, o.styles]
298
- }, /*#__PURE__*/React.createElement(TouchableOpacity, {
299
- onPress: () => o.onClick && o.onClick()
300
- }, o.content, o.text && /*#__PURE__*/React.createElement(WmMessage, {
301
- type: o.type,
302
- caption: o.text,
303
- hideclose: true
304
- }))))));
312
+ return /*#__PURE__*/React.createElement(React.Fragment, null, AppToastService.toastsOpened.map((o, i) => {
313
+ return this.getProviders( /*#__PURE__*/React.createElement(ThemeProvider, {
314
+ value: this.appConfig.theme
315
+ }, /*#__PURE__*/React.createElement(View, {
316
+ key: i,
317
+ style: [{
318
+ position: 'absolute',
319
+ width: '100%',
320
+ bottom: 0,
321
+ elevation: o.elevationIndex,
322
+ zIndex: o.elevationIndex
323
+ }, o.styles]
324
+ }, /*#__PURE__*/React.createElement(TouchableOpacity, {
325
+ onPress: () => o.onClick && o.onClick()
326
+ }, o.content, o.text && /*#__PURE__*/React.createElement(WmMessage, {
327
+ name: "message" + i,
328
+ type: o.type,
329
+ caption: o.text,
330
+ hideclose: true
331
+ })))));
332
+ }));
305
333
  }
306
334
  });
307
335
  }
@@ -409,7 +437,12 @@ export default class BaseApp extends React.Component {
409
437
  style: {
410
438
  flex: 1
411
439
  }
412
- }, /*#__PURE__*/React.createElement(StatusBar, null), /*#__PURE__*/React.createElement(FixedViewContainer, null, /*#__PURE__*/React.createElement(View, {
440
+ }, /*#__PURE__*/React.createElement(StatusBar, null), /*#__PURE__*/React.createElement(FixedViewContainer, null, /*#__PURE__*/React.createElement(KeyboardAvoidingView, {
441
+ behavior: Platform.OS === "ios" ? "padding" : undefined,
442
+ style: {
443
+ flex: 1
444
+ }
445
+ }, /*#__PURE__*/React.createElement(View, {
413
446
  style: styles.container
414
447
  }, /*#__PURE__*/React.createElement(AppNavigator, {
415
448
  app: _this2,
@@ -418,7 +451,7 @@ export default class BaseApp extends React.Component {
418
451
  hideDrawer: ((_this2$appConfig$draw = _this2.appConfig.drawer) === null || _this2$appConfig$draw === void 0 ? void 0 : _this2$appConfig$draw.getContent()) === null,
419
452
  drawerContent: () => _this2.appConfig.drawer ? _this2.getProviders(_this2.appConfig.drawer.getContent()) : null,
420
453
  drawerAnimation: (_this2$appConfig$draw2 = _this2.appConfig.drawer) === null || _this2$appConfig$draw2 === void 0 ? void 0 : _this2$appConfig$draw2.getAnimation()
421
- }), commonPartial, _this2.renderToasters(), _this2.renderDialogs(), _this2.renderDisplayManager()), /*#__PURE__*/React.createElement(WmNetworkInfoToaster, {
454
+ }), commonPartial, _this2.renderToasters(), _this2.renderDialogs(), _this2.renderDisplayManager())), /*#__PURE__*/React.createElement(WmNetworkInfoToaster, {
422
455
  appLocale: _this2.appConfig.appLocale
423
456
  }))));
424
457
  }))));
@@ -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","_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,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Opacity","View","StatusBar","KeyboardAvoidingView","ProtoTypes","SafeAreaProvider","SafeAreaInsetsContext","SafeAreaView","DefaultTheme","Provider","PaperProvider","Linking","NativeModulesProxy","WebBrowser","get","last","RENDER_LOGGER","EventNotifier","ThemeProvider","StorageService","ConstantService","injector","formatters","deepCopy","isWebPreviewMode","Utils","ModalProvider","FixedViewContainer","ToastProvider","NavigationServiceProvider","PartialProvider","WmNetworkInfoToaster","ThemeVariables","WmMessage","Animatedview","AppI18nService","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","CONSTANTS","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","subscribe","event","fn","eventNotifier","notify","_len","args","Array","_key","activePage","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","setTimezone","timezone","openBrowser","window","open","startsWith","target","openBrowserAsync","openURL","resolve","axiosInterceptorIds","interceptors","request","use","headers","console","log","_errorDetails","_errorDetails2","_error$response","_error$response2","_error$response3","_error$response4","errorDetails","errMsg","errors","message","includes","status","_this$appConfig$curre5","_this$appConfig$curre6","eval","failOnError","call","e","triggerStartUpVariables","all","startUpVariables","map","s","Variables","invoke","catch","componentDidMount","show","then","onAppVariablesReady","isStarted","startUpActions","a","Actions","componentWillUnmount","id","eject","cleanup","forEach","getProviders","createElement","value","renderToasters","toastsOpened","render","watch","refreshCount","Fragment","o","i","theme","position","width","bottom","elevation","elevationIndex","zIndex","styles","onPress","onClick","text","name","type","caption","hideclose","renderDialogs","_last","modalsOpened","animatedRefs","modalOptions","onStartShouldSetResponder","onResponderEnd","isModal","hideModal","appModal","centered","centeredModal","modalStyle","entryanimation","ref","animatedRef","appModalContent","contentStyle","evt","stopPropagation","renderDisplayManager","displayOptions","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","behavior","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, KeyboardAvoidingView } 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 EventNotifier from '@wavemaker/app-rn-runtime/core/event-notifier';\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 ConstantService from '@wavemaker/app-rn-runtime/core/constant.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';\nimport AppI18nService from '@wavemaker/app-rn-runtime/runtime/services/app-i18n.service';\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 CONSTANTS: ConstantService,\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 private eventNotifier = new EventNotifier();\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 subscribe(event: string, fn: Function) {\n return this.eventNotifier.subscribe(event, fn);\n }\n\n notify(event: string, ...args: any) {\n return this.eventNotifier.notify(event, args);\n }\n\n get activePage() {\n return this.appConfig.currentPage;\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 setTimezone(timezone: any){\n AppI18nService.setTimezone(timezone);\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?.config.url?.includes('/services/') && 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 triggerStartUpVariables() {\n return Promise.all(this.startUpVariables.map(s => this.Variables[s] && this.Variables[s].invoke()))\n .catch(() => {});\n }\n\n componentDidMount() {\n AppSpinnerService.show({\n spinner: this.appConfig.spinner\n });\n this.triggerStartUpVariables()\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 return this.getProviders((\n <ThemeProvider value={this.appConfig.theme}>\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 name={\"message\"+ i} type={o.type} caption={o.text} hideclose={true}></WmMessage>}\n </TouchableOpacity>\n </View>\n </ThemeProvider>\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 <KeyboardAvoidingView behavior={Platform.OS === \"ios\" ? \"padding\" : undefined}\n style={{ flex: 1 }}>\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 </KeyboardAvoidingView>\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,gB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Na,aAAa,EAAE,KAAK;IACpBC,cAAc,EAAE,QAAQ;IACxBF,UAAU,EAAE,QAAQ;IACpBG,eAAe,EAAE,oBAAoB;IACrCC,MAAM,EAAE;EACV,CAAC;EACDrC,oBAAoB,EAAE;IACpBpC,QAAQ,EAAE,UAAU;IACpBuE,cAAc,EAAE,QAAQ;IACxBtE,KAAK,EAAE,MAAM;IACbyD,IAAI,EAAE,CAAC;IACPC,KAAK,EAAE,CAAC;IACRF,GAAG,EAAE,CAAC;IACNvD,MAAM,EAAC;EACT;AACF,CAAC"}
@@ -4,6 +4,7 @@ function _toPrimitive(input, hint) { if (typeof input !== "object" || input ===
4
4
  import React from 'react';
5
5
  import { Text } from 'react-native';
6
6
  import { get, filter, isNil } from 'lodash';
7
+ import { TestIdPrefixProvider, TextIdPrefixConsumer } from '@wavemaker/app-rn-runtime/core/testid.provider';
7
8
  import injector from '@wavemaker/app-rn-runtime/core/injector';
8
9
  import { toBoolean, toNumber, isFullPathUrl } from '@wavemaker/app-rn-runtime/core/utils';
9
10
  import { BaseComponent, BaseProps } from '@wavemaker/app-rn-runtime/core/base.component';
@@ -95,13 +96,24 @@ export default class BaseFragment extends BaseComponent {
95
96
  }
96
97
  onComponentInit(w) {
97
98
  const id = w.props.id || w.props.name;
99
+ let formWidgets, formFields, formActions;
98
100
  if (w instanceof WmForm) {
99
101
  if (!this.Widgets[id]) {
100
102
  this.Widgets[id] = w;
101
103
  }
102
- const formWidgets = this.Widgets[id].formWidgets;
103
- const formFields = this.Widgets[id].formFields;
104
- const formActions = this.Widgets[id].buttonArray;
104
+ if (w.props.id) {
105
+ const name = w.props.name;
106
+ formWidgets = this.Widgets[name].formWidgets;
107
+ formFields = this.Widgets[name].formFields;
108
+ formActions = this.Widgets[name].buttonArray;
109
+ this.Widgets[name].formFields = [];
110
+ this.Widgets[name].buttonArray = [];
111
+ this.Widgets[name].formWidgets = {};
112
+ } else {
113
+ formWidgets = this.Widgets[id].formWidgets;
114
+ formFields = this.Widgets[id].formFields;
115
+ formActions = this.Widgets[id].buttonArray;
116
+ }
105
117
  this.Widgets[id] = w;
106
118
  if (w.parentFormRef) {
107
119
  let pid = w.parentFormRef.props.id || w.parentFormRef.props.name;
@@ -312,6 +324,10 @@ export default class BaseFragment extends BaseComponent {
312
324
  super.forceUpdate();
313
325
  Object.values(this.fragments).forEach(f => f.forceUpdate());
314
326
  }
327
+ generateTestIdPrefix() {
328
+ const testId = this.getTestId();
329
+ return testId && testId.split('').reduce((a, v, i) => a + v.charCodeAt(0) * (i + 1), 0) + '';
330
+ }
315
331
  render() {
316
332
  if (this.startUpVariablesLoaded) {
317
333
  this.autoUpdateVariables.forEach(value => {
@@ -321,9 +337,14 @@ export default class BaseFragment extends BaseComponent {
321
337
  }
322
338
  return this.isVisible() ? /*#__PURE__*/React.createElement(ThemeProvider, {
323
339
  value: this.theme
324
- }, /*#__PURE__*/React.createElement(ToastConsumer, null, toastService => {
325
- this.toaster = toastService;
326
- return this.renderWidget(this.props);
340
+ }, /*#__PURE__*/React.createElement(TextIdPrefixConsumer, null, testIdPrefix => {
341
+ this.testIdPrefix = testIdPrefix || '';
342
+ return /*#__PURE__*/React.createElement(TestIdPrefixProvider, {
343
+ value: this.generateTestIdPrefix() || ''
344
+ }, /*#__PURE__*/React.createElement(ToastConsumer, null, toastService => {
345
+ this.toaster = toastService;
346
+ return this.renderWidget(this.props);
347
+ }));
327
348
  })) : null;
328
349
  }
329
350
  }