@wavemaker/app-rn-runtime 11.4.0-next.25501 → 11.4.0-next.25701

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 (529) hide show
  1. app-rn-runtime/actions/base-action.js.map +1 -1
  2. app-rn-runtime/actions/login-action.js.map +1 -1
  3. app-rn-runtime/actions/logout-action.js.map +1 -1
  4. app-rn-runtime/actions/navigation-action.js +14 -2
  5. app-rn-runtime/actions/navigation-action.js.map +1 -1
  6. app-rn-runtime/actions/notification-action.js +5 -4
  7. app-rn-runtime/actions/notification-action.js.map +1 -1
  8. app-rn-runtime/actions/timer-action.js.map +1 -1
  9. app-rn-runtime/components/advanced/carousel/carousel-content/carousel-content.component.js +1 -1
  10. app-rn-runtime/components/advanced/carousel/carousel-content/carousel-content.component.js.map +1 -1
  11. app-rn-runtime/components/advanced/carousel/carousel-content/carousel-content.props.js.map +1 -1
  12. app-rn-runtime/components/advanced/carousel/carousel-template/carousel-template.component.js +1 -1
  13. app-rn-runtime/components/advanced/carousel/carousel-template/carousel-template.component.js.map +1 -1
  14. app-rn-runtime/components/advanced/carousel/carousel-template/carousel-template.props.js.map +1 -1
  15. app-rn-runtime/components/advanced/carousel/carousel.component.js +2 -2
  16. app-rn-runtime/components/advanced/carousel/carousel.component.js.map +1 -1
  17. app-rn-runtime/components/advanced/carousel/carousel.props.js.map +1 -1
  18. app-rn-runtime/components/advanced/carousel/carousel.styles.js +16 -0
  19. app-rn-runtime/components/advanced/carousel/carousel.styles.js.map +1 -1
  20. app-rn-runtime/components/advanced/login/login.component.js +1 -1
  21. app-rn-runtime/components/advanced/login/login.component.js.map +1 -1
  22. app-rn-runtime/components/advanced/login/login.props.js.map +1 -1
  23. app-rn-runtime/components/advanced/network-info-toaster/network-info-toaster.component.js +5 -5
  24. app-rn-runtime/components/advanced/network-info-toaster/network-info-toaster.component.js.map +1 -1
  25. app-rn-runtime/components/advanced/network-info-toaster/network-info-toaster.props.js.map +1 -1
  26. app-rn-runtime/components/advanced/webview/webview.component.js +1 -1
  27. app-rn-runtime/components/advanced/webview/webview.component.js.map +1 -1
  28. app-rn-runtime/components/advanced/webview/webview.props.js.map +1 -1
  29. app-rn-runtime/components/basic/anchor/anchor.component.js +2 -1
  30. app-rn-runtime/components/basic/anchor/anchor.component.js.map +1 -1
  31. app-rn-runtime/components/basic/anchor/anchor.props.js.map +1 -1
  32. app-rn-runtime/components/basic/anchor/anchor.styles.js +5 -0
  33. app-rn-runtime/components/basic/anchor/anchor.styles.js.map +1 -1
  34. app-rn-runtime/components/basic/animatedview.component.js +1 -3
  35. app-rn-runtime/components/basic/animatedview.component.js.map +1 -1
  36. app-rn-runtime/components/basic/audio/audio.component.js +240 -0
  37. app-rn-runtime/components/basic/audio/audio.component.js.map +1 -0
  38. app-rn-runtime/components/basic/audio/audio.props.js +15 -0
  39. app-rn-runtime/components/basic/audio/audio.props.js.map +1 -0
  40. app-rn-runtime/components/basic/audio/audio.styles.js +61 -0
  41. app-rn-runtime/components/basic/audio/audio.styles.js.map +1 -0
  42. app-rn-runtime/components/basic/button/button.component.js +1 -1
  43. app-rn-runtime/components/basic/button/button.component.js.map +1 -1
  44. app-rn-runtime/components/basic/button/button.props.js.map +1 -1
  45. app-rn-runtime/components/basic/button/button.styles.js.map +1 -1
  46. app-rn-runtime/components/basic/buttongroup/buttongroup.component.js +1 -1
  47. app-rn-runtime/components/basic/buttongroup/buttongroup.component.js.map +1 -1
  48. app-rn-runtime/components/basic/buttongroup/buttongroup.props.js.map +1 -1
  49. app-rn-runtime/components/basic/buttongroup/buttongroup.styles.js.map +1 -1
  50. app-rn-runtime/components/basic/custom/custom.component.js +25 -0
  51. app-rn-runtime/components/basic/custom/custom.component.js.map +1 -0
  52. app-rn-runtime/components/basic/custom/custom.props.js +16 -0
  53. app-rn-runtime/components/basic/custom/custom.props.js.map +1 -0
  54. app-rn-runtime/components/basic/custom/custom.styles.js +18 -0
  55. app-rn-runtime/components/basic/custom/custom.styles.js.map +1 -0
  56. app-rn-runtime/components/basic/icon/icon.component.js +1 -1
  57. app-rn-runtime/components/basic/icon/icon.component.js.map +1 -1
  58. app-rn-runtime/components/basic/icon/icon.props.js.map +1 -1
  59. app-rn-runtime/components/basic/icon/icon.styles.js +5 -0
  60. app-rn-runtime/components/basic/icon/icon.styles.js.map +1 -1
  61. app-rn-runtime/components/basic/label/label.component.js +3 -2
  62. app-rn-runtime/components/basic/label/label.component.js.map +1 -1
  63. app-rn-runtime/components/basic/label/label.props.js.map +1 -1
  64. app-rn-runtime/components/basic/label/label.styles.js +8 -0
  65. app-rn-runtime/components/basic/label/label.styles.js.map +1 -1
  66. app-rn-runtime/components/basic/lottie/lottie.component.js +137 -0
  67. app-rn-runtime/components/basic/lottie/lottie.component.js.map +1 -0
  68. app-rn-runtime/components/basic/lottie/lottie.props.js +14 -0
  69. app-rn-runtime/components/basic/lottie/lottie.props.js.map +1 -0
  70. app-rn-runtime/components/basic/lottie/lottie.styles.js +11 -0
  71. app-rn-runtime/components/basic/lottie/lottie.styles.js.map +1 -0
  72. app-rn-runtime/components/basic/message/message.component.js +1 -1
  73. app-rn-runtime/components/basic/message/message.component.js.map +1 -1
  74. app-rn-runtime/components/basic/message/message.props.js.map +1 -1
  75. app-rn-runtime/components/basic/message/message.styles.js +22 -0
  76. app-rn-runtime/components/basic/message/message.styles.js.map +1 -1
  77. app-rn-runtime/components/basic/modal/modal.component.js.map +1 -1
  78. app-rn-runtime/components/basic/modal/modal.props.js.map +1 -1
  79. app-rn-runtime/components/basic/modal/modal.styles.js.map +1 -1
  80. app-rn-runtime/components/basic/picture/picture.component.js +40 -29
  81. app-rn-runtime/components/basic/picture/picture.component.js.map +1 -1
  82. app-rn-runtime/components/basic/picture/picture.props.js.map +1 -1
  83. app-rn-runtime/components/basic/picture/picture.styles.js.map +1 -1
  84. app-rn-runtime/components/basic/progress-bar/progress-bar.component.js +3 -2
  85. app-rn-runtime/components/basic/progress-bar/progress-bar.component.js.map +1 -1
  86. app-rn-runtime/components/basic/progress-bar/progress-bar.props.js.map +1 -1
  87. app-rn-runtime/components/basic/progress-bar/progress-bar.styles.js.map +1 -1
  88. app-rn-runtime/components/basic/progress-circle/progress-circle.component.js +1 -1
  89. app-rn-runtime/components/basic/progress-circle/progress-circle.component.js.map +1 -1
  90. app-rn-runtime/components/basic/progress-circle/progress-circle.props.js.map +1 -1
  91. app-rn-runtime/components/basic/progress-circle/progress-circle.styles.js.map +1 -1
  92. app-rn-runtime/components/basic/search/local-data-provider.js.map +1 -1
  93. app-rn-runtime/components/basic/search/search.component.js +5 -2
  94. app-rn-runtime/components/basic/search/search.component.js.map +1 -1
  95. app-rn-runtime/components/basic/search/search.props.js +1 -0
  96. app-rn-runtime/components/basic/search/search.props.js.map +1 -1
  97. app-rn-runtime/components/basic/search/search.styles.js +47 -0
  98. app-rn-runtime/components/basic/search/search.styles.js.map +1 -1
  99. app-rn-runtime/components/basic/skeleton/skeleton.component.js.map +1 -1
  100. app-rn-runtime/components/basic/spinner/spinner.component.js +13 -11
  101. app-rn-runtime/components/basic/spinner/spinner.component.js.map +1 -1
  102. app-rn-runtime/components/basic/spinner/spinner.props.js.map +1 -1
  103. app-rn-runtime/components/basic/spinner/spinner.styles.js +8 -0
  104. app-rn-runtime/components/basic/spinner/spinner.styles.js.map +1 -1
  105. app-rn-runtime/components/basic/video/video.component.js +56 -0
  106. app-rn-runtime/components/basic/video/video.component.js.map +1 -0
  107. app-rn-runtime/components/basic/video/video.props.js +22 -0
  108. app-rn-runtime/components/basic/video/video.props.js.map +1 -0
  109. app-rn-runtime/components/basic/video/video.styles.js +11 -0
  110. app-rn-runtime/components/basic/video/video.styles.js.map +1 -0
  111. app-rn-runtime/components/chart/area-chart/area-chart.component.js.map +1 -1
  112. app-rn-runtime/components/chart/bar-chart/bar-chart.component.js.map +1 -1
  113. app-rn-runtime/components/chart/bar-chart/bar-chart.props.js.map +1 -1
  114. app-rn-runtime/components/chart/basechart.component.js +6 -2
  115. app-rn-runtime/components/chart/basechart.component.js.map +1 -1
  116. app-rn-runtime/components/chart/basechart.props.js +1 -0
  117. app-rn-runtime/components/chart/basechart.props.js.map +1 -1
  118. app-rn-runtime/components/chart/basechart.styles.js +17 -0
  119. app-rn-runtime/components/chart/basechart.styles.js.map +1 -1
  120. app-rn-runtime/components/chart/bubble-chart/bubble-chart.component.js.map +1 -1
  121. app-rn-runtime/components/chart/column-chart/column-chart.component.js.map +1 -1
  122. app-rn-runtime/components/chart/donut-chart/donut-chart.component.js.map +1 -1
  123. app-rn-runtime/components/chart/donut-chart/donut-chart.props.js +0 -1
  124. app-rn-runtime/components/chart/donut-chart/donut-chart.props.js.map +1 -1
  125. app-rn-runtime/components/chart/legend/legend.component.js +36 -0
  126. app-rn-runtime/components/chart/legend/legend.component.js.map +1 -0
  127. app-rn-runtime/components/chart/line-chart/line-chart.component.js.map +1 -1
  128. app-rn-runtime/components/chart/line-chart/line-chart.props.js.map +1 -1
  129. app-rn-runtime/components/chart/pie-chart/pie-chart.component.js +119 -40
  130. app-rn-runtime/components/chart/pie-chart/pie-chart.component.js.map +1 -1
  131. app-rn-runtime/components/chart/pie-chart/pie-chart.props.js +1 -2
  132. app-rn-runtime/components/chart/pie-chart/pie-chart.props.js.map +1 -1
  133. app-rn-runtime/components/chart/theme/chart.theme.js.map +1 -1
  134. app-rn-runtime/components/container/accordion/accordion.component.js +75 -119
  135. app-rn-runtime/components/container/accordion/accordion.component.js.map +1 -1
  136. app-rn-runtime/components/container/accordion/accordion.props.js +1 -0
  137. app-rn-runtime/components/container/accordion/accordion.props.js.map +1 -1
  138. app-rn-runtime/components/container/accordion/accordion.styles.js +14 -4
  139. app-rn-runtime/components/container/accordion/accordion.styles.js.map +1 -1
  140. app-rn-runtime/components/container/accordion/accordionpane/accordionpane.component.js +49 -8
  141. app-rn-runtime/components/container/accordion/accordionpane/accordionpane.component.js.map +1 -1
  142. app-rn-runtime/components/container/accordion/accordionpane/accordionpane.props.js.map +1 -1
  143. app-rn-runtime/components/container/container.component.js +1 -1
  144. app-rn-runtime/components/container/container.component.js.map +1 -1
  145. app-rn-runtime/components/container/container.props.js.map +1 -1
  146. app-rn-runtime/components/container/container.styles.js.map +1 -1
  147. app-rn-runtime/components/container/layoutgrid/gridcolumn/gridcolumn.component.js +1 -1
  148. app-rn-runtime/components/container/layoutgrid/gridcolumn/gridcolumn.component.js.map +1 -1
  149. app-rn-runtime/components/container/layoutgrid/gridcolumn/gridcolumn.props.js.map +1 -1
  150. app-rn-runtime/components/container/layoutgrid/gridrow/gridrow.component.js +1 -1
  151. app-rn-runtime/components/container/layoutgrid/gridrow/gridrow.component.js.map +1 -1
  152. app-rn-runtime/components/container/layoutgrid/gridrow/gridrow.props.js.map +1 -1
  153. app-rn-runtime/components/container/layoutgrid/layoutgrid.component.js +1 -1
  154. app-rn-runtime/components/container/layoutgrid/layoutgrid.component.js.map +1 -1
  155. app-rn-runtime/components/container/layoutgrid/layoutgrid.props.js.map +1 -1
  156. app-rn-runtime/components/container/layoutgrid/layoutgrid.styles.js.map +1 -1
  157. app-rn-runtime/components/container/linearlayout/linearlayout.component.js +2 -1
  158. app-rn-runtime/components/container/linearlayout/linearlayout.component.js.map +1 -1
  159. app-rn-runtime/components/container/linearlayout/linearlayout.props.js.map +1 -1
  160. app-rn-runtime/components/container/linearlayout/linearlayoutitem/linearlayoutitem.component.js +3 -3
  161. app-rn-runtime/components/container/linearlayout/linearlayoutitem/linearlayoutitem.component.js.map +1 -1
  162. app-rn-runtime/components/container/linearlayout/linearlayoutitem/linearlayoutitem.props.js.map +1 -1
  163. app-rn-runtime/components/container/panel/panel-content/panel-content.component.js +1 -1
  164. app-rn-runtime/components/container/panel/panel-content/panel-content.component.js.map +1 -1
  165. app-rn-runtime/components/container/panel/panel-content/panel-content.props.js.map +1 -1
  166. app-rn-runtime/components/container/panel/panel-footer/panel-footer.component.js +1 -1
  167. app-rn-runtime/components/container/panel/panel-footer/panel-footer.component.js.map +1 -1
  168. app-rn-runtime/components/container/panel/panel-footer/panel-footer.props.js.map +1 -1
  169. app-rn-runtime/components/container/panel/panel.component.js +1 -1
  170. app-rn-runtime/components/container/panel/panel.component.js.map +1 -1
  171. app-rn-runtime/components/container/panel/panel.props.js.map +1 -1
  172. app-rn-runtime/components/container/panel/panel.styles.js +9 -0
  173. app-rn-runtime/components/container/panel/panel.styles.js.map +1 -1
  174. app-rn-runtime/components/container/partial-host.component.js.map +1 -1
  175. app-rn-runtime/components/container/tabs/tabheader/tabheader.component.js +42 -9
  176. app-rn-runtime/components/container/tabs/tabheader/tabheader.component.js.map +1 -1
  177. app-rn-runtime/components/container/tabs/tabheader/tabheader.props.js.map +1 -1
  178. app-rn-runtime/components/container/tabs/tabheader/tabheader.styles.js +12 -2
  179. app-rn-runtime/components/container/tabs/tabheader/tabheader.styles.js.map +1 -1
  180. app-rn-runtime/components/container/tabs/tabpane/tabpane.component.js +5 -2
  181. app-rn-runtime/components/container/tabs/tabpane/tabpane.component.js.map +1 -1
  182. app-rn-runtime/components/container/tabs/tabpane/tabpane.props.js.map +1 -1
  183. app-rn-runtime/components/container/tabs/tabs.component.js +84 -65
  184. app-rn-runtime/components/container/tabs/tabs.component.js.map +1 -1
  185. app-rn-runtime/components/container/tabs/tabs.props.js +1 -0
  186. app-rn-runtime/components/container/tabs/tabs.props.js.map +1 -1
  187. app-rn-runtime/components/container/tabs/tabs.styles.js +40 -1
  188. app-rn-runtime/components/container/tabs/tabs.styles.js.map +1 -1
  189. app-rn-runtime/components/container/tile/tile.component.js +1 -1
  190. app-rn-runtime/components/container/tile/tile.component.js.map +1 -1
  191. app-rn-runtime/components/container/tile/tile.props.js.map +1 -1
  192. app-rn-runtime/components/container/tile/tile.styles.js.map +1 -1
  193. app-rn-runtime/components/container/wizard/wizard.component.js +16 -7
  194. app-rn-runtime/components/container/wizard/wizard.component.js.map +1 -1
  195. app-rn-runtime/components/container/wizard/wizard.props.js.map +1 -1
  196. app-rn-runtime/components/container/wizard/wizard.styles.js +53 -1
  197. app-rn-runtime/components/container/wizard/wizard.styles.js.map +1 -1
  198. app-rn-runtime/components/container/wizard/wizardstep/wizardstep.component.js +1 -1
  199. app-rn-runtime/components/container/wizard/wizardstep/wizardstep.component.js.map +1 -1
  200. app-rn-runtime/components/container/wizard/wizardstep/wizardstep.props.js.map +1 -1
  201. app-rn-runtime/components/data/card/card-content/card-content.component.js +1 -1
  202. app-rn-runtime/components/data/card/card-content/card-content.component.js.map +1 -1
  203. app-rn-runtime/components/data/card/card-content/card-content.props.js.map +1 -1
  204. app-rn-runtime/components/data/card/card-footer/card-footer.component.js +1 -1
  205. app-rn-runtime/components/data/card/card-footer/card-footer.component.js.map +1 -1
  206. app-rn-runtime/components/data/card/card-footer/card-footer.props.js.map +1 -1
  207. app-rn-runtime/components/data/card/card.component.js +1 -1
  208. app-rn-runtime/components/data/card/card.component.js.map +1 -1
  209. app-rn-runtime/components/data/card/card.props.js.map +1 -1
  210. app-rn-runtime/components/data/card/card.styles.js.map +1 -1
  211. app-rn-runtime/components/data/form/form-action/form-action.component.js +1 -6
  212. app-rn-runtime/components/data/form/form-action/form-action.component.js.map +1 -1
  213. app-rn-runtime/components/data/form/form-action/form-action.props.js +3 -1
  214. app-rn-runtime/components/data/form/form-action/form-action.props.js.map +1 -1
  215. app-rn-runtime/components/data/form/form-action/form-action.styles.js.map +1 -1
  216. app-rn-runtime/components/data/form/form-body/form-body.component.js +1 -1
  217. app-rn-runtime/components/data/form/form-body/form-body.component.js.map +1 -1
  218. app-rn-runtime/components/data/form/form-body/form-body.props.js.map +1 -1
  219. app-rn-runtime/components/data/form/form-field/form-field.component.js +24 -3
  220. app-rn-runtime/components/data/form/form-field/form-field.component.js.map +1 -1
  221. app-rn-runtime/components/data/form/form-field/form-field.props.js +8 -0
  222. app-rn-runtime/components/data/form/form-field/form-field.props.js.map +1 -1
  223. app-rn-runtime/components/data/form/form-field/form-field.styles.js.map +1 -1
  224. app-rn-runtime/components/data/form/form-footer/form-footer.component.js +1 -1
  225. app-rn-runtime/components/data/form/form-footer/form-footer.component.js.map +1 -1
  226. app-rn-runtime/components/data/form/form-footer/form-footer.props.js.map +1 -1
  227. app-rn-runtime/components/data/form/form.component.js +95 -34
  228. app-rn-runtime/components/data/form/form.component.js.map +1 -1
  229. app-rn-runtime/components/data/form/form.props.js +2 -0
  230. app-rn-runtime/components/data/form/form.props.js.map +1 -1
  231. app-rn-runtime/components/data/form/form.styles.js +6 -0
  232. app-rn-runtime/components/data/form/form.styles.js.map +1 -1
  233. app-rn-runtime/components/data/list/list-template/list-template.component.js +1 -1
  234. app-rn-runtime/components/data/list/list-template/list-template.component.js.map +1 -1
  235. app-rn-runtime/components/data/list/list-template/list-template.props.js.map +1 -1
  236. app-rn-runtime/components/data/list/list-template/list-template.styles.js.map +1 -1
  237. app-rn-runtime/components/data/list/list.component.js +94 -24
  238. app-rn-runtime/components/data/list/list.component.js.map +1 -1
  239. app-rn-runtime/components/data/list/list.props.js +2 -0
  240. app-rn-runtime/components/data/list/list.props.js.map +1 -1
  241. app-rn-runtime/components/data/list/list.styles.js.map +1 -1
  242. app-rn-runtime/components/data/liveform/liveform.component.js +102 -0
  243. app-rn-runtime/components/data/liveform/liveform.component.js.map +1 -0
  244. app-rn-runtime/components/device/barcodescanner/barcodescanner.component.js +3 -2
  245. app-rn-runtime/components/device/barcodescanner/barcodescanner.component.js.map +1 -1
  246. app-rn-runtime/components/device/barcodescanner/barcodescanner.props.js.map +1 -1
  247. app-rn-runtime/components/device/camera/camera.component.js +9 -4
  248. app-rn-runtime/components/device/camera/camera.component.js.map +1 -1
  249. app-rn-runtime/components/device/camera/camera.props.js +0 -1
  250. app-rn-runtime/components/device/camera/camera.props.js.map +1 -1
  251. app-rn-runtime/components/dialogs/alertdialog/alertdialog.component.js.map +1 -1
  252. app-rn-runtime/components/dialogs/alertdialog/alertdialog.props.js.map +1 -1
  253. app-rn-runtime/components/dialogs/alertdialog/alertdialog.styles.js.map +1 -1
  254. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.component.js.map +1 -1
  255. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.props.js.map +1 -1
  256. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.styles.js +9 -0
  257. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.styles.js.map +1 -1
  258. app-rn-runtime/components/dialogs/dialog/dialog.component.js +6 -3
  259. app-rn-runtime/components/dialogs/dialog/dialog.component.js.map +1 -1
  260. app-rn-runtime/components/dialogs/dialog/dialog.props.js.map +1 -1
  261. app-rn-runtime/components/dialogs/dialogactions/dialogactions.component.js +1 -1
  262. app-rn-runtime/components/dialogs/dialogactions/dialogactions.component.js.map +1 -1
  263. app-rn-runtime/components/dialogs/dialogactions/dialogactions.props.js.map +1 -1
  264. app-rn-runtime/components/dialogs/dialogcontent/dialogcontent.component.js +1 -1
  265. app-rn-runtime/components/dialogs/dialogcontent/dialogcontent.component.js.map +1 -1
  266. app-rn-runtime/components/dialogs/dialogcontent/dialogcontent.props.js.map +1 -1
  267. app-rn-runtime/components/input/basedataset/basedataset.component.js.map +1 -1
  268. app-rn-runtime/components/input/basedataset/basedataset.props.js.map +1 -1
  269. app-rn-runtime/components/input/baseinput/baseinput.component.js +10 -3
  270. app-rn-runtime/components/input/baseinput/baseinput.component.js.map +1 -1
  271. app-rn-runtime/components/input/baseinput/baseinput.props.js.map +1 -1
  272. app-rn-runtime/components/input/basenumber/basenumber.component.js +1 -1
  273. app-rn-runtime/components/input/basenumber/basenumber.component.js.map +1 -1
  274. app-rn-runtime/components/input/basenumber/basenumber.props.js.map +1 -1
  275. app-rn-runtime/components/input/calendar/calendar.component.js +1 -1
  276. app-rn-runtime/components/input/calendar/calendar.component.js.map +1 -1
  277. app-rn-runtime/components/input/calendar/calendar.props.js.map +1 -1
  278. app-rn-runtime/components/input/calendar/calendar.styles.js +22 -0
  279. app-rn-runtime/components/input/calendar/calendar.styles.js.map +1 -1
  280. app-rn-runtime/components/input/calendar/views/month-view.js +1 -0
  281. app-rn-runtime/components/input/calendar/views/month-view.js.map +1 -1
  282. app-rn-runtime/components/input/checkbox/checkbox.component.js +1 -16
  283. app-rn-runtime/components/input/checkbox/checkbox.component.js.map +1 -1
  284. app-rn-runtime/components/input/checkbox/checkbox.props.js +1 -1
  285. app-rn-runtime/components/input/checkbox/checkbox.props.js.map +1 -1
  286. app-rn-runtime/components/input/checkbox/checkbox.styles.js.map +1 -1
  287. app-rn-runtime/components/input/checkboxset/checkboxset.component.js +0 -38
  288. app-rn-runtime/components/input/checkboxset/checkboxset.component.js.map +1 -1
  289. app-rn-runtime/components/input/checkboxset/checkboxset.props.js.map +1 -1
  290. app-rn-runtime/components/input/checkboxset/checkboxset.styles.js.map +1 -1
  291. app-rn-runtime/components/input/chips/chips.component.js +1 -0
  292. app-rn-runtime/components/input/chips/chips.component.js.map +1 -1
  293. app-rn-runtime/components/input/chips/chips.props.js.map +1 -1
  294. app-rn-runtime/components/input/composite/composite.component.js +1 -1
  295. app-rn-runtime/components/input/composite/composite.component.js.map +1 -1
  296. app-rn-runtime/components/input/composite/composite.props.js.map +1 -1
  297. app-rn-runtime/components/input/currency/currency.component.js +6 -4
  298. app-rn-runtime/components/input/currency/currency.component.js.map +1 -1
  299. app-rn-runtime/components/input/currency/currency.props.js +1 -1
  300. app-rn-runtime/components/input/currency/currency.props.js.map +1 -1
  301. app-rn-runtime/components/input/currency/currency.styles.js +9 -0
  302. app-rn-runtime/components/input/currency/currency.styles.js.map +1 -1
  303. app-rn-runtime/components/input/epoch/base-datetime.component.js +6 -3
  304. app-rn-runtime/components/input/epoch/base-datetime.component.js.map +1 -1
  305. app-rn-runtime/components/input/epoch/date/date.component.js.map +1 -1
  306. app-rn-runtime/components/input/epoch/date/date.props.js.map +1 -1
  307. app-rn-runtime/components/input/epoch/date/date.styles.js +9 -0
  308. app-rn-runtime/components/input/epoch/date/date.styles.js.map +1 -1
  309. app-rn-runtime/components/input/epoch/date-picker.component.js.map +1 -1
  310. app-rn-runtime/components/input/epoch/datetime/datetime.component.js.map +1 -1
  311. app-rn-runtime/components/input/epoch/datetime/datetime.props.js.map +1 -1
  312. app-rn-runtime/components/input/epoch/datetime/datetime.styles.js +9 -0
  313. app-rn-runtime/components/input/epoch/datetime/datetime.styles.js.map +1 -1
  314. app-rn-runtime/components/input/epoch/time/time.component.js.map +1 -1
  315. app-rn-runtime/components/input/epoch/time/time.props.js.map +1 -1
  316. app-rn-runtime/components/input/epoch/time/time.styles.js +9 -0
  317. app-rn-runtime/components/input/epoch/time/time.styles.js.map +1 -1
  318. app-rn-runtime/components/input/fileupload/fileupload.component.js +1 -1
  319. app-rn-runtime/components/input/fileupload/fileupload.component.js.map +1 -1
  320. app-rn-runtime/components/input/fileupload/fileupload.props.js.map +1 -1
  321. app-rn-runtime/components/input/number/number.component.js +6 -13
  322. app-rn-runtime/components/input/number/number.component.js.map +1 -1
  323. app-rn-runtime/components/input/number/number.props.js +1 -1
  324. app-rn-runtime/components/input/number/number.props.js.map +1 -1
  325. app-rn-runtime/components/input/number/number.styles.js +5 -0
  326. app-rn-runtime/components/input/number/number.styles.js.map +1 -1
  327. app-rn-runtime/components/input/radioset/radioset.component.js +3 -41
  328. app-rn-runtime/components/input/radioset/radioset.component.js.map +1 -1
  329. app-rn-runtime/components/input/radioset/radioset.props.js.map +1 -1
  330. app-rn-runtime/components/input/radioset/radioset.styles.js +8 -0
  331. app-rn-runtime/components/input/radioset/radioset.styles.js.map +1 -1
  332. app-rn-runtime/components/input/rating/rating.component.js +2 -2
  333. app-rn-runtime/components/input/rating/rating.component.js.map +1 -1
  334. app-rn-runtime/components/input/rating/rating.props.js.map +1 -1
  335. app-rn-runtime/components/input/select/select.component.js +14 -2
  336. app-rn-runtime/components/input/select/select.component.js.map +1 -1
  337. app-rn-runtime/components/input/select/select.props.js.map +1 -1
  338. app-rn-runtime/components/input/select/select.styles.js +18 -1
  339. app-rn-runtime/components/input/select/select.styles.js.map +1 -1
  340. app-rn-runtime/components/input/slider/slider.component.js +3 -2
  341. app-rn-runtime/components/input/slider/slider.component.js.map +1 -1
  342. app-rn-runtime/components/input/slider/slider.props.js.map +1 -1
  343. app-rn-runtime/components/input/switch/switch.component.js +19 -22
  344. app-rn-runtime/components/input/switch/switch.component.js.map +1 -1
  345. app-rn-runtime/components/input/switch/switch.props.js.map +1 -1
  346. app-rn-runtime/components/input/switch/switch.styles.js +43 -7
  347. app-rn-runtime/components/input/switch/switch.styles.js.map +1 -1
  348. app-rn-runtime/components/input/text/text.component.js +6 -13
  349. app-rn-runtime/components/input/text/text.component.js.map +1 -1
  350. app-rn-runtime/components/input/text/text.props.js.map +1 -1
  351. app-rn-runtime/components/input/text/text.styles.js +5 -0
  352. app-rn-runtime/components/input/text/text.styles.js.map +1 -1
  353. app-rn-runtime/components/input/textarea/textarea.component.js +5 -13
  354. app-rn-runtime/components/input/textarea/textarea.component.js.map +1 -1
  355. app-rn-runtime/components/input/textarea/textarea.props.js.map +1 -1
  356. app-rn-runtime/components/input/textarea/textarea.styles.js +5 -0
  357. app-rn-runtime/components/input/textarea/textarea.styles.js.map +1 -1
  358. app-rn-runtime/components/input/toggle/toggle.component.js +17 -11
  359. app-rn-runtime/components/input/toggle/toggle.component.js.map +1 -1
  360. app-rn-runtime/components/input/toggle/toggle.props.js.map +1 -1
  361. app-rn-runtime/components/input/toggle/toggle.styles.js +28 -3
  362. app-rn-runtime/components/input/toggle/toggle.styles.js.map +1 -1
  363. app-rn-runtime/components/navigation/appnavbar/appnavbar.component.js +1 -1
  364. app-rn-runtime/components/navigation/appnavbar/appnavbar.component.js.map +1 -1
  365. app-rn-runtime/components/navigation/appnavbar/appnavbar.props.js.map +1 -1
  366. app-rn-runtime/components/navigation/appnavbar/appnavbar.styles.js.map +1 -1
  367. app-rn-runtime/components/navigation/basenav/basenav.component.js.map +1 -1
  368. app-rn-runtime/components/navigation/basenav/basenav.props.js +1 -0
  369. app-rn-runtime/components/navigation/basenav/basenav.props.js.map +1 -1
  370. app-rn-runtime/components/navigation/menu/menu.component.js +2 -1
  371. app-rn-runtime/components/navigation/menu/menu.component.js.map +1 -1
  372. app-rn-runtime/components/navigation/menu/menu.props.js.map +1 -1
  373. app-rn-runtime/components/navigation/menu/menu.styles.js +6 -0
  374. app-rn-runtime/components/navigation/menu/menu.styles.js.map +1 -1
  375. app-rn-runtime/components/navigation/navbar/navbar.component.js +2 -0
  376. app-rn-runtime/components/navigation/navbar/navbar.component.js.map +1 -1
  377. app-rn-runtime/components/navigation/navbar/navbar.props.js.map +1 -1
  378. app-rn-runtime/components/navigation/navbar/navbar.styles.js.map +1 -1
  379. app-rn-runtime/components/navigation/navitem/navitem.component.js +4 -3
  380. app-rn-runtime/components/navigation/navitem/navitem.component.js.map +1 -1
  381. app-rn-runtime/components/navigation/navitem/navitem.props.js +1 -0
  382. app-rn-runtime/components/navigation/navitem/navitem.props.js.map +1 -1
  383. app-rn-runtime/components/navigation/navitem/navitem.styles.js.map +1 -1
  384. app-rn-runtime/components/navigation/popover/popover.component.js +1 -1
  385. app-rn-runtime/components/navigation/popover/popover.component.js.map +1 -1
  386. app-rn-runtime/components/navigation/popover/popover.props.js.map +1 -1
  387. app-rn-runtime/components/navigation/popover/popover.styles.js.map +1 -1
  388. app-rn-runtime/components/page/content/content.component.js +1 -1
  389. app-rn-runtime/components/page/content/content.component.js.map +1 -1
  390. app-rn-runtime/components/page/left-panel/left-panel.component.js +1 -1
  391. app-rn-runtime/components/page/left-panel/left-panel.component.js.map +1 -1
  392. app-rn-runtime/components/page/left-panel/left-panel.props.js.map +1 -1
  393. app-rn-runtime/components/page/page-content/page-content.component.js +2 -2
  394. app-rn-runtime/components/page/page-content/page-content.component.js.map +1 -1
  395. app-rn-runtime/components/page/page-content/page-content.props.js.map +1 -1
  396. app-rn-runtime/components/page/page.component.js +1 -1
  397. app-rn-runtime/components/page/page.component.js.map +1 -1
  398. app-rn-runtime/components/page/partial/partial.component.js +1 -1
  399. app-rn-runtime/components/page/partial/partial.component.js.map +1 -1
  400. app-rn-runtime/components/page/partial-container/partial-container.component.js +1 -1
  401. app-rn-runtime/components/page/partial-container/partial-container.component.js.map +1 -1
  402. app-rn-runtime/components/page/partial-container/partial-container.props.js.map +1 -1
  403. app-rn-runtime/components/page/partial-container/partial-container.styles.js +2 -1
  404. app-rn-runtime/components/page/partial-container/partial-container.styles.js.map +1 -1
  405. app-rn-runtime/components/page/tabbar/tabbar.component.js +2 -1
  406. app-rn-runtime/components/page/tabbar/tabbar.component.js.map +1 -1
  407. app-rn-runtime/components/page/tabbar/tabbar.props.js.map +1 -1
  408. app-rn-runtime/components/prefab/prefab-container.component.js +1 -1
  409. app-rn-runtime/components/prefab/prefab-container.component.js.map +1 -1
  410. app-rn-runtime/core/asset.provider.js +5 -0
  411. app-rn-runtime/core/asset.provider.js.map +1 -0
  412. app-rn-runtime/core/base.component.js +141 -57
  413. app-rn-runtime/core/base.component.js.map +1 -1
  414. app-rn-runtime/core/components/textinput.component.js +37 -0
  415. app-rn-runtime/core/components/textinput.component.js.map +1 -0
  416. app-rn-runtime/core/device/camera-service.js.map +1 -1
  417. app-rn-runtime/core/device/scan-service.js.map +1 -1
  418. app-rn-runtime/core/display.manager.js.map +1 -1
  419. app-rn-runtime/core/event-notifier.js.map +1 -1
  420. app-rn-runtime/core/fixed-view.component.js.map +1 -1
  421. app-rn-runtime/core/formatters.js.map +1 -1
  422. app-rn-runtime/core/i18n.service.js +2 -0
  423. app-rn-runtime/core/i18n.service.js.map +1 -0
  424. app-rn-runtime/core/if.component.js +3 -3
  425. app-rn-runtime/core/if.component.js.map +1 -1
  426. app-rn-runtime/core/imageSizeEstimator.js +1 -0
  427. app-rn-runtime/core/imageSizeEstimator.js.map +1 -1
  428. app-rn-runtime/core/injector.js +16 -1
  429. app-rn-runtime/core/injector.js.map +1 -1
  430. app-rn-runtime/core/logger.js +4 -1
  431. app-rn-runtime/core/logger.js.map +1 -1
  432. app-rn-runtime/core/modal.service.js.map +1 -1
  433. app-rn-runtime/core/navigation.service.js.map +1 -1
  434. app-rn-runtime/core/network.service.js +17 -15
  435. app-rn-runtime/core/network.service.js.map +1 -1
  436. app-rn-runtime/core/partial.service.js.map +1 -1
  437. app-rn-runtime/core/props.provider.js +1 -1
  438. app-rn-runtime/core/props.provider.js.map +1 -1
  439. app-rn-runtime/core/scroll-view.component.js.map +1 -1
  440. app-rn-runtime/core/security.service.js.map +1 -1
  441. app-rn-runtime/core/spinner.service.js.map +1 -1
  442. app-rn-runtime/core/storage.service.js.map +1 -1
  443. app-rn-runtime/core/tappable.component.js +20 -4
  444. app-rn-runtime/core/tappable.component.js.map +1 -1
  445. app-rn-runtime/core/toast.service.js.map +1 -1
  446. app-rn-runtime/core/utils.js +28 -0
  447. app-rn-runtime/core/utils.js.map +1 -1
  448. app-rn-runtime/core/viewport.js.map +1 -1
  449. app-rn-runtime/gestures/swipe.animation.js +110 -0
  450. app-rn-runtime/gestures/swipe.animation.js.map +1 -0
  451. app-rn-runtime/package.json +42 -41
  452. app-rn-runtime/runtime/App.js +38 -22
  453. app-rn-runtime/runtime/App.js.map +1 -1
  454. app-rn-runtime/runtime/App.navigator.js +13 -14
  455. app-rn-runtime/runtime/App.navigator.js.map +1 -1
  456. app-rn-runtime/runtime/base-fragment.component.js +26 -11
  457. app-rn-runtime/runtime/base-fragment.component.js.map +1 -1
  458. app-rn-runtime/runtime/base-page.component.js +2 -0
  459. app-rn-runtime/runtime/base-page.component.js.map +1 -1
  460. app-rn-runtime/runtime/base-partial.component.js.map +1 -1
  461. app-rn-runtime/runtime/base-prefab.component.js +5 -7
  462. app-rn-runtime/runtime/base-prefab.component.js.map +1 -1
  463. app-rn-runtime/runtime/lib-patch.js.map +1 -1
  464. app-rn-runtime/runtime/memo.component.js.map +1 -1
  465. app-rn-runtime/runtime/navigator/drawer.navigator.js +4 -0
  466. app-rn-runtime/runtime/navigator/drawer.navigator.js.map +1 -1
  467. app-rn-runtime/runtime/navigator/stack.navigator.js +5 -1
  468. app-rn-runtime/runtime/navigator/stack.navigator.js.map +1 -1
  469. app-rn-runtime/runtime/services/app-display-manager.service.js.map +1 -1
  470. app-rn-runtime/runtime/services/app-i18n.service.js +26 -3
  471. app-rn-runtime/runtime/services/app-i18n.service.js.map +1 -1
  472. app-rn-runtime/runtime/services/app-modal.service.js.map +1 -1
  473. app-rn-runtime/runtime/services/app-security.service.js +7 -7
  474. app-rn-runtime/runtime/services/app-security.service.js.map +1 -1
  475. app-rn-runtime/runtime/services/app-spinner.service.js +8 -3
  476. app-rn-runtime/runtime/services/app-spinner.service.js.map +1 -1
  477. app-rn-runtime/runtime/services/app-toast.service.js +1 -1
  478. app-rn-runtime/runtime/services/app-toast.service.js.map +1 -1
  479. app-rn-runtime/runtime/services/device/calendar-service.js.map +1 -1
  480. app-rn-runtime/runtime/services/device/camera-service.js +30 -9
  481. app-rn-runtime/runtime/services/device/camera-service.js.map +1 -1
  482. app-rn-runtime/runtime/services/device/contacts-service.js.map +1 -1
  483. app-rn-runtime/runtime/services/device/location-service.js.map +1 -1
  484. app-rn-runtime/runtime/services/device/permissions.js.map +1 -1
  485. app-rn-runtime/runtime/services/device/scan-service.js +15 -14
  486. app-rn-runtime/runtime/services/device/scan-service.js.map +1 -1
  487. app-rn-runtime/runtime/services/partial.service.js.map +1 -1
  488. app-rn-runtime/runtime/services/webprocess.service.js.map +1 -1
  489. app-rn-runtime/runtime/watcher.js +3 -1
  490. app-rn-runtime/runtime/watcher.js.map +1 -1
  491. app-rn-runtime/styles/MediaQueryList.js.map +1 -1
  492. app-rn-runtime/styles/background.component.js +298 -0
  493. app-rn-runtime/styles/background.component.js.map +1 -0
  494. app-rn-runtime/styles/style-prop.validator.js +42 -8
  495. app-rn-runtime/styles/style-prop.validator.js.map +1 -1
  496. app-rn-runtime/styles/style-props.js +93 -0
  497. app-rn-runtime/styles/style-props.js.map +1 -0
  498. app-rn-runtime/styles/theme.js +18 -42
  499. app-rn-runtime/styles/theme.js.map +1 -1
  500. app-rn-runtime/styles/theme.variables.js +58 -2
  501. app-rn-runtime/styles/theme.variables.js.map +1 -1
  502. app-rn-runtime/variables/base-variable.js +3 -3
  503. app-rn-runtime/variables/base-variable.js.map +1 -1
  504. app-rn-runtime/variables/device/calendar/create-event.operation.js.map +1 -1
  505. app-rn-runtime/variables/device/calendar/delete-event.operation.js.map +1 -1
  506. app-rn-runtime/variables/device/calendar/get-events.operation.js.map +1 -1
  507. app-rn-runtime/variables/device/camera/capture-image.operation.js.map +1 -1
  508. app-rn-runtime/variables/device/camera/capture-video.operation.js.map +1 -1
  509. app-rn-runtime/variables/device/contacts/get-contacts.operation.js.map +1 -1
  510. app-rn-runtime/variables/device/device/app-info.operation.js.map +1 -1
  511. app-rn-runtime/variables/device/device/current-geo-position.operation.js.map +1 -1
  512. app-rn-runtime/variables/device/device/device-info.operation.js.map +1 -1
  513. app-rn-runtime/variables/device/device/network-info.operation.js.map +1 -1
  514. app-rn-runtime/variables/device/device/vibrate.operation.js.map +1 -1
  515. app-rn-runtime/variables/device/file/upload-file.operation.js +43 -21
  516. app-rn-runtime/variables/device/file/upload-file.operation.js.map +1 -1
  517. app-rn-runtime/variables/device/operation.provider.js.map +1 -1
  518. app-rn-runtime/variables/device/scan/scan.operation.js.map +1 -1
  519. app-rn-runtime/variables/device-variable.js.map +1 -1
  520. app-rn-runtime/variables/http.service.js +10 -15
  521. app-rn-runtime/variables/http.service.js.map +1 -1
  522. app-rn-runtime/variables/live-variable.js +115 -0
  523. app-rn-runtime/variables/live-variable.js.map +1 -0
  524. app-rn-runtime/variables/model-variable.js.map +1 -1
  525. app-rn-runtime/variables/service-variable.js +33 -12
  526. app-rn-runtime/variables/service-variable.js.map +1 -1
  527. app-rn-runtime/variables/utils/dataset-util.js.map +1 -1
  528. app-rn-runtime/variables/utils/inflight-queue.js.map +1 -1
  529. app-rn-runtime/variables/utils/variable.utils.js.map +1 -1
@@ -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,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,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,OAAO,EAAE;IACPD,MAAM,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,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EAAEjD,MAAM,CAAC,CAAC,CAAC,EAAEmC,eAAe,EAAE;UAAEJ,OAAO,EAAE,CAAC;UAAE0B,aAAa,EAAE;QAAO,CAAC,CAAC;QACzE0C,WAAW,EAAE;UACX3D,MAAM,EAAElB,GAAG;UACXmB,WAAW,EAAE,CAAC;UACdJ,IAAI,EAAE,SAAS;UACfoB,aAAa,EAAE;QACjB,CAAC;QACD2C,aAAa,EAAE,CAAC;QAChBC,YAAY,EAAE,CAAC;QACfC,aAAa,EAAE;MACjB,CAAC;MACDC,OAAO,EAAEvG,MAAM,CACb;QACEiD,KAAK,EAAE;UACLC,IAAI,EAAE;YACJb,IAAI,EAAE,aAAa;YACnBG,MAAM,EAAE,aAAa;YACrBC,WAAW,EAAE;UACf,CAAC;UACDW,MAAM,EAAEpD,MAAM,CAAC,CAAC,CAAC,EAAEmC,eAAe,EAAE;YAClCJ,OAAO,EAAE,CAAC;YACV0B,aAAa,EAAE;UACjB,CAAC,CAAC;UACF+C,MAAM,EAAE;YACNhE,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;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AY,EAAE,CAAC;QACfC,aAAa,EAAE;MACjB,CAAC;MACDC,OAAO,EAAEvG,MAAM,CACb;QACEiD,KAAK,EAAE;UACLC,IAAI,EAAE;YACJb,IAAI,EAAE,aAAa;YACnBG,MAAM,EAAE,aAAa;YACrBC,WAAW,EAAE;UACf,CAAC;UACDW,MAAM,EAAEpD,MAAM,CAAC,CAAC,CAAC,EAAEmC,eAAe,EAAE;YAClCJ,OAAO,EAAE,CAAC;YACV0B,aAAa,EAAE;UACjB,CAAC,CAAC;UACF+C,MAAM,EAAE;YACNhE,MAAM,EAAElB,GAAG;YACXmB,WAAW,EAAE,CAAC;YACdJ,IAAI,EAAE,SAAS;YACfoB,aAAa,EAAE;UACjB;QACF;MACF,CAAC,EACDzB,SACF;IACF,CAAC;IACD,OAAOe,cAAc;EACvB;AACF;AAEA,eAAe,IAAI1C,YAAY,CAAC,CAAC"}
@@ -2,40 +2,48 @@ 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';
6
- import { Badge, List } from 'react-native-paper';
5
+ import { Text, TouchableOpacity, View } from 'react-native';
6
+ import { Badge } from 'react-native-paper';
7
7
  import { isArray } from 'lodash';
8
8
  import { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';
9
- import { isDefined } from '@wavemaker/app-rn-runtime/core/utils';
10
9
  import WmAccordionProps from './accordion.props';
11
10
  import { DEFAULT_CLASS } from './accordion.styles';
12
11
  import WmIcon from '@wavemaker/app-rn-runtime/components/basic/icon/icon.component';
13
- import { Animatedview } from '@wavemaker/app-rn-runtime/components/basic/animatedview.component';
14
- import { createSkeleton } from '../../basic/skeleton/skeleton.component';
12
+ import { isDefined } from '@wavemaker/app-rn-runtime/core/utils';
15
13
  export class WmAccordionState extends BaseComponentState {
16
14
  constructor() {
17
15
  super(...arguments);
18
- _defineProperty(this, "expandedId", void 0);
16
+ _defineProperty(this, "lastExpandedIndex", -1);
17
+ _defineProperty(this, "isExpanded", []);
19
18
  }
20
19
  }
21
20
  export default class WmAccordion extends BaseComponent {
22
21
  constructor(props) {
23
- super(props, DEFAULT_CLASS, new WmAccordionProps());
24
- _defineProperty(this, "animatedRef", void 0);
22
+ super(props, DEFAULT_CLASS, new WmAccordionProps(), new WmAccordionState());
25
23
  _defineProperty(this, "accordionPanes", []);
26
24
  _defineProperty(this, "newIndex", 0);
27
- this.updateState({
28
- expandedId: (this.state.props.defaultpaneindex || 0) + 1
29
- });
30
25
  }
31
26
  addAccordionPane(accordionPane) {
32
- this.accordionPanes[(this.newIndex || this.state.expandedId) - 1] = accordionPane;
27
+ const i = this.accordionPanes.findIndex(t => t.props.name === accordionPane.props.name);
28
+ if (i >= 0) {
29
+ this.accordionPanes[i] = accordionPane;
30
+ } else {
31
+ this.accordionPanes[this.newIndex++] = accordionPane;
32
+ }
33
+ }
34
+ expand(accordionName) {
35
+ const i = this.accordionPanes.findIndex(t => t.props.name === accordionName);
36
+ this.toggle(i + 1, true);
37
+ }
38
+ collapse(accordionName) {
39
+ const i = this.accordionPanes.findIndex(t => t.props.name === accordionName);
40
+ this.toggle(i + 1, false);
33
41
  }
34
- expandCollapseIcon(props, item) {
35
- let showBadge = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
36
- let showIcon = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true;
37
- let useChevron = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : true;
38
- let isExpanded = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : false;
42
+ expandCollapseIcon(item) {
43
+ let showBadge = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
44
+ let showIcon = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
45
+ let useChevron = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true;
46
+ let isExpanded = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
39
47
  const widgetProps = item.props;
40
48
  //@ts-ignore
41
49
  const badge = showBadge && widgetProps.badgevalue != undefined ? /*#__PURE__*/React.createElement(Badge, {
@@ -58,125 +66,73 @@ export default class WmAccordion extends BaseComponent {
58
66
  }) : null);
59
67
  }
60
68
  renderAccordionpane(item, index) {
61
- let isExpanded = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
62
- let accordionpanes = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
69
+ let accordionpanes = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
63
70
  const showIconOnLeft = this.styles.leftToggleIcon.root.width !== undefined;
71
+ const isExpanded = this.state.isExpanded[index];
64
72
  return /*#__PURE__*/React.createElement(View, {
65
73
  style: this.styles.pane,
66
74
  key: item.props.name
67
- }, /*#__PURE__*/React.createElement(List.Accordion, {
68
- title: isDefined(item.props.title) ? item.props.title : 'Title',
75
+ }, /*#__PURE__*/React.createElement(TouchableOpacity, {
76
+ key: 'accordionpane_' + (index + 1),
69
77
  style: [this.styles.header, index === 0 ? this.styles.firstHeader : null, index === accordionpanes.length - 1 && !isExpanded ? this.styles.lastHeader : null, isExpanded ? this.styles.activeHeader : {}],
70
- theme: {
71
- colors: {
72
- background: this.styles.header.backgroundColor,
73
- primary: this.styles.activeHeader.color
74
- }
75
- },
76
- titleStyle: [this.styles.text, isExpanded ? this.styles.activeHeaderTitle : {}],
77
- descriptionStyle: this.styles.subheading,
78
- description: item.props.subheading,
79
- id: index + 1,
80
- key: 'accordionpane_' + index,
81
- right: props => this.expandCollapseIcon(props, item, true, !showIconOnLeft, true, isExpanded),
82
- left: props => /*#__PURE__*/React.createElement(React.Fragment, null, this.expandCollapseIcon(props, item, false, showIconOnLeft, true, isExpanded), item.props.iconclass ? /*#__PURE__*/React.createElement(WmIcon, {
83
- styles: this.styles.icon,
84
- name: item.props.name + '_icon',
85
- iconclass: item.props.iconclass
86
- }) : null)
87
- }, /*#__PURE__*/React.createElement(Animatedview, {
78
+ onPress: this.toggle.bind(this, index + 1, !isExpanded)
79
+ }, this.expandCollapseIcon(item, false, showIconOnLeft, true, isExpanded), item.props.iconclass ? /*#__PURE__*/React.createElement(WmIcon, {
80
+ styles: this.styles.icon,
81
+ name: item.props.name + '_icon',
82
+ iconclass: item.props.iconclass
83
+ }) : null, /*#__PURE__*/React.createElement(View, {
88
84
  style: {
89
- marginLeft: -64
90
- },
91
- ref: ref => this.animatedRef = ref,
92
- entryanimation: this.state.props.animation
93
- }, item)));
85
+ flexDirection: 'column',
86
+ flex: 1,
87
+ justifyContent: 'center'
88
+ }
89
+ }, /*#__PURE__*/React.createElement(Text, {
90
+ style: [this.styles.text, this.styles.heading, isExpanded ? this.styles.activeHeaderTitle : {}]
91
+ }, isDefined(item.props.title) ? item.props.title : 'Title'), item.props.description ? /*#__PURE__*/React.createElement(Text, {
92
+ style: this.styles.subheading
93
+ }, item.props.description) : null), this.expandCollapseIcon(item, true, !showIconOnLeft, true, isExpanded)), item);
94
94
  }
95
- onAccordionPress(expandedId) {
96
- const oldIndex = this.state.expandedId;
97
- this.newIndex = expandedId;
98
- const collapsedPane = oldIndex ? this.accordionPanes[oldIndex - 1] : null;
99
- collapsedPane === null || collapsedPane === void 0 ? void 0 : collapsedPane.onPaneCollapse();
95
+ toggle(index) {
96
+ let expand = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
97
+ let expandedId = expand ? index : -1;
98
+ let collapseId = expand ? -1 : index;
99
+ if (expand && this.state.isExpanded[expandedId - 1] || !expand && this.state.isExpanded[collapseId - 1] === false) {
100
+ return;
101
+ }
102
+ if (collapseId < 0 && this.state.props.closeothers) {
103
+ collapseId = this.state.lastExpandedIndex;
104
+ }
105
+ const collapsedPane = this.accordionPanes[collapseId - 1];
106
+ collapsedPane === null || collapsedPane === void 0 ? void 0 : collapsedPane.hide();
100
107
  Promise.resolve().then(() => {
101
- if (this.state.expandedId >= 0) {
102
- return this.animatedRef.triggerExit().then(res => !res && Promise.reject());
103
- }
104
- }).then(() => {
105
- if (this.state.expandedId === expandedId) {
106
- expandedId = -1;
107
- }
108
- this.updateState({
109
- expandedId: expandedId
108
+ const expandedPane = expandedId ? this.accordionPanes[expandedId - 1] : null;
109
+ expandedPane === null || expandedPane === void 0 ? void 0 : expandedPane.show();
110
+ this.setState(state => {
111
+ if (collapseId > 0 && collapsedPane) {
112
+ state.isExpanded[collapseId - 1] = false;
113
+ }
114
+ if (expandedId > 0 && expandedPane) {
115
+ state.isExpanded[expandedId - 1] = true;
116
+ }
117
+ return {
118
+ lastExpandedIndex: expandedId,
119
+ isExpanded: [...state.isExpanded]
120
+ };
110
121
  }, () => {
111
- const expandedPane = expandedId ? this.accordionPanes[expandedId - 1] : null;
112
- expandedPane === null || expandedPane === void 0 ? void 0 : expandedPane.onPaneExpand();
113
- this.invokeEventCallback('onChange', [{}, this.proxy, expandedId - 1, oldIndex ? oldIndex - 1 : null, expandedPane && expandedPane.props.name, collapsedPane && collapsedPane.props.name]);
122
+ this.invokeEventCallback('onChange', [{}, this.proxy, expandedId - 1, collapseId ? collapseId - 1 : null, expandedPane && expandedPane.props.name, collapsedPane && collapsedPane.props.name]);
114
123
  });
115
124
  }, () => {});
116
125
  }
117
- renderSkeletonAccordionpane(item, index) {
118
- let isExpanded = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
119
- let accordionpanes = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
120
- const showIconOnLeft = this.styles.leftToggleIcon.root.width !== undefined;
121
- return /*#__PURE__*/React.createElement(View, {
122
- style: this.styles.pane,
123
- key: item.props.name
124
- }, /*#__PURE__*/React.createElement(List.Accordion, {
125
- title: '',
126
- style: [{}],
127
- theme: {},
128
- titleStyle: [{}],
129
- descriptionStyle: this.styles.subheading,
130
- description: item.props.subheading,
131
- id: index + 1,
132
- key: 'accordionpane_' + index,
133
- right: props => this.expandCollapseIcon(props, item, true, !showIconOnLeft, true, isExpanded),
134
- left: props => {
135
- var _this$styles$root, _this$styles$root2, _this$styles$activeHe;
136
- return /*#__PURE__*/React.createElement(React.Fragment, null, createSkeleton(this.theme, {
137
- root: {
138
- borderRadius: 4
139
- }
140
- }, {
141
- ...this.styles.root,
142
- width: ((_this$styles$root = this.styles.root) === null || _this$styles$root === void 0 ? void 0 : _this$styles$root.width) || "100%",
143
- height: ((_this$styles$root2 = this.styles.root) === null || _this$styles$root2 === void 0 ? void 0 : _this$styles$root2.height) || ((_this$styles$activeHe = this.styles.activeHeaderTitle) === null || _this$styles$activeHe === void 0 ? void 0 : _this$styles$activeHe.fontSize) || 16
144
- }), this.expandCollapseIcon(props, item, false, showIconOnLeft, true, isExpanded), item.props.iconclass ? /*#__PURE__*/React.createElement(WmIcon, {
145
- styles: this.styles.icon,
146
- name: item.props.name + '_icon',
147
- iconclass: item.props.iconclass
148
- }) : null);
149
- }
150
- }, /*#__PURE__*/React.createElement(Animatedview, {
151
- style: {
152
- marginLeft: -64
153
- },
154
- ref: ref => this.animatedRef = ref,
155
- entryanimation: this.state.props.animation
156
- }, item)));
157
- }
158
- AccordionSkeleton() {
159
- const accordionpanes = this.props.children;
160
- const expandedId = this.state.expandedId || 0;
161
- return /*#__PURE__*/React.createElement(View, {
162
- style: this.styles.root
163
- }, /*#__PURE__*/React.createElement(List.AccordionGroup, {
164
- expandedId: expandedId,
165
- onAccordionPress: this.onAccordionPress.bind(this)
166
- }, accordionpanes ? isArray(accordionpanes) && accordionpanes.length ? accordionpanes.map((item, index) => this.renderSkeletonAccordionpane(item, index, false, accordionpanes)) : this.renderSkeletonAccordionpane(accordionpanes, 0) : null));
167
- }
168
- renderSkeleton(props) {
169
- return this.AccordionSkeleton();
126
+ componentDidMount() {
127
+ super.componentDidMount();
128
+ this.toggle(this.state.props.defaultpaneindex + 1);
170
129
  }
171
130
  renderWidget(props) {
172
131
  const accordionpanes = props.children;
173
- const expandedId = this.state.expandedId || 0;
132
+ const expandedId = this.state.lastExpandedIndex || 0;
174
133
  return /*#__PURE__*/React.createElement(View, {
175
134
  style: this.styles.root
176
- }, /*#__PURE__*/React.createElement(List.AccordionGroup, {
177
- expandedId: expandedId,
178
- onAccordionPress: this.onAccordionPress.bind(this)
179
- }, accordionpanes ? isArray(accordionpanes) && accordionpanes.length ? accordionpanes.map((item, index) => this.renderAccordionpane(item, index, expandedId === index + 1, accordionpanes)) : this.renderAccordionpane(accordionpanes, 0) : null));
135
+ }, this._background, accordionpanes ? isArray(accordionpanes) && accordionpanes.length ? accordionpanes.map((item, index) => this.renderAccordionpane(item, index, accordionpanes)) : this.renderAccordionpane(accordionpanes, 0) : null);
180
136
  }
181
137
  }
182
138
  //# sourceMappingURL=accordion.component.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["React","View","Badge","List","isArray","BaseComponent","BaseComponentState","isDefined","WmAccordionProps","DEFAULT_CLASS","WmIcon","Animatedview","createSkeleton","WmAccordionState","WmAccordion","constructor","props","updateState","expandedId","state","defaultpaneindex","addAccordionPane","accordionPane","accordionPanes","newIndex","expandCollapseIcon","item","showBadge","showIcon","useChevron","isExpanded","widgetProps","badge","badgevalue","undefined","styles","activeBadge","badgetype","iconclass","flexDirection","theme","mergeStyle","icon","activeIcon","renderAccordionpane","index","accordionpanes","showIconOnLeft","leftToggleIcon","root","width","pane","name","title","header","firstHeader","length","lastHeader","activeHeader","colors","background","backgroundColor","primary","color","text","activeHeaderTitle","subheading","marginLeft","ref","animatedRef","animation","onAccordionPress","oldIndex","collapsedPane","onPaneCollapse","Promise","resolve","then","triggerExit","res","reject","expandedPane","onPaneExpand","invokeEventCallback","proxy","renderSkeletonAccordionpane","borderRadius","height","fontSize","AccordionSkeleton","children","bind","map","renderSkeleton","renderWidget"],"sources":["accordion.component.tsx"],"sourcesContent":["import React, { useState } from 'react';\nimport { Text, View } from 'react-native';\nimport { Badge, List } from 'react-native-paper';\nimport { isArray } from 'lodash';\nimport { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';\nimport { isDefined } from '@wavemaker/app-rn-runtime/core/utils';\n\nimport WmAccordionProps from './accordion.props';\nimport { DEFAULT_CLASS, WmAccordionStyles } from './accordion.styles';\nimport WmIcon from '@wavemaker/app-rn-runtime/components/basic/icon/icon.component';\nimport { Animatedview } from '@wavemaker/app-rn-runtime/components/basic/animatedview.component';\nimport WmAccordionpane from './accordionpane/accordionpane.component';\nimport WmSkeleton, { createSkeleton } from '../../basic/skeleton/skeleton.component';\nimport { WmSkeletonStyles } from '../../basic/skeleton/skeleton.styles';\n\nexport class WmAccordionState extends BaseComponentState<WmAccordionProps> {\n expandedId: any;\n}\n\nexport default class WmAccordion extends BaseComponent<WmAccordionProps, WmAccordionState, WmAccordionStyles> {\n private animatedRef: any;\n public accordionPanes = [] as WmAccordionpane[];\n private newIndex = 0;\n\n constructor(props: WmAccordionProps) {\n super(props, DEFAULT_CLASS, new WmAccordionProps());\n this.updateState({\n expandedId: (this.state.props.defaultpaneindex || 0) + 1\n } as WmAccordionState);\n }\n\n addAccordionPane(accordionPane: WmAccordionpane) {\n this.accordionPanes[(this.newIndex || this.state.expandedId) - 1] = accordionPane;\n }\n\n expandCollapseIcon(props: any, item: any, showBadge = true, showIcon = true, useChevron = true, isExpanded = false) {\n const widgetProps = item.props;\n //@ts-ignore\n const badge = showBadge && widgetProps.badgevalue != undefined ? (\n <Badge style={[\n this.styles.badge,\n isExpanded ? this.styles.activeBadge: null,\n this.styles[widgetProps.badgetype || 'default']]}>\n {widgetProps.badgevalue}\n </Badge>): null;\n let iconclass = null;\n if (useChevron) {\n iconclass = isExpanded ? 'wi wi-chevron-down' : 'wi wi-chevron-up';\n } else {\n iconclass = isExpanded ? 'wi wi-minus' : 'wi wi-plus';\n }\n return (<View style={{flexDirection: 'row'}}>\n {badge}\n {showIcon ? (\n <WmIcon\n styles={this.theme.mergeStyle({}, this.styles.icon, isExpanded ? this.styles.activeIcon : null)}\n name={'expand_collapse_icon'}\n iconclass={iconclass}></WmIcon>): null}\n </View>);\n }\n\n renderAccordionpane(item: any, index: any, isExpanded = true, accordionpanes: any[] = []) {\n const showIconOnLeft = this.styles.leftToggleIcon.root.width !== undefined;\n return (\n <View style={this.styles.pane} key={item.props.name}>\n <List.Accordion title={isDefined(item.props.title) ? item.props.title : 'Title'}\n style={[\n this.styles.header,\n index === 0 ? this.styles.firstHeader: null,\n index === accordionpanes.length - 1 && !isExpanded ? this.styles.lastHeader: null,\n isExpanded ? this.styles.activeHeader : {}]}\n theme={{\n colors: {\n background : this.styles.header.backgroundColor as string,\n primary: this.styles.activeHeader.color as string\n }\n }}\n titleStyle={[this.styles.text, isExpanded ? this.styles.activeHeaderTitle : {}]}\n descriptionStyle={this.styles.subheading}\n description={item.props.subheading}\n id={index + 1}\n key={'accordionpane_' + index}\n right={props => this.expandCollapseIcon(props, item, true, !showIconOnLeft, true, isExpanded)}\n left={props => (\n <>\n {this.expandCollapseIcon(props, item, false, showIconOnLeft, true, isExpanded)}\n {item.props.iconclass ? <WmIcon styles={this.styles.icon} name={item.props.name + '_icon'} iconclass={item.props.iconclass}></WmIcon>: null}\n </>)\n }>\n <Animatedview style={{marginLeft: -64}} ref={ref => this.animatedRef = ref} entryanimation={this.state.props.animation}>{item}</Animatedview>\n </List.Accordion>\n </View>\n );\n }\n\n onAccordionPress(expandedId: any) {\n const oldIndex = this.state.expandedId;\n this.newIndex = expandedId;\n const collapsedPane = oldIndex ? this.accordionPanes[oldIndex - 1]: null;\n collapsedPane?.onPaneCollapse();\n Promise.resolve().then(() => {\n if (this.state.expandedId >= 0) {\n return this.animatedRef.triggerExit().then((res: any) => !res && Promise.reject());\n }\n }).then(() => {\n if (this.state.expandedId === expandedId) {\n expandedId = -1;\n }\n this.updateState({\n expandedId: expandedId,\n } as WmAccordionState, () => {\n const expandedPane = expandedId ? this.accordionPanes[expandedId - 1]: null;\n expandedPane?.onPaneExpand();\n this.invokeEventCallback('onChange', [{},\n this.proxy,\n expandedId - 1,\n oldIndex ? oldIndex - 1 : null,\n expandedPane && expandedPane.props.name,\n collapsedPane && collapsedPane.props.name])\n });\n }, () => {});\n }\n\n\n renderSkeletonAccordionpane(item: any, index: any, isExpanded = true, accordionpanes: any[] = []) {\n const showIconOnLeft = this.styles.leftToggleIcon.root.width !== undefined;\n return (\n <View style={this.styles.pane} key={item.props.name}>\n <List.Accordion title={''}\n style={[{}]}\n theme={{}}\n titleStyle={[{}]}\n descriptionStyle={this.styles.subheading}\n description={item.props.subheading}\n id={index + 1}\n key={'accordionpane_' + index}\n right={props => this.expandCollapseIcon(props, item, true, !showIconOnLeft, true, isExpanded)}\n left={props => (\n <>\n {\n createSkeleton(this.theme, { root: { borderRadius: 4 }} as WmSkeletonStyles, {\n ...this.styles.root,\n width: this.styles.root?.width || \"100%\",\n height: this.styles.root?.height || this.styles.activeHeaderTitle?.fontSize || 16\n })\n }\n {this.expandCollapseIcon(props, item, false, showIconOnLeft, true, isExpanded)}\n {item.props.iconclass ? <WmIcon styles={this.styles.icon} name={item.props.name + '_icon'} iconclass={item.props.iconclass}></WmIcon>: null}\n </>)\n }>\n <Animatedview style={{marginLeft: -64}} ref={ref => this.animatedRef = ref} entryanimation={this.state.props.animation}>{item}</Animatedview>\n </List.Accordion>\n </View>\n );\n }\n public AccordionSkeleton() {\n const accordionpanes = this.props.children;\n const expandedId = this.state.expandedId || 0;\n return (\n <View style={this.styles.root}>\n <List.AccordionGroup expandedId={ expandedId } onAccordionPress={this.onAccordionPress.bind(this)} >\n {accordionpanes\n ? isArray(accordionpanes) && accordionpanes.length\n ? accordionpanes.map((item: any, index: any) => this.renderSkeletonAccordionpane(item, index, false, accordionpanes))\n : this.renderSkeletonAccordionpane(accordionpanes, 0)\n : null}\n </List.AccordionGroup>\n </View>\n )\n }\n\n public renderSkeleton(props: WmAccordionProps){\n return(this.AccordionSkeleton())\n }\n\n renderWidget(props: WmAccordionProps) {\n const accordionpanes = props.children;\n const expandedId = this.state.expandedId || 0;\n return (\n <View style={this.styles.root}>\n <List.AccordionGroup expandedId={ expandedId } onAccordionPress={this.onAccordionPress.bind(this)} >\n {accordionpanes\n ? isArray(accordionpanes) && accordionpanes.length\n ? accordionpanes.map((item: any, index: any) => this.renderAccordionpane(item, index, expandedId === index + 1, accordionpanes))\n : this.renderAccordionpane(accordionpanes, 0)\n : null}\n </List.AccordionGroup>\n </View>\n );\n }\n}\n"],"mappings":";;;AAAA,OAAOA,KAAK,MAAoB,OAAO;AACvC,SAAeC,IAAI,QAAQ,cAAc;AACzC,SAASC,KAAK,EAAEC,IAAI,QAAQ,oBAAoB;AAChD,SAASC,OAAO,QAAQ,QAAQ;AAChC,SAASC,aAAa,EAAEC,kBAAkB,QAAQ,+CAA+C;AACjG,SAASC,SAAS,QAAQ,sCAAsC;AAEhE,OAAOC,gBAAgB,MAAM,mBAAmB;AAChD,SAASC,aAAa,QAA2B,oBAAoB;AACrE,OAAOC,MAAM,MAAM,gEAAgE;AACnF,SAASC,YAAY,QAAQ,mEAAmE;AAEhG,SAAqBC,cAAc,QAAQ,yCAAyC;AAGpF,OAAO,MAAMC,gBAAgB,SAASP,kBAAkB,CAAmB;EAAA;IAAA;IAAA;EAAA;AAE3E;AAEA,eAAe,MAAMQ,WAAW,SAAST,aAAa,CAAwD;EAK5GU,WAAW,CAACC,KAAuB,EAAE;IACnC,KAAK,CAACA,KAAK,EAAEP,aAAa,EAAE,IAAID,gBAAgB,EAAE,CAAC;IAAC;IAAA,wCAJ9B,EAAE;IAAA,kCACP,CAAC;IAIlB,IAAI,CAACS,WAAW,CAAC;MACfC,UAAU,EAAE,CAAC,IAAI,CAACC,KAAK,CAACH,KAAK,CAACI,gBAAgB,IAAI,CAAC,IAAI;IACzD,CAAC,CAAqB;EACxB;EAEAC,gBAAgB,CAACC,aAA8B,EAAE;IAC/C,IAAI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rC,MAAMxE,UAAU,GAAG,IAAI,CAACC,KAAK,CAACD,UAAU,IAAI,CAAC;IAC7C,oBACI,oBAAC,IAAI;MAAC,KAAK,EAAE,IAAI,CAACiB,MAAM,CAACc;IAAK,gBAC5B,oBAAC,IAAI,CAAC,cAAc;MAAC,UAAU,EAAG/B,UAAY;MAAC,gBAAgB,EAAE,IAAI,CAACqD,gBAAgB,CAACoB,IAAI,CAAC,IAAI;IAAE,GAC/F7C,cAAc,GACX1C,OAAO,CAAC0C,cAAc,CAAC,IAAIA,cAAc,CAACU,MAAM,GAC9CV,cAAc,CAAC8C,GAAG,CAAC,CAAClE,IAAS,EAAEmB,KAAU,KAAK,IAAI,CAACD,mBAAmB,CAAClB,IAAI,EAAEmB,KAAK,EAAE3B,UAAU,KAAK2B,KAAK,GAAG,CAAC,EAAEC,cAAc,CAAC,CAAC,GAC9H,IAAI,CAACF,mBAAmB,CAACE,cAAc,EAAE,CAAC,CAAC,GAC7C,IAAI,CACY,CACjB;EAEb;AACF"}
1
+ {"version":3,"names":["React","Text","TouchableOpacity","View","Badge","isArray","BaseComponent","BaseComponentState","WmAccordionProps","DEFAULT_CLASS","WmIcon","isDefined","WmAccordionState","constructor","arguments","_defineProperty","WmAccordion","props","addAccordionPane","accordionPane","i","accordionPanes","findIndex","t","name","newIndex","expand","accordionName","toggle","collapse","expandCollapseIcon","item","showBadge","length","undefined","showIcon","useChevron","isExpanded","widgetProps","badge","badgevalue","createElement","style","styles","activeBadge","badgetype","iconclass","flexDirection","theme","mergeStyle","icon","activeIcon","renderAccordionpane","index","accordionpanes","showIconOnLeft","leftToggleIcon","root","width","state","pane","key","header","firstHeader","lastHeader","activeHeader","onPress","bind","flex","justifyContent","text","heading","activeHeaderTitle","title","description","subheading","expandedId","collapseId","closeothers","lastExpandedIndex","collapsedPane","hide","Promise","resolve","then","expandedPane","show","setState","invokeEventCallback","proxy","componentDidMount","defaultpaneindex","renderWidget","children","_background","map"],"sources":["accordion.component.tsx"],"sourcesContent":["import React from 'react';\nimport { Text, TouchableOpacity, View } from 'react-native';\nimport { Badge } from 'react-native-paper';\nimport { isArray } from 'lodash';\n\nimport { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';\nimport WmAccordionProps from './accordion.props';\nimport { DEFAULT_CLASS, WmAccordionStyles } from './accordion.styles';\nimport WmIcon from '@wavemaker/app-rn-runtime/components/basic/icon/icon.component';\nimport WmAccordionpane from './accordionpane/accordionpane.component';\nimport { isDefined } from '@wavemaker/app-rn-runtime/core/utils';\n\nexport class WmAccordionState extends BaseComponentState<WmAccordionProps> {\n lastExpandedIndex = -1;\n isExpanded = [] as boolean[];\n}\n\nexport default class WmAccordion extends BaseComponent<WmAccordionProps, WmAccordionState, WmAccordionStyles> {\n public accordionPanes = [] as WmAccordionpane[];\n private newIndex = 0;\n\n constructor(props: WmAccordionProps) {\n super(props, DEFAULT_CLASS, new WmAccordionProps(), new WmAccordionState());\n }\n\n addAccordionPane(accordionPane: WmAccordionpane) {\n const i = this.accordionPanes.findIndex(t => t.props.name === accordionPane.props.name);\n if (i >= 0) {\n this.accordionPanes[i] = accordionPane;\n } else {\n this.accordionPanes[this.newIndex++] = accordionPane;\n }\n }\n\n expand(accordionName: string) {\n const i = this.accordionPanes.findIndex(t => t.props.name === accordionName);\n this.toggle(i + 1, true);\n }\n\n collapse(accordionName: string) {\n const i = this.accordionPanes.findIndex(t => t.props.name === accordionName);\n this.toggle(i + 1, false);\n }\n\n expandCollapseIcon(item: any, showBadge = true, showIcon = true, useChevron = true, isExpanded = false) {\n const widgetProps = item.props;\n //@ts-ignore\n const badge = showBadge && widgetProps.badgevalue != undefined ? (\n <Badge style={[\n this.styles.badge,\n isExpanded ? this.styles.activeBadge: null,\n this.styles[widgetProps.badgetype || 'default']]}>\n {widgetProps.badgevalue}\n </Badge>): null;\n let iconclass = null;\n if (useChevron) {\n iconclass = isExpanded ? 'wi wi-chevron-down' : 'wi wi-chevron-up';\n } else {\n iconclass = isExpanded ? 'wi wi-minus' : 'wi wi-plus';\n }\n return (<View style={{flexDirection: 'row'}}>\n {badge}\n {showIcon ? (\n <WmIcon\n styles={this.theme.mergeStyle({}, this.styles.icon, isExpanded ? this.styles.activeIcon : null)}\n name={'expand_collapse_icon'}\n iconclass={iconclass}></WmIcon>): null}\n </View>);\n }\n\n renderAccordionpane(item: any, index: any, accordionpanes: any[] = []) {\n const showIconOnLeft = this.styles.leftToggleIcon.root.width !== undefined;\n const isExpanded = this.state.isExpanded[index];\n return (\n <View style={this.styles.pane} key={item.props.name}>\n <TouchableOpacity key={'accordionpane_' + (index + 1)}\n style={[this.styles.header,\n index === 0 ? this.styles.firstHeader: null,\n index === accordionpanes.length - 1 && !isExpanded ? this.styles.lastHeader: null,\n isExpanded ? this.styles.activeHeader : {}]}\n onPress={this.toggle.bind(this, index + 1, !isExpanded)}>\n {this.expandCollapseIcon(item, false, showIconOnLeft, true, isExpanded)}\n {item.props.iconclass ? <WmIcon styles={this.styles.icon} name={item.props.name + '_icon'} iconclass={item.props.iconclass}></WmIcon>: null}\n <View style={{flexDirection: 'column', flex: 1, justifyContent: 'center'}}>\n <Text style={[\n this.styles.text,\n this.styles.heading,\n isExpanded ? this.styles.activeHeaderTitle : {}]}>\n {isDefined(item.props.title) ? item.props.title : 'Title'}\n </Text>\n {item.props.description ? \n (<Text style={this.styles.subheading}>{item.props.description}</Text>) : null }\n </View>\n {this.expandCollapseIcon(item, true, !showIconOnLeft, true, isExpanded)}\n </TouchableOpacity>\n {item}\n </View>\n );\n }\n\n toggle(index: number, expand = true) {\n let expandedId = expand ? index : -1;\n let collapseId = expand ? -1 : index;\n if (expand && this.state.isExpanded[expandedId - 1]\n || !expand && this.state.isExpanded[collapseId - 1] === false) {\n return;\n }\n if (collapseId < 0 && this.state.props.closeothers) {\n collapseId = this.state.lastExpandedIndex;\n }\n const collapsedPane = this.accordionPanes[collapseId -1];\n collapsedPane?.hide();\n Promise.resolve().then(() => {\n const expandedPane = expandedId ? this.accordionPanes[expandedId - 1]: null;\n expandedPane?.show();\n this.setState((state) => {\n if (collapseId > 0 && collapsedPane) {\n state.isExpanded[collapseId - 1] = false;\n }\n if (expandedId > 0 && expandedPane) {\n state.isExpanded[expandedId - 1] = true;\n }\n return {\n lastExpandedIndex: expandedId,\n isExpanded: [...state.isExpanded]\n };\n }, () => {\n this.invokeEventCallback('onChange', [{},\n this.proxy,\n expandedId - 1,\n collapseId ? collapseId - 1 : null,\n expandedPane && expandedPane.props.name,\n collapsedPane && collapsedPane.props.name]);\n });\n }, () => {});\n }\n\n public componentDidMount(): void {\n super.componentDidMount();\n this.toggle(this.state.props.defaultpaneindex + 1);\n }\n\n renderWidget(props: WmAccordionProps) {\n const accordionpanes = props.children;\n const expandedId = this.state.lastExpandedIndex || 0;\n return (\n <View style={this.styles.root}>\n {this._background}\n {accordionpanes\n ? isArray(accordionpanes) && accordionpanes.length\n ? accordionpanes.map((item: any, index: any) => this.renderAccordionpane(item, index, accordionpanes))\n : this.renderAccordionpane(accordionpanes, 0)\n : null}\n </View>\n );\n }\n}\n"],"mappings":";;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,gBAAgB,EAAEC,IAAI,QAAQ,cAAc;AAC3D,SAASC,KAAK,QAAQ,oBAAoB;AAC1C,SAASC,OAAO,QAAQ,QAAQ;AAEhC,SAASC,aAAa,EAAEC,kBAAkB,QAAQ,+CAA+C;AACjG,OAAOC,gBAAgB,MAAM,mBAAmB;AAChD,SAASC,aAAa,QAA2B,oBAAoB;AACrE,OAAOC,MAAM,MAAM,gEAAgE;AAEnF,SAASC,SAAS,QAAQ,sCAAsC;AAEhE,OAAO,MAAMC,gBAAgB,SAASL,kBAAkB,CAAmB;EAAAM,YAAA;IAAA,SAAAC,SAAA;IAAAC,eAAA,4BACrD,CAAC,CAAC;IAAAA,eAAA,qBACT,EAAE;EAAA;AACjB;AAEA,eAAe,MAAMC,WAAW,SAASV,aAAa,CAAwD;EAI5GO,WAAWA,CAACI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,CAACmD,mBAAmB,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC,EACtC,IAAI,CAACC,KAAK,EACVb,UAAU,GAAG,CAAC,EACdC,UAAU,GAAGA,UAAU,GAAG,CAAC,GAAG,IAAI,EAClCQ,YAAY,IAAIA,YAAY,CAACpE,KAAK,CAACO,IAAI,EACvCwD,aAAa,IAAIA,aAAa,CAAC/D,KAAK,CAACO,IAAI,CAAC,CAAC;MAC7C,CAAC,CAAC;IACN,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC;EACd;EAEOkE,iBAAiBA,CAAA,EAAS;IAC7B,KAAK,CAACA,iBAAiB,CAAC,CAAC;IACzB,IAAI,CAAC9D,MAAM,CAAC,IAAI,CAAC+B,KAAK,CAAC1C,KAAK,CAAC0E,gBAAgB,GAAG,CAAC,CAAC;EACtD;EAEAC,YAAYA,CAAC3E,KAAuB,EAAE;IACpC,MAAMqC,cAAc,GAAGrC,KAAK,CAAC4E,QAAQ;IACrC,MAAMjB,UAAU,GAAG,IAAI,CAACjB,KAAK,CAACoB,iBAAiB,IAAI,CAAC;IACpD,oBACI/E,KAAA,CAAAyC,aAAA,CAACtC,IAAI;MAACuC,KAAK,EAAE,IAAI,CAACC,MAAM,CAACc;IAAK,GAC3B,IAAI,CAACqC,WAAW,EACdxC,cAAc,GACXjD,OAAO,CAACiD,cAAc,CAAC,IAAIA,cAAc,CAACrB,MAAM,GAC9CqB,cAAc,CAACyC,GAAG,CAAC,CAAChE,IAAS,EAAEsB,KAAU,KAAK,IAAI,CAACD,mBAAmB,CAACrB,IAAI,EAAEsB,KAAK,EAAEC,cAAc,CAAC,CAAC,GACpG,IAAI,CAACF,mBAAmB,CAACE,cAAc,EAAE,CAAC,CAAC,GAC7C,IACF,CAAC;EAEb;AACF"}
@@ -8,6 +8,7 @@ export default class WmAccordionProps extends BaseProps {
8
8
  _defineProperty(this, "animation", 'fadeInDown');
9
9
  _defineProperty(this, "children", void 0);
10
10
  _defineProperty(this, "defaultpaneindex", 0);
11
+ _defineProperty(this, "closeothers", true);
11
12
  }
12
13
  }
13
14
  //# sourceMappingURL=accordion.props.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["BaseProps","WmAccordionProps"],"sources":["accordion.props.ts"],"sourcesContent":["import { BaseProps } from '@wavemaker/app-rn-runtime/core/base.component';\n\nexport default class WmAccordionProps extends BaseProps {\n animation: string = 'fadeInDown';\n children: any;\n defaultpaneindex: number = 0;\n}\n"],"mappings":";;;AAAA,SAASA,SAAS,QAAQ,+CAA+C;AAEzE,eAAe,MAAMC,gBAAgB,SAASD,SAAS,CAAC;EAAA;IAAA;IAAA,mCAClC,YAAY;IAAA;IAAA,0CAEL,CAAC;EAAA;AAC9B"}
1
+ {"version":3,"names":["BaseProps","WmAccordionProps","constructor","arguments","_defineProperty"],"sources":["accordion.props.ts"],"sourcesContent":["import { BaseProps } from '@wavemaker/app-rn-runtime/core/base.component';\n\nexport default class WmAccordionProps extends BaseProps {\n animation: string = 'fadeInDown';\n children: any;\n defaultpaneindex: number = 0;\n closeothers = true;\n}\n"],"mappings":";;;AAAA,SAASA,SAAS,QAAQ,+CAA+C;AAEzE,eAAe,MAAMC,gBAAgB,SAASD,SAAS,CAAC;EAAAE,YAAA;IAAA,SAAAC,SAAA;IAAAC,eAAA,oBAClC,YAAY;IAAAA,eAAA;IAAAA,eAAA,2BAEL,CAAC;IAAAA,eAAA,sBACd,IAAI;EAAA;AACpB"}
@@ -1,5 +1,6 @@
1
1
  import BASE_THEME from '@wavemaker/app-rn-runtime/styles/theme';
2
2
  import { defineStyles } from '@wavemaker/app-rn-runtime/core/base.component';
3
+ import { Platform } from 'react-native';
3
4
  export const DEFAULT_CLASS = 'app-accordion';
4
5
  BASE_THEME.registerStyle((themeVariables, addStyle) => {
5
6
  const defaultStyles = defineStyles({
@@ -19,15 +20,15 @@ BASE_THEME.registerStyle((themeVariables, addStyle) => {
19
20
  borderTopLeftRadius: 6,
20
21
  borderTopRightRadius: 6
21
22
  },
22
- pane: {
23
- marginBottom: 4
24
- },
23
+ pane: {},
25
24
  header: {
26
25
  borderBottomWidth: 1,
27
26
  borderStyle: 'solid',
28
27
  borderColor: themeVariables.accordionBorderColor,
29
28
  backgroundColor: themeVariables.accordionHeaderBgColor,
30
- padding: 8
29
+ padding: 8,
30
+ flexDirection: 'row',
31
+ justifyContent: 'center'
31
32
  },
32
33
  lastHeader: {
33
34
  borderBottomWidth: 0,
@@ -107,6 +108,15 @@ BASE_THEME.registerStyle((themeVariables, addStyle) => {
107
108
  }
108
109
  });
109
110
  addStyle(DEFAULT_CLASS, '', defaultStyles);
111
+ addStyle(DEFAULT_CLASS + '-rtl', '', Platform.OS == "web" ? {
112
+ text: {
113
+ textAlign: 'right'
114
+ }
115
+ } : {
116
+ text: {
117
+ textAlign: 'left'
118
+ }
119
+ });
110
120
  addStyle('app-accordion1', '', {
111
121
  pane: {
112
122
  marginBottom: 0
@@ -1 +1 @@
1
- {"version":3,"names":["BASE_THEME","defineStyles","DEFAULT_CLASS","registerStyle","themeVariables","addStyle","defaultStyles","root","width","borderWidth","borderStyle","borderColor","accordionBorderColor","borderRadius","backgroundColor","transparent","text","color","accordionTitleColor","fontSize","firstHeader","borderTopLeftRadius","borderTopRightRadius","pane","marginBottom","header","borderBottomWidth","accordionHeaderBgColor","padding","lastHeader","borderBottomLeftRadius","borderBottomRightRadius","activeHeader","accordionActiveHeaderBgColor","activeHeaderTitle","accordionActiveHeaderTextColor","subheading","icon","alignSelf","height","justifyContent","accordionIconColor","fontWeight","leftToggleIcon","rightToggleIcon","activeIcon","activeBadge","badge","marginRight","alignContent","default","success","labelSuccessColor","danger","labelDangerColor","warning","labelWarningColor","info","labelInfoColor","primary","labelPrimaryColor"],"sources":["accordion.styles.ts"],"sourcesContent":["import BASE_THEME, {AllStyle} from '@wavemaker/app-rn-runtime/styles/theme';\nimport { BaseStyles, defineStyles } from '@wavemaker/app-rn-runtime/core/base.component';\nimport { WmIconStyles } from '@wavemaker/app-rn-runtime/components/basic/icon/icon.styles';\nimport { TextStyle, ViewStyle } from 'react-native';\nimport Color from 'color';\n\nexport type WmAccordionStyles = BaseStyles & {\n icon: WmIconStyles,\n rightToggleIcon: WmIconStyles,\n leftToggleIcon: WmIconStyles,\n activeIcon: WmIconStyles,\n pane: AllStyle,\n badge: AllStyle,\n activeBadge: AllStyle,\n firstHeader: ViewStyle,\n lastHeader: ViewStyle,\n header: AllStyle,\n activeHeader: AllStyle,\n activeHeaderTitle: TextStyle,\n subheading: AllStyle\n};\n\nexport const DEFAULT_CLASS = 'app-accordion';\nBASE_THEME.registerStyle((themeVariables, addStyle) => {\n const defaultStyles: WmAccordionStyles = defineStyles({\n root: {\n width: '100%',\n borderWidth: 0,\n borderStyle: 'solid',\n borderColor: themeVariables.accordionBorderColor,\n borderRadius: 6,\n backgroundColor: themeVariables.transparent\n },\n text: {\n color: themeVariables.accordionTitleColor,\n fontSize: 18\n },\n firstHeader: {\n borderTopLeftRadius: 6,\n borderTopRightRadius: 6\n },\n pane : {\n marginBottom: 4,\n },\n header: {\n borderBottomWidth: 1,\n borderStyle: 'solid',\n borderColor: themeVariables.accordionBorderColor,\n backgroundColor: themeVariables.accordionHeaderBgColor,\n padding: 8\n },\n lastHeader: {\n borderBottomWidth: 0,\n borderBottomLeftRadius: 6,\n borderBottomRightRadius: 6\n },\n activeHeader: {\n borderColor: themeVariables.accordionActiveHeaderBgColor,\n backgroundColor: themeVariables.accordionActiveHeaderBgColor\n },\n activeHeaderTitle: {\n color: themeVariables.accordionActiveHeaderTextColor\n },\n subheading: {\n\n },\n icon: {\n root: {\n alignSelf: 'auto',\n width: 24,\n height: 24,\n borderRadius: 24,\n justifyContent: 'center'\n },\n icon: {\n color: themeVariables.accordionIconColor,\n alignSelf: 'center',\n justifyContent: 'center',\n fontSize: 16,\n fontWeight: 'bold'\n }\n } as WmIconStyles,\n leftToggleIcon: {\n root: {}\n } as WmIconStyles,\n rightToggleIcon: {\n root: {}\n } as WmIconStyles,\n activeIcon : {\n root: {\n borderColor: themeVariables.accordionActiveHeaderTextColor,\n },\n icon: {\n color: themeVariables.accordionActiveHeaderTextColor\n }\n } as WmIconStyles,\n activeBadge: {\n borderColor: themeVariables.accordionActiveHeaderTextColor,\n color: themeVariables.accordionActiveHeaderTextColor\n },\n badge: {\n color: themeVariables.accordionIconColor,\n fontSize: 14,\n marginRight: 4,\n width: 24,\n height: 24,\n borderRadius: 12,\n alignContent: 'center',\n borderStyle: 'solid',\n borderWidth: 2,\n borderColor: themeVariables.accordionIconColor,\n backgroundColor: themeVariables.transparent\n },\n default: {},\n success: {\n backgroundColor: themeVariables.labelSuccessColor\n },\n danger: {\n backgroundColor: themeVariables.labelDangerColor\n },\n warning: {\n backgroundColor: themeVariables.labelWarningColor\n },\n info: {\n backgroundColor: themeVariables.labelInfoColor\n },\n primary: {\n backgroundColor: themeVariables.labelPrimaryColor\n }\n });\n\n addStyle(DEFAULT_CLASS, '', defaultStyles);\n addStyle('app-accordion1', '', {\n pane: {\n marginBottom: 0\n },\n leftToggleIcon: {\n root: {\n width: 1\n }\n },\n icon: {\n root: {\n backgroundColor: 'rgba(255, 255, 255, 0.1)'\n }\n }\n } as WmAccordionStyles);\n});\n"],"mappings":"AAAA,OAAOA,UAAU,MAAkB,wCAAwC;AAC3E,SAAqBC,YAAY,QAAQ,+CAA+C;AAqBxF,OAAO,MAAMC,aAAa,GAAG,eAAe;AAC5CF,UAAU,CAACG,aAAa,CAAC,CAACC,cAAc,EAAEC,QAAQ,KAAK;EACrD,MAAMC,aAAgC,GAAGL,YAAY,CAAC;IAClDM,IAAI,EAAE;MACJC,KAAK,EAAE,MAAM;MACbC,WAAW,EAAE,CAAC;MACdC,WAAW,EAAE,OAAO;MACpBC,WAAW,EAAEP,cAAc,CAACQ,oBAAoB;MAChDC,YAAY,EAAE,CAAC;MACfC,eAAe,EAAEV,cAAc,CAACW;IAClC,CAAC;IACDC,IAAI,EAAE;MACJC,KAAK,EAAEb,cAAc,CAACc,mBAAmB;MACzCC,QAAQ,E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","defineStyles","Platform","DEFAULT_CLASS","registerStyle","themeVariables","addStyle","defaultStyles","root","width","borderWidth","borderStyle","borderColor","accordionBorderColor","borderRadius","backgroundColor","transparent","text","color","accordionTitleColor","fontSize","firstHeader","borderTopLeftRadius","borderTopRightRadius","pane","header","borderBottomWidth","accordionHeaderBgColor","padding","flexDirection","justifyContent","lastHeader","borderBottomLeftRadius","borderBottomRightRadius","activeHeader","accordionActiveHeaderBgColor","activeHeaderTitle","accordionActiveHeaderTextColor","subheading","icon","alignSelf","height","accordionIconColor","fontWeight","leftToggleIcon","rightToggleIcon","activeIcon","activeBadge","badge","marginRight","alignContent","default","success","labelSuccessColor","danger","labelDangerColor","warning","labelWarningColor","info","labelInfoColor","primary","labelPrimaryColor","OS","textAlign","marginBottom"],"sources":["accordion.styles.ts"],"sourcesContent":["import BASE_THEME, {AllStyle} from '@wavemaker/app-rn-runtime/styles/theme';\nimport { BaseStyles, defineStyles } from '@wavemaker/app-rn-runtime/core/base.component';\nimport { WmIconStyles } from '@wavemaker/app-rn-runtime/components/basic/icon/icon.styles';\nimport { TextStyle, ViewStyle, Platform } from 'react-native';\nimport Color from 'color';\n\nexport type WmAccordionStyles = BaseStyles & {\n icon: WmIconStyles,\n rightToggleIcon: WmIconStyles,\n leftToggleIcon: WmIconStyles,\n activeIcon: WmIconStyles,\n pane: AllStyle,\n badge: AllStyle,\n activeBadge: AllStyle,\n firstHeader: ViewStyle,\n lastHeader: ViewStyle,\n header: AllStyle,\n activeHeader: AllStyle,\n activeHeaderTitle: TextStyle,\n subheading: AllStyle\n};\n\nexport const DEFAULT_CLASS = 'app-accordion';\nBASE_THEME.registerStyle((themeVariables, addStyle) => {\n const defaultStyles: WmAccordionStyles = defineStyles({\n root: {\n width: '100%',\n borderWidth: 0,\n borderStyle: 'solid',\n borderColor: themeVariables.accordionBorderColor,\n borderRadius: 6,\n backgroundColor: themeVariables.transparent\n },\n text: {\n color: themeVariables.accordionTitleColor,\n fontSize: 18\n },\n firstHeader: {\n borderTopLeftRadius: 6,\n borderTopRightRadius: 6\n },\n pane : {},\n header: {\n borderBottomWidth: 1,\n borderStyle: 'solid',\n borderColor: themeVariables.accordionBorderColor,\n backgroundColor: themeVariables.accordionHeaderBgColor,\n padding: 8,\n flexDirection: 'row',\n justifyContent: 'center'\n },\n lastHeader: {\n borderBottomWidth: 0,\n borderBottomLeftRadius: 6,\n borderBottomRightRadius: 6\n },\n activeHeader: {\n borderColor: themeVariables.accordionActiveHeaderBgColor,\n backgroundColor: themeVariables.accordionActiveHeaderBgColor\n },\n activeHeaderTitle: {\n color: themeVariables.accordionActiveHeaderTextColor\n },\n subheading: {\n\n },\n icon: {\n root: {\n alignSelf: 'auto',\n width: 24,\n height: 24,\n borderRadius: 24,\n justifyContent: 'center'\n },\n icon: {\n color: themeVariables.accordionIconColor,\n alignSelf: 'center',\n justifyContent: 'center',\n fontSize: 16,\n fontWeight: 'bold'\n }\n } as WmIconStyles,\n leftToggleIcon: {\n root: {}\n } as WmIconStyles,\n rightToggleIcon: {\n root: {}\n } as WmIconStyles,\n activeIcon : {\n root: {\n borderColor: themeVariables.accordionActiveHeaderTextColor,\n },\n icon: {\n color: themeVariables.accordionActiveHeaderTextColor\n }\n } as WmIconStyles,\n activeBadge: {\n borderColor: themeVariables.accordionActiveHeaderTextColor,\n color: themeVariables.accordionActiveHeaderTextColor\n },\n badge: {\n color: themeVariables.accordionIconColor,\n fontSize: 14,\n marginRight: 4,\n width: 24,\n height: 24,\n borderRadius: 12,\n alignContent: 'center',\n borderStyle: 'solid',\n borderWidth: 2,\n borderColor: themeVariables.accordionIconColor,\n backgroundColor: themeVariables.transparent\n },\n default: {},\n success: {\n backgroundColor: themeVariables.labelSuccessColor\n },\n danger: {\n backgroundColor: themeVariables.labelDangerColor\n },\n warning: {\n backgroundColor: themeVariables.labelWarningColor\n },\n info: {\n backgroundColor: themeVariables.labelInfoColor\n },\n primary: {\n backgroundColor: themeVariables.labelPrimaryColor\n }\n });\n\n addStyle(DEFAULT_CLASS, '', defaultStyles);\n addStyle(DEFAULT_CLASS + '-rtl', '', Platform.OS==\"web\"?{\n text:{\n textAlign:'right',\n } \n }:{\n text:{\n textAlign:'left',\n } \n });\n addStyle('app-accordion1', '', {\n pane: {\n marginBottom: 0\n },\n leftToggleIcon: {\n root: {\n width: 1\n }\n },\n icon: {\n root: {\n backgroundColor: 'rgba(255, 255, 255, 0.1)'\n }\n }\n } as WmAccordionStyles);\n});\n"],"mappings":"AAAA,OAAOA,UAAU,MAAkB,wCAAwC;AAC3E,SAAqBC,YAAY,QAAQ,+CAA+C;AAExF,SAA+BC,QAAQ,QAAQ,cAAc;AAmB7D,OAAO,MAAMC,aAAa,GAAG,eAAe;AAC5CH,UAAU,CAACI,aAAa,CAAC,CAACC,cAAc,EAAEC,QAAQ,KAAK;EACrD,MAAMC,aAAgC,GAAGN,YAAY,CAAC;IAClDO,IAAI,EAAE;MACJC,KAAK,EAAE,MAAM;MACbC,WAAW,EAAE,CAAC;MACdC,WAAW,EAAE,OAAO;MACpBC,WAAW,EAAEP,cAAc,CAACQ,oBAAoB;MAChDC,YAAY,EAAE,CAAC;MACfC,eAAe,EAAEV,cAAc,CAACW;IAClC,CAAC;IACDC,IAAI,EAAE;MACJC,KAAK,EAAEb,cAAc,CAACc,mBAAmB;MACzCC,QAAQ,EAAE;IACZ,CAAC;IACDC,WAAW,EAAE;MACXC,mBAAmB,EAAE,CAAC;MACtBC,oBAAoB,EAAE;IACxB,CAAC;IACDC,IAAI,EAAG,CAAC,CAAC;IACTC,MAAM,EAAE;MACNC,iBAAiB,EAAE,CAAC;MACpBf,WAAW,EAAE,OAAO;MACpBC,WAAW,EAAEP,cAAc,CAACQ,oBAAoB;MAChDE,eAAe,EAAEV,cAAc,CAACsB,sBAAsB;MACtDC,OAAO,EAAE,CAAC;MACVC,aAAa,EAAE,KAAK;MACpBC,cAAc,EAAE;IAClB,CAAC;IACDC,UAAU,EAAE;MACVL,iBAAiB,EAAE,CAAC;MACpBM,sBAAs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