@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.
- package/CHANGELOG.md +6 -0
- package/README.md +3 -0
- package/cjs/api.d.ts +2765 -0
- package/cjs/api.js +199 -0
- package/cjs/hostComponents/Button/index.d.ts +27 -0
- package/cjs/hostComponents/Button/index.js +5 -0
- package/cjs/hostComponents/Button/node.d.ts +25 -0
- package/cjs/hostComponents/Button/node.js +29 -0
- package/cjs/hostComponents/Camera/index.d.ts +18 -0
- package/cjs/hostComponents/Camera/index.js +5 -0
- package/cjs/hostComponents/Camera/node.d.ts +17 -0
- package/cjs/hostComponents/Camera/node.js +21 -0
- package/cjs/hostComponents/Canvas/index.d.ts +19 -0
- package/cjs/hostComponents/Canvas/index.js +5 -0
- package/cjs/hostComponents/Canvas/node.d.ts +19 -0
- package/cjs/hostComponents/Canvas/node.js +23 -0
- package/cjs/hostComponents/Checkbox/index.d.ts +12 -0
- package/cjs/hostComponents/Checkbox/index.js +5 -0
- package/cjs/hostComponents/Checkbox/node.d.ts +12 -0
- package/cjs/hostComponents/Checkbox/node.js +16 -0
- package/cjs/hostComponents/CheckboxGroup/index.d.ts +9 -0
- package/cjs/hostComponents/CheckboxGroup/index.js +5 -0
- package/cjs/hostComponents/CheckboxGroup/node.d.ts +8 -0
- package/cjs/hostComponents/CheckboxGroup/node.js +12 -0
- package/cjs/hostComponents/ContactButton/index.d.ts +11 -0
- package/cjs/hostComponents/ContactButton/index.js +5 -0
- package/cjs/hostComponents/ContactButton/node.d.ts +12 -0
- package/cjs/hostComponents/ContactButton/node.js +16 -0
- package/cjs/hostComponents/CoverImage/index.d.ts +9 -0
- package/cjs/hostComponents/CoverImage/index.js +5 -0
- package/cjs/hostComponents/CoverImage/node.d.ts +9 -0
- package/cjs/hostComponents/CoverImage/node.js +13 -0
- package/cjs/hostComponents/CoverView/index.d.ts +8 -0
- package/cjs/hostComponents/CoverView/index.js +5 -0
- package/cjs/hostComponents/CoverView/node.d.ts +8 -0
- package/cjs/hostComponents/CoverView/node.js +12 -0
- package/cjs/hostComponents/Form/index.d.ts +10 -0
- package/cjs/hostComponents/Form/index.js +5 -0
- package/cjs/hostComponents/Form/node.d.ts +9 -0
- package/cjs/hostComponents/Form/node.js +13 -0
- package/cjs/hostComponents/Icon/index.d.ts +10 -0
- package/cjs/hostComponents/Icon/index.js +5 -0
- package/cjs/hostComponents/Icon/node.d.ts +9 -0
- package/cjs/hostComponents/Icon/node.js +13 -0
- package/cjs/hostComponents/Image/index.d.ts +20 -0
- package/cjs/hostComponents/Image/index.js +5 -0
- package/cjs/hostComponents/Image/node.d.ts +17 -0
- package/cjs/hostComponents/Image/node.js +21 -0
- package/cjs/hostComponents/Input/index.d.ts +30 -0
- package/cjs/hostComponents/Input/index.js +5 -0
- package/cjs/hostComponents/Input/node.d.ts +29 -0
- package/cjs/hostComponents/Input/node.js +33 -0
- package/cjs/hostComponents/Label/index.d.ts +8 -0
- package/cjs/hostComponents/Label/index.js +5 -0
- package/cjs/hostComponents/Label/node.d.ts +7 -0
- package/cjs/hostComponents/Label/node.js +11 -0
- package/cjs/hostComponents/Lifestyle/index.d.ts +7 -0
- package/cjs/hostComponents/Lifestyle/index.js +5 -0
- package/cjs/hostComponents/Lifestyle/node.d.ts +5 -0
- package/cjs/hostComponents/Lifestyle/node.js +9 -0
- package/cjs/hostComponents/Lottie/index.d.ts +23 -0
- package/cjs/hostComponents/Lottie/index.js +5 -0
- package/cjs/hostComponents/Lottie/node.d.ts +22 -0
- package/cjs/hostComponents/Lottie/node.js +26 -0
- package/cjs/hostComponents/Map/index.d.ts +127 -0
- package/cjs/hostComponents/Map/index.js +5 -0
- package/cjs/hostComponents/Map/node.d.ts +29 -0
- package/cjs/hostComponents/Map/node.js +33 -0
- package/cjs/hostComponents/MovableArea/index.d.ts +10 -0
- package/cjs/hostComponents/MovableArea/index.js +5 -0
- package/cjs/hostComponents/MovableArea/node.d.ts +8 -0
- package/cjs/hostComponents/MovableArea/node.js +12 -0
- package/cjs/hostComponents/MovableView/index.d.ts +30 -0
- package/cjs/hostComponents/MovableView/index.js +5 -0
- package/cjs/hostComponents/MovableView/node.d.ts +26 -0
- package/cjs/hostComponents/MovableView/node.js +30 -0
- package/cjs/hostComponents/Navigator/index.d.ts +12 -0
- package/cjs/hostComponents/Navigator/index.js +5 -0
- package/cjs/hostComponents/Navigator/node.d.ts +12 -0
- package/cjs/hostComponents/Navigator/node.js +16 -0
- package/cjs/hostComponents/Picker/index.d.ts +13 -0
- package/cjs/hostComponents/Picker/index.js +5 -0
- package/cjs/hostComponents/Picker/node.d.ts +12 -0
- package/cjs/hostComponents/Picker/node.js +16 -0
- package/cjs/hostComponents/PickerView/index.d.ts +14 -0
- package/cjs/hostComponents/PickerView/index.js +5 -0
- package/cjs/hostComponents/PickerView/node.d.ts +15 -0
- package/cjs/hostComponents/PickerView/node.js +19 -0
- package/cjs/hostComponents/PickerViewColumn/index.d.ts +2 -0
- package/cjs/hostComponents/PickerViewColumn/index.js +5 -0
- package/cjs/hostComponents/PickerViewColumn/node.d.ts +2 -0
- package/cjs/hostComponents/PickerViewColumn/node.js +5 -0
- package/cjs/hostComponents/Progress/index.d.ts +13 -0
- package/cjs/hostComponents/Progress/index.js +5 -0
- package/cjs/hostComponents/Progress/node.d.ts +12 -0
- package/cjs/hostComponents/Progress/node.js +16 -0
- package/cjs/hostComponents/Radio/index.d.ts +12 -0
- package/cjs/hostComponents/Radio/index.js +5 -0
- package/cjs/hostComponents/Radio/node.d.ts +11 -0
- package/cjs/hostComponents/Radio/node.js +15 -0
- package/cjs/hostComponents/RadioGroup/index.d.ts +9 -0
- package/cjs/hostComponents/RadioGroup/index.js +5 -0
- package/cjs/hostComponents/RadioGroup/node.d.ts +8 -0
- package/cjs/hostComponents/RadioGroup/node.js +12 -0
- package/cjs/hostComponents/RichText/index.d.ts +12 -0
- package/cjs/hostComponents/RichText/index.js +5 -0
- package/cjs/hostComponents/RichText/node.d.ts +15 -0
- package/cjs/hostComponents/RichText/node.js +19 -0
- package/cjs/hostComponents/ScrollView/index.d.ts +28 -0
- package/cjs/hostComponents/ScrollView/index.js +5 -0
- package/cjs/hostComponents/ScrollView/node.d.ts +26 -0
- package/cjs/hostComponents/ScrollView/node.js +30 -0
- package/cjs/hostComponents/Slider/index.d.ts +21 -0
- package/cjs/hostComponents/Slider/index.js +5 -0
- package/cjs/hostComponents/Slider/node.d.ts +20 -0
- package/cjs/hostComponents/Slider/node.js +24 -0
- package/cjs/hostComponents/Swiper/index.d.ts +27 -0
- package/cjs/hostComponents/Swiper/index.js +5 -0
- package/cjs/hostComponents/Swiper/node.d.ts +27 -0
- package/cjs/hostComponents/Swiper/node.js +31 -0
- package/cjs/hostComponents/SwiperItem/index.d.ts +9 -0
- package/cjs/hostComponents/SwiperItem/index.js +5 -0
- package/cjs/hostComponents/SwiperItem/node.d.ts +7 -0
- package/cjs/hostComponents/SwiperItem/node.js +11 -0
- package/cjs/hostComponents/Switch/index.d.ts +12 -0
- package/cjs/hostComponents/Switch/index.js +5 -0
- package/cjs/hostComponents/Switch/node.d.ts +12 -0
- package/cjs/hostComponents/Switch/node.js +16 -0
- package/cjs/hostComponents/Text/index.d.ts +15 -0
- package/cjs/hostComponents/Text/index.js +5 -0
- package/cjs/hostComponents/Text/node.d.ts +12 -0
- package/cjs/hostComponents/Text/node.js +16 -0
- package/cjs/hostComponents/Textarea/index.d.ts +23 -0
- package/cjs/hostComponents/Textarea/index.js +5 -0
- package/cjs/hostComponents/Textarea/node.d.ts +23 -0
- package/cjs/hostComponents/Textarea/node.js +27 -0
- package/cjs/hostComponents/Video/index.d.ts +33 -0
- package/cjs/hostComponents/Video/index.js +5 -0
- package/cjs/hostComponents/Video/node.d.ts +33 -0
- package/cjs/hostComponents/Video/node.js +37 -0
- package/cjs/hostComponents/View/index.d.ts +33 -0
- package/cjs/hostComponents/View/index.js +5 -0
- package/cjs/hostComponents/View/node.d.ts +29 -0
- package/cjs/hostComponents/View/node.js +33 -0
- package/cjs/hostComponents/WebView/index.d.ts +8 -0
- package/cjs/hostComponents/WebView/index.js +5 -0
- package/cjs/hostComponents/WebView/node.d.ts +6 -0
- package/cjs/hostComponents/WebView/node.js +6 -0
- package/cjs/hostComponents/index.d.ts +36 -0
- package/cjs/hostComponents/index.js +52 -0
- package/cjs/hostComponents/node.d.ts +2 -0
- package/cjs/hostComponents/node.js +99 -0
- package/cjs/index.d.ts +3 -0
- package/cjs/index.js +19 -0
- package/cjs/node/index.d.ts +3 -0
- package/cjs/node/index.js +62 -0
- package/cjs/types/config.d.ts +151 -0
- package/cjs/types/config.js +2 -0
- package/cjs/types/index.d.ts +1 -0
- package/cjs/types/index.js +17 -0
- package/esm/api.d.ts +2765 -0
- package/esm/api.js +193 -0
- package/esm/hostComponents/Button/index.d.ts +27 -0
- package/esm/hostComponents/Button/index.js +2 -0
- package/esm/hostComponents/Button/node.d.ts +25 -0
- package/esm/hostComponents/Button/node.js +26 -0
- package/esm/hostComponents/Camera/index.d.ts +18 -0
- package/esm/hostComponents/Camera/index.js +2 -0
- package/esm/hostComponents/Camera/node.d.ts +17 -0
- package/esm/hostComponents/Camera/node.js +18 -0
- package/esm/hostComponents/Canvas/index.d.ts +19 -0
- package/esm/hostComponents/Canvas/index.js +2 -0
- package/esm/hostComponents/Canvas/node.d.ts +19 -0
- package/esm/hostComponents/Canvas/node.js +20 -0
- package/esm/hostComponents/Checkbox/index.d.ts +12 -0
- package/esm/hostComponents/Checkbox/index.js +2 -0
- package/esm/hostComponents/Checkbox/node.d.ts +12 -0
- package/esm/hostComponents/Checkbox/node.js +13 -0
- package/esm/hostComponents/CheckboxGroup/index.d.ts +9 -0
- package/esm/hostComponents/CheckboxGroup/index.js +2 -0
- package/esm/hostComponents/CheckboxGroup/node.d.ts +8 -0
- package/esm/hostComponents/CheckboxGroup/node.js +9 -0
- package/esm/hostComponents/ContactButton/index.d.ts +11 -0
- package/esm/hostComponents/ContactButton/index.js +2 -0
- package/esm/hostComponents/ContactButton/node.d.ts +12 -0
- package/esm/hostComponents/ContactButton/node.js +13 -0
- package/esm/hostComponents/CoverImage/index.d.ts +9 -0
- package/esm/hostComponents/CoverImage/index.js +2 -0
- package/esm/hostComponents/CoverImage/node.d.ts +9 -0
- package/esm/hostComponents/CoverImage/node.js +10 -0
- package/esm/hostComponents/CoverView/index.d.ts +8 -0
- package/esm/hostComponents/CoverView/index.js +2 -0
- package/esm/hostComponents/CoverView/node.d.ts +8 -0
- package/esm/hostComponents/CoverView/node.js +9 -0
- package/esm/hostComponents/Form/index.d.ts +10 -0
- package/esm/hostComponents/Form/index.js +2 -0
- package/esm/hostComponents/Form/node.d.ts +9 -0
- package/esm/hostComponents/Form/node.js +10 -0
- package/esm/hostComponents/Icon/index.d.ts +10 -0
- package/esm/hostComponents/Icon/index.js +2 -0
- package/esm/hostComponents/Icon/node.d.ts +9 -0
- package/esm/hostComponents/Icon/node.js +10 -0
- package/esm/hostComponents/Image/index.d.ts +20 -0
- package/esm/hostComponents/Image/index.js +2 -0
- package/esm/hostComponents/Image/node.d.ts +17 -0
- package/esm/hostComponents/Image/node.js +18 -0
- package/esm/hostComponents/Input/index.d.ts +30 -0
- package/esm/hostComponents/Input/index.js +2 -0
- package/esm/hostComponents/Input/node.d.ts +29 -0
- package/esm/hostComponents/Input/node.js +30 -0
- package/esm/hostComponents/Label/index.d.ts +8 -0
- package/esm/hostComponents/Label/index.js +2 -0
- package/esm/hostComponents/Label/node.d.ts +7 -0
- package/esm/hostComponents/Label/node.js +8 -0
- package/esm/hostComponents/Lifestyle/index.d.ts +7 -0
- package/esm/hostComponents/Lifestyle/index.js +2 -0
- package/esm/hostComponents/Lifestyle/node.d.ts +5 -0
- package/esm/hostComponents/Lifestyle/node.js +6 -0
- package/esm/hostComponents/Lottie/index.d.ts +23 -0
- package/esm/hostComponents/Lottie/index.js +2 -0
- package/esm/hostComponents/Lottie/node.d.ts +22 -0
- package/esm/hostComponents/Lottie/node.js +23 -0
- package/esm/hostComponents/Map/index.d.ts +127 -0
- package/esm/hostComponents/Map/index.js +2 -0
- package/esm/hostComponents/Map/node.d.ts +29 -0
- package/esm/hostComponents/Map/node.js +30 -0
- package/esm/hostComponents/MovableArea/index.d.ts +10 -0
- package/esm/hostComponents/MovableArea/index.js +2 -0
- package/esm/hostComponents/MovableArea/node.d.ts +8 -0
- package/esm/hostComponents/MovableArea/node.js +9 -0
- package/esm/hostComponents/MovableView/index.d.ts +30 -0
- package/esm/hostComponents/MovableView/index.js +2 -0
- package/esm/hostComponents/MovableView/node.d.ts +26 -0
- package/esm/hostComponents/MovableView/node.js +27 -0
- package/esm/hostComponents/Navigator/index.d.ts +12 -0
- package/esm/hostComponents/Navigator/index.js +2 -0
- package/esm/hostComponents/Navigator/node.d.ts +12 -0
- package/esm/hostComponents/Navigator/node.js +13 -0
- package/esm/hostComponents/Picker/index.d.ts +13 -0
- package/esm/hostComponents/Picker/index.js +2 -0
- package/esm/hostComponents/Picker/node.d.ts +12 -0
- package/esm/hostComponents/Picker/node.js +13 -0
- package/esm/hostComponents/PickerView/index.d.ts +14 -0
- package/esm/hostComponents/PickerView/index.js +2 -0
- package/esm/hostComponents/PickerView/node.d.ts +15 -0
- package/esm/hostComponents/PickerView/node.js +16 -0
- package/esm/hostComponents/PickerViewColumn/index.d.ts +2 -0
- package/esm/hostComponents/PickerViewColumn/index.js +2 -0
- package/esm/hostComponents/PickerViewColumn/node.d.ts +2 -0
- package/esm/hostComponents/PickerViewColumn/node.js +2 -0
- package/esm/hostComponents/Progress/index.d.ts +13 -0
- package/esm/hostComponents/Progress/index.js +2 -0
- package/esm/hostComponents/Progress/node.d.ts +12 -0
- package/esm/hostComponents/Progress/node.js +13 -0
- package/esm/hostComponents/Radio/index.d.ts +12 -0
- package/esm/hostComponents/Radio/index.js +2 -0
- package/esm/hostComponents/Radio/node.d.ts +11 -0
- package/esm/hostComponents/Radio/node.js +12 -0
- package/esm/hostComponents/RadioGroup/index.d.ts +9 -0
- package/esm/hostComponents/RadioGroup/index.js +2 -0
- package/esm/hostComponents/RadioGroup/node.d.ts +8 -0
- package/esm/hostComponents/RadioGroup/node.js +9 -0
- package/esm/hostComponents/RichText/index.d.ts +12 -0
- package/esm/hostComponents/RichText/index.js +2 -0
- package/esm/hostComponents/RichText/node.d.ts +15 -0
- package/esm/hostComponents/RichText/node.js +16 -0
- package/esm/hostComponents/ScrollView/index.d.ts +28 -0
- package/esm/hostComponents/ScrollView/index.js +2 -0
- package/esm/hostComponents/ScrollView/node.d.ts +26 -0
- package/esm/hostComponents/ScrollView/node.js +27 -0
- package/esm/hostComponents/Slider/index.d.ts +21 -0
- package/esm/hostComponents/Slider/index.js +2 -0
- package/esm/hostComponents/Slider/node.d.ts +20 -0
- package/esm/hostComponents/Slider/node.js +21 -0
- package/esm/hostComponents/Swiper/index.d.ts +27 -0
- package/esm/hostComponents/Swiper/index.js +2 -0
- package/esm/hostComponents/Swiper/node.d.ts +27 -0
- package/esm/hostComponents/Swiper/node.js +28 -0
- package/esm/hostComponents/SwiperItem/index.d.ts +9 -0
- package/esm/hostComponents/SwiperItem/index.js +2 -0
- package/esm/hostComponents/SwiperItem/node.d.ts +7 -0
- package/esm/hostComponents/SwiperItem/node.js +8 -0
- package/esm/hostComponents/Switch/index.d.ts +12 -0
- package/esm/hostComponents/Switch/index.js +2 -0
- package/esm/hostComponents/Switch/node.d.ts +12 -0
- package/esm/hostComponents/Switch/node.js +13 -0
- package/esm/hostComponents/Text/index.d.ts +15 -0
- package/esm/hostComponents/Text/index.js +2 -0
- package/esm/hostComponents/Text/node.d.ts +12 -0
- package/esm/hostComponents/Text/node.js +13 -0
- package/esm/hostComponents/Textarea/index.d.ts +23 -0
- package/esm/hostComponents/Textarea/index.js +2 -0
- package/esm/hostComponents/Textarea/node.d.ts +23 -0
- package/esm/hostComponents/Textarea/node.js +24 -0
- package/esm/hostComponents/Video/index.d.ts +33 -0
- package/esm/hostComponents/Video/index.js +2 -0
- package/esm/hostComponents/Video/node.d.ts +33 -0
- package/esm/hostComponents/Video/node.js +34 -0
- package/esm/hostComponents/View/index.d.ts +33 -0
- package/esm/hostComponents/View/index.js +2 -0
- package/esm/hostComponents/View/node.d.ts +29 -0
- package/esm/hostComponents/View/node.js +30 -0
- package/esm/hostComponents/WebView/index.d.ts +8 -0
- package/esm/hostComponents/WebView/index.js +2 -0
- package/esm/hostComponents/WebView/node.d.ts +6 -0
- package/esm/hostComponents/WebView/node.js +3 -0
- package/esm/hostComponents/index.d.ts +36 -0
- package/esm/hostComponents/index.js +36 -0
- package/esm/hostComponents/node.d.ts +2 -0
- package/esm/hostComponents/node.js +74 -0
- package/esm/index.d.ts +3 -0
- package/esm/index.js +3 -0
- package/esm/node/index.d.ts +3 -0
- package/esm/node/index.js +34 -0
- package/esm/types/config.d.ts +151 -0
- package/esm/types/config.js +1 -0
- package/esm/types/index.d.ts +1 -0
- package/esm/types/index.js +1 -0
- package/node.js +1 -0
- package/package.json +35 -0
- package/templates/default/base.ejs +25 -0
- package/templates/default/component.ejs +67 -0
- package/templates/default/page.ejs +32 -0
- package/templates/static/additional-host-component.ejs +9 -0
- package/templates/static/host-components/block.ejs +5 -0
- package/templates/static/host-components/button.ejs +7 -0
- package/templates/static/host-components/camera.ejs +7 -0
- package/templates/static/host-components/canvas.ejs +7 -0
- package/templates/static/host-components/checkbox-group.ejs +7 -0
- package/templates/static/host-components/checkbox.ejs +7 -0
- package/templates/static/host-components/contact-button.ejs +7 -0
- package/templates/static/host-components/cover-image.ejs +7 -0
- package/templates/static/host-components/cover-view.ejs +7 -0
- package/templates/static/host-components/form.ejs +7 -0
- package/templates/static/host-components/icon.ejs +7 -0
- package/templates/static/host-components/image.ejs +7 -0
- package/templates/static/host-components/input.ejs +7 -0
- package/templates/static/host-components/label.ejs +7 -0
- package/templates/static/host-components/lifestyle.ejs +7 -0
- package/templates/static/host-components/lottie.ejs +7 -0
- package/templates/static/host-components/map.ejs +7 -0
- package/templates/static/host-components/movable-area.ejs +7 -0
- package/templates/static/host-components/movable-view.ejs +7 -0
- package/templates/static/host-components/navigator.ejs +7 -0
- package/templates/static/host-components/picker-view-column.ejs +7 -0
- package/templates/static/host-components/picker-view.ejs +13 -0
- package/templates/static/host-components/picker.ejs +9 -0
- package/templates/static/host-components/plain-text.ejs +3 -0
- package/templates/static/host-components/progress.ejs +7 -0
- package/templates/static/host-components/radio-group.ejs +7 -0
- package/templates/static/host-components/radio.ejs +7 -0
- package/templates/static/host-components/rich-text.ejs +7 -0
- package/templates/static/host-components/scroll-view.ejs +7 -0
- package/templates/static/host-components/slider.ejs +7 -0
- package/templates/static/host-components/swiper-item.ejs +7 -0
- package/templates/static/host-components/swiper.ejs +13 -0
- package/templates/static/host-components/switch.ejs +7 -0
- package/templates/static/host-components/text.ejs +7 -0
- package/templates/static/host-components/textarea.ejs +7 -0
- package/templates/static/host-components/video.ejs +7 -0
- package/templates/static/host-components/view.ejs +7 -0
- package/templates/static/host-components/web-view.ejs +7 -0
- package/templates/static/isolated-templates.ejs +5 -0
- package/templates/static/native-component.ejs +24 -0
- package/templates/static/page.ejs +64 -0
- package/vitest.config.js +7 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { unique } from '@rsmax/shared';
|
|
2
|
+
export const alias = {
|
|
3
|
+
id: 'id',
|
|
4
|
+
className: 'class',
|
|
5
|
+
style: 'style',
|
|
6
|
+
selectable: 'selectable',
|
|
7
|
+
space: 'space',
|
|
8
|
+
decode: 'decode',
|
|
9
|
+
numberOfLines: 'number-of-lines',
|
|
10
|
+
onClick: 'onTap',
|
|
11
|
+
onTap: 'onTap',
|
|
12
|
+
};
|
|
13
|
+
export const props = unique(Object.values(alias));
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface TextareaProps {
|
|
3
|
+
readonly dataset?: DOMStringMap;
|
|
4
|
+
id?: string;
|
|
5
|
+
className?: string;
|
|
6
|
+
name?: string;
|
|
7
|
+
value?: string;
|
|
8
|
+
placeholder?: string;
|
|
9
|
+
placeholderStyle?: React.CSSProperties;
|
|
10
|
+
placeholderClassName?: string;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
maxlength?: number;
|
|
13
|
+
focus?: boolean;
|
|
14
|
+
autoHeight?: boolean;
|
|
15
|
+
showCount?: boolean;
|
|
16
|
+
controlled?: boolean;
|
|
17
|
+
enableNative?: boolean;
|
|
18
|
+
onInput?: (e: any) => void;
|
|
19
|
+
onFocus?: (e: any) => void;
|
|
20
|
+
onBlur?: (e: any) => void;
|
|
21
|
+
onConfirm?: (e: any) => void;
|
|
22
|
+
}
|
|
23
|
+
export declare const Textarea: React.ComponentType<TextareaProps>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export declare const alias: {
|
|
2
|
+
id: string;
|
|
3
|
+
className: string;
|
|
4
|
+
style: string;
|
|
5
|
+
name: string;
|
|
6
|
+
value: string;
|
|
7
|
+
placeholder: string;
|
|
8
|
+
placeholderStyle: string;
|
|
9
|
+
placeholderClass: string;
|
|
10
|
+
placeholderClassName: string;
|
|
11
|
+
disabled: string;
|
|
12
|
+
maxlength: string;
|
|
13
|
+
focus: string;
|
|
14
|
+
autoHeight: string;
|
|
15
|
+
showCount: string;
|
|
16
|
+
controlled: string;
|
|
17
|
+
enableNative: string;
|
|
18
|
+
onInput: string;
|
|
19
|
+
onFocus: string;
|
|
20
|
+
onBlur: string;
|
|
21
|
+
onConfirm: string;
|
|
22
|
+
};
|
|
23
|
+
export declare const props: string[];
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { unique } from '@rsmax/shared';
|
|
2
|
+
export const alias = {
|
|
3
|
+
id: 'id',
|
|
4
|
+
className: 'class',
|
|
5
|
+
style: 'style',
|
|
6
|
+
name: 'name',
|
|
7
|
+
value: 'value',
|
|
8
|
+
placeholder: 'placeholder',
|
|
9
|
+
placeholderStyle: 'placeholder-style',
|
|
10
|
+
placeholderClass: 'placeholder-class',
|
|
11
|
+
placeholderClassName: 'placeholder-class',
|
|
12
|
+
disabled: 'disabled',
|
|
13
|
+
maxlength: 'maxlength',
|
|
14
|
+
focus: 'focus',
|
|
15
|
+
autoHeight: 'auto-height',
|
|
16
|
+
showCount: 'show-count',
|
|
17
|
+
controlled: 'controlled',
|
|
18
|
+
enableNative: 'enableNative',
|
|
19
|
+
onInput: 'onInput',
|
|
20
|
+
onFocus: 'onFocus',
|
|
21
|
+
onBlur: 'onBlur',
|
|
22
|
+
onConfirm: 'onConfirm',
|
|
23
|
+
};
|
|
24
|
+
export const props = unique(Object.values(alias));
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface VideoProps {
|
|
3
|
+
src: string;
|
|
4
|
+
id?: string;
|
|
5
|
+
className?: string;
|
|
6
|
+
style?: React.CSSProperties;
|
|
7
|
+
posterSize?: 'contain' | 'fill' | 'cover';
|
|
8
|
+
poster?: string;
|
|
9
|
+
objectFit?: 'contain' | 'fill' | 'cover';
|
|
10
|
+
initialTime?: number;
|
|
11
|
+
duration?: number;
|
|
12
|
+
controls?: boolean;
|
|
13
|
+
autoplay?: boolean;
|
|
14
|
+
direction?: number;
|
|
15
|
+
loop?: boolean;
|
|
16
|
+
muted?: boolean;
|
|
17
|
+
showFullscreenBtn?: boolean;
|
|
18
|
+
showPlayBtn?: boolean;
|
|
19
|
+
showCenterPlayBtn?: boolean;
|
|
20
|
+
showMuteBtn?: boolean;
|
|
21
|
+
enableProgressGesture?: boolean;
|
|
22
|
+
mobilenetHintType?: 0 | 1 | 3;
|
|
23
|
+
onPlay?: (e: any) => void;
|
|
24
|
+
onPause?: (e: any) => void;
|
|
25
|
+
onEnded?: (e: any) => void;
|
|
26
|
+
onTimeUpdate?: (e: any) => void;
|
|
27
|
+
onLoading?: (e: any) => void;
|
|
28
|
+
onError?: (e: any) => void;
|
|
29
|
+
onFullScreenChange?: (e: any) => void;
|
|
30
|
+
onTap?: (e: any) => void;
|
|
31
|
+
onUserAction?: (e: any) => void;
|
|
32
|
+
}
|
|
33
|
+
export declare const Video: React.ComponentType<VideoProps>;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export declare const alias: {
|
|
2
|
+
className: string;
|
|
3
|
+
src: string;
|
|
4
|
+
id: string;
|
|
5
|
+
style: string;
|
|
6
|
+
poster: string;
|
|
7
|
+
posterSize: string;
|
|
8
|
+
objectFit: string;
|
|
9
|
+
initialTime: string;
|
|
10
|
+
duration: string;
|
|
11
|
+
controls: string;
|
|
12
|
+
autoplay: string;
|
|
13
|
+
direction: string;
|
|
14
|
+
loop: string;
|
|
15
|
+
muted: string;
|
|
16
|
+
showFullscreenBtn: string;
|
|
17
|
+
showPlayBtn: string;
|
|
18
|
+
showCenterPlayBtn: string;
|
|
19
|
+
showMuteBtn: string;
|
|
20
|
+
enableProgressGesture: string;
|
|
21
|
+
mobilenetHintType: string;
|
|
22
|
+
onPlay: string;
|
|
23
|
+
onPause: string;
|
|
24
|
+
onEnded: string;
|
|
25
|
+
onTimeUpdate: string;
|
|
26
|
+
onLoading: string;
|
|
27
|
+
onError: string;
|
|
28
|
+
onFullScreenChange: string;
|
|
29
|
+
onTap: string;
|
|
30
|
+
onClick: string;
|
|
31
|
+
onUserAction: string;
|
|
32
|
+
};
|
|
33
|
+
export declare const props: string[];
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { unique } from '@rsmax/shared';
|
|
2
|
+
export const alias = {
|
|
3
|
+
className: 'class',
|
|
4
|
+
src: 'src',
|
|
5
|
+
id: 'id',
|
|
6
|
+
style: 'style',
|
|
7
|
+
poster: 'poster',
|
|
8
|
+
posterSize: 'posterSize',
|
|
9
|
+
objectFit: 'objectFit',
|
|
10
|
+
initialTime: 'initial-time',
|
|
11
|
+
duration: 'duration',
|
|
12
|
+
controls: 'controls',
|
|
13
|
+
autoplay: 'autoplay',
|
|
14
|
+
direction: 'direction',
|
|
15
|
+
loop: 'loop',
|
|
16
|
+
muted: 'muted',
|
|
17
|
+
showFullscreenBtn: 'show-fullscreen-btn',
|
|
18
|
+
showPlayBtn: 'show-play-btn',
|
|
19
|
+
showCenterPlayBtn: 'show-center-play-btn',
|
|
20
|
+
showMuteBtn: 'show-mute-btn',
|
|
21
|
+
enableProgressGesture: 'enableProgressGesture',
|
|
22
|
+
mobilenetHintType: 'mobilenetHintType',
|
|
23
|
+
onPlay: 'onPlay',
|
|
24
|
+
onPause: 'onPause',
|
|
25
|
+
onEnded: 'onEnded',
|
|
26
|
+
onTimeUpdate: 'onTimeUpdate',
|
|
27
|
+
onLoading: 'onLoading',
|
|
28
|
+
onError: 'onError',
|
|
29
|
+
onFullScreenChange: 'onFullScreenChange',
|
|
30
|
+
onTap: 'onTap',
|
|
31
|
+
onClick: 'onTap',
|
|
32
|
+
onUserAction: 'onUserAction',
|
|
33
|
+
};
|
|
34
|
+
export const props = unique(Object.values(alias));
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface ViewProps {
|
|
3
|
+
readonly dataset?: DOMStringMap;
|
|
4
|
+
id?: string;
|
|
5
|
+
className?: string;
|
|
6
|
+
style?: React.CSSProperties;
|
|
7
|
+
disableScroll?: boolean;
|
|
8
|
+
hoverClassName?: string;
|
|
9
|
+
hoverStartTime?: number;
|
|
10
|
+
hoverStayTime?: number;
|
|
11
|
+
hidden?: boolean;
|
|
12
|
+
animation?: any;
|
|
13
|
+
hoverStopPropagation?: boolean;
|
|
14
|
+
slot?: string;
|
|
15
|
+
onTap?: (e: any) => void;
|
|
16
|
+
catchTap?: (e: any) => void;
|
|
17
|
+
onClick?: (e: any) => void;
|
|
18
|
+
catchClick?: (e: any) => void;
|
|
19
|
+
onTouchStart?: (e: any) => void;
|
|
20
|
+
onTouchMove?: (e: any) => void;
|
|
21
|
+
onTouchEnd?: (e: any) => void;
|
|
22
|
+
onTouchCancel?: (e: any) => void;
|
|
23
|
+
onLongTap?: (e: any) => void;
|
|
24
|
+
onTransitionEnd?: (e: any) => void;
|
|
25
|
+
onAnimationIteration?: (e: any) => void;
|
|
26
|
+
onAnimationStart?: (e: any) => void;
|
|
27
|
+
onAnimationEnd?: (e: any) => void;
|
|
28
|
+
onAppear?: (e: any) => void;
|
|
29
|
+
onDisappear?: (e: any) => void;
|
|
30
|
+
onFirstAppear?: (e: any) => void;
|
|
31
|
+
children?: React.ReactNode;
|
|
32
|
+
}
|
|
33
|
+
export declare const View: React.ComponentType<ViewProps>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export declare const alias: {
|
|
2
|
+
id: string;
|
|
3
|
+
disableScroll: string;
|
|
4
|
+
hoverClass: string;
|
|
5
|
+
hoverClassName: string;
|
|
6
|
+
hoverStartTime: string;
|
|
7
|
+
hoverStayTime: string;
|
|
8
|
+
hidden: string;
|
|
9
|
+
className: string;
|
|
10
|
+
style: string;
|
|
11
|
+
animation: string;
|
|
12
|
+
hoverStopPropagation: string;
|
|
13
|
+
onClick: string;
|
|
14
|
+
onTap: string;
|
|
15
|
+
onTouchStart: string;
|
|
16
|
+
onTouchMove: string;
|
|
17
|
+
onTouchEnd: string;
|
|
18
|
+
onTouchCancel: string;
|
|
19
|
+
onLongTap: string;
|
|
20
|
+
onLongClick: string;
|
|
21
|
+
onTransitionEnd: string;
|
|
22
|
+
onAnimationIteration: string;
|
|
23
|
+
onAnimationStart: string;
|
|
24
|
+
onAnimationEnd: string;
|
|
25
|
+
onAppear: string;
|
|
26
|
+
onDisappear: string;
|
|
27
|
+
onFirstAppear: string;
|
|
28
|
+
};
|
|
29
|
+
export declare const props: string[];
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { unique } from '@rsmax/shared';
|
|
2
|
+
export const alias = {
|
|
3
|
+
id: 'id',
|
|
4
|
+
disableScroll: 'disable-scroll',
|
|
5
|
+
hoverClass: 'hover-class',
|
|
6
|
+
hoverClassName: 'hover-class',
|
|
7
|
+
hoverStartTime: 'hover-start-time',
|
|
8
|
+
hoverStayTime: 'hover-stay-time',
|
|
9
|
+
hidden: 'hidden',
|
|
10
|
+
className: 'class',
|
|
11
|
+
style: 'style',
|
|
12
|
+
animation: 'animation',
|
|
13
|
+
hoverStopPropagation: 'hover-stop-propagation',
|
|
14
|
+
onClick: 'onTap',
|
|
15
|
+
onTap: 'onTap',
|
|
16
|
+
onTouchStart: 'onTouchStart',
|
|
17
|
+
onTouchMove: 'onTouchMove',
|
|
18
|
+
onTouchEnd: 'onTouchEnd',
|
|
19
|
+
onTouchCancel: 'onTouchCancel',
|
|
20
|
+
onLongTap: 'onLongTap',
|
|
21
|
+
onLongClick: 'onLongTap',
|
|
22
|
+
onTransitionEnd: 'onTransitionEnd',
|
|
23
|
+
onAnimationIteration: 'onAnimationIteration',
|
|
24
|
+
onAnimationStart: 'onAnimationStart',
|
|
25
|
+
onAnimationEnd: 'onAnimationEnd',
|
|
26
|
+
onAppear: 'onAppear',
|
|
27
|
+
onDisappear: 'onDisappear',
|
|
28
|
+
onFirstAppear: 'onFirstAppear',
|
|
29
|
+
};
|
|
30
|
+
export const props = unique(Object.values(alias));
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export * from './View';
|
|
2
|
+
export * from './ScrollView';
|
|
3
|
+
export * from './Swiper';
|
|
4
|
+
export * from './SwiperItem';
|
|
5
|
+
export * from './MovableView';
|
|
6
|
+
export * from './MovableArea';
|
|
7
|
+
export * from './CoverView';
|
|
8
|
+
export * from './CoverImage';
|
|
9
|
+
export * from './Icon';
|
|
10
|
+
export * from './Text';
|
|
11
|
+
export * from './RichText';
|
|
12
|
+
export * from './Progress';
|
|
13
|
+
export * from './Button';
|
|
14
|
+
export * from './CheckboxGroup';
|
|
15
|
+
export * from './Checkbox';
|
|
16
|
+
export * from './Form';
|
|
17
|
+
export * from './Input';
|
|
18
|
+
export * from './Label';
|
|
19
|
+
export * from './Picker';
|
|
20
|
+
export * from './PickerView';
|
|
21
|
+
export * from './PickerViewColumn';
|
|
22
|
+
export * from './RadioGroup';
|
|
23
|
+
export * from './Radio';
|
|
24
|
+
export * from './Slider';
|
|
25
|
+
export * from './Switch';
|
|
26
|
+
export * from './Textarea';
|
|
27
|
+
export * from './Navigator';
|
|
28
|
+
export * from './Image';
|
|
29
|
+
export * from './Map';
|
|
30
|
+
export * from './Canvas';
|
|
31
|
+
export * from './WebView';
|
|
32
|
+
export * from './Lifestyle';
|
|
33
|
+
export * from './ContactButton';
|
|
34
|
+
export * from './Video';
|
|
35
|
+
export * from './Lottie';
|
|
36
|
+
export * from './Camera';
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export * from './View';
|
|
2
|
+
export * from './ScrollView';
|
|
3
|
+
export * from './Swiper';
|
|
4
|
+
export * from './SwiperItem';
|
|
5
|
+
export * from './MovableView';
|
|
6
|
+
export * from './MovableArea';
|
|
7
|
+
export * from './CoverView';
|
|
8
|
+
export * from './CoverImage';
|
|
9
|
+
export * from './Icon';
|
|
10
|
+
export * from './Text';
|
|
11
|
+
export * from './RichText';
|
|
12
|
+
export * from './Progress';
|
|
13
|
+
export * from './Button';
|
|
14
|
+
export * from './CheckboxGroup';
|
|
15
|
+
export * from './Checkbox';
|
|
16
|
+
export * from './Form';
|
|
17
|
+
export * from './Input';
|
|
18
|
+
export * from './Label';
|
|
19
|
+
export * from './Picker';
|
|
20
|
+
export * from './PickerView';
|
|
21
|
+
export * from './PickerViewColumn';
|
|
22
|
+
export * from './RadioGroup';
|
|
23
|
+
export * from './Radio';
|
|
24
|
+
export * from './Slider';
|
|
25
|
+
export * from './Switch';
|
|
26
|
+
export * from './Textarea';
|
|
27
|
+
export * from './Navigator';
|
|
28
|
+
export * from './Image';
|
|
29
|
+
export * from './Map';
|
|
30
|
+
export * from './Canvas';
|
|
31
|
+
export * from './WebView';
|
|
32
|
+
export * from './Lifestyle';
|
|
33
|
+
export * from './ContactButton';
|
|
34
|
+
export * from './Video';
|
|
35
|
+
export * from './Lottie';
|
|
36
|
+
export * from './Camera';
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import * as button from './Button/node';
|
|
2
|
+
import * as canvas from './Canvas/node';
|
|
3
|
+
import * as checkboxGroup from './CheckboxGroup/node';
|
|
4
|
+
import * as checkbox from './Checkbox/node';
|
|
5
|
+
import * as contactButton from './ContactButton/node';
|
|
6
|
+
import * as coverImage from './CoverImage/node';
|
|
7
|
+
import * as coverView from './CoverView/node';
|
|
8
|
+
import * as form from './Form/node';
|
|
9
|
+
import * as icon from './Icon/node';
|
|
10
|
+
import * as image from './Image/node';
|
|
11
|
+
import * as input from './Input/node';
|
|
12
|
+
import * as label from './Label/node';
|
|
13
|
+
import * as lifestyle from './Lifestyle/node';
|
|
14
|
+
import * as map from './Map/node';
|
|
15
|
+
import * as movableArea from './MovableArea/node';
|
|
16
|
+
import * as movableView from './MovableView/node';
|
|
17
|
+
import * as navigator from './Navigator/node';
|
|
18
|
+
import * as pickerViewColumn from './PickerViewColumn/node';
|
|
19
|
+
import * as pickerView from './PickerView/node';
|
|
20
|
+
import * as picker from './Picker/node';
|
|
21
|
+
import * as progress from './Progress/node';
|
|
22
|
+
import * as radioGroup from './RadioGroup/node';
|
|
23
|
+
import * as radio from './Radio/node';
|
|
24
|
+
import * as richText from './RichText/node';
|
|
25
|
+
import * as scrollView from './ScrollView/node';
|
|
26
|
+
import * as slider from './Slider/node';
|
|
27
|
+
import * as swiperItem from './SwiperItem/node';
|
|
28
|
+
import * as swiper from './Swiper/node';
|
|
29
|
+
import * as switchComponent from './Switch/node';
|
|
30
|
+
import * as text from './Text/node';
|
|
31
|
+
import * as textarea from './Textarea/node';
|
|
32
|
+
import * as view from './View/node';
|
|
33
|
+
import * as webView from './WebView/node';
|
|
34
|
+
import * as video from './Video/node';
|
|
35
|
+
import * as lottie from './Lottie/node';
|
|
36
|
+
import * as camera from './Camera/node';
|
|
37
|
+
const hostComponents = new Map();
|
|
38
|
+
hostComponents.set('button', button);
|
|
39
|
+
hostComponents.set('canvas', canvas);
|
|
40
|
+
hostComponents.set('checkbox-group', checkboxGroup);
|
|
41
|
+
hostComponents.set('checkbox', checkbox);
|
|
42
|
+
hostComponents.set('contact-button', contactButton);
|
|
43
|
+
hostComponents.set('cover-image', coverImage);
|
|
44
|
+
hostComponents.set('cover-view', coverView);
|
|
45
|
+
hostComponents.set('form', form);
|
|
46
|
+
hostComponents.set('icon', icon);
|
|
47
|
+
hostComponents.set('image', image);
|
|
48
|
+
hostComponents.set('input', input);
|
|
49
|
+
hostComponents.set('label', label);
|
|
50
|
+
hostComponents.set('lifestyle', lifestyle);
|
|
51
|
+
hostComponents.set('map', map);
|
|
52
|
+
hostComponents.set('movable-area', movableArea);
|
|
53
|
+
hostComponents.set('movable-view', movableView);
|
|
54
|
+
hostComponents.set('navigator', navigator);
|
|
55
|
+
hostComponents.set('picker-view-column', pickerViewColumn);
|
|
56
|
+
hostComponents.set('picker-view', pickerView);
|
|
57
|
+
hostComponents.set('picker', picker);
|
|
58
|
+
hostComponents.set('progress', progress);
|
|
59
|
+
hostComponents.set('radio-group', radioGroup);
|
|
60
|
+
hostComponents.set('radio', radio);
|
|
61
|
+
hostComponents.set('rich-text', richText);
|
|
62
|
+
hostComponents.set('scroll-view', scrollView);
|
|
63
|
+
hostComponents.set('slider', slider);
|
|
64
|
+
hostComponents.set('swiper-item', swiperItem);
|
|
65
|
+
hostComponents.set('swiper', swiper);
|
|
66
|
+
hostComponents.set('switch', switchComponent);
|
|
67
|
+
hostComponents.set('text', text);
|
|
68
|
+
hostComponents.set('textarea', textarea);
|
|
69
|
+
hostComponents.set('view', view);
|
|
70
|
+
hostComponents.set('web-view', webView);
|
|
71
|
+
hostComponents.set('video', video);
|
|
72
|
+
hostComponents.set('lottie', lottie);
|
|
73
|
+
hostComponents.set('camera', camera);
|
|
74
|
+
export default hostComponents;
|
package/esm/index.d.ts
ADDED
package/esm/index.js
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import * as path from 'path';
|
|
2
|
+
import hostComponents from '../hostComponents/node';
|
|
3
|
+
const TPL_DEFAULT_ROOT = path.join(__dirname, '../../templates', 'default');
|
|
4
|
+
const TPL_STATIC_ROOT = path.join(__dirname, '../../templates', 'static');
|
|
5
|
+
const plugin = () => {
|
|
6
|
+
return {
|
|
7
|
+
meta: {
|
|
8
|
+
global: 'my',
|
|
9
|
+
template: {
|
|
10
|
+
extension: '.axml',
|
|
11
|
+
tag: 'import',
|
|
12
|
+
src: 'src',
|
|
13
|
+
},
|
|
14
|
+
style: '.acss',
|
|
15
|
+
jsHelper: {
|
|
16
|
+
extension: '.sjs',
|
|
17
|
+
tag: 'import-sjs',
|
|
18
|
+
src: 'from',
|
|
19
|
+
},
|
|
20
|
+
ejs: {
|
|
21
|
+
base: '',
|
|
22
|
+
page: path.join(TPL_DEFAULT_ROOT, 'page.ejs'),
|
|
23
|
+
},
|
|
24
|
+
staticEjs: {
|
|
25
|
+
base: '',
|
|
26
|
+
page: path.join(TPL_STATIC_ROOT, 'page.ejs'),
|
|
27
|
+
isolatedTemplates: path.join(TPL_STATIC_ROOT, 'isolated-templates.ejs'),
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
hostComponents,
|
|
31
|
+
skipHostComponents: ['swiper-item', 'picker-view-column'],
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
export default plugin;
|