@rsmax/ali 1.0.1

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 (366) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/README.md +3 -0
  3. package/cjs/api.d.ts +2765 -0
  4. package/cjs/api.js +199 -0
  5. package/cjs/hostComponents/Button/index.d.ts +27 -0
  6. package/cjs/hostComponents/Button/index.js +5 -0
  7. package/cjs/hostComponents/Button/node.d.ts +25 -0
  8. package/cjs/hostComponents/Button/node.js +29 -0
  9. package/cjs/hostComponents/Camera/index.d.ts +18 -0
  10. package/cjs/hostComponents/Camera/index.js +5 -0
  11. package/cjs/hostComponents/Camera/node.d.ts +17 -0
  12. package/cjs/hostComponents/Camera/node.js +21 -0
  13. package/cjs/hostComponents/Canvas/index.d.ts +19 -0
  14. package/cjs/hostComponents/Canvas/index.js +5 -0
  15. package/cjs/hostComponents/Canvas/node.d.ts +19 -0
  16. package/cjs/hostComponents/Canvas/node.js +23 -0
  17. package/cjs/hostComponents/Checkbox/index.d.ts +12 -0
  18. package/cjs/hostComponents/Checkbox/index.js +5 -0
  19. package/cjs/hostComponents/Checkbox/node.d.ts +12 -0
  20. package/cjs/hostComponents/Checkbox/node.js +16 -0
  21. package/cjs/hostComponents/CheckboxGroup/index.d.ts +9 -0
  22. package/cjs/hostComponents/CheckboxGroup/index.js +5 -0
  23. package/cjs/hostComponents/CheckboxGroup/node.d.ts +8 -0
  24. package/cjs/hostComponents/CheckboxGroup/node.js +12 -0
  25. package/cjs/hostComponents/ContactButton/index.d.ts +11 -0
  26. package/cjs/hostComponents/ContactButton/index.js +5 -0
  27. package/cjs/hostComponents/ContactButton/node.d.ts +12 -0
  28. package/cjs/hostComponents/ContactButton/node.js +16 -0
  29. package/cjs/hostComponents/CoverImage/index.d.ts +9 -0
  30. package/cjs/hostComponents/CoverImage/index.js +5 -0
  31. package/cjs/hostComponents/CoverImage/node.d.ts +9 -0
  32. package/cjs/hostComponents/CoverImage/node.js +13 -0
  33. package/cjs/hostComponents/CoverView/index.d.ts +8 -0
  34. package/cjs/hostComponents/CoverView/index.js +5 -0
  35. package/cjs/hostComponents/CoverView/node.d.ts +8 -0
  36. package/cjs/hostComponents/CoverView/node.js +12 -0
  37. package/cjs/hostComponents/Form/index.d.ts +10 -0
  38. package/cjs/hostComponents/Form/index.js +5 -0
  39. package/cjs/hostComponents/Form/node.d.ts +9 -0
  40. package/cjs/hostComponents/Form/node.js +13 -0
  41. package/cjs/hostComponents/Icon/index.d.ts +10 -0
  42. package/cjs/hostComponents/Icon/index.js +5 -0
  43. package/cjs/hostComponents/Icon/node.d.ts +9 -0
  44. package/cjs/hostComponents/Icon/node.js +13 -0
  45. package/cjs/hostComponents/Image/index.d.ts +20 -0
  46. package/cjs/hostComponents/Image/index.js +5 -0
  47. package/cjs/hostComponents/Image/node.d.ts +17 -0
  48. package/cjs/hostComponents/Image/node.js +21 -0
  49. package/cjs/hostComponents/Input/index.d.ts +30 -0
  50. package/cjs/hostComponents/Input/index.js +5 -0
  51. package/cjs/hostComponents/Input/node.d.ts +29 -0
  52. package/cjs/hostComponents/Input/node.js +33 -0
  53. package/cjs/hostComponents/Label/index.d.ts +8 -0
  54. package/cjs/hostComponents/Label/index.js +5 -0
  55. package/cjs/hostComponents/Label/node.d.ts +7 -0
  56. package/cjs/hostComponents/Label/node.js +11 -0
  57. package/cjs/hostComponents/Lifestyle/index.d.ts +7 -0
  58. package/cjs/hostComponents/Lifestyle/index.js +5 -0
  59. package/cjs/hostComponents/Lifestyle/node.d.ts +5 -0
  60. package/cjs/hostComponents/Lifestyle/node.js +9 -0
  61. package/cjs/hostComponents/Lottie/index.d.ts +23 -0
  62. package/cjs/hostComponents/Lottie/index.js +5 -0
  63. package/cjs/hostComponents/Lottie/node.d.ts +22 -0
  64. package/cjs/hostComponents/Lottie/node.js +26 -0
  65. package/cjs/hostComponents/Map/index.d.ts +127 -0
  66. package/cjs/hostComponents/Map/index.js +5 -0
  67. package/cjs/hostComponents/Map/node.d.ts +29 -0
  68. package/cjs/hostComponents/Map/node.js +33 -0
  69. package/cjs/hostComponents/MovableArea/index.d.ts +10 -0
  70. package/cjs/hostComponents/MovableArea/index.js +5 -0
  71. package/cjs/hostComponents/MovableArea/node.d.ts +8 -0
  72. package/cjs/hostComponents/MovableArea/node.js +12 -0
  73. package/cjs/hostComponents/MovableView/index.d.ts +30 -0
  74. package/cjs/hostComponents/MovableView/index.js +5 -0
  75. package/cjs/hostComponents/MovableView/node.d.ts +26 -0
  76. package/cjs/hostComponents/MovableView/node.js +30 -0
  77. package/cjs/hostComponents/Navigator/index.d.ts +12 -0
  78. package/cjs/hostComponents/Navigator/index.js +5 -0
  79. package/cjs/hostComponents/Navigator/node.d.ts +12 -0
  80. package/cjs/hostComponents/Navigator/node.js +16 -0
  81. package/cjs/hostComponents/Picker/index.d.ts +13 -0
  82. package/cjs/hostComponents/Picker/index.js +5 -0
  83. package/cjs/hostComponents/Picker/node.d.ts +12 -0
  84. package/cjs/hostComponents/Picker/node.js +16 -0
  85. package/cjs/hostComponents/PickerView/index.d.ts +14 -0
  86. package/cjs/hostComponents/PickerView/index.js +5 -0
  87. package/cjs/hostComponents/PickerView/node.d.ts +15 -0
  88. package/cjs/hostComponents/PickerView/node.js +19 -0
  89. package/cjs/hostComponents/PickerViewColumn/index.d.ts +2 -0
  90. package/cjs/hostComponents/PickerViewColumn/index.js +5 -0
  91. package/cjs/hostComponents/PickerViewColumn/node.d.ts +2 -0
  92. package/cjs/hostComponents/PickerViewColumn/node.js +5 -0
  93. package/cjs/hostComponents/Progress/index.d.ts +13 -0
  94. package/cjs/hostComponents/Progress/index.js +5 -0
  95. package/cjs/hostComponents/Progress/node.d.ts +12 -0
  96. package/cjs/hostComponents/Progress/node.js +16 -0
  97. package/cjs/hostComponents/Radio/index.d.ts +12 -0
  98. package/cjs/hostComponents/Radio/index.js +5 -0
  99. package/cjs/hostComponents/Radio/node.d.ts +11 -0
  100. package/cjs/hostComponents/Radio/node.js +15 -0
  101. package/cjs/hostComponents/RadioGroup/index.d.ts +9 -0
  102. package/cjs/hostComponents/RadioGroup/index.js +5 -0
  103. package/cjs/hostComponents/RadioGroup/node.d.ts +8 -0
  104. package/cjs/hostComponents/RadioGroup/node.js +12 -0
  105. package/cjs/hostComponents/RichText/index.d.ts +12 -0
  106. package/cjs/hostComponents/RichText/index.js +5 -0
  107. package/cjs/hostComponents/RichText/node.d.ts +15 -0
  108. package/cjs/hostComponents/RichText/node.js +19 -0
  109. package/cjs/hostComponents/ScrollView/index.d.ts +28 -0
  110. package/cjs/hostComponents/ScrollView/index.js +5 -0
  111. package/cjs/hostComponents/ScrollView/node.d.ts +26 -0
  112. package/cjs/hostComponents/ScrollView/node.js +30 -0
  113. package/cjs/hostComponents/Slider/index.d.ts +21 -0
  114. package/cjs/hostComponents/Slider/index.js +5 -0
  115. package/cjs/hostComponents/Slider/node.d.ts +20 -0
  116. package/cjs/hostComponents/Slider/node.js +24 -0
  117. package/cjs/hostComponents/Swiper/index.d.ts +27 -0
  118. package/cjs/hostComponents/Swiper/index.js +5 -0
  119. package/cjs/hostComponents/Swiper/node.d.ts +27 -0
  120. package/cjs/hostComponents/Swiper/node.js +31 -0
  121. package/cjs/hostComponents/SwiperItem/index.d.ts +9 -0
  122. package/cjs/hostComponents/SwiperItem/index.js +5 -0
  123. package/cjs/hostComponents/SwiperItem/node.d.ts +7 -0
  124. package/cjs/hostComponents/SwiperItem/node.js +11 -0
  125. package/cjs/hostComponents/Switch/index.d.ts +12 -0
  126. package/cjs/hostComponents/Switch/index.js +5 -0
  127. package/cjs/hostComponents/Switch/node.d.ts +12 -0
  128. package/cjs/hostComponents/Switch/node.js +16 -0
  129. package/cjs/hostComponents/Text/index.d.ts +15 -0
  130. package/cjs/hostComponents/Text/index.js +5 -0
  131. package/cjs/hostComponents/Text/node.d.ts +12 -0
  132. package/cjs/hostComponents/Text/node.js +16 -0
  133. package/cjs/hostComponents/Textarea/index.d.ts +23 -0
  134. package/cjs/hostComponents/Textarea/index.js +5 -0
  135. package/cjs/hostComponents/Textarea/node.d.ts +23 -0
  136. package/cjs/hostComponents/Textarea/node.js +27 -0
  137. package/cjs/hostComponents/Video/index.d.ts +33 -0
  138. package/cjs/hostComponents/Video/index.js +5 -0
  139. package/cjs/hostComponents/Video/node.d.ts +33 -0
  140. package/cjs/hostComponents/Video/node.js +37 -0
  141. package/cjs/hostComponents/View/index.d.ts +33 -0
  142. package/cjs/hostComponents/View/index.js +5 -0
  143. package/cjs/hostComponents/View/node.d.ts +29 -0
  144. package/cjs/hostComponents/View/node.js +33 -0
  145. package/cjs/hostComponents/WebView/index.d.ts +8 -0
  146. package/cjs/hostComponents/WebView/index.js +5 -0
  147. package/cjs/hostComponents/WebView/node.d.ts +6 -0
  148. package/cjs/hostComponents/WebView/node.js +6 -0
  149. package/cjs/hostComponents/index.d.ts +36 -0
  150. package/cjs/hostComponents/index.js +52 -0
  151. package/cjs/hostComponents/node.d.ts +2 -0
  152. package/cjs/hostComponents/node.js +99 -0
  153. package/cjs/index.d.ts +3 -0
  154. package/cjs/index.js +19 -0
  155. package/cjs/node/index.d.ts +3 -0
  156. package/cjs/node/index.js +62 -0
  157. package/cjs/types/config.d.ts +151 -0
  158. package/cjs/types/config.js +2 -0
  159. package/cjs/types/index.d.ts +1 -0
  160. package/cjs/types/index.js +17 -0
  161. package/esm/api.d.ts +2765 -0
  162. package/esm/api.js +193 -0
  163. package/esm/hostComponents/Button/index.d.ts +27 -0
  164. package/esm/hostComponents/Button/index.js +2 -0
  165. package/esm/hostComponents/Button/node.d.ts +25 -0
  166. package/esm/hostComponents/Button/node.js +26 -0
  167. package/esm/hostComponents/Camera/index.d.ts +18 -0
  168. package/esm/hostComponents/Camera/index.js +2 -0
  169. package/esm/hostComponents/Camera/node.d.ts +17 -0
  170. package/esm/hostComponents/Camera/node.js +18 -0
  171. package/esm/hostComponents/Canvas/index.d.ts +19 -0
  172. package/esm/hostComponents/Canvas/index.js +2 -0
  173. package/esm/hostComponents/Canvas/node.d.ts +19 -0
  174. package/esm/hostComponents/Canvas/node.js +20 -0
  175. package/esm/hostComponents/Checkbox/index.d.ts +12 -0
  176. package/esm/hostComponents/Checkbox/index.js +2 -0
  177. package/esm/hostComponents/Checkbox/node.d.ts +12 -0
  178. package/esm/hostComponents/Checkbox/node.js +13 -0
  179. package/esm/hostComponents/CheckboxGroup/index.d.ts +9 -0
  180. package/esm/hostComponents/CheckboxGroup/index.js +2 -0
  181. package/esm/hostComponents/CheckboxGroup/node.d.ts +8 -0
  182. package/esm/hostComponents/CheckboxGroup/node.js +9 -0
  183. package/esm/hostComponents/ContactButton/index.d.ts +11 -0
  184. package/esm/hostComponents/ContactButton/index.js +2 -0
  185. package/esm/hostComponents/ContactButton/node.d.ts +12 -0
  186. package/esm/hostComponents/ContactButton/node.js +13 -0
  187. package/esm/hostComponents/CoverImage/index.d.ts +9 -0
  188. package/esm/hostComponents/CoverImage/index.js +2 -0
  189. package/esm/hostComponents/CoverImage/node.d.ts +9 -0
  190. package/esm/hostComponents/CoverImage/node.js +10 -0
  191. package/esm/hostComponents/CoverView/index.d.ts +8 -0
  192. package/esm/hostComponents/CoverView/index.js +2 -0
  193. package/esm/hostComponents/CoverView/node.d.ts +8 -0
  194. package/esm/hostComponents/CoverView/node.js +9 -0
  195. package/esm/hostComponents/Form/index.d.ts +10 -0
  196. package/esm/hostComponents/Form/index.js +2 -0
  197. package/esm/hostComponents/Form/node.d.ts +9 -0
  198. package/esm/hostComponents/Form/node.js +10 -0
  199. package/esm/hostComponents/Icon/index.d.ts +10 -0
  200. package/esm/hostComponents/Icon/index.js +2 -0
  201. package/esm/hostComponents/Icon/node.d.ts +9 -0
  202. package/esm/hostComponents/Icon/node.js +10 -0
  203. package/esm/hostComponents/Image/index.d.ts +20 -0
  204. package/esm/hostComponents/Image/index.js +2 -0
  205. package/esm/hostComponents/Image/node.d.ts +17 -0
  206. package/esm/hostComponents/Image/node.js +18 -0
  207. package/esm/hostComponents/Input/index.d.ts +30 -0
  208. package/esm/hostComponents/Input/index.js +2 -0
  209. package/esm/hostComponents/Input/node.d.ts +29 -0
  210. package/esm/hostComponents/Input/node.js +30 -0
  211. package/esm/hostComponents/Label/index.d.ts +8 -0
  212. package/esm/hostComponents/Label/index.js +2 -0
  213. package/esm/hostComponents/Label/node.d.ts +7 -0
  214. package/esm/hostComponents/Label/node.js +8 -0
  215. package/esm/hostComponents/Lifestyle/index.d.ts +7 -0
  216. package/esm/hostComponents/Lifestyle/index.js +2 -0
  217. package/esm/hostComponents/Lifestyle/node.d.ts +5 -0
  218. package/esm/hostComponents/Lifestyle/node.js +6 -0
  219. package/esm/hostComponents/Lottie/index.d.ts +23 -0
  220. package/esm/hostComponents/Lottie/index.js +2 -0
  221. package/esm/hostComponents/Lottie/node.d.ts +22 -0
  222. package/esm/hostComponents/Lottie/node.js +23 -0
  223. package/esm/hostComponents/Map/index.d.ts +127 -0
  224. package/esm/hostComponents/Map/index.js +2 -0
  225. package/esm/hostComponents/Map/node.d.ts +29 -0
  226. package/esm/hostComponents/Map/node.js +30 -0
  227. package/esm/hostComponents/MovableArea/index.d.ts +10 -0
  228. package/esm/hostComponents/MovableArea/index.js +2 -0
  229. package/esm/hostComponents/MovableArea/node.d.ts +8 -0
  230. package/esm/hostComponents/MovableArea/node.js +9 -0
  231. package/esm/hostComponents/MovableView/index.d.ts +30 -0
  232. package/esm/hostComponents/MovableView/index.js +2 -0
  233. package/esm/hostComponents/MovableView/node.d.ts +26 -0
  234. package/esm/hostComponents/MovableView/node.js +27 -0
  235. package/esm/hostComponents/Navigator/index.d.ts +12 -0
  236. package/esm/hostComponents/Navigator/index.js +2 -0
  237. package/esm/hostComponents/Navigator/node.d.ts +12 -0
  238. package/esm/hostComponents/Navigator/node.js +13 -0
  239. package/esm/hostComponents/Picker/index.d.ts +13 -0
  240. package/esm/hostComponents/Picker/index.js +2 -0
  241. package/esm/hostComponents/Picker/node.d.ts +12 -0
  242. package/esm/hostComponents/Picker/node.js +13 -0
  243. package/esm/hostComponents/PickerView/index.d.ts +14 -0
  244. package/esm/hostComponents/PickerView/index.js +2 -0
  245. package/esm/hostComponents/PickerView/node.d.ts +15 -0
  246. package/esm/hostComponents/PickerView/node.js +16 -0
  247. package/esm/hostComponents/PickerViewColumn/index.d.ts +2 -0
  248. package/esm/hostComponents/PickerViewColumn/index.js +2 -0
  249. package/esm/hostComponents/PickerViewColumn/node.d.ts +2 -0
  250. package/esm/hostComponents/PickerViewColumn/node.js +2 -0
  251. package/esm/hostComponents/Progress/index.d.ts +13 -0
  252. package/esm/hostComponents/Progress/index.js +2 -0
  253. package/esm/hostComponents/Progress/node.d.ts +12 -0
  254. package/esm/hostComponents/Progress/node.js +13 -0
  255. package/esm/hostComponents/Radio/index.d.ts +12 -0
  256. package/esm/hostComponents/Radio/index.js +2 -0
  257. package/esm/hostComponents/Radio/node.d.ts +11 -0
  258. package/esm/hostComponents/Radio/node.js +12 -0
  259. package/esm/hostComponents/RadioGroup/index.d.ts +9 -0
  260. package/esm/hostComponents/RadioGroup/index.js +2 -0
  261. package/esm/hostComponents/RadioGroup/node.d.ts +8 -0
  262. package/esm/hostComponents/RadioGroup/node.js +9 -0
  263. package/esm/hostComponents/RichText/index.d.ts +12 -0
  264. package/esm/hostComponents/RichText/index.js +2 -0
  265. package/esm/hostComponents/RichText/node.d.ts +15 -0
  266. package/esm/hostComponents/RichText/node.js +16 -0
  267. package/esm/hostComponents/ScrollView/index.d.ts +28 -0
  268. package/esm/hostComponents/ScrollView/index.js +2 -0
  269. package/esm/hostComponents/ScrollView/node.d.ts +26 -0
  270. package/esm/hostComponents/ScrollView/node.js +27 -0
  271. package/esm/hostComponents/Slider/index.d.ts +21 -0
  272. package/esm/hostComponents/Slider/index.js +2 -0
  273. package/esm/hostComponents/Slider/node.d.ts +20 -0
  274. package/esm/hostComponents/Slider/node.js +21 -0
  275. package/esm/hostComponents/Swiper/index.d.ts +27 -0
  276. package/esm/hostComponents/Swiper/index.js +2 -0
  277. package/esm/hostComponents/Swiper/node.d.ts +27 -0
  278. package/esm/hostComponents/Swiper/node.js +28 -0
  279. package/esm/hostComponents/SwiperItem/index.d.ts +9 -0
  280. package/esm/hostComponents/SwiperItem/index.js +2 -0
  281. package/esm/hostComponents/SwiperItem/node.d.ts +7 -0
  282. package/esm/hostComponents/SwiperItem/node.js +8 -0
  283. package/esm/hostComponents/Switch/index.d.ts +12 -0
  284. package/esm/hostComponents/Switch/index.js +2 -0
  285. package/esm/hostComponents/Switch/node.d.ts +12 -0
  286. package/esm/hostComponents/Switch/node.js +13 -0
  287. package/esm/hostComponents/Text/index.d.ts +15 -0
  288. package/esm/hostComponents/Text/index.js +2 -0
  289. package/esm/hostComponents/Text/node.d.ts +12 -0
  290. package/esm/hostComponents/Text/node.js +13 -0
  291. package/esm/hostComponents/Textarea/index.d.ts +23 -0
  292. package/esm/hostComponents/Textarea/index.js +2 -0
  293. package/esm/hostComponents/Textarea/node.d.ts +23 -0
  294. package/esm/hostComponents/Textarea/node.js +24 -0
  295. package/esm/hostComponents/Video/index.d.ts +33 -0
  296. package/esm/hostComponents/Video/index.js +2 -0
  297. package/esm/hostComponents/Video/node.d.ts +33 -0
  298. package/esm/hostComponents/Video/node.js +34 -0
  299. package/esm/hostComponents/View/index.d.ts +33 -0
  300. package/esm/hostComponents/View/index.js +2 -0
  301. package/esm/hostComponents/View/node.d.ts +29 -0
  302. package/esm/hostComponents/View/node.js +30 -0
  303. package/esm/hostComponents/WebView/index.d.ts +8 -0
  304. package/esm/hostComponents/WebView/index.js +2 -0
  305. package/esm/hostComponents/WebView/node.d.ts +6 -0
  306. package/esm/hostComponents/WebView/node.js +3 -0
  307. package/esm/hostComponents/index.d.ts +36 -0
  308. package/esm/hostComponents/index.js +36 -0
  309. package/esm/hostComponents/node.d.ts +2 -0
  310. package/esm/hostComponents/node.js +74 -0
  311. package/esm/index.d.ts +3 -0
  312. package/esm/index.js +3 -0
  313. package/esm/node/index.d.ts +3 -0
  314. package/esm/node/index.js +34 -0
  315. package/esm/types/config.d.ts +151 -0
  316. package/esm/types/config.js +1 -0
  317. package/esm/types/index.d.ts +1 -0
  318. package/esm/types/index.js +1 -0
  319. package/node.js +1 -0
  320. package/package.json +35 -0
  321. package/templates/default/base.ejs +25 -0
  322. package/templates/default/component.ejs +67 -0
  323. package/templates/default/page.ejs +32 -0
  324. package/templates/static/additional-host-component.ejs +9 -0
  325. package/templates/static/host-components/block.ejs +5 -0
  326. package/templates/static/host-components/button.ejs +7 -0
  327. package/templates/static/host-components/camera.ejs +7 -0
  328. package/templates/static/host-components/canvas.ejs +7 -0
  329. package/templates/static/host-components/checkbox-group.ejs +7 -0
  330. package/templates/static/host-components/checkbox.ejs +7 -0
  331. package/templates/static/host-components/contact-button.ejs +7 -0
  332. package/templates/static/host-components/cover-image.ejs +7 -0
  333. package/templates/static/host-components/cover-view.ejs +7 -0
  334. package/templates/static/host-components/form.ejs +7 -0
  335. package/templates/static/host-components/icon.ejs +7 -0
  336. package/templates/static/host-components/image.ejs +7 -0
  337. package/templates/static/host-components/input.ejs +7 -0
  338. package/templates/static/host-components/label.ejs +7 -0
  339. package/templates/static/host-components/lifestyle.ejs +7 -0
  340. package/templates/static/host-components/lottie.ejs +7 -0
  341. package/templates/static/host-components/map.ejs +7 -0
  342. package/templates/static/host-components/movable-area.ejs +7 -0
  343. package/templates/static/host-components/movable-view.ejs +7 -0
  344. package/templates/static/host-components/navigator.ejs +7 -0
  345. package/templates/static/host-components/picker-view-column.ejs +7 -0
  346. package/templates/static/host-components/picker-view.ejs +13 -0
  347. package/templates/static/host-components/picker.ejs +9 -0
  348. package/templates/static/host-components/plain-text.ejs +3 -0
  349. package/templates/static/host-components/progress.ejs +7 -0
  350. package/templates/static/host-components/radio-group.ejs +7 -0
  351. package/templates/static/host-components/radio.ejs +7 -0
  352. package/templates/static/host-components/rich-text.ejs +7 -0
  353. package/templates/static/host-components/scroll-view.ejs +7 -0
  354. package/templates/static/host-components/slider.ejs +7 -0
  355. package/templates/static/host-components/swiper-item.ejs +7 -0
  356. package/templates/static/host-components/swiper.ejs +13 -0
  357. package/templates/static/host-components/switch.ejs +7 -0
  358. package/templates/static/host-components/text.ejs +7 -0
  359. package/templates/static/host-components/textarea.ejs +7 -0
  360. package/templates/static/host-components/video.ejs +7 -0
  361. package/templates/static/host-components/view.ejs +7 -0
  362. package/templates/static/host-components/web-view.ejs +7 -0
  363. package/templates/static/isolated-templates.ejs +5 -0
  364. package/templates/static/native-component.ejs +24 -0
  365. package/templates/static/page.ejs +64 -0
  366. package/vitest.config.js +7 -0
package/esm/api.js ADDED
@@ -0,0 +1,193 @@
1
+ import { promisify } from '@rsmax/framework-shared';
2
+ // @ts-ignore
3
+ export const addCardAuth = promisify(my.addCardAuth);
4
+ export const addPhoneContact = promisify(my.addPhoneContact);
5
+ export const alert = promisify(my.alert);
6
+ export const canIUse = my.canIUse;
7
+ export const chooseAlipayContact = promisify(my.chooseAlipayContact);
8
+ export const chooseCity = promisify(my.chooseCity);
9
+ export const chooseContact = promisify(my.chooseContact);
10
+ export const chooseImage = promisify(my.chooseImage);
11
+ export const chooseLocation = promisify(my.chooseLocation);
12
+ export const choosePhoneContact = promisify(my.choosePhoneContact);
13
+ export const clearStorage = my.clearStorage;
14
+ export const clearStorageSync = my.clearStorageSync;
15
+ export const closeBluetoothAdapter = promisify(my.closeBluetoothAdapter);
16
+ export const closeSocket = promisify(my.closeSocket);
17
+ export const compressImage = promisify(my.compressImage);
18
+ export const confirm = promisify(my.confirm);
19
+ export const connectBLEDevice = promisify(my.connectBLEDevice);
20
+ export const connectSocket = promisify(my.connectSocket);
21
+ export const createAnimation = my.createAnimation;
22
+ export const createCanvasContext = my.createCanvasContext;
23
+ export const createIntersectionObserver = my.createIntersectionObserver;
24
+ export const createMapContext = my.createMapContext;
25
+ export const createSelectorQuery = my.createSelectorQuery;
26
+ export const createWebViewContext = my.createWebViewContext;
27
+ export const datePicker = promisify(my.datePicker);
28
+ export const disconnectBLEDevice = promisify(my.disconnectBLEDevice);
29
+ export const downloadFile = promisify(my.downloadFile);
30
+ export const getAuthCode = promisify(my.getAuthCode);
31
+ // @ts-ignore
32
+ export const getAuthUserInfo = promisify(my.getAuthUserInfo);
33
+ export const getBatteryInfo = promisify(my.getBatteryInfo);
34
+ export const getBatteryInfoSync = my.getBatteryInfoSync;
35
+ export const getBeacons = promisify(my.getBeacons);
36
+ export const getBLEDeviceCharacteristics = promisify(my.getBLEDeviceCharacteristics);
37
+ export const getBLEDeviceServices = promisify(my.getBLEDeviceServices);
38
+ export const getBluetoothAdapterState = promisify(my.getBluetoothAdapterState);
39
+ export const getBluetoothDevices = promisify(my.getBluetoothDevices);
40
+ export const getClipboard = promisify(my.getClipboard);
41
+ export const getConnectedBluetoothDevices = promisify(my.getConnectedBluetoothDevices);
42
+ export const getFileInfo = promisify(my.getFileInfo);
43
+ export const getImageInfo = promisify(my.getImageInfo);
44
+ export const getLocation = promisify(my.getLocation);
45
+ export const getNetworkType = promisify(my.getNetworkType);
46
+ export const getPhoneNumber = promisify(my.getPhoneNumber);
47
+ export const getRunData = promisify(my.getRunData);
48
+ export const getRunScene = promisify(my.getRunScene);
49
+ export const getSavedFileInfo = promisify(my.getSavedFileInfo);
50
+ export const getSavedFileList = promisify(my.getSavedFileList);
51
+ export const getScreenBrightness = promisify(my.getScreenBrightness);
52
+ export const getServerTime = promisify(my.getServerTime);
53
+ export const getSetting = promisify(my.getSetting);
54
+ export const getStorage = promisify(my.getStorage);
55
+ export const getStorageInfo = promisify(my.getStorageInfo);
56
+ export const getStorageInfoSync = my.getStorageInfoSync;
57
+ export const getStorageSync = my.getStorageSync;
58
+ export const getSystemInfo = promisify(my.getSystemInfo);
59
+ export const getSystemInfoSync = my.getSystemInfoSync;
60
+ export const getTitleColor = promisify(my.getTitleColor);
61
+ export const getUpdateManager = my.getUpdateManager;
62
+ export const hideAddToDesktopMenu = my.hideAddToDesktopMenu;
63
+ export const hideAllAddToDesktopMenu = my.hideAllAddToDesktopMenu;
64
+ // @ts-ignore
65
+ export const hideAllFavoriteMenu = my.hideAllFavoriteMenu;
66
+ export const hideBackHome = my.hideBackHome;
67
+ // @ts-ignore
68
+ export const hideFavoriteMenu = my.hideFavoriteMenu;
69
+ export const hideKeyboard = my.hideKeyboard;
70
+ export const hideLoading = my.hideLoading;
71
+ export const hideNavigationBarLoading = my.hideNavigationBarLoading;
72
+ export const hideShareMenu = my.hideShareMenu;
73
+ export const hideTabBar = my.hideTabBar;
74
+ export const hideTabBarRedDot = my.hideTabBarRedDot;
75
+ export const hideToast = my.hideToast;
76
+ export const loadFontFace = promisify(my.loadFontFace);
77
+ export const makePhoneCall = my.makePhoneCall;
78
+ export const multiLevelSelect = promisify(my.multiLevelSelect);
79
+ export const navigateBack = promisify(my.navigateBack);
80
+ export const navigateBackMiniProgram = promisify(my.navigateBackMiniProgram);
81
+ export const navigateTo = promisify(my.navigateTo);
82
+ export const navigateToMiniProgram = promisify(my.navigateToMiniProgram);
83
+ export const notifyBLECharacteristicValueChange = promisify(my.notifyBLECharacteristicValueChange);
84
+ export const offAccelerometerChange = my.offAccelerometerChange;
85
+ export const offBLECharacteristicValueChange = my.offBLECharacteristicValueChange;
86
+ export const offBLEConnectionStateChanged = my.offBLEConnectionStateChanged;
87
+ export const offBluetoothAdapterStateChange = my.offBluetoothAdapterStateChange;
88
+ export const offBluetoothDeviceFound = my.offBluetoothDeviceFound;
89
+ export const offCompassChange = my.offCompassChange;
90
+ export const offGyroscopeChange = my.offGyroscopeChange;
91
+ export const offMemoryWarning = my.offMemoryWarning;
92
+ export const offNetworkStatusChange = my.offNetworkStatusChange;
93
+ export const offSocketClose = my.offSocketClose;
94
+ export const offSocketError = my.offSocketError;
95
+ export const offSocketMessage = my.offSocketMessage;
96
+ export const offSocketOpen = my.offSocketOpen;
97
+ export const offUserCaptureScreen = my.offUserCaptureScreen;
98
+ export const onAccelerometerChange = my.onAccelerometerChange;
99
+ export const onBeaconServiceChange = my.onBeaconServiceChange;
100
+ export const onBeaconUpdate = my.onBeaconUpdate;
101
+ export const onBLECharacteristicValueChange = my.onBLECharacteristicValueChange;
102
+ export const onBLEConnectionStateChanged = my.onBLEConnectionStateChanged;
103
+ export const onBluetoothAdapterStateChange = my.onBluetoothAdapterStateChange;
104
+ export const onBluetoothDeviceFound = my.onBluetoothDeviceFound;
105
+ export const onCompassChange = my.onCompassChange;
106
+ export const onGyroscopeChange = my.onGyroscopeChange;
107
+ export const onMemoryWarning = my.onMemoryWarning;
108
+ export const onNetworkStatusChange = my.onNetworkStatusChange;
109
+ export const onSocketClose = my.onSocketClose;
110
+ export const onSocketError = my.onSocketError;
111
+ export const onSocketMessage = my.onSocketMessage;
112
+ export const onSocketOpen = my.onSocketOpen;
113
+ export const onUserCaptureScreen = my.onUserCaptureScreen;
114
+ export const openBluetoothAdapter = my.openBluetoothAdapter;
115
+ // @ts-ignore
116
+ export const openCardDetail = my.openCardDetail;
117
+ // @ts-ignore
118
+ export const openCardList = my.openCardList;
119
+ export const openKBVoucherDetail = my.openKBVoucherDetail;
120
+ export const openLocation = promisify(my.openLocation);
121
+ // @ts-ignore
122
+ export const openMerchantCardList = my.openMerchantCardList;
123
+ export const openMerchantTicketList = my.openMerchantTicketList;
124
+ export const openMerchantVoucherList = my.openMerchantVoucherList;
125
+ export const openSetting = promisify(my.openSetting);
126
+ export const openTicketDetail = my.openTicketDetail;
127
+ export const openTicketList = my.openTicketList;
128
+ export const openVoucherDetail = my.openVoucherDetail;
129
+ export const openVoucherList = my.openVoucherList;
130
+ export const optionsSelect = my.optionsSelect;
131
+ export const pageScrollTo = promisify(my.pageScrollTo);
132
+ export const previewImage = promisify(my.previewImage);
133
+ export const prompt = promisify(my.prompt);
134
+ export const readBLECharacteristicValue = promisify(my.readBLECharacteristicValue);
135
+ export const redirectTo = promisify(my.redirectTo);
136
+ export const reLaunch = promisify(my.reLaunch);
137
+ export const removeSavedFile = promisify(my.removeSavedFile);
138
+ export const removeStorage = promisify(my.removeStorage);
139
+ export const removeStorageSync = my.removeStorageSync;
140
+ export const removeTabBarBadge = promisify(my.removeTabBarBadge);
141
+ // @ts-ignore
142
+ export const reportAnalytics = my.reportAnalytics;
143
+ export const request = promisify(my.request);
144
+ export const rsa = promisify(my.rsa);
145
+ export const saveFile = promisify(my.saveFile);
146
+ export const saveImage = promisify(my.saveImage);
147
+ export const scan = promisify(my.scan);
148
+ export const SDKVersion = my.SDKVersion;
149
+ export const sendSocketMessage = promisify(my.sendSocketMessage);
150
+ export const setBackgroundColor = promisify(my.setBackgroundColor);
151
+ export const setBackgroundTextStyle = promisify(my.setBackgroundTextStyle);
152
+ export const setCanPullDown = my.setCanPullDown;
153
+ export const setClipboard = promisify(my.setClipboard);
154
+ export const setKeepScreenOn = promisify(my.setKeepScreenOn);
155
+ export const setNavigationBar = promisify(my.setNavigationBar);
156
+ // @ts-ignore
157
+ export const setOptionMenu = my.setOptionMenu;
158
+ export const setScreenBrightness = promisify(my.setScreenBrightness);
159
+ export const setStorage = promisify(my.setStorage);
160
+ export const setStorageSync = my.setStorageSync;
161
+ export const setTabBarBadge = promisify(my.setTabBarBadge);
162
+ export const setTabBarItem = promisify(my.setTabBarItem);
163
+ export const setTabBarStyle = promisify(my.setTabBarStyle);
164
+ export const showActionSheet = promisify(my.showActionSheet);
165
+ export const showAuthGuide = my.showAuthGuide;
166
+ export const showLoading = promisify(my.showLoading);
167
+ export const showNavigationBarLoading = promisify(my.showNavigationBarLoading);
168
+ export const showSharePanel = my.showSharePanel;
169
+ export const showTabBar = promisify(my.showTabBar);
170
+ export const showTabBarRedDot = promisify(my.showTabBarRedDot);
171
+ export const showToast = promisify(my.showToast);
172
+ export const startBeaconDiscovery = promisify(my.startBeaconDiscovery);
173
+ export const startBluetoothDevicesDiscovery = promisify(my.startBluetoothDevicesDiscovery);
174
+ export const startPullDownRefresh = promisify(my.startPullDownRefresh);
175
+ // @ts-ignore
176
+ export const startZMVerify = my.startZMVerify;
177
+ export const stopBeaconDiscovery = promisify(my.stopBeaconDiscovery);
178
+ export const stopBluetoothDevicesDiscovery = promisify(my.stopBluetoothDevicesDiscovery);
179
+ export const stopPullDownRefresh = promisify(my.stopPullDownRefresh);
180
+ export const switchTab = promisify(my.switchTab);
181
+ // @ts-ignore
182
+ export const textRiskIdentification = promisify(my.textRiskIdentification);
183
+ export const tradePay = promisify(my.tradePay);
184
+ export const uploadFile = promisify(my.uploadFile);
185
+ export const vibrate = promisify(my.vibrate);
186
+ export const vibrateLong = promisify(my.vibrateLong);
187
+ export const vibrateShort = promisify(my.vibrateShort);
188
+ export const watchShake = my.watchShake;
189
+ export const writeBLECharacteristicValue = promisify(my.writeBLECharacteristicValue);
190
+ export const createVideoContext = my.createVideoContext;
191
+ export const getOpenUserInfo = promisify(my.getOpenUserInfo);
192
+ // @ts-ignore
193
+ export const httpRequest = promisify(my.httpRequest);
@@ -0,0 +1,27 @@
1
+ import React from 'react';
2
+ export interface ButtonProps {
3
+ readonly dataset?: DOMStringMap;
4
+ id?: string;
5
+ className?: string;
6
+ style?: React.CSSProperties;
7
+ size?: 'default' | 'mini';
8
+ type?: 'primary' | 'default' | 'warn';
9
+ plain?: boolean;
10
+ disabled?: boolean;
11
+ loading?: boolean;
12
+ hoverClassName?: string;
13
+ hoverStartTime?: number;
14
+ hoverStayTime?: number;
15
+ hoverStopPropagation?: boolean;
16
+ formType?: 'submit' | 'reset';
17
+ openType?: 'share' | 'getAuthorize' | 'contactShare' | 'lifestyle';
18
+ scope?: 'phoneNumber' | 'userInfo';
19
+ appParameter?: string;
20
+ publicId?: string;
21
+ onTap?: (e: any) => void;
22
+ onClick?: (e: any) => void;
23
+ onGetAuthorize?: (e: any) => void;
24
+ onError?: (e: any) => void;
25
+ children?: React.ReactNode;
26
+ }
27
+ export declare const Button: React.ComponentType<ButtonProps>;
@@ -0,0 +1,2 @@
1
+ import { createHostComponent } from '@rsmax/runtime';
2
+ export const Button = createHostComponent('button');
@@ -0,0 +1,25 @@
1
+ export declare const alias: {
2
+ id: string;
3
+ className: string;
4
+ style: string;
5
+ size: string;
6
+ type: string;
7
+ plain: string;
8
+ disabled: string;
9
+ loading: string;
10
+ hoverClass: string;
11
+ hoverClassName: string;
12
+ hoverStartTime: string;
13
+ hoverStayTime: string;
14
+ hoverStopPropagation: string;
15
+ formType: string;
16
+ openType: string;
17
+ scope: string;
18
+ onClick: string;
19
+ onTap: string;
20
+ appParameter: string;
21
+ publicId: string;
22
+ onGetAuthorize: string;
23
+ onError: string;
24
+ };
25
+ export declare const props: string[];
@@ -0,0 +1,26 @@
1
+ import { unique } from '@rsmax/shared';
2
+ export const alias = {
3
+ id: 'id',
4
+ className: 'class',
5
+ style: 'style',
6
+ size: 'size',
7
+ type: 'type',
8
+ plain: 'plain',
9
+ disabled: 'disabled',
10
+ loading: 'loading',
11
+ hoverClass: 'hover-class',
12
+ hoverClassName: 'hover-class',
13
+ hoverStartTime: 'hover-start-time',
14
+ hoverStayTime: 'hover-stay-time',
15
+ hoverStopPropagation: 'hover-stop-propagation',
16
+ formType: 'form-type',
17
+ openType: 'open-type',
18
+ scope: 'scope',
19
+ onClick: 'onTap',
20
+ onTap: 'onTap',
21
+ appParameter: 'app-parameter',
22
+ publicId: 'public-id',
23
+ onGetAuthorize: 'onGetAuthorize',
24
+ onError: 'onError',
25
+ };
26
+ export const props = unique(Object.values(alias));
@@ -0,0 +1,18 @@
1
+ import React from 'react';
2
+ export interface CameraProps {
3
+ id?: string;
4
+ className?: string;
5
+ style?: React.CSSProperties;
6
+ mode?: 'normal' | 'scanCode';
7
+ devicePosition?: 'front' | 'back';
8
+ flash?: 'auto' | 'on' | 'off';
9
+ outputDimension?: '360P' | '540P' | '720P' | '1080P' | 'max';
10
+ applyMicPermissionWhenInit?: boolean;
11
+ frameSize?: 'small' | 'medium' | 'large';
12
+ frameFormat?: 'rgba' | 'jpg';
13
+ maxDuration?: number;
14
+ onStop?: (e: any) => void;
15
+ onError?: (e: any) => void;
16
+ onScanCode?: (e: any) => void;
17
+ }
18
+ export declare const Camera: React.ComponentType<CameraProps>;
@@ -0,0 +1,2 @@
1
+ import { createHostComponent } from '@rsmax/runtime';
2
+ export const Camera = createHostComponent('camera');
@@ -0,0 +1,17 @@
1
+ export declare const alias: {
2
+ id: string;
3
+ className: string;
4
+ style: string;
5
+ mode: string;
6
+ devicePosition: string;
7
+ flash: string;
8
+ outputDimension: string;
9
+ applyMicPermissionWhenInit: string;
10
+ frameSize: string;
11
+ frameFormat: string;
12
+ maxDuration: string;
13
+ onStop: string;
14
+ onError: string;
15
+ onScanCode: string;
16
+ };
17
+ export declare const props: string[];
@@ -0,0 +1,18 @@
1
+ import { unique } from '@rsmax/shared';
2
+ export const alias = {
3
+ id: 'id',
4
+ className: 'class',
5
+ style: 'style',
6
+ mode: 'mode',
7
+ devicePosition: 'device-position',
8
+ flash: 'flash',
9
+ outputDimension: 'outputDimension',
10
+ applyMicPermissionWhenInit: 'applyMicPermissionWhenInit',
11
+ frameSize: 'frame-size',
12
+ frameFormat: 'frame-format',
13
+ maxDuration: 'max-duration',
14
+ onStop: 'onStop',
15
+ onError: 'onError',
16
+ onScanCode: 'onScanCode',
17
+ };
18
+ export const props = unique(Object.values(alias));
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+ export interface CanvasProps {
3
+ readonly dataset?: DOMStringMap;
4
+ id?: string;
5
+ style?: React.CSSProperties;
6
+ className?: string;
7
+ width?: string | number;
8
+ height?: string | number;
9
+ disableScroll?: boolean;
10
+ type?: string;
11
+ onTap?: (e: any) => void;
12
+ onTouchStart?: (e: any) => void;
13
+ onTouchMove?: (e: any) => void;
14
+ onTouchEnd?: (e: any) => void;
15
+ onTouchCancel?: (e: any) => void;
16
+ onLongTap?: (e: any) => void;
17
+ onReady?: (e: any) => void;
18
+ }
19
+ export declare const Canvas: React.ComponentType<CanvasProps>;
@@ -0,0 +1,2 @@
1
+ import { createHostComponent } from '@rsmax/runtime';
2
+ export const Canvas = createHostComponent('canvas');
@@ -0,0 +1,19 @@
1
+ export declare const alias: {
2
+ id: string;
3
+ style: string;
4
+ className: string;
5
+ width: string;
6
+ height: string;
7
+ disableScroll: string;
8
+ type: string;
9
+ onClick: string;
10
+ onTap: string;
11
+ onTouchStart: string;
12
+ onTouchMove: string;
13
+ onTouchEnd: string;
14
+ onTouchCancel: string;
15
+ onLongTap: string;
16
+ onLongClick: string;
17
+ onReady: string;
18
+ };
19
+ export declare const props: string[];
@@ -0,0 +1,20 @@
1
+ import { unique } from '@rsmax/shared';
2
+ export const alias = {
3
+ id: 'id',
4
+ style: 'style',
5
+ className: 'class',
6
+ width: 'width',
7
+ height: 'height',
8
+ disableScroll: 'disable-scroll',
9
+ type: 'type',
10
+ onClick: 'onTap',
11
+ onTap: 'onTap',
12
+ onTouchStart: 'onTouchStart',
13
+ onTouchMove: 'onTouchMove',
14
+ onTouchEnd: 'onTouchEnd',
15
+ onTouchCancel: 'onTouchCancel',
16
+ onLongTap: 'onLongTap',
17
+ onLongClick: 'onLongTap',
18
+ onReady: 'onReady',
19
+ };
20
+ export const props = unique(Object.values(alias));
@@ -0,0 +1,12 @@
1
+ export interface CheckboxProps {
2
+ readonly dataset?: DOMStringMap;
3
+ id?: string;
4
+ name?: string;
5
+ className?: string;
6
+ value?: string;
7
+ checked?: boolean;
8
+ disabled?: boolean;
9
+ color?: string;
10
+ onChange?: (e: any) => void;
11
+ }
12
+ export declare const Checkbox: import("react").ComponentType<CheckboxProps>;
@@ -0,0 +1,2 @@
1
+ import { createHostComponent } from '@rsmax/runtime';
2
+ export const Checkbox = createHostComponent('checkbox');
@@ -0,0 +1,12 @@
1
+ export declare const alias: {
2
+ className: string;
3
+ style: string;
4
+ id: string;
5
+ name: string;
6
+ value: string;
7
+ checked: string;
8
+ disabled: string;
9
+ onChange: string;
10
+ color: string;
11
+ };
12
+ export declare const props: string[];
@@ -0,0 +1,13 @@
1
+ import { unique } from '@rsmax/shared';
2
+ export const alias = {
3
+ className: 'class',
4
+ style: 'style',
5
+ id: 'id',
6
+ name: 'name',
7
+ value: 'value',
8
+ checked: 'checked',
9
+ disabled: 'disabled',
10
+ onChange: 'onChange',
11
+ color: 'color',
12
+ };
13
+ export const props = unique(Object.values(alias));
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ export interface CheckboxGroupProps {
3
+ readonly dataset?: DOMStringMap;
4
+ id?: string;
5
+ className?: string;
6
+ name?: string;
7
+ onChange?: (e: any) => void;
8
+ }
9
+ export declare const CheckboxGroup: React.ComponentType<CheckboxGroupProps>;
@@ -0,0 +1,2 @@
1
+ import { createHostComponent } from '@rsmax/runtime';
2
+ export const CheckboxGroup = createHostComponent('checkbox-group');
@@ -0,0 +1,8 @@
1
+ export declare const alias: {
2
+ id: string;
3
+ className: string;
4
+ style: string;
5
+ name: string;
6
+ onChange: string;
7
+ };
8
+ export declare const props: string[];
@@ -0,0 +1,9 @@
1
+ import { unique } from '@rsmax/shared';
2
+ export const alias = {
3
+ id: 'id',
4
+ className: 'class',
5
+ style: 'style',
6
+ name: 'name',
7
+ onChange: 'onChange',
8
+ };
9
+ export const props = unique(Object.values(alias));
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ export interface ContactButtonProps {
3
+ readonly dataset?: DOMStringMap;
4
+ tntInstId: string;
5
+ scene: string;
6
+ size?: string | number;
7
+ color?: string;
8
+ icon?: string;
9
+ alipayCardNo?: string;
10
+ }
11
+ export declare const ContactButton: React.ComponentType<ContactButtonProps>;
@@ -0,0 +1,2 @@
1
+ import { createHostComponent } from '@rsmax/runtime';
2
+ export const ContactButton = createHostComponent('contact-button');
@@ -0,0 +1,12 @@
1
+ export declare const alias: {
2
+ id: string;
3
+ className: string;
4
+ style: string;
5
+ tntInstId: string;
6
+ scene: string;
7
+ size: string;
8
+ color: string;
9
+ icon: string;
10
+ alipayCardNo: string;
11
+ };
12
+ export declare const props: string[];
@@ -0,0 +1,13 @@
1
+ import { unique } from '@rsmax/shared';
2
+ export const alias = {
3
+ id: 'id',
4
+ className: 'class',
5
+ style: 'style',
6
+ tntInstId: 'tnt-inst-id',
7
+ scene: 'scene',
8
+ size: 'size',
9
+ color: 'color',
10
+ icon: 'icon',
11
+ alipayCardNo: 'alipay-card-no',
12
+ };
13
+ export const props = unique(Object.values(alias));
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ export interface CoverImageProps {
3
+ readonly dataset?: DOMStringMap;
4
+ className?: string;
5
+ style?: React.CSSProperties;
6
+ src?: string;
7
+ onTap?: (e: any) => void;
8
+ }
9
+ export declare const CoverImage: React.ComponentType<CoverImageProps>;
@@ -0,0 +1,2 @@
1
+ import { createHostComponent } from '@rsmax/runtime';
2
+ export const CoverImage = createHostComponent('cover-image');
@@ -0,0 +1,9 @@
1
+ export declare const alias: {
2
+ id: string;
3
+ className: string;
4
+ src: string;
5
+ style: string;
6
+ onClick: string;
7
+ onTap: string;
8
+ };
9
+ export declare const props: string[];
@@ -0,0 +1,10 @@
1
+ import { unique } from '@rsmax/shared';
2
+ export const alias = {
3
+ id: 'id',
4
+ className: 'class',
5
+ src: 'src',
6
+ style: 'style',
7
+ onClick: 'onTap',
8
+ onTap: 'onTap',
9
+ };
10
+ export const props = unique(Object.values(alias));
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ export interface CoverViewProps {
3
+ readonly dataset?: DOMStringMap;
4
+ className?: string;
5
+ style?: React.CSSProperties;
6
+ onTap?: (e: any) => void;
7
+ }
8
+ export declare const CoverView: React.ComponentType<CoverViewProps>;
@@ -0,0 +1,2 @@
1
+ import { createHostComponent } from '@rsmax/runtime';
2
+ export const CoverView = createHostComponent('cover-view');
@@ -0,0 +1,8 @@
1
+ export declare const alias: {
2
+ id: string;
3
+ className: string;
4
+ style: string;
5
+ onTap: string;
6
+ onClick: string;
7
+ };
8
+ export declare const props: string[];
@@ -0,0 +1,9 @@
1
+ import { unique } from '@rsmax/shared';
2
+ export const alias = {
3
+ id: 'id',
4
+ className: 'class',
5
+ style: 'style',
6
+ onTap: 'onTap',
7
+ onClick: 'onTap',
8
+ };
9
+ export const props = unique(Object.values(alias));
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ export interface FormProps {
3
+ readonly dataset?: DOMStringMap;
4
+ className?: string;
5
+ style?: React.CSSProperties;
6
+ reportSubmit?: boolean;
7
+ onSubmit?: (e: any) => void;
8
+ onReset?: (e: any) => void;
9
+ }
10
+ export declare const Form: React.ComponentType<FormProps>;
@@ -0,0 +1,2 @@
1
+ import { createHostComponent } from '@rsmax/runtime';
2
+ export const Form = createHostComponent('form');
@@ -0,0 +1,9 @@
1
+ export declare const alias: {
2
+ id: string;
3
+ className: string;
4
+ style: string;
5
+ reportSubmit: string;
6
+ onSubmit: string;
7
+ onReset: string;
8
+ };
9
+ export declare const props: string[];
@@ -0,0 +1,10 @@
1
+ import { unique } from '@rsmax/shared';
2
+ export const alias = {
3
+ id: 'id',
4
+ className: 'class',
5
+ style: 'style',
6
+ reportSubmit: 'report-submit',
7
+ onSubmit: 'onSubmit',
8
+ onReset: 'onReset',
9
+ };
10
+ export const props = unique(Object.values(alias));
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ export interface IconProps {
3
+ readonly dataset?: DOMStringMap;
4
+ id?: string;
5
+ className: string;
6
+ type: 'info' | 'warn' | 'waiting' | 'cancel' | 'download' | 'search' | 'clear' | 'success' | 'success_no_circle' | 'loading';
7
+ size?: number;
8
+ color?: string;
9
+ }
10
+ export declare const Icon: React.ComponentType<IconProps>;