@wavemaker/app-rn-runtime 12.0.0-next.45002 → 12.0.0-next.45006

Sign up to get free protection for your applications and to get access to all the features.
Files changed (704) 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 +31 -22
  20. app-rn-runtime/components/advanced/carousel/carousel.component.js.map +1 -1
  21. app-rn-runtime/components/advanced/carousel/carousel.props.js +4 -4
  22. app-rn-runtime/components/advanced/carousel/carousel.props.js.map +1 -1
  23. app-rn-runtime/components/advanced/carousel/carousel.styles.js.map +1 -1
  24. app-rn-runtime/components/advanced/login/login.component.js +4 -4
  25. app-rn-runtime/components/advanced/login/login.component.js.map +1 -1
  26. app-rn-runtime/components/advanced/login/login.props.js +4 -4
  27. app-rn-runtime/components/advanced/login/login.props.js.map +1 -1
  28. app-rn-runtime/components/advanced/login/login.styles.js.map +1 -1
  29. app-rn-runtime/components/advanced/network-info-toaster/network-info-toaster.component.js +4 -4
  30. app-rn-runtime/components/advanced/network-info-toaster/network-info-toaster.component.js.map +1 -1
  31. app-rn-runtime/components/advanced/network-info-toaster/network-info-toaster.props.js +4 -4
  32. app-rn-runtime/components/advanced/network-info-toaster/network-info-toaster.props.js.map +1 -1
  33. app-rn-runtime/components/advanced/network-info-toaster/network-info-toaster.styles.js.map +1 -1
  34. app-rn-runtime/components/advanced/webview/webview.component.js +12 -8
  35. app-rn-runtime/components/advanced/webview/webview.component.js.map +1 -1
  36. app-rn-runtime/components/advanced/webview/webview.props.js +4 -4
  37. app-rn-runtime/components/advanced/webview/webview.props.js.map +1 -1
  38. app-rn-runtime/components/advanced/webview/webview.styles.js.map +1 -1
  39. app-rn-runtime/components/basic/anchor/anchor.component.js +1 -0
  40. app-rn-runtime/components/basic/anchor/anchor.component.js.map +1 -1
  41. app-rn-runtime/components/basic/anchor/anchor.props.js +5 -4
  42. app-rn-runtime/components/basic/anchor/anchor.props.js.map +1 -1
  43. app-rn-runtime/components/basic/anchor/anchor.styles.js.map +1 -1
  44. app-rn-runtime/components/basic/animatedview.component.js +4 -2
  45. app-rn-runtime/components/basic/animatedview.component.js.map +1 -1
  46. app-rn-runtime/components/basic/audio/audio.component.js +8 -9
  47. app-rn-runtime/components/basic/audio/audio.component.js.map +1 -1
  48. app-rn-runtime/components/basic/audio/audio.props.js +4 -4
  49. app-rn-runtime/components/basic/audio/audio.props.js.map +1 -1
  50. app-rn-runtime/components/basic/audio/audio.styles.js.map +1 -1
  51. app-rn-runtime/components/basic/button/button.component.js +18 -14
  52. app-rn-runtime/components/basic/button/button.component.js.map +1 -1
  53. app-rn-runtime/components/basic/button/button.props.js +5 -4
  54. app-rn-runtime/components/basic/button/button.props.js.map +1 -1
  55. app-rn-runtime/components/basic/button/button.styles.js +2 -4
  56. app-rn-runtime/components/basic/button/button.styles.js.map +1 -1
  57. app-rn-runtime/components/basic/buttongroup/buttongroup.component.js.map +1 -1
  58. app-rn-runtime/components/basic/buttongroup/buttongroup.props.js +4 -4
  59. app-rn-runtime/components/basic/buttongroup/buttongroup.props.js.map +1 -1
  60. app-rn-runtime/components/basic/buttongroup/buttongroup.styles.js.map +1 -1
  61. app-rn-runtime/components/basic/custom/custom.component.js.map +1 -1
  62. app-rn-runtime/components/basic/custom/custom.props.js +4 -4
  63. app-rn-runtime/components/basic/custom/custom.props.js.map +1 -1
  64. app-rn-runtime/components/basic/custom/custom.styles.js.map +1 -1
  65. app-rn-runtime/components/basic/icon/icon.component.js +6 -5
  66. app-rn-runtime/components/basic/icon/icon.component.js.map +1 -1
  67. app-rn-runtime/components/basic/icon/icon.props.js +5 -4
  68. app-rn-runtime/components/basic/icon/icon.props.js.map +1 -1
  69. app-rn-runtime/components/basic/icon/icon.styles.js.map +1 -1
  70. app-rn-runtime/components/basic/icon/streamline-light-icon/streamline-light-icon.component.js.map +1 -1
  71. app-rn-runtime/components/basic/icon/streamline-regular-icon/streamline-regular-icon.component.js.map +1 -1
  72. app-rn-runtime/components/basic/icon/wavicon/wavicon.component.js.map +1 -1
  73. app-rn-runtime/components/basic/label/label.component.js +11 -9
  74. app-rn-runtime/components/basic/label/label.component.js.map +1 -1
  75. app-rn-runtime/components/basic/label/label.props.js +5 -4
  76. app-rn-runtime/components/basic/label/label.props.js.map +1 -1
  77. app-rn-runtime/components/basic/label/label.styles.js.map +1 -1
  78. app-rn-runtime/components/basic/lottie/lottie.component.js +9 -10
  79. app-rn-runtime/components/basic/lottie/lottie.component.js.map +1 -1
  80. app-rn-runtime/components/basic/lottie/lottie.props.js +4 -4
  81. app-rn-runtime/components/basic/lottie/lottie.props.js.map +1 -1
  82. app-rn-runtime/components/basic/lottie/lottie.styles.js +5 -1
  83. app-rn-runtime/components/basic/lottie/lottie.styles.js.map +1 -1
  84. app-rn-runtime/components/basic/message/message.component.js +3 -2
  85. app-rn-runtime/components/basic/message/message.component.js.map +1 -1
  86. app-rn-runtime/components/basic/message/message.props.js +5 -4
  87. app-rn-runtime/components/basic/message/message.props.js.map +1 -1
  88. app-rn-runtime/components/basic/message/message.styles.js +1 -2
  89. app-rn-runtime/components/basic/message/message.styles.js.map +1 -1
  90. app-rn-runtime/components/basic/modal/modal.component.js.map +1 -1
  91. app-rn-runtime/components/basic/modal/modal.props.js +4 -4
  92. app-rn-runtime/components/basic/modal/modal.props.js.map +1 -1
  93. app-rn-runtime/components/basic/modal/modal.styles.js.map +1 -1
  94. app-rn-runtime/components/basic/picture/picture.component.js +5 -4
  95. app-rn-runtime/components/basic/picture/picture.component.js.map +1 -1
  96. app-rn-runtime/components/basic/picture/picture.props.js +5 -4
  97. app-rn-runtime/components/basic/picture/picture.props.js.map +1 -1
  98. app-rn-runtime/components/basic/picture/picture.styles.js.map +1 -1
  99. app-rn-runtime/components/basic/progress-bar/progress-bar.component.js +23 -1
  100. app-rn-runtime/components/basic/progress-bar/progress-bar.component.js.map +1 -1
  101. app-rn-runtime/components/basic/progress-bar/progress-bar.props.js +4 -4
  102. app-rn-runtime/components/basic/progress-bar/progress-bar.props.js.map +1 -1
  103. app-rn-runtime/components/basic/progress-bar/progress-bar.styles.js.map +1 -1
  104. app-rn-runtime/components/basic/progress-circle/progress-circle.component.js +4 -4
  105. app-rn-runtime/components/basic/progress-circle/progress-circle.component.js.map +1 -1
  106. app-rn-runtime/components/basic/progress-circle/progress-circle.props.js +4 -4
  107. app-rn-runtime/components/basic/progress-circle/progress-circle.props.js.map +1 -1
  108. app-rn-runtime/components/basic/progress-circle/progress-circle.styles.js.map +1 -1
  109. app-rn-runtime/components/basic/search/local-data-provider.js +2 -2
  110. app-rn-runtime/components/basic/search/local-data-provider.js.map +1 -1
  111. app-rn-runtime/components/basic/search/search.component.js +16 -22
  112. app-rn-runtime/components/basic/search/search.component.js.map +1 -1
  113. app-rn-runtime/components/basic/search/search.props.js +4 -4
  114. app-rn-runtime/components/basic/search/search.props.js.map +1 -1
  115. app-rn-runtime/components/basic/search/search.styles.js.map +1 -1
  116. app-rn-runtime/components/basic/skeleton/skeleton.component.js +5 -5
  117. app-rn-runtime/components/basic/skeleton/skeleton.component.js.map +1 -1
  118. app-rn-runtime/components/basic/skeleton/skeleton.props.js.map +1 -1
  119. app-rn-runtime/components/basic/skeleton/skeleton.styles.js.map +1 -1
  120. app-rn-runtime/components/basic/spinner/spinner.component.js +2 -2
  121. app-rn-runtime/components/basic/spinner/spinner.component.js.map +1 -1
  122. app-rn-runtime/components/basic/spinner/spinner.props.js +4 -4
  123. app-rn-runtime/components/basic/spinner/spinner.props.js.map +1 -1
  124. app-rn-runtime/components/basic/spinner/spinner.styles.js.map +1 -1
  125. app-rn-runtime/components/basic/tooltip/tooltip.component.js +79 -0
  126. app-rn-runtime/components/basic/tooltip/tooltip.component.js.map +1 -0
  127. app-rn-runtime/components/basic/tooltip/tooltip.props.js +18 -0
  128. app-rn-runtime/components/basic/tooltip/tooltip.props.js.map +1 -0
  129. app-rn-runtime/components/basic/tooltip/tooltip.styles.js +49 -0
  130. app-rn-runtime/components/basic/tooltip/tooltip.styles.js.map +1 -0
  131. app-rn-runtime/components/basic/video/video.component.js +11 -8
  132. app-rn-runtime/components/basic/video/video.component.js.map +1 -1
  133. app-rn-runtime/components/basic/video/video.props.js +4 -4
  134. app-rn-runtime/components/basic/video/video.props.js.map +1 -1
  135. app-rn-runtime/components/basic/video/video.styles.js.map +1 -1
  136. app-rn-runtime/components/chart/area-chart/area-chart.component.js +19 -9
  137. app-rn-runtime/components/chart/area-chart/area-chart.component.js.map +1 -1
  138. app-rn-runtime/components/chart/area-chart/area-chart.props.js +4 -4
  139. app-rn-runtime/components/chart/area-chart/area-chart.props.js.map +1 -1
  140. app-rn-runtime/components/chart/area-chart/area-chart.styles.js.map +1 -1
  141. app-rn-runtime/components/chart/bar-chart/bar-chart.component.js +21 -10
  142. app-rn-runtime/components/chart/bar-chart/bar-chart.component.js.map +1 -1
  143. app-rn-runtime/components/chart/bar-chart/bar-chart.props.js +4 -4
  144. app-rn-runtime/components/chart/bar-chart/bar-chart.props.js.map +1 -1
  145. app-rn-runtime/components/chart/bar-chart/bar-chart.styles.js.map +1 -1
  146. app-rn-runtime/components/chart/basechart.component.js +90 -55
  147. app-rn-runtime/components/chart/basechart.component.js.map +1 -1
  148. app-rn-runtime/components/chart/basechart.props.js +4 -11
  149. app-rn-runtime/components/chart/basechart.props.js.map +1 -1
  150. app-rn-runtime/components/chart/basechart.styles.js +27 -10
  151. app-rn-runtime/components/chart/basechart.styles.js.map +1 -1
  152. app-rn-runtime/components/chart/bubble-chart/bubble-chart.component.js +19 -11
  153. app-rn-runtime/components/chart/bubble-chart/bubble-chart.component.js.map +1 -1
  154. app-rn-runtime/components/chart/bubble-chart/bubble-chart.props.js +4 -4
  155. app-rn-runtime/components/chart/bubble-chart/bubble-chart.props.js.map +1 -1
  156. app-rn-runtime/components/chart/bubble-chart/bubble-chart.styles.js.map +1 -1
  157. app-rn-runtime/components/chart/column-chart/column-chart.component.js.map +1 -1
  158. app-rn-runtime/components/chart/column-chart/column-chart.props.js.map +1 -1
  159. app-rn-runtime/components/chart/column-chart/column-chart.styles.js.map +1 -1
  160. app-rn-runtime/components/chart/donut-chart/donut-chart.component.js.map +1 -1
  161. app-rn-runtime/components/chart/donut-chart/donut-chart.props.js +4 -4
  162. app-rn-runtime/components/chart/donut-chart/donut-chart.props.js.map +1 -1
  163. app-rn-runtime/components/chart/donut-chart/donut-chart.styles.js.map +1 -1
  164. app-rn-runtime/components/chart/legend/legend.component.js.map +1 -1
  165. app-rn-runtime/components/chart/line-chart/line-chart.component.js +16 -4
  166. app-rn-runtime/components/chart/line-chart/line-chart.component.js.map +1 -1
  167. app-rn-runtime/components/chart/line-chart/line-chart.props.js +4 -4
  168. app-rn-runtime/components/chart/line-chart/line-chart.props.js.map +1 -1
  169. app-rn-runtime/components/chart/line-chart/line-chart.styles.js.map +1 -1
  170. app-rn-runtime/components/chart/pie-chart/pie-chart.component.js +19 -11
  171. app-rn-runtime/components/chart/pie-chart/pie-chart.component.js.map +1 -1
  172. app-rn-runtime/components/chart/pie-chart/pie-chart.props.js +4 -4
  173. app-rn-runtime/components/chart/pie-chart/pie-chart.props.js.map +1 -1
  174. app-rn-runtime/components/chart/pie-chart/pie-chart.styles.js.map +1 -1
  175. app-rn-runtime/components/chart/stack-chart/stack-chart.component.js +79 -41
  176. app-rn-runtime/components/chart/stack-chart/stack-chart.component.js.map +1 -1
  177. app-rn-runtime/components/chart/stack-chart/stack-chart.props.js +5 -5
  178. app-rn-runtime/components/chart/stack-chart/stack-chart.props.js.map +1 -1
  179. app-rn-runtime/components/chart/stack-chart/stack-chart.styles.js.map +1 -1
  180. app-rn-runtime/components/chart/staticdata.js.map +1 -1
  181. app-rn-runtime/components/chart/theme/chart.theme.js.map +1 -1
  182. app-rn-runtime/components/container/accordion/accordion.component.js +11 -17
  183. app-rn-runtime/components/container/accordion/accordion.component.js.map +1 -1
  184. app-rn-runtime/components/container/accordion/accordion.props.js +4 -4
  185. app-rn-runtime/components/container/accordion/accordion.props.js.map +1 -1
  186. app-rn-runtime/components/container/accordion/accordion.styles.js.map +1 -1
  187. app-rn-runtime/components/container/accordion/accordionpane/accordionpane.component.js +4 -4
  188. app-rn-runtime/components/container/accordion/accordionpane/accordionpane.component.js.map +1 -1
  189. app-rn-runtime/components/container/accordion/accordionpane/accordionpane.props.js +4 -4
  190. app-rn-runtime/components/container/accordion/accordionpane/accordionpane.props.js.map +1 -1
  191. app-rn-runtime/components/container/accordion/accordionpane/accordionpane.styles.js.map +1 -1
  192. app-rn-runtime/components/container/container.component.js +5 -4
  193. app-rn-runtime/components/container/container.component.js.map +1 -1
  194. app-rn-runtime/components/container/container.props.js +5 -4
  195. app-rn-runtime/components/container/container.props.js.map +1 -1
  196. app-rn-runtime/components/container/container.styles.js.map +1 -1
  197. app-rn-runtime/components/container/layoutgrid/gridcolumn/gridcolumn.component.js.map +1 -1
  198. app-rn-runtime/components/container/layoutgrid/gridcolumn/gridcolumn.props.js +4 -4
  199. app-rn-runtime/components/container/layoutgrid/gridcolumn/gridcolumn.props.js.map +1 -1
  200. app-rn-runtime/components/container/layoutgrid/gridcolumn/gridcolumn.styles.js.map +1 -1
  201. app-rn-runtime/components/container/layoutgrid/gridrow/gridrow.component.js.map +1 -1
  202. app-rn-runtime/components/container/layoutgrid/gridrow/gridrow.props.js +4 -4
  203. app-rn-runtime/components/container/layoutgrid/gridrow/gridrow.props.js.map +1 -1
  204. app-rn-runtime/components/container/layoutgrid/gridrow/gridrow.styles.js.map +1 -1
  205. app-rn-runtime/components/container/layoutgrid/layoutgrid.component.js.map +1 -1
  206. app-rn-runtime/components/container/layoutgrid/layoutgrid.props.js +4 -4
  207. app-rn-runtime/components/container/layoutgrid/layoutgrid.props.js.map +1 -1
  208. app-rn-runtime/components/container/layoutgrid/layoutgrid.styles.js.map +1 -1
  209. app-rn-runtime/components/container/linearlayout/linearlayout.component.js.map +1 -1
  210. app-rn-runtime/components/container/linearlayout/linearlayout.props.js +4 -4
  211. app-rn-runtime/components/container/linearlayout/linearlayout.props.js.map +1 -1
  212. app-rn-runtime/components/container/linearlayout/linearlayout.styles.js.map +1 -1
  213. app-rn-runtime/components/container/linearlayout/linearlayoutitem/linearlayoutitem.component.js.map +1 -1
  214. app-rn-runtime/components/container/linearlayout/linearlayoutitem/linearlayoutitem.props.js +4 -4
  215. app-rn-runtime/components/container/linearlayout/linearlayoutitem/linearlayoutitem.props.js.map +1 -1
  216. app-rn-runtime/components/container/linearlayout/linearlayoutitem/linearlayoutitem.styles.js.map +1 -1
  217. app-rn-runtime/components/container/panel/collapsible-pane.component.js.map +1 -1
  218. app-rn-runtime/components/container/panel/panel-content/panel-content.component.js.map +1 -1
  219. app-rn-runtime/components/container/panel/panel-content/panel-content.props.js +4 -4
  220. app-rn-runtime/components/container/panel/panel-content/panel-content.props.js.map +1 -1
  221. app-rn-runtime/components/container/panel/panel-content/panel-content.styles.js.map +1 -1
  222. app-rn-runtime/components/container/panel/panel-footer/panel-footer.component.js.map +1 -1
  223. app-rn-runtime/components/container/panel/panel-footer/panel-footer.props.js +4 -4
  224. app-rn-runtime/components/container/panel/panel-footer/panel-footer.props.js.map +1 -1
  225. app-rn-runtime/components/container/panel/panel-footer/panel-footer.styles.js.map +1 -1
  226. app-rn-runtime/components/container/panel/panel.component.js +5 -5
  227. app-rn-runtime/components/container/panel/panel.component.js.map +1 -1
  228. app-rn-runtime/components/container/panel/panel.props.js +4 -4
  229. app-rn-runtime/components/container/panel/panel.props.js.map +1 -1
  230. app-rn-runtime/components/container/panel/panel.styles.js.map +1 -1
  231. app-rn-runtime/components/container/partial-host.component.js +6 -6
  232. app-rn-runtime/components/container/partial-host.component.js.map +1 -1
  233. app-rn-runtime/components/container/tabs/tabheader/tabheader.component.js +10 -9
  234. app-rn-runtime/components/container/tabs/tabheader/tabheader.component.js.map +1 -1
  235. app-rn-runtime/components/container/tabs/tabheader/tabheader.props.js +4 -4
  236. app-rn-runtime/components/container/tabs/tabheader/tabheader.props.js.map +1 -1
  237. app-rn-runtime/components/container/tabs/tabheader/tabheader.styles.js +1 -1
  238. app-rn-runtime/components/container/tabs/tabheader/tabheader.styles.js.map +1 -1
  239. app-rn-runtime/components/container/tabs/tabpane/tabpane.component.js +10 -7
  240. app-rn-runtime/components/container/tabs/tabpane/tabpane.component.js.map +1 -1
  241. app-rn-runtime/components/container/tabs/tabpane/tabpane.props.js +4 -4
  242. app-rn-runtime/components/container/tabs/tabpane/tabpane.props.js.map +1 -1
  243. app-rn-runtime/components/container/tabs/tabpane/tabpane.styles.js.map +1 -1
  244. app-rn-runtime/components/container/tabs/tabs.component.js +20 -17
  245. app-rn-runtime/components/container/tabs/tabs.component.js.map +1 -1
  246. app-rn-runtime/components/container/tabs/tabs.props.js +4 -4
  247. app-rn-runtime/components/container/tabs/tabs.props.js.map +1 -1
  248. app-rn-runtime/components/container/tabs/tabs.styles.js.map +1 -1
  249. app-rn-runtime/components/container/tile/tile.component.js +1 -0
  250. app-rn-runtime/components/container/tile/tile.component.js.map +1 -1
  251. app-rn-runtime/components/container/tile/tile.props.js +5 -4
  252. app-rn-runtime/components/container/tile/tile.props.js.map +1 -1
  253. app-rn-runtime/components/container/tile/tile.styles.js.map +1 -1
  254. app-rn-runtime/components/container/wizard/wizard.component.js +12 -12
  255. app-rn-runtime/components/container/wizard/wizard.component.js.map +1 -1
  256. app-rn-runtime/components/container/wizard/wizard.props.js +5 -4
  257. app-rn-runtime/components/container/wizard/wizard.props.js.map +1 -1
  258. app-rn-runtime/components/container/wizard/wizard.styles.js +3 -1
  259. app-rn-runtime/components/container/wizard/wizard.styles.js.map +1 -1
  260. app-rn-runtime/components/container/wizard/wizardstep/wizardstep.component.js +5 -5
  261. app-rn-runtime/components/container/wizard/wizardstep/wizardstep.component.js.map +1 -1
  262. app-rn-runtime/components/container/wizard/wizardstep/wizardstep.props.js +4 -4
  263. app-rn-runtime/components/container/wizard/wizardstep/wizardstep.props.js.map +1 -1
  264. app-rn-runtime/components/container/wizard/wizardstep/wizardstep.styles.js +1 -1
  265. app-rn-runtime/components/container/wizard/wizardstep/wizardstep.styles.js.map +1 -1
  266. app-rn-runtime/components/data/card/card-content/card-content.component.js +4 -4
  267. app-rn-runtime/components/data/card/card-content/card-content.component.js.map +1 -1
  268. app-rn-runtime/components/data/card/card-content/card-content.props.js +4 -4
  269. app-rn-runtime/components/data/card/card-content/card-content.props.js.map +1 -1
  270. app-rn-runtime/components/data/card/card-content/card-content.styles.js.map +1 -1
  271. app-rn-runtime/components/data/card/card-footer/card-footer.component.js.map +1 -1
  272. app-rn-runtime/components/data/card/card-footer/card-footer.props.js +4 -4
  273. app-rn-runtime/components/data/card/card-footer/card-footer.props.js.map +1 -1
  274. app-rn-runtime/components/data/card/card-footer/card-footer.styles.js.map +1 -1
  275. app-rn-runtime/components/data/card/card.component.js.map +1 -1
  276. app-rn-runtime/components/data/card/card.props.js +4 -4
  277. app-rn-runtime/components/data/card/card.props.js.map +1 -1
  278. app-rn-runtime/components/data/card/card.styles.js.map +1 -1
  279. app-rn-runtime/components/data/form/form-action/form-action.component.js +2 -2
  280. app-rn-runtime/components/data/form/form-action/form-action.component.js.map +1 -1
  281. app-rn-runtime/components/data/form/form-action/form-action.props.js +4 -4
  282. app-rn-runtime/components/data/form/form-action/form-action.props.js.map +1 -1
  283. app-rn-runtime/components/data/form/form-action/form-action.styles.js.map +1 -1
  284. app-rn-runtime/components/data/form/form-body/form-body.component.js.map +1 -1
  285. app-rn-runtime/components/data/form/form-body/form-body.props.js +4 -4
  286. app-rn-runtime/components/data/form/form-body/form-body.props.js.map +1 -1
  287. app-rn-runtime/components/data/form/form-body/form-body.styles.js.map +1 -1
  288. app-rn-runtime/components/data/form/form-field/form-field.component.js +12 -9
  289. app-rn-runtime/components/data/form/form-field/form-field.component.js.map +1 -1
  290. app-rn-runtime/components/data/form/form-field/form-field.props.js +5 -4
  291. app-rn-runtime/components/data/form/form-field/form-field.props.js.map +1 -1
  292. app-rn-runtime/components/data/form/form-field/form-field.styles.js.map +1 -1
  293. app-rn-runtime/components/data/form/form-footer/form-footer.component.js.map +1 -1
  294. app-rn-runtime/components/data/form/form-footer/form-footer.props.js +4 -4
  295. app-rn-runtime/components/data/form/form-footer/form-footer.props.js.map +1 -1
  296. app-rn-runtime/components/data/form/form-footer/form-footer.styles.js.map +1 -1
  297. app-rn-runtime/components/data/form/form.component.js +11 -11
  298. app-rn-runtime/components/data/form/form.component.js.map +1 -1
  299. app-rn-runtime/components/data/form/form.props.js +4 -4
  300. app-rn-runtime/components/data/form/form.props.js.map +1 -1
  301. app-rn-runtime/components/data/form/form.styles.js.map +1 -1
  302. app-rn-runtime/components/data/list/list-action-template/list-action-template.component.js +28 -0
  303. app-rn-runtime/components/data/list/list-action-template/list-action-template.component.js.map +1 -0
  304. app-rn-runtime/components/data/list/list-action-template/list-action-template.props.js +12 -0
  305. app-rn-runtime/components/data/list/list-action-template/list-action-template.props.js.map +1 -0
  306. app-rn-runtime/components/data/list/list-action-template/list-action-template.styles.js +36 -0
  307. app-rn-runtime/components/data/list/list-action-template/list-action-template.styles.js.map +1 -0
  308. app-rn-runtime/components/data/list/list-template/list-template.component.js.map +1 -1
  309. app-rn-runtime/components/data/list/list-template/list-template.props.js +4 -4
  310. app-rn-runtime/components/data/list/list-template/list-template.props.js.map +1 -1
  311. app-rn-runtime/components/data/list/list-template/list-template.styles.js +0 -1
  312. app-rn-runtime/components/data/list/list-template/list-template.styles.js.map +1 -1
  313. app-rn-runtime/components/data/list/list.component.js +63 -38
  314. app-rn-runtime/components/data/list/list.component.js.map +1 -1
  315. app-rn-runtime/components/data/list/list.props.js +5 -4
  316. app-rn-runtime/components/data/list/list.props.js.map +1 -1
  317. app-rn-runtime/components/data/list/list.styles.js +2 -2
  318. app-rn-runtime/components/data/list/list.styles.js.map +1 -1
  319. app-rn-runtime/components/data/liveform/liveform.component.js +5 -5
  320. app-rn-runtime/components/data/liveform/liveform.component.js.map +1 -1
  321. app-rn-runtime/components/device/barcodescanner/barcodescanner.component.js +2 -2
  322. app-rn-runtime/components/device/barcodescanner/barcodescanner.component.js.map +1 -1
  323. app-rn-runtime/components/device/barcodescanner/barcodescanner.props.js +4 -4
  324. app-rn-runtime/components/device/barcodescanner/barcodescanner.props.js.map +1 -1
  325. app-rn-runtime/components/device/barcodescanner/barcodescanner.styles.js.map +1 -1
  326. app-rn-runtime/components/device/camera/camera.component.js +2 -2
  327. app-rn-runtime/components/device/camera/camera.component.js.map +1 -1
  328. app-rn-runtime/components/device/camera/camera.props.js +4 -4
  329. app-rn-runtime/components/device/camera/camera.props.js.map +1 -1
  330. app-rn-runtime/components/device/camera/camera.styles.js.map +1 -1
  331. app-rn-runtime/components/dialogs/alertdialog/alertdialog.component.js +3 -2
  332. app-rn-runtime/components/dialogs/alertdialog/alertdialog.component.js.map +1 -1
  333. app-rn-runtime/components/dialogs/alertdialog/alertdialog.props.js +5 -4
  334. app-rn-runtime/components/dialogs/alertdialog/alertdialog.props.js.map +1 -1
  335. app-rn-runtime/components/dialogs/alertdialog/alertdialog.styles.js.map +1 -1
  336. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.component.js +3 -2
  337. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.component.js.map +1 -1
  338. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.props.js +5 -4
  339. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.props.js.map +1 -1
  340. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.styles.js.map +1 -1
  341. app-rn-runtime/components/dialogs/dialog/dialog.component.js +5 -4
  342. app-rn-runtime/components/dialogs/dialog/dialog.component.js.map +1 -1
  343. app-rn-runtime/components/dialogs/dialog/dialog.props.js +5 -4
  344. app-rn-runtime/components/dialogs/dialog/dialog.props.js.map +1 -1
  345. app-rn-runtime/components/dialogs/dialog/dialog.styles.js.map +1 -1
  346. app-rn-runtime/components/dialogs/dialogactions/dialogactions.component.js +2 -2
  347. app-rn-runtime/components/dialogs/dialogactions/dialogactions.component.js.map +1 -1
  348. app-rn-runtime/components/dialogs/dialogactions/dialogactions.props.js +4 -4
  349. app-rn-runtime/components/dialogs/dialogactions/dialogactions.props.js.map +1 -1
  350. app-rn-runtime/components/dialogs/dialogactions/dialogactions.styles.js.map +1 -1
  351. app-rn-runtime/components/dialogs/dialogcontent/dialogcontent.component.js +1 -1
  352. app-rn-runtime/components/dialogs/dialogcontent/dialogcontent.component.js.map +1 -1
  353. app-rn-runtime/components/dialogs/dialogcontent/dialogcontent.props.js +4 -4
  354. app-rn-runtime/components/dialogs/dialogcontent/dialogcontent.props.js.map +1 -1
  355. app-rn-runtime/components/dialogs/dialogcontent/dialogcontent.styles.js.map +1 -1
  356. app-rn-runtime/components/input/basedataset/basedataset.component.js +9 -14
  357. app-rn-runtime/components/input/basedataset/basedataset.component.js.map +1 -1
  358. app-rn-runtime/components/input/basedataset/basedataset.props.js +4 -4
  359. app-rn-runtime/components/input/basedataset/basedataset.props.js.map +1 -1
  360. app-rn-runtime/components/input/basedataset/basedataset.styles.js.map +1 -1
  361. app-rn-runtime/components/input/baseinput/baseinput.component.js +8 -9
  362. app-rn-runtime/components/input/baseinput/baseinput.component.js.map +1 -1
  363. app-rn-runtime/components/input/baseinput/baseinput.props.js +4 -4
  364. app-rn-runtime/components/input/baseinput/baseinput.props.js.map +1 -1
  365. app-rn-runtime/components/input/baseinput/baseinput.styles.js.map +1 -1
  366. app-rn-runtime/components/input/basenumber/basenumber.component.js +6 -9
  367. app-rn-runtime/components/input/basenumber/basenumber.component.js.map +1 -1
  368. app-rn-runtime/components/input/basenumber/basenumber.props.js +4 -4
  369. app-rn-runtime/components/input/basenumber/basenumber.props.js.map +1 -1
  370. app-rn-runtime/components/input/basenumber/basenumber.styles.js.map +1 -1
  371. app-rn-runtime/components/input/calendar/calendar.component.js +5 -5
  372. app-rn-runtime/components/input/calendar/calendar.component.js.map +1 -1
  373. app-rn-runtime/components/input/calendar/calendar.props.js +4 -4
  374. app-rn-runtime/components/input/calendar/calendar.props.js.map +1 -1
  375. app-rn-runtime/components/input/calendar/calendar.styles.js.map +1 -1
  376. app-rn-runtime/components/input/calendar/views/month-view.js +6 -10
  377. app-rn-runtime/components/input/calendar/views/month-view.js.map +1 -1
  378. app-rn-runtime/components/input/calendar/views/month-view.styles.js.map +1 -1
  379. app-rn-runtime/components/input/checkbox/checkbox.component.js +4 -4
  380. app-rn-runtime/components/input/checkbox/checkbox.component.js.map +1 -1
  381. app-rn-runtime/components/input/checkbox/checkbox.props.js +4 -4
  382. app-rn-runtime/components/input/checkbox/checkbox.props.js.map +1 -1
  383. app-rn-runtime/components/input/checkbox/checkbox.styles.js.map +1 -1
  384. app-rn-runtime/components/input/checkboxset/checkboxset.component.js +17 -8
  385. app-rn-runtime/components/input/checkboxset/checkboxset.component.js.map +1 -1
  386. app-rn-runtime/components/input/checkboxset/checkboxset.props.js +10 -4
  387. app-rn-runtime/components/input/checkboxset/checkboxset.props.js.map +1 -1
  388. app-rn-runtime/components/input/checkboxset/checkboxset.styles.js +2 -0
  389. app-rn-runtime/components/input/checkboxset/checkboxset.styles.js.map +1 -1
  390. app-rn-runtime/components/input/chips/chips.component.js +5 -5
  391. app-rn-runtime/components/input/chips/chips.component.js.map +1 -1
  392. app-rn-runtime/components/input/chips/chips.props.js +4 -4
  393. app-rn-runtime/components/input/chips/chips.props.js.map +1 -1
  394. app-rn-runtime/components/input/chips/chips.styles.js.map +1 -1
  395. app-rn-runtime/components/input/composite/composite.component.js.map +1 -1
  396. app-rn-runtime/components/input/composite/composite.props.js +4 -4
  397. app-rn-runtime/components/input/composite/composite.props.js.map +1 -1
  398. app-rn-runtime/components/input/composite/composite.styles.js.map +1 -1
  399. app-rn-runtime/components/input/currency/currency.component.js +4 -4
  400. app-rn-runtime/components/input/currency/currency.component.js.map +1 -1
  401. app-rn-runtime/components/input/currency/currency.props.js +4 -4
  402. app-rn-runtime/components/input/currency/currency.props.js.map +1 -1
  403. app-rn-runtime/components/input/currency/currency.styles.js.map +1 -1
  404. app-rn-runtime/components/input/epoch/base-datetime.component.js +90 -16
  405. app-rn-runtime/components/input/epoch/base-datetime.component.js.map +1 -1
  406. app-rn-runtime/components/input/epoch/date/date.component.js.map +1 -1
  407. app-rn-runtime/components/input/epoch/date/date.props.js.map +1 -1
  408. app-rn-runtime/components/input/epoch/date/date.styles.js.map +1 -1
  409. app-rn-runtime/components/input/epoch/date-picker.component.js +2 -2
  410. app-rn-runtime/components/input/epoch/date-picker.component.js.map +1 -1
  411. app-rn-runtime/components/input/epoch/datetime/datetime.component.js.map +1 -1
  412. app-rn-runtime/components/input/epoch/datetime/datetime.props.js +6 -4
  413. app-rn-runtime/components/input/epoch/datetime/datetime.props.js.map +1 -1
  414. app-rn-runtime/components/input/epoch/datetime/datetime.styles.js.map +1 -1
  415. app-rn-runtime/components/input/epoch/time/time.component.js.map +1 -1
  416. app-rn-runtime/components/input/epoch/time/time.props.js +2 -2
  417. app-rn-runtime/components/input/epoch/time/time.props.js.map +1 -1
  418. app-rn-runtime/components/input/epoch/time/time.styles.js.map +1 -1
  419. app-rn-runtime/components/input/epoch/wheel-date-picker.component.js +87 -0
  420. app-rn-runtime/components/input/epoch/wheel-date-picker.component.js.map +1 -0
  421. app-rn-runtime/components/input/epoch/wheel-time-picker.component.js +107 -0
  422. app-rn-runtime/components/input/epoch/wheel-time-picker.component.js.map +1 -0
  423. app-rn-runtime/components/input/epoch/wheelpicker/wheelpicker.component.js +91 -0
  424. app-rn-runtime/components/input/epoch/wheelpicker/wheelpicker.component.js.map +1 -0
  425. app-rn-runtime/components/input/epoch/wheelpicker/wheelpicker.props.js +17 -0
  426. app-rn-runtime/components/input/epoch/wheelpicker/wheelpicker.props.js.map +1 -0
  427. app-rn-runtime/components/input/epoch/wheelpicker/wheelpicker.styles.js +55 -0
  428. app-rn-runtime/components/input/epoch/wheelpicker/wheelpicker.styles.js.map +1 -0
  429. app-rn-runtime/components/input/epoch/wheelpickermodal/date/date-picker-modal.component.js +72 -0
  430. app-rn-runtime/components/input/epoch/wheelpickermodal/date/date-picker-modal.component.js.map +1 -0
  431. app-rn-runtime/components/input/epoch/wheelpickermodal/date/date-picker-modal.props.js +15 -0
  432. app-rn-runtime/components/input/epoch/wheelpickermodal/date/date-picker-modal.props.js.map +1 -0
  433. app-rn-runtime/components/input/epoch/wheelpickermodal/styles/datetime-picker-modal.styles.js +66 -0
  434. app-rn-runtime/components/input/epoch/wheelpickermodal/styles/datetime-picker-modal.styles.js.map +1 -0
  435. app-rn-runtime/components/input/epoch/wheelpickermodal/time/time-picker-modal.component.js +74 -0
  436. app-rn-runtime/components/input/epoch/wheelpickermodal/time/time-picker-modal.component.js.map +1 -0
  437. app-rn-runtime/components/input/epoch/wheelpickermodal/time/time-picker-modal.props.js +16 -0
  438. app-rn-runtime/components/input/epoch/wheelpickermodal/time/time-picker-modal.props.js.map +1 -0
  439. app-rn-runtime/components/input/fileupload/fileupload.component.js +4 -4
  440. app-rn-runtime/components/input/fileupload/fileupload.component.js.map +1 -1
  441. app-rn-runtime/components/input/fileupload/fileupload.props.js +4 -4
  442. app-rn-runtime/components/input/fileupload/fileupload.props.js.map +1 -1
  443. app-rn-runtime/components/input/fileupload/fileupload.styles.js.map +1 -1
  444. app-rn-runtime/components/input/number/number.component.js +4 -4
  445. app-rn-runtime/components/input/number/number.component.js.map +1 -1
  446. app-rn-runtime/components/input/number/number.props.js +4 -4
  447. app-rn-runtime/components/input/number/number.props.js.map +1 -1
  448. app-rn-runtime/components/input/number/number.styles.js.map +1 -1
  449. app-rn-runtime/components/input/radioset/radioset.component.js +10 -7
  450. app-rn-runtime/components/input/radioset/radioset.component.js.map +1 -1
  451. app-rn-runtime/components/input/radioset/radioset.props.js +4 -4
  452. app-rn-runtime/components/input/radioset/radioset.props.js.map +1 -1
  453. app-rn-runtime/components/input/radioset/radioset.styles.js +1 -0
  454. app-rn-runtime/components/input/radioset/radioset.styles.js.map +1 -1
  455. app-rn-runtime/components/input/rating/rating.component.js +4 -4
  456. app-rn-runtime/components/input/rating/rating.component.js.map +1 -1
  457. app-rn-runtime/components/input/rating/rating.props.js +4 -4
  458. app-rn-runtime/components/input/rating/rating.props.js.map +1 -1
  459. app-rn-runtime/components/input/rating/rating.styles.js.map +1 -1
  460. app-rn-runtime/components/input/select/select.component.js +10 -7
  461. app-rn-runtime/components/input/select/select.component.js.map +1 -1
  462. app-rn-runtime/components/input/select/select.props.js +4 -4
  463. app-rn-runtime/components/input/select/select.props.js.map +1 -1
  464. app-rn-runtime/components/input/select/select.styles.js.map +1 -1
  465. app-rn-runtime/components/input/slider/slider.component.js +357 -70
  466. app-rn-runtime/components/input/slider/slider.component.js.map +1 -1
  467. app-rn-runtime/components/input/slider/slider.props.js +13 -9
  468. app-rn-runtime/components/input/slider/slider.props.js.map +1 -1
  469. app-rn-runtime/components/input/slider/slider.styles.js +25 -2
  470. app-rn-runtime/components/input/slider/slider.styles.js.map +1 -1
  471. app-rn-runtime/components/input/switch/switch.component.js +1 -1
  472. app-rn-runtime/components/input/switch/switch.component.js.map +1 -1
  473. app-rn-runtime/components/input/switch/switch.props.js +4 -4
  474. app-rn-runtime/components/input/switch/switch.props.js.map +1 -1
  475. app-rn-runtime/components/input/switch/switch.styles.js +6 -1
  476. app-rn-runtime/components/input/switch/switch.styles.js.map +1 -1
  477. app-rn-runtime/components/input/text/text.component.js.map +1 -1
  478. app-rn-runtime/components/input/text/text.props.js +4 -4
  479. app-rn-runtime/components/input/text/text.props.js.map +1 -1
  480. app-rn-runtime/components/input/text/text.styles.js.map +1 -1
  481. app-rn-runtime/components/input/textarea/textarea.component.js.map +1 -1
  482. app-rn-runtime/components/input/textarea/textarea.props.js +4 -4
  483. app-rn-runtime/components/input/textarea/textarea.props.js.map +1 -1
  484. app-rn-runtime/components/input/textarea/textarea.styles.js.map +1 -1
  485. app-rn-runtime/components/input/toggle/toggle.component.js +13 -6
  486. app-rn-runtime/components/input/toggle/toggle.component.js.map +1 -1
  487. app-rn-runtime/components/input/toggle/toggle.props.js +4 -4
  488. app-rn-runtime/components/input/toggle/toggle.props.js.map +1 -1
  489. app-rn-runtime/components/input/toggle/toggle.styles.js.map +1 -1
  490. app-rn-runtime/components/navigation/appnavbar/appnavbar.component.js +4 -4
  491. app-rn-runtime/components/navigation/appnavbar/appnavbar.component.js.map +1 -1
  492. app-rn-runtime/components/navigation/appnavbar/appnavbar.props.js +4 -4
  493. app-rn-runtime/components/navigation/appnavbar/appnavbar.props.js.map +1 -1
  494. app-rn-runtime/components/navigation/appnavbar/appnavbar.styles.js.map +1 -1
  495. app-rn-runtime/components/navigation/basenav/basenav.component.js +6 -10
  496. app-rn-runtime/components/navigation/basenav/basenav.component.js.map +1 -1
  497. app-rn-runtime/components/navigation/basenav/basenav.props.js +4 -4
  498. app-rn-runtime/components/navigation/basenav/basenav.props.js.map +1 -1
  499. app-rn-runtime/components/navigation/basenav/basenav.styles.js.map +1 -1
  500. app-rn-runtime/components/navigation/menu/menu.component.js +2 -2
  501. app-rn-runtime/components/navigation/menu/menu.component.js.map +1 -1
  502. app-rn-runtime/components/navigation/menu/menu.props.js +4 -4
  503. app-rn-runtime/components/navigation/menu/menu.props.js.map +1 -1
  504. app-rn-runtime/components/navigation/menu/menu.styles.js.map +1 -1
  505. app-rn-runtime/components/navigation/navbar/navbar.component.js.map +1 -1
  506. app-rn-runtime/components/navigation/navbar/navbar.props.js +4 -4
  507. app-rn-runtime/components/navigation/navbar/navbar.props.js.map +1 -1
  508. app-rn-runtime/components/navigation/navbar/navbar.styles.js.map +1 -1
  509. app-rn-runtime/components/navigation/navitem/navitem.component.js +4 -4
  510. app-rn-runtime/components/navigation/navitem/navitem.component.js.map +1 -1
  511. app-rn-runtime/components/navigation/navitem/navitem.props.js +4 -4
  512. app-rn-runtime/components/navigation/navitem/navitem.props.js.map +1 -1
  513. app-rn-runtime/components/navigation/navitem/navitem.styles.js.map +1 -1
  514. app-rn-runtime/components/navigation/popover/popover.component.js +84 -31
  515. app-rn-runtime/components/navigation/popover/popover.component.js.map +1 -1
  516. app-rn-runtime/components/navigation/popover/popover.props.js +5 -4
  517. app-rn-runtime/components/navigation/popover/popover.props.js.map +1 -1
  518. app-rn-runtime/components/navigation/popover/popover.styles.js +6 -1
  519. app-rn-runtime/components/navigation/popover/popover.styles.js.map +1 -1
  520. app-rn-runtime/components/page/content/content.component.js.map +1 -1
  521. app-rn-runtime/components/page/content/content.props.js.map +1 -1
  522. app-rn-runtime/components/page/content/content.styles.js.map +1 -1
  523. app-rn-runtime/components/page/left-panel/left-panel.component.js +5 -5
  524. app-rn-runtime/components/page/left-panel/left-panel.component.js.map +1 -1
  525. app-rn-runtime/components/page/left-panel/left-panel.props.js +4 -4
  526. app-rn-runtime/components/page/left-panel/left-panel.props.js.map +1 -1
  527. app-rn-runtime/components/page/left-panel/left-panel.styles.js.map +1 -1
  528. app-rn-runtime/components/page/page-content/page-content.component.js +2 -1
  529. app-rn-runtime/components/page/page-content/page-content.component.js.map +1 -1
  530. app-rn-runtime/components/page/page-content/page-content.props.js +4 -4
  531. app-rn-runtime/components/page/page-content/page-content.props.js.map +1 -1
  532. app-rn-runtime/components/page/page-content/page-content.styles.js.map +1 -1
  533. app-rn-runtime/components/page/page.component.js +13 -3
  534. app-rn-runtime/components/page/page.component.js.map +1 -1
  535. app-rn-runtime/components/page/page.props.js.map +1 -1
  536. app-rn-runtime/components/page/page.styles.js.map +1 -1
  537. app-rn-runtime/components/page/partial/partial.component.js.map +1 -1
  538. app-rn-runtime/components/page/partial/partial.props.js.map +1 -1
  539. app-rn-runtime/components/page/partial/partial.styles.js.map +1 -1
  540. app-rn-runtime/components/page/partial-container/partial-container.component.js.map +1 -1
  541. app-rn-runtime/components/page/partial-container/partial-container.props.js +4 -4
  542. app-rn-runtime/components/page/partial-container/partial-container.props.js.map +1 -1
  543. app-rn-runtime/components/page/partial-container/partial-container.styles.js.map +1 -1
  544. app-rn-runtime/components/page/tabbar/curve.js.map +1 -1
  545. app-rn-runtime/components/page/tabbar/tabbar.component.js +26 -14
  546. app-rn-runtime/components/page/tabbar/tabbar.component.js.map +1 -1
  547. app-rn-runtime/components/page/tabbar/tabbar.props.js +4 -4
  548. app-rn-runtime/components/page/tabbar/tabbar.props.js.map +1 -1
  549. app-rn-runtime/components/page/tabbar/tabbar.styles.js.map +1 -1
  550. app-rn-runtime/components/prefab/prefab-container.component.js.map +1 -1
  551. app-rn-runtime/components/prefab/prefab-container.props.js.map +1 -1
  552. app-rn-runtime/components/prefab/prefab-container.styles.js.map +1 -1
  553. app-rn-runtime/core/AppConfig.js.map +1 -1
  554. app-rn-runtime/core/accessibility.js +1 -1
  555. app-rn-runtime/core/accessibility.js.map +1 -1
  556. app-rn-runtime/core/asset.provider.js.map +1 -1
  557. app-rn-runtime/core/base.component.js +27 -22
  558. app-rn-runtime/core/base.component.js.map +1 -1
  559. app-rn-runtime/core/components/floatinglabel.component.js.map +1 -1
  560. app-rn-runtime/core/components/textinput.component.js +6 -5
  561. app-rn-runtime/core/components/textinput.component.js.map +1 -1
  562. app-rn-runtime/core/constant.service.js +2 -2
  563. app-rn-runtime/core/constant.service.js.map +1 -1
  564. app-rn-runtime/core/constants/currency-constants.js.map +1 -1
  565. app-rn-runtime/core/currency-constants.js.map +1 -1
  566. app-rn-runtime/core/device/calendar-service.js.map +1 -1
  567. app-rn-runtime/core/device/camera-service.js.map +1 -1
  568. app-rn-runtime/core/device/contacts-service.js.map +1 -1
  569. app-rn-runtime/core/device/location-service.js.map +1 -1
  570. app-rn-runtime/core/device/scan-service.js.map +1 -1
  571. app-rn-runtime/core/display.manager.js.map +1 -1
  572. app-rn-runtime/core/event-notifier.js +15 -7
  573. app-rn-runtime/core/event-notifier.js.map +1 -1
  574. app-rn-runtime/core/file-extension-types.js.map +1 -1
  575. app-rn-runtime/core/fixed-view.component.js +4 -4
  576. app-rn-runtime/core/fixed-view.component.js.map +1 -1
  577. app-rn-runtime/core/formatters.js +6 -12
  578. app-rn-runtime/core/formatters.js.map +1 -1
  579. app-rn-runtime/core/i18n.service.js.map +1 -1
  580. app-rn-runtime/core/if.component.js +6 -7
  581. app-rn-runtime/core/if.component.js.map +1 -1
  582. app-rn-runtime/core/imageSizeEstimator.js +3 -3
  583. app-rn-runtime/core/imageSizeEstimator.js.map +1 -1
  584. app-rn-runtime/core/injector.js.map +1 -1
  585. app-rn-runtime/core/key.extractor.js +3 -4
  586. app-rn-runtime/core/key.extractor.js.map +1 -1
  587. app-rn-runtime/core/logger.js +3 -3
  588. app-rn-runtime/core/logger.js.map +1 -1
  589. app-rn-runtime/core/modal.service.js.map +1 -1
  590. app-rn-runtime/core/navigation.service.js.map +1 -1
  591. app-rn-runtime/core/network.service.js +7 -11
  592. app-rn-runtime/core/network.service.js.map +1 -1
  593. app-rn-runtime/core/partial.service.js.map +1 -1
  594. app-rn-runtime/core/props.provider.js +4 -5
  595. app-rn-runtime/core/props.provider.js.map +1 -1
  596. app-rn-runtime/core/scroll-view.component.js +2 -2
  597. app-rn-runtime/core/scroll-view.component.js.map +1 -1
  598. app-rn-runtime/core/security.service.js.map +1 -1
  599. app-rn-runtime/core/spinner.service.js.map +1 -1
  600. app-rn-runtime/core/storage.service.js +2 -2
  601. app-rn-runtime/core/storage.service.js.map +1 -1
  602. app-rn-runtime/core/tappable.component.js +77 -42
  603. app-rn-runtime/core/tappable.component.js.map +1 -1
  604. app-rn-runtime/core/testid.provider.js.map +1 -1
  605. app-rn-runtime/core/toast.service.js.map +1 -1
  606. app-rn-runtime/core/utils.js +123 -20
  607. app-rn-runtime/core/utils.js.map +1 -1
  608. app-rn-runtime/core/viewport.js +2 -2
  609. app-rn-runtime/core/viewport.js.map +1 -1
  610. app-rn-runtime/gestures/swipe.animation.js +2 -2
  611. app-rn-runtime/gestures/swipe.animation.js.map +1 -1
  612. app-rn-runtime/index.js.map +1 -1
  613. app-rn-runtime/package.json +85 -85
  614. app-rn-runtime/runtime/App.js +55 -47
  615. app-rn-runtime/runtime/App.js.map +1 -1
  616. app-rn-runtime/runtime/App.navigator.js +1 -1
  617. app-rn-runtime/runtime/App.navigator.js.map +1 -1
  618. app-rn-runtime/runtime/base-fragment.component.js +6 -8
  619. app-rn-runtime/runtime/base-fragment.component.js.map +1 -1
  620. app-rn-runtime/runtime/base-page.component.js +29 -22
  621. app-rn-runtime/runtime/base-page.component.js.map +1 -1
  622. app-rn-runtime/runtime/base-partial.component.js +12 -7
  623. app-rn-runtime/runtime/base-partial.component.js.map +1 -1
  624. app-rn-runtime/runtime/base-prefab.component.js +6 -6
  625. app-rn-runtime/runtime/base-prefab.component.js.map +1 -1
  626. app-rn-runtime/runtime/lib-patch.js +1 -1
  627. app-rn-runtime/runtime/lib-patch.js.map +1 -1
  628. app-rn-runtime/runtime/memo.component.js +2 -2
  629. app-rn-runtime/runtime/memo.component.js.map +1 -1
  630. app-rn-runtime/runtime/navigator/drawer.navigator.js +1 -0
  631. app-rn-runtime/runtime/navigator/drawer.navigator.js.map +1 -1
  632. app-rn-runtime/runtime/navigator/stack.navigator.js +5 -8
  633. app-rn-runtime/runtime/navigator/stack.navigator.js.map +1 -1
  634. app-rn-runtime/runtime/platform.api.js.map +1 -1
  635. app-rn-runtime/runtime/services/app-display-manager.service.js +7 -4
  636. app-rn-runtime/runtime/services/app-display-manager.service.js.map +1 -1
  637. app-rn-runtime/runtime/services/app-i18n.service.js +3 -4
  638. app-rn-runtime/runtime/services/app-i18n.service.js.map +1 -1
  639. app-rn-runtime/runtime/services/app-modal.service.js +7 -4
  640. app-rn-runtime/runtime/services/app-modal.service.js.map +1 -1
  641. app-rn-runtime/runtime/services/app-security.service.js +26 -11
  642. app-rn-runtime/runtime/services/app-security.service.js.map +1 -1
  643. app-rn-runtime/runtime/services/app-spinner.service.js +3 -4
  644. app-rn-runtime/runtime/services/app-spinner.service.js.map +1 -1
  645. app-rn-runtime/runtime/services/app-toast.service.js +2 -2
  646. app-rn-runtime/runtime/services/app-toast.service.js.map +1 -1
  647. app-rn-runtime/runtime/services/device/calendar-service.js.map +1 -1
  648. app-rn-runtime/runtime/services/device/camera-service.js +2 -2
  649. app-rn-runtime/runtime/services/device/camera-service.js.map +1 -1
  650. app-rn-runtime/runtime/services/device/contacts-service.js +1 -1
  651. app-rn-runtime/runtime/services/device/contacts-service.js.map +1 -1
  652. app-rn-runtime/runtime/services/device/location-service.js.map +1 -1
  653. app-rn-runtime/runtime/services/device/permissions.js.map +1 -1
  654. app-rn-runtime/runtime/services/device/scan-service.js.map +1 -1
  655. app-rn-runtime/runtime/services/partial.service.js +1 -2
  656. app-rn-runtime/runtime/services/partial.service.js.map +1 -1
  657. app-rn-runtime/runtime/services/webprocess.service.js +3 -5
  658. app-rn-runtime/runtime/services/webprocess.service.js.map +1 -1
  659. app-rn-runtime/runtime/watcher.js +5 -5
  660. app-rn-runtime/runtime/watcher.js.map +1 -1
  661. app-rn-runtime/styles/MediaQueryList.js.map +1 -1
  662. app-rn-runtime/styles/background.component.js +7 -6
  663. app-rn-runtime/styles/background.component.js.map +1 -1
  664. app-rn-runtime/styles/style-prop.validator.js +1 -4
  665. app-rn-runtime/styles/style-prop.validator.js.map +1 -1
  666. app-rn-runtime/styles/style-props.js +2 -2
  667. app-rn-runtime/styles/style-props.js.map +1 -1
  668. app-rn-runtime/styles/theme.js +25 -17
  669. app-rn-runtime/styles/theme.js.map +1 -1
  670. app-rn-runtime/styles/theme.variables.js +13 -7
  671. app-rn-runtime/styles/theme.variables.js.map +1 -1
  672. app-rn-runtime/variables/base-variable.js +2 -2
  673. app-rn-runtime/variables/base-variable.js.map +1 -1
  674. app-rn-runtime/variables/device/calendar/create-event.operation.js.map +1 -1
  675. app-rn-runtime/variables/device/calendar/delete-event.operation.js.map +1 -1
  676. app-rn-runtime/variables/device/calendar/get-events.operation.js.map +1 -1
  677. app-rn-runtime/variables/device/camera/capture-image.operation.js.map +1 -1
  678. app-rn-runtime/variables/device/camera/capture-video.operation.js.map +1 -1
  679. app-rn-runtime/variables/device/contacts/get-contacts.operation.js.map +1 -1
  680. app-rn-runtime/variables/device/device/app-info.operation.js.map +1 -1
  681. app-rn-runtime/variables/device/device/current-geo-position.operation.js.map +1 -1
  682. app-rn-runtime/variables/device/device/device-info.operation.js.map +1 -1
  683. app-rn-runtime/variables/device/device/network-info.operation.js +23 -3
  684. app-rn-runtime/variables/device/device/network-info.operation.js.map +1 -1
  685. app-rn-runtime/variables/device/device/vibrate.operation.js.map +1 -1
  686. app-rn-runtime/variables/device/file/upload-file.operation.js.map +1 -1
  687. app-rn-runtime/variables/device/operation.provider.js.map +1 -1
  688. app-rn-runtime/variables/device/scan/scan.operation.js.map +1 -1
  689. app-rn-runtime/variables/device-variable.js +1 -1
  690. app-rn-runtime/variables/device-variable.js.map +1 -1
  691. app-rn-runtime/variables/http.service.js +4 -0
  692. app-rn-runtime/variables/http.service.js.map +1 -1
  693. app-rn-runtime/variables/live-variable.js +3 -3
  694. app-rn-runtime/variables/live-variable.js.map +1 -1
  695. app-rn-runtime/variables/model-variable.js +2 -2
  696. app-rn-runtime/variables/model-variable.js.map +1 -1
  697. app-rn-runtime/variables/service-variable.js +2 -2
  698. app-rn-runtime/variables/service-variable.js.map +1 -1
  699. app-rn-runtime/variables/utils/dataset-util.js.map +1 -1
  700. app-rn-runtime/variables/utils/inflight-queue.js +2 -2
  701. app-rn-runtime/variables/utils/inflight-queue.js.map +1 -1
  702. app-rn-runtime/variables/utils/variable.constants.js.map +1 -1
  703. app-rn-runtime/variables/utils/variable.utils.js +0 -1
  704. app-rn-runtime/variables/utils/variable.utils.js.map +1 -1
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["location-service.ts"],"sourcesContent":["import {Input} from \"@wavemaker/app-rn-runtime/variables/device/operation.provider\";\n\nexport interface GeoPositionInput extends Input {\n maximumAge: number;\n timeout: number;\n enableHighAccuracy: boolean;\n}\n\nexport interface LocationService {\n getCurrentGeoPosition: (params: GeoPositionInput) => any;\n}\n"],"mappings":""}
1
+ {"version":3,"names":[],"sources":["location-service.ts"],"sourcesContent":["import {Input} from \"@wavemaker/app-rn-runtime/variables/device/operation.provider\";\n\nexport interface GeoPositionInput extends Input {\n maximumAge: number;\n timeout: number;\n enableHighAccuracy: boolean;\n}\n\nexport interface LocationService {\n getCurrentGeoPosition: (params: GeoPositionInput) => any;\n}\n"],"mappings":"","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["React","ScanContext","createContext","ScanProvider","Provider","ScanConsumer","Consumer"],"sources":["scan-service.ts"],"sourcesContent":["import {ScanInput} from \"@wavemaker/app-rn-runtime/variables/device/scan/scan.operation\";\nimport React from 'react';\n\nexport interface ScanService {\n scanBarcode: (params: ScanInput) => any;\n}\nconst ScanContext = React.createContext<ScanService>(null as any);\n\nexport const ScanProvider = ScanContext.Provider;\nexport const ScanConsumer = ScanContext.Consumer;\n"],"mappings":"AACA,OAAOA,KAAK,MAAM,OAAO;AAKzB,MAAMC,WAAW,gBAAGD,KAAK,CAACE,aAAa,CAAc,IAAW,CAAC;AAEjE,OAAO,MAAMC,YAAY,GAAGF,WAAW,CAACG,QAAQ;AAChD,OAAO,MAAMC,YAAY,GAAGJ,WAAW,CAACK,QAAQ"}
1
+ {"version":3,"names":["React","ScanContext","createContext","ScanProvider","Provider","ScanConsumer","Consumer"],"sources":["scan-service.ts"],"sourcesContent":["import {ScanInput} from \"@wavemaker/app-rn-runtime/variables/device/scan/scan.operation\";\nimport React from 'react';\n\nexport interface ScanService {\n scanBarcode: (params: ScanInput) => any;\n}\nconst ScanContext = React.createContext<ScanService>(null as any);\n\nexport const ScanProvider = ScanContext.Provider;\nexport const ScanConsumer = ScanContext.Consumer;\n"],"mappings":"AACA,OAAOA,KAAK,MAAM,OAAO;AAKzB,MAAMC,WAAW,gBAAGD,KAAK,CAACE,aAAa,CAAc,IAAW,CAAC;AAEjE,OAAO,MAAMC,YAAY,GAAGF,WAAW,CAACG,QAAQ;AAChD,OAAO,MAAMC,YAAY,GAAGJ,WAAW,CAACK,QAAQ","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["React","DisplayContext","createContext","DisplayProvider","Provider","DisplayConsumer","Consumer"],"sources":["display.manager.ts"],"sourcesContent":["import React from 'react';\n\nexport interface DisplayOptions {\n content: React.ReactNode;\n onDestroy?: () => any;\n}\n\nexport interface DisplayManager {\n show: (options: DisplayOptions) => any;\n destroy: () => any;\n}\n\nconst DisplayContext = React.createContext<DisplayManager>(null as any);\n\nexport const DisplayProvider = DisplayContext.Provider;\nexport const DisplayConsumer = DisplayContext.Consumer;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AAYzB,MAAMC,cAAc,gBAAGD,KAAK,CAACE,aAAa,CAAiB,IAAW,CAAC;AAEvE,OAAO,MAAMC,eAAe,GAAGF,cAAc,CAACG,QAAQ;AACtD,OAAO,MAAMC,eAAe,GAAGJ,cAAc,CAACK,QAAQ"}
1
+ {"version":3,"names":["React","DisplayContext","createContext","DisplayProvider","Provider","DisplayConsumer","Consumer"],"sources":["display.manager.ts"],"sourcesContent":["import React from 'react';\n\nexport interface DisplayOptions {\n content: React.ReactNode;\n onDestroy?: () => any;\n}\n\nexport interface DisplayManager {\n show: (options: DisplayOptions) => any;\n destroy: () => any;\n}\n\nconst DisplayContext = React.createContext<DisplayManager>(null as any);\n\nexport const DisplayProvider = DisplayContext.Provider;\nexport const DisplayConsumer = DisplayContext.Consumer;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AAYzB,MAAMC,cAAc,gBAAGD,KAAK,CAACE,aAAa,CAAiB,IAAW,CAAC;AAEvE,OAAO,MAAMC,eAAe,GAAGF,cAAc,CAACG,QAAQ;AACtD,OAAO,MAAMC,eAAe,GAAGJ,cAAc,CAACK,QAAQ","ignoreList":[]}
@@ -1,13 +1,14 @@
1
+ var _EventNotifier;
1
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; }
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); }
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); }
4
5
  let i = 1;
5
6
  export default class EventNotifier {
6
7
  constructor() {
7
8
  _defineProperty(this, "name", '');
8
9
  _defineProperty(this, "id", i++);
9
10
  _defineProperty(this, "listeners", {});
10
- _defineProperty(this, "parent", null);
11
+ _defineProperty(this, "parent", EventNotifier.ROOT);
11
12
  _defineProperty(this, "children", []);
12
13
  }
13
14
  setParent(parent) {
@@ -17,7 +18,7 @@ export default class EventNotifier {
17
18
  this.parent.children.push(this);
18
19
  }
19
20
  }
20
- notify(event, args) {
21
+ notify(event, args, emitToParent = false) {
21
22
  let propagate = true;
22
23
  if (this.listeners[event]) {
23
24
  propagate = !this.listeners[event].find(l => {
@@ -30,9 +31,14 @@ export default class EventNotifier {
30
31
  });
31
32
  }
32
33
  if (propagate) {
33
- this.children.forEach(c => {
34
- c.notify(event, args);
35
- });
34
+ if (emitToParent) {
35
+ var _this$parent;
36
+ (_this$parent = this.parent) === null || _this$parent === void 0 || _this$parent.notify(event, args, true);
37
+ } else {
38
+ this.children.forEach(c => {
39
+ c.notify(event, args);
40
+ });
41
+ }
36
42
  }
37
43
  }
38
44
  subscribe(event, fn) {
@@ -57,4 +63,6 @@ export default class EventNotifier {
57
63
  this.removeFromParent();
58
64
  }
59
65
  }
66
+ _EventNotifier = EventNotifier;
67
+ _defineProperty(EventNotifier, "ROOT", new _EventNotifier());
60
68
  //# sourceMappingURL=event-notifier.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["i","EventNotifier","constructor","_defineProperty","setParent","parent","removeFromParent","children","push","notify","event","args","propagate","listeners","find","l","apply","e","console","error","forEach","c","subscribe","fn","eventListeners","findIndex","fni","splice","indexOf","destroy"],"sources":["event-notifier.ts"],"sourcesContent":["let i = 1;\nexport default class EventNotifier {\n public name = '';\n public id = i++;\n private listeners = {} as any;\n private parent: EventNotifier = null as any;\n private children: EventNotifier[] = [];\n\n setParent(parent: EventNotifier) {\n if (parent !== this.parent) {\n this.removeFromParent();\n this.parent = parent;\n this.parent.children.push(this);\n }\n }\n\n public notify(event: string, args: any[]) {\n let propagate = true;\n if (this.listeners[event]) {\n propagate = !this.listeners[event].find((l: Function) => {\n try {\n return (l && l.apply(null, args)) === false;\n } catch(e) {\n console.error(e);\n }\n return true;\n });\n }\n if (propagate) {\n this.children.forEach((c) => {\n c.notify(event, args);\n });\n }\n }\n\n public subscribe(event: string, fn: Function) {\n this.listeners[event] = this.listeners[event] || [];\n this.listeners[event].push(fn);\n return () => {\n const eventListeners = this.listeners[event];\n const i = eventListeners.findIndex((fni: Function) => fni === fn);\n eventListeners.splice(i, 1);\n };\n }\n\n private removeFromParent() {\n if (this.parent) {\n const i = this.parent.children.indexOf(this) || -1;\n if (i >= 0) {\n this.parent.children.splice(i, 1);\n }\n this.parent = null as any;\n }\n }\n\n public destroy() {\n this.removeFromParent();\n }\n}"],"mappings":";;;AAAA,IAAIA,CAAC,GAAG,CAAC;AACT,eAAe,MAAMC,aAAa,CAAC;EAAAC,YAAA;IAAAC,eAAA,eACjB,EAAE;IAAAA,eAAA,aACJH,CAAC,EAAE;IAAAG,eAAA,oBACK,CAAC,CAAC;IAAAA,eAAA,iBACU,IAAI;IAAAA,eAAA,mBACA,EAAE;EAAA;EAEtCC,SAASA,CAACC,MAAqB,EAAE;IAC7B,IAAIA,MAAM,KAAK,IAAI,CAACA,MAAM,EAAE;MACxB,IAAI,CAACC,gBAAgB,CAAC,CAAC;MACvB,IAAI,CAACD,MAAM,GAAGA,MAAM;MACpB,IAAI,CAACA,MAAM,CAACE,QAAQ,CAACC,IAAI,CAAC,IAAI,CAAC;IACnC;EACJ;EAEOC,MAAMA,CAACC,KAAa,EAAEC,IAAW,EAAE;IACtC,IAAIC,SAAS,GAAG,IAAI;IACpB,IAAI,IAAI,CAACC,SAAS,CAACH,KAAK,CAAC,EAAE;MACvBE,SAAS,GAAG,CAAC,IAAI,CAACC,SAAS,CAACH,KAAK,CAAC,CAACI,IAAI,CAAEC,CAAW,IAAK;QACrD,IAAI;UACA,OAAO,CAACA,CAAC,IAAIA,CAAC,CAACC,KAAK,CAAC,IAAI,EAAEL,IAAI,CAAC,MAAM,KAAK;QAC/C,CAAC,CAAC,OAAMM,CAAC,EAAE;UACPC,OAAO,CAACC,KAAK,CAACF,CAAC,CAAC;QACpB;QACA,OAAO,IAAI;MACf,CAAC,CAAC;IACN;IACA,IAAIL,SAAS,EAAE;MACX,IAAI,CAACL,QAAQ,CAACa,OAAO,CAAEC,CAAC,IAAK;QACzBA,CAAC,CAACZ,MAAM,CAACC,KAAK,EAAEC,IAAI,CAAC;MACzB,CAAC,CAAC;IACN;EACJ;EAEOW,SAASA,CAACZ,KAAa,EAAEa,EAAY,EAAE;IAC1C,IAAI,CAACV,SAAS,CAACH,KAAK,CAAC,GAAG,IAAI,CAACG,SAAS,CAACH,KAAK,CAAC,IAAI,EAAE;IACnD,IAAI,CAACG,SAAS,CAACH,KAAK,CAAC,CAACF,IAAI,CAACe,EAAE,CAAC;IAC9B,OAAO,MAAM;MACT,MAAMC,cAAc,GAAG,IAAI,CAACX,SAAS,CAACH,KAAK,CAAC;MAC5C,MAAMV,CAAC,GAAGwB,cAAc,CAACC,SAAS,CAAEC,GAAa,IAAKA,GAAG,KAAKH,EAAE,CAAC;MACjEC,cAAc,CAACG,MAAM,CAAC3B,CAAC,EAAE,CAAC,CAAC;IAC/B,CAAC;EACL;EAEQM,gBAAgBA,CAAA,EAAG;IACvB,IAAI,IAAI,CAACD,MAAM,EAAE;MACb,MAAML,CAAC,GAAG,IAAI,CAACK,MAAM,CAACE,QAAQ,CAACqB,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;MAClD,IAAI5B,CAAC,IAAI,CAAC,EAAE;QACR,IAAI,CAACK,MAAM,CAACE,QAAQ,CAACoB,MAAM,CAAC3B,CAAC,EAAE,CAAC,CAAC;MACrC;MACA,IAAI,CAACK,MAAM,GAAG,IAAW;IAC7B;EACJ;EAEOwB,OAAOA,CAAA,EAAG;IACb,IAAI,CAACvB,gBAAgB,CAAC,CAAC;EAC3B;AACJ"}
1
+ {"version":3,"names":["i","EventNotifier","constructor","_defineProperty","ROOT","setParent","parent","removeFromParent","children","push","notify","event","args","emitToParent","propagate","listeners","find","l","apply","e","console","error","_this$parent","forEach","c","subscribe","fn","eventListeners","findIndex","fni","splice","indexOf","destroy","_EventNotifier"],"sources":["event-notifier.ts"],"sourcesContent":["let i = 1;\nexport default class EventNotifier {\n public static ROOT = new EventNotifier();\n public name = '';\n public id = i++;\n private listeners = {} as any;\n private parent: EventNotifier = EventNotifier.ROOT;\n private children: EventNotifier[] = [];\n\n setParent(parent: EventNotifier) {\n if (parent !== this.parent) {\n this.removeFromParent();\n this.parent = parent;\n this.parent.children.push(this);\n }\n }\n\n public notify(event: string, args: any[], emitToParent = false) {\n let propagate = true;\n if (this.listeners[event]) {\n propagate = !this.listeners[event].find((l: Function) => {\n try {\n return (l && l.apply(null, args)) === false;\n } catch(e) {\n console.error(e);\n }\n return true;\n });\n }\n if (propagate) {\n if (emitToParent) {\n this.parent?.notify(event, args, true);\n } else {\n this.children.forEach((c) => {\n c.notify(event, args);\n });\n }\n }\n }\n\n public subscribe(event: string, fn: Function) {\n this.listeners[event] = this.listeners[event] || [];\n this.listeners[event].push(fn);\n return () => {\n const eventListeners = this.listeners[event];\n const i = eventListeners.findIndex((fni: Function) => fni === fn);\n eventListeners.splice(i, 1);\n };\n }\n\n private removeFromParent() {\n if (this.parent) {\n const i = this.parent.children.indexOf(this) || -1;\n if (i >= 0) {\n this.parent.children.splice(i, 1);\n }\n this.parent = null as any;\n }\n }\n\n public destroy() {\n this.removeFromParent();\n }\n}"],"mappings":";;;;AAAA,IAAIA,CAAC,GAAG,CAAC;AACT,eAAe,MAAMC,aAAa,CAAC;EAAAC,YAAA;IAAAC,eAAA,eAEjB,EAAE;IAAAA,eAAA,aACJH,CAAC,EAAE;IAAAG,eAAA,oBACK,CAAC,CAAC;IAAAA,eAAA,iBACUF,aAAa,CAACG,IAAI;IAAAD,eAAA,mBACd,EAAE;EAAA;EAEtCE,SAASA,CAACC,MAAqB,EAAE;IAC7B,IAAIA,MAAM,KAAK,IAAI,CAACA,MAAM,EAAE;MACxB,IAAI,CAACC,gBAAgB,CAAC,CAAC;MACvB,IAAI,CAACD,MAAM,GAAGA,MAAM;MACpB,IAAI,CAACA,MAAM,CAACE,QAAQ,CAACC,IAAI,CAAC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AAG,KAAKH,EAAE,CAAC;MACjEC,cAAc,CAACG,MAAM,CAAC9B,CAAC,EAAE,CAAC,CAAC;IAC/B,CAAC;EACL;EAEQO,gBAAgBA,CAAA,EAAG;IACvB,IAAI,IAAI,CAACD,MAAM,EAAE;MACb,MAAMN,CAAC,GAAG,IAAI,CAACM,MAAM,CAACE,QAAQ,CAACuB,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;MAClD,IAAI/B,CAAC,IAAI,CAAC,EAAE;QACR,IAAI,CAACM,MAAM,CAACE,QAAQ,CAACsB,MAAM,CAAC9B,CAAC,EAAE,CAAC,CAAC;MACrC;MACA,IAAI,CAACM,MAAM,GAAG,IAAW;IAC7B;EACJ;EAEO0B,OAAOA,CAAA,EAAG;IACb,IAAI,CAACzB,gBAAgB,CAAC,CAAC;EAC3B;AACJ;AAAC0B,cAAA,GA9DoBhC,aAAa;AAAAE,eAAA,CAAbF,aAAa,UACT,IAAIA,cAAa,CAAC,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["FileExtensionTypesMap"],"sources":["file-extension-types.ts"],"sourcesContent":["export const FileExtensionTypesMap: any = {\n '.aac': 'audio/aac',\n '.abw': 'application/x-abiword',\n '.apk': 'application/vnd.android.package-archive',\n '.avi': 'video/x-msvideo',\n '.azw': 'application/vnd.amazon.ebook',\n '.bin': 'application/octet-stream',\n '.bmp': 'image/bmp',\n '.bz': 'application/x-bzip',\n '.bz2': 'application/x-bzip2',\n '.csh': 'application/x-csh',\n '.css': 'text/css',\n '.csv': 'text/csv',\n '.doc': 'application/msword',\n '.docx': 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',\n '.eot': 'application/vnd.ms-fontobject',\n '.epub': 'application/epub+zip',\n '.es': 'application/ecmascript',\n '.gif': 'image/gif',\n '.html': 'text/html',\n '.ico': 'image/x-icon',\n '.ics': 'text/calendar',\n '.jar': 'application/java-archive',\n '.jpeg': 'image/jpeg',\n '.jpg': 'image/jpeg',\n '.js': 'application/javascript',\n '.json': 'application/json',\n '.mid': 'audio/midi',\n '.midi': 'audio/x-midi',\n '.mpeg': 'video/mpeg',\n 'mpkg': 'application/vnd.apple.installer+xml',\n '.odp': 'application/vnd.oasis.opendocument.presentation',\n '.ods': 'application/vnd.oasis.opendocument.spreadsheet',\n '.odt': 'application/vnd.oasis.opendocument.text',\n '.oga': 'audio/ogg',\n '.ogv': 'video/ogg',\n '.ogx': 'application/ogg',\n '.otf': 'font/otf',\n '.png': 'image/png',\n '.pdf': 'application/pdf',\n '.ppt': 'application/vnd.ms-powerpoint',\n '.pptx': 'application/vnd.openxmlformats-officedocument.presentationml.presentation',\n '.rar': 'application/x-rar-compressed',\n '.rtf': 'application/rtf',\n '.sh': 'application/x-sh',\n '.svg': 'image/svg+xml',\n '.swf': 'application/x-shockwave-flash',\n '.tar': 'application/x-tar',\n '.tiff': 'image/tiff',\n '.ts': 'application/typescript',\n '.ttf': 'font/ttf',\n '.txt': 'text/plain',\n '.vsd': 'application/vnd.visio',\n '.wav': 'audio/wav',\n '.weba': 'audio/webm',\n '.webm': 'video/webm',\n '.webp': 'image/webp',\n '.woff': 'font/woff',\n '.woff2': 'font/woff2',\n '.xhtml': 'application/xhtml+xml',\n '.xls': 'application/vnd.ms-excel',\n '.xlsx': 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',\n '.xml': 'application/xml',\n '.xul': 'application/vnd.mozilla.xul+xml',\n '.zip': 'application/zip',\n '.3gp': 'video/3gpp',\n '.3g2': 'video/3gpp2',\n '.7z': 'application/x-7z-compressed'\n};\n"],"mappings":"AAAA,OAAO,MAAMA,qBAA0B,GAAG;EACxC,MAAM,EAAE,WAAW;EACnB,MAAM,EAAE,uBAAuB;EAC/B,MAAM,EAAE,yCAAyC;EACjD,MAAM,EAAE,iBAAiB;EACzB,MAAM,EAAE,8BAA8B;EACtC,MAAM,EAAE,0BAA0B;EAClC,MAAM,EAAE,WAAW;EACnB,KAAK,EAAE,oBAAoB;EAC3B,MAAM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AE,WAAW;EACpB,QAAQ,EAAE,YAAY;EACtB,QAAQ,EAAE,uBAAuB;EACjC,MAAM,EAAE,0BAA0B;EAClC,OAAO,EAAE,mEAAmE;EAC5E,MAAM,EAAE,iBAAiB;EACzB,MAAM,EAAE,iCAAiC;EACzC,MAAM,EAAE,iBAAiB;EACzB,MAAM,EAAE,YAAY;EACpB,MAAM,EAAE,aAAa;EACrB,KAAK,EAAE;AACT,CAAC"}
1
+ {"version":3,"names":["FileExtensionTypesMap"],"sources":["file-extension-types.ts"],"sourcesContent":["export const FileExtensionTypesMap: any = {\n '.aac': 'audio/aac',\n '.abw': 'application/x-abiword',\n '.apk': 'application/vnd.android.package-archive',\n '.avi': 'video/x-msvideo',\n '.azw': 'application/vnd.amazon.ebook',\n '.bin': 'application/octet-stream',\n '.bmp': 'image/bmp',\n '.bz': 'application/x-bzip',\n '.bz2': 'application/x-bzip2',\n '.csh': 'application/x-csh',\n '.css': 'text/css',\n '.csv': 'text/csv',\n '.doc': 'application/msword',\n '.docx': 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',\n '.eot': 'application/vnd.ms-fontobject',\n '.epub': 'application/epub+zip',\n '.es': 'application/ecmascript',\n '.gif': 'image/gif',\n '.html': 'text/html',\n '.ico': 'image/x-icon',\n '.ics': 'text/calendar',\n '.jar': 'application/java-archive',\n '.jpeg': 'image/jpeg',\n '.jpg': 'image/jpeg',\n '.js': 'application/javascript',\n '.json': 'application/json',\n '.mid': 'audio/midi',\n '.midi': 'audio/x-midi',\n '.mpeg': 'video/mpeg',\n 'mpkg': 'application/vnd.apple.installer+xml',\n '.odp': 'application/vnd.oasis.opendocument.presentation',\n '.ods': 'application/vnd.oasis.opendocument.spreadsheet',\n '.odt': 'application/vnd.oasis.opendocument.text',\n '.oga': 'audio/ogg',\n '.ogv': 'video/ogg',\n '.ogx': 'application/ogg',\n '.otf': 'font/otf',\n '.png': 'image/png',\n '.pdf': 'application/pdf',\n '.ppt': 'application/vnd.ms-powerpoint',\n '.pptx': 'application/vnd.openxmlformats-officedocument.presentationml.presentation',\n '.rar': 'application/x-rar-compressed',\n '.rtf': 'application/rtf',\n '.sh': 'application/x-sh',\n '.svg': 'image/svg+xml',\n '.swf': 'application/x-shockwave-flash',\n '.tar': 'application/x-tar',\n '.tiff': 'image/tiff',\n '.ts': 'application/typescript',\n '.ttf': 'font/ttf',\n '.txt': 'text/plain',\n '.vsd': 'application/vnd.visio',\n '.wav': 'audio/wav',\n '.weba': 'audio/webm',\n '.webm': 'video/webm',\n '.webp': 'image/webp',\n '.woff': 'font/woff',\n '.woff2': 'font/woff2',\n '.xhtml': 'application/xhtml+xml',\n '.xls': 'application/vnd.ms-excel',\n '.xlsx': 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',\n '.xml': 'application/xml',\n '.xul': 'application/vnd.mozilla.xul+xml',\n '.zip': 'application/zip',\n '.3gp': 'video/3gpp',\n '.3g2': 'video/3gpp2',\n '.7z': 'application/x-7z-compressed'\n};\n"],"mappings":"AAAA,OAAO,MAAMA,qBAA0B,GAAG;EACxC,MAAM,EAAE,WAAW;EACnB,MAAM,EAAE,uBAAuB;EAC/B,MAAM,EAAE,yCAAyC;EACjD,MAAM,EAAE,iBAAiB;EACzB,MAAM,EAAE,8BAA8B;EACtC,MAAM,EAAE,0BAA0B;EAClC,MAAM,EAAE,WAAW;EACnB,KAAK,EAAE,oBAAoB;EAC3B,MAAM,EAAE,qBAAqB;EAC7B,MAAM,EAAE,mBAAmB;EAC3B,MAAM,EAAE,UAAU;EAClB,MAAM,EAAE,UAAU;EAClB,MAAM,EAAE,oBAAoB;EAC5B,OAAO,EAAE,yEAAyE;EAClF,MAAM,EAAE,+BAA+B;EACvC,OAAO,EAAE,sBAAsB;EAC/B,KAAK,EAAE,wBAAwB;EAC/B,MAAM,EAAE,WAAW;EACnB,OAAO,EAAE,WAAW;EACpB,MAAM,EAAE,cAAc;EACtB,MAAM,EAAE,eAAe;EACvB,MAAM,EAAE,0BAA0B;EAClC,OAAO,EAAE,YAAY;EACrB,MAAM,EAAE,YAAY;EACpB,KAAK,EAAE,wBAAwB;EAC/B,OAAO,EAAE,kBAAkB;EAC3B,MAAM,EAAE,YAAY;EACpB,OAAO,EAAE,cAAc;EACvB,OAAO,EAAE,YAAY;EACrB,MAAM,EAAE,qCAAqC;EAC7C,MAAM,EAAE,iDAAiD;EACzD,MAAM,EAAE,gDAAgD;EACxD,MAAM,EAAE,yCAAyC;EACjD,MAAM,EAAE,WAAW;EACnB,MAAM,EAAE,WAAW;EACnB,MAAM,EAAE,iBAAiB;EACzB,MAAM,EAAE,UAAU;EAClB,MAAM,EAAE,WAAW;EACnB,MAAM,EAAE,iBAAiB;EACzB,MAAM,EAAE,+BAA+B;EACvC,OAAO,EAAE,2EAA2E;EACpF,MAAM,EAAE,8BAA8B;EACtC,MAAM,EAAE,iBAAiB;EACzB,KAAK,EAAE,kBAAkB;EACzB,MAAM,EAAE,eAAe;EACvB,MAAM,EAAE,+BAA+B;EACvC,MAAM,EAAE,mBAAmB;EAC3B,OAAO,EAAE,YAAY;EACrB,KAAK,EAAE,wBAAwB;EAC/B,MAAM,EAAE,UAAU;EAClB,MAAM,EAAE,YAAY;EACpB,MAAM,EAAE,uBAAuB;EAC/B,MAAM,EAAE,WAAW;EACnB,OAAO,EAAE,YAAY;EACrB,OAAO,EAAE,YAAY;EACrB,OAAO,EAAE,YAAY;EACrB,OAAO,EAAE,WAAW;EACpB,QAAQ,EAAE,YAAY;EACtB,QAAQ,EAAE,uBAAuB;EACjC,MAAM,EAAE,0BAA0B;EAClC,OAAO,EAAE,mEAAmE;EAC5E,MAAM,EAAE,iBAAiB;EACzB,MAAM,EAAE,iCAAiC;EACzC,MAAM,EAAE,iBAAiB;EACzB,MAAM,EAAE,YAAY;EACpB,MAAM,EAAE,aAAa;EACrB,KAAK,EAAE;AACT,CAAC","ignoreList":[]}
@@ -1,6 +1,6 @@
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 React from "react";
5
5
  import { View } from "react-native";
6
6
  import { ThemeProvider } from "../styles/theme";
@@ -40,8 +40,8 @@ _defineProperty(FixedView, "defaultProps", {
40
40
  });
41
41
  _defineProperty(FixedView, "counter", Date.now());
42
42
  export class FixedViewContainer extends React.Component {
43
- constructor() {
44
- super(...arguments);
43
+ constructor(...args) {
44
+ super(...args);
45
45
  _defineProperty(this, "children", new Map());
46
46
  _defineProperty(this, "id", 0);
47
47
  }
@@ -1 +1 @@
1
- {"version":3,"names":["React","View","ThemeProvider","FixedViewContext","createContext","FixedView","Component","constructor","props","_defineProperty","counter","componentWillUnmount","container","remove","render","cachedComponent","usememo","createElement","Consumer","show","add","value","theme","key","id","style","position","children","Fragment","Date","now","FixedViewContainer","arguments","Map","c","n","set","setTimeout","setState","delete","Provider","Array","from","values"],"sources":["fixed-view.component.tsx"],"sourcesContent":["\nimport React from \"react\";\nimport { View, ViewStyle } from \"react-native\";\nimport { Theme, ThemeProvider } from \"../styles/theme\";\n\nconst FixedViewContext = React.createContext<FixedViewContainer>(null as any);\n\nexport interface FixedViewProps {\n style?: ViewStyle,\n show?: boolean;\n theme: Theme;\n usememo?: boolean;\n children?: any;\n}\n\nexport class FixedView extends React.Component<FixedViewProps> {\n static defaultProps = {\n show: true\n };\n static counter = Date.now();\n container: FixedViewContainer = null as any;\n cachedComponent: React.ReactNode;\n id = FixedView.counter++;\n\n constructor(props: FixedViewProps) {\n super(props);\n }\n\n componentWillUnmount() {\n this.container.remove(this);\n }\n\n render() {\n this.cachedComponent = (this.props.usememo === true && this.cachedComponent ) || (<FixedViewContext.Consumer>\n {(container) => {\n this.container = container;\n if (this.props.show) {\n container.add(this, (\n <ThemeProvider value={this.props.theme} key={this.id}>\n <View style={[\n {position: 'absolute'},\n this.props.style]}>\n {this.props.children}\n </View>\n </ThemeProvider>\n ));\n } else {\n container.remove(this);\n }\n return <></>;\n }}\n </FixedViewContext.Consumer>);\n return this.cachedComponent;\n }\n}\n\nexport class FixedViewContainer extends React.Component {\n children: Map<FixedView, React.ReactNode> = new Map();\n id = 0;\n\n add(c: FixedView, n : React.ReactNode) {\n this.children.set(c, n);\n setTimeout(() => this.setState({id: ++this.id}));\n }\n\n remove(c: FixedView) {\n this.children.delete(c);\n setTimeout(() => this.setState({id: ++this.id}));\n }\n\n render() {\n return (\n <FixedViewContext.Provider value={this}>\n {(this.props as any).children}\n {Array.from(this.children.values())}\n </FixedViewContext.Provider>\n ) ;\n }\n};"],"mappings":";;;AACA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,QAAmB,cAAc;AAC9C,SAAgBC,aAAa,QAAQ,iBAAiB;AAEtD,MAAMC,gBAAgB,gBAAGH,KAAK,CAACI,aAAa,CAAqB,IAAW,CAAC;AAU7E,OAAO,MAAMC,SAAS,SAASL,KAAK,CAACM,SAAS,CAAiB;EAS3DC,WAAWA,CAACC,KAAqB,EAAE;IAC/B,KAAK,CAACA,KAAK,CAAC;IAACC,eAAA,oBALe,IAAI;IAAAA,eAAA;IAAAA,eAAA,aAE/BJ,SAAS,CAACK,OAAO,EAAE;EAIxB;EAEAC,oBAAo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;EAENW,GAAGA,CAACc,CAAY,EAAEC,CAAmB,EAAE;IACnC,IAAI,CAACR,QAAQ,CAACS,GAAG,CAACF,CAAC,EAAEC,CAAC,CAAC;IACvBE,UAAU,CAAC,MAAM,IAAI,CAACC,QAAQ,CAAC;MAACd,EAAE,EAAE,EAAE,IAAI,CAACA;IAAE,CAAC,CAAC,CAAC;EACpD;EAEAX,MAAMA,CAACqB,CAAY,EAAE;IACjB,IAAI,CAACP,QAAQ,CAACY,MAAM,CAACL,CAAC,CAAC;IACvBG,UAAU,CAAC,MAAM,IAAI,CAACC,QAAQ,CAAC;MAACd,EAAE,EAAE,EAAE,IAAI,CAACA;IAAE,CAAC,CAAC,CAAC;EACpD;EAEAV,MAAMA,CAAA,EAAG;IACL,oBACId,KAAA,CAAAiB,aAAA,CAACd,gBAAgB,CAACqC,QAAQ;MAACnB,KAAK,EAAE;IAAK,GACjC,IAAI,CAACb,KAAK,CAASmB,QAAQ,EAC5Bc,KAAK,CAACC,IAAI,CAAC,IAAI,CAACf,QAAQ,CAACgB,MAAM,CAAC,CAAC,CACX,CAAC;EAEpC;AACJ;AAAC"}
1
+ {"version":3,"names":["React","View","ThemeProvider","FixedViewContext","createContext","FixedView","Component","constructor","props","_defineProperty","counter","componentWillUnmount","container","remove","render","cachedComponent","usememo","createElement","Consumer","show","add","value","theme","key","id","style","position","children","Fragment","Date","now","FixedViewContainer","args","Map","c","n","set","setTimeout","setState","delete","Provider","Array","from","values"],"sources":["fixed-view.component.tsx"],"sourcesContent":["\nimport React from \"react\";\nimport { View, ViewStyle } from \"react-native\";\nimport { Theme, ThemeProvider } from \"../styles/theme\";\n\nconst FixedViewContext = React.createContext<FixedViewContainer>(null as any);\n\nexport interface FixedViewProps {\n style?: ViewStyle,\n show?: boolean;\n theme: Theme;\n usememo?: boolean;\n children?: any;\n}\n\nexport class FixedView extends React.Component<FixedViewProps> {\n static defaultProps = {\n show: true\n };\n static counter = Date.now();\n container: FixedViewContainer = null as any;\n cachedComponent: React.ReactNode;\n id = FixedView.counter++;\n\n constructor(props: FixedViewProps) {\n super(props);\n }\n\n componentWillUnmount() {\n this.container.remove(this);\n }\n\n render() {\n this.cachedComponent = (this.props.usememo === true && this.cachedComponent ) || (<FixedViewContext.Consumer>\n {(container) => {\n this.container = container;\n if (this.props.show) {\n container.add(this, (\n <ThemeProvider value={this.props.theme} key={this.id}>\n <View style={[\n {position: 'absolute'},\n this.props.style]}>\n {this.props.children}\n </View>\n </ThemeProvider>\n ));\n } else {\n container.remove(this);\n }\n return <></>;\n }}\n </FixedViewContext.Consumer>);\n return this.cachedComponent;\n }\n}\n\nexport class FixedViewContainer extends React.Component {\n children: Map<FixedView, React.ReactNode> = new Map();\n id = 0;\n\n add(c: FixedView, n : React.ReactNode) {\n this.children.set(c, n);\n setTimeout(() => this.setState({id: ++this.id}));\n }\n\n remove(c: FixedView) {\n this.children.delete(c);\n setTimeout(() => this.setState({id: ++this.id}));\n }\n\n render() {\n return (\n <FixedViewContext.Provider value={this}>\n {(this.props as any).children}\n {Array.from(this.children.values())}\n </FixedViewContext.Provider>\n ) ;\n }\n};"],"mappings":";;;AACA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,QAAmB,cAAc;AAC9C,SAAgBC,aAAa,QAAQ,iBAAiB;AAEtD,MAAMC,gBAAgB,gBAAGH,KAAK,CAACI,aAAa,CAAqB,IAAW,CAAC;AAU7E,OAAO,MAAMC,SAAS,SAASL,KAAK,CAACM,SAAS,CAAiB;EAS3DC,WAAWA,CAACC,KAAqB,EAAE;IAC/B,KAAK,CAACA,KAAK,CAAC;IAACC,eAAA,oBALe,IAAI;IAAAA,eAAA;IAAAA,eAAA,aAE/BJ,SAAS,CAACK,OAAO,EAAE;EAIxB;EAEAC,oBAAoBA,CAAA,EAAG;IACnB,IAAI,CAACC,SAAS,CAACC,MAAM,CAAC,IAAI,CAAC;EAC/B;EAEAC,MAAMA,CAAA,EAAG;IACL,IAAI,CAACC,eAAe,GAAI,IAAI,CA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,CAAC,MAAM,IAAI,CAACC,QAAQ,CAAC;MAACd,EAAE,EAAE,EAAE,IAAI,CAACA;IAAE,CAAC,CAAC,CAAC;EACpD;EAEAX,MAAMA,CAACqB,CAAY,EAAE;IACjB,IAAI,CAACP,QAAQ,CAACY,MAAM,CAACL,CAAC,CAAC;IACvBG,UAAU,CAAC,MAAM,IAAI,CAACC,QAAQ,CAAC;MAACd,EAAE,EAAE,EAAE,IAAI,CAACA;IAAE,CAAC,CAAC,CAAC;EACpD;EAEAV,MAAMA,CAAA,EAAG;IACL,oBACId,KAAA,CAAAiB,aAAA,CAACd,gBAAgB,CAACqC,QAAQ;MAACnB,KAAK,EAAE;IAAK,GACjC,IAAI,CAACb,KAAK,CAASmB,QAAQ,EAC5Bc,KAAK,CAACC,IAAI,CAAC,IAAI,CAACf,QAAQ,CAACgB,MAAM,CAAC,CAAC,CACX,CAAC;EAEpC;AACJ;AAAC","ignoreList":[]}
@@ -4,14 +4,11 @@ import { CURRENCY_INFO } from './constants/currency-constants';
4
4
  import injector from '@wavemaker/app-rn-runtime/core/injector';
5
5
  export class DateToStringFormatter {
6
6
  format(input, format) {
7
- if (!input) {
8
- return '';
9
- }
10
- if (format === 'timestamp') {
11
- return input.getTime() + '';
12
- }
13
- format = format.replace(/d/g, 'D');
14
- const _moment = moment(input, ["M/D/YYYY", "M-D-YYYY", "M.D.YYYY", "M/DD/YYYY", "M-DD-YYYY", "M.DD.YYYY", "YYYY/M/D", "YYYY-M-D", "YYYY.M.D", "MM/D/YYYY", "MM-D-YYYY", "MM.D.YYYY", "M/D/YY", "M-D-YY", "M.D.YY", "D MMM YYYY", "MM/DD/YYYY", "MM-DD-YYYY", "MM.DD.YYYY", "YYYY/MM/DD", "YYYY-MM-DD", "YYYY.MM.DD", "MM/DD/YY", "MM-DD-YY", "MM.DD.YY", "DD MMM YYYY"], true);
7
+ if (!input) return '';
8
+ format = format.replaceAll('y', 'Y').replaceAll('d', 'D').replaceAll('E', 'd');
9
+ let _moment = moment(input, [moment.ISO_8601, "YYYY", "YYYY-MM", "YYYYMMDD", "YYYY-MM-DD", "YYYY-MM-DDTHH", "YYYY-MM-DDTHH:mm", "YYYY-MM-DDTHH:mm:ss", "YYYY-MM-DDTHH:mm:ss.SSS", "YYYY-MM-DD HH:mm:ss", "MM/DD/YYYY", "MM-DD-YYYY", "YYYY/MM/DD", "YYYY/MM", "D MMM YYYY", "MMM D YYYY", "MMMM D YYYY", "D MMMM YYYY", "D-MMM-YYYY", "D/MMM/YYYY", "YYYY-WWW", "YYYY-WWW-E", "YYYY-DDD", "YYYY-DDDTHH", "YYYY-DDDTHH:mm", "YYYY-DDDTHH:mm:ss", "YYYY-DDDTHH:mm:ss.SSS", "YYYY-DDD HH:mm:ss", "YYYY-MM-DDTHH:mm:ssZ", "YYYY-MM-DDTHH:mm:ss+00:00", "YYYY-MM-DDTHH:mm:ss-00:00", "YYYY-MM-DDTHH:mm:ss.SSSZ", "YYYY-MM-DDTHH:mm:ss.SSS+00:00", "YYYY-MM-DDTHH:mm:ss.SSS-00:00", "ddd, DD MMM YYYY HH:mm:ss ZZ", "DD MMM YYYY HH:mm:ss ZZ"], true);
10
+ if (format === 'timestamp') return Math.floor(_moment.valueOf() / 1000).toString();
11
+ if (format === 'UTC') return moment.utc(input).toString();
15
12
  return _moment.isValid() ? _moment.format(format) : input.toString();
16
13
  }
17
14
  }
@@ -59,10 +56,7 @@ export class StringToNumberFormatter {
59
56
  }
60
57
  const createFormatter = (key, defaultFormatter) => {
61
58
  return {
62
- format: function (input) {
63
- for (var _len = arguments.length, params = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
64
- params[_key - 1] = arguments[_key];
65
- }
59
+ format: (input, ...params) => {
66
60
  const output = defaultFormatter.format(input, ...params);
67
61
  const customFormatter = formatters.get(`custom.${key}`);
68
62
  return customFormatter ? customFormatter.format(output, ...params) : output;
@@ -1 +1 @@
1
- {"version":3,"names":["parseInt","moment","CURRENCY_INFO","injector","DateToStringFormatter","format","input","getTime","replace","_moment","isValid","toString","PrependFormatter","prefix","undefined","AppendFormatter","suffix","NumberToStringFormatter","fractionSize","i18nService","I18nService","get","selectedLocale","getSelectedLocale","formatCurrency","Intl","NumberFormat","minimumFractionDigits","maximumFractionDigits","isNaN","CurrencyFormatter","data","currencySymbol","fracSize","_currencySymbol","symbol","_val","isNegativeNumber","startsWith","TimeFromNowFormatter","timestamp","fromNow","StringToNumberFormatter","createFormatter","key","defaultFormatter","_len","arguments","length","params","Array","_key","output","customFormatter","formatters","Map"],"sources":["formatters.ts"],"sourcesContent":["import { parseInt } from 'lodash';\nimport moment from 'moment';\nimport { CURRENCY_INFO, Currency } from './constants/currency-constants';\nimport { DateFormatter } from '@wavemaker/variables/src/types/date-formatter';\nimport injector from '@wavemaker/app-rn-runtime/core/injector';\n\nexport interface Formatter {\n format: (input: any, ...params: any) => any;\n}\n\nexport class DateToStringFormatter implements DateFormatter {\n\n public format(input: Date, format: string): string {\n if (!input) {\n return '';\n }\n if (format === 'timestamp') {\n return input.getTime() + '';\n }\n format = format.replace(/d/g, 'D');\n const _moment = moment(input, [\n \"M/D/YYYY\", \"M-D-YYYY\", \"M.D.YYYY\",\n \"M/DD/YYYY\", \"M-DD-YYYY\", \"M.DD.YYYY\",\n \"YYYY/M/D\", \"YYYY-M-D\", \"YYYY.M.D\",\n \"MM/D/YYYY\", \"MM-D-YYYY\", \"MM.D.YYYY\",\n \"M/D/YY\", \"M-D-YY\", \"M.D.YY\", \"D MMM YYYY\",\n \"MM/DD/YYYY\", \"MM-DD-YYYY\", \"MM.DD.YYYY\",\n \"YYYY/MM/DD\", \"YYYY-MM-DD\", \"YYYY.MM.DD\",\n \"MM/DD/YY\", \"MM-DD-YY\", \"MM.DD.YY\", \"DD MMM YYYY\"\n ], true);\n return _moment.isValid() ? _moment.format(format) : input.toString();\n }\n}\n\nexport class PrependFormatter implements Formatter {\n\n public format(input: any, prefix: string): string {\n return (prefix || '') + (input !== null || input != undefined ? input : '');\n }\n}\n\nexport class AppendFormatter implements Formatter {\n\n public format(input: any, suffix: string): string {\n return (input !== null || input != undefined ? input : '') + (suffix || '');\n }\n}\n\nexport class NumberToStringFormatter implements Formatter {\n\n public format(input: number, fractionSize: number): string {\n const i18nService = injector.I18nService.get();\n const selectedLocale = i18nService.getSelectedLocale();\n let formatCurrency = new Intl.NumberFormat(selectedLocale,{\n minimumFractionDigits: fractionSize,\n maximumFractionDigits: fractionSize,\n });\n return isNaN(input) ? '': formatCurrency.format(input);\n }\n}\n\nexport class CurrencyFormatter implements Formatter {\n\n public format(data: number, currencySymbol: string, fracSize: number) {\n const _currencySymbol = ((((CURRENCY_INFO as any)[currencySymbol]) || {}) as Currency).symbol || currencySymbol || '';\n let _val = new NumberToStringFormatter().format(data, fracSize);\n const isNegativeNumber = _val.startsWith('-');\n if (isNegativeNumber) {\n _val = _val.replace('-','');\n }\n return _val ? isNegativeNumber ? '-'+ _currencySymbol +_val :_currencySymbol + _val : '';\n }\n}\n\nexport class TimeFromNowFormatter implements Formatter {\n public format(timestamp: Date) {\n return timestamp ? moment(timestamp).fromNow() : undefined;\n }\n}\n\nexport class StringToNumberFormatter implements Formatter {\n public format(input: string) {\n return parseInt(input);\n }\n}\n\nconst createFormatter = (key: string, defaultFormatter: Formatter) => {\n return {\n format: (input: any, ...params: any) => {\n const output = defaultFormatter.format(input, ...params);\n const customFormatter = formatters.get(`custom.${key}`);\n return customFormatter ? customFormatter.format(output, ...params): output;\n }\n };\n};\n\nconst formatters = new Map<string, Formatter>([\n ['numberToString', createFormatter('numberToString' , new NumberToStringFormatter())],\n ['prefix', createFormatter('prefix', new PrependFormatter())],\n ['suffix', createFormatter('suffix', new AppendFormatter())],\n ['stringToNumber', createFormatter('stringToNumber',new StringToNumberFormatter())],\n ['timeFromNow', createFormatter('timeFromNow', new TimeFromNowFormatter())],\n ['toDate', createFormatter('toDate', new DateToStringFormatter())],\n ['toCurrency', createFormatter('toCurrency', new CurrencyFormatter())]\n]);\n\nexport default formatters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EAAE,IAAI5B,eAAe,CAAC,CAAC,CAAC,CAAC,EAC5D,CAAC,gBAAgB,EAAE4B,eAAe,CAAC,gBAAgB,EAAC,IAAID,uBAAuB,CAAC,CAAC,CAAC,CAAC,EACnF,CAAC,aAAa,EAAEC,eAAe,CAAC,aAAa,EAAE,IAAIJ,oBAAoB,CAAC,CAAC,CAAC,CAAC,EAC3E,CAAC,QAAQ,EAAEI,eAAe,CAAC,QAAQ,EAAE,IAAIvC,qBAAqB,CAAC,CAAC,CAAC,CAAC,EAClE,CAAC,YAAY,EAAEuC,eAAe,CAAC,YAAY,EAAE,IAAIb,iBAAiB,CAAC,CAAC,CAAC,CAAC,CACzE,CAAC;AAEF,eAAewB,UAAU"}
1
+ {"version":3,"names":["parseInt","moment","CURRENCY_INFO","injector","DateToStringFormatter","format","input","replaceAll","_moment","ISO_8601","Math","floor","valueOf","toString","utc","isValid","PrependFormatter","prefix","undefined","AppendFormatter","suffix","NumberToStringFormatter","fractionSize","i18nService","I18nService","get","selectedLocale","getSelectedLocale","formatCurrency","Intl","NumberFormat","minimumFractionDigits","maximumFractionDigits","isNaN","CurrencyFormatter","data","currencySymbol","fracSize","_currencySymbol","symbol","_val","isNegativeNumber","startsWith","replace","TimeFromNowFormatter","timestamp","fromNow","StringToNumberFormatter","createFormatter","key","defaultFormatter","params","output","customFormatter","formatters","Map"],"sources":["formatters.ts"],"sourcesContent":["import { parseInt } from 'lodash';\nimport moment from 'moment';\nimport { CURRENCY_INFO, Currency } from './constants/currency-constants';\nimport { DateFormatter } from '@wavemaker/variables/src/types/date-formatter';\nimport injector from '@wavemaker/app-rn-runtime/core/injector';\n\nexport interface Formatter {\n format: (input: any, ...params: any) => any;\n}\n\nexport class DateToStringFormatter implements DateFormatter {\n public format(input: Date, format: string): string {\n \n if (!input) return '';\n\n format = format.replaceAll('y', 'Y').replaceAll('d', 'D').replaceAll('E','d');\n let _moment = moment(input, [\n moment.ISO_8601,\n \"YYYY\",\n \"YYYY-MM\",\n \"YYYYMMDD\",\n \"YYYY-MM-DD\",\n \"YYYY-MM-DDTHH\",\n \"YYYY-MM-DDTHH:mm\",\n \"YYYY-MM-DDTHH:mm:ss\",\n \"YYYY-MM-DDTHH:mm:ss.SSS\",\n \"YYYY-MM-DD HH:mm:ss\",\n \"MM/DD/YYYY\",\n \"MM-DD-YYYY\",\n \"YYYY/MM/DD\",\n \"YYYY/MM\",\n \"D MMM YYYY\",\n \"MMM D YYYY\",\n \"MMMM D YYYY\",\n \"D MMMM YYYY\",\n \"D-MMM-YYYY\",\n \"D/MMM/YYYY\",\n \"YYYY-WWW\", \n \"YYYY-WWW-E\",\n \"YYYY-DDD\",\n \"YYYY-DDDTHH\",\n \"YYYY-DDDTHH:mm\",\n \"YYYY-DDDTHH:mm:ss\",\n \"YYYY-DDDTHH:mm:ss.SSS\",\n \"YYYY-DDD HH:mm:ss\",\n \"YYYY-MM-DDTHH:mm:ssZ\",\n \"YYYY-MM-DDTHH:mm:ss+00:00\",\n \"YYYY-MM-DDTHH:mm:ss-00:00\",\n \"YYYY-MM-DDTHH:mm:ss.SSSZ\",\n \"YYYY-MM-DDTHH:mm:ss.SSS+00:00\",\n \"YYYY-MM-DDTHH:mm:ss.SSS-00:00\",\n \"ddd, DD MMM YYYY HH:mm:ss ZZ\",\n \"DD MMM YYYY HH:mm:ss ZZ\",\n ], true);\n\n if (format === 'timestamp')\n return Math.floor(_moment.valueOf() / 1000).toString();\n\n if (format === 'UTC')\n return moment.utc(input).toString();\n\n return _moment.isValid() ? _moment.format(format) : input.toString();\n }\n}\n\nexport class PrependFormatter implements Formatter {\n\n public format(input: any, prefix: string): string {\n return (prefix || '') + (input !== null || input != undefined ? input : '');\n }\n}\n\nexport class AppendFormatter implements Formatter {\n\n public format(input: any, suffix: string): string {\n return (input !== null || input != undefined ? input : '') + (suffix || '');\n }\n}\n\nexport class NumberToStringFormatter implements Formatter {\n\n public format(input: number, fractionSize: number): string {\n const i18nService = injector.I18nService.get();\n const selectedLocale = i18nService.getSelectedLocale();\n let formatCurrency = new Intl.NumberFormat(selectedLocale,{\n minimumFractionDigits: fractionSize,\n maximumFractionDigits: fractionSize,\n });\n return isNaN(input) ? '': formatCurrency.format(input);\n }\n}\n\nexport class CurrencyFormatter implements Formatter {\n\n public format(data: number, currencySymbol: string, fracSize: number) {\n const _currencySymbol = ((((CURRENCY_INFO as any)[currencySymbol]) || {}) as Currency).symbol || currencySymbol || '';\n let _val = new NumberToStringFormatter().format(data, fracSize);\n const isNegativeNumber = _val.startsWith('-');\n if (isNegativeNumber) {\n _val = _val.replace('-','');\n }\n return _val ? isNegativeNumber ? '-'+ _currencySymbol +_val :_currencySymbol + _val : '';\n }\n}\n\nexport class TimeFromNowFormatter implements Formatter {\n public format(timestamp: Date) {\n return timestamp ? moment(timestamp).fromNow() : undefined;\n }\n}\n\nexport class StringToNumberFormatter implements Formatter {\n public format(input: string) {\n return parseInt(input);\n }\n}\n\nconst createFormatter = (key: string, defaultFormatter: Formatter) => {\n return {\n format: (input: any, ...params: any) => {\n const output = defaultFormatter.format(input, ...params);\n const customFormatter = formatters.get(`custom.${key}`);\n return customFormatter ? customFormatter.format(output, ...params): output;\n }\n };\n};\n\nconst formatters = new Map<string, Formatter>([\n ['numberToString', createFormatter('numberToString' , new NumberToStringFormatter())],\n ['prefix', createFormatter('prefix', new PrependFormatter())],\n ['suffix', createFormatter('suffix', new AppendFormatter())],\n ['stringToNumber', createFormatter('stringToNumber',new StringToNumberFormatter())],\n ['timeFromNow', createFormatter('timeFromNow', new TimeFromNowFormatter())],\n ['toDate', createFormatter('toDate', new DateToStringFormatter())],\n ['toCurrency', createFormatter('toCurrency', new CurrencyFormatter())]\n]);\n\nexport default formatters;"],"mappings":"AAAA,SAASA,QAAQ,QAAQ,QAAQ;AACjC,OAAOC,MAAM,MAAM,QAAQ;AAC3B,SAASC,aAAa,QAAkB,gCAAgC;AAExE,OAAOC,QAAQ,MAAM,yCAAyC;AAM9D,OAAO,MAAMC,qBAAqB,CAA0B;EAC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AQ,EAAE,IAAI7B,eAAe,CAAC,CAAC,CAAC,CAAC,EAC5D,CAAC,gBAAgB,EAAE6B,eAAe,CAAC,gBAAgB,EAAC,IAAID,uBAAuB,CAAC,CAAC,CAAC,CAAC,EACnF,CAAC,aAAa,EAAEC,eAAe,CAAC,aAAa,EAAE,IAAIJ,oBAAoB,CAAC,CAAC,CAAC,CAAC,EAC3E,CAAC,QAAQ,EAAEI,eAAe,CAAC,QAAQ,EAAE,IAAI5C,qBAAqB,CAAC,CAAC,CAAC,CAAC,EAClE,CAAC,YAAY,EAAE4C,eAAe,CAAC,YAAY,EAAE,IAAId,iBAAiB,CAAC,CAAC,CAAC,CAAC,CACzE,CAAC;AAEF,eAAeoB,UAAU","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["i18n.service.ts"],"sourcesContent":["export interface I18nService {\n getSelectedLocale: () => string;\n isRTLLocale: (newLocale?: string) => any;\n setRTL: (locale?: string) => any;\n}\n\n"],"mappings":""}
1
+ {"version":3,"names":[],"sources":["i18n.service.ts"],"sourcesContent":["export interface I18nService {\n getSelectedLocale: () => string;\n isRTLLocale: (newLocale?: string) => any;\n setRTL: (locale?: string) => any;\n}\n\n"],"mappings":"","ignoreList":[]}
@@ -15,13 +15,12 @@ const styles = StyleSheet.create({
15
15
  },
16
16
  visible: {}
17
17
  });
18
- export const WmIf = _ref => {
19
- let {
20
- condition = true,
21
- hideMode = 0,
22
- style,
23
- children
24
- } = _ref;
18
+ export const WmIf = ({
19
+ condition = true,
20
+ hideMode = 0,
21
+ style,
22
+ children
23
+ }) => {
25
24
  if (hideMode === HideMode.ADD_TO_DOM) {
26
25
  React.Children.map;
27
26
  return /*#__PURE__*/React.createElement(View, {
@@ -1 +1 @@
1
- {"version":3,"names":["React","StyleSheet","View","HideMode","styles","create","hidden","width","height","transform","scale","visible","WmIf","_ref","condition","hideMode","style","children","ADD_TO_DOM","Children","map","createElement"],"sources":["if.component.tsx"],"sourcesContent":["import React from 'react';\nimport { StyleSheet, View, ViewStyle } from 'react-native';\n\nexport enum HideMode {\n DONOT_ADD_TO_DOM = 0,\n ADD_TO_DOM = 1\n}\n\nconst styles = StyleSheet.create({\n hidden: {\n width: 0,\n height: 0,\n transform: [{ scale: 0 }] \n },\n visible: {}\n});\n\nexport const WmIf = ({condition = true, hideMode = 0, style, children} : {\n condition: boolean,\n hideMode: HideMode,\n style: ViewStyle,\n children: any}) => {\n if (hideMode === HideMode.ADD_TO_DOM) {\n React.Children.map\n return (<View style={[condition? styles.visible: styles.hidden, style]}>{children}</View>);\n } else if (condition) {\n return children;\n } else {\n return null;\n }\n};"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,EAAEC,IAAI,QAAmB,cAAc;AAE1D,WAAYC,QAAQ,0BAARA,QAAQ;EAARA,QAAQ,CAARA,QAAQ;EAARA,QAAQ,CAARA,QAAQ;EAAA,OAARA,QAAQ;AAAA;AAKpB,MAAMC,MAAM,GAAGH,UAAU,CAACI,MAAM,CAAC;EAC7BC,MAAM,EAAE;IACJC,KAAK,EAAE,CAAC;IACRC,MAAM,EAAE,CAAC;IACTC,SAAS,EAAE,CAAC;MAAEC,KAAK,EAAE;IAAE,CAAC;EAC5B,CAAC;EACDC,OAAO,EAAE,CAAC;AACd,CAAC,CAAC;AAEF,OAAO,MAAMC,IAAI,GAAGC,IAAA,IAIG;EAAA,IAJF;IAACC,SAAS,GAAG,IAAI;IAAEC,QAAQ,GAAG,CAAC;IAAEC,KAAK;IAAEC;EAI5C,CAAC,GAAAJ,IAAA;EACd,IAAIE,QAAQ,KAAKZ,QAAQ,CAACe,UAAU,EAAE;IAClClB,KAAK,CAACmB,QAAQ,CAACC,GAAG;IAClB,oBAAQpB,KAAA,CAAAqB,aAAA,CAACnB,IAAI;MAACc,KAAK,EAAE,CAACF,SAAS,GAAEV,MAAM,CAACO,OAAO,GAAEP,MAAM,CAACE,MAAM,EAAEU,KAAK;IAAE,GAAEC,QAAe,CAAC;EAC7F,CAAC,MAAM,IAAIH,SAAS,EAAE;IAClB,OAAOG,QAAQ;EACnB,CAAC,MAAM;IACH,OAAO,IAAI;EACf;AACJ,CAAC"}
1
+ {"version":3,"names":["React","StyleSheet","View","HideMode","styles","create","hidden","width","height","transform","scale","visible","WmIf","condition","hideMode","style","children","ADD_TO_DOM","Children","map","createElement"],"sources":["if.component.tsx"],"sourcesContent":["import React from 'react';\nimport { StyleSheet, View, ViewStyle } from 'react-native';\n\nexport enum HideMode {\n DONOT_ADD_TO_DOM = 0,\n ADD_TO_DOM = 1\n}\n\nconst styles = StyleSheet.create({\n hidden: {\n width: 0,\n height: 0,\n transform: [{ scale: 0 }] \n },\n visible: {}\n});\n\nexport const WmIf = ({condition = true, hideMode = 0, style, children} : {\n condition: boolean,\n hideMode: HideMode,\n style: ViewStyle,\n children: any}) => {\n if (hideMode === HideMode.ADD_TO_DOM) {\n React.Children.map\n return (<View style={[condition? styles.visible: styles.hidden, style]}>{children}</View>);\n } else if (condition) {\n return children;\n } else {\n return null;\n }\n};"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,EAAEC,IAAI,QAAmB,cAAc;AAE1D,WAAYC,QAAQ,0BAARA,QAAQ;EAARA,QAAQ,CAARA,QAAQ;EAARA,QAAQ,CAARA,QAAQ;EAAA,OAARA,QAAQ;AAAA;AAKpB,MAAMC,MAAM,GAAGH,UAAU,CAACI,MAAM,CAAC;EAC7BC,MAAM,EAAE;IACJC,KAAK,EAAE,CAAC;IACRC,MAAM,EAAE,CAAC;IACTC,SAAS,EAAE,CAAC;MAAEC,KAAK,EAAE;IAAE,CAAC;EAC5B,CAAC;EACDC,OAAO,EAAE,CAAC;AACd,CAAC,CAAC;AAEF,OAAO,MAAMC,IAAI,GAAGA,CAAC;EAACC,SAAS,GAAG,IAAI;EAAEC,QAAQ,GAAG,CAAC;EAAEC,KAAK;EAAEC;AAI5C,CAAC,KAAK;EACnB,IAAIF,QAAQ,KAAKX,QAAQ,CAACc,UAAU,EAAE;IAClCjB,KAAK,CAACkB,QAAQ,CAACC,GAAG;IAClB,oBAAQnB,KAAA,CAAAoB,aAAA,CAAClB,IAAI;MAACa,KAAK,EAAE,CAACF,SAAS,GAAET,MAAM,CAACO,OAAO,GAAEP,MAAM,CAACE,MAAM,EAAES,KAAK;IAAE,GAAEC,QAAe,CAAC;EAC7F,CAAC,MAAM,IAAIH,SAAS,EAAE;IAClB,OAAOG,QAAQ;EACnB,CAAC,MAAM;IACH,OAAO,IAAI;EACf;AACJ,CAAC","ignoreList":[]}
@@ -1,6 +1,6 @@
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 { remove } from "lodash-es";
5
5
  import { Image } from "react-native";
6
6
  class ImageSizeEstimator {
@@ -37,7 +37,7 @@ class ImageSizeEstimator {
37
37
  const request = this.createRequest(requestId, onComplete);
38
38
  if (this.requests.has(requestId)) {
39
39
  var _this$requests$get;
40
- (_this$requests$get = this.requests.get(requestId)) === null || _this$requests$get === void 0 ? void 0 : _this$requests$get.push(request);
40
+ (_this$requests$get = this.requests.get(requestId)) === null || _this$requests$get === void 0 || _this$requests$get.push(request);
41
41
  } else {
42
42
  const reqQueue = [];
43
43
  this.requests.set(requestId, reqQueue);
@@ -1 +1 @@
1
- {"version":3,"names":["remove","Image","ImageSizeEstimator","constructor","_defineProperty","Map","createRequest","requestId","onComplete","request","cancel","requests","has","get","getImageSize","imgSrc","getSize","width","height","reqs","map","req","delete","setTimeout","_this$requests$get","push","reqQueue","set"],"sources":["imageSizeEstimator.ts"],"sourcesContent":["import { remove } from \"lodash-es\";\nimport { Image } from \"react-native\";\n\ninterface Request {\n onComplete: (width: number, height: number) => void\n cancel : () => void\n}\n\nclass ImageSizeEstimator {\n requestId = 1;\n \n requests: Map<String, Request[]> = new Map<string, Request[]>();\n\n private createRequest(requestId: string, onComplete: (width: number, height: number) => void) {\n const request = {} as Request;\n request.onComplete = onComplete,\n request.cancel = () => {\n if (this.requests.has(requestId)) {\n remove(this.requests.get(requestId) || [], request);\n }\n };\n return request;\n }\n\n private getImageSize(imgSrc: string) {\n Image.getSize(imgSrc, (width: number, height: number) => {\n const reqs = this.requests.get(imgSrc);\n if (reqs) {\n reqs.map(req => {\n req.onComplete && req.onComplete(width, height);\n });\n this.requests.delete(imgSrc);\n }\n }, () => this.requests.delete(imgSrc));\n }\n \n getSize(imgSrc: string, onComplete: (width: number, height: number) => void) {\n if (!imgSrc) {\n setTimeout(() => onComplete(0, 0), 100);\n return () => {};\n }\n const requestId = imgSrc;\n const request = this.createRequest(requestId, onComplete);\n if (this.requests.has(requestId)) {\n this.requests.get(requestId)?.push(request);\n } else {\n const reqQueue = [] as Request[];\n this.requests.set(requestId, reqQueue);\n reqQueue.push(request)\n this.getImageSize(requestId);\n }\n return request.cancel;\n }\n }\n \nexport default new ImageSizeEstimator();"],"mappings":";;;AAAA,SAASA,MAAM,QAAQ,WAAW;AAClC,SAASC,KAAK,QAAQ,cAAc;AAOpC,MAAMC,kBAAkB,CAAC;EAAAC,YAAA;IAAAC,eAAA,oBACT,CAAC;IAAA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IAAI,CAACG,QAAQ,CAACC,GAAG,CAACL,SAAS,CAAC,EAAE;MAAA,IAAAiB,kBAAA;MAChC,CAAAA,kBAAA,OAAI,CAACb,QAAQ,CAACE,GAAG,CAACN,SAAS,CAAC,cAAAiB,kBAAA,uBAA5BA,kBAAA,CAA8BC,IAAI,CAAChB,OAAO,CAAC;IAC7C,CAAC,MAAM;MACL,MAAMiB,QAAQ,GAAG,EAAe;MAChC,IAAI,CAACf,QAAQ,CAACgB,GAAG,CAACpB,SAAS,EAAEmB,QAAQ,CAAC;MACtCA,QAAQ,CAACD,IAAI,CAAChB,OAAO,CAAC;MACtB,IAAI,CAACK,YAAY,CAACP,SAAS,CAAC;IAC9B;IACA,OAAOE,OAAO,CAACC,MAAM;EACvB;AACF;AAEF,eAAe,IAAIR,kBAAkB,CAAC,CAAC"}
1
+ {"version":3,"names":["remove","Image","ImageSizeEstimator","constructor","_defineProperty","Map","createRequest","requestId","onComplete","request","cancel","requests","has","get","getImageSize","imgSrc","getSize","width","height","reqs","map","req","delete","setTimeout","_this$requests$get","push","reqQueue","set"],"sources":["imageSizeEstimator.ts"],"sourcesContent":["import { remove } from \"lodash-es\";\nimport { Image } from \"react-native\";\n\ninterface Request {\n onComplete: (width: number, height: number) => void\n cancel : () => void\n}\n\nclass ImageSizeEstimator {\n requestId = 1;\n \n requests: Map<String, Request[]> = new Map<string, Request[]>();\n\n private createRequest(requestId: string, onComplete: (width: number, height: number) => void) {\n const request = {} as Request;\n request.onComplete = onComplete,\n request.cancel = () => {\n if (this.requests.has(requestId)) {\n remove(this.requests.get(requestId) || [], request);\n }\n };\n return request;\n }\n\n private getImageSize(imgSrc: string) {\n Image.getSize(imgSrc, (width: number, height: number) => {\n const reqs = this.requests.get(imgSrc);\n if (reqs) {\n reqs.map(req => {\n req.onComplete && req.onComplete(width, height);\n });\n this.requests.delete(imgSrc);\n }\n }, () => this.requests.delete(imgSrc));\n }\n \n getSize(imgSrc: string, onComplete: (width: number, height: number) => void) {\n if (!imgSrc) {\n setTimeout(() => onComplete(0, 0), 100);\n return () => {};\n }\n const requestId = imgSrc;\n const request = this.createRequest(requestId, onComplete);\n if (this.requests.has(requestId)) {\n this.requests.get(requestId)?.push(request);\n } else {\n const reqQueue = [] as Request[];\n this.requests.set(requestId, reqQueue);\n reqQueue.push(request)\n this.getImageSize(requestId);\n }\n return request.cancel;\n }\n }\n \nexport default new ImageSizeEstimator();"],"mappings":";;;AAAA,SAASA,MAAM,QAAQ,WAAW;AAClC,SAASC,KAAK,QAAQ,cAAc;AAOpC,MAAMC,kBAAkB,CAAC;EAAAC,YAAA;IAAAC,eAAA,oBACT,CAAC;IAAAA,eAAA,mBAEsB,IAAIC,GAAG,CAAoB,CAAC;EAAA;EAEvDC,aAAaA,CAACC,SAAiB,EAAEC,UAAmD,EAAE;IAC5F,MAAMC,OAAO,GAAG,CAAC,CAAY;IAC7BA,OAAO,CAACD,UAAU,GAAGA,UAAU,EAC/BC,OAAO,CAACC,MAAM,GAAG,MAAM;MACnB,IAAI,IAAI,CAACC,QAAQ,CAACC,GAAG,CAACL,SAAS,CAAC,EAAE;QAChCP,MAAM,CAAC,IAAI,CAACW,QAAQ,CAACE,GAAG,CAACN,SAAS,CAAC,IAAI,EAAE,EAAEE,OAAO,CAAC;MACrD;IACJ,CAAC;IACD,OAAOA,OAAO;EAChB;EAEQK,YAAYA,CAACC,MAAc,EAAE;IACnCd,KAAK,CAACe,OAAO,CAACD,MAAM,EAAE,CAACE,KAAa,EAAEC,MAAc,KAAK;MACvD,MAAMC,IAAI,GAAG,IAAI,CAACR,QAAQ,CAACE,GAAG,CAACE,MAAM,CAAC;MACtC,IAAII,IAAI,EAAE;QACRA,IAAI,CAACC,GAAG,CAACC,GAAG,IAAI;UACdA,GAAG,CAACb,UAAU,IAAIa,GAAG,CAACb,UAAU,CAACS,KAAK,EAAEC,MAAM,CAAC;QACjD,CAAC,CAAC;QACF,IAAI,CAACP,QAAQ,CAACW,MAAM,CAACP,MAAM,CAAC;MAC9B;IACF,CAAC,EAAE,MAAM,IAAI,CAACJ,QAAQ,CAACW,MAAM,CAACP,MAAM,CAAC,CAAC;EACxC;EAEAC,OAAOA,CAACD,MAAc,EAAEP,UAAmD,EAAE;IAC3E,IAAI,CAACO,MAAM,EAAE;MACXQ,UAAU,CAAC,MAAMf,UAAU,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,GAAG,CAAC;MACvC,OAAO,MAAM,CAAC,CAAC;IACjB;IACA,MAAMD,SAAS,GAAGQ,MAAM;IACxB,MAAMN,OAAO,GAAG,IAAI,CAACH,aAAa,CAACC,SAAS,EAAEC,UAAU,CAAC;IACzD,IAAI,IAAI,CAACG,QAAQ,CAACC,GAAG,CAACL,SAAS,CAAC,EAAE;MAAA,IAAAiB,kBAAA;MAChC,CAAAA,kBAAA,OAAI,CAACb,QAAQ,CAACE,GAAG,CAACN,SAAS,CAAC,cAAAiB,kBAAA,eAA5BA,kBAAA,CAA8BC,IAAI,CAAChB,OAAO,CAAC;IAC7C,CAAC,MAAM;MACL,MAAMiB,QAAQ,GAAG,EAAe;MAChC,IAAI,CAACf,QAAQ,CAACgB,GAAG,CAACpB,SAAS,EAAEmB,QAAQ,CAAC;MACtCA,QAAQ,CAACD,IAAI,CAAChB,OAAO,CAAC;MACtB,IAAI,CAACK,YAAY,CAACP,SAAS,CAAC;IAC9B;IACA,OAAOE,OAAO,CAACC,MAAM;EACvB;AACF;AAEF,eAAe,IAAIR,kBAAkB,CAAC,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["map","Map","get","t","set","o","remove","v","delete","getInstance","key","FOCUSED_ELEMENT","I18nService"],"sources":["injector.ts"],"sourcesContent":["import { I18nService } from \"./i18n.service\";\n\nconst map = new Map<string, any>();\n\nconst get = <T>(t :string): T => {\n return map.get(t) as T;\n};\n\nconst set = <T>(t :string, o: T) => {\n map.set(t, o);\n};\n\nconst remove = <T>(t :string): T => {\n const v = map.get(t) as T;\n v && map.delete(t);\n return v;\n};\n\nconst getInstance = <T>(key: string) => {\n return {\n set: (o: T) => set(key, o),\n get: () => get(key) as T,\n remove: () => remove(key) as T\n }\n};\nexport default {\n set: set,\n get: get,\n remove: remove,\n FOCUSED_ELEMENT: getInstance<any>('FOCUSED_ELEMENT'),\n I18nService: getInstance<I18nService>('I18nService')\n};"],"mappings":"AAEA,MAAMA,GAAG,GAAG,IAAIC,GAAG,CAAc,CAAC;AAElC,MAAMC,GAAG,GAAOC,CAAS,IAAQ;EAC7B,OAAOH,GAAG,CAACE,GAAG,CAACC,CAAC,CAAC;AACrB,CAAC;AAED,MAAMC,GAAG,GAAGA,CAAID,CAAS,EAAEE,CAAI,KAAK;EAChCL,GAAG,CAACI,GAAG,CAACD,CAAC,EAAEE,CAAC,CAAC;AACjB,CAAC;AAED,MAAMC,MAAM,GAAQH,CAAS,IAAQ;EACjC,MAAMI,CAAC,GAAGP,GAAG,CAACE,GAAG,CAACC,CAAC,CAAM;EACzBI,CAAC,IAAIP,GAAG,CAACQ,MAAM,CAACL,CAAC,CAAC;EAClB,OAAOI,CAAC;AACZ,CAAC;AAED,MAAME,WAAW,GAAOC,GAAW,IAAK;EACpC,OAAO;IACHN,GAAG,EAAGC,CAAI,IAAKD,GAAG,CAACM,GAAG,EAAEL,CAAC,CAAC;IAC1BH,GAAG,EAAEA,CAAA,KAAMA,GAAG,CAACQ,GAAG,CAAM;IACxBJ,MAAM,EAAEA,CAAA,KAAMA,MAAM,CAACI,GAAG;EAC5B,CAAC;AACL,CAAC;AACD,eAAe;EACXN,GAAG,EAAEA,GAAG;EACRF,GAAG,EAAEA,GAAG;EACRI,MAAM,EAAEA,MAAM;EACdK,eAAe,EAAEF,WAAW,CAAM,iBAAiB,CAAC;EACpDG,WAAW,EAAEH,WAAW,CAAc,aAAa;AACvD,CAAC"}
1
+ {"version":3,"names":["map","Map","get","t","set","o","remove","v","delete","getInstance","key","FOCUSED_ELEMENT","I18nService"],"sources":["injector.ts"],"sourcesContent":["import { I18nService } from \"./i18n.service\";\n\nconst map = new Map<string, any>();\n\nconst get = <T>(t :string): T => {\n return map.get(t) as T;\n};\n\nconst set = <T>(t :string, o: T) => {\n map.set(t, o);\n};\n\nconst remove = <T>(t :string): T => {\n const v = map.get(t) as T;\n v && map.delete(t);\n return v;\n};\n\nconst getInstance = <T>(key: string) => {\n return {\n set: (o: T) => set(key, o),\n get: () => get(key) as T,\n remove: () => remove(key) as T\n }\n};\nexport default {\n set: set,\n get: get,\n remove: remove,\n FOCUSED_ELEMENT: getInstance<any>('FOCUSED_ELEMENT'),\n I18nService: getInstance<I18nService>('I18nService')\n};"],"mappings":"AAEA,MAAMA,GAAG,GAAG,IAAIC,GAAG,CAAc,CAAC;AAElC,MAAMC,GAAG,GAAOC,CAAS,IAAQ;EAC7B,OAAOH,GAAG,CAACE,GAAG,CAACC,CAAC,CAAC;AACrB,CAAC;AAED,MAAMC,GAAG,GAAGA,CAAID,CAAS,EAAEE,CAAI,KAAK;EAChCL,GAAG,CAACI,GAAG,CAACD,CAAC,EAAEE,CAAC,CAAC;AACjB,CAAC;AAED,MAAMC,MAAM,GAAQH,CAAS,IAAQ;EACjC,MAAMI,CAAC,GAAGP,GAAG,CAACE,GAAG,CAACC,CAAC,CAAM;EACzBI,CAAC,IAAIP,GAAG,CAACQ,MAAM,CAACL,CAAC,CAAC;EAClB,OAAOI,CAAC;AACZ,CAAC;AAED,MAAME,WAAW,GAAOC,GAAW,IAAK;EACpC,OAAO;IACHN,GAAG,EAAGC,CAAI,IAAKD,GAAG,CAACM,GAAG,EAAEL,CAAC,CAAC;IAC1BH,GAAG,EAAEA,CAAA,KAAMA,GAAG,CAACQ,GAAG,CAAM;IACxBJ,MAAM,EAAEA,CAAA,KAAMA,MAAM,CAACI,GAAG;EAC5B,CAAC;AACL,CAAC;AACD,eAAe;EACXN,GAAG,EAAEA,GAAG;EACRF,GAAG,EAAEA,GAAG;EACRI,MAAM,EAAEA,MAAM;EACdK,eAAe,EAAEF,WAAW,CAAM,iBAAiB,CAAC;EACpDG,WAAW,EAAEH,WAAW,CAAc,aAAa;AACvD,CAAC","ignoreList":[]}
@@ -1,13 +1,12 @@
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
  export class DefaultKeyExtractor {
5
5
  constructor() {
6
6
  _defineProperty(this, "store", new Map());
7
7
  _defineProperty(this, "nextKey", 1);
8
8
  }
9
- getKey(o) {
10
- let create = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
9
+ getKey(o, create = false) {
11
10
  let k = this.store.get(o);
12
11
  if (!k && create) {
13
12
  k = `key:${Date.now()}:${this.nextKey++}`;
@@ -1 +1 @@
1
- {"version":3,"names":["DefaultKeyExtractor","constructor","_defineProperty","Map","getKey","o","create","arguments","length","undefined","k","store","get","Date","now","nextKey","set","clear"],"sources":["key.extractor.ts"],"sourcesContent":["export class DefaultKeyExtractor {\n store = new Map<any, string>();\n nextKey = 1;\n \n getKey(o : any, create = false) {\n let k = this.store.get(o);\n if (!k && create) {\n k = `key:${Date.now()}:${this.nextKey++}`;\n this.store.set(o, k)\n }\n return k;\n }\n \n clear() {\n this.store = new Map();\n }\n}"],"mappings":";;;AAAA,OAAO,MAAMA,mBAAmB,CAAC;EAAAC,YAAA;IAAAC,eAAA,gBACrB,IAAIC,GAAG,CAAc,CAAC;IAAAD,eAAA,kBACpB,CAAC;EAAA;EAEXE,MAAMA,CAACC,CAAO,EAAkB;IAAA,IAAhBC,MAAM,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,KAAK;IAC5B,IAAIG,CAAC,GAAG,IAAI,CAACC,KAAK,CAACC,GAAG,CAACP,CAAC,CAAC;IACzB,IAAI,CAACK,CAAC,IAAIJ,MAAM,EAAE;MAChBI,CAAC,GAAI,OAAMG,IAAI,CAACC,GAAG,CAAC,CAAE,IAAG,IAAI,CAACC,OAAO,EAAG,EAAC;MACzC,IAAI,CAACJ,KAAK,CAACK,GAAG,CAACX,CAAC,EAAEK,CAAC,CAAC;IACtB;IACA,OAAOA,CAAC;EACV;EAEAO,KAAKA,CAAA,EAAG;IACN,IAAI,CAACN,KAAK,GAAG,IAAIR,GAAG,CAAC,CAAC;EACxB;AACJ"}
1
+ {"version":3,"names":["DefaultKeyExtractor","constructor","_defineProperty","Map","getKey","o","create","k","store","get","Date","now","nextKey","set","clear"],"sources":["key.extractor.ts"],"sourcesContent":["export class DefaultKeyExtractor {\n store = new Map<any, string>();\n nextKey = 1;\n \n getKey(o : any, create = false) {\n let k = this.store.get(o);\n if (!k && create) {\n k = `key:${Date.now()}:${this.nextKey++}`;\n this.store.set(o, k)\n }\n return k;\n }\n \n clear() {\n this.store = new Map();\n }\n}"],"mappings":";;;AAAA,OAAO,MAAMA,mBAAmB,CAAC;EAAAC,YAAA;IAAAC,eAAA,gBACrB,IAAIC,GAAG,CAAc,CAAC;IAAAD,eAAA,kBACpB,CAAC;EAAA;EAEXE,MAAMA,CAACC,CAAO,EAAEC,MAAM,GAAG,KAAK,EAAE;IAC9B,IAAIC,CAAC,GAAG,IAAI,CAACC,KAAK,CAACC,GAAG,CAACJ,CAAC,CAAC;IACzB,IAAI,CAACE,CAAC,IAAID,MAAM,EAAE;MAChBC,CAAC,GAAI,OAAMG,IAAI,CAACC,GAAG,CAAC,CAAE,IAAG,IAAI,CAACC,OAAO,EAAG,EAAC;MACzC,IAAI,CAACJ,KAAK,CAACK,GAAG,CAACR,CAAC,EAAEE,CAAC,CAAC;IACtB;IACA,OAAOA,CAAC;EACV;EAEAO,KAAKA,CAAA,EAAG;IACN,IAAI,CAACN,KAAK,GAAG,IAAIL,GAAG,CAAC,CAAC;EACxB;AACJ","ignoreList":[]}
@@ -1,6 +1,6 @@
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 { keys, sortBy } from 'lodash-es';
5
5
  import { logger } from 'react-native-logs';
6
6
  import StorageService from './storage.service';
@@ -16,7 +16,7 @@ class LoggerCollection {
16
16
  this.config = JSON.parse(data) || {};
17
17
  keys(this.config).forEach(k => {
18
18
  var _this$loggerMap$get;
19
- (_this$loggerMap$get = this.loggerMap.get(k)) === null || _this$loggerMap$get === void 0 ? void 0 : _this$loggerMap$get.setLevel(this.config[k].level);
19
+ (_this$loggerMap$get = this.loggerMap.get(k)) === null || _this$loggerMap$get === void 0 || _this$loggerMap$get.setLevel(this.config[k].level);
20
20
  });
21
21
  }
22
22
  }).catch(() => {});
@@ -1 +1 @@
1
- {"version":3,"names":["keys","sortBy","logger","StorageService","LoggerCollection","constructor","_defineProperty","Map","init","getItem","key","then","data","config","JSON","parse","forEach","k","_this$loggerMap$get","loggerMap","get","setLevel","level","catch","name","set","setLogLevel","levels","undefined","filter","startsWith","_this$loggerMap$get2","setItem","stringify","getLogLevel","_this$config$name","list","debug","info","warn","error","loggerCollection","log","createLogger","severity","enabledExtensions","Logger","ins","extend","enable","isEnabled","msg","Function","getLogger","ROOT_LOGGER","PERFORMANCE_LOGGER","RENDER_LOGGER","reset"],"sources":["logger.ts"],"sourcesContent":["import { keys, sortBy } from 'lodash-es';\nimport { logger } from 'react-native-logs';\nimport StorageService from './storage.service'\n\nclass LoggerCollection {\n loggerMap = new Map<string, Logger>();\n config = {} as any;\n key = 'wm.log.config';\n\n init() {\n StorageService.getItem(this.key).then((data) => {\n if (data) {\n this.config = JSON.parse(data as string) || {};\n keys(this.config).forEach((k: string) => {\n this.loggerMap.get(k)?.setLevel(this.config[k].level);\n });\n }\n }).catch(() => {});\n }\n\n get(name: string) {\n return this.loggerMap.get(name);\n }\n\n set(name: string, logger: Logger) {\n this.loggerMap.set(name, logger);\n }\n\n setLogLevel(name?: string, level?: string) {\n if (!level && (name && levels[name] !== undefined)) {\n level = name;\n name = undefined;\n }\n if (level !== undefined) {\n [...this.loggerMap.keys()]\n .filter(k => !name || k.startsWith(name))\n .forEach(k => {\n level && this.loggerMap.get(k)?.setLevel(level);\n if (k) {\n this.config[k] = this.config[k] || {};\n this.config[k].level = level;\n } \n });\n StorageService.setItem(this.key, JSON.stringify(this.config))\n }\n }\n\n getLogLevel(name?: string, level?: string) {\n return name && this.config[name]?.level;\n }\n\n list() {\n return sortBy([...this.loggerMap.keys()])\n }\n}\n\nconst levels = {\n debug: 0,\n info: 1,\n warn: 2,\n error: 3\n} as any;\n\nconst loggerCollection = new LoggerCollection();\n\nconst log = logger.createLogger({\n severity: 'debug',\n levels: levels,\n enabledExtensions: []\n});\n\nexport class Logger {\n\n private ins = null as any;\n\n constructor(private name: string, private level: string) {\n this.ins = log.extend(this.name);\n log.enable(this.name);\n }\n\n private isEnabled(level: string) {\n return levels[level] >= levels[this.level];\n }\n\n private log(level: string, msg: string | Function ) {\n if (this.isEnabled(level)) {\n if (msg instanceof Function) {\n msg = msg();\n }\n this.ins[level](msg);\n }\n }\n\n extend(name: string) {\n return getLogger(this.name + '.' + name);\n }\n\n setLevel(level: string) {\n this.level = level;\n }\n\n debug(msg: string | Function) {\n this.log('debug', msg);\n }\n\n info(msg: string | Function) {\n this.log('info', msg);\n }\n\n warn(msg: string | Function) {\n this.log('warn', msg);\n }\n\n error(msg: string | Function) {\n this.log('error', msg);\n }\n}\n\nconst getLogger = (name: string, level?: string) => {\n let logger = loggerCollection.get(name);\n if (!logger) {\n logger = new Logger(name, loggerCollection.getLogLevel(name) || 'error');\n loggerCollection.set(name, logger);\n }\n return logger;\n};\n\nexport const ROOT_LOGGER = getLogger('root');\nexport const PERFORMANCE_LOGGER = ROOT_LOGGER.extend('performance');\nexport const RENDER_LOGGER = PERFORMANCE_LOGGER.extend('render');\n\nexport default {\n get: getLogger,\n setLogLevel: (name?: string, level?: string) => loggerCollection.setLogLevel(name, level),\n list: () => loggerCollection.list(),\n reset: () => loggerCollection.setLogLevel('root', 'error'),\n init: () => loggerCollection.init()\n};"],"mappings":";;;AAAA,SAASA,IAAI,EAAEC,MAAM,QAAQ,WAAW;AACxC,SAASC,MAAM,QAAQ,mBAAmB;AAC1C,OAAOC,cAAc,MAAM,mBAAmB;AAE9C,MAAMC,gBAAgB,CAAC;EAAAC,YAAA;IAAAC,eAAA,oBACP,IAAIC,GAAG,CAAiB,CAAC;IAAAD,eAAA,iBAC5B,CAAC,CAAC;IAAAA,eAAA,cACL,eAAe;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;EAC1B;AACJ;AAEA,MAAME,SAAS,GAAGA,CAAC7B,IAAY,EAAEF,KAAc,KAAK;EAChD,IAAIpB,MAAM,GAAGuC,gBAAgB,CAACrB,GAAG,CAACI,IAAI,CAAC;EACvC,IAAI,CAACtB,MAAM,EAAE;IACTA,MAAM,GAAG,IAAI4C,MAAM,CAACtB,IAAI,EAAEiB,gBAAgB,CAACP,WAAW,CAACV,IAAI,CAAC,IAAI,OAAO,CAAC;IACxEiB,gBAAgB,CAAChB,GAAG,CAACD,IAAI,EAAEtB,MAAM,CAAC;EACtC;EACA,OAAOA,MAAM;AACjB,CAAC;AAED,OAAO,MAAMoD,WAAW,GAAGD,SAAS,CAAC,MAAM,CAAC;AAC5C,OAAO,MAAME,kBAAkB,GAAGD,WAAW,CAACN,MAAM,CAAC,aAAa,CAAC;AACnE,OAAO,MAAMQ,aAAa,GAAGD,kBAAkB,CAACP,MAAM,CAAC,QAAQ,CAAC;AAEhE,eAAe;EACX5B,GAAG,EAAEiC,SAAS;EACd3B,WAAW,EAAEA,CAACF,IAAa,EAAEF,KAAc,KAAKmB,gBAAgB,CAACf,WAAW,CAACF,IAAI,EAAEF,KAAK,CAAC;EACzFc,IAAI,EAAEA,CAAA,KAAMK,gBAAgB,CAACL,IAAI,CAAC,CAAC;EACnCqB,KAAK,EAAEA,CAAA,KAAMhB,gBAAgB,CAACf,WAAW,CAAC,MAAM,EAAE,OAAO,CAAC;EAC1DlB,IAAI,EAAEA,CAAA,KAAMiC,gBAAgB,CAACjC,IAAI,CAAC;AACtC,CAAC"}
1
+ {"version":3,"names":["keys","sortBy","logger","StorageService","LoggerCollection","constructor","_defineProperty","Map","init","getItem","key","then","data","config","JSON","parse","forEach","k","_this$loggerMap$get","loggerMap","get","setLevel","level","catch","name","set","setLogLevel","levels","undefined","filter","startsWith","_this$loggerMap$get2","setItem","stringify","getLogLevel","_this$config$name","list","debug","info","warn","error","loggerCollection","log","createLogger","severity","enabledExtensions","Logger","ins","extend","enable","isEnabled","msg","Function","getLogger","ROOT_LOGGER","PERFORMANCE_LOGGER","RENDER_LOGGER","reset"],"sources":["logger.ts"],"sourcesContent":["import { keys, sortBy } from 'lodash-es';\nimport { logger } from 'react-native-logs';\nimport StorageService from './storage.service'\n\nclass LoggerCollection {\n loggerMap = new Map<string, Logger>();\n config = {} as any;\n key = 'wm.log.config';\n\n init() {\n StorageService.getItem(this.key).then((data) => {\n if (data) {\n this.config = JSON.parse(data as string) || {};\n keys(this.config).forEach((k: string) => {\n this.loggerMap.get(k)?.setLevel(this.config[k].level);\n });\n }\n }).catch(() => {});\n }\n\n get(name: string) {\n return this.loggerMap.get(name);\n }\n\n set(name: string, logger: Logger) {\n this.loggerMap.set(name, logger);\n }\n\n setLogLevel(name?: string, level?: string) {\n if (!level && (name && levels[name] !== undefined)) {\n level = name;\n name = undefined;\n }\n if (level !== undefined) {\n [...this.loggerMap.keys()]\n .filter(k => !name || k.startsWith(name))\n .forEach(k => {\n level && this.loggerMap.get(k)?.setLevel(level);\n if (k) {\n this.config[k] = this.config[k] || {};\n this.config[k].level = level;\n } \n });\n StorageService.setItem(this.key, JSON.stringify(this.config))\n }\n }\n\n getLogLevel(name?: string, level?: string) {\n return name && this.config[name]?.level;\n }\n\n list() {\n return sortBy([...this.loggerMap.keys()])\n }\n}\n\nconst levels = {\n debug: 0,\n info: 1,\n warn: 2,\n error: 3\n} as any;\n\nconst loggerCollection = new LoggerCollection();\n\nconst log = logger.createLogger({\n severity: 'debug',\n levels: levels,\n enabledExtensions: []\n});\n\nexport class Logger {\n\n private ins = null as any;\n\n constructor(private name: string, private level: string) {\n this.ins = log.extend(this.name);\n log.enable(this.name);\n }\n\n private isEnabled(level: string) {\n return levels[level] >= levels[this.level];\n }\n\n private log(level: string, msg: string | Function ) {\n if (this.isEnabled(level)) {\n if (msg instanceof Function) {\n msg = msg();\n }\n this.ins[level](msg);\n }\n }\n\n extend(name: string) {\n return getLogger(this.name + '.' + name);\n }\n\n setLevel(level: string) {\n this.level = level;\n }\n\n debug(msg: string | Function) {\n this.log('debug', msg);\n }\n\n info(msg: string | Function) {\n this.log('info', msg);\n }\n\n warn(msg: string | Function) {\n this.log('warn', msg);\n }\n\n error(msg: string | Function) {\n this.log('error', msg);\n }\n}\n\nconst getLogger = (name: string, level?: string) => {\n let logger = loggerCollection.get(name);\n if (!logger) {\n logger = new Logger(name, loggerCollection.getLogLevel(name) || 'error');\n loggerCollection.set(name, logger);\n }\n return logger;\n};\n\nexport const ROOT_LOGGER = getLogger('root');\nexport const PERFORMANCE_LOGGER = ROOT_LOGGER.extend('performance');\nexport const RENDER_LOGGER = PERFORMANCE_LOGGER.extend('render');\n\nexport default {\n get: getLogger,\n setLogLevel: (name?: string, level?: string) => loggerCollection.setLogLevel(name, level),\n list: () => loggerCollection.list(),\n reset: () => loggerCollection.setLogLevel('root', 'error'),\n init: () => loggerCollection.init()\n};"],"mappings":";;;AAAA,SAASA,IAAI,EAAEC,MAAM,QAAQ,WAAW;AACxC,SAASC,MAAM,QAAQ,mBAAmB;AAC1C,OAAOC,cAAc,MAAM,mBAAmB;AAE9C,MAAMC,gBAAgB,CAAC;EAAAC,YAAA;IAAAC,eAAA,oBACP,IAAIC,GAAG,CAAiB,CAAC;IAAAD,eAAA,iBAC5B,CAAC,CAAC;IAAAA,eAAA,cACL,eAAe;EAAA;EAErBE,IAAIA,CAAA,EAAG;IACHL,cAAc,CAACM,OAAO,CAAC,IAAI,CAACC,GAAG,CAAC,CAACC,IAAI,CAAEC,IAAI,IAAK;MAC5C,IAAIA,IAAI,EAAE;QACN,IAAI,CAACC,MAAM,GAAGC,IAAI,CAACC,KAAK,CAACH,IAAc,CAAC,IAAI,CAAC,CAAC;QAC9CZ,IAAI,CAAC,IAAI,CAACa,MAAM,CAAC,CAACG,OAAO,CAAEC,CAAS,IAAK;UAAA,IAAAC,mBAAA;UACrC,CAAAA,mBAAA,OAAI,CAACC,SAAS,CAACC,GAAG,CAACH,CAAC,CAAC,cAAAC,mBAAA,eAArBA,mB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,CAAC,MAAM,CAAC;AAC5C,OAAO,MAAME,kBAAkB,GAAGD,WAAW,CAACN,MAAM,CAAC,aAAa,CAAC;AACnE,OAAO,MAAMQ,aAAa,GAAGD,kBAAkB,CAACP,MAAM,CAAC,QAAQ,CAAC;AAEhE,eAAe;EACX5B,GAAG,EAAEiC,SAAS;EACd3B,WAAW,EAAEA,CAACF,IAAa,EAAEF,KAAc,KAAKmB,gBAAgB,CAACf,WAAW,CAACF,IAAI,EAAEF,KAAK,CAAC;EACzFc,IAAI,EAAEA,CAAA,KAAMK,gBAAgB,CAACL,IAAI,CAAC,CAAC;EACnCqB,KAAK,EAAEA,CAAA,KAAMhB,gBAAgB,CAACf,WAAW,CAAC,MAAM,EAAE,OAAO,CAAC;EAC1DlB,IAAI,EAAEA,CAAA,KAAMiC,gBAAgB,CAACjC,IAAI,CAAC;AACtC,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["React","ModalContext","createContext","ModalProvider","Provider","ModalConsumer","Consumer"],"sources":["modal.service.ts"],"sourcesContent":["import React from 'react';\n\nexport interface ModalOptions {\n elevationIndex: number;\n name?: string;\n content: React.ReactNode;\n modalStyle?: any;\n contentStyle?: any;\n centered?: boolean,\n onClose?: () => void;\n onOpen?: () => void;\n isModal?: boolean;\n animation: string;\n}\n\nexport interface ModalService {\n refresh: () => void;\n showModal: (options: ModalOptions) => void;\n hideModal: (options: ModalOptions) => void;\n}\n\nconst ModalContext = React.createContext<ModalService>(null as any);\n\nexport const ModalProvider = ModalContext.Provider;\nexport const ModalConsumer = ModalContext.Consumer;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AAqBzB,MAAMC,YAAY,gBAAGD,KAAK,CAACE,aAAa,CAAe,IAAW,CAAC;AAEnE,OAAO,MAAMC,aAAa,GAAGF,YAAY,CAACG,QAAQ;AAClD,OAAO,MAAMC,aAAa,GAAGJ,YAAY,CAACK,QAAQ"}
1
+ {"version":3,"names":["React","ModalContext","createContext","ModalProvider","Provider","ModalConsumer","Consumer"],"sources":["modal.service.ts"],"sourcesContent":["import React from 'react';\n\nexport interface ModalOptions {\n elevationIndex: number;\n name?: string;\n content: React.ReactNode;\n modalStyle?: any;\n contentStyle?: any;\n centered?: boolean,\n onClose?: () => void;\n onOpen?: () => void;\n isModal?: boolean;\n animation: string;\n animationdelay: number;\n}\n\nexport interface ModalService {\n refresh: () => void;\n showModal: (options: ModalOptions) => void;\n hideModal: (options: ModalOptions) => void;\n}\n\nconst ModalContext = React.createContext<ModalService>(null as any);\n\nexport const ModalProvider = ModalContext.Provider;\nexport const ModalConsumer = ModalContext.Consumer;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AAsBzB,MAAMC,YAAY,gBAAGD,KAAK,CAACE,aAAa,CAAe,IAAW,CAAC;AAEnE,OAAO,MAAMC,aAAa,GAAGF,YAAY,CAACG,QAAQ;AAClD,OAAO,MAAMC,aAAa,GAAGJ,YAAY,CAACK,QAAQ","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["React","NavigationContext","createContext","NavigationServiceProvider","Provider","NavigationServiceConsumer","Consumer"],"sources":["navigation.service.ts"],"sourcesContent":["import React from 'react';\n\nexport default interface NavigationService {\n goToPage: (pageName: string, params: any) => Promise<void>;\n goBack: (pageName: string, params: any) => Promise<void>;\n openUrl: (url: string, params?: any) => Promise<void>;\n}\n\nconst NavigationContext = React.createContext<NavigationService>(null as any);\n\nexport const NavigationServiceProvider = NavigationContext.Provider;\nexport const NavigationServiceConsumer = NavigationContext.Consumer;"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AAQzB,MAAMC,iBAAiB,gBAAGD,KAAK,CAACE,aAAa,CAAoB,IAAW,CAAC;AAE7E,OAAO,MAAMC,yBAAyB,GAAGF,iBAAiB,CAACG,QAAQ;AACnE,OAAO,MAAMC,yBAAyB,GAAGJ,iBAAiB,CAACK,QAAQ"}
1
+ {"version":3,"names":["React","NavigationContext","createContext","NavigationServiceProvider","Provider","NavigationServiceConsumer","Consumer"],"sources":["navigation.service.ts"],"sourcesContent":["import React from 'react';\n\nexport default interface NavigationService {\n goToPage: (pageName: string, params: any) => Promise<void>;\n goBack: (pageName: string, params: any) => Promise<void>;\n openUrl: (url: string, params?: any) => Promise<void>;\n}\n\nconst NavigationContext = React.createContext<NavigationService>(null as any);\n\nexport const NavigationServiceProvider = NavigationContext.Provider;\nexport const NavigationServiceConsumer = NavigationContext.Consumer;"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AAQzB,MAAMC,iBAAiB,gBAAGD,KAAK,CAACE,aAAa,CAAoB,IAAW,CAAC;AAE7E,OAAO,MAAMC,yBAAyB,GAAGF,iBAAiB,CAACG,QAAQ;AACnE,OAAO,MAAMC,yBAAyB,GAAGJ,iBAAiB,CAACK,QAAQ","ignoreList":[]}
@@ -1,6 +1,6 @@
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 axios from 'axios';
5
5
  import { clone, isEqual, noop } from 'lodash-es';
6
6
  import * as Network from 'expo-network';
@@ -77,8 +77,7 @@ class NetworkService {
77
77
  *
78
78
  * @returns {object} promise
79
79
  */
80
- connect() {
81
- let silent = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
80
+ connect(silent = false) {
82
81
  this.setAutoConnect(true);
83
82
  return this.tryToConnect(silent);
84
83
  }
@@ -100,8 +99,7 @@ class NetworkService {
100
99
  *
101
100
  * @returns {boolean} if pingServer is true, then a promise is returned. Otherwise, a boolean value.
102
101
  */
103
- isAvailable() {
104
- let pingServer = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
102
+ isAvailable(pingServer = false) {
105
103
  if (pingServer) {
106
104
  return this.isServiceAvailable().then(() => {
107
105
  this.checkForNetworkStateChange();
@@ -158,7 +156,7 @@ class NetworkService {
158
156
  async start(appConfig) {
159
157
  this.appConfig = appConfig;
160
158
  networkState.noServiceRequired = !appConfig.url;
161
- networkState.isConnected = (await StorageService.getItem(IS_CONNECTED_KEY)) === 'true';
159
+ networkState.isConnected = (await StorageService.getItem(IS_CONNECTED_KEY)) !== 'false';
162
160
  this._autoConnect = (await StorageService.getItem(AUTO_CONNECT_KEY)) !== 'false';
163
161
  const state = await Network.getNetworkStateAsync();
164
162
  networkState.isNetworkAvailable = !!state.isConnected;
@@ -264,8 +262,7 @@ class NetworkService {
264
262
  * Otherwise, the promise is resolved with false.
265
263
  * default timeout value is 1min.
266
264
  */
267
- pingServer() {
268
- let maxTimeout = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 60000;
265
+ pingServer(maxTimeout = 60000) {
269
266
  let baseURL = this.appConfig.url;
270
267
  if (baseURL && !baseURL.endsWith('/')) {
271
268
  baseURL += '/';
@@ -290,8 +287,7 @@ class NetworkService {
290
287
  * events are emitted for network status change.
291
288
  * @returns {*} a promise
292
289
  */
293
- tryToConnect() {
294
- let silentMode = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
290
+ tryToConnect(silentMode = false) {
295
291
  return new Promise((resolve, reject) => {
296
292
  this.isServiceAvailable(5000).then(() => {
297
293
  if (networkState.isServiceAvailable && this._autoConnect) {