@wavemaker/app-rn-runtime 11.4.0-next.28151 → 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":["BaseVariable","merge","BaseAction","constructor","config","setData","dataSet","paramProvider"],"sources":["base-action.ts"],"sourcesContent":["import { BaseVariable, VariableConfig } from \"@wavemaker/app-rn-runtime/variables/base-variable\";\nimport {merge} from \"lodash\";\n\nexport interface ActionConfig extends VariableConfig {\n\n}\n\nexport class BaseAction<T extends ActionConfig> extends BaseVariable<T> {\n\n constructor(config: T) {\n super(config);\n }\n\n setData(dataSet: any) {\n // @ts-ignore\n this.dataSet = merge(this.config.paramProvider(), dataSet);\n }\n}\n"],"mappings":"AAAA,SAASA,YAAY,QAAwB,mDAAmD;AAChG,SAAQC,KAAK,QAAO,QAAQ;AAM5B,OAAO,MAAMC,UAAU,SAAiCF,YAAY,CAAI;EAEpEG,WAAW,CAACC,MAAS,EAAE;IACnB,KAAK,CAACA,MAAM,CAAC;EACjB;EAEAC,OAAO,CAACC,OAAY,EAAE;IAClB;IACA,IAAI,CAACA,OAAO,GAAGL,KAAK,CAAC,IAAI,CAACG,MAAM,CAACG,aAAa,EAAE,EAAED,OAAO,CAAC;EAC9D;AACJ"}
1
+ {"version":3,"names":["BaseVariable","merge","BaseAction","constructor","config","setData","dataSet","paramProvider"],"sources":["base-action.ts"],"sourcesContent":["import { BaseVariable, VariableConfig } from \"@wavemaker/app-rn-runtime/variables/base-variable\";\nimport {merge} from \"lodash\";\n\nexport interface ActionConfig extends VariableConfig {\n\n}\n\nexport class BaseAction<T extends ActionConfig> extends BaseVariable<T> {\n\n constructor(config: T) {\n super(config);\n }\n\n setData(dataSet: any) {\n // @ts-ignore\n this.dataSet = merge(this.config.paramProvider(), dataSet);\n }\n}\n"],"mappings":"AAAA,SAASA,YAAY,QAAwB,mDAAmD;AAChG,SAAQC,KAAK,QAAO,QAAQ;AAM5B,OAAO,MAAMC,UAAU,SAAiCF,YAAY,CAAI;EAEpEG,WAAWA,CAACC,MAAS,EAAE;IACnB,KAAK,CAACA,MAAM,CAAC;EACjB;EAEAC,OAAOA,CAACC,OAAY,EAAE;IAClB;IACA,IAAI,CAACA,OAAO,GAAGL,KAAK,CAAC,IAAI,CAACG,MAAM,CAACG,aAAa,CAAC,CAAC,EAAED,OAAO,CAAC;EAC9D;AACJ"}
@@ -1 +1 @@
1
- {"version":3,"names":["BaseAction","get","LoginAction","constructor","config","invoke","options","successcb","errorcb","params","paramProvider","securityService","appLogin","baseURL","formData","useDefaultSuccessHandler","then","data","onSuccess","navigateToLandingPage","catch","error","onError"],"sources":["login-action.ts"],"sourcesContent":["import { ActionConfig, BaseAction } from \"./base-action\";\nimport { SecurityService } from \"@wavemaker/app-rn-runtime/core/security.service\";\nimport { get } from 'lodash';\nexport interface LoginActionConfig extends ActionConfig {\n securityService: () => SecurityService;\n baseURL: String;\n useDefaultSuccessHandler: boolean;\n}\nexport class LoginAction extends BaseAction<LoginActionConfig> {\n constructor(config: LoginActionConfig) {\n super(config);\n }\n\n invoke(options: any, successcb?: Function, errorcb?: Function) {\n let params;\n if (!get(options, 'formData')) {\n params = this.config.paramProvider();\n }\n return this.config.securityService().appLogin(\n {\n baseURL: this.config.baseURL,\n formData: get(options, 'formData') || params,\n useDefaultSuccessHandler: this.config.useDefaultSuccessHandler\n })\n .then((data: any) => {\n this.config.onSuccess && this.config.onSuccess(this, get(data, 'userInfo'));\n successcb && successcb(data);\n if (this.config.useDefaultSuccessHandler) {\n this.config.securityService().navigateToLandingPage(data);\n }\n })\n .catch((error: any) => {\n this.config.onError && this.config.onError(this, error);\n errorcb && errorcb(error);\n });\n }\n}\n"],"mappings":"AAAA,SAAuBA,UAAU,QAAQ,eAAe;AAExD,SAASC,GAAG,QAAQ,QAAQ;AAM5B,OAAO,MAAMC,WAAW,SAASF,UAAU,CAAoB;EAC3DG,WAAW,CAACC,MAAyB,EAAE;IACnC,KAAK,CAACA,MAAM,CAAC;EACjB;EAEAC,MAAM,CAACC,OAAY,EAAEC,SAAoB,EAAEC,OAAkB,EAAE;IAC7D,IAAIC,MAAM;IACV,IAAI,CAACR,GAAG,CAACK,OAAO,EAAE,UAAU,CAAC,EAAE;MAC7BG,MAAM,GAAG,IAAI,CAACL,MAAM,CAACM,aAAa,EAAE;IACtC;IACA,OAAO,IAAI,CAACN,MAAM,CAACO,eAAe,EAAE,CAACC,QAAQ,CAC3C;MACEC,OAAO,EAAE,IAAI,CAACT,MAAM,CAACS,OAAO;MAC5BC,QAAQ,EAAEb,GAAG,CAACK,OAAO,EAAE,UAAU,CAAC,IAAIG,MAAM;MAC5CM,wBAAwB,EAAE,IAAI,CAACX,MAAM,CAACW;IAC1C,CAAC,CAAC,CACCC,IAAI,CAAEC,IAAS,IAAK;MACjB,IAAI,CAACb,MAAM,CAACc,SAAS,IAAI,IAAI,CAACd,MAAM,CAACc,SAAS,CAAC,IAAI,EAAEjB,GAAG,CAACgB,IAAI,EAAE,UAAU,CAAC,CAAC;MAC3EV,SAAS,IAAIA,SAAS,CAACU,IAAI,CAAC;MAC5B,IAAI,IAAI,CAACb,MAAM,CAACW,wBAAwB,EAAE;QACxC,IAAI,CAACX,MAAM,CAACO,eAAe,EAAE,CAACQ,qBAAqB,CAACF,IAAI,CAAC;MAC3D;IACJ,CAAC,CAAC,CACDG,KAAK,CAAEC,KAAU,IAAK;MACnB,IAAI,CAACjB,MAAM,CAACkB,OAAO,IAAI,IAAI,CAAClB,MAAM,CAACkB,OAAO,CAAC,IAAI,EAAED,KAAK,CAAC;MACvDb,OAAO,IAAIA,OAAO,CAACa,KAAK,CAAC;IAC7B,CAAC,CAAC;EACN;AACJ"}
1
+ {"version":3,"names":["BaseAction","get","LoginAction","constructor","config","invoke","options","successcb","errorcb","params","paramProvider","securityService","appLogin","baseURL","formData","useDefaultSuccessHandler","then","data","onSuccess","navigateToLandingPage","catch","error","onError"],"sources":["login-action.ts"],"sourcesContent":["import { ActionConfig, BaseAction } from \"./base-action\";\nimport { SecurityService } from \"@wavemaker/app-rn-runtime/core/security.service\";\nimport { get } from 'lodash';\nexport interface LoginActionConfig extends ActionConfig {\n securityService: () => SecurityService;\n baseURL: String;\n useDefaultSuccessHandler: boolean;\n}\nexport class LoginAction extends BaseAction<LoginActionConfig> {\n constructor(config: LoginActionConfig) {\n super(config);\n }\n\n invoke(options: any, successcb?: Function, errorcb?: Function) {\n let params;\n if (!get(options, 'formData')) {\n params = this.config.paramProvider();\n }\n return this.config.securityService().appLogin(\n {\n baseURL: this.config.baseURL,\n formData: get(options, 'formData') || params,\n useDefaultSuccessHandler: this.config.useDefaultSuccessHandler\n })\n .then((data: any) => {\n this.config.onSuccess && this.config.onSuccess(this, get(data, 'userInfo'));\n successcb && successcb(data);\n if (this.config.useDefaultSuccessHandler) {\n this.config.securityService().navigateToLandingPage(data);\n }\n })\n .catch((error: any) => {\n this.config.onError && this.config.onError(this, error);\n errorcb && errorcb(error);\n });\n }\n}\n"],"mappings":"AAAA,SAAuBA,UAAU,QAAQ,eAAe;AAExD,SAASC,GAAG,QAAQ,QAAQ;AAM5B,OAAO,MAAMC,WAAW,SAASF,UAAU,CAAoB;EAC3DG,WAAWA,CAACC,MAAyB,EAAE;IACnC,KAAK,CAACA,MAAM,CAAC;EACjB;EAEAC,MAAMA,CAACC,OAAY,EAAEC,SAAoB,EAAEC,OAAkB,EAAE;IAC7D,IAAIC,MAAM;IACV,IAAI,CAACR,GAAG,CAACK,OAAO,EAAE,UAAU,CAAC,EAAE;MAC7BG,MAAM,GAAG,IAAI,CAACL,MAAM,CAACM,aAAa,CAAC,CAAC;IACtC;IACA,OAAO,IAAI,CAACN,MAAM,CAACO,eAAe,CAAC,CAAC,CAACC,QAAQ,CAC3C;MACEC,OAAO,EAAE,IAAI,CAACT,MAAM,CAACS,OAAO;MAC5BC,QAAQ,EAAEb,GAAG,CAACK,OAAO,EAAE,UAAU,CAAC,IAAIG,MAAM;MAC5CM,wBAAwB,EAAE,IAAI,CAACX,MAAM,CAACW;IAC1C,CAAC,CAAC,CACCC,IAAI,CAAEC,IAAS,IAAK;MACjB,IAAI,CAACb,MAAM,CAACc,SAAS,IAAI,IAAI,CAACd,MAAM,CAACc,SAAS,CAAC,IAAI,EAAEjB,GAAG,CAACgB,IAAI,EAAE,UAAU,CAAC,CAAC;MAC3EV,SAAS,IAAIA,SAAS,CAACU,IAAI,CAAC;MAC5B,IAAI,IAAI,CAACb,MAAM,CAACW,wBAAwB,EAAE;QACxC,IAAI,CAACX,MAAM,CAACO,eAAe,CAAC,CAAC,CAACQ,qBAAqB,CAACF,IAAI,CAAC;MAC3D;IACJ,CAAC,CAAC,CACDG,KAAK,CAAEC,KAAU,IAAK;MACnB,IAAI,CAACjB,MAAM,CAACkB,OAAO,IAAI,IAAI,CAAClB,MAAM,CAACkB,OAAO,CAAC,IAAI,EAAED,KAAK,CAAC;MACvDb,OAAO,IAAIA,OAAO,CAACa,KAAK,CAAC;IAC7B,CAAC,CAAC;EACN;AACJ"}
@@ -1 +1 @@
1
- {"version":3,"names":["BaseAction","LogoutAction","constructor","config","invoke","options","successcb","errorcb","securityService","appLogout","baseURL","then","data","onSuccess","catch","error","onError"],"sources":["logout-action.ts"],"sourcesContent":["import { ActionConfig, BaseAction } from \"./base-action\";\nimport { SecurityService } from \"@wavemaker/app-rn-runtime/core/security.service\";\nexport interface LogoutActionConfig extends ActionConfig {\n securityService: () => SecurityService;\n baseURL: String;\n}\nexport class LogoutAction extends BaseAction<LogoutActionConfig> {\n constructor(config: LogoutActionConfig) {\n super(config);\n }\n\n invoke(options: any, successcb?: Function, errorcb?: Function) {\n return this.config.securityService().appLogout({baseURL: this.config.baseURL})\n .then((data: any) => {\n this.config.onSuccess && this.config.onSuccess(this, data);\n successcb && successcb(data);\n })\n .catch((error: any) => {\n this.config.onError && this.config.onError(this, error);\n errorcb && errorcb(error);\n });\n }\n}"],"mappings":"AAAA,SAAuBA,UAAU,QAAQ,eAAe;AAMxD,OAAO,MAAMC,YAAY,SAASD,UAAU,CAAqB;EAC7DE,WAAW,CAACC,MAA0B,EAAE;IACpC,KAAK,CAACA,MAAM,CAAC;EACjB;EAEAC,MAAM,CAACC,OAAY,EAAEC,SAAoB,EAAEC,OAAkB,EAAE;IAC3D,OAAO,IAAI,CAACJ,MAAM,CAACK,eAAe,EAAE,CAACC,SAAS,CAAC;MAACC,OAAO,EAAE,IAAI,CAACP,MAAM,CAACO;IAAO,CAAC,CAAC,CAC7EC,IAAI,CAAEC,IAAS,IAAK;MACjB,IAAI,CAACT,MAAM,CAACU,SAAS,IAAI,IAAI,CAACV,MAAM,CAACU,SAAS,CAAC,IAAI,EAAED,IAAI,CAAC;MAC1DN,SAAS,IAAIA,SAAS,CAACM,IAAI,CAAC;IAChC,CAAC,CAAC,CACDE,KAAK,CAAEC,KAAU,IAAK;MACnB,IAAI,CAACZ,MAAM,CAACa,OAAO,IAAI,IAAI,CAACb,MAAM,CAACa,OAAO,CAAC,IAAI,EAAED,KAAK,CAAC;MACvDR,OAAO,IAAIA,OAAO,CAACQ,KAAK,CAAC;IAC7B,CAAC,CAAC;EACN;AACJ"}
1
+ {"version":3,"names":["BaseAction","LogoutAction","constructor","config","invoke","options","successcb","errorcb","securityService","appLogout","baseURL","then","data","onSuccess","catch","error","onError"],"sources":["logout-action.ts"],"sourcesContent":["import { ActionConfig, BaseAction } from \"./base-action\";\nimport { SecurityService } from \"@wavemaker/app-rn-runtime/core/security.service\";\nexport interface LogoutActionConfig extends ActionConfig {\n securityService: () => SecurityService;\n baseURL: String;\n}\nexport class LogoutAction extends BaseAction<LogoutActionConfig> {\n constructor(config: LogoutActionConfig) {\n super(config);\n }\n\n invoke(options: any, successcb?: Function, errorcb?: Function) {\n return this.config.securityService().appLogout({baseURL: this.config.baseURL})\n .then((data: any) => {\n this.config.onSuccess && this.config.onSuccess(this, data);\n successcb && successcb(data);\n })\n .catch((error: any) => {\n this.config.onError && this.config.onError(this, error);\n errorcb && errorcb(error);\n });\n }\n}"],"mappings":"AAAA,SAAuBA,UAAU,QAAQ,eAAe;AAMxD,OAAO,MAAMC,YAAY,SAASD,UAAU,CAAqB;EAC7DE,WAAWA,CAACC,MAA0B,EAAE;IACpC,KAAK,CAACA,MAAM,CAAC;EACjB;EAEAC,MAAMA,CAACC,OAAY,EAAEC,SAAoB,EAAEC,OAAkB,EAAE;IAC3D,OAAO,IAAI,CAACJ,MAAM,CAACK,eAAe,CAAC,CAAC,CAACC,SAAS,CAAC;MAACC,OAAO,EAAE,IAAI,CAACP,MAAM,CAACO;IAAO,CAAC,CAAC,CAC7EC,IAAI,CAAEC,IAAS,IAAK;MACjB,IAAI,CAACT,MAAM,CAACU,SAAS,IAAI,IAAI,CAACV,MAAM,CAACU,SAAS,CAAC,IAAI,EAAED,IAAI,CAAC;MAC1DN,SAAS,IAAIA,SAAS,CAACM,IAAI,CAAC;IAChC,CAAC,CAAC,CACDE,KAAK,CAAEC,KAAU,IAAK;MACnB,IAAI,CAACZ,MAAM,CAACa,OAAO,IAAI,IAAI,CAACb,MAAM,CAACa,OAAO,CAAC,IAAI,EAAED,KAAK,CAAC;MACvDR,OAAO,IAAIA,OAAO,CAACQ,KAAK,CAAC;IAC7B,CAAC,CAAC;EACN;AACJ"}
@@ -1 +1 @@
1
- {"version":3,"names":["VariableEvents","BaseAction","merge","NavigationAction","constructor","config","invoke","params","onSuccess","onError","data","paramProvider","dataSet","notify","BEFORE_INVOKE","then","operation","appConfig","currentPage","goBack","goToPage","pageName","SUCCESS","ERROR","AFTER_INVOKE","navigate"],"sources":["navigation-action.ts"],"sourcesContent":["import AppConfig from \"@wavemaker/app-rn-runtime/core/AppConfig\";\nimport { VariableEvents } from \"@wavemaker/app-rn-runtime/variables/base-variable\";\nimport { ActionConfig, BaseAction } from \"./base-action\";\nimport {merge} from \"lodash\";\n\nexport interface NavigationActionConfig extends ActionConfig {\n appConfig: AppConfig;\n operation: string;\n}\n\nexport class NavigationAction extends BaseAction<NavigationActionConfig> {\n constructor(config: NavigationActionConfig) {\n super(config);\n }\n\n public invoke(params?: {}, onSuccess?: Function, onError?: Function): Promise<NavigationAction> {\n const config = this.config;\n // @ts-ignore\n params = params?.data ? merge(this.config.paramProvider(), params.data) : merge(this.config.paramProvider(), this.dataSet);\n this.notify(VariableEvents.BEFORE_INVOKE, [this, this.dataSet]);\n return super.invoke(params, onSuccess, onError).then(() => {\n config.operation === 'goToPreviousPage' ? config.appConfig.currentPage?.goBack() : config.appConfig.currentPage?.goToPage(this.params.pageName, this.params);\n }).then(() => {\n config.onSuccess && config.onSuccess(this, this.dataSet);\n this.notify(VariableEvents.SUCCESS, [this, this.dataSet]);\n }, () => {\n config.onError && config.onError(this, null);\n this.notify(VariableEvents.ERROR, [this, this.dataSet]);\n }).then(() => {\n this.notify(VariableEvents.AFTER_INVOKE, [this, this.dataSet]);\n return this;\n });\n }\n\n public navigate(params?: {}, onSuccess?: Function, onError?: Function): Promise<NavigationAction> {\n return this.invoke(params, onSuccess, onError);\n }\n}\n"],"mappings":"AACA,SAASA,cAAc,QAAQ,mDAAmD;AAClF,SAAuBC,UAAU,QAAQ,eAAe;AACxD,SAAQC,KAAK,QAAO,QAAQ;AAO5B,OAAO,MAAMC,gBAAgB,SAASF,UAAU,CAAyB;EACrEG,WAAW,CAACC,MAA8B,EAAE;IACxC,KAAK,CAACA,MAAM,CAAC;EACjB;EAEOC,MAAM,CAACC,MAAW,EAAEC,SAAoB,EAAEC,OAAkB,EAA6B;IAAA;IAC5F,MAAMJ,M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AAc,CAACwB,YAAY,EAAE,CAAC,IAAI,EAAE,IAAI,CAACZ,OAAO,CAAC,CAAC;MAC9D,OAAO,IAAI;IACf,CAAC,CAAC;EACN;EAEOa,QAAQ,CAAClB,MAAW,EAAEC,SAAoB,EAAEC,OAAkB,EAA6B;IAC9F,OAAO,IAAI,CAACH,MAAM,CAACC,MAAM,EAAEC,SAAS,EAAEC,OAAO,CAAC;EAClD;AACJ"}
1
+ {"version":3,"names":["VariableEvents","BaseAction","merge","NavigationAction","constructor","config","invoke","params","onSuccess","onError","_params","data","paramProvider","dataSet","notify","BEFORE_INVOKE","then","_config$appConfig$cur","_config$appConfig$cur2","operation","appConfig","currentPage","goBack","goToPage","pageName","SUCCESS","ERROR","AFTER_INVOKE","navigate"],"sources":["navigation-action.ts"],"sourcesContent":["import AppConfig from \"@wavemaker/app-rn-runtime/core/AppConfig\";\nimport { VariableEvents } from \"@wavemaker/app-rn-runtime/variables/base-variable\";\nimport { ActionConfig, BaseAction } from \"./base-action\";\nimport {merge} from \"lodash\";\n\nexport interface NavigationActionConfig extends ActionConfig {\n appConfig: AppConfig;\n operation: string;\n}\n\nexport class NavigationAction extends BaseAction<NavigationActionConfig> {\n constructor(config: NavigationActionConfig) {\n super(config);\n }\n\n public invoke(params?: {}, onSuccess?: Function, onError?: Function): Promise<NavigationAction> {\n const config = this.config;\n // @ts-ignore\n params = params?.data ? merge(this.config.paramProvider(), params.data) : merge(this.config.paramProvider(), this.dataSet);\n this.notify(VariableEvents.BEFORE_INVOKE, [this, this.dataSet]);\n return super.invoke(params, onSuccess, onError).then(() => {\n config.operation === 'goToPreviousPage' ? config.appConfig.currentPage?.goBack() : config.appConfig.currentPage?.goToPage(this.params.pageName, this.params);\n }).then(() => {\n config.onSuccess && config.onSuccess(this, this.dataSet);\n this.notify(VariableEvents.SUCCESS, [this, this.dataSet]);\n }, () => {\n config.onError && config.onError(this, null);\n this.notify(VariableEvents.ERROR, [this, this.dataSet]);\n }).then(() => {\n this.notify(VariableEvents.AFTER_INVOKE, [this, this.dataSet]);\n return this;\n });\n }\n\n public navigate(params?: {}, onSuccess?: Function, onError?: Function): Promise<NavigationAction> {\n return this.invoke(params, onSuccess, onError);\n }\n}\n"],"mappings":"AACA,SAASA,cAAc,QAAQ,mDAAmD;AAClF,SAAuBC,UAAU,QAAQ,eAAe;AACxD,SAAQC,KAAK,QAAO,QAAQ;AAO5B,OAAO,MAAMC,gBAAgB,SAASF,UAAU,CAAyB;EACrEG,WAAWA,CAACC,MAA8B,EAAE;IACxC,KAAK,CAACA,MAAM,CAAC;EACjB;EAEOC,MAAMA,CAACC,MAAW,EAAEC,SAAoB,EAAEC,OAAkB,EAA6B;IAAA,IAAAC,OAAA;IAC5F,MAAML,MAAM,GAAG,IAAI,CAACA,MAAM;IAC1B;IACAE,MAAM,GAAG,CAAAG,OAAA,GAAAH,MAAM,cAAAG,OAAA,eAANA,OAAA,CAAQC,IAAI,GAAGT,KAAK,CAAC,IAAI,CAACG,MAAM,CAACO,aAAa,CAAC,CAAC,EAAEL,MAAM,CAACI,IAAI,CAAC,GAAGT,KAAK,CAAC,IAAI,CAACG,MAAM,CAACO,aAAa,CAAC,CAAC,EAAE,IAAI,CAACC,OAAO,CAAC;IAC1H,IAAI,CAACC,MAAM,CAACd,cAAc,CAACe,aAAa,EAAE,CAAC,IAAI,EAAE,IAAI,CAACF,OAAO,CAAC,CAAC;IAC/D,OAAO,KAAK,CAACP,MAAM,CAACC,MAAM,EAAEC,SAAS,EAAEC,OAAO,CAAC,CAACO,IAAI,CAAC,MAAM;MAAA,IAAAC,qBAAA,EAAAC,sBAAA;MACvDb,MAAM,CAACc,SAAS,KAAK,kBAAkB,IAAAF,qBAAA,GAAGZ,MAAM,CAACe,SAAS,CAACC,WAAW,cAAAJ,qBAAA,uBAA5BA,qBAAA,CAA8BK,MAAM,CAAC,CAAC,IAAAJ,sBAAA,GAAGb,MAAM,CAACe,SAAS,CAACC,WAAW,cAAAH,sBAAA,uBAA5BA,sBAAA,CAA8BK,QAAQ,CAAC,IAAI,CAAChB,MAAM,CAACiB,QAAQ,EAAE,IAAI,CAACjB,MAAM,CAAC;IAChK,CAAC,CAAC,CAACS,IAAI,CAAC,MAAM;MACVX,MAAM,CAACG,SAAS,IAAIH,MAAM,CAACG,SAAS,CAAC,IAAI,EAAE,IAAI,CAACK,OAAO,CAAC;MACxD,IAAI,CAACC,MAAM,CAACd,cAAc,CAACyB,OAAO,EAAE,CAAC,IAAI,EAAE,IAAI,CAACZ,OAAO,CAAC,CAAC;IAC7D,CAAC,EAAE,MAAM;MACLR,MAAM,CAACI,OAAO,IAAIJ,MAAM,CAACI,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC;MAC5C,IAAI,CAACK,MAAM,CAACd,cAAc,CAAC0B,KAAK,EAAE,CAAC,IAAI,EAAE,IAAI,CAACb,OAAO,CAAC,CAAC;IAC3D,CAAC,CAAC,CAACG,IAAI,CAAC,MAAM;MACV,IAAI,CAACF,MAAM,CAACd,cAAc,CAAC2B,YAAY,EAAE,CAAC,IAAI,EAAE,IAAI,CAACd,OAAO,CAAC,CAAC;MAC9D,OAAO,IAAI;IACf,CAAC,CAAC;EACN;EAEOe,QAAQA,CAACrB,MAAW,EAAEC,SAAoB,EAAEC,OAAkB,EAA6B;IAC9F,OAAO,IAAI,CAACH,MAAM,CAACC,MAAM,EAAEC,SAAS,EAAEC,OAAO,CAAC;EAClD;AACJ"}
@@ -1 +1 @@
1
- {"version":3,"names":["BaseAction","DEFAULT_DURATION","NotificationAction","constructor","config","showDialog","prepareToastOptions","options","params","paramProvider","o","text","message","type","class","toLowerCase","onClose","onClick","onOk","content","partialContent","hideOnClick","toasterPosition","position","placement","split","styles","top","bottom","duration","parseInt","name","getMessage","invoke","success","error","operation","toasterService","showToast","onCancel"],"sources":["notification-action.ts"],"sourcesContent":["import { ActionConfig, BaseAction } from \"./base-action\";\nimport { ToastOptions, ToastService } from '@wavemaker/app-rn-runtime/core/toast.service';\nimport React from 'react';\nexport interface NotificationActionConfig extends ActionConfig {\n showDialog: Function;\n onOk: any;\n onCancel: any;\n onClose: any;\n operation: string;\n partialContent: React.ReactNode;\n toasterService: () => ToastService;\n}\nconst DEFAULT_DURATION = 3000;\nexport class NotificationAction extends BaseAction<NotificationActionConfig> {\n showDialog: Function;\n constructor(config: NotificationActionConfig) {\n super(config);\n this.showDialog = config.showDialog;\n }\n\n prepareToastOptions(options: any = {}) {\n const params = this.config.paramProvider();\n const o = {} as ToastOptions;\n o.text = options.message || params.text;\n o.type = options.class?.toLowerCase() || params.class?.toLowerCase();\n o.onClose = () => {\n this.config.onClose && this.config.onClose(this);\n },\n o.onClick = () => {\n this.config.onOk && this.config.onOk(this);\n },\n o.content = this.config.partialContent;\n o.hideOnClick = options.hideOnClick || true;\n const toasterPosition = options.position || params.toasterPosition || 'bottom right';\n const placement = toasterPosition.split(' ')[0];\n switch(placement) {\n case 'top':\n o.styles = {top: 0};\n break;\n case 'bottom':\n o.styles = {bottom: 0};\n break;\n case 'center':\n o.styles = {top: '50%'};\n break;\n }\n if (this.config.partialContent) {\n if (!o.styles) {\n o.styles = {};\n }\n }\n if (!params.duration) {\n params.duration = (params.duration !== 0 && o.type === 'success') ? DEFAULT_DURATION : 0;\n }\n o.duration = parseInt(options.duration || params.duration);\n o.name = this.name;\n return o;\n }\n\n getMessage() {\n return this.config.paramProvider().text;\n }\n\n invoke(options: any, success: any, error: any) {\n super.invoke(options, success, error);\n if (this.config.operation === 'toast') {\n const toasterService = this.config.toasterService();\n return toasterService.showToast(this.prepareToastOptions(options));\n } else {\n return this.showDialog && this.showDialog({...this.params, onOk: this.config.onOk, onCancel: this.config.onCancel, onClose: this.config.onClose});\n }\n }\n}\n"],"mappings":";;;AAAA,SAAuBA,UAAU,QAAQ,eAAe;AAYxD,MAAMC,gBAAgB,GAAG,IAAI;AAC7B,OAAO,MAAMC,kBAAkB,SAASF,UAAU,CAA2B;EAEzEG,WAAW,CAACC,MAAgC,EAAE;IAC1C,KAAK,CAACA,MAA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,CAACmC,QAAQ;QAAEvB,OAAO,EAAE,IAAI,CAACZ,MAAM,CAACY;MAAO,CAAC,CAAC;IACrJ;EACJ;AACJ"}
1
+ {"version":3,"names":["BaseAction","DEFAULT_DURATION","NotificationAction","constructor","config","_defineProperty","showDialog","prepareToastOptions","_options$class","_params$class","options","arguments","length","undefined","params","paramProvider","o","text","message","type","class","toLowerCase","onClose","onClick","onOk","content","partialContent","hideOnClick","toasterPosition","position","placement","split","styles","top","bottom","duration","parseInt","name","getMessage","invoke","success","error","operation","toasterService","showToast","onCancel"],"sources":["notification-action.ts"],"sourcesContent":["import { ActionConfig, BaseAction } from \"./base-action\";\nimport { ToastOptions, ToastService } from '@wavemaker/app-rn-runtime/core/toast.service';\nimport React from 'react';\nexport interface NotificationActionConfig extends ActionConfig {\n showDialog: Function;\n onOk: any;\n onCancel: any;\n onClose: any;\n operation: string;\n partialContent: React.ReactNode;\n toasterService: () => ToastService;\n}\nconst DEFAULT_DURATION = 3000;\nexport class NotificationAction extends BaseAction<NotificationActionConfig> {\n showDialog: Function;\n constructor(config: NotificationActionConfig) {\n super(config);\n this.showDialog = config.showDialog;\n }\n\n prepareToastOptions(options: any = {}) {\n const params = this.config.paramProvider();\n const o = {} as ToastOptions;\n o.text = options.message || params.text;\n o.type = options.class?.toLowerCase() || params.class?.toLowerCase();\n o.onClose = () => {\n this.config.onClose && this.config.onClose(this);\n },\n o.onClick = () => {\n this.config.onOk && this.config.onOk(this);\n },\n o.content = this.config.partialContent;\n o.hideOnClick = options.hideOnClick || true;\n const toasterPosition = options.position || params.toasterPosition || 'bottom right';\n const placement = toasterPosition.split(' ')[0];\n switch(placement) {\n case 'top':\n o.styles = {top: 0};\n break;\n case 'bottom':\n o.styles = {bottom: 0};\n break;\n case 'center':\n o.styles = {top: '50%'};\n break;\n }\n if (this.config.partialContent) {\n if (!o.styles) {\n o.styles = {};\n }\n }\n if (!params.duration) {\n params.duration = (params.duration !== 0 && o.type === 'success') ? DEFAULT_DURATION : 0;\n }\n o.duration = parseInt(options.duration || params.duration);\n o.name = this.name;\n return o;\n }\n\n getMessage() {\n return this.config.paramProvider().text;\n }\n\n invoke(options: any, success: any, error: any) {\n super.invoke(options, success, error);\n if (this.config.operation === 'toast') {\n const toasterService = this.config.toasterService();\n return toasterService.showToast(this.prepareToastOptions(options));\n } else {\n return this.showDialog && this.showDialog({...this.params, onOk: this.config.onOk, onCancel: this.config.onCancel, onClose: this.config.onClose});\n }\n }\n}\n"],"mappings":";;;AAAA,SAAuBA,UAAU,QAAQ,eAAe;AAYxD,MAAMC,gBAAgB,GAAG,IAAI;AAC7B,OAAO,MAAMC,kBAAkB,SAASF,UAAU,CAA2B;EAEzEG,WAAWA,CAACC,MAAgC,EAAE;IAC1C,KAAK,CAACA,MAAM,CAAC;IAACC,eAAA;IACd,IAAI,CAACC,UAAU,GAAGF,MAAM,CAACE,UAAU;EACvC;EAEAC,mBAAmBA,CAAA,EAAoB;IAAA,IAAAC,cAAA,EAAAC,aAAA;IAAA,IAAnBC,OAAY,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC,CAAC;IACjC,MAAMG,MAAM,GAAG,IAAI,CAACV,MAAM,CAACW,aAAa,CAAC,CAAC;IAC1C,MAAMC,CAAC,GAAG,CAAC,CAAiB;IAC5BA,CAAC,CAACC,IAAI,GAAGP,OAAO,CAACQ,OAAO,IAAIJ,MAAM,CAACG,IAAI;IACvCD,CAAC,CAACG,IAAI,GAAG,EAAAX,cAAA,GAAAE,OAAO,CAACU,KAAK,cAAAZ,cAAA,uBAAbA,cAAA,CAAea,WAAW,CAAC,CAAC,OAAAZ,aAAA,GAAIK,MAAM,CAACM,KAAK,cAAAX,aAAA,uBAAZA,aAAA,CAAcY,WAAW,CAAC,CAAC;IACpEL,CAAC,CAACM,OAAO,GAAG,MAAM;MACd,IAAI,CAAClB,MAAM,CAACkB,OAAO,IAAI,IAAI,CAAClB,MAAM,CAACkB,OAAO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,IAAI,CAACA,IAAI;IAClB,OAAOrB,CAAC;EACV;EAEJsB,UAAUA,CAAA,EAAG;IACX,OAAO,IAAI,CAAClC,MAAM,CAACW,aAAa,CAAC,CAAC,CAACE,IAAI;EACzC;EAEEsB,MAAMA,CAAC7B,OAAY,EAAE8B,OAAY,EAAEC,KAAU,EAAE;IAC3C,KAAK,CAACF,MAAM,CAAC7B,OAAO,EAAE8B,OAAO,EAAEC,KAAK,CAAC;IACrC,IAAI,IAAI,CAACrC,MAAM,CAACsC,SAAS,KAAK,OAAO,EAAE;MACnC,MAAMC,cAAc,GAAG,IAAI,CAACvC,MAAM,CAACuC,cAAc,CAAC,CAAC;MACnD,OAAOA,cAAc,CAACC,SAAS,CAAC,IAAI,CAACrC,mBAAmB,CAACG,OAAO,CAAC,CAAC;IACtE,CAAC,MAAM;MACH,OAAO,IAAI,CAACJ,UAAU,IAAI,IAAI,CAACA,UAAU,CAAC;QAAC,GAAG,IAAI,CAACQ,MAAM;QAAEU,IAAI,EAAE,IAAI,CAACpB,MAAM,CAACoB,IAAI;QAAEqB,QAAQ,EAAE,IAAI,CAACzC,MAAM,CAACyC,QAAQ;QAAEvB,OAAO,EAAE,IAAI,CAAClB,MAAM,CAACkB;MAAO,CAAC,CAAC;IACrJ;EACJ;AACJ"}
@@ -1 +1 @@
1
- {"version":3,"names":["BaseAction","TimerAction","constructor","config","repeating","delay","invoke","options","success","error","fire","params","cancel","_schedulerID","clearInterval","clearTimeout","destroy","pause","trigger","repeatTimer","exec","onSuccess","setInterval","setTimeout","_isFired"],"sources":["timer-action.ts"],"sourcesContent":["import { ActionConfig, BaseAction } from \"./base-action\";\nexport interface TimerActionConfig extends ActionConfig {\n repeating: Boolean;\n delay: number;\n onSuccess: any;\n}\nexport class TimerAction extends BaseAction<TimerActionConfig> {\n repeating: Boolean;\n _isFired = false;\n _schedulerID: any = -1;\n delay: number;\n constructor(config: TimerActionConfig) {\n super(config);\n this.repeating = config.repeating;\n this.delay = config.delay || 500;\n }\n\n invoke(options: any, success: any, error: any) {\n super.invoke(options, success, error);\n return this.fire(this.params, success, error) as any;\n }\n\n cancel() {\n if (this._schedulerID > -1) {\n if (this.repeating) {\n clearInterval(this._schedulerID);\n } else {\n clearTimeout(this._schedulerID);\n }\n this._schedulerID = -1;\n }\n }\n\n destroy() {\n this.cancel();\n }\n\n pause() {\n this.cancel();\n }\n\n trigger(options: any, success: any, error: any) {\n if (this._schedulerID > -1) {\n return;\n }\n const repeatTimer = this.repeating,\n delay = this.delay,\n exec = () => {\n this.config.onSuccess && this.config.onSuccess();\n };\n\n this._schedulerID = repeatTimer ? setInterval(exec, delay) : setTimeout( () => {\n exec();\n this._schedulerID = -1;\n }, delay);\n\n return this._schedulerID;\n }\n\n fire(options: any, success: any, error: any) {\n if(this.repeating) {\n this._isFired = true;\n }\n return this.trigger(options, success, error);\n }\n}"],"mappings":";;;AAAA,SAAuBA,UAAU,QAAQ,eAAe;AAMxD,OAAO,MAAMC,WAAW,SAASD,UAAU,CAAoB;EAK3DE,WAAW,CAACC,MAAyB,EAAE;IACnC,KAAK,CAACA,MAAM,CAAC;IAAC;IAAA,kCAJP,KAAK;IAAA,sCACI,CAAC,CAAC;IAAA;IAIlB,IAAI,CAACC,SAAS,GAAGD,MAAM,CAACC,SAAS;IACjC,IAAI,CAACC,KAAK,GAAGF,MAAM,CAACE,KAAK,IAAI,GAAG;EACpC;EAEAC,MAAM,CAACC,OAAY,EAAEC,OAAY,EAAEC,KAAU,EAAE;IAC3C,KAAK,CAACH,MAAM,CAACC,OAAO,EAAEC,OAAO,EAAEC,KAAK,CAAC;IACrC,OAAO,IAAI,CAACC,IAAI,CAAC,IAAI,CAACC,MAAM,EAAEH,OAAO,EAAEC,KAAK,CAAC;EACjD;EAEAG,MAAM,GAAG;IACL,IAAI,IAAI,CAACC,YAAY,GAAG,CAAC,CAAC,EAAE;MACxB,IAAI,IAAI,CAACT,SAAS,EAAE;QAChBU,aAAa,CAAC,IAAI,CAACD,YAAY,CAAC;MACpC,CAAC,MAAM;QACHE,YAAY,CAAC,IAAI,CAACF,YAAY,CAAC;MACnC;MACA,IAAI,CAACA,YAAY,GAAG,CAAC,CAAC;IAC1B;EACJ;EAEAG,OAAO,GAAG;IACN,IAAI,CAACJ,MAAM,EAAE;EACjB;EAEAK,KAAK,GAAG;IACJ,IAAI,CAACL,MAAM,EAAE;EACjB;EAEAM,OAAO,CAACX,OAAY,EAAEC,OAAY,EAAEC,KAAU,EAAE;IAC5C,IAAI,IAAI,CAACI,YAAY,GAAG,CAAC,CAAC,EAAE;MACxB;IACJ;IACA,MAAMM,WAAW,GAAG,IAAI,CAACf,SAAS;MAC9BC,KAAK,GAAG,IAAI,CAACA,KAAK;MAClBe,IAAI,GAAG,MAAM;QACT,IAAI,CAACjB,MAAM,CAACkB,SAAS,IAAI,IAAI,CAAClB,MAAM,CAACkB,SAAS,EAAE;MACpD,CAAC;IAEL,IAAI,CAACR,YAAY,GAAGM,WAAW,GAAGG,WAAW,CAACF,IAAI,EAAEf,KAAK,CAAC,GAAGkB,UAAU,CAAE,MAAM;MAC3EH,IAAI,EAAE;MACN,IAAI,CAACP,YAAY,GAAG,CAAC,CAAC;IAC1B,CAAC,EAAER,KAAK,CAAC;IAET,OAAO,IAAI,CAACQ,YAAY;EAC5B;EAEAH,IAAI,CAACH,OAAY,EAAEC,OAAY,EAAEC,KAAU,EAAE;IACzC,IAAG,IAAI,CAACL,SAAS,EAAE;MACf,IAAI,CAACoB,QAAQ,GAAG,IAAI;IACxB;IACA,OAAO,IAAI,CAACN,OAAO,CAACX,OAAO,EAAEC,OAAO,EAAEC,KAAK,CAAC;EAChD;AACJ"}
1
+ {"version":3,"names":["BaseAction","TimerAction","constructor","config","_defineProperty","repeating","delay","invoke","options","success","error","fire","params","cancel","_schedulerID","clearInterval","clearTimeout","destroy","pause","trigger","repeatTimer","exec","onSuccess","setInterval","setTimeout","_isFired"],"sources":["timer-action.ts"],"sourcesContent":["import { ActionConfig, BaseAction } from \"./base-action\";\nexport interface TimerActionConfig extends ActionConfig {\n repeating: Boolean;\n delay: number;\n onSuccess: any;\n}\nexport class TimerAction extends BaseAction<TimerActionConfig> {\n repeating: Boolean;\n _isFired = false;\n _schedulerID: any = -1;\n delay: number;\n constructor(config: TimerActionConfig) {\n super(config);\n this.repeating = config.repeating;\n this.delay = config.delay || 500;\n }\n\n invoke(options: any, success: any, error: any) {\n super.invoke(options, success, error);\n return this.fire(this.params, success, error) as any;\n }\n\n cancel() {\n if (this._schedulerID > -1) {\n if (this.repeating) {\n clearInterval(this._schedulerID);\n } else {\n clearTimeout(this._schedulerID);\n }\n this._schedulerID = -1;\n }\n }\n\n destroy() {\n this.cancel();\n }\n\n pause() {\n this.cancel();\n }\n\n trigger(options: any, success: any, error: any) {\n if (this._schedulerID > -1) {\n return;\n }\n const repeatTimer = this.repeating,\n delay = this.delay,\n exec = () => {\n this.config.onSuccess && this.config.onSuccess();\n };\n\n this._schedulerID = repeatTimer ? setInterval(exec, delay) : setTimeout( () => {\n exec();\n this._schedulerID = -1;\n }, delay);\n\n return this._schedulerID;\n }\n\n fire(options: any, success: any, error: any) {\n if(this.repeating) {\n this._isFired = true;\n }\n return this.trigger(options, success, error);\n }\n}"],"mappings":";;;AAAA,SAAuBA,UAAU,QAAQ,eAAe;AAMxD,OAAO,MAAMC,WAAW,SAASD,UAAU,CAAoB;EAK3DE,WAAWA,CAACC,MAAyB,EAAE;IACnC,KAAK,CAACA,MAAM,CAAC;IAACC,eAAA;IAAAA,eAAA,mBAJP,KAAK;IAAAA,eAAA,uBACI,CAAC,CAAC;IAAAA,eAAA;IAIlB,IAAI,CAACC,SAAS,GAAGF,MAAM,CAACE,SAAS;IACjC,IAAI,CAACC,KAAK,GAAGH,MAAM,CAACG,KAAK,IAAI,GAAG;EACpC;EAEAC,MAAMA,CAACC,OAAY,EAAEC,OAAY,EAAEC,KAAU,EAAE;IAC3C,KAAK,CAACH,MAAM,CAACC,OAAO,EAAEC,OAAO,EAAEC,KAAK,CAAC;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ACA,OAAO,IAAI,CAACN,OAAO,CAACX,OAAO,EAAEC,OAAO,EAAEC,KAAK,CAAC;EAChD;AACJ"}
@@ -1 +1 @@
1
- {"version":3,"names":["React","View","BaseComponent","BaseComponentState","WmCarouselContentProps","DEFAULT_CLASS","WmCarouselContentState","WmCarouselContent","constructor","props","renderWidget","styles","root","_background","children"],"sources":["carousel-content.component.tsx"],"sourcesContent":["import React from 'react';\nimport { View } from 'react-native';\nimport { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';\n\nimport WmCarouselContentProps from './carousel-content.props';\nimport { DEFAULT_CLASS, WmCarouselContentStyles } from './carousel-content.styles';\n\nexport class WmCarouselContentState extends BaseComponentState<WmCarouselContentProps> {}\n\nexport default class WmCarouselContent extends BaseComponent<WmCarouselContentProps, WmCarouselContentState, WmCarouselContentStyles> {\n\n constructor(props: WmCarouselContentProps) {\n super(props, DEFAULT_CLASS, new WmCarouselContentProps());\n }\n\n renderWidget(props: WmCarouselContentProps) {\n return (<View style={this.styles.root}>{this._background}{props.children}</View>); \n }\n}\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,QAAQ,cAAc;AACnC,SAASC,aAAa,EAAEC,kBAAkB,QAAQ,+CAA+C;AAEjG,OAAOC,sBAAsB,MAAM,0BAA0B;AAC7D,SAASC,aAAa,QAAiC,2BAA2B;AAElF,OAAO,MAAMC,sBAAsB,SAASH,kBAAkB,CAAyB;AAEvF,eAAe,MAAMI,iBAAiB,SAASL,aAAa,CAA0E;EAEpIM,WAAW,CAACC,KAA6B,EAAE;IACzC,KAAK,CAACA,KAAK,EAAEJ,aAAa,EAAE,IAAID,sBAAsB,EAAE,CAAC;EAC3D;EAEAM,YAAY,CAACD,KAA6B,EAAE;IAC1C,oBAAQ,oBAAC,IAAI;MAAC,KAAK,EAAE,IAAI,CAACE,MAAM,CAACC;IAAK,GAAE,IAAI,CAACC,WAAW,EAAEJ,KAAK,CAACK,QAAQ,CAAQ;EAClF;AACF"}
1
+ {"version":3,"names":["React","View","BaseComponent","BaseComponentState","WmCarouselContentProps","DEFAULT_CLASS","WmCarouselContentState","WmCarouselContent","constructor","props","renderWidget","createElement","style","styles","root","_background","children"],"sources":["carousel-content.component.tsx"],"sourcesContent":["import React from 'react';\nimport { View } from 'react-native';\nimport { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';\n\nimport WmCarouselContentProps from './carousel-content.props';\nimport { DEFAULT_CLASS, WmCarouselContentStyles } from './carousel-content.styles';\n\nexport class WmCarouselContentState extends BaseComponentState<WmCarouselContentProps> {}\n\nexport default class WmCarouselContent extends BaseComponent<WmCarouselContentProps, WmCarouselContentState, WmCarouselContentStyles> {\n\n constructor(props: WmCarouselContentProps) {\n super(props, DEFAULT_CLASS, new WmCarouselContentProps());\n }\n\n renderWidget(props: WmCarouselContentProps) {\n return (<View style={this.styles.root}>{this._background}{props.children}</View>); \n }\n}\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,QAAQ,cAAc;AACnC,SAASC,aAAa,EAAEC,kBAAkB,QAAQ,+CAA+C;AAEjG,OAAOC,sBAAsB,MAAM,0BAA0B;AAC7D,SAASC,aAAa,QAAiC,2BAA2B;AAElF,OAAO,MAAMC,sBAAsB,SAASH,kBAAkB,CAAyB;AAEvF,eAAe,MAAMI,iBAAiB,SAASL,aAAa,CAA0E;EAEpIM,WAAWA,CAACC,KAA6B,EAAE;IACzC,KAAK,CAACA,KAAK,EAAEJ,aAAa,EAAE,IAAID,sBAAsB,CAAC,CAAC,CAAC;EAC3D;EAEAM,YAAYA,CAACD,KAA6B,EAAE;IAC1C,oBAAQT,KAAA,CAAAW,aAAA,CAACV,IAAI;MAACW,KAAK,EAAE,IAAI,CAACC,MAAM,CAACC;IAAK,GAAE,IAAI,CAACC,WAAW,EAAEN,KAAK,CAACO,QAAe,CAAC;EAClF;AACF"}
@@ -1 +1 @@
1
- {"version":3,"names":["BaseProps","WmCarouselContentProps"],"sources":["carousel-content.props.ts"],"sourcesContent":["import { BaseProps } from '@wavemaker/app-rn-runtime/core/base.component';\n\nexport default class WmCarouselContentProps extends BaseProps {\n children? = null as any;\n}"],"mappings":";;;AAAA,SAASA,SAAS,QAAQ,+CAA+C;AAEzE,eAAe,MAAMC,sBAAsB,SAASD,SAAS,CAAC;EAAA;IAAA;IAAA,kCAC9C,IAAI;EAAA;AACpB"}
1
+ {"version":3,"names":["BaseProps","WmCarouselContentProps","constructor","arguments","_defineProperty"],"sources":["carousel-content.props.ts"],"sourcesContent":["import { BaseProps } from '@wavemaker/app-rn-runtime/core/base.component';\n\nexport default class WmCarouselContentProps extends BaseProps {\n children? = null as any;\n}"],"mappings":";;;AAAA,SAASA,SAAS,QAAQ,+CAA+C;AAEzE,eAAe,MAAMC,sBAAsB,SAASD,SAAS,CAAC;EAAAE,YAAA;IAAA,SAAAC,SAAA;IAAAC,eAAA,mBAC9C,IAAI;EAAA;AACpB"}
@@ -1 +1 @@
1
- {"version":3,"names":["React","View","BaseComponent","BaseComponentState","WmCarouselTemplateProps","DEFAULT_CLASS","WmCarouselTemplateState","WmCarouselTemplate","constructor","props","renderWidget","styles","root","_background","children"],"sources":["carousel-template.component.tsx"],"sourcesContent":["import React from 'react';\nimport { View } from 'react-native';\nimport { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';\n\nimport WmCarouselTemplateProps from './carousel-template.props';\nimport { DEFAULT_CLASS, WmCarouselTemplateStyles } from './carousel-template.styles';\n\nexport class WmCarouselTemplateState extends BaseComponentState<WmCarouselTemplateProps> {}\n\nexport default class WmCarouselTemplate extends BaseComponent<WmCarouselTemplateProps, WmCarouselTemplateState, WmCarouselTemplateStyles> {\n\n constructor(props: WmCarouselTemplateProps) {\n super(props, DEFAULT_CLASS, new WmCarouselTemplateProps());\n }\n\n renderWidget(props: WmCarouselTemplateProps) {\n return (<View style={this.styles.root}>{this._background}{props.children}</View>); \n }\n}\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,QAAQ,cAAc;AACnC,SAASC,aAAa,EAAEC,kBAAkB,QAAQ,+CAA+C;AAEjG,OAAOC,uBAAuB,MAAM,2BAA2B;AAC/D,SAASC,aAAa,QAAkC,4BAA4B;AAEpF,OAAO,MAAMC,uBAAuB,SAASH,kBAAkB,CAA0B;AAEzF,eAAe,MAAMI,kBAAkB,SAASL,aAAa,CAA6E;EAExIM,WAAW,CAACC,KAA8B,EAAE;IAC1C,KAAK,CAACA,KAAK,EAAEJ,aAAa,EAAE,IAAID,uBAAuB,EAAE,CAAC;EAC5D;EAEAM,YAAY,CAACD,KAA8B,EAAE;IAC3C,oBAAQ,oBAAC,IAAI;MAAC,KAAK,EAAE,IAAI,CAACE,MAAM,CAACC;IAAK,GAAE,IAAI,CAACC,WAAW,EAAEJ,KAAK,CAACK,QAAQ,CAAQ;EAClF;AACF"}
1
+ {"version":3,"names":["React","View","BaseComponent","BaseComponentState","WmCarouselTemplateProps","DEFAULT_CLASS","WmCarouselTemplateState","WmCarouselTemplate","constructor","props","renderWidget","createElement","style","styles","root","_background","children"],"sources":["carousel-template.component.tsx"],"sourcesContent":["import React from 'react';\nimport { View } from 'react-native';\nimport { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';\n\nimport WmCarouselTemplateProps from './carousel-template.props';\nimport { DEFAULT_CLASS, WmCarouselTemplateStyles } from './carousel-template.styles';\n\nexport class WmCarouselTemplateState extends BaseComponentState<WmCarouselTemplateProps> {}\n\nexport default class WmCarouselTemplate extends BaseComponent<WmCarouselTemplateProps, WmCarouselTemplateState, WmCarouselTemplateStyles> {\n\n constructor(props: WmCarouselTemplateProps) {\n super(props, DEFAULT_CLASS, new WmCarouselTemplateProps());\n }\n\n renderWidget(props: WmCarouselTemplateProps) {\n return (<View style={this.styles.root}>{this._background}{props.children}</View>); \n }\n}\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,QAAQ,cAAc;AACnC,SAASC,aAAa,EAAEC,kBAAkB,QAAQ,+CAA+C;AAEjG,OAAOC,uBAAuB,MAAM,2BAA2B;AAC/D,SAASC,aAAa,QAAkC,4BAA4B;AAEpF,OAAO,MAAMC,uBAAuB,SAASH,kBAAkB,CAA0B;AAEzF,eAAe,MAAMI,kBAAkB,SAASL,aAAa,CAA6E;EAExIM,WAAWA,CAACC,KAA8B,EAAE;IAC1C,KAAK,CAACA,KAAK,EAAEJ,aAAa,EAAE,IAAID,uBAAuB,CAAC,CAAC,CAAC;EAC5D;EAEAM,YAAYA,CAACD,KAA8B,EAAE;IAC3C,oBAAQT,KAAA,CAAAW,aAAA,CAACV,IAAI;MAACW,KAAK,EAAE,IAAI,CAACC,MAAM,CAACC;IAAK,GAAE,IAAI,CAACC,WAAW,EAAEN,KAAK,CAACO,QAAe,CAAC;EAClF;AACF"}
@@ -1 +1 @@
1
- {"version":3,"names":["BaseProps","WmCarouselTemplateProps"],"sources":["carousel-template.props.ts"],"sourcesContent":["import { BaseProps } from '@wavemaker/app-rn-runtime/core/base.component';\n\nexport default class WmCarouselTemplateProps extends BaseProps {\n children = null as any;\n}"],"mappings":";;;AAAA,SAASA,SAAS,QAAQ,+CAA+C;AAEzE,eAAe,MAAMC,uBAAuB,SAASD,SAAS,CAAC;EAAA;IAAA;IAAA,kCAChD,IAAI;EAAA;AACnB"}
1
+ {"version":3,"names":["BaseProps","WmCarouselTemplateProps","constructor","arguments","_defineProperty"],"sources":["carousel-template.props.ts"],"sourcesContent":["import { BaseProps } from '@wavemaker/app-rn-runtime/core/base.component';\n\nexport default class WmCarouselTemplateProps extends BaseProps {\n children = null as any;\n}"],"mappings":";;;AAAA,SAASA,SAAS,QAAQ,+CAA+C;AAEzE,eAAe,MAAMC,uBAAuB,SAASD,SAAS,CAAC;EAAAE,YAAA;IAAA,SAAAC,SAAA;IAAAC,eAAA,mBAChD,IAAI;EAAA;AACnB"}
@@ -115,7 +115,7 @@ export default class WmCarousel extends BaseComponent {
115
115
  onLayout: this.onLayoutChange
116
116
  }, this._background, this.state.sliderWidth > 0 ? /*#__PURE__*/React.createElement(Carousel, {
117
117
  ref: ref => this.carouselRef = ref,
118
- data: data ?? [],
118
+ data: data || [],
119
119
  firstItem: 0,
120
120
  style: {
121
121
  width: '100%',
@@ -1 +1 @@
1
- {"version":3,"names":["React","View","Text","Carousel","Pagination","WmIcon","BaseComponent","BaseComponentState","WmCarouselProps","DEFAULT_CLASS","WmCarouselState","WmCarousel","constructor","props","index","prevIndex","state","activeIndex","updateState","invokeEventCallback","data","type","renderSlide","item","children","e","sliderWidth","nativeEvent","layout","width","active","styles","activeDotStyle","dotStyle","carouselRef","currentIndex","noOfSlides","snapToNext","snapToItem","snapToPrev","cleanup","push","stopPlay","autoPlay","animation","animationinterval","intervalId","setInterval","next","clearInterval","onPropertyChange","name","$new","$old","renderPagination","dotsWrapperStyle","renderWidget","hasNavs","controls","hasDots","dataset","length","root","onLayoutChange","_background","ref","height","renderItem","onSlideChange","btnPanel","prevBtn","prev","nextBtn"],"sources":["carousel.component.tsx"],"sourcesContent":["import React from 'react';\nimport { View, Text, LayoutChangeEvent } from 'react-native';\nimport Carousel, { Pagination } from 'react-native-snap-carousel';\nimport WmIcon from '@wavemaker/app-rn-runtime/components/basic/icon/icon.component';\nimport { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';\n\nimport WmCarouselProps from './carousel.props';\nimport { DEFAULT_CLASS, WmCarouselStyles } from './carousel.styles';\n\nexport class WmCarouselState extends BaseComponentState<WmCarouselProps> {\n activeIndex = 0;\n sliderWidth = 0;\n}\n\nexport default class WmCarousel extends BaseComponent<WmCarouselProps, WmCarouselState, WmCarouselStyles> {\n\n carouselRef: Carousel<unknown> | null = null as any;\n noOfSlides: number = 0;\n stopPlay: Function = null as any;\n\n constructor(props: WmCarouselProps) {\n super(props, DEFAULT_CLASS, new WmCarouselProps(), new WmCarouselState());\n this.cleanup.push(() => {\n this.stopPlay && this.stopPlay();\n })\n }\n\n autoPlay() {\n const props = this.state.props;\n this.stopPlay && this.stopPlay();\n if (props.animation && props.animationinterval) {\n const intervalId = setInterval(() => {\n this.next();\n }, props.animationinterval * 1000);\n this.stopPlay = () => clearInterval(intervalId);\n }\n }\n\n onPropertyChange(name: string, $new: any, $old: any): void {\n super.onPropertyChange(name, $new, $old);\n switch (name) {\n case 'animation':\n case 'animationinterval' : {\n this.autoPlay();\n }\n }\n }\n\n onSlideChange = (index: number) => {\n const prevIndex = this.state.activeIndex;\n this.updateState({\n activeIndex: index\n } as WmCarouselState,\n () => this.invokeEventCallback('onChange', [this, index, prevIndex]));\n }\n\n renderItem = (data: any) => {\n const props = this.state.props;\n if (props.type === 'dynamic') {\n return props.renderSlide ? props.renderSlide(data.item, data.index) : null;\n }\n return props.children[data.index];\n }\n\n onLayoutChange = (e: LayoutChangeEvent) => {\n this.updateState({\n sliderWidth: e.nativeEvent.layout.width\n } as WmCarouselState);\n }\n\n getDotElement = ({active, index}: {active: boolean, index: number}) => {\n return (<Text style={active ? this.styles.activeDotStyle: this.styles.dotStyle}>{index}</Text>);\n }\n\n renderPagination(props: WmCarouselProps, styles: WmCarouselStyles) {\n return (\n <Pagination\n carouselRef={this.carouselRef as any}\n dotsLength={this.noOfSlides}\n activeDotIndex={this.state.activeIndex}\n containerStyle={styles.dotsWrapperStyle}\n dotStyle={styles.activeDotStyle}\n inactiveDotStyle={styles.dotStyle}\n inactiveDotScale={0.8}\n tappableDots={true}\n />\n );\n }\n\n next = () => {\n if (this.carouselRef && this.carouselRef.currentIndex < this.noOfSlides - 1) {\n this.carouselRef?.snapToNext();\n } else {\n this.carouselRef?.snapToItem(0);\n }\n }\n\n prev = () => {\n if (this.carouselRef && this.carouselRef.currentIndex > 0) {\n this.carouselRef?.snapToPrev();\n } else {\n this.carouselRef?.snapToItem(this.noOfSlides - 1);\n }\n }\n\n renderWidget(props: WmCarouselProps) {\n const hasNavs = props.controls === 'both' || props.controls ==='navs';\n const hasDots = props.controls === 'both' || props.controls ==='indicators';\n let styles = this.styles;\n const data = props.type === 'dynamic' ? props.dataset : props.children;\n this.noOfSlides = data?.length || 0;\n const autoPlay = props.animation === 'auto';\n // TODO: loop prop on Carousel is not working Refer: https://github.com/meliorence/react-native-snap-carousel/issues/608\n return (\n <View style={styles.root} onLayout={this.onLayoutChange}>\n {this._background}\n {this.state.sliderWidth > 0 ?\n (<Carousel\n ref={ref => this.carouselRef = ref}\n data={data ?? []}\n firstItem={0}\n style={{width: '100%', height: '100%'}}\n enableSnap={true}\n loopClonesPerSide={1}\n autoplay={false}\n activeSlideAlignment='start'\n renderItem={this.renderItem}\n sliderWidth={this.state.sliderWidth}\n itemWidth={this.state.sliderWidth}\n lockScrollWhileSnapping={false}\n scrollEnabled={false}\n onSnapToItem={this.onSlideChange}\n ></Carousel>) : null}\n {hasNavs ? (\n <View style={styles.btnPanel}>\n <WmIcon\n iconclass=\"wi wi-chevron-left fa-2x\"\n styles={styles.prevBtn}\n onTap={this.prev}/>\n <WmIcon\n iconclass=\"wi wi-chevron-right fa-2x\"\n styles={styles.nextBtn}\n onTap={this.next}/>\n </View>): null}\n {this.state.sliderWidth > 0 && hasDots && data ? this.renderPagination(props, styles) : null}\n </View>);\n }\n}\n"],"mappings":";;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,IAAI,QAA2B,cAAc;AAC5D,OAAOC,QAAQ,IAAIC,UAAU,QAAQ,4BAA4B;AACjE,OAAOC,MAAM,MAAM,gEAAgE;AACnF,SAASC,aAAa,EAAEC,kBAAkB,QAAQ,+CAA+C;AAEjG,OAAOC,eAAe,MAAM,kBAAkB;AAC9C,SAASC,aAAa,QAA0B,mBAAmB;AAEnE,OAAO,MAAMC,eAAe,SAASH,kBAAkB,CAAkB;EAAA;IAAA;IAAA,qCACzD,CAAC;IAAA,qCACD,CAAC;EAAA;AACjB;AAEA,eAAe,MAAMI,UAAU,SAASL,aAAa,CAA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MACR,GAAG,EAAEuC,GAAG,IAAI,IAAI,CAAC/B,WAAW,GAAG+B,GAAI;MACnC,IAAI,EAAE7C,IAAI,IAAI,EAAG;MACjB,SAAS,EAAE,CAAE;MACb,KAAK,EAAE;QAACS,KAAK,EAAE,MAAM;QAAEqC,MAAM,EAAE;MAAM,CAAE;MACvC,UAAU,EAAE,IAAK;MACjB,iBAAiB,EAAE,CAAE;MACrB,QAAQ,EAAE,KAAM;MAChB,oBAAoB,EAAC,OAAO;MAC5B,UAAU,EAAE,IAAI,CAACC,UAAW;MAC5B,WAAW,EAAE,IAAI,CAACnD,KAAK,CAACU,WAAY;MACpC,SAAS,EAAE,IAAI,CAACV,KAAK,CAACU,WAAY;MAClC,uBAAuB,EAAE,KAAM;MAC/B,aAAa,EAAE,KAAM;MACrB,YAAY,EAAE,IAAI,CAAC0C;IAAc,EACvB,GAAI,IAAI,EACrBX,OAAO,gBACN,oBAAC,IAAI;MAAC,KAAK,EAAE1B,MAAM,CAACsC;IAAS,gBAC3B,oBAAC,MAAM;MACL,SAAS,EAAC,0BAA0B;MACpC,MAAM,EAAEtC,MAAM,CAACuC,OAAQ;MACvB,KAAK,EAAE,IAAI,CAACC;IAAK,EAAE,eACrB,oBAAC,MAAM;MACL,SAAS,EAAC,2BAA2B;MACrC,MAAM,EAAExC,MAAM,CAACyC,OAAQ;MACvB,KAAK,EAAE,IAAI,CAACxB;IAAK,EAAE,CAChB,GAAG,IAAI,EACf,IAAI,CAAChC,KAAK,CAACU,WAAW,GAAG,CAAC,IAAIiC,OAAO,IAAIvC,IAAI,GAAG,IAAI,CAACkC,gBAAgB,CAACzC,KAAK,EAAEkB,MAAM,CAAC,GAAG,IAAI,CACvF;EACX;AACF"}
1
+ {"version":3,"names":["React","View","Text","Carousel","Pagination","WmIcon","BaseComponent","BaseComponentState","WmCarouselProps","DEFAULT_CLASS","WmCarouselState","constructor","arguments","_defineProperty","WmCarousel","props","index","prevIndex","state","activeIndex","updateState","invokeEventCallback","data","type","renderSlide","item","children","e","sliderWidth","nativeEvent","layout","width","_ref","active","createElement","style","styles","activeDotStyle","dotStyle","carouselRef","currentIndex","noOfSlides","_this$carouselRef","snapToNext","_this$carouselRef2","snapToItem","_this$carouselRef3","snapToPrev","_this$carouselRef4","cleanup","push","stopPlay","autoPlay","animation","animationinterval","intervalId","setInterval","next","clearInterval","onPropertyChange","name","$new","$old","renderPagination","dotsLength","activeDotIndex","containerStyle","dotsWrapperStyle","inactiveDotStyle","inactiveDotScale","tappableDots","renderWidget","hasNavs","controls","hasDots","dataset","length","root","onLayout","onLayoutChange","_background","ref","firstItem","height","enableSnap","loopClonesPerSide","autoplay","activeSlideAlignment","renderItem","itemWidth","lockScrollWhileSnapping","scrollEnabled","onSnapToItem","onSlideChange","btnPanel","iconclass","prevBtn","onTap","prev","nextBtn"],"sources":["carousel.component.tsx"],"sourcesContent":["import React from 'react';\nimport { View, Text, LayoutChangeEvent } from 'react-native';\nimport Carousel, { Pagination } from 'react-native-snap-carousel';\nimport WmIcon from '@wavemaker/app-rn-runtime/components/basic/icon/icon.component';\nimport { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';\n\nimport WmCarouselProps from './carousel.props';\nimport { DEFAULT_CLASS, WmCarouselStyles } from './carousel.styles';\n\nexport class WmCarouselState extends BaseComponentState<WmCarouselProps> {\n activeIndex = 0;\n sliderWidth = 0;\n}\n\nexport default class WmCarousel extends BaseComponent<WmCarouselProps, WmCarouselState, WmCarouselStyles> {\n\n carouselRef: Carousel<unknown> | null = null as any;\n noOfSlides: number = 0;\n stopPlay: Function = null as any;\n\n constructor(props: WmCarouselProps) {\n super(props, DEFAULT_CLASS, new WmCarouselProps(), new WmCarouselState());\n this.cleanup.push(() => {\n this.stopPlay && this.stopPlay();\n })\n }\n\n autoPlay() {\n const props = this.state.props;\n this.stopPlay && this.stopPlay();\n if (props.animation && props.animationinterval) {\n const intervalId = setInterval(() => {\n this.next();\n }, props.animationinterval * 1000);\n this.stopPlay = () => clearInterval(intervalId);\n }\n }\n\n onPropertyChange(name: string, $new: any, $old: any): void {\n super.onPropertyChange(name, $new, $old);\n switch (name) {\n case 'animation':\n case 'animationinterval' : {\n this.autoPlay();\n }\n }\n }\n\n onSlideChange = (index: number) => {\n const prevIndex = this.state.activeIndex;\n this.updateState({\n activeIndex: index\n } as WmCarouselState,\n () => this.invokeEventCallback('onChange', [this, index, prevIndex]));\n }\n\n renderItem = (data: any) => {\n const props = this.state.props;\n if (props.type === 'dynamic') {\n return props.renderSlide ? props.renderSlide(data.item, data.index) : null;\n }\n return props.children[data.index];\n }\n\n onLayoutChange = (e: LayoutChangeEvent) => {\n this.updateState({\n sliderWidth: e.nativeEvent.layout.width\n } as WmCarouselState);\n }\n\n getDotElement = ({active, index}: {active: boolean, index: number}) => {\n return (<Text style={active ? this.styles.activeDotStyle: this.styles.dotStyle}>{index}</Text>);\n }\n\n renderPagination(props: WmCarouselProps, styles: WmCarouselStyles) {\n return (\n <Pagination\n carouselRef={this.carouselRef as any}\n dotsLength={this.noOfSlides}\n activeDotIndex={this.state.activeIndex}\n containerStyle={styles.dotsWrapperStyle}\n dotStyle={styles.activeDotStyle}\n inactiveDotStyle={styles.dotStyle}\n inactiveDotScale={0.8}\n tappableDots={true}\n />\n );\n }\n\n next = () => {\n if (this.carouselRef && this.carouselRef.currentIndex < this.noOfSlides - 1) {\n this.carouselRef?.snapToNext();\n } else {\n this.carouselRef?.snapToItem(0);\n }\n }\n\n prev = () => {\n if (this.carouselRef && this.carouselRef.currentIndex > 0) {\n this.carouselRef?.snapToPrev();\n } else {\n this.carouselRef?.snapToItem(this.noOfSlides - 1);\n }\n }\n\n renderWidget(props: WmCarouselProps) {\n const hasNavs = props.controls === 'both' || props.controls ==='navs';\n const hasDots = props.controls === 'both' || props.controls ==='indicators';\n let styles = this.styles;\n const data = props.type === 'dynamic' ? props.dataset : props.children;\n this.noOfSlides = data?.length || 0;\n const autoPlay = props.animation === 'auto';\n // TODO: loop prop on Carousel is not working Refer: https://github.com/meliorence/react-native-snap-carousel/issues/608\n return (\n <View style={styles.root} onLayout={this.onLayoutChange}>\n {this._background}\n {this.state.sliderWidth > 0 ?\n (<Carousel\n ref={ref => this.carouselRef = ref}\n data={data || []}\n firstItem={0}\n style={{width: '100%', height: '100%'}}\n enableSnap={true}\n loopClonesPerSide={1}\n autoplay={false}\n activeSlideAlignment='start'\n renderItem={this.renderItem}\n sliderWidth={this.state.sliderWidth}\n itemWidth={this.state.sliderWidth}\n lockScrollWhileSnapping={false}\n scrollEnabled={false}\n onSnapToItem={this.onSlideChange}\n ></Carousel>) : null}\n {hasNavs ? (\n <View style={styles.btnPanel}>\n <WmIcon\n iconclass=\"wi wi-chevron-left fa-2x\"\n styles={styles.prevBtn}\n onTap={this.prev}/>\n <WmIcon\n iconclass=\"wi wi-chevron-right fa-2x\"\n styles={styles.nextBtn}\n onTap={this.next}/>\n </View>): null}\n {this.state.sliderWidth > 0 && hasDots && data ? this.renderPagination(props, styles) : null}\n </View>);\n }\n}\n"],"mappings":";;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,IAAI,QAA2B,cAAc;AAC5D,OAAOC,QAAQ,IAAIC,UAAU,QAAQ,4BAA4B;AACjE,OAAOC,MAAM,MAAM,gEAAgE;AACnF,SAASC,aAAa,EAAEC,kBAAkB,QAAQ,+CAA+C;AAEjG,OAAOC,eAAe,MAAM,kBAAkB;AAC9C,SAASC,aAAa,QAA0B,mBAAmB;AAEnE,OAAO,MAAMC,eAAe,SAASH,kBAAkB,CAAkB;EAAAI,YAAA;IAAA,SAAAC,SAAA;IAAAC,eAAA,sBACzD,CAAC;IAAAA,eAAA,sBACD,CAAC;EAAA;AACjB;AAEA,eAAe,MAAMC,UAAU,SAASR,aAAa,CAAqD;EAMxGK,WAAWA,CAACI,MAAsB,EAAE;IAClC,KAAK,CAACA,MAAK,EAAEN,aAAa,EAAE,IAAID,eAAe,CAAC,CAAC,EAAE,IAAIE,eAAe,CAA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C,2BAA2B;MACrC3D,MAAM,EAAEA,MAAM,CAAC+D,OAAQ;MACvBF,KAAK,EAAE,IAAI,CAACxC;IAAK,CAAC,CAChB,CAAC,GAAG,IAAI,EACf,IAAI,CAACvC,KAAK,CAACU,WAAW,GAAG,CAAC,IAAI8C,OAAO,IAAIpD,IAAI,GAAG,IAAI,CAACyC,gBAAgB,CAAChD,KAAK,EAAEqB,MAAM,CAAC,GAAG,IACpF,CAAC;EACX;AACF"}
@@ -1 +1 @@
1
- {"version":3,"names":["BaseProps","WmCarouselProps"],"sources":["carousel.props.ts"],"sourcesContent":["import { BaseProps } from '@wavemaker/app-rn-runtime/core/base.component';\nimport React from 'react';\n\nexport default class WmCarouselProps extends BaseProps {\n dataset: any = null;\n type?: 'static' | 'dynamic' = 'static';\n animation?: string = 'auto';\n animationinterval?: number = 3;\n controls?: 'both' | 'none' | 'navs' | 'indicators' = 'both';\n children? = null as any;\n renderSlide?: ($item: any, $index: number) => React.ReactNode;\n}"],"mappings":";;;AAAA,SAASA,SAAS,QAAQ,+CAA+C;AAGzE,eAAe,MAAMC,eAAe,SAASD,SAAS,CAAC;EAAA;IAAA;IAAA,iCACtC,IAAI;IAAA,8BACW,QAAQ;IAAA,mCACjB,MAAM;IAAA,2CACE,CAAC;IAAA,kCACuB,MAAM;IAAA,kCAC/C,IAAI;IAAA;EAAA;AAElB"}
1
+ {"version":3,"names":["BaseProps","WmCarouselProps","constructor","arguments","_defineProperty"],"sources":["carousel.props.ts"],"sourcesContent":["import { BaseProps } from '@wavemaker/app-rn-runtime/core/base.component';\nimport React from 'react';\n\nexport default class WmCarouselProps extends BaseProps {\n dataset: any = null;\n type?: 'static' | 'dynamic' = 'static';\n animation?: string = 'auto';\n animationinterval?: number = 3;\n controls?: 'both' | 'none' | 'navs' | 'indicators' = 'both';\n children? = null as any;\n renderSlide?: ($item: any, $index: number) => React.ReactNode;\n}"],"mappings":";;;AAAA,SAASA,SAAS,QAAQ,+CAA+C;AAGzE,eAAe,MAAMC,eAAe,SAASD,SAAS,CAAC;EAAAE,YAAA;IAAA,SAAAC,SAAA;IAAAC,eAAA,kBACtC,IAAI;IAAAA,eAAA,eACW,QAAQ;IAAAA,eAAA,oBACjB,MAAM;IAAAA,eAAA,4BACE,CAAC;IAAAA,eAAA,mBACuB,MAAM;IAAAA,eAAA,mBAC/C,IAAI;IAAAA,eAAA;EAAA;AAElB"}
@@ -76,6 +76,22 @@ BASE_THEME.registerStyle((themeVariables, addStyle) => {
76
76
  }
77
77
  });
78
78
  addStyle(DEFAULT_CLASS, '', defaultStyles);
79
+ addStyle(DEFAULT_CLASS + '-rtl', '', {
80
+ prevBtn: {
81
+ root: {
82
+ transform: [{
83
+ rotateY: '180deg'
84
+ }]
85
+ }
86
+ },
87
+ nextBtn: {
88
+ root: {
89
+ transform: [{
90
+ rotateY: '180deg'
91
+ }]
92
+ }
93
+ }
94
+ });
79
95
  addStyle('app-carousel-1', '', {
80
96
  btnPanel: {
81
97
  top: '100%'
@@ -1 +1 @@
1
- {"version":3,"names":["BASE_THEME","defineStyles","DEFAULT_CLASS","registerStyle","themeVariables","addStyle","btn","height","width","borderRadius","borderColor","transparent","borderWidth","justifyContent","defaultStyles","root","position","text","btnPanel","top","marginTop","flexDirection","alignItems","prevBtn","marginLeft","backgroundColor","carouselPrevBgColor","fontSize","icon","color","carouselPrevBtnColor","nextBtn","marginRight","carouselNextBtnColor","dotsWrapperStyle","opacity","carouselDotWrapperBgColor","alignSelf","paddingTop","paddingBottom","activeDotStyle","carouselActiveDotColor","dotStyle","marginHorizontal","carouselDotColor","defaultColorF","right","padding","primaryColor"],"sources":["carousel.styles.ts"],"sourcesContent":["import { ViewStyle } from 'react-native';\nimport BASE_THEME, { AllStyle } from '@wavemaker/app-rn-runtime/styles/theme';\nimport { BaseStyles, defineStyles } from '@wavemaker/app-rn-runtime/core/base.component';\nimport { WmIconStyles } from '@wavemaker/app-rn-runtime/components/basic/icon/icon.styles';\n\nexport type WmCarouselStyles = BaseStyles & {\n btnPanel: AllStyle,\n prevBtn: WmIconStyles,\n nextBtn: WmIconStyles,\n dotsWrapperStyle: AllStyle,\n dotStyle: AllStyle,\n activeDotStyle: AllStyle\n};\nexport const DEFAULT_CLASS = 'app-carousel';\nBASE_THEME.registerStyle((themeVariables, addStyle) => {\n const btn: ViewStyle = {\n height: 48,\n width: 48,\n borderRadius: 48,\n borderColor: themeVariables.transparent,\n borderWidth: 1,\n justifyContent: 'center'\n };\n const defaultStyles: WmCarouselStyles = defineStyles({\n root: {\n position: 'relative'\n },\n text: {},\n btnPanel: {\n position: 'absolute',\n top: '50%',\n marginTop: -64,\n height: 64,\n flexDirection: 'row',\n alignItems: 'center',\n justifyContent: 'space-between',\n width: '100%'\n },\n prevBtn : {\n root: {\n marginLeft: 12,\n ...btn,\n backgroundColor: themeVariables.carouselPrevBgColor\n },\n text: {\n fontSize: 32\n },\n icon : {\n color: themeVariables.carouselPrevBtnColor\n }\n } as WmIconStyles,\n nextBtn : {\n root: {\n marginRight: 12,\n ...btn,\n backgroundColor: themeVariables.carouselPrevBgColor\n },\n text: {\n fontSize: 32\n },\n icon : {\n color: themeVariables.carouselNextBtnColor\n }\n } as WmIconStyles,\n dotsWrapperStyle:{\n opacity: 1,\n height: 64,\n marginTop: -64,\n position: 'absolute',\n top: '100%',\n backgroundColor: themeVariables.carouselDotWrapperBgColor,\n alignSelf: 'center',\n paddingTop: 4,\n paddingBottom: 4\n },\n activeDotStyle: {\n width: 12,\n height: 12,\n borderRadius: 10,\n backgroundColor: themeVariables.carouselActiveDotColor,\n opacity: 1\n },\n dotStyle: {\n opacity: 0.2,\n marginHorizontal: -2,\n backgroundColor: themeVariables.carouselDotColor\n }\n } as WmCarouselStyles);\n\n addStyle(DEFAULT_CLASS, '', defaultStyles);\n\n addStyle('app-carousel-1', '', {\n btnPanel: {\n top: '100%'\n },\n prevBtn: {\n root: {\n borderRadius: 6\n }\n },\n nextBtn: {\n root: {\n borderRadius: 6\n }\n }\n } as WmCarouselStyles);\n\n addStyle('app-carousel-2', '', {\n btnPanel: {\n backgroundColor: themeVariables.defaultColorF,\n width: '100%',\n top: '100%',\n right: 0,\n padding: 8,\n justifyContent: 'flex-end'\n },\n dotsWrapperStyle:{\n alignSelf: 'flex-start',\n justifyContent: 'flex-start'\n },\n activeDotStyle: {\n backgroundColor: themeVariables.primaryColor,\n },\n dotStyle: {\n backgroundColor: themeVariables.primaryColor,\n },\n prevBtn: {\n root: {\n backgroundColor: 'rgba(255, 255, 255, 0.1)',\n borderColor: themeVariables.primaryColor,\n },\n icon : {\n color: themeVariables.primaryColor\n }\n },\n nextBtn: {\n root: {\n marginLeft: 8,\n backgroundColor: 'rgba(255, 255, 255, 0.1)',\n borderColor: themeVariables.primaryColor,\n },\n icon : {\n color: themeVariables.primaryColor\n }\n }\n } as WmCarouselStyles);\n});"],"mappings":"AACA,OAAOA,UAAU,MAAoB,wCAAwC;AAC7E,SAAqBC,YAAY,QAAQ,+CAA+C;AAWxF,OAAO,MAAMC,aAAa,GAAG,cAAc;AAC3CF,UAAU,CAACG,aAAa,CAAC,CAACC,cAAc,EAAEC,QAAQ,KAAK;EACnD,MAAMC,GAAc,GAAG;IACnBC,MAAM,EAAE,EAAE;IACVC,KAAK,EAAE,EAAE;IACTC,YAAY,EAAE,EAAE;IAChBC,WAAW,EAAEN,cAAc,CAACO,WAAW;IACvCC,WAAW,EAAE,CAAC;IACdC,cAAc,EAAE;EACpB,CAAC;EACD,MAAMC,aAA+B,GAAGb,YAAY,CAAC;IACjDc,IAAI,EAAE;MACFC,QAAQ,EAAE;IACd,CAAC;IACDC,IAAI,EAAE,CAAC,CAAC;IACRC,QAAQ,EAAE;MACNF,QAAQ,EAAE,UAAU;MACpBG,GAAG,EAAE,KAAK;MACVC,SAAS,EAAE,CAAC,EAAE;MACdb,MAAM,EAAE,EAAE;MACVc,aAAa,EAAE,KAAK;MACpBC,UAAU,EAAE,QAAQ;MACpBT,cAAc,EAAE,eAAe;MAC/BL,KAAK,EAAE;IACX,C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,CAAC;IACDI,OAAO,EAAE;MACLR,IAAI,EAAE;QACFN,YAAY,EAAE;MAClB;IACJ,CAAC;IACDsB,OAAO,EAAE;MACLhB,IAAI,EAAE;QACFN,YAAY,EAAE;MAClB;IACJ;EACJ,CAAC,CAAqB;EAEtBJ,QAAQ,CAAC,gBAAgB,EAAE,EAAE,EAAE;IAC3Ba,QAAQ,EAAE;MACNO,eAAe,EAAErB,cAAc,CAACyC,aAAa;MAC7CrC,KAAK,EAAE,MAAM;MACbW,GAAG,EAAE,MAAM;MACX2B,KAAK,EAAE,CAAC;MACRC,OAAO,EAAE,CAAC;MACVlC,cAAc,EAAE;IACpB,CAAC;IACDqB,gBAAgB,EAAC;MACbG,SAAS,EAAE,YAAY;MACvBxB,cAAc,EAAE;IACpB,CAAC;IACD2B,cAAc,EAAE;MACZf,eAAe,EAAErB,cAAc,CAAC4C;IACpC,CAAC;IACDN,QAAQ,EAAE;MACNjB,eAAe,EAAErB,cAAc,CAAC4C;IACpC,CAAC;IACDzB,OAAO,EAAE;MACLR,IAAI,EAAE;QACFU,eAAe,EAAE,0BAA0B;QAC3Cf,WAAW,EAAEN,cAAc,CAAC4C;MAChC,CAAC;MACDpB,IAAI,EAAG;QACHC,KAAK,EAAEzB,cAAc,CAAC4C;MAC1B;IACJ,CAAC;IACDjB,OAAO,EAAE;MACLhB,IAAI,EAAE;QACFS,UAAU,EAAE,CAAC;QACbC,eAAe,EAAE,0BAA0B;QAC3Cf,WAAW,EAAEN,cAAc,CAAC4C;MAChC,CAAC;MACDpB,IAAI,EAAG;QACHC,KAAK,EAAEzB,cAAc,CAAC4C;MAC1B;IACJ;EACJ,CAAC,CAAqB;AAC1B,CAAC,CAAC"}
1
+ {"version":3,"names":["BASE_THEME","defineStyles","DEFAULT_CLASS","registerStyle","themeVariables","addStyle","btn","height","width","borderRadius","borderColor","transparent","borderWidth","justifyContent","defaultStyles","root","position","text","btnPanel","top","marginTop","flexDirection","alignItems","prevBtn","marginLeft","backgroundColor","carouselPrevBgColor","fontSize","icon","color","carouselPrevBtnColor","nextBtn","marginRight","carouselNextBtnColor","dotsWrapperStyle","opacity","carouselDotWrapperBgColor","alignSelf","paddingTop","paddingBottom","activeDotStyle","carouselActiveDotColor","dotStyle","marginHorizontal","carouselDotColor","transform","rotateY","defaultColorF","right","padding","primaryColor"],"sources":["carousel.styles.ts"],"sourcesContent":["import { ViewStyle } from 'react-native';\nimport BASE_THEME, { AllStyle } from '@wavemaker/app-rn-runtime/styles/theme';\nimport { BaseStyles, defineStyles } from '@wavemaker/app-rn-runtime/core/base.component';\nimport { WmIconStyles } from '@wavemaker/app-rn-runtime/components/basic/icon/icon.styles';\n\nexport type WmCarouselStyles = BaseStyles & {\n btnPanel: AllStyle,\n prevBtn: WmIconStyles,\n nextBtn: WmIconStyles,\n dotsWrapperStyle: AllStyle,\n dotStyle: AllStyle,\n activeDotStyle: AllStyle\n};\nexport const DEFAULT_CLASS = 'app-carousel';\nBASE_THEME.registerStyle((themeVariables, addStyle) => {\n const btn: ViewStyle = {\n height: 48,\n width: 48,\n borderRadius: 48,\n borderColor: themeVariables.transparent,\n borderWidth: 1,\n justifyContent: 'center'\n };\n const defaultStyles: WmCarouselStyles = defineStyles({\n root: {\n position: 'relative'\n },\n text: {},\n btnPanel: {\n position: 'absolute',\n top: '50%',\n marginTop: -64,\n height: 64,\n flexDirection: 'row',\n alignItems: 'center',\n justifyContent: 'space-between',\n width: '100%'\n },\n prevBtn : {\n root: {\n marginLeft: 12,\n ...btn,\n backgroundColor: themeVariables.carouselPrevBgColor\n },\n text: {\n fontSize: 32\n },\n icon : {\n color: themeVariables.carouselPrevBtnColor\n }\n } as WmIconStyles,\n nextBtn : {\n root: {\n marginRight: 12,\n ...btn,\n backgroundColor: themeVariables.carouselPrevBgColor\n },\n text: {\n fontSize: 32\n },\n icon : {\n color: themeVariables.carouselNextBtnColor\n }\n } as WmIconStyles,\n dotsWrapperStyle:{\n opacity: 1,\n height: 64,\n marginTop: -64,\n position: 'absolute',\n top: '100%',\n backgroundColor: themeVariables.carouselDotWrapperBgColor,\n alignSelf: 'center',\n paddingTop: 4,\n paddingBottom: 4\n },\n activeDotStyle: {\n width: 12,\n height: 12,\n borderRadius: 10,\n backgroundColor: themeVariables.carouselActiveDotColor,\n opacity: 1\n },\n dotStyle: {\n opacity: 0.2,\n marginHorizontal: -2,\n backgroundColor: themeVariables.carouselDotColor\n }\n } as WmCarouselStyles);\n\n addStyle(DEFAULT_CLASS, '', defaultStyles);\n addStyle(DEFAULT_CLASS + '-rtl', '', {\n prevBtn : {\n root:{\n transform: [{rotateY: '180deg'}]\n }\n },\n nextBtn : {\n root:{\n transform: [{rotateY: '180deg'}]\n }\n }\n });\n\n addStyle('app-carousel-1', '', {\n btnPanel: {\n top: '100%'\n },\n prevBtn: {\n root: {\n borderRadius: 6\n }\n },\n nextBtn: {\n root: {\n borderRadius: 6\n }\n }\n } as WmCarouselStyles);\n\n addStyle('app-carousel-2', '', {\n btnPanel: {\n backgroundColor: themeVariables.defaultColorF,\n width: '100%',\n top: '100%',\n right: 0,\n padding: 8,\n justifyContent: 'flex-end'\n },\n dotsWrapperStyle:{\n alignSelf: 'flex-start',\n justifyContent: 'flex-start'\n },\n activeDotStyle: {\n backgroundColor: themeVariables.primaryColor,\n },\n dotStyle: {\n backgroundColor: themeVariables.primaryColor,\n },\n prevBtn: {\n root: {\n backgroundColor: 'rgba(255, 255, 255, 0.1)',\n borderColor: themeVariables.primaryColor,\n },\n icon : {\n color: themeVariables.primaryColor\n }\n },\n nextBtn: {\n root: {\n marginLeft: 8,\n backgroundColor: 'rgba(255, 255, 255, 0.1)',\n borderColor: themeVariables.primaryColor,\n },\n icon : {\n color: themeVariables.primaryColor\n }\n }\n } as WmCarouselStyles);\n});"],"mappings":"AACA,OAAOA,UAAU,MAAoB,wCAAwC;AAC7E,SAAqBC,YAAY,QAAQ,+CAA+C;AAWxF,OAAO,MAAMC,aAAa,GAAG,cAAc;AAC3CF,UAAU,CAACG,aAAa,CAA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O,EAAE,CAAC;MACVpC,cAAc,EAAE;IACpB,CAAC;IACDqB,gBAAgB,EAAC;MACbG,SAAS,EAAE,YAAY;MACvBxB,cAAc,EAAE;IACpB,CAAC;IACD2B,cAAc,EAAE;MACZf,eAAe,EAAErB,cAAc,CAAC8C;IACpC,CAAC;IACDR,QAAQ,EAAE;MACNjB,eAAe,EAAErB,cAAc,CAAC8C;IACpC,CAAC;IACD3B,OAAO,EAAE;MACLR,IAAI,EAAE;QACFU,eAAe,EAAE,0BAA0B;QAC3Cf,WAAW,EAAEN,cAAc,CAAC8C;MAChC,CAAC;MACDtB,IAAI,EAAG;QACHC,KAAK,EAAEzB,cAAc,CAAC8C;MAC1B;IACJ,CAAC;IACDnB,OAAO,EAAE;MACLhB,IAAI,EAAE;QACFS,UAAU,EAAE,CAAC;QACbC,eAAe,EAAE,0BAA0B;QAC3Cf,WAAW,EAAEN,cAAc,CAAC8C;MAChC,CAAC;MACDtB,IAAI,EAAG;QACHC,KAAK,EAAEzB,cAAc,CAAC8C;MAC1B;IACJ;EACJ,CAAqB,CAAC;AAC1B,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"names":["React","Text","View","BaseComponent","BaseComponentState","WmLoginProps","DEFAULT_CLASS","WmLoginState","WmLogin","constructor","props","onLoginSuccess","response","onLoginError","error","updateState","errorMsg","message","doLogin","formData","onLogin","bind","renderWidget","styles","root","_background","state","errorMsgStyles","formStyles","children"],"sources":["login.component.tsx"],"sourcesContent":["import React from 'react';\nimport { Text, View } from 'react-native';\nimport { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';\n\nimport WmLoginProps from './login.props';\nimport { DEFAULT_CLASS, WmLoginStyles } from './login.styles';\nimport { AxiosError, AxiosResponse } from 'axios';\n\nexport class WmLoginState extends BaseComponentState<WmLoginProps> {\n errorMsg = '';\n}\n\nexport default class WmLogin extends BaseComponent<WmLoginProps, WmLoginState, WmLoginStyles> {\n constructor(props: WmLoginProps) {\n super(props, DEFAULT_CLASS, new WmLoginProps());\n }\n\n onLoginSuccess(response: AxiosResponse) {\n }\n\n onLoginError(error: AxiosError) {\n this.updateState({errorMsg: error?.message} as WmLoginState);\n }\n\n doLogin(formData: any) {\n this.props.onLogin(formData, this.onLoginSuccess.bind(this), this.onLoginError.bind(this));\n }\n\n renderWidget(props: WmLoginProps) {\n return (<View style={this.styles.root}>\n {this._background}\n {this.state.errorMsg && <Text style={this.styles.errorMsgStyles}>{this.state.errorMsg}</Text>}\n <View style={this.styles.formStyles}>{props.children}</View>\n </View>); \n }\n}\n"],"mappings":";;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AACzC,SAASC,aAAa,EAAEC,kBAAkB,QAAQ,+CAA+C;AAEjG,OAAOC,YAAY,MAAM,eAAe;AACxC,SAASC,aAAa,QAAuB,gBAAgB;AAG7D,OAAO,MAAMC,YAAY,SAASH,kBAAkB,CAAe;EAAA;IAAA;IAAA,kCACtD,EAAE;EAAA;AACf;AAEA,eAAe,MAAMI,OAAO,SAASL,aAAa,CAA4C;EAC5FM,WAAW,CAACC,KAAmB,EAAE;IAC/B,KAAK,CAACA,KAAK,EAAEJ,aAAa,EAAE,IAAID,YAAY,EAAE,CAAC;EACjD;EAEAM,cAAc,CAACC,QAAuB,EAAE,CACxC;EAEAC,YAAY,CAACC,KAAiB,EAAE;IAC9B,IAAI,CAACC,WAAW,CAAC;MAACC,QAAQ,EAAEF,KAAK,aAALA,KAAK,uBAALA,KAAK,CAAEG;IAAO,CAAC,CAAiB;EAC9D;EAEAC,OAAO,CAACC,QAAa,EAAE;IACrB,IAAI,CAACT,KAAK,CAACU,OAAO,CAACD,QAAQ,EAAE,IAAI,CAACR,cAAc,CAACU,IAAI,CAAC,IAAI,CAAC,EAAE,IAAI,CAACR,YAAY,CAACQ,IAAI,CAAC,IAAI,CAAC,CAAC;EAC5F;EAEAC,YAAY,CAACZ,KAAmB,EAAE;IAChC,oBAAQ,oBAAC,IAAI;MAAC,KAAK,EAAE,IAAI,CAACa,MAAM,CAACC;IAAK,GACnC,IAAI,CAACC,WAAW,EAChB,IAAI,CAACC,KAAK,CAACV,QAAQ,iBAAI,oBAAC,IAAI;MAAC,KAAK,EAAE,IAAI,CAACO,MAAM,CAACI;IAAe,GAAE,IAAI,CAACD,KAAK,CAACV,QAAQ,CAAQ,eAC7F,oBAAC,IAAI;MAAC,KAAK,EAAE,IAAI,CAACO,MAAM,CAACK;IAAW,GAAElB,KAAK,CAACmB,QAAQ,CAAQ,CACvD;EACT;AACF"}
1
+ {"version":3,"names":["React","Text","View","BaseComponent","BaseComponentState","WmLoginProps","DEFAULT_CLASS","WmLoginState","constructor","arguments","_defineProperty","WmLogin","props","onLoginSuccess","response","onLoginError","error","updateState","errorMsg","message","doLogin","formData","onLogin","bind","renderWidget","createElement","style","styles","root","_background","state","errorMsgStyles","formStyles","children"],"sources":["login.component.tsx"],"sourcesContent":["import React from 'react';\nimport { Text, View } from 'react-native';\nimport { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';\n\nimport WmLoginProps from './login.props';\nimport { DEFAULT_CLASS, WmLoginStyles } from './login.styles';\nimport { AxiosError, AxiosResponse } from 'axios';\n\nexport class WmLoginState extends BaseComponentState<WmLoginProps> {\n errorMsg = '';\n}\n\nexport default class WmLogin extends BaseComponent<WmLoginProps, WmLoginState, WmLoginStyles> {\n constructor(props: WmLoginProps) {\n super(props, DEFAULT_CLASS, new WmLoginProps());\n }\n\n onLoginSuccess(response: AxiosResponse) {\n }\n\n onLoginError(error: AxiosError) {\n this.updateState({errorMsg: error?.message} as WmLoginState);\n }\n\n doLogin(formData: any) {\n this.props.onLogin(formData, this.onLoginSuccess.bind(this), this.onLoginError.bind(this));\n }\n\n renderWidget(props: WmLoginProps) {\n return (<View style={this.styles.root}>\n {this._background}\n {this.state.errorMsg && <Text style={this.styles.errorMsgStyles}>{this.state.errorMsg}</Text>}\n <View style={this.styles.formStyles}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AC,eAC7FlB,KAAA,CAAAyB,aAAA,CAACvB,IAAI;MAACwB,KAAK,EAAE,IAAI,CAACC,MAAM,CAACK;IAAW,GAAEpB,KAAK,CAACqB,QAAe,CACvD,CAAC;EACT;AACF"}
@@ -1 +1 @@
1
- {"version":3,"names":["BaseProps","WmLoginProps"],"sources":["login.props.ts"],"sourcesContent":["import { BaseProps } from '@wavemaker/app-rn-runtime/core/base.component';\n\nexport default class WmLoginProps extends BaseProps {\n children: any;\n onLogin: Function = () => {};\n}"],"mappings":";;;AAAA,SAASA,SAAS,QAAQ,+CAA+C;AAEzE,eAAe,MAAMC,YAAY,SAASD,SAAS,CAAC;EAAA;IAAA;IAAA;IAAA,iCAE5B,MAAM,CAAC,CAAC;EAAA;AAChC"}
1
+ {"version":3,"names":["BaseProps","WmLoginProps","constructor","arguments","_defineProperty"],"sources":["login.props.ts"],"sourcesContent":["import { BaseProps } from '@wavemaker/app-rn-runtime/core/base.component';\n\nexport default class WmLoginProps extends BaseProps {\n children: any;\n onLogin: Function = () => {};\n}"],"mappings":";;;AAAA,SAASA,SAAS,QAAQ,+CAA+C;AAEzE,eAAe,MAAMC,YAAY,SAASD,SAAS,CAAC;EAAAE,YAAA;IAAA,SAAAC,SAAA;IAAAC,eAAA;IAAAA,eAAA,kBAE5B,MAAM,CAAC,CAAC;EAAA;AAChC"}
@@ -1 +1 @@
1
- {"version":3,"names":["React","Text","TouchableOpacity","View","NetworkService","BaseComponent","BaseComponentState","ToastConsumer","WmNetworkInfoToasterProps","DEFAULT_CLASS","isEqual","WmNetworkInfoToasterState","WmNetworkInfoToaster","constructor","props","updateState","newtworkState","getState","showToast","isConnected","cleanup","push","notifier","subscribe","networkState","state","getToastContent","styles","root","_background","text","appLocale","messages","MESSAGE_SERVICE_CONNECTED","action","_close","actionText","LABEL_HIDE_NETWORK_INFO","isConnecting","MESSAGE_SERVICE_CONNECTING","isServiceAvailable","MESSAGE_SERVICE_AVAILABLE","actionSeparator","LABEL_CONNECT_TO_SERVICE","isNetworkAvailable","MESSAGE_NETWORK_NOT_AVAILABLE","MESSAGE_SERVICE_NOT_AVAILABLE","renderWidget","options","content","onClose","toastService","hideToast"],"sources":["network-info-toaster.component.tsx"],"sourcesContent":["import React from 'react';\nimport { Text, TouchableOpacity, View } from 'react-native';\nimport NetworkService, { NetworkState } from '@wavemaker/app-rn-runtime/core/network.service';\nimport { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';\nimport { ToastConsumer, ToastOptions, ToastService } from '@wavemaker/app-rn-runtime/core/toast.service';\n\nimport WmNetworkInfoToasterProps from './network-info-toaster.props';\nimport { DEFAULT_CLASS, WmNetworkInfoToasterStyles } from './network-info-toaster.styles';\nimport { isEqual } from 'lodash-es';\n\nexport class WmNetworkInfoToasterState extends BaseComponentState<WmNetworkInfoToasterProps> {\n newtworkState = {} as NetworkState;\n showToast = false;\n}\n\nexport default class WmNetworkInfoToaster extends BaseComponent<WmNetworkInfoToasterProps, WmNetworkInfoToasterState, WmNetworkInfoToasterStyles> {\n options = {} as ToastOptions;\n private _close: Function = null as any;\n\n constructor(props: WmNetworkInfoToasterProps) {\n super(props, DEFAULT_CLASS, new WmNetworkInfoToasterProps(), new WmNetworkInfoToasterState());\n this.updateState({\n newtworkState: NetworkService.getState(),\n showToast: !NetworkService.isConnected()\n } as WmNetworkInfoToasterState);\n this.cleanup.push(\n NetworkService.notifier.subscribe('onNetworkStateChange', (networkState: NetworkState) => {\n if (!isEqual(networkState, this.state.newtworkState)) {\n this.updateState({\n newtworkState: networkState,\n showToast: true\n } as WmNetworkInfoToasterState);\n }\n }\n ));\n }\n\n getToastContent() {\n if (this.state.newtworkState.isConnected) { \n return (\n <View style={this.styles.root}>\n {this._background}\n <Text style={this.styles.text}>{this.props.appLocale.messages.MESSAGE_SERVICE_CONNECTED}</Text>\n <TouchableOpacity style={this.styles.action} onPress={() => this._close()}>\n <Text style={this.styles.actionText}>{this.props.appLocale.messages.LABEL_HIDE_NETWORK_INFO}</Text>\n </TouchableOpacity>\n </View>);\n }\n if (this.state.newtworkState.isConnecting) { \n return (\n <View style={this.styles.root}>\n {this._background}\n <Text style={this.styles.text}>{this.props.appLocale.messages.MESSAGE_SERVICE_CONNECTING}</Text>\n </View>);\n }\n if (this.state.newtworkState.isServiceAvailable) { \n return (\n <View style={this.styles.root}>\n {this._background}\n <Text style={this.styles.text}>{this.props.appLocale.messages.MESSAGE_SERVICE_AVAILABLE}</Text>\n <TouchableOpacity style={this.styles.action} onPress={() => this._close()}>\n <Text style={this.styles.actionText}>{this.props.appLocale.messages.LABEL_HIDE_NETWORK_INFO}</Text>\n </TouchableOpacity>\n <Text style={this.styles.actionSeparator}>|</Text>\n <TouchableOpacity style={this.styles.action}>\n <Text style={this.styles.actionText}>{this.props.appLocale.messages.LABEL_CONNECT_TO_SERVICE}</Text>\n </TouchableOpacity>\n </View>);\n }\n if (!this.state.newtworkState.isNetworkAvailable) { \n return (\n <View style={this.styles.root}>\n {this._background}\n <Text style={this.styles.text}>{this.props.appLocale.messages.MESSAGE_NETWORK_NOT_AVAILABLE}</Text>\n <TouchableOpacity style={this.styles.action} onPress={() => this._close()}>\n <Text style={this.styles.actionText}>{this.props.appLocale.messages.LABEL_HIDE_NETWORK_INFO}</Text>\n </TouchableOpacity>\n </View>);\n }\n return (\n <View style={this.styles.root}>\n {this._background}\n <Text style={this.styles.text}>{this.props.appLocale.messages.MESSAGE_SERVICE_NOT_AVAILABLE}</Text>\n <TouchableOpacity style={this.styles.action} onPress={() => this._close()}>\n <Text style={this.styles.actionText}>{this.props.appLocale.messages.LABEL_HIDE_NETWORK_INFO}</Text>\n </TouchableOpacity>\n </View>);\n }\n\n renderWidget(props: WmNetworkInfoToasterProps) {\n this.options.content = this.getToastContent();\n this.options.onClose = () => {\n this._close = null as any;\n this.updateState({\n showToast : false\n } as WmNetworkInfoToasterState);\n };\n return this.options.content && this.state.showToast ? (\n <ToastConsumer>\n {(toastService: ToastService) => {\n this._close = () => toastService.hideToast(this.options);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AC,KAAK,EAAE,IAAI,CAACF,MAAM,CAACG;IAAK,GAAE,IAAI,CAAChB,KAAK,CAACiB,SAAS,CAACC,QAAQ,CAACc,6BAA6B,CAAQ,eACnG,oBAAC,gBAAgB;MAAC,KAAK,EAAE,IAAI,CAACnB,MAAM,CAACO,MAAO;MAAC,OAAO,EAAE,MAAM,IAAI,CAACC,MAAM;IAAG,gBACxE,oBAAC,IAAI;MAAC,KAAK,EAAE,IAAI,CAACR,MAAM,CAACS;IAAW,GAAE,IAAI,CAACtB,KAAK,CAACiB,SAAS,CAACC,QAAQ,CAACK,uBAAuB,CAAQ,CAClF,CACd;EACX;EAEAU,YAAY,CAACjC,KAAgC,EAAE;IAC7C,IAAI,CAACkC,OAAO,CAACC,OAAO,GAAG,IAAI,CAACvB,eAAe,EAAE;IAC7C,IAAI,CAACsB,OAAO,CAACE,OAAO,GAAG,MAAM;MAC3B,IAAI,CAACf,MAAM,GAAG,IAAW;MACzB,IAAI,CAACpB,WAAW,CAAC;QACfG,SAAS,EAAG;MACd,CAAC,CAA8B;IACjC,CAAC;IACD,OAAO,IAAI,CAAC8B,OAAO,CAACC,OAAO,IAAI,IAAI,CAACxB,KAAK,CAACP,SAAS,gBACjD,oBAAC,aAAa,QACViC,YAA0B,IAAK;MAC/B,IAAI,CAAChB,MAAM,GAAG,MAAMgB,YAAY,CAACC,SAAS,CAAC,IAAI,CAACJ,OAAO,CAAC;MACxDG,YAAY,CAACjC,SAAS,CAAC,IAAI,CAAC8B,OAAO,CAAC;MACpC,OAAO,IAAI;IACb,CAAC,CACa,GACd,IAAI;EACV;AACF"}
1
+ {"version":3,"names":["React","Text","TouchableOpacity","View","NetworkService","BaseComponent","BaseComponentState","ToastConsumer","WmNetworkInfoToasterProps","DEFAULT_CLASS","isEqual","WmNetworkInfoToasterState","constructor","arguments","_defineProperty","WmNetworkInfoToaster","props","updateState","newtworkState","getState","showToast","isConnected","cleanup","push","notifier","subscribe","networkState","state","getToastContent","createElement","style","styles","root","_background","text","appLocale","messages","MESSAGE_SERVICE_CONNECTED","action","onPress","_close","actionText","LABEL_HIDE_NETWORK_INFO","isConnecting","MESSAGE_SERVICE_CONNECTING","isServiceAvailable","MESSAGE_SERVICE_AVAILABLE","actionSeparator","LABEL_CONNECT_TO_SERVICE","isNetworkAvailable","MESSAGE_NETWORK_NOT_AVAILABLE","MESSAGE_SERVICE_NOT_AVAILABLE","renderWidget","options","content","onClose","toastService","hideToast"],"sources":["network-info-toaster.component.tsx"],"sourcesContent":["import React from 'react';\nimport { Text, TouchableOpacity, View } from 'react-native';\nimport NetworkService, { NetworkState } from '@wavemaker/app-rn-runtime/core/network.service';\nimport { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';\nimport { ToastConsumer, ToastOptions, ToastService } from '@wavemaker/app-rn-runtime/core/toast.service';\n\nimport WmNetworkInfoToasterProps from './network-info-toaster.props';\nimport { DEFAULT_CLASS, WmNetworkInfoToasterStyles } from './network-info-toaster.styles';\nimport { isEqual } from 'lodash-es';\n\nexport class WmNetworkInfoToasterState extends BaseComponentState<WmNetworkInfoToasterProps> {\n newtworkState = {} as NetworkState;\n showToast = false;\n}\n\nexport default class WmNetworkInfoToaster extends BaseComponent<WmNetworkInfoToasterProps, WmNetworkInfoToasterState, WmNetworkInfoToasterStyles> {\n options = {} as ToastOptions;\n private _close: Function = null as any;\n\n constructor(props: WmNetworkInfoToasterProps) {\n super(props, DEFAULT_CLASS, new WmNetworkInfoToasterProps(), new WmNetworkInfoToasterState());\n this.updateState({\n newtworkState: NetworkService.getState(),\n showToast: !NetworkService.isConnected()\n } as WmNetworkInfoToasterState);\n this.cleanup.push(\n NetworkService.notifier.subscribe('onNetworkStateChange', (networkState: NetworkState) => {\n if (!isEqual(networkState, this.state.newtworkState)) {\n this.updateState({\n newtworkState: networkState,\n showToast: true\n } as WmNetworkInfoToasterState);\n }\n }\n ));\n }\n\n getToastContent() {\n if (this.state.newtworkState.isConnected) { \n return (\n <View style={this.styles.root}>\n {this._background}\n <Text style={this.styles.text}>{this.props.appLocale.messages.MESSAGE_SERVICE_CONNECTED}</Text>\n <TouchableOpacity style={this.styles.action} onPress={() => this._close()}>\n <Text style={this.styles.actionText}>{this.props.appLocale.messages.LABEL_HIDE_NETWORK_INFO}</Text>\n </TouchableOpacity>\n </View>);\n }\n if (this.state.newtworkState.isConnecting) { \n return (\n <View style={this.styles.root}>\n {this._background}\n <Text style={this.styles.text}>{this.props.appLocale.messages.MESSAGE_SERVICE_CONNECTING}</Text>\n </View>);\n }\n if (this.state.newtworkState.isServiceAvailable) { \n return (\n <View style={this.styles.root}>\n {this._background}\n <Text style={this.styles.text}>{this.props.appLocale.messages.MESSAGE_SERVICE_AVAILABLE}</Text>\n <TouchableOpacity style={this.styles.action} onPress={() => this._close()}>\n <Text style={this.styles.actionText}>{this.props.appLocale.messages.LABEL_HIDE_NETWORK_INFO}</Text>\n </TouchableOpacity>\n <Text style={this.styles.actionSeparator}>|</Text>\n <TouchableOpacity style={this.styles.action}>\n <Text style={this.styles.actionText}>{this.props.appLocale.messages.LABEL_CONNECT_TO_SERVICE}</Text>\n </TouchableOpacity>\n </View>);\n }\n if (!this.state.newtworkState.isNetworkAvailable) { \n return (\n <View style={this.styles.root}>\n {this._background}\n <Text style={this.styles.text}>{this.props.appLocale.messages.MESSAGE_NETWORK_NOT_AVAILABLE}</Text>\n <TouchableOpacity style={this.styles.action} onPress={() => this._close()}>\n <Text style={this.styles.actionText}>{this.props.appLocale.messages.LABEL_HIDE_NETWORK_INFO}</Text>\n </TouchableOpacity>\n </View>);\n }\n return (\n <View style={this.styles.root}>\n {this._background}\n <Text style={this.styles.text}>{this.props.appLocale.messages.MESSAGE_SERVICE_NOT_AVAILABLE}</Text>\n <TouchableOpacity style={this.styles.action} onPress={() => this._close()}>\n <Text style={this.styles.actionText}>{this.props.appLocale.messages.LABEL_HIDE_NETWORK_INFO}</Text>\n </TouchableOpacity>\n </View>);\n }\n\n renderWidget(props: WmNetworkInfoToasterProps) {\n this.options.content = this.getToastContent();\n this.options.onClose = () => {\n this._close = null as any;\n this.updateState({\n showToast : false\n } as WmNetworkInfoToasterState);\n };\n return this.options.content && this.state.showToast ? (\n <ToastConsumer>\n {(toastService: ToastService) => {\n this._close = () => toastService.hideToast(this.options);\n toastService.showToast(this.options)\n return null;\n }}\n </ToastConsumer>\n ) : null; \n }\n}\n"],"mappings":";;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,gBAAgB,EAAEC,IAAI,QAAQ,cAAc;AAC3D,OAAOC,cAAc,MAAwB,gDAAgD;AAC7F,SAASC,aAAa,EAAEC,kBAAkB,QAAQ,+CAA+C;AACjG,SAASC,aAAa,QAAoC,8CAA8C;AAExG,OAAOC,yBAAyB,MAAM,8BAA8B;AACpE,SAASC,aAAa,QAAoC,+BAA+B;AACzF,SAASC,OAAO,QAAQ,WAAW;AAEnC,OAAO,MAAMC,yBAAyB,SAASL,kBAAkB,CAA4B;EAAAM,YAAA;IAAA,SAAAC,SAAA;IAAAC,eAAA,wBAC3E,CAAC,CAAC;IAAAA,eAAA,oBACN,KAAK;EAAA;AACnB;AAEA,eAAe,MAAMC,oBAAoB,SAASV,aAAa,CAAmF;EAIhJO,WAAWA,CAACI,KAAgC,EAAE;IAC5C,KAAK,CAACA,KAAK,EAAEP,aAAa,EAAE,IAAID,yBAAyB,CAAC,CAAC,EAAE,IAAIG,yBAAyB,CAAC,CAAC,CAAC;IAACG,eAAA,kBAJtF,CAAC,CAAC;IAAAA,eAAA,iBACe,IAAI;IAI7B,IAAI,CAACG,WAAW,CAAC;MACfC,aAAa,EAAEd,cAAc,CAACe,QAAQ,CAAC,CAAC;MACxCC,SAAS,EAAE,CAAChB,cAAc,CAACiB,WAAW,CAAC;IACzC,CAA8B,CAAC;IAC/B,IAAI,CAACC,OAAO,CAACC,IAAI,CACfnB,cAAc,CAACoB,QAAQ,CAACC,SAAS,CAAC,sBAAsB,EAAGC,YAA0B,IAAK;MACxF,IAA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;EACX;EAEAU,YAAYA,CAACpC,KAAgC,EAAE;IAC7C,IAAI,CAACqC,OAAO,CAACC,OAAO,GAAG,IAAI,CAAC1B,eAAe,CAAC,CAAC;IAC7C,IAAI,CAACyB,OAAO,CAACE,OAAO,GAAG,MAAM;MAC3B,IAAI,CAACf,MAAM,GAAG,IAAW;MACzB,IAAI,CAACvB,WAAW,CAAC;QACfG,SAAS,EAAG;MACd,CAA8B,CAAC;IACjC,CAAC;IACD,OAAO,IAAI,CAACiC,OAAO,CAACC,OAAO,IAAI,IAAI,CAAC3B,KAAK,CAACP,SAAS,gBACjDpB,KAAA,CAAA6B,aAAA,CAACtB,aAAa,QACViD,YAA0B,IAAK;MAC/B,IAAI,CAAChB,MAAM,GAAG,MAAMgB,YAAY,CAACC,SAAS,CAAC,IAAI,CAACJ,OAAO,CAAC;MACxDG,YAAY,CAACpC,SAAS,CAAC,IAAI,CAACiC,OAAO,CAAC;MACpC,OAAO,IAAI;IACb,CACa,CAAC,GACd,IAAI;EACV;AACF"}
@@ -1 +1 @@
1
- {"version":3,"names":["BaseProps","WmNetworkInfoToasterProps"],"sources":["network-info-toaster.props.ts"],"sourcesContent":["import { BaseProps } from '@wavemaker/app-rn-runtime/core/base.component';\n\nexport default class WmNetworkInfoToasterProps extends BaseProps {\n appLocale = {} as any;\n}"],"mappings":";;;AAAA,SAASA,SAAS,QAAQ,+CAA+C;AAEzE,eAAe,MAAMC,yBAAyB,SAASD,SAAS,CAAC;EAAA;IAAA;IAAA,mCACjD,CAAC,CAAC;EAAA;AAClB"}
1
+ {"version":3,"names":["BaseProps","WmNetworkInfoToasterProps","constructor","arguments","_defineProperty"],"sources":["network-info-toaster.props.ts"],"sourcesContent":["import { BaseProps } from '@wavemaker/app-rn-runtime/core/base.component';\n\nexport default class WmNetworkInfoToasterProps extends BaseProps {\n appLocale = {} as any;\n}"],"mappings":";;;AAAA,SAASA,SAAS,QAAQ,+CAA+C;AAEzE,eAAe,MAAMC,yBAAyB,SAASD,SAAS,CAAC;EAAAE,YAAA;IAAA,SAAAC,SAAA;IAAAC,eAAA,oBACjD,CAAC,CAAC;EAAA;AAClB"}
@@ -1 +1 @@
1
- {"version":3,"names":["React","BackHandler","Platform","View","WebView","HideMode","BaseComponent","BaseComponentState","WmWebviewProps","DEFAULT_CLASS","WmWebViewState","WmWebview","constructor","props","webview","webViewState","canGoBack","goBack","event","data","nativeEvent","startsWith","id","match","callback","invokeJSCallbacks","result","substring","indexOf","parseResult","invokeEventCallback","e","title","url","updateState","src","hideMode","DONOT_ADD_TO_DOM","addEventListener","handleBackButtonPress","componentWillUnmount","removeEventListener","executeScript","fn","Promise","resolve","reject","Date","now","injectJavaScript","insertCSS","style","replace","JSON","parse","getTitle","iframe","currentTarget","contentWindow","document","renderWidget","styles","root","_background","OS","onLoad","ref","uri","incognito","onMessage","state"],"sources":["webview.component.tsx"],"sourcesContent":["import React from 'react';\nimport { BackHandler, Platform, View } from 'react-native';\nimport { WebView, WebViewNavigation, WebViewMessageEvent } from 'react-native-webview';\nimport { HideMode } from '@wavemaker/app-rn-runtime/core/if.component';\nimport { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';\n\nimport WmWebviewProps from './webview.props';\nimport { DEFAULT_CLASS, WebviewStyles } from './webview.styles';\n\nclass WmWebViewState extends BaseComponentState<WmWebviewProps> {\n\n}\n\nexport default class WmWebview extends BaseComponent<WmWebviewProps, WmWebViewState, WebviewStyles> {\n\n private webview: WebView | null = null as any;\n private webViewState: WebViewNavigation = null as any;\n private invokeJSCallbacks = {} as any;\n\n constructor(props: WmWebviewProps) {\n super(props, DEFAULT_CLASS, new WmWebviewProps());\n this.hideMode = HideMode.DONOT_ADD_TO_DOM;\n BackHandler.addEventListener('hardwareBackPress', this.handleBackButtonPress);\n }\n\n componentWillUnmount() {\n super.componentWillUnmount();\n BackHandler.removeEventListener('hardwareBackPress', this.handleBackButtonPress);\n }\n\n handleBackButtonPress = (): boolean => {\n if (this.webview && this.webViewState && this.webViewState.canGoBack) {\n this.webview.goBack();\n return true;\n }\n return false;\n }\n\n executeScript(fn: string) {\n return new Promise((resolve, reject) => {\n if (this.webview) {\n const id = '' + Date.now();\n this.invokeJSCallbacks[id] = resolve;\n fn = `\n (function(){\n try{\n return (${fn});\n } catch(e) {\n return e.getMessage();\n }\n }())\n `;\n this.webview.injectJavaScript(\n `window.ReactNativeWebView.postMessage('afterInjectJavaScript:' + ${id} + ':' + JSON.stringify(${fn}))`\n );\n } else {\n reject();\n }\n });\n }\n\n insertCSS(style = '') {\n style = style.replace(/[\\n\\t\\r]/g, '');\n return this.executeScript(`\n function() {\n const style = document.createElement('style');\n style.innerHTML = '${style}';\n document.head.appendChild(style);\n return 'SUCCESS';\n }()\n `);\n }\n\n parseResult(result: string) {\n try {\n return JSON.parse(result);\n } catch(e) {\n if (result === 'undefined' || result === 'null') {\n return null;\n }\n return result;\n }\n }\n\n onMessage = (event: WebViewMessageEvent) => {\n const data: string = event.nativeEvent?.data;\n if (data && data.startsWith('afterInjectJavaScript')) {\n const id = data?.match(/\\:([0-9]+)\\:/);\n const callback = id && this.invokeJSCallbacks[id[1]];\n const result = data.substring(data.indexOf(':', data.indexOf(':') + 1) + 1);\n callback && callback(this.parseResult(result));\n } else {\n this.invokeEventCallback('onMessage', [event, this]);\n }\n }\n\n getTitle(iframe: any) {\n try {\n return iframe.currentTarget.contentWindow.document.title;\n } catch(e) {\n // browser blocks cross origin access to iframe content.\n }\n }\n\n public onLoad = (e: any, title: string, url: string) => {\n this.updateState({\n props: {\n title: title,\n src: url\n }\n } as WmWebViewState, () => {\n this.invokeEventCallback('onLoad', [e, this]);\n });\n }\n\n protected renderWidget(props: WmWebviewProps) {\n return (\n <View style={this.styles.root}>\n {this._background}\n {Platform.OS === 'web' ?\n (<iframe src={props.src} width={'100%'} height={'100%'}\n onLoad={(e) => this.onLoad(e, this.getTitle(e.currentTarget), (e.currentTarget as any).src)}></iframe>) :\n (<WebView\n ref={(ref) => this.webview = ref}\n nestedScrollEnabled={true}\n style={this.styles.webview}\n source={{\n uri: props.src\n }}\n incognito={props.incognito}\n onMessage={this.onMessage}\n sharedCookiesEnabled={true}\n onNavigationStateChange={(state) => {\n this.webViewState = state;\n }}\n scrollEnabled={true}\n onLoadEnd={(e) => this.onLoad(e, e.nativeEvent.title, e.nativeEvent.url)}>\n </WebView>)}\n </View>\n );\n }\n}\n"],"mappings":";;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,WAAW,EAAEC,QAAQ,EAAEC,IAAI,QAAQ,cAAc;AAC1D,SAASC,OAAO,QAAgD,sBAAsB;AACtF,SAASC,QAAQ,QAAQ,6CAA6C;AACtE,SAASC,aAAa,EAAEC,kBAAkB,QAAQ,+CAA+C;AAEjG,OAAOC,cAAc,MAAM,iBAAiB;AAC5C,SAASC,aAAa,QAAuB,kBAAkB;AAE/D,MAAMC,cAAc,SAASH,kBAAkB,CAAiB;AAIhE,eAAe,MAAMI,SAAS,SAASL,aAAa,CAAgD;EAMlGM,WAAW,CAACC,KAAqB,EAAE;IACjC,KAAK,CAACA,KAAK,EAAEJ,aAAa,EAAE,IAAID,cAAc,EAAE,CAAC;IAAC,iCALlB,IAAI;IAAA,sCACI,IAAI;IAAA,2CAClB,CAAC,CAAC;IAAA,+CAaN,MAAe;MACrC,IAAI,IAAI,CAACM,OAAO,IAAI,IAAI,CAACC,YAAY,IAAI,IAAI,CAACA,YAAY,CAACC,SAAS,EAAE;QACpE,IAAI,CAACF,OAAO,CAACG,MAAM,EAAE;QACrB,OAAO,IAAI;MACb;MACA,OAAO,KAAK;IACd,CAAC;IAAA,mCAgDYC,KAA0B,IAAK;MAAA;MAC1C,MAAMC,IAAY,yBAAGD,KAAK,CAACE,WAAW,uDAAjB,mBAAmBD,IAAI;MAC5C,IAAIA,IAAI,IAAIA,IAAI,CAACE,UAAU,CAAC,uBAAuB,CAAC,EAAE;QACpD,MAAMC,EAAE,GAAGH,IAAI,aAAJA,IAAI,uBAAJA,IAAI,CAAEI,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AAO;MACrD,MAAM,EAAGJ,CAAC,IAAK,IAAI,CAACkC,MAAM,CAAClC,CAAC,EAAE,IAAI,CAACwB,QAAQ,CAACxB,CAAC,CAAC0B,aAAa,CAAC,EAAG1B,CAAC,CAAC0B,aAAa,CAAStB,GAAG;IAAE,EAAU,gBACvG,oBAAC,OAAO;MACP,GAAG,EAAG+B,GAAG,IAAK,IAAI,CAACpD,OAAO,GAAGoD,GAAI;MACjC,mBAAmB,EAAE,IAAK;MAC1B,KAAK,EAAE,IAAI,CAACL,MAAM,CAAC/C,OAAQ;MAC3B,MAAM,EAAE;QACNqD,GAAG,EAAEtD,KAAK,CAACsB;MACb,CAAE;MACF,SAAS,EAAEtB,KAAK,CAACuD,SAAU;MAC3B,SAAS,EAAE,IAAI,CAACC,SAAU;MAC1B,oBAAoB,EAAE,IAAK;MAC3B,uBAAuB,EAAGC,KAAK,IAAK;QAClC,IAAI,CAACvD,YAAY,GAAGuD,KAAK;MAC3B,CAAE;MACF,aAAa,EAAE,IAAK;MACpB,SAAS,EAAGvC,CAAC,IAAK,IAAI,CAACkC,MAAM,CAAClC,CAAC,EAAEA,CAAC,CAACX,WAAW,CAACY,KAAK,EAAED,CAAC,CAACX,WAAW,CAACa,GAAG;IAAE,EAChE,CACR;EAEX;AACF"}
1
+ {"version":3,"names":["React","BackHandler","Platform","View","WebView","HideMode","BaseComponent","BaseComponentState","WmWebviewProps","DEFAULT_CLASS","WmWebViewState","WmWebview","constructor","props","_defineProperty","webview","webViewState","canGoBack","goBack","event","_event$nativeEvent","data","nativeEvent","startsWith","id","match","callback","invokeJSCallbacks","result","substring","indexOf","parseResult","invokeEventCallback","e","title","url","updateState","src","hideMode","DONOT_ADD_TO_DOM","addEventListener","handleBackButtonPress","componentWillUnmount","removeEventListener","executeScript","fn","Promise","resolve","reject","Date","now","injectJavaScript","insertCSS","style","arguments","length","undefined","replace","JSON","parse","getTitle","iframe","currentTarget","contentWindow","document","renderWidget","createElement","styles","root","_background","OS","width","height","onLoad","ref","nestedScrollEnabled","source","uri","incognito","onMessage","sharedCookiesEnabled","onNavigationStateChange","state","scrollEnabled","onLoadEnd"],"sources":["webview.component.tsx"],"sourcesContent":["import React from 'react';\nimport { BackHandler, Platform, View } from 'react-native';\nimport { WebView, WebViewNavigation, WebViewMessageEvent } from 'react-native-webview';\nimport { HideMode } from '@wavemaker/app-rn-runtime/core/if.component';\nimport { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';\n\nimport WmWebviewProps from './webview.props';\nimport { DEFAULT_CLASS, WebviewStyles } from './webview.styles';\n\nclass WmWebViewState extends BaseComponentState<WmWebviewProps> {\n\n}\n\nexport default class WmWebview extends BaseComponent<WmWebviewProps, WmWebViewState, WebviewStyles> {\n\n private webview: WebView | null = null as any;\n private webViewState: WebViewNavigation = null as any;\n private invokeJSCallbacks = {} as any;\n\n constructor(props: WmWebviewProps) {\n super(props, DEFAULT_CLASS, new WmWebviewProps());\n this.hideMode = HideMode.DONOT_ADD_TO_DOM;\n BackHandler.addEventListener('hardwareBackPress', this.handleBackButtonPress);\n }\n\n componentWillUnmount() {\n super.componentWillUnmount();\n BackHandler.removeEventListener('hardwareBackPress', this.handleBackButtonPress);\n }\n\n handleBackButtonPress = (): boolean => {\n if (this.webview && this.webViewState && this.webViewState.canGoBack) {\n this.webview.goBack();\n return true;\n }\n return false;\n }\n\n executeScript(fn: string) {\n return new Promise((resolve, reject) => {\n if (this.webview) {\n const id = '' + Date.now();\n this.invokeJSCallbacks[id] = resolve;\n fn = `\n (function(){\n try{\n return (${fn});\n } catch(e) {\n return e.getMessage();\n }\n }())\n `;\n this.webview.injectJavaScript(\n `window.ReactNativeWebView.postMessage('afterInjectJavaScript:' + ${id} + ':' + JSON.stringify(${fn}))`\n );\n } else {\n reject();\n }\n });\n }\n\n insertCSS(style = '') {\n style = style.replace(/[\\n\\t\\r]/g, '');\n return this.executeScript(`\n function() {\n const style = document.createElement('style');\n style.innerHTML = '${style}';\n document.head.appendChild(style);\n return 'SUCCESS';\n }()\n `);\n }\n\n parseResult(result: string) {\n try {\n return JSON.parse(result);\n } catch(e) {\n if (result === 'undefined' || result === 'null') {\n return null;\n }\n return result;\n }\n }\n\n onMessage = (event: WebViewMessageEvent) => {\n const data: string = event.nativeEvent?.data;\n if (data && data.startsWith('afterInjectJavaScript')) {\n const id = data?.match(/\\:([0-9]+)\\:/);\n const callback = id && this.invokeJSCallbacks[id[1]];\n const result = data.substring(data.indexOf(':', data.indexOf(':') + 1) + 1);\n callback && callback(this.parseResult(result));\n } else {\n this.invokeEventCallback('onMessage', [event, this]);\n }\n }\n\n getTitle(iframe: any) {\n try {\n return iframe.currentTarget.contentWindow.document.title;\n } catch(e) {\n // browser blocks cross origin access to iframe content.\n }\n }\n\n public onLoad = (e: any, title: string, url: string) => {\n this.updateState({\n props: {\n title: title,\n src: url\n }\n } as WmWebViewState, () => {\n this.invokeEventCallback('onLoad', [e, this]);\n });\n }\n\n protected renderWidget(props: WmWebviewProps) {\n return (\n <View style={this.styles.root}>\n {this._background}\n {Platform.OS === 'web' ?\n (<iframe src={props.src} width={'100%'} height={'100%'}\n onLoad={(e) => this.onLoad(e, this.getTitle(e.currentTarget), (e.currentTarget as any).src)}></iframe>) :\n (<WebView\n ref={(ref) => this.webview = ref}\n nestedScrollEnabled={true}\n style={this.styles.webview}\n source={{\n uri: props.src\n }}\n incognito={props.incognito}\n onMessage={this.onMessage}\n sharedCookiesEnabled={true}\n onNavigationStateChange={(state) => {\n this.webViewState = state;\n }}\n scrollEnabled={true}\n onLoadEnd={(e) => this.onLoad(e, e.nativeEvent.title, e.nativeEvent.url)}>\n </WebView>)}\n </View>\n );\n }\n}\n"],"mappings":";;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,WAAW,EAAEC,QAAQ,EAAEC,IAAI,QAAQ,cAAc;AAC1D,SAASC,OAAO,QAAgD,sBAAsB;AACtF,SAASC,QAAQ,QAAQ,6CAA6C;AACtE,SAASC,aAAa,EAAEC,k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CAAS,CAAC,gBACvGrC,KAAA,CAAAkE,aAAA,CAAC9D,OAAO;MACPsE,GAAG,EAAGA,GAAG,IAAK,IAAI,CAAC3D,OAAO,GAAG2D,GAAI;MACjCC,mBAAmB,EAAE,IAAK;MAC1BtB,KAAK,EAAE,IAAI,CAACc,MAAM,CAACpD,OAAQ;MAC3B6D,MAAM,EAAE;QACNC,GAAG,EAAEhE,KAAK,CAACwB;MACb,CAAE;MACFyC,SAAS,EAAEjE,KAAK,CAACiE,SAAU;MAC3BC,SAAS,EAAE,IAAI,CAACA,SAAU;MAC1BC,oBAAoB,EAAE,IAAK;MAC3BC,uBAAuB,EAAGC,KAAK,IAAK;QAClC,IAAI,CAAClE,YAAY,GAAGkE,KAAK;MAC3B,CAAE;MACFC,aAAa,EAAE,IAAK;MACpBC,SAAS,EAAGnD,CAAC,IAAK,IAAI,CAACwC,MAAM,CAACxC,CAAC,EAAEA,CAAC,CAACX,WAAW,CAACY,KAAK,EAAED,CAAC,CAACX,WAAW,CAACa,GAAG;IAAE,CAClE,CACP,CAAC;EAEX;AACF"}
@@ -1 +1 @@
1
- {"version":3,"names":["BaseProps","WmWebviewProps"],"sources":["webview.props.ts"],"sourcesContent":["import { BaseProps } from '@wavemaker/app-rn-runtime/core/base.component';\nimport WmWebview from './webview.component';\n\nexport default class WmWebviewProps extends BaseProps {\n src: string = null as any;\n title: string = null as any;\n incognito? = false;\n onLoad?: ($event: any, $widget: WmWebview) => void = null as any;\n}"],"mappings":";;;AAAA,SAASA,SAAS,QAAQ,+CAA+C;AAGzE,eAAe,MAAMC,cAAc,SAASD,SAAS,CAAC;EAAA;IAAA;IAAA,6BACtC,IAAI;IAAA,+BACF,IAAI;IAAA,mCACP,KAAK;IAAA,gCACmC,IAAI;EAAA;AAC3D"}
1
+ {"version":3,"names":["BaseProps","WmWebviewProps","constructor","arguments","_defineProperty"],"sources":["webview.props.ts"],"sourcesContent":["import { BaseProps } from '@wavemaker/app-rn-runtime/core/base.component';\nimport WmWebview from './webview.component';\n\nexport default class WmWebviewProps extends BaseProps {\n src: string = null as any;\n title: string = null as any;\n incognito? = false;\n onLoad?: ($event: any, $widget: WmWebview) => void = null as any;\n}"],"mappings":";;;AAAA,SAASA,SAAS,QAAQ,+CAA+C;AAGzE,eAAe,MAAMC,cAAc,SAASD,SAAS,CAAC;EAAAE,YAAA;IAAA,SAAAC,SAAA;IAAAC,eAAA,cACtC,IAAI;IAAAA,eAAA,gBACF,IAAI;IAAAA,eAAA,oBACP,KAAK;IAAAA,eAAA,iBACmC,IAAI;EAAA;AAC3D"}
@@ -53,6 +53,7 @@ export default class WmAnchor extends BaseComponent {
53
53
  justifyContent: 'center'
54
54
  }
55
55
  }, /*#__PURE__*/React.createElement(Tappable, {
56
+ target: this,
56
57
  styles: [this.styles.root, this.styles.root.width && this.styles.root.height ? {
57
58
  width: '100%',
58
59
  height: '100%'
@@ -1 +1 @@
1
- {"version":3,"names":["React","Text","Badge","BaseComponent","BaseComponentState","Tappable","WmIcon","encodeUrl","NavigationServiceConsumer","WmAnchorProps","DEFAULT_CLASS","Animatedview","createSkeleton","WmAnchorState","WmAnchor","constructor","props","onTap","navigationService","e","state","hyperlink","link","encodeurl","openUrl","target","invokeEventCallback","proxy","renderSkeleton","theme","styles","skeleton","root","width","skeletonwidth","height","skeletonheight","renderWidget","icon","text","color","name","iconclass","badge","badgevalue","undefined","animation","justifyContent","flexDirection","iconposition","_background","caption"],"sources":["anchor.component.tsx"],"sourcesContent":["import React from 'react';\nimport { Text } from 'react-native';\nimport { Badge } from 'react-native-paper';\nimport { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';\nimport { TapEvent, Tappable } from '@wavemaker/app-rn-runtime/core/tappable.component';\nimport WmIcon from '@wavemaker/app-rn-runtime/components/basic/icon/icon.component';\nimport { encodeUrl } from '@wavemaker/app-rn-runtime/core/utils';\nimport NavigationService, { NavigationServiceConsumer } from '@wavemaker/app-rn-runtime/core/navigation.service';\n\nimport WmAnchorProps from './anchor.props';\nimport { DEFAULT_CLASS, WmAnchorStyles } from './anchor.styles';\nimport { Animatedview } from '@wavemaker/app-rn-runtime/components/basic/animatedview.component';\nimport { createSkeleton } from '../skeleton/skeleton.component';\n\nexport class WmAnchorState extends BaseComponentState<WmAnchorProps> {\n\n}\n\nexport default class WmAnchor extends BaseComponent<WmAnchorProps, WmAnchorState, WmAnchorStyles> {\n\n constructor(props: WmAnchorProps) {\n super(props, DEFAULT_CLASS, new WmAnchorProps());\n }\n\n onTap(navigationService: NavigationService, e: TapEvent) {\n const props = this.state.props;\n if (props.hyperlink) {\n const link = props.encodeurl ? encodeUrl(props.hyperlink) : props.hyperlink;\n navigationService.openUrl(link, {\n target: this.state.props.target\n });\n }\n this.invokeEventCallback('onTap', [e, this.proxy]);\n }\n\n public renderSkeleton(props: WmAnchorProps){\n return createSkeleton(this.theme, this.styles.skeleton, {\n ...this.styles.root,\n width: this.props.skeletonwidth || this.styles.root.width,\n height: this.props.skeletonheight || this.styles.root.height\n });\n }\n\n renderWidget(props: WmAnchorProps) {\n if (this.styles.icon && this.styles.icon.text) {\n this.styles.icon.text.color = this.styles.text.color;\n }\n const icon = (<WmIcon\n styles={this.styles.icon} name={props.name + '_icon'} iconclass={props.iconclass}></WmIcon>);\n //@ts-ignore\n const badge = props.badgevalue != undefined ? (<Badge style={this.styles.badge}>{props.badgevalue}</Badge>): null;\n return (\n <NavigationServiceConsumer>\n {(navigationService: NavigationService) =>\n (<Animatedview entryanimation={props.animation} style={{width: this.styles.root.width, height: this.styles.root.height, justifyContent: 'center'}}>\n <Tappable styles={[this.styles.root, this.styles.root.width && this.styles.root.height ? { width: '100%', height: '100%'} : null, {flexDirection: props.iconposition === 'top' ? 'column': 'row'}]}\n onTap={props.hyperlink || props.onTap ? (e: TapEvent) => this.onTap(navigationService, e) : undefined}>\n {this._background}\n {props.iconposition === 'top' && icon}\n {props.iconposition === 'left' && icon}\n {props.caption ? (<Text style={this.styles.text}>{props.caption}</Text>) : null}\n {props.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c,EAAE;MAAQ;IAAE,gBAChJ,oBAAC,QAAQ;MAAC,MAAM,EAAE,CAAC,IAAI,CAACjB,MAAM,CAACE,IAAI,EAAE,IAAI,CAACF,MAAM,CAACE,IAAI,CAACC,KAAK,IAAI,IAAI,CAACH,MAAM,CAACE,IAAI,CAACG,MAAM,GAAG;QAAEF,KAAK,EAAE,MAAM;QAAEE,MAAM,EAAE;MAAM,CAAC,GAAG,IAAI,EAAE;QAACa,aAAa,EAAEhC,KAAK,CAACiC,YAAY,KAAK,KAAK,GAAG,QAAQ,GAAE;MAAK,CAAC,CAAE;MACjM,KAAK,EAAEjC,KAAK,CAACK,SAAS,IAAIL,KAAK,CAACC,KAAK,GAAIE,CAAW,IAAK,IAAI,CAACF,KAAK,CAACC,iBAAiB,EAAEC,CAAC,CAAC,GAAG0B;IAAU,GACrG,IAAI,CAACK,WAAW,EAChBlC,KAAK,CAACiC,YAAY,KAAK,KAAK,IAAIX,IAAI,EACpCtB,KAAK,CAACiC,YAAY,KAAK,MAAM,IAAIX,IAAI,EACrCtB,KAAK,CAACmC,OAAO,gBAAI,oBAAC,IAAI;MAAC,KAAK,EAAE,IAAI,CAACrB,MAAM,CAACS;IAAK,GAAEvB,KAAK,CAACmC,OAAO,CAAQ,GAAI,IAAI,EAC9EnC,KAAK,CAACiC,YAAY,KAAK,OAAO,IAAIX,IAAI,EACtCK,KAAK,CACG,CACG,CAEQ;EAEhC;AACF"}
1
+ {"version":3,"names":["React","Text","Badge","BaseComponent","BaseComponentState","Tappable","WmIcon","encodeUrl","NavigationServiceConsumer","WmAnchorProps","DEFAULT_CLASS","Animatedview","createSkeleton","WmAnchorState","WmAnchor","constructor","props","onTap","navigationService","e","state","hyperlink","link","encodeurl","openUrl","target","invokeEventCallback","proxy","renderSkeleton","theme","styles","skeleton","root","width","skeletonwidth","height","skeletonheight","renderWidget","icon","text","color","createElement","name","iconclass","badge","badgevalue","undefined","style","entryanimation","animation","justifyContent","flexDirection","iconposition","_background","caption"],"sources":["anchor.component.tsx"],"sourcesContent":["import React from 'react';\nimport { Text } from 'react-native';\nimport { Badge } from 'react-native-paper';\nimport { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';\nimport { TapEvent, Tappable } from '@wavemaker/app-rn-runtime/core/tappable.component';\nimport WmIcon from '@wavemaker/app-rn-runtime/components/basic/icon/icon.component';\nimport { encodeUrl } from '@wavemaker/app-rn-runtime/core/utils';\nimport NavigationService, { NavigationServiceConsumer } from '@wavemaker/app-rn-runtime/core/navigation.service';\n\nimport WmAnchorProps from './anchor.props';\nimport { DEFAULT_CLASS, WmAnchorStyles } from './anchor.styles';\nimport { Animatedview } from '@wavemaker/app-rn-runtime/components/basic/animatedview.component';\nimport { createSkeleton } from '../skeleton/skeleton.component';\n\nexport class WmAnchorState extends BaseComponentState<WmAnchorProps> {\n\n}\n\nexport default class WmAnchor extends BaseComponent<WmAnchorProps, WmAnchorState, WmAnchorStyles> {\n\n constructor(props: WmAnchorProps) {\n super(props, DEFAULT_CLASS, new WmAnchorProps());\n }\n\n onTap(navigationService: NavigationService, e: TapEvent) {\n const props = this.state.props;\n if (props.hyperlink) {\n const link = props.encodeurl ? encodeUrl(props.hyperlink) : props.hyperlink;\n navigationService.openUrl(link, {\n target: this.state.props.target\n });\n }\n this.invokeEventCallback('onTap', [e, this.proxy]);\n }\n\n public renderSkeleton(props: WmAnchorProps){\n return createSkeleton(this.theme, this.styles.skeleton, {\n ...this.styles.root,\n width: this.props.skeletonwidth || this.styles.root.width,\n height: this.props.skeletonheight || this.styles.root.height\n });\n }\n\n renderWidget(props: WmAnchorProps) {\n if (this.styles.icon && this.styles.icon.text) {\n this.styles.icon.text.color = this.styles.text.color;\n }\n const icon = (<WmIcon\n styles={this.styles.icon} name={props.name + '_icon'} iconclass={props.iconclass}></WmIcon>);\n //@ts-ignore\n const badge = props.badgevalue != undefined ? (<Badge style={this.styles.badge}>{props.badgevalue}</Badge>): null;\n return (\n <NavigationServiceConsumer>\n {(navigationService: NavigationService) =>\n (<Animatedview entryanimation={props.animation} style={{width: this.styles.root.width, height: this.styles.root.height, justifyContent: 'center'}}>\n <Tappable target={this} styles={[this.styles.root, this.styles.root.width && this.styles.root.height ? { width: '100%', height: '100%'} : null, {flexDirection: props.iconposition === 'top' ? 'column': 'row'}]}\n onTap={props.hyperlink || props.onTap ? (e: TapEvent) => this.onTap(navigationService, e) : undefined}>\n {this._background}\n {props.iconposition === 'top' && icon}\n {props.iconposition === 'left' && icon}\n {props.caption ? (<Text style={this.styles.text}>{props.caption}</Text>) : null}\n {props.iconposition === 'right' && icon}\n {badge}\n </Tappable>\n </Animatedview>)\n }\n </NavigationServiceConsumer>\n );\n }\n}\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,QAAQ,cAAc;AACnC,SAASC,KAAK,QAAQ,oBAAoB;AAC1C,SAASC,aAAa,EAAEC,kBAAkB,QAAQ,+CAA+C;AACjG,SAAmBC,QAAQ,QAAQ,mDAAmD;AACtF,OAAOC,MAAM,MAAM,gEAAgE;AACnF,SAASC,SAAS,QAAQ,sCAAsC;AAChE,SAA4BC,yBAAyB,QAAQ,mDAAmD;AAEhH,OAAOC,aAAa,MAAM,gBAAgB;AAC1C,SAASC,aAAa,QAAwB,iBAAiB;AAC/D,SAASC,YAAY,QAAQ,mEAAmE;AAChG,SAASC,cAAc,QAAQ,gCAAgC;AAE/D,OAAO,MAAMC,aAAa,SAAST,kBAAkB,CAAgB;AAIrE,eAAe,MAAMU,QAAQ,SAASX,aAAa,CAA+C;EAEhGY,WAAWA,CAACC,KAAoB,EAAE;IAChC,KAAK,CAACA,KAAK,EAAEN,aAAa,EAAE,IAAID,aAAa,CAAC,CAAC,CAAC;EAClD;EAEAQ,KAAKA,CAACC,iBAAoC,EAAEC,CAAW,EAAE;IACvD,MAAMH,KAAK,GAAG,IAAI,CAACI,KAAK,CAACJ,KAAK;IAC9B,IAAIA,KAAK,CAACK,SAAS,EAAE;MACnB,MAAM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C,KAAK,EAAE,IAAI,CAACjB,MAAM,CAACS;IAAK,GAAEvB,KAAK,CAACsC,OAAc,CAAC,GAAI,IAAI,EAC9EtC,KAAK,CAACoC,YAAY,KAAK,OAAO,IAAId,IAAI,EACtCM,KACO,CACE,CAES,CAAC;EAEhC;AACF"}
@@ -1 +1 @@
1
- {"version":3,"names":["BaseProps","WmAnchorProps"],"sources":["anchor.props.ts"],"sourcesContent":["import { BaseProps } from '@wavemaker/app-rn-runtime/core/base.component';\n\nexport default class WmAnchorProps extends BaseProps {\n animation?: string = null as any;\n caption? = 'Link';\n hyperlink?: string = null as any;\n encodeurl?: boolean = false;\n badgevalue?: string = null as any;\n width?: string = null as any;\n height?: string = null as any;\n iconclass?: string = null as any;\n iconposition?: string = 'left';\n target?: string = '_blank';\n onTap?: any;\n skeletonwidth?: number;\n skeletonheight?: number;\n}\n"],"mappings":";;;AAAA,SAASA,SAAS,QAAQ,+CAA+C;AAEzE,eAAe,MAAMC,aAAa,SAASD,SAAS,CAAC;EAAA;IAAA;IAAA,mCAC5B,IAAI;IAAA,iCACd,MAAM;IAAA,mCACI,IAAI;IAAA,mCACH,KAAK;IAAA,oCACL,IAAI;IAAA,+BACT,IAAI;IAAA,gCACH,IAAI;IAAA,mCACD,IAAI;IAAA,sCACD,MAAM;IAAA,gCACZ,QAAQ;IAAA;IAAA;IAAA;EAAA;AAI9B"}
1
+ {"version":3,"names":["BaseProps","WmAnchorProps","constructor","arguments","_defineProperty"],"sources":["anchor.props.ts"],"sourcesContent":["import { BaseProps } from '@wavemaker/app-rn-runtime/core/base.component';\n\nexport default class WmAnchorProps extends BaseProps {\n animation?: string = null as any;\n caption? = 'Link';\n hyperlink?: string = null as any;\n encodeurl?: boolean = false;\n badgevalue?: string = null as any;\n width?: string = null as any;\n height?: string = null as any;\n iconclass?: string = null as any;\n iconposition?: string = 'left';\n target?: string = '_blank';\n onTap?: any;\n skeletonwidth?: number;\n skeletonheight?: number;\n}\n"],"mappings":";;;AAAA,SAASA,SAAS,QAAQ,+CAA+C;AAEzE,eAAe,MAAMC,aAAa,SAASD,SAAS,CAAC;EAAAE,YAAA;IAAA,SAAAC,SAAA;IAAAC,eAAA,oBAC5B,IAAI;IAAAA,eAAA,kBACd,MAAM;IAAAA,eAAA,oBACI,IAAI;IAAAA,eAAA,oBACH,KAAK;IAAAA,eAAA,qBACL,IAAI;IAAAA,eAAA,gBACT,IAAI;IAAAA,eAAA,iBACH,IAAI;IAAAA,eAAA,oBACD,IAAI;IAAAA,eAAA,uBACD,MAAM;IAAAA,eAAA,iBACZ,QAAQ;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;EAAA;AAI9B"}
@@ -42,6 +42,11 @@ BASE_THEME.registerStyle((themeVariables, addStyle) => {
42
42
  }
43
43
  });
44
44
  addStyle(DEFAULT_CLASS, '', defaultStyles);
45
+ addStyle(DEFAULT_CLASS + '-rtl', '', {
46
+ text: {
47
+ paddingRight: 8
48
+ }
49
+ });
45
50
  const getLinkStyles = color => {
46
51
  return {
47
52
  root: {
@@ -1 +1 @@
1
- {"version":3,"names":["Color","defineStyles","BASE_THEME","DEFAULT_CLASS","registerStyle","themeVariables","addStyle","defaultStyles","root","color","linkDefaultColor","flexDirection","alignItems","text","paddingLeft","fontSize","textDecorationLine","badge","backgroundColor","fade","rgb","toString","alignSelf","marginTop","marginLeft","fontWeight","icon","paddingRight","anchorTextPadding","skeleton","width","height","borderRadius","getLinkStyles","linkPrimaryColor","linkSecondaryColor","linkSuccessColor","linkDangerColor","linkWarningColor","linkInfoColor","linkLightColor","linkDarkColor"],"sources":["anchor.styles.ts"],"sourcesContent":["import Color from 'color';\nimport { BaseStyles, defineStyles } from '@wavemaker/app-rn-runtime/core/base.component';\nimport { WmIconStyles } from '@wavemaker/app-rn-runtime/components/basic/icon/icon.styles';\nimport BASE_THEME, { AllStyle } from '@wavemaker/app-rn-runtime/styles/theme';\nimport { WmSkeletonStyles } from '../skeleton/skeleton.styles';\n\nexport type WmAnchorStyles = BaseStyles & {\n badge: AllStyle,\n icon: WmIconStyles\n skeleton: WmSkeletonStyles\n};\n\nexport const DEFAULT_CLASS = 'app-anchor';\n\nBASE_THEME.registerStyle((themeVariables, addStyle) => {\n const defaultStyles: WmAnchorStyles = defineStyles({\n root: {\n color: themeVariables.linkDefaultColor,\n flexDirection: 'row',\n alignItems: 'center'\n },\n text: {\n paddingLeft: 8,\n color: themeVariables.linkDefaultColor,\n fontSize: 18, \n textDecorationLine: 'underline',\n },\n badge: {\n backgroundColor: Color(themeVariables.linkDefaultColor).fade(0.8).rgb().toString(),\n color: themeVariables.linkDefaultColor,\n alignSelf: 'flex-start',\n marginTop: -12,\n marginLeft: 0,\n fontWeight: 'bold'\n },\n icon: {\n root : {\n alignSelf: 'center'\n },\n text: {\n fontSize: 16,\n paddingRight: themeVariables.anchorTextPadding,\n color: themeVariables.linkDefaultColor\n }\n } as WmIconStyles,\n skeleton: {\n root: {\n width: '100%',\n height: 20,\n borderRadius: 4\n }\n } as WmSkeletonStyles\n });\n\n addStyle(DEFAULT_CLASS, '', defaultStyles);\n\n const getLinkStyles = (color: string) => {\n return {\n root: {\n color: color\n },\n text: {\n color: color\n },\n icon: {\n text: {\n color: color\n }\n },\n badge: {\n backgroundColor: Color(color).fade(0.8).rgb().toString(),\n color: color,\n }\n } as WmAnchorStyles;\n };\n\n addStyle('link-primary', '', getLinkStyles(themeVariables.linkPrimaryColor));\n addStyle('link-secondary', '', getLinkStyles(themeVariables.linkSecondaryColor));\n addStyle('link-success', '', getLinkStyles(themeVariables.linkSuccessColor));\n addStyle('link-danger', '', getLinkStyles(themeVariables.linkDangerColor));\n addStyle('link-warning', '', getLinkStyles(themeVariables.linkWarningColor));\n addStyle('link-info', '', getLinkStyles(themeVariables.linkInfoColor));\n addStyle('link-light', '', getLinkStyles(themeVariables.linkLightColor));\n addStyle('link-dark', '', getLinkStyles(themeVariables.linkDarkColor));\n});\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAAq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EAAE;QACFC,KAAK,EAAEA;MACX,CAAC;MACDI,IAAI,EAAE;QACFJ,KAAK,EAAEA;MACX,CAAC;MACDiB,IAAI,EAAE;QACFb,IAAI,EAAE;UACFJ,KAAK,EAAEA;QACX;MACJ,CAAC;MACDQ,KAAK,EAAE;QACHC,eAAe,EAAElB,KAAK,CAACS,KAAK,CAAC,CAACU,IAAI,CAAC,GAAG,CAAC,CAACC,GAAG,EAAE,CAACC,QAAQ,EAAE;QACxDZ,KAAK,EAAEA;MACX;IACJ,CAAC;EACL,CAAC;EAEDH,QAAQ,CAAC,cAAc,EAAE,EAAE,EAAE2B,aAAa,CAAC5B,cAAc,CAAC6B,gBAAgB,CAAC,CAAC;EAC5E5B,QAAQ,CAAC,gBAAgB,EAAE,EAAE,EAAE2B,aAAa,CAAC5B,cAAc,CAAC8B,kBAAkB,CAAC,CAAC;EAChF7B,QAAQ,CAAC,cAAc,EAAE,EAAE,EAAE2B,aAAa,CAAC5B,cAAc,CAAC+B,gBAAgB,CAAC,CAAC;EAC5E9B,QAAQ,CAAC,aAAa,EAAE,EAAE,EAAE2B,aAAa,CAAC5B,cAAc,CAACgC,eAAe,CAAC,CAAC;EAC1E/B,QAAQ,CAAC,cAAc,EAAE,EAAE,EAAE2B,aAAa,CAAC5B,cAAc,CAACiC,gBAAgB,CAAC,CAAC;EAC5EhC,QAAQ,CAAC,WAAW,EAAE,EAAE,EAAE2B,aAAa,CAAC5B,cAAc,CAACkC,aAAa,CAAC,CAAC;EACtEjC,QAAQ,CAAC,YAAY,EAAE,EAAE,EAAE2B,aAAa,CAAC5B,cAAc,CAACmC,cAAc,CAAC,CAAC;EACxElC,QAAQ,CAAC,WAAW,EAAE,EAAE,EAAE2B,aAAa,CAAC5B,cAAc,CAACoC,aAAa,CAAC,CAAC;AAC1E,CAAC,CAAC"}
1
+ {"version":3,"names":["Color","defineStyles","BASE_THEME","DEFAULT_CLASS","registerStyle","themeVariables","addStyle","defaultStyles","root","color","linkDefaultColor","flexDirection","alignItems","text","paddingLeft","fontSize","textDecorationLine","badge","backgroundColor","fade","rgb","toString","alignSelf","marginTop","marginLeft","fontWeight","icon","paddingRight","anchorTextPadding","skeleton","width","height","borderRadius","getLinkStyles","linkPrimaryColor","linkSecondaryColor","linkSuccessColor","linkDangerColor","linkWarningColor","linkInfoColor","linkLightColor","linkDarkColor"],"sources":["anchor.styles.ts"],"sourcesContent":["import Color from 'color';\nimport { BaseStyles, defineStyles } from '@wavemaker/app-rn-runtime/core/base.component';\nimport { WmIconStyles } from '@wavemaker/app-rn-runtime/components/basic/icon/icon.styles';\nimport BASE_THEME, { AllStyle } from '@wavemaker/app-rn-runtime/styles/theme';\nimport { WmSkeletonStyles } from '../skeleton/skeleton.styles';\n\nexport type WmAnchorStyles = BaseStyles & {\n badge: AllStyle,\n icon: WmIconStyles\n skeleton: WmSkeletonStyles\n};\n\nexport const DEFAULT_CLASS = 'app-anchor';\n\nBASE_THEME.registerStyle((themeVariables, addStyle) => {\n const defaultStyles: WmAnchorStyles = defineStyles({\n root: {\n color: themeVariables.linkDefaultColor,\n flexDirection: 'row',\n alignItems: 'center'\n },\n text: {\n paddingLeft: 8,\n color: themeVariables.linkDefaultColor,\n fontSize: 18, \n textDecorationLine: 'underline',\n },\n badge: {\n backgroundColor: Color(themeVariables.linkDefaultColor).fade(0.8).rgb().toString(),\n color: themeVariables.linkDefaultColor,\n alignSelf: 'flex-start',\n marginTop: -12,\n marginLeft: 0,\n fontWeight: 'bold'\n },\n icon: {\n root : {\n alignSelf: 'center'\n },\n text: {\n fontSize: 16,\n paddingRight: themeVariables.anchorTextPadding,\n color: themeVariables.linkDefaultColor\n }\n } as WmIconStyles,\n skeleton: {\n root: {\n width: '100%',\n height: 20,\n borderRadius: 4\n }\n } as WmSkeletonStyles\n });\n\n addStyle(DEFAULT_CLASS, '', defaultStyles);\n addStyle(DEFAULT_CLASS + '-rtl', '', {\n text: {\n paddingRight: 8\n }\n });\n\n const getLinkStyles = (color: string) => {\n return {\n root: {\n color: color\n },\n text: {\n color: color\n },\n icon: {\n text: {\n color: color\n }\n },\n badge: {\n backgroundColor: Color(color).fade(0.8).rgb().toString(),\n color: color,\n }\n } as WmAnchorStyles;\n };\n\n addStyle('link-primary', '', getLinkStyles(themeVariables.linkPrimaryColor));\n addStyle('link-secondary', '', getLinkStyles(themeVariables.linkSecondaryColor));\n addStyle('link-success', '', getLinkStyles(themeVariables.linkSuccessColor));\n addStyle('link-danger', '', getLinkStyles(themeVariables.linkDangerColor));\n addStyle('link-warning', '', getLinkStyles(themeVariables.linkWarningColor));\n addStyle('link-info', '', getLinkStyles(themeVariables.linkInfoColor));\n addStyle('link-light', '', getLinkStyles(themeVariables.linkLightColor));\n addStyle('link-dark', '', getLinkStyles(themeVariables.linkDarkColor));\n});\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAAqBC,YAAY,QAAQ,+CAA+C;AAExF,OAAOC,UAAU,MAAoB,wCAAwC;AAS7E,OAAO,MAAMC,aAAa,GAAG,YAAY;AAEzCD,UAAU,CAACE,aAAa,CAAC,CAACC,cAAc,EAAEC,QAAQ,KAAK;EACnD,MAAMC,aAA6B,GAAGN,YAAY,CAAC;IAC/CO,IAAI,EAAE;MACFC,KAAK,EAAEJ,cAAc,CAACK,gBAAgB;MACtCC,aAAa,EAAE,KAAK;MACpBC,UAAU,EAAE;IAChB,CAAC;IACDC,IAAI,EAAE;MACFC,WAAW,EAAE,CAAC;MACdL,KAAK,EAAEJ,cAAc,CAACK,gBAAgB;MACtCK,QAAQ,EAAE,EAAE;MACZC,kBAAkB,EAAE;IACxB,CAAC;IACDC,KAAK,EAAE;MACHC,eAAe,EAAElB,KAAK,CAACK,cAAc,CAACK,gBAAgB,CAAC,CAACS,IAAI,CAAC,GAAG,CAAC,CAACC,GAAG,CAAC,CAAC,CAACC,QAAQ,CAAC,CAAC;MAClFZ,KAAK,EAAEJ,cAAc,CAACK,gBAAgB;MACtCY,SAAS,EAAE,YAAY;MACvBC,SAA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