@wavemaker/app-rn-runtime 11.7.0-rc.161 → 11.7.0-rc.162

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 (744) hide show
  1. app-rn-runtime/actions/base-action.js.map +1 -1
  2. app-rn-runtime/actions/index.js.map +1 -1
  3. app-rn-runtime/actions/login-action.js.map +1 -1
  4. app-rn-runtime/actions/logout-action.js.map +1 -1
  5. app-rn-runtime/actions/navigation-action.js +4 -4
  6. app-rn-runtime/actions/navigation-action.js.map +1 -1
  7. app-rn-runtime/actions/notification-action.js +3 -4
  8. app-rn-runtime/actions/notification-action.js.map +1 -1
  9. app-rn-runtime/actions/timer-action.js +2 -2
  10. app-rn-runtime/actions/timer-action.js.map +1 -1
  11. app-rn-runtime/components/advanced/carousel/carousel-content/carousel-content.component.js.map +1 -1
  12. app-rn-runtime/components/advanced/carousel/carousel-content/carousel-content.props.js +4 -4
  13. app-rn-runtime/components/advanced/carousel/carousel-content/carousel-content.props.js.map +1 -1
  14. app-rn-runtime/components/advanced/carousel/carousel-content/carousel-content.styles.js.map +1 -1
  15. app-rn-runtime/components/advanced/carousel/carousel-template/carousel-template.component.js.map +1 -1
  16. app-rn-runtime/components/advanced/carousel/carousel-template/carousel-template.props.js +4 -4
  17. app-rn-runtime/components/advanced/carousel/carousel-template/carousel-template.props.js.map +1 -1
  18. app-rn-runtime/components/advanced/carousel/carousel-template/carousel-template.styles.js.map +1 -1
  19. app-rn-runtime/components/advanced/carousel/carousel.component.js +62 -27
  20. app-rn-runtime/components/advanced/carousel/carousel.component.js.map +1 -1
  21. app-rn-runtime/components/advanced/carousel/carousel.props.js +5 -4
  22. app-rn-runtime/components/advanced/carousel/carousel.props.js.map +1 -1
  23. app-rn-runtime/components/advanced/carousel/carousel.styles.js +15 -0
  24. app-rn-runtime/components/advanced/carousel/carousel.styles.js.map +1 -1
  25. app-rn-runtime/components/advanced/login/login.component.js +4 -4
  26. app-rn-runtime/components/advanced/login/login.component.js.map +1 -1
  27. app-rn-runtime/components/advanced/login/login.props.js +4 -4
  28. app-rn-runtime/components/advanced/login/login.props.js.map +1 -1
  29. app-rn-runtime/components/advanced/login/login.styles.js.map +1 -1
  30. app-rn-runtime/components/advanced/network-info-toaster/network-info-toaster.component.js +4 -4
  31. app-rn-runtime/components/advanced/network-info-toaster/network-info-toaster.component.js.map +1 -1
  32. app-rn-runtime/components/advanced/network-info-toaster/network-info-toaster.props.js +4 -4
  33. app-rn-runtime/components/advanced/network-info-toaster/network-info-toaster.props.js.map +1 -1
  34. app-rn-runtime/components/advanced/network-info-toaster/network-info-toaster.styles.js.map +1 -1
  35. app-rn-runtime/components/advanced/webview/webview.component.js +12 -8
  36. app-rn-runtime/components/advanced/webview/webview.component.js.map +1 -1
  37. app-rn-runtime/components/advanced/webview/webview.props.js +5 -5
  38. app-rn-runtime/components/advanced/webview/webview.props.js.map +1 -1
  39. app-rn-runtime/components/advanced/webview/webview.styles.js.map +1 -1
  40. app-rn-runtime/components/basic/anchor/anchor.component.js +17 -5
  41. app-rn-runtime/components/basic/anchor/anchor.component.js.map +1 -1
  42. app-rn-runtime/components/basic/anchor/anchor.props.js +5 -4
  43. app-rn-runtime/components/basic/anchor/anchor.props.js.map +1 -1
  44. app-rn-runtime/components/basic/anchor/anchor.styles.js +3 -0
  45. app-rn-runtime/components/basic/anchor/anchor.styles.js.map +1 -1
  46. app-rn-runtime/components/basic/animatedview.component.js +10 -4
  47. app-rn-runtime/components/basic/animatedview.component.js.map +1 -1
  48. app-rn-runtime/components/basic/audio/audio.component.js +8 -9
  49. app-rn-runtime/components/basic/audio/audio.component.js.map +1 -1
  50. app-rn-runtime/components/basic/audio/audio.props.js +4 -4
  51. app-rn-runtime/components/basic/audio/audio.props.js.map +1 -1
  52. app-rn-runtime/components/basic/audio/audio.styles.js.map +1 -1
  53. app-rn-runtime/components/basic/button/button.component.js +48 -23
  54. app-rn-runtime/components/basic/button/button.component.js.map +1 -1
  55. app-rn-runtime/components/basic/button/button.props.js +5 -4
  56. app-rn-runtime/components/basic/button/button.props.js.map +1 -1
  57. app-rn-runtime/components/basic/button/button.styles.js +2 -4
  58. app-rn-runtime/components/basic/button/button.styles.js.map +1 -1
  59. app-rn-runtime/components/basic/buttongroup/buttongroup.component.js.map +1 -1
  60. app-rn-runtime/components/basic/buttongroup/buttongroup.props.js +4 -4
  61. app-rn-runtime/components/basic/buttongroup/buttongroup.props.js.map +1 -1
  62. app-rn-runtime/components/basic/buttongroup/buttongroup.styles.js.map +1 -1
  63. app-rn-runtime/components/basic/custom/custom.component.js.map +1 -1
  64. app-rn-runtime/components/basic/custom/custom.props.js +4 -4
  65. app-rn-runtime/components/basic/custom/custom.props.js.map +1 -1
  66. app-rn-runtime/components/basic/custom/custom.styles.js.map +1 -1
  67. app-rn-runtime/components/basic/icon/icon.component.js +30 -14
  68. app-rn-runtime/components/basic/icon/icon.component.js.map +1 -1
  69. app-rn-runtime/components/basic/icon/icon.props.js +6 -5
  70. app-rn-runtime/components/basic/icon/icon.props.js.map +1 -1
  71. app-rn-runtime/components/basic/icon/icon.styles.js.map +1 -1
  72. app-rn-runtime/components/basic/icon/streamline-light-icon/streamline-light-icon.component.js.map +1 -1
  73. app-rn-runtime/components/basic/icon/streamline-regular-icon/streamline-regular-icon.component.js.map +1 -1
  74. app-rn-runtime/components/basic/icon/wavicon/wavicon.component.js.map +1 -1
  75. app-rn-runtime/components/basic/label/label.component.js +26 -13
  76. app-rn-runtime/components/basic/label/label.component.js.map +1 -1
  77. app-rn-runtime/components/basic/label/label.props.js +5 -4
  78. app-rn-runtime/components/basic/label/label.props.js.map +1 -1
  79. app-rn-runtime/components/basic/label/label.styles.js.map +1 -1
  80. app-rn-runtime/components/basic/lottie/lottie.component.js +9 -10
  81. app-rn-runtime/components/basic/lottie/lottie.component.js.map +1 -1
  82. app-rn-runtime/components/basic/lottie/lottie.props.js +4 -4
  83. app-rn-runtime/components/basic/lottie/lottie.props.js.map +1 -1
  84. app-rn-runtime/components/basic/lottie/lottie.styles.js +5 -1
  85. app-rn-runtime/components/basic/lottie/lottie.styles.js.map +1 -1
  86. app-rn-runtime/components/basic/message/message.component.js +3 -2
  87. app-rn-runtime/components/basic/message/message.component.js.map +1 -1
  88. app-rn-runtime/components/basic/message/message.props.js +5 -4
  89. app-rn-runtime/components/basic/message/message.props.js.map +1 -1
  90. app-rn-runtime/components/basic/message/message.styles.js +1 -2
  91. app-rn-runtime/components/basic/message/message.styles.js.map +1 -1
  92. app-rn-runtime/components/basic/modal/modal.component.js.map +1 -1
  93. app-rn-runtime/components/basic/modal/modal.props.js +4 -4
  94. app-rn-runtime/components/basic/modal/modal.props.js.map +1 -1
  95. app-rn-runtime/components/basic/modal/modal.styles.js.map +1 -1
  96. app-rn-runtime/components/basic/picture/picture.component.js +6 -6
  97. app-rn-runtime/components/basic/picture/picture.component.js.map +1 -1
  98. app-rn-runtime/components/basic/picture/picture.props.js +5 -4
  99. app-rn-runtime/components/basic/picture/picture.props.js.map +1 -1
  100. app-rn-runtime/components/basic/picture/picture.styles.js.map +1 -1
  101. app-rn-runtime/components/basic/progress-bar/progress-bar.component.js +25 -3
  102. app-rn-runtime/components/basic/progress-bar/progress-bar.component.js.map +1 -1
  103. app-rn-runtime/components/basic/progress-bar/progress-bar.props.js +4 -4
  104. app-rn-runtime/components/basic/progress-bar/progress-bar.props.js.map +1 -1
  105. app-rn-runtime/components/basic/progress-bar/progress-bar.styles.js.map +1 -1
  106. app-rn-runtime/components/basic/progress-circle/progress-circle.component.js +9 -9
  107. app-rn-runtime/components/basic/progress-circle/progress-circle.component.js.map +1 -1
  108. app-rn-runtime/components/basic/progress-circle/progress-circle.props.js +4 -4
  109. app-rn-runtime/components/basic/progress-circle/progress-circle.props.js.map +1 -1
  110. app-rn-runtime/components/basic/progress-circle/progress-circle.styles.js.map +1 -1
  111. app-rn-runtime/components/basic/search/local-data-provider.js +2 -2
  112. app-rn-runtime/components/basic/search/local-data-provider.js.map +1 -1
  113. app-rn-runtime/components/basic/search/search.component.js +28 -22
  114. app-rn-runtime/components/basic/search/search.component.js.map +1 -1
  115. app-rn-runtime/components/basic/search/search.props.js +6 -4
  116. app-rn-runtime/components/basic/search/search.props.js.map +1 -1
  117. app-rn-runtime/components/basic/search/search.styles.js +6 -0
  118. app-rn-runtime/components/basic/search/search.styles.js.map +1 -1
  119. app-rn-runtime/components/basic/skeleton/skeleton.component.js +9 -8
  120. app-rn-runtime/components/basic/skeleton/skeleton.component.js.map +1 -1
  121. app-rn-runtime/components/basic/skeleton/skeleton.props.js +9 -1
  122. app-rn-runtime/components/basic/skeleton/skeleton.props.js.map +1 -1
  123. app-rn-runtime/components/basic/skeleton/skeleton.styles.js.map +1 -1
  124. app-rn-runtime/components/basic/spinner/spinner.component.js +4 -5
  125. app-rn-runtime/components/basic/spinner/spinner.component.js.map +1 -1
  126. app-rn-runtime/components/basic/spinner/spinner.props.js +4 -4
  127. app-rn-runtime/components/basic/spinner/spinner.props.js.map +1 -1
  128. app-rn-runtime/components/basic/spinner/spinner.styles.js +3 -2
  129. app-rn-runtime/components/basic/spinner/spinner.styles.js.map +1 -1
  130. app-rn-runtime/components/basic/tooltip/tooltip.component.js +79 -0
  131. app-rn-runtime/components/basic/tooltip/tooltip.component.js.map +1 -0
  132. app-rn-runtime/components/basic/tooltip/tooltip.props.js +18 -0
  133. app-rn-runtime/components/basic/tooltip/tooltip.props.js.map +1 -0
  134. app-rn-runtime/components/basic/tooltip/tooltip.styles.js +49 -0
  135. app-rn-runtime/components/basic/tooltip/tooltip.styles.js.map +1 -0
  136. app-rn-runtime/components/basic/video/video.component.js +11 -8
  137. app-rn-runtime/components/basic/video/video.component.js.map +1 -1
  138. app-rn-runtime/components/basic/video/video.props.js +5 -5
  139. app-rn-runtime/components/basic/video/video.props.js.map +1 -1
  140. app-rn-runtime/components/basic/video/video.styles.js +4 -1
  141. app-rn-runtime/components/basic/video/video.styles.js.map +1 -1
  142. app-rn-runtime/components/chart/area-chart/area-chart.component.js +21 -10
  143. app-rn-runtime/components/chart/area-chart/area-chart.component.js.map +1 -1
  144. app-rn-runtime/components/chart/area-chart/area-chart.props.js +4 -4
  145. app-rn-runtime/components/chart/area-chart/area-chart.props.js.map +1 -1
  146. app-rn-runtime/components/chart/area-chart/area-chart.styles.js +7 -1
  147. app-rn-runtime/components/chart/area-chart/area-chart.styles.js.map +1 -1
  148. app-rn-runtime/components/chart/bar-chart/bar-chart.component.js +21 -10
  149. app-rn-runtime/components/chart/bar-chart/bar-chart.component.js.map +1 -1
  150. app-rn-runtime/components/chart/bar-chart/bar-chart.props.js +4 -4
  151. app-rn-runtime/components/chart/bar-chart/bar-chart.props.js.map +1 -1
  152. app-rn-runtime/components/chart/bar-chart/bar-chart.styles.js +7 -1
  153. app-rn-runtime/components/chart/bar-chart/bar-chart.styles.js.map +1 -1
  154. app-rn-runtime/components/chart/basechart.component.js +142 -55
  155. app-rn-runtime/components/chart/basechart.component.js.map +1 -1
  156. app-rn-runtime/components/chart/basechart.props.js +9 -14
  157. app-rn-runtime/components/chart/basechart.props.js.map +1 -1
  158. app-rn-runtime/components/chart/basechart.styles.js +31 -10
  159. app-rn-runtime/components/chart/basechart.styles.js.map +1 -1
  160. app-rn-runtime/components/chart/bubble-chart/bubble-chart.component.js +33 -13
  161. app-rn-runtime/components/chart/bubble-chart/bubble-chart.component.js.map +1 -1
  162. app-rn-runtime/components/chart/bubble-chart/bubble-chart.props.js +4 -4
  163. app-rn-runtime/components/chart/bubble-chart/bubble-chart.props.js.map +1 -1
  164. app-rn-runtime/components/chart/bubble-chart/bubble-chart.styles.js +7 -1
  165. app-rn-runtime/components/chart/bubble-chart/bubble-chart.styles.js.map +1 -1
  166. app-rn-runtime/components/chart/column-chart/column-chart.component.js.map +1 -1
  167. app-rn-runtime/components/chart/column-chart/column-chart.props.js.map +1 -1
  168. app-rn-runtime/components/chart/column-chart/column-chart.styles.js +7 -1
  169. app-rn-runtime/components/chart/column-chart/column-chart.styles.js.map +1 -1
  170. app-rn-runtime/components/chart/donut-chart/donut-chart.component.js.map +1 -1
  171. app-rn-runtime/components/chart/donut-chart/donut-chart.props.js +4 -4
  172. app-rn-runtime/components/chart/donut-chart/donut-chart.props.js.map +1 -1
  173. app-rn-runtime/components/chart/donut-chart/donut-chart.styles.js +7 -1
  174. app-rn-runtime/components/chart/donut-chart/donut-chart.styles.js.map +1 -1
  175. app-rn-runtime/components/chart/legend/legend.component.js.map +1 -1
  176. app-rn-runtime/components/chart/line-chart/line-chart.component.js +16 -4
  177. app-rn-runtime/components/chart/line-chart/line-chart.component.js.map +1 -1
  178. app-rn-runtime/components/chart/line-chart/line-chart.props.js +6 -4
  179. app-rn-runtime/components/chart/line-chart/line-chart.props.js.map +1 -1
  180. app-rn-runtime/components/chart/line-chart/line-chart.styles.js +7 -1
  181. app-rn-runtime/components/chart/line-chart/line-chart.styles.js.map +1 -1
  182. app-rn-runtime/components/chart/pie-chart/pie-chart.component.js +25 -13
  183. app-rn-runtime/components/chart/pie-chart/pie-chart.component.js.map +1 -1
  184. app-rn-runtime/components/chart/pie-chart/pie-chart.props.js +4 -4
  185. app-rn-runtime/components/chart/pie-chart/pie-chart.props.js.map +1 -1
  186. app-rn-runtime/components/chart/pie-chart/pie-chart.styles.js +7 -1
  187. app-rn-runtime/components/chart/pie-chart/pie-chart.styles.js.map +1 -1
  188. app-rn-runtime/components/chart/stack-chart/stack-chart.component.js +116 -52
  189. app-rn-runtime/components/chart/stack-chart/stack-chart.component.js.map +1 -1
  190. app-rn-runtime/components/chart/stack-chart/stack-chart.props.js +5 -5
  191. app-rn-runtime/components/chart/stack-chart/stack-chart.props.js.map +1 -1
  192. app-rn-runtime/components/chart/stack-chart/stack-chart.styles.js.map +1 -1
  193. app-rn-runtime/components/chart/staticdata.js.map +1 -1
  194. app-rn-runtime/components/chart/theme/chart.theme.js.map +1 -1
  195. app-rn-runtime/components/container/accordion/accordion.component.js +60 -22
  196. app-rn-runtime/components/container/accordion/accordion.component.js.map +1 -1
  197. app-rn-runtime/components/container/accordion/accordion.props.js +4 -4
  198. app-rn-runtime/components/container/accordion/accordion.props.js.map +1 -1
  199. app-rn-runtime/components/container/accordion/accordion.styles.js +5 -0
  200. app-rn-runtime/components/container/accordion/accordion.styles.js.map +1 -1
  201. app-rn-runtime/components/container/accordion/accordionpane/accordionpane.component.js +8 -5
  202. app-rn-runtime/components/container/accordion/accordionpane/accordionpane.component.js.map +1 -1
  203. app-rn-runtime/components/container/accordion/accordionpane/accordionpane.props.js +4 -4
  204. app-rn-runtime/components/container/accordion/accordionpane/accordionpane.props.js.map +1 -1
  205. app-rn-runtime/components/container/accordion/accordionpane/accordionpane.styles.js.map +1 -1
  206. app-rn-runtime/components/container/container.component.js +41 -6
  207. app-rn-runtime/components/container/container.component.js.map +1 -1
  208. app-rn-runtime/components/container/container.props.js +5 -4
  209. app-rn-runtime/components/container/container.props.js.map +1 -1
  210. app-rn-runtime/components/container/container.styles.js +7 -0
  211. app-rn-runtime/components/container/container.styles.js.map +1 -1
  212. app-rn-runtime/components/container/layoutgrid/gridcolumn/gridcolumn.component.js.map +1 -1
  213. app-rn-runtime/components/container/layoutgrid/gridcolumn/gridcolumn.props.js +4 -4
  214. app-rn-runtime/components/container/layoutgrid/gridcolumn/gridcolumn.props.js.map +1 -1
  215. app-rn-runtime/components/container/layoutgrid/gridcolumn/gridcolumn.styles.js.map +1 -1
  216. app-rn-runtime/components/container/layoutgrid/gridrow/gridrow.component.js +5 -1
  217. app-rn-runtime/components/container/layoutgrid/gridrow/gridrow.component.js.map +1 -1
  218. app-rn-runtime/components/container/layoutgrid/gridrow/gridrow.props.js +4 -4
  219. app-rn-runtime/components/container/layoutgrid/gridrow/gridrow.props.js.map +1 -1
  220. app-rn-runtime/components/container/layoutgrid/gridrow/gridrow.styles.js +6 -1
  221. app-rn-runtime/components/container/layoutgrid/gridrow/gridrow.styles.js.map +1 -1
  222. app-rn-runtime/components/container/layoutgrid/layoutgrid.component.js +28 -2
  223. app-rn-runtime/components/container/layoutgrid/layoutgrid.component.js.map +1 -1
  224. app-rn-runtime/components/container/layoutgrid/layoutgrid.props.js +4 -4
  225. app-rn-runtime/components/container/layoutgrid/layoutgrid.props.js.map +1 -1
  226. app-rn-runtime/components/container/layoutgrid/layoutgrid.styles.js +4 -1
  227. app-rn-runtime/components/container/layoutgrid/layoutgrid.styles.js.map +1 -1
  228. app-rn-runtime/components/container/linearlayout/linearlayout.component.js +31 -5
  229. app-rn-runtime/components/container/linearlayout/linearlayout.component.js.map +1 -1
  230. app-rn-runtime/components/container/linearlayout/linearlayout.props.js +4 -4
  231. app-rn-runtime/components/container/linearlayout/linearlayout.props.js.map +1 -1
  232. app-rn-runtime/components/container/linearlayout/linearlayout.styles.js +4 -1
  233. app-rn-runtime/components/container/linearlayout/linearlayout.styles.js.map +1 -1
  234. app-rn-runtime/components/container/linearlayout/linearlayoutitem/linearlayoutitem.component.js.map +1 -1
  235. app-rn-runtime/components/container/linearlayout/linearlayoutitem/linearlayoutitem.props.js +4 -4
  236. app-rn-runtime/components/container/linearlayout/linearlayoutitem/linearlayoutitem.props.js.map +1 -1
  237. app-rn-runtime/components/container/linearlayout/linearlayoutitem/linearlayoutitem.styles.js.map +1 -1
  238. app-rn-runtime/components/container/panel/collapsible-pane.component.js.map +1 -1
  239. app-rn-runtime/components/container/panel/panel-content/panel-content.component.js.map +1 -1
  240. app-rn-runtime/components/container/panel/panel-content/panel-content.props.js +4 -4
  241. app-rn-runtime/components/container/panel/panel-content/panel-content.props.js.map +1 -1
  242. app-rn-runtime/components/container/panel/panel-content/panel-content.styles.js.map +1 -1
  243. app-rn-runtime/components/container/panel/panel-footer/panel-footer.component.js.map +1 -1
  244. app-rn-runtime/components/container/panel/panel-footer/panel-footer.props.js +4 -4
  245. app-rn-runtime/components/container/panel/panel-footer/panel-footer.props.js.map +1 -1
  246. app-rn-runtime/components/container/panel/panel-footer/panel-footer.styles.js.map +1 -1
  247. app-rn-runtime/components/container/panel/panel.component.js +54 -12
  248. app-rn-runtime/components/container/panel/panel.component.js.map +1 -1
  249. app-rn-runtime/components/container/panel/panel.props.js +4 -4
  250. app-rn-runtime/components/container/panel/panel.props.js.map +1 -1
  251. app-rn-runtime/components/container/panel/panel.styles.js +3 -0
  252. app-rn-runtime/components/container/panel/panel.styles.js.map +1 -1
  253. app-rn-runtime/components/container/partial-host.component.js +6 -6
  254. app-rn-runtime/components/container/partial-host.component.js.map +1 -1
  255. app-rn-runtime/components/container/tabs/tabheader/tabheader.component.js +12 -10
  256. app-rn-runtime/components/container/tabs/tabheader/tabheader.component.js.map +1 -1
  257. app-rn-runtime/components/container/tabs/tabheader/tabheader.props.js +4 -4
  258. app-rn-runtime/components/container/tabs/tabheader/tabheader.props.js.map +1 -1
  259. app-rn-runtime/components/container/tabs/tabheader/tabheader.styles.js +1 -1
  260. app-rn-runtime/components/container/tabs/tabheader/tabheader.styles.js.map +1 -1
  261. app-rn-runtime/components/container/tabs/tabpane/tabpane.component.js +14 -8
  262. app-rn-runtime/components/container/tabs/tabpane/tabpane.component.js.map +1 -1
  263. app-rn-runtime/components/container/tabs/tabpane/tabpane.props.js +4 -4
  264. app-rn-runtime/components/container/tabs/tabpane/tabpane.props.js.map +1 -1
  265. app-rn-runtime/components/container/tabs/tabpane/tabpane.styles.js.map +1 -1
  266. app-rn-runtime/components/container/tabs/tabs.component.js +51 -20
  267. app-rn-runtime/components/container/tabs/tabs.component.js.map +1 -1
  268. app-rn-runtime/components/container/tabs/tabs.props.js +4 -4
  269. app-rn-runtime/components/container/tabs/tabs.props.js.map +1 -1
  270. app-rn-runtime/components/container/tabs/tabs.styles.js +4 -1
  271. app-rn-runtime/components/container/tabs/tabs.styles.js.map +1 -1
  272. app-rn-runtime/components/container/tile/tile.component.js +24 -1
  273. app-rn-runtime/components/container/tile/tile.component.js.map +1 -1
  274. app-rn-runtime/components/container/tile/tile.props.js +5 -4
  275. app-rn-runtime/components/container/tile/tile.props.js.map +1 -1
  276. app-rn-runtime/components/container/tile/tile.styles.js +6 -1
  277. app-rn-runtime/components/container/tile/tile.styles.js.map +1 -1
  278. app-rn-runtime/components/container/wizard/wizard.component.js +66 -24
  279. app-rn-runtime/components/container/wizard/wizard.component.js.map +1 -1
  280. app-rn-runtime/components/container/wizard/wizard.props.js +5 -4
  281. app-rn-runtime/components/container/wizard/wizard.props.js.map +1 -1
  282. app-rn-runtime/components/container/wizard/wizard.styles.js +6 -1
  283. app-rn-runtime/components/container/wizard/wizard.styles.js.map +1 -1
  284. app-rn-runtime/components/container/wizard/wizardstep/wizardstep.component.js +9 -6
  285. app-rn-runtime/components/container/wizard/wizardstep/wizardstep.component.js.map +1 -1
  286. app-rn-runtime/components/container/wizard/wizardstep/wizardstep.props.js +4 -4
  287. app-rn-runtime/components/container/wizard/wizardstep/wizardstep.props.js.map +1 -1
  288. app-rn-runtime/components/container/wizard/wizardstep/wizardstep.styles.js +1 -1
  289. app-rn-runtime/components/container/wizard/wizardstep/wizardstep.styles.js.map +1 -1
  290. app-rn-runtime/components/data/card/card-content/card-content.component.js +10 -6
  291. app-rn-runtime/components/data/card/card-content/card-content.component.js.map +1 -1
  292. app-rn-runtime/components/data/card/card-content/card-content.props.js +4 -4
  293. app-rn-runtime/components/data/card/card-content/card-content.props.js.map +1 -1
  294. app-rn-runtime/components/data/card/card-content/card-content.styles.js +4 -1
  295. app-rn-runtime/components/data/card/card-content/card-content.styles.js.map +1 -1
  296. app-rn-runtime/components/data/card/card-footer/card-footer.component.js.map +1 -1
  297. app-rn-runtime/components/data/card/card-footer/card-footer.props.js +4 -4
  298. app-rn-runtime/components/data/card/card-footer/card-footer.props.js.map +1 -1
  299. app-rn-runtime/components/data/card/card-footer/card-footer.styles.js.map +1 -1
  300. app-rn-runtime/components/data/card/card.component.js +18 -0
  301. app-rn-runtime/components/data/card/card.component.js.map +1 -1
  302. app-rn-runtime/components/data/card/card.props.js +4 -4
  303. app-rn-runtime/components/data/card/card.props.js.map +1 -1
  304. app-rn-runtime/components/data/card/card.styles.js +3 -0
  305. app-rn-runtime/components/data/card/card.styles.js.map +1 -1
  306. app-rn-runtime/components/data/form/form-action/form-action.component.js +2 -2
  307. app-rn-runtime/components/data/form/form-action/form-action.component.js.map +1 -1
  308. app-rn-runtime/components/data/form/form-action/form-action.props.js +4 -4
  309. app-rn-runtime/components/data/form/form-action/form-action.props.js.map +1 -1
  310. app-rn-runtime/components/data/form/form-action/form-action.styles.js.map +1 -1
  311. app-rn-runtime/components/data/form/form-body/form-body.component.js.map +1 -1
  312. app-rn-runtime/components/data/form/form-body/form-body.props.js +4 -4
  313. app-rn-runtime/components/data/form/form-body/form-body.props.js.map +1 -1
  314. app-rn-runtime/components/data/form/form-body/form-body.styles.js.map +1 -1
  315. app-rn-runtime/components/data/form/form-field/form-field.component.js +12 -9
  316. app-rn-runtime/components/data/form/form-field/form-field.component.js.map +1 -1
  317. app-rn-runtime/components/data/form/form-field/form-field.props.js +5 -4
  318. app-rn-runtime/components/data/form/form-field/form-field.props.js.map +1 -1
  319. app-rn-runtime/components/data/form/form-field/form-field.styles.js.map +1 -1
  320. app-rn-runtime/components/data/form/form-footer/form-footer.component.js.map +1 -1
  321. app-rn-runtime/components/data/form/form-footer/form-footer.props.js +4 -4
  322. app-rn-runtime/components/data/form/form-footer/form-footer.props.js.map +1 -1
  323. app-rn-runtime/components/data/form/form-footer/form-footer.styles.js.map +1 -1
  324. app-rn-runtime/components/data/form/form.component.js +15 -14
  325. app-rn-runtime/components/data/form/form.component.js.map +1 -1
  326. app-rn-runtime/components/data/form/form.props.js +6 -4
  327. app-rn-runtime/components/data/form/form.props.js.map +1 -1
  328. app-rn-runtime/components/data/form/form.styles.js +1 -1
  329. app-rn-runtime/components/data/form/form.styles.js.map +1 -1
  330. app-rn-runtime/components/data/list/list-action-template/list-action-template.component.js +28 -0
  331. app-rn-runtime/components/data/list/list-action-template/list-action-template.component.js.map +1 -0
  332. app-rn-runtime/components/data/list/list-action-template/list-action-template.props.js +12 -0
  333. app-rn-runtime/components/data/list/list-action-template/list-action-template.props.js.map +1 -0
  334. app-rn-runtime/components/data/list/list-action-template/list-action-template.styles.js +36 -0
  335. app-rn-runtime/components/data/list/list-action-template/list-action-template.styles.js.map +1 -0
  336. app-rn-runtime/components/data/list/list-template/list-template.component.js +15 -1
  337. app-rn-runtime/components/data/list/list-template/list-template.component.js.map +1 -1
  338. app-rn-runtime/components/data/list/list-template/list-template.props.js +5 -4
  339. app-rn-runtime/components/data/list/list-template/list-template.props.js.map +1 -1
  340. app-rn-runtime/components/data/list/list-template/list-template.styles.js +11 -2
  341. app-rn-runtime/components/data/list/list-template/list-template.styles.js.map +1 -1
  342. app-rn-runtime/components/data/list/list.component.js +120 -72
  343. app-rn-runtime/components/data/list/list.component.js.map +1 -1
  344. app-rn-runtime/components/data/list/list.props.js +6 -4
  345. app-rn-runtime/components/data/list/list.props.js.map +1 -1
  346. app-rn-runtime/components/data/list/list.styles.js +11 -2
  347. app-rn-runtime/components/data/list/list.styles.js.map +1 -1
  348. app-rn-runtime/components/data/liveform/liveform.component.js +13 -17
  349. app-rn-runtime/components/data/liveform/liveform.component.js.map +1 -1
  350. app-rn-runtime/components/device/barcodescanner/barcodescanner.component.js +2 -2
  351. app-rn-runtime/components/device/barcodescanner/barcodescanner.component.js.map +1 -1
  352. app-rn-runtime/components/device/barcodescanner/barcodescanner.props.js +4 -4
  353. app-rn-runtime/components/device/barcodescanner/barcodescanner.props.js.map +1 -1
  354. app-rn-runtime/components/device/barcodescanner/barcodescanner.styles.js.map +1 -1
  355. app-rn-runtime/components/device/camera/camera.component.js +2 -2
  356. app-rn-runtime/components/device/camera/camera.component.js.map +1 -1
  357. app-rn-runtime/components/device/camera/camera.props.js +4 -4
  358. app-rn-runtime/components/device/camera/camera.props.js.map +1 -1
  359. app-rn-runtime/components/device/camera/camera.styles.js.map +1 -1
  360. app-rn-runtime/components/dialogs/alertdialog/alertdialog.component.js +3 -2
  361. app-rn-runtime/components/dialogs/alertdialog/alertdialog.component.js.map +1 -1
  362. app-rn-runtime/components/dialogs/alertdialog/alertdialog.props.js +5 -4
  363. app-rn-runtime/components/dialogs/alertdialog/alertdialog.props.js.map +1 -1
  364. app-rn-runtime/components/dialogs/alertdialog/alertdialog.styles.js.map +1 -1
  365. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.component.js +3 -2
  366. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.component.js.map +1 -1
  367. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.props.js +5 -4
  368. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.props.js.map +1 -1
  369. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.styles.js.map +1 -1
  370. app-rn-runtime/components/dialogs/dialog/dialog.component.js +11 -7
  371. app-rn-runtime/components/dialogs/dialog/dialog.component.js.map +1 -1
  372. app-rn-runtime/components/dialogs/dialog/dialog.props.js +5 -4
  373. app-rn-runtime/components/dialogs/dialog/dialog.props.js.map +1 -1
  374. app-rn-runtime/components/dialogs/dialog/dialog.styles.js.map +1 -1
  375. app-rn-runtime/components/dialogs/dialogactions/dialogactions.component.js +2 -2
  376. app-rn-runtime/components/dialogs/dialogactions/dialogactions.component.js.map +1 -1
  377. app-rn-runtime/components/dialogs/dialogactions/dialogactions.props.js +4 -4
  378. app-rn-runtime/components/dialogs/dialogactions/dialogactions.props.js.map +1 -1
  379. app-rn-runtime/components/dialogs/dialogactions/dialogactions.styles.js.map +1 -1
  380. app-rn-runtime/components/dialogs/dialogcontent/dialogcontent.component.js +1 -1
  381. app-rn-runtime/components/dialogs/dialogcontent/dialogcontent.component.js.map +1 -1
  382. app-rn-runtime/components/dialogs/dialogcontent/dialogcontent.props.js +4 -4
  383. app-rn-runtime/components/dialogs/dialogcontent/dialogcontent.props.js.map +1 -1
  384. app-rn-runtime/components/dialogs/dialogcontent/dialogcontent.styles.js.map +1 -1
  385. app-rn-runtime/components/input/basedataset/basedataset.component.js +9 -14
  386. app-rn-runtime/components/input/basedataset/basedataset.component.js.map +1 -1
  387. app-rn-runtime/components/input/basedataset/basedataset.props.js +5 -5
  388. app-rn-runtime/components/input/basedataset/basedataset.props.js.map +1 -1
  389. app-rn-runtime/components/input/basedataset/basedataset.styles.js.map +1 -1
  390. app-rn-runtime/components/input/baseinput/baseinput.component.js +19 -13
  391. app-rn-runtime/components/input/baseinput/baseinput.component.js.map +1 -1
  392. app-rn-runtime/components/input/baseinput/baseinput.props.js +6 -5
  393. app-rn-runtime/components/input/baseinput/baseinput.props.js.map +1 -1
  394. app-rn-runtime/components/input/baseinput/baseinput.styles.js.map +1 -1
  395. app-rn-runtime/components/input/basenumber/basenumber.component.js +31 -21
  396. app-rn-runtime/components/input/basenumber/basenumber.component.js.map +1 -1
  397. app-rn-runtime/components/input/basenumber/basenumber.props.js +7 -5
  398. app-rn-runtime/components/input/basenumber/basenumber.props.js.map +1 -1
  399. app-rn-runtime/components/input/basenumber/basenumber.styles.js.map +1 -1
  400. app-rn-runtime/components/input/calendar/calendar.component.js +5 -5
  401. app-rn-runtime/components/input/calendar/calendar.component.js.map +1 -1
  402. app-rn-runtime/components/input/calendar/calendar.props.js +4 -4
  403. app-rn-runtime/components/input/calendar/calendar.props.js.map +1 -1
  404. app-rn-runtime/components/input/calendar/calendar.styles.js.map +1 -1
  405. app-rn-runtime/components/input/calendar/views/month-view.js +6 -10
  406. app-rn-runtime/components/input/calendar/views/month-view.js.map +1 -1
  407. app-rn-runtime/components/input/calendar/views/month-view.styles.js.map +1 -1
  408. app-rn-runtime/components/input/checkbox/checkbox.component.js +10 -11
  409. app-rn-runtime/components/input/checkbox/checkbox.component.js.map +1 -1
  410. app-rn-runtime/components/input/checkbox/checkbox.props.js +5 -4
  411. app-rn-runtime/components/input/checkbox/checkbox.props.js.map +1 -1
  412. app-rn-runtime/components/input/checkbox/checkbox.styles.js.map +1 -1
  413. app-rn-runtime/components/input/checkboxset/checkboxset.component.js +41 -11
  414. app-rn-runtime/components/input/checkboxset/checkboxset.component.js.map +1 -1
  415. app-rn-runtime/components/input/checkboxset/checkboxset.props.js +11 -4
  416. app-rn-runtime/components/input/checkboxset/checkboxset.props.js.map +1 -1
  417. app-rn-runtime/components/input/checkboxset/checkboxset.styles.js +2 -0
  418. app-rn-runtime/components/input/checkboxset/checkboxset.styles.js.map +1 -1
  419. app-rn-runtime/components/input/chips/chips.component.js +8 -7
  420. app-rn-runtime/components/input/chips/chips.component.js.map +1 -1
  421. app-rn-runtime/components/input/chips/chips.props.js +4 -4
  422. app-rn-runtime/components/input/chips/chips.props.js.map +1 -1
  423. app-rn-runtime/components/input/chips/chips.styles.js.map +1 -1
  424. app-rn-runtime/components/input/composite/composite.component.js.map +1 -1
  425. app-rn-runtime/components/input/composite/composite.props.js +4 -4
  426. app-rn-runtime/components/input/composite/composite.props.js.map +1 -1
  427. app-rn-runtime/components/input/composite/composite.styles.js.map +1 -1
  428. app-rn-runtime/components/input/currency/currency.component.js +20 -5
  429. app-rn-runtime/components/input/currency/currency.component.js.map +1 -1
  430. app-rn-runtime/components/input/currency/currency.props.js +4 -4
  431. app-rn-runtime/components/input/currency/currency.props.js.map +1 -1
  432. app-rn-runtime/components/input/currency/currency.styles.js.map +1 -1
  433. app-rn-runtime/components/input/epoch/base-datetime.component.js +117 -18
  434. app-rn-runtime/components/input/epoch/base-datetime.component.js.map +1 -1
  435. app-rn-runtime/components/input/epoch/date/date.component.js.map +1 -1
  436. app-rn-runtime/components/input/epoch/date/date.props.js.map +1 -1
  437. app-rn-runtime/components/input/epoch/date/date.styles.js.map +1 -1
  438. app-rn-runtime/components/input/epoch/date-picker.component.js +2 -2
  439. app-rn-runtime/components/input/epoch/date-picker.component.js.map +1 -1
  440. app-rn-runtime/components/input/epoch/datetime/datetime.component.js.map +1 -1
  441. app-rn-runtime/components/input/epoch/datetime/datetime.props.js +7 -5
  442. app-rn-runtime/components/input/epoch/datetime/datetime.props.js.map +1 -1
  443. app-rn-runtime/components/input/epoch/datetime/datetime.styles.js.map +1 -1
  444. app-rn-runtime/components/input/epoch/time/time.component.js.map +1 -1
  445. app-rn-runtime/components/input/epoch/time/time.props.js +2 -2
  446. app-rn-runtime/components/input/epoch/time/time.props.js.map +1 -1
  447. app-rn-runtime/components/input/epoch/time/time.styles.js.map +1 -1
  448. app-rn-runtime/components/input/epoch/wheel-date-picker.component.js +198 -0
  449. app-rn-runtime/components/input/epoch/wheel-date-picker.component.js.map +1 -0
  450. app-rn-runtime/components/input/epoch/wheel-time-picker.component.js +107 -0
  451. app-rn-runtime/components/input/epoch/wheel-time-picker.component.js.map +1 -0
  452. app-rn-runtime/components/input/epoch/wheelpicker/wheelpicker.component.js +91 -0
  453. app-rn-runtime/components/input/epoch/wheelpicker/wheelpicker.component.js.map +1 -0
  454. app-rn-runtime/components/input/epoch/wheelpicker/wheelpicker.props.js +17 -0
  455. app-rn-runtime/components/input/epoch/wheelpicker/wheelpicker.props.js.map +1 -0
  456. app-rn-runtime/components/input/epoch/wheelpicker/wheelpicker.styles.js +55 -0
  457. app-rn-runtime/components/input/epoch/wheelpicker/wheelpicker.styles.js.map +1 -0
  458. app-rn-runtime/components/input/epoch/wheelpickermodal/date/date-picker-modal.component.js +76 -0
  459. app-rn-runtime/components/input/epoch/wheelpickermodal/date/date-picker-modal.component.js.map +1 -0
  460. app-rn-runtime/components/input/epoch/wheelpickermodal/date/date-picker-modal.props.js +17 -0
  461. app-rn-runtime/components/input/epoch/wheelpickermodal/date/date-picker-modal.props.js.map +1 -0
  462. app-rn-runtime/components/input/epoch/wheelpickermodal/styles/datetime-picker-modal.styles.js +66 -0
  463. app-rn-runtime/components/input/epoch/wheelpickermodal/styles/datetime-picker-modal.styles.js.map +1 -0
  464. app-rn-runtime/components/input/epoch/wheelpickermodal/time/time-picker-modal.component.js +74 -0
  465. app-rn-runtime/components/input/epoch/wheelpickermodal/time/time-picker-modal.component.js.map +1 -0
  466. app-rn-runtime/components/input/epoch/wheelpickermodal/time/time-picker-modal.props.js +16 -0
  467. app-rn-runtime/components/input/epoch/wheelpickermodal/time/time-picker-modal.props.js.map +1 -0
  468. app-rn-runtime/components/input/fileupload/fileupload.component.js +10 -8
  469. app-rn-runtime/components/input/fileupload/fileupload.component.js.map +1 -1
  470. app-rn-runtime/components/input/fileupload/fileupload.props.js +5 -4
  471. app-rn-runtime/components/input/fileupload/fileupload.props.js.map +1 -1
  472. app-rn-runtime/components/input/fileupload/fileupload.styles.js.map +1 -1
  473. app-rn-runtime/components/input/number/number.component.js +10 -7
  474. app-rn-runtime/components/input/number/number.component.js.map +1 -1
  475. app-rn-runtime/components/input/number/number.props.js +4 -4
  476. app-rn-runtime/components/input/number/number.props.js.map +1 -1
  477. app-rn-runtime/components/input/number/number.styles.js.map +1 -1
  478. app-rn-runtime/components/input/radioset/radioset.component.js +36 -13
  479. app-rn-runtime/components/input/radioset/radioset.component.js.map +1 -1
  480. app-rn-runtime/components/input/radioset/radioset.props.js +5 -4
  481. app-rn-runtime/components/input/radioset/radioset.props.js.map +1 -1
  482. app-rn-runtime/components/input/radioset/radioset.styles.js +1 -0
  483. app-rn-runtime/components/input/radioset/radioset.styles.js.map +1 -1
  484. app-rn-runtime/components/input/rating/rating.component.js +4 -4
  485. app-rn-runtime/components/input/rating/rating.component.js.map +1 -1
  486. app-rn-runtime/components/input/rating/rating.props.js +4 -4
  487. app-rn-runtime/components/input/rating/rating.props.js.map +1 -1
  488. app-rn-runtime/components/input/rating/rating.styles.js.map +1 -1
  489. app-rn-runtime/components/input/select/select.component.js +37 -19
  490. app-rn-runtime/components/input/select/select.component.js.map +1 -1
  491. app-rn-runtime/components/input/select/select.props.js +4 -4
  492. app-rn-runtime/components/input/select/select.props.js.map +1 -1
  493. app-rn-runtime/components/input/select/select.styles.js.map +1 -1
  494. app-rn-runtime/components/input/slider/slider.component.js +359 -69
  495. app-rn-runtime/components/input/slider/slider.component.js.map +1 -1
  496. app-rn-runtime/components/input/slider/slider.props.js +13 -9
  497. app-rn-runtime/components/input/slider/slider.props.js.map +1 -1
  498. app-rn-runtime/components/input/slider/slider.styles.js +25 -2
  499. app-rn-runtime/components/input/slider/slider.styles.js.map +1 -1
  500. app-rn-runtime/components/input/switch/switch.component.js +9 -6
  501. app-rn-runtime/components/input/switch/switch.component.js.map +1 -1
  502. app-rn-runtime/components/input/switch/switch.props.js +4 -4
  503. app-rn-runtime/components/input/switch/switch.props.js.map +1 -1
  504. app-rn-runtime/components/input/switch/switch.styles.js +8 -2
  505. app-rn-runtime/components/input/switch/switch.styles.js.map +1 -1
  506. app-rn-runtime/components/input/text/text.component.js +21 -0
  507. app-rn-runtime/components/input/text/text.component.js.map +1 -1
  508. app-rn-runtime/components/input/text/text.props.js +6 -4
  509. app-rn-runtime/components/input/text/text.props.js.map +1 -1
  510. app-rn-runtime/components/input/text/text.styles.js.map +1 -1
  511. app-rn-runtime/components/input/textarea/textarea.component.js +21 -0
  512. app-rn-runtime/components/input/textarea/textarea.component.js.map +1 -1
  513. app-rn-runtime/components/input/textarea/textarea.props.js +6 -4
  514. app-rn-runtime/components/input/textarea/textarea.props.js.map +1 -1
  515. app-rn-runtime/components/input/textarea/textarea.styles.js.map +1 -1
  516. app-rn-runtime/components/input/toggle/toggle.component.js +15 -10
  517. app-rn-runtime/components/input/toggle/toggle.component.js.map +1 -1
  518. app-rn-runtime/components/input/toggle/toggle.props.js +4 -4
  519. app-rn-runtime/components/input/toggle/toggle.props.js.map +1 -1
  520. app-rn-runtime/components/input/toggle/toggle.styles.js.map +1 -1
  521. app-rn-runtime/components/navigation/appnavbar/appnavbar.component.js +11 -7
  522. app-rn-runtime/components/navigation/appnavbar/appnavbar.component.js.map +1 -1
  523. app-rn-runtime/components/navigation/appnavbar/appnavbar.props.js +4 -4
  524. app-rn-runtime/components/navigation/appnavbar/appnavbar.props.js.map +1 -1
  525. app-rn-runtime/components/navigation/appnavbar/appnavbar.styles.js.map +1 -1
  526. app-rn-runtime/components/navigation/basenav/basenav.component.js +6 -10
  527. app-rn-runtime/components/navigation/basenav/basenav.component.js.map +1 -1
  528. app-rn-runtime/components/navigation/basenav/basenav.props.js +4 -4
  529. app-rn-runtime/components/navigation/basenav/basenav.props.js.map +1 -1
  530. app-rn-runtime/components/navigation/basenav/basenav.styles.js.map +1 -1
  531. app-rn-runtime/components/navigation/menu/menu.component.js +2 -2
  532. app-rn-runtime/components/navigation/menu/menu.component.js.map +1 -1
  533. app-rn-runtime/components/navigation/menu/menu.props.js +4 -4
  534. app-rn-runtime/components/navigation/menu/menu.props.js.map +1 -1
  535. app-rn-runtime/components/navigation/menu/menu.styles.js.map +1 -1
  536. app-rn-runtime/components/navigation/navbar/navbar.component.js.map +1 -1
  537. app-rn-runtime/components/navigation/navbar/navbar.props.js +4 -4
  538. app-rn-runtime/components/navigation/navbar/navbar.props.js.map +1 -1
  539. app-rn-runtime/components/navigation/navbar/navbar.styles.js.map +1 -1
  540. app-rn-runtime/components/navigation/navitem/navitem.component.js +6 -7
  541. app-rn-runtime/components/navigation/navitem/navitem.component.js.map +1 -1
  542. app-rn-runtime/components/navigation/navitem/navitem.props.js +4 -4
  543. app-rn-runtime/components/navigation/navitem/navitem.props.js.map +1 -1
  544. app-rn-runtime/components/navigation/navitem/navitem.styles.js.map +1 -1
  545. app-rn-runtime/components/navigation/popover/popover.component.js +84 -31
  546. app-rn-runtime/components/navigation/popover/popover.component.js.map +1 -1
  547. app-rn-runtime/components/navigation/popover/popover.props.js +6 -5
  548. app-rn-runtime/components/navigation/popover/popover.props.js.map +1 -1
  549. app-rn-runtime/components/navigation/popover/popover.styles.js +6 -1
  550. app-rn-runtime/components/navigation/popover/popover.styles.js.map +1 -1
  551. app-rn-runtime/components/page/content/content.component.js +19 -4
  552. app-rn-runtime/components/page/content/content.component.js.map +1 -1
  553. app-rn-runtime/components/page/content/content.props.js.map +1 -1
  554. app-rn-runtime/components/page/content/content.styles.js.map +1 -1
  555. app-rn-runtime/components/page/left-panel/left-panel.component.js +5 -5
  556. app-rn-runtime/components/page/left-panel/left-panel.component.js.map +1 -1
  557. app-rn-runtime/components/page/left-panel/left-panel.props.js +4 -4
  558. app-rn-runtime/components/page/left-panel/left-panel.props.js.map +1 -1
  559. app-rn-runtime/components/page/left-panel/left-panel.styles.js.map +1 -1
  560. app-rn-runtime/components/page/page-content/page-content.component.js +29 -3
  561. app-rn-runtime/components/page/page-content/page-content.component.js.map +1 -1
  562. app-rn-runtime/components/page/page-content/page-content.props.js +6 -6
  563. app-rn-runtime/components/page/page-content/page-content.props.js.map +1 -1
  564. app-rn-runtime/components/page/page-content/page-content.styles.js +6 -1
  565. app-rn-runtime/components/page/page-content/page-content.styles.js.map +1 -1
  566. app-rn-runtime/components/page/page.component.js +13 -3
  567. app-rn-runtime/components/page/page.component.js.map +1 -1
  568. app-rn-runtime/components/page/page.props.js.map +1 -1
  569. app-rn-runtime/components/page/page.styles.js +7 -1
  570. app-rn-runtime/components/page/page.styles.js.map +1 -1
  571. app-rn-runtime/components/page/partial/partial.component.js +21 -0
  572. app-rn-runtime/components/page/partial/partial.component.js.map +1 -1
  573. app-rn-runtime/components/page/partial/partial.props.js.map +1 -1
  574. app-rn-runtime/components/page/partial/partial.styles.js +6 -1
  575. app-rn-runtime/components/page/partial/partial.styles.js.map +1 -1
  576. app-rn-runtime/components/page/partial-container/partial-container.component.js.map +1 -1
  577. app-rn-runtime/components/page/partial-container/partial-container.props.js +4 -4
  578. app-rn-runtime/components/page/partial-container/partial-container.props.js.map +1 -1
  579. app-rn-runtime/components/page/partial-container/partial-container.styles.js.map +1 -1
  580. app-rn-runtime/components/page/tabbar/curve.js.map +1 -1
  581. app-rn-runtime/components/page/tabbar/tabbar.component.js +26 -14
  582. app-rn-runtime/components/page/tabbar/tabbar.component.js.map +1 -1
  583. app-rn-runtime/components/page/tabbar/tabbar.props.js +5 -4
  584. app-rn-runtime/components/page/tabbar/tabbar.props.js.map +1 -1
  585. app-rn-runtime/components/page/tabbar/tabbar.styles.js.map +1 -1
  586. app-rn-runtime/components/prefab/prefab-container.component.js +22 -0
  587. app-rn-runtime/components/prefab/prefab-container.component.js.map +1 -1
  588. app-rn-runtime/components/prefab/prefab-container.props.js.map +1 -1
  589. app-rn-runtime/components/prefab/prefab-container.styles.js +6 -1
  590. app-rn-runtime/components/prefab/prefab-container.styles.js.map +1 -1
  591. app-rn-runtime/core/AppConfig.js.map +1 -1
  592. app-rn-runtime/core/accessibility.js +7 -1
  593. app-rn-runtime/core/accessibility.js.map +1 -1
  594. app-rn-runtime/core/asset.provider.js.map +1 -1
  595. app-rn-runtime/core/base.component.js +31 -24
  596. app-rn-runtime/core/base.component.js.map +1 -1
  597. app-rn-runtime/core/components/floatinglabel.component.js.map +1 -1
  598. app-rn-runtime/core/components/textinput.component.js +9 -7
  599. app-rn-runtime/core/components/textinput.component.js.map +1 -1
  600. app-rn-runtime/core/constant.service.js +2 -2
  601. app-rn-runtime/core/constant.service.js.map +1 -1
  602. app-rn-runtime/core/constants/currency-constants.js.map +1 -1
  603. app-rn-runtime/core/currency-constants.js.map +1 -1
  604. app-rn-runtime/core/device/calendar-service.js.map +1 -1
  605. app-rn-runtime/core/device/camera-service.js.map +1 -1
  606. app-rn-runtime/core/device/contacts-service.js.map +1 -1
  607. app-rn-runtime/core/device/location-service.js.map +1 -1
  608. app-rn-runtime/core/device/scan-service.js.map +1 -1
  609. app-rn-runtime/core/display.manager.js.map +1 -1
  610. app-rn-runtime/core/event-notifier.js +15 -7
  611. app-rn-runtime/core/event-notifier.js.map +1 -1
  612. app-rn-runtime/core/file-extension-types.js.map +1 -1
  613. app-rn-runtime/core/fixed-view.component.js +4 -4
  614. app-rn-runtime/core/fixed-view.component.js.map +1 -1
  615. app-rn-runtime/core/formatters.js +6 -12
  616. app-rn-runtime/core/formatters.js.map +1 -1
  617. app-rn-runtime/core/i18n.service.js.map +1 -1
  618. app-rn-runtime/core/if.component.js +6 -7
  619. app-rn-runtime/core/if.component.js.map +1 -1
  620. app-rn-runtime/core/imageSizeEstimator.js +3 -3
  621. app-rn-runtime/core/imageSizeEstimator.js.map +1 -1
  622. app-rn-runtime/core/injector.js.map +1 -1
  623. app-rn-runtime/core/key.extractor.js +3 -4
  624. app-rn-runtime/core/key.extractor.js.map +1 -1
  625. app-rn-runtime/core/logger.js +3 -3
  626. app-rn-runtime/core/logger.js.map +1 -1
  627. app-rn-runtime/core/modal.service.js.map +1 -1
  628. app-rn-runtime/core/navigation.service.js.map +1 -1
  629. app-rn-runtime/core/network.service.js +7 -11
  630. app-rn-runtime/core/network.service.js.map +1 -1
  631. app-rn-runtime/core/partial.service.js.map +1 -1
  632. app-rn-runtime/core/props.provider.js +8 -5
  633. app-rn-runtime/core/props.provider.js.map +1 -1
  634. app-rn-runtime/core/scroll-view.component.js +2 -2
  635. app-rn-runtime/core/scroll-view.component.js.map +1 -1
  636. app-rn-runtime/core/security.service.js.map +1 -1
  637. app-rn-runtime/core/spinner.service.js.map +1 -1
  638. app-rn-runtime/core/storage.service.js +2 -2
  639. app-rn-runtime/core/storage.service.js.map +1 -1
  640. app-rn-runtime/core/tappable.component.js +75 -39
  641. app-rn-runtime/core/tappable.component.js.map +1 -1
  642. app-rn-runtime/core/testid.provider.js.map +1 -1
  643. app-rn-runtime/core/toast.service.js.map +1 -1
  644. app-rn-runtime/core/ui-preferences.context.js +7 -0
  645. app-rn-runtime/core/ui-preferences.context.js.map +1 -0
  646. app-rn-runtime/core/utils.js +206 -20
  647. app-rn-runtime/core/utils.js.map +1 -1
  648. app-rn-runtime/core/viewport.js +2 -2
  649. app-rn-runtime/core/viewport.js.map +1 -1
  650. app-rn-runtime/gestures/swipe.animation.js +2 -2
  651. app-rn-runtime/gestures/swipe.animation.js.map +1 -1
  652. app-rn-runtime/index.js.map +1 -1
  653. app-rn-runtime/package.json +110 -87
  654. app-rn-runtime/runtime/App.js +58 -54
  655. app-rn-runtime/runtime/App.js.map +1 -1
  656. app-rn-runtime/runtime/App.navigator.js +1 -1
  657. app-rn-runtime/runtime/App.navigator.js.map +1 -1
  658. app-rn-runtime/runtime/base-fragment.component.js +49 -21
  659. app-rn-runtime/runtime/base-fragment.component.js.map +1 -1
  660. app-rn-runtime/runtime/base-page.component.js +29 -22
  661. app-rn-runtime/runtime/base-page.component.js.map +1 -1
  662. app-rn-runtime/runtime/base-partial.component.js +12 -7
  663. app-rn-runtime/runtime/base-partial.component.js.map +1 -1
  664. app-rn-runtime/runtime/base-prefab.component.js +6 -6
  665. app-rn-runtime/runtime/base-prefab.component.js.map +1 -1
  666. app-rn-runtime/runtime/lib-patch.js +1 -1
  667. app-rn-runtime/runtime/lib-patch.js.map +1 -1
  668. app-rn-runtime/runtime/memo.component.js +2 -2
  669. app-rn-runtime/runtime/memo.component.js.map +1 -1
  670. app-rn-runtime/runtime/navigator/drawer.navigator.js +1 -0
  671. app-rn-runtime/runtime/navigator/drawer.navigator.js.map +1 -1
  672. app-rn-runtime/runtime/navigator/stack.navigator.js +5 -8
  673. app-rn-runtime/runtime/navigator/stack.navigator.js.map +1 -1
  674. app-rn-runtime/runtime/platform.api.js.map +1 -1
  675. app-rn-runtime/runtime/services/app-display-manager.service.js +7 -4
  676. app-rn-runtime/runtime/services/app-display-manager.service.js.map +1 -1
  677. app-rn-runtime/runtime/services/app-i18n.service.js +13 -4
  678. app-rn-runtime/runtime/services/app-i18n.service.js.map +1 -1
  679. app-rn-runtime/runtime/services/app-modal.service.js +7 -4
  680. app-rn-runtime/runtime/services/app-modal.service.js.map +1 -1
  681. app-rn-runtime/runtime/services/app-security.service.js +51 -12
  682. app-rn-runtime/runtime/services/app-security.service.js.map +1 -1
  683. app-rn-runtime/runtime/services/app-spinner.service.js +4 -5
  684. app-rn-runtime/runtime/services/app-spinner.service.js.map +1 -1
  685. app-rn-runtime/runtime/services/app-toast.service.js +2 -2
  686. app-rn-runtime/runtime/services/app-toast.service.js.map +1 -1
  687. app-rn-runtime/runtime/services/device/calendar-service.js.map +1 -1
  688. app-rn-runtime/runtime/services/device/camera-service.js +2 -2
  689. app-rn-runtime/runtime/services/device/camera-service.js.map +1 -1
  690. app-rn-runtime/runtime/services/device/contacts-service.js +1 -1
  691. app-rn-runtime/runtime/services/device/contacts-service.js.map +1 -1
  692. app-rn-runtime/runtime/services/device/location-service.js.map +1 -1
  693. app-rn-runtime/runtime/services/device/permissions.js.map +1 -1
  694. app-rn-runtime/runtime/services/device/scan-service.js.map +1 -1
  695. app-rn-runtime/runtime/services/partial.service.js +1 -2
  696. app-rn-runtime/runtime/services/partial.service.js.map +1 -1
  697. app-rn-runtime/runtime/services/webprocess.service.js +3 -5
  698. app-rn-runtime/runtime/services/webprocess.service.js.map +1 -1
  699. app-rn-runtime/runtime/watcher.js +5 -5
  700. app-rn-runtime/runtime/watcher.js.map +1 -1
  701. app-rn-runtime/styles/MediaQueryList.js.map +1 -1
  702. app-rn-runtime/styles/background.component.js +8 -6
  703. app-rn-runtime/styles/background.component.js.map +1 -1
  704. app-rn-runtime/styles/style-prop.validator.js +1 -4
  705. app-rn-runtime/styles/style-prop.validator.js.map +1 -1
  706. app-rn-runtime/styles/style-props.js +2 -2
  707. app-rn-runtime/styles/style-props.js.map +1 -1
  708. app-rn-runtime/styles/theme.js +25 -17
  709. app-rn-runtime/styles/theme.js.map +1 -1
  710. app-rn-runtime/styles/theme.variables.js +14 -7
  711. app-rn-runtime/styles/theme.variables.js.map +1 -1
  712. app-rn-runtime/variables/base-variable.js +2 -2
  713. app-rn-runtime/variables/base-variable.js.map +1 -1
  714. app-rn-runtime/variables/device/calendar/create-event.operation.js.map +1 -1
  715. app-rn-runtime/variables/device/calendar/delete-event.operation.js.map +1 -1
  716. app-rn-runtime/variables/device/calendar/get-events.operation.js.map +1 -1
  717. app-rn-runtime/variables/device/camera/capture-image.operation.js.map +1 -1
  718. app-rn-runtime/variables/device/camera/capture-video.operation.js.map +1 -1
  719. app-rn-runtime/variables/device/contacts/get-contacts.operation.js.map +1 -1
  720. app-rn-runtime/variables/device/device/app-info.operation.js.map +1 -1
  721. app-rn-runtime/variables/device/device/current-geo-position.operation.js.map +1 -1
  722. app-rn-runtime/variables/device/device/device-info.operation.js.map +1 -1
  723. app-rn-runtime/variables/device/device/network-info.operation.js +23 -3
  724. app-rn-runtime/variables/device/device/network-info.operation.js.map +1 -1
  725. app-rn-runtime/variables/device/device/vibrate.operation.js.map +1 -1
  726. app-rn-runtime/variables/device/file/upload-file.operation.js.map +1 -1
  727. app-rn-runtime/variables/device/operation.provider.js.map +1 -1
  728. app-rn-runtime/variables/device/scan/scan.operation.js.map +1 -1
  729. app-rn-runtime/variables/device-variable.js +1 -1
  730. app-rn-runtime/variables/device-variable.js.map +1 -1
  731. app-rn-runtime/variables/http.service.js +4 -0
  732. app-rn-runtime/variables/http.service.js.map +1 -1
  733. app-rn-runtime/variables/live-variable.js +3 -3
  734. app-rn-runtime/variables/live-variable.js.map +1 -1
  735. app-rn-runtime/variables/model-variable.js +2 -2
  736. app-rn-runtime/variables/model-variable.js.map +1 -1
  737. app-rn-runtime/variables/service-variable.js +4 -2
  738. app-rn-runtime/variables/service-variable.js.map +1 -1
  739. app-rn-runtime/variables/utils/dataset-util.js.map +1 -1
  740. app-rn-runtime/variables/utils/inflight-queue.js +2 -2
  741. app-rn-runtime/variables/utils/inflight-queue.js.map +1 -1
  742. app-rn-runtime/variables/utils/variable.constants.js.map +1 -1
  743. app-rn-runtime/variables/utils/variable.utils.js +0 -1
  744. app-rn-runtime/variables/utils/variable.utils.js.map +1 -1
@@ -1 +1 @@
1
- {"version":3,"names":["React","isArray","isUndefined","Animated","Easing","View","DefaultKeyExtractor","WmIcon","BaseComponent","BaseComponentState","SwipeAnimation","Tappable","WmCarouselProps","DEFAULT_CLASS","WmCarouselState","constructor","arguments","_defineProperty","WmCarousel","props","Value","bounds","e","_this$slidesLayout","_this$slidesLayout$ac","activeTabIndex","state","activeIndex","lower","slidesLayout","filter","l","i","reduce","s","width","center","upper","computePhase","value","_this$slidesLayout$ac2","w","Math","abs","onLower","onSlideChange","onUpper","index","prevIndex","updateState","invokeEventCallback","animatePagination","item","type","renderSlide","children","data","dataset","length","_this$animationView","animationView","setPosition","_this$animationView2","goToUpper","_this$animationView3","goToLower","cleanup","push","stopPlay","addSlideLayout","nativeEvent","layout","forceUpdate","generateItemKey","itemkey","_showSkeleton","keyExtractor","getKey","autoPlay","animation","animationinterval","intervalId","setInterval","next","clearInterval","setTimeout","_this$animationView4","onPropertyChange","name","$new","$old","_this$keyExtractor","clear","min","_this$styles$dotStyle","_this$styles$dotStyle2","_this$styles$dotStyle3","margin","styles","dotStyle","marginLeft","marginRight","size","position","max","scale","options","useNativeDriver","duration","easing","out","linear","sequence","timing","dotScale","toValue","parallel","dotPosition","isRTL","start","renderPagination","maxNoOfDots","maxnoofdots","minIndex","maxIndex","createElement","style","dotsWrapperStyle","flexDirection","map","key","activeDotStyle","undefined","height","transform","translateX","right","left","renderWidget","_data","_this$styles$slide","hasNavs","controls","hasDots","noOfSlides","slideScale","slideTranslateX","slide","_this$styles$slide2","_this$styles$slide3","find","o","root","_background","enableGestures","enablegestures","direction","ref","r","handlers","animationHandlers","slideMinWidth","_this$animationView5","_this$animationView6","isActive","animationPhase","interpolate","inputRange","outputRange","onLayout","bind","firstSlide","lastSlide","activeSlide","onTap","_this$animationView7","rippleColor","renderItem","btnPanel","id","getTestId","iconclass","prevBtn","prev","accessibilitylabel","nextBtn"],"sources":["carousel.component.tsx"],"sourcesContent":["import React from 'react';\nimport { isArray, isUndefined } from 'lodash-es';\nimport { Animated, Easing, View, LayoutChangeEvent, LayoutRectangle } from 'react-native';\nimport { DefaultKeyExtractor } from '@wavemaker/app-rn-runtime/core/key.extractor';\nimport WmIcon from '@wavemaker/app-rn-runtime/components/basic/icon/icon.component';\nimport { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';\nimport * as SwipeAnimation from '@wavemaker/app-rn-runtime/gestures/swipe.animation';\nimport { Tappable } from '@wavemaker/app-rn-runtime/core/tappable.component';\n\nimport WmCarouselProps from './carousel.props';\nimport { DEFAULT_CLASS, WmCarouselStyles } from './carousel.styles';\n\nexport class WmCarouselState extends BaseComponentState<WmCarouselProps> {\n activeIndex = 1;\n}\n\nexport default class WmCarousel extends BaseComponent<WmCarouselProps, WmCarouselState, WmCarouselStyles> {\n\n noOfSlides: number = 0;\n private slidesLayout: LayoutRectangle[] = [];\n private keyExtractor = new DefaultKeyExtractor();\n stopPlay: Function = null as any;\n private dotScale = new Animated.Value(0);\n private dotPosition = new Animated.Value(0);\n private animationView: SwipeAnimation.View | null = null as any;\n private animationHandlers = {\n bounds: (e) => {\n const activeTabIndex = this.state.activeIndex - 1;\n let lower = 0;\n if (activeTabIndex > 0) {\n lower = this.slidesLayout\n .filter((l , i) => i < activeTabIndex - 1)\n .reduce((s, l) => s + l.width, 0);\n }\n let center = lower + (this.slidesLayout[activeTabIndex - 1]?.width || 0);\n let upper = center + (this.slidesLayout[activeTabIndex]?.width || 0);\n return {\n lower: -1 * lower,\n center: -1 * center,\n upper: -1 * upper\n };\n },\n computePhase: (value) => {\n const activeTabIndex = this.state.activeIndex - 1;\n const w = this.slidesLayout[activeTabIndex]?.width || 0;\n return w && Math.abs(value / w);\n },\n onLower: (e) => {\n this.onSlideChange(this.state.activeIndex - 1);\n },\n onUpper: (e) => {\n this.onSlideChange(this.state.activeIndex + 1);\n }\n } as SwipeAnimation.Handlers;\n\n constructor(props: WmCarouselProps) {\n super(props, DEFAULT_CLASS, new WmCarouselProps(), new WmCarouselState());\n this.cleanup.push(() => {\n this.stopPlay && this.stopPlay();\n })\n }\n\n addSlideLayout(index: number, nativeEvent: LayoutChangeEvent) {\n this.slidesLayout[index] = nativeEvent.nativeEvent.layout;\n if (index === this.state.activeIndex) {\n this.forceUpdate();\n }\n }\n\n private generateItemKey(item: any, index: number, props: WmCarouselProps) {\n if (props.itemkey && item && !this._showSkeleton) {\n return props.itemkey(item, index);\n }\n return 'list_item_' + this.keyExtractor.getKey(item, true);\n }\n\n autoPlay() {\n const props = this.state.props;\n this.stopPlay && this.stopPlay();\n if (props.animation === 'auto' && props.animationinterval) {\n const intervalId = setInterval(() => {\n this.next();\n }, props.animationinterval * 1000);\n this.stopPlay = () => clearInterval(intervalId);\n } else {\n setTimeout(() => {\n this.onSlideChange(1);\n this.animationView?.setPosition(0);\n }, 1000);\n }\n }\n\n onPropertyChange(name: string, $new: any, $old: any): void {\n super.onPropertyChange(name, $new, $old);\n switch (name) {\n case 'dataset': {\n this.keyExtractor?.clear();\n this.updateState({\n activeIndex: Math.min(this.state.activeIndex, $new?.length || 1)\n } as WmCarouselState);\n break;\n }\n case 'animation':\n case 'animationinterval' : {\n this.autoPlay();\n }\n }\n }\n\n animatePagination(index: number) {\n const prevIndex = this.state.activeIndex;\n const margin = ((this.styles.dotStyle?.marginLeft as number)|| 0) + \n ((this.styles.dotStyle?.marginRight as number)|| 0)\n const width = (this.styles.dotStyle?.width as number)|| 2;\n const size = margin + width;\n const position = Math.max(index - 1, 0) * size;\n const scale = Math.abs(index - prevIndex) * size;\n const options = {\n useNativeDriver: true,\n duration: 200,\n easing: Easing.out(Easing.linear)\n };\n if (prevIndex < index) {\n Animated.sequence([\n Animated.timing(this.dotScale, {\n toValue: scale,\n ...options\n }),\n Animated.parallel([\n Animated.timing(this.dotScale, {\n toValue: 0,\n ...options\n }),\n Animated.timing(this.dotPosition, {\n toValue: (this.isRTL ? -1: 1) * position,\n ...options\n })\n ])\n ]).start();\n } else if (prevIndex > index) {\n Animated.sequence([\n Animated.parallel([\n Animated.timing(this.dotScale, {\n toValue: scale,\n ...options\n }),\n Animated.timing(this.dotPosition, {\n toValue: (this.isRTL ? -1: 1) * position,\n ...options\n })\n ]),\n Animated.timing(this.dotScale, {\n toValue: 0,\n ...options\n }),\n ]).start();\n } \n }\n\n onSlideChange = (index: number) => {\n const prevIndex = this.state.activeIndex;\n this.updateState({\n activeIndex: index\n } as WmCarouselState,\n () => this.invokeEventCallback('onChange', [this, index, prevIndex]));\n this.animatePagination(index);\n }\n\n renderItem = (item: any, index: number) => {\n const props = this.state.props;\n if (props.type === 'dynamic') {\n return props.renderSlide ? props.renderSlide(item, index, this) : null;\n }\n return props.children[index];\n }\n\n next = () => {\n const props = this.state.props;\n const data = props.type === 'dynamic' ? props.dataset : props.children;\n if (this.state.activeIndex >= data?.length || 0) {\n this.onSlideChange(1);\n this.animationView?.setPosition(0);\n } else {\n this.animationView?.goToUpper();\n }\n }\n\n prev = () => {\n this.animationView?.goToLower();\n }\n\n renderPagination(data: any) {\n const maxNoOfDots = this.state.props.maxnoofdots;\n let minIndex = Math.max(this.state.activeIndex - maxNoOfDots + 1, 0);\n let maxIndex = Math.min(minIndex + maxNoOfDots - 1, data.length);\n if (maxIndex === data.length) {\n minIndex = maxIndex - maxNoOfDots;\n }\n return (<View style={this.styles.dotsWrapperStyle}>\n <View style={{flexDirection: this.isRTL ? 'row-reverse' : 'row'}}>\n {\n data.map((item: any, index: number) => {\n return index >= minIndex && index <= maxIndex ? (\n <View key={'dots_' + this.generateItemKey(item, index, this.state.props)} \n style={[this.styles.dotStyle]}>\n </View>) : null;\n })\n }\n <Animated.View style={[\n this.styles.dotStyle,\n this.styles.activeDotStyle, {\n width: undefined,\n height: undefined,\n transform: [{\n translateX: this.dotPosition\n }]\n }, this.isRTL ? { right: 0 } : { left: 0}]}>\n <Animated.View style={[{\n width: 1,\n height: 1\n }, {\n // This is failing in Android\n // minWidth: this.dotScale\n }]}>\n </Animated.View>\n </Animated.View>\n </View>\n </View>);\n }\n\n renderWidget(props: WmCarouselProps) {\n const hasNavs = props.controls === 'both' || props.controls ==='navs';\n const hasDots = props.controls === 'both' || props.controls ==='indicators';\n let styles = this.styles;\n let data = props.type === 'dynamic' ? props.dataset : props.children;\n data = isArray(data) ? data : [];\n this.noOfSlides = data?.length || 0;\n let slideScale = undefined as any;\n let slideTranslateX = undefined as any;\n if (isArray(this.styles.slide?.transform)) {\n slideScale = (this.styles.slide?.transform?.find(o => !isUndefined((o as any).scale)) as any)?.scale;\n slideTranslateX = (this.styles.slide?.transform?.find(o => !isUndefined((o as any).translateX)) as any)?.translateX;\n }\n // TODO: loop prop on Carousel is not working Refer: https://github.com/meliorence/react-native-snap-carousel/issues/608\n return (\n <View style={styles.root}>\n {this._background}\n <SwipeAnimation.View \n enableGestures={props.enablegestures}\n style={{\n height: props.type === 'dynamic' ? undefined : '100%',\n }}\n direction='horizontal'\n ref={(r) => {this.animationView = r}}\n handlers = {this.animationHandlers}\n slideMinWidth={this.styles.slide.width}\n >\n {data.map((item: any, index: number) => {\n const isActive = index === this.state.activeIndex - 1;\n let scale = this.animationView?.animationPhase.interpolate({\n inputRange: [-2000, index - 1, index, index + 1, 2000],\n outputRange: [slideScale, slideScale, 1, slideScale, slideScale]\n });\n let translateX = this.animationView?.animationPhase.interpolate({\n inputRange: [-2000, index - 1, index, index + 1, 2000],\n outputRange: [-56, -56, 0, 56, 56]\n });\n return (\n <Animated.View key={this.generateItemKey(item, index, props)}\n onLayout={this.addSlideLayout.bind(this, index)}\n style={[\n {height: props.type === 'dynamic' ? undefined : '100%'},\n this.styles.slide,\n index === 0 ? this.styles.firstSlide : null,\n index === data.length - 1 ? this.styles.lastSlide: null,\n isActive ? this.styles.activeSlide: null,\n translateX && scale ? {\n transform: [\n {\n translateX: !isUndefined(slideTranslateX) ? slideTranslateX : translateX\n }, {\n scale: scale\n }\n ]\n } : null]}>\n <Tappable onTap={() => {\n this.onSlideChange(index + 1);\n const position = this.slidesLayout\n .filter((l , i) => i < index)\n .reduce((s, l) => s + l.width, 0);\n this.animationView?.setPosition(-1 * position);\n }} rippleColor={this.styles.root.rippleColor}>\n {this.renderItem(item, index)}\n </Tappable>\n </Animated.View>\n );\n })}\n </SwipeAnimation.View>\n {hasNavs ? (\n <View style={styles.btnPanel}>\n <WmIcon\n id={this.getTestId('prev_icon')}\n iconclass=\"wi wi-chevron-left fa-2x\"\n styles={styles.prevBtn}\n onTap={this.prev}\n accessibilitylabel='back'/>\n <WmIcon\n id={this.getTestId('next_icon')}\n iconclass=\"wi wi-chevron-right fa-2x\"\n styles={styles.nextBtn}\n onTap={this.next}\n accessibilitylabel='next'/>\n </View>): null}\n {hasDots && data ? this.renderPagination(data) : null}\n </View>);\n }\n}\n"],"mappings":";;;AAAA,OA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;MACjBqG,kBAAkB,EAAC;IAAM,CAAC,CACxB,CAAC,GAAG,IAAI,EACbzC,OAAO,IAAIvF,IAAI,GAAG,IAAI,CAACgE,gBAAgB,CAAChE,IAAI,CAAC,GAAG,IAC/C,CAAC;EACX;AACF"}
1
+ {"version":3,"names":["React","isArray","isUndefined","Animated","Easing","View","DefaultKeyExtractor","WmIcon","BaseComponent","BaseComponentState","SwipeAnimation","Tappable","WmCarouselProps","DEFAULT_CLASS","WmCarouselState","constructor","args","_defineProperty","WmCarousel","props","Value","bounds","e","_this$slidesLayout","_this$slidesLayout$ac","activeTabIndex","state","activeIndex","lower","slidesLayout","filter","l","i","reduce","s","width","center","upper","computePhase","value","_this$slidesLayout$ac2","w","Math","abs","onLower","onSlideChange","onUpper","noOfSlides","_this$animationView","animationView","setPosition","index","prevIndex","updateState","invokeEventCallback","animatePagination","item","type","renderSlide","children","data","dataset","length","_this$animationView2","_this$animationView3","goToUpper","_this$animationView4","goToLower","cleanup","push","stopPlay","addSlideLayout","nativeEvent","layout","forceUpdate","generateItemKey","itemkey","_showSkeleton","keyExtractor","getKey","autoPlay","initialized","animation","animationinterval","intervalId","setInterval","next","clearInterval","setTimeout","_this$animationView5","stopAnimation","startAnimation","onPropertyChange","name","$new","$old","_this$keyExtractor","clear","min","_this$styles$dotStyle","_this$styles$dotStyle2","_this$styles$dotStyle3","margin","styles","dotStyle","marginLeft","marginRight","size","position","max","scale","options","useNativeDriver","duration","easing","out","linear","sequence","timing","dotScale","toValue","parallel","dotPosition","isRTL","start","renderPagination","maxNoOfDots","maxnoofdots","minIndex","maxIndex","dotSkeleton","root","createElement","style","dotsWrapperStyle","flexDirection","map","_extends","key","getTestPropsForAction","activeDotStyle","undefined","height","transform","translateX","right","left","renderSkeleton","skeleton","renderItem","componentDidMount","renderWidget","_data","_this$styles$slide","hasNavs","controls","hasDots","slideScale","slideTranslateX","slide","_this$styles$slide2","_this$styles$slide3","find","o","_background","enableGestures","enablegestures","flex","direction","ref","r","handlers","animationHandlers","slideMinWidth","_this$animationView6","_this$animationView7","isActive","animationPhase","interpolate","inputRange","outputRange","onLayout","bind","firstSlide","lastSlide","activeSlide","onTap","_this$animationView8","rippleColor","btnPanel","id","getTestId","iconclass","prevBtn","prev","accessibilitylabel","nextBtn"],"sources":["carousel.component.tsx"],"sourcesContent":["import React from 'react';\nimport { isArray, isUndefined } from 'lodash-es';\nimport { Animated, Easing, View, LayoutChangeEvent, LayoutRectangle } from 'react-native';\nimport { DefaultKeyExtractor } from '@wavemaker/app-rn-runtime/core/key.extractor';\nimport WmIcon from '@wavemaker/app-rn-runtime/components/basic/icon/icon.component';\nimport { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';\nimport * as SwipeAnimation from '@wavemaker/app-rn-runtime/gestures/swipe.animation';\nimport { Tappable } from '@wavemaker/app-rn-runtime/core/tappable.component';\n\nimport WmCarouselProps from './carousel.props';\nimport { DEFAULT_CLASS, WmCarouselStyles } from './carousel.styles';\nimport { createSkeleton } from '@wavemaker/app-rn-runtime/components/basic/skeleton/skeleton.component';\n\nexport class WmCarouselState extends BaseComponentState<WmCarouselProps> {\n activeIndex = 1;\n}\n\nexport default class WmCarousel extends BaseComponent<WmCarouselProps, WmCarouselState, WmCarouselStyles> {\n\n noOfSlides: number = 0;\n private slidesLayout: LayoutRectangle[] = [];\n private keyExtractor = new DefaultKeyExtractor();\n stopPlay: Function = null as any;\n private dotScale = new Animated.Value(0);\n private dotPosition = new Animated.Value(0);\n private animationView: SwipeAnimation.View | null = null as any;\n private animationHandlers = {\n bounds: (e) => {\n const activeTabIndex = this.state.activeIndex - 1;\n let lower = 0;\n if (activeTabIndex > 0) {\n lower = this.slidesLayout\n .filter((l , i) => i < activeTabIndex - 1)\n .reduce((s, l) => s + l.width, 0);\n }\n let center = lower + (this.slidesLayout[activeTabIndex - 1]?.width || 0);\n let upper = center + (this.slidesLayout[activeTabIndex]?.width || 0);\n return {\n lower: -1 * lower,\n center: -1 * center,\n upper: -1 * upper\n };\n },\n computePhase: (value) => {\n const activeTabIndex = this.state.activeIndex - 1;\n const w = this.slidesLayout[activeTabIndex]?.width || 0;\n return w && Math.abs(value / w);\n },\n onLower: (e) => {\n this.onSlideChange(this.state.activeIndex - 1);\n },\n onUpper: (e) => {\n if(this.noOfSlides < this.state.activeIndex + 1){\n this.onSlideChange(1);\n this.animationView?.setPosition(0);\n }\n else{\n this.onSlideChange(this.state.activeIndex + 1);\n }\n }\n } as SwipeAnimation.Handlers;\n\n constructor(props: WmCarouselProps) {\n super(props, DEFAULT_CLASS, new WmCarouselProps(), new WmCarouselState());\n this.cleanup.push(() => {\n this.stopPlay && this.stopPlay();\n })\n }\n\n addSlideLayout(index: number, nativeEvent: LayoutChangeEvent) {\n this.slidesLayout[index] = nativeEvent.nativeEvent.layout;\n if (index === this.state.activeIndex) {\n this.forceUpdate();\n }\n }\n\n private generateItemKey(item: any, index: number, props: WmCarouselProps) {\n if (props.itemkey && item && !this._showSkeleton) {\n return props.itemkey(item, index);\n }\n return 'list_item_' + this.keyExtractor.getKey(item, true);\n }\n\n autoPlay() {\n if(!this.initialized){\n return;\n }\n const props = this.state.props;\n this.stopPlay && this.stopPlay();\n if (props.animation === 'auto' && props.animationinterval) {\n const intervalId = setInterval(() => {\n this.next();\n }, props.animationinterval * 1000);\n this.stopPlay = () => clearInterval(intervalId);\n } else {\n setTimeout(() => {\n this.onSlideChange(1);\n this.animationView?.setPosition(0);\n }, 1000);\n }\n }\n\n stopAnimation(){ \n this.stopPlay();\n }\n startAnimation() {\n this.autoPlay();\n }\n \n\n onPropertyChange(name: string, $new: any, $old: any): void {\n super.onPropertyChange(name, $new, $old);\n switch (name) {\n case 'dataset': {\n this.keyExtractor?.clear();\n this.updateState({\n activeIndex: Math.min(this.state.activeIndex, $new?.length || 1)\n } as WmCarouselState);\n break;\n }\n case 'animation':\n case 'animationinterval' : {\n this.autoPlay();\n }\n }\n }\n\n animatePagination(index: number) {\n const prevIndex = this.state.activeIndex;\n const margin = ((this.styles.dotStyle?.marginLeft as number)|| 0) + \n ((this.styles.dotStyle?.marginRight as number)|| 0)\n const width = (this.styles.dotStyle?.width as number)|| 2;\n const size = margin + width;\n const position = Math.max(index - 1, 0) * size;\n const scale = Math.abs(index - prevIndex) * size;\n const options = {\n useNativeDriver: true,\n duration: 200,\n easing: Easing.out(Easing.linear)\n };\n if (prevIndex < index) {\n Animated.sequence([\n Animated.timing(this.dotScale, {\n toValue: scale,\n ...options\n }),\n Animated.parallel([\n Animated.timing(this.dotScale, {\n toValue: 0,\n ...options\n }),\n Animated.timing(this.dotPosition, {\n toValue: (this.isRTL ? -1: 1) * position,\n ...options\n })\n ])\n ]).start();\n } else if (prevIndex > index) {\n Animated.sequence([\n Animated.parallel([\n Animated.timing(this.dotScale, {\n toValue: scale,\n ...options\n }),\n Animated.timing(this.dotPosition, {\n toValue: (this.isRTL ? -1: 1) * position,\n ...options\n })\n ]),\n Animated.timing(this.dotScale, {\n toValue: 0,\n ...options\n }),\n ]).start();\n } \n }\n\n onSlideChange = (index: number) => {\n const prevIndex = this.state.activeIndex;\n this.updateState({\n activeIndex: index\n } as WmCarouselState,\n () => this.invokeEventCallback('onChange', [this, index, prevIndex]));\n this.animatePagination(index);\n }\n\n renderItem = (item: any, index: number) => {\n const props = this.state.props;\n if (props.type === 'dynamic') {\n return props.renderSlide ? props.renderSlide(item, index, this) : null;\n }\n return props.children[index];\n }\n\n next = () => {\n const props = this.state.props;\n const data = props.type === 'dynamic' ? props.dataset : props.children;\n if (this.state.activeIndex >= data?.length || 0) {\n this.onSlideChange(1);\n this.animationView?.setPosition(0);\n } else {\n this.animationView?.goToUpper();\n }\n }\n\n prev = () => {\n this.animationView?.goToLower();\n }\n\n renderPagination(data: any) {\n const maxNoOfDots = this.state.props.maxnoofdots;\n let minIndex = Math.max(this.state.activeIndex - maxNoOfDots + 1, 0);\n let maxIndex = Math.min(minIndex + maxNoOfDots - 1, data.length);\n if (maxIndex === data.length) {\n minIndex = maxIndex - maxNoOfDots;\n }\n const dotStyle = this._showSkeleton ? {\n ...this.styles.dotStyle,\n ...this.styles.dotSkeleton.root\n } : this.styles.dotStyle\n return (<View style={this.styles.dotsWrapperStyle}>\n <View style={{flexDirection: this.isRTL ? 'row-reverse' : 'row'}}>\n {\n data.map((item: any, index: number) => {\n return index >= minIndex && index <= maxIndex ? (\n <View key={'dots_' + this.generateItemKey(item, index, this.state.props)} {...this.getTestPropsForAction('indicator'+index)}\n style={[dotStyle]}>\n </View>) : null;\n })\n }\n {\n this._showSkeleton ? null : <Animated.View style={[\n this.styles.dotStyle,\n this.styles.activeDotStyle, {\n width: undefined,\n height: undefined,\n transform: [{\n translateX: this.dotPosition\n }]\n }, this.isRTL ? { right: 0 } : { left: 0}]}>\n <Animated.View style={[{\n width: 1,\n height: 1\n }, {\n // This is failing in Android\n // minWidth: this.dotScale\n }]}>\n </Animated.View>\n </Animated.View>\n }\n </View>\n </View>);\n }\n\n public renderSkeleton(props: WmCarouselProps): React.ReactNode | null {\n return <View style={[this.styles.root, {...this.styles.skeleton.root}]}>\n {this.renderItem({}, 0)}\n {this.renderPagination([{}, {}, {}])}\n </View>\n }\n\n componentDidMount(): void {\n super.componentDidMount();\n this.autoPlay();\n }\n\n renderWidget(props: WmCarouselProps) {\n const hasNavs = props.controls === 'both' || props.controls ==='navs';\n const hasDots = props.controls === 'both' || props.controls ==='indicators';\n let styles = this.styles;\n let data = props.type === 'dynamic' ? props.dataset : props.children;\n data = isArray(data) ? data : [];\n this.noOfSlides = data?.length || 0;\n let slideScale = undefined as any;\n let slideTranslateX = undefined as any;\n if (isArray(this.styles.slide?.transform)) {\n slideScale = (this.styles.slide?.transform?.find(o => !isUndefined((o as any).scale)) as any)?.scale;\n slideTranslateX = (this.styles.slide?.transform?.find(o => !isUndefined((o as any).translateX)) as any)?.translateX;\n }\n // TODO: loop prop on Carousel is not working Refer: https://github.com/meliorence/react-native-snap-carousel/issues/608\n return (\n <View style={styles.root}>\n {this._background}\n <SwipeAnimation.View \n enableGestures={props.enablegestures && this.noOfSlides > 1}\n style={{\n flex: 1\n }}\n direction='horizontal'\n ref={(r) => {this.animationView = r}}\n handlers = {this.animationHandlers}\n slideMinWidth={this.styles.slide.width}\n >\n {data.map((item: any, index: number) => {\n const isActive = index === this.state.activeIndex - 1;\n let scale = this.animationView?.animationPhase.interpolate({\n inputRange: [-2000, index - 1, index, index + 1, 2000],\n outputRange: [slideScale, slideScale, 1, slideScale, slideScale]\n });\n let translateX = this.animationView?.animationPhase.interpolate({\n inputRange: [-2000, index - 1, index, index + 1, 2000],\n outputRange: [-56, -56, 0, 56, 56]\n });\n return (\n <Animated.View key={this.generateItemKey(item, index, props)}\n onLayout={this.addSlideLayout.bind(this, index)}\n style={[\n {height: props.type === 'dynamic' ? undefined : '100%'},\n this.styles.slide,\n index === 0 ? this.styles.firstSlide : null,\n index === data.length - 1 ? this.styles.lastSlide: null,\n isActive ? this.styles.activeSlide: null,\n translateX && scale ? {\n transform: [\n {\n translateX: !isUndefined(slideTranslateX) ? slideTranslateX : translateX\n }, {\n scale: scale\n }\n ]\n } : null]}>\n <Tappable onTap={() => {\n this.onSlideChange(index + 1);\n const position = this.slidesLayout\n .filter((l , i) => i < index)\n .reduce((s, l) => s + l.width, 0);\n this.animationView?.setPosition(-1 * position);\n }} rippleColor={this.styles.root.rippleColor} styles={{height: \"100%\"}}>\n {this.renderItem(item, index)}\n </Tappable>\n </Animated.View>\n );\n })}\n </SwipeAnimation.View>\n {hasNavs ? (\n <View style={styles.btnPanel}>\n <WmIcon\n id={this.getTestId('prev_icon')}\n iconclass=\"wi wi-chevron-left fa-2x\"\n styles={styles.prevBtn}\n onTap={this.prev}\n accessibilitylabel='back'/>\n <WmIcon\n id={this.getTestId('next_icon')}\n iconclass=\"wi wi-chevron-right fa-2x\"\n styles={styles.nextBtn}\n onTap={this.next}\n accessibilitylabel='next'/>\n </View>): null}\n {hasDots && data ? this.renderPagination(data) : null}\n </View>);\n }\n}\n"],"mappings":";;;;AAAA,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,SAAS,EAAC,2BAA2B;MACrCzF,MAAM,EAAEA,MAAM,CAAC6F,OAAQ;MACvBV,KAAK,EAAE,IAAI,CAACpG,IAAK;MACjB6G,kBAAkB,EAAC;IAAM,CAAC,CACxB,CAAC,GAAG,IAAI,EACbvC,OAAO,IAAIhG,IAAI,GAAG,IAAI,CAACiE,gBAAgB,CAACjE,IAAI,CAAC,GAAG,IAC/C,CAAC;EACX;AACF","ignoreList":[]}
@@ -1,10 +1,10 @@
1
1
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
2
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
3
- function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
2
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
3
+ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
4
4
  import { BaseProps } from '@wavemaker/app-rn-runtime/core/base.component';
5
5
  export default class WmCarouselProps extends BaseProps {
6
- constructor() {
7
- super(...arguments);
6
+ constructor(...args) {
7
+ super(...args);
8
8
  _defineProperty(this, "dataset", null);
9
9
  _defineProperty(this, "type", 'static');
10
10
  _defineProperty(this, "animation", 'auto');
@@ -15,6 +15,7 @@ export default class WmCarouselProps extends BaseProps {
15
15
  _defineProperty(this, "renderSlide", void 0);
16
16
  _defineProperty(this, "enablegestures", true);
17
17
  _defineProperty(this, "maxnoofdots", 20);
18
+ _defineProperty(this, "showskeletonchildren", false);
18
19
  }
19
20
  }
20
21
  //# sourceMappingURL=carousel.props.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["BaseProps","WmCarouselProps","constructor","arguments","_defineProperty"],"sources":["carousel.props.ts"],"sourcesContent":["import { BaseProps } from '@wavemaker/app-rn-runtime/core/base.component';\nimport React from 'react';\n\nexport default class WmCarouselProps extends BaseProps {\n dataset: any = null;\n type?: 'static' | 'dynamic' = 'static';\n animation?: 'auto' | 'none' = 'auto';\n animationinterval?: number = 3;\n controls?: 'both' | 'none' | 'navs' | 'indicators' = 'both';\n children? = null as any;\n itemkey?: ($item: any, $index: any) => any = null as any;\n renderSlide?: ($item: any, $index: number, carousel: any) => React.ReactNode;\n enablegestures = true;\n maxnoofdots = 20;\n}"],"mappings":";;;AAAA,SAASA,SAAS,QAAQ,+CAA+C;AAGzE,eAAe,MAAMC,eAAe,SAASD,SAAS,CAAC;EAAAE,YAAA;IAAA,SAAAC,SAAA;IAAAC,eAAA,kBACtC,IAAI;IAAAA,eAAA,eACW,QAAQ;IAAAA,eAAA,oBACR,MAAM;IAAAA,eAAA,4BACP,CAAC;IAAAA,eAAA,mBACuB,MAAM;IAAAA,eAAA,mBAC/C,IAAI;IAAAA,eAAA,kBAC6B,IAAI;IAAAA,eAAA;IAAAA,eAAA,yBAE/B,IAAI;IAAAA,eAAA,sBACR,EAAE;EAAA;AAClB"}
1
+ {"version":3,"names":["BaseProps","WmCarouselProps","constructor","args","_defineProperty"],"sources":["carousel.props.ts"],"sourcesContent":["import { BaseProps } from '@wavemaker/app-rn-runtime/core/base.component';\nimport React from 'react';\n\nexport default class WmCarouselProps extends BaseProps {\n dataset: any = null;\n type?: 'static' | 'dynamic' = 'static';\n animation?: 'auto' | 'none' = 'auto';\n animationinterval?: number = 3;\n controls?: 'both' | 'none' | 'navs' | 'indicators' = 'both';\n children? = null as any;\n itemkey?: ($item: any, $index: any) => any = null as any;\n renderSlide?: ($item: any, $index: number, carousel: any) => React.ReactNode;\n enablegestures = true;\n maxnoofdots = 20;\n showskeletonchildren?: boolean = false;\n}"],"mappings":";;;AAAA,SAASA,SAAS,QAAQ,+CAA+C;AAGzE,eAAe,MAAMC,eAAe,SAASD,SAAS,CAAC;EAAAE,YAAA,GAAAC,IAAA;IAAA,SAAAA,IAAA;IAAAC,eAAA,kBACtC,IAAI;IAAAA,eAAA,eACW,QAAQ;IAAAA,eAAA,oBACR,MAAM;IAAAA,eAAA,4BACP,CAAC;IAAAA,eAAA,mBACuB,MAAM;IAAAA,eAAA,mBAC/C,IAAI;IAAAA,eAAA,kBAC6B,IAAI;IAAAA,eAAA;IAAAA,eAAA,yBAE/B,IAAI;IAAAA,eAAA,sBACR,EAAE;IAAAA,eAAA,+BACiB,KAAK;EAAA;AACxC","ignoreList":[]}
@@ -88,6 +88,21 @@ BASE_THEME.registerStyle((themeVariables, addStyle) => {
88
88
  marginLeft: 2,
89
89
  marginRight: 2,
90
90
  backgroundColor: themeVariables.carouselDotColor
91
+ },
92
+ skeleton: {
93
+ root: {
94
+ width: '100%'
95
+ },
96
+ text: {}
97
+ },
98
+ dotSkeleton: {
99
+ root: {
100
+ width: 10,
101
+ height: 10,
102
+ borderRadius: 5,
103
+ opacity: 1,
104
+ backgroundColor: themeVariables.skeletonAnimatedBgColor
105
+ }
91
106
  }
92
107
  });
93
108
  addStyle(DEFAULT_CLASS, '', defaultStyles);
@@ -1 +1 @@
1
- {"version":3,"names":["BASE_THEME","defineStyles","DEFAULT_CLASS","registerStyle","themeVariables","addStyle","btn","height","width","borderRadius","borderColor","transparent","borderWidth","justifyContent","defaultStyles","root","position","rippleColor","text","slide","overflow","paddingHorizontal","transform","scale","firstSlide","lastSlide","activeSlide","btnPanel","top","marginTop","flexDirection","alignItems","prevBtn","marginLeft","backgroundColor","carouselPrevBgColor","fontSize","icon","color","carouselPrevBtnColor","nextBtn","marginRight","carouselNextBtnColor","dotsWrapperStyle","opacity","carouselDotWrapperBgColor","paddingTop","paddingBottom","activeDotStyle","carouselActiveDotColor","padding","dotStyle","carouselDotColor","rotateY","defaultColorF","right","alignSelf","primaryColor"],"sources":["carousel.styles.ts"],"sourcesContent":["import { ViewStyle } from 'react-native';\nimport BASE_THEME, { AllStyle } from '@wavemaker/app-rn-runtime/styles/theme';\nimport { BaseStyles, defineStyles } from '@wavemaker/app-rn-runtime/core/base.component';\nimport { WmIconStyles } from '@wavemaker/app-rn-runtime/components/basic/icon/icon.styles';\n\nexport type WmCarouselStyles = BaseStyles & {\n btnPanel: AllStyle,\n prevBtn: WmIconStyles,\n slide: AllStyle,\n firstSlide: AllStyle,\n lastSlide: AllStyle,\n activeSlide: AllStyle,\n nextBtn: WmIconStyles,\n dotsWrapperStyle: AllStyle,\n dotStyle: AllStyle,\n activeDotStyle: AllStyle\n};\nexport const DEFAULT_CLASS = 'app-carousel';\nBASE_THEME.registerStyle((themeVariables, addStyle) => {\n const btn: ViewStyle = {\n height: 48,\n width: 48,\n borderRadius: 48,\n borderColor: themeVariables.transparent,\n borderWidth: 1,\n justifyContent: 'center'\n };\n const defaultStyles: WmCarouselStyles = defineStyles({\n root: {\n position: 'relative',\n rippleColor: themeVariables.transparent\n },\n text: {},\n slide: {\n width: '100%',\n overflow: 'hidden',\n paddingHorizontal: 16,\n transform: [\n {\n scale: 0.8\n }\n ]\n },\n firstSlide: {},\n lastSlide: {},\n activeSlide: {},\n btnPanel: {\n position: 'absolute',\n top: '50%',\n marginTop: -64,\n height: 64,\n flexDirection: 'row',\n alignItems: 'center',\n justifyContent: 'space-between',\n width: '100%'\n },\n prevBtn : {\n root: {\n marginLeft: 12,\n ...btn,\n backgroundColor: themeVariables.carouselPrevBgColor,\n rippleColor: themeVariables.transparent\n },\n text: {\n fontSize: 32\n },\n icon : {\n color: themeVariables.carouselPrevBtnColor\n }\n } as WmIconStyles,\n nextBtn : {\n root: {\n marginRight: 12,\n ...btn,\n backgroundColor: themeVariables.carouselPrevBgColor,\n rippleColor: themeVariables.transparent\n },\n text: {\n fontSize: 32\n },\n icon : {\n color: themeVariables.carouselNextBtnColor\n }\n } as WmIconStyles,\n dotsWrapperStyle:{\n opacity: 1,\n backgroundColor: themeVariables.carouselDotWrapperBgColor,\n flexDirection: 'row',\n justifyContent: 'center',\n alignItems: 'center',\n paddingTop: 4,\n paddingBottom: 4\n },\n activeDotStyle: {\n position: 'absolute',\n backgroundColor: themeVariables.carouselActiveDotColor,\n opacity: 1,\n padding: 4\n },\n dotStyle: {\n width: 8,\n height: 8,\n borderRadius: 10,\n opacity: 0.2,\n marginLeft: 2,\n marginRight: 2,\n backgroundColor: themeVariables.carouselDotColor\n }\n } as WmCarouselStyles);\n\n addStyle(DEFAULT_CLASS, '', defaultStyles);\n addStyle(DEFAULT_CLASS + '-rtl', '', {\n prevBtn : {\n root:{\n transform: [{rotateY: '180deg'}]\n }\n },\n nextBtn : {\n root:{\n transform: [{rotateY: '180deg'}]\n }\n }\n });\n\n addStyle('app-carousel-1', '', {\n btnPanel: {\n top: '100%'\n },\n prevBtn: {\n root: {\n borderRadius: 6\n }\n },\n nextBtn: {\n root: {\n borderRadius: 6\n }\n }\n } as any as WmCarouselStyles);\n\n addStyle('app-carousel-2', '', {\n btnPanel: {\n backgroundColor: themeVariables.defaultColorF,\n width: '100%',\n top: '100%',\n right: 0,\n padding: 8,\n justifyContent: 'flex-end'\n },\n dotsWrapperStyle:{\n alignSelf: 'flex-start',\n justifyContent: 'flex-start'\n },\n activeDotStyle: {\n backgroundColor: themeVariables.primaryColor,\n },\n dotStyle: {\n backgroundColor: themeVariables.primaryColor,\n },\n prevBtn: {\n root: {\n backgroundColor: 'rgba(255, 255, 255, 0.1)',\n borderColor: themeVariables.primaryColor,\n },\n icon : {\n color: themeVariables.primaryColor\n }\n },\n nextBtn: {\n root: {\n marginLeft: 8,\n backgroundColor: 'rgba(255, 255, 255, 0.1)',\n borderColor: themeVariables.primaryColor,\n },\n icon : {\n color: themeVariables.primaryColor\n }\n }\n } as any as WmCarouselStyles);\n});"],"m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1
+ {"version":3,"names":["BASE_THEME","defineStyles","DEFAULT_CLASS","registerStyle","themeVariables","addStyle","btn","height","width","borderRadius","borderColor","transparent","borderWidth","justifyContent","defaultStyles","root","position","rippleColor","text","slide","overflow","paddingHorizontal","transform","scale","firstSlide","lastSlide","activeSlide","btnPanel","top","marginTop","flexDirection","alignItems","prevBtn","marginLeft","backgroundColor","carouselPrevBgColor","fontSize","icon","color","carouselPrevBtnColor","nextBtn","marginRight","carouselNextBtnColor","dotsWrapperStyle","opacity","carouselDotWrapperBgColor","paddingTop","paddingBottom","activeDotStyle","carouselActiveDotColor","padding","dotStyle","carouselDotColor","skeleton","dotSkeleton","skeletonAnimatedBgColor","rotateY","defaultColorF","right","alignSelf","primaryColor"],"sources":["carousel.styles.ts"],"sourcesContent":["import { ViewStyle } from 'react-native';\nimport BASE_THEME, { AllStyle } from '@wavemaker/app-rn-runtime/styles/theme';\nimport { BaseStyles, defineStyles } from '@wavemaker/app-rn-runtime/core/base.component';\nimport { WmIconStyles } from '@wavemaker/app-rn-runtime/components/basic/icon/icon.styles';\nimport { WmSkeletonStyles } from '@wavemaker/app-rn-runtime/components/basic/skeleton/skeleton.styles';\n\nexport type WmCarouselStyles = BaseStyles & {\n btnPanel: AllStyle,\n prevBtn: WmIconStyles,\n slide: AllStyle,\n firstSlide: AllStyle,\n lastSlide: AllStyle,\n activeSlide: AllStyle,\n nextBtn: WmIconStyles,\n dotsWrapperStyle: AllStyle,\n dotStyle: AllStyle,\n activeDotStyle: AllStyle,\n skeleton: WmSkeletonStyles\n dotSkeleton: WmSkeletonStyles\n};\nexport const DEFAULT_CLASS = 'app-carousel';\nBASE_THEME.registerStyle((themeVariables, addStyle) => {\n const btn: ViewStyle = {\n height: 48,\n width: 48,\n borderRadius: 48,\n borderColor: themeVariables.transparent,\n borderWidth: 1,\n justifyContent: 'center'\n };\n const defaultStyles: WmCarouselStyles = defineStyles({\n root: {\n position: 'relative',\n rippleColor: themeVariables.transparent\n },\n text: {},\n slide: {\n width: '100%',\n overflow: 'hidden',\n paddingHorizontal: 16,\n transform: [\n {\n scale: 0.8\n }\n ]\n },\n firstSlide: {},\n lastSlide: {},\n activeSlide: {},\n btnPanel: {\n position: 'absolute',\n top: '50%',\n marginTop: -64,\n height: 64,\n flexDirection: 'row',\n alignItems: 'center',\n justifyContent: 'space-between',\n width: '100%'\n },\n prevBtn : {\n root: {\n marginLeft: 12,\n ...btn,\n backgroundColor: themeVariables.carouselPrevBgColor,\n rippleColor: themeVariables.transparent\n },\n text: {\n fontSize: 32\n },\n icon : {\n color: themeVariables.carouselPrevBtnColor\n }\n } as WmIconStyles,\n nextBtn : {\n root: {\n marginRight: 12,\n ...btn,\n backgroundColor: themeVariables.carouselPrevBgColor,\n rippleColor: themeVariables.transparent\n },\n text: {\n fontSize: 32\n },\n icon : {\n color: themeVariables.carouselNextBtnColor\n }\n } as WmIconStyles,\n dotsWrapperStyle:{\n opacity: 1,\n backgroundColor: themeVariables.carouselDotWrapperBgColor,\n flexDirection: 'row',\n justifyContent: 'center',\n alignItems: 'center',\n paddingTop: 4,\n paddingBottom: 4\n },\n activeDotStyle: {\n position: 'absolute',\n backgroundColor: themeVariables.carouselActiveDotColor,\n opacity: 1,\n padding: 4\n },\n dotStyle: {\n width: 8,\n height: 8,\n borderRadius: 10,\n opacity: 0.2,\n marginLeft: 2,\n marginRight: 2,\n backgroundColor: themeVariables.carouselDotColor\n },\n skeleton: {\n root: {\n width: '100%',\n },\n text: {}\n } as any as WmSkeletonStyles,\n dotSkeleton: {\n root: {\n width: 10,\n height: 10,\n borderRadius: 5,\n opacity: 1,\n backgroundColor: themeVariables.skeletonAnimatedBgColor \n }\n } as any as WmSkeletonStyles\n } as WmCarouselStyles);\n\n addStyle(DEFAULT_CLASS, '', defaultStyles);\n addStyle(DEFAULT_CLASS + '-rtl', '', {\n prevBtn : {\n root:{\n transform: [{rotateY: '180deg'}]\n }\n },\n nextBtn : {\n root:{\n transform: [{rotateY: '180deg'}]\n }\n }\n });\n\n addStyle('app-carousel-1', '', {\n btnPanel: {\n top: '100%'\n },\n prevBtn: {\n root: {\n borderRadius: 6\n }\n },\n nextBtn: {\n root: {\n borderRadius: 6\n }\n }\n } as any as WmCarouselStyles);\n\n addStyle('app-carousel-2', '', {\n btnPanel: {\n backgroundColor: themeVariables.defaultColorF,\n width: '100%',\n top: '100%',\n right: 0,\n padding: 8,\n justifyContent: 'flex-end'\n },\n dotsWrapperStyle:{\n alignSelf: 'flex-start',\n justifyContent: 'flex-start'\n },\n activeDotStyle: {\n backgroundColor: themeVariables.primaryColor,\n },\n dotStyle: {\n backgroundColor: themeVariables.primaryColor,\n },\n prevBtn: {\n root: {\n backgroundColor: 'rgba(255, 255, 255, 0.1)',\n borderColor: themeVariables.primaryColor,\n },\n icon : {\n color: themeVariables.primaryColor\n }\n },\n nextBtn: {\n root: {\n marginLeft: 8,\n backgroundColor: 'rgba(255, 255, 255, 0.1)',\n borderColor: themeVariables.primaryColor,\n },\n icon : {\n color: themeVariables.primaryColor\n }\n }\n } as any as WmCarouselStyles);\n});"],"mappings":"AACA,OAAOA,UAAU,MAAoB,wCAAwC;AAC7E,SAAqBC,YAAY,QAAQ,+CAA+C;AAkBxF,OAAO,MAAMC,aAAa,GAAG,cAAc;AAC3CF,UAAU,CAACG,aAAa,CAAC,CAACC,cAAc,EAAEC,QAAQ,KAAK;EACnD,MAAMC,GAAc,GAAG;IACnBC,MAAM,EAAE,EAAE;IACVC,KAAK,EAAE,EAAE;IACTC,YAAY,EAAE,EAAE;IAChBC,WAAW,EAAEN,cAAc,CAACO,WAAW;IACvCC,WAAW,EAAE,CAAC;IACdC,cAAc,EAAE;EACpB,CAAC;EACD,MAAMC,aAA+B,GAAGb,YAAY,CAAC;IACjDc,IAAI,EAAE;MACFC,QAAQ,EAAE,UAAU;MACpBC,WAAW,EAAEb,cAAc,CAACO;IAChC,CAAC;IACDO,IAAI,EAAE,CAAC,CAAC;IACRC,KAAK,EAAE;MACHX,KAAK,EAAE,MAAM;M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AE;MACLzB,IAAI,EAAE;QACFN,YAAY,EAAE;MAClB;IACJ;EACJ,CAA4B,CAAC;EAE7BJ,QAAQ,CAAC,gBAAgB,EAAE,EAAE,EAAE;IAC3BsB,QAAQ,EAAE;MACNO,eAAe,EAAE9B,cAAc,CAACqD,aAAa;MAC7CjD,KAAK,EAAE,MAAM;MACboB,GAAG,EAAE,MAAM;MACX8B,KAAK,EAAE,CAAC;MACRR,OAAO,EAAE,CAAC;MACVrC,cAAc,EAAE;IACpB,CAAC;IACD8B,gBAAgB,EAAC;MACbgB,SAAS,EAAE,YAAY;MACvB9C,cAAc,EAAE;IACpB,CAAC;IACDmC,cAAc,EAAE;MACZd,eAAe,EAAE9B,cAAc,CAACwD;IACpC,CAAC;IACDT,QAAQ,EAAE;MACNjB,eAAe,EAAE9B,cAAc,CAACwD;IACpC,CAAC;IACD5B,OAAO,EAAE;MACLjB,IAAI,EAAE;QACFmB,eAAe,EAAE,0BAA0B;QAC3CxB,WAAW,EAAEN,cAAc,CAACwD;MAChC,CAAC;MACDvB,IAAI,EAAG;QACHC,KAAK,EAAElC,cAAc,CAACwD;MAC1B;IACJ,CAAC;IACDpB,OAAO,EAAE;MACLzB,IAAI,EAAE;QACFkB,UAAU,EAAE,CAAC;QACbC,eAAe,EAAE,0BAA0B;QAC3CxB,WAAW,EAAEN,cAAc,CAACwD;MAChC,CAAC;MACDvB,IAAI,EAAG;QACHC,KAAK,EAAElC,cAAc,CAACwD;MAC1B;IACJ;EACJ,CAA4B,CAAC;AACjC,CAAC,CAAC","ignoreList":[]}
@@ -1,15 +1,15 @@
1
1
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
2
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
3
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
4
- 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); }
3
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
4
+ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
5
5
  import React from 'react';
6
6
  import { Text, View } from 'react-native';
7
7
  import { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';
8
8
  import WmLoginProps from './login.props';
9
9
  import { DEFAULT_CLASS } from './login.styles';
10
10
  export class WmLoginState extends BaseComponentState {
11
- constructor() {
12
- super(...arguments);
11
+ constructor(...args) {
12
+ super(...args);
13
13
  _defineProperty(this, "errorMsg", '');
14
14
  }
15
15
  }
@@ -1 +1 @@
1
- {"version":3,"names":["React","Text","View","BaseComponent","BaseComponentState","WmLoginProps","DEFAULT_CLASS","WmLoginState","constructor","arguments","_defineProperty","WmLogin","props","onLoginSuccess","response","onLoginError","error","updateState","errorMsg","message","doLogin","formData","onLogin","bind","renderWidget","createElement","style","styles","root","_background","state","_extends","getTestPropsForLabel","errorMsgStyles","formStyles","children"],"sources":["login.component.tsx"],"sourcesContent":["import React from 'react';\nimport { Text, View } from 'react-native';\nimport { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';\n\nimport WmLoginProps from './login.props';\nimport { DEFAULT_CLASS, WmLoginStyles } from './login.styles';\nimport { AxiosError, AxiosResponse } from 'axios';\n\nexport class WmLoginState extends BaseComponentState<WmLoginProps> {\n errorMsg = '';\n}\n\nexport default class WmLogin extends BaseComponent<WmLoginProps, WmLoginState, WmLoginStyles> {\n constructor(props: WmLoginProps) {\n super(props, DEFAULT_CLASS, new WmLoginProps());\n }\n\n onLoginSuccess(response: AxiosResponse) {\n }\n\n onLoginError(error: AxiosError) {\n this.updateState({errorMsg: error?.message} as WmLoginState);\n }\n\n doLogin(formData: any) {\n this.props.onLogin(formData, this.onLoginSuccess.bind(this), this.onLoginError.bind(this));\n }\n\n renderWidget(props: WmLoginProps) {\n return (<View style={this.styles.root}>\n {this._background}\n {this.state.errorMsg && <Text {...this.getTestPropsForLabel('error')} style={this.styles.errorMsgStyles}>{this.state.errorMsg}</Text>}\n <View style={this.styles.formStyles}>{props.children}</View>\n </View>); \n }\n}\n"],"mappings":";;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AACzC,SAASC,aAAa,EAAEC,kBAAkB,QAAQ,+CAA+C;AAEjG,OAAOC,YAAY,MAAM,eAAe;AACxC,SAASC,aAAa,QAAuB,gBAAgB;AAG7D,OAAO,MAAMC,YAAY,SAASH,kBAAkB,CAAe;EAAAI,YAAA;IAAA,SAAAC,SAAA;IAAAC,eAAA,mBACtD,EAAE;EAAA;AACf;AAEA,eAAe,MAAMC,OAAO,SAASR,aAAa,CAA4C;EAC5FK,WAAWA,CAACI,KAAmB,EAAE;IAC/B,KAAK,CAACA,KAAK,EAAEN,aAAa,EAAE,IAAID,YAAY,CAAC,CAAC,CAAC;EACjD;EAEAQ,cAAcA,CAACC,QAAuB,EAAE,CACxC;EAEAC,YAAYA,CAACC,KAAiB,EAAE;IAC9B,IAAI,CAACC,WAAW,CAAC;MAACC,QAAQ,EAAEF,KAAK,aAALA,KAAK,uBAALA,KAAK,CAAEG;IAAO,CAAiB,CAAC;EAC9D;EAEAC,OAAOA,CAACC,QAAa,EAAE;IACrB,IAAI,CAACT,KAAK,CAACU,OAAO,CAACD,QAAQ,EAAE,IAAI,CAACR,cAAc,CAACU,IAAI,CAAC,IAAI,CAAC,EAAE,IAAI,CAACR,YAAY,CAACQ,IAAI,CAAC,IAAI,CAAC,CAAC;EAC5F;EAEAC,YAAYA,CAACZ,KAAmB,EAAE;IAChC,oBAAQZ,KAAA,CAAAyB,aAAA,CAACvB,IAAI;MAACwB,KAAK,EAAE,IAAI,CAACC,MAAM,CAACC;IAAK,GACnC,IAAI,CAACC,WAAW,EAChB,IAAI,CAACC,KAAK,CAACZ,QAAQ,iBAAIlB,KAAA,CAAAyB,aAAA,CAACxB,IAAI,EAAA8B,QAAA,KAAK,IAAI,CAACC,oBAAoB,CAAC,OAAO,CAAC;MAAEN,KAAK,EAAE,IAAI,CAACC,MAAM,CAACM;IAAe,IAAE,IAAI,CAACH,KAAK,CAACZ,QAAe,CAAC,eACrIlB,KAAA,CAAAyB,aAAA,CAACvB,IAAI;MAACwB,KAAK,EAAE,IAAI,CAACC,MAAM,CAACO;IAAW,GAAEtB,KAAK,CAACuB,QAAe,CACvD,CAAC;EACT;AACF"}
1
+ {"version":3,"names":["React","Text","View","BaseComponent","BaseComponentState","WmLoginProps","DEFAULT_CLASS","WmLoginState","constructor","args","_defineProperty","WmLogin","props","onLoginSuccess","response","onLoginError","error","updateState","errorMsg","message","doLogin","formData","onLogin","bind","renderWidget","createElement","style","styles","root","_background","state","_extends","getTestPropsForLabel","errorMsgStyles","formStyles","children"],"sources":["login.component.tsx"],"sourcesContent":["import React from 'react';\nimport { Text, View } from 'react-native';\nimport { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';\n\nimport WmLoginProps from './login.props';\nimport { DEFAULT_CLASS, WmLoginStyles } from './login.styles';\nimport { AxiosError, AxiosResponse } from 'axios';\n\nexport class WmLoginState extends BaseComponentState<WmLoginProps> {\n errorMsg = '';\n}\n\nexport default class WmLogin extends BaseComponent<WmLoginProps, WmLoginState, WmLoginStyles> {\n constructor(props: WmLoginProps) {\n super(props, DEFAULT_CLASS, new WmLoginProps());\n }\n\n onLoginSuccess(response: AxiosResponse) {\n }\n\n onLoginError(error: AxiosError) {\n this.updateState({errorMsg: error?.message} as WmLoginState);\n }\n\n doLogin(formData: any) {\n this.props.onLogin(formData, this.onLoginSuccess.bind(this), this.onLoginError.bind(this));\n }\n\n renderWidget(props: WmLoginProps) {\n return (<View style={this.styles.root}>\n {this._background}\n {this.state.errorMsg && <Text {...this.getTestPropsForLabel('error')} style={this.styles.errorMsgStyles}>{this.state.errorMsg}</Text>}\n <View style={this.styles.formStyles}>{props.children}</View>\n </View>); \n }\n}\n"],"mappings":";;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AACzC,SAASC,aAAa,EAAEC,kBAAkB,QAAQ,+CAA+C;AAEjG,OAAOC,YAAY,MAAM,eAAe;AACxC,SAASC,aAAa,QAAuB,gBAAgB;AAG7D,OAAO,MAAMC,YAAY,SAASH,kBAAkB,CAAe;EAAAI,YAAA,GAAAC,IAAA;IAAA,SAAAA,IAAA;IAAAC,eAAA,mBACtD,EAAE;EAAA;AACf;AAEA,eAAe,MAAMC,OAAO,SAASR,aAAa,CAA4C;EAC5FK,WAAWA,CAACI,KAAmB,EAAE;IAC/B,KAAK,CAACA,KAAK,EAAEN,aAAa,EAAE,IAAID,YAAY,CAAC,CAAC,CAAC;EACjD;EAEAQ,cAAcA,CAACC,QAAuB,EAAE,CACxC;EAEAC,YAAYA,CAACC,KAAiB,EAAE;IAC9B,IAAI,CAACC,WAAW,CAAC;MAACC,QAAQ,EAAEF,KAAK,aAALA,KAAK,uBAALA,KAAK,CAAEG;IAAO,CAAiB,CAAC;EAC9D;EAEAC,OAAOA,CAACC,QAAa,EAAE;IACrB,IAAI,CAACT,KAAK,CAACU,OAAO,CAACD,QAAQ,EAAE,IAAI,CAACR,cAAc,CAACU,IAAI,CAAC,IAAI,CAAC,EAAE,IAAI,CAACR,YAAY,CAACQ,IAAI,CAAC,IAAI,CAAC,CAAC;EAC5F;EAEAC,YAAYA,CAACZ,KAAmB,EAAE;IAChC,oBAAQZ,KAAA,CAAAyB,aAAA,CAACvB,IAAI;MAACwB,KAAK,EAAE,IAAI,CAACC,MAAM,CAACC;IAAK,GACnC,IAAI,CAACC,WAAW,EAChB,IAAI,CAACC,KAAK,CAACZ,QAAQ,iBAAIlB,KAAA,CAAAyB,aAAA,CAACxB,IAAI,EAAA8B,QAAA,KAAK,IAAI,CAACC,oBAAoB,CAAC,OAAO,CAAC;MAAEN,KAAK,EAAE,IAAI,CAACC,MAAM,CAACM;IAAe,IAAE,IAAI,CAACH,KAAK,CAACZ,QAAe,CAAC,eACrIlB,KAAA,CAAAyB,aAAA,CAACvB,IAAI;MAACwB,KAAK,EAAE,IAAI,CAACC,MAAM,CAACO;IAAW,GAAEtB,KAAK,CAACuB,QAAe,CACvD,CAAC;EACT;AACF","ignoreList":[]}
@@ -1,10 +1,10 @@
1
1
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
2
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
3
- function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
2
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
3
+ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
4
4
  import { BaseProps } from '@wavemaker/app-rn-runtime/core/base.component';
5
5
  export default class WmLoginProps extends BaseProps {
6
- constructor() {
7
- super(...arguments);
6
+ constructor(...args) {
7
+ super(...args);
8
8
  _defineProperty(this, "children", void 0);
9
9
  _defineProperty(this, "onLogin", () => {});
10
10
  }
@@ -1 +1 @@
1
- {"version":3,"names":["BaseProps","WmLoginProps","constructor","arguments","_defineProperty"],"sources":["login.props.ts"],"sourcesContent":["import { BaseProps } from '@wavemaker/app-rn-runtime/core/base.component';\n\nexport default class WmLoginProps extends BaseProps {\n children: any;\n onLogin: Function = () => {};\n}"],"mappings":";;;AAAA,SAASA,SAAS,QAAQ,+CAA+C;AAEzE,eAAe,MAAMC,YAAY,SAASD,SAAS,CAAC;EAAAE,YAAA;IAAA,SAAAC,SAAA;IAAAC,eAAA;IAAAA,eAAA,kBAE5B,MAAM,CAAC,CAAC;EAAA;AAChC"}
1
+ {"version":3,"names":["BaseProps","WmLoginProps","constructor","args","_defineProperty"],"sources":["login.props.ts"],"sourcesContent":["import { BaseProps } from '@wavemaker/app-rn-runtime/core/base.component';\n\nexport default class WmLoginProps extends BaseProps {\n children: any;\n onLogin: Function = () => {};\n}"],"mappings":";;;AAAA,SAASA,SAAS,QAAQ,+CAA+C;AAEzE,eAAe,MAAMC,YAAY,SAASD,SAAS,CAAC;EAAAE,YAAA,GAAAC,IAAA;IAAA,SAAAA,IAAA;IAAAC,eAAA;IAAAA,eAAA,kBAE5B,MAAM,CAAC,CAAC;EAAA;AAChC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["BASE_THEME","defineStyles","DEFAULT_CLASS","registerStyle","themeVariables","addStyle","defaultStyles","root","text","errorMsgStyles","color","loginErrorMsgColor","fontSize","backgroundColor","loginErrorMsgBgColor","borderColor","loginErrorMsgBorderColor","padding","fontFamily","baseFont","formStyles","paddingStyle"],"sources":["login.styles.ts"],"sourcesContent":["import BASE_THEME, {AllStyle} from '@wavemaker/app-rn-runtime/styles/theme';\nimport { BaseStyles, defineStyles } from '@wavemaker/app-rn-runtime/core/base.component';\nimport ThemeVariables from \"@wavemaker/app-rn-runtime/styles/theme.variables\";\n\nexport type WmLoginStyles = BaseStyles & {\n errorMsgStyles: AllStyle,\n formStyles: AllStyle\n};\n\nexport const DEFAULT_CLASS = 'app-login';\n\nBASE_THEME.registerStyle((themeVariables, addStyle) => {\n const defaultStyles: WmLoginStyles = defineStyles({\n root: {},\n text: {},\n errorMsgStyles: { \n color: themeVariables.loginErrorMsgColor, \n fontSize: 14, \n backgroundColor: themeVariables.loginErrorMsgBgColor , \n borderColor: themeVariables.loginErrorMsgBorderColor, \n padding: 12,\n fontFamily: themeVariables.baseFont\n },\n formStyles: {\n padding: 35\n }\n });\n\n addStyle(DEFAULT_CLASS, '', defaultStyles);\n\n const paddingStyle = {\n padding: 5\n };\n addStyle('app-login-username', DEFAULT_CLASS, {\n root: paddingStyle\n });\n\n addStyle('app-login-password', DEFAULT_CLASS, {\n root: paddingStyle\n });\n});"],"mappings":"AAAA,OAAOA,UAAU,MAAkB,wCAAwC;AAC3E,SAAqBC,YAAY,QAAQ,+CAA+C;AAQxF,OAAO,MAAMC,aAAa,GAAG,WAAW;AAExCF,UAAU,CAACG,aAAa,CAAC,CAACC,cAAc,EAAEC,QAAQ,KAAK;EACnD,MAAMC,aAA4B,GAAGL,YAAY,CAAC;IAC9CM,IAAI,EAAE,CAAC,CAAC;IACRC,IAAI,EAAE,CAAC,CAAC;IACRC,cAAc,EAAE;MACZC,KAAK,EAAEN,cAAc,CAACO,kBAAkB;MACxCC,QAAQ,EAAE,EAAE;MACZC,eAAe,EAAET,cAAc,CAACU,oBAAoB;MACpDC,WAAW,EAAEX,cAAc,CAACY,wBAAwB;MACpDC,OAAO,EAAE,EAAE;MACXC,UAAU,EAAEd,cAAc,CAACe;IAC/B,CAAC;IACDC,UAAU,EAAE;MACRH,OAAO,EAAE;IACb;EACJ,CAAC,CAAC;EAEFZ,QAAQ,CAACH,aAAa,EAAE,EAAE,EAAEI,aAAa,CAAC;EAE1C,MAAMe,YAAY,GAAG;IACjBJ,OAAO,EAAE;EACb,CAAC;EACDZ,QAAQ,CAAC,oBAAoB,EAAEH,aAAa,EAAE;IAC1CK,IAAI,EAAEc;EACV,CAAC,CAAC;EAEFhB,QAAQ,CAAC,oBAAoB,EAAEH,aAAa,EAAE;IAC1CK,IAAI,EAAEc;EACV,CAAC,CAAC;AACN,CAAC,CAAC"}
1
+ {"version":3,"names":["BASE_THEME","defineStyles","DEFAULT_CLASS","registerStyle","themeVariables","addStyle","defaultStyles","root","text","errorMsgStyles","color","loginErrorMsgColor","fontSize","backgroundColor","loginErrorMsgBgColor","borderColor","loginErrorMsgBorderColor","padding","fontFamily","baseFont","formStyles","paddingStyle"],"sources":["login.styles.ts"],"sourcesContent":["import BASE_THEME, {AllStyle} from '@wavemaker/app-rn-runtime/styles/theme';\nimport { BaseStyles, defineStyles } from '@wavemaker/app-rn-runtime/core/base.component';\nimport ThemeVariables from \"@wavemaker/app-rn-runtime/styles/theme.variables\";\n\nexport type WmLoginStyles = BaseStyles & {\n errorMsgStyles: AllStyle,\n formStyles: AllStyle\n};\n\nexport const DEFAULT_CLASS = 'app-login';\n\nBASE_THEME.registerStyle((themeVariables, addStyle) => {\n const defaultStyles: WmLoginStyles = defineStyles({\n root: {},\n text: {},\n errorMsgStyles: { \n color: themeVariables.loginErrorMsgColor, \n fontSize: 14, \n backgroundColor: themeVariables.loginErrorMsgBgColor , \n borderColor: themeVariables.loginErrorMsgBorderColor, \n padding: 12,\n fontFamily: themeVariables.baseFont\n },\n formStyles: {\n padding: 35\n }\n });\n\n addStyle(DEFAULT_CLASS, '', defaultStyles);\n\n const paddingStyle = {\n padding: 5\n };\n addStyle('app-login-username', DEFAULT_CLASS, {\n root: paddingStyle\n });\n\n addStyle('app-login-password', DEFAULT_CLASS, {\n root: paddingStyle\n });\n});"],"mappings":"AAAA,OAAOA,UAAU,MAAkB,wCAAwC;AAC3E,SAAqBC,YAAY,QAAQ,+CAA+C;AAQxF,OAAO,MAAMC,aAAa,GAAG,WAAW;AAExCF,UAAU,CAACG,aAAa,CAAC,CAACC,cAAc,EAAEC,QAAQ,KAAK;EACnD,MAAMC,aAA4B,GAAGL,YAAY,CAAC;IAC9CM,IAAI,EAAE,CAAC,CAAC;IACRC,IAAI,EAAE,CAAC,CAAC;IACRC,cAAc,EAAE;MACZC,KAAK,EAAEN,cAAc,CAACO,kBAAkB;MACxCC,QAAQ,EAAE,EAAE;MACZC,eAAe,EAAET,cAAc,CAACU,oBAAoB;MACpDC,WAAW,EAAEX,cAAc,CAACY,wBAAwB;MACpDC,OAAO,EAAE,EAAE;MACXC,UAAU,EAAEd,cAAc,CAACe;IAC/B,CAAC;IACDC,UAAU,EAAE;MACRH,OAAO,EAAE;IACb;EACJ,CAAC,CAAC;EAEFZ,QAAQ,CAACH,aAAa,EAAE,EAAE,EAAEI,aAAa,CAAC;EAE1C,MAAMe,YAAY,GAAG;IACjBJ,OAAO,EAAE;EACb,CAAC;EACDZ,QAAQ,CAAC,oBAAoB,EAAEH,aAAa,EAAE;IAC1CK,IAAI,EAAEc;EACV,CAAC,CAAC;EAEFhB,QAAQ,CAAC,oBAAoB,EAAEH,aAAa,EAAE;IAC1CK,IAAI,EAAEc;EACV,CAAC,CAAC;AACN,CAAC,CAAC","ignoreList":[]}
@@ -1,7 +1,7 @@
1
1
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
2
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
3
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
4
- 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); }
3
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
4
+ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
5
5
  import React from 'react';
6
6
  import { Text, TouchableOpacity, View } from 'react-native';
7
7
  import NetworkService from '@wavemaker/app-rn-runtime/core/network.service';
@@ -11,8 +11,8 @@ import WmNetworkInfoToasterProps from './network-info-toaster.props';
11
11
  import { DEFAULT_CLASS } from './network-info-toaster.styles';
12
12
  import { isEqual } from 'lodash-es';
13
13
  export class WmNetworkInfoToasterState extends BaseComponentState {
14
- constructor() {
15
- super(...arguments);
14
+ constructor(...args) {
15
+ super(...args);
16
16
  _defineProperty(this, "newtworkState", {});
17
17
  _defineProperty(this, "showToast", false);
18
18
  }
@@ -1 +1 @@
1
- {"version":3,"names":["React","Text","TouchableOpacity","View","NetworkService","BaseComponent","BaseComponentState","ToastConsumer","WmNetworkInfoToasterProps","DEFAULT_CLASS","isEqual","WmNetworkInfoToasterState","constructor","arguments","_defineProperty","WmNetworkInfoToaster","props","updateState","newtworkState","getState","showToast","isConnected","cleanup","push","notifier","subscribe","networkState","state","getToastContent","createElement","style","styles","root","_background","_extends","getTestPropsForLabel","text","appLocale","messages","MESSAGE_SERVICE_CONNECTED","getTestPropsForAction","action","onPress","_close","actionText","LABEL_HIDE_NETWORK_INFO","isConnecting","MESSAGE_SERVICE_CONNECTING","isServiceAvailable","MESSAGE_SERVICE_AVAILABLE","actionSeparator","LABEL_CONNECT_TO_SERVICE","isNetworkAvailable","MESSAGE_NETWORK_NOT_AVAILABLE","MESSAGE_SERVICE_NOT_AVAILABLE","renderWidget","options","content","onClose","toastService","hideToast"],"sources":["network-info-toaster.component.tsx"],"sourcesContent":["import React from 'react';\nimport { Text, TouchableOpacity, View } from 'react-native';\nimport NetworkService, { NetworkState } from '@wavemaker/app-rn-runtime/core/network.service';\nimport { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';\nimport { ToastConsumer, ToastOptions, ToastService } from '@wavemaker/app-rn-runtime/core/toast.service';\n\nimport WmNetworkInfoToasterProps from './network-info-toaster.props';\nimport { DEFAULT_CLASS, WmNetworkInfoToasterStyles } from './network-info-toaster.styles';\nimport { isEqual } from 'lodash-es';\n\nexport class WmNetworkInfoToasterState extends BaseComponentState<WmNetworkInfoToasterProps> {\n newtworkState = {} as NetworkState;\n showToast = false;\n}\n\nexport default class WmNetworkInfoToaster extends BaseComponent<WmNetworkInfoToasterProps, WmNetworkInfoToasterState, WmNetworkInfoToasterStyles> {\n options = {} as ToastOptions;\n private _close: Function = null as any;\n\n constructor(props: WmNetworkInfoToasterProps) {\n super(props, DEFAULT_CLASS, new WmNetworkInfoToasterProps(), new WmNetworkInfoToasterState());\n this.updateState({\n newtworkState: NetworkService.getState(),\n showToast: !NetworkService.isConnected()\n } as WmNetworkInfoToasterState);\n this.cleanup.push(\n NetworkService.notifier.subscribe('onNetworkStateChange', (networkState: NetworkState) => {\n if (!isEqual(networkState, this.state.newtworkState)) {\n this.updateState({\n newtworkState: networkState,\n showToast: true\n } as WmNetworkInfoToasterState);\n }\n }\n ));\n }\n\n getToastContent() {\n if (this.state.newtworkState.isConnected) { \n return (\n <View style={this.styles.root}>\n {this._background}\n <Text {...this.getTestPropsForLabel('msg')} style={this.styles.text}>{this.props.appLocale.messages.MESSAGE_SERVICE_CONNECTED}</Text>\n <TouchableOpacity {...this.getTestPropsForAction('close')} style={this.styles.action} onPress={() => this._close()}>\n <Text style={this.styles.actionText}>{this.props.appLocale.messages.LABEL_HIDE_NETWORK_INFO}</Text>\n </TouchableOpacity>\n </View>);\n }\n if (this.state.newtworkState.isConnecting) { \n return (\n <View style={this.styles.root}>\n {this._background}\n <Text {...this.getTestPropsForLabel('msg')} style={this.styles.text}>{this.props.appLocale.messages.MESSAGE_SERVICE_CONNECTING}</Text>\n </View>);\n }\n if (this.state.newtworkState.isServiceAvailable) { \n return (\n <View style={this.styles.root}>\n {this._background}\n <Text {...this.getTestPropsForLabel('msg')} style={this.styles.text}>{this.props.appLocale.messages.MESSAGE_SERVICE_AVAILABLE}</Text>\n <TouchableOpacity {...this.getTestPropsForAction('close')} style={this.styles.action} onPress={() => this._close()}>\n <Text style={this.styles.actionText}>{this.props.appLocale.messages.LABEL_HIDE_NETWORK_INFO}</Text>\n </TouchableOpacity>\n <Text style={this.styles.actionSeparator}>|</Text>\n <TouchableOpacity {...this.getTestPropsForAction('connect')} style={this.styles.action}>\n <Text style={this.styles.actionText}>{this.props.appLocale.messages.LABEL_CONNECT_TO_SERVICE}</Text>\n </TouchableOpacity>\n </View>);\n }\n if (!this.state.newtworkState.isNetworkAvailable) { \n return (\n <View style={this.styles.root}>\n {this._background}\n <Text {...this.getTestPropsForLabel('msg')} style={this.styles.text}>{this.props.appLocale.messages.MESSAGE_NETWORK_NOT_AVAILABLE}</Text>\n <TouchableOpacity {...this.getTestPropsForAction('close')} style={this.styles.action} onPress={() => this._close()}>\n <Text style={this.styles.actionText}>{this.props.appLocale.messages.LABEL_HIDE_NETWORK_INFO}</Text>\n </TouchableOpacity>\n </View>);\n }\n return (\n <View style={this.styles.root}>\n {this._background}\n <Text {...this.getTestPropsForLabel('msg')} style={this.styles.text}>{this.props.appLocale.messages.MESSAGE_SERVICE_NOT_AVAILABLE}</Text>\n <TouchableOpacity {...this.getTestPropsForAction('close')} style={this.styles.action} onPress={() => this._close()}>\n <Text style={this.styles.actionText}>{this.props.appLocale.messages.LABEL_HIDE_NETWORK_INFO}</Text>\n </TouchableOpacity>\n </View>);\n }\n\n renderWidget(props: WmNetworkInfoToasterProps) {\n this.options.content = this.getToastContent();\n this.options.onClose = () => {\n this._close = null as any;\n this.updateState({\n showToast : false\n } as WmNetworkInfoToasterState);\n };\n return this.options.content && this.state.showToast ? (\n <ToastConsumer>\n {(toastService: ToastService) => {\n this._close = () => toastService.hideToast(this.options);\n toastService.showToast(this.options)\n return null;\n }}\n </ToastConsumer>\n ) : null; \n }\n}\n"],"mappings":";;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,gBAAgB,EAAEC,IAAI,QAAQ,cAAc;AAC3D,OAAOC,cAAc,MAAwB,gDAAgD;AAC7F,SAASC,aAAa,EAAEC,kBAAkB,QAAQ,+CAA+C;AACjG,SAASC,aAAa,QAAoC,8CAA8C;AAExG,OAAOC,yBAAyB,MAAM,8BAA8B;AACpE,SAASC,aAAa,QAAoC,+BAA+B;AACzF,SAASC,OAAO,QAAQ,WAAW;AAEnC,OAAO,MAAMC,yBAAyB,SAASL,kBAAkB,CAA4B;EAAAM,YAAA;IAAA,SAAAC,SAAA;IAAAC,eAAA,wBAC3E,CAAC,CAAC;IAAAA,eAAA,oBACN,KAAK;EAAA;AACnB;AAEA,eAAe,MAAMC,oBAAoB,SAASV,aAAa,CAAmF;EAIhJO,WAAWA,CAACI,KAAgC,EAAE;IAC5C,KAAK,CAACA,KAAK,EAAEP,aAAa,EAAE,IAAID,yBAAyB,CAAC,CAAC,EAAE,IAAIG,yBAAyB,CAAC,CAAC,CAAC;IAACG,eAAA,kBAJtF,CAAC,CAAC;IAAAA,eAAA,iBACe,IAAI;IAI7B,IAAI,CAACG,WAAW,CAAC;MACfC,aAAa,EAAEd,cAAc,CAACe,QAAQ,CAAC,CAAC;MACxCC,SAAS,EAAE,CAAChB,cAAc,CAACiB,WAAW,CAAC;IACzC,CAA8B,CAAC;IAC/B,IAAI,CAACC,OAAO,CAACC,IAAI,CACfnB,cAAc,CAACoB,QAAQ,CAACC,SAAS,CAAC,sBAAsB,EAAGC,YAA0B,IAAK;MACxF,IAAI,CAAChB,OAAO,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pacity","View","NetworkService","BaseComponent","BaseComponentState","ToastConsumer","WmNetworkInfoToasterProps","DEFAULT_CLASS","isEqual","WmNetworkInfoToasterState","constructor","args","_defineProperty","WmNetworkInfoToaster","props","updateState","newtworkState","getState","showToast","isConnected","cleanup","push","notifier","subscribe","networkState","state","getToastContent","createElement","style","styles","root","_background","_extends","getTestPropsForLabel","text","appLocale","messages","MESSAGE_SERVICE_CONNECTED","getTestPropsForAction","action","onPress","_close","actionText","LABEL_HIDE_NETWORK_INFO","isConnecting","MESSAGE_SERVICE_CONNECTING","isServiceAvailable","MESSAGE_SERVICE_AVAILABLE","actionSeparator","LABEL_CONNECT_TO_SERVICE","isNetworkAvailable","MESSAGE_NETWORK_NOT_AVAILABLE","MESSAGE_SERVICE_NOT_AVAILABLE","renderWidget","options","content","onClose","toastService","hideToast"],"sources":["network-info-toaster.component.tsx"],"sourcesContent":["import React from 'react';\nimport { Text, TouchableOpacity, View } from 'react-native';\nimport NetworkService, { NetworkState } from '@wavemaker/app-rn-runtime/core/network.service';\nimport { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';\nimport { ToastConsumer, ToastOptions, ToastService } from '@wavemaker/app-rn-runtime/core/toast.service';\n\nimport WmNetworkInfoToasterProps from './network-info-toaster.props';\nimport { DEFAULT_CLASS, WmNetworkInfoToasterStyles } from './network-info-toaster.styles';\nimport { isEqual } from 'lodash-es';\n\nexport class WmNetworkInfoToasterState extends BaseComponentState<WmNetworkInfoToasterProps> {\n newtworkState = {} as NetworkState;\n showToast = false;\n}\n\nexport default class WmNetworkInfoToaster extends BaseComponent<WmNetworkInfoToasterProps, WmNetworkInfoToasterState, WmNetworkInfoToasterStyles> {\n options = {} as ToastOptions;\n private _close: Function = null as any;\n\n constructor(props: WmNetworkInfoToasterProps) {\n super(props, DEFAULT_CLASS, new WmNetworkInfoToasterProps(), new WmNetworkInfoToasterState());\n this.updateState({\n newtworkState: NetworkService.getState(),\n showToast: !NetworkService.isConnected()\n } as WmNetworkInfoToasterState);\n this.cleanup.push(\n NetworkService.notifier.subscribe('onNetworkStateChange', (networkState: NetworkState) => {\n if (!isEqual(networkState, this.state.newtworkState)) {\n this.updateState({\n newtworkState: networkState,\n showToast: true\n } as WmNetworkInfoToasterState);\n }\n }\n ));\n }\n\n getToastContent() {\n if (this.state.newtworkState.isConnected) { \n return (\n <View style={this.styles.root}>\n {this._background}\n <Text {...this.getTestPropsForLabel('msg')} style={this.styles.text}>{this.props.appLocale.messages.MESSAGE_SERVICE_CONNECTED}</Text>\n <TouchableOpacity {...this.getTestPropsForAction('close')} style={this.styles.action} onPress={() => this._close()}>\n <Text style={this.styles.actionText}>{this.props.appLocale.messages.LABEL_HIDE_NETWORK_INFO}</Text>\n </TouchableOpacity>\n </View>);\n }\n if (this.state.newtworkState.isConnecting) { \n return (\n <View style={this.styles.root}>\n {this._background}\n <Text {...this.getTestPropsForLabel('msg')} style={this.styles.text}>{this.props.appLocale.messages.MESSAGE_SERVICE_CONNECTING}</Text>\n </View>);\n }\n if (this.state.newtworkState.isServiceAvailable) { \n return (\n <View style={this.styles.root}>\n {this._background}\n <Text {...this.getTestPropsForLabel('msg')} style={this.styles.text}>{this.props.appLocale.messages.MESSAGE_SERVICE_AVAILABLE}</Text>\n <TouchableOpacity {...this.getTestPropsForAction('close')} style={this.styles.action} onPress={() => this._close()}>\n <Text style={this.styles.actionText}>{this.props.appLocale.messages.LABEL_HIDE_NETWORK_INFO}</Text>\n </TouchableOpacity>\n <Text style={this.styles.actionSeparator}>|</Text>\n <TouchableOpacity {...this.getTestPropsForAction('connect')} style={this.styles.action}>\n <Text style={this.styles.actionText}>{this.props.appLocale.messages.LABEL_CONNECT_TO_SERVICE}</Text>\n </TouchableOpacity>\n </View>);\n }\n if (!this.state.newtworkState.isNetworkAvailable) { \n return (\n <View style={this.styles.root}>\n {this._background}\n <Text {...this.getTestPropsForLabel('msg')} style={this.styles.text}>{this.props.appLocale.messages.MESSAGE_NETWORK_NOT_AVAILABLE}</Text>\n <TouchableOpacity {...this.getTestPropsForAction('close')} style={this.styles.action} onPress={() => this._close()}>\n <Text style={this.styles.actionText}>{this.props.appLocale.messages.LABEL_HIDE_NETWORK_INFO}</Text>\n </TouchableOpacity>\n </View>);\n }\n return (\n <View style={this.styles.root}>\n {this._background}\n <Text {...this.getTestPropsForLabel('msg')} style={this.styles.text}>{this.props.appLocale.messages.MESSAGE_SERVICE_NOT_AVAILABLE}</Text>\n <TouchableOpacity {...this.getTestPropsForAction('close')} style={this.styles.action} onPress={() => this._close()}>\n <Text style={this.styles.actionText}>{this.props.appLocale.messages.LABEL_HIDE_NETWORK_INFO}</Text>\n </TouchableOpacity>\n </View>);\n }\n\n renderWidget(props: WmNetworkInfoToasterProps) {\n this.options.content = this.getToastContent();\n this.options.onClose = () => {\n this._close = null as any;\n this.updateState({\n showToast : false\n } as WmNetworkInfoToasterState);\n };\n return this.options.content && this.state.showToast ? (\n <ToastConsumer>\n {(toastService: ToastService) => {\n this._close = () => toastService.hideToast(this.options);\n toastService.showToast(this.options)\n return null;\n }}\n </ToastConsumer>\n ) : null; \n }\n}\n"],"mappings":";;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,gBAAgB,EAAEC,IAAI,QAAQ,cAAc;AAC3D,OAAOC,cAAc,MAAwB,gDAAgD;AAC7F,SAASC,aAAa,EAAEC,kBAAkB,QAAQ,+CAA+C;AACjG,SAASC,aAAa,QAAoC,8CAA8C;AAExG,OAAOC,yBAAyB,MAAM,8BAA8B;AACpE,SAASC,aAAa,QAAoC,+BAA+B;AACzF,SAASC,OAAO,QAAQ,WAAW;AAEnC,OAAO,MAAMC,yBAAyB,SAASL,kBAAkB,CAA4B;EAAAM,YAAA,GAAAC,IAAA;IAAA,SAAAA,IAAA;IAAAC,eAAA,wBAC3E,CAAC,CAAC;IAAAA,eAAA,oBACN,KAAK;EAAA;AACnB;AAEA,eAAe,MAAMC,oBAAoB,SAASV,aAAa,CAAmF;EAIhJO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AI,CAACf,MAAM,GAAG,IAAW;MACzB,IAAI,CAAC1B,WAAW,CAAC;QACfG,SAAS,EAAG;MACd,CAA8B,CAAC;IACjC,CAAC;IACD,OAAO,IAAI,CAACoC,OAAO,CAACC,OAAO,IAAI,IAAI,CAAC9B,KAAK,CAACP,SAAS,gBACjDpB,KAAA,CAAA6B,aAAA,CAACtB,aAAa,QACVoD,YAA0B,IAAK;MAC/B,IAAI,CAAChB,MAAM,GAAG,MAAMgB,YAAY,CAACC,SAAS,CAAC,IAAI,CAACJ,OAAO,CAAC;MACxDG,YAAY,CAACvC,SAAS,CAAC,IAAI,CAACoC,OAAO,CAAC;MACpC,OAAO,IAAI;IACb,CACa,CAAC,GACd,IAAI;EACV;AACF","ignoreList":[]}
@@ -1,10 +1,10 @@
1
1
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
2
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
3
- function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
2
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
3
+ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
4
4
  import { BaseProps } from '@wavemaker/app-rn-runtime/core/base.component';
5
5
  export default class WmNetworkInfoToasterProps extends BaseProps {
6
- constructor() {
7
- super(...arguments);
6
+ constructor(...args) {
7
+ super(...args);
8
8
  _defineProperty(this, "appLocale", {});
9
9
  }
10
10
  }
@@ -1 +1 @@
1
- {"version":3,"names":["BaseProps","WmNetworkInfoToasterProps","constructor","arguments","_defineProperty"],"sources":["network-info-toaster.props.ts"],"sourcesContent":["import { BaseProps } from '@wavemaker/app-rn-runtime/core/base.component';\n\nexport default class WmNetworkInfoToasterProps extends BaseProps {\n appLocale = {} as any;\n}"],"mappings":";;;AAAA,SAASA,SAAS,QAAQ,+CAA+C;AAEzE,eAAe,MAAMC,yBAAyB,SAASD,SAAS,CAAC;EAAAE,YAAA;IAAA,SAAAC,SAAA;IAAAC,eAAA,oBACjD,CAAC,CAAC;EAAA;AAClB"}
1
+ {"version":3,"names":["BaseProps","WmNetworkInfoToasterProps","constructor","args","_defineProperty"],"sources":["network-info-toaster.props.ts"],"sourcesContent":["import { BaseProps } from '@wavemaker/app-rn-runtime/core/base.component';\n\nexport default class WmNetworkInfoToasterProps extends BaseProps {\n appLocale = {} as any;\n}"],"mappings":";;;AAAA,SAASA,SAAS,QAAQ,+CAA+C;AAEzE,eAAe,MAAMC,yBAAyB,SAASD,SAAS,CAAC;EAAAE,YAAA,GAAAC,IAAA;IAAA,SAAAA,IAAA;IAAAC,eAAA,oBACjD,CAAC,CAAC;EAAA;AAClB","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["BASE_THEME","defineStyles","DEFAULT_CLASS","registerStyle","themeVariables","addStyle","defaultStyles","root","width","paddingVertical","paddingHorizontal","backgroundColor","networkToastBgColor","flexDirection","alignItems","text","color","networkToastTextColor","fontSize","flex","action","padding","actionSeparator","networkToastActionSeparatorColor","marginHorizontal","actionText","networkToastActionTextColor"],"sources":["network-info-toaster.styles.ts"],"sourcesContent":["import { TextStyle, ViewStyle } from 'react-native';\nimport BASE_THEME from '@wavemaker/app-rn-runtime/styles/theme';\nimport { BaseStyles, defineStyles } from '@wavemaker/app-rn-runtime/core/base.component';\n\nexport type WmNetworkInfoToasterStyles = BaseStyles & {\n action: ViewStyle,\n actionSeparator: TextStyle\n actionText: TextStyle\n};\n\nexport const DEFAULT_CLASS = 'app-network-info-toaster';\nBASE_THEME.registerStyle((themeVariables, addStyle) => {\n const defaultStyles = defineStyles<WmNetworkInfoToasterStyles>({\n root: {\n width: '100%',\n paddingVertical: 16,\n paddingHorizontal: 16,\n backgroundColor: themeVariables.networkToastBgColor,\n flexDirection: 'row',\n alignItems: 'center'\n },\n text: {\n color: themeVariables.networkToastTextColor,\n fontSize: 16,\n flex: 1\n },\n action: {\n padding: 4\n },\n actionSeparator : {\n color: themeVariables.networkToastActionSeparatorColor,\n fontSize: 16,\n marginHorizontal: 2\n },\n actionText: {\n color: themeVariables.networkToastActionTextColor\n }\n });\n addStyle(DEFAULT_CLASS, '', defaultStyles);\n});"],"mappings":"AACA,OAAOA,UAAU,MAAM,wCAAwC;AAC/D,SAAqBC,YAAY,QAAQ,+CAA+C;AAQxF,OAAO,MAAMC,aAAa,GAAG,0BAA0B;AACvDF,UAAU,CAACG,aAAa,CAAC,CAACC,cAAc,EAAEC,QAAQ,KAAK;EACnD,MAAMC,aAAa,GAAGL,YAAY,CAA6B;IAC3DM,IAAI,EAAE;MACFC,KAAK,EAAE,MAAM;MACbC,eAAe,EAAE,EAAE;MACnBC,iBAAiB,EAAE,EAAE;MACrBC,eAAe,EAAEP,cAAc,CAACQ,mBAAmB;MACnDC,aAAa,EAAE,KAAK;MACpBC,UAAU,EAAE;IAChB,CAAC;IACDC,IAAI,EAAE;MACFC,KAAK,EAAEZ,cAAc,CAACa,qBAAqB;MAC3CC,QAAQ,EAAE,EAAE;MACZC,IAAI,EAAE;IACV,CAAC;IACDC,MAAM,EAAE;MACJC,OAAO,EAAE;IACb,CAAC;IACDC,eAAe,EAAG;MACdN,KAAK,EAAEZ,cAAc,CAACmB,gCAAgC;MACtDL,QAAQ,EAAE,EAAE;MACZM,gBAAgB,EAAE;IACtB,CAAC;IACDC,UAAU,EAAE;MACRT,KAAK,EAAEZ,cAAc,CAACsB;IAC1B;EACJ,CAAC,CAAC;EACFrB,QAAQ,CAACH,aAAa,EAAE,EAAE,EAAEI,aAAa,CAAC;AAC9C,CAAC,CAAC"}
1
+ {"version":3,"names":["BASE_THEME","defineStyles","DEFAULT_CLASS","registerStyle","themeVariables","addStyle","defaultStyles","root","width","paddingVertical","paddingHorizontal","backgroundColor","networkToastBgColor","flexDirection","alignItems","text","color","networkToastTextColor","fontSize","flex","action","padding","actionSeparator","networkToastActionSeparatorColor","marginHorizontal","actionText","networkToastActionTextColor"],"sources":["network-info-toaster.styles.ts"],"sourcesContent":["import { TextStyle, ViewStyle } from 'react-native';\nimport BASE_THEME from '@wavemaker/app-rn-runtime/styles/theme';\nimport { BaseStyles, defineStyles } from '@wavemaker/app-rn-runtime/core/base.component';\n\nexport type WmNetworkInfoToasterStyles = BaseStyles & {\n action: ViewStyle,\n actionSeparator: TextStyle\n actionText: TextStyle\n};\n\nexport const DEFAULT_CLASS = 'app-network-info-toaster';\nBASE_THEME.registerStyle((themeVariables, addStyle) => {\n const defaultStyles = defineStyles<WmNetworkInfoToasterStyles>({\n root: {\n width: '100%',\n paddingVertical: 16,\n paddingHorizontal: 16,\n backgroundColor: themeVariables.networkToastBgColor,\n flexDirection: 'row',\n alignItems: 'center'\n },\n text: {\n color: themeVariables.networkToastTextColor,\n fontSize: 16,\n flex: 1\n },\n action: {\n padding: 4\n },\n actionSeparator : {\n color: themeVariables.networkToastActionSeparatorColor,\n fontSize: 16,\n marginHorizontal: 2\n },\n actionText: {\n color: themeVariables.networkToastActionTextColor\n }\n });\n addStyle(DEFAULT_CLASS, '', defaultStyles);\n});"],"mappings":"AACA,OAAOA,UAAU,MAAM,wCAAwC;AAC/D,SAAqBC,YAAY,QAAQ,+CAA+C;AAQxF,OAAO,MAAMC,aAAa,GAAG,0BAA0B;AACvDF,UAAU,CAACG,aAAa,CAAC,CAACC,cAAc,EAAEC,QAAQ,KAAK;EACnD,MAAMC,aAAa,GAAGL,YAAY,CAA6B;IAC3DM,IAAI,EAAE;MACFC,KAAK,EAAE,MAAM;MACbC,eAAe,EAAE,EAAE;MACnBC,iBAAiB,EAAE,EAAE;MACrBC,eAAe,EAAEP,cAAc,CAACQ,mBAAmB;MACnDC,aAAa,EAAE,KAAK;MACpBC,UAAU,EAAE;IAChB,CAAC;IACDC,IAAI,EAAE;MACFC,KAAK,EAAEZ,cAAc,CAACa,qBAAqB;MAC3CC,QAAQ,EAAE,EAAE;MACZC,IAAI,EAAE;IACV,CAAC;IACDC,MAAM,EAAE;MACJC,OAAO,EAAE;IACb,CAAC;IACDC,eAAe,EAAG;MACdN,KAAK,EAAEZ,cAAc,CAACmB,gCAAgC;MACtDL,QAAQ,EAAE,EAAE;MACZM,gBAAgB,EAAE;IACtB,CAAC;IACDC,UAAU,EAAE;MACRT,KAAK,EAAEZ,cAAc,CAACsB;IAC1B;EACJ,CAAC,CAAC;EACFrB,QAAQ,CAACH,aAAa,EAAE,EAAE,EAAEI,aAAa,CAAC;AAC9C,CAAC,CAAC","ignoreList":[]}
@@ -1,7 +1,7 @@
1
1
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
2
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
3
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
4
- 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); }
3
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
4
+ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
5
5
  import React from 'react';
6
6
  import { BackHandler, Platform, View } from 'react-native';
7
7
  import { WebView } from 'react-native-webview';
@@ -10,9 +10,10 @@ import { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/cor
10
10
  import WmWebviewProps from './webview.props';
11
11
  import { DEFAULT_CLASS } from './webview.styles';
12
12
  import { AccessibilityWidgetType, getAccessibilityProps } from '@wavemaker/app-rn-runtime/core/accessibility';
13
+ import { isAndroid, isWebPreviewMode } from '@wavemaker/app-rn-runtime/core/utils';
13
14
  class WmWebViewState extends BaseComponentState {
14
- constructor() {
15
- super(...arguments);
15
+ constructor(...args) {
16
+ super(...args);
16
17
  _defineProperty(this, "currentTarget", {
17
18
  title: '',
18
19
  src: ''
@@ -45,11 +46,15 @@ export default class WmWebview extends BaseComponent {
45
46
  }
46
47
  });
47
48
  this.hideMode = HideMode.DONOT_ADD_TO_DOM;
48
- BackHandler.addEventListener('hardwareBackPress', this.handleBackButtonPress);
49
+ if (isAndroid() && !isWebPreviewMode()) {
50
+ BackHandler.addEventListener('hardwareBackPress', this.handleBackButtonPress);
51
+ }
49
52
  }
50
53
  componentWillUnmount() {
51
54
  super.componentWillUnmount();
52
- BackHandler.removeEventListener('hardwareBackPress', this.handleBackButtonPress);
55
+ if (isAndroid() && !isWebPreviewMode()) {
56
+ BackHandler.removeEventListener('hardwareBackPress', this.handleBackButtonPress);
57
+ }
53
58
  }
54
59
  get title() {
55
60
  var _this$state$currentTa;
@@ -79,8 +84,7 @@ export default class WmWebview extends BaseComponent {
79
84
  }
80
85
  });
81
86
  }
82
- insertCSS() {
83
- let style = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
87
+ insertCSS(style = '') {
84
88
  style = style.replace(/[\n\t\r]/g, '');
85
89
  return this.executeScript(`
86
90
  function() {
@@ -1 +1 @@
1
- {"version":3,"names":["React","BackHandler","Platform","View","WebView","HideMode","BaseComponent","BaseComponentState","WmWebviewProps","DEFAULT_CLASS","AccessibilityWidgetType","getAccessibilityProps","WmWebViewState","constructor","arguments","_defineProperty","title","src","WmWebview","props","webview","webViewState","canGoBack","goBack","event","_event$nativeEvent","data","nativeEvent","startsWith","id","match","callback","invokeJSCallbacks","result","substring","indexOf","parseResult","invokeEventCallback","hideMode","DONOT_ADD_TO_DOM","addEventListener","handleBackButtonPress","componentWillUnmount","removeEventListener","_this$state$currentTa","state","currentTarget","currentsrc","_this$state$currentTa2","executeScript","fn","Promise","resolve","reject","Date","now","injectJavaScript","insertCSS","style","length","undefined","replace","JSON","parse","e","getTitle","iframe","contentWindow","document","onLoad","updateState","renderWidget","createElement","styles","root","_background","OS","width","height","_extends","ref","nestedScrollEnabled","source","uri","testID","getTestId","WEBVIEW","incognito","onMessage","sharedCookiesEnabled","onNavigationStateChange","scrollEnabled","onLoadEnd","url"],"sources":["webview.component.tsx"],"sourcesContent":["import React from 'react';\nimport { BackHandler, Platform, View } from 'react-native';\nimport { WebView, WebViewNavigation, WebViewMessageEvent } from 'react-native-webview';\nimport { HideMode } from '@wavemaker/app-rn-runtime/core/if.component';\nimport { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';\n\nimport WmWebviewProps from './webview.props';\nimport { DEFAULT_CLASS, WebviewStyles } from './webview.styles';\nimport { AccessibilityWidgetType, getAccessibilityProps } from '@wavemaker/app-rn-runtime/core/accessibility';\n\nclass WmWebViewState extends BaseComponentState<WmWebviewProps> {\n currentTarget = {\n title: '',\n src: ''\n };\n\n}\n\nexport default class WmWebview extends BaseComponent<WmWebviewProps, WmWebViewState, WebviewStyles> {\n\n private webview: WebView | null = null as any;\n private webViewState: WebViewNavigation = null as any;\n private invokeJSCallbacks = {} as any;\n\n constructor(props: WmWebviewProps) {\n super(props, DEFAULT_CLASS, new WmWebviewProps());\n this.hideMode = HideMode.DONOT_ADD_TO_DOM;\n BackHandler.addEventListener('hardwareBackPress', this.handleBackButtonPress);\n }\n\n componentWillUnmount() {\n super.componentWillUnmount();\n BackHandler.removeEventListener('hardwareBackPress', this.handleBackButtonPress);\n }\n\n handleBackButtonPress = (): boolean => {\n if (this.webview && this.webViewState && this.webViewState.canGoBack) {\n this.webview.goBack();\n return true;\n }\n return false;\n }\n\n get title() {\n return this.state.currentTarget?.title;\n }\n\n get currentsrc() {\n return this.state.currentTarget?.src;\n }\n\n executeScript(fn: string) {\n return new Promise((resolve, reject) => {\n if (this.webview) {\n const id = '' + Date.now();\n this.invokeJSCallbacks[id] = resolve;\n fn = `\n (function(){\n try{\n return (${fn});\n } catch(e) {\n return e.getMessage();\n }\n }())\n `;\n this.webview.injectJavaScript(\n `window.ReactNativeWebView.postMessage('afterInjectJavaScript:' + ${id} + ':' + JSON.stringify(${fn}))`\n );\n } else {\n reject();\n }\n });\n }\n\n insertCSS(style = '') {\n style = style.replace(/[\\n\\t\\r]/g, '');\n return this.executeScript(`\n function() {\n const style = document.createElement('style');\n style.innerHTML = '${style}';\n document.head.appendChild(style);\n return 'SUCCESS';\n }()\n `);\n }\n\n parseResult(result: string) {\n try {\n return JSON.parse(result);\n } catch(e) {\n if (result === 'undefined' || result === 'null') {\n return null;\n }\n return result;\n }\n }\n\n onMessage = (event: WebViewMessageEvent) => {\n const data: string = event.nativeEvent?.data;\n if (data && data.startsWith('afterInjectJavaScript')) {\n const id = data?.match(/\\:([0-9]+)\\:/);\n const callback = id && this.invokeJSCallbacks[id[1]];\n const result = data.substring(data.indexOf(':', data.indexOf(':') + 1) + 1);\n callback && callback(this.parseResult(result));\n } else {\n this.invokeEventCallback('onMessage', [event, this]);\n }\n }\n\n getTitle(iframe: any) {\n try {\n return iframe.currentTarget.contentWindow.document.title;\n } catch(e) {\n // browser blocks cross origin access to iframe content.\n }\n }\n\n public onLoad(e: any, title: string, src: string) {\n this.updateState({\n currentTarget: {\n title: title,\n src: src\n }\n } as WmWebViewState, () => {\n this.invokeEventCallback('onLoad', [e, this]);\n });\n }\n\n protected renderWidget(props: WmWebviewProps) {\n return (\n <View style={this.styles.root}>\n {this._background}\n {Platform.OS === 'web' ?\n (<iframe src={props.src} width={'100%'} height={'100%'}\n onLoad={(e) => this.onLoad(e, this.getTitle(e.currentTarget), (e.currentTarget as any).src)}></iframe>) :\n (<WebView\n ref={(ref) => this.webview = ref}\n nestedScrollEnabled={true}\n style={this.styles.webview}\n source={{\n uri: props.src\n }}\n testID={this.getTestId('web_view')}\n {...getAccessibilityProps(AccessibilityWidgetType.WEBVIEW, props)}\n incognito={props.incognito}\n onMessage={this.onMessage}\n sharedCookiesEnabled={true}\n onNavigationStateChange={(state) => {\n this.webViewState = state;\n }}\n scrollEnabled={true}\n onLoadEnd={(e) => this.onLoad(e, e.nativeEvent.title, e.nativeEvent.url)}>\n </WebView>)}\n </View>\n );\n }\n}\n"],"mappings":";;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,WAAW,EAAEC,QAAQ,EAAEC,IAAI,QAAQ,cAAc;AAC1D,SAASC,OAAO,QAAgD,sBAAsB;AACtF,SAASC,QAAQ,QAAQ,6CAA6C;AACtE,SAASC,aAAa,EAAEC,kBAAkB,QAAQ,+CAA+C;AAEjG,OAAOC,cAAc,MAAM,iBAAiB;AAC5C,SAASC,aAAa,QAAuB,kBAAkB;AAC/D,SAASC,uBAAuB,EAAEC,qBAAqB,QAAQ,8CAA8C;AAE7G,MAAMC,cAAc,SAASL,kBAAkB,CAAiB;EAAAM,YAAA;IAAA,SAAAC,SAAA;IAAAC,eAAA,wBAC9C;MACdC,KAAK,EAAE,EAAE;MACTC,GAAG,EAAE;IACP,CAAC;EAAA;AAEH;AAEA,eAAe,MAAMC,SAAS,SAASZ,aAAa,CAAgD;EAMlGO,WAAWA,CAACM,KAAqB,EAAE;IACjC,KAAK,CAACA,KAAK,EAAEV,aAAa,EAAE,IAAID,cAAc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C,EAAGkB,CAAC,CAAClB,aAAa,CAAS7B,GAAG;IAAE,CAAS,CAAC,gBACvGjB,KAAA,CAAAwE,aAAA,CAACpE,OAAO,EAAA2E,QAAA;MACPC,GAAG,EAAGA,GAAG,IAAK,IAAI,CAAC5D,OAAO,GAAG4D,GAAI;MACjCC,mBAAmB,EAAE,IAAK;MAC1BvB,KAAK,EAAE,IAAI,CAACe,MAAM,CAACrD,OAAQ;MAC3B8D,MAAM,EAAE;QACNC,GAAG,EAAEhE,KAAK,CAACF;MACb,CAAE;MACFmE,MAAM,EAAE,IAAI,CAACC,SAAS,CAAC,UAAU;IAAE,GAC/B1E,qBAAqB,CAACD,uBAAuB,CAAC4E,OAAO,EAAEnE,KAAK,CAAC;MACjEoE,SAAS,EAAEpE,KAAK,CAACoE,SAAU;MAC3BC,SAAS,EAAE,IAAI,CAACA,SAAU;MAC1BC,oBAAoB,EAAE,IAAK;MAC3BC,uBAAuB,EAAG7C,KAAK,IAAK;QAClC,IAAI,CAACxB,YAAY,GAAGwB,KAAK;MAC3B,CAAE;MACF8C,aAAa,EAAE,IAAK;MACpBC,SAAS,EAAG5B,CAAC,IAAK,IAAI,CAACK,MAAM,CAACL,CAAC,EAAEA,CAAC,CAACrC,WAAW,CAACX,KAAK,EAAEgD,CAAC,CAACrC,WAAW,CAACkE,GAAG;IAAE,EAClE,CACP,CAAC;EAEX;AACF"}
1
+ {"version":3,"names":["React","BackHandler","Platform","View","WebView","HideMode","BaseComponent","BaseComponentState","WmWebviewProps","DEFAULT_CLASS","AccessibilityWidgetType","getAccessibilityProps","isAndroid","isWebPreviewMode","WmWebViewState","constructor","args","_defineProperty","title","src","WmWebview","props","webview","webViewState","canGoBack","goBack","event","_event$nativeEvent","data","nativeEvent","startsWith","id","match","callback","invokeJSCallbacks","result","substring","indexOf","parseResult","invokeEventCallback","hideMode","DONOT_ADD_TO_DOM","addEventListener","handleBackButtonPress","componentWillUnmount","removeEventListener","_this$state$currentTa","state","currentTarget","currentsrc","_this$state$currentTa2","executeScript","fn","Promise","resolve","reject","Date","now","injectJavaScript","insertCSS","style","replace","JSON","parse","e","getTitle","iframe","contentWindow","document","onLoad","updateState","renderWidget","createElement","styles","root","_background","OS","width","height","_extends","ref","nestedScrollEnabled","source","uri","testID","getTestId","WEBVIEW","incognito","onMessage","sharedCookiesEnabled","onNavigationStateChange","scrollEnabled","onLoadEnd","url"],"sources":["webview.component.tsx"],"sourcesContent":["import React from 'react';\nimport { BackHandler, Platform, View } from 'react-native';\nimport { WebView, WebViewNavigation, WebViewMessageEvent } from 'react-native-webview';\nimport { HideMode } from '@wavemaker/app-rn-runtime/core/if.component';\nimport { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';\n\nimport WmWebviewProps from './webview.props';\nimport { DEFAULT_CLASS, WebviewStyles } from './webview.styles';\nimport { AccessibilityWidgetType, getAccessibilityProps } from '@wavemaker/app-rn-runtime/core/accessibility';\nimport { isAndroid, isWebPreviewMode } from '@wavemaker/app-rn-runtime/core/utils';\n\nclass WmWebViewState extends BaseComponentState<WmWebviewProps> {\n currentTarget = {\n title: '',\n src: ''\n };\n\n}\n\nexport default class WmWebview extends BaseComponent<WmWebviewProps, WmWebViewState, WebviewStyles> {\n\n private webview: WebView | null = null as any;\n private webViewState: WebViewNavigation = null as any;\n private invokeJSCallbacks = {} as any;\n\n constructor(props: WmWebviewProps) {\n super(props, DEFAULT_CLASS, new WmWebviewProps());\n this.hideMode = HideMode.DONOT_ADD_TO_DOM;\n if (isAndroid() && !isWebPreviewMode()) {\n BackHandler.addEventListener('hardwareBackPress', this.handleBackButtonPress);\n }\n }\n\n componentWillUnmount() {\n super.componentWillUnmount();\n if (isAndroid() && !isWebPreviewMode()) {\n BackHandler.removeEventListener('hardwareBackPress', this.handleBackButtonPress);\n }\n }\n\n handleBackButtonPress = (): boolean => {\n if (this.webview && this.webViewState && this.webViewState.canGoBack) {\n this.webview.goBack();\n return true;\n }\n return false;\n }\n\n get title() {\n return this.state.currentTarget?.title;\n }\n\n get currentsrc() {\n return this.state.currentTarget?.src;\n }\n\n executeScript(fn: string) {\n return new Promise((resolve, reject) => {\n if (this.webview) {\n const id = '' + Date.now();\n this.invokeJSCallbacks[id] = resolve;\n fn = `\n (function(){\n try{\n return (${fn});\n } catch(e) {\n return e.getMessage();\n }\n }())\n `;\n this.webview.injectJavaScript(\n `window.ReactNativeWebView.postMessage('afterInjectJavaScript:' + ${id} + ':' + JSON.stringify(${fn}))`\n );\n } else {\n reject();\n }\n });\n }\n\n insertCSS(style = '') {\n style = style.replace(/[\\n\\t\\r]/g, '');\n return this.executeScript(`\n function() {\n const style = document.createElement('style');\n style.innerHTML = '${style}';\n document.head.appendChild(style);\n return 'SUCCESS';\n }()\n `);\n }\n\n parseResult(result: string) {\n try {\n return JSON.parse(result);\n } catch(e) {\n if (result === 'undefined' || result === 'null') {\n return null;\n }\n return result;\n }\n }\n\n onMessage = (event: WebViewMessageEvent) => {\n const data: string = event.nativeEvent?.data;\n if (data && data.startsWith('afterInjectJavaScript')) {\n const id = data?.match(/\\:([0-9]+)\\:/);\n const callback = id && this.invokeJSCallbacks[id[1]];\n const result = data.substring(data.indexOf(':', data.indexOf(':') + 1) + 1);\n callback && callback(this.parseResult(result));\n } else {\n this.invokeEventCallback('onMessage', [event, this]);\n }\n }\n\n getTitle(iframe: any) {\n try {\n return iframe.currentTarget.contentWindow.document.title;\n } catch(e) {\n // browser blocks cross origin access to iframe content.\n }\n }\n\n public onLoad(e: any, title: string, src: string) {\n this.updateState({\n currentTarget: {\n title: title,\n src: src\n }\n } as WmWebViewState, () => {\n this.invokeEventCallback('onLoad', [e, this]);\n });\n }\n\n protected renderWidget(props: WmWebviewProps) {\n return (\n <View style={this.styles.root}>\n {this._background}\n {Platform.OS === 'web' ?\n (<iframe src={props.src} width={'100%'} height={'100%'}\n onLoad={(e) => this.onLoad(e, this.getTitle(e.currentTarget), (e.currentTarget as any).src)}></iframe>) :\n (<WebView\n ref={(ref) => this.webview = ref}\n nestedScrollEnabled={true}\n style={this.styles.webview}\n source={{\n uri: props.src\n }}\n testID={this.getTestId('web_view')}\n {...getAccessibilityProps(AccessibilityWidgetType.WEBVIEW, props)}\n incognito={props.incognito}\n onMessage={this.onMessage}\n sharedCookiesEnabled={true}\n onNavigationStateChange={(state) => {\n this.webViewState = state;\n }}\n scrollEnabled={true}\n onLoadEnd={(e) => this.onLoad(e, e.nativeEvent.title, e.nativeEvent.url)}>\n </WebView>)}\n </View>\n );\n }\n}\n"],"mappings":";;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,WAAW,EAAEC,QAAQ,EAAEC,IAAI,QAAQ,cAAc;AAC1D,SAASC,OAAO,QAAgD,sBAAsB;AACtF,SAASC,QAAQ,QAAQ,6CAA6C;AACtE,SAASC,aAAa,EAAEC,kBAAkB,QAAQ,+CAA+C;AAEjG,OAAOC,cAAc,MAAM,iBAAiB;AAC5C,SAASC,aAAa,QAAuB,kBAAkB;AAC/D,SAASC,uBAAuB,EAAEC,qBAAqB,QAAQ,8CAA8C;AAC7G,SAASC,SAAS,EAAEC,gBAAgB,QAAQ,sCAAsC;AAElF,MAAMC,cAAc,SAASP,kBAAkB,CAAiB;EAAAQ,YAAA,GAAAC,IAAA;IAAA,SAAAA,IAAA;IAAAC,eAAA,wBAC9C;MACdC,KAAK,EAAE,EAAE;MACTC,GAAG,EAAE;IACP,CAAC;EAAA;AAEH;AAEA,eAAe,MAAMC,SAAS,SAASd,aAAa,CAAgD;EAMlGS,WAAWA,CAACM,KAAqB,EAAE;IACjC,KAAK,CAACA,KAAK,EAAEZ,aAAa,EAAE,IAAID,cAAc,CAAC,CAAC,CAAC;IAACS,eAAA,kBALlB,IAAI;IAAAA,eAAA,uBACI,IAAI;IAAAA,eAAA,4BAClB,CAAC,CAAC;IAAAA,eAAA,gCAiBN,MAAe;MACrC,IAAI,IAAI,CAACK,OAAO,IAAI,IAAI,CAACC,YAAY,IAAI,IAAI,CAACA,YAAY,CAACC,SAAS,EA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