@wavemaker/app-rn-runtime 12.0.0-next.45001 → 12.0.0-next.45005

Sign up to get free protection for your applications and to get access to all the features.
Files changed (704) hide show
  1. app-rn-runtime/actions/base-action.js.map +1 -1
  2. app-rn-runtime/actions/index.js.map +1 -1
  3. app-rn-runtime/actions/login-action.js.map +1 -1
  4. app-rn-runtime/actions/logout-action.js.map +1 -1
  5. app-rn-runtime/actions/navigation-action.js +4 -4
  6. app-rn-runtime/actions/navigation-action.js.map +1 -1
  7. app-rn-runtime/actions/notification-action.js +3 -4
  8. app-rn-runtime/actions/notification-action.js.map +1 -1
  9. app-rn-runtime/actions/timer-action.js +2 -2
  10. app-rn-runtime/actions/timer-action.js.map +1 -1
  11. app-rn-runtime/components/advanced/carousel/carousel-content/carousel-content.component.js.map +1 -1
  12. app-rn-runtime/components/advanced/carousel/carousel-content/carousel-content.props.js +4 -4
  13. app-rn-runtime/components/advanced/carousel/carousel-content/carousel-content.props.js.map +1 -1
  14. app-rn-runtime/components/advanced/carousel/carousel-content/carousel-content.styles.js.map +1 -1
  15. app-rn-runtime/components/advanced/carousel/carousel-template/carousel-template.component.js.map +1 -1
  16. app-rn-runtime/components/advanced/carousel/carousel-template/carousel-template.props.js +4 -4
  17. app-rn-runtime/components/advanced/carousel/carousel-template/carousel-template.props.js.map +1 -1
  18. app-rn-runtime/components/advanced/carousel/carousel-template/carousel-template.styles.js.map +1 -1
  19. app-rn-runtime/components/advanced/carousel/carousel.component.js +31 -22
  20. app-rn-runtime/components/advanced/carousel/carousel.component.js.map +1 -1
  21. app-rn-runtime/components/advanced/carousel/carousel.props.js +4 -4
  22. app-rn-runtime/components/advanced/carousel/carousel.props.js.map +1 -1
  23. app-rn-runtime/components/advanced/carousel/carousel.styles.js.map +1 -1
  24. app-rn-runtime/components/advanced/login/login.component.js +4 -4
  25. app-rn-runtime/components/advanced/login/login.component.js.map +1 -1
  26. app-rn-runtime/components/advanced/login/login.props.js +4 -4
  27. app-rn-runtime/components/advanced/login/login.props.js.map +1 -1
  28. app-rn-runtime/components/advanced/login/login.styles.js.map +1 -1
  29. app-rn-runtime/components/advanced/network-info-toaster/network-info-toaster.component.js +4 -4
  30. app-rn-runtime/components/advanced/network-info-toaster/network-info-toaster.component.js.map +1 -1
  31. app-rn-runtime/components/advanced/network-info-toaster/network-info-toaster.props.js +4 -4
  32. app-rn-runtime/components/advanced/network-info-toaster/network-info-toaster.props.js.map +1 -1
  33. app-rn-runtime/components/advanced/network-info-toaster/network-info-toaster.styles.js.map +1 -1
  34. app-rn-runtime/components/advanced/webview/webview.component.js +12 -8
  35. app-rn-runtime/components/advanced/webview/webview.component.js.map +1 -1
  36. app-rn-runtime/components/advanced/webview/webview.props.js +4 -4
  37. app-rn-runtime/components/advanced/webview/webview.props.js.map +1 -1
  38. app-rn-runtime/components/advanced/webview/webview.styles.js.map +1 -1
  39. app-rn-runtime/components/basic/anchor/anchor.component.js +1 -0
  40. app-rn-runtime/components/basic/anchor/anchor.component.js.map +1 -1
  41. app-rn-runtime/components/basic/anchor/anchor.props.js +5 -4
  42. app-rn-runtime/components/basic/anchor/anchor.props.js.map +1 -1
  43. app-rn-runtime/components/basic/anchor/anchor.styles.js.map +1 -1
  44. app-rn-runtime/components/basic/animatedview.component.js +4 -2
  45. app-rn-runtime/components/basic/animatedview.component.js.map +1 -1
  46. app-rn-runtime/components/basic/audio/audio.component.js +8 -9
  47. app-rn-runtime/components/basic/audio/audio.component.js.map +1 -1
  48. app-rn-runtime/components/basic/audio/audio.props.js +4 -4
  49. app-rn-runtime/components/basic/audio/audio.props.js.map +1 -1
  50. app-rn-runtime/components/basic/audio/audio.styles.js.map +1 -1
  51. app-rn-runtime/components/basic/button/button.component.js +18 -14
  52. app-rn-runtime/components/basic/button/button.component.js.map +1 -1
  53. app-rn-runtime/components/basic/button/button.props.js +5 -4
  54. app-rn-runtime/components/basic/button/button.props.js.map +1 -1
  55. app-rn-runtime/components/basic/button/button.styles.js +2 -4
  56. app-rn-runtime/components/basic/button/button.styles.js.map +1 -1
  57. app-rn-runtime/components/basic/buttongroup/buttongroup.component.js.map +1 -1
  58. app-rn-runtime/components/basic/buttongroup/buttongroup.props.js +4 -4
  59. app-rn-runtime/components/basic/buttongroup/buttongroup.props.js.map +1 -1
  60. app-rn-runtime/components/basic/buttongroup/buttongroup.styles.js.map +1 -1
  61. app-rn-runtime/components/basic/custom/custom.component.js.map +1 -1
  62. app-rn-runtime/components/basic/custom/custom.props.js +4 -4
  63. app-rn-runtime/components/basic/custom/custom.props.js.map +1 -1
  64. app-rn-runtime/components/basic/custom/custom.styles.js.map +1 -1
  65. app-rn-runtime/components/basic/icon/icon.component.js +6 -5
  66. app-rn-runtime/components/basic/icon/icon.component.js.map +1 -1
  67. app-rn-runtime/components/basic/icon/icon.props.js +5 -4
  68. app-rn-runtime/components/basic/icon/icon.props.js.map +1 -1
  69. app-rn-runtime/components/basic/icon/icon.styles.js.map +1 -1
  70. app-rn-runtime/components/basic/icon/streamline-light-icon/streamline-light-icon.component.js.map +1 -1
  71. app-rn-runtime/components/basic/icon/streamline-regular-icon/streamline-regular-icon.component.js.map +1 -1
  72. app-rn-runtime/components/basic/icon/wavicon/wavicon.component.js.map +1 -1
  73. app-rn-runtime/components/basic/label/label.component.js +11 -9
  74. app-rn-runtime/components/basic/label/label.component.js.map +1 -1
  75. app-rn-runtime/components/basic/label/label.props.js +5 -4
  76. app-rn-runtime/components/basic/label/label.props.js.map +1 -1
  77. app-rn-runtime/components/basic/label/label.styles.js.map +1 -1
  78. app-rn-runtime/components/basic/lottie/lottie.component.js +9 -10
  79. app-rn-runtime/components/basic/lottie/lottie.component.js.map +1 -1
  80. app-rn-runtime/components/basic/lottie/lottie.props.js +4 -4
  81. app-rn-runtime/components/basic/lottie/lottie.props.js.map +1 -1
  82. app-rn-runtime/components/basic/lottie/lottie.styles.js +5 -1
  83. app-rn-runtime/components/basic/lottie/lottie.styles.js.map +1 -1
  84. app-rn-runtime/components/basic/message/message.component.js +3 -2
  85. app-rn-runtime/components/basic/message/message.component.js.map +1 -1
  86. app-rn-runtime/components/basic/message/message.props.js +5 -4
  87. app-rn-runtime/components/basic/message/message.props.js.map +1 -1
  88. app-rn-runtime/components/basic/message/message.styles.js +1 -2
  89. app-rn-runtime/components/basic/message/message.styles.js.map +1 -1
  90. app-rn-runtime/components/basic/modal/modal.component.js.map +1 -1
  91. app-rn-runtime/components/basic/modal/modal.props.js +4 -4
  92. app-rn-runtime/components/basic/modal/modal.props.js.map +1 -1
  93. app-rn-runtime/components/basic/modal/modal.styles.js.map +1 -1
  94. app-rn-runtime/components/basic/picture/picture.component.js +5 -4
  95. app-rn-runtime/components/basic/picture/picture.component.js.map +1 -1
  96. app-rn-runtime/components/basic/picture/picture.props.js +5 -4
  97. app-rn-runtime/components/basic/picture/picture.props.js.map +1 -1
  98. app-rn-runtime/components/basic/picture/picture.styles.js.map +1 -1
  99. app-rn-runtime/components/basic/progress-bar/progress-bar.component.js +23 -1
  100. app-rn-runtime/components/basic/progress-bar/progress-bar.component.js.map +1 -1
  101. app-rn-runtime/components/basic/progress-bar/progress-bar.props.js +4 -4
  102. app-rn-runtime/components/basic/progress-bar/progress-bar.props.js.map +1 -1
  103. app-rn-runtime/components/basic/progress-bar/progress-bar.styles.js.map +1 -1
  104. app-rn-runtime/components/basic/progress-circle/progress-circle.component.js +4 -4
  105. app-rn-runtime/components/basic/progress-circle/progress-circle.component.js.map +1 -1
  106. app-rn-runtime/components/basic/progress-circle/progress-circle.props.js +4 -4
  107. app-rn-runtime/components/basic/progress-circle/progress-circle.props.js.map +1 -1
  108. app-rn-runtime/components/basic/progress-circle/progress-circle.styles.js.map +1 -1
  109. app-rn-runtime/components/basic/search/local-data-provider.js +2 -2
  110. app-rn-runtime/components/basic/search/local-data-provider.js.map +1 -1
  111. app-rn-runtime/components/basic/search/search.component.js +16 -22
  112. app-rn-runtime/components/basic/search/search.component.js.map +1 -1
  113. app-rn-runtime/components/basic/search/search.props.js +4 -4
  114. app-rn-runtime/components/basic/search/search.props.js.map +1 -1
  115. app-rn-runtime/components/basic/search/search.styles.js.map +1 -1
  116. app-rn-runtime/components/basic/skeleton/skeleton.component.js +5 -5
  117. app-rn-runtime/components/basic/skeleton/skeleton.component.js.map +1 -1
  118. app-rn-runtime/components/basic/skeleton/skeleton.props.js.map +1 -1
  119. app-rn-runtime/components/basic/skeleton/skeleton.styles.js.map +1 -1
  120. app-rn-runtime/components/basic/spinner/spinner.component.js +2 -2
  121. app-rn-runtime/components/basic/spinner/spinner.component.js.map +1 -1
  122. app-rn-runtime/components/basic/spinner/spinner.props.js +4 -4
  123. app-rn-runtime/components/basic/spinner/spinner.props.js.map +1 -1
  124. app-rn-runtime/components/basic/spinner/spinner.styles.js.map +1 -1
  125. app-rn-runtime/components/basic/tooltip/tooltip.component.js +79 -0
  126. app-rn-runtime/components/basic/tooltip/tooltip.component.js.map +1 -0
  127. app-rn-runtime/components/basic/tooltip/tooltip.props.js +18 -0
  128. app-rn-runtime/components/basic/tooltip/tooltip.props.js.map +1 -0
  129. app-rn-runtime/components/basic/tooltip/tooltip.styles.js +49 -0
  130. app-rn-runtime/components/basic/tooltip/tooltip.styles.js.map +1 -0
  131. app-rn-runtime/components/basic/video/video.component.js +11 -8
  132. app-rn-runtime/components/basic/video/video.component.js.map +1 -1
  133. app-rn-runtime/components/basic/video/video.props.js +4 -4
  134. app-rn-runtime/components/basic/video/video.props.js.map +1 -1
  135. app-rn-runtime/components/basic/video/video.styles.js.map +1 -1
  136. app-rn-runtime/components/chart/area-chart/area-chart.component.js +19 -9
  137. app-rn-runtime/components/chart/area-chart/area-chart.component.js.map +1 -1
  138. app-rn-runtime/components/chart/area-chart/area-chart.props.js +4 -4
  139. app-rn-runtime/components/chart/area-chart/area-chart.props.js.map +1 -1
  140. app-rn-runtime/components/chart/area-chart/area-chart.styles.js.map +1 -1
  141. app-rn-runtime/components/chart/bar-chart/bar-chart.component.js +21 -10
  142. app-rn-runtime/components/chart/bar-chart/bar-chart.component.js.map +1 -1
  143. app-rn-runtime/components/chart/bar-chart/bar-chart.props.js +4 -4
  144. app-rn-runtime/components/chart/bar-chart/bar-chart.props.js.map +1 -1
  145. app-rn-runtime/components/chart/bar-chart/bar-chart.styles.js.map +1 -1
  146. app-rn-runtime/components/chart/basechart.component.js +90 -55
  147. app-rn-runtime/components/chart/basechart.component.js.map +1 -1
  148. app-rn-runtime/components/chart/basechart.props.js +4 -11
  149. app-rn-runtime/components/chart/basechart.props.js.map +1 -1
  150. app-rn-runtime/components/chart/basechart.styles.js +27 -10
  151. app-rn-runtime/components/chart/basechart.styles.js.map +1 -1
  152. app-rn-runtime/components/chart/bubble-chart/bubble-chart.component.js +19 -11
  153. app-rn-runtime/components/chart/bubble-chart/bubble-chart.component.js.map +1 -1
  154. app-rn-runtime/components/chart/bubble-chart/bubble-chart.props.js +4 -4
  155. app-rn-runtime/components/chart/bubble-chart/bubble-chart.props.js.map +1 -1
  156. app-rn-runtime/components/chart/bubble-chart/bubble-chart.styles.js.map +1 -1
  157. app-rn-runtime/components/chart/column-chart/column-chart.component.js.map +1 -1
  158. app-rn-runtime/components/chart/column-chart/column-chart.props.js.map +1 -1
  159. app-rn-runtime/components/chart/column-chart/column-chart.styles.js.map +1 -1
  160. app-rn-runtime/components/chart/donut-chart/donut-chart.component.js.map +1 -1
  161. app-rn-runtime/components/chart/donut-chart/donut-chart.props.js +4 -4
  162. app-rn-runtime/components/chart/donut-chart/donut-chart.props.js.map +1 -1
  163. app-rn-runtime/components/chart/donut-chart/donut-chart.styles.js.map +1 -1
  164. app-rn-runtime/components/chart/legend/legend.component.js.map +1 -1
  165. app-rn-runtime/components/chart/line-chart/line-chart.component.js +16 -4
  166. app-rn-runtime/components/chart/line-chart/line-chart.component.js.map +1 -1
  167. app-rn-runtime/components/chart/line-chart/line-chart.props.js +4 -4
  168. app-rn-runtime/components/chart/line-chart/line-chart.props.js.map +1 -1
  169. app-rn-runtime/components/chart/line-chart/line-chart.styles.js.map +1 -1
  170. app-rn-runtime/components/chart/pie-chart/pie-chart.component.js +19 -11
  171. app-rn-runtime/components/chart/pie-chart/pie-chart.component.js.map +1 -1
  172. app-rn-runtime/components/chart/pie-chart/pie-chart.props.js +4 -4
  173. app-rn-runtime/components/chart/pie-chart/pie-chart.props.js.map +1 -1
  174. app-rn-runtime/components/chart/pie-chart/pie-chart.styles.js.map +1 -1
  175. app-rn-runtime/components/chart/stack-chart/stack-chart.component.js +79 -41
  176. app-rn-runtime/components/chart/stack-chart/stack-chart.component.js.map +1 -1
  177. app-rn-runtime/components/chart/stack-chart/stack-chart.props.js +5 -5
  178. app-rn-runtime/components/chart/stack-chart/stack-chart.props.js.map +1 -1
  179. app-rn-runtime/components/chart/stack-chart/stack-chart.styles.js.map +1 -1
  180. app-rn-runtime/components/chart/staticdata.js.map +1 -1
  181. app-rn-runtime/components/chart/theme/chart.theme.js.map +1 -1
  182. app-rn-runtime/components/container/accordion/accordion.component.js +11 -17
  183. app-rn-runtime/components/container/accordion/accordion.component.js.map +1 -1
  184. app-rn-runtime/components/container/accordion/accordion.props.js +4 -4
  185. app-rn-runtime/components/container/accordion/accordion.props.js.map +1 -1
  186. app-rn-runtime/components/container/accordion/accordion.styles.js.map +1 -1
  187. app-rn-runtime/components/container/accordion/accordionpane/accordionpane.component.js +4 -4
  188. app-rn-runtime/components/container/accordion/accordionpane/accordionpane.component.js.map +1 -1
  189. app-rn-runtime/components/container/accordion/accordionpane/accordionpane.props.js +4 -4
  190. app-rn-runtime/components/container/accordion/accordionpane/accordionpane.props.js.map +1 -1
  191. app-rn-runtime/components/container/accordion/accordionpane/accordionpane.styles.js.map +1 -1
  192. app-rn-runtime/components/container/container.component.js +5 -4
  193. app-rn-runtime/components/container/container.component.js.map +1 -1
  194. app-rn-runtime/components/container/container.props.js +5 -4
  195. app-rn-runtime/components/container/container.props.js.map +1 -1
  196. app-rn-runtime/components/container/container.styles.js.map +1 -1
  197. app-rn-runtime/components/container/layoutgrid/gridcolumn/gridcolumn.component.js.map +1 -1
  198. app-rn-runtime/components/container/layoutgrid/gridcolumn/gridcolumn.props.js +4 -4
  199. app-rn-runtime/components/container/layoutgrid/gridcolumn/gridcolumn.props.js.map +1 -1
  200. app-rn-runtime/components/container/layoutgrid/gridcolumn/gridcolumn.styles.js.map +1 -1
  201. app-rn-runtime/components/container/layoutgrid/gridrow/gridrow.component.js.map +1 -1
  202. app-rn-runtime/components/container/layoutgrid/gridrow/gridrow.props.js +4 -4
  203. app-rn-runtime/components/container/layoutgrid/gridrow/gridrow.props.js.map +1 -1
  204. app-rn-runtime/components/container/layoutgrid/gridrow/gridrow.styles.js.map +1 -1
  205. app-rn-runtime/components/container/layoutgrid/layoutgrid.component.js.map +1 -1
  206. app-rn-runtime/components/container/layoutgrid/layoutgrid.props.js +4 -4
  207. app-rn-runtime/components/container/layoutgrid/layoutgrid.props.js.map +1 -1
  208. app-rn-runtime/components/container/layoutgrid/layoutgrid.styles.js.map +1 -1
  209. app-rn-runtime/components/container/linearlayout/linearlayout.component.js.map +1 -1
  210. app-rn-runtime/components/container/linearlayout/linearlayout.props.js +4 -4
  211. app-rn-runtime/components/container/linearlayout/linearlayout.props.js.map +1 -1
  212. app-rn-runtime/components/container/linearlayout/linearlayout.styles.js.map +1 -1
  213. app-rn-runtime/components/container/linearlayout/linearlayoutitem/linearlayoutitem.component.js.map +1 -1
  214. app-rn-runtime/components/container/linearlayout/linearlayoutitem/linearlayoutitem.props.js +4 -4
  215. app-rn-runtime/components/container/linearlayout/linearlayoutitem/linearlayoutitem.props.js.map +1 -1
  216. app-rn-runtime/components/container/linearlayout/linearlayoutitem/linearlayoutitem.styles.js.map +1 -1
  217. app-rn-runtime/components/container/panel/collapsible-pane.component.js.map +1 -1
  218. app-rn-runtime/components/container/panel/panel-content/panel-content.component.js.map +1 -1
  219. app-rn-runtime/components/container/panel/panel-content/panel-content.props.js +4 -4
  220. app-rn-runtime/components/container/panel/panel-content/panel-content.props.js.map +1 -1
  221. app-rn-runtime/components/container/panel/panel-content/panel-content.styles.js.map +1 -1
  222. app-rn-runtime/components/container/panel/panel-footer/panel-footer.component.js.map +1 -1
  223. app-rn-runtime/components/container/panel/panel-footer/panel-footer.props.js +4 -4
  224. app-rn-runtime/components/container/panel/panel-footer/panel-footer.props.js.map +1 -1
  225. app-rn-runtime/components/container/panel/panel-footer/panel-footer.styles.js.map +1 -1
  226. app-rn-runtime/components/container/panel/panel.component.js +5 -5
  227. app-rn-runtime/components/container/panel/panel.component.js.map +1 -1
  228. app-rn-runtime/components/container/panel/panel.props.js +4 -4
  229. app-rn-runtime/components/container/panel/panel.props.js.map +1 -1
  230. app-rn-runtime/components/container/panel/panel.styles.js.map +1 -1
  231. app-rn-runtime/components/container/partial-host.component.js +6 -6
  232. app-rn-runtime/components/container/partial-host.component.js.map +1 -1
  233. app-rn-runtime/components/container/tabs/tabheader/tabheader.component.js +10 -9
  234. app-rn-runtime/components/container/tabs/tabheader/tabheader.component.js.map +1 -1
  235. app-rn-runtime/components/container/tabs/tabheader/tabheader.props.js +4 -4
  236. app-rn-runtime/components/container/tabs/tabheader/tabheader.props.js.map +1 -1
  237. app-rn-runtime/components/container/tabs/tabheader/tabheader.styles.js +1 -1
  238. app-rn-runtime/components/container/tabs/tabheader/tabheader.styles.js.map +1 -1
  239. app-rn-runtime/components/container/tabs/tabpane/tabpane.component.js +10 -7
  240. app-rn-runtime/components/container/tabs/tabpane/tabpane.component.js.map +1 -1
  241. app-rn-runtime/components/container/tabs/tabpane/tabpane.props.js +4 -4
  242. app-rn-runtime/components/container/tabs/tabpane/tabpane.props.js.map +1 -1
  243. app-rn-runtime/components/container/tabs/tabpane/tabpane.styles.js.map +1 -1
  244. app-rn-runtime/components/container/tabs/tabs.component.js +20 -17
  245. app-rn-runtime/components/container/tabs/tabs.component.js.map +1 -1
  246. app-rn-runtime/components/container/tabs/tabs.props.js +4 -4
  247. app-rn-runtime/components/container/tabs/tabs.props.js.map +1 -1
  248. app-rn-runtime/components/container/tabs/tabs.styles.js.map +1 -1
  249. app-rn-runtime/components/container/tile/tile.component.js +1 -0
  250. app-rn-runtime/components/container/tile/tile.component.js.map +1 -1
  251. app-rn-runtime/components/container/tile/tile.props.js +5 -4
  252. app-rn-runtime/components/container/tile/tile.props.js.map +1 -1
  253. app-rn-runtime/components/container/tile/tile.styles.js.map +1 -1
  254. app-rn-runtime/components/container/wizard/wizard.component.js +12 -12
  255. app-rn-runtime/components/container/wizard/wizard.component.js.map +1 -1
  256. app-rn-runtime/components/container/wizard/wizard.props.js +5 -4
  257. app-rn-runtime/components/container/wizard/wizard.props.js.map +1 -1
  258. app-rn-runtime/components/container/wizard/wizard.styles.js +3 -1
  259. app-rn-runtime/components/container/wizard/wizard.styles.js.map +1 -1
  260. app-rn-runtime/components/container/wizard/wizardstep/wizardstep.component.js +5 -5
  261. app-rn-runtime/components/container/wizard/wizardstep/wizardstep.component.js.map +1 -1
  262. app-rn-runtime/components/container/wizard/wizardstep/wizardstep.props.js +4 -4
  263. app-rn-runtime/components/container/wizard/wizardstep/wizardstep.props.js.map +1 -1
  264. app-rn-runtime/components/container/wizard/wizardstep/wizardstep.styles.js +1 -1
  265. app-rn-runtime/components/container/wizard/wizardstep/wizardstep.styles.js.map +1 -1
  266. app-rn-runtime/components/data/card/card-content/card-content.component.js +4 -4
  267. app-rn-runtime/components/data/card/card-content/card-content.component.js.map +1 -1
  268. app-rn-runtime/components/data/card/card-content/card-content.props.js +4 -4
  269. app-rn-runtime/components/data/card/card-content/card-content.props.js.map +1 -1
  270. app-rn-runtime/components/data/card/card-content/card-content.styles.js.map +1 -1
  271. app-rn-runtime/components/data/card/card-footer/card-footer.component.js.map +1 -1
  272. app-rn-runtime/components/data/card/card-footer/card-footer.props.js +4 -4
  273. app-rn-runtime/components/data/card/card-footer/card-footer.props.js.map +1 -1
  274. app-rn-runtime/components/data/card/card-footer/card-footer.styles.js.map +1 -1
  275. app-rn-runtime/components/data/card/card.component.js.map +1 -1
  276. app-rn-runtime/components/data/card/card.props.js +4 -4
  277. app-rn-runtime/components/data/card/card.props.js.map +1 -1
  278. app-rn-runtime/components/data/card/card.styles.js.map +1 -1
  279. app-rn-runtime/components/data/form/form-action/form-action.component.js +2 -2
  280. app-rn-runtime/components/data/form/form-action/form-action.component.js.map +1 -1
  281. app-rn-runtime/components/data/form/form-action/form-action.props.js +4 -4
  282. app-rn-runtime/components/data/form/form-action/form-action.props.js.map +1 -1
  283. app-rn-runtime/components/data/form/form-action/form-action.styles.js.map +1 -1
  284. app-rn-runtime/components/data/form/form-body/form-body.component.js.map +1 -1
  285. app-rn-runtime/components/data/form/form-body/form-body.props.js +4 -4
  286. app-rn-runtime/components/data/form/form-body/form-body.props.js.map +1 -1
  287. app-rn-runtime/components/data/form/form-body/form-body.styles.js.map +1 -1
  288. app-rn-runtime/components/data/form/form-field/form-field.component.js +12 -9
  289. app-rn-runtime/components/data/form/form-field/form-field.component.js.map +1 -1
  290. app-rn-runtime/components/data/form/form-field/form-field.props.js +5 -4
  291. app-rn-runtime/components/data/form/form-field/form-field.props.js.map +1 -1
  292. app-rn-runtime/components/data/form/form-field/form-field.styles.js.map +1 -1
  293. app-rn-runtime/components/data/form/form-footer/form-footer.component.js.map +1 -1
  294. app-rn-runtime/components/data/form/form-footer/form-footer.props.js +4 -4
  295. app-rn-runtime/components/data/form/form-footer/form-footer.props.js.map +1 -1
  296. app-rn-runtime/components/data/form/form-footer/form-footer.styles.js.map +1 -1
  297. app-rn-runtime/components/data/form/form.component.js +11 -11
  298. app-rn-runtime/components/data/form/form.component.js.map +1 -1
  299. app-rn-runtime/components/data/form/form.props.js +4 -4
  300. app-rn-runtime/components/data/form/form.props.js.map +1 -1
  301. app-rn-runtime/components/data/form/form.styles.js.map +1 -1
  302. app-rn-runtime/components/data/list/list-action-template/list-action-template.component.js +28 -0
  303. app-rn-runtime/components/data/list/list-action-template/list-action-template.component.js.map +1 -0
  304. app-rn-runtime/components/data/list/list-action-template/list-action-template.props.js +12 -0
  305. app-rn-runtime/components/data/list/list-action-template/list-action-template.props.js.map +1 -0
  306. app-rn-runtime/components/data/list/list-action-template/list-action-template.styles.js +36 -0
  307. app-rn-runtime/components/data/list/list-action-template/list-action-template.styles.js.map +1 -0
  308. app-rn-runtime/components/data/list/list-template/list-template.component.js.map +1 -1
  309. app-rn-runtime/components/data/list/list-template/list-template.props.js +4 -4
  310. app-rn-runtime/components/data/list/list-template/list-template.props.js.map +1 -1
  311. app-rn-runtime/components/data/list/list-template/list-template.styles.js +0 -1
  312. app-rn-runtime/components/data/list/list-template/list-template.styles.js.map +1 -1
  313. app-rn-runtime/components/data/list/list.component.js +63 -38
  314. app-rn-runtime/components/data/list/list.component.js.map +1 -1
  315. app-rn-runtime/components/data/list/list.props.js +5 -4
  316. app-rn-runtime/components/data/list/list.props.js.map +1 -1
  317. app-rn-runtime/components/data/list/list.styles.js +2 -2
  318. app-rn-runtime/components/data/list/list.styles.js.map +1 -1
  319. app-rn-runtime/components/data/liveform/liveform.component.js +5 -5
  320. app-rn-runtime/components/data/liveform/liveform.component.js.map +1 -1
  321. app-rn-runtime/components/device/barcodescanner/barcodescanner.component.js +2 -2
  322. app-rn-runtime/components/device/barcodescanner/barcodescanner.component.js.map +1 -1
  323. app-rn-runtime/components/device/barcodescanner/barcodescanner.props.js +4 -4
  324. app-rn-runtime/components/device/barcodescanner/barcodescanner.props.js.map +1 -1
  325. app-rn-runtime/components/device/barcodescanner/barcodescanner.styles.js.map +1 -1
  326. app-rn-runtime/components/device/camera/camera.component.js +2 -2
  327. app-rn-runtime/components/device/camera/camera.component.js.map +1 -1
  328. app-rn-runtime/components/device/camera/camera.props.js +4 -4
  329. app-rn-runtime/components/device/camera/camera.props.js.map +1 -1
  330. app-rn-runtime/components/device/camera/camera.styles.js.map +1 -1
  331. app-rn-runtime/components/dialogs/alertdialog/alertdialog.component.js +3 -2
  332. app-rn-runtime/components/dialogs/alertdialog/alertdialog.component.js.map +1 -1
  333. app-rn-runtime/components/dialogs/alertdialog/alertdialog.props.js +5 -4
  334. app-rn-runtime/components/dialogs/alertdialog/alertdialog.props.js.map +1 -1
  335. app-rn-runtime/components/dialogs/alertdialog/alertdialog.styles.js.map +1 -1
  336. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.component.js +3 -2
  337. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.component.js.map +1 -1
  338. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.props.js +5 -4
  339. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.props.js.map +1 -1
  340. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.styles.js.map +1 -1
  341. app-rn-runtime/components/dialogs/dialog/dialog.component.js +5 -4
  342. app-rn-runtime/components/dialogs/dialog/dialog.component.js.map +1 -1
  343. app-rn-runtime/components/dialogs/dialog/dialog.props.js +5 -4
  344. app-rn-runtime/components/dialogs/dialog/dialog.props.js.map +1 -1
  345. app-rn-runtime/components/dialogs/dialog/dialog.styles.js.map +1 -1
  346. app-rn-runtime/components/dialogs/dialogactions/dialogactions.component.js +2 -2
  347. app-rn-runtime/components/dialogs/dialogactions/dialogactions.component.js.map +1 -1
  348. app-rn-runtime/components/dialogs/dialogactions/dialogactions.props.js +4 -4
  349. app-rn-runtime/components/dialogs/dialogactions/dialogactions.props.js.map +1 -1
  350. app-rn-runtime/components/dialogs/dialogactions/dialogactions.styles.js.map +1 -1
  351. app-rn-runtime/components/dialogs/dialogcontent/dialogcontent.component.js +1 -1
  352. app-rn-runtime/components/dialogs/dialogcontent/dialogcontent.component.js.map +1 -1
  353. app-rn-runtime/components/dialogs/dialogcontent/dialogcontent.props.js +4 -4
  354. app-rn-runtime/components/dialogs/dialogcontent/dialogcontent.props.js.map +1 -1
  355. app-rn-runtime/components/dialogs/dialogcontent/dialogcontent.styles.js.map +1 -1
  356. app-rn-runtime/components/input/basedataset/basedataset.component.js +9 -14
  357. app-rn-runtime/components/input/basedataset/basedataset.component.js.map +1 -1
  358. app-rn-runtime/components/input/basedataset/basedataset.props.js +4 -4
  359. app-rn-runtime/components/input/basedataset/basedataset.props.js.map +1 -1
  360. app-rn-runtime/components/input/basedataset/basedataset.styles.js.map +1 -1
  361. app-rn-runtime/components/input/baseinput/baseinput.component.js +8 -9
  362. app-rn-runtime/components/input/baseinput/baseinput.component.js.map +1 -1
  363. app-rn-runtime/components/input/baseinput/baseinput.props.js +4 -4
  364. app-rn-runtime/components/input/baseinput/baseinput.props.js.map +1 -1
  365. app-rn-runtime/components/input/baseinput/baseinput.styles.js.map +1 -1
  366. app-rn-runtime/components/input/basenumber/basenumber.component.js +6 -9
  367. app-rn-runtime/components/input/basenumber/basenumber.component.js.map +1 -1
  368. app-rn-runtime/components/input/basenumber/basenumber.props.js +4 -4
  369. app-rn-runtime/components/input/basenumber/basenumber.props.js.map +1 -1
  370. app-rn-runtime/components/input/basenumber/basenumber.styles.js.map +1 -1
  371. app-rn-runtime/components/input/calendar/calendar.component.js +5 -5
  372. app-rn-runtime/components/input/calendar/calendar.component.js.map +1 -1
  373. app-rn-runtime/components/input/calendar/calendar.props.js +4 -4
  374. app-rn-runtime/components/input/calendar/calendar.props.js.map +1 -1
  375. app-rn-runtime/components/input/calendar/calendar.styles.js.map +1 -1
  376. app-rn-runtime/components/input/calendar/views/month-view.js +6 -10
  377. app-rn-runtime/components/input/calendar/views/month-view.js.map +1 -1
  378. app-rn-runtime/components/input/calendar/views/month-view.styles.js.map +1 -1
  379. app-rn-runtime/components/input/checkbox/checkbox.component.js +4 -4
  380. app-rn-runtime/components/input/checkbox/checkbox.component.js.map +1 -1
  381. app-rn-runtime/components/input/checkbox/checkbox.props.js +4 -4
  382. app-rn-runtime/components/input/checkbox/checkbox.props.js.map +1 -1
  383. app-rn-runtime/components/input/checkbox/checkbox.styles.js.map +1 -1
  384. app-rn-runtime/components/input/checkboxset/checkboxset.component.js +17 -8
  385. app-rn-runtime/components/input/checkboxset/checkboxset.component.js.map +1 -1
  386. app-rn-runtime/components/input/checkboxset/checkboxset.props.js +10 -4
  387. app-rn-runtime/components/input/checkboxset/checkboxset.props.js.map +1 -1
  388. app-rn-runtime/components/input/checkboxset/checkboxset.styles.js +2 -0
  389. app-rn-runtime/components/input/checkboxset/checkboxset.styles.js.map +1 -1
  390. app-rn-runtime/components/input/chips/chips.component.js +5 -5
  391. app-rn-runtime/components/input/chips/chips.component.js.map +1 -1
  392. app-rn-runtime/components/input/chips/chips.props.js +4 -4
  393. app-rn-runtime/components/input/chips/chips.props.js.map +1 -1
  394. app-rn-runtime/components/input/chips/chips.styles.js.map +1 -1
  395. app-rn-runtime/components/input/composite/composite.component.js.map +1 -1
  396. app-rn-runtime/components/input/composite/composite.props.js +4 -4
  397. app-rn-runtime/components/input/composite/composite.props.js.map +1 -1
  398. app-rn-runtime/components/input/composite/composite.styles.js.map +1 -1
  399. app-rn-runtime/components/input/currency/currency.component.js +4 -4
  400. app-rn-runtime/components/input/currency/currency.component.js.map +1 -1
  401. app-rn-runtime/components/input/currency/currency.props.js +4 -4
  402. app-rn-runtime/components/input/currency/currency.props.js.map +1 -1
  403. app-rn-runtime/components/input/currency/currency.styles.js.map +1 -1
  404. app-rn-runtime/components/input/epoch/base-datetime.component.js +90 -16
  405. app-rn-runtime/components/input/epoch/base-datetime.component.js.map +1 -1
  406. app-rn-runtime/components/input/epoch/date/date.component.js.map +1 -1
  407. app-rn-runtime/components/input/epoch/date/date.props.js.map +1 -1
  408. app-rn-runtime/components/input/epoch/date/date.styles.js.map +1 -1
  409. app-rn-runtime/components/input/epoch/date-picker.component.js +2 -2
  410. app-rn-runtime/components/input/epoch/date-picker.component.js.map +1 -1
  411. app-rn-runtime/components/input/epoch/datetime/datetime.component.js.map +1 -1
  412. app-rn-runtime/components/input/epoch/datetime/datetime.props.js +6 -4
  413. app-rn-runtime/components/input/epoch/datetime/datetime.props.js.map +1 -1
  414. app-rn-runtime/components/input/epoch/datetime/datetime.styles.js.map +1 -1
  415. app-rn-runtime/components/input/epoch/time/time.component.js.map +1 -1
  416. app-rn-runtime/components/input/epoch/time/time.props.js +2 -2
  417. app-rn-runtime/components/input/epoch/time/time.props.js.map +1 -1
  418. app-rn-runtime/components/input/epoch/time/time.styles.js.map +1 -1
  419. app-rn-runtime/components/input/epoch/wheel-date-picker.component.js +87 -0
  420. app-rn-runtime/components/input/epoch/wheel-date-picker.component.js.map +1 -0
  421. app-rn-runtime/components/input/epoch/wheel-time-picker.component.js +107 -0
  422. app-rn-runtime/components/input/epoch/wheel-time-picker.component.js.map +1 -0
  423. app-rn-runtime/components/input/epoch/wheelpicker/wheelpicker.component.js +91 -0
  424. app-rn-runtime/components/input/epoch/wheelpicker/wheelpicker.component.js.map +1 -0
  425. app-rn-runtime/components/input/epoch/wheelpicker/wheelpicker.props.js +17 -0
  426. app-rn-runtime/components/input/epoch/wheelpicker/wheelpicker.props.js.map +1 -0
  427. app-rn-runtime/components/input/epoch/wheelpicker/wheelpicker.styles.js +55 -0
  428. app-rn-runtime/components/input/epoch/wheelpicker/wheelpicker.styles.js.map +1 -0
  429. app-rn-runtime/components/input/epoch/wheelpickermodal/date/date-picker-modal.component.js +72 -0
  430. app-rn-runtime/components/input/epoch/wheelpickermodal/date/date-picker-modal.component.js.map +1 -0
  431. app-rn-runtime/components/input/epoch/wheelpickermodal/date/date-picker-modal.props.js +15 -0
  432. app-rn-runtime/components/input/epoch/wheelpickermodal/date/date-picker-modal.props.js.map +1 -0
  433. app-rn-runtime/components/input/epoch/wheelpickermodal/styles/datetime-picker-modal.styles.js +66 -0
  434. app-rn-runtime/components/input/epoch/wheelpickermodal/styles/datetime-picker-modal.styles.js.map +1 -0
  435. app-rn-runtime/components/input/epoch/wheelpickermodal/time/time-picker-modal.component.js +74 -0
  436. app-rn-runtime/components/input/epoch/wheelpickermodal/time/time-picker-modal.component.js.map +1 -0
  437. app-rn-runtime/components/input/epoch/wheelpickermodal/time/time-picker-modal.props.js +16 -0
  438. app-rn-runtime/components/input/epoch/wheelpickermodal/time/time-picker-modal.props.js.map +1 -0
  439. app-rn-runtime/components/input/fileupload/fileupload.component.js +4 -4
  440. app-rn-runtime/components/input/fileupload/fileupload.component.js.map +1 -1
  441. app-rn-runtime/components/input/fileupload/fileupload.props.js +4 -4
  442. app-rn-runtime/components/input/fileupload/fileupload.props.js.map +1 -1
  443. app-rn-runtime/components/input/fileupload/fileupload.styles.js.map +1 -1
  444. app-rn-runtime/components/input/number/number.component.js +4 -4
  445. app-rn-runtime/components/input/number/number.component.js.map +1 -1
  446. app-rn-runtime/components/input/number/number.props.js +4 -4
  447. app-rn-runtime/components/input/number/number.props.js.map +1 -1
  448. app-rn-runtime/components/input/number/number.styles.js.map +1 -1
  449. app-rn-runtime/components/input/radioset/radioset.component.js +10 -7
  450. app-rn-runtime/components/input/radioset/radioset.component.js.map +1 -1
  451. app-rn-runtime/components/input/radioset/radioset.props.js +4 -4
  452. app-rn-runtime/components/input/radioset/radioset.props.js.map +1 -1
  453. app-rn-runtime/components/input/radioset/radioset.styles.js +1 -0
  454. app-rn-runtime/components/input/radioset/radioset.styles.js.map +1 -1
  455. app-rn-runtime/components/input/rating/rating.component.js +4 -4
  456. app-rn-runtime/components/input/rating/rating.component.js.map +1 -1
  457. app-rn-runtime/components/input/rating/rating.props.js +4 -4
  458. app-rn-runtime/components/input/rating/rating.props.js.map +1 -1
  459. app-rn-runtime/components/input/rating/rating.styles.js.map +1 -1
  460. app-rn-runtime/components/input/select/select.component.js +10 -7
  461. app-rn-runtime/components/input/select/select.component.js.map +1 -1
  462. app-rn-runtime/components/input/select/select.props.js +4 -4
  463. app-rn-runtime/components/input/select/select.props.js.map +1 -1
  464. app-rn-runtime/components/input/select/select.styles.js.map +1 -1
  465. app-rn-runtime/components/input/slider/slider.component.js +357 -70
  466. app-rn-runtime/components/input/slider/slider.component.js.map +1 -1
  467. app-rn-runtime/components/input/slider/slider.props.js +13 -9
  468. app-rn-runtime/components/input/slider/slider.props.js.map +1 -1
  469. app-rn-runtime/components/input/slider/slider.styles.js +25 -2
  470. app-rn-runtime/components/input/slider/slider.styles.js.map +1 -1
  471. app-rn-runtime/components/input/switch/switch.component.js +1 -1
  472. app-rn-runtime/components/input/switch/switch.component.js.map +1 -1
  473. app-rn-runtime/components/input/switch/switch.props.js +4 -4
  474. app-rn-runtime/components/input/switch/switch.props.js.map +1 -1
  475. app-rn-runtime/components/input/switch/switch.styles.js +6 -1
  476. app-rn-runtime/components/input/switch/switch.styles.js.map +1 -1
  477. app-rn-runtime/components/input/text/text.component.js.map +1 -1
  478. app-rn-runtime/components/input/text/text.props.js +4 -4
  479. app-rn-runtime/components/input/text/text.props.js.map +1 -1
  480. app-rn-runtime/components/input/text/text.styles.js.map +1 -1
  481. app-rn-runtime/components/input/textarea/textarea.component.js.map +1 -1
  482. app-rn-runtime/components/input/textarea/textarea.props.js +4 -4
  483. app-rn-runtime/components/input/textarea/textarea.props.js.map +1 -1
  484. app-rn-runtime/components/input/textarea/textarea.styles.js.map +1 -1
  485. app-rn-runtime/components/input/toggle/toggle.component.js +13 -6
  486. app-rn-runtime/components/input/toggle/toggle.component.js.map +1 -1
  487. app-rn-runtime/components/input/toggle/toggle.props.js +4 -4
  488. app-rn-runtime/components/input/toggle/toggle.props.js.map +1 -1
  489. app-rn-runtime/components/input/toggle/toggle.styles.js.map +1 -1
  490. app-rn-runtime/components/navigation/appnavbar/appnavbar.component.js +4 -4
  491. app-rn-runtime/components/navigation/appnavbar/appnavbar.component.js.map +1 -1
  492. app-rn-runtime/components/navigation/appnavbar/appnavbar.props.js +4 -4
  493. app-rn-runtime/components/navigation/appnavbar/appnavbar.props.js.map +1 -1
  494. app-rn-runtime/components/navigation/appnavbar/appnavbar.styles.js.map +1 -1
  495. app-rn-runtime/components/navigation/basenav/basenav.component.js +6 -10
  496. app-rn-runtime/components/navigation/basenav/basenav.component.js.map +1 -1
  497. app-rn-runtime/components/navigation/basenav/basenav.props.js +4 -4
  498. app-rn-runtime/components/navigation/basenav/basenav.props.js.map +1 -1
  499. app-rn-runtime/components/navigation/basenav/basenav.styles.js.map +1 -1
  500. app-rn-runtime/components/navigation/menu/menu.component.js +2 -2
  501. app-rn-runtime/components/navigation/menu/menu.component.js.map +1 -1
  502. app-rn-runtime/components/navigation/menu/menu.props.js +4 -4
  503. app-rn-runtime/components/navigation/menu/menu.props.js.map +1 -1
  504. app-rn-runtime/components/navigation/menu/menu.styles.js.map +1 -1
  505. app-rn-runtime/components/navigation/navbar/navbar.component.js.map +1 -1
  506. app-rn-runtime/components/navigation/navbar/navbar.props.js +4 -4
  507. app-rn-runtime/components/navigation/navbar/navbar.props.js.map +1 -1
  508. app-rn-runtime/components/navigation/navbar/navbar.styles.js.map +1 -1
  509. app-rn-runtime/components/navigation/navitem/navitem.component.js +4 -4
  510. app-rn-runtime/components/navigation/navitem/navitem.component.js.map +1 -1
  511. app-rn-runtime/components/navigation/navitem/navitem.props.js +4 -4
  512. app-rn-runtime/components/navigation/navitem/navitem.props.js.map +1 -1
  513. app-rn-runtime/components/navigation/navitem/navitem.styles.js.map +1 -1
  514. app-rn-runtime/components/navigation/popover/popover.component.js +84 -31
  515. app-rn-runtime/components/navigation/popover/popover.component.js.map +1 -1
  516. app-rn-runtime/components/navigation/popover/popover.props.js +5 -4
  517. app-rn-runtime/components/navigation/popover/popover.props.js.map +1 -1
  518. app-rn-runtime/components/navigation/popover/popover.styles.js +6 -1
  519. app-rn-runtime/components/navigation/popover/popover.styles.js.map +1 -1
  520. app-rn-runtime/components/page/content/content.component.js.map +1 -1
  521. app-rn-runtime/components/page/content/content.props.js.map +1 -1
  522. app-rn-runtime/components/page/content/content.styles.js.map +1 -1
  523. app-rn-runtime/components/page/left-panel/left-panel.component.js +5 -5
  524. app-rn-runtime/components/page/left-panel/left-panel.component.js.map +1 -1
  525. app-rn-runtime/components/page/left-panel/left-panel.props.js +4 -4
  526. app-rn-runtime/components/page/left-panel/left-panel.props.js.map +1 -1
  527. app-rn-runtime/components/page/left-panel/left-panel.styles.js.map +1 -1
  528. app-rn-runtime/components/page/page-content/page-content.component.js +2 -1
  529. app-rn-runtime/components/page/page-content/page-content.component.js.map +1 -1
  530. app-rn-runtime/components/page/page-content/page-content.props.js +4 -4
  531. app-rn-runtime/components/page/page-content/page-content.props.js.map +1 -1
  532. app-rn-runtime/components/page/page-content/page-content.styles.js.map +1 -1
  533. app-rn-runtime/components/page/page.component.js +13 -3
  534. app-rn-runtime/components/page/page.component.js.map +1 -1
  535. app-rn-runtime/components/page/page.props.js.map +1 -1
  536. app-rn-runtime/components/page/page.styles.js.map +1 -1
  537. app-rn-runtime/components/page/partial/partial.component.js.map +1 -1
  538. app-rn-runtime/components/page/partial/partial.props.js.map +1 -1
  539. app-rn-runtime/components/page/partial/partial.styles.js.map +1 -1
  540. app-rn-runtime/components/page/partial-container/partial-container.component.js.map +1 -1
  541. app-rn-runtime/components/page/partial-container/partial-container.props.js +4 -4
  542. app-rn-runtime/components/page/partial-container/partial-container.props.js.map +1 -1
  543. app-rn-runtime/components/page/partial-container/partial-container.styles.js.map +1 -1
  544. app-rn-runtime/components/page/tabbar/curve.js.map +1 -1
  545. app-rn-runtime/components/page/tabbar/tabbar.component.js +26 -14
  546. app-rn-runtime/components/page/tabbar/tabbar.component.js.map +1 -1
  547. app-rn-runtime/components/page/tabbar/tabbar.props.js +4 -4
  548. app-rn-runtime/components/page/tabbar/tabbar.props.js.map +1 -1
  549. app-rn-runtime/components/page/tabbar/tabbar.styles.js.map +1 -1
  550. app-rn-runtime/components/prefab/prefab-container.component.js.map +1 -1
  551. app-rn-runtime/components/prefab/prefab-container.props.js.map +1 -1
  552. app-rn-runtime/components/prefab/prefab-container.styles.js.map +1 -1
  553. app-rn-runtime/core/AppConfig.js.map +1 -1
  554. app-rn-runtime/core/accessibility.js +1 -1
  555. app-rn-runtime/core/accessibility.js.map +1 -1
  556. app-rn-runtime/core/asset.provider.js.map +1 -1
  557. app-rn-runtime/core/base.component.js +27 -22
  558. app-rn-runtime/core/base.component.js.map +1 -1
  559. app-rn-runtime/core/components/floatinglabel.component.js.map +1 -1
  560. app-rn-runtime/core/components/textinput.component.js +6 -5
  561. app-rn-runtime/core/components/textinput.component.js.map +1 -1
  562. app-rn-runtime/core/constant.service.js +2 -2
  563. app-rn-runtime/core/constant.service.js.map +1 -1
  564. app-rn-runtime/core/constants/currency-constants.js.map +1 -1
  565. app-rn-runtime/core/currency-constants.js.map +1 -1
  566. app-rn-runtime/core/device/calendar-service.js.map +1 -1
  567. app-rn-runtime/core/device/camera-service.js.map +1 -1
  568. app-rn-runtime/core/device/contacts-service.js.map +1 -1
  569. app-rn-runtime/core/device/location-service.js.map +1 -1
  570. app-rn-runtime/core/device/scan-service.js.map +1 -1
  571. app-rn-runtime/core/display.manager.js.map +1 -1
  572. app-rn-runtime/core/event-notifier.js +15 -7
  573. app-rn-runtime/core/event-notifier.js.map +1 -1
  574. app-rn-runtime/core/file-extension-types.js.map +1 -1
  575. app-rn-runtime/core/fixed-view.component.js +4 -4
  576. app-rn-runtime/core/fixed-view.component.js.map +1 -1
  577. app-rn-runtime/core/formatters.js +6 -12
  578. app-rn-runtime/core/formatters.js.map +1 -1
  579. app-rn-runtime/core/i18n.service.js.map +1 -1
  580. app-rn-runtime/core/if.component.js +6 -7
  581. app-rn-runtime/core/if.component.js.map +1 -1
  582. app-rn-runtime/core/imageSizeEstimator.js +3 -3
  583. app-rn-runtime/core/imageSizeEstimator.js.map +1 -1
  584. app-rn-runtime/core/injector.js.map +1 -1
  585. app-rn-runtime/core/key.extractor.js +3 -4
  586. app-rn-runtime/core/key.extractor.js.map +1 -1
  587. app-rn-runtime/core/logger.js +3 -3
  588. app-rn-runtime/core/logger.js.map +1 -1
  589. app-rn-runtime/core/modal.service.js.map +1 -1
  590. app-rn-runtime/core/navigation.service.js.map +1 -1
  591. app-rn-runtime/core/network.service.js +7 -11
  592. app-rn-runtime/core/network.service.js.map +1 -1
  593. app-rn-runtime/core/partial.service.js.map +1 -1
  594. app-rn-runtime/core/props.provider.js +4 -5
  595. app-rn-runtime/core/props.provider.js.map +1 -1
  596. app-rn-runtime/core/scroll-view.component.js +2 -2
  597. app-rn-runtime/core/scroll-view.component.js.map +1 -1
  598. app-rn-runtime/core/security.service.js.map +1 -1
  599. app-rn-runtime/core/spinner.service.js.map +1 -1
  600. app-rn-runtime/core/storage.service.js +2 -2
  601. app-rn-runtime/core/storage.service.js.map +1 -1
  602. app-rn-runtime/core/tappable.component.js +77 -42
  603. app-rn-runtime/core/tappable.component.js.map +1 -1
  604. app-rn-runtime/core/testid.provider.js.map +1 -1
  605. app-rn-runtime/core/toast.service.js.map +1 -1
  606. app-rn-runtime/core/utils.js +123 -20
  607. app-rn-runtime/core/utils.js.map +1 -1
  608. app-rn-runtime/core/viewport.js +2 -2
  609. app-rn-runtime/core/viewport.js.map +1 -1
  610. app-rn-runtime/gestures/swipe.animation.js +2 -2
  611. app-rn-runtime/gestures/swipe.animation.js.map +1 -1
  612. app-rn-runtime/index.js.map +1 -1
  613. app-rn-runtime/package.json +85 -85
  614. app-rn-runtime/runtime/App.js +55 -47
  615. app-rn-runtime/runtime/App.js.map +1 -1
  616. app-rn-runtime/runtime/App.navigator.js +1 -1
  617. app-rn-runtime/runtime/App.navigator.js.map +1 -1
  618. app-rn-runtime/runtime/base-fragment.component.js +6 -8
  619. app-rn-runtime/runtime/base-fragment.component.js.map +1 -1
  620. app-rn-runtime/runtime/base-page.component.js +29 -22
  621. app-rn-runtime/runtime/base-page.component.js.map +1 -1
  622. app-rn-runtime/runtime/base-partial.component.js +12 -7
  623. app-rn-runtime/runtime/base-partial.component.js.map +1 -1
  624. app-rn-runtime/runtime/base-prefab.component.js +6 -6
  625. app-rn-runtime/runtime/base-prefab.component.js.map +1 -1
  626. app-rn-runtime/runtime/lib-patch.js +1 -1
  627. app-rn-runtime/runtime/lib-patch.js.map +1 -1
  628. app-rn-runtime/runtime/memo.component.js +2 -2
  629. app-rn-runtime/runtime/memo.component.js.map +1 -1
  630. app-rn-runtime/runtime/navigator/drawer.navigator.js +1 -0
  631. app-rn-runtime/runtime/navigator/drawer.navigator.js.map +1 -1
  632. app-rn-runtime/runtime/navigator/stack.navigator.js +5 -8
  633. app-rn-runtime/runtime/navigator/stack.navigator.js.map +1 -1
  634. app-rn-runtime/runtime/platform.api.js.map +1 -1
  635. app-rn-runtime/runtime/services/app-display-manager.service.js +7 -4
  636. app-rn-runtime/runtime/services/app-display-manager.service.js.map +1 -1
  637. app-rn-runtime/runtime/services/app-i18n.service.js +3 -4
  638. app-rn-runtime/runtime/services/app-i18n.service.js.map +1 -1
  639. app-rn-runtime/runtime/services/app-modal.service.js +7 -4
  640. app-rn-runtime/runtime/services/app-modal.service.js.map +1 -1
  641. app-rn-runtime/runtime/services/app-security.service.js +26 -11
  642. app-rn-runtime/runtime/services/app-security.service.js.map +1 -1
  643. app-rn-runtime/runtime/services/app-spinner.service.js +3 -4
  644. app-rn-runtime/runtime/services/app-spinner.service.js.map +1 -1
  645. app-rn-runtime/runtime/services/app-toast.service.js +2 -2
  646. app-rn-runtime/runtime/services/app-toast.service.js.map +1 -1
  647. app-rn-runtime/runtime/services/device/calendar-service.js.map +1 -1
  648. app-rn-runtime/runtime/services/device/camera-service.js +2 -2
  649. app-rn-runtime/runtime/services/device/camera-service.js.map +1 -1
  650. app-rn-runtime/runtime/services/device/contacts-service.js +1 -1
  651. app-rn-runtime/runtime/services/device/contacts-service.js.map +1 -1
  652. app-rn-runtime/runtime/services/device/location-service.js.map +1 -1
  653. app-rn-runtime/runtime/services/device/permissions.js.map +1 -1
  654. app-rn-runtime/runtime/services/device/scan-service.js.map +1 -1
  655. app-rn-runtime/runtime/services/partial.service.js +1 -2
  656. app-rn-runtime/runtime/services/partial.service.js.map +1 -1
  657. app-rn-runtime/runtime/services/webprocess.service.js +3 -5
  658. app-rn-runtime/runtime/services/webprocess.service.js.map +1 -1
  659. app-rn-runtime/runtime/watcher.js +5 -5
  660. app-rn-runtime/runtime/watcher.js.map +1 -1
  661. app-rn-runtime/styles/MediaQueryList.js.map +1 -1
  662. app-rn-runtime/styles/background.component.js +7 -6
  663. app-rn-runtime/styles/background.component.js.map +1 -1
  664. app-rn-runtime/styles/style-prop.validator.js +1 -4
  665. app-rn-runtime/styles/style-prop.validator.js.map +1 -1
  666. app-rn-runtime/styles/style-props.js +2 -2
  667. app-rn-runtime/styles/style-props.js.map +1 -1
  668. app-rn-runtime/styles/theme.js +25 -17
  669. app-rn-runtime/styles/theme.js.map +1 -1
  670. app-rn-runtime/styles/theme.variables.js +13 -7
  671. app-rn-runtime/styles/theme.variables.js.map +1 -1
  672. app-rn-runtime/variables/base-variable.js +2 -2
  673. app-rn-runtime/variables/base-variable.js.map +1 -1
  674. app-rn-runtime/variables/device/calendar/create-event.operation.js.map +1 -1
  675. app-rn-runtime/variables/device/calendar/delete-event.operation.js.map +1 -1
  676. app-rn-runtime/variables/device/calendar/get-events.operation.js.map +1 -1
  677. app-rn-runtime/variables/device/camera/capture-image.operation.js.map +1 -1
  678. app-rn-runtime/variables/device/camera/capture-video.operation.js.map +1 -1
  679. app-rn-runtime/variables/device/contacts/get-contacts.operation.js.map +1 -1
  680. app-rn-runtime/variables/device/device/app-info.operation.js.map +1 -1
  681. app-rn-runtime/variables/device/device/current-geo-position.operation.js.map +1 -1
  682. app-rn-runtime/variables/device/device/device-info.operation.js.map +1 -1
  683. app-rn-runtime/variables/device/device/network-info.operation.js +23 -3
  684. app-rn-runtime/variables/device/device/network-info.operation.js.map +1 -1
  685. app-rn-runtime/variables/device/device/vibrate.operation.js.map +1 -1
  686. app-rn-runtime/variables/device/file/upload-file.operation.js.map +1 -1
  687. app-rn-runtime/variables/device/operation.provider.js.map +1 -1
  688. app-rn-runtime/variables/device/scan/scan.operation.js.map +1 -1
  689. app-rn-runtime/variables/device-variable.js +1 -1
  690. app-rn-runtime/variables/device-variable.js.map +1 -1
  691. app-rn-runtime/variables/http.service.js +4 -0
  692. app-rn-runtime/variables/http.service.js.map +1 -1
  693. app-rn-runtime/variables/live-variable.js +3 -3
  694. app-rn-runtime/variables/live-variable.js.map +1 -1
  695. app-rn-runtime/variables/model-variable.js +2 -2
  696. app-rn-runtime/variables/model-variable.js.map +1 -1
  697. app-rn-runtime/variables/service-variable.js +2 -2
  698. app-rn-runtime/variables/service-variable.js.map +1 -1
  699. app-rn-runtime/variables/utils/dataset-util.js.map +1 -1
  700. app-rn-runtime/variables/utils/inflight-queue.js +2 -2
  701. app-rn-runtime/variables/utils/inflight-queue.js.map +1 -1
  702. app-rn-runtime/variables/utils/variable.constants.js.map +1 -1
  703. app-rn-runtime/variables/utils/variable.utils.js +0 -1
  704. app-rn-runtime/variables/utils/variable.utils.js.map +1 -1
@@ -1 +1 @@
1
- {"version":3,"names":["React","Animatable","initializeRegistryWithDefinitions","View","AnimatedviewProps","constructor","_defineProperty","AnimationMap","bounce","flash","pulse","rotate","rubberBand","shake","swing","tada","wobble","bounceIn","bounceInDown","bounceInLeft","bounceInRight","bounceInUp","fadeIn","fadeInDown","fadeInDownBig","fadeInLeft","fadeInLeftBig","fadeInRight","fadeInRightBig","fadeInUp","fadeInUpBig","flipInX","flipInY","lightSpeedIn","slideInDown","slideInLeft","slideInRight","slideInUp","zoomIn","zoomInDown","zoomInLeft","zoomInRight","zoomInUp","CustomAnimationMap","transform","rotateY","rotateX","flipOutY","flipOutX","from","translateY","to","slideOutUp","slideOutDown","opacity","fadeOutDown","fadeOutUp","Animatedview","Component","props","ref","view","triggerEntry","animate","entryanimation","duration","then","endState","finished","triggerExit","exitanimation","render","createElement","_extends","animation","useNativeDriver","style","iterationCount","handleViewRef","accessibilityProps","children"],"sources":["animatedview.component.tsx"],"sourcesContent":["import React from 'react';\nimport * as Animatable from 'react-native-animatable';\nimport { initializeRegistryWithDefinitions } from 'react-native-animatable';\nimport { View, ViewProps, ViewStyle } from 'react-native';\n\nexport default class AnimatedviewProps {\n entryanimation?: string = null as any;\n children?: any;\n duration?: number = null as any;\n iterationCount?:any;\n style?: any;\n exitanimation?: string = null as any;\n accessibilityProps?: any;\n}\n\nconst AnimationMap: any = {\n bounce: 'bounce',\n flash: 'flash',\n pulse: 'pulse',\n rotate: 'rotate',\n rubberBand: 'rubberBand',\n shake: 'shake',\n swing: 'swing',\n tada: 'tada',\n wobble: 'wobble',\n bounceIn: 'bounceOut',\n bounceInDown: 'bounceOutUp',\n bounceInLeft: 'bounceOutRight',\n bounceInRight: 'bounceOutLeft',\n bounceInUp: 'bounceOutDown',\n fadeIn: 'fadeOut',\n fadeInDown: 'fadeOutUp',\n fadeInDownBig: 'fadeOutUpBig',\n fadeInLeft: 'fadeOutRight',\n fadeInLeftBig: 'fadeOutRightBig',\n fadeInRight: 'fadeOutLeft',\n fadeInRightBig: 'fadeOutLeftBig',\n fadeInUp: 'fadeOutDown',\n fadeInUpBig: 'fadeOutDownBig',\n flipInX: 'flipOutX',\n flipInY: 'flipOutY',\n lightSpeedIn: 'lightSpeedOut',\n slideInDown: 'slideOutUp',\n slideInLeft: 'slideOutRight',\n slideInRight: 'slideOutLeft',\n slideInUp: 'slideOutDown',\n zoomIn: 'zoomOut',\n zoomInDown: 'zoomOutUp',\n zoomInLeft: 'zoomOutRight',\n zoomInRight: 'zoomOutLeft',\n zoomInUp: 'zoomOutDown'\n};\n\nconst CustomAnimationMap: any = {\n flipInY: {\n 0: {\n transform: [{rotateY: \"0deg\"}]\n },\n 1: {\n transform: [{rotateY: \"360deg\"}]\n }\n },\n flipInX: {\n 0: {\n transform: [{rotateX: \"0deg\"}]\n },\n 1: {\n transform: [{rotateX: \"360deg\"}]\n }\n },\n flipOutY: {\n 0: {\n transform: [{rotateY: \"3600deg\"}]\n },\n 1: {\n transform: [{rotateY: \"0deg\"}]\n }\n },\n flipOutX: {\n 0: {\n transform: [{rotateX: \"360deg\"}]\n },\n 1: {\n transform: [{rotateX: \"0deg\"}]\n }\n },\n slideInDown : {\n from: { translateY: -20 },\n to: { translateY: 0 }\n },\n slideInUp : {\n from: { translateY: 20 },\n to: { translateY: 0 }\n },\n slideOutUp: {\n from: { translateY: 0 },\n to: { translateY: -20 }\n },\n slideOutDown : {\n from: { translateY: 0 },\n to: { translateY: 20 }\n },\n fadeInDown: {\n from: { opacity: 0, translateY: -20 },\n to: { opacity: 1, translateY: 0 }\n },\n fadeInUp: {\n from: { opacity: 0, translateY: 20 },\n to: { opacity: 1, translateY: 0 }\n },\n fadeOutDown: {\n from: { opacity: 1, translateY: 0 },\n to: { opacity: 0, translateY: 20 }\n },\n fadeOutUp: {\n from: { opacity: 1, translateY: 0 },\n to: { opacity: 0, translateY: -20 }\n }\n};\n\nexport class Animatedview extends React.Component<AnimatedviewProps> {\n static defaultProps: AnimatedviewProps = {\n duration: 200\n };\n\n private view: Animatable.View = null as any;\n\n constructor(props: AnimatedviewProps) {\n super(props);\n initializeRegistryWithDefinitions(CustomAnimationMap);\n }\n\n triggerEntry() {\n return (this as any).view.animate(this.props.entryanimation, this.props.duration).then((endState: any) => endState.finished)\n }\n\n triggerExit() {\n if (!this.view) {\n return;\n }\n if (this.props.exitanimation) {\n return (this as any).view.animate(this.props.exitanimation, this.props.duration, 1).then((endState: any) => endState.finished)\n } else {\n return (this as any).view.animate(AnimationMap[this.props.entryanimation || ''], this.props.duration, 1).then((endState: any) => endState.finished)\n }\n }\n\n // @ts-ignore\n handleViewRef = (ref: Animatable.View<ViewProps, ViewStyle>) => this.view = ref;\n\n render() {\n return this.props.entryanimation ? (\n <Animatable.View\n animation={this.props.entryanimation}\n duration={this.props.duration}\n useNativeDriver={true}\n style={this.props.style}\n iterationCount={this.props.iterationCount}\n ref={this.handleViewRef}\n {...this.props.accessibilityProps}>\n {this.props.children}\n </Animatable.View>\n ): (<View style={this.props.style} {...this.props.accessibilityProps}>{this.props.children}</View>);\n }\n}\n"],"mappings":";;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAO,KAAKC,UAAU,MAAM,yBAAyB;AACrD,SAASC,iCAAiC,QAAQ,yBAAyB;AAC3E,SAASC,IAAI,QAA8B,cAAc;AAEzD,eAAe,MAAMC,iBAAiB,CAAC;EAAAC,YAAA;IAAAC,eAAA,yBACX,IAAI;IAAAA,eAAA;IAAAA,eAAA,mBAEV,IAAI;IAAAA,eAAA;IAAAA,eAAA;IAAAA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,KAAK,CAACW,aAAa,EAAE,IAAI,CAACX,KAAK,CAACM,QAAQ,EAAE,CAAC,CAAC,CAACC,IAAI,CAAEC,QAAa,IAAKA,QAAQ,CAACC,QAAQ,CAAC;IAChI,CAAC,MAAM;MACL,OAAQ,IAAI,CAASP,IAAI,CAACE,OAAO,CAACxD,YAAY,CAAC,IAAI,CAACoD,KAAK,CAACK,cAAc,IAAI,EAAE,CAAC,EAAE,IAAI,CAACL,KAAK,CAACM,QAAQ,EAAE,CAAC,CAAC,CAACC,IAAI,CAAEC,QAAa,IAAKA,QAAQ,CAACC,QAAQ,CAAC;IACrJ;EACF;EAKAG,MAAMA,CAAA,EAAG;IACP,OAAO,IAAI,CAACZ,KAAK,CAACK,cAAc,gBAC/BhE,KAAA,CAAAwE,aAAA,CAACvE,UAAU,CAACE,IAAI,EAAAsE,QAAA;MACdC,SAAS,EAAE,IAAI,CAACf,KAAK,CAACK,cAAe;MACrCC,QAAQ,EAAE,IAAI,CAACN,KAAK,CAACM,QAAS;MAC9BU,eAAe,EAAE,IAAK;MACtBC,KAAK,EAAE,IAAI,CAACjB,KAAK,CAACiB,KAAM;MACxBC,cAAc,EAAE,IAAI,CAAClB,KAAK,CAACkB,cAAe;MAC1CjB,GAAG,EAAE,IAAI,CAACkB;IAAc,GACpB,IAAI,CAACnB,KAAK,CAACoB,kBAAkB,GAC/B,IAAI,CAACpB,KAAK,CAACqB,QACG,CAAC,gBAChBhF,KAAA,CAAAwE,aAAA,CAACrE,IAAI,EAAAsE,QAAA;MAACG,KAAK,EAAE,IAAI,CAACjB,KAAK,CAACiB;IAAM,GAAK,IAAI,CAACjB,KAAK,CAACoB,kBAAkB,GAAG,IAAI,CAACpB,KAAK,CAACqB,QAAe,CAAE;EACrG;AACF;AAAC1E,eAAA,CA5CYmD,YAAY,kBACkB;EACvCQ,QAAQ,EAAE;AACZ,CAAC"}
1
+ {"version":3,"names":["React","Animatable","initializeRegistryWithDefinitions","View","AnimatedviewProps","constructor","_defineProperty","AnimationMap","bounce","flash","pulse","rotate","rubberBand","shake","swing","tada","wobble","bounceIn","bounceInDown","bounceInLeft","bounceInRight","bounceInUp","fadeIn","fadeInDown","fadeInDownBig","fadeInLeft","fadeInLeftBig","fadeInRight","fadeInRightBig","fadeInUp","fadeInUpBig","flipInX","flipInY","lightSpeedIn","slideInDown","slideInLeft","slideInRight","slideInUp","zoomIn","zoomInDown","zoomInLeft","zoomInRight","zoomInUp","CustomAnimationMap","transform","rotateY","rotateX","flipOutY","flipOutX","from","translateY","to","slideOutUp","slideOutDown","opacity","fadeOutDown","fadeOutUp","Animatedview","Component","props","ref","view","triggerEntry","animate","entryanimation","duration","then","endState","finished","triggerExit","exitanimation","render","createElement","_extends","animation","delay","useNativeDriver","style","iterationCount","handleViewRef","accessibilityProps","children"],"sources":["animatedview.component.tsx"],"sourcesContent":["import React from 'react';\nimport * as Animatable from 'react-native-animatable';\nimport { initializeRegistryWithDefinitions } from 'react-native-animatable';\nimport { View, ViewProps, ViewStyle } from 'react-native';\n\nexport default class AnimatedviewProps {\n entryanimation?: string = null as any;\n children?: any;\n duration?: number = null as any;\n delay?: number = null as any;\n iterationCount?:any;\n style?: any;\n exitanimation?: string = null as any;\n accessibilityProps?: any;\n}\n\nconst AnimationMap: any = {\n bounce: 'bounce',\n flash: 'flash',\n pulse: 'pulse',\n rotate: 'rotate',\n rubberBand: 'rubberBand',\n shake: 'shake',\n swing: 'swing',\n tada: 'tada',\n wobble: 'wobble',\n bounceIn: 'bounceOut',\n bounceInDown: 'bounceOutUp',\n bounceInLeft: 'bounceOutRight',\n bounceInRight: 'bounceOutLeft',\n bounceInUp: 'bounceOutDown',\n fadeIn: 'fadeOut',\n fadeInDown: 'fadeOutUp',\n fadeInDownBig: 'fadeOutUpBig',\n fadeInLeft: 'fadeOutRight',\n fadeInLeftBig: 'fadeOutRightBig',\n fadeInRight: 'fadeOutLeft',\n fadeInRightBig: 'fadeOutLeftBig',\n fadeInUp: 'fadeOutDown',\n fadeInUpBig: 'fadeOutDownBig',\n flipInX: 'flipOutX',\n flipInY: 'flipOutY',\n lightSpeedIn: 'lightSpeedOut',\n slideInDown: 'slideOutUp',\n slideInLeft: 'slideOutRight',\n slideInRight: 'slideOutLeft',\n slideInUp: 'slideOutDown',\n zoomIn: 'zoomOut',\n zoomInDown: 'zoomOutUp',\n zoomInLeft: 'zoomOutRight',\n zoomInRight: 'zoomOutLeft',\n zoomInUp: 'zoomOutDown'\n};\n\nconst CustomAnimationMap: any = {\n flipInY: {\n 0: {\n transform: [{rotateY: \"0deg\"}]\n },\n 1: {\n transform: [{rotateY: \"360deg\"}]\n }\n },\n flipInX: {\n 0: {\n transform: [{rotateX: \"0deg\"}]\n },\n 1: {\n transform: [{rotateX: \"360deg\"}]\n }\n },\n flipOutY: {\n 0: {\n transform: [{rotateY: \"3600deg\"}]\n },\n 1: {\n transform: [{rotateY: \"0deg\"}]\n }\n },\n flipOutX: {\n 0: {\n transform: [{rotateX: \"360deg\"}]\n },\n 1: {\n transform: [{rotateX: \"0deg\"}]\n }\n },\n slideInDown : {\n from: { translateY: -20 },\n to: { translateY: 0 }\n },\n slideInUp : {\n from: { translateY: 20 },\n to: { translateY: 0 }\n },\n slideOutUp: {\n from: { translateY: 0 },\n to: { translateY: -20 }\n },\n slideOutDown : {\n from: { translateY: 0 },\n to: { translateY: 20 }\n },\n fadeInDown: {\n from: { opacity: 0, translateY: -20 },\n to: { opacity: 1, translateY: 0 }\n },\n fadeInUp: {\n from: { opacity: 0, translateY: 20 },\n to: { opacity: 1, translateY: 0 }\n },\n fadeOutDown: {\n from: { opacity: 1, translateY: 0 },\n to: { opacity: 0, translateY: 20 }\n },\n fadeOutUp: {\n from: { opacity: 1, translateY: 0 },\n to: { opacity: 0, translateY: -20 }\n }\n};\n\nexport class Animatedview extends React.Component<AnimatedviewProps> {\n static defaultProps: AnimatedviewProps = {\n duration: 200\n };\n\n private view: Animatable.View = null as any;\n\n constructor(props: AnimatedviewProps) {\n super(props);\n initializeRegistryWithDefinitions(CustomAnimationMap);\n }\n\n triggerEntry() {\n return (this as any).view.animate(this.props.entryanimation, this.props.duration).then((endState: any) => endState.finished)\n }\n\n triggerExit() {\n if (!this.view) {\n return;\n }\n if (this.props.exitanimation) {\n return (this as any).view.animate(this.props.exitanimation, this.props.duration, 1).then((endState: any) => endState.finished)\n } else {\n return (this as any).view.animate(AnimationMap[this.props.entryanimation || ''], this.props.duration, 1).then((endState: any) => endState.finished)\n }\n }\n\n // @ts-ignore\n handleViewRef = (ref: Animatable.View<ViewProps, ViewStyle>) => this.view = ref;\n\n render() {\n return this.props.entryanimation ? (\n <Animatable.View\n animation={this.props.entryanimation}\n duration={this.props.duration}\n delay={this.props.delay}\n useNativeDriver={true}\n style={this.props.style}\n iterationCount={this.props.iterationCount}\n ref={this.handleViewRef}\n {...this.props.accessibilityProps}>\n {this.props.children}\n </Animatable.View>\n ): (<View style={this.props.style} {...this.props.accessibilityProps}>{this.props.children}</View>);\n }\n}\n"],"mappings":";;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAO,KAAKC,UAAU,MAAM,yBAAyB;AACrD,SAASC,iCAAiC,QAAQ,yBAAyB;AAC3E,SAASC,IAAI,QAA8B,cAAc;AAEzD,eAAe,MAAMC,iBAAiB,CAAC;EAAAC,YAAA;IAAAC,eAAA,yBACX,IAAI;IAAAA,eAAA;IAAAA,eAAA,mBAEV,IAAI;IAAAA,eAAA,gBACP,IAAI;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA,wBAGI,IAAI;IAAAA,eAAA;EAAA;AAE/B;AAEA,MAAMC,YAAiB,GAAG;EACxBC,MAAM,EAAE,QAAQ;EAChBC,KAAK,EAAE,OAAO;EACdC,KAAK,EAAE,OAAO;EACdC,MAAM,EAAE,QAAQ;EAChBC,UAAU,EAAE,YAAY;EACxBC,KAAK,EAAE,OAAO;EACdC,KAAK,EAAE,OAAO;EACdC,IAAI,EAAE,MAAM;EACZC,MAAM,EAAE,QAAQ;EAChBC,QA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AC,CAAC,CAACC,IAAI,CAAEC,QAAa,IAAKA,QAAQ,CAACC,QAAQ,CAAC;IACrJ;EACF;EAKAG,MAAMA,CAAA,EAAG;IACP,OAAO,IAAI,CAACZ,KAAK,CAACK,cAAc,gBAC/BhE,KAAA,CAAAwE,aAAA,CAACvE,UAAU,CAACE,IAAI,EAAAsE,QAAA;MACdC,SAAS,EAAE,IAAI,CAACf,KAAK,CAACK,cAAe;MACrCC,QAAQ,EAAE,IAAI,CAACN,KAAK,CAACM,QAAS;MAC9BU,KAAK,EAAE,IAAI,CAAChB,KAAK,CAACgB,KAAM;MACxBC,eAAe,EAAE,IAAK;MACtBC,KAAK,EAAE,IAAI,CAAClB,KAAK,CAACkB,KAAM;MACxBC,cAAc,EAAE,IAAI,CAACnB,KAAK,CAACmB,cAAe;MAC1ClB,GAAG,EAAE,IAAI,CAACmB;IAAc,GACpB,IAAI,CAACpB,KAAK,CAACqB,kBAAkB,GAC/B,IAAI,CAACrB,KAAK,CAACsB,QACG,CAAC,gBAChBjF,KAAA,CAAAwE,aAAA,CAACrE,IAAI,EAAAsE,QAAA;MAACI,KAAK,EAAE,IAAI,CAAClB,KAAK,CAACkB;IAAM,GAAK,IAAI,CAAClB,KAAK,CAACqB,kBAAkB,GAAG,IAAI,CAACrB,KAAK,CAACsB,QAAe,CAAE;EACrG;AACF;AAAC3E,eAAA,CA7CYmD,YAAY,kBACkB;EACvCQ,QAAQ,EAAE;AACZ,CAAC","ignoreList":[]}
@@ -1,6 +1,6 @@
1
1
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
2
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
3
- function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
2
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
3
+ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
4
4
  import React from 'react';
5
5
  import { Platform, Text, View } from 'react-native';
6
6
  import Slider from '@react-native-community/slider';
@@ -12,8 +12,8 @@ import { DEFAULT_CLASS } from './audio.styles';
12
12
  import WmIcon from '../icon/icon.component';
13
13
  import { isWebPreviewMode } from '@wavemaker/app-rn-runtime/core/utils';
14
14
  export class WmAudioState extends BaseComponentState {
15
- constructor() {
16
- super(...arguments);
15
+ constructor(...args) {
16
+ super(...args);
17
17
  _defineProperty(this, "playing", false);
18
18
  _defineProperty(this, "currentTime", 0);
19
19
  _defineProperty(this, "totalTime", 0);
@@ -61,8 +61,7 @@ export default class WmAudio extends BaseComponent {
61
61
  }
62
62
  return source;
63
63
  }
64
- addPadding(str, maxLen) {
65
- let pad = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '0';
64
+ addPadding(str, maxLen, pad = '0') {
66
65
  if (str.length < maxLen) {
67
66
  return this.addPadding(pad + str, maxLen, pad);
68
67
  }
@@ -97,7 +96,7 @@ export default class WmAudio extends BaseComponent {
97
96
  stop() {
98
97
  var _this$sound2;
99
98
  this.pause();
100
- (_this$sound2 = this.sound) === null || _this$sound2 === void 0 ? void 0 : _this$sound2.unloadAsync();
99
+ (_this$sound2 = this.sound) === null || _this$sound2 === void 0 || _this$sound2.unloadAsync();
101
100
  this.sound = null;
102
101
  this.cancelTimer();
103
102
  this.offsetTime = 0;
@@ -147,7 +146,7 @@ export default class WmAudio extends BaseComponent {
147
146
  pause() {
148
147
  var _this$sound3;
149
148
  this.cancelTimer();
150
- (_this$sound3 = this.sound) === null || _this$sound3 === void 0 ? void 0 : _this$sound3.pauseAsync().then(() => {
149
+ (_this$sound3 = this.sound) === null || _this$sound3 === void 0 || _this$sound3.pauseAsync().then(() => {
151
150
  this.updateState({
152
151
  playing: false
153
152
  });
@@ -179,7 +178,7 @@ export default class WmAudio extends BaseComponent {
179
178
  if (time !== this.state.currentTime) {
180
179
  var _this$sound4;
181
180
  this.offsetTime = time - this.state.currentTime;
182
- (_this$sound4 = this.sound) === null || _this$sound4 === void 0 ? void 0 : _this$sound4.setPositionAsync(time * 1000);
181
+ (_this$sound4 = this.sound) === null || _this$sound4 === void 0 || _this$sound4.setPositionAsync(time * 1000);
183
182
  }
184
183
  }
185
184
  componentDidMount() {
@@ -1 +1 @@
1
- {"version":3,"names":["React","Platform","Text","View","Slider","isString","Audio","BaseComponent","BaseComponentState","WmAudioProps","DEFAULT_CLASS","WmIcon","isWebPreviewMode","WmAudioState","constructor","arguments","_defineProperty","WmAudio","props","onPropertyChange","name","$new","$old","initialized","Promise","resolve","then","_this$sound","sound","unloadAsync","onSeekChange","state","playing","autoplay","play","getSource","source","loadAsset","mp3format","uri","addPadding","str","maxLen","pad","length","undefined","formatTime","v","t","mins","Math","floor","seconds","round","setTimer","cancelTimer","timer","setInterval","currentTime","totalTime","loop","replay","stop","setState","max","offsetTime","clearInterval","_this$sound2","pause","updateState","replayAsync","loading","playAsync","Sound","createAsync","isMuted","muted","res","getStatusAsync","status","catch","_this$sound3","pauseAsync","mute","setStatusAsync","unmute","time","_this$sound4","setPositionAsync","componentDidMount","setTimeout","componentWillUnmount","renderWidget","controls","createElement","style","styles","root","_background","id","getTestId","playIcon","iconclass","onTap","pauseIcon","text","testID","step","flex","value","disabled","onValueChange","bind","minimumValue","inverted","isRTL","OS","maximumValue","thumbTintColor","slider","thumb","backgroundColor","minimumTrackTintColor","minimumTrack","maximumTrackTintColor","maximumTrack","muteIcon","unmuteIcon"],"sources":["audio.component.tsx"],"sourcesContent":["import React from 'react';\nimport { Platform, Text, View } from 'react-native';\nimport Slider from '@react-native-community/slider';\nimport { isString } from 'lodash-es';\nimport { Audio } from 'expo-av';\nimport { Sound } from 'expo-av/build/Audio';\nimport { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';\n\nimport WmAudioProps from './audio.props';\nimport { DEFAULT_CLASS, WmAudioStyles } from './audio.styles';\nimport WmIcon from '../icon/icon.component';\nimport { isWebPreviewMode } from '@wavemaker/app-rn-runtime/core/utils';\n\nexport class WmAudioState extends BaseComponentState<WmAudioProps> {\n playing = false;\n currentTime = 0;\n totalTime = 0;\n}\n\nexport default class WmAudio extends BaseComponent<WmAudioProps, WmAudioState, WmAudioStyles> {\n\n private loading = false;\n private sound: Sound = null as any;\n private timer: any;\n private offsetTime = 0;\n\n constructor(props: WmAudioProps) {\n super(props, DEFAULT_CLASS, new WmAudioProps(), new WmAudioState());\n }\n\n onPropertyChange(name: string, $new: any, $old: any): void {\n super.onPropertyChange(name, $new, $old);\n switch(name) {\n case 'mp3format': {\n if (this.initialized) {\n Promise.resolve()\n .then(() => this.sound?.unloadAsync())\n .then(() => {\n this.sound = null as any;\n this.onSeekChange(0);\n if (this.state.playing \n || this.state.props.autoplay) {\n this.play();\n }\n });\n }\n }\n break;\n case 'autoplay':\n if (this.initialized && $new) {\n this.play();\n }\n }\n }\n\n getSource() {\n const source = this.loadAsset \n && this.state.props.mp3format\n && this.loadAsset(this.state.props.mp3format as string);\n if (isString(source)) {\n return {\n uri: source\n };\n }\n return source;\n }\n\n addPadding(str: string, maxLen: number, pad = '0'): string {\n if (str.length < maxLen) {\n return this.addPadding(pad + str, maxLen, pad);\n }\n return str;\n }\n\n formatTime(v: number) {\n const t = v/60;\n const mins = Math.floor(t);\n const seconds = Math.round((t - mins) * 60);\n return this.addPadding(mins+ '', 2) + ':' + this.addPadding(seconds+ '', 2);\n }\n\n setTimer() {\n this.cancelTimer();\n this.timer = setInterval(() => {\n if (this.state.currentTime >= this.state.totalTime) {\n if (this.state.props.loop) {\n this.replay();\n } else {\n this.stop();\n }\n return;\n }\n this.setState({\n currentTime: Math.max(this.offsetTime + this.state.currentTime + 1, 0)\n } as WmAudioState);\n this.offsetTime = 0;\n }, 1000);\n }\n\n cancelTimer() {\n clearInterval(this.timer);\n }\n\n stop() {\n this.pause();\n this.sound?.unloadAsync();\n this.sound = null as any;\n this.cancelTimer();\n this.offsetTime = 0;\n this.updateState({\n currentTime: 0\n } as WmAudioState);\n }\n\n replay() {\n this.updateState({\n currentTime: 0\n } as WmAudioState, () => {\n this.sound.replayAsync();\n });\n }\n\n play() {\n if (isWebPreviewMode() \n || this.loading\n || (this.state.playing && this.sound)) {\n return;\n }\n if (this.sound) {\n this.sound.playAsync();\n this.setTimer();\n this.updateState({\n playing: true\n } as WmAudioState);\n } else {\n this.loading = true;\n const source = this.getSource();\n source && Audio.Sound.createAsync(source, {\n isMuted: this.state.props.muted\n })\n .then((res) => {\n this.sound = res.sound;\n this.sound.playAsync();\n this.sound.getStatusAsync().then((status: any) => {\n this.updateState({\n currentTime: 0,\n totalTime: Math.round(status['durationMillis']/1000)\n } as WmAudioState, () => this.setTimer());\n });\n this.updateState({\n playing: true\n } as WmAudioState);\n }).catch(() => {}).then(() => {\n this.loading = false;\n });\n }\n }\n\n pause() {\n this.cancelTimer();\n this.sound?.pauseAsync().then(() => {\n this.updateState({\n playing: false\n } as WmAudioState);\n })\n }\n\n mute() {\n this.sound.setStatusAsync({\n isMuted: true\n }).then(() => {\n this.updateState({\n props: {\n muted: true\n }\n } as WmAudioState);\n });\n }\n\n unmute() {\n this.sound.setStatusAsync({\n isMuted: false\n }).then(() => {\n this.updateState({\n props: {\n muted: false\n }\n } as WmAudioState);\n });\n }\n\n onSeekChange(time: number) {\n if (time !== this.state.currentTime) {\n this.offsetTime = time - this.state.currentTime;\n this.sound?.setPositionAsync(time * 1000);\n }\n }\n\n componentDidMount(): void {\n super.componentDidMount();\n //without settimeout, app is crashing with errors\n setTimeout(() => {\n if (this.state.props.autoplay) {\n this.play();\n }\n }, 1000);\n }\n\n componentWillUnmount(): void {\n super.componentWillUnmount();\n this.stop();\n }\n\n renderWidget(props: WmAudioProps) {\n return props.controls ? (\n <View style={this.styles.root}>\n {this._background}\n {!this.state.playing ? (<WmIcon \n id={this.getTestId('play')}\n name={props.name + \"_play\"}\n styles={this.styles.playIcon}\n iconclass=\"wi wi-play-arrow fa-2x\"\n onTap={() => this.play()}></WmIcon>) : (\n <WmIcon name={props.name + \"_pause\"}\n id={this.getTestId('pause')}\n iconclass=\"wi wi-pause fa-2x\"\n styles={this.styles.pauseIcon}\n onTap={() => this.pause()}></WmIcon>)}\n <Text style={this.styles.text}>\n {`${this.formatTime(this.state.currentTime)} / ${this.formatTime(this.state.totalTime)}`}\n </Text>\n <Slider\n testID={this.getTestId('slider')}\n step={1}\n style={{flex: 1}}\n value={this.state.currentTime}\n disabled={isWebPreviewMode()}\n onValueChange={this.onSeekChange.bind(this)}\n minimumValue={0}\n inverted={this.isRTL && (Platform.OS==\"android\" || Platform.OS==\"web\")}\n maximumValue={this.state.totalTime || 1}\n thumbTintColor={this.styles.slider.thumb.backgroundColor as string}\n minimumTrackTintColor={this.styles.slider.minimumTrack.backgroundColor as string}\n maximumTrackTintColor={this.styles.slider.maximumTrack.backgroundColor as string}\n />\n {!props.muted ? (<WmIcon name={props.name + \"_mute\"}\n id={this.getTestId('mute')}\n iconclass=\"wi wi-volume-up fa-2x\"\n styles={this.styles.muteIcon}\n onTap={() => this.mute()}></WmIcon>) :\n (<WmIcon name={props.name + \"_unmute\"}\n id={this.getTestId('unmute')}\n iconclass=\"wi wi-volume-off fa-2x\"\n styles={this.styles.unmuteIcon}\n onTap={() => this.unmute()}></WmIcon>)}\n </View>) : null; \n }\n}\n"],"mappings":";;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,QAAQ,EAAEC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AACnD,OAAOC,MAAM,MAAM,gCAAgC;AACnD,SA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N,MAAM,EAAE,IAAI,CAACA,MAAM,CAAC8B,QAAS;MAC7BvB,KAAK,EAAEA,CAAA,KAAM,IAAI,CAACpB,IAAI,CAAC;IAAE,CAAS,CAAC,gBACpCnF,KAAA,CAAA8F,aAAA,CAACnF,MAAM;MAACS,IAAI,EAAEF,KAAK,CAACE,IAAI,GAAG,SAAU;MACpC+E,EAAE,EAAE,IAAI,CAACC,SAAS,CAAC,QAAQ,CAAE;MAC7BE,SAAS,EAAC,wBAAwB;MAClCN,MAAM,EAAE,IAAI,CAACA,MAAM,CAAC+B,UAAW;MAC/BxB,KAAK,EAAEA,CAAA,KAAM,IAAI,CAAClB,MAAM,CAAC;IAAE,CAAS,CAClC,CAAC,GAAI,IAAI;EACnB;AACF"}
1
+ {"version":3,"names":["React","Platform","Text","View","Slider","isString","Audio","BaseComponent","BaseComponentState","WmAudioProps","DEFAULT_CLASS","WmIcon","isWebPreviewMode","WmAudioState","constructor","args","_defineProperty","WmAudio","props","onPropertyChange","name","$new","$old","initialized","Promise","resolve","then","_this$sound","sound","unloadAsync","onSeekChange","state","playing","autoplay","play","getSource","source","loadAsset","mp3format","uri","addPadding","str","maxLen","pad","length","formatTime","v","t","mins","Math","floor","seconds","round","setTimer","cancelTimer","timer","setInterval","currentTime","totalTime","loop","replay","stop","setState","max","offsetTime","clearInterval","_this$sound2","pause","updateState","replayAsync","loading","playAsync","Sound","createAsync","isMuted","muted","res","getStatusAsync","status","catch","_this$sound3","pauseAsync","mute","setStatusAsync","unmute","time","_this$sound4","setPositionAsync","componentDidMount","setTimeout","componentWillUnmount","renderWidget","controls","createElement","style","styles","root","_background","id","getTestId","playIcon","iconclass","onTap","pauseIcon","text","testID","step","flex","value","disabled","onValueChange","bind","minimumValue","inverted","isRTL","OS","maximumValue","thumbTintColor","slider","thumb","backgroundColor","minimumTrackTintColor","minimumTrack","maximumTrackTintColor","maximumTrack","muteIcon","unmuteIcon"],"sources":["audio.component.tsx"],"sourcesContent":["import React from 'react';\nimport { Platform, Text, View } from 'react-native';\nimport Slider from '@react-native-community/slider';\nimport { isString } from 'lodash-es';\nimport { Audio } from 'expo-av';\nimport { Sound } from 'expo-av/build/Audio';\nimport { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';\n\nimport WmAudioProps from './audio.props';\nimport { DEFAULT_CLASS, WmAudioStyles } from './audio.styles';\nimport WmIcon from '../icon/icon.component';\nimport { isWebPreviewMode } from '@wavemaker/app-rn-runtime/core/utils';\n\nexport class WmAudioState extends BaseComponentState<WmAudioProps> {\n playing = false;\n currentTime = 0;\n totalTime = 0;\n}\n\nexport default class WmAudio extends BaseComponent<WmAudioProps, WmAudioState, WmAudioStyles> {\n\n private loading = false;\n private sound: Sound = null as any;\n private timer: any;\n private offsetTime = 0;\n\n constructor(props: WmAudioProps) {\n super(props, DEFAULT_CLASS, new WmAudioProps(), new WmAudioState());\n }\n\n onPropertyChange(name: string, $new: any, $old: any): void {\n super.onPropertyChange(name, $new, $old);\n switch(name) {\n case 'mp3format': {\n if (this.initialized) {\n Promise.resolve()\n .then(() => this.sound?.unloadAsync())\n .then(() => {\n this.sound = null as any;\n this.onSeekChange(0);\n if (this.state.playing \n || this.state.props.autoplay) {\n this.play();\n }\n });\n }\n }\n break;\n case 'autoplay':\n if (this.initialized && $new) {\n this.play();\n }\n }\n }\n\n getSource() {\n const source = this.loadAsset \n && this.state.props.mp3format\n && this.loadAsset(this.state.props.mp3format as string);\n if (isString(source)) {\n return {\n uri: source\n };\n }\n return source;\n }\n\n addPadding(str: string, maxLen: number, pad = '0'): string {\n if (str.length < maxLen) {\n return this.addPadding(pad + str, maxLen, pad);\n }\n return str;\n }\n\n formatTime(v: number) {\n const t = v/60;\n const mins = Math.floor(t);\n const seconds = Math.round((t - mins) * 60);\n return this.addPadding(mins+ '', 2) + ':' + this.addPadding(seconds+ '', 2);\n }\n\n setTimer() {\n this.cancelTimer();\n this.timer = setInterval(() => {\n if (this.state.currentTime >= this.state.totalTime) {\n if (this.state.props.loop) {\n this.replay();\n } else {\n this.stop();\n }\n return;\n }\n this.setState({\n currentTime: Math.max(this.offsetTime + this.state.currentTime + 1, 0)\n } as WmAudioState);\n this.offsetTime = 0;\n }, 1000);\n }\n\n cancelTimer() {\n clearInterval(this.timer);\n }\n\n stop() {\n this.pause();\n this.sound?.unloadAsync();\n this.sound = null as any;\n this.cancelTimer();\n this.offsetTime = 0;\n this.updateState({\n currentTime: 0\n } as WmAudioState);\n }\n\n replay() {\n this.updateState({\n currentTime: 0\n } as WmAudioState, () => {\n this.sound.replayAsync();\n });\n }\n\n play() {\n if (isWebPreviewMode() \n || this.loading\n || (this.state.playing && this.sound)) {\n return;\n }\n if (this.sound) {\n this.sound.playAsync();\n this.setTimer();\n this.updateState({\n playing: true\n } as WmAudioState);\n } else {\n this.loading = true;\n const source = this.getSource();\n source && Audio.Sound.createAsync(source, {\n isMuted: this.state.props.muted\n })\n .then((res) => {\n this.sound = res.sound;\n this.sound.playAsync();\n this.sound.getStatusAsync().then((status: any) => {\n this.updateState({\n currentTime: 0,\n totalTime: Math.round(status['durationMillis']/1000)\n } as WmAudioState, () => this.setTimer());\n });\n this.updateState({\n playing: true\n } as WmAudioState);\n }).catch(() => {}).then(() => {\n this.loading = false;\n });\n }\n }\n\n pause() {\n this.cancelTimer();\n this.sound?.pauseAsync().then(() => {\n this.updateState({\n playing: false\n } as WmAudioState);\n })\n }\n\n mute() {\n this.sound.setStatusAsync({\n isMuted: true\n }).then(() => {\n this.updateState({\n props: {\n muted: true\n }\n } as WmAudioState);\n });\n }\n\n unmute() {\n this.sound.setStatusAsync({\n isMuted: false\n }).then(() => {\n this.updateState({\n props: {\n muted: false\n }\n } as WmAudioState);\n });\n }\n\n onSeekChange(time: number) {\n if (time !== this.state.currentTime) {\n this.offsetTime = time - this.state.currentTime;\n this.sound?.setPositionAsync(time * 1000);\n }\n }\n\n componentDidMount(): void {\n super.componentDidMount();\n //without settimeout, app is crashing with errors\n setTimeout(() => {\n if (this.state.props.autoplay) {\n this.play();\n }\n }, 1000);\n }\n\n componentWillUnmount(): void {\n super.componentWillUnmount();\n this.stop();\n }\n\n renderWidget(props: WmAudioProps) {\n return props.controls ? (\n <View style={this.styles.root}>\n {this._background}\n {!this.state.playing ? (<WmIcon \n id={this.getTestId('play')}\n name={props.name + \"_play\"}\n styles={this.styles.playIcon}\n iconclass=\"wi wi-play-arrow fa-2x\"\n onTap={() => this.play()}></WmIcon>) : (\n <WmIcon name={props.name + \"_pause\"}\n id={this.getTestId('pause')}\n iconclass=\"wi wi-pause fa-2x\"\n styles={this.styles.pauseIcon}\n onTap={() => this.pause()}></WmIcon>)}\n <Text style={this.styles.text}>\n {`${this.formatTime(this.state.currentTime)} / ${this.formatTime(this.state.totalTime)}`}\n </Text>\n <Slider\n testID={this.getTestId('slider')}\n step={1}\n style={{flex: 1}}\n value={this.state.currentTime}\n disabled={isWebPreviewMode()}\n onValueChange={this.onSeekChange.bind(this)}\n minimumValue={0}\n inverted={this.isRTL && (Platform.OS==\"android\" || Platform.OS==\"web\")}\n maximumValue={this.state.totalTime || 1}\n thumbTintColor={this.styles.slider.thumb.backgroundColor as string}\n minimumTrackTintColor={this.styles.slider.minimumTrack.backgroundColor as string}\n maximumTrackTintColor={this.styles.slider.maximumTrack.backgroundColor as string}\n />\n {!props.muted ? (<WmIcon name={props.name + \"_mute\"}\n id={this.getTestId('mute')}\n iconclass=\"wi wi-volume-up fa-2x\"\n styles={this.styles.muteIcon}\n onTap={() => this.mute()}></WmIcon>) :\n (<WmIcon name={props.name + \"_unmute\"}\n id={this.getTestId('unmute')}\n iconclass=\"wi wi-volume-off fa-2x\"\n styles={this.styles.unmuteIcon}\n onTap={() => this.unmute()}></WmIcon>)}\n </View>) : null; \n }\n}\n"],"mappings":";;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,QAAQ,EAAEC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AACnD,OAAOC,MAAM,MAAM,gCAAgC;AACnD,SAASC,QAAQ,Q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,CAACpB,IAAI,CAAC;IAAE,CAAS,CAAC,gBACpClF,KAAA,CAAA6F,aAAA,CAAClF,MAAM;MAACS,IAAI,EAAEF,KAAK,CAACE,IAAI,GAAG,SAAU;MACpC8E,EAAE,EAAE,IAAI,CAACC,SAAS,CAAC,QAAQ,CAAE;MAC7BE,SAAS,EAAC,wBAAwB;MAClCN,MAAM,EAAE,IAAI,CAACA,MAAM,CAAC+B,UAAW;MAC/BxB,KAAK,EAAEA,CAAA,KAAM,IAAI,CAAClB,MAAM,CAAC;IAAE,CAAS,CAClC,CAAC,GAAI,IAAI;EACnB;AACF","ignoreList":[]}
@@ -1,10 +1,10 @@
1
1
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
2
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
3
- function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
2
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
3
+ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
4
4
  import { BaseProps } from '@wavemaker/app-rn-runtime/core/base.component';
5
5
  export default class WmAudioProps extends BaseProps {
6
- constructor() {
7
- super(...arguments);
6
+ constructor(...args) {
7
+ super(...args);
8
8
  _defineProperty(this, "mp3format", '');
9
9
  _defineProperty(this, "controls", false);
10
10
  _defineProperty(this, "autoplay", false);
@@ -1 +1 @@
1
- {"version":3,"names":["BaseProps","WmAudioProps","constructor","arguments","_defineProperty"],"sources":["audio.props.ts"],"sourcesContent":["import { BaseProps } from '@wavemaker/app-rn-runtime/core/base.component';\n\nexport default class WmAudioProps extends BaseProps {\n mp3format? = '';\n controls = false;\n autoplay = false;\n loop = false;\n muted = false;\n}"],"mappings":";;;AAAA,SAASA,SAAS,QAAQ,+CAA+C;AAEzE,eAAe,MAAMC,YAAY,SAASD,SAAS,CAAC;EAAAE,YAAA;IAAA,SAAAC,SAAA;IAAAC,eAAA,oBACnC,EAAE;IAAAA,eAAA,mBACJ,KAAK;IAAAA,eAAA,mBACL,KAAK;IAAAA,eAAA,eACT,KAAK;IAAAA,eAAA,gBACJ,KAAK;EAAA;AACjB"}
1
+ {"version":3,"names":["BaseProps","WmAudioProps","constructor","args","_defineProperty"],"sources":["audio.props.ts"],"sourcesContent":["import { BaseProps } from '@wavemaker/app-rn-runtime/core/base.component';\n\nexport default class WmAudioProps extends BaseProps {\n mp3format? = '';\n controls = false;\n autoplay = false;\n loop = false;\n muted = false;\n}"],"mappings":";;;AAAA,SAASA,SAAS,QAAQ,+CAA+C;AAEzE,eAAe,MAAMC,YAAY,SAASD,SAAS,CAAC;EAAAE,YAAA,GAAAC,IAAA;IAAA,SAAAA,IAAA;IAAAC,eAAA,oBACnC,EAAE;IAAAA,eAAA,mBACJ,KAAK;IAAAA,eAAA,mBACL,KAAK;IAAAA,eAAA,eACT,KAAK;IAAAA,eAAA,gBACJ,KAAK;EAAA;AACjB","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["BASE_THEME","defineStyles","Color","DEFAULT_CLASS","registerStyle","themeVariables","addStyle","defaultStyles","root","backgroundColor","defaultColorF","flexDirection","justifyContent","alignItems","paddingHorizontal","paddingVertical","borderRadius","minWidth","text","color","defaultColor3","playIcon","icon","pauseIcon","muteIcon","unmuteIcon","slider","flex","display","minimumTrack","maximumTrack","lighten","rgb","toString","thumb"],"sources":["audio.styles.ts"],"sourcesContent":["import BASE_THEME from '@wavemaker/app-rn-runtime/styles/theme';\nimport { BaseStyles, defineStyles } from '@wavemaker/app-rn-runtime/core/base.component';\nimport { WmSliderStyles } from '../../input/slider/slider.styles';\nimport { WmIconStyles } from '../icon/icon.styles';\nimport Color from 'color';\n\nexport type WmAudioStyles = BaseStyles & {\n playIcon: WmIconStyles\n pauseIcon: WmIconStyles\n muteIcon: WmIconStyles\n unmuteIcon: WmIconStyles\n slider: WmSliderStyles\n};\n\nexport const DEFAULT_CLASS = 'app-audio';\nBASE_THEME.registerStyle((themeVariables, addStyle) => {\n const defaultStyles = defineStyles<WmAudioStyles>({\n root: {\n backgroundColor: themeVariables.defaultColorF,\n flexDirection: 'row',\n justifyContent: 'space-between',\n alignItems: 'center',\n paddingHorizontal: 16,\n paddingVertical: 8,\n borderRadius: 64,\n minWidth: 300\n },\n text: {\n color: themeVariables.defaultColor3,\n paddingHorizontal: 8\n },\n playIcon: {\n icon: {\n color: themeVariables.defaultColor3\n }\n },\n pauseIcon: {\n icon: {\n color: themeVariables.defaultColor3\n }\n },\n muteIcon: {\n icon: {\n color: themeVariables.defaultColor3\n }\n },\n unmuteIcon: {\n icon: {\n color: themeVariables.defaultColor3\n }\n },\n slider: {\n root: {\n flex: 1\n },\n text: {\n display: 'none'\n },\n minimumTrack: {\n backgroundColor: themeVariables.defaultColor3\n },\n maximumTrack: {\n backgroundColor: Color(themeVariables.defaultColor3).lighten(0.8).rgb().toString()\n },\n thumb: {\n backgroundColor: themeVariables.defaultColor3\n }\n } as WmSliderStyles\n } as WmAudioStyles);\n addStyle(DEFAULT_CLASS, '', defaultStyles);\n});"],"mappings":"AAAA,OAAOA,UAAU,MAAM,wCAAwC;AAC/D,SAAqBC,YAAY,QAAQ,+CAA+C;AAGxF,OAAOC,KAAK,MAAM,OAAO;AAUzB,OAAO,MAAMC,aAAa,GAAG,WAAW;AACxCH,UAAU,CAACI,aAAa,CAAC,CAACC,cAAc,EAAEC,QAAQ,KAAK;EACnD,MAAMC,aAAa,G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defineStyles","Color","DEFAULT_CLASS","registerStyle","themeVariables","addStyle","defaultStyles","root","backgroundColor","defaultColorF","flexDirection","justifyContent","alignItems","paddingHorizontal","paddingVertical","borderRadius","minWidth","text","color","defaultColor3","playIcon","icon","pauseIcon","muteIcon","unmuteIcon","slider","flex","display","minimumTrack","maximumTrack","lighten","rgb","toString","thumb"],"sources":["audio.styles.ts"],"sourcesContent":["import BASE_THEME from '@wavemaker/app-rn-runtime/styles/theme';\nimport { BaseStyles, defineStyles } from '@wavemaker/app-rn-runtime/core/base.component';\nimport { WmSliderStyles } from '../../input/slider/slider.styles';\nimport { WmIconStyles } from '../icon/icon.styles';\nimport Color from 'color';\n\nexport type WmAudioStyles = BaseStyles & {\n playIcon: WmIconStyles\n pauseIcon: WmIconStyles\n muteIcon: WmIconStyles\n unmuteIcon: WmIconStyles\n slider: WmSliderStyles\n};\n\nexport const DEFAULT_CLASS = 'app-audio';\nBASE_THEME.registerStyle((themeVariables, addStyle) => {\n const defaultStyles = defineStyles<WmAudioStyles>({\n root: {\n backgroundColor: themeVariables.defaultColorF,\n flexDirection: 'row',\n justifyContent: 'space-between',\n alignItems: 'center',\n paddingHorizontal: 16,\n paddingVertical: 8,\n borderRadius: 64,\n minWidth: 300\n },\n text: {\n color: themeVariables.defaultColor3,\n paddingHorizontal: 8\n },\n playIcon: {\n icon: {\n color: themeVariables.defaultColor3\n }\n },\n pauseIcon: {\n icon: {\n color: themeVariables.defaultColor3\n }\n },\n muteIcon: {\n icon: {\n color: themeVariables.defaultColor3\n }\n },\n unmuteIcon: {\n icon: {\n color: themeVariables.defaultColor3\n }\n },\n slider: {\n root: {\n flex: 1\n },\n text: {\n display: 'none'\n },\n minimumTrack: {\n backgroundColor: themeVariables.defaultColor3\n },\n maximumTrack: {\n backgroundColor: Color(themeVariables.defaultColor3).lighten(0.8).rgb().toString()\n },\n thumb: {\n backgroundColor: themeVariables.defaultColor3\n }\n } as WmSliderStyles\n } as WmAudioStyles);\n addStyle(DEFAULT_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GAAG,CAAC,CAACC,GAAG,CAAC,CAAC,CAACC,QAAQ,CAAC;MACrF,CAAC;MACDC,KAAK,EAAE;QACHzB,eAAe,EAAEJ,cAAc,CAACe;MACpC;IACJ;EACJ,CAAkB,CAAC;EACnBd,QAAQ,CAACH,aAAa,EAAE,EAAE,EAAEI,aAAa,CAAC;AAC9C,CAAC,CAAC","ignoreList":[]}
@@ -15,17 +15,16 @@ export default class WmButton extends BaseComponent {
15
15
  constructor(props) {
16
16
  super(props, DEFAULT_CLASS, new WmButtonProps());
17
17
  }
18
- prepareIcon(_ref) {
19
- let {
20
- iconclass,
21
- iconurl,
22
- hint,
23
- name,
24
- iconsize,
25
- iconheight,
26
- iconmargin,
27
- iconwidth
28
- } = _ref;
18
+ prepareIcon({
19
+ iconclass,
20
+ iconurl,
21
+ hint,
22
+ name,
23
+ iconsize,
24
+ iconheight,
25
+ iconmargin,
26
+ iconwidth
27
+ }) {
29
28
  return iconclass || iconurl ? /*#__PURE__*/React.createElement(WmIcon, _extends({}, this.getTestPropsForLabel('icon'), {
30
29
  hint: hint,
31
30
  styles: this.styles.icon,
@@ -54,13 +53,17 @@ export default class WmButton extends BaseComponent {
54
53
  renderWidget(props) {
55
54
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Animatedview, {
56
55
  entryanimation: props.animation,
56
+ delay: props.animationdelay,
57
57
  style: [this.styles.root, {
58
58
  paddingTop: 0,
59
59
  paddingBottom: 0,
60
60
  paddingLeft: 0,
61
61
  paddingRight: 0,
62
- overflow: 'hidden'
63
- }]
62
+ overflow: 'hidden',
63
+ flexDirection: 'column'
64
+ }, this.styles.root.height == "100%" ? {
65
+ flex: 1
66
+ } : {}]
64
67
  // accessibilityProps={{...getAccessibilityProps(
65
68
  // AccessibilityWidgetType.BUTTON,
66
69
  // props
@@ -71,7 +74,8 @@ export default class WmButton extends BaseComponent {
71
74
  paddingBottom: this.styles.root.paddingBottom,
72
75
  paddingLeft: this.styles.root.paddingLeft,
73
76
  paddingRight: this.styles.root.paddingRight,
74
- height: '100%',
77
+ width: '100%',
78
+ height: this.styles.root.height ? '100%' : null,
75
79
  justifyContent: 'center'
76
80
  },
77
81
  rippleColor: this.styles.root.rippleColor,
@@ -1 +1 @@
1
- {"version":3,"names":["React","Text","View","BaseComponent","BaseComponentState","Tappable","Badge","WmButtonProps","DEFAULT_CLASS","WmIcon","Animatedview","createSkeleton","AccessibilityWidgetType","getAccessibilityProps","WmButtonState","WmButton","constructor","props","prepareIcon","_ref","iconclass","iconurl","hint","name","iconsize","iconheight","iconmargin","iconwidth","createElement","_extends","getTestPropsForLabel","styles","icon","prepareBadge","style","badge","badgevalue","renderSkeleton","prop","theme","skeleton","root","width","skeletonwidth","height","skeletonheight","renderWidget","Fragment","entryanimation","animation","paddingTop","paddingBottom","paddingLeft","paddingRight","overflow","_background","justifyContent","rippleColor","target","getTestPropsForAction","accessibilityProps","BUTTON","content","flexDirection","iconposition","caption","text","importantForAccessibility"],"sources":["button.component.tsx"],"sourcesContent":["import React from 'react';\nimport { DimensionValue, Text, View } from 'react-native';\nimport { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';\nimport { Tappable } from '@wavemaker/app-rn-runtime/core/tappable.component';\nimport { Badge } from 'react-native-paper';\n\nimport WmButtonProps from './button.props';\nimport { DEFAULT_CLASS, WmButtonStyles } from './button.styles';\nimport WmIcon from '@wavemaker/app-rn-runtime/components/basic/icon/icon.component';\nimport { Animatedview } from '@wavemaker/app-rn-runtime/components/basic/animatedview.component';\nimport { createSkeleton } from '../skeleton/skeleton.component';\nimport { AccessibilityWidgetType, getAccessibilityProps } from '@wavemaker/app-rn-runtime/core/accessibility';\n\nexport class WmButtonState extends BaseComponentState<WmButtonProps> {\n\n}\n\nexport default class WmButton extends BaseComponent<WmButtonProps, WmButtonState, WmButtonStyles> {\n\n constructor(props: WmButtonProps) {\n super(props, DEFAULT_CLASS, new WmButtonProps());\n }\n\n private prepareIcon({\n iconclass,\n iconurl,\n hint,\n name,\n iconsize,\n iconheight,\n iconmargin,\n iconwidth,\n }: any) {\n return iconclass || iconurl\n ? (<WmIcon\n {...this.getTestPropsForLabel('icon')}\n hint={hint}\n styles={this.styles.icon} \n name={`${name}_icon`} \n iconclass={iconclass}\n iconsize={iconsize}\n iconurl={iconurl} \n iconheight={iconheight}\n iconmargin={iconmargin}\n iconwidth={iconwidth}\n />): null;\n }\n\n private prepareBadge(props: any) {\n //@ts-ignore\n return (<Badge style={this.styles.badge}>{props.badgevalue}</Badge>);\n }\n\n public renderSkeleton(prop: WmButtonProps) {\n return createSkeleton(this.theme, this.styles.skeleton, {\n ...this.styles.root,\n width: (this.props.skeletonwidth || this.styles.root.width)as DimensionValue,\n height: (this.props.skeletonheight || this.styles.root.height) as DimensionValue\n });\n }\n\n renderWidget(props: WmButtonProps) {\n return (\n <>\n <Animatedview entryanimation={props.animation}\n style={[\n this.styles.root,\n {\n paddingTop: 0,\n paddingBottom: 0,\n paddingLeft: 0,\n paddingRight: 0,\n overflow: 'hidden'\n }\n ]}\n // accessibilityProps={{...getAccessibilityProps(\n // AccessibilityWidgetType.BUTTON,\n // props\n // )}}\n >\n {this._background}\n <Tappable\n styles={{\n paddingTop: this.styles.root.paddingTop,\n paddingBottom: this.styles.root.paddingBottom,\n paddingLeft: this.styles.root.paddingLeft,\n paddingRight: this.styles.root.paddingRight,\n height: '100%',\n justifyContent: 'center',\n }}\n rippleColor = {this.styles.root.rippleColor}\n target={this}\n {...this.getTestPropsForAction()}\n accessibilityProps={{...getAccessibilityProps(\n AccessibilityWidgetType.BUTTON,\n props\n )}}>\n <View\n style={[\n this.styles.content,\n { flexDirection: props.iconposition === 'top' ? 'column' : 'row' }\n ]}>\n {props.iconposition === 'top' && this.prepareIcon(props)}\n {props.iconposition === 'left' && this.prepareIcon(props)}\n {props.caption ? (\n <Text\n style={this.styles.text}\n {...this.getTestPropsForLabel('caption')}\n importantForAccessibility={'no'}\n // accessibilityLabel={`${props.caption}`}\n >\n {props.caption}\n </Text>\n ) : null}\n {props.iconposition === 'right' && this.prepareIcon(props)}\n </View>\n </Tappable>\n </Animatedview>\n {props.badgevalue && this.prepareBadge(props)}\n </>\n );\n }\n}\n"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAAyBC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AACzD,SAASC,aAAa,EAAEC,kBAAkB,QAAQ,+CAA+C;AACjG,SAASC,QAAQ,QAAQ,mDAAmD;AAC5E,SAASC,KAAK,QAAQ,oBAAoB;AAE1C,OAAOC,aAAa,MAAM,gBAAgB;AAC1C,SAASC,aAAa,QAAwB,iBAAiB;AAC/D,OAAOC,MAAM,MAAM,gEAAgE;AACnF,SAASC,YAAY,QAAQ,mEAAmE;AAChG,SAASC,cAAc,QAAQ,gCAAgC;AAC/D,SAASC,uBAAuB,EAAEC,qBAAqB,QAAQ,8CAA8C;AAE7G,OAAO,MAAMC,aAAa,SAASV,kBAAkB,CAAgB;AAIrE,eAAe,MAAMW,QAAQ,SAASZ,aAAa,CAA+C;EAEhGa,WAAWA,CAACC,KAAoB,EAAE;IAChC,KAAK,CAACA,KAAK,EAAET,aAAa,EAAE,IAAID,aAAa,CAAC,CAAC,CAAC;EAClD;EAEQW,WAAWA,CAAAC,IAAA,EASX;IAAA,IATY;MAClBC,SAAS;MACTC,OAAO;MACPC,IAAI;MACJC,IAAI;MACJC,QAAQ;MACRC,UAAU;MACVC,UAAU;MACVC;IACG,CAAC,GAAAR,IAAA;IACJ,OAAOC,SAAS,IAAIC,OAAO,gBACtBrB,KAAA,CAAA4B,aAAA,CAACnB,MAAM,EAAAoB,QAAA,KACF,IAAI,CAACC,oBAAoB,CAAC,MAAM,CAAC;MACrCR,IAAI,EAAEA,IAAK;MACXS,MAAM,EAAE,IAAI,CAACA,MAAM,CAACC,IAAK;MACzBT,IAAI,EAAG,GAAEA,IAAK,OAAO;MACrBH,SAAS,EAAEA,SAAU;MACrBI,QAAQ,EAAEA,QAAS;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,EACdA,KAAK,CAACmB,UAAU,IAAI,IAAI,CAACH,YAAY,CAAChB,KAAK,CAC1C,CAAC;EAEP;AACF"}
1
+ {"version":3,"names":["React","Text","View","BaseComponent","BaseComponentState","Tappable","Badge","WmButtonProps","DEFAULT_CLASS","WmIcon","Animatedview","createSkeleton","AccessibilityWidgetType","getAccessibilityProps","WmButtonState","WmButton","constructor","props","prepareIcon","iconclass","iconurl","hint","name","iconsize","iconheight","iconmargin","iconwidth","createElement","_extends","getTestPropsForLabel","styles","icon","prepareBadge","style","badge","badgevalue","renderSkeleton","prop","theme","skeleton","root","width","skeletonwidth","height","skeletonheight","renderWidget","Fragment","entryanimation","animation","delay","animationdelay","paddingTop","paddingBottom","paddingLeft","paddingRight","overflow","flexDirection","flex","_background","justifyContent","rippleColor","target","getTestPropsForAction","accessibilityProps","BUTTON","content","iconposition","caption","text","importantForAccessibility"],"sources":["button.component.tsx"],"sourcesContent":["import React from 'react';\nimport { DimensionValue, Text, View } from 'react-native';\nimport { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';\nimport { Tappable } from '@wavemaker/app-rn-runtime/core/tappable.component';\nimport { Badge } from 'react-native-paper';\n\nimport WmButtonProps from './button.props';\nimport { DEFAULT_CLASS, WmButtonStyles } from './button.styles';\nimport WmIcon from '@wavemaker/app-rn-runtime/components/basic/icon/icon.component';\nimport { Animatedview } from '@wavemaker/app-rn-runtime/components/basic/animatedview.component';\nimport { createSkeleton } from '../skeleton/skeleton.component';\nimport { AccessibilityWidgetType, getAccessibilityProps } from '@wavemaker/app-rn-runtime/core/accessibility';\n\nexport class WmButtonState extends BaseComponentState<WmButtonProps> {\n\n}\n\nexport default class WmButton extends BaseComponent<WmButtonProps, WmButtonState, WmButtonStyles> {\n\n constructor(props: WmButtonProps) {\n super(props, DEFAULT_CLASS, new WmButtonProps());\n }\n\n private prepareIcon({\n iconclass,\n iconurl,\n hint,\n name,\n iconsize,\n iconheight,\n iconmargin,\n iconwidth,\n }: any) {\n return iconclass || iconurl\n ? (<WmIcon\n {...this.getTestPropsForLabel('icon')}\n hint={hint}\n styles={this.styles.icon}\n name={`${name}_icon`}\n iconclass={iconclass}\n iconsize={iconsize}\n iconurl={iconurl}\n iconheight={iconheight}\n iconmargin={iconmargin}\n iconwidth={iconwidth}\n />): null;\n }\n\n private prepareBadge(props: any) {\n //@ts-ignore\n return (<Badge style={this.styles.badge}>{props.badgevalue}</Badge>);\n }\n\n public renderSkeleton(prop: WmButtonProps) {\n return createSkeleton(this.theme, this.styles.skeleton, {\n ...this.styles.root,\n width: (this.props.skeletonwidth || this.styles.root.width)as DimensionValue,\n height: (this.props.skeletonheight || this.styles.root.height) as DimensionValue\n });\n }\n\n renderWidget(props: WmButtonProps) {\n return (\n <>\n <Animatedview entryanimation={props.animation} delay={props.animationdelay}\n style={[\n this.styles.root,\n {\n paddingTop: 0,\n paddingBottom: 0,\n paddingLeft: 0,\n paddingRight: 0,\n overflow: 'hidden',\n flexDirection: 'column'\n },\n this.styles.root.height == \"100%\" ? {flex: 1}:{}\n ]}\n // accessibilityProps={{...getAccessibilityProps(\n // AccessibilityWidgetType.BUTTON,\n // props\n // )}}\n >\n {this._background}\n <Tappable\n styles={{\n paddingTop: this.styles.root.paddingTop,\n paddingBottom: this.styles.root.paddingBottom,\n paddingLeft: this.styles.root.paddingLeft,\n paddingRight: this.styles.root.paddingRight,\n width: '100%',\n height: this.styles.root.height ? '100%' : null,\n justifyContent: 'center',\n }}\n rippleColor = {this.styles.root.rippleColor}\n target={this}\n {...this.getTestPropsForAction()}\n accessibilityProps={{...getAccessibilityProps(\n AccessibilityWidgetType.BUTTON,\n props\n )}}>\n <View\n style={[\n this.styles.content,\n { flexDirection: props.iconposition === 'top' ? 'column' : 'row' }\n ]}>\n {props.iconposition === 'top' && this.prepareIcon(props)}\n {props.iconposition === 'left' && this.prepareIcon(props)}\n {props.caption ? (\n <Text\n style={this.styles.text}\n {...this.getTestPropsForLabel('caption')}\n importantForAccessibility={'no'}\n // accessibilityLabel={`${props.caption}`}\n >\n {props.caption}\n </Text>\n ) : null}\n {props.iconposition === 'right' && this.prepareIcon(props)}\n </View>\n </Tappable>\n </Animatedview>\n {props.badgevalue && this.prepareBadge(props)}\n </>\n );\n }\n}\n"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAAyBC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AACzD,SAASC,aAAa,EAAEC,kBAAkB,QAAQ,+CAA+C;AACjG,SAASC,QAAQ,QAAQ,mDAAmD;AAC5E,SAASC,KAAK,QAAQ,oBAAoB;AAE1C,OAAOC,aAAa,MAAM,gBAAgB;AAC1C,SAASC,aAAa,QAAwB,iBAAiB;AAC/D,OAAOC,MAAM,MAAM,gEAAgE;AACnF,SAASC,YAAY,QAAQ,mEAAmE;AAChG,SAASC,cAAc,QAAQ,gCAAgC;AAC/D,SAASC,uBAAuB,EAAEC,qBAAqB,QAAQ,8CAA8C;AAE7G,OAAO,MAAMC,aAAa,SAASV,kBAAkB,CAAgB;AAIrE,eAAe,MAAMW,QAAQ,SAASZ,aAAa,CAA+C;EAEhGa,WAAWA,CAACC,KAAoB,EAAE;IAChC,KAAK,CAACA,KAAK,EAAET,aAAa,EAAE,IAAID,aAAa,CAAC,CAAC,CAAC;EAClD;EAEQW,WAAWA,CAAC;IAClBC,SAAS;IACTC,OAAO;IACPC,IAAI;IACJC,IAAI;IACJC,QAAQ;IACRC,UAAU;IACVC,UAAU;IACVC;EACG,CAAC,EAAE;IACN,OAAOP,SAAS,IAAIC,OAAO,gBACtBpB,KAAA,CAAA2B,aAAA,CAAClB,MAAM,EAAAmB,QAAA,KACF,IAAI,CAACC,oBAAoB,CAAC,MAAM,CAAC;MACrCR,IAAI,EAAEA,IAAK;MACXS,MAAM,EAAE,IAAI,CAACA,MAAM,CAACC,IAAK;MACzBT,IAAI,EAAG,GAAEA,IAAK,OAAO;MACrBH,SAAS,EAAEA,SAAU;MACrBI,QAAQ,EAAEA,QAAS;MAC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AAE,IAAI,CAACH,MAAM,CAACsC;IAAK,GACpB,IAAI,CAACvC,oBAAoB,CAAC,SAAS,CAAC;MACxCwC,yBAAyB,EAAE;MAC3B;IAAA,IAECpD,KAAK,CAACkD,OACH,CAAC,GACL,IAAI,EACPlD,KAAK,CAACiD,YAAY,KAAK,OAAO,IAAI,IAAI,CAAChD,WAAW,CAACD,KAAK,CACrD,CACE,CACE,CAAC,EACdA,KAAK,CAACkB,UAAU,IAAI,IAAI,CAACH,YAAY,CAACf,KAAK,CAC1C,CAAC;EAEP;AACF","ignoreList":[]}
@@ -1,11 +1,12 @@
1
1
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
2
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
3
- function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
2
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
3
+ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
4
4
  import { BaseProps } from '@wavemaker/app-rn-runtime/core/base.component';
5
5
  export default class WmButtonProps extends BaseProps {
6
- constructor() {
7
- super(...arguments);
6
+ constructor(...args) {
7
+ super(...args);
8
8
  _defineProperty(this, "animation", null);
9
+ _defineProperty(this, "animationdelay", null);
9
10
  _defineProperty(this, "caption", null);
10
11
  _defineProperty(this, "badgevalue", null);
11
12
  _defineProperty(this, "iconclass", null);
@@ -1 +1 @@
1
- {"version":3,"names":["BaseProps","WmButtonProps","constructor","arguments","_defineProperty","undefined"],"sources":["button.props.ts"],"sourcesContent":["import {AccessibilityRole} from 'react-native';\nimport { BaseProps } from '@wavemaker/app-rn-runtime/core/base.component';\n\nexport default class WmButtonProps extends BaseProps {\n animation?: string = null as any;\n caption?: string = null as any;\n badgevalue?: string = null as any;\n iconclass?: string = null as any;\n iconposition? = 'left';\n onTap?: Function = null as any;\n iconsize?:number = 0;\n skeletonheight?: string = null as any;\n skeletonwidth?: string = null as any;\n iconurl?: string = null as any;\n iconheight?: number = null as any;\n iconwidth?: number = null as any;\n iconmargin?: number = null as any;\n accessibilitylabel?: string = undefined;\n hint?: string = undefined;\n accessibilityrole?: AccessibilityRole = \"button\";\n}\n"],"mappings":";;;AACA,SAASA,SAAS,QAAQ,+CAA+C;AAEzE,eAAe,MAAMC,aAAa,SAASD,SAAS,CAAC;EAAAE,YAAA;IAAA,SAAAC,SAAA;IAAAC,eAAA,oBAC5B,IAAI;IAAAA,eAAA,kBACN,IAAI;IAAAA,eAAA,qBACD,IAAI;IAAAA,eAAA,oBACL,IAAI;IAAAA,eAAA,uBACT,MAAM;IAAAA,eAAA,gBACH,IAAI;IAAAA,eAAA,mBACJ,CAAC;IAAAA,eAAA,yBACM,IAAI;IAAAA,eAAA,wBACL,IAAI;IAAAA,eAAA,kBACV,IAAI;IAAAA,eAAA,qBACD,IAAI;IAAAA,eAAA,oBACL,IAAI;IAAAA,eAAA,qBACH,IAAI;IAAAA,eAAA,6BACIC,SAAS;IAAAD,eAAA,eACvBC,SAAS;IAAAD,eAAA,4BACe,QAAQ;EAAA;AACpD"}
1
+ {"version":3,"names":["BaseProps","WmButtonProps","constructor","args","_defineProperty","undefined"],"sources":["button.props.ts"],"sourcesContent":["import {AccessibilityRole} from 'react-native';\nimport { BaseProps } from '@wavemaker/app-rn-runtime/core/base.component';\n\nexport default class WmButtonProps extends BaseProps {\n animation?: string = null as any;\n animationdelay?: number = null as any;\n caption?: string = null as any;\n badgevalue?: string = null as any;\n iconclass?: string = null as any;\n iconposition? = 'left';\n onTap?: Function = null as any;\n iconsize?:number = 0;\n skeletonheight?: string = null as any;\n skeletonwidth?: string = null as any;\n iconurl?: string = null as any;\n iconheight?: number = null as any;\n iconwidth?: number = null as any;\n iconmargin?: number = null as any;\n accessibilitylabel?: string = undefined;\n hint?: string = undefined;\n accessibilityrole?: AccessibilityRole = \"button\";\n}\n"],"mappings":";;;AACA,SAASA,SAAS,QAAQ,+CAA+C;AAEzE,eAAe,MAAMC,aAAa,SAASD,SAAS,CAAC;EAAAE,YAAA,GAAAC,IAAA;IAAA,SAAAA,IAAA;IAAAC,eAAA,oBAC5B,IAAI;IAAAA,eAAA,yBACC,IAAI;IAAAA,eAAA,kBACX,IAAI;IAAAA,eAAA,qBACD,IAAI;IAAAA,eAAA,oBACL,IAAI;IAAAA,eAAA,uBACT,MAAM;IAAAA,eAAA,gBACH,IAAI;IAAAA,eAAA,mBACJ,CAAC;IAAAA,eAAA,yBACM,IAAI;IAAAA,eAAA,wBACL,IAAI;IAAAA,eAAA,kBACV,IAAI;IAAAA,eAAA,qBACD,IAAI;IAAAA,eAAA,oBACL,IAAI;IAAAA,eAAA,qBACH,IAAI;IAAAA,eAAA,6BACIC,SAAS;IAAAD,eAAA,eACvBC,SAAS;IAAAD,eAAA,4BACe,QAAQ;EAAA;AACpD","ignoreList":[]}
@@ -11,8 +11,7 @@ BASE_THEME.registerStyle((themeVariables, addStyle) => {
11
11
  paddingLeft: 24,
12
12
  paddingRight: 24,
13
13
  alignSelf: 'flex-start',
14
- rippleColor: themeVariables.rippleColor,
15
- height: 40
14
+ rippleColor: themeVariables.rippleColor
16
15
  },
17
16
  content: {
18
17
  flexDirection: 'row',
@@ -61,8 +60,7 @@ BASE_THEME.registerStyle((themeVariables, addStyle) => {
61
60
  opacity: 0.5
62
61
  }
63
62
  });
64
- const getButtonStyles = function (bgColor, color) {
65
- let borderColor = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : bgColor;
63
+ const getButtonStyles = (bgColor, color, borderColor = bgColor) => {
66
64
  return {
67
65
  root: {
68
66
  borderWidth: 1,
@@ -1 +1 @@
1
- {"version":3,"names":["BASE_THEME","defineStyles","DEFAULT_CLASS","registerStyle","themeVariables","addStyle","defaultStyles","root","minHeight","borderRadius","paddingTop","paddingBottom","paddingLeft","paddingRight","alignSelf","rippleColor","height","content","flexDirection","alignItems","justifyContent","text","fontSize","fontFamily","baseFont","fontWeight","textAlign","textTransform","badge","backgroundColor","buttonBadgeBackgroundColor","color","buttonBadgeTextColor","position","bottom","marginRight","borderWidth","borderStyle","icon","buttonTextPadding","skeleton","width","opacity","getButtonStyles","bgColor","borderColor","arguments","length","undefined","linkBtnStyle","buttonLinkColor","buttonLinkTextColor","buttonWithOnlyLabel","paddingVertical","textDecorationColor","textDecorationLine","textDecorationStyle","buttonDefaultColor","buttonDefaultTextColor","buttonBorderColor","buttonInfoColor","buttonInfoTextColor","buttonPrimaryColor","buttonPrimaryTextColor","buttonSecondaryColor","buttonSecondaryTextColor","buttonDangerColor","buttonDangerTextColor","buttonSuccessColor","buttonSuccessTextColor","buttonWarningColor","buttonWarningTextColor","buttonDarkColor","buttonDarkTextColor","buttonLightColor","buttonLightTextColor","getStyle","right","marginLeft"],"sources":["button.styles.ts"],"sourcesContent":["import BASE_THEME, { AllStyle } from '@wavemaker/app-rn-runtime/styles/theme';\nimport { BaseStyles, defineStyles } from '@wavemaker/app-rn-runtime/core/base.component';\nimport { WmIconStyles } from '../icon/icon.styles';\nimport { WmSkeletonStyles } from '../skeleton/skeleton.styles';\n\nexport type WmButtonStyles = BaseStyles & {\n content: AllStyle,\n badge: AllStyle,\n icon: WmIconStyles,\n skeleton: WmSkeletonStyles\n};\n\nexport const DEFAULT_CLASS = 'app-button';\nBASE_THEME.registerStyle((themeVariables, addStyle) => {\n const defaultStyles: WmButtonStyles = defineStyles<WmButtonStyles>({\n root: {\n minHeight: 40,\n borderRadius: 32,\n paddingTop: 12,\n paddingBottom: 12,\n paddingLeft: 24,\n paddingRight: 24,\n alignSelf: 'flex-start',\n rippleColor: themeVariables.rippleColor,\n height: 40\n },\n content: {\n flexDirection: 'row',\n alignItems: 'center',\n justifyContent: 'center'\n },\n text: {\n fontSize: 14,\n fontFamily: themeVariables.baseFont,\n fontWeight: '500',\n textAlign: 'center',\n textTransform: 'capitalize',\n },\n badge: {\n backgroundColor: themeVariables.buttonBadgeBackgroundColor,\n color: themeVariables.buttonBadgeTextColor,\n alignSelf: 'flex-end',\n position: 'relative',\n bottom: 60 ,\n marginRight: 18,\n borderWidth: 1,\n borderStyle: 'solid',\n },\n icon: {\n root : {\n alignSelf: 'auto',\n paddingLeft: -8,\n paddingRight: -8\n },\n text: {\n paddingRight: themeVariables.buttonTextPadding,\n fontSize: 16\n }\n } as WmIconStyles,\n skeleton: {\n root: {\n width: 96,\n height: 48,\n borderRadius: 4\n }\n } as WmSkeletonStyles\n });\n\n addStyle(DEFAULT_CLASS, '', defaultStyles);\n addStyle(DEFAULT_CLASS + '-disabled', '', {\n root : {\n opacity: 0.5\n }\n });\n\n const getButtonStyles = (bgColor: string, color: string, borderColor = bgColor) => {\n return {\n root: {\n borderWidth: 1,\n borderColor: borderColor,\n borderStyle: 'solid',\n backgroundColor: bgColor\n },\n text: {\n color: color\n },\n badge: {\n backgroundColor: color,\n color: bgColor,\n borderColor: bgColor\n },\n icon: {\n text: {\n color: color\n }\n }\n } as WmButtonStyles;\n }\n\n const linkBtnStyle = getButtonStyles(themeVariables.buttonLinkColor, themeVariables.buttonLinkTextColor );\nconst buttonWithOnlyLabel = getButtonStyles(themeVariables.buttonLinkColor, themeVariables.buttonLinkTextColor );\n\n linkBtnStyle.root.paddingVertical = 4;\n linkBtnStyle.text.textDecorationColor = themeVariables.buttonLinkTextColor;\n linkBtnStyle.text.textDecorationLine = 'underline';\n linkBtnStyle.text.textDecorationStyle = 'solid';\n\n addStyle('btn-default', '', getButtonStyles(themeVariables.buttonDefaultColor, themeVariables.buttonDefaultTextColor, themeVariables.buttonBorderColor));\n addStyle('btn-info', '', getButtonStyles(themeVariables.buttonInfoColor, themeVariables.buttonInfoTextColor));\n addStyle('btn-primary', '', getButtonStyles(themeVariables.buttonPrimaryColor, themeVariables.buttonPrimaryTextColor));\n addStyle('btn-secondary', '', getButtonStyles(themeVariables.buttonSecondaryColor, themeVariables.buttonSecondaryTextColor, themeVariables.buttonSecondaryTextColor));\n addStyle('btn-danger', '', getButtonStyles(themeVariables.buttonDangerColor, themeVariables.buttonDangerTextColor));\n addStyle('btn-success', '', getButtonStyles(themeVariables.buttonSuccessColor, themeVariables.buttonSuccessTextColor));\n addStyle('btn-warning', '', getButtonStyles(themeVariables.buttonWarningColor, themeVariables.buttonWarningTextColor));\n addStyle('btn-link', '', linkBtnStyle);\n addStyle('btn-only-label', '', buttonWithOnlyLabel);\n addStyle('btn-dark', '', getButtonStyles(themeVariables.buttonDarkColor, themeVariables.buttonDarkTextColor));\n addStyle('btn-light', '', getButtonStyles(themeVariables.buttonLightColor, themeVariables.buttonLightTextColor));\n addStyle('fab-btn', 'btn-primary', {\n root : {\n ...BASE_THEME.getStyle('elevate2').root,\n position: 'fixed' as any,\n bottom: 160,\n right: 48,\n width: 56,\n height: 56,\n borderRadius: 56,\n justifyContent: 'center',\n alignItems: 'center'\n },\n text: {\n marginLeft: 0,\n marginRight: 0\n },\n icon: {\n icon: {\n fontSize: 24\n }\n } as WmIconStyles\n } as WmButtonStyles);\n addStyle('mini-fab-btn', 'fab-btn', {\n root : {\n width: 40,\n height: 40\n }\n } as WmButtonStyles);\n});\n"],"mappings":"AAAA,OAAOA,UAAU,MAAoB,wCAAwC;AAC7E,SAAqBC,YAAY,QAAQ,+CAA+C;AAWxF,OAAO,MAAMC,aAAa,GAAG,YAAY;AACzCF,UAAU,CAACG,aAAa,CAAC,CAACC,cAAc,EAAEC,QAAQ,KAAK;EACrD,MAAMC,aAA6B,GAAGL,YAAY,CAAiB;IAC/DM,IAAI,EAA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P,UAAU,CAAC4E,QAAQ,CAAC,UAAU,CAAC,CAACrE,IAAI;MACvC0B,QAAQ,EAAE,OAAc;MACxBC,MAAM,EAAE,GAAG;MACX2C,KAAK,EAAE,EAAE;MACTpC,KAAK,EAAE,EAAE;MACTzB,MAAM,EAAE,EAAE;MACVP,YAAY,EAAE,EAAE;MAChBW,cAAc,EAAE,QAAQ;MACxBD,UAAU,EAAE;IACd,CAAC;IACDE,IAAI,EAAE;MACJyD,UAAU,EAAE,CAAC;MACb3C,WAAW,EAAE;IACf,CAAC;IACDG,IAAI,EAAE;MACJA,IAAI,EAAE;QACJhB,QAAQ,EAAE;MACZ;IACF;EACF,CAAmB,CAAC;EACpBjB,QAAQ,CAAC,cAAc,EAAE,SAAS,EAAE;IAClCE,IAAI,EAAG;MACLkC,KAAK,EAAE,EAAE;MACTzB,MAAM,EAAE;IACV;EACF,CAAmB,CAAC;AACtB,CAAC,CAAC"}
1
+ {"version":3,"names":["BASE_THEME","defineStyles","DEFAULT_CLASS","registerStyle","themeVariables","addStyle","defaultStyles","root","minHeight","borderRadius","paddingTop","paddingBottom","paddingLeft","paddingRight","alignSelf","rippleColor","content","flexDirection","alignItems","justifyContent","text","fontSize","fontFamily","baseFont","fontWeight","textAlign","textTransform","badge","backgroundColor","buttonBadgeBackgroundColor","color","buttonBadgeTextColor","position","bottom","marginRight","borderWidth","borderStyle","icon","buttonTextPadding","skeleton","width","height","opacity","getButtonStyles","bgColor","borderColor","linkBtnStyle","buttonLinkColor","buttonLinkTextColor","buttonWithOnlyLabel","paddingVertical","textDecorationColor","textDecorationLine","textDecorationStyle","buttonDefaultColor","buttonDefaultTextColor","buttonBorderColor","buttonInfoColor","buttonInfoTextColor","buttonPrimaryColor","buttonPrimaryTextColor","buttonSecondaryColor","buttonSecondaryTextColor","buttonDangerColor","buttonDangerTextColor","buttonSuccessColor","buttonSuccessTextColor","buttonWarningColor","buttonWarningTextColor","buttonDarkColor","buttonDarkTextColor","buttonLightColor","buttonLightTextColor","getStyle","right","marginLeft"],"sources":["button.styles.ts"],"sourcesContent":["import BASE_THEME, { AllStyle } from '@wavemaker/app-rn-runtime/styles/theme';\nimport { BaseStyles, defineStyles } from '@wavemaker/app-rn-runtime/core/base.component';\nimport { WmIconStyles } from '../icon/icon.styles';\nimport { WmSkeletonStyles } from '../skeleton/skeleton.styles';\n\nexport type WmButtonStyles = BaseStyles & {\n content: AllStyle,\n badge: AllStyle,\n icon: WmIconStyles,\n skeleton: WmSkeletonStyles\n};\n\nexport const DEFAULT_CLASS = 'app-button';\nBASE_THEME.registerStyle((themeVariables, addStyle) => {\n const defaultStyles: WmButtonStyles = defineStyles<WmButtonStyles>({\n root: {\n minHeight: 40,\n borderRadius: 32,\n paddingTop: 12,\n paddingBottom: 12,\n paddingLeft: 24,\n paddingRight: 24,\n alignSelf: 'flex-start',\n rippleColor: themeVariables.rippleColor\n },\n content: {\n flexDirection: 'row',\n alignItems: 'center',\n justifyContent: 'center'\n },\n text: {\n fontSize: 14,\n fontFamily: themeVariables.baseFont,\n fontWeight: '500',\n textAlign: 'center',\n textTransform: 'capitalize',\n },\n badge: {\n backgroundColor: themeVariables.buttonBadgeBackgroundColor,\n color: themeVariables.buttonBadgeTextColor,\n alignSelf: 'flex-end',\n position: 'relative',\n bottom: 60 ,\n marginRight: 18,\n borderWidth: 1,\n borderStyle: 'solid',\n },\n icon: {\n root : {\n alignSelf: 'auto',\n paddingLeft: -8,\n paddingRight: -8\n },\n text: {\n paddingRight: themeVariables.buttonTextPadding,\n fontSize: 16\n }\n } as WmIconStyles,\n skeleton: {\n root: {\n width: 96,\n height: 48,\n borderRadius: 4\n }\n } as WmSkeletonStyles\n });\n\n addStyle(DEFAULT_CLASS, '', defaultStyles);\n addStyle(DEFAULT_CLASS + '-disabled', '', {\n root : {\n opacity: 0.5\n }\n });\n\n const getButtonStyles = (bgColor: string, color: string, borderColor = bgColor) => {\n return {\n root: {\n borderWidth: 1,\n borderColor: borderColor,\n borderStyle: 'solid',\n backgroundColor: bgColor\n },\n text: {\n color: color\n },\n badge: {\n backgroundColor: color,\n color: bgColor,\n borderColor: bgColor\n },\n icon: {\n text: {\n color: color\n }\n }\n } as WmButtonStyles;\n }\n\n const linkBtnStyle = getButtonStyles(themeVariables.buttonLinkColor, themeVariables.buttonLinkTextColor );\nconst buttonWithOnlyLabel = getButtonStyles(themeVariables.buttonLinkColor, themeVariables.buttonLinkTextColor );\n\n linkBtnStyle.root.paddingVertical = 4;\n linkBtnStyle.text.textDecorationColor = themeVariables.buttonLinkTextColor;\n linkBtnStyle.text.textDecorationLine = 'underline';\n linkBtnStyle.text.textDecorationStyle = 'solid';\n\n addStyle('btn-default', '', getButtonStyles(themeVariables.buttonDefaultColor, themeVariables.buttonDefaultTextColor, themeVariables.buttonBorderColor));\n addStyle('btn-info', '', getButtonStyles(themeVariables.buttonInfoColor, themeVariables.buttonInfoTextColor));\n addStyle('btn-primary', '', getButtonStyles(themeVariables.buttonPrimaryColor, themeVariables.buttonPrimaryTextColor));\n addStyle('btn-secondary', '', getButtonStyles(themeVariables.buttonSecondaryColor, themeVariables.buttonSecondaryTextColor, themeVariables.buttonSecondaryTextColor));\n addStyle('btn-danger', '', getButtonStyles(themeVariables.buttonDangerColor, themeVariables.buttonDangerTextColor));\n addStyle('btn-success', '', getButtonStyles(themeVariables.buttonSuccessColor, themeVariables.buttonSuccessTextColor));\n addStyle('btn-warning', '', getButtonStyles(themeVariables.buttonWarningColor, themeVariables.buttonWarningTextColor));\n addStyle('btn-link', '', linkBtnStyle);\n addStyle('btn-only-label', '', buttonWithOnlyLabel);\n addStyle('btn-dark', '', getButtonStyles(themeVariables.buttonDarkColor, themeVariables.buttonDarkTextColor));\n addStyle('btn-light', '', getButtonStyles(themeVariables.buttonLightColor, themeVariables.buttonLightTextColor));\n addStyle('fab-btn', 'btn-primary', {\n root : {\n ...BASE_THEME.getStyle('elevate2').root,\n position: 'fixed' as any,\n bottom: 160,\n right: 48,\n width: 56,\n height: 56,\n borderRadius: 56,\n justifyContent: 'center',\n alignItems: 'center'\n },\n text: {\n marginLeft: 0,\n marginRight: 0\n },\n icon: {\n icon: {\n fontSize: 24\n }\n } as WmIconStyles\n } as WmButtonStyles);\n addStyle('mini-fab-btn', 'fab-btn', {\n root : {\n width: 40,\n height: 40\n }\n } as WmButtonStyles);\n});\n"],"mappings":"AAAA,OAAOA,UAAU,MAAoB,wCAAwC;AAC7E,SAAqBC,YAAY,QAAQ,+CAA+C;AAWxF,OAAO,MAAMC,aAAa,GAAG,YAAY;AACzCF,UAAU,CAACG,aAAa,CAAC,CAACC,cAAc,EAAEC,QAAQ,KAAK;EACrD,MAAMC,aAA6B,GAAGL,YAAY,CAAiB;IAC/DM,IAAI,EAAE;MACFC,SAAS,EAAE,EAAE;MACbC,YAAY,EAAE,EAAE;MAChBC,UAAU,EAAE,EAAE;MACdC,aAAa,EAAE,EAAE;MACjBC,WAAW,EAAE,EAAE;MACfC,YAAY,EAAE,EAAE;MAChBC,SAAS,EAAE,YAAY;MACvBC,WAAW,EAAEX,cAAc,CAACW;IAChC,CAAC;IACDC,OAAO,EAAE;MACPC,aAAa,EAAE,KAAK;MACpBC,UAAU,EAAE,QAAQ;MACpBC,cAAc,EAAE;IAClB,CAAC;IACDC,IAAI,EAAE;MACJC,QAAQ,EAAE,EAAE;MACZC,UAAU,EAAElB,cAAc,CAACmB,QAAQ;MACnCC,UAAU,EAAE,KAAK;MACjBC,SAAS,EAAE,QAAQ;MACnBC,aAAa,EAAE;IACjB,CAAC;IACDC,KAAK,EAAE;MACLC,eAAe,EAAExB,cAAc,CAACyB,0BAA0B;MAC1DC,KAAK,EAAE1B,cAAc,CAAC2B,oBAAoB;MAC1CjB,SAAS,EAAE,UAAU;MACrBkB,QAAQ,EAAE,UAAU;MACpBC,MAAM,EAAE,EAAE;MACVC,WAAW,EAAE,EAAE;MACfC,WAAW,EAAE,CAAC;MACdC,WAAW,EAAE;IACf,CAAC;IACDC,IAAI,EAAE;MACJ9B,IAAI,EAAG;QACLO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,CAAC;EACnD5C,QAAQ,CAAC,UAAU,EAAE,EAAE,EAAEsC,eAAe,CAACvC,cAAc,CAACiE,eAAe,EAAEjE,cAAc,CAACkE,mBAAmB,CAAC,CAAC;EAC7GjE,QAAQ,CAAC,WAAW,EAAE,EAAE,EAAEsC,eAAe,CAACvC,cAAc,CAACmE,gBAAgB,EAAEnE,cAAc,CAACoE,oBAAoB,CAAC,CAAC;EAChHnE,QAAQ,CAAC,SAAS,EAAE,aAAa,EAAE;IACjCE,IAAI,EAAG;MACL,GAAGP,UAAU,CAACyE,QAAQ,CAAC,UAAU,CAAC,CAAClE,IAAI;MACvCyB,QAAQ,EAAE,OAAc;MACxBC,MAAM,EAAE,GAAG;MACXyC,KAAK,EAAE,EAAE;MACTlC,KAAK,EAAE,EAAE;MACTC,MAAM,EAAE,EAAE;MACVhC,YAAY,EAAE,EAAE;MAChBU,cAAc,EAAE,QAAQ;MACxBD,UAAU,EAAE;IACd,CAAC;IACDE,IAAI,EAAE;MACJuD,UAAU,EAAE,CAAC;MACbzC,WAAW,EAAE;IACf,CAAC;IACDG,IAAI,EAAE;MACJA,IAAI,EAAE;QACJhB,QAAQ,EAAE;MACZ;IACF;EACF,CAAmB,CAAC;EACpBhB,QAAQ,CAAC,cAAc,EAAE,SAAS,EAAE;IAClCE,IAAI,EAAG;MACLiC,KAAK,EAAE,EAAE;MACTC,MAAM,EAAE;IACV;EACF,CAAmB,CAAC;AACtB,CAAC,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["React","View","BaseComponent","BaseComponentState","WmButtongroupProps","DEFAULT_CLASS","createSkeleton","WmButtongroupState","WmButtongroup","constructor","props","renderSkeleton","theme","styles","skeleton","root","width","skeletonwidth","height","skeletonheight","renderWidget","createElement","style","flexDirection","vertical","_background","children"],"sources":["buttongroup.component.tsx"],"sourcesContent":["import React from 'react';\nimport { DimensionValue, View } from 'react-native';\nimport { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';\n\nimport WmButtongroupProps from './buttongroup.props';\nimport { DEFAULT_CLASS, WmButtongroupStyles } from './buttongroup.styles';\nimport WmSkeleton, { createSkeleton } from '../skeleton/skeleton.component';\n\nexport class WmButtongroupState extends BaseComponentState<WmButtongroupProps> {}\n\nexport default class WmButtongroup extends BaseComponent<WmButtongroupProps, WmButtongroupState, WmButtongroupStyles> {\n\n constructor(props: WmButtongroupProps) {\n super(props, DEFAULT_CLASS, new WmButtongroupProps());\n }\n\n public renderSkeleton(props: WmButtongroupProps){\n return createSkeleton(this.theme, this.styles.skeleton, {\n ...this.styles.root,\n width: (this.props.skeletonwidth || this.styles.root.width) as DimensionValue,\n height: (this.props.skeletonheight || this.styles.root.height) as DimensionValue\n });\n }\n\n renderWidget(props: WmButtongroupProps) {\n return (\n <View style={[this.styles.root, {flexDirection: props.vertical ? 'column': 'row'}]}>\n {this._background}\n {props.children}\n </View>\n );\n }\n}\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAAyBC,IAAI,QAAQ,cAAc;AACnD,SAASC,aAAa,EAAEC,kBAAkB,QAAQ,+CAA+C;AAEjG,OAAOC,kBAAkB,MAAM,qBAAqB;AACpD,SAASC,aAAa,QAA6B,sBAAsB;AACzE,SAAqBC,cAAc,QAAQ,gCAAgC;AAE3E,OAAO,MAAMC,kBAAkB,SAASJ,kBAAkB,CAAqB;AAE/E,eAAe,MAAMK,aAAa,SAASN,aAAa,CAA8D;EAEpHO,WAAWA,CAACC,KAAyB,EAAE;IACrC,KAAK,CAACA,KAAK,EAAEL,aAAa,EAAE,IAAID,kBAAkB,CAAC,CAAC,CAAC;EACvD;EAEOO,cAAcA,CAACD,KAAyB,EAAC;IAC9C,OAAOJ,cAAc,CAAC,IAAI,CAACM,KAAK,EAAE,IAAI,CAACC,MAAM,CAACC,QAAQ,EAAE;MACtD,GAAG,IAAI,CAACD,MAAM,CAACE,IAAI;MACnBC,KAAK,EAAG,IAAI,CAACN,KAAK,CAACO,aAAa,IAAI,IAAI,CAACJ,MAAM,CAACE,IAAI,CAACC,KAAwB;MAC7EE,MAAM,EAAG,IAAI,CAACR,KAAK,CAACS,cAAc,IAAI,IAAI,CAACN,MAAM,CAACE,IAAI,CAACG;IACzD,CAAC,CAAC;EACJ;EAEAE,YAAYA,CAACV,KAAyB,EAAE;IACtC,oBACEV,KAAA,CAAAqB,aAAA,CAACpB,IAAI;MAACqB,KAAK,EAAE,CAAC,IAAI,CAACT,MAAM,CAACE,IAAI,EAAE;QAACQ,aAAa,EAAEb,KAAK,CAACc,QAAQ,GAAG,QAAQ,GAAE;MAAK,CAAC;IAAE,GAChF,IAAI,CAACC,WAAW,EAChBf,KAAK,CAACgB,QACH,CAAC;EAEX;AACF"}
1
+ {"version":3,"names":["React","View","BaseComponent","BaseComponentState","WmButtongroupProps","DEFAULT_CLASS","createSkeleton","WmButtongroupState","WmButtongroup","constructor","props","renderSkeleton","theme","styles","skeleton","root","width","skeletonwidth","height","skeletonheight","renderWidget","createElement","style","flexDirection","vertical","_background","children"],"sources":["buttongroup.component.tsx"],"sourcesContent":["import React from 'react';\nimport { DimensionValue, View } from 'react-native';\nimport { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';\n\nimport WmButtongroupProps from './buttongroup.props';\nimport { DEFAULT_CLASS, WmButtongroupStyles } from './buttongroup.styles';\nimport WmSkeleton, { createSkeleton } from '../skeleton/skeleton.component';\n\nexport class WmButtongroupState extends BaseComponentState<WmButtongroupProps> {}\n\nexport default class WmButtongroup extends BaseComponent<WmButtongroupProps, WmButtongroupState, WmButtongroupStyles> {\n\n constructor(props: WmButtongroupProps) {\n super(props, DEFAULT_CLASS, new WmButtongroupProps());\n }\n\n public renderSkeleton(props: WmButtongroupProps){\n return createSkeleton(this.theme, this.styles.skeleton, {\n ...this.styles.root,\n width: (this.props.skeletonwidth || this.styles.root.width) as DimensionValue,\n height: (this.props.skeletonheight || this.styles.root.height) as DimensionValue\n });\n }\n\n renderWidget(props: WmButtongroupProps) {\n return (\n <View style={[this.styles.root, {flexDirection: props.vertical ? 'column': 'row'}]}>\n {this._background}\n {props.children}\n </View>\n );\n }\n}\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAAyBC,IAAI,QAAQ,cAAc;AACnD,SAASC,aAAa,EAAEC,kBAAkB,QAAQ,+CAA+C;AAEjG,OAAOC,kBAAkB,MAAM,qBAAqB;AACpD,SAASC,aAAa,QAA6B,sBAAsB;AACzE,SAAqBC,cAAc,QAAQ,gCAAgC;AAE3E,OAAO,MAAMC,kBAAkB,SAASJ,kBAAkB,CAAqB;AAE/E,eAAe,MAAMK,aAAa,SAASN,aAAa,CAA8D;EAEpHO,WAAWA,CAACC,KAAyB,EAAE;IACrC,KAAK,CAACA,KAAK,EAAEL,aAAa,EAAE,IAAID,kBAAkB,CAAC,CAAC,CAAC;EACvD;EAEOO,cAAcA,CAACD,KAAyB,EAAC;IAC9C,OAAOJ,cAAc,CAAC,IAAI,CAACM,KAAK,EAAE,IAAI,CAACC,MAAM,CAACC,QAAQ,EAAE;MACtD,GAAG,IAAI,CAACD,MAAM,CAACE,IAAI;MACnBC,KAAK,EAAG,IAAI,CAACN,KAAK,CAACO,aAAa,IAAI,IAAI,CAACJ,MAAM,CAACE,IAAI,CAACC,KAAwB;MAC7EE,MAAM,EAAG,IAAI,CAACR,KAAK,CAACS,cAAc,IAAI,IAAI,CAACN,MAAM,CAACE,IAAI,CAACG;IACzD,CAAC,CAAC;EACJ;EAEAE,YAAYA,CAACV,KAAyB,EAAE;IACtC,oBACEV,KAAA,CAAAqB,aAAA,CAACpB,IAAI;MAACqB,KAAK,EAAE,CAAC,IAAI,CAACT,MAAM,CAACE,IAAI,EAAE;QAACQ,aAAa,EAAEb,KAAK,CAACc,QAAQ,GAAG,QAAQ,GAAE;MAAK,CAAC;IAAE,GAChF,IAAI,CAACC,WAAW,EAChBf,KAAK,CAACgB,QACH,CAAC;EAEX;AACF","ignoreList":[]}
@@ -1,10 +1,10 @@
1
1
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
2
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
3
- function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
2
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
3
+ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
4
4
  import { BaseProps } from '@wavemaker/app-rn-runtime/core/base.component';
5
5
  export default class WmButtongroupProps extends BaseProps {
6
- constructor() {
7
- super(...arguments);
6
+ constructor(...args) {
7
+ super(...args);
8
8
  _defineProperty(this, "children", void 0);
9
9
  _defineProperty(this, "vertical", null);
10
10
  _defineProperty(this, "skeletonheight", null);
@@ -1 +1 @@
1
- {"version":3,"names":["BaseProps","WmButtongroupProps","constructor","arguments","_defineProperty"],"sources":["buttongroup.props.ts"],"sourcesContent":["import { BaseProps } from '@wavemaker/app-rn-runtime/core/base.component';\n\nexport default class WmButtongroupProps extends BaseProps {\n children?: any;\n vertical: boolean = null as any;\n skeletonheight?: string = null as any;\n skeletonwidth?: string = null as any;\n}\n"],"mappings":";;;AAAA,SAASA,SAAS,QAAQ,+CAA+C;AAEzE,eAAe,MAAMC,kBAAkB,SAASD,SAAS,CAAC;EAAAE,YAAA;IAAA,SAAAC,SAAA;IAAAC,eAAA;IAAAA,eAAA,mBAEpC,IAAI;IAAAA,eAAA,yBACE,IAAI;IAAAA,eAAA,wBACL,IAAI;EAAA;AAC/B"}
1
+ {"version":3,"names":["BaseProps","WmButtongroupProps","constructor","args","_defineProperty"],"sources":["buttongroup.props.ts"],"sourcesContent":["import { BaseProps } from '@wavemaker/app-rn-runtime/core/base.component';\n\nexport default class WmButtongroupProps extends BaseProps {\n children?: any;\n vertical: boolean = null as any;\n skeletonheight?: string = null as any;\n skeletonwidth?: string = null as any;\n}\n"],"mappings":";;;AAAA,SAASA,SAAS,QAAQ,+CAA+C;AAEzE,eAAe,MAAMC,kBAAkB,SAASD,SAAS,CAAC;EAAAE,YAAA,GAAAC,IAAA;IAAA,SAAAA,IAAA;IAAAC,eAAA;IAAAA,eAAA,mBAEpC,IAAI;IAAAA,eAAA,yBACE,IAAI;IAAAA,eAAA,wBACL,IAAI;EAAA;AAC/B","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["BASE_THEME","defineStyles","DEFAULT_CLASS","registerStyle","themeVariables","addStyle","defaultStyles","root","flexDirection","alignSelf","alignItems","borderRadius","borderWidth","borderStyle","borderColor","buttonGrpBorderColor","backgroundColor","buttonGrpBgColor","overflow","text","skeleton","width","height","borderTopWidth","borderBottomWidth","borderLeftWidth","borderRightWidth","flex","borderTopLeftRadius","borderBottomLeftRadius","borderTopRightRadius","borderBottomRightRadius"],"sources":["buttongroup.styles.ts"],"sourcesContent":["import BASE_THEME from '@wavemaker/app-rn-runtime/styles/theme';\nimport { BaseStyles, defineStyles } from '@wavemaker/app-rn-runtime/core/base.component';\nimport { WmButtonStyles } from '../button/button.styles';\nimport { WmSkeletonStyles } from '../skeleton/skeleton.styles';\n\nexport type WmButtongroupStyles = BaseStyles & {\n skeleton: WmSkeletonStyles\n};\n\nexport const DEFAULT_CLASS = 'app-buttongroup';\nBASE_THEME.registerStyle((themeVariables, addStyle) => {\n const defaultStyles: WmButtongroupStyles = defineStyles({\n root: {\n flexDirection: 'row',\n alignSelf: 'flex-start',\n alignItems: 'center',\n borderRadius: 100,\n borderWidth: 1,\n borderStyle: 'solid',\n borderColor: themeVariables.buttonGrpBorderColor,\n backgroundColor: themeVariables.buttonGrpBgColor,\n overflow: 'hidden'\n }, \n text: {},\n skeleton: {\n root : {\n width: '100%',\n height: 48,\n borderRadius: 4,\n borderColor: themeVariables.buttonGrpBorderColor\n }\n } as any as WmSkeletonStyles\n });\n\n\n addStyle('btn-group-child', '', {\n root: {\n borderTopWidth: 0,\n borderBottomWidth: 0,\n borderLeftWidth: 1,\n borderRightWidth: 0,\n borderRadius: 0,\n backgroundColor: 'transparent',\n flex: 1,\n borderColor: themeVariables.buttonGrpBorderColor,\n },\n } as WmButtonStyles);\n addStyle('btn-group-first-child', '', {\n root: {\n borderLeftWidth: 0,\n borderTopLeftRadius: 28,\n borderBottomLeftRadius: 28,\n backgroundColor: 'transparent',\n borderColor: themeVariables.buttonGrpBorderColor\n }\n } as WmButtonStyles);\n addStyle('btn-group-last-child', '', {\n root: {\n borderRightWidth: 0,\n borderTopRightRadius: 28,\n borderBottomRightRadius: 28,\n backgroundColor: 'transparent',\n borderColor: themeVariables.buttonGrpBorderColor\n }\n } as WmButtonStyles);\n addStyle(DEFAULT_CLASS, '', defaultStyles);\n});\n"],"mappings":"AAAA,OAAOA,UAAU,MAAM,wCAAwC;AAC/D,SAAqBC,YAAY,QAAQ,+CAA+C;AAQxF,OAAO,MAAMC,aAAa,GAAG,iBAAiB;AAC9CF,UAAU,CAACG,aAAa,CAAC,CAACC,cAAc,EAAEC,QAAQ,KAAK;EACrD,MAAMC,aAAkC,GAAGL,YAAY,CAAC;IACpDM,IAAI,EAAE;MACJC,aAAa,EAAE,KAAK;MACpBC,SAAS,EAAE,YAAY;MACvBC,UAAU,EAAE,QAAQ;MACpBC,YAAY,EAAE,GAAG;MACjBC,WAAW,EAAE,CAAC;MACdC,WAAW,EAAE,OAAO;MACpBC,WAAW,EAAEV,cAAc,CAACW,oBAAoB;MAChDC,eAAe,EAAEZ,cAAc,CAACa,gBAAgB;MAChDC,QAAQ,EAAE;IACZ,CAAC;IACDC,IAAI,EAAE,CAAC,CAAC;IACRC,QAAQ,EAAE;MACRb,IAAI,EAAG;QACLc,KAAK,EAAE,MAAM;QACbC,MAAM,EAAE,EAAE;QACVX,YAAY,EAAE,CAAC;QACfG,WAAW,EAAEV,cAAc,CAACW;MAC9B;IACF;EACJ,CAAC,CAAC;EAGFV,QAAQ,CAAC,iBAAiB,EAAE,EAAE,EAAE;IAC9BE,IAAI,EAAE;MACJgB,cAAc,EAAE,CAAC;MACjBC,iBAAiB,EAAE,CAAC;MACpBC,eAAe,EAAE,CAAC;MAClBC,gBAAgB,EAAE,CAAC;MACnBf,YAAY,EAAE,CAAC;MACfK,eAAe,EAAE,aAAa;MAC9BW,IAAI,EAAE,CAAC;MACPb,WAAW,EAAEV,cAAc,CAACW;IAC9B;EACF,CAAmB,CAAC;EACpBV,QAAQ,CAAC,uBAAuB,EAAE,EAAE,EAAE;IACpCE,IAAI,EAAE;MACJkB,eAAe,EAAE,CAAC;MAClBG,mBAAmB,EAAE,EAAE;MACvBC,sBAAsB,EAAE,EAAE;MAC1Bb,eAAe,EAAE,aAAa;MAC9BF,WAAW,EAAEV,cAAc,CAACW;IAC9B;EACF,CAAmB,CAAC;EACpBV,QAAQ,CAAC,sBAAsB,EAAE,EAAE,EAAE;IACnCE,IAAI,EAAE;MACJmB,gBAAgB,EAAE,CAAC;MACnBI,oBAAoB,EAAE,EAAE;MACxBC,uBAAuB,EAAE,EAAE;MAC3Bf,eAAe,EAAE,aAAa;MAC9BF,WAAW,EAAEV,cAAc,CAACW;IAC9B;EACF,CAAmB,CAAC;EACpBV,QAAQ,CAACH,aAAa,EAAE,EAAE,EAAEI,aAAa,CAAC;AAC5C,CAAC,CAAC"}
1
+ {"version":3,"names":["BASE_THEME","defineStyles","DEFAULT_CLASS","registerStyle","themeVariables","addStyle","defaultStyles","root","flexDirection","alignSelf","alignItems","borderRadius","borderWidth","borderStyle","borderColor","buttonGrpBorderColor","backgroundColor","buttonGrpBgColor","overflow","text","skeleton","width","height","borderTopWidth","borderBottomWidth","borderLeftWidth","borderRightWidth","flex","borderTopLeftRadius","borderBottomLeftRadius","borderTopRightRadius","borderBottomRightRadius"],"sources":["buttongroup.styles.ts"],"sourcesContent":["import BASE_THEME from '@wavemaker/app-rn-runtime/styles/theme';\nimport { BaseStyles, defineStyles } from '@wavemaker/app-rn-runtime/core/base.component';\nimport { WmButtonStyles } from '../button/button.styles';\nimport { WmSkeletonStyles } from '../skeleton/skeleton.styles';\n\nexport type WmButtongroupStyles = BaseStyles & {\n skeleton: WmSkeletonStyles\n};\n\nexport const DEFAULT_CLASS = 'app-buttongroup';\nBASE_THEME.registerStyle((themeVariables, addStyle) => {\n const defaultStyles: WmButtongroupStyles = defineStyles({\n root: {\n flexDirection: 'row',\n alignSelf: 'flex-start',\n alignItems: 'center',\n borderRadius: 100,\n borderWidth: 1,\n borderStyle: 'solid',\n borderColor: themeVariables.buttonGrpBorderColor,\n backgroundColor: themeVariables.buttonGrpBgColor,\n overflow: 'hidden'\n }, \n text: {},\n skeleton: {\n root : {\n width: '100%',\n height: 48,\n borderRadius: 4,\n borderColor: themeVariables.buttonGrpBorderColor\n }\n } as any as WmSkeletonStyles\n });\n\n\n addStyle('btn-group-child', '', {\n root: {\n borderTopWidth: 0,\n borderBottomWidth: 0,\n borderLeftWidth: 1,\n borderRightWidth: 0,\n borderRadius: 0,\n backgroundColor: 'transparent',\n flex: 1,\n borderColor: themeVariables.buttonGrpBorderColor,\n },\n } as WmButtonStyles);\n addStyle('btn-group-first-child', '', {\n root: {\n borderLeftWidth: 0,\n borderTopLeftRadius: 28,\n borderBottomLeftRadius: 28,\n backgroundColor: 'transparent',\n borderColor: themeVariables.buttonGrpBorderColor\n }\n } as WmButtonStyles);\n addStyle('btn-group-last-child', '', {\n root: {\n borderRightWidth: 0,\n borderTopRightRadius: 28,\n borderBottomRightRadius: 28,\n backgroundColor: 'transparent',\n borderColor: themeVariables.buttonGrpBorderColor\n }\n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,EAAE,aAAa;MAC9BF,WAAW,EAAEV,cAAc,CAACW;IAC9B;EACF,CAAmB,CAAC;EACpBV,QAAQ,CAAC,sBAAsB,EAAE,EAAE,EAAE;IACnCE,IAAI,EAAE;MACJmB,gBAAgB,EAAE,CAAC;MACnBI,oBAAoB,EAAE,EAAE;MACxBC,uBAAuB,EAAE,EAAE;MAC3Bf,eAAe,EAAE,aAAa;MAC9BF,WAAW,EAAEV,cAAc,CAACW;IAC9B;EACF,CAAmB,CAAC;EACpBV,QAAQ,CAACH,aAAa,EAAE,EAAE,EAAEI,aAAa,CAAC;AAC5C,CAAC,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["React","BaseComponent","BaseComponentState","WmCustomProps","DEFAULT_CLASS","View","createSkeleton","WmCustomState","WmCustom","constructor","props","renderSkeleton","prop","theme","styles","skeleton","root","width","skeletonwidth","height","skeletonheight","renderWidget","createElement","style","renderview"],"sources":["custom.component.tsx"],"sourcesContent":["import React from 'react';\nimport { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';\n\nimport WmCustomProps from './custom.props';\nimport { DEFAULT_CLASS, WmCustomStyles } from './custom.styles';\nimport { DimensionValue, Text, View } from 'react-native';\nimport { createSkeleton } from '../skeleton/skeleton.component';\n\n\nexport class WmCustomState extends BaseComponentState<WmCustomProps> { }\n\nexport default class WmCustom extends BaseComponent<WmCustomProps, WmCustomState, WmCustomStyles> {\n\n constructor(props: WmCustomProps) {\n super(props, DEFAULT_CLASS, new WmCustomProps(), new WmCustomState());\n }\n\n public renderSkeleton(prop: WmCustomProps) {\n return createSkeleton(this.theme, this.styles.skeleton, {\n ...this.styles.root,\n width: (this.props.skeletonwidth || this.styles.root.width) as DimensionValue,\n height: (this.props.skeletonheight || this.styles.root.height) as DimensionValue\n });\n }\n\n renderWidget(props: WmCustomProps) {\n return (\n <View style={this.styles.root}>\n {props.renderview(props)}\n </View>\n );\n }\n}\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,aAAa,EAAEC,kBAAkB,QAAQ,+CAA+C;AAEjG,OAAOC,aAAa,MAAM,gBAAgB;AAC1C,SAASC,aAAa,QAAwB,iBAAiB;AAC/D,SAA+BC,IAAI,QAAQ,cAAc;AACzD,SAASC,cAAc,QAAQ,gCAAgC;AAG/D,OAAO,MAAMC,aAAa,SAASL,kBAAkB,CAAgB;AAErE,eAAe,MAAMM,QAAQ,SAASP,aAAa,CAA+C;EAEhGQ,WAAWA,CAACC,KAAoB,EAAE;IAChC,KAAK,CAACA,KAAK,EAAEN,aAAa,EAAE,IAAID,aAAa,CAAC,CAAC,EAAE,IAAII,aAAa,CAAC,CAAC,CAAC;EACvE;EAEOI,cAAcA,CAACC,IAAmB,EAAE;IACzC,OAAON,cAAc,CAAC,IAAI,CAACO,KAAK,EAAE,IAAI,CAACC,MAAM,CAACC,QAAQ,EAAE;MACtD,GAAG,IAAI,CAACD,MAAM,CAACE,IAAI;MACnBC,KAAK,EAAG,IAAI,CAACP,KAAK,CAACQ,aAAa,IAAI,IAAI,CAACJ,MAAM,CAACE,IAAI,CAACC,KAAwB;MAC7EE,MAAM,EAAG,IAAI,CAACT,KAAK,CAACU,cAAc,IAAI,IAAI,CAACN,MAAM,CAACE,IAAI,CAACG;IACzD,CAAC,CAAC;EACJ;EAEAE,YAAYA,CAACX,KAAoB,EAAE;IACjC,oBACEV,KAAA,CAAAsB,aAAA,CAACjB,IAAI;MAACkB,KAAK,EAAE,IAAI,CAACT,MAAM,CAACE;IAAK,GAC3BN,KAAK,CAACc,UAAU,CAACd,KAAK,CACnB,CAAC;EAEX;AACF"}
1
+ {"version":3,"names":["React","BaseComponent","BaseComponentState","WmCustomProps","DEFAULT_CLASS","View","createSkeleton","WmCustomState","WmCustom","constructor","props","renderSkeleton","prop","theme","styles","skeleton","root","width","skeletonwidth","height","skeletonheight","renderWidget","createElement","style","renderview"],"sources":["custom.component.tsx"],"sourcesContent":["import React from 'react';\nimport { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';\n\nimport WmCustomProps from './custom.props';\nimport { DEFAULT_CLASS, WmCustomStyles } from './custom.styles';\nimport { DimensionValue, Text, View } from 'react-native';\nimport { createSkeleton } from '../skeleton/skeleton.component';\n\n\nexport class WmCustomState extends BaseComponentState<WmCustomProps> { }\n\nexport default class WmCustom extends BaseComponent<WmCustomProps, WmCustomState, WmCustomStyles> {\n\n constructor(props: WmCustomProps) {\n super(props, DEFAULT_CLASS, new WmCustomProps(), new WmCustomState());\n }\n\n public renderSkeleton(prop: WmCustomProps) {\n return createSkeleton(this.theme, this.styles.skeleton, {\n ...this.styles.root,\n width: (this.props.skeletonwidth || this.styles.root.width) as DimensionValue,\n height: (this.props.skeletonheight || this.styles.root.height) as DimensionValue\n });\n }\n\n renderWidget(props: WmCustomProps) {\n return (\n <View style={this.styles.root}>\n {props.renderview(props)}\n </View>\n );\n }\n}\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,aAAa,EAAEC,kBAAkB,QAAQ,+CAA+C;AAEjG,OAAOC,aAAa,MAAM,gBAAgB;AAC1C,SAASC,aAAa,QAAwB,iBAAiB;AAC/D,SAA+BC,IAAI,QAAQ,cAAc;AACzD,SAASC,cAAc,QAAQ,gCAAgC;AAG/D,OAAO,MAAMC,aAAa,SAASL,kBAAkB,CAAgB;AAErE,eAAe,MAAMM,QAAQ,SAASP,aAAa,CAA+C;EAEhGQ,WAAWA,CAACC,KAAoB,EAAE;IAChC,KAAK,CAACA,KAAK,EAAEN,aAAa,EAAE,IAAID,aAAa,CAAC,CAAC,EAAE,IAAII,aAAa,CAAC,CAAC,CAAC;EACvE;EAEOI,cAAcA,CAACC,IAAmB,EAAE;IACzC,OAAON,cAAc,CAAC,IAAI,CAACO,KAAK,EAAE,IAAI,CAACC,MAAM,CAACC,QAAQ,EAAE;MACtD,GAAG,IAAI,CAACD,MAAM,CAACE,IAAI;MACnBC,KAAK,EAAG,IAAI,CAACP,KAAK,CAACQ,aAAa,IAAI,IAAI,CAACJ,MAAM,CAACE,IAAI,CAACC,KAAwB;MAC7EE,MAAM,EAAG,IAAI,CAACT,KAAK,CAACU,cAAc,IAAI,IAAI,CAACN,MAAM,CAACE,IAAI,CAACG;IACzD,CAAC,CAAC;EACJ;EAEAE,YAAYA,CAACX,KAAoB,EAAE;IACjC,oBACEV,KAAA,CAAAsB,aAAA,CAACjB,IAAI;MAACkB,KAAK,EAAE,IAAI,CAACT,MAAM,CAACE;IAAK,GAC3BN,KAAK,CAACc,UAAU,CAACd,KAAK,CACnB,CAAC;EAEX;AACF","ignoreList":[]}
@@ -1,10 +1,10 @@
1
1
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
2
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
3
- function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
2
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
3
+ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
4
4
  import { BaseProps } from '@wavemaker/app-rn-runtime/core/base.component';
5
5
  export default class WmCustomProps extends BaseProps {
6
- constructor() {
7
- super(...arguments);
6
+ constructor(...args) {
7
+ super(...args);
8
8
  _defineProperty(this, "renderview", () => {
9
9
  return null;
10
10
  });
@@ -1 +1 @@
1
- {"version":3,"names":["BaseProps","WmCustomProps","constructor","arguments","_defineProperty"],"sources":["custom.props.ts"],"sourcesContent":["import { BaseProps } from '@wavemaker/app-rn-runtime/core/base.component';\n\nexport default class WmCustomProps extends BaseProps {\n renderview:Function = () => {return null};\n children? = null as any;\n skeletonheight?: string = null as any;\n skeletonwidth?: string = null as any;\n}"],"mappings":";;;AAAA,SAASA,SAAS,QAAQ,+CAA+C;AAEzE,eAAe,MAAMC,aAAa,SAASD,SAAS,CAAC;EAAAE,YAAA;IAAA,SAAAC,SAAA;IAAAC,eAAA,qBAC3B,MAAM;MAAC,OAAO,IAAI;IAAA,CAAC;IAAAA,eAAA,mBAC7B,IAAI;IAAAA,eAAA,yBACU,IAAI;IAAAA,eAAA,wBACL,IAAI;EAAA;AACjC"}
1
+ {"version":3,"names":["BaseProps","WmCustomProps","constructor","args","_defineProperty"],"sources":["custom.props.ts"],"sourcesContent":["import { BaseProps } from '@wavemaker/app-rn-runtime/core/base.component';\n\nexport default class WmCustomProps extends BaseProps {\n renderview:Function = () => {return null};\n children? = null as any;\n skeletonheight?: string = null as any;\n skeletonwidth?: string = null as any;\n}"],"mappings":";;;AAAA,SAASA,SAAS,QAAQ,+CAA+C;AAEzE,eAAe,MAAMC,aAAa,SAASD,SAAS,CAAC;EAAAE,YAAA,GAAAC,IAAA;IAAA,SAAAA,IAAA;IAAAC,eAAA,qBAC3B,MAAM;MAAC,OAAO,IAAI;IAAA,CAAC;IAAAA,eAAA,mBAC7B,IAAI;IAAAA,eAAA,yBACU,IAAI;IAAAA,eAAA,wBACL,IAAI;EAAA;AACjC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["BASE_THEME","defineStyles","DEFAULT_CLASS","registerStyle","themeVariables","addStyle","defaultStyles","root","text","skeleton","width","height","borderRadius"],"sources":["custom.styles.ts"],"sourcesContent":["import BASE_THEME from '@wavemaker/app-rn-runtime/styles/theme';\nimport { BaseStyles, defineStyles } from '@wavemaker/app-rn-runtime/core/base.component';\nimport { WmSkeletonStyles } from '../skeleton/skeleton.styles';\n\n\nexport type WmCustomStyles = BaseStyles & {\n skeleton: WmSkeletonStyles;\n}\n\nexport const DEFAULT_CLASS = 'app-custom';\nBASE_THEME.registerStyle((themeVariables, addStyle) => {\n const defaultStyles = defineStyles<WmCustomStyles>({\n root: {},\n text: {},\n skeleton: {\n root: {\n width: 96,\n height: 48,\n borderRadius: 4\n }\n } as WmSkeletonStyles\n });\n addStyle(DEFAULT_CLASS, '', defaultStyles);\n});"],"mappings":"AAAA,OAAOA,UAAU,MAAM,wCAAwC;AAC/D,SAAqBC,YAAY,QAAQ,+CAA+C;AAQxF,OAAO,MAAMC,aAAa,GAAG,YAAY;AACzCF,UAAU,CAACG,aAAa,CAAC,CAACC,cAAc,EAAEC,QAAQ,KAAK;EACnD,MAAMC,aAAa,GAAGL,YAAY,CAAiB;IAC/CM,IAAI,EAAE,CAAC,CAAC;IACRC,IAAI,EAAE,CAAC,CAAC;IACRC,QAAQ,EAAE;MACNF,IAAI,EAAE;QACJG,KAAK,EAAE,EAAE;QACTC,MAAM,EAAE,EAAE;QACVC,YAAY,EAAE;MAChB;IACF;EACN,CAAC,CAAC;EACFP,QAAQ,CAACH,aAAa,EAAE,EAAE,EAAEI,aAAa,CAAC;AAC9C,CAAC,CAAC"}
1
+ {"version":3,"names":["BASE_THEME","defineStyles","DEFAULT_CLASS","registerStyle","themeVariables","addStyle","defaultStyles","root","text","skeleton","width","height","borderRadius"],"sources":["custom.styles.ts"],"sourcesContent":["import BASE_THEME from '@wavemaker/app-rn-runtime/styles/theme';\nimport { BaseStyles, defineStyles } from '@wavemaker/app-rn-runtime/core/base.component';\nimport { WmSkeletonStyles } from '../skeleton/skeleton.styles';\n\n\nexport type WmCustomStyles = BaseStyles & {\n skeleton: WmSkeletonStyles;\n}\n\nexport const DEFAULT_CLASS = 'app-custom';\nBASE_THEME.registerStyle((themeVariables, addStyle) => {\n const defaultStyles = defineStyles<WmCustomStyles>({\n root: {},\n text: {},\n skeleton: {\n root: {\n width: 96,\n height: 48,\n borderRadius: 4\n }\n } as WmSkeletonStyles\n });\n addStyle(DEFAULT_CLASS, '', defaultStyles);\n});"],"mappings":"AAAA,OAAOA,UAAU,MAAM,wCAAwC;AAC/D,SAAqBC,YAAY,QAAQ,+CAA+C;AAQxF,OAAO,MAAMC,aAAa,GAAG,YAAY;AACzCF,UAAU,CAACG,aAAa,CAAC,CAACC,cAAc,EAAEC,QAAQ,KAAK;EACnD,MAAMC,aAAa,GAAGL,YAAY,CAAiB;IAC/CM,IAAI,EAAE,CAAC,CAAC;IACRC,IAAI,EAAE,CAAC,CAAC;IACRC,QAAQ,EAAE;MACNF,IAAI,EAAE;QACJG,KAAK,EAAE,EAAE;QACTC,MAAM,EAAE,EAAE;QACVC,YAAY,EAAE;MAChB;IACF;EACN,CAAC,CAAC;EACFP,QAAQ,CAACH,aAAa,EAAE,EAAE,EAAEI,aAAa,CAAC;AAC9C,CAAC,CAAC","ignoreList":[]}