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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (453) hide show
  1. app-rn-runtime/actions/base-action.js.map +1 -1
  2. app-rn-runtime/actions/login-action.js.map +1 -1
  3. app-rn-runtime/actions/logout-action.js.map +1 -1
  4. app-rn-runtime/actions/navigation-action.js +14 -2
  5. app-rn-runtime/actions/navigation-action.js.map +1 -1
  6. app-rn-runtime/actions/notification-action.js.map +1 -1
  7. app-rn-runtime/actions/timer-action.js.map +1 -1
  8. app-rn-runtime/components/advanced/carousel/carousel-content/carousel-content.component.js.map +1 -1
  9. app-rn-runtime/components/advanced/carousel/carousel-content/carousel-content.props.js.map +1 -1
  10. app-rn-runtime/components/advanced/carousel/carousel-template/carousel-template.component.js.map +1 -1
  11. app-rn-runtime/components/advanced/carousel/carousel-template/carousel-template.props.js.map +1 -1
  12. app-rn-runtime/components/advanced/carousel/carousel.component.js +1 -1
  13. app-rn-runtime/components/advanced/carousel/carousel.component.js.map +1 -1
  14. app-rn-runtime/components/advanced/carousel/carousel.props.js.map +1 -1
  15. app-rn-runtime/components/advanced/carousel/carousel.styles.js +16 -0
  16. app-rn-runtime/components/advanced/carousel/carousel.styles.js.map +1 -1
  17. app-rn-runtime/components/advanced/login/login.component.js.map +1 -1
  18. app-rn-runtime/components/advanced/login/login.props.js.map +1 -1
  19. app-rn-runtime/components/advanced/network-info-toaster/network-info-toaster.component.js.map +1 -1
  20. app-rn-runtime/components/advanced/network-info-toaster/network-info-toaster.props.js.map +1 -1
  21. app-rn-runtime/components/advanced/webview/webview.component.js.map +1 -1
  22. app-rn-runtime/components/advanced/webview/webview.props.js.map +1 -1
  23. app-rn-runtime/components/basic/anchor/anchor.component.js +1 -0
  24. app-rn-runtime/components/basic/anchor/anchor.component.js.map +1 -1
  25. app-rn-runtime/components/basic/anchor/anchor.props.js.map +1 -1
  26. app-rn-runtime/components/basic/anchor/anchor.styles.js +5 -0
  27. app-rn-runtime/components/basic/anchor/anchor.styles.js.map +1 -1
  28. app-rn-runtime/components/basic/animatedview.component.js +1 -3
  29. app-rn-runtime/components/basic/animatedview.component.js.map +1 -1
  30. app-rn-runtime/components/basic/audio/audio.component.js +240 -0
  31. app-rn-runtime/components/basic/audio/audio.component.js.map +1 -0
  32. app-rn-runtime/components/basic/audio/audio.props.js +15 -0
  33. app-rn-runtime/components/basic/audio/audio.props.js.map +1 -0
  34. app-rn-runtime/components/basic/audio/audio.styles.js +61 -0
  35. app-rn-runtime/components/basic/audio/audio.styles.js.map +1 -0
  36. app-rn-runtime/components/basic/button/button.component.js.map +1 -1
  37. app-rn-runtime/components/basic/button/button.props.js.map +1 -1
  38. app-rn-runtime/components/basic/button/button.styles.js.map +1 -1
  39. app-rn-runtime/components/basic/buttongroup/buttongroup.component.js.map +1 -1
  40. app-rn-runtime/components/basic/buttongroup/buttongroup.props.js.map +1 -1
  41. app-rn-runtime/components/basic/buttongroup/buttongroup.styles.js.map +1 -1
  42. app-rn-runtime/components/basic/custom/custom.component.js.map +1 -1
  43. app-rn-runtime/components/basic/custom/custom.props.js.map +1 -1
  44. app-rn-runtime/components/basic/icon/icon.component.js.map +1 -1
  45. app-rn-runtime/components/basic/icon/icon.props.js.map +1 -1
  46. app-rn-runtime/components/basic/icon/icon.styles.js +5 -0
  47. app-rn-runtime/components/basic/icon/icon.styles.js.map +1 -1
  48. app-rn-runtime/components/basic/label/label.component.js +2 -1
  49. app-rn-runtime/components/basic/label/label.component.js.map +1 -1
  50. app-rn-runtime/components/basic/label/label.props.js.map +1 -1
  51. app-rn-runtime/components/basic/label/label.styles.js +8 -0
  52. app-rn-runtime/components/basic/label/label.styles.js.map +1 -1
  53. app-rn-runtime/components/basic/lottie/lottie.component.js.map +1 -1
  54. app-rn-runtime/components/basic/lottie/lottie.props.js.map +1 -1
  55. app-rn-runtime/components/basic/message/message.component.js.map +1 -1
  56. app-rn-runtime/components/basic/message/message.props.js.map +1 -1
  57. app-rn-runtime/components/basic/message/message.styles.js +22 -0
  58. app-rn-runtime/components/basic/message/message.styles.js.map +1 -1
  59. app-rn-runtime/components/basic/modal/modal.component.js.map +1 -1
  60. app-rn-runtime/components/basic/modal/modal.props.js.map +1 -1
  61. app-rn-runtime/components/basic/modal/modal.styles.js.map +1 -1
  62. app-rn-runtime/components/basic/picture/picture.component.js +7 -11
  63. app-rn-runtime/components/basic/picture/picture.component.js.map +1 -1
  64. app-rn-runtime/components/basic/picture/picture.props.js.map +1 -1
  65. app-rn-runtime/components/basic/picture/picture.styles.js.map +1 -1
  66. app-rn-runtime/components/basic/progress-bar/progress-bar.component.js.map +1 -1
  67. app-rn-runtime/components/basic/progress-bar/progress-bar.props.js.map +1 -1
  68. app-rn-runtime/components/basic/progress-bar/progress-bar.styles.js.map +1 -1
  69. app-rn-runtime/components/basic/progress-circle/progress-circle.component.js.map +1 -1
  70. app-rn-runtime/components/basic/progress-circle/progress-circle.props.js.map +1 -1
  71. app-rn-runtime/components/basic/progress-circle/progress-circle.styles.js.map +1 -1
  72. app-rn-runtime/components/basic/search/local-data-provider.js.map +1 -1
  73. app-rn-runtime/components/basic/search/search.component.js +1 -1
  74. app-rn-runtime/components/basic/search/search.component.js.map +1 -1
  75. app-rn-runtime/components/basic/search/search.props.js +1 -0
  76. app-rn-runtime/components/basic/search/search.props.js.map +1 -1
  77. app-rn-runtime/components/basic/search/search.styles.js +47 -0
  78. app-rn-runtime/components/basic/search/search.styles.js.map +1 -1
  79. app-rn-runtime/components/basic/skeleton/skeleton.component.js.map +1 -1
  80. app-rn-runtime/components/basic/spinner/spinner.component.js +3 -1
  81. app-rn-runtime/components/basic/spinner/spinner.component.js.map +1 -1
  82. app-rn-runtime/components/basic/spinner/spinner.props.js.map +1 -1
  83. app-rn-runtime/components/basic/spinner/spinner.styles.js +8 -0
  84. app-rn-runtime/components/basic/spinner/spinner.styles.js.map +1 -1
  85. app-rn-runtime/components/basic/video/video.component.js +2 -2
  86. app-rn-runtime/components/basic/video/video.component.js.map +1 -1
  87. app-rn-runtime/components/basic/video/video.props.js.map +1 -1
  88. app-rn-runtime/components/chart/area-chart/area-chart.component.js.map +1 -1
  89. app-rn-runtime/components/chart/bar-chart/bar-chart.component.js.map +1 -1
  90. app-rn-runtime/components/chart/bar-chart/bar-chart.props.js.map +1 -1
  91. app-rn-runtime/components/chart/basechart.component.js +6 -2
  92. app-rn-runtime/components/chart/basechart.component.js.map +1 -1
  93. app-rn-runtime/components/chart/basechart.props.js +1 -0
  94. app-rn-runtime/components/chart/basechart.props.js.map +1 -1
  95. app-rn-runtime/components/chart/basechart.styles.js +17 -0
  96. app-rn-runtime/components/chart/basechart.styles.js.map +1 -1
  97. app-rn-runtime/components/chart/bubble-chart/bubble-chart.component.js.map +1 -1
  98. app-rn-runtime/components/chart/column-chart/column-chart.component.js.map +1 -1
  99. app-rn-runtime/components/chart/donut-chart/donut-chart.component.js.map +1 -1
  100. app-rn-runtime/components/chart/donut-chart/donut-chart.props.js +0 -1
  101. app-rn-runtime/components/chart/donut-chart/donut-chart.props.js.map +1 -1
  102. app-rn-runtime/components/chart/legend/legend.component.js +36 -0
  103. app-rn-runtime/components/chart/legend/legend.component.js.map +1 -0
  104. app-rn-runtime/components/chart/line-chart/line-chart.component.js.map +1 -1
  105. app-rn-runtime/components/chart/line-chart/line-chart.props.js.map +1 -1
  106. app-rn-runtime/components/chart/pie-chart/pie-chart.component.js +119 -40
  107. app-rn-runtime/components/chart/pie-chart/pie-chart.component.js.map +1 -1
  108. app-rn-runtime/components/chart/pie-chart/pie-chart.props.js +1 -2
  109. app-rn-runtime/components/chart/pie-chart/pie-chart.props.js.map +1 -1
  110. app-rn-runtime/components/chart/theme/chart.theme.js.map +1 -1
  111. app-rn-runtime/components/container/accordion/accordion.component.js +75 -119
  112. app-rn-runtime/components/container/accordion/accordion.component.js.map +1 -1
  113. app-rn-runtime/components/container/accordion/accordion.props.js +1 -0
  114. app-rn-runtime/components/container/accordion/accordion.props.js.map +1 -1
  115. app-rn-runtime/components/container/accordion/accordion.styles.js +14 -4
  116. app-rn-runtime/components/container/accordion/accordion.styles.js.map +1 -1
  117. app-rn-runtime/components/container/accordion/accordionpane/accordionpane.component.js +48 -7
  118. app-rn-runtime/components/container/accordion/accordionpane/accordionpane.component.js.map +1 -1
  119. app-rn-runtime/components/container/accordion/accordionpane/accordionpane.props.js.map +1 -1
  120. app-rn-runtime/components/container/container.component.js.map +1 -1
  121. app-rn-runtime/components/container/container.props.js.map +1 -1
  122. app-rn-runtime/components/container/container.styles.js.map +1 -1
  123. app-rn-runtime/components/container/layoutgrid/gridcolumn/gridcolumn.component.js.map +1 -1
  124. app-rn-runtime/components/container/layoutgrid/gridcolumn/gridcolumn.props.js.map +1 -1
  125. app-rn-runtime/components/container/layoutgrid/gridrow/gridrow.component.js.map +1 -1
  126. app-rn-runtime/components/container/layoutgrid/gridrow/gridrow.props.js.map +1 -1
  127. app-rn-runtime/components/container/layoutgrid/layoutgrid.component.js.map +1 -1
  128. app-rn-runtime/components/container/layoutgrid/layoutgrid.props.js.map +1 -1
  129. app-rn-runtime/components/container/layoutgrid/layoutgrid.styles.js.map +1 -1
  130. app-rn-runtime/components/container/linearlayout/linearlayout.component.js +1 -0
  131. app-rn-runtime/components/container/linearlayout/linearlayout.component.js.map +1 -1
  132. app-rn-runtime/components/container/linearlayout/linearlayout.props.js.map +1 -1
  133. app-rn-runtime/components/container/linearlayout/linearlayoutitem/linearlayoutitem.component.js +2 -2
  134. app-rn-runtime/components/container/linearlayout/linearlayoutitem/linearlayoutitem.component.js.map +1 -1
  135. app-rn-runtime/components/container/linearlayout/linearlayoutitem/linearlayoutitem.props.js.map +1 -1
  136. app-rn-runtime/components/container/panel/panel-content/panel-content.component.js.map +1 -1
  137. app-rn-runtime/components/container/panel/panel-content/panel-content.props.js.map +1 -1
  138. app-rn-runtime/components/container/panel/panel-footer/panel-footer.component.js.map +1 -1
  139. app-rn-runtime/components/container/panel/panel-footer/panel-footer.props.js.map +1 -1
  140. app-rn-runtime/components/container/panel/panel.component.js.map +1 -1
  141. app-rn-runtime/components/container/panel/panel.props.js.map +1 -1
  142. app-rn-runtime/components/container/panel/panel.styles.js +9 -0
  143. app-rn-runtime/components/container/panel/panel.styles.js.map +1 -1
  144. app-rn-runtime/components/container/partial-host.component.js.map +1 -1
  145. app-rn-runtime/components/container/tabs/tabheader/tabheader.component.js +30 -5
  146. app-rn-runtime/components/container/tabs/tabheader/tabheader.component.js.map +1 -1
  147. app-rn-runtime/components/container/tabs/tabheader/tabheader.props.js.map +1 -1
  148. app-rn-runtime/components/container/tabs/tabheader/tabheader.styles.js +10 -1
  149. app-rn-runtime/components/container/tabs/tabheader/tabheader.styles.js.map +1 -1
  150. app-rn-runtime/components/container/tabs/tabpane/tabpane.component.js.map +1 -1
  151. app-rn-runtime/components/container/tabs/tabpane/tabpane.props.js.map +1 -1
  152. app-rn-runtime/components/container/tabs/tabs.component.js +5 -2
  153. app-rn-runtime/components/container/tabs/tabs.component.js.map +1 -1
  154. app-rn-runtime/components/container/tabs/tabs.props.js.map +1 -1
  155. app-rn-runtime/components/container/tabs/tabs.styles.js +39 -0
  156. app-rn-runtime/components/container/tabs/tabs.styles.js.map +1 -1
  157. app-rn-runtime/components/container/tile/tile.component.js.map +1 -1
  158. app-rn-runtime/components/container/tile/tile.props.js.map +1 -1
  159. app-rn-runtime/components/container/tile/tile.styles.js.map +1 -1
  160. app-rn-runtime/components/container/wizard/wizard.component.js +15 -6
  161. app-rn-runtime/components/container/wizard/wizard.component.js.map +1 -1
  162. app-rn-runtime/components/container/wizard/wizard.props.js.map +1 -1
  163. app-rn-runtime/components/container/wizard/wizard.styles.js +53 -1
  164. app-rn-runtime/components/container/wizard/wizard.styles.js.map +1 -1
  165. app-rn-runtime/components/container/wizard/wizardstep/wizardstep.component.js.map +1 -1
  166. app-rn-runtime/components/container/wizard/wizardstep/wizardstep.props.js.map +1 -1
  167. app-rn-runtime/components/data/card/card-content/card-content.component.js.map +1 -1
  168. app-rn-runtime/components/data/card/card-content/card-content.props.js.map +1 -1
  169. app-rn-runtime/components/data/card/card-footer/card-footer.component.js.map +1 -1
  170. app-rn-runtime/components/data/card/card-footer/card-footer.props.js.map +1 -1
  171. app-rn-runtime/components/data/card/card.component.js.map +1 -1
  172. app-rn-runtime/components/data/card/card.props.js.map +1 -1
  173. app-rn-runtime/components/data/card/card.styles.js.map +1 -1
  174. app-rn-runtime/components/data/form/form-action/form-action.component.js +1 -0
  175. app-rn-runtime/components/data/form/form-action/form-action.component.js.map +1 -1
  176. app-rn-runtime/components/data/form/form-action/form-action.props.js +3 -1
  177. app-rn-runtime/components/data/form/form-action/form-action.props.js.map +1 -1
  178. app-rn-runtime/components/data/form/form-action/form-action.styles.js.map +1 -1
  179. app-rn-runtime/components/data/form/form-body/form-body.component.js.map +1 -1
  180. app-rn-runtime/components/data/form/form-body/form-body.props.js.map +1 -1
  181. app-rn-runtime/components/data/form/form-field/form-field.component.js +23 -2
  182. app-rn-runtime/components/data/form/form-field/form-field.component.js.map +1 -1
  183. app-rn-runtime/components/data/form/form-field/form-field.props.js +8 -0
  184. app-rn-runtime/components/data/form/form-field/form-field.props.js.map +1 -1
  185. app-rn-runtime/components/data/form/form-field/form-field.styles.js.map +1 -1
  186. app-rn-runtime/components/data/form/form-footer/form-footer.component.js.map +1 -1
  187. app-rn-runtime/components/data/form/form-footer/form-footer.props.js.map +1 -1
  188. app-rn-runtime/components/data/form/form.component.js +94 -4
  189. app-rn-runtime/components/data/form/form.component.js.map +1 -1
  190. app-rn-runtime/components/data/form/form.props.js +2 -0
  191. app-rn-runtime/components/data/form/form.props.js.map +1 -1
  192. app-rn-runtime/components/data/form/form.styles.js +6 -0
  193. app-rn-runtime/components/data/form/form.styles.js.map +1 -1
  194. app-rn-runtime/components/data/list/list-template/list-template.component.js.map +1 -1
  195. app-rn-runtime/components/data/list/list-template/list-template.props.js.map +1 -1
  196. app-rn-runtime/components/data/list/list-template/list-template.styles.js.map +1 -1
  197. app-rn-runtime/components/data/list/list.component.js +77 -16
  198. app-rn-runtime/components/data/list/list.component.js.map +1 -1
  199. app-rn-runtime/components/data/list/list.props.js +2 -0
  200. app-rn-runtime/components/data/list/list.props.js.map +1 -1
  201. app-rn-runtime/components/data/list/list.styles.js.map +1 -1
  202. app-rn-runtime/components/data/liveform/liveform.component.js +102 -0
  203. app-rn-runtime/components/data/liveform/liveform.component.js.map +1 -0
  204. app-rn-runtime/components/device/barcodescanner/barcodescanner.component.js.map +1 -1
  205. app-rn-runtime/components/device/barcodescanner/barcodescanner.props.js.map +1 -1
  206. app-rn-runtime/components/device/camera/camera.component.js.map +1 -1
  207. app-rn-runtime/components/device/camera/camera.props.js.map +1 -1
  208. app-rn-runtime/components/dialogs/alertdialog/alertdialog.component.js.map +1 -1
  209. app-rn-runtime/components/dialogs/alertdialog/alertdialog.props.js.map +1 -1
  210. app-rn-runtime/components/dialogs/alertdialog/alertdialog.styles.js.map +1 -1
  211. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.component.js.map +1 -1
  212. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.props.js.map +1 -1
  213. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.styles.js +9 -0
  214. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.styles.js.map +1 -1
  215. app-rn-runtime/components/dialogs/dialog/dialog.component.js +5 -2
  216. app-rn-runtime/components/dialogs/dialog/dialog.component.js.map +1 -1
  217. app-rn-runtime/components/dialogs/dialog/dialog.props.js.map +1 -1
  218. app-rn-runtime/components/dialogs/dialogactions/dialogactions.component.js.map +1 -1
  219. app-rn-runtime/components/dialogs/dialogactions/dialogactions.props.js.map +1 -1
  220. app-rn-runtime/components/dialogs/dialogcontent/dialogcontent.component.js.map +1 -1
  221. app-rn-runtime/components/dialogs/dialogcontent/dialogcontent.props.js.map +1 -1
  222. app-rn-runtime/components/input/basedataset/basedataset.component.js.map +1 -1
  223. app-rn-runtime/components/input/basedataset/basedataset.props.js.map +1 -1
  224. app-rn-runtime/components/input/baseinput/baseinput.component.js +4 -4
  225. app-rn-runtime/components/input/baseinput/baseinput.component.js.map +1 -1
  226. app-rn-runtime/components/input/baseinput/baseinput.props.js.map +1 -1
  227. app-rn-runtime/components/input/basenumber/basenumber.component.js +1 -1
  228. app-rn-runtime/components/input/basenumber/basenumber.component.js.map +1 -1
  229. app-rn-runtime/components/input/basenumber/basenumber.props.js.map +1 -1
  230. app-rn-runtime/components/input/calendar/calendar.component.js.map +1 -1
  231. app-rn-runtime/components/input/calendar/calendar.props.js.map +1 -1
  232. app-rn-runtime/components/input/calendar/calendar.styles.js +22 -0
  233. app-rn-runtime/components/input/calendar/calendar.styles.js.map +1 -1
  234. app-rn-runtime/components/input/calendar/views/month-view.js +1 -0
  235. app-rn-runtime/components/input/calendar/views/month-view.js.map +1 -1
  236. app-rn-runtime/components/input/checkbox/checkbox.component.js.map +1 -1
  237. app-rn-runtime/components/input/checkbox/checkbox.props.js +1 -1
  238. app-rn-runtime/components/input/checkbox/checkbox.props.js.map +1 -1
  239. app-rn-runtime/components/input/checkbox/checkbox.styles.js.map +1 -1
  240. app-rn-runtime/components/input/checkboxset/checkboxset.component.js.map +1 -1
  241. app-rn-runtime/components/input/checkboxset/checkboxset.props.js.map +1 -1
  242. app-rn-runtime/components/input/checkboxset/checkboxset.styles.js.map +1 -1
  243. app-rn-runtime/components/input/chips/chips.component.js +1 -0
  244. app-rn-runtime/components/input/chips/chips.component.js.map +1 -1
  245. app-rn-runtime/components/input/chips/chips.props.js.map +1 -1
  246. app-rn-runtime/components/input/composite/composite.component.js.map +1 -1
  247. app-rn-runtime/components/input/composite/composite.props.js.map +1 -1
  248. app-rn-runtime/components/input/currency/currency.component.js +6 -4
  249. app-rn-runtime/components/input/currency/currency.component.js.map +1 -1
  250. app-rn-runtime/components/input/currency/currency.props.js +1 -1
  251. app-rn-runtime/components/input/currency/currency.props.js.map +1 -1
  252. app-rn-runtime/components/input/currency/currency.styles.js +9 -0
  253. app-rn-runtime/components/input/currency/currency.styles.js.map +1 -1
  254. app-rn-runtime/components/input/epoch/base-datetime.component.js +5 -2
  255. app-rn-runtime/components/input/epoch/base-datetime.component.js.map +1 -1
  256. app-rn-runtime/components/input/epoch/date/date.component.js.map +1 -1
  257. app-rn-runtime/components/input/epoch/date/date.props.js.map +1 -1
  258. app-rn-runtime/components/input/epoch/date/date.styles.js +9 -0
  259. app-rn-runtime/components/input/epoch/date/date.styles.js.map +1 -1
  260. app-rn-runtime/components/input/epoch/date-picker.component.js.map +1 -1
  261. app-rn-runtime/components/input/epoch/datetime/datetime.component.js.map +1 -1
  262. app-rn-runtime/components/input/epoch/datetime/datetime.props.js.map +1 -1
  263. app-rn-runtime/components/input/epoch/datetime/datetime.styles.js +9 -0
  264. app-rn-runtime/components/input/epoch/datetime/datetime.styles.js.map +1 -1
  265. app-rn-runtime/components/input/epoch/time/time.component.js.map +1 -1
  266. app-rn-runtime/components/input/epoch/time/time.props.js.map +1 -1
  267. app-rn-runtime/components/input/epoch/time/time.styles.js +9 -0
  268. app-rn-runtime/components/input/epoch/time/time.styles.js.map +1 -1
  269. app-rn-runtime/components/input/fileupload/fileupload.component.js.map +1 -1
  270. app-rn-runtime/components/input/fileupload/fileupload.props.js.map +1 -1
  271. app-rn-runtime/components/input/number/number.component.js +6 -4
  272. app-rn-runtime/components/input/number/number.component.js.map +1 -1
  273. app-rn-runtime/components/input/number/number.props.js +1 -1
  274. app-rn-runtime/components/input/number/number.props.js.map +1 -1
  275. app-rn-runtime/components/input/number/number.styles.js +5 -0
  276. app-rn-runtime/components/input/number/number.styles.js.map +1 -1
  277. app-rn-runtime/components/input/radioset/radioset.component.js +3 -1
  278. app-rn-runtime/components/input/radioset/radioset.component.js.map +1 -1
  279. app-rn-runtime/components/input/radioset/radioset.props.js.map +1 -1
  280. app-rn-runtime/components/input/radioset/radioset.styles.js +8 -0
  281. app-rn-runtime/components/input/radioset/radioset.styles.js.map +1 -1
  282. app-rn-runtime/components/input/rating/rating.component.js +1 -1
  283. app-rn-runtime/components/input/rating/rating.component.js.map +1 -1
  284. app-rn-runtime/components/input/rating/rating.props.js.map +1 -1
  285. app-rn-runtime/components/input/select/select.component.js +14 -2
  286. app-rn-runtime/components/input/select/select.component.js.map +1 -1
  287. app-rn-runtime/components/input/select/select.props.js.map +1 -1
  288. app-rn-runtime/components/input/select/select.styles.js +18 -1
  289. app-rn-runtime/components/input/select/select.styles.js.map +1 -1
  290. app-rn-runtime/components/input/slider/slider.component.js +2 -1
  291. app-rn-runtime/components/input/slider/slider.component.js.map +1 -1
  292. app-rn-runtime/components/input/slider/slider.props.js.map +1 -1
  293. app-rn-runtime/components/input/switch/switch.component.js.map +1 -1
  294. app-rn-runtime/components/input/switch/switch.props.js.map +1 -1
  295. app-rn-runtime/components/input/switch/switch.styles.js +36 -0
  296. app-rn-runtime/components/input/switch/switch.styles.js.map +1 -1
  297. app-rn-runtime/components/input/text/text.component.js +5 -3
  298. app-rn-runtime/components/input/text/text.component.js.map +1 -1
  299. app-rn-runtime/components/input/text/text.props.js.map +1 -1
  300. app-rn-runtime/components/input/text/text.styles.js +5 -0
  301. app-rn-runtime/components/input/text/text.styles.js.map +1 -1
  302. app-rn-runtime/components/input/textarea/textarea.component.js +5 -3
  303. app-rn-runtime/components/input/textarea/textarea.component.js.map +1 -1
  304. app-rn-runtime/components/input/textarea/textarea.props.js.map +1 -1
  305. app-rn-runtime/components/input/textarea/textarea.styles.js +5 -0
  306. app-rn-runtime/components/input/textarea/textarea.styles.js.map +1 -1
  307. app-rn-runtime/components/input/toggle/toggle.component.js +17 -11
  308. app-rn-runtime/components/input/toggle/toggle.component.js.map +1 -1
  309. app-rn-runtime/components/input/toggle/toggle.props.js.map +1 -1
  310. app-rn-runtime/components/input/toggle/toggle.styles.js +28 -3
  311. app-rn-runtime/components/input/toggle/toggle.styles.js.map +1 -1
  312. app-rn-runtime/components/navigation/appnavbar/appnavbar.component.js.map +1 -1
  313. app-rn-runtime/components/navigation/appnavbar/appnavbar.props.js.map +1 -1
  314. app-rn-runtime/components/navigation/appnavbar/appnavbar.styles.js.map +1 -1
  315. app-rn-runtime/components/navigation/basenav/basenav.component.js.map +1 -1
  316. app-rn-runtime/components/navigation/basenav/basenav.props.js.map +1 -1
  317. app-rn-runtime/components/navigation/menu/menu.component.js.map +1 -1
  318. app-rn-runtime/components/navigation/menu/menu.props.js.map +1 -1
  319. app-rn-runtime/components/navigation/menu/menu.styles.js +6 -0
  320. app-rn-runtime/components/navigation/menu/menu.styles.js.map +1 -1
  321. app-rn-runtime/components/navigation/navbar/navbar.component.js.map +1 -1
  322. app-rn-runtime/components/navigation/navbar/navbar.props.js.map +1 -1
  323. app-rn-runtime/components/navigation/navbar/navbar.styles.js.map +1 -1
  324. app-rn-runtime/components/navigation/navitem/navitem.component.js.map +1 -1
  325. app-rn-runtime/components/navigation/navitem/navitem.props.js.map +1 -1
  326. app-rn-runtime/components/navigation/navitem/navitem.styles.js.map +1 -1
  327. app-rn-runtime/components/navigation/popover/popover.component.js.map +1 -1
  328. app-rn-runtime/components/navigation/popover/popover.props.js.map +1 -1
  329. app-rn-runtime/components/navigation/popover/popover.styles.js.map +1 -1
  330. app-rn-runtime/components/page/content/content.component.js.map +1 -1
  331. app-rn-runtime/components/page/left-panel/left-panel.component.js.map +1 -1
  332. app-rn-runtime/components/page/left-panel/left-panel.props.js.map +1 -1
  333. app-rn-runtime/components/page/page-content/page-content.component.js.map +1 -1
  334. app-rn-runtime/components/page/page-content/page-content.props.js.map +1 -1
  335. app-rn-runtime/components/page/page.component.js.map +1 -1
  336. app-rn-runtime/components/page/partial/partial.component.js.map +1 -1
  337. app-rn-runtime/components/page/partial-container/partial-container.component.js.map +1 -1
  338. app-rn-runtime/components/page/partial-container/partial-container.props.js.map +1 -1
  339. app-rn-runtime/components/page/tabbar/tabbar.component.js.map +1 -1
  340. app-rn-runtime/components/page/tabbar/tabbar.props.js.map +1 -1
  341. app-rn-runtime/components/prefab/prefab-container.component.js.map +1 -1
  342. app-rn-runtime/core/asset.provider.js.map +1 -1
  343. app-rn-runtime/core/base.component.js +29 -17
  344. app-rn-runtime/core/base.component.js.map +1 -1
  345. app-rn-runtime/core/components/textinput.component.js +37 -0
  346. app-rn-runtime/core/components/textinput.component.js.map +1 -0
  347. app-rn-runtime/core/device/camera-service.js.map +1 -1
  348. app-rn-runtime/core/device/scan-service.js.map +1 -1
  349. app-rn-runtime/core/display.manager.js.map +1 -1
  350. app-rn-runtime/core/event-notifier.js.map +1 -1
  351. app-rn-runtime/core/fixed-view.component.js.map +1 -1
  352. app-rn-runtime/core/formatters.js.map +1 -1
  353. app-rn-runtime/core/i18n.service.js +2 -0
  354. app-rn-runtime/core/i18n.service.js.map +1 -0
  355. app-rn-runtime/core/if.component.js +3 -3
  356. app-rn-runtime/core/if.component.js.map +1 -1
  357. app-rn-runtime/core/imageSizeEstimator.js.map +1 -1
  358. app-rn-runtime/core/injector.js +2 -1
  359. app-rn-runtime/core/injector.js.map +1 -1
  360. app-rn-runtime/core/logger.js +4 -1
  361. app-rn-runtime/core/logger.js.map +1 -1
  362. app-rn-runtime/core/modal.service.js.map +1 -1
  363. app-rn-runtime/core/navigation.service.js.map +1 -1
  364. app-rn-runtime/core/network.service.js +17 -15
  365. app-rn-runtime/core/network.service.js.map +1 -1
  366. app-rn-runtime/core/partial.service.js.map +1 -1
  367. app-rn-runtime/core/props.provider.js +1 -1
  368. app-rn-runtime/core/props.provider.js.map +1 -1
  369. app-rn-runtime/core/scroll-view.component.js.map +1 -1
  370. app-rn-runtime/core/security.service.js.map +1 -1
  371. app-rn-runtime/core/spinner.service.js.map +1 -1
  372. app-rn-runtime/core/storage.service.js.map +1 -1
  373. app-rn-runtime/core/tappable.component.js +11 -2
  374. app-rn-runtime/core/tappable.component.js.map +1 -1
  375. app-rn-runtime/core/toast.service.js.map +1 -1
  376. app-rn-runtime/core/utils.js +22 -0
  377. app-rn-runtime/core/utils.js.map +1 -1
  378. app-rn-runtime/core/viewport.js.map +1 -1
  379. app-rn-runtime/gestures/swipe.animation.js +9 -4
  380. app-rn-runtime/gestures/swipe.animation.js.map +1 -1
  381. app-rn-runtime/package.json +42 -42
  382. app-rn-runtime/runtime/App.js +14 -6
  383. app-rn-runtime/runtime/App.js.map +1 -1
  384. app-rn-runtime/runtime/App.navigator.js +11 -2
  385. app-rn-runtime/runtime/App.navigator.js.map +1 -1
  386. app-rn-runtime/runtime/base-fragment.component.js +20 -7
  387. app-rn-runtime/runtime/base-fragment.component.js.map +1 -1
  388. app-rn-runtime/runtime/base-page.component.js +2 -0
  389. app-rn-runtime/runtime/base-page.component.js.map +1 -1
  390. app-rn-runtime/runtime/base-partial.component.js.map +1 -1
  391. app-rn-runtime/runtime/base-prefab.component.js +5 -7
  392. app-rn-runtime/runtime/base-prefab.component.js.map +1 -1
  393. app-rn-runtime/runtime/lib-patch.js.map +1 -1
  394. app-rn-runtime/runtime/memo.component.js.map +1 -1
  395. app-rn-runtime/runtime/navigator/drawer.navigator.js.map +1 -1
  396. app-rn-runtime/runtime/navigator/stack.navigator.js.map +1 -1
  397. app-rn-runtime/runtime/services/app-display-manager.service.js.map +1 -1
  398. app-rn-runtime/runtime/services/app-i18n.service.js +26 -3
  399. app-rn-runtime/runtime/services/app-i18n.service.js.map +1 -1
  400. app-rn-runtime/runtime/services/app-modal.service.js.map +1 -1
  401. app-rn-runtime/runtime/services/app-security.service.js +7 -7
  402. app-rn-runtime/runtime/services/app-security.service.js.map +1 -1
  403. app-rn-runtime/runtime/services/app-spinner.service.js +3 -2
  404. app-rn-runtime/runtime/services/app-spinner.service.js.map +1 -1
  405. app-rn-runtime/runtime/services/app-toast.service.js.map +1 -1
  406. app-rn-runtime/runtime/services/device/calendar-service.js.map +1 -1
  407. app-rn-runtime/runtime/services/device/camera-service.js +2 -3
  408. app-rn-runtime/runtime/services/device/camera-service.js.map +1 -1
  409. app-rn-runtime/runtime/services/device/contacts-service.js.map +1 -1
  410. app-rn-runtime/runtime/services/device/location-service.js.map +1 -1
  411. app-rn-runtime/runtime/services/device/permissions.js.map +1 -1
  412. app-rn-runtime/runtime/services/device/scan-service.js.map +1 -1
  413. app-rn-runtime/runtime/services/partial.service.js.map +1 -1
  414. app-rn-runtime/runtime/services/webprocess.service.js.map +1 -1
  415. app-rn-runtime/runtime/watcher.js +3 -1
  416. app-rn-runtime/runtime/watcher.js.map +1 -1
  417. app-rn-runtime/styles/MediaQueryList.js.map +1 -1
  418. app-rn-runtime/styles/background.component.js +51 -12
  419. app-rn-runtime/styles/background.component.js.map +1 -1
  420. app-rn-runtime/styles/style-prop.validator.js +4 -0
  421. app-rn-runtime/styles/style-prop.validator.js.map +1 -1
  422. app-rn-runtime/styles/style-props.js.map +1 -1
  423. app-rn-runtime/styles/theme.js +12 -5
  424. app-rn-runtime/styles/theme.js.map +1 -1
  425. app-rn-runtime/styles/theme.variables.js +58 -2
  426. app-rn-runtime/styles/theme.variables.js.map +1 -1
  427. app-rn-runtime/variables/base-variable.js +3 -3
  428. app-rn-runtime/variables/base-variable.js.map +1 -1
  429. app-rn-runtime/variables/device/calendar/create-event.operation.js.map +1 -1
  430. app-rn-runtime/variables/device/calendar/delete-event.operation.js.map +1 -1
  431. app-rn-runtime/variables/device/calendar/get-events.operation.js.map +1 -1
  432. app-rn-runtime/variables/device/camera/capture-image.operation.js.map +1 -1
  433. app-rn-runtime/variables/device/camera/capture-video.operation.js.map +1 -1
  434. app-rn-runtime/variables/device/contacts/get-contacts.operation.js.map +1 -1
  435. app-rn-runtime/variables/device/device/app-info.operation.js.map +1 -1
  436. app-rn-runtime/variables/device/device/current-geo-position.operation.js.map +1 -1
  437. app-rn-runtime/variables/device/device/device-info.operation.js.map +1 -1
  438. app-rn-runtime/variables/device/device/network-info.operation.js.map +1 -1
  439. app-rn-runtime/variables/device/device/vibrate.operation.js.map +1 -1
  440. app-rn-runtime/variables/device/file/upload-file.operation.js.map +1 -1
  441. app-rn-runtime/variables/device/operation.provider.js.map +1 -1
  442. app-rn-runtime/variables/device/scan/scan.operation.js.map +1 -1
  443. app-rn-runtime/variables/device-variable.js.map +1 -1
  444. app-rn-runtime/variables/http.service.js +7 -3
  445. app-rn-runtime/variables/http.service.js.map +1 -1
  446. app-rn-runtime/variables/live-variable.js +115 -0
  447. app-rn-runtime/variables/live-variable.js.map +1 -0
  448. app-rn-runtime/variables/model-variable.js.map +1 -1
  449. app-rn-runtime/variables/service-variable.js +14 -4
  450. app-rn-runtime/variables/service-variable.js.map +1 -1
  451. app-rn-runtime/variables/utils/dataset-util.js.map +1 -1
  452. app-rn-runtime/variables/utils/inflight-queue.js.map +1 -1
  453. app-rn-runtime/variables/utils/variable.utils.js.map +1 -1
@@ -1 +1 @@
1
- {"version":3,"names":["Color","defineStyles","BASE_THEME","DEFAULT_CLASS","registerStyle","themeVariables","addStyle","defaultStyles","root","color","linkDefaultColor","flexDirection","alignItems","text","paddingLeft","fontSize","textDecorationLine","badge","backgroundColor","fade","rgb","toString","alignSelf","marginTop","marginLeft","fontWeight","icon","paddingRight","anchorTextPadding","skeleton","width","height","borderRadius","getLinkStyles","linkPrimaryColor","linkSecondaryColor","linkSuccessColor","linkDangerColor","linkWarningColor","linkInfoColor","linkLightColor","linkDarkColor"],"sources":["anchor.styles.ts"],"sourcesContent":["import Color from 'color';\nimport { BaseStyles, defineStyles } from '@wavemaker/app-rn-runtime/core/base.component';\nimport { WmIconStyles } from '@wavemaker/app-rn-runtime/components/basic/icon/icon.styles';\nimport BASE_THEME, { AllStyle } from '@wavemaker/app-rn-runtime/styles/theme';\nimport { WmSkeletonStyles } from '../skeleton/skeleton.styles';\n\nexport type WmAnchorStyles = BaseStyles & {\n badge: AllStyle,\n icon: WmIconStyles\n skeleton: WmSkeletonStyles\n};\n\nexport const DEFAULT_CLASS = 'app-anchor';\n\nBASE_THEME.registerStyle((themeVariables, addStyle) => {\n const defaultStyles: WmAnchorStyles = defineStyles({\n root: {\n color: themeVariables.linkDefaultColor,\n flexDirection: 'row',\n alignItems: 'center'\n },\n text: {\n paddingLeft: 8,\n color: themeVariables.linkDefaultColor,\n fontSize: 18, \n textDecorationLine: 'underline',\n },\n badge: {\n backgroundColor: Color(themeVariables.linkDefaultColor).fade(0.8).rgb().toString(),\n color: themeVariables.linkDefaultColor,\n alignSelf: 'flex-start',\n marginTop: -12,\n marginLeft: 0,\n fontWeight: 'bold'\n },\n icon: {\n root : {\n alignSelf: 'center'\n },\n text: {\n fontSize: 16,\n paddingRight: themeVariables.anchorTextPadding,\n color: themeVariables.linkDefaultColor\n }\n } as WmIconStyles,\n skeleton: {\n root: {\n width: '100%',\n height: 20,\n borderRadius: 4\n }\n } as WmSkeletonStyles\n });\n\n addStyle(DEFAULT_CLASS, '', defaultStyles);\n\n const getLinkStyles = (color: string) => {\n return {\n root: {\n color: color\n },\n text: {\n color: color\n },\n icon: {\n text: {\n color: color\n }\n },\n badge: {\n backgroundColor: Color(color).fade(0.8).rgb().toString(),\n color: color,\n }\n } as WmAnchorStyles;\n };\n\n addStyle('link-primary', '', getLinkStyles(themeVariables.linkPrimaryColor));\n addStyle('link-secondary', '', getLinkStyles(themeVariables.linkSecondaryColor));\n addStyle('link-success', '', getLinkStyles(themeVariables.linkSuccessColor));\n addStyle('link-danger', '', getLinkStyles(themeVariables.linkDangerColor));\n addStyle('link-warning', '', getLinkStyles(themeVariables.linkWarningColor));\n addStyle('link-info', '', getLinkStyles(themeVariables.linkInfoColor));\n addStyle('link-light', '', getLinkStyles(themeVariables.linkLightColor));\n addStyle('link-dark', '', getLinkStyles(themeVariables.linkDarkColor));\n});\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAAqBC,YAAY,QAAQ,+CAA+C;AAExF,OAAOC,UAAU,MAAoB,wCAAwC;AAS7E,OAAO,MAAMC,aAAa,GAAG,YAAY;AAEzCD,UAAU,CAACE,aAAa,CAAC,CAACC,cAAc,EAAEC,QAAQ,KAAK;EACnD,MAAMC,aAA6B,GAAGN,YAAY,CAAC;IAC/CO,IAAI,EAAE;MACFC,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AAI,CAAC,GAAG,CAAC,CAACC,GAAG,EAAE,CAACC,QAAQ,EAAE;QACxDZ,KAAK,EAAEA;MACX;IACJ,CAAC;EACL,CAAC;EAEDH,QAAQ,CAAC,cAAc,EAAE,EAAE,EAAE2B,aAAa,CAAC5B,cAAc,CAAC6B,gBAAgB,CAAC,CAAC;EAC5E5B,QAAQ,CAAC,gBAAgB,EAAE,EAAE,EAAE2B,aAAa,CAAC5B,cAAc,CAAC8B,kBAAkB,CAAC,CAAC;EAChF7B,QAAQ,CAAC,cAAc,EAAE,EAAE,EAAE2B,aAAa,CAAC5B,cAAc,CAAC+B,gBAAgB,CAAC,CAAC;EAC5E9B,QAAQ,CAAC,aAAa,EAAE,EAAE,EAAE2B,aAAa,CAAC5B,cAAc,CAACgC,eAAe,CAAC,CAAC;EAC1E/B,QAAQ,CAAC,cAAc,EAAE,EAAE,EAAE2B,aAAa,CAAC5B,cAAc,CAACiC,gBAAgB,CAAC,CAAC;EAC5EhC,QAAQ,CAAC,WAAW,EAAE,EAAE,EAAE2B,aAAa,CAAC5B,cAAc,CAACkC,aAAa,CAAC,CAAC;EACtEjC,QAAQ,CAAC,YAAY,EAAE,EAAE,EAAE2B,aAAa,CAAC5B,cAAc,CAACmC,cAAc,CAAC,CAAC;EACxElC,QAAQ,CAAC,WAAW,EAAE,EAAE,EAAE2B,aAAa,CAAC5B,cAAc,CAACoC,aAAa,CAAC,CAAC;AAC1E,CAAC,CAAC"}
1
+ {"version":3,"names":["Color","defineStyles","BASE_THEME","DEFAULT_CLASS","registerStyle","themeVariables","addStyle","defaultStyles","root","color","linkDefaultColor","flexDirection","alignItems","text","paddingLeft","fontSize","textDecorationLine","badge","backgroundColor","fade","rgb","toString","alignSelf","marginTop","marginLeft","fontWeight","icon","paddingRight","anchorTextPadding","skeleton","width","height","borderRadius","getLinkStyles","linkPrimaryColor","linkSecondaryColor","linkSuccessColor","linkDangerColor","linkWarningColor","linkInfoColor","linkLightColor","linkDarkColor"],"sources":["anchor.styles.ts"],"sourcesContent":["import Color from 'color';\nimport { BaseStyles, defineStyles } from '@wavemaker/app-rn-runtime/core/base.component';\nimport { WmIconStyles } from '@wavemaker/app-rn-runtime/components/basic/icon/icon.styles';\nimport BASE_THEME, { AllStyle } from '@wavemaker/app-rn-runtime/styles/theme';\nimport { WmSkeletonStyles } from '../skeleton/skeleton.styles';\n\nexport type WmAnchorStyles = BaseStyles & {\n badge: AllStyle,\n icon: WmIconStyles\n skeleton: WmSkeletonStyles\n};\n\nexport const DEFAULT_CLASS = 'app-anchor';\n\nBASE_THEME.registerStyle((themeVariables, addStyle) => {\n const defaultStyles: WmAnchorStyles = defineStyles({\n root: {\n color: themeVariables.linkDefaultColor,\n flexDirection: 'row',\n alignItems: 'center'\n },\n text: {\n paddingLeft: 8,\n color: themeVariables.linkDefaultColor,\n fontSize: 18, \n textDecorationLine: 'underline',\n },\n badge: {\n backgroundColor: Color(themeVariables.linkDefaultColor).fade(0.8).rgb().toString(),\n color: themeVariables.linkDefaultColor,\n alignSelf: 'flex-start',\n marginTop: -12,\n marginLeft: 0,\n fontWeight: 'bold'\n },\n icon: {\n root : {\n alignSelf: 'center'\n },\n text: {\n fontSize: 16,\n paddingRight: themeVariables.anchorTextPadding,\n color: themeVariables.linkDefaultColor\n }\n } as WmIconStyles,\n skeleton: {\n root: {\n width: '100%',\n height: 20,\n borderRadius: 4\n }\n } as any as WmSkeletonStyles\n });\n\n addStyle(DEFAULT_CLASS, '', defaultStyles);\n addStyle(DEFAULT_CLASS + '-rtl', '', {\n text: {\n paddingRight: 8\n }\n });\n\n const getLinkStyles = (color: string) => {\n return {\n root: {\n color: color\n },\n text: {\n color: color\n },\n icon: {\n text: {\n color: color\n }\n },\n badge: {\n backgroundColor: Color(color).fade(0.8).rgb().toString(),\n color: color,\n }\n } as WmAnchorStyles;\n };\n\n addStyle('link-primary', '', getLinkStyles(themeVariables.linkPrimaryColor));\n addStyle('link-secondary', '', getLinkStyles(themeVariables.linkSecondaryColor));\n addStyle('link-success', '', getLinkStyles(themeVariables.linkSuccessColor));\n addStyle('link-danger', '', getLinkStyles(themeVariables.linkDangerColor));\n addStyle('link-warning', '', getLinkStyles(themeVariables.linkWarningColor));\n addStyle('link-info', '', getLinkStyles(themeVariables.linkInfoColor));\n addStyle('link-light', '', getLinkStyles(themeVariables.linkLightColor));\n addStyle('link-dark', '', getLinkStyles(themeVariables.linkDarkColor));\n});\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAAqBC,YAAY,QAAQ,+CAA+C;AAExF,OAAOC,UAAU,MAAoB,wCAAwC;AAS7E,OAAO,MAAMC,aAAa,GAAG,YAAY;AAEzCD,UAAU,CAACE,aAAa,CAAC,CAACC,cAAc,EAAEC,QAAQ,KAAK;EACnD,MAAMC,aAA6B,GAAGN,YAAY,CAAC;IAC/CO,IAAI,EAAE;MACFC,KAAK,EAAEJ,cAAc,CAACK,gBAAgB;MACtCC,aAAa,EAAE,KAAK;MACpBC,UAAU,EAAE;IAChB,CAAC;IACDC,IAAI,EAAE;MACFC,WAAW,EAAE,CAAC;MACdL,KAAK,EAAEJ,cAAc,CAACK,gBAAgB;MACtCK,QAAQ,EAAE,EAAE;MACZC,kBAAkB,EAAE;IACxB,CAAC;IACDC,KAAK,EAAE;MACHC,eAAe,EAAElB,KAAK,CAACK,cAAc,CAACK,gBAAgB,CAAC,CAACS,IAAI,CAAC,GAAG,CAAC,CAACC,GAAG,CAAC,CAAC,CAACC,QAAQ,CAAC,CAAC;MAClFZ,KAAK,EAAEJ,cAAc,CAACK,gBAAgB;MACtCY,SAAS,EAAE,YAAY;MACvBC,SAAS,EAAE,CAAC,EAAE;MACdC,UAAU,EAAE,CAAC;MACbC,UAAU,EAAE;IAChB,CAAC;IACDC,IAAI,EAAE;MACFlB,IAAI,EAAG;QACHc,SAAS,EAAE;MACf,CAAC;MACDT,IAAI,EAAE;QACFE,QAAQ,EAAE,EAAE;QACZY,YAAY,EAAEtB,cAAc,CAACuB,iBAAiB;Q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CAAC5B,cAAc,CAACiC,gBAAgB,CAAC,CAAC;EAC5EhC,QAAQ,CAAC,WAAW,EAAE,EAAE,EAAE2B,aAAa,CAAC5B,cAAc,CAACkC,aAAa,CAAC,CAAC;EACtEjC,QAAQ,CAAC,YAAY,EAAE,EAAE,EAAE2B,aAAa,CAAC5B,cAAc,CAACmC,cAAc,CAAC,CAAC;EACxElC,QAAQ,CAAC,WAAW,EAAE,EAAE,EAAE2B,aAAa,CAAC5B,cAAc,CAACoC,aAAa,CAAC,CAAC;AAC1E,CAAC,CAAC"}
@@ -129,6 +129,7 @@ export class Animatedview extends React.Component {
129
129
  constructor(props) {
130
130
  super(props);
131
131
  _defineProperty(this, "view", null);
132
+ // @ts-ignore
132
133
  _defineProperty(this, "handleViewRef", ref => this.view = ref);
133
134
  initializeRegistryWithDefinitions(CustomAnimationMap);
134
135
  }
@@ -145,9 +146,6 @@ export class Animatedview extends React.Component {
145
146
  return this.view.animate(AnimationMap[this.props.entryanimation || ''], this.props.duration, 1).then(endState => endState.finished);
146
147
  }
147
148
  }
148
-
149
- // @ts-ignore
150
-
151
149
  render() {
152
150
  return this.props.entryanimation ? /*#__PURE__*/React.createElement(Animatable.View, {
153
151
  animation: this.props.entryanimation,
@@ -1 +1 @@
1
- {"version":3,"names":["React","Animatable","initializeRegistryWithDefinitions","View","AnimatedviewProps","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","from","translateY","to","slideOutUp","slideOutDown","opacity","fadeOutDown","fadeOutUp","Animatedview","Component","constructor","props","ref","view","triggerEntry","animate","entryanimation","duration","then","endState","finished","triggerExit","exitanimation","render","style","handleViewRef","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 style?: any;\n exitanimation?: string = null as 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 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 ref={this.handleViewRef}>\n {this.props.children}\n </Animatable.View>\n ): (<View style={this.props.style}>{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;EAAA;IAAA,wCACX,IAAI;IAAA;IAAA,kCAEV,IAAI;IAAA;IAAA,uCAEC,IAAI;EAAA;AAC/B;AAEA,MAAMC,YAAiB,GAAG;EACxBC,MAAM,EAAE,QAAQ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AQ,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","from","translateY","to","slideOutUp","slideOutDown","opacity","fadeOutDown","fadeOutUp","Animatedview","Component","props","ref","view","triggerEntry","animate","entryanimation","duration","then","endState","finished","triggerExit","exitanimation","render","createElement","animation","useNativeDriver","style","handleViewRef","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 style?: any;\n exitanimation?: string = null as 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 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 ref={this.handleViewRef}>\n {this.props.children}\n </Animatable.View>\n ): (<View style={this.props.style}>{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,wBAEC,IAAI;EAAA;AAC/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,QAAQ,EAAE,WAAW;EACrBC,YAAY,EAAE,aAAa;EAC3BC,YAAY,EAAE,gBAAgB;EAC9BC,aAAa,EAAE,eAAe;EAC9BC,UAAU,EAAE,eAAe;EAC3BC,MAAM,EAAE,SAAS;EACjBC,UAAU,EAAE,WAAW;EACvBC,aAAa,EAAE,cAAc;EAC7BC,UAAU,EAAE,cAAc;EAC1BC,aAAa,EAAE,iBAAiB;EAChCC,WAAW,EAAE,aAAa;EAC1BC,cAAc,EAAE,gBAAgB;EAChCC,QAAQ,EAAE,aAAa;EACvBC,WAAW,EAAE,gBAAgB;EAC7BC,OAAO,EAAE,UAAU;EACnBC,OAAO,EAAE,UAAU;EACnBC,YAAY,EAAE,eAAe;EAC7BC,WAAW,EAAE,YAAY;EACzB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AC,CAACC,IAAI,CAAEC,QAAa,IAAKA,QAAQ,CAACC,QAAQ,CAAC;IACrJ;EACF;EAKAG,MAAMA,CAAA,EAAG;IACP,OAAO,IAAI,CAACZ,KAAK,CAACK,cAAc,gBAC/B3D,KAAA,CAAAmE,aAAA,CAAClE,UAAU,CAACE,IAAI;MACdiE,SAAS,EAAE,IAAI,CAACd,KAAK,CAACK,cAAe;MACrCC,QAAQ,EAAE,IAAI,CAACN,KAAK,CAACM,QAAS;MAC9BS,eAAe,EAAE,IAAK;MACtBC,KAAK,EAAE,IAAI,CAAChB,KAAK,CAACgB,KAAM;MACxBf,GAAG,EAAE,IAAI,CAACgB;IAAc,GACtB,IAAI,CAACjB,KAAK,CAACkB,QACG,CAAC,gBAChBxE,KAAA,CAAAmE,aAAA,CAAChE,IAAI;MAACmE,KAAK,EAAE,IAAI,CAAChB,KAAK,CAACgB;IAAM,GAAE,IAAI,CAAChB,KAAK,CAACkB,QAAe,CAAE;EAClE;AACF;AAAClE,eAAA,CA1CY8C,YAAY,kBACkB;EACvCQ,QAAQ,EAAE;AACZ,CAAC"}
@@ -0,0 +1,240 @@
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); }
4
+ import React from 'react';
5
+ import { Platform, Text, View } from 'react-native';
6
+ import Slider from '@react-native-community/slider';
7
+ import { isString } from 'lodash-es';
8
+ import { Audio } from 'expo-av';
9
+ import { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';
10
+ import WmAudioProps from './audio.props';
11
+ import { DEFAULT_CLASS } from './audio.styles';
12
+ import WmIcon from '../icon/icon.component';
13
+ import { isWebPreviewMode } from '@wavemaker/app-rn-runtime/core/utils';
14
+ export class WmAudioState extends BaseComponentState {
15
+ constructor() {
16
+ super(...arguments);
17
+ _defineProperty(this, "playing", false);
18
+ _defineProperty(this, "currentTime", 0);
19
+ _defineProperty(this, "totalTime", 0);
20
+ }
21
+ }
22
+ export default class WmAudio extends BaseComponent {
23
+ constructor(props) {
24
+ super(props, DEFAULT_CLASS, new WmAudioProps(), new WmAudioState());
25
+ _defineProperty(this, "loading", false);
26
+ _defineProperty(this, "sound", null);
27
+ _defineProperty(this, "timer", void 0);
28
+ _defineProperty(this, "offsetTime", 0);
29
+ }
30
+ onPropertyChange(name, $new, $old) {
31
+ super.onPropertyChange(name, $new, $old);
32
+ switch (name) {
33
+ case 'mp3format':
34
+ {
35
+ if (this.initialized) {
36
+ Promise.resolve().then(() => {
37
+ var _this$sound;
38
+ return (_this$sound = this.sound) === null || _this$sound === void 0 ? void 0 : _this$sound.unloadAsync();
39
+ }).then(() => {
40
+ this.sound = null;
41
+ this.onSeekChange(0);
42
+ if (this.state.playing || this.state.props.autoplay) {
43
+ this.play();
44
+ }
45
+ });
46
+ }
47
+ }
48
+ break;
49
+ case 'autoplay':
50
+ if (this.initialized && $new) {
51
+ this.play();
52
+ }
53
+ }
54
+ }
55
+ getSource() {
56
+ const source = this.loadAsset && this.state.props.mp3format && this.loadAsset(this.state.props.mp3format);
57
+ if (isString(source)) {
58
+ return {
59
+ uri: source
60
+ };
61
+ }
62
+ return source;
63
+ }
64
+ addPadding(str, maxLen) {
65
+ let pad = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '0';
66
+ if (str.length < maxLen) {
67
+ return this.addPadding(pad + str, maxLen, pad);
68
+ }
69
+ return str;
70
+ }
71
+ formatTime(v) {
72
+ const t = v / 60;
73
+ const mins = Math.floor(t);
74
+ const seconds = Math.round((t - mins) * 60);
75
+ return this.addPadding(mins + '', 2) + ':' + this.addPadding(seconds + '', 2);
76
+ }
77
+ setTimer() {
78
+ this.cancelTimer();
79
+ this.timer = setInterval(() => {
80
+ if (this.state.currentTime >= this.state.totalTime) {
81
+ if (this.state.props.loop) {
82
+ this.replay();
83
+ } else {
84
+ this.stop();
85
+ }
86
+ return;
87
+ }
88
+ this.setState({
89
+ currentTime: Math.max(this.offsetTime + this.state.currentTime + 1, 0)
90
+ });
91
+ this.offsetTime = 0;
92
+ }, 1000);
93
+ }
94
+ cancelTimer() {
95
+ clearInterval(this.timer);
96
+ }
97
+ stop() {
98
+ var _this$sound2;
99
+ this.pause();
100
+ (_this$sound2 = this.sound) === null || _this$sound2 === void 0 ? void 0 : _this$sound2.unloadAsync();
101
+ this.sound = null;
102
+ this.cancelTimer();
103
+ this.offsetTime = 0;
104
+ this.updateState({
105
+ currentTime: 0
106
+ });
107
+ }
108
+ replay() {
109
+ this.updateState({
110
+ currentTime: 0
111
+ }, () => {
112
+ this.sound.replayAsync();
113
+ });
114
+ }
115
+ play() {
116
+ if (isWebPreviewMode() || this.loading || this.state.playing && this.sound) {
117
+ return;
118
+ }
119
+ if (this.sound) {
120
+ this.sound.playAsync();
121
+ this.setTimer();
122
+ this.updateState({
123
+ playing: true
124
+ });
125
+ } else {
126
+ this.loading = true;
127
+ const source = this.getSource();
128
+ source && Audio.Sound.createAsync(source, {
129
+ isMuted: this.state.props.muted
130
+ }).then(res => {
131
+ this.sound = res.sound;
132
+ this.sound.playAsync();
133
+ this.sound.getStatusAsync().then(status => {
134
+ this.updateState({
135
+ currentTime: 0,
136
+ totalTime: Math.round(status['durationMillis'] / 1000)
137
+ }, () => this.setTimer());
138
+ });
139
+ this.updateState({
140
+ playing: true
141
+ });
142
+ }).catch(() => {}).then(() => {
143
+ this.loading = false;
144
+ });
145
+ }
146
+ }
147
+ pause() {
148
+ var _this$sound3;
149
+ this.cancelTimer();
150
+ (_this$sound3 = this.sound) === null || _this$sound3 === void 0 ? void 0 : _this$sound3.pauseAsync().then(() => {
151
+ this.updateState({
152
+ playing: false
153
+ });
154
+ });
155
+ }
156
+ mute() {
157
+ this.sound.setStatusAsync({
158
+ isMuted: true
159
+ }).then(() => {
160
+ this.updateState({
161
+ props: {
162
+ muted: true
163
+ }
164
+ });
165
+ });
166
+ }
167
+ unmute() {
168
+ this.sound.setStatusAsync({
169
+ isMuted: false
170
+ }).then(() => {
171
+ this.updateState({
172
+ props: {
173
+ muted: false
174
+ }
175
+ });
176
+ });
177
+ }
178
+ onSeekChange(time) {
179
+ if (time !== this.state.currentTime) {
180
+ var _this$sound4;
181
+ this.offsetTime = time - this.state.currentTime;
182
+ (_this$sound4 = this.sound) === null || _this$sound4 === void 0 ? void 0 : _this$sound4.setPositionAsync(time * 1000);
183
+ }
184
+ }
185
+ componentDidMount() {
186
+ super.componentDidMount();
187
+ //without settimeout, app is crashing with errors
188
+ setTimeout(() => {
189
+ if (this.state.props.autoplay) {
190
+ this.play();
191
+ }
192
+ }, 1000);
193
+ }
194
+ componentWillUnmount() {
195
+ super.componentWillUnmount();
196
+ this.stop();
197
+ }
198
+ renderWidget(props) {
199
+ return props.controls ? /*#__PURE__*/React.createElement(View, {
200
+ style: this.styles.root
201
+ }, this._background, !this.state.playing ? /*#__PURE__*/React.createElement(WmIcon, {
202
+ name: props.name + "_play",
203
+ styles: this.styles.playIcon,
204
+ iconclass: "wi wi-play-arrow fa-2x",
205
+ onTap: () => this.play()
206
+ }) : /*#__PURE__*/React.createElement(WmIcon, {
207
+ name: props.name + "_pause",
208
+ iconclass: "wi wi-pause fa-2x",
209
+ styles: this.styles.pauseIcon,
210
+ onTap: () => this.pause()
211
+ }), /*#__PURE__*/React.createElement(Text, {
212
+ style: this.styles.text
213
+ }, `${this.formatTime(this.state.currentTime)} / ${this.formatTime(this.state.totalTime)}`), /*#__PURE__*/React.createElement(Slider, {
214
+ step: 1,
215
+ style: {
216
+ flex: 1
217
+ },
218
+ value: this.state.currentTime,
219
+ disabled: isWebPreviewMode(),
220
+ onValueChange: this.onSeekChange.bind(this),
221
+ minimumValue: 0,
222
+ inverted: this.isRTL && (Platform.OS == "android" || Platform.OS == "web"),
223
+ maximumValue: this.state.totalTime || 1,
224
+ thumbTintColor: this.styles.slider.thumb.backgroundColor,
225
+ minimumTrackTintColor: this.styles.slider.minimumTrack.backgroundColor,
226
+ maximumTrackTintColor: this.styles.slider.maximumTrack.backgroundColor
227
+ }), !props.muted ? /*#__PURE__*/React.createElement(WmIcon, {
228
+ name: props.name + "_mute",
229
+ iconclass: "wi wi-volume-up fa-2x",
230
+ styles: this.styles.muteIcon,
231
+ onTap: () => this.mute()
232
+ }) : /*#__PURE__*/React.createElement(WmIcon, {
233
+ name: props.name + "_unmute",
234
+ iconclass: "wi wi-volume-off fa-2x",
235
+ styles: this.styles.unmuteIcon,
236
+ onTap: () => this.unmute()
237
+ })) : null;
238
+ }
239
+ }
240
+ //# sourceMappingURL=audio.component.js.map
@@ -0,0 +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","playIcon","iconclass","onTap","pauseIcon","text","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 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 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 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 iconclass=\"wi wi-volume-up fa-2x\"\n styles={this.styles.muteIcon}\n onTap={() => this.mute()}></WmIcon>) :\n (<WmIcon name={props.name + \"_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;AAC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KAAK,CAACE,IAAI,GAAG,SAAU;MACpCgF,SAAS,EAAC,wBAAwB;MAClCJ,MAAM,EAAE,IAAI,CAACA,MAAM,CAAC4B,UAAW;MAC/BvB,KAAK,EAAEA,CAAA,KAAM,IAAI,CAAChB,MAAM,CAAC;IAAE,CAAS,CAClC,CAAC,GAAI,IAAI;EACnB;AACF"}
@@ -0,0 +1,15 @@
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); }
4
+ import { BaseProps } from '@wavemaker/app-rn-runtime/core/base.component';
5
+ export default class WmAudioProps extends BaseProps {
6
+ constructor() {
7
+ super(...arguments);
8
+ _defineProperty(this, "mp3format", '');
9
+ _defineProperty(this, "controls", false);
10
+ _defineProperty(this, "autoplay", false);
11
+ _defineProperty(this, "loop", false);
12
+ _defineProperty(this, "muted", false);
13
+ }
14
+ }
15
+ //# sourceMappingURL=audio.props.js.map
@@ -0,0 +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"}
@@ -0,0 +1,61 @@
1
+ import BASE_THEME from '@wavemaker/app-rn-runtime/styles/theme';
2
+ import { defineStyles } from '@wavemaker/app-rn-runtime/core/base.component';
3
+ import Color from 'color';
4
+ export const DEFAULT_CLASS = 'app-audio';
5
+ BASE_THEME.registerStyle((themeVariables, addStyle) => {
6
+ const defaultStyles = defineStyles({
7
+ root: {
8
+ backgroundColor: themeVariables.defaultColorF,
9
+ flexDirection: 'row',
10
+ justifyContent: 'space-between',
11
+ alignItems: 'center',
12
+ paddingHorizontal: 16,
13
+ paddingVertical: 8,
14
+ borderRadius: 64,
15
+ minWidth: 300
16
+ },
17
+ text: {
18
+ color: themeVariables.defaultColor3,
19
+ paddingHorizontal: 8
20
+ },
21
+ playIcon: {
22
+ icon: {
23
+ color: themeVariables.defaultColor3
24
+ }
25
+ },
26
+ pauseIcon: {
27
+ icon: {
28
+ color: themeVariables.defaultColor3
29
+ }
30
+ },
31
+ muteIcon: {
32
+ icon: {
33
+ color: themeVariables.defaultColor3
34
+ }
35
+ },
36
+ unmuteIcon: {
37
+ icon: {
38
+ color: themeVariables.defaultColor3
39
+ }
40
+ },
41
+ slider: {
42
+ root: {
43
+ flex: 1
44
+ },
45
+ text: {
46
+ display: 'none'
47
+ },
48
+ minimumTrack: {
49
+ backgroundColor: themeVariables.defaultColor3
50
+ },
51
+ maximumTrack: {
52
+ backgroundColor: Color(themeVariables.defaultColor3).lighten(0.8).rgb().toString()
53
+ },
54
+ thumb: {
55
+ backgroundColor: themeVariables.defaultColor3
56
+ }
57
+ }
58
+ });
59
+ addStyle(DEFAULT_CLASS, '', defaultStyles);
60
+ });
61
+ //# sourceMappingURL=audio.styles.js.map
@@ -0,0 +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,O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AACC,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"}
@@ -1 +1 @@
1
- {"version":3,"names":["React","Text","View","BaseComponent","BaseComponentState","Tappable","Badge","WmButtonProps","DEFAULT_CLASS","WmIcon","Animatedview","createSkeleton","WmButtonState","WmButton","constructor","props","prepareIcon","styles","icon","name","iconclass","iconsize","prepareBadge","badge","badgevalue","renderSkeleton","prop","theme","skeleton","root","width","skeletonwidth","height","skeletonheight","renderWidget","animation","_background","content","flexDirection","iconposition","text","caption"],"sources":["button.component.tsx"],"sourcesContent":["import React from 'react';\nimport { 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';\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(props: any) {\n return (<WmIcon\n styles={this.styles.icon} name={props.name + '_icon'} iconclass={props.iconclass} iconsize={props.iconsize}></WmIcon>);\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,\n height: this.props.skeletonheight || this.styles.root.height\n });\n }\n\n renderWidget(props: WmButtonProps) {\n return (\n <Animatedview entryanimation={props.animation} style={this.styles.root}>\n {this._background}\n <Tappable target={this}>\n <View style={[this.styles.content, {flexDirection: props.iconposition === 'top' ? 'column': 'row'}]}>\n {props.iconposition === 'top' && this.prepareIcon(props)}\n {props.iconposition === 'left' && this.prepareIcon(props)}\n <Text style={this.styles.text}>{props.caption}</Text>\n {props.iconposition === 'right' && this.prepareIcon(props)}\n {props.badgevalue && this.prepareBadge(props)}\n </View>\n </Tappable>\n </Animatedview>\n );\n }\n}\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AACzC,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;AAE/D,OAAO,MAAMC,aAAa,SAASR,kBAAkB,CAAgB;AAIrE,eAAe,MAAMS,QAAQ,SAASV,aAAa,CAA+C;EAEhGW,WAAW,CAACC,KAAoB,EAAE;IAChC,KAAK,CAACA,KAAK,EAAEP,aAAa,EAAE,IAAID,aAAa,EAAE,CAAC;EAClD;EAEQS,WAAW,CAACD,KAAU,EAAE;IAC9B,oBAAQ,oBAAC,MAAM;MACb,MAAM,EAAE,IAAI,CAACE,MAAM,CAACC,IAAK;MAAC,IAAI,EAAEH,KAAK,CAACI,IAAI,GAAG,OAAQ;MAAC,SAAS,EAAEJ,KAAK,CAACK,SAAU;MAAC,QAAQ,EAAEL,KAAK,CAACM;IAAS,E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AAO,IAAI,IAAI,CAACvB,WAAW,CAACD,KAAK,CAAC,EACzDA,KAAK,CAACS,UAAU,IAAI,IAAI,CAACF,YAAY,CAACP,KAAK,CAAC,CACxC,CACE,CACE;EAEnB;AACF"}
1
+ {"version":3,"names":["React","Text","View","BaseComponent","BaseComponentState","Tappable","Badge","WmButtonProps","DEFAULT_CLASS","WmIcon","Animatedview","createSkeleton","WmButtonState","WmButton","constructor","props","prepareIcon","createElement","styles","icon","name","iconclass","iconsize","prepareBadge","style","badge","badgevalue","renderSkeleton","prop","theme","skeleton","root","width","skeletonwidth","height","skeletonheight","renderWidget","entryanimation","animation","_background","target","content","flexDirection","iconposition","text","caption"],"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';\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(props: any) {\n return (<WmIcon\n styles={this.styles.icon} name={props.name + '_icon'} iconclass={props.iconclass} iconsize={props.iconsize}></WmIcon>);\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 <Animatedview entryanimation={props.animation} style={this.styles.root}>\n {this._background}\n <Tappable target={this}>\n <View style={[this.styles.content, {flexDirection: props.iconposition === 'top' ? 'column': 'row'}]}>\n {props.iconposition === 'top' && this.prepareIcon(props)}\n {props.iconposition === 'left' && this.prepareIcon(props)}\n <Text style={this.styles.text}>{props.caption}</Text>\n {props.iconposition === 'right' && this.prepareIcon(props)}\n {props.badgevalue && this.prepareBadge(props)}\n </View>\n </Tappable>\n </Animatedview>\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;AAE/D,OAAO,MAAMC,aAAa,SAASR,kBAAkB,CAAgB;AAIrE,eAAe,MAAMS,QAAQ,SAASV,aAAa,CAA+C;EAEhGW,WAAWA,CAACC,KAAoB,EAAE;IAChC,KAAK,CAACA,KAAK,EAAEP,aAAa,EAAE,IAAID,aAAa,CAAC,CAAC,CAAC;EAClD;EAEQS,WAAWA,CAACD,KAAU,EAAE;IAC9B,oBAAQf,KAAA,CAAAiB,aAAA,CAACR,MAAM;MACbS,MAAM,EAAE,IAAI,CAACA,MAAM,CAACC,IAAK;MAACC,IAAI,EAAEL,KAAK,CAACK,IAAI,GAAG,OAAQ;MAACC,SAAS,EAAEN,KAAK,CAACM,SAAU;MAACC,QAAQ,EAAEP,KA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AAA,CAAAiB,aAAA,CAAChB,IAAI;MAACuB,KAAK,EAAE,IAAI,CAACN,MAAM,CAAC0B;IAAK,GAAE7B,KAAK,CAAC8B,OAAc,CAAC,EACpD9B,KAAK,CAAC4B,YAAY,KAAK,OAAO,IAAI,IAAI,CAAC3B,WAAW,CAACD,KAAK,CAAC,EACzDA,KAAK,CAACW,UAAU,IAAI,IAAI,CAACH,YAAY,CAACR,KAAK,CACxC,CACE,CACE,CAAC;EAEnB;AACF"}
@@ -1 +1 @@
1
- {"version":3,"names":["BaseProps","WmButtonProps"],"sources":["button.props.ts"],"sourcesContent":["import { 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}\n"],"mappings":";;;AAAA,SAASA,SAAS,QAAQ,+CAA+C;AAEzE,eAAe,MAAMC,aAAa,SAASD,SAAS,CAAC;EAAA;IAAA;IAAA,mCAC5B,IAAI;IAAA,iCACN,IAAI;IAAA,oCACD,IAAI;IAAA,mCACL,IAAI;IAAA,sCACT,MAAM;IAAA,+BACH,IAAI;IAAA,kCACJ,CAAC;IAAA,wCACM,IAAI;IAAA,uCACL,IAAI;EAAA;AACjC"}
1
+ {"version":3,"names":["BaseProps","WmButtonProps","constructor","arguments","_defineProperty"],"sources":["button.props.ts"],"sourcesContent":["import { 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}\n"],"mappings":";;;AAAA,SAASA,SAAS,QAAQ,+CAA+C;AAEzE,eAAe,MAAMC,aAAa,SAASD,SAAS,CAAC;EAAAE,YAAA;IAAA,SAAAC,SAAA;IAAAC,eAAA,oBAC5B,IAAI;IAAAA,eAAA,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;EAAA;AACjC"}
@@ -1 +1 @@
1
- {"version":3,"names":["BASE_THEME","defineStyles","DEFAULT_CLASS","registerStyle","themeVariables","addStyle","defaultStyles","root","padding","borderRadius","alignSelf","content","flexDirection","alignItems","justifyContent","text","fontSize","fontWeight","textAlign","textTransform","marginHorizontal","badge","backgroundColor","buttonBadgeBackgroundColor","color","buttonBadgeTextColor","position","top","marginLeft","borderWidth","borderStyle","icon","paddingRight","buttonTextPadding","skeleton","width","height","opacity","getButtonStyles","bgColor","borderColor","linkBtnStyle","buttonLinkColor","buttonLinkTextColor","paddingVertical","textDecorationColor","textDecorationLine","textDecorationStyle","buttonDefaultColor","buttonDefaultTextColor","buttonBorderColor","buttonInfoColor","buttonInfoTextColor","buttonPrimaryColor","buttonPrimaryTextColor","buttonSecondaryColor","buttonSecondaryTextColor","buttonDangerColor","buttonDangerTextColor","buttonSuccessColor","buttonSuccessTextColor","buttonWarningColor","buttonWarningTextColor","buttonDarkColor","buttonDarkTextColor","buttonLightColor","buttonLightTextColor","getStyle","bottom","right","marginRight"],"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 padding: 12,\n borderRadius: 6,\n alignSelf: 'flex-start'\n },\n content: {\n flexDirection: 'row',\n alignItems: 'center',\n justifyContent: 'center'\n },\n text: {\n fontSize: 16,\n fontWeight: '500',\n textAlign: 'center',\n textTransform: 'capitalize',\n marginHorizontal: 4\n },\n badge: {\n backgroundColor: themeVariables.buttonBadgeBackgroundColor,\n color: themeVariables.buttonBadgeTextColor,\n alignSelf: 'flex-start',\n position: 'relative',\n top: -16,\n marginLeft: -16,\n borderWidth: 1,\n borderStyle: 'solid'\n },\n icon: {\n root : {\n alignSelf: 'auto'\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);\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-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,OAAO,EAAE,EAAE;MACXC,YAAY,EAAE,CAAC;MACfC,SAAS,EAAE;IACf,CAA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,CAAmB;AACtB,CAAC,CAAC"}
1
+ {"version":3,"names":["BASE_THEME","defineStyles","DEFAULT_CLASS","registerStyle","themeVariables","addStyle","defaultStyles","root","padding","borderRadius","alignSelf","content","flexDirection","alignItems","justifyContent","text","fontSize","fontWeight","textAlign","textTransform","marginHorizontal","badge","backgroundColor","buttonBadgeBackgroundColor","color","buttonBadgeTextColor","position","top","marginLeft","borderWidth","borderStyle","icon","paddingRight","buttonTextPadding","skeleton","width","height","opacity","getButtonStyles","bgColor","borderColor","arguments","length","undefined","linkBtnStyle","buttonLinkColor","buttonLinkTextColor","paddingVertical","textDecorationColor","textDecorationLine","textDecorationStyle","buttonDefaultColor","buttonDefaultTextColor","buttonBorderColor","buttonInfoColor","buttonInfoTextColor","buttonPrimaryColor","buttonPrimaryTextColor","buttonSecondaryColor","buttonSecondaryTextColor","buttonDangerColor","buttonDangerTextColor","buttonSuccessColor","buttonSuccessTextColor","buttonWarningColor","buttonWarningTextColor","buttonDarkColor","buttonDarkTextColor","buttonLightColor","buttonLightTextColor","getStyle","bottom","right","marginRight"],"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 padding: 12,\n borderRadius: 6,\n alignSelf: 'flex-start'\n },\n content: {\n flexDirection: 'row',\n alignItems: 'center',\n justifyContent: 'center'\n },\n text: {\n fontSize: 16,\n fontWeight: '500',\n textAlign: 'center',\n textTransform: 'capitalize',\n marginHorizontal: 4\n },\n badge: {\n backgroundColor: themeVariables.buttonBadgeBackgroundColor,\n color: themeVariables.buttonBadgeTextColor,\n alignSelf: 'flex-start',\n position: 'relative',\n top: -16,\n marginLeft: -16,\n borderWidth: 1,\n borderStyle: 'solid'\n },\n icon: {\n root : {\n alignSelf: 'auto'\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);\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-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,OAAO,EAAE,EAAE;MACXC,YAAY,EAAE,CAAC;MACfC,SAAS,EAAE;IACf,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,EAAE,KAAK;MACjBC,SAAS,EAAE,QAAQ;MACnBC,aAAa,EAAE,YAAY;MAC3BC,gBAAgB,EAAE;IACpB,CAAC;IACDC,KAAK,EAAE;MACLC,eAAe,EAAElB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Ae,CAAClC,cAAc,CAAC4D,kBAAkB,EAAE5D,cAAc,CAAC6D,sBAAsB,CAAC,CAAC;EACtH5D,QAAQ,CAAC,UAAU,EAAE,EAAE,EAAEuC,YAAY,CAAC;EACtCvC,QAAQ,CAAC,UAAU,EAAE,EAAE,EAAEiC,eAAe,CAAClC,cAAc,CAAC8D,eAAe,EAAE9D,cAAc,CAAC+D,mBAAmB,CAAC,CAAC;EAC7G9D,QAAQ,CAAC,WAAW,EAAE,EAAE,EAAEiC,eAAe,CAAClC,cAAc,CAACgE,gBAAgB,EAAEhE,cAAc,CAACiE,oBAAoB,CAAC,CAAC;EAChHhE,QAAQ,CAAC,SAAS,EAAE,aAAa,EAAE;IACjCE,IAAI,EAAG;MACL,GAAGP,UAAU,CAACsE,QAAQ,CAAC,UAAU,CAAC,CAAC/D,IAAI;MACvCmB,QAAQ,EAAE,OAAc;MACxB6C,MAAM,EAAE,GAAG;MACXC,KAAK,EAAE,EAAE;MACTrC,KAAK,EAAE,EAAE;MACTC,MAAM,EAAE,EAAE;MACV3B,YAAY,EAAE,EAAE;MAChBK,cAAc,EAAE,QAAQ;MACxBD,UAAU,EAAE;IACd,CAAC;IACDE,IAAI,EAAE;MACJa,UAAU,EAAE,CAAC;MACb6C,WAAW,EAAE;IACf,CAAC;IACD1C,IAAI,EAAE;MACJA,IAAI,EAAE;QACJf,QAAQ,EAAE;MACZ;IACF;EACF,CAAmB,CAAC;EACpBX,QAAQ,CAAC,cAAc,EAAE,SAAS,EAAE;IAClCE,IAAI,EAAG;MACL4B,KAAK,EAAE,EAAE;MACTC,MAAM,EAAE;IACV;EACF,CAAmB,CAAC;AACtB,CAAC,CAAC"}
@@ -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","flexDirection","vertical","_background","children"],"sources":["buttongroup.component.tsx"],"sourcesContent":["import React from 'react';\nimport { View } from 'react-native';\nimport { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';\n\nimport 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,\n height: this.props.skeletonheight || this.styles.root.height\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,SAASC,IAAI,QAAQ,cAAc;AACnC,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,WAAW,CAACC,KAAyB,EAAE;IACrC,KAAK,CAACA,KAAK,EAAEL,aAAa,EAAE,IAAID,kBAAkB,EAAE,CAAC;EACvD;EAEOO,cAAc,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,EAAE,IAAI,CAACN,KAAK,CAACO,aAAa,IAAI,IAAI,CAACJ,MAAM,CAACE,IAAI,CAACC,KAAK;MACzDE,MAAM,EAAE,IAAI,CAACR,KAAK,CAACS,cAAc,IAAI,IAAI,CAACN,MAAM,CAACE,IAAI,CAACG;IACxD,CAAC,CAAC;EACJ;EAEAE,YAAY,CAACV,KAAyB,EAAE;IACtC,oBACE,oBAAC,IAAI;MAAC,KAAK,EAAE,CAAC,IAAI,CAACG,MAAM,CAACE,IAAI,EAAE;QAACM,aAAa,EAAEX,KAAK,CAACY,QAAQ,GAAG,QAAQ,GAAE;MAAK,CAAC;IAAE,GAChF,IAAI,CAACC,WAAW,EAChBb,KAAK,CAACc,QAAQ,CACV;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"}
@@ -1 +1 @@
1
- {"version":3,"names":["BaseProps","WmButtongroupProps"],"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;EAAA;IAAA;IAAA;IAAA,kCAEpC,IAAI;IAAA,wCACE,IAAI;IAAA,uCACL,IAAI;EAAA;AAC/B"}
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 +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","text","skeleton","width","height","borderTopWidth","borderBottomWidth","borderLeftWidth","borderRightWidth","flex","color","defaultColor9"],"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 }, \n text: {},\n skeleton: {\n root : {\n width: '100%',\n height: 48,\n borderRadius: 4\n }\n } 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 text: {\n color: themeVariables.defaultColor9,\n }\n } as WmButtonStyles);\n addStyle('btn-group-first-child', '', {\n root: {\n borderLeftWidth: 0,\n borderRadius: 0,\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;IAClC,CAAC;IACDC,IAAI,EAAE,CAAC,CAAC;IACRC,QAAQ,EAAE;MACRZ,IAAI,EAAG;QACLa,KAAK,EAAE,MAAM;QACbC,MAAM,EAAE,EAAE;QACVV,YAAY,EAAE;MAChB;IACF;EACJ,CAAC,CAAC;EAGFN,QAAQ,CAAC,iBAAiB,EAAE,EAAE,EAAE;IAC9BE,IAAI,EAAE;MACJe,cAAc,EAAE,CAAC;MACjBC,iBAAiB,EAAE,CAAC;MACpBC,eAAe,EAAE,CAAC;MAClBC,gBAAgB,EAAE,CAAC;MACnBd,YAAY,EAAE,CAAC;MACfK,eAAe,EAAE,aAAa;MAC9BU,IAAI,EAAE,CAAC;MACPZ,WAAW,EAAEV,cAAc,CAACW;IAC9B,CAAC;IACDG,IAAI,EAAE;MACJS,KAAK,EAAEvB,cAAc,CAACwB;IACxB;EACF,CAAC,CAAmB;EACpBvB,QAAQ,CAAC,uBAAuB,EAAE,EAAE,EAAE;IACpCE,IAAI,EAAE;MACJiB,eAAe,EAAE,CAAC;MAClBb,YAAY,EAAE,CAAC;MACfK,eAAe,EAAE,aAAa;MAC9BF,WAAW,EAAEV,cAAc,CAACW;IAC9B;EACF,CAAC,CAAmB;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","text","skeleton","width","height","borderTopWidth","borderBottomWidth","borderLeftWidth","borderRightWidth","flex","color","defaultColor9"],"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 }, \n text: {},\n skeleton: {\n root : {\n width: '100%',\n height: 48,\n borderRadius: 4\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 text: {\n color: themeVariables.defaultColor9,\n }\n } as WmButtonStyles);\n addStyle('btn-group-first-child', '', {\n root: {\n borderLeftWidth: 0,\n borderRadius: 0,\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,EA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