@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
@@ -3,12 +3,12 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
3
3
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
4
4
  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); }
5
5
  import React from 'react';
6
- import { Platform, TextInput } from 'react-native';
6
+ import { Platform } from 'react-native';
7
7
  import { isNull } from 'lodash';
8
8
  import WmNumberProps from './number.props';
9
9
  import { DEFAULT_CLASS } from './number.styles';
10
+ import { WMTextInput } from '@wavemaker/app-rn-runtime/core/components/textinput.component';
10
11
  import { BaseNumberComponent, BaseNumberState } from '@wavemaker/app-rn-runtime/components/input/basenumber/basenumber.component';
11
- import { createSkeleton } from '@wavemaker/app-rn-runtime/components/basic/skeleton/skeleton.component';
12
12
  export class WmNumberState extends BaseNumberState {
13
13
  constructor() {
14
14
  super(...arguments);
@@ -19,20 +19,12 @@ export default class WmNumber extends BaseNumberComponent {
19
19
  constructor(props) {
20
20
  super(props, DEFAULT_CLASS, new WmNumberProps(), new WmNumberState());
21
21
  }
22
- renderSkeleton(props) {
23
- var _this$styles$root, _this$styles$text, _this$styles$placehol;
24
- return createSkeleton(this.theme, this.styles.skeleton, {
25
- ...this.styles.root,
26
- width: this.styles.root.width,
27
- height: ((_this$styles$root = this.styles.root) === null || _this$styles$root === void 0 ? void 0 : _this$styles$root.height) || ((_this$styles$text = this.styles.text) === null || _this$styles$text === void 0 ? void 0 : _this$styles$text.fontSize) || ((_this$styles$placehol = this.styles.placeholderText) === null || _this$styles$placehol === void 0 ? void 0 : _this$styles$placehol.fontSize)
28
- });
29
- }
30
22
  renderWidget(props) {
31
23
  var _this$state$textValue;
32
24
  let opts = {};
33
25
  const valueExpr = Platform.OS === 'web' ? 'value' : 'defaultValue';
34
26
  opts[valueExpr] = ((_this$state$textValue = this.state.textValue) === null || _this$state$textValue === void 0 ? void 0 : _this$state$textValue.toString()) || '';
35
- return /*#__PURE__*/React.createElement(TextInput, _extends({
27
+ return /*#__PURE__*/React.createElement(WMTextInput, _extends({
36
28
  ref: ref => {
37
29
  this.widgetRef = ref;
38
30
  // @ts-ignore
@@ -47,12 +39,13 @@ export default class WmNumber extends BaseNumberComponent {
47
39
  placeholderTextColor: this.styles.placeholderText.color,
48
40
  autoFocus: props.autofocus,
49
41
  editable: props.disabled || props.readonly ? false : true,
50
- placeholder: props.placeholder || 'Enter number',
42
+ placeholder: props.placeholder,
51
43
  onBlur: this.onBlur.bind(this),
52
44
  onFocus: this.onFocus.bind(this),
53
45
  onKeyPress: this.validateInputEntry.bind(this),
54
46
  onChangeText: this.onChangeText.bind(this),
55
- onChange: this.invokeChange.bind(this)
47
+ onChange: this.invokeChange.bind(this),
48
+ allowContentSelection: this.styles.text.userSelect === 'text'
56
49
  }));
57
50
  }
58
51
  }
@@ -1 +1 @@
1
- {"version":3,"names":["React","Platform","TextInput","isNull","WmNumberProps","DEFAULT_CLASS","BaseNumberComponent","BaseNumberState","createSkeleton","WmNumberState","WmNumber","constructor","props","renderSkeleton","theme","styles","skeleton","root","width","height","text","fontSize","placeholderText","renderWidget","opts","valueExpr","OS","state","textValue","toString","ref","widgetRef","selectionStart","selectionEnd","cursor","isValid","invalid","color","autofocus","disabled","readonly","placeholder","onBlur","bind","onFocus","validateInputEntry","onChangeText","invokeChange"],"sources":["number.component.tsx"],"sourcesContent":["import React from 'react';\nimport { Platform, TextInput } from 'react-native';\nimport { isNull } from 'lodash';\n\nimport WmNumberProps from './number.props';\nimport { DEFAULT_CLASS, WmNumberStyles } from './number.styles';\nimport {\n BaseNumberComponent,\n BaseNumberState\n} from '@wavemaker/app-rn-runtime/components/input/basenumber/basenumber.component';\nimport { createSkeleton } from '@wavemaker/app-rn-runtime/components/basic/skeleton/skeleton.component';\n\nexport class WmNumberState extends BaseNumberState<WmNumberProps> {\n keyboardType: any;\n}\n\nexport default class WmNumber extends BaseNumberComponent<WmNumberProps, WmNumberState, WmNumberStyles> {\n\n constructor(props: WmNumberProps) {\n super(props, DEFAULT_CLASS, new WmNumberProps(), new WmNumberState());\n }\n\n public renderSkeleton(props: WmNumberProps) {\n return createSkeleton(this.theme, this.styles.skeleton, {\n ...this.styles.root,\n width: this.styles.root.width,\n height: this.styles.root?.height || this.styles.text?.fontSize || this.styles.placeholderText?.fontSize\n });\n }\n\n renderWidget(props: WmNumberProps) {\n let opts: any = {};\n const valueExpr = Platform.OS === 'web' ? 'value' : 'defaultValue';\n opts[valueExpr] = this.state.textValue?.toString() || '';\n return (<TextInput\n ref={ref => {this.widgetRef = ref;\n // @ts-ignore\n if (ref && !isNull(ref.selectionStart) && !isNull(ref.selectionEnd)) {\n // @ts-ignore\n ref.selectionStart = ref.selectionEnd = this.cursor;\n }}}\n {...opts}\n style={[this.styles.root, this.state.isValid ? {} : this.styles.invalid]}\n keyboardType=\"numeric\"\n placeholderTextColor={this.styles.placeholderText.color as any}\n autoFocus={props.autofocus}\n editable={props.disabled || props.readonly ? false : true}\n placeholder={props.placeholder || 'Enter number'}\n onBlur={this.onBlur.bind(this)}\n onFocus={this.onFocus.bind(this)}\n onKeyPress={this.validateInputEntry.bind(this)}\n onChangeText={this.onChang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React","Platform","isNull","WmNumberProps","DEFAULT_CLASS","WMTextInput","BaseNumberComponent","BaseNumberState","WmNumberState","constructor","arguments","_defineProperty","WmNumber","props","renderWidget","_this$state$textValue","opts","valueExpr","OS","state","textValue","toString","createElement","_extends","ref","widgetRef","selectionStart","selectionEnd","cursor","style","styles","root","isValid","invalid","keyboardType","placeholderTextColor","placeholderText","color","autoFocus","autofocus","editable","disabled","readonly","placeholder","onBlur","bind","onFocus","onKeyPress","validateInputEntry","onChangeText","onChange","invokeChange","allowContentSelection","text","userSelect"],"sources":["number.component.tsx"],"sourcesContent":["import React from 'react';\nimport { Platform } from 'react-native';\nimport { isNull } from 'lodash';\n\nimport WmNumberProps from './number.props';\nimport { DEFAULT_CLASS, WmNumberStyles } from './number.styles';\nimport { WMTextInput } from '@wavemaker/app-rn-runtime/core/components/textinput.component';\nimport {\n BaseNumberComponent,\n BaseNumberState\n} from '@wavemaker/app-rn-runtime/components/input/basenumber/basenumber.component';\n\nexport class WmNumberState extends BaseNumberState<WmNumberProps> {\n keyboardType: any;\n}\n\nexport default class WmNumber extends BaseNumberComponent<WmNumberProps, WmNumberState, WmNumberStyles> {\n\n constructor(props: WmNumberProps) {\n super(props, DEFAULT_CLASS, new WmNumberProps(), new WmNumberState());\n }\n\n renderWidget(props: WmNumberProps) {\n let opts: any = {};\n const valueExpr = Platform.OS === 'web' ? 'value' : 'defaultValue';\n opts[valueExpr] = this.state.textValue?.toString() || '';\n return (<WMTextInput\n ref={(ref: any) => {this.widgetRef = ref;\n // @ts-ignore\n if (ref && !isNull(ref.selectionStart) && !isNull(ref.selectionEnd)) {\n // @ts-ignore\n ref.selectionStart = ref.selectionEnd = this.cursor;\n }}}\n {...opts}\n style={[this.styles.root, this.state.isValid ? {} : this.styles.invalid]}\n keyboardType=\"numeric\"\n placeholderTextColor={this.styles.placeholderText.color as any}\n autoFocus={props.autofocus}\n editable={props.disabled || props.readonly ? false : true}\n placeholder={props.placeholder}\n onBlur={this.onBlur.bind(this)}\n onFocus={this.onFocus.bind(this)}\n onKeyPress={this.validateInputEntry.bind(this)}\n onChangeText={this.onChangeText.bind(this)}\n onChange={this.invokeChange.bind(this)}\n allowContentSelection={this.styles.text.userSelect === 'text'}\n />);\n }\n}\n"],"mappings":";;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,QAAQ,QAAQ,cAAc;AACvC,SAASC,MAAM,QAAQ,QAAQ;AAE/B,OAAOC,aAAa,MAAM,gBAAgB;AAC1C,SAASC,aAAa,QAAwB,iBAAiB;AAC/D,SAASC,WAAW,QAAQ,+DAA+D;AAC3F,SACEC,mBAAmB,EACnBC,eAAe,QACV,4EAA4E;AAEnF,OAAO,MAAMC,aAAa,SAASD,eAAe,CAAgB;EAAAE,YAAA;IAAA,SAAAC,SAAA;IAAAC,eAAA;EAAA;AAElE;AAEA,eAAe,MAAMC,QAAQ,SAASN,mBAAmB,CAA+C;EAEtGG,WAAWA,CAACI,KAAoB,EAAE;IAChC,KAAK,CAACA,KAAK,EAAET,aAAa,EAAE,IAAID,aAAa,CAAC,CAAC,EAAE,IAAIK,aAAa,CAAC,CAAC,CAAC;EACvE;EAEAM,YAAYA,CAACD,KAAoB,EAAE;IAAA,IAAAE,qBAAA;IACjC,IAAIC,IAAS,GAAG,CAAC,CAAC;IAClB,MAAMC,SAAS,GAAGhB,QAAQ,CAACiB,EAAE,KAAK,KAAK,GAAG,OAAO,GAAG,cAAc;IAClEF,IAAI,CAACC,SAAS,CAAC,GAAG,EAAAF,qBAAA,OAAI,CAACI,KAAK,CAACC,SAAS,cAAAL,qBAAA,uBAApBA,qBAAA,CAAsBM,QAAQ,CAAC,CAAC,KAAI,EAAE;IACxD,oBAAQrB,KAAA,CAAAsB,aAAA,CAACjB,WAAW,EAAAkB,QAAA;MAClBC,GAAG,EAAGA,GAAQ,IAAK;QAAC,IAAI,CAACC,SAAS,GAAGD,GAAG;QACtC;QACA,IAAIA,GAAG,IAAI,CAACtB,MAAM,CAACsB,GAAG,CAACE,cAAc,CAAC,IAAI,CAACxB,MAAM,CAACsB,GAAG,CAACG,YAAY,CAAC,EAAE;UACnE;UACAH,GAAG,CAACE,cAAc,GAAGF,GAAG,CAACG,YAAY,GAAG,IAAI,CAACC,MAAM;QACrD;MAAC;IAAE,GACDZ,IAAI;MACRa,KAAK,EAAE,CAAC,IAAI,CAACC,MAAM,CAACC,IAAI,EAAE,IAAI,CAACZ,KAAK,CAACa,OAAO,GAAG,CAAC,CAAC,GAAG,IAAI,CAACF,MAAM,CAACG,OAAO,CAAE;MACzEC,YAAY,EAAC,SAAS;MACtBC,oBAAoB,EAAE,IAAI,CAACL,MAAM,CAACM,eAAe,CAACC,KAAa;MAC/DC,SAAS,EAAEzB,KAAK,CAAC0B,SAAU;MAC3BC,QAAQ,EAAE3B,KAAK,CAAC4B,QAAQ,IAAI5B,KAAK,CAAC6B,QAAQ,GAAG,KAAK,GAAG,IAAK;MAC1DC,WAAW,EAAE9B,KAAK,CAAC8B,WAAY;MAC/BC,MAAM,EAAE,IAAI,CAACA,MAAM,CAACC,IAAI,CAAC,IAAI,CAAE;MAC/BC,OAAO,EAAE,IAAI,CAACA,OAAO,CAACD,IAAI,CAAC,IAAI,CAAE;MACjCE,UAAU,EAAE,IAAI,CAACC,kBAAkB,CAACH,IAAI,CAAC,IAAI,CAAE;MAC/CI,YAAY,EAAE,IAAI,CAACA,YAAY,CAACJ,IAAI,CAAC,IAAI,CAAE;MAC3CK,QAAQ,EAAE,IAAI,CAACC,YAAY,CAACN,IAAI,CAAC,IAAI,CAAE;MACvCO,qBAAqB,EAAE,IAAI,CAACtB,MAAM,CAACuB,IAAI,CAACC,UAAU,KAAK;IAAO,EAC/D,CAAC;EACJ;AACF"}
@@ -6,7 +6,7 @@ export default class WmNumberProps extends BaseNumberProps {
6
6
  constructor() {
7
7
  super(...arguments);
8
8
  _defineProperty(this, "autofocus", null);
9
- _defineProperty(this, "placeholder", 'Enter number');
9
+ _defineProperty(this, "placeholder", '');
10
10
  }
11
11
  }
12
12
  //# sourceMappingURL=number.props.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["BaseNumberProps","WmNumberProps"],"sources":["number.props.ts"],"sourcesContent":["import BaseNumberProps from '@wavemaker/app-rn-runtime/components/input/basenumber/basenumber.props';\n\nexport default class WmNumberProps extends BaseNumberProps {\n autofocus: boolean = null as any;\n placeholder: string = 'Enter number';\n}\n"],"mappings":";;;AAAA,OAAOA,eAAe,MAAM,wEAAwE;AAEpG,eAAe,MAAMC,aAAa,SAASD,eAAe,CAAC;EAAA;IAAA;IAAA,mCACpC,IAAI;IAAA,qCACH,cAAc;EAAA;AACtC"}
1
+ {"version":3,"names":["BaseNumberProps","WmNumberProps","constructor","arguments","_defineProperty"],"sources":["number.props.ts"],"sourcesContent":["import BaseNumberProps from '@wavemaker/app-rn-runtime/components/input/basenumber/basenumber.props';\n\nexport default class WmNumberProps extends BaseNumberProps {\n autofocus: boolean = null as any;\n placeholder: string = '';\n}\n"],"mappings":";;;AAAA,OAAOA,eAAe,MAAM,wEAAwE;AAEpG,eAAe,MAAMC,aAAa,SAASD,eAAe,CAAC;EAAAE,YAAA;IAAA,SAAAC,SAAA;IAAAC,eAAA,oBACpC,IAAI;IAAAA,eAAA,sBACH,EAAE;EAAA;AAC1B"}
@@ -29,5 +29,10 @@ BASE_THEME.registerStyle((themeVariables, addStyle) => {
29
29
  backgroundColor: themeVariables.inputDisabledBgColor
30
30
  }
31
31
  });
32
+ addStyle(DEFAULT_CLASS + '-rtl', '', {
33
+ root: {
34
+ textAlign: 'right'
35
+ }
36
+ });
32
37
  });
33
38
  //# sourceMappingURL=number.styles.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["BASE_THEME","defineStyles","DEFAULT_CLASS","registerStyle","themeVariables","addStyle","defaultStyles","root","padding","borderWidth","borderStyle","borderColor","inputBorderColor","backgroundColor","inputBackgroundColor","borderRadius","text","fontSize","textAlign","invalid","borderBottomColor","inputInvalidBorderColor","placeholderText","color","inputPlaceholderColor","skeleton","inputDisabledBgColor"],"sources":["number.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 '../../basic/skeleton/skeleton.styles';\n\nexport type WmNumberStyles = BaseStyles & {\n invalid: AllStyle;\n placeholderText: AllStyle;\n skeleton: WmSkeletonStyles;\n};\n\nexport const DEFAULT_CLASS = 'app-number';\nBASE_THEME.registerStyle((themeVariables, addStyle) => {\n const defaultStyles: WmNumberStyles = defineStyles<WmNumberStyles>({\n root: {\n padding: 12,\n borderWidth: 1,\n borderStyle: 'solid',\n borderColor: themeVariables.inputBorderColor,\n backgroundColor: themeVariables.inputBackgroundColor,\n borderRadius: 6\n },\n text: {\n fontSize: 16,\n textAlign: 'left'\n },\n invalid: {\n borderBottomColor: themeVariables.inputInvalidBorderColor\n },\n placeholderText: {\n color: themeVariables.inputPlaceholderColor\n },\n skeleton: {} as WmSkeletonStyles\n });\n\n addStyle(DEFAULT_CLASS, '', defaultStyles);\n addStyle(DEFAULT_CLASS + '-disabled', '', {\n root : {\n backgroundColor: themeVariables.inputDisabledBgColor\n }\n });\n});\n\n"],"mappings":"AAAA,OAAOA,UAAU,MAAoB,wCAAwC;AAC7E,SAAqBC,YAAY,QAAQ,+CAA+C;AASxF,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;MACJC,OAAO,EAAE,EAAE;MACXC,WAAW,EAAE,CAAC;MACdC,WAAW,EAAE,OAAO;MACpBC,WAAW,EAAEP,cAAc,CAACQ,gBAAgB;MAC5CC,eAAe,EAAET,cAAc,CAACU,oBAAoB;MACpDC,YAAY,EAAE;IAChB,CAAC;IACDC,IAAI,EAAE;MACJC,QAAQ,EAAE,EAAE;MACZC,SAAS,EAAE;IACb,CAAC;IACDC,OAAO,EAAE;MACPC,iBAAiB,EAAEhB,cAAc,CAACiB;IACpC,CAAC;IACDC,eAAe,EAAE;MACfC,KAAK,EAAEnB,cAAc,CAACoB;IACxB,CAAC;IACDC,QAAQ,EAAE,CAAC;EACf,CAAC,CAAC;EAEFpB,QAAQ,CAACH,aAAa,EAAE,EAAE,EAAEI,aAAa,CAAC;EAC1CD,QAAQ,CAACH,aAAa,GAAG,WAAW,EAAE,EAAE,EAAE;IACtCK,IAAI,EAAG;MACLM,eAAe,EAAET,cAAc,CAACsB;IAClC;EACJ,CAAC,CAAC;AACJ,CAAC,CAAC"}
1
+ {"version":3,"names":["BASE_THEME","defineStyles","DEFAULT_CLASS","registerStyle","themeVariables","addStyle","defaultStyles","root","padding","borderWidth","borderStyle","borderColor","inputBorderColor","backgroundColor","inputBackgroundColor","borderRadius","text","fontSize","textAlign","invalid","borderBottomColor","inputInvalidBorderColor","placeholderText","color","inputPlaceholderColor","skeleton","inputDisabledBgColor"],"sources":["number.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 '../../basic/skeleton/skeleton.styles';\n\nexport type WmNumberStyles = BaseStyles & {\n invalid: AllStyle;\n placeholderText: AllStyle;\n skeleton: WmSkeletonStyles;\n};\n\nexport const DEFAULT_CLASS = 'app-number';\nBASE_THEME.registerStyle((themeVariables, addStyle) => {\n const defaultStyles: WmNumberStyles = defineStyles<WmNumberStyles>({\n root: {\n padding: 12,\n borderWidth: 1,\n borderStyle: 'solid',\n borderColor: themeVariables.inputBorderColor,\n backgroundColor: themeVariables.inputBackgroundColor,\n borderRadius: 6\n },\n text: {\n fontSize: 16,\n textAlign: 'left'\n },\n invalid: {\n borderBottomColor: themeVariables.inputInvalidBorderColor\n },\n placeholderText: {\n color: themeVariables.inputPlaceholderColor\n },\n skeleton: {} as WmSkeletonStyles\n });\n\n addStyle(DEFAULT_CLASS, '', defaultStyles);\n addStyle(DEFAULT_CLASS + '-disabled', '', {\n root : {\n backgroundColor: themeVariables.inputDisabledBgColor\n }\n });\n addStyle(DEFAULT_CLASS + '-rtl', '', {\n root : {\n textAlign: 'right'\n }\n });\n});\n\n"],"mappings":"AAAA,OAAOA,UAAU,MAAoB,wCAAwC;AAC7E,SAAqBC,YAAY,QAAQ,+CAA+C;AASxF,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;MACJC,OAAO,EAAE,EAAE;MACXC,WAAW,EAAE,CAAC;MACdC,WAAW,EAAE,OAAO;MACpBC,WAAW,EAAEP,cAAc,CAACQ,gBAAgB;MAC5CC,eAAe,EAAET,cAAc,CAACU,oBAAoB;MACpDC,YAAY,EAAE;IAChB,CAAC;IACDC,IAAI,EAAE;MACJC,QAAQ,EAAE,EAAE;MACZC,SAAS,EAAE;IACb,CAAC;IACDC,OAAO,EAAE;MACPC,iBAAiB,EAAEhB,cAAc,CAACiB;IACpC,CAAC;IACDC,eAAe,EAAE;MACfC,KAAK,EAAEnB,cAAc,CAACoB;IACxB,CAAC;IACDC,QAAQ,EAAE,CAAC;EACf,CAAC,CAAC;EAEFpB,QAAQ,CAACH,aAAa,EAAE,EAAE,EAAEI,aAAa,CAAC;EAC1CD,QAAQ,CAACH,aAAa,GAAG,WAAW,EAAE,EAAE,EAAE;IACtCK,IAAI,EAAG;MACLM,eAAe,EAAET,cAAc,CAACsB;IAClC;EACJ,CAAC,CAAC;EACFrB,QAAQ,CAACH,aAAa,GAAG,MAAM,EAAE,EAAE,EAAE;IACjCK,IAAI,EAAG;MACLW,SAAS,EAAE;IACb;EACJ,CAAC,CAAC;AACJ,CAAC,CAAC"}
@@ -4,7 +4,6 @@ import { RadioButton } from 'react-native-paper';
4
4
  import WmRadiosetProps from './radioset.props';
5
5
  import { DEFAULT_CLASS } from './radioset.styles';
6
6
  import { BaseDatasetComponent, BaseDatasetState } from '@wavemaker/app-rn-runtime/components/input/basedataset/basedataset.component';
7
- import { createSkeleton } from '../../basic/skeleton/skeleton.component';
8
7
  export class WmRadiosetState extends BaseDatasetState {}
9
8
  export default class WmRadioset extends BaseDatasetComponent {
10
9
  constructor(props) {
@@ -38,45 +37,6 @@ export default class WmRadioset extends BaseDatasetComponent {
38
37
  }, groupObj.key), this.renderRadioButtons(groupObj.data));
39
38
  }) : null);
40
39
  }
41
- renderSkeletonGroupby() {
42
- const groupedData = this.state.groupedData;
43
- return /*#__PURE__*/React.createElement(View, null, groupedData && groupedData.length ? groupedData.map((groupObj, index) => {
44
- return /*#__PURE__*/React.createElement(View, {
45
- key: groupObj.key
46
- }, /*#__PURE__*/React.createElement(Text, {
47
- style: this.styles.groupHeaderTitle
48
- }, groupObj.key), this.renderSkeletonRadioButton(groupObj.data));
49
- }) : null);
50
- }
51
- renderSkeletonRadioButton(items) {
52
- const props = this.state.props;
53
- return /*#__PURE__*/React.createElement(RadioButton.Group, {
54
- onValueChange: this.onPress.bind(this),
55
- value: this.state.props.datafield === 'All Fields' ? this.getItemKey(props.datavalue) : props.datavalue
56
- }, items && items.length ? items.map((item, index) => this.renderChild(item, index)) : null);
57
- }
58
- renderSkeletonChild(item, index) {
59
- const displayText = item.displayexp || item.displayfield;
60
- return /*#__PURE__*/React.createElement(View, {
61
- style: this.styles.radioHead,
62
- key: item.key
63
- }, /*#__PURE__*/React.createElement(RadioButton.Android, {
64
- value: this.state.props.datafield === 'All Fields' ? this.getItemKey(item.datafield) : item.datafield,
65
- color: this.styles.root.color,
66
- uncheckedColor: this.styles.root.color,
67
- disabled: this.state.props.readonly || this.state.props.disabled
68
- }), createSkeleton(this.theme, this.styles.skeleton, {
69
- ...this.styles.root,
70
- width: this.styles.root.width,
71
- height: this.styles.root.height
72
- }));
73
- }
74
- renderSkeleton(props) {
75
- const items = this.state.dataItems;
76
- return /*#__PURE__*/React.createElement(View, {
77
- style: this.styles.root
78
- }, this.props.groupby && this.renderGroupby(), !this.props.groupby && this.renderSkeletonRadioButton(items));
79
- }
80
40
  renderRadioButtons(items) {
81
41
  const props = this.state.props;
82
42
  return /*#__PURE__*/React.createElement(RadioButton.Group, {
@@ -1 +1 @@
1
- {"version":3,"names":["React","View","Text","RadioButton","WmRadiosetProps","DEFAULT_CLASS","BaseDatasetComponent","BaseDatasetState","createSkeleton","WmRadiosetState","WmRadioset","constructor","props","onPress","value","invokeEventCallback","proxy","onValueChange","renderChild","item","index","displayText","displayexp","displayfield","styles","radioHead","key","state","datafield","getItemKey","root","color","readonly","disabled","radioLabel","renderGroupby","groupedData","length","map","groupObj","groupHeaderTitle","renderRadioButtons","data","renderSkeletonGroupby","renderSkeletonRadioButton","items","bind","datavalue","renderSkeletonChild","theme","skeleton","width","height","renderSkeleton","dataItems","groupby","renderWidget"],"sources":["radioset.component.tsx"],"sourcesContent":["import React from 'react';\nimport { View, Text } from 'react-native';\nimport { RadioButton } from 'react-native-paper';\n\nimport WmRadiosetProps from './radioset.props';\nimport { DEFAULT_CLASS, WmRadiosetStyles } from './radioset.styles';\nimport {\n BaseDatasetComponent,\n BaseDatasetState\n} from '@wavemaker/app-rn-runtime/components/input/basedataset/basedataset.component';\nimport WmSkeleton, { createSkeleton } from '../../basic/skeleton/skeleton.component';\n\nexport class WmRadiosetState extends BaseDatasetState<WmRadiosetProps> {\n}\n\nexport default class WmRadioset extends BaseDatasetComponent<WmRadiosetProps, WmRadiosetState, WmRadiosetStyles> {\n\n constructor(props: WmRadiosetProps) {\n super(props, DEFAULT_CLASS, new WmRadiosetProps());\n }\n\n onPress(value: any) {\n this.invokeEventCallback('onTap', [null, this.proxy]);\n this.onValueChange(value);\n }\n\n renderChild(item: any, index: any) {\n const displayText = item.displayexp || item.displayfield;\n return (\n <View style={this.styles.radioHead} key={item.key}>\n <RadioButton.Android\n value={this.state.props.datafield === 'All Fields' ? this.getItemKey(item.datafield) : item.datafield}\n color={this.styles.root.color as string}\n uncheckedColor={this.styles.root.color as string}\n disabled={this.state.props.readonly || this.state.props.disabled}\n />\n <Text style={this.styles.radioLabel}>{displayText}</Text>\n </View>)\n }\n\n renderGroupby() {\n const groupedData = this.state.groupedData;\n return (\n <View>\n {groupedData && groupedData.length\n ? groupedData.map((groupObj: any, index: any) => {\n return(\n <View key={groupObj.key}>\n <Text style={this.styles.groupHeaderTitle}>{groupObj.key}</Text>\n {this.renderRadioButtons(groupObj.data)}\n </View>)\n })\n : null}\n </View>\n );\n }\n\n\n public renderSkeletonGroupby(){\n const groupedData = this.state.groupedData;\n return (\n <View>\n {groupedData && groupedData.length\n ? groupedData.map((groupObj: any, index: any) => {\n return(\n <View key={groupObj.key}>\n <Text style={this.styles.groupHeaderTitle}>{groupObj.key}</Text>\n {this.renderSkeletonRadioButton(groupObj.data)}\n </View>)\n })\n : null}\n </View>\n );\n }\n\n public renderSkeletonRadioButton(items: any){\n const props = this.state.props;\n return(<RadioButton.Group onValueChange={this.onPress.bind(this)} value={this.state.props.datafield === 'All Fields'? this.getItemKey(props.datavalue) : props.datavalue}>\n {items && items.length ?\n items.map((item: any, index: any) => this.renderChild(item, index)): null}\n </RadioButton.Group>)\n }\n\n public renderSkeletonChild(item: any, index: any){\n const displayText = item.displayexp || item.displayfield;\n return (\n <View style={this.styles.radioHead} key={item.key}>\n <RadioButton.Android\n value={this.state.props.datafield === 'All Fields' ? this.getItemKey(item.datafield) : item.datafield}\n color={this.styles.root.color as string}\n uncheckedColor={this.styles.root.color as string}\n disabled={this.state.props.readonly || this.state.props.disabled}\n />\n {\n createSkeleton(this.theme, this.styles.skeleton, {\n ...this.styles.root,\n width: this.styles.root.width,\n height: this.styles.root.height\n })\n }\n </View>)\n }\n\n public renderSkeleton(props: WmRadiosetProps) {\n const items = this.state.dataItems;\n return (\n <View style={this.styles.root}>\n {this.props.groupby && this.renderGroupby()}\n {!this.props.groupby && this.renderSkeletonRadioButton(items)}\n </View>\n );\n }\n\n renderRadioButtons(items: any) {\n const props = this.state.props;\n return(<RadioButton.Group onValueChange={this.onPress.bind(this)} value={this.state.props.datafield === 'All Fields'? this.getItemKey(props.datavalue) : props.datavalue}>\n {items && items.length ?\n items.map((item: any, index: any) => this.renderChild(item, index)): null}\n </RadioButton.Group>)\n }\n\n renderWidget(props: WmRadiosetProps) {\n const items = this.state.dataItems;\n return (\n <View style={this.styles.root}>\n {props.groupby && this.renderGroupby()}\n {!props.groupby && this.renderRadioButtons(items)}\n </View>\n );\n }\n}\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AACzC,SAASC,WAAW,QAAQ,oBAAoB;AAEhD,OAAOC,eAAe,MAAM,kBAAkB;AAC9C,SAASC,aAAa,QAA0B,mBAAmB;AACnE,SACEC,oBAAoB,EACpBC,gBAAgB,QACX,8EAA8E;AACrF,SAAqBC,cAAc,QAAQ,yCAAyC;AAEpF,OAAO,MAAMC,eAAe,SAASF,gBAAgB,CAAkB;AAGvE,eAAe,MAAMG,UAAU,SAASJ,oBAAoB,CAAqD;EAE/GK,WAAW,CAACC,KAAsB,EAAE;IAClC,KAAK,CAACA,KAAK,EAAEP,aAAa,EAAE,IAAID,eAAe,EAAE,CAAC;EACpD;EAEAS,OAAO,CAACC,KAAU,EAAE;IAClB,IAAI,CAACC,mBAAmB,CAAC,OAAO,EAAE,CAAC,IAAI,EAAE,IAAI,CAACC,KAAK,CAAC,CAAC;IACrD,IAAI,CAACC,aAAa,CAACH,KAAK,CAAC;EAC3B;EAEAI,WAAW,CAACC,IAAS,EAAEC,KAAU,EAAE;IACjC,MAAMC,WAAW,GAAGF,IAAI,CAACG,UAAU,IAAIH,IAAI,CAACI,YAAY;IACxD,oBACE,oBAAC,IAAI;MAAC,KAAK,EAAE,IAAI,CAACC,MAAM,CAACC,SAAU;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nC,KAAK,CAACmC;IAAU,GACtKF,KAAK,IAAIA,KAAK,CAACR,MAAM,GACpBQ,KAAK,CAACP,GAAG,CAAC,CAACnB,IAAS,EAAEC,KAAU,KAAK,IAAI,CAACF,WAAW,CAACC,IAAI,EAAEC,KAAK,CAAC,CAAC,GAAE,IAAI,CACzD;EACtB;EAEAoC,YAAY,CAAC5C,KAAsB,EAAE;IACnC,MAAMiC,KAAK,GAAG,IAAI,CAAClB,KAAK,CAAC2B,SAAS;IAClC,oBACI,oBAAC,IAAI;MAAC,KAAK,EAAE,IAAI,CAAC9B,MAAM,CAACM;IAAK,GAC3BlB,KAAK,CAAC2C,OAAO,IAAI,IAAI,CAACpB,aAAa,EAAE,EACrC,CAACvB,KAAK,CAAC2C,OAAO,IAAI,IAAI,CAACd,kBAAkB,CAACI,KAAK,CAAC,CAC5C;EAEb;AACF"}
1
+ {"version":3,"names":["React","View","Text","RadioButton","WmRadiosetProps","DEFAULT_CLASS","BaseDatasetComponent","BaseDatasetState","WmRadiosetState","WmRadioset","constructor","props","onPress","value","invokeEventCallback","proxy","onValueChange","renderChild","item","index","displayText","displayexp","displayfield","createElement","style","styles","radioHead","key","Android","state","datafield","getItemKey","color","root","uncheckedColor","disabled","readonly","radioLabel","renderGroupby","groupedData","length","map","groupObj","groupHeaderTitle","renderRadioButtons","data","items","Group","bind","datavalue","renderWidget","dataItems","groupby"],"sources":["radioset.component.tsx"],"sourcesContent":["import React from 'react';\nimport { View, Text } from 'react-native';\nimport { RadioButton } from 'react-native-paper';\n\nimport WmRadiosetProps from './radioset.props';\nimport { DEFAULT_CLASS, WmRadiosetStyles } from './radioset.styles';\nimport {\n BaseDatasetComponent,\n BaseDatasetState\n} from '@wavemaker/app-rn-runtime/components/input/basedataset/basedataset.component';\nimport WmSkeleton, { createSkeleton } from '../../basic/skeleton/skeleton.component';\n\nexport class WmRadiosetState extends BaseDatasetState<WmRadiosetProps> {\n}\n\nexport default class WmRadioset extends BaseDatasetComponent<WmRadiosetProps, WmRadiosetState, WmRadiosetStyles> {\n\n constructor(props: WmRadiosetProps) {\n super(props, DEFAULT_CLASS, new WmRadiosetProps());\n }\n\n onPress(value: any) {\n this.invokeEventCallback('onTap', [null, this.proxy]);\n this.onValueChange(value);\n }\n\n renderChild(item: any, index: any) {\n const displayText = item.displayexp || item.displayfield;\n return (\n <View style={this.styles.radioHead} key={item.key}>\n <RadioButton.Android\n value={this.state.props.datafield === 'All Fields' ? this.getItemKey(item.datafield) : item.datafield}\n color={this.styles.root.color as string}\n uncheckedColor={this.styles.root.color as string}\n disabled={this.state.props.readonly || this.state.props.disabled}\n />\n <Text style={this.styles.radioLabel}>{displayText}</Text>\n </View>)\n }\n\n renderGroupby() {\n const groupedData = this.state.groupedData;\n return (\n <View>\n {groupedData && groupedData.length\n ? groupedData.map((groupObj: any, index: any) => {\n return(\n <View key={groupObj.key}>\n <Text style={this.styles.groupHeaderTitle}>{groupObj.key}</Text>\n {this.renderRadioButtons(groupObj.data)}\n </View>)\n })\n : null}\n </View>\n );\n }\n\n renderRadioButtons(items: any) {\n const props = this.state.props;\n return(<RadioButton.Group onValueChange={this.onPress.bind(this)} value={this.state.props.datafield === 'All Fields'? this.getItemKey(props.datavalue) : props.datavalue}>\n {items && items.length ?\n items.map((item: any, index: any) => this.renderChild(item, index)): null}\n </RadioButton.Group>)\n }\n\n renderWidget(props: WmRadiosetProps) {\n const items = this.state.dataItems;\n return (\n <View style={this.styles.root}>\n {props.groupby && this.renderGroupby()}\n {!props.groupby && this.renderRadioButtons(items)}\n </View>\n );\n }\n}\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AACzC,SAASC,WAAW,QAAQ,oBAAoB;AAEhD,OAAOC,eAAe,MAAM,kBAAkB;AAC9C,SAASC,aAAa,QAA0B,mBAAmB;AACnE,SACEC,oBAAoB,EACpBC,gBAAgB,QACX,8EAA8E;AAGrF,OAAO,MAAMC,eAAe,SA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IAAI;MAACuB,KAAK,EAAE,IAAI,CAACC,MAAM,CAACQ;IAAK,GAC3BtB,KAAK,CAACyC,OAAO,IAAI,IAAI,CAACd,aAAa,CAAC,CAAC,EACrC,CAAC3B,KAAK,CAACyC,OAAO,IAAI,IAAI,CAACR,kBAAkB,CAACE,KAAK,CAC5C,CAAC;EAEb;AACF"}
@@ -1 +1 @@
1
- {"version":3,"names":["BaseDatasetProps","WmRadiosetProps"],"sources":["radioset.props.ts"],"sourcesContent":["import BaseDatasetProps from '@wavemaker/app-rn-runtime/components/input/basedataset/basedataset.props';\n\nexport default class WmRadiosetProps extends BaseDatasetProps {\n dataset: any = 'Option 1, Option 2, Option 3';\n}\n"],"mappings":";;;AAAA,OAAOA,gBAAgB,MAAM,0EAA0E;AAEvG,eAAe,MAAMC,eAAe,SAASD,gBAAgB,CAAC;EAAA;IAAA;IAAA,iCAC7C,8BAA8B;EAAA;AAC/C"}
1
+ {"version":3,"names":["BaseDatasetProps","WmRadiosetProps","constructor","arguments","_defineProperty"],"sources":["radioset.props.ts"],"sourcesContent":["import BaseDatasetProps from '@wavemaker/app-rn-runtime/components/input/basedataset/basedataset.props';\n\nexport default class WmRadiosetProps extends BaseDatasetProps {\n dataset: any = 'Option 1, Option 2, Option 3';\n}\n"],"mappings":";;;AAAA,OAAOA,gBAAgB,MAAM,0EAA0E;AAEvG,eAAe,MAAMC,eAAe,SAASD,gBAAgB,CAAC;EAAAE,YAAA;IAAA,SAAAC,SAAA;IAAAC,eAAA,kBAC7C,8BAA8B;EAAA;AAC/C"}
@@ -98,7 +98,7 @@ export default class WmRating extends BaseComponent {
98
98
  const props = this.state.props;
99
99
  const oldValue = props.datavalue;
100
100
  if (!props.readonly) {
101
- let value = this.state.items[i] ? this.state.items[i][props.datafield ?? ''] : i;
101
+ let value = this.state.items[i] ? this.state.items[i][props.datafield || ''] : i;
102
102
  this.updateState({
103
103
  props: {
104
104
  datavalue: value
@@ -118,7 +118,7 @@ export default class WmRating extends BaseComponent {
118
118
  }
119
119
  return /*#__PURE__*/React.createElement(View, {
120
120
  style: this.styles.root
121
- }, arr.map((v, i) => this.state.selectedIndex > -1 && i <= this.state.selectedIndex ? /*#__PURE__*/React.createElement(WmIcon, {
121
+ }, this._background, arr.map((v, i) => this.state.selectedIndex > -1 && i <= this.state.selectedIndex ? /*#__PURE__*/React.createElement(WmIcon, {
122
122
  key: i,
123
123
  iconclass: "wi wi-star",
124
124
  iconsize: props.iconsize,
@@ -1 +1 @@
1
- {"version":3,"names":["React","View","Text","BaseComponent","BaseComponentState","WmIcon","WmRatingProps","DEFAULT_CLASS","cloneDeep","isArray","isNumber","isString","WmRatingState","WmRating","constructor","props","caption","state","prepareItems","items","dataset","maxvalue","Array","from","keys","map","v","split","Object","i","key","value","selectedIndex","datavalue","undefined","findIndex","item","k","datafield","showcaptions","selectedItem","getDisplayExpression","displayfield","updateState","onPropertyChange","name","$new","$old","isDefault","onFieldChange","bind","disabled","changeValue","oldValue","readonly","invokeEventCallback","proxy","renderWidget","maxValue","arr","selectedIconStyles","styles","selectedIcon","iconcolor","text","color","root","iconsize","icon"],"sources":["rating.component.tsx"],"sourcesContent":["import React from 'react';\nimport { View, Text } from 'react-native';\nimport { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';\nimport WmIcon from '@wavemaker/app-rn-runtime/components/basic/icon/icon.component';\n\nimport WmRatingProps from './rating.props';\nimport { DEFAULT_CLASS, WmRatingStyles } from './rating.styles';\nimport { cloneDeep, isArray, isEmpty, isNumber, isString } from 'lodash-es';\n\nexport class WmRatingState extends BaseComponentState<WmRatingProps> {\n items: any[] = null as any;\n caption: any = null as any;\n selectedIndex = -1;\n isDefault = false;\n}\n\nexport default class WmRating extends BaseComponent<WmRatingProps, WmRatingState, WmRatingStyles> {\n\n constructor(props: WmRatingProps) {\n super(props, DEFAULT_CLASS, new WmRatingProps());\n }\n\n get caption() {\n return this.state.caption;\n }\n\n prepareItems(props: WmRatingProps) {\n let items: any[] = [];\n if (!props.dataset && props.maxvalue) {\n items = Array.from(Array(+props.maxvalue).keys());\n items = items.map(v => v + 1);\n } else if (isString(props.dataset)) {\n items = props.dataset.split(',');\n } else {\n items = props.dataset as any[] || [];\n }\n if (isArray(items) && items[0] !== Object(items[0])) {\n items = items.map((v, i) => ({\n key: i + 1,\n value: v\n }));\n }\n let selectedIndex = -1;\n if (props.datavalue !== undefined && props.datavalue !== null) {\n selectedIndex = items.findIndex((item: any, k) => item[props.datafield as string] == props.datavalue);\n if (selectedIndex === -1 && isNumber(props.datavalue)) {\n selectedIndex = props.datavalue;\n }\n }\n let caption: any = '';\n if (selectedIndex > -1 && props.showcaptions) {\n const selectedItem = items[selectedIndex];\n if (selectedItem) {\n if (props.getDisplayExpression) {\n caption = props.getDisplayExpression(selectedItem);\n } else {\n caption = selectedItem[props.displayfield as string];\n }\n } else {\n caption = selectedIndex + 1;\n }\n }\n this.updateState({\n items: items,\n selectedIndex: selectedIndex,\n caption: caption\n } as WmRatingState);\n }\n\n onPropertyChange(name: string, $new: any, $old: any) {\n switch(name) {\n case 'dataset' :\n case 'datafield' :\n case 'displayfield' :\n case 'maxvalue':\n case 'datavalue' :\n this.prepareItems(this.state.props);\n if (name === 'datavalue') {\n const isDefault = this.state.isDefault;\n if (isDefault) {\n this.updateState({ isDefault: false } as WmRatingState, this.props.onFieldChange && this.props.onFieldChange.bind(this, 'datavalue', $new, $old, isDefault));\n } else {\n this.props.onFieldChange && this.props.onFieldChange('datavalue', $new, $old, isDefault);\n }\n }\n break;\n case 'readonly' :\n this.updateState({\n props: {\n disabled: $new\n }\n } as WmRatingState);\n break;\n }\n }\n\n changeValue(i: number) {\n const props = this.state.props;\n const oldValue = props.datavalue;\n if (!props.readonly) {\n let value = this.state.items[i] ? this.state.items[i][props.datafield??'']: i;\n this.updateState({\n props: {\n datavalue: value\n }\n } as WmRatingState, () => {\n !this.props.onFieldChange && value !== oldValue && this.invokeEventCallback('onChange', [undefined, this.proxy, value, oldValue]);\n });\n }\n }\n\n renderWidget(props: WmRatingProps) {\n const maxValue = props.maxvalue ? +props.maxvalue : 5;\n const arr = Array.from(Array(maxValue).keys());\n\n let selectedIconStyles = this.styles.selectedIcon;\n if (props.iconcolor) {\n selectedIconStyles = cloneDeep(this.styles.selectedIcon);\n selectedIconStyles.text.color = props.iconcolor;\n }\n return (\n <View style={this.styles.root}>\n {arr.map((v, i) => (\n (this.state.selectedIndex > -1 && i <= this.state.selectedIndex) ? <WmIcon\n key={i}\n iconclass=\"wi wi-star\"\n iconsize={props.iconsize}\n styles={selectedIconStyles}\n onTap={() => { this.changeValue(i)}}\n ></WmIcon> : null\n ))}\n {arr.map((v, i) => (\n (this.state.selectedIndex === -1 || i > this.state.selectedIndex) ? <WmIcon\n key={i}\n iconclass=\"wi wi-star-border\"\n iconsize={props.iconsize}\n styles={this.styles.icon}\n onTap={() => { this.changeValue(i)}}\n ></WmIcon> : null\n ))}\n { !!props.showcaptions ? (<Text style={this.styles.text}>{this.state.caption}</Text>) : null }\n </View>);\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,OAAOC,MAAM,MAAM,gEAAgE;AAEnF,OAAOC,aAAa,MAAM,gBAAgB;AAC1C,SAASC,aAAa,QAAwB,iBAAiB;AAC/D,SAASC,SAAS,EAAEC,OAAO,EAAWC,QAAQ,EAAEC,QAAQ,QAAQ,WAAW;AAE3E,OAAO,MAAMC,aAAa,SAASR,kBAAkB,CAAgB;EAAA;IAAA;IAAA,+BACpD,IAAI;IAAA,iCACJ,IAAI;IAAA,uCACH,CAAC,CAAC;IAAA,mCACN,KAAK;EAAA;AACnB;AAEA,eAAe,MAAMS,QAAQ,SAASV,aAAa,CAA+C;EAEhGW,WAAW,CAACC,KAAoB,EAAE;IAChC,KAAK,CAACA,KAAK,EAAER,aAAa,EAAE,IAAID,aA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AAI;MAAC,KAAK,EAAE,IAAI,CAACsB,MAAM,CAACG;IAAK,GAAE,IAAI,CAAC/C,KAAK,CAACD,OAAO,CAAQ,GAAI,IAAI,CACvF;EACT;AACF"}
1
+ {"version":3,"names":["React","View","Text","BaseComponent","BaseComponentState","WmIcon","WmRatingProps","DEFAULT_CLASS","cloneDeep","isArray","isNumber","isString","WmRatingState","constructor","arguments","_defineProperty","WmRating","props","caption","state","prepareItems","items","dataset","maxvalue","Array","from","keys","map","v","split","Object","i","key","value","selectedIndex","datavalue","undefined","findIndex","item","k","datafield","showcaptions","selectedItem","getDisplayExpression","displayfield","updateState","onPropertyChange","name","$new","$old","isDefault","onFieldChange","bind","disabled","changeValue","oldValue","readonly","invokeEventCallback","proxy","renderWidget","maxValue","arr","selectedIconStyles","styles","selectedIcon","iconcolor","text","color","createElement","style","root","_background","iconclass","iconsize","onTap","icon"],"sources":["rating.component.tsx"],"sourcesContent":["import React from 'react';\nimport { View, Text } from 'react-native';\nimport { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';\nimport WmIcon from '@wavemaker/app-rn-runtime/components/basic/icon/icon.component';\n\nimport WmRatingProps from './rating.props';\nimport { DEFAULT_CLASS, WmRatingStyles } from './rating.styles';\nimport { cloneDeep, isArray, isEmpty, isNumber, isString } from 'lodash-es';\n\nexport class WmRatingState extends BaseComponentState<WmRatingProps> {\n items: any[] = null as any;\n caption: any = null as any;\n selectedIndex = -1;\n isDefault = false;\n}\n\nexport default class WmRating extends BaseComponent<WmRatingProps, WmRatingState, WmRatingStyles> {\n\n constructor(props: WmRatingProps) {\n super(props, DEFAULT_CLASS, new WmRatingProps());\n }\n\n get caption() {\n return this.state.caption;\n }\n\n prepareItems(props: WmRatingProps) {\n let items: any[] = [];\n if (!props.dataset && props.maxvalue) {\n items = Array.from(Array(+props.maxvalue).keys());\n items = items.map(v => v + 1);\n } else if (isString(props.dataset)) {\n items = props.dataset.split(',');\n } else {\n items = props.dataset as any[] || [];\n }\n if (isArray(items) && items[0] !== Object(items[0])) {\n items = items.map((v, i) => ({\n key: i + 1,\n value: v\n }));\n }\n let selectedIndex = -1;\n if (props.datavalue !== undefined && props.datavalue !== null) {\n selectedIndex = items.findIndex((item: any, k) => item[props.datafield as string] == props.datavalue);\n if (selectedIndex === -1 && isNumber(props.datavalue)) {\n selectedIndex = props.datavalue;\n }\n }\n let caption: any = '';\n if (selectedIndex > -1 && props.showcaptions) {\n const selectedItem = items[selectedIndex];\n if (selectedItem) {\n if (props.getDisplayExpression) {\n caption = props.getDisplayExpression(selectedItem);\n } else {\n caption = selectedItem[props.displayfield as string];\n }\n } else {\n caption = selectedIndex + 1;\n }\n }\n this.updateState({\n items: items,\n selectedIndex: selectedIndex,\n caption: caption\n } as WmRatingState);\n }\n\n onPropertyChange(name: string, $new: any, $old: any) {\n switch(name) {\n case 'dataset' :\n case 'datafield' :\n case 'displayfield' :\n case 'maxvalue':\n case 'datavalue' :\n this.prepareItems(this.state.props);\n if (name === 'datavalue') {\n const isDefault = this.state.isDefault;\n if (isDefault) {\n this.updateState({ isDefault: false } as WmRatingState, this.props.onFieldChange && this.props.onFieldChange.bind(this, 'datavalue', $new, $old, isDefault));\n } else {\n this.props.onFieldChange && this.props.onFieldChange('datavalue', $new, $old, isDefault);\n }\n }\n break;\n case 'readonly' :\n this.updateState({\n props: {\n disabled: $new\n }\n } as WmRatingState);\n break;\n }\n }\n\n changeValue(i: number) {\n const props = this.state.props;\n const oldValue = props.datavalue;\n if (!props.readonly) {\n let value = this.state.items[i] ? this.state.items[i][props.datafield || '']: i;\n this.updateState({\n props: {\n datavalue: value\n }\n } as WmRatingState, () => {\n !this.props.onFieldChange && value !== oldValue && this.invokeEventCallback('onChange', [undefined, this.proxy, value, oldValue]);\n });\n }\n }\n\n renderWidget(props: WmRatingProps) {\n const maxValue = props.maxvalue ? +props.maxvalue : 5;\n const arr = Array.from(Array(maxValue).keys());\n\n let selectedIconStyles = this.styles.selectedIcon;\n if (props.iconcolor) {\n selectedIconStyles = cloneDeep(this.styles.selectedIcon);\n selectedIconStyles.text.color = props.iconcolor;\n }\n return (\n <View style={this.styles.root}>\n {this._background}\n {arr.map((v, i) => (\n (this.state.selectedIndex > -1 && i <= this.state.selectedIndex) ? <WmIcon\n key={i}\n iconclass=\"wi wi-star\"\n iconsize={props.iconsize}\n styles={selectedIconStyles}\n onTap={() => { this.changeValue(i)}}\n ></WmIcon> : null\n ))}\n {arr.map((v, i) => (\n (this.state.selectedIndex === -1 || i > this.state.selectedIndex) ? <WmIcon\n key={i}\n iconclass=\"wi wi-star-border\"\n iconsize={props.iconsize}\n styles={this.styles.icon}\n onTap={() => { this.changeValue(i)}}\n ></WmIcon> : null\n ))}\n { !!props.showcaptions ? (<Text style={this.styles.text}>{this.state.caption}</Text>) : null }\n </View>);\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,OAAOC,MAAM,MAAM,gEAAgE;AAEnF,OAAOC,aAAa,MAAM,gBAAgB;AAC1C,SAASC,aAAa,QAAwB,iBAAiB;AAC/D,SAASC,SAAS,EAAEC,OAAO,EAAWC,QAAQ,EAAEC,QAAQ,QAAQ,WAAW;AAE3E,OAAO,MAAMC,aAAa,SAASR,kBAAkB,CAAgB;EAAAS,YAAA;IAAA,SAAAC,SAAA;IAAAC,eAAA,gBACpD,IAAI;IAAAA,eAAA,kBACJ,IAAI;IAAAA,eAAA,wBACH,CAAC,CAAC;IAAAA,eAAA,oBACN,KAAK;EAAA;AACnB;AAEA,eAAe,MAAMC,QAAQ,SAASb,aAAa,CAA+C;EAEhGU,WAAWA,CAACI,KAAoB,EAAE;IAChC,KAAK,CAACA,KAAK,EAAEV,aAAa,EAAE,IAAID,aAAa,CAAC,CAAC,CAAC;EAClD;EAEA,IAAIY,OAAOA,CAAA,EAAG;IACZ,OAAO,I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MAAA;IAAE,CAC7B,CAAC,GAAG,IACd,CAAC,EACA,CAAC,CAACd,KAAK,CAACwB,YAAY,gBAAIzC,KAAA,CAAAoE,aAAA,CAAClE,IAAI;MAACmE,KAAK,EAAE,IAAI,CAACN,MAAM,CAACG;IAAK,GAAE,IAAI,CAAC/C,KAAK,CAACD,OAAc,CAAC,GAAI,IACpF,CAAC;EACT;AACF"}
@@ -1 +1 @@
1
- {"version":3,"names":["BaseProps","WmRatingProps"],"sources":["rating.props.ts"],"sourcesContent":["import { BaseProps } from '@wavemaker/app-rn-runtime/core/base.component';\n\nexport default class WmRatingProps extends BaseProps {\n dataset?: any[] = null as any;\n datafield?: string = 'key';\n displayfield?: string = 'value';\n getDisplayExpression: Function = null as any;\n datavalue?: number = null as any;\n maxvalue: number = 5;\n readonly? = false;\n iconcolor?: string = null as any;\n iconsize?: number = null as any;\n showcaptions? = true;\n onFieldChange: any;\n}\n"],"mappings":";;;AAAA,SAASA,SAAS,QAAQ,+CAA+C;AAEzE,eAAe,MAAMC,aAAa,SAASD,SAAS,CAAC;EAAA;IAAA;IAAA,iCAC/B,IAAI;IAAA,mCACD,KAAK;IAAA,sCACF,OAAO;IAAA,8CACE,IAAI;IAAA,mCAChB,IAAI;IAAA,kCACN,CAAC;IAAA,kCACR,KAAK;IAAA,mCACI,IAAI;IAAA,kCACL,IAAI;IAAA,sCACR,IAAI;IAAA;EAAA;AAExB"}
1
+ {"version":3,"names":["BaseProps","WmRatingProps","constructor","arguments","_defineProperty"],"sources":["rating.props.ts"],"sourcesContent":["import { BaseProps } from '@wavemaker/app-rn-runtime/core/base.component';\n\nexport default class WmRatingProps extends BaseProps {\n dataset?: any[] = null as any;\n datafield?: string = 'key';\n displayfield?: string = 'value';\n getDisplayExpression: Function = null as any;\n datavalue?: number = null as any;\n maxvalue: number = 5;\n readonly? = false;\n iconcolor?: string = null as any;\n iconsize?: number = null as any;\n showcaptions? = true;\n onFieldChange: any;\n}\n"],"mappings":";;;AAAA,SAASA,SAAS,QAAQ,+CAA+C;AAEzE,eAAe,MAAMC,aAAa,SAASD,SAAS,CAAC;EAAAE,YAAA;IAAA,SAAAC,SAAA;IAAAC,eAAA,kBAC/B,IAAI;IAAAA,eAAA,oBACD,KAAK;IAAAA,eAAA,uBACF,OAAO;IAAAA,eAAA,+BACE,IAAI;IAAAA,eAAA,oBAChB,IAAI;IAAAA,eAAA,mBACN,CAAC;IAAAA,eAAA,mBACR,KAAK;IAAAA,eAAA,oBACI,IAAI;IAAAA,eAAA,mBACL,IAAI;IAAAA,eAAA,uBACR,IAAI;IAAAA,eAAA;EAAA;AAExB"}
@@ -80,7 +80,7 @@ export default class WmSelect extends BaseDatasetComponent {
80
80
  }
81
81
  focus() {
82
82
  var _this$widgetRef;
83
- this === null || this === void 0 ? void 0 : (_this$widgetRef = this.widgetRef) === null || _this$widgetRef === void 0 ? void 0 : _this$widgetRef.focus();
83
+ this === null || this === void 0 || (_this$widgetRef = this.widgetRef) === null || _this$widgetRef === void 0 ? void 0 : _this$widgetRef.focus();
84
84
  }
85
85
  renderSelect() {
86
86
  const props = this.state.props;
@@ -1 +1 @@
1
- {"version":3,"names":["React","ScrollView","Text","View","find","isEmpty","WmSelectProps","DEFAULT_CLASS","BaseDatasetComponent","BaseDatasetState","ModalConsumer","WmButton","Tappable","ThemeVariables","WmSelectState","WmSelect","constructor","props","updateState","isOpened","onPress","event","state","disabled","showPopover","invokeEventCallback","proxy","onPropertyChange","name","$new","$old","isNaN","displayValue","placeholder","prepareModalOptions","content","styles","modalService","o","modalOptions","modalStyle","modal","contentStyle","modalContent","isModal","centered","onClose","hide","isDefaultValue","validate","triggerValidation","setState","hideModal","focus","widgetRef","renderSelect","root","isValid","invalid","backgroundColor","disabledText","ref","view","text","color","placeholderText","bind","arrowButton","onItemSelect","item","isPlaceholder","onChange","datafield","dataObject","renderSelectItem","isLast","selectItem","lastSelectItem","selectItemText","displayexp","displayfield","updateDefaultQueryModel","dataItems","length","selectedItem","selected","componentDidMount","onDataItemsUpdate","renderWidget","items","showModal","width","maxHeight","INSTANCE","maxModalHeight","dropDownContent","map","index","key"],"sources":["select.component.tsx"],"sourcesContent":["import React from 'react';\nimport { ScrollView, Text, View } from 'react-native';\nimport { find, isEmpty } from 'lodash';\n\nimport WmSelectProps from './select.props';\nimport { DEFAULT_CLASS, WmSelectStyles } from './select.styles';\nimport {\n BaseDatasetComponent,\n BaseDatasetState\n} from '@wavemaker/app-rn-runtime/components/input/basedataset/basedataset.component';\nimport { ModalConsumer, ModalOptions, ModalService } from '@wavemaker/app-rn-runtime/core/modal.service';\nimport WmButton from '@wavemaker/app-rn-runtime/components/basic/button/button.component';\nimport { Tappable } from '@wavemaker/app-rn-runtime/core/tappable.component';\nimport ThemeVariables from '@wavemaker/app-rn-runtime/styles/theme.variables';\n\nexport class WmSelectState extends BaseDatasetState<WmSelectProps> {\n modalOptions = {} as ModalOptions;\n isOpened: boolean = false;\n selectedValue: any = '';\n}\n\nexport default class WmSelect extends BaseDatasetComponent<WmSelectProps, WmSelectState, WmSelectStyles> {\n constructor(props: WmSelectProps) {\n super(props, DEFAULT_CLASS, new WmSelectProps(), new WmSelectState());\n }\n view: View = null as any;\n public widgetRef: Text | null = null;\n private isDefaultValue: boolean = true;\n\n onPress(event: any) {\n if (this.state.props.disabled) {\n return;\n }\n if (!this.state.isOpened) {\n this.showPopover();\n }\n this.invokeEventCallback('onFocus', [event, this.proxy]);\n }\n\n onPropertyChange(name: string, $new: any, $old: any): void {\n super.onPropertyChange(name, $new, $old);\n switch(name) {\n case 'datavalue':\n if (isNaN($new) && isEmpty($new)) {\n this.updateState({\n props: {\n displayValue: this.state.props.placeholder || ''\n }\n } as WmSelectState);\n }\n }\n }\n\n prepareModalOptions(content: React.ReactNode, styles: WmSelectStyles, modalService: ModalService) {\n const o = this.state.modalOptions;\n o.modalStyle = styles.modal;\n o.contentStyle = {...styles.modalContent};\n o.content = content;\n o.isModal = true;\n o.centered = true;\n o.onClose = () => {\n this.hide = () => {};\n if (this.isDefaultValue && this.state.props.displayValue === '') {\n this.validate(this.state.props.displayValue);\n this.props.triggerValidation && this.props.triggerValidation();\n }\n this.invokeEventCallback('onBlur', [{}, this.proxy]);\n this.setState({ isOpened: false, modalOptions: {} as ModalOptions } as WmSelectState);\n };\n this.hide = () => modalService.hideModal(this.state.modalOptions);\n return o;\n }\n\n public showPopover = () => {\n this.updateState({ isOpened: true } as WmSelectState);\n };\n\n public hide = () => {};\n\n focus() {\n this?.widgetRef?.focus();\n }\n\n renderSelect() {\n const props = this.state.props;\n return (\n /*\n * onLayout function is required.\n * https://github.com/naoufal/react-native-accordion/pull/19/files\n */\n <View\n style={[this.styles.root, this.state.isValid ? {} : this.styles.invalid, { backgroundColor: props.disabled ? this.styles.disabledText.backgroundColor : this.styles.root.backgroundColor}]}\n ref={(ref) => {\n this.view = ref as View;\n }}\n onLayout={() => {}}>\n <Text\n style={[this.styles.text,\n this.state.props.displayValue ? {} : {color: this.styles.placeholderText.color}]}\n ref={(ref) => {\n this.widgetRef = ref;\n }}\n onPress={this.onPress.bind(this)}>\n {this.state.props.displayValue || props.placeholder || ' '}\n </Text>\n <WmButton\n styles={this.styles.arrowButton}\n iconclass={'wi wi-keyboard-arrow-down'}\n onTap={this.onPress.bind(this)}\n />\n </View>\n );\n }\n\n onItemSelect(item: any, isPlaceholder?: boolean) {\n this.isDefaultValue = false;\n this.onChange(isPlaceholder ? '' : this.state.props.datafield === 'All Fields' ? item.dataObject : item.datafield);\n this.hide();\n }\n\n renderSelectItem(item: any, isPlaceholder: boolean, isLast: boolean) {\n return (\n <Tappable onTap={this.onItemSelect.bind(this, item, isPlaceholder)}>\n <View style={[this.styles.selectItem, isLast ? this.styles.lastSelectItem : null ]}>\n <Text style={[this.styles.selectItemText, {color: isPlaceholder ? this.styles.placeholderText.color : this.styles.selectItemText.color}]}>\n {isPlaceholder ? this.state.props.placeholder : (item.displayexp || item.displayfield)}\n </Text>\n </View>\n </Tappable>\n );\n }\n\n updateDefaultQueryModel() {\n if (this.state.dataItems && this.state.dataItems.length && this.isDefaultValue) {\n const selectedItem = find(this.state.dataItems, (item) => item.selected);\n selectedItem && this.updateState({\n props: {\n displayValue: selectedItem.displayexp || selectedItem.displayfield || ''\n }\n } as WmSelectState);\n }\n }\n\n componentDidMount() {\n super.componentDidMount();\n this.updateDefaultQueryModel();\n }\n\n onDataItemsUpdate() {\n super.onDataItemsUpdate();\n this.updateDefaultQueryModel();\n }\n\n renderWidget(props: WmSelectProps) {\n return (\n <View>\n {this.renderSelect()}\n {this.state.isOpened ? (\n <ModalConsumer>\n {(modalService: ModalService) => {\n const items = this.state.dataItems;\n modalService.showModal(\n this.prepareModalOptions(\n <ScrollView style={{width: '100%', maxHeight: ThemeVariables.INSTANCE.maxModalHeight}} contentContainerStyle={this.styles.dropDownContent}>\n {props.placeholder ?\n <View key={props.name + '_placeholder'} style={this.styles.placeholderText}>\n {this.renderSelectItem({}, true, false)}\n </View>\n : null}\n {items && items.map((item: any, index: number) => (\n <View key={item.key}>\n {this.renderSelectItem(item, false, index === items.length - 1)}\n </View>\n ))}\n </ScrollView>,\n this.styles,\n modalService\n )\n );\n return null;\n }}\n </ModalConsumer>\n ) : null}\n </View>\n );\n }\n}\n"],"mappings":";;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,EAAEC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AACrD,SAASC,IAAI,EAAEC,OAAO,QAAQ,QAAQ;AAEtC,OAAOC,aAAa,MAAM,gBAAgB;AAC1C,SAASC,aAAa,QAAwB,iBAAiB;AAC/D,SACEC,oBAAoB,EACpBC,gBAAgB,QACX,8EAA8E;AACrF,SAASC,aAAa,QAAoC,8CAA8C;AACxG,OAAOC,QAAQ,MAAM,oEAAoE;AACzF,SAASC,QAAQ,QAAQ,mDAAmD;AAC5E,OAAOC,cAAc,MAAM,kDAAkD;AAE7E,OAAO,MAAMC,aAAa,SAASL,gBAAgB,CAAgB;EAAA;IAAA;IAAA,sCAClD,CAA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IACb,CAAC,CACa,GACd,IAAI,CACH;EAEX;AACF"}
1
+ {"version":3,"names":["React","ScrollView","Text","View","find","isEmpty","WmSelectProps","DEFAULT_CLASS","BaseDatasetComponent","BaseDatasetState","ModalConsumer","WmButton","Tappable","ThemeVariables","WmSelectState","constructor","arguments","_defineProperty","WmSelect","props","updateState","isOpened","onPress","event","state","disabled","showPopover","invokeEventCallback","proxy","onPropertyChange","name","$new","$old","isNaN","displayValue","placeholder","prepareModalOptions","content","styles","modalService","o","modalOptions","modalStyle","modal","contentStyle","modalContent","isModal","centered","onClose","hide","isDefaultValue","validate","triggerValidation","setState","hideModal","focus","_this$widgetRef","widgetRef","renderSelect","createElement","style","root","isValid","invalid","backgroundColor","disabledText","ref","view","onLayout","text","color","placeholderText","bind","arrowButton","iconclass","onTap","onItemSelect","item","isPlaceholder","onChange","datafield","dataObject","renderSelectItem","isLast","selectItem","lastSelectItem","selectItemText","displayexp","displayfield","updateDefaultQueryModel","dataItems","length","selectedItem","selected","componentDidMount","onDataItemsUpdate","renderWidget","items","showModal","width","maxHeight","INSTANCE","maxModalHeight","contentContainerStyle","dropDownContent","key","map","index"],"sources":["select.component.tsx"],"sourcesContent":["import React from 'react';\nimport { ScrollView, Text, View } from 'react-native';\nimport { find, isEmpty } from 'lodash';\n\nimport WmSelectProps from './select.props';\nimport { DEFAULT_CLASS, WmSelectStyles } from './select.styles';\nimport {\n BaseDatasetComponent,\n BaseDatasetState\n} from '@wavemaker/app-rn-runtime/components/input/basedataset/basedataset.component';\nimport { ModalConsumer, ModalOptions, ModalService } from '@wavemaker/app-rn-runtime/core/modal.service';\nimport WmButton from '@wavemaker/app-rn-runtime/components/basic/button/button.component';\nimport { Tappable } from '@wavemaker/app-rn-runtime/core/tappable.component';\nimport ThemeVariables from '@wavemaker/app-rn-runtime/styles/theme.variables';\n\nexport class WmSelectState extends BaseDatasetState<WmSelectProps> {\n modalOptions = {} as ModalOptions;\n isOpened: boolean = false;\n selectedValue: any = '';\n}\n\nexport default class WmSelect extends BaseDatasetComponent<WmSelectProps, WmSelectState, WmSelectStyles> {\n constructor(props: WmSelectProps) {\n super(props, DEFAULT_CLASS, new WmSelectProps(), new WmSelectState());\n }\n view: View = null as any;\n public widgetRef: Text | null = null;\n private isDefaultValue: boolean = true;\n\n onPress(event: any) {\n if (this.state.props.disabled) {\n return;\n }\n if (!this.state.isOpened) {\n this.showPopover();\n }\n this.invokeEventCallback('onFocus', [event, this.proxy]);\n }\n\n onPropertyChange(name: string, $new: any, $old: any): void {\n super.onPropertyChange(name, $new, $old);\n switch(name) {\n case 'datavalue':\n if (isNaN($new) && isEmpty($new)) {\n this.updateState({\n props: {\n displayValue: this.state.props.placeholder || ''\n }\n } as WmSelectState);\n }\n }\n }\n\n prepareModalOptions(content: React.ReactNode, styles: WmSelectStyles, modalService: ModalService) {\n const o = this.state.modalOptions;\n o.modalStyle = styles.modal;\n o.contentStyle = {...styles.modalContent};\n o.content = content;\n o.isModal = true;\n o.centered = true;\n o.onClose = () => {\n this.hide = () => {};\n if (this.isDefaultValue && this.state.props.displayValue === '') {\n this.validate(this.state.props.displayValue);\n this.props.triggerValidation && this.props.triggerValidation();\n }\n this.invokeEventCallback('onBlur', [{}, this.proxy]);\n this.setState({ isOpened: false, modalOptions: {} as ModalOptions } as WmSelectState);\n };\n this.hide = () => modalService.hideModal(this.state.modalOptions);\n return o;\n }\n\n public showPopover = () => {\n this.updateState({ isOpened: true } as WmSelectState);\n };\n\n public hide = () => {};\n\n focus() {\n this?.widgetRef?.focus();\n }\n\n renderSelect() {\n const props = this.state.props;\n return (\n /*\n * onLayout function is required.\n * https://github.com/naoufal/react-native-accordion/pull/19/files\n */\n <View\n style={[this.styles.root, this.state.isValid ? {} : this.styles.invalid, { backgroundColor: props.disabled ? this.styles.disabledText.backgroundColor : this.styles.root.backgroundColor}]}\n ref={(ref) => {\n this.view = ref as View;\n }}\n onLayout={() => {}}>\n <Text\n style={[this.styles.text,\n this.state.props.displayValue ? {} : {color: this.styles.placeholderText.color}]}\n ref={(ref) => {\n this.widgetRef = ref;\n }}\n onPress={this.onPress.bind(this)}>\n {this.state.props.displayValue || props.placeholder || ' '}\n </Text>\n <WmButton\n styles={this.styles.arrowButton}\n iconclass={'wi wi-keyboard-arrow-down'}\n onTap={this.onPress.bind(this)}\n />\n </View>\n );\n }\n\n onItemSelect(item: any, isPlaceholder?: boolean) {\n this.isDefaultValue = false;\n this.onChange(isPlaceholder ? '' : this.state.props.datafield === 'All Fields' ? item.dataObject : item.datafield);\n this.hide();\n }\n\n renderSelectItem(item: any, isPlaceholder: boolean, isLast: boolean) {\n return (\n <Tappable onTap={this.onItemSelect.bind(this, item, isPlaceholder)}>\n <View style={[this.styles.selectItem, isLast ? this.styles.lastSelectItem : null ]}>\n <Text style={[this.styles.selectItemText, {color: isPlaceholder ? this.styles.placeholderText.color : this.styles.selectItemText.color}]}>\n {isPlaceholder ? this.state.props.placeholder : (item.displayexp || item.displayfield)}\n </Text>\n </View>\n </Tappable>\n );\n }\n\n updateDefaultQueryModel() {\n if (this.state.dataItems && this.state.dataItems.length && this.isDefaultValue) {\n const selectedItem = find(this.state.dataItems, (item) => item.selected);\n selectedItem && this.updateState({\n props: {\n displayValue: selectedItem.displayexp || selectedItem.displayfield || ''\n }\n } as WmSelectState);\n }\n }\n\n componentDidMount() {\n super.componentDidMount();\n this.updateDefaultQueryModel();\n }\n\n onDataItemsUpdate() {\n super.onDataItemsUpdate();\n this.updateDefaultQueryModel();\n }\n\n renderWidget(props: WmSelectProps) {\n return (\n <View>\n {this.renderSelect()}\n {this.state.isOpened ? (\n <ModalConsumer>\n {(modalService: ModalService) => {\n const items = this.state.dataItems;\n modalService.showModal(\n this.prepareModalOptions(\n <ScrollView style={{width: '100%', maxHeight: ThemeVariables.INSTANCE.maxModalHeight}} contentContainerStyle={this.styles.dropDownContent}>\n {props.placeholder ?\n <View key={props.name + '_placeholder'} style={this.styles.placeholderText}>\n {this.renderSelectItem({}, true, false)}\n </View>\n : null}\n {items && items.map((item: any, index: number) => (\n <View key={item.key}>\n {this.renderSelectItem(item, false, index === items.length - 1)}\n </View>\n ))}\n </ScrollView>,\n this.styles,\n modalService\n )\n );\n return null;\n }}\n </ModalConsumer>\n ) : null}\n </View>\n );\n }\n}\n"],"mappings":";;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,EAAEC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AACrD,SAASC,IAAI,EAAEC,OAAO,QAAQ,QAAQ;AAEtC,OAAOC,aAAa,MAAM,gBAAgB;AAC1C,SAASC,aAAa,QAAwB,iBAAiB;AAC/D,SACEC,oBAAoB,EACpBC,gBAAgB,QACX,8EAA8E;AACrF,SAASC,aAAa,QAAoC,8CAA8C;AACxG,OAAOC,QAAQ,MAAM,oEAAoE;AACzF,SAASC,QAAQ,QAAQ,mDAAmD;AAC5E,OAAOC,cAAc,MAAM,kDAAkD;AAE7E,OAAO,MAAMC,aAAa,SAASL,gBAAgB,CAAgB;EAAAM,YAAA;IAAA,SAAAC,SAAA;IAAAC,eAAA,uBAClD,CAAC,CAAC;IAAAA,eAAA,mBACG,KAAK;IAAAA,eAAA,wBACJ,EAAE;EAAA;AACzB;AAEA,eAAe,MAAMC,QAAQ,SAASV,oBAAoB,CAA+C;EACvGO,WAAWA,CAACI,KAAoB,EAAE;IAChC,KAAK,CAACA,KAAK,EAAEZ,aAAa,EAAE,IAAID,aAAa,CAAC,CAAC,EAAE,IAAIQ,aAAa,CAAC,CAAC,CAAC;IAACG,eAAA,eAE3D,IAAI;IAAAA,eAAA,oBACe,IAAI;IAAAA,eAAA,yBACF,IAAI;IAAAA,eAAA,sBA8CjB,MAAM;MACvB,IAAI,CAACG,WAAW,CAAC;QAAEC,QAAQ,EAAE;MAAK,CAAkB,CAAC;IACzD,CAAC;IAAAJ,eAAA,eAEa,MAAM,CAAC,CAAC;EArDtB;EAKAK,OAAOA,CAACC,KAAU,EAAE;IAClB,IAAI,IAAI,CAACC,KAAK,CAACL,K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version":3,"names":["BaseDatasetProps","WmSelectProps"],"sources":["select.props.ts"],"sourcesContent":["import BaseDatasetProps from '@wavemaker/app-rn-runtime/components/input/basedataset/basedataset.props';\n\nexport default class WmSelectProps extends BaseDatasetProps {\n placeholder: string = null as any;\n displayValue = null as any;\n}\n"],"mappings":";;;AAAA,OAAOA,gBAAgB,MAAM,0EAA0E;AAEvG,eAAe,MAAMC,aAAa,SAASD,gBAAgB,CAAC;EAAA;IAAA;IAAA,qCACpC,IAAI;IAAA,sCACX,IAAI;EAAA;AACrB"}
1
+ {"version":3,"names":["BaseDatasetProps","WmSelectProps","constructor","arguments","_defineProperty"],"sources":["select.props.ts"],"sourcesContent":["import BaseDatasetProps from '@wavemaker/app-rn-runtime/components/input/basedataset/basedataset.props';\n\nexport default class WmSelectProps extends BaseDatasetProps {\n placeholder: string = null as any;\n displayValue = null as any;\n}\n"],"mappings":";;;AAAA,OAAOA,gBAAgB,MAAM,0EAA0E;AAEvG,eAAe,MAAMC,aAAa,SAASD,gBAAgB,CAAC;EAAAE,YAAA;IAAA,SAAAC,SAAA;IAAAC,eAAA,sBACpC,IAAI;IAAAA,eAAA,uBACX,IAAI;EAAA;AACrB"}
@@ -1,5 +1,6 @@
1
1
  import BASE_THEME from '@wavemaker/app-rn-runtime/styles/theme';
2
2
  import { defineStyles } from '@wavemaker/app-rn-runtime/core/base.component';
3
+ import { Platform } from 'react-native';
3
4
  export const DEFAULT_CLASS = 'app-select';
4
5
  BASE_THEME.registerStyle((themeVariables, addStyle) => {
5
6
  const defaultStyles = defineStyles({
@@ -76,5 +77,14 @@ BASE_THEME.registerStyle((themeVariables, addStyle) => {
76
77
  backgroundColor: themeVariables.inputDisabledBgColor
77
78
  }
78
79
  });
80
+ addStyle(DEFAULT_CLASS + '-rtl', '', Platform.OS == "web" ? {
81
+ text: {
82
+ textAlign: 'right'
83
+ }
84
+ } : {
85
+ text: {
86
+ textAlign: 'left'
87
+ }
88
+ });
79
89
  });
80
90
  //# sourceMappingURL=select.styles.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["BASE_THEME","defineStyles","DEFAULT_CLASS","registerStyle","themeVariables","addStyle","defaultStyles","root","flexDirection","padding","borderWidth","borderStyle","borderColor","inputBorderColor","backgroundColor","inputBackgroundColor","borderRadius","minWidth","invalid","borderBottomColor","inputInvalidBorderColor","text","fontSize","fontFamily","baseFont","flex","color","inputTextColor","disabledText","inputDisabledBgColor","modal","height","modalContent","selectDropdownBackgroundColor","position","selectBorderColor","width","selectItem","paddingHorizontal","paddingVertical","borderBottomWidth","borderBottomStyle","selecttemBorderColor","alignItems","lastSelectItem","selectItemText","selectItemTextColor","placeholderText","inputPlaceholderColor","dropDownContent","arrowButton","alignSelf","justifyContent"],"sources":["select.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 { WmButtonStyles } from '@wavemaker/app-rn-runtime/components/basic/button/button.styles';\n\nexport type WmSelectStyles = BaseStyles & {\n arrowButton: WmButtonStyles;\n modal: AllStyle;\n modalContent: AllStyle;\n selectItem: AllStyle;\n lastSelectItem: AllStyle,\n selectItemText: AllStyle;\n dropDownContent: AllStyle;\n disabledText: AllStyle;\n placeholderText: AllStyle;\n invalid: AllStyle;\n};\n\nexport const DEFAULT_CLASS = 'app-select';\nBASE_THEME.registerStyle((themeVariables, addStyle) => {\n const defaultStyles: WmSelectStyles = defineStyles({\n root: {\n flexDirection: 'row',\n padding: 12,\n borderWidth: 1,\n borderStyle: 'solid',\n borderColor: themeVariables.inputBorderColor,\n backgroundColor: themeVariables.inputBackgroundColor,\n borderRadius: 6,\n minWidth: 160\n },\n invalid: {\n borderBottomColor: themeVariables.inputInvalidBorderColor\n },\n text: {\n fontSize: 16,\n fontFamily: themeVariables.baseFont,\n flex: 1,\n color: themeVariables.inputTextColor\n },\n disabledText: {\n backgroundColor : themeVariables.inputDisabledBgColor\n },\n modal: {\n backgroundColor: 'rgba(0, 0, 0, 0.3)',\n height: '100%'\n },\n modalContent: {\n backgroundColor: themeVariables.selectDropdownBackgroundColor,\n borderRadius: 6,\n position: 'absolute',\n borderWidth: 1,\n borderStyle: 'solid',\n borderColor: themeVariables.selectBorderColor,\n width: '90%'\n },\n selectItem: {\n width: '100%',\n paddingHorizontal: 16,\n paddingVertical: 8,\n borderBottomWidth: 1,\n borderBottomStyle: 'solid',\n borderBottomColor: themeVariables.selecttemBorderColor,\n flexDirection: 'row',\n alignItems: 'center'\n },\n lastSelectItem: {\n borderBottomWidth: 0\n },\n selectItemText: {\n fontSize: 16,\n fontFamily: themeVariables.baseFont,\n color: themeVariables.selectItemTextColor\n },\n placeholderText: {\n color: themeVariables.inputPlaceholderColor\n },\n dropDownContent: {},\n arrowButton: {\n root: {\n padding: 0,\n alignItems: 'center',\n alignSelf: 'center',\n justifyContent: 'center',\n backgroundColor: 'transparent'\n }\n } as WmButtonStyles,\n });\n\n addStyle(DEFAULT_CLASS, '', defaultStyles);\n addStyle(DEFAULT_CLASS + '-disabled', '', {\n root : {\n backgroundColor: themeVariables.inputDisabledBgColor\n }\n });\n});\n"],"mappings":"AAAA,OAAOA,UAAU,MAAkB,wCAAwC;AAC3E,SAAqBC,YAAY,QAAQ,+CAA+C;AAgBxF,OAAO,MAAMC,aAAa,GAAG,YAAY;AACzCF,UAAU,CAACG,aAAa,CAAC,CAACC,cAAc,EAAEC,QAAQ,KAAK;EACrD,MAAMC,aAA6B,GAAGL,YAAY,CAAC;IACjDM,IAAI,EAAE;MACJC,aAAa,EAAE,KAAK;MACpBC,OAAO,EAAE,EAAE;MACXC,WAAW,EAAE,CAAC;MACdC,WAAW,EAAE,OAAO;MACpBC,WAAW,EAAER,cAAc,CAACS,gBAAgB;MAC5CC,eAAe,EAAEV,cAAc,CAACW,oBAAoB;MACpDC,YAAY,EAAE,CAAC;MACfC,QAAQ,EAAE;IACZ,CAAC;IACDC,OAAO,EAAE;MACPC,iBAAiB,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EAAE,QAAQ;QACxBtC,eAAe,EAAE;MACnB;IACF;EACF,CAAC,CAAC;EAEFT,QAAQ,CAACH,aAAa,EAAE,EAAE,EAAEI,aAAa,CAAC;EAC1CD,QAAQ,CAACH,aAAa,GAAG,WAAW,EAAE,EAAE,EAAE;IACtCK,IAAI,EAAG;MACLO,eAAe,EAAEV,cAAc,CAACyB;IAClC;EACJ,CAAC,CAAC;AACJ,CAAC,CAAC"}
1
+ {"version":3,"names":["BASE_THEME","defineStyles","Platform","DEFAULT_CLASS","registerStyle","themeVariables","addStyle","defaultStyles","root","flexDirection","padding","borderWidth","borderStyle","borderColor","inputBorderColor","backgroundColor","inputBackgroundColor","borderRadius","minWidth","invalid","borderBottomColor","inputInvalidBorderColor","text","fontSize","fontFamily","baseFont","flex","color","inputTextColor","disabledText","inputDisabledBgColor","modal","height","modalContent","selectDropdownBackgroundColor","position","selectBorderColor","width","selectItem","paddingHorizontal","paddingVertical","borderBottomWidth","borderBottomStyle","selecttemBorderColor","alignItems","lastSelectItem","selectItemText","selectItemTextColor","placeholderText","inputPlaceholderColor","dropDownContent","arrowButton","alignSelf","justifyContent","OS","textAlign"],"sources":["select.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 { WmButtonStyles } from '@wavemaker/app-rn-runtime/components/basic/button/button.styles';\nimport { Platform } from 'react-native';\n\nexport type WmSelectStyles = BaseStyles & {\n arrowButton: WmButtonStyles;\n modal: AllStyle;\n modalContent: AllStyle;\n selectItem: AllStyle;\n lastSelectItem: AllStyle,\n selectItemText: AllStyle;\n dropDownContent: AllStyle;\n disabledText: AllStyle;\n placeholderText: AllStyle;\n invalid: AllStyle;\n};\n\nexport const DEFAULT_CLASS = 'app-select';\nBASE_THEME.registerStyle((themeVariables, addStyle) => {\n const defaultStyles: WmSelectStyles = defineStyles({\n root: {\n flexDirection: 'row',\n padding: 12,\n borderWidth: 1,\n borderStyle: 'solid',\n borderColor: themeVariables.inputBorderColor,\n backgroundColor: themeVariables.inputBackgroundColor,\n borderRadius: 6,\n minWidth: 160\n },\n invalid: {\n borderBottomColor: themeVariables.inputInvalidBorderColor\n },\n text: {\n fontSize: 16,\n fontFamily: themeVariables.baseFont,\n flex: 1,\n color: themeVariables.inputTextColor\n },\n disabledText: {\n backgroundColor : themeVariables.inputDisabledBgColor\n },\n modal: {\n backgroundColor: 'rgba(0, 0, 0, 0.3)',\n height: '100%'\n },\n modalContent: {\n backgroundColor: themeVariables.selectDropdownBackgroundColor,\n borderRadius: 6,\n position: 'absolute',\n borderWidth: 1,\n borderStyle: 'solid',\n borderColor: themeVariables.selectBorderColor,\n width: '90%'\n },\n selectItem: {\n width: '100%',\n paddingHorizontal: 16,\n paddingVertical: 8,\n borderBottomWidth: 1,\n borderBottomStyle: 'solid',\n borderBottomColor: themeVariables.selecttemBorderColor,\n flexDirection: 'row',\n alignItems: 'center'\n },\n lastSelectItem: {\n borderBottomWidth: 0\n },\n selectItemText: {\n fontSize: 16,\n fontFamily: themeVariables.baseFont,\n color: themeVariables.selectItemTextColor\n },\n placeholderText: {\n color: themeVariables.inputPlaceholderColor\n },\n dropDownContent: {},\n arrowButton: {\n root: {\n padding: 0,\n alignItems: 'center',\n alignSelf: 'center',\n justifyContent: 'center',\n backgroundColor: 'transparent'\n }\n } as WmButtonStyles,\n });\n\n addStyle(DEFAULT_CLASS, '', defaultStyles);\n addStyle(DEFAULT_CLASS + '-disabled', '', {\n root : {\n backgroundColor: themeVariables.inputDisabledBgColor\n }\n });\n addStyle(DEFAULT_CLASS + '-rtl', '', Platform.OS==\"web\"?{\n text:{\n textAlign:'right',\n }\n }:{\n text:{\n textAlign:'left',\n }\n });\n});\n"],"mappings":"AAAA,OAAOA,UAAU,MAAkB,wCAAwC;AAC3E,SAAqBC,YAAY,QAAQ,+CAA+C;AAExF,SAASC,QAAQ,QAAQ,cAAc;AAevC,OAAO,M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AC;IACDC,cAAc,EAAE;MACdJ,iBAAiB,EAAE;IACrB,CAAC;IACDK,cAAc,EAAE;MACdvB,QAAQ,EAAE,EAAE;MACZC,UAAU,EAAEnB,cAAc,CAACoB,QAAQ;MACnCE,KAAK,EAAEtB,cAAc,CAAC0C;IACxB,CAAC;IACDC,eAAe,EAAE;MACfrB,KAAK,EAAEtB,cAAc,CAAC4C;IACxB,CAAC;IACDC,eAAe,EAAE,CAAC,CAAC;IACnBC,WAAW,EAAE;MACX3C,IAAI,EAAE;QACJE,OAAO,EAAE,CAAC;QACVkC,UAAU,EAAE,QAAQ;QACpBQ,SAAS,EAAE,QAAQ;QACnBC,cAAc,EAAE,QAAQ;QACxBtC,eAAe,EAAE;MACnB;IACF;EACF,CAAC,CAAC;EAEFT,QAAQ,CAACH,aAAa,EAAE,EAAE,EAAEI,aAAa,CAAC;EAC1CD,QAAQ,CAACH,aAAa,GAAG,WAAW,EAAE,EAAE,EAAE;IACtCK,IAAI,EAAG;MACLO,eAAe,EAAEV,cAAc,CAACyB;IAClC;EACJ,CAAC,CAAC;EACFxB,QAAQ,CAACH,aAAa,GAAG,MAAM,EAAE,EAAE,EAAED,QAAQ,CAACoD,EAAE,IAAE,KAAK,GAAC;IACtDhC,IAAI,EAAC;MACHiC,SAAS,EAAC;IACZ;EACF,CAAC,GAAC;IACAjC,IAAI,EAAC;MACHiC,SAAS,EAAC;IACZ;EACF,CAAC,CAAC;AACJ,CAAC,CAAC"}
@@ -2,7 +2,7 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
2
2
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
3
3
  function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
4
4
  import React from 'react';
5
- import { View, Text } from 'react-native';
5
+ import { View, Text, Platform } from 'react-native';
6
6
  import { debounce, isNumber, isNil } from 'lodash';
7
7
  import Slider from '@react-native-community/slider';
8
8
  import { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';
@@ -46,7 +46,7 @@ export default class WmSlider extends BaseComponent {
46
46
  renderWidget(props) {
47
47
  return /*#__PURE__*/React.createElement(View, {
48
48
  style: this.styles.root
49
- }, /*#__PURE__*/React.createElement(View, {
49
+ }, this._background, /*#__PURE__*/React.createElement(View, {
50
50
  style: {
51
51
  flexDirection: 'row',
52
52
  justifyContent: 'space-between'
@@ -63,6 +63,7 @@ export default class WmSlider extends BaseComponent {
63
63
  value: this.valueBeforeSlide || props.datavalue || 0,
64
64
  disabled: props.readonly,
65
65
  minimumValue: props.minvalue,
66
+ inverted: this.isRTL && (Platform.OS == "android" || Platform.OS == "web"),
66
67
  maximumValue: props.maxvalue,
67
68
  onValueChange: this.onChange,
68
69
  thumbTintColor: this.styles.thumb.backgroundColor,
@@ -1 +1 @@
1
- {"version":3,"names":["React","View","Text","debounce","isNumber","isNil","Slider","BaseComponent","BaseComponentState","WmSliderProps","DEFAULT_CLASS","WmSliderState","WmSlider","constructor","props","value","state","datavalue","updateState","onFieldChange","valueBeforeSlide","getDataValue","minvalue","maxvalue","Math","min","max","onPropertyChange","name","$new","$old","invokeEventCallback","setProp","renderWidget","styles","root","flexDirection","justifyContent","text","minimumValue","maximumValue","readonly","disabled","step","onChange","thumb","backgroundColor","onBeforeSlide","onAfterSlide","minimumTrack","maximumTrack"],"sources":["slider.component.tsx"],"sourcesContent":["import React from 'react';\nimport {View, Text } from 'react-native';\nimport { debounce, isNumber, isNil } from 'lodash';\nimport Slider from '@react-native-community/slider';\nimport { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';\n\nimport WmSliderProps from './slider.props';\nimport { DEFAULT_CLASS, WmSliderStyles } from './slider.styles';\n\nexport class WmSliderState extends BaseComponentState<WmSliderProps> {}\n\nexport default class WmSlider extends BaseComponent<WmSliderProps, WmSliderState, WmSliderStyles> {\n valueBeforeSlide: number = 0;\n\n constructor(props: WmSliderProps) {\n super(props, DEFAULT_CLASS, new WmSliderProps());\n }\n\n getDataValue() {\n if (isNil(this.props.datavalue)) {\n return this.state.props.minvalue + (this.state.props.maxvalue - this.state.props.minvalue)/2;\n }\n return Math.min(Math.max(this.props.datavalue, this.state.props.minvalue), this.state.props.maxvalue);\n }\n\n onPropertyChange(name: string, $new: any, $old: any) {\n switch(name) {\n case 'datavalue':\n if (isNumber($new) && isNumber($old)) {\n this.invokeEventCallback('onChange', [null, this, $new, $old]);\n }\n case 'maxvalue':\n case 'minvalue': \n this.setProp('datavalue', this.getDataValue() || 0)\n }\n }\n\n onChange = debounce((value: number) => {\n if (this.state.props.datavalue !== value) {\n this.updateState({\n props : {\n datavalue: value\n }\n } as WmSliderState);\n this.props.onFieldChange &&\n this.props.onFieldChange(\n 'datavalue',\n value,\n this.state.props.datavalue\n );\n }\n }, 200);\n\n onBeforeSlide = () => this.valueBeforeSlide = this.props.datavalue;\n\n onAfterSlide = () => this.valueBeforeSlide = 0;\n\n renderWidget(props: WmSliderProps) {\n return (\n <View style={this.styles.root}>\n <View style={{flexDirection:'row', justifyContent:'space-between'}}>\n <Text style={[this.styles.text, this.styles.minimumValue]}>{props.minvalue}</Text>\n <Text style={[this.styles.text, this.styles.value]}>{props.datavalue}</Text>\n <Text style={[this.styles.text, this.styles.maximumValue]}>{props.maxvalue}</Text>\n </View>\n <Slider\n style={props.readonly || props.disabled ? this.styles.disabled : {}}\n step={props.step}\n value={this.valueBeforeSlide || props.datavalue || 0}\n disabled={props.readonly}\n minimumValue={props.minvalue}\n maximumValue={props.maxvalue}\n onValueChange={this.onChange}\n thumbTintColor={this.styles.thumb.backgroundColor as string}\n onTouchStart={this.onBeforeSlide}\n onTouchEnd={this.onAfterSlide}\n minimumTrackTintColor={this.styles.minimumTrack.backgroundColor as string}\n maximumTrackTintCol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AK;IAAE,GAAED,KAAK,CAACG,SAAS,CAAQ,eAC5E,oBAAC,IAAI;MAAC,KAAK,EAAE,CAAC,IAAI,CAACiB,MAAM,CAACI,IAAI,EAAE,IAAI,CAACJ,MAAM,CAACM,YAAY;IAAE,GAAE1B,KAAK,CAACS,QAAQ,CAAQ,CAC7E,eACP,oBAAC,MAAM;MACL,KAAK,EAAET,KAAK,CAAC2B,QAAQ,IAAI3B,KAAK,CAAC4B,QAAQ,GAAG,IAAI,CAACR,MAAM,CAACQ,QAAQ,GAAG,CAAC,CAAE;MACpE,IAAI,EAAE5B,KAAK,CAAC6B,IAAK;MACjB,KAAK,EAAE,IAAI,CAACvB,gBAAgB,IAAIN,KAAK,CAACG,SAAS,IAAI,CAAE;MACrD,QAAQ,EAAEH,KAAK,CAAC2B,QAAS;MACzB,YAAY,EAAE3B,KAAK,CAACQ,QAAS;MAC7B,YAAY,EAAER,KAAK,CAACS,QAAS;MAC7B,aAAa,EAAE,IAAI,CAACqB,QAAS;MAC7B,cAAc,EAAE,IAAI,CAACV,MAAM,CAACW,KAAK,CAACC,eAA0B;MAC5D,YAAY,EAAE,IAAI,CAACC,aAAc;MACjC,UAAU,EAAE,IAAI,CAACC,YAAa;MAC9B,qBAAqB,EAAE,IAAI,CAACd,MAAM,CAACe,YAAY,CAACH,eAA0B;MAC1E,qBAAqB,EAAE,IAAI,CAACZ,MAAM,CAACgB,YAAY,CAACJ;IAA0B,EAC1E,CACG;EACT;AACF"}
1
+ {"version":3,"names":["React","View","Text","Platform","debounce","isNumber","isNil","Slider","BaseComponent","BaseComponentState","WmSliderProps","DEFAULT_CLASS","WmSliderState","WmSlider","constructor","props","_defineProperty","value","state","datavalue","updateState","onFieldChange","valueBeforeSlide","getDataValue","minvalue","maxvalue","Math","min","max","onPropertyChange","name","$new","$old","invokeEventCallback","setProp","renderWidget","createElement","style","styles","root","_background","flexDirection","justifyContent","text","minimumValue","maximumValue","readonly","disabled","step","inverted","isRTL","OS","onValueChange","onChange","thumbTintColor","thumb","backgroundColor","onTouchStart","onBeforeSlide","onTouchEnd","onAfterSlide","minimumTrackTintColor","minimumTrack","maximumTrackTintColor","maximumTrack"],"sources":["slider.component.tsx"],"sourcesContent":["import React from 'react';\nimport {View, Text, Platform } from 'react-native';\nimport { debounce, isNumber, isNil } from 'lodash';\nimport Slider from '@react-native-community/slider';\nimport { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';\n\nimport WmSliderProps from './slider.props';\nimport { DEFAULT_CLASS, WmSliderStyles } from './slider.styles';\n\nexport class WmSliderState extends BaseComponentState<WmSliderProps> {}\n\nexport default class WmSlider extends BaseComponent<WmSliderProps, WmSliderState, WmSliderStyles> {\n valueBeforeSlide: number = 0;\n\n constructor(props: WmSliderProps) {\n super(props, DEFAULT_CLASS, new WmSliderProps());\n }\n\n getDataValue() {\n if (isNil(this.props.datavalue)) {\n return this.state.props.minvalue + (this.state.props.maxvalue - this.state.props.minvalue)/2;\n }\n return Math.min(Math.max(this.props.datavalue, this.state.props.minvalue), this.state.props.maxvalue);\n }\n\n onPropertyChange(name: string, $new: any, $old: any) {\n switch(name) {\n case 'datavalue':\n if (isNumber($new) && isNumber($old)) {\n this.invokeEventCallback('onChange', [null, this, $new, $old]);\n }\n case 'maxvalue':\n case 'minvalue': \n this.setProp('datavalue', this.getDataValue() || 0)\n }\n }\n\n onChange = debounce((value: number) => {\n if (this.state.props.datavalue !== value) {\n this.updateState({\n props : {\n datavalue: value\n }\n } as WmSliderState);\n this.props.onFieldChange &&\n this.props.onFieldChange(\n 'datavalue',\n value,\n this.state.props.datavalue\n );\n }\n }, 200);\n\n onBeforeSlide = () => this.valueBeforeSlide = this.props.datavalue;\n\n onAfterSlide = () => this.valueBeforeSlide = 0;\n\n renderWidget(props: WmSliderProps) {\n return (\n <View style={this.styles.root}>\n {this._background}\n <View style={{flexDirection:'row', justifyContent:'space-between'}}>\n <Text style={[this.styles.text, this.styles.minimumValue]}>{props.minvalue}</Text>\n <Text style={[this.styles.text, this.styles.value]}>{props.datavalue}</Text>\n <Text style={[this.styles.text, this.styles.maximumValue]}>{props.maxvalue}</Text>\n </View>\n <Slider\n style={props.readonly || props.disabled ? this.styles.disabled : {}}\n step={props.step}\n value={this.valueBeforeSlide || props.datavalue || 0}\n disabled={props.readonly}\n minimumValue={props.minvalue}\n inverted={this.isRTL && (Platform.OS==\"android\"||Platform.OS==\"web\")}\n maximumValue={props.maxvalue}\n onValueChange={this.onChange}\n thumbTintColor={this.styles.thumb.backgroundColor as string}\n onTouchStart={this.onBeforeSlide}\n onTouchEnd={this.onAfterSlide}\n minimumTrackTintColor={this.styles.minimumTrack.backgroundColor as string}\n maximumTrackTintColor={this.styles.maximumTrack.backgroundColor as string}\n />\n </View>);\n }\n}\n"],"mappings":";;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAAQC,IAAI,EAAEC,IAAI,EAAEC,QAAQ,QAAQ,cAAc;AAClD,SAASC,QAAQ,EAAEC,QAAQ,EAAEC,KAAK,QAAQ,QAAQ;AAClD,OAAOC,MAAM,MAAM,gCAAgC;AACnD,SAASC,aAAa,EAAEC,kBAAkB,QAAQ,+CAA+C;AAEjG,OAAOC,aAAa,MAAM,gBAAgB;AAC1C,SAASC,aAAa,QAAwB,iBAAiB;AAE/D,OAAO,MAAMC,aAAa,SAASH,kBAAkB,CAAgB;AAErE,eAAe,MAAMI,QAAQ,SAASL,aAAa,CAA+C;EAGhGM,WAAWA,CAACC,KAAoB,EAAE;IAChC,KAAK,CAACA,KAAK,EAAEJ,aAAa,EAAE,IAAID,aAAa,CAAC,CAAC,CAAC;IAACM,eAAA,2BAHxB,CAAC;IAAAA,eAAA,mBAyBjBZ,QAAQ,CAAEa,KAAa,IAAK;MACrC,IAAI,IAAI,CAACC,KAAK,CAACH,KAAK,CAACI,SAAS,KAAKF,KAAK,EAAE;QACxC,IAAI,CAACG,WAAW,CAAC;UACfL,KAAK,EAAG;YACNI,SAAS,EAAEF;UACb;QACF,CAAkB,C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AAK/C,QAAQ,CAACgD,EAAE,IAAE,SAAS,IAAEhD,QAAQ,CAACgD,EAAE,IAAE,KAAK,CAAE;MACrEN,YAAY,EAAE9B,KAAK,CAACU,QAAS;MAC7B2B,aAAa,EAAE,IAAI,CAACC,QAAS;MAC7BC,cAAc,EAAE,IAAI,CAAChB,MAAM,CAACiB,KAAK,CAACC,eAA0B;MAC5DC,YAAY,EAAE,IAAI,CAACC,aAAc;MACjCC,UAAU,EAAE,IAAI,CAACC,YAAa;MAC9BC,qBAAqB,EAAE,IAAI,CAACvB,MAAM,CAACwB,YAAY,CAACN,eAA0B;MAC1EO,qBAAqB,EAAE,IAAI,CAACzB,MAAM,CAAC0B,YAAY,CAACR;IAA0B,CAC3E,CACG,CAAC;EACT;AACF"}
@@ -1 +1 @@
1
- {"version":3,"names":["BaseProps","WmSliderProps"],"sources":["slider.props.ts"],"sourcesContent":["import { BaseProps } from '@wavemaker/app-rn-runtime/core/base.component';\n\nexport default class WmSliderProps extends BaseProps {\n datavalue: any;\n minvalue: number = 0;\n maxvalue: number = 100;\n step: number = 1;\n readonly = false;\n onFieldChange: any;\n}\n"],"mappings":";;;AAAA,SAASA,SAAS,QAAQ,+CAA+C;AAEzE,eAAe,MAAMC,aAAa,SAASD,SAAS,CAAC;EAAA;IAAA;IAAA;IAAA,kCAE9B,CAAC;IAAA,kCACD,GAAG;IAAA,8BACP,CAAC;IAAA,kCACL,KAAK;IAAA;EAAA;AAEpB"}
1
+ {"version":3,"names":["BaseProps","WmSliderProps","constructor","arguments","_defineProperty"],"sources":["slider.props.ts"],"sourcesContent":["import { BaseProps } from '@wavemaker/app-rn-runtime/core/base.component';\n\nexport default class WmSliderProps extends BaseProps {\n datavalue: any;\n minvalue: number = 0;\n maxvalue: number = 100;\n step?: number = 1;\n readonly? = false;\n onFieldChange?: any;\n}\n"],"mappings":";;;AAAA,SAASA,SAAS,QAAQ,+CAA+C;AAEzE,eAAe,MAAMC,aAAa,SAASD,SAAS,CAAC;EAAAE,YAAA;IAAA,SAAAC,SAAA;IAAAC,eAAA;IAAAA,eAAA,mBAE9B,CAAC;IAAAA,eAAA,mBACD,GAAG;IAAAA,eAAA,eACN,CAAC;IAAAA,eAAA,mBACL,KAAK;IAAAA,eAAA;EAAA;AAErB"}