@wavemaker/app-rn-runtime 11.4.0-next.141708 → 11.4.0-next.1417080

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 (511) 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 +5 -4
  7. app-rn-runtime/actions/notification-action.js.map +1 -1
  8. app-rn-runtime/actions/timer-action.js.map +1 -1
  9. app-rn-runtime/components/advanced/carousel/carousel-content/carousel-content.component.js +1 -1
  10. app-rn-runtime/components/advanced/carousel/carousel-content/carousel-content.component.js.map +1 -1
  11. app-rn-runtime/components/advanced/carousel/carousel-content/carousel-content.props.js.map +1 -1
  12. app-rn-runtime/components/advanced/carousel/carousel-template/carousel-template.component.js +1 -1
  13. app-rn-runtime/components/advanced/carousel/carousel-template/carousel-template.component.js.map +1 -1
  14. app-rn-runtime/components/advanced/carousel/carousel-template/carousel-template.props.js.map +1 -1
  15. app-rn-runtime/components/advanced/carousel/carousel.component.js +2 -2
  16. app-rn-runtime/components/advanced/carousel/carousel.component.js.map +1 -1
  17. app-rn-runtime/components/advanced/carousel/carousel.props.js.map +1 -1
  18. app-rn-runtime/components/advanced/carousel/carousel.styles.js +16 -0
  19. app-rn-runtime/components/advanced/carousel/carousel.styles.js.map +1 -1
  20. app-rn-runtime/components/advanced/login/login.component.js +1 -1
  21. app-rn-runtime/components/advanced/login/login.component.js.map +1 -1
  22. app-rn-runtime/components/advanced/login/login.props.js.map +1 -1
  23. app-rn-runtime/components/advanced/network-info-toaster/network-info-toaster.component.js +5 -5
  24. app-rn-runtime/components/advanced/network-info-toaster/network-info-toaster.component.js.map +1 -1
  25. app-rn-runtime/components/advanced/network-info-toaster/network-info-toaster.props.js.map +1 -1
  26. app-rn-runtime/components/advanced/webview/webview.component.js +1 -1
  27. app-rn-runtime/components/advanced/webview/webview.component.js.map +1 -1
  28. app-rn-runtime/components/advanced/webview/webview.props.js.map +1 -1
  29. app-rn-runtime/components/basic/anchor/anchor.component.js +2 -1
  30. app-rn-runtime/components/basic/anchor/anchor.component.js.map +1 -1
  31. app-rn-runtime/components/basic/anchor/anchor.props.js.map +1 -1
  32. app-rn-runtime/components/basic/anchor/anchor.styles.js +5 -0
  33. app-rn-runtime/components/basic/anchor/anchor.styles.js.map +1 -1
  34. app-rn-runtime/components/basic/animatedview.component.js +1 -3
  35. app-rn-runtime/components/basic/animatedview.component.js.map +1 -1
  36. app-rn-runtime/components/basic/audio/audio.component.js +232 -0
  37. app-rn-runtime/components/basic/audio/audio.component.js.map +1 -0
  38. app-rn-runtime/components/basic/audio/audio.props.js +15 -0
  39. app-rn-runtime/components/basic/audio/audio.props.js.map +1 -0
  40. app-rn-runtime/components/basic/audio/audio.styles.js +61 -0
  41. app-rn-runtime/components/basic/audio/audio.styles.js.map +1 -0
  42. app-rn-runtime/components/basic/button/button.component.js +1 -1
  43. app-rn-runtime/components/basic/button/button.component.js.map +1 -1
  44. app-rn-runtime/components/basic/button/button.props.js.map +1 -1
  45. app-rn-runtime/components/basic/button/button.styles.js.map +1 -1
  46. app-rn-runtime/components/basic/buttongroup/buttongroup.component.js +1 -1
  47. app-rn-runtime/components/basic/buttongroup/buttongroup.component.js.map +1 -1
  48. app-rn-runtime/components/basic/buttongroup/buttongroup.props.js.map +1 -1
  49. app-rn-runtime/components/basic/buttongroup/buttongroup.styles.js.map +1 -1
  50. app-rn-runtime/components/basic/custom/custom.component.js +25 -0
  51. app-rn-runtime/components/basic/custom/custom.component.js.map +1 -0
  52. app-rn-runtime/components/basic/custom/custom.props.js +16 -0
  53. app-rn-runtime/components/basic/custom/custom.props.js.map +1 -0
  54. app-rn-runtime/components/basic/custom/custom.styles.js +18 -0
  55. app-rn-runtime/components/basic/custom/custom.styles.js.map +1 -0
  56. app-rn-runtime/components/basic/icon/icon.component.js +1 -1
  57. app-rn-runtime/components/basic/icon/icon.component.js.map +1 -1
  58. app-rn-runtime/components/basic/icon/icon.props.js.map +1 -1
  59. app-rn-runtime/components/basic/icon/icon.styles.js +5 -0
  60. app-rn-runtime/components/basic/icon/icon.styles.js.map +1 -1
  61. app-rn-runtime/components/basic/label/label.component.js +3 -2
  62. app-rn-runtime/components/basic/label/label.component.js.map +1 -1
  63. app-rn-runtime/components/basic/label/label.props.js.map +1 -1
  64. app-rn-runtime/components/basic/label/label.styles.js +8 -0
  65. app-rn-runtime/components/basic/label/label.styles.js.map +1 -1
  66. app-rn-runtime/components/basic/lottie/lottie.component.js +137 -0
  67. app-rn-runtime/components/basic/lottie/lottie.component.js.map +1 -0
  68. app-rn-runtime/components/basic/lottie/lottie.props.js +14 -0
  69. app-rn-runtime/components/basic/lottie/lottie.props.js.map +1 -0
  70. app-rn-runtime/components/basic/lottie/lottie.styles.js +11 -0
  71. app-rn-runtime/components/basic/lottie/lottie.styles.js.map +1 -0
  72. app-rn-runtime/components/basic/message/message.component.js +1 -1
  73. app-rn-runtime/components/basic/message/message.component.js.map +1 -1
  74. app-rn-runtime/components/basic/message/message.props.js.map +1 -1
  75. app-rn-runtime/components/basic/message/message.styles.js +22 -0
  76. app-rn-runtime/components/basic/message/message.styles.js.map +1 -1
  77. app-rn-runtime/components/basic/modal/modal.component.js.map +1 -1
  78. app-rn-runtime/components/basic/modal/modal.props.js.map +1 -1
  79. app-rn-runtime/components/basic/modal/modal.styles.js.map +1 -1
  80. app-rn-runtime/components/basic/picture/picture.component.js +40 -29
  81. app-rn-runtime/components/basic/picture/picture.component.js.map +1 -1
  82. app-rn-runtime/components/basic/picture/picture.props.js.map +1 -1
  83. app-rn-runtime/components/basic/picture/picture.styles.js.map +1 -1
  84. app-rn-runtime/components/basic/progress-bar/progress-bar.component.js +3 -2
  85. app-rn-runtime/components/basic/progress-bar/progress-bar.component.js.map +1 -1
  86. app-rn-runtime/components/basic/progress-bar/progress-bar.props.js.map +1 -1
  87. app-rn-runtime/components/basic/progress-bar/progress-bar.styles.js.map +1 -1
  88. app-rn-runtime/components/basic/progress-circle/progress-circle.component.js +1 -1
  89. app-rn-runtime/components/basic/progress-circle/progress-circle.component.js.map +1 -1
  90. app-rn-runtime/components/basic/progress-circle/progress-circle.props.js.map +1 -1
  91. app-rn-runtime/components/basic/progress-circle/progress-circle.styles.js.map +1 -1
  92. app-rn-runtime/components/basic/search/local-data-provider.js.map +1 -1
  93. app-rn-runtime/components/basic/search/search.component.js +5 -2
  94. app-rn-runtime/components/basic/search/search.component.js.map +1 -1
  95. app-rn-runtime/components/basic/search/search.props.js +1 -0
  96. app-rn-runtime/components/basic/search/search.props.js.map +1 -1
  97. app-rn-runtime/components/basic/search/search.styles.js +47 -0
  98. app-rn-runtime/components/basic/search/search.styles.js.map +1 -1
  99. app-rn-runtime/components/basic/skeleton/skeleton.component.js.map +1 -1
  100. app-rn-runtime/components/basic/spinner/spinner.component.js +13 -11
  101. app-rn-runtime/components/basic/spinner/spinner.component.js.map +1 -1
  102. app-rn-runtime/components/basic/spinner/spinner.props.js.map +1 -1
  103. app-rn-runtime/components/basic/spinner/spinner.styles.js +8 -0
  104. app-rn-runtime/components/basic/spinner/spinner.styles.js.map +1 -1
  105. app-rn-runtime/components/basic/video/video.component.js +56 -0
  106. app-rn-runtime/components/basic/video/video.component.js.map +1 -0
  107. app-rn-runtime/components/basic/video/video.props.js +22 -0
  108. app-rn-runtime/components/basic/video/video.props.js.map +1 -0
  109. app-rn-runtime/components/basic/video/video.styles.js +11 -0
  110. app-rn-runtime/components/basic/video/video.styles.js.map +1 -0
  111. app-rn-runtime/components/chart/area-chart/area-chart.component.js.map +1 -1
  112. app-rn-runtime/components/chart/bar-chart/bar-chart.component.js.map +1 -1
  113. app-rn-runtime/components/chart/bar-chart/bar-chart.props.js.map +1 -1
  114. app-rn-runtime/components/chart/basechart.component.js.map +1 -1
  115. app-rn-runtime/components/chart/basechart.props.js +1 -0
  116. app-rn-runtime/components/chart/basechart.props.js.map +1 -1
  117. app-rn-runtime/components/chart/basechart.styles.js +17 -0
  118. app-rn-runtime/components/chart/basechart.styles.js.map +1 -1
  119. app-rn-runtime/components/chart/bubble-chart/bubble-chart.component.js.map +1 -1
  120. app-rn-runtime/components/chart/column-chart/column-chart.component.js.map +1 -1
  121. app-rn-runtime/components/chart/donut-chart/donut-chart.component.js.map +1 -1
  122. app-rn-runtime/components/chart/donut-chart/donut-chart.props.js +0 -1
  123. app-rn-runtime/components/chart/donut-chart/donut-chart.props.js.map +1 -1
  124. app-rn-runtime/components/chart/legend/legend.component.js +36 -0
  125. app-rn-runtime/components/chart/legend/legend.component.js.map +1 -0
  126. app-rn-runtime/components/chart/line-chart/line-chart.component.js.map +1 -1
  127. app-rn-runtime/components/chart/line-chart/line-chart.props.js.map +1 -1
  128. app-rn-runtime/components/chart/pie-chart/pie-chart.component.js +119 -40
  129. app-rn-runtime/components/chart/pie-chart/pie-chart.component.js.map +1 -1
  130. app-rn-runtime/components/chart/pie-chart/pie-chart.props.js +1 -2
  131. app-rn-runtime/components/chart/pie-chart/pie-chart.props.js.map +1 -1
  132. app-rn-runtime/components/chart/theme/chart.theme.js.map +1 -1
  133. app-rn-runtime/components/container/accordion/accordion.component.js +75 -119
  134. app-rn-runtime/components/container/accordion/accordion.component.js.map +1 -1
  135. app-rn-runtime/components/container/accordion/accordion.props.js +1 -0
  136. app-rn-runtime/components/container/accordion/accordion.props.js.map +1 -1
  137. app-rn-runtime/components/container/accordion/accordion.styles.js +14 -4
  138. app-rn-runtime/components/container/accordion/accordion.styles.js.map +1 -1
  139. app-rn-runtime/components/container/accordion/accordionpane/accordionpane.component.js +49 -8
  140. app-rn-runtime/components/container/accordion/accordionpane/accordionpane.component.js.map +1 -1
  141. app-rn-runtime/components/container/accordion/accordionpane/accordionpane.props.js.map +1 -1
  142. app-rn-runtime/components/container/container.component.js +1 -1
  143. app-rn-runtime/components/container/container.component.js.map +1 -1
  144. app-rn-runtime/components/container/container.props.js.map +1 -1
  145. app-rn-runtime/components/container/container.styles.js.map +1 -1
  146. app-rn-runtime/components/container/layoutgrid/gridcolumn/gridcolumn.component.js +1 -1
  147. app-rn-runtime/components/container/layoutgrid/gridcolumn/gridcolumn.component.js.map +1 -1
  148. app-rn-runtime/components/container/layoutgrid/gridcolumn/gridcolumn.props.js.map +1 -1
  149. app-rn-runtime/components/container/layoutgrid/gridrow/gridrow.component.js +1 -1
  150. app-rn-runtime/components/container/layoutgrid/gridrow/gridrow.component.js.map +1 -1
  151. app-rn-runtime/components/container/layoutgrid/gridrow/gridrow.props.js.map +1 -1
  152. app-rn-runtime/components/container/layoutgrid/layoutgrid.component.js +1 -1
  153. app-rn-runtime/components/container/layoutgrid/layoutgrid.component.js.map +1 -1
  154. app-rn-runtime/components/container/layoutgrid/layoutgrid.props.js.map +1 -1
  155. app-rn-runtime/components/container/layoutgrid/layoutgrid.styles.js.map +1 -1
  156. app-rn-runtime/components/container/linearlayout/linearlayout.component.js +1 -1
  157. app-rn-runtime/components/container/linearlayout/linearlayout.component.js.map +1 -1
  158. app-rn-runtime/components/container/linearlayout/linearlayout.props.js.map +1 -1
  159. app-rn-runtime/components/container/linearlayout/linearlayoutitem/linearlayoutitem.component.js +1 -1
  160. app-rn-runtime/components/container/linearlayout/linearlayoutitem/linearlayoutitem.component.js.map +1 -1
  161. app-rn-runtime/components/container/linearlayout/linearlayoutitem/linearlayoutitem.props.js.map +1 -1
  162. app-rn-runtime/components/container/panel/panel-content/panel-content.component.js +1 -1
  163. app-rn-runtime/components/container/panel/panel-content/panel-content.component.js.map +1 -1
  164. app-rn-runtime/components/container/panel/panel-content/panel-content.props.js.map +1 -1
  165. app-rn-runtime/components/container/panel/panel-footer/panel-footer.component.js +1 -1
  166. app-rn-runtime/components/container/panel/panel-footer/panel-footer.component.js.map +1 -1
  167. app-rn-runtime/components/container/panel/panel-footer/panel-footer.props.js.map +1 -1
  168. app-rn-runtime/components/container/panel/panel.component.js +1 -1
  169. app-rn-runtime/components/container/panel/panel.component.js.map +1 -1
  170. app-rn-runtime/components/container/panel/panel.props.js.map +1 -1
  171. app-rn-runtime/components/container/panel/panel.styles.js +9 -0
  172. app-rn-runtime/components/container/panel/panel.styles.js.map +1 -1
  173. app-rn-runtime/components/container/partial-host.component.js.map +1 -1
  174. app-rn-runtime/components/container/tabs/tabheader/tabheader.component.js +42 -9
  175. app-rn-runtime/components/container/tabs/tabheader/tabheader.component.js.map +1 -1
  176. app-rn-runtime/components/container/tabs/tabheader/tabheader.props.js.map +1 -1
  177. app-rn-runtime/components/container/tabs/tabheader/tabheader.styles.js +12 -2
  178. app-rn-runtime/components/container/tabs/tabheader/tabheader.styles.js.map +1 -1
  179. app-rn-runtime/components/container/tabs/tabpane/tabpane.component.js +5 -2
  180. app-rn-runtime/components/container/tabs/tabpane/tabpane.component.js.map +1 -1
  181. app-rn-runtime/components/container/tabs/tabpane/tabpane.props.js.map +1 -1
  182. app-rn-runtime/components/container/tabs/tabs.component.js +84 -65
  183. app-rn-runtime/components/container/tabs/tabs.component.js.map +1 -1
  184. app-rn-runtime/components/container/tabs/tabs.props.js +1 -0
  185. app-rn-runtime/components/container/tabs/tabs.props.js.map +1 -1
  186. app-rn-runtime/components/container/tabs/tabs.styles.js +40 -1
  187. app-rn-runtime/components/container/tabs/tabs.styles.js.map +1 -1
  188. app-rn-runtime/components/container/tile/tile.component.js +1 -1
  189. app-rn-runtime/components/container/tile/tile.component.js.map +1 -1
  190. app-rn-runtime/components/container/tile/tile.props.js.map +1 -1
  191. app-rn-runtime/components/container/tile/tile.styles.js.map +1 -1
  192. app-rn-runtime/components/container/wizard/wizard.component.js +16 -7
  193. app-rn-runtime/components/container/wizard/wizard.component.js.map +1 -1
  194. app-rn-runtime/components/container/wizard/wizard.props.js.map +1 -1
  195. app-rn-runtime/components/container/wizard/wizard.styles.js +53 -1
  196. app-rn-runtime/components/container/wizard/wizard.styles.js.map +1 -1
  197. app-rn-runtime/components/container/wizard/wizardstep/wizardstep.component.js +1 -1
  198. app-rn-runtime/components/container/wizard/wizardstep/wizardstep.component.js.map +1 -1
  199. app-rn-runtime/components/container/wizard/wizardstep/wizardstep.props.js.map +1 -1
  200. app-rn-runtime/components/data/card/card-content/card-content.component.js +1 -1
  201. app-rn-runtime/components/data/card/card-content/card-content.component.js.map +1 -1
  202. app-rn-runtime/components/data/card/card-content/card-content.props.js.map +1 -1
  203. app-rn-runtime/components/data/card/card-footer/card-footer.component.js +1 -1
  204. app-rn-runtime/components/data/card/card-footer/card-footer.component.js.map +1 -1
  205. app-rn-runtime/components/data/card/card-footer/card-footer.props.js.map +1 -1
  206. app-rn-runtime/components/data/card/card.component.js +1 -1
  207. app-rn-runtime/components/data/card/card.component.js.map +1 -1
  208. app-rn-runtime/components/data/card/card.props.js.map +1 -1
  209. app-rn-runtime/components/data/form/form-action/form-action.component.js +0 -6
  210. app-rn-runtime/components/data/form/form-action/form-action.component.js.map +1 -1
  211. app-rn-runtime/components/data/form/form-action/form-action.props.js.map +1 -1
  212. app-rn-runtime/components/data/form/form-action/form-action.styles.js.map +1 -1
  213. app-rn-runtime/components/data/form/form-body/form-body.component.js +1 -1
  214. app-rn-runtime/components/data/form/form-body/form-body.component.js.map +1 -1
  215. app-rn-runtime/components/data/form/form-body/form-body.props.js.map +1 -1
  216. app-rn-runtime/components/data/form/form-field/form-field.component.js +3 -3
  217. app-rn-runtime/components/data/form/form-field/form-field.component.js.map +1 -1
  218. app-rn-runtime/components/data/form/form-field/form-field.props.js.map +1 -1
  219. app-rn-runtime/components/data/form/form-field/form-field.styles.js.map +1 -1
  220. app-rn-runtime/components/data/form/form-footer/form-footer.component.js +1 -1
  221. app-rn-runtime/components/data/form/form-footer/form-footer.component.js.map +1 -1
  222. app-rn-runtime/components/data/form/form-footer/form-footer.props.js.map +1 -1
  223. app-rn-runtime/components/data/form/form.component.js +3 -33
  224. app-rn-runtime/components/data/form/form.component.js.map +1 -1
  225. app-rn-runtime/components/data/form/form.props.js.map +1 -1
  226. app-rn-runtime/components/data/form/form.styles.js.map +1 -1
  227. app-rn-runtime/components/data/list/list-template/list-template.component.js +1 -1
  228. app-rn-runtime/components/data/list/list-template/list-template.component.js.map +1 -1
  229. app-rn-runtime/components/data/list/list-template/list-template.props.js.map +1 -1
  230. app-rn-runtime/components/data/list/list-template/list-template.styles.js.map +1 -1
  231. app-rn-runtime/components/data/list/list.component.js +94 -24
  232. app-rn-runtime/components/data/list/list.component.js.map +1 -1
  233. app-rn-runtime/components/data/list/list.props.js +2 -0
  234. app-rn-runtime/components/data/list/list.props.js.map +1 -1
  235. app-rn-runtime/components/data/list/list.styles.js.map +1 -1
  236. app-rn-runtime/components/device/barcodescanner/barcodescanner.component.js +3 -2
  237. app-rn-runtime/components/device/barcodescanner/barcodescanner.component.js.map +1 -1
  238. app-rn-runtime/components/device/barcodescanner/barcodescanner.props.js.map +1 -1
  239. app-rn-runtime/components/device/camera/camera.component.js +9 -4
  240. app-rn-runtime/components/device/camera/camera.component.js.map +1 -1
  241. app-rn-runtime/components/device/camera/camera.props.js +0 -1
  242. app-rn-runtime/components/device/camera/camera.props.js.map +1 -1
  243. app-rn-runtime/components/dialogs/alertdialog/alertdialog.component.js.map +1 -1
  244. app-rn-runtime/components/dialogs/alertdialog/alertdialog.props.js.map +1 -1
  245. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.component.js.map +1 -1
  246. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.props.js.map +1 -1
  247. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.styles.js +9 -0
  248. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.styles.js.map +1 -1
  249. app-rn-runtime/components/dialogs/dialog/dialog.component.js +6 -3
  250. app-rn-runtime/components/dialogs/dialog/dialog.component.js.map +1 -1
  251. app-rn-runtime/components/dialogs/dialog/dialog.props.js.map +1 -1
  252. app-rn-runtime/components/dialogs/dialogactions/dialogactions.component.js +1 -1
  253. app-rn-runtime/components/dialogs/dialogactions/dialogactions.component.js.map +1 -1
  254. app-rn-runtime/components/dialogs/dialogactions/dialogactions.props.js.map +1 -1
  255. app-rn-runtime/components/dialogs/dialogcontent/dialogcontent.component.js +1 -1
  256. app-rn-runtime/components/dialogs/dialogcontent/dialogcontent.component.js.map +1 -1
  257. app-rn-runtime/components/dialogs/dialogcontent/dialogcontent.props.js.map +1 -1
  258. app-rn-runtime/components/input/basedataset/basedataset.component.js.map +1 -1
  259. app-rn-runtime/components/input/basedataset/basedataset.props.js.map +1 -1
  260. app-rn-runtime/components/input/baseinput/baseinput.component.js +8 -1
  261. app-rn-runtime/components/input/baseinput/baseinput.component.js.map +1 -1
  262. app-rn-runtime/components/input/baseinput/baseinput.props.js.map +1 -1
  263. app-rn-runtime/components/input/basenumber/basenumber.component.js +1 -1
  264. app-rn-runtime/components/input/basenumber/basenumber.component.js.map +1 -1
  265. app-rn-runtime/components/input/basenumber/basenumber.props.js.map +1 -1
  266. app-rn-runtime/components/input/calendar/calendar.component.js +1 -1
  267. app-rn-runtime/components/input/calendar/calendar.component.js.map +1 -1
  268. app-rn-runtime/components/input/calendar/calendar.props.js.map +1 -1
  269. app-rn-runtime/components/input/calendar/calendar.styles.js +22 -0
  270. app-rn-runtime/components/input/calendar/calendar.styles.js.map +1 -1
  271. app-rn-runtime/components/input/calendar/views/month-view.js +1 -0
  272. app-rn-runtime/components/input/calendar/views/month-view.js.map +1 -1
  273. app-rn-runtime/components/input/checkbox/checkbox.component.js +1 -16
  274. app-rn-runtime/components/input/checkbox/checkbox.component.js.map +1 -1
  275. app-rn-runtime/components/input/checkbox/checkbox.props.js.map +1 -1
  276. app-rn-runtime/components/input/checkboxset/checkboxset.component.js +0 -38
  277. app-rn-runtime/components/input/checkboxset/checkboxset.component.js.map +1 -1
  278. app-rn-runtime/components/input/checkboxset/checkboxset.props.js.map +1 -1
  279. app-rn-runtime/components/input/chips/chips.component.js +1 -0
  280. app-rn-runtime/components/input/chips/chips.component.js.map +1 -1
  281. app-rn-runtime/components/input/chips/chips.props.js.map +1 -1
  282. app-rn-runtime/components/input/composite/composite.component.js +1 -1
  283. app-rn-runtime/components/input/composite/composite.component.js.map +1 -1
  284. app-rn-runtime/components/input/composite/composite.props.js.map +1 -1
  285. app-rn-runtime/components/input/currency/currency.component.js +6 -4
  286. app-rn-runtime/components/input/currency/currency.component.js.map +1 -1
  287. app-rn-runtime/components/input/currency/currency.props.js +1 -1
  288. app-rn-runtime/components/input/currency/currency.props.js.map +1 -1
  289. app-rn-runtime/components/input/currency/currency.styles.js +9 -0
  290. app-rn-runtime/components/input/currency/currency.styles.js.map +1 -1
  291. app-rn-runtime/components/input/epoch/base-datetime.component.js +6 -3
  292. app-rn-runtime/components/input/epoch/base-datetime.component.js.map +1 -1
  293. app-rn-runtime/components/input/epoch/date/date.component.js.map +1 -1
  294. app-rn-runtime/components/input/epoch/date/date.props.js.map +1 -1
  295. app-rn-runtime/components/input/epoch/date/date.styles.js +9 -0
  296. app-rn-runtime/components/input/epoch/date/date.styles.js.map +1 -1
  297. app-rn-runtime/components/input/epoch/date-picker.component.js.map +1 -1
  298. app-rn-runtime/components/input/epoch/datetime/datetime.component.js.map +1 -1
  299. app-rn-runtime/components/input/epoch/datetime/datetime.props.js.map +1 -1
  300. app-rn-runtime/components/input/epoch/datetime/datetime.styles.js +9 -0
  301. app-rn-runtime/components/input/epoch/datetime/datetime.styles.js.map +1 -1
  302. app-rn-runtime/components/input/epoch/time/time.component.js.map +1 -1
  303. app-rn-runtime/components/input/epoch/time/time.props.js.map +1 -1
  304. app-rn-runtime/components/input/epoch/time/time.styles.js +9 -0
  305. app-rn-runtime/components/input/epoch/time/time.styles.js.map +1 -1
  306. app-rn-runtime/components/input/fileupload/fileupload.component.js +1 -1
  307. app-rn-runtime/components/input/fileupload/fileupload.component.js.map +1 -1
  308. app-rn-runtime/components/input/fileupload/fileupload.props.js.map +1 -1
  309. app-rn-runtime/components/input/number/number.component.js +6 -13
  310. app-rn-runtime/components/input/number/number.component.js.map +1 -1
  311. app-rn-runtime/components/input/number/number.props.js +1 -1
  312. app-rn-runtime/components/input/number/number.props.js.map +1 -1
  313. app-rn-runtime/components/input/number/number.styles.js +5 -0
  314. app-rn-runtime/components/input/number/number.styles.js.map +1 -1
  315. app-rn-runtime/components/input/radioset/radioset.component.js +0 -40
  316. app-rn-runtime/components/input/radioset/radioset.component.js.map +1 -1
  317. app-rn-runtime/components/input/radioset/radioset.props.js.map +1 -1
  318. app-rn-runtime/components/input/rating/rating.component.js +2 -2
  319. app-rn-runtime/components/input/rating/rating.component.js.map +1 -1
  320. app-rn-runtime/components/input/rating/rating.props.js.map +1 -1
  321. app-rn-runtime/components/input/select/select.component.js +1 -1
  322. app-rn-runtime/components/input/select/select.component.js.map +1 -1
  323. app-rn-runtime/components/input/select/select.props.js.map +1 -1
  324. app-rn-runtime/components/input/select/select.styles.js +10 -0
  325. app-rn-runtime/components/input/select/select.styles.js.map +1 -1
  326. app-rn-runtime/components/input/slider/slider.component.js +3 -2
  327. app-rn-runtime/components/input/slider/slider.component.js.map +1 -1
  328. app-rn-runtime/components/input/slider/slider.props.js.map +1 -1
  329. app-rn-runtime/components/input/switch/switch.component.js +19 -22
  330. app-rn-runtime/components/input/switch/switch.component.js.map +1 -1
  331. app-rn-runtime/components/input/switch/switch.props.js.map +1 -1
  332. app-rn-runtime/components/input/switch/switch.styles.js +43 -7
  333. app-rn-runtime/components/input/switch/switch.styles.js.map +1 -1
  334. app-rn-runtime/components/input/text/text.component.js +6 -13
  335. app-rn-runtime/components/input/text/text.component.js.map +1 -1
  336. app-rn-runtime/components/input/text/text.props.js.map +1 -1
  337. app-rn-runtime/components/input/text/text.styles.js +5 -0
  338. app-rn-runtime/components/input/text/text.styles.js.map +1 -1
  339. app-rn-runtime/components/input/textarea/textarea.component.js +5 -13
  340. app-rn-runtime/components/input/textarea/textarea.component.js.map +1 -1
  341. app-rn-runtime/components/input/textarea/textarea.props.js.map +1 -1
  342. app-rn-runtime/components/input/textarea/textarea.styles.js +5 -0
  343. app-rn-runtime/components/input/textarea/textarea.styles.js.map +1 -1
  344. app-rn-runtime/components/input/toggle/toggle.component.js +17 -11
  345. app-rn-runtime/components/input/toggle/toggle.component.js.map +1 -1
  346. app-rn-runtime/components/input/toggle/toggle.props.js.map +1 -1
  347. app-rn-runtime/components/input/toggle/toggle.styles.js +28 -3
  348. app-rn-runtime/components/input/toggle/toggle.styles.js.map +1 -1
  349. app-rn-runtime/components/navigation/appnavbar/appnavbar.component.js +1 -1
  350. app-rn-runtime/components/navigation/appnavbar/appnavbar.component.js.map +1 -1
  351. app-rn-runtime/components/navigation/appnavbar/appnavbar.props.js.map +1 -1
  352. app-rn-runtime/components/navigation/appnavbar/appnavbar.styles.js.map +1 -1
  353. app-rn-runtime/components/navigation/basenav/basenav.component.js.map +1 -1
  354. app-rn-runtime/components/navigation/basenav/basenav.props.js +1 -0
  355. app-rn-runtime/components/navigation/basenav/basenav.props.js.map +1 -1
  356. app-rn-runtime/components/navigation/menu/menu.component.js +2 -1
  357. app-rn-runtime/components/navigation/menu/menu.component.js.map +1 -1
  358. app-rn-runtime/components/navigation/menu/menu.props.js.map +1 -1
  359. app-rn-runtime/components/navigation/menu/menu.styles.js +6 -0
  360. app-rn-runtime/components/navigation/menu/menu.styles.js.map +1 -1
  361. app-rn-runtime/components/navigation/navbar/navbar.component.js +2 -0
  362. app-rn-runtime/components/navigation/navbar/navbar.component.js.map +1 -1
  363. app-rn-runtime/components/navigation/navbar/navbar.props.js.map +1 -1
  364. app-rn-runtime/components/navigation/navbar/navbar.styles.js.map +1 -1
  365. app-rn-runtime/components/navigation/navitem/navitem.component.js +4 -3
  366. app-rn-runtime/components/navigation/navitem/navitem.component.js.map +1 -1
  367. app-rn-runtime/components/navigation/navitem/navitem.props.js +1 -0
  368. app-rn-runtime/components/navigation/navitem/navitem.props.js.map +1 -1
  369. app-rn-runtime/components/navigation/navitem/navitem.styles.js.map +1 -1
  370. app-rn-runtime/components/navigation/popover/popover.component.js +1 -1
  371. app-rn-runtime/components/navigation/popover/popover.component.js.map +1 -1
  372. app-rn-runtime/components/navigation/popover/popover.props.js.map +1 -1
  373. app-rn-runtime/components/navigation/popover/popover.styles.js.map +1 -1
  374. app-rn-runtime/components/page/content/content.component.js +1 -1
  375. app-rn-runtime/components/page/content/content.component.js.map +1 -1
  376. app-rn-runtime/components/page/left-panel/left-panel.component.js +1 -1
  377. app-rn-runtime/components/page/left-panel/left-panel.component.js.map +1 -1
  378. app-rn-runtime/components/page/left-panel/left-panel.props.js.map +1 -1
  379. app-rn-runtime/components/page/page-content/page-content.component.js +2 -2
  380. app-rn-runtime/components/page/page-content/page-content.component.js.map +1 -1
  381. app-rn-runtime/components/page/page-content/page-content.props.js.map +1 -1
  382. app-rn-runtime/components/page/page.component.js +1 -1
  383. app-rn-runtime/components/page/page.component.js.map +1 -1
  384. app-rn-runtime/components/page/partial/partial.component.js +1 -1
  385. app-rn-runtime/components/page/partial/partial.component.js.map +1 -1
  386. app-rn-runtime/components/page/partial-container/partial-container.component.js +1 -1
  387. app-rn-runtime/components/page/partial-container/partial-container.component.js.map +1 -1
  388. app-rn-runtime/components/page/partial-container/partial-container.props.js.map +1 -1
  389. app-rn-runtime/components/page/partial-container/partial-container.styles.js +2 -1
  390. app-rn-runtime/components/page/partial-container/partial-container.styles.js.map +1 -1
  391. app-rn-runtime/components/page/tabbar/tabbar.component.js +2 -1
  392. app-rn-runtime/components/page/tabbar/tabbar.component.js.map +1 -1
  393. app-rn-runtime/components/page/tabbar/tabbar.props.js.map +1 -1
  394. app-rn-runtime/components/prefab/prefab-container.component.js +1 -1
  395. app-rn-runtime/components/prefab/prefab-container.component.js.map +1 -1
  396. app-rn-runtime/core/asset.provider.js +5 -0
  397. app-rn-runtime/core/asset.provider.js.map +1 -0
  398. app-rn-runtime/core/base.component.js +131 -54
  399. app-rn-runtime/core/base.component.js.map +1 -1
  400. app-rn-runtime/core/components/textinput.component.js +37 -0
  401. app-rn-runtime/core/components/textinput.component.js.map +1 -0
  402. app-rn-runtime/core/device/camera-service.js.map +1 -1
  403. app-rn-runtime/core/device/scan-service.js.map +1 -1
  404. app-rn-runtime/core/display.manager.js.map +1 -1
  405. app-rn-runtime/core/event-notifier.js.map +1 -1
  406. app-rn-runtime/core/fixed-view.component.js.map +1 -1
  407. app-rn-runtime/core/formatters.js.map +1 -1
  408. app-rn-runtime/core/i18n.service.js +2 -0
  409. app-rn-runtime/core/i18n.service.js.map +1 -0
  410. app-rn-runtime/core/if.component.js +3 -3
  411. app-rn-runtime/core/if.component.js.map +1 -1
  412. app-rn-runtime/core/imageSizeEstimator.js +1 -0
  413. app-rn-runtime/core/imageSizeEstimator.js.map +1 -1
  414. app-rn-runtime/core/injector.js +16 -1
  415. app-rn-runtime/core/injector.js.map +1 -1
  416. app-rn-runtime/core/logger.js +4 -1
  417. app-rn-runtime/core/logger.js.map +1 -1
  418. app-rn-runtime/core/modal.service.js.map +1 -1
  419. app-rn-runtime/core/navigation.service.js.map +1 -1
  420. app-rn-runtime/core/network.service.js +17 -15
  421. app-rn-runtime/core/network.service.js.map +1 -1
  422. app-rn-runtime/core/partial.service.js.map +1 -1
  423. app-rn-runtime/core/props.provider.js.map +1 -1
  424. app-rn-runtime/core/scroll-view.component.js.map +1 -1
  425. app-rn-runtime/core/security.service.js.map +1 -1
  426. app-rn-runtime/core/spinner.service.js.map +1 -1
  427. app-rn-runtime/core/storage.service.js.map +1 -1
  428. app-rn-runtime/core/tappable.component.js +20 -4
  429. app-rn-runtime/core/tappable.component.js.map +1 -1
  430. app-rn-runtime/core/toast.service.js.map +1 -1
  431. app-rn-runtime/core/utils.js +24 -0
  432. app-rn-runtime/core/utils.js.map +1 -1
  433. app-rn-runtime/core/viewport.js.map +1 -1
  434. app-rn-runtime/gestures/swipe.animation.js +110 -0
  435. app-rn-runtime/gestures/swipe.animation.js.map +1 -0
  436. app-rn-runtime/package.json +33 -32
  437. app-rn-runtime/runtime/App.js +38 -22
  438. app-rn-runtime/runtime/App.js.map +1 -1
  439. app-rn-runtime/runtime/App.navigator.js +13 -14
  440. app-rn-runtime/runtime/App.navigator.js.map +1 -1
  441. app-rn-runtime/runtime/base-fragment.component.js +12 -10
  442. app-rn-runtime/runtime/base-fragment.component.js.map +1 -1
  443. app-rn-runtime/runtime/base-page.component.js +2 -0
  444. app-rn-runtime/runtime/base-page.component.js.map +1 -1
  445. app-rn-runtime/runtime/base-partial.component.js.map +1 -1
  446. app-rn-runtime/runtime/base-prefab.component.js +1 -5
  447. app-rn-runtime/runtime/base-prefab.component.js.map +1 -1
  448. app-rn-runtime/runtime/lib-patch.js.map +1 -1
  449. app-rn-runtime/runtime/memo.component.js.map +1 -1
  450. app-rn-runtime/runtime/navigator/drawer.navigator.js +4 -0
  451. app-rn-runtime/runtime/navigator/drawer.navigator.js.map +1 -1
  452. app-rn-runtime/runtime/navigator/stack.navigator.js +5 -1
  453. app-rn-runtime/runtime/navigator/stack.navigator.js.map +1 -1
  454. app-rn-runtime/runtime/services/app-display-manager.service.js.map +1 -1
  455. app-rn-runtime/runtime/services/app-i18n.service.js +20 -0
  456. app-rn-runtime/runtime/services/app-i18n.service.js.map +1 -1
  457. app-rn-runtime/runtime/services/app-modal.service.js.map +1 -1
  458. app-rn-runtime/runtime/services/app-security.service.js +7 -7
  459. app-rn-runtime/runtime/services/app-security.service.js.map +1 -1
  460. app-rn-runtime/runtime/services/app-spinner.service.js +8 -3
  461. app-rn-runtime/runtime/services/app-spinner.service.js.map +1 -1
  462. app-rn-runtime/runtime/services/app-toast.service.js +1 -1
  463. app-rn-runtime/runtime/services/app-toast.service.js.map +1 -1
  464. app-rn-runtime/runtime/services/device/calendar-service.js.map +1 -1
  465. app-rn-runtime/runtime/services/device/camera-service.js +30 -9
  466. app-rn-runtime/runtime/services/device/camera-service.js.map +1 -1
  467. app-rn-runtime/runtime/services/device/contacts-service.js.map +1 -1
  468. app-rn-runtime/runtime/services/device/location-service.js.map +1 -1
  469. app-rn-runtime/runtime/services/device/permissions.js.map +1 -1
  470. app-rn-runtime/runtime/services/device/scan-service.js +15 -14
  471. app-rn-runtime/runtime/services/device/scan-service.js.map +1 -1
  472. app-rn-runtime/runtime/services/partial.service.js.map +1 -1
  473. app-rn-runtime/runtime/services/webprocess.service.js.map +1 -1
  474. app-rn-runtime/runtime/watcher.js.map +1 -1
  475. app-rn-runtime/styles/MediaQueryList.js.map +1 -1
  476. app-rn-runtime/styles/background.component.js +298 -0
  477. app-rn-runtime/styles/background.component.js.map +1 -0
  478. app-rn-runtime/styles/style-prop.validator.js +42 -8
  479. app-rn-runtime/styles/style-prop.validator.js.map +1 -1
  480. app-rn-runtime/styles/style-props.js +93 -0
  481. app-rn-runtime/styles/style-props.js.map +1 -0
  482. app-rn-runtime/styles/theme.js +14 -40
  483. app-rn-runtime/styles/theme.js.map +1 -1
  484. app-rn-runtime/styles/theme.variables.js +55 -1
  485. app-rn-runtime/styles/theme.variables.js.map +1 -1
  486. app-rn-runtime/variables/base-variable.js +3 -3
  487. app-rn-runtime/variables/base-variable.js.map +1 -1
  488. app-rn-runtime/variables/device/calendar/create-event.operation.js.map +1 -1
  489. app-rn-runtime/variables/device/calendar/delete-event.operation.js.map +1 -1
  490. app-rn-runtime/variables/device/calendar/get-events.operation.js.map +1 -1
  491. app-rn-runtime/variables/device/camera/capture-image.operation.js.map +1 -1
  492. app-rn-runtime/variables/device/camera/capture-video.operation.js.map +1 -1
  493. app-rn-runtime/variables/device/contacts/get-contacts.operation.js.map +1 -1
  494. app-rn-runtime/variables/device/device/app-info.operation.js.map +1 -1
  495. app-rn-runtime/variables/device/device/current-geo-position.operation.js.map +1 -1
  496. app-rn-runtime/variables/device/device/device-info.operation.js.map +1 -1
  497. app-rn-runtime/variables/device/device/network-info.operation.js.map +1 -1
  498. app-rn-runtime/variables/device/device/vibrate.operation.js.map +1 -1
  499. app-rn-runtime/variables/device/file/upload-file.operation.js +43 -21
  500. app-rn-runtime/variables/device/file/upload-file.operation.js.map +1 -1
  501. app-rn-runtime/variables/device/operation.provider.js.map +1 -1
  502. app-rn-runtime/variables/device/scan/scan.operation.js.map +1 -1
  503. app-rn-runtime/variables/device-variable.js.map +1 -1
  504. app-rn-runtime/variables/http.service.js +4 -13
  505. app-rn-runtime/variables/http.service.js.map +1 -1
  506. app-rn-runtime/variables/model-variable.js.map +1 -1
  507. app-rn-runtime/variables/service-variable.js +27 -11
  508. app-rn-runtime/variables/service-variable.js.map +1 -1
  509. app-rn-runtime/variables/utils/dataset-util.js.map +1 -1
  510. app-rn-runtime/variables/utils/inflight-queue.js.map +1 -1
  511. app-rn-runtime/variables/utils/variable.utils.js.map +1 -1
@@ -5,9 +5,26 @@ BASE_THEME.registerStyle((themeVariables, addStyle) => {
5
5
  const defaultStyles = defineStyles({
6
6
  root: {},
7
7
  text: {},
8
+ icon: {
9
+ icon: {
10
+ fontSize: 20
11
+ }
12
+ },
8
13
  line: {
9
14
  color: themeVariables.chartLineColor
10
15
  },
16
+ title: {
17
+ color: themeVariables.chartTitleColor,
18
+ fontSize: 20,
19
+ lineHeight: 24
20
+ },
21
+ subHeading: {
22
+ fontSize: 12,
23
+ lineHeight: 16,
24
+ color: themeVariables.chartSubTitleColor
25
+ },
26
+ legendText: {},
27
+ legenedDot: {},
11
28
  grid: {},
12
29
  barChart: {}
13
30
  });
@@ -1 +1 @@
1
- {"version":3,"names":["BASE_THEME","defineStyles","DEFAULT_CLASS","registerStyle","themeVariables","addStyle","defaultStyles","root","text","line","color","chartLineColor","grid","barChart"],"sources":["basechart.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 { VictoryStyleObject } from \"victory-core\";\n\n\nexport type BaseChartComponentStyles = BaseStyles & {\n grid: VictoryStyleObject\n};\n\nexport const DEFAULT_CLASS = 'app-chart';\nBASE_THEME.registerStyle((themeVariables, addStyle) => {\n const defaultStyles: BaseChartComponentStyles = defineStyles({\n root: {},\n text: {},\n line: {\n color: themeVariables.chartLineColor\n },\n grid: {},\n barChart: {}\n });\n\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,WAAW;AACxCF,UAAU,CAACG,aAAa,CAAC,CAACC,cAAc,EAAEC,QAAQ,KAAK;EACrD,MAAMC,aAAuC,GAAGL,YAAY,CAAC;IAC3DM,IAAI,EAAE,CAAC,CAAC;IACRC,IAAI,EAAE,CAAC,CAAC;IACRC,IAAI,EAAE;MACJC,KAAK,EAAEN,cAAc,CAACO;IACxB,CAAC;IACDC,IAAI,EAAE,CAAC,CAAC;IACRC,QAAQ,EAAE,CAAC;EACb,CAAC,CAAC;EAEFR,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","text","icon","fontSize","line","color","chartLineColor","title","chartTitleColor","lineHeight","subHeading","chartSubTitleColor","legendText","legenedDot","grid","barChart"],"sources":["basechart.styles.ts"],"sourcesContent":["import { TextStyle, ViewStyle } from 'react-native';\nimport BASE_THEME from '@wavemaker/app-rn-runtime/styles/theme';\nimport { BaseStyles, defineStyles } from '@wavemaker/app-rn-runtime/core/base.component';\nimport { VictoryStyleObject } from \"victory-core\";\nimport { WmIconStyles } from '@wavemaker/app-rn-runtime/components/basic/icon/icon.styles';\n\n\nexport type BaseChartComponentStyles = BaseStyles & {\n title: TextStyle,\n icon: WmIconStyles,\n subHeading: TextStyle,\n grid: VictoryStyleObject,\n legendText: TextStyle,\n legenedDot: ViewStyle \n};\n\nexport const DEFAULT_CLASS = 'app-chart';\nBASE_THEME.registerStyle((themeVariables, addStyle) => {\n const defaultStyles: BaseChartComponentStyles = defineStyles({\n root: {},\n text: {},\n icon: {\n icon: {\n fontSize: 20\n }\n } as WmIconStyles,\n line: {\n color: themeVariables.chartLineColor\n },\n title: {\n color: themeVariables.chartTitleColor,\n fontSize: 20,\n lineHeight: 24,\n },\n subHeading: {\n fontSize: 12,\n lineHeight: 16,\n color: themeVariables.chartSubTitleColor\n },\n legendText: {},\n legenedDot: {},\n grid: {},\n barChart: {}\n });\n\n addStyle(DEFAULT_CLASS, '', defaultStyles);\n});\n"],"mappings":"AACA,OAAOA,UAAU,MAAM,wCAAwC;AAC/D,SAAqBC,YAAY,QAAQ,+CAA+C;AAcxF,OAAO,MAAMC,aAAa,GAAG,WAAW;AACxCF,UAAU,CAACG,aAAa,CAAC,CAACC,cAAc,EAAEC,QAAQ,KAAK;EACrD,MAAMC,aAAuC,GAAGL,YAAY,CAAC;IAC3DM,IAAI,EAAE,CAAC,CAAC;IACRC,IAAI,EAAE,CAAC,CAAC;IACRC,IAAI,EAAE;MACJA,IAAI,EAAE;QACJC,QAAQ,EAAE;MACZ;IACF,CAAiB;IACjBC,IAAI,EAAE;MACJC,KAAK,EAAER,cAAc,CAACS;IACxB,CAAC;IACDC,KAAK,EAAE;MACLF,KAAK,EAAER,cAAc,CAACW,eAAe;MACrCL,QAAQ,EAAE,EAAE;MACZM,UAAU,EAAE;IACd,CAAC;IACDC,UAAU,EAAE;MACVP,QAAQ,EAAE,EAAE;MACZM,UAAU,EAAE,EAAE;MACdJ,KAAK,EAAER,cAAc,CAACc;IACxB,CAAC;IACDC,UAAU,EAAE,CAAC,CAAC;IACdC,UAAU,EAAE,CAAC,CAAC;IACdC,IAAI,EAAE,CAAC,CAAC;IACRC,QAAQ,EAAE,CAAC;EACb,CAAC,CAAC;EAEFjB,QAAQ,CAACH,aAAa,EAAE,EAAE,EAAEI,aAAa,CAAC;AAC5C,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"names":["React","View","WmBubbleChartProps","DEFAULT_CLASS","BaseChartComponent","BaseChartComponentState","VictoryChart","VictoryLegend","VictoryScatter","Svg","WmBubbleChartState","WmBubbleChart","constructor","props","renderWidget","state","data","length","styles","root","theme","height","width","screenWidth","top","offsettop","bottom","offsetbottom","left","offsetleft","right","offsetright","title","subheading","getLegendView","getXaxis","getYAxis","map","d","i","colors","fill","opacity","datum","name"],"sources":["bubble-chart.component.tsx"],"sourcesContent":["import React from 'react';\nimport {Text, View} from 'react-native';\nimport { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';\n\nimport WmBubbleChartProps from './bubble-chart.props';\nimport { DEFAULT_CLASS, WmBubbleChartStyles } from './bubble-chart.styles';\nimport {\n BaseChartComponent,\n BaseChartComponentState\n} from \"@wavemaker/app-rn-runtime/components/chart/basechart.component\";\nimport {VictoryAxis, VictoryChart, VictoryLegend, VictoryLine, VictoryScatter} from \"victory-native\";\nimport { ScatterSymbolType } from \"victory-core\";\nimport {Svg} from \"react-native-svg\";\nimport {get} from \"lodash-es\";\n\nexport class WmBubbleChartState extends BaseChartComponentState<WmBubbleChartProps> {}\n\nexport default class WmBubbleChart extends BaseChartComponent<WmBubbleChartProps, WmBubbleChartState, WmBubbleChartStyles> {\n\n constructor(props: WmBubbleChartProps) {\n super(props, DEFAULT_CLASS, new WmBubbleChartProps(), new WmBubbleChartState());\n }\n\n renderWidget(props: WmBubbleChartProps) {\n if (!this.state.data?.length) {\n return null;\n }\n return (<View\n style={this.styles.root}\n >\n <VictoryChart\n theme={this.state.theme}\n height={this.styles.root.height as number}\n width={this.styles.root.width as number || this.screenWidth}\n padding={{ top: props.offsettop, bottom: props.offsetbottom, left: props.offsetleft, right: props.offsetright }}\n >\n <VictoryLegend\n name={'legend'}\n containerComponent={<Svg />}\n title={[props.title, props.subheading]}\n orientation=\"horizontal\"\n gutter={20}\n data={[]}\n theme={this.state.theme}\n />\n {this.getLegendView()}\n {this.getXaxis()}\n {this.getYAxis()}\n {this.state.data.map((d: any, i: number) => {\n return <VictoryScatter\n colorScale={this.state.colors}\n style={{\n data: { fill: this.state.colors[i], opacity: ({ datum }) => datum.opacity }\n }}\n key={props.name + '_bubble_' + i}\n name={props.name + '_bubble_' + i}\n data={d}\n size={5}\n />\n })}\n </VictoryChart></View>);\n }\n}\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAAcC,IAAI,QAAO,cAAc;AAGvC,OAAOC,kBAAkB,MAAM,sBAAsB;AACrD,SAASC,aAAa,QAA6B,uBAAuB;AAC1E,SACEC,kBAAkB,EAClBC,uBAAuB,QAClB,gEAAgE;AACvE,SAAqBC,YAAY,EAAEC,aAAa,EAAeC,cAAc,QAAO,gBAAgB;AAEpG,SAAQC,GAAG,QAAO,kBAAkB;AAGpC,OAAO,MAAMC,kBAAkB,SAASL,uBAAuB,CAAqB;AAEpF,eAAe,MAAMM,aAAa,SAASP,kBAAkB,CAA8D;EAEzHQ,WAAW,CAACC,KAAyB,EAAE;IACrC,KAAK,CAACA,KAAK,EAAEV,aAAa,EAAE,IAAID,kBAAkB,EAAE,EAAE,IAAIQ,kBAAkB,EAAE,CAAC;EACjF;EAEAI,YAAY,CAACD,KAAyB,EAAE;IAAA;IACtC,IAAI,sBAAC,IAAI,CAACE,KAAK,CAACC,IAAI,6CAAf,iBAAiBC,MAAM,GAAE;MAC5B,OAAO,IAAI;IACb;IACA,oBAAQ,oBAAC,IAAI;MACX,KAAK,EAAE,IAAI,CAACC,MAAM,CAACC;IAAK,gBAExB,oBAAC,YAAY;MACX,KAAK,EAAE,IAAI,CAACJ,KAAK,CAACK,KAAM;MACxB,MAAM,EAAE,IAAI,CAACF,MAAM,CAACC,IAAI,CAACE,MAAiB;MAC1C,KAAK,EAAE,IAAI,CAACH,MAAM,CAACC,IAAI,CAACG,KAAK,IAAc,IAAI,CAACC,WAAY;MAC5D,OAAO,EAAE;QAAEC,GAAG,EAAEX,KAAK,CAACY,SAAS;QAAEC,MAAM,EAAEb,KAAK,CAACc,YAAY;QAAEC,IAAI,EAAEf,KAAK,CAACgB,UAAU;QAAEC,KAAK,EAAEjB,KAAK,CAACkB;MAAY;IAAE,gBAEhH,oBAAC,aAAa;MACZ,IAAI,EAAE,QAAS;MACf,kBAAkB,eAAE,oBAAC,GAAG,OAAI;MAC5B,KAAK,EAAE,CAAClB,KAAK,CAACmB,KAAK,EAAEnB,KAAK,CAACoB,UAAU,CAAE;MACvC,WAAW,EAAC,YAAY;MACxB,MAAM,EAAE,EAAG;MACX,IAAI,EAAE,EAAG;MACT,KAAK,EAAE,IAAI,CAAClB,KAAK,CAACK;IAAM,EACxB,EACD,IAAI,CAACc,aAAa,EAAE,EACpB,IAAI,CAACC,QAAQ,EAAE,EACf,IAAI,CAACC,QAAQ,EAAE,EACf,IAAI,CAACrB,KAAK,CAACC,IAAI,CAACqB,GAAG,CAAC,CAACC,CAAM,EAAEC,CAAS,KAAK;MAC5C,oBAAO,oBAAC,cAAc;QACpB,UAAU,EAAE,IAAI,CAACxB,KAAK,CAACyB,MAAO;QAC9B,KAAK,EAAE;UACLxB,IAAI,EAAE;YAAEyB,IAAI,EAAE,IAAI,CAAC1B,KAAK,CAACyB,MAAM,CAACD,CAAC,CAAC;YAAEG,OAAO,EAAE;cAAA,IAAC;gBAAEC;cAAM,CAAC;cAAA,OAAKA,KAAK,CAACD,OAAO;YAAA;UAAC;QAC5E,CAAE;QACF,GAAG,EAAE7B,KAAK,CAAC+B,IAAI,GAAG,UAAU,GAAGL,CAAE;QACjC,IAAI,EAAE1B,KAAK,CAAC+B,IAAI,GAAG,UAAU,GAAGL,CAAE;QAClC,IAAI,EAAED,CAAE;QACR,IAAI,EAAE;MAAE,EACR;IACJ,CAAC,CAAC,CACa,CAAO;EAC1B;AACF"}
1
+ {"version":3,"names":["React","View","WmBubbleChartProps","DEFAULT_CLASS","BaseChartComponent","BaseChartComponentState","VictoryChart","VictoryLegend","VictoryScatter","Svg","WmBubbleChartState","WmBubbleChart","constructor","props","renderWidget","_this$state$data","state","data","length","createElement","style","styles","root","theme","height","width","screenWidth","padding","top","offsettop","bottom","offsetbottom","left","offsetleft","right","offsetright","name","containerComponent","title","subheading","orientation","gutter","getLegendView","getXaxis","getYAxis","map","d","i","colorScale","colors","fill","opacity","_ref","datum","key","size"],"sources":["bubble-chart.component.tsx"],"sourcesContent":["import React from 'react';\nimport {Text, View} from 'react-native';\nimport { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';\n\nimport WmBubbleChartProps from './bubble-chart.props';\nimport { DEFAULT_CLASS, WmBubbleChartStyles } from './bubble-chart.styles';\nimport {\n BaseChartComponent,\n BaseChartComponentState\n} from \"@wavemaker/app-rn-runtime/components/chart/basechart.component\";\nimport {VictoryAxis, VictoryChart, VictoryLegend, VictoryLine, VictoryScatter} from \"victory-native\";\nimport { ScatterSymbolType } from \"victory-core\";\nimport {Svg} from \"react-native-svg\";\nimport {get} from \"lodash-es\";\n\nexport class WmBubbleChartState extends BaseChartComponentState<WmBubbleChartProps> {}\n\nexport default class WmBubbleChart extends BaseChartComponent<WmBubbleChartProps, WmBubbleChartState, WmBubbleChartStyles> {\n\n constructor(props: WmBubbleChartProps) {\n super(props, DEFAULT_CLASS, new WmBubbleChartProps(), new WmBubbleChartState());\n }\n\n renderWidget(props: WmBubbleChartProps) {\n if (!this.state.data?.length) {\n return null;\n }\n return (<View\n style={this.styles.root}\n >\n <VictoryChart\n theme={this.state.theme}\n height={this.styles.root.height as number}\n width={this.styles.root.width as number || this.screenWidth}\n padding={{ top: props.offsettop, bottom: props.offsetbottom, left: props.offsetleft, right: props.offsetright }}\n >\n <VictoryLegend\n name={'legend'}\n containerComponent={<Svg />}\n title={[props.title, props.subheading]}\n orientation=\"horizontal\"\n gutter={20}\n data={[]}\n theme={this.state.theme}\n />\n {this.getLegendView()}\n {this.getXaxis()}\n {this.getYAxis()}\n {this.state.data.map((d: any, i: number) => {\n return <VictoryScatter\n colorScale={this.state.colors}\n style={{\n data: { fill: this.state.colors[i], opacity: ({ datum }) => datum.opacity }\n }}\n key={props.name + '_bubble_' + i}\n name={props.name + '_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@
1
- {"version":3,"names":["WmBarChart","WmBarChartState","WmColumnChartState","WmColumnChart","constructor","props"],"sources":["column-chart.component.tsx"],"sourcesContent":["import React from 'react';\n\nimport WmColumnChartProps from './column-chart.props';\nimport WmBarChart, {WmBarChartState} from \"@wavemaker/app-rn-runtime/components/chart/bar-chart/bar-chart.component\";\n\nexport class WmColumnChartState extends WmBarChartState {}\n\nexport default class WmColumnChart extends WmBarChart {\n\n constructor(props: WmColumnChartProps) {\n super(props)\n }\n}\n"],"mappings":"AAGA,OAAOA,UAAU,IAAGC,eAAe,QAAO,0EAA0E;AAEpH,OAAO,MAAMC,kBAAkB,SAASD,eAAe,CAAC;AAExD,eAAe,MAAME,aAAa,SAASH,UAAU,CAAC;EAEpDI,WAAW,CAACC,KAAyB,EAAE;IACrC,KAAK,CAACA,KAAK,CAAC;EACd;AACF"}
1
+ {"version":3,"names":["WmBarChart","WmBarChartState","WmColumnChartState","WmColumnChart","constructor","props"],"sources":["column-chart.component.tsx"],"sourcesContent":["import React from 'react';\n\nimport WmColumnChartProps from './column-chart.props';\nimport WmBarChart, {WmBarChartState} from \"@wavemaker/app-rn-runtime/components/chart/bar-chart/bar-chart.component\";\n\nexport class WmColumnChartState extends WmBarChartState {}\n\nexport default class WmColumnChart extends WmBarChart {\n\n constructor(props: WmColumnChartProps) {\n super(props)\n }\n}\n"],"mappings":"AAGA,OAAOA,UAAU,IAAGC,eAAe,QAAO,0EAA0E;AAEpH,OAAO,MAAMC,kBAAkB,SAASD,eAAe,CAAC;AAExD,eAAe,MAAME,aAAa,SAASH,UAAU,CAAC;EAEpDI,WAAWA,CAACC,KAAyB,EAAE;IACrC,KAAK,CAACA,KAAK,CAAC;EACd;AACF"}
@@ -1 +1 @@
1
- {"version":3,"names":["WmPieChart","WmDonutChart","constructor","props"],"sources":["donut-chart.component.tsx"],"sourcesContent":["import React from 'react';\n\nimport WmDonutChartProps from './donut-chart.props';\nimport WmPieChart from \"@wavemaker/app-rn-runtime/components/chart/pie-chart/pie-chart.component\";\n\n\nexport default class WmDonutChart extends WmPieChart {\n\n constructor(props: WmDonutChartProps) {\n super(props);\n }\n}\n"],"mappings":"AAGA,OAAOA,UAAU,MAAM,0EAA0E;AAGjG,eAAe,MAAMC,YAAY,SAASD,UAAU,CAAC;EAEnDE,WAAW,CAACC,KAAwB,EAAE;IACpC,KAAK,CAACA,KAAK,CAAC;EACd;AACF"}
1
+ {"version":3,"names":["WmPieChart","WmDonutChart","constructor","props"],"sources":["donut-chart.component.tsx"],"sourcesContent":["import React from 'react';\n\nimport WmDonutChartProps from './donut-chart.props';\nimport WmPieChart from \"@wavemaker/app-rn-runtime/components/chart/pie-chart/pie-chart.component\";\n\n\nexport default class WmDonutChart extends WmPieChart {\n\n constructor(props: WmDonutChartProps) {\n super(props);\n }\n}\n"],"mappings":"AAGA,OAAOA,UAAU,MAAM,0EAA0E;AAGjG,eAAe,MAAMC,YAAY,SAASD,UAAU,CAAC;EAEnDE,WAAWA,CAACC,KAAwB,EAAE;IACpC,KAAK,CAACA,KAAK,CAAC;EACd;AACF"}
@@ -6,7 +6,6 @@ export default class WmDonutChartProps extends WmPieChartProps {
6
6
  constructor() {
7
7
  super(...arguments);
8
8
  _defineProperty(this, "donutratio", 0.5);
9
- _defineProperty(this, "labeltype", 'percent');
10
9
  }
11
10
  }
12
11
  //# sourceMappingURL=donut-chart.props.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["WmPieChartProps","WmDonutChartProps"],"sources":["donut-chart.props.ts"],"sourcesContent":["import WmPieChartProps from \"@wavemaker/app-rn-runtime/components/chart/pie-chart/pie-chart.props\";\n\nexport default class WmDonutChartProps extends WmPieChartProps {\n donutratio: number = 0.5;\n labeltype: string = 'percent';\n}\n"],"mappings":";;;AAAA,OAAOA,eAAe,MAAM,sEAAsE;AAElG,eAAe,MAAMC,iBAAiB,SAASD,eAAe,CAAC;EAAA;IAAA;IAAA,oCACxC,GAAG;IAAA,mCACJ,SAAS;EAAA;AAC/B"}
1
+ {"version":3,"names":["WmPieChartProps","WmDonutChartProps","constructor","arguments","_defineProperty"],"sources":["donut-chart.props.ts"],"sourcesContent":["import WmPieChartProps from \"@wavemaker/app-rn-runtime/components/chart/pie-chart/pie-chart.props\";\n\nexport default class WmDonutChartProps extends WmPieChartProps {\n donutratio: number = 0.5;\n}\n"],"mappings":";;;AAAA,OAAOA,eAAe,MAAM,sEAAsE;AAElG,eAAe,MAAMC,iBAAiB,SAASD,eAAe,CAAC;EAAAE,YAAA;IAAA,SAAAC,SAAA;IAAAC,eAAA,qBACxC,GAAG;EAAA;AAC1B"}
@@ -0,0 +1,36 @@
1
+ import * as React from 'react';
2
+ import { View, Text } from "react-native";
3
+ export const Legend = function (props) {
4
+ var _props$data;
5
+ return /*#__PURE__*/React.createElement(View, {
6
+ style: [props.orientation === 'vertical' ? {
7
+ flexDirection: 'column',
8
+ justifyContent: 'center'
9
+ } : {
10
+ flexDirection: 'row',
11
+ justifyContent: 'center',
12
+ flexWrap: 'wrap'
13
+ }]
14
+ }, (_props$data = props.data) === null || _props$data === void 0 ? void 0 : _props$data.map(d => {
15
+ return /*#__PURE__*/React.createElement(View, {
16
+ key: d.name,
17
+ style: {
18
+ flexDirection: 'row',
19
+ alignItems: 'center',
20
+ padding: 4
21
+ }
22
+ }, /*#__PURE__*/React.createElement(View, {
23
+ style: [{
24
+ width: 12,
25
+ height: 12
26
+ }, props.dotStyle, {
27
+ backgroundColor: d.color
28
+ }]
29
+ }), /*#__PURE__*/React.createElement(Text, {
30
+ style: [{
31
+ paddingLeft: 4
32
+ }, props.testStyle]
33
+ }, d.name));
34
+ }));
35
+ };
36
+ //# sourceMappingURL=legend.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","View","Text","Legend","props","_props$data","createElement","style","orientation","flexDirection","justifyContent","flexWrap","data","map","d","key","name","alignItems","padding","width","height","dotStyle","backgroundColor","color","paddingLeft","testStyle"],"sources":["legend.component.tsx"],"sourcesContent":["import * as React from 'react';\nimport { TextStyle, View, Text, ViewStyle } from \"react-native\";\n\nexport interface LegendProps {\n data : [{\n name: string,\n color: string\n }];\n dotStyle?: ViewStyle;\n testStyle?: TextStyle;\n orientation?: 'vertical' | 'horizontal';\n}\n\nexport const Legend = function(props: LegendProps) {\n return (\n <View style={[\n props.orientation === 'vertical' ? {\n flexDirection: 'column',\n justifyContent: 'center'\n } : {\n flexDirection: 'row',\n justifyContent: 'center',\n flexWrap: 'wrap'\n }]}>\n {props.data?.map(d => {\n return (\n <View key={d.name} style={{\n flexDirection: 'row',\n alignItems: 'center',\n padding: 4}}>\n <View style={[{\n width: 12,\n height: 12\n }, props.dotStyle, {\n backgroundColor: d.color\n }]}></View>\n <Text style={[{ \n paddingLeft: 4\n }, props.testStyle]}>{d.name}</Text>\n </View>);\n })}\n </View>\n );\n};"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAAoBC,IAAI,EAAEC,IAAI,QAAmB,cAAc;AAY/D,OAAO,MAAMC,MAAM,GAAG,SAAAA,CAASC,KAAkB,EAAE;EAAA,IAAAC,WAAA;EAC/C,oBACIL,KAAA,CAAAM,aAAA,CAACL,IAAI;IAACM,KAAK,EAAE,CACbH,KAAK,CAACI,WAAW,KAAK,UAAU,GAAI;MAChCC,aAAa,EAAE,QAAQ;MACvBC,cAAc,EAAE;IACpB,CAAC,GAAG;MACAD,aAAa,EAAE,KAAK;MACpBC,cAAc,EAAE,QAAQ;MACxBC,QAAQ,EAAE;IACd,CAAC;EAAE,IAAAN,WAAA,GACED,KAAK,CAACQ,IAAI,cAAAP,WAAA,uBAAVA,WAAA,CAAYQ,GAAG,CAACC,CAAC,IAAI;IAClB,oBACAd,KAAA,CAAAM,aAAA,CAACL,IAAI;MAACc,GAAG,EAAED,CAAC,CAACE,IAAK;MAACT,KAAK,EAAE;QACtBE,aAAa,EAAE,KAAK;QACpBQ,UAAU,EAAE,QAAQ;QACpBC,OAAO,EAAE;MAAC;IAAE,gBACZlB,KAAA,CAAAM,aAAA,CAACL,IAAI;MAACM,KAAK,EAAE,CAAC;QACVY,KAAK,EAAE,EAAE;QACTC,MAAM,EAAE;MACZ,CAAC,EAAEhB,KAAK,CAACiB,QAAQ,EAAE;QACfC,eAAe,EAAER,CAAC,CAACS;MACvB,CAAC;IAAE,CAAO,CAAC,eACXvB,KAAA,CAAAM,aAAA,CAACJ,IAAI;MAACK,KAAK,EAAE,CAAC;QACViB,WAAW,EAAE;MACjB,CAAC,EAAEpB,KAAK,CAACqB,SAAS;IAAE,GAAEX,CAAC,CAACE,IAAW,CACjC,CAAC;EACX,CAAC,CACC,CAAC;AAEf,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"names":["React","View","Svg","VictoryChart","VictoryLine","VictoryLegend","VictoryScatter","VictoryGroup","WmLineChartProps","DEFAULT_CLASS","BaseChartComponent","BaseChartComponentState","ThemeVariables","WmLineChartState","WmLineChart","constructor","props","renderWidget","state","data","length","styles","root","theme","height","width","screenWidth","top","offsettop","bottom","offsetbottom","left","offsetleft","right","offsetright","title","subheading","getLegendView","getXaxis","getYAxis","map","d","i","name","interpolation","stroke","colors","INSTANCE","chartLineColor","strokeWidth","linethickness","highlightpoints","fill","opacity"],"sources":["line-chart.component.tsx"],"sourcesContent":["import React from 'react';\nimport { View } from 'react-native';\nimport { Svg } from 'react-native-svg';\n\nimport {\n VictoryChart,\n VictoryLine,\n VictoryLegend,\n VictoryScatter,\n VictoryGroup\n} from 'victory-native';\n\nimport WmLineChartProps from './line-chart.props';\nimport { DEFAULT_CLASS, WmLineChartStyles } from './line-chart.styles';\nimport {\n BaseChartComponent,\n BaseChartComponentState\n} from \"@wavemaker/app-rn-runtime/components/chart/basechart.component\";\nimport ThemeVariables from '@wavemaker/app-rn-runtime/styles/theme.variables';\nimport {InterpolationPropType} from \"victory-core\";\n\nexport class WmLineChartState extends BaseChartComponentState<WmLineChartProps> {}\n\nexport default class WmLineChart extends BaseChartComponent<WmLineChartProps, WmLineChartState, WmLineChartStyles> {\n\n constructor(props: WmLineChartProps) {\n super(props, DEFAULT_CLASS, new WmLineChartProps(), new WmLineChartState());\n }\n\n renderWidget(props: WmLineChartProps) {\n if (!this.state.data?.length) {\n return null;\n }\n return (<View\n style={this.styles.root}\n >\n <VictoryChart\n theme={this.state.theme}\n height={this.styles.root.height as number}\n width={this.styles.root.width as number || this.screenWidth}\n padding={{ top: props.offsettop, bottom: props.offsetbottom, left: props.offsetleft, right: props.offsetright }}\n >\n <VictoryLegend\n name={'legend'}\n containerComponent={<Svg />}\n title={[props.title, props.subheading]}\n orientation=\"horizontal\"\n gutter={20}\n data={[]}\n theme={this.state.theme}\n y={0}\n />\n {this.getLegendView()}\n {this.getXaxis()}\n {this.getYAxis()}\n {\n this.state.data.map((d: any, i: number) => {\n return <VictoryGroup key={props.name + '_line_group_' + i}>\n <VictoryLine interpolation={props.interpolation as InterpolationPropType} key={props.name + '_line_' + i}\n name={props.name + '_line_' + i}\n standalone={true}\n style={{\n data: {\n stroke: (this.state.colors[i] || ThemeVariables.INSTANCE.chartLineColor),\n strokeWidth: props.linethickness}\n }}\n data={d}\n />\n {(props.highlightpoints || this.state.data.length === 1) ?\n <VictoryScatter size={5} key={props.name + '_scatter' + i}\n style={{\n data: { fill: this.state.colors[i], opacity: 0.8}\n }}\n data={d}\n />: null}</VictoryGroup>\n })\n }\n </VictoryChart>\n </View>);\n }\n}\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,QAAQ,cAAc;AACnC,SAASC,GAAG,QAAQ,kBAAkB;AAEtC,SACEC,YAAY,EACZC,WAAW,EACXC,aAAa,EACbC,cAAc,EACdC,YAAY,QACP,gBAAgB;AAEvB,OAAOC,gBAAgB,MAAM,oBAAoB;AACjD,SAASC,aAAa,QAA2B,qBAAqB;AACtE,SACEC,kBAAkB,EAClBC,uBAAuB,QAClB,gEAAgE;AACvE,OAAOC,cAAc,MAAM,kDAAkD;AAG7E,OAAO,MAAMC,gBAAgB,SAASF,uBAAuB,CAAmB;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C,IAAI,CAACqB,GAAG,CAAC,CAACC,CAAM,EAAEC,CAAS,KAAK;MACzC,oBAAO,oBAAC,YAAY;QAAC,GAAG,EAAE1B,KAAK,CAAC2B,IAAI,GAAG,cAAc,GAAGD;MAAE,gBACxD,oBAAC,WAAW;QAAC,aAAa,EAAE1B,KAAK,CAAC4B,aAAuC;QAAE,GAAG,EAAE5B,KAAK,CAAC2B,IAAI,GAAG,QAAQ,GAAGD,CAAE;QACxF,IAAI,EAAE1B,KAAK,CAAC2B,IAAI,GAAG,QAAQ,GAAGD,CAAE;QAChC,UAAU,EAAE,IAAK;QACjB,KAAK,EAAE;UACLvB,IAAI,EAAE;YACJ0B,MAAM,EAAG,IAAI,CAAC3B,KAAK,CAAC4B,MAAM,CAACJ,CAAC,CAAC,IAAI9B,cAAc,CAACmC,QAAQ,CAACC,cAAe;YACxEC,WAAW,EAAEjC,KAAK,CAACkC;UAAa;QACpC,CAAE;QACpB,IAAI,EAAET;MAAE,EACR,EACAzB,KAAK,CAACmC,eAAe,IAAI,IAAI,CAACjC,KAAK,CAACC,IAAI,CAACC,MAAM,KAAK,CAAC,gBACrD,oBAAC,cAAc;QAAC,IAAI,EAAE,CAAE;QAAC,GAAG,EAAEJ,KAAK,CAAC2B,IAAI,GAAG,UAAU,GAAGD,CAAE;QAC1C,KAAK,EAAE;UACLvB,IAAI,EAAE;YAAEiC,IAAI,EAAE,IAAI,CAAClC,KAAK,CAAC4B,MAAM,CAACJ,CAAC,CAAC;YAAEW,OAAO,EAAE;UAAG;QAClD,CAAE;QACF,IAAI,EAAEZ;MAAE,EACtB,GAAE,IAAI,CAAgB;IAC5B,CAAC,CAAC,CAES,CACR;EACT;AACF"}
1
+ {"version":3,"names":["React","View","Svg","VictoryChart","VictoryLine","VictoryLegend","VictoryScatter","VictoryGroup","WmLineChartProps","DEFAULT_CLASS","BaseChartComponent","BaseChartComponentState","ThemeVariables","WmLineChartState","WmLineChart","constructor","props","renderWidget","_this$state$data","state","data","length","createElement","style","styles","root","theme","height","width","screenWidth","padding","top","offsettop","bottom","offsetbottom","left","offsetleft","right","offsetright","name","containerComponent","title","subheading","orientation","gutter","y","getLegendView","getXaxis","getYAxis","map","d","i","key","interpolation","standalone","stroke","colors","INSTANCE","chartLineColor","strokeWidth","linethickness","highlightpoints","size","fill","opacity"],"sources":["line-chart.component.tsx"],"sourcesContent":["import React from 'react';\nimport { View } from 'react-native';\nimport { Svg } from 'react-native-svg';\n\nimport {\n VictoryChart,\n VictoryLine,\n VictoryLegend,\n VictoryScatter,\n VictoryGroup\n} from 'victory-native';\n\nimport WmLineChartProps from './line-chart.props';\nimport { DEFAULT_CLASS, WmLineChartStyles } from './line-chart.styles';\nimport {\n BaseChartComponent,\n BaseChartComponentState\n} from \"@wavemaker/app-rn-runtime/components/chart/basechart.component\";\nimport ThemeVariables from '@wavemaker/app-rn-runtime/styles/theme.variables';\nimport {InterpolationPropType} from \"victory-core\";\n\nexport class WmLineChartState extends BaseChartComponentState<WmLineChartProps> {}\n\nexport default class WmLineChart extends BaseChartComponent<WmLineChartProps, WmLineChartState, WmLineChartStyles> {\n\n constructor(props: WmLineChartProps) {\n super(props, DEFAULT_CLASS, new WmLineChartProps(), new WmLineChartState());\n }\n\n renderWidget(props: WmLineChartProps) {\n if (!this.state.data?.length) {\n return null;\n }\n return (<View\n style={this.styles.root}\n >\n <VictoryChart\n theme={this.state.theme}\n height={this.styles.root.height as number}\n width={this.styles.root.width as number || this.screenWidth}\n padding={{ top: props.offsettop, bottom: props.offsetbottom, left: props.offsetleft, right: props.offsetright }}\n >\n <VictoryLegend\n name={'legend'}\n containerComponent={<Svg />}\n title={[props.title, props.subheading]}\n orientation=\"horizontal\"\n gutter={20}\n data={[]}\n theme={this.state.theme}\n y={0}\n />\n {this.getLegendView()}\n {this.getXaxis()}\n {this.getYAxis()}\n {\n this.state.data.map((d: any, i: number) => {\n return <VictoryGroup key={props.name + '_line_group_' + i}>\n <VictoryLine interpolation={props.interpolation as InterpolationPropType} key={props.name + '_line_' + i}\n name={props.name + '_line_' + i}\n standalone={true}\n style={{\n data: {\n stroke: (this.state.colors[i] || ThemeVariables.INSTANCE.chartLineColor),\n strokeWidth: props.linethickness}\n }}\n data={d}\n />\n {(props.highlightpoints || this.state.data.length === 1) ?\n <VictoryScatter size={5} key={props.name + '_scatter' + i}\n style={{\n data: { fill: this.state.colors[i], opacity: 0.8}\n }}\n data={d}\n />: null}</VictoryGroup>\n })\n }\n </VictoryChart>\n </View>);\n }\n}\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,QAAQ,cAAc;AACnC,SAASC,GAAG,QAAQ,kBAAkB;AAEtC,SACEC,YAAY,EACZC,WAAW,EACXC,aAAa,EACbC,cAAc,EACdC,YAAY,QACP,gBAAgB;AAEvB,OAAOC,gBAAgB,MAAM,oBAAoB;AACjD,SAASC,aAAa,QAA2B,qBAAqB;AACtE,SACEC,kBAAkB,EAClBC,uBAAuB,QAClB,gEAAgE;AACvE,OAAOC,cAAc,MAAM,kDAAkD;AAG7E,OAAO,MAAMC,gBAAgB,SAASF,uBAAuB,CAAmB;AAEhF,eAAe,MAAMG,WAAW,SAASJ,kBAAkB,CAAwD;EAEjHK,WAAWA,CAACC,KAAuB,EAAE;IACnC,KAAK,CAACA,KAAK,EAAEP,aAAa,EAAE,IAAID,gBAAgB,CAAC,CAAC,EAAE,IAAIK,gBAAgB,CAAC,CAAC,CAAC;EAC7E;EAEAI,YAAYA,CAACD,KAAuB,EAAE;IAAA,IAAAE,gBAAA;IACpC,IAAI,GAAAA,gBAAA,GAAC,IAAI,CAACC,KAAK,CAACC,IAAI,cAAAF,gBAAA,eAAfA,gBAAA,CAAiBG,MAAM,GAAE;MAC5B,OAAO,IAAI;IACb;IACA,oBAAQrB,KAAA,CAAAsB,aAAA,CAACrB,IAAI;MACXsB,KAAK,EAAE,IAAI,CAACC,MAAM,CAACC;IAAK,gBAExBzB,KAAA,CAAAsB,aAAA,CAACnB,YAAY;MACbu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xFZ,IAAI,EAAEvB,KAAK,CAACuB,IAAI,GAAG,QAAQ,GAAGY,CAAE;QAChCG,UAAU,EAAE,IAAK;QACjB/B,KAAK,EAAE;UACLH,IAAI,EAAE;YACJmC,MAAM,EAAG,IAAI,CAACpC,KAAK,CAACqC,MAAM,CAACL,CAAC,CAAC,IAAIvC,cAAc,CAAC6C,QAAQ,CAACC,cAAe;YACxEC,WAAW,EAAE3C,KAAK,CAAC4C;UAAa;QACpC,CAAE;QACpBxC,IAAI,EAAE8B;MAAE,CACT,CAAC,EACAlC,KAAK,CAAC6C,eAAe,IAAI,IAAI,CAAC1C,KAAK,CAACC,IAAI,CAACC,MAAM,KAAK,CAAC,gBACrDrB,KAAA,CAAAsB,aAAA,CAAChB,cAAc;QAACwD,IAAI,EAAE,CAAE;QAACV,GAAG,EAAEpC,KAAK,CAACuB,IAAI,GAAG,UAAU,GAAGY,CAAE;QAC1C5B,KAAK,EAAE;UACLH,IAAI,EAAE;YAAE2C,IAAI,EAAE,IAAI,CAAC5C,KAAK,CAACqC,MAAM,CAACL,CAAC,CAAC;YAAEa,OAAO,EAAE;UAAG;QAClD,CAAE;QACF5C,IAAI,EAAE8B;MAAE,CACvB,CAAC,GAAE,IAAmB,CAAC;IAC5B,CAAC,CAES,CACR,CAAC;EACT;AACF"}
@@ -1 +1 @@
1
- {"version":3,"names":["BaseChartComponentProps","WmLineChartProps"],"sources":["line-chart.props.ts"],"sourcesContent":["import BaseChartComponentProps from \"@wavemaker/app-rn-runtime/components/chart/basechart.props\";\n\nexport default class WmLineChartProps extends BaseChartComponentProps {\n linethickness: number = 2;\n}\n"],"mappings":";;;AAAA,OAAOA,uBAAuB,MAAM,4DAA4D;AAEhG,eAAe,MAAMC,gBAAgB,SAASD,uBAAuB,CAAC;EAAA;IAAA;IAAA,uCAC5C,CAAC;EAAA;AAC3B"}
1
+ {"version":3,"names":["BaseChartComponentProps","WmLineChartProps","constructor","arguments","_defineProperty"],"sources":["line-chart.props.ts"],"sourcesContent":["import BaseChartComponentProps from \"@wavemaker/app-rn-runtime/components/chart/basechart.props\";\n\nexport default class WmLineChartProps extends BaseChartComponentProps {\n linethickness: number = 2;\n}\n"],"mappings":";;;AAAA,OAAOA,uBAAuB,MAAM,4DAA4D;AAEhG,eAAe,MAAMC,gBAAgB,SAASD,uBAAuB,CAAC;EAAAE,YAAA;IAAA,SAAAC,SAAA;IAAAC,eAAA,wBAC5C,CAAC;EAAA;AAC3B"}
@@ -2,53 +2,74 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
2
2
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
3
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
4
  import React from 'react';
5
- import { View } from 'react-native';
5
+ import { View, Text } from 'react-native';
6
6
  import { Svg } from 'react-native-svg';
7
- import { VictoryPie } from 'victory-native';
7
+ import { VictoryLabel, VictoryPie } from 'victory-native';
8
8
  import WmPieChartProps from './pie-chart.props';
9
9
  import { DEFAULT_CLASS } from './pie-chart.styles';
10
+ import { formatCompactNumber } from '@wavemaker/app-rn-runtime/core/utils';
11
+ import WmIcon from '@wavemaker/app-rn-runtime/components/basic/icon/icon.component';
10
12
  import { BaseChartComponent, BaseChartComponentState } from '@wavemaker/app-rn-runtime/components/chart/basechart.component';
11
13
  import WmDonutChartProps from '@wavemaker/app-rn-runtime/components/chart/donut-chart/donut-chart.props';
14
+ import { Legend } from '../legend/legend.component';
12
15
  export class WmPieChartState extends BaseChartComponentState {
13
16
  constructor() {
14
17
  super(...arguments);
15
- _defineProperty(this, "innerradius", 0);
16
18
  _defineProperty(this, "chartWidth", 0);
19
+ _defineProperty(this, "totalHeight", 0);
20
+ _defineProperty(this, "infoHeight", 10);
21
+ _defineProperty(this, "legendWidth", 0);
22
+ _defineProperty(this, "legendHeight", 0);
23
+ _defineProperty(this, "opacity", 0);
17
24
  }
18
25
  }
19
26
  export default class WmPieChart extends BaseChartComponent {
20
27
  constructor(props) {
21
28
  super(props, DEFAULT_CLASS, props.type === 'Donut' ? new WmDonutChartProps() : new WmPieChartProps(), new WmPieChartState());
22
- _defineProperty(this, "_pieChartHeight", 0);
23
- _defineProperty(this, "labelLegendHeight", 0);
24
- _defineProperty(this, "legendHeight", 0);
25
29
  _defineProperty(this, "onViewLayoutChange", e => {
30
+ var _e$nativeEvent;
26
31
  let viewWidth = e.nativeEvent.layout.width;
27
32
  this.updateState({
28
- chartWidth: viewWidth
33
+ chartWidth: viewWidth,
34
+ totalHeight: (_e$nativeEvent = e.nativeEvent) === null || _e$nativeEvent === void 0 ? void 0 : _e$nativeEvent.layout.height
29
35
  });
30
36
  });
31
- }
32
- setInnerRadius() {
33
- let ratio = this.state.props.donutratio;
34
- if (typeof ratio === 'string') {
35
- ratio = parseFloat(ratio);
36
- }
37
- const innerRadius = ratio * 90;
38
- this.updateState({
39
- innerradius: innerRadius
37
+ _defineProperty(this, "onInfoViewLayoutChange", e => {
38
+ var _e$nativeEvent2;
39
+ this.updateState({
40
+ infoHeight: (_e$nativeEvent2 = e.nativeEvent) === null || _e$nativeEvent2 === void 0 ? void 0 : _e$nativeEvent2.layout.height,
41
+ opacity: 1
42
+ });
43
+ });
44
+ _defineProperty(this, "onLegendViewLayoutChange", e => {
45
+ var _e$nativeEvent3, _e$nativeEvent4;
46
+ this.updateState({
47
+ legendWidth: (_e$nativeEvent3 = e.nativeEvent) === null || _e$nativeEvent3 === void 0 ? void 0 : _e$nativeEvent3.layout.width,
48
+ legendHeight: (_e$nativeEvent4 = e.nativeEvent) === null || _e$nativeEvent4 === void 0 ? void 0 : _e$nativeEvent4.layout.height
49
+ });
40
50
  });
41
51
  }
42
52
  componentDidMount() {
43
53
  super.componentDidMount();
44
- this.setHeightWidthOnChart(this.chartInit.bind(this));
45
54
  }
46
- chartInit() {
47
- this.legendHeight = 30 || this.props.legendheight;
48
- this.labelLegendHeight = 20 || this.props.labellegendheight;
49
- this._pieChartHeight = this.state.chartHeight - this.legendHeight - this.labelLegendHeight;
50
- if (this.state.props.donutratio && !this.state.innerradius) {
51
- this.setInnerRadius();
55
+ getLabel(d, props) {
56
+ switch (props.labeltype) {
57
+ case 'percent':
58
+ {
59
+ return Math.round(d.y * 100 / this.state.total) + '%';
60
+ }
61
+ case 'key':
62
+ {
63
+ return this.state.xaxisDatakeyArr[d.x];
64
+ }
65
+ case 'value':
66
+ {
67
+ return formatCompactNumber(d.y);
68
+ }
69
+ case 'key-value':
70
+ {
71
+ return this.state.xaxisDatakeyArr[d.x] + ' ' + d.y;
72
+ }
52
73
  }
53
74
  }
54
75
  renderWidget(props) {
@@ -56,7 +77,10 @@ export default class WmPieChart extends BaseChartComponent {
56
77
  return null;
57
78
  }
58
79
  const pieData = this.state.data[0];
59
- let radius = (this._pieChartHeight - 200) / 2;
80
+ const chartWidth = this.state.chartWidth - (props.showlegend === 'right' ? this.state.legendWidth : 0);
81
+ const chartHeight = (this.styles.root.height ? this.state.totalHeight : chartWidth) - this.state.infoHeight - (props.showlegend === 'right' ? 0 : this.state.legendHeight);
82
+ let radius = (Math.min(chartWidth, chartHeight) - 40) / 2;
83
+ let innerRadius = props.donutratio * radius;
60
84
  let styleProp = {};
61
85
  let labelRadius;
62
86
  if (props.showlabels === 'hide') {
@@ -67,23 +91,58 @@ export default class WmPieChart extends BaseChartComponent {
67
91
  };
68
92
  } else if (props.showlabels === 'inside') {
69
93
  labelRadius = radius / 2;
94
+ } else {
95
+ labelRadius = radius + 8;
70
96
  }
97
+ const origin = {
98
+ x: chartWidth / 2,
99
+ y: chartHeight / 2
100
+ };
71
101
  const orientation = props.showlegend === 'right' ? 'vertical' : 'horizontal';
72
102
  let legendData = pieData.map((d, index) => {
73
- var _d$x;
74
103
  return {
75
- name: d === null || d === void 0 ? void 0 : (_d$x = d.x) === null || _d$x === void 0 ? void 0 : _d$x.toString(),
76
- symbol: {
77
- fill: this.state.colors[index]
78
- }
104
+ name: this.state.xaxisDatakeyArr[d.x],
105
+ color: this.state.colors[index % this.state.colors.length]
79
106
  };
80
107
  });
81
108
  return /*#__PURE__*/React.createElement(View, {
82
- style: this.styles.root,
109
+ style: [{
110
+ opacity: this.state.opacity
111
+ }, this.styles.root],
83
112
  onLayout: this.onViewLayoutChange
84
- }, this.state.chartWidth ? /*#__PURE__*/React.createElement(Svg, {
85
- width: this.state.chartWidth,
86
- height: this.state.chartHeight
113
+ }, /*#__PURE__*/React.createElement(View, {
114
+ onLayout: this.onInfoViewLayoutChange
115
+ }, /*#__PURE__*/React.createElement(View, {
116
+ style: {
117
+ flexDirection: 'row',
118
+ alignItems: 'center'
119
+ }
120
+ }, props.iconclass ? /*#__PURE__*/React.createElement(WmIcon, {
121
+ iconclass: props.iconclass,
122
+ styles: this.styles.icon
123
+ }) : null, /*#__PURE__*/React.createElement(Text, {
124
+ style: this.styles.title
125
+ }, props.title)), /*#__PURE__*/React.createElement(Text, {
126
+ style: this.styles.subHeading
127
+ }, props.subheading)), props.showlegend === 'top' ? /*#__PURE__*/React.createElement(View, {
128
+ onLayout: this.onLegendViewLayoutChange
129
+ }, /*#__PURE__*/React.createElement(Legend, {
130
+ data: legendData,
131
+ testStyle: this.styles.legendText,
132
+ dotStyle: this.styles.legenedDot
133
+ })) : null, /*#__PURE__*/React.createElement(View, {
134
+ style: {
135
+ flexDirection: 'row',
136
+ justifyContent: 'center',
137
+ alignItems: 'center'
138
+ }
139
+ }, /*#__PURE__*/React.createElement(View, {
140
+ style: {
141
+ flex: 1
142
+ }
143
+ }, chartWidth ? /*#__PURE__*/React.createElement(Svg, {
144
+ width: chartWidth,
145
+ height: chartHeight
87
146
  }, /*#__PURE__*/React.createElement(VictoryPie, {
88
147
  style: styleProp,
89
148
  standalone: false,
@@ -92,20 +151,40 @@ export default class WmPieChart extends BaseChartComponent {
92
151
  let {
93
152
  datum
94
153
  } = _ref;
95
- return '';
154
+ return this.getLabel(datum, props);
96
155
  },
97
156
  endAngle: this.state.endAngle || 0,
98
- radius: (Math.min(this.state.chartWidth, this.state.chartHeight) - 20) / 2,
99
- innerRadius: props.innerradius || this.state.innerradius,
157
+ radius: radius,
158
+ innerRadius: innerRadius,
100
159
  theme: this.state.theme,
101
160
  key: props.name,
102
161
  name: props.name,
103
162
  data: pieData,
104
- origin: {
105
- x: this.state.chartWidth / 2,
106
- y: this.state.chartHeight / 2
163
+ origin: origin,
164
+ labelPlacement: props.labelplacement,
165
+ labelRadius: labelRadius
166
+ }), /*#__PURE__*/React.createElement(VictoryLabel, {
167
+ textAnchor: "middle",
168
+ style: this.styles.title,
169
+ x: origin.x,
170
+ y: origin.y,
171
+ text: props.centerlabel
172
+ })) : null), props.showlegend === 'right' ? /*#__PURE__*/React.createElement(View, {
173
+ style: {
174
+ maxWidth: '50%'
107
175
  },
108
- labelPlacement: props.labelplacement
176
+ onLayout: this.onLegendViewLayoutChange
177
+ }, /*#__PURE__*/React.createElement(Legend, {
178
+ data: legendData,
179
+ testStyle: this.styles.legendText,
180
+ dotStyle: this.styles.legenedDot,
181
+ orientation: "vertical"
182
+ })) : null), props.showlegend === 'bottom' ? /*#__PURE__*/React.createElement(View, {
183
+ onLayout: this.onLegendViewLayoutChange
184
+ }, /*#__PURE__*/React.createElement(Legend, {
185
+ data: legendData,
186
+ testStyle: this.styles.legendText,
187
+ dotStyle: this.styles.legenedDot
109
188
  })) : null);
110
189
  }
111
190
  }
@@ -1 +1 @@
1
- {"version":3,"names":["React","View","Svg","VictoryPie","WmPieChartProps","DEFAULT_CLASS","BaseChartComponent","BaseChartComponentState","WmDonutChartProps","WmPieChartState","WmPieChart","constructor","props","type","e","viewWidth","nativeEvent","layout","width","updateState","chartWidth","setInnerRadius","ratio","state","donutratio","parseFloat","innerRadius","innerradius","componentDidMount","setHeightWidthOnChart","chartInit","bind","legendHeight","legendheight","labelLegendHeight","labellegendheight","_pieChartHeight","chartHeight","renderWidget","data","length","pieData","radius","styleProp","labelRadius","showlabels","labels","display","orientation","showlegend","legendData","map","d","index","name","x","toString","symbol","fill","colors","styles","root","onViewLayoutChange","datum","endAngle","Math","min","theme","y","labelplacement"],"sources":["pie-chart.component.tsx"],"sourcesContent":["import React from 'react';\nimport { LayoutChangeEvent, View } from 'react-native';\nimport { Svg } from 'react-native-svg';\n\nimport { VictoryLegend, VictoryPie } from 'victory-native';\n\nimport WmPieChartProps from './pie-chart.props';\nimport { DEFAULT_CLASS, WmPieChartStyles } from './pie-chart.styles';\nimport {\n BaseChartComponent,\n BaseChartComponentState\n} from '@wavemaker/app-rn-runtime/components/chart/basechart.component';\nimport WmDonutChartProps from '@wavemaker/app-rn-runtime/components/chart/donut-chart/donut-chart.props';\n\nexport class WmPieChartState extends BaseChartComponentState<WmPieChartProps> {\n innerradius: number = 0;\n chartWidth = 0;\n}\n\nexport default class WmPieChart extends BaseChartComponent<WmPieChartProps, WmPieChartState, WmPieChartStyles> {\n private _pieChartHeight: number = 0;\n private labelLegendHeight: number = 0;\n private legendHeight: number = 0;\n constructor(props: WmPieChartProps) {\n super(props, DEFAULT_CLASS, props.type === 'Donut' ? new WmDonutChartProps() : new WmPieChartProps(), new WmPieChartState());\n }\n\n setInnerRadius() {\n let ratio = this.state.props.donutratio;\n if (typeof ratio === 'string') {\n ratio = parseFloat(ratio);\n }\n const innerRadius: number = ratio * 90;\n this.updateState({\n innerradius: innerRadius\n } as WmPieChartState);\n }\n\n componentDidMount() {\n super.componentDidMount();\n this.setHeightWidthOnChart(this.chartInit.bind(this));\n }\n\n chartInit() {\n this.legendHeight = 30 || this.props.legendheight;\n this.labelLegendHeight = 20 || this.props.labellegendheight;\n this._pieChartHeight = this.state.chartHeight - this.legendHeight - this.labelLegendHeight;\n if (this.state.props.donutratio && !this.state.innerradius) {\n this.setInnerRadius();\n }\n }\n\n onViewLayoutChange = (e: LayoutChangeEvent) => {\n let viewWidth = e.nativeEvent.layout.width;\n this.updateState({\n chartWidth: viewWidth\n } as WmPieChartState)\n }\n\n renderWidget(props: WmPieChartProps) {\n if (!this.state.data.length) {\n return null;\n }\n const pieData = this.state.data[0];\n let radius = (this._pieChartHeight-200)/2;\n let styleProp = {};\n let labelRadius;\n if (props.showlabels === 'hide') {\n styleProp={labels: { display: \"none\" }};\n } else if (props.showlabels === 'inside') {\n labelRadius = radius/2;\n }\n const orientation = props.showlegend === 'right' ? 'vertical' : 'horizontal';\n let legendData: Array<{name: any}> = pieData.map((d: {x: any, y: any}, index: number) => {return {name: d?.x?.toString(), symbol: { fill: this.state.colors[index] }}});\n return (\n <View style={this.styles.root} onLayout={this.onViewLayoutChange}>\n {this.state.chartWidth ? (\n <Svg\n width={this.state.chartWidth}\n height={this.state.chartHeight}\n >\n <VictoryPie\n style={styleProp}\n standalone={false}\n colorScale={this.state.colors}\n labels={({datum}) => {\n return '';\n }}\n endAngle={this.state.endAngle || 0}\n radius={(Math.min(this.state.chartWidth, this.state.chartHeight) - 20)/ 2}\n innerRadius={props.innerradius || this.state.innerradius}\n theme={this.state.theme}\n key={props.name}\n name={props.name}\n data={pieData}\n origin={{x: (this.state.chartWidth/2), y: (this.state.chartHeight/2)}}\n labelPlacement={props.labelplacement}\n />\n </Svg>) : null}\n </View>\n );\n }\n}\n"],"mappings":";;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAA4BC,IAAI,QAAQ,cAAc;AACtD,SAASC,GAAG,QAAQ,kBAAkB;AAEtC,SAAwBC,UAAU,QAAQ,gBAAgB;AAE1D,OAAOC,eAAe,MAAM,mBAAmB;AAC/C,SAASC,aAAa,QAA0B,oBAAoB;AACpE,SACEC,kBAAkB,EAClBC,uBAAuB,QAClB,gEAAgE;AACvE,OAAOC,iBAAiB,MAAM,0EAA0E;AAExG,OAAO,MAAMC,eAAe,SAASF,uBAAuB,CAAkB;EAAA;IAAA;IAAA,qCACtD,CAAC;IAAA,oCACV,CAAC;EAAA;AA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AAK,CAACH,UAAU,gBACtB,oBAAC,GAAG;MACF,KAAK,EAAE,IAAI,CAACG,KAAK,CAACH,UAAW;MAC7B,MAAM,EAAE,IAAI,CAACG,KAAK,CAACc;IAAY,gBAE/B,oBAAC,UAAU;MACT,KAAK,EAAEM,SAAU;MACjB,UAAU,EAAE,KAAM;MAClB,UAAU,EAAE,IAAI,CAACpB,KAAK,CAACoC,MAAO;MAC9B,MAAM,EAAE,QAAa;QAAA,IAAZ;UAACI;QAAK,CAAC;QACd,OAAO,EAAE;MACX,CAAE;MACF,QAAQ,EAAE,IAAI,CAACxC,KAAK,CAACyC,QAAQ,IAAI,CAAE;MACnC,MAAM,EAAE,CAACC,IAAI,CAACC,GAAG,CAAC,IAAI,CAAC3C,KAAK,CAACH,UAAU,EAAE,IAAI,CAACG,KAAK,CAACc,WAAW,CAAC,GAAG,EAAE,IAAG,CAAE;MAC1E,WAAW,EAAEzB,KAAK,CAACe,WAAW,IAAI,IAAI,CAACJ,KAAK,CAACI,WAAY;MACzD,KAAK,EAAE,IAAI,CAACJ,KAAK,CAAC4C,KAAM;MACxB,GAAG,EAAEvD,KAAK,CAAC0C,IAAK;MAChB,IAAI,EAAE1C,KAAK,CAAC0C,IAAK;MACjB,IAAI,EAAEb,OAAQ;MACd,MAAM,EAAE;QAACc,CAAC,EAAG,IAAI,CAAChC,KAAK,CAACH,UAAU,GAAC,CAAE;QAAEgD,CAAC,EAAG,IAAI,CAAC7C,KAAK,CAACc,WAAW,GAAC;MAAE,CAAE;MACtE,cAAc,EAAEzB,KAAK,CAACyD;IAAe,EACrC,CACE,GAAI,IAAI,CACT;EAEX;AACF"}
1
+ {"version":3,"names":["React","View","Text","Svg","VictoryLabel","VictoryPie","WmPieChartProps","DEFAULT_CLASS","formatCompactNumber","WmIcon","BaseChartComponent","BaseChartComponentState","WmDonutChartProps","Legend","WmPieChartState","constructor","arguments","_defineProperty","WmPieChart","props","type","e","_e$nativeEvent","viewWidth","nativeEvent","layout","width","updateState","chartWidth","totalHeight","height","_e$nativeEvent2","infoHeight","opacity","_e$nativeEvent3","_e$nativeEvent4","legendWidth","legendHeight","componentDidMount","getLabel","d","labeltype","Math","round","y","state","total","xaxisDatakeyArr","x","renderWidget","data","length","pieData","showlegend","chartHeight","styles","root","radius","min","innerRadius","donutratio","styleProp","labelRadius","showlabels","labels","display","origin","orientation","legendData","map","index","name","color","colors","createElement","style","onLayout","onViewLayoutChange","onInfoViewLayoutChange","flexDirection","alignItems","iconclass","icon","title","subHeading","subheading","onLegendViewLayoutChange","testStyle","legendText","dotStyle","legenedDot","justifyContent","flex","standalone","colorScale","_ref","datum","endAngle","theme","key","labelPlacement","labelplacement","textAnchor","text","centerlabel","maxWidth"],"sources":["pie-chart.component.tsx"],"sourcesContent":["import React from 'react';\nimport { LayoutChangeEvent, View, Text } from 'react-native';\nimport { Svg } from 'react-native-svg';\n\nimport { VictoryLabel, VictoryLegend, VictoryPie } from 'victory-native';\n\nimport WmPieChartProps from './pie-chart.props';\nimport { DEFAULT_CLASS, WmPieChartStyles } from './pie-chart.styles';\n\nimport { formatCompactNumber } from '@wavemaker/app-rn-runtime/core/utils';\nimport WmIcon from '@wavemaker/app-rn-runtime/components/basic/icon/icon.component';\nimport {\n BaseChartComponent,\n BaseChartComponentState\n} from '@wavemaker/app-rn-runtime/components/chart/basechart.component';\nimport WmDonutChartProps from '@wavemaker/app-rn-runtime/components/chart/donut-chart/donut-chart.props';\nimport { Legend } from '../legend/legend.component';\n\nexport class WmPieChartState extends BaseChartComponentState<WmPieChartProps> {\n chartWidth = 0;\n totalHeight = 0;\n infoHeight = 10;\n legendWidth = 0;\n legendHeight = 0;\n opacity = 0;\n}\n\nexport default class WmPieChart extends BaseChartComponent<WmPieChartProps, WmPieChartState, WmPieChartStyles> {\n\n constructor(props: WmPieChartProps) {\n super(props, DEFAULT_CLASS, props.type === 'Donut' ? new WmDonutChartProps() : new WmPieChartProps(), new WmPieChartState());\n }\n\n componentDidMount() {\n super.componentDidMount();\n }\n\n onViewLayoutChange = (e: LayoutChangeEvent) => {\n let viewWidth = e.nativeEvent.layout.width;\n this.updateState({\n chartWidth: viewWidth,\n totalHeight: e.nativeEvent?.layout.height\n } as WmPieChartState)\n }\n\n onInfoViewLayoutChange = (e: LayoutChangeEvent) => {\n this.updateState({\n infoHeight: e.nativeEvent?.layout.height,\n opacity: 1\n } as WmPieChartState);\n }\n\n onLegendViewLayoutChange = (e: LayoutChangeEvent) => {\n this.updateState({\n legendWidth: e.nativeEvent?.layout.width,\n legendHeight: e.nativeEvent?.layout.height\n } as WmPieChartState);\n }\n\n getLabel(d: {x: any, y: any}, props: WmPieChartProps): string {\n switch(props.labeltype) {\n case 'percent': {\n return Math.round(d.y * 100 /this.state.total) + '%';\n }\n case 'key': {\n return this.state.xaxisDatakeyArr[d.x];\n }\n case 'value': {\n return formatCompactNumber(d.y);\n }\n case 'key-value': {\n return this.state.xaxisDatakeyArr[d.x] + ' ' + d.y;\n }\n }\n }\n\n renderWidget(props: WmPieChartProps) {\n if (!this.state.data.length) {\n return null;\n }\n const pieData = this.state.data[0];\n const chartWidth = this.state.chartWidth \n - (props.showlegend === 'right' ? this.state.legendWidth : 0);\n const chartHeight = (this.styles.root.height ? this.state.totalHeight : chartWidth) \n - this.state.infoHeight \n - (props.showlegend === 'right' ? 0 : this.state.legendHeight);\n let radius = (Math.min(chartWidth, chartHeight) - 40)/ 2;\n let innerRadius = props.donutratio * radius;\n let styleProp = {};\n let labelRadius;\n if (props.showlabels === 'hide') {\n styleProp={labels: { display: \"none\" }};\n } else if (props.showlabels === 'inside') {\n labelRadius = radius/2;\n } else {\n labelRadius = radius + 8;\n }\n const origin = {x: (chartWidth/2), y: (chartHeight/2)};\n const orientation = props.showlegend === 'right' ? 'vertical' : 'horizontal';\n let legendData = pieData.map((d: {x: any, y: any}, index: number) => {\n return {\n name: this.state.xaxisDatakeyArr[d.x],\n color: this.state.colors[index % (this.state.colors.length)]\n };\n });\n return (\n <View style={[{opacity: this.state.opacity}, this.styles.root]}\n onLayout={this.onViewLayoutChange}>\n <View onLayout={this.onInfoViewLayoutChange}>\n <View style={{flexDirection: 'row', alignItems: 'center'}}>\n {props.iconclass ? (<WmIcon iconclass={props.iconclass} styles={this.styles.icon}></WmIcon>) : null }\n <Text style={this.styles.title}>{props.title}</Text>\n </View>\n <Text style={this.styles.subHeading}>{props.subheading}</Text>\n </View>\n {props.showlegend === 'top' ? \n (<View onLayout={this.onLegendViewLayoutChange}>\n <Legend data={legendData}\n testStyle={this.styles.legendText}\n dotStyle={this.styles.legenedDot}></Legend>\n </View>) : null }\n <View style={{flexDirection: 'row', justifyContent: 'center', alignItems: 'center'}}>\n <View style={{flex: 1}}>\n {chartWidth ? (\n <Svg\n width={chartWidth}\n height={chartHeight}\n >\n <VictoryPie\n style={styleProp}\n standalone={false}\n colorScale={this.state.colors}\n labels={({datum}) => this.getLabel(datum, props)}\n endAngle={this.state.endAngle || 0}\n radius={radius}\n innerRadius={innerRadius}\n theme={this.state.theme}\n key={props.name}\n name={props.name}\n data={pieData}\n origin={origin}\n labelPlacement={props.labelplacement}\n labelRadius={labelRadius}\n />\n <VictoryLabel\n textAnchor=\"middle\"\n style={this.styles.title as any}\n x={origin.x} y={origin.y}\n text={props.centerlabel}\n />\n </Svg>) : null}\n </View>\n {props.showlegend === 'right' ? \n (<View style={{maxWidth: '50%'}} onLayout={this.onLegendViewLayoutChange}>\n <Legend data={legendData}\n testStyle={this.styles.legendText}\n dotStyle={this.styles.legenedDot}\n orientation='vertical'></Legend>\n </View>) : null }\n </View>\n {props.showlegend === 'bottom' ? \n (<View onLayout={this.onLegendViewLayoutChange}>\n <Legend data={legendData}\n testStyle={this.styles.legendText}\n dotStyle={this.styles.legenedDot}></Legend>\n </View>) : null }\n </View>\n );\n }\n}\n"],"mappings":";;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAA4BC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AAC5D,SAASC,GAAG,QAAQ,kBAAkB;AAEtC,S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,MAAM,EAAEA,MAAO;MACfkC,cAAc,EAAEjF,KAAK,CAACkF,cAAe;MACrCvC,WAAW,EAAEA;IAAY,CAC1B,CAAC,eACF9D,KAAA,CAAA0E,aAAA,CAACtE,YAAY;MACXkG,UAAU,EAAC,QAAQ;MACnB3B,KAAK,EAAE,IAAI,CAACpB,MAAM,CAAC4B,KAAa;MAChCnC,CAAC,EAAEkB,MAAM,CAAClB,CAAE;MAACJ,CAAC,EAAEsB,MAAM,CAACtB,CAAE;MACzB2D,IAAI,EAAEpF,KAAK,CAACqF;IAAY,CACzB,CACE,CAAC,GAAI,IACN,CAAC,EACNrF,KAAK,CAACkC,UAAU,KAAK,OAAO,gBAC1BrD,KAAA,CAAA0E,aAAA,CAACzE,IAAI;MAAC0E,KAAK,EAAE;QAAC8B,QAAQ,EAAE;MAAK,CAAE;MAAC7B,QAAQ,EAAE,IAAI,CAACU;IAAyB,gBACvEtF,KAAA,CAAA0E,aAAA,CAAC7D,MAAM;MAACqC,IAAI,EAAEkB,UAAW;MACvBmB,SAAS,EAAE,IAAI,CAAChC,MAAM,CAACiC,UAAW;MAClCC,QAAQ,EAAE,IAAI,CAAClC,MAAM,CAACmC,UAAW;MACjCvB,WAAW,EAAC;IAAU,CAAS,CAC7B,CAAC,GAAI,IACT,CAAC,EACNhD,KAAK,CAACkC,UAAU,KAAK,QAAQ,gBAC3BrD,KAAA,CAAA0E,aAAA,CAACzE,IAAI;MAAC2E,QAAQ,EAAE,IAAI,CAACU;IAAyB,gBAC7CtF,KAAA,CAAA0E,aAAA,CAAC7D,MAAM;MAACqC,IAAI,EAAEkB,UAAW;MACvBmB,SAAS,EAAE,IAAI,CAAChC,MAAM,CAACiC,UAAW;MAClCC,QAAQ,EAAE,IAAI,CAAClC,MAAM,CAACmC;IAAW,CAAS,CACxC,CAAC,GAAI,IACT,CAAC;EAEX;AACF"}
@@ -6,9 +6,8 @@ export default class WmPieChartProps extends BaseChartComponentProps {
6
6
  constructor() {
7
7
  super(...arguments);
8
8
  _defineProperty(this, "donutratio", 0);
9
- _defineProperty(this, "labeltype", 'percent');
10
- _defineProperty(this, "innerradius", 0);
11
9
  _defineProperty(this, "labelplacement", 'vertical');
10
+ _defineProperty(this, "centerlabel", '');
12
11
  }
13
12
  }
14
13
  //# sourceMappingURL=pie-chart.props.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["BaseChartComponentProps","WmPieChartProps"],"sources":["pie-chart.props.ts"],"sourcesContent":["import BaseChartComponentProps from '@wavemaker/app-rn-runtime/components/chart/basechart.props';\nimport { VictorySliceLabelPlacementType } from 'victory-pie';\n\nexport default class WmPieChartProps extends BaseChartComponentProps {\n donutratio: number = 0;\n labeltype: string = 'percent';\n innerradius: number = 0;\n labelplacement: VictorySliceLabelPlacementType = 'vertical';\n}\n"],"mappings":";;;AAAA,OAAOA,uBAAuB,MAAM,4DAA4D;AAGhG,eAAe,MAAMC,eAAe,SAASD,uBAAuB,CAAC;EAAA;IAAA;IAAA,oCAC9C,CAAC;IAAA,mCACF,SAAS;IAAA,qCACP,CAAC;IAAA,wCAC0B,UAAU;EAAA;AAC7D"}
1
+ {"version":3,"names":["BaseChartComponentProps","WmPieChartProps","constructor","arguments","_defineProperty"],"sources":["pie-chart.props.ts"],"sourcesContent":["import BaseChartComponentProps from '@wavemaker/app-rn-runtime/components/chart/basechart.props';\nimport { VictorySliceLabelPlacementType } from 'victory-pie';\n\nexport default class WmPieChartProps extends BaseChartComponentProps {\n donutratio: number = 0;\n labelplacement: VictorySliceLabelPlacementType = 'vertical';\n centerlabel = '';\n}\n"],"mappings":";;;AAAA,OAAOA,uBAAuB,MAAM,4DAA4D;AAGhG,eAAe,MAAMC,eAAe,SAASD,uBAAuB,CAAC;EAAAE,YAAA;IAAA,SAAAC,SAAA;IAAAC,eAAA,qBAC9C,CAAC;IAAAA,eAAA,yBAC2B,UAAU;IAAAA,eAAA,sBAC7C,EAAE;EAAA;AAClB"}