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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (423) hide show
  1. app-rn-runtime/actions/base-action.js.map +1 -1
  2. app-rn-runtime/actions/login-action.js.map +1 -1
  3. app-rn-runtime/actions/logout-action.js.map +1 -1
  4. app-rn-runtime/actions/navigation-action.js.map +1 -1
  5. app-rn-runtime/actions/notification-action.js.map +1 -1
  6. app-rn-runtime/actions/timer-action.js.map +1 -1
  7. app-rn-runtime/components/advanced/carousel/carousel-content/carousel-content.component.js.map +1 -1
  8. app-rn-runtime/components/advanced/carousel/carousel-content/carousel-content.props.js.map +1 -1
  9. app-rn-runtime/components/advanced/carousel/carousel-template/carousel-template.component.js.map +1 -1
  10. app-rn-runtime/components/advanced/carousel/carousel-template/carousel-template.props.js.map +1 -1
  11. app-rn-runtime/components/advanced/carousel/carousel.component.js +1 -1
  12. app-rn-runtime/components/advanced/carousel/carousel.component.js.map +1 -1
  13. app-rn-runtime/components/advanced/carousel/carousel.props.js.map +1 -1
  14. app-rn-runtime/components/advanced/carousel/carousel.styles.js +16 -0
  15. app-rn-runtime/components/advanced/carousel/carousel.styles.js.map +1 -1
  16. app-rn-runtime/components/advanced/login/login.component.js.map +1 -1
  17. app-rn-runtime/components/advanced/login/login.props.js.map +1 -1
  18. app-rn-runtime/components/advanced/network-info-toaster/network-info-toaster.component.js.map +1 -1
  19. app-rn-runtime/components/advanced/network-info-toaster/network-info-toaster.props.js.map +1 -1
  20. app-rn-runtime/components/advanced/webview/webview.component.js.map +1 -1
  21. app-rn-runtime/components/advanced/webview/webview.props.js.map +1 -1
  22. app-rn-runtime/components/basic/anchor/anchor.component.js +1 -0
  23. app-rn-runtime/components/basic/anchor/anchor.component.js.map +1 -1
  24. app-rn-runtime/components/basic/anchor/anchor.props.js.map +1 -1
  25. app-rn-runtime/components/basic/anchor/anchor.styles.js +5 -0
  26. app-rn-runtime/components/basic/anchor/anchor.styles.js.map +1 -1
  27. app-rn-runtime/components/basic/animatedview.component.js +1 -3
  28. app-rn-runtime/components/basic/animatedview.component.js.map +1 -1
  29. app-rn-runtime/components/basic/audio/audio.component.js +232 -0
  30. app-rn-runtime/components/basic/audio/audio.component.js.map +1 -0
  31. app-rn-runtime/components/basic/audio/audio.props.js +15 -0
  32. app-rn-runtime/components/basic/audio/audio.props.js.map +1 -0
  33. app-rn-runtime/components/basic/audio/audio.styles.js +61 -0
  34. app-rn-runtime/components/basic/audio/audio.styles.js.map +1 -0
  35. app-rn-runtime/components/basic/button/button.component.js.map +1 -1
  36. app-rn-runtime/components/basic/button/button.props.js.map +1 -1
  37. app-rn-runtime/components/basic/button/button.styles.js.map +1 -1
  38. app-rn-runtime/components/basic/buttongroup/buttongroup.component.js.map +1 -1
  39. app-rn-runtime/components/basic/buttongroup/buttongroup.props.js.map +1 -1
  40. app-rn-runtime/components/basic/buttongroup/buttongroup.styles.js.map +1 -1
  41. app-rn-runtime/components/basic/custom/custom.component.js.map +1 -1
  42. app-rn-runtime/components/basic/custom/custom.props.js.map +1 -1
  43. app-rn-runtime/components/basic/icon/icon.component.js.map +1 -1
  44. app-rn-runtime/components/basic/icon/icon.props.js.map +1 -1
  45. app-rn-runtime/components/basic/icon/icon.styles.js +5 -0
  46. app-rn-runtime/components/basic/icon/icon.styles.js.map +1 -1
  47. app-rn-runtime/components/basic/label/label.component.js +2 -1
  48. app-rn-runtime/components/basic/label/label.component.js.map +1 -1
  49. app-rn-runtime/components/basic/label/label.props.js.map +1 -1
  50. app-rn-runtime/components/basic/label/label.styles.js +8 -0
  51. app-rn-runtime/components/basic/label/label.styles.js.map +1 -1
  52. app-rn-runtime/components/basic/lottie/lottie.component.js.map +1 -1
  53. app-rn-runtime/components/basic/lottie/lottie.props.js.map +1 -1
  54. app-rn-runtime/components/basic/message/message.component.js.map +1 -1
  55. app-rn-runtime/components/basic/message/message.props.js.map +1 -1
  56. app-rn-runtime/components/basic/message/message.styles.js +22 -0
  57. app-rn-runtime/components/basic/message/message.styles.js.map +1 -1
  58. app-rn-runtime/components/basic/modal/modal.component.js.map +1 -1
  59. app-rn-runtime/components/basic/modal/modal.props.js.map +1 -1
  60. app-rn-runtime/components/basic/modal/modal.styles.js.map +1 -1
  61. app-rn-runtime/components/basic/picture/picture.component.js +3 -3
  62. app-rn-runtime/components/basic/picture/picture.component.js.map +1 -1
  63. app-rn-runtime/components/basic/picture/picture.props.js.map +1 -1
  64. app-rn-runtime/components/basic/picture/picture.styles.js.map +1 -1
  65. app-rn-runtime/components/basic/progress-bar/progress-bar.component.js.map +1 -1
  66. app-rn-runtime/components/basic/progress-bar/progress-bar.props.js.map +1 -1
  67. app-rn-runtime/components/basic/progress-bar/progress-bar.styles.js.map +1 -1
  68. app-rn-runtime/components/basic/progress-circle/progress-circle.component.js.map +1 -1
  69. app-rn-runtime/components/basic/progress-circle/progress-circle.props.js.map +1 -1
  70. app-rn-runtime/components/basic/progress-circle/progress-circle.styles.js.map +1 -1
  71. app-rn-runtime/components/basic/search/local-data-provider.js.map +1 -1
  72. app-rn-runtime/components/basic/search/search.component.js +1 -1
  73. app-rn-runtime/components/basic/search/search.component.js.map +1 -1
  74. app-rn-runtime/components/basic/search/search.props.js +1 -0
  75. app-rn-runtime/components/basic/search/search.props.js.map +1 -1
  76. app-rn-runtime/components/basic/search/search.styles.js +47 -0
  77. app-rn-runtime/components/basic/search/search.styles.js.map +1 -1
  78. app-rn-runtime/components/basic/skeleton/skeleton.component.js.map +1 -1
  79. app-rn-runtime/components/basic/spinner/spinner.component.js +3 -1
  80. app-rn-runtime/components/basic/spinner/spinner.component.js.map +1 -1
  81. app-rn-runtime/components/basic/spinner/spinner.props.js.map +1 -1
  82. app-rn-runtime/components/basic/spinner/spinner.styles.js +8 -0
  83. app-rn-runtime/components/basic/spinner/spinner.styles.js.map +1 -1
  84. app-rn-runtime/components/basic/video/video.component.js +2 -2
  85. app-rn-runtime/components/basic/video/video.component.js.map +1 -1
  86. app-rn-runtime/components/basic/video/video.props.js.map +1 -1
  87. app-rn-runtime/components/chart/area-chart/area-chart.component.js.map +1 -1
  88. app-rn-runtime/components/chart/bar-chart/bar-chart.component.js.map +1 -1
  89. app-rn-runtime/components/chart/bar-chart/bar-chart.props.js.map +1 -1
  90. app-rn-runtime/components/chart/basechart.component.js.map +1 -1
  91. app-rn-runtime/components/chart/basechart.props.js.map +1 -1
  92. app-rn-runtime/components/chart/bubble-chart/bubble-chart.component.js.map +1 -1
  93. app-rn-runtime/components/chart/column-chart/column-chart.component.js.map +1 -1
  94. app-rn-runtime/components/chart/donut-chart/donut-chart.component.js.map +1 -1
  95. app-rn-runtime/components/chart/donut-chart/donut-chart.props.js.map +1 -1
  96. app-rn-runtime/components/chart/line-chart/line-chart.component.js.map +1 -1
  97. app-rn-runtime/components/chart/line-chart/line-chart.props.js.map +1 -1
  98. app-rn-runtime/components/chart/pie-chart/pie-chart.component.js +1 -1
  99. app-rn-runtime/components/chart/pie-chart/pie-chart.component.js.map +1 -1
  100. app-rn-runtime/components/chart/pie-chart/pie-chart.props.js.map +1 -1
  101. app-rn-runtime/components/chart/theme/chart.theme.js.map +1 -1
  102. app-rn-runtime/components/container/accordion/accordion.component.js +63 -119
  103. app-rn-runtime/components/container/accordion/accordion.component.js.map +1 -1
  104. app-rn-runtime/components/container/accordion/accordion.props.js +1 -0
  105. app-rn-runtime/components/container/accordion/accordion.props.js.map +1 -1
  106. app-rn-runtime/components/container/accordion/accordion.styles.js +14 -4
  107. app-rn-runtime/components/container/accordion/accordion.styles.js.map +1 -1
  108. app-rn-runtime/components/container/accordion/accordionpane/accordionpane.component.js +42 -7
  109. app-rn-runtime/components/container/accordion/accordionpane/accordionpane.component.js.map +1 -1
  110. app-rn-runtime/components/container/accordion/accordionpane/accordionpane.props.js.map +1 -1
  111. app-rn-runtime/components/container/container.component.js.map +1 -1
  112. app-rn-runtime/components/container/container.props.js.map +1 -1
  113. app-rn-runtime/components/container/container.styles.js.map +1 -1
  114. app-rn-runtime/components/container/layoutgrid/gridcolumn/gridcolumn.component.js.map +1 -1
  115. app-rn-runtime/components/container/layoutgrid/gridcolumn/gridcolumn.props.js.map +1 -1
  116. app-rn-runtime/components/container/layoutgrid/gridrow/gridrow.component.js.map +1 -1
  117. app-rn-runtime/components/container/layoutgrid/gridrow/gridrow.props.js.map +1 -1
  118. app-rn-runtime/components/container/layoutgrid/layoutgrid.component.js.map +1 -1
  119. app-rn-runtime/components/container/layoutgrid/layoutgrid.props.js.map +1 -1
  120. app-rn-runtime/components/container/layoutgrid/layoutgrid.styles.js.map +1 -1
  121. app-rn-runtime/components/container/linearlayout/linearlayout.component.js.map +1 -1
  122. app-rn-runtime/components/container/linearlayout/linearlayout.props.js.map +1 -1
  123. app-rn-runtime/components/container/linearlayout/linearlayoutitem/linearlayoutitem.component.js.map +1 -1
  124. app-rn-runtime/components/container/linearlayout/linearlayoutitem/linearlayoutitem.props.js.map +1 -1
  125. app-rn-runtime/components/container/panel/panel-content/panel-content.component.js.map +1 -1
  126. app-rn-runtime/components/container/panel/panel-content/panel-content.props.js.map +1 -1
  127. app-rn-runtime/components/container/panel/panel-footer/panel-footer.component.js.map +1 -1
  128. app-rn-runtime/components/container/panel/panel-footer/panel-footer.props.js.map +1 -1
  129. app-rn-runtime/components/container/panel/panel.component.js.map +1 -1
  130. app-rn-runtime/components/container/panel/panel.props.js.map +1 -1
  131. app-rn-runtime/components/container/panel/panel.styles.js +9 -0
  132. app-rn-runtime/components/container/panel/panel.styles.js.map +1 -1
  133. app-rn-runtime/components/container/partial-host.component.js.map +1 -1
  134. app-rn-runtime/components/container/tabs/tabheader/tabheader.component.js +30 -5
  135. app-rn-runtime/components/container/tabs/tabheader/tabheader.component.js.map +1 -1
  136. app-rn-runtime/components/container/tabs/tabheader/tabheader.props.js.map +1 -1
  137. app-rn-runtime/components/container/tabs/tabheader/tabheader.styles.js +10 -1
  138. app-rn-runtime/components/container/tabs/tabheader/tabheader.styles.js.map +1 -1
  139. app-rn-runtime/components/container/tabs/tabpane/tabpane.component.js.map +1 -1
  140. app-rn-runtime/components/container/tabs/tabpane/tabpane.props.js.map +1 -1
  141. app-rn-runtime/components/container/tabs/tabs.component.js +5 -2
  142. app-rn-runtime/components/container/tabs/tabs.component.js.map +1 -1
  143. app-rn-runtime/components/container/tabs/tabs.props.js.map +1 -1
  144. app-rn-runtime/components/container/tabs/tabs.styles.js +39 -0
  145. app-rn-runtime/components/container/tabs/tabs.styles.js.map +1 -1
  146. app-rn-runtime/components/container/tile/tile.component.js.map +1 -1
  147. app-rn-runtime/components/container/tile/tile.props.js.map +1 -1
  148. app-rn-runtime/components/container/tile/tile.styles.js.map +1 -1
  149. app-rn-runtime/components/container/wizard/wizard.component.js +15 -6
  150. app-rn-runtime/components/container/wizard/wizard.component.js.map +1 -1
  151. app-rn-runtime/components/container/wizard/wizard.props.js.map +1 -1
  152. app-rn-runtime/components/container/wizard/wizard.styles.js +53 -1
  153. app-rn-runtime/components/container/wizard/wizard.styles.js.map +1 -1
  154. app-rn-runtime/components/container/wizard/wizardstep/wizardstep.component.js.map +1 -1
  155. app-rn-runtime/components/container/wizard/wizardstep/wizardstep.props.js.map +1 -1
  156. app-rn-runtime/components/data/card/card-content/card-content.component.js.map +1 -1
  157. app-rn-runtime/components/data/card/card-content/card-content.props.js.map +1 -1
  158. app-rn-runtime/components/data/card/card-footer/card-footer.component.js.map +1 -1
  159. app-rn-runtime/components/data/card/card-footer/card-footer.props.js.map +1 -1
  160. app-rn-runtime/components/data/card/card.component.js.map +1 -1
  161. app-rn-runtime/components/data/card/card.props.js.map +1 -1
  162. app-rn-runtime/components/data/form/form-action/form-action.component.js.map +1 -1
  163. app-rn-runtime/components/data/form/form-action/form-action.props.js.map +1 -1
  164. app-rn-runtime/components/data/form/form-action/form-action.styles.js.map +1 -1
  165. app-rn-runtime/components/data/form/form-body/form-body.component.js.map +1 -1
  166. app-rn-runtime/components/data/form/form-body/form-body.props.js.map +1 -1
  167. app-rn-runtime/components/data/form/form-field/form-field.component.js +2 -2
  168. app-rn-runtime/components/data/form/form-field/form-field.component.js.map +1 -1
  169. app-rn-runtime/components/data/form/form-field/form-field.props.js.map +1 -1
  170. app-rn-runtime/components/data/form/form-field/form-field.styles.js.map +1 -1
  171. app-rn-runtime/components/data/form/form-footer/form-footer.component.js.map +1 -1
  172. app-rn-runtime/components/data/form/form-footer/form-footer.props.js.map +1 -1
  173. app-rn-runtime/components/data/form/form.component.js +1 -2
  174. app-rn-runtime/components/data/form/form.component.js.map +1 -1
  175. app-rn-runtime/components/data/form/form.props.js.map +1 -1
  176. app-rn-runtime/components/data/form/form.styles.js.map +1 -1
  177. app-rn-runtime/components/data/list/list-template/list-template.component.js.map +1 -1
  178. app-rn-runtime/components/data/list/list-template/list-template.props.js.map +1 -1
  179. app-rn-runtime/components/data/list/list-template/list-template.styles.js.map +1 -1
  180. app-rn-runtime/components/data/list/list.component.js +77 -16
  181. app-rn-runtime/components/data/list/list.component.js.map +1 -1
  182. app-rn-runtime/components/data/list/list.props.js +2 -0
  183. app-rn-runtime/components/data/list/list.props.js.map +1 -1
  184. app-rn-runtime/components/data/list/list.styles.js.map +1 -1
  185. app-rn-runtime/components/device/barcodescanner/barcodescanner.component.js.map +1 -1
  186. app-rn-runtime/components/device/barcodescanner/barcodescanner.props.js.map +1 -1
  187. app-rn-runtime/components/device/camera/camera.component.js.map +1 -1
  188. app-rn-runtime/components/device/camera/camera.props.js.map +1 -1
  189. app-rn-runtime/components/dialogs/alertdialog/alertdialog.component.js.map +1 -1
  190. app-rn-runtime/components/dialogs/alertdialog/alertdialog.props.js.map +1 -1
  191. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.component.js.map +1 -1
  192. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.props.js.map +1 -1
  193. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.styles.js +9 -0
  194. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.styles.js.map +1 -1
  195. app-rn-runtime/components/dialogs/dialog/dialog.component.js +5 -2
  196. app-rn-runtime/components/dialogs/dialog/dialog.component.js.map +1 -1
  197. app-rn-runtime/components/dialogs/dialog/dialog.props.js.map +1 -1
  198. app-rn-runtime/components/dialogs/dialogactions/dialogactions.component.js.map +1 -1
  199. app-rn-runtime/components/dialogs/dialogactions/dialogactions.props.js.map +1 -1
  200. app-rn-runtime/components/dialogs/dialogcontent/dialogcontent.component.js.map +1 -1
  201. app-rn-runtime/components/dialogs/dialogcontent/dialogcontent.props.js.map +1 -1
  202. app-rn-runtime/components/input/basedataset/basedataset.component.js.map +1 -1
  203. app-rn-runtime/components/input/basedataset/basedataset.props.js.map +1 -1
  204. app-rn-runtime/components/input/baseinput/baseinput.component.js +2 -2
  205. app-rn-runtime/components/input/baseinput/baseinput.component.js.map +1 -1
  206. app-rn-runtime/components/input/baseinput/baseinput.props.js.map +1 -1
  207. app-rn-runtime/components/input/basenumber/basenumber.component.js +1 -1
  208. app-rn-runtime/components/input/basenumber/basenumber.component.js.map +1 -1
  209. app-rn-runtime/components/input/basenumber/basenumber.props.js.map +1 -1
  210. app-rn-runtime/components/input/calendar/calendar.component.js.map +1 -1
  211. app-rn-runtime/components/input/calendar/calendar.props.js.map +1 -1
  212. app-rn-runtime/components/input/calendar/calendar.styles.js +22 -0
  213. app-rn-runtime/components/input/calendar/calendar.styles.js.map +1 -1
  214. app-rn-runtime/components/input/calendar/views/month-view.js +1 -0
  215. app-rn-runtime/components/input/calendar/views/month-view.js.map +1 -1
  216. app-rn-runtime/components/input/checkbox/checkbox.component.js.map +1 -1
  217. app-rn-runtime/components/input/checkbox/checkbox.props.js.map +1 -1
  218. app-rn-runtime/components/input/checkboxset/checkboxset.component.js.map +1 -1
  219. app-rn-runtime/components/input/checkboxset/checkboxset.props.js.map +1 -1
  220. app-rn-runtime/components/input/chips/chips.component.js +1 -0
  221. app-rn-runtime/components/input/chips/chips.component.js.map +1 -1
  222. app-rn-runtime/components/input/chips/chips.props.js.map +1 -1
  223. app-rn-runtime/components/input/composite/composite.component.js.map +1 -1
  224. app-rn-runtime/components/input/composite/composite.props.js.map +1 -1
  225. app-rn-runtime/components/input/currency/currency.component.js +6 -4
  226. app-rn-runtime/components/input/currency/currency.component.js.map +1 -1
  227. app-rn-runtime/components/input/currency/currency.props.js +1 -1
  228. app-rn-runtime/components/input/currency/currency.props.js.map +1 -1
  229. app-rn-runtime/components/input/currency/currency.styles.js +9 -0
  230. app-rn-runtime/components/input/currency/currency.styles.js.map +1 -1
  231. app-rn-runtime/components/input/epoch/base-datetime.component.js +5 -2
  232. app-rn-runtime/components/input/epoch/base-datetime.component.js.map +1 -1
  233. app-rn-runtime/components/input/epoch/date/date.component.js.map +1 -1
  234. app-rn-runtime/components/input/epoch/date/date.props.js.map +1 -1
  235. app-rn-runtime/components/input/epoch/date/date.styles.js +9 -0
  236. app-rn-runtime/components/input/epoch/date/date.styles.js.map +1 -1
  237. app-rn-runtime/components/input/epoch/date-picker.component.js.map +1 -1
  238. app-rn-runtime/components/input/epoch/datetime/datetime.component.js.map +1 -1
  239. app-rn-runtime/components/input/epoch/datetime/datetime.props.js.map +1 -1
  240. app-rn-runtime/components/input/epoch/datetime/datetime.styles.js +9 -0
  241. app-rn-runtime/components/input/epoch/datetime/datetime.styles.js.map +1 -1
  242. app-rn-runtime/components/input/epoch/time/time.component.js.map +1 -1
  243. app-rn-runtime/components/input/epoch/time/time.props.js.map +1 -1
  244. app-rn-runtime/components/input/epoch/time/time.styles.js +9 -0
  245. app-rn-runtime/components/input/epoch/time/time.styles.js.map +1 -1
  246. app-rn-runtime/components/input/fileupload/fileupload.component.js.map +1 -1
  247. app-rn-runtime/components/input/fileupload/fileupload.props.js.map +1 -1
  248. app-rn-runtime/components/input/number/number.component.js +6 -4
  249. app-rn-runtime/components/input/number/number.component.js.map +1 -1
  250. app-rn-runtime/components/input/number/number.props.js +1 -1
  251. app-rn-runtime/components/input/number/number.props.js.map +1 -1
  252. app-rn-runtime/components/input/number/number.styles.js +5 -0
  253. app-rn-runtime/components/input/number/number.styles.js.map +1 -1
  254. app-rn-runtime/components/input/radioset/radioset.component.js.map +1 -1
  255. app-rn-runtime/components/input/radioset/radioset.props.js.map +1 -1
  256. app-rn-runtime/components/input/rating/rating.component.js +1 -1
  257. app-rn-runtime/components/input/rating/rating.component.js.map +1 -1
  258. app-rn-runtime/components/input/rating/rating.props.js.map +1 -1
  259. app-rn-runtime/components/input/select/select.component.js +1 -1
  260. app-rn-runtime/components/input/select/select.component.js.map +1 -1
  261. app-rn-runtime/components/input/select/select.props.js.map +1 -1
  262. app-rn-runtime/components/input/select/select.styles.js +10 -0
  263. app-rn-runtime/components/input/select/select.styles.js.map +1 -1
  264. app-rn-runtime/components/input/slider/slider.component.js +2 -1
  265. app-rn-runtime/components/input/slider/slider.component.js.map +1 -1
  266. app-rn-runtime/components/input/slider/slider.props.js.map +1 -1
  267. app-rn-runtime/components/input/switch/switch.component.js.map +1 -1
  268. app-rn-runtime/components/input/switch/switch.props.js.map +1 -1
  269. app-rn-runtime/components/input/switch/switch.styles.js +36 -0
  270. app-rn-runtime/components/input/switch/switch.styles.js.map +1 -1
  271. app-rn-runtime/components/input/text/text.component.js +5 -3
  272. app-rn-runtime/components/input/text/text.component.js.map +1 -1
  273. app-rn-runtime/components/input/text/text.props.js.map +1 -1
  274. app-rn-runtime/components/input/text/text.styles.js +5 -0
  275. app-rn-runtime/components/input/text/text.styles.js.map +1 -1
  276. app-rn-runtime/components/input/textarea/textarea.component.js +5 -3
  277. app-rn-runtime/components/input/textarea/textarea.component.js.map +1 -1
  278. app-rn-runtime/components/input/textarea/textarea.props.js.map +1 -1
  279. app-rn-runtime/components/input/textarea/textarea.styles.js +5 -0
  280. app-rn-runtime/components/input/textarea/textarea.styles.js.map +1 -1
  281. app-rn-runtime/components/input/toggle/toggle.component.js +17 -11
  282. app-rn-runtime/components/input/toggle/toggle.component.js.map +1 -1
  283. app-rn-runtime/components/input/toggle/toggle.props.js.map +1 -1
  284. app-rn-runtime/components/input/toggle/toggle.styles.js +28 -3
  285. app-rn-runtime/components/input/toggle/toggle.styles.js.map +1 -1
  286. app-rn-runtime/components/navigation/appnavbar/appnavbar.component.js.map +1 -1
  287. app-rn-runtime/components/navigation/appnavbar/appnavbar.props.js.map +1 -1
  288. app-rn-runtime/components/navigation/appnavbar/appnavbar.styles.js.map +1 -1
  289. app-rn-runtime/components/navigation/basenav/basenav.component.js.map +1 -1
  290. app-rn-runtime/components/navigation/basenav/basenav.props.js.map +1 -1
  291. app-rn-runtime/components/navigation/menu/menu.component.js.map +1 -1
  292. app-rn-runtime/components/navigation/menu/menu.props.js.map +1 -1
  293. app-rn-runtime/components/navigation/menu/menu.styles.js +6 -0
  294. app-rn-runtime/components/navigation/menu/menu.styles.js.map +1 -1
  295. app-rn-runtime/components/navigation/navbar/navbar.component.js.map +1 -1
  296. app-rn-runtime/components/navigation/navbar/navbar.props.js.map +1 -1
  297. app-rn-runtime/components/navigation/navbar/navbar.styles.js.map +1 -1
  298. app-rn-runtime/components/navigation/navitem/navitem.component.js.map +1 -1
  299. app-rn-runtime/components/navigation/navitem/navitem.props.js.map +1 -1
  300. app-rn-runtime/components/navigation/navitem/navitem.styles.js.map +1 -1
  301. app-rn-runtime/components/navigation/popover/popover.component.js.map +1 -1
  302. app-rn-runtime/components/navigation/popover/popover.props.js.map +1 -1
  303. app-rn-runtime/components/navigation/popover/popover.styles.js.map +1 -1
  304. app-rn-runtime/components/page/content/content.component.js.map +1 -1
  305. app-rn-runtime/components/page/left-panel/left-panel.component.js.map +1 -1
  306. app-rn-runtime/components/page/left-panel/left-panel.props.js.map +1 -1
  307. app-rn-runtime/components/page/page-content/page-content.component.js.map +1 -1
  308. app-rn-runtime/components/page/page-content/page-content.props.js.map +1 -1
  309. app-rn-runtime/components/page/page.component.js.map +1 -1
  310. app-rn-runtime/components/page/partial/partial.component.js.map +1 -1
  311. app-rn-runtime/components/page/partial-container/partial-container.component.js.map +1 -1
  312. app-rn-runtime/components/page/partial-container/partial-container.props.js.map +1 -1
  313. app-rn-runtime/components/page/tabbar/tabbar.component.js.map +1 -1
  314. app-rn-runtime/components/page/tabbar/tabbar.props.js.map +1 -1
  315. app-rn-runtime/components/prefab/prefab-container.component.js.map +1 -1
  316. app-rn-runtime/core/asset.provider.js.map +1 -1
  317. app-rn-runtime/core/base.component.js +19 -14
  318. app-rn-runtime/core/base.component.js.map +1 -1
  319. app-rn-runtime/core/components/textinput.component.js +37 -0
  320. app-rn-runtime/core/components/textinput.component.js.map +1 -0
  321. app-rn-runtime/core/device/camera-service.js.map +1 -1
  322. app-rn-runtime/core/device/scan-service.js.map +1 -1
  323. app-rn-runtime/core/display.manager.js.map +1 -1
  324. app-rn-runtime/core/event-notifier.js.map +1 -1
  325. app-rn-runtime/core/fixed-view.component.js.map +1 -1
  326. app-rn-runtime/core/formatters.js.map +1 -1
  327. app-rn-runtime/core/i18n.service.js +2 -0
  328. app-rn-runtime/core/i18n.service.js.map +1 -0
  329. app-rn-runtime/core/if.component.js +3 -3
  330. app-rn-runtime/core/if.component.js.map +1 -1
  331. app-rn-runtime/core/imageSizeEstimator.js.map +1 -1
  332. app-rn-runtime/core/injector.js +2 -1
  333. app-rn-runtime/core/injector.js.map +1 -1
  334. app-rn-runtime/core/logger.js +4 -1
  335. app-rn-runtime/core/logger.js.map +1 -1
  336. app-rn-runtime/core/modal.service.js.map +1 -1
  337. app-rn-runtime/core/navigation.service.js.map +1 -1
  338. app-rn-runtime/core/network.service.js +17 -15
  339. app-rn-runtime/core/network.service.js.map +1 -1
  340. app-rn-runtime/core/partial.service.js.map +1 -1
  341. app-rn-runtime/core/props.provider.js.map +1 -1
  342. app-rn-runtime/core/scroll-view.component.js.map +1 -1
  343. app-rn-runtime/core/security.service.js.map +1 -1
  344. app-rn-runtime/core/spinner.service.js.map +1 -1
  345. app-rn-runtime/core/storage.service.js.map +1 -1
  346. app-rn-runtime/core/tappable.component.js +11 -2
  347. app-rn-runtime/core/tappable.component.js.map +1 -1
  348. app-rn-runtime/core/toast.service.js.map +1 -1
  349. app-rn-runtime/core/utils.js +3 -0
  350. app-rn-runtime/core/utils.js.map +1 -1
  351. app-rn-runtime/core/viewport.js.map +1 -1
  352. app-rn-runtime/gestures/swipe.animation.js +9 -4
  353. app-rn-runtime/gestures/swipe.animation.js.map +1 -1
  354. app-rn-runtime/package.json +30 -30
  355. app-rn-runtime/runtime/App.js +14 -6
  356. app-rn-runtime/runtime/App.js.map +1 -1
  357. app-rn-runtime/runtime/App.navigator.js +11 -2
  358. app-rn-runtime/runtime/App.navigator.js.map +1 -1
  359. app-rn-runtime/runtime/base-fragment.component.js +4 -4
  360. app-rn-runtime/runtime/base-fragment.component.js.map +1 -1
  361. app-rn-runtime/runtime/base-page.component.js +2 -0
  362. app-rn-runtime/runtime/base-page.component.js.map +1 -1
  363. app-rn-runtime/runtime/base-partial.component.js.map +1 -1
  364. app-rn-runtime/runtime/base-prefab.component.js +1 -5
  365. app-rn-runtime/runtime/base-prefab.component.js.map +1 -1
  366. app-rn-runtime/runtime/lib-patch.js.map +1 -1
  367. app-rn-runtime/runtime/memo.component.js.map +1 -1
  368. app-rn-runtime/runtime/navigator/drawer.navigator.js.map +1 -1
  369. app-rn-runtime/runtime/navigator/stack.navigator.js.map +1 -1
  370. app-rn-runtime/runtime/services/app-display-manager.service.js.map +1 -1
  371. app-rn-runtime/runtime/services/app-i18n.service.js +20 -0
  372. app-rn-runtime/runtime/services/app-i18n.service.js.map +1 -1
  373. app-rn-runtime/runtime/services/app-modal.service.js.map +1 -1
  374. app-rn-runtime/runtime/services/app-security.service.js +7 -7
  375. app-rn-runtime/runtime/services/app-security.service.js.map +1 -1
  376. app-rn-runtime/runtime/services/app-spinner.service.js +3 -2
  377. app-rn-runtime/runtime/services/app-spinner.service.js.map +1 -1
  378. app-rn-runtime/runtime/services/app-toast.service.js.map +1 -1
  379. app-rn-runtime/runtime/services/device/calendar-service.js.map +1 -1
  380. app-rn-runtime/runtime/services/device/camera-service.js +2 -3
  381. app-rn-runtime/runtime/services/device/camera-service.js.map +1 -1
  382. app-rn-runtime/runtime/services/device/contacts-service.js.map +1 -1
  383. app-rn-runtime/runtime/services/device/location-service.js.map +1 -1
  384. app-rn-runtime/runtime/services/device/permissions.js.map +1 -1
  385. app-rn-runtime/runtime/services/device/scan-service.js.map +1 -1
  386. app-rn-runtime/runtime/services/partial.service.js.map +1 -1
  387. app-rn-runtime/runtime/services/webprocess.service.js.map +1 -1
  388. app-rn-runtime/runtime/watcher.js.map +1 -1
  389. app-rn-runtime/styles/MediaQueryList.js.map +1 -1
  390. app-rn-runtime/styles/background.component.js +51 -12
  391. app-rn-runtime/styles/background.component.js.map +1 -1
  392. app-rn-runtime/styles/style-prop.validator.js +4 -0
  393. app-rn-runtime/styles/style-prop.validator.js.map +1 -1
  394. app-rn-runtime/styles/style-props.js.map +1 -1
  395. app-rn-runtime/styles/theme.js +8 -3
  396. app-rn-runtime/styles/theme.js.map +1 -1
  397. app-rn-runtime/styles/theme.variables.js +53 -1
  398. app-rn-runtime/styles/theme.variables.js.map +1 -1
  399. app-rn-runtime/variables/base-variable.js +3 -3
  400. app-rn-runtime/variables/base-variable.js.map +1 -1
  401. app-rn-runtime/variables/device/calendar/create-event.operation.js.map +1 -1
  402. app-rn-runtime/variables/device/calendar/delete-event.operation.js.map +1 -1
  403. app-rn-runtime/variables/device/calendar/get-events.operation.js.map +1 -1
  404. app-rn-runtime/variables/device/camera/capture-image.operation.js.map +1 -1
  405. app-rn-runtime/variables/device/camera/capture-video.operation.js.map +1 -1
  406. app-rn-runtime/variables/device/contacts/get-contacts.operation.js.map +1 -1
  407. app-rn-runtime/variables/device/device/app-info.operation.js.map +1 -1
  408. app-rn-runtime/variables/device/device/current-geo-position.operation.js.map +1 -1
  409. app-rn-runtime/variables/device/device/device-info.operation.js.map +1 -1
  410. app-rn-runtime/variables/device/device/network-info.operation.js.map +1 -1
  411. app-rn-runtime/variables/device/device/vibrate.operation.js.map +1 -1
  412. app-rn-runtime/variables/device/file/upload-file.operation.js.map +1 -1
  413. app-rn-runtime/variables/device/operation.provider.js.map +1 -1
  414. app-rn-runtime/variables/device/scan/scan.operation.js.map +1 -1
  415. app-rn-runtime/variables/device-variable.js.map +1 -1
  416. app-rn-runtime/variables/http.service.js +1 -1
  417. app-rn-runtime/variables/http.service.js.map +1 -1
  418. app-rn-runtime/variables/model-variable.js.map +1 -1
  419. app-rn-runtime/variables/service-variable.js +8 -3
  420. app-rn-runtime/variables/service-variable.js.map +1 -1
  421. app-rn-runtime/variables/utils/dataset-util.js.map +1 -1
  422. app-rn-runtime/variables/utils/inflight-queue.js.map +1 -1
  423. app-rn-runtime/variables/utils/variable.utils.js.map +1 -1
@@ -1 +1 @@
1
- {"version":3,"names":["assign","isUndefined","React","Animatable","ThemeVariables","StyleProps","getStyleName","BackgroundComponent","ROOT_LOGGER","deepCopy","BASE_THEME","ThemeConsumer","ThemeEvent","EventNotifier","PropsProvider","assignIn","HideMode","AssetConsumer","FixedView","WIDGET_LOGGER","extend","ParentContext","createContext","BaseComponentState","undefined","defineStyles","styles","text","fontFamily","INSTANCE","baseFont","BaseProps","BaseComponent","Component","constructor","markupProps","defaultClass","defaultProps","defaultState","ADD_TO_DOM","state","propertyProvider","name","$new","$old","debug","props","initialized","styleName","styleOverrides","onPropertyChange","get","check","proxy","Proxy","target","prop","receiver","propName","toString","has","Reflect","set","value","updateState","cleanup","push","updateStateTimeouts","forEach","v","clearTimeout","theme","subscribe","CHANGE","forceUpdate","destroyParentListeners","event","fn","notifier","animate","setState","animationId","Date","now","animatableProps","setProp","setPropDefault","setDefault","cleanRefresh","getDefaultStyles","getStyle","reset","newPartialState","callback","destroyed","stateFn","oldState","oldProps","newState","Object","keys","k","onUpdateState","listener","onComponentChange","timeoutId","setTimeout","splice","indexOf","shouldComponentUpdate","nextProps","nextState","nextContext","key","componentDidMount","onComponentInit","componentWillAttach","isFixed","hide","componentWillDetach","componentWillUnmount","onComponentDestroy","f","notify","invokeEventCallback","eventName","args","callBack","map","a","apply","e","console","error","isVisible","show","refresh","renderSkeleton","parentListenerDestroyers","setParent","parent","copyStyles","property","from","to","renderFixedContainer","style","rootStyle","left","top","bottom","right","width","height","root","mergeStyle","addAnimation","renderWidget","n","setBackground","bgStyle","_background","backgroundImage","backgroundPosition","backgroundSize","backgroundRepeat","backgroundResizeMode","borderRadius","render","info","hideMode","DONOT_ADD_TO_DOM","loadAsset","_showSkeleton","showskeleton","disabled","classname","showindevice","d","join","hasOwnProperty","backgroundColor","eleToRender","position"],"sources":["base.component.tsx"],"sourcesContent":["import { assign, isEqual, isUndefined } from 'lodash';\nimport React, { ReactNode } from 'react';\nimport { TextStyle, ViewStyle } from 'react-native';\nimport { AnimatableProperties } from 'react-native-animatable';\nimport * as Animatable from 'react-native-animatable';\nimport ThemeVariables from '@wavemaker/app-rn-runtime/styles/theme.variables';\nimport { StyleProps, getStyleName } from '@wavemaker/app-rn-runtime/styles/style-props';\nimport { BackgroundComponent } from '@wavemaker/app-rn-runtime/styles/background.component';\nimport { ROOT_LOGGER } from '@wavemaker/app-rn-runtime/core/logger';\nimport { deepCopy } from '@wavemaker/app-rn-runtime/core/utils';\nimport BASE_THEME, { NamedStyles, AllStyle, ThemeConsumer, ThemeEvent } from '../styles/theme';\nimport EventNotifier from './event-notifier';\nimport { PropsProvider } from './props.provider';\nimport { assignIn } from 'lodash-es';\nimport { HideMode } from './if.component';\nimport { AssetConsumer } from './asset.provider';\nimport { FixedView } from './fixed-view.component';\n\nexport const WIDGET_LOGGER = ROOT_LOGGER.extend('widget');\n\nexport const ParentContext = React.createContext(null as any);\n\nexport class BaseComponentState<T extends BaseProps> {\n public animationId?: number = 0;\n public animatableProps?: AnimatableProperties<ViewStyle> = undefined;\n public props = {} as T;\n public hide? = false;\n}\n\nexport type BaseStyles = NamedStyles<any> & {\n root: AllStyle,\n text: TextStyle\n}\n\nexport function defineStyles<T>(styles: T): T {\n return deepCopy({\n text: {\n fontFamily: ThemeVariables.INSTANCE.baseFont\n }\n }, styles);\n}\n\nexport interface LifecycleListener {\n onComponentChange?: (c: BaseComponent<any, any, any>) => void;\n onComponentInit?: (c: BaseComponent<any, any, any>) => void;\n onComponentDestroy?: (c: BaseComponent<any, any, any>) => void;\n}\n\nexport class BaseProps extends StyleProps {\n id?: string = null as any;\n name?: string = null as any;\n key?: any = null as any;\n disabled? = false;\n show? = true as Boolean | String | Number;\n styles?: any = null;\n classname?: string = null as any;\n listener?: LifecycleListener = null as any;\n showindevice?: ('xs'|'sm'|'md'|'lg'|'xl'|'xxl')[] = null as any;\n showskeleton?: boolean = false;\n}\n\nexport abstract class BaseComponent<T extends BaseProps, S extends BaseComponentState<T>, L extends BaseStyles> extends React.Component<T, S> {\n public styles: L = null as any;\n public hideMode = HideMode.ADD_TO_DOM;\n private propertyProvider: PropsProvider<T>;\n public proxy: BaseComponent<T, S, L>;\n public initialized = false;\n public cleanup = [] as Function[];\n public theme = BASE_THEME;\n public updateStateTimeouts= [] as NodeJS.Timeout[];\n public parent: BaseComponent<any, any, any> = null as any;\n public destroyed = false;\n public _showSkeleton = false;\n public isFixed = false;\n private notifier = new EventNotifier();\n private parentListenerDestroyers = [] as Function[];\n public _background = <></>;\n private styleOverrides = {} as any;\n public loadAsset: (path: string) => number | string = null as any;\n\n constructor(markupProps: T, public defaultClass: string, defaultProps?: T, defaultState?: S) {\n super(markupProps);\n this.state = (defaultState || {} as S);\n this.propertyProvider = new PropsProvider<T>(\n assign({}, defaultProps),\n assign({}, markupProps),\n (name: string, $new: any, $old: any) => {\n WIDGET_LOGGER.debug(() => `${this.props.name ?? this.constructor.name}: ${name} changed from ${$old} to ${$new}`);\n if (this.initialized) {\n const styleName = getStyleName(name);\n if (styleName) {\n if ($new === undefined) {\n delete this.styleOverrides[styleName];\n } else {\n this.styleOverrides[styleName] = $new;\n }\n }\n }\n this.onPropertyChange(name, $new, $old);\n });\n //@ts-ignore\n this.state.props =this.propertyProvider.get();\n this.propertyProvider.check();\n //@ts-ignore\n this.proxy = (new Proxy(this, {\n get: (target, prop, receiver): any => {\n const propName = prop.toString();\n if (this.propertyProvider.has(propName)) {\n //@ts-ignore\n return this.state.props[propName];\n }\n return Reflect.get(target, prop, receiver);\n },\n set: (target: any, prop, value: any): any => {\n const propName = prop.toString();\n if (this.propertyProvider.has(propName)) {\n // @ts-ignore\n const props = {} as any;\n props[propName] = value;\n this.updateState({\n props: props\n } as S);\n return true;\n } else {\n return Reflect.set(target, prop, value);\n }\n }\n }));\n this.cleanup.push(() => {\n this.updateStateTimeouts.forEach(v => clearTimeout(v));\n });\n this.cleanup.push(this.theme.subscribe(ThemeEvent.CHANGE, () => {\n this.forceUpdate();\n }));\n this.cleanup.push(() => {\n this.destroyParentListeners();\n });\n }\n\n public subscribe(event: string, fn: Function) {\n return this.notifier.subscribe(event, fn);\n }\n\n public animate(props: AnimatableProperties<ViewStyle>) {\n this.setState({\n animationId: Date.now(),\n animatableProps: props\n });\n }\n\n setProp(propName: string, value: any) {\n this.propertyProvider.set(propName, value);\n this.updateState({props:{}} as S);\n }\n\n setPropDefault(propName: string, value: any) {\n this.propertyProvider.setDefault(propName, value);\n }\n\n onPropertyChange(name: string, $new: any, $old: any) {\n switch(name) {\n case 'showskeleton': {\n if (this.initialized) {\n this.cleanRefresh();\n }\n }\n }\n }\n\n getDefaultStyles() {\n return this.theme.getStyle(this.defaultClass);\n }\n\n reset() {\n\n }\n\n updateState(newPartialState: S, callback?: ()=>void) {\n if (this.destroyed) {\n return;\n }\n const stateFn = (oldState: S) => {\n const oldProps = oldState.props;\n const newState = this.initialized ? assignIn({}, oldState, newPartialState) : assignIn(oldState, newPartialState);\n if (newPartialState.props) {\n Object.keys(newPartialState.props).forEach((k) => {\n //@ts-ignore\n oldProps[k] = newState.props[k];\n });\n newState.props = oldProps;\n }\n return newState;\n };\n const onUpdateState = () => {\n callback && callback();\n this.props.listener?.onComponentChange\n && this.props.listener?.onComponentChange(this);\n }\n if (!this.initialized) {\n this.state = stateFn(this.state);\n onUpdateState();\n } else {\n const timeoutId = setTimeout(() => {\n this.setState(stateFn, onUpdateState);\n this.updateStateTimeouts.splice(this.updateStateTimeouts.indexOf(timeoutId), 1);\n });\n this.updateStateTimeouts.push(timeoutId);\n }\n }\n\n shouldComponentUpdate(nextProps: T, nextState: S, nextContext: any) {\n if (this.propertyProvider.check(nextProps)) {\n return true;\n }\n for(let key in nextState) {\n if(key !== 'props' && (!(key in this.state) || nextState[key] !== this.state[key])) {\n return true;\n }\n }\n\n for(let key in this.state) {\n if(key !== 'props' && (!(key in nextState) || this.state[key] !== nextState[key])) {\n return true;\n }\n }\n return false;\n }\n\n componentDidMount() {\n if (this.props.listener && this.props.listener.onComponentInit) {\n this.props.listener.onComponentInit(this.proxy);\n }\n this.initialized = true;\n }\n\n componentWillAttach() {\n if (this.isFixed) {\n this.setState({hide: false});\n }\n }\n\n componentWillDetach() {\n if (this.isFixed) {\n this.setState({hide: true});\n }\n }\n\n componentWillUnmount() {\n this.destroyed = true;\n if (this.props.listener && this.props.listener.onComponentDestroy) {\n this.props.listener.onComponentDestroy(this.proxy);\n }\n this.cleanup.forEach(f => f && f());\n this.notifier.notify('destroy', []);\n }\n\n invokeEventCallback(eventName: string, args: any[]) {\n //@ts-ignore\n const callBack: Function = this.props[eventName];\n args = args && args.map(a => (a === this) ? this.proxy : a)\n if (callBack) {\n try {\n return callBack.apply(this.proxy, args);\n } catch(e) {\n console.error(e);\n }\n }\n }\n\n isVisible() {\n const show = this.state.props.show;\n return show !== false && show !== 'false' && show !== '0' && show !== null;\n }\n\n protected abstract renderWidget(props: T): ReactNode;\n\n public refresh() {\n this.forceUpdate();\n }\n\n public cleanRefresh() {\n this.forceUpdate(() => this.notifier.notify('forceUpdate', []));\n }\n \n public renderSkeleton (props: T): ReactNode {\n return null;\n }\n\n public destroyParentListeners() {\n this.parentListenerDestroyers.map(fn => fn());\n }\n\n private setParent(parent: BaseComponent<any, any, any>) {\n if (parent && this.parent !== parent) {\n this.parent = parent;\n this.parentListenerDestroyers = [\n this.parent.subscribe('forceUpdate', () => {\n this.cleanRefresh();\n }),\n this.parent.subscribe('destroy', () => {\n this.destroyParentListeners();\n })\n ];\n }\n }\n\n copyStyles(property: string, from: any, to: any) {\n if (!isUndefined(from[property])) {\n to[property] = from[property];\n }\n }\n\n renderFixedContainer(props: T) {\n const style = {} as ViewStyle;\n const rootStyle = {\n left: 0,\n top: 0,\n bottom: 0,\n right: 0,\n width: \"100%\",\n height: \"100%\"\n } as ViewStyle;\n this.copyStyles('left', this.styles.root, style);\n this.copyStyles('top', this.styles.root, style);\n this.copyStyles('right', this.styles.root, style);\n this.copyStyles('bottom', this.styles.root, style);\n this.copyStyles('width', this.styles.root, style);\n this.copyStyles('height', this.styles.root, style);\n this.styles = this.theme.mergeStyle(this.styles, {root: rootStyle});\n return (<FixedView style={style} theme={this.theme}>{this.addAnimation(this.renderWidget(props))}</FixedView>);\n }\n\n private addAnimation(n: ReactNode) {\n if (!this.state.animatableProps) {\n return n;\n }\n return (<Animatable.View key={this.state.animationId} {...this.state.animatableProps}>{n}</Animatable.View>);\n }\n \n private setBackground() {\n const bgStyle = this.styles.root as any;\n this._background = (\n <BackgroundComponent \n image={bgStyle.backgroundImage}\n position={bgStyle.backgroundPosition}\n size={bgStyle.backgroundSize}\n repeat={bgStyle.backgroundRepeat}\n resizeMode={bgStyle.backgroundResizeMode}\n style={{borderRadius: this.styles.root.borderRadius}}>\n </BackgroundComponent>\n );\n delete (this.styles.root as any)['backgroundImage'];\n delete (this.styles.root as any)['backgroundPosition'];\n delete (this.styles.root as any)['backgroundResizeMode'];\n delete (this.styles.root as any)['backgroundSize'];\n delete (this.styles.root as any)['backgroundRepeat'];\n }\n \n public render(): ReactNode {\n WIDGET_LOGGER.info(() => `${this.props.name ?? this.constructor.name} is rendering.`);\n const props = this.state.props;\n if (this.state.hide || (!this.isVisible() && this.hideMode === HideMode.DONOT_ADD_TO_DOM)) {\n return null;\n }\n this.isFixed = false;\n return (<AssetConsumer>\n {(loadAsset) => {\n this.loadAsset = loadAsset;\n return (<ParentContext.Consumer>\n {(parent) => {\n this.setParent(parent);\n this._showSkeleton = this.parent?._showSkeleton || !!this.state.props.showskeleton;\n return (\n <ParentContext.Provider value={this}>\n <ThemeConsumer>\n {(theme) => {\n this.theme = theme || BASE_THEME;\n this.styles = this.theme.mergeStyle(\n this.getDefaultStyles(),\n props.disabled ? this.theme.getStyle(this.defaultClass + '-disabled') : null,\n props.classname && this.theme.getStyle(props.classname),\n props.showindevice && this.theme.getStyle('d-all-none ' + props.showindevice.map(d => `d-${d}-flex`).join(' ')),\n this.props.styles,\n {\n root: this.styleOverrides,\n text: this.styleOverrides\n });\n if (this.styles.root.hasOwnProperty('_background')) {\n delete this.styles.root.backgroundColor;\n }\n if (!this.isVisible()) {\n assign(this.styles, this.theme.getStyle('hidden'))\n }\n let eleToRender = (this._showSkeleton && this.renderSkeleton(props));\n if (eleToRender) {\n return eleToRender;\n }\n this.setBackground();\n this.isFixed = (this.styles.root.position as any) === 'fixed';\n if (this.isFixed) {\n this.styles.root.position = undefined;\n return this.renderFixedContainer(props);\n }\n return this.addAnimation(this.renderWidget(this.state.props));\n }}\n </ThemeConsumer>\n </ParentContext.Provider>);\n }}\n </ParentContext.Consumer>);\n }}\n </AssetConsumer>);\n }\n}\n"],"mappings":";;;;AAAA,SAASA,MAAM,EAAWC,WAAW,QAAQ,QAAQ;AACrD,OAAOC,KAAK,MAAqB,OAAO;AAGxC,OAAO,KAAKC,UAAU,MAAM,yBAAyB;AACrD,OAAOC,cAAc,MAAM,kDAAkD;AAC7E,SAASC,UAAU,EAAEC,YAAY,QAAQ,8CAA8C;AACvF,SAASC,mBAAmB,QAAQ,uDAAuD;AAC3F,SAASC,WAAW,QAAQ,uCAAuC;AACnE,SAASC,QAAQ,QAAQ,sCAAsC;AAC/D,OAAOC,UAAU,IAA2BC,aAAa,EAAEC,UAAU,QAAQ,iBAAiB;AAC9F,OAAOC,aAAa,MAAM,kBAAkB;AAC5C,SAASC,aAAa,QAAQ,kBAA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,IAAI,IAAI,CAAClE,OAAO,EAAE;YACd,IAAI,CAAC3F,MAAM,CAACgI,IAAI,CAAC6B,QAAQ,GAAI/J,SAAS;YACtC,OAAO,IAAI,CAACyH,oBAAoB,CAACnG,KAAK,CAAC;UAC3C;UACA,OAAO,IAAI,CAAC8G,YAAY,CAAC,IAAI,CAACC,YAAY,CAAC,IAAI,CAACrH,KAAK,CAACM,KAAK,CAAC,CAAC;QACjE,CAAC,CACW,CACK;MAC7B,CAAC,CACoB;IAC7B,CAAC,CACe;EACpB;AACJ"}
1
+ {"version":3,"names":["assign","isUndefined","React","Animatable","ThemeVariables","StyleProps","getStyleName","BackgroundComponent","injector","ROOT_LOGGER","deepCopy","BASE_THEME","ThemeConsumer","ThemeEvent","EventNotifier","PropsProvider","assignIn","HideMode","AssetConsumer","FixedView","WIDGET_LOGGER","extend","ParentContext","createContext","BaseComponentState","constructor","_defineProperty","undefined","defineStyles","styles","text","fontFamily","INSTANCE","baseFont","userSelect","BaseProps","arguments","BaseComponent","Component","markupProps","defaultClass","defaultProps","defaultState","ADD_TO_DOM","createElement","Fragment","I18nService","get","state","propertyProvider","name","$new","$old","debug","props","initialized","styleName","styleOverrides","cleanRefresh","onPropertyChange","check","proxy","Proxy","target","prop","receiver","propName","toString","has","Reflect","set","value","updateState","cleanup","push","updateStateTimeouts","forEach","v","clearTimeout","theme","subscribe","CHANGE","forceUpdate","destroyParentListeners","event","fn","notifier","isRTL","i18nService","isRTLLocale","animate","setState","animationId","Date","now","animatableProps","setProp","setPropDefault","setDefault","getDefaultStyles","getStyle","reset","newPartialState","callback","destroyed","stateFn","oldState","oldProps","newState","Object","keys","k","onUpdateState","_this$props$listener","_this$props$listener2","listener","onComponentChange","timeoutId","setTimeout","splice","indexOf","shouldComponentUpdate","nextProps","nextState","nextContext","key","componentDidMount","onComponentInit","componentWillAttach","isFixed","hide","componentWillDetach","componentWillUnmount","onComponentDestroy","f","notify","componentDidUpdate","prevProps","prevState","snapshot","invokeEventCallback","eventName","args","callBack","map","a","apply","e","console","error","isVisible","show","refresh","renderSkeleton","parentListenerDestroyers","setParent","parent","copyStyles","property","from","to","renderFixedContainer","style","rootStyle","left","top","bottom","right","width","height","root","mergeStyle","addAnimation","renderWidget","n","View","_extends","setBackground","bgStyle","_background","image","backgroundImage","position","backgroundPosition","size","backgroundSize","repeat","backgroundRepeat","resizeMode","backgroundResizeMode","borderRadius","render","hideMode","DONOT_ADD_TO_DOM","loadAsset","Consumer","_this$parent","_showSkeleton","showskeleton","Provider","info","disabled","classname","showindevice","d","join","hasOwnProperty","backgroundColor","eleToRender"],"sources":["base.component.tsx"],"sourcesContent":["import { assign, isEqual, isUndefined } from 'lodash';\nimport React, { ReactNode } from 'react';\nimport { I18nManager, Platform, TextStyle, ViewStyle } from 'react-native';\nimport { AnimatableProperties } from 'react-native-animatable';\nimport * as Animatable from 'react-native-animatable';\nimport ThemeVariables from '@wavemaker/app-rn-runtime/styles/theme.variables';\nimport { StyleProps, getStyleName } from '@wavemaker/app-rn-runtime/styles/style-props';\nimport { BackgroundComponent } from '@wavemaker/app-rn-runtime/styles/background.component';\nimport injector from '@wavemaker/app-rn-runtime/core/injector';\nimport { ROOT_LOGGER } from '@wavemaker/app-rn-runtime/core/logger';\nimport { deepCopy } from '@wavemaker/app-rn-runtime/core/utils';\nimport BASE_THEME, { NamedStyles, AllStyle, ThemeConsumer, ThemeEvent } from '../styles/theme';\nimport EventNotifier from './event-notifier';\nimport { PropsProvider } from './props.provider';\nimport { assignIn } from 'lodash-es';\nimport { HideMode } from './if.component';\nimport { AssetConsumer } from './asset.provider';\nimport { FixedView } from './fixed-view.component';\n\nexport const WIDGET_LOGGER = ROOT_LOGGER.extend('widget');\n\nexport const ParentContext = React.createContext(null as any);\n\nexport class BaseComponentState<T extends BaseProps> {\n public animationId?: number = 0;\n public animatableProps?: AnimatableProperties<ViewStyle> = undefined;\n public props = {} as T;\n public hide? = false;\n}\n\nexport type BaseStyles = NamedStyles<any> & {\n root: AllStyle,\n text: TextStyle & {userSelect?: 'none'| 'text'}\n}\n\nexport function defineStyles<T>(styles: T): T {\n return deepCopy({\n text: {\n fontFamily: ThemeVariables.INSTANCE.baseFont,\n userSelect: 'text'\n }\n }, styles);\n}\n\nexport interface LifecycleListener {\n onComponentChange?: (c: BaseComponent<any, any, any>) => void;\n onComponentInit?: (c: BaseComponent<any, any, any>) => void;\n onComponentDestroy?: (c: BaseComponent<any, any, any>) => void;\n}\n\nexport class BaseProps extends StyleProps {\n id?: string = null as any;\n name?: string = null as any;\n key?: any = null as any;\n disabled? = false;\n show? = true as Boolean | String | Number;\n styles?: any = null;\n classname?: string = null as any;\n listener?: LifecycleListener = null as any;\n showindevice?: ('xs'|'sm'|'md'|'lg'|'xl'|'xxl')[] = null as any;\n showskeleton?: boolean = false;\n}\n\nexport abstract class BaseComponent<T extends BaseProps, S extends BaseComponentState<T>, L extends BaseStyles> extends React.Component<T, S> {\n public styles: L = null as any;\n public hideMode = HideMode.ADD_TO_DOM;\n private propertyProvider: PropsProvider<T>;\n public proxy: BaseComponent<T, S, L>;\n public initialized = false;\n public cleanup = [] as Function[];\n public theme = BASE_THEME;\n public updateStateTimeouts= [] as NodeJS.Timeout[];\n public parent: BaseComponent<any, any, any> = null as any;\n public destroyed = false;\n public _showSkeleton = false;\n public isFixed = false;\n private notifier = new EventNotifier();\n private parentListenerDestroyers = [] as Function[];\n public _background = <></>;\n private styleOverrides = {} as any;\n public loadAsset: (path: string) => number | string = null as any;\n private i18nService = injector.I18nService.get();\n\n constructor(markupProps: T, public defaultClass: string, defaultProps?: T, defaultState?: S) {\n super(markupProps);\n this.state = (defaultState || {} as S);\n this.propertyProvider = new PropsProvider<T>(\n assign({}, defaultProps),\n assign({}, markupProps),\n (name: string, $new: any, $old: any) => {\n WIDGET_LOGGER.debug(() => `${this.props.name || this.constructor.name}: ${name} changed from ${$old} to ${$new}`);\n if (this.initialized) {\n const styleName = getStyleName(name);\n if (styleName) {\n if ($new === undefined) {\n delete this.styleOverrides[styleName];\n } else {\n this.styleOverrides[styleName] = $new;\n }\n }\n }\n if (name === 'showskeleton' && this.initialized) {\n this.cleanRefresh();\n }\n this.onPropertyChange(name, $new, $old);\n });\n //@ts-ignore\n this.state.props =this.propertyProvider.get();\n this.propertyProvider.check();\n //@ts-ignore\n this.proxy = (new Proxy(this, {\n get: (target, prop, receiver): any => {\n const propName = prop.toString();\n if (this.propertyProvider.has(propName)) {\n //@ts-ignore\n return this.state.props[propName];\n }\n return Reflect.get(target, prop, receiver);\n },\n set: (target: any, prop, value: any): any => {\n const propName = prop.toString();\n if (this.propertyProvider.has(propName)) {\n // @ts-ignore\n const props = {} as any;\n props[propName] = value;\n this.updateState({\n props: props\n } as S);\n return true;\n } else {\n return Reflect.set(target, prop, value);\n }\n }\n }));\n this.cleanup.push(() => {\n this.updateStateTimeouts.forEach(v => clearTimeout(v));\n });\n this.cleanup.push(this.theme.subscribe(ThemeEvent.CHANGE, () => {\n this.forceUpdate();\n }));\n this.cleanup.push(() => {\n this.destroyParentListeners();\n });\n }\n\n public subscribe(event: string, fn: Function) {\n return this.notifier.subscribe(event, fn);\n }\n\n public get isRTL(){\n return this.i18nService.isRTLLocale();\n }\n\n public animate(props: AnimatableProperties<ViewStyle>) {\n this.setState({\n animationId: Date.now(),\n animatableProps: props\n });\n }\n\n setProp(propName: string, value: any) {\n this.propertyProvider.set(propName, value);\n this.updateState({props:{}} as S);\n }\n\n setPropDefault(propName: string, value: any) {\n this.propertyProvider.setDefault(propName, value);\n }\n \n onPropertyChange(name: string, $new: any, $old: any) { \n }\n \n getDefaultStyles() {\n return this.theme.getStyle(this.defaultClass);\n }\n\n reset() {\n\n }\n\n updateState(newPartialState: S, callback?: ()=>void) {\n if (this.destroyed) {\n return;\n }\n const stateFn = (oldState: S) => {\n const oldProps = oldState.props;\n const newState = this.initialized ? assignIn({}, oldState, newPartialState) : assignIn(oldState, newPartialState);\n if (newPartialState.props) {\n Object.keys(newPartialState.props).forEach((k) => {\n //@ts-ignore\n oldProps[k] = newState.props[k];\n });\n newState.props = oldProps;\n }\n return newState;\n };\n const onUpdateState = () => {\n callback && callback();\n this.props.listener?.onComponentChange\n && this.props.listener?.onComponentChange(this);\n }\n if (!this.initialized) {\n this.state = stateFn(this.state);\n onUpdateState();\n } else {\n const timeoutId = setTimeout(() => {\n this.setState(stateFn, onUpdateState);\n this.updateStateTimeouts.splice(this.updateStateTimeouts.indexOf(timeoutId), 1);\n });\n this.updateStateTimeouts.push(timeoutId);\n }\n }\n\n shouldComponentUpdate(nextProps: T, nextState: S, nextContext: any) {\n if (this.propertyProvider.check(nextProps)) {\n return true;\n }\n for(let key in nextState) {\n if(key !== 'props' && (!(key in this.state) || nextState[key] !== this.state[key])) {\n return true;\n }\n }\n\n for(let key in this.state) {\n if(key !== 'props' && (!(key in nextState) || this.state[key] !== nextState[key])) {\n return true;\n }\n }\n return false;\n }\n\n componentDidMount() {\n if (this.props.listener && this.props.listener.onComponentInit) {\n this.props.listener.onComponentInit(this.proxy);\n }\n this.initialized = true;\n }\n\n componentWillAttach() {\n if (this.isFixed) {\n this.setState({hide: false});\n }\n }\n\n componentWillDetach() {\n if (this.isFixed) {\n this.setState({hide: true});\n }\n }\n\n componentWillUnmount() {\n this.destroyed = true;\n if (this.props.listener && this.props.listener.onComponentDestroy) {\n this.props.listener.onComponentDestroy(this.proxy);\n }\n this.cleanup.forEach(f => f && f());\n this.notifier.notify('destroy', []);\n }\n \n componentDidUpdate(prevProps: Readonly<T>, prevState: Readonly<S>, snapshot?: any): void {\n if (this.propertyProvider.check(this.props)) {\n this.forceUpdate();\n }\n }\n\n invokeEventCallback(eventName: string, args: any[]) {\n //@ts-ignore\n const callBack: Function = this.props[eventName];\n args = args && args.map(a => (a === this) ? this.proxy : a)\n if (callBack) {\n try {\n return callBack.apply(this.proxy, args);\n } catch(e) {\n console.error(e);\n }\n }\n }\n\n isVisible() {\n const show = this.state.props.show;\n return show !== false && show !== 'false' && show !== '0' && show !== null;\n }\n\n protected abstract renderWidget(props: T): ReactNode;\n\n public refresh() {\n this.forceUpdate();\n }\n\n public cleanRefresh() {\n this.forceUpdate(() => this.notifier.notify('forceUpdate', []));\n }\n \n public renderSkeleton (props: T): ReactNode {\n return null;\n }\n\n public destroyParentListeners() {\n this.parentListenerDestroyers.map(fn => fn());\n }\n\n private setParent(parent: BaseComponent<any, any, any>) {\n if (parent && this.parent !== parent) {\n this.parent = parent;\n this.parentListenerDestroyers = [\n this.parent.subscribe('forceUpdate', () => {\n this.cleanRefresh();\n }),\n this.parent.subscribe('destroy', () => {\n this.destroyParentListeners();\n })\n ];\n }\n }\n\n copyStyles(property: string, from: any, to: any) {\n if (!isUndefined(from[property])) {\n to[property] = from[property];\n }\n }\n\n renderFixedContainer(props: T) {\n const style = {} as ViewStyle;\n const rootStyle = {\n left: 0,\n top: 0,\n bottom: 0,\n right: 0,\n width: \"100%\",\n height: \"100%\"\n } as ViewStyle;\n this.copyStyles('left', this.styles.root, style);\n this.copyStyles('top', this.styles.root, style);\n this.copyStyles('right', this.styles.root, style);\n this.copyStyles('bottom', this.styles.root, style);\n this.copyStyles('width', this.styles.root, style);\n this.copyStyles('height', this.styles.root, style);\n this.styles = this.theme.mergeStyle(this.styles, {root: rootStyle});\n return (<FixedView style={style} theme={this.theme}>{this.addAnimation(this.renderWidget(props))}</FixedView>);\n }\n\n private addAnimation(n: ReactNode) {\n if (!this.state.animatableProps) {\n return n;\n }\n return (<Animatable.View key={this.state.animationId} {...this.state.animatableProps}>{n}</Animatable.View>);\n }\n \n private setBackground() {\n const bgStyle = this.styles.root as any;\n this._background = (\n <BackgroundComponent \n image={bgStyle.backgroundImage}\n position={bgStyle.backgroundPosition}\n size={bgStyle.backgroundSize}\n repeat={bgStyle.backgroundRepeat}\n resizeMode={bgStyle.backgroundResizeMode}\n style={{borderRadius: this.styles.root.borderRadius}}>\n </BackgroundComponent>\n );\n delete (this.styles.root as any)['backgroundImage'];\n delete (this.styles.root as any)['backgroundPosition'];\n delete (this.styles.root as any)['backgroundResizeMode'];\n delete (this.styles.root as any)['backgroundSize'];\n delete (this.styles.root as any)['backgroundRepeat'];\n }\n \n public render(): ReactNode {\n const props = this.state.props;\n if (this.state.hide || (!this.isVisible() && this.hideMode === HideMode.DONOT_ADD_TO_DOM)) {\n return null;\n }\n this.isFixed = false;\n return (<AssetConsumer>\n {(loadAsset) => {\n this.loadAsset = loadAsset;\n return (<ParentContext.Consumer>\n {(parent) => {\n this.setParent(parent);\n this._showSkeleton = this.parent?._showSkeleton || !!this.state.props.showskeleton;\n return (\n <ParentContext.Provider value={this}>\n <ThemeConsumer>\n {(theme) => {\n WIDGET_LOGGER.info(() => `${this.props.name || this.constructor.name} is rendering.`);\n this.theme = theme || BASE_THEME;\n this.styles = this.theme.mergeStyle(\n this.getDefaultStyles(),\n props.disabled ? this.theme.getStyle(this.defaultClass + '-disabled') : null,\n this.isRTL ? this.theme.getStyle(this.defaultClass + '-rtl') : null,\n props.classname && this.theme.getStyle(props.classname),\n props.showindevice && this.theme.getStyle('d-all-none ' + props.showindevice.map(d => `d-${d}-flex`).join(' ')),\n this.props.styles,\n {\n root: this.styleOverrides,\n text: this.styleOverrides\n });\n if (this.styles.root.hasOwnProperty('_background')) {\n delete this.styles.root.backgroundColor;\n }\n if (!this.isVisible()) {\n assign(this.styles, this.theme.getStyle('hidden'))\n }\n let eleToRender = (this._showSkeleton && this.renderSkeleton(props));\n if (eleToRender) {\n return eleToRender;\n }\n this.setBackground();\n this.isFixed = (this.styles.root.position as any) === 'fixed';\n if (this.isFixed) {\n this.styles.root.position = undefined;\n return this.renderFixedContainer(props);\n }\n return this.addAnimation(this.renderWidget(this.state.props));\n }}\n </ThemeConsumer>\n </ParentContext.Provider>);\n }}\n </ParentContext.Consumer>);\n }}\n </AssetConsumer>);\n }\n}\n"],"mappings":";;;;AAAA,SAASA,MAAM,EAAWC,WAAW,QAAQ,QAAQ;AACrD,OAAOC,KAAK,MAAqB,OAAO;AAGxC,OAAO,KAAKC,UAAU,MAAM,yBAA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I,IAAI,CAACoC,cAAc,CAAC,aAAa,CAAC,EAAE;YAClD,OAAO,IAAI,CAACjL,MAAM,CAAC6I,IAAI,CAACqC,eAAe;UACzC;UACA,IAAI,CAAC,IAAI,CAACzD,SAAS,CAAC,CAAC,EAAE;YACnBtJ,MAAM,CAAC,IAAI,CAAC6B,MAAM,EAAE,IAAI,CAACkD,KAAK,CAACqB,QAAQ,CAAC,QAAQ,CAAC,CAAC;UACtD;UACA,IAAI4G,WAAW,GAAI,IAAI,CAACX,aAAa,IAAI,IAAI,CAAC5C,cAAc,CAACnG,KAAK,CAAE;UACpE,IAAI0J,WAAW,EAAE;YACb,OAAOA,WAAW;UACtB;UACA,IAAI,CAAC/B,aAAa,CAAC,CAAC;UACpB,IAAI,CAAChD,OAAO,GAAI,IAAI,CAACpG,MAAM,CAAC6I,IAAI,CAACY,QAAQ,KAAa,OAAO;UAC7D,IAAI,IAAI,CAACrD,OAAO,EAAE;YACd,IAAI,CAACpG,MAAM,CAAC6I,IAAI,CAACY,QAAQ,GAAI3J,SAAS;YACtC,OAAO,IAAI,CAACsI,oBAAoB,CAAC3G,KAAK,CAAC;UAC3C;UACA,OAAO,IAAI,CAACsH,YAAY,CAAC,IAAI,CAACC,YAAY,CAAC,IAAI,CAAC7H,KAAK,CAACM,KAAK,CAAC,CAAC;QACjE,CACW,CACK,CAAC;MAC7B,CACoB,CAAC;IAC7B,CACe,CAAC;EACpB;AACJ"}
@@ -0,0 +1,37 @@
1
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
+ import React, { useCallback, useRef, useState } from 'react';
3
+ import { Platform, TextInput } from 'react-native';
4
+ export const WMTextInput = /*#__PURE__*/React.forwardRef((props, ref) => {
5
+ const [selectRange, setSelectRange] = useState(null);
6
+ const value = useRef(props.value || '');
7
+ const onSelectionChange = useCallback(e => {
8
+ var _e$nativeEvent;
9
+ if (Platform.OS !== 'android') {
10
+ return;
11
+ }
12
+ const selection = e === null || e === void 0 || (_e$nativeEvent = e.nativeEvent) === null || _e$nativeEvent === void 0 ? void 0 : _e$nativeEvent.selection;
13
+ if (!props.allowContentSelection && selection && selection.end - selection.start > 0) {
14
+ setSelectRange({
15
+ start: value.current.length + 2,
16
+ end: value.current.length + 2
17
+ });
18
+ } else if (selectRange && selectRange.end > 0) {
19
+ setSelectRange(null);
20
+ }
21
+ }, [props.allowContentSelection, value.current]);
22
+ const onChangeText = useCallback(text => {
23
+ value.current = text;
24
+ }, []);
25
+ return /*#__PURE__*/React.createElement(TextInput, _extends({}, props, {
26
+ ref: ref,
27
+ selection: selectRange,
28
+ onSelectionChange: onSelectionChange,
29
+ caretHidden: !!(selectRange !== null && selectRange !== void 0 && selectRange.end),
30
+ onChangeText: text => {
31
+ props.onChangeText && props.onChangeText(text);
32
+ onChangeText(text);
33
+ },
34
+ contextMenuHidden: !props.allowContentSelection
35
+ }));
36
+ });
37
+ //# sourceMappingURL=textinput.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","useCallback","useRef","useState","Platform","TextInput","WMTextInput","forwardRef","props","ref","selectRange","setSelectRange","value","onSelectionChange","e","_e$nativeEvent","OS","selection","nativeEvent","allowContentSelection","end","start","current","length","onChangeText","text","createElement","_extends","caretHidden","contextMenuHidden"],"sources":["textinput.component.tsx"],"sourcesContent":["import React, { ForwardedRef, useCallback, useRef, useState } from 'react';\nimport { Platform, TextInput, TextInputProps } from 'react-native';\n\ninterface SelectRange {\n start: number,\n end: number\n}\n\nexport const WMTextInput = React.forwardRef((props: (TextInputProps & {allowContentSelection: boolean}), ref: ForwardedRef<TextInput>) => {\n const [selectRange, setSelectRange] = useState<SelectRange>(null as any);\n const value = useRef(props.value || '');\n const onSelectionChange = useCallback((e: any) => {\n if (Platform.OS !== 'android') {\n return;\n }\n const selection = e?.nativeEvent?.selection;\n if (!props.allowContentSelection\n && selection\n && selection.end - selection.start > 0) {\n setSelectRange({\n start: value.current.length + 2,\n end: value.current.length + 2\n });\n } else if (selectRange && selectRange.end > 0){\n setSelectRange(null as any);\n }\n }, [props.allowContentSelection, value.current]);\n const onChangeText = useCallback((text: string) => {\n value.current = text;\n }, []);\n return (\n <TextInput \n {...props}\n ref={ref}\n selection={selectRange}\n onSelectionChange={onSelectionChange}\n caretHidden={!!selectRange?.end}\n onChangeText={(text) => {\n props.onChangeText && props.onChangeText(text);\n onChangeText(text);\n }}\n contextMenuHidden={!props.allowContentSelection}> \n </TextInput>\n );\n});"],"mappings":";AAAA,OAAOA,KAAK,IAAkBC,WAAW,EAAEC,MAAM,EAAEC,QAAQ,QAAQ,OAAO;AAC1E,SAASC,QAAQ,EAAEC,SAAS,QAAwB,cAAc;AAOlE,OAAO,MAAMC,WAAW,gBAAGN,KAAK,CAACO,UAAU,CAAC,CAACC,KAA0D,EAAEC,GAA4B,KAAK;EACtI,MAAM,CAACC,WAAW,EAAEC,cAAc,CAAC,GAAGR,QAAQ,CAAc,IAAW,CAAC;EACxE,MAAMS,KAAK,GAAGV,MAAM,CAACM,KAAK,CAACI,KAAK,IAAI,EAAE,CAAC;EACvC,MAAMC,iBAAiB,GAAGZ,WAAW,CAAEa,CAAM,IAAK;IAAA,IAAAC,cAAA;IAC9C,IAAIX,QAAQ,CAACY,EAAE,KAAK,SAAS,EAAE;MAC3B;IACJ;IACA,MAAMC,SAAS,GAAGH,CAAC,aAADA,CAAC,gBAAAC,cAAA,GAADD,CAAC,CAAEI,WAAW,cAAAH,cAAA,uBAAdA,cAAA,CAAgBE,SAAS;IAC3C,IAAI,CAACT,KAAK,CAACW,qBAAqB,IACzBF,SAAS,IACTA,SAAS,CAACG,GAAG,GAAGH,SAAS,CAACI,KAAK,GAAG,CAAC,EAAE;MACxCV,cAAc,CAAC;QACXU,KAAK,EAAET,KAAK,CAACU,OAAO,CAACC,MAAM,GAAG,CAAC;QAC/BH,GAAG,EAAER,KAAK,CAACU,OAAO,CAACC,MAAM,GAAG;MAChC,CAAC,CAAC;IACN,CAAC,MAAM,IAAIb,WAAW,IAAIA,WAAW,CAACU,GAAG,GAAG,CAAC,EAAC;MAC1CT,cAAc,CAAC,IAAW,CAAC;IAC/B;EACJ,CAAC,EAAE,CAACH,KAAK,CAACW,qBAAqB,EAAEP,KAAK,CAACU,OAAO,CAAC,CAAC;EAChD,MAAME,YAAY,GAAGvB,WAAW,CAAEwB,IAAY,IAAK;IAC/Cb,KAAK,CAACU,OAAO,GAAGG,IAAI;EACxB,CAAC,EAAE,EAAE,CAAC;EACN,oBACIzB,KAAA,CAAA0B,aAAA,CAACrB,SAAS,EAAAsB,QAAA,KACFnB,KAAK;IACTC,GAAG,EAAEA,GAAI;IACTQ,SAAS,EAAEP,WAAY;IACvBG,iBAAiB,EAAEA,iBAAkB;IACrCe,WAAW,EAAE,CAAC,EAAClB,WAAW,aAAXA,WAAW,eAAXA,WAAW,CAAEU,GAAG,CAAC;IAChCI,YAAY,EAAGC,IAAI,IAAK;MACpBjB,KAAK,CAACgB,YAAY,IAAIhB,KAAK,CAACgB,YAAY,CAACC,IAAI,CAAC;MAC9CD,YAAY,CAACC,IAAI,CAAC;IACtB,CAAE;IACFI,iBAAiB,EAAE,CAACrB,KAAK,CAACW;EAAsB,EACzC,CAAC;AAEpB,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"names":["React","CameraContext","createContext","CameraProvider","Provider","CameraConsumer","Consumer"],"sources":["camera-service.ts"],"sourcesContent":["import { Input } from '@wavemaker/app-rn-runtime/variables/device/operation.provider';\nimport React from 'react';\n\nexport interface CameraInput extends Input {\n allowImageEdit: boolean;\n imageQuality: number;\n imageEncodingType: string;\n imageTargetWidth: number;\n imageTargetHeight: number;\n}\n\nexport interface CameraService {\n captureImage: (params: CameraInput) => any\n captureVideo: () => any;\n}\nconst CameraContext = React.createContext<CameraService>(null as any);\n\nexport const CameraProvider = CameraContext.Provider;\nexport const CameraConsumer = CameraContext.Consumer;\n"],"mappings":"AACA,OAAOA,KAAK,MAAM,OAAO;AAczB,MAAMC,aAAa,gBAAGD,KAAK,CAACE,aAAa,CAAgB,IAAI,CAAQ;AAErE,OAAO,MAAMC,cAAc,GAAGF,aAAa,CAACG,QAAQ;AACpD,OAAO,MAAMC,cAAc,GAAGJ,aAAa,CAACK,QAAQ"}
1
+ {"version":3,"names":["React","CameraContext","createContext","CameraProvider","Provider","CameraConsumer","Consumer"],"sources":["camera-service.ts"],"sourcesContent":["import { Input } from '@wavemaker/app-rn-runtime/variables/device/operation.provider';\nimport React from 'react';\n\nexport interface CameraInput extends Input {\n allowImageEdit: boolean;\n imageQuality: number;\n imageEncodingType: string;\n imageTargetWidth: number;\n imageTargetHeight: number;\n}\n\nexport interface CameraService {\n captureImage: (params: CameraInput) => any\n captureVideo: () => any;\n}\nconst CameraContext = React.createContext<CameraService>(null as any);\n\nexport const CameraProvider = CameraContext.Provider;\nexport const CameraConsumer = CameraContext.Consumer;\n"],"mappings":"AACA,OAAOA,KAAK,MAAM,OAAO;AAczB,MAAMC,aAAa,gBAAGD,KAAK,CAACE,aAAa,CAAgB,IAAW,CAAC;AAErE,OAAO,MAAMC,cAAc,GAAGF,aAAa,CAACG,QAAQ;AACpD,OAAO,MAAMC,cAAc,GAAGJ,aAAa,CAACK,QAAQ"}
@@ -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,IAAI,CAAQ;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"}
@@ -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,IAAI,CAAQ;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"}
@@ -1 +1 @@
1
- {"version":3,"names":["EventNotifier","notify","event","args","listeners","forEach","l","apply","subscribe","fn","push","eventListeners","i","findIndex","fni","splice"],"sources":["event-notifier.ts"],"sourcesContent":["export default class EventNotifier {\n private listeners = {} as any;\n\n public notify(event: string, args: any[]) {\n if (this.listeners[event]) {\n this.listeners[event].forEach((l: Function) => {\n l && l.apply(null, 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}"],"mappings":";;;AAAA,eAAe,MAAMA,aAAa,CAAC;EAAA;IAAA,mCACX,CAAC,CAAC;EAAA;EAEfC,MAAM,CAACC,KAAa,EAAEC,IAAW,EAAE;IACtC,IAAI,IAAI,CAACC,SAAS,CAACF,KAAK,CAAC,EAAE;MACvB,IAAI,CAACE,SAAS,CAACF,KAAK,CAAC,CAACG,OAAO,CAAEC,CAAW,IAAK;QAC3CA,CAAC,IAAIA,CAAC,CAACC,KAAK,CAAC,IAAI,EAAEJ,IAAI,CAAC;MAC5B,CAAC,CAAC;IACN;EACJ;EAEOK,SAAS,CAACN,KAAa,EAAEO,EAAY,EAAE;IAC1C,IAAI,CAACL,SAAS,CAACF,KAAK,CAAC,GAAG,IAAI,CAACE,SAAS,CAACF,KAAK,CAAC,IAAI,EAAE;IACnD,IAAI,CAACE,SAAS,CAACF,KAAK,CAAC,CAACQ,IAAI,CAACD,EAAE,CAAC;IAC9B,OAAO,MAAM;MACT,MAAME,cAAc,GAAG,IAAI,CAACP,SAAS,CAACF,KAAK,CAAC;MAC5C,MAAMU,CAAC,GAAGD,cAAc,CAACE,SAAS,CAAEC,GAAa,IAAKA,GAAG,KAAKL,EAAE,CAAC;MACjEE,cAAc,CAACI,MAAM,CAACH,CAAC,EAAE,CAAC,CAAC;IAC/B,CAAC;EACL;AACJ"}
1
+ {"version":3,"names":["EventNotifier","constructor","_defineProperty","notify","event","args","listeners","forEach","l","apply","subscribe","fn","push","eventListeners","i","findIndex","fni","splice"],"sources":["event-notifier.ts"],"sourcesContent":["export default class EventNotifier {\n private listeners = {} as any;\n\n public notify(event: string, args: any[]) {\n if (this.listeners[event]) {\n this.listeners[event].forEach((l: Function) => {\n l && l.apply(null, 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}"],"mappings":";;;AAAA,eAAe,MAAMA,aAAa,CAAC;EAAAC,YAAA;IAAAC,eAAA,oBACX,CAAC,CAAC;EAAA;EAEfC,MAAMA,CAACC,KAAa,EAAEC,IAAW,EAAE;IACtC,IAAI,IAAI,CAACC,SAAS,CAACF,KAAK,CAAC,EAAE;MACvB,IAAI,CAACE,SAAS,CAACF,KAAK,CAAC,CAACG,OAAO,CAAEC,CAAW,IAAK;QAC3CA,CAAC,IAAIA,CAAC,CAACC,KAAK,CAAC,IAAI,EAAEJ,IAAI,CAAC;MAC5B,CAAC,CAAC;IACN;EACJ;EAEOK,SAASA,CAACN,KAAa,EAAEO,EAAY,EAAE;IAC1C,IAAI,CAACL,SAAS,CAACF,KAAK,CAAC,GAAG,IAAI,CAACE,SAAS,CAACF,KAAK,CAAC,IAAI,EAAE;IACnD,IAAI,CAACE,SAAS,CAACF,KAAK,CAAC,CAACQ,IAAI,CAACD,EAAE,CAAC;IAC9B,OAAO,MAAM;MACT,MAAME,cAAc,GAAG,IAAI,CAACP,SAAS,CAACF,KAAK,CAAC;MAC5C,MAAMU,CAAC,GAAGD,cAAc,CAACE,SAAS,CAAEC,GAAa,IAAKA,GAAG,KAAKL,EAAE,CAAC;MACjEE,cAAc,CAACI,MAAM,CAACH,CAAC,EAAE,CAAC,CAAC;IAC/B,CAAC;EACL;AACJ"}
@@ -1 +1 @@
1
- {"version":3,"names":["React","View","ThemeProvider","FixedViewContext","createContext","FixedView","Component","constructor","props","counter","componentWillUnmount","container","remove","render","cachedComponent","usememo","show","add","theme","id","position","style","children","Date","now","FixedViewContainer","Map","c","n","set","setTimeout","setState","delete","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,IAAI,CAAQ;AAU7E,OAAO,MAAMC,SAAS,SAASL,KAAK,CAACM,SAAS,CAAiB;EAS3DC,WAAW,CAACC,KAAqB,EAAE;IAC/B,KAAK,CAACA,KAAK,CAAC;IAAC,mCALe,IAAI;IAAA;IAAA,4BAE/BH,SAAS,CAACI,OAAO,EAAE;EAIxB;EAEAC,oBAAoB,GAAG;IACnB,IAAI,CAACC,SAAS,CAACC,MAAM,CAAC,IAAI,CAAC;EAC/B;EAEAC,MAAM,GAAG;IACL,IAAI,CAACC,eAAe,GAAI,IAAI,CAACN,KAAK,CAACO,OAAO,KAAK,IAAI,IAAI,IAAI,CAACD,eAAe,iBAAO,oBAAC,gBAAgB,CAAC,QAAQ,QACtGH,SAAS,IAAK;MACZ,IAAI,CAACA,SAAS,GAAGA,SAAS;MAC1B,IAAI,IAAI,CAACH,KAAK,CAACQ,IAAI,EAAE;QACjBL,SAAS,CAACM,GAAG,CAAC,IAAI,eACd,oBAAC,aAAa;UAAC,KAAK,EAAE,IAAI,CAACT,KA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M,EAAE,CAAC,CACX;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","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 </F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BAAOb,KAAA,CAAAiB,aAAA,CAAAjB,KAAA,CAAA4B,QAAA,MAAI,CAAC;IAChB,CACuB,CAAE;IAC7B,OAAO,IAAI,CAACb,eAAe;EAC/B;AACJ;AAACN,eAAA,CAvCYJ,SAAS,kBACI;EAClBc,IAAI,EAAE;AACV,CAAC;AAAAV,eAAA,CAHQJ,SAAS,aAIDwB,IAAI,CAACC,GAAG,CAAC,CAAC;AAqC/B,OAAO,MAAMC,kBAAkB,SAAS/B,KAAK,CAACM,SAAS,CAAC;EAAAC,YAAA;IAAA,SAAAyB,SAAA;IAAAvB,eAAA,mBACR,IAAIwB,GAAG,CAAC,CAAC;IAAAxB,eAAA,aAChD,CAAC;EAAA;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 +1 @@
1
- {"version":3,"names":["parseInt","moment","CURRENCY_INFO","DateToStringFormatter","format","input","getTime","replace","_moment","isValid","toString","PrependFormatter","prefix","undefined","AppendFormatter","suffix","NumberToStringFormatter","fractionSize","isNaN","toFixed","toLocaleLowerCase","CurrencyFormatter","data","currencySymbol","fracSize","_currencySymbol","symbol","_val","isNegativeNumber","startsWith","TimeFromNowFormatter","timestamp","fromNow","StringToNumberFormatter","Map"],"sources":["formatters.ts"],"sourcesContent":["import { parseInt } from 'lodash';\nimport moment from 'moment';\nimport { CURRENCY_INFO, Currency } from './constants/currency-constants';\n\nexport interface Formatter {\n format: (input: any, ...params: any) => any;\n}\n\nexport class DateToStringFormatter implements Formatter {\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, 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 return isNaN(input) ? '': input.toFixed(fractionSize).toLocaleLowerCase();\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\nexport default new Map<string, Formatter>([\n ['numberToString', new NumberToStringFormatter()],\n ['prefix', new PrependFormatter()],\n ['suffix', new AppendFormatter()],\n ['stringToNumber', new StringToNumberFormatter()],\n ['timeFromNow', new TimeFromNowFormatter()],\n ['toDate', new DateToStringFormatter()],\n ['toCurrency', new CurrencyFormatter()]\n]);"],"mappings":"AAAA,SAASA,QAAQ,QAAQ,QAAQ;AACjC,OAAOC,MAAM,MAAM,QAAQ;AAC3B,SAASC,aAAa,QAAkB,gCAAgC;AAMxE,OAAO,MAAMC,qBAAqB,CAAsB;EAE7CC,MAAM,CAACC,KAAW,EAAED,MAAc,EAAU;IAC/C,IAAI,CAACC,KAAK,EAAE;MACR,OAAO,EAAE;IACb;IACA,IAAID,MAAM,KAAK,WAAW,EAAE;MACxB,OAAOC,KAAK,CAACC,OAAO,EAAE,GAAG,EAAE;IAC/B;IACAF,MAAM,GAAGA,MAAM,CAACG,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC;IAClC,MAAMC,OAAO,GAAGP,MAAM,CAACI,KAAK,EAAE,IAAI,CAAC;IACnC,OAAOG,OAAO,CAACC,OAAO,EAAE,GAAGD,OAAO,CAACJ,MAAM,CAACA,MAAM,CAAC,GAAGC,KAAK,CAACK,QAAQ,EAAE;EACxE;AACJ;AAEA,OAAO,MAAMC,gBAAgB,CAAsB;EAExCP,MAAM,CAACC,KAAU,EAAEO,MAAc,EAAU;IAC9C,OAAO,CAACA,MAAM,IAAI,EAAE,KAAKP,KAAK,KAAK,IAAI,IAAIA,KAAK,IAAIQ,SAAS,GAAGR,KAAK,GAAG,EAAE,CAAC;EAC/E;AACJ;AAEA,OAAO,MAAMS,eAAe,CAAsB;EAEvCV,MAAM,CAACC,KAAU,EAAEU,MAAc,EAAU;IAC9C,OAAO,CAACV,KAAK,KAAK,IAAI,IAAIA,KAAK,IAAIQ,SAAS,GAAGR,KAAK,GAAG,EAAE,KAAKU,MAAM,IAAI,EAAE,CAAC;EAC/E;AACJ;AAEA,OAAO,MAAM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EAClC,CAAC,QAAQ,EAAE,IAAIG,eAAe,EAAE,CAAC,EACjC,CAAC,gBAAgB,EAAE,IAAImB,uBAAuB,EAAE,CAAC,EACjD,CAAC,aAAa,EAAE,IAAIH,oBAAoB,EAAE,CAAC,EAC3C,CAAC,QAAQ,EAAE,IAAI3B,qBAAqB,EAAE,CAAC,EACvC,CAAC,YAAY,EAAE,IAAIkB,iBAAiB,EAAE,CAAC,CAC1C,CAAC"}
1
+ {"version":3,"names":["parseInt","moment","CURRENCY_INFO","DateToStringFormatter","format","input","getTime","replace","_moment","isValid","toString","PrependFormatter","prefix","undefined","AppendFormatter","suffix","NumberToStringFormatter","fractionSize","isNaN","toFixed","toLocaleLowerCase","CurrencyFormatter","data","currencySymbol","fracSize","_currencySymbol","symbol","_val","isNegativeNumber","startsWith","TimeFromNowFormatter","timestamp","fromNow","StringToNumberFormatter","Map"],"sources":["formatters.ts"],"sourcesContent":["import { parseInt } from 'lodash';\nimport moment from 'moment';\nimport { CURRENCY_INFO, Currency } from './constants/currency-constants';\n\nexport interface Formatter {\n format: (input: any, ...params: any) => any;\n}\n\nexport class DateToStringFormatter implements Formatter {\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, 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 return isNaN(input) ? '': input.toFixed(fractionSize).toLocaleLowerCase();\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\nexport default new Map<string, Formatter>([\n ['numberToString', new NumberToStringFormatter()],\n ['prefix', new PrependFormatter()],\n ['suffix', new AppendFormatter()],\n ['stringToNumber', new StringToNumberFormatter()],\n ['timeFromNow', new TimeFromNowFormatter()],\n ['toDate', new DateToStringFormatter()],\n ['toCurrency', new CurrencyFormatter()]\n]);"],"mappings":"AAAA,SAASA,QAAQ,QAAQ,QAAQ;AACjC,OAAOC,MAAM,MAAM,QAAQ;AAC3B,SAASC,aAAa,QAAkB,gCAAgC;AAMxE,OAAO,MAAMC,qBAAqB,CAAsB;EAE7CC,MAAMA,CAACC,KAAW,EAAED,MAAc,EAAU;IAC/C,IAAI,CAACC,KAAK,EAAE;MACR,OAAO,EAAE;IACb;IACA,IAAID,MAAM,KAAK,WAAW,EAAE;MACxB,OAAOC,KAAK,CAACC,OAAO,CAAC,CAAC,GAAG,EAAE;IAC/B;IACAF,MAAM,GAAGA,MAAM,CAACG,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC;IAClC,MAAMC,OAAO,GAAGP,MAAM,CAACI,KAAK,EAAE,IAAI,CAAC;IACnC,OAAOG,OAAO,CAACC,OAAO,CAAC,CAAC,GAAGD,OAAO,CAACJ,MAAM,CAACA,MAAM,CAAC,GAAGC,KAAK,CAACK,QAAQ,CAAC,CAAC;EACxE;AACJ;AAEA,OAAO,MAAMC,gBAAgB,CAAsB;EAExCP,MAAMA,CAACC,KAAU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EAC5C1B,MAAMA,CAAC2B,SAAe,EAAE;IAC3B,OAAOA,SAAS,GAAG9B,MAAM,CAAC8B,SAAS,CAAC,CAACC,OAAO,CAAC,CAAC,GAAGnB,SAAS;EAC9D;AACJ;AAEA,OAAO,MAAMoB,uBAAuB,CAAsB;EAC/C7B,MAAMA,CAACC,KAAa,EAAE;IACzB,OAAOL,QAAQ,CAACK,KAAK,CAAC;EAC1B;AACJ;AAEA,eAAe,IAAI6B,GAAG,CAAoB,CACtC,CAAC,gBAAgB,EAAE,IAAIlB,uBAAuB,CAAC,CAAC,CAAC,EACjD,CAAC,QAAQ,EAAE,IAAIL,gBAAgB,CAAC,CAAC,CAAC,EAClC,CAAC,QAAQ,EAAE,IAAIG,eAAe,CAAC,CAAC,CAAC,EACjC,CAAC,gBAAgB,EAAE,IAAImB,uBAAuB,CAAC,CAAC,CAAC,EACjD,CAAC,aAAa,EAAE,IAAIH,oBAAoB,CAAC,CAAC,CAAC,EAC3C,CAAC,QAAQ,EAAE,IAAI3B,qBAAqB,CAAC,CAAC,CAAC,EACvC,CAAC,YAAY,EAAE,IAAIkB,iBAAiB,CAAC,CAAC,CAAC,CAC1C,CAAC"}
@@ -0,0 +1,2 @@
1
+
2
+ //# sourceMappingURL=i18n.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sources":["i18n.service.ts"],"sourcesContent":["export interface I18nService {\n isRTLLocale: (newLocale?: string) => any;\n setRTL: (locale?: string) => any;\n}\n\n"],"mappings":""}
@@ -1,10 +1,10 @@
1
1
  import React from 'react';
2
2
  import { StyleSheet, View } from 'react-native';
3
- export let HideMode;
4
- (function (HideMode) {
3
+ export let HideMode = /*#__PURE__*/function (HideMode) {
5
4
  HideMode[HideMode["DONOT_ADD_TO_DOM"] = 0] = "DONOT_ADD_TO_DOM";
6
5
  HideMode[HideMode["ADD_TO_DOM"] = 1] = "ADD_TO_DOM";
7
- })(HideMode || (HideMode = {}));
6
+ return HideMode;
7
+ }({});
8
8
  const styles = StyleSheet.create({
9
9
  hidden: {
10
10
  width: 0,
@@ -1 +1 @@
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"],"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;AAGnB,WAHWA,QAAQ;EAARA,QAAQ,CAARA,QAAQ;EAARA,QAAQ,CAARA,QAAQ;AAAA,GAARA,QAAQ,KAARA,QAAQ;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,GAAG,QAIG;EAAA,IAJF;IAACC,SAAS,GAAG,IAAI;IAAEC,QAAQ,GAAG,CAAC;IAAEC,KAAK;IAAEC;EAI5C,CAAC;EACd,IAAIF,QAAQ,KAAKX,QAAQ,CAACc,UAAU,EAAE;IAClCjB,KAAK,CAACkB,QAAQ,CAACC,GAAG;IAClB,oBAAQ,oBAAC,IAAI;MAAC,KAAK,EAAE,CAACN,SAAS,GAAET,MAAM,CAACO,OAAO,GAAEP,MAAM,CAACE,MAAM,EAAES,KAAK;IAAE,GAAEC,QAAQ,CAAQ;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","_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 +1 @@
1
- {"version":3,"names":["remove","Image","ImageSizeEstimator","Map","createRequest","requestId","onComplete","request","cancel","requests","has","get","getImageSize","imgSrc","getSize","width","height","reqs","map","req","delete","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 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;EAAA;IAAA,mCACT,CAAC;IAAA,kCAEsB,IAAIC,GAAG,EAAqB;EAAA;EAEvDC,aAAa,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;QAChCL,MAAM,CAAC,IAAI,CAACS,QAAQ,CAACE,GAAG,CAACN,SAAS,CAAC,IAAI,EAAE,EAAEE,OAAO,CAAC;MACrD;IACJ,CAAC;IACD,OAAOA,OAAO;EAChB;EAEQK,YAAY,CAACC,MAAc,EAAE;IACnCZ,KAAK,CAACa,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,OAAO,CAACD,MAAc,EAAEP,UAAmD,EAAE;IAC3E,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;MAChC,0BAAI,CAACI,QAAQ,CAACE,GAAG,CAACN,SAAS,CAAC,uDAA5B,mBAA8BgB,IAAI,CAACd,OAAO,CAAC;IAC7C,CAAC,MAAM;MACL,MAAMe,QAAQ,GAAG,EAAe;MAChC,IAAI,CAACb,QAAQ,CAACc,GAAG,CAAClB,SAAS,EAAEiB,QAAQ,CAAC;MACtCA,QAAQ,CAACD,IAAI,CAACd,OAAO,CAAC;MACtB,IAAI,CAACK,YAAY,CAACP,SAAS,CAAC;IAC9B;IACA,OAAOE,OAAO,CAACC,MAAM;EACvB;AACF;AAEF,eAAe,IAAIN,kBAAkB,EAAE"}
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","_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 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,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,IAAAgB,kBAAA;MAChC,CAAAA,kBAAA,OAAI,CAACZ,QAAQ,CAACE,GAAG,CAACN,SAAS,CAAC,cAAAgB,kBAAA,uBAA5BA,kBAAA,CAA8BC,IAAI,CAACf,OAAO,CAAC;IAC7C,CAAC,MAAM;MACL,MAAMgB,QAAQ,GAAG,EAAe;MAChC,IAAI,CAACd,QAAQ,CAACe,GAAG,CAACnB,SAAS,EAAEkB,QAAQ,CAAC;MACtCA,QAAQ,CAACD,IAAI,CAACf,OAAO,CAAC;MACtB,IAAI,CAACK,YAAY,CAACP,SAAS,CAAC;IAC9B;IACA,OAAOE,OAAO,CAACC,MAAM;EACvB;AACF;AAEF,eAAe,IAAIR,kBAAkB,CAAC,CAAC"}
@@ -21,6 +21,7 @@ export default {
21
21
  set: set,
22
22
  get: get,
23
23
  remove: remove,
24
- FOCUSED_ELEMENT: getInstance('FOCUSED_ELEMENT')
24
+ FOCUSED_ELEMENT: getInstance('FOCUSED_ELEMENT'),
25
+ I18nService: getInstance('I18nService')
25
26
  };
26
27
  //# sourceMappingURL=injector.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["map","Map","get","t","set","o","remove","v","delete","getInstance","key","FOCUSED_ELEMENT"],"sources":["injector.ts"],"sourcesContent":["const 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};"],"mappings":"AAAA,MAAMA,GAAG,GAAG,IAAIC,GAAG,EAAe;AAElC,MAAMC,GAAG,GAAOC,CAAS,IAAQ;EAC7B,OAAOH,GAAG,CAACE,GAAG,CAACC,CAAC,CAAC;AACrB,CAAC;AAED,MAAMC,GAAG,GAAG,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,EAAE,MAAMA,GAAG,CAACQ,GAAG,CAAM;IACxBJ,MAAM,EAAE,MAAMA,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;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"}
@@ -9,6 +9,8 @@ class LoggerCollection {
9
9
  _defineProperty(this, "loggerMap", new Map());
10
10
  _defineProperty(this, "config", {});
11
11
  _defineProperty(this, "key", 'wm.log.config');
12
+ }
13
+ init() {
12
14
  StorageService.getItem(this.key).then(data => {
13
15
  if (data) {
14
16
  this.config = JSON.parse(data) || {};
@@ -115,6 +117,7 @@ export default {
115
117
  get: getLogger,
116
118
  setLogLevel: (name, level) => loggerCollection.setLogLevel(name, level),
117
119
  list: () => loggerCollection.list(),
118
- reset: () => loggerCollection.setLogLevel('root', 'error')
120
+ reset: () => loggerCollection.setLogLevel('root', 'error'),
121
+ init: () => loggerCollection.init()
119
122
  };
120
123
  //# sourceMappingURL=logger.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["keys","sortBy","logger","StorageService","LoggerCollection","constructor","Map","getItem","key","then","data","config","JSON","parse","forEach","k","loggerMap","get","setLevel","level","catch","name","set","setLogLevel","levels","undefined","filter","startsWith","setItem","stringify","getLogLevel","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\n constructor() {\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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AAG,CAAC,OAAO,EAAES,GAAG,CAAC;EAC1B;AACJ;AAEA,MAAME,SAAS,GAAG,CAAC3B,IAAY,EAAEF,KAAc,KAAK;EAChD,IAAIjB,MAAM,GAAGkC,gBAAgB,CAACnB,GAAG,CAACI,IAAI,CAAC;EACvC,IAAI,CAACnB,MAAM,EAAE;IACTA,MAAM,GAAG,IAAIuC,MAAM,CAACpB,IAAI,EAAEe,gBAAgB,CAACN,WAAW,CAACT,IAAI,CAAC,IAAI,OAAO,CAAC;IACxEe,gBAAgB,CAACd,GAAG,CAACD,IAAI,EAAEnB,MAAM,CAAC;EACtC;EACA,OAAOA,MAAM;AACjB,CAAC;AAED,OAAO,MAAM+C,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;EACX1B,GAAG,EAAE+B,SAAS;EACdzB,WAAW,EAAE,CAACF,IAAa,EAAEF,KAAc,KAAKiB,gBAAgB,CAACb,WAAW,CAACF,IAAI,EAAEF,KAAK,CAAC;EACzFY,IAAI,EAAE,MAAMK,gBAAgB,CAACL,IAAI,EAAE;EACnCqB,KAAK,EAAE,MAAMhB,gBAAgB,CAACb,WAAW,CAAC,MAAM,EAAE,OAAO;AAC7D,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,uBAArBA,mBAAA,CAAuBG,QAAQ,CAAC,IAAI,CAACR,MAAM,CAACI,CAAC,CAAC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AACN,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 +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,IAAI,CAAQ;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}\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 +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,IAAI,CAAQ;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"}
@@ -48,11 +48,26 @@ class NetworkService {
48
48
  _defineProperty(this, "_isCheckingServer", false);
49
49
  _defineProperty(this, "appConfig", null);
50
50
  _defineProperty(this, "notifier", new EventNotifier());
51
+ /**
52
+ * When the auto connect is enabled, then app is automatically connected whenever server is available.
53
+ * Every time when app goes offline, auto connect is enabled. Before app coming to online, one can disable
54
+ * the auto connection flow using this method.
55
+ */
51
56
  _defineProperty(this, "disableAutoConnect", () => this.setAutoConnect(false));
57
+ /**
58
+ * Returns true, if app is connected to server. Otherwise, returns false.
59
+ *
60
+ * @returns {boolean} Returns true, if app is connected to server. Otherwise, returns false.
61
+ */
52
62
  _defineProperty(this, "isConnected", () => {
53
63
  this.checkForNetworkStateChange();
54
64
  return networkState.isConnected;
55
65
  });
66
+ /**
67
+ * Returns true if app is trying to connect to server. Otherwise, returns false.
68
+ *
69
+ * @returns {boolean} Returns true if app is trying to connect to server. Otherwise, returns false.
70
+ */
56
71
  _defineProperty(this, "isConnecting", () => networkState.isConnecting);
57
72
  }
58
73
 
@@ -63,16 +78,10 @@ class NetworkService {
63
78
  * @returns {object} promise
64
79
  */
65
80
  connect() {
81
+ let silent = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
66
82
  this.setAutoConnect(true);
67
- return this.tryToConnect();
83
+ return this.tryToConnect(silent);
68
84
  }
69
-
70
- /**
71
- * When the auto connect is enabled, then app is automatically connected whenever server is available.
72
- * Every time when app goes offline, auto connect is enabled. Before app coming to online, one can disable
73
- * the auto connection flow using this method.
74
- */
75
-
76
85
  /**
77
86
  * This method disconnects the app from the server and returns a promise that will be resolved with
78
87
  * a boolean value based on the operation result. Use connect method to reconnect.
@@ -101,13 +110,6 @@ class NetworkService {
101
110
  }
102
111
  return networkState.isServiceAvailable;
103
112
  }
104
-
105
- /**
106
- * Returns true, if app is connected to server. Otherwise, returns false.
107
- *
108
- * @returns {boolean} Returns true, if app is connected to server. Otherwise, returns false.
109
- */
110
-
111
113
  /**
112
114
  * This method returns a promise that is resolved when connection is established with server.
113
115
  *