@wavemaker-ai/app-rn-runtime 1.0.0-rc.647469

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 (998) hide show
  1. package/actions/base-action.js +12 -0
  2. package/actions/base-action.js.map +1 -0
  3. package/actions/index.js +6 -0
  4. package/actions/index.js.map +1 -0
  5. package/actions/login-action.js +32 -0
  6. package/actions/login-action.js.map +1 -0
  7. package/actions/logout-action.js +22 -0
  8. package/actions/logout-action.js.map +1 -0
  9. package/actions/navigation-action.js +44 -0
  10. package/actions/navigation-action.js.map +1 -0
  11. package/actions/notification-action.js +76 -0
  12. package/actions/notification-action.js.map +1 -0
  13. package/actions/timer-action.js +57 -0
  14. package/actions/timer-action.js.map +1 -0
  15. package/components/advanced/carousel/carousel-content/carousel-content.component.js +17 -0
  16. package/components/advanced/carousel/carousel-content/carousel-content.component.js.map +1 -0
  17. package/components/advanced/carousel/carousel-content/carousel-content.props.js +11 -0
  18. package/components/advanced/carousel/carousel-content/carousel-content.props.js.map +1 -0
  19. package/components/advanced/carousel/carousel-content/carousel-content.styles.js +17 -0
  20. package/components/advanced/carousel/carousel-content/carousel-content.styles.js.map +1 -0
  21. package/components/advanced/carousel/carousel-template/carousel-template.component.js +20 -0
  22. package/components/advanced/carousel/carousel-template/carousel-template.component.js.map +1 -0
  23. package/components/advanced/carousel/carousel-template/carousel-template.props.js +11 -0
  24. package/components/advanced/carousel/carousel-template/carousel-template.props.js.map +1 -0
  25. package/components/advanced/carousel/carousel-template/carousel-template.styles.js +16 -0
  26. package/components/advanced/carousel/carousel-template/carousel-template.styles.js.map +1 -0
  27. package/components/advanced/carousel/carousel.component.js +378 -0
  28. package/components/advanced/carousel/carousel.component.js.map +1 -0
  29. package/components/advanced/carousel/carousel.props.js +23 -0
  30. package/components/advanced/carousel/carousel.props.js.map +1 -0
  31. package/components/advanced/carousel/carousel.styles.js +179 -0
  32. package/components/advanced/carousel/carousel.styles.js.map +1 -0
  33. package/components/advanced/customwidgetcontainer/customwidgetcontainer.component.js +14 -0
  34. package/components/advanced/customwidgetcontainer/customwidgetcontainer.component.js.map +1 -0
  35. package/components/advanced/customwidgetcontainer/customwidgetcontainer.props.js +11 -0
  36. package/components/advanced/customwidgetcontainer/customwidgetcontainer.props.js.map +1 -0
  37. package/components/advanced/customwidgetcontainer/customwidgetcontainer.styles.js +14 -0
  38. package/components/advanced/customwidgetcontainer/customwidgetcontainer.styles.js.map +1 -0
  39. package/components/advanced/login/login.component.js +40 -0
  40. package/components/advanced/login/login.component.js.map +1 -0
  41. package/components/advanced/login/login.props.js +13 -0
  42. package/components/advanced/login/login.props.js.map +1 -0
  43. package/components/advanced/login/login.styles.js +31 -0
  44. package/components/advanced/login/login.styles.js.map +1 -0
  45. package/components/advanced/network-info-toaster/network-info-toaster.component.js +118 -0
  46. package/components/advanced/network-info-toaster/network-info-toaster.component.js.map +1 -0
  47. package/components/advanced/network-info-toaster/network-info-toaster.props.js +11 -0
  48. package/components/advanced/network-info-toaster/network-info-toaster.props.js.map +1 -0
  49. package/components/advanced/network-info-toaster/network-info-toaster.styles.js +33 -0
  50. package/components/advanced/network-info-toaster/network-info-toaster.styles.js.map +1 -0
  51. package/components/advanced/webview/webview.component.js +160 -0
  52. package/components/advanced/webview/webview.component.js.map +1 -0
  53. package/components/advanced/webview/webview.props.js +16 -0
  54. package/components/advanced/webview/webview.props.js.map +1 -0
  55. package/components/advanced/webview/webview.styles.js +18 -0
  56. package/components/advanced/webview/webview.styles.js.map +1 -0
  57. package/components/basic/anchor/anchor.component.js +124 -0
  58. package/components/basic/anchor/anchor.component.js.map +1 -0
  59. package/components/basic/anchor/anchor.props.js +34 -0
  60. package/components/basic/anchor/anchor.props.js.map +1 -0
  61. package/components/basic/anchor/anchor.styles.js +108 -0
  62. package/components/basic/anchor/anchor.styles.js.map +1 -0
  63. package/components/basic/animatedview.component.js +226 -0
  64. package/components/basic/animatedview.component.js.map +1 -0
  65. package/components/basic/audio/audio.component.js +257 -0
  66. package/components/basic/audio/audio.component.js.map +1 -0
  67. package/components/basic/audio/audio.props.js +15 -0
  68. package/components/basic/audio/audio.props.js.map +1 -0
  69. package/components/basic/audio/audio.styles.js +68 -0
  70. package/components/basic/audio/audio.styles.js.map +1 -0
  71. package/components/basic/bottomsheet/bottomsheet.component.js +772 -0
  72. package/components/basic/bottomsheet/bottomsheet.component.js.map +1 -0
  73. package/components/basic/bottomsheet/bottomsheet.props.js +26 -0
  74. package/components/basic/bottomsheet/bottomsheet.props.js.map +1 -0
  75. package/components/basic/bottomsheet/bottomsheet.styles.js +88 -0
  76. package/components/basic/bottomsheet/bottomsheet.styles.js.map +1 -0
  77. package/components/basic/button/button.component.js +124 -0
  78. package/components/basic/button/button.component.js.map +1 -0
  79. package/components/basic/button/button.props.js +28 -0
  80. package/components/basic/button/button.props.js.map +1 -0
  81. package/components/basic/button/button.styles.js +132 -0
  82. package/components/basic/button/button.styles.js.map +1 -0
  83. package/components/basic/buttongroup/buttongroup.component.js +28 -0
  84. package/components/basic/buttongroup/buttongroup.component.js.map +1 -0
  85. package/components/basic/buttongroup/buttongroup.props.js +14 -0
  86. package/components/basic/buttongroup/buttongroup.props.js.map +1 -0
  87. package/components/basic/buttongroup/buttongroup.styles.js +59 -0
  88. package/components/basic/buttongroup/buttongroup.styles.js.map +1 -0
  89. package/components/basic/custom/custom.component.js +26 -0
  90. package/components/basic/custom/custom.component.js.map +1 -0
  91. package/components/basic/custom/custom.props.js +16 -0
  92. package/components/basic/custom/custom.props.js.map +1 -0
  93. package/components/basic/custom/custom.styles.js +18 -0
  94. package/components/basic/custom/custom.styles.js.map +1 -0
  95. package/components/basic/icon/icon.component.js +270 -0
  96. package/components/basic/icon/icon.component.js.map +1 -0
  97. package/components/basic/icon/icon.props.js +28 -0
  98. package/components/basic/icon/icon.props.js.map +1 -0
  99. package/components/basic/icon/icon.styles.js +38 -0
  100. package/components/basic/icon/icon.styles.js.map +1 -0
  101. package/components/basic/icon/streamline-light-icon/streamline-light-icon.component.js +245 -0
  102. package/components/basic/icon/streamline-light-icon/streamline-light-icon.component.js.map +1 -0
  103. package/components/basic/icon/streamline-light-icon/streamline-light-icon.ttf +0 -0
  104. package/components/basic/icon/streamline-regular-icon/streamline-regular-icon.component.js +217 -0
  105. package/components/basic/icon/streamline-regular-icon/streamline-regular-icon.component.js.map +1 -0
  106. package/components/basic/icon/streamline-regular-icon/streamline-regular-icon.ttf +0 -0
  107. package/components/basic/icon/wavicon/wavicon.component.js +1161 -0
  108. package/components/basic/icon/wavicon/wavicon.component.js.map +1 -0
  109. package/components/basic/icon/wavicon/wavicon.ttf +0 -0
  110. package/components/basic/label/label.component.js +406 -0
  111. package/components/basic/label/label.component.js.map +1 -0
  112. package/components/basic/label/label.props.js +28 -0
  113. package/components/basic/label/label.props.js.map +1 -0
  114. package/components/basic/label/label.styles.js +146 -0
  115. package/components/basic/label/label.styles.js.map +1 -0
  116. package/components/basic/lottie/lottie.component.js +139 -0
  117. package/components/basic/lottie/lottie.component.js.map +1 -0
  118. package/components/basic/lottie/lottie.props.js +14 -0
  119. package/components/basic/lottie/lottie.props.js.map +1 -0
  120. package/components/basic/lottie/lottie.styles.js +15 -0
  121. package/components/basic/lottie/lottie.styles.js.map +1 -0
  122. package/components/basic/message/message.component.js +87 -0
  123. package/components/basic/message/message.component.js.map +1 -0
  124. package/components/basic/message/message.props.js +24 -0
  125. package/components/basic/message/message.props.js.map +1 -0
  126. package/components/basic/message/message.styles.js +116 -0
  127. package/components/basic/message/message.styles.js.map +1 -0
  128. package/components/basic/modal/modal.component.js +24 -0
  129. package/components/basic/modal/modal.component.js.map +1 -0
  130. package/components/basic/modal/modal.props.js +12 -0
  131. package/components/basic/modal/modal.props.js.map +1 -0
  132. package/components/basic/modal/modal.styles.js +29 -0
  133. package/components/basic/modal/modal.styles.js.map +1 -0
  134. package/components/basic/picture/picture.component.js +321 -0
  135. package/components/basic/picture/picture.component.js.map +1 -0
  136. package/components/basic/picture/picture.props.js +25 -0
  137. package/components/basic/picture/picture.props.js.map +1 -0
  138. package/components/basic/picture/picture.styles.js +43 -0
  139. package/components/basic/picture/picture.styles.js.map +1 -0
  140. package/components/basic/progress-bar/progress-bar.component.js +96 -0
  141. package/components/basic/progress-bar/progress-bar.component.js.map +1 -0
  142. package/components/basic/progress-bar/progress-bar.props.js +19 -0
  143. package/components/basic/progress-bar/progress-bar.props.js.map +1 -0
  144. package/components/basic/progress-bar/progress-bar.styles.js +45 -0
  145. package/components/basic/progress-bar/progress-bar.styles.js.map +1 -0
  146. package/components/basic/progress-circle/progress-circle.component.js +79 -0
  147. package/components/basic/progress-circle/progress-circle.component.js.map +1 -0
  148. package/components/basic/progress-circle/progress-circle.props.js +19 -0
  149. package/components/basic/progress-circle/progress-circle.props.js.map +1 -0
  150. package/components/basic/progress-circle/progress-circle.styles.js +82 -0
  151. package/components/basic/progress-circle/progress-circle.styles.js.map +1 -0
  152. package/components/basic/search/local-data-provider.js +113 -0
  153. package/components/basic/search/local-data-provider.js.map +1 -0
  154. package/components/basic/search/search.component.js +456 -0
  155. package/components/basic/search/search.component.js.map +1 -0
  156. package/components/basic/search/search.props.js +39 -0
  157. package/components/basic/search/search.props.js.map +1 -0
  158. package/components/basic/search/search.styles.js +187 -0
  159. package/components/basic/search/search.styles.js.map +1 -0
  160. package/components/basic/skeleton/skeleton.component.js +151 -0
  161. package/components/basic/skeleton/skeleton.component.js.map +1 -0
  162. package/components/basic/skeleton/skeleton.props.js +11 -0
  163. package/components/basic/skeleton/skeleton.props.js.map +1 -0
  164. package/components/basic/skeleton/skeleton.styles.js +41 -0
  165. package/components/basic/skeleton/skeleton.styles.js.map +1 -0
  166. package/components/basic/spinner/spinner.component.js +99 -0
  167. package/components/basic/spinner/spinner.component.js.map +1 -0
  168. package/components/basic/spinner/spinner.props.js +17 -0
  169. package/components/basic/spinner/spinner.props.js.map +1 -0
  170. package/components/basic/spinner/spinner.styles.js +41 -0
  171. package/components/basic/spinner/spinner.styles.js.map +1 -0
  172. package/components/basic/tooltip/tooltip.component.js +80 -0
  173. package/components/basic/tooltip/tooltip.component.js.map +1 -0
  174. package/components/basic/tooltip/tooltip.props.js +18 -0
  175. package/components/basic/tooltip/tooltip.props.js.map +1 -0
  176. package/components/basic/tooltip/tooltip.styles.js +49 -0
  177. package/components/basic/tooltip/tooltip.styles.js.map +1 -0
  178. package/components/basic/video/video.component.js +206 -0
  179. package/components/basic/video/video.component.js.map +1 -0
  180. package/components/basic/video/video.props.js +33 -0
  181. package/components/basic/video/video.props.js.map +1 -0
  182. package/components/basic/video/video.styles.js +33 -0
  183. package/components/basic/video/video.styles.js.map +1 -0
  184. package/components/chart/area-chart/area-chart.component.js +159 -0
  185. package/components/chart/area-chart/area-chart.component.js.map +1 -0
  186. package/components/chart/area-chart/area-chart.props.js +12 -0
  187. package/components/chart/area-chart/area-chart.props.js.map +1 -0
  188. package/components/chart/area-chart/area-chart.styles.js +13 -0
  189. package/components/chart/area-chart/area-chart.styles.js.map +1 -0
  190. package/components/chart/bar-chart/bar-chart.component.js +144 -0
  191. package/components/chart/bar-chart/bar-chart.component.js.map +1 -0
  192. package/components/chart/bar-chart/bar-chart.props.js +15 -0
  193. package/components/chart/bar-chart/bar-chart.props.js.map +1 -0
  194. package/components/chart/bar-chart/bar-chart.styles.js +13 -0
  195. package/components/chart/bar-chart/bar-chart.styles.js.map +1 -0
  196. package/components/chart/basechart.component.js +709 -0
  197. package/components/chart/basechart.component.js.map +1 -0
  198. package/components/chart/basechart.props.js +65 -0
  199. package/components/chart/basechart.props.js.map +1 -0
  200. package/components/chart/basechart.styles.js +97 -0
  201. package/components/chart/basechart.styles.js.map +1 -0
  202. package/components/chart/bubble-chart/bubble-chart.component.js +113 -0
  203. package/components/chart/bubble-chart/bubble-chart.component.js.map +1 -0
  204. package/components/chart/bubble-chart/bubble-chart.props.js +11 -0
  205. package/components/chart/bubble-chart/bubble-chart.props.js.map +1 -0
  206. package/components/chart/bubble-chart/bubble-chart.styles.js +13 -0
  207. package/components/chart/bubble-chart/bubble-chart.styles.js.map +1 -0
  208. package/components/chart/column-chart/column-chart.component.js +8 -0
  209. package/components/chart/column-chart/column-chart.component.js.map +1 -0
  210. package/components/chart/column-chart/column-chart.props.js +3 -0
  211. package/components/chart/column-chart/column-chart.props.js.map +1 -0
  212. package/components/chart/column-chart/column-chart.styles.js +13 -0
  213. package/components/chart/column-chart/column-chart.styles.js.map +1 -0
  214. package/components/chart/donut-chart/donut-chart.component.js +7 -0
  215. package/components/chart/donut-chart/donut-chart.component.js.map +1 -0
  216. package/components/chart/donut-chart/donut-chart.props.js +11 -0
  217. package/components/chart/donut-chart/donut-chart.props.js.map +1 -0
  218. package/components/chart/donut-chart/donut-chart.styles.js +13 -0
  219. package/components/chart/donut-chart/donut-chart.styles.js.map +1 -0
  220. package/components/chart/legend/legend.component.js +36 -0
  221. package/components/chart/legend/legend.component.js.map +1 -0
  222. package/components/chart/line-chart/line-chart.component.js +119 -0
  223. package/components/chart/line-chart/line-chart.component.js.map +1 -0
  224. package/components/chart/line-chart/line-chart.props.js +14 -0
  225. package/components/chart/line-chart/line-chart.props.js.map +1 -0
  226. package/components/chart/line-chart/line-chart.styles.js +13 -0
  227. package/components/chart/line-chart/line-chart.styles.js.map +1 -0
  228. package/components/chart/pie-chart/pie-chart.component.js +251 -0
  229. package/components/chart/pie-chart/pie-chart.component.js.map +1 -0
  230. package/components/chart/pie-chart/pie-chart.props.js +14 -0
  231. package/components/chart/pie-chart/pie-chart.props.js.map +1 -0
  232. package/components/chart/pie-chart/pie-chart.styles.js +13 -0
  233. package/components/chart/pie-chart/pie-chart.styles.js.map +1 -0
  234. package/components/chart/stack-chart/stack-chart.component.js +368 -0
  235. package/components/chart/stack-chart/stack-chart.component.js.map +1 -0
  236. package/components/chart/stack-chart/stack-chart.props.js +17 -0
  237. package/components/chart/stack-chart/stack-chart.props.js.map +1 -0
  238. package/components/chart/stack-chart/stack-chart.styles.js +7 -0
  239. package/components/chart/stack-chart/stack-chart.styles.js.map +1 -0
  240. package/components/chart/staticdata.js +215 -0
  241. package/components/chart/staticdata.js.map +1 -0
  242. package/components/chart/theme/chart.theme.js +360 -0
  243. package/components/chart/theme/chart.theme.js.map +1 -0
  244. package/components/container/accordion/accordion.component.js +202 -0
  245. package/components/container/accordion/accordion.component.js.map +1 -0
  246. package/components/container/accordion/accordion.props.js +16 -0
  247. package/components/container/accordion/accordion.props.js.map +1 -0
  248. package/components/container/accordion/accordion.styles.js +148 -0
  249. package/components/container/accordion/accordion.styles.js.map +1 -0
  250. package/components/container/accordion/accordionpane/accordionpane.component.js +87 -0
  251. package/components/container/accordion/accordionpane/accordionpane.component.js.map +1 -0
  252. package/components/container/accordion/accordionpane/accordionpane.props.js +17 -0
  253. package/components/container/accordion/accordionpane/accordionpane.props.js.map +1 -0
  254. package/components/container/accordion/accordionpane/accordionpane.styles.js +16 -0
  255. package/components/container/accordion/accordionpane/accordionpane.styles.js.map +1 -0
  256. package/components/container/container.component.js +194 -0
  257. package/components/container/container.component.js.map +1 -0
  258. package/components/container/container.props.js +18 -0
  259. package/components/container/container.props.js.map +1 -0
  260. package/components/container/container.styles.js +48 -0
  261. package/components/container/container.styles.js.map +1 -0
  262. package/components/container/layoutgrid/gridcolumn/gridcolumn.component.js +29 -0
  263. package/components/container/layoutgrid/gridcolumn/gridcolumn.component.js.map +1 -0
  264. package/components/container/layoutgrid/gridcolumn/gridcolumn.props.js +13 -0
  265. package/components/container/layoutgrid/gridcolumn/gridcolumn.props.js.map +1 -0
  266. package/components/container/layoutgrid/gridcolumn/gridcolumn.styles.js +12 -0
  267. package/components/container/layoutgrid/gridcolumn/gridcolumn.styles.js.map +1 -0
  268. package/components/container/layoutgrid/gridrow/gridrow.component.js +22 -0
  269. package/components/container/layoutgrid/gridrow/gridrow.component.js.map +1 -0
  270. package/components/container/layoutgrid/gridrow/gridrow.props.js +11 -0
  271. package/components/container/layoutgrid/gridrow/gridrow.props.js.map +1 -0
  272. package/components/container/layoutgrid/gridrow/gridrow.styles.js +42 -0
  273. package/components/container/layoutgrid/gridrow/gridrow.styles.js.map +1 -0
  274. package/components/container/layoutgrid/layoutgrid.component.js +44 -0
  275. package/components/container/layoutgrid/layoutgrid.component.js.map +1 -0
  276. package/components/container/layoutgrid/layoutgrid.props.js +11 -0
  277. package/components/container/layoutgrid/layoutgrid.props.js.map +1 -0
  278. package/components/container/layoutgrid/layoutgrid.styles.js +34 -0
  279. package/components/container/layoutgrid/layoutgrid.styles.js.map +1 -0
  280. package/components/container/linearlayout/linearlayout.component.js +70 -0
  281. package/components/container/linearlayout/linearlayout.component.js.map +1 -0
  282. package/components/container/linearlayout/linearlayout.props.js +15 -0
  283. package/components/container/linearlayout/linearlayout.props.js.map +1 -0
  284. package/components/container/linearlayout/linearlayout.styles.js +14 -0
  285. package/components/container/linearlayout/linearlayout.styles.js.map +1 -0
  286. package/components/container/linearlayout/linearlayoutitem/linearlayoutitem.component.js +25 -0
  287. package/components/container/linearlayout/linearlayoutitem/linearlayoutitem.component.js.map +1 -0
  288. package/components/container/linearlayout/linearlayoutitem/linearlayoutitem.props.js +13 -0
  289. package/components/container/linearlayout/linearlayoutitem/linearlayoutitem.props.js.map +1 -0
  290. package/components/container/linearlayout/linearlayoutitem/linearlayoutitem.styles.js +11 -0
  291. package/components/container/linearlayout/linearlayoutitem/linearlayoutitem.styles.js.map +1 -0
  292. package/components/container/panel/collapsible-pane.component.js +26 -0
  293. package/components/container/panel/collapsible-pane.component.js.map +1 -0
  294. package/components/container/panel/panel-content/panel-content.component.js +17 -0
  295. package/components/container/panel/panel-content/panel-content.component.js.map +1 -0
  296. package/components/container/panel/panel-content/panel-content.props.js +11 -0
  297. package/components/container/panel/panel-content/panel-content.props.js.map +1 -0
  298. package/components/container/panel/panel-content/panel-content.styles.js +16 -0
  299. package/components/container/panel/panel-content/panel-content.styles.js.map +1 -0
  300. package/components/container/panel/panel-footer/panel-footer.component.js +17 -0
  301. package/components/container/panel/panel-footer/panel-footer.component.js.map +1 -0
  302. package/components/container/panel/panel-footer/panel-footer.props.js +11 -0
  303. package/components/container/panel/panel-footer/panel-footer.props.js.map +1 -0
  304. package/components/container/panel/panel-footer/panel-footer.styles.js +19 -0
  305. package/components/container/panel/panel-footer/panel-footer.styles.js.map +1 -0
  306. package/components/container/panel/panel.component.js +163 -0
  307. package/components/container/panel/panel.component.js.map +1 -0
  308. package/components/container/panel/panel.props.js +26 -0
  309. package/components/container/panel/panel.props.js.map +1 -0
  310. package/components/container/panel/panel.styles.js +108 -0
  311. package/components/container/panel/panel.styles.js.map +1 -0
  312. package/components/container/partial-host.component.js +42 -0
  313. package/components/container/partial-host.component.js.map +1 -0
  314. package/components/container/tabs/tabheader/tabheader.component.js +240 -0
  315. package/components/container/tabs/tabheader/tabheader.component.js.map +1 -0
  316. package/components/container/tabs/tabheader/tabheader.props.js +18 -0
  317. package/components/container/tabs/tabheader/tabheader.props.js.map +1 -0
  318. package/components/container/tabs/tabheader/tabheader.styles.js +111 -0
  319. package/components/container/tabs/tabheader/tabheader.styles.js.map +1 -0
  320. package/components/container/tabs/tabpane/tabpane.component.js +82 -0
  321. package/components/container/tabs/tabpane/tabpane.component.js.map +1 -0
  322. package/components/container/tabs/tabpane/tabpane.props.js +19 -0
  323. package/components/container/tabs/tabpane/tabpane.props.js.map +1 -0
  324. package/components/container/tabs/tabpane/tabpane.styles.js +13 -0
  325. package/components/container/tabs/tabpane/tabpane.styles.js.map +1 -0
  326. package/components/container/tabs/tabs.component.js +299 -0
  327. package/components/container/tabs/tabs.component.js.map +1 -0
  328. package/components/container/tabs/tabs.props.js +16 -0
  329. package/components/container/tabs/tabs.props.js.map +1 -0
  330. package/components/container/tabs/tabs.styles.js +65 -0
  331. package/components/container/tabs/tabs.styles.js.map +1 -0
  332. package/components/container/tile/tile.component.js +54 -0
  333. package/components/container/tile/tile.component.js.map +1 -0
  334. package/components/container/tile/tile.props.js +13 -0
  335. package/components/container/tile/tile.props.js.map +1 -0
  336. package/components/container/tile/tile.styles.js +38 -0
  337. package/components/container/tile/tile.styles.js.map +1 -0
  338. package/components/container/wizard/wizard.component.js +550 -0
  339. package/components/container/wizard/wizard.component.js.map +1 -0
  340. package/components/container/wizard/wizard.props.js +31 -0
  341. package/components/container/wizard/wizard.props.js.map +1 -0
  342. package/components/container/wizard/wizard.styles.js +415 -0
  343. package/components/container/wizard/wizard.styles.js.map +1 -0
  344. package/components/container/wizard/wizardaction/wizardaction.component.js +17 -0
  345. package/components/container/wizard/wizardaction/wizardaction.component.js.map +1 -0
  346. package/components/container/wizard/wizardaction/wizardaction.props.js +11 -0
  347. package/components/container/wizard/wizardaction/wizardaction.props.js.map +1 -0
  348. package/components/container/wizard/wizardaction/wizardaction.styles.js +11 -0
  349. package/components/container/wizard/wizardaction/wizardaction.styles.js.map +1 -0
  350. package/components/container/wizard/wizardstep/wizardstep.component.js +92 -0
  351. package/components/container/wizard/wizardstep/wizardstep.component.js.map +1 -0
  352. package/components/container/wizard/wizardstep/wizardstep.props.js +22 -0
  353. package/components/container/wizard/wizardstep/wizardstep.props.js.map +1 -0
  354. package/components/container/wizard/wizardstep/wizardstep.styles.js +13 -0
  355. package/components/container/wizard/wizardstep/wizardstep.styles.js.map +1 -0
  356. package/components/data/card/card-content/card-content.component.js +46 -0
  357. package/components/data/card/card-content/card-content.component.js.map +1 -0
  358. package/components/data/card/card-content/card-content.props.js +12 -0
  359. package/components/data/card/card-content/card-content.props.js.map +1 -0
  360. package/components/data/card/card-content/card-content.styles.js +17 -0
  361. package/components/data/card/card-content/card-content.styles.js.map +1 -0
  362. package/components/data/card/card-footer/card-footer.component.js +18 -0
  363. package/components/data/card/card-footer/card-footer.component.js.map +1 -0
  364. package/components/data/card/card-footer/card-footer.props.js +11 -0
  365. package/components/data/card/card-footer/card-footer.props.js.map +1 -0
  366. package/components/data/card/card-footer/card-footer.styles.js +18 -0
  367. package/components/data/card/card-footer/card-footer.styles.js.map +1 -0
  368. package/components/data/card/card.component.js +92 -0
  369. package/components/data/card/card.component.js.map +1 -0
  370. package/components/data/card/card.props.js +27 -0
  371. package/components/data/card/card.props.js.map +1 -0
  372. package/components/data/card/card.styles.js +51 -0
  373. package/components/data/card/card.styles.js.map +1 -0
  374. package/components/data/form/form-action/form-action.component.js +35 -0
  375. package/components/data/form/form-action/form-action.component.js.map +1 -0
  376. package/components/data/form/form-action/form-action.props.js +18 -0
  377. package/components/data/form/form-action/form-action.props.js.map +1 -0
  378. package/components/data/form/form-action/form-action.styles.js +34 -0
  379. package/components/data/form/form-action/form-action.styles.js.map +1 -0
  380. package/components/data/form/form-body/form-body.component.js +20 -0
  381. package/components/data/form/form-body/form-body.component.js.map +1 -0
  382. package/components/data/form/form-body/form-body.props.js +11 -0
  383. package/components/data/form/form-body/form-body.props.js.map +1 -0
  384. package/components/data/form/form-body/form-body.styles.js +13 -0
  385. package/components/data/form/form-body/form-body.styles.js.map +1 -0
  386. package/components/data/form/form-field/form-field.component.js +257 -0
  387. package/components/data/form/form-field/form-field.component.js.map +1 -0
  388. package/components/data/form/form-field/form-field.props.js +35 -0
  389. package/components/data/form/form-field/form-field.props.js.map +1 -0
  390. package/components/data/form/form-field/form-field.styles.js +40 -0
  391. package/components/data/form/form-field/form-field.styles.js.map +1 -0
  392. package/components/data/form/form-footer/form-footer.component.js +20 -0
  393. package/components/data/form/form-footer/form-footer.component.js.map +1 -0
  394. package/components/data/form/form-footer/form-footer.props.js +11 -0
  395. package/components/data/form/form-footer/form-footer.props.js.map +1 -0
  396. package/components/data/form/form-footer/form-footer.styles.js +18 -0
  397. package/components/data/form/form-footer/form-footer.styles.js.map +1 -0
  398. package/components/data/form/form.component.js +465 -0
  399. package/components/data/form/form.component.js.map +1 -0
  400. package/components/data/form/form.props.js +38 -0
  401. package/components/data/form/form.props.js.map +1 -0
  402. package/components/data/form/form.styles.js +53 -0
  403. package/components/data/form/form.styles.js.map +1 -0
  404. package/components/data/list/list-action-template/list-action-template.component.js +28 -0
  405. package/components/data/list/list-action-template/list-action-template.component.js.map +1 -0
  406. package/components/data/list/list-action-template/list-action-template.props.js +12 -0
  407. package/components/data/list/list-action-template/list-action-template.props.js.map +1 -0
  408. package/components/data/list/list-action-template/list-action-template.styles.js +36 -0
  409. package/components/data/list/list-action-template/list-action-template.styles.js.map +1 -0
  410. package/components/data/list/list-template/list-template.component.js +55 -0
  411. package/components/data/list/list-template/list-template.component.js.map +1 -0
  412. package/components/data/list/list-template/list-template.props.js +13 -0
  413. package/components/data/list/list-template/list-template.props.js.map +1 -0
  414. package/components/data/list/list-template/list-template.styles.js +35 -0
  415. package/components/data/list/list-template/list-template.styles.js.map +1 -0
  416. package/components/data/list/list.component.js +690 -0
  417. package/components/data/list/list.component.js.map +1 -0
  418. package/components/data/list/list.props.js +53 -0
  419. package/components/data/list/list.props.js.map +1 -0
  420. package/components/data/list/list.styles.js +151 -0
  421. package/components/data/list/list.styles.js.map +1 -0
  422. package/components/data/liveform/liveform.component.js +98 -0
  423. package/components/data/liveform/liveform.component.js.map +1 -0
  424. package/components/device/barcodescanner/barcodescanner.component.js +69 -0
  425. package/components/device/barcodescanner/barcodescanner.component.js.map +1 -0
  426. package/components/device/barcodescanner/barcodescanner.props.js +19 -0
  427. package/components/device/barcodescanner/barcodescanner.props.js.map +1 -0
  428. package/components/device/barcodescanner/barcodescanner.styles.js +38 -0
  429. package/components/device/barcodescanner/barcodescanner.styles.js.map +1 -0
  430. package/components/device/camera/camera.component.js +84 -0
  431. package/components/device/camera/camera.component.js.map +1 -0
  432. package/components/device/camera/camera.props.js +25 -0
  433. package/components/device/camera/camera.props.js.map +1 -0
  434. package/components/device/camera/camera.styles.js +39 -0
  435. package/components/device/camera/camera.styles.js.map +1 -0
  436. package/components/dialogs/alertdialog/alertdialog.component.js +72 -0
  437. package/components/dialogs/alertdialog/alertdialog.component.js.map +1 -0
  438. package/components/dialogs/alertdialog/alertdialog.props.js +24 -0
  439. package/components/dialogs/alertdialog/alertdialog.props.js.map +1 -0
  440. package/components/dialogs/alertdialog/alertdialog.styles.js +34 -0
  441. package/components/dialogs/alertdialog/alertdialog.styles.js.map +1 -0
  442. package/components/dialogs/confirmdialog/confirmdialog.component.js +78 -0
  443. package/components/dialogs/confirmdialog/confirmdialog.component.js.map +1 -0
  444. package/components/dialogs/confirmdialog/confirmdialog.props.js +24 -0
  445. package/components/dialogs/confirmdialog/confirmdialog.props.js.map +1 -0
  446. package/components/dialogs/confirmdialog/confirmdialog.styles.js +58 -0
  447. package/components/dialogs/confirmdialog/confirmdialog.styles.js.map +1 -0
  448. package/components/dialogs/dialog/dialog.component.js +107 -0
  449. package/components/dialogs/dialog/dialog.component.js.map +1 -0
  450. package/components/dialogs/dialog/dialog.props.js +25 -0
  451. package/components/dialogs/dialog/dialog.props.js.map +1 -0
  452. package/components/dialogs/dialog/dialog.styles.js +78 -0
  453. package/components/dialogs/dialog/dialog.styles.js.map +1 -0
  454. package/components/dialogs/dialogactions/dialogactions.component.js +22 -0
  455. package/components/dialogs/dialogactions/dialogactions.component.js.map +1 -0
  456. package/components/dialogs/dialogactions/dialogactions.props.js +11 -0
  457. package/components/dialogs/dialogactions/dialogactions.props.js.map +1 -0
  458. package/components/dialogs/dialogactions/dialogactions.styles.js +17 -0
  459. package/components/dialogs/dialogactions/dialogactions.styles.js.map +1 -0
  460. package/components/dialogs/dialogcontent/dialogcontent.component.js +31 -0
  461. package/components/dialogs/dialogcontent/dialogcontent.component.js.map +1 -0
  462. package/components/dialogs/dialogcontent/dialogcontent.props.js +11 -0
  463. package/components/dialogs/dialogcontent/dialogcontent.props.js.map +1 -0
  464. package/components/dialogs/dialogcontent/dialogcontent.styles.js +15 -0
  465. package/components/dialogs/dialogcontent/dialogcontent.styles.js.map +1 -0
  466. package/components/input/basedataset/basedataset.component.js +232 -0
  467. package/components/input/basedataset/basedataset.component.js.map +1 -0
  468. package/components/input/basedataset/basedataset.props.js +33 -0
  469. package/components/input/basedataset/basedataset.props.js.map +1 -0
  470. package/components/input/basedataset/basedataset.styles.js +11 -0
  471. package/components/input/basedataset/basedataset.styles.js.map +1 -0
  472. package/components/input/baseinput/baseinput.component.js +203 -0
  473. package/components/input/baseinput/baseinput.component.js.map +1 -0
  474. package/components/input/baseinput/baseinput.props.js +32 -0
  475. package/components/input/baseinput/baseinput.props.js.map +1 -0
  476. package/components/input/baseinput/baseinput.styles.js +11 -0
  477. package/components/input/baseinput/baseinput.styles.js.map +1 -0
  478. package/components/input/basenumber/basenumber.component.js +357 -0
  479. package/components/input/basenumber/basenumber.component.js.map +1 -0
  480. package/components/input/basenumber/basenumber.props.js +28 -0
  481. package/components/input/basenumber/basenumber.props.js.map +1 -0
  482. package/components/input/basenumber/basenumber.styles.js +11 -0
  483. package/components/input/basenumber/basenumber.styles.js.map +1 -0
  484. package/components/input/calendar/calendar.component.js +173 -0
  485. package/components/input/calendar/calendar.component.js.map +1 -0
  486. package/components/input/calendar/calendar.props.js +14 -0
  487. package/components/input/calendar/calendar.props.js.map +1 -0
  488. package/components/input/calendar/calendar.styles.js +162 -0
  489. package/components/input/calendar/calendar.styles.js.map +1 -0
  490. package/components/input/calendar/views/month-view.js +211 -0
  491. package/components/input/calendar/views/month-view.js.map +1 -0
  492. package/components/input/calendar/views/month-view.styles.js +39 -0
  493. package/components/input/calendar/views/month-view.styles.js.map +1 -0
  494. package/components/input/checkbox/checkbox.component.js +124 -0
  495. package/components/input/checkbox/checkbox.component.js.map +1 -0
  496. package/components/input/checkbox/checkbox.props.js +18 -0
  497. package/components/input/checkbox/checkbox.props.js.map +1 -0
  498. package/components/input/checkbox/checkbox.styles.js +94 -0
  499. package/components/input/checkbox/checkbox.styles.js.map +1 -0
  500. package/components/input/checkboxset/checkboxset.component.js +159 -0
  501. package/components/input/checkboxset/checkboxset.component.js.map +1 -0
  502. package/components/input/checkboxset/checkboxset.props.js +21 -0
  503. package/components/input/checkboxset/checkboxset.props.js.map +1 -0
  504. package/components/input/checkboxset/checkboxset.styles.js +88 -0
  505. package/components/input/checkboxset/checkboxset.styles.js.map +1 -0
  506. package/components/input/chips/chips.component.js +410 -0
  507. package/components/input/chips/chips.component.js.map +1 -0
  508. package/components/input/chips/chips.props.js +30 -0
  509. package/components/input/chips/chips.props.js.map +1 -0
  510. package/components/input/chips/chips.styles.js +221 -0
  511. package/components/input/chips/chips.styles.js.map +1 -0
  512. package/components/input/composite/composite.component.js +25 -0
  513. package/components/input/composite/composite.component.js.map +1 -0
  514. package/components/input/composite/composite.props.js +12 -0
  515. package/components/input/composite/composite.props.js.map +1 -0
  516. package/components/input/composite/composite.styles.js +29 -0
  517. package/components/input/composite/composite.styles.js.map +1 -0
  518. package/components/input/currency/currency.component.js +120 -0
  519. package/components/input/currency/currency.component.js.map +1 -0
  520. package/components/input/currency/currency.props.js +13 -0
  521. package/components/input/currency/currency.props.js.map +1 -0
  522. package/components/input/currency/currency.styles.js +148 -0
  523. package/components/input/currency/currency.styles.js.map +1 -0
  524. package/components/input/epoch/base-datetime.component.js +496 -0
  525. package/components/input/epoch/base-datetime.component.js.map +1 -0
  526. package/components/input/epoch/date/date.component.js +20 -0
  527. package/components/input/epoch/date/date.component.js.map +1 -0
  528. package/components/input/epoch/date/date.props.js +11 -0
  529. package/components/input/epoch/date/date.props.js.map +1 -0
  530. package/components/input/epoch/date/date.styles.js +48 -0
  531. package/components/input/epoch/date/date.styles.js.map +1 -0
  532. package/components/input/epoch/date-picker.component.js +136 -0
  533. package/components/input/epoch/date-picker.component.js.map +1 -0
  534. package/components/input/epoch/datetime/datetime.component.js +20 -0
  535. package/components/input/epoch/datetime/datetime.component.js.map +1 -0
  536. package/components/input/epoch/datetime/datetime.props.js +36 -0
  537. package/components/input/epoch/datetime/datetime.props.js.map +1 -0
  538. package/components/input/epoch/datetime/datetime.styles.js +163 -0
  539. package/components/input/epoch/datetime/datetime.styles.js.map +1 -0
  540. package/components/input/epoch/time/time.component.js +26 -0
  541. package/components/input/epoch/time/time.component.js.map +1 -0
  542. package/components/input/epoch/time/time.props.js +15 -0
  543. package/components/input/epoch/time/time.props.js.map +1 -0
  544. package/components/input/epoch/time/time.styles.js +48 -0
  545. package/components/input/epoch/time/time.styles.js.map +1 -0
  546. package/components/input/epoch/wheel-date-picker.component.js +206 -0
  547. package/components/input/epoch/wheel-date-picker.component.js.map +1 -0
  548. package/components/input/epoch/wheel-time-picker.component.js +107 -0
  549. package/components/input/epoch/wheel-time-picker.component.js.map +1 -0
  550. package/components/input/epoch/wheelpicker/wheelpicker.component.js +97 -0
  551. package/components/input/epoch/wheelpicker/wheelpicker.component.js.map +1 -0
  552. package/components/input/epoch/wheelpicker/wheelpicker.props.js +17 -0
  553. package/components/input/epoch/wheelpicker/wheelpicker.props.js.map +1 -0
  554. package/components/input/epoch/wheelpicker/wheelpicker.styles.js +55 -0
  555. package/components/input/epoch/wheelpicker/wheelpicker.styles.js.map +1 -0
  556. package/components/input/epoch/wheelpickermodal/date/date-picker-modal.component.js +85 -0
  557. package/components/input/epoch/wheelpickermodal/date/date-picker-modal.component.js.map +1 -0
  558. package/components/input/epoch/wheelpickermodal/date/date-picker-modal.props.js +20 -0
  559. package/components/input/epoch/wheelpickermodal/date/date-picker-modal.props.js.map +1 -0
  560. package/components/input/epoch/wheelpickermodal/styles/datetime-picker-modal.styles.js +66 -0
  561. package/components/input/epoch/wheelpickermodal/styles/datetime-picker-modal.styles.js.map +1 -0
  562. package/components/input/epoch/wheelpickermodal/time/time-picker-modal.component.js +83 -0
  563. package/components/input/epoch/wheelpickermodal/time/time-picker-modal.component.js.map +1 -0
  564. package/components/input/epoch/wheelpickermodal/time/time-picker-modal.props.js +19 -0
  565. package/components/input/epoch/wheelpickermodal/time/time-picker-modal.props.js.map +1 -0
  566. package/components/input/fileupload/fileupload.component.js +70 -0
  567. package/components/input/fileupload/fileupload.component.js.map +1 -0
  568. package/components/input/fileupload/fileupload.props.js +19 -0
  569. package/components/input/fileupload/fileupload.props.js.map +1 -0
  570. package/components/input/fileupload/fileupload.styles.js +27 -0
  571. package/components/input/fileupload/fileupload.styles.js.map +1 -0
  572. package/components/input/number/number.component.js +86 -0
  573. package/components/input/number/number.component.js.map +1 -0
  574. package/components/input/number/number.props.js +13 -0
  575. package/components/input/number/number.props.js.map +1 -0
  576. package/components/input/number/number.styles.js +93 -0
  577. package/components/input/number/number.styles.js.map +1 -0
  578. package/components/input/radioset/radioset.component.js +147 -0
  579. package/components/input/radioset/radioset.component.js.map +1 -0
  580. package/components/input/radioset/radioset.props.js +20 -0
  581. package/components/input/radioset/radioset.props.js.map +1 -0
  582. package/components/input/radioset/radioset.styles.js +102 -0
  583. package/components/input/radioset/radioset.styles.js.map +1 -0
  584. package/components/input/rating/rating.component.js +155 -0
  585. package/components/input/rating/rating.component.js.map +1 -0
  586. package/components/input/rating/rating.props.js +25 -0
  587. package/components/input/rating/rating.props.js.map +1 -0
  588. package/components/input/rating/rating.styles.js +48 -0
  589. package/components/input/rating/rating.styles.js.map +1 -0
  590. package/components/input/select/select.component.js +303 -0
  591. package/components/input/select/select.component.js.map +1 -0
  592. package/components/input/select/select.props.js +12 -0
  593. package/components/input/select/select.props.js.map +1 -0
  594. package/components/input/select/select.styles.js +178 -0
  595. package/components/input/select/select.styles.js.map +1 -0
  596. package/components/input/slider/slider.component.js +538 -0
  597. package/components/input/slider/slider.component.js.map +1 -0
  598. package/components/input/slider/slider.props.js +20 -0
  599. package/components/input/slider/slider.props.js.map +1 -0
  600. package/components/input/slider/slider.styles.js +95 -0
  601. package/components/input/slider/slider.styles.js.map +1 -0
  602. package/components/input/switch/switch.component.js +99 -0
  603. package/components/input/switch/switch.component.js.map +1 -0
  604. package/components/input/switch/switch.props.js +13 -0
  605. package/components/input/switch/switch.props.js.map +1 -0
  606. package/components/input/switch/switch.styles.js +192 -0
  607. package/components/input/switch/switch.styles.js.map +1 -0
  608. package/components/input/text/text.component.js +132 -0
  609. package/components/input/text/text.component.js.map +1 -0
  610. package/components/input/text/text.props.js +21 -0
  611. package/components/input/text/text.props.js.map +1 -0
  612. package/components/input/text/text.styles.js +130 -0
  613. package/components/input/text/text.styles.js.map +1 -0
  614. package/components/input/textarea/textarea.component.js +88 -0
  615. package/components/input/textarea/textarea.component.js.map +1 -0
  616. package/components/input/textarea/textarea.props.js +15 -0
  617. package/components/input/textarea/textarea.props.js.map +1 -0
  618. package/components/input/textarea/textarea.styles.js +84 -0
  619. package/components/input/textarea/textarea.styles.js.map +1 -0
  620. package/components/input/toggle/toggle.component.js +202 -0
  621. package/components/input/toggle/toggle.component.js.map +1 -0
  622. package/components/input/toggle/toggle.props.js +32 -0
  623. package/components/input/toggle/toggle.props.js.map +1 -0
  624. package/components/input/toggle/toggle.styles.js +97 -0
  625. package/components/input/toggle/toggle.styles.js.map +1 -0
  626. package/components/navigation/appnavbar/appnavbar.component.js +114 -0
  627. package/components/navigation/appnavbar/appnavbar.component.js.map +1 -0
  628. package/components/navigation/appnavbar/appnavbar.props.js +22 -0
  629. package/components/navigation/appnavbar/appnavbar.props.js.map +1 -0
  630. package/components/navigation/appnavbar/appnavbar.styles.js +169 -0
  631. package/components/navigation/appnavbar/appnavbar.styles.js.map +1 -0
  632. package/components/navigation/basenav/basenav.component.js +72 -0
  633. package/components/navigation/basenav/basenav.component.js.map +1 -0
  634. package/components/navigation/basenav/basenav.props.js +18 -0
  635. package/components/navigation/basenav/basenav.props.js.map +1 -0
  636. package/components/navigation/basenav/basenav.styles.js +11 -0
  637. package/components/navigation/basenav/basenav.styles.js.map +1 -0
  638. package/components/navigation/menu/menu.component.js +66 -0
  639. package/components/navigation/menu/menu.component.js.map +1 -0
  640. package/components/navigation/menu/menu.props.js +15 -0
  641. package/components/navigation/menu/menu.props.js.map +1 -0
  642. package/components/navigation/menu/menu.styles.js +70 -0
  643. package/components/navigation/menu/menu.styles.js.map +1 -0
  644. package/components/navigation/navbar/navbar.component.js +78 -0
  645. package/components/navigation/navbar/navbar.component.js.map +1 -0
  646. package/components/navigation/navbar/navbar.props.js +16 -0
  647. package/components/navigation/navbar/navbar.props.js.map +1 -0
  648. package/components/navigation/navbar/navbar.styles.js +41 -0
  649. package/components/navigation/navbar/navbar.styles.js.map +1 -0
  650. package/components/navigation/navitem/navitem.component.js +70 -0
  651. package/components/navigation/navitem/navitem.component.js.map +1 -0
  652. package/components/navigation/navitem/navitem.props.js +19 -0
  653. package/components/navigation/navitem/navitem.props.js.map +1 -0
  654. package/components/navigation/navitem/navitem.styles.js +80 -0
  655. package/components/navigation/navitem/navitem.styles.js.map +1 -0
  656. package/components/navigation/popover/popover.component.js +220 -0
  657. package/components/navigation/popover/popover.component.js.map +1 -0
  658. package/components/navigation/popover/popover.props.js +34 -0
  659. package/components/navigation/popover/popover.props.js.map +1 -0
  660. package/components/navigation/popover/popover.styles.js +92 -0
  661. package/components/navigation/popover/popover.styles.js.map +1 -0
  662. package/components/page/content/content.component.js +16 -0
  663. package/components/page/content/content.component.js.map +1 -0
  664. package/components/page/content/content.props.js +2 -0
  665. package/components/page/content/content.props.js.map +1 -0
  666. package/components/page/content/content.styles.js +13 -0
  667. package/components/page/content/content.styles.js.map +1 -0
  668. package/components/page/left-panel/left-panel.component.js +64 -0
  669. package/components/page/left-panel/left-panel.component.js.map +1 -0
  670. package/components/page/left-panel/left-panel.props.js +12 -0
  671. package/components/page/left-panel/left-panel.props.js.map +1 -0
  672. package/components/page/left-panel/left-panel.styles.js +18 -0
  673. package/components/page/left-panel/left-panel.styles.js.map +1 -0
  674. package/components/page/page-content/page-content.component.js +207 -0
  675. package/components/page/page-content/page-content.component.js.map +1 -0
  676. package/components/page/page-content/page-content.props.js +18 -0
  677. package/components/page/page-content/page-content.props.js.map +1 -0
  678. package/components/page/page-content/page-content.styles.js +20 -0
  679. package/components/page/page-content/page-content.styles.js.map +1 -0
  680. package/components/page/page.component.js +48 -0
  681. package/components/page/page.component.js.map +1 -0
  682. package/components/page/page.props.js +15 -0
  683. package/components/page/page.props.js.map +1 -0
  684. package/components/page/page.styles.js +24 -0
  685. package/components/page/page.styles.js.map +1 -0
  686. package/components/page/partial/partial.component.js +42 -0
  687. package/components/page/partial/partial.component.js.map +1 -0
  688. package/components/page/partial/partial.props.js +2 -0
  689. package/components/page/partial/partial.props.js.map +1 -0
  690. package/components/page/partial/partial.styles.js +18 -0
  691. package/components/page/partial/partial.styles.js.map +1 -0
  692. package/components/page/partial-container/partial-container.component.js +35 -0
  693. package/components/page/partial-container/partial-container.component.js.map +1 -0
  694. package/components/page/partial-container/partial-container.props.js +13 -0
  695. package/components/page/partial-container/partial-container.props.js.map +1 -0
  696. package/components/page/partial-container/partial-container.styles.js +14 -0
  697. package/components/page/partial-container/partial-container.styles.js.map +1 -0
  698. package/components/page/tabbar/curve.js +84 -0
  699. package/components/page/tabbar/curve.js.map +1 -0
  700. package/components/page/tabbar/tabbar.component.js +258 -0
  701. package/components/page/tabbar/tabbar.component.js.map +1 -0
  702. package/components/page/tabbar/tabbar.props.js +29 -0
  703. package/components/page/tabbar/tabbar.props.js.map +1 -0
  704. package/components/page/tabbar/tabbar.styles.js +160 -0
  705. package/components/page/tabbar/tabbar.styles.js.map +1 -0
  706. package/components/prefab/prefab-container.component.js +42 -0
  707. package/components/prefab/prefab-container.component.js.map +1 -0
  708. package/components/prefab/prefab-container.props.js +2 -0
  709. package/components/prefab/prefab-container.props.js.map +1 -0
  710. package/components/prefab/prefab-container.styles.js +16 -0
  711. package/components/prefab/prefab-container.styles.js.map +1 -0
  712. package/components-prism/advanced/carousel/carousel.component.js +322 -0
  713. package/components-prism/advanced/carousel/carousel.component.js.map +1 -0
  714. package/components-prism/advanced/carousel/carousel.props.js +24 -0
  715. package/components-prism/advanced/carousel/carousel.props.js.map +1 -0
  716. package/components-prism/advanced/carousel/carousel.styles.js +179 -0
  717. package/components-prism/advanced/carousel/carousel.styles.js.map +1 -0
  718. package/components-prism/basic/progress-bar/progress-bar.component.js +227 -0
  719. package/components-prism/basic/progress-bar/progress-bar.component.js.map +1 -0
  720. package/components-prism/basic/progress-bar/progress-bar.props.js +20 -0
  721. package/components-prism/basic/progress-bar/progress-bar.props.js.map +1 -0
  722. package/components-prism/basic/progress-bar/progress-bar.styles.js +43 -0
  723. package/components-prism/basic/progress-bar/progress-bar.styles.js.map +1 -0
  724. package/components-prism/basic/progress-circle/progress-circle.component.js +80 -0
  725. package/components-prism/basic/progress-circle/progress-circle.component.js.map +1 -0
  726. package/components-prism/basic/progress-circle/progress-circle.props.js +19 -0
  727. package/components-prism/basic/progress-circle/progress-circle.props.js.map +1 -0
  728. package/components-prism/basic/progress-circle/progress-circle.styles.js +82 -0
  729. package/components-prism/basic/progress-circle/progress-circle.styles.js.map +1 -0
  730. package/components-prism/data/list/list-template/list-template.styles.js +27 -0
  731. package/components-prism/data/list/list-template/list-template.styles.js.map +1 -0
  732. package/components-prism/input/slider/Thumb.js +35 -0
  733. package/components-prism/input/slider/Thumb.js.map +1 -0
  734. package/components-prism/input/slider/slider.component.js +108 -0
  735. package/components-prism/input/slider/slider.component.js.map +1 -0
  736. package/components-prism/input/slider/slider.props.js +20 -0
  737. package/components-prism/input/slider/slider.props.js.map +1 -0
  738. package/components-prism/input/slider/slider.styles.js +135 -0
  739. package/components-prism/input/slider/slider.styles.js.map +1 -0
  740. package/components-prism/input/slider/withSlider.js +339 -0
  741. package/components-prism/input/slider/withSlider.js.map +1 -0
  742. package/core/AppConfig.js +2 -0
  743. package/core/AppConfig.js.map +1 -0
  744. package/core/accessibility.js +195 -0
  745. package/core/accessibility.js.map +1 -0
  746. package/core/advanced-promise-rejection-tracker.js +208 -0
  747. package/core/advanced-promise-rejection-tracker.js.map +1 -0
  748. package/core/asset.provider.js +5 -0
  749. package/core/asset.provider.js.map +1 -0
  750. package/core/auto-layout-host.component.js +31 -0
  751. package/core/auto-layout-host.component.js.map +1 -0
  752. package/core/auto-layout.utils.js +250 -0
  753. package/core/auto-layout.utils.js.map +1 -0
  754. package/core/base.component.js +671 -0
  755. package/core/base.component.js.map +1 -0
  756. package/core/components/error-fallback/error-fallback.component.js +172 -0
  757. package/core/components/error-fallback/error-fallback.component.js.map +1 -0
  758. package/core/components/error-fallback/error-fallback.styles.js +227 -0
  759. package/core/components/error-fallback/error-fallback.styles.js.map +1 -0
  760. package/core/components/floatinglabel.component.js +86 -0
  761. package/core/components/floatinglabel.component.js.map +1 -0
  762. package/core/components/sticky-base.component.js +54 -0
  763. package/core/components/sticky-base.component.js.map +1 -0
  764. package/core/components/sticky-container.component.js +34 -0
  765. package/core/components/sticky-container.component.js.map +1 -0
  766. package/core/components/sticky-container.styles.js +98 -0
  767. package/core/components/sticky-container.styles.js.map +1 -0
  768. package/core/components/sticky-nav.component.js +28 -0
  769. package/core/components/sticky-nav.component.js.map +1 -0
  770. package/core/components/textinput.component.js +226 -0
  771. package/core/components/textinput.component.js.map +1 -0
  772. package/core/components-prism/progress-circle.js +217 -0
  773. package/core/components-prism/progress-circle.js.map +1 -0
  774. package/core/constant.service.js +22 -0
  775. package/core/constant.service.js.map +1 -0
  776. package/core/constants/currency-constants.js +1066 -0
  777. package/core/constants/currency-constants.js.map +1 -0
  778. package/core/currency-constants.js +1065 -0
  779. package/core/currency-constants.js.map +1 -0
  780. package/core/device/av-service.js +8 -0
  781. package/core/device/av-service.js.map +1 -0
  782. package/core/device/calendar-service.js +8 -0
  783. package/core/device/calendar-service.js.map +1 -0
  784. package/core/device/camera-service.js +11 -0
  785. package/core/device/camera-service.js.map +1 -0
  786. package/core/device/contacts-service.js +8 -0
  787. package/core/device/contacts-service.js.map +1 -0
  788. package/core/device/fileupload-service.js +8 -0
  789. package/core/device/fileupload-service.js.map +1 -0
  790. package/core/device/location-service.js +8 -0
  791. package/core/device/location-service.js.map +1 -0
  792. package/core/device/openfile-service.js +10 -0
  793. package/core/device/openfile-service.js.map +1 -0
  794. package/core/device/scan-service.js +11 -0
  795. package/core/device/scan-service.js.map +1 -0
  796. package/core/display.manager.js +5 -0
  797. package/core/display.manager.js.map +1 -0
  798. package/core/error-boundary.component.js +64 -0
  799. package/core/error-boundary.component.js.map +1 -0
  800. package/core/event-notifier.js +69 -0
  801. package/core/event-notifier.js.map +1 -0
  802. package/core/file-extension-types.js +70 -0
  803. package/core/file-extension-types.js.map +1 -0
  804. package/core/fixed-view.component.js +94 -0
  805. package/core/fixed-view.component.js.map +1 -0
  806. package/core/formatters.js +70 -0
  807. package/core/formatters.js.map +1 -0
  808. package/core/global-error-handler.service.js +103 -0
  809. package/core/global-error-handler.service.js.map +1 -0
  810. package/core/i18n.service.js +2 -0
  811. package/core/i18n.service.js.map +1 -0
  812. package/core/if.component.js +35 -0
  813. package/core/if.component.js.map +1 -0
  814. package/core/imageSizeEstimator.js +51 -0
  815. package/core/imageSizeEstimator.js.map +1 -0
  816. package/core/injector.js +27 -0
  817. package/core/injector.js.map +1 -0
  818. package/core/key.extractor.js +21 -0
  819. package/core/key.extractor.js.map +1 -0
  820. package/core/logger.js +123 -0
  821. package/core/logger.js.map +1 -0
  822. package/core/modal.service.js +5 -0
  823. package/core/modal.service.js.map +1 -0
  824. package/core/navigation.service.js +70 -0
  825. package/core/navigation.service.js.map +1 -0
  826. package/core/network.service.js +327 -0
  827. package/core/network.service.js.map +1 -0
  828. package/core/partial.service.js +5 -0
  829. package/core/partial.service.js.map +1 -0
  830. package/core/props.provider.js +88 -0
  831. package/core/props.provider.js.map +1 -0
  832. package/core/responsive.utils.js +51 -0
  833. package/core/responsive.utils.js.map +1 -0
  834. package/core/screen-capture-protection.service.js +5 -0
  835. package/core/screen-capture-protection.service.js.map +1 -0
  836. package/core/scroll-view.component.js +52 -0
  837. package/core/scroll-view.component.js.map +1 -0
  838. package/core/secure-storage.service.js +55 -0
  839. package/core/secure-storage.service.js.map +1 -0
  840. package/core/security.service.js +5 -0
  841. package/core/security.service.js.map +1 -0
  842. package/core/spinner.service.js +5 -0
  843. package/core/spinner.service.js.map +1 -0
  844. package/core/sticky-view.component.js +51 -0
  845. package/core/sticky-view.component.js.map +1 -0
  846. package/core/sticky-wrapper.js +133 -0
  847. package/core/sticky-wrapper.js.map +1 -0
  848. package/core/storage.service.js +38 -0
  849. package/core/storage.service.js.map +1 -0
  850. package/core/tappable.component.js +163 -0
  851. package/core/tappable.component.js.map +1 -0
  852. package/core/testid.provider.js +5 -0
  853. package/core/testid.provider.js.map +1 -0
  854. package/core/toast.service.js +5 -0
  855. package/core/toast.service.js.map +1 -0
  856. package/core/ui-preferences.context.js +10 -0
  857. package/core/ui-preferences.context.js.map +1 -0
  858. package/core/utils.js +867 -0
  859. package/core/utils.js.map +1 -0
  860. package/core/viewport.js +45 -0
  861. package/core/viewport.js.map +1 -0
  862. package/core/wm-component-tree.js +58 -0
  863. package/core/wm-component-tree.js.map +1 -0
  864. package/gestures/carousel-swipe.animation.js +225 -0
  865. package/gestures/carousel-swipe.animation.js.map +1 -0
  866. package/gestures/swipe.animation.js +220 -0
  867. package/gestures/swipe.animation.js.map +1 -0
  868. package/gestures-prism/carousel.flatlist.js +349 -0
  869. package/gestures-prism/carousel.flatlist.js.map +1 -0
  870. package/index.js +2 -0
  871. package/index.js.map +1 -0
  872. package/npm-shrinkwrap.json +26212 -0
  873. package/package-lock.json +26212 -0
  874. package/package.json +291 -0
  875. package/runtime/App.js +763 -0
  876. package/runtime/App.js.map +1 -0
  877. package/runtime/App.navigator.js +113 -0
  878. package/runtime/App.navigator.js.map +1 -0
  879. package/runtime/base-customwidget.component.js +52 -0
  880. package/runtime/base-customwidget.component.js.map +1 -0
  881. package/runtime/base-fragment.component.js +418 -0
  882. package/runtime/base-fragment.component.js.map +1 -0
  883. package/runtime/base-page.component.js +233 -0
  884. package/runtime/base-page.component.js.map +1 -0
  885. package/runtime/base-partial.component.js +63 -0
  886. package/runtime/base-partial.component.js.map +1 -0
  887. package/runtime/base-prefab.component.js +87 -0
  888. package/runtime/base-prefab.component.js.map +1 -0
  889. package/runtime/lib-patch.js +25 -0
  890. package/runtime/lib-patch.js.map +1 -0
  891. package/runtime/memo.component.js +44 -0
  892. package/runtime/memo.component.js.map +1 -0
  893. package/runtime/navigator/drawer.navigator.js +41 -0
  894. package/runtime/navigator/drawer.navigator.js.map +1 -0
  895. package/runtime/navigator/stack.navigator.js +78 -0
  896. package/runtime/navigator/stack.navigator.js.map +1 -0
  897. package/runtime/platform.api.js +7 -0
  898. package/runtime/platform.api.js.map +1 -0
  899. package/runtime/services/app-display-manager.service.js +52 -0
  900. package/runtime/services/app-display-manager.service.js.map +1 -0
  901. package/runtime/services/app-i18n.service.js +89 -0
  902. package/runtime/services/app-i18n.service.js.map +1 -0
  903. package/runtime/services/app-modal.service.js +73 -0
  904. package/runtime/services/app-modal.service.js.map +1 -0
  905. package/runtime/services/app-security.service.js +256 -0
  906. package/runtime/services/app-security.service.js.map +1 -0
  907. package/runtime/services/app-spinner.service.js +74 -0
  908. package/runtime/services/app-spinner.service.js.map +1 -0
  909. package/runtime/services/app-toast.service.js +60 -0
  910. package/runtime/services/app-toast.service.js.map +1 -0
  911. package/runtime/services/device/calendar-service.js +95 -0
  912. package/runtime/services/device/calendar-service.js.map +1 -0
  913. package/runtime/services/device/camera-service.js +377 -0
  914. package/runtime/services/device/camera-service.js.map +1 -0
  915. package/runtime/services/device/contacts-service.js +34 -0
  916. package/runtime/services/device/contacts-service.js.map +1 -0
  917. package/runtime/services/device/location-service.js +16 -0
  918. package/runtime/services/device/location-service.js.map +1 -0
  919. package/runtime/services/device/permission-service.js +5 -0
  920. package/runtime/services/device/permission-service.js.map +1 -0
  921. package/runtime/services/device/permissions.js +45 -0
  922. package/runtime/services/device/permissions.js.map +1 -0
  923. package/runtime/services/device/scan-service.js +163 -0
  924. package/runtime/services/device/scan-service.js.map +1 -0
  925. package/runtime/services/partial.service.js +26 -0
  926. package/runtime/services/partial.service.js.map +1 -0
  927. package/runtime/services/webprocess.service.js +107 -0
  928. package/runtime/services/webprocess.service.js.map +1 -0
  929. package/runtime/watcher.js +147 -0
  930. package/runtime/watcher.js.map +1 -0
  931. package/styles/MediaQueryList.js +19 -0
  932. package/styles/MediaQueryList.js.map +1 -0
  933. package/styles/background.component.js +317 -0
  934. package/styles/background.component.js.map +1 -0
  935. package/styles/calc.js +165 -0
  936. package/styles/calc.js.map +1 -0
  937. package/styles/color-mix.js +82 -0
  938. package/styles/color-mix.js.map +1 -0
  939. package/styles/style-prop.validator.js +467 -0
  940. package/styles/style-prop.validator.js.map +1 -0
  941. package/styles/style-props.js +105 -0
  942. package/styles/style-props.js.map +1 -0
  943. package/styles/theme.js +725 -0
  944. package/styles/theme.js.map +1 -0
  945. package/styles/theme.variables.js +444 -0
  946. package/styles/theme.variables.js.map +1 -0
  947. package/variables/base-variable.js +125 -0
  948. package/variables/base-variable.js.map +1 -0
  949. package/variables/device/calendar/create-event.operation.js +53 -0
  950. package/variables/device/calendar/create-event.operation.js.map +1 -0
  951. package/variables/device/calendar/delete-event.operation.js +15 -0
  952. package/variables/device/calendar/delete-event.operation.js.map +1 -0
  953. package/variables/device/calendar/get-events.operation.js +15 -0
  954. package/variables/device/calendar/get-events.operation.js.map +1 -0
  955. package/variables/device/camera/capture-image.operation.js +13 -0
  956. package/variables/device/camera/capture-image.operation.js.map +1 -0
  957. package/variables/device/camera/capture-video.operation.js +12 -0
  958. package/variables/device/camera/capture-video.operation.js.map +1 -0
  959. package/variables/device/contacts/get-contacts.operation.js +15 -0
  960. package/variables/device/contacts/get-contacts.operation.js.map +1 -0
  961. package/variables/device/device/app-info.operation.js +13 -0
  962. package/variables/device/device/app-info.operation.js.map +1 -0
  963. package/variables/device/device/current-geo-position.operation.js +15 -0
  964. package/variables/device/device/current-geo-position.operation.js.map +1 -0
  965. package/variables/device/device/device-info.operation.js +12 -0
  966. package/variables/device/device/device-info.operation.js.map +1 -0
  967. package/variables/device/device/network-info.operation.js +33 -0
  968. package/variables/device/device/network-info.operation.js.map +1 -0
  969. package/variables/device/device/vibrate.operation.js +8 -0
  970. package/variables/device/device/vibrate.operation.js.map +1 -0
  971. package/variables/device/file/open-file.operation.js +71 -0
  972. package/variables/device/file/open-file.operation.js.map +1 -0
  973. package/variables/device/file/upload-file.operation.js +66 -0
  974. package/variables/device/file/upload-file.operation.js.map +1 -0
  975. package/variables/device/operation.provider.js +11 -0
  976. package/variables/device/operation.provider.js.map +1 -0
  977. package/variables/device/scan/scan.operation.js +15 -0
  978. package/variables/device/scan/scan.operation.js.map +1 -0
  979. package/variables/device-variable.js +28 -0
  980. package/variables/device-variable.js.map +1 -0
  981. package/variables/http.service.js +84 -0
  982. package/variables/http.service.js.map +1 -0
  983. package/variables/live-variable.js +130 -0
  984. package/variables/live-variable.js.map +1 -0
  985. package/variables/model-variable.js +47 -0
  986. package/variables/model-variable.js.map +1 -0
  987. package/variables/service-variable.js +143 -0
  988. package/variables/service-variable.js.map +1 -0
  989. package/variables/utils/dataset-util.js +139 -0
  990. package/variables/utils/dataset-util.js.map +1 -0
  991. package/variables/utils/inflight-queue.js +114 -0
  992. package/variables/utils/inflight-queue.js.map +1 -0
  993. package/variables/utils/variable.constants.js +22 -0
  994. package/variables/utils/variable.constants.js.map +1 -0
  995. package/variables/utils/variable.utils.js +189 -0
  996. package/variables/utils/variable.utils.js.map +1 -0
  997. package/wm-namespace.js +15 -0
  998. package/wm-namespace.js.map +1 -0
@@ -0,0 +1,82 @@
1
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
2
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
3
+ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
4
+ import React from 'react';
5
+ import { ScrollView } from 'react-native-gesture-handler';
6
+ import { BaseComponent, BaseComponentState } from '@wavemaker-ai/app-rn-runtime/core/base.component';
7
+ import WmTabpaneProps from './tabpane.props';
8
+ import { DEFAULT_CLASS } from './tabpane.styles';
9
+ export class WmTabpaneState extends BaseComponentState {
10
+ constructor(...args) {
11
+ super(...args);
12
+ _defineProperty(this, "isPartialLoaded", false);
13
+ _defineProperty(this, "isActive", false);
14
+ }
15
+ }
16
+ export default class WmTabpane extends BaseComponent {
17
+ constructor(props) {
18
+ super(props, DEFAULT_CLASS, new WmTabpaneProps(), new WmTabpaneState());
19
+ _defineProperty(this, "paneId", "");
20
+ this.subscribe('scroll', event => {
21
+ return this.state.isActive;
22
+ });
23
+ }
24
+ onPartialLoad() {
25
+ this.invokeEventCallback('onLoad', [null, this]);
26
+ }
27
+ renderContent(props) {
28
+ if (props.renderPartial) {
29
+ if (!this.state.isPartialLoaded) {
30
+ setTimeout(() => {
31
+ this.updateState({
32
+ isPartialLoaded: true
33
+ });
34
+ });
35
+ }
36
+ return props.renderPartial(props, this.onPartialLoad.bind(this));
37
+ }
38
+ return props.children;
39
+ }
40
+ showView() {
41
+ return this.isVisible() && this.state.isActive;
42
+ }
43
+ componentDidMount() {
44
+ const tabs = this.parent;
45
+ // When skeleton is enabled in the tabs component, the parent would be WMSkeleton which doesnot have addTabPane function
46
+ if (tabs.addTabPane) {
47
+ tabs.addTabPane(this.proxy);
48
+ }
49
+ super.componentDidMount();
50
+ }
51
+ componentWillUnmount() {
52
+ const tabs = this.parent;
53
+ if (tabs.removeTabPane) {
54
+ tabs.removeTabPane(this);
55
+ }
56
+ }
57
+ _onSelect() {
58
+ this.updateState({
59
+ isActive: true
60
+ });
61
+ this.invokeEventCallback('onSelect', [null, this.proxy]);
62
+ }
63
+ _onDeselect() {
64
+ this.updateState({
65
+ isActive: false
66
+ });
67
+ this.invokeEventCallback('onDeselect', [null, this.proxy]);
68
+ }
69
+ select() {
70
+ this.parent.selectTabPane(this);
71
+ }
72
+ renderWidget(props) {
73
+ return /*#__PURE__*/React.createElement(ScrollView, {
74
+ style: this.styles.root,
75
+ onScroll: event => {
76
+ this.notify('scroll', [event]);
77
+ },
78
+ onLayout: event => this.handleLayout(event)
79
+ }, this._background, this.renderContent(props));
80
+ }
81
+ }
82
+ //# sourceMappingURL=tabpane.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","ScrollView","BaseComponent","BaseComponentState","WmTabpaneProps","DEFAULT_CLASS","WmTabpaneState","constructor","args","_defineProperty","WmTabpane","props","subscribe","event","state","isActive","onPartialLoad","invokeEventCallback","renderContent","renderPartial","isPartialLoaded","setTimeout","updateState","bind","children","showView","isVisible","componentDidMount","tabs","parent","addTabPane","proxy","componentWillUnmount","removeTabPane","_onSelect","_onDeselect","select","selectTabPane","renderWidget","createElement","style","styles","root","onScroll","notify","onLayout","handleLayout","_background"],"sources":["tabpane.component.tsx"],"sourcesContent":["import React from 'react';\nimport { View } from 'react-native';\nimport { ScrollView } from 'react-native-gesture-handler'\nimport { BaseComponent, BaseComponentState } from '@wavemaker-ai/app-rn-runtime/core/base.component';\n\nimport WmTabpaneProps from './tabpane.props';\nimport { DEFAULT_CLASS, WmTabpaneStyles } from './tabpane.styles';\nimport WmTabs from '../tabs.component';\n\nexport class WmTabpaneState extends BaseComponentState<WmTabpaneProps> {\n isPartialLoaded = false;\n isActive = false;\n}\n\nexport default class WmTabpane extends BaseComponent<WmTabpaneProps, WmTabpaneState, WmTabpaneStyles> {\n public paneId: string = \"\";\n constructor(props: WmTabpaneProps) {\n super(props, DEFAULT_CLASS, new WmTabpaneProps(), new WmTabpaneState());\n this.subscribe('scroll', (event: any) => {\n return this.state.isActive;\n });\n }\n\n onPartialLoad() {\n this.invokeEventCallback('onLoad', [null, this]);\n }\n\n renderContent(props: WmTabpaneProps) {\n if (props.renderPartial) {\n if (!this.state.isPartialLoaded) {\n setTimeout(() => {\n this.updateState({\n isPartialLoaded: true\n } as WmTabpaneState);\n });\n }\n return props.renderPartial(props, this.onPartialLoad.bind(this));\n }\n return props.children;\n }\n\n showView(): boolean {\n return this.isVisible() && this.state.isActive;\n }\n\n componentDidMount() {\n const tabs = (this.parent) as WmTabs;\n // When skeleton is enabled in the tabs component, the parent would be WMSkeleton which doesnot have addTabPane function\n if(tabs.addTabPane) {\n tabs.addTabPane(this.proxy as WmTabpane);\n }\n super.componentDidMount();\n }\n\n componentWillUnmount() {\n const tabs = (this.parent) as WmTabs;\n if(tabs.removeTabPane) {\n tabs.removeTabPane(this)\n }\n }\n\n _onSelect() {\n this.updateState({\n isActive: true\n } as WmTabpaneState);\n this.invokeEventCallback('onSelect', [null, this.proxy]);\n }\n _onDeselect() {\n this.updateState({\n isActive: false\n } as WmTabpaneState);\n this.invokeEventCallback('onDeselect', [null, this.proxy]);\n }\n\n select() {\n (this.parent as WmTabs).selectTabPane(this);\n }\n\n renderWidget(props: WmTabpaneProps) {\n return (\n <ScrollView\n style={this.styles.root}\n onScroll={(event) => {this.notify('scroll', [event])}}\n onLayout={(event) => this.handleLayout(event)}\n >\n {this._background}\n {this.renderContent(props)}\n </ScrollView>);\n }\n}\n"],"mappings":";;;AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SAASC,UAAU,QAAQ,8BAA8B;AACzD,SAASC,aAAa,EAAEC,kBAAkB,QAAQ,kDAAkD;AAEpG,OAAOC,cAAc,MAAM,iBAAiB;AAC5C,SAASC,aAAa,QAAyB,kBAAkB;AAGjE,OAAO,MAAMC,cAAc,SAASH,kBAAkB,CAAiB;EAAAI,YAAA,GAAAC,IAAA;IAAA,SAAAA,IAAA;IAAAC,eAAA,0BACnD,KAAK;IAAAA,eAAA,mBACZ,KAAK;EAAA;AAClB;AAEA,eAAe,MAAMC,SAAS,SAASR,aAAa,CAAkD;EAEpGK,WAAWA,CAACI,KAAqB,EAAE;IACjC,KAAK,CAACA,KAAK,EAAEN,aAAa,EAAE,IAAID,cAAc,CAAC,CAAC,EAAE,IAAIE,cAAc,CAAC,CAAC,CAAC;IAACG,eAAA,iBAFlD,EAAE;IAGxB,IAAI,CAACG,SAAS,CAAC,QAAQ,EAAGC,KAAU,IAAK;MACvC,OAAO,IAAI,CAACC,KAAK,CAACC,QAAQ;IAC5B,CAAC,CAAC;EACJ;EAEAC,aAAaA,CAAA,EAAG;IACd,IAAI,CAACC,mBAAmB,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,IA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CAAC,YAAY,EAAE,CAAC,IAAI,EAAE,IAAI,CAACc,KAAK,CAAC,CAAC;EAC5D;EAEAK,MAAMA,CAAA,EAAG;IACN,IAAI,CAACP,MAAM,CAAYQ,aAAa,CAAC,IAAI,CAAC;EAC7C;EAEAC,YAAYA,CAAC3B,KAAqB,EAAE;IAClC,oBACAX,KAAA,CAAAuC,aAAA,CAACtC,UAAU;MACTuC,KAAK,EAAE,IAAI,CAACC,MAAM,CAACC,IAAK;MACxBC,QAAQ,EAAG9B,KAAK,IAAK;QAAC,IAAI,CAAC+B,MAAM,CAAC,QAAQ,EAAE,CAAC/B,KAAK,CAAC,CAAC;MAAA,CAAE;MACtDgC,QAAQ,EAAGhC,KAAK,IAAK,IAAI,CAACiC,YAAY,CAACjC,KAAK;IAAE,GAE3C,IAAI,CAACkC,WAAW,EAChB,IAAI,CAAC7B,aAAa,CAACP,KAAK,CACf,CAAC;EACjB;AACF","ignoreList":[]}
@@ -0,0 +1,19 @@
1
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
2
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
3
+ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
4
+ import { BaseProps } from '@wavemaker-ai/app-rn-runtime/core/base.component';
5
+ export default class WmTabpaneProps extends BaseProps {
6
+ constructor(...args) {
7
+ super(...args);
8
+ _defineProperty(this, "children", void 0);
9
+ _defineProperty(this, "paneicon", null);
10
+ _defineProperty(this, "title", 'Tab Title');
11
+ _defineProperty(this, "renderPartial", void 0);
12
+ _defineProperty(this, "isPartialLoaded", false);
13
+ _defineProperty(this, "invokeVariables", true);
14
+ _defineProperty(this, "accessibilitylabel", undefined);
15
+ _defineProperty(this, "hint", undefined);
16
+ _defineProperty(this, "accessibilityrole", void 0);
17
+ }
18
+ }
19
+ //# sourceMappingURL=tabpane.props.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["BaseProps","WmTabpaneProps","constructor","args","_defineProperty","undefined"],"sources":["tabpane.props.ts"],"sourcesContent":["import { BaseProps } from '@wavemaker-ai/app-rn-runtime/core/base.component';\nimport { AccessibilityRole } from 'react-native';\n\nexport default class WmTabpaneProps extends BaseProps {\n children?: any;\n paneicon?: string = null as any;\n title: string = 'Tab Title';\n renderPartial?: Function;\n isPartialLoaded? = false;\n invokeVariables = true;\n accessibilitylabel?: string = undefined;\n hint?: string = undefined;\n accessibilityrole?: AccessibilityRole;\n}\n"],"mappings":";;;AAAA,SAASA,SAAS,QAAQ,kDAAkD;AAG5E,eAAe,MAAMC,cAAc,SAASD,SAAS,CAAC;EAAAE,YAAA,GAAAC,IAAA;IAAA,SAAAA,IAAA;IAAAC,eAAA;IAAAA,eAAA,mBAEhC,IAAI;IAAAA,eAAA,gBACR,WAAW;IAAAA,eAAA;IAAAA,eAAA,0BAER,KAAK;IAAAA,eAAA,0BACN,IAAI;IAAAA,eAAA,6BACQC,SAAS;IAAAD,eAAA,eACvBC,SAAS;IAAAD,eAAA;EAAA;AAE3B","ignoreList":[]}
@@ -0,0 +1,13 @@
1
+ import BASE_THEME from '@wavemaker-ai/app-rn-runtime/styles/theme';
2
+ import { defineStyles } from '@wavemaker-ai/app-rn-runtime/core/base.component';
3
+ export const DEFAULT_CLASS = 'app-tabpane';
4
+ BASE_THEME.registerStyle((themeVariables, addStyle) => {
5
+ const defaultStyles = defineStyles({
6
+ root: {
7
+ backgroundColor: themeVariables.tabContentBgColor
8
+ },
9
+ text: {}
10
+ });
11
+ addStyle(DEFAULT_CLASS, '', defaultStyles);
12
+ });
13
+ //# sourceMappingURL=tabpane.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["BASE_THEME","defineStyles","DEFAULT_CLASS","registerStyle","themeVariables","addStyle","defaultStyles","root","backgroundColor","tabContentBgColor","text"],"sources":["tabpane.styles.ts"],"sourcesContent":["import BASE_THEME from '@wavemaker-ai/app-rn-runtime/styles/theme';\nimport { BaseStyles, defineStyles } from '@wavemaker-ai/app-rn-runtime/core/base.component';\n\nexport type WmTabpaneStyles = BaseStyles & {};\n\nexport const DEFAULT_CLASS = 'app-tabpane';\nBASE_THEME.registerStyle((themeVariables, addStyle) => {\n const defaultStyles: WmTabpaneStyles = defineStyles({\n root: {\n backgroundColor: themeVariables.tabContentBgColor\n },\n text: {}\n });\n\n addStyle(DEFAULT_CLASS, '', defaultStyles);\n});\n"],"mappings":"AAAA,OAAOA,UAAU,MAAM,2CAA2C;AAClE,SAAqBC,YAAY,QAAQ,kDAAkD;AAI3F,OAAO,MAAMC,aAAa,GAAG,aAAa;AAC1CF,UAAU,CAACG,aAAa,CAAC,CAACC,cAAc,EAAEC,QAAQ,KAAK;EACnD,MAAMC,aAA8B,GAAGL,YAAY,CAAC;IAChDM,IAAI,EAAE;MACFC,eAAe,EAAEJ,cAAc,CAACK;IACpC,CAAC;IACDC,IAAI,EAAE,CAAC;EACX,CAAC,CAAC;EAEFL,QAAQ,CAACH,aAAa,EAAE,EAAE,EAAEI,aAAa,CAAC;AAC9C,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,299 @@
1
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
2
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
3
+ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
4
+ import React from 'react';
5
+ import { View } from 'react-native';
6
+ import { BaseComponent, BaseComponentState } from '@wavemaker-ai/app-rn-runtime/core/base.component';
7
+
8
+ // TODO: Change the logic of gesture handler in swipe.animation file, as its interfering with scroll animation
9
+ // for now Pan responder is being used instead of Gesture handler.
10
+ import * as SwipeAnimation from '@wavemaker-ai/app-rn-runtime/gestures/carousel-swipe.animation';
11
+ import { isWebPreviewMode } from '@wavemaker-ai/app-rn-runtime/core/utils';
12
+ import WmTabsProps from './tabs.props';
13
+ import { DEFAULT_CLASS } from './tabs.styles';
14
+ import WmTabheader from './tabheader/tabheader.component';
15
+ import { createSkeleton } from '@wavemaker-ai/app-rn-runtime/components/basic/skeleton/skeleton.component';
16
+ export class WmTabsState extends BaseComponentState {
17
+ constructor(...args) {
18
+ super(...args);
19
+ _defineProperty(this, "tabsShown", []);
20
+ _defineProperty(this, "selectedTabIndex", 0);
21
+ }
22
+ }
23
+ export default class WmTabs extends BaseComponent {
24
+ constructor(props) {
25
+ super(props, DEFAULT_CLASS, new WmTabsProps(), new WmTabsState());
26
+ _defineProperty(this, "tabPanes", []);
27
+ _defineProperty(this, "newIndex", 0);
28
+ _defineProperty(this, "tabLayout", null);
29
+ _defineProperty(this, "tabPaneHeights", []);
30
+ _defineProperty(this, "animationView", null);
31
+ _defineProperty(this, "childComponentStyleKeys", ['tabHeader', 'activeHeader']);
32
+ _defineProperty(this, "animationHandlers", {
33
+ bounds: e => {
34
+ var _this$tabLayout;
35
+ const activeTabIndex = this.state.selectedTabIndex,
36
+ w = ((_this$tabLayout = this.tabLayout) === null || _this$tabLayout === void 0 ? void 0 : _this$tabLayout.width) || 0,
37
+ noOfTabs = this.tabPanes.length;
38
+ return {
39
+ lower: -1 * (activeTabIndex - (activeTabIndex === 0 ? 0 : 1)) * w,
40
+ center: -1 * activeTabIndex * w,
41
+ upper: -1 * (activeTabIndex + (activeTabIndex === noOfTabs - 1 ? 0 : 1)) * w
42
+ };
43
+ },
44
+ onLower: e => {
45
+ this.onChange(this.state.selectedTabIndex - 1);
46
+ },
47
+ onUpper: e => {
48
+ this.onChange(this.state.selectedTabIndex + 1);
49
+ }
50
+ });
51
+ }
52
+ setTabLayout(event) {
53
+ this.tabLayout = event.nativeEvent.layout;
54
+ this.forceUpdate(() => {
55
+ this.goToTab();
56
+ });
57
+ }
58
+ setTabPaneHeights(index, nativeEvent) {
59
+ var _nativeEvent$nativeEv;
60
+ this.tabPaneHeights[index] = (_nativeEvent$nativeEv = nativeEvent.nativeEvent.layout) === null || _nativeEvent$nativeEv === void 0 ? void 0 : _nativeEvent$nativeEv.height;
61
+ if (index === this.state.selectedTabIndex) {
62
+ this.forceUpdate();
63
+ }
64
+ }
65
+ setTabShown(tabIndex, callback) {
66
+ if (!this.state.tabsShown[tabIndex]) {
67
+ const tabsShown = [...this.state.tabsShown];
68
+ tabsShown[tabIndex] = true;
69
+ setTimeout(() => {
70
+ this.updateState({
71
+ tabsShown: tabsShown
72
+ }, callback);
73
+ }, 300);
74
+ } else {
75
+ callback && callback();
76
+ }
77
+ }
78
+ addTabPane(tabPane) {
79
+ tabPane.paneId = `tabPane${this.newIndex++}`;
80
+ const i = this.tabPanes.findIndex(t => t.paneId === tabPane.paneId);
81
+ if (i >= 0) {
82
+ this.tabPanes[i] = tabPane;
83
+ } else {
84
+ this.tabPanes.push(tabPane);
85
+ }
86
+ }
87
+ removeTabPane(tabPane) {
88
+ const i = this.tabPanes.findIndex(t => t.paneId === tabPane.paneId);
89
+ if (i >= 0) {
90
+ this.tabPanes.splice(i, 1);
91
+ this.newIndex--;
92
+ }
93
+ }
94
+ selectTabPane(tabPane) {
95
+ this.goToTab(this.tabPanes.indexOf(tabPane));
96
+ }
97
+ get selectedTabPane() {
98
+ return this.tabPanes[this.state.selectedTabIndex];
99
+ }
100
+ goToTab(index = this.state.selectedTabIndex) {
101
+ var _this$tabLayout2;
102
+ if (index < 0 || index >= this.tabPanes.length) {
103
+ return;
104
+ }
105
+ const position = -1 * index * (((_this$tabLayout2 = this.tabLayout) === null || _this$tabLayout2 === void 0 ? void 0 : _this$tabLayout2.width) || 0);
106
+ if (this.animationView) {
107
+ this.animationView.setPosition(position).then(() => this.onChange(index));
108
+ } else {
109
+ this.onChange(index);
110
+ }
111
+ }
112
+ prev() {
113
+ var _this$animationView;
114
+ (_this$animationView = this.animationView) === null || _this$animationView === void 0 || _this$animationView.goToLower();
115
+ }
116
+ next() {
117
+ var _this$animationView2;
118
+ (_this$animationView2 = this.animationView) === null || _this$animationView2 === void 0 || _this$animationView2.goToLower();
119
+ }
120
+ onChange(newIndex) {
121
+ if (newIndex < 0 || newIndex >= this.tabPanes.length) {
122
+ return;
123
+ }
124
+ const oldIndex = this.state.selectedTabIndex;
125
+ const deselectedTab = this.tabPanes[this.state.selectedTabIndex];
126
+ this.newIndex = newIndex;
127
+ deselectedTab === null || deselectedTab === void 0 || deselectedTab._onDeselect();
128
+ this.updateState({
129
+ selectedTabIndex: newIndex
130
+ }, () => {
131
+ this.setTabShown(newIndex, () => {
132
+ const selectedTab = this.tabPanes[newIndex];
133
+ selectedTab === null || selectedTab === void 0 || selectedTab._onSelect();
134
+ this.invokeEventCallback('onChange', [{}, this.proxy, newIndex, oldIndex]);
135
+ });
136
+ });
137
+ }
138
+ renderSkeletonContent(props) {
139
+ const tabPanes = React.Children.toArray(this.props.children).filter((item, index) => item.props.show != false);
140
+ const headerData = tabPanes.map((p, i) => ({
141
+ title: p.props.title,
142
+ icon: '',
143
+ key: `tab-${p.props.title}-${i}`
144
+ }));
145
+ return /*#__PURE__*/React.createElement(View, {
146
+ style: [this.styles.root, {
147
+ borderBottomWidth: 0
148
+ }]
149
+ }, /*#__PURE__*/React.createElement(View, {
150
+ onLayout: this.setTabLayout.bind(this),
151
+ style: {
152
+ width: '100%'
153
+ }
154
+ }), /*#__PURE__*/React.createElement(WmTabheader, {
155
+ styles: this.styles.tabHeader,
156
+ data: headerData,
157
+ showskeleton: this.props.showskeleton,
158
+ selectedTabIndex: this.state.selectedTabIndex,
159
+ headertype: this.state.props.headertype,
160
+ iconposition: this.state.props.iconposition
161
+ }), /*#__PURE__*/React.createElement(View
162
+ //{...this.panResponder.panHandlers}
163
+ , {
164
+ style: {
165
+ width: '100%',
166
+ //height: this.tabPaneHeights[this.state.selectedTabIndex],
167
+ overflow: 'hidden'
168
+ }
169
+ }, /*#__PURE__*/React.createElement(View, {
170
+ style: {
171
+ flexDirection: 'row',
172
+ flexWrap: 'nowrap'
173
+ }
174
+ }, tabPanes.map((p, i) => {
175
+ return /*#__PURE__*/React.createElement(View, {
176
+ key: `tab-${i}`,
177
+ style: {
178
+ width: '100%',
179
+ alignSelf: 'flex-start'
180
+ },
181
+ onLayout: this.setTabPaneHeights.bind(this, i)
182
+ }, /*#__PURE__*/React.cloneElement(p, {
183
+ "invokeVariables": false
184
+ }));
185
+ }))));
186
+ }
187
+ renderSkeleton(props) {
188
+ if (!props.showskeletonchildren) {
189
+ var _this$props;
190
+ const skeletonStyles = ((_this$props = this.props) === null || _this$props === void 0 || (_this$props = _this$props.styles) === null || _this$props === void 0 ? void 0 : _this$props.skeleton) || {
191
+ root: {},
192
+ text: {}
193
+ };
194
+ return createSkeleton(this.theme, skeletonStyles, {
195
+ ...this.styles.root
196
+ }, /*#__PURE__*/React.createElement(View, {
197
+ style: [this.styles.root, {
198
+ opacity: 0
199
+ }]
200
+ }, this.renderSkeletonContent(props)));
201
+ }
202
+ return this.renderSkeletonContent(props);
203
+ }
204
+ onPropertyChange(name, $new, $old) {
205
+ super.onPropertyChange(name, $new, $old);
206
+ switch (name) {
207
+ case "defaultpaneindex":
208
+ const selectedIndex = $new || 0;
209
+ const tabsShown = [];
210
+ tabsShown[selectedIndex] = true;
211
+ this.updateState({
212
+ selectedTabIndex: selectedIndex,
213
+ tabsShown: tabsShown
214
+ });
215
+ }
216
+ }
217
+ getBackground() {
218
+ return this._showSkeleton ? null : this._background;
219
+ }
220
+ renderWidget(props) {
221
+ var _this$state$props$cla, _this$state$props$cla2;
222
+ const tabPanes = React.Children.toArray(props.children).filter((item, index) => item.props.show != false);
223
+ const headerData = tabPanes.map((p, i) => ({
224
+ title: p.props.title,
225
+ icon: p.props.paneicon || '',
226
+ key: `tab-${i}`
227
+ }));
228
+ const accessibilityData = tabPanes.map((p, i) => ({
229
+ accessibilitylabel: p.props.accessibilitylabel || p.props.title,
230
+ hint: p.props.hint,
231
+ accessibilityrole: p.props.accessibilityrole
232
+ }));
233
+ const styles = this._showSkeleton ? {
234
+ ...this.styles.root,
235
+ ...this.styles.skeleton.root
236
+ } : this.styles.root;
237
+ return /*#__PURE__*/React.createElement(View, {
238
+ style: styles,
239
+ onLayout: event => this.handleLayout(event)
240
+ }, this.getBackground(), /*#__PURE__*/React.createElement(View, {
241
+ onLayout: this.setTabLayout.bind(this),
242
+ style: {
243
+ width: '100%'
244
+ }
245
+ }), /*#__PURE__*/React.createElement(WmTabheader, {
246
+ id: this.getTestId('headers'),
247
+ styles: this.styles.tabHeader,
248
+ data: headerData,
249
+ selectedTabIndex: this.state.selectedTabIndex,
250
+ onIndexChange: this.goToTab.bind(this),
251
+ shouldScroll: props.enablescroll,
252
+ disabletoucheffect: this.state.props.disabletoucheffect,
253
+ accessibilityProps: accessibilityData,
254
+ headertype: props.headertype,
255
+ iconposition: props.iconposition
256
+ }), /*#__PURE__*/React.createElement(View, {
257
+ style: [{
258
+ width: '100%',
259
+ flex: 1
260
+ }, this.styles.root.height ? isWebPreviewMode() ? (_this$state$props$cla = this.state.props.classname) !== null && _this$state$props$cla !== void 0 && _this$state$props$cla.includes('divider') ? [this.styles.tabheaderdivider] : [{
261
+ 'overflowX': 'hidden',
262
+ 'overflowY': 'auto'
263
+ }] : {
264
+ overflow: 'scroll'
265
+ } : (_this$state$props$cla2 = this.state.props.classname) !== null && _this$state$props$cla2 !== void 0 && _this$state$props$cla2.includes('divider') ? this.styles.tabheaderdivider : {
266
+ overflow: 'hidden',
267
+ maxHeight: this.tabPaneHeights[this.state.selectedTabIndex]
268
+ }, this.styles.tabContent]
269
+ }, /*#__PURE__*/React.createElement(SwipeAnimation.View, {
270
+ enableGestures: props.enablegestures,
271
+ style: {
272
+ flexDirection: 'row',
273
+ flexWrap: 'nowrap',
274
+ alignItems: 'flex-start'
275
+ },
276
+ direction: "horizontal",
277
+ ref: r => {
278
+ this.animationView = r;
279
+ },
280
+ handlers: this.animationHandlers
281
+ }, tabPanes.map((p, i) => {
282
+ return /*#__PURE__*/React.createElement(View, {
283
+ key: `tab-${i}`,
284
+ style: {
285
+ width: '100%',
286
+ height: this.styles.root.height ? undefined : 1000000,
287
+ alignSelf: 'flex-start'
288
+ }
289
+ }, /*#__PURE__*/React.createElement(View, {
290
+ style: {
291
+ width: '100%',
292
+ alignSelf: 'flex-start'
293
+ },
294
+ onLayout: this.setTabPaneHeights.bind(this, i)
295
+ }, p));
296
+ }))));
297
+ }
298
+ }
299
+ //# sourceMappingURL=tabs.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","View","BaseComponent","BaseComponentState","SwipeAnimation","isWebPreviewMode","WmTabsProps","DEFAULT_CLASS","WmTabheader","createSkeleton","WmTabsState","constructor","args","_defineProperty","WmTabs","props","bounds","e","_this$tabLayout","activeTabIndex","state","selectedTabIndex","w","tabLayout","width","noOfTabs","tabPanes","length","lower","center","upper","onLower","onChange","onUpper","setTabLayout","event","nativeEvent","layout","forceUpdate","goToTab","setTabPaneHeights","index","_nativeEvent$nativeEv","tabPaneHeights","height","setTabShown","tabIndex","callback","tabsShown","setTimeout","updateState","addTabPane","tabPane","paneId","newIndex","i","findIndex","t","push","removeTabPane","splice","selectTabPane","indexOf","selectedTabPane","_this$tabLayout2","position","animationView","setPosition","then","prev","_this$animationView","goToLower","next","_this$animationView2","oldIndex","deselectedTab","_onDeselect","selectedTab","_onSelect","invokeEventCallback","proxy","renderSkeletonContent","Children","toArray","children","filter","item","show","headerData","map","p","title","icon","key","createElement","style","styles","root","borderBottomWidth","onLayout","bind","tabHeader","data","showskeleton","headertype","iconposition","overflow","flexDirection","flexWrap","alignSelf","cloneElement","renderSkeleton","showskeletonchildren","_this$props","skeletonStyles","skeleton","text","theme","opacity","onPropertyChange","name","$new","$old","selectedIndex","getBackground","_showSkeleton","_background","renderWidget","_this$state$props$cla","_this$state$props$cla2","paneicon","accessibilityData","accessibilitylabel","hint","accessibilityrole","handleLayout","id","getTestId","onIndexChange","shouldScroll","enablescroll","disabletoucheffect","accessibilityProps","flex","classname","includes","tabheaderdivider","maxHeight","tabContent","enableGestures","enablegestures","alignItems","direction","ref","r","handlers","animationHandlers","undefined"],"sources":["tabs.component.tsx"],"sourcesContent":["import React from 'react';\nimport { LayoutChangeEvent, LayoutRectangle, View } from 'react-native';\nimport { BaseComponent, BaseComponentState } from '@wavemaker-ai/app-rn-runtime/core/base.component';\n\n// TODO: Change the logic of gesture handler in swipe.animation file, as its interfering with scroll animation\n// for now Pan responder is being used instead of Gesture handler.\nimport * as SwipeAnimation from '@wavemaker-ai/app-rn-runtime/gestures/carousel-swipe.animation';\nimport { isWebPreviewMode } from '@wavemaker-ai/app-rn-runtime/core/utils';\n\nimport WmTabsProps from './tabs.props';\nimport { DEFAULT_CLASS, WmTabsStyles } from './tabs.styles';\nimport WmTabpane from './tabpane/tabpane.component';\nimport WmTabheader from './tabheader/tabheader.component';\nimport { WmSkeletonStyles } from '@wavemaker-ai/app-rn-runtime/components/basic/skeleton/skeleton.styles';\nimport { createSkeleton } from '@wavemaker-ai/app-rn-runtime/components/basic/skeleton/skeleton.component';\n\nexport class WmTabsState extends BaseComponentState<WmTabsProps> {\n tabsShown: boolean[] = [];\n selectedTabIndex: number = 0;\n}\n\nexport default class WmTabs extends BaseComponent<WmTabsProps, WmTabsState, WmTabsStyles> {\n public tabPanes = [] as WmTabpane[];\n private newIndex = 0;\n private tabLayout: LayoutRectangle = null as any;\n private tabPaneHeights: number[] = [];\n private animationView: SwipeAnimation.View | null = null as any;\n protected childComponentStyleKeys = ['tabHeader', 'activeHeader'];\n private animationHandlers = {\n bounds: (e) => {\n const activeTabIndex = this.state.selectedTabIndex,\n w = this.tabLayout?.width || 0,\n noOfTabs = this.tabPanes.length;\n return {\n lower: -1 * (activeTabIndex - (activeTabIndex === 0 ? 0 : 1)) * w,\n center: -1 * activeTabIndex * w,\n upper: -1 * (activeTabIndex + (activeTabIndex === noOfTabs - 1 ? 0 : 1)) * w\n };\n },\n onLower: (e) => {\n this.onChange(this.state.selectedTabIndex - 1);\n },\n onUpper: (e) => {\n this.onChange(this.state.selectedTabIndex + 1);\n }\n } as SwipeAnimation.Handlers;\n\n constructor(props: WmTabsProps) {\n super(props, DEFAULT_CLASS, new WmTabsProps(), new WmTabsState());\n }\n\n setTabLayout(event: LayoutChangeEvent) {\n this.tabLayout = event.nativeEvent.layout;\n this.forceUpdate(() => {\n this.goToTab();\n });\n }\n\n setTabPaneHeights(index: number, nativeEvent: LayoutChangeEvent) {\n this.tabPaneHeights[index] = nativeEvent.nativeEvent.layout?.height;\n if (index === this.state.selectedTabIndex) {\n this.forceUpdate();\n }\n }\n\n setTabShown(tabIndex: number, callback: () => any) {\n if (!this.state.tabsShown[tabIndex]) {\n const tabsShown = [...this.state.tabsShown];\n tabsShown[tabIndex] = true;\n setTimeout(() => {\n this.updateState({\n tabsShown: tabsShown\n } as WmTabsState, callback);\n }, 300);\n } else {\n callback && callback();\n }\n }\n\n addTabPane(tabPane: WmTabpane) {\n tabPane.paneId = `tabPane${this.newIndex++}`;\n const i = this.tabPanes.findIndex(t => t.paneId === tabPane.paneId);\n if (i >= 0) {\n this.tabPanes[i] = tabPane;\n } else {\n this.tabPanes.push(tabPane)\n }\n }\n\n removeTabPane(tabPane: WmTabpane) {\n const i = this.tabPanes.findIndex(t => t.paneId === tabPane.paneId);\n if (i >= 0) {\n this.tabPanes.splice(i, 1);\n this.newIndex--;\n }\n }\n\n selectTabPane(tabPane: WmTabpane) {\n this.goToTab(this.tabPanes.indexOf(tabPane));\n }\n\n get selectedTabPane() {\n return this.tabPanes[this.state.selectedTabIndex];\n }\n\n goToTab(index = this.state.selectedTabIndex) {\n if (index < 0 || index >= this.tabPanes.length) {\n return;\n }\n const position = -1 * index * (this.tabLayout?.width || 0);\n if(this.animationView) {\n this.animationView.setPosition(position)\n .then(() => this.onChange(index));\n } else {\n this.onChange(index);\n }\n }\n\n prev() {\n this.animationView?.goToLower();\n }\n\n next() {\n this.animationView?.goToLower();\n }\n\n onChange(newIndex: number) {\n if (newIndex < 0 || newIndex >= this.tabPanes.length) {\n return;\n }\n const oldIndex = this.state.selectedTabIndex;\n const deselectedTab = this.tabPanes[this.state.selectedTabIndex];\n this.newIndex = newIndex;\n deselectedTab?._onDeselect();\n this.updateState({\n selectedTabIndex: newIndex\n } as WmTabsState, () => {\n this.setTabShown(newIndex, () => {\n const selectedTab = this.tabPanes[newIndex];\n selectedTab?._onSelect();\n this.invokeEventCallback('onChange', [{}, this.proxy, newIndex, oldIndex]);\n });\n });\n }\n\n public renderSkeletonContent(props: WmTabsProps) {\n const tabPanes = React.Children.toArray(this.props.children)\n .filter((item: any, index: number) => item.props.show != false);\n const headerData = tabPanes.map((p: any, i: number) =>\n ({title: p.props.title, icon: '', key: `tab-${p.props.title}-${i}`}));\n return(\n <View style={[this.styles.root, { borderBottomWidth: 0}]}>\n <View onLayout={this.setTabLayout.bind(this)} style={{width: '100%'}}></View>\n <WmTabheader\n styles={this.styles.tabHeader}\n data={headerData}\n showskeleton={this.props.showskeleton}\n selectedTabIndex={this.state.selectedTabIndex}\n headertype={this.state.props.headertype}\n iconposition={this.state.props.iconposition}\n ></WmTabheader>\n <View\n //{...this.panResponder.panHandlers}\n style={{\n width: '100%',\n //height: this.tabPaneHeights[this.state.selectedTabIndex],\n overflow: 'hidden'\n }} >\n <View style={{\n flexDirection: 'row',\n flexWrap: 'nowrap'\n }}>\n {tabPanes.map((p: any, i) => {\n return (\n <View\n key={`tab-${i}`}\n style={{width: '100%', alignSelf: 'flex-start'}}\n onLayout={this.setTabPaneHeights.bind(this, i)}>\n {/* {this.state.tabsShown[i] ? p : null} */}\n {React.cloneElement(p, { \"invokeVariables\": false })}\n {/* {p} */}\n </View>);\n })}\n </View>\n </View>\n </View>\n )\n }\n\n public renderSkeleton(props: WmTabsProps){\n if(!props.showskeletonchildren) {\n const skeletonStyles: WmSkeletonStyles = this.props?.styles?.skeleton || { root: {}, text: {} } as WmSkeletonStyles\n return createSkeleton(this.theme, skeletonStyles, {\n ...this.styles.root\n }, (<View style={[this.styles.root, { opacity: 0 }]}>\n {this.renderSkeletonContent(props)}\n </View>))\n }\n return this.renderSkeletonContent(props);\n }\n\n public onPropertyChange(name: string, $new: any, $old: any): void {\n super.onPropertyChange(name, $new, $old);\n switch(name) {\n case \"defaultpaneindex\":\n const selectedIndex = $new || 0;\n const tabsShown: boolean[] = [];\n tabsShown[selectedIndex] = true;\n this.updateState({\n selectedTabIndex: selectedIndex,\n tabsShown: tabsShown\n } as WmTabsState);\n }\n }\n\n getBackground(): React.JSX.Element | null {\n return this._showSkeleton ? null : this._background\n }\n\n\n renderWidget(props: WmTabsProps) {\n const tabPanes = React.Children.toArray(props.children)\n .filter((item: any, index: number) => item.props.show != false);\n const headerData = tabPanes.map((p: any, i: number) =>\n ({title: p.props.title, icon: p.props.paneicon || '', key: `tab-${i}`}));\n const accessibilityData = tabPanes.map((p: any, i: number) =>({\n accessibilitylabel: p.props.accessibilitylabel || p.props.title,\n hint: p.props.hint,\n accessibilityrole: p.props.accessibilityrole\n }));\n const styles = this._showSkeleton ? {\n ...this.styles.root,\n ...this.styles.skeleton.root\n } : this.styles.root\n return (\n <View\n style={styles}\n onLayout={(event) => this.handleLayout(event)}\n >\n {this.getBackground()}\n <View onLayout={this.setTabLayout.bind(this)} style={{width: '100%'}}></View>\n <WmTabheader\n id={this.getTestId('headers')}\n styles={this.styles.tabHeader}\n data={headerData}\n selectedTabIndex={this.state.selectedTabIndex}\n onIndexChange={this.goToTab.bind(this)}\n shouldScroll={props.enablescroll}\n disabletoucheffect = {this.state.props.disabletoucheffect}\n accessibilityProps={accessibilityData}\n headertype={props.headertype}\n iconposition={props.iconposition}\n ></WmTabheader>\n <View\n style={[{\n width: '100%',\n flex: 1\n }, this.styles.root.height ?\n (isWebPreviewMode() ? this.state.props.classname?.includes('divider') ? [this.styles.tabheaderdivider] : [{'overflowX': 'hidden','overflowY': 'auto'}] as any : {overflow: 'scroll'})\n : this.state.props.classname?.includes('divider') ? this.styles.tabheaderdivider : {\n overflow: 'hidden',\n maxHeight: this.tabPaneHeights[this.state.selectedTabIndex],\n }, this.styles.tabContent]} >\n <SwipeAnimation.View\n enableGestures={props.enablegestures}\n style={{\n flexDirection: 'row',\n flexWrap: 'nowrap',\n alignItems: 'flex-start'\n }}\n direction='horizontal'\n ref={(r) => {this.animationView = r}}\n handlers = {this.animationHandlers}\n >\n {tabPanes.map((p: any, i) => {\n return (\n <View\n key={`tab-${i}`}\n style={{\n width: '100%',\n height: this.styles.root.height ? undefined : 1000000,\n alignSelf: 'flex-start'}}>\n <View\n style={{width: '100%', alignSelf: 'flex-start'}}\n onLayout={this.setTabPaneHeights.bind(this, i)}>\n {/* {this.state.tabsShown[i] ? p : null} */}\n {p}\n </View>\n </View>);\n })}\n </SwipeAnimation.View>\n </View>\n </View>\n );\n }\n}\n"],"mappings":";;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAA6CC,IAAI,QAAQ,cAAc;AACvE,SAASC,aAAa,EAAEC,kBAAkB,QAAQ,kDAAkD;;AAEpG;AACA;AACA,OAAO,KAAKC,cAAc,MAAM,gEAAgE;AAChG,SAASC,gBAAgB,QAAQ,yCAAyC;AAE1E,OAAOC,WAAW,MAAM,cAAc;AACtC,SAASC,aAAa,QAAsB,eAAe;AAE3D,OAAOC,WAAW,MAAM,iCAAiC;AAEzD,SAASC,cAAc,QAAQ,2EAA2E;AAE1G,OAAO,MAAMC,WAAW,SAASP,kBAAkB,CAAc;EAAAQ,YAAA,GAAAC,IAAA;IAAA,SAAAA,IAAA;IAAAC,eAAA,oBACxC,EAAE;IAAAA,eAAA,2BACE,CAAC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AAE,KAAK;QACpBC,QAAQ,EAAE,QAAQ;QAClB2C,UAAU,EAAE;MACd,CAAE;MACFC,SAAS,EAAC,YAAY;MACtBC,GAAG,EAAGC,CAAC,IAAK;QAAC,IAAI,CAACxF,aAAa,GAAGwF,CAAC;MAAA,CAAE;MACrCC,QAAQ,EAAI,IAAI,CAACC;IAAkB,GAElClI,QAAQ,CAAC+D,GAAG,CAAC,CAACC,CAAM,EAAEnC,CAAC,KAAK;MAC3B,oBACAvD,KAAA,CAAA8F,aAAA,CAAC7F,IAAI;QACH4F,GAAG,EAAE,OAAOtC,CAAC,EAAG;QAChBwC,KAAK,EAAE;UACLvE,KAAK,EAAE,MAAM;UACboB,MAAM,EAAE,IAAI,CAACoD,MAAM,CAACC,IAAI,CAACrD,MAAM,GAAIiH,SAAS,GAAG,OAAO;UACtDhD,SAAS,EAAE;QAAY;MAAE,gBAC3B7G,KAAA,CAAA8F,aAAA,CAAC7F,IAAI;QACH8F,KAAK,EAAE;UAACvE,KAAK,EAAE,MAAM;UAAEqF,SAAS,EAAE;QAAY,CAAE;QAChDV,QAAQ,EAAE,IAAI,CAAC3D,iBAAiB,CAAC4D,IAAI,CAAC,IAAI,EAAE7C,CAAC;MAAE,GAE9CmC,CACG,CACF,CAAC;IACT,CAAC,CACkB,CACjB,CACF,CAAC;EAEX;AACF","ignoreList":[]}
@@ -0,0 +1,16 @@
1
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
2
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
3
+ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
4
+ import { BaseProps } from '@wavemaker-ai/app-rn-runtime/core/base.component';
5
+ export default class WmTabsProps extends BaseProps {
6
+ constructor(...args) {
7
+ super(...args);
8
+ _defineProperty(this, "children", void 0);
9
+ _defineProperty(this, "defaultpaneindex", 0);
10
+ _defineProperty(this, "enablegestures", true);
11
+ _defineProperty(this, "enablescroll", false);
12
+ _defineProperty(this, "headertype", 'icon-label');
13
+ _defineProperty(this, "iconposition", void 0);
14
+ }
15
+ }
16
+ //# sourceMappingURL=tabs.props.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["BaseProps","WmTabsProps","constructor","args","_defineProperty"],"sources":["tabs.props.ts"],"sourcesContent":["import { BaseProps } from '@wavemaker-ai/app-rn-runtime/core/base.component';\n\nexport default class WmTabsProps extends BaseProps {\n children?: any;\n defaultpaneindex?: number = 0;\n enablegestures? = true;\n enablescroll?: boolean = false;\n headertype?: 'icon-only' | 'icon-label' | 'label-only' = 'icon-label';\n iconposition?: 'left' | 'right' | 'top';\n}\n"],"mappings":";;;AAAA,SAASA,SAAS,QAAQ,kDAAkD;AAE5E,eAAe,MAAMC,WAAW,SAASD,SAAS,CAAC;EAAAE,YAAA,GAAAC,IAAA;IAAA,SAAAA,IAAA;IAAAC,eAAA;IAAAA,eAAA,2BAErB,CAAC;IAAAA,eAAA,yBACX,IAAI;IAAAA,eAAA,uBACG,KAAK;IAAAA,eAAA,qBAC2B,YAAY;IAAAA,eAAA;EAAA;AAEvE","ignoreList":[]}
@@ -0,0 +1,65 @@
1
+ import BASE_THEME from '@wavemaker-ai/app-rn-runtime/styles/theme';
2
+ import { defineStyles } from '@wavemaker-ai/app-rn-runtime/core/base.component';
3
+ export const DEFAULT_CLASS = 'app-tabs';
4
+ BASE_THEME.registerStyle((themeVariables, addStyle) => {
5
+ const defaultStyles = defineStyles({
6
+ root: {
7
+ minHeight: 240,
8
+ elevation: 0,
9
+ borderBottomWidth: 1,
10
+ borderStyle: 'solid',
11
+ borderColor: themeVariables.tabBorderColor
12
+ },
13
+ text: {},
14
+ tabContent: {},
15
+ tabHeader: {},
16
+ tabheaderdivider: {
17
+ borderBottomWidth: 1,
18
+ borderBottomColor: 'var(--wm-color-surface-variant-active)'
19
+ },
20
+ skeleton: {
21
+ root: {}
22
+ }
23
+ });
24
+ addStyle(DEFAULT_CLASS, '', defaultStyles);
25
+ addStyle('tabs-with-arrow-indicator', '', {
26
+ tabHeader: {
27
+ root: {
28
+ backgroundColor: themeVariables.transparent
29
+ },
30
+ header: {
31
+ marginBottom: 16
32
+ },
33
+ activeIndicator: {
34
+ justifyContent: 'center',
35
+ alignItems: 'center',
36
+ marginTop: 2,
37
+ height: 0
38
+ },
39
+ arrowIndicator: {
40
+ display: 'flex',
41
+ backgroundColor: themeVariables.tabArrowIndicatorBgColor,
42
+ width: 24,
43
+ height: 24,
44
+ justifyContent: 'center',
45
+ alignItems: 'center',
46
+ transform: [{
47
+ rotateZ: '45deg'
48
+ }]
49
+ },
50
+ arrowIndicatorDot: {
51
+ display: 'flex',
52
+ backgroundColor: themeVariables.tabArrowIndicatorDotColor,
53
+ width: 4,
54
+ height: 4,
55
+ borderRadius: 8,
56
+ transform: [{
57
+ translateX: -2
58
+ }, {
59
+ translateY: -2
60
+ }]
61
+ }
62
+ }
63
+ });
64
+ });
65
+ //# sourceMappingURL=tabs.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["BASE_THEME","defineStyles","DEFAULT_CLASS","registerStyle","themeVariables","addStyle","defaultStyles","root","minHeight","elevation","borderBottomWidth","borderStyle","borderColor","tabBorderColor","text","tabContent","tabHeader","tabheaderdivider","borderBottomColor","skeleton","backgroundColor","transparent","header","marginBottom","activeIndicator","justifyContent","alignItems","marginTop","height","arrowIndicator","display","tabArrowIndicatorBgColor","width","transform","rotateZ","arrowIndicatorDot","tabArrowIndicatorDotColor","borderRadius","translateX","translateY"],"sources":["tabs.styles.ts"],"sourcesContent":["import { ViewStyle } from 'react-native';\nimport BASE_THEME from '@wavemaker-ai/app-rn-runtime/styles/theme';\nimport { BaseStyles, defineStyles } from '@wavemaker-ai/app-rn-runtime/core/base.component';\nimport { WmTabheaderStyles } from './tabheader/tabheader.styles';\nimport { WmSkeletonStyles } from '@wavemaker-ai/app-rn-runtime/components/basic/skeleton/skeleton.styles';\n\nexport type WmTabsStyles = BaseStyles & {\n tabHeader: WmTabheaderStyles,\n tabContent: ViewStyle,\n skeleton: WmSkeletonStyles\n};\n\nexport const DEFAULT_CLASS = 'app-tabs';\nBASE_THEME.registerStyle((themeVariables, addStyle) => {\n const defaultStyles: WmTabsStyles = defineStyles({\n root: {\n minHeight: 240,\n elevation: 0,\n borderBottomWidth: 1,\n borderStyle: 'solid',\n borderColor: themeVariables.tabBorderColor\n },\n text: {},\n tabContent: {},\n tabHeader: {} as WmTabheaderStyles,\n tabheaderdivider: {\n borderBottomWidth:1,\n borderBottomColor:'var(--wm-color-surface-variant-active)'\n },\n skeleton: {\n root: {\n }\n } as WmSkeletonStyles\n });\n addStyle(DEFAULT_CLASS, '', defaultStyles);\n addStyle('tabs-with-arrow-indicator', '', {\n tabHeader: {\n root: {\n backgroundColor: themeVariables.transparent\n },\n header: {\n marginBottom: 16\n },\n activeIndicator: {\n justifyContent: 'center',\n alignItems: 'center',\n marginTop: 2,\n height: 0\n },\n arrowIndicator: {\n display: 'flex',\n backgroundColor: themeVariables.tabArrowIndicatorBgColor,\n width: 24,\n height: 24,\n justifyContent: 'center',\n alignItems: 'center',\n transform: [{\n rotateZ: '45deg'\n }]\n },\n arrowIndicatorDot: {\n display: 'flex',\n backgroundColor: themeVariables.tabArrowIndicatorDotColor,\n width: 4,\n height: 4,\n borderRadius: 8,\n transform: [{\n translateX: -2\n }, {\n translateY: -2\n }]\n }\n } as any as WmTabheaderStyles\n });\n});\n"],"mappings":"AACA,OAAOA,UAAU,MAAM,2CAA2C;AAClE,SAAqBC,YAAY,QAAQ,kDAAkD;AAU3F,OAAO,MAAMC,aAAa,GAAG,UAAU;AACvCF,UAAU,CAACG,aAAa,CAAC,CAACC,cAAc,EAAEC,Q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C;QACfJ,SAAS,EAAE,CAAC;UACVK,UAAU,EAAE,CAAC;QACf,CAAC,EAAE;UACDC,UAAU,EAAE,CAAC;QACf,CAAC;MACH;IACF;EACF,CAAC,CAAC;AACJ,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,54 @@
1
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
2
+ import React from 'react';
3
+ import { View } from 'react-native';
4
+ import { BaseComponent, BaseComponentState } from '@wavemaker-ai/app-rn-runtime/core/base.component';
5
+ import WmTileProps from './tile.props';
6
+ import { DEFAULT_CLASS } from './tile.styles';
7
+ import { Tappable } from '@wavemaker-ai/app-rn-runtime/core/tappable.component';
8
+ import { Animatedview } from '@wavemaker-ai/app-rn-runtime/components/basic/animatedview.component';
9
+ import { createSkeleton } from '@wavemaker-ai/app-rn-runtime/components/basic/skeleton/skeleton.component';
10
+ export class WmTileState extends BaseComponentState {}
11
+ export default class WmTile extends BaseComponent {
12
+ constructor(props) {
13
+ super(props, DEFAULT_CLASS, new WmTileProps());
14
+ }
15
+ renderSkeleton(props) {
16
+ if (!props.showskeletonchildren) {
17
+ var _this$props;
18
+ const skeletonStyles = ((_this$props = this.props) === null || _this$props === void 0 || (_this$props = _this$props.styles) === null || _this$props === void 0 ? void 0 : _this$props.skeleton) || {
19
+ root: {},
20
+ text: {}
21
+ };
22
+ return createSkeleton(this.theme, skeletonStyles, {
23
+ ...this.styles.root
24
+ }, /*#__PURE__*/React.createElement(View, {
25
+ style: [this.styles.root, {
26
+ opacity: 0
27
+ }]
28
+ }, props.children));
29
+ }
30
+ return null;
31
+ }
32
+ getBackground() {
33
+ return this._showSkeleton ? null : this._background;
34
+ }
35
+ renderWidget(props) {
36
+ const styles = this._showSkeleton ? {
37
+ ...this.styles.root,
38
+ ...this.styles.skeleton.root
39
+ } : this.styles.root;
40
+ return /*#__PURE__*/React.createElement(Tappable, _extends({}, this.getTestPropsForAction(), {
41
+ target: this,
42
+ styles: {
43
+ width: '100%'
44
+ },
45
+ disableTouchEffect: this.state.props.disabletoucheffect,
46
+ onLayout: event => this.handleLayout(event)
47
+ }), /*#__PURE__*/React.createElement(Animatedview, {
48
+ entryanimation: props.animation,
49
+ delay: props.animationdelay,
50
+ style: styles
51
+ }, this.getBackground(), props.children));
52
+ }
53
+ }
54
+ //# sourceMappingURL=tile.component.js.map