@ray-js/adapter 1.4.0-alpha.5 → 1.4.0-alpha.7
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/cjs/hostComponents/Button/index.d.ts +16 -0
- package/cjs/hostComponents/Button/index.js +15 -0
- package/cjs/hostComponents/Button/node.d.ts +35 -0
- package/cjs/hostComponents/Button/node.js +6 -0
- package/cjs/hostComponents/Camera/index.d.ts +21 -0
- package/cjs/hostComponents/Camera/index.js +16 -0
- package/cjs/hostComponents/Camera/node.d.ts +44 -0
- package/cjs/hostComponents/Camera/node.js +6 -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 +30 -0
- package/cjs/hostComponents/Canvas/node.js +6 -0
- package/cjs/hostComponents/Checkbox/index.d.ts +13 -0
- package/cjs/hostComponents/Checkbox/index.js +9 -0
- package/cjs/hostComponents/Checkbox/node.d.ts +31 -0
- package/cjs/hostComponents/Checkbox/node.js +6 -0
- package/cjs/hostComponents/CheckboxGroup/index.d.ts +10 -0
- package/cjs/hostComponents/CheckboxGroup/index.js +5 -0
- package/cjs/hostComponents/CheckboxGroup/node.d.ts +29 -0
- package/cjs/hostComponents/CheckboxGroup/node.js +6 -0
- package/cjs/hostComponents/CoverView/index.d.ts +6 -0
- package/cjs/hostComponents/CoverView/index.js +6 -0
- package/cjs/hostComponents/CoverView/node.d.ts +27 -0
- package/cjs/hostComponents/CoverView/node.js +6 -0
- package/cjs/hostComponents/Form/index.d.ts +13 -0
- package/cjs/hostComponents/Form/index.js +9 -0
- package/cjs/hostComponents/Form/node.d.ts +31 -0
- package/cjs/hostComponents/Form/node.js +6 -0
- package/cjs/hostComponents/Iframe/index.d.ts +21 -0
- package/cjs/hostComponents/Iframe/index.js +6 -0
- package/cjs/hostComponents/Iframe/node.d.ts +31 -0
- package/cjs/hostComponents/Iframe/node.js +6 -0
- package/cjs/hostComponents/Image/index.d.ts +43 -0
- package/cjs/hostComponents/Image/index.js +8 -0
- package/cjs/hostComponents/Image/node.d.ts +32 -0
- package/cjs/hostComponents/Image/node.js +6 -0
- package/cjs/hostComponents/Input/index.d.ts +25 -0
- package/cjs/hostComponents/Input/index.js +10 -0
- package/cjs/hostComponents/Input/node.d.ts +41 -0
- package/cjs/hostComponents/Input/node.js +6 -0
- package/cjs/hostComponents/IpcPlayer/index.d.ts +41 -0
- package/cjs/hostComponents/IpcPlayer/index.js +24 -0
- package/cjs/hostComponents/IpcPlayer/node.d.ts +53 -0
- package/cjs/hostComponents/IpcPlayer/node.js +6 -0
- package/cjs/hostComponents/Label/index.d.ts +7 -0
- package/cjs/hostComponents/Label/index.js +5 -0
- package/cjs/hostComponents/Label/node.d.ts +28 -0
- package/cjs/hostComponents/Label/node.js +6 -0
- package/cjs/hostComponents/Map/index.d.ts +66 -0
- package/cjs/hostComponents/Map/index.js +15 -0
- package/cjs/hostComponents/Map/node.d.ts +50 -0
- package/cjs/hostComponents/Map/node.js +6 -0
- package/cjs/hostComponents/MovableArea/index.d.ts +7 -0
- package/cjs/hostComponents/MovableArea/index.js +8 -0
- package/cjs/hostComponents/MovableArea/node.d.ts +28 -0
- package/cjs/hostComponents/MovableArea/node.js +6 -0
- package/cjs/hostComponents/MovableView/index.d.ts +25 -0
- package/cjs/hostComponents/MovableView/index.js +21 -0
- package/cjs/hostComponents/MovableView/node.d.ts +43 -0
- package/cjs/hostComponents/MovableView/node.js +6 -0
- package/cjs/hostComponents/NativeVideo/index.d.ts +38 -0
- package/cjs/hostComponents/NativeVideo/index.js +21 -0
- package/cjs/hostComponents/NativeVideo/node.d.ts +61 -0
- package/cjs/hostComponents/NativeVideo/node.js +6 -0
- package/cjs/hostComponents/Navigator/index.d.ts +38 -0
- package/cjs/hostComponents/Navigator/index.js +17 -0
- package/cjs/hostComponents/Navigator/node.d.ts +23 -0
- package/cjs/hostComponents/Navigator/node.js +26 -0
- package/cjs/hostComponents/PageContainer/index.d.ts +20 -0
- package/cjs/hostComponents/PageContainer/index.js +14 -0
- package/cjs/hostComponents/PageContainer/node.d.ts +43 -0
- package/cjs/hostComponents/PageContainer/node.js +6 -0
- package/cjs/hostComponents/Picker/index.d.ts +64 -0
- package/cjs/hostComponents/Picker/index.js +13 -0
- package/cjs/hostComponents/Picker/node.d.ts +40 -0
- package/cjs/hostComponents/Picker/node.js +6 -0
- package/cjs/hostComponents/PickerView/index.d.ts +17 -0
- package/cjs/hostComponents/PickerView/index.js +5 -0
- package/cjs/hostComponents/PickerView/node.d.ts +33 -0
- package/cjs/hostComponents/PickerView/node.js +6 -0
- package/cjs/hostComponents/PickerViewColumn/index.d.ts +4 -0
- package/cjs/hostComponents/PickerViewColumn/index.js +5 -0
- package/cjs/hostComponents/PickerViewColumn/node.d.ts +27 -0
- package/cjs/hostComponents/PickerViewColumn/node.js +6 -0
- package/cjs/hostComponents/Progress/index.d.ts +14 -0
- package/cjs/hostComponents/Progress/index.js +13 -0
- package/cjs/hostComponents/Progress/node.d.ts +36 -0
- package/cjs/hostComponents/Progress/node.js +6 -0
- package/cjs/hostComponents/Radio/index.d.ts +13 -0
- package/cjs/hostComponents/Radio/index.js +9 -0
- package/cjs/hostComponents/Radio/node.d.ts +31 -0
- package/cjs/hostComponents/Radio/node.js +6 -0
- package/cjs/hostComponents/RadioGroup/index.d.ts +11 -0
- package/cjs/hostComponents/RadioGroup/index.js +5 -0
- package/cjs/hostComponents/RadioGroup/node.d.ts +29 -0
- package/cjs/hostComponents/RadioGroup/node.js +6 -0
- package/cjs/hostComponents/RichText/index.d.ts +13 -0
- package/cjs/hostComponents/RichText/index.js +6 -0
- package/cjs/hostComponents/RichText/node.d.ts +28 -0
- package/cjs/hostComponents/RichText/node.js +6 -0
- package/cjs/hostComponents/ScrollView/index.d.ts +31 -0
- package/cjs/hostComponents/ScrollView/index.js +17 -0
- package/cjs/hostComponents/ScrollView/node.d.ts +53 -0
- package/cjs/hostComponents/ScrollView/node.js +8 -0
- package/cjs/hostComponents/Slider/index.d.ts +27 -0
- package/cjs/hostComponents/Slider/index.js +15 -0
- package/cjs/hostComponents/Slider/node.d.ts +41 -0
- package/cjs/hostComponents/Slider/node.js +6 -0
- package/cjs/hostComponents/Swiper/index.d.ts +21 -0
- package/cjs/hostComponents/Swiper/index.js +15 -0
- package/cjs/hostComponents/Swiper/node.d.ts +43 -0
- package/cjs/hostComponents/Swiper/node.js +6 -0
- package/cjs/hostComponents/SwiperItem/index.d.ts +7 -0
- package/cjs/hostComponents/SwiperItem/index.js +5 -0
- package/cjs/hostComponents/SwiperItem/node.d.ts +29 -0
- package/cjs/hostComponents/SwiperItem/node.js +6 -0
- package/cjs/hostComponents/Switch/index.d.ts +19 -0
- package/cjs/hostComponents/Switch/index.js +14 -0
- package/cjs/hostComponents/Switch/node.d.ts +33 -0
- package/cjs/hostComponents/Switch/node.js +6 -0
- package/cjs/hostComponents/Text/index.d.ts +8 -0
- package/cjs/hostComponents/Text/index.js +9 -0
- package/cjs/hostComponents/Text/node.d.ts +31 -0
- package/cjs/hostComponents/Text/node.js +6 -0
- package/cjs/hostComponents/Textarea/index.d.ts +16 -0
- package/cjs/hostComponents/Textarea/index.js +15 -0
- package/cjs/hostComponents/Textarea/node.d.ts +39 -0
- package/cjs/hostComponents/Textarea/node.js +6 -0
- package/cjs/hostComponents/Video/index.d.ts +37 -0
- package/cjs/hostComponents/Video/index.js +5 -0
- package/cjs/hostComponents/Video/node.d.ts +57 -0
- package/cjs/hostComponents/Video/node.js +7 -0
- package/cjs/hostComponents/View/index.d.ts +24 -0
- package/cjs/hostComponents/View/index.js +11 -0
- package/cjs/hostComponents/View/node.d.ts +28 -0
- package/cjs/hostComponents/View/node.js +6 -0
- package/cjs/hostComponents/WebView/index.d.ts +21 -0
- package/cjs/hostComponents/WebView/index.js +6 -0
- package/cjs/hostComponents/WebView/node.d.ts +32 -0
- package/cjs/hostComponents/WebView/node.js +6 -0
- package/cjs/hostComponents/index.d.ts +35 -0
- package/cjs/hostComponents/index.js +51 -0
- package/cjs/hostComponents/node.d.ts +2 -0
- package/cjs/hostComponents/node.js +97 -0
- package/cjs/hostComponents/universal.d.ts +26 -0
- package/cjs/hostComponents/universal.js +29 -0
- package/cjs/index.d.ts +2 -0
- package/cjs/index.js +18 -0
- package/cjs/node/index.d.ts +3 -0
- package/cjs/node/index.js +48 -0
- package/cjs/types/component.d.ts +84 -0
- package/cjs/types/component.js +2 -0
- package/cjs/types/config.d.ts +185 -0
- package/cjs/types/config.js +2 -0
- package/cjs/types/index.d.ts +2 -0
- package/cjs/types/index.js +17 -0
- package/esm/hostComponents/Button/index.d.ts +16 -0
- package/esm/hostComponents/Button/index.js +12 -0
- package/esm/hostComponents/Button/node.d.ts +35 -0
- package/esm/hostComponents/Button/node.js +3 -0
- package/esm/hostComponents/Camera/index.d.ts +21 -0
- package/esm/hostComponents/Camera/index.js +13 -0
- package/esm/hostComponents/Camera/node.d.ts +44 -0
- package/esm/hostComponents/Camera/node.js +3 -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 +30 -0
- package/esm/hostComponents/Canvas/node.js +3 -0
- package/esm/hostComponents/Checkbox/index.d.ts +13 -0
- package/esm/hostComponents/Checkbox/index.js +6 -0
- package/esm/hostComponents/Checkbox/node.d.ts +31 -0
- package/esm/hostComponents/Checkbox/node.js +3 -0
- package/esm/hostComponents/CheckboxGroup/index.d.ts +10 -0
- package/esm/hostComponents/CheckboxGroup/index.js +2 -0
- package/esm/hostComponents/CheckboxGroup/node.d.ts +29 -0
- package/esm/hostComponents/CheckboxGroup/node.js +3 -0
- package/esm/hostComponents/CoverView/index.d.ts +6 -0
- package/esm/hostComponents/CoverView/index.js +3 -0
- package/esm/hostComponents/CoverView/node.d.ts +27 -0
- package/esm/hostComponents/CoverView/node.js +3 -0
- package/esm/hostComponents/Form/index.d.ts +13 -0
- package/esm/hostComponents/Form/index.js +6 -0
- package/esm/hostComponents/Form/node.d.ts +31 -0
- package/esm/hostComponents/Form/node.js +3 -0
- package/esm/hostComponents/Iframe/index.d.ts +21 -0
- package/esm/hostComponents/Iframe/index.js +3 -0
- package/esm/hostComponents/Iframe/node.d.ts +31 -0
- package/esm/hostComponents/Iframe/node.js +3 -0
- package/esm/hostComponents/Image/index.d.ts +43 -0
- package/esm/hostComponents/Image/index.js +5 -0
- package/esm/hostComponents/Image/node.d.ts +32 -0
- package/esm/hostComponents/Image/node.js +3 -0
- package/esm/hostComponents/Input/index.d.ts +25 -0
- package/esm/hostComponents/Input/index.js +7 -0
- package/esm/hostComponents/Input/node.d.ts +41 -0
- package/esm/hostComponents/Input/node.js +3 -0
- package/esm/hostComponents/IpcPlayer/index.d.ts +41 -0
- package/esm/hostComponents/IpcPlayer/index.js +21 -0
- package/esm/hostComponents/IpcPlayer/node.d.ts +53 -0
- package/esm/hostComponents/IpcPlayer/node.js +3 -0
- package/esm/hostComponents/Label/index.d.ts +7 -0
- package/esm/hostComponents/Label/index.js +2 -0
- package/esm/hostComponents/Label/node.d.ts +28 -0
- package/esm/hostComponents/Label/node.js +3 -0
- package/esm/hostComponents/Map/index.d.ts +66 -0
- package/esm/hostComponents/Map/index.js +12 -0
- package/esm/hostComponents/Map/node.d.ts +50 -0
- package/esm/hostComponents/Map/node.js +3 -0
- package/esm/hostComponents/MovableArea/index.d.ts +7 -0
- package/esm/hostComponents/MovableArea/index.js +5 -0
- package/esm/hostComponents/MovableArea/node.d.ts +28 -0
- package/esm/hostComponents/MovableArea/node.js +3 -0
- package/esm/hostComponents/MovableView/index.d.ts +25 -0
- package/esm/hostComponents/MovableView/index.js +18 -0
- package/esm/hostComponents/MovableView/node.d.ts +43 -0
- package/esm/hostComponents/MovableView/node.js +3 -0
- package/esm/hostComponents/NativeVideo/index.d.ts +38 -0
- package/esm/hostComponents/NativeVideo/index.js +18 -0
- package/esm/hostComponents/NativeVideo/node.d.ts +61 -0
- package/esm/hostComponents/NativeVideo/node.js +3 -0
- package/esm/hostComponents/Navigator/index.d.ts +38 -0
- package/esm/hostComponents/Navigator/index.js +14 -0
- package/esm/hostComponents/Navigator/node.d.ts +23 -0
- package/esm/hostComponents/Navigator/node.js +23 -0
- package/esm/hostComponents/PageContainer/index.d.ts +20 -0
- package/esm/hostComponents/PageContainer/index.js +11 -0
- package/esm/hostComponents/PageContainer/node.d.ts +43 -0
- package/esm/hostComponents/PageContainer/node.js +3 -0
- package/esm/hostComponents/Picker/index.d.ts +64 -0
- package/esm/hostComponents/Picker/index.js +10 -0
- package/esm/hostComponents/Picker/node.d.ts +40 -0
- package/esm/hostComponents/Picker/node.js +3 -0
- package/esm/hostComponents/PickerView/index.d.ts +17 -0
- package/esm/hostComponents/PickerView/index.js +2 -0
- package/esm/hostComponents/PickerView/node.d.ts +33 -0
- package/esm/hostComponents/PickerView/node.js +3 -0
- package/esm/hostComponents/PickerViewColumn/index.d.ts +4 -0
- package/esm/hostComponents/PickerViewColumn/index.js +2 -0
- package/esm/hostComponents/PickerViewColumn/node.d.ts +27 -0
- package/esm/hostComponents/PickerViewColumn/node.js +3 -0
- package/esm/hostComponents/Progress/index.d.ts +14 -0
- package/esm/hostComponents/Progress/index.js +10 -0
- package/esm/hostComponents/Progress/node.d.ts +36 -0
- package/esm/hostComponents/Progress/node.js +3 -0
- package/esm/hostComponents/Radio/index.d.ts +13 -0
- package/esm/hostComponents/Radio/index.js +6 -0
- package/esm/hostComponents/Radio/node.d.ts +31 -0
- package/esm/hostComponents/Radio/node.js +3 -0
- package/esm/hostComponents/RadioGroup/index.d.ts +11 -0
- package/esm/hostComponents/RadioGroup/index.js +2 -0
- package/esm/hostComponents/RadioGroup/node.d.ts +29 -0
- package/esm/hostComponents/RadioGroup/node.js +3 -0
- package/esm/hostComponents/RichText/index.d.ts +13 -0
- package/esm/hostComponents/RichText/index.js +3 -0
- package/esm/hostComponents/RichText/node.d.ts +28 -0
- package/esm/hostComponents/RichText/node.js +3 -0
- package/esm/hostComponents/ScrollView/index.d.ts +31 -0
- package/esm/hostComponents/ScrollView/index.js +14 -0
- package/esm/hostComponents/ScrollView/node.d.ts +53 -0
- package/esm/hostComponents/ScrollView/node.js +5 -0
- package/esm/hostComponents/Slider/index.d.ts +27 -0
- package/esm/hostComponents/Slider/index.js +12 -0
- package/esm/hostComponents/Slider/node.d.ts +41 -0
- package/esm/hostComponents/Slider/node.js +3 -0
- package/esm/hostComponents/Swiper/index.d.ts +21 -0
- package/esm/hostComponents/Swiper/index.js +12 -0
- package/esm/hostComponents/Swiper/node.d.ts +43 -0
- package/esm/hostComponents/Swiper/node.js +3 -0
- package/esm/hostComponents/SwiperItem/index.d.ts +7 -0
- package/esm/hostComponents/SwiperItem/index.js +2 -0
- package/esm/hostComponents/SwiperItem/node.d.ts +29 -0
- package/esm/hostComponents/SwiperItem/node.js +3 -0
- package/esm/hostComponents/Switch/index.d.ts +19 -0
- package/esm/hostComponents/Switch/index.js +11 -0
- package/esm/hostComponents/Switch/node.d.ts +33 -0
- package/esm/hostComponents/Switch/node.js +3 -0
- package/esm/hostComponents/Text/index.d.ts +8 -0
- package/esm/hostComponents/Text/index.js +6 -0
- package/esm/hostComponents/Text/node.d.ts +31 -0
- package/esm/hostComponents/Text/node.js +3 -0
- package/esm/hostComponents/Textarea/index.d.ts +16 -0
- package/esm/hostComponents/Textarea/index.js +12 -0
- package/esm/hostComponents/Textarea/node.d.ts +39 -0
- package/esm/hostComponents/Textarea/node.js +3 -0
- package/esm/hostComponents/Video/index.d.ts +37 -0
- package/esm/hostComponents/Video/index.js +2 -0
- package/esm/hostComponents/Video/node.d.ts +57 -0
- package/esm/hostComponents/Video/node.js +4 -0
- package/esm/hostComponents/View/index.d.ts +24 -0
- package/esm/hostComponents/View/index.js +8 -0
- package/esm/hostComponents/View/node.d.ts +28 -0
- package/esm/hostComponents/View/node.js +3 -0
- package/esm/hostComponents/WebView/index.d.ts +21 -0
- package/esm/hostComponents/WebView/index.js +3 -0
- package/esm/hostComponents/WebView/node.d.ts +32 -0
- package/esm/hostComponents/WebView/node.js +3 -0
- package/esm/hostComponents/index.d.ts +35 -0
- package/esm/hostComponents/index.js +35 -0
- package/esm/hostComponents/node.d.ts +2 -0
- package/esm/hostComponents/node.js +72 -0
- package/esm/hostComponents/universal.d.ts +26 -0
- package/esm/hostComponents/universal.js +26 -0
- package/esm/index.d.ts +2 -0
- package/esm/index.js +2 -0
- package/esm/node/index.d.ts +3 -0
- package/esm/node/index.js +20 -0
- package/esm/types/component.d.ts +84 -0
- package/esm/types/component.js +1 -0
- package/esm/types/config.d.ts +185 -0
- package/esm/types/config.js +1 -0
- package/esm/types/index.d.ts +2 -0
- package/esm/types/index.js +1 -0
- package/package.json +24 -19
- package/CHANGELOG.md +0 -283
- package/node.js +0 -1
- package/tsconfig.build.json +0 -8
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export declare const alias: {
|
|
2
|
+
id: string;
|
|
3
|
+
className: string;
|
|
4
|
+
animation: string;
|
|
5
|
+
style: string;
|
|
6
|
+
name: string;
|
|
7
|
+
value: string;
|
|
8
|
+
placeholder: string;
|
|
9
|
+
placeholderStyle: string;
|
|
10
|
+
disabled: string;
|
|
11
|
+
maxLength: string;
|
|
12
|
+
maxlength: string;
|
|
13
|
+
autoHeight: string;
|
|
14
|
+
onInput: string;
|
|
15
|
+
onFocus: string;
|
|
16
|
+
onBlur: string;
|
|
17
|
+
onLineChange: string;
|
|
18
|
+
disableScroll: string;
|
|
19
|
+
hoverClass: string;
|
|
20
|
+
hoverClassName: string;
|
|
21
|
+
hoverStartTime: string;
|
|
22
|
+
hoverStayTime: string;
|
|
23
|
+
hidden: string;
|
|
24
|
+
hoverStopPropagation: string;
|
|
25
|
+
onTap: string;
|
|
26
|
+
onClick: string;
|
|
27
|
+
onTouchStart: string;
|
|
28
|
+
onTouchMove: string;
|
|
29
|
+
onTouchEnd: string;
|
|
30
|
+
onTouchCancel: string;
|
|
31
|
+
onLongTap: string;
|
|
32
|
+
onLongClick: string;
|
|
33
|
+
onLongPress: string;
|
|
34
|
+
onTransitionEnd: string;
|
|
35
|
+
onAnimationIteration: string;
|
|
36
|
+
onAnimationStart: string;
|
|
37
|
+
onAnimationEnd: string;
|
|
38
|
+
};
|
|
39
|
+
export declare const props: string[];
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.props = exports.alias = void 0;
|
|
4
|
+
const universal_1 = require("../universal");
|
|
5
|
+
exports.alias = Object.assign(Object.assign({}, universal_1.universalAlias), { id: 'id', className: 'class', animation: 'animation', style: 'style', name: 'name', value: 'value', placeholder: 'placeholder', placeholderStyle: 'placeholder-style', disabled: 'disabled', maxLength: 'maxlength', maxlength: 'maxlength', autoHeight: 'auto-height', onInput: 'bindinput', onFocus: 'bindfocus', onBlur: 'bindblur', onLineChange: 'bindlinechange' });
|
|
6
|
+
exports.props = Object.values(exports.alias);
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface VideoProps {
|
|
3
|
+
id?: string;
|
|
4
|
+
className?: string;
|
|
5
|
+
style?: React.CSSProperties;
|
|
6
|
+
src?: string;
|
|
7
|
+
duration?: number;
|
|
8
|
+
controls?: boolean;
|
|
9
|
+
danmuList?: string;
|
|
10
|
+
danmuBtn?: boolean;
|
|
11
|
+
enableDanmu?: boolean;
|
|
12
|
+
autoplay?: boolean;
|
|
13
|
+
loop?: boolean;
|
|
14
|
+
muted?: boolean;
|
|
15
|
+
initialTime?: number;
|
|
16
|
+
showFullscreenBtn?: boolean;
|
|
17
|
+
showPlayBtn?: boolean;
|
|
18
|
+
showCenterPlayBtn?: boolean;
|
|
19
|
+
objectFit?: string;
|
|
20
|
+
poster?: string;
|
|
21
|
+
showMuteBtn?: boolean;
|
|
22
|
+
onPlay?: (event: any) => void;
|
|
23
|
+
onPause?: (event: any) => void;
|
|
24
|
+
onEnded?: (event: any) => void;
|
|
25
|
+
onTimeUpdate?: (event: any) => void;
|
|
26
|
+
onWaiting?: (event: any) => void;
|
|
27
|
+
onError?: (event: any) => void;
|
|
28
|
+
onProgress?: (event: any) => void;
|
|
29
|
+
onLoadedMetadata?: (event: any) => void;
|
|
30
|
+
onCanplay?: (event: any) => void;
|
|
31
|
+
onCanplayThrough?: (event: any) => void;
|
|
32
|
+
onPlaying?: (event: any) => void;
|
|
33
|
+
onRateChange?: (event: any) => void;
|
|
34
|
+
onVolumeChange?: (event: any) => void;
|
|
35
|
+
onSeekComplete?: (event: any) => void;
|
|
36
|
+
}
|
|
37
|
+
export declare const Video: React.ComponentType<VideoProps>;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
export declare const alias: {
|
|
2
|
+
id: string;
|
|
3
|
+
className: string;
|
|
4
|
+
style: string;
|
|
5
|
+
src: string;
|
|
6
|
+
duration: string;
|
|
7
|
+
controls: string;
|
|
8
|
+
danmuList: string;
|
|
9
|
+
danmuBtn: string;
|
|
10
|
+
enableDanmu: string;
|
|
11
|
+
autoplay: string;
|
|
12
|
+
loop: string;
|
|
13
|
+
muted: string;
|
|
14
|
+
initialTime: string;
|
|
15
|
+
showFullscreenBtn: string;
|
|
16
|
+
showPlayBtn: string;
|
|
17
|
+
showCenterPlayBtn: string;
|
|
18
|
+
objectFit: string;
|
|
19
|
+
poster: string;
|
|
20
|
+
showMuteBtn: string;
|
|
21
|
+
onPlay: string;
|
|
22
|
+
onPause: string;
|
|
23
|
+
onEnded: string;
|
|
24
|
+
onTimeUpdate: string;
|
|
25
|
+
onWaiting: string;
|
|
26
|
+
onError: string;
|
|
27
|
+
onProgress: string;
|
|
28
|
+
onLoadedMetadata: string;
|
|
29
|
+
onCanplay: string;
|
|
30
|
+
onCanplayThrough: string;
|
|
31
|
+
onPlaying: string;
|
|
32
|
+
onRateChange: string;
|
|
33
|
+
onVolumeChange: string;
|
|
34
|
+
onSeekComplete: string;
|
|
35
|
+
disableScroll: string;
|
|
36
|
+
hoverClass: string;
|
|
37
|
+
hoverClassName: string;
|
|
38
|
+
hoverStartTime: string;
|
|
39
|
+
hoverStayTime: string;
|
|
40
|
+
hidden: string;
|
|
41
|
+
animation: string;
|
|
42
|
+
hoverStopPropagation: string;
|
|
43
|
+
onTap: string;
|
|
44
|
+
onClick: string;
|
|
45
|
+
onTouchStart: string;
|
|
46
|
+
onTouchMove: string;
|
|
47
|
+
onTouchEnd: string;
|
|
48
|
+
onTouchCancel: string;
|
|
49
|
+
onLongTap: string;
|
|
50
|
+
onLongClick: string;
|
|
51
|
+
onLongPress: string;
|
|
52
|
+
onTransitionEnd: string;
|
|
53
|
+
onAnimationIteration: string;
|
|
54
|
+
onAnimationStart: string;
|
|
55
|
+
onAnimationEnd: string;
|
|
56
|
+
};
|
|
57
|
+
export declare const props: string[];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.props = exports.alias = void 0;
|
|
4
|
+
const shared_1 = require("@ray-core/shared");
|
|
5
|
+
const universal_1 = require("../universal");
|
|
6
|
+
exports.alias = Object.assign(Object.assign({}, universal_1.universalAlias), { id: 'id', className: 'class', style: 'style', src: 'src', duration: 'duration', controls: 'controls', danmuList: 'danmu-list', danmuBtn: 'danmu-btn', enableDanmu: 'enable-danmu', autoplay: 'autoplay', loop: 'loop', muted: 'muted', initialTime: 'initial-time', showFullscreenBtn: 'show-fullscreen-btn', showPlayBtn: 'show-play-btn', showCenterPlayBtn: 'show-center-play-btn', objectFit: 'object-fit', poster: 'poster', showMuteBtn: 'show-mute-btn', onPlay: 'bindplay', onPause: 'bindpause', onEnded: 'bindended', onTimeUpdate: 'bindtimeupdate', onWaiting: 'bindwaiting', onError: 'binderror', onProgress: 'bindprogress', onLoadedMetadata: 'bindloadedmetadata', onCanplay: 'bindcanplay', onCanplayThrough: 'bindcanplaythrough', onPlaying: 'bindplaying', onRateChange: 'bindratechange', onVolumeChange: 'bindvolumechange', onSeekComplete: 'bindseekcomplete' });
|
|
7
|
+
exports.props = (0, shared_1.unique)(Object.values(exports.alias));
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { BaseProps, TouchEvent } from '../../types/component';
|
|
3
|
+
export interface ViewProps extends BaseProps {
|
|
4
|
+
slot?: string;
|
|
5
|
+
/** 指定按下去的样式类。当为 "none" 时,没有点击态效果 1.0.0 */
|
|
6
|
+
hoverClassName?: string;
|
|
7
|
+
/** 指定是否阻止本节点的祖先节点出现点击态 1.5.0 */
|
|
8
|
+
hoverStopPropagation?: boolean;
|
|
9
|
+
/** (default: 50) 按住后多久出现点击态,单位毫秒 1.0.0 */
|
|
10
|
+
hoverStartTime?: number;
|
|
11
|
+
/** (default: 400) 手指松开后点击态保留时间,单位毫秒 1.0.0 */
|
|
12
|
+
hoverStayTime?: number;
|
|
13
|
+
disableScroll?: boolean;
|
|
14
|
+
onTouchStart?: (event: TouchEvent) => any;
|
|
15
|
+
onTouchMove?: (event: TouchEvent) => any;
|
|
16
|
+
onTouchEnd?: (event: TouchEvent) => any;
|
|
17
|
+
onTouchCancel?: (event: TouchEvent) => any;
|
|
18
|
+
onLongClick?: (event: TouchEvent) => any;
|
|
19
|
+
onTransitionEnd?: (event: any) => any;
|
|
20
|
+
onAnimationIteration?: (event: any) => any;
|
|
21
|
+
onAnimationStart?: (event: any) => any;
|
|
22
|
+
onAnimationEnd?: (event: any) => any;
|
|
23
|
+
}
|
|
24
|
+
export declare const View: React.ComponentType<ViewProps>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.View = void 0;
|
|
4
|
+
const runtime_1 = require("@ray-core/runtime");
|
|
5
|
+
exports.View = (0, runtime_1.createHostComponent)('view');
|
|
6
|
+
exports.View.defaultProps = {
|
|
7
|
+
// hoverClassName: 'none',
|
|
8
|
+
// hoverStopPropagation: false,
|
|
9
|
+
// hoverStartTime: 50,
|
|
10
|
+
// hoverStayTime: 400,
|
|
11
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export declare const alias: {
|
|
2
|
+
catchTouchMove: string;
|
|
3
|
+
id: string;
|
|
4
|
+
disableScroll: string;
|
|
5
|
+
hoverClass: string;
|
|
6
|
+
hoverClassName: string;
|
|
7
|
+
hoverStartTime: string;
|
|
8
|
+
hoverStayTime: string;
|
|
9
|
+
hidden: string;
|
|
10
|
+
className: string;
|
|
11
|
+
animation: string;
|
|
12
|
+
style: string;
|
|
13
|
+
hoverStopPropagation: string;
|
|
14
|
+
onTap: string;
|
|
15
|
+
onClick: string;
|
|
16
|
+
onTouchStart: string;
|
|
17
|
+
onTouchMove: string;
|
|
18
|
+
onTouchEnd: string;
|
|
19
|
+
onTouchCancel: string;
|
|
20
|
+
onLongTap: string;
|
|
21
|
+
onLongClick: string;
|
|
22
|
+
onLongPress: string;
|
|
23
|
+
onTransitionEnd: string;
|
|
24
|
+
onAnimationIteration: string;
|
|
25
|
+
onAnimationStart: string;
|
|
26
|
+
onAnimationEnd: string;
|
|
27
|
+
};
|
|
28
|
+
export declare const props: string[];
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.props = exports.alias = void 0;
|
|
4
|
+
const universal_1 = require("../universal");
|
|
5
|
+
exports.alias = Object.assign(Object.assign({}, universal_1.universalAlias), { catchTouchMove: 'catchtouchmove' });
|
|
6
|
+
exports.props = Object.values(exports.alias);
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { BaseProps, DiffLayer, GenericEvent } from '../../types/component';
|
|
3
|
+
export interface WebViewProps extends BaseProps, DiffLayer {
|
|
4
|
+
/**
|
|
5
|
+
* webview 指向网页的链接,网页需登录小程序管理后台配置业务域名。
|
|
6
|
+
*/
|
|
7
|
+
src?: string;
|
|
8
|
+
/**
|
|
9
|
+
* 网页加载失败的时候触发此事件。e.detail = { url, fullUrl },其中 fullUrl 为加载失败时的完整 url
|
|
10
|
+
*/
|
|
11
|
+
onError?: (event: GenericEvent) => any;
|
|
12
|
+
/**
|
|
13
|
+
* 网页加载成功时候触发此事件。e.detail = { src }
|
|
14
|
+
*/
|
|
15
|
+
onLoad?: (event: GenericEvent) => any;
|
|
16
|
+
/**
|
|
17
|
+
* 网页向小程序 postMessage 时,会在特定时机(小程序后退、组件销毁、分享)触发并收到消息。e.detail = { data },data是多次 postMessage 的参数组成的数组
|
|
18
|
+
*/
|
|
19
|
+
onMessage?: (event: GenericEvent) => any;
|
|
20
|
+
}
|
|
21
|
+
export declare const WebView: React.ComponentType<WebViewProps>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export declare const alias: {
|
|
2
|
+
src: string;
|
|
3
|
+
onError: string;
|
|
4
|
+
onLoad: string;
|
|
5
|
+
onMessage: string;
|
|
6
|
+
updateLayout: string;
|
|
7
|
+
id: string;
|
|
8
|
+
disableScroll: string;
|
|
9
|
+
hoverClass: string;
|
|
10
|
+
hoverClassName: string;
|
|
11
|
+
hoverStartTime: string;
|
|
12
|
+
hoverStayTime: string;
|
|
13
|
+
hidden: string;
|
|
14
|
+
className: string;
|
|
15
|
+
animation: string;
|
|
16
|
+
style: string;
|
|
17
|
+
hoverStopPropagation: string;
|
|
18
|
+
onTap: string;
|
|
19
|
+
onClick: string;
|
|
20
|
+
onTouchStart: string;
|
|
21
|
+
onTouchMove: string;
|
|
22
|
+
onTouchEnd: string;
|
|
23
|
+
onTouchCancel: string;
|
|
24
|
+
onLongTap: string;
|
|
25
|
+
onLongClick: string;
|
|
26
|
+
onLongPress: string;
|
|
27
|
+
onTransitionEnd: string;
|
|
28
|
+
onAnimationIteration: string;
|
|
29
|
+
onAnimationStart: string;
|
|
30
|
+
onAnimationEnd: string;
|
|
31
|
+
};
|
|
32
|
+
export declare const props: string[];
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.props = exports.alias = void 0;
|
|
4
|
+
const universal_1 = require("../universal");
|
|
5
|
+
exports.alias = Object.assign(Object.assign({}, universal_1.universalAlias), { src: 'src', onError: 'binderror', onLoad: 'bindload', onMessage: 'bindmessage', updateLayout: 'update-layout' });
|
|
6
|
+
exports.props = Object.values(exports.alias);
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export * from './Button';
|
|
2
|
+
export * from './Canvas';
|
|
3
|
+
export * from './Checkbox';
|
|
4
|
+
export * from './CheckboxGroup';
|
|
5
|
+
export * from './Form';
|
|
6
|
+
export * from './Image';
|
|
7
|
+
export * from './Input';
|
|
8
|
+
export * from './Label';
|
|
9
|
+
export * from './MovableArea';
|
|
10
|
+
export * from './MovableView';
|
|
11
|
+
export * from './Picker';
|
|
12
|
+
export * from './PickerView';
|
|
13
|
+
export * from './PickerViewColumn';
|
|
14
|
+
export * from './Radio';
|
|
15
|
+
export * from './RadioGroup';
|
|
16
|
+
export * from './ScrollView';
|
|
17
|
+
export * from './Swiper';
|
|
18
|
+
export * from './SwiperItem';
|
|
19
|
+
export * from './Switch';
|
|
20
|
+
export * from './Slider';
|
|
21
|
+
export * from './Text';
|
|
22
|
+
export * from './Textarea';
|
|
23
|
+
export * from './Video';
|
|
24
|
+
export * from './View';
|
|
25
|
+
export * from './PageContainer';
|
|
26
|
+
export * from './IpcPlayer';
|
|
27
|
+
export * from './CoverView';
|
|
28
|
+
export * from './NativeVideo';
|
|
29
|
+
export * from './WebView';
|
|
30
|
+
export * from './Iframe';
|
|
31
|
+
export * from './Map';
|
|
32
|
+
export * from './Camera';
|
|
33
|
+
export * from './Progress';
|
|
34
|
+
export * from './RichText';
|
|
35
|
+
export * from './Navigator';
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./Button"), exports);
|
|
18
|
+
__exportStar(require("./Canvas"), exports);
|
|
19
|
+
__exportStar(require("./Checkbox"), exports);
|
|
20
|
+
__exportStar(require("./CheckboxGroup"), exports);
|
|
21
|
+
__exportStar(require("./Form"), exports);
|
|
22
|
+
__exportStar(require("./Image"), exports);
|
|
23
|
+
__exportStar(require("./Input"), exports);
|
|
24
|
+
__exportStar(require("./Label"), exports);
|
|
25
|
+
__exportStar(require("./MovableArea"), exports);
|
|
26
|
+
__exportStar(require("./MovableView"), exports);
|
|
27
|
+
__exportStar(require("./Picker"), exports);
|
|
28
|
+
__exportStar(require("./PickerView"), exports);
|
|
29
|
+
__exportStar(require("./PickerViewColumn"), exports);
|
|
30
|
+
__exportStar(require("./Radio"), exports);
|
|
31
|
+
__exportStar(require("./RadioGroup"), exports);
|
|
32
|
+
__exportStar(require("./ScrollView"), exports);
|
|
33
|
+
__exportStar(require("./Swiper"), exports);
|
|
34
|
+
__exportStar(require("./SwiperItem"), exports);
|
|
35
|
+
__exportStar(require("./Switch"), exports);
|
|
36
|
+
__exportStar(require("./Slider"), exports);
|
|
37
|
+
__exportStar(require("./Text"), exports);
|
|
38
|
+
__exportStar(require("./Textarea"), exports);
|
|
39
|
+
__exportStar(require("./Video"), exports);
|
|
40
|
+
__exportStar(require("./View"), exports);
|
|
41
|
+
__exportStar(require("./PageContainer"), exports);
|
|
42
|
+
__exportStar(require("./IpcPlayer"), exports);
|
|
43
|
+
__exportStar(require("./CoverView"), exports);
|
|
44
|
+
__exportStar(require("./NativeVideo"), exports);
|
|
45
|
+
__exportStar(require("./WebView"), exports);
|
|
46
|
+
__exportStar(require("./Iframe"), exports);
|
|
47
|
+
__exportStar(require("./Map"), exports);
|
|
48
|
+
__exportStar(require("./Camera"), exports);
|
|
49
|
+
__exportStar(require("./Progress"), exports);
|
|
50
|
+
__exportStar(require("./RichText"), exports);
|
|
51
|
+
__exportStar(require("./Navigator"), exports);
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
const Button = __importStar(require("./Button/node"));
|
|
27
|
+
const Canvas = __importStar(require("./Canvas/node"));
|
|
28
|
+
const Checkbox = __importStar(require("./Checkbox/node"));
|
|
29
|
+
const CheckboxGroup = __importStar(require("./CheckboxGroup/node"));
|
|
30
|
+
const Form = __importStar(require("./Form/node"));
|
|
31
|
+
const Image = __importStar(require("./Image/node"));
|
|
32
|
+
const Input = __importStar(require("./Input/node"));
|
|
33
|
+
const Label = __importStar(require("./Label/node"));
|
|
34
|
+
const MovableArea = __importStar(require("./MovableArea/node"));
|
|
35
|
+
const MovableView = __importStar(require("./MovableView/node"));
|
|
36
|
+
const Picker = __importStar(require("./Picker/node"));
|
|
37
|
+
const PickerView = __importStar(require("./PickerView/node"));
|
|
38
|
+
const PickerViewColumn = __importStar(require("./PickerViewColumn/node"));
|
|
39
|
+
const Radio = __importStar(require("./Radio/node"));
|
|
40
|
+
const RadioGroup = __importStar(require("./RadioGroup/node"));
|
|
41
|
+
const ScrollView = __importStar(require("./ScrollView/node"));
|
|
42
|
+
const Swiper = __importStar(require("./Swiper/node"));
|
|
43
|
+
const SwiperItem = __importStar(require("./SwiperItem/node"));
|
|
44
|
+
const Switch = __importStar(require("./Switch/node"));
|
|
45
|
+
const Slider = __importStar(require("./Slider/node"));
|
|
46
|
+
const Text = __importStar(require("./Text/node"));
|
|
47
|
+
const Textarea = __importStar(require("./Textarea/node"));
|
|
48
|
+
const Video = __importStar(require("./Video/node"));
|
|
49
|
+
const View = __importStar(require("./View/node"));
|
|
50
|
+
const PageContainer = __importStar(require("./PageContainer/node"));
|
|
51
|
+
const Progress = __importStar(require("./Progress/node"));
|
|
52
|
+
const IpcPlayer = __importStar(require("./IpcPlayer/node"));
|
|
53
|
+
const CoverView = __importStar(require("./CoverView/node"));
|
|
54
|
+
const NativeVideo = __importStar(require("./NativeVideo/node"));
|
|
55
|
+
const WebView = __importStar(require("./WebView/node"));
|
|
56
|
+
const MapView = __importStar(require("./Map/node"));
|
|
57
|
+
const Camera = __importStar(require("./Camera/node"));
|
|
58
|
+
const RichText = __importStar(require("./RichText/node"));
|
|
59
|
+
const Iframe = __importStar(require("./Iframe/node"));
|
|
60
|
+
const Navigator = __importStar(require("./Navigator/node"));
|
|
61
|
+
const hostComponents = new Map();
|
|
62
|
+
hostComponents.set('button', Button);
|
|
63
|
+
hostComponents.set('canvas', Canvas);
|
|
64
|
+
hostComponents.set('checkbox', Checkbox);
|
|
65
|
+
hostComponents.set('checkbox-group', CheckboxGroup);
|
|
66
|
+
hostComponents.set('form', Form);
|
|
67
|
+
hostComponents.set('image', Image);
|
|
68
|
+
hostComponents.set('input', Input);
|
|
69
|
+
hostComponents.set('label', Label);
|
|
70
|
+
hostComponents.set('movable-area', MovableArea);
|
|
71
|
+
hostComponents.set('movable-view', MovableView);
|
|
72
|
+
hostComponents.set('picker', Picker);
|
|
73
|
+
hostComponents.set('picker-view', PickerView);
|
|
74
|
+
hostComponents.set('picker-view-column', PickerViewColumn);
|
|
75
|
+
hostComponents.set('radio', Radio);
|
|
76
|
+
hostComponents.set('radio-group', RadioGroup);
|
|
77
|
+
hostComponents.set('scroll-view', ScrollView);
|
|
78
|
+
hostComponents.set('swiper', Swiper);
|
|
79
|
+
hostComponents.set('swiper-item', SwiperItem);
|
|
80
|
+
hostComponents.set('switch', Switch);
|
|
81
|
+
hostComponents.set('slider', Slider);
|
|
82
|
+
hostComponents.set('text', Text);
|
|
83
|
+
hostComponents.set('textarea', Textarea);
|
|
84
|
+
hostComponents.set('video', Video);
|
|
85
|
+
hostComponents.set('view', View);
|
|
86
|
+
hostComponents.set('page-container', PageContainer);
|
|
87
|
+
hostComponents.set('ipc-player', IpcPlayer);
|
|
88
|
+
hostComponents.set('cover-view', CoverView);
|
|
89
|
+
hostComponents.set('native-video', NativeVideo);
|
|
90
|
+
hostComponents.set('web-view', WebView);
|
|
91
|
+
hostComponents.set('map', MapView);
|
|
92
|
+
hostComponents.set('camera', Camera);
|
|
93
|
+
hostComponents.set('progress', Progress);
|
|
94
|
+
hostComponents.set('rich-text', RichText);
|
|
95
|
+
hostComponents.set('iframe', Iframe);
|
|
96
|
+
hostComponents.set('navigator', Navigator);
|
|
97
|
+
exports.default = hostComponents;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export declare const universalAlias: {
|
|
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
|
+
animation: string;
|
|
11
|
+
style: string;
|
|
12
|
+
hoverStopPropagation: string;
|
|
13
|
+
onTap: string;
|
|
14
|
+
onClick: string;
|
|
15
|
+
onTouchStart: string;
|
|
16
|
+
onTouchMove: string;
|
|
17
|
+
onTouchEnd: string;
|
|
18
|
+
onTouchCancel: string;
|
|
19
|
+
onLongTap: string;
|
|
20
|
+
onLongClick: string;
|
|
21
|
+
onLongPress: string;
|
|
22
|
+
onTransitionEnd: string;
|
|
23
|
+
onAnimationIteration: string;
|
|
24
|
+
onAnimationStart: string;
|
|
25
|
+
onAnimationEnd: string;
|
|
26
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.universalAlias = void 0;
|
|
4
|
+
exports.universalAlias = {
|
|
5
|
+
id: 'id',
|
|
6
|
+
disableScroll: 'disable-scroll',
|
|
7
|
+
hoverClass: 'hover-class',
|
|
8
|
+
hoverClassName: 'hover-class',
|
|
9
|
+
hoverStartTime: 'hover-start-time',
|
|
10
|
+
hoverStayTime: 'hover-stay-time',
|
|
11
|
+
hidden: 'hidden',
|
|
12
|
+
className: 'class',
|
|
13
|
+
animation: 'animation',
|
|
14
|
+
style: 'style',
|
|
15
|
+
hoverStopPropagation: 'hover-stop-propagation',
|
|
16
|
+
onTap: 'bindtap',
|
|
17
|
+
onClick: 'bindtap',
|
|
18
|
+
onTouchStart: 'bindtouchstart',
|
|
19
|
+
onTouchMove: 'bindtouchmove',
|
|
20
|
+
onTouchEnd: 'bindtouchend',
|
|
21
|
+
onTouchCancel: 'bindtouchcancel',
|
|
22
|
+
onLongTap: 'bindlongtap',
|
|
23
|
+
onLongClick: 'bindlongtap',
|
|
24
|
+
onLongPress: 'bindlongpress',
|
|
25
|
+
onTransitionEnd: 'bindtransitionend',
|
|
26
|
+
onAnimationIteration: 'bindanimationiteration',
|
|
27
|
+
onAnimationStart: 'bindanimationstart',
|
|
28
|
+
onAnimationEnd: 'bindanimationend',
|
|
29
|
+
};
|
package/cjs/index.d.ts
ADDED
package/cjs/index.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./hostComponents"), exports);
|
|
18
|
+
__exportStar(require("./types"), exports);
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
const path = __importStar(require("path"));
|
|
30
|
+
const node_1 = __importDefault(require("../hostComponents/node"));
|
|
31
|
+
const EJS_TPL_ROOT = path.join(__dirname, '../../templates');
|
|
32
|
+
const plugin = () => {
|
|
33
|
+
return {
|
|
34
|
+
meta: {
|
|
35
|
+
global: 'ty',
|
|
36
|
+
template: { extension: '.tyml', tag: 'import', src: 'src' },
|
|
37
|
+
style: '.tyss',
|
|
38
|
+
jsHelper: { extension: '.sjs', tag: 'sjs', src: 'src' },
|
|
39
|
+
ejs: {
|
|
40
|
+
base: path.join(EJS_TPL_ROOT, 'base.ejs'),
|
|
41
|
+
page: path.join(EJS_TPL_ROOT, 'page.ejs'),
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
hostComponents: node_1.default,
|
|
45
|
+
skipHostComponents: ['swiper-item'],
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
exports.default = plugin;
|