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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (453) hide show
  1. app-rn-runtime/actions/base-action.js.map +1 -1
  2. app-rn-runtime/actions/login-action.js.map +1 -1
  3. app-rn-runtime/actions/logout-action.js.map +1 -1
  4. app-rn-runtime/actions/navigation-action.js +14 -2
  5. app-rn-runtime/actions/navigation-action.js.map +1 -1
  6. app-rn-runtime/actions/notification-action.js.map +1 -1
  7. app-rn-runtime/actions/timer-action.js.map +1 -1
  8. app-rn-runtime/components/advanced/carousel/carousel-content/carousel-content.component.js.map +1 -1
  9. app-rn-runtime/components/advanced/carousel/carousel-content/carousel-content.props.js.map +1 -1
  10. app-rn-runtime/components/advanced/carousel/carousel-template/carousel-template.component.js.map +1 -1
  11. app-rn-runtime/components/advanced/carousel/carousel-template/carousel-template.props.js.map +1 -1
  12. app-rn-runtime/components/advanced/carousel/carousel.component.js +1 -1
  13. app-rn-runtime/components/advanced/carousel/carousel.component.js.map +1 -1
  14. app-rn-runtime/components/advanced/carousel/carousel.props.js.map +1 -1
  15. app-rn-runtime/components/advanced/carousel/carousel.styles.js +16 -0
  16. app-rn-runtime/components/advanced/carousel/carousel.styles.js.map +1 -1
  17. app-rn-runtime/components/advanced/login/login.component.js.map +1 -1
  18. app-rn-runtime/components/advanced/login/login.props.js.map +1 -1
  19. app-rn-runtime/components/advanced/network-info-toaster/network-info-toaster.component.js.map +1 -1
  20. app-rn-runtime/components/advanced/network-info-toaster/network-info-toaster.props.js.map +1 -1
  21. app-rn-runtime/components/advanced/webview/webview.component.js.map +1 -1
  22. app-rn-runtime/components/advanced/webview/webview.props.js.map +1 -1
  23. app-rn-runtime/components/basic/anchor/anchor.component.js +1 -0
  24. app-rn-runtime/components/basic/anchor/anchor.component.js.map +1 -1
  25. app-rn-runtime/components/basic/anchor/anchor.props.js.map +1 -1
  26. app-rn-runtime/components/basic/anchor/anchor.styles.js +5 -0
  27. app-rn-runtime/components/basic/anchor/anchor.styles.js.map +1 -1
  28. app-rn-runtime/components/basic/animatedview.component.js +1 -3
  29. app-rn-runtime/components/basic/animatedview.component.js.map +1 -1
  30. app-rn-runtime/components/basic/audio/audio.component.js +240 -0
  31. app-rn-runtime/components/basic/audio/audio.component.js.map +1 -0
  32. app-rn-runtime/components/basic/audio/audio.props.js +15 -0
  33. app-rn-runtime/components/basic/audio/audio.props.js.map +1 -0
  34. app-rn-runtime/components/basic/audio/audio.styles.js +61 -0
  35. app-rn-runtime/components/basic/audio/audio.styles.js.map +1 -0
  36. app-rn-runtime/components/basic/button/button.component.js.map +1 -1
  37. app-rn-runtime/components/basic/button/button.props.js.map +1 -1
  38. app-rn-runtime/components/basic/button/button.styles.js.map +1 -1
  39. app-rn-runtime/components/basic/buttongroup/buttongroup.component.js.map +1 -1
  40. app-rn-runtime/components/basic/buttongroup/buttongroup.props.js.map +1 -1
  41. app-rn-runtime/components/basic/buttongroup/buttongroup.styles.js.map +1 -1
  42. app-rn-runtime/components/basic/custom/custom.component.js.map +1 -1
  43. app-rn-runtime/components/basic/custom/custom.props.js.map +1 -1
  44. app-rn-runtime/components/basic/icon/icon.component.js.map +1 -1
  45. app-rn-runtime/components/basic/icon/icon.props.js.map +1 -1
  46. app-rn-runtime/components/basic/icon/icon.styles.js +5 -0
  47. app-rn-runtime/components/basic/icon/icon.styles.js.map +1 -1
  48. app-rn-runtime/components/basic/label/label.component.js +2 -1
  49. app-rn-runtime/components/basic/label/label.component.js.map +1 -1
  50. app-rn-runtime/components/basic/label/label.props.js.map +1 -1
  51. app-rn-runtime/components/basic/label/label.styles.js +8 -0
  52. app-rn-runtime/components/basic/label/label.styles.js.map +1 -1
  53. app-rn-runtime/components/basic/lottie/lottie.component.js.map +1 -1
  54. app-rn-runtime/components/basic/lottie/lottie.props.js.map +1 -1
  55. app-rn-runtime/components/basic/message/message.component.js.map +1 -1
  56. app-rn-runtime/components/basic/message/message.props.js.map +1 -1
  57. app-rn-runtime/components/basic/message/message.styles.js +22 -0
  58. app-rn-runtime/components/basic/message/message.styles.js.map +1 -1
  59. app-rn-runtime/components/basic/modal/modal.component.js.map +1 -1
  60. app-rn-runtime/components/basic/modal/modal.props.js.map +1 -1
  61. app-rn-runtime/components/basic/modal/modal.styles.js.map +1 -1
  62. app-rn-runtime/components/basic/picture/picture.component.js +7 -11
  63. app-rn-runtime/components/basic/picture/picture.component.js.map +1 -1
  64. app-rn-runtime/components/basic/picture/picture.props.js.map +1 -1
  65. app-rn-runtime/components/basic/picture/picture.styles.js.map +1 -1
  66. app-rn-runtime/components/basic/progress-bar/progress-bar.component.js.map +1 -1
  67. app-rn-runtime/components/basic/progress-bar/progress-bar.props.js.map +1 -1
  68. app-rn-runtime/components/basic/progress-bar/progress-bar.styles.js.map +1 -1
  69. app-rn-runtime/components/basic/progress-circle/progress-circle.component.js.map +1 -1
  70. app-rn-runtime/components/basic/progress-circle/progress-circle.props.js.map +1 -1
  71. app-rn-runtime/components/basic/progress-circle/progress-circle.styles.js.map +1 -1
  72. app-rn-runtime/components/basic/search/local-data-provider.js.map +1 -1
  73. app-rn-runtime/components/basic/search/search.component.js +1 -1
  74. app-rn-runtime/components/basic/search/search.component.js.map +1 -1
  75. app-rn-runtime/components/basic/search/search.props.js +1 -0
  76. app-rn-runtime/components/basic/search/search.props.js.map +1 -1
  77. app-rn-runtime/components/basic/search/search.styles.js +47 -0
  78. app-rn-runtime/components/basic/search/search.styles.js.map +1 -1
  79. app-rn-runtime/components/basic/skeleton/skeleton.component.js.map +1 -1
  80. app-rn-runtime/components/basic/spinner/spinner.component.js +3 -1
  81. app-rn-runtime/components/basic/spinner/spinner.component.js.map +1 -1
  82. app-rn-runtime/components/basic/spinner/spinner.props.js.map +1 -1
  83. app-rn-runtime/components/basic/spinner/spinner.styles.js +8 -0
  84. app-rn-runtime/components/basic/spinner/spinner.styles.js.map +1 -1
  85. app-rn-runtime/components/basic/video/video.component.js +2 -2
  86. app-rn-runtime/components/basic/video/video.component.js.map +1 -1
  87. app-rn-runtime/components/basic/video/video.props.js.map +1 -1
  88. app-rn-runtime/components/chart/area-chart/area-chart.component.js.map +1 -1
  89. app-rn-runtime/components/chart/bar-chart/bar-chart.component.js.map +1 -1
  90. app-rn-runtime/components/chart/bar-chart/bar-chart.props.js.map +1 -1
  91. app-rn-runtime/components/chart/basechart.component.js +6 -2
  92. app-rn-runtime/components/chart/basechart.component.js.map +1 -1
  93. app-rn-runtime/components/chart/basechart.props.js +1 -0
  94. app-rn-runtime/components/chart/basechart.props.js.map +1 -1
  95. app-rn-runtime/components/chart/basechart.styles.js +17 -0
  96. app-rn-runtime/components/chart/basechart.styles.js.map +1 -1
  97. app-rn-runtime/components/chart/bubble-chart/bubble-chart.component.js.map +1 -1
  98. app-rn-runtime/components/chart/column-chart/column-chart.component.js.map +1 -1
  99. app-rn-runtime/components/chart/donut-chart/donut-chart.component.js.map +1 -1
  100. app-rn-runtime/components/chart/donut-chart/donut-chart.props.js +0 -1
  101. app-rn-runtime/components/chart/donut-chart/donut-chart.props.js.map +1 -1
  102. app-rn-runtime/components/chart/legend/legend.component.js +36 -0
  103. app-rn-runtime/components/chart/legend/legend.component.js.map +1 -0
  104. app-rn-runtime/components/chart/line-chart/line-chart.component.js.map +1 -1
  105. app-rn-runtime/components/chart/line-chart/line-chart.props.js.map +1 -1
  106. app-rn-runtime/components/chart/pie-chart/pie-chart.component.js +119 -40
  107. app-rn-runtime/components/chart/pie-chart/pie-chart.component.js.map +1 -1
  108. app-rn-runtime/components/chart/pie-chart/pie-chart.props.js +1 -2
  109. app-rn-runtime/components/chart/pie-chart/pie-chart.props.js.map +1 -1
  110. app-rn-runtime/components/chart/theme/chart.theme.js.map +1 -1
  111. app-rn-runtime/components/container/accordion/accordion.component.js +75 -119
  112. app-rn-runtime/components/container/accordion/accordion.component.js.map +1 -1
  113. app-rn-runtime/components/container/accordion/accordion.props.js +1 -0
  114. app-rn-runtime/components/container/accordion/accordion.props.js.map +1 -1
  115. app-rn-runtime/components/container/accordion/accordion.styles.js +14 -4
  116. app-rn-runtime/components/container/accordion/accordion.styles.js.map +1 -1
  117. app-rn-runtime/components/container/accordion/accordionpane/accordionpane.component.js +48 -7
  118. app-rn-runtime/components/container/accordion/accordionpane/accordionpane.component.js.map +1 -1
  119. app-rn-runtime/components/container/accordion/accordionpane/accordionpane.props.js.map +1 -1
  120. app-rn-runtime/components/container/container.component.js.map +1 -1
  121. app-rn-runtime/components/container/container.props.js.map +1 -1
  122. app-rn-runtime/components/container/container.styles.js.map +1 -1
  123. app-rn-runtime/components/container/layoutgrid/gridcolumn/gridcolumn.component.js.map +1 -1
  124. app-rn-runtime/components/container/layoutgrid/gridcolumn/gridcolumn.props.js.map +1 -1
  125. app-rn-runtime/components/container/layoutgrid/gridrow/gridrow.component.js.map +1 -1
  126. app-rn-runtime/components/container/layoutgrid/gridrow/gridrow.props.js.map +1 -1
  127. app-rn-runtime/components/container/layoutgrid/layoutgrid.component.js.map +1 -1
  128. app-rn-runtime/components/container/layoutgrid/layoutgrid.props.js.map +1 -1
  129. app-rn-runtime/components/container/layoutgrid/layoutgrid.styles.js.map +1 -1
  130. app-rn-runtime/components/container/linearlayout/linearlayout.component.js +1 -0
  131. app-rn-runtime/components/container/linearlayout/linearlayout.component.js.map +1 -1
  132. app-rn-runtime/components/container/linearlayout/linearlayout.props.js.map +1 -1
  133. app-rn-runtime/components/container/linearlayout/linearlayoutitem/linearlayoutitem.component.js +2 -2
  134. app-rn-runtime/components/container/linearlayout/linearlayoutitem/linearlayoutitem.component.js.map +1 -1
  135. app-rn-runtime/components/container/linearlayout/linearlayoutitem/linearlayoutitem.props.js.map +1 -1
  136. app-rn-runtime/components/container/panel/panel-content/panel-content.component.js.map +1 -1
  137. app-rn-runtime/components/container/panel/panel-content/panel-content.props.js.map +1 -1
  138. app-rn-runtime/components/container/panel/panel-footer/panel-footer.component.js.map +1 -1
  139. app-rn-runtime/components/container/panel/panel-footer/panel-footer.props.js.map +1 -1
  140. app-rn-runtime/components/container/panel/panel.component.js.map +1 -1
  141. app-rn-runtime/components/container/panel/panel.props.js.map +1 -1
  142. app-rn-runtime/components/container/panel/panel.styles.js +9 -0
  143. app-rn-runtime/components/container/panel/panel.styles.js.map +1 -1
  144. app-rn-runtime/components/container/partial-host.component.js.map +1 -1
  145. app-rn-runtime/components/container/tabs/tabheader/tabheader.component.js +30 -5
  146. app-rn-runtime/components/container/tabs/tabheader/tabheader.component.js.map +1 -1
  147. app-rn-runtime/components/container/tabs/tabheader/tabheader.props.js.map +1 -1
  148. app-rn-runtime/components/container/tabs/tabheader/tabheader.styles.js +10 -1
  149. app-rn-runtime/components/container/tabs/tabheader/tabheader.styles.js.map +1 -1
  150. app-rn-runtime/components/container/tabs/tabpane/tabpane.component.js.map +1 -1
  151. app-rn-runtime/components/container/tabs/tabpane/tabpane.props.js.map +1 -1
  152. app-rn-runtime/components/container/tabs/tabs.component.js +5 -2
  153. app-rn-runtime/components/container/tabs/tabs.component.js.map +1 -1
  154. app-rn-runtime/components/container/tabs/tabs.props.js.map +1 -1
  155. app-rn-runtime/components/container/tabs/tabs.styles.js +39 -0
  156. app-rn-runtime/components/container/tabs/tabs.styles.js.map +1 -1
  157. app-rn-runtime/components/container/tile/tile.component.js.map +1 -1
  158. app-rn-runtime/components/container/tile/tile.props.js.map +1 -1
  159. app-rn-runtime/components/container/tile/tile.styles.js.map +1 -1
  160. app-rn-runtime/components/container/wizard/wizard.component.js +15 -6
  161. app-rn-runtime/components/container/wizard/wizard.component.js.map +1 -1
  162. app-rn-runtime/components/container/wizard/wizard.props.js.map +1 -1
  163. app-rn-runtime/components/container/wizard/wizard.styles.js +53 -1
  164. app-rn-runtime/components/container/wizard/wizard.styles.js.map +1 -1
  165. app-rn-runtime/components/container/wizard/wizardstep/wizardstep.component.js.map +1 -1
  166. app-rn-runtime/components/container/wizard/wizardstep/wizardstep.props.js.map +1 -1
  167. app-rn-runtime/components/data/card/card-content/card-content.component.js.map +1 -1
  168. app-rn-runtime/components/data/card/card-content/card-content.props.js.map +1 -1
  169. app-rn-runtime/components/data/card/card-footer/card-footer.component.js.map +1 -1
  170. app-rn-runtime/components/data/card/card-footer/card-footer.props.js.map +1 -1
  171. app-rn-runtime/components/data/card/card.component.js.map +1 -1
  172. app-rn-runtime/components/data/card/card.props.js.map +1 -1
  173. app-rn-runtime/components/data/card/card.styles.js.map +1 -1
  174. app-rn-runtime/components/data/form/form-action/form-action.component.js +1 -0
  175. app-rn-runtime/components/data/form/form-action/form-action.component.js.map +1 -1
  176. app-rn-runtime/components/data/form/form-action/form-action.props.js +3 -1
  177. app-rn-runtime/components/data/form/form-action/form-action.props.js.map +1 -1
  178. app-rn-runtime/components/data/form/form-action/form-action.styles.js.map +1 -1
  179. app-rn-runtime/components/data/form/form-body/form-body.component.js.map +1 -1
  180. app-rn-runtime/components/data/form/form-body/form-body.props.js.map +1 -1
  181. app-rn-runtime/components/data/form/form-field/form-field.component.js +23 -2
  182. app-rn-runtime/components/data/form/form-field/form-field.component.js.map +1 -1
  183. app-rn-runtime/components/data/form/form-field/form-field.props.js +8 -0
  184. app-rn-runtime/components/data/form/form-field/form-field.props.js.map +1 -1
  185. app-rn-runtime/components/data/form/form-field/form-field.styles.js.map +1 -1
  186. app-rn-runtime/components/data/form/form-footer/form-footer.component.js.map +1 -1
  187. app-rn-runtime/components/data/form/form-footer/form-footer.props.js.map +1 -1
  188. app-rn-runtime/components/data/form/form.component.js +94 -4
  189. app-rn-runtime/components/data/form/form.component.js.map +1 -1
  190. app-rn-runtime/components/data/form/form.props.js +2 -0
  191. app-rn-runtime/components/data/form/form.props.js.map +1 -1
  192. app-rn-runtime/components/data/form/form.styles.js +6 -0
  193. app-rn-runtime/components/data/form/form.styles.js.map +1 -1
  194. app-rn-runtime/components/data/list/list-template/list-template.component.js.map +1 -1
  195. app-rn-runtime/components/data/list/list-template/list-template.props.js.map +1 -1
  196. app-rn-runtime/components/data/list/list-template/list-template.styles.js.map +1 -1
  197. app-rn-runtime/components/data/list/list.component.js +77 -16
  198. app-rn-runtime/components/data/list/list.component.js.map +1 -1
  199. app-rn-runtime/components/data/list/list.props.js +2 -0
  200. app-rn-runtime/components/data/list/list.props.js.map +1 -1
  201. app-rn-runtime/components/data/list/list.styles.js.map +1 -1
  202. app-rn-runtime/components/data/liveform/liveform.component.js +102 -0
  203. app-rn-runtime/components/data/liveform/liveform.component.js.map +1 -0
  204. app-rn-runtime/components/device/barcodescanner/barcodescanner.component.js.map +1 -1
  205. app-rn-runtime/components/device/barcodescanner/barcodescanner.props.js.map +1 -1
  206. app-rn-runtime/components/device/camera/camera.component.js.map +1 -1
  207. app-rn-runtime/components/device/camera/camera.props.js.map +1 -1
  208. app-rn-runtime/components/dialogs/alertdialog/alertdialog.component.js.map +1 -1
  209. app-rn-runtime/components/dialogs/alertdialog/alertdialog.props.js.map +1 -1
  210. app-rn-runtime/components/dialogs/alertdialog/alertdialog.styles.js.map +1 -1
  211. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.component.js.map +1 -1
  212. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.props.js.map +1 -1
  213. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.styles.js +9 -0
  214. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.styles.js.map +1 -1
  215. app-rn-runtime/components/dialogs/dialog/dialog.component.js +5 -2
  216. app-rn-runtime/components/dialogs/dialog/dialog.component.js.map +1 -1
  217. app-rn-runtime/components/dialogs/dialog/dialog.props.js.map +1 -1
  218. app-rn-runtime/components/dialogs/dialogactions/dialogactions.component.js.map +1 -1
  219. app-rn-runtime/components/dialogs/dialogactions/dialogactions.props.js.map +1 -1
  220. app-rn-runtime/components/dialogs/dialogcontent/dialogcontent.component.js.map +1 -1
  221. app-rn-runtime/components/dialogs/dialogcontent/dialogcontent.props.js.map +1 -1
  222. app-rn-runtime/components/input/basedataset/basedataset.component.js.map +1 -1
  223. app-rn-runtime/components/input/basedataset/basedataset.props.js.map +1 -1
  224. app-rn-runtime/components/input/baseinput/baseinput.component.js +4 -4
  225. app-rn-runtime/components/input/baseinput/baseinput.component.js.map +1 -1
  226. app-rn-runtime/components/input/baseinput/baseinput.props.js.map +1 -1
  227. app-rn-runtime/components/input/basenumber/basenumber.component.js +1 -1
  228. app-rn-runtime/components/input/basenumber/basenumber.component.js.map +1 -1
  229. app-rn-runtime/components/input/basenumber/basenumber.props.js.map +1 -1
  230. app-rn-runtime/components/input/calendar/calendar.component.js.map +1 -1
  231. app-rn-runtime/components/input/calendar/calendar.props.js.map +1 -1
  232. app-rn-runtime/components/input/calendar/calendar.styles.js +22 -0
  233. app-rn-runtime/components/input/calendar/calendar.styles.js.map +1 -1
  234. app-rn-runtime/components/input/calendar/views/month-view.js +1 -0
  235. app-rn-runtime/components/input/calendar/views/month-view.js.map +1 -1
  236. app-rn-runtime/components/input/checkbox/checkbox.component.js.map +1 -1
  237. app-rn-runtime/components/input/checkbox/checkbox.props.js +1 -1
  238. app-rn-runtime/components/input/checkbox/checkbox.props.js.map +1 -1
  239. app-rn-runtime/components/input/checkbox/checkbox.styles.js.map +1 -1
  240. app-rn-runtime/components/input/checkboxset/checkboxset.component.js.map +1 -1
  241. app-rn-runtime/components/input/checkboxset/checkboxset.props.js.map +1 -1
  242. app-rn-runtime/components/input/checkboxset/checkboxset.styles.js.map +1 -1
  243. app-rn-runtime/components/input/chips/chips.component.js +1 -0
  244. app-rn-runtime/components/input/chips/chips.component.js.map +1 -1
  245. app-rn-runtime/components/input/chips/chips.props.js.map +1 -1
  246. app-rn-runtime/components/input/composite/composite.component.js.map +1 -1
  247. app-rn-runtime/components/input/composite/composite.props.js.map +1 -1
  248. app-rn-runtime/components/input/currency/currency.component.js +6 -4
  249. app-rn-runtime/components/input/currency/currency.component.js.map +1 -1
  250. app-rn-runtime/components/input/currency/currency.props.js +1 -1
  251. app-rn-runtime/components/input/currency/currency.props.js.map +1 -1
  252. app-rn-runtime/components/input/currency/currency.styles.js +9 -0
  253. app-rn-runtime/components/input/currency/currency.styles.js.map +1 -1
  254. app-rn-runtime/components/input/epoch/base-datetime.component.js +5 -2
  255. app-rn-runtime/components/input/epoch/base-datetime.component.js.map +1 -1
  256. app-rn-runtime/components/input/epoch/date/date.component.js.map +1 -1
  257. app-rn-runtime/components/input/epoch/date/date.props.js.map +1 -1
  258. app-rn-runtime/components/input/epoch/date/date.styles.js +9 -0
  259. app-rn-runtime/components/input/epoch/date/date.styles.js.map +1 -1
  260. app-rn-runtime/components/input/epoch/date-picker.component.js.map +1 -1
  261. app-rn-runtime/components/input/epoch/datetime/datetime.component.js.map +1 -1
  262. app-rn-runtime/components/input/epoch/datetime/datetime.props.js.map +1 -1
  263. app-rn-runtime/components/input/epoch/datetime/datetime.styles.js +9 -0
  264. app-rn-runtime/components/input/epoch/datetime/datetime.styles.js.map +1 -1
  265. app-rn-runtime/components/input/epoch/time/time.component.js.map +1 -1
  266. app-rn-runtime/components/input/epoch/time/time.props.js.map +1 -1
  267. app-rn-runtime/components/input/epoch/time/time.styles.js +9 -0
  268. app-rn-runtime/components/input/epoch/time/time.styles.js.map +1 -1
  269. app-rn-runtime/components/input/fileupload/fileupload.component.js.map +1 -1
  270. app-rn-runtime/components/input/fileupload/fileupload.props.js.map +1 -1
  271. app-rn-runtime/components/input/number/number.component.js +6 -4
  272. app-rn-runtime/components/input/number/number.component.js.map +1 -1
  273. app-rn-runtime/components/input/number/number.props.js +1 -1
  274. app-rn-runtime/components/input/number/number.props.js.map +1 -1
  275. app-rn-runtime/components/input/number/number.styles.js +5 -0
  276. app-rn-runtime/components/input/number/number.styles.js.map +1 -1
  277. app-rn-runtime/components/input/radioset/radioset.component.js +3 -1
  278. app-rn-runtime/components/input/radioset/radioset.component.js.map +1 -1
  279. app-rn-runtime/components/input/radioset/radioset.props.js.map +1 -1
  280. app-rn-runtime/components/input/radioset/radioset.styles.js +8 -0
  281. app-rn-runtime/components/input/radioset/radioset.styles.js.map +1 -1
  282. app-rn-runtime/components/input/rating/rating.component.js +1 -1
  283. app-rn-runtime/components/input/rating/rating.component.js.map +1 -1
  284. app-rn-runtime/components/input/rating/rating.props.js.map +1 -1
  285. app-rn-runtime/components/input/select/select.component.js +14 -2
  286. app-rn-runtime/components/input/select/select.component.js.map +1 -1
  287. app-rn-runtime/components/input/select/select.props.js.map +1 -1
  288. app-rn-runtime/components/input/select/select.styles.js +18 -1
  289. app-rn-runtime/components/input/select/select.styles.js.map +1 -1
  290. app-rn-runtime/components/input/slider/slider.component.js +2 -1
  291. app-rn-runtime/components/input/slider/slider.component.js.map +1 -1
  292. app-rn-runtime/components/input/slider/slider.props.js.map +1 -1
  293. app-rn-runtime/components/input/switch/switch.component.js.map +1 -1
  294. app-rn-runtime/components/input/switch/switch.props.js.map +1 -1
  295. app-rn-runtime/components/input/switch/switch.styles.js +36 -0
  296. app-rn-runtime/components/input/switch/switch.styles.js.map +1 -1
  297. app-rn-runtime/components/input/text/text.component.js +5 -3
  298. app-rn-runtime/components/input/text/text.component.js.map +1 -1
  299. app-rn-runtime/components/input/text/text.props.js.map +1 -1
  300. app-rn-runtime/components/input/text/text.styles.js +5 -0
  301. app-rn-runtime/components/input/text/text.styles.js.map +1 -1
  302. app-rn-runtime/components/input/textarea/textarea.component.js +5 -3
  303. app-rn-runtime/components/input/textarea/textarea.component.js.map +1 -1
  304. app-rn-runtime/components/input/textarea/textarea.props.js.map +1 -1
  305. app-rn-runtime/components/input/textarea/textarea.styles.js +5 -0
  306. app-rn-runtime/components/input/textarea/textarea.styles.js.map +1 -1
  307. app-rn-runtime/components/input/toggle/toggle.component.js +17 -11
  308. app-rn-runtime/components/input/toggle/toggle.component.js.map +1 -1
  309. app-rn-runtime/components/input/toggle/toggle.props.js.map +1 -1
  310. app-rn-runtime/components/input/toggle/toggle.styles.js +28 -3
  311. app-rn-runtime/components/input/toggle/toggle.styles.js.map +1 -1
  312. app-rn-runtime/components/navigation/appnavbar/appnavbar.component.js.map +1 -1
  313. app-rn-runtime/components/navigation/appnavbar/appnavbar.props.js.map +1 -1
  314. app-rn-runtime/components/navigation/appnavbar/appnavbar.styles.js.map +1 -1
  315. app-rn-runtime/components/navigation/basenav/basenav.component.js.map +1 -1
  316. app-rn-runtime/components/navigation/basenav/basenav.props.js.map +1 -1
  317. app-rn-runtime/components/navigation/menu/menu.component.js.map +1 -1
  318. app-rn-runtime/components/navigation/menu/menu.props.js.map +1 -1
  319. app-rn-runtime/components/navigation/menu/menu.styles.js +6 -0
  320. app-rn-runtime/components/navigation/menu/menu.styles.js.map +1 -1
  321. app-rn-runtime/components/navigation/navbar/navbar.component.js.map +1 -1
  322. app-rn-runtime/components/navigation/navbar/navbar.props.js.map +1 -1
  323. app-rn-runtime/components/navigation/navbar/navbar.styles.js.map +1 -1
  324. app-rn-runtime/components/navigation/navitem/navitem.component.js.map +1 -1
  325. app-rn-runtime/components/navigation/navitem/navitem.props.js.map +1 -1
  326. app-rn-runtime/components/navigation/navitem/navitem.styles.js.map +1 -1
  327. app-rn-runtime/components/navigation/popover/popover.component.js.map +1 -1
  328. app-rn-runtime/components/navigation/popover/popover.props.js.map +1 -1
  329. app-rn-runtime/components/navigation/popover/popover.styles.js.map +1 -1
  330. app-rn-runtime/components/page/content/content.component.js.map +1 -1
  331. app-rn-runtime/components/page/left-panel/left-panel.component.js.map +1 -1
  332. app-rn-runtime/components/page/left-panel/left-panel.props.js.map +1 -1
  333. app-rn-runtime/components/page/page-content/page-content.component.js.map +1 -1
  334. app-rn-runtime/components/page/page-content/page-content.props.js.map +1 -1
  335. app-rn-runtime/components/page/page.component.js.map +1 -1
  336. app-rn-runtime/components/page/partial/partial.component.js.map +1 -1
  337. app-rn-runtime/components/page/partial-container/partial-container.component.js.map +1 -1
  338. app-rn-runtime/components/page/partial-container/partial-container.props.js.map +1 -1
  339. app-rn-runtime/components/page/tabbar/tabbar.component.js.map +1 -1
  340. app-rn-runtime/components/page/tabbar/tabbar.props.js.map +1 -1
  341. app-rn-runtime/components/prefab/prefab-container.component.js.map +1 -1
  342. app-rn-runtime/core/asset.provider.js.map +1 -1
  343. app-rn-runtime/core/base.component.js +29 -17
  344. app-rn-runtime/core/base.component.js.map +1 -1
  345. app-rn-runtime/core/components/textinput.component.js +37 -0
  346. app-rn-runtime/core/components/textinput.component.js.map +1 -0
  347. app-rn-runtime/core/device/camera-service.js.map +1 -1
  348. app-rn-runtime/core/device/scan-service.js.map +1 -1
  349. app-rn-runtime/core/display.manager.js.map +1 -1
  350. app-rn-runtime/core/event-notifier.js.map +1 -1
  351. app-rn-runtime/core/fixed-view.component.js.map +1 -1
  352. app-rn-runtime/core/formatters.js.map +1 -1
  353. app-rn-runtime/core/i18n.service.js +2 -0
  354. app-rn-runtime/core/i18n.service.js.map +1 -0
  355. app-rn-runtime/core/if.component.js +3 -3
  356. app-rn-runtime/core/if.component.js.map +1 -1
  357. app-rn-runtime/core/imageSizeEstimator.js.map +1 -1
  358. app-rn-runtime/core/injector.js +2 -1
  359. app-rn-runtime/core/injector.js.map +1 -1
  360. app-rn-runtime/core/logger.js +4 -1
  361. app-rn-runtime/core/logger.js.map +1 -1
  362. app-rn-runtime/core/modal.service.js.map +1 -1
  363. app-rn-runtime/core/navigation.service.js.map +1 -1
  364. app-rn-runtime/core/network.service.js +17 -15
  365. app-rn-runtime/core/network.service.js.map +1 -1
  366. app-rn-runtime/core/partial.service.js.map +1 -1
  367. app-rn-runtime/core/props.provider.js +1 -1
  368. app-rn-runtime/core/props.provider.js.map +1 -1
  369. app-rn-runtime/core/scroll-view.component.js.map +1 -1
  370. app-rn-runtime/core/security.service.js.map +1 -1
  371. app-rn-runtime/core/spinner.service.js.map +1 -1
  372. app-rn-runtime/core/storage.service.js.map +1 -1
  373. app-rn-runtime/core/tappable.component.js +11 -2
  374. app-rn-runtime/core/tappable.component.js.map +1 -1
  375. app-rn-runtime/core/toast.service.js.map +1 -1
  376. app-rn-runtime/core/utils.js +22 -0
  377. app-rn-runtime/core/utils.js.map +1 -1
  378. app-rn-runtime/core/viewport.js.map +1 -1
  379. app-rn-runtime/gestures/swipe.animation.js +9 -4
  380. app-rn-runtime/gestures/swipe.animation.js.map +1 -1
  381. app-rn-runtime/package.json +42 -42
  382. app-rn-runtime/runtime/App.js +14 -6
  383. app-rn-runtime/runtime/App.js.map +1 -1
  384. app-rn-runtime/runtime/App.navigator.js +11 -2
  385. app-rn-runtime/runtime/App.navigator.js.map +1 -1
  386. app-rn-runtime/runtime/base-fragment.component.js +20 -7
  387. app-rn-runtime/runtime/base-fragment.component.js.map +1 -1
  388. app-rn-runtime/runtime/base-page.component.js +2 -0
  389. app-rn-runtime/runtime/base-page.component.js.map +1 -1
  390. app-rn-runtime/runtime/base-partial.component.js.map +1 -1
  391. app-rn-runtime/runtime/base-prefab.component.js +5 -7
  392. app-rn-runtime/runtime/base-prefab.component.js.map +1 -1
  393. app-rn-runtime/runtime/lib-patch.js.map +1 -1
  394. app-rn-runtime/runtime/memo.component.js.map +1 -1
  395. app-rn-runtime/runtime/navigator/drawer.navigator.js.map +1 -1
  396. app-rn-runtime/runtime/navigator/stack.navigator.js.map +1 -1
  397. app-rn-runtime/runtime/services/app-display-manager.service.js.map +1 -1
  398. app-rn-runtime/runtime/services/app-i18n.service.js +26 -3
  399. app-rn-runtime/runtime/services/app-i18n.service.js.map +1 -1
  400. app-rn-runtime/runtime/services/app-modal.service.js.map +1 -1
  401. app-rn-runtime/runtime/services/app-security.service.js +7 -7
  402. app-rn-runtime/runtime/services/app-security.service.js.map +1 -1
  403. app-rn-runtime/runtime/services/app-spinner.service.js +3 -2
  404. app-rn-runtime/runtime/services/app-spinner.service.js.map +1 -1
  405. app-rn-runtime/runtime/services/app-toast.service.js.map +1 -1
  406. app-rn-runtime/runtime/services/device/calendar-service.js.map +1 -1
  407. app-rn-runtime/runtime/services/device/camera-service.js +2 -3
  408. app-rn-runtime/runtime/services/device/camera-service.js.map +1 -1
  409. app-rn-runtime/runtime/services/device/contacts-service.js.map +1 -1
  410. app-rn-runtime/runtime/services/device/location-service.js.map +1 -1
  411. app-rn-runtime/runtime/services/device/permissions.js.map +1 -1
  412. app-rn-runtime/runtime/services/device/scan-service.js.map +1 -1
  413. app-rn-runtime/runtime/services/partial.service.js.map +1 -1
  414. app-rn-runtime/runtime/services/webprocess.service.js.map +1 -1
  415. app-rn-runtime/runtime/watcher.js +3 -1
  416. app-rn-runtime/runtime/watcher.js.map +1 -1
  417. app-rn-runtime/styles/MediaQueryList.js.map +1 -1
  418. app-rn-runtime/styles/background.component.js +51 -12
  419. app-rn-runtime/styles/background.component.js.map +1 -1
  420. app-rn-runtime/styles/style-prop.validator.js +4 -0
  421. app-rn-runtime/styles/style-prop.validator.js.map +1 -1
  422. app-rn-runtime/styles/style-props.js.map +1 -1
  423. app-rn-runtime/styles/theme.js +12 -5
  424. app-rn-runtime/styles/theme.js.map +1 -1
  425. app-rn-runtime/styles/theme.variables.js +58 -2
  426. app-rn-runtime/styles/theme.variables.js.map +1 -1
  427. app-rn-runtime/variables/base-variable.js +3 -3
  428. app-rn-runtime/variables/base-variable.js.map +1 -1
  429. app-rn-runtime/variables/device/calendar/create-event.operation.js.map +1 -1
  430. app-rn-runtime/variables/device/calendar/delete-event.operation.js.map +1 -1
  431. app-rn-runtime/variables/device/calendar/get-events.operation.js.map +1 -1
  432. app-rn-runtime/variables/device/camera/capture-image.operation.js.map +1 -1
  433. app-rn-runtime/variables/device/camera/capture-video.operation.js.map +1 -1
  434. app-rn-runtime/variables/device/contacts/get-contacts.operation.js.map +1 -1
  435. app-rn-runtime/variables/device/device/app-info.operation.js.map +1 -1
  436. app-rn-runtime/variables/device/device/current-geo-position.operation.js.map +1 -1
  437. app-rn-runtime/variables/device/device/device-info.operation.js.map +1 -1
  438. app-rn-runtime/variables/device/device/network-info.operation.js.map +1 -1
  439. app-rn-runtime/variables/device/device/vibrate.operation.js.map +1 -1
  440. app-rn-runtime/variables/device/file/upload-file.operation.js.map +1 -1
  441. app-rn-runtime/variables/device/operation.provider.js.map +1 -1
  442. app-rn-runtime/variables/device/scan/scan.operation.js.map +1 -1
  443. app-rn-runtime/variables/device-variable.js.map +1 -1
  444. app-rn-runtime/variables/http.service.js +7 -3
  445. app-rn-runtime/variables/http.service.js.map +1 -1
  446. app-rn-runtime/variables/live-variable.js +115 -0
  447. app-rn-runtime/variables/live-variable.js.map +1 -0
  448. app-rn-runtime/variables/model-variable.js.map +1 -1
  449. app-rn-runtime/variables/service-variable.js +14 -4
  450. app-rn-runtime/variables/service-variable.js.map +1 -1
  451. app-rn-runtime/variables/utils/dataset-util.js.map +1 -1
  452. app-rn-runtime/variables/utils/inflight-queue.js.map +1 -1
  453. app-rn-runtime/variables/utils/variable.utils.js.map +1 -1
@@ -1 +1 @@
1
- {"version":3,"names":["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,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C;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 + '_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,WAAWA,CAACC,KAAyB,EAAE;IACrC,KAAK,CAACA,KAAK,EAAEV,aAAa,EAAE,IAAID,kBAAkB,CAAC,CAAC,EAAE,IAAIQ,kBAAkB,CAAC,CAAC,CAAC;EACjF;EAEAI,YAAYA,CAACD,KAAyB,EAAE;IAAA,IAAAE,gBAAA;IACtC,IAAI,GAAAA,gBAAA,GAAC,IAAI,CAACC,KAAK,CAACC,IAAI,c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AChC,KAAK,CAACiC,MAAO;QAC9B7B,KAAK,EAAE;UACLH,IAAI,EAAE;YAAEiC,IAAI,EAAE,IAAI,CAAClC,KAAK,CAACiC,MAAM,CAACF,CAAC,CAAC;YAAEI,OAAO,EAAEC,IAAA;cAAA,IAAC;gBAAEC;cAAM,CAAC,GAAAD,IAAA;cAAA,OAAKC,KAAK,CAACF,OAAO;YAAA;UAAC;QAC5E,CAAE;QACFG,GAAG,EAAEzC,KAAK,CAACuB,IAAI,GAAG,UAAU,GAAGW,CAAE;QACjCX,IAAI,EAAEvB,KAAK,CAACuB,IAAI,GAAG,UAAU,GAAGW,CAAE;QAClC9B,IAAI,EAAE6B,CAAE;QACRS,IAAI,EAAE;MAAE,CACT,CAAC;IACJ,CAAC,CACa,CAAO,CAAC;EAC1B;AACF"}
@@ -1 +1 @@
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;AAEhF,eAAe,MAAMG,WAAW,SAASJ,kBAAkB,CAAwD;EAEjHK,WAAW,CAACC,KAAuB,EAAE;IACnC,KAAK,CAACA,KAAK,EAAEP,aAAa,EAAE,IAAID,gBAAgB,EAAE,EAAE,IAAIK,gBAAgB,EAAE,CAAC;EAC7E;EAEAI,YAAY,CAACD,KAAuB,EAAE;IAAA;IACpC,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;MACb,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;QAAE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AC,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,WA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AI,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;AAChB;AAEA,eAAe,MAAMG,UAAU,SAASJ,kBAAkB,CAAqD;EAI7GK,WAAW,CAACC,KAAsB,EAAE;IAClC,KAAK,CAACA,KAAK,EAAEP,aAAa,EAAEO,KAAK,CAACC,IAAI,KAAK,OAAO,GAAG,IAAIL,iBAAiB,EAAE,GAAG,IAAIJ,eAAe,EAAE,EAAE,IAAIK,eAAe,EAAE,CAAC;IAAC,yCAJ7F,CAAC;IAAA,2CACC,CAAC;IAAA,sCACN,CAAC;IAAA,4CA8BVK,CAAoB,IAAK;MAC7C,IAAIC,SAAS,GAAGD,CAAC,CAACE,WAAW,CAACC,MAAM,CAACC,KAAK;MAC1C,IAAI,CAACC,WAAW,CAAC;QACfC,UAAU,EAAEL;MACd,CAAC,CAAoB;IACvB,CAAC;EAhCD;EAEAM,cAAc,GAAG;IACf,IAAIC,KAAK,GAAG,IAAI,CAACC,KAAK,CAACX,KAAK,CAACY,UAAU;IACvC,IAAI,OAAOF,KAAK,KAAK,QAAQ,EAAE;MAC7BA,KAAK,GAAGG,UAAU,CAACH,KAAK,CAAC;IAC3B;IACA,MAAMI,WAAmB,GAAGJ,KAAK,GAAG,EAAE;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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,SAASC,YAAY,EAAiBC,UAAU,QAAQ,gBAAgB;AAExE,OAAOC,eAAe,MAAM,mBAAmB;AAC/C,SAASC,aAAa,QAA0B,oBAAoB;AAEpE,SAASC,mBAAmB,QAAQ,sCAAsC;AAC1E,OAAOC,MAAM,MAAM,gEAAgE;AACnF,SACEC,kBAAkB,EAClBC,uBAAuB,QAClB,gEAAgE;AACvE,OAAOC,iBAAiB,MAAM,0EAA0E;AACxG,SAASC,MAAM,QAAQ,4BAA4B;AAEnD,OAAO,MAAMC,eAAe,SAASH,uBAAuB,CAAkB;EAAAI,YAAA;IAAA,SAAAC,SAAA;IAAAC,eAAA,qBAC/D,CAAC;IAAAA,eAAA,sBACA,CAAC;IAAAA,eAAA,qBACF,EAAE;IAAAA,eAAA,sBACD,CAAC;IAAAA,eAAA,uBACA,CAAC;IAAAA,eAAA,kBACN,CAAC;EAAA;AACb;AAEA,eAAe,MAAMC,UAAU,SAASR,kBAAkB,CAAqD;EAE7GK,WAAWA,CAACI,KAAsB,EAAE;IAClC,KAAK,CAACA,KAAK,EAAEZ,aAAa,EAAEY,KAAK,CAACC,IAAI,KAAK,OAAO,GAAG,IAAIR,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,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"}
@@ -1 +1 @@
1
- {"version":3,"names":["assign","ThemeVariables","themes","colors","tooltip","ThemeFactory","getColorsObj","themeName","getTheme","name","styles","customColors","colorsToUse","c1","c2","c3","c4","c5","c6","c7","c8","c9","c10","length","gridColor","textColorFromProps","text","color","sansSerif","letterSpacing","fontSize","padding","baseProps","width","height","baseLabelStyles","fontFamily","fill","INSTANCE","defaultTextColor","stroke","strokeWidth","centeredLabelStyles","textAnchor","strokeDasharray","strokeLinecap","strokeLinejoin","baseChartTheme","area","style","data","fillOpacity","labels","axis","chartAxisColor","axisLabel","grid","pointerEvents","ticks","size","chartAxisPointColor","tickLabels","polarDependentAxis","bar","boxplot","max","maxLabels","median","medianLabels","min","minLabels","q1","q1Labels","q3","q3Labels","boxWidth","candlestick","candleColors","positive","negative","chart","errorbar","borderWidth","opacity","group","colorScale","histogram","legend","gutter","orientation","titleOrientation","type","border","title","heading4FontSize","line","pie","scatter","stack","flyoutStyle","flyoutPadding","cornerRadius","pointerLength","voronoi","flyout"],"sources":["chart.theme.ts"],"sourcesContent":["import { assign } from \"lodash\";\nimport { VictoryThemeDefinition } from \"victory-core\";\nimport ThemeVariables from '@wavemaker/app-rn-runtime/styles/theme.variables';\n\nconst themes: {[key:string]: any} = {\n 'Terrestrial': {\n colors: ['#1f77b4', '#aec7e8', '#ff7f0e', '#ffbb78', '#2ca02c', '#98df8a', '#d62728', '#ff9896', '#9467bd', '#c5b0d5', '#8c564b', '#c49c94', '#e377c2', '#f7b6d2', '#7f7f7f', '#c7c7c7', '#bcbd22', '#dbdb8d', '#17becf', '#9edae5', '#ccc'],\n tooltip: {\n 'backgroundColor': '#de7d28',\n 'textColor': '#FFFFFF'\n }\n },\n 'Annabelle': {\n colors: ['#393b79', '#5254a3', '#6b6ecf', '#9c9ede', '#637939', '#8ca252', '#b5cf6b', '#cedb9c', '#8c6d31', '#bd9e39', '#e7ba52', '#e7cb94', '#843c39', '#ad494a', '#d6616b', '#e7969c', '#7b4173', '#a55194', '#ce6dbd', '#de9ed6', '#ccc'],\n tooltip: {\n 'backgroundColor': '#2e306f',\n 'textColor': '#FFFFFF'\n }\n },\n 'Azure': {\n colors: ['#3182bd', '#6baed6', '#9ecae1', '#c6dbef', '#e6550d', '#fd8d3c', '#fdae6b', '#fdd0a2', '#31a354', '#74c476', '#a1d99b', '#c7e9c0', '#756bb1', '#9e9ac8', '#bcbddc', '#dadaeb', '#636363', '#969696', '#bdbdbd', '#d9d9d9', '#ccc'],\n tooltip: {\n 'backgroundColor': '#3182bd',\n 'textColor': '#FFFFFF'\n }\n },\n 'Retro': {\n colors: ['#0ca7a1', '#ffa615', '#334957', '#acc5c2', '#988f90', '#8accc9', '#515151', '#f27861', '#36c9fd', '#794668', '#0f709d', '#0d2738', '#44be78', '#4a1839', '#6a393f', '#557d8b', '#6c331c', '#1c1c1c', '#861500', '#09562a', '#ccc'],\n tooltip: {\n 'backgroundColor': '#80513a',\n 'textColor': '#FFFFFF'\n }\n },\n 'Mellow': {\n colors: ['#f0dcbf', '#88c877', '#aeb918', '#2e2c23', '#ddddd2', '#dfe956', '#4c963b', '#5d3801', '#e1eec3', '#cd8472', '#fcfab3', '#9a4635', '#9295ad', '#2e3f12', '#565677', '#557d8b', '#4f4d02', '#0c0c1b', '#833324', '#24120e', '#ccc'],\n tooltip: {\n 'backgroundColor': '#7c9e73',\n 'textColor': '#FFFFFF'\n }\n },\n 'Orient': {\n colors: ['#a80000', '#cc6c3c', '#f0e400', '#000084', '#fccc6c', '#009c6c', '#cc309c', '#78cc00', '#fc84e4', '#48e4fc', '#4878d8', '#186c0c', '#606060', '#a8a8a8', '#000000', '#d7d7d7', '#75a06e', '#190d0b', '#888888', '#694b84', '#ccc'],\n tooltip: {\n 'backgroundColor': '#c14242',\n 'textColor': '#FFFFFF'\n }\n },\n 'GrayScale': {\n colors: ['#141414', '#353535', '#5b5b5b', '#848484', '#a8a8a8', '#c3c3c3', '#e0e0e0', '#c8c8c8', '#a5a5a5', '#878787', '#656565', '#4e4e4e', '#303030', '#1c1c1c', '#4f4f4f', '#3b3b3b', '#757575', '#606060', '#868686', '#c1c1c1', '#ccc'],\n tooltip: {\n 'backgroundColor': '#575757',\n 'textColor': '#FFFFFF'\n }\n },\n 'Flyer': {\n colors: ['#3f454c', '#5a646e', '#848778', '#cededf', '#74c4dd', '#0946ed', '#380bb1', '#000ff0', '#f54a23', '#1db262', '#bca3aa', '#ffa500', '#a86b32', '#63a18c', '#56795e', '#934343', '#b75f5f', '#752d2d', '#4e1111', '#920606', '#ccc'],\n tooltip: {\n 'backgroundColor': '#47637c',\n 'textColor': '#FFFFFF'\n }\n },\n 'Luminosity': {\n colors: ['#FFFFFF', '#e4e4e4', '#00bcd4', '#f0dd2f', '#00aabf', '#018376', '#e91e63', '#39e5d4', '#ff6d6d', '#00ff76', '#ff9800', '#969696', '#ff4200', '#e00000', '#95cbe5', '#5331ff', '#fff4a7', '#e7a800', '#0061e4', '#d5e7ff', '#ccc'],\n tooltip: {\n 'backgroundColor': '#47637c',\n 'textColor': '#FFFFFF'\n }\n }\n}\n\nclass ThemeFactory {\n getColorsObj(themeName: string) {\n return themes[themeName].colors;\n }\n\n getTheme(name: string, styles?: any, customColors?: Array<string>) {\n const colorsToUse = this.getColorsObj(name);\n const [c1, c2, c3, c4, c5, c6, c7, c8, c9, c10] = colorsToUse;\n let colors = [\n c1,\n c2,\n c3,\n c4,\n c5,\n c6,\n ];\n if (customColors && customColors.length) {\n colors = customColors;\n }\n const gridColor = colorsToUse[colorsToUse.length - 1];\n let textColorFromProps;\n if (styles) {\n textColorFromProps = styles.text.color;\n }\n\n // Typography\n const sansSerif = \"'Helvetica Neue', 'Helvetica', sans-serif\";\n const letterSpacing = \"normal\";\n const fontSize = 12;\n\n // Layout\n const padding = 8;\n const baseProps = {\n width: 250,\n height: 250,\n padding: 50,\n };\n\n // Labels\n const baseLabelStyles = {\n fontFamily: sansSerif,\n fontSize,\n letterSpacing,\n padding,\n fill: textColorFromProps || ThemeVariables.INSTANCE.defaultTextColor,\n stroke: \"transparent\",\n strokeWidth: 0,\n };\n\n const centeredLabelStyles = assign({ textAnchor: \"middle\" }, baseLabelStyles);\n\n // Strokes\n const strokeDasharray = \"10, 5\";\n const strokeLinecap = \"round\";\n const strokeLinejoin = \"round\";\n\n const baseChartTheme: VictoryThemeDefinition = {\n area: assign(\n {\n style: {\n data: {\n fill: c1,\n fillOpacity: 0.9\n },\n labels: baseLabelStyles,\n },\n },\n baseProps,\n ),\n axis: assign(\n {\n style: {\n axis: {\n fill: \"transparent\",\n stroke: textColorFromProps || ThemeVariables.INSTANCE.chartAxisColor,\n strokeWidth: 2,\n strokeLinecap,\n strokeLinejoin,\n },\n axisLabel: assign({}, centeredLabelStyles, {\n padding: 30,\n stroke: \"transparent\",\n fontSize: 15\n }),\n grid: {\n fill: \"none\",\n stroke: gridColor,\n strokeDasharray,\n strokeLinecap,\n strokeLinejoin,\n pointerEvents: \"painted\",\n },\n ticks: {\n fill: \"transparent\",\n size: 5,\n stroke: ThemeVariables.INSTANCE.chartAxisPointColor,\n strokeWidth: 1,\n strokeLinecap,\n strokeLinejoin,\n },\n tickLabels: assign({}, baseLabelStyles, {\n fill: textColorFromProps || ThemeVariables.INSTANCE.defaultTextColor,\n }),\n },\n },\n baseProps,\n ),\n polarDependentAxis: assign({\n style: {\n ticks: {\n fill: \"transparent\",\n size: 1,\n stroke: \"transparent\",\n },\n },\n }),\n bar: assign(\n {\n style: {\n data: {\n fill: c1,\n padding,\n strokeWidth: 0,\n },\n labels: baseLabelStyles,\n },\n },\n baseProps,\n ),\n boxplot: assign(\n {\n style: {\n max: { padding, stroke: c9, strokeWidth: 1 },\n maxLabels: assign({}, baseLabelStyles, { padding: 3 }),\n median: { padding, stroke: c9, strokeWidth: 1 },\n medianLabels: assign({}, baseLabelStyles, { padding: 3 }),\n min: { padding, stroke: c9, strokeWidth: 1 },\n minLabels: assign({}, baseLabelStyles, { padding: 3 }),\n q1: { padding, fill: c9 },\n q1Labels: assign({}, baseLabelStyles, { padding: 3 }),\n q3: { padding, fill: c9 },\n q3Labels: assign({}, baseLabelStyles, { padding: 3 }),\n },\n boxWidth: 20,\n },\n baseProps,\n ),\n candlestick: assign(\n {\n style: {\n data: {\n stroke: c9,\n },\n labels: assign({}, baseLabelStyles, { padding: 5 }),\n },\n candleColors: {\n positive: \"#ffffff\",\n negative: c9,\n },\n },\n baseProps,\n ),\n chart: baseProps,\n errorbar: assign(\n {\n borderWidth: 8,\n style: {\n data: {\n fill: \"transparent\",\n opacity: 1,\n stroke: c9,\n strokeWidth: 2,\n },\n labels: baseLabelStyles,\n },\n },\n baseProps,\n ),\n group: assign(\n {\n colorScale: colors,\n },\n baseProps,\n ),\n histogram: assign(\n {\n style: {\n data: {\n fill: c9,\n stroke: c10,\n strokeWidth: 2,\n },\n labels: baseLabelStyles,\n },\n },\n baseProps,\n ),\n legend: {\n colorScale: colors,\n gutter: 10,\n orientation: \"vertical\",\n titleOrientation: \"top\",\n style: {\n data: {\n type: \"circle\",\n },\n border: { stroke: 'none' }, // ThemeVariables.INSTANCE.chartLegendBorder\n labels: baseLabelStyles,\n title: assign({}, baseLabelStyles, { padding: 5, fontSize: ThemeVariables.INSTANCE.heading4FontSize }),\n },\n },\n line: assign(\n {\n style: {\n data: {\n fill: \"transparent\",\n opacity: 1,\n stroke: c1,\n strokeWidth: 2,\n },\n labels: baseLabelStyles,\n },\n },\n baseProps,\n ),\n pie: assign(\n {\n colorScale: colors,\n style: {\n data: {\n padding,\n stroke: '#ffffff',\n strokeWidth: 1,\n },\n labels: assign({}, baseLabelStyles, { padding: 20 }),\n },\n },\n baseProps,\n ),\n scatter: assign(\n {\n style: {\n data: {\n fill: c1,\n opacity: 1,\n stroke: \"transparent\",\n strokeWidth: 1,\n },\n labels: baseLabelStyles,\n },\n },\n baseProps,\n ),\n stack: assign(\n {\n colorScale: colors,\n },\n baseProps,\n ),\n tooltip: {\n style: assign({}, baseLabelStyles, { padding: 0, pointerEvents: \"none\" }),\n flyoutStyle: {\n stroke: c10,\n strokeWidth: 1,\n fill: \"#f0f0f0\",\n pointerEvents: \"none\",\n },\n flyoutPadding: 5,\n cornerRadius: 5,\n pointerLength: 10,\n },\n voronoi: assign(\n {\n style: {\n data: {\n fill: \"transparent\",\n stroke: \"transparent\",\n strokeWidth: 0,\n },\n labels: assign({}, baseLabelStyles, {\n padding: 5,\n pointerEvents: \"none\",\n }),\n flyout: {\n stroke: c10,\n strokeWidth: 1,\n fill: \"#f0f0f0\",\n pointerEvents: \"none\",\n },\n },\n },\n baseProps,\n ),\n };\n return baseChartTheme;\n }\n}\n\nexport default new ThemeFactory();\n"],"mappings":"AAAA,SAASA,MAAM,QAAQ,QAAQ;AAE/B,OAAOC,cAAc,MAAM,kDAAkD;AAE7E,MAAMC,MAA2B,GAAG;EAClC,aAAa,EAAE;IACbC,MAAM,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,M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,MAAM,EAAElB,GAAG;YACXmB,WAAW,EAAE,CAAC;YACdJ,IAAI,EAAE,SAAS;YACfoB,aAAa,EAAE;UACjB;QACF;MACF,CAAC,EACDzB,SAAS;IAEb,CAAC;IACD,OAAOe,cAAc;EACvB;AACF;AAEA,eAAe,IAAI1C,YAAY,EAAE"}
1
+ {"version":3,"names":["assign","ThemeVariables","themes","colors","tooltip","ThemeFactory","getColorsObj","themeName","getTheme","name","styles","customColors","colorsToUse","c1","c2","c3","c4","c5","c6","c7","c8","c9","c10","length","gridColor","textColorFromProps","text","color","sansSerif","letterSpacing","fontSize","padding","baseProps","width","height","baseLabelStyles","fontFamily","fill","INSTANCE","defaultTextColor","stroke","strokeWidth","centeredLabelStyles","textAnchor","strokeDasharray","strokeLinecap","strokeLinejoin","baseChartTheme","area","style","data","fillOpacity","labels","axis","chartAxisColor","axisLabel","grid","pointerEvents","ticks","size","chartAxisPointColor","tickLabels","polarDependentAxis","bar","boxplot","max","maxLabels","median","medianLabels","min","minLabels","q1","q1Labels","q3","q3Labels","boxWidth","candlestick","candleColors","positive","negative","chart","errorbar","borderWidth","opacity","group","colorScale","histogram","legend","gutter","orientation","titleOrientation","type","border","title","heading4FontSize","line","pie","scatter","stack","flyoutStyle","flyoutPadding","cornerRadius","pointerLength","voronoi","flyout"],"sources":["chart.theme.ts"],"sourcesContent":["import { assign } from \"lodash\";\nimport { VictoryThemeDefinition } from \"victory-core\";\nimport ThemeVariables from '@wavemaker/app-rn-runtime/styles/theme.variables';\n\nconst themes: {[key:string]: any} = {\n 'Terrestrial': {\n colors: ['#1f77b4', '#aec7e8', '#ff7f0e', '#ffbb78', '#2ca02c', '#98df8a', '#d62728', '#ff9896', '#9467bd', '#c5b0d5', '#8c564b', '#c49c94', '#e377c2', '#f7b6d2', '#7f7f7f', '#c7c7c7', '#bcbd22', '#dbdb8d', '#17becf', '#9edae5', '#ccc'],\n tooltip: {\n 'backgroundColor': '#de7d28',\n 'textColor': '#FFFFFF'\n }\n },\n 'Annabelle': {\n colors: ['#393b79', '#5254a3', '#6b6ecf', '#9c9ede', '#637939', '#8ca252', '#b5cf6b', '#cedb9c', '#8c6d31', '#bd9e39', '#e7ba52', '#e7cb94', '#843c39', '#ad494a', '#d6616b', '#e7969c', '#7b4173', '#a55194', '#ce6dbd', '#de9ed6', '#ccc'],\n tooltip: {\n 'backgroundColor': '#2e306f',\n 'textColor': '#FFFFFF'\n }\n },\n 'Azure': {\n colors: ['#3182bd', '#6baed6', '#9ecae1', '#c6dbef', '#e6550d', '#fd8d3c', '#fdae6b', '#fdd0a2', '#31a354', '#74c476', '#a1d99b', '#c7e9c0', '#756bb1', '#9e9ac8', '#bcbddc', '#dadaeb', '#636363', '#969696', '#bdbdbd', '#d9d9d9', '#ccc'],\n tooltip: {\n 'backgroundColor': '#3182bd',\n 'textColor': '#FFFFFF'\n }\n },\n 'Retro': {\n colors: ['#0ca7a1', '#ffa615', '#334957', '#acc5c2', '#988f90', '#8accc9', '#515151', '#f27861', '#36c9fd', '#794668', '#0f709d', '#0d2738', '#44be78', '#4a1839', '#6a393f', '#557d8b', '#6c331c', '#1c1c1c', '#861500', '#09562a', '#ccc'],\n tooltip: {\n 'backgroundColor': '#80513a',\n 'textColor': '#FFFFFF'\n }\n },\n 'Mellow': {\n colors: ['#f0dcbf', '#88c877', '#aeb918', '#2e2c23', '#ddddd2', '#dfe956', '#4c963b', '#5d3801', '#e1eec3', '#cd8472', '#fcfab3', '#9a4635', '#9295ad', '#2e3f12', '#565677', '#557d8b', '#4f4d02', '#0c0c1b', '#833324', '#24120e', '#ccc'],\n tooltip: {\n 'backgroundColor': '#7c9e73',\n 'textColor': '#FFFFFF'\n }\n },\n 'Orient': {\n colors: ['#a80000', '#cc6c3c', '#f0e400', '#000084', '#fccc6c', '#009c6c', '#cc309c', '#78cc00', '#fc84e4', '#48e4fc', '#4878d8', '#186c0c', '#606060', '#a8a8a8', '#000000', '#d7d7d7', '#75a06e', '#190d0b', '#888888', '#694b84', '#ccc'],\n tooltip: {\n 'backgroundColor': '#c14242',\n 'textColor': '#FFFFFF'\n }\n },\n 'GrayScale': {\n colors: ['#141414', '#353535', '#5b5b5b', '#848484', '#a8a8a8', '#c3c3c3', '#e0e0e0', '#c8c8c8', '#a5a5a5', '#878787', '#656565', '#4e4e4e', '#303030', '#1c1c1c', '#4f4f4f', '#3b3b3b', '#757575', '#606060', '#868686', '#c1c1c1', '#ccc'],\n tooltip: {\n 'backgroundColor': '#575757',\n 'textColor': '#FFFFFF'\n }\n },\n 'Flyer': {\n colors: ['#3f454c', '#5a646e', '#848778', '#cededf', '#74c4dd', '#0946ed', '#380bb1', '#000ff0', '#f54a23', '#1db262', '#bca3aa', '#ffa500', '#a86b32', '#63a18c', '#56795e', '#934343', '#b75f5f', '#752d2d', '#4e1111', '#920606', '#ccc'],\n tooltip: {\n 'backgroundColor': '#47637c',\n 'textColor': '#FFFFFF'\n }\n },\n 'Luminosity': {\n colors: ['#FFFFFF', '#e4e4e4', '#00bcd4', '#f0dd2f', '#00aabf', '#018376', '#e91e63', '#39e5d4', '#ff6d6d', '#00ff76', '#ff9800', '#969696', '#ff4200', '#e00000', '#95cbe5', '#5331ff', '#fff4a7', '#e7a800', '#0061e4', '#d5e7ff', '#ccc'],\n tooltip: {\n 'backgroundColor': '#47637c',\n 'textColor': '#FFFFFF'\n }\n }\n}\n\nclass ThemeFactory {\n getColorsObj(themeName: string) {\n return themes[themeName].colors;\n }\n\n getTheme(name: string, styles?: any, customColors?: Array<string>) {\n const colorsToUse = this.getColorsObj(name);\n const [c1, c2, c3, c4, c5, c6, c7, c8, c9, c10] = colorsToUse;\n let colors = [\n c1,\n c2,\n c3,\n c4,\n c5,\n c6,\n ];\n if (customColors && customColors.length) {\n colors = customColors;\n }\n const gridColor = colorsToUse[colorsToUse.length - 1];\n let textColorFromProps;\n if (styles) {\n textColorFromProps = styles.text.color;\n }\n\n // Typography\n const sansSerif = \"'Helvetica Neue', 'Helvetica', sans-serif\";\n const letterSpacing = \"normal\";\n const fontSize = 12;\n\n // Layout\n const padding = 8;\n const baseProps = {\n width: 250,\n height: 250,\n padding: 50,\n };\n\n // Labels\n const baseLabelStyles = {\n fontFamily: sansSerif,\n fontSize,\n letterSpacing,\n padding,\n fill: textColorFromProps || ThemeVariables.INSTANCE.defaultTextColor,\n stroke: \"transparent\",\n strokeWidth: 0,\n };\n\n const centeredLabelStyles = assign({ textAnchor: \"middle\" }, baseLabelStyles);\n\n // Strokes\n const strokeDasharray = \"10, 5\";\n const strokeLinecap = \"round\";\n const strokeLinejoin = \"round\";\n\n const baseChartTheme: VictoryThemeDefinition = {\n area: assign(\n {\n style: {\n data: {\n fill: c1,\n fillOpacity: 0.9\n },\n labels: baseLabelStyles,\n },\n },\n baseProps,\n ),\n axis: assign(\n {\n style: {\n axis: {\n fill: \"transparent\",\n stroke: textColorFromProps || ThemeVariables.INSTANCE.chartAxisColor,\n strokeWidth: 2,\n strokeLinecap,\n strokeLinejoin,\n },\n axisLabel: assign({}, centeredLabelStyles, {\n padding: 30,\n stroke: \"transparent\",\n fontSize: 15\n }),\n grid: {\n fill: \"none\",\n stroke: gridColor,\n strokeDasharray,\n strokeLinecap,\n strokeLinejoin,\n pointerEvents: \"painted\",\n },\n ticks: {\n fill: \"transparent\",\n size: 5,\n stroke: ThemeVariables.INSTANCE.chartAxisPointColor,\n strokeWidth: 1,\n strokeLinecap,\n strokeLinejoin,\n },\n tickLabels: assign({}, baseLabelStyles, {\n fill: textColorFromProps || ThemeVariables.INSTANCE.defaultTextColor,\n }),\n },\n },\n baseProps,\n ),\n polarDependentAxis: assign({\n style: {\n ticks: {\n fill: \"transparent\",\n size: 1,\n stroke: \"transparent\",\n },\n },\n }),\n bar: assign(\n {\n style: {\n data: {\n fill: c1,\n padding,\n strokeWidth: 0,\n },\n labels: baseLabelStyles,\n },\n },\n baseProps,\n ),\n boxplot: assign(\n {\n style: {\n max: { padding, stroke: c9, strokeWidth: 1 },\n maxLabels: assign({}, baseLabelStyles, { padding: 3 }),\n median: { padding, stroke: c9, strokeWidth: 1 },\n medianLabels: assign({}, baseLabelStyles, { padding: 3 }),\n min: { padding, stroke: c9, strokeWidth: 1 },\n minLabels: assign({}, baseLabelStyles, { padding: 3 }),\n q1: { padding, fill: c9 },\n q1Labels: assign({}, baseLabelStyles, { padding: 3 }),\n q3: { padding, fill: c9 },\n q3Labels: assign({}, baseLabelStyles, { padding: 3 }),\n },\n boxWidth: 20,\n },\n baseProps,\n ),\n candlestick: assign(\n {\n style: {\n data: {\n stroke: c9,\n },\n labels: assign({}, baseLabelStyles, { padding: 5 }),\n },\n candleColors: {\n positive: \"#ffffff\",\n negative: c9,\n },\n },\n baseProps,\n ),\n chart: baseProps,\n errorbar: assign(\n {\n borderWidth: 8,\n style: {\n data: {\n fill: \"transparent\",\n opacity: 1,\n stroke: c9,\n strokeWidth: 2,\n },\n labels: baseLabelStyles,\n },\n },\n baseProps,\n ),\n group: assign(\n {\n colorScale: colors,\n },\n baseProps,\n ),\n histogram: assign(\n {\n style: {\n data: {\n fill: c9,\n stroke: c10,\n strokeWidth: 2,\n },\n labels: baseLabelStyles,\n },\n },\n baseProps,\n ),\n legend: {\n colorScale: colors,\n gutter: 10,\n orientation: \"vertical\",\n titleOrientation: \"top\",\n style: {\n data: {\n type: \"circle\",\n },\n border: { stroke: 'none' }, // ThemeVariables.INSTANCE.chartLegendBorder\n labels: baseLabelStyles,\n title: assign({}, baseLabelStyles, { padding: 5, fontSize: ThemeVariables.INSTANCE.heading4FontSize }),\n },\n },\n line: assign(\n {\n style: {\n data: {\n fill: \"transparent\",\n opacity: 1,\n stroke: c1,\n strokeWidth: 2,\n },\n labels: baseLabelStyles,\n },\n },\n baseProps,\n ),\n pie: assign(\n {\n colorScale: colors,\n style: {\n data: {\n padding,\n stroke: '#ffffff',\n strokeWidth: 1,\n },\n labels: assign({}, baseLabelStyles, { padding: 20 }),\n },\n },\n baseProps,\n ),\n scatter: assign(\n {\n style: {\n data: {\n fill: c1,\n opacity: 1,\n stroke: \"transparent\",\n strokeWidth: 1,\n },\n labels: baseLabelStyles,\n },\n },\n baseProps,\n ),\n stack: assign(\n {\n colorScale: colors,\n },\n baseProps,\n ),\n tooltip: {\n style: assign({}, baseLabelStyles, { padding: 0, pointerEvents: \"none\" }),\n flyoutStyle: {\n stroke: c10,\n strokeWidth: 1,\n fill: \"#f0f0f0\",\n pointerEvents: \"none\",\n },\n flyoutPadding: 5,\n cornerRadius: 5,\n pointerLength: 10,\n },\n voronoi: assign(\n {\n style: {\n data: {\n fill: \"transparent\",\n stroke: \"transparent\",\n strokeWidth: 0,\n },\n labels: assign({}, baseLabelStyles, {\n padding: 5,\n pointerEvents: \"none\",\n }),\n flyout: {\n stroke: c10,\n strokeWidth: 1,\n fill: \"#f0f0f0\",\n pointerEvents: \"none\",\n },\n },\n },\n baseProps,\n ),\n };\n return baseChartTheme;\n }\n}\n\nexport default new ThemeFactory();\n"],"mappings":"AAAA,SAASA,MAAM,QAAQ,QAAQ;AAE/B,OAAOC,cAAc,MAAM,kDAAkD;AAE7E,MAAMC,MAA2B,GAAG;EAClC,aAAa,EAAE;IACbC,MAAM,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,CAAC;IAC5OC,OAAO,EAAE;MACP,iBAAiB,EAAE,SAAS;MAC5B,WAAW,EAAE;IACf;EACF,CAAC;EACD,WAAW,EAAE;IACXD,MAAM,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,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