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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (511) hide show
  1. app-rn-runtime/actions/base-action.js.map +1 -1
  2. app-rn-runtime/actions/login-action.js.map +1 -1
  3. app-rn-runtime/actions/logout-action.js.map +1 -1
  4. app-rn-runtime/actions/navigation-action.js +14 -2
  5. app-rn-runtime/actions/navigation-action.js.map +1 -1
  6. app-rn-runtime/actions/notification-action.js +5 -4
  7. app-rn-runtime/actions/notification-action.js.map +1 -1
  8. app-rn-runtime/actions/timer-action.js.map +1 -1
  9. app-rn-runtime/components/advanced/carousel/carousel-content/carousel-content.component.js +1 -1
  10. app-rn-runtime/components/advanced/carousel/carousel-content/carousel-content.component.js.map +1 -1
  11. app-rn-runtime/components/advanced/carousel/carousel-content/carousel-content.props.js.map +1 -1
  12. app-rn-runtime/components/advanced/carousel/carousel-template/carousel-template.component.js +1 -1
  13. app-rn-runtime/components/advanced/carousel/carousel-template/carousel-template.component.js.map +1 -1
  14. app-rn-runtime/components/advanced/carousel/carousel-template/carousel-template.props.js.map +1 -1
  15. app-rn-runtime/components/advanced/carousel/carousel.component.js +2 -2
  16. app-rn-runtime/components/advanced/carousel/carousel.component.js.map +1 -1
  17. app-rn-runtime/components/advanced/carousel/carousel.props.js.map +1 -1
  18. app-rn-runtime/components/advanced/carousel/carousel.styles.js +16 -0
  19. app-rn-runtime/components/advanced/carousel/carousel.styles.js.map +1 -1
  20. app-rn-runtime/components/advanced/login/login.component.js +1 -1
  21. app-rn-runtime/components/advanced/login/login.component.js.map +1 -1
  22. app-rn-runtime/components/advanced/login/login.props.js.map +1 -1
  23. app-rn-runtime/components/advanced/network-info-toaster/network-info-toaster.component.js +5 -5
  24. app-rn-runtime/components/advanced/network-info-toaster/network-info-toaster.component.js.map +1 -1
  25. app-rn-runtime/components/advanced/network-info-toaster/network-info-toaster.props.js.map +1 -1
  26. app-rn-runtime/components/advanced/webview/webview.component.js +1 -1
  27. app-rn-runtime/components/advanced/webview/webview.component.js.map +1 -1
  28. app-rn-runtime/components/advanced/webview/webview.props.js.map +1 -1
  29. app-rn-runtime/components/basic/anchor/anchor.component.js +2 -1
  30. app-rn-runtime/components/basic/anchor/anchor.component.js.map +1 -1
  31. app-rn-runtime/components/basic/anchor/anchor.props.js.map +1 -1
  32. app-rn-runtime/components/basic/anchor/anchor.styles.js +5 -0
  33. app-rn-runtime/components/basic/anchor/anchor.styles.js.map +1 -1
  34. app-rn-runtime/components/basic/animatedview.component.js +1 -3
  35. app-rn-runtime/components/basic/animatedview.component.js.map +1 -1
  36. app-rn-runtime/components/basic/audio/audio.component.js +232 -0
  37. app-rn-runtime/components/basic/audio/audio.component.js.map +1 -0
  38. app-rn-runtime/components/basic/audio/audio.props.js +15 -0
  39. app-rn-runtime/components/basic/audio/audio.props.js.map +1 -0
  40. app-rn-runtime/components/basic/audio/audio.styles.js +61 -0
  41. app-rn-runtime/components/basic/audio/audio.styles.js.map +1 -0
  42. app-rn-runtime/components/basic/button/button.component.js +1 -1
  43. app-rn-runtime/components/basic/button/button.component.js.map +1 -1
  44. app-rn-runtime/components/basic/button/button.props.js.map +1 -1
  45. app-rn-runtime/components/basic/button/button.styles.js.map +1 -1
  46. app-rn-runtime/components/basic/buttongroup/buttongroup.component.js +1 -1
  47. app-rn-runtime/components/basic/buttongroup/buttongroup.component.js.map +1 -1
  48. app-rn-runtime/components/basic/buttongroup/buttongroup.props.js.map +1 -1
  49. app-rn-runtime/components/basic/buttongroup/buttongroup.styles.js.map +1 -1
  50. app-rn-runtime/components/basic/custom/custom.component.js +25 -0
  51. app-rn-runtime/components/basic/custom/custom.component.js.map +1 -0
  52. app-rn-runtime/components/basic/custom/custom.props.js +16 -0
  53. app-rn-runtime/components/basic/custom/custom.props.js.map +1 -0
  54. app-rn-runtime/components/basic/custom/custom.styles.js +18 -0
  55. app-rn-runtime/components/basic/custom/custom.styles.js.map +1 -0
  56. app-rn-runtime/components/basic/icon/icon.component.js +1 -1
  57. app-rn-runtime/components/basic/icon/icon.component.js.map +1 -1
  58. app-rn-runtime/components/basic/icon/icon.props.js.map +1 -1
  59. app-rn-runtime/components/basic/icon/icon.styles.js +5 -0
  60. app-rn-runtime/components/basic/icon/icon.styles.js.map +1 -1
  61. app-rn-runtime/components/basic/label/label.component.js +3 -2
  62. app-rn-runtime/components/basic/label/label.component.js.map +1 -1
  63. app-rn-runtime/components/basic/label/label.props.js.map +1 -1
  64. app-rn-runtime/components/basic/label/label.styles.js +8 -0
  65. app-rn-runtime/components/basic/label/label.styles.js.map +1 -1
  66. app-rn-runtime/components/basic/lottie/lottie.component.js +137 -0
  67. app-rn-runtime/components/basic/lottie/lottie.component.js.map +1 -0
  68. app-rn-runtime/components/basic/lottie/lottie.props.js +14 -0
  69. app-rn-runtime/components/basic/lottie/lottie.props.js.map +1 -0
  70. app-rn-runtime/components/basic/lottie/lottie.styles.js +11 -0
  71. app-rn-runtime/components/basic/lottie/lottie.styles.js.map +1 -0
  72. app-rn-runtime/components/basic/message/message.component.js +1 -1
  73. app-rn-runtime/components/basic/message/message.component.js.map +1 -1
  74. app-rn-runtime/components/basic/message/message.props.js.map +1 -1
  75. app-rn-runtime/components/basic/message/message.styles.js +22 -0
  76. app-rn-runtime/components/basic/message/message.styles.js.map +1 -1
  77. app-rn-runtime/components/basic/modal/modal.component.js.map +1 -1
  78. app-rn-runtime/components/basic/modal/modal.props.js.map +1 -1
  79. app-rn-runtime/components/basic/modal/modal.styles.js.map +1 -1
  80. app-rn-runtime/components/basic/picture/picture.component.js +40 -29
  81. app-rn-runtime/components/basic/picture/picture.component.js.map +1 -1
  82. app-rn-runtime/components/basic/picture/picture.props.js.map +1 -1
  83. app-rn-runtime/components/basic/picture/picture.styles.js.map +1 -1
  84. app-rn-runtime/components/basic/progress-bar/progress-bar.component.js +3 -2
  85. app-rn-runtime/components/basic/progress-bar/progress-bar.component.js.map +1 -1
  86. app-rn-runtime/components/basic/progress-bar/progress-bar.props.js.map +1 -1
  87. app-rn-runtime/components/basic/progress-bar/progress-bar.styles.js.map +1 -1
  88. app-rn-runtime/components/basic/progress-circle/progress-circle.component.js +1 -1
  89. app-rn-runtime/components/basic/progress-circle/progress-circle.component.js.map +1 -1
  90. app-rn-runtime/components/basic/progress-circle/progress-circle.props.js.map +1 -1
  91. app-rn-runtime/components/basic/progress-circle/progress-circle.styles.js.map +1 -1
  92. app-rn-runtime/components/basic/search/local-data-provider.js.map +1 -1
  93. app-rn-runtime/components/basic/search/search.component.js +5 -2
  94. app-rn-runtime/components/basic/search/search.component.js.map +1 -1
  95. app-rn-runtime/components/basic/search/search.props.js +1 -0
  96. app-rn-runtime/components/basic/search/search.props.js.map +1 -1
  97. app-rn-runtime/components/basic/search/search.styles.js +47 -0
  98. app-rn-runtime/components/basic/search/search.styles.js.map +1 -1
  99. app-rn-runtime/components/basic/skeleton/skeleton.component.js.map +1 -1
  100. app-rn-runtime/components/basic/spinner/spinner.component.js +13 -11
  101. app-rn-runtime/components/basic/spinner/spinner.component.js.map +1 -1
  102. app-rn-runtime/components/basic/spinner/spinner.props.js.map +1 -1
  103. app-rn-runtime/components/basic/spinner/spinner.styles.js +8 -0
  104. app-rn-runtime/components/basic/spinner/spinner.styles.js.map +1 -1
  105. app-rn-runtime/components/basic/video/video.component.js +56 -0
  106. app-rn-runtime/components/basic/video/video.component.js.map +1 -0
  107. app-rn-runtime/components/basic/video/video.props.js +22 -0
  108. app-rn-runtime/components/basic/video/video.props.js.map +1 -0
  109. app-rn-runtime/components/basic/video/video.styles.js +11 -0
  110. app-rn-runtime/components/basic/video/video.styles.js.map +1 -0
  111. app-rn-runtime/components/chart/area-chart/area-chart.component.js.map +1 -1
  112. app-rn-runtime/components/chart/bar-chart/bar-chart.component.js.map +1 -1
  113. app-rn-runtime/components/chart/bar-chart/bar-chart.props.js.map +1 -1
  114. app-rn-runtime/components/chart/basechart.component.js.map +1 -1
  115. app-rn-runtime/components/chart/basechart.props.js +1 -0
  116. app-rn-runtime/components/chart/basechart.props.js.map +1 -1
  117. app-rn-runtime/components/chart/basechart.styles.js +17 -0
  118. app-rn-runtime/components/chart/basechart.styles.js.map +1 -1
  119. app-rn-runtime/components/chart/bubble-chart/bubble-chart.component.js.map +1 -1
  120. app-rn-runtime/components/chart/column-chart/column-chart.component.js.map +1 -1
  121. app-rn-runtime/components/chart/donut-chart/donut-chart.component.js.map +1 -1
  122. app-rn-runtime/components/chart/donut-chart/donut-chart.props.js +0 -1
  123. app-rn-runtime/components/chart/donut-chart/donut-chart.props.js.map +1 -1
  124. app-rn-runtime/components/chart/legend/legend.component.js +36 -0
  125. app-rn-runtime/components/chart/legend/legend.component.js.map +1 -0
  126. app-rn-runtime/components/chart/line-chart/line-chart.component.js.map +1 -1
  127. app-rn-runtime/components/chart/line-chart/line-chart.props.js.map +1 -1
  128. app-rn-runtime/components/chart/pie-chart/pie-chart.component.js +119 -40
  129. app-rn-runtime/components/chart/pie-chart/pie-chart.component.js.map +1 -1
  130. app-rn-runtime/components/chart/pie-chart/pie-chart.props.js +1 -2
  131. app-rn-runtime/components/chart/pie-chart/pie-chart.props.js.map +1 -1
  132. app-rn-runtime/components/chart/theme/chart.theme.js.map +1 -1
  133. app-rn-runtime/components/container/accordion/accordion.component.js +75 -119
  134. app-rn-runtime/components/container/accordion/accordion.component.js.map +1 -1
  135. app-rn-runtime/components/container/accordion/accordion.props.js +1 -0
  136. app-rn-runtime/components/container/accordion/accordion.props.js.map +1 -1
  137. app-rn-runtime/components/container/accordion/accordion.styles.js +14 -4
  138. app-rn-runtime/components/container/accordion/accordion.styles.js.map +1 -1
  139. app-rn-runtime/components/container/accordion/accordionpane/accordionpane.component.js +49 -8
  140. app-rn-runtime/components/container/accordion/accordionpane/accordionpane.component.js.map +1 -1
  141. app-rn-runtime/components/container/accordion/accordionpane/accordionpane.props.js.map +1 -1
  142. app-rn-runtime/components/container/container.component.js +1 -1
  143. app-rn-runtime/components/container/container.component.js.map +1 -1
  144. app-rn-runtime/components/container/container.props.js.map +1 -1
  145. app-rn-runtime/components/container/container.styles.js.map +1 -1
  146. app-rn-runtime/components/container/layoutgrid/gridcolumn/gridcolumn.component.js +1 -1
  147. app-rn-runtime/components/container/layoutgrid/gridcolumn/gridcolumn.component.js.map +1 -1
  148. app-rn-runtime/components/container/layoutgrid/gridcolumn/gridcolumn.props.js.map +1 -1
  149. app-rn-runtime/components/container/layoutgrid/gridrow/gridrow.component.js +1 -1
  150. app-rn-runtime/components/container/layoutgrid/gridrow/gridrow.component.js.map +1 -1
  151. app-rn-runtime/components/container/layoutgrid/gridrow/gridrow.props.js.map +1 -1
  152. app-rn-runtime/components/container/layoutgrid/layoutgrid.component.js +1 -1
  153. app-rn-runtime/components/container/layoutgrid/layoutgrid.component.js.map +1 -1
  154. app-rn-runtime/components/container/layoutgrid/layoutgrid.props.js.map +1 -1
  155. app-rn-runtime/components/container/layoutgrid/layoutgrid.styles.js.map +1 -1
  156. app-rn-runtime/components/container/linearlayout/linearlayout.component.js +1 -1
  157. app-rn-runtime/components/container/linearlayout/linearlayout.component.js.map +1 -1
  158. app-rn-runtime/components/container/linearlayout/linearlayout.props.js.map +1 -1
  159. app-rn-runtime/components/container/linearlayout/linearlayoutitem/linearlayoutitem.component.js +1 -1
  160. app-rn-runtime/components/container/linearlayout/linearlayoutitem/linearlayoutitem.component.js.map +1 -1
  161. app-rn-runtime/components/container/linearlayout/linearlayoutitem/linearlayoutitem.props.js.map +1 -1
  162. app-rn-runtime/components/container/panel/panel-content/panel-content.component.js +1 -1
  163. app-rn-runtime/components/container/panel/panel-content/panel-content.component.js.map +1 -1
  164. app-rn-runtime/components/container/panel/panel-content/panel-content.props.js.map +1 -1
  165. app-rn-runtime/components/container/panel/panel-footer/panel-footer.component.js +1 -1
  166. app-rn-runtime/components/container/panel/panel-footer/panel-footer.component.js.map +1 -1
  167. app-rn-runtime/components/container/panel/panel-footer/panel-footer.props.js.map +1 -1
  168. app-rn-runtime/components/container/panel/panel.component.js +1 -1
  169. app-rn-runtime/components/container/panel/panel.component.js.map +1 -1
  170. app-rn-runtime/components/container/panel/panel.props.js.map +1 -1
  171. app-rn-runtime/components/container/panel/panel.styles.js +9 -0
  172. app-rn-runtime/components/container/panel/panel.styles.js.map +1 -1
  173. app-rn-runtime/components/container/partial-host.component.js.map +1 -1
  174. app-rn-runtime/components/container/tabs/tabheader/tabheader.component.js +42 -9
  175. app-rn-runtime/components/container/tabs/tabheader/tabheader.component.js.map +1 -1
  176. app-rn-runtime/components/container/tabs/tabheader/tabheader.props.js.map +1 -1
  177. app-rn-runtime/components/container/tabs/tabheader/tabheader.styles.js +12 -2
  178. app-rn-runtime/components/container/tabs/tabheader/tabheader.styles.js.map +1 -1
  179. app-rn-runtime/components/container/tabs/tabpane/tabpane.component.js +5 -2
  180. app-rn-runtime/components/container/tabs/tabpane/tabpane.component.js.map +1 -1
  181. app-rn-runtime/components/container/tabs/tabpane/tabpane.props.js.map +1 -1
  182. app-rn-runtime/components/container/tabs/tabs.component.js +84 -65
  183. app-rn-runtime/components/container/tabs/tabs.component.js.map +1 -1
  184. app-rn-runtime/components/container/tabs/tabs.props.js +1 -0
  185. app-rn-runtime/components/container/tabs/tabs.props.js.map +1 -1
  186. app-rn-runtime/components/container/tabs/tabs.styles.js +40 -1
  187. app-rn-runtime/components/container/tabs/tabs.styles.js.map +1 -1
  188. app-rn-runtime/components/container/tile/tile.component.js +1 -1
  189. app-rn-runtime/components/container/tile/tile.component.js.map +1 -1
  190. app-rn-runtime/components/container/tile/tile.props.js.map +1 -1
  191. app-rn-runtime/components/container/tile/tile.styles.js.map +1 -1
  192. app-rn-runtime/components/container/wizard/wizard.component.js +16 -7
  193. app-rn-runtime/components/container/wizard/wizard.component.js.map +1 -1
  194. app-rn-runtime/components/container/wizard/wizard.props.js.map +1 -1
  195. app-rn-runtime/components/container/wizard/wizard.styles.js +53 -1
  196. app-rn-runtime/components/container/wizard/wizard.styles.js.map +1 -1
  197. app-rn-runtime/components/container/wizard/wizardstep/wizardstep.component.js +1 -1
  198. app-rn-runtime/components/container/wizard/wizardstep/wizardstep.component.js.map +1 -1
  199. app-rn-runtime/components/container/wizard/wizardstep/wizardstep.props.js.map +1 -1
  200. app-rn-runtime/components/data/card/card-content/card-content.component.js +1 -1
  201. app-rn-runtime/components/data/card/card-content/card-content.component.js.map +1 -1
  202. app-rn-runtime/components/data/card/card-content/card-content.props.js.map +1 -1
  203. app-rn-runtime/components/data/card/card-footer/card-footer.component.js +1 -1
  204. app-rn-runtime/components/data/card/card-footer/card-footer.component.js.map +1 -1
  205. app-rn-runtime/components/data/card/card-footer/card-footer.props.js.map +1 -1
  206. app-rn-runtime/components/data/card/card.component.js +1 -1
  207. app-rn-runtime/components/data/card/card.component.js.map +1 -1
  208. app-rn-runtime/components/data/card/card.props.js.map +1 -1
  209. app-rn-runtime/components/data/form/form-action/form-action.component.js +0 -6
  210. app-rn-runtime/components/data/form/form-action/form-action.component.js.map +1 -1
  211. app-rn-runtime/components/data/form/form-action/form-action.props.js.map +1 -1
  212. app-rn-runtime/components/data/form/form-action/form-action.styles.js.map +1 -1
  213. app-rn-runtime/components/data/form/form-body/form-body.component.js +1 -1
  214. app-rn-runtime/components/data/form/form-body/form-body.component.js.map +1 -1
  215. app-rn-runtime/components/data/form/form-body/form-body.props.js.map +1 -1
  216. app-rn-runtime/components/data/form/form-field/form-field.component.js +3 -3
  217. app-rn-runtime/components/data/form/form-field/form-field.component.js.map +1 -1
  218. app-rn-runtime/components/data/form/form-field/form-field.props.js.map +1 -1
  219. app-rn-runtime/components/data/form/form-field/form-field.styles.js.map +1 -1
  220. app-rn-runtime/components/data/form/form-footer/form-footer.component.js +1 -1
  221. app-rn-runtime/components/data/form/form-footer/form-footer.component.js.map +1 -1
  222. app-rn-runtime/components/data/form/form-footer/form-footer.props.js.map +1 -1
  223. app-rn-runtime/components/data/form/form.component.js +3 -33
  224. app-rn-runtime/components/data/form/form.component.js.map +1 -1
  225. app-rn-runtime/components/data/form/form.props.js.map +1 -1
  226. app-rn-runtime/components/data/form/form.styles.js.map +1 -1
  227. app-rn-runtime/components/data/list/list-template/list-template.component.js +1 -1
  228. app-rn-runtime/components/data/list/list-template/list-template.component.js.map +1 -1
  229. app-rn-runtime/components/data/list/list-template/list-template.props.js.map +1 -1
  230. app-rn-runtime/components/data/list/list-template/list-template.styles.js.map +1 -1
  231. app-rn-runtime/components/data/list/list.component.js +94 -24
  232. app-rn-runtime/components/data/list/list.component.js.map +1 -1
  233. app-rn-runtime/components/data/list/list.props.js +2 -0
  234. app-rn-runtime/components/data/list/list.props.js.map +1 -1
  235. app-rn-runtime/components/data/list/list.styles.js.map +1 -1
  236. app-rn-runtime/components/device/barcodescanner/barcodescanner.component.js +3 -2
  237. app-rn-runtime/components/device/barcodescanner/barcodescanner.component.js.map +1 -1
  238. app-rn-runtime/components/device/barcodescanner/barcodescanner.props.js.map +1 -1
  239. app-rn-runtime/components/device/camera/camera.component.js +9 -4
  240. app-rn-runtime/components/device/camera/camera.component.js.map +1 -1
  241. app-rn-runtime/components/device/camera/camera.props.js +0 -1
  242. app-rn-runtime/components/device/camera/camera.props.js.map +1 -1
  243. app-rn-runtime/components/dialogs/alertdialog/alertdialog.component.js.map +1 -1
  244. app-rn-runtime/components/dialogs/alertdialog/alertdialog.props.js.map +1 -1
  245. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.component.js.map +1 -1
  246. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.props.js.map +1 -1
  247. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.styles.js +9 -0
  248. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.styles.js.map +1 -1
  249. app-rn-runtime/components/dialogs/dialog/dialog.component.js +6 -3
  250. app-rn-runtime/components/dialogs/dialog/dialog.component.js.map +1 -1
  251. app-rn-runtime/components/dialogs/dialog/dialog.props.js.map +1 -1
  252. app-rn-runtime/components/dialogs/dialogactions/dialogactions.component.js +1 -1
  253. app-rn-runtime/components/dialogs/dialogactions/dialogactions.component.js.map +1 -1
  254. app-rn-runtime/components/dialogs/dialogactions/dialogactions.props.js.map +1 -1
  255. app-rn-runtime/components/dialogs/dialogcontent/dialogcontent.component.js +1 -1
  256. app-rn-runtime/components/dialogs/dialogcontent/dialogcontent.component.js.map +1 -1
  257. app-rn-runtime/components/dialogs/dialogcontent/dialogcontent.props.js.map +1 -1
  258. app-rn-runtime/components/input/basedataset/basedataset.component.js.map +1 -1
  259. app-rn-runtime/components/input/basedataset/basedataset.props.js.map +1 -1
  260. app-rn-runtime/components/input/baseinput/baseinput.component.js +8 -1
  261. app-rn-runtime/components/input/baseinput/baseinput.component.js.map +1 -1
  262. app-rn-runtime/components/input/baseinput/baseinput.props.js.map +1 -1
  263. app-rn-runtime/components/input/basenumber/basenumber.component.js +1 -1
  264. app-rn-runtime/components/input/basenumber/basenumber.component.js.map +1 -1
  265. app-rn-runtime/components/input/basenumber/basenumber.props.js.map +1 -1
  266. app-rn-runtime/components/input/calendar/calendar.component.js +1 -1
  267. app-rn-runtime/components/input/calendar/calendar.component.js.map +1 -1
  268. app-rn-runtime/components/input/calendar/calendar.props.js.map +1 -1
  269. app-rn-runtime/components/input/calendar/calendar.styles.js +22 -0
  270. app-rn-runtime/components/input/calendar/calendar.styles.js.map +1 -1
  271. app-rn-runtime/components/input/calendar/views/month-view.js +1 -0
  272. app-rn-runtime/components/input/calendar/views/month-view.js.map +1 -1
  273. app-rn-runtime/components/input/checkbox/checkbox.component.js +1 -16
  274. app-rn-runtime/components/input/checkbox/checkbox.component.js.map +1 -1
  275. app-rn-runtime/components/input/checkbox/checkbox.props.js.map +1 -1
  276. app-rn-runtime/components/input/checkboxset/checkboxset.component.js +0 -38
  277. app-rn-runtime/components/input/checkboxset/checkboxset.component.js.map +1 -1
  278. app-rn-runtime/components/input/checkboxset/checkboxset.props.js.map +1 -1
  279. app-rn-runtime/components/input/chips/chips.component.js +1 -0
  280. app-rn-runtime/components/input/chips/chips.component.js.map +1 -1
  281. app-rn-runtime/components/input/chips/chips.props.js.map +1 -1
  282. app-rn-runtime/components/input/composite/composite.component.js +1 -1
  283. app-rn-runtime/components/input/composite/composite.component.js.map +1 -1
  284. app-rn-runtime/components/input/composite/composite.props.js.map +1 -1
  285. app-rn-runtime/components/input/currency/currency.component.js +6 -4
  286. app-rn-runtime/components/input/currency/currency.component.js.map +1 -1
  287. app-rn-runtime/components/input/currency/currency.props.js +1 -1
  288. app-rn-runtime/components/input/currency/currency.props.js.map +1 -1
  289. app-rn-runtime/components/input/currency/currency.styles.js +9 -0
  290. app-rn-runtime/components/input/currency/currency.styles.js.map +1 -1
  291. app-rn-runtime/components/input/epoch/base-datetime.component.js +6 -3
  292. app-rn-runtime/components/input/epoch/base-datetime.component.js.map +1 -1
  293. app-rn-runtime/components/input/epoch/date/date.component.js.map +1 -1
  294. app-rn-runtime/components/input/epoch/date/date.props.js.map +1 -1
  295. app-rn-runtime/components/input/epoch/date/date.styles.js +9 -0
  296. app-rn-runtime/components/input/epoch/date/date.styles.js.map +1 -1
  297. app-rn-runtime/components/input/epoch/date-picker.component.js.map +1 -1
  298. app-rn-runtime/components/input/epoch/datetime/datetime.component.js.map +1 -1
  299. app-rn-runtime/components/input/epoch/datetime/datetime.props.js.map +1 -1
  300. app-rn-runtime/components/input/epoch/datetime/datetime.styles.js +9 -0
  301. app-rn-runtime/components/input/epoch/datetime/datetime.styles.js.map +1 -1
  302. app-rn-runtime/components/input/epoch/time/time.component.js.map +1 -1
  303. app-rn-runtime/components/input/epoch/time/time.props.js.map +1 -1
  304. app-rn-runtime/components/input/epoch/time/time.styles.js +9 -0
  305. app-rn-runtime/components/input/epoch/time/time.styles.js.map +1 -1
  306. app-rn-runtime/components/input/fileupload/fileupload.component.js +1 -1
  307. app-rn-runtime/components/input/fileupload/fileupload.component.js.map +1 -1
  308. app-rn-runtime/components/input/fileupload/fileupload.props.js.map +1 -1
  309. app-rn-runtime/components/input/number/number.component.js +6 -13
  310. app-rn-runtime/components/input/number/number.component.js.map +1 -1
  311. app-rn-runtime/components/input/number/number.props.js +1 -1
  312. app-rn-runtime/components/input/number/number.props.js.map +1 -1
  313. app-rn-runtime/components/input/number/number.styles.js +5 -0
  314. app-rn-runtime/components/input/number/number.styles.js.map +1 -1
  315. app-rn-runtime/components/input/radioset/radioset.component.js +0 -40
  316. app-rn-runtime/components/input/radioset/radioset.component.js.map +1 -1
  317. app-rn-runtime/components/input/radioset/radioset.props.js.map +1 -1
  318. app-rn-runtime/components/input/rating/rating.component.js +2 -2
  319. app-rn-runtime/components/input/rating/rating.component.js.map +1 -1
  320. app-rn-runtime/components/input/rating/rating.props.js.map +1 -1
  321. app-rn-runtime/components/input/select/select.component.js +1 -1
  322. app-rn-runtime/components/input/select/select.component.js.map +1 -1
  323. app-rn-runtime/components/input/select/select.props.js.map +1 -1
  324. app-rn-runtime/components/input/select/select.styles.js +10 -0
  325. app-rn-runtime/components/input/select/select.styles.js.map +1 -1
  326. app-rn-runtime/components/input/slider/slider.component.js +3 -2
  327. app-rn-runtime/components/input/slider/slider.component.js.map +1 -1
  328. app-rn-runtime/components/input/slider/slider.props.js.map +1 -1
  329. app-rn-runtime/components/input/switch/switch.component.js +19 -22
  330. app-rn-runtime/components/input/switch/switch.component.js.map +1 -1
  331. app-rn-runtime/components/input/switch/switch.props.js.map +1 -1
  332. app-rn-runtime/components/input/switch/switch.styles.js +43 -7
  333. app-rn-runtime/components/input/switch/switch.styles.js.map +1 -1
  334. app-rn-runtime/components/input/text/text.component.js +6 -13
  335. app-rn-runtime/components/input/text/text.component.js.map +1 -1
  336. app-rn-runtime/components/input/text/text.props.js.map +1 -1
  337. app-rn-runtime/components/input/text/text.styles.js +5 -0
  338. app-rn-runtime/components/input/text/text.styles.js.map +1 -1
  339. app-rn-runtime/components/input/textarea/textarea.component.js +5 -13
  340. app-rn-runtime/components/input/textarea/textarea.component.js.map +1 -1
  341. app-rn-runtime/components/input/textarea/textarea.props.js.map +1 -1
  342. app-rn-runtime/components/input/textarea/textarea.styles.js +5 -0
  343. app-rn-runtime/components/input/textarea/textarea.styles.js.map +1 -1
  344. app-rn-runtime/components/input/toggle/toggle.component.js +17 -11
  345. app-rn-runtime/components/input/toggle/toggle.component.js.map +1 -1
  346. app-rn-runtime/components/input/toggle/toggle.props.js.map +1 -1
  347. app-rn-runtime/components/input/toggle/toggle.styles.js +28 -3
  348. app-rn-runtime/components/input/toggle/toggle.styles.js.map +1 -1
  349. app-rn-runtime/components/navigation/appnavbar/appnavbar.component.js +1 -1
  350. app-rn-runtime/components/navigation/appnavbar/appnavbar.component.js.map +1 -1
  351. app-rn-runtime/components/navigation/appnavbar/appnavbar.props.js.map +1 -1
  352. app-rn-runtime/components/navigation/appnavbar/appnavbar.styles.js.map +1 -1
  353. app-rn-runtime/components/navigation/basenav/basenav.component.js.map +1 -1
  354. app-rn-runtime/components/navigation/basenav/basenav.props.js +1 -0
  355. app-rn-runtime/components/navigation/basenav/basenav.props.js.map +1 -1
  356. app-rn-runtime/components/navigation/menu/menu.component.js +2 -1
  357. app-rn-runtime/components/navigation/menu/menu.component.js.map +1 -1
  358. app-rn-runtime/components/navigation/menu/menu.props.js.map +1 -1
  359. app-rn-runtime/components/navigation/menu/menu.styles.js +6 -0
  360. app-rn-runtime/components/navigation/menu/menu.styles.js.map +1 -1
  361. app-rn-runtime/components/navigation/navbar/navbar.component.js +2 -0
  362. app-rn-runtime/components/navigation/navbar/navbar.component.js.map +1 -1
  363. app-rn-runtime/components/navigation/navbar/navbar.props.js.map +1 -1
  364. app-rn-runtime/components/navigation/navbar/navbar.styles.js.map +1 -1
  365. app-rn-runtime/components/navigation/navitem/navitem.component.js +4 -3
  366. app-rn-runtime/components/navigation/navitem/navitem.component.js.map +1 -1
  367. app-rn-runtime/components/navigation/navitem/navitem.props.js +1 -0
  368. app-rn-runtime/components/navigation/navitem/navitem.props.js.map +1 -1
  369. app-rn-runtime/components/navigation/navitem/navitem.styles.js.map +1 -1
  370. app-rn-runtime/components/navigation/popover/popover.component.js +1 -1
  371. app-rn-runtime/components/navigation/popover/popover.component.js.map +1 -1
  372. app-rn-runtime/components/navigation/popover/popover.props.js.map +1 -1
  373. app-rn-runtime/components/navigation/popover/popover.styles.js.map +1 -1
  374. app-rn-runtime/components/page/content/content.component.js +1 -1
  375. app-rn-runtime/components/page/content/content.component.js.map +1 -1
  376. app-rn-runtime/components/page/left-panel/left-panel.component.js +1 -1
  377. app-rn-runtime/components/page/left-panel/left-panel.component.js.map +1 -1
  378. app-rn-runtime/components/page/left-panel/left-panel.props.js.map +1 -1
  379. app-rn-runtime/components/page/page-content/page-content.component.js +2 -2
  380. app-rn-runtime/components/page/page-content/page-content.component.js.map +1 -1
  381. app-rn-runtime/components/page/page-content/page-content.props.js.map +1 -1
  382. app-rn-runtime/components/page/page.component.js +1 -1
  383. app-rn-runtime/components/page/page.component.js.map +1 -1
  384. app-rn-runtime/components/page/partial/partial.component.js +1 -1
  385. app-rn-runtime/components/page/partial/partial.component.js.map +1 -1
  386. app-rn-runtime/components/page/partial-container/partial-container.component.js +1 -1
  387. app-rn-runtime/components/page/partial-container/partial-container.component.js.map +1 -1
  388. app-rn-runtime/components/page/partial-container/partial-container.props.js.map +1 -1
  389. app-rn-runtime/components/page/partial-container/partial-container.styles.js +2 -1
  390. app-rn-runtime/components/page/partial-container/partial-container.styles.js.map +1 -1
  391. app-rn-runtime/components/page/tabbar/tabbar.component.js +2 -1
  392. app-rn-runtime/components/page/tabbar/tabbar.component.js.map +1 -1
  393. app-rn-runtime/components/page/tabbar/tabbar.props.js.map +1 -1
  394. app-rn-runtime/components/prefab/prefab-container.component.js +1 -1
  395. app-rn-runtime/components/prefab/prefab-container.component.js.map +1 -1
  396. app-rn-runtime/core/asset.provider.js +5 -0
  397. app-rn-runtime/core/asset.provider.js.map +1 -0
  398. app-rn-runtime/core/base.component.js +131 -54
  399. app-rn-runtime/core/base.component.js.map +1 -1
  400. app-rn-runtime/core/components/textinput.component.js +37 -0
  401. app-rn-runtime/core/components/textinput.component.js.map +1 -0
  402. app-rn-runtime/core/device/camera-service.js.map +1 -1
  403. app-rn-runtime/core/device/scan-service.js.map +1 -1
  404. app-rn-runtime/core/display.manager.js.map +1 -1
  405. app-rn-runtime/core/event-notifier.js.map +1 -1
  406. app-rn-runtime/core/fixed-view.component.js.map +1 -1
  407. app-rn-runtime/core/formatters.js.map +1 -1
  408. app-rn-runtime/core/i18n.service.js +2 -0
  409. app-rn-runtime/core/i18n.service.js.map +1 -0
  410. app-rn-runtime/core/if.component.js +3 -3
  411. app-rn-runtime/core/if.component.js.map +1 -1
  412. app-rn-runtime/core/imageSizeEstimator.js +1 -0
  413. app-rn-runtime/core/imageSizeEstimator.js.map +1 -1
  414. app-rn-runtime/core/injector.js +16 -1
  415. app-rn-runtime/core/injector.js.map +1 -1
  416. app-rn-runtime/core/logger.js +4 -1
  417. app-rn-runtime/core/logger.js.map +1 -1
  418. app-rn-runtime/core/modal.service.js.map +1 -1
  419. app-rn-runtime/core/navigation.service.js.map +1 -1
  420. app-rn-runtime/core/network.service.js +17 -15
  421. app-rn-runtime/core/network.service.js.map +1 -1
  422. app-rn-runtime/core/partial.service.js.map +1 -1
  423. app-rn-runtime/core/props.provider.js.map +1 -1
  424. app-rn-runtime/core/scroll-view.component.js.map +1 -1
  425. app-rn-runtime/core/security.service.js.map +1 -1
  426. app-rn-runtime/core/spinner.service.js.map +1 -1
  427. app-rn-runtime/core/storage.service.js.map +1 -1
  428. app-rn-runtime/core/tappable.component.js +20 -4
  429. app-rn-runtime/core/tappable.component.js.map +1 -1
  430. app-rn-runtime/core/toast.service.js.map +1 -1
  431. app-rn-runtime/core/utils.js +24 -0
  432. app-rn-runtime/core/utils.js.map +1 -1
  433. app-rn-runtime/core/viewport.js.map +1 -1
  434. app-rn-runtime/gestures/swipe.animation.js +110 -0
  435. app-rn-runtime/gestures/swipe.animation.js.map +1 -0
  436. app-rn-runtime/package.json +33 -32
  437. app-rn-runtime/runtime/App.js +38 -22
  438. app-rn-runtime/runtime/App.js.map +1 -1
  439. app-rn-runtime/runtime/App.navigator.js +13 -14
  440. app-rn-runtime/runtime/App.navigator.js.map +1 -1
  441. app-rn-runtime/runtime/base-fragment.component.js +12 -10
  442. app-rn-runtime/runtime/base-fragment.component.js.map +1 -1
  443. app-rn-runtime/runtime/base-page.component.js +2 -0
  444. app-rn-runtime/runtime/base-page.component.js.map +1 -1
  445. app-rn-runtime/runtime/base-partial.component.js.map +1 -1
  446. app-rn-runtime/runtime/base-prefab.component.js +1 -5
  447. app-rn-runtime/runtime/base-prefab.component.js.map +1 -1
  448. app-rn-runtime/runtime/lib-patch.js.map +1 -1
  449. app-rn-runtime/runtime/memo.component.js.map +1 -1
  450. app-rn-runtime/runtime/navigator/drawer.navigator.js +4 -0
  451. app-rn-runtime/runtime/navigator/drawer.navigator.js.map +1 -1
  452. app-rn-runtime/runtime/navigator/stack.navigator.js +5 -1
  453. app-rn-runtime/runtime/navigator/stack.navigator.js.map +1 -1
  454. app-rn-runtime/runtime/services/app-display-manager.service.js.map +1 -1
  455. app-rn-runtime/runtime/services/app-i18n.service.js +20 -0
  456. app-rn-runtime/runtime/services/app-i18n.service.js.map +1 -1
  457. app-rn-runtime/runtime/services/app-modal.service.js.map +1 -1
  458. app-rn-runtime/runtime/services/app-security.service.js +7 -7
  459. app-rn-runtime/runtime/services/app-security.service.js.map +1 -1
  460. app-rn-runtime/runtime/services/app-spinner.service.js +8 -3
  461. app-rn-runtime/runtime/services/app-spinner.service.js.map +1 -1
  462. app-rn-runtime/runtime/services/app-toast.service.js +1 -1
  463. app-rn-runtime/runtime/services/app-toast.service.js.map +1 -1
  464. app-rn-runtime/runtime/services/device/calendar-service.js.map +1 -1
  465. app-rn-runtime/runtime/services/device/camera-service.js +30 -9
  466. app-rn-runtime/runtime/services/device/camera-service.js.map +1 -1
  467. app-rn-runtime/runtime/services/device/contacts-service.js.map +1 -1
  468. app-rn-runtime/runtime/services/device/location-service.js.map +1 -1
  469. app-rn-runtime/runtime/services/device/permissions.js.map +1 -1
  470. app-rn-runtime/runtime/services/device/scan-service.js +15 -14
  471. app-rn-runtime/runtime/services/device/scan-service.js.map +1 -1
  472. app-rn-runtime/runtime/services/partial.service.js.map +1 -1
  473. app-rn-runtime/runtime/services/webprocess.service.js.map +1 -1
  474. app-rn-runtime/runtime/watcher.js.map +1 -1
  475. app-rn-runtime/styles/MediaQueryList.js.map +1 -1
  476. app-rn-runtime/styles/background.component.js +298 -0
  477. app-rn-runtime/styles/background.component.js.map +1 -0
  478. app-rn-runtime/styles/style-prop.validator.js +42 -8
  479. app-rn-runtime/styles/style-prop.validator.js.map +1 -1
  480. app-rn-runtime/styles/style-props.js +93 -0
  481. app-rn-runtime/styles/style-props.js.map +1 -0
  482. app-rn-runtime/styles/theme.js +14 -40
  483. app-rn-runtime/styles/theme.js.map +1 -1
  484. app-rn-runtime/styles/theme.variables.js +55 -1
  485. app-rn-runtime/styles/theme.variables.js.map +1 -1
  486. app-rn-runtime/variables/base-variable.js +3 -3
  487. app-rn-runtime/variables/base-variable.js.map +1 -1
  488. app-rn-runtime/variables/device/calendar/create-event.operation.js.map +1 -1
  489. app-rn-runtime/variables/device/calendar/delete-event.operation.js.map +1 -1
  490. app-rn-runtime/variables/device/calendar/get-events.operation.js.map +1 -1
  491. app-rn-runtime/variables/device/camera/capture-image.operation.js.map +1 -1
  492. app-rn-runtime/variables/device/camera/capture-video.operation.js.map +1 -1
  493. app-rn-runtime/variables/device/contacts/get-contacts.operation.js.map +1 -1
  494. app-rn-runtime/variables/device/device/app-info.operation.js.map +1 -1
  495. app-rn-runtime/variables/device/device/current-geo-position.operation.js.map +1 -1
  496. app-rn-runtime/variables/device/device/device-info.operation.js.map +1 -1
  497. app-rn-runtime/variables/device/device/network-info.operation.js.map +1 -1
  498. app-rn-runtime/variables/device/device/vibrate.operation.js.map +1 -1
  499. app-rn-runtime/variables/device/file/upload-file.operation.js +43 -21
  500. app-rn-runtime/variables/device/file/upload-file.operation.js.map +1 -1
  501. app-rn-runtime/variables/device/operation.provider.js.map +1 -1
  502. app-rn-runtime/variables/device/scan/scan.operation.js.map +1 -1
  503. app-rn-runtime/variables/device-variable.js.map +1 -1
  504. app-rn-runtime/variables/http.service.js +4 -13
  505. app-rn-runtime/variables/http.service.js.map +1 -1
  506. app-rn-runtime/variables/model-variable.js.map +1 -1
  507. app-rn-runtime/variables/service-variable.js +27 -11
  508. app-rn-runtime/variables/service-variable.js.map +1 -1
  509. app-rn-runtime/variables/utils/dataset-util.js.map +1 -1
  510. app-rn-runtime/variables/utils/inflight-queue.js.map +1 -1
  511. app-rn-runtime/variables/utils/variable.utils.js.map +1 -1
@@ -1 +1 @@
1
- {"version":3,"names":["React","Text","View","BaseComponent","BaseComponentState","Tappable","Badge","WmButtonProps","DEFAULT_CLASS","WmIcon","Animatedview","createSkeleton","WmButtonState","WmButton","constructor","props","prepareIcon","styles","icon","name","iconclass","iconsize","prepareBadge","badge","badgevalue","renderSkeleton","prop","theme","skeleton","root","width","skeletonwidth","height","skeletonheight","renderWidget","animation","content","flexDirection","iconposition","text","caption"],"sources":["button.component.tsx"],"sourcesContent":["import React from 'react';\nimport { Text, View } from 'react-native';\nimport { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';\nimport { Tappable } from '@wavemaker/app-rn-runtime/core/tappable.component';\nimport { Badge } from 'react-native-paper';\n\nimport WmButtonProps from './button.props';\nimport { DEFAULT_CLASS, WmButtonStyles } from './button.styles';\nimport WmIcon from '@wavemaker/app-rn-runtime/components/basic/icon/icon.component';\nimport { Animatedview } from '@wavemaker/app-rn-runtime/components/basic/animatedview.component';\nimport { createSkeleton } from '../skeleton/skeleton.component';\n\nexport class WmButtonState extends BaseComponentState<WmButtonProps> {\n\n}\n\nexport default class WmButton extends BaseComponent<WmButtonProps, WmButtonState, WmButtonStyles> {\n\n constructor(props: WmButtonProps) {\n super(props, DEFAULT_CLASS, new WmButtonProps());\n }\n\n private prepareIcon(props: any) {\n return (<WmIcon\n styles={this.styles.icon} name={props.name + '_icon'} iconclass={props.iconclass} iconsize={props.iconsize}></WmIcon>);\n }\n\n private prepareBadge(props: any) {\n //@ts-ignore\n return (<Badge style={this.styles.badge}>{props.badgevalue}</Badge>);\n }\n\n public renderSkeleton(prop: WmButtonProps) {\n return createSkeleton(this.theme, this.styles.skeleton, {\n ...this.styles.root,\n width: this.props.skeletonwidth || this.styles.root.width,\n height: this.props.skeletonheight || this.styles.root.height\n });\n }\n\n renderWidget(props: WmButtonProps) {\n return (\n <Animatedview entryanimation={props.animation} style={this.styles.root}>\n <Tappable target={this}>\n <View style={[this.styles.content, {flexDirection: props.iconposition === 'top' ? 'column': 'row'}]}>\n {props.iconposition === 'top' && this.prepareIcon(props)}\n {props.iconposition === 'left' && this.prepareIcon(props)}\n <Text style={this.styles.text}>{props.caption}</Text>\n {props.iconposition === 'right' && this.prepareIcon(props)}\n {props.badgevalue && this.prepareBadge(props)}\n </View>\n </Tappable>\n </Animatedview>\n );\n }\n}\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AACzC,SAASC,aAAa,EAAEC,kBAAkB,QAAQ,+CAA+C;AACjG,SAASC,QAAQ,QAAQ,mDAAmD;AAC5E,SAASC,KAAK,QAAQ,oBAAoB;AAE1C,OAAOC,aAAa,MAAM,gBAAgB;AAC1C,SAASC,aAAa,QAAwB,iBAAiB;AAC/D,OAAOC,MAAM,MAAM,gEAAgE;AACnF,SAASC,YAAY,QAAQ,mEAAmE;AAChG,SAASC,cAAc,QAAQ,gCAAgC;AAE/D,OAAO,MAAMC,aAAa,SAASR,kBAAkB,CAAgB;AAIrE,eAAe,MAAMS,QAAQ,SAASV,aAAa,CAA+C;EAEhGW,WAAW,CAACC,KAAoB,EAAE;IAChC,KAAK,CAACA,KAAK,EAAEP,aAAa,EAAE,IAAID,aAAa,EAAE,CAAC;EAClD;EAEQS,WAAW,CAACD,KAAU,EAAE;IAC9B,oBAAQ,oBAAC,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,CAACD,KAAK,CAAC,eACzD,oBAAC,IAAI;MAAC,KAAK,EAAE,IAAI,CAACE,MAAM,CAACsB;IAAK,GAAExB,KAAK,CAACyB,OAAO,CAAQ,EACpDzB,KAAK,CAACuB,YAAY,KAAK,OAAO,IAAI,IAAI,CAACtB,WAAW,CAACD,KAAK,CAAC,EACzDA,KAAK,CAACS,UAAU,IAAI,IAAI,CAACF,YAAY,CAACP,KAAK,CAAC,CACxC,CACE,CACE;EAEnB;AACF"}
1
+ {"version":3,"names":["React","Text","View","BaseComponent","BaseComponentState","Tappable","Badge","WmButtonProps","DEFAULT_CLASS","WmIcon","Animatedview","createSkeleton","WmButtonState","WmButton","constructor","props","prepareIcon","createElement","styles","icon","name","iconclass","iconsize","prepareBadge","style","badge","badgevalue","renderSkeleton","prop","theme","skeleton","root","width","skeletonwidth","height","skeletonheight","renderWidget","entryanimation","animation","_background","target","content","flexDirection","iconposition","text","caption"],"sources":["button.component.tsx"],"sourcesContent":["import React from 'react';\nimport { Text, View } from 'react-native';\nimport { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';\nimport { Tappable } from '@wavemaker/app-rn-runtime/core/tappable.component';\nimport { Badge } from 'react-native-paper';\n\nimport WmButtonProps from './button.props';\nimport { DEFAULT_CLASS, WmButtonStyles } from './button.styles';\nimport WmIcon from '@wavemaker/app-rn-runtime/components/basic/icon/icon.component';\nimport { Animatedview } from '@wavemaker/app-rn-runtime/components/basic/animatedview.component';\nimport { createSkeleton } from '../skeleton/skeleton.component';\n\nexport class WmButtonState extends BaseComponentState<WmButtonProps> {\n\n}\n\nexport default class WmButton extends BaseComponent<WmButtonProps, WmButtonState, WmButtonStyles> {\n\n constructor(props: WmButtonProps) {\n super(props, DEFAULT_CLASS, new WmButtonProps());\n }\n\n private prepareIcon(props: any) {\n return (<WmIcon\n styles={this.styles.icon} name={props.name + '_icon'} iconclass={props.iconclass} iconsize={props.iconsize}></WmIcon>);\n }\n\n private prepareBadge(props: any) {\n //@ts-ignore\n return (<Badge style={this.styles.badge}>{props.badgevalue}</Badge>);\n }\n\n public renderSkeleton(prop: WmButtonProps) {\n return createSkeleton(this.theme, this.styles.skeleton, {\n ...this.styles.root,\n width: this.props.skeletonwidth || this.styles.root.width,\n height: this.props.skeletonheight || this.styles.root.height\n });\n }\n\n renderWidget(props: WmButtonProps) {\n return (\n <Animatedview entryanimation={props.animation} style={this.styles.root}>\n {this._background}\n <Tappable target={this}>\n <View style={[this.styles.content, {flexDirection: props.iconposition === 'top' ? 'column': 'row'}]}>\n {props.iconposition === 'top' && this.prepareIcon(props)}\n {props.iconposition === 'left' && this.prepareIcon(props)}\n <Text style={this.styles.text}>{props.caption}</Text>\n {props.iconposition === 'right' && this.prepareIcon(props)}\n {props.badgevalue && this.prepareBadge(props)}\n </View>\n </Tappable>\n </Animatedview>\n );\n }\n}\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AACzC,SAASC,aAAa,EAAEC,kBAAkB,QAAQ,+CAA+C;AACjG,SAASC,QAAQ,QAAQ,mDAAmD;AAC5E,SAASC,KAAK,QAAQ,oBAAoB;AAE1C,OAAOC,aAAa,MAAM,gBAAgB;AAC1C,SAASC,aAAa,QAAwB,iBAAiB;AAC/D,OAAOC,MAAM,MAAM,gEAAgE;AACnF,SAASC,YAAY,QAAQ,mEAAmE;AAChG,SAASC,cAAc,QAAQ,gCAAgC;AAE/D,OAAO,MAAMC,aAAa,SAASR,kBAAkB,CAAgB;AAIrE,eAAe,MAAMS,QAAQ,SAASV,aAAa,CAA+C;EAEhGW,WAAWA,CAACC,KAAoB,EAAE;IAChC,KAAK,CAACA,KAAK,EAAEP,aAAa,EAAE,IAAID,aAAa,CAAC,CAAC,CAAC;EAClD;EAEQS,WAAWA,CAACD,KAAU,EAAE;IAC9B,oBAAQf,KAAA,CAAAiB,aAAA,CAACR,MAAM;MACbS,MAAM,EAAE,IAAI,CAACA,MAAM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C3B,WAAW,CAACD,KAAK,CAAC,EACvDA,KAAK,CAAC4B,YAAY,KAAK,MAAM,IAAI,IAAI,CAAC3B,WAAW,CAACD,KAAK,CAAC,eACzDf,KAAA,CAAAiB,aAAA,CAAChB,IAAI;MAACuB,KAAK,EAAE,IAAI,CAACN,MAAM,CAAC0B;IAAK,GAAE7B,KAAK,CAAC8B,OAAc,CAAC,EACpD9B,KAAK,CAAC4B,YAAY,KAAK,OAAO,IAAI,IAAI,CAAC3B,WAAW,CAACD,KAAK,CAAC,EACzDA,KAAK,CAACW,UAAU,IAAI,IAAI,CAACH,YAAY,CAACR,KAAK,CACxC,CACE,CACE,CAAC;EAEnB;AACF"}
@@ -1 +1 @@
1
- {"version":3,"names":["BaseProps","WmButtonProps"],"sources":["button.props.ts"],"sourcesContent":["import { BaseProps } from '@wavemaker/app-rn-runtime/core/base.component';\n\nexport default class WmButtonProps extends BaseProps {\n animation?: string = null as any;\n caption?: string = null as any;\n badgevalue?: string = null as any;\n iconclass?: string = null as any;\n iconposition? = 'left';\n onTap?: Function = null as any;\n iconsize?:number = 0;\n skeletonheight?: string = null as any;\n skeletonwidth?: string = null as any;\n}\n"],"mappings":";;;AAAA,SAASA,SAAS,QAAQ,+CAA+C;AAEzE,eAAe,MAAMC,aAAa,SAASD,SAAS,CAAC;EAAA;IAAA;IAAA,mCAC5B,IAAI;IAAA,iCACN,IAAI;IAAA,oCACD,IAAI;IAAA,mCACL,IAAI;IAAA,sCACT,MAAM;IAAA,+BACH,IAAI;IAAA,kCACJ,CAAC;IAAA,wCACM,IAAI;IAAA,uCACL,IAAI;EAAA;AACjC"}
1
+ {"version":3,"names":["BaseProps","WmButtonProps","constructor","arguments","_defineProperty"],"sources":["button.props.ts"],"sourcesContent":["import { BaseProps } from '@wavemaker/app-rn-runtime/core/base.component';\n\nexport default class WmButtonProps extends BaseProps {\n animation?: string = null as any;\n caption?: string = null as any;\n badgevalue?: string = null as any;\n iconclass?: string = null as any;\n iconposition? = 'left';\n onTap?: Function = null as any;\n iconsize?:number = 0;\n skeletonheight?: string = null as any;\n skeletonwidth?: string = null as any;\n}\n"],"mappings":";;;AAAA,SAASA,SAAS,QAAQ,+CAA+C;AAEzE,eAAe,MAAMC,aAAa,SAASD,SAAS,CAAC;EAAAE,YAAA;IAAA,SAAAC,SAAA;IAAAC,eAAA,oBAC5B,IAAI;IAAAA,eAAA,kBACN,IAAI;IAAAA,eAAA,qBACD,IAAI;IAAAA,eAAA,oBACL,IAAI;IAAAA,eAAA,uBACT,MAAM;IAAAA,eAAA,gBACH,IAAI;IAAAA,eAAA,mBACJ,CAAC;IAAAA,eAAA,yBACM,IAAI;IAAAA,eAAA,wBACL,IAAI;EAAA;AACjC"}
@@ -1 +1 @@
1
- {"version":3,"names":["BASE_THEME","defineStyles","DEFAULT_CLASS","registerStyle","themeVariables","addStyle","defaultStyles","root","padding","borderRadius","alignSelf","content","flexDirection","alignItems","justifyContent","text","fontSize","fontWeight","textAlign","textTransform","marginHorizontal","badge","backgroundColor","buttonBadgeBackgroundColor","color","buttonBadgeTextColor","position","top","marginLeft","borderWidth","borderStyle","icon","paddingRight","buttonTextPadding","skeleton","width","height","opacity","getButtonStyles","bgColor","borderColor","linkBtnStyle","buttonLinkColor","buttonLinkTextColor","paddingVertical","textDecorationColor","textDecorationLine","textDecorationStyle","buttonDefaultColor","buttonDefaultTextColor","buttonBorderColor","buttonInfoColor","buttonInfoTextColor","buttonPrimaryColor","buttonPrimaryTextColor","buttonSecondaryColor","buttonSecondaryTextColor","buttonDangerColor","buttonDangerTextColor","buttonSuccessColor","buttonSuccessTextColor","buttonWarningColor","buttonWarningTextColor","buttonDarkColor","buttonDarkTextColor","buttonLightColor","buttonLightTextColor","getStyle","bottom","right","marginRight"],"sources":["button.styles.ts"],"sourcesContent":["import BASE_THEME, { AllStyle } from '@wavemaker/app-rn-runtime/styles/theme';\nimport { BaseStyles, defineStyles } from '@wavemaker/app-rn-runtime/core/base.component';\nimport { WmIconStyles } from '../icon/icon.styles';\nimport { WmSkeletonStyles } from '../skeleton/skeleton.styles';\n\nexport type WmButtonStyles = BaseStyles & {\n content: AllStyle,\n badge: AllStyle,\n icon: WmIconStyles,\n skeleton: WmSkeletonStyles\n};\n\nexport const DEFAULT_CLASS = 'app-button';\nBASE_THEME.registerStyle((themeVariables, addStyle) => {\n const defaultStyles: WmButtonStyles = defineStyles<WmButtonStyles>({\n root: {\n padding: 12,\n borderRadius: 6,\n alignSelf: 'flex-start'\n },\n content: {\n flexDirection: 'row',\n alignItems: 'center',\n justifyContent: 'center'\n },\n text: {\n fontSize: 16,\n fontWeight: '500',\n textAlign: 'center',\n textTransform: 'capitalize',\n marginHorizontal: 4\n },\n badge: {\n backgroundColor: themeVariables.buttonBadgeBackgroundColor,\n color: themeVariables.buttonBadgeTextColor,\n alignSelf: 'flex-start',\n position: 'relative',\n top: -16,\n marginLeft: -16,\n borderWidth: 1,\n borderStyle: 'solid'\n },\n icon: {\n root : {\n alignSelf: 'auto'\n },\n text: {\n paddingRight: themeVariables.buttonTextPadding,\n fontSize: 16\n }\n } as WmIconStyles,\n skeleton: {\n root: {\n width: 96,\n height: 48,\n borderRadius: 4\n }\n } as WmSkeletonStyles\n });\n\n addStyle(DEFAULT_CLASS, '', defaultStyles);\n addStyle(DEFAULT_CLASS + '-disabled', '', {\n root : {\n opacity: 0.5\n }\n });\n\n const getButtonStyles = (bgColor: string, color: string, borderColor = bgColor) => {\n return {\n root: {\n borderWidth: 1,\n borderColor: borderColor,\n borderStyle: 'solid',\n backgroundColor: bgColor\n },\n text: {\n color: color\n },\n badge: {\n backgroundColor: color,\n color: bgColor,\n borderColor: bgColor\n },\n icon: {\n text: {\n color: color\n }\n }\n } as WmButtonStyles;\n }\n\n const linkBtnStyle = getButtonStyles(themeVariables.buttonLinkColor, themeVariables.buttonLinkTextColor);\n linkBtnStyle.root.paddingVertical = 4;\n linkBtnStyle.text.textDecorationColor = themeVariables.buttonLinkTextColor;\n linkBtnStyle.text.textDecorationLine = 'underline';\n linkBtnStyle.text.textDecorationStyle = 'solid';\n\n addStyle('btn-default', '', getButtonStyles(themeVariables.buttonDefaultColor, themeVariables.buttonDefaultTextColor, themeVariables.buttonBorderColor));\n addStyle('btn-info', '', getButtonStyles(themeVariables.buttonInfoColor, themeVariables.buttonInfoTextColor));\n addStyle('btn-primary', '', getButtonStyles(themeVariables.buttonPrimaryColor, themeVariables.buttonPrimaryTextColor));\n addStyle('btn-secondary', '', getButtonStyles(themeVariables.buttonSecondaryColor, themeVariables.buttonSecondaryTextColor, themeVariables.buttonSecondaryTextColor));\n addStyle('btn-danger', '', getButtonStyles(themeVariables.buttonDangerColor, themeVariables.buttonDangerTextColor));\n addStyle('btn-success', '', getButtonStyles(themeVariables.buttonSuccessColor, themeVariables.buttonSuccessTextColor));\n addStyle('btn-warning', '', getButtonStyles(themeVariables.buttonWarningColor, themeVariables.buttonWarningTextColor));\n addStyle('btn-link', '', linkBtnStyle);\n addStyle('btn-dark', '', getButtonStyles(themeVariables.buttonDarkColor, themeVariables.buttonDarkTextColor));\n addStyle('btn-light', '', getButtonStyles(themeVariables.buttonLightColor, themeVariables.buttonLightTextColor));\n addStyle('fab-btn', 'btn-primary', {\n root : {\n ...BASE_THEME.getStyle('elevate2').root,\n position: 'fixed' as any,\n bottom: 160,\n right: 48,\n width: 56,\n height: 56,\n borderRadius: 56,\n justifyContent: 'center',\n alignItems: 'center'\n },\n text: {\n marginLeft: 0,\n marginRight: 0\n },\n icon: {\n icon: {\n fontSize: 24\n }\n } as WmIconStyles\n } as WmButtonStyles);\n addStyle('mini-fab-btn', 'fab-btn', {\n root : {\n width: 40,\n height: 40\n }\n } as WmButtonStyles);\n});\n"],"mappings":"AAAA,OAAOA,UAAU,MAAoB,wCAAwC;AAC7E,SAAqBC,YAAY,QAAQ,+CAA+C;AAWxF,OAAO,MAAMC,aAAa,GAAG,YAAY;AACzCF,UAAU,CAACG,aAAa,CAAC,CAACC,cAAc,EAAEC,QAAQ,KAAK;EACrD,MAAMC,a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EACpBX,QAAQ,CAAC,cAAc,EAAE,SAAS,EAAE;IAClCE,IAAI,EAAG;MACL4B,KAAK,EAAE,EAAE;MACTC,MAAM,EAAE;IACV;EACF,CAAC,CAAmB;AACtB,CAAC,CAAC"}
1
+ {"version":3,"names":["BASE_THEME","defineStyles","DEFAULT_CLASS","registerStyle","themeVariables","addStyle","defaultStyles","root","padding","borderRadius","alignSelf","content","flexDirection","alignItems","justifyContent","text","fontSize","fontWeight","textAlign","textTransform","marginHorizontal","badge","backgroundColor","buttonBadgeBackgroundColor","color","buttonBadgeTextColor","position","top","marginLeft","borderWidth","borderStyle","icon","paddingRight","buttonTextPadding","skeleton","width","height","opacity","getButtonStyles","bgColor","borderColor","arguments","length","undefined","linkBtnStyle","buttonLinkColor","buttonLinkTextColor","paddingVertical","textDecorationColor","textDecorationLine","textDecorationStyle","buttonDefaultColor","buttonDefaultTextColor","buttonBorderColor","buttonInfoColor","buttonInfoTextColor","buttonPrimaryColor","buttonPrimaryTextColor","buttonSecondaryColor","buttonSecondaryTextColor","buttonDangerColor","buttonDangerTextColor","buttonSuccessColor","buttonSuccessTextColor","buttonWarningColor","buttonWarningTextColor","buttonDarkColor","buttonDarkTextColor","buttonLightColor","buttonLightTextColor","getStyle","bottom","right","marginRight"],"sources":["button.styles.ts"],"sourcesContent":["import BASE_THEME, { AllStyle } from '@wavemaker/app-rn-runtime/styles/theme';\nimport { BaseStyles, defineStyles } from '@wavemaker/app-rn-runtime/core/base.component';\nimport { WmIconStyles } from '../icon/icon.styles';\nimport { WmSkeletonStyles } from '../skeleton/skeleton.styles';\n\nexport type WmButtonStyles = BaseStyles & {\n content: AllStyle,\n badge: AllStyle,\n icon: WmIconStyles,\n skeleton: WmSkeletonStyles\n};\n\nexport const DEFAULT_CLASS = 'app-button';\nBASE_THEME.registerStyle((themeVariables, addStyle) => {\n const defaultStyles: WmButtonStyles = defineStyles<WmButtonStyles>({\n root: {\n padding: 12,\n borderRadius: 6,\n alignSelf: 'flex-start'\n },\n content: {\n flexDirection: 'row',\n alignItems: 'center',\n justifyContent: 'center'\n },\n text: {\n fontSize: 16,\n fontWeight: '500',\n textAlign: 'center',\n textTransform: 'capitalize',\n marginHorizontal: 4\n },\n badge: {\n backgroundColor: themeVariables.buttonBadgeBackgroundColor,\n color: themeVariables.buttonBadgeTextColor,\n alignSelf: 'flex-start',\n position: 'relative',\n top: -16,\n marginLeft: -16,\n borderWidth: 1,\n borderStyle: 'solid'\n },\n icon: {\n root : {\n alignSelf: 'auto'\n },\n text: {\n paddingRight: themeVariables.buttonTextPadding,\n fontSize: 16\n }\n } as WmIconStyles,\n skeleton: {\n root: {\n width: 96,\n height: 48,\n borderRadius: 4\n }\n } as WmSkeletonStyles\n });\n\n addStyle(DEFAULT_CLASS, '', defaultStyles);\n addStyle(DEFAULT_CLASS + '-disabled', '', {\n root : {\n opacity: 0.5\n }\n });\n\n const getButtonStyles = (bgColor: string, color: string, borderColor = bgColor) => {\n return {\n root: {\n borderWidth: 1,\n borderColor: borderColor,\n borderStyle: 'solid',\n backgroundColor: bgColor\n },\n text: {\n color: color\n },\n badge: {\n backgroundColor: color,\n color: bgColor,\n borderColor: bgColor\n },\n icon: {\n text: {\n color: color\n }\n }\n } as WmButtonStyles;\n }\n\n const linkBtnStyle = getButtonStyles(themeVariables.buttonLinkColor, themeVariables.buttonLinkTextColor);\n linkBtnStyle.root.paddingVertical = 4;\n linkBtnStyle.text.textDecorationColor = themeVariables.buttonLinkTextColor;\n linkBtnStyle.text.textDecorationLine = 'underline';\n linkBtnStyle.text.textDecorationStyle = 'solid';\n\n addStyle('btn-default', '', getButtonStyles(themeVariables.buttonDefaultColor, themeVariables.buttonDefaultTextColor, themeVariables.buttonBorderColor));\n addStyle('btn-info', '', getButtonStyles(themeVariables.buttonInfoColor, themeVariables.buttonInfoTextColor));\n addStyle('btn-primary', '', getButtonStyles(themeVariables.buttonPrimaryColor, themeVariables.buttonPrimaryTextColor));\n addStyle('btn-secondary', '', getButtonStyles(themeVariables.buttonSecondaryColor, themeVariables.buttonSecondaryTextColor, themeVariables.buttonSecondaryTextColor));\n addStyle('btn-danger', '', getButtonStyles(themeVariables.buttonDangerColor, themeVariables.buttonDangerTextColor));\n addStyle('btn-success', '', getButtonStyles(themeVariables.buttonSuccessColor, themeVariables.buttonSuccessTextColor));\n addStyle('btn-warning', '', getButtonStyles(themeVariables.buttonWarningColor, themeVariables.buttonWarningTextColor));\n addStyle('btn-link', '', linkBtnStyle);\n addStyle('btn-dark', '', getButtonStyles(themeVariables.buttonDarkColor, themeVariables.buttonDarkTextColor));\n addStyle('btn-light', '', getButtonStyles(themeVariables.buttonLightColor, themeVariables.buttonLightTextColor));\n addStyle('fab-btn', 'btn-primary', {\n root : {\n ...BASE_THEME.getStyle('elevate2').root,\n position: 'fixed' as any,\n bottom: 160,\n right: 48,\n width: 56,\n height: 56,\n borderRadius: 56,\n justifyContent: 'center',\n alignItems: 'center'\n },\n text: {\n marginLeft: 0,\n marginRight: 0\n },\n icon: {\n icon: {\n fontSize: 24\n }\n } as WmIconStyles\n } as WmButtonStyles);\n addStyle('mini-fab-btn', 'fab-btn', {\n root : {\n width: 40,\n height: 40\n }\n } as WmButtonStyles);\n});\n"],"mappings":"AAAA,OAAOA,UAAU,MAAoB,wCAAwC;AAC7E,SAAqBC,YAAY,QAAQ,+CAA+C;AAWxF,OAAO,MAAMC,aAAa,GAAG,YAAY;AACzCF,UAAU,CAACG,aAAa,CAAC,CAACC,cAAc,EAAEC,QAAQ,KAAK;EACrD,MAAMC,aAA6B,GAAGL,YAAY,CAAiB;IAC/DM,IAAI,EAAE;MACFC,OAAO,EAAE,EAAE;MACXC,YAAY,EAAE,CAAC;MACfC,SAAS,EAAE;IACf,CAAC;IACDC,OAAO,EAAE;MACPC,aAAa,EAAE,KAAK;MACpBC,UAAU,EAAE,QAAQ;MACpBC,cAAc,EAAE;IAClB,CAAC;IACDC,IAAI,EAAE;MACJC,QAAQ,EAAE,EAAE;MACZC,UAAU,EAAE,KAAK;M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ection: props.vertical ? 'column' : 'row'
23
23
  }]
24
- }, props.children);
24
+ }, this._background, props.children);
25
25
  }
26
26
  }
27
27
  //# sourceMappingURL=buttongroup.component.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["React","View","BaseComponent","BaseComponentState","WmButtongroupProps","DEFAULT_CLASS","createSkeleton","WmButtongroupState","WmButtongroup","constructor","props","renderSkeleton","theme","styles","skeleton","root","width","skeletonwidth","height","skeletonheight","renderWidget","flexDirection","vertical","children"],"sources":["buttongroup.component.tsx"],"sourcesContent":["import React from 'react';\nimport { View } from 'react-native';\nimport { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';\n\nimport WmButtongroupProps from './buttongroup.props';\nimport { DEFAULT_CLASS, WmButtongroupStyles } from './buttongroup.styles';\nimport WmSkeleton, { createSkeleton } from '../skeleton/skeleton.component';\n\nexport class WmButtongroupState extends BaseComponentState<WmButtongroupProps> {}\n\nexport default class WmButtongroup extends BaseComponent<WmButtongroupProps, WmButtongroupState, WmButtongroupStyles> {\n\n constructor(props: WmButtongroupProps) {\n super(props, DEFAULT_CLASS, new WmButtongroupProps());\n }\n\n public renderSkeleton(props: WmButtongroupProps){\n return createSkeleton(this.theme, this.styles.skeleton, {\n ...this.styles.root,\n width: this.props.skeletonwidth || this.styles.root.width,\n height: this.props.skeletonheight || this.styles.root.height\n });\n }\n\n renderWidget(props: WmButtongroupProps) {\n return (\n <View style={[this.styles.root, {flexDirection: props.vertical ? 'column': 'row'}]}>\n {props.children}\n </View>\n );\n }\n}\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,QAAQ,cAAc;AACnC,SAASC,aAAa,EAAEC,kBAAkB,QAAQ,+CAA+C;AAEjG,OAAOC,kBAAkB,MAAM,qBAAqB;AACpD,SAASC,aAAa,QAA6B,sBAAsB;AACzE,SAAqBC,cAAc,QAAQ,gCAAgC;AAE3E,OAAO,MAAMC,kBAAkB,SAASJ,kBAAkB,CAAqB;AAE/E,eAAe,MAAMK,aAAa,SAASN,aAAa,CAA8D;EAEpHO,WAAW,CAACC,KAAyB,EAAE;IACrC,KAAK,CAACA,KAAK,EAAEL,aAAa,EAAE,IAAID,kBAAkB,EAAE,CAAC;EACvD;EAEOO,cAAc,CAACD,KAAyB,EAAC;IAC9C,OAAOJ,cAAc,CAAC,IAAI,CAACM,KAAK,EAAE,IAAI,CAACC,MAAM,CAACC,QAAQ,EAAE;MACtD,GAAG,IAAI,CAACD,MAAM,CAACE,IAAI;MACnBC,KAAK,EAAE,IAAI,CAACN,KAAK,CAACO,aAAa,IAAI,IAAI,CAACJ,MAAM,CAACE,IAAI,CAACC,KAAK;MACzDE,MAAM,EAAE,IAAI,CAACR,KAAK,CAACS,cAAc,IAAI,IAAI,CAACN,MAAM,CAACE,IAAI,CAACG;IACxD,CAAC,CAAC;EACJ;EAEAE,YAAY,CAACV,KAAyB,EAAE;IACtC,oBACE,oBAAC,IAAI;MAAC,KAAK,EAAE,CAAC,IAAI,CAACG,MAAM,CAACE,IAAI,EAAE;QAACM,aAAa,EAAEX,KAAK,CAACY,QAAQ,GAAG,QAAQ,GAAE;MAAK,CAAC;IAAE,GAChFZ,KAAK,CAACa,QAAQ,CACV;EAEX;AACF"}
1
+ {"version":3,"names":["React","View","BaseComponent","BaseComponentState","WmButtongroupProps","DEFAULT_CLASS","createSkeleton","WmButtongroupState","WmButtongroup","constructor","props","renderSkeleton","theme","styles","skeleton","root","width","skeletonwidth","height","skeletonheight","renderWidget","createElement","style","flexDirection","vertical","_background","children"],"sources":["buttongroup.component.tsx"],"sourcesContent":["import React from 'react';\nimport { View } from 'react-native';\nimport { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';\n\nimport WmButtongroupProps from './buttongroup.props';\nimport { DEFAULT_CLASS, WmButtongroupStyles } from './buttongroup.styles';\nimport WmSkeleton, { createSkeleton } from '../skeleton/skeleton.component';\n\nexport class WmButtongroupState extends BaseComponentState<WmButtongroupProps> {}\n\nexport default class WmButtongroup extends BaseComponent<WmButtongroupProps, WmButtongroupState, WmButtongroupStyles> {\n\n constructor(props: WmButtongroupProps) {\n super(props, DEFAULT_CLASS, new WmButtongroupProps());\n }\n\n public renderSkeleton(props: WmButtongroupProps){\n return createSkeleton(this.theme, this.styles.skeleton, {\n ...this.styles.root,\n width: this.props.skeletonwidth || this.styles.root.width,\n height: this.props.skeletonheight || this.styles.root.height\n });\n }\n\n renderWidget(props: WmButtongroupProps) {\n return (\n <View style={[this.styles.root, {flexDirection: props.vertical ? 'column': 'row'}]}>\n {this._background}\n {props.children}\n </View>\n );\n }\n}\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,QAAQ,cAAc;AACnC,SAASC,aAAa,EAAEC,kBAAkB,QAAQ,+CAA+C;AAEjG,OAAOC,kBAAkB,MAAM,qBAAqB;AACpD,SAASC,aAAa,QAA6B,sBAAsB;AACzE,SAAqBC,cAAc,QAAQ,gCAAgC;AAE3E,OAAO,MAAMC,kBAAkB,SAASJ,kBAAkB,CAAqB;AAE/E,eAAe,MAAMK,aAAa,SAASN,aAAa,CAA8D;EAEpHO,WAAWA,CAACC,KAAyB,EAAE;IACrC,KAAK,CAACA,KAAK,EAAEL,aAAa,EAAE,IAAID,kBAAkB,CAAC,CAAC,CAAC;EACvD;EAEOO,cAAcA,CAACD,KAAyB,EAAC;IAC9C,OAAOJ,cAAc,CAAC,IAAI,CAACM,KAAK,EAAE,IAAI,CAACC,MAAM,CAACC,QAAQ,EAAE;MACtD,GAAG,IAAI,CAACD,MAAM,CAACE,IAAI;MACnBC,KAAK,EAAE,IAAI,CAACN,KAAK,CAACO,aAAa,IAAI,IAAI,CAACJ,MAAM,CAACE,IAAI,CAACC,KAAK;MACzDE,MAAM,EAAE,IAAI,CAACR,KAAK,CAACS,cAAc,IAAI,IAAI,CAACN,MAAM,CAACE,IAAI,CAACG;IACxD,CAAC,CAAC;EACJ;EAEAE,YAAYA,CAACV,KAAyB,EAAE;IACtC,oBACEV,KAAA,CAAAqB,aAAA,CAACpB,IAAI;MAACqB,KAAK,EAAE,CAAC,IAAI,CAACT,MAAM,CAACE,IAAI,EAAE;QAACQ,aAAa,EAAEb,KAAK,CAACc,QAAQ,GAAG,QAAQ,GAAE;MAAK,CAAC;IAAE,GAChF,IAAI,CAACC,WAAW,EAChBf,KAAK,CAACgB,QACH,CAAC;EAEX;AACF"}
@@ -1 +1 @@
1
- {"version":3,"names":["BaseProps","WmButtongroupProps"],"sources":["buttongroup.props.ts"],"sourcesContent":["import { BaseProps } from '@wavemaker/app-rn-runtime/core/base.component';\n\nexport default class WmButtongroupProps extends BaseProps {\n children?: any;\n vertical: boolean = null as any;\n skeletonheight?: string = null as any;\n skeletonwidth?: string = null as any;\n}\n"],"mappings":";;;AAAA,SAASA,SAAS,QAAQ,+CAA+C;AAEzE,eAAe,MAAMC,kBAAkB,SAASD,SAAS,CAAC;EAAA;IAAA;IAAA;IAAA,kCAEpC,IAAI;IAAA,wCACE,IAAI;IAAA,uCACL,IAAI;EAAA;AAC/B"}
1
+ {"version":3,"names":["BaseProps","WmButtongroupProps","constructor","arguments","_defineProperty"],"sources":["buttongroup.props.ts"],"sourcesContent":["import { BaseProps } from '@wavemaker/app-rn-runtime/core/base.component';\n\nexport default class WmButtongroupProps extends BaseProps {\n children?: any;\n vertical: boolean = null as any;\n skeletonheight?: string = null as any;\n skeletonwidth?: string = null as any;\n}\n"],"mappings":";;;AAAA,SAASA,SAAS,QAAQ,+CAA+C;AAEzE,eAAe,MAAMC,kBAAkB,SAASD,SAAS,CAAC;EAAAE,YAAA;IAAA,SAAAC,SAAA;IAAAC,eAAA;IAAAA,eAAA,mBAEpC,IAAI;IAAAA,eAAA,yBACE,IAAI;IAAAA,eAAA,wBACL,IAAI;EAAA;AAC/B"}
@@ -1 +1 @@
1
- {"version":3,"names":["BASE_THEME","defineStyles","DEFAULT_CLASS","registerStyle","themeVariables","addStyle","defaultStyles","root","flexDirection","alignSelf","alignItems","borderRadius","borderWidth","borderStyle","borderColor","buttonGrpBorderColor","backgroundColor","buttonGrpBgColor","text","skeleton","width","height","borderTopWidth","borderBottomWidth","borderLeftWidth","borderRightWidth","flex","color","defaultColor9"],"sources":["buttongroup.styles.ts"],"sourcesContent":["import BASE_THEME from '@wavemaker/app-rn-runtime/styles/theme';\nimport { BaseStyles, defineStyles } from '@wavemaker/app-rn-runtime/core/base.component';\nimport { WmButtonStyles } from '../button/button.styles';\nimport { WmSkeletonStyles } from '../skeleton/skeleton.styles';\n\nexport type WmButtongroupStyles = BaseStyles & {\n skeleton: WmSkeletonStyles\n};\n\nexport const DEFAULT_CLASS = 'app-buttongroup';\nBASE_THEME.registerStyle((themeVariables, addStyle) => {\n const defaultStyles: WmButtongroupStyles = defineStyles({\n root: {\n flexDirection: 'row',\n alignSelf: 'flex-start',\n alignItems: 'center',\n borderRadius: 100,\n borderWidth: 1,\n borderStyle: 'solid',\n borderColor: themeVariables.buttonGrpBorderColor,\n backgroundColor: themeVariables.buttonGrpBgColor\n }, \n text: {},\n skeleton: {\n root : {\n width: '100%',\n height: 48,\n borderRadius: 4\n }\n } as WmSkeletonStyles\n });\n\n\n addStyle('btn-group-child', '', {\n root: {\n borderTopWidth: 0,\n borderBottomWidth: 0,\n borderLeftWidth: 1,\n borderRightWidth: 0,\n borderRadius: 0,\n backgroundColor: 'transparent',\n flex: 1,\n borderColor: themeVariables.buttonGrpBorderColor,\n },\n text: {\n color: themeVariables.defaultColor9,\n }\n } as WmButtonStyles);\n addStyle('btn-group-first-child', '', {\n root: {\n borderLeftWidth: 0,\n borderRadius: 0,\n backgroundColor: 'transparent',\n borderColor: themeVariables.buttonGrpBorderColor\n }\n } as WmButtonStyles);\n addStyle(DEFAULT_CLASS, '', defaultStyles);\n});\n"],"mappings":"AAAA,OAAOA,UAAU,MAAM,wCAAwC;AAC/D,SAAqBC,YAAY,QAAQ,+CAA+C;AAQxF,OAAO,MAAMC,aAAa,GAAG,iBAAiB;AAC9CF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yle","defaultStyles","root","flexDirection","alignSelf","alignItems","borderRadius","borderWidth","borderStyle","borderColor","buttonGrpBorderColor","backgroundColor","buttonGrpBgColor","text","skeleton","width","height","borderTopWidth","borderBottomWidth","borderLeftWidth","borderRightWidth","flex","color","defaultColor9"],"sources":["buttongroup.styles.ts"],"sourcesContent":["import BASE_THEME from '@wavemaker/app-rn-runtime/styles/theme';\nimport { BaseStyles, defineStyles } from '@wavemaker/app-rn-runtime/core/base.component';\nimport { WmButtonStyles } from '../button/button.styles';\nimport { WmSkeletonStyles } from '../skeleton/skeleton.styles';\n\nexport type WmButtongroupStyles = BaseStyles & {\n skeleton: WmSkeletonStyles\n};\n\nexport const DEFAULT_CLASS = 'app-buttongroup';\nBASE_THEME.registerStyle((themeVariables, addStyle) => {\n const defaultStyles: WmButtongroupStyles = defineStyles({\n root: {\n flexDirection: 'row',\n alignSelf: 'flex-start',\n alignItems: 'center',\n borderRadius: 100,\n borderWidth: 1,\n borderStyle: 'solid',\n borderColor: themeVariables.buttonGrpBorderColor,\n backgroundColor: themeVariables.buttonGrpBgColor\n }, \n text: {},\n skeleton: {\n root : {\n width: '100%',\n height: 48,\n borderRadius: 4\n }\n } as WmSkeletonStyles\n });\n\n\n addStyle('btn-group-child', '', {\n root: {\n borderTopWidth: 0,\n borderBottomWidth: 0,\n borderLeftWidth: 1,\n borderRightWidth: 0,\n borderRadius: 0,\n backgroundColor: 'transparent',\n flex: 1,\n borderColor: themeVariables.buttonGrpBorderColor,\n },\n text: {\n color: themeVariables.defaultColor9,\n }\n } as WmButtonStyles);\n addStyle('btn-group-first-child', '', {\n root: {\n borderLeftWidth: 0,\n borderRadius: 0,\n backgroundColor: 'transparent',\n borderColor: themeVariables.buttonGrpBorderColor\n }\n } as WmButtonStyles);\n addStyle(DEFAULT_CLASS, '', defaultStyles);\n});\n"],"mappings":"AAAA,OAAOA,UAAU,MAAM,wCAAwC;AAC/D,SAAqBC,YAAY,QAAQ,+CAA+C;AAQxF,OAAO,MAAMC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+ import { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';
3
+ import WmCustomProps from './custom.props';
4
+ import { DEFAULT_CLASS } from './custom.styles';
5
+ import { View } from 'react-native';
6
+ import { createSkeleton } from '../skeleton/skeleton.component';
7
+ export class WmCustomState extends BaseComponentState {}
8
+ export default class WmCustom extends BaseComponent {
9
+ constructor(props) {
10
+ super(props, DEFAULT_CLASS, new WmCustomProps(), new WmCustomState());
11
+ }
12
+ renderSkeleton(prop) {
13
+ return createSkeleton(this.theme, this.styles.skeleton, {
14
+ ...this.styles.root,
15
+ width: this.props.skeletonwidth || this.styles.root.width,
16
+ height: this.props.skeletonheight || this.styles.root.height
17
+ });
18
+ }
19
+ renderWidget(props) {
20
+ return /*#__PURE__*/React.createElement(View, {
21
+ style: this.styles.root
22
+ }, props.renderview(props));
23
+ }
24
+ }
25
+ //# sourceMappingURL=custom.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","BaseComponent","BaseComponentState","WmCustomProps","DEFAULT_CLASS","View","createSkeleton","WmCustomState","WmCustom","constructor","props","renderSkeleton","prop","theme","styles","skeleton","root","width","skeletonwidth","height","skeletonheight","renderWidget","createElement","style","renderview"],"sources":["custom.component.tsx"],"sourcesContent":["import React from 'react';\nimport { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';\n\nimport WmCustomProps from './custom.props';\nimport { DEFAULT_CLASS, WmCustomStyles } from './custom.styles';\nimport { Text, View } from 'react-native';\nimport { createSkeleton } from '../skeleton/skeleton.component';\n\n\nexport class WmCustomState extends BaseComponentState<WmCustomProps> { }\n\nexport default class WmCustom extends BaseComponent<WmCustomProps, WmCustomState, WmCustomStyles> {\n\n constructor(props: WmCustomProps) {\n super(props, DEFAULT_CLASS, new WmCustomProps(), new WmCustomState());\n }\n\n public renderSkeleton(prop: WmCustomProps) {\n return createSkeleton(this.theme, this.styles.skeleton, {\n ...this.styles.root,\n width: this.props.skeletonwidth || this.styles.root.width,\n height: this.props.skeletonheight || this.styles.root.height\n });\n }\n\n renderWidget(props: WmCustomProps) {\n return (\n <View style={this.styles.root}>\n {props.renderview(props)}\n </View>\n );\n }\n}\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,aAAa,EAAEC,kBAAkB,QAAQ,+CAA+C;AAEjG,OAAOC,aAAa,MAAM,gBAAgB;AAC1C,SAASC,aAAa,QAAwB,iBAAiB;AAC/D,SAAeC,IAAI,QAAQ,cAAc;AACzC,SAASC,cAAc,QAAQ,gCAAgC;AAG/D,OAAO,MAAMC,aAAa,SAASL,kBAAkB,CAAgB;AAErE,eAAe,MAAMM,QAAQ,SAASP,aAAa,CAA+C;EAEhGQ,WAAWA,CAACC,KAAoB,EAAE;IAChC,KAAK,CAACA,KAAK,EAAEN,aAAa,EAAE,IAAID,aAAa,CAAC,CAAC,EAAE,IAAII,aAAa,CAAC,CAAC,CAAC;EACvE;EAEOI,cAAcA,CAACC,IAAmB,EAAE;IACzC,OAAON,cAAc,CAAC,IAAI,CAACO,KAAK,EAAE,IAAI,CAACC,MAAM,CAACC,QAAQ,EAAE;MACtD,GAAG,IAAI,CAACD,MAAM,CAACE,IAAI;MACnBC,KAAK,EAAE,IAAI,CAACP,KAAK,CAACQ,aAAa,IAAI,IAAI,CAACJ,MAAM,CAACE,IAAI,CAACC,KAAK;MACzDE,MAAM,EAAE,IAAI,CAACT,KAAK,CAACU,cAAc,IAAI,IAAI,CAACN,MAAM,CAACE,IAAI,CAACG;IACxD,CAAC,CAAC;EACJ;EAEAE,YAAYA,CAACX,KAAoB,EAAE;IACjC,oBACEV,KAAA,CAAAsB,aAAA,CAACjB,IAAI;MAACkB,KAAK,EAAE,IAAI,CAACT,MAAM,CAACE;IAAK,GAC3BN,KAAK,CAACc,UAAU,CAACd,KAAK,CACnB,CAAC;EAEX;AACF"}
@@ -0,0 +1,16 @@
1
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
2
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
3
+ function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
4
+ import { BaseProps } from '@wavemaker/app-rn-runtime/core/base.component';
5
+ export default class WmCustomProps extends BaseProps {
6
+ constructor() {
7
+ super(...arguments);
8
+ _defineProperty(this, "renderview", () => {
9
+ return null;
10
+ });
11
+ _defineProperty(this, "children", null);
12
+ _defineProperty(this, "skeletonheight", null);
13
+ _defineProperty(this, "skeletonwidth", null);
14
+ }
15
+ }
16
+ //# sourceMappingURL=custom.props.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["BaseProps","WmCustomProps","constructor","arguments","_defineProperty"],"sources":["custom.props.ts"],"sourcesContent":["import { BaseProps } from '@wavemaker/app-rn-runtime/core/base.component';\n\nexport default class WmCustomProps extends BaseProps {\n renderview:Function = () => {return null};\n children? = null as any;\n skeletonheight?: string = null as any;\n skeletonwidth?: string = null as any;\n}"],"mappings":";;;AAAA,SAASA,SAAS,QAAQ,+CAA+C;AAEzE,eAAe,MAAMC,aAAa,SAASD,SAAS,CAAC;EAAAE,YAAA;IAAA,SAAAC,SAAA;IAAAC,eAAA,qBAC3B,MAAM;MAAC,OAAO,IAAI;IAAA,CAAC;IAAAA,eAAA,mBAC7B,IAAI;IAAAA,eAAA,yBACU,IAAI;IAAAA,eAAA,wBACL,IAAI;EAAA;AACjC"}
@@ -0,0 +1,18 @@
1
+ import BASE_THEME from '@wavemaker/app-rn-runtime/styles/theme';
2
+ import { defineStyles } from '@wavemaker/app-rn-runtime/core/base.component';
3
+ export const DEFAULT_CLASS = 'app-custom';
4
+ BASE_THEME.registerStyle((themeVariables, addStyle) => {
5
+ const defaultStyles = defineStyles({
6
+ root: {},
7
+ text: {},
8
+ skeleton: {
9
+ root: {
10
+ width: 96,
11
+ height: 48,
12
+ borderRadius: 4
13
+ }
14
+ }
15
+ });
16
+ addStyle(DEFAULT_CLASS, '', defaultStyles);
17
+ });
18
+ //# sourceMappingURL=custom.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["BASE_THEME","defineStyles","DEFAULT_CLASS","registerStyle","themeVariables","addStyle","defaultStyles","root","text","skeleton","width","height","borderRadius"],"sources":["custom.styles.ts"],"sourcesContent":["import BASE_THEME from '@wavemaker/app-rn-runtime/styles/theme';\nimport { BaseStyles, defineStyles } from '@wavemaker/app-rn-runtime/core/base.component';\nimport { WmSkeletonStyles } from '../skeleton/skeleton.styles';\n\n\nexport type WmCustomStyles = BaseStyles & {\n skeleton: WmSkeletonStyles;\n}\n\nexport const DEFAULT_CLASS = 'app-custom';\nBASE_THEME.registerStyle((themeVariables, addStyle) => {\n const defaultStyles = defineStyles<WmCustomStyles>({\n root: {},\n text: {},\n skeleton: {\n root: {\n width: 96,\n height: 48,\n borderRadius: 4\n }\n } as WmSkeletonStyles\n });\n addStyle(DEFAULT_CLASS, '', defaultStyles);\n});"],"mappings":"AAAA,OAAOA,UAAU,MAAM,wCAAwC;AAC/D,SAAqBC,YAAY,QAAQ,+CAA+C;AAQxF,OAAO,MAAMC,aAAa,GAAG,YAAY;AACzCF,UAAU,CAACG,aAAa,CAAC,CAACC,cAAc,EAAEC,QAAQ,KAAK;EACnD,MAAMC,aAAa,GAAGL,YAAY,CAAiB;IAC/CM,IAAI,EAAE,CAAC,CAAC;IACRC,IAAI,EAAE,CAAC,CAAC;IACRC,QAAQ,EAAE;MACNF,IAAI,EAAE;QACJG,KAAK,EAAE,EAAE;QACTC,MAAM,EAAE,EAAE;QACVC,YAAY,EAAE;MAChB;IACF;EACN,CAAC,CAAC;EACFP,QAAQ,CAACH,aAAa,EAAE,EAAE,EAAEI,aAAa,CAAC;AAC9C,CAAC,CAAC"}
@@ -184,7 +184,7 @@ export default class WmIcon extends BaseComponent {
184
184
  }, /*#__PURE__*/React.createElement(Animatedview, {
185
185
  entryanimation: props.animation,
186
186
  style: this.styles.root
187
- }, props.iconposition === 'left' && icon || null, props.caption && /*#__PURE__*/React.createElement(Text, {
187
+ }, this._background, props.iconposition === 'left' && icon || null, props.caption && /*#__PURE__*/React.createElement(Text, {
188
188
  style: this.styles.text
189
189
  }, props.caption) || null, props.iconposition === 'right' && icon || null));
190
190
  }
@@ -1 +1 @@
1
- {"version":3,"names":["React","Animated","Easing","Text","FontAwesome","BaseComponent","BaseComponentState","WmIconProps","DEFAULT_CLASS","WavIcon","StreamlineLightIcon","StreamlineRegularIcon","Tappable","Animatedview","createSkeleton","ICON_SIZES","Map","ICON_ROTATTION","WmIconState","WmIcon","constructor","props","Value","getIconDef","iconClass","iconDef","rotate","splits","split","isFontAwesome","find","v","isStreamlineLightIcon","isStreamlineRegularIcon","type","startsWith","substring","isWavIcon","indexOf","animation","size","map","get","spin","stopAnimation","spinValue","setValue","timing","toValue","duration","easing","linear","useNativeDriver","start","componentDidMount","componentWillUnmount","onPropertyChange","name","$new","$old","updateState","getCustomIcon","style","customIcon","theme","mergeStyle","getStyle","iconclass","icon","styles","customIconContent","content","fontFamily","decodeURIComponent","renderSkeleton","skeleton","root","width","skeletonwidth","iconsize","height","skeletonheight","renderIcon","state","color","text","transform","iconSize","fontSize","show","WMCustomIcon","interpolate","inputRange","outputRange","opacity","renderWidget","iconposition","caption"],"sources":["icon.component.tsx"],"sourcesContent":["import React from 'react';\nimport { Animated, Easing, Text } from 'react-native';\nimport { FontAwesome } from '@expo/vector-icons';\nimport { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';\n\nimport WmIconProps from './icon.props';\nimport { DEFAULT_CLASS, WmIconStyles } from './icon.styles';\nimport WavIcon from './wavicon/wavicon.component';\nimport StreamlineLightIcon from './streamline-light-icon/streamline-light-icon.component';\nimport StreamlineRegularIcon from './streamline-regular-icon/streamline-regular-icon.component';\nimport { Tappable } from '@wavemaker/app-rn-runtime/core/tappable.component';\nimport { Animatedview } from '@wavemaker/app-rn-runtime/components/basic/animatedview.component';\nimport WmSkeleton, { createSkeleton } from '../skeleton/skeleton.component';\n\ninterface IconDef {\n isFontAwesome: boolean;\n isWavIcon: boolean;\n isStreamlineLightIcon: boolean;\n isStreamlineRegularIcon: boolean;\n type: string;\n rotate: string;\n size: number;\n animation: string;\n}\n\nconst ICON_SIZES = new Map([\n ['fa-lg', 24],\n ['fa-2x', 36],\n ['fa-3x', 48],\n ['fa-4x', 60],\n ['fa-5x', 72]\n]);\n\nconst ICON_ROTATTION = new Map([\n ['fa-rotate-90', '90deg'],\n ['fa-rotate-180', '180deg'],\n ['fa-rotate-270', '270deg']\n]);\n\nexport class WmIconState extends BaseComponentState<WmIconProps> {\n public iconDef = {} as IconDef;\n}\n\nexport default class WmIcon extends BaseComponent<WmIconProps, WmIconState, WmIconStyles> {\n spinValue = new Animated.Value(0);\n pulseValue = new Animated.Value(0);\n public stopAnimation = true; \n\n constructor(props: WmIconProps) {\n super(props, DEFAULT_CLASS, new WmIconProps());\n }\n\n getIconDef(iconClass: string): IconDef {\n const iconDef = {\n rotate: '0'\n } as IconDef;\n const splits = iconClass.split(' ');\n iconDef.isFontAwesome = !!splits.find(v => v === 'fa');\n iconDef.isStreamlineLightIcon = !!splits.find(v => v === 'wm-sl-l');\n iconDef.isStreamlineRegularIcon = !!splits.find(v => v === 'wm-sl-r');\n if (iconDef.isFontAwesome) {\n iconDef.type = splits.find(v => v.startsWith('fa-'))?.substring(3) || '';\n } else if (iconDef.isStreamlineLightIcon) {\n iconDef.type = splits.find(v => v.startsWith('sl-'))?.substring(3) || '';\n } else if (iconDef.isStreamlineRegularIcon) {\n iconDef.type = splits.find(v => v.startsWith('sl-'))?.substring(3) || '';\n } else {\n iconDef.isWavIcon = !iconDef.isFontAwesome && !!splits.find(v => v === 'wi');\n iconDef.type = (iconDef.isWavIcon && splits.find(v => v.startsWith('wi-'))?.substring(3)) || '';\n }\n if (iconClass.indexOf('fa-spin') >= 0) {\n iconDef.animation = 'spin';\n } else if (iconClass.indexOf('fa-pulse') >= 0) {\n iconDef.animation = 'pulse';\n }\n iconDef.size = splits.map(v => ICON_SIZES.get(v)).find(v => !!v) || 12;\n iconDef.rotate = splits.map(v => ICON_ROTATTION.get(v)).find(v => !!v) || '0deg';\n return iconDef;\n }\n\n private spin () {\n if (this.stopAnimation) {\n return;\n }\n this.spinValue.setValue(0);\n Animated.timing(\n this.spinValue,\n {\n toValue: 1,\n duration: 1000,\n easing: Easing.linear,\n useNativeDriver: true\n }\n ).start(() => this.spin());\n }\n\n componentDidMount() {\n super.componentDidMount();\n this.spin();\n }\n\n componentWillUnmount(): void {\n super.componentWillUnmount();\n this.stopAnimation = true;\n }\n\n onPropertyChange(name: string, $new: any, $old: any) {\n super.onPropertyChange(name, $new, $old);\n switch(name) {\n case 'iconclass':\n $new && this.updateState({iconDef: this.getIconDef($new)} as WmIconState);\n break;\n }\n }\n\n private getCustomIcon(props: WmIconProps, style: any) {\n const customIcon = this.theme.mergeStyle({}, this.theme.getStyle(props?.iconclass || '')?.icon || this.styles.icon);\n const customIconContent = customIcon?.content;\n if (customIconContent) {\n delete customIcon.content;\n return (<Text\n style={[style, customIcon.fontFamily ? {fontFamily: customIcon.fontFamily}: null]}>\n {decodeURIComponent(customIconContent)}\n </Text>);\n }\n return null;\n }\n\n public renderSkeleton(props: WmIconProps) {\n return createSkeleton(this.theme, this.styles.skeleton, {\n ...this.styles.root,\n width: this.props.skeletonwidth || this.props.iconsize || this.styles.root.width,\n height: this.props.skeletonheight || this.props.iconsize || this.styles.root.height\n });\n }\n\n renderIcon(props: WmIconProps) {\n const iconDef = this.state.iconDef;\n if (!iconDef) {\n return null;\n }\n let icon = null;\n const style = [{\n color: this.styles.root.color || this.styles.text.color\n }, this.styles.icon, {transform: [{rotate: iconDef.rotate}]}];\n const customIcon = this.getCustomIcon(props, style);\n const iconSize = props.iconsize || this.styles.root.fontSize || this.styles.text.fontSize || iconDef.size;\n if (props.show && iconDef && iconDef.isFontAwesome) {\n //@ts-ignore type information is not matching\n icon = (<FontAwesome name={customIcon ? '' : iconDef.type}\n style={style}\n size={iconSize}>\n {customIcon}\n </FontAwesome>);\n } else if (props.show && iconDef) {\n let WMCustomIcon = WavIcon as unknown;\n if (iconDef.isStreamlineLightIcon) {\n WMCustomIcon = StreamlineLightIcon;\n } else if (iconDef.isStreamlineRegularIcon) {\n WMCustomIcon = StreamlineRegularIcon;\n }\n //@ts-ignore type information is not matching\n icon = WMCustomIcon ? (<WMCustomIcon name={customIcon ? '' : iconDef.type}\n style={style}\n size={iconSize}>\n {customIcon}\n </WMCustomIcon>) : null;\n }\n if (icon && iconDef.animation === 'spin') {\n const rotate = this.spinValue.interpolate({ inputRange: [0, 1], outputRange: ['0deg', '360deg']});\n const animation = { transform: [{ rotate }] };\n this.stopAnimation = false;\n return (<Animated.View style={animation}>{icon}</Animated.View>);\n } else if (icon && iconDef.animation === 'pulse') {\n const opacity = this.spinValue.interpolate({ inputRange: [0, 1], outputRange: [0, 1]});\n const animation = { opacity: opacity };\n this.stopAnimation = false;\n return (<Animated.View style={animation}>{icon}</Animated.View>);\n } else {\n this.stopAnimation = true;\n }\n return icon;\n }\n\n renderWidget(props: WmIconProps) {\n let icon = this.renderIcon(props);\n return (\n <Tappable target={this}>\n <Animatedview entryanimation={props.animation} style={this.styles.root}>\n {(props.iconposition === 'left' && icon) || null}\n {(props.caption && (<Text style={this.styles.text}>{props.caption}</Text>)) || null}\n {(props.iconposition === 'right' && icon) || null}\n </Animatedview>\n </Tappable>\n );\n }\n}\n"],"mappings":";;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,QAAQ,EAAEC,MAAM,EAAEC,IAAI,QAAQ,cAAc;AACrD,SAASC,WAAW,QAAQ,oBAAoB;AAChD,SAASC,aAAa,EAAEC,kBAAkB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;MACtC,IAAI,CAAClD,aAAa,GAAG,KAAK;MAC1B,oBAAQ,oBAAC,QAAQ,CAAC,IAAI;QAAC,KAAK,EAAEL;MAAU,GAAE6B,IAAI,CAAiB;IACjE,CAAC,MAAM;MACL,IAAI,CAACxB,aAAa,GAAG,IAAI;IAC3B;IACA,OAAOwB,IAAI;EACb;EAEA2B,YAAY,CAAC1E,KAAkB,EAAE;IAC/B,IAAI+C,IAAI,GAAG,IAAI,CAACc,UAAU,CAAC7D,KAAK,CAAC;IACjC,oBACE,oBAAC,QAAQ;MAAC,MAAM,EAAE;IAAK,gBACrB,oBAAC,YAAY;MAAC,cAAc,EAAEA,KAAK,CAACkB,SAAU;MAAC,KAAK,EAAE,IAAI,CAAC8B,MAAM,CAACO;IAAK,GACnEvD,KAAK,CAAC2E,YAAY,KAAK,MAAM,IAAI5B,IAAI,IAAK,IAAI,EAC9C/C,KAAK,CAAC4E,OAAO,iBAAK,oBAAC,IAAI;MAAC,KAAK,EAAE,IAAI,CAAC5B,MAAM,CAACgB;IAAK,GAAEhE,KAAK,CAAC4E,OAAO,CAAS,IAAK,IAAI,EACjF5E,KAAK,CAAC2E,YAAY,KAAK,OAAO,IAAI5B,IAAI,IAAK,IAAI,CACpC,CACN;EAEf;AACF"}
1
+ {"version":3,"names":["React","Animated","Easing","Text","FontAwesome","BaseComponent","BaseComponentState","WmIconProps","DEFAULT_CLASS","WavIcon","StreamlineLightIcon","StreamlineRegularIcon","Tappable","Animatedview","createSkeleton","ICON_SIZES","Map","ICON_ROTATTION","WmIconState","constructor","arguments","_defineProperty","WmIcon","props","Value","getIconDef","iconClass","iconDef","rotate","splits","split","isFontAwesome","find","v","isStreamlineLightIcon","isStreamlineRegularIcon","_splits$find","type","startsWith","substring","_splits$find2","_splits$find3","_splits$find4","isWavIcon","indexOf","animation","size","map","get","spin","stopAnimation","spinValue","setValue","timing","toValue","duration","easing","linear","useNativeDriver","start","componentDidMount","componentWillUnmount","onPropertyChange","name","$new","$old","updateState","getCustomIcon","style","_this$theme$getStyle","customIcon","theme","mergeStyle","getStyle","iconclass","icon","styles","customIconContent","content","createElement","fontFamily","decodeURIComponent","renderSkeleton","skeleton","root","width","skeletonwidth","iconsize","height","skeletonheight","renderIcon","state","color","text","transform","iconSize","fontSize","show","WMCustomIcon","interpolate","inputRange","outputRange","View","opacity","renderWidget","target","entryanimation","_background","iconposition","caption"],"sources":["icon.component.tsx"],"sourcesContent":["import React from 'react';\nimport { Animated, Easing, Text } from 'react-native';\nimport { FontAwesome } from '@expo/vector-icons';\nimport { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';\n\nimport WmIconProps from './icon.props';\nimport { DEFAULT_CLASS, WmIconStyles } from './icon.styles';\nimport WavIcon from './wavicon/wavicon.component';\nimport StreamlineLightIcon from './streamline-light-icon/streamline-light-icon.component';\nimport StreamlineRegularIcon from './streamline-regular-icon/streamline-regular-icon.component';\nimport { Tappable } from '@wavemaker/app-rn-runtime/core/tappable.component';\nimport { Animatedview } from '@wavemaker/app-rn-runtime/components/basic/animatedview.component';\nimport WmSkeleton, { createSkeleton } from '../skeleton/skeleton.component';\n\ninterface IconDef {\n isFontAwesome: boolean;\n isWavIcon: boolean;\n isStreamlineLightIcon: boolean;\n isStreamlineRegularIcon: boolean;\n type: string;\n rotate: string;\n size: number;\n animation: string;\n}\n\nconst ICON_SIZES = new Map([\n ['fa-lg', 24],\n ['fa-2x', 36],\n ['fa-3x', 48],\n ['fa-4x', 60],\n ['fa-5x', 72]\n]);\n\nconst ICON_ROTATTION = new Map([\n ['fa-rotate-90', '90deg'],\n ['fa-rotate-180', '180deg'],\n ['fa-rotate-270', '270deg']\n]);\n\nexport class WmIconState extends BaseComponentState<WmIconProps> {\n public iconDef = {} as IconDef;\n}\n\nexport default class WmIcon extends BaseComponent<WmIconProps, WmIconState, WmIconStyles> {\n spinValue = new Animated.Value(0);\n pulseValue = new Animated.Value(0);\n public stopAnimation = true; \n\n constructor(props: WmIconProps) {\n super(props, DEFAULT_CLASS, new WmIconProps());\n }\n\n getIconDef(iconClass: string): IconDef {\n const iconDef = {\n rotate: '0'\n } as IconDef;\n const splits = iconClass.split(' ');\n iconDef.isFontAwesome = !!splits.find(v => v === 'fa');\n iconDef.isStreamlineLightIcon = !!splits.find(v => v === 'wm-sl-l');\n iconDef.isStreamlineRegularIcon = !!splits.find(v => v === 'wm-sl-r');\n if (iconDef.isFontAwesome) {\n iconDef.type = splits.find(v => v.startsWith('fa-'))?.substring(3) || '';\n } else if (iconDef.isStreamlineLightIcon) {\n iconDef.type = splits.find(v => v.startsWith('sl-'))?.substring(3) || '';\n } else if (iconDef.isStreamlineRegularIcon) {\n iconDef.type = splits.find(v => v.startsWith('sl-'))?.substring(3) || '';\n } else {\n iconDef.isWavIcon = !iconDef.isFontAwesome && !!splits.find(v => v === 'wi');\n iconDef.type = (iconDef.isWavIcon && splits.find(v => v.startsWith('wi-'))?.substring(3)) || '';\n }\n if (iconClass.indexOf('fa-spin') >= 0) {\n iconDef.animation = 'spin';\n } else if (iconClass.indexOf('fa-pulse') >= 0) {\n iconDef.animation = 'pulse';\n }\n iconDef.size = splits.map(v => ICON_SIZES.get(v)).find(v => !!v) || 12;\n iconDef.rotate = splits.map(v => ICON_ROTATTION.get(v)).find(v => !!v) || '0deg';\n return iconDef;\n }\n\n private spin () {\n if (this.stopAnimation) {\n return;\n }\n this.spinValue.setValue(0);\n Animated.timing(\n this.spinValue,\n {\n toValue: 1,\n duration: 1000,\n easing: Easing.linear,\n useNativeDriver: true\n }\n ).start(() => this.spin());\n }\n\n componentDidMount() {\n super.componentDidMount();\n this.spin();\n }\n\n componentWillUnmount(): void {\n super.componentWillUnmount();\n this.stopAnimation = true;\n }\n\n onPropertyChange(name: string, $new: any, $old: any) {\n super.onPropertyChange(name, $new, $old);\n switch(name) {\n case 'iconclass':\n $new && this.updateState({iconDef: this.getIconDef($new)} as WmIconState);\n break;\n }\n }\n\n private getCustomIcon(props: WmIconProps, style: any) {\n const customIcon = this.theme.mergeStyle({}, this.theme.getStyle(props?.iconclass || '')?.icon || this.styles.icon);\n const customIconContent = customIcon?.content;\n if (customIconContent) {\n delete customIcon.content;\n return (<Text\n style={[style, customIcon.fontFamily ? {fontFamily: customIcon.fontFamily}: null]}>\n {decodeURIComponent(customIconContent)}\n </Text>);\n }\n return null;\n }\n\n public renderSkeleton(props: WmIconProps) {\n return createSkeleton(this.theme, this.styles.skeleton, {\n ...this.styles.root,\n width: this.props.skeletonwidth || this.props.iconsize || this.styles.root.width,\n height: this.props.skeletonheight || this.props.iconsize || this.styles.root.height\n });\n }\n\n renderIcon(props: WmIconProps) {\n const iconDef = this.state.iconDef;\n if (!iconDef) {\n return null;\n }\n let icon = null;\n const style = [{\n color: this.styles.root.color || this.styles.text.color\n }, this.styles.icon, {transform: [{rotate: iconDef.rotate}]}];\n const customIcon = this.getCustomIcon(props, style);\n const iconSize = props.iconsize || this.styles.root.fontSize || this.styles.text.fontSize || iconDef.size;\n if (props.show && iconDef && iconDef.isFontAwesome) {\n //@ts-ignore type information is not matching\n icon = (<FontAwesome name={customIcon ? '' : iconDef.type}\n style={style}\n size={iconSize}>\n {customIcon}\n </FontAwesome>);\n } else if (props.show && iconDef) {\n let WMCustomIcon = WavIcon as unknown;\n if (iconDef.isStreamlineLightIcon) {\n WMCustomIcon = StreamlineLightIcon;\n } else if (iconDef.isStreamlineRegularIcon) {\n WMCustomIcon = StreamlineRegularIcon;\n }\n //@ts-ignore type information is not matching\n icon = WMCustomIcon ? (<WMCustomIcon name={customIcon ? '' : iconDef.type}\n style={style}\n size={iconSize}>\n {customIcon}\n </WMCustomIcon>) : null;\n }\n if (icon && iconDef.animation === 'spin') {\n const rotate = this.spinValue.interpolate({ inputRange: [0, 1], outputRange: ['0deg', '360deg']});\n const animation = { transform: [{ rotate }] };\n this.stopAnimation = false;\n return (<Animated.View style={animation}>{icon}</Animated.View>);\n } else if (icon && iconDef.animation === 'pulse') {\n const opacity = this.spinValue.interpolate({ inputRange: [0, 1], outputRange: [0, 1]});\n const animation = { opacity: opacity };\n this.stopAnimation = false;\n return (<Animated.View style={animation}>{icon}</Animated.View>);\n } else {\n this.stopAnimation = true;\n }\n return icon;\n }\n\n renderWidget(props: WmIconProps) {\n let icon = this.renderIcon(props);\n return (\n <Tappable target={this}>\n <Animatedview entryanimation={props.animation} style={this.styles.root}>\n {this._background}\n {(props.iconposition === 'left' && icon) || null}\n {(props.caption && (<Text style={this.styles.text}>{props.caption}</Text>)) || null}\n {(props.iconposition === 'right' && icon) || null}\n </Animatedview>\n </Tappable>\n );\n }\n}\n"],"mappings":";;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,QAAQ,EAAEC,MAAM,EAAEC,IAAI,QAAQ,cAAc;AACrD,SAASC,WAAW,QAAQ,oBAAoB;AAChD,SAASC,aAAa,EAAEC,kBAAkB,QAAQ,+CAA+C;AAEjG,OAAOC,WAAW,MAAM,cAAc;AACtC,SAASC,aAAa,QAAsB,eAAe;AAC3D,OAAOC,OAAO,MAAM,6BAA6B;AACjD,OAAOC,mBAAmB,MAAM,yDAAyD;AACzF,OAAOC,qBAAqB,MAAM,6DAA6D;AAC/F,SAASC,QAAQ,QAAQ,mDAAmD;AAC5E,SAASC,YAAY,QAAQ,mEAAmE;AAChG,SAAqBC,cAAc,QAAQ,gCAAgC;AAa3E,MAAMC,UAAU,GAAG,IAAIC,GAAG,CAAC,CACzB,CAAC,OAAO,EAAE,EAAE,CAAC,EACb,CAAC,OAAO,EAAE,EAAE,CAAC,EACb,CAAC,OAAO,EAAE,EAAE,CAAC,EACb,CAAC,OAAO,EAAE,EAAE,CAAC,EACb,CAAC,OAAO,EAAE,EAAE,CAAC,CACd,CAAC;AAEF,MAAMC,cAAc,GAAG,IAAID,GAAG,CAAC,CAC7B,CAAC,cAAc,EAAE,OAAO,CAAC,EACzB,CAAC,eAAe,EAAE,QAAQ,CAAC,EAC3B,CAAC,eAAe,EAAE,QAAQ,CAAC,CAC5B,CAAC;AAEF,OAAO,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AI;EACb;EAEA6B,YAAYA,CAACjF,KAAkB,EAAE;IAC/B,IAAIoD,IAAI,GAAG,IAAI,CAACe,UAAU,CAACnE,KAAK,CAAC;IACjC,oBACEvB,KAAA,CAAA+E,aAAA,CAACnE,QAAQ;MAAC6F,MAAM,EAAE;IAAK,gBACrBzG,KAAA,CAAA+E,aAAA,CAAClE,YAAY;MAAC6F,cAAc,EAAEnF,KAAK,CAACsB,SAAU;MAACuB,KAAK,EAAE,IAAI,CAACQ,MAAM,CAACQ;IAAK,GACpE,IAAI,CAACuB,WAAW,EACfpF,KAAK,CAACqF,YAAY,KAAK,MAAM,IAAIjC,IAAI,IAAK,IAAI,EAC9CpD,KAAK,CAACsF,OAAO,iBAAK7G,KAAA,CAAA+E,aAAA,CAAC5E,IAAI;MAACiE,KAAK,EAAE,IAAI,CAACQ,MAAM,CAACiB;IAAK,GAAEtE,KAAK,CAACsF,OAAc,CAAE,IAAK,IAAI,EACjFtF,KAAK,CAACqF,YAAY,KAAK,OAAO,IAAIjC,IAAI,IAAK,IACjC,CACN,CAAC;EAEf;AACF"}
@@ -1 +1 @@
1
- {"version":3,"names":["BaseProps","WmIconProps"],"sources":["icon.props.ts"],"sourcesContent":["import { BaseProps } from '@wavemaker/app-rn-runtime/core/base.component';\n\nexport default class WmIconProps extends BaseProps {\n animation?: string = null as any;\n iconclass?: string = 'wm-sl-l sl-user';\n iconposition? = 'left';\n caption? = '';\n iconsize? = 0;\n onTap?: Function;\n skeletonheight?: string = null as any;\n skeletonwidth?: string = null as any;\n}\n"],"mappings":";;;AAAA,SAASA,SAAS,QAAQ,+CAA+C;AAEzE,eAAe,MAAMC,WAAW,SAASD,SAAS,CAAC;EAAA;IAAA;IAAA,mCAC5B,IAAI;IAAA,mCACJ,iBAAiB;IAAA,sCACtB,MAAM;IAAA,iCACX,EAAE;IAAA,kCACD,CAAC;IAAA;IAAA,wCAEa,IAAI;IAAA,uCACL,IAAI;EAAA;AAC/B"}
1
+ {"version":3,"names":["BaseProps","WmIconProps","constructor","arguments","_defineProperty"],"sources":["icon.props.ts"],"sourcesContent":["import { BaseProps } from '@wavemaker/app-rn-runtime/core/base.component';\n\nexport default class WmIconProps extends BaseProps {\n animation?: string = null as any;\n iconclass?: string = 'wm-sl-l sl-user';\n iconposition? = 'left';\n caption? = '';\n iconsize? = 0;\n onTap?: Function;\n skeletonheight?: string = null as any;\n skeletonwidth?: string = null as any;\n}\n"],"mappings":";;;AAAA,SAASA,SAAS,QAAQ,+CAA+C;AAEzE,eAAe,MAAMC,WAAW,SAASD,SAAS,CAAC;EAAAE,YAAA;IAAA,SAAAC,SAAA;IAAAC,eAAA,oBAC5B,IAAI;IAAAA,eAAA,oBACJ,iBAAiB;IAAAA,eAAA,uBACtB,MAAM;IAAAA,eAAA,kBACX,EAAE;IAAAA,eAAA,mBACD,CAAC;IAAAA,eAAA;IAAAA,eAAA,yBAEa,IAAI;IAAAA,eAAA,wBACL,IAAI;EAAA;AAC/B"}
@@ -23,5 +23,10 @@ BASE_THEME.registerStyle((themeVariables, addStyle) => {
23
23
  }
24
24
  });
25
25
  addStyle(DEFAULT_CLASS, '', defaultStyles);
26
+ addStyle(DEFAULT_CLASS + '-rtl', '', {
27
+ text: {
28
+ paddingRight: 8
29
+ }
30
+ });
26
31
  });
27
32
  //# sourceMappingURL=icon.styles.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["BASE_THEME","defineStyles","DEFAULT_CLASS","registerStyle","themeVariables","addStyle","defaultStyles","root","flexDirection","alignSelf","alignItems","icon","paddingLeft","text","skeleton","width","height","borderRadius"],"sources":["icon.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 { WmSkeletonStyles } from '../skeleton/skeleton.styles';\n\nexport type WmIconStyles = BaseStyles & {\n icon?: AllStyle,\n skeleton: WmSkeletonStyles\n};\nexport const DEFAULT_CLASS = 'app-icon';\nBASE_THEME.registerStyle((themeVariables, addStyle) => {\n const defaultStyles: WmIconStyles = defineStyles({\n root: {\n flexDirection: 'row',\n alignSelf: 'flex-start',\n alignItems: 'center'\n },\n icon: {\n paddingLeft: 0\n },\n text: {\n paddingLeft: 8\n },\n skeleton:{\n root: {\n width: 32,\n height: 32,\n borderRadius: 4\n }\n } as WmSkeletonStyles\n });\n\n addStyle(DEFAULT_CLASS, '', defaultStyles);\n});\n"],"mappings":"AAAA,OAAOA,UAAU,MAAqB,wCAAwC;AAC9E,SAAqBC,YAAY,QAAQ,+CAA+C;AAOxF,OAAO,MAAMC,aAAa,GAAG,UAAU;AACvCF,UAAU,CAACG,aAAa,CAAC,CAACC,cAAc,EAAEC,QAAQ,KAAK;EACnD,MAAMC,aAA2B,GAAGL,YAAY,CAAC;IAC7CM,IAAI,EAAE;MACFC,aAAa,EAAE,KAAK;MACpBC,SAAS,EAAE,YAAY;MACvBC,UAAU,EAAE;IAChB,CAAC;IACDC,IAAI,EAAE;MACFC,WAAW,EAAE;IACjB,CAAC;IACDC,IAAI,EAAE;MACFD,WAAW,EAAE;IACjB,CAAC;IACDE,QAAQ,EAAC;MACLP,IAAI,EAAE;QACFQ,KAAK,EAAE,EAAE;QACTC,MAAM,EAAE,EAAE;QACVC,YAAY,EAAE;MAClB;IACJ;EACJ,CAAC,CAAC;EAEFZ,QAAQ,CAACH,aAAa,EAAE,EAAE,EAAEI,aAAa,CAAC;AAC9C,CAAC,CAAC"}
1
+ {"version":3,"names":["BASE_THEME","defineStyles","DEFAULT_CLASS","registerStyle","themeVariables","addStyle","defaultStyles","root","flexDirection","alignSelf","alignItems","icon","paddingLeft","text","skeleton","width","height","borderRadius","paddingRight"],"sources":["icon.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 { WmSkeletonStyles } from '../skeleton/skeleton.styles';\n\nexport type WmIconStyles = BaseStyles & {\n icon?: AllStyle,\n skeleton: WmSkeletonStyles\n};\nexport const DEFAULT_CLASS = 'app-icon';\nBASE_THEME.registerStyle((themeVariables, addStyle) => {\n const defaultStyles: WmIconStyles = defineStyles({\n root: {\n flexDirection: 'row',\n alignSelf: 'flex-start',\n alignItems: 'center'\n },\n icon: {\n paddingLeft: 0\n },\n text: {\n paddingLeft: 8\n },\n skeleton:{\n root: {\n width: 32,\n height: 32,\n borderRadius: 4\n }\n } as WmSkeletonStyles\n });\n\n addStyle(DEFAULT_CLASS, '', defaultStyles);\n addStyle(DEFAULT_CLASS + '-rtl', '', {\n text: {\n paddingRight: 8 \n }\n });\n});\n"],"mappings":"AAAA,OAAOA,UAAU,MAAqB,wCAAwC;AAC9E,SAAqBC,YAAY,QAAQ,+CAA+C;AAOxF,OAAO,MAAMC,aAAa,GAAG,UAAU;AACvCF,UAAU,CAACG,aAAa,CAAC,CAACC,cAAc,EAAEC,QAAQ,KAAK;EACnD,MAAMC,aAA2B,GAAGL,YAAY,CAAC;IAC7CM,IAAI,EAAE;MACFC,aAAa,EAAE,KAAK;MACpBC,SAAS,EAAE,YAAY;MACvBC,UAAU,EAAE;IAChB,CAAC;IACDC,IAAI,EAAE;MACFC,WAAW,EAAE;IACjB,CAAC;IACDC,IAAI,EAAE;MACFD,WAAW,EAAE;IACjB,CAAC;IACDE,QAAQ,EAAC;MACLP,IAAI,EAAE;QACFQ,KAAK,EAAE,EAAE;QACTC,MAAM,EAAE,EAAE;QACVC,YAAY,EAAE;MAClB;IACJ;EACJ,CAAC,CAAC;EAEFZ,QAAQ,CAACH,aAAa,EAAE,EAAE,EAAEI,aAAa,CAAC;EAC1CD,QAAQ,CAACH,aAAa,GAAG,MAAM,EAAE,EAAE,EAAE;IACjCW,IAAI,EAAE;MACFK,YAAY,EAAE;IAClB;EACJ,CAAC,CAAC;AACN,CAAC,CAAC"}
@@ -51,13 +51,14 @@ export default class WmLabel extends BaseComponent {
51
51
  return !isNil(props.caption) ? /*#__PURE__*/React.createElement(Animatedview, {
52
52
  entryanimation: props.animation,
53
53
  style: this.styles.root
54
- }, /*#__PURE__*/React.createElement(Tappable, {
54
+ }, this._background, /*#__PURE__*/React.createElement(Tappable, {
55
55
  target: this
56
56
  }, /*#__PURE__*/React.createElement(Text, {
57
57
  style: [this.styles.text, {
58
58
  color: props.isValid === false ? 'red' : this.styles.text.color
59
59
  }],
60
- numberOfLines: props.wrap ? undefined : 1
60
+ numberOfLines: props.wrap ? undefined : 1,
61
+ selectable: this.styles.text.userSelect === 'text'
61
62
  }, toString(props.caption), props.required && this.getAsterisk()))) : null;
62
63
  }
63
64
  }
@@ -1 +1 @@
1
- {"version":3,"names":["React","Text","View","BaseComponent","BaseComponentState","Tappable","WmLabelProps","DEFAULT_CLASS","isNil","toString","Animatedview","createSkeleton","WmLabelState","WmLabel","constructor","props","getAsterisk","styles","asterisk","getMultilineSkeleton","width","height","borderRadius","marginBottom","theme","skeleton","renderSkeleton","skeletonWidth","skeletonwidth","root","skeletonHeight","skeletonheight","text","fontSize","multilineskeleton","renderWidget","caption","animation","color","isValid","wrap","undefined","required"],"sources":["label.component.tsx"],"sourcesContent":["import React from 'react';\nimport { Text, View } from 'react-native';\nimport { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';\nimport { Tappable } from '@wavemaker/app-rn-runtime/core/tappable.component';\n\nimport WmLabelProps from './label.props';\nimport { DEFAULT_CLASS, WmLabelStyles } from './label.styles';\nimport { isNil, toString } from 'lodash-es';\nimport { Animatedview } from '@wavemaker/app-rn-runtime/components/basic/animatedview.component';\nimport WmSkeleton, { createSkeleton } from '../skeleton/skeleton.component';\nimport { totalMonths } from 'react-native-paper-dates/lib/typescript/Date/dateUtils';\n\nexport class WmLabelState extends BaseComponentState<WmLabelProps> {\n\n}\n\nexport default class WmLabel extends BaseComponent<WmLabelProps, WmLabelState, WmLabelStyles> {\n\n constructor(props: WmLabelProps) {\n super(props, DEFAULT_CLASS, new WmLabelProps());\n }\n\n private getAsterisk () {\n return <Text style={this.styles.asterisk}>*</Text>;\n }\n\n private getMultilineSkeleton(width: any, height: any) {\n const styles = {\n borderRadius:4,\n marginBottom: 10,\n height: height\n };\n return createSkeleton(this.theme, this.styles.skeleton, {\n ...styles,\n width: width,\n height: height\n });\n }\n\n public renderSkeleton(props: WmLabelProps){\n const skeletonWidth = this.props.skeletonwidth || this.styles.root?.width;\n const skeletonHeight = this.props.skeletonheight || this.styles.root?.height || this.styles.text.fontSize;\n if(this.props.multilineskeleton) {\n return (<View style={{\n width: skeletonWidth\n }}>\n {this.getMultilineSkeleton('100%', skeletonHeight)}\n {this.getMultilineSkeleton('70%', skeletonHeight)}\n {this.getMultilineSkeleton('40%', skeletonHeight)}\n </View>)\n }\n else{\n return createSkeleton(this.theme, this.styles.skeleton, {\n ...this.styles.root,\n width: skeletonWidth,\n height: skeletonHeight\n }); \n }\n }\n\n renderWidget(props: WmLabelProps) {\n return !isNil(props.caption)? (\n <Animatedview entryanimation={props.animation} style={this.styles.root}>\n <Tappable target={this}>\n <Text\n style={[this.styles.text, \n {color: props.isValid === false ? 'red' : this.styles.text.color}]}\n numberOfLines={props.wrap ? undefined : 1}>\n {toString(props.caption)}\n {props.required && this.getAsterisk()}\n </Text>\n </Tappable>\n </Animatedview>\n ): null;\n }\n}\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AACzC,SAASC,aAAa,EAAEC,kBAAkB,QAAQ,+CAA+C;AACjG,SAASC,QAAQ,QAAQ,mDAAmD;AAE5E,OAAOC,YAAY,MAAM,eAAe;AACxC,SAASC,aAAa,QAAuB,gBAAgB;AAC7D,SAASC,KAAK,EAAEC,QAAQ,QAAQ,WAAW;AAC3C,SAASC,YAAY,QAAQ,mEAAmE;AAChG,SAAqBC,cAAc,QAAQ,gCAAgC;AAG3E,OAAO,MAAMC,YAAY,SAASR,kBAAkB,CAAe;AAInE,eAAe,MA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MACF,OAAOnB,cAAc,CAAC,IAAI,CAACa,KAAK,EAAE,IAAI,CAACP,MAAM,CAACQ,QAAQ,EAAE;QACtD,GAAG,IAAI,CAACR,MAAM,CAACY,IAAI;QACnBT,KAAK,EAAEO,aAAa;QACpBN,MAAM,EAAES;MACV,CAAC,CAAC;IACJ;EACF;EAEAK,YAAY,CAACpB,KAAmB,EAAE;IAChC,OAAO,CAACP,KAAK,CAACO,KAAK,CAACqB,OAAO,CAAC,gBAC1B,oBAAC,YAAY;MAAC,cAAc,EAAErB,KAAK,CAACsB,SAAU;MAAC,KAAK,EAAE,IAAI,CAACpB,MAAM,CAACY;IAAK,gBACrE,oBAAC,QAAQ;MAAC,MAAM,EAAE;IAAK,gBACnB,oBAAC,IAAI;MACH,KAAK,EAAE,CAAC,IAAI,CAACZ,MAAM,CAACe,IAAI,EACtB;QAACM,KAAK,EAAEvB,KAAK,CAACwB,OAAO,KAAK,KAAK,GAAG,KAAK,GAAG,IAAI,CAACtB,MAAM,CAACe,IAAI,CAACM;MAAK,CAAC,CAAE;MACrE,aAAa,EAAEvB,KAAK,CAACyB,IAAI,GAAGC,SAAS,GAAG;IAAE,GACzChC,QAAQ,CAACM,KAAK,CAACqB,OAAO,CAAC,EACvBrB,KAAK,CAAC2B,QAAQ,IAAI,IAAI,CAAC1B,WAAW,EAAE,CAChC,CACA,CACE,GACd,IAAI;EACT;AACF"}
1
+ {"version":3,"names":["React","Text","View","BaseComponent","BaseComponentState","Tappable","WmLabelProps","DEFAULT_CLASS","isNil","toString","Animatedview","createSkeleton","WmLabelState","WmLabel","constructor","props","getAsterisk","createElement","style","styles","asterisk","getMultilineSkeleton","width","height","borderRadius","marginBottom","theme","skeleton","renderSkeleton","_this$styles$root","_this$styles$root2","skeletonWidth","skeletonwidth","root","skeletonHeight","skeletonheight","text","fontSize","multilineskeleton","renderWidget","caption","entryanimation","animation","_background","target","color","isValid","numberOfLines","wrap","undefined","selectable","userSelect","required"],"sources":["label.component.tsx"],"sourcesContent":["import React from 'react';\nimport { Text, View } from 'react-native';\nimport { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';\nimport { Tappable } from '@wavemaker/app-rn-runtime/core/tappable.component';\n\nimport WmLabelProps from './label.props';\nimport { DEFAULT_CLASS, WmLabelStyles } from './label.styles';\nimport { isNil, toString } from 'lodash-es';\nimport { Animatedview } from '@wavemaker/app-rn-runtime/components/basic/animatedview.component';\nimport WmSkeleton, { createSkeleton } from '../skeleton/skeleton.component';\nimport { totalMonths } from 'react-native-paper-dates/lib/typescript/Date/dateUtils';\n\nexport class WmLabelState extends BaseComponentState<WmLabelProps> {\n\n}\n\nexport default class WmLabel extends BaseComponent<WmLabelProps, WmLabelState, WmLabelStyles> {\n\n constructor(props: WmLabelProps) {\n super(props, DEFAULT_CLASS, new WmLabelProps());\n }\n\n private getAsterisk () {\n return <Text style={this.styles.asterisk}>*</Text>;\n }\n\n private getMultilineSkeleton(width: any, height: any) {\n const styles = {\n borderRadius:4,\n marginBottom: 10,\n height: height\n };\n return createSkeleton(this.theme, this.styles.skeleton, {\n ...styles,\n width: width,\n height: height\n });\n }\n\n public renderSkeleton(props: WmLabelProps){\n const skeletonWidth = this.props.skeletonwidth || this.styles.root?.width;\n const skeletonHeight = this.props.skeletonheight || this.styles.root?.height || this.styles.text.fontSize;\n if(this.props.multilineskeleton) {\n return (<View style={{\n width: skeletonWidth\n }}>\n {this.getMultilineSkeleton('100%', skeletonHeight)}\n {this.getMultilineSkeleton('70%', skeletonHeight)}\n {this.getMultilineSkeleton('40%', skeletonHeight)}\n </View>)\n }\n else{\n return createSkeleton(this.theme, this.styles.skeleton, {\n ...this.styles.root,\n width: skeletonWidth,\n height: skeletonHeight\n }); \n }\n }\n\n renderWidget(props: WmLabelProps) {\n return !isNil(props.caption)? (\n <Animatedview entryanimation={props.animation} style={this.styles.root}>\n {this._background}\n <Tappable target={this}>\n <Text\n style={[this.styles.text, \n {color: props.isValid === false ? 'red' : this.styles.text.color}]}\n numberOfLines={props.wrap ? undefined : 1}\n selectable={this.styles.text.userSelect === 'text'}>\n {toString(props.caption)}\n {props.required && this.getAsterisk()}\n </Text>\n </Tappable>\n </Animatedview>\n ): null;\n }\n}\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AACzC,SAASC,aAAa,EAAEC,kBAAkB,QAAQ,+CAA+C;AACjG,SAASC,QAAQ,QAAQ,mDAAmD;AAE5E,OAAOC,YAAY,MAAM,eAAe;AACxC,SAASC,aAAa,QAAuB,gBAAgB;AAC7D,SAASC,KAAK,EAAEC,QAAQ,QAAQ,WAAW;AAC3C,SAASC,YAAY,QAAQ,mEAAmE;AAChG,SAAqBC,cAAc,QAAQ,gCAAgC;AAG3E,OAAO,MAAMC,YAAY,SAASR,kBAAkB,CAAe;AAInE,eAAe,MAAMS,OAAO,SAASV,aAAa,CAA4C;EAE5FW,WAAWA,CAACC,KAAmB,EAAE;IAC/B,KAAK,CAACA,KAAK,EAAER,aAAa,EAAE,IAAID,YAAY,CAAC,CAAC,CAAC;EACjD;EAEQU,WAAWA,CAAA,EAAI;IACrB,oBAAOhB,KAAA,CAAAiB,aAAA,CAAChB,IAAI;MAACiB,KAAK,EAAE,IAAI,CAACC,MAAM,CAACC;IAAS,GAAC,GAAO,CAAC;EACpD;EAEQC,oBAAoBA,CAACC,KAAU,EAAEC,MAAW,EAAE;IACpD,MAAMJ,MAAM,GAAG;MACbK,YAAY,EAAC,CAAC;MACdC,YAAY,EAAE,EAAE;MAChBF,MAAM,EAAEA;IACV,CAAC;IACD,OAAOZ,cAAc,CAAC,IAAI,CAACe,KAAK,EAAE,IAAI,CAACP,MAAM,CAACQ,QAAQ,EAAE;MACtD,GAAGR,MAAM;MACTG,KAAK,EAAEA,KAAK;MACZC,MAAM,EAAEA;IACV,CAAC,CAAC;EACJ;EAEOK,cAAcA,CAACb,KAAmB,EAAC;IAAA,IAAAc,iBAAA,EAAAC,k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AK,gBACnB5C,KAAA,CAAAiB,aAAA,CAAChB,IAAI;MACHiB,KAAK,EAAE,CAAC,IAAI,CAACC,MAAM,CAACiB,IAAI,EACtB;QAACS,KAAK,EAAE9B,KAAK,CAAC+B,OAAO,KAAK,KAAK,GAAG,KAAK,GAAG,IAAI,CAAC3B,MAAM,CAACiB,IAAI,CAACS;MAAK,CAAC,CAAE;MACrEE,aAAa,EAAEhC,KAAK,CAACiC,IAAI,GAAGC,SAAS,GAAG,CAAE;MAC1CC,UAAU,EAAE,IAAI,CAAC/B,MAAM,CAACiB,IAAI,CAACe,UAAU,KAAK;IAAO,GAClD1C,QAAQ,CAACM,KAAK,CAACyB,OAAO,CAAC,EACvBzB,KAAK,CAACqC,QAAQ,IAAI,IAAI,CAACpC,WAAW,CAAC,CAChC,CACA,CACE,CAAC,GACd,IAAI;EACT;AACF"}
@@ -1 +1 @@
1
- {"version":3,"names":["BaseProps","WmLabelProps"],"sources":["label.props.ts"],"sourcesContent":["import { BaseProps } from '@wavemaker/app-rn-runtime/core/base.component';\n\nexport default class WmLabelProps extends BaseProps {\n animation?: string = null as any;\n caption?: string = 'Label';\n required?: boolean = null as any;\n isValid?: boolean = true;\n wrap?: boolean = true;\n skeletonheight?: string = null as any;\n skeletonwidth?: string = null as any;\n multilineskeleton?: boolean = false;\n}\n"],"mappings":";;;AAAA,SAASA,SAAS,QAAQ,+CAA+C;AAEzE,eAAe,MAAMC,YAAY,SAASD,SAAS,CAAC;EAAA;IAAA;IAAA,mCAC3B,IAAI;IAAA,iCACN,OAAO;IAAA,kCACL,IAAI;IAAA,iCACL,IAAI;IAAA,8BACP,IAAI;IAAA,wCACK,IAAI;IAAA,uCACL,IAAI;IAAA,2CACC,KAAK;EAAA;AACvC"}
1
+ {"version":3,"names":["BaseProps","WmLabelProps","constructor","arguments","_defineProperty"],"sources":["label.props.ts"],"sourcesContent":["import { BaseProps } from '@wavemaker/app-rn-runtime/core/base.component';\n\nexport default class WmLabelProps extends BaseProps {\n animation?: string = null as any;\n caption?: string = 'Label';\n required?: boolean = null as any;\n isValid?: boolean = true;\n wrap?: boolean = true;\n skeletonheight?: string = null as any;\n skeletonwidth?: string = null as any;\n multilineskeleton?: boolean = false;\n}\n"],"mappings":";;;AAAA,SAASA,SAAS,QAAQ,+CAA+C;AAEzE,eAAe,MAAMC,YAAY,SAASD,SAAS,CAAC;EAAAE,YAAA;IAAA,SAAAC,SAAA;IAAAC,eAAA,oBAC3B,IAAI;IAAAA,eAAA,kBACN,OAAO;IAAAA,eAAA,mBACL,IAAI;IAAAA,eAAA,kBACL,IAAI;IAAAA,eAAA,eACP,IAAI;IAAAA,eAAA,yBACK,IAAI;IAAAA,eAAA,wBACL,IAAI;IAAAA,eAAA,4BACC,KAAK;EAAA;AACvC"}
@@ -22,6 +22,12 @@ BASE_THEME.registerStyle((themeVariables, addStyle) => {
22
22
  }
23
23
  });
24
24
  addStyle(DEFAULT_CLASS, '', defaultStyles);
25
+ addStyle(DEFAULT_CLASS + '-rtl', '', {
26
+ root: {
27
+ flexDirection: 'row',
28
+ textAlign: 'right'
29
+ }
30
+ });
25
31
  const getLabelStyles = (color, textColor) => {
26
32
  return {
27
33
  root: {
@@ -44,6 +50,8 @@ BASE_THEME.registerStyle((themeVariables, addStyle) => {
44
50
  addStyle('label-primary', '', getLabelStyles(themeVariables.labelPrimaryColor, themeVariables.labelPrimaryContrastColor));
45
51
  addStyle('label-success', '', getLabelStyles(themeVariables.labelSuccessColor, themeVariables.labelSuccessContrastColor));
46
52
  addStyle('label-warning', '', getLabelStyles(themeVariables.labelWarningColor, themeVariables.labelWarningContrastColor));
53
+ addStyle('label-test', '', getLabelStyles('yellow', 'red'));
54
+ addStyle('label-test1', '', getLabelStyles('blue', 'orange'));
47
55
  const getTextStyles = color => {
48
56
  return {
49
57
  text: {
@@ -1 +1 @@
1
- {"version":3,"names":["BASE_THEME","deepCopy","defineStyles","DEFAULT_CLASS","registerStyle","themeVariables","addStyle","defaultStyles","root","text","fontSize","color","labelDefaultColor","asterisk","labelAsteriskColor","marginLeft","skeleton","width","height","borderRadius","getLabelStyles","textColor","backgroundColor","paddingLeft","paddingTop","paddingRight","paddingBottom","fontWeight","labelDangerColor","labelDangerContrastColor","labelDefaultContrastColor","labelInfoColor","labelInfoContrastColor","labelPrimaryColor","labelPrimaryContrastColor","labelSuccessColor","labelSuccessContrastColor","labelWarningColor","labelWarningContrastColor","getTextStyles","labelTextDangerColor","labelTextInfoColor","labelTextPrimaryColor","labelTextSuccessColor","labelTextWarningColor","textAlign","getHeadingStyles","overrides","margin","labelHeaderColor","heading1FontSize","heading2FontSize","heading3FontSize","heading4FontSize","heading5FontSize","heading6FontSize","labelTextMutedColor"],"sources":["label.styles.ts"],"sourcesContent":["import BASE_THEME, { AllStyle } from '@wavemaker/app-rn-runtime/styles/theme';\nimport { deepCopy } from '@wavemaker/app-rn-runtime/core/utils';\nimport { BaseStyles, defineStyles } from '@wavemaker/app-rn-runtime/core/base.component';\nimport { WmSkeletonStyles } from '../skeleton/skeleton.styles';\n\nexport type WmLabelStyles = BaseStyles & {\n asterisk: AllStyle,\n skeleton: WmSkeletonStyles \n};\n\nexport const DEFAULT_CLASS = 'app-label';\nBASE_THEME.registerStyle((themeVariables, addStyle) => {\n const defaultStyles: WmLabelStyles = defineStyles({\n root: {\n },\n text: {\n fontSize: 16,\n color: themeVariables.labelDefaultColor\n },\n asterisk: {\n color: themeVariables.labelAsteriskColor,\n marginLeft: 2\n },\n skeleton: {\n root:{\n width: '100%',\n height: 16,\n borderRadius: 4\n }\n } as WmSkeletonStyles\n });\n\n addStyle(DEFAULT_CLASS, '', defaultStyles);\n\n const getLabelStyles = (color: string, textColor: string): WmLabelStyles => {\n return {\n root: {\n backgroundColor: color,\n paddingLeft: 32,\n paddingTop: 16,\n paddingRight: 32,\n paddingBottom: 16,\n borderRadius: 6\n },\n text: {\n color: textColor,\n fontWeight: 'bold'\n }\n } as WmLabelStyles;\n };\n\n addStyle('label-danger', '', getLabelStyles(themeVariables.labelDangerColor, themeVariables.labelDangerContrastColor));\n addStyle('label-default', '', getLabelStyles(themeVariables.labelDefaultColor, themeVariables.labelDefaultContrastColor));\n addStyle('label-info', '', getLabelStyles(themeVariables.labelInfoColor, themeVariables.labelInfoContrastColor));\n addStyle('label-primary', '', getLabelStyles(themeVariables.labelPrimaryColor, themeVariables.labelPrimaryContrastColor));\n addStyle('label-success', '', getLabelStyles(themeVariables.labelSuccessColor, themeVariables.labelSuccessContrastColor));\n addStyle('label-warning', '', getLabelStyles(themeVariables.labelWarningColor, themeVariables.labelWarningContrastColor));\n\n const getTextStyles = (color: string) => {\n return {\n text: {\n color: color\n }\n } as WmLabelStyles;\n };\n\n addStyle('text-danger', '', getTextStyles(themeVariables.labelTextDangerColor));\n addStyle('text-info', '', getTextStyles(themeVariables.labelTextInfoColor));\n addStyle('text-primary', '', getTextStyles(themeVariables.labelTextPrimaryColor));\n addStyle('text-success', '', getTextStyles(themeVariables.labelTextSuccessColor));\n addStyle('text-warning', '', getTextStyles(themeVariables.labelTextWarningColor));\n addStyle('text-center', '', {\n root: {\n textAlign: 'center'\n }\n } as WmLabelStyles);\n addStyle('text-left', '', {\n root: {\n textAlign: 'left'\n }\n } as WmLabelStyles);\n addStyle('text-right', '', {\n root: {\n textAlign: 'right'\n }\n } as WmLabelStyles);\n\n\n const getHeadingStyles = (fontSize: number, overrides?: WmLabelStyles) => {\n return deepCopy({\n text: {\n fontWeight: '400',\n fontSize: fontSize,\n margin: 4,\n color: themeVariables.labelHeaderColor\n }\n } as WmLabelStyles, overrides);\n };\n addStyle('h1', '', getHeadingStyles(themeVariables.heading1FontSize, {text: {fontWeight: 'bold'}} as WmLabelStyles));\n addStyle('h2', '', getHeadingStyles(themeVariables.heading2FontSize, {text: {fontWeight: '500'}} as WmLabelStyles));\n addStyle('h3', '', getHeadingStyles(themeVariables.heading3FontSize));\n addStyle('h4', '', getHeadingStyles(themeVariables.heading4FontSize));\n addStyle('h5', '', getHeadingStyles(themeVariables.heading5FontSize));\n addStyle('h6', '', getHeadingStyles(themeVariables.heading6FontSize));\n addStyle('media-heading', '', {\n text : {\n fontSize: 16\n }\n } as WmLabelStyles);\n addStyle('text-muted', '', {\n text : {\n color: themeVariables.labelTextMutedColor\n }\n } as WmLabelStyles);\n addStyle('p', '', {\n text : {\n fontSize: 12\n }\n } as WmLabelStyles);\n});\n"],"mappings":"AAAA,OAAOA,UAAU,MAAqB,wCAAwC;AAC9E,SAASC,QAAQ,QAAQ,sCAAsC;AAC/D,SAAqBC,YAAY,QAAQ,+CAA+C;AAQxF,OAAO,MAAMC,aAAa,GAAG,WAAW;AACxCH,UAAU,CAACI,aAAa,CAAC,CAACC,cAAc,EAAEC,QAAQ,KAAK;EACrD,MAAMC,aAA4B,GAAGL,YAAY,CAAC;IAC9CM,IAAI,EAAE,CACN,CAAC;IACDC,IAAI,EAAE;MACJC,QAAQ,EAAE,EAAE;MACZC,KAAK,EAAEN,cAAc,CAACO;IACxB,CAAC;IACDC,QAAQ,EAAE;MACRF,KAAK,EAAEN,cAAc,CAACS,kBAAkB;MACxCC,UAAU,EAAE;IACd,CAAC;IACDC,QAAQ,EAAE;MACRR,IAAI,EAAC;QACHS,KAAK,EAAE,MAAM;QACbC,MAAM,EAAE,EAAE;QACVC,YAAY,EAAE;MAChB;IACF;EACJ,CAAC,CAAC;EAEFb,QAAQ,CAACH,aAAa,EAAE,EAAE,EAAEI,aAAa,CAAC;EAE1C,MAAMa,cAAc,GAAG,CAACT,KAAa,EAAEU,SAAiB,KAAoB;IAC1E,OAAO;MACLb,IAAI,EAAE;QACJc,eAAe,EAAEX,KAAK;QACtBY,WAAW,EAAE,EAAE;QACfC,UAAU,EAAE,EAAE;QACdC,YAAY,EAAE,EAAE;QAChBC,aAAa,EAAE,EAAE;QACjBP,YAAY,EAAE;MAChB,CAAC;MACDV,IAAI,EAAE;QACJE,KAAK,EAAEU,SAAS;QAChBM,UAAU,EAAE;MACd;IACF,CAAC;EACH,CAAC;EAEDrB,QAAQ,CA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AAE,EAAE,EAAEwC,gBAAgB,CAACzC,cAAc,CAACiD,gBAAgB,CAAC,CAAC;EACrEhD,QAAQ,CAAC,IAAI,EAAE,EAAE,EAAEwC,gBAAgB,CAACzC,cAAc,CAACkD,gBAAgB,CAAC,CAAC;EACrEjD,QAAQ,CAAC,eAAe,EAAE,EAAE,EAAE;IAC5BG,IAAI,EAAG;MACLC,QAAQ,EAAE;IACZ;EACF,CAAC,CAAkB;EACnBJ,QAAQ,CAAC,YAAY,EAAE,EAAE,EAAE;IACzBG,IAAI,EAAG;MACLE,KAAK,EAAEN,cAAc,CAACmD;IACxB;EACF,CAAC,CAAkB;EACnBlD,QAAQ,CAAC,GAAG,EAAE,EAAE,EAAE;IAChBG,IAAI,EAAG;MACLC,QAAQ,EAAE;IACZ;EACF,CAAC,CAAkB;AACrB,CAAC,CAAC"}
1
+ {"version":3,"names":["BASE_THEME","deepCopy","defineStyles","DEFAULT_CLASS","registerStyle","themeVariables","addStyle","defaultStyles","root","text","fontSize","color","labelDefaultColor","asterisk","labelAsteriskColor","marginLeft","skeleton","width","height","borderRadius","flexDirection","textAlign","getLabelStyles","textColor","backgroundColor","paddingLeft","paddingTop","paddingRight","paddingBottom","fontWeight","labelDangerColor","labelDangerContrastColor","labelDefaultContrastColor","labelInfoColor","labelInfoContrastColor","labelPrimaryColor","labelPrimaryContrastColor","labelSuccessColor","labelSuccessContrastColor","labelWarningColor","labelWarningContrastColor","getTextStyles","labelTextDangerColor","labelTextInfoColor","labelTextPrimaryColor","labelTextSuccessColor","labelTextWarningColor","getHeadingStyles","overrides","margin","labelHeaderColor","heading1FontSize","heading2FontSize","heading3FontSize","heading4FontSize","heading5FontSize","heading6FontSize","labelTextMutedColor"],"sources":["label.styles.ts"],"sourcesContent":["import BASE_THEME, { AllStyle } from '@wavemaker/app-rn-runtime/styles/theme';\nimport { deepCopy } from '@wavemaker/app-rn-runtime/core/utils';\nimport { BaseStyles, defineStyles } from '@wavemaker/app-rn-runtime/core/base.component';\nimport { WmSkeletonStyles } from '../skeleton/skeleton.styles';\n\nexport type WmLabelStyles = BaseStyles & {\n asterisk: AllStyle,\n skeleton: WmSkeletonStyles \n};\n\nexport const DEFAULT_CLASS = 'app-label';\nBASE_THEME.registerStyle((themeVariables, addStyle) => {\n const defaultStyles: WmLabelStyles = defineStyles({\n root: {\n },\n text: {\n fontSize: 16,\n color: themeVariables.labelDefaultColor\n },\n asterisk: {\n color: themeVariables.labelAsteriskColor,\n marginLeft: 2\n },\n skeleton: {\n root:{\n width: '100%',\n height: 16,\n borderRadius: 4\n }\n } as WmSkeletonStyles\n });\n\n addStyle(DEFAULT_CLASS, '', defaultStyles);\n addStyle(DEFAULT_CLASS + '-rtl', '', {\n root : {\n flexDirection: 'row',\n textAlign: 'right'\n }\n });\n const getLabelStyles = (color: string, textColor: string): WmLabelStyles => {\n return {\n root: {\n backgroundColor: color,\n paddingLeft: 32,\n paddingTop: 16,\n paddingRight: 32,\n paddingBottom: 16,\n borderRadius: 6\n },\n text: {\n color: textColor,\n fontWeight: 'bold'\n }\n } as WmLabelStyles;\n };\n\n addStyle('label-danger', '', getLabelStyles(themeVariables.labelDangerColor, themeVariables.labelDangerContrastColor));\n addStyle('label-default', '', getLabelStyles(themeVariables.labelDefaultColor, themeVariables.labelDefaultContrastColor));\n addStyle('label-info', '', getLabelStyles(themeVariables.labelInfoColor, themeVariables.labelInfoContrastColor));\n addStyle('label-primary', '', getLabelStyles(themeVariables.labelPrimaryColor, themeVariables.labelPrimaryContrastColor));\n addStyle('label-success', '', getLabelStyles(themeVariables.labelSuccessColor, themeVariables.labelSuccessContrastColor));\n addStyle('label-warning', '', getLabelStyles(themeVariables.labelWarningColor, themeVariables.labelWarningContrastColor));\n addStyle('label-test', '', getLabelStyles('yellow', 'red'));\n addStyle('label-test1', '', getLabelStyles('blue', 'orange'));\n\n const getTextStyles = (color: string) => {\n return {\n text: {\n color: color\n }\n } as WmLabelStyles;\n };\n\n addStyle('text-danger', '', getTextStyles(themeVariables.labelTextDangerColor));\n addStyle('text-info', '', getTextStyles(themeVariables.labelTextInfoColor));\n addStyle('text-primary', '', getTextStyles(themeVariables.labelTextPrimaryColor));\n addStyle('text-success', '', getTextStyles(themeVariables.labelTextSuccessColor));\n addStyle('text-warning', '', getTextStyles(themeVariables.labelTextWarningColor));\n addStyle('text-center', '', {\n root: {\n textAlign: 'center'\n }\n } as WmLabelStyles);\n addStyle('text-left', '', {\n root: {\n textAlign: 'left'\n }\n } as WmLabelStyles);\n addStyle('text-right', '', {\n root: {\n textAlign: 'right'\n }\n } as WmLabelStyles);\n\n\n const getHeadingStyles = (fontSize: number, overrides?: WmLabelStyles) => {\n return deepCopy({\n text: {\n fontWeight: '400',\n fontSize: fontSize,\n margin: 4,\n color: themeVariables.labelHeaderColor\n }\n } as WmLabelStyles, overrides);\n };\n addStyle('h1', '', getHeadingStyles(themeVariables.heading1FontSize, {text: {fontWeight: 'bold'}} as WmLabelStyles));\n addStyle('h2', '', getHeadingStyles(themeVariables.heading2FontSize, {text: {fontWeight: '500'}} as WmLabelStyles));\n addStyle('h3', '', getHeadingStyles(themeVariables.heading3FontSize));\n addStyle('h4', '', getHeadingStyles(themeVariables.heading4FontSize));\n addStyle('h5', '', getHeadingStyles(themeVariables.heading5FontSize));\n addStyle('h6', '', getHeadingStyles(themeVariables.heading6FontSize));\n addStyle('media-heading', '', {\n text : {\n fontSize: 16\n }\n } as WmLabelStyles);\n addStyle('text-muted', '', {\n text : {\n color: themeVariables.labelTextMutedColor\n }\n } as WmLabelStyles);\n addStyle('p', '', {\n text : {\n fontSize: 12\n }\n } as WmLabelStyles);\n});\n"],"mappings":"AAAA,OAAOA,UAAU,MAAqB,wCAAwC;AAC9E,SAASC,QAAQ,QAAQ,sCAAsC;AAC/D,SAAqBC,YAAY,QAAQ,+CAA+C;AAQxF,OAAO,MAAMC,aAAa,GAAG,WAAW;AACxCH,UAAU,CAACI,aAAa,CAAC,CAACC,cAAc,EAAEC,QAAQ,KAAK;EACrD,MAAMC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